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)

query I rowsort
SELECT DISTINCT - ( 27 ) * - 91 + + 13
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL - 68 - - + 63 * 46 * CASE 79 WHEN 96 THEN + 17 + + CASE WHEN NOT ( + 13 + 1 ) IN ( 21 * + AVG ( ALL - 97 * 22 ) + - 62 ) THEN NULL ELSE - 4 * - 63 - COUNT( * ) * 80 END WHEN 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL - 68 - - + 63 * 46 * CASE 79 WHEN 96 THEN + 17 + + CASE WHEN NOT ( + 13 + 1 ) IN ( 21 * + AVG ( ALL - 97 * 22 ) + - 62 ) THEN NULL ELSE - 4 * - 63 - COUNT ( * ) * 80 END WHEN 89 THEN NULL END
----
NULL

query I rowsort
SELECT COALESCE ( + 52, + - 61, + 66 ) AS col2
----
52

query I rowsort
SELECT + - CASE + 73 WHEN 53 THEN + 23 - + 64 END * + 61 AS col2
----
NULL

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

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

query II rowsort
SELECT + 53 - - - 53 AS col1, - 41 AS col2
----
0
-41

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

query I rowsort
SELECT + 47 * + 45
----
2115

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT - COUNT( * ) * + COALESCE ( - - 1, 75 ) * ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT - COUNT ( * ) * + COALESCE ( - - 1, 75 ) * ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-10
SELECT ALL 88 DIV + 17
----
5

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL 88 / + 17
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL - 14 + - - ( + NULLIF ( + - 86, CASE + COUNT( * ) WHEN 54 * 98 THEN NULLIF ( 48, 9 ) WHEN 94 + - ( + 14 ) * + COUNT( * ) THEN NULL ELSE + NULLIF ( + 72, 34 + 42 ) * + 56 END ) ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL - 14 + - - ( + NULLIF ( + - 86, CASE + COUNT ( * ) WHEN 54 * 98 THEN NULLIF ( 48, 9 ) WHEN 94 + - ( + 14 ) * + COUNT ( * ) THEN NULL ELSE + NULLIF ( + 72, 34 + 42 ) * + 56 END ) ) AS col2
----
-100

query I rowsort
SELECT ALL + 60 + - - 43 AS col2
----
103

query I rowsort
SELECT - ( - - 2 ) - - 36 + - 44 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT - ( - 40 ) * + NULLIF ( COUNT( * ), + 99 * - 34 )
----
40

skipif mysql # not compatible
query I rowsort label-14
SELECT - ( - 40 ) * + NULLIF ( COUNT ( * ), + 99 * - 34 )
----
40

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

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

query I rowsort
SELECT DISTINCT + 69 * + 61 * - 89
----
-374601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-17
SELECT ALL 46 * CASE - + 20 WHEN - CAST( NULL AS SIGNED ) * + 66 + 40 THEN + COUNT( * ) + - 46 END * + 38 + + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL 46 * CASE - + 20 WHEN - CAST ( NULL AS INTEGER ) * + 66 + 40 THEN + COUNT ( * ) + - 46 END * + 38 + + 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT ALL 52 * - 36 + COUNT( + 70 ) + - 66 * COALESCE ( 67 * + 14, + 35 + - 98 )
----
-63779

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL 52 * - 36 + COUNT ( + 70 ) + - 66 * COALESCE ( 67 * + 14, + 35 + - 98 )
----
-63779

query I rowsort
SELECT - ( + - 58 ) * + 59 col1
----
3422

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT + 33 * + 88 + + COALESCE ( - - 80, 58 ) DIV + 68 col2
----
2905

skipif mysql # not compatible
query I rowsort label-20
SELECT + 33 * + 88 + + COALESCE ( - - 80, 58 ) / + 68 col2
----
2905

query I rowsort
SELECT ( - ( 20 ) )
----
-20

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-24
SELECT ALL + + CAST( - - 91 AS SIGNED ) AS col1, 16 * + COUNT( * )
----
91
16

skipif mysql # not compatible
query II rowsort label-24
SELECT ALL + + CAST ( - - 91 AS INTEGER ) AS col1, 16 * + COUNT ( * )
----
91
16

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT COUNT( * ) * - 93 + - + 6 + NULLIF ( ( - 24 ), 8 ) AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT COUNT ( * ) * - 93 + - + 6 + NULLIF ( ( - 24 ), 8 ) AS col0
----
-123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT DISTINCT + + 7 * - 79 + + 40 + + + ( - 18 ) + 46 + ( - ( - COUNT( 5 ) ) ) AS col2
----
-484

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT + + 7 * - 79 + + 40 + + + ( - 18 ) + 46 + ( - ( - COUNT ( 5 ) ) ) AS col2
----
-484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-28
SELECT DISTINCT - + 8 * + - CAST( NULL AS SIGNED ) * - + 84 - 69 * - 56 + + AVG ( - 20 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT - + 8 * + - CAST ( NULL AS INTEGER ) * - + 84 - 69 * - 56 + + AVG ( - 20 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-29
SELECT DISTINCT - - 83 * - 52 AS col2, NULLIF ( 20, - CASE 0 WHEN + COUNT( 14 ) THEN 15 * + COUNT( * ) + 87 WHEN 37 + + AVG ( DISTINCT 3 ) * 72 THEN NULL ELSE NULL END ) AS col2
----
-4316
20

skipif mysql # not compatible
query II rowsort label-29
SELECT DISTINCT - - 83 * - 52 AS col2, NULLIF ( 20, - CASE 0 WHEN + COUNT ( 14 ) THEN 15 * + COUNT ( * ) + 87 WHEN 37 + + AVG ( DISTINCT 3 ) * 72 THEN NULL ELSE NULL END ) AS col2
----
-4316
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-30
SELECT + + 68 * SUM( - 90 ) + - + 4 DIV - 21
----
-6120

skipif mysql # not compatible
query I rowsort label-30
SELECT + + 68 * SUM ( - 90 ) + - + 4 / - 21
----
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT - 88 * - CASE 41 WHEN - 62 THEN - COUNT( * ) ELSE 51 END * CASE - ( - 7 ) WHEN 83 THEN MIN( DISTINCT - 86 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT - 88 * - CASE 41 WHEN - 62 THEN - COUNT ( * ) ELSE 51 END * CASE - ( - 7 ) WHEN 83 THEN MIN ( DISTINCT - 86 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-32
SELECT + 58 * - 77 + - + 64 * - + 5 + CAST( 30 AS SIGNED ) col0
----
-4116

skipif mysql # not compatible
query I rowsort label-32
SELECT + 58 * - 77 + - + 64 * - + 5 + CAST ( 30 AS INTEGER ) col0
----
-4116

query II rowsort
SELECT ALL - 89 * + 18 AS col2, 21 col1
----
-1602
21

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

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

query I rowsort
SELECT - + 8 + - 80 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT ALL - + 23 * + - 4 * - + 40 - + + 81 - - COUNT( * )
----
-3760

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL - + 23 * + - 4 * - + 40 - + + 81 - - COUNT ( * )
----
-3760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-37
SELECT DISTINCT + + ( CASE + 21 WHEN COUNT( * ) / CAST( NULL AS SIGNED ) + + 4 THEN NULL WHEN + 99 THEN NULL WHEN 37 THEN 24 END ) * 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT + + ( CASE + 21 WHEN COUNT ( * ) / CAST ( NULL AS INTEGER ) + + 4 THEN NULL WHEN + 99 THEN NULL WHEN 37 THEN 24 END ) * 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-38
SELECT + 47 + - + ( 1 ) + - + 45 + + SUM( DISTINCT 97 ) * 90 DIV COUNT( * )
----
8731

skipif mysql # not compatible
query I rowsort label-38
SELECT + 47 + - + ( 1 ) + - + 45 + + SUM ( DISTINCT 97 ) * 90 / COUNT ( * )
----
8731

query I rowsort
SELECT ALL + 10 * + 21 - - 30
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT + SUM( + 15 ) + + + 77
----
92

skipif mysql # not compatible
query I rowsort label-40
SELECT + SUM ( + 15 ) + + + 77
----
92

query I rowsort
SELECT ALL - NULLIF ( 1, + + 52 * 56 + 65 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT + 42 + - COALESCE ( + - MIN( - - 97 ), + + 77, - 20 + 11 )
----
139

skipif mysql # not compatible
query I rowsort label-42
SELECT + 42 + - COALESCE ( + - MIN ( - - 97 ), + + 77, - 20 + 11 )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT + 59 * - ( - MIN( 77 ) )
----
4543

skipif mysql # not compatible
query I rowsort label-43
SELECT + 59 * - ( - MIN ( 77 ) )
----
4543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-44
SELECT - CAST( + - COALESCE ( - 15, + COUNT( + + 58 ), - 58 + + ( 60 ) * 56, + SUM( - 24 ) + - 42 ) AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-44
SELECT - CAST ( + - COALESCE ( - 15, + COUNT ( + + 58 ), - 58 + + ( 60 ) * 56, + SUM ( - 24 ) + - 42 ) AS INTEGER )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT + COALESCE ( + COALESCE ( 81, 14 - + 19 ), 61 ) - + CASE - 2 WHEN + ( - COUNT( * ) ) THEN 92 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-45
SELECT + COALESCE ( + COALESCE ( 81, 14 - + 19 ), 61 ) - + CASE - 2 WHEN + ( - COUNT ( * ) ) THEN 92 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT SUM( ( + 35 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-46
SELECT SUM ( ( + 35 ) ) AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-47
SELECT - 12 + - 56 DIV - 69 * + + MAX( ALL + 67 )
----
-12

skipif mysql # not compatible
query I rowsort label-47
SELECT - 12 + - 56 / - 69 * + + MAX ( ALL + 67 )
----
-12

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

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

query I rowsort
SELECT DISTINCT 47 * + 97 AS col0
----
4559

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

query I rowsort
SELECT ALL - 28 + - 14 + - 90 * 17 + + 16 AS col2
----
-1556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT + 76 + - - 32 + + 5 - - COUNT( * ) - + + COUNT( * ) + - 72 DIV 44 * + MIN( - 56 DIV 44 ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-52
SELECT + 76 + - - 32 + + 5 - - COUNT ( * ) - + + COUNT ( * ) + - 72 / 44 * + MIN ( - 56 / 44 ) AS col2
----
114

query I rowsort
SELECT ALL 82 * - + 80
----
-6560

query I rowsort
SELECT DISTINCT 40 + + - ( - - 4 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-55
SELECT - ( COUNT( ALL 8 ) ) col0, 13 AS col0
----
-1
13

skipif mysql # not compatible
query II rowsort label-55
SELECT - ( COUNT ( ALL 8 ) ) col0, 13 AS col0
----
-1
13

query I rowsort
SELECT ALL 75 + + + 88 * - 9 AS col2
----
-717

query I rowsort
SELECT ALL 34 + - - 7 AS col0
----
41

query I rowsort
SELECT + ( - + 71 ) + - 33 * 2 AS col1
----
-137

query I rowsort
SELECT - 39 * - + 86 AS col2
----
3354

query I rowsort
SELECT - 98 + 81
----
-17

query I rowsort
SELECT ALL + 93 * - 39 * - 49 AS col0
----
177723

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT ALL 16 DIV COALESCE ( - 30, 49 DIV - 15 + + 10 + - NULLIF ( 90, 31 * + ( 30 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL 16 / COALESCE ( - 30, 49 / - 15 + + 10 + - NULLIF ( 90, 31 * + ( 30 ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-63
SELECT ALL - 50 DIV - 22 + + 25 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL - 50 / - 22 + + 25 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-64
SELECT DISTINCT + NULLIF ( ( - - 31 ), + + 84 ) DIV + - COUNT( ALL CAST( + 80 AS DECIMAL ) ) + COALESCE ( - 5, - 56 )
----
-36

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT + NULLIF ( ( - - 31 ), + + 84 ) / + - COUNT ( ALL CAST ( + 80 AS REAL ) ) + COALESCE ( - 5, - 56 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-65
SELECT 48 * - - CASE - + 19 WHEN - CAST( NULL AS SIGNED ) THEN - ( 80 ) * + COUNT( * ) END - NULLIF ( - ( 5 ) - - 38, SUM( ALL + 38 ) ) + 31 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT 48 * - - CASE - + 19 WHEN - CAST ( NULL AS INTEGER ) THEN - ( 80 ) * + COUNT ( * ) END - NULLIF ( - ( 5 ) - - 38, SUM ( ALL + 38 ) ) + 31 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-66
SELECT DISTINCT COUNT( DISTINCT - 92 ) DIV + - 83 - - 57 + - 9
----
48

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT COUNT ( DISTINCT - 92 ) / + - 83 - - 57 + - 9
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT DISTINCT + + 64 DIV 95 - 61
----
-61

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT + + 64 / 95 - 61
----
-61

query I rowsort
SELECT - - 98 + - + 35 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-69
SELECT ALL - 93 * + 72 * + + CASE + + 75 WHEN - 25 + 89 THEN CAST( ( 81 ) AS SIGNED ) - + 39 END * - 72 + COUNT( * ) * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL - 93 * + 72 * + + CASE + + 75 WHEN - 25 + 89 THEN CAST ( ( 81 ) AS INTEGER ) - + 39 END * - 72 + COUNT ( * ) * + 28
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-71
SELECT SUM ( 94 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-72
SELECT DISTINCT - CASE CAST( NULL AS DECIMAL ) WHEN + 40 THEN - MIN( 40 ) + - 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT - CASE CAST ( NULL AS REAL ) WHEN + 40 THEN - MIN ( 40 ) + - 60 END
----
NULL

query I rowsort
SELECT 32 * - 48 + 29 * 5 - - - 42 AS col2
----
-1433

query I rowsort
SELECT 52 * 22 * - + 55
----
-62920

query I rowsort
SELECT ALL 61 * - + 41 + + ( - 7 )
----
-2508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-76
SELECT + 97 * 67 + - - 26 - - COUNT( * ) DIV - + 90
----
6525

skipif mysql # not compatible
query I rowsort label-76
SELECT + 97 * 67 + - - 26 - - COUNT ( * ) / - + 90
----
6525

onlyif mysql # aggregate syntax: 
query II rowsort label-77
SELECT DISTINCT - + 10, 62 * - MIN( ALL 9 ) AS col1
----
-10
-558

skipif mysql # not compatible
query II rowsort label-77
SELECT DISTINCT - + 10, 62 * - MIN ( ALL 9 ) AS col1
----
-10
-558

query I rowsort
SELECT ALL + - 13 * 57
----
-741

query I rowsort
SELECT DISTINCT + 41 * - 85 * + + 77 AS col2
----
-268345

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

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

query I rowsort
SELECT ALL 0 * - 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT 42 * 3 * - - COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-82
SELECT 42 * 3 * - - COUNT ( * )
----
126

query I rowsort
SELECT CASE 62 WHEN + 25 THEN - - 5 WHEN - ( + 71 ) THEN NULL WHEN 35 THEN - 68 ELSE + 11 END + - 15 AS col2
----
-4

query II rowsort
SELECT DISTINCT 13, 43 + + - 48 + - + 41 - + 56 * - 6 AS col1
----
13
290

query I rowsort
SELECT 51 * - - 7 AS col1
----
357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-86
SELECT ALL - CAST( + MIN( 83 ) AS SIGNED ) + + - 87 AS col1, + COALESCE ( + COUNT( * ), 71 + 38, 11 ) + 83 AS col2
----
-170
84

skipif mysql # not compatible
query II rowsort label-86
SELECT ALL - CAST ( + MIN ( 83 ) AS INTEGER ) + + - 87 AS col1, + COALESCE ( + COUNT ( * ), 71 + 38, 11 ) + 83 AS col2
----
-170
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-87
SELECT ALL 94 + + 98 + + + MIN( DISTINCT - + ( 71 ) ) + - 43 DIV 38 * 95 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL 94 + + 98 + + + MIN ( DISTINCT - + ( 71 ) ) + - 43 / 38 * 95 AS col1
----
26

query I rowsort
SELECT ALL - 87 * + ( 66 ) AS col0
----
-5742

query I rowsort
SELECT ALL 70 + 10
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-90
SELECT ALL 34 + - COUNT( * ) DIV 68 * - - 7 + 0 DIV + ( + 38 ) + 25
----
59

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL 34 + - COUNT ( * ) / 68 * - - 7 + 0 / + ( + 38 ) + 25
----
59

query II rowsort
SELECT 82 AS col0, ( 5 ) * + - 21 * + 13
----
82
-1365

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT ALL 28 * COALESCE ( + ( + - 0 ), + + 40 - + 91 ) DIV - ( 43 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL 28 * COALESCE ( + ( + - 0 ), + + 40 - + 91 ) / - ( 43 ) AS col2
----
0

query II rowsort
SELECT DISTINCT 91, - 46 * + 5 AS col1
----
91
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT ( + 81 ) + - - COALESCE ( + COUNT( * ), + 46 * + 30 )
----
82

skipif mysql # not compatible
query I rowsort label-95
SELECT ( + 81 ) + - - COALESCE ( + COUNT ( * ), + 46 * + 30 )
----
82

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

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

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

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

query I rowsort
SELECT ALL 75 + + 99
----
174

query II rowsort
SELECT ALL 80 - 86, 11 + - 46 AS col1
----
-6
-35

query I rowsort
SELECT ALL 92 * - 37
----
-3404

query II rowsort
SELECT 82 AS col1, - 77
----
82
-77

query I rowsort
SELECT ALL + COALESCE ( - 69, 52 ) AS col1
----
-69

query I rowsort
SELECT DISTINCT 64 * + + 37 + + 83 AS col1
----
2451

onlyif mysql # aggregate syntax: 
query II rowsort label-104
SELECT ALL + 46 AS col0, 42 * + - 57 + - SUM( ALL 73 ) - - 85 AS col1
----
46
-2382

skipif mysql # not compatible
query II rowsort label-104
SELECT ALL + 46 AS col0, 42 * + - 57 + - SUM ( ALL 73 ) - - 85 AS col1
----
46
-2382

query I rowsort
SELECT + 43 * 73 AS col1
----
3139

query I rowsort
SELECT ( + ( - NULLIF ( 57, 5 ) ) ) * - 88 AS col1
----
5016

onlyif mysql # aggregate syntax: 
query II rowsort label-107
SELECT ALL + 92 AS col0, COALESCE ( + CASE + 7 WHEN 1 * + 88 THEN NULL ELSE + 92 * 91 END, + 39, COUNT( * ), 16 * - 58, - ( 6 ) + + 17 )
----
92
8372

skipif mysql # not compatible
query II rowsort label-107
SELECT ALL + 92 AS col0, COALESCE ( + CASE + 7 WHEN 1 * + 88 THEN NULL ELSE + 92 * 91 END, + 39, COUNT ( * ), 16 * - 58, - ( 6 ) + + 17 )
----
92
8372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-108
SELECT - 41 AS col1, COUNT( * ) + - + ( + COALESCE ( CAST( + 70 AS SIGNED ), + 75, + 33 + - 42 ) )
----
-41
-69

skipif mysql # not compatible
query II rowsort label-108
SELECT - 41 AS col1, COUNT ( * ) + - + ( + COALESCE ( CAST ( + 70 AS INTEGER ), + 75, + 33 + - 42 ) )
----
-41
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-109
SELECT + COUNT( * ) DIV + 30 * CAST( - - 11 AS SIGNED ) * - + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-109
SELECT + COUNT ( * ) / + 30 * CAST ( - - 11 AS INTEGER ) * - + 55 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-110
SELECT ALL ( + - COUNT( * ) ) DIV - - 10 + - CAST( - 27 AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL ( + - COUNT ( * ) ) / - - 10 + - CAST ( - 27 AS INTEGER ) AS col1
----
27

query I rowsort
SELECT 28 * + 66 AS col1
----
1848

onlyif mysql # aggregate syntax: 
query II rowsort label-112
SELECT 37, - COUNT( * ) - + 31 col0
----
37
-32

skipif mysql # not compatible
query II rowsort label-112
SELECT 37, - COUNT ( * ) - + 31 col0
----
37
-32

query I rowsort
SELECT DISTINCT + 39 * + 34 * + - 58
----
-76908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-114
SELECT ALL - + COUNT( * ) AS col2, + ( - + CASE - 70 WHEN - 30 + - 19 THEN + MAX( ALL 1 ) * 9 WHEN ( + ( + COUNT( * ) ) ) THEN NULL WHEN 58 THEN 30 * + CAST( NULL AS SIGNED ) ELSE NULL END )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-114
SELECT ALL - + COUNT ( * ) AS col2, + ( - + CASE - 70 WHEN - 30 + - 19 THEN + MAX ( ALL 1 ) * 9 WHEN ( + ( + COUNT ( * ) ) ) THEN NULL WHEN 58 THEN 30 * + CAST ( NULL AS INTEGER ) ELSE NULL END )
----
-1
NULL

query I rowsort
SELECT DISTINCT - ( 22 ) AS col0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-116
SELECT ALL 76 DIV - 50 + - 33 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL 76 / - 50 + - 33 AS col2
----
-34

query I rowsort
SELECT + 15 * + 20 + - 63 AS col1
----
237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-118
SELECT 42 * - 68 * + CAST( + 6 AS SIGNED ) + - - 75 + + COUNT( * ) * COUNT( * ) AS col2
----
-17060

skipif mysql # not compatible
query I rowsort label-118
SELECT 42 * - 68 * + CAST ( + 6 AS INTEGER ) + - - 75 + + COUNT ( * ) * COUNT ( * ) AS col2
----
-17060

onlyif mysql # aggregate syntax: 
query II rowsort label-119
SELECT 80 AS col0, 97 * COUNT( * ) * - 68 + + 22 AS col0
----
80
-6574

skipif mysql # not compatible
query II rowsort label-119
SELECT 80 AS col0, 97 * COUNT ( * ) * - 68 + + 22 AS col0
----
80
-6574

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ALL - + MAX( DISTINCT 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL - + MAX ( DISTINCT 81 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT + 53 * + 73 + - COUNT( * )
----
3868

skipif mysql # not compatible
query I rowsort label-121
SELECT + 53 * + 73 + - COUNT ( * )
----
3868

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT + NULLIF ( - COUNT( * ), NULLIF ( 72, + + 32 + COUNT( * ) + 4 ) + 19 / 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-122
SELECT + NULLIF ( - COUNT ( * ), NULLIF ( 72, + + 32 + COUNT ( * ) + 4 ) + 19 / 73 )
----
-1

query I rowsort
SELECT ALL + 45 + - - 71 * - - 96 * + 3 AS col0
----
20493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-124
SELECT + + 72 * - 16 - - CAST( NULL AS SIGNED ) + + 34 - - 36 * - COALESCE ( COALESCE ( 19, - 46 / - 76 ), 40 ) + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-124
SELECT + + 72 * - 16 - - CAST ( NULL AS INTEGER ) + + 34 - - 36 * - COALESCE ( COALESCE ( 19, - 46 / - 76 ), 40 ) + 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-125
SELECT 90 * - 68 * + - 74 * - 52 + - CAST( - - NULLIF ( + 84, - 66 * - COUNT( * ) ) AS SIGNED ) DIV + 9 + - 82 AS col2
----
-23549851

skipif mysql # not compatible
query I rowsort label-125
SELECT 90 * - 68 * + - 74 * - 52 + - CAST ( - - NULLIF ( + 84, - 66 * - COUNT ( * ) ) AS INTEGER ) / + 9 + - 82 AS col2
----
-23549851

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-126
SELECT + 29 * + CASE 3 WHEN - - 89 THEN + NULLIF ( - 7, + - ( + 47 ) ) WHEN - 5 * 46 THEN NULL ELSE NULL END + + 6 / + CAST( 60 / - 13 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-126
SELECT + 29 * + CASE 3 WHEN - - 89 THEN + NULLIF ( - 7, + - ( + 47 ) ) WHEN - 5 * 46 THEN NULL ELSE NULL END + + 6 / + CAST ( 60 / - 13 AS REAL )
----
NULL

query I rowsort
SELECT ALL + 28 + + 90 col2
----
118

query I rowsort
SELECT 67 + + 30
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL COUNT( * ) * - 90 * COUNT( 73 )
----
-90

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL COUNT ( * ) * - 90 * COUNT ( 73 )
----
-90

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-131
SELECT ALL - 65 + - SUM( ALL + 51 ) / CAST( NULL AS DECIMAL ) / + 71 + - - 93 + - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - 65 + - SUM ( ALL + 51 ) / CAST ( NULL AS REAL ) / + 71 + - - 93 + - - 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-132
SELECT 28 * - MIN( ALL + + 84 ) + - + CAST( NULL AS SIGNED ) + + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-132
SELECT 28 * - MIN ( ALL + + 84 ) + - + CAST ( NULL AS INTEGER ) + + + 25
----
NULL

query I rowsort
SELECT ALL + 92 * + 92 * 55
----
465520

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT COUNT( * ) + + + ( + 1 ) * - 54 * - 21 * + MIN( ALL + 33 )
----
37423

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT COUNT ( * ) + + + ( + 1 ) * - 54 * - 21 * + MIN ( ALL + 33 )
----
37423

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT ALL CASE + 94 WHEN + 77 THEN - COUNT( * ) END - - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL CASE + 94 WHEN + 77 THEN - COUNT ( * ) END - - - 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-137
SELECT ALL + 93 * - 37, 85 * + CAST( CASE + 53 WHEN + - 40 THEN CASE + 91 WHEN + COUNT( * ) * 20 THEN NULL ELSE - CASE - 23 WHEN - 28 THEN + 84 + 6 WHEN 50 THEN NULL ELSE NULL END + + 70 END ELSE NULL END AS SIGNED ) * + 39 AS col2
----
-3441
NULL

skipif mysql # not compatible
query II rowsort label-137
SELECT ALL + 93 * - 37, 85 * + CAST ( CASE + 53 WHEN + - 40 THEN CASE + 91 WHEN + COUNT ( * ) * 20 THEN NULL ELSE - CASE - 23 WHEN - 28 THEN + 84 + 6 WHEN 50 THEN NULL ELSE NULL END + + 70 END ELSE NULL END AS INTEGER ) * + 39 AS col2
----
-3441
NULL

query II rowsort
SELECT DISTINCT - 38 * 16, + 40 + - + 45 + 95 + + 89 AS col1
----
-608
179

query I rowsort
SELECT 2 + + 80 + + 72 * 47
----
3466

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT DISTINCT NULLIF ( 29, + 0 * - COUNT( * ) + + 36 ) col2
----
29

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT NULLIF ( 29, + 0 * - COUNT ( * ) + + 36 ) col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-141
SELECT DISTINCT 33 DIV - MIN( 8 )
----
-4

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT 33 / - MIN ( 8 )
----
-4

query I rowsort
SELECT 11 + + + 82 - + 45 * + 90 * 89 AS col1
----
-360357

query I rowsort
SELECT ALL - 66 - 6 + 5
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-144
SELECT 74 / 99 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-144
SELECT 74 / 99 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 97 * - - 56 * + - 87
----
472584

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT + COALESCE ( - + 68, - COUNT( * ) - 13 * 36, - 85 ) * + - 53 col2
----
3604

skipif mysql # not compatible
query I rowsort label-147
SELECT + COALESCE ( - + 68, - COUNT ( * ) - 13 * 36, - 85 ) * + - 53 col2
----
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT + 24 + + SUM( DISTINCT + 59 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-148
SELECT + 24 + + SUM ( DISTINCT + 59 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT DISTINCT MIN( ALL - + 75 ) * - 52
----
3900

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT MIN ( ALL - + 75 ) * - 52
----
3900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT ALL - 10 * 88 + 14 + + + ( + - 58 ) - 0 + + - 56 * CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL - 10 * 88 + 14 + + + ( + - 58 ) - 0 + + - 56 * CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 73 * + 0 + - ( 31 ) + - - 9 + - 54
----
-76

query I rowsort
SELECT ALL + COALESCE ( - + 19, - - 76 * + 9 * - 39 ) AS col2
----
-19

query I rowsort
SELECT DISTINCT - 97 * 21 + + NULLIF ( + - ( + + 37 ), + + 93 ) * + 65 + + 11
----
-4431

query I rowsort
SELECT ALL - 25 * + - 13 + 60 + + 33 AS col2
----
418

query I rowsort
SELECT + - 11 * - CASE + 94 WHEN - AVG ( DISTINCT 60 ) THEN + 71 END + 2 AS col0
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - 69, + 12 + - 14 )
----
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT + ( NULLIF ( - MAX( DISTINCT - ( NULLIF ( - 18, - 29 ) ) ), - + 46 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-158
SELECT + ( NULLIF ( - MAX ( DISTINCT - ( NULLIF ( - 18, - 29 ) ) ), - + 46 ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL + COUNT( * ) * 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL + COUNT ( * ) * 5 AS col1
----
5

query II rowsort
SELECT ALL + 41, + 89 + + ( + + 40 ) AS col1
----
41
129

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT - 53 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-161
SELECT - 53 / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL ( - 87 ) * 89 + - ( COALESCE ( 2, 93 * - 75, + COUNT( 76 ) ) ) * 40
----
-7823

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL ( - 87 ) * 89 + - ( COALESCE ( 2, 93 * - 75, + COUNT ( 76 ) ) ) * 40
----
-7823

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-163
SELECT - 70 * - CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) * + COALESCE ( + CASE + - 78 WHEN + CASE - 65 WHEN 80 THEN CAST( NULL AS SIGNED ) + + 17 END THEN 27 + - 11 WHEN 89 THEN NULL END, + ( + 26 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT - 70 * - CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) * + COALESCE ( + CASE + - 78 WHEN + CASE - 65 WHEN 80 THEN CAST ( NULL AS INTEGER ) + + 17 END THEN 27 + - 11 WHEN 89 THEN NULL END, + ( + 26 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-164
SELECT + COUNT( * ) * - 47 DIV + 3 AS col1, + 54
----
-15
54

skipif mysql # not compatible
query II rowsort label-164
SELECT + COUNT ( * ) * - 47 / + 3 AS col1, + 54
----
-15
54

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

query I rowsort
SELECT DISTINCT NULLIF ( + - 1, + 78 ) AS col2
----
-1

query II rowsort
SELECT ALL + 97 - + 28 * 84, + 25 AS col0
----
-2255
25

query I rowsort
SELECT - ( 92 ) * - 0
----
0

query I rowsort
SELECT ALL 16 * 74 AS col1
----
1184

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

query I rowsort
SELECT ALL ( + + 88 ) col2
----
88

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

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

query I rowsort
SELECT ALL NULLIF ( 76, + 27 * - + 98 / 44 )
----
76

query II rowsort
SELECT 1, - NULLIF ( 85, + - 89 ) AS col2
----
1
-85

query II rowsort
SELECT - 48, 49 * - + 88 - - 81 AS col0
----
-48
-4231

onlyif mysql # DIV for integer division: 
query I rowsort label-176
SELECT - 33 DIV - + 43 col0
----
0

skipif mysql # not compatible
query I rowsort label-176
SELECT - 33 / - + 43 col0
----
0

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

query II rowsort
SELECT 54 AS col1, 3 AS col1
----
54
3

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT + - 19 + COUNT( * ) * + - COUNT( * ) - + NULLIF ( - + COUNT( * ), 66 + - 85 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-179
SELECT + - 19 + COUNT ( * ) * + - COUNT ( * ) - + NULLIF ( - + COUNT ( * ), 66 + - 85 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL - COUNT( DISTINCT - + 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL - COUNT ( DISTINCT - + 67 )
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-182
SELECT ALL + CAST( NULL AS SIGNED ), + 69 DIV + - 87 * 15 * 28 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-182
SELECT ALL + CAST ( NULL AS INTEGER ), + 69 / + - 87 * 15 * 28 AS col2
----
NULL
0

query II rowsort
SELECT ALL + 45, + 44 AS col0
----
45
44

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

skipif mysql # not compatible
query I rowsort label-184
SELECT + COUNT ( ALL + ( + 30 ) ) / 39 AS col0
----
0

query I rowsort
SELECT ALL + ( + 77 ) col0
----
77

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

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT + COUNT ( * ) / + 13 + 42
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-187
SELECT DISTINCT 56 DIV - COUNT( * ) + + 59
----
3

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT 56 / - COUNT ( * ) + + 59
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT ALL 94 DIV + ( + 38 ) + - 75 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL 94 / + ( + 38 ) + - 75 / + 46
----
1

query II rowsort
SELECT DISTINCT + - 56, 8 * 62 AS col0
----
-56
496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-190
SELECT 57 DIV - + ( + 37 ) - + CASE + 98 WHEN 40 THEN - 34 + - 39 * 55 WHEN - COALESCE ( 13, + 45 + + 16 ) THEN NULL ELSE + COUNT( * ) * + COUNT( * ) + 19 END AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-190
SELECT 57 / - + ( + 37 ) - + CASE + 98 WHEN 40 THEN - 34 + - 39 * 55 WHEN - COALESCE ( 13, + 45 + + 16 ) THEN NULL ELSE + COUNT ( * ) * + COUNT ( * ) + 19 END AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT ALL COUNT( * ) * - 58 * - - COUNT( 43 ) + 61
----
3

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL COUNT ( * ) * - 58 * - - COUNT ( 43 ) + 61
----
3

query I rowsort
SELECT + 77 * - 48
----
-3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-193
SELECT ALL COUNT( * ) DIV + 96 + + 49 + MIN( 9 ) * 98 * - + 13 AS col2, 43 DIV - + 38 AS col0
----
-11417
-1

skipif mysql # not compatible
query II rowsort label-193
SELECT ALL COUNT ( * ) / + 96 + + 49 + MIN ( 9 ) * 98 * - + 13 AS col2, 43 / - + 38 AS col0
----
-11417
-1

query I rowsort
SELECT + 41 + - 24 * + + 83
----
-1951

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-196
SELECT + NULLIF ( CAST( NULL AS SIGNED ), CASE 52 WHEN 49 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + - 93 END ) + - 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-196
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), CASE 52 WHEN 49 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + - 93 END ) + - 55 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-197
SELECT CAST( NULL AS SIGNED ) * - - COUNT( * ) + NULLIF ( 64, + SUM( DISTINCT - 41 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + NULLIF ( 64, + SUM ( DISTINCT - 41 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-198
SELECT ALL 1 * - 56 - + 46 DIV - COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL 1 * - 56 - + 46 / - COUNT ( * ) AS col2
----
-10

query I rowsort
SELECT + 11 * - 1
----
-11

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

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

query I rowsort
SELECT + 63 + + 61
----
124

query I rowsort
SELECT ALL COALESCE ( + - 37, + 21 * + 27 ) * + + 31 - - 7
----
-1140

query I rowsort
SELECT - 40 + - 14 AS col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-204
SELECT 18 * - 48 * 74 * - 4 * - 99 DIV + - COUNT( * ) AS col0
----
25318656

skipif mysql # not compatible
query I rowsort label-204
SELECT 18 * - 48 * 74 * - 4 * - 99 / + - COUNT ( * ) AS col0
----
25318656

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL + ( + COUNT( * ) ) * + + 78
----
78

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + ( + COUNT ( * ) ) * + + 78
----
78

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

query I rowsort
SELECT + CASE - 95 WHEN ( 90 ) * 10 THEN - 81 + + 62 WHEN 54 + - + ( + 14 ) THEN 54 - + 7 * + 14 END * - 60 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 82 + - 92
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL - + 80 + COUNT( ALL - 10 ) * - ( - 69 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - + 80 + COUNT ( ALL - 10 ) * - ( - 69 ) AS col2
----
-11

query I rowsort
SELECT ALL - ( 12 ) + 43
----
31

query I rowsort
SELECT + 34 + - 61 AS col1
----
-27

query I rowsort
SELECT ( + 69 ) + + - 80 + CASE + 98 WHEN 22 THEN - + 75 + - + 66 + + 55 END col0
----
NULL

query I rowsort
SELECT - 18 - 25 - 68
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT + + COUNT( * ) + - - 56 * 47
----
2633

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT + + COUNT ( * ) + - - 56 * 47
----
2633

query I rowsort
SELECT ALL - 67 + + ( - 96 )
----
-163

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

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT DISTINCT ( + SUM( - + 94 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT ( + SUM ( - + 94 ) )
----
-94

query I rowsort
SELECT DISTINCT - - 12 + + 51
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-219
SELECT 21 * - 73 + - + 53 DIV + - MAX( ALL 57 ) AS col2
----
-1533

skipif mysql # not compatible
query I rowsort label-219
SELECT 21 * - 73 + - + 53 / + - MAX ( ALL 57 ) AS col2
----
-1533

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT + 71 * + COALESCE ( + 63, - - ( + COUNT( * ) ) ) + + NULLIF ( - COUNT( * ), ( - ( 47 ) ) / COUNT( * ) + COUNT( * ) * - 95 ) * + 61
----
4412

skipif mysql # not compatible
query I rowsort label-220
SELECT + 71 * + COALESCE ( + 63, - - ( + COUNT ( * ) ) ) + + NULLIF ( - COUNT ( * ), ( - ( 47 ) ) / COUNT ( * ) + COUNT ( * ) * - 95 ) * + 61
----
4412

query I rowsort
SELECT + 11 + + + 65 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT 48 * + COUNT( * ) * + 85
----
4080

skipif mysql # not compatible
query I rowsort label-222
SELECT 48 * + COUNT ( * ) * + 85
----
4080

query I rowsort
SELECT 51 * + 93 AS col0
----
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT MAX( + - 12 ) * + - 94 AS col2
----
1128

skipif mysql # not compatible
query I rowsort label-224
SELECT MAX ( + - 12 ) * + - 94 AS col2
----
1128

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT MIN( ALL + 67 ) + + 77 + 79 * - MAX( ALL + 32 )
----
-2384

skipif mysql # not compatible
query I rowsort label-225
SELECT MIN ( ALL + 67 ) + + 77 + 79 * - MAX ( ALL + 32 )
----
-2384

query I rowsort
SELECT DISTINCT - ( 55 ) AS col0
----
-55

query I rowsort
SELECT ALL 29 - 77
----
-48

query I rowsort
SELECT 86 * - 64 AS col0
----
-5504

query I rowsort
SELECT DISTINCT - ( - 63 ) AS col1
----
63

query I rowsort
SELECT DISTINCT 99 * + 13 * 64 * COALESCE ( - 78, - 48 ) * - 4
----
25698816

query I rowsort
SELECT ALL - 79 * 56 AS col0
----
-4424

query I rowsort
SELECT 76 * + 44
----
3344

query I rowsort
SELECT 82 - + 65 + + 65
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT 18 * + COALESCE ( - - COUNT( * ), - ( - + NULLIF ( + 87, + 78 * - 80 + + - COUNT( * ) ) ) )
----
18

skipif mysql # not compatible
query I rowsort label-234
SELECT 18 * + COALESCE ( - - COUNT ( * ), - ( - + NULLIF ( + 87, + 78 * - 80 + + - COUNT ( * ) ) ) )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-235
SELECT DISTINCT 63 * - - CASE + - CAST( NULL AS SIGNED ) WHEN - 87 THEN NULL WHEN + + AVG ( - 94 ) THEN + 49 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT 63 * - - CASE + - CAST ( NULL AS INTEGER ) WHEN - 87 THEN NULL WHEN + + AVG ( - 94 ) THEN + 49 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT CASE 20 WHEN 41 THEN - 55 ELSE NULL END / + + COUNT( * ) - 75 * - MAX( + 6 ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT CASE 20 WHEN 41 THEN - 55 ELSE NULL END / + + COUNT ( * ) - 75 * - MAX ( + 6 ) * 92
----
NULL

query I rowsort
SELECT DISTINCT + 97 + + 6 AS col0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-238
SELECT ALL - ( + 83 ) * - 53 / + + 89 * + - COUNT( * ) * - 81 + - 70 + + + CAST( NULL AS SIGNED ) - + MIN( DISTINCT - - 86 ) + 73 * 73 * + MAX( DISTINCT + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL - ( + 83 ) * - 53 / + + 89 * + - COUNT ( * ) * - 81 + - 70 + + + CAST ( NULL AS INTEGER ) - + MIN ( DISTINCT - - 86 ) + 73 * 73 * + MAX ( DISTINCT + 49 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT + - 82 + + - ( COUNT ( * ) ) AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-240
SELECT DISTINCT 31 DIV + ( 62 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT 31 / + ( 62 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT + COUNT( * ) * - + 26 + + + COUNT( DISTINCT 23 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-241
SELECT + COUNT ( * ) * - + 26 + + + COUNT ( DISTINCT 23 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT ALL + COUNT( * ) + - 75
----
-74

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL + COUNT ( * ) + - 75
----
-74

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

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

query I rowsort
SELECT DISTINCT - 29 + - 81 AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT DISTINCT + 60 * + - 66 + - MIN( - 75 ) AS col2
----
-3885

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT + 60 * + - 66 + - MIN ( - 75 ) AS col2
----
-3885

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT ALL - 38 + MIN( DISTINCT 28 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL - 38 + MIN ( DISTINCT 28 ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-247
SELECT DISTINCT NULLIF ( - CAST( NULLIF ( - SUM( DISTINCT + 89 ), ( - - ( - + 41 ) ) + - 34 + COALESCE ( 11, COUNT( * ), COUNT( * ) * COUNT( * ) ) + + 1 ) AS SIGNED ), 34 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT NULLIF ( - CAST ( NULLIF ( - SUM ( DISTINCT + 89 ), ( - - ( - + 41 ) ) + - 34 + COALESCE ( 11, COUNT ( * ), COUNT ( * ) * COUNT ( * ) ) + + 1 ) AS INTEGER ), 34 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT DISTINCT + 10 - + - 46 + COUNT( * ) * + ( ( - MAX( ALL - - 44 ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT + 10 - + - 46 + COUNT ( * ) * + ( ( - MAX ( ALL - - 44 ) ) )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-249
SELECT 35 + - 28 DIV - + 92 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-249
SELECT 35 + - 28 / - + 92 AS col2
----
35

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

onlyif mysql # DIV for integer division: 
query I rowsort label-251
SELECT 0 - - 20 * 85 DIV + 25 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-251
SELECT 0 - - 20 * 85 / + 25 AS col0
----
68

query I rowsort
SELECT + 87 * 18 + - 30 AS col1
----
1536

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-253
SELECT COALESCE ( + 26, - 57 DIV COUNT( * ) * MAX( ALL - - 7 ) ) AS col2, + 80 + MAX( 22 ) * + - 33 DIV 33 * 9 + + 52 DIV MIN( DISTINCT + 28 )
----
26
-117

skipif mysql # not compatible
query II rowsort label-253
SELECT COALESCE ( + 26, - 57 / COUNT ( * ) * MAX ( ALL - - 7 ) ) AS col2, + 80 + MAX ( 22 ) * + - 33 / 33 * 9 + + 52 / MIN ( DISTINCT + 28 )
----
26
-117

query I rowsort
SELECT DISTINCT 50 * + 49 * - 56 - + 43
----
-137243

query I rowsort
SELECT 65 * + + CASE + 65 WHEN + 35 + + - 79 + 91 THEN - 72 + - 79 - 88 END - COALESCE ( 8, - 29 ) + + 46 * - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT 86 * - + COALESCE ( - - COUNT( * ), + 42 + - COUNT( * ) ) * 26 AS col0
----
-2236

skipif mysql # not compatible
query I rowsort label-256
SELECT 86 * - + COALESCE ( - - COUNT ( * ), + 42 + - COUNT ( * ) ) * 26 AS col0
----
-2236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-257
SELECT + 74 DIV + COUNT( * ) - - 47 * - COUNT( + 0 ) + - + 7 + - 29 - COUNT( * ) * 37 * - 5 AS col0
----
176

skipif mysql # not compatible
query I rowsort label-257
SELECT + 74 / + COUNT ( * ) - - 47 * - COUNT ( + 0 ) + - + 7 + - 29 - COUNT ( * ) * 37 * - 5 AS col0
----
176

query I rowsort
SELECT ALL + 65 * - 98
----
-6370

query II rowsort
SELECT ALL - 66 col1, + 51
----
-66
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ALL + NULLIF ( - CASE ( + - 32 ) WHEN + COUNT( * ) + + 65 THEN - - 94 WHEN - 13 THEN NULL END, - + 33 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL + NULLIF ( - CASE ( + - 32 ) WHEN + COUNT ( * ) + + 65 THEN - - 94 WHEN - 13 THEN NULL END, - + 33 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-262
SELECT - ( + 88 ) DIV - 48
----
1

skipif mysql # not compatible
query I rowsort label-262
SELECT - ( + 88 ) / - 48
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-264
SELECT - 10 * 94 * - - CAST( 1 AS SIGNED ) AS col1, + 94 * 76 DIV + + COUNT( * ) AS col1
----
-940
7144

skipif mysql # not compatible
query II rowsort label-264
SELECT - 10 * 94 * - - CAST ( 1 AS INTEGER ) AS col1, + 94 * 76 / + + COUNT ( * ) AS col1
----
-940
7144

query I rowsort
SELECT - 16 * ( + - 51 ) AS col0
----
816

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

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL - 76 * - COUNT ( * ) + + COUNT ( * ) / + + 22 * + 51 AS col1
----
76

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

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

query I rowsort
SELECT 3 * 74 * - + 11 - + - 58
----
-2384

onlyif mysql # DIV for integer division: 
query I rowsort label-269
SELECT + 93 DIV 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-269
SELECT + 93 / 58 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT + COUNT( * ) - - 6 + 36
----
43

skipif mysql # not compatible
query I rowsort label-270
SELECT + COUNT ( * ) - - 6 + 36
----
43

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-272
SELECT DISTINCT 73 * - + 21 + + 92 * + 72, 0 DIV 57 AS col1
----
5091
0

skipif mysql # not compatible
query II rowsort label-272
SELECT DISTINCT 73 * - + 21 + + 92 * + 72, 0 / 57 AS col1
----
5091
0

query I rowsort
SELECT ALL ( + ( + 73 ) ) * + 4 + + 27 col0
----
319

query II rowsort
SELECT DISTINCT + 85 AS col0, - 5 + + - 89
----
85
-94

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

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT COUNT ( * ) + + 81 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT - SUM( ALL 58 ) * + 63 + + 78 AS col0
----
-3576

skipif mysql # not compatible
query I rowsort label-276
SELECT - SUM ( ALL 58 ) * + 63 + + 78 AS col0
----
-3576

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT ALL - CASE 18 WHEN - - 12 * 37 THEN - 72 + + 8 - COUNT( * ) WHEN + COUNT( * ) THEN NULL END + 6 * - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL - CASE 18 WHEN - - 12 * 37 THEN - 72 + + 8 - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL END + 6 * - - 48
----
NULL

query II rowsort
SELECT 4, - ( 77 ) * - 35 AS col0
----
4
2695

query II rowsort
SELECT - 6 col2, + 38 AS col0
----
-6
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT - COUNT( * ) * - 59 * - 37 AS col1
----
-2183

skipif mysql # not compatible
query I rowsort label-281
SELECT - COUNT ( * ) * - 59 * - 37 AS col1
----
-2183

onlyif mysql # aggregate syntax: 
query II rowsort label-282
SELECT - MAX( 60 ) AS col1, 68 * ( 40 ) * + + 12 AS col1
----
-60
32640

skipif mysql # not compatible
query II rowsort label-282
SELECT - MAX ( 60 ) AS col1, 68 * ( 40 ) * + + 12 AS col1
----
-60
32640

query I rowsort
SELECT DISTINCT - 0 + ( 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL NULLIF ( 1, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL NULLIF ( 1, + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + + 61 * + 75 AS col0
----
4575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-286
SELECT ALL - 92 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL - 92 - - - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - 10 * 64
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT ALL 49 * + 84 * - COUNT( * ) AS col2
----
-4116

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL 49 * + 84 * - COUNT ( * ) AS col2
----
-4116

query I rowsort
SELECT + 23 * 24 col2
----
552

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT - 7 DIV 9 col1
----
0

skipif mysql # not compatible
query I rowsort label-291
SELECT - 7 / 9 col1
----
0

query I rowsort
SELECT + - 34 + - 60
----
-94

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT ALL 89 * - AVG ( DISTINCT 74 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL 89 * - AVG ( DISTINCT 74 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT + MIN( DISTINCT 17 ) * - 84 col1
----
-1428

skipif mysql # not compatible
query I rowsort label-295
SELECT + MIN ( DISTINCT 17 ) * - 84 col1
----
-1428

query I rowsort
SELECT ALL 0 * - NULLIF ( 97, + 65 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT - ( 69 ), COUNT( * ) * - 52 AS col2
----
-69
-52

skipif mysql # not compatible
query II rowsort label-297
SELECT - ( 69 ), COUNT ( * ) * - 52 AS col2
----
-69
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-298
SELECT + ( + 68 ), + MAX( + 87 ) - + - 52 + - NULLIF ( - + ( 37 ), + 97 - + 70 ) + - 67 * + 12 * 62 AS col1
----
68
-49672

skipif mysql # not compatible
query II rowsort label-298
SELECT + ( + 68 ), + MAX ( + 87 ) - + - 52 + - NULLIF ( - + ( 37 ), + 97 - + 70 ) + - 67 * + 12 * 62 AS col1
----
68
-49672

query I rowsort
SELECT ( ( - 54 ) )
----
-54

query II rowsort
SELECT - 40 + - - 70 AS col0, - 45 * - ( - 93 ) + - 43
----
30
-4228

onlyif mysql # DIV for integer division: 
query I rowsort label-301
SELECT ALL 26 DIV + - 31 + + 16 * 13 AS col2
----
208

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL 26 / + - 31 + + 16 * 13 AS col2
----
208

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

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

query I rowsort
SELECT - 34 + - 3 * - 23 AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-304
SELECT 7 * - 90 + - + CAST( CASE + 10 WHEN + 58 THEN NULL WHEN - 46 + - + 86 THEN - 54 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-304
SELECT 7 * - 90 + - + CAST ( CASE + 10 WHEN + 58 THEN NULL WHEN - 46 + - + 86 THEN - 54 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-305
SELECT DISTINCT COUNT( * ) * - - 47 DIV + 28 + - 1 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT COUNT ( * ) * - - 47 / + 28 + - 1 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-306
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) AS col0, 4 * + - 4 * - 45 * SUM( ALL - - 17 ) col2
----
NULL
12240

skipif mysql # not compatible
query II rowsort label-306
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) AS col0, 4 * + - 4 * - 45 * SUM ( ALL - - 17 ) col2
----
NULL
12240

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL + COUNT( * ) * - COUNT( * ) + + 7
----
6

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + + 7
----
6

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

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

query II rowsort
SELECT + 62 * - 39 col1, - ( 97 ) AS col1
----
-2418
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT - 39 * MIN( ALL + 80 ) * - 25 + - 45
----
77955

skipif mysql # not compatible
query I rowsort label-310
SELECT - 39 * MIN ( ALL + 80 ) * - 25 + - 45
----
77955

query II rowsort
SELECT - 78 - - 11 col1, - 29
----
-67
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT - - 51 * - SUM( 86 ) * + 17 - + 88 col1
----
-74650

skipif mysql # not compatible
query I rowsort label-312
SELECT - - 51 * - SUM ( 86 ) * + 17 - + 88 col1
----
-74650

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT + + SUM( - ( - 36 ) ) * 12 AS col2
----
432

skipif mysql # not compatible
query I rowsort label-313
SELECT + + SUM ( - ( - 36 ) ) * 12 AS col2
----
432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-314
SELECT ALL + CASE 93 WHEN - 15 * - 87 - + ( NULLIF ( 96, CAST( NULL AS SIGNED ) / + 49 ) ) - COALESCE ( - 75, - SUM( - 12 ) * + 95 ) + - COALESCE ( + SUM( 51 ), COUNT( * ), + 52 * COUNT( * ) ) THEN NULL WHEN 2 / COUNT( * ) THEN 57 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL + CASE 93 WHEN - 15 * - 87 - + ( NULLIF ( 96, CAST ( NULL AS INTEGER ) / + 49 ) ) - COALESCE ( - 75, - SUM ( - 12 ) * + 95 ) + - COALESCE ( + SUM ( 51 ), COUNT ( * ), + 52 * COUNT ( * ) ) THEN NULL WHEN 2 / COUNT ( * ) THEN 57 ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT - - 35 * 6 - + 35
----
175

query I rowsort
SELECT - + 15 - + + 23 * + 22
----
-521

query I rowsort
SELECT DISTINCT COALESCE ( + 17, - 1 + + ( 55 ) )
----
17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-319
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - ( - CAST( NULL AS DECIMAL ) ) - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - ( - CAST ( NULL AS REAL ) ) - 11 AS col2
----
NULL

query I rowsort
SELECT ALL + + 93 * 60 * + 79 AS col2
----
440820

query I rowsort
SELECT - 8 * + + 66
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT + 77 * - COALESCE ( + SUM( - 15 ), - COALESCE ( - + COUNT( * ), - + COUNT( * ) ), + 81 + - 3 ) - + + 0 * - - 38
----
1155

skipif mysql # not compatible
query I rowsort label-322
SELECT + 77 * - COALESCE ( + SUM ( - 15 ), - COALESCE ( - + COUNT ( * ), - + COUNT ( * ) ), + 81 + - 3 ) - + + 0 * - - 38
----
1155

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

skipif mysql # not compatible
query I rowsort label-323
SELECT - COUNT ( * ) + 24 / + 97 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-324
SELECT - ( - 70 ) AS col1, + COUNT( * ) + - 54 AS col1
----
70
-53

skipif mysql # not compatible
query II rowsort label-324
SELECT - ( - 70 ) AS col1, + COUNT ( * ) + - 54 AS col1
----
70
-53

query I rowsort
SELECT - - 89 * + 1 * 72 AS col1
----
6408

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-327
SELECT DISTINCT 12 + + 6 DIV + + 66 AS col2, 44 * + - COUNT( * )
----
12
-44

skipif mysql # not compatible
query II rowsort label-327
SELECT DISTINCT 12 + + 6 / + + 66 AS col2, 44 * + - COUNT ( * )
----
12
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-328
SELECT NULLIF ( - 93, - 3 ) + + 66 DIV + 99 col0
----
-93

skipif mysql # not compatible
query I rowsort label-328
SELECT NULLIF ( - 93, - 3 ) + + 66 / + 99 col0
----
-93

query I rowsort
SELECT 76 * 24
----
1824

query I rowsort
SELECT DISTINCT 40 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL CASE + - 61 WHEN - 63 * + 24 THEN COUNT( * ) * - ( + 86 ) ELSE NULL END * - 24 + + COALESCE ( - 1, 59 - - + 72 ) - - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL CASE + - 61 WHEN - 63 * + 24 THEN COUNT ( * ) * - ( + 86 ) ELSE NULL END * - 24 + + COALESCE ( - 1, 59 - - + 72 ) - - 26 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - 50, - + 25 ) * - + 86 + + - 35 AS col0
----
4265

onlyif mysql # DIV for integer division: 
query II rowsort label-333
SELECT 99 AS col2, 68 - + - 45 DIV - 66 AS col2
----
99
68

skipif mysql # not compatible
query II rowsort label-333
SELECT 99 AS col2, 68 - + - 45 / - 66 AS col2
----
99
68

query II rowsort
SELECT + 29, ( 70 ) AS col2
----
29
70

query I rowsort
SELECT ALL 93 + 96 AS col2
----
189

query II rowsort
SELECT 80 AS col2, - 16
----
80
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-337
SELECT ALL + ( - CASE - + 18 WHEN + AVG ( DISTINCT + 79 ) THEN NULL WHEN ( - 60 ) + - + CAST( NULL AS SIGNED ) THEN + 64 WHEN COUNT( + 30 ) THEN NULL ELSE ( - + MIN( - 35 ) ) * + 27 END ) + ( 99 ) * - NULLIF ( - COUNT( * ) * + 15 + - 90, - 81 ) AS col0
----
9450

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + ( - CASE - + 18 WHEN + AVG ( DISTINCT + 79 ) THEN NULL WHEN ( - 60 ) + - + CAST ( NULL AS INTEGER ) THEN + 64 WHEN COUNT ( + 30 ) THEN NULL ELSE ( - + MIN ( - 35 ) ) * + 27 END ) + ( 99 ) * - NULLIF ( - COUNT ( * ) * + 15 + - 90, - 81 ) AS col0
----
9450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-338
SELECT ALL CAST( NULL AS SIGNED ) + 61 + 5 / - 21 * + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL CAST ( NULL AS INTEGER ) + 61 + 5 / - 21 * + + 85
----
NULL

query I rowsort
SELECT 52 * 65
----
3380

query I rowsort
SELECT + - 58 * 96 + + - 4 + + - 78 + 12 * - 4 - + 19
----
-5717

query I rowsort
SELECT ALL - - 46 * - - CASE 57 WHEN + AVG ( DISTINCT + 33 ) THEN 84 ELSE NULL END + - - 61 col2
----
NULL

query I rowsort
SELECT 3 * + 51 col0
----
153

query I rowsort
SELECT - 50 * 71 + 20 * + - 28 AS col2
----
-4110

onlyif mysql # aggregate syntax: 
query II rowsort label-344
SELECT 45 * + COUNT( * ) + - + 82 AS col2, 97 AS col2
----
-37
97

skipif mysql # not compatible
query II rowsort label-344
SELECT 45 * + COUNT ( * ) + - + 82 AS col2, 97 AS col2
----
-37
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-345
SELECT DISTINCT - + 3 * + - AVG ( - CAST( NULL AS SIGNED ) ) AS col0, + 95
----
NULL
95

skipif mysql # not compatible
query II rowsort label-345
SELECT DISTINCT - + 3 * + - AVG ( - CAST ( NULL AS INTEGER ) ) AS col0, + 95
----
NULL
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-346
SELECT - COUNT( ALL - - 42 ) + + COALESCE ( - COUNT( * ), + + 80 * + CASE - ( - CAST( NULL AS SIGNED ) ) WHEN - - 69 * + 6 * 91 * + 54 + + COUNT( * ) + 88 THEN ( - 25 ) DIV + ( - 44 + + 29 * 75 ) + 8 WHEN 1 THEN NULL END * - 98 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-346
SELECT - COUNT ( ALL - - 42 ) + + COALESCE ( - COUNT ( * ), + + 80 * + CASE - ( - CAST ( NULL AS INTEGER ) ) WHEN - - 69 * + 6 * 91 * + 54 + + COUNT ( * ) + 88 THEN ( - 25 ) / + ( - 44 + + 29 * 75 ) + 8 WHEN 1 THEN NULL END * - 98 ) col1
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-347
SELECT - 64 col1, - 52 * - 55 + + 0 + - - 40 DIV + 99 AS col1
----
-64
2860

skipif mysql # not compatible
query II rowsort label-347
SELECT - 64 col1, - 52 * - 55 + + 0 + - - 40 / + 99 AS col1
----
-64
2860

onlyif mysql # DIV for integer division: 
query I rowsort label-348
SELECT DISTINCT - - 78 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT - - 78 / 89
----
0

query II rowsort
SELECT - 98 AS col2, + 90
----
-98
90

query I rowsort
SELECT DISTINCT - 61 + + 93 col1
----
32

query I rowsort
SELECT DISTINCT + 6 + - + ( + - 23 ) AS col0
----
29

query I rowsort
SELECT 11 * - 10 * - 5 AS col1
----
550

query I rowsort
SELECT ALL + 89 + 80 AS col1
----
169

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

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT - COUNT ( * ) * ( + - 42 ) AS col2
----
42

query I rowsort
SELECT 92 + + - 82 col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT 95 - 33 DIV + 63 * + 83 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-356
SELECT 95 - 33 / + 63 * + 83 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-357
SELECT 1 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-357
SELECT 1 / 84
----
0

query I rowsort
SELECT 37 + - 71
----
-34

query I rowsort
SELECT ALL + 89 + 86
----
175

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

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL ( - + COUNT ( * ) ) + - - 29 / 61 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT DISTINCT SUM( DISTINCT + 50 ) * - 99
----
-4950

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT SUM ( DISTINCT + 50 ) * - 99
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT DISTINCT - COUNT( ALL - 86 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT - COUNT ( ALL - 86 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT ALL + COUNT( * ) - + - 11 + 3 + + COALESCE ( COUNT( * ), - 94 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL + COUNT ( * ) - + - 11 + 3 + + COALESCE ( COUNT ( * ), - 94 ) AS col0
----
16

query II rowsort
SELECT 10 * 40 AS col1, + 5 AS col2
----
400
5

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT MAX( + 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-365
SELECT MAX ( + 67 ) AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-366
SELECT 17 DIV ( - 18 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-366
SELECT 17 / ( - 18 ) col2
----
0

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

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

query I rowsort
SELECT ALL 86 * + 39 AS col0
----
3354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT COUNT( - 82 ) DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-369
SELECT COUNT ( - 82 ) / 59
----
0

query I rowsort
SELECT 18 * - + 85 + 22 + + 27
----
-1481

onlyif mysql # aggregate syntax: 
query II rowsort label-371
SELECT ALL + COUNT( * ) * - 78 AS col0, 12 AS col1
----
-78
12

skipif mysql # not compatible
query II rowsort label-371
SELECT ALL + COUNT ( * ) * - 78 AS col0, 12 AS col1
----
-78
12

onlyif mysql # aggregate syntax: 
query II rowsort label-372
SELECT ALL - - ( - + COUNT( * ) ) AS col1, - COALESCE ( - + 17, + 25 ) * COALESCE ( 17, 97, 14 ) * + ( 28 )
----
-1
8092

skipif mysql # not compatible
query II rowsort label-372
SELECT ALL - - ( - + COUNT ( * ) ) AS col1, - COALESCE ( - + 17, + 25 ) * COALESCE ( 17, 97, 14 ) * + ( 28 )
----
-1
8092

onlyif mysql # aggregate syntax: 
query II rowsort label-373
SELECT ALL - + COUNT( - - 15 ) AS col0, 12
----
-1
12

skipif mysql # not compatible
query II rowsort label-373
SELECT ALL - + COUNT ( - - 15 ) AS col0, 12
----
-1
12

query I rowsort
SELECT ( 20 ) * - 36 col0
----
-720

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

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

query I rowsort
SELECT 20 * - - 40 + + CASE + 7 WHEN - - 81 THEN NULL WHEN NULLIF ( - COALESCE ( 69, 13 - + 44 ), + 72 ) / 93 * - NULLIF ( - 30, + 35 * 16 ) - + 53 THEN + 64 * + NULLIF ( 75, - 58 / + 94 ) + - 70 * - 68 END
----
NULL

query I rowsort
SELECT - ( + + 86 ) * + 4
----
-344

query I rowsort
SELECT ALL - + NULLIF ( + 2, - 29 ) * + 70 * 45 * - 2
----
12600

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-380
SELECT - + 97 - + + CAST( + 66 AS SIGNED ) AS col0
----
-163

skipif mysql # not compatible
query I rowsort label-380
SELECT - + 97 - + + CAST ( + 66 AS INTEGER ) AS col0
----
-163

query I rowsort
SELECT ALL - ( - 97 ) AS col0
----
97

query II rowsort
SELECT + ( 32 ) + - 42 * - 53 AS col1, 15 + + 57
----
2258
72

query I rowsort
SELECT ALL - 17 + - + 58 AS col0
----
-75

query I rowsort
SELECT + 29 * 26
----
754

query I rowsort
SELECT - 94 * - 91 AS col1
----
8554

onlyif mysql # aggregate syntax: 
query II rowsort label-386
SELECT DISTINCT - COUNT( * ) + + - 65 + COUNT( * ) * - 13 * - - 68 AS col1, 25 + + 8
----
-950
33

skipif mysql # not compatible
query II rowsort label-386
SELECT DISTINCT - COUNT ( * ) + + - 65 + COUNT ( * ) * - 13 * - - 68 AS col1, 25 + + 8
----
-950
33

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT DISTINCT + 75 + - COUNT( * ) * 87 * - 84 * + 61
----
445863

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT + 75 + - COUNT ( * ) * 87 * - 84 * + 61
----
445863

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-389
SELECT - 34 + CAST( + 40 AS SIGNED ) + - 37 * 59 AS col2, + 32 AS col1
----
-2177
32

skipif mysql # not compatible
query II rowsort label-389
SELECT - 34 + CAST ( + 40 AS INTEGER ) + - 37 * 59 AS col2, + 32 AS col1
----
-2177
32

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

query I rowsort
SELECT - 39 - ( 3 )
----
-42

query I rowsort
SELECT - 98 * + + 18
----
-1764

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

onlyif mysql # aggregate syntax: 
query II rowsort label-394
SELECT ALL - 86 * - 49 * COUNT( * ), 27 col0
----
4214
27

skipif mysql # not compatible
query II rowsort label-394
SELECT ALL - 86 * - 49 * COUNT ( * ), 27 col0
----
4214
27

query I rowsort
SELECT - 16 + + + 10
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT + 21 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-396
SELECT + 21 / 68
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-399
SELECT + + COUNT( * ) DIV 39 + + 11 - - 63 * + - 64 AS col0, 85 col1
----
-4021
85

skipif mysql # not compatible
query II rowsort label-399
SELECT + + COUNT ( * ) / 39 + + 11 - - 63 * + - 64 AS col0, 85 col1
----
-4021
85

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

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

query I rowsort
SELECT ALL + 34 * + 72
----
2448

query I rowsort
SELECT + - 28 + + 0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-403
SELECT ALL + 23 DIV - + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL + 23 / - + 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT - 74 + 27 * COUNT( * ) - 20 * 38 col2
----
-807

skipif mysql # not compatible
query I rowsort label-404
SELECT - 74 + 27 * COUNT ( * ) - 20 * 38 col2
----
-807

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT + 70 * 50 - 18 - 36 DIV - + 79 AS col0
----
3482

skipif mysql # not compatible
query I rowsort label-405
SELECT + 70 * 50 - 18 - 36 / - + 79 AS col0
----
3482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-406
SELECT - CAST( NULLIF ( - 63, 17 ) AS SIGNED ) * - 29 + + ( - + 10 )
----
-1837

skipif mysql # not compatible
query I rowsort label-406
SELECT - CAST ( NULLIF ( - 63, 17 ) AS INTEGER ) * - 29 + + ( - + 10 )
----
-1837

query I rowsort
SELECT ALL + 82 * + - 73
----
-5986

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT + 1 DIV 35 col1
----
0

skipif mysql # not compatible
query I rowsort label-408
SELECT + 1 / 35 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT + + CASE 98 WHEN - - COUNT( * ) * + ( COUNT( * ) ) + + 43 + - - 98 + + 77 THEN COALESCE ( - 41, - 7 + 49, - 12 * - 8 ) WHEN 99 * 96 + + 62 * + 52 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT + + CASE 98 WHEN - - COUNT ( * ) * + ( COUNT ( * ) ) + + 43 + - - 98 + + 77 THEN COALESCE ( - 41, - 7 + 49, - 12 * - 8 ) WHEN 99 * 96 + + 62 * + 52 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 14 AS col2, - 7
----
14
-7

query I rowsort
SELECT + + 52 + 6
----
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT + 90 * + + MAX( ALL - 71 ) * 14 + + + 40 - - - 39
----
-89459

skipif mysql # not compatible
query I rowsort label-413
SELECT + 90 * + + MAX ( ALL - 71 ) * 14 + + + 40 - - - 39
----
-89459

onlyif mysql # aggregate syntax: 
query II rowsort label-414
SELECT ALL 50 AS col1, CASE + COUNT( - 54 ) WHEN + - 47 THEN NULL WHEN - - 65 / - - 24 - 93 THEN 87 * - 61 WHEN + 77 THEN + 99 WHEN - 21 THEN NULL END AS col1
----
50
NULL

skipif mysql # not compatible
query II rowsort label-414
SELECT ALL 50 AS col1, CASE + COUNT ( - 54 ) WHEN + - 47 THEN NULL WHEN - - 65 / - - 24 - 93 THEN 87 * - 61 WHEN + 77 THEN + 99 WHEN - 21 THEN NULL END AS col1
----
50
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-415
SELECT + 54 * - 10 * + - CAST( + 19 AS SIGNED ) + + 0 AS col2
----
10260

skipif mysql # not compatible
query I rowsort label-415
SELECT + 54 * - 10 * + - CAST ( + 19 AS INTEGER ) + + 0 AS col2
----
10260

query I rowsort
SELECT + 6 + + 40 AS col1
----
46

query I rowsort
SELECT DISTINCT + 71 * - CASE 21 WHEN 5 THEN - 23 ELSE + ( CASE 53 WHEN - 31 * - 36 + - - 22 THEN - 76 + - ( + AVG ( ALL 70 ) ) END ) / + + 44 + 34 END * 37 AS col2
----
NULL

query I rowsort
SELECT + 76 + - 47
----
29

query I rowsort
SELECT DISTINCT 81 - + 47 col0
----
34

query I rowsort
SELECT - 52 + - 99
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT ALL 16 - - CAST( NULLIF ( - 66, + + 55 ) AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL 16 - - CAST ( NULLIF ( - 66, + + 55 ) AS INTEGER )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-422
SELECT DISTINCT ( + 20 ) * ( + - 61 ) AS col2, CAST( NULL AS SIGNED ) / MAX( 84 ) AS col2, + 63 AS col2
----
-1220
NULL
63

skipif mysql # not compatible
query III rowsort label-422
SELECT DISTINCT ( + 20 ) * ( + - 61 ) AS col2, CAST ( NULL AS INTEGER ) / MAX ( 84 ) AS col2, + 63 AS col2
----
-1220
NULL
63

query I rowsort
SELECT + 40 + + 3 + - 41 * + + 97
----
-3934

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT + 98 DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-424
SELECT + 98 / - 58
----
-1

query I rowsort
SELECT - COALESCE ( 9, 50 ) * + 48 + - + 27 + + 92
----
-367

query I rowsort
SELECT + 16 + - ( + 89 ) col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT - COALESCE ( + 13, + 80 + + 73 ) + - 17 - 64 + - 56 + + + 1 * 26 - + + COUNT( * ) * 4 col1
----
-128

skipif mysql # not compatible
query I rowsort label-427
SELECT - COALESCE ( + 13, + 80 + + 73 ) + - 17 - 64 + - 56 + + + 1 * 26 - + + COUNT ( * ) * 4 col1
----
-128

query I rowsort
SELECT - 80 * 24
----
-1920

onlyif mysql # DIV for integer division: 
query I rowsort label-429
SELECT ALL + 27 DIV - - 10 col0
----
2

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL + 27 / - - 10 col0
----
2

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

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

query I rowsort
SELECT - 44 * 54 * + - 3 AS col2
----
7128

query I rowsort
SELECT ALL - 55 * + 14 AS col0
----
-770

query I rowsort
SELECT - 78 + + 38
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT - NULLIF ( - COUNT( * ), 40 - + + 94 + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-434
SELECT - NULLIF ( - COUNT ( * ), 40 - + + 94 + 17 )
----
1

query I rowsort
SELECT ALL + - ( - 54 ) * ( 49 )
----
2646

query I rowsort
SELECT - 5 * - - 41 + - 34 + + - 64 + - - 16 + - + 13
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT - NULLIF ( - + 60, - COUNT( * ) + - 52 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-437
SELECT - NULLIF ( - + 60, - COUNT ( * ) + - 52 ) AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-438
SELECT ALL + 80 / + ( 40 ) + + 75 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL + 80 / + ( 40 ) + + 75 * - + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-440
SELECT + 30 * - 73 * - COALESCE ( - 65, - + CASE MIN( DISTINCT 84 ) WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - 10 + + 42 + + 82 + - 81 END + + - ( - 40 ) + + 49 ) * - NULLIF ( 51, COUNT( 44 ) ) - + 79 + 60 * + 41 AS col1
----
7262231

skipif mysql # not compatible
query I rowsort label-440
SELECT + 30 * - 73 * - COALESCE ( - 65, - + CASE MIN ( DISTINCT 84 ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 10 + + 42 + + 82 + - 81 END + + - ( - 40 ) + + 49 ) * - NULLIF ( 51, COUNT ( 44 ) ) - + 79 + 60 * + 41 AS col1
----
7262231

onlyif mysql # DIV for integer division: 
query II rowsort label-441
SELECT ALL - 1 DIV + 81 + 74 + - 56 AS col2, - ( + 78 )
----
18
-78

skipif mysql # not compatible
query II rowsort label-441
SELECT ALL - 1 / + 81 + 74 + - 56 AS col2, - ( + 78 )
----
18
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-442
SELECT DISTINCT + - 17 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 87 AS col2, COUNT( * ) + + 49 + 48
----
NULL
98

skipif mysql # not compatible
query II rowsort label-442
SELECT DISTINCT + - 17 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 87 AS col2, COUNT ( * ) + + 49 + 48
----
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT - ( 51 ) * ( - MAX( - 45 ) ) - + - COUNT( * ) * + 56
----
-2239

skipif mysql # not compatible
query I rowsort label-443
SELECT - ( 51 ) * ( - MAX ( - 45 ) ) - + - COUNT ( * ) * + 56
----
-2239

query I rowsort
SELECT - ( - + 9 ) - 50 AS col2
----
-41

query I rowsort
SELECT 19 * + 89 + - 79 AS col1
----
1612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-446
SELECT ALL 76 - ( - COUNT( * ) ) * - CAST( - - 90 AS SIGNED ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL 76 - ( - COUNT ( * ) ) * - CAST ( - - 90 AS INTEGER ) AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-447
SELECT 11 * - 74 col1, CAST( NULL AS SIGNED )
----
-814
NULL

skipif mysql # not compatible
query II rowsort label-447
SELECT 11 * - 74 col1, CAST ( NULL AS INTEGER )
----
-814
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-448
SELECT COUNT( * ) * + + 90 AS col1, 56 - 59
----
90
-3

skipif mysql # not compatible
query II rowsort label-448
SELECT COUNT ( * ) * + + 90 AS col1, 56 - 59
----
90
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-449
SELECT - 12 * - + COUNT( * ) DIV COALESCE ( COUNT( * ), CAST( + 72 AS SIGNED ) ) - - 79 + + - 28 + - CASE 48 WHEN - + 9 THEN - ( - 79 ) WHEN - 93 THEN - - COUNT( * ) ELSE - 29 + - - COALESCE ( - 87, 59 ) * + 79 END DIV 93 AS col0
----
137

skipif mysql # not compatible
query I rowsort label-449
SELECT - 12 * - + COUNT ( * ) / COALESCE ( COUNT ( * ), CAST ( + 72 AS INTEGER ) ) - - 79 + + - 28 + - CASE 48 WHEN - + 9 THEN - ( - 79 ) WHEN - 93 THEN - - COUNT ( * ) ELSE - 29 + - - COALESCE ( - 87, 59 ) * + 79 END / 93 AS col0
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-450
SELECT COUNT( * ) * + ( + 14 ) col0, 67 AS col0
----
14
67

skipif mysql # not compatible
query II rowsort label-450
SELECT COUNT ( * ) * + ( + 14 ) col0, 67 AS col0
----
14
67

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT 20 + - 54 DIV - - 98
----
20

skipif mysql # not compatible
query I rowsort label-451
SELECT 20 + - 54 / - - 98
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-452
SELECT CAST( - CASE + - 22 WHEN - COUNT( * ) THEN - SUM( DISTINCT - ( - 82 ) ) WHEN - 66 THEN NULL END AS DECIMAL ) * + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-452
SELECT CAST ( - CASE + - 22 WHEN - COUNT ( * ) THEN - SUM ( DISTINCT - ( - 82 ) ) WHEN - 66 THEN NULL END AS REAL ) * + + 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-453
SELECT COALESCE ( + 59, 67 - 50 + - - 77 * - 33 + - CASE 30 WHEN + 4 DIV + 41 * 99 THEN NULL ELSE + COUNT( * ) END ) * - 62 DIV COUNT( * ) AS col2
----
-3658

skipif mysql # not compatible
query I rowsort label-453
SELECT COALESCE ( + 59, 67 - 50 + - - 77 * - 33 + - CASE 30 WHEN + 4 / + 41 * 99 THEN NULL ELSE + COUNT ( * ) END ) * - 62 / COUNT ( * ) AS col2
----
-3658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-454
SELECT DISTINCT 21 * ( + CAST( 16 AS SIGNED ) ) * + 92
----
30912

skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT 21 * ( + CAST ( 16 AS INTEGER ) ) * + 92
----
30912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-455
SELECT CAST( + COUNT( * ) AS SIGNED ) DIV COUNT( * ) + + 9 col1
----
10

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

query I rowsort
SELECT ALL + 23 * 67 * + - 57
----
-87837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-457
SELECT CAST( + COUNT( * ) AS SIGNED ) * + - 71 * - 97 - + COUNT( * ) + + - 73 col0
----
6813

skipif mysql # not compatible
query I rowsort label-457
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + - 71 * - 97 - + COUNT ( * ) + + - 73 col0
----
6813

query I rowsort
SELECT + 15 - + 82 * 9
----
-723

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT + NULLIF ( - + 63, + 38 - + COUNT( * ) ) + + 1 * COALESCE ( - 55, + + 17 ) AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-459
SELECT + NULLIF ( - + 63, + 38 - + COUNT ( * ) ) + + 1 * COALESCE ( - 55, + + 17 ) AS col1
----
-118

query I rowsort
SELECT - CASE WHEN ( - 33 IN ( + 49, - 47, - ( - 22 ) * - 97 + - 86 / + + 35, + AVG ( + + 52 ) + - 86 ) ) THEN NULL ELSE + 93 END AS col2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-461
SELECT + NULLIF ( + 40, + CAST( - 34 AS SIGNED ) ) col0
----
40

skipif mysql # not compatible
query I rowsort label-461
SELECT + NULLIF ( + 40, + CAST ( - 34 AS INTEGER ) ) col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL - - CASE AVG ( ALL CASE + 37 WHEN 97 + + 15 THEN + + 72 + - 55 ELSE - 85 END ) WHEN - + 0 * - + 18 * - CASE + - NULLIF ( 20, + + COUNT( * ) ) WHEN + + 2 THEN + 93 WHEN 5 THEN + COUNT( * ) END / 24 + - AVG ( - 4 + 55 ) THEN - 59 * - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL - - CASE AVG ( ALL CASE + 37 WHEN 97 + + 15 THEN + + 72 + - 55 ELSE - 85 END ) WHEN - + 0 * - + 18 * - CASE + - NULLIF ( 20, + + COUNT ( * ) ) WHEN + + 2 THEN + 93 WHEN 5 THEN + COUNT ( * ) END / 24 + - AVG ( - 4 + 55 ) THEN - 59 * - 54 END
----
NULL

query I rowsort
SELECT ALL 39 + + - 87 + + 83 + + - 69 * + 83 - + 29
----
-5721

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

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

query I rowsort
SELECT - 23 * - 76 + - ( - 20 ) AS col1
----
1768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-466
SELECT DISTINCT + CAST( 65 AS SIGNED ) * - 38 AS col0
----
-2470

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT + CAST ( 65 AS INTEGER ) * - 38 AS col0
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL - 30 + 24 - - - 97 * + ( MAX( - 41 ) )
----
3971

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL - 30 + 24 - - - 97 * + ( MAX ( - 41 ) )
----
3971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-468
SELECT 24 DIV + MAX( 81 ) + 18 + + - 62 col1
----
-44

skipif mysql # not compatible
query I rowsort label-468
SELECT 24 / + MAX ( 81 ) + 18 + + - 62 col1
----
-44

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

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL + 38 * + CAST ( NULL AS INTEGER ) / + - COUNT ( * ) / 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-470
SELECT DISTINCT 51 * COUNT( * ), + 33 - + 60 * 63 AS col0
----
51
-3747

skipif mysql # not compatible
query II rowsort label-470
SELECT DISTINCT 51 * COUNT ( * ), + 33 - + 60 * 63 AS col0
----
51
-3747

query I rowsort
SELECT DISTINCT + 44 - - 42
----
86

query I rowsort
SELECT 30 + + 47 + + 88 * - + 48 * - CASE + + 87 WHEN - - 12 THEN NULL WHEN + 44 + 72 * 76 THEN NULL ELSE - - 9 END
----
38093

query I rowsort
SELECT 40 + - 43 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT 11 DIV 11 * 37 * + 77 * + 49
----
139601

skipif mysql # not compatible
query I rowsort label-474
SELECT 11 / 11 * 37 * + 77 * + 49
----
139601

query I rowsort
SELECT 46 * 66 AS col1
----
3036

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-476
SELECT ALL - COUNT( DISTINCT 43 ) DIV + 23 col2, MIN( - - 9 )
----
0
9

skipif mysql # not compatible
query II rowsort label-476
SELECT ALL - COUNT ( DISTINCT 43 ) / + 23 col2, MIN ( - - 9 )
----
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL COUNT( DISTINCT + - 65 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL COUNT ( DISTINCT + - 65 ) col2
----
1

query I rowsort
SELECT - 8 * 79 + 58 AS col0
----
-574

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-480
SELECT 36 + 64 DIV + - 31 + - - COUNT( * ), 49 + 20 AS col2
----
35
69

skipif mysql # not compatible
query II rowsort label-480
SELECT 36 + 64 / + - 31 + - - COUNT ( * ), 49 + 20 AS col2
----
35
69

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-481
SELECT ALL - ( - - 76 ) DIV + 90 AS col0, NULLIF ( - 96, CAST( NULL AS DECIMAL ) )
----
0
-96

skipif mysql # not compatible
query II rowsort label-481
SELECT ALL - ( - - 76 ) / + 90 AS col0, NULLIF ( - 96, CAST ( NULL AS REAL ) )
----
0
-96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-483
SELECT DISTINCT + CAST( 46 AS SIGNED ) * + COUNT( * ) * + - 48 AS col0
----
-2208

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT + CAST ( 46 AS INTEGER ) * + COUNT ( * ) * + - 48 AS col0
----
-2208

query I rowsort
SELECT 61 + 60 + 70 * 42 + 59
----
3120

query I rowsort
SELECT 35 * - 29 AS col0
----
-1015

query I rowsort
SELECT ( + 82 ) + + 47 AS col1
----
129

query I rowsort
SELECT 51 + 73 col0
----
124

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

skipif mysql # not compatible
query I rowsort label-488
SELECT - ( - - 4 ) * COUNT ( * )
----
-4

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

query I rowsort
SELECT DISTINCT 66 + - 96
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL + + 63 + + - 36 - 58 * + 52 * 48 * COUNT( * ) * - - 26
----
-3763941

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL + + 63 + + - 36 - 58 * + 52 * 48 * COUNT ( * ) * - - 26
----
-3763941

query I rowsort
SELECT DISTINCT - + 0 + + - 47
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT DISTINCT - 83 DIV + 72
----
-1

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT - 83 / + 72
----
-1

query II rowsort
SELECT + + 14 + + 70 - 33 AS col1, - 75 AS col0
----
51
-75

query I rowsort
SELECT ALL 51 * - 42
----
-2142

query I rowsort
SELECT + + 28 * + + 81
----
2268

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

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

query I rowsort
SELECT - 13 + 73 + - 91 + + ( 38 ) * + 22 * + - 25
----
-20931

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT - - 89 * + 61 * + 27 * - 29 - + COUNT( * )
----
-4250908

skipif mysql # not compatible
query I rowsort label-499
SELECT - - 89 * + 61 * + 27 * - 29 - + COUNT ( * )
----
-4250908

query I rowsort
SELECT + - 58 col2
----
-58

query I rowsort
SELECT - 83 * + NULLIF ( - 26, 56 ) + + ( + + 87 )
----
2245

query I rowsort
SELECT NULLIF ( - - 32, + AVG ( - 88 ) - 73 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-503
SELECT + 83 * + COALESCE ( - - CASE + 4 WHEN + 1 + + + CASE 19 WHEN - SUM( ALL - ( + + 91 ) ) + - + 79 * - 14 THEN 18 * - 42 * + CAST( - + NULLIF ( + - AVG ( - 10 ), - 73 - + 87 * 3 ) AS SIGNED ) + + COUNT( * ) END + 93 THEN 78 END, + 13 ) AS col2
----
1079

skipif mysql # not compatible
query I rowsort label-503
SELECT + 83 * + COALESCE ( - - CASE + 4 WHEN + 1 + + + CASE 19 WHEN - SUM ( ALL - ( + + 91 ) ) + - + 79 * - 14 THEN 18 * - 42 * + CAST ( - + NULLIF ( + - AVG ( - 10 ), - 73 - + 87 * 3 ) AS INTEGER ) + + COUNT ( * ) END + 93 THEN 78 END, + 13 ) AS col2
----
1079

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-504
SELECT + + CAST( NULL AS DECIMAL ) / - NULLIF ( + 26, - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-504
SELECT + + CAST ( NULL AS REAL ) / - NULLIF ( + 26, - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-505
SELECT ALL + 7 DIV - 94 * - + 86 AS col1, - 49
----
0
-49

skipif mysql # not compatible
query II rowsort label-505
SELECT ALL + 7 / - 94 * - + 86 AS col1, - 49
----
0
-49

query I rowsort
SELECT + 47 * + + 9
----
423

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-508
SELECT ALL - CAST( 65 AS SIGNED ) * + CAST( 89 AS SIGNED ) AS col0
----
-5785

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL - CAST ( 65 AS INTEGER ) * + CAST ( 89 AS INTEGER ) AS col0
----
-5785

query I rowsort
SELECT - 5 * - 61
----
305

query I rowsort
SELECT + 17 * + ( - 77 ) AS col0
----
-1309

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT ALL + COALESCE ( - + 9, - + COALESCE ( - 65, + 49 + + 11 ) * 47 + - - COUNT( * ) + + 45 * - 70 * + 85, + + COUNT( ALL + - 17 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL + COALESCE ( - + 9, - + COALESCE ( - 65, + 49 + + 11 ) * 47 + - - COUNT ( * ) + + 45 * - 70 * + 85, + + COUNT ( ALL + - 17 ) )
----
-9

query I rowsort
SELECT - 52 + + 17
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-513
SELECT ALL 57 * - CAST( - 40 AS SIGNED ) AS col2
----
2280

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL 57 * - CAST ( - 40 AS INTEGER ) AS col2
----
2280

query I rowsort
SELECT ALL 72 * + 20 + - 25 + - + 57
----
1358

query I rowsort
SELECT ALL + 68 + - ( + 77 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-516
SELECT ALL COUNT( DISTINCT - 28 ) AS col2, + 78 AS col1
----
1
78

skipif mysql # not compatible
query II rowsort label-516
SELECT ALL COUNT ( DISTINCT - 28 ) AS col2, + 78 AS col1
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT - 22 - 63 * ( - - ( - COALESCE ( - 8, 85 ) ) ) * 50 + - - 78 + - SUM( DISTINCT - + NULLIF ( + + 90, 9 ) ) * + + CASE - 4 WHEN 81 + + NULLIF ( + 76, 20 / ( + 84 * - 38 ) ) * - 42 THEN NULL WHEN 81 + - 45 THEN NULL ELSE 32 * + 63 + + 56 END * + COUNT( * )
----
161336

skipif mysql # not compatible
query I rowsort label-517
SELECT - 22 - 63 * ( - - ( - COALESCE ( - 8, 85 ) ) ) * 50 + - - 78 + - SUM ( DISTINCT - + NULLIF ( + + 90, 9 ) ) * + + CASE - 4 WHEN 81 + + NULLIF ( + 76, 20 / ( + 84 * - 38 ) ) * - 42 THEN NULL WHEN 81 + - 45 THEN NULL ELSE 32 * + 63 + + 56 END * + COUNT ( * )
----
161336

query II rowsort
SELECT - ( 70 ), - CASE - ( 95 ) WHEN 35 THEN + 60 ELSE 9 END AS col1
----
-70
-9

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

skipif mysql # not compatible
query I rowsort label-519
SELECT - 39 / + COUNT ( * )
----
-39

query I rowsort
SELECT ALL - 23 + - - 2
----
-21

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

skipif mysql # not compatible
query I rowsort label-521
SELECT - COUNT ( - - 47 )
----
-1

query II rowsort
SELECT ALL - 5 + - - 48 AS col1, - 56 AS col1
----
43
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT - 86 + - 73 DIV + 85 * - MIN( 66 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-523
SELECT - 86 + - 73 / + 85 * - MIN ( 66 ) AS col2
----
-86

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

skipif mysql # not compatible
query I rowsort label-524
SELECT - 3 / - 56
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT DISTINCT + SUM( DISTINCT + 16 ) * - 7 * - 56, 46 AS col2
----
6272
46

skipif mysql # not compatible
query II rowsort label-525
SELECT DISTINCT + SUM ( DISTINCT + 16 ) * - 7 * - 56, 46 AS col2
----
6272
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-526
SELECT DISTINCT COALESCE ( + CAST( NULL AS SIGNED ), - + COUNT( * ) + - MIN( ALL 92 ) * - 59 )
----
5427

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT COALESCE ( + CAST ( NULL AS INTEGER ), - + COUNT ( * ) + - MIN ( ALL 92 ) * - 59 )
----
5427

query I rowsort
SELECT - - 43 * - 54 + COALESCE ( + NULLIF ( - 70, + 5 + - 76 ), 79, + 71 ) + - - 87 AS col1
----
-2305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-528
SELECT + + 85 + CAST( 57 AS SIGNED ) + + 81 * + - 15
----
-1073

skipif mysql # not compatible
query I rowsort label-528
SELECT + + 85 + CAST ( 57 AS INTEGER ) + + 81 * + - 15
----
-1073

onlyif mysql # DIV for integer division: 
query I rowsort label-529
SELECT DISTINCT - + 98 * 82 DIV - 8
----
1004

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT - + 98 * 82 / - 8
----
1004

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

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT - COALESCE ( + + 18, - + ( COUNT( * ) ) ) + - + COALESCE ( + 70, 76 + - 85 ) * + - 67 col1
----
4672

skipif mysql # not compatible
query I rowsort label-531
SELECT - COALESCE ( + + 18, - + ( COUNT ( * ) ) ) + - + COALESCE ( + 70, 76 + - 85 ) * + - 67 col1
----
4672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-532
SELECT + 97 * - + COUNT( * ) * - - NULLIF ( CASE + 42 WHEN + - 51 THEN + + CASE - + 20 WHEN + + 23 / + CAST( + CAST( + 2 AS SIGNED ) AS SIGNED ) * - - 22 - AVG ( DISTINCT - 32 ) + 37 - - 74 + 69 THEN NULL WHEN + 36 THEN 14 - ( + ( - 68 ) ) * - COUNT( * ) WHEN + 31 + + CAST( 59 + - 77 * + 86 AS SIGNED ) THEN + 23 + + 72 * + 29 ELSE - 34 * 99 + + 7 * + 33 END / 49 END, 4 * + 36 + 18 ) + 52 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT + 97 * - + COUNT ( * ) * - - NULLIF ( CASE + 42 WHEN + - 51 THEN + + CASE - + 20 WHEN + + 23 / + CAST ( + CAST ( + 2 AS INTEGER ) AS INTEGER ) * - - 22 - AVG ( DISTINCT - 32 ) + 37 - - 74 + 69 THEN NULL WHEN + 36 THEN 14 - ( + ( - 68 ) ) * - COUNT ( * ) WHEN + 31 + + CAST ( 59 + - 77 * + 86 AS INTEGER ) THEN + 23 + + 72 * + 29 ELSE - 34 * 99 + + 7 * + 33 END / 49 END, 4 * + 36 + 18 ) + 52 * - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT - 41 + - 82 col0, 75 * - ( + ( 0 ) ) AS col0
----
-123
0

onlyif mysql # DIV for integer division: 
query I rowsort label-534
SELECT - + 44 DIV 2 + - - 44 + 6 DIV - 98 * - + 89 col0
----
22

skipif mysql # not compatible
query I rowsort label-534
SELECT - + 44 / 2 + - - 44 + 6 / - 98 * - + 89 col0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT ALL + 78 DIV + + 41 + 48 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL + 78 / + + 41 + 48 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-536
SELECT - 30 DIV - 55 * + 1 col0
----
0

skipif mysql # not compatible
query I rowsort label-536
SELECT - 30 / - 55 * + 1 col0
----
0

query I rowsort
SELECT - ( - 4 ) * + 38 + + - 72
----
80

query I rowsort
SELECT + 0 + + 49 + + 44 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-539
SELECT + 76 + - MAX( - 41 ), 59 * + 34 * - 31 * - 2 + 59 col0
----
117
124431

skipif mysql # not compatible
query II rowsort label-539
SELECT + 76 + - MAX ( - 41 ), 59 * + 34 * - 31 * - 2 + 59 col0
----
117
124431

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT - COUNT( * ) * - 69 * - - 67 + + 52
----
4675

skipif mysql # not compatible
query I rowsort label-540
SELECT - COUNT ( * ) * - 69 * - - 67 + + 52
----
4675

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT + NULLIF ( - ( NULLIF ( - 45, COUNT( * ) + - 6 ) ), + SUM( - 13 ) * 54 - - + 52 * - 92 / + 22 ) + - ( + - 31 )
----
76

skipif mysql # not compatible
query I rowsort label-543
SELECT + NULLIF ( - ( NULLIF ( - 45, COUNT ( * ) + - 6 ) ), + SUM ( - 13 ) * 54 - - + 52 * - 92 / + 22 ) + - ( + - 31 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT DISTINCT COUNT( * ) * + 60 * + + ( - - NULLIF ( + 56, 91 + - 78 ) ) + + + COALESCE ( + 12, + - 22 ) + + 50
----
3422

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT COUNT ( * ) * + 60 * + + ( - - NULLIF ( + 56, 91 + - 78 ) ) + + + COALESCE ( + 12, + - 22 ) + + 50
----
3422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-545
SELECT ALL 5 * COALESCE ( - + ( - 86 ), + + 66 + + + COALESCE ( - 28, + ( + 84 ) * + 81 * + 55 * + 16 * - + 3, + - NULLIF ( COALESCE ( + 48, + ( 33 ) * CAST( NULL AS SIGNED ) DIV - 80 + + 62, 78 ), - COUNT( * ) ) ) * COUNT( * ) ) + - 8 AS col2
----
422

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL 5 * COALESCE ( - + ( - 86 ), + + 66 + + + COALESCE ( - 28, + ( + 84 ) * + 81 * + 55 * + 16 * - + 3, + - NULLIF ( COALESCE ( + 48, + ( 33 ) * CAST ( NULL AS INTEGER ) / - 80 + + 62, 78 ), - COUNT ( * ) ) ) * COUNT ( * ) ) + - 8 AS col2
----
422

query I rowsort
SELECT + 61 * 21 + 47 + 10
----
1338

query I rowsort
SELECT + 62 * - NULLIF ( 28, 49 ) AS col0
----
-1736

query I rowsort
SELECT ALL 42 * 47 + 21
----
1995

query I rowsort
SELECT NULLIF ( + 67, - + 46 * 55 ) * ( + 86 )
----
5762

query I rowsort
SELECT ALL + 83 * + 48
----
3984

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT DISTINCT - CASE - COUNT( * ) WHEN - + AVG ( DISTINCT NULLIF ( 51, - 34 ) ) THEN + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - + AVG ( DISTINCT NULLIF ( 51, - 34 ) ) THEN + 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT - 58 + - COUNT( 61 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-552
SELECT - 58 + - COUNT ( 61 ) AS col2
----
-59

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

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

query II rowsort
SELECT - 13 AS col0, 11 AS col0
----
-13
11

query I rowsort
SELECT + 81 + + 20 + - - 48
----
149

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-558
SELECT ALL - COALESCE ( 7, 92 + - 42 + - 36 ) AS col2, 39 * - MAX( + 40 )
----
-7
-1560

skipif mysql # not compatible
query II rowsort label-558
SELECT ALL - COALESCE ( 7, 92 + - 42 + - 36 ) AS col2, 39 * - MAX ( + 40 )
----
-7
-1560

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

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

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

skipif mysql # not compatible
query I rowsort label-560
SELECT - COUNT ( * ) / - ( - COUNT ( * ) ) - 77 / - 58 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT DISTINCT + - 91 DIV - 18 + + 41
----
46

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT + - 91 / - 18 + + 41
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-562
SELECT + 66 DIV 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-562
SELECT + 66 / 65 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-563
SELECT DISTINCT - COUNT( * ) * + NULLIF ( - + 60, + + COUNT( * ) ) * - - COALESCE ( - 84, - 22 DIV - - 70 ) * - - 27 + - 55 * 91
----
-141085

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT - COUNT ( * ) * + NULLIF ( - + 60, + + COUNT ( * ) ) * - - COALESCE ( - 84, - 22 / - - 70 ) * - - 27 + - 55 * 91
----
-141085

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT - MIN( - - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-564
SELECT - MIN ( - - 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL - COUNT( * ) * 88 * + 55
----
-4840

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL - COUNT ( * ) * 88 * + 55
----
-4840

query II rowsort
SELECT DISTINCT - 70 AS col2, 27
----
-70
27

onlyif mysql # aggregate syntax: 
query II rowsort label-567
SELECT ( - 70 ) + - - 26 - + ( + - NULLIF ( 82, + + 49 * 47 + + + 48 - + 65 * - COUNT( * ) * - - 48 / - 35 + + - 88 ) ) AS col0, ( + - 44 ) AS col1
----
38
-44

skipif mysql # not compatible
query II rowsort label-567
SELECT ( - 70 ) + - - 26 - + ( + - NULLIF ( 82, + + 49 * 47 + + + 48 - + 65 * - COUNT ( * ) * - - 48 / - 35 + + - 88 ) ) AS col0, ( + - 44 ) AS col1
----
38
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT 30 * - 45 * + COUNT( * ) AS col0
----
-1350

skipif mysql # not compatible
query I rowsort label-568
SELECT 30 * - 45 * + COUNT ( * ) AS col0
----
-1350

query II rowsort
SELECT + 55, - 72 AS col0
----
55
-72

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

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT 5 + - + ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 64 + + 76 * - 48 + - - 66 * 56
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-572
SELECT 50, 25 * CAST( NULL AS SIGNED ) AS col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-572
SELECT 50, 25 * CAST ( NULL AS INTEGER ) AS col2
----
50
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-573
SELECT COUNT( * ) * - 51 AS col0, CASE 11 WHEN + 33 THEN - - CASE - + 80 WHEN 40 THEN NULL ELSE + 9 + 37 + - 74 END * 75 * + 36 ELSE NULL END
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-573
SELECT COUNT ( * ) * - 51 AS col0, CASE 11 WHEN + 33 THEN - - CASE - + 80 WHEN 40 THEN NULL ELSE + 9 + 37 + - 74 END * 75 * + 36 ELSE NULL END
----
-51
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-575
SELECT COUNT( * ) * - 36 DIV + + ( - + 10 ) AS col0, 65
----
3
65

skipif mysql # not compatible
query II rowsort label-575
SELECT COUNT ( * ) * - 36 / + + ( - + 10 ) AS col0, 65
----
3
65

onlyif mysql # aggregate syntax: 
query II rowsort label-576
SELECT DISTINCT - 60 + + 5 AS col0, COUNT( * )
----
-55
1

skipif mysql # not compatible
query II rowsort label-576
SELECT DISTINCT - 60 + + 5 AS col0, COUNT ( * )
----
-55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL + 5 + + - COUNT( * ) + + 59 * + + 83
----
4901

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL + 5 + + - COUNT ( * ) + + 59 * + + 83
----
4901

query I rowsort
SELECT DISTINCT - 51 * 83
----
-4233

query I rowsort
SELECT 74 + - 92
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL 50 - - - 33 + - + 24 + 55 * + 64 * SUM( ALL + 26 ) + + 64 + - 28
----
91549

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL 50 - - - 33 + - + 24 + 55 * + 64 * SUM ( ALL + 26 ) + + 64 + - 28
----
91549

onlyif mysql # DIV for integer division: 
query I rowsort label-581
SELECT 8 DIV ( - + 35 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-581
SELECT 8 / ( - + 35 ) AS col2
----
0

query I rowsort
SELECT ALL + ( - 87 ) * + 95 AS col1
----
-8265

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-583
SELECT DISTINCT + CAST( - + 65 AS SIGNED ) DIV - 30 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT + CAST ( - + 65 AS INTEGER ) / - 30 AS col0
----
2

query II rowsort
SELECT ALL 74 AS col2, 18 AS col0
----
74
18

query I rowsort
SELECT ALL 17 - + 5 * + 27 + - - 97 + 24 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT NULLIF ( + + 53, + 71 + 93 + - + NULLIF ( - COALESCE ( - 46, 39 ), ( + + 9 ) / - + 4 ) ) + + MIN( + 35 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-586
SELECT NULLIF ( + + 53, + 71 + 93 + - + NULLIF ( - COALESCE ( - 46, 39 ), ( + + 9 ) / - + 4 ) ) + + MIN ( + 35 ) AS col0
----
88

query II rowsort
SELECT ALL - 71 * + 68 AS col1, + ( + 16 )
----
-4828
16

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ALL - 2 - MAX( - + 36 ) + + 85
----
119

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL - 2 - MAX ( - + 36 ) + + 85
----
119

query II rowsort
SELECT ALL 6 * + 7 * - - 20 + + 57 AS col1, + 61 + + 25
----
897
86

query I rowsort
SELECT ALL COALESCE ( + - 12, - ( - 79 ) )
----
-12

query I rowsort
SELECT 36 * NULLIF ( - 99, 46 + 73 ) AS col0
----
-3564

query II rowsort
SELECT DISTINCT 98 AS col1, ( + - 71 ) AS col1
----
98
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT 13 + - + SUM( + - 53 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-593
SELECT 13 + - + SUM ( + - 53 ) AS col0
----
66

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

onlyif mysql # aggregate syntax: 
query II rowsort label-595
SELECT 30 + - 47 * - NULLIF ( - + 1, - MAX( - 48 ) ) * 84 col0, 26 AS col2
----
-3918
26

skipif mysql # not compatible
query II rowsort label-595
SELECT 30 + - 47 * - NULLIF ( - + 1, - MAX ( - 48 ) ) * 84 col0, 26 AS col2
----
-3918
26

query I rowsort
SELECT ALL ( NULLIF ( - 94, - 38 ) ) + 63 * + 45 * + 76 + + - 11 * NULLIF ( - 49, + ( - 72 ) + - 98 ) AS col1
----
215905

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT DISTINCT 0 DIV + 3 col0
----
0

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT 0 / + 3 col0
----
0

query I rowsort
SELECT ALL 17 * + ( + 14 ) + + 2 * - + ( - 74 ) AS col0
----
386

query I rowsort
SELECT DISTINCT - 81 * + ( + 92 ) col2
----
-7452

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL - 88 * - SUM( - 11 ) + - 58
----
-1026

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL - 88 * - SUM ( - 11 ) + - 58
----
-1026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-601
SELECT DISTINCT + NULLIF ( - NULLIF ( - 2, + 36 ), + 76 / + + CASE - - 91 WHEN 67 THEN NULL ELSE 75 * + 58 END * - 34 * - 66 * - 11 - 26 ) * - - CAST( 44 AS SIGNED ) + - 5 + + 43 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-601
SELECT DISTINCT + NULLIF ( - NULLIF ( - 2, + 36 ), + 76 / + + CASE - - 91 WHEN 67 THEN NULL ELSE 75 * + 58 END * - 34 * - 66 * - 11 - 26 ) * - - CAST ( 44 AS INTEGER ) + - 5 + + 43 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT 29 * MIN( 44 ) * + MAX( NULLIF ( - 24, + - 45 ) ) AS col0
----
-30624

skipif mysql # not compatible
query I rowsort label-602
SELECT 29 * MIN ( 44 ) * + MAX ( NULLIF ( - 24, + - 45 ) ) AS col0
----
-30624

query I rowsort
SELECT ALL 54 * + 33 + + 44
----
1826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-604
SELECT CAST( NULL AS SIGNED ) * - - 34 * + - 30 + + - 30 * + + AVG ( 9 ) * + ( 48 ) + 40 / - MAX( 84 ) + - CAST( NULL AS SIGNED ) * - 19 * - + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT CAST ( NULL AS INTEGER ) * - - 34 * + - 30 + + - 30 * + + AVG ( 9 ) * + ( 48 ) + 40 / - MAX ( 84 ) + - CAST ( NULL AS INTEGER ) * - 19 * - + 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT DISTINCT - COALESCE ( - MIN( DISTINCT - + 73 ), + + 0 )
----
-73

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT - COALESCE ( - MIN ( DISTINCT - + 73 ), + + 0 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-606
SELECT DISTINCT + NULLIF ( 17, - CAST( NULL AS SIGNED ) ) col0, + 25
----
17
25

skipif mysql # not compatible
query II rowsort label-606
SELECT DISTINCT + NULLIF ( 17, - CAST ( NULL AS INTEGER ) ) col0, + 25
----
17
25

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT ALL COUNT( * ) * 43 - - - 21 * + - 96
----
2059

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL COUNT ( * ) * 43 - - - 21 * + - 96
----
2059

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT - ( - - 82 ) * + 80 * - 31 * COUNT( * ) * 33
----
6710880

skipif mysql # not compatible
query I rowsort label-608
SELECT - ( - - 82 ) * + 80 * - 31 * COUNT ( * ) * 33
----
6710880

query I rowsort
SELECT DISTINCT + 92 - 37 + - 76 * + 95
----
-7165

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-611
SELECT + + 56 * + MAX( - ( - 17 ) ) * - + COUNT( ALL 52 ) + - + 53 + - + 37 + - 41 DIV - - 81 * - 30 * 85 + - COUNT( * ) DIV - + 74
----
-1042

skipif mysql # not compatible
query I rowsort label-611
SELECT + + 56 * + MAX ( - ( - 17 ) ) * - + COUNT ( ALL 52 ) + - + 53 + - + 37 + - 41 / - - 81 * - 30 * 85 + - COUNT ( * ) / - + 74
----
-1042

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT + COALESCE ( + 57, - 46 * - 95 * ( - 56 ), + + COUNT( * ) ) + - + 94 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-612
SELECT + COALESCE ( + 57, - 46 * - 95 * ( - 56 ), + + COUNT ( * ) ) + - + 94 AS col1
----
-37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT + + 76 * 64 + + + MAX( + 75 ) + + COUNT( * ) + + + 35
----
4975

skipif mysql # not compatible
query I rowsort label-614
SELECT + + 76 * 64 + + + MAX ( + 75 ) + + COUNT ( * ) + + + 35
----
4975

onlyif mysql # DIV for integer division: 
query I rowsort label-615
SELECT + + 6 DIV + 76 + - + 33
----
-33

skipif mysql # not compatible
query I rowsort label-615
SELECT + + 6 / + 76 + - + 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT - MIN( ALL 77 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-616
SELECT - MIN ( ALL 77 ) col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT - 73 * - - 84 * - 40 * - - COUNT( * ) AS col1
----
245280

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - 73 * - - 84 * - 40 * - - COUNT ( * ) AS col1
----
245280

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

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL + 15 * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-619
SELECT + 21 DIV 21 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-619
SELECT + 21 / 21 AS col0
----
1

query II rowsort
SELECT + - 29 + - 74 AS col2, - 92
----
-103
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-621
SELECT ALL + 49 + - COUNT( * ), 81 AS col2
----
48
81

skipif mysql # not compatible
query II rowsort label-621
SELECT ALL + 49 + - COUNT ( * ), 81 AS col2
----
48
81

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

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL + 90 / + COUNT ( * )
----
90

query I rowsort
SELECT + - 79 + + + 40 * 69
----
2681

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT + 96 * - - 3 * + + 80 + COUNT( * )
----
23041

skipif mysql # not compatible
query I rowsort label-624
SELECT + 96 * - - 3 * + + 80 + COUNT ( * )
----
23041

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

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

query I rowsort
SELECT ALL + 99 + + 50
----
149

query I rowsort
SELECT + ( 7 ) * 30 * + 90
----
18900

query I rowsort
SELECT DISTINCT - ( - + 84 ) + 13 AS col0
----
97

query I rowsort
SELECT DISTINCT 94 + + 33
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-630
SELECT ALL 52 AS col2, 93 + CASE NULLIF ( + - 78, 72 * - 41 ) WHEN - 0 * - 32 THEN - 14 WHEN + + MIN( + + 58 ) THEN NULL ELSE - MAX( DISTINCT 36 ) END
----
52
57

skipif mysql # not compatible
query II rowsort label-630
SELECT ALL 52 AS col2, 93 + CASE NULLIF ( + - 78, 72 * - 41 ) WHEN - 0 * - 32 THEN - 14 WHEN + + MIN ( + + 58 ) THEN NULL ELSE - MAX ( DISTINCT 36 ) END
----
52
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-631
SELECT - 23 * 72 / CAST( NULL AS DECIMAL ) * - 50 * SUM( ALL ( + 33 ) ) * + - CAST( - 53 AS SIGNED ) * + - 67 * - + 35 + + 67 - - 14 * 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-631
SELECT - 23 * 72 / CAST ( NULL AS REAL ) * - 50 * SUM ( ALL ( + 33 ) ) * + - CAST ( - 53 AS INTEGER ) * + - 67 * - + 35 + + 67 - - 14 * 86 AS col0
----
NULL

query I rowsort
SELECT ALL 29 + + 36 AS col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-633
SELECT + 87 DIV 45 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-633
SELECT + 87 / 45 AS col2
----
1

query I rowsort
SELECT - 93 * NULLIF ( - 10, - 63 )
----
930

query I rowsort
SELECT DISTINCT - 60 * + 93 * ( 34 ) AS col0
----
-189720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-636
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), 37 * + 46 - - + 82 ) col2
----
1784

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), 37 * + 46 - - + 82 ) col2
----
1784

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT ALL 45 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL 45 / - 42
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT - 57 DIV 63 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-638
SELECT - 57 / 63 / - 74
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT DISTINCT - 60 * - MIN( DISTINCT - 51 ) AS col0
----
-3060

skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT - 60 * - MIN ( DISTINCT - 51 ) AS col0
----
-3060

query I rowsort
SELECT + 3 + - 53
----
-50

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT + 21 DIV + 20 col1
----
1

skipif mysql # not compatible
query I rowsort label-643
SELECT + 21 / + 20 col1
----
1

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

skipif mysql # not compatible
query I rowsort label-644
SELECT - 27 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-645
SELECT - CAST( - 97 AS SIGNED ) + + + 56
----
153

skipif mysql # not compatible
query I rowsort label-645
SELECT - CAST ( - 97 AS INTEGER ) + + + 56
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT - COUNT( * ) * 41 + + + 89 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-646
SELECT - COUNT ( * ) * 41 + + + 89 AS col0
----
48

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

query I rowsort
SELECT DISTINCT 40 * - 9
----
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-649
SELECT ALL + 85 * + COUNT( * ) + - AVG ( ALL - 65 ) + CASE - 46 WHEN - 56 / - + 54 THEN NULL WHEN + 38 THEN CAST( SUM( DISTINCT + 7 ) AS SIGNED ) * MAX( 70 ) * COUNT( * ) + + + 81 + - 77 / 60 + 20 + - 93 * ( - 6 ) + COUNT( * ) * 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL + 85 * + COUNT ( * ) + - AVG ( ALL - 65 ) + CASE - 46 WHEN - 56 / - + 54 THEN NULL WHEN + 38 THEN CAST ( SUM ( DISTINCT + 7 ) AS INTEGER ) * MAX ( 70 ) * COUNT ( * ) + + + 81 + - 77 / 60 + 20 + - 93 * ( - 6 ) + COUNT ( * ) * 21 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT ALL COUNT( DISTINCT - 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL COUNT ( DISTINCT - 44 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-652
SELECT - - 89 * - MIN( + CAST( NULL AS DECIMAL ) ) + 0 - 92 * 65 + 4 + + + 96 AS col2, - 27 AS col0
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-652
SELECT - - 89 * - MIN ( + CAST ( NULL AS REAL ) ) + 0 - 92 * 65 + 4 + + + 96 AS col2, - 27 AS col0
----
NULL
-27

query I rowsort
SELECT + - 83 * 37
----
-3071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-654
SELECT - - 85 * - + 88 - + SUM( ALL CAST( NULL AS SIGNED ) ) * 14 + + 68 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-654
SELECT - - 85 * - + 88 - + SUM ( ALL CAST ( NULL AS INTEGER ) ) * 14 + + 68 + 84
----
NULL

query I rowsort
SELECT DISTINCT - - 71 * + 66
----
4686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-656
SELECT ALL - 56 * CAST( + 94 AS SIGNED ) * - + 85 + - 14 + - + CAST( NULL AS SIGNED ) * 28 * AVG ( + + 75 ) / - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL - 56 * CAST ( + 94 AS INTEGER ) * - + 85 + - 14 + - + CAST ( NULL AS INTEGER ) * 28 * AVG ( + + 75 ) / - 89 AS col1
----
NULL

query I rowsort
SELECT - 94 * 80
----
-7520

query I rowsort
SELECT DISTINCT - - 80 * + - 69 AS col2
----
-5520

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-660
SELECT 52 AS col2, CAST( - 39 AS SIGNED ) * - 20 - - - 66 AS col1
----
52
714

skipif mysql # not compatible
query II rowsort label-660
SELECT 52 AS col2, CAST ( - 39 AS INTEGER ) * - 20 - - - 66 AS col1
----
52
714

onlyif mysql # aggregate syntax: 
query II rowsort label-661
SELECT ALL 41 + COUNT( * ) + + 17 + - 27 + + ( 4 ) * + + ( - SUM( + + 0 ) ) * + ( + ( 77 ) ), ( - 74 ) col0
----
32
-74

skipif mysql # not compatible
query II rowsort label-661
SELECT ALL 41 + COUNT ( * ) + + 17 + - 27 + + ( 4 ) * + + ( - SUM ( + + 0 ) ) * + ( + ( 77 ) ), ( - 74 ) col0
----
32
-74

query I rowsort
SELECT - 17 + - 69 * 86
----
-5951

query I rowsort
SELECT - 35 * + 40 * - 75 AS col2
----
105000

onlyif mysql # DIV for integer division: 
query II rowsort label-664
SELECT DISTINCT 46 DIV - 73 AS col2, 94 col0
----
0
94

skipif mysql # not compatible
query II rowsort label-664
SELECT DISTINCT 46 / - 73 AS col2, 94 col0
----
0
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-665
SELECT + 11 + + 92 AS col2, CASE + NULLIF ( + ( - 12 ), + COALESCE ( + COUNT( * ), - COALESCE ( + SUM( + - 82 ), + CASE - + 95 WHEN 65 THEN - 93 + + - MIN( ALL 23 ) + + CAST( + COUNT( 34 ) AS SIGNED ) * - 18 - - 78 ELSE + + 80 END ) ) ) WHEN 21 THEN CASE - 96 WHEN ( + 69 ) * - 72 THEN COUNT( - 34 ) * 47 WHEN + 84 + + 82 THEN NULL ELSE NULL END * + 10 + - 1 * + ( 43 ) ELSE + 22 END * - ( + NULLIF ( 3, 82 + + 8 ) ) AS col2
----
103
-66

skipif mysql # not compatible
query II rowsort label-665
SELECT + 11 + + 92 AS col2, CASE + NULLIF ( + ( - 12 ), + COALESCE ( + COUNT ( * ), - COALESCE ( + SUM ( + - 82 ), + CASE - + 95 WHEN 65 THEN - 93 + + - MIN ( ALL 23 ) + + CAST ( + COUNT ( 34 ) AS INTEGER ) * - 18 - - 78 ELSE + + 80 END ) ) ) WHEN 21 THEN CASE - 96 WHEN ( + 69 ) * - 72 THEN COUNT ( - 34 ) * 47 WHEN + 84 + + 82 THEN NULL ELSE NULL END * + 10 + - 1 * + ( 43 ) ELSE + 22 END * - ( + NULLIF ( 3, 82 + + 8 ) ) AS col2
----
103
-66

query I rowsort
SELECT + 70 * + 43
----
3010

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-668
SELECT DISTINCT 4 - + 1 AS col1, 28 + - 25 - + COUNT( 14 ) AS col2
----
3
2

skipif mysql # not compatible
query II rowsort label-668
SELECT DISTINCT 4 - + 1 AS col1, 28 + - 25 - + COUNT ( 14 ) AS col2
----
3
2

onlyif mysql # aggregate syntax: 
query III rowsort label-669
SELECT 90 + + - 4 AS col2, - MIN( + CASE + 38 WHEN 49 THEN NULL ELSE 70 END ) AS col0, - COUNT( * ) * - - 8
----
86
-70
-8

skipif mysql # not compatible
query III rowsort label-669
SELECT 90 + + - 4 AS col2, - MIN ( + CASE + 38 WHEN 49 THEN NULL ELSE 70 END ) AS col0, - COUNT ( * ) * - - 8
----
86
-70
-8

query I rowsort
SELECT ALL 39 * - 27 AS col1
----
-1053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-671
SELECT CAST( - 74 AS SIGNED ) + + 5 * + 53 * + COUNT( * ) + - COUNT( * )
----
190

skipif mysql # not compatible
query I rowsort label-671
SELECT CAST ( - 74 AS INTEGER ) + + 5 * + 53 * + COUNT ( * ) + - COUNT ( * )
----
190

query I rowsort
SELECT 73 * - + 99 AS col0
----
-7227

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT 83 * + 9 + 13 + COUNT( * )
----
761

skipif mysql # not compatible
query I rowsort label-673
SELECT 83 * + 9 + 13 + COUNT ( * )
----
761

query I rowsort
SELECT DISTINCT + 48 + + 53 + 73 + + 26
----
200

query I rowsort
SELECT ALL - 84 * - 8 + - - 11 col0
----
683

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT + 75 DIV + - 65 + 23
----
22

skipif mysql # not compatible
query I rowsort label-676
SELECT + 75 / + - 65 + 23
----
22

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

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL + COUNT ( * ) + + + 36 * 64 AS col1
----
2305

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-678
SELECT DISTINCT CAST( - + 55 AS SIGNED ) DIV - 20 AS col1
----
2

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

query I rowsort
SELECT ALL - 93 + + + ( + - COALESCE ( - 10, + 43 ) ) + 40 * + 9 AS col2
----
277

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT ALL + 34 + - + 49 + + 17 DIV 63
----
-15

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL + 34 + - + 49 + + 17 / 63
----
-15

query I rowsort
SELECT ALL 72 * - 91 - - CASE - - 69 WHEN - 63 THEN + 34 - - NULLIF ( + - AVG ( DISTINCT + 26 ), + + 80 * + 94 ) END
----
NULL

query I rowsort
SELECT DISTINCT - + NULLIF ( 85, - + 30 / 57 ) + - 22
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-683
SELECT + - ( NULLIF ( + + COUNT( * ), + CAST( NULL AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-683
SELECT + - ( NULLIF ( + + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) )
----
-1

query I rowsort
SELECT DISTINCT + 90 * 41
----
3690

query I rowsort
SELECT ALL - 32 + + 12 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-686
SELECT ALL + CASE COUNT( * ) WHEN + - CAST( + MAX( + - 98 ) AS DECIMAL ) THEN + COUNT( * ) * - 7 ELSE NULL END + + ( + COALESCE ( - 22, + 77 ) ) * + + 65 * + 37 * + - 40 + - COUNT( DISTINCT - NULLIF ( - 84, + 68 + + - 83 ) ), ( - 50 ) * + 9 * + COUNT( * ) AS col2
----
NULL
-450

skipif mysql # not compatible
query II rowsort label-686
SELECT ALL + CASE COUNT ( * ) WHEN + - CAST ( + MAX ( + - 98 ) AS REAL ) THEN + COUNT ( * ) * - 7 ELSE NULL END + + ( + COALESCE ( - 22, + 77 ) ) * + + 65 * + 37 * + - 40 + - COUNT ( DISTINCT - NULLIF ( - 84, + 68 + + - 83 ) ), ( - 50 ) * + 9 * + COUNT ( * ) AS col2
----
NULL
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT 88 * + + 41 * COUNT( * ) * - COUNT( * ) col0
----
-3608

skipif mysql # not compatible
query I rowsort label-687
SELECT 88 * + + 41 * COUNT ( * ) * - COUNT ( * ) col0
----
-3608

query I rowsort
SELECT NULLIF ( + - 42, 6 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT 88 + - + SUM( ALL - + 69 ) AS col1
----
157

skipif mysql # not compatible
query I rowsort label-689
SELECT 88 + - + SUM ( ALL - + 69 ) AS col1
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-690
SELECT DISTINCT - - 77 - - CAST( NULL AS SIGNED ) / - 71 * + ( - ( - 29 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT - - 77 - - CAST ( NULL AS INTEGER ) / - 71 * + ( - ( - 29 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( 58, - 15 ) AS col2
----
58

query I rowsort
SELECT - 41 + + ( - 67 ) * + - 1 AS col0
----
26

query I rowsort
SELECT 39 * + - 18
----
-702

query I rowsort
SELECT ALL - 77 * 53 col1
----
-4081

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

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

query I rowsort
SELECT DISTINCT + 59 * - 48 AS col1
----
-2832

query I rowsort
SELECT ALL + CASE 30 WHEN 71 THEN NULL WHEN + 55 THEN NULL WHEN 66 THEN NULL ELSE + 75 END * 96 + 16 + - + 51 AS col0
----
7165

query I rowsort
SELECT ALL 58 * + 60
----
3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-699
SELECT ALL + 78 * - CAST( + 52 AS SIGNED ) AS col2
----
-4056

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL + 78 * - CAST ( + 52 AS INTEGER ) AS col2
----
-4056

query I rowsort
SELECT DISTINCT + 60 * + 17 * + - ( - 78 )
----
79560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-701
SELECT ALL COUNT( * ) DIV + ( ( + 9 ) ) * - 64 AS col1, + ( - + SUM( DISTINCT + + CAST( - 58 AS SIGNED ) ) ) DIV - + SUM( DISTINCT - 73 ) + NULLIF ( - 64, - + 71 ) + COUNT( * ) + + COUNT( * ) AS col1
----
0
-62

skipif mysql # not compatible
query II rowsort label-701
SELECT ALL COUNT ( * ) / + ( ( + 9 ) ) * - 64 AS col1, + ( - + SUM ( DISTINCT + + CAST ( - 58 AS INTEGER ) ) ) / - + SUM ( DISTINCT - 73 ) + NULLIF ( - 64, - + 71 ) + COUNT ( * ) + + COUNT ( * ) AS col1
----
0
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-702
SELECT COUNT( ALL + - 45 ) DIV + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-702
SELECT COUNT ( ALL + - 45 ) / + 59 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-704
SELECT COUNT( * ) * + CASE - 84 WHEN 41 THEN NULL WHEN + - 87 * MIN( - - 72 ) * - 37 THEN - - 68 * + - 58 ELSE + MAX( DISTINCT 0 ) DIV 36 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-704
SELECT COUNT ( * ) * + CASE - 84 WHEN 41 THEN NULL WHEN + - 87 * MIN ( - - 72 ) * - 37 THEN - - 68 * + - 58 ELSE + MAX ( DISTINCT 0 ) / 36 END AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT ALL COALESCE ( - - 35, + 21 * - COUNT( * ) - - - 33 ) + - 77 + + + COUNT( * ) * 49
----
7

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL COALESCE ( - - 35, + 21 * - COUNT ( * ) - - - 33 ) + - 77 + + + COUNT ( * ) * 49
----
7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-708
SELECT ALL + 16 + - 42 * - + 47 * - - 61 * + + CAST( COUNT( * ) AS SIGNED ) * - 25 + - 5, NULLIF ( - 0, + 37 * COUNT( * ) * - 74 * - + 4 ) * - 31 AS col2
----
-3010339
0

skipif mysql # not compatible
query II rowsort label-708
SELECT ALL + 16 + - 42 * - + 47 * - - 61 * + + CAST ( COUNT ( * ) AS INTEGER ) * - 25 + - 5, NULLIF ( - 0, + 37 * COUNT ( * ) * - 74 * - + 4 ) * - 31 AS col2
----
-3010339
0

query I rowsort
SELECT DISTINCT + CASE + + COALESCE ( + 47, + + 60, - - 65 * - 62 + + 90, 59 ) WHEN 39 THEN NULL WHEN - 23 THEN - 29 END * - 42 AS col0
----
NULL

query I rowsort
SELECT + 64 * 36 + - - 65 AS col0
----
2369

query I rowsort
SELECT ALL - 44 + 88 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT DISTINCT - 86 + - 29 * 90 + - - CASE + NULLIF ( - 97, - 58 ) WHEN ( - + 1 ) THEN + + 9 + - ( + - 50 ) WHEN + - 89 THEN NULL WHEN 54 + 26 + - 66 * + 68 * - 32 / + 2 - - + COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT - 86 + - 29 * 90 + - - CASE + NULLIF ( - 97, - 58 ) WHEN ( - + 1 ) THEN + + 9 + - ( + - 50 ) WHEN + - 89 THEN NULL WHEN 54 + 26 + - 66 * + 68 * - 32 / + 2 - - + COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT ALL COUNT( * ) * COALESCE ( + - 16, - 77 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL COUNT ( * ) * COALESCE ( + - 16, - 77 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL 17 + COUNT( DISTINCT - 92 ) * 87 col2
----
104

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL 17 + COUNT ( DISTINCT - 92 ) * 87 col2
----
104

query II rowsort
SELECT + 16 AS col1, - 72
----
16
-72

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT ALL + CAST( + 10 AS SIGNED ) + 90 * - - 19
----
1720

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL + CAST ( + 10 AS INTEGER ) + 90 * - - 19
----
1720

query I rowsort
SELECT ALL 84 + + 91 AS col0
----
175

query I rowsort
SELECT 57 + - 39 * - 82 + + - 69 * 12 AS col2
----
2427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-720
SELECT + NULLIF ( + ( CAST( NULL AS SIGNED ) ), + - NULLIF ( COUNT( ALL + 62 ), + 97 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-720
SELECT + NULLIF ( + ( CAST ( NULL AS INTEGER ) ), + - NULLIF ( COUNT ( ALL + 62 ), + 97 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-721
SELECT ALL + 11 DIV - + 85 + - 92, 13 AS col2
----
-92
13

skipif mysql # not compatible
query II rowsort label-721
SELECT ALL + 11 / - + 85 + - 92, 13 AS col2
----
-92
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-722
SELECT + 80 + COUNT( * ) + + 80 * - NULLIF ( + NULLIF ( - NULLIF ( + - 90, + CASE + CAST( NULL AS SIGNED ) WHEN 70 * - SUM( ALL - 26 ) THEN + 60 * 39 WHEN - 95 THEN + 57 * - - 71 + - 79 ELSE NULL END * 88 + - 49 ), - ( - NULLIF ( + + COUNT( * ), + COUNT( * ) ) ) ), + 47 )
----
-7119

skipif mysql # not compatible
query I rowsort label-722
SELECT + 80 + COUNT ( * ) + + 80 * - NULLIF ( + NULLIF ( - NULLIF ( + - 90, + CASE + CAST ( NULL AS INTEGER ) WHEN 70 * - SUM ( ALL - 26 ) THEN + 60 * 39 WHEN - 95 THEN + 57 * - - 71 + - 79 ELSE NULL END * 88 + - 49 ), - ( - NULLIF ( + + COUNT ( * ), + COUNT ( * ) ) ) ), + 47 )
----
-7119

query I rowsort
SELECT ALL - COALESCE ( + - 5, - ( + ( + 15 ) ), 98 * - 53 ) + 65 + + + 89 - + 42 + 11
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT ALL 73 DIV + - 80 col1
----
0

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL 73 / + - 80 col1
----
0

query I rowsort
SELECT ALL - 87 - + 79
----
-166

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-726
SELECT - COUNT( * ) + + 54 DIV - 8, - 79 AS col1
----
-7
-79

skipif mysql # not compatible
query II rowsort label-726
SELECT - COUNT ( * ) + + 54 / - 8, - 79 AS col1
----
-7
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-727
SELECT ALL 62, SUM( - 70 ) * - 53 AS col1
----
62
3710

skipif mysql # not compatible
query II rowsort label-727
SELECT ALL 62, SUM ( - 70 ) * - 53 AS col1
----
62
3710

query II rowsort
SELECT ALL 96, 64 * + 17 AS col2
----
96
1088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-729
SELECT ALL + 85 * - - ( - 86 ) * NULLIF ( - + 36, - 92 ) + MAX( ALL 82 ) DIV - 49
----
263159

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL + 85 * - - ( - 86 ) * NULLIF ( - + 36, - 92 ) + MAX ( ALL 82 ) / - 49
----
263159

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT COUNT( * ) * + 83 * + 43 AS col2
----
3569

skipif mysql # not compatible
query I rowsort label-730
SELECT COUNT ( * ) * + 83 * + 43 AS col2
----
3569

query II rowsort
SELECT 99, + 74 col2
----
99
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-732
SELECT - ( - - NULLIF ( CAST( NULL AS SIGNED ), - ( SUM( - 55 ) ) ) ) + + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT - ( - - NULLIF ( CAST ( NULL AS INTEGER ), - ( SUM ( - 55 ) ) ) ) + + - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL 28 * + ( + 74 ) * + COUNT( * )
----
2072

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL 28 * + ( + 74 ) * + COUNT ( * )
----
2072

query I rowsort
SELECT DISTINCT NULLIF ( - 59, + 71 + - 93 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL MAX( DISTINCT - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL MAX ( DISTINCT - 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-736
SELECT - NULLIF ( - COUNT( * ), + - 10 ) + + COUNT( * ) + + - 44 * - 17 - 31 AS col2, CASE WHEN ( NULL ) IS NULL THEN 13 END * - 68 + + 4 + 65 AS col0
----
719
-815

skipif mysql # not compatible
query II rowsort label-736
SELECT - NULLIF ( - COUNT ( * ), + - 10 ) + + COUNT ( * ) + + - 44 * - 17 - 31 AS col2, CASE WHEN ( NULL ) IS NULL THEN 13 END * - 68 + + 4 + 65 AS col0
----
719
-815

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-738
SELECT - NULLIF ( - - 8, COUNT( * ) ) + 2 DIV - COUNT( 79 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-738
SELECT - NULLIF ( - - 8, COUNT ( * ) ) + 2 / - COUNT ( 79 ) AS col0
----
-10

query II rowsort
SELECT 10, 56 AS col0
----
10
56

onlyif mysql # aggregate syntax: 
query II rowsort label-740
SELECT ALL - SUM( + + 37 ) + - ( 82 ) + ( - + 69 ) AS col1, - 99 * - 28 AS col2
----
-188
2772

skipif mysql # not compatible
query II rowsort label-740
SELECT ALL - SUM ( + + 37 ) + - ( 82 ) + ( - + 69 ) AS col1, - 99 * - 28 AS col2
----
-188
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT - 98 + + 99 * + - COUNT( * ) + + 62 + - 64 * 29 AS col2
----
-1991

skipif mysql # not compatible
query I rowsort label-741
SELECT - 98 + + 99 * + - COUNT ( * ) + + 62 + - 64 * 29 AS col2
----
-1991

query I rowsort
SELECT DISTINCT COALESCE ( - 47, 53 + + 69 ) AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-743
SELECT - CAST( 59 AS SIGNED ) + + + CAST( NULL AS SIGNED ) - + + 45 * + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT - CAST ( 59 AS INTEGER ) + + + CAST ( NULL AS INTEGER ) - + + 45 * + 94 AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 43, + 10 ) * + 84 AS col2
----
-3612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-745
SELECT DISTINCT + 29 * - MAX( + 91 ) * + - COUNT( * ) * - 1 * + 32 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT + 29 * - MAX ( + 91 ) * + - COUNT ( * ) * - 1 * + 32 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-746
SELECT - 98 DIV + + 80 + - COUNT( DISTINCT 93 )
----
-2

skipif mysql # not compatible
query I rowsort label-746
SELECT - 98 / + + 80 + - COUNT ( DISTINCT 93 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT ALL - 88 * + - 85 * - ( - ( 39 ) ) + + COUNT( * )
----
291721

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL - 88 * + - 85 * - ( - ( 39 ) ) + + COUNT ( * )
----
291721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-748
SELECT - 36 / - + AVG ( ALL - CAST( NULL AS SIGNED ) ) * COUNT( * ) + - 63 * + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT - 36 / - + AVG ( ALL - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + - 63 * + 19 AS col2
----
NULL

query I rowsort
SELECT ALL + 11 * + 26 AS col0
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT ALL - 44 * - 33 + + - COUNT( * )
----
1451

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - 44 * - 33 + + - COUNT ( * )
----
1451

query II rowsort
SELECT + 71 + 95 AS col0, + 0 col2
----
166
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) * - 97 + + 86 * + MIN( - + 47 ) + - + CAST( - 35 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-752
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 97 + + 86 * + MIN ( - + 47 ) + - + CAST ( - 35 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 26 * 80 - - 54 + - 18 + - 54 AS col0
----
2062

query I rowsort
SELECT - - 1 * - 33
----
-33

query I rowsort
SELECT ALL + - 27 * + - 44 + - 54 + + - 35 * - 39 AS col0
----
2499

query II rowsort
SELECT ALL + 12 AS col2, + 52
----
12
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT ALL 90 * CAST( + 82 AS SIGNED ) * - + 5 + + 24 col2
----
-36876

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL 90 * CAST ( + 82 AS INTEGER ) * - + 5 + + 24 col2
----
-36876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-758
SELECT DISTINCT + ( - - NULLIF ( + CASE + 83 WHEN + + ( - + COUNT( * ) ) * - - 3 THEN NULL WHEN 19 THEN - - 88 ELSE 28 * - 59 END, 0 ) ) * - 41 * - + 71 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT + ( - - NULLIF ( + CASE + 83 WHEN + + ( - + COUNT ( * ) ) * - - 3 THEN NULL WHEN 19 THEN - - 88 ELSE 28 * - 59 END, 0 ) ) * - 41 * - + 71 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT ALL - 29 * 62 - 27 * + NULLIF ( + COALESCE ( - 56, - 66 + - CASE + ( - 19 ) WHEN 22 THEN NULL WHEN - 91 + - 2 * + 95 THEN NULL ELSE ( COUNT( * ) ) END, + 2 ), + 27 + - 63 * + + 32 * + + 78 ) * - NULLIF ( - + 9, 1 ) * 97 + + + 92 + - COUNT( * )
----
1318269

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL - 29 * 62 - 27 * + NULLIF ( + COALESCE ( - 56, - 66 + - CASE + ( - 19 ) WHEN 22 THEN NULL WHEN - 91 + - 2 * + 95 THEN NULL ELSE ( COUNT ( * ) ) END, + 2 ), + 27 + - 63 * + + 32 * + + 78 ) * - NULLIF ( - + 9, 1 ) * 97 + + + 92 + - COUNT ( * )
----
1318269

query II rowsort
SELECT DISTINCT + + 39, + ( + 39 ) AS col2
----
39
39

query I rowsort
SELECT DISTINCT - 49 * 32
----
-1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-762
SELECT DISTINCT CASE - + MIN( DISTINCT + - 80 ) WHEN COUNT( * ) + - 33 - CASE + - 73 WHEN - ( + - COALESCE ( COUNT( * ), COUNT( * ) ) ) * - 34 + - 72 THEN COALESCE ( + 82, 0, AVG ( + 18 ) ) / - 33 + + + 51 + + 86 END THEN - 60 + - 9 / CAST( 78 AS SIGNED ) WHEN - 22 THEN NULL WHEN COALESCE ( 80, + 86 ) THEN NULL ELSE 75 * 53 END * + AVG ( ALL CAST( 80 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT CASE - + MIN ( DISTINCT + - 80 ) WHEN COUNT ( * ) + - 33 - CASE + - 73 WHEN - ( + - COALESCE ( COUNT ( * ), COUNT ( * ) ) ) * - 34 + - 72 THEN COALESCE ( + 82, 0, AVG ( + 18 ) ) / - 33 + + + 51 + + 86 END THEN - 60 + - 9 / CAST ( 78 AS INTEGER ) WHEN - 22 THEN NULL WHEN COALESCE ( 80, + 86 ) THEN NULL ELSE 75 * 53 END * + AVG ( ALL CAST ( 80 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-763
SELECT + 1 * SUM( CAST( 14 AS SIGNED ) ), - 10 AS col1
----
14
-10

skipif mysql # not compatible
query II rowsort label-763
SELECT + 1 * SUM ( CAST ( 14 AS INTEGER ) ), - 10 AS col1
----
14
-10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT + - 50 * + ( - 0 ) * - + 3 + + ( - + 1 ) DIV 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-765
SELECT + - 50 * + ( - 0 ) * - + 3 + + ( - + 1 ) / 8 AS col0
----
0

query I rowsort
SELECT + - 45 * - ( 57 ) AS col1
----
2565

query I rowsort
SELECT + + 99 * ( + ( - 2 ) ) + + 19 + - 77 + 68 * 83
----
5388

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-769
SELECT MIN( DISTINCT - 99 ), + 72 * + ( + - ( - 30 ) ) AS col0
----
-99
2160

skipif mysql # not compatible
query II rowsort label-769
SELECT MIN ( DISTINCT - 99 ), + 72 * + ( + - ( - 30 ) ) AS col0
----
-99
2160

onlyif mysql # aggregate syntax: 
query II rowsort label-770
SELECT + 40 * - + COUNT( * ) col2, 22 + - + 72 AS col1
----
-40
-50

skipif mysql # not compatible
query II rowsort label-770
SELECT + 40 * - + COUNT ( * ) col2, 22 + - + 72 AS col1
----
-40
-50

query I rowsort
SELECT ALL - 14 * + - 60
----
840

query I rowsort
SELECT + 58 + - NULLIF ( - NULLIF ( 6, - 6 + - + 70 + + NULLIF ( - 54, + - ( + 55 ) ) ), 13 ) * + 5 * - 36
----
-1022

query I rowsort
SELECT DISTINCT 64 / - CASE 60 WHEN - 65 THEN - + 29 * + - 43 WHEN - 42 THEN NULL END
----
NULL

query II rowsort
SELECT - 93 - - 63, 33 + + 24 AS col1
----
-30
57

onlyif mysql # DIV for integer division: 
query I rowsort label-775
SELECT + 4 DIV + + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-775
SELECT + 4 / + + 65 AS col2
----
0

query II rowsort
SELECT ALL 16 + ( + 91 ) AS col0, 43 AS col0
----
107
43

query I rowsort
SELECT - 87 * + + 81
----
-7047

query II rowsort
SELECT - ( + - 21 ) AS col0, - 26 AS col0
----
21
-26

query II rowsort
SELECT - 4 + - - 82 AS col0, 1 + 77
----
78
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-781
SELECT - CAST( + CASE - + 10 WHEN CASE + COUNT( * ) WHEN + - 46 THEN + + 72 + - 92 + - 75 WHEN 40 THEN NULL ELSE 46 END THEN NULL WHEN MIN( - 17 ) - 5 THEN COUNT( * ) END AS DECIMAL ) * 30 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-781
SELECT - CAST ( + CASE - + 10 WHEN CASE + COUNT ( * ) WHEN + - 46 THEN + + 72 + - 92 + - 75 WHEN 40 THEN NULL ELSE 46 END THEN NULL WHEN MIN ( - 17 ) - 5 THEN COUNT ( * ) END AS REAL ) * 30 * + 32
----
NULL

query I rowsort
SELECT ALL 56 + - 1 - + + 2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT DISTINCT MIN( ALL + 25 ) * - - COUNT( * ) + + 95 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT MIN ( ALL + 25 ) * - - COUNT ( * ) + + 95 AS col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT DISTINCT CAST( COALESCE ( + 37, - COUNT( * ) * 80 * + 61 ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT CAST ( COALESCE ( + 37, - COUNT ( * ) * 80 * + 61 ) AS INTEGER )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL CASE 20 WHEN + - 19 * - COUNT( * ) - - ( - COUNT( * ) ) THEN - - 92 * + - 61 WHEN - - ( - 16 ) + 15 * - 19 - + + 33 + + + 14 + - + 96 / + - 44 THEN NULL ELSE - 57 END
----
-57

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL CASE 20 WHEN + - 19 * - COUNT ( * ) - - ( - COUNT ( * ) ) THEN - - 92 * + - 61 WHEN - - ( - 16 ) + 15 * - 19 - + + 33 + + + 14 + - + 96 / + - 44 THEN NULL ELSE - 57 END
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-786
SELECT - CAST( COUNT( * ) AS SIGNED ), 48 col2
----
-1
48

skipif mysql # not compatible
query II rowsort label-786
SELECT - CAST ( COUNT ( * ) AS INTEGER ), 48 col2
----
-1
48

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

skipif mysql # not compatible
query I rowsort label-787
SELECT - + SUM ( + - 25 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-788
SELECT ALL - - 75 + - 44 - + COUNT( * ) AS col0, + 59 + + 44 + - + SUM( DISTINCT 19 ) AS col0
----
30
84

skipif mysql # not compatible
query II rowsort label-788
SELECT ALL - - 75 + - 44 - + COUNT ( * ) AS col0, + 59 + + 44 + - + SUM ( DISTINCT 19 ) AS col0
----
30
84

query I rowsort
SELECT DISTINCT + NULLIF ( - 4, - 97 ) AS col0
----
-4

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

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

query I rowsort
SELECT - 91 * + 25
----
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ALL - COUNT( * ) * 27 + + ( 88 )
----
61

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL - COUNT ( * ) * 27 + + ( 88 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-793
SELECT ALL + CAST( NULL AS SIGNED ) / COUNT( * ) - - 1 * NULLIF ( 18, + - COALESCE ( - MAX( NULLIF ( 38, - 14 * + 83 / 7 ) ), - 71 ) * + CASE - + 73 WHEN + - 20 * - + COUNT( * ) THEN NULL ELSE 92 * 24 END + - + ( MAX( DISTINCT - 1 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL + CAST ( NULL AS INTEGER ) / COUNT ( * ) - - 1 * NULLIF ( 18, + - COALESCE ( - MAX ( NULLIF ( 38, - 14 * + 83 / 7 ) ), - 71 ) * + CASE - + 73 WHEN + - 20 * - + COUNT ( * ) THEN NULL ELSE 92 * 24 END + - + ( MAX ( DISTINCT - 1 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-794
SELECT - + 89 * + 53 AS col2, + 46 * + COUNT( * )
----
-4717
46

skipif mysql # not compatible
query II rowsort label-794
SELECT - + 89 * + 53 AS col2, + 46 * + COUNT ( * )
----
-4717
46

query I rowsort
SELECT ALL - + 71 * - 76 * + - COALESCE ( + + 87, 77 * 18 - + 63 - - - 40 ) - ( 51 ) + + 82
----
-469421

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT ALL 0 DIV ( - 11 ) - - 5
----
5

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL 0 / ( - 11 ) - - 5
----
5

query I rowsort
SELECT - + 45 + ( + 13 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT - COUNT( * ) * + 32 - - 46 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-798
SELECT - COUNT ( * ) * + 32 - - 46 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT - + 29 * - 18 + ( + 90 ) + 66 + - 64 + + - CAST( - - ( 97 ) AS SIGNED )
----
517

skipif mysql # not compatible
query I rowsort label-799
SELECT - + 29 * - 18 + ( + 90 ) + 66 + - 64 + + - CAST ( - - ( 97 ) AS INTEGER )
----
517

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT + COUNT( * ) * - 97 + 7 + - - 38
----
-52

skipif mysql # not compatible
query I rowsort label-801
SELECT + COUNT ( * ) * - 97 + 7 + - - 38
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-802
SELECT ALL 91 DIV + - 91
----
-1

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL 91 / + - 91
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-803
SELECT SUM( DISTINCT + 66 ) * + COALESCE ( + 74, - CAST( - 61 AS SIGNED ) * 4 + + 32 + 98 * + CASE + 18 WHEN + 84 THEN NULL WHEN + 79 * + COUNT( * ) * + - 75 THEN - 70 * + - 67 END * - 25 DIV + - MAX( ALL 60 ) + - 51 + - 59 - COUNT( * ) DIV + 29 * - 47 ) AS col0
----
4884

skipif mysql # not compatible
query I rowsort label-803
SELECT SUM ( DISTINCT + 66 ) * + COALESCE ( + 74, - CAST ( - 61 AS INTEGER ) * 4 + + 32 + 98 * + CASE + 18 WHEN + 84 THEN NULL WHEN + 79 * + COUNT ( * ) * + - 75 THEN - 70 * + - 67 END * - 25 / + - MAX ( ALL 60 ) + - 51 + - 59 - COUNT ( * ) / + 29 * - 47 ) AS col0
----
4884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-804
SELECT DISTINCT + 77 * - + 25 + CAST( NULL AS SIGNED ) + 81 * + 4, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-804
SELECT DISTINCT + 77 * - + 25 + CAST ( NULL AS INTEGER ) + 81 * + 4, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT ALL - 39, - ( + + 43 ) AS col0
----
-39
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT ALL NULLIF ( MAX( DISTINCT - 6 ), - 10 ) * - 75 AS col2
----
450

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL NULLIF ( MAX ( DISTINCT - 6 ), - 10 ) * - 75 AS col2
----
450

query II rowsort
SELECT 62 AS col2, - 72 AS col0
----
62
-72

query I rowsort
SELECT ALL + 55 * + + 14 AS col2
----
770

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-809
SELECT DISTINCT 82 + - CASE + ( + + 87 ) WHEN + COUNT( * ) THEN + - 76 ELSE NULL END + + ( + 1 ), + 55 DIV + 73 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-809
SELECT DISTINCT 82 + - CASE + ( + + 87 ) WHEN + COUNT ( * ) THEN + - 76 ELSE NULL END + + ( + 1 ), + 55 / + 73 AS col2
----
NULL
0

query II rowsort
SELECT - 55 AS col2, + 14
----
-55
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT SUM( + 49 ) + - + 53 + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-812
SELECT SUM ( + 49 ) + - + 53 + COUNT ( * )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-813
SELECT 99 DIV + 12
----
8

skipif mysql # not compatible
query I rowsort label-813
SELECT 99 / + 12
----
8

query I rowsort
SELECT ALL 63 + + 83 * + + 9 + + + 14 * - 9 * + + 77
----
-8892

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-816
SELECT ALL COUNT( * ) + - NULLIF ( + - COUNT( * ), + - 55 ) * MAX( ALL + 36 ) * CAST( NULL AS SIGNED ) * - NULLIF ( + 70, - ( + - 35 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL COUNT ( * ) + - NULLIF ( + - COUNT ( * ), + - 55 ) * MAX ( ALL + 36 ) * CAST ( NULL AS INTEGER ) * - NULLIF ( + 70, - ( + - 35 ) )
----
NULL

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

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

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

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

query II rowsort
SELECT - + 75 col0, 24 col0
----
-75
24

query I rowsort
SELECT - 76 * - 56
----
4256

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT ALL + COUNT( * ) - - 69 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL + COUNT ( * ) - - 69 AS col2
----
70

query II rowsort
SELECT ALL - + 16 AS col1, 80 AS col1
----
-16
80

onlyif mysql # DIV for integer division: 
query II rowsort label-823
SELECT - 52 DIV - 46 + 31 + + 1 AS col0, NULLIF ( + + 27, + + CASE + 52 WHEN 20 THEN 33 END - - 44 * - 20 ) AS col0
----
33
27

skipif mysql # not compatible
query II rowsort label-823
SELECT - 52 / - 46 + 31 + + 1 AS col0, NULLIF ( + + 27, + + CASE + 52 WHEN 20 THEN 33 END - - 44 * - 20 ) AS col0
----
33
27

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

query I rowsort
SELECT + 69 + - 33 * 51
----
-1614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT - CAST( + 88 AS SIGNED ) * + - 42 - + 35 + - - 15
----
3676

skipif mysql # not compatible
query I rowsort label-826
SELECT - CAST ( + 88 AS INTEGER ) * + - 42 - + 35 + - - 15
----
3676

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT ALL - + COUNT( ALL 98 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL - + COUNT ( ALL 98 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-828
SELECT ALL - 28 DIV + 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL - 28 / + 34 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-829
SELECT + 58 * 92 + COUNT( * ) - + - 63 - - 60 + - + CASE - - 38 WHEN - 19 * - 65 THEN + - AVG ( ALL - CAST( NULL AS SIGNED ) ) END * MAX( + 27 ) * 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT + 58 * 92 + COUNT ( * ) - + - 63 - - 60 + - + CASE - - 38 WHEN - 19 * - 65 THEN + - AVG ( ALL - CAST ( NULL AS INTEGER ) ) END * MAX ( + 27 ) * 64 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ALL - 78 + + COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL - 78 + + COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT DISTINCT - 15 + 19
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-833
SELECT CASE + + 43 WHEN - 42 THEN 58 WHEN - ( + 77 ) THEN NULL ELSE NULL END + - 82 + NULLIF ( - 93, + CAST( NULL AS SIGNED ) * - 88 * 47 ) + - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT CASE + + 43 WHEN - 42 THEN 58 WHEN - ( + 77 ) THEN NULL ELSE NULL END + - 82 + NULLIF ( - 93, + CAST ( NULL AS INTEGER ) * - 88 * 47 ) + - 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-834
SELECT ALL + MIN( DISTINCT - 16 ) + + COALESCE ( + 70, - 3, 64 DIV - 47 )
----
54

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL + MIN ( DISTINCT - 16 ) + + COALESCE ( + 70, - 3, 64 / - 47 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-835
SELECT 80 + 72 + - CAST( NULL AS DECIMAL ) * - COUNT( * ) * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT 80 + 72 + - CAST ( NULL AS REAL ) * - COUNT ( * ) * - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ( 32 ) * - 57 + - 79 * + 80 + - 97 * COUNT( * ) + + 51 + - 18 * + 58 * + - NULLIF ( - 54, - 64 ) * - 28 AS col0
----
1570338

skipif mysql # not compatible
query I rowsort label-836
SELECT ( 32 ) * - 57 + - 79 * + 80 + - 97 * COUNT ( * ) + + 51 + - 18 * + 58 * + - NULLIF ( - 54, - 64 ) * - 28 AS col0
----
1570338

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-837
SELECT ALL + 97 DIV MAX( + 21 )
----
4

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL + 97 / MAX ( + 21 )
----
4

query I rowsort
SELECT ALL 22 * + 38
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT DISTINCT 57 * - + COUNT( * ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT 57 * - + COUNT ( * ) col0
----
-57

query I rowsort
SELECT ALL + 52 - + 85 + + 19 * 59 AS col1
----
1088

query I rowsort
SELECT 34 + 89 - - COALESCE ( + 21, - 98 ) + - 88 AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT CAST( - 78 AS SIGNED ) + - 11 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-842
SELECT CAST ( - 78 AS INTEGER ) + - 11 AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT MIN( ALL + 29 ) * + - 9 * - 62 * - 17 col2
----
-275094

skipif mysql # not compatible
query I rowsort label-843
SELECT MIN ( ALL + 29 ) * + - 9 * - 62 * - 17 col2
----
-275094

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-845
SELECT DISTINCT + 95 DIV COUNT( * ) * + 7 - - + 85 + - NULLIF ( + 75, 43 )
----
675

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT + 95 / COUNT ( * ) * + 7 - - + 85 + - NULLIF ( + 75, 43 )
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT DISTINCT SUM( ALL - - 39 ) * - + 28 * 83 AS col0
----
-90636

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT SUM ( ALL - - 39 ) * - + 28 * 83 AS col0
----
-90636

onlyif mysql # DIV for integer division: 
query II rowsort label-847
SELECT DISTINCT + 51 DIV - - 60 AS col1, - 70
----
0
-70

skipif mysql # not compatible
query II rowsort label-847
SELECT DISTINCT + 51 / - - 60 AS col1, - 70
----
0
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT ALL COUNT( 68 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL COUNT ( 68 ) col0
----
1

query I rowsort
SELECT DISTINCT 28 * 77 AS col1
----
2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-850
SELECT 49 * - - 0 + + ( 31 ) - + 69 / 37 + + CASE + 0 WHEN MIN( 13 ) * - - COUNT( * ) / 98 + - ( 22 ) + 82 * 26 + 29 THEN - - CAST( + 33 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-850
SELECT 49 * - - 0 + + ( 31 ) - + 69 / 37 + + CASE + 0 WHEN MIN ( 13 ) * - - COUNT ( * ) / 98 + - ( 22 ) + 82 * 26 + 29 THEN - - CAST ( + 33 AS INTEGER ) END
----
NULL

query I rowsort
SELECT - 67 * - 85 * - 76 AS col2
----
-432820

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

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT + COUNT ( * ) * 9 AS col2
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-853
SELECT - 32 * - 38 - + ( - 6 ) AS col2, 7 DIV - 34
----
1222
0

skipif mysql # not compatible
query II rowsort label-853
SELECT - 32 * - 38 - + ( - 6 ) AS col2, 7 / - 34
----
1222
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL + + MIN( 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + + MIN ( 67 ) AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-857
SELECT + 42 DIV 68 col2
----
0

skipif mysql # not compatible
query I rowsort label-857
SELECT + 42 / 68 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-858
SELECT DISTINCT 11 * + 70 + - 59 + + - 93 DIV MIN( DISTINCT 90 )
----
710

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT 11 * + 70 + - 59 + + - 93 / MIN ( DISTINCT 90 )
----
710

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT ALL COUNT( * ) * - + COUNT( * ) + - MIN( + 70 ) * COUNT( * ) col0
----
-71

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL COUNT ( * ) * - + COUNT ( * ) + - MIN ( + 70 ) * COUNT ( * ) col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT DISTINCT ( - + CASE + 81 WHEN + - 40 THEN NULLIF ( NULLIF ( 16, COUNT( * ) + - 73 * + COUNT( * ) ), - - COUNT( * ) * - 92 ) + + 57 END ) * 49 + 70 + - 8 * + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT ( - + CASE + 81 WHEN + - 40 THEN NULLIF ( NULLIF ( 16, COUNT ( * ) + - 73 * + COUNT ( * ) ), - - COUNT ( * ) * - 92 ) + + 57 END ) * 49 + 70 + - 8 * + 47 AS col1
----
NULL

query I rowsort
SELECT + 13 + - 38
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT COUNT( * ) * - 96 * + COUNT( * ) * - ( - + 88 ) - 51 col0
----
-8499

skipif mysql # not compatible
query I rowsort label-862
SELECT COUNT ( * ) * - 96 * + COUNT ( * ) * - ( - + 88 ) - 51 col0
----
-8499

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT - COALESCE ( - 12, + - 1 - - COUNT( * ), - - COUNT( * ) ) * - 47 * + - 3 AS col1
----
1692

skipif mysql # not compatible
query I rowsort label-863
SELECT - COALESCE ( - 12, + - 1 - - COUNT ( * ), - - COUNT ( * ) ) * - 47 * + - 3 AS col1
----
1692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-864
SELECT COALESCE ( + 7, 82, - 9 DIV + 92 * - + 59 DIV - 79 + - COUNT( * ), - COUNT( * ) + + + 97 )
----
7

skipif mysql # not compatible
query I rowsort label-864
SELECT COALESCE ( + 7, 82, - 9 / + 92 * - + 59 / - 79 + - COUNT ( * ), - COUNT ( * ) + + + 97 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT COUNT( DISTINCT 56 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-865
SELECT COUNT ( DISTINCT 56 ) AS col0
----
1

query I rowsort
SELECT ALL CASE - 42 WHEN - 42 THEN 0 END * - ( 24 ) + - 46 - 14 - 78 AS col2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL 46 * ( - - 21 ) * 64 + + COUNT( * )
----
61825

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL 46 * ( - - 21 ) * 64 + + COUNT ( * )
----
61825

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT + MIN( - 13 ) * COUNT( * ) - - 25 + 1 col2
----
13

skipif mysql # not compatible
query I rowsort label-868
SELECT + MIN ( - 13 ) * COUNT ( * ) - - 25 + 1 col2
----
13

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

skipif mysql # not compatible
query II rowsort label-869
SELECT COUNT ( * ) col1, + ( 62 )
----
1
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-870
SELECT COUNT( * ) * - + 76 / - 93 + - ( + CAST( NULL AS SIGNED ) ) + 9 / + 45 / - - 8 / - 64 / - 24, + NULLIF ( 21, 86 * - 54 ) col2
----
NULL
21

skipif mysql # not compatible
query II rowsort label-870
SELECT COUNT ( * ) * - + 76 / - 93 + - ( + CAST ( NULL AS INTEGER ) ) + 9 / + 45 / - - 8 / - 64 / - 24, + NULLIF ( 21, 86 * - 54 ) col2
----
NULL
21

query I rowsort
SELECT DISTINCT 99 * 13
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL + CASE + ( + + COUNT( * ) ) WHEN + COUNT( * ) THEN - 9 WHEN + AVG ( DISTINCT 30 ) + + 97 * - COUNT( * ) THEN + + 82 + COUNT( * ) - - COUNT( * ) * 62 + - COUNT( * ) END AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL + CASE + ( + + COUNT ( * ) ) WHEN + COUNT ( * ) THEN - 9 WHEN + AVG ( DISTINCT 30 ) + + 97 * - COUNT ( * ) THEN + + 82 + COUNT ( * ) - - COUNT ( * ) * 62 + - COUNT ( * ) END AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT DISTINCT + NULLIF ( + 44, + MIN( + 73 ) ) * - + 33 + - 81 - - 5 AS col1
----
-1528

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT + NULLIF ( + 44, + MIN ( + 73 ) ) * - + 33 + - 81 - - 5 AS col1
----
-1528

query I rowsort
SELECT + 16 + 32 * 39 AS col0
----
1264

onlyif mysql # aggregate syntax: 
query II rowsort label-875
SELECT ALL - 21 - - COUNT( * ) * - COUNT( * ), MIN( + 54 ) AS col1
----
-22
54

skipif mysql # not compatible
query II rowsort label-875
SELECT ALL - 21 - - COUNT ( * ) * - COUNT ( * ), MIN ( + 54 ) AS col1
----
-22
54

query II rowsort
SELECT - 75, 28 AS col2
----
-75
28

query I rowsort
SELECT - 82 * - 93 - - ( 13 ) * - 2 AS col2
----
7600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-878
SELECT DISTINCT CASE 0 WHEN 12 THEN - 3 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT CASE 0 WHEN 12 THEN - 3 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 91 * 97
----
8827

query I rowsort
SELECT ALL + ( + + 18 ) - - 8 AS col1
----
26

query I rowsort
SELECT - 68 + + 78 - - 82
----
92

query I rowsort
SELECT ALL + 22 * - 17
----
-374

query I rowsort
SELECT - + 16 * + 94 * + NULLIF ( + 75, 37 ) + - 58
----
-112858

onlyif mysql # aggregate syntax: 
query II rowsort label-884
SELECT - + COUNT( * ) AS col1, + ( + 31 ) + - - 68 - + 66 * + 72 * + 38 col0
----
-1
-180477

skipif mysql # not compatible
query II rowsort label-884
SELECT - + COUNT ( * ) AS col1, + ( + 31 ) + - - 68 - + 66 * + 72 * + 38 col0
----
-1
-180477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-885
SELECT + + COUNT( DISTINCT + + 37 ) + + 16 - CAST( - 26 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-885
SELECT + + COUNT ( DISTINCT + + 37 ) + + 16 - CAST ( - 26 AS INTEGER )
----
43

query I rowsort
SELECT - - ( 52 ) * 17 AS col1
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ALL - 72 + - + ( CASE - 73 WHEN 84 * + COUNT( * ) * - 60 * + + 32 + + 14 THEN - 47 WHEN 26 * + MAX( 18 ) / - - ( - - 80 ) + + 13 + - MIN( DISTINCT + 25 ) * + 24 * - - COUNT( * ) THEN + 63 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL - 72 + - + ( CASE - 73 WHEN 84 * + COUNT ( * ) * - 60 * + + 32 + + 14 THEN - 47 WHEN 26 * + MAX ( 18 ) / - - ( - - 80 ) + + 13 + - MIN ( DISTINCT + 25 ) * + 24 * - - COUNT ( * ) THEN + 63 END ) AS col0
----
NULL

query I rowsort
SELECT - + 67 + 76 * ( - 3 )
----
-295

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

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

query I rowsort
SELECT - - 92 + + + 63 AS col1
----
155

query I rowsort
SELECT DISTINCT - 70 + - 68 AS col0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT ALL + - 9 + - 97 * - ( + CAST( - 68 AS SIGNED ) )
----
-6605

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL + - 9 + - 97 * - ( + CAST ( - 68 AS INTEGER ) )
----
-6605

query I rowsort
SELECT DISTINCT - 89 + + - 47 * - 47
----
2120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-895
SELECT COUNT( * ) DIV 88 + 98 + + 38
----
136

skipif mysql # not compatible
query I rowsort label-895
SELECT COUNT ( * ) / 88 + 98 + + 38
----
136

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-897
SELECT CAST( + 29 AS SIGNED ), + 10 AS col1
----
29
10

skipif mysql # not compatible
query II rowsort label-897
SELECT CAST ( + 29 AS INTEGER ), + 10 AS col1
----
29
10

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT - 61 DIV - 80 + - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-898
SELECT - 61 / - 80 + - 42 AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-899
SELECT ALL AVG ( + 31 ) / + COUNT( 61 ) * - - 72 + + + CAST( NULL AS DECIMAL ) + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL AVG ( + 31 ) / + COUNT ( 61 ) * - - 72 + + + CAST ( NULL AS REAL ) + 51 AS col1
----
NULL

query I rowsort
SELECT - 64 * + 20
----
-1280

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT ( SUM( 55 ) )
----
55

skipif mysql # not compatible
query I rowsort label-901
SELECT ( SUM ( 55 ) )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-902
SELECT ALL 58 * - ( + COALESCE ( 68, + - 46 + + 39 + - 29 + CAST( NULL AS SIGNED ) + - + 76 ) ) AS col1
----
-3944

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL 58 * - ( + COALESCE ( 68, + - 46 + + 39 + - 29 + CAST ( NULL AS INTEGER ) + - + 76 ) ) AS col1
----
-3944

query I rowsort
SELECT ALL 10 * - 87 - - - 91
----
-961

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT + 28 * - MIN( DISTINCT 20 ) col2
----
-560

skipif mysql # not compatible
query I rowsort label-904
SELECT + 28 * - MIN ( DISTINCT 20 ) col2
----
-560

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-906
SELECT ALL + 84 * 2 * - + 63 - 80 DIV + - COUNT( * )
----
-10504

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL + 84 * 2 * - + 63 - 80 / + - COUNT ( * )
----
-10504

onlyif mysql # aggregate syntax: 
query II rowsort label-907
SELECT ALL + 53, - COUNT( * ) col2
----
53
-1

skipif mysql # not compatible
query II rowsort label-907
SELECT ALL + 53, - COUNT ( * ) col2
----
53
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-908
SELECT ( - 3 ), MIN( ALL - + 76 ) + + 2 * - 71 AS col0
----
-3
-218

skipif mysql # not compatible
query II rowsort label-908
SELECT ( - 3 ), MIN ( ALL - + 76 ) + + 2 * - 71 AS col0
----
-3
-218

query I rowsort
SELECT - 79 * + 42 + 65
----
-3253

query I rowsort
SELECT ( - ( 9 ) )
----
-9

query II rowsort
SELECT + 68 * - 9 AS col2, + 13 AS col1
----
-612
13

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT - COUNT( ALL + - 23 ) * - 77 col1
----
77

skipif mysql # not compatible
query I rowsort label-912
SELECT - COUNT ( ALL + - 23 ) * - 77 col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT ALL + COUNT( ALL - 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL + COUNT ( ALL - 2 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-914
SELECT - 16 * + 48 + 87 + - + COUNT( * ) AS col2, MAX( DISTINCT - 45 ) DIV - 80 * - - 65 AS col2
----
-682
0

skipif mysql # not compatible
query II rowsort label-914
SELECT - 16 * + 48 + 87 + - + COUNT ( * ) AS col2, MAX ( DISTINCT - 45 ) / - 80 * - - 65 AS col2
----
-682
0

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

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

query I rowsort
SELECT - 38 * - 19
----
722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-917
SELECT DISTINCT CAST( - + COALESCE ( - 27, - - SUM( + 24 ) ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT CAST ( - + COALESCE ( - 27, - - SUM ( + 24 ) ) AS INTEGER )
----
27

query I rowsort
SELECT DISTINCT 74 * + - 57 * + ( ( 54 ) ) AS col2
----
-227772

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-919
SELECT - + 53, COALESCE ( - 82, - 9 + 92, - 36 * + 0 DIV - COUNT( * ) + - COUNT( * ) ) AS col1
----
-53
-82

skipif mysql # not compatible
query II rowsort label-919
SELECT - + 53, COALESCE ( - 82, - 9 + 92, - 36 * + 0 / - COUNT ( * ) + - COUNT ( * ) ) AS col1
----
-53
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT MAX( DISTINCT - + 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-921
SELECT MAX ( DISTINCT - + 63 ) AS col1
----
-63

query I rowsort
SELECT - - 82 + ( + 70 )
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT ALL + 76 + - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL + 76 + - COUNT ( * )
----
75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-925
SELECT CAST( - 86 AS SIGNED ) / MIN( + + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT CAST ( - 86 AS INTEGER ) / MIN ( + + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT ALL - - 61 + - ( + 64 ) * 30 - + + SUM( DISTINCT - + 18 ) AS col2
----
-1841

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL - - 61 + - ( + 64 ) * 30 - + + SUM ( DISTINCT - + 18 ) AS col2
----
-1841

query I rowsort
SELECT - 88 * + + 99
----
-8712

onlyif mysql # DIV for integer division: 
query I rowsort label-928
SELECT 6 + - - 70 + COALESCE ( + + ( + 67 ), 62 ) DIV + - 27 - + 78 * 39
----
-2968

skipif mysql # not compatible
query I rowsort label-928
SELECT 6 + - - 70 + COALESCE ( + + ( + 67 ), 62 ) / + - 27 - + 78 * 39
----
-2968

query II rowsort
SELECT DISTINCT - - COALESCE ( 38, + - 44 ) + - 94, 33 AS col2
----
-56
33

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

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

query I rowsort
SELECT ALL - - 86 * - 69 * + - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-932
SELECT ALL - CAST( NULL AS SIGNED ) + + + COUNT( * ) * + 67 + + - 56 - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + 67 + + - 56 - - 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-933
SELECT DISTINCT + 82 + - CAST( CASE - + 54 WHEN - 44 * + - 10 THEN - 97 WHEN 51 THEN NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT + 82 + - CAST ( CASE - + 54 WHEN - 44 * + - 10 THEN - 97 WHEN 51 THEN NULL END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - 73, - 88 / 85 + + 28 ) + + 31 + - - 98 * 51 AS col2
----
4956

query I rowsort
SELECT ALL + ( - 32 ) + + 26 * + - 17
----
-474

onlyif mysql # DIV for integer division: 
query I rowsort label-936
SELECT 35 + - + 67 DIV - 88
----
35

skipif mysql # not compatible
query I rowsort label-936
SELECT 35 + - + 67 / - 88
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT - - MIN( DISTINCT + + 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-937
SELECT - - MIN ( DISTINCT + + 53 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-938
SELECT - 67 col1, - 63 * MIN( DISTINCT + 61 ) + COALESCE ( 11, ( 53 ) * + 65, - 71 )
----
-67
-3832

skipif mysql # not compatible
query II rowsort label-938
SELECT - 67 col1, - 63 * MIN ( DISTINCT + 61 ) + COALESCE ( 11, ( 53 ) * + 65, - 71 )
----
-67
-3832

onlyif mysql # aggregate syntax: 
query III rowsort label-939
SELECT ALL + 0 + 71 + + MIN( + 34 ) + - 54 * + COALESCE ( - + MIN( - 5 ), - + MAX( ALL - - 28 ), + 14 ), 93 AS col1, 24 AS col1
----
-165
93
24

skipif mysql # not compatible
query III rowsort label-939
SELECT ALL + 0 + 71 + + MIN ( + 34 ) + - 54 * + COALESCE ( - + MIN ( - 5 ), - + MAX ( ALL - - 28 ), + 14 ), 93 AS col1, 24 AS col1
----
-165
93
24

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT - 4 - 85 DIV - + 51
----
-3

skipif mysql # not compatible
query I rowsort label-940
SELECT - 4 - 85 / - + 51
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT ALL - - 94 + + 46 + + SUM( DISTINCT - + 14 ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL - - 94 + + 46 + + SUM ( DISTINCT - + 14 ) AS col0
----
126

query II rowsort
SELECT DISTINCT + 11 * + + 35 AS col1, 25 - - 23 col0
----
385
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-943
SELECT + 19 DIV 6 * + + 12 * + - 62 + + COUNT( * ) * - 7 DIV + 77 + + + 29 AS col0
----
-2203

skipif mysql # not compatible
query I rowsort label-943
SELECT + 19 / 6 * + + 12 * + - 62 + + COUNT ( * ) * - 7 / + 77 + + + 29 AS col0
----
-2203

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-944
SELECT ALL - 38 - - CAST( NULL AS DECIMAL ), NULLIF ( + - 32, + 65 * + - 30 ) AS col0
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-944
SELECT ALL - 38 - - CAST ( NULL AS REAL ), NULLIF ( + - 32, + 65 * + - 30 ) AS col0
----
NULL
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-945
SELECT ALL 99 * 4 DIV 74 col0
----
5

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL 99 * 4 / 74 col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-946
SELECT 92 + CAST( COUNT( * ) AS SIGNED ) * - + 53 col2
----
39

skipif mysql # not compatible
query I rowsort label-946
SELECT 92 + CAST ( COUNT ( * ) AS INTEGER ) * - + 53 col2
----
39

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

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT 45 / COUNT ( * )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT 8 DIV - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-948
SELECT 8 / - 86 AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-950
SELECT ALL ( - 62 ) * 11, NULLIF ( - CASE - COALESCE ( + 50, - 15 * - 29 + + + 32 ) WHEN 65 THEN NULL ELSE - - CAST( NULL AS SIGNED ) END, 54 ) * + 48 + - ( + COUNT( * ) ) col2
----
-682
NULL

skipif mysql # not compatible
query II rowsort label-950
SELECT ALL ( - 62 ) * 11, NULLIF ( - CASE - COALESCE ( + 50, - 15 * - 29 + + + 32 ) WHEN 65 THEN NULL ELSE - - CAST ( NULL AS INTEGER ) END, 54 ) * + 48 + - ( + COUNT ( * ) ) col2
----
-682
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT 33 DIV + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-952
SELECT 33 / + 55 AS col1
----
0

query I rowsort
SELECT ALL ( + 57 ) * - + 51 AS col2
----
-2907

onlyif mysql # DIV for integer division: 
query II rowsort label-954
SELECT ALL - 76 DIV + 65 AS col2, + 53 * - 2
----
-1
-106

skipif mysql # not compatible
query II rowsort label-954
SELECT ALL - 76 / + 65 AS col2, + 53 * - 2
----
-1
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-955
SELECT 67 * - 56 + CAST( + + MIN( - + CAST( + + 81 AS SIGNED ) ) AS SIGNED )
----
-3833

skipif mysql # not compatible
query I rowsort label-955
SELECT 67 * - 56 + CAST ( + + MIN ( - + CAST ( + + 81 AS INTEGER ) ) AS INTEGER )
----
-3833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-956
SELECT CAST( 25 AS SIGNED ) * 42 - + 41 + - 86 + - + 89
----
834

skipif mysql # not compatible
query I rowsort label-956
SELECT CAST ( 25 AS INTEGER ) * 42 - + 41 + - 86 + - + 89
----
834

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT ALL 89 + 80 AS col1, - COUNT( * ) * + + 32 AS col0
----
169
-32

skipif mysql # not compatible
query II rowsort label-957
SELECT ALL 89 + 80 AS col1, - COUNT ( * ) * + + 32 AS col0
----
169
-32

query I rowsort
SELECT 31 + - 90
----
-59

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

query I rowsort
SELECT ALL - 56 + 8 + - - 90 * + 2 AS col2
----
132

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

query I rowsort
SELECT ALL - 45 + - 66
----
-111

query I rowsort
SELECT ALL + - 21 + - 20
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT ALL - MAX( 90 ) + - 47 + 44
----
-93

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL - MAX ( 90 ) + - 47 + 44
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-965
SELECT 93 + - 6 + 32 DIV + 55 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-965
SELECT 93 + - 6 + 32 / + 55 AS col2
----
87

query I rowsort
SELECT 80 + 51
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT - 58 * + CASE MAX( - - 25 ) WHEN - COUNT( * ) - + COUNT( * ) + - 50 THEN ( 54 ) * - 60 + 96 + - AVG ( DISTINCT - - 26 ) ELSE NULL END * - 90 * 7 * - COALESCE ( + 98, 68 * + 36 + - MAX( + + 89 ) - 19 ) * - 52 - + + COUNT( - 26 ) + + + 92 * 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-967
SELECT - 58 * + CASE MAX ( - - 25 ) WHEN - COUNT ( * ) - + COUNT ( * ) + - 50 THEN ( 54 ) * - 60 + 96 + - AVG ( DISTINCT - - 26 ) ELSE NULL END * - 90 * 7 * - COALESCE ( + 98, 68 * + 36 + - MAX ( + + 89 ) - 19 ) * - 52 - + + COUNT ( - 26 ) + + + 92 * 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT ALL + 68 - COUNT( + 11 ) - 8 - - + 11
----
70

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL + 68 - COUNT ( + 11 ) - 8 - - + 11
----
70

query I rowsort
SELECT 99 * + - 16 AS col0
----
-1584

query I rowsort
SELECT 2 + - 49 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT ALL + 70 - + - COUNT( + - 52 ) + - 68 * - MAX( + + 5 ) * - 70 + - - 45
----
-23684

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL + 70 - + - COUNT ( + - 52 ) + - 68 * - MAX ( + + 5 ) * - 70 + - - 45
----
-23684

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-973
SELECT 70 DIV - 24 + - 63 AS col2, 49 - + 26 - 53 * 14 col2
----
-65
-719

skipif mysql # not compatible
query II rowsort label-973
SELECT 70 / - 24 + - 63 AS col2, 49 - + 26 - 53 * 14 col2
----
-65
-719

onlyif mysql # DIV for integer division: 
query II rowsort label-974
SELECT + 1 AS col2, ( + 91 ) DIV + 30 - - 94 + - - 1 AS col2
----
1
98

skipif mysql # not compatible
query II rowsort label-974
SELECT + 1 AS col2, ( + 91 ) / + 30 - - 94 + - - 1 AS col2
----
1
98

query I rowsort
SELECT 28 + - 9 AS col0
----
19

query I rowsort
SELECT 99 * - 7 AS col2
----
-693

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT 24 + - - 44 * - + 31 * + COUNT( * ) AS col1
----
-1340

skipif mysql # not compatible
query I rowsort label-979
SELECT 24 + - - 44 * - + 31 * + COUNT ( * ) AS col1
----
-1340

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT DISTINCT - COUNT( - + 88 ) * + ( - 25 ) - - 25
----
50

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT - COUNT ( - + 88 ) * + ( - 25 ) - - 25
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-981
SELECT COUNT( * ) AS col1, - 14 + - + 80
----
1
-94

skipif mysql # not compatible
query II rowsort label-981
SELECT COUNT ( * ) AS col1, - 14 + - + 80
----
1
-94

query II rowsort
SELECT DISTINCT - 4 AS col2, + ( + NULLIF ( + + 14, + 69 ) ) + 28 * + + 63 AS col1
----
-4
1778

query I rowsort
SELECT DISTINCT - ( - 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT ALL MIN( 82 ) * - 43 + + - 67
----
-3593

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL MIN ( 82 ) * - 43 + + - 67
----
-3593

onlyif mysql # DIV for integer division: 
query II rowsort label-985
SELECT + 80 AS col2, ( - 21 ) * 87 * 91 - + 79 DIV 43 AS col0
----
80
-166258

skipif mysql # not compatible
query II rowsort label-985
SELECT + 80 AS col2, ( - 21 ) * 87 * 91 - + 79 / 43 AS col0
----
80
-166258

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT DISTINCT - COALESCE ( 98, - COUNT( * ), + - COUNT( * ) ) + + 51
----
-47

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT - COALESCE ( 98, - COUNT ( * ), + - COUNT ( * ) ) + + 51
----
-47

query I rowsort
SELECT DISTINCT + 63 + + - ( - 23 ) col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT ALL 91 + - COALESCE ( + - MIN( ALL + + 76 ), + + 70, - - 12 * - + 89 ) AS col2
----
167

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL 91 + - COALESCE ( + - MIN ( ALL + + 76 ), + + 70, - - 12 * - + 89 ) AS col2
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-989
SELECT - + 29 + SUM( ALL 47 ) * + 61 col2, COALESCE ( + 33, 96 )
----
2838
33

skipif mysql # not compatible
query II rowsort label-989
SELECT - + 29 + SUM ( ALL 47 ) * + 61 col2, COALESCE ( + 33, 96 )
----
2838
33

query I rowsort
SELECT + 61 - + - 72
----
133

query I rowsort
SELECT ALL + 85 * - 33 AS col0
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT ALL - + MAX( + - 41 ) + 56 + - + 20 * + 94
----
-1783

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL - + MAX ( + - 41 ) + 56 + - + 20 * + 94
----
-1783

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

query I rowsort
SELECT + 7 + + 81
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT NULLIF ( COUNT( * ), - - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-995
SELECT NULLIF ( COUNT ( * ), - - 16 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT ALL 3 - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL 3 - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT DISTINCT - NULLIF ( + COUNT( DISTINCT + 76 ), 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT - NULLIF ( + COUNT ( DISTINCT + 76 ), 69 )
----
-1

query I rowsort
SELECT ALL - 67 * - + 69 AS col1
----
4623

query I rowsort
SELECT - NULLIF ( + + 35, 54 )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-1000
SELECT ALL COUNT( * ) col0, 99 + + - 92
----
1
7

skipif mysql # not compatible
query II rowsort label-1000
SELECT ALL COUNT ( * ) col0, 99 + + - 92
----
1
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1001
SELECT + 23 * - NULLIF ( - 50, - ( 82 ) ) * - COUNT( * ) AS col2, 16 AS col0
----
-1150
16

skipif mysql # not compatible
query II rowsort label-1001
SELECT + 23 * - NULLIF ( - 50, - ( 82 ) ) * - COUNT ( * ) AS col2, 16 AS col0
----
-1150
16

query I rowsort
SELECT ALL 35 * - - 59 AS col0
----
2065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1003
SELECT - CASE + COALESCE ( 6, - MIN( - + 63 ) + 49, + 37 ) WHEN - - MAX( - 51 ) - 55 + - - ( - CAST( NULL AS SIGNED ) ) THEN NULL ELSE 20 END AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1003
SELECT - CASE + COALESCE ( 6, - MIN ( - + 63 ) + 49, + 37 ) WHEN - - MAX ( - 51 ) - 55 + - - ( - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 20 END AS col1
----
-20

query I rowsort
SELECT - 99 * + 8 AS col1
----
-792

query I rowsort
SELECT - 34 * 54
----
-1836

query I rowsort
SELECT - 63 * - 51
----
3213

query I rowsort
SELECT - 22 + - 60 AS col0
----
-82

query II rowsort
SELECT - 39 * 1 AS col2, 4 + - 16
----
-39
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1009
SELECT - 98 + - 48 * + COUNT( * ) - - 88 AS col2, 50
----
-58
50

skipif mysql # not compatible
query II rowsort label-1009
SELECT - 98 + - 48 * + COUNT ( * ) - - 88 AS col2, 50
----
-58
50

query II rowsort
SELECT ( 58 ) AS col0, + 89 AS col0
----
58
89

query I rowsort
SELECT + 3 * 81 AS col1
----
243

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1013
SELECT NULLIF ( - 88, 2 * - + 76 + + 10 ), - MAX( - CAST( NULL AS SIGNED ) ) * + + 86 * 11 AS col2
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-1013
SELECT NULLIF ( - 88, 2 * - + 76 + + 10 ), - MAX ( - CAST ( NULL AS INTEGER ) ) * + + 86 * 11 AS col2
----
-88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL - 4 * + COALESCE ( - 80, - 22 * + 42 * - + COUNT( * ) * - 49 * + 67 ) * 87
----
27840

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - 4 * + COALESCE ( - 80, - 22 * + 42 * - + COUNT ( * ) * - 49 * + 67 ) * 87
----
27840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1015
SELECT - 73 * + - CAST( + - 95 AS SIGNED ) * 23 * + + 43 AS col0
----
-6858715

skipif mysql # not compatible
query I rowsort label-1015
SELECT - 73 * + - CAST ( + - 95 AS INTEGER ) * 23 * + + 43 AS col0
----
-6858715

query I rowsort
SELECT DISTINCT + 81 * 99 + - 10
----
8009

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT ALL 42 * 92 + + ( + ( CASE + MAX( + 84 ) WHEN - 26 THEN + 93 END ) ) * 61 * + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL 42 * 92 + + ( + ( CASE + MAX ( + 84 ) WHEN - 26 THEN + 93 END ) ) * 61 * + 41 AS col0
----
NULL

query I rowsort
SELECT + 67 * - - 4 + + 68 + + + 45 + - 57 * + 34 AS col0
----
-1557

query I rowsort
SELECT - - 23 * + 24 * 88 AS col2
----
48576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1021
SELECT ALL - 12 * + + NULLIF ( - 35, - 89 + + + 23 * - CAST( NULL AS SIGNED ) * - AVG ( - 84 ) ) AS col2
----
420

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL - 12 * + + NULLIF ( - 35, - 89 + + + 23 * - CAST ( NULL AS INTEGER ) * - AVG ( - 84 ) ) AS col2
----
420

onlyif mysql # DIV for integer division: 
query I rowsort label-1022
SELECT - - COALESCE ( - 50, + + 24 DIV + + 81 + + - 15 ) + NULLIF ( - - 77, - + 6 )
----
27

skipif mysql # not compatible
query I rowsort label-1022
SELECT - - COALESCE ( - 50, + + 24 / + + 81 + + - 15 ) + NULLIF ( - - 77, - + 6 )
----
27

query I rowsort
SELECT ALL + 37 * + 52
----
1924

query I rowsort
SELECT ALL 24 - + 87
----
-63

query I rowsort
SELECT + 98 + - 29 - + ( - 41 ) * - 7 col0
----
-218

onlyif mysql # aggregate syntax: 
query II rowsort label-1026
SELECT + ( - NULLIF ( + 90, 32 + + ( + - 24 ) + + + 8 ) ) - 55 * 95 AS col0, COUNT( * ) AS col1
----
-5315
1

skipif mysql # not compatible
query II rowsort label-1026
SELECT + ( - NULLIF ( + 90, 32 + + ( + - 24 ) + + + 8 ) ) - 55 * 95 AS col0, COUNT ( * ) AS col1
----
-5315
1

query I rowsort
SELECT DISTINCT ( - 25 ) col2
----
-25

query I rowsort
SELECT - 51 + - 10 + - 17 * + + 35 * - 21 AS col2
----
12434

onlyif mysql # aggregate syntax: 
query II rowsort label-1029
SELECT + - 66 + + - COUNT( * ) AS col1, - 66 * + 66 * - ( + 70 ) + - 91 AS col0
----
-67
304829

skipif mysql # not compatible
query II rowsort label-1029
SELECT + - 66 + + - COUNT ( * ) AS col1, - 66 * + 66 * - ( + 70 ) + - 91 AS col0
----
-67
304829

query I rowsort
SELECT + 82 + + + 3
----
85

query I rowsort
SELECT + 52 * + 56 * 23 AS col0
----
66976

query I rowsort
SELECT + 69 + + 58
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1033
SELECT ALL 48 AS col0, 25 * CAST( NULL AS SIGNED ) + AVG ( ALL + 4 )
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1033
SELECT ALL 48 AS col0, 25 * CAST ( NULL AS INTEGER ) + AVG ( ALL + 4 )
----
48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL 40 + + 62 * - + COUNT( * ) + - 32 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL 40 + + 62 * - + COUNT ( * ) + - 32 AS col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT ALL NULLIF ( + 81, + NULLIF ( + 51, - 53 DIV 87 ) + - 51 ) + + 69 DIV - ( - - 41 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL NULLIF ( + 81, + NULLIF ( + 51, - 53 / 87 ) + - 51 ) + + 69 / - ( - - 41 ) AS col2
----
80

query I rowsort
SELECT + 22 + + 63
----
85

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

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL COUNT ( * ) + + 65 AS col0
----
66

query I rowsort
SELECT ALL - 35 + + 38 * + 96
----
3613

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT 59 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-1039
SELECT 59 / + 93
----
0

query I rowsort
SELECT ALL 74 + 82
----
156

query I rowsort
SELECT DISTINCT 33 * - + 77 AS col0
----
-2541

onlyif mysql # aggregate syntax: 
query II rowsort label-1042
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) * 65 + - 99
----
-1
-34

skipif mysql # not compatible
query II rowsort label-1042
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) * 65 + - 99
----
-1
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1043
SELECT - 24 DIV + CAST( 5 AS SIGNED ) + - 6 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1043
SELECT - 24 / + CAST ( 5 AS INTEGER ) + - 6 AS col0
----
-10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1045
SELECT ALL - - COUNT( * ) AS col1, 10 * + - 40, - 87 + - + MIN( DISTINCT CAST( NULL AS SIGNED ) ) + + + 31 AS col1
----
1
-400
NULL

skipif mysql # not compatible
query III rowsort label-1045
SELECT ALL - - COUNT ( * ) AS col1, 10 * + - 40, - 87 + - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + + + 31 AS col1
----
1
-400
NULL

query I rowsort
SELECT 99 + - 9 + + 86 * + 2
----
262

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1048
SELECT DISTINCT + - CAST( 8 AS SIGNED ) * 86
----
-688

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT + - CAST ( 8 AS INTEGER ) * 86
----
-688

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT 47 - - + ( - - SUM( 38 ) ) * + + 38 col2
----
1491

skipif mysql # not compatible
query I rowsort label-1049
SELECT 47 - - + ( - - SUM ( 38 ) ) * + + 38 col2
----
1491

query II rowsort
SELECT ALL - - ( + COALESCE ( - ( 34 ), 11 ) ), + ( - 42 ) AS col1
----
-34
-42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1052
SELECT DISTINCT + - CASE - - ( - + 16 ) WHEN - 54 / + - 92 + - 19 + 32 THEN + 70 WHEN - ( 97 ) THEN + NULLIF ( - MIN( DISTINCT + 91 ), 91 ) END / - CASE + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + 90 THEN + 38 * - 82 * 0 WHEN - COUNT( * ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT + - CASE - - ( - + 16 ) WHEN - 54 / + - 92 + - 19 + 32 THEN + 70 WHEN - ( 97 ) THEN + NULLIF ( - MIN ( DISTINCT + 91 ), 91 ) END / - CASE + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + 90 THEN + 38 * - 82 * 0 WHEN - COUNT ( * ) THEN NULL ELSE NULL END col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1054
SELECT DISTINCT + 21 DIV 65 * + 22 col2
----
0

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT + 21 / 65 * + 22 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT NULLIF ( + - 1, - MIN( DISTINCT 63 ) ) * + + 77
----
-77

skipif mysql # not compatible
query I rowsort label-1055
SELECT NULLIF ( + - 1, - MIN ( DISTINCT 63 ) ) * + + 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT - COUNT( * ) * - - 68 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT - COUNT ( * ) * - - 68 AS col0
----
-68

query I rowsort
SELECT ALL + 49 + + - 88 AS col0
----
-39

query II rowsort
SELECT 57 AS col2, 32 + - 65
----
57
-33

query I rowsort
SELECT 17 + + - ( 31 ) * - 84 * - + 31 AS col0
----
-80707

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT 27 + + 79 + + + 22 * + ( COALESCE ( - - 38, 3 ) ) + - - 89 * 94 DIV - - 90 AS col0
----
1034

skipif mysql # not compatible
query I rowsort label-1060
SELECT 27 + + 79 + + + 22 * + ( COALESCE ( - - 38, 3 ) ) + - - 89 * 94 / - - 90 AS col0
----
1034

query II rowsort
SELECT 81, - 93 * + 32 AS col0
----
81
-2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1062
SELECT ALL 26 + + 1 + NULLIF ( - + 90, + 40 * + + 78 + - CASE + 35 WHEN COALESCE ( 51, - 27 + 57 ) THEN - - 86 + - 65 - - + MIN( - - 21 ) + + - 27 - 70 * + 70 ELSE NULL END + + CASE + - 68 WHEN - 25 THEN CAST( NULL AS SIGNED ) * + + 24 + - CAST( NULL AS SIGNED ) END ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL 26 + + 1 + NULLIF ( - + 90, + 40 * + + 78 + - CASE + 35 WHEN COALESCE ( 51, - 27 + 57 ) THEN - - 86 + - 65 - - + MIN ( - - 21 ) + + - 27 - 70 * + 70 ELSE NULL END + + CASE + - 68 WHEN - 25 THEN CAST ( NULL AS INTEGER ) * + + 24 + - CAST ( NULL AS INTEGER ) END ) AS col2
----
-63

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1064
SELECT DISTINCT - 91 AS col1, COUNT( * ) * + + 77 DIV 80
----
-91
0

skipif mysql # not compatible
query II rowsort label-1064
SELECT DISTINCT - 91 AS col1, COUNT ( * ) * + + 77 / 80
----
-91
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1065
SELECT 62 + SUM( DISTINCT + 82 ) + 66 AS col0, COUNT( * ) AS col1
----
210
1

skipif mysql # not compatible
query II rowsort label-1065
SELECT 62 + SUM ( DISTINCT + 82 ) + 66 AS col0, COUNT ( * ) AS col1
----
210
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1066
SELECT + 33 AS col1, 16 DIV 85 * 79 * 0
----
33
0

skipif mysql # not compatible
query II rowsort label-1066
SELECT + 33 AS col1, 16 / 85 * 79 * 0
----
33
0

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

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

query I rowsort
SELECT + 4 * + 14 - + - 60 * 2 AS col0
----
176

query II rowsort
SELECT ALL - 34, 91 * - NULLIF ( + 49, - ( 56 ) ) AS col0
----
-34
-4459

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT 24 * CAST( NULL AS SIGNED ) * + - 81 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT 24 * CAST ( NULL AS INTEGER ) * + - 81 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1072
SELECT ALL - 11 AS col1, 72 * CAST( NULL AS SIGNED )
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-1072
SELECT ALL - 11 AS col1, 72 * CAST ( NULL AS INTEGER )
----
-11
NULL

query I rowsort
SELECT ALL - - NULLIF ( - + 41, 83 ) col1
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1074
SELECT DISTINCT - + ( + - 47 ), ( 86 ) * + 25 - 88 DIV + COUNT( * ) AS col2, + 53 AS col2
----
47
2062
53

skipif mysql # not compatible
query III rowsort label-1074
SELECT DISTINCT - + ( + - 47 ), ( 86 ) * + 25 - 88 / + COUNT ( * ) AS col2, + 53 AS col2
----
47
2062
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1075
SELECT ALL - COUNT( ALL - + 39 ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL - COUNT ( ALL - + 39 ) / - 59
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1076
SELECT + 47 AS col0, CASE - 13 WHEN - 28 THEN COUNT( * ) WHEN 83 THEN - ( 99 ) + - 17 * - - 58 / COUNT( * ) + - - 39 END AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-1076
SELECT + 47 AS col0, CASE - 13 WHEN - 28 THEN COUNT ( * ) WHEN 83 THEN - ( 99 ) + - 17 * - - 58 / COUNT ( * ) + - - 39 END AS col2
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT DISTINCT - MIN( ALL + 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT - MIN ( ALL + 92 ) AS col2
----
-92

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

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

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

query I rowsort
SELECT ALL - 69 + 58
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT 49 + + - MIN( ( 49 ) ) * + 40 * - - 50
----
-97951

skipif mysql # not compatible
query I rowsort label-1081
SELECT 49 + + - MIN ( ( 49 ) ) * + 40 * - - 50
----
-97951

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT - - MAX( DISTINCT + - 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1082
SELECT - - MAX ( DISTINCT + - 63 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT 18 + + - 2 * COUNT( * ) * - - COALESCE ( - 91, - 52 + + ( 53 ) - - 76 * - 7 * - 61 + + 58 ) * + + 25 - MAX( ( 88 ) ) * + + COUNT( * ) + + + COUNT( * ) AS col0
----
4481

skipif mysql # not compatible
query I rowsort label-1083
SELECT 18 + + - 2 * COUNT ( * ) * - - COALESCE ( - 91, - 52 + + ( 53 ) - - 76 * - 7 * - 61 + + 58 ) * + + 25 - MAX ( ( 88 ) ) * + + COUNT ( * ) + + + COUNT ( * ) AS col0
----
4481

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

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

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

query I rowsort
SELECT - 69 + + 28 AS col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT DISTINCT - 72 DIV + 53
----
-1

skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT - 72 / + 53
----
-1

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

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

query I rowsort
SELECT - 33 + + - 53 AS col1
----
-86

query I rowsort
SELECT ALL - 45 * + 23
----
-1035

query I rowsort
SELECT - 14 + 84
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT + CAST( + + 69 AS SIGNED ) + + NULLIF ( 56, + CAST( NULL AS SIGNED ) )
----
125

skipif mysql # not compatible
query I rowsort label-1092
SELECT + CAST ( + + 69 AS INTEGER ) + + NULLIF ( 56, + CAST ( NULL AS INTEGER ) )
----
125

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

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

query I rowsort
SELECT - ( 92 ) * - 96 + - 46 + - - 33
----
8819

query I rowsort
SELECT - 1 / + 2 * CASE - 68 WHEN + 3 - 18 THEN + ( + 26 ) END / + + NULLIF ( + 65, 46 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT + 71 * + + MAX( DISTINCT - 64 ) + + - 90 + - ( - COUNT( * ) )
----
-4633

skipif mysql # not compatible
query I rowsort label-1096
SELECT + 71 * + + MAX ( DISTINCT - 64 ) + + - 90 + - ( - COUNT ( * ) )
----
-4633

query I rowsort
SELECT ALL + - NULLIF ( + + 89, 37 )
----
-89

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT 94 DIV 88 + - + 30 col1
----
-29

skipif mysql # not compatible
query I rowsort label-1099
SELECT 94 / 88 + - + 30 col1
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-1100
SELECT ALL + + MAX( DISTINCT 15 ), + MAX( + NULLIF ( 52, + + 34 ) ) * COALESCE ( + + 55, + 3 ) - NULLIF ( - 44, - 44 ) AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-1100
SELECT ALL + + MAX ( DISTINCT 15 ), + MAX ( + NULLIF ( 52, + + 34 ) ) * COALESCE ( + + 55, + 3 ) - NULLIF ( - 44, - 44 ) AS col1
----
15
NULL

query II rowsort
SELECT + + 19 + - + 11 AS col1, 75
----
8
75

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

query I rowsort
SELECT ALL + 50 * + 53 + 40 * 97
----
6530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1104
SELECT ALL - - 51 * - 11 * COUNT( * ) + + - MAX( ALL + CAST( NULL AS SIGNED ) ) / 12 * - COALESCE ( - 33, - - 59 ) * + + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL - - 51 * - 11 * COUNT ( * ) + + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) / 12 * - COALESCE ( - 33, - - 59 ) * + + 76 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT + - COALESCE ( + - 42, 68 * 62 * 8, + 4 DIV - - ( + + COALESCE ( + 97, CASE - 57 WHEN + 94 + - 75 * + 55 + + 1 THEN - COUNT( * ) WHEN + - 81 THEN - 25 + ( - - 84 ) ELSE - 1 END - - 93 ) ) + - 68 * + 67 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1105
SELECT + - COALESCE ( + - 42, 68 * 62 * 8, + 4 / - - ( + + COALESCE ( + 97, CASE - 57 WHEN + 94 + - 75 * + 55 + + 1 THEN - COUNT ( * ) WHEN + - 81 THEN - 25 + ( - - 84 ) ELSE - 1 END - - 93 ) ) + - 68 * + 67 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT - MIN( - - 10 ) * - + 25 - COUNT( * ) * 39 + + 42
----
253

skipif mysql # not compatible
query I rowsort label-1106
SELECT - MIN ( - - 10 ) * - + 25 - COUNT ( * ) * 39 + + 42
----
253

query I rowsort
SELECT ALL 47 * + 56 + + 36 * - 97 AS col2
----
-860

query I rowsort
SELECT + 17 * + 54 AS col2
----
918

query I rowsort
SELECT ALL - 29 * - 45 AS col2
----
1305

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT COUNT( - + 57 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1111
SELECT COUNT ( - + 57 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT ALL - 58 DIV + - 24 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL - 58 / + - 24 AS col1
----
2

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

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

query I rowsort
SELECT + 87 * - 8
----
-696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1115
SELECT - 52 col1, NULLIF ( - - COUNT( * ), - ( + 36 ) ) DIV + 39
----
-52
0

skipif mysql # not compatible
query II rowsort label-1115
SELECT - 52 col1, NULLIF ( - - COUNT ( * ), - ( + 36 ) ) / + 39
----
-52
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT + 81 * 83 * + 45 DIV 9 col0
----
33615

skipif mysql # not compatible
query I rowsort label-1116
SELECT + 81 * 83 * + 45 / 9 col0
----
33615

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

query I rowsort
SELECT + 57 * 74
----
4218

onlyif mysql # DIV for integer division: 
query II rowsort label-1119
SELECT ALL 61 AS col1, + 12 DIV 53 AS col1
----
61
0

skipif mysql # not compatible
query II rowsort label-1119
SELECT ALL 61 AS col1, + 12 / 53 AS col1
----
61
0

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

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

query II rowsort
SELECT - 66 AS col0, 14
----
-66
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT DISTINCT COUNT( ALL + - 22 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT COUNT ( ALL + - 22 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT ALL 15 * + + ( - 23 ) * ( + + MAX( DISTINCT 66 ) ) AS col2
----
-22770

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL 15 * + + ( - 23 ) * ( + + MAX ( DISTINCT 66 ) ) AS col2
----
-22770

query I rowsort
SELECT - 27 * - 28
----
756

query I rowsort
SELECT DISTINCT ( - ( - - 99 ) )
----
-99

query I rowsort
SELECT ALL ( + COALESCE ( 27, + 94 * - 94 ) )
----
27

query I rowsort
SELECT - ( 49 ) - - - 0
----
-49

query I rowsort
SELECT + 73 + + + ( - + 70 )
----
3

query I rowsort
SELECT + 91 * - 71 AS col1
----
-6461

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT - SUM( ALL - 5 ) * - + CASE - 28 WHEN - + 62 / - 69 THEN 3 END * + 99 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT - SUM ( ALL - 5 ) * - + CASE - 28 WHEN - + 62 / - 69 THEN 3 END * + 99 col1
----
NULL

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

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

query I rowsort
SELECT - 59 * - 50 + + - 77 AS col1
----
2873

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT ALL - 45 DIV 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL - 45 / 46 AS col0
----
0

query I rowsort
SELECT - - 40 + + 61
----
101

query I rowsort
SELECT - + 65 + 3 AS col2
----
-62

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

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

query II rowsort
SELECT + 9 AS col0, 37
----
9
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1139
SELECT ALL COUNT( * ) DIV MIN( - + 20 ) + + 3 + 18
----
21

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL COUNT ( * ) / MIN ( - + 20 ) + + 3 + 18
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT - 35 DIV - + 45 - + + 47 col0
----
-47

skipif mysql # not compatible
query I rowsort label-1140
SELECT - 35 / - + 45 - + + 47 col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1141
SELECT ALL - + 74 DIV 59 + - 22 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL - + 74 / 59 + - 22 AS col1
----
-23

query I rowsort
SELECT DISTINCT + 52 * - + 81 AS col0
----
-4212

query II rowsort
SELECT + 32 col0, + 26 AS col1
----
32
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1144
SELECT - MAX( ALL - 24 ) + - 77 AS col1, + 54 * + 34 + 25
----
-53
1861

skipif mysql # not compatible
query II rowsort label-1144
SELECT - MAX ( ALL - 24 ) + - 77 AS col1, + 54 * + 34 + 25
----
-53
1861

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1145
SELECT - 57 * + + 17 * + 96 + + 80 - CAST( NULL AS DECIMAL ) + + 89 * + - 41 * - + ( + + 84 ) * - - 53 * ( - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT - 57 * + + 17 * + 96 + + 80 - CAST ( NULL AS REAL ) + + 89 * + - 41 * - + ( + + 84 ) * - - 53 * ( - 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT + + NULLIF ( COALESCE ( + ( + ( - - 39 ) ), COUNT( * ) - + - SUM( ALL - 78 ) ), 36 )
----
39

skipif mysql # not compatible
query I rowsort label-1146
SELECT + + NULLIF ( COALESCE ( + ( + ( - - 39 ) ), COUNT ( * ) - + - SUM ( ALL - 78 ) ), 36 )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1147
SELECT + + COUNT( * ) DIV 61 + - + 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1147
SELECT + + COUNT ( * ) / 61 + - + 50 AS col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT ALL + 33 DIV + 85 + - ( + 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + 33 / + 85 + - ( + 29 ) AS col2
----
-29

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

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

query I rowsort
SELECT - + 22 - 26 + 19 AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1151
SELECT DISTINCT + - CAST( - 44 AS SIGNED ) * - + 34 * + 66 + - 45 - - CASE CAST( + + 45 AS DECIMAL ) WHEN - + 99 THEN NULL ELSE 30 + SUM( + 30 ) + 73 END, - 90 AS col2
----
-98648
-90

skipif mysql # not compatible
query II rowsort label-1151
SELECT DISTINCT + - CAST ( - 44 AS INTEGER ) * - + 34 * + 66 + - 45 - - CASE CAST ( + + 45 AS REAL ) WHEN - + 99 THEN NULL ELSE 30 + SUM ( + 30 ) + 73 END, - 90 AS col2
----
-98648
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1152
SELECT ALL 40 * - 86 * 50 + + 49 / + 84 + + AVG ( CAST( NULL AS SIGNED ) ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL 40 * - 86 * 50 + + 49 / + 84 + + AVG ( CAST ( NULL AS INTEGER ) ) * 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1153
SELECT COUNT( + 23 ) * - - 30 + ( + - 64 ) * CASE 59 WHEN - - CAST( NULL AS SIGNED ) + 85 THEN + 92 - - 24 WHEN + 24 THEN NULL ELSE NULL END * COALESCE ( 86, COUNT( * ), + - 70 - + 25 - - CAST( - 13 AS SIGNED ) ) * 89 + + 45 + ( + 9 ) + + 57 - ( + - MIN( ALL - - 91 ) ) + COUNT( * ) * + + CAST( NULL AS SIGNED ) / COUNT( * ) + + 13 * 65 * - - 30 + COUNT( * ) + + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT COUNT ( + 23 ) * - - 30 + ( + - 64 ) * CASE 59 WHEN - - CAST ( NULL AS INTEGER ) + 85 THEN + 92 - - 24 WHEN + 24 THEN NULL ELSE NULL END * COALESCE ( 86, COUNT ( * ), + - 70 - + 25 - - CAST ( - 13 AS INTEGER ) ) * 89 + + 45 + ( + 9 ) + + 57 - ( + - MIN ( ALL - - 91 ) ) + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / COUNT ( * ) + + 13 * 65 * - - 30 + COUNT ( * ) + + 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT - ( 26 ) * + COUNT( * ) + MIN( 43 ) * - + 66 * - COUNT( * ) AS col1
----
2812

skipif mysql # not compatible
query I rowsort label-1154
SELECT - ( 26 ) * + COUNT ( * ) + MIN ( 43 ) * - + 66 * - COUNT ( * ) AS col1
----
2812

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT COUNT( * ) + - + 39 + - 29 + + MAX( DISTINCT - 65 )
----
-132

skipif mysql # not compatible
query I rowsort label-1155
SELECT COUNT ( * ) + - + 39 + - 29 + + MAX ( DISTINCT - 65 )
----
-132

query I rowsort
SELECT 71 + - 15
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT ALL 68 DIV 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL 68 / 90 AS col1
----
0

query I rowsort
SELECT 3 * + NULLIF ( + 70, + 82 * AVG ( 65 ) + + 74 ) AS col1
----
210

query I rowsort
SELECT DISTINCT 62 + - ( - - 28 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT - COUNT( * ) * + - SUM( ALL - + 16 ) * 25 + - 99
----
-499

skipif mysql # not compatible
query I rowsort label-1160
SELECT - COUNT ( * ) * + - SUM ( ALL - + 16 ) * 25 + - 99
----
-499

query I rowsort
SELECT DISTINCT - 56 * + 54
----
-3024

query I rowsort
SELECT ALL - - 13 + + 30 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT DISTINCT - + 84 + - 20 * SUM( - - 4 )
----
-164

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT - + 84 + - 20 * SUM ( - - 4 )
----
-164

query I rowsort
SELECT ALL + + 21 + 98 + - 14
----
105

query I rowsort
SELECT DISTINCT + 40 * - + 69 * - 14
----
38640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1166
SELECT DISTINCT - COALESCE ( 86, CAST( + NULLIF ( - + 44, + + 32 + - + 74 ) AS SIGNED ) * + 41 + + COUNT( * ) DIV 65 * 47 + + 22, + ( CASE + 50 WHEN - 55 THEN NULL ELSE + + 96 END ) + - 26 * + + ( - + 56 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT - COALESCE ( 86, CAST ( + NULLIF ( - + 44, + + 32 + - + 74 ) AS INTEGER ) * + 41 + + COUNT ( * ) / 65 * 47 + + 22, + ( CASE + 50 WHEN - 55 THEN NULL ELSE + + 96 END ) + - 26 * + + ( - + 56 ) )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1167
SELECT ALL + 90 + COUNT( * ) - CASE 79 WHEN - 60 THEN NULL ELSE COUNT( * ) + - CASE ( + 30 ) WHEN COALESCE ( + - 36, + COUNT( * ) ) + + 18 THEN + 67 WHEN - - 43 + - - 41 THEN - 22 ELSE + 69 END END DIV 42 AS col0, 42 - - COUNT( * ) + - 79 + - + 47
----
92
-83

skipif mysql # not compatible
query II rowsort label-1167
SELECT ALL + 90 + COUNT ( * ) - CASE 79 WHEN - 60 THEN NULL ELSE COUNT ( * ) + - CASE ( + 30 ) WHEN COALESCE ( + - 36, + COUNT ( * ) ) + + 18 THEN + 67 WHEN - - 43 + - - 41 THEN - 22 ELSE + 69 END END / 42 AS col0, 42 - - COUNT ( * ) + - 79 + - + 47
----
92
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1168
SELECT DISTINCT + - 79 * - + 60 - - CAST( NULL AS SIGNED ) * + - ( 49 ) * + - 23 * - 98 + 30 + + + MIN( DISTINCT + 52 ) * - CAST( 65 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT + - 79 * - + 60 - - CAST ( NULL AS INTEGER ) * + - ( 49 ) * + - 23 * - 98 + 30 + + + MIN ( DISTINCT + 52 ) * - CAST ( 65 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 10 * 56 + - 17
----
543

query I rowsort
SELECT - 62 * - + 9 + - 87 AS col0
----
471

query I rowsort
SELECT 62 + - 4
----
58

query I rowsort
SELECT 33 * - 19 AS col2
----
-627

query I rowsort
SELECT CASE - 75 WHEN - 40 THEN + 69 * - 2 + + 53 END * 37 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1174
SELECT 46 * - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1174
SELECT 46 * - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 41 * + 15 AS col0
----
615

query I rowsort
SELECT 61 * + + 29
----
1769

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

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

query I rowsort
SELECT 77 - + 11
----
66

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1182
SELECT + 47 + - + 40 + - + CAST( COUNT( * ) AS SIGNED ) * + 49 + 19 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1182
SELECT + 47 + - + 40 + - + CAST ( COUNT ( * ) AS INTEGER ) * + 49 + 19 AS col1
----
-23

query I rowsort
SELECT 13 - + 90 AS col0
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT 62 + - - COALESCE ( + 39, COUNT( * ) ) + - - 20
----
121

skipif mysql # not compatible
query I rowsort label-1185
SELECT 62 + - - COALESCE ( + 39, COUNT ( * ) ) + - - 20
----
121

query I rowsort
SELECT 93 * + + 29
----
2697

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT DISTINCT + MIN( - + 89 ) + 4
----
-85

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT + MIN ( - + 89 ) + 4
----
-85

query I rowsort
SELECT ALL 36 * 8
----
288

query II rowsort
SELECT DISTINCT - - 71 * - 70 - 85 col1, 59 AS col0
----
-5055
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1190
SELECT ALL - 50 * + CASE - CAST( NULL AS SIGNED ) WHEN - ( 26 ) THEN NULL WHEN + + 70 THEN + COALESCE ( 81, 14 - 38, - 60 * - + 92 DIV - 89 ) - - 30 ELSE - 66 END * + 66 + - 56
----
217744

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL - 50 * + CASE - CAST ( NULL AS INTEGER ) WHEN - ( 26 ) THEN NULL WHEN + + 70 THEN + COALESCE ( 81, 14 - 38, - 60 * - + 92 / - 89 ) - - 30 ELSE - 66 END * + 66 + - 56
----
217744

query I rowsort
SELECT CASE 43 WHEN + 63 THEN - + 15 + - 7 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT DISTINCT + COUNT( * ) * + + 51 + - 55 - + 3
----
-7

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT + COUNT ( * ) * + + 51 + - 55 - + 3
----
-7

query I rowsort
SELECT + 99 * + 33 AS col0
----
3267

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL COUNT( * ) * - + 90 - + ( 42 ) * + + 33
----
-1476

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL COUNT ( * ) * - + 90 - + ( 42 ) * + + 33
----
-1476

query I rowsort
SELECT + 58 - 40 AS col2
----
18

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

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

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

skipif mysql # not compatible
query II rowsort label-1197
SELECT COUNT ( * ) AS col2, - 14 AS col1
----
1
-14

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

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

query I rowsort
SELECT ALL + NULLIF ( + 72, 99 ) AS col0
----
72

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

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

query I rowsort
SELECT ALL - 27 * + - 51
----
1377

query I rowsort
SELECT + 99 * + 4 + - 99 AS col0
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1203
SELECT ALL + 55 * 6 * + - 46 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL + 55 * 6 * + - 46 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT - 50 DIV - 8
----
6

skipif mysql # not compatible
query I rowsort label-1204
SELECT - 50 / - 8
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1205
SELECT - 56 * 56 DIV + 96 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1205
SELECT - 56 * 56 / + 96 AS col0
----
-32

query II rowsort
SELECT DISTINCT + 39 col1, 13 - 29
----
39
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1207
SELECT DISTINCT - 10 + + - CAST( + CAST( - 42 AS DECIMAL ) AS SIGNED ) + + - 13 DIV - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT - 10 + + - CAST ( + CAST ( - 42 AS REAL ) AS INTEGER ) + + - 13 / - COUNT ( * )
----
45

query I rowsort
SELECT ALL + 55 * - ( - 90 )
----
4950

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1210
SELECT - 20 + CASE + 98 WHEN 42 * - - MIN( - 30 ) / 7 - 2 THEN 33 * 99 WHEN ( 81 ) * 45 * 55 * - - 18 + CASE - CAST( - + CAST( + 24 AS SIGNED ) AS SIGNED ) WHEN - + CAST( + 78 AS SIGNED ) THEN + 30 + - - 26 END + - 41 * COALESCE ( - 91, - + CAST( NULL AS SIGNED ), 66 ) / 87 THEN NULL END + 65 * + 68 AS col1, 33 * - 68 AS col2
----
NULL
-2244

skipif mysql # not compatible
query II rowsort label-1210
SELECT - 20 + CASE + 98 WHEN 42 * - - MIN ( - 30 ) / 7 - 2 THEN 33 * 99 WHEN ( 81 ) * 45 * 55 * - - 18 + CASE - CAST ( - + CAST ( + 24 AS INTEGER ) AS INTEGER ) WHEN - + CAST ( + 78 AS INTEGER ) THEN + 30 + - - 26 END + - 41 * COALESCE ( - 91, - + CAST ( NULL AS INTEGER ), 66 ) / 87 THEN NULL END + 65 * + 68 AS col1, 33 * - 68 AS col2
----
NULL
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL - 92 + 20 * + SUM( ALL - 22 )
----
-532

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL - 92 + 20 * + SUM ( ALL - 22 )
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT CASE + 85 WHEN - 6 THEN NULL ELSE + 41 * COUNT( * ) + + 20 * 47 END
----
981

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT CASE + 85 WHEN - 6 THEN NULL ELSE + 41 * COUNT ( * ) + + 20 * 47 END
----
981

query II rowsort
SELECT ALL 38 AS col0, 41 * 72
----
38
2952

query II rowsort
SELECT + 66, 97 + + 92 * + 78 AS col0
----
66
7273

query II rowsort
SELECT - 0 AS col0, - 81 * 33 AS col0
----
0
-2673

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT - - COUNT( * ) * 26 + + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1216
SELECT - - COUNT ( * ) * 26 + + COUNT ( * ) AS col2
----
27

query II rowsort
SELECT + 15 + - 11 AS col1, + 58 AS col0
----
4
58

query I rowsort
SELECT ALL + ( - - 54 ) + + + 96
----
150

query II rowsort
SELECT - + 15 AS col2, + 79 * - 10 - + COALESCE ( - + 96, - + 34 ) + 55 + + - 45 AS col1
----
-15
-684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1220
SELECT + ( SUM( DISTINCT + + CAST( + - 66 AS SIGNED ) ) ) + - COUNT( + - 38 )
----
-67

skipif mysql # not compatible
query I rowsort label-1220
SELECT + ( SUM ( DISTINCT + + CAST ( + - 66 AS INTEGER ) ) ) + - COUNT ( + - 38 )
----
-67

query II rowsort
SELECT - + 61 AS col2, 75 * - 71 * + 4 + - 44 * + 43
----
-61
-23192

query I rowsort
SELECT + 42 + 73 * - 98 AS col0
----
-7112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1223
SELECT DISTINCT + 4 + 14 + + + 5 + 7, - CAST( + - ( + 75 ) AS SIGNED ) AS col2
----
30
75

skipif mysql # not compatible
query II rowsort label-1223
SELECT DISTINCT + 4 + 14 + + + 5 + 7, - CAST ( + - ( + 75 ) AS INTEGER ) AS col2
----
30
75

query I rowsort
SELECT ALL - + 38 * - 32
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ALL + ( + MIN( ALL ( - 71 ) ) ) - - 65
----
-6

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL + ( + MIN ( ALL ( - 71 ) ) ) - - 65
----
-6

query I rowsort
SELECT + + 85 * 63
----
5355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT COALESCE ( - + 70, 79 + + CAST( NULL AS SIGNED ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1227
SELECT COALESCE ( - + 70, 79 + + CAST ( NULL AS INTEGER ) ) AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1228
SELECT ALL ( - 49 ) DIV 88 * + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL ( - 49 ) / 88 * + COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT + MIN( ALL 5 ) * - - COUNT( * ) + 13 + 19
----
37

skipif mysql # not compatible
query I rowsort label-1229
SELECT + MIN ( ALL 5 ) * - - COUNT ( * ) + 13 + 19
----
37

query I rowsort
SELECT - CASE + + COALESCE ( - 23, + ( - COALESCE ( 26, + 87 ) ) ) WHEN + 86 / - 30 THEN - NULLIF ( + AVG ( - 89 ), 89 + + 86 ) * 29 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1231
SELECT DISTINCT - - ( + 56 ) DIV - 10 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT - - ( + 56 ) / - 10 AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1232
SELECT ALL COUNT( * ) DIV + 48 * - + 66 * - 3 col1
----
0

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL COUNT ( * ) / + 48 * - + 66 * - 3 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1233
SELECT + 34 + 72 * + MAX( ALL - CAST( - - 36 AS SIGNED ) ) * + + ( - 20 ) AS col1
----
51874

skipif mysql # not compatible
query I rowsort label-1233
SELECT + 34 + 72 * + MAX ( ALL - CAST ( - - 36 AS INTEGER ) ) * + + ( - 20 ) AS col1
----
51874

query II rowsort
SELECT DISTINCT + ( + + 54 ) AS col2, - 70 AS col1
----
54
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT + NULLIF ( + 41, + + COUNT( DISTINCT + 97 ) )
----
41

skipif mysql # not compatible
query I rowsort label-1235
SELECT + NULLIF ( + 41, + + COUNT ( DISTINCT + 97 ) )
----
41

query I rowsort
SELECT + 33 * + + 4 * - 95 + - 70 * - 14
----
-11560

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

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

query I rowsort
SELECT ( - 86 ) * 60 + + + 84 AS col0
----
-5076

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

query II rowsort
SELECT ( + - 62 ) AS col1, 56 AS col1
----
-62
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1241
SELECT ALL 89 * - 18 * 57 + - 77 - + CAST( + 28 AS SIGNED ) AS col0
----
-91419

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL 89 * - 18 * 57 + - 77 - + CAST ( + 28 AS INTEGER ) AS col0
----
-91419

query I rowsort
SELECT ALL - 21 * - 46 + - - 39
----
1005

onlyif mysql # DIV for integer division: 
query II rowsort label-1243
SELECT - 97 DIV 62 * 48 col1, 54 AS col2
----
-48
54

skipif mysql # not compatible
query II rowsort label-1243
SELECT - 97 / 62 * 48 col1, 54 AS col2
----
-48
54

query II rowsort
SELECT - 14 * + COALESCE ( + - 18, 22 * + - 73 ), 89 AS col0
----
252
89

query I rowsort
SELECT DISTINCT - 51 * - 3 * 38 * 60 * - 2
----
-697680

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

skipif mysql # not compatible
query I rowsort label-1246
SELECT + CAST ( NULL AS INTEGER ) * 95 - - 38 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1247
SELECT - CAST( - 51 AS SIGNED ) DIV 29 * - - 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1247
SELECT - CAST ( - 51 AS INTEGER ) / 29 * - - 30 AS col1
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT - + 55 - - - 9 + + + MAX( DISTINCT - 69 )
----
-133

skipif mysql # not compatible
query I rowsort label-1249
SELECT - + 55 - - - 9 + + + MAX ( DISTINCT - 69 )
----
-133

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1250
SELECT DISTINCT 60 * - 40 * + CAST( NULL AS DECIMAL ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT 60 * - 40 * + CAST ( NULL AS REAL ) - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL NULLIF ( - COALESCE ( - - 97, + 74 ), + + 66 ) AS col1
----
-97

query I rowsort
SELECT DISTINCT + 16 * + 95 AS col1
----
1520

query I rowsort
SELECT DISTINCT + + 65 - - 35
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1254
SELECT DISTINCT - CASE - 53 WHEN + - 23 THEN AVG ( - - CASE - + CAST( NULL AS SIGNED ) WHEN + 38 THEN 34 * + - 49 END ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT - CASE - 53 WHEN + - 23 THEN AVG ( - - CASE - + CAST ( NULL AS INTEGER ) WHEN + 38 THEN 34 * + - 49 END ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ( NULLIF ( + ( + 87 ), - COUNT( * ) * + - COUNT( ALL + - 3 ) - ( - COUNT( * ) ) ) )
----
87

skipif mysql # not compatible
query I rowsort label-1255
SELECT ( NULLIF ( + ( + 87 ), - COUNT ( * ) * + - COUNT ( ALL + - 3 ) - ( - COUNT ( * ) ) ) )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1256
SELECT DISTINCT - MAX( DISTINCT - 44 ) AS col2, - 48 / + 57 * - CAST( NULL AS SIGNED ) + - 48 AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-1256
SELECT DISTINCT - MAX ( DISTINCT - 44 ) AS col2, - 48 / + 57 * - CAST ( NULL AS INTEGER ) + - 48 AS col0
----
44
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1257
SELECT - COUNT( * ) - 1 AS col0, + ( - - ( - 37 ) ) + - + 78
----
-2
-115

skipif mysql # not compatible
query II rowsort label-1257
SELECT - COUNT ( * ) - 1 AS col0, + ( - - ( - 37 ) ) + - + 78
----
-2
-115

query I rowsort
SELECT 32 * - + 12 AS col2
----
-384

onlyif mysql # aggregate syntax: 
query II rowsort label-1259
SELECT SUM( DISTINCT 83 ) AS col2, - 60 AS col0
----
83
-60

skipif mysql # not compatible
query II rowsort label-1259
SELECT SUM ( DISTINCT 83 ) AS col2, - 60 AS col0
----
83
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1260
SELECT + 81 * - + CAST( NULL AS SIGNED ) AS col2, - ( - 34 )
----
NULL
34

skipif mysql # not compatible
query II rowsort label-1260
SELECT + 81 * - + CAST ( NULL AS INTEGER ) AS col2, - ( - 34 )
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT ALL - 67 * 90 - - + ( + MIN( - + 90 ) ) * 20 * + - 75
----
128970

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL - 67 * 90 - - + ( + MIN ( - + 90 ) ) * 20 * + - 75
----
128970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1262
SELECT ALL CASE - COALESCE ( + 74, + + 23 * + 16 * - 27 * + 51 / - CASE - 51 WHEN + 1 * - 80 + - - 44 THEN - - 23 * - 19 ELSE NULL END - + 54 * - + 94 + - COUNT( DISTINCT - + 6 ), - + 90 / 68 ) WHEN + 12 THEN + + 48 WHEN - - 91 + - 86 THEN - CAST( NULL AS SIGNED ) + - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL CASE - COALESCE ( + 74, + + 23 * + 16 * - 27 * + 51 / - CASE - 51 WHEN + 1 * - 80 + - - 44 THEN - - 23 * - 19 ELSE NULL END - + 54 * - + 94 + - COUNT ( DISTINCT - + 6 ), - + 90 / 68 ) WHEN + 12 THEN + + 48 WHEN - - 91 + - 86 THEN - CAST ( NULL AS INTEGER ) + - 84 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1263
SELECT DISTINCT - - 68 * - 28 + CAST( NULL AS SIGNED ) / - ( - 61 ) * - 79 + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - - 68 * - 28 + CAST ( NULL AS INTEGER ) / - ( - 61 ) * - 79 + - 60
----
NULL

query I rowsort
SELECT ALL - 27 + + - 14
----
-41

query I rowsort
SELECT - 48 * + 58 + - 64
----
-2848

query II rowsort
SELECT + 44, - 85 - + 84 AS col0
----
44
-169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1267
SELECT + COUNT( * ) DIV + 69 * 5 + + - 41 * COUNT( * ) * + 92 AS col2
----
-3772

skipif mysql # not compatible
query I rowsort label-1267
SELECT + COUNT ( * ) / + 69 * 5 + + - 41 * COUNT ( * ) * + 92 AS col2
----
-3772

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

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT 4 + - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT 55 AS col1, 63 * ( - 5 )
----
55
-315

query I rowsort
SELECT ALL 39 + + - 0 * 18
----
39

query I rowsort
SELECT ALL + 92 + + 74 AS col2
----
166

query I rowsort
SELECT ALL 32 + + 71
----
103

query II rowsort
SELECT ALL - 61 AS col2, 65 col0
----
-61
65

query I rowsort
SELECT ALL 3 + 83
----
86

query I rowsort
SELECT 12 - + - 76
----
88

query I rowsort
SELECT ALL 96 * + 52 col0
----
4992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1277
SELECT + 53 * 33 * 75 / - COUNT( * ) * - CAST( NULL AS SIGNED ) + - SUM( + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1277
SELECT + 53 * 33 * 75 / - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - SUM ( + 45 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1278
SELECT CAST( NULL AS SIGNED ) + + ( - CASE NULLIF ( - CAST( NULL AS SIGNED ), - - COUNT( * ) * + 77 + - + ( - + 94 ) ) WHEN - SUM( DISTINCT 0 ) THEN - NULLIF ( - + 2, 48 ) END ) + - + 84 / + - 73 * + ( 41 ) + COALESCE ( 59, + + 28, + COUNT( * ), COALESCE ( - 64, + 45, + ( + 34 ) * 68 * - 75 - - - 50 + + 47 + - 11 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1278
SELECT CAST ( NULL AS INTEGER ) + + ( - CASE NULLIF ( - CAST ( NULL AS INTEGER ), - - COUNT ( * ) * + 77 + - + ( - + 94 ) ) WHEN - SUM ( DISTINCT 0 ) THEN - NULLIF ( - + 2, 48 ) END ) + - + 84 / + - 73 * + ( 41 ) + COALESCE ( 59, + + 28, + COUNT ( * ), COALESCE ( - 64, + 45, + ( + 34 ) * 68 * - 75 - - - 50 + + 47 + - 11 ) )
----
NULL

query II rowsort
SELECT DISTINCT - 40 AS col1, + 69 * - 58
----
-40
-4002

query I rowsort
SELECT - 50 + + 17 AS col1
----
-33

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

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

query I rowsort
SELECT ALL - 23 * - 76 + 80
----
1828

query II rowsort
SELECT - 72 * 31 + 26 AS col2, - 80
----
-2206
-80

query II rowsort
SELECT - 86, - 85 + - 11 AS col1
----
-86
-96

query I rowsort
SELECT ( - + 93 ) + 42 + + 57
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT COUNT( * ) + MIN( DISTINCT + 53 ) + - COUNT( * ) col1
----
53

skipif mysql # not compatible
query I rowsort label-1286
SELECT COUNT ( * ) + MIN ( DISTINCT + 53 ) + - COUNT ( * ) col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1287
SELECT 37 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-1287
SELECT 37 / + 79
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1289
SELECT DISTINCT + 11, - CASE 87 WHEN - 84 / - CASE - - 60 WHEN 56 * + - CAST( NULL AS SIGNED ) THEN NULL ELSE ( 86 ) END + - COALESCE ( - 42, + 92 ) * - - 53 THEN + 5 + - + 19 ELSE + 55 END AS col1
----
11
-55

skipif mysql # not compatible
query II rowsort label-1289
SELECT DISTINCT + 11, - CASE 87 WHEN - 84 / - CASE - - 60 WHEN 56 * + - CAST ( NULL AS INTEGER ) THEN NULL ELSE ( 86 ) END + - COALESCE ( - 42, + 92 ) * - - 53 THEN + 5 + - + 19 ELSE + 55 END AS col1
----
11
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT DISTINCT - MIN( ALL - - ( + 83 ) ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT - MIN ( ALL - - ( + 83 ) ) col1
----
-83

query I rowsort
SELECT DISTINCT + 11 + 78
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1292
SELECT ALL + + 95 DIV 30 col2
----
3

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + + 95 / 30 col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1293
SELECT 16 DIV 76 DIV + 76 * + 50 + 51 col1
----
51

skipif mysql # not compatible
query I rowsort label-1293
SELECT 16 / 76 / + 76 * + 50 + 51 col1
----
51

query I rowsort
SELECT ALL + COALESCE ( 59, + 39 * 17, + 79 * + 21 ) + 19 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT COUNT( DISTINCT + 96 ) + - COUNT( 77 ) * + 64 * - 17 AS col0
----
1089

skipif mysql # not compatible
query I rowsort label-1295
SELECT COUNT ( DISTINCT + 96 ) + - COUNT ( 77 ) * + 64 * - 17 AS col0
----
1089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1296
SELECT MAX( ALL 67 ) DIV + - COUNT( * ) + 75 * + 26 AS col0
----
1883

skipif mysql # not compatible
query I rowsort label-1296
SELECT MAX ( ALL 67 ) / + - COUNT ( * ) + 75 * + 26 AS col0
----
1883

query I rowsort
SELECT 81 - 51 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT MAX( + CASE 16 WHEN - 16 * - - 62 THEN 58 + - 81 WHEN + - 49 THEN 7 WHEN + + 81 THEN NULL ELSE NULL END ) * - ( + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT MAX ( + CASE 16 WHEN - 16 * - - 62 THEN 58 + - 81 WHEN + - 49 THEN 7 WHEN + + 81 THEN NULL ELSE NULL END ) * - ( + 18 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1299
SELECT ALL NULLIF ( + 45, - 72 * + - MIN( DISTINCT - 7 ) ) DIV NULLIF ( + 17, - 55 - - 23 * + 86 ) * 54
----
108

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL NULLIF ( + 45, - 72 * + - MIN ( DISTINCT - 7 ) ) / NULLIF ( + 17, - 55 - - 23 * + 86 ) * 54
----
108

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

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT - + NULLIF ( - 87, + COUNT ( * ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT ALL 91 * + + COUNT( * ) * + 95
----
8645

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL 91 * + + COUNT ( * ) * + 95
----
8645

onlyif mysql # aggregate syntax: 
query II rowsort label-1302
SELECT DISTINCT + AVG ( DISTINCT - CASE - 34 WHEN + - 78 THEN 99 * 82 ELSE NULL END ) * 56 + + + COUNT( * ) * 69 AS col2, + 24
----
NULL
24

skipif mysql # not compatible
query II rowsort label-1302
SELECT DISTINCT + AVG ( DISTINCT - CASE - 34 WHEN + - 78 THEN 99 * 82 ELSE NULL END ) * 56 + + + COUNT ( * ) * 69 AS col2, + 24
----
NULL
24

query I rowsort
SELECT ALL - 33 * - + 68 AS col2
----
2244

query I rowsort
SELECT - + COALESCE ( - 64, + COALESCE ( - 48, + + 81 ) * 35, 47 + - 54 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT + 36 * COUNT( * ) * 82 AS col1
----
2952

skipif mysql # not compatible
query I rowsort label-1305
SELECT + 36 * COUNT ( * ) * 82 AS col1
----
2952

query I rowsort
SELECT + NULLIF ( + - 86, 41 + + 61 + - 0 ) * + 41 + 26 col0
----
-3500

query I rowsort
SELECT + 50 - + 90
----
-40

query I rowsort
SELECT + 64 - + 38 + + 4 * 53 + 44 AS col1
----
282

query I rowsort
SELECT DISTINCT + + 93 * + 53 AS col1
----
4929

onlyif mysql # DIV for integer division: 
query I rowsort label-1310
SELECT + 91 * - 84 * - 18 + + 98 DIV ( - 75 )
----
137591

skipif mysql # not compatible
query I rowsort label-1310
SELECT + 91 * - 84 * - 18 + + 98 / ( - 75 )
----
137591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT ALL + 7 + - CAST( - 92 AS SIGNED ) + ( + + 72 ) * 73
----
5355

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL + 7 + - CAST ( - 92 AS INTEGER ) + ( + + 72 ) * 73
----
5355

query I rowsort
SELECT DISTINCT 65 + + + 82 + - 32 AS col0
----
115

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

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

query I rowsort
SELECT - 64 - - 25 * 61
----
1461

query I rowsort
SELECT - COALESCE ( - 74, - 46 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT + NULLIF ( - CASE - 28 WHEN + 25 THEN 58 + + 33 * COUNT( * ) * + + 6 * + + 96 * + 81 ELSE NULL END, - - COUNT( * ) + - 15 ) + - COUNT( + 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT + NULLIF ( - CASE - 28 WHEN + 25 THEN 58 + + 33 * COUNT ( * ) * + + 6 * + + 96 * + 81 ELSE NULL END, - - COUNT ( * ) + - 15 ) + - COUNT ( + 71 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1317
SELECT - CAST ( NULL AS INTEGER ) - + 92 + - ( - - 44 ) col0
----
NULL

query I rowsort
SELECT ALL + 64 + - - 83 AS col1
----
147

query I rowsort
SELECT ALL - 10 + 20 AS col0
----
10

query I rowsort
SELECT ALL 86 + + 27 AS col0
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1321
SELECT DISTINCT - COUNT( * ) DIV COUNT( ALL 35 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT - COUNT ( * ) / COUNT ( ALL 35 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT ALL - ( + COUNT( * ) ) * + 63 - + COUNT( * ) * + 86 - 32
----
-181

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL - ( + COUNT ( * ) ) * + 63 - + COUNT ( * ) * + 86 - 32
----
-181

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1324
SELECT ( + CAST( - 99 AS SIGNED ) ) * - 98 + - - 50 * + 4
----
9902

skipif mysql # not compatible
query I rowsort label-1324
SELECT ( + CAST ( - 99 AS INTEGER ) ) * - 98 + - - 50 * + 4
----
9902

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

query I rowsort
SELECT - 50 * 90
----
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT 47 / + CASE ( 66 ) WHEN + NULLIF ( + COALESCE ( - 31, 10 + 30 ), - + SUM( DISTINCT - 48 ) / + - COUNT( 92 ) ) THEN + COUNT( * ) END + - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT 47 / + CASE ( 66 ) WHEN + NULLIF ( + COALESCE ( - 31, 10 + 30 ), - + SUM ( DISTINCT - 48 ) / + - COUNT ( 92 ) ) THEN + COUNT ( * ) END + - 11 AS col2
----
NULL

query I rowsort
SELECT - 14 * - 85
----
1190

query I rowsort
SELECT - 32 + + 41 AS col1
----
9

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

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

query I rowsort
SELECT 93 * + 27 + - 59 + + + 18 AS col2
----
2470

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1332
SELECT DISTINCT + + 29 * + CASE + - 99 WHEN - 13 - - NULLIF ( 29, COUNT( * ) ) + + - 23 + + 34 + 28 * 50 THEN - - 37 WHEN 15 * - 74 + CAST( NULL AS DECIMAL ) + + - ( 12 ) + - + 59 + COUNT( * ) + - AVG ( DISTINCT - 69 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT + + 29 * + CASE + - 99 WHEN - 13 - - NULLIF ( 29, COUNT ( * ) ) + + - 23 + + 34 + 28 * 50 THEN - - 37 WHEN 15 * - 74 + CAST ( NULL AS REAL ) + + - ( 12 ) + - + 59 + COUNT ( * ) + - AVG ( DISTINCT - 69 ) THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1333
SELECT - + COUNT ( * ) * - 37 / 31 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1334
SELECT DISTINCT + 49, ( + ( - 25 ) ) * + - 77 * - 1 + + + 65 + ( + 88 ) - + ( 40 ) + - - 41 - - 49 * + 74 + + - 78 * + + 49 * - COALESCE ( + 73, 42 * + MIN( DISTINCT + 56 ) + + + 34 + + COUNT( * ), + - 36 ) + - SUM( ALL - - NULLIF ( - + 22, - 27 ) ) - + + 30 + 64 col0
----
49
280917

skipif mysql # not compatible
query II rowsort label-1334
SELECT DISTINCT + 49, ( + ( - 25 ) ) * + - 77 * - 1 + + + 65 + ( + 88 ) - + ( 40 ) + - - 41 - - 49 * + 74 + + - 78 * + + 49 * - COALESCE ( + 73, 42 * + MIN ( DISTINCT + 56 ) + + + 34 + + COUNT ( * ), + - 36 ) + - SUM ( ALL - - NULLIF ( - + 22, - 27 ) ) - + + 30 + 64 col0
----
49
280917

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT + MAX( DISTINCT - 8 ) - + + 85 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-1336
SELECT + MAX ( DISTINCT - 8 ) - + + 85 AS col1
----
-93

query I rowsort
SELECT - COALESCE ( - - 43, - - 69 * - 13 ) * + 15 AS col0
----
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT + 81 + - + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-1338
SELECT + 81 + - + COUNT ( * )
----
80

query II rowsort
SELECT + 59, 36 AS col1
----
59
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT ALL + 89 * + + COUNT( * ) + + - 63
----
26

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL + 89 * + + COUNT ( * ) + + - 63
----
26

query I rowsort
SELECT ALL - 39 * - 34 + + 81 AS col2
----
1407

query I rowsort
SELECT ALL - 60 * - + 32 + + 23 * - 94 AS col0
----
-242

onlyif mysql # aggregate syntax: 
query II rowsort label-1343
SELECT DISTINCT - SUM( + 37 ) * - 12, SUM( 38 ) * 70 AS col1
----
444
2660

skipif mysql # not compatible
query II rowsort label-1343
SELECT DISTINCT - SUM ( + 37 ) * - 12, SUM ( 38 ) * 70 AS col1
----
444
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT NULLIF ( + 97, + - 43 ) * - 85 + - + 9 + - 29 * 33 * - - 32 + - SUM( DISTINCT - ( + + ( - 23 ) ) )
----
-38901

skipif mysql # not compatible
query I rowsort label-1344
SELECT NULLIF ( + 97, + - 43 ) * - 85 + - + 9 + - 29 * 33 * - - 32 + - SUM ( DISTINCT - ( + + ( - 23 ) ) )
----
-38901

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT ALL - 95 * + + COUNT( * ) + - 2
----
-97

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL - 95 * + + COUNT ( * ) + - 2
----
-97

query I rowsort
SELECT + 84 * - 28 * - 32 * ( - ( + + 33 ) )
----
-2483712

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT ALL + MIN( 56 ) + + + 89 + + 17 + + 58 * - + 29
----
-1520

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL + MIN ( 56 ) + + + 89 + + 17 + + 58 * - + 29
----
-1520

query I rowsort
SELECT - - 56 * - 81 + + 80 col2
----
-4456

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT + 97 + - 22 + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-1349
SELECT + 97 + - 22 + + COUNT ( * )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1350
SELECT DISTINCT NULLIF ( 30, 14 * + 32 + CAST( + ( - + 93 ) AS SIGNED ) ) col1
----
30

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT NULLIF ( 30, 14 * + 32 + CAST ( + ( - + 93 ) AS INTEGER ) ) col1
----
30

query I rowsort
SELECT DISTINCT + 28 + - 66 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL COUNT( * ) + 61 - + + 20 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL COUNT ( * ) + 61 - + + 20 AS col0
----
42

query I rowsort
SELECT + ( + - 56 ) * - 19
----
1064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1354
SELECT DISTINCT 51 + + 49 DIV - COALESCE ( + 50, - 49 * + - CASE + 17 WHEN - 13 - - 36 * 44 * + 53 * + 16 * - COUNT( * ) THEN NULL WHEN + 82 + + 77 DIV - - 80 THEN - 82 ELSE CASE 51 WHEN + CAST( NULL AS SIGNED ) + + + 2 THEN - + COUNT( * ) WHEN + MIN( - 50 ) THEN - 75 END + + 29 END + + + 36 + - - 52 + + 86, + 2, 42 DIV - 9 - 12 ) + - 52 AS col0, + 49 col1
----
-1
49

skipif mysql # not compatible
query II rowsort label-1354
SELECT DISTINCT 51 + + 49 / - COALESCE ( + 50, - 49 * + - CASE + 17 WHEN - 13 - - 36 * 44 * + 53 * + 16 * - COUNT ( * ) THEN NULL WHEN + 82 + + 77 / - - 80 THEN - 82 ELSE CASE 51 WHEN + CAST ( NULL AS INTEGER ) + + + 2 THEN - + COUNT ( * ) WHEN + MIN ( - 50 ) THEN - 75 END + + 29 END + + + 36 + - - 52 + + 86, + 2, 42 / - 9 - 12 ) + - 52 AS col0, + 49 col1
----
-1
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1355
SELECT + COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) * - - 5 + - COUNT( * ) + 29 * ( + - CAST( NULL AS DECIMAL ) ) - + + 59 * - + COALESCE ( 53, - 73 / 99 ) * 58 + - 54 + - 30 - + - 3 - 55 / SUM( + 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1355
SELECT + COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) * - - 5 + - COUNT ( * ) + 29 * ( + - CAST ( NULL AS REAL ) ) - + + 59 * - + COALESCE ( 53, - 73 / 99 ) * 58 + - 54 + - 30 - + - 3 - 55 / SUM ( + 68 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1356
SELECT ALL 86 - - - COUNT( * ) * + MIN( ALL - - CAST( NULL AS DECIMAL ) ) / 5 + - - 80 * + - COUNT( * ) * - + COUNT( * ) + - 94 + - 47 + + 64 / - MIN( + + 65 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL 86 - - - COUNT ( * ) * + MIN ( ALL - - CAST ( NULL AS REAL ) ) / 5 + - - 80 * + - COUNT ( * ) * - + COUNT ( * ) + - 94 + - 47 + + 64 / - MIN ( + + 65 ) col1
----
NULL

query II rowsort
SELECT 84 col0, 54
----
84
54

query I rowsort
SELECT DISTINCT - 33 * 49 AS col2
----
-1617

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

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT 39 * + COUNT ( * ) / - - 41 AS col1
----
0

query I rowsort
SELECT + 44 - + - 22 + - 64
----
2

query I rowsort
SELECT - 50 * - - 94
----
-4700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1362
SELECT + 62 * - CAST( - + 1 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-1362
SELECT + 62 * - CAST ( - + 1 AS INTEGER ) AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1363
SELECT ALL 74 * - CASE - 59 WHEN - MAX( + 43 ) * + + 91 + + + COUNT( * ) + + COALESCE ( - + COUNT( * ), + + COUNT( * ) ) * - CASE + 71 WHEN + - 91 THEN + COUNT( * ) END THEN NULL WHEN 70 - NULLIF ( - 88, - 26 ) + + - 42 * + - 10 THEN + + NULLIF ( 69, COUNT( * ) * + CASE COUNT( DISTINCT + 70 ) WHEN - - 2 THEN NULL WHEN - COUNT( * ) * - 82 + - CAST( NULL AS SIGNED ) + + 6 + + - ( 84 ) - 39 * - 5 * - 42 THEN CAST( NULL AS SIGNED ) + + ( 39 ) END * - COUNT( * ) ) ELSE 51 DIV - + 20 + + 35 END AS col1
----
-2442

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL 74 * - CASE - 59 WHEN - MAX ( + 43 ) * + + 91 + + + COUNT ( * ) + + COALESCE ( - + COUNT ( * ), + + COUNT ( * ) ) * - CASE + 71 WHEN + - 91 THEN + COUNT ( * ) END THEN NULL WHEN 70 - NULLIF ( - 88, - 26 ) + + - 42 * + - 10 THEN + + NULLIF ( 69, COUNT ( * ) * + CASE COUNT ( DISTINCT + 70 ) WHEN - - 2 THEN NULL WHEN - COUNT ( * ) * - 82 + - CAST ( NULL AS INTEGER ) + + 6 + + - ( 84 ) - 39 * - 5 * - 42 THEN CAST ( NULL AS INTEGER ) + + ( 39 ) END * - COUNT ( * ) ) ELSE 51 / - + 20 + + 35 END AS col1
----
-2442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1364
SELECT - 44 + - + ( - - NULLIF ( + + 56, CAST( - 58 AS SIGNED ) * + 9 / + AVG ( - 48 ) ) ) + - MIN( ALL + 24 ) AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-1364
SELECT - 44 + - + ( - - NULLIF ( + + 56, CAST ( - 58 AS INTEGER ) * + 9 / + AVG ( - 48 ) ) ) + - MIN ( ALL + 24 ) AS col1
----
-124

query I rowsort
SELECT - 78 * - + 82 + - + 76 AS col1
----
6320

onlyif mysql # DIV for integer division: 
query I rowsort label-1366
SELECT + 14 DIV - + ( + 57 )
----
0

skipif mysql # not compatible
query I rowsort label-1366
SELECT + 14 / - + ( + 57 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1367
SELECT DISTINCT + 44 AS col0, - COUNT( ALL - 95 )
----
44
-1

skipif mysql # not compatible
query II rowsort label-1367
SELECT DISTINCT + 44 AS col0, - COUNT ( ALL - 95 )
----
44
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1368
SELECT ALL 38 * 45 DIV 98
----
17

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL 38 * 45 / 98
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1369
SELECT 0 AS col0, - NULLIF ( + 9, + - 67 + COUNT( * ) + + 75 * - 48 * + 89 * + 15 ) * ( - + 12 ) - - CAST( + + 15 AS SIGNED ) col1
----
0
123

skipif mysql # not compatible
query II rowsort label-1369
SELECT 0 AS col0, - NULLIF ( + 9, + - 67 + COUNT ( * ) + + 75 * - 48 * + 89 * + 15 ) * ( - + 12 ) - - CAST ( + + 15 AS INTEGER ) col1
----
0
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1370
SELECT ALL COALESCE ( - + CASE - 21 WHEN 0 THEN - 94 * + - 50 END, 32 ) * + - 99 * + - ( - 61 ) - + COALESCE ( - 18, - + 76, SUM( ALL + 45 ) ) + - 49 + + 27 * + COUNT( - 28 ) / + 70 * - SUM( ALL - 14 ) * - - 21 * CAST( NULL AS SIGNED ) + 61 / - - 99 + - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL COALESCE ( - + CASE - 21 WHEN 0 THEN - 94 * + - 50 END, 32 ) * + - 99 * + - ( - 61 ) - + COALESCE ( - 18, - + 76, SUM ( ALL + 45 ) ) + - 49 + + 27 * + COUNT ( - 28 ) / + 70 * - SUM ( ALL - 14 ) * - - 21 * CAST ( NULL AS INTEGER ) + 61 / - - 99 + - 33 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1372
SELECT ALL - - 56 DIV - + COUNT( + - NULLIF ( + - 38, + 75 ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL - - 56 / - + COUNT ( + - NULLIF ( + - 38, + 75 ) ) AS col0
----
-56

query I rowsort
SELECT 74 + + 86
----
160

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

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT 8 / 24
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1375
SELECT 33 AS col2, ( + COUNT( * ) ) DIV - 29 + ( + + 45 ) AS col0
----
33
45

skipif mysql # not compatible
query II rowsort label-1375
SELECT 33 AS col2, ( + COUNT ( * ) ) / - 29 + ( + + 45 ) AS col0
----
33
45

query I rowsort
SELECT ALL - - 64 + + 84 + - - 94 AS col0
----
242

query II rowsort
SELECT 71 AS col2, + 97 * - + 66
----
71
-6402

onlyif mysql # aggregate syntax: 
query II rowsort label-1378
SELECT - 9 * + NULLIF ( - COUNT( * ), 36 + + 8 ) + + + CASE COUNT( * ) WHEN - 94 THEN 38 ELSE NULL END AS col0, + 15
----
NULL
15

skipif mysql # not compatible
query II rowsort label-1378
SELECT - 9 * + NULLIF ( - COUNT ( * ), 36 + + 8 ) + + + CASE COUNT ( * ) WHEN - 94 THEN 38 ELSE NULL END AS col0, + 15
----
NULL
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1379
SELECT 12 * - COALESCE ( + 9, + 6, - CAST( NULL AS SIGNED ) ) - + - 28
----
-80

skipif mysql # not compatible
query I rowsort label-1379
SELECT 12 * - COALESCE ( + 9, + 6, - CAST ( NULL AS INTEGER ) ) - + - 28
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1380
SELECT + COALESCE ( CASE WHEN NULL NOT IN ( + 21, ( + 5 ), + 45, + 87 + 27, + - COUNT( DISTINCT + + ( - - 92 ) ) * + 90 ) THEN + COUNT( * ) * - ( - 35 ) DIV 70 + 72 - 44 * 41 * + 85 ELSE NULL END, + 83, + + 89 ) col1
----
83

skipif mysql # not compatible
query I rowsort label-1380
SELECT + COALESCE ( CASE WHEN NULL NOT IN ( + 21, ( + 5 ), + 45, + 87 + 27, + - COUNT ( DISTINCT + + ( - - 92 ) ) * + 90 ) THEN + COUNT ( * ) * - ( - 35 ) / 70 + 72 - 44 * 41 * + 85 ELSE NULL END, + 83, + + 89 ) col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1381
SELECT DISTINCT ( - 9 ) + + + NULLIF ( - + 29, + COUNT( * ) / - 16 + + - 57 + - + 68 ) - CASE - ( - 12 ) WHEN 55 THEN NULL WHEN 66 - + 14 + - 10 + + COUNT( * ) * + + 78 THEN NULL ELSE COUNT( * ) * - + 6 END - - CASE + + CAST( NULL AS SIGNED ) WHEN - - 35 THEN + CAST( NULL AS SIGNED ) * SUM( DISTINCT - 16 ) END * - CASE SUM( 27 ) WHEN - COUNT( * ) THEN NULL WHEN - 34 + + 28 - + 32 * - + 36 - + 24 * + 40 * + 32 THEN - + 40 WHEN - 36 * + + COUNT( * ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT ( - 9 ) + + + NULLIF ( - + 29, + COUNT ( * ) / - 16 + + - 57 + - + 68 ) - CASE - ( - 12 ) WHEN 55 THEN NULL WHEN 66 - + 14 + - 10 + + COUNT ( * ) * + + 78 THEN NULL ELSE COUNT ( * ) * - + 6 END - - CASE + + CAST ( NULL AS INTEGER ) WHEN - - 35 THEN + CAST ( NULL AS INTEGER ) * SUM ( DISTINCT - 16 ) END * - CASE SUM ( 27 ) WHEN - COUNT ( * ) THEN NULL WHEN - 34 + + 28 - + 32 * - + 36 - + 24 * + 40 * + 32 THEN - + 40 WHEN - 36 * + + COUNT ( * ) THEN + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1382
SELECT ALL + + 72 + - 22 + + 78 + - 28 * 1 * CAST( + 87 AS SIGNED ) AS col2
----
-2308

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL + + 72 + - 22 + + 78 + - 28 * 1 * CAST ( + 87 AS INTEGER ) AS col2
----
-2308

query I rowsort
SELECT DISTINCT - + 59 * 62 AS col2
----
-3658

onlyif mysql # aggregate syntax: 
query II rowsort label-1384
SELECT + 22 AS col2, MIN( ALL - ( - 62 ) )
----
22
62

skipif mysql # not compatible
query II rowsort label-1384
SELECT + 22 AS col2, MIN ( ALL - ( - 62 ) )
----
22
62

query I rowsort
SELECT 71 + 67 AS col1
----
138

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

query I rowsort
SELECT ALL + 99 + - - 44 col2
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT ALL 40 DIV 14 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL 40 / 14 / - 80
----
0

query I rowsort
SELECT DISTINCT - 64 - - 60 + 69 - + + 64
----
1

query I rowsort
SELECT ALL + 10 - + 88 * 37
----
-3246

query I rowsort
SELECT ALL 75 * - ( + 75 )
----
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT 90 + + - 29 DIV + + 95
----
90

skipif mysql # not compatible
query I rowsort label-1392
SELECT 90 + + - 29 / + + 95
----
90

query I rowsort
SELECT ALL - 46 - + 95 AS col0
----
-141

query I rowsort
SELECT 97 * + - 92
----
-8924

query I rowsort
SELECT ALL - 37 * - 44
----
1628

query I rowsort
SELECT 71 + 29 AS col1
----
100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT 80 + - 5 * + 39 - + + COUNT( * ) + + 48 + + 26 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1398
SELECT 80 + - 5 * + 39 - + + COUNT ( * ) + + 48 + + 26 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1399
SELECT 25 - 91 + - - 56 * NULLIF ( 34, - - COALESCE ( - - NULLIF ( - MIN( DISTINCT + 86 ), + 7 ), + 32 ) * - - 34 ) AS col2, - 80
----
1838
-80

skipif mysql # not compatible
query II rowsort label-1399
SELECT 25 - 91 + - - 56 * NULLIF ( 34, - - COALESCE ( - - NULLIF ( - MIN ( DISTINCT + 86 ), + 7 ), + 32 ) * - - 34 ) AS col2, - 80
----
1838
-80

query I rowsort
SELECT ALL 33 - + 92
----
-59

query II rowsort
SELECT 96 * - 15, 49 + + - 85 AS col1
----
-1440
-36

query I rowsort
SELECT 32 * 68
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT DISTINCT - MIN( ALL 15 ) * - + 52 AS col2
----
780

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT - MIN ( ALL 15 ) * - + 52 AS col2
----
780

query I rowsort
SELECT 21 * 39 AS col2
----
819

onlyif mysql # DIV for integer division: 
query II rowsort label-1405
SELECT DISTINCT 20 * 62 AS col0, 59 DIV + 26 col1
----
1240
2

skipif mysql # not compatible
query II rowsort label-1405
SELECT DISTINCT 20 * 62 AS col0, 59 / + 26 col1
----
1240
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1406
SELECT ALL 67 DIV - COALESCE ( + NULLIF ( + - 24, - + 31 - - 22 ), + + 10 * + 59 * COUNT( * ) * 20 - - - 19 DIV - + 33, + 66 + - CAST( - COUNT( * ) AS SIGNED ) ) col2
----
2

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL 67 / - COALESCE ( + NULLIF ( + - 24, - + 31 - - 22 ), + + 10 * + 59 * COUNT ( * ) * 20 - - - 19 / - + 33, + 66 + - CAST ( - COUNT ( * ) AS INTEGER ) ) col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT + 79 * COUNT( * ) + - COUNT( * )
----
78

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

query I rowsort
SELECT ALL - 4 + 28
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT ALL - 46 * + + COUNT( DISTINCT 19 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL - 46 * + + COUNT ( DISTINCT 19 ) AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1410
SELECT DISTINCT 29 + - 8 + + 38 + + + 62 DIV 17
----
62

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT 29 + - 8 + + 38 + + + 62 / 17
----
62

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT ALL + ( - - COUNT( * ) ) * 34 * + 43 * 46 + + CASE + + ( - 75 ) WHEN 21 THEN COUNT( * ) WHEN + 97 THEN - + COUNT( * ) ELSE + 40 * 14 - 90 END
----
67722

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL + ( - - COUNT ( * ) ) * 34 * + 43 * 46 + + CASE + + ( - 75 ) WHEN 21 THEN COUNT ( * ) WHEN + 97 THEN - + COUNT ( * ) ELSE + 40 * 14 - 90 END
----
67722

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT + - COUNT( * ) * MAX( ALL - 95 ) + COALESCE ( 77, - COALESCE ( - 18, + - ( + 21 ) ) ) AS col2
----
172

skipif mysql # not compatible
query I rowsort label-1414
SELECT + - COUNT ( * ) * MAX ( ALL - 95 ) + COALESCE ( 77, - COALESCE ( - 18, + - ( + 21 ) ) ) AS col2
----
172

query I rowsort
SELECT ALL 13 + + + 62 + - + 97 * - + 35
----
3470

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT ALL 27 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL 27 / - 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1417
SELECT - 61 * - + COALESCE ( - - 99, + - 56, - 48 ) / - SUM( DISTINCT - + 10 ) + - COUNT( * ) + COUNT( * ) * 86 + + ( CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col1, 70 + - + 41, COUNT( * ) + - SUM( + 7 ) AS col2
----
NULL
29
-6

skipif mysql # not compatible
query III rowsort label-1417
SELECT - 61 * - + COALESCE ( - - 99, + - 56, - 48 ) / - SUM ( DISTINCT - + 10 ) + - COUNT ( * ) + COUNT ( * ) * 86 + + ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col1, 70 + - + 41, COUNT ( * ) + - SUM ( + 7 ) AS col2
----
NULL
29
-6

query I rowsort
SELECT ALL + 3 + + 63 AS col2
----
66

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

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

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

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL - + 56 - - + 64 * + 20 + + COUNT ( * ) col1
----
1225

query I rowsort
SELECT 16 * + ( + + 35 ) col2
----
560

query I rowsort
SELECT ALL - + ( + - 16 ) * - - 90 col1
----
1440

query II rowsort
SELECT - 86 AS col1, + 37 * 97 AS col2
----
-86
3589

query II rowsort
SELECT - 37, + 87 AS col1
----
-37
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT ALL - 51 * - COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - 51 * - COUNT ( * ) AS col2
----
51

query II rowsort
SELECT 96, + 60 col0
----
96
60

query I rowsort
SELECT 6 * + 57 col1
----
342

query I rowsort
SELECT 77 + + - 90 AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1429
SELECT COUNT( * ) + + + 80 - + COALESCE ( + 76, - 96, + COUNT( - 89 ) * + - COALESCE ( CAST( NULL AS SIGNED ), + 67 * - - 12 ) * + 37 )
----
5

skipif mysql # not compatible
query I rowsort label-1429
SELECT COUNT ( * ) + + + 80 - + COALESCE ( + 76, - 96, + COUNT ( - 89 ) * + - COALESCE ( CAST ( NULL AS INTEGER ), + 67 * - - 12 ) * + 37 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ALL MIN( DISTINCT - - 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL MIN ( DISTINCT - - 87 ) AS col0
----
87

query I rowsort
SELECT 90 * 43 AS col2
----
3870

query I rowsort
SELECT 32 * - 51 * + 98
----
-159936

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

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

query I rowsort
SELECT ALL COALESCE ( + 97, - 39 * - 74 )
----
97

query I rowsort
SELECT 12 + 49 + - - CASE + - 27 WHEN ( - - 30 ) THEN NULL ELSE + 81 END
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT ALL + NULLIF ( - 5, + 1 ) DIV - - 12
----
0

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL + NULLIF ( - 5, + 1 ) / - - 12
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1437
SELECT DISTINCT COUNT( * ) AS col2, 36 * + ( + - 14 ) AS col2
----
1
-504

skipif mysql # not compatible
query II rowsort label-1437
SELECT DISTINCT COUNT ( * ) AS col2, 36 * + ( + - 14 ) AS col2
----
1
-504

query I rowsort
SELECT ALL 79 * 19 AS col2
----
1501

query I rowsort
SELECT - 85 * + + 66 AS col0
----
-5610

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL + MAX( ALL - 97 ) + 31
----
-66

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL + MAX ( ALL - 97 ) + 31
----
-66

query I rowsort
SELECT - 55 - + 6
----
-61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1443
SELECT - 73 DIV CASE 6 WHEN 11 * + + 27 THEN + MIN( DISTINCT + 51 ) WHEN + 77 DIV - + ( - MIN( 66 ) ) + COUNT( * ) * + 75 * + - 22 THEN - 25 ELSE - 65 * COUNT( * ) + + - 91 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1443
SELECT - 73 / CASE 6 WHEN 11 * + + 27 THEN + MIN ( DISTINCT + 51 ) WHEN + 77 / - + ( - MIN ( 66 ) ) + COUNT ( * ) * + 75 * + - 22 THEN - 25 ELSE - 65 * COUNT ( * ) + + - 91 END AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1444
SELECT - 49 * + CASE WHEN NOT NULL BETWEEN + 62 AND + + 89 * ( - - 65 ) * 31 THEN - + 34 * - 46 DIV - - MIN( ALL - 57 ) ELSE - + 81 * + - MIN( - 90 ) + - 38 * + 98 + - 78 END AS col0
----
543508

skipif mysql # not compatible
query I rowsort label-1444
SELECT - 49 * + CASE WHEN NOT NULL BETWEEN + 62 AND + + 89 * ( - - 65 ) * 31 THEN - + 34 * - 46 / - - MIN ( ALL - 57 ) ELSE - + 81 * + - MIN ( - 90 ) + - 38 * + 98 + - 78 END AS col0
----
543508

query I rowsort
SELECT + 55 + - - 65
----
120

query I rowsort
SELECT - ( - 6 ) col1
----
6

query I rowsort
SELECT ALL COALESCE ( + 96, + 64, - 45 )
----
96

query II rowsort
SELECT + 16, + 87 * + + 59 - + 18 * + 0 + + + 60 AS col0
----
16
5193

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT + COUNT( * ) * + - 30 + 58 + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-1449
SELECT + COUNT ( * ) * + - 30 + 58 + - COUNT ( * )
----
27

query I rowsort
SELECT ALL - ( - 59 ) * 76 + - 3
----
4481

onlyif mysql # aggregate syntax: 
query II rowsort label-1451
SELECT DISTINCT - - 46 * + 37 + + COALESCE ( + - COUNT( * ), + - 1 * 93 ), 13 + 88 AS col0
----
1701
101

skipif mysql # not compatible
query II rowsort label-1451
SELECT DISTINCT - - 46 * + 37 + + COALESCE ( + - COUNT ( * ), + - 1 * 93 ), 13 + 88 AS col0
----
1701
101

query I rowsort
SELECT + 1 * - 14 + 35 AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1453
SELECT ALL - + 47 * + 92 DIV - COUNT( * ) + + 41 + 83 + + 99 AS col1
----
4547

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - + 47 * + 92 / - COUNT ( * ) + + 41 + 83 + + 99 AS col1
----
4547

query I rowsort
SELECT ALL 58 * + 92 AS col2
----
5336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1455
SELECT + 0 * - - 23 * SUM( + + 49 ) * NULLIF ( 77, + 9 + 93 + - + CASE 75 WHEN - 16 THEN - 33 WHEN - - ( CAST( + 90 AS SIGNED ) ) THEN - COUNT( * ) - 83 + - + 81 + - + ( + 65 ) * + + 88 + + COUNT( * ) ELSE NULL END + + - CASE - + 66 WHEN - 42 THEN + 98 WHEN + + MIN( 20 ) THEN NULL END ) + + + COUNT( * ) * - 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1455
SELECT + 0 * - - 23 * SUM ( + + 49 ) * NULLIF ( 77, + 9 + 93 + - + CASE 75 WHEN - 16 THEN - 33 WHEN - - ( CAST ( + 90 AS INTEGER ) ) THEN - COUNT ( * ) - 83 + - + 81 + - + ( + 65 ) * + + 88 + + COUNT ( * ) ELSE NULL END + + - CASE - + 66 WHEN - 42 THEN + 98 WHEN + + MIN ( 20 ) THEN NULL END ) + + + COUNT ( * ) * - 24 AS col0
----
-24

query I rowsort
SELECT + 13 * - - 41 + + COALESCE ( + 92, + 10 ) col2
----
625

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

skipif mysql # not compatible
query I rowsort label-1457
SELECT + SUM ( - ( + 16 ) )
----
-16

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

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

query I rowsort
SELECT DISTINCT - 80 * - 93 AS col0
----
7440

query I rowsort
SELECT + 58 * - - 90 AS col2
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT + ( + 96 ) * - 1 + 59 + - 41 * - - COUNT( * ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-1461
SELECT + ( + 96 ) * - 1 + 59 + - 41 * - - COUNT ( * ) col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT + AVG ( ( ( + CAST( NULL AS SIGNED ) ) ) ) * - + AVG ( DISTINCT 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT + AVG ( ( ( + CAST ( NULL AS INTEGER ) ) ) ) * - + AVG ( DISTINCT 40 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1463
SELECT + CAST( NULL AS SIGNED ) + + + 43 - + - MAX( + 81 ) * + - 38 * + MIN( - + 52 ), + CAST( - 96 AS SIGNED ) * + 44 * - 86 AS col0
----
NULL
363264

skipif mysql # not compatible
query II rowsort label-1463
SELECT + CAST ( NULL AS INTEGER ) + + + 43 - + - MAX ( + 81 ) * + - 38 * + MIN ( - + 52 ), + CAST ( - 96 AS INTEGER ) * + 44 * - 86 AS col0
----
NULL
363264

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT COUNT( ALL - + 44 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1464
SELECT COUNT ( ALL - + 44 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1465
SELECT DISTINCT SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) col2, - ( - 81 ) AS col0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-1465
SELECT DISTINCT SUM ( DISTINCT - CAST ( NULL AS REAL ) ) col2, - ( - 81 ) AS col0
----
NULL
81

query II rowsort
SELECT ALL - 20 * + 66 AS col0, - 79 AS col0
----
-1320
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL + ( + 73 ) + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL + ( + 73 ) + - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL - SUM( + 67 ) + 70
----
3

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - SUM ( + 67 ) + 70
----
3

query I rowsort
SELECT + 56 + - 9
----
47

query I rowsort
SELECT + 32 + + 5 - - 14 + NULLIF ( - - 4, 0 * - 46 ) * + + 18 AS col0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT ALL CASE + - 63 WHEN 48 THEN - CAST( NULL AS SIGNED ) + + 51 ELSE + CAST( ( 57 ) AS SIGNED ) END AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL CASE + - 63 WHEN 48 THEN - CAST ( NULL AS INTEGER ) + + 51 ELSE + CAST ( ( 57 ) AS INTEGER ) END AS col0
----
57

query I rowsort
SELECT - 14 - 20 * - 40
----
786

query II rowsort
SELECT DISTINCT ( - + 72 ) AS col1, - 91 * + 67
----
-72
-6097

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1474
SELECT - + COALESCE ( + COUNT( * ), + - 64 ) DIV - + 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1474
SELECT - + COALESCE ( + COUNT ( * ), + - 64 ) / - + 37 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1475
SELECT DISTINCT + 85 DIV - COUNT( - - 77 )
----
-85

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT + 85 / - COUNT ( - - 77 )
----
-85

query I rowsort
SELECT ALL - 27 + - - 37
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1477
SELECT ALL + + CASE - - CAST( + 38 AS SIGNED ) WHEN NULLIF ( + 10, - - CASE ( - + 52 ) WHEN + - CAST( - + 8 AS SIGNED ) - 80 THEN NULL ELSE + 80 END ) / + 95 * + 65 THEN 61 WHEN + 21 THEN - + CAST( NULL AS SIGNED ) + - + 5 + - 80 * + 52 * + SUM( + 31 ) END * 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL + + CASE - - CAST ( + 38 AS INTEGER ) WHEN NULLIF ( + 10, - - CASE ( - + 52 ) WHEN + - CAST ( - + 8 AS INTEGER ) - 80 THEN NULL ELSE + 80 END ) / + 95 * + 65 THEN 61 WHEN + 21 THEN - + CAST ( NULL AS INTEGER ) + - + 5 + - 80 * + 52 * + SUM ( + 31 ) END * 49 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1478
SELECT - 51 + + CASE + - 76 WHEN + - 37 * NULLIF ( - CASE + 69 WHEN - + 26 THEN NULL WHEN + + 78 THEN NULL ELSE - CAST( NULL AS SIGNED ) END, 41 * + 81 ) THEN - 66 * - 74 WHEN 26 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1478
SELECT - 51 + + CASE + - 76 WHEN + - 37 * NULLIF ( - CASE + 69 WHEN - + 26 THEN NULL WHEN + + 78 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END, 41 * + 81 ) THEN - 66 * - 74 WHEN 26 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT - ( - + 59 ) DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1479
SELECT - ( - + 59 ) / - 91 AS col2
----
0

query I rowsort
SELECT DISTINCT + 36 * + + 54
----
1944

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT - + 6 + + 33 DIV - 85 col0
----
-6

skipif mysql # not compatible
query I rowsort label-1481
SELECT - + 6 + + 33 / - 85 col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT ALL 73 DIV 16 - + 87 * - ( 63 ) * 16 + - 62 * + 7 AS col0
----
87266

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL 73 / 16 - + 87 * - ( 63 ) * 16 + - 62 * + 7 AS col0
----
87266

query I rowsort
SELECT + - 71 * 52 + - 26
----
-3718

query II rowsort
SELECT + 37 * - 17 * 15 - - 56, - 76 AS col2
----
-9379
-76

query II rowsort
SELECT + - 81 + - 21 AS col1, - 57
----
-102
-57

query I rowsort
SELECT + 34 * + 33 AS col0
----
1122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1487
SELECT ALL CASE 26 WHEN - 71 * + COALESCE ( - 26, + - 13 / + 13 + 32 + + 61 ) + + 65 * + 75 THEN - - COALESCE ( - 3, - 18 * + - 22, + 95 * + COUNT( * ) - 3 ) WHEN 40 THEN NULL END * - 83 * + CAST( + ( - - CASE - 12 WHEN 60 THEN NULL WHEN 78 * - 76 + 20 * + 17 + + 71 * + 31 THEN 65 END ) AS SIGNED ) * + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL CASE 26 WHEN - 71 * + COALESCE ( - 26, + - 13 / + 13 + 32 + + 61 ) + + 65 * + 75 THEN - - COALESCE ( - 3, - 18 * + - 22, + 95 * + COUNT ( * ) - 3 ) WHEN 40 THEN NULL END * - 83 * + CAST ( + ( - - CASE - 12 WHEN 60 THEN NULL WHEN 78 * - 76 + 20 * + 17 + + 71 * + 31 THEN 65 END ) AS INTEGER ) * + 62 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1488
SELECT - CAST( + COUNT( * ) AS SIGNED ) DIV 66 AS col1, COUNT( * ) * + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-1488
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) / 66 AS col1, COUNT ( * ) * + COUNT ( * ) AS col0
----
0
1

query II rowsort
SELECT 88 * 39 + 32, 27 AS col0
----
3464
27

query II rowsort
SELECT + COALESCE ( - 4, + 47 ), 80 AS col1
----
-4
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1491
SELECT CASE + 28 WHEN + + 93 THEN + 80 + - CASE - ( + - 48 ) WHEN NULLIF ( - 82, - 0 + - ( 52 ) - - 77 * - 35 / + COUNT( ALL - 31 ) * - - 87 + + + 77 - 86 + + 45 * - 98 + - 98 ) + + 47 + - + COUNT( * ) + CAST( + 89 AS SIGNED ) * - MAX( - 1 ) + - 20 / - 14 THEN NULL ELSE - 63 / - ( - 42 ) / CAST( NULL AS SIGNED ) + - CASE + ( + 34 ) WHEN - + 16 THEN + - 94 WHEN + + 78 - + 55 THEN NULL ELSE - 0 END END WHEN 71 * + + 78 + + - 81 + 19 + + + COUNT( * ) THEN - + 55 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1491
SELECT CASE + 28 WHEN + + 93 THEN + 80 + - CASE - ( + - 48 ) WHEN NULLIF ( - 82, - 0 + - ( 52 ) - - 77 * - 35 / + COUNT ( ALL - 31 ) * - - 87 + + + 77 - 86 + + 45 * - 98 + - 98 ) + + 47 + - + COUNT ( * ) + CAST ( + 89 AS INTEGER ) * - MAX ( - 1 ) + - 20 / - 14 THEN NULL ELSE - 63 / - ( - 42 ) / CAST ( NULL AS INTEGER ) + - CASE + ( + 34 ) WHEN - + 16 THEN + - 94 WHEN + + 78 - + 55 THEN NULL ELSE - 0 END END WHEN 71 * + + 78 + + - 81 + 19 + + + COUNT ( * ) THEN - + 55 END AS col0
----
NULL

query I rowsort
SELECT + 16 + + ( + 97 )
----
113

query I rowsort
SELECT ALL + 16 * - + 54 col1
----
-864

query I rowsort
SELECT DISTINCT 56 * - + 97 AS col2
----
-5432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1495
SELECT 25 * - CAST( - 27 AS SIGNED ) + - + 17 + + 9 + - COALESCE ( - + SUM( 14 ), + 81 + 80 + ( + 8 ) * - + 51 ) AS col1
----
681

skipif mysql # not compatible
query I rowsort label-1495
SELECT 25 * - CAST ( - 27 AS INTEGER ) + - + 17 + + 9 + - COALESCE ( - + SUM ( 14 ), + 81 + 80 + ( + 8 ) * - + 51 ) AS col1
----
681

query II rowsort
SELECT DISTINCT 55 AS col1, - 71 + + + 61 AS col1
----
55
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT NULLIF ( 43, + + 63 ) * + - 10 * - ( + COUNT( + 39 ) ) AS col0
----
430

skipif mysql # not compatible
query I rowsort label-1497
SELECT NULLIF ( 43, + + 63 ) * + - 10 * - ( + COUNT ( + 39 ) ) AS col0
----
430

query II rowsort
SELECT 58 AS col2, 74 AS col0
----
58
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1499
SELECT 15 DIV 12 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1499
SELECT 15 / 12 AS col1
----
1

query I rowsort
SELECT 50 + + 9 * + 55 AS col1
----
545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1501
SELECT ALL 44 DIV - CASE + 59 WHEN + 44 THEN MIN( ALL + 95 ) * + 94 ELSE 56 + + - COUNT( * ) END
----
0

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL 44 / - CASE + 59 WHEN + 44 THEN MIN ( ALL + 95 ) * + 94 ELSE 56 + + - COUNT ( * ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT DISTINCT 61 + - MAX( + 75 ) + - + 6 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT 61 + - MAX ( + 75 ) + - + 6 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-1503
SELECT ALL - 26 + 21 + - 0, COUNT( * ) * - + COUNT( * ) AS col1
----
-5
-1

skipif mysql # not compatible
query II rowsort label-1503
SELECT ALL - 26 + 21 + - 0, COUNT ( * ) * - + COUNT ( * ) AS col1
----
-5
-1

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

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

query I rowsort
SELECT 46 + - - 73 AS col0
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1506
SELECT CAST( + 37 AS SIGNED ) * 34
----
1258

skipif mysql # not compatible
query I rowsort label-1506
SELECT CAST ( + 37 AS INTEGER ) * 34
----
1258

query I rowsort
SELECT ALL + 54 * + 67
----
3618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT ALL MAX( DISTINCT 77 ) - - 40 DIV - 37
----
76

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL MAX ( DISTINCT 77 ) - - 40 / - 37
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT DISTINCT 36 * + MAX( ALL 62 )
----
2232

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT 36 * + MAX ( ALL 62 )
----
2232

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

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

query I rowsort
SELECT 75 * 62 AS col1
----
4650

query I rowsort
SELECT ALL + 54 * 79
----
4266

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

query I rowsort
SELECT DISTINCT - COALESCE ( + COALESCE ( - ( 17 ), + 23 ), + 22 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT DISTINCT - 9 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT - 9 / 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL - COUNT( - 28 ) * 2 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - COUNT ( - 28 ) * 2 AS col2
----
-2

query I rowsort
SELECT 90 * + 60
----
5400

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT ALL - 19 DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL - 19 / 82 AS col1
----
0

query I rowsort
SELECT DISTINCT - 1 * + 47
----
-47

query I rowsort
SELECT DISTINCT - COALESCE ( - 78, - 58 )
----
78

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

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

query I rowsort
SELECT 80 * 42
----
3360

query I rowsort
SELECT 16 * - 83
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL + 29 * COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL + 29 * COUNT ( * ) AS col1
----
29

query I rowsort
SELECT ALL + 20 + - 66
----
-46

query I rowsort
SELECT 96 - 62 * 92
----
-5608

query I rowsort
SELECT ALL - 56 + + 89 * 97 AS col0
----
8577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1528
SELECT DISTINCT ( - 51 ) + - ( COUNT( * ) ) * NULLIF ( - 44 DIV 76, CAST( - 29 AS SIGNED ) * 24 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT ( - 51 ) + - ( COUNT ( * ) ) * NULLIF ( - 44 / 76, CAST ( - 29 AS INTEGER ) * 24 ) AS col0
----
-51

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

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT - 75 + COUNT ( * ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1530
SELECT 57 * CASE COUNT( * ) WHEN - CAST( 89 AS SIGNED ) / 43 - 75 THEN + 49 WHEN + 4 * NULLIF ( + ( 10 ) * 52, - COALESCE ( - CASE - 36 WHEN ( 29 ) THEN 95 ELSE NULL END, - 89 + 33 ) + + AVG ( - 45 + 82 ) / 85 ) THEN NULL ELSE NULL END + + COALESCE ( 61, - 48, - 56 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT 57 * CASE COUNT ( * ) WHEN - CAST ( 89 AS INTEGER ) / 43 - 75 THEN + 49 WHEN + 4 * NULLIF ( + ( 10 ) * 52, - COALESCE ( - CASE - 36 WHEN ( 29 ) THEN 95 ELSE NULL END, - 89 + 33 ) + + AVG ( - 45 + 82 ) / 85 ) THEN NULL ELSE NULL END + + COALESCE ( 61, - 48, - 56 ) AS col0
----
NULL

query I rowsort
SELECT 41 * - 32 AS col0
----
-1312

query I rowsort
SELECT 15 + 8
----
23

query I rowsort
SELECT DISTINCT 3 * - 52 AS col0
----
-156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT 60 / CASE ( 29 ) * 50 WHEN - ( + SUM( - 73 ) ) + + COUNT( * ) * 37 THEN 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT 60 / CASE ( 29 ) * 50 WHEN - ( + SUM ( - 73 ) ) + + COUNT ( * ) * 37 THEN 70 END
----
NULL

query I rowsort
SELECT ALL 20 + + 69 * 8
----
572

query I rowsort
SELECT 31 * 84
----
2604

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT ALL - 85 DIV + 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - 85 / + 52 AS col2
----
-1

query I rowsort
SELECT ALL 96 + + 70 * 83 AS col2
----
5906

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT DISTINCT COUNT( + 86 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT COUNT ( + 86 ) col0
----
1

query I rowsort
SELECT 56 * + 34 col2
----
1904

query I rowsort
SELECT ALL 2 * 78
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL NULLIF ( + COUNT( * ), + 4 ) - - ( 6 )
----
7

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL NULLIF ( + COUNT ( * ), + 4 ) - - ( 6 )
----
7

query I rowsort
SELECT - 24 + 55
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1547
SELECT - 94 DIV 29
----
-3

skipif mysql # not compatible
query I rowsort label-1547
SELECT - 94 / 29
----
-3

query I rowsort
SELECT + 33 * 8 AS col2
----
264

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

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

query I rowsort
SELECT - NULLIF ( - 25, 72 )
----
25

query I rowsort
SELECT ALL - NULLIF ( + 51, - ( - 19 ) )
----
-51

query I rowsort
SELECT ALL - 95 * 11 AS col1
----
-1045

query I rowsort
SELECT DISTINCT - - 72 * - 97 AS col2
----
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL + NULLIF ( MIN( DISTINCT + COALESCE ( + 33, + 97 ) ), COUNT( * ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL + NULLIF ( MIN ( DISTINCT + COALESCE ( + 33, + 97 ) ), COUNT ( * ) ) AS col0
----
33

query I rowsort
SELECT - 10 * 80 col0
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT COUNT( * ) * 21 + - 75
----
-54

skipif mysql # not compatible
query I rowsort label-1556
SELECT COUNT ( * ) * 21 + - 75
----
-54

query I rowsort
SELECT + 19 - - NULLIF ( + 65 + 30, 85 ) AS col1
----
114

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

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

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

skipif mysql # not compatible
query I rowsort label-1559
SELECT + COUNT ( * ) / 7 + - COUNT ( * )
----
-1

query I rowsort
SELECT + 76 * - 29 AS col1
----
-2204

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT CASE COUNT( * ) WHEN + 96 THEN - 51 + - 35 * 22 WHEN + NULLIF ( + 92, - ( - 3 ) ) + 37 THEN NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT CASE COUNT ( * ) WHEN + 96 THEN - 51 + - 35 * 22 WHEN + NULLIF ( + 92, - ( - 3 ) ) + 37 THEN NULL END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL - 12 * COUNT( * ) + 30
----
18

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL - 12 * COUNT ( * ) + 30
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1563
SELECT + COALESCE ( 96, 50, COALESCE ( + MAX( CAST( NULL AS SIGNED ) ), 86 - 12 * - 21 ) ) DIV MIN( + 75 * 86 + 44 ) + + SUM( DISTINCT 82 ) * 24
----
1968

skipif mysql # not compatible
query I rowsort label-1563
SELECT + COALESCE ( 96, 50, COALESCE ( + MAX ( CAST ( NULL AS INTEGER ) ), 86 - 12 * - 21 ) ) / MIN ( + 75 * 86 + 44 ) + + SUM ( DISTINCT 82 ) * 24
----
1968

query I rowsort
SELECT DISTINCT 55 * - 99
----
-5445

query I rowsort
SELECT - 16 + 67 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT ALL + 71 * 15 * + COUNT( * ) + - 91 AS col2
----
974

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL + 71 * 15 * + COUNT ( * ) + - 91 AS col2
----
974

query I rowsort
SELECT 25 * 39 + 79 AS col0
----
1054

query I rowsort
SELECT ALL + 94 * 12 + 2 * - 59 AS col1
----
1010

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT - COUNT( * ) * 38 + + 7
----
-31

skipif mysql # not compatible
query I rowsort label-1570
SELECT - COUNT ( * ) * 38 + + 7
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ALL + 44 * + CASE MAX( ALL 81 ) WHEN + ( - 5 ) THEN + 75 END + - 98 * - SUM( + 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + 44 * + CASE MAX ( ALL 81 ) WHEN + ( - 5 ) THEN + 75 END + - 98 * - SUM ( + 55 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1572
SELECT ALL + CASE + 58 WHEN COUNT( * ) THEN NULL WHEN NULLIF ( 84, - ( 87 ) - + SUM( DISTINCT + NULLIF ( - 69, 52 * + 63 + CAST( NULL AS SIGNED ) ) ) ) - + COALESCE ( ( + ( 6 ) ), - 88 * 97 + + CAST( NULL AS SIGNED ), 39 ) THEN MIN( + 27 ) WHEN - 50 THEN + 98 END * 4 + + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL + CASE + 58 WHEN COUNT ( * ) THEN NULL WHEN NULLIF ( 84, - ( 87 ) - + SUM ( DISTINCT + NULLIF ( - 69, 52 * + 63 + CAST ( NULL AS INTEGER ) ) ) ) - + COALESCE ( ( + ( 6 ) ), - 88 * 97 + + CAST ( NULL AS INTEGER ), 39 ) THEN MIN ( + 27 ) WHEN - 50 THEN + 98 END * 4 + + 21 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT + 56 DIV 83 * 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT + 56 / 83 * 11 AS col0
----
0

query I rowsort
SELECT - 62 + 62 * 81 AS col2
----
4960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1575
SELECT - 33 * + ( - CAST( NULL AS SIGNED ) ) / CAST( 74 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1575
SELECT - 33 * + ( - CAST ( NULL AS INTEGER ) ) / CAST ( 74 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT - 38 + - + COUNT( * ) + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-1576
SELECT - 38 + - + COUNT ( * ) + - COUNT ( * )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1577
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) * NULLIF ( - 84 / 29, 90 * - 24 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT - ( - + CAST ( NULL AS INTEGER ) ) * NULLIF ( - 84 / 29, 90 * - 24 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1578
SELECT ALL - 28 * 76 * 54 - ( - 48 + CAST( + COUNT( * ) AS SIGNED ) )
----
-114865

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL - 28 * 76 * 54 - ( - 48 + CAST ( + COUNT ( * ) AS INTEGER ) )
----
-114865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1579
SELECT - 26 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT - 26 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( + 77 ) * - 4 col2
----
308

query I rowsort
SELECT - 3 * 81 AS col0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL COALESCE ( - 5, COALESCE ( 53, 41 * + 9, SUM( ALL 18 ) ) - 9 * 1, + 22 )
----
-5

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL COALESCE ( - 5, COALESCE ( 53, 41 * + 9, SUM ( ALL 18 ) ) - 9 * 1, + 22 )
----
-5

query I rowsort
SELECT ALL 67 - + 83 AS col1
----
-16

query I rowsort
SELECT - 72 * + - 90 AS col1
----
6480

query I rowsort
SELECT ALL NULLIF ( - 78, - 10 ) col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT + + CAST( 55 AS SIGNED ) + 77 col2
----
132

skipif mysql # not compatible
query I rowsort label-1586
SELECT + + CAST ( 55 AS INTEGER ) + 77 col2
----
132

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1588
SELECT + - COUNT( + COALESCE ( + 59, 25 / CAST( 91 AS SIGNED ) ) ) + + CAST( NULL AS SIGNED ) * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1588
SELECT + - COUNT ( + COALESCE ( + 59, 25 / CAST ( 91 AS INTEGER ) ) ) + + CAST ( NULL AS INTEGER ) * + 87
----
NULL

query I rowsort
SELECT - - 85 * - 94 AS col0
----
-7990

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT DISTINCT - MAX( 70 ) * COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT - MAX ( 70 ) * COUNT ( * ) AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1592
SELECT DISTINCT - 46 DIV - ( - MAX( ALL - 85 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT - 46 / - ( - MAX ( ALL - 85 ) )
----
0

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

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

query I rowsort
SELECT + COALESCE ( + 71, CASE ( + 50 ) WHEN 33 THEN CASE - 13 WHEN + 90 THEN - 0 WHEN - 61 THEN - 75 + 20 END + - 37 WHEN + 8 / - 35 THEN NULL ELSE NULL END + - 67 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL - MAX( - COALESCE ( + 2, 91 - 50 ) )
----
2

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL - MAX ( - COALESCE ( + 2, 91 - 50 ) )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1596
SELECT + + COUNT( - 75 ) DIV 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1596
SELECT + + COUNT ( - 75 ) / 57 AS col1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT - - 58 * + CASE CAST( 51 AS SIGNED ) WHEN 30 - - 14 THEN - 16 * - 48 WHEN 88 * - 7 THEN 39 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT - - 58 * + CASE CAST ( 51 AS INTEGER ) WHEN 30 - - 14 THEN - 16 * - 48 WHEN 88 * - 7 THEN 39 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT + + COUNT( DISTINCT - 76 ) * + CASE WHEN ( NULL ) NOT IN ( 95 ) THEN NULL WHEN NOT + 40 >= + 4 * 29 THEN + COUNT( * ) - + ( 90 ) * - 46 ELSE NULL END AS col2
----
4141

skipif mysql # not compatible
query I rowsort label-1599
SELECT + + COUNT ( DISTINCT - 76 ) * + CASE WHEN ( NULL ) NOT IN ( 95 ) THEN NULL WHEN NOT + 40 >= + 4 * 29 THEN + COUNT ( * ) - + ( 90 ) * - 46 ELSE NULL END AS col2
----
4141

onlyif mysql # DIV for integer division: 
query I rowsort label-1600
SELECT + 17 + - + 72 DIV 31 col1
----
15

skipif mysql # not compatible
query I rowsort label-1600
SELECT + 17 + - + 72 / 31 col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT + 30 + COUNT( * ) + - 41
----
-10

skipif mysql # not compatible
query I rowsort label-1601
SELECT + 30 + COUNT ( * ) + - 41
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1602
SELECT ALL 0 + + MAX( 62 ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL 0 + + MAX ( 62 ) / + 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1603
SELECT DISTINCT + 81 DIV + - 1
----
-81

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT + 81 / + - 1
----
-81

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1606
SELECT DISTINCT - 94 DIV - + 19 + SUM( DISTINCT - NULLIF ( - 27, + 11 ) )
----
31

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - 94 / - + 19 + SUM ( DISTINCT - NULLIF ( - 27, + 11 ) )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT ALL + COALESCE ( + 50, + COUNT( ALL 53 ) + + ( - 6 + + 17 ) ) DIV 3 + 91
----
107

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL + COALESCE ( + 50, + COUNT ( ALL 53 ) + + ( - 6 + + 17 ) ) / 3 + 91
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-1608
SELECT ALL + 70 AS col1, 46 * - SUM( - 98 )
----
70
4508

skipif mysql # not compatible
query II rowsort label-1608
SELECT ALL + 70 AS col1, 46 * - SUM ( - 98 )
----
70
4508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT + CASE - COALESCE ( COUNT( * ), 30 ) WHEN 73 + 57 THEN COUNT( * ) - - 29 WHEN - COUNT( * ) * - 52 - - 70 * - CASE + COUNT( * ) + - 17 * + 79 WHEN - 4 - 0 / + COUNT( * ) THEN CAST( NULL AS SIGNED ) + 57 END THEN NULL ELSE + 46 END AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1609
SELECT + CASE - COALESCE ( COUNT ( * ), 30 ) WHEN 73 + 57 THEN COUNT ( * ) - - 29 WHEN - COUNT ( * ) * - 52 - - 70 * - CASE + COUNT ( * ) + - 17 * + 79 WHEN - 4 - 0 / + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) + 57 END THEN NULL ELSE + 46 END AS col0
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT ALL - 34 * - - CASE - 90 WHEN 76 * + 35 + + 61 * - 2 THEN MIN( + 4 ) WHEN + 80 THEN NULL WHEN - COUNT( * ) THEN + 97 / 97 END - + 28 * CASE COUNT( * ) * 14 WHEN 28 * 99 THEN NULL WHEN + 85 * + 21 + + COUNT( * ) * + ( + 72 ) THEN - 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - 34 * - - CASE - 90 WHEN 76 * + 35 + + 61 * - 2 THEN MIN ( + 4 ) WHEN + 80 THEN NULL WHEN - COUNT ( * ) THEN + 97 / 97 END - + 28 * CASE COUNT ( * ) * 14 WHEN 28 * 99 THEN NULL WHEN + 85 * + 21 + + COUNT ( * ) * + ( + 72 ) THEN - 81 END
----
NULL

query I rowsort
SELECT + 50 * - 66
----
-3300

query I rowsort
SELECT ALL - 84 * 27 - - 97 AS col2
----
-2171

query I rowsort
SELECT + 27 - - 27 AS col1
----
54

query I rowsort
SELECT + 85 * + 71
----
6035

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

skipif mysql # not compatible
query I rowsort label-1616
SELECT + 3 / - 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1617
SELECT ALL + 22 DIV + 80 col2
----
0

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL + 22 / + 80 col2
----
0

query I rowsort
SELECT NULLIF ( 32, - 97 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1619
SELECT ALL + COALESCE ( 15, MIN( 41 ) + + 95 * - 52, 88 * ( - 23 ) + MAX( 42 ) ) * - AVG ( ALL 51 ) - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL + COALESCE ( 15, MIN ( 41 ) + + 95 * - 52, 88 * ( - 23 ) + MAX ( 42 ) ) * - AVG ( ALL 51 ) - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT COALESCE ( - + 38, - 83 + 94 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT - ( - COUNT( * ) ) * + - COUNT( * ) + + 0 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1621
SELECT - ( - COUNT ( * ) ) * + - COUNT ( * ) + + 0 AS col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL + 22 / + COUNT ( * ) AS col2
----
22

query II rowsort
SELECT ALL + 4, 23 * 91 AS col2
----
4
2093

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT 31 * - 35 + ( COUNT( * ) )
----
-1084

skipif mysql # not compatible
query I rowsort label-1624
SELECT 31 * - 35 + ( COUNT ( * ) )
----
-1084

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL + 4 * + + CASE - + 72 WHEN - COUNT( * ) THEN 8 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL + 4 * + + CASE - + 72 WHEN - COUNT ( * ) THEN 8 END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + + 43 * 5 + - ( + 49 ) col1
----
166

query I rowsort
SELECT - 85 * 14 * - - 66
----
-78540

query II rowsort
SELECT - 31 AS col1, 82
----
-31
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT ALL - 44 * + COUNT( * ) + 7
----
-37

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL - 44 * + COUNT ( * ) + 7
----
-37

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

skipif mysql # not compatible
query I rowsort label-1631
SELECT - MIN ( - + 17 )
----
17

query I rowsort
SELECT DISTINCT - - 14 * - 13 AS col2
----
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1633
SELECT DISTINCT + CAST( - 78 AS SIGNED ) * + + COUNT( * ) + 93 DIV - 87 + + 0
----
-79

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT + CAST ( - 78 AS INTEGER ) * + + COUNT ( * ) + 93 / - 87 + + 0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT - 56 + ( + 13 ) + COUNT( * ) * - 38
----
-81

skipif mysql # not compatible
query I rowsort label-1634
SELECT - 56 + ( + 13 ) + COUNT ( * ) * - 38
----
-81

query I rowsort
SELECT ALL - + 64 * - - 38 AS col1
----
-2432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1636
SELECT - + CASE - 90 WHEN + - 97 THEN - 15 + + CASE 13 WHEN 75 THEN 26 * + 20 END ELSE - 42 / 43 END * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT - + CASE - 90 WHEN + - 97 THEN - 15 + + CASE 13 WHEN 75 THEN 26 * + 20 END ELSE - 42 / 43 END * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 4 + 72 AS col2
----
76

query I rowsort
SELECT DISTINCT + + 88 + + 56 + - 15 AS col1
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT - + 29 + + - 68 DIV - 18
----
-26

skipif mysql # not compatible
query I rowsort label-1639
SELECT - + 29 + + - 68 / - 18
----
-26

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

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

query I rowsort
SELECT - 31 * + 70
----
-2170

query I rowsort
SELECT + 1 * 62 * 86
----
5332

query I rowsort
SELECT ALL - 52 + + 27 * + 43 AS col1
----
1109

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT SUM( + + 42 ) * 34 * - 8 col0
----
-11424

skipif mysql # not compatible
query I rowsort label-1644
SELECT SUM ( + + 42 ) * 34 * - 8 col0
----
-11424

query I rowsort
SELECT DISTINCT + - 46 + - 69 * - 60 + 47
----
4141

query I rowsort
SELECT DISTINCT 16 + - 74
----
-58

query I rowsort
SELECT DISTINCT - 60 + - 83 AS col2
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1648
SELECT ALL CAST( + + ( + 77 ) AS SIGNED ) + - 35
----
42

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL CAST ( + + ( + 77 ) AS INTEGER ) + - 35
----
42

query I rowsort
SELECT DISTINCT + ( - + 58 ) * - + 41
----
2378

query I rowsort
SELECT 62 * - 64 + - ( ( - 44 ) ) + - 16
----
-3940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1651
SELECT 41 - - 94, + COUNT( * ) * CAST( NULL AS SIGNED ) * 14 AS col2
----
135
NULL

skipif mysql # not compatible
query II rowsort label-1651
SELECT 41 - - 94, + COUNT ( * ) * CAST ( NULL AS INTEGER ) * 14 AS col2
----
135
NULL

query I rowsort
SELECT ( - ( - 35 ) ) * ( - 6 )
----
-210

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT 26 DIV + 61 * 59 DIV - + 27 + + ( + 23 ) * - 82 AS col2
----
-1886

skipif mysql # not compatible
query I rowsort label-1654
SELECT 26 / + 61 * 59 / - + 27 + + ( + 23 ) * - 82 AS col2
----
-1886

query I rowsort
SELECT ( - 52 ) * 64
----
-3328

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT ALL 97 * + + COUNT( DISTINCT - + 33 )
----
97

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL 97 * + + COUNT ( DISTINCT - + 33 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ( + - SUM( 36 ) ) + - 29 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1657
SELECT ( + - SUM ( 36 ) ) + - 29 AS col2
----
-65

query I rowsort
SELECT ALL 9 - - 83 AS col1
----
92

query I rowsort
SELECT ALL 74 * 39 AS col1
----
2886

query I rowsort
SELECT ALL 91 - + - 95 + 41
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT CASE COUNT( * ) WHEN 0 THEN NULL WHEN - 19 * 93 THEN NULL WHEN + 33 / + 91 THEN - 41 ELSE + 19 END * 10
----
190

skipif mysql # not compatible
query I rowsort label-1661
SELECT CASE COUNT ( * ) WHEN 0 THEN NULL WHEN - 19 * 93 THEN NULL WHEN + 33 / + 91 THEN - 41 ELSE + 19 END * 10
----
190

query I rowsort
SELECT ( + 42 ) + - ( + COALESCE ( 38, 56 ) ) + 4 * 1 AS col0
----
8

query I rowsort
SELECT DISTINCT 73 * ( + 0 )
----
0

query I rowsort
SELECT + 32 * - 47 + 39 * - 95 * - 28
----
102236

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

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

query I rowsort
SELECT ALL - 99 + - 52
----
-151

query I rowsort
SELECT 4 * + 18 * - 42 AS col2
----
-3024

query I rowsort
SELECT ALL - 13 + + + 28 + 68 * 57
----
3891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1669
SELECT ALL + CAST( NULL AS SIGNED ) / + 49 * 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + CAST ( NULL AS INTEGER ) / + 49 * 56 AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 66, + - 96 + - ( 40 ) + - 94 ) + - 22
----
-88

query I rowsort
SELECT 37 - 63 AS col0
----
-26

query I rowsort
SELECT 84 * + 86
----
7224

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1673
SELECT + CASE + 15 WHEN + 54 - + + COALESCE ( + 16, + 49 / COUNT( 46 ), - 87 + 76 ) THEN - 56 ELSE CASE ( + COALESCE ( + SUM( + 84 ), + ( CAST( NULL AS DECIMAL ) ) ) ) WHEN COUNT( * ) THEN NULL WHEN + 15 THEN NULLIF ( - 80, - 25 * 35 ) ELSE NULL END END / + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT + CASE + 15 WHEN + 54 - + + COALESCE ( + 16, + 49 / COUNT ( 46 ), - 87 + 76 ) THEN - 56 ELSE CASE ( + COALESCE ( + SUM ( + 84 ), + ( CAST ( NULL AS REAL ) ) ) ) WHEN COUNT ( * ) THEN NULL WHEN + 15 THEN NULLIF ( - 80, - 25 * 35 ) ELSE NULL END END / + 22
----
NULL

query I rowsort
SELECT DISTINCT 21 + 54 + - 66 col1
----
9

query I rowsort
SELECT ALL - 11 * 66 col2
----
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT CASE - 98 WHEN + - 13 * + - 57 THEN 68 + COUNT( ALL + 72 ) / 69 END + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT CASE - 98 WHEN + - 13 * + - 57 THEN 68 + COUNT ( ALL + 72 ) / 69 END + - 18
----
NULL

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

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

query I rowsort
SELECT NULLIF ( + 10, + NULLIF ( + 3, - 93 + - 67 * - 59 ) + + 39 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT COUNT( * ) * 49 + + 55 * 81
----
4504

skipif mysql # not compatible
query I rowsort label-1679
SELECT COUNT ( * ) * 49 + + 55 * 81
----
4504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1680
SELECT COUNT( * ) + + 54 * 60 DIV - + SUM( DISTINCT - 88 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-1680
SELECT COUNT ( * ) + + 54 * 60 / - + SUM ( DISTINCT - 88 ) AS col1
----
37

query I rowsort
SELECT DISTINCT + CASE WHEN - 14 > + 39 * 95 * - 30 THEN 6 ELSE 73 END - - 6 * - 90
----
-534

query I rowsort
SELECT 50 + - + ( + - CASE - - 75 WHEN - + 93 * 90 THEN NULL ELSE 53 END )
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1683
SELECT ALL - SUM( + 50 ) - + 67 DIV + 52 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL - SUM ( + 50 ) - + 67 / + 52 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL COUNT( + ( - - 79 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL COUNT ( + ( - - 79 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT 24 * - 25 * - COUNT( * ) AS col0
----
600

skipif mysql # not compatible
query I rowsort label-1685
SELECT 24 * - 25 * - COUNT ( * ) AS col0
----
600

query I rowsort
SELECT CASE + 62 WHEN + + 69 * - 64 - - + 96 THEN ( 48 ) * 94 END + 60 col0
----
NULL

query I rowsort
SELECT DISTINCT + 21 * 62 AS col0
----
1302

onlyif mysql # DIV for integer division: 
query I rowsort label-1688
SELECT ALL + COALESCE ( + 17, + + 28, 23, 40 ) DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL + COALESCE ( + 17, + + 28, 23, 40 ) / 84 AS col2
----
0

query I rowsort
SELECT DISTINCT - 22 * 4
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1690
SELECT ALL - CASE + ( - - COUNT( * ) ) WHEN + 93 + 31 THEN + 22 + 23 * + 60 WHEN - 26 THEN NULL ELSE + 54 * CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL - CASE + ( - - COUNT ( * ) ) WHEN + 93 + 31 THEN + 22 + 23 * + 60 WHEN - 26 THEN NULL ELSE + 54 * CAST ( NULL AS INTEGER ) END col2
----
NULL

query I rowsort
SELECT - 29 * - 92 - 76
----
2592

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

skipif mysql # not compatible
query I rowsort label-1692
SELECT 69 / ( COUNT ( * ) )
----
69

query I rowsort
SELECT 40 * + 31 AS col1
----
1240

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT 94 * - 17 * + + COUNT( * ) * + 33
----
-52734

skipif mysql # not compatible
query I rowsort label-1694
SELECT 94 * - 17 * + + COUNT ( * ) * + 33
----
-52734

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT DISTINCT 25 DIV - - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT 25 / - - 37 AS col1
----
0

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

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

query I rowsort
SELECT DISTINCT + 95 + ( - + 55 ) AS col0
----
40

query I rowsort
SELECT 19 * - 35 col1
----
-665

query I rowsort
SELECT ALL 8 + + 21 * + + 72 AS col0
----
1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1701
SELECT ALL 21 + + 8 + + CAST( + COUNT( * ) AS SIGNED ) + + + COUNT( * ) + CAST( 77 AS SIGNED )
----
108

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL 21 + + 8 + + CAST ( + COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) + CAST ( 77 AS INTEGER )
----
108

query I rowsort
SELECT 98 + 26 - + 78
----
46

query I rowsort
SELECT 42 * - - 77
----
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL + COUNT( * ) + + 60 * 8
----
481

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL + COUNT ( * ) + + 60 * 8
----
481

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

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

query I rowsort
SELECT DISTINCT 92 + - 60 * - 83
----
5072

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

skipif mysql # not compatible
query I rowsort label-1707
SELECT + + 46 + + + COUNT ( * ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1708
SELECT DISTINCT - + 46 * 15 DIV + 57 + - 36 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT - + 46 * 15 / + 57 + - 36 AS col0
----
-48

query I rowsort
SELECT + + 44 + + 2 + 63
----
109

query I rowsort
SELECT + 7 * - + ( - ( + 10 ) ) * - 6
----
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-1711
SELECT - + 31, - 66 + + MAX( DISTINCT - - 74 ) col1
----
-31
8

skipif mysql # not compatible
query II rowsort label-1711
SELECT - + 31, - 66 + + MAX ( DISTINCT - - 74 ) col1
----
-31
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1712
SELECT + 21 * 57 * - + CASE MAX( ALL 55 ) WHEN 0 THEN NULLIF ( - 16, 33 ) * 44 - + CASE + SUM( DISTINCT 50 ) WHEN 8 - + COUNT( * ) THEN 46 * + 35 END WHEN + CAST( + 83 AS SIGNED ) / - 65 THEN NULL ELSE 28 END AS col1
----
-33516

skipif mysql # not compatible
query I rowsort label-1712
SELECT + 21 * 57 * - + CASE MAX ( ALL 55 ) WHEN 0 THEN NULLIF ( - 16, 33 ) * 44 - + CASE + SUM ( DISTINCT 50 ) WHEN 8 - + COUNT ( * ) THEN 46 * + 35 END WHEN + CAST ( + 83 AS INTEGER ) / - 65 THEN NULL ELSE 28 END AS col1
----
-33516

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT - 98 + - COUNT( * ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-1714
SELECT - 98 + - COUNT ( * ) AS col2
----
-99

query I rowsort
SELECT ALL - 7 * - 85
----
595

query I rowsort
SELECT + 10 * + 3
----
30

query I rowsort
SELECT - 16 * 93 AS col2
----
-1488

query I rowsort
SELECT ALL - 98 * COALESCE ( + - 72, - 61, 54 + - 23 )
----
7056

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT 33 * + MAX( 41 )
----
1353

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT 33 * + MAX ( 41 )
----
1353

query I rowsort
SELECT ALL + 35 * COALESCE ( + + 57, + + 25 )
----
1995

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

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

query II rowsort
SELECT - 38, - 39 col2
----
-38
-39

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1725
SELECT ALL NULLIF ( 59, + 39 DIV - 75 ) col0, 7 + - COUNT( * ) DIV 69 AS col2
----
59
7

skipif mysql # not compatible
query II rowsort label-1725
SELECT ALL NULLIF ( 59, + 39 / - 75 ) col0, 7 + - COUNT ( * ) / 69 AS col2
----
59
7

query I rowsort
SELECT - ( + + 2 ) * - 46 + + + 94
----
186

query I rowsort
SELECT ALL + ( - + 82 ) * - - 17 * 45 * - 19 + - 21 AS col2
----
1191849

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1728
SELECT - ( CASE + 5 WHEN + - SUM( ALL + - 26 ) THEN NULL WHEN 72 THEN ( CAST( NULL AS DECIMAL ) ) * ( 21 + NULLIF ( 81, + 74 ) ) - COUNT( * ) END ) - - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT - ( CASE + 5 WHEN + - SUM ( ALL + - 26 ) THEN NULL WHEN 72 THEN ( CAST ( NULL AS REAL ) ) * ( 21 + NULLIF ( 81, + 74 ) ) - COUNT ( * ) END ) - - 63 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1729
SELECT - 62 * - + 8 + + - 17 - ( - CAST( - - ( - COUNT( * ) ) AS SIGNED ) ) AS col1
----
478

skipif mysql # not compatible
query I rowsort label-1729
SELECT - 62 * - + 8 + + - 17 - ( - CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) ) AS col1
----
478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1730
SELECT 72 DIV - + COALESCE ( + SUM( - 69 ), 35 * 79 * - 91 + + 35 * + 42, 58 * 14 ) + 56 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1730
SELECT 72 / - + COALESCE ( + SUM ( - 69 ), 35 * 79 * - 91 + + 35 * + 42, 58 * 14 ) + 56 AS col0
----
57

query I rowsort
SELECT - 26 * 44
----
-1144

onlyif mysql # DIV for integer division: 
query I rowsort label-1732
SELECT ALL + COALESCE ( COALESCE ( 69, - + 62 + 13 * 74 DIV - 17, ( 81 ) + + 15 ), + 60 * + 54 )
----
69

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + COALESCE ( COALESCE ( 69, - + 62 + 13 * 74 / - 17, ( 81 ) + + 15 ), + 60 * + 54 )
----
69

query I rowsort
SELECT ( + + CASE - 84 WHEN + 29 THEN 86 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT ALL 99 * COUNT( * ) + - MIN( DISTINCT + 33 ) * + COUNT( + 43 ) * - 83 + 48
----
2886

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL 99 * COUNT ( * ) + - MIN ( DISTINCT + 33 ) * + COUNT ( + 43 ) * - 83 + 48
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT - COUNT( * ) + + 13 + + - MAX( + 37 )
----
-25

skipif mysql # not compatible
query I rowsort label-1735
SELECT - COUNT ( * ) + + 13 + + - MAX ( + 37 )
----
-25

query I rowsort
SELECT ALL ( 5 ) * + + 6 + - - COALESCE ( + - ( 7 ), 10 ) * 76 AS col2
----
-502

query I rowsort
SELECT - 90 + + - 23 + + - 71
----
-184

query I rowsort
SELECT ALL - 64 * 4
----
-256

query I rowsort
SELECT ALL + 44 * 60 + 85
----
2725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT + 65 DIV - + 90 + COUNT( DISTINCT - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-1740
SELECT + 65 / - + 90 + COUNT ( DISTINCT - 16 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1741
SELECT + + COUNT( * ) + + + 38 * 15 + + COALESCE ( - 81, + 86 * + CASE + 57 - 96 WHEN 33 + 4 THEN + CASE 62 WHEN + 79 THEN + 61 ELSE 12 + - AVG ( - 99 ) * - CASE 52 * - 27 WHEN CAST( + 87 AS SIGNED ) THEN - 14 / + 50 WHEN NULLIF ( 4, COUNT( * ) + COUNT( * ) ) THEN - COUNT( * ) END END END, + 46 ) + + CASE 96 WHEN + 61 THEN 77 - - 88 * - 1 WHEN - COUNT( * ) THEN MAX( ALL - 14 ) END / - 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT + + COUNT ( * ) + + + 38 * 15 + + COALESCE ( - 81, + 86 * + CASE + 57 - 96 WHEN 33 + 4 THEN + CASE 62 WHEN + 79 THEN + 61 ELSE 12 + - AVG ( - 99 ) * - CASE 52 * - 27 WHEN CAST ( + 87 AS INTEGER ) THEN - 14 / + 50 WHEN NULLIF ( 4, COUNT ( * ) + COUNT ( * ) ) THEN - COUNT ( * ) END END END, + 46 ) + + CASE 96 WHEN + 61 THEN 77 - - 88 * - 1 WHEN - COUNT ( * ) THEN MAX ( ALL - 14 ) END / - 0 col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 20, - + COALESCE ( + AVG ( ALL - 15 ), - + 11 ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT + - 36 + - 22 - + COUNT( * ) * 95 * + + 93 col0
----
-8893

skipif mysql # not compatible
query I rowsort label-1743
SELECT + - 36 + - 22 - + COUNT ( * ) * 95 * + + 93 col0
----
-8893

query I rowsort
SELECT - 98 * 35
----
-3430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1745
SELECT ALL + COUNT( * ) * + 60 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - 24 - + 8 * 34 * + 89 - ( - CAST( - 72 AS SIGNED ) + - ( - 59 ) ) * 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL + COUNT ( * ) * + 60 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 24 - + 8 * 34 * + 89 - ( - CAST ( - 72 AS INTEGER ) + - ( - 59 ) ) * 55 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1746
SELECT 10 AS col1, + 76 DIV + - 44
----
10
-1

skipif mysql # not compatible
query II rowsort label-1746
SELECT 10 AS col1, + 76 / + - 44
----
10
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1747
SELECT ALL + 87 AS col2, COUNT( * ) * 20
----
87
20

skipif mysql # not compatible
query II rowsort label-1747
SELECT ALL + 87 AS col2, COUNT ( * ) * 20
----
87
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT ALL 55 DIV + 97 - - 13
----
13

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL 55 / + 97 - - 13
----
13

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

skipif mysql # not compatible
query I rowsort label-1749
SELECT + 25 / + COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL SUM( ALL ( 7 ) ) * - 18
----
-126

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL SUM ( ALL ( 7 ) ) * - 18
----
-126

query I rowsort
SELECT + + 59 * 64
----
3776

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1752
SELECT ALL 78 * + - COUNT( * ) * - CAST( NULL AS DECIMAL ) / - AVG ( ALL - - 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL 78 * + - COUNT ( * ) * - CAST ( NULL AS REAL ) / - AVG ( ALL - - 28 ) AS col2
----
NULL

query I rowsort
SELECT + - 23 * - + 55
----
1265

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT + MAX( - 55 ) * 45 col1
----
-2475

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT + MAX ( - 55 ) * 45 col1
----
-2475

onlyif mysql # DIV for integer division: 
query I rowsort label-1755
SELECT + 87 DIV - - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1755
SELECT + 87 / - - 91 AS col0
----
0

query I rowsort
SELECT ALL 92 * + 52
----
4784

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT ALL - 76 DIV 27
----
-2

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL - 76 / 27
----
-2

query I rowsort
SELECT + 68 * + - 12 AS col2
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT + COUNT( * ) + - 48 AS col2
----
-47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1761
SELECT - CAST( 2 AS SIGNED ) + + 85 * - 47 AS col0
----
-3997

skipif mysql # not compatible
query I rowsort label-1761
SELECT - CAST ( 2 AS INTEGER ) + + 85 * - 47 AS col0
----
-3997

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT ALL 15 * + + 85 * + ( COUNT( * ) ) * + + 26
----
33150

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL 15 * + + 85 * + ( COUNT ( * ) ) * + + 26
----
33150

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT + 21 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-1763
SELECT + 21 / 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT - NULLIF ( - SUM( ALL 96 ), MIN( DISTINCT - 81 ) ) + - 98 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1764
SELECT - NULLIF ( - SUM ( ALL 96 ), MIN ( DISTINCT - 81 ) ) + - 98 AS col0
----
-2

query I rowsort
SELECT DISTINCT + 59 + + - 60
----
-1

query I rowsort
SELECT ALL - 4 + + - 2 + + - 84
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1767
SELECT + CASE - 96 WHEN + + 74 * 18 THEN NULL WHEN - 42 THEN + - NULLIF ( - 50, - COALESCE ( CAST( + ( - 92 ) AS SIGNED ), MIN( ALL CAST( + 77 AS SIGNED ) ) ) + 26 ) * COUNT( * ) + 15 * 46 WHEN + 40 * + 66 THEN NULL END / CASE COUNT( * ) + + 15 WHEN + ( - 88 ) THEN NULL WHEN + COUNT( * ) + - 20 * COUNT( * ) THEN - 15 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT + CASE - 96 WHEN + + 74 * 18 THEN NULL WHEN - 42 THEN + - NULLIF ( - 50, - COALESCE ( CAST ( + ( - 92 ) AS INTEGER ), MIN ( ALL CAST ( + 77 AS INTEGER ) ) ) + 26 ) * COUNT ( * ) + 15 * 46 WHEN + 40 * + 66 THEN NULL END / CASE COUNT ( * ) + + 15 WHEN + ( - 88 ) THEN NULL WHEN + COUNT ( * ) + - 20 * COUNT ( * ) THEN - 15 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + 91, - 85 )
----
91

query I rowsort
SELECT DISTINCT 14 * + 12 * 67 AS col1
----
11256

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1770
SELECT ALL 64 DIV + 62 + - + 73 + + + 55 * - 35 AS col0, 99 * COUNT( * )
----
-1997
99

skipif mysql # not compatible
query II rowsort label-1770
SELECT ALL 64 / + 62 + - + 73 + + + 55 * - 35 AS col0, 99 * COUNT ( * )
----
-1997
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL + CASE 1 WHEN - 33 THEN + 2 + + 36 * 64 WHEN - + COUNT( * ) + 48 THEN + 94 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL + CASE 1 WHEN - 33 THEN + 2 + + 36 * 64 WHEN - + COUNT ( * ) + 48 THEN + 94 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1772
SELECT + 82 DIV - ( + 13 ) - - - 4 + - + COUNT( * ) + - 56 DIV 31 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1772
SELECT + 82 / - ( + 13 ) - - - 4 + - + COUNT ( * ) + - 56 / 31 AS col2
----
-12

query I rowsort
SELECT + - NULLIF ( ( + - 59 ), + 75 ) * - + 75 * - - 91 * 26 AS col2
----
-10469550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT - 29 * + CAST( + 76 AS SIGNED ) AS col1
----
-2204

skipif mysql # not compatible
query I rowsort label-1774
SELECT - 29 * + CAST ( + 76 AS INTEGER ) AS col1
----
-2204

onlyif mysql # aggregate syntax: 
query II rowsort label-1775
SELECT ALL - 85 - 49 col1, - 41 * + 11 * + + COUNT( * )
----
-134
-451

skipif mysql # not compatible
query II rowsort label-1775
SELECT ALL - 85 - 49 col1, - 41 * + 11 * + + COUNT ( * )
----
-134
-451

query I rowsort
SELECT 79 * - 88 * + - 92 - - - 64 - - 22
----
639542

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT MAX( 42 )
----
42

skipif mysql # not compatible
query I rowsort label-1778
SELECT MAX ( 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1779
SELECT ALL - NULLIF ( + - CAST( 39 AS SIGNED ), + 25 ) * + 33 AS col1, 65 * + 32 * - 56 AS col0
----
1287
-116480

skipif mysql # not compatible
query II rowsort label-1779
SELECT ALL - NULLIF ( + - CAST ( 39 AS INTEGER ), + 25 ) * + 33 AS col1, 65 * + 32 * - 56 AS col0
----
1287
-116480

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT COUNT( * ) * - MIN( DISTINCT - 64 ) + 24 - + NULLIF ( + 35, - - 99 ) + 62
----
115

skipif mysql # not compatible
query I rowsort label-1780
SELECT COUNT ( * ) * - MIN ( DISTINCT - 64 ) + 24 - + NULLIF ( + 35, - - 99 ) + 62
----
115

query II rowsort
SELECT 58 * - 39 AS col2, 75
----
-2262
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT - 72 - 32 * + 29 - + SUM( ALL + 52 ) AS col1
----
-1052

skipif mysql # not compatible
query I rowsort label-1782
SELECT - 72 - 32 * + 29 - + SUM ( ALL + 52 ) AS col1
----
-1052

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1785
SELECT DISTINCT 86, AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
86
NULL

skipif mysql # not compatible
query II rowsort label-1785
SELECT DISTINCT 86, AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
86
NULL

query I rowsort
SELECT ALL 39 * + 45 AS col0
----
1755

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT MIN( + 3 ) * + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1787
SELECT MIN ( + 3 ) * + COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ( 4 ) + + 96 * + CASE - - COUNT( * ) WHEN 64 THEN + 45 END + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT ( 4 ) + + 96 * + CASE - - COUNT ( * ) WHEN 64 THEN + 45 END + + 75
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1789
SELECT DISTINCT 74 + - 58 DIV - + MIN( + 69 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT 74 + - 58 / - + MIN ( + 69 ) AS col2
----
74

query I rowsort
SELECT ALL 32 + + 44 + + 9 AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1791
SELECT 53, 58 + + + 15 * - SUM( - 84 ) AS col0
----
53
1318

skipif mysql # not compatible
query II rowsort label-1791
SELECT 53, 58 + + + 15 * - SUM ( - 84 ) AS col0
----
53
1318

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1792
SELECT ALL 9 + + 4 * + 74 + - CAST( NULL AS DECIMAL ) + + AVG ( ALL + 69 ) + - SUM( DISTINCT ( - NULLIF ( 12, 51 * - 57 ) ) ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL 9 + + 4 * + 74 + - CAST ( NULL AS REAL ) + + AVG ( ALL + 69 ) + - SUM ( DISTINCT ( - NULLIF ( 12, 51 * - 57 ) ) ) + - 20
----
NULL

query I rowsort
SELECT DISTINCT + 91 + - + 26 AS col2
----
65

query I rowsort
SELECT DISTINCT 20 + - NULLIF ( - + 60, - 76 + - 44 ) col0
----
80

query I rowsort
SELECT DISTINCT 31 + - 60 + + ( - - 22 ) + CASE + + 1 WHEN - 3 THEN 37 * - 7 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT 65 + + 13 * + - ( - + COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-1796
SELECT 65 + + 13 * + - ( - + COUNT ( * ) )
----
78

query I rowsort
SELECT 0 - + 94
----
-94

query I rowsort
SELECT ( - ( + 13 ) ) * - 10
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1799
SELECT ALL 25 DIV + NULLIF ( - + 32, - ( + ( 6 ) ) + ( + COALESCE ( 82, 16, COUNT( * ) * + ( COALESCE ( + 72, - 93 ) * - 12 ) ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL 25 / + NULLIF ( - + 32, - ( + ( 6 ) ) + ( + COALESCE ( 82, 16, COUNT ( * ) * + ( COALESCE ( + 72, - 93 ) * - 12 ) ) ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1800
SELECT ALL 97 - - 99 DIV + 16 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL 97 - - 99 / + 16 AS col2
----
103

query II rowsort
SELECT + 40, 70 AS col1
----
40
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT DISTINCT - MAX( DISTINCT 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - MAX ( DISTINCT 3 ) AS col2
----
-3

query I rowsort
SELECT DISTINCT 59 * - + 66
----
-3894

query I rowsort
SELECT ALL - ( 22 ) col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT - - 25 * 68 - - COUNT( * ) + - 59 AS col1
----
1642

skipif mysql # not compatible
query I rowsort label-1805
SELECT - - 25 * 68 - - COUNT ( * ) + - 59 AS col1
----
1642

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL - 53 * + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - 53 * + COUNT ( * )
----
-53

query I rowsort
SELECT DISTINCT - 95 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT - COUNT( * ) * + + ( - 94 ) + - - 16
----
110

skipif mysql # not compatible
query I rowsort label-1808
SELECT - COUNT ( * ) * + + ( - 94 ) + - - 16
----
110

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT 96 + + + COUNT( * ) + - - SUM( + COALESCE ( - 71, - 18, - CAST( + 99 AS SIGNED ) ) ) + COUNT( * ) * CASE + 68 WHEN - 98 THEN + 51 * ( + 47 ) - + COUNT( * ) WHEN + 16 / + 12 + 64 / + COUNT( * ) THEN + COUNT( * ) + + 98 * - 86 WHEN - COUNT( * ) THEN + 66 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT 96 + + + COUNT ( * ) + - - SUM ( + COALESCE ( - 71, - 18, - CAST ( + 99 AS INTEGER ) ) ) + COUNT ( * ) * CASE + 68 WHEN - 98 THEN + 51 * ( + 47 ) - + COUNT ( * ) WHEN + 16 / + 12 + 64 / + COUNT ( * ) THEN + COUNT ( * ) + + 98 * - 86 WHEN - COUNT ( * ) THEN + 66 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL - MAX( 10 ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - MAX ( 10 ) col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1812
SELECT + CASE - COALESCE ( - COALESCE ( - COUNT( * ), + 5 ), - ( 43 ) + + - 79 + + COALESCE ( 98 - ( 70 + - 71 ), + COALESCE ( 78, + 35 ) * COUNT( * ) + ( + CAST( COUNT( ALL - 99 ) AS SIGNED ) ), 62 ) * 70 ) WHEN - 8 * + MIN( 87 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1812
SELECT + CASE - COALESCE ( - COALESCE ( - COUNT ( * ), + 5 ), - ( 43 ) + + - 79 + + COALESCE ( 98 - ( 70 + - 71 ), + COALESCE ( 78, + 35 ) * COUNT ( * ) + ( + CAST ( COUNT ( ALL - 99 ) AS INTEGER ) ), 62 ) * 70 ) WHEN - 8 * + MIN ( 87 ) THEN COUNT ( * ) END
----
NULL

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

query I rowsort
SELECT ALL + 46 * 60 * + 76 + + 96 * - 3
----
209472

query I rowsort
SELECT 53 * 29
----
1537

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

query II rowsort
SELECT DISTINCT + 94 * + 67 AS col2, - 98 - + + 65 AS col1
----
6298
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT 34 - COUNT( ALL 76 )
----
33

skipif mysql # not compatible
query I rowsort label-1818
SELECT 34 - COUNT ( ALL 76 )
----
33

query I rowsort
SELECT ALL + 76 * 23
----
1748

onlyif mysql # DIV for integer division: 
query I rowsort label-1820
SELECT 40 DIV + 22 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1820
SELECT 40 / + 22 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT + 57 * + 56 + CASE + 86 WHEN NULLIF ( 82, + 36 * 97 * 14 + COUNT( * ) / - NULLIF ( - 8 * 33, - COUNT( * ) + 25 ) ) THEN 81 ELSE 47 * COUNT( * ) END + 63 col0
----
3302

skipif mysql # not compatible
query I rowsort label-1821
SELECT + 57 * + 56 + CASE + 86 WHEN NULLIF ( 82, + 36 * 97 * 14 + COUNT ( * ) / - NULLIF ( - 8 * 33, - COUNT ( * ) + 25 ) ) THEN 81 ELSE 47 * COUNT ( * ) END + 63 col0
----
3302

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

query I rowsort
SELECT ALL - 4 + + 96
----
92

query I rowsort
SELECT ALL + 50 + + 87 col1
----
137

query I rowsort
SELECT ALL + 77 * + 78 AS col2
----
6006

query I rowsort
SELECT 65 + + 39 AS col1
----
104

query I rowsort
SELECT ALL + 5 + + 67 AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT DISTINCT - 32 DIV - + 70
----
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT - 32 / - + 70
----
0

query I rowsort
SELECT 65 * - - ( - 9 ) AS col1
----
-585

query I rowsort
SELECT 68 + 72 - - ( - + 94 ) AS col0
----
46

query I rowsort
SELECT ALL NULLIF ( - ( 20 ), + CASE - 77 WHEN 66 + - - 46 THEN - 83 ELSE NULL END )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT DISTINCT + COUNT( 27 ) * + - 60 + - COUNT( * ) * + 54
----
-114

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT + COUNT ( 27 ) * + - 60 + - COUNT ( * ) * + 54
----
-114

query I rowsort
SELECT + 96 * - + 65
----
-6240

query I rowsort
SELECT + 13 + 87 * - COALESCE ( + - 12, - 39 * - - 53 )
----
1057

query I rowsort
SELECT DISTINCT + 69 * - 45
----
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT + + CASE - COUNT( * ) WHEN + + COUNT( * ) / + 99 THEN - 47 ELSE NULL END * + 22 + COUNT( * ) + 63 * 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT + + CASE - COUNT ( * ) WHEN + + COUNT ( * ) / + 99 THEN - 47 ELSE NULL END * + 22 + COUNT ( * ) + 63 * 28 col1
----
NULL

query I rowsort
SELECT ALL + 57 * 20 AS col0
----
1140

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

query II rowsort
SELECT - + 18 * - 54 AS col1, - ( 1 )
----
972
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1840
SELECT + - 50 DIV - 31 - 59 - 90 * 88 * + + COUNT( * ) + 52 AS col0
----
-7926

skipif mysql # not compatible
query I rowsort label-1840
SELECT + - 50 / - 31 - 59 - 90 * 88 * + + COUNT ( * ) + 52 AS col0
----
-7926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1841
SELECT ALL + - CASE + 25 WHEN - + 1 THEN + CASE - COALESCE ( + 97, - + 56 * - 5 + - + CAST( COUNT( * ) AS SIGNED ) + - 85, + 20 * 10 + 63 * CASE 20 WHEN + 74 / 32 THEN 57 + + 32 WHEN + 40 THEN 84 * 44 ELSE NULL END ) WHEN + 95 * - ( - 86 ) THEN 99 * + 32 END WHEN 76 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL + - CASE + 25 WHEN - + 1 THEN + CASE - COALESCE ( + 97, - + 56 * - 5 + - + CAST ( COUNT ( * ) AS INTEGER ) + - 85, + 20 * 10 + 63 * CASE 20 WHEN + 74 / 32 THEN 57 + + 32 WHEN + 40 THEN 84 * 44 ELSE NULL END ) WHEN + 95 * - ( - 86 ) THEN 99 * + 32 END WHEN 76 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT + 58 + NULLIF ( - MAX( + 92 ), - 75 )
----
-34

skipif mysql # not compatible
query I rowsort label-1842
SELECT + 58 + NULLIF ( - MAX ( + 92 ), - 75 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT + 71 * + 69, 55 * + COUNT( DISTINCT CASE + 90 WHEN 63 + - 33 THEN + 10 / + ( - 32 * 61 ) + - 84 * 4 END ) * ( - CASE - 3 WHEN 37 + COALESCE ( + 33, + 14 ) * 26 THEN 24 * - 81 WHEN - 78 / + COUNT( * ) + + 72 * + ( - 17 ) THEN NULL WHEN + AVG ( + 32 ) THEN - 62 * + ( + 39 ) END ) + 75 AS col2
----
4899
NULL

skipif mysql # not compatible
query II rowsort label-1843
SELECT + 71 * + 69, 55 * + COUNT ( DISTINCT CASE + 90 WHEN 63 + - 33 THEN + 10 / + ( - 32 * 61 ) + - 84 * 4 END ) * ( - CASE - 3 WHEN 37 + COALESCE ( + 33, + 14 ) * 26 THEN 24 * - 81 WHEN - 78 / + COUNT ( * ) + + 72 * + ( - 17 ) THEN NULL WHEN + AVG ( + 32 ) THEN - 62 * + ( + 39 ) END ) + 75 AS col2
----
4899
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1844
SELECT + - 47 * + COUNT( * ) AS col1, 2 + + 21
----
-47
23

skipif mysql # not compatible
query II rowsort label-1844
SELECT + - 47 * + COUNT ( * ) AS col1, 2 + + 21
----
-47
23

query I rowsort
SELECT ALL - 41 * - + 58 AS col1
----
2378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1846
SELECT ALL + 30 DIV - 71 - - + ( - 58 ) - + + COUNT( * ) DIV + 17
----
-58

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL + 30 / - 71 - - + ( - 58 ) - + + COUNT ( * ) / + 17
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT - ( - 34 ) * - COUNT( * ) - + - 80 - - 73 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-1847
SELECT - ( - 34 ) * - COUNT ( * ) - + - 80 - - 73 AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL 33 * + NULLIF ( - - COUNT( ALL 67 ), MIN( ALL - - 87 ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL 33 * + NULLIF ( - - COUNT ( ALL 67 ), MIN ( ALL - - 87 ) ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT + 87 DIV 50 - + + 24 - 31
----
-54

skipif mysql # not compatible
query I rowsort label-1849
SELECT + 87 / 50 - + + 24 - 31
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1850
SELECT ALL 77 * + + ( - AVG ( DISTINCT - 48 ) ) * 82 * 33 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL 77 * + + ( - AVG ( DISTINCT - 48 ) ) * 82 * 33 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1851
SELECT + 16 / + ( + 87 ) * 78 + ( - 41 ) / SUM( + CAST( NULL AS SIGNED ) ) * 74 - 32 / 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT + 16 / + ( + 87 ) * 78 + ( - 41 ) / SUM ( + CAST ( NULL AS INTEGER ) ) * 74 - 32 / 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT DISTINCT COUNT( * ) * - - 25 + - - 40 + + + COUNT( 78 ) + 29 + + + 81 + + - 89
----
87

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT COUNT ( * ) * - - 25 + - - 40 + + + COUNT ( 78 ) + 29 + + + 81 + + - 89
----
87

query I rowsort
SELECT + 60 + COALESCE ( + 12, ( 32 ), - 48 ) + 34
----
106

onlyif mysql # DIV for integer division: 
query II rowsort label-1854
SELECT ALL + + 55 * + 90 + - + 88 DIV + 61 col2, 99 AS col2
----
4949
99

skipif mysql # not compatible
query II rowsort label-1854
SELECT ALL + + 55 * + 90 + - + 88 / + 61 col2, 99 AS col2
----
4949
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT + NULLIF ( - + COUNT( * ), 74 * - MIN( - - 96 ) + + 25 - + 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-1855
SELECT + NULLIF ( - + COUNT ( * ), 74 * - MIN ( - - 96 ) + + 25 - + 25 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1856
SELECT + COUNT( * ) + CASE - 48 WHEN - - 3 * 85 THEN + 92 * + CASE MAX( - 59 ) WHEN 2 THEN - 30 WHEN CAST( NULL AS SIGNED ) * 17 THEN 48 WHEN COALESCE ( 1, 44 * - 92 ) THEN 56 * - 56 ELSE 26 + 98 END + + 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT + COUNT ( * ) + CASE - 48 WHEN - - 3 * 85 THEN + 92 * + CASE MAX ( - 59 ) WHEN 2 THEN - 30 WHEN CAST ( NULL AS INTEGER ) * 17 THEN 48 WHEN COALESCE ( 1, 44 * - 92 ) THEN 56 * - 56 ELSE 26 + 98 END + + 86 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT + 53 * 16 * + ( + COUNT( * ) ) - - MIN( ALL + 67 ) + + 49 + - - 67 + 41 + - 66 * 18 col1
----
-116

skipif mysql # not compatible
query I rowsort label-1857
SELECT + 53 * 16 * + ( + COUNT ( * ) ) - - MIN ( ALL + 67 ) + + 49 + - - 67 + 41 + - 66 * 18 col1
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1858
SELECT + 81 AS col2, - COUNT( ALL + 26 ) + - + 37 DIV - 52 + + + 91 DIV - 97 + - COALESCE ( ( + 58 ), - 29 + 10, 20 ) + + COUNT( * ) col0
----
81
-58

skipif mysql # not compatible
query II rowsort label-1858
SELECT + 81 AS col2, - COUNT ( ALL + 26 ) + - + 37 / - 52 + + + 91 / - 97 + - COALESCE ( ( + 58 ), - 29 + 10, 20 ) + + COUNT ( * ) col0
----
81
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT - MIN( DISTINCT - + 43 ) - + 90 + - - 36 * + 54 * - 43 AS col0
----
-83639

skipif mysql # not compatible
query I rowsort label-1859
SELECT - MIN ( DISTINCT - + 43 ) - + 90 + - - 36 * + 54 * - 43 AS col0
----
-83639

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL + COUNT( * ) * 17 * + 49
----
833

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL + COUNT ( * ) * 17 * + 49
----
833

onlyif mysql # aggregate syntax: 
query II rowsort label-1862
SELECT - 92 AS col0, - COUNT( * ) + 87
----
-92
86

skipif mysql # not compatible
query II rowsort label-1862
SELECT - 92 AS col0, - COUNT ( * ) + 87
----
-92
86

query I rowsort
SELECT DISTINCT 97 + - 19
----
78

query I rowsort
SELECT DISTINCT + 27 * + + 21 AS col0
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT - CASE - - 74 WHEN + - 63 * 92 * - CASE - 88 WHEN + - 36 * - - 40 THEN + 54 WHEN + 71 THEN NULL WHEN + 65 THEN NULL WHEN CASE + COUNT( * ) WHEN + COUNT( * ) + + 13 THEN NULL WHEN 38 THEN NULL ELSE 46 END + + 24 / + 95 THEN NULL END * + 62 + 79 THEN 45 END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT - CASE - - 74 WHEN + - 63 * 92 * - CASE - 88 WHEN + - 36 * - - 40 THEN + 54 WHEN + 71 THEN NULL WHEN + 65 THEN NULL WHEN CASE + COUNT ( * ) WHEN + COUNT ( * ) + + 13 THEN NULL WHEN 38 THEN NULL ELSE 46 END + + 24 / + 95 THEN NULL END * + 62 + 79 THEN 45 END - COUNT ( * )
----
NULL

query I rowsort
SELECT + 38 * 29
----
1102

query I rowsort
SELECT - 44 * - 90 AS col0
----
3960

query I rowsort
SELECT ALL - 46 * - - 24 AS col2
----
-1104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1869
SELECT 35 AS col0, + COUNT( * ) * NULLIF ( - - COUNT( * ), 60 + + 85 + COUNT( * ) - NULLIF ( - 77, - CASE - 9 WHEN - 52 - 70 THEN NULL ELSE + 75 DIV 6 END + + 92 * + 11 ) * + 49 * CAST( NULL AS SIGNED ) ) DIV - NULLIF ( NULLIF ( 97, NULLIF ( - 11, ( 24 ) * + 52 ) ), + COALESCE ( - 13, 50 ) * + CASE 57 * 94 + + 33 * + 81 WHEN - 80 THEN - 57 + - 82 WHEN 81 THEN COUNT( 12 ) WHEN 88 THEN NULL ELSE NULL END )
----
35
0

skipif mysql # not compatible
query II rowsort label-1869
SELECT 35 AS col0, + COUNT ( * ) * NULLIF ( - - COUNT ( * ), 60 + + 85 + COUNT ( * ) - NULLIF ( - 77, - CASE - 9 WHEN - 52 - 70 THEN NULL ELSE + 75 / 6 END + + 92 * + 11 ) * + 49 * CAST ( NULL AS INTEGER ) ) / - NULLIF ( NULLIF ( 97, NULLIF ( - 11, ( 24 ) * + 52 ) ), + COALESCE ( - 13, 50 ) * + CASE 57 * 94 + + 33 * + 81 WHEN - 80 THEN - 57 + - 82 WHEN 81 THEN COUNT ( 12 ) WHEN 88 THEN NULL ELSE NULL END )
----
35
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1870
SELECT DISTINCT + 74 - + MIN( DISTINCT - ( 23 ) ) DIV 8 + 48 - + + 3 - + COUNT( * ) DIV + 7 + + 97
----
218

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT + 74 - + MIN ( DISTINCT - ( 23 ) ) / 8 + 48 - + + 3 - + COUNT ( * ) / + 7 + + 97
----
218

query I rowsort
SELECT - 8 * + 33
----
-264

query II rowsort
SELECT 16 col0, 64 AS col2
----
16
64

query I rowsort
SELECT ALL + 83 * + 31 AS col0
----
2573

query I rowsort
SELECT - 1 + 91 AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1875
SELECT - 60 DIV + 40 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1875
SELECT - 60 / + 40 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1876
SELECT ALL - 97 DIV - MAX( DISTINCT + 47 ) + + - 22
----
-20

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL - 97 / - MAX ( DISTINCT + 47 ) + + - 22
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT - COUNT( 75 ) + + 96
----
95

skipif mysql # not compatible
query I rowsort label-1877
SELECT - COUNT ( 75 ) + + 96
----
95

query I rowsort
SELECT - 75 + - 5
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-1879
SELECT - - 6 + + MAX( + - 67 ), 44 col2
----
-61
44

skipif mysql # not compatible
query II rowsort label-1879
SELECT - - 6 + + MAX ( + - 67 ), 44 col2
----
-61
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT - 19 DIV ( + - 84 ) DIV - + 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1880
SELECT - 19 / ( + - 84 ) / - + 35 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1881
SELECT - MIN( - CAST( 40 AS SIGNED ) ) DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-1881
SELECT - MIN ( - CAST ( 40 AS INTEGER ) ) / + 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1882
SELECT ALL - - 31 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - - 31 / + 73
----
0

query I rowsort
SELECT - + 31 + - 65
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1884
SELECT + 2 * + - CASE - CAST( 29 AS SIGNED ) WHEN 15 THEN + + 17 + + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT + 2 * + - CASE - CAST ( 29 AS INTEGER ) WHEN 15 THEN + + 17 + + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT + - 51 + 25
----
-26

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

query I rowsort
SELECT + 39 * 23 + - 82 + - 39 col0
----
776

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1889
SELECT ALL + 16 DIV MIN( ALL - 98 ) + - 66 + 9 + + 36
----
-21

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + 16 / MIN ( ALL - 98 ) + - 66 + 9 + + 36
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1890
SELECT DISTINCT - SUM( DISTINCT - 73 ) DIV - COUNT( * ) + 70 DIV 6 * 17, - 63 * - MIN( + 79 ) + - NULLIF ( + 24, 47 + - 61 ) AS col1
----
114
4953

skipif mysql # not compatible
query II rowsort label-1890
SELECT DISTINCT - SUM ( DISTINCT - 73 ) / - COUNT ( * ) + 70 / 6 * 17, - 63 * - MIN ( + 79 ) + - NULLIF ( + 24, 47 + - 61 ) AS col1
----
114
4953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1891
SELECT ALL 55 DIV - 58 + COALESCE ( + NULLIF ( 45, - - 64 + + ( + 79 ) ), - - 33 + 72 - - 30 DIV - 30 ) + 8 * COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL 55 / - 58 + COALESCE ( + NULLIF ( 45, - - 64 + + ( + 79 ) ), - - 33 + 72 - - 30 / - 30 ) + 8 * COUNT ( * ) AS col2
----
53

query I rowsort
SELECT - 59 * - 26 + + + 55 - - CASE + 30 WHEN + - 9 - + 4 THEN + 64 END + + 97 * + 23 + - 9 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1893
SELECT - + COUNT( * ) * - CAST( + - 30 AS SIGNED ) - 71 + 64
----
-37

skipif mysql # not compatible
query I rowsort label-1893
SELECT - + COUNT ( * ) * - CAST ( + - 30 AS INTEGER ) - 71 + 64
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1894
SELECT ALL - + 11 DIV - 2 + + 95 + + + 95
----
195

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL - + 11 / - 2 + + 95 + + + 95
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1895
SELECT + - 8 DIV - - 92 * + COUNT( * ) * + - 59 + + 45 + - 50 + + + 24 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1895
SELECT + - 8 / - - 92 * + COUNT ( * ) * + - 59 + + 45 + - 50 + + + 24 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT + + 74 + - COUNT( DISTINCT - 16 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1896
SELECT + + 74 + - COUNT ( DISTINCT - 16 ) AS col1
----
73

query I rowsort
SELECT + COALESCE ( + 69, - 68 + 19 * - 5 )
----
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT + 86 * + 66 + - 45 + - 83 * - 34 * 28 * COUNT( * ) + - 1
----
84646

skipif mysql # not compatible
query I rowsort label-1899
SELECT + 86 * + 66 + - 45 + - 83 * - 34 * 28 * COUNT ( * ) + - 1
----
84646

query I rowsort
SELECT DISTINCT 51 * 14 AS col0
----
714

query I rowsort
SELECT DISTINCT 61 * - 69 - - 24 AS col0
----
-4185

query I rowsort
SELECT ALL 86 * - ( + + 2 ) * + + ( - + 61 )
----
10492

query I rowsort
SELECT + 92 + 78 + - 92 + + - 89 * - 33
----
3015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT ALL COALESCE ( - COALESCE ( 98, - 43, COUNT( * ) ), - - CAST( 21 AS SIGNED ) + + + 55 ) * + 37 - - - CAST( - 12 AS SIGNED ) AS col0
----
-3614

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL COALESCE ( - COALESCE ( 98, - 43, COUNT ( * ) ), - - CAST ( 21 AS INTEGER ) + + + 55 ) * + 37 - - - CAST ( - 12 AS INTEGER ) AS col0
----
-3614

query I rowsort
SELECT DISTINCT 15 * - ( + 37 )
----
-555

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

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

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

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

query II rowsort
SELECT DISTINCT 63, - 36 AS col1
----
63
-36

query II rowsort
SELECT ALL 67 AS col1, 19
----
67
19

query I rowsort
SELECT + CASE - 72 WHEN + 23 * + + 20 THEN 54 * - 78 END * 21 AS col1
----
NULL

query II rowsort
SELECT - 59 col0, 21 AS col2
----
-59
21

query I rowsort
SELECT + COALESCE ( - 55, - + 45 ) * 50 * - 31 col1
----
85250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1913
SELECT 2 + - - COUNT( * ) DIV + + 61 + - - 91
----
93

skipif mysql # not compatible
query I rowsort label-1913
SELECT 2 + - - COUNT ( * ) / + + 61 + - - 91
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT - 9 + + COUNT( * ) + + + 19 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1914
SELECT - 9 + + COUNT ( * ) + + + 19 AS col2
----
11

query II rowsort
SELECT 40 AS col2, + 49
----
40
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT - - 51 AS col0, ( + 58 ) - + MIN( - 24 ) + + 82
----
51
164

skipif mysql # not compatible
query II rowsort label-1916
SELECT - - 51 AS col0, ( + 58 ) - + MIN ( - 24 ) + + 82
----
51
164

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1918
SELECT ALL + + 15 + + 50 * + CAST( NULL AS SIGNED ) + MAX( ALL + - 10 ) * + 42 AS col2, + COALESCE ( - CASE + 87 WHEN + + 67 THEN + + 99 END, ( - 63 ) * 45 + MIN( 20 ) * + 40 ) + NULLIF ( - 17, ( 52 ) * - 44 )
----
NULL
-2052

skipif mysql # not compatible
query II rowsort label-1918
SELECT ALL + + 15 + + 50 * + CAST ( NULL AS INTEGER ) + MAX ( ALL + - 10 ) * + 42 AS col2, + COALESCE ( - CASE + 87 WHEN + + 67 THEN + + 99 END, ( - 63 ) * 45 + MIN ( 20 ) * + 40 ) + NULLIF ( - 17, ( 52 ) * - 44 )
----
NULL
-2052

query I rowsort
SELECT DISTINCT + + 53 + - 12 + 22 * 67
----
1515

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1921
SELECT - - 19 * NULLIF ( 19, + 49 + - SUM( DISTINCT 88 ) + ( + 29 ) * - CAST( + SUM( DISTINCT 99 ) AS SIGNED ) * MAX( ALL 96 * 84 ) - 67 / 90 ) - - NULLIF ( - 52 + 34, 59 )
----
343

skipif mysql # not compatible
query I rowsort label-1921
SELECT - - 19 * NULLIF ( 19, + 49 + - SUM ( DISTINCT 88 ) + ( + 29 ) * - CAST ( + SUM ( DISTINCT 99 ) AS INTEGER ) * MAX ( ALL 96 * 84 ) - 67 / 90 ) - - NULLIF ( - 52 + 34, 59 )
----
343

query II rowsort
SELECT - 72 col0, 25 AS col0
----
-72
25

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

query I rowsort
SELECT DISTINCT 10 * 71 col1
----
710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1925
SELECT 78 - - ( - COALESCE ( + - 85, + 85 ) ) * CAST( NULL AS SIGNED ) / - 9 / + 33 * - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1925
SELECT 78 - - ( - COALESCE ( + - 85, + 85 ) ) * CAST ( NULL AS INTEGER ) / - 9 / + 33 * - 80 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 46 * - 33 * 74
----
112332

query I rowsort
SELECT + 81 * + + 85 + ( + + 85 )
----
6970

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

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

query III rowsort
SELECT 75 * + 42 AS col1, ( - + ( + 85 ) ) col2, - + 6 - + 94 col1
----
3150
-85
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT COUNT( + 61 ) + + + 17
----
18

skipif mysql # not compatible
query I rowsort label-1930
SELECT COUNT ( + 61 ) + + + 17
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1931
SELECT DISTINCT 61 DIV + 23 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT 61 / + 23 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT ALL - COALESCE ( + + 71, + 59 DIV - 95 )
----
-71

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL - COALESCE ( + + 71, + 59 / - 95 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1933
SELECT COUNT( ALL - + 29 ) DIV + - 79 col2
----
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT COUNT ( ALL - + 29 ) / + - 79 col2
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1935
SELECT ALL COUNT( ALL + 70 ) + + 20 - - 62 DIV + - 4 AS col2, + COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-1935
SELECT ALL COUNT ( ALL + 70 ) + + 20 - - 62 / + - 4 AS col2, + COUNT ( * )
----
6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT SUM( - 35 ) + + + 90
----
55

skipif mysql # not compatible
query I rowsort label-1936
SELECT SUM ( - 35 ) + + + 90
----
55

query II rowsort
SELECT 29 * - 27 * + 96 * + 83 * 28 AS col0, 88
----
-174690432
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - ( - 77 ) + + - 78 * - COUNT( * ) AS col0
----
155

skipif mysql # not compatible
query I rowsort label-1938
SELECT - ( - 77 ) + + - 78 * - COUNT ( * ) AS col0
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1939
SELECT 96 * CAST( NULL AS SIGNED ), - COUNT( * ) / CASE NULLIF ( + 95, - + 77 * + - 38 ) WHEN - 82 / - 26 / + + 17 THEN + 27 - + CAST( NULL AS SIGNED ) WHEN 79 / + 70 THEN NULL ELSE NULL END * 2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1939
SELECT 96 * CAST ( NULL AS INTEGER ), - COUNT ( * ) / CASE NULLIF ( + 95, - + 77 * + - 38 ) WHEN - 82 / - 26 / + + 17 THEN + 27 - + CAST ( NULL AS INTEGER ) WHEN 79 / + 70 THEN NULL ELSE NULL END * 2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1940
SELECT 27 + + + 64 + + - NULLIF ( + 39, + - COUNT( * ) * + 62 - COUNT( * ) + + - 45 * + + 46 * + - 75 ) AS col2, + COUNT( * ) * 18 AS col2
----
52
18

skipif mysql # not compatible
query II rowsort label-1940
SELECT 27 + + + 64 + + - NULLIF ( + 39, + - COUNT ( * ) * + 62 - COUNT ( * ) + + - 45 * + + 46 * + - 75 ) AS col2, + COUNT ( * ) * 18 AS col2
----
52
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT 86 + 23 * COUNT( * ) * 78
----
1880

skipif mysql # not compatible
query I rowsort label-1941
SELECT 86 + 23 * COUNT ( * ) * 78
----
1880

query I rowsort
SELECT ALL 94 + 5 AS col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1943
SELECT DISTINCT 98 + 39 DIV COUNT( * ) * - + 22 * - 33 AS col0
----
28412

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT 98 + 39 / COUNT ( * ) * - + 22 * - 33 AS col0
----
28412

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT + COUNT( * ) + + NULLIF ( 94, - ( + 25 ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-1944
SELECT + COUNT ( * ) + + NULLIF ( 94, - ( + 25 ) ) AS col2
----
95

query I rowsort
SELECT ALL + 43 + - 81 AS col2
----
-38

query I rowsort
SELECT ALL + NULLIF ( + 89, + + ( 20 ) - + - 84 + + 66 * 56 * 63 )
----
89

query I rowsort
SELECT 96 + + - 49 * - 23
----
1223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1948
SELECT ALL - CAST( - MAX( DISTINCT - 45 ) AS SIGNED ) + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL - CAST ( - MAX ( DISTINCT - 45 ) AS INTEGER ) + COUNT ( * )
----
-44

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

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + SUM ( + 93 ) + - + COUNT ( * )
----
92

query I rowsort
SELECT - 13 + + + 21 * - 17
----
-370

onlyif mysql # aggregate syntax: 
query II rowsort label-1951
SELECT 76 + + + COUNT( * ) AS col2, + 45 * + - 39 * - COALESCE ( + CASE + + CASE + - AVG ( ALL 29 ) WHEN - 34 / + 15 * - - 12 * 18 + 75 THEN 17 * + 74 END WHEN 13 THEN NULL WHEN 94 THEN - 53 * 29 + 54 * - 75 END, 21 )
----
77
36855

skipif mysql # not compatible
query II rowsort label-1951
SELECT 76 + + + COUNT ( * ) AS col2, + 45 * + - 39 * - COALESCE ( + CASE + + CASE + - AVG ( ALL 29 ) WHEN - 34 / + 15 * - - 12 * 18 + 75 THEN 17 * + 74 END WHEN 13 THEN NULL WHEN 94 THEN - 53 * 29 + 54 * - 75 END, 21 )
----
77
36855

query I rowsort
SELECT - 96 - 72
----
-168

query I rowsort
SELECT - 40 + - 27 * - 5
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1954
SELECT ALL + 69 * 29 * + COUNT( * ) * - ( + 58 ) / - + 94 * + - AVG ( 18 ) + CASE 71 WHEN - 17 THEN NULL WHEN CASE COUNT( * ) WHEN 18 THEN + 66 END THEN - 92 ELSE CAST( NULL AS SIGNED ) * - ( COUNT( * ) * - 3 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL + 69 * 29 * + COUNT ( * ) * - ( + 58 ) / - + 94 * + - AVG ( 18 ) + CASE 71 WHEN - 17 THEN NULL WHEN CASE COUNT ( * ) WHEN 18 THEN + 66 END THEN - 92 ELSE CAST ( NULL AS INTEGER ) * - ( COUNT ( * ) * - 3 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL 23 * + + COUNT( * ) * NULLIF ( + + CASE + 33 WHEN 62 THEN NULL ELSE + 78 + 84 END, + 35 ) AS col0
----
3726

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL 23 * + + COUNT ( * ) * NULLIF ( + + CASE + 33 WHEN 62 THEN NULL ELSE + 78 + 84 END, + 35 ) AS col0
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT DISTINCT - 50 * + CASE COUNT( * ) WHEN 82 * + 61 + + 99 + - 96 + 60 THEN ( - 56 ) * COUNT( * ) * - + 34 ELSE NULL END * + 30 - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT - 50 * + CASE COUNT ( * ) WHEN 82 * + 61 + + 99 + - 96 + 60 THEN ( - 56 ) * COUNT ( * ) * - + 34 ELSE NULL END * + 30 - 39
----
NULL

query I rowsort
SELECT 45 + ( - + ( 68 ) ) * - 98 * - + 45 AS col1
----
-299835

query II rowsort
SELECT ALL - 4 col1, 3
----
-4
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT + SUM( DISTINCT + 15 ) * - 39 + - COUNT( * ) * + 41
----
-626

skipif mysql # not compatible
query I rowsort label-1959
SELECT + SUM ( DISTINCT + 15 ) * - 39 + - COUNT ( * ) * + 41
----
-626

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

skipif mysql # not compatible
query I rowsort label-1960
SELECT 85 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1961
SELECT DISTINCT - COALESCE ( + + 69, + 25 ) AS col1, + SUM( 20 ) * + 95 + - - 23
----
-69
1923

skipif mysql # not compatible
query II rowsort label-1961
SELECT DISTINCT - COALESCE ( + + 69, + 25 ) AS col1, + SUM ( 20 ) * + 95 + - - 23
----
-69
1923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1962
SELECT MAX( - ( 51 ) ) * 8 + MIN( - 5 ) DIV + + 40
----
-408

skipif mysql # not compatible
query I rowsort label-1962
SELECT MAX ( - ( 51 ) ) * 8 + MIN ( - 5 ) / + + 40
----
-408

query I rowsort
SELECT 94 * + 56 * - 44 AS col1
----
-231616

onlyif mysql # DIV for integer division: 
query II rowsort label-1964
SELECT DISTINCT + 36 AS col0, + 59 DIV - 12
----
36
-4

skipif mysql # not compatible
query II rowsort label-1964
SELECT DISTINCT + 36 AS col0, + 59 / - 12
----
36
-4

query I rowsort
SELECT - ( - 6 ) * 24 AS col2
----
144

query I rowsort
SELECT - 97 + + - 59
----
-156

query I rowsort
SELECT + 14 * + + 17
----
238

query I rowsort
SELECT DISTINCT - 15 * - 47
----
705

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1969
SELECT + 97 AS col1, - 90 * - NULLIF ( + 23, + + 77 ) * - CASE - 28 WHEN 83 + - 97 / - COUNT( * ) THEN NULL WHEN CAST( NULL AS DECIMAL ) + + 3 THEN 73 WHEN + 97 THEN - 90 END
----
97
NULL

skipif mysql # not compatible
query II rowsort label-1969
SELECT + 97 AS col1, - 90 * - NULLIF ( + 23, + + 77 ) * - CASE - 28 WHEN 83 + - 97 / - COUNT ( * ) THEN NULL WHEN CAST ( NULL AS REAL ) + + 3 THEN 73 WHEN + 97 THEN - 90 END
----
97
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT ALL + 97 + - 54 DIV - + 6
----
106

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL + 97 + - 54 / - + 6
----
106

query I rowsort
SELECT - 1 - + - 55 + + 49 + + 88
----
191

onlyif mysql # DIV for integer division: 
query I rowsort label-1974
SELECT 38 * 31 DIV 88 + - 63
----
-50

skipif mysql # not compatible
query I rowsort label-1974
SELECT 38 * 31 / 88 + - 63
----
-50

query I rowsort
SELECT ALL + 58 + + 95 AS col0
----
153

query I rowsort
SELECT + - 19 - + 93 AS col0
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT ALL + + 44 DIV ( + 60 )
----
0

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL + + 44 / ( + 60 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT + NULLIF ( + + 50, - + 50 DIV + 31 + + + 34 + - 61 ) DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT + NULLIF ( + + 50, - + 50 / + 31 + + + 34 + - 61 ) / - 99
----
0

query I rowsort
SELECT ALL 27 + + 17
----
44

query I rowsort
SELECT - CASE - + 62 WHEN - - 16 THEN - 25 END * + 67 / - - 18 * + + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT - 2 * + 29 * COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1981
SELECT - 2 * + 29 * COUNT ( * ) AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1982
SELECT + CASE + 2 WHEN - + 88 THEN + 18 WHEN - 39 THEN COUNT( * ) WHEN + 55 THEN + + ( + 10 ) ELSE + 23 END * - - MIN( ALL - CAST( NULL AS DECIMAL ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT + CASE + 2 WHEN - + 88 THEN + 18 WHEN - 39 THEN COUNT ( * ) WHEN + 55 THEN + + ( + 10 ) ELSE + 23 END * - - MIN ( ALL - CAST ( NULL AS REAL ) ) * COUNT ( * )
----
NULL

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

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

query II rowsort
SELECT 50 AS col2, - ( + 63 )
----
50
-63

query I rowsort
SELECT DISTINCT 12 - + 62 AS col0
----
-50

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1988
SELECT + CAST( NULL AS SIGNED ) * 46, - CASE - + 98 WHEN - 2 THEN + 55 * - 50 + + 94 WHEN + 61 * - + 1 + + + NULLIF ( + - 63, + COALESCE ( - 69, - ( + 92 ) * 30 ) + - NULLIF ( 55, 27 ) ) THEN - MIN( DISTINCT + 77 ) END * CAST( - 12 AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1988
SELECT + CAST ( NULL AS INTEGER ) * 46, - CASE - + 98 WHEN - 2 THEN + 55 * - 50 + + 94 WHEN + 61 * - + 1 + + + NULLIF ( + - 63, + COALESCE ( - 69, - ( + 92 ) * 30 ) + - NULLIF ( 55, 27 ) ) THEN - MIN ( DISTINCT + 77 ) END * CAST ( - 12 AS INTEGER )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1989
SELECT 28 DIV + 1 + - 59 DIV 86 * 89 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1989
SELECT 28 / + 1 + - 59 / 86 * 89 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1990
SELECT + ( + - CAST( - COUNT( ALL + 46 ) AS SIGNED ) ) AS col0, + 94 col0
----
1
94

skipif mysql # not compatible
query II rowsort label-1990
SELECT + ( + - CAST ( - COUNT ( ALL + 46 ) AS INTEGER ) ) AS col0, + 94 col0
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT + ( + - MIN( ALL - - 32 ) ) + + - 22 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1991
SELECT + ( + - MIN ( ALL - - 32 ) ) + + - 22 AS col2
----
-54

query I rowsort
SELECT DISTINCT 32 * - 43 * - + 3 AS col1
----
4128

query I rowsort
SELECT - 98 * + 46 - 76 * 86
----
-11044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1994
SELECT - 79 DIV COUNT( * ) * 69 * - 99 * + - 23
----
-12411927

skipif mysql # not compatible
query I rowsort label-1994
SELECT - 79 / COUNT ( * ) * 69 * - 99 * + - 23
----
-12411927

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

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

query I rowsort
SELECT NULLIF ( + 25, - NULLIF ( + + 84, + 5 ) ) AS col1
----
25

query I rowsort
SELECT - 41 * 63 + + 76 AS col0
----
-2507

query I rowsort
SELECT DISTINCT + 55 * - 52 + 81 AS col1
----
-2779

query II rowsort
SELECT - 78 + + - 13, - 36 + - 10 AS col0
----
-91
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT NULLIF ( 59, - MIN( DISTINCT + - 13 ) * + 65 )
----
59

skipif mysql # not compatible
query I rowsort label-2000
SELECT NULLIF ( 59, - MIN ( DISTINCT + - 13 ) * + 65 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2001
SELECT ALL - ( 94 ) * 55 + - COUNT( * ) DIV 96, - 59 col0
----
-5170
-59

skipif mysql # not compatible
query II rowsort label-2001
SELECT ALL - ( 94 ) * 55 + - COUNT ( * ) / 96, - 59 col0
----
-5170
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2002
SELECT - CAST( NULL AS SIGNED ) * - 1 AS col1, 64 col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-2002
SELECT - CAST ( NULL AS INTEGER ) * - 1 AS col1, 64 col2
----
NULL
64

query I rowsort
SELECT DISTINCT + ( 48 ) * 28
----
1344

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

skipif mysql # not compatible
query I rowsort label-2004
SELECT - COUNT ( - - 76 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2005
SELECT - - COALESCE ( 1, COALESCE ( - CASE - - 29 WHEN + + 66 THEN + COUNT( * ) * - 92 DIV - MIN( ALL 88 ) + COALESCE ( + - 49, + 40 DIV - 38 + MAX( 7 ) * + 31, SUM( 2 ) ) DIV + 7 ELSE NULL END, 10 + 59 * + 31 ) ) + CAST( SUM( DISTINCT 55 ) - COUNT( * ) * ( + 51 - - 99 ) AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-2005
SELECT - - COALESCE ( 1, COALESCE ( - CASE - - 29 WHEN + + 66 THEN + COUNT ( * ) * - 92 / - MIN ( ALL 88 ) + COALESCE ( + - 49, + 40 / - 38 + MAX ( 7 ) * + 31, SUM ( 2 ) ) / + 7 ELSE NULL END, 10 + 59 * + 31 ) ) + CAST ( SUM ( DISTINCT 55 ) - COUNT ( * ) * ( + 51 - - 99 ) AS INTEGER )
----
-94

query I rowsort
SELECT + + NULLIF ( + - ( - - 74 ), - 56 ) * + 27
----
-1998

query I rowsort
SELECT - - 96 + + 32 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT - COUNT( * ) + + - 60 + - MAX( DISTINCT + + 40 ) AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-2008
SELECT - COUNT ( * ) + + - 60 + - MAX ( DISTINCT + + 40 ) AS col2
----
-101

query I rowsort
SELECT - - 47 * ( - 10 ) * - 59 + + 21 + 15 col1
----
27766

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT - COUNT( * ) + + - 23 + + - 75 + 97 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2010
SELECT - COUNT ( * ) + + - 23 + + - 75 + 97 AS col2
----
-2

query I rowsort
SELECT DISTINCT + ( 94 ) * - 0 * NULLIF ( 12, - 14 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT DISTINCT - + 75 DIV 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT - + 75 / 71 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2013
SELECT - 2 DIV - - SUM( - + 59 ) * - 43 - - + COUNT( * ) - + 51 + - - 88 * 25
----
2150

skipif mysql # not compatible
query I rowsort label-2013
SELECT - 2 / - - SUM ( - + 59 ) * - 43 - - + COUNT ( * ) - + 51 + - - 88 * 25
----
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT + COUNT( * ) + + MIN( ALL + 78 )
----
79

skipif mysql # not compatible
query I rowsort label-2014
SELECT + COUNT ( * ) + + MIN ( ALL + 78 )
----
79

query I rowsort
SELECT DISTINCT 51 * + 50 AS col1
----
2550

query II rowsort
SELECT ALL 26, + 41 col0
----
26
41

query I rowsort
SELECT 78 * - 44
----
-3432

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

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

query II rowsort
SELECT + 30 AS col0, - 68
----
30
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT CASE - ( + - 2 ) WHEN 49 + ( - MIN( ALL + 71 ) ) THEN - 34 - + NULLIF ( + + 70, + + ( 43 ) * - 32 ) END * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT CASE - ( + - 2 ) WHEN 49 + ( - MIN ( ALL + 71 ) ) THEN - 34 - + NULLIF ( + + 70, + + ( 43 ) * - 32 ) END * 75
----
NULL

query I rowsort
SELECT ALL + 24 * 96 AS col1
----
2304

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

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

query I rowsort
SELECT 3 + + 57 * COALESCE ( ( - 32 ), - + 28 + - 12 * + + 53 )
----
-1821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT ALL CAST( NULL AS SIGNED ) + 97 + - CASE + - CAST( NULL AS SIGNED ) WHEN + + 24 / - - 25 * - 93 + - 88 THEN NULL ELSE + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL CAST ( NULL AS INTEGER ) + 97 + - CASE + - CAST ( NULL AS INTEGER ) WHEN + + 24 / - - 25 * - 93 + - 88 THEN NULL ELSE + 48 END
----
NULL

query I rowsort
SELECT - 31 * 32 * - 10 + 45 / - - 84 - + 47 + + + CASE - 21 WHEN 37 + + 13 THEN + + 83 WHEN 92 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2026
SELECT 3 * - CASE + 7 WHEN 45 * 75 * + 22 - 31 THEN NULL WHEN 48 / + ( CAST( - - ( + MIN( + 59 ) ) AS SIGNED ) ) THEN + 73 + COUNT( * ) + 44 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT 3 * - CASE + 7 WHEN 45 * 75 * + 22 - 31 THEN NULL WHEN 48 / + ( CAST ( - - ( + MIN ( + 59 ) ) AS INTEGER ) ) THEN + 73 + COUNT ( * ) + 44 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2027
SELECT + 59, + SUM( DISTINCT - 58 ) AS col1
----
59
-58

skipif mysql # not compatible
query II rowsort label-2027
SELECT + 59, + SUM ( DISTINCT - 58 ) AS col1
----
59
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT DISTINCT 43 * + COUNT( * ) * - 80 * - COUNT( * )
----
3440

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT 43 * + COUNT ( * ) * - 80 * - COUNT ( * )
----
3440

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

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

query I rowsort
SELECT 28 * + + 89
----
2492

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT MIN( + 27 ) * 98 + 63 col1
----
2709

skipif mysql # not compatible
query I rowsort label-2032
SELECT MIN ( + 27 ) * 98 + 63 col1
----
2709

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT NULLIF ( + 82, + 3 ) + + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2034
SELECT NULLIF ( + 82, + 3 ) + + COUNT ( * ) AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2035
SELECT ALL 87 - - 99 DIV - - 58
----
88

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL 87 - - 99 / - - 58
----
88

query II rowsort
SELECT + 57 * + - 82 + + 61, 63 AS col0
----
-4613
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT + 26 * + NULLIF ( 18, - - 55 + - 95 * - 46 * + 45 ) DIV + + 2 + - - 17
----
251

skipif mysql # not compatible
query I rowsort label-2037
SELECT + 26 * + NULLIF ( 18, - - 55 + - 95 * - 46 * + 45 ) / + + 2 + - - 17
----
251

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT + CAST( - NULLIF ( + ( 70 ), + - 67 ) AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-2039
SELECT + CAST ( - NULLIF ( + ( 70 ), + - 67 ) AS INTEGER ) AS col2
----
-70

query I rowsort
SELECT ALL NULLIF ( + + 1, + 96 )
----
1

query II rowsort
SELECT 98, + 17 AS col2
----
98
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT - 49 + 85 + - - COALESCE ( + 44, MAX( 17 ) ) + + 84 + - + MAX( DISTINCT - ( 79 ) ) * COALESCE ( + + 8, 67, - 44 )
----
796

skipif mysql # not compatible
query I rowsort label-2042
SELECT - 49 + 85 + - - COALESCE ( + 44, MAX ( 17 ) ) + + 84 + - + MAX ( DISTINCT - ( 79 ) ) * COALESCE ( + + 8, 67, - 44 )
----
796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2043
SELECT COUNT( * ) DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-2043
SELECT COUNT ( * ) / - 35
----
0

query II rowsort
SELECT + 60 * - 22 + 99, 37 col2
----
-1221
37

query I rowsort
SELECT ALL - - 52 * + - 40 + - 61 AS col0
----
-2141

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT DISTINCT - 3 DIV - 94 + + - 11 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT - 3 / - 94 + + - 11 AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2047
SELECT - - 20, - ( + COUNT( * ) ) + - 4 + - 30 * 72 * - ( - 53 ) * 92 + - COUNT( 97 ) DIV 22 AS col2
----
20
-10532165

skipif mysql # not compatible
query II rowsort label-2047
SELECT - - 20, - ( + COUNT ( * ) ) + - 4 + - 30 * 72 * - ( - 53 ) * 92 + - COUNT ( 97 ) / 22 AS col2
----
20
-10532165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2048
SELECT ALL 36 col2, 28 * + - 96 - 33 DIV CAST( + NULLIF ( + 23, - + AVG ( ALL 54 ) * + 0 * 91 ) AS SIGNED ) DIV - + 82 + 12 * + - NULLIF ( ( COUNT( + 4 ) ), - AVG ( 48 ) + - 78 )
----
36
-2700

skipif mysql # not compatible
query II rowsort label-2048
SELECT ALL 36 col2, 28 * + - 96 - 33 / CAST ( + NULLIF ( + 23, - + AVG ( ALL 54 ) * + 0 * 91 ) AS INTEGER ) / - + 82 + 12 * + - NULLIF ( ( COUNT ( + 4 ) ), - AVG ( 48 ) + - 78 )
----
36
-2700

onlyif mysql # aggregate syntax: 
query II rowsort label-2049
SELECT + COUNT( * ) AS col2, + 5 + - - 71 - + - 97 AS col1
----
1
173

skipif mysql # not compatible
query II rowsort label-2049
SELECT + COUNT ( * ) AS col2, + 5 + - - 71 - + - 97 AS col1
----
1
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2050
SELECT ALL - - 72 * + 0 DIV 94 DIV - + ( + COUNT( DISTINCT + - 51 ) ) col1, - 39
----
0
-39

skipif mysql # not compatible
query II rowsort label-2050
SELECT ALL - - 72 * + 0 / 94 / - + ( + COUNT ( DISTINCT + - 51 ) ) col1, - 39
----
0
-39

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

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL MIN ( - - 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2052
SELECT - 20, + CAST( + 29 AS SIGNED ) + 16 col2
----
-20
45

skipif mysql # not compatible
query II rowsort label-2052
SELECT - 20, + CAST ( + 29 AS INTEGER ) + 16 col2
----
-20
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT + NULLIF ( + - 58, - ( + COALESCE ( ( 83 ), - ( + 66 ) ) ) + 49 + - MIN( ALL + 74 ) * - COALESCE ( - 62, + 87 + COUNT( * ) * - 90 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-2053
SELECT + NULLIF ( + - 58, - ( + COALESCE ( ( 83 ), - ( + 66 ) ) ) + 49 + - MIN ( ALL + 74 ) * - COALESCE ( - 62, + 87 + COUNT ( * ) * - 90 ) )
----
-58

query I rowsort
SELECT DISTINCT - 82 + + - 91 + ( - ( + 19 ) ) col0
----
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2055
SELECT 87 DIV - - COUNT( * ) col0
----
87

skipif mysql # not compatible
query I rowsort label-2055
SELECT 87 / - - COUNT ( * ) col0
----
87

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

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

query I rowsort
SELECT DISTINCT 97 * + 0 * - NULLIF ( - + 46, - - 29 * - - 50 + + 29 ) * + 42 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL + 28 + + + ( + COUNT( * ) ) * - 64 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL + 28 + + + ( + COUNT ( * ) ) * - 64 AS col0
----
-36

query I rowsort
SELECT 13 * - 38
----
-494

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

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL - 65 + COUNT ( * ) AS col2
----
-64

query I rowsort
SELECT 84 * - + 50 AS col2
----
-4200

query II rowsort
SELECT + 91 AS col1, + 10
----
91
10

query I rowsort
SELECT NULLIF ( + NULLIF ( + 87, - - 75 / + 69 ), 8 + - + 45 ) * ( + + 48 ) col2
----
4176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2064
SELECT + 89 DIV - COUNT( - 39 ) + + + 14 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2064
SELECT + 89 / - COUNT ( - 39 ) + + + 14 AS col2
----
-75

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

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

query I rowsort
SELECT ALL - ( - 29 ) + 70 AS col0
----
99

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

query I rowsort
SELECT 48 * - - 29 AS col2
----
1392

query I rowsort
SELECT ALL - 93 * - + 65 AS col2
----
6045

onlyif mysql # aggregate syntax: 
query II rowsort label-2070
SELECT DISTINCT + ( + COUNT( * ) ) - - 96 + + + 77 * 22 - 9 AS col0, 0 AS col0
----
1782
0

skipif mysql # not compatible
query II rowsort label-2070
SELECT DISTINCT + ( + COUNT ( * ) ) - - 96 + + + 77 * 22 - 9 AS col0, 0 AS col0
----
1782
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2071
SELECT + 17, + 90 * + SUM( - 58 ) - + + 63 AS col1
----
17
-5283

skipif mysql # not compatible
query II rowsort label-2071
SELECT + 17, + 90 * + SUM ( - 58 ) - + + 63 AS col1
----
17
-5283

query I rowsort
SELECT NULLIF ( - 32, 72 ) + - 89 * + 20
----
-1812

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT 46 * - 22 + 19 + COUNT( * ) * + + COUNT( + 63 ) * 3 AS col2
----
-990

skipif mysql # not compatible
query I rowsort label-2074
SELECT 46 * - 22 + 19 + COUNT ( * ) * + + COUNT ( + 63 ) * 3 AS col2
----
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-2075
SELECT - COUNT( * ) * 51 * + ( COUNT( * ) ) AS col1, - 45 AS col0
----
-51
-45

skipif mysql # not compatible
query II rowsort label-2075
SELECT - COUNT ( * ) * 51 * + ( COUNT ( * ) ) AS col1, - 45 AS col0
----
-51
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL 94 * + COUNT( - 36 )
----
94

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL 94 * + COUNT ( - 36 )
----
94

query II rowsort
SELECT DISTINCT - + 98 AS col2, + 84
----
-98
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2078
SELECT CAST( 30 AS SIGNED ) + + + COUNT( * ) + - + 77 AS col1, - NULLIF ( - 29, + 12 ) AS col0
----
-46
29

skipif mysql # not compatible
query II rowsort label-2078
SELECT CAST ( 30 AS INTEGER ) + + + COUNT ( * ) + - + 77 AS col1, - NULLIF ( - 29, + 12 ) AS col0
----
-46
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2079
SELECT MIN( - - 68 ) * - - 86 * 35 + 15 + - COUNT( * ) DIV COUNT( * ) AS col2
----
204694

skipif mysql # not compatible
query I rowsort label-2079
SELECT MIN ( - - 68 ) * - - 86 * 35 + 15 + - COUNT ( * ) / COUNT ( * ) AS col2
----
204694

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT - COUNT( - 94 ) * + + 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2080
SELECT - COUNT ( - 94 ) * + + 5 AS col1
----
-5

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

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - MIN ( ALL - 36 )
----
36

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT + - COALESCE ( COUNT( * ), - COUNT( * ) * COALESCE ( + + 44, - 93, + 92 * + + 39 ) * ( - 25 ) + - - ( + 29 ) * + COALESCE ( - 88, - 52 ) + - 75 ) * - 48
----
48

skipif mysql # not compatible
query I rowsort label-2084
SELECT + - COALESCE ( COUNT ( * ), - COUNT ( * ) * COALESCE ( + + 44, - 93, + 92 * + + 39 ) * ( - 25 ) + - - ( + 29 ) * + COALESCE ( - 88, - 52 ) + - 75 ) * - 48
----
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2085
SELECT + CAST( - 6 AS SIGNED ) + - 89 DIV + 46 col2
----
-7

skipif mysql # not compatible
query I rowsort label-2085
SELECT + CAST ( - 6 AS INTEGER ) + - 89 / + 46 col2
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2086
SELECT - - CAST( NULL AS DECIMAL ) AS col2, + ( - - 96 ) AS col0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-2086
SELECT - - CAST ( NULL AS REAL ) AS col2, + ( - - 96 ) AS col0
----
NULL
96

query I rowsort
SELECT + 93 + - 8 - + 21
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT - MIN( - 98 ) * + 80
----
7840

skipif mysql # not compatible
query I rowsort label-2088
SELECT - MIN ( - 98 ) * + 80
----
7840

query I rowsort
SELECT + ( + 95 ) + - 1 col0
----
94

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

skipif mysql # not compatible
query II rowsort label-2090
SELECT - - COUNT ( * ) AS col1, 74 * - - 1
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL - + COUNT( * ) + 57 + - 62 * + + 65 * 63 AS col1
----
-253834

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - + COUNT ( * ) + 57 + - 62 * + + 65 * 63 AS col1
----
-253834

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

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT 33 + + + CAST ( NULL AS INTEGER ) + + 67
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ALL - SUM( DISTINCT - 85 ) + COUNT( * ) + 55 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL - SUM ( DISTINCT - 85 ) + COUNT ( * ) + 55 AS col0
----
141

query I rowsort
SELECT - 62 + COALESCE ( + 97, 47 * + 43 - + 86 ) AS col1
----
35

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

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL 68 + - 41 / + 41 - - + 53 AS col1
----
120

query I rowsort
SELECT - CASE - 13 WHEN 10 - + 58 THEN - 83 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2098
SELECT DISTINCT MIN( ALL 50 ) AS col0, - 52 AS col2
----
50
-52

skipif mysql # not compatible
query II rowsort label-2098
SELECT DISTINCT MIN ( ALL 50 ) AS col0, - 52 AS col2
----
50
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2099
SELECT + COUNT( * ) * + COUNT( * ), + 80 * 87 DIV + 92 + + COUNT( * ) AS col1
----
1
76

skipif mysql # not compatible
query II rowsort label-2099
SELECT + COUNT ( * ) * + COUNT ( * ), + 80 * 87 / + 92 + + COUNT ( * ) AS col1
----
1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL SUM( ALL - - 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL SUM ( ALL - - 46 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT - SUM( ALL + 25 ) + CASE + + 61 WHEN + COUNT( * ) - - MAX( DISTINCT - + 56 ) THEN NULL WHEN + - 10 + - 42 THEN NULL ELSE + + 20 END col2
----
-5

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT - SUM ( ALL + 25 ) + CASE + + 61 WHEN + COUNT ( * ) - - MAX ( DISTINCT - + 56 ) THEN NULL WHEN + - 10 + - 42 THEN NULL ELSE + + 20 END col2
----
-5

query II rowsort
SELECT - 85 + 50 AS col2, 95
----
-35
95

query I rowsort
SELECT - 96 * + 67 * + + 9
----
-57888

onlyif mysql # aggregate syntax: 
query II rowsort label-2104
SELECT ALL + 7 * + 50 col1, + COUNT( * )
----
350
1

skipif mysql # not compatible
query II rowsort label-2104
SELECT ALL + 7 * + 50 col1, + COUNT ( * )
----
350
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2105
SELECT - 49 DIV + + 80 AS col2, 23 * 47
----
0
1081

skipif mysql # not compatible
query II rowsort label-2105
SELECT - 49 / + + 80 AS col2, 23 * 47
----
0
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - 66 * - - SUM( + + 68 )
----
-4488

skipif mysql # not compatible
query I rowsort label-2106
SELECT - 66 * - - SUM ( + + 68 )
----
-4488

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2108
SELECT + 8 DIV + + 42 AS col2, 82
----
0
82

skipif mysql # not compatible
query II rowsort label-2108
SELECT + 8 / + + 42 AS col2, 82
----
0
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2109
SELECT - - 9 DIV + 92 * ( + + COUNT( - 1 ) ) * - 37 + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-2109
SELECT - - 9 / + 92 * ( + + COUNT ( - 1 ) ) * - 37 + - 19
----
-19

query I rowsort
SELECT ALL + 3 * - ( + 68 ) + + + 97
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL + + NULLIF ( COUNT( * ), + + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL + + NULLIF ( COUNT ( * ), + + 3 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT + MIN( 6 ) AS col2, - 27 AS col1
----
6
-27

skipif mysql # not compatible
query II rowsort label-2112
SELECT + MIN ( 6 ) AS col2, - 27 AS col1
----
6
-27

query I rowsort
SELECT + 24 * - 4 AS col0
----
-96

query I rowsort
SELECT + - 2 + 13
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT - + NULLIF ( - 33, - 73 + + + CASE 76 WHEN - COUNT( * ) THEN + 59 * - 78 - + 56 - + 14 * - 43 * + 84 * 33 WHEN + - 29 THEN NULL WHEN - + 30 + COUNT( * ) THEN NULL ELSE NULL END - - 97 ) col0
----
33

skipif mysql # not compatible
query I rowsort label-2115
SELECT - + NULLIF ( - 33, - 73 + + + CASE 76 WHEN - COUNT ( * ) THEN + 59 * - 78 - + 56 - + 14 * - 43 * + 84 * 33 WHEN + - 29 THEN NULL WHEN - + 30 + COUNT ( * ) THEN NULL ELSE NULL END - - 97 ) col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL + COUNT( * ) + - 21
----
-20

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL + COUNT ( * ) + - 21
----
-20

query I rowsort
SELECT + 63 * 82 AS col1
----
5166

query I rowsort
SELECT + 50 - 54
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2119
SELECT - CAST( + + ( - 7 ) AS SIGNED ) AS col2, COALESCE ( - + 75, - COALESCE ( - 88, - SUM( ALL 83 ) ) DIV + - 21 + + + 81 * 62 )
----
7
-75

skipif mysql # not compatible
query II rowsort label-2119
SELECT - CAST ( + + ( - 7 ) AS INTEGER ) AS col2, COALESCE ( - + 75, - COALESCE ( - 88, - SUM ( ALL 83 ) ) / + - 21 + + + 81 * 62 )
----
7
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT - 32 * + + CASE + MAX( ALL - - ( 25 ) ) WHEN 2 THEN - SUM( 3 ) END * + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT - 32 * + + CASE + MAX ( ALL - - ( 25 ) ) WHEN 2 THEN - SUM ( 3 ) END * + 54 AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2122
SELECT ALL COUNT ( * ) AS col2, - 46
----
1
-46

query II rowsort
SELECT 81 AS col2, 68 AS col1
----
81
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT + 97 DIV + 21
----
4

skipif mysql # not compatible
query I rowsort label-2124
SELECT + 97 / + 21
----
4

query I rowsort
SELECT DISTINCT + 93 * 56 col2
----
5208

query II rowsort
SELECT ALL 48 col0, 20
----
48
20

query I rowsort
SELECT DISTINCT + 21 * - + 25
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT DISTINCT COUNT( * ) * COUNT( ALL + + 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT COUNT ( * ) * COUNT ( ALL + + 45 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2129
SELECT DISTINCT COUNT( * ) col1, NULLIF ( + 28, 78 * + COUNT( DISTINCT - + 95 ) ) DIV + - 85 col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2129
SELECT DISTINCT COUNT ( * ) col1, NULLIF ( + 28, 78 * + COUNT ( DISTINCT - + 95 ) ) / + - 85 col0
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT DISTINCT + COALESCE ( + CASE + 37 WHEN COUNT( * ) + - CAST( 34 AS SIGNED ) - + + 31 * + 18 + + CASE - SUM( - 96 ) WHEN - COALESCE ( 50, CAST( 32 AS SIGNED ) * - 94 - + 91 + 42 ) + 84 THEN 28 + - 28 WHEN - MIN( ALL 96 ) THEN NULL ELSE COUNT( * ) END THEN 44 * 86 ELSE - 87 END, + ( + 21 ) ) * + 29 AS col1
----
-2523

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT + COALESCE ( + CASE + 37 WHEN COUNT ( * ) + - CAST ( 34 AS INTEGER ) - + + 31 * + 18 + + CASE - SUM ( - 96 ) WHEN - COALESCE ( 50, CAST ( 32 AS INTEGER ) * - 94 - + 91 + 42 ) + 84 THEN 28 + - 28 WHEN - MIN ( ALL 96 ) THEN NULL ELSE COUNT ( * ) END THEN 44 * 86 ELSE - 87 END, + ( + 21 ) ) * + 29 AS col1
----
-2523

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2131
SELECT + 89 + + 84 * + 14 - - 4 + - 43 * 14 + - + 58 - - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT + 89 + + 84 * + 14 - - 4 + - 43 * 14 + - + 58 - - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT - - 13 * - + SUM( ALL - 89 ) + + COUNT( * ) AS col1
----
1158

skipif mysql # not compatible
query I rowsort label-2132
SELECT - - 13 * - + SUM ( ALL - 89 ) + + COUNT ( * ) AS col1
----
1158

query I rowsort
SELECT 55 * + + 47 * + + ( + - 85 ) + - + ( - - 26 ) * 53 * + 15 AS col1
----
-240395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2134
SELECT ALL + + NULLIF ( + + COUNT( * ), + 62 - CASE + 52 WHEN - 68 + - 44 THEN - CAST( NULL AS SIGNED ) END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL + + NULLIF ( + + COUNT ( * ), + 62 - CASE + 52 WHEN - 68 + - 44 THEN - CAST ( NULL AS INTEGER ) END ) AS col0
----
1

query I rowsort
SELECT DISTINCT + - CASE - 18 WHEN 63 * + 14 + - 69 THEN 39 END
----
NULL

query II rowsort
SELECT ALL + 69, + 84 + + + 48 col0
----
69
132

query II rowsort
SELECT ALL + 15 col1, - 39
----
15
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-2138
SELECT DISTINCT + 25 DIV 3 * - 43 col2
----
-344

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT + 25 / 3 * - 43 col2
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL - MIN( ALL - + 18 ) + - 66 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL - MIN ( ALL - + 18 ) + - 66 AS col1
----
-48

query I rowsort
SELECT ( 98 ) + - 19 * + 15 AS col2
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT 97 + - - 23 * - ( - MAX( - 95 ) )
----
-2088

skipif mysql # not compatible
query I rowsort label-2141
SELECT 97 + - - 23 * - ( - MAX ( - 95 ) )
----
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT - 99 * MAX( COALESCE ( + 37, + - 69 ) ) * COUNT( * ) + - - MAX( - 30 ) + - - MAX( + 90 )
----
-3603

skipif mysql # not compatible
query I rowsort label-2142
SELECT - 99 * MAX ( COALESCE ( + 37, + - 69 ) ) * COUNT ( * ) + - - MAX ( - 30 ) + - - MAX ( + 90 )
----
-3603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2143
SELECT ALL - CASE - 46 WHEN - + COUNT( * ) THEN + + 88 / - 6 * + 13 - CAST( NULL AS SIGNED ) + + 94 END, - CAST( - ( 89 ) AS SIGNED ) + - + 34 AS col0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-2143
SELECT ALL - CASE - 46 WHEN - + COUNT ( * ) THEN + + 88 / - 6 * + 13 - CAST ( NULL AS INTEGER ) + + 94 END, - CAST ( - ( 89 ) AS INTEGER ) + - + 34 AS col0
----
NULL
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2144
SELECT + CAST( NULL AS SIGNED ) / - 56 * + NULLIF ( + CAST( NULL AS SIGNED ), - 99 * - + 35 ), CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2144
SELECT + CAST ( NULL AS INTEGER ) / - 56 * + NULLIF ( + CAST ( NULL AS INTEGER ), - 99 * - + 35 ), CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT ALL COUNT( * ) + + 51 * - ( 95 )
----
-4844

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL COUNT ( * ) + + 51 * - ( 95 )
----
-4844

query I rowsort
SELECT 5 - + 70 * - + 14 + - 84 AS col1
----
901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2147
SELECT DISTINCT + - 61 + - CASE - NULLIF ( 69, - - 71 ) WHEN 52 / - - 83 THEN - COUNT( * ) / + 35 - - - 46 + - COALESCE ( - 29, - 68 ) * + 63 + 44 WHEN + - CAST( + COUNT( * ) AS SIGNED ) + 40 THEN + 24 + + 88 * + 86 ELSE NULL END - 31 * + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT + - 61 + - CASE - NULLIF ( 69, - - 71 ) WHEN 52 / - - 83 THEN - COUNT ( * ) / + 35 - - - 46 + - COALESCE ( - 29, - 68 ) * + 63 + 44 WHEN + - CAST ( + COUNT ( * ) AS INTEGER ) + 40 THEN + 24 + + 88 * + 86 ELSE NULL END - 31 * + 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT NULLIF ( 84, ( + COUNT( * ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-2148
SELECT NULLIF ( 84, ( + COUNT ( * ) ) )
----
84

query I rowsort
SELECT 93 + - + 66 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT 33 * + CASE 0 WHEN ( - - 69 ) THEN NULL WHEN 98 * + - MAX( + - 4 ) / + - ( 18 ) - - 38 THEN NULL ELSE + MIN( ALL + 10 ) * + 36 END - + - 84
----
11964

skipif mysql # not compatible
query I rowsort label-2150
SELECT 33 * + CASE 0 WHEN ( - - 69 ) THEN NULL WHEN 98 * + - MAX ( + - 4 ) / + - ( 18 ) - - 38 THEN NULL ELSE + MIN ( ALL + 10 ) * + 36 END - + - 84
----
11964

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT COUNT( * ) + + - 61 - + 73 col1
----
-133

skipif mysql # not compatible
query I rowsort label-2151
SELECT COUNT ( * ) + + - 61 - + 73 col1
----
-133

query I rowsort
SELECT ALL ( 80 ) - 31 AS col0
----
49

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

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

query I rowsort
SELECT DISTINCT + 52 - - 68 * + + 96 AS col2
----
6580

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT 54 DIV - 25
----
-2

skipif mysql # not compatible
query I rowsort label-2157
SELECT 54 / - 25
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT CASE - 38 WHEN 24 / + - COUNT( * ) * 78 THEN + COALESCE ( - + 76, + 91 ) ELSE - COUNT( * ) + + 22 END + - COUNT( * ) - + + COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2158
SELECT CASE - 38 WHEN 24 / + - COUNT ( * ) * 78 THEN + COALESCE ( - + 76, + 91 ) ELSE - COUNT ( * ) + + 22 END + - COUNT ( * ) - + + COUNT ( * ) AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2159
SELECT 66 DIV - + 36 DIV + - ( - COUNT( * ) ), - 92 AS col1
----
-1
-92

skipif mysql # not compatible
query II rowsort label-2159
SELECT 66 / - + 36 / + - ( - COUNT ( * ) ), - 92 AS col1
----
-1
-92

query I rowsort
SELECT 37 * - - 53 AS col1
----
1961

query I rowsort
SELECT 73 + + - 37 AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT ALL 1 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL 1 / - 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2163
SELECT 44 DIV 71, MIN( + 24 ) * + ( + SUM( ALL + 0 ) )
----
0
0

skipif mysql # not compatible
query II rowsort label-2163
SELECT 44 / 71, MIN ( + 24 ) * + ( + SUM ( ALL + 0 ) )
----
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2164
SELECT DISTINCT + - COALESCE ( 34, 93, + CAST( - 39 AS SIGNED ) ) + + - 68 + - COALESCE ( + 46, - + 60 DIV + + 62 + - 23 * 76 * + + 70 ) * + 8 * - 76
----
27866

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + - COALESCE ( 34, 93, + CAST ( - 39 AS INTEGER ) ) + + - 68 + - COALESCE ( + 46, - + 60 / + + 62 + - 23 * 76 * + + 70 ) * + 8 * - 76
----
27866

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2165
SELECT ALL COUNT( * ) DIV - + 73 - - SUM( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL COUNT ( * ) / - + 73 - - SUM ( - 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT DISTINCT - 65 + - - 18 * + SUM( ALL + 18 ) * - CASE - + 47 WHEN - 22 - 53 THEN - - COUNT( * ) ELSE NULL END / - CASE - 9 WHEN - + 88 - - - 38 THEN + 21 / + 13 - + 38 + - 97 WHEN AVG ( + 12 ) * 97 THEN NULL ELSE NULL END - - CASE 96 - - COALESCE ( + 50, + 73, - COUNT( * ) * NULLIF ( + 62, - 26 * 81 ) ) WHEN - 55 + ( CAST( 56 AS SIGNED ) ) * + 11 THEN COUNT( * ) * - 22 + + 15 WHEN + 24 THEN 22 ELSE COUNT( * ) + - 79 / + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT - 65 + - - 18 * + SUM ( ALL + 18 ) * - CASE - + 47 WHEN - 22 - 53 THEN - - COUNT ( * ) ELSE NULL END / - CASE - 9 WHEN - + 88 - - - 38 THEN + 21 / + 13 - + 38 + - 97 WHEN AVG ( + 12 ) * 97 THEN NULL ELSE NULL END - - CASE 96 - - COALESCE ( + 50, + 73, - COUNT ( * ) * NULLIF ( + 62, - 26 * 81 ) ) WHEN - 55 + ( CAST ( 56 AS INTEGER ) ) * + 11 THEN COUNT ( * ) * - 22 + + 15 WHEN + 24 THEN 22 ELSE COUNT ( * ) + - 79 / + 52 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT ALL + 37 + CAST( 9 AS SIGNED ) * - + 8
----
-35

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL + 37 + CAST ( 9 AS INTEGER ) * - + 8
----
-35

query I rowsort
SELECT + NULLIF ( + + 31, - + 65 ) col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - MAX( - - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-2169
SELECT - MAX ( - - 50 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2170
SELECT ALL + - COUNT( * ) * 82, 37 col1
----
-82
37

skipif mysql # not compatible
query II rowsort label-2170
SELECT ALL + - COUNT ( * ) * 82, 37 col1
----
-82
37

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

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

query I rowsort
SELECT ALL + 2 + - 22 * + + 15
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT DISTINCT - - MIN( ALL COALESCE ( - - 64, + - 1, - - 35 ) )
----
64

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT - - MIN ( ALL COALESCE ( - - 64, + - 1, - - 35 ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT - COUNT( * ) * - NULLIF ( - - 62, - 34 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2174
SELECT - COUNT ( * ) * - NULLIF ( - - 62, - 34 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT ALL - 30 * - - COALESCE ( + COUNT( * ), - ( - + 95 ) * - COUNT( * ) ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL - 30 * - - COALESCE ( + COUNT ( * ), - ( - + 95 ) * - COUNT ( * ) ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL + - CASE + CASE - 19 WHEN 14 THEN NULL WHEN - + 20 / 92 * + 21 THEN NULL WHEN - + 3 THEN - 1 * - 5 + + ( - ( COUNT( * ) ) ) END WHEN + 50 THEN NULL WHEN + NULLIF ( 14, 77 ) THEN 98 END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + - CASE + CASE - 19 WHEN 14 THEN NULL WHEN - + 20 / 92 * + 21 THEN NULL WHEN - + 3 THEN - 1 * - 5 + + ( - ( COUNT ( * ) ) ) END WHEN + 50 THEN NULL WHEN + NULLIF ( 14, 77 ) THEN 98 END - COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( - 97, + 78 ) - - 21 AS col2
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT 97 + 45 + + 29 DIV - ( 50 ) + + 14 col2
----
156

skipif mysql # not compatible
query I rowsort label-2179
SELECT 97 + 45 + + 29 / - ( 50 ) + + 14 col2
----
156

query I rowsort
SELECT 32 * - + 36
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT 38 * + COUNT( * ) + 83 + - - 12 + 95 col2
----
228

skipif mysql # not compatible
query I rowsort label-2181
SELECT 38 * + COUNT ( * ) + 83 + - - 12 + 95 col2
----
228

query II rowsort
SELECT 49 AS col2, 74
----
49
74

query I rowsort
SELECT ALL + ( + - 91 ) * - 1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2184
SELECT ALL 78, 57 * COALESCE ( - COUNT( + + 95 ), + 47 ) AS col1
----
78
-57

skipif mysql # not compatible
query II rowsort label-2184
SELECT ALL 78, 57 * COALESCE ( - COUNT ( + + 95 ), + 47 ) AS col1
----
78
-57

query I rowsort
SELECT DISTINCT - 20 * - 16
----
320

query I rowsort
SELECT 22 * - 11 AS col2
----
-242

query I rowsort
SELECT ALL + 48 * - 91 AS col1
----
-4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2188
SELECT 18 - - COUNT( * ) + - - 7 DIV - 33 + 17 + - 62 AS col2, + 91 AS col2
----
-26
91

skipif mysql # not compatible
query II rowsort label-2188
SELECT 18 - - COUNT ( * ) + - - 7 / - 33 + 17 + - 62 AS col2, + 91 AS col2
----
-26
91

query I rowsort
SELECT 21 * + + 85 * - 5
----
-8925

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT CASE + COUNT( * ) WHEN - 37 THEN NULL WHEN - ( + - 29 ) * - + ( + + COUNT( * ) ) * 26 THEN 40 ELSE 60 END * - + ( + COUNT( * ) ) - + 43 * + 13 * COUNT( ALL + 12 )
----
-619

skipif mysql # not compatible
query I rowsort label-2190
SELECT CASE + COUNT ( * ) WHEN - 37 THEN NULL WHEN - ( + - 29 ) * - + ( + + COUNT ( * ) ) * 26 THEN 40 ELSE 60 END * - + ( + COUNT ( * ) ) - + 43 * + 13 * COUNT ( ALL + 12 )
----
-619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT 28 - + CAST( CAST( - 34 AS SIGNED ) AS SIGNED ) - - - 79
----
-17

skipif mysql # not compatible
query I rowsort label-2191
SELECT 28 - + CAST ( CAST ( - 34 AS INTEGER ) AS INTEGER ) - - - 79
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL COALESCE ( - 89, + COALESCE ( + + ( NULLIF ( + + MIN( DISTINCT 19 ), + COUNT( * ) ) ), + COUNT( * ) ) * COUNT( * ) )
----
-89

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL COALESCE ( - 89, + COALESCE ( + + ( NULLIF ( + + MIN ( DISTINCT 19 ), + COUNT ( * ) ) ), + COUNT ( * ) ) * COUNT ( * ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT - SUM( DISTINCT - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-2193
SELECT - SUM ( DISTINCT - 96 )
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT DISTINCT COUNT( - 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT COUNT ( - 85 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL - - 24 + - MIN( + 84 ) + MAX( + - 75 ) AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL - - 24 + - MIN ( + 84 ) + MAX ( + - 75 ) AS col2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT DISTINCT + - 62 + SUM( DISTINCT 64 ) + + + 72 * + 88 * - 77
----
-487870

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT + - 62 + SUM ( DISTINCT 64 ) + + + 72 * + 88 * - 77
----
-487870

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2200
SELECT + 35 + - - CAST( - - 45 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-2200
SELECT + 35 + - - CAST ( - - 45 AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT COUNT( * ) * COUNT( * ) + - COUNT( * ) * + 25 - 6
----
-30

skipif mysql # not compatible
query I rowsort label-2201
SELECT COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) * + 25 - 6
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2202
SELECT ALL + 14 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL + 14 / 99 AS col2
----
0

query I rowsort
SELECT + + 72 * - + 43 + 98 + + 14 + 94 col1
----
-2890

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT DISTINCT 45 DIV + 9 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT 45 / + 9 AS col1
----
5

query I rowsort
SELECT DISTINCT 94 * 60 - 34 - 54 col0
----
5552

query I rowsort
SELECT ALL + + ( + CASE - ( - 90 ) WHEN - 70 THEN + ( + 38 ) + 41 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT + MAX( DISTINCT NULLIF ( 77, - 23 ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2207
SELECT + MAX ( DISTINCT NULLIF ( 77, - 23 ) ) AS col0
----
77

query I rowsort
SELECT + - CASE - AVG ( ALL 91 ) WHEN 29 + 84 THEN - 95 END + + 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2209
SELECT ALL - + 74 * + 68 + + 71 - 27 + - 58 + - 81 * 68 DIV 99 + + NULLIF ( + - 95, + NULLIF ( COUNT( * ), 94 ) + + - 95 ) * 24 AS col2, 0 * COUNT( * ) col0
----
-7381
0

skipif mysql # not compatible
query II rowsort label-2209
SELECT ALL - + 74 * + 68 + + 71 - 27 + - 58 + - 81 * 68 / 99 + + NULLIF ( + - 95, + NULLIF ( COUNT ( * ), 94 ) + + - 95 ) * 24 AS col2, 0 * COUNT ( * ) col0
----
-7381
0

query I rowsort
SELECT + - 85 * - 63
----
5355

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

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

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

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

query II rowsort
SELECT + 7, + 72 AS col2
----
7
72

query I rowsort
SELECT + 80 * - 54 AS col1
----
-4320

query I rowsort
SELECT DISTINCT 3 * - 24
----
-72

query II rowsort
SELECT ALL + 58 AS col0, 85
----
58
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT - 32 DIV + - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2218
SELECT - 32 / + - 52 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT + 38 + - - COUNT( * ) + + + SUM( ALL - 69 ) + + 75 + - 52
----
-7

skipif mysql # not compatible
query I rowsort label-2220
SELECT + 38 + - - COUNT ( * ) + + + SUM ( ALL - 69 ) + + 75 + - 52
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT DISTINCT COUNT( - 60 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT COUNT ( - 60 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2222
SELECT + 14 + ( + - COUNT( * ) ) + 99 AS col1, 56
----
112
56

skipif mysql # not compatible
query II rowsort label-2222
SELECT + 14 + ( + - COUNT ( * ) ) + 99 AS col1, 56
----
112
56

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

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

query I rowsort
SELECT DISTINCT - 71 * - 33 AS col1
----
2343

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2225
SELECT - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) - + - 93 / + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) - + - 93 / + 46
----
NULL

query I rowsort
SELECT DISTINCT - 99 + 80 + + 50 - 47
----
-16

query I rowsort
SELECT ALL + 44 + - 33 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2228
SELECT ALL - COALESCE ( + COUNT( * ), 44 ) + - 82 AS col0, 10 * + 94 AS col0
----
-83
940

skipif mysql # not compatible
query II rowsort label-2228
SELECT ALL - COALESCE ( + COUNT ( * ), 44 ) + - 82 AS col0, 10 * + 94 AS col0
----
-83
940

query I rowsort
SELECT - 60 + 69 * - 93 AS col2
----
-6477

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2230
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, CASE - - 42 WHEN + + 86 THEN + 79 END * - 48 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2230
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, CASE - - 42 WHEN + + 86 THEN + 79 END * - 48 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2231
SELECT 80 col0, - COUNT( * )
----
80
-1

skipif mysql # not compatible
query II rowsort label-2231
SELECT 80 col0, - COUNT ( * )
----
80
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL - 96 + - 60 + + COUNT( ALL 6 ) * + - 80 AS col0
----
-236

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL - 96 + - 60 + + COUNT ( ALL 6 ) * + - 80 AS col0
----
-236

query I rowsort
SELECT + 75 + - 16 AS col1
----
59

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

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

query II rowsort
SELECT + 89 + + 99 AS col2, - 38 * + 56
----
188
-2128

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2237
SELECT ALL + 55 - - NULLIF ( + ( - 66 ), COUNT( * ) + 54 ) + + 98 DIV 24
----
-7

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL + 55 - - NULLIF ( + ( - 66 ), COUNT ( * ) + 54 ) + + 98 / 24
----
-7

query I rowsort
SELECT + + 74 * - - 1 * + 43
----
3182

query I rowsort
SELECT ALL 94 * + - 93
----
-8742

query II rowsort
SELECT + 29 AS col2, + 89
----
29
89

query I rowsort
SELECT + + COALESCE ( + 69, - 72 * + 32 ) col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL CASE + COUNT( * ) WHEN + + 66 * - MAX( COALESCE ( 25, 97 ) ) + - 50 THEN - ( + - COUNT( * ) ) WHEN 79 + + 6 + 27 * - 80 / 41 + 21 * + 57 THEN NULL WHEN ( NULLIF ( + 93, - 15 * 3 ) ) THEN - 6 ELSE NULL END * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL CASE + COUNT ( * ) WHEN + + 66 * - MAX ( COALESCE ( 25, 97 ) ) + - 50 THEN - ( + - COUNT ( * ) ) WHEN 79 + + 6 + 27 * - 80 / 41 + 21 * + 57 THEN NULL WHEN ( NULLIF ( + 93, - 15 * 3 ) ) THEN - 6 ELSE NULL END * 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2243
SELECT + CASE - MAX( ALL + ( 21 ) ) WHEN 78 - + - 32 THEN + 70 - + MIN( - 87 ) WHEN - + 0 + COALESCE ( + 35, + 53 / + 45, - - CAST( NULL AS SIGNED ) * COUNT( * ) * COUNT( * ) + + 23 / + COUNT( * ), - - 7 * 68 ) - ( - 87 - 94 ) * ( + 25 ) THEN NULL ELSE NULL END * - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT + CASE - MAX ( ALL + ( 21 ) ) WHEN 78 - + - 32 THEN + 70 - + MIN ( - 87 ) WHEN - + 0 + COALESCE ( + 35, + 53 / + 45, - - CAST ( NULL AS INTEGER ) * COUNT ( * ) * COUNT ( * ) + + 23 / + COUNT ( * ), - - 7 * 68 ) - ( - 87 - 94 ) * ( + 25 ) THEN NULL ELSE NULL END * - 93 AS col1
----
NULL

query II rowsort
SELECT ALL + 93 AS col2, 36 AS col1
----
93
36

query I rowsort
SELECT - 35 - + + 41 AS col2
----
-76

query III rowsort
SELECT ALL + 39 AS col2, NULLIF ( 5, - + 18 ), 24 AS col2
----
39
5
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT DISTINCT + - SUM( + + COALESCE ( + 7, 56, + - ( + + 56 ) + COALESCE ( + 53, + - 94 ) ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT + - SUM ( + + COALESCE ( + 7, 56, + - ( + + 56 ) + COALESCE ( + 53, + - 94 ) ) ) AS col1
----
-7

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

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

query I rowsort
SELECT DISTINCT + ( 82 ) col0
----
82

query I rowsort
SELECT + 33 - + 85 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-2251
SELECT + AVG ( + 10 ) + + - NULLIF ( CASE + 76 WHEN - COUNT( * ) THEN NULL WHEN 10 + - 59 THEN + 13 ELSE CASE - + 39 WHEN - 7 THEN - - 51 WHEN + 59 THEN NULL ELSE NULL END END, + 7 ) col1, NULLIF ( - 54, + 80 ) * + - COUNT( * )
----
NULL
54

skipif mysql # not compatible
query II rowsort label-2251
SELECT + AVG ( + 10 ) + + - NULLIF ( CASE + 76 WHEN - COUNT ( * ) THEN NULL WHEN 10 + - 59 THEN + 13 ELSE CASE - + 39 WHEN - 7 THEN - - 51 WHEN + 59 THEN NULL ELSE NULL END END, + 7 ) col1, NULLIF ( - 54, + 80 ) * + - COUNT ( * )
----
NULL
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT ALL ( + + 53 ) / + ( + + CAST( NULL AS SIGNED ) ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL ( + + 53 ) / + ( + + CAST ( NULL AS INTEGER ) ) + + 88
----
NULL

query I rowsort
SELECT + 21 * - 78 AS col0
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL - 59 * + MAX( + 43 ) + 90 AS col2
----
-2447

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL - 59 * + MAX ( + 43 ) + 90 AS col2
----
-2447

query I rowsort
SELECT ALL 85 * - 21
----
-1785

query I rowsort
SELECT ALL 83 * 23 * + + 86 * - - 91 + COALESCE ( + + 70, - 9 )
----
14939904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2257
SELECT ALL COALESCE ( - 40, + COUNT( * ) + - COUNT( * ) * - + COUNT( * ), CASE MIN( ALL + 39 ) WHEN - 23 * 58 + + + CASE + 79 WHEN - - 51 THEN 13 + + + 10 WHEN 22 * 70 THEN NULL ELSE 62 DIV - ( + COUNT( * ) ) * - + 45 + - 70 + - 2 * COUNT( * ) END THEN + 84 END DIV + NULLIF ( 86, + 87 * - 96 ) ) * + MAX( 81 ) AS col1
----
-3240

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL COALESCE ( - 40, + COUNT ( * ) + - COUNT ( * ) * - + COUNT ( * ), CASE MIN ( ALL + 39 ) WHEN - 23 * 58 + + + CASE + 79 WHEN - - 51 THEN 13 + + + 10 WHEN 22 * 70 THEN NULL ELSE 62 / - ( + COUNT ( * ) ) * - + 45 + - 70 + - 2 * COUNT ( * ) END THEN + 84 END / + NULLIF ( 86, + 87 * - 96 ) ) * + MAX ( 81 ) AS col1
----
-3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2258
SELECT DISTINCT - 49 * 46 * 21 + + + SUM( + + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT - 49 * 46 * 21 + + + SUM ( + + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL 42 + - 93 - - ( 84 ) + 81 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT CASE - COUNT( * ) WHEN + - 41 THEN NULL ELSE - - 96 END - + 59 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-2260
SELECT CASE - COUNT ( * ) WHEN + - 41 THEN NULL ELSE - - 96 END - + 59 AS col2
----
37

query I rowsort
SELECT 88 * 8
----
704

onlyif mysql # DIV for integer division: 
query I rowsort label-2262
SELECT DISTINCT + 8 DIV - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT + 8 / - 75 AS col0
----
0

query I rowsort
SELECT + 90 - + 67 AS col0
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2264
SELECT ALL + - 57 * - 51 / ( - + CAST( NULL AS DECIMAL ) ) * 62 + 57 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL + - 57 * - 51 / ( - + CAST ( NULL AS REAL ) ) * 62 + 57 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2265
SELECT + CASE - 75 WHEN 48 * - 81 THEN NULL WHEN - 61 THEN NULL WHEN CAST( 83 AS SIGNED ) THEN - + 87 * + 75 ELSE - MIN( ALL - 45 ) END AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2265
SELECT + CASE - 75 WHEN 48 * - 81 THEN NULL WHEN - 61 THEN NULL WHEN CAST ( 83 AS INTEGER ) THEN - + 87 * + 75 ELSE - MIN ( ALL - 45 ) END AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2266
SELECT ALL + 59 - 45 + - NULLIF ( - + 76, - MIN( ALL - 33 ) ) - + + 61 * + 98 DIV - + 7 * - CAST( - - COUNT( * ) AS SIGNED )
----
-764

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL + 59 - 45 + - NULLIF ( - + 76, - MIN ( ALL - 33 ) ) - + + 61 * + 98 / - + 7 * - CAST ( - - COUNT ( * ) AS INTEGER )
----
-764

query I rowsort
SELECT DISTINCT 82 * ( - 84 ) AS col1
----
-6888

query I rowsort
SELECT ALL - - NULLIF ( 29, - - 80 * - 35 ) - 86
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT + NULLIF ( - - 38, + COUNT( * ) ) * - COALESCE ( - ( - 27 ), + 0, - 51 ) * - + 37 - 68
----
37894

skipif mysql # not compatible
query I rowsort label-2269
SELECT + NULLIF ( - - 38, + COUNT ( * ) ) * - COALESCE ( - ( - 27 ), + 0, - 51 ) * - + 37 - 68
----
37894

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL + 14 * + - ( COUNT( * ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL + 14 * + - ( COUNT ( * ) ) AS col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2271
SELECT ALL - + 52 - 6, + 92 DIV + COUNT( * ) AS col1
----
-58
92

skipif mysql # not compatible
query II rowsort label-2271
SELECT ALL - + 52 - 6, + 92 / + COUNT ( * ) AS col1
----
-58
92

query I rowsort
SELECT - 6 + + 5 AS col1
----
-1

query I rowsort
SELECT + ( - + 44 ) * 95 + - 88 AS col2
----
-4268

query I rowsort
SELECT + 28 * - + 47 + 40
----
-1276

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2275
SELECT 67 + - CAST( NULL AS DECIMAL ) AS col1, + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2275
SELECT 67 + - CAST ( NULL AS REAL ) AS col1, + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2276
SELECT 88 DIV + - 55 - + ( COUNT( DISTINCT + + 68 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-2276
SELECT 88 / + - 55 - + ( COUNT ( DISTINCT + + 68 ) )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2277
SELECT ALL - + COUNT( ALL 25 ), - COUNT( * ) DIV 14 * + 43 DIV + 57 col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-2277
SELECT ALL - + COUNT ( ALL 25 ), - COUNT ( * ) / 14 * + 43 / + 57 col2
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2278
SELECT MAX( 59 ), + 23 * + 45 * + - 3 AS col1
----
59
-3105

skipif mysql # not compatible
query II rowsort label-2278
SELECT MAX ( 59 ), + 23 * + 45 * + - 3 AS col1
----
59
-3105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2279
SELECT DISTINCT - COUNT( * ) + - + CAST( + 53 AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT - COUNT ( * ) + - + CAST ( + 53 AS INTEGER ) AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT ALL + 89 * + ( + CAST( + + 75 AS SIGNED ) )
----
6675

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL + 89 * + ( + CAST ( + + 75 AS INTEGER ) )
----
6675

query II rowsort
SELECT DISTINCT - 80 AS col1, 86 * - + 54 AS col1
----
-80
-4644

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL 9 + - 89 + - - NULLIF ( 58, + 88 * 98 + SUM( - - 79 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL 9 + - 89 + - - NULLIF ( 58, + 88 * 98 + SUM ( - - 79 ) ) AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2283
SELECT 80 * - 53 + + 53 / - CASE NULLIF ( - + 43, 32 ) WHEN - COUNT( * ) THEN NULL WHEN + - 38 - - CASE - 24 WHEN + CAST( NULL AS SIGNED ) + - 68 THEN 94 WHEN + - MAX( DISTINCT - 83 ) + COUNT( * ) + + + ( - 1 ) THEN - 10 * ( - 9 ) END + 95 THEN 70 / + 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT 80 * - 53 + + 53 / - CASE NULLIF ( - + 43, 32 ) WHEN - COUNT ( * ) THEN NULL WHEN + - 38 - - CASE - 24 WHEN + CAST ( NULL AS INTEGER ) + - 68 THEN 94 WHEN + - MAX ( DISTINCT - 83 ) + COUNT ( * ) + + + ( - 1 ) THEN - 10 * ( - 9 ) END + 95 THEN 70 / + 8 ELSE NULL END
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2285
SELECT COUNT ( * ) / - + 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2286
SELECT DISTINCT 2 + - - 86 + + + 16 - - 51 * + CAST( - MIN( + 49 ) AS SIGNED ) * - - 4
----
-9892

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT 2 + - - 86 + + + 16 - - 51 * + CAST ( - MIN ( + 49 ) AS INTEGER ) * - - 4
----
-9892

query I rowsort
SELECT ALL 37 + + 53 col2
----
90

query II rowsort
SELECT 59 AS col2, - 93
----
59
-93

query I rowsort
SELECT DISTINCT - 99 + + 66
----
-33

query I rowsort
SELECT ALL 31 * - + 55
----
-1705

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL 43 + - MIN( - 39 ) + + - 42 + + - ( - + 96 ) - 8 + ( COUNT( * ) ) * 90 col1
----
218

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL 43 + - MIN ( - 39 ) + + - 42 + + - ( - + 96 ) - 8 + ( COUNT ( * ) ) * 90 col1
----
218

query II rowsort
SELECT DISTINCT 56, - 24 - 26 AS col2
----
56
-50

query I rowsort
SELECT 53 + - 30 AS col2
----
23

query II rowsort
SELECT 89 col2, + 46
----
89
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2295
SELECT ( + 3 ) - ( - 4 ) + + - COUNT( * ) - 86 * - 29 + - 69 DIV - - ( 77 ) * + 17 * + 9
----
2500

skipif mysql # not compatible
query I rowsort label-2295
SELECT ( + 3 ) - ( - 4 ) + + - COUNT ( * ) - 86 * - 29 + - 69 / - - ( 77 ) * + 17 * + 9
----
2500

onlyif mysql # DIV for integer division: 
query II rowsort label-2296
SELECT + 87 + + - ( - 31 ) AS col0, - 26 + - 17 DIV - 71
----
118
-26

skipif mysql # not compatible
query II rowsort label-2296
SELECT + 87 + + - ( - 31 ) AS col0, - 26 + - 17 / - 71
----
118
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2297
SELECT DISTINCT 79, 21 + MIN( DISTINCT - 53 ) + + + 9 DIV + ( + 99 ) AS col1
----
79
-32

skipif mysql # not compatible
query II rowsort label-2297
SELECT DISTINCT 79, 21 + MIN ( DISTINCT - 53 ) + + + 9 / + ( + 99 ) AS col1
----
79
-32

query I rowsort
SELECT - 10 + + 22 AS col1
----
12

query II rowsort
SELECT DISTINCT - 4, 92 AS col2
----
-4
92

query I rowsort
SELECT - 37 + 98 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT + MIN( + COALESCE ( 82, + + 36, - 76 ) ) * + + COALESCE ( - ( + + 78 ), 85, + COUNT( * ) + + + 87 + - + 98 * 57, 64 )
----
-6396

skipif mysql # not compatible
query I rowsort label-2301
SELECT + MIN ( + COALESCE ( 82, + + 36, - 76 ) ) * + + COALESCE ( - ( + + 78 ), 85, + COUNT ( * ) + + + 87 + - + 98 * 57, 64 )
----
-6396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2302
SELECT COUNT( * ) * 93 + + + 22 * ( - 17 ) DIV + MAX( DISTINCT - 17 ) + - 36 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2302
SELECT COUNT ( * ) * 93 + + + 22 * ( - 17 ) / + MAX ( DISTINCT - 17 ) + - 36 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - COUNT( + 31 ) + - - 46 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-2303
SELECT - COUNT ( + 31 ) + - - 46 AS col1
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-2304
SELECT - 91, - 44 DIV - 46 AS col2
----
-91
0

skipif mysql # not compatible
query II rowsort label-2304
SELECT - 91, - 44 / - 46 AS col2
----
-91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT - ( - COALESCE ( - - 5, + 86 + - 4 DIV 37 + 8 DIV - 9 * + - 94 ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2305
SELECT - ( - COALESCE ( - - 5, + 86 + - 4 / 37 + 8 / - 9 * + - 94 ) ) AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2306
SELECT ALL - 3 DIV 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL - 3 / 21 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT + COALESCE ( + 31, MAX( - 23 ), + 19 + - - ( ( - + 42 ) ) * - 19 + - 48 + + + 83 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2307
SELECT + COALESCE ( + 31, MAX ( - 23 ), + 19 + - - ( ( - + 42 ) ) * - 19 + - 48 + + + 83 ) AS col2
----
31

query I rowsort
SELECT COALESCE ( 39, - - 26 ) + - 65
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2309
SELECT DISTINCT - 53 * - + COALESCE ( + 48, - + 45 * 30 DIV + COUNT( * ) ) AS col0
----
2544

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT - 53 * - + COALESCE ( + 48, - + 45 * 30 / + COUNT ( * ) ) AS col0
----
2544

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT MAX( - 7 ) * + 75 + - 98
----
-623

skipif mysql # not compatible
query I rowsort label-2310
SELECT MAX ( - 7 ) * + 75 + - 98
----
-623

query I rowsort
SELECT ALL - CASE 75 WHEN - - 36 + - 86 - - 88 + - 60 / + 13 THEN NULL ELSE 31 END AS col0
----
-31

query II rowsort
SELECT ALL 23 * - + 57 * - 78 AS col0, + 89 AS col1
----
102258
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2313
SELECT SUM( + - 2 ) + - 74 AS col2, 17
----
-76
17

skipif mysql # not compatible
query II rowsort label-2313
SELECT SUM ( + - 2 ) + - 74 AS col2, 17
----
-76
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2314
SELECT CAST( NULL AS DECIMAL ) - - - COUNT( * ) + 59 + + 97 * + 27 * 60 * - - CAST( NULL AS SIGNED ) - - COALESCE ( + COUNT( * ), + - 20 + 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT CAST ( NULL AS REAL ) - - - COUNT ( * ) + 59 + + 97 * + 27 * 60 * - - CAST ( NULL AS INTEGER ) - - COALESCE ( + COUNT ( * ), + - 20 + 5 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2315
SELECT DISTINCT 38 * - CAST( 19 AS SIGNED ) + 98, 52 col2
----
-624
52

skipif mysql # not compatible
query II rowsort label-2315
SELECT DISTINCT 38 * - CAST ( 19 AS INTEGER ) + 98, 52 col2
----
-624
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT ALL - ( + 42 ) AS col2, 97 * + 89 - + COUNT( * ) AS col1
----
-42
8632

skipif mysql # not compatible
query II rowsort label-2316
SELECT ALL - ( + 42 ) AS col2, 97 * + 89 - + COUNT ( * ) AS col1
----
-42
8632

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL - CASE WHEN NOT 21 IN ( 32, ( - + 54 ), - 59, + + COUNT( * ), + 70, + 29 ) THEN NULL ELSE - + 75 * + SUM( + - ( + 90 ) ) + 17 + - 40 + + 76 - 21 * - CASE 59 WHEN + - 93 + - 28 THEN 17 + 80 * + 7 ELSE - 65 - - 23 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL - CASE WHEN NOT 21 IN ( 32, ( - + 54 ), - 59, + + COUNT ( * ), + 70, + 29 ) THEN NULL ELSE - + 75 * + SUM ( + - ( + 90 ) ) + 17 + - 40 + + 76 - 21 * - CASE 59 WHEN + - 93 + - 28 THEN 17 + 80 * + 7 ELSE - 65 - - 23 END END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2318
SELECT ALL - 11 * COUNT( * ) * 77 + 73 AS col0, - ( - - 41 )
----
-774
-41

skipif mysql # not compatible
query II rowsort label-2318
SELECT ALL - 11 * COUNT ( * ) * 77 + 73 AS col0, - ( - - 41 )
----
-774
-41

query I rowsort
SELECT DISTINCT + 40 * - + NULLIF ( 91, - + 11 ) AS col2
----
-3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2320
SELECT DISTINCT - 61 * - 91 * + 94 + - - 47, - COUNT( * ) + - - 13 * + 11 * + + 5 / + + CAST( NULL AS SIGNED ) AS col1
----
521841
NULL

skipif mysql # not compatible
query II rowsort label-2320
SELECT DISTINCT - 61 * - 91 * + 94 + - - 47, - COUNT ( * ) + - - 13 * + 11 * + + 5 / + + CAST ( NULL AS INTEGER ) AS col1
----
521841
NULL

query I rowsort
SELECT ALL 19 * - + 91 + 4 + 11 AS col1
----
-1714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT - ( + - 28 ) - - 42 * CAST( + 21 AS SIGNED ) * + 97
----
85582

skipif mysql # not compatible
query I rowsort label-2322
SELECT - ( + - 28 ) - - 42 * CAST ( + 21 AS INTEGER ) * + 97
----
85582

query I rowsort
SELECT ALL + 58 * 9 * + 7 AS col0
----
3654

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

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

query I rowsort
SELECT ALL + NULLIF ( + + ( - 6 ), + - AVG ( ALL 41 ) * + 20 )
----
-6

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

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

query I rowsort
SELECT + 90 * + + 45
----
4050

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

skipif mysql # not compatible
query I rowsort label-2328
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT - + 93 ) / + COUNT ( * ) + CAST ( NULL AS INTEGER ) + - 43 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2329
SELECT DISTINCT ( CAST( + + COALESCE ( - 66, - COALESCE ( - - 68, - CAST( + + 48 AS SIGNED ) + - - NULLIF ( - MAX( 92 ), + - ( + - 89 ) * - MAX( DISTINCT 89 ) ) ) + 36 ) AS SIGNED ) )
----
-66

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT ( CAST ( + + COALESCE ( - 66, - COALESCE ( - - 68, - CAST ( + + 48 AS INTEGER ) + - - NULLIF ( - MAX ( 92 ), + - ( + - 89 ) * - MAX ( DISTINCT 89 ) ) ) + 36 ) AS INTEGER ) )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2330
SELECT DISTINCT + 25 DIV COALESCE ( - + 78, - + 92 * + - COUNT( ALL - 48 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT + 25 / COALESCE ( - + 78, - + 92 * + - COUNT ( ALL - 48 ) )
----
0

query I rowsort
SELECT - NULLIF ( - 80, 96 + + 0 ) AS col2
----
80

query II rowsort
SELECT ALL + ( + ( + 8 ) ) - + + 72 AS col2, 97 AS col1
----
-64
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2333
SELECT ALL - + CAST( - - 81 AS SIGNED ) DIV 48 + 28
----
27

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL - + CAST ( - - 81 AS INTEGER ) / 48 + 28
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2334
SELECT - - NULLIF ( - CAST( NULL AS SIGNED ), - CASE + - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) / - 3 + - AVG ( DISTINCT + 38 ) - 52 * 46 THEN - 82 END - - 97 - + 49 ) * + - CAST( + COALESCE ( 89, COALESCE ( - 61, + 52 + - 6 * - + ( + ( + 67 ) ) / - 98, COUNT( * ) ) - - 96, 21 + + CASE - 65 WHEN COUNT( * ) THEN CAST( NULL AS DECIMAL ) WHEN - 79 - + MIN( - 89 ) THEN - 24 + + 11 / 9 END ) AS SIGNED ) * NULLIF ( + 43 + COUNT( * ), 47 * ( 13 ) ) + - 31 * + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT - - NULLIF ( - CAST ( NULL AS INTEGER ), - CASE + - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) / - 3 + - AVG ( DISTINCT + 38 ) - 52 * 46 THEN - 82 END - - 97 - + 49 ) * + - CAST ( + COALESCE ( 89, COALESCE ( - 61, + 52 + - 6 * - + ( + ( + 67 ) ) / - 98, COUNT ( * ) ) - - 96, 21 + + CASE - 65 WHEN COUNT ( * ) THEN CAST ( NULL AS REAL ) WHEN - 79 - + MIN ( - 89 ) THEN - 24 + + 11 / 9 END ) AS INTEGER ) * NULLIF ( + 43 + COUNT ( * ), 47 * ( 13 ) ) + - 31 * + 60 AS col0
----
NULL

query II rowsort
SELECT - + ( - NULLIF ( + 30, 50 ) ) AS col1, 74 col1
----
30
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2336
SELECT + CASE - - COALESCE ( + CASE + - ( - 66 ) WHEN - - COUNT( DISTINCT 38 ) + - + 66 * + NULLIF ( - + CAST( NULL AS SIGNED ), + 97 ) * - SUM( + - 46 ) * - 90 + + 82 THEN + 19 END, + CASE - 82 WHEN + ( - 36 ) THEN 55 * - 22 * + - 51 - 55 + 99 DIV COALESCE ( - 24, - COUNT( * ) * + CASE WHEN NOT + 55 DIV + SUM( DISTINCT 12 * 64 ) = 67 THEN - 14 END + 69, MIN( 24 ) ) ELSE NULL END, + 32 ) WHEN + COUNT( * ) THEN NULL WHEN - 70 THEN - 71 + 51 DIV - 66 ELSE 30 + COUNT( * ) END + COALESCE ( - 84, 32, + 51 )
----
-53

skipif mysql # not compatible
query I rowsort label-2336
SELECT + CASE - - COALESCE ( + CASE + - ( - 66 ) WHEN - - COUNT ( DISTINCT 38 ) + - + 66 * + NULLIF ( - + CAST ( NULL AS INTEGER ), + 97 ) * - SUM ( + - 46 ) * - 90 + + 82 THEN + 19 END, + CASE - 82 WHEN + ( - 36 ) THEN 55 * - 22 * + - 51 - 55 + 99 / COALESCE ( - 24, - COUNT ( * ) * + CASE WHEN NOT + 55 / + SUM ( DISTINCT 12 * 64 ) = 67 THEN - 14 END + 69, MIN ( 24 ) ) ELSE NULL END, + 32 ) WHEN + COUNT ( * ) THEN NULL WHEN - 70 THEN - 71 + 51 / - 66 ELSE 30 + COUNT ( * ) END + COALESCE ( - 84, 32, + 51 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + 1 + + 44 + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-2337
SELECT + 1 + + 44 + COUNT ( * )
----
46

query I rowsort
SELECT ALL ( - 61 ) * + 81
----
-4941

query II rowsort
SELECT + + 85 - + 34, + 79 * - 96 AS col1
----
51
-7584

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT + - COUNT( * ) - 30 - 22
----
-53

skipif mysql # not compatible
query I rowsort label-2340
SELECT + - COUNT ( * ) - 30 - 22
----
-53

query I rowsort
SELECT ALL + 30 + 11
----
41

query I rowsort
SELECT + 98 + - 0
----
98

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

query I rowsort
SELECT + 50 + - 5 AS col0
----
45

query I rowsort
SELECT ALL - 26 * + 5 * 79
----
-10270

query I rowsort
SELECT DISTINCT + NULLIF ( + 3, - + 72 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2347
SELECT DISTINCT + 34 * - 85 - + COUNT( * ), 28 AS col0
----
-2891
28

skipif mysql # not compatible
query II rowsort label-2347
SELECT DISTINCT + 34 * - 85 - + COUNT ( * ), 28 AS col0
----
-2891
28

query I rowsort
SELECT DISTINCT 84 * - - 0 col0
----
0

query I rowsort
SELECT - ( - + 41 ) + + 29 + - 34 AS col0
----
36

query I rowsort
SELECT ALL + NULLIF ( + 14, - COALESCE ( 75, - 75, - - 79 * 16 ) ) AS col2
----
14

query I rowsort
SELECT + NULLIF ( + 91, 27 ) + + 64
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2352
SELECT NULLIF ( 18, 23 + - + 6 DIV - 98 + 73 ) col2, + 82 DIV + - COUNT( * ) AS col1
----
18
-82

skipif mysql # not compatible
query II rowsort label-2352
SELECT NULLIF ( 18, 23 + - + 6 / - 98 + 73 ) col2, + 82 / + - COUNT ( * ) AS col1
----
18
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2353
SELECT + 33 * - CAST( NULL AS SIGNED ) + + - 20 AS col2, - 6
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-2353
SELECT + 33 * - CAST ( NULL AS INTEGER ) + + - 20 AS col2, - 6
----
NULL
-6

query I rowsort
SELECT COALESCE ( - 30, + 92, + NULLIF ( - 65, - 89 ) ) AS col2
----
-30

query I rowsort
SELECT DISTINCT 58 * - 21 - - 28 * - 66 + + + 14 AS col0
----
-3052

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL + NULLIF ( + 62, - 38 * - + COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL + NULLIF ( + 62, - 38 * - + COUNT ( * ) )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2357
SELECT COALESCE ( ( 89 ), - CAST( - 34 AS SIGNED ) * NULLIF ( + MAX( DISTINCT + + 99 ), + + 54 ) * - + 27 + + + CASE - 75 WHEN 12 THEN + 46 END + - 60 )
----
89

skipif mysql # not compatible
query I rowsort label-2357
SELECT COALESCE ( ( 89 ), - CAST ( - 34 AS INTEGER ) * NULLIF ( + MAX ( DISTINCT + + 99 ), + + 54 ) * - + 27 + + + CASE - 75 WHEN 12 THEN + 46 END + - 60 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2358
SELECT - CASE 20 WHEN 67 THEN + 95 ELSE NULL END - + 82 * - COUNT( + 72 ) * + 43 * - MIN( DISTINCT - - 55 ) + - 15 * - 74 / 90 / 70 * - - 31 * + - 36 * + 44 + CAST( NULL AS SIGNED ) - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT - CASE 20 WHEN 67 THEN + 95 ELSE NULL END - + 82 * - COUNT ( + 72 ) * + 43 * - MIN ( DISTINCT - - 55 ) + - 15 * - 74 / 90 / 70 * - - 31 * + - 36 * + 44 + CAST ( NULL AS INTEGER ) - + 4
----
NULL

query I rowsort
SELECT - 30 * + + 52 col1
----
-1560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT ALL - + 37 * - CAST( - CASE ( - + 69 ) WHEN - 40 * 80 THEN NULL ELSE 50 + - - 90 * + 64 + + 24 END AS SIGNED ) AS col0
----
-215858

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL - + 37 * - CAST ( - CASE ( - + 69 ) WHEN - 40 * 80 THEN NULL ELSE 50 + - - 90 * + 64 + + 24 END AS INTEGER ) AS col0
----
-215858

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

skipif mysql # not compatible
query I rowsort label-2361
SELECT - + 91 + + - 71 + ( + - ( - COUNT ( * ) ) ) AS col1
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL - - NULLIF ( - + COUNT( * ), + 46 ) * 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - - NULLIF ( - + COUNT ( * ), + 46 ) * 20 AS col2
----
-20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL - - COUNT( * ) * 15 + + ( - COALESCE ( 7, COUNT( * ), 65 ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL - - COUNT ( * ) * 15 + + ( - COALESCE ( 7, COUNT ( * ), 65 ) ) AS col1
----
8

query I rowsort
SELECT - 58 + + 10 col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT NULLIF ( 23, - COUNT( * ) + + 84 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2366
SELECT NULLIF ( 23, - COUNT ( * ) + + 84 ) AS col0
----
23

query I rowsort
SELECT - 72 + + - 79 AS col1
----
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT ALL - NULLIF ( + 44, - COUNT( * ) ) AS col0, - 74
----
-44
-74

skipif mysql # not compatible
query II rowsort label-2368
SELECT ALL - NULLIF ( + 44, - COUNT ( * ) ) AS col0, - 74
----
-44
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-2369
SELECT ALL + 29, MAX( ALL + 9 ) AS col2
----
29
9

skipif mysql # not compatible
query II rowsort label-2369
SELECT ALL + 29, MAX ( ALL + 9 ) AS col2
----
29
9

query I rowsort
SELECT - 85 + + 22 + + 56 * 6
----
273

query I rowsort
SELECT ALL - 75 + - - 35 - 81 + - + 60
----
-181

query I rowsort
SELECT ALL + 95 + + 72 + - - 76
----
243

query I rowsort
SELECT - + 89 + 82 * - + 14 AS col2
----
-1237

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT + - 14 + ( SUM( ALL + 55 ) ) * - 46
----
-2544

skipif mysql # not compatible
query I rowsort label-2374
SELECT + - 14 + ( SUM ( ALL + 55 ) ) * - 46
----
-2544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2375
SELECT ALL - COUNT( * ) + - COALESCE ( - - COUNT( * ), + + 94 + 81 + + 69 + + 52 DIV + 24 + - + 67 + - 92 + - 20 * - 45 + 59 DIV - - 53 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL - COUNT ( * ) + - COALESCE ( - - COUNT ( * ), + + 94 + 81 + + 69 + + 52 / + 24 + - + 67 + - 92 + - 20 * - 45 + 59 / - - 53 ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT ALL CASE + 0 WHEN + - CASE + + COUNT( * ) WHEN + COALESCE ( - - COUNT( * ), - ( - CAST( - COUNT( * ) AS SIGNED ) ) ) THEN - - 59 WHEN + - 48 THEN COUNT( * ) * 52 ELSE NULL END THEN 39 WHEN + COUNT( * ) * + + ( - 64 ) * + - 24 + + - COUNT( * ) * + 15 * + + 30 THEN 41 - - 71 END * + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL CASE + 0 WHEN + - CASE + + COUNT ( * ) WHEN + COALESCE ( - - COUNT ( * ), - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) ) THEN - - 59 WHEN + - 48 THEN COUNT ( * ) * 52 ELSE NULL END THEN 39 WHEN + COUNT ( * ) * + + ( - 64 ) * + - 24 + + - COUNT ( * ) * + 15 * + + 30 THEN 41 - - 71 END * + 64 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT + + 28 + - COUNT ( * ) AS col1
----
27

query I rowsort
SELECT ALL 18 + - 52 * 5 - 38 AS col1
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT + 58 * - 16 + - 85 + + - 18 * - - 97 + - SUM( 4 ) AS col0
----
-2763

skipif mysql # not compatible
query I rowsort label-2379
SELECT + 58 * - 16 + - 85 + + - 18 * - - 97 + - SUM ( 4 ) AS col0
----
-2763

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

skipif mysql # not compatible
query I rowsort label-2380
SELECT - 2 * + + ( - AVG ( - - CAST ( NULL AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT 51, + 10 AS col1
----
51
10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2382
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, - 80 + + + 83 - - - 78
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-2382
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, - 80 + + + 83 - - - 78
----
NULL
-75

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

query I rowsort
SELECT ALL 38 - 50 AS col2
----
-12

query I rowsort
SELECT 57 * 49
----
2793

query I rowsort
SELECT ALL 50 * + + ( 82 )
----
4100

onlyif mysql # aggregate syntax: 
query II rowsort label-2387
SELECT 75 AS col0, 90 + - SUM( + 62 ) + + COUNT( * )
----
75
29

skipif mysql # not compatible
query II rowsort label-2387
SELECT 75 AS col0, 90 + - SUM ( + 62 ) + + COUNT ( * )
----
75
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2388
SELECT ( - 62 ) + + 99 * - 94 * 91 * MAX( - - 78 ) AS col1, + 14 + + CASE + - 55 WHEN - - CAST( NULL AS SIGNED ) + 11 THEN + + 66 WHEN 9 THEN + 7 WHEN + 85 + - - 16 THEN - 81 END + - ( + COUNT( * ) ) * + 65 - - + 54 * + CAST( NULL AS SIGNED ) / 38 + 63 - - - ( - 65 )
----
-66054050
NULL

skipif mysql # not compatible
query II rowsort label-2388
SELECT ( - 62 ) + + 99 * - 94 * 91 * MAX ( - - 78 ) AS col1, + 14 + + CASE + - 55 WHEN - - CAST ( NULL AS INTEGER ) + 11 THEN + + 66 WHEN 9 THEN + 7 WHEN + 85 + - - 16 THEN - 81 END + - ( + COUNT ( * ) ) * + 65 - - + 54 * + CAST ( NULL AS INTEGER ) / 38 + 63 - - - ( - 65 )
----
-66054050
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2389
SELECT 47 * COALESCE ( 22, - 97 + - MAX( 83 ) DIV - + 79 * - 8, + 42 * 83 )
----
1034

skipif mysql # not compatible
query I rowsort label-2389
SELECT 47 * COALESCE ( 22, - 97 + - MAX ( 83 ) / - + 79 * - 8, + 42 * 83 )
----
1034

onlyif mysql # aggregate syntax: 
query II rowsort label-2390
SELECT 67 AS col0, - 90 * COALESCE ( COUNT( * ), - COUNT( - + 56 ), - 34 + - 30 ) + 27 * 11
----
67
207

skipif mysql # not compatible
query II rowsort label-2390
SELECT 67 AS col0, - 90 * COALESCE ( COUNT ( * ), - COUNT ( - + 56 ), - 34 + - 30 ) + 27 * 11
----
67
207

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2391
SELECT 1 DIV - - COUNT( * ), ( + COUNT( * ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-2391
SELECT 1 / - - COUNT ( * ), ( + COUNT ( * ) )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL 72 * + + COUNT( * ) * 67
----
4824

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL 72 * + + COUNT ( * ) * 67
----
4824

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT SUM( DISTINCT 43 ) * + + 93 AS col1
----
3999

skipif mysql # not compatible
query I rowsort label-2393
SELECT SUM ( DISTINCT 43 ) * + + 93 AS col1
----
3999

query II rowsort
SELECT + 2 col2, + 72 * - 78
----
2
-5616

query II rowsort
SELECT ALL - 52 AS col2, 48 AS col1
----
-52
48

query I rowsort
SELECT ALL + 69 * + + 79 AS col2
----
5451

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT CASE + COALESCE ( - 56, - 82 * 56 + - 91 ) WHEN - 88 THEN + + 1 * - - CASE CASE - COUNT( * ) WHEN - 87 * + 85 THEN NULL WHEN + - 55 THEN + 6 * - 70 + - 9 END WHEN + 35 THEN NULL ELSE - + 62 END WHEN 16 * + 53 * - MIN( DISTINCT - + 28 ) THEN 6 + - 79 ELSE NULL END / + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT CASE + COALESCE ( - 56, - 82 * 56 + - 91 ) WHEN - 88 THEN + + 1 * - - CASE CASE - COUNT ( * ) WHEN - 87 * + 85 THEN NULL WHEN + - 55 THEN + 6 * - 70 + - 9 END WHEN + 35 THEN NULL ELSE - + 62 END WHEN 16 * + 53 * - MIN ( DISTINCT - + 28 ) THEN 6 + - 79 ELSE NULL END / + 26 AS col2
----
NULL

query I rowsort
SELECT ALL 36 * + 37 AS col2
----
1332

query II rowsort
SELECT + 16 * 32 + + CASE - - ( 6 ) WHEN - + 83 THEN - 31 ELSE + 75 * - 57 END + - - 15 * - 19 AS col2, - 81 * + 2
----
-4048
-162

query I rowsort
SELECT ALL 12 * - 41 AS col0
----
-492

query I rowsort
SELECT DISTINCT + 98 * - 8 * + - 48
----
37632

query I rowsort
SELECT ALL ( 43 ) * - 26
----
-1118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2403
SELECT 18 DIV ( COUNT( * ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2403
SELECT 18 / ( COUNT ( * ) ) AS col0
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT COUNT( * ) * - NULLIF ( 56, MIN( - 74 ) ) + - 56 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-2405
SELECT COUNT ( * ) * - NULLIF ( 56, MIN ( - 74 ) ) + - 56 AS col0
----
-112

query III rowsort
SELECT + 76 AS col1, 14 * - + 28 * 7 AS col2, 87 AS col2
----
76
-2744
87

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

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

query I rowsort
SELECT DISTINCT - - 68 + + + 64 + - 24 * + NULLIF ( 14, - 89 - - + 84 )
----
-204

query I rowsort
SELECT DISTINCT 44 + 94
----
138

query I rowsort
SELECT ALL - 24 + + - 90 + 42
----
-72

query I rowsort
SELECT DISTINCT + 66 + ( - + 64 ) + 33 AS col1
----
35

query II rowsort
SELECT 77 AS col1, - 71 AS col0
----
77
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL SUM( DISTINCT + + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL SUM ( DISTINCT + + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT DISTINCT - - MAX( + 46 ) + + 95 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT - - MAX ( + 46 ) + + 95 AS col1
----
141

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2416
SELECT ALL - + COALESCE ( - 41, 67, + 76 * + COUNT( * ) - + - 12 + ( - 3 ) DIV 79 * 91 + 12 ) + + 58 col1
----
99

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL - + COALESCE ( - 41, 67, + 76 * + COUNT ( * ) - + - 12 + ( - 3 ) / 79 * 91 + 12 ) + + 58 col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT MIN( ALL - - 69 ) - 31 * 21 + 15
----
-567

skipif mysql # not compatible
query I rowsort label-2417
SELECT MIN ( ALL - - 69 ) - 31 * 21 + 15
----
-567

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2418
SELECT - - 56, CAST( 92 AS SIGNED ) AS col1
----
56
92

skipif mysql # not compatible
query II rowsort label-2418
SELECT - - 56, CAST ( 92 AS INTEGER ) AS col1
----
56
92

query I rowsort
SELECT ALL - 88 + - 73 col1
----
-161

query I rowsort
SELECT + 72 - + - 30 col1
----
102

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

query I rowsort
SELECT + ( - 73 ) + 88
----
15

query I rowsort
SELECT + 55 * ( - 93 ) AS col0
----
-5115

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

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

query I rowsort
SELECT 36 + + 43 * - 58 AS col0
----
-2458

query I rowsort
SELECT ALL - NULLIF ( - + 74, + + 56 ) - ( 10 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2427
SELECT DISTINCT + 44 * + 63 * COUNT( * ), 26 AS col0
----
2772
26

skipif mysql # not compatible
query II rowsort label-2427
SELECT DISTINCT + 44 * + 63 * COUNT ( * ), 26 AS col0
----
2772
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT COUNT( + 29 ) + 16
----
17

skipif mysql # not compatible
query I rowsort label-2429
SELECT COUNT ( + 29 ) + 16
----
17

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

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

query I rowsort
SELECT 85 + + 92 * 48
----
4501

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT 92 * + 17 * - 17 * SUM( + + 11 ) * + COUNT( ALL - 70 )
----
-292468

skipif mysql # not compatible
query I rowsort label-2433
SELECT 92 * + 17 * - 17 * SUM ( + + 11 ) * + COUNT ( ALL - 70 )
----
-292468

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT SUM( + - 70 ) + + 32 col2
----
-38

skipif mysql # not compatible
query I rowsort label-2434
SELECT SUM ( + - 70 ) + + 32 col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT 73 * + 63 * + 41 + + + COUNT( * ) * 6
----
188565

skipif mysql # not compatible
query I rowsort label-2435
SELECT 73 * + 63 * + 41 + + + COUNT ( * ) * 6
----
188565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2436
SELECT 82 * + CASE 32 WHEN - - COUNT( * ) + - COUNT( * ) THEN - 80 WHEN - CAST( - + 36 AS SIGNED ) / - CAST( 5 AS SIGNED ) * + 89 - - 61 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT 82 * + CASE 32 WHEN - - COUNT ( * ) + - COUNT ( * ) THEN - 80 WHEN - CAST ( - + 36 AS INTEGER ) / - CAST ( 5 AS INTEGER ) * + 89 - - 61 THEN NULL END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2438
SELECT NULLIF ( + SUM( - + 49 ), + CAST( NULL AS DECIMAL ) - + 28 / 23 * + 23 ) * - - ( + ( + - 8 ) ) - + 67 AS col0
----
325

skipif mysql # not compatible
query I rowsort label-2438
SELECT NULLIF ( + SUM ( - + 49 ), + CAST ( NULL AS REAL ) - + 28 / 23 * + 23 ) * - - ( + ( + - 8 ) ) - + 67 AS col0
----
325

query I rowsort
SELECT + - 57 * + 33 + - 17 + + + 29
----
-1869

query I rowsort
SELECT + 10 * - 81
----
-810

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT 39 * + MIN( ALL - 79 ) + - + 24 AS col1
----
-3105

skipif mysql # not compatible
query I rowsort label-2442
SELECT 39 * + MIN ( ALL - 79 ) + - + 24 AS col1
----
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL MAX( ALL 80 ) + - SUM( ALL + ( + - 93 ) ) + - - 40 * + 76 * - - 27
----
82253

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL MAX ( ALL 80 ) + - SUM ( ALL + ( + - 93 ) ) + - - 40 * + 76 * - - 27
----
82253

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL COUNT( * ) + + 75 + - 99 * - ( + COUNT( * ) ) - - COUNT( * ) * + + 59 * + 95 * - 68 * - 73 + + 18 * - 56
----
27822387

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL COUNT ( * ) + + 75 + - 99 * - ( + COUNT ( * ) ) - - COUNT ( * ) * + + 59 * + 95 * - 68 * - 73 + + 18 * - 56
----
27822387

onlyif mysql # aggregate syntax: 
query II rowsort label-2445
SELECT DISTINCT - COUNT( * ) + + - 68, + 56 AS col0
----
-69
56

skipif mysql # not compatible
query II rowsort label-2445
SELECT DISTINCT - COUNT ( * ) + + - 68, + 56 AS col0
----
-69
56

query I rowsort
SELECT DISTINCT + 51 * ( + + 23 ) AS col2
----
1173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT ALL - 92 + 13 + 90 * CAST( NULL AS SIGNED ) * COUNT( * ) / 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL - 92 + 13 + 90 * CAST ( NULL AS INTEGER ) * COUNT ( * ) / 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT + 43 + + 26 DIV - 86 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-2448
SELECT + 43 + + 26 / - 86 AS col1
----
43

query I rowsort
SELECT 25 + - 50 + + - 82 AS col2
----
-107

query I rowsort
SELECT ( + - 13 ) + 43
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT + 82 * + + NULLIF ( - 86, 79 + + CASE - 56 WHEN + 96 THEN + COALESCE ( - - 55, + MAX( DISTINCT + 29 ) ) + + 47 WHEN 81 THEN - 4 * - + 40 END + + + 75 + - 20 + + + 22 * 89 - 46 + - 87 ) - - 11 AS col1
----
-7041

skipif mysql # not compatible
query I rowsort label-2451
SELECT + 82 * + + NULLIF ( - 86, 79 + + CASE - 56 WHEN + 96 THEN + COALESCE ( - - 55, + MAX ( DISTINCT + 29 ) ) + + 47 WHEN 81 THEN - 4 * - + 40 END + + + 75 + - 20 + + + 22 * 89 - 46 + - 87 ) - - 11 AS col1
----
-7041

query I rowsort
SELECT 71 * + 53 * 64 AS col2
----
240832

query I rowsort
SELECT + 70 + 71 + - 6 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT COUNT( * ) + + - 69
----
-68

skipif mysql # not compatible
query I rowsort label-2454
SELECT COUNT ( * ) + + - 69
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - - ( + ( - NULLIF ( + ( + + 55 ), - 30 - + + 45 + + - NULLIF ( + - 78, - 47 + - 86 + + 23 + + 71 / + COUNT( * ) ) - + 88 ) ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2455
SELECT - - ( + ( - NULLIF ( + ( + + 55 ), - 30 - + + 45 + + - NULLIF ( + - 78, - 47 + - 86 + + 23 + + 71 / + COUNT ( * ) ) - + 88 ) ) ) AS col0
----
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + 93 * - ( CASE - NULLIF ( COALESCE ( - 91, - 1 - 18 / + - SUM( ALL 2 ) + 97, + 68 ), 17 + - + SUM( 56 ) * 2 ) WHEN - 78 + + + SUM( + 51 ) THEN + 99 WHEN 51 THEN NULL ELSE NULL END ) + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT + 93 * - ( CASE - NULLIF ( COALESCE ( - 91, - 1 - 18 / + - SUM ( ALL 2 ) + 97, + 68 ), 17 + - + SUM ( 56 ) * 2 ) WHEN - 78 + + + SUM ( + 51 ) THEN + 99 WHEN 51 THEN NULL ELSE NULL END ) + 5
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT - COALESCE ( 51, + + 0 + + + 28 - 27 * + COUNT( * ) ) + - + 49 + - 93 + + - MIN( DISTINCT + ( 41 ) ) - - COUNT( * ) - + 8 * + CASE - ( + 48 ) WHEN + COUNT( * ) * + 27 + - - 10 THEN + 75 WHEN 55 THEN 66 END * 8 * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT - COALESCE ( 51, + + 0 + + + 28 - 27 * + COUNT ( * ) ) + - + 49 + - 93 + + - MIN ( DISTINCT + ( 41 ) ) - - COUNT ( * ) - + 8 * + CASE - ( + 48 ) WHEN + COUNT ( * ) * + 27 + - - 10 THEN + 75 WHEN 55 THEN 66 END * 8 * + 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2460
SELECT ALL + 95 * - 29 DIV + COUNT( DISTINCT 97 ) col2
----
-2755

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL + 95 * - 29 / + COUNT ( DISTINCT 97 ) col2
----
-2755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2461
SELECT 87, NULLIF ( - COALESCE ( - - 0, - 8 + + - ( CAST( + + CAST( - ( + COUNT( * ) ) AS SIGNED ) AS SIGNED ) ) ), - 17 * 36 * + + 29 + 69 ) col2
----
87
0

skipif mysql # not compatible
query II rowsort label-2461
SELECT 87, NULLIF ( - COALESCE ( - - 0, - 8 + + - ( CAST ( + + CAST ( - ( + COUNT ( * ) ) AS INTEGER ) AS INTEGER ) ) ), - 17 * 36 * + + 29 + 69 ) col2
----
87
0

query I rowsort
SELECT - 97 + + 73 AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2463
SELECT - NULLIF ( - + 71, COALESCE ( + - 87, COUNT( ALL + CAST( NULL AS SIGNED ) ) * - 25 * - + 75 / 16 + + 21 ) / - - ( + 99 ) ) col0
----
71

skipif mysql # not compatible
query I rowsort label-2463
SELECT - NULLIF ( - + 71, COALESCE ( + - 87, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * - 25 * - + 75 / 16 + + 21 ) / - - ( + 99 ) ) col0
----
71

query I rowsort
SELECT ALL + 95 * 48
----
4560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT - 67 + + + 54 * + - 99 * - 4 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT - 67 + + + 54 * + - 99 * - 4 + - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 14, 19 AS col1
----
14
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2467
SELECT - ( 26 ) * CAST( - + 48 AS SIGNED ) AS col1
----
1248

skipif mysql # not compatible
query I rowsort label-2467
SELECT - ( 26 ) * CAST ( - + 48 AS INTEGER ) AS col1
----
1248

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2468
SELECT - CAST( - 73 AS SIGNED ) DIV + + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT - CAST ( - 73 AS INTEGER ) / + + 97 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2469
SELECT DISTINCT + CASE MIN( + CAST( + - ( 62 ) AS SIGNED ) ) WHEN 96 THEN 3 + + 48 + - 33 END / 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT + CASE MIN ( + CAST ( + - ( 62 ) AS INTEGER ) ) WHEN 96 THEN 3 + + 48 + - 33 END / 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT DISTINCT 83 * + + COUNT( * ) + 23
----
106

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT 83 * + + COUNT ( * ) + 23
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-2471
SELECT - 19 DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2471
SELECT - 19 / 77 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2472
SELECT - 25 + - - MIN( DISTINCT 91 ) DIV + 3
----
5

skipif mysql # not compatible
query I rowsort label-2472
SELECT - 25 + - - MIN ( DISTINCT 91 ) / + 3
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT ALL 89 * + 40 + - ( - 48 ) + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL 89 * + 40 + - ( - 48 ) + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT DISTINCT - 51 DIV - 19
----
2

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT - 51 / - 19
----
2

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

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

query I rowsort
SELECT - 71 - - + 29 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL - NULLIF ( + COUNT( * ), + 59 * + - 50 + - - 52 * - 45 ) * 4
----
-4

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - NULLIF ( + COUNT ( * ), + 59 * + - 50 + - - 52 * - 45 ) * 4
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2478
SELECT - 25 DIV ( COUNT( * ) ) * - 83 * - - 77 AS col0
----
159775

skipif mysql # not compatible
query I rowsort label-2478
SELECT - 25 / ( COUNT ( * ) ) * - 83 * - - 77 AS col0
----
159775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT CAST( NULL AS SIGNED ) / SUM( + 37 ) * + 72 + + 78 * + + CASE + COUNT( * ) WHEN + + 87 THEN NULL WHEN - 34 / - + 72 * - 14 THEN NULL WHEN + 92 THEN NULL WHEN 88 / - ( 37 ) * COUNT( * ) + - COUNT( * ) THEN - - ( - COUNT( * ) ) END * - + 30 * + ( + - ( - - 38 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT CAST ( NULL AS INTEGER ) / SUM ( + 37 ) * + 72 + + 78 * + + CASE + COUNT ( * ) WHEN + + 87 THEN NULL WHEN - 34 / - + 72 * - 14 THEN NULL WHEN + 92 THEN NULL WHEN 88 / - ( 37 ) * COUNT ( * ) + - COUNT ( * ) THEN - - ( - COUNT ( * ) ) END * - + 30 * + ( + - ( - - 38 ) ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2480
SELECT 20 AS col2, + CAST( + 97 AS SIGNED )
----
20
97

skipif mysql # not compatible
query II rowsort label-2480
SELECT 20 AS col2, + CAST ( + 97 AS INTEGER )
----
20
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2481
SELECT ALL + + 26 * 2 + 32 + + + COUNT( ALL ( + 73 ) ) + ( + 25 ) DIV + 50 * + COUNT( * ) col1
----
85

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL + + 26 * 2 + 32 + + + COUNT ( ALL ( + 73 ) ) + ( + 25 ) / + 50 * + COUNT ( * ) col1
----
85

query I rowsort
SELECT DISTINCT + 46 * 50 AS col2
----
2300

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2484
SELECT + - 2 * 1 DIV - 1 AS col0, MAX( - - 19 ) * - 32 * - + 37 + 28 - + - 40 - - - COUNT( * )
----
2
22563

skipif mysql # not compatible
query II rowsort label-2484
SELECT + - 2 * 1 / - 1 AS col0, MAX ( - - 19 ) * - 32 * - + 37 + 28 - + - 40 - - - COUNT ( * )
----
2
22563

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT + NULLIF ( + 27, 73 * - + MAX( DISTINCT 99 ) - - + 76 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2485
SELECT + NULLIF ( + 27, 73 * - + MAX ( DISTINCT 99 ) - - + 76 ) AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2486
SELECT ALL - - 7 * + 44 + 78 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - - 7 * + 44 + 78 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 41 * + ( 64 ) + + 56 AS col2
----
2680

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

query I rowsort
SELECT - 41 * + 37 + 61 * - 25 AS col0
----
-3042

query II rowsort
SELECT DISTINCT + 68 AS col2, 30 AS col1
----
68
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT + 55 * ( 5 ) + + COUNT( + 0 )
----
276

skipif mysql # not compatible
query I rowsort label-2491
SELECT + 55 * ( 5 ) + + COUNT ( + 0 )
----
276

query I rowsort
SELECT + - 3 * + 25
----
-75

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2494
SELECT ALL - CASE WHEN NULL IS NULL THEN - 27 END * + 1 + 52 + + 47 - 40 + - - COALESCE ( + - 46, + + COUNT( * ) ) DIV + + 65 + - 51
----
35

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL - CASE WHEN NULL IS NULL THEN - 27 END * + 1 + 52 + + 47 - 40 + - - COALESCE ( + - 46, + + COUNT ( * ) ) / + + 65 + - 51
----
35

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT DISTINCT + 70 DIV 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT + 70 / 36 AS col1
----
1

query I rowsort
SELECT + 95 * 26
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL MIN( 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL MIN ( 3 ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2499
SELECT - 63 AS col2, - 79 DIV + - CAST( COUNT( * ) AS SIGNED )
----
-63
79

skipif mysql # not compatible
query II rowsort label-2499
SELECT - 63 AS col2, - 79 / + - CAST ( COUNT ( * ) AS INTEGER )
----
-63
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2500
SELECT + 92 + + ( - - ( - COUNT( * ) ) ) + + 3 AS col2, COUNT( ALL 0 ) + - 62 col0
----
94
-61

skipif mysql # not compatible
query II rowsort label-2500
SELECT + 92 + + ( - - ( - COUNT ( * ) ) ) + + 3 AS col2, COUNT ( ALL 0 ) + - 62 col0
----
94
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2501
SELECT + COUNT( * ) - - - 75 + - 35 DIV + - COALESCE ( 47, + + ( - 56 ), + CAST( NULL AS SIGNED ) )
----
-74

skipif mysql # not compatible
query I rowsort label-2501
SELECT + COUNT ( * ) - - - 75 + - 35 / + - COALESCE ( 47, + + ( - 56 ), + CAST ( NULL AS INTEGER ) )
----
-74

query I rowsort
SELECT + 85 + + - 84 + - 14 AS col2
----
-13

query I rowsort
SELECT + 38 + + + 90 AS col0
----
128

query I rowsort
SELECT ALL 20 + + 72 + + + ( - + 58 ) + + + 28
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + 64 * + COUNT( DISTINCT ( + ( - - 1 ) ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + 64 * + COUNT ( DISTINCT ( + ( - - 1 ) ) ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL - 10 + - MAX( DISTINCT - 94 ) + + 22 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - 10 + - MAX ( DISTINCT - 94 ) + + 22 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT - 7 + COUNT( * ) * + 58 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2507
SELECT - 7 + COUNT ( * ) * + 58 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2508
SELECT - CAST( 95 AS SIGNED ) col1, 79 AS col1
----
-95
79

skipif mysql # not compatible
query II rowsort label-2508
SELECT - CAST ( 95 AS INTEGER ) col1, 79 AS col1
----
-95
79

query I rowsort
SELECT ALL - 65 + + 41
----
-24

query I rowsort
SELECT - 48 + - 0 AS col1
----
-48

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

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

query I rowsort
SELECT - - 47 * 82 * + 31 * ( 98 ) * + 18
----
210752136

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

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - - COUNT ( * ) / 65 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2514
SELECT DISTINCT CAST( NULL AS DECIMAL ) / CASE + - 50 WHEN + 90 THEN - + 18 END + - 28 + 82 - - - ( 30 ) * + + 95 + 77 + + 66 / - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT CAST ( NULL AS REAL ) / CASE + - 50 WHEN + 90 THEN - + 18 END + - 28 + 82 - - - ( 30 ) * + + 95 + 77 + + 66 / - 19
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2515
SELECT - + COUNT( * ) DIV + 23 * - 53 + - 17 * + ( - + 93 ) * + COUNT( * ) + + 82 AS col2
----
1663

skipif mysql # not compatible
query I rowsort label-2515
SELECT - + COUNT ( * ) / + 23 * - 53 + - 17 * + ( - + 93 ) * + COUNT ( * ) + + 82 AS col2
----
1663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2516
SELECT ALL + SUM( - - 23 ) DIV + 80 - - 55 - + 35 * - - 64 + + - 36
----
-2221

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + SUM ( - - 23 ) / + 80 - - 55 - + 35 * - - 64 + + - 36
----
-2221

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT - + 87 * + 62 + SUM( + CASE + + 47 WHEN - 52 THEN 86 + - - 99 ELSE + 85 END ) col0
----
-5309

skipif mysql # not compatible
query I rowsort label-2517
SELECT - + 87 * + 62 + SUM ( + CASE + + 47 WHEN - 52 THEN 86 + - - 99 ELSE + 85 END ) col0
----
-5309

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

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL - - COUNT ( * ) / - 87 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2519
SELECT - COUNT( * ) + - 72, - COUNT( DISTINCT + 20 ) col1
----
-73
-1

skipif mysql # not compatible
query II rowsort label-2519
SELECT - COUNT ( * ) + - 72, - COUNT ( DISTINCT + 20 ) col1
----
-73
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT - 30 * - ( 82 ) * 30 + - 13 * - + 79 DIV + - 77 + - 30
----
73757

skipif mysql # not compatible
query I rowsort label-2520
SELECT - 30 * - ( 82 ) * 30 + - 13 * - + 79 / + - 77 + - 30
----
73757

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT - - 19 * 55 + - CASE + 68 WHEN + 12 THEN - ( - COUNT( * ) ) * 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT - - 19 * 55 + - CASE + 68 WHEN + 12 THEN - ( - COUNT ( * ) ) * 47 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT DISTINCT + 5 DIV - 53 - 89
----
-89

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT + 5 / - 53 - 89
----
-89

query I rowsort
SELECT DISTINCT + + COALESCE ( + + 26, - 67 )
----
26

query I rowsort
SELECT ALL 96 * + - ( 79 ) AS col1
----
-7584

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT + MIN( - 44 ) * + + 60
----
-2640

skipif mysql # not compatible
query I rowsort label-2525
SELECT + MIN ( - 44 ) * + + 60
----
-2640

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

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

query I rowsort
SELECT + 75 + + 75
----
150

query I rowsort
SELECT 64 + - 29 * 94
----
-2662

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT - 48 * 3 + + COUNT( * ) + + 65 + - + 80 + - 2
----
-160

skipif mysql # not compatible
query I rowsort label-2529
SELECT - 48 * 3 + + COUNT ( * ) + + 65 + - + 80 + - 2
----
-160

query I rowsort
SELECT 95 * - 95
----
-9025

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

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

query I rowsort
SELECT 1 + - 73 AS col0
----
-72

query II rowsort
SELECT - 77 AS col2, 89 * - ( - 48 )
----
-77
4272

query I rowsort
SELECT DISTINCT 79 + + 41 AS col0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2535
SELECT ALL COALESCE ( + 21, 47 * + - CAST( + - 1 AS SIGNED ), - 59 ) + CAST( NULL AS SIGNED ) * 5 - 39 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL COALESCE ( + 21, 47 * + - CAST ( + - 1 AS INTEGER ), - 59 ) + CAST ( NULL AS INTEGER ) * 5 - 39 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT ALL COUNT( * ) + - 63 + - 17
----
-79

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL COUNT ( * ) + - 63 + - 17
----
-79

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT COUNT( * ) + ( + 79 ) * + - 66 + - - CAST( + 75 AS SIGNED ) AS col1
----
-5138

skipif mysql # not compatible
query I rowsort label-2539
SELECT COUNT ( * ) + ( + 79 ) * + - 66 + - - CAST ( + 75 AS INTEGER ) AS col1
----
-5138

query I rowsort
SELECT 81 * - - 98 * - 85 AS col2
----
-674730

query II rowsort
SELECT ALL 44 AS col1, + 55
----
44
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT 97 + - 40 + - + 68 + 24 * - CASE + NULLIF ( + + COALESCE ( + 93, - 95 * - CASE - + 70 WHEN + 40 * - 88 * - - COUNT( + - 9 ) + + 21 THEN + - 87 END + - 2, - 60 ), + - 73 * + 84 ) WHEN + 29 + 32 + ( + 59 ) * + 63 + 60 THEN - 27 + + 71 * 35 WHEN 85 THEN NULL WHEN + 22 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT 97 + - 40 + - + 68 + 24 * - CASE + NULLIF ( + + COALESCE ( + 93, - 95 * - CASE - + 70 WHEN + 40 * - 88 * - - COUNT ( + - 9 ) + + 21 THEN + - 87 END + - 2, - 60 ), + - 73 * + 84 ) WHEN + 29 + 32 + ( + 59 ) * + 63 + 60 THEN - 27 + + 71 * 35 WHEN 85 THEN NULL WHEN + 22 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2543
SELECT COUNT( * ) DIV + 5 * - 33 * 12
----
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT COUNT ( * ) / + 5 * - 33 * 12
----
0

query I rowsort
SELECT ALL 36 + 50 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT MAX( - 97 ) - 52
----
-149

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT MAX ( - 97 ) - 52
----
-149

query I rowsort
SELECT 38 + - 85 AS col0
----
-47

query II rowsort
SELECT + 47 * 79 * + - 5 AS col0, - 51 AS col0
----
-18565
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2548
SELECT + - CAST( NULL AS SIGNED ), + CASE + + 84 WHEN CAST( + COALESCE ( + + 5, + 87, 93 + + + COUNT( * ) ) AS SIGNED ) THEN NULL WHEN 4 THEN - 1 END * - NULLIF ( - 8, + - 68 * + - 0 + + + 10 ) * 73
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2548
SELECT + - CAST ( NULL AS INTEGER ), + CASE + + 84 WHEN CAST ( + COALESCE ( + + 5, + 87, 93 + + + COUNT ( * ) ) AS INTEGER ) THEN NULL WHEN 4 THEN - 1 END * - NULLIF ( - 8, + - 68 * + - 0 + + + 10 ) * 73
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 63 * + 82 AS col1
----
-5166

query II rowsort
SELECT + - 18, 92 - + 87 AS col0
----
-18
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2551
SELECT - 14 - + 54 - 50, CAST( - 38 AS SIGNED ) AS col0
----
-118
-38

skipif mysql # not compatible
query II rowsort label-2551
SELECT - 14 - + 54 - 50, CAST ( - 38 AS INTEGER ) AS col0
----
-118
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT 19 DIV - + 75 + - + 61 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2552
SELECT 19 / - + 75 + - + 61 AS col1
----
-61

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

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - COUNT ( * ) * + 43 col2
----
-43

query I rowsort
SELECT DISTINCT 2 * + 15
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2555
SELECT CAST( 86 AS SIGNED ) * COALESCE ( 56, + CASE + 21 WHEN - ( - - 40 ) * CAST( NULL AS DECIMAL ) - + - 46 * + 87 THEN + + 34 * + 57 * - COUNT( 84 ) END + + 30 ) DIV - + 27
----
-178

skipif mysql # not compatible
query I rowsort label-2555
SELECT CAST ( 86 AS INTEGER ) * COALESCE ( 56, + CASE + 21 WHEN - ( - - 40 ) * CAST ( NULL AS REAL ) - + - 46 * + 87 THEN + + 34 * + 57 * - COUNT ( 84 ) END + + 30 ) / - + 27
----
-178

query II rowsort
SELECT - 75, - 93 AS col0
----
-75
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2557
SELECT 36 DIV ( 35 )
----
1

skipif mysql # not compatible
query I rowsort label-2557
SELECT 36 / ( 35 )
----
1

query I rowsort
SELECT 79 * - ( - 29 )
----
2291

query I rowsort
SELECT - NULLIF ( - 3, + 50 + - 40 ) * + 94 AS col2
----
282

query I rowsort
SELECT ALL - + 12 + - 46 AS col0
----
-58

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

query I rowsort
SELECT 66 * - 96 AS col1
----
-6336

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

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL + 36 * + + ( - 16 ) * 61 + + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT 75 * + 97 AS col0
----
7275

query I rowsort
SELECT ALL - 9 + - 79
----
-88

query II rowsort
SELECT 30, + 1 * + + 50 * 20 AS col0
----
30
1000

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT - 75 AS col0, - COUNT( * ) * - 2 col1
----
-75
2

skipif mysql # not compatible
query II rowsort label-2569
SELECT - 75 AS col0, - COUNT ( * ) * - 2 col1
----
-75
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT ALL 2 + + COALESCE ( ( - - 80 ), + - 11, + ( - 55 ) + COUNT( * ) * - CAST( + 6 AS SIGNED ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL 2 + + COALESCE ( ( - - 80 ), + - 11, + ( - 55 ) + COUNT ( * ) * - CAST ( + 6 AS INTEGER ) ) AS col1
----
82

query I rowsort
SELECT 1 * 42 col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT 81 + + 46 DIV + 40 + + 22
----
104

skipif mysql # not compatible
query I rowsort label-2572
SELECT 81 + + 46 / + 40 + + 22
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-2573
SELECT ALL - COUNT( * ) + + MIN( ( + - 71 ) ) AS col0, ( + ( + 65 ) ) * - + COUNT( DISTINCT + 55 ) * MIN( ALL - 9 ) * COUNT( * ) * + + 67
----
-72
39195

skipif mysql # not compatible
query II rowsort label-2573
SELECT ALL - COUNT ( * ) + + MIN ( ( + - 71 ) ) AS col0, ( + ( + 65 ) ) * - + COUNT ( DISTINCT + 55 ) * MIN ( ALL - 9 ) * COUNT ( * ) * + + 67
----
-72
39195

query I rowsort
SELECT 91 + + 10 AS col0
----
101

query I rowsort
SELECT 26 * + 36 AS col2
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT COUNT( * ) + - 95 + - 95 col2
----
-189

skipif mysql # not compatible
query I rowsort label-2576
SELECT COUNT ( * ) + - 95 + - 95 col2
----
-189

query I rowsort
SELECT ALL 12 - - 12 AS col1
----
24

query I rowsort
SELECT 26 + 22 AS col0
----
48

query I rowsort
SELECT ALL 89 * - + 11 AS col2
----
-979

query I rowsort
SELECT 22 + - 70
----
-48

query I rowsort
SELECT - 71 * 28 + 31
----
-1957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT ALL - 9 * + ( - AVG ( ALL + - CAST( NULL AS SIGNED ) ) ) + + 83 + - 71 / - 74 + - ( - ( + COUNT( * ) ) ) * + 77 / - COUNT( - 71 ) * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL - 9 * + ( - AVG ( ALL + - CAST ( NULL AS INTEGER ) ) ) + + 83 + - 71 / - 74 + - ( - ( + COUNT ( * ) ) ) * + 77 / - COUNT ( - 71 ) * + 72
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2583
SELECT - - COUNT ( - CAST ( 15 AS INTEGER ) ) col0
----
1

query II rowsort
SELECT ALL + 58, 85 AS col0
----
58
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT 45 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-2585
SELECT 45 / + 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2586
SELECT NULLIF ( + 19, + COUNT( * ) ) * - 97 + - 89 DIV + 19 AS col0, COUNT( * )
----
-1847
1

skipif mysql # not compatible
query II rowsort label-2586
SELECT NULLIF ( + 19, + COUNT ( * ) ) * - 97 + - 89 / + 19 AS col0, COUNT ( * )
----
-1847
1

query II rowsort
SELECT DISTINCT + - 46, - 7 * + 93 AS col1
----
-46
-651

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT DISTINCT - 26 DIV + 21 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT - 26 / + 21 AS col2
----
-1

query II rowsort
SELECT + 97 AS col2, 66
----
97
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2590
SELECT + 61 + - COUNT( * ) + - - 65 - COALESCE ( + + 6, ( ( + 36 ) ) + - 84 ) DIV + 22 * + - 21
----
125

skipif mysql # not compatible
query I rowsort label-2590
SELECT + 61 + - COUNT ( * ) + - - 65 - COALESCE ( + + 6, ( ( + 36 ) ) + - 84 ) / + 22 * + - 21
----
125

onlyif mysql # aggregate syntax: 
query III rowsort label-2591
SELECT 43 AS col1, MAX( + 25 ) + 80 AS col1, - - ( 93 )
----
43
105
93

skipif mysql # not compatible
query III rowsort label-2591
SELECT 43 AS col1, MAX ( + 25 ) + 80 AS col1, - - ( 93 )
----
43
105
93

query I rowsort
SELECT + + COALESCE ( + 49, 33 ) AS col1
----
49

query II rowsort
SELECT + - 50, - 54 AS col0
----
-50
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT - - CAST( - 2 AS SIGNED ) * 18 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-2594
SELECT - - CAST ( - 2 AS INTEGER ) * 18 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT DISTINCT CASE + + 51 WHEN - COUNT( DISTINCT 65 ) THEN NULL WHEN + COUNT( DISTINCT 39 ) THEN AVG ( + 70 ) ELSE NULL END * - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT CASE + + 51 WHEN - COUNT ( DISTINCT 65 ) THEN NULL WHEN + COUNT ( DISTINCT 39 ) THEN AVG ( + 70 ) ELSE NULL END * - 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT + NULLIF ( + + COUNT( * ), + 47 ) + + + 41 * - - COUNT( * ) + - COUNT( * ) - + - 27 + + - 59 * 54
----
-3118

skipif mysql # not compatible
query I rowsort label-2596
SELECT + NULLIF ( + + COUNT ( * ), + 47 ) + + + 41 * - - COUNT ( * ) + - COUNT ( * ) - + - 27 + + - 59 * 54
----
-3118

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL COUNT( * ) * - 43 + + 61 + - NULLIF ( 27, - + 14 ) * - - MAX( DISTINCT + - 20 )
----
558

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL COUNT ( * ) * - 43 + + 61 + - NULLIF ( 27, - + 14 ) * - - MAX ( DISTINCT + - 20 )
----
558

query I rowsort
SELECT DISTINCT 80 * - 94 + - - 43 col2
----
-7477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT - 8 + - COUNT( * ) - - - CAST( NULLIF ( COUNT( * ), - 36 ) AS SIGNED ) * + 60
----
-69

skipif mysql # not compatible
query I rowsort label-2599
SELECT - 8 + - COUNT ( * ) - - - CAST ( NULLIF ( COUNT ( * ), - 36 ) AS INTEGER ) * + 60
----
-69

query II rowsort
SELECT + NULLIF ( + 91, - 60 ) * 7 + - - 86 AS col0, - 50 AS col2
----
723
-50

query I rowsort
SELECT 14 * - + 2 + - 25 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT ALL - SUM( DISTINCT - 49 ) + + 88 * - + 3 + 40
----
-175

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL - SUM ( DISTINCT - 49 ) + + 88 * - + 3 + 40
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT MAX( DISTINCT + 80 ) AS col1, - 4
----
80
-4

skipif mysql # not compatible
query II rowsort label-2603
SELECT MAX ( DISTINCT + 80 ) AS col1, - 4
----
80
-4

query I rowsort
SELECT - 61 + + + 62 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2605
SELECT - CAST( + + 52 AS SIGNED ) DIV + 95 * 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2605
SELECT - CAST ( + + 52 AS INTEGER ) / + 95 * 74 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2606
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), - NULLIF ( 67, 47 ) ) * + - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), - NULLIF ( 67, 47 ) ) * + - 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL COALESCE ( 81, - + 2 * COUNT( * ) ) col2
----
81

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL COALESCE ( 81, - + 2 * COUNT ( * ) ) col2
----
81

query II rowsort
SELECT DISTINCT + 88 * - 41 AS col0, 35
----
-3608
35

query I rowsort
SELECT ALL ( - - 30 ) AS col0
----
30

query I rowsort
SELECT - 19 * - 1
----
19

query I rowsort
SELECT ALL + 43 * - 76
----
-3268

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2612
SELECT DISTINCT COALESCE ( + + COUNT( * ), - COUNT( * ), 10 DIV + + 1 * - - 83 DIV - - 97 ), - 41 col0
----
1
-41

skipif mysql # not compatible
query II rowsort label-2612
SELECT DISTINCT COALESCE ( + + COUNT ( * ), - COUNT ( * ), 10 / + + 1 * - - 83 / - - 97 ), - 41 col0
----
1
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT - - 74 - 20 + 34 + - 67 + - - 98 DIV + 67
----
22

skipif mysql # not compatible
query I rowsort label-2613
SELECT - - 74 - 20 + 34 + - 67 + - - 98 / + 67
----
22

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT DISTINCT MIN( 61 ) AS col2, 97 col0
----
61
97

skipif mysql # not compatible
query II rowsort label-2615
SELECT DISTINCT MIN ( 61 ) AS col2, 97 col0
----
61
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2616
SELECT - NULLIF ( - + CAST( NULL AS DECIMAL ), 55 + - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT - NULLIF ( - + CAST ( NULL AS REAL ), 55 + - 28 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT - 5 * - COUNT( * ) * + 31
----
155

skipif mysql # not compatible
query I rowsort label-2617
SELECT - 5 * - COUNT ( * ) * + 31
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL SUM( DISTINCT + 17 ) * + ( 73 ) - - + COUNT( 59 ) AS col1
----
1242

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL SUM ( DISTINCT + 17 ) * + ( 73 ) - - + COUNT ( 59 ) AS col1
----
1242

query I rowsort
SELECT DISTINCT - + 70 + - 63
----
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2620
SELECT 23 * + + 26 - + - COALESCE ( + 47, COUNT( * ) ) DIV 99
----
598

skipif mysql # not compatible
query I rowsort label-2620
SELECT 23 * + + 26 - + - COALESCE ( + 47, COUNT ( * ) ) / 99
----
598

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL - 83 * + - COUNT( * ) + - 58 - - 68
----
93

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL - 83 * + - COUNT ( * ) + - 58 - - 68
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2622
SELECT DISTINCT + 33 AS col1, COALESCE ( - 55, 7, 23 - + 30 ) DIV + + 10 + COUNT( * ) AS col1
----
33
-4

skipif mysql # not compatible
query II rowsort label-2622
SELECT DISTINCT + 33 AS col1, COALESCE ( - 55, 7, 23 - + 30 ) / + + 10 + COUNT ( * ) AS col1
----
33
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2623
SELECT + 2 * - - 35 DIV - COUNT( * ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-2623
SELECT + 2 * - - 35 / - COUNT ( * ) col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2624
SELECT + ( - + COALESCE ( - + 12, 11 * - 21 * 60 + - 35 - - CAST( + + 39 AS SIGNED ) + + 51 + - - COUNT( * ) * 1 ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-2624
SELECT + ( - + COALESCE ( - + 12, 11 * - 21 * 60 + - 35 - - CAST ( + + 39 AS INTEGER ) + + 51 + - - COUNT ( * ) * 1 ) ) AS col0
----
12

query I rowsort
SELECT - 37 * + - 16
----
592

query I rowsort
SELECT + 66 * + 72 AS col0
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT DISTINCT + CASE 68 WHEN + 63 - + 84 THEN + CASE + - ( - + 34 ) WHEN 23 THEN NULL WHEN + 31 / 22 THEN + 60 * - 43 * - 71 END + 3 * - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT + CASE 68 WHEN + 63 - + 84 THEN + CASE + - ( - + 34 ) WHEN 23 THEN NULL WHEN + 31 / 22 THEN + 60 * - 43 * - 71 END + 3 * - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT DISTINCT 6 * + COUNT( * ) - + NULLIF ( - 75, 85 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT 6 * + COUNT ( * ) - + NULLIF ( - 75, 85 ) AS col0
----
81

query I rowsort
SELECT + 1 * - + 71 * - + 34 AS col1
----
2414

onlyif mysql # aggregate syntax: 
query II rowsort label-2630
SELECT ALL COUNT( * ) AS col1, 94 * 65
----
1
6110

skipif mysql # not compatible
query II rowsort label-2630
SELECT ALL COUNT ( * ) AS col1, 94 * 65
----
1
6110

query I rowsort
SELECT + 89 + - - ( + 50 )
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2632
SELECT COUNT( * ), - COALESCE ( - 69, - 80 * + 48 + - - 58 + - 24 + - 30 + + - 5 + - - 16 * + SUM( + 75 ) * + COUNT( * ) DIV + 39 * + NULLIF ( - ( - COUNT( ALL - 25 ) ), - COUNT( * ) DIV + + 11 * - - 69 ) + - 69 ) AS col2
----
1
69

skipif mysql # not compatible
query II rowsort label-2632
SELECT COUNT ( * ), - COALESCE ( - 69, - 80 * + 48 + - - 58 + - 24 + - 30 + + - 5 + - - 16 * + SUM ( + 75 ) * + COUNT ( * ) / + 39 * + NULLIF ( - ( - COUNT ( ALL - 25 ) ), - COUNT ( * ) / + + 11 * - - 69 ) + - 69 ) AS col2
----
1
69

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

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

query I rowsort
SELECT + 65 + 42 * 80
----
3425

query I rowsort
SELECT + 83 + + 24
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT - 89 DIV + 89 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2636
SELECT - 89 / + 89 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - COUNT( * ) - + 25 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2638
SELECT - COUNT ( * ) - + 25 AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2639
SELECT 16 DIV - + 78 - 74 * 82 DIV COUNT( * )
----
-6068

skipif mysql # not compatible
query I rowsort label-2639
SELECT 16 / - + 78 - 74 * 82 / COUNT ( * )
----
-6068

query I rowsort
SELECT - 94 + - - 18
----
-76

query I rowsort
SELECT ALL - + NULLIF ( + - 7, + 48 * + ( 13 ) + + 21 + - 70 / + 77 ) + + + 34 - 80 + + 54 + + 84 col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2642
SELECT + 16 + - COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col2, - ( + ( - SUM( ALL + + 68 ) ) ) * + - 0 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2642
SELECT + 16 + - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col2, - ( + ( - SUM ( ALL + + 68 ) ) ) * + - 0 AS col2
----
NULL
0

query II rowsort
SELECT ALL 31 AS col2, - 65
----
31
-65

query I rowsort
SELECT + 60 * + 46 AS col2
----
2760

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2645
SELECT CASE + 79 WHEN + MIN( DISTINCT + 4 ) THEN NULL ELSE + 76 * - 35 + COUNT( * ) / 90 + 54 + + - CAST( NULL AS DECIMAL ) + 45 END + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT CASE + 79 WHEN + MIN ( DISTINCT + 4 ) THEN NULL ELSE + 76 * - 35 + COUNT ( * ) / 90 + 54 + + - CAST ( NULL AS REAL ) + 45 END + 88
----
NULL

query I rowsort
SELECT 85 * 81 * - + 66 - + - 56 * 13
----
-453682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2647
SELECT ALL - 33 + + CAST( 10 AS SIGNED ) col1
----
-23

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL - 33 + + CAST ( 10 AS INTEGER ) col1
----
-23

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

query II rowsort
SELECT - - 64, - 32 * - 2
----
64
64

query II rowsort
SELECT ALL + 30 + + 24 + - 53 AS col2, + 61 + + 80
----
1
141

query I rowsort
SELECT ALL - 72 + + - 91
----
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT ALL + ( + - 36 ) + + 40 + 17 * 72 DIV 51
----
28

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL + ( + - 36 ) + + 40 + 17 * 72 / 51
----
28

query I rowsort
SELECT ALL 63 + 19 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT + COALESCE ( 35, - 24, + 10 ) - + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-2654
SELECT + COALESCE ( 35, - 24, + 10 ) - + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT + - NULLIF ( + - 24, + - 27 * + 94 * + - COUNT( * ) / - 40 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-2655
SELECT + - NULLIF ( + - 24, + - 27 * + 94 * + - COUNT ( * ) / - 40 ) AS col1
----
24

query I rowsort
SELECT DISTINCT - 32 * + ( + + 28 )
----
-896

query I rowsort
SELECT ALL + 78 - - + 94
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT 75 * + 6 * + 62 * - + COUNT( * ) AS col2
----
-27900

skipif mysql # not compatible
query I rowsort label-2658
SELECT 75 * + 6 * + 62 * - + COUNT ( * ) AS col2
----
-27900

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT 30 * 13 * ( - 86 ) * + + 23 + 70 * + - 13 * + 57 + 26 * ( - CASE 8 WHEN ( 31 ) THEN - + 14 * + 72 * - COUNT( * ) + - ( + 36 ) WHEN 43 + 78 THEN NULL END ) + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT 30 * 13 * ( - 86 ) * + + 23 + 70 * + - 13 * + 57 + 26 * ( - CASE 8 WHEN ( 31 ) THEN - + 14 * + 72 * - COUNT ( * ) + - ( + 36 ) WHEN 43 + 78 THEN NULL END ) + + 35
----
NULL

query I rowsort
SELECT 51 * 48 + + + 97
----
2545

query I rowsort
SELECT ALL - 15 * + - 15
----
225

query I rowsort
SELECT DISTINCT + 60 * + 92 AS col1
----
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT NULLIF ( - - 83, - COUNT( * ) ) + 95
----
178

skipif mysql # not compatible
query I rowsort label-2663
SELECT NULLIF ( - - 83, - COUNT ( * ) ) + 95
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2664
SELECT - COALESCE ( + 13, + + COUNT( * ) * 47 + + 54, - - NULLIF ( 2, - 52 * 35 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + 43 - + + 14 - + 98 * 90 * - 7 * - ( + 75 ) * - + 16 ) * ( - 5 ) + - 56 col1, + NULLIF ( - - 73, COUNT( * ) ) AS col1
----
9
73

skipif mysql # not compatible
query II rowsort label-2664
SELECT - COALESCE ( + 13, + + COUNT ( * ) * 47 + + 54, - - NULLIF ( 2, - 52 * 35 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 43 - + + 14 - + 98 * 90 * - 7 * - ( + 75 ) * - + 16 ) * ( - 5 ) + - 56 col1, + NULLIF ( - - 73, COUNT ( * ) ) AS col1
----
9
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2665
SELECT AVG ( + - 56 ) * + 12 + + 99 + + CASE - + 49 WHEN 97 THEN + 86 * - + CAST( - ( COUNT( * ) ) AS SIGNED ) + + 65 - + 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT AVG ( + - 56 ) * + 12 + + 99 + + CASE - + 49 WHEN 97 THEN + 86 * - + CAST ( - ( COUNT ( * ) ) AS INTEGER ) + + 65 - + 31 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT 61 + + + CASE 98 WHEN + ( + + 50 ) + - 69 * COALESCE ( + 18, + - 0 * + + 53, - 25 + + COUNT( * ) * + COUNT( * ) ) - 4 - + 93 THEN - - COUNT( * ) ELSE + - 92 END
----
-31

skipif mysql # not compatible
query I rowsort label-2666
SELECT 61 + + + CASE 98 WHEN + ( + + 50 ) + - 69 * COALESCE ( + 18, + - 0 * + + 53, - 25 + + COUNT ( * ) * + COUNT ( * ) ) - 4 - + 93 THEN - - COUNT ( * ) ELSE + - 92 END
----
-31

query I rowsort
SELECT DISTINCT 89 + 93 AS col0
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2668
SELECT ALL - 97 + + MAX( - - 27 ) * 78 DIV ( + + 14 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - 97 + + MAX ( - - 27 ) * 78 / ( + + 14 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2669
SELECT ALL 57 * - + 40 col1, 71 + + + COUNT( * )
----
-2280
72

skipif mysql # not compatible
query II rowsort label-2669
SELECT ALL 57 * - + 40 col1, 71 + + + COUNT ( * )
----
-2280
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT ALL - COALESCE ( 83, + COUNT( * ) ) + 45
----
-38

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL - COALESCE ( 83, + COUNT ( * ) ) + 45
----
-38

query I rowsort
SELECT 79 * + 43 + + 77 * + 22 + 71
----
5162

query II rowsort
SELECT - 14 * + 95 AS col0, - 73 * - 90 AS col1
----
-1330
6570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2673
SELECT ALL 84 + - - 93, + 11 DIV + CASE COUNT( * ) WHEN CASE + 88 WHEN + - COUNT( * ) * + 82 THEN COUNT( * ) * - 32 + + - 58 + - COUNT( * ) - + MIN( + 4 ) * - - ( - 60 ) ELSE + 15 * 92 END THEN NULL WHEN + ( - COUNT( * ) ) + - COUNT( * ) THEN NULL ELSE ( - - 15 ) * - + 88 DIV 67 + - 12 * 20 + - CAST( - SUM( 98 ) AS SIGNED ) END col1
----
177
0

skipif mysql # not compatible
query II rowsort label-2673
SELECT ALL 84 + - - 93, + 11 / + CASE COUNT ( * ) WHEN CASE + 88 WHEN + - COUNT ( * ) * + 82 THEN COUNT ( * ) * - 32 + + - 58 + - COUNT ( * ) - + MIN ( + 4 ) * - - ( - 60 ) ELSE + 15 * 92 END THEN NULL WHEN + ( - COUNT ( * ) ) + - COUNT ( * ) THEN NULL ELSE ( - - 15 ) * - + 88 / 67 + - 12 * 20 + - CAST ( - SUM ( 98 ) AS INTEGER ) END col1
----
177
0

query I rowsort
SELECT 87 + 69 AS col1
----
156

query I rowsort
SELECT - 80 * + - 91 AS col2
----
7280

query I rowsort
SELECT + 50 * + + 20 AS col2
----
1000

query I rowsort
SELECT ALL - ( 18 ) + + 1 * ( ( + + 49 ) ) * + 50 AS col2
----
2432

onlyif mysql # DIV for integer division: 
query II rowsort label-2678
SELECT DISTINCT 68 DIV 72, 3 AS col2
----
0
3

skipif mysql # not compatible
query II rowsort label-2678
SELECT DISTINCT 68 / 72, 3 AS col2
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT ALL ( 4 ) * 77 * - 77 + - CAST( - 27 AS SIGNED )
----
-23689

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL ( 4 ) * 77 * - 77 + - CAST ( - 27 AS INTEGER )
----
-23689

onlyif mysql # DIV for integer division: 
query II rowsort label-2680
SELECT ALL 61 * - - 81 * 11 + 36 + - 29 DIV 84 - 11 AS col2, 9 * 69 + - + 14 - + + 6 AS col1
----
54376
601

skipif mysql # not compatible
query II rowsort label-2680
SELECT ALL 61 * - - 81 * 11 + 36 + - 29 / 84 - 11 AS col2, 9 * 69 + - + 14 - + + 6 AS col1
----
54376
601

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL - - COALESCE ( - 79, + SUM( - 25 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL - - COALESCE ( - 79, + SUM ( - 25 ) )
----
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT DISTINCT - COALESCE ( + NULLIF ( 21, - COUNT( * ) * + 68 + + 4 + - 48 + + 13 * - - COALESCE ( + SUM( ALL - 45 ), - + 35 ) ), - CASE 26 WHEN + 54 THEN - - 71 ELSE - 75 * - 54 + + + 19 END ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT - COALESCE ( + NULLIF ( 21, - COUNT ( * ) * + 68 + + 4 + - 48 + + 13 * - - COALESCE ( + SUM ( ALL - 45 ), - + 35 ) ), - CASE 26 WHEN + 54 THEN - - 71 ELSE - 75 * - 54 + + + 19 END ) AS col0
----
-21

query I rowsort
SELECT ALL + 19 * + + 51 - - ( 17 ) + - 59
----
927

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT 29 DIV - - 75 * - - 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2685
SELECT 29 / - - 75 * - - 15 AS col2
----
0

query I rowsort
SELECT ALL - 84 * - 33 AS col1
----
2772

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2688
SELECT MIN( ALL - 40 ) DIV + + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2688
SELECT MIN ( ALL - 40 ) / + + 49 AS col2
----
0

query II rowsort
SELECT - 60 * - ( + 67 ), - 38 AS col2
----
4020
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT DISTINCT 89 + + + COUNT( * ) + 81 * + 26 AS col2
----
2196

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT 89 + + + COUNT ( * ) + 81 * + 26 AS col2
----
2196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT - NULLIF ( MAX( 87 ), - - 10 + + CASE - 2 WHEN 0 THEN NULL ELSE - 78 END / + + 60 ) * - + COUNT( 46 )
----
87

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - NULLIF ( MAX ( 87 ), - - 10 + + CASE - 2 WHEN 0 THEN NULL ELSE - 78 END / + + 60 ) * - + COUNT ( 46 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + ( + 85 ) - CASE - 25 WHEN NULLIF ( + 33, + 66 ) THEN + - COUNT( * ) / + 6 WHEN 5 THEN NULL END * 18 * - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT + ( + 85 ) - CASE - 25 WHEN NULLIF ( + 33, + 66 ) THEN + - COUNT ( * ) / + 6 WHEN 5 THEN NULL END * 18 * - 69 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2694
SELECT DISTINCT CAST( NULL AS SIGNED ) + 74 + - 27 * + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 74 + - 27 * + - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT DISTINCT + SUM( ALL + 48 ) + - + 70 + 18 - 84 - SUM( - - 21 ) col1
----
-109

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT + SUM ( ALL + 48 ) + - + 70 + 18 - 84 - SUM ( - - 21 ) col1
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2696
SELECT + 12 * - ( - - 11 ) * + 26 + + 20 + - ( 99 ) + - - COUNT( ALL 43 ) - - 88 + + + 11 * 52 + - CAST( NULL AS SIGNED ) + + 38 * - ( - + COUNT( * ) ) - COUNT( * ) * + CASE - 5 WHEN + 34 THEN + 56 END * + + CAST( - 33 AS DECIMAL ) / - 67 + + 21 + + + 42 / - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT + 12 * - ( - - 11 ) * + 26 + + 20 + - ( 99 ) + - - COUNT ( ALL 43 ) - - 88 + + + 11 * 52 + - CAST ( NULL AS INTEGER ) + + 38 * - ( - + COUNT ( * ) ) - COUNT ( * ) * + CASE - 5 WHEN + 34 THEN + 56 END * + + CAST ( - 33 AS REAL ) / - 67 + + 21 + + + 42 / - 57 AS col0
----
NULL

query I rowsort
SELECT - - 85 + - 91 AS col2
----
-6

query I rowsort
SELECT + - 5 - - 54 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT + SUM( ALL + + 7 ) * - + 31 AS col1
----
-217

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT + SUM ( ALL + + 7 ) * - + 31 AS col1
----
-217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2700
SELECT ALL - 98 / - 90 * - 62 - + CASE - ( - + 19 ) WHEN 47 THEN - CASE + + ( + COUNT( * ) ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 79 THEN + 81 * - 86 ELSE - 99 * + ( - CASE - - COUNT( DISTINCT + 2 ) WHEN 69 THEN - 47 ELSE - COUNT( DISTINCT - 85 ) END ) END WHEN - 94 THEN - 3 END + + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL - 98 / - 90 * - 62 - + CASE - ( - + 19 ) WHEN 47 THEN - CASE + + ( + COUNT ( * ) ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 79 THEN + 81 * - 86 ELSE - 99 * + ( - CASE - - COUNT ( DISTINCT + 2 ) WHEN 69 THEN - 47 ELSE - COUNT ( DISTINCT - 85 ) END ) END WHEN - 94 THEN - 3 END + + 12 AS col2
----
NULL

query II rowsort
SELECT - ( + - 14 ), + 20 AS col1
----
14
20

query II rowsort
SELECT DISTINCT + 71 AS col0, 5 AS col1
----
71
5

query I rowsort
SELECT ALL + 60 * - 27 * 75 AS col2
----
-121500

query I rowsort
SELECT + 26 * 63
----
1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2705
SELECT ALL COUNT( * ) DIV - + SUM( + 9 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL COUNT ( * ) / - + SUM ( + 9 ) col1
----
0

query I rowsort
SELECT - 2 * - - 18
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL - 88 * COUNT( * ) * + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL - 88 * COUNT ( * ) * + COUNT ( * ) AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT 52 * - 8 + + 42 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT 52 * - 8 + + 42 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2709
SELECT ALL - CASE + 74 WHEN + 52 THEN NULL WHEN + - 37 * + 91 + + 22 THEN NULL ELSE + 77 * + - 8 + - 88 + - + 92 / + CAST( NULL AS SIGNED ) END * + + 5 + 19 / + + 83 + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL - CASE + 74 WHEN + 52 THEN NULL WHEN + - 37 * + 91 + + 22 THEN NULL ELSE + 77 * + - 8 + - 88 + - + 92 / + CAST ( NULL AS INTEGER ) END * + + 5 + 19 / + + 83 + - 6
----
NULL

query I rowsort
SELECT + 66 * + + 48
----
3168

query I rowsort
SELECT - 72 * 34
----
-2448

query II rowsort
SELECT ( + 64 ) col1, + 28 AS col2
----
64
28

query I rowsort
SELECT - CASE - 12 WHEN + - 86 + + 53 THEN 7 * + 2 END * 35 / 24 - + - 57 + + 32 AS col0
----
NULL

query I rowsort
SELECT ALL 25 * + 37 * 18 * - 55 * + 78 AS col1
----
-71428500

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT 25 * - 9 + + - COUNT( * )
----
-226

skipif mysql # not compatible
query I rowsort label-2715
SELECT 25 * - 9 + + - COUNT ( * )
----
-226

onlyif mysql # aggregate syntax: 
query II rowsort label-2716
SELECT ALL 25 * + - COUNT( ALL 76 ) * 66 + 60 * + 11, - 16 * - 99 AS col0
----
-990
1584

skipif mysql # not compatible
query II rowsort label-2716
SELECT ALL 25 * + - COUNT ( ALL 76 ) * 66 + 60 * + 11, - 16 * - 99 AS col0
----
-990
1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2717
SELECT ALL - 4 * - 1 + + - 84 + + CAST( NULL AS SIGNED ) * 39 * + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL - 4 * - 1 + + - 84 + + CAST ( NULL AS INTEGER ) * 39 * + 81 AS col0
----
NULL

query II rowsort
SELECT + 53 col0, - 20 AS col2
----
53
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL - CASE - 75 WHEN - 42 THEN COUNT( * ) + 1 END * - 95 + + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - CASE - 75 WHEN - 42 THEN COUNT ( * ) + 1 END * - 95 + + + COUNT ( * ) AS col1
----
NULL

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

query I rowsort
SELECT COALESCE ( - 54, - 61, + - 20 * - - 22 )
----
-54

query I rowsort
SELECT - + 25 + + 11 AS col0
----
-14

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

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

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

query I rowsort
SELECT ALL COALESCE ( + ( - 30 ), - 8, + 78 * 54 ) AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2726
SELECT DISTINCT + + 32 * + + 44 * 69 DIV + + COUNT( * ) AS col0
----
97152

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + + 32 * + + 44 * 69 / + + COUNT ( * ) AS col0
----
97152

query II rowsort
SELECT - ( + - 38 ) AS col0, 45 AS col0
----
38
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2728
SELECT ALL - + COUNT( * ) * 2 + - 2 + - 99 * + SUM( DISTINCT CAST( NULL AS SIGNED ) ) / - + 76 * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - + COUNT ( * ) * 2 + - 2 + - 99 * + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / - + 76 * + 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2729
SELECT + 99 DIV - - COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2729
SELECT + 99 / - - COUNT ( * ) AS col0
----
99

query II rowsort
SELECT + + 82 + 25 AS col0, + 11
----
107
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT - + CASE - NULLIF ( 46, + 88 + - MIN( DISTINCT 74 ) - - - COUNT( * ) ) WHEN + 24 / - - ( + COUNT( * ) ) * + - 73 - + 63 + + 33 * - + 59 THEN - + 57 * 7 / COUNT( * ) WHEN - 78 THEN 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT - + CASE - NULLIF ( 46, + 88 + - MIN ( DISTINCT 74 ) - - - COUNT ( * ) ) WHEN + 24 / - - ( + COUNT ( * ) ) * + - 73 - + 63 + + 33 * - + 59 THEN - + 57 * 7 / COUNT ( * ) WHEN - 78 THEN 1 END
----
NULL

query I rowsort
SELECT - - 13 * + 42 * + - NULLIF ( - 38, - - 12 / 52 * - 72 - 2 ) col2
----
20748

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT - + ( + 42 ) - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-2733
SELECT - + ( + 42 ) - COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT - + ( + COALESCE ( - COUNT( DISTINCT - - 14 ), COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2734
SELECT - + ( + COALESCE ( - COUNT ( DISTINCT - - 14 ), COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2735
SELECT - 74 + + 76 + + CAST( ( - 5 ) AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-2735
SELECT - 74 + + 76 + + CAST ( ( - 5 ) AS INTEGER )
----
-3

query I rowsort
SELECT + - 63 - NULLIF ( + + 28, ( + 5 ) + + 75 + - 83 / - 48 - - 85 * - - 65 ) + - 13
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-2737
SELECT - ( - + 52 ), NULLIF ( SUM( ALL + 68 ), - + NULLIF ( + CASE + MIN( DISTINCT - 85 ) WHEN 63 THEN NULL WHEN + 63 THEN + AVG ( DISTINCT ( 65 ) ) WHEN + COUNT( * ) THEN + 18 * - 63 * + - CASE - 51 WHEN + + ( 1 ) / + - 84 + - CASE - + 94 WHEN + 8 + - ( + - COUNT( * ) ) * + + 99 THEN - NULLIF ( - 78, - 66 * + + 60 + - - 69 ) WHEN COUNT( * ) * - 1 + - - 95 + - 25 THEN NULL WHEN 16 + COUNT( ALL - 54 ) * + 17 THEN - 59 END + + 15 THEN - MAX( ALL 59 ) ELSE + 23 * 59 END ELSE 29 * COALESCE ( - NULLIF ( 12, - 44 - + 55 ), + 1 ) END, - 56 ) + + AVG ( 93 ) * + 71 ) * 3 AS col2
----
52
204

skipif mysql # not compatible
query II rowsort label-2737
SELECT - ( - + 52 ), NULLIF ( SUM ( ALL + 68 ), - + NULLIF ( + CASE + MIN ( DISTINCT - 85 ) WHEN 63 THEN NULL WHEN + 63 THEN + AVG ( DISTINCT ( 65 ) ) WHEN + COUNT ( * ) THEN + 18 * - 63 * + - CASE - 51 WHEN + + ( 1 ) / + - 84 + - CASE - + 94 WHEN + 8 + - ( + - COUNT ( * ) ) * + + 99 THEN - NULLIF ( - 78, - 66 * + + 60 + - - 69 ) WHEN COUNT ( * ) * - 1 + - - 95 + - 25 THEN NULL WHEN 16 + COUNT ( ALL - 54 ) * + 17 THEN - 59 END + + 15 THEN - MAX ( ALL 59 ) ELSE + 23 * 59 END ELSE 29 * COALESCE ( - NULLIF ( 12, - 44 - + 55 ), + 1 ) END, - 56 ) + + AVG ( 93 ) * + 71 ) * 3 AS col2
----
52
204

query I rowsort
SELECT ALL AVG ( - 38 ) * NULLIF ( - NULLIF ( + 15, - + ( + 91 ) + 65 ), + 73 + - + 88 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT + 20 + + + COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2739
SELECT + 20 + + + COUNT ( * ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT DISTINCT COALESCE ( ( + COUNT( DISTINCT - 6 ) ), - 26 ) * + - 40 * NULLIF ( - + 61, + 44 ) AS col0
----
2440

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT COALESCE ( ( + COUNT ( DISTINCT - 6 ) ), - 26 ) * + - 40 * NULLIF ( - + 61, + 44 ) AS col0
----
2440

query I rowsort
SELECT - NULLIF ( - + 83, - - 29 + + 94 ) AS col0
----
83

query I rowsort
SELECT + 96 + + ( - 24 ) * 68 * 87 AS col0
----
-141888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2743
SELECT + COUNT( DISTINCT - + 35 ) DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-2743
SELECT + COUNT ( DISTINCT - + 35 ) / 65
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2744
SELECT ALL + 87 DIV ( 13 ) + 60
----
66

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL + 87 / ( 13 ) + 60
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT COALESCE ( COUNT( * ), + 61, + 16 ) * + 72 + - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-2745
SELECT COALESCE ( COUNT ( * ), + 61, + 16 ) * + 72 + - COUNT ( * )
----
71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT DISTINCT CAST( 23 AS SIGNED ) + + 33 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT CAST ( 23 AS INTEGER ) + + 33 AS col1
----
56

query I rowsort
SELECT ALL + 94 + 47
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT 60 DIV - 6 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-2749
SELECT 60 / - 6 AS col1
----
-10

query I rowsort
SELECT ALL 12 + 90
----
102

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2752
SELECT DISTINCT + 7 * 61 AS col1, SUM( ALL - 96 ) + + 57 + 19 + ( - + 14 )
----
427
-34

skipif mysql # not compatible
query II rowsort label-2752
SELECT DISTINCT + 7 * 61 AS col1, SUM ( ALL - 96 ) + + 57 + 19 + ( - + 14 )
----
427
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT + 51 * 60 - 33 + 79 - - AVG ( ALL - NULLIF ( - + 87, + + 83 ) ) - - COALESCE ( + CASE + 84 WHEN - 6 + + 4 THEN + 53 + - + 34 * + ( + 89 ) END, + CASE - 24 WHEN - 66 THEN + + COUNT( * ) ELSE 87 END - - ( + 90 ) - 74, + MIN( 38 ) * 83, - - AVG ( - 21 ) ) * - - CASE 82 WHEN - 88 THEN NULL WHEN - CASE - ( COALESCE ( + 10, - 63 ) ) WHEN - 63 + - 43 THEN CAST( NULL AS SIGNED ) + - 0 * - 81 WHEN 98 * 14 THEN NULL END THEN 3 * COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT + 51 * 60 - 33 + 79 - - AVG ( ALL - NULLIF ( - + 87, + + 83 ) ) - - COALESCE ( + CASE + 84 WHEN - 6 + + 4 THEN + 53 + - + 34 * + ( + 89 ) END, + CASE - 24 WHEN - 66 THEN + + COUNT ( * ) ELSE 87 END - - ( + 90 ) - 74, + MIN ( 38 ) * 83, - - AVG ( - 21 ) ) * - - CASE 82 WHEN - 88 THEN NULL WHEN - CASE - ( COALESCE ( + 10, - 63 ) ) WHEN - 63 + - 43 THEN CAST ( NULL AS INTEGER ) + - 0 * - 81 WHEN 98 * 14 THEN NULL END THEN 3 * COUNT ( * ) END AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2755
SELECT - 33 + + - 1 * - 37 + - SUM( DISTINCT + 23 ) * - COUNT( * ) * 47 + - CAST( + - COUNT( * ) AS SIGNED )
----
1086

skipif mysql # not compatible
query I rowsort label-2755
SELECT - 33 + + - 1 * - 37 + - SUM ( DISTINCT + 23 ) * - COUNT ( * ) * 47 + - CAST ( + - COUNT ( * ) AS INTEGER )
----
1086

query I rowsort
SELECT DISTINCT - 55 - ( + 32 ) + - ( + - 46 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2757
SELECT ALL - NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), ( - + 30 ) / - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL - NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), ( - + 30 ) / - 84 )
----
1

query I rowsort
SELECT + 75 * 94 - + 44
----
7006

query I rowsort
SELECT + 27 + - 66 * 10
----
-633

onlyif mysql # DIV for integer division: 
query II rowsort label-2760
SELECT - 36 DIV - 11, 38 AS col1
----
3
38

skipif mysql # not compatible
query II rowsort label-2760
SELECT - 36 / - 11, 38 AS col1
----
3
38

query II rowsort
SELECT 54 * 70 AS col1, 8
----
3780
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2762
SELECT - 49 + + + 39 + + - 6 + + 75 * - 79 * COUNT( * ) * + ( - 55 ) * - 21 - + CAST( - - COUNT( * ) AS SIGNED ) - 15 + + - 20 + 52 + + COUNT( * ) + + - 93 * - ( - ( 35 ) ) DIV 7 * COALESCE ( 9, + COUNT( * ) ) AS col2
----
-6847559

skipif mysql # not compatible
query I rowsort label-2762
SELECT - 49 + + + 39 + + - 6 + + 75 * - 79 * COUNT ( * ) * + ( - 55 ) * - 21 - + CAST ( - - COUNT ( * ) AS INTEGER ) - 15 + + - 20 + 52 + + COUNT ( * ) + + - 93 * - ( - ( 35 ) ) / 7 * COALESCE ( 9, + COUNT ( * ) ) AS col2
----
-6847559

query I rowsort
SELECT 3 + + 89 * - - 28 col0
----
2495

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL - SUM( DISTINCT 89 ) * + NULLIF ( 43, + 74 )
----
-3827

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - SUM ( DISTINCT 89 ) * + NULLIF ( 43, + 74 )
----
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL COALESCE ( - 19, - 55 + - + SUM( DISTINCT + 17 ), + 33 ) + - 13
----
-32

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL COALESCE ( - 19, - 55 + - + SUM ( DISTINCT + 17 ), + 33 ) + - 13
----
-32

query I rowsort
SELECT DISTINCT + 15 * - 60 * + 99
----
-89100

query I rowsort
SELECT 26 * 40 col0
----
1040

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT 0 * + CAST( + COALESCE ( 85, - 44 + + + 48 + + + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2769
SELECT 0 * + CAST ( + COALESCE ( 85, - 44 + + + 48 + + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT COUNT( * ) * - 78 col1
----
-78

skipif mysql # not compatible
query I rowsort label-2770
SELECT COUNT ( * ) * - 78 col1
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2771
SELECT 16 + 90 + 31 + - 86 DIV - COUNT( * )
----
223

skipif mysql # not compatible
query I rowsort label-2771
SELECT 16 + 90 + 31 + - 86 / - COUNT ( * )
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT COUNT( * ) + - 5 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2772
SELECT COUNT ( * ) + - 5 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT ALL + 71 + + - COALESCE ( COUNT( * ), 5, - MIN( ALL + 80 ), - + 90 )
----
70

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL + 71 + + - COALESCE ( COUNT ( * ), 5, - MIN ( ALL + 80 ), - + 90 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2774
SELECT CASE - - COUNT( * ) WHEN + 56 + - 17 THEN - 25 + + + 44 + 58 + - 69 ELSE - - 53 DIV 35 + - + 3 + + - 37 END - - 82 - - 76 * + - 15 * - 62
----
70723

skipif mysql # not compatible
query I rowsort label-2774
SELECT CASE - - COUNT ( * ) WHEN + 56 + - 17 THEN - 25 + + + 44 + 58 + - 69 ELSE - - 53 / 35 + - + 3 + + - 37 END - - 82 - - 76 * + - 15 * - 62
----
70723

query II rowsort
SELECT ( - 17 ) * + + 78, 0 AS col1
----
-1326
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT SUM( + 76 ) + + 18 * + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-2776
SELECT SUM ( + 76 ) + + 18 * + COUNT ( * )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2777
SELECT + ( + NULLIF ( 41, - 92 + COUNT( * ) ) ) / + CAST( NULL AS SIGNED ) / 96 * + - 70 + - COUNT( * ) / 69 * + 48 - + AVG ( DISTINCT 5 ), + 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-2777
SELECT + ( + NULLIF ( 41, - 92 + COUNT ( * ) ) ) / + CAST ( NULL AS INTEGER ) / 96 * + - 70 + - COUNT ( * ) / 69 * + 48 - + AVG ( DISTINCT 5 ), + 84 AS col0
----
NULL
84

query I rowsort
SELECT + 23 * - - 37 + - 41 + - 98
----
712

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT MIN( 64 ) * + + 36 * 83 + + - 19 * - 67
----
192505

skipif mysql # not compatible
query I rowsort label-2779
SELECT MIN ( 64 ) * + + 36 * 83 + + - 19 * - 67
----
192505

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2781
SELECT ALL 23 DIV - 42 * + MIN( - - 33 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL 23 / - 42 * + MIN ( - - 33 ) AS col1
----
0

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

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

query II rowsort
SELECT + 19 AS col0, 34 * + 8 * 89 AS col0
----
19
24208

query I rowsort
SELECT 38 + + - 88 - - 59 AS col1
----
9

query I rowsort
SELECT DISTINCT - 74 * + NULLIF ( - 42, - 18 ) AS col2
----
3108

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - + COALESCE ( - 54, - + 11 + 21 * - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-2786
SELECT - + COALESCE ( - 54, - + 11 + 21 * - COUNT ( * ) )
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT - MAX( DISTINCT 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT - MAX ( DISTINCT 35 ) AS col1
----
-35

query II rowsort
SELECT DISTINCT - 19 + 19 + + NULLIF ( - 28, - ( - 41 ) ) col1, 37
----
-28
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2790
SELECT - NULLIF ( - NULLIF ( + - 6, - + 65 / - COUNT( * ) ), - 48 + ( + 4 ) * - NULLIF ( - + 14, 6 + - 90 + - COALESCE ( - 45, + 6 ) * + 78 * - 12 ) * + 69 * - + 5 ) AS col0, COUNT( * ) AS col0
----
-6
1

skipif mysql # not compatible
query II rowsort label-2790
SELECT - NULLIF ( - NULLIF ( + - 6, - + 65 / - COUNT ( * ) ), - 48 + ( + 4 ) * - NULLIF ( - + 14, 6 + - 90 + - COALESCE ( - 45, + 6 ) * + 78 * - 12 ) * + 69 * - + 5 ) AS col0, COUNT ( * ) AS col0
----
-6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL - COUNT( * ) + + ( + - 14 )
----
-15

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - COUNT ( * ) + + ( + - 14 )
----
-15

query I rowsort
SELECT - 43 - 5 AS col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2793
SELECT - 61 DIV + + CAST( - + 5 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-2793
SELECT - 61 / + + CAST ( - + 5 AS INTEGER )
----
12

query I rowsort
SELECT DISTINCT 67 + - 48 + 23 * - ( + ( - - 52 ) )
----
-1177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2795
SELECT ALL - 39 + + - CAST( NULL AS SIGNED ) + + 35 - + + 88 * - CAST( - COUNT( * ) AS SIGNED ) / + 17 * NULLIF ( - CAST( NULL AS DECIMAL ), + 22 ) * - - COUNT( * ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL - 39 + + - CAST ( NULL AS INTEGER ) + + 35 - + + 88 * - CAST ( - COUNT ( * ) AS INTEGER ) / + 17 * NULLIF ( - CAST ( NULL AS REAL ), + 22 ) * - - COUNT ( * ) * + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 94 + - 53 AS col2
----
-147

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2797
SELECT ALL COUNT( DISTINCT + - 84 ) AS col0, + 58 DIV - 55 + COUNT( * ) AS col2, - COUNT( * ) AS col0
----
1
0
-1

skipif mysql # not compatible
query III rowsort label-2797
SELECT ALL COUNT ( DISTINCT + - 84 ) AS col0, + 58 / - 55 + COUNT ( * ) AS col2, - COUNT ( * ) AS col0
----
1
0
-1

query I rowsort
SELECT - 77 * - - 2 * - + 95
----
14630

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

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

query I rowsort
SELECT ALL + 58 * - 99 AS col1
----
-5742

query I rowsort
SELECT + CASE 42 WHEN + + ( + - ( - + 58 ) ) THEN - 28 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2802
SELECT DISTINCT + 19 * - - 19 * CAST( NULL AS SIGNED ) - + 46, + 86 AS col1
----
NULL
86

skipif mysql # not compatible
query II rowsort label-2802
SELECT DISTINCT + 19 * - - 19 * CAST ( NULL AS INTEGER ) - + 46, + 86 AS col1
----
NULL
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT DISTINCT + - 47 * ( - 92 ) * + 26 + - CAST( 50 AS SIGNED ) - 20 - 53 + 37 - CAST( NULL AS SIGNED ) * - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT + - 47 * ( - 92 ) * + 26 + - CAST ( 50 AS INTEGER ) - 20 - 53 + 37 - CAST ( NULL AS INTEGER ) * - 86 AS col1
----
NULL

query I rowsort
SELECT ALL - - 12 * 18
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT - ( CASE - 82 WHEN SUM( + - NULLIF ( 53, - 23 ) ) * 71 + - 7 + - - 69 THEN - NULLIF ( 23, - AVG ( DISTINCT - COALESCE ( 3, + 15 ) ) + + 23 ) + + SUM( - 63 ) / - 58 * + 34 * + + 35 WHEN + 15 THEN NULL ELSE NULL END ) + + + 51 * - 71 + + 32 + + + 27 / + 47 + + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT - ( CASE - 82 WHEN SUM ( + - NULLIF ( 53, - 23 ) ) * 71 + - 7 + - - 69 THEN - NULLIF ( 23, - AVG ( DISTINCT - COALESCE ( 3, + 15 ) ) + + 23 ) + + SUM ( - 63 ) / - 58 * + 34 * + + 35 WHEN + 15 THEN NULL ELSE NULL END ) + + + 51 * - 71 + + 32 + + + 27 / + 47 + + + 25
----
NULL

query I rowsort
SELECT - - 75 * - - 57 * + 24 * 87 AS col1
----
8926200

query I rowsort
SELECT DISTINCT - 64 * + - 15 AS col2
----
960

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

skipif mysql # not compatible
query I rowsort label-2808
SELECT + 91 * COUNT ( * ) - 45 AS col0
----
46

query I rowsort
SELECT + 78 * + NULLIF ( + - 2, 49 - CASE ( + 96 ) WHEN + AVG ( + - 46 ) THEN NULL ELSE ( 56 ) * 74 END )
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2810
SELECT DISTINCT + 68 * AVG ( 31 ) + - ( CAST( NULL AS SIGNED ) ) + + 63 + - COUNT( * ) * + 54 * - 5 + - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT + 68 * AVG ( 31 ) + - ( CAST ( NULL AS INTEGER ) ) + + 63 + - COUNT ( * ) * + 54 * - 5 + - 37 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT + - MAX( DISTINCT + ( + - 38 ) ) * ( + COUNT( * ) ) + + + 91 col0
----
129

skipif mysql # not compatible
query I rowsort label-2812
SELECT + - MAX ( DISTINCT + ( + - 38 ) ) * ( + COUNT ( * ) ) + + + 91 col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL 20 * NULLIF ( - + 88, 38 ) - + - COUNT( * ) * - + COUNT( * ) * + - 61 + + + 14 + + 30
----
-1655

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL 20 * NULLIF ( - + 88, 38 ) - + - COUNT ( * ) * - + COUNT ( * ) * + - 61 + + + 14 + + 30
----
-1655

onlyif mysql # aggregate syntax: 
query II rowsort label-2814
SELECT ALL + - COALESCE ( - - 6, - - COUNT( * ) + - COUNT( * ), + 14 ) AS col0, + COUNT( * )
----
-6
1

skipif mysql # not compatible
query II rowsort label-2814
SELECT ALL + - COALESCE ( - - 6, - - COUNT ( * ) + - COUNT ( * ), + 14 ) AS col0, + COUNT ( * )
----
-6
1

query I rowsort
SELECT ALL + + 66 * - - 25 + - 3 AS col1
----
1647

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT + COUNT( * ) + + 11 col0, - 22 AS col2
----
12
-22

skipif mysql # not compatible
query II rowsort label-2816
SELECT + COUNT ( * ) + + 11 col0, - 22 AS col2
----
12
-22

query I rowsort
SELECT + 81 - + 96
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT ALL 62 + - - 40 * - COUNT( * ) * + COALESCE ( - 88, - - 93, 80 )
----
3582

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL 62 + - - 40 * - COUNT ( * ) * + COALESCE ( - 88, - - 93, 80 )
----
3582

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT - NULLIF ( - COUNT( * ), - 11 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2819
SELECT - NULLIF ( - COUNT ( * ), - 11 ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2820
SELECT - COUNT( * ) DIV + NULLIF ( + - 98, - + 31 )
----
0

skipif mysql # not compatible
query I rowsort label-2820
SELECT - COUNT ( * ) / + NULLIF ( + - 98, - + 31 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT DISTINCT MAX( 40 ) + - 73 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT MAX ( 40 ) + - 73 AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT ALL 26 + 99 * - + 81 + + + 36 * - 6 * + 66 * - CAST( - 81 AS SIGNED ) * - 10
----
11539367

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL 26 + 99 * - + 81 + + + 36 * - 6 * + 66 * - CAST ( - 81 AS INTEGER ) * - 10
----
11539367

query I rowsort
SELECT + 96 + + - 6 * + 64 * + 88 + + 98 * - - 3 * - 33 AS col2
----
-43398

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT 61 * + + MIN( ALL - 52 )
----
-3172

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT 61 * + + MIN ( ALL - 52 )
----
-3172

query I rowsort
SELECT ALL - 7 - 54
----
-61

query I rowsort
SELECT - 90 * - 86
----
7740

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2828
SELECT - CASE - 17 WHEN + COUNT( ALL + COALESCE ( - NULLIF ( CAST( - 19 AS DECIMAL ), + 32 + - 27 + + 14 ), + 67 + ( - 71 ) ) ) THEN 4 WHEN + 4 THEN NULL END + 24 * COALESCE ( - 66, - 15, - - COUNT( * ) ), 8 + - 60 AS col2
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-2828
SELECT - CASE - 17 WHEN + COUNT ( ALL + COALESCE ( - NULLIF ( CAST ( - 19 AS REAL ), + 32 + - 27 + + 14 ), + 67 + ( - 71 ) ) ) THEN 4 WHEN + 4 THEN NULL END + 24 * COALESCE ( - 66, - 15, - - COUNT ( * ) ), 8 + - 60 AS col2
----
NULL
-52

query I rowsort
SELECT ALL - 8 - + + 42 * - ( - + 15 ) * - 36 + + 50 + + - 32
----
22690

query I rowsort
SELECT + 54 * + - 72 AS col1
----
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT - MAX( ALL + - 78 ) * - + 48 AS col0
----
-3744

skipif mysql # not compatible
query I rowsort label-2831
SELECT - MAX ( ALL + - 78 ) * - + 48 AS col0
----
-3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2832
SELECT + 71 + - + 0 * - 13 + - - 18 - + + CASE COUNT( - CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) + + 23 THEN - COALESCE ( COALESCE ( + + 24, - 42 ), 24 * - + ( - + 20 ) + + - 47 * - 4 + + COUNT( * ) * + 51, 5 ) WHEN - COUNT( * ) THEN NULL END + - + MAX( + 18 ) - - 22 * 68 * - CAST( NULL AS SIGNED ) + - COUNT( * ) - 13 - - COUNT( * ) AS col1, 39 * - + 37 * - 43
----
NULL
62049

skipif mysql # not compatible
query II rowsort label-2832
SELECT + 71 + - + 0 * - 13 + - - 18 - + + CASE COUNT ( - CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) + + 23 THEN - COALESCE ( COALESCE ( + + 24, - 42 ), 24 * - + ( - + 20 ) + + - 47 * - 4 + + COUNT ( * ) * + 51, 5 ) WHEN - COUNT ( * ) THEN NULL END + - + MAX ( + 18 ) - - 22 * 68 * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) - 13 - - COUNT ( * ) AS col1, 39 * - + 37 * - 43
----
NULL
62049

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ALL COUNT( DISTINCT COALESCE ( - 1, + 65, + 16 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL COUNT ( DISTINCT COALESCE ( - 1, + 65, + 16 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL NULLIF ( + + 20, + ( + 72 ) + 68 ) * + + COUNT( * ) * - 17 * - 68 * - - 91 * + 88 AS col0
----
185144960

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL NULLIF ( + + 20, + ( + 72 ) + 68 ) * + + COUNT ( * ) * - 17 * - 68 * - - 91 * + 88 AS col0
----
185144960

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT - COUNT( * ) + + 67 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2837
SELECT - COUNT ( * ) + + 67 AS col0
----
66

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

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

query I rowsort
SELECT DISTINCT + 90 * + 53 AS col1
----
4770

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

skipif mysql # not compatible
query I rowsort label-2840
SELECT - - 90 + - COUNT ( * ) * - 50 AS col1
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2841
SELECT - 27 DIV 80 + - + 24 * COALESCE ( - 38, - + 96, 31 * + 58 + + - 56 * - 65, + COALESCE ( - SUM( DISTINCT - 12 ), - 16, 26 ) DIV + 16 * - - COUNT( * ) - + + 42 ) + - + 95
----
817

skipif mysql # not compatible
query I rowsort label-2841
SELECT - 27 / 80 + - + 24 * COALESCE ( - 38, - + 96, 31 * + 58 + + - 56 * - 65, + COALESCE ( - SUM ( DISTINCT - 12 ), - 16, 26 ) / + 16 * - - COUNT ( * ) - + + 42 ) + - + 95
----
817

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT + 66 * + MAX( 60 )
----
3960

skipif mysql # not compatible
query I rowsort label-2843
SELECT + 66 * + MAX ( 60 )
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT + - 72 * - MAX( DISTINCT - 57 ) + - + 43 * 24 + + COALESCE ( + ( + 70 ), + + 72 ) AS col2
----
-5066

skipif mysql # not compatible
query I rowsort label-2844
SELECT + - 72 * - MAX ( DISTINCT - 57 ) + - + 43 * 24 + + COALESCE ( + ( + 70 ), + + 72 ) AS col2
----
-5066

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2845
SELECT 40 DIV + + SUM( ALL - 18 ) + - COUNT( 77 ) * + 41 + - ( - COUNT( * ) ) + + - NULLIF ( + 2, COUNT( * ) ) + 19 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2845
SELECT 40 / + + SUM ( ALL - 18 ) + - COUNT ( 77 ) * + 41 + - ( - COUNT ( * ) ) + + - NULLIF ( + 2, COUNT ( * ) ) + 19 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2846
SELECT - - COUNT( - 91 ) DIV 72 + 54 + + + ( + COUNT( * ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2846
SELECT - - COUNT ( - 91 ) / 72 + 54 + + + ( + COUNT ( * ) ) AS col1
----
55

query I rowsort
SELECT + 72 - + - 43 col2
----
115

query I rowsort
SELECT + - 91 * + 9 AS col2
----
-819

query I rowsort
SELECT 80 * - - COALESCE ( 77, - 87 * - 90, - 56 + + - 52 ) + + + 66 * - 33 + - 45
----
3937

query I rowsort
SELECT DISTINCT + CASE - - 96 WHEN ( + 81 ) + + + 78 THEN 53 / - - 17 + - - 61 + + + ( + - 74 ) WHEN + 32 THEN NULL WHEN + 88 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT DISTINCT - COUNT( * ) * 75 - CASE - - 77 WHEN + + SUM( + 6 ) / - 68 * 26 + + MAX( ALL 28 ) - - CASE + AVG ( 34 ) WHEN COUNT( * ) THEN + COUNT( - 33 ) + 4 END * 69 - 24 / COUNT( * ) + - 4 THEN NULL WHEN 25 THEN - + 28 + - + COUNT( + + CAST( 32 AS SIGNED ) ) ELSE NULL END + - + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT - COUNT ( * ) * 75 - CASE - - 77 WHEN + + SUM ( + 6 ) / - 68 * 26 + + MAX ( ALL 28 ) - - CASE + AVG ( 34 ) WHEN COUNT ( * ) THEN + COUNT ( - 33 ) + 4 END * 69 - 24 / COUNT ( * ) + - 4 THEN NULL WHEN 25 THEN - + 28 + - + COUNT ( + + CAST ( 32 AS INTEGER ) ) ELSE NULL END + - + 60 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( ( - 42 ), - 87 + + 54 ) * + + ( + 85 ) + - - 67 * + 60
----
7590

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL + COUNT( DISTINCT - - 15 ) + 63 + - 62
----
2

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL + COUNT ( DISTINCT - - 15 ) + 63 + - 62
----
2

query II rowsort
SELECT 68, - 57 AS col1
----
68
-57

query II rowsort
SELECT 79, + 16 col2
----
79
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2856
SELECT ALL 59 AS col2, SUM( DISTINCT - 75 ) * 11 AS col1
----
59
-825

skipif mysql # not compatible
query II rowsort label-2856
SELECT ALL 59 AS col2, SUM ( DISTINCT - 75 ) * 11 AS col1
----
59
-825

query I rowsort
SELECT ALL + 39 + 51 AS col0
----
90

query I rowsort
SELECT ALL 8 - - 4 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT CASE - 44 WHEN - - 95 - - - 96 THEN - - 0 WHEN + ( + - 58 ) THEN + 55 * + ( + 6 ) + MIN( DISTINCT - 82 ) * - 51 * 7 / + 26 + 27 + - - 56 END / 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT CASE - 44 WHEN - - 95 - - - 96 THEN - - 0 WHEN + ( + - 58 ) THEN + 55 * + ( + 6 ) + MIN ( DISTINCT - 82 ) * - 51 * 7 / + 26 + 27 + - - 56 END / 12 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 24 AS col0, - 20 col2
----
24
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT 28 + COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2861
SELECT 28 + COUNT ( * ) AS col1
----
29

query I rowsort
SELECT 70 + + 91 * 88
----
8078

query I rowsort
SELECT ALL 48 - + 47 * - + 53
----
2539

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

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

query I rowsort
SELECT 54 - + - 16 AS col1
----
70

query I rowsort
SELECT ALL 42 * - ( - - 15 ) AS col0
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT DISTINCT 71 * + MIN( + 61 )
----
4331

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT 71 * + MIN ( + 61 )
----
4331

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2869
SELECT DISTINCT 1, - NULLIF ( - COUNT( * ), - 67 ) * + + 6 + 90 AS col0
----
1
96

skipif mysql # not compatible
query II rowsort label-2869
SELECT DISTINCT 1, - NULLIF ( - COUNT ( * ), - 67 ) * + + 6 + 90 AS col0
----
1
96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2870
SELECT 98, CAST( NULL AS DECIMAL ) col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-2870
SELECT 98, CAST ( NULL AS REAL ) col2
----
98
NULL

query I rowsort
SELECT 67 - + - 73
----
140

query I rowsort
SELECT ( - - 80 ) * + + 93
----
7440

query I rowsort
SELECT ALL - ( - 92 ) col2
----
92

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2875
SELECT + COUNT( * ), - 67 * - COUNT( * ) * - 46 AS col0
----
1
-3082

skipif mysql # not compatible
query II rowsort label-2875
SELECT + COUNT ( * ), - 67 * - COUNT ( * ) * - 46 AS col0
----
1
-3082

query II rowsort
SELECT 77 * + 86 AS col0, - 45 AS col1
----
6622
-45

query I rowsort
SELECT ALL 70 + - 48 col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT ALL - - 32 + COUNT( * ) + CASE - + 63 WHEN + NULLIF ( 12, 77 ) * + 60 THEN NULL WHEN - 38 THEN - 55 ELSE - - 47 END
----
80

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL - - 32 + COUNT ( * ) + CASE - + 63 WHEN + NULLIF ( 12, 77 ) * + 60 THEN NULL WHEN - 38 THEN - 55 ELSE - - 47 END
----
80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT DISTINCT - 95 + + 93 DIV 50 * 67 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT - 95 + + 93 / 50 * 67 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT - ( + - ( - + NULLIF ( - 11, 58 + - - 55 ) ) ) * + 35 + SUM( 55 ) + + 95
----
535

skipif mysql # not compatible
query I rowsort label-2881
SELECT - ( + - ( - + NULLIF ( - 11, 58 + - - 55 ) ) ) * + 35 + SUM ( 55 ) + + 95
----
535

onlyif mysql # aggregate syntax: 
query II rowsort label-2882
SELECT 83 AS col2, - COUNT( * ) + 24
----
83
23

skipif mysql # not compatible
query II rowsort label-2882
SELECT 83 AS col2, - COUNT ( * ) + 24
----
83
23

query I rowsort
SELECT ALL - + 41 + + + 40 - - + 70 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT 92 DIV + + ( - 20 ) + 31 * + - 96 * - + 26 AS col1
----
77372

skipif mysql # not compatible
query I rowsort label-2884
SELECT 92 / + + ( - 20 ) + 31 * + - 96 * - + 26 AS col1
----
77372

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT - - COUNT( + 32 ) * - + 85 + - 12 - - 48
----
-49

skipif mysql # not compatible
query I rowsort label-2885
SELECT - - COUNT ( + 32 ) * - + 85 + - 12 - - 48
----
-49

query I rowsort
SELECT - 57 * + 2 + - 67 AS col2
----
-181

onlyif mysql # aggregate syntax: 
query II rowsort label-2887
SELECT + + 69 AS col0, - MIN( + - 81 ) AS col1
----
69
81

skipif mysql # not compatible
query II rowsort label-2887
SELECT + + 69 AS col0, - MIN ( + - 81 ) AS col1
----
69
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT 72 + + + CAST( + 10 AS SIGNED ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2888
SELECT 72 + + + CAST ( + 10 AS INTEGER ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT DISTINCT - COUNT( ALL - - 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT - COUNT ( ALL - - 42 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2890
SELECT - CAST( NULL AS SIGNED ) * 68 * + CASE - MIN( - ( - 65 ) ) WHEN + 13 THEN NULL WHEN - + 63 THEN + ( + - 68 ) * - SUM( - + 93 ) END * 15 + + NULLIF ( - COUNT( * ), + 38 + - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT - CAST ( NULL AS INTEGER ) * 68 * + CASE - MIN ( - ( - 65 ) ) WHEN + 13 THEN NULL WHEN - + 63 THEN + ( + - 68 ) * - SUM ( - + 93 ) END * 15 + + NULLIF ( - COUNT ( * ), + 38 + - 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL 8 - NULLIF ( - + 63, + COALESCE ( - 42, 68 + - 18 ) * + + COALESCE ( - 36, - - COUNT( * ), - 5 * - + COALESCE ( + COUNT( * ), + 61 / - + 90 ) + - 95, + + 19 + + - 96 ) ) col2
----
71

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL 8 - NULLIF ( - + 63, + COALESCE ( - 42, 68 + - 18 ) * + + COALESCE ( - 36, - - COUNT ( * ), - 5 * - + COALESCE ( + COUNT ( * ), + 61 / - + 90 ) + - 95, + + 19 + + - 96 ) ) col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT 45 * - MIN( - 86 )
----
3870

skipif mysql # not compatible
query I rowsort label-2892
SELECT 45 * - MIN ( - 86 )
----
3870

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT DISTINCT + COUNT( * ) - 10 col2, 43
----
-9
43

skipif mysql # not compatible
query II rowsort label-2893
SELECT DISTINCT + COUNT ( * ) - 10 col2, 43
----
-9
43

query I rowsort
SELECT 28 + - 69 - - - 46 * - COALESCE ( ( 52 ), + 64 ) - - 55 AS col2
----
2406

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT SUM( + - 87 ) - - 82
----
-5

skipif mysql # not compatible
query I rowsort label-2895
SELECT SUM ( + - 87 ) - - 82
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT ALL + CAST( NULL AS SIGNED ) - 44 * + ( NULLIF ( 47, + 1 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + CAST ( NULL AS INTEGER ) - 44 * + ( NULLIF ( 47, + 1 ) ) col2
----
NULL

query I rowsort
SELECT 35 * + + 82 AS col2
----
2870

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT COUNT( + + 42 ) * - COUNT( * ) * + 71 col2
----
-71

skipif mysql # not compatible
query I rowsort label-2898
SELECT COUNT ( + + 42 ) * - COUNT ( * ) * + 71 col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT 73 + + + SUM( DISTINCT - ( - 8 ) ) * + 82 AS col0
----
729

skipif mysql # not compatible
query I rowsort label-2899
SELECT 73 + + + SUM ( DISTINCT - ( - 8 ) ) * + 82 AS col0
----
729

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

skipif mysql # not compatible
query I rowsort label-2900
SELECT + 19 * - COUNT ( * ) + 47 * - - 13 AS col0
----
592

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT ( - + 14 ) DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-2901
SELECT ( - + 14 ) / + 66
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2902
SELECT CASE - + 43 WHEN + 73 THEN - - ( - COUNT( * ) ) - - 50 ELSE + COUNT( * ) END DIV + + 14
----
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT CASE - + 43 WHEN + 73 THEN - - ( - COUNT ( * ) ) - - 50 ELSE + COUNT ( * ) END / + + 14
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2904
SELECT - COUNT( ALL + 50 ) AS col1, + 96 * - 16
----
-1
-1536

skipif mysql # not compatible
query II rowsort label-2904
SELECT - COUNT ( ALL + 50 ) AS col1, + 96 * - 16
----
-1
-1536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT ALL 59 * + CAST( NULL AS SIGNED ) * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL 59 * + CAST ( NULL AS INTEGER ) * + 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2906
SELECT - 18 DIV + - 34 + + + 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2906
SELECT - 18 / + - 34 + + + 38 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2907
SELECT DISTINCT + MIN( - - CAST( 64 AS SIGNED ) ) * - - 94
----
6016

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + MIN ( - - CAST ( 64 AS INTEGER ) ) * - - 94
----
6016

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT ALL NULLIF ( - - 10, - COUNT( * ) * + 54 + 49 ) + + - 15
----
-5

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL NULLIF ( - - 10, - COUNT ( * ) * + 54 + 49 ) + + - 15
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + 84 + + + ( + COUNT( * ) ) * - SUM( DISTINCT - COALESCE ( - 97, - 23 ) ) + - 46
----
-59

skipif mysql # not compatible
query I rowsort label-2909
SELECT + 84 + + + ( + COUNT ( * ) ) * - SUM ( DISTINCT - COALESCE ( - 97, - 23 ) ) + - 46
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2910
SELECT DISTINCT + 27 + NULLIF ( - + 16, 81 DIV - - 21 - + 30 DIV + + COUNT( * ) * 71 * - CAST( NULL AS SIGNED ) + - 97 + 67 * - + 54 + + - 55 DIV 53 ) + + 37 DIV + NULLIF ( - 91, - - 64 ) + - - 86
----
97

skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT + 27 + NULLIF ( - + 16, 81 / - - 21 - + 30 / + + COUNT ( * ) * 71 * - CAST ( NULL AS INTEGER ) + - 97 + 67 * - + 54 + + - 55 / 53 ) + + 37 / + NULLIF ( - 91, - - 64 ) + - - 86
----
97

query II rowsort
SELECT ALL - 58 + 66, - 33 AS col2
----
8
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2912
SELECT 23 + - NULLIF ( + 12, CASE - COUNT( * ) WHEN 7 * 21 * + + 88 THEN NULL ELSE MIN( - 88 ) * - - 45 END * - CAST( NULL AS SIGNED ) + + + 69 * + 83 ) col1
----
11

skipif mysql # not compatible
query I rowsort label-2912
SELECT 23 + - NULLIF ( + 12, CASE - COUNT ( * ) WHEN 7 * 21 * + + 88 THEN NULL ELSE MIN ( - 88 ) * - - 45 END * - CAST ( NULL AS INTEGER ) + + + 69 * + 83 ) col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2913
SELECT MIN( + CASE + ( - 75 ) WHEN - 13 THEN NULL ELSE + 25 + 53 END ) AS col0, + 28
----
78
28

skipif mysql # not compatible
query II rowsort label-2913
SELECT MIN ( + CASE + ( - 75 ) WHEN - 13 THEN NULL ELSE + 25 + 53 END ) AS col0, + 28
----
78
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2914
SELECT DISTINCT + - 79 * + 34 - - 49 + - 39 + 23 + - + COUNT( * ) * + 61 AS col0, + CASE + 25 WHEN 10 * 43 THEN - 32 * 81 ELSE NULL END * - 55 + - + 70 * - + 58 AS col2
----
-2714
NULL

skipif mysql # not compatible
query II rowsort label-2914
SELECT DISTINCT + - 79 * + 34 - - 49 + - 39 + 23 + - + COUNT ( * ) * + 61 AS col0, + CASE + 25 WHEN 10 * 43 THEN - 32 * 81 ELSE NULL END * - 55 + - + 70 * - + 58 AS col2
----
-2714
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT ALL - + CAST( NULL AS SIGNED ) * 55 + + 32 + - 17 + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - + CAST ( NULL AS INTEGER ) * 55 + + 32 + - 17 + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT - COUNT( * ) * 51 * + + ( - 48 ) + + MAX( ALL + 72 ) AS col0
----
2520

skipif mysql # not compatible
query I rowsort label-2916
SELECT - COUNT ( * ) * 51 * + + ( - 48 ) + + MAX ( ALL + 72 ) AS col0
----
2520

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT ALL + 77 * 90 * - - COUNT( * ) + 2 * - 60, + 49 col2
----
6810
49

skipif mysql # not compatible
query II rowsort label-2917
SELECT ALL + 77 * 90 * - - COUNT ( * ) + 2 * - 60, + 49 col2
----
6810
49

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

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

query I rowsort
SELECT + 87 + - 54 AS col2
----
33

query I rowsort
SELECT + 91 * - ( 78 ) AS col2
----
-7098

query I rowsort
SELECT - 61 + 39 AS col0
----
-22

query I rowsort
SELECT - + 31 - + - 81 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT 62 * - 78 + + - 6 + 27 - COUNT( * )
----
-4816

skipif mysql # not compatible
query I rowsort label-2923
SELECT 62 * - 78 + + - 6 + 27 - COUNT ( * )
----
-4816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2924
SELECT ALL + MAX( - 31 ) * - COUNT( * ) DIV - 87 + - + 29
----
-29

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + MAX ( - 31 ) * - COUNT ( * ) / - 87 + - + 29
----
-29

query I rowsort
SELECT - 15 * - 18
----
270

query I rowsort
SELECT DISTINCT 38 * - + 47
----
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + NULLIF ( - - COUNT( * ), - - 84 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2927
SELECT + NULLIF ( - - COUNT ( * ), - - 84 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT + 79 DIV 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2928
SELECT + 79 / 55 AS col1
----
1

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

query II rowsort
SELECT DISTINCT + 6 AS col0, ( - + 40 ) col2
----
6
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT SUM( - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-2931
SELECT SUM ( - 87 )
----
-87

query II rowsort
SELECT - ( - + 56 ) * + COALESCE ( - + 19, + 22 ) * + + 26 col1, 87 AS col0
----
-27664
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL + COALESCE ( COUNT( * ), - 53 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL + COALESCE ( COUNT ( * ), - 53 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT DISTINCT NULLIF ( - - 11, + ( - 50 ) * - - 5 - - ( CAST( NULL AS SIGNED ) ) )
----
11

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT NULLIF ( - - 11, + ( - 50 ) * - - 5 - - ( CAST ( NULL AS INTEGER ) ) )
----
11

query I rowsort
SELECT ALL - 4 + - 60 AS col1
----
-64

query I rowsort
SELECT DISTINCT NULLIF ( 82, - + 57 )
----
82

query I rowsort
SELECT ALL + 77 * - 4 AS col1
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL NULLIF ( - - COUNT( * ), - 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL NULLIF ( - - COUNT ( * ), - 23 ) AS col2
----
1

query I rowsort
SELECT + 71 + - + 70
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL - COUNT( * ) + - 78 * + NULLIF ( - 64, - 28 )
----
4991

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - COUNT ( * ) + - 78 * + NULLIF ( - 64, - 28 )
----
4991

query I rowsort
SELECT ALL - 47 + + - 7 + 72 AS col2
----
18

query I rowsort
SELECT DISTINCT 8 + + + 9
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2943
SELECT DISTINCT + - 99 + CAST( NULL AS SIGNED ) + + COALESCE ( - 27, + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT + - 99 + CAST ( NULL AS INTEGER ) + + COALESCE ( - 27, + 37 )
----
NULL

query II rowsort
SELECT DISTINCT + ( - 54 ) + + NULLIF ( + - 71, + 96 * - 33 ) AS col2, - ( - 37 )
----
-125
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2945
SELECT ALL - + COUNT( ALL + 18 ) / + 10 + - + 29 + + + CAST( NULL AS SIGNED ) + - 32 * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - + COUNT ( ALL + 18 ) / + 10 + - + 29 + + + CAST ( NULL AS INTEGER ) + - 32 * 71
----
NULL

query II rowsort
SELECT - - 86 col0, + 83 + - 94 * 38 AS col1
----
86
-3489

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT NULLIF ( 19, - + 23 - + ( - - COUNT( * ) ) )
----
19

skipif mysql # not compatible
query I rowsort label-2947
SELECT NULLIF ( 19, - + 23 - + ( - - COUNT ( * ) ) )
----
19

query I rowsort
SELECT - + 40 * + - 12 * + 88
----
42240

query I rowsort
SELECT - 75 * - - 41 * + + 60 col1
----
-184500

query I rowsort
SELECT ALL + 71 * - + 87 AS col0
----
-6177

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2951
SELECT 75, ( + - 59 ) * CAST( NULL AS SIGNED ) AS col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-2951
SELECT 75, ( + - 59 ) * CAST ( NULL AS INTEGER ) AS col1
----
75
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2952
SELECT ALL + + ( 41 ) DIV - COUNT( * ) - - 14 + + - 8 * - + 77 + 54 + + + 46 + + COUNT( * ) + + ( 25 ) * NULLIF ( 1, + - COUNT( * ) ) * + - ( - 70 ) + 44 AS col0
----
2484

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + + ( 41 ) / - COUNT ( * ) - - 14 + + - 8 * - + 77 + 54 + + + 46 + + COUNT ( * ) + + ( 25 ) * NULLIF ( 1, + - COUNT ( * ) ) * + - ( - 70 ) + 44 AS col0
----
2484

query II rowsort
SELECT DISTINCT - - 44 * 40 + + + ( - 53 ) AS col1, 60
----
1707
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2954
SELECT DISTINCT 77 * + - CAST( NULL AS SIGNED ) * - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT 77 * + - CAST ( NULL AS INTEGER ) * - 61 AS col0
----
NULL

query II rowsort
SELECT ALL + - 81, 82 AS col2
----
-81
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT - 52 * + COUNT( * ) * + 59
----
-3068

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT - 52 * + COUNT ( * ) * + 59
----
-3068

query I rowsort
SELECT + + 41 * - 30
----
-1230

query I rowsort
SELECT - 24 * 58 + + 52 AS col1
----
-1340

query I rowsort
SELECT ( COALESCE ( - - 85, - 7 + 5 ) )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2960
SELECT 53 * 70 DIV + 3 + COUNT( * )
----
1237

skipif mysql # not compatible
query I rowsort label-2960
SELECT 53 * 70 / + 3 + COUNT ( * )
----
1237

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT 44 * - 96 * - SUM( 59 ) + - + COUNT( * ) + + 24
----
249239

skipif mysql # not compatible
query I rowsort label-2961
SELECT 44 * - 96 * - SUM ( 59 ) + - + COUNT ( * ) + + 24
----
249239

query I rowsort
SELECT CASE + 38 WHEN + - 18 THEN NULL WHEN + 75 THEN 38 * + 26 + 16 * + + 62 + 71 END
----
NULL

query I rowsort
SELECT DISTINCT 31 * - + 24 col0
----
-744

query I rowsort
SELECT DISTINCT 48 * + - 14 AS col1
----
-672

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT ALL + 37 * + - 17 * 12 + + 27 DIV - 86
----
-7548

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL + 37 * + - 17 * 12 + + 27 / - 86
----
-7548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT - SUM( DISTINCT 51 ) DIV + + 98
----
0

skipif mysql # not compatible
query I rowsort label-2966
SELECT - SUM ( DISTINCT 51 ) / + + 98
----
0

query I rowsort
SELECT COALESCE ( 38, - - 46 )
----
38

query I rowsort
SELECT ALL 54 * + 89 + + 84 AS col0
----
4890

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2970
SELECT + SUM( 52 ) DIV - 38 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2970
SELECT + SUM ( 52 ) / - 38 AS col0
----
-1

query I rowsort
SELECT - 18 + - 42
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT MAX( ALL + + COALESCE ( - 28, - 51 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT MAX ( ALL + + COALESCE ( - 28, - 51 ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL 9 * + - MIN( DISTINCT + 97 ) + + 16
----
-857

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL 9 * + - MIN ( DISTINCT + 97 ) + + 16
----
-857

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL - MIN( 36 ) + - ( 4 )
----
-40

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL - MIN ( 36 ) + - ( 4 )
----
-40

query I rowsort
SELECT ALL - + 26 * + - 6 * + - 10
----
-1560

query I rowsort
SELECT - + 30 * - 80 AS col2
----
2400

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT - COUNT( * ) + CASE + COUNT( * ) WHEN 67 * - - 48 + - - 48 THEN + CAST( NULL AS SIGNED ) * - 0 ELSE - 37 + + - ( - AVG ( DISTINCT - 95 ) ) + - CASE + - ( + 40 ) WHEN 49 + - + COUNT( * ) * + COUNT( - 4 ) THEN - 54 ELSE NULL END * 21 * + 13 * + + 43 * 51 END * COUNT( * ) * - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT - COUNT ( * ) + CASE + COUNT ( * ) WHEN 67 * - - 48 + - - 48 THEN + CAST ( NULL AS INTEGER ) * - 0 ELSE - 37 + + - ( - AVG ( DISTINCT - 95 ) ) + - CASE + - ( + 40 ) WHEN 49 + - + COUNT ( * ) * + COUNT ( - 4 ) THEN - 54 ELSE NULL END * 21 * + 13 * + + 43 * 51 END * COUNT ( * ) * - 31 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2979
SELECT ALL - MAX( DISTINCT + CAST( + 25 AS SIGNED ) ) * + 0 DIV 93 * + 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL - MAX ( DISTINCT + CAST ( + 25 AS INTEGER ) ) * + 0 / 93 * + 37 AS col0
----
0

query I rowsort
SELECT + 55 + 0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2981
SELECT MIN( - 9 ) col2, + 90 DIV MAX( + 84 ) col2
----
-9
1

skipif mysql # not compatible
query II rowsort label-2981
SELECT MIN ( - 9 ) col2, + 90 / MAX ( + 84 ) col2
----
-9
1

query I rowsort
SELECT 32 + + + 25 * - + 62 * + + 8
----
-12368

query I rowsort
SELECT ALL - + 67 * 39 * + - 62 AS col2
----
162006

onlyif mysql # aggregate syntax: 
query II rowsort label-2984
SELECT 78 + + + NULLIF ( - 60, - + COUNT( * ) ) + - + COUNT( * ) AS col1, 31 * + + 71
----
17
2201

skipif mysql # not compatible
query II rowsort label-2984
SELECT 78 + + + NULLIF ( - 60, - + COUNT ( * ) ) + - + COUNT ( * ) AS col1, 31 * + + 71
----
17
2201

query I rowsort
SELECT ALL - 14 * - ( - + 4 ) AS col2
----
-56

query I rowsort
SELECT - 96 + + 72 AS col0
----
-24

query I rowsort
SELECT 70 * - 22 + + 93 * + 79 AS col2
----
5807

query I rowsort
SELECT ALL 49 * + - 80
----
-3920

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT 54 * - - 11 * - 0 DIV 1 + - - 18 DIV + 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-2989
SELECT 54 * - - 11 * - 0 / 1 + - - 18 / + 89 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2990
SELECT - 62 * - 70 DIV + ( + - COUNT( * ) ) + + 47 + - COALESCE ( 35, + - 67 * + ( + 38 ) ) + - 24 - - ( + 3 ) + + + 29 * 96 * - + NULLIF ( - 93, + 22 * - COUNT( * ) ) AS col0
----
254563

skipif mysql # not compatible
query I rowsort label-2990
SELECT - 62 * - 70 / + ( + - COUNT ( * ) ) + + 47 + - COALESCE ( 35, + - 67 * + ( + 38 ) ) + - 24 - - ( + 3 ) + + + 29 * 96 * - + NULLIF ( - 93, + 22 * - COUNT ( * ) ) AS col0
----
254563

query II rowsort
SELECT + 3, - 22 AS col1
----
3
-22

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

skipif mysql # not compatible
query I rowsort label-2992
SELECT 38 / - COUNT ( * )
----
-38

query I rowsort
SELECT ALL 50 * + 54 col2
----
2700

query I rowsort
SELECT ALL + 49 + + 69
----
118

query I rowsort
SELECT 73 * - + 33 AS col2
----
-2409

query I rowsort
SELECT ALL 7 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ( - NULLIF ( - + 92, - 8 * - + COUNT( * ) - - 5 ) ) + + + 46 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-2997
SELECT ( - NULLIF ( - + 92, - 8 * - + COUNT ( * ) - - 5 ) ) + + + 46 AS col2
----
138

query I rowsort
SELECT 63 * 75 * - 52 col0
----
-245700

query I rowsort
SELECT DISTINCT 77 + - 41 AS col1
----
36

query I rowsort
SELECT ALL 30 * 33
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL COUNT( * ) + - CASE 44 WHEN - ( - + 31 ) THEN NULL WHEN 70 THEN 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL COUNT ( * ) + - CASE 44 WHEN - ( - + 31 ) THEN NULL WHEN 70 THEN 86 END
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 29 - + - 96 AS col1
----
67

query I rowsort
SELECT 46 + 52
----
98

query II rowsort
SELECT ALL + NULLIF ( - 14, - + 2 * 30 + ( - + 66 ) ) AS col2, 77 AS col2
----
-14
77

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

query II rowsort
SELECT DISTINCT - 64 col0, + 95 + + 97 - - 39 AS col0
----
-64
231

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( 81, 30 )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT ALL + - COALESCE ( + - 67, + 80 * + COUNT( + CASE 40 WHEN 70 THEN 47 WHEN - 4 THEN - + 2 * 72 END ) - + - COUNT( DISTINCT - 66 ), + + 47 ) DIV + 92 * - + 44 DIV - - 43 col0
----
0

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + - COALESCE ( + - 67, + 80 * + COUNT ( + CASE 40 WHEN 70 THEN 47 WHEN - 4 THEN - + 2 * 72 END ) - + - COUNT ( DISTINCT - 66 ), + + 47 ) / + 92 * - + 44 / - - 43 col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3012
SELECT ALL - 63 * 78 * + 71 AS col2, - COUNT( * )
----
-348894
-1

skipif mysql # not compatible
query II rowsort label-3012
SELECT ALL - 63 * 78 * + 71 AS col2, - COUNT ( * )
----
-348894
-1

query II rowsort
SELECT ALL - 19 * 58 + - - 76, 52 * 98 * - + 43 col0
----
-1026
-219128

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + COUNT( * ) * - NULLIF ( + + 38, + 27 ) * MAX( DISTINCT 43 )
----
-1634

skipif mysql # not compatible
query I rowsort label-3014
SELECT + COUNT ( * ) * - NULLIF ( + + 38, + 27 ) * MAX ( DISTINCT 43 )
----
-1634

query I rowsort
SELECT ALL - + 14 * - - 34
----
-476

query I rowsort
SELECT 3 - 98 * - ( + 74 ) AS col0
----
7255

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

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

query I rowsort
SELECT ALL - 28 + 96
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT + 69 * - - COUNT( * ) col1
----
69

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT + 69 * - - COUNT ( * ) col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3020
SELECT COUNT( * ) AS col0, 57 + 47 - - 91
----
1
195

skipif mysql # not compatible
query II rowsort label-3020
SELECT COUNT ( * ) AS col0, 57 + 47 - - 91
----
1
195

query I rowsort
SELECT 83 * 27
----
2241

query I rowsort
SELECT ALL - NULLIF ( - 49, 54 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT DISTINCT 91 * MAX( - 55 ) + + + ( CASE 83 WHEN - ( - ( + CASE - 46 WHEN - + 71 / + 80 + - + 60 THEN + + 6 + + + AVG ( DISTINCT + + 15 ) END ) ) THEN NULL WHEN - CAST( NULL AS SIGNED ) + + 52 + + CASE + 34 WHEN - - MAX( CAST( NULL AS SIGNED ) ) + 16 + + 90 * - 58 * - 48 / + COUNT( * ) + + 53 + + + 23 + - - ( + + AVG ( DISTINCT + 77 ) ) / - 77 THEN + 76 + 82 * - 54 * + 33 * + 59 * + 16 * + MAX( 56 ) ELSE + 11 / + 55 - 75 * + - 64 * 96 * ( 67 * - MIN( ALL - CAST( NULL AS SIGNED ) ) ) END THEN 47 WHEN 66 THEN NULL END ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT 91 * MAX ( - 55 ) + + + ( CASE 83 WHEN - ( - ( + CASE - 46 WHEN - + 71 / + 80 + - + 60 THEN + + 6 + + + AVG ( DISTINCT + + 15 ) END ) ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) + + 52 + + CASE + 34 WHEN - - MAX ( CAST ( NULL AS INTEGER ) ) + 16 + + 90 * - 58 * - 48 / + COUNT ( * ) + + 53 + + + 23 + - - ( + + AVG ( DISTINCT + 77 ) ) / - 77 THEN + 76 + 82 * - 54 * + 33 * + 59 * + 16 * + MAX ( 56 ) ELSE + 11 / + 55 - 75 * + - 64 * 96 * ( 67 * - MIN ( ALL - CAST ( NULL AS INTEGER ) ) ) END THEN 47 WHEN 66 THEN NULL END ) + 47
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3024
SELECT 73 DIV + + 11 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3024
SELECT 73 / + + 11 AS col1
----
6

query I rowsort
SELECT + 78 * 60 - 13
----
4667

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL - NULLIF ( - SUM( ALL + - 82 ), + CASE - 61 WHEN + 89 / - + AVG ( ALL + 1 ) * - 89 * - 35 * - 80 + 7 + - + 89 + + 66 / - - 87 + - + AVG ( DISTINCT + 76 ) THEN 88 ELSE - AVG ( DISTINCT - - 50 ) END )
----
-82

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - NULLIF ( - SUM ( ALL + - 82 ), + CASE - 61 WHEN + 89 / - + AVG ( ALL + 1 ) * - 89 * - 35 * - 80 + 7 + - + 89 + + 66 / - - 87 + - + AVG ( DISTINCT + 76 ) THEN 88 ELSE - AVG ( DISTINCT - - 50 ) END )
----
-82

query II rowsort
SELECT + 21 AS col2, 73
----
21
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT ALL 2 * + NULLIF ( + CAST( NULL AS SIGNED ), + 59 ) + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL 2 * + NULLIF ( + CAST ( NULL AS INTEGER ), + 59 ) + 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT SUM( - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3029
SELECT SUM ( - 7 ) AS col2
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-3030
SELECT + 30, 53 + - 51 DIV 79 AS col0
----
30
53

skipif mysql # not compatible
query II rowsort label-3030
SELECT + 30, 53 + - 51 / 79 AS col0
----
30
53

query II rowsort
SELECT ALL - 59, + 71 AS col1
----
-59
71

query I rowsort
SELECT DISTINCT + 1 * 36 AS col2
----
36

query I rowsort
SELECT - 39 * + 53 + + 96
----
-1971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT ALL CAST( + 0 AS SIGNED ) - - 36 * + 76 * - 97 AS col0
----
-265392

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL CAST ( + 0 AS INTEGER ) - - 36 * + 76 * - 97 AS col0
----
-265392

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT - - 36 + - COUNT( DISTINCT + - 59 ) * - 82 + 54 AS col1
----
172

skipif mysql # not compatible
query I rowsort label-3035
SELECT - - 36 + - COUNT ( DISTINCT + - 59 ) * - 82 + 54 AS col1
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT + + 55 + + - 59 DIV 26 * 9 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3036
SELECT + + 55 + + - 59 / 26 * 9 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3037
SELECT ALL COUNT( * ) - MIN( + - 73 ) * + 97 AS col2, - 19 AS col1
----
7082
-19

skipif mysql # not compatible
query II rowsort label-3037
SELECT ALL COUNT ( * ) - MIN ( + - 73 ) * + 97 AS col2, - 19 AS col1
----
7082
-19

query II rowsort
SELECT 14 AS col1, 5 * - 69 AS col2
----
14
-345

query I rowsort
SELECT - 83 * - 22 + - + ( + 23 )
----
1803

query I rowsort
SELECT - NULLIF ( 21, 26 ) AS col1
----
-21

query I rowsort
SELECT DISTINCT 43 * + 95
----
4085

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3042
SELECT + COUNT( * ) DIV 43 + 13 * - + 23 AS col0
----
-299

skipif mysql # not compatible
query I rowsort label-3042
SELECT + COUNT ( * ) / 43 + 13 * - + 23 AS col0
----
-299

query I rowsort
SELECT ALL 70 + - 48 AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3044
SELECT ALL 37, + 21 DIV + 5 DIV COUNT( * ) col0
----
37
4

skipif mysql # not compatible
query II rowsort label-3044
SELECT ALL 37, + 21 / + 5 / COUNT ( * ) col0
----
37
4

query II rowsort
SELECT 12, - 23 AS col1
----
12
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT + + 51 + 23 - + + MIN( ALL 14 ) * NULLIF ( + 77, + + 33 )
----
-1004

skipif mysql # not compatible
query I rowsort label-3046
SELECT + + 51 + 23 - + + MIN ( ALL 14 ) * NULLIF ( + 77, + + 33 )
----
-1004

query II rowsort
SELECT - 9 AS col0, 25
----
-9
25

query I rowsort
SELECT ALL - 71 + 83 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3049
SELECT ALL MAX( ( 23 ) ), 55 - + 46 col1
----
23
9

skipif mysql # not compatible
query II rowsort label-3049
SELECT ALL MAX ( ( 23 ) ), 55 - + 46 col1
----
23
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT + COUNT( * ) + - ( - MIN( ALL ( + 57 ) ) ) col0
----
58

skipif mysql # not compatible
query I rowsort label-3050
SELECT + COUNT ( * ) + - ( - MIN ( ALL ( + 57 ) ) ) col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3051
SELECT ALL COALESCE ( + + 66, + 67, + + COUNT( * ) * + COUNT( * ), + - ( + 95 ) * - - CAST( 79 AS SIGNED ) ) + - 97 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL COALESCE ( + + 66, + 67, + + COUNT ( * ) * + COUNT ( * ), + - ( + 95 ) * - - CAST ( 79 AS INTEGER ) ) + - 97 AS col2
----
-31

query I rowsort
SELECT + ( + 20 ) * + ( 33 ) * - 53 + - 62 AS col0
----
-35042

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT DISTINCT + 41 * + CASE - - 51 WHEN SUM( 1 ) THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT + 41 * + CASE - - 51 WHEN SUM ( 1 ) THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3054
SELECT ALL COALESCE ( 69, + 40 ) * CAST( NULL AS DECIMAL ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL COALESCE ( 69, + 40 ) * CAST ( NULL AS REAL ) + + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3055
SELECT ( - MIN( ALL ( + CAST( NULLIF ( + 78, + 16 ) AS SIGNED ) ) ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3055
SELECT ( - MIN ( ALL ( + CAST ( NULLIF ( + 78, + 16 ) AS INTEGER ) ) ) ) AS col1
----
-78

query I rowsort
SELECT - 31 + - 97
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3057
SELECT - ( + + 47 ) * CAST( - 80 AS SIGNED )
----
3760

skipif mysql # not compatible
query I rowsort label-3057
SELECT - ( + + 47 ) * CAST ( - 80 AS INTEGER )
----
3760

query I rowsort
SELECT DISTINCT + 14 * + - 49 * + + 6
----
-4116

query II rowsort
SELECT DISTINCT 66 * 87 * + 75, 49 AS col2
----
430650
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3060
SELECT ALL 67 * + 52 - - CASE - + 50 WHEN - + 73 THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE COUNT( * ) / + 45 + - 80 + 44 + + 37 END * - ( + 22 ) * + 11 * + CAST( NULL AS SIGNED ) + - COUNT( * ) + + 41 + + + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL 67 * + 52 - - CASE - + 50 WHEN - + 73 THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE COUNT ( * ) / + 45 + - 80 + 44 + + 37 END * - ( + 22 ) * + 11 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 41 + + + 97 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3062
SELECT ALL - CAST( + AVG ( DISTINCT + 24 ) AS SIGNED ) * + 8 - + - COUNT( * ) AS col2, + COUNT( * ) AS col2
----
-191
1

skipif mysql # not compatible
query II rowsort label-3062
SELECT ALL - CAST ( + AVG ( DISTINCT + 24 ) AS INTEGER ) * + 8 - + - COUNT ( * ) AS col2, + COUNT ( * ) AS col2
----
-191
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT NULLIF ( - - 53, MIN( ALL + - ( + 60 ) ) )
----
53

skipif mysql # not compatible
query I rowsort label-3065
SELECT NULLIF ( - - 53, MIN ( ALL + - ( + 60 ) ) )
----
53

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

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

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

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

query I rowsort
SELECT + 73 * - 88 * + 44
----
-282656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3069
SELECT + - MAX( + 1 ) DIV - - COALESCE ( - - 45, + COUNT( * ) DIV - 27 )
----
0

skipif mysql # not compatible
query I rowsort label-3069
SELECT + - MAX ( + 1 ) / - - COALESCE ( - - 45, + COUNT ( * ) / - 27 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT + CASE CASE 65 WHEN 39 THEN + + 1 END WHEN + 44 + - + 47 THEN 36 / + 97 + + - 29 + - COALESCE ( - CAST( + + 11 AS SIGNED ), 25 ) WHEN + - 36 THEN - - 74 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT + CASE CASE 65 WHEN 39 THEN + + 1 END WHEN + 44 + - + 47 THEN 36 / + 97 + + - 29 + - COALESCE ( - CAST ( + + 11 AS INTEGER ), 25 ) WHEN + - 36 THEN - - 74 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT ALL - 27 * CAST( + 86 AS SIGNED ) col1
----
-2322

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL - 27 * CAST ( + 86 AS INTEGER ) col1
----
-2322

query II rowsort
SELECT ALL + ( 76 ), + 98 AS col1
----
76
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT ALL + CASE + 72 WHEN 37 + 52 THEN NULL WHEN COUNT( * ) * - ( - 46 ) * - AVG ( DISTINCT 7 ) * - + ( + ( + 88 ) ) THEN - - SUM( ALL - - 71 ) WHEN 47 THEN + 9 ELSE + MAX( DISTINCT 24 ) * - - 39 END + + 92
----
1028

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL + CASE + 72 WHEN 37 + 52 THEN NULL WHEN COUNT ( * ) * - ( - 46 ) * - AVG ( DISTINCT 7 ) * - + ( + ( + 88 ) ) THEN - - SUM ( ALL - - 71 ) WHEN 47 THEN + 9 ELSE + MAX ( DISTINCT 24 ) * - - 39 END + + 92
----
1028

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT DISTINCT 99 + COUNT( * ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT 99 + COUNT ( * ) AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL COUNT( * ) + + 86 col1
----
87

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL COUNT ( * ) + + 86 col1
----
87

query II rowsort
SELECT ALL + ( - 28 ), + 37 * 93 + + - NULLIF ( + 11, + - 21 ) AS col1
----
-28
3430

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3079
SELECT 77, + COUNT( * ) DIV 94 DIV ( - + COUNT( * ) ) AS col1
----
77
0

skipif mysql # not compatible
query II rowsort label-3079
SELECT 77, + COUNT ( * ) / 94 / ( - + COUNT ( * ) ) AS col1
----
77
0

query I rowsort
SELECT ALL 67 * + 39 AS col1
----
2613

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

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

query I rowsort
SELECT - CASE + 41 WHEN + 45 THEN + + 10 ELSE NULL END
----
NULL

query I rowsort
SELECT + 25 * - + 67
----
-1675

query I rowsort
SELECT - 48 * + 84 AS col2
----
-4032

onlyif mysql # DIV for integer division: 
query I rowsort label-3085
SELECT DISTINCT 72 DIV - ( + - 12 )
----
6

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT 72 / - ( + - 12 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3086
SELECT DISTINCT + 27 AS col2, 67 + + SUM( + 16 ) - - - 20 AS col0
----
27
63

skipif mysql # not compatible
query II rowsort label-3086
SELECT DISTINCT + 27 AS col2, 67 + + SUM ( + 16 ) - - - 20 AS col0
----
27
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT + MIN( + 56 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT + MIN ( + 56 ) col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3088
SELECT ALL - 18 DIV - + 26 - + 58 * - - 78 col1
----
-4524

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL - 18 / - + 26 - + 58 * - - 78 col1
----
-4524

query I rowsort
SELECT + 13 / ( + CASE + - 47 WHEN + - 98 THEN NULL WHEN - + 72 * - 85 / - + 33 - + - 93 THEN NULL WHEN 61 THEN - - COALESCE ( CASE 86 WHEN + - 22 THEN NULL ELSE + 56 END, 38 ) * 6 ELSE NULL END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT 18 / - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3091
SELECT ALL + 43 AS col1, - 66 * + COUNT( * ) col0
----
43
-66

skipif mysql # not compatible
query II rowsort label-3091
SELECT ALL + 43 AS col1, - 66 * + COUNT ( * ) col0
----
43
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT MIN( 44 ) + + 43
----
87

skipif mysql # not compatible
query I rowsort label-3092
SELECT MIN ( 44 ) + + 43
----
87

query I rowsort
SELECT ALL 71 - 18
----
53

query II rowsort
SELECT 77, 19 * + - 21 + + + 31 AS col2
----
77
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT + 31 * + COUNT( 83 ) + + 44 + + 18 * + 79 + - 92 * + + 84 AS col2
----
-6231

skipif mysql # not compatible
query I rowsort label-3095
SELECT + 31 * + COUNT ( 83 ) + + 44 + + 18 * + 79 + - 92 * + + 84 AS col2
----
-6231

onlyif mysql # DIV for integer division: 
query II rowsort label-3096
SELECT 15 AS col0, + 20 DIV 9
----
15
2

skipif mysql # not compatible
query II rowsort label-3096
SELECT 15 AS col0, + 20 / 9
----
15
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL + MIN( DISTINCT - 11 ) * - 73
----
803

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + MIN ( DISTINCT - 11 ) * - 73
----
803

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3099
SELECT - + 52 * + + 6 + - - 4 AS col2, - 16 DIV + 90
----
-308
0

skipif mysql # not compatible
query II rowsort label-3099
SELECT - + 52 * + + 6 + - - 4 AS col2, - 16 / + 90
----
-308
0

query II rowsort
SELECT 87 AS col0, + NULLIF ( 62, + - 82 * 75 + - 71 + - CASE - AVG ( DISTINCT + - 18 ) WHEN + + 94 THEN 30 END ) AS col1
----
87
62

query I rowsort
SELECT ALL - + 25 * 62 * - + 8
----
12400

onlyif mysql # aggregate syntax: 
query II rowsort label-3102
SELECT 21 + - COUNT( * ) + - + 91 AS col2, 73 * + 60
----
-71
4380

skipif mysql # not compatible
query II rowsort label-3102
SELECT 21 + - COUNT ( * ) + - + 91 AS col2, 73 * + 60
----
-71
4380

onlyif mysql # aggregate syntax: 
query II rowsort label-3103
SELECT DISTINCT - 80 AS col1, + 10 * COUNT( * ) AS col0
----
-80
10

skipif mysql # not compatible
query II rowsort label-3103
SELECT DISTINCT - 80 AS col1, + 10 * COUNT ( * ) AS col0
----
-80
10

query I rowsort
SELECT ALL - 98 + + 89 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3105
SELECT DISTINCT - + 81, COUNT( * ) * 15 * - + 78 col1
----
-81
-1170

skipif mysql # not compatible
query II rowsort label-3105
SELECT DISTINCT - + 81, COUNT ( * ) * 15 * - + 78 col1
----
-81
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT COUNT( * ) * + - 66 + - 33 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3106
SELECT COUNT ( * ) * + - 66 + - 33 AS col0
----
-99

query I rowsort
SELECT DISTINCT - - 83 + + 25 col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT - 73 + COUNT( * ) + COALESCE ( 20, + 98 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3108
SELECT - 73 + COUNT ( * ) + COALESCE ( 20, + 98 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT ALL - - 8 + + 82 + - COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - - 8 + + 82 + - COUNT ( * ) AS col0
----
89

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3111
SELECT 1 * CAST( NULL AS DECIMAL ) * - 31 * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT 1 * CAST ( NULL AS REAL ) * - 31 * - 91
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3112
SELECT DISTINCT + - 3 + + 63 DIV - - MAX( ALL - ( - - 7 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT + - 3 + + 63 / - - MAX ( ALL - ( - - 7 ) ) AS col0
----
-12

query I rowsort
SELECT DISTINCT + + 95 + - 10
----
85

query I rowsort
SELECT DISTINCT 88 + 27 + + 34 AS col1
----
149

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT DISTINCT ( - + CAST( + 97 AS SIGNED ) )
----
-97

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT ( - + CAST ( + 97 AS INTEGER ) )
----
-97

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

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

query I rowsort
SELECT 79 + 95
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT NULLIF ( - 27, - COALESCE ( 30, + 45 - 41 + - 43 * + COUNT( * ) ) - + COALESCE ( + + 93, - - 19, + 40 ) * + - 15 * - + 40 ) - - 78
----
51

skipif mysql # not compatible
query I rowsort label-3119
SELECT NULLIF ( - 27, - COALESCE ( 30, + 45 - 41 + - 43 * + COUNT ( * ) ) - + COALESCE ( + + 93, - - 19, + 40 ) * + - 15 * - + 40 ) - - 78
----
51

query I rowsort
SELECT 88 + 99
----
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3121
SELECT ALL 31 - 92 AS col0, CAST( NULL AS SIGNED ) + + 86 * - COUNT( * ) * - 84
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-3121
SELECT ALL 31 - 92 AS col0, CAST ( NULL AS INTEGER ) + + 86 * - COUNT ( * ) * - 84
----
-61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT COUNT( ALL 82 ) + - 85
----
-84

skipif mysql # not compatible
query I rowsort label-3122
SELECT COUNT ( ALL 82 ) + - 85
----
-84

query I rowsort
SELECT ALL 66 * - + 73 AS col1
----
-4818

query I rowsort
SELECT 14 + - 93 col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT 12 * - + 16 * + - 79 * + SUM( 47 ) AS col2
----
712896

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT 12 * - + 16 * + - 79 * + SUM ( 47 ) AS col2
----
712896

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT ALL 30 * - 67 * - COUNT( * )
----
2010

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL 30 * - 67 * - COUNT ( * )
----
2010

query I rowsort
SELECT 97 * - ( + 46 )
----
-4462

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT 97 DIV - 64 + + 74 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3128
SELECT 97 / - 64 + + 74 AS col1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3129
SELECT ALL NULLIF ( - 1, CAST( NULL AS SIGNED ) ) + - - 51 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL NULLIF ( - 1, CAST ( NULL AS INTEGER ) ) + - - 51 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT COUNT( * ) * + ( - ( 21 ) ) * + - 50
----
1050

skipif mysql # not compatible
query I rowsort label-3130
SELECT COUNT ( * ) * + ( - ( 21 ) ) * + - 50
----
1050

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT ALL ( + + 25 ) DIV + 79 + + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL ( + + 25 ) / + 79 + + 1 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT - 4 DIV + 66 * - 37 DIV - - 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3132
SELECT - 4 / + 66 * - 37 / - - 2 AS col2
----
0

query I rowsort
SELECT ALL - - 47 col2
----
47

query II rowsort
SELECT ALL 91 + 20 AS col1, NULLIF ( + 21, - 25 )
----
111
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3135
SELECT + 70 DIV COUNT( * ) + - 38
----
32

skipif mysql # not compatible
query I rowsort label-3135
SELECT + 70 / COUNT ( * ) + - 38
----
32

query I rowsort
SELECT - ( 41 ) + - 83
----
-124

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

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

query I rowsort
SELECT ALL - 9 * - + 54
----
486

query I rowsort
SELECT DISTINCT 25 - + 27 * - + 52 + - - COALESCE ( 65, - - 42 ) * + 84
----
6889

query I rowsort
SELECT DISTINCT + + 76 - + 56 * - 39
----
2260

query II rowsort
SELECT + 13 * - 85 * - 84 * - + 53 + + + 7 AS col0, - 66
----
-4919453
-66

query I rowsort
SELECT 99 + - COALESCE ( 87, + - 20 ) - + + 90 + + 38
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT DISTINCT + CASE MAX( DISTINCT + 5 ) WHEN 11 THEN NULL WHEN 14 * COUNT( * ) - + COUNT( - 9 ) + - 18 THEN - SUM( 42 ) WHEN 49 THEN 48 + - 41 ELSE + + 50 END * + - 25 * + COALESCE ( MIN( DISTINCT + 30 ), - NULLIF ( 99, - CAST( NULL AS SIGNED ) ) )
----
-37500

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT + CASE MAX ( DISTINCT + 5 ) WHEN 11 THEN NULL WHEN 14 * COUNT ( * ) - + COUNT ( - 9 ) + - 18 THEN - SUM ( 42 ) WHEN 49 THEN 48 + - 41 ELSE + + 50 END * + - 25 * + COALESCE ( MIN ( DISTINCT + 30 ), - NULLIF ( 99, - CAST ( NULL AS INTEGER ) ) )
----
-37500

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT 82 DIV 38
----
2

skipif mysql # not compatible
query I rowsort label-3144
SELECT 82 / 38
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3145
SELECT ALL CASE + 69 WHEN - + 25 * - ( - ( 91 ) ) * 11 / - 89 * - + 43 + + CAST( - 24 AS DECIMAL ) / - 37 * - + 53 THEN 56 * - 58 + + AVG ( - 56 ) + - CAST( + + 69 AS SIGNED ) / - 82 ELSE NULL END AS col0, - 50 * 69 * AVG ( 62 ) * - - NULLIF ( - COUNT( ALL - 35 ), + CASE - 53 WHEN 77 THEN 34 ELSE + COUNT( - 85 ) END + - 80 ) + - - 0 / + 59 + - 90 - - + CASE - 97 WHEN + AVG ( + 36 ) THEN NULL ELSE - 26 / CAST( NULL AS DECIMAL ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3145
SELECT ALL CASE + 69 WHEN - + 25 * - ( - ( 91 ) ) * 11 / - 89 * - + 43 + + CAST ( - 24 AS REAL ) / - 37 * - + 53 THEN 56 * - 58 + + AVG ( - 56 ) + - CAST ( + + 69 AS INTEGER ) / - 82 ELSE NULL END AS col0, - 50 * 69 * AVG ( 62 ) * - - NULLIF ( - COUNT ( ALL - 35 ), + CASE - 53 WHEN 77 THEN 34 ELSE + COUNT ( - 85 ) END + - 80 ) + - - 0 / + 59 + - 90 - - + CASE - 97 WHEN + AVG ( + 36 ) THEN NULL ELSE - 26 / CAST ( NULL AS REAL ) END
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3146
SELECT - 72 DIV + CAST( + 96 AS SIGNED ) * + 55 + - CASE 4 WHEN + 46 THEN NULL WHEN - CASE + 2 WHEN 94 THEN NULL ELSE COUNT( * ) END THEN NULL ELSE - - COALESCE ( - 78, + 85 + 65 ) END AS col0, + 65
----
78
65

skipif mysql # not compatible
query II rowsort label-3146
SELECT - 72 / + CAST ( + 96 AS INTEGER ) * + 55 + - CASE 4 WHEN + 46 THEN NULL WHEN - CASE + 2 WHEN 94 THEN NULL ELSE COUNT ( * ) END THEN NULL ELSE - - COALESCE ( - 78, + 85 + 65 ) END AS col0, + 65
----
78
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL + SUM( ALL - + 55 ) * + 2 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL + SUM ( ALL - + 55 ) * + 2 AS col1
----
-110

query I rowsort
SELECT DISTINCT - 10 * + 6 * - 49 AS col1
----
2940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3149
SELECT DISTINCT COALESCE ( - - CASE - NULLIF ( + 51, 63 ) WHEN + MAX( - + 59 ) + 33 * + 31 + - + 15 THEN NULL ELSE - 87 DIV 55 * - 28 END, 53, - + 68 * + COUNT( * ) + - 6 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT COALESCE ( - - CASE - NULLIF ( + 51, 63 ) WHEN + MAX ( - + 59 ) + 33 * + 31 + - + 15 THEN NULL ELSE - 87 / 55 * - 28 END, 53, - + 68 * + COUNT ( * ) + - 6 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - 53 - 7 + + - MAX( 80 ) * - - 59
----
-4780

skipif mysql # not compatible
query I rowsort label-3150
SELECT - 53 - 7 + + - MAX ( 80 ) * - - 59
----
-4780

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT - 12 * 9 * 94 * + COUNT( * ) AS col2
----
-10152

skipif mysql # not compatible
query I rowsort label-3151
SELECT - 12 * 9 * 94 * + COUNT ( * ) AS col2
----
-10152

query I rowsort
SELECT + 18 * - 99
----
-1782

query I rowsort
SELECT ALL - 65 + + + 30
----
-35

query I rowsort
SELECT - 30 - - - NULLIF ( 2, + - 12 ) + 20 + - 46 AS col2
----
-58

query I rowsort
SELECT - 82 * 21
----
-1722

query I rowsort
SELECT DISTINCT 3 * 9 + + 36 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT + SUM( DISTINCT + 62 ) - - 44
----
106

skipif mysql # not compatible
query I rowsort label-3157
SELECT + SUM ( DISTINCT + 62 ) - - 44
----
106

query I rowsort
SELECT ALL + 10 * + 85 + - 29 AS col1
----
821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT COALESCE ( COUNT( * ), COALESCE ( + ( 91 ), 55 - - CAST( - 94 AS SIGNED ), - COUNT( * ) + 17 ) + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-3159
SELECT COALESCE ( COUNT ( * ), COALESCE ( + ( 91 ), 55 - - CAST ( - 94 AS INTEGER ), - COUNT ( * ) + 17 ) + 85 )
----
1

query I rowsort
SELECT 39 * - 1 + + 75 * 10
----
711

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT CASE ( 31 ) WHEN ( - MAX( ALL + ( 55 ) ) ) THEN NULL WHEN + COALESCE ( + ( 88 ), COUNT( * ) ) THEN - 94 WHEN NULLIF ( + MIN( DISTINCT + CASE - 56 WHEN + 28 THEN + 98 ELSE NULL END ), 69 * 75 ) THEN ( 87 ) * 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT CASE ( 31 ) WHEN ( - MAX ( ALL + ( 55 ) ) ) THEN NULL WHEN + COALESCE ( + ( 88 ), COUNT ( * ) ) THEN - 94 WHEN NULLIF ( + MIN ( DISTINCT + CASE - 56 WHEN + 28 THEN + 98 ELSE NULL END ), 69 * 75 ) THEN ( 87 ) * 13 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT CASE + 59 WHEN + COUNT( * ) THEN NULL ELSE 67 END
----
67

skipif mysql # not compatible
query I rowsort label-3162
SELECT CASE + 59 WHEN + COUNT ( * ) THEN NULL ELSE 67 END
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT + CASE 93 WHEN 71 THEN + 16 + 5 WHEN COUNT( * ) + + MAX( ALL + 21 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT + CASE 93 WHEN 71 THEN + 16 + 5 WHEN COUNT ( * ) + + MAX ( ALL + 21 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL 15 * 15 + COUNT( * ) * - COALESCE ( 9, SUM( ALL + 89 ) )
----
216

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL 15 * 15 + COUNT ( * ) * - COALESCE ( 9, SUM ( ALL + 89 ) )
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT - 28 DIV 10 + + 33
----
31

skipif mysql # not compatible
query I rowsort label-3165
SELECT - 28 / 10 + + 33
----
31

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT SUM( 38 ) * - 90 + 81
----
-3339

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT SUM ( 38 ) * - 90 + 81
----
-3339

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3169
SELECT + 40 * 60 + SUM( - 71 ) DIV 18
----
2397

skipif mysql # not compatible
query I rowsort label-3169
SELECT + 40 * 60 + SUM ( - 71 ) / 18
----
2397

query I rowsort
SELECT + ( 27 ) * 50 AS col0
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT + SUM( ALL 2 ) * 98 AS col0
----
196

skipif mysql # not compatible
query I rowsort label-3171
SELECT + SUM ( ALL 2 ) * 98 AS col0
----
196

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3173
SELECT ALL 44 DIV - COALESCE ( + 7, 55 + - CASE + 26 WHEN 23 THEN NULL WHEN - 46 * + COUNT( * ) + COUNT( * ) * CASE 26 - 68 WHEN + 0 DIV 31 THEN - 17 ELSE NULL END THEN + COUNT( * ) + + CAST( COUNT( * ) + + 28 AS SIGNED ) END, + 50 + - 37 * 7 )
----
-6

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL 44 / - COALESCE ( + 7, 55 + - CASE + 26 WHEN 23 THEN NULL WHEN - 46 * + COUNT ( * ) + COUNT ( * ) * CASE 26 - 68 WHEN + 0 / 31 THEN - 17 ELSE NULL END THEN + COUNT ( * ) + + CAST ( COUNT ( * ) + + 28 AS INTEGER ) END, + 50 + - 37 * 7 )
----
-6

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

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

query I rowsort
SELECT - 14 + - 44 * 89
----
-3930

query I rowsort
SELECT ALL 38 * - 50 AS col0
----
-1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3177
SELECT + COUNT( * ) + COALESCE ( - CAST( NULL AS SIGNED ), 84 ) * + 42
----
3529

skipif mysql # not compatible
query I rowsort label-3177
SELECT + COUNT ( * ) + COALESCE ( - CAST ( NULL AS INTEGER ), 84 ) * + 42
----
3529

query I rowsort
SELECT DISTINCT 55 * + ( + 80 )
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT + ( COUNT( * ) ) * + 43 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3179
SELECT + ( COUNT ( * ) ) * + 43 AS col1
----
43

query I rowsort
SELECT ALL 2 * + 17
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3181
SELECT DISTINCT CASE 38 WHEN 57 * COUNT( * ) + + CAST( NULL AS SIGNED ) THEN 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT CASE 38 WHEN 57 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL COALESCE ( SUM( ALL - 62 ), 70 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL COALESCE ( SUM ( ALL - 62 ), 70 ) AS col1
----
-62

query I rowsort
SELECT + ( ( 84 ) ) + - 2 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3184
SELECT ALL - MAX( DISTINCT NULLIF ( - ( + CAST( 65 AS SIGNED ) ), + 91 ) ) + - COUNT( * ) * + 92 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - MAX ( DISTINCT NULLIF ( - ( + CAST ( 65 AS INTEGER ) ), + 91 ) ) + - COUNT ( * ) * + 92 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT + 54 + - COUNT( + 99 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3185
SELECT + 54 + - COUNT ( + 99 ) AS col0
----
53

query I rowsort
SELECT ALL + 33 + 93
----
126

query I rowsort
SELECT - 30 + 89 * 28
----
2462

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT - SUM( ALL 33 ) + ( - 48 + 69 )
----
-12

skipif mysql # not compatible
query I rowsort label-3190
SELECT - SUM ( ALL 33 ) + ( - 48 + 69 )
----
-12

query I rowsort
SELECT ALL + ( - 87 ) + + 49 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT DISTINCT - MIN( + CAST( NULL AS SIGNED ) ) + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - MIN ( + CAST ( NULL AS INTEGER ) ) + 13 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT ALL - 34 + - 58 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL - 34 + - 58 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3194
SELECT ALL + ( + 77 ) * + COALESCE ( - 93, - 10 + - 81, + CASE - 65 WHEN - 85 DIV 91 THEN ( - 74 ) ELSE CASE 46 WHEN - 94 + - 59 THEN NULLIF ( - SUM( 39 ), 21 ) DIV 54 END END + 66 )
----
-7161

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL + ( + 77 ) * + COALESCE ( - 93, - 10 + - 81, + CASE - 65 WHEN - 85 / 91 THEN ( - 74 ) ELSE CASE 46 WHEN - 94 + - 59 THEN NULLIF ( - SUM ( 39 ), 21 ) / 54 END END + 66 )
----
-7161

query I rowsort
SELECT ALL - 10 * 95 AS col2
----
-950

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT - 43 DIV 25 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3196
SELECT - 43 / 25 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT + 9 * - 40 + COUNT( * ) AS col2
----
-359

skipif mysql # not compatible
query I rowsort label-3197
SELECT + 9 * - 40 + COUNT ( * ) AS col2
----
-359

query I rowsort
SELECT - ( + 74 ) * + 74 AS col2
----
-5476

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT + 22 DIV - 92 + 19
----
19

skipif mysql # not compatible
query I rowsort label-3199
SELECT + 22 / - 92 + 19
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3200
SELECT ALL + 24 DIV 93 + 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL + 24 / 93 + 76 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3201
SELECT + COALESCE ( COUNT( * ), - 2, - 95 ) + NULLIF ( NULLIF ( - CAST( NULL AS SIGNED ), 95 * NULLIF ( 55, 70 ) ), + 9 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT + COALESCE ( COUNT ( * ), - 2, - 95 ) + NULLIF ( NULLIF ( - CAST ( NULL AS INTEGER ), 95 * NULLIF ( 55, 70 ) ), + 9 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT ALL 26 DIV 21 + - 82
----
-81

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL 26 / 21 + - 82
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT DISTINCT 63 DIV - 96 + - 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT 63 / - 96 + - 3 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT DISTINCT COUNT( * ) * ( - 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT COUNT ( * ) * ( - 30 ) AS col0
----
-30

query I rowsort
SELECT - 38 * 67 - 37 AS col1
----
-2583

query I rowsort
SELECT + 29 * - CASE 77 WHEN ( 11 ) * 23 THEN ( 28 ) WHEN + ( CASE CASE 2 WHEN 32 + 76 / - 9 THEN NULL WHEN 90 * 98 THEN 68 END WHEN 74 * + COALESCE ( 74, NULLIF ( - 56, COALESCE ( - 33, + 86 * + 75 ) ) * - 31 ) THEN - 34 WHEN + 93 * + 16 THEN NULL ELSE 94 END ) THEN - 23 WHEN ( - 51 ) THEN NULL END
----
NULL

query I rowsort
SELECT - 68 * - 21 AS col2
----
1428

query I rowsort
SELECT DISTINCT - 59 * + NULLIF ( 65, - 72 ) AS col1
----
-3835

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

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

query I rowsort
SELECT ALL ( + 91 ) * ( + 41 )
----
3731

query I rowsort
SELECT - - 62 - 64
----
-2

query I rowsort
SELECT DISTINCT + NULLIF ( ( 13 ), 36 - ( 1 ) )
----
13

query I rowsort
SELECT + 96 * - 38 AS col0
----
-3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT DISTINCT 8 / - MIN( - CASE WHEN 42 < + 42 THEN 79 * 6 + - 49 ELSE CASE ( CASE 6 WHEN + 75 * 46 THEN 12 * + 79 END ) WHEN - 11 THEN NULL WHEN + 62 THEN 22 ELSE 79 + + CAST( NULL AS SIGNED ) END - 60 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT 8 / - MIN ( - CASE WHEN 42 < + 42 THEN 79 * 6 + - 49 ELSE CASE ( CASE 6 WHEN + 75 * 46 THEN 12 * + 79 END ) WHEN - 11 THEN NULL WHEN + 62 THEN 22 ELSE 79 + + CAST ( NULL AS INTEGER ) END - 60 END )
----
NULL

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

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

query I rowsort
SELECT 82 + - - 4 - + 66 AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT ALL 55 DIV NULLIF ( 5, + 37 + ( 83 ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL 55 / NULLIF ( 5, + 37 + ( 83 ) ) AS col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3218
SELECT 88 DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3218
SELECT 88 / - 95 AS col2
----
0

query I rowsort
SELECT 24 + + 38 * 98
----
3748

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ( + COUNT( * ) ) - - CASE COALESCE ( - ( 43 ), - ( 13 ) ) WHEN - 62 * + 37 THEN NULL ELSE COUNT( * ) + - NULLIF ( - 79, 97 - 94 ) END AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3220
SELECT ( + COUNT ( * ) ) - - CASE COALESCE ( - ( 43 ), - ( 13 ) ) WHEN - 62 * + 37 THEN NULL ELSE COUNT ( * ) + - NULLIF ( - 79, 97 - 94 ) END AS col0
----
81

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

skipif mysql # not compatible
query I rowsort label-3221
SELECT ( + 13 ) * + ( + CAST ( NULL AS INTEGER ) * 9 ) AS col1
----
NULL

query I rowsort
SELECT ALL 7 + 65 + 79
----
151

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

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT ( + COUNT ( * ) ) + + COUNT ( ALL 74 ) / 69
----
1

query I rowsort
SELECT ALL ( + 5 ) * + 91 AS col2
----
455

query I rowsort
SELECT ( - + ( - 5 ) ) * 7
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL COALESCE ( - NULLIF ( 35, COUNT( * ) ), - 76, + 36 ) + + 6 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL COALESCE ( - NULLIF ( 35, COUNT ( * ) ), - 76, + 36 ) + + 6 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT DISTINCT + 20 + CAST( 44 AS SIGNED ) * 75
----
3320

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT + 20 + CAST ( 44 AS INTEGER ) * 75
----
3320

query I rowsort
SELECT ALL - 65 + 37 AS col1
----
-28

query I rowsort
SELECT 48 * + 35
----
1680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT ALL - + SUM( - - 28 ) - - 32
----
4

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL - + SUM ( - - 28 ) - - 32
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3232
SELECT + CAST( + + NULLIF ( - MIN( ALL + 60 ), - 20 * COUNT( * ) ) AS SIGNED ) - 62
----
-122

skipif mysql # not compatible
query I rowsort label-3232
SELECT + CAST ( + + NULLIF ( - MIN ( ALL + 60 ), - 20 * COUNT ( * ) ) AS INTEGER ) - 62
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT CAST( NULL AS SIGNED ) * + 24 / + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT CAST ( NULL AS INTEGER ) * + 24 / + 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3234
SELECT - COALESCE ( CAST( 89 AS SIGNED ), - NULLIF ( + 29, - 22 / MIN( ALL - 11 / 75 ) ) )
----
-89

skipif mysql # not compatible
query I rowsort label-3234
SELECT - COALESCE ( CAST ( 89 AS INTEGER ), - NULLIF ( + 29, - 22 / MIN ( ALL - 11 / 75 ) ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT 44 - + SUM( - 27 ) * 4
----
152

skipif mysql # not compatible
query I rowsort label-3235
SELECT 44 - + SUM ( - 27 ) * 4
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL - - 99 * - COALESCE ( + 47, + COUNT( * ) + 94 ) * 23 - 37
----
-107056

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - - 99 * - COALESCE ( + 47, + COUNT ( * ) + 94 ) * 23 - 37
----
-107056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3237
SELECT ALL COUNT( * ) - + 70 DIV - 21 AS col0
----
4

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

query I rowsort
SELECT 21 * + 19 * + ( COALESCE ( + 32, 63 + - 18 * + 72 ) )
----
12768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3239
SELECT DISTINCT - 66 * SUM( + 55 ) DIV 17
----
-213

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT - 66 * SUM ( + 55 ) / 17
----
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-3240
SELECT ALL + - 86 - - 94 DIV 45
----
-84

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + - 86 - - 94 / 45
----
-84

query I rowsort
SELECT 70 + + + 52 - - 76
----
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3242
SELECT 27 DIV - + COUNT( DISTINCT + 90 ) + 3 - + 33 DIV - 93
----
-24

skipif mysql # not compatible
query I rowsort label-3242
SELECT 27 / - + COUNT ( DISTINCT + 90 ) + 3 - + 33 / - 93
----
-24

query I rowsort
SELECT ALL - COALESCE ( ( + 27 ), 0 ) * - 59
----
1593

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT 1 * - + 27 - COUNT( * ) * + 30 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3244
SELECT 1 * - + 27 - COUNT ( * ) * + 30 AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3245
SELECT MAX( ALL - 52 ) - CAST( + 32 AS SIGNED ) * + 2 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-3245
SELECT MAX ( ALL - 52 ) - CAST ( + 32 AS INTEGER ) * + 2 AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT CASE 44 WHEN 99 * MIN( 86 ) THEN NULL WHEN + 29 THEN - 60 / 49 + CASE 85 + + SUM( ALL + ( - NULLIF ( - 58, + 72 ) ) + 51 ) WHEN + 82 * 74 + + 20 * 41 THEN + 73 * + 28 + 33 WHEN + 33 * 76 THEN NULL ELSE NULL END END * 13 + + AVG ( 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT CASE 44 WHEN 99 * MIN ( 86 ) THEN NULL WHEN + 29 THEN - 60 / 49 + CASE 85 + + SUM ( ALL + ( - NULLIF ( - 58, + 72 ) ) + 51 ) WHEN + 82 * 74 + + 20 * 41 THEN + 73 * + 28 + 33 WHEN + 33 * 76 THEN NULL ELSE NULL END END * 13 + + AVG ( 72 )
----
NULL

query I rowsort
SELECT + 40 * - 23 - 86
----
-1006

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

skipif mysql # not compatible
query I rowsort label-3248
SELECT + - MIN ( + - 4 )
----
4

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

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

query I rowsort
SELECT 70 * + 67 + - 51
----
4639

query I rowsort
SELECT ALL 67 * 49 AS col2
----
3283

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT DISTINCT + CASE + 15 WHEN - 77 + - 13 THEN 2 * 56 WHEN - 78 THEN NULL END + - CAST( + 27 + - 59 * - 25 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT + CASE + 15 WHEN - 77 + - 13 THEN 2 * 56 WHEN - 78 THEN NULL END + - CAST ( + 27 + - 59 * - 25 AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3254
SELECT 26, ( - 58 ) * + CAST( NULL AS DECIMAL ) AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-3254
SELECT 26, ( - 58 ) * + CAST ( NULL AS REAL ) AS col2
----
26
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3255
SELECT 33 DIV 30 * - 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-3255
SELECT 33 / 30 * - 74 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT ALL - COUNT( * ) + - 1 + + 61 + + 62 * COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL - COUNT ( * ) + - 1 + + 61 + + 62 * COUNT ( * )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL + 78 + - 45 * - 34 * COUNT( - NULLIF ( + 21, + 57 * + ( 1 ) ) )
----
1608

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL + 78 + - 45 * - 34 * COUNT ( - NULLIF ( + 21, + 57 * + ( 1 ) ) )
----
1608

query I rowsort
SELECT DISTINCT 66 * ( - 50 )
----
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT DISTINCT - MIN( - 6 ) + - 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT - MIN ( - 6 ) + - 3 AS col1
----
3

query I rowsort
SELECT 17 * + 21 col1
----
357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3261
SELECT 70 * ( + COALESCE ( NULLIF ( COUNT( DISTINCT 39 ), + 49 ), CAST( NULL AS SIGNED ) + - CASE 34 WHEN 17 + 43 THEN NULL ELSE - COALESCE ( - 62, + 97, 23 * 12 ) * + 39 END, - 88 * - 72 ) ) + 84 * 93 col0
----
7882

skipif mysql # not compatible
query I rowsort label-3261
SELECT 70 * ( + COALESCE ( NULLIF ( COUNT ( DISTINCT 39 ), + 49 ), CAST ( NULL AS INTEGER ) + - CASE 34 WHEN 17 + 43 THEN NULL ELSE - COALESCE ( - 62, + 97, 23 * 12 ) * + 39 END, - 88 * - 72 ) ) + 84 * 93 col0
----
7882

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT DISTINCT 36 / + 89 * - - CAST( NULL AS SIGNED ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT 36 / + 89 * - - CAST ( NULL AS INTEGER ) * - 63
----
NULL

query I rowsort
SELECT ALL 95 + + - 44 AS col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT ALL 53 DIV - 91 * 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL 53 / - 91 * 97 AS col0
----
0

query I rowsort
SELECT 13 + + 2 + - 3 * 36
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3267
SELECT 48 + - - CAST( - 49 AS SIGNED ) + COUNT( * ) * - ( + 68 + 79 )
----
-148

skipif mysql # not compatible
query I rowsort label-3267
SELECT 48 + - - CAST ( - 49 AS INTEGER ) + COUNT ( * ) * - ( + 68 + 79 )
----
-148

query I rowsort
SELECT ( + 54 ) + 3 + - 54
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3269
SELECT 32 * COALESCE ( + 12, - MAX( ( - 39 ) ) DIV 26 )
----
384

skipif mysql # not compatible
query I rowsort label-3269
SELECT 32 * COALESCE ( + 12, - MAX ( ( - 39 ) ) / 26 )
----
384

query I rowsort
SELECT ALL 35 * + 99 * - 30 AS col2
----
-103950

query I rowsort
SELECT 38 + 25
----
63

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

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

query I rowsort
SELECT DISTINCT 87 * - - 22 * 62 * + ( + 78 )
----
9256104

query II rowsort
SELECT ALL - 16 AS col0, - ( - 38 ) * - 67
----
-16
-2546

query I rowsort
SELECT 59 + - + 72
----
-13

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

query I rowsort
SELECT 36 * - + 24 AS col0
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT DISTINCT - NULLIF ( 5, 20 * + 16 ) * - COUNT( * ) col0
----
5

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT - NULLIF ( 5, 20 * + 16 ) * - COUNT ( * ) col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3279
SELECT - - COUNT( * ), COUNT( * ) * - - 36 + 89 * + 12 AS col1
----
1
1104

skipif mysql # not compatible
query II rowsort label-3279
SELECT - - COUNT ( * ), COUNT ( * ) * - - 36 + 89 * + 12 AS col1
----
1
1104

query I rowsort
SELECT + ( ( - 93 ) ) + + 85 AS col0
----
-8

query I rowsort
SELECT 81 * + + 74 * - 47 + + 39
----
-281679

query I rowsort
SELECT ALL - + 54 * 45 * + + 39 * - 99
----
9382230

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3283
SELECT + - 54 AS col0, + 34 * CAST( NULL AS SIGNED )
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-3283
SELECT + - 54 AS col0, + 34 * CAST ( NULL AS INTEGER )
----
-54
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3284
SELECT ALL + 97 AS col1, + 62 DIV - 74 AS col2
----
97
0

skipif mysql # not compatible
query II rowsort label-3284
SELECT ALL + 97 AS col1, + 62 / - 74 AS col2
----
97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT DISTINCT - 82 DIV - 74
----
1

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT - 82 / - 74
----
1

query I rowsort
SELECT - 4 * + 76 * + 91 AS col1
----
-27664

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT + - 43 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT + - 43 / - 77
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3288
SELECT + 51 * 22 DIV MIN( 50 ) - + 99
----
-77

skipif mysql # not compatible
query I rowsort label-3288
SELECT + 51 * 22 / MIN ( 50 ) - + 99
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT + COALESCE ( + 92, 37 * 38 + 90, - 35 * + MIN( + 18 ) )
----
92

skipif mysql # not compatible
query I rowsort label-3289
SELECT + COALESCE ( + 92, 37 * 38 + 90, - 35 * + MIN ( + 18 ) )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3290
SELECT - 67 + - 30 AS col2, - NULLIF ( + SUM( 18 ), + ( ( 60 ) ) * - 97 ) * 24 - - 76 col1
----
-97
-356

skipif mysql # not compatible
query II rowsort label-3290
SELECT - 67 + - 30 AS col2, - NULLIF ( + SUM ( 18 ), + ( ( 60 ) ) * - 97 ) * 24 - - 76 col1
----
-97
-356

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT DISTINCT + 76 * - + 41 + - - COUNT( * ) AS col2
----
-3115

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT + 76 * - + 41 + - - COUNT ( * ) AS col2
----
-3115

query I rowsort
SELECT ALL - 93 * - - 9 * + 21 + - 73 - + 15 AS col2
----
-17665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT + CASE + + 38 WHEN CAST( + NULLIF ( + 6, 67 ) AS SIGNED ) * 77 THEN 93 WHEN - 23 THEN CAST( + 10 AS SIGNED ) WHEN 83 * 9 THEN 70 + 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT + CASE + + 38 WHEN CAST ( + NULLIF ( + 6, 67 ) AS INTEGER ) * 77 THEN 93 WHEN - 23 THEN CAST ( + 10 AS INTEGER ) WHEN 83 * 9 THEN 70 + 66 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT - 7 * 40 * - + 28 * - SUM( + 60 ) + - COUNT( * ) * + 70 AS col2
----
-470470

skipif mysql # not compatible
query I rowsort label-3294
SELECT - 7 * 40 * - + 28 * - SUM ( + 60 ) + - COUNT ( * ) * + 70 AS col2
----
-470470

query I rowsort
SELECT - 2 * + 10
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3296
SELECT DISTINCT 82 * - - CAST( NULL AS SIGNED ) + 48 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT 82 * - - CAST ( NULL AS INTEGER ) + 48 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT DISTINCT 51 * - - 68 * - 17 * + 37 * 37 + SUM( DISTINCT CAST( 33 AS SIGNED ) ) AS col1
----
-80710731

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT 51 * - - 68 * - 17 * + 37 * 37 + SUM ( DISTINCT CAST ( 33 AS INTEGER ) ) AS col1
----
-80710731

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT ALL + CASE + - 1 WHEN + - COUNT( * ) * + 69 + - 84 THEN NULL WHEN 50 - 51 * - 9 THEN + COUNT( * ) / - 89 WHEN 67 THEN 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL + CASE + - 1 WHEN + - COUNT ( * ) * + 69 + - 84 THEN NULL WHEN 50 - 51 * - 9 THEN + COUNT ( * ) / - 89 WHEN 67 THEN 41 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3299
SELECT 83 * MIN( - + 84 ) - + CAST( 18 AS SIGNED ) + 73 AS col1
----
-6917

skipif mysql # not compatible
query I rowsort label-3299
SELECT 83 * MIN ( - + 84 ) - + CAST ( 18 AS INTEGER ) + 73 AS col1
----
-6917

query I rowsort
SELECT ALL - NULLIF ( + 99, + ( 83 ) ) + 25 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT DISTINCT + MAX( DISTINCT + 27 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT + MAX ( DISTINCT + 27 ) col0
----
27

query I rowsort
SELECT DISTINCT 12 * - 93 AS col0
----
-1116

query I rowsort
SELECT DISTINCT COALESCE ( 13, - 17 )
----
13

query I rowsort
SELECT - 30 + - - 61 * - 20 AS col2
----
-1250

query I rowsort
SELECT - 36 * - 47 * 52
----
87984

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT - 53 + CASE ( + 68 ) WHEN MAX( - 65 ) + + 98 THEN COALESCE ( - 44, 27 * + 98 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT - 53 + CASE ( + 68 ) WHEN MAX ( - 65 ) + + 98 THEN COALESCE ( - 44, 27 * + 98 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL - NULLIF ( + 74, - ( MIN( - ( 0 ) ) ) * 65 + + 91 ) - - 77 col1
----
3

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - NULLIF ( + 74, - ( MIN ( - ( 0 ) ) ) * 65 + + 91 ) - - 77 col1
----
3

query II rowsort
SELECT ALL - 84 - 52, 64 AS col1
----
-136
64

query I rowsort
SELECT - 0 * 95
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT ALL - 3 - + COUNT( * ) AS col0, 39 + + - 98
----
-4
-59

skipif mysql # not compatible
query II rowsort label-3311
SELECT ALL - 3 - + COUNT ( * ) AS col0, 39 + + - 98
----
-4
-59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3313
SELECT ALL - 40 - - 23 + COUNT( * ) * + - CAST( 60 AS SIGNED ) DIV COUNT( DISTINCT + 98 * 49 + + CAST( - NULLIF ( - 29, 40 ) + 76 AS SIGNED ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL - 40 - - 23 + COUNT ( * ) * + - CAST ( 60 AS INTEGER ) / COUNT ( DISTINCT + 98 * 49 + + CAST ( - NULLIF ( - 29, 40 ) + 76 AS INTEGER ) ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT - SUM( - 32 ) * SUM( - 74 ) AS col1
----
-2368

skipif mysql # not compatible
query I rowsort label-3314
SELECT - SUM ( - 32 ) * SUM ( - 74 ) AS col1
----
-2368

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL SUM( 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL SUM ( 80 ) AS col0
----
80

query I rowsort
SELECT - - 91 + - 75
----
16

query II rowsort
SELECT - + 16 * - 14, + 19 col2
----
224
19

query I rowsort
SELECT DISTINCT ( ( 4 ) ) AS col0
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT - 48 - - + 77 + - 29 * + 68 * COUNT( * )
----
-1943

skipif mysql # not compatible
query I rowsort label-3320
SELECT - 48 - - + 77 + - 29 * + 68 * COUNT ( * )
----
-1943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3321
SELECT ALL MIN( - - 22 ) + - 90 + + - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL MIN ( - - 22 ) + - 90 + + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 61 - - - ( - + 89 ) + 63
----
213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3323
SELECT ALL + COUNT( * ) DIV + 15 + - - NULLIF ( - 24, + MIN( ALL 94 ) + 86 ) + 88 * COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL + COUNT ( * ) / + 15 + - - NULLIF ( - 24, + MIN ( ALL 94 ) + 86 ) + 88 * COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT - COALESCE ( - 75, - 42 ) * COALESCE ( COUNT( * ), + 1 + 68 ) * 92 + 37 AS col2
----
6937

skipif mysql # not compatible
query I rowsort label-3324
SELECT - COALESCE ( - 75, - 42 ) * COALESCE ( COUNT ( * ), + 1 + 68 ) * 92 + 37 AS col2
----
6937

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL + 64 * - 86 + - 55 / + CASE + 30 WHEN + 2 + + COUNT( * ) * 35 THEN + MAX( + 21 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL + 64 * - 86 + - 55 / + CASE + 30 WHEN + 2 + + COUNT ( * ) * 35 THEN + MAX ( + 21 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3326
SELECT DISTINCT + 31 DIV - + 10 + + 45 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT + 31 / - + 10 + + 45 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3327
SELECT ALL + COUNT( * ) / - ( - CAST( NULL AS DECIMAL ) ) + + 71 + + 97 / 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + COUNT ( * ) / - ( - CAST ( NULL AS REAL ) ) + + 71 + + 97 / 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3328
SELECT ALL + 88 DIV + 41 + - 12 + + 65
----
55

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + 88 / + 41 + - 12 + + 65
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3329
SELECT + 64 * - 55 / + 51 / NULLIF ( + 39, 82 + - 43 ) / + CAST( - 13 AS SIGNED ) + ( 89 ) * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT + 64 * - 55 / + 51 / NULLIF ( + 39, 82 + - 43 ) / + CAST ( - 13 AS INTEGER ) + ( 89 ) * - 11
----
NULL

query I rowsort
SELECT + 26 - + 84
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL - 49 * + COUNT( - 15 ) + + 18 * + 17 + MIN( 26 ) AS col0
----
283

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL - 49 * + COUNT ( - 15 ) + + 18 * + 17 + MIN ( 26 ) AS col0
----
283

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT - 3 * - COUNT( * ) * + COALESCE ( 87, + + 89 ) + + 25 AS col2
----
286

skipif mysql # not compatible
query I rowsort label-3332
SELECT - 3 * - COUNT ( * ) * + COALESCE ( 87, + + 89 ) + + 25 AS col2
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - 28 * 61 + - COUNT( * )
----
-1709

skipif mysql # not compatible
query I rowsort label-3333
SELECT - 28 * 61 + - COUNT ( * )
----
-1709

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ( CASE 59 WHEN - COUNT( * ) THEN - CASE - 56 WHEN + 88 THEN NULL WHEN ( ( - ( - 33 ) ) ) THEN COUNT( + 96 ) * 43 ELSE 33 * ( ( 77 ) * 13 ) END WHEN 34 THEN + 54 * + 54 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT ( CASE 59 WHEN - COUNT ( * ) THEN - CASE - 56 WHEN + 88 THEN NULL WHEN ( ( - ( - 33 ) ) ) THEN COUNT ( + 96 ) * 43 ELSE 33 * ( ( 77 ) * 13 ) END WHEN 34 THEN + 54 * + 54 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3335
SELECT + 90 + + CAST( NULL AS SIGNED ) - 62 * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3335
SELECT + 90 + + CAST ( NULL AS INTEGER ) - 62 * + 14
----
NULL

query I rowsort
SELECT + 66 + 32
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT + 48 + - MAX( 27 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3337
SELECT + 48 + - MAX ( 27 ) AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3338
SELECT + 77 AS col0, - 64 * COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED )
----
77
-63

skipif mysql # not compatible
query II rowsort label-3338
SELECT + 77 AS col0, - 64 * COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER )
----
77
-63

query I rowsort
SELECT ALL - 16 * + 8
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT CASE - 92 WHEN - 4 * + COUNT( * ) - + - 48 + + 72 THEN 53 WHEN - 76 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT CASE - 92 WHEN - 4 * + COUNT ( * ) - + - 48 + + 72 THEN 53 WHEN - 76 THEN NULL ELSE NULL END col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3341
SELECT NULLIF ( COUNT ( * ), + + 44 )
----
1

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

skipif mysql # not compatible
query I rowsort label-3342
SELECT + COUNT ( * ) / + 84
----
0

query I rowsort
SELECT - NULLIF ( - - 60, - + 92 ) + 49
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT - + COALESCE ( - 99, + + MIN( ALL + 55 ) ) * - - 46 * 38 + - ( - 56 )
----
173108

skipif mysql # not compatible
query I rowsort label-3344
SELECT - + COALESCE ( - 99, + + MIN ( ALL + 55 ) ) * - - 46 * 38 + - ( - 56 )
----
173108

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3346
SELECT - COALESCE ( 37, + + 56 DIV COUNT( * ) + + 68 - + 70 * 56 + 34 ) * - MAX( 1 )
----
37

skipif mysql # not compatible
query I rowsort label-3346
SELECT - COALESCE ( 37, + + 56 / COUNT ( * ) + + 68 - + 70 * 56 + 34 ) * - MAX ( 1 )
----
37

query I rowsort
SELECT - 93 + 79 * 73 AS col2
----
5674

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT - - SUM( 68 ) + COUNT( * ) * - ( + 38 ) * 66 col0
----
-2440

skipif mysql # not compatible
query I rowsort label-3348
SELECT - - SUM ( 68 ) + COUNT ( * ) * - ( + 38 ) * 66 col0
----
-2440

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT ALL - 84 + COUNT( * ) + + - NULLIF ( + - 88, - 56 - 0 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL - 84 + COUNT ( * ) + + - NULLIF ( + - 88, - 56 - 0 ) AS col0
----
5

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

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

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

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL - + 83 + + COUNT ( * ) AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3352
SELECT ALL + - 20 * - CAST( - 29 AS SIGNED ) AS col0
----
-580

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL + - 20 * - CAST ( - 29 AS INTEGER ) AS col0
----
-580

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL - + 8 + ( - + COUNT( * ) ) + - + 56 * + 70
----
-3929

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - + 8 + ( - + COUNT ( * ) ) + - + 56 * + 70
----
-3929

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT - COALESCE ( - - 67, - 96 * + 20 + NULLIF ( - 51, COUNT( * ) + ( 47 ) ), NULLIF ( - 96, 38 + 20 ) * - 1 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3356
SELECT - COALESCE ( - - 67, - 96 * + 20 + NULLIF ( - 51, COUNT ( * ) + ( 47 ) ), NULLIF ( - 96, 38 + 20 ) * - 1 ) AS col1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT - 26 DIV - 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3357
SELECT - 26 / - 36 AS col2
----
0

query I rowsort
SELECT 17 * + 95
----
1615

onlyif mysql # DIV for integer division: 
query I rowsort label-3359
SELECT DISTINCT 83 DIV - 83 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT 83 / - 83 col1
----
-1

query I rowsort
SELECT NULLIF ( - 46, 41 / - 74 ) AS col0
----
-46

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3363
SELECT ALL CAST( NULL AS DECIMAL ) * + 77 / + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL CAST ( NULL AS REAL ) * + 77 / + - 54
----
NULL

query I rowsort
SELECT 17 * + 89
----
1513

query II rowsort
SELECT DISTINCT - 55 AS col1, + 15 * + 90
----
-55
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT DISTINCT NULLIF ( + - 27, - COUNT( * ) ) - - 72 + - 72 * 16 * - CASE + COUNT( * ) WHEN 84 * + 45 THEN + 85 + 49 WHEN 10 THEN - COUNT( * ) * 84 WHEN + COUNT( * ) + - CASE 40 WHEN 83 THEN - 98 * 63 WHEN COUNT( * ) THEN 3 ELSE NULL END THEN NULL ELSE NULL END + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT NULLIF ( + - 27, - COUNT ( * ) ) - - 72 + - 72 * 16 * - CASE + COUNT ( * ) WHEN 84 * + 45 THEN + 85 + 49 WHEN 10 THEN - COUNT ( * ) * 84 WHEN + COUNT ( * ) + - CASE 40 WHEN 83 THEN - 98 * 63 WHEN COUNT ( * ) THEN 3 ELSE NULL END THEN NULL ELSE NULL END + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 37 * + - 77 AS col2
----
-2849

query I rowsort
SELECT ALL NULLIF ( + 72, 52 * 19 + - 82 - - + NULLIF ( - 29, 97 ) * 91 ) * + 62
----
4464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3369
SELECT COALESCE ( - CAST( - 95 AS SIGNED ), + 20, 41 ) * + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-3369
SELECT COALESCE ( - CAST ( - 95 AS INTEGER ), + 20, 41 ) * + COUNT ( * )
----
95

query II rowsort
SELECT 42 AS col2, + 29 col0
----
42
29

query II rowsort
SELECT + 73 AS col0, 91 + - + 31 + - + 58 AS col1
----
73
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT + 61 * + 7 + + + 56 + - 10 - + 99 * + MIN( - 70 )
----
7403

skipif mysql # not compatible
query I rowsort label-3372
SELECT + 61 * + 7 + + + 56 + - 10 - + 99 * + MIN ( - 70 )
----
7403

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3373
SELECT ALL - 3, CAST( NULL AS DECIMAL ) AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3373
SELECT ALL - 3, CAST ( NULL AS REAL ) AS col1
----
-3
NULL

query I rowsort
SELECT + 60 * - ( + 95 ) - - 57 AS col2
----
-5643

query II rowsort
SELECT ALL - 87 col2, ( - - 55 )
----
-87
55

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

query I rowsort
SELECT DISTINCT + 39 * - 12 * - 19
----
8892

onlyif mysql # aggregate syntax: 
query II rowsort label-3378
SELECT ALL - 32 col1, - COUNT( * ) AS col0
----
-32
-1

skipif mysql # not compatible
query II rowsort label-3378
SELECT ALL - 32 col1, - COUNT ( * ) AS col0
----
-32
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3379
SELECT DISTINCT 35 DIV + + 99
----
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT 35 / + + 99
----
0

query I rowsort
SELECT 44 * - 11 AS col1
----
-484

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT - 81 col1, - 33 * - COUNT( * )
----
-81
33

skipif mysql # not compatible
query II rowsort label-3381
SELECT - 81 col1, - 33 * - COUNT ( * )
----
-81
33

query I rowsort
SELECT DISTINCT + 47 * - NULLIF ( 47, + 0 * + 90 * + 79 ) AS col2
----
-2209

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT + COALESCE ( 49, - 64 DIV + + 52, + + 45, + 83 ) * + 47
----
2303

skipif mysql # not compatible
query I rowsort label-3384
SELECT + COALESCE ( 49, - 64 / + + 52, + + 45, + 83 ) * + 47
----
2303

query I rowsort
SELECT DISTINCT + 77 * 19 AS col1
----
1463

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

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

query I rowsort
SELECT ALL - - 47 + - + 60 AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3388
SELECT ALL - 62 col0, 49 DIV + MAX( ALL + 43 ) + - COUNT( + - 82 )
----
-62
0

skipif mysql # not compatible
query II rowsort label-3388
SELECT ALL - 62 col0, 49 / + MAX ( ALL + 43 ) + - COUNT ( + - 82 )
----
-62
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL 27 + - 26 + + - COUNT( 13 ) + + MIN( - 59 ) + 34 * - 55 * - ( COUNT( * ) + 9 ) AS col0
----
18641

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL 27 + - 26 + + - COUNT ( 13 ) + + MIN ( - 59 ) + 34 * - 55 * - ( COUNT ( * ) + 9 ) AS col0
----
18641

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT DISTINCT - 95 + - - MAX( 16 ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT - 95 + - - MAX ( 16 ) col1
----
-79

query II rowsort
SELECT 9 AS col2, + 70 * - + 61 AS col0
----
9
-4270

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT - COUNT( * ) + + 21 * + 2 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3392
SELECT - COUNT ( * ) + + 21 * + 2 AS col0
----
41

query I rowsort
SELECT ALL - 62 + 4 AS col0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3394
SELECT - COUNT( * ) + + - 5 - 78 DIV COALESCE ( + 92, - COUNT( * ) ) * + 88 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3394
SELECT - COUNT ( * ) + + - 5 - 78 / COALESCE ( + 92, - COUNT ( * ) ) * + 88 AS col2
----
-6

query I rowsort
SELECT + 93 * + + 30 * - 44
----
-122760

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT + 32 * + 72 * 96 * + - 34 AS col0, COUNT( * )
----
-7520256
1

skipif mysql # not compatible
query II rowsort label-3396
SELECT + 32 * + 72 * 96 * + - 34 AS col0, COUNT ( * )
----
-7520256
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL - 12 + - COUNT( * ) + + - CASE + - 95 WHEN 8 + - 56 * 63 THEN 13 ELSE NULL END * 34 / 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - 12 + - COUNT ( * ) + + - CASE + - 95 WHEN 8 + - 56 * 63 THEN 13 ELSE NULL END * 34 / 64
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3398
SELECT 62 - - CAST ( COUNT ( * ) AS INTEGER )
----
63

query I rowsort
SELECT 17 + 96 * - 7
----
-655

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL + 45 * - COUNT( * ) - - 13 * - + 64
----
-877

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + 45 * - COUNT ( * ) - - 13 * - + 64
----
-877

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT - 1 * + - 76 - + 53 * MAX( - - 48 ) * 91 AS col1
----
-231428

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - 1 * + - 76 - + 53 * MAX ( - - 48 ) * 91 AS col1
----
-231428

query I rowsort
SELECT 13 * - + 29
----
-377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT 25 * CAST( NULL AS SIGNED ) + + ( 23 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT 25 * CAST ( NULL AS INTEGER ) + + ( 23 ) col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT 32 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-3405
SELECT 32 / - 62
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3406
SELECT 51 + - 56 + + 95 DIV + 45 + - ( + 95 ) * - SUM( ALL + 22 ) AS col1
----
2087

skipif mysql # not compatible
query I rowsort label-3406
SELECT 51 + - 56 + + 95 / + 45 + - ( + 95 ) * - SUM ( ALL + 22 ) AS col1
----
2087

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT ALL 65 * - MAX( DISTINCT - - 28 )
----
-1820

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL 65 * - MAX ( DISTINCT - - 28 )
----
-1820

query II rowsort
SELECT DISTINCT + 71 * + + 70 AS col2, 84
----
4970
84

query I rowsort
SELECT 81 * + - 22 + + 6
----
-1776

query II rowsort
SELECT ALL 29 * + 26 AS col0, 40 + 70 * 59 * - 80 * 69
----
754
-22797560

query I rowsort
SELECT 59 * - + 94 AS col2
----
-5546

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT COUNT( * ) + 43 + - 96
----
-52

skipif mysql # not compatible
query I rowsort label-3412
SELECT COUNT ( * ) + 43 + - 96
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL - COUNT( * ) + - 5 AS col2
----
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT 36 + - COUNT( ALL + 9 ) - + - 55 + - 76 * - 20 - 72 AS col1
----
1538

skipif mysql # not compatible
query I rowsort label-3414
SELECT 36 + - COUNT ( ALL + 9 ) - + - 55 + - 76 * - 20 - 72 AS col1
----
1538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3415
SELECT DISTINCT + COALESCE ( ( - - 98 ), - - CASE + NULLIF ( - + 19, + 51 ) WHEN - 39 * - COUNT( * ) THEN - 56 * - 55 + + CAST( NULL AS SIGNED ) WHEN 97 THEN - 53 END + + 47 ) + - ( 53 )
----
45

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT + COALESCE ( ( - - 98 ), - - CASE + NULLIF ( - + 19, + 51 ) WHEN - 39 * - COUNT ( * ) THEN - 56 * - 55 + + CAST ( NULL AS INTEGER ) WHEN 97 THEN - 53 END + + 47 ) + - ( 53 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL + CASE - + AVG ( + 88 ) WHEN - + 52 * 28 + 36 + + + CASE 61 WHEN + 37 THEN 45 * MIN( ALL + 49 ) END + + 99 * - 95 THEN - 22 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL + CASE - + AVG ( + 88 ) WHEN - + 52 * 28 + 36 + + + CASE 61 WHEN + 37 THEN 45 * MIN ( ALL + 49 ) END + + 99 * - 95 THEN - 22 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + ( 68 ) + - - ( 54 ) * - 22
----
-1120

query I rowsort
SELECT DISTINCT ( + 86 ) + - - 7
----
93

query II rowsort
SELECT + 28 + + + 75 AS col0, 12 + - + 14 * 22 - 35
----
103
-331

query I rowsort
SELECT ALL 97 + 32 + + - 61
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3421
SELECT DISTINCT MIN( ALL + ( + 33 ) ) col2, 48 AS col0
----
33
48

skipif mysql # not compatible
query II rowsort label-3421
SELECT DISTINCT MIN ( ALL + ( + 33 ) ) col2, 48 AS col0
----
33
48

query I rowsort
SELECT + - 71 + - ( 77 ) col0
----
-148

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT DISTINCT - 65 DIV 56 * 57
----
-57

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT - 65 / 56 * 57
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3424
SELECT + CASE - 29 WHEN + 88 * + NULLIF ( + - 62, 83 ) - CAST( NULL AS SIGNED ) * + 5 THEN + 32 + COUNT( * ) END * + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT + CASE - 29 WHEN + 88 * + NULLIF ( + - 62, 83 ) - CAST ( NULL AS INTEGER ) * + 5 THEN + 32 + COUNT ( * ) END * + 18 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3425
SELECT - - CAST( NULL AS SIGNED ) + + 79 AS col2, - 77 * - 75
----
NULL
5775

skipif mysql # not compatible
query II rowsort label-3425
SELECT - - CAST ( NULL AS INTEGER ) + + 79 AS col2, - 77 * - 75
----
NULL
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT + 17 * MAX( 71 ) AS col2
----
1207

skipif mysql # not compatible
query I rowsort label-3426
SELECT + 17 * MAX ( 71 ) AS col2
----
1207

query I rowsort
SELECT + 30 + - 89 AS col0
----
-59

query I rowsort
SELECT ALL - 72 * + - 16 * - 39 AS col1
----
-44928

onlyif mysql # aggregate syntax: 
query II rowsort label-3429
SELECT + 44 + - 72 AS col2, 93 * 86 * - - COUNT( * ) AS col0
----
-28
7998

skipif mysql # not compatible
query II rowsort label-3429
SELECT + 44 + - 72 AS col2, 93 * 86 * - - COUNT ( * ) AS col0
----
-28
7998

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3430
SELECT ALL - + COUNT( * ) DIV - 49 - - 69 + - + ( - + 60 ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL - + COUNT ( * ) / - 49 - - 69 + - + ( - + 60 ) AS col2
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-3431
SELECT ALL - MAX( ALL - 57 ), 95 AS col1
----
57
95

skipif mysql # not compatible
query II rowsort label-3431
SELECT ALL - MAX ( ALL - 57 ), 95 AS col1
----
57
95

query I rowsort
SELECT - CASE 72 WHEN + 31 THEN AVG ( ALL - 25 ) * + - 78 * 18 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT - 61 + + 13 + - COUNT( * ) DIV + 27 * + 78 * + 20
----
-48

skipif mysql # not compatible
query I rowsort label-3433
SELECT - 61 + + 13 + - COUNT ( * ) / + 27 * + 78 * + 20
----
-48

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

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL SUM ( ALL 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT - NULLIF ( 29, + - NULLIF ( COUNT( * ), + 71 ) + - 97 )
----
-29

skipif mysql # not compatible
query I rowsort label-3435
SELECT - NULLIF ( 29, + - NULLIF ( COUNT ( * ), + 71 ) + - 97 )
----
-29

query I rowsort
SELECT + 48 * 84
----
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3437
SELECT 91 AS col2, 67 + ( + + NULLIF ( - + CAST( + 97 AS SIGNED ), + + COUNT( * ) * + + COUNT( * ) + 43 ) ) AS col0
----
91
-30

skipif mysql # not compatible
query II rowsort label-3437
SELECT 91 AS col2, 67 + ( + + NULLIF ( - + CAST ( + 97 AS INTEGER ), + + COUNT ( * ) * + + COUNT ( * ) + 43 ) ) AS col0
----
91
-30

query I rowsort
SELECT - 89 * + + 34 AS col2
----
-3026

query I rowsort
SELECT ALL - 57 * - + 0 * + 38 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3440
SELECT DISTINCT + COALESCE ( - CAST( NULL AS SIGNED ), - 68 ) AS col1, - 23 AS col1
----
-68
-23

skipif mysql # not compatible
query II rowsort label-3440
SELECT DISTINCT + COALESCE ( - CAST ( NULL AS INTEGER ), - 68 ) AS col1, - 23 AS col1
----
-68
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT DISTINCT + SUM( + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT + SUM ( + 35 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3442
SELECT + 71 AS col0, CAST( + + 52 AS SIGNED ) + MIN( DISTINCT + 69 ) + 3 + - 43 DIV - + 99 * + 30 - - ( - 21 - 29 ) * 42
----
71
-1976

skipif mysql # not compatible
query II rowsort label-3442
SELECT + 71 AS col0, CAST ( + + 52 AS INTEGER ) + MIN ( DISTINCT + 69 ) + 3 + - 43 / - + 99 * + 30 - - ( - 21 - 29 ) * 42
----
71
-1976

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT - 31 * 19 + NULLIF ( + 87, - + COUNT( * ) * + - COUNT( * ) * + COUNT( * ) + - 83 ) * 57
----
4370

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT - 31 * 19 + NULLIF ( + 87, - + COUNT ( * ) * + - COUNT ( * ) * + COUNT ( * ) + - 83 ) * 57
----
4370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT ALL - ( + CASE COALESCE ( NULLIF ( - 0, - 71 * - + 4 + 93 ), 49 ) WHEN - 17 - 28 THEN 17 * CAST( NULL AS SIGNED ) END ) * + ( + 81 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL - ( + CASE COALESCE ( NULLIF ( - 0, - 71 * - + 4 + 93 ), 49 ) WHEN - 17 - 28 THEN 17 * CAST ( NULL AS INTEGER ) END ) * + ( + 81 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3446
SELECT + 28 col1, 92 * 12 DIV - - 31 + + 4 AS col1
----
28
39

skipif mysql # not compatible
query II rowsort label-3446
SELECT + 28 col1, 92 * 12 / - - 31 + + 4 AS col1
----
28
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3447
SELECT DISTINCT 83 * - 72 + - 64 AS col0, + COUNT( - COALESCE ( + - 90, - ( - ( 33 ) ) ) ) AS col2
----
-6040
1

skipif mysql # not compatible
query II rowsort label-3447
SELECT DISTINCT 83 * - 72 + - 64 AS col0, + COUNT ( - COALESCE ( + - 90, - ( - ( 33 ) ) ) ) AS col2
----
-6040
1

query II rowsort
SELECT COALESCE ( - 67, - 21 ) AS col1, - 3
----
-67
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT 94 * + + ( - 67 ) * - MIN( - + ( - - 58 ) ) * - 19 - COUNT( * ) * COUNT( * ) + 2
----
6940397

skipif mysql # not compatible
query I rowsort label-3449
SELECT 94 * + + ( - 67 ) * - MIN ( - + ( - - 58 ) ) * - 19 - COUNT ( * ) * COUNT ( * ) + 2
----
6940397

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3451
SELECT DISTINCT ( NULLIF ( + 46, 20 * + 79 + - ( - 6 ) ) ) * ( - ( + 6 ) ) * 27 + - 67 DIV - 30 AS col0
----
-7450

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT ( NULLIF ( + 46, 20 * + 79 + - ( - 6 ) ) ) * ( - ( + 6 ) ) * 27 + - 67 / - 30 AS col0
----
-7450

query I rowsort
SELECT COALESCE ( + + 46, + 57 * - ( + 88 ) )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT - 89 - + 71 DIV + 13
----
-94

skipif mysql # not compatible
query I rowsort label-3453
SELECT - 89 - + 71 / + 13
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3454
SELECT ALL - COUNT( ALL 58 ) DIV COUNT( * ) + + ( + + 38 )
----
37

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL - COUNT ( ALL 58 ) / COUNT ( * ) + + ( + + 38 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT DISTINCT + 29 * - 24 + - 52 - CAST( NULL AS SIGNED ) * + 91 * + - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT + 29 * - 24 + - 52 - CAST ( NULL AS INTEGER ) * + 91 * + - 13 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL COUNT ( * ) * + 9 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3457
SELECT ALL ( + COUNT( * ) ) * + CAST( + 79 AS SIGNED ) + - - 99 AS col1
----
178

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL ( + COUNT ( * ) ) * + CAST ( + 79 AS INTEGER ) + - - 99 AS col1
----
178

query II rowsort
SELECT ALL + 50 * + 1 + - - 77 col2, - ( - 28 )
----
127
28

query I rowsort
SELECT DISTINCT 60 * - COALESCE ( 0, + + 28 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL + - 86 * 96 - 49 + CASE 0 WHEN 72 THEN + 67 + ( CASE - ( - COUNT( * ) ) WHEN ( - 39 ) THEN NULL ELSE + 45 * COUNT( * ) END ) WHEN - 64 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL + - 86 * 96 - 49 + CASE 0 WHEN 72 THEN + 67 + ( CASE - ( - COUNT ( * ) ) WHEN ( - 39 ) THEN NULL ELSE + 45 * COUNT ( * ) END ) WHEN - 64 THEN NULL END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT + - 67 - - 39 - - COALESCE ( SUM( 35 ), COUNT( * ), 60 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3462
SELECT + - 67 - - 39 - - COALESCE ( SUM ( 35 ), COUNT ( * ), 60 ) AS col0
----
7

query II rowsort
SELECT - 50, 42 * - - 58 AS col0
----
-50
2436

query II rowsort
SELECT 7 AS col1, + 35 - + - NULLIF ( ( - 53 ), 24 )
----
7
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3465
SELECT ALL - SUM( ALL + 53 ) * + 63 * - NULLIF ( + CAST( 9 AS SIGNED ), 40 ) * COUNT( * ) - + 81 - - 82 * + 99
----
38088

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL - SUM ( ALL + 53 ) * + 63 * - NULLIF ( + CAST ( 9 AS INTEGER ), 40 ) * COUNT ( * ) - + 81 - - 82 * + 99
----
38088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT - NULLIF ( + CAST( + MAX( ALL + + 9 ) AS SIGNED ), + - 29 * 56 + COUNT( * ) + - 40 - 33 ) - + 83 * - 74 AS col1
----
6133

skipif mysql # not compatible
query I rowsort label-3466
SELECT - NULLIF ( + CAST ( + MAX ( ALL + + 9 ) AS INTEGER ), + - 29 * 56 + COUNT ( * ) + - 40 - 33 ) - + 83 * - 74 AS col1
----
6133

query I rowsort
SELECT - 6 * - 94 AS col1
----
564

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

skipif mysql # not compatible
query I rowsort label-3468
SELECT + COUNT ( * ) / + 49 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT DISTINCT CASE + - COUNT( * ) WHEN + - 42 THEN NULL WHEN - 19 THEN + ( + - 81 ) / - 16 - + + 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT CASE + - COUNT ( * ) WHEN + - 42 THEN NULL WHEN - 19 THEN + ( + - 81 ) / - 16 - + + 70 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3470
SELECT + + 99 * - - 71 * + 58 DIV + + COUNT( * )
----
407682

skipif mysql # not compatible
query I rowsort label-3470
SELECT + + 99 * - - 71 * + 58 / + + COUNT ( * )
----
407682

query I rowsort
SELECT - - 29 + 43 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT + 20 * + + MIN( DISTINCT ( 59 ) ) * + 42 * - ( + - 18 ) AS col1
----
892080

skipif mysql # not compatible
query I rowsort label-3472
SELECT + 20 * + + MIN ( DISTINCT ( 59 ) ) * + 42 * - ( + - 18 ) AS col1
----
892080

query I rowsort
SELECT + 31 + + 61 AS col1
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-3474
SELECT + 49 DIV 6 AS col2, 13 AS col1
----
8
13

skipif mysql # not compatible
query II rowsort label-3474
SELECT + 49 / 6 AS col2, 13 AS col1
----
8
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL 19 * - 14 * + 97 * + 65 * + + COUNT( * )
----
-1677130

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL 19 * - 14 * + 97 * + 65 * + + COUNT ( * )
----
-1677130

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT - 31 * - CASE + ( + 72 ) WHEN - + 32 THEN + 62 + - + 13 + + 19 + + 0 + + 30 / - CASE - 48 WHEN + 8 THEN 38 WHEN + 80 THEN - 13 WHEN + 96 THEN - 58 END * - 23 * 59 WHEN COUNT( * ) / COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT - 31 * - CASE + ( + 72 ) WHEN - + 32 THEN + 62 + - + 13 + + 19 + + 0 + + 30 / - CASE - 48 WHEN + 8 THEN 38 WHEN + 80 THEN - 13 WHEN + 96 THEN - 58 END * - 23 * 59 WHEN COUNT ( * ) / COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT + 1 + + + 35 + - 86
----
-50

query I rowsort
SELECT + 95 * 60 * 12 * - - 58 AS col0
----
3967200

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT + SUM( - 11 ) + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-3479
SELECT + SUM ( - 11 ) + COUNT ( * )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3480
SELECT ALL + 3 DIV ( - + 75 ) + + 75 * + 23
----
1725

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL + 3 / ( - + 75 ) + + 75 * + 23
----
1725

query I rowsort
SELECT + 41 + - - 70
----
111

query I rowsort
SELECT + 59 * 58
----
3422

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

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

query I rowsort
SELECT + 94 * + - CASE - AVG ( DISTINCT ( + 89 ) ) WHEN + + 69 * - 75 THEN 34 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3485
SELECT - COUNT( * ) + + - 80 AS col0, + 64 AS col0
----
-81
64

skipif mysql # not compatible
query II rowsort label-3485
SELECT - COUNT ( * ) + + - 80 AS col0, + 64 AS col0
----
-81
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT ALL 17 DIV + + 41 + + 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL 17 / + + 41 + + 33 AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3487
SELECT + 35 DIV + 85 + + COUNT( + 94 ) + + COUNT( 18 ) * 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3487
SELECT + 35 / + 85 + + COUNT ( + 94 ) + + COUNT ( 18 ) * 95 AS col0
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT DISTINCT + MAX( + ( - + 70 ) ) + - 33 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT + MAX ( + ( - + 70 ) ) + - 33 AS col2
----
-103

query I rowsort
SELECT + COALESCE ( - 9, + ( + + 59 ) + - 48 )
----
-9

query I rowsort
SELECT DISTINCT + + 28 + + + 68
----
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3492
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * SUM( 39 ) / + 50 + + 11 - MAX( - - 43 ) + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT + - CAST ( NULL AS REAL ) * SUM ( 39 ) / + 50 + + 11 - MAX ( - - 43 ) + + 79
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3493
SELECT + 54 * + 5, COUNT( * ) AS col0
----
270
1

skipif mysql # not compatible
query II rowsort label-3493
SELECT + 54 * + 5, COUNT ( * ) AS col0
----
270
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT MAX( DISTINCT - - 32 ) * - ( + 64 ) AS col0
----
-2048

skipif mysql # not compatible
query I rowsort label-3494
SELECT MAX ( DISTINCT - - 32 ) * - ( + 64 ) AS col0
----
-2048

onlyif mysql # aggregate syntax: 
query II rowsort label-3495
SELECT ALL + 16 - - 31 + + + 48 - - + 13 * - 83 * - 3 + - 62 AS col2, - 70 + + COUNT( * ) AS col2
----
3270
-69

skipif mysql # not compatible
query II rowsort label-3495
SELECT ALL + 16 - - 31 + + + 48 - - + 13 * - 83 * - 3 + - 62 AS col2, - 70 + + COUNT ( * ) AS col2
----
3270
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT 37 * - + 5 + - + 13 + - COUNT( * ) + 91 * + - 1 * 19 * + SUM( DISTINCT 87 ) AS col1
----
-150622

skipif mysql # not compatible
query I rowsort label-3496
SELECT 37 * - + 5 + - + 13 + - COUNT ( * ) + 91 * + - 1 * 19 * + SUM ( DISTINCT 87 ) AS col1
----
-150622

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

skipif mysql # not compatible
query I rowsort label-3497
SELECT ( - + COUNT ( + - 45 ) ) + - COUNT ( * ) / + 16
----
-1

query I rowsort
SELECT + NULLIF ( + + 56, - + 41 ) + + 35 AS col0
----
91

query I rowsort
SELECT 37 + + 95 AS col1
----
132

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

query II rowsort
SELECT - 62 + + 71 * + 9 + + 14 * + 86 col2, 46 * 29
----
1781
1334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3502
SELECT 26 * - CASE - 36 WHEN + 88 / - 65 + 80 THEN NULL WHEN + - ( + 31 ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END * - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT 26 * - CASE - 36 WHEN + 88 / - 65 + 80 THEN NULL WHEN + - ( + 31 ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END * - 31 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3503
SELECT AVG ( ALL + 28 ) + - 89 * NULLIF ( - + CAST( NULL AS SIGNED ), COUNT( * ) * 33 - - COUNT( * ) - COUNT( * ) ) * + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT AVG ( ALL + 28 ) + - 89 * NULLIF ( - + CAST ( NULL AS INTEGER ), COUNT ( * ) * 33 - - COUNT ( * ) - COUNT ( * ) ) * + + 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3504
SELECT ALL 48 AS col1, - COUNT( - 87 ), + CAST( NULL AS SIGNED ) * - COUNT( * ) * 82 + + + CAST( + - 24 AS SIGNED ) - + 40 + - NULLIF ( - 73, + MIN( 9 ) ) + 78 / 31 AS col0
----
48
-1
NULL

skipif mysql # not compatible
query III rowsort label-3504
SELECT ALL 48 AS col1, - COUNT ( - 87 ), + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 82 + + + CAST ( + - 24 AS INTEGER ) - + 40 + - NULLIF ( - 73, + MIN ( 9 ) ) + 78 / 31 AS col0
----
48
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT 71 + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-3505
SELECT 71 + COUNT ( * )
----
72

query I rowsort
SELECT ALL 72 + + 76 + - ( - + 38 ) col1
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3507
SELECT ALL + CAST( + 5 AS SIGNED ) + - 93 + - COUNT( * ) - 88 * 96 col2
----
-8537

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + CAST ( + 5 AS INTEGER ) + - 93 + - COUNT ( * ) - 88 * 96 col2
----
-8537

query I rowsort
SELECT DISTINCT 7 + - - 67
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3509
SELECT - 15 AS col0, COUNT( * ) + - 93 + + - 38 + MIN( ALL + - ( + - 65 ) )
----
-15
-65

skipif mysql # not compatible
query II rowsort label-3509
SELECT - 15 AS col0, COUNT ( * ) + - 93 + + - 38 + MIN ( ALL + - ( + - 65 ) )
----
-15
-65

query I rowsort
SELECT DISTINCT 71 + - + 38 AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3511
SELECT ALL 6 + - 37 * - CASE 33 WHEN + - COALESCE ( - CAST( + COUNT( * ) AS DECIMAL ), 66 ) + 8 THEN - + 37 + 22 WHEN - 53 * + CAST( NULL AS SIGNED ) THEN COALESCE ( 70, - 97 ) * CAST( + 44 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL 6 + - 37 * - CASE 33 WHEN + - COALESCE ( - CAST ( + COUNT ( * ) AS REAL ), 66 ) + 8 THEN - + 37 + 22 WHEN - 53 * + CAST ( NULL AS INTEGER ) THEN COALESCE ( 70, - 97 ) * CAST ( + 44 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3512
SELECT 83 + - 23 + - 36 + + 45 * - 66, COUNT( * ) AS col1
----
-2946
1

skipif mysql # not compatible
query II rowsort label-3512
SELECT 83 + - 23 + - 36 + + 45 * - 66, COUNT ( * ) AS col1
----
-2946
1

query I rowsort
SELECT DISTINCT 11 + - 90 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT - NULLIF ( COALESCE ( - 83, + + 38, - 42 * + 9 ), 28 / + + MIN( + - 28 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3514
SELECT - NULLIF ( COALESCE ( - 83, + + 38, - 42 * + 9 ), 28 / + + MIN ( + - 28 ) ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT + 38 * + 2 + - 55 + + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-3515
SELECT + 38 * + 2 + - 55 + + + COUNT ( * )
----
22

query I rowsort
SELECT + 17 + 39 AS col0
----
56

query I rowsort
SELECT DISTINCT - + 86 col0
----
-86

query I rowsort
SELECT ALL 4 - - 55 col1
----
59

query I rowsort
SELECT DISTINCT + 87 * - 36 col1
----
-3132

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT DISTINCT - - CASE - 79 WHEN - 11 * 94 * + - 86 + + 9 + - - 31 + + 27 THEN + + COALESCE ( + + 76, - NULLIF ( + COUNT( * ), - 38 * + 43 ) - - 25 * - ( 86 ), COUNT( * ) ) + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT - - CASE - 79 WHEN - 11 * 94 * + - 86 + + 9 + - - 31 + + 27 THEN + + COALESCE ( + + 76, - NULLIF ( + COUNT ( * ), - 38 * + 43 ) - - 25 * - ( 86 ), COUNT ( * ) ) + 67 END
----
NULL

query I rowsort
SELECT ALL + - 34 * - + 37
----
1258

query II rowsort
SELECT DISTINCT - 54, 20 col1
----
-54
20

query I rowsort
SELECT DISTINCT - COALESCE ( + 30, - 19 ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3524
SELECT 62 * + CASE 61 WHEN - 39 THEN NULL WHEN - 20 THEN NULL WHEN 71 THEN CAST( NULL AS SIGNED ) ELSE - COUNT( DISTINCT + 80 ) * - 3 + 47 END * - SUM( + 7 ) AS col0
----
-21700

skipif mysql # not compatible
query I rowsort label-3524
SELECT 62 * + CASE 61 WHEN - 39 THEN NULL WHEN - 20 THEN NULL WHEN 71 THEN CAST ( NULL AS INTEGER ) ELSE - COUNT ( DISTINCT + 80 ) * - 3 + 47 END * - SUM ( + 7 ) AS col0
----
-21700

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

query I rowsort
SELECT DISTINCT + + 92 + + 43 AS col1
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3527
SELECT - 90 / + 78 + 6 + + COUNT( * ) + - - CAST( NULL AS SIGNED ) * - 49, + 21 * + - 60 AS col2
----
NULL
-1260

skipif mysql # not compatible
query II rowsort label-3527
SELECT - 90 / + 78 + 6 + + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * - 49, + 21 * + - 60 AS col2
----
NULL
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + MAX( ALL + 77 ) * - 95 + + + 38 * 95 * - 37 * - 35 AS col1
----
4667635

skipif mysql # not compatible
query I rowsort label-3528
SELECT + MAX ( ALL + 77 ) * - 95 + + + 38 * 95 * - 37 * - 35 AS col1
----
4667635

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT + CASE - 92 WHEN 2 - - - 53 THEN - 42 WHEN COALESCE ( + 44, + COUNT( * ) ) + - + AVG ( + 74 ) THEN NULL END - + SUM( DISTINCT 67 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT + CASE - 92 WHEN 2 - - - 53 THEN - 42 WHEN COALESCE ( + 44, + COUNT ( * ) ) + - + AVG ( + 74 ) THEN NULL END - + SUM ( DISTINCT 67 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3530
SELECT 7, + CASE - 57 WHEN 50 THEN - + COUNT( * ) - - + 40 END AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-3530
SELECT 7, + CASE - 57 WHEN 50 THEN - + COUNT ( * ) - - + 40 END AS col1
----
7
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - 98 + + 61 * COUNT ( * ) AS col1
----
-37

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

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( - - AVG ( ALL - 70 ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3534
SELECT DISTINCT 54 AS col2, 10 * + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3534
SELECT DISTINCT 54 AS col2, 10 * + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col1
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT 61 * + + CASE 92 WHEN + 63 THEN + - MIN( + COALESCE ( - 39, ( 85 ) * - 56 / 26 + + 12 * 76 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT 61 * + + CASE 92 WHEN + 63 THEN + - MIN ( + COALESCE ( - 39, ( 85 ) * - 56 / 26 + + 12 * 76 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL + 26 + + 98 - + 5 - 76 + + COUNT( * ) * + COALESCE ( + 86, + 49 )
----
129

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL + 26 + + 98 - + 5 - 76 + + COUNT ( * ) * + COALESCE ( + 86, + 49 )
----
129

query I rowsort
SELECT ALL - 98 + 31
----
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-3538
SELECT 41 + 32 + + + ( + 15 ) AS col1, - ( 53 ) + 96 + - 51 + - - 44 DIV ( + 93 )
----
88
-8

skipif mysql # not compatible
query II rowsort label-3538
SELECT 41 + 32 + + + ( + 15 ) AS col1, - ( 53 ) + 96 + - 51 + - - 44 / ( + 93 )
----
88
-8

query I rowsort
SELECT 51 + - 66 col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3540
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * 80 AS col0
----
NULL

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

query I rowsort
SELECT ALL + 26 + - 94
----
-68

query I rowsort
SELECT DISTINCT NULLIF ( - 68, 10 * 87 - - AVG ( ALL - 38 ) ) AS col1
----
-68

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

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

query I rowsort
SELECT ALL - 63 - + 39 AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT CASE AVG ( 87 ) WHEN - CASE - - 49 WHEN 47 + + - NULLIF ( + COALESCE ( + 5, 63 ), - 91 ) + COUNT( * ) THEN 13 WHEN 47 + - 27 * - 31 THEN NULL END THEN - 92 * + 85 WHEN MAX( 2 ) * - MAX( - 42 ) + 38 / + 68 THEN NULL ELSE 20 * 59 + - 96 END
----
1084

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT CASE AVG ( 87 ) WHEN - CASE - - 49 WHEN 47 + + - NULLIF ( + COALESCE ( + 5, 63 ), - 91 ) + COUNT ( * ) THEN 13 WHEN 47 + - 27 * - 31 THEN NULL END THEN - 92 * + 85 WHEN MAX ( 2 ) * - MAX ( - 42 ) + 38 / + 68 THEN NULL ELSE 20 * 59 + - 96 END
----
1084

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL + 84 * + CASE COUNT( DISTINCT + 58 ) WHEN - COUNT( * ) * 33 - - - 65 THEN NULL ELSE + 85 + + - 18 * + 32 + + 50 END - 56 AS col1
----
-37100

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL + 84 * + CASE COUNT ( DISTINCT + 58 ) WHEN - COUNT ( * ) * 33 - - - 65 THEN NULL ELSE + 85 + + - 18 * + 32 + + 50 END - 56 AS col1
----
-37100

query I rowsort
SELECT + 58 * + 98 * 89 * 20
----
10117520

query II rowsort
SELECT - ( + - 39 ) AS col2, 34 * + 92
----
39
3128

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

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

query I rowsort
SELECT + - 38 * + + 77
----
-2926

query I rowsort
SELECT - - 52 * - - 10 + + + 92
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT + + CASE + - COUNT( * ) WHEN + COUNT( * ) THEN - 69 * 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT + + CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN - 69 * 7 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 49, + 79 col2
----
49
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL - 88 * + COUNT( * ) + 58 - 22 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - 88 * + COUNT ( * ) + 58 - 22 AS col0
----
-52

query I rowsort
SELECT + 81 * + 13 * 86
----
90558

query I rowsort
SELECT ALL 55 * COALESCE ( + + 38, - 21 )
----
2090

onlyif mysql # DIV for integer division: 
query I rowsort label-3557
SELECT ALL 38 DIV 29 col2
----
1

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL 38 / 29 col2
----
1

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

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

query I rowsort
SELECT - 94 * 49 + 38
----
-4568

onlyif mysql # aggregate syntax: 
query II rowsort label-3560
SELECT 32 AS col1, - ( - - NULLIF ( - 30, + NULLIF ( - + 45, + MAX( DISTINCT + - 98 ) * - ( 45 ) + + 8 ) + 1 ) ) AS col0
----
32
30

skipif mysql # not compatible
query II rowsort label-3560
SELECT 32 AS col1, - ( - - NULLIF ( - 30, + NULLIF ( - + 45, + MAX ( DISTINCT + - 98 ) * - ( 45 ) + + 8 ) + 1 ) ) AS col0
----
32
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT + - NULLIF ( + 57, + - 45 + - 38 ) + + CAST( - 45 AS SIGNED )
----
-102

skipif mysql # not compatible
query I rowsort label-3561
SELECT + - NULLIF ( + 57, + - 45 + - 38 ) + + CAST ( - 45 AS INTEGER )
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3562
SELECT + CAST( NULL AS SIGNED ), 1 * - 63 col1
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-3562
SELECT + CAST ( NULL AS INTEGER ), 1 * - 63 col1
----
NULL
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL - 8 * + NULLIF ( + ( + + 77 ), + 93 + + - MIN( ALL + 10 ) ) * 90 * 86 + 1 + - 72 + 58
----
-4767853

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL - 8 * + NULLIF ( + ( + + 77 ), + 93 + + - MIN ( ALL + 10 ) ) * 90 * 86 + 1 + - 72 + 58
----
-4767853

query II rowsort
SELECT + 87 AS col0, 11 AS col0
----
87
11

query I rowsort
SELECT + 83 + ( + - 18 ) * - 21 AS col2
----
461

query I rowsort
SELECT + 97 + 78 AS col0
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3567
SELECT ALL - + CAST( COUNT( * ) AS SIGNED ) * 9 + + - 35 + + 25 * 36 + 92 DIV - 54
----
855

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER ) * 9 + + - 35 + + 25 * 36 + 92 / - 54
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT COUNT( * ) * 37 + - 34
----
3

skipif mysql # not compatible
query I rowsort label-3568
SELECT COUNT ( * ) * 37 + - 34
----
3

query I rowsort
SELECT ALL - 57 + 64 + ( - - 82 )
----
89

query II rowsort
SELECT + 55 + + - 64 AS col0, - 20
----
-9
-20

query II rowsort
SELECT ALL - 94 + - 57 AS col0, 39 col1
----
-151
39

query I rowsort
SELECT - ( + - 95 ) + 64
----
159

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3573
SELECT - 88 DIV - 93, CAST( - 70 AS SIGNED ) * + 58 AS col2
----
0
-4060

skipif mysql # not compatible
query II rowsort label-3573
SELECT - 88 / - 93, CAST ( - 70 AS INTEGER ) * + 58 AS col2
----
0
-4060

onlyif mysql # DIV for integer division: 
query I rowsort label-3574
SELECT - 58 DIV + 3 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3574
SELECT - 58 / + 3 AS col0
----
-19

query I rowsort
SELECT DISTINCT NULLIF ( + 28, + 29 )
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3576
SELECT DISTINCT + + 92 * 58 * - CAST( NULL AS DECIMAL ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + + 92 * 58 * - CAST ( NULL AS REAL ) * - 53
----
NULL

query I rowsort
SELECT - 43 * + - 86 - + NULLIF ( 94, - 27 )
----
3604

query I rowsort
SELECT DISTINCT - - 25 * - + 99 * + + 20
----
-49500

query I rowsort
SELECT DISTINCT - 59 * + 57
----
-3363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3580
SELECT ALL + 40 DIV + 26 + - COUNT( ALL + ( - ( - - 46 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL + 40 / + 26 + - COUNT ( ALL + ( - ( - - 46 ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3581
SELECT MAX( ALL CAST( NULLIF ( - 94, + 49 ) AS SIGNED ) ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3581
SELECT MAX ( ALL CAST ( NULLIF ( - 94, + 49 ) AS INTEGER ) ) AS col0
----
-94

query I rowsort
SELECT 88 * - - 17 + + 17 * 29 + - 44 + 80 AS col1
----
2025

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT - + 71 DIV + 96 * - 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3583
SELECT - + 71 / + 96 * - 32 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL 74 * COUNT( * ) + + 67 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL 74 * COUNT ( * ) + + 67 AS col1
----
141

query I rowsort
SELECT + 81 * + ( - 10 ) * + - 8 + 27 + + 11 AS col1
----
6518

query I rowsort
SELECT DISTINCT - + 89 * + + 40 + + + 85 + + - 65
----
-3540

query I rowsort
SELECT DISTINCT - - COALESCE ( - 53, 1, - 72 ) * + 85 col1
----
-4505

query I rowsort
SELECT - 43 * + + 25 * 44 col2
----
-47300

query I rowsort
SELECT + 48 * - + 92
----
-4416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3591
SELECT CASE CAST( - + 48 AS DECIMAL ) WHEN - 41 THEN 51 * - COALESCE ( COUNT( * ), + 21, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 18 ) + + 79 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3591
SELECT CASE CAST ( - + 48 AS REAL ) WHEN - 41 THEN 51 * - COALESCE ( COUNT ( * ), + 21, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 18 ) + + 79 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT CASE ( - - 39 ) WHEN - COUNT( * ) * - + CASE 99 WHEN + NULLIF ( COUNT( * ), - COUNT( * ) + + 95 ) THEN NULL WHEN ( - 74 ) THEN COUNT( * ) ELSE MAX( ALL 50 ) END THEN + 64 WHEN 47 * 18 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT CASE ( - - 39 ) WHEN - COUNT ( * ) * - + CASE 99 WHEN + NULLIF ( COUNT ( * ), - COUNT ( * ) + + 95 ) THEN NULL WHEN ( - 74 ) THEN COUNT ( * ) ELSE MAX ( ALL 50 ) END THEN + 64 WHEN 47 * 18 THEN NULL END AS col2
----
NULL

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

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

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

query II rowsort
SELECT 83, 75 AS col1
----
83
75

query I rowsort
SELECT ALL - CASE 60 WHEN + - ( + 23 ) THEN NULL WHEN + + 38 THEN 8 WHEN ( + - 71 ) THEN NULL ELSE NULL END - - 29 + + NULLIF ( + 57, - - 58 + - + 59 )
----
NULL

query I rowsort
SELECT DISTINCT 88 * - - 13 AS col0
----
1144

query I rowsort
SELECT 5 * - 55 AS col1
----
-275

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

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

query I rowsort
SELECT 11 - 85 AS col1
----
-74

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT ( 8 ) + + CAST( + - 78 AS SIGNED ) * + 68
----
-5296

skipif mysql # not compatible
query I rowsort label-3602
SELECT ( 8 ) + + CAST ( + - 78 AS INTEGER ) * + 68
----
-5296

query I rowsort
SELECT 30 * + 25 AS col2
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT COUNT( * ) + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-3604
SELECT COUNT ( * ) + - 45
----
-44

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

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

query I rowsort
SELECT 58 + ( 5 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT + 63 DIV - - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3607
SELECT + 63 / - - 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL - MIN( DISTINCT + 3 ) + - 78 + + 0 * + - 48 col1
----
-81

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL - MIN ( DISTINCT + 3 ) + - 78 + + 0 * + - 48 col1
----
-81

query I rowsort
SELECT 68 * + 18 AS col0
----
1224

onlyif mysql # DIV for integer division: 
query II rowsort label-3610
SELECT - 43 DIV 17 + + 14 * + 3 + 23 + 96 + - - 21 * - 97 + + 95 AS col2, 21 * 4 * 25 * - 89 AS col0
----
-1783
-186900

skipif mysql # not compatible
query II rowsort label-3610
SELECT - 43 / 17 + + 14 * + 3 + 23 + 96 + - - 21 * - 97 + + 95 AS col2, 21 * 4 * 25 * - 89 AS col0
----
-1783
-186900

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT NULLIF ( - 69, COUNT( * ) + + - 90 ) * - 18 AS col2
----
1242

skipif mysql # not compatible
query I rowsort label-3611
SELECT NULLIF ( - 69, COUNT ( * ) + + - 90 ) * - 18 AS col2
----
1242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3612
SELECT - NULLIF ( 61, - - ( COUNT( - CAST( NULL AS SIGNED ) ) ) ) + - + COUNT( DISTINCT - - 69 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3612
SELECT - NULLIF ( 61, - - ( COUNT ( - CAST ( NULL AS INTEGER ) ) ) ) + - + COUNT ( DISTINCT - - 69 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT - + SUM( ALL 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT - + SUM ( ALL 56 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL - COUNT( * ) + + 51 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - COUNT ( * ) + + 51 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT DISTINCT - 3 + 88 + 14 + ( + + CASE - 51 WHEN + 93 + - 27 - + COUNT( * ) / - 90 THEN + ( + - 51 ) WHEN + - 54 THEN NULL ELSE COUNT( * ) END )
----
100

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT - 3 + 88 + 14 + ( + + CASE - 51 WHEN + 93 + - 27 - + COUNT ( * ) / - 90 THEN + ( + - 51 ) WHEN + - 54 THEN NULL ELSE COUNT ( * ) END )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT - 26 * ( - 29 ) + + COUNT( * ) AS col0
----
755

skipif mysql # not compatible
query I rowsort label-3616
SELECT - 26 * ( - 29 ) + + COUNT ( * ) AS col0
----
755

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT - CASE - CASE + 58 WHEN + 19 THEN - 10 + COUNT( * ) + - 99 + - COUNT( * ) * + 76 ELSE + 93 * + COUNT( + 96 ) END WHEN + AVG ( 1 ) THEN ( COALESCE ( + COUNT( * ), - COUNT( * ) + + 54, + 75 ) ) * 99 - + 33 * + 32 WHEN 64 THEN - MAX( ALL - 14 ) ELSE NULL END * - ( + COUNT( * ) * 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT - CASE - CASE + 58 WHEN + 19 THEN - 10 + COUNT ( * ) + - 99 + - COUNT ( * ) * + 76 ELSE + 93 * + COUNT ( + 96 ) END WHEN + AVG ( 1 ) THEN ( COALESCE ( + COUNT ( * ), - COUNT ( * ) + + 54, + 75 ) ) * 99 - + 33 * + 32 WHEN 64 THEN - MAX ( ALL - 14 ) ELSE NULL END * - ( + COUNT ( * ) * 27 )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3619
SELECT ALL - 54 + + ( CAST( 20 AS SIGNED ) )
----
-34

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL - 54 + + ( CAST ( 20 AS INTEGER ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + 36 * 73 + + ( + 13 ) * - NULLIF ( - COUNT( * ), - 28 ) * 35 * - 14 * - + 68 + + 13 * 96
----
437036

skipif mysql # not compatible
query I rowsort label-3620
SELECT + 36 * 73 + + ( + 13 ) * - NULLIF ( - COUNT ( * ), - 28 ) * 35 * - 14 * - + 68 + + 13 * 96
----
437036

onlyif mysql # DIV for integer division: 
query II rowsort label-3621
SELECT 67 * 40 * - 35 + + 42, + COALESCE ( - + 38, - - 41 * - 62 DIV + - 4 ) * 5 col0
----
-93758
-190

skipif mysql # not compatible
query II rowsort label-3621
SELECT 67 * 40 * - 35 + + 42, + COALESCE ( - + 38, - - 41 * - 62 / + - 4 ) * 5 col0
----
-93758
-190

onlyif mysql # aggregate syntax: 
query II rowsort label-3622
SELECT 77 - COUNT( * ) AS col0, MAX( ALL - 62 ) AS col1
----
76
-62

skipif mysql # not compatible
query II rowsort label-3622
SELECT 77 - COUNT ( * ) AS col0, MAX ( ALL - 62 ) AS col1
----
76
-62

query I rowsort
SELECT DISTINCT - 94 - + - 48
----
-46

query I rowsort
SELECT 51 + + 38 AS col1
----
89

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3626
SELECT 67 + + 20 - - 46 DIV 91 * - 11, 51 AS col1
----
87
51

skipif mysql # not compatible
query II rowsort label-3626
SELECT 67 + + 20 - - 46 / 91 * - 11, 51 AS col1
----
87
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT DISTINCT + 94 DIV + 43
----
2

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT + 94 / + 43
----
2

query I rowsort
SELECT 76 + - CASE + 44 WHEN + 48 THEN + - 5 WHEN + - 90 THEN 81 END + + - 34 * - 79
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3629
SELECT MIN( + - 70 ) DIV + - 68
----
1

skipif mysql # not compatible
query I rowsort label-3629
SELECT MIN ( + - 70 ) / + - 68
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT ALL + 77 * + 47 DIV - 47
----
-77

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL + 77 * + 47 / - 47
----
-77

query I rowsort
SELECT ALL + 68 * + 30 * 72
----
146880

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT 96 + - + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-3632
SELECT 96 + - + COUNT ( * )
----
95

query I rowsort
SELECT ALL - 4 * - 99
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3634
SELECT DISTINCT MAX( + CAST( + 3 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT MAX ( + CAST ( + 3 AS INTEGER ) )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3635
SELECT 21 + + COUNT( * ), CASE CAST( NULL AS SIGNED ) WHEN + 49 THEN + 13 ELSE NULL END col0
----
22
NULL

skipif mysql # not compatible
query II rowsort label-3635
SELECT 21 + + COUNT ( * ), CASE CAST ( NULL AS INTEGER ) WHEN + 49 THEN + 13 ELSE NULL END col0
----
22
NULL

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

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

query II rowsort
SELECT - - ( 63 ) col1, 11
----
63
11

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

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

query I rowsort
SELECT ALL - 1 + 88 + 76
----
163

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

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

query I rowsort
SELECT + 52 * 54
----
2808

query II rowsort
SELECT 6 - 63, 42 * ( + - 45 ) AS col0
----
-57
-1890

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

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL COUNT ( * ) * 94 / - ( 53 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT - 18 * - 64 * COUNT( * )
----
1152

skipif mysql # not compatible
query I rowsort label-3644
SELECT - 18 * - 64 * COUNT ( * )
----
1152

query I rowsort
SELECT 42 * + - 46
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - 24 * MIN( - 9 ) + 67 + COUNT( ALL 57 ) * + + 24 / - - 42 + + 29 + CASE - 0 WHEN 8 + + 78 * CASE MAX( DISTINCT 14 ) WHEN + COUNT( * ) THEN 19 WHEN 33 THEN NULL ELSE + 43 END THEN + 39 * 6 WHEN - 34 THEN NULL ELSE NULL END * - 91 - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT - 24 * MIN ( - 9 ) + 67 + COUNT ( ALL 57 ) * + + 24 / - - 42 + + 29 + CASE - 0 WHEN 8 + + 78 * CASE MAX ( DISTINCT 14 ) WHEN + COUNT ( * ) THEN 19 WHEN 33 THEN NULL ELSE + 43 END THEN + 39 * 6 WHEN - 34 THEN NULL ELSE NULL END * - 91 - 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3647
SELECT DISTINCT + 61 * + - CAST( + 61 AS SIGNED ) AS col2
----
-3721

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT + 61 * + - CAST ( + 61 AS INTEGER ) AS col2
----
-3721

query I rowsort
SELECT DISTINCT - - NULLIF ( + + 50, 97 ) col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3649
SELECT - 32 * + COUNT( * ) + + 78 - - 36 AS col0, 52 AS col1
----
82
52

skipif mysql # not compatible
query II rowsort label-3649
SELECT - 32 * + COUNT ( * ) + + 78 - - 36 AS col0, 52 AS col1
----
82
52

query I rowsort
SELECT 44 * - 93 * - 23 AS col1
----
94116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3651
SELECT ALL CAST( 62 AS SIGNED ) DIV - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL CAST ( 62 AS INTEGER ) / - COUNT ( * )
----
-62

query I rowsort
SELECT 69 * - 45 + - ( - 43 ) + - - 2 * - 92 col2
----
-3246

query I rowsort
SELECT 90 * + 68 col2
----
6120

query I rowsort
SELECT ALL 78 * - 94
----
-7332

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT COUNT( * ) col1, 6 * + 35
----
1
210

skipif mysql # not compatible
query II rowsort label-3655
SELECT COUNT ( * ) col1, 6 * + 35
----
1
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT + 90 * + 3 * - COUNT( * )
----
-270

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT + 90 * + 3 * - COUNT ( * )
----
-270

query II rowsort
SELECT ALL + 22 AS col1, - 17 * 29 - + 81 + + + 56
----
22
-518

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT ALL + COUNT( * ), 6 AS col2
----
1
6

skipif mysql # not compatible
query II rowsort label-3658
SELECT ALL + COUNT ( * ), 6 AS col2
----
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT + COALESCE ( - 45, + + 67 + + - COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT + COALESCE ( - 45, + + 67 + + - COUNT ( * ) )
----
-45

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

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

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

query I rowsort
SELECT ALL - ( - + 99 ) + - 46
----
53

query I rowsort
SELECT 37 * + + 32 * 86 - - 53 AS col0
----
101877

query I rowsort
SELECT DISTINCT - 92 + + 83 + - ( 96 )
----
-105

query II rowsort
SELECT ALL 87 AS col0, 66 + 7 + + 66 AS col1
----
87
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL COUNT( * ) + - 60 + + - ( - + 28 ) * 78 * + + NULLIF ( 99, + 45 ) AS col1
----
216157

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL COUNT ( * ) + - 60 + + - ( - + 28 ) * 78 * + + NULLIF ( 99, + 45 ) AS col1
----
216157

query I rowsort
SELECT DISTINCT + 72 * - 94 + + 77 * 56
----
-2456

query I rowsort
SELECT + 45 * 85
----
3825

query I rowsort
SELECT ALL - 80 + + 71 AS col2
----
-9

query I rowsort
SELECT - 89 + 78 + 76 * + 69 AS col1
----
5233

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT 78, - SUM( ALL + 90 ) AS col1
----
78
-90

skipif mysql # not compatible
query II rowsort label-3671
SELECT 78, - SUM ( ALL + 90 ) AS col1
----
78
-90

query I rowsort
SELECT + + 95 - 84 AS col2
----
11

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

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

query II rowsort
SELECT - 11, + 39 AS col1
----
-11
39

query I rowsort
SELECT + - COALESCE ( + + 25, - 88 ) * + 93
----
-2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3676
SELECT + + 9 + CAST( 52 AS SIGNED ) - 27 * + 87 + - MAX( DISTINCT - 42 )
----
-2246

skipif mysql # not compatible
query I rowsort label-3676
SELECT + + 9 + CAST ( 52 AS INTEGER ) - 27 * + 87 + - MAX ( DISTINCT - 42 )
----
-2246

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3677
SELECT DISTINCT + - 39 + - 31 * 67 AS col2, CAST( NULL AS SIGNED )
----
-2116
NULL

skipif mysql # not compatible
query II rowsort label-3677
SELECT DISTINCT + - 39 + - 31 * 67 AS col2, CAST ( NULL AS INTEGER )
----
-2116
NULL

query II rowsort
SELECT ALL - 77 AS col2, - 62
----
-77
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3679
SELECT ALL - CAST( + + 41 AS SIGNED ) * - 47 + + 48 * + ( + - NULLIF ( - - ( SUM( 30 ) ), 82 + COUNT( * ) + - 57 ) )
----
487

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL - CAST ( + + 41 AS INTEGER ) * - 47 + + 48 * + ( + - NULLIF ( - - ( SUM ( 30 ) ), 82 + COUNT ( * ) + - 57 ) )
----
487

query II rowsort
SELECT + 52 + + 94 + + + 69 * - ( + - 45 ) AS col1, - 2
----
3251
-2

query I rowsort
SELECT DISTINCT - 21 * + 20 AS col1
----
-420

query I rowsort
SELECT - - 18 + + - 55 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3683
SELECT ALL + COUNT( * ) AS col2, CASE 45 WHEN 27 THEN - 75 - - 65 WHEN + COALESCE ( NULLIF ( 66, - 51 + - 26 ), 32 * 2 + + 42, + 67, + 28 * - 65 ) * 14 THEN 42 ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3683
SELECT ALL + COUNT ( * ) AS col2, CASE 45 WHEN 27 THEN - 75 - - 65 WHEN + COALESCE ( NULLIF ( 66, - 51 + - 26 ), 32 * 2 + + 42, + 67, + 28 * - 65 ) * 14 THEN 42 ELSE NULL END
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + 26 * - 5 + - COALESCE ( - 62, - + 28, - 75 + + 98 + + COUNT( * ) * + 45 + - 76, - 41 * COUNT( * ) - 80 * - 55 + + 45 * - 79 + - 39 )
----
-68

skipif mysql # not compatible
query I rowsort label-3684
SELECT + 26 * - 5 + - COALESCE ( - 62, - + 28, - 75 + + 98 + + COUNT ( * ) * + 45 + - 76, - 41 * COUNT ( * ) - 80 * - 55 + + 45 * - 79 + - 39 )
----
-68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT DISTINCT - 22 DIV + 27 * - + 85
----
0

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT - 22 / + 27 * - + 85
----
0

query II rowsort
SELECT DISTINCT + 28 col1, ( + 68 ) + - 23 * + 78 AS col1
----
28
-1726

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT COUNT( * ) * + - 37 * 66 + 66 AS col0
----
-2376

skipif mysql # not compatible
query I rowsort label-3688
SELECT COUNT ( * ) * + - 37 * 66 + 66 AS col0
----
-2376

query I rowsort
SELECT - 18 * - 18
----
324

query I rowsort
SELECT + 70 * - CASE WHEN NOT + ( - + 3 ) IS NOT NULL THEN 89 * 6 ELSE NULL END + + - CASE - 77 WHEN - 12 * 33 THEN NULL ELSE + + 29 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT + 6 DIV + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3691
SELECT + 6 / + 57 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT 41 * + + 17 + SUM( - - 99 ) - ( + MIN( DISTINCT + - 54 ) ) AS col1
----
850

skipif mysql # not compatible
query I rowsort label-3692
SELECT 41 * + + 17 + SUM ( - - 99 ) - ( + MIN ( DISTINCT + - 54 ) ) AS col1
----
850

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

skipif mysql # not compatible
query I rowsort label-3693
SELECT - 88 * + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 38 * 71 + - 81
----
2617

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - COUNT( * ) * + 76 + MAX( DISTINCT - 31 ) col1
----
-107

skipif mysql # not compatible
query I rowsort label-3695
SELECT - COUNT ( * ) * + 76 + MAX ( DISTINCT - 31 ) col1
----
-107

query I rowsort
SELECT DISTINCT COALESCE ( - - 52, + 81 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3697
SELECT DISTINCT CASE CAST( NULL AS DECIMAL ) WHEN + - 22 / + - 40 THEN - SUM( DISTINCT - 15 ) * - 87 - + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT CASE CAST ( NULL AS REAL ) WHEN + - 22 / + - 40 THEN - SUM ( DISTINCT - 15 ) * - 87 - + 98 END
----
NULL

query I rowsort
SELECT - - 73 + 54
----
127

query I rowsort
SELECT - + ( + + 16 ) * + 65 AS col2
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT - + 99 + 31 - COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-3700
SELECT - + 99 + 31 - COUNT ( * ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-3701
SELECT 74, COUNT( - 24 ) AS col2
----
74
1

skipif mysql # not compatible
query II rowsort label-3701
SELECT 74, COUNT ( - 24 ) AS col2
----
74
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT - - NULLIF ( + ( - MIN( ALL - - 3 ) ), + + COALESCE ( + 56, - AVG ( + 52 ), - 56 * - 11 + + - 98 ) ) + - 75 * + ( + ( + ( + 83 ) ) )
----
-6228

skipif mysql # not compatible
query I rowsort label-3702
SELECT - - NULLIF ( + ( - MIN ( ALL - - 3 ) ), + + COALESCE ( + 56, - AVG ( + 52 ), - 56 * - 11 + + - 98 ) ) + - 75 * + ( + ( + ( + 83 ) ) )
----
-6228

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL + - COALESCE ( - - 90, - - 22, - COUNT( * ) ) - + COUNT( * ) * 43
----
-133

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL + - COALESCE ( - - 90, - - 22, - COUNT ( * ) ) - + COUNT ( * ) * 43
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT - + CASE 56 WHEN + 83 THEN NULL WHEN + NULLIF ( + 64, + 8 ) / - COUNT( * ) + - + COUNT( * ) * - NULLIF ( + 20, ( - 79 ) - CASE - 38 WHEN 8 THEN - 58 END ) THEN NULL ELSE + 81 END
----
-81

skipif mysql # not compatible
query I rowsort label-3704
SELECT - + CASE 56 WHEN + 83 THEN NULL WHEN + NULLIF ( + 64, + 8 ) / - COUNT ( * ) + - + COUNT ( * ) * - NULLIF ( + 20, ( - 79 ) - CASE - 38 WHEN 8 THEN - 58 END ) THEN NULL ELSE + 81 END
----
-81

query I rowsort
SELECT ALL - 83 - 22
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL - + 24 * + ( 96 ) * - COUNT( * )
----
2304

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - + 24 * + ( 96 ) * - COUNT ( * )
----
2304

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

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

query I rowsort
SELECT ALL + 91 * 60 - + + 73 AS col1
----
5387

query I rowsort
SELECT 15 * - 33
----
-495

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3710
SELECT - CASE 68 WHEN - 78 * - + 13 THEN + + 16 + + CAST( NULL AS DECIMAL ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT - CASE 68 WHEN - 78 * - + 13 THEN + + 16 + + CAST ( NULL AS REAL ) END + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT DISTINCT 51 DIV - ( 31 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT 51 / - ( 31 ) AS col2
----
-1

query I rowsort
SELECT 61 * + 93
----
5673

query I rowsort
SELECT 77 + ( - 68 ) * + 42
----
-2779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3714
SELECT DISTINCT CASE - 0 WHEN COALESCE ( - 79, CASE 2 WHEN + + 21 THEN + + 93 - - CAST( - - MIN( ALL - + 4 ) AS SIGNED ) WHEN - 45 THEN + 12 * + 30 / - + 77 + + 98 * - - COALESCE ( 79, 45 ) * 95 + SUM( ( - 85 ) ) * - 9 END ) * 52 THEN 92 / 45 ELSE NULL END * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT CASE - 0 WHEN COALESCE ( - 79, CASE 2 WHEN + + 21 THEN + + 93 - - CAST ( - - MIN ( ALL - + 4 ) AS INTEGER ) WHEN - 45 THEN + 12 * + 30 / - + 77 + + 98 * - - COALESCE ( 79, 45 ) * 95 + SUM ( ( - 85 ) ) * - 9 END ) * 52 THEN 92 / 45 ELSE NULL END * - 34
----
NULL

query I rowsort
SELECT 76 * + 85 * - 33 * - + 4
----
852720

query II rowsort
SELECT 12 + - 15 col2, - 69 * + ( - 13 )
----
-3
897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3717
SELECT NULLIF ( 39, + CAST( 32 AS SIGNED ) ) + CASE - 47 WHEN + - COUNT( * ) * + + 19 THEN + 18 ELSE 89 * - - 70 * - + 95 * + ( + 4 ) + - - 67 END
----
-2367294

skipif mysql # not compatible
query I rowsort label-3717
SELECT NULLIF ( 39, + CAST ( 32 AS INTEGER ) ) + CASE - 47 WHEN + - COUNT ( * ) * + + 19 THEN + 18 ELSE 89 * - - 70 * - + 95 * + ( + 4 ) + - - 67 END
----
-2367294

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL COUNT( * ) + - 63 - 11 - 22 * - 73 + - 77 AS col0
----
1456

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL COUNT ( * ) + - 63 - 11 - 22 * - 73 + - 77 AS col0
----
1456

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT DISTINCT 47 + 33 DIV + 55
----
47

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT 47 + 33 / + 55
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL SUM( DISTINCT - - 80 ) + COUNT( - 24 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL SUM ( DISTINCT - - 80 ) + COUNT ( - 24 ) AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3721
SELECT 11 + - - CAST( NULL AS SIGNED ) + + 57 / + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT 11 + - - CAST ( NULL AS INTEGER ) + + 57 / + 10
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3722
SELECT 46 DIV 12 AS col2, + 12 + + 31
----
3
43

skipif mysql # not compatible
query II rowsort label-3722
SELECT 46 / 12 AS col2, + 12 + + 31
----
3
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3723
SELECT ALL 97 + + + 11 AS col0, + CAST( NULL AS SIGNED )
----
108
NULL

skipif mysql # not compatible
query II rowsort label-3723
SELECT ALL 97 + + + 11 AS col0, + CAST ( NULL AS INTEGER )
----
108
NULL

query I rowsort
SELECT DISTINCT - 89 * + 22 AS col2
----
-1958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT DISTINCT - ( + CAST( 70 AS SIGNED ) )
----
-70

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT - ( + CAST ( 70 AS INTEGER ) )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3726
SELECT - CASE + + 65 WHEN 0 / - 90 / - COUNT( * ) THEN - 42 + + + MIN( ALL + ( CAST( + 51 AS SIGNED ) ) ) / + 65 + + 37 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3726
SELECT - CASE + + 65 WHEN 0 / - 90 / - COUNT ( * ) THEN - 42 + + + MIN ( ALL + ( CAST ( + 51 AS INTEGER ) ) ) / + 65 + + 37 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3727
SELECT ALL + + 1 - 64 + COALESCE ( - - 80, + + 24 DIV + + CASE + + ( - + 19 ) WHEN - + 85 * - + CASE + 93 WHEN - - AVG ( DISTINCT + 28 ) THEN COUNT( * ) * - CAST( NULL AS SIGNED ) ELSE NULL END * + 76 * - + 87 THEN + CASE + 65 WHEN 24 * - ( 20 ) THEN + MAX( 35 ) * 76 END END + COUNT( * ), - ( 40 ) * 57 + - 78 ) DIV - 40
----
-65

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL + + 1 - 64 + COALESCE ( - - 80, + + 24 / + + CASE + + ( - + 19 ) WHEN - + 85 * - + CASE + 93 WHEN - - AVG ( DISTINCT + 28 ) THEN COUNT ( * ) * - CAST ( NULL AS INTEGER ) ELSE NULL END * + 76 * - + 87 THEN + CASE + 65 WHEN 24 * - ( 20 ) THEN + MAX ( 35 ) * 76 END END + COUNT ( * ), - ( 40 ) * 57 + - 78 ) / - 40
----
-65

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

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

query I rowsort
SELECT 50 * 22 AS col0
----
1100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3730
SELECT + CASE 3 WHEN - 29 * - NULLIF ( - + COUNT( * ), - COUNT( * ) ) + + 76 + - 48 + CAST( - + COUNT( * ) AS SIGNED ) * + 84 * 47 * + + 51 THEN + 12 + + 5 + + COUNT( * ) * - - 45 / 90 END + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT + CASE 3 WHEN - 29 * - NULLIF ( - + COUNT ( * ), - COUNT ( * ) ) + + 76 + - 48 + CAST ( - + COUNT ( * ) AS INTEGER ) * + 84 * 47 * + + 51 THEN + 12 + + 5 + + COUNT ( * ) * - - 45 / 90 END + 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3731
SELECT 96 - COUNT( * ), + 93 AS col0
----
95
93

skipif mysql # not compatible
query II rowsort label-3731
SELECT 96 - COUNT ( * ), + 93 AS col0
----
95
93

query I rowsort
SELECT 98 + - 99 AS col1
----
-1

query II rowsort
SELECT - 70 - - 75 AS col2, 72 AS col2
----
5
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3734
SELECT ALL - + COUNT( * ) DIV 57 AS col1, 71 AS col0
----
0
71

skipif mysql # not compatible
query II rowsort label-3734
SELECT ALL - + COUNT ( * ) / 57 AS col1, 71 AS col0
----
0
71

query I rowsort
SELECT + ( - 32 ) * + 79 * + 37 * - + 86 AS col0
----
8044096

query II rowsort
SELECT DISTINCT ( 2 ) AS col2, 57
----
2
57

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

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

query I rowsort
SELECT ALL - + 46 * - 25 col2
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT + 37 + 10 + - 94 - + COUNT( * ) * 6
----
-53

skipif mysql # not compatible
query I rowsort label-3739
SELECT + 37 + 10 + - 94 - + COUNT ( * ) * 6
----
-53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3740
SELECT ALL - + 29 DIV + - CAST( + 87 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL - + 29 / + - CAST ( + 87 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT + 46 DIV - 66 + - 21 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3741
SELECT + 46 / - 66 + - 21 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3742
SELECT MAX( - 28 ) + - - 3 + - 59 AS col2, 35 AS col0
----
-84
35

skipif mysql # not compatible
query II rowsort label-3742
SELECT MAX ( - 28 ) + - - 3 + - 59 AS col2, 35 AS col0
----
-84
35

query I rowsort
SELECT DISTINCT - 31 * - 65 AS col1
----
2015

query I rowsort
SELECT ALL + 77 + - 60
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + 24 / 76 + - + 36 / - CASE WHEN 58 = COUNT( * ) * + + 95 THEN - 22 * - 0 + + 0 + + COUNT( * ) * - 68 END - + ( 30 ) / 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT + 24 / 76 + - + 36 / - CASE WHEN 58 = COUNT ( * ) * + + 95 THEN - 22 * - 0 + + 0 + + COUNT ( * ) * - 68 END - + ( 30 ) / 10
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3747
SELECT COUNT( * ) + - ( + + CASE - 97 WHEN - + 67 + + CAST( - 60 AS SIGNED ) - + 77 * - + 80 THEN + 8 * + 45 + + NULLIF ( - 11, + + 18 * + 45 - - ( - 13 ) + - 7 / - MIN( 54 ) ) * - 48 WHEN 95 THEN NULL WHEN - 0 THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT COUNT ( * ) + - ( + + CASE - 97 WHEN - + 67 + + CAST ( - 60 AS INTEGER ) - + 77 * - + 80 THEN + 8 * + 45 + + NULLIF ( - 11, + + 18 * + 45 - - ( - 13 ) + - 7 / - MIN ( 54 ) ) * - 48 WHEN 95 THEN NULL WHEN - 0 THEN NULL ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT ALL SUM( ALL + 35 ) + + 72 - + 73
----
34

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL SUM ( ALL + 35 ) + + 72 - + 73
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3749
SELECT DISTINCT + 5 + - + 30 * - CASE + 20 WHEN + CAST( + 67 AS SIGNED ) THEN - 53 + + 44 DIV - 56 ELSE + 15 END AS col1
----
455

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT + 5 + - + 30 * - CASE + 20 WHEN + CAST ( + 67 AS INTEGER ) THEN - 53 + + 44 / - 56 ELSE + 15 END AS col1
----
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3750
SELECT ALL - 76 AS col2, COUNT( * ) * 25 * + ( - - 10 ) * + 17, CAST( NULL AS SIGNED ) AS col0
----
-76
4250
NULL

skipif mysql # not compatible
query III rowsort label-3750
SELECT ALL - 76 AS col2, COUNT ( * ) * 25 * + ( - - 10 ) * + 17, CAST ( NULL AS INTEGER ) AS col0
----
-76
4250
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT 78 * - - 29 + + - COUNT( * )
----
2261

skipif mysql # not compatible
query I rowsort label-3751
SELECT 78 * - - 29 + + - COUNT ( * )
----
2261

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL - ( - - CASE - + 30 WHEN NULLIF ( - MIN( ALL - 33 ), ( 86 ) + + NULLIF ( - 81, 1 ) + 7 ) / 53 THEN - 38 * 60 + 49 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL - ( - - CASE - + 30 WHEN NULLIF ( - MIN ( ALL - 33 ), ( 86 ) + + NULLIF ( - 81, 1 ) + 7 ) / 53 THEN - 38 * 60 + 49 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT ALL ( + CAST( + 32 AS SIGNED ) ) + + 58
----
90

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL ( + CAST ( + 32 AS INTEGER ) ) + + 58
----
90

query I rowsort
SELECT ALL 23 * + + 62
----
1426

query I rowsort
SELECT ALL - 15 * 99
----
-1485

query I rowsort
SELECT 78 * 67 + - - 43 col2
----
5269

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT + MIN( + - 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3757
SELECT + MIN ( + - 24 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT - 35 * + - ( + + 55 ) + + 23 * + COUNT( * )
----
1948

skipif mysql # not compatible
query I rowsort label-3758
SELECT - 35 * + - ( + + 55 ) + + 23 * + COUNT ( * )
----
1948

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL ( + + COUNT( * ) ) - - - COUNT( ALL - + 4 ) * 99 + - MAX( ALL 16 ) AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL ( + + COUNT ( * ) ) - - - COUNT ( ALL - + 4 ) * 99 + - MAX ( ALL 16 ) AS col2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT ALL COUNT( - 19 ) * + 48
----
48

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL COUNT ( - 19 ) * + 48
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3761
SELECT NULLIF ( + + CAST( - COUNT( 47 ) AS SIGNED ), + 20 ) * 30 + 85 * - + 46 * - - 81 col1
----
-316740

skipif mysql # not compatible
query I rowsort label-3761
SELECT NULLIF ( + + CAST ( - COUNT ( 47 ) AS INTEGER ), + 20 ) * 30 + 85 * - + 46 * - - 81 col1
----
-316740

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT - COUNT( * ) * 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT - COUNT ( * ) * 80 AS col0
----
-80

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

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

query I rowsort
SELECT ALL + 16 - 69 * + 80 AS col2
----
-5504

onlyif mysql # DIV for integer division: 
query I rowsort label-3765
SELECT ALL 88 DIV + + 91 * - ( 47 )
----
0

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL 88 / + + 91 * - ( 47 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3766
SELECT - 91 AS col2, SUM( 52 )
----
-91
52

skipif mysql # not compatible
query II rowsort label-3766
SELECT - 91 AS col2, SUM ( 52 )
----
-91
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT - 27 + - COUNT( * ) + 3 * + - 25 col1
----
-103

skipif mysql # not compatible
query I rowsort label-3767
SELECT - 27 + - COUNT ( * ) + 3 * + - 25 col1
----
-103

query II rowsort
SELECT - 41, + 43 AS col2
----
-41
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3769
SELECT + COUNT( * ) + - 47 * CASE + - 1 WHEN - ( 10 ) THEN + + ( - 71 ) / + 43 + + COUNT( * ) ELSE - 49 END * + CASE 81 WHEN 37 * - 94 + - + CAST( NULL AS SIGNED ) - + 30 / + COUNT( * ) THEN - 85 * ( MAX( - 11 ) ) WHEN + 53 - - 47 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT + COUNT ( * ) + - 47 * CASE + - 1 WHEN - ( 10 ) THEN + + ( - 71 ) / + 43 + + COUNT ( * ) ELSE - 49 END * + CASE 81 WHEN 37 * - 94 + - + CAST ( NULL AS INTEGER ) - + 30 / + COUNT ( * ) THEN - 85 * ( MAX ( - 11 ) ) WHEN + 53 - - 47 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3770
SELECT + + SUM( - 47 ) * + + COUNT( * ) * + 10 * + 79 * 50 AS col0, 69 * - + ( + 61 ) * 41 AS col1
----
-1856500
-172569

skipif mysql # not compatible
query II rowsort label-3770
SELECT + + SUM ( - 47 ) * + + COUNT ( * ) * + 10 * + 79 * 50 AS col0, 69 * - + ( + 61 ) * 41 AS col1
----
-1856500
-172569

query I rowsort
SELECT + ( 61 ) * + 60 * + + 55 + 13
----
201313

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT - 54 + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-3772
SELECT - 54 + COUNT ( * )
----
-53

query I rowsort
SELECT ALL - - 94 * - 78 AS col0
----
-7332

query I rowsort
SELECT ALL + 50 + 61 AS col2
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-3775
SELECT ALL 98, COUNT( ALL - 7 ) AS col2
----
98
1

skipif mysql # not compatible
query II rowsort label-3775
SELECT ALL 98, COUNT ( ALL - 7 ) AS col2
----
98
1

query I rowsort
SELECT ALL 13 + 79 * + 9
----
724

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT + COUNT( - - 78 ) - + NULLIF ( + 41, + - 42 ) + 49
----
9

skipif mysql # not compatible
query I rowsort label-3778
SELECT + COUNT ( - - 78 ) - + NULLIF ( + 41, + - 42 ) + 49
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT - COALESCE ( + 30, CASE + COALESCE ( + SUM( 9 ), - 56 ) WHEN + - 41 THEN + COALESCE ( 55, + 69 ) END )
----
-30

skipif mysql # not compatible
query I rowsort label-3779
SELECT - COALESCE ( + 30, CASE + COALESCE ( + SUM ( 9 ), - 56 ) WHEN + - 41 THEN + COALESCE ( 55, + 69 ) END )
----
-30

query I rowsort
SELECT - 13 + + 54 - ( + - 11 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT ALL - ( + 15 ) + - NULLIF ( 10, 40 / - 98 ) * + - CAST( 43 AS SIGNED ) AS col1
----
415

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL - ( + 15 ) + - NULLIF ( 10, 40 / - 98 ) * + - CAST ( 43 AS INTEGER ) AS col1
----
415

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL + MIN( - ( + + COALESCE ( + 85, - NULLIF ( + 4, 70 ) ) ) ) + + + ( + - ( - 38 ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL + MIN ( - ( + + COALESCE ( + 85, - NULLIF ( + 4, 70 ) ) ) ) + + + ( + - ( - 38 ) ) AS col2
----
-47

query I rowsort
SELECT DISTINCT + 1 * - + 34
----
-34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3785
SELECT - 29 * - 37 * CAST( SUM( + - 77 ) AS SIGNED ) AS col1
----
-82621

skipif mysql # not compatible
query I rowsort label-3785
SELECT - 29 * - 37 * CAST ( SUM ( + - 77 ) AS INTEGER ) AS col1
----
-82621

query I rowsort
SELECT ALL + 83 * 78
----
6474

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT 92 * 46 + COUNT( * ) * + + 35 AS col2
----
4267

skipif mysql # not compatible
query I rowsort label-3787
SELECT 92 * 46 + COUNT ( * ) * + + 35 AS col2
----
4267

query I rowsort
SELECT NULLIF ( 89, + 31 )
----
89

query I rowsort
SELECT - 93 * 23 AS col2
----
-2139

query I rowsort
SELECT DISTINCT + CASE + 57 WHEN - - 33 THEN NULL WHEN - ( 61 ) / - 66 THEN - 88 + 73 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3791
SELECT DISTINCT 56 * + - 29 * - + 2 - + + 76 + + + CAST( NULL AS SIGNED ) / - COUNT( ALL 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT 56 * + - 29 * - + 2 - + + 76 + + + CAST ( NULL AS INTEGER ) / - COUNT ( ALL 55 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3792
SELECT NULLIF ( + 56, - 80 * - - CASE + + 19 WHEN - 83 + - 9 THEN ( + 45 ) ELSE NULL END - - 48 + - 30 * + 89 * + - 52 + - + COALESCE ( - 54, + 5 + + CAST( NULL AS SIGNED ) ) + + 27 - 35 / 78 ) col2
----
56

skipif mysql # not compatible
query I rowsort label-3792
SELECT NULLIF ( + 56, - 80 * - - CASE + + 19 WHEN - 83 + - 9 THEN ( + 45 ) ELSE NULL END - - 48 + - 30 * + 89 * + - 52 + - + COALESCE ( - 54, + 5 + + CAST ( NULL AS INTEGER ) ) + + 27 - 35 / 78 ) col2
----
56

query I rowsort
SELECT - 42 + + 95 AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT DISTINCT + COALESCE ( + + CAST( NULL AS SIGNED ), + + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT + COALESCE ( + + CAST ( NULL AS INTEGER ), + + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT - NULLIF ( - MIN( DISTINCT - + 98 ), 1 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3795
SELECT - NULLIF ( - MIN ( DISTINCT - + 98 ), 1 ) AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3796
SELECT ALL - CAST( NULL AS SIGNED ) * - 47 / 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - CAST ( NULL AS INTEGER ) * - 47 / 47 AS col2
----
NULL

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

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

query I rowsort
SELECT + + ( - 91 ) * + - 63 * + 81
----
464373

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT ALL - COUNT( * ) * + - 55 + - 3
----
52

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL - COUNT ( * ) * + - 55 + - 3
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3800
SELECT ALL + COUNT( * ) * - ( - 49 ) DIV - 92 AS col1, 2 * - + CASE WHEN NOT NULL = + 61 THEN NULL WHEN NOT ( 12 ) NOT BETWEEN NULL AND ( NULL ) THEN NULL WHEN NOT NULL NOT BETWEEN ( + 90 ) * + CAST( + + AVG ( DISTINCT + 62 ) AS SIGNED ) + 16 DIV + - 68 AND ( 95 * - 26 ) THEN + 80 + 95 END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3800
SELECT ALL + COUNT ( * ) * - ( - 49 ) / - 92 AS col1, 2 * - + CASE WHEN NOT NULL = + 61 THEN NULL WHEN NOT ( 12 ) NOT BETWEEN NULL AND ( NULL ) THEN NULL WHEN NOT NULL NOT BETWEEN ( + 90 ) * + CAST ( + + AVG ( DISTINCT + 62 ) AS INTEGER ) + 16 / + - 68 AND ( 95 * - 26 ) THEN + 80 + 95 END
----
0
NULL

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

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

query I rowsort
SELECT + COALESCE ( + + 85, - + 64, - 66 ) + - 22 + - 7 AS col0
----
56

query I rowsort
SELECT DISTINCT - 52 + 83 + - ( - 95 )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL 88 + + 46 * + + COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL 88 + + 46 * + + COUNT ( * )
----
134

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3807
SELECT ALL COALESCE ( + 87, - - 41, + COUNT( * ) + + 41 + - 41 ) * + ( + 72 ), 80 AS col1
----
6264
80

skipif mysql # not compatible
query II rowsort label-3807
SELECT ALL COALESCE ( + 87, - - 41, + COUNT ( * ) + + 41 + - 41 ) * + ( + 72 ), 80 AS col1
----
6264
80

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

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

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

query I rowsort
SELECT DISTINCT 31 + 41 + + NULLIF ( + 88, + 55 / - 24 ) AS col2
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3811
SELECT ALL ( + - ( CASE + - COUNT( * ) WHEN + 73 * + 2 * + 24 THEN NULL ELSE + ( + 72 ) - CASE + 53 WHEN - 60 / + COALESCE ( CAST( - 50 AS SIGNED ), + COUNT( * ) * + 31 + - - 98 - + 0 + - + ( - 55 ), - 0 ) * + 50 + - MIN( + 22 ) THEN + 59 * 11 ELSE 51 END END ) ) + - 89 * 76
----
-6785

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL ( + - ( CASE + - COUNT ( * ) WHEN + 73 * + 2 * + 24 THEN NULL ELSE + ( + 72 ) - CASE + 53 WHEN - 60 / + COALESCE ( CAST ( - 50 AS INTEGER ), + COUNT ( * ) * + 31 + - - 98 - + 0 + - + ( - 55 ), - 0 ) * + 50 + - MIN ( + 22 ) THEN + 59 * 11 ELSE 51 END END ) ) + - 89 * 76
----
-6785

query I rowsort
SELECT + 60 + - + 46
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT + 36 + CAST( + ( + 1 ) AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-3813
SELECT + 36 + CAST ( + ( + 1 ) AS INTEGER ) AS col1
----
37

query I rowsort
SELECT + 41 + 33
----
74

query I rowsort
SELECT + 0 * - + 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT + 17 + 75 * COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3816
SELECT + 17 + 75 * COUNT ( * ) AS col2
----
92

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3819
SELECT ALL + 52 * COUNT( * ) * 97, 68 + 88 AS col1
----
5044
156

skipif mysql # not compatible
query II rowsort label-3819
SELECT ALL + 52 * COUNT ( * ) * 97, 68 + 88 AS col1
----
5044
156

query I rowsort
SELECT - 27 * 6 * 28 + 28
----
-4508

query I rowsort
SELECT DISTINCT + 43 * + ( + - 23 )
----
-989

query I rowsort
SELECT - 73 + - 78 AS col0
----
-151

query I rowsort
SELECT ALL + 99 * - 2 AS col2
----
-198

query I rowsort
SELECT 19 * + 17 - 68 + + + 98
----
353

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT 56 + - - 13 + - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-3825
SELECT 56 + - - 13 + - COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT - ( + 20 ) * + 66 - 18 + - 93 - + ( COUNT( DISTINCT 91 ) )
----
-1432

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT - ( + 20 ) * + 66 - 18 + - 93 - + ( COUNT ( DISTINCT 91 ) )
----
-1432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3827
SELECT + COUNT( * ) * 92 DIV - 84 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3827
SELECT + COUNT ( * ) * 92 / - 84 col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3828
SELECT - 98 * 80 + + 67 + MIN( 87 ) + 36 AS col0, + CASE 88 WHEN 78 - + 18 * 46 * - - ( 64 ) * + - MIN( ALL - 51 ) + + 18 THEN COUNT( * ) ELSE NULL END
----
-7650
NULL

skipif mysql # not compatible
query II rowsort label-3828
SELECT - 98 * 80 + + 67 + MIN ( 87 ) + 36 AS col0, + CASE 88 WHEN 78 - + 18 * 46 * - - ( 64 ) * + - MIN ( ALL - 51 ) + + 18 THEN COUNT ( * ) ELSE NULL END
----
-7650
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL - + CASE + 90 WHEN + 86 THEN + - 63 * - COUNT( 51 ) * - ( + ( - + 55 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL - + CASE + 90 WHEN + 86 THEN + - 63 * - COUNT ( 51 ) * - ( + ( - + 55 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3830
SELECT + 10 * + COALESCE ( - 50, - 40 * - CAST( NULL AS SIGNED ) + - + COUNT( ALL + - 81 ) + COUNT( * ) - - CASE - COUNT( * ) WHEN - - 64 THEN - 96 END ) * - ( + + 91 ) * - 5 + + - 62 + + + 44
----
-227518

skipif mysql # not compatible
query I rowsort label-3830
SELECT + 10 * + COALESCE ( - 50, - 40 * - CAST ( NULL AS INTEGER ) + - + COUNT ( ALL + - 81 ) + COUNT ( * ) - - CASE - COUNT ( * ) WHEN - - 64 THEN - 96 END ) * - ( + + 91 ) * - 5 + + - 62 + + + 44
----
-227518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3831
SELECT ALL + CAST( - NULLIF ( - - NULLIF ( + + 90, - COUNT( * ) + - + 35 ), - 10 ) AS SIGNED ) + 42 + COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL + CAST ( - NULLIF ( - - NULLIF ( + + 90, - COUNT ( * ) + - + 35 ), - 10 ) AS INTEGER ) + 42 + COUNT ( * ) AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT 35 + + - 54 + 38 * - CAST( NULL AS SIGNED ) * + + 49 * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3832
SELECT 35 + + - 54 + 38 * - CAST ( NULL AS INTEGER ) * + + 49 * - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT + 47 * - + 11 + + NULLIF ( + COUNT( * ), - + 55 ) - - 54
----
-462

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT + 47 * - + 11 + + NULLIF ( + COUNT ( * ), - + 55 ) - - 54
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL - - 14 + - 53 + - COUNT( * ) * 26
----
-65

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - - 14 + - 53 + - COUNT ( * ) * 26
----
-65

query I rowsort
SELECT - ( - 90 ) + - 66 + - 34 + 46 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT + - CASE - 45 WHEN - - 89 THEN - 33 * + - 80 - + 83 ELSE MIN( ALL 41 ) END + 96 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT + - CASE - 45 WHEN - - 89 THEN - 33 * + - 80 - + 83 ELSE MIN ( ALL 41 ) END + 96 AS col0
----
55

query I rowsort
SELECT DISTINCT + 65 + 55 + - 18 * - 63 - + 9
----
1245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT DISTINCT - + CAST( 12 AS SIGNED ) + - COUNT( * ) - + SUM( - ( - + 12 ) ) * + 26 * + - 50
----
15587

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT - + CAST ( 12 AS INTEGER ) + - COUNT ( * ) - + SUM ( - ( - + 12 ) ) * + 26 * + - 50
----
15587

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT DISTINCT - 98 * + + COUNT( * ) + - - 65 + - 10 * + 15
----
-183

skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT - 98 * + + COUNT ( * ) + - - 65 + - 10 * + 15
----
-183

query I rowsort
SELECT ( 82 ) + - 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL + 18 * 84 * - + COUNT( * ) * - COUNT( * )
----
1512

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + 18 * 84 * - + COUNT ( * ) * - COUNT ( * )
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT ( + COUNT( * ) ) - - + 5
----
6

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT ( + COUNT ( * ) ) - - + 5
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-3844
SELECT ALL 46 AS col1, 27 DIV 8
----
46
3

skipif mysql # not compatible
query II rowsort label-3844
SELECT ALL 46 AS col1, 27 / 8
----
46
3

query II rowsort
SELECT DISTINCT 2 AS col2, 23 col1
----
2
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT ALL COUNT( * ) - - 42
----
43

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL COUNT ( * ) - - 42
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT 40 DIV + SUM( - 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-3847
SELECT 40 / + SUM ( - 36 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT ALL 12 DIV + 38 col1
----
0

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL 12 / + 38 col1
----
0

query I rowsort
SELECT 11 * + 67
----
737

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT COUNT( * ) + 53 - + 82 + 59 * + 19 * + ( + COUNT( * ) )
----
1093

skipif mysql # not compatible
query I rowsort label-3850
SELECT COUNT ( * ) + 53 - + 82 + 59 * + 19 * + ( + COUNT ( * ) )
----
1093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3851
SELECT - 67, NULLIF ( - 92, 62 + - + NULLIF ( 27, + CAST( - 11 AS SIGNED ) ) + CAST( - 76 AS SIGNED ) * + 43 + COUNT( * ) ) * - 92 * + CAST( NULL AS DECIMAL ) col1
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-3851
SELECT - 67, NULLIF ( - 92, 62 + - + NULLIF ( 27, + CAST ( - 11 AS INTEGER ) ) + CAST ( - 76 AS INTEGER ) * + 43 + COUNT ( * ) ) * - 92 * + CAST ( NULL AS REAL ) col1
----
-67
NULL

query I rowsort
SELECT ( + 74 ) + + + 34 + 73
----
181

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT 30 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT 30 / + 69
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3855
SELECT ALL 41 * - + COUNT( * ) AS col2, 82 AS col1
----
-41
82

skipif mysql # not compatible
query II rowsort label-3855
SELECT ALL 41 * - + COUNT ( * ) AS col2, 82 AS col1
----
-41
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT NULLIF ( + COUNT( * ), - 55 + COALESCE ( + - COUNT( * ), + 32 * + 56 + - 45 ) ) - + COALESCE ( + 38, + + ( + 95 ) ) DIV 47 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3856
SELECT NULLIF ( + COUNT ( * ), - 55 + COALESCE ( + - COUNT ( * ), + 32 * + 56 + - 45 ) ) - + COALESCE ( + 38, + + ( + 95 ) ) / 47 AS col0
----
1

query I rowsort
SELECT ALL 58 * - - 25 col1
----
1450

query I rowsort
SELECT DISTINCT ( + 44 ) * - + 36 AS col2
----
-1584

query II rowsort
SELECT + 33 AS col2, 80
----
33
80

query II rowsort
SELECT + 35, - 28 + - 20 AS col2
----
35
-48

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

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL - + CAST ( + 44 AS INTEGER ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3862
SELECT DISTINCT - ( MAX( ALL - - 47 ) ) + + NULLIF ( - 69, - - 74 ), + 0 - 91 col1
----
-116
-91

skipif mysql # not compatible
query II rowsort label-3862
SELECT DISTINCT - ( MAX ( ALL - - 47 ) ) + + NULLIF ( - 69, - - 74 ), + 0 - 91 col1
----
-116
-91

query I rowsort
SELECT - 7 * + - 93
----
651

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL - + ( + - 32 ) + - + COUNT( * ) * + + 3 + - 92 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - + ( + - 32 ) + - + COUNT ( * ) * + + 3 + - 92 AS col0
----
-63

query I rowsort
SELECT + + NULLIF ( + 75, 26 ) AS col2
----
75

query II rowsort
SELECT DISTINCT - 47, 71 AS col1
----
-47
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT DISTINCT - COALESCE ( - 23, - + COUNT( * ) - + + 0 * - + 58 * + COUNT( * ) + - ( 20 ) - - - COUNT( * ) )
----
23

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT - COALESCE ( - 23, - + COUNT ( * ) - + + 0 * - + 58 * + COUNT ( * ) + - ( 20 ) - - - COUNT ( * ) )
----
23

query I rowsort
SELECT ALL - 27 + 66 + + 99 + - 43 * - + 42 * - 30 * + 70 * + 12
----
-45511062

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

query I rowsort
SELECT DISTINCT - 5 + 76
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3872
SELECT + 74 * - COUNT( * ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT + 74 * - COUNT ( * ) + - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 77 AS col1, + 42
----
77
42

query II rowsort
SELECT DISTINCT - 16 AS col2, + 60 AS col1
----
-16
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT + 40 + + 91 + + - NULLIF ( - 23, + 59 * + 67 ) * CASE - + 88 WHEN - COUNT( * ) + - - 52 + + 56 - + COUNT( * ) THEN + ( + 71 ) ELSE NULL END + 62 * - 15 * + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3875
SELECT + 40 + + 91 + + - NULLIF ( - 23, + 59 * + 67 ) * CASE - + 88 WHEN - COUNT ( * ) + - - 52 + + 56 - + COUNT ( * ) THEN + ( + 71 ) ELSE NULL END + 62 * - 15 * + - 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3876
SELECT ALL - 11 - + 25 DIV ( + 85 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - 11 - + 25 / ( + 85 ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3877
SELECT ALL CASE + + ( + COUNT( * ) ) WHEN 56 THEN + CASE - 77 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN + 2 THEN - + 62 * + 85 * - ( + 35 ) ELSE - - 37 * 51 + + + 75 DIV 72 END WHEN + 85 THEN NULL ELSE 28 END * - 92 AS col0, 0 AS col0
----
-2576
0

skipif mysql # not compatible
query II rowsort label-3877
SELECT ALL CASE + + ( + COUNT ( * ) ) WHEN 56 THEN + CASE - 77 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 2 THEN - + 62 * + 85 * - ( + 35 ) ELSE - - 37 * 51 + + + 75 / 72 END WHEN + 85 THEN NULL ELSE 28 END * - 92 AS col0, 0 AS col0
----
-2576
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT 5 + COUNT( * ) * - + 40 * + 61 col0
----
-2435

skipif mysql # not compatible
query I rowsort label-3878
SELECT 5 + COUNT ( * ) * - + 40 * + 61 col0
----
-2435

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL SUM( DISTINCT + + 59 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL SUM ( DISTINCT + + 59 ) col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT 14 + - CAST( NULL AS SIGNED ) * 63 + + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT 14 + - CAST ( NULL AS INTEGER ) * 63 + + 87 AS col0
----
NULL

query I rowsort
SELECT ALL - 60 - - - 70 * - + 87
----
6030

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL COUNT( - 0 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL COUNT ( - 0 ) AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-3883
SELECT COUNT ( * ) * ( ( - 73 ) )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT 4 + + - 51 + ( CAST( - 7 AS SIGNED ) ) + + + ( + 93 ) + 48 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3884
SELECT 4 + + - 51 + ( CAST ( - 7 AS INTEGER ) ) + + + ( + 93 ) + 48 AS col2
----
87

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

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

query I rowsort
SELECT 14 + 86 AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3887
SELECT 20 * - + CAST( + 18 AS SIGNED ) * + COUNT( * ) + - 48 - 22 DIV + CAST( - - ( 17 ) AS SIGNED )
----
-409

skipif mysql # not compatible
query I rowsort label-3887
SELECT 20 * - + CAST ( + 18 AS INTEGER ) * + COUNT ( * ) + - 48 - 22 / + CAST ( - - ( 17 ) AS INTEGER )
----
-409

query I rowsort
SELECT 56 * - COALESCE ( + 37, + 21 * + 90 ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT DISTINCT - 70 * ( + 98 ) * + COUNT( * )
----
-6860

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT - 70 * ( + 98 ) * + COUNT ( * )
----
-6860

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT 39 + + COUNT( * ) * 10 + - + 77
----
-28

skipif mysql # not compatible
query I rowsort label-3890
SELECT 39 + + COUNT ( * ) * 10 + - + 77
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT SUM( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT SUM ( + 86 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3892
SELECT DISTINCT - ( + 13 ) * 18 DIV - - ( COUNT( * ) )
----
-234

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT - ( + 13 ) * 18 / - - ( COUNT ( * ) )
----
-234

query II rowsort
SELECT ALL COALESCE ( + 48, + - 30 ) AS col2, + 42 AS col2
----
48
42

query I rowsort
SELECT ALL NULLIF ( - 22, 8 ) col0
----
-22

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

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

query I rowsort
SELECT DISTINCT - 54 * - 6 + - - 54 * - + 17
----
-594

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3897
SELECT + 91 DIV + CAST( - 1 AS SIGNED ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-3897
SELECT + 91 / + CAST ( - 1 AS INTEGER ) col1
----
-91

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

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

query I rowsort
SELECT + 49 * + + 17
----
833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3900
SELECT + + 75 / CAST( NULL AS SIGNED ) * + - 59 + - ( + MAX( ALL + 6 ) ) / + COUNT( DISTINCT - 23 ) * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - 32 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT + + 75 / CAST ( NULL AS INTEGER ) * + - 59 + - ( + MAX ( ALL + 6 ) ) / + COUNT ( DISTINCT - 23 ) * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - 32 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT ALL 31 * CAST( NULL AS SIGNED ) + - + 89
----
NULL

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

query II rowsort
SELECT ALL + 98 * + 26 AS col0, 28 - 29
----
2548
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3903
SELECT + + 87 + - + 95 * COALESCE ( - 98, - ( - 57 ) * - 44 + COUNT( * ) ) DIV + 27 + + + 5 + - + ( 40 ) col1
----
396

skipif mysql # not compatible
query I rowsort label-3903
SELECT + + 87 + - + 95 * COALESCE ( - 98, - ( - 57 ) * - 44 + COUNT ( * ) ) / + 27 + + + 5 + - + ( 40 ) col1
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL - - 73 * NULLIF ( CASE + SUM( DISTINCT 64 ) WHEN 89 THEN - 25 WHEN - + SUM( 58 ) + - 85 * - 94 THEN NULL ELSE + 14 END, + 46 ) - - 19 - + - 39 + 37
----
1117

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - - 73 * NULLIF ( CASE + SUM ( DISTINCT 64 ) WHEN 89 THEN - 25 WHEN - + SUM ( 58 ) + - 85 * - 94 THEN NULL ELSE + 14 END, + 46 ) - - 19 - + - 39 + 37
----
1117

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT ALL + - 74 * 95 * + 14 * + - 63 + + + ( + 30 ) - + + COUNT( * ) * - 27 col0
----
6200517

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL + - 74 * 95 * + 14 * + - 63 + + + ( + 30 ) - + + COUNT ( * ) * - 27 col0
----
6200517

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + - COUNT( * ) + - 53 - ( + ( + - 82 ) ) col0
----
28

skipif mysql # not compatible
query I rowsort label-3906
SELECT + - COUNT ( * ) + - 53 - ( + ( + - 82 ) ) col0
----
28

query I rowsort
SELECT + 65 * + 30 AS col2
----
1950

query I rowsort
SELECT DISTINCT - - 42 * - 95
----
-3990

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT ALL + ( + 48 ) AS col1, SUM( - 14 )
----
48
-14

skipif mysql # not compatible
query II rowsort label-3909
SELECT ALL + ( + 48 ) AS col1, SUM ( - 14 )
----
48
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT DISTINCT 1 / + CASE + 3 WHEN + - COUNT( * ) THEN NULLIF ( + 79, + 12 * + 97 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT 1 / + CASE + 3 WHEN + - COUNT ( * ) THEN NULLIF ( + 79, + 12 * + 97 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT MIN( ALL + 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3911
SELECT MIN ( ALL + 86 ) AS col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3912
SELECT - 31 DIV - + 44
----
0

skipif mysql # not compatible
query I rowsort label-3912
SELECT - 31 / - + 44
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3913
SELECT - CASE - 69 WHEN + 7 - + + 93 + - MIN( ALL + 67 ) + + 21 * + 91 / + - 66 THEN MIN( DISTINCT - 43 ) * - 16 + + CASE - - 8 WHEN + 12 THEN NULL ELSE CAST( NULL AS SIGNED ) END - + + 2 * + 52 ELSE - 96 + - 75 END AS col2
----
171

skipif mysql # not compatible
query I rowsort label-3913
SELECT - CASE - 69 WHEN + 7 - + + 93 + - MIN ( ALL + 67 ) + + 21 * + 91 / + - 66 THEN MIN ( DISTINCT - 43 ) * - 16 + + CASE - - 8 WHEN + 12 THEN NULL ELSE CAST ( NULL AS INTEGER ) END - + + 2 * + 52 ELSE - 96 + - 75 END AS col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT - COUNT( * ) + - 1
----
-2

skipif mysql # not compatible
query I rowsort label-3914
SELECT - COUNT ( * ) + - 1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT - ( + COALESCE ( + 74, 91 - - - 17, + - NULLIF ( - 87, 19 / + COALESCE ( 57, + CASE - 53 WHEN + - 36 - - + 91 + + 48 THEN - 15 END, - NULLIF ( + + 94, 43 ) * + - ( + MAX( DISTINCT + 6 ) ) + + 61 * - COUNT( * ) ) - ( + 93 ) + - ( 37 + - 41 * + 2 ) * 63 ) ) ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-3915
SELECT - ( + COALESCE ( + 74, 91 - - - 17, + - NULLIF ( - 87, 19 / + COALESCE ( 57, + CASE - 53 WHEN + - 36 - - + 91 + + 48 THEN - 15 END, - NULLIF ( + + 94, 43 ) * + - ( + MAX ( DISTINCT + 6 ) ) + + 61 * - COUNT ( * ) ) - ( + 93 ) + - ( 37 + - 41 * + 2 ) * 63 ) ) ) col2
----
-74

query I rowsort
SELECT - 83 + - 54
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3917
SELECT ALL COUNT( ALL + - CAST( + 90 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL COUNT ( ALL + - CAST ( + 90 AS INTEGER ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3918
SELECT + 95 DIV + - 75 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3918
SELECT + 95 / + - 75 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT - COUNT( * ) * + + 5 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3919
SELECT - COUNT ( * ) * + + 5 AS col0
----
-5

query II rowsort
SELECT ALL NULLIF ( 37, + 10 ) col0, + 69
----
37
69

query I rowsort
SELECT DISTINCT 94 * - 40 AS col0
----
-3760

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT ALL + 93 DIV - 5 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + 93 / - 5 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT + ( + - 96 ) + 6 + - 2 + - AVG ( DISTINCT + 23 ) * + 61 - - 8 / + 35 * 95 * + CASE + + ( + 92 ) WHEN - NULLIF ( COUNT( DISTINCT 86 ), + 84 ) THEN AVG ( DISTINCT - 89 ) * 58 * 10 + + - COALESCE ( 20, + 31 / 7, 90 ) - 80 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT + ( + - 96 ) + 6 + - 2 + - AVG ( DISTINCT + 23 ) * + 61 - - 8 / + 35 * 95 * + CASE + + ( + 92 ) WHEN - NULLIF ( COUNT ( DISTINCT 86 ), + 84 ) THEN AVG ( DISTINCT - 89 ) * 58 * 10 + + - COALESCE ( 20, + 31 / 7, 90 ) - 80 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT DISTINCT + 84 DIV - 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT + 84 / - 96 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL CASE CASE CASE + COUNT( * ) WHEN 46 THEN - + 9 + + 18 WHEN - COUNT( * ) / - 90 + 73 + - - 9 THEN NULL ELSE NULL END WHEN + 88 + + 35 THEN NULLIF ( + 40, - 48 * + + 64 ) + + 40 ELSE NULL END WHEN + + 43 THEN + 23 * AVG ( + 42 ) - + ( - 57 ) ELSE - 1 + + 94 * COUNT( * ) END
----
93

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL CASE CASE CASE + COUNT ( * ) WHEN 46 THEN - + 9 + + 18 WHEN - COUNT ( * ) / - 90 + 73 + - - 9 THEN NULL ELSE NULL END WHEN + 88 + + 35 THEN NULLIF ( + 40, - 48 * + + 64 ) + + 40 ELSE NULL END WHEN + + 43 THEN + 23 * AVG ( + 42 ) - + ( - 57 ) ELSE - 1 + + 94 * COUNT ( * ) END
----
93

query II rowsort
SELECT 3 AS col1, NULLIF ( 64, 87 - - 21 ) AS col2
----
3
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT - 87 + - - SUM( DISTINCT - 47 ) + + 93
----
-41

skipif mysql # not compatible
query I rowsort label-3927
SELECT - 87 + - - SUM ( DISTINCT - 47 ) + + 93
----
-41

query II rowsort
SELECT 41, + 96 - - 16 AS col1
----
41
112

query I rowsort
SELECT - 5 * + - 51
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3930
SELECT - 11 + - + 4 + + - CASE + 50 WHEN + + 68 THEN + 47 WHEN + 36 * + 75 + + 46 + CAST( NULL AS SIGNED ) + + 58 THEN NULL END * - + 68 / - 38 * + - 69 * + - SUM( DISTINCT + - 21 ) * - 28 - - COUNT( * ), CAST( NULL AS SIGNED ) + 51 * - ( - 30 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3930
SELECT - 11 + - + 4 + + - CASE + 50 WHEN + + 68 THEN + 47 WHEN + 36 * + 75 + + 46 + CAST ( NULL AS INTEGER ) + + 58 THEN NULL END * - + 68 / - 38 * + - 69 * + - SUM ( DISTINCT + - 21 ) * - 28 - - COUNT ( * ), CAST ( NULL AS INTEGER ) + 51 * - ( - 30 )
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 21 + 13 * 96 * + 38 AS col2
----
47403

query I rowsort
SELECT ALL ( + + 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3933
SELECT + + COUNT( DISTINCT + 39 ) + - 43 * - COUNT( * ) DIV + 63 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3933
SELECT + + COUNT ( DISTINCT + 39 ) + - 43 * - COUNT ( * ) / + 63 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT ALL - 87 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL - 87 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT + COALESCE ( - COUNT( * ), + + 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-3935
SELECT + COALESCE ( - COUNT ( * ), + + 55 )
----
-1

query I rowsort
SELECT ALL - 71 * + - 54 AS col1
----
3834

query I rowsort
SELECT DISTINCT - - ( COALESCE ( + - 53, - 77 ) ) + 66 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3938
SELECT DISTINCT + COUNT( * ), 89 * 63 AS col2
----
1
5607

skipif mysql # not compatible
query II rowsort label-3938
SELECT DISTINCT + COUNT ( * ), 89 * 63 AS col2
----
1
5607

query I rowsort
SELECT - NULLIF ( - 46, + 2 + + CASE + - 56 WHEN + 97 THEN 67 * 76 + 31 + - + 32 ELSE - 34 END ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3940
SELECT + 45 * + - 78 + + - 84 AS col2, - ( - 17 ) + + + 94 - - 24 * - 83 * - COUNT( * ) * + - COUNT( * )
----
-3594
-1881

skipif mysql # not compatible
query II rowsort label-3940
SELECT + 45 * + - 78 + + - 84 AS col2, - ( - 17 ) + + + 94 - - 24 * - 83 * - COUNT ( * ) * + - COUNT ( * )
----
-3594
-1881

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT + SUM( 94 ) * - 0 * + - 66 * + 91 + - COUNT( * ) * + + 26
----
-26

skipif mysql # not compatible
query I rowsort label-3941
SELECT + SUM ( 94 ) * - 0 * + - 66 * + 91 + - COUNT ( * ) * + + 26
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-3942
SELECT + + 6 * + 62 DIV + 20, 26 AS col1
----
18
26

skipif mysql # not compatible
query II rowsort label-3942
SELECT + + 6 * + 62 / + 20, 26 AS col1
----
18
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL NULLIF ( - - 38, COUNT( DISTINCT + 83 ) + + 49 ) * + - 47 * - + 99
----
176814

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL NULLIF ( - - 38, COUNT ( DISTINCT + 83 ) + + 49 ) * + - 47 * - + 99
----
176814

onlyif mysql # aggregate syntax: 
query III rowsort label-3944
SELECT DISTINCT + NULLIF ( + 12, 79 ) AS col1, - 50 * - + 98 + 73, + + COUNT( * ) + - 98 AS col1
----
12
4973
-97

skipif mysql # not compatible
query III rowsort label-3944
SELECT DISTINCT + NULLIF ( + 12, 79 ) AS col1, - 50 * - + 98 + 73, + + COUNT ( * ) + - 98 AS col1
----
12
4973
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-3945
SELECT ALL - 77 * - 0 * + - 68 - - 98 AS col0, 52 DIV - + 73 * - 98 AS col2
----
98
0

skipif mysql # not compatible
query II rowsort label-3945
SELECT ALL - 77 * - 0 * + - 68 - - 98 AS col0, 52 / - + 73 * - 98 AS col2
----
98
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3946
SELECT + 44 * + 51 + - 67 + + 69 + + 67 DIV + 86 + 50 * - 2 + COUNT( * ) DIV + 50
----
2146

skipif mysql # not compatible
query I rowsort label-3946
SELECT + 44 * + 51 + - 67 + + 69 + + 67 / + 86 + 50 * - 2 + COUNT ( * ) / + 50
----
2146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT + CAST( - 33 AS SIGNED ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3947
SELECT + CAST ( - 33 AS INTEGER ) AS col0
----
-33

query I rowsort
SELECT + 90 * + ( + NULLIF ( - + 63, + 17 - 46 / - - ( - 57 ) ) )
----
-5670

query I rowsort
SELECT ALL 95 * - + 86 * 56
----
-457520

query I rowsort
SELECT + 1 + - - 47 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL + COUNT( DISTINCT 81 )
----
1

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL + COUNT ( DISTINCT 81 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT ALL SUM( DISTINCT - - 92 ) * - 96 * + 57 * 44 - ( + 28 ) + 43 AS col2
----
-22150641

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL SUM ( DISTINCT - - 92 ) * - 96 * + 57 * 44 - ( + 28 ) + 43 AS col2
----
-22150641

query I rowsort
SELECT - ( COALESCE ( - 44, + 53, 68 ) ) * - 32 + - 74 + + + 59 * 22 + + 24 AS col0
----
-160

query II rowsort
SELECT + 47 + + 63 AS col2, 79
----
110
79

query I rowsort
SELECT ALL - 31 * + 88 + - - 6 col1
----
-2722

query I rowsort
SELECT ALL + 97 * 91 AS col0
----
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT SUM( ALL 53 )
----
53

skipif mysql # not compatible
query I rowsort label-3957
SELECT SUM ( ALL 53 )
----
53

query I rowsort
SELECT 34 * - 66 + - 0
----
-2244

query I rowsort
SELECT ALL 82 + 37 + - 48
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT COALESCE ( + CASE WHEN 10 IS NULL THEN + 85 END, NULLIF ( + COUNT( * ), - + ( 91 ) * - COUNT( * ) ) * + NULLIF ( - CASE WHEN - AVG ( ALL 38 ) > NULL THEN NULL ELSE 69 + 29 * - 44 - + - 30 * + - 86 END, - - 2 ) ) + - 7 * - MIN( 82 ) - + 14
----
4347

skipif mysql # not compatible
query I rowsort label-3960
SELECT COALESCE ( + CASE WHEN 10 IS NULL THEN + 85 END, NULLIF ( + COUNT ( * ), - + ( 91 ) * - COUNT ( * ) ) * + NULLIF ( - CASE WHEN - AVG ( ALL 38 ) > NULL THEN NULL ELSE 69 + 29 * - 44 - + - 30 * + - 86 END, - - 2 ) ) + - 7 * - MIN ( 82 ) - + 14
----
4347

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT 74 - + - COALESCE ( + COUNT( * ), + 81 )
----
75

skipif mysql # not compatible
query I rowsort label-3961
SELECT 74 - + - COALESCE ( + COUNT ( * ), + 81 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT ALL CAST( NULL AS SIGNED ) + - ( - 90 ) + CASE 36 WHEN + MAX( + 37 ) + - 88 + + + 9 THEN NULL WHEN + + 74 THEN - NULLIF ( + 77, + 89 + + 42 - 56 * 30 * CASE + 57 WHEN - - 6 * + ( COUNT( * ) ) + 32 THEN MIN( ALL 26 ) ELSE + 98 * + 8 + ( NULLIF ( 47, - CAST( NULL AS SIGNED ) / - CASE ( - ( NULLIF ( - 45, - 2 + 63 * ( NULLIF ( 58, + 3 ) ) ) ) ) WHEN + 40 THEN NULL WHEN SUM( DISTINCT 26 ) / - 36 + + CAST( NULL AS SIGNED ) THEN - COUNT( 43 ) END + 61 ) ) END + 80 / - 45 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL CAST ( NULL AS INTEGER ) + - ( - 90 ) + CASE 36 WHEN + MAX ( + 37 ) + - 88 + + + 9 THEN NULL WHEN + + 74 THEN - NULLIF ( + 77, + 89 + + 42 - 56 * 30 * CASE + 57 WHEN - - 6 * + ( COUNT ( * ) ) + 32 THEN MIN ( ALL 26 ) ELSE + 98 * + 8 + ( NULLIF ( 47, - CAST ( NULL AS INTEGER ) / - CASE ( - ( NULLIF ( - 45, - 2 + 63 * ( NULLIF ( 58, + 3 ) ) ) ) ) WHEN + 40 THEN NULL WHEN SUM ( DISTINCT 26 ) / - 36 + + CAST ( NULL AS INTEGER ) THEN - COUNT ( 43 ) END + 61 ) ) END + 80 / - 45 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT CAST( 30 AS SIGNED ) * - ( 99 ) * - + CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
2970

skipif mysql # not compatible
query I rowsort label-3963
SELECT CAST ( 30 AS INTEGER ) * - ( 99 ) * - + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
2970

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT ALL - 42 + + - 59 + - 21 DIV + 14 AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL - 42 + + - 59 + - 21 / + 14 AS col0
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3965
SELECT DISTINCT + + COUNT( * ) DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT + + COUNT ( * ) / - 99
----
0

query I rowsort
SELECT ALL COALESCE ( - NULLIF ( 78, + 29 ), + 19 ) + 89 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3967
SELECT - 40 * - 39 + - 1 - - 43 + - + 65 * MAX( - 24 ) AS col2, + 95 + 65 * + 45 AS col1
----
3162
3020

skipif mysql # not compatible
query II rowsort label-3967
SELECT - 40 * - 39 + - 1 - - 43 + - + 65 * MAX ( - 24 ) AS col2, + 95 + 65 * + 45 AS col1
----
3162
3020

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT - 84 * + + ( + COUNT( + + 67 ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3968
SELECT - 84 * + + ( + COUNT ( + + 67 ) ) AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT DISTINCT + 48 - + CAST( NULL AS SIGNED ) - + - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT + 48 - + CAST ( NULL AS INTEGER ) - + - 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT COUNT( * ) + - 86 col2
----
-85

skipif mysql # not compatible
query I rowsort label-3970
SELECT COUNT ( * ) + - 86 col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT COUNT( + - 43 ) + - + 27
----
-26

skipif mysql # not compatible
query I rowsort label-3971
SELECT COUNT ( + - 43 ) + - + 27
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL + - 1 * + 49 * + 90 + + COUNT( * )
----
-4409

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + - 1 * + 49 * + 90 + + COUNT ( * )
----
-4409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3973
SELECT CAST( + + COUNT( * ) AS SIGNED ) * + 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3973
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * + 9 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT 4 + + - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3974
SELECT 4 + + - COUNT ( * ) AS col2
----
3

query II rowsort
SELECT ALL + - 9 * - - 68 + + + 39 * + 80 AS col2, 24
----
2508
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT - + COUNT( * ) DIV ( 96 ) + + - 61 + - - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-3976
SELECT - + COUNT ( * ) / ( 96 ) + + - 61 + - - COUNT ( * )
----
-60

query I rowsort
SELECT ALL - - ( + 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT 73 + + + 57 * - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-3978
SELECT 73 + + + 57 * - COUNT ( * )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT + 83 * - ( - - COUNT( - 87 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-3979
SELECT + 83 * - ( - - COUNT ( - 87 ) )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT MAX( ALL 50 ) * 89
----
4450

skipif mysql # not compatible
query I rowsort label-3980
SELECT MAX ( ALL 50 ) * 89
----
4450

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT + 92 + - + 55 DIV - + 37 col2
----
93

skipif mysql # not compatible
query I rowsort label-3981
SELECT + 92 + - + 55 / - + 37 col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3982
SELECT COUNT( * ) * - CAST( + 67 AS SIGNED ) + + 12
----
-55

skipif mysql # not compatible
query I rowsort label-3982
SELECT COUNT ( * ) * - CAST ( + 67 AS INTEGER ) + + 12
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT ALL CAST( NULL AS SIGNED ) / - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL CAST ( NULL AS INTEGER ) / - 11 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3984
SELECT COUNT( * ) / + + 11 * - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT COUNT ( * ) / + + 11 * - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL + COUNT( * ) + + 20 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL + COUNT ( * ) + + 20 AS col1
----
21

query I rowsort
SELECT DISTINCT 83 * + - 1
----
-83

query I rowsort
SELECT ALL 42 + + ( 48 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT DISTINCT 1 + 42 + + - SUM( - - CAST( NULL AS SIGNED ) ) / - + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT 1 + 42 + + - SUM ( - - CAST ( NULL AS INTEGER ) ) / - + 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3989
SELECT ALL - 11 * - 69 * + 30 DIV + COUNT( * )
----
22770

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - 11 * - 69 * + 30 / + COUNT ( * )
----
22770

query I rowsort
SELECT DISTINCT - CASE - AVG ( DISTINCT 24 ) WHEN + 88 THEN - 27 WHEN - 48 THEN 74 + - 35 + - - 88 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3991
SELECT ALL ( + 22 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL ( + 22 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 82 + - 81 * - 29 AS col1, - 58
----
2431
-58

query I rowsort
SELECT DISTINCT 41 + 93 + - 62 AS col1
----
72

query I rowsort
SELECT ALL 76 + - 78 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT ALL COUNT( * ) + + 83
----
84

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL COUNT ( * ) + + 83
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3996
SELECT ( CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) ) * + ( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT ( CAST ( CAST ( NULL AS REAL ) AS REAL ) ) * + ( 9 )
----
NULL

query I rowsort
SELECT 70 + + 78 AS col1
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3998
SELECT DISTINCT - COUNT( * ) - - + 21 + 68 + + + 53 * + 0 DIV - - COUNT( * ) * + + 14 + - 80 - + 50 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT - COUNT ( * ) - - + 21 + 68 + + + 53 * + 0 / - - COUNT ( * ) * + + 14 + - 80 - + 50 AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3999
SELECT - CASE - + 52 WHEN CASE 68 WHEN - 26 THEN 25 - - 91 ELSE NULL END + - 12 * - 33 - 39 * - COUNT( * ) THEN NULL ELSE + - NULLIF ( COALESCE ( + 76, + + MAX( - 22 ), - 23 * - + 52 + - 65 ), - + COUNT( * ) ) * - - 84 * - 66 + + + SUM( DISTINCT + - 17 ) DIV 53 END AS col1
----
-421344

skipif mysql # not compatible
query I rowsort label-3999
SELECT - CASE - + 52 WHEN CASE 68 WHEN - 26 THEN 25 - - 91 ELSE NULL END + - 12 * - 33 - 39 * - COUNT ( * ) THEN NULL ELSE + - NULLIF ( COALESCE ( + 76, + + MAX ( - 22 ), - 23 * - + 52 + - 65 ), - + COUNT ( * ) ) * - - 84 * - 66 + + + SUM ( DISTINCT + - 17 ) / 53 END AS col1
----
-421344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT ALL + CAST( NULL AS SIGNED ) * + CASE 14 WHEN - COUNT( * ) THEN + 27 WHEN + + 2 THEN NULL END + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + CAST ( NULL AS INTEGER ) * + CASE 14 WHEN - COUNT ( * ) THEN + 27 WHEN + + 2 THEN NULL END + - 39
----
NULL

query I rowsort
SELECT 19 + + 10 AS col2
----
29

query II rowsort
SELECT - 40 col0, - 58
----
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT SUM( 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4003
SELECT SUM ( 4 ) AS col1
----
4

query I rowsort
SELECT 42 * + 58 * - + ( + 66 )
----
-160776

query I rowsort
SELECT DISTINCT + 17 - 33 AS col2
----
-16

query I rowsort
SELECT DISTINCT - CASE 69 WHEN - + 59 THEN 82 END / - NULLIF ( + 43, + 63 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT - 31 - + 47 DIV 20 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-4007
SELECT - 31 - + 47 / 20 AS col0
----
-33

query I rowsort
SELECT DISTINCT - - ( - 18 ) col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4009
SELECT DISTINCT - + COALESCE ( + - COALESCE ( 90, - + COUNT( * ) + + + 44, + 40 + + CAST( - - 4 AS SIGNED ) * + COUNT( + + 83 ) ), + COUNT( * ) ) DIV + + 83 - - CAST( - 21 AS SIGNED ) - + 67 + - 23 - - 16
----
-94

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT - + COALESCE ( + - COALESCE ( 90, - + COUNT ( * ) + + + 44, + 40 + + CAST ( - - 4 AS INTEGER ) * + COUNT ( + + 83 ) ), + COUNT ( * ) ) / + + 83 - - CAST ( - 21 AS INTEGER ) - + 67 + - 23 - - 16
----
-94

query II rowsort
SELECT 68 * - 57 * - 90 AS col1, - 96 AS col0
----
348840
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT DISTINCT - MAX( 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT - MAX ( 32 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT + CASE - + 98 WHEN + - 26 + + ( - + COUNT( * ) ) * + 59 THEN + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT + CASE - + 98 WHEN + - 26 + + ( - + COUNT ( * ) ) * + 59 THEN + 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT SUM( DISTINCT + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-4013
SELECT SUM ( DISTINCT + 15 )
----
15

query I rowsort
SELECT DISTINCT + 75 * - + 16 + - - 30 * - 85
----
-3750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT CASE + 33 WHEN + + CAST( NULL AS SIGNED ) * - 54 + - 45 THEN - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT CASE + 33 WHEN + + CAST ( NULL AS INTEGER ) * - 54 + - 45 THEN - 92 END
----
NULL

query I rowsort
SELECT - 90 * - 57 * - 7 + 10
----
-35900

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT DISTINCT - 3 * - 54 + + COUNT( * )
----
163

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT - 3 * - 54 + + COUNT ( * )
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL + COUNT( * ) * - 45 + COUNT( * ) + + 88 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + COUNT ( * ) * - 45 + COUNT ( * ) + + 88 AS col2
----
44

query I rowsort
SELECT ALL 47 * + - ( - + 61 ) + - 42 + 39
----
2864

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT + 26 * - - 33 + + + COUNT( * )
----
859

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT + 26 * - - 33 + + + COUNT ( * )
----
859

query II rowsort
SELECT ALL 91 * - - 77 + + 63 * - 13 AS col1, 79 * + 15 AS col2
----
6188
1185

query I rowsort
SELECT - 88 + - + 26 AS col2
----
-114

query I rowsort
SELECT ALL + NULLIF ( - 84, + + 17 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT COUNT( * ) AS col2, - 37
----
1
-37

skipif mysql # not compatible
query II rowsort label-4024
SELECT COUNT ( * ) AS col2, - 37
----
1
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT COUNT( * ) * 60 + - 70
----
-10

skipif mysql # not compatible
query I rowsort label-4025
SELECT COUNT ( * ) * 60 + - 70
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-4026
SELECT - 82 * COUNT( * ) AS col2, 48
----
-82
48

skipif mysql # not compatible
query II rowsort label-4026
SELECT - 82 * COUNT ( * ) AS col2, 48
----
-82
48

query I rowsort
SELECT ALL 52 - - ( 30 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4028
SELECT + COUNT( DISTINCT - - 88 ) * - 96 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT + COUNT ( DISTINCT - - 88 ) * - 96 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 28 * 47
----
1316

query I rowsort
SELECT ALL 46 * + 4
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT - COALESCE ( 69, + ( + 58 ) ) * 73 - + 95 DIV - 32 + + - 24 AS col1
----
-5059

skipif mysql # not compatible
query I rowsort label-4031
SELECT - COALESCE ( 69, + ( + 58 ) ) * 73 - + 95 / - 32 + + - 24 AS col1
----
-5059

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL - - COUNT( * ) * - - 26 + 55 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL - - COUNT ( * ) * - - 26 + 55 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT - + NULLIF ( - 90, + 54 ) / + CASE - COUNT( * ) WHEN - SUM( ALL + 60 ) THEN 61 * - 24 + + 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT - + NULLIF ( - 90, + 54 ) / + CASE - COUNT ( * ) WHEN - SUM ( ALL + 60 ) THEN 61 * - 24 + + 73 END
----
NULL

query I rowsort
SELECT + 49 + 91 AS col1
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4035
SELECT - + COALESCE ( + 21, + - CASE + - CAST( NULL AS SIGNED ) WHEN + + 10 * + ( + 23 ) * 9 * COUNT( * ) + 4 + - - 59 THEN NULL WHEN - 38 THEN 13 ELSE NULL END + - + COUNT( * ) )
----
-21

skipif mysql # not compatible
query I rowsort label-4035
SELECT - + COALESCE ( + 21, + - CASE + - CAST ( NULL AS INTEGER ) WHEN + + 10 * + ( + 23 ) * 9 * COUNT ( * ) + 4 + - - 59 THEN NULL WHEN - 38 THEN 13 ELSE NULL END + - + COUNT ( * ) )
----
-21

query II rowsort
SELECT ALL - 98, 98 AS col1
----
-98
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4037
SELECT ALL + COUNT( * ) AS col1, + 66 + 1 * COALESCE ( - 29, + + 57 * 34 * - 19 - - CAST( - 59 AS SIGNED ) DIV + 6 )
----
1
37

skipif mysql # not compatible
query II rowsort label-4037
SELECT ALL + COUNT ( * ) AS col1, + 66 + 1 * COALESCE ( - 29, + + 57 * 34 * - 19 - - CAST ( - 59 AS INTEGER ) / + 6 )
----
1
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT - - CAST( 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-4038
SELECT - - CAST ( 36 AS INTEGER )
----
36

query I rowsort
SELECT + + 18 + - 72 AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4040
SELECT + ( + 85 ) * - + CASE + 9 WHEN + + 28 + + COUNT( * ) / + + 37 * - 25 - - NULLIF ( + + 76, + COALESCE ( - CAST( NULL AS SIGNED ), - 38 * + - 44 * + 68, + COUNT( * ) ) - - 8 - - COUNT( * ) - 25 * + 16 * + 41 / + 75 * + 20 + + + 38 ) THEN - 98 END * + ( - COUNT( * ) ) + - 31 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT + ( + 85 ) * - + CASE + 9 WHEN + + 28 + + COUNT ( * ) / + + 37 * - 25 - - NULLIF ( + + 76, + COALESCE ( - CAST ( NULL AS INTEGER ), - 38 * + - 44 * + 68, + COUNT ( * ) ) - - 8 - - COUNT ( * ) - 25 * + 16 * + 41 / + 75 * + 20 + + + 38 ) THEN - 98 END * + ( - COUNT ( * ) ) + - 31 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 77 + + 1 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT + COALESCE ( + 64, - 47 + + COUNT( * ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4042
SELECT + COALESCE ( + 64, - 47 + + COUNT ( * ) ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT + 91 + COUNT( * ) col1
----
92

skipif mysql # not compatible
query I rowsort label-4043
SELECT + 91 + COUNT ( * ) col1
----
92

query I rowsort
SELECT - - 61 * 51 * 81 * + COALESCE ( - - 52, 91 * 43 )
----
13103532

onlyif mysql # DIV for integer division: 
query I rowsort label-4045
SELECT ALL + + 17 DIV - 79 + 55 col2
----
55

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL + + 17 / - 79 + 55 col2
----
55

query I rowsort
SELECT - 20 * - 4 + 17 - - 24 * + + 82 AS col1
----
2065

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4047
SELECT + ( - 70 ) AS col1, + 40 + + CAST( + NULLIF ( + 5, + - 50 ) AS SIGNED )
----
-70
45

skipif mysql # not compatible
query II rowsort label-4047
SELECT + ( - 70 ) AS col1, + 40 + + CAST ( + NULLIF ( + 5, + - 50 ) AS INTEGER )
----
-70
45

query II rowsort
SELECT ALL 37 * 29 AS col0, 96
----
1073
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT 38 * - 7 + + - COUNT( * ) + - 38
----
-305

skipif mysql # not compatible
query I rowsort label-4049
SELECT 38 * - 7 + + - COUNT ( * ) + - 38
----
-305

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT DISTINCT - 65 / - CASE + + 29 WHEN - - 42 THEN MIN( + 37 ) + - SUM( ALL - + 6 ) + + 66 * - - 54 WHEN - - 40 * - 45 THEN + + 29 * 67 END / + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT - 65 / - CASE + + 29 WHEN - - 42 THEN MIN ( + 37 ) + - SUM ( ALL - + 6 ) + + 66 * - - 54 WHEN - - 40 * - 45 THEN + + 29 * 67 END / + 38 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4051
SELECT ALL + NULLIF ( - 59, - CASE 69 WHEN - AVG ( + 76 ) - + - CASE - + COALESCE ( + + 0, - CAST( - ( - 58 ) AS SIGNED ), - COUNT( * ) ) WHEN - - 24 + + 61 THEN 84 WHEN + 31 THEN - 58 END THEN + 67 * + - 27 * + + COUNT( * ) / + - 89 * COALESCE ( - + 54, - 45 + - MAX( + 8 ), - COUNT( * ) / CAST( NULL AS SIGNED ) ) WHEN 13 THEN NULL ELSE + 28 - AVG ( 18 ) END * 45 )
----
-59

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL + NULLIF ( - 59, - CASE 69 WHEN - AVG ( + 76 ) - + - CASE - + COALESCE ( + + 0, - CAST ( - ( - 58 ) AS INTEGER ), - COUNT ( * ) ) WHEN - - 24 + + 61 THEN 84 WHEN + 31 THEN - 58 END THEN + 67 * + - 27 * + + COUNT ( * ) / + - 89 * COALESCE ( - + 54, - 45 + - MAX ( + 8 ), - COUNT ( * ) / CAST ( NULL AS INTEGER ) ) WHEN 13 THEN NULL ELSE + 28 - AVG ( 18 ) END * 45 )
----
-59

query I rowsort
SELECT + NULLIF ( + 88, - 37 + - 52 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT ( - - CAST( - 98 AS SIGNED ) )
----
-98

skipif mysql # not compatible
query I rowsort label-4053
SELECT ( - - CAST ( - 98 AS INTEGER ) )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4054
SELECT + 12 DIV MAX( 31 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4054
SELECT + 12 / MAX ( 31 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT - COUNT( * ) + - + CASE + - 8 WHEN + + 38 THEN + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT - COUNT ( * ) + - + CASE + - 8 WHEN + + 38 THEN + COUNT ( * ) END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4056
SELECT DISTINCT 24 DIV - COUNT( ALL + ( + 41 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT 24 / - COUNT ( ALL + ( + 41 ) )
----
-24

query I rowsort
SELECT ( - 97 ) * + + 42 + 14 AS col1
----
-4060

query I rowsort
SELECT CASE 64 WHEN - - 23 * 44 * - - 0 + - + 47 + + - ( 74 ) / + - 78 - - 21 * - AVG ( ALL - 52 ) * - 78 - - + 67 THEN + 37 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT + COALESCE ( - + COUNT( * ), - 10 ) * SUM( + 62 ) * - 65 + - 13 AS col1
----
4017

skipif mysql # not compatible
query I rowsort label-4059
SELECT + COALESCE ( - + COUNT ( * ), - 10 ) * SUM ( + 62 ) * - 65 + - 13 AS col1
----
4017

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT - 58 * + COALESCE ( + 79, COUNT( * ) + + - 65 ) AS col0
----
-4582

skipif mysql # not compatible
query I rowsort label-4060
SELECT - 58 * + COALESCE ( + 79, COUNT ( * ) + + - 65 ) AS col0
----
-4582

query I rowsort
SELECT ALL + ( - - 23 )
----
23

query I rowsort
SELECT + 22 - - 43 AS col0
----
65

query I rowsort
SELECT - 28 * - 43 * - 89
----
-107156

query I rowsort
SELECT ALL ( 59 ) col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT + SUM( DISTINCT + 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4065
SELECT + SUM ( DISTINCT + 18 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL NULLIF ( - 56, 72 + + ( - ( - 95 ) ) + - + 97 * - 19 + - - ( + 29 ) * + 48 * - COUNT( * ) + 77 + 0 ) * - 57 * - - MAX( 45 ) - - - ( - - 92 ) AS col1
----
143548

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL NULLIF ( - 56, 72 + + ( - ( - 95 ) ) + - + 97 * - 19 + - - ( + 29 ) * + 48 * - COUNT ( * ) + 77 + 0 ) * - 57 * - - MAX ( 45 ) - - - ( - - 92 ) AS col1
----
143548

query I rowsort
SELECT - - 72 * - 82
----
-5904

query I rowsort
SELECT - - ( - 71 ) * 88 * 59 * 79 AS col0
----
-29121928

query I rowsort
SELECT + 49 - + 31 AS col1
----
18

query I rowsort
SELECT DISTINCT 24 + - 44 AS col2
----
-20

query I rowsort
SELECT ALL ( + ( - 47 ) ) col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + 40 - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + 40 - + 1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4073
SELECT ALL 19 * - 26 * 58 AS col2, + 13 + - - SUM( - 52 ) + 10 * 86 * 99 + - 36 AS col0
----
-28652
85065

skipif mysql # not compatible
query II rowsort label-4073
SELECT ALL 19 * - 26 * 58 AS col2, + 13 + - - SUM ( - 52 ) + 10 * 86 * 99 + - 36 AS col0
----
-28652
85065

onlyif mysql # DIV for integer division: 
query I rowsort label-4074
SELECT 70 DIV 28 * + 8 * + - 81 - - 66
----
-1230

skipif mysql # not compatible
query I rowsort label-4074
SELECT 70 / 28 * + 8 * + - 81 - - 66
----
-1230

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT COUNT( * ) - - 28 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4075
SELECT COUNT ( * ) - - 28 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT 33 * + - 31 * - - 45 * + + SUM( + 29 ) AS col0
----
-1335015

skipif mysql # not compatible
query I rowsort label-4076
SELECT 33 * + - 31 * - - 45 * + + SUM ( + 29 ) AS col0
----
-1335015

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT SUM( 73 ) * + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-4077
SELECT SUM ( 73 ) * + COUNT ( * ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL 83 * - COUNT( * ) * + + COUNT( * ) * 68 AS col1
----
-5644

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL 83 * - COUNT ( * ) * + + COUNT ( * ) * 68 AS col1
----
-5644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4079
SELECT COUNT( 28 ) DIV - - 49 - - - ( - 77 ) + ( - - 25 ) * + 91 * + + 89 AS col2
----
202552

skipif mysql # not compatible
query I rowsort label-4079
SELECT COUNT ( 28 ) / - - 49 - - - ( - 77 ) + ( - - 25 ) * + 91 * + + 89 AS col2
----
202552

query II rowsort
SELECT + 99 AS col1, 90 AS col0
----
99
90

query II rowsort
SELECT + 1, 98 AS col2
----
1
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT ALL 77 - + MIN( ALL - 1 ) AS col0, 79 * - COALESCE ( + 55, + 84 ) AS col2
----
78
-4345

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL 77 - + MIN ( ALL - 1 ) AS col0, 79 * - COALESCE ( + 55, + 84 ) AS col2
----
78
-4345

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT ALL - 29 AS col2, 75 - + COUNT( ALL + + 23 ) * - + 27 col2
----
-29
102

skipif mysql # not compatible
query II rowsort label-4083
SELECT ALL - 29 AS col2, 75 - + COUNT ( ALL + + 23 ) * - + 27 col2
----
-29
102

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT + 7 DIV 74 - + - NULLIF ( + + 84, + - 72 ) * 29 * 91 * - ( + NULLIF ( - - 68, + + 90 ) ) AS col1
----
-15073968

skipif mysql # not compatible
query I rowsort label-4084
SELECT + 7 / 74 - + - NULLIF ( + + 84, + - 72 ) * 29 * 91 * - ( + NULLIF ( - - 68, + + 90 ) ) AS col1
----
-15073968

query II rowsort
SELECT DISTINCT - 35 AS col0, 66
----
-35
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT 8 * + 20 - + ( + 25 ) DIV ( + + 85 )
----
160

skipif mysql # not compatible
query I rowsort label-4086
SELECT 8 * + 20 - + ( + 25 ) / ( + + 85 )
----
160

query II rowsort
SELECT ALL - 35, + 50 + + + 66 + - 77 * - 70 + 48 AS col2
----
-35
5554

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4088
SELECT 81 col2, + COALESCE ( 19, + COUNT( * ) DIV - - 51 )
----
81
19

skipif mysql # not compatible
query II rowsort label-4088
SELECT 81 col2, + COALESCE ( 19, + COUNT ( * ) / - - 51 )
----
81
19

query I rowsort
SELECT ALL - - 42 * - - 70
----
2940

query I rowsort
SELECT + + 99 * - 34 + + 57
----
-3309

query I rowsort
SELECT ALL + 87 * - + 93
----
-8091

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT DISTINCT - COUNT( * ) + + NULLIF ( 15, - 24 ) + - - 52
----
66

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT - COUNT ( * ) + + NULLIF ( 15, - 24 ) + - - 52
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4093
SELECT 86 + + + ( 82 ), + 20 + - 95 * - COUNT( * ) AS col2
----
168
115

skipif mysql # not compatible
query II rowsort label-4093
SELECT 86 + + + ( 82 ), + 20 + - 95 * - COUNT ( * ) AS col2
----
168
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT DISTINCT + - 0 * + - COALESCE ( 74, - 73 + + COUNT( - + 75 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT + - 0 * + - COALESCE ( 74, - 73 + + COUNT ( - + 75 ) ) AS col0
----
0

query I rowsort
SELECT - 50 * + 98 + 93
----
-4807

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT ALL - COUNT( * ) AS col1, + 80
----
-1
80

skipif mysql # not compatible
query II rowsort label-4096
SELECT ALL - COUNT ( * ) AS col1, + 80
----
-1
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4097
SELECT + COUNT( + 95 ) DIV + 15 * - 53 col0
----
0

skipif mysql # not compatible
query I rowsort label-4097
SELECT + COUNT ( + 95 ) / + 15 * - 53 col0
----
0

query II rowsort
SELECT 55 AS col1, + ( - 46 )
----
55
-46

query I rowsort
SELECT + 34 + - - 30
----
64

query I rowsort
SELECT DISTINCT - 13 + + 55 + 94
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4101
SELECT ALL - 80 + + 6 + - 52, 36 - NULLIF ( + 21, + 85 * + 15 + + 33 * 85 + SUM( ALL + CAST( + 28 AS SIGNED ) ) ) DIV 54 AS col0
----
-126
36

skipif mysql # not compatible
query II rowsort label-4101
SELECT ALL - 80 + + 6 + - 52, 36 - NULLIF ( + 21, + 85 * + 15 + + 33 * 85 + SUM ( ALL + CAST ( + 28 AS INTEGER ) ) ) / 54 AS col0
----
-126
36

query II rowsort
SELECT ALL 38 AS col1, + 82 col0
----
38
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - 9 + + 27 + + + MAX( ALL + 30 )
----
48

skipif mysql # not compatible
query I rowsort label-4103
SELECT - 9 + + 27 + + + MAX ( ALL + 30 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4105
SELECT ALL - 20 + + - CASE + ( + + 17 ) WHEN - NULLIF ( - - COUNT( * ), + 11 + - 83 ) + 60 + 30 * - CAST( NULL AS SIGNED ) + - 62 * + AVG ( 97 ) - - 2 + + 60 THEN NULL WHEN - 54 THEN 68 * - - 30 * + 21 WHEN - + 8 THEN - 31 ELSE + NULLIF ( COUNT( * ), - + 14 ) * - 11 * COUNT( * ) + - - 91 * 29 END - ( - 64 ) * 48 DIV + 97
----
-2617

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - 20 + + - CASE + ( + + 17 ) WHEN - NULLIF ( - - COUNT ( * ), + 11 + - 83 ) + 60 + 30 * - CAST ( NULL AS INTEGER ) + - 62 * + AVG ( 97 ) - - 2 + + 60 THEN NULL WHEN - 54 THEN 68 * - - 30 * + 21 WHEN - + 8 THEN - 31 ELSE + NULLIF ( COUNT ( * ), - + 14 ) * - 11 * COUNT ( * ) + - - 91 * 29 END - ( - 64 ) * 48 / + 97
----
-2617

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4106
SELECT - + 68 AS col1, CAST( NULL AS SIGNED )
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-4106
SELECT - + 68 AS col1, CAST ( NULL AS INTEGER )
----
-68
NULL

query I rowsort
SELECT 33 - - ( - 66 ) AS col0
----
-33

query I rowsort
SELECT ALL + 48 * - 73
----
-3504

query I rowsort
SELECT 39 + - - 37 + + 72 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT 78 * - - MAX( DISTINCT - 42 ) AS col0
----
-3276

skipif mysql # not compatible
query I rowsort label-4110
SELECT 78 * - - MAX ( DISTINCT - 42 ) AS col0
----
-3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - COUNT( + - 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - COUNT ( + - 53 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT 68 * 3 * + - ( - + CAST( + 88 AS SIGNED ) ) * 64 * - 1 + + 41 AS col1
----
-1148887

skipif mysql # not compatible
query I rowsort label-4112
SELECT 68 * 3 * + - ( - + CAST ( + 88 AS INTEGER ) ) * 64 * - 1 + + 41 AS col1
----
-1148887

query II rowsort
SELECT ALL - NULLIF ( + + 85, ( 64 ) ) AS col2, 32 col0
----
-85
32

query I rowsort
SELECT DISTINCT - ( CASE + 65 WHEN + 83 + + 1 / 41 THEN + - 22 WHEN - 10 THEN NULL ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT 58 * - 90 * - - 60 * + ( - MIN( - 35 ) ) AS col0
----
-10962000

skipif mysql # not compatible
query I rowsort label-4115
SELECT 58 * - 90 * - - 60 * + ( - MIN ( - 35 ) ) AS col0
----
-10962000

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT MIN( DISTINCT 36 ) * + - MAX( ALL 24 ) AS col1
----
-864

skipif mysql # not compatible
query I rowsort label-4116
SELECT MIN ( DISTINCT 36 ) * + - MAX ( ALL 24 ) AS col1
----
-864

query I rowsort
SELECT - 68 * + 98 * + - 37
----
246568

query I rowsort
SELECT ALL + 0 + - 31 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-4119
SELECT + MAX( DISTINCT - 40 ) AS col2, 10
----
-40
10

skipif mysql # not compatible
query II rowsort label-4119
SELECT + MAX ( DISTINCT - 40 ) AS col2, 10
----
-40
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4120
SELECT 42 - + COUNT( * ) col0, 0 + 92 AS col1
----
41
92

skipif mysql # not compatible
query II rowsort label-4120
SELECT 42 - + COUNT ( * ) col0, 0 + 92 AS col1
----
41
92

query I rowsort
SELECT ALL - ( ( + 69 ) )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT + CAST( NULL AS SIGNED ) - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT + CAST ( NULL AS INTEGER ) - 1
----
NULL

query I rowsort
SELECT + 48 * - - 84
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL COUNT( * ) + SUM( ALL - + 93 )
----
-92

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL COUNT ( * ) + SUM ( ALL - + 93 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4125
SELECT - AVG ( + 13 ) - CAST( NULL AS SIGNED ) * + - NULLIF ( + 8, + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4125
SELECT - AVG ( + 13 ) - CAST ( NULL AS INTEGER ) * + - NULLIF ( + 8, + 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL + - 22 * + 45 + - - COUNT( * )
----
-989

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL + - 22 * + 45 + - - COUNT ( * )
----
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT - 82 + + COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT - 82 + + COUNT ( * ) AS col1
----
-81

query II rowsort
SELECT ALL - 32 * 35 * ( 59 ) + + ( - 10 ) + 5, - 70 * + 8 + 36 col2
----
-66085
-524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4129
SELECT + - CASE 8 WHEN + + 75 THEN NULL WHEN ( + NULLIF ( - CASE - + MIN( ALL 28 ) WHEN - - 10 THEN - + 60 ELSE - - 87 END, - 78 ) ) THEN NULL ELSE + - 61 END + 36 + 91 + + 62 - 76 + + + CAST( NULL AS SIGNED ) + NULLIF ( - 86, 41 ) * - 79 * + NULLIF ( - - 22, 68 ) * + 90 * CAST( + - 2 AS SIGNED ) * + 55 + - 34 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT + - CASE 8 WHEN + + 75 THEN NULL WHEN ( + NULLIF ( - CASE - + MIN ( ALL 28 ) WHEN - - 10 THEN - + 60 ELSE - - 87 END, - 78 ) ) THEN NULL ELSE + - 61 END + 36 + 91 + + 62 - 76 + + + CAST ( NULL AS INTEGER ) + NULLIF ( - 86, 41 ) * - 79 * + NULLIF ( - - 22, 68 ) * + 90 * CAST ( + - 2 AS INTEGER ) * + 55 + - 34 * 49
----
NULL

query I rowsort
SELECT + CASE - 1 WHEN - - 37 THEN NULL WHEN + - 99 THEN + COALESCE ( + - 62, 61 ) * - 84 / + 77 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4131
SELECT - NULLIF ( + - CAST( + - 40 AS SIGNED ), 15 * COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-4131
SELECT - NULLIF ( + - CAST ( + - 40 AS INTEGER ), 15 * COUNT ( * ) )
----
-40

query I rowsort
SELECT - 95 + + 39
----
-56

query I rowsort
SELECT DISTINCT - 7 - 40
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT + CASE + CASE - 61 WHEN + 25 THEN NULL ELSE + 28 + + COUNT( * ) + + 42 * 59 - SUM( NULLIF ( - - 97, + + 79 ) ) * + 36 END WHEN COALESCE ( + + 81, + 45 / - 78 - - COUNT( * ) ) THEN - 91 WHEN - + 57 * + 68 - + 70 THEN NULL ELSE NULL END * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT + CASE + CASE - 61 WHEN + 25 THEN NULL ELSE + 28 + + COUNT ( * ) + + 42 * 59 - SUM ( NULLIF ( - - 97, + + 79 ) ) * + 36 END WHEN COALESCE ( + + 81, + 45 / - 78 - - COUNT ( * ) ) THEN - 91 WHEN - + 57 * + 68 - + 70 THEN NULL ELSE NULL END * - 14
----
NULL

query I rowsort
SELECT ALL - 89 - - 69 AS col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT DISTINCT + 34 DIV + 29 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT + 34 / + 29 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT - MAX( + 40 ) + + 2
----
-38

skipif mysql # not compatible
query I rowsort label-4137
SELECT - MAX ( + 40 ) + + 2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4138
SELECT + 99 DIV - 51 - - NULLIF ( + 80, + 93 + 72 ) * + 90 * 36 + - 52 DIV + COUNT( * )
----
259147

skipif mysql # not compatible
query I rowsort label-4138
SELECT + 99 / - 51 - - NULLIF ( + 80, + 93 + 72 ) * + 90 * 36 + - 52 / + COUNT ( * )
----
259147

onlyif mysql # DIV for integer division: 
query I rowsort label-4139
SELECT - 88 DIV + + 10
----
-8

skipif mysql # not compatible
query I rowsort label-4139
SELECT - 88 / + + 10
----
-8

query I rowsort
SELECT - 0 - + - 75 + 81
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT DISTINCT MIN( ALL CAST( NULL AS SIGNED ) ) * + 21 + 13 - + CASE 16 WHEN - 60 THEN NULL ELSE - ( + 29 ) END + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT MIN ( ALL CAST ( NULL AS INTEGER ) ) * + 21 + 13 - + CASE 16 WHEN - 60 THEN NULL ELSE - ( + 29 ) END + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL + COUNT( * ) * + COALESCE ( 52, - NULLIF ( + COUNT( * ), ( 82 ) - + + 19 * - 36 ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL + COUNT ( * ) * + COALESCE ( 52, - NULLIF ( + COUNT ( * ), ( 82 ) - + + 19 * - 36 ) ) AS col2
----
52

query II rowsort
SELECT ( + 95 ) * - 75 * + 14 + - 39 * - - 90 - - NULLIF ( - 51, + 20 ) + + 55 col2, - 71 + + - 34
----
-103256
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT DISTINCT 4 * + 13 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT 4 * + 13 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 22 - 39 + - 27 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL 70 * COUNT( * ) + + 92
----
162

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL 70 * COUNT ( * ) + + 92
----
162

query I rowsort
SELECT + + 60 * + 15 + - 1 * + ( 27 )
----
873

query I rowsort
SELECT + 75 * + 82 + - 60 + CASE + 60 WHEN 79 THEN - 8 ELSE NULL END + + 67 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT ALL + CAST( NULL AS SIGNED ) * + NULLIF ( + 95, ( + COALESCE ( - + 62, - 35 * + 62, + 38 - - CASE WHEN MAX( ALL - + 24 ) NOT BETWEEN + + 92 AND - + COUNT( * ) THEN + 72 END ) ) ) + + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + CAST ( NULL AS INTEGER ) * + NULLIF ( + 95, ( + COALESCE ( - + 62, - 35 * + 62, + 38 - - CASE WHEN MAX ( ALL - + 24 ) NOT BETWEEN + + 92 AND - + COUNT ( * ) THEN + 72 END ) ) ) + + - 72
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4150
SELECT + 2 - - + ( - COUNT( * ) ) + 60 DIV - + 69 * + 35
----
1

skipif mysql # not compatible
query I rowsort label-4150
SELECT + 2 - - + ( - COUNT ( * ) ) + 60 / - + 69 * + 35
----
1

query I rowsort
SELECT ALL 72 * + - 33
----
-2376

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT DISTINCT - 77 DIV - 91 col1
----
0

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT - 77 / - 91 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT + + MIN( - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-4153
SELECT + + MIN ( - 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT ALL - 44 * - 87 / - COALESCE ( - 37, + + 10 ) / + 65 * - CAST( NULL AS SIGNED ) + + 17 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - 44 * - 87 / - COALESCE ( - 37, + + 10 ) / + 65 * - CAST ( NULL AS INTEGER ) + + 17 + - - COUNT ( * )
----
NULL

query I rowsort
SELECT + + ( - - 90 ) + + ( + 12 ) AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT + - 83 + - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-4156
SELECT + - 83 + - COUNT ( * )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4157
SELECT - + 72 DIV + 42
----
-1

skipif mysql # not compatible
query I rowsort label-4157
SELECT - + 72 / + 42
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT + COUNT( * ) * + - COUNT( - 24 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4158
SELECT + COUNT ( * ) * + - COUNT ( - 24 ) AS col0
----
-1

query I rowsort
SELECT + 49 * - - 59 * - 83 col0
----
-239953

query I rowsort
SELECT + 18 * - 65 AS col1
----
-1170

query II rowsort
SELECT NULLIF ( - 30, 74 ), 7 + 76 AS col1
----
-30
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT COALESCE ( 72, - 52 * 64 + + + 99 * - + COUNT( * ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4162
SELECT COALESCE ( 72, - 52 * 64 + + + 99 * - + COUNT ( * ) ) AS col1
----
72

query I rowsort
SELECT + 32 + - - 22
----
54

query II rowsort
SELECT ALL 33 AS col1, - 12 - - 28 * - 38 col1
----
33
-1076

query I rowsort
SELECT ALL 54 * 60 AS col0
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT + ( - COUNT( * ) ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4166
SELECT + ( - COUNT ( * ) ) + - COUNT ( * )
----
-2

query I rowsort
SELECT ALL NULLIF ( - 81, + ( + 24 ) ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT + COUNT( * ) + - 5 * + 33
----
-164

skipif mysql # not compatible
query I rowsort label-4168
SELECT + COUNT ( * ) + - 5 * + 33
----
-164

query I rowsort
SELECT DISTINCT NULLIF ( + 54, + 28 ) AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT + CAST( NULL AS SIGNED ) * + + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT + CAST ( NULL AS INTEGER ) * + + 26 AS col0
----
NULL

query I rowsort
SELECT + 24 + + 54
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT + COUNT( * ) + 61
----
62

skipif mysql # not compatible
query I rowsort label-4172
SELECT + COUNT ( * ) + 61
----
62

query I rowsort
SELECT + 76 + - ( - 42 ) * + - 55 * + 35 col0
----
-80774

query I rowsort
SELECT - 82 + - ( - 15 ) AS col2
----
-67

query I rowsort
SELECT ALL NULLIF ( 18, - 94 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4176
SELECT ALL CASE 69 WHEN 35 THEN - 96 WHEN - - 47 * 19 / - CAST( - + COUNT( * ) AS SIGNED ) THEN NULL ELSE 52 END, - 43 * + 63 col1
----
52
-2709

skipif mysql # not compatible
query II rowsort label-4176
SELECT ALL CASE 69 WHEN 35 THEN - 96 WHEN - - 47 * 19 / - CAST ( - + COUNT ( * ) AS INTEGER ) THEN NULL ELSE 52 END, - 43 * + 63 col1
----
52
-2709

query I rowsort
SELECT + ( 54 ) + - 94 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4178
SELECT + 18 AS col1, MIN( ALL + 18 )
----
18
18

skipif mysql # not compatible
query II rowsort label-4178
SELECT + 18 AS col1, MIN ( ALL + 18 )
----
18
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT ALL - SUM( - CAST( NULL AS SIGNED ) ) / - ( - CAST( + + 78 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - SUM ( - CAST ( NULL AS INTEGER ) ) / - ( - CAST ( + + 78 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4180
SELECT + CAST( NULL AS DECIMAL ) AS col1, - ( - 6 ) * 50 DIV + - 45 AS col1
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-4180
SELECT + CAST ( NULL AS REAL ) AS col1, - ( - 6 ) * 50 / + - 45 AS col1
----
NULL
-6

query I rowsort
SELECT COALESCE ( 34, + CASE - 23 WHEN 85 * - ( + 79 ) THEN NULL WHEN 17 + 15 - 29 + - + 92 * - - 81 / 47 * - 32 * - - 79 THEN + + 57 END + - + ( 53 ) * + 42, - 81 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT ALL + 58 DIV + + 88 + + 75
----
75

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL + 58 / + + 88 + + 75
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4183
SELECT - 3 * + CAST( NULL AS DECIMAL ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT - 3 * + CAST ( NULL AS REAL ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT - 73 + 27 * + 7 AS col1
----
116

query I rowsort
SELECT - 77 * 66
----
-5082

query II rowsort
SELECT 37 AS col0, + ( + + 76 ) AS col2
----
37
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4187
SELECT - 51 * SUM( + CAST( NULL AS SIGNED ) ) + CAST( 27 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT - 51 * SUM ( + CAST ( NULL AS INTEGER ) ) + CAST ( 27 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 48 * - - ( + + 48 )
----
2304

query I rowsort
SELECT - - 37 * 24 * + - 43
----
-38184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT + CAST( + - 81 AS SIGNED ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4190
SELECT + CAST ( + - 81 AS INTEGER ) AS col0
----
-81

query II rowsort
SELECT DISTINCT - - 45 AS col0, - 5 col1
----
45
-5

query I rowsort
SELECT - 19 - - + 87 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL - - MAX( ALL + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - - MAX ( ALL + 43 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4194
SELECT - 80 * - 25 - + - ( 6 ) * + ( + 52 ) AS col0, + CAST( NULL AS SIGNED ) col2
----
2312
NULL

skipif mysql # not compatible
query II rowsort label-4194
SELECT - 80 * - 25 - + - ( 6 ) * + ( + 52 ) AS col0, + CAST ( NULL AS INTEGER ) col2
----
2312
NULL

query I rowsort
SELECT ( 80 ) * + 61 AS col0
----
4880

onlyif mysql # aggregate syntax: 
query II rowsort label-4196
SELECT COUNT( * ), - ( + - 46 ) AS col2
----
1
46

skipif mysql # not compatible
query II rowsort label-4196
SELECT COUNT ( * ), - ( + - 46 ) AS col2
----
1
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - + MIN( + + 16 ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-4197
SELECT - + MIN ( + + 16 ) col1
----
-16

query II rowsort
SELECT ALL - NULLIF ( + 13, ( - - 53 ) ) AS col2, 7 AS col0
----
-13
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL 54 * + ( + COUNT( * ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL 54 * + ( + COUNT ( * ) ) AS col0
----
54

query I rowsort
SELECT 77 - 54 * - 43 AS col0
----
2399

query I rowsort
SELECT ALL 18 + 36 AS col1
----
54

query I rowsort
SELECT 67 + + 77 * 62 AS col2
----
4841

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT 74 DIV + ( - + 93 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4203
SELECT 74 / + ( - + 93 ) col0
----
0

query I rowsort
SELECT 12 - ( + - 41 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT COUNT( * ) + - 65 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT COUNT ( * ) + - 65 AS col2
----
-64

query I rowsort
SELECT DISTINCT + 99 + + - ( - 53 ) AS col0
----
152

query I rowsort
SELECT DISTINCT 99 + - - 23
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-4208
SELECT ALL COUNT( * ) + - ( - - 83 ) AS col2, + 62 AS col0
----
-82
62

skipif mysql # not compatible
query II rowsort label-4208
SELECT ALL COUNT ( * ) + - ( - - 83 ) AS col2, + 62 AS col0
----
-82
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT + 52 DIV - 75 - + + 1 * + - 42 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4209
SELECT + 52 / - 75 - + + 1 * + - 42 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT 99 + + 38 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT 99 + + 38 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( 30, 22 ) * - 24
----
-720

query I rowsort
SELECT DISTINCT + 21 * - 60 * 43 + - 26
----
-54206

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT ALL + 77 * - ( + - COUNT( * ) ) - + 70 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL + 77 * - ( + - COUNT ( * ) ) - + 70 AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4214
SELECT DISTINCT + COUNT( * ) - 17, COUNT( * ) AS col1
----
-16
1

skipif mysql # not compatible
query II rowsort label-4214
SELECT DISTINCT + COUNT ( * ) - 17, COUNT ( * ) AS col1
----
-16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT - 37 - + COUNT( * ) + + - 23 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-4215
SELECT - 37 - + COUNT ( * ) + + - 23 AS col2
----
-61

query I rowsort
SELECT - 51 + 1 + + - 59 AS col0
----
-109

query I rowsort
SELECT + 60 * 99 col2
----
5940

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT DISTINCT - 95 DIV - - 65
----
-1

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - 95 / - - 65
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ALL - - NULLIF ( + + 22, CASE + COUNT( * ) WHEN - 18 THEN NULL WHEN - 17 THEN + 32 ELSE NULL END + + ( + 76 ) / 85 ) col0
----
22

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - - NULLIF ( + + 22, CASE + COUNT ( * ) WHEN - 18 THEN NULL WHEN - 17 THEN + 32 ELSE NULL END + + ( + 76 ) / 85 ) col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - 28 * 21 + - + COUNT( * ) + 49 * 62 + + 21 * - + 21 + + - 25 AS col2
----
1983

skipif mysql # not compatible
query I rowsort label-4220
SELECT - 28 * 21 + - + COUNT ( * ) + 49 * 62 + + 21 * - + 21 + + - 25 AS col2
----
1983

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT - 78 * + MIN( ALL + 63 )
----
-4914

skipif mysql # not compatible
query I rowsort label-4221
SELECT - 78 * + MIN ( ALL + 63 )
----
-4914

query I rowsort
SELECT + 17 + + 60
----
77

query I rowsort
SELECT - 52 * + 72 * + + 74 + - - NULLIF ( - 62, 27 - - 76 )
----
-277118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT + ( + 80 ) - - 14 - + 69 * - + 70 + - + 5 + - 85 + - + NULLIF ( CASE + CASE - 66 WHEN - 88 * + CAST( + 91 AS SIGNED ) * + NULLIF ( - CAST( + 13 AS SIGNED ), - 32 ) - 59 THEN - - COUNT( * ) * - 45 WHEN - 95 + - 16 THEN + + 88 / 82 + 1 * ( + + COUNT( * ) ) + 61 ELSE + + 13 * - - COALESCE ( + 68, 51 ) END WHEN - ( + COUNT( * ) ) THEN + COUNT( * ) END, ( 51 ) + - 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT + ( + 80 ) - - 14 - + 69 * - + 70 + - + 5 + - 85 + - + NULLIF ( CASE + CASE - 66 WHEN - 88 * + CAST ( + 91 AS INTEGER ) * + NULLIF ( - CAST ( + 13 AS INTEGER ), - 32 ) - 59 THEN - - COUNT ( * ) * - 45 WHEN - 95 + - 16 THEN + + 88 / 82 + 1 * ( + + COUNT ( * ) ) + 61 ELSE + + 13 * - - COALESCE ( + 68, 51 ) END WHEN - ( + COUNT ( * ) ) THEN + COUNT ( * ) END, ( 51 ) + - 42 ) AS col2
----
NULL

query II rowsort
SELECT 66 * 47, 11 + - 30 * + - 67 col1
----
3102
2021

query I rowsort
SELECT + - 2 * - + 59 + 23 + - 89 - - + 13 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT DISTINCT - 43 * - COUNT( * ) + 16 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT - 43 * - COUNT ( * ) + 16 AS col2
----
59

query I rowsort
SELECT 74 * + 95
----
7030

query I rowsort
SELECT 77 + - 6 AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4230
SELECT 36 AS col0, + COUNT( * ) * + COUNT( * )
----
36
1

skipif mysql # not compatible
query II rowsort label-4230
SELECT 36 AS col0, + COUNT ( * ) * + COUNT ( * )
----
36
1

query I rowsort
SELECT ALL + 85 + 5 * - 12 + + 68 AS col0
----
93

query I rowsort
SELECT ALL - 30 + + 94 + + 93 AS col0
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4233
SELECT 17 AS col0, - CAST( NULL AS SIGNED ) + ( - 67 )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-4233
SELECT 17 AS col0, - CAST ( NULL AS INTEGER ) + ( - 67 )
----
17
NULL

query II rowsort
SELECT - 97, + 66 col1
----
-97
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4235
SELECT 31 AS col1, 32 + - 37 + + COUNT( * ) * + 81 * - 43 * + COALESCE ( + 1, + - MIN( ALL + 35 ) ) AS col0
----
31
-3488

skipif mysql # not compatible
query II rowsort label-4235
SELECT 31 AS col1, 32 + - 37 + + COUNT ( * ) * + 81 * - 43 * + COALESCE ( + 1, + - MIN ( ALL + 35 ) ) AS col0
----
31
-3488

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT DISTINCT + 13 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT + 13 / 39
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT 2 * - CAST( + 44 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-4237
SELECT 2 * - CAST ( + 44 AS INTEGER )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL + 95 * - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL + 95 * - COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT COUNT( * ) + ( + 50 ) - + + 32 * 77
----
-2413

skipif mysql # not compatible
query I rowsort label-4239
SELECT COUNT ( * ) + ( + 50 ) - + + 32 * 77
----
-2413

query I rowsort
SELECT 89 + + 18 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT COALESCE ( + 17, 37, SUM( + + 15 ) * 97 ) * - + SUM( + 24 ) + - 27 * 21 col2
----
-975

skipif mysql # not compatible
query I rowsort label-4241
SELECT COALESCE ( + 17, 37, SUM ( + + 15 ) * 97 ) * - + SUM ( + 24 ) + - 27 * 21 col2
----
-975

query I rowsort
SELECT 44 + 84 + + + 9 AS col0
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT ALL 38 DIV - COALESCE ( COALESCE ( - - 55, - + COUNT( * ) * - 7 * 23 * - 40 ), 49 + - ( + COUNT( * ) ) ) + + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL 38 / - COALESCE ( COALESCE ( - - 55, - + COUNT ( * ) * - 7 * 23 * - 40 ), 49 + - ( + COUNT ( * ) ) ) + + 82 AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4244
SELECT - COUNT( * ) + - 47 * 72 DIV + COUNT( * )
----
-3385

skipif mysql # not compatible
query I rowsort label-4244
SELECT - COUNT ( * ) + - 47 * 72 / + COUNT ( * )
----
-3385

query I rowsort
SELECT DISTINCT - 9 * + + 51 + 41
----
-418

query II rowsort
SELECT 72 AS col1, 26 + 84 AS col1
----
72
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4247
SELECT - ( - 98 ) * + CASE - - 41 WHEN + 64 + - SUM( DISTINCT 35 ) THEN NULL WHEN - + COALESCE ( - - 53, + + 71 * + 48 * - + 96 ) THEN + 88 + - - ( 89 ) END / + - CASE 61 WHEN + - 97 THEN - + COUNT( * ) * - 60 WHEN NULLIF ( + CAST( NULL AS SIGNED ), COUNT( * ) + + 12 + ( + - ( - 68 ) ) * - 67 * 75 - - 93 * + 75 ) - + 85 / COUNT( * ) * - 60 THEN NULL END + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT - ( - 98 ) * + CASE - - 41 WHEN + 64 + - SUM ( DISTINCT 35 ) THEN NULL WHEN - + COALESCE ( - - 53, + + 71 * + 48 * - + 96 ) THEN + 88 + - - ( 89 ) END / + - CASE 61 WHEN + - 97 THEN - + COUNT ( * ) * - 60 WHEN NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) + + 12 + ( + - ( - 68 ) ) * - 67 * 75 - - 93 * + 75 ) - + 85 / COUNT ( * ) * - 60 THEN NULL END + 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT + - 10 * 78 + + CAST( NULL AS SIGNED ) / + COALESCE ( + 41, + CAST( NULL AS SIGNED ) / + 97, 36 * - ( + 96 ) ) * 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT + - 10 * 78 + + CAST ( NULL AS INTEGER ) / + COALESCE ( + 41, + CAST ( NULL AS INTEGER ) / + 97, 36 * - ( + 96 ) ) * 43 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT DISTINCT + COUNT( + + CAST( + - 57 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT + COUNT ( + + CAST ( + - 57 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL + - MAX( - 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL + - MAX ( - 91 ) AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4251
SELECT - 3 AS col0, 36 + + SUM( + 86 ) * 21 + + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-3
1841

skipif mysql # not compatible
query II rowsort label-4251
SELECT - 3 AS col0, 36 + + SUM ( + 86 ) * 21 + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-3
1841

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4252
SELECT ALL + - MIN( + 97 ) DIV - + COUNT( - 35 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL + - MIN ( + 97 ) / - + COUNT ( - 35 ) AS col0
----
97

query I rowsort
SELECT - ( + - 7 ) * + - 57 + - 91 * + 16 - 69 + - 59 AS col2
----
-1983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT ALL CAST( - 49 AS SIGNED ) * - 19 * 63 + + + 34
----
58687

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL CAST ( - 49 AS INTEGER ) * - 19 * 63 + + + 34
----
58687

onlyif mysql # aggregate syntax: 
query II rowsort label-4255
SELECT - ( + 68 ) AS col0, - MAX( ALL - 83 ) AS col2
----
-68
83

skipif mysql # not compatible
query II rowsort label-4255
SELECT - ( + 68 ) AS col0, - MAX ( ALL - 83 ) AS col2
----
-68
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT + ( 79 ) + + ( - 83 ) - MAX( DISTINCT + 56 ) * ( - + ( + 16 ) ) * - 48 + - 46 + COUNT( * )
----
-43057

skipif mysql # not compatible
query I rowsort label-4256
SELECT + ( 79 ) + + ( - 83 ) - MAX ( DISTINCT + 56 ) * ( - + ( + 16 ) ) * - 48 + - 46 + COUNT ( * )
----
-43057

query I rowsort
SELECT - 42 * - 13
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT DISTINCT + MIN( + 76 ) + + 97 col0
----
173

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT + MIN ( + 76 ) + + 97 col0
----
173

query I rowsort
SELECT ALL - 99 + + 27 + - 93 AS col0
----
-165

query I rowsort
SELECT ALL 35 * 91
----
3185

query I rowsort
SELECT - 6 - 73
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT DISTINCT + COUNT( * ) * - 98 col2
----
-98

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + COUNT ( * ) * - 98 col2
----
-98

query I rowsort
SELECT ALL - 54 + - COALESCE ( - 84, 77 ) * 4 AS col1
----
282

query I rowsort
SELECT - 93 + + 34
----
-59

query I rowsort
SELECT - 52 * 74 AS col0
----
-3848

onlyif mysql # aggregate syntax: 
query II rowsort label-4266
SELECT + COUNT( - ( + + 0 ) ) + + + COUNT( * ) AS col1, - 89 col1
----
2
-89

skipif mysql # not compatible
query II rowsort label-4266
SELECT + COUNT ( - ( + + 0 ) ) + + + COUNT ( * ) AS col1, - 89 col1
----
2
-89

query I rowsort
SELECT ALL - 37 - + 92
----
-129

query II rowsort
SELECT ALL ( - 39 ), 3 AS col0
----
-39
3

query I rowsort
SELECT ALL + 37 - - 27 AS col2
----
64

query I rowsort
SELECT - 97 * + + 1 AS col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT ALL + 61 DIV + - 44 + 47
----
46

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + 61 / + - 44 + 47
----
46

query I rowsort
SELECT - 59 - + 65 AS col1
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4273
SELECT - - COUNT( * ) * + 19 DIV - 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4273
SELECT - - COUNT ( * ) * + 19 / - 30 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT + + COUNT( * ) * - 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4274
SELECT + + COUNT ( * ) * - 49 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT - ( + CASE + + 10 WHEN - 80 THEN MAX( + 74 ) END ) + + ( + - 72 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT - ( + CASE + + 10 WHEN - 80 THEN MAX ( + 74 ) END ) + + ( + - 72 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4276
SELECT - + CAST( NULL AS DECIMAL ) * 13 + ( - - 29 ) AS col2, 50
----
NULL
50

skipif mysql # not compatible
query II rowsort label-4276
SELECT - + CAST ( NULL AS REAL ) * 13 + ( - - 29 ) AS col2, 50
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + + CASE 72 WHEN + 28 THEN + 65 WHEN 52 + + COUNT( * ) + - 73 + + 12 THEN NULL WHEN 35 * AVG ( DISTINCT + - 19 ) THEN NULL ELSE NULL END / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT + + CASE 72 WHEN + 28 THEN + 65 WHEN 52 + + COUNT ( * ) + - 73 + + 12 THEN NULL WHEN 35 * AVG ( DISTINCT + - 19 ) THEN NULL ELSE NULL END / - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 13 * + + 49 AS col0
----
-637

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4279
SELECT ALL 69 / + 28 * CAST( NULL AS DECIMAL ) + - - 92 + + 34 + + 18 * - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL 69 / + 28 * CAST ( NULL AS REAL ) + - - 92 + + 34 + + 18 * - + 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4280
SELECT + 60 / - COUNT( * ) + - 49 - + - MAX( ALL ( - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT + 60 / - COUNT ( * ) + - 49 - + - MAX ( ALL ( - CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT ALL + + ( 37 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4282
SELECT + - SUM( + + 94 ) - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT + - SUM ( + + 94 ) - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 65 * - 28 + + 59 + + - 84 * 35 * - 67 + - 56 * + 85 col2
----
190459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4284
SELECT COALESCE ( + + CAST( NULL AS DECIMAL ), - 28 + COUNT( * ), 83 * + 5 ) * + ( CAST( NULL AS SIGNED ) ) + 7 AS col1, ( + 36 ) + + 89 + - MAX( ALL 91 ) * - 87
----
NULL
8042

skipif mysql # not compatible
query II rowsort label-4284
SELECT COALESCE ( + + CAST ( NULL AS REAL ), - 28 + COUNT ( * ), 83 * + 5 ) * + ( CAST ( NULL AS INTEGER ) ) + 7 AS col1, ( + 36 ) + + 89 + - MAX ( ALL 91 ) * - 87
----
NULL
8042

query I rowsort
SELECT - 2 + + 69
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT 4 * COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT 4 * COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL + 28, 76 AS col2
----
28
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + 6 + + - MIN( ALL + 84 ) * + 72
----
-6042

skipif mysql # not compatible
query I rowsort label-4288
SELECT + 6 + + - MIN ( ALL + 84 ) * + 72
----
-6042

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4289
SELECT ALL COALESCE ( - COUNT( - 38 ), + 79 * - 40 DIV + + COUNT( * ), 4, 98 * + + 44 + - + 51 * - 43 - 71 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL COALESCE ( - COUNT ( - 38 ), + 79 * - 40 / + + COUNT ( * ), 4, 98 * + + 44 + - + 51 * - 43 - 71 ) AS col1
----
-1

query I rowsort
SELECT CASE + - 14 WHEN 56 THEN - + 56 END
----
NULL

query I rowsort
SELECT + 82 + - 81
----
1

query I rowsort
SELECT + 94 * 5 AS col2
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT + 0 * - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT + 0 * - - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT MIN( DISTINCT - 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4294
SELECT MIN ( DISTINCT - 60 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL SUM( DISTINCT - + 60 ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL SUM ( DISTINCT - + 60 ) col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4296
SELECT + NULLIF ( + 7, + 17 + - - COUNT( * ) ) * - MIN( + 36 ) + - + 38 + + - 64 col2, 52
----
-354
52

skipif mysql # not compatible
query II rowsort label-4296
SELECT + NULLIF ( + 7, + 17 + - - COUNT ( * ) ) * - MIN ( + 36 ) + - + 38 + + - 64 col2, 52
----
-354
52

query I rowsort
SELECT DISTINCT 87 * + - 90 AS col2
----
-7830

onlyif mysql # DIV for integer division: 
query I rowsort label-4298
SELECT 27 DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4298
SELECT 27 / + 77 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL 22 * COUNT( + 49 ) * + 86 AS col2
----
1892

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL 22 * COUNT ( + 49 ) * + 86 AS col2
----
1892

query I rowsort
SELECT - 3 + - - 4 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4301
SELECT ALL + + CAST( NULL AS SIGNED ) * - + 19 + + 59, ( - CASE 21 WHEN + 66 / + 37 THEN - 48 END ) / + - 50 + - + 89 / - ( + - ( - 61 ) ) * + 39 + + - 25 + 79 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4301
SELECT ALL + + CAST ( NULL AS INTEGER ) * - + 19 + + 59, ( - CASE 21 WHEN + 66 / + 37 THEN - 48 END ) / + - 50 + - + 89 / - ( + - ( - 61 ) ) * + 39 + + - 25 + 79 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4302
SELECT ALL - CAST( - - CASE ( + 82 ) WHEN 44 THEN 63 ELSE 74 END AS SIGNED ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL - CAST ( - - CASE ( + 82 ) WHEN 44 THEN 63 ELSE 74 END AS INTEGER ) col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT 61 + + 10 + - + 69 * - COUNT( * ) AS col0
----
140

skipif mysql # not compatible
query I rowsort label-4303
SELECT 61 + + 10 + - + 69 * - COUNT ( * ) AS col0
----
140

query I rowsort
SELECT - 56 + - 83
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT - CAST( + 26 AS SIGNED ) * - 19 AS col1
----
494

skipif mysql # not compatible
query I rowsort label-4305
SELECT - CAST ( + 26 AS INTEGER ) * - 19 AS col1
----
494

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + COUNT( * ) + - - 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4306
SELECT + COUNT ( * ) + - - 87 AS col1
----
88

query I rowsort
SELECT ALL - - 17 + + 68 AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT + ( - 38 ) * + - CAST( NULL AS SIGNED ) * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT + ( - 38 ) * + - CAST ( NULL AS INTEGER ) * 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT ALL - - ( + 82 ) + NULLIF ( MAX( DISTINCT - 57 ), - AVG ( + ( + - 38 ) ) * 17 * + 55 ) + + - COALESCE ( - + ( + COUNT( * ) ), 23, + 21 + - 45 * + 29 ) DIV 91 * + 9 * 25
----
25

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL - - ( + 82 ) + NULLIF ( MAX ( DISTINCT - 57 ), - AVG ( + ( + - 38 ) ) * 17 * + 55 ) + + - COALESCE ( - + ( + COUNT ( * ) ), 23, + 21 + - 45 * + 29 ) / 91 * + 9 * 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT 77 * - 14 + + COUNT( * ) + + COUNT( DISTINCT - 14 ) + - - 52
----
-1024

skipif mysql # not compatible
query I rowsort label-4310
SELECT 77 * - 14 + + COUNT ( * ) + + COUNT ( DISTINCT - 14 ) + - - 52
----
-1024

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT DISTINCT - 66 * CASE 56 WHEN MAX( ALL 84 ) + + 89 THEN 19 / - - SUM( ALL - + 83 ) + - + MAX( DISTINCT + 95 ) WHEN + 81 THEN NULL END + + 2 AS col1, 92 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-4311
SELECT DISTINCT - 66 * CASE 56 WHEN MAX ( ALL 84 ) + + 89 THEN 19 / - - SUM ( ALL - + 83 ) + - + MAX ( DISTINCT + 95 ) WHEN + 81 THEN NULL END + + 2 AS col1, 92 AS col0
----
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL - COUNT( * ) + + 64 + + 62
----
125

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL - COUNT ( * ) + + 64 + + 62
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT 28 DIV + 56 * + 24 + 65 + - 72 * + 52
----
-3679

skipif mysql # not compatible
query I rowsort label-4313
SELECT 28 / + 56 * + 24 + 65 + - 72 * + 52
----
-3679

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL - 22 + COUNT( * ) * 50
----
28

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL - 22 + COUNT ( * ) * 50
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + - COALESCE ( COUNT( * ), 75 * 30 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4315
SELECT + - COALESCE ( COUNT ( * ), 75 * 30 ) AS col0
----
-1

query II rowsort
SELECT + + 43 AS col0, 51 + + - 48 + + + 78 * - 66
----
43
-5145

query I rowsort
SELECT + - NULLIF ( + 43, - 45 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT - MAX( - + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-4318
SELECT - MAX ( - + 15 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT ALL COUNT( * ) + + - 7 DIV 12
----
1

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL COUNT ( * ) + + - 7 / 12
----
1

query I rowsort
SELECT ALL - ( 27 ) AS col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT 93 DIV 38
----
2

skipif mysql # not compatible
query I rowsort label-4321
SELECT 93 / 38
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT ALL 42 * 29 DIV + - 95
----
-12

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL 42 * 29 / + - 95
----
-12

query I rowsort
SELECT DISTINCT - 54 - - + 40 AS col1
----
-14

query I rowsort
SELECT - 31 * + 33 + 74
----
-949

onlyif mysql # aggregate syntax: 
query II rowsort label-4325
SELECT + 45, COUNT( * ) * + - 11 AS col0
----
45
-11

skipif mysql # not compatible
query II rowsort label-4325
SELECT + 45, COUNT ( * ) * + - 11 AS col0
----
45
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL - COUNT( * ) - ( - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL - COUNT ( * ) - ( - COUNT ( * ) ) AS col0
----
0

query I rowsort
SELECT 92 - - 84
----
176

query I rowsort
SELECT ALL 82 * + + 45
----
3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4329
SELECT 47, + MIN( - 91 ) + + - CASE + 62 WHEN - 77 + - 96 * - COALESCE ( + 5, + 14 / + 29 + + - 61 - - 17 + - 61 + CASE - CAST( - ( CASE - 28 WHEN + + 52 * - NULLIF ( NULLIF ( + - ( + - 53 ), + - 8 + + + ( - + 87 ) ), 36 + - 83 * + + 12 ) * - 43 THEN NULL ELSE + - 15 - - 65 END ) AS SIGNED ) WHEN - NULLIF ( + + 22, - ( 84 ) * - 63 ) + AVG ( + 11 ) * 49 THEN 66 + 60 END * 77 / + 92 ) THEN 12 / + 2 WHEN 46 * 7 THEN COUNT( * ) WHEN 87 + + 69 THEN NULL END * COUNT( * ) AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-4329
SELECT 47, + MIN ( - 91 ) + + - CASE + 62 WHEN - 77 + - 96 * - COALESCE ( + 5, + 14 / + 29 + + - 61 - - 17 + - 61 + CASE - CAST ( - ( CASE - 28 WHEN + + 52 * - NULLIF ( NULLIF ( + - ( + - 53 ), + - 8 + + + ( - + 87 ) ), 36 + - 83 * + + 12 ) * - 43 THEN NULL ELSE + - 15 - - 65 END ) AS INTEGER ) WHEN - NULLIF ( + + 22, - ( 84 ) * - 63 ) + AVG ( + 11 ) * 49 THEN 66 + 60 END * 77 / + 92 ) THEN 12 / + 2 WHEN 46 * 7 THEN COUNT ( * ) WHEN 87 + + 69 THEN NULL END * COUNT ( * ) AS col2
----
47
NULL

query II rowsort
SELECT DISTINCT 63 AS col0, + 2
----
63
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT ALL - 64 * + COUNT( * ) * - 61 AS col0
----
3904

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL - 64 * + COUNT ( * ) * - 61 AS col0
----
3904

query II rowsort
SELECT 71 AS col1, - 24 AS col1
----
71
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4333
SELECT DISTINCT 72 AS col1, - ( - + CAST( + - 4 AS SIGNED ) ) * + 60 + + 25 * - ( ( 1 ) ) + + 96
----
72
-169

skipif mysql # not compatible
query II rowsort label-4333
SELECT DISTINCT 72 AS col1, - ( - + CAST ( + - 4 AS INTEGER ) ) * + 60 + + 25 * - ( ( 1 ) ) + + 96
----
72
-169

query I rowsort
SELECT 43 * - 68 AS col2
----
-2924

query I rowsort
SELECT ( + - 44 ) - + ( - 91 ) AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4336
SELECT COUNT( * ) AS col1, + 48 DIV 11 col0
----
1
4

skipif mysql # not compatible
query II rowsort label-4336
SELECT COUNT ( * ) AS col1, + 48 / 11 col0
----
1
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4337
SELECT - - 30, 87 - 50 + + - 85 * 37 + - NULLIF ( - 98, + 26 + ( + CAST( NULL AS SIGNED ) ) + - 18 * 35 ) * + - CAST( NULL AS SIGNED ) col0
----
30
NULL

skipif mysql # not compatible
query II rowsort label-4337
SELECT - - 30, 87 - 50 + + - 85 * 37 + - NULLIF ( - 98, + 26 + ( + CAST ( NULL AS INTEGER ) ) + - 18 * 35 ) * + - CAST ( NULL AS INTEGER ) col0
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT COUNT( + 4 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4338
SELECT COUNT ( + 4 ) col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4339
SELECT ALL - 78 DIV + - 16, + ( 55 ) * - 28 * - 84 * + 19 + + 86 AS col0
----
4
2457926

skipif mysql # not compatible
query II rowsort label-4339
SELECT ALL - 78 / + - 16, + ( 55 ) * - 28 * - 84 * + 19 + + 86 AS col0
----
4
2457926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4340
SELECT ( - CASE - + COUNT( * ) WHEN + 87 * + - 72 / - 52 * 70 / + - 15 + + 22 THEN + + COALESCE ( + CAST( + SUM( + - 64 ) AS SIGNED ), - 11 ) END ) * COALESCE ( - 0, - 42 * + 37 * - 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT ( - CASE - + COUNT ( * ) WHEN + 87 * + - 72 / - 52 * 70 / + - 15 + + 22 THEN + + COALESCE ( + CAST ( + SUM ( + - 64 ) AS INTEGER ), - 11 ) END ) * COALESCE ( - 0, - 42 * + 37 * - 63 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL - 28 * 81 * COUNT( * ) col0
----
-2268

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - 28 * 81 * COUNT ( * ) col0
----
-2268

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT + MAX( DISTINCT + 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + MAX ( DISTINCT + 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT ALL - COUNT( * ) + - ( + - ( - 29 ) ) + + + COALESCE ( - NULLIF ( 95, - - 81 + 15 ), - CASE + 63 WHEN - + 68 + 79 - - COUNT( * ) THEN + 47 * - - 93 + 42 * - 42 END + - - 24 + + ( 65 ) + + COUNT( * ) * COUNT( * ) )
----
-125

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL - COUNT ( * ) + - ( + - ( - 29 ) ) + + + COALESCE ( - NULLIF ( 95, - - 81 + 15 ), - CASE + 63 WHEN - + 68 + 79 - - COUNT ( * ) THEN + 47 * - - 93 + 42 * - 42 END + - - 24 + + ( 65 ) + + COUNT ( * ) * COUNT ( * ) )
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT - 4 * - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4344
SELECT - 4 * - COUNT ( * ) AS col2
----
4

query I rowsort
SELECT ALL 73 + 28 AS col0
----
101

query II rowsort
SELECT ALL + 91 AS col0, 8 AS col1
----
91
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4347
SELECT DISTINCT COALESCE ( + 96, + CAST( + 56 AS SIGNED ) + + 0 + + MIN( DISTINCT + 73 ) - 2 * MAX( + 32 ), + 77 DIV - 21 - - + COUNT( * ) + MIN( DISTINCT + 78 ) * ( - COUNT( * ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT COALESCE ( + 96, + CAST ( + 56 AS INTEGER ) + + 0 + + MIN ( DISTINCT + 73 ) - 2 * MAX ( + 32 ), + 77 / - 21 - - + COUNT ( * ) + MIN ( DISTINCT + 78 ) * ( - COUNT ( * ) ) )
----
96

query I rowsort
SELECT + 70 + + 39 AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT MIN( DISTINCT + - 73 ) * + 10 AS col0
----
-730

skipif mysql # not compatible
query I rowsort label-4349
SELECT MIN ( DISTINCT + - 73 ) * + 10 AS col0
----
-730

query I rowsort
SELECT ALL - NULLIF ( + 11, - - 17 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT + + 70 * - NULLIF ( + COUNT( * ), - + 57 * - COUNT( * ) + - + 68 + - 96 * - CAST( NULL AS SIGNED ) ) - + 19 + + MIN( DISTINCT + + 72 ) * + - 27 * - 69 + 9 + + - CAST( NULL AS SIGNED ) + - 46 - - 81 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT + + 70 * - NULLIF ( + COUNT ( * ), - + 57 * - COUNT ( * ) + - + 68 + - 96 * - CAST ( NULL AS INTEGER ) ) - + 19 + + MIN ( DISTINCT + + 72 ) * + - 27 * - 69 + 9 + + - CAST ( NULL AS INTEGER ) + - 46 - - 81 col1
----
NULL

query I rowsort
SELECT CASE 45 WHEN 0 THEN - 96 WHEN + 53 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT ALL - 48 * - 8 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL - 48 * - 8 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - ( - - 35 ) AS col0
----
35

query II rowsort
SELECT ALL - 94 AS col2, + 69 AS col0
----
-94
69

query I rowsort
SELECT DISTINCT - ( + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT ALL - 40 * - 41 * COUNT( * )
----
1640

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL - 40 * - 41 * COUNT ( * )
----
1640

query I rowsort
SELECT 2 + CASE - + 42 WHEN + 46 THEN NULL WHEN 92 THEN + 92 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT ALL 33 * + + 63 - - 80 * COUNT( * ) * - - CAST( NULL AS SIGNED ) + + 71 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL 33 * + + 63 - - 80 * COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + + 71 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT - COALESCE ( + + CASE 38 WHEN - 0 THEN 75 WHEN + ( 63 ) THEN + 61 WHEN - COALESCE ( 30, 97 ) * + + 19 THEN - 11 + - 93 + + - 47 + COUNT( * ) + 6 * 41 END, + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT - COALESCE ( + + CASE 38 WHEN - 0 THEN 75 WHEN + ( 63 ) THEN + 61 WHEN - COALESCE ( 30, 97 ) * + + 19 THEN - 11 + - 93 + + - 47 + COUNT ( * ) + 6 * 41 END, + 20 )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-4361
SELECT - COUNT( * ) * + 87 + 57, 81 col1
----
-30
81

skipif mysql # not compatible
query II rowsort label-4361
SELECT - COUNT ( * ) * + 87 + 57, 81 col1
----
-30
81

query I rowsort
SELECT DISTINCT - 50 * + ( 56 ) AS col2
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT - ( MAX( + 26 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT - ( MAX ( + 26 ) )
----
-26

query I rowsort
SELECT 92 + - 75
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT ALL - CAST( - CAST( - 16 AS SIGNED ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL - CAST ( - CAST ( - 16 AS INTEGER ) AS INTEGER )
----
-16

query I rowsort
SELECT 2 + + 60 AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4367
SELECT ALL + COUNT( * ) DIV - 5, 82 col0
----
0
82

skipif mysql # not compatible
query II rowsort label-4367
SELECT ALL + COUNT ( * ) / - 5, 82 col0
----
0
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT - 40 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-4368
SELECT - 40 / - 43
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT DISTINCT + CASE 15 WHEN + - 9 * - ( 45 ) THEN NULL WHEN 90 THEN - COUNT( * ) END, + 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-4369
SELECT DISTINCT + CASE 15 WHEN + - 9 * - ( 45 ) THEN NULL WHEN 90 THEN - COUNT ( * ) END, + 84 AS col0
----
NULL
84

query II rowsort
SELECT - 93 + 6 AS col0, 67 AS col1
----
-87
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT ALL + CAST( NULL AS SIGNED ) / - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + CAST ( NULL AS INTEGER ) / - 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4372
SELECT + 69 + + NULLIF ( + COUNT( * ), - + SUM( + 76 ) ), - 56 * 61 + + COUNT( * ) AS col2
----
70
-3415

skipif mysql # not compatible
query II rowsort label-4372
SELECT + 69 + + NULLIF ( + COUNT ( * ), - + SUM ( + 76 ) ), - 56 * 61 + + COUNT ( * ) AS col2
----
70
-3415

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT CASE NULLIF ( 34, 38 ) WHEN - + 57 * - ( + - COUNT( * ) ) + + 58 THEN 19 * 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT CASE NULLIF ( 34, 38 ) WHEN - + 57 * - ( + - COUNT ( * ) ) + + 58 THEN 19 * 49 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT ALL - CAST( NULL AS SIGNED ) + - CAST( + 34 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( + 34 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 78 + 20
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4376
SELECT - MAX( ALL NULLIF ( + + 47, 26 + - 94 ) ) + ( 64 ) + - ( 51 ) DIV 56 + + - 10 DIV + 11 * 15 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4376
SELECT - MAX ( ALL NULLIF ( + + 47, 26 + - 94 ) ) + ( 64 ) + - ( 51 ) / 56 + + - 10 / + 11 * 15 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL COUNT( DISTINCT + + 4 )
----
1

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL COUNT ( DISTINCT + + 4 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT DISTINCT - COUNT( - ( + 71 ) ) + 55
----
54

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT - COUNT ( - ( + 71 ) ) + 55
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT + NULLIF ( 91, - + 57 ) + + COALESCE ( - ( + - 84 ), - COUNT( * ), - + 49 + - 65 )
----
175

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + NULLIF ( 91, - + 57 ) + + COALESCE ( - ( + - 84 ), - COUNT ( * ), - + 49 + - 65 )
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT + 88 + - ( COUNT( ALL - ( - 14 ) ) ) col0
----
87

skipif mysql # not compatible
query I rowsort label-4380
SELECT + 88 + - ( COUNT ( ALL - ( - 14 ) ) ) col0
----
87

query I rowsort
SELECT ALL + 55 + 11 * - + 26 * 83 AS col1
----
-23683

query I rowsort
SELECT + + 11 + - 2 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL 7 - - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL 7 - - COUNT ( * )
----
8

query I rowsort
SELECT DISTINCT + 23 * 23
----
529

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT DISTINCT + NULLIF ( + MAX( + + 80 ), - ( + 48 ) ) * 94 - 19 * - 23
----
7957

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT + NULLIF ( + MAX ( + + 80 ), - ( + 48 ) ) * 94 - 19 * - 23
----
7957

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT ALL 60 * 27 * + COUNT( * ) - + + 3 AS col0, + 82
----
1617
82

skipif mysql # not compatible
query II rowsort label-4386
SELECT ALL 60 * 27 * + COUNT ( * ) - + + 3 AS col0, + 82
----
1617
82

query I rowsort
SELECT ALL 71 * - 38 AS col0
----
-2698

query I rowsort
SELECT ( 5 ) col1
----
5

query I rowsort
SELECT ( + ( - + 38 ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT + MAX( ALL - + 69 ) * - 65 col2
----
4485

skipif mysql # not compatible
query I rowsort label-4390
SELECT + MAX ( ALL - + 69 ) * - 65 col2
----
4485

query I rowsort
SELECT DISTINCT + CASE - 83 WHEN - 77 THEN 94 END AS col0
----
NULL

query I rowsort
SELECT + 64 * 43
----
2752

query II rowsort
SELECT DISTINCT + 44 AS col1, 18 * + - 3 AS col0
----
44
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4394
SELECT DISTINCT + 89 AS col0, 86 * + 93 * - CAST( NULL AS SIGNED ) AS col2
----
89
NULL

skipif mysql # not compatible
query II rowsort label-4394
SELECT DISTINCT + 89 AS col0, 86 * + 93 * - CAST ( NULL AS INTEGER ) AS col2
----
89
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4395
SELECT ALL COUNT( * ) * - + SUM( - ( + 48 ) ) + + CAST( NULL AS SIGNED ) * - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL COUNT ( * ) * - + SUM ( - ( + 48 ) ) + + CAST ( NULL AS INTEGER ) * - 91 AS col0
----
NULL

query II rowsort
SELECT + 67 AS col2, - 75
----
67
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT 11 * - - 61 - + COALESCE ( + 44, - - 52 ) * COUNT( * ) AS col2
----
627

skipif mysql # not compatible
query I rowsort label-4397
SELECT 11 * - - 61 - + COALESCE ( + 44, - - 52 ) * COUNT ( * ) AS col2
----
627

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT NULLIF ( 62, + CASE - COALESCE ( - 42, 60 / - 11, + + 91 ) WHEN - - MIN( + 82 ) THEN + 43 * - 70 * 18 / + 86 * 1 WHEN + - 45 * - 0 + + COUNT( * ) * + - 7 / NULLIF ( + + 46, 40 / + 38 * - 59 * - 3 ) THEN COUNT( * ) - + 51 ELSE - + 8 * + 42 END + 84 )
----
62

skipif mysql # not compatible
query I rowsort label-4398
SELECT NULLIF ( 62, + CASE - COALESCE ( - 42, 60 / - 11, + + 91 ) WHEN - - MIN ( + 82 ) THEN + 43 * - 70 * 18 / + 86 * 1 WHEN + - 45 * - 0 + + COUNT ( * ) * + - 7 / NULLIF ( + + 46, 40 / + 38 * - 59 * - 3 ) THEN COUNT ( * ) - + 51 ELSE - + 8 * + 42 END + 84 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4399
SELECT NULLIF ( + 72, 8 + + CAST( NULL AS SIGNED ) + 69 )
----
72

skipif mysql # not compatible
query I rowsort label-4399
SELECT NULLIF ( + 72, 8 + + CAST ( NULL AS INTEGER ) + 69 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT - NULLIF ( 40, + 74 ) * ( - MAX( DISTINCT - NULLIF ( - 73, - + 35 ) ) ) + + CAST( - 72 AS SIGNED ) - - NULLIF ( + ( - 87 ), + MIN( 96 ) ) AS col0
----
2761

skipif mysql # not compatible
query I rowsort label-4400
SELECT - NULLIF ( 40, + 74 ) * ( - MAX ( DISTINCT - NULLIF ( - 73, - + 35 ) ) ) + + CAST ( - 72 AS INTEGER ) - - NULLIF ( + ( - 87 ), + MIN ( 96 ) ) AS col0
----
2761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4401
SELECT DISTINCT - + 68 * + COALESCE ( - MIN( DISTINCT + CAST( NULL AS SIGNED ) ), + 60 * 58 * COUNT( * ) - + - 90 ) AS col2
----
-242760

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT - + 68 * + COALESCE ( - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ), + 60 * 58 * COUNT ( * ) - + - 90 ) AS col2
----
-242760

query II rowsort
SELECT - 49 AS col0, 27 * - 98 * 32
----
-49
-84672

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL + 63 * - 46 / - - CASE 71 WHEN - - 9 * 14 * 61 * + + 44 * + - 39 + - COUNT( * ) + COUNT( * ) + + + ( + - 80 ) + - + COUNT( * ) + - + COUNT( * ) + - COUNT( * ) + - 75 / 30 - 84 THEN - ( + - 37 ) WHEN + 85 THEN 10 WHEN 94 THEN - - 69 * - 93 END + NULLIF ( 5, - 98 * - 3 ) + + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL + 63 * - 46 / - - CASE 71 WHEN - - 9 * 14 * 61 * + + 44 * + - 39 + - COUNT ( * ) + COUNT ( * ) + + + ( + - 80 ) + - + COUNT ( * ) + - + COUNT ( * ) + - COUNT ( * ) + - 75 / 30 - 84 THEN - ( + - 37 ) WHEN + 85 THEN 10 WHEN 94 THEN - - 69 * - 93 END + NULLIF ( 5, - 98 * - 3 ) + + 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT - MAX( DISTINCT - - 3 ) - + - 79 DIV + - 44
----
-4

skipif mysql # not compatible
query I rowsort label-4404
SELECT - MAX ( DISTINCT - - 3 ) - + - 79 / + - 44
----
-4

query I rowsort
SELECT - - ( + + 16 ) col1
----
16

query I rowsort
SELECT ALL - + 18 + + - 56 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT - + COUNT( 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-4407
SELECT - + COUNT ( 28 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT - + 71 + - ( - 85 ) - - 61 + + 47 + COUNT( DISTINCT - - 10 ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-4408
SELECT - + 71 + - ( - 85 ) - - 61 + + 47 + COUNT ( DISTINCT - - 10 ) AS col2
----
123

query I rowsort
SELECT DISTINCT 92 - 39 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4410
SELECT DISTINCT + + 1 * + 39 DIV 19 * ( + COUNT( * ) ) col2
----
2

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT + + 1 * + 39 / 19 * ( + COUNT ( * ) ) col2
----
2

query II rowsort
SELECT ALL 67 AS col1, + 31 AS col2
----
67
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4412
SELECT DISTINCT + + NULLIF ( CASE COUNT( * ) WHEN - 85 - ( 47 ) * - + 29 THEN 35 ELSE NULL END, + COALESCE ( + 39, + 96 * + + 86, + COUNT( * ) ) ) * - - MAX( ( - - 57 ) ) / + - 77 / 17 AS col2, 68 AS col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-4412
SELECT DISTINCT + + NULLIF ( CASE COUNT ( * ) WHEN - 85 - ( 47 ) * - + 29 THEN 35 ELSE NULL END, + COALESCE ( + 39, + 96 * + + 86, + COUNT ( * ) ) ) * - - MAX ( ( - - 57 ) ) / + - 77 / 17 AS col2, 68 AS col1
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL - SUM( 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL - SUM ( 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4414
SELECT DISTINCT - COUNT( * ), 29 * 56 - 11 AS col0
----
-1
1613

skipif mysql # not compatible
query II rowsort label-4414
SELECT DISTINCT - COUNT ( * ), 29 * 56 - 11 AS col0
----
-1
1613

query II rowsort
SELECT DISTINCT 13 AS col0, + 26
----
13
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT - - COUNT( * ) + + ( - 54 ) - + MAX( ALL - 11 )
----
-42

skipif mysql # not compatible
query I rowsort label-4416
SELECT - - COUNT ( * ) + + ( - 54 ) - + MAX ( ALL - 11 )
----
-42

query I rowsort
SELECT - ( - + 2 ) + + 60 AS col2
----
62

query I rowsort
SELECT ALL ( 97 ) * - 49 + + 8
----
-4745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN + - ( + 64 ) THEN - - 47 END / - AVG ( DISTINCT + 26 ) * + - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN + - ( + 64 ) THEN - - 47 END / - AVG ( DISTINCT + 26 ) * + - 92 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT ALL 23 * + 6 * - - COALESCE ( CAST( NULL AS SIGNED ), + 74 ) AS col0
----
10212

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL 23 * + 6 * - - COALESCE ( CAST ( NULL AS INTEGER ), + 74 ) AS col0
----
10212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT COALESCE ( + CASE ( - - 27 ) WHEN - + 96 THEN NULL WHEN - ( + 42 ) THEN NULL ELSE + 18 END, 37 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT COALESCE ( + CASE ( - - 27 ) WHEN - + 96 THEN NULL WHEN - ( + 42 ) THEN NULL ELSE + 18 END, 37 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4422
SELECT 11 DIV + + 10 * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4422
SELECT 11 / + + 10 * + COUNT ( * )
----
1

query I rowsort
SELECT + 86 * 57 + - 30 - - 31 AS col0
----
4903

query I rowsort
SELECT ALL ( + ( - 91 ) ) + CASE + 19 WHEN 72 THEN - + 78 END AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + + 57, + - 37 + ( + - 68 ) ) + + - 59 + - 25
----
-27

query I rowsort
SELECT 36 + 54
----
90

query I rowsort
SELECT 72 + - 33
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT ( + ( - 21 ) ) * + 88 + 23 / + ( + 22 ) * CAST( NULL AS SIGNED ) * 69 * - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT ( + ( - 21 ) ) * + 88 + 23 / + ( + 22 ) * CAST ( NULL AS INTEGER ) * 69 * - 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL - NULLIF ( + MIN( 27 ), - 61 ) + - 19
----
-46

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - NULLIF ( + MIN ( 27 ), - 61 ) + - 19
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL - CASE 53 WHEN SUM( DISTINCT - 15 ) / + + 91 THEN - + 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - CASE 53 WHEN SUM ( DISTINCT - 15 ) / + + 91 THEN - + 33 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL - - COUNT( * ) - + 13 col1
----
-12

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - - COUNT ( * ) - + 13 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - 23 + MIN( - CASE + 41 WHEN + 99 THEN - 33 ELSE NULL END ) * + - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT - 23 + MIN ( - CASE + 41 WHEN + 99 THEN - 33 ELSE NULL END ) * + - 5 AS col1
----
NULL

query I rowsort
SELECT 33 * ( 90 ) AS col0
----
2970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4434
SELECT MAX( DISTINCT + 91 ) + - 61 DIV - ( 76 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4434
SELECT MAX ( DISTINCT + 91 ) + - 61 / - ( 76 ) AS col2
----
91

query I rowsort
SELECT - + NULLIF ( 41, 52 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT 23 + COUNT( - 4 )
----
24

skipif mysql # not compatible
query I rowsort label-4436
SELECT 23 + COUNT ( - 4 )
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4437
SELECT ALL - 3 * - CAST( - + 74 AS SIGNED ) + - 44 + - 52 DIV + 39
----
-267

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL - 3 * - CAST ( - + 74 AS INTEGER ) + - 44 + - 52 / + 39
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT + MAX( 14 ) * + 61 + + - 42 + + + SUM( - 68 ) AS col0
----
744

skipif mysql # not compatible
query I rowsort label-4438
SELECT + MAX ( 14 ) * + 61 + + - 42 + + + SUM ( - 68 ) AS col0
----
744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT + CAST( COUNT( * ) AS SIGNED ) + - 69 + + 45 + - 21
----
-44

skipif mysql # not compatible
query I rowsort label-4439
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + - 69 + + 45 + - 21
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT + COUNT( * ) DIV - + 31 + + + 49 * - + 55 * + - COUNT( * )
----
2695

skipif mysql # not compatible
query I rowsort label-4440
SELECT + COUNT ( * ) / - + 31 + + + 49 * - + 55 * + - COUNT ( * )
----
2695

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT ALL - 62 DIV - 11 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - 62 / - 11 AS col1
----
5

query I rowsort
SELECT - 13 * - 78 col2
----
1014

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT DISTINCT + COALESCE ( + + 22, - MIN( 55 ) ) * + 3 + - + 37
----
29

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT + COALESCE ( + + 22, - MIN ( 55 ) ) * + 3 + - + 37
----
29

query I rowsort
SELECT 38 + - 61
----
-23

query I rowsort
SELECT ALL + 18 * 8 AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT COUNT( * ) * - 22 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4446
SELECT COUNT ( * ) * - 22 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL + 46 + COUNT( * ) * - - 53 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL + 46 + COUNT ( * ) * - - 53 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4448
SELECT DISTINCT 37 col1, - 43 + + - 91 + - MAX( DISTINCT - CAST( 6 AS SIGNED ) ) + - COUNT( * ) * + - CASE + - 98 WHEN COUNT( ALL + 38 ) THEN + 92 ELSE NULL END * - 97 * + 68
----
37
NULL

skipif mysql # not compatible
query II rowsort label-4448
SELECT DISTINCT 37 col1, - 43 + + - 91 + - MAX ( DISTINCT - CAST ( 6 AS INTEGER ) ) + - COUNT ( * ) * + - CASE + - 98 WHEN COUNT ( ALL + 38 ) THEN + 92 ELSE NULL END * - 97 * + 68
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT + 37 * COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT + 37 * COUNT ( * )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4450
SELECT ALL COUNT( * ) + 10 * CAST( + ( 58 ) AS SIGNED ) * - 44
----
-25519

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL COUNT ( * ) + 10 * CAST ( + ( 58 ) AS INTEGER ) * - 44
----
-25519

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT - MIN( DISTINCT - - 24 ) + + 6 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT - MIN ( DISTINCT - - 24 ) + + 6 AS col1
----
-18

query I rowsort
SELECT - 32 * + - 42 - - - 84 AS col2
----
1260

query I rowsort
SELECT 27 * - 72
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT 62 * - COUNT( + - 58 )
----
-62

skipif mysql # not compatible
query I rowsort label-4454
SELECT 62 * - COUNT ( + - 58 )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4455
SELECT ALL 69 DIV + 63 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL 69 / + 63 AS col0
----
1

query II rowsort
SELECT DISTINCT 4 * - + ( + 1 ) AS col0, - 29 AS col1
----
-4
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT 63 + - COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT 63 + - COUNT ( * ) AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4458
SELECT ALL 98 - + 12 DIV - COALESCE ( + - 55, CAST( + 65 AS SIGNED ), + ( + - COALESCE ( - ( + - 81 ), + + CASE + COALESCE ( - - 1, - 89 * - 88, + COUNT( * ) ) WHEN + 77 THEN NULL ELSE + 91 * - 57 END, + + 47 ) ), 96 ) AS col2, + 13 * - 59 * + ( - 83 ) AS col0
----
98
63661

skipif mysql # not compatible
query II rowsort label-4458
SELECT ALL 98 - + 12 / - COALESCE ( + - 55, CAST ( + 65 AS INTEGER ), + ( + - COALESCE ( - ( + - 81 ), + + CASE + COALESCE ( - - 1, - 89 * - 88, + COUNT ( * ) ) WHEN + 77 THEN NULL ELSE + 91 * - 57 END, + + 47 ) ), 96 ) AS col2, + 13 * - 59 * + ( - 83 ) AS col0
----
98
63661

query I rowsort
SELECT 9 * + + 22
----
198

query I rowsort
SELECT ALL 29 - - + 91
----
120

query I rowsort
SELECT 55 * - - 5 AS col1
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT - 80 * + 35 * - - ( + - NULLIF ( - + COUNT( * ), - 60 ) ) + 97 AS col0
----
-2703

skipif mysql # not compatible
query I rowsort label-4462
SELECT - 80 * + 35 * - - ( + - NULLIF ( - + COUNT ( * ), - 60 ) ) + 97 AS col0
----
-2703

query II rowsort
SELECT CASE 11 WHEN CASE 93 WHEN + 96 THEN NULL ELSE - ( 82 ) END THEN 49 END * + + 77 - 67 AS col1, + ( - - ( + 7 ) )
----
NULL
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT - NULLIF ( - 33, + + COUNT( * ) / - CAST( 68 AS SIGNED ) )
----
33

skipif mysql # not compatible
query I rowsort label-4464
SELECT - NULLIF ( - 33, + + COUNT ( * ) / - CAST ( 68 AS INTEGER ) )
----
33

query II rowsort
SELECT ALL 29 AS col2, - 17 + - 12 AS col2
----
29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4466
SELECT + CAST( - - 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-4466
SELECT + CAST ( - - 20 AS INTEGER )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT ALL 40 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL 40 / + 63
----
0

query I rowsort
SELECT DISTINCT ( - 88 ) AS col0
----
-88

query I rowsort
SELECT + 37 * 60
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL COUNT( ALL + 76 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL COUNT ( ALL + 76 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - + AVG ( 29 ) / + 61 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - + AVG ( 29 ) / + 61 * - 52
----
NULL

query I rowsort
SELECT ALL 12 * - 20
----
-240

onlyif mysql # aggregate syntax: 
query II rowsort label-4473
SELECT - 42 - - CASE - 70 WHEN - COUNT( * ) THEN - - 88 * - ( + 29 ) END AS col2, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-4473
SELECT - 42 - - CASE - 70 WHEN - COUNT ( * ) THEN - - 88 * - ( + 29 ) END AS col2, 43
----
NULL
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4474
SELECT ALL COALESCE ( 11, + ( CAST( NULL AS SIGNED ) ) ) + MAX( + + 42 ) + + + 8 * NULLIF ( 19, + - 64 )
----
205

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL COALESCE ( 11, + ( CAST ( NULL AS INTEGER ) ) ) + MAX ( + + 42 ) + + + 8 * NULLIF ( 19, + - 64 )
----
205

query I rowsort
SELECT - 18 - + 12 + + 14
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT + COUNT( * ) + 10 * + ( 63 ) AS col2
----
631

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + COUNT ( * ) + 10 * + ( 63 ) AS col2
----
631

query I rowsort
SELECT + 6 * + 99
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL + ( - 31 ) + ( - MAX( ALL + 93 ) )
----
-124

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + ( - 31 ) + ( - MAX ( ALL + 93 ) )
----
-124

query I rowsort
SELECT - 82 + - 81 * ( + 34 ) AS col0
----
-2836

query II rowsort
SELECT - 98 AS col2, - ( - + 67 ) + 49
----
-98
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT COUNT( ALL + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT COUNT ( ALL + 17 )
----
1

query I rowsort
SELECT - 58 + + - ( + + 25 ) AS col2
----
-83

query I rowsort
SELECT ALL - 88 * - - 22 col2
----
-1936

query I rowsort
SELECT 52 * - + 22 + 24
----
-1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT NULLIF ( + 38, - ( - NULLIF ( - 2, + NULLIF ( - COUNT( * ), + - COUNT( - - CAST( NULL AS SIGNED ) ) * + 93 + - 7 ) ) ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4485
SELECT NULLIF ( + 38, - ( - NULLIF ( - 2, + NULLIF ( - COUNT ( * ), + - COUNT ( - - CAST ( NULL AS INTEGER ) ) * + 93 + - 7 ) ) ) ) AS col1
----
38

query I rowsort
SELECT ALL 3 * + 76 - - 53 + 62
----
343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4487
SELECT ALL + CASE + + 27 WHEN + 41 * - 36 * CASE + ( - COUNT( * ) ) WHEN + 90 THEN - 73 - - CASE - COUNT( ALL + - 1 ) WHEN + 92 + + - 5 + 53 THEN NULLIF ( - 9, - - CAST( NULL AS SIGNED ) ) WHEN + 96 * + 21 + - 90 + - 7 * + 52 THEN 41 + - 45 ELSE NULL END + + 37 END + COUNT( * ) * - CASE 17 WHEN 35 THEN NULL ELSE CASE 21 WHEN + - 20 / 41 * 53 * - COUNT( * ) THEN + 44 * - 63 + + 30 + + 50 END END THEN - 58 - + 34 WHEN 97 / COUNT( * ) THEN + 89 + + COUNT( * ) WHEN 95 * - COUNT( * ) - - 59 THEN 55 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL + CASE + + 27 WHEN + 41 * - 36 * CASE + ( - COUNT ( * ) ) WHEN + 90 THEN - 73 - - CASE - COUNT ( ALL + - 1 ) WHEN + 92 + + - 5 + 53 THEN NULLIF ( - 9, - - CAST ( NULL AS INTEGER ) ) WHEN + 96 * + 21 + - 90 + - 7 * + 52 THEN 41 + - 45 ELSE NULL END + + 37 END + COUNT ( * ) * - CASE 17 WHEN 35 THEN NULL ELSE CASE 21 WHEN + - 20 / 41 * 53 * - COUNT ( * ) THEN + 44 * - 63 + + 30 + + 50 END END THEN - 58 - + 34 WHEN 97 / COUNT ( * ) THEN + 89 + + COUNT ( * ) WHEN 95 * - COUNT ( * ) - - 59 THEN 55 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 4 + - - 87 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT + COALESCE ( + 80, + 53, + + COALESCE ( - + MIN( DISTINCT 48 ), + 67, + ( + ( - 58 ) ) ) )
----
80

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT + COALESCE ( + 80, + 53, + + COALESCE ( - + MIN ( DISTINCT 48 ), + 67, + ( + ( - 58 ) ) ) )
----
80

query I rowsort
SELECT ALL + - ( - + 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT + - COUNT( * ) * 54
----
-54

skipif mysql # not compatible
query I rowsort label-4491
SELECT + - COUNT ( * ) * 54
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4492
SELECT DISTINCT + SUM( + + 22 ) DIV + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT + SUM ( + + 22 ) / + COUNT ( * ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT + ( - - 95 ), + NULLIF ( + 30, + NULLIF ( - 22, - 22 * + MAX( + - 6 ) ) * + AVG ( ALL - ( 27 ) ) ) / + 48 * - + ( NULLIF ( CASE + 46 WHEN - 67 + - 45 + + 92 THEN - 75 + - 90 * + 62 * + - 13 ELSE NULL END, 55 * - 20 + 34 ) ) + + COUNT( * ) + 9 + + 84 AS col1
----
95
NULL

skipif mysql # not compatible
query II rowsort label-4493
SELECT + ( - - 95 ), + NULLIF ( + 30, + NULLIF ( - 22, - 22 * + MAX ( + - 6 ) ) * + AVG ( ALL - ( 27 ) ) ) / + 48 * - + ( NULLIF ( CASE + 46 WHEN - 67 + - 45 + + 92 THEN - 75 + - 90 * + 62 * + - 13 ELSE NULL END, 55 * - 20 + 34 ) ) + + COUNT ( * ) + 9 + + 84 AS col1
----
95
NULL

query II rowsort
SELECT ALL + + 79 AS col1, + 82
----
79
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL + - COUNT( 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL + - COUNT ( 73 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT DISTINCT - 28 DIV + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT - 28 / + 39 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4497
SELECT DISTINCT + 95 * 79 * 60 * 13 + + 12 + + CAST( - COUNT( * ) AS SIGNED ) + + 52
----
5853963

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT + 95 * 79 * 60 * 13 + + 12 + + CAST ( - COUNT ( * ) AS INTEGER ) + + 52
----
5853963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT - + CAST( NULL AS SIGNED ) * - MIN( - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT - + CAST ( NULL AS INTEGER ) * - MIN ( - 13 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT + - 26 * MIN( ALL 45 ) - + 81
----
-1251

skipif mysql # not compatible
query I rowsort label-4499
SELECT + - 26 * MIN ( ALL 45 ) - + 81
----
-1251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4500
SELECT + + CASE - + 99 WHEN - + MIN( DISTINCT - 42 ) DIV - 8 THEN + 19 ELSE - CAST( - 81 AS SIGNED ) END DIV + 21 * - - COUNT( * ) * + - COUNT( * ) AS col2, - 78
----
-3
-78

skipif mysql # not compatible
query II rowsort label-4500
SELECT + + CASE - + 99 WHEN - + MIN ( DISTINCT - 42 ) / - 8 THEN + 19 ELSE - CAST ( - 81 AS INTEGER ) END / + 21 * - - COUNT ( * ) * + - COUNT ( * ) AS col2, - 78
----
-3
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL + 46 + + - COUNT( * ) + + - 46 + + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + 46 + + - COUNT ( * ) + + - 46 + + - COUNT ( * ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT + 35 * + 62 * - - CASE - - 78 WHEN COALESCE ( - COUNT( * ), + 26 ) THEN + 68 * + + 38 WHEN + + 45 + - 7 THEN NULL END + + - 91 - - - NULLIF ( + 99, - 65 * - - 94 * + NULLIF ( - COUNT( * ), 61 ) + NULLIF ( 22, - + COUNT( * ) * + - 97 * - NULLIF ( - 24, + - 3 * 45 + - COUNT( * ) ) / - 1 * COUNT( * ) + - - 49 + + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT + 35 * + 62 * - - CASE - - 78 WHEN COALESCE ( - COUNT ( * ), + 26 ) THEN + 68 * + + 38 WHEN + + 45 + - 7 THEN NULL END + + - 91 - - - NULLIF ( + 99, - 65 * - - 94 * + NULLIF ( - COUNT ( * ), 61 ) + NULLIF ( 22, - + COUNT ( * ) * + - 97 * - NULLIF ( - 24, + - 3 * 45 + - COUNT ( * ) ) / - 1 * COUNT ( * ) + - - 49 + + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT + COUNT( * ) + + + 83
----
84

skipif mysql # not compatible
query I rowsort label-4503
SELECT + COUNT ( * ) + + + 83
----
84

query I rowsort
SELECT - 4 * - 3 * - 13 AS col0
----
-156

query I rowsort
SELECT DISTINCT CASE - - 26 WHEN + 38 THEN + AVG ( DISTINCT - + 47 ) END + 78
----
NULL

query I rowsort
SELECT DISTINCT + 43 * 32
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT DISTINCT - SUM( ALL - - COALESCE ( + + 71, ( - 93 ) ) ) * - 65 AS col2
----
4615

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - SUM ( ALL - - COALESCE ( + + 71, ( - 93 ) ) ) * - 65 AS col2
----
4615

query I rowsort
SELECT ALL CASE 6 WHEN + 84 THEN + 34 WHEN 15 THEN + 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + COUNT( ALL 21 ) + + 74
----
75

skipif mysql # not compatible
query I rowsort label-4509
SELECT + COUNT ( ALL 21 ) + + 74
----
75

query I rowsort
SELECT ALL 59 * - - 25 * 31
----
45725

query I rowsort
SELECT - NULLIF ( - 66, - 77 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT - 71 + - 90 + 91 * 54 DIV + 94 AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-4512
SELECT - 71 + - 90 + 91 * 54 / + 94 AS col2
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL COUNT( ALL - + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL COUNT ( ALL - + 72 )
----
1

query I rowsort
SELECT + 52 * + ( 48 ) AS col1
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT SUM( + 79 ) * - 75 AS col1
----
-5925

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT SUM ( + 79 ) * - 75 AS col1
----
-5925

query I rowsort
SELECT ALL - 84 - - 15 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL COUNT( DISTINCT + 2 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL COUNT ( DISTINCT + 2 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT ALL + 11 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL + 11 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + COUNT( - 40 ) * 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4519
SELECT + COUNT ( - 40 ) * 15 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT + ( - 79 ) * - COUNT( * ) - MIN( ALL 3 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4520
SELECT + ( - 79 ) * - COUNT ( * ) - MIN ( ALL 3 ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4521
SELECT - ( MIN( ALL + 8 ) ) / 27 * CAST( NULL AS SIGNED ) * + + 1 + + 13, + ( - 72 ) + - 72 + + + 49 * - 76 AS col1
----
NULL
-3868

skipif mysql # not compatible
query II rowsort label-4521
SELECT - ( MIN ( ALL + 8 ) ) / 27 * CAST ( NULL AS INTEGER ) * + + 1 + + 13, + ( - 72 ) + - 72 + + + 49 * - 76 AS col1
----
NULL
-3868

query I rowsort
SELECT - 89 * + + 47
----
-4183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT ALL + CASE WHEN NOT + CAST( NULL AS SIGNED ) IS NOT NULL THEN + 27 WHEN NOT 77 IN ( + + 51 * + 27, ( + COALESCE ( - + 76, 66, - 14 / 23 * + + 40 * - 41, - 92 + 28 * + COUNT( * ) ) ) ) THEN NULL WHEN + MIN( NULLIF ( - - 71, CAST( NULL AS SIGNED ) ) ) * + - 83 * + 56 IN ( - - ( - + 20 ), 1, - 94 - - 76 / + 9 * - - MAX( + ( + 9 ) ), 41 - - 61 + + + 6 ) THEN NULL END AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL + CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NOT NULL THEN + 27 WHEN NOT 77 IN ( + + 51 * + 27, ( + COALESCE ( - + 76, 66, - 14 / 23 * + + 40 * - 41, - 92 + 28 * + COUNT ( * ) ) ) ) THEN NULL WHEN + MIN ( NULLIF ( - - 71, CAST ( NULL AS INTEGER ) ) ) * + - 83 * + 56 IN ( - - ( - + 20 ), 1, - 94 - - 76 / + 9 * - - MAX ( + ( + 9 ) ), 41 - - 61 + + + 6 ) THEN NULL END AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4524
SELECT ALL - 27 * - MIN( + - 70 ) * - 27 + - 87 - - - 8 + 37 DIV - ( - 19 ) + - 80
----
50856

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - 27 * - MIN ( + - 70 ) * - 27 + - 87 - - - 8 + 37 / - ( - 19 ) + - 80
----
50856

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL - 16 * + - CASE - - 49 WHEN - 76 THEN - - 8 END * + 22 / 5 * COUNT( * ) + + CASE - 77 WHEN 12 THEN - 64 * + 27 + - COUNT( * ) WHEN + 96 THEN 58 * - 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL - 16 * + - CASE - - 49 WHEN - 76 THEN - - 8 END * + 22 / 5 * COUNT ( * ) + + CASE - 77 WHEN 12 THEN - 64 * + 27 + - COUNT ( * ) WHEN + 96 THEN 58 * - 85 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT - - 30 + + CAST( 44 AS SIGNED ) * + 83 col1
----
3682

skipif mysql # not compatible
query I rowsort label-4526
SELECT - - 30 + + CAST ( 44 AS INTEGER ) * + 83 col1
----
3682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4527
SELECT DISTINCT - 95 * - 41 + - CAST( + 75 AS SIGNED ) col0
----
3820

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT - 95 * - 41 + - CAST ( + 75 AS INTEGER ) col0
----
3820

query II rowsort
SELECT ALL - 66 * 52 AS col2, 64 col1
----
-3432
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4529
SELECT - + CASE + - 58 WHEN - 65 * + 88 * - 21 * 85 * 2 + 7 * - + ( ( CAST( 40 AS SIGNED ) ) ) * 68 * 28 THEN NULL ELSE - 8 END * - COALESCE ( ( - - 0 ), - 49 + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4529
SELECT - + CASE + - 58 WHEN - 65 * + 88 * - 21 * 85 * 2 + 7 * - + ( ( CAST ( 40 AS INTEGER ) ) ) * 68 * 28 THEN NULL ELSE - 8 END * - COALESCE ( ( - - 0 ), - 49 + - COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT CASE + 72 WHEN - COUNT( * ) THEN + + NULLIF ( - 12, - - 86 ) - + CAST( + - 94 AS SIGNED ) / - ( - 85 ) WHEN - COALESCE ( - COUNT( * ), - MIN( ALL - 42 ) / - CAST( NULL AS SIGNED ) + + 21, - + 93, - - 84 ) / + - 16 * - 74 + - ( - - 67 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT CASE + 72 WHEN - COUNT ( * ) THEN + + NULLIF ( - 12, - - 86 ) - + CAST ( + - 94 AS INTEGER ) / - ( - 85 ) WHEN - COALESCE ( - COUNT ( * ), - MIN ( ALL - 42 ) / - CAST ( NULL AS INTEGER ) + + 21, - + 93, - - 84 ) / + - 16 * - 74 + - ( - - 67 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ALL + COUNT( * ) + 14 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL + COUNT ( * ) + 14 AS col0
----
15

query II rowsort
SELECT + 23 + - 81 AS col2, 26 AS col2
----
-58
26

query I rowsort
SELECT ALL 76 + - 34 AS col1
----
42

query I rowsort
SELECT 37 * + - 21
----
-777

onlyif mysql # DIV for integer division: 
query I rowsort label-4535
SELECT ALL - 14 + + 10 DIV + 57
----
-14

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - 14 + + 10 / + 57
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT COUNT( * ) - 60 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4536
SELECT COUNT ( * ) - 60 AS col2
----
-59

query II rowsort
SELECT DISTINCT 86 AS col1, - 79 - + 44 * - 12
----
86
449

onlyif mysql # aggregate syntax: 
query II rowsort label-4538
SELECT ALL 37 AS col0, 94 * 83 * - CASE COUNT( * ) WHEN + COUNT( * ) * - 93 THEN COUNT( * ) ELSE NULL END AS col0
----
37
NULL

skipif mysql # not compatible
query II rowsort label-4538
SELECT ALL 37 AS col0, 94 * 83 * - CASE COUNT ( * ) WHEN + COUNT ( * ) * - 93 THEN COUNT ( * ) ELSE NULL END AS col0
----
37
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 19
----
NULL

query II rowsort
SELECT DISTINCT 43, 13 * + + 55 col1
----
43
715

query I rowsort
SELECT ALL 47 - - 29
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT MAX( - 71 ) - COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4542
SELECT MAX ( - 71 ) - COUNT ( * ) AS col0
----
-72

query II rowsort
SELECT 74, 33 * - 60 AS col1
----
74
-1980

query I rowsort
SELECT ALL 11 - - 35 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL + 25 * - ( - - 3 ) * SUM( DISTINCT 75 )
----
-5625

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL + 25 * - ( - - 3 ) * SUM ( DISTINCT 75 )
----
-5625

query I rowsort
SELECT DISTINCT 4 * - CASE + + 83 WHEN 60 THEN - 54 END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 18, 34 * + 57 + + ( + - 52 ) * ( + 7 ) * - 1 + - 17 + 71 AS col1
----
18
2356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4548
SELECT + 31 DIV + + ( MAX( ALL - 57 ) ) - + - 79
----
79

skipif mysql # not compatible
query I rowsort label-4548
SELECT + 31 / + + ( MAX ( ALL - 57 ) ) - + - 79
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-4549
SELECT DISTINCT - - 22 AS col0, 98 DIV - 55 AS col2
----
22
-1

skipif mysql # not compatible
query II rowsort label-4549
SELECT DISTINCT - - 22 AS col0, 98 / - 55 AS col2
----
22
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT + MAX( - 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4550
SELECT + MAX ( - 83 ) AS col0
----
-83

query I rowsort
SELECT DISTINCT 79 + 15 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT + ( - 78 ) * - COUNT( * ) + 58 AS col1
----
136

skipif mysql # not compatible
query I rowsort label-4552
SELECT + ( - 78 ) * - COUNT ( * ) + 58 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT + 79 + COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT + 79 + COUNT ( * ) AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4554
SELECT + + 56 AS col1, + 43 DIV - COUNT( * ) AS col0
----
56
-43

skipif mysql # not compatible
query II rowsort label-4554
SELECT + + 56 AS col1, + 43 / - COUNT ( * ) AS col0
----
56
-43

query I rowsort
SELECT - 64 * - 19 + + 85 AS col0
----
1301

query I rowsort
SELECT ALL + - 89 * 18 AS col2
----
-1602

onlyif mysql # aggregate syntax: 
query II rowsort label-4557
SELECT 61 AS col1, + NULLIF ( 9, - 62 * MIN( ALL 65 ) ) + + + 8
----
61
17

skipif mysql # not compatible
query II rowsort label-4557
SELECT 61 AS col1, + NULLIF ( 9, - 62 * MIN ( ALL 65 ) ) + + + 8
----
61
17

query I rowsort
SELECT + ( 27 ) AS col0
----
27

query I rowsort
SELECT ALL - ( - 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT MIN( + 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4560
SELECT MIN ( + 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL - CASE 44 WHEN - COUNT( * ) THEN NULL ELSE - 4 END
----
4

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - CASE 44 WHEN - COUNT ( * ) THEN NULL ELSE - 4 END
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL COUNT( DISTINCT + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL COUNT ( DISTINCT + 85 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT - 48 * + + 25 * 15 * + COUNT( * ) * - 76 + - 13 * 8 col1
----
1367896

skipif mysql # not compatible
query I rowsort label-4563
SELECT - 48 * + + 25 * 15 * + COUNT ( * ) * - 76 + - 13 * 8 col1
----
1367896

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4564
SELECT ALL - 83 - 32 AS col1, CAST( NULL AS SIGNED ) / - 85 + - 49
----
-115
NULL

skipif mysql # not compatible
query II rowsort label-4564
SELECT ALL - 83 - 32 AS col1, CAST ( NULL AS INTEGER ) / - 85 + - 49
----
-115
NULL

query I rowsort
SELECT ALL 6 * - ( - + 87 )
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT COUNT( * ) * 50 * + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4566
SELECT COUNT ( * ) * 50 * + COUNT ( * )
----
50

query II rowsort
SELECT ALL - 29 * + + 89, 32 AS col1
----
-2581
32

query I rowsort
SELECT 36 * + 45 col2
----
1620

query II rowsort
SELECT ALL 63 * - 31, - 46 col2
----
-1953
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4570
SELECT 55 DIV COUNT( * ) * + 41 AS col2
----
2255

skipif mysql # not compatible
query I rowsort label-4570
SELECT 55 / COUNT ( * ) * + 41 AS col2
----
2255

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT 91 DIV 67 DIV + 28 * - 92
----
0

skipif mysql # not compatible
query I rowsort label-4571
SELECT 91 / 67 / + 28 * - 92
----
0

query I rowsort
SELECT 62 * 9
----
558

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT NULLIF ( + 56, + ( + - 23 ) + 99 ) * 51 DIV + - COALESCE ( - 86, AVG ( DISTINCT + - 23 ) * 38 ) col2
----
33

skipif mysql # not compatible
query I rowsort label-4573
SELECT NULLIF ( + 56, + ( + - 23 ) + 99 ) * 51 / + - COALESCE ( - 86, AVG ( DISTINCT + - 23 ) * 38 ) col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4574
SELECT DISTINCT - 12 * + + SUM( DISTINCT ( CAST( - 48 AS SIGNED ) ) ) AS col1
----
576

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT - 12 * + + SUM ( DISTINCT ( CAST ( - 48 AS INTEGER ) ) ) AS col1
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4575
SELECT DISTINCT + 49 * CASE - 57 WHEN NULLIF ( 34, - ( - 23 ) * - 20 + + 41 ) THEN 11 / - 4 * NULLIF ( + + 31, - + 42 ) + - 37 WHEN - CASE - 60 WHEN - 93 THEN NULL WHEN + 24 * + 72 THEN - 78 WHEN CAST( - 43 AS SIGNED ) + + 53 THEN NULL END THEN NULL WHEN - NULLIF ( + 85, - 89 + + 32 ) * 30 THEN - 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + 49 * CASE - 57 WHEN NULLIF ( 34, - ( - 23 ) * - 20 + + 41 ) THEN 11 / - 4 * NULLIF ( + + 31, - + 42 ) + - 37 WHEN - CASE - 60 WHEN - 93 THEN NULL WHEN + 24 * + 72 THEN - 78 WHEN CAST ( - 43 AS INTEGER ) + + 53 THEN NULL END THEN NULL WHEN - NULLIF ( + 85, - 89 + + 32 ) * 30 THEN - 97 END AS col2
----
NULL

query I rowsort
SELECT ALL + 10 + - - 18 col1
----
28

query I rowsort
SELECT DISTINCT + 52 + 93 col0
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT DISTINCT - ( COUNT( * ) ) AS col2, - 66 * - - 25 * 21 AS col2
----
-1
-34650

skipif mysql # not compatible
query II rowsort label-4578
SELECT DISTINCT - ( COUNT ( * ) ) AS col2, - 66 * - - 25 * 21 AS col2
----
-1
-34650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT DISTINCT + 79 * + 14 - - CAST( NULL AS SIGNED ) + - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT + 79 * + 14 - - CAST ( NULL AS INTEGER ) + - + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT + COUNT( * ) * + 86 - - - 79 - + 4 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4580
SELECT + COUNT ( * ) * + 86 - - - 79 - + 4 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT + CAST( + 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-4581
SELECT + CAST ( + 86 AS INTEGER )
----
86

query I rowsort
SELECT DISTINCT 20 * - + 43 + 99
----
-761

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL CASE - 77 WHEN + + 58 THEN - 86 * COUNT( * ) + 88 WHEN COUNT( * ) * 68 THEN NULL ELSE NULL END * + 48 * - - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL CASE - 77 WHEN + + 58 THEN - 86 * COUNT ( * ) + 88 WHEN COUNT ( * ) * 68 THEN NULL ELSE NULL END * + 48 * - - 5 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 92 * 65 + + 93 + + + 17 + - 8 * + 26 + - 53 - + + 2 AS col1
----
-6133

query II rowsort
SELECT - 66 * - + 24 * 37 - + - 84 AS col0, + 82 * + 71 AS col2
----
58692
5822

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL + - CASE + 29 WHEN - - 24 THEN - + CASE COUNT( * ) WHEN 77 THEN + 95 END END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL + - CASE + 29 WHEN - - 24 THEN - + CASE COUNT ( * ) WHEN 77 THEN + 95 END END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT + 67 * 19 DIV 51 + + 62 + + 33 + + + 35 col0
----
154

skipif mysql # not compatible
query I rowsort label-4587
SELECT + 67 * 19 / 51 + + 62 + + 33 + + + 35 col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT + + MAX( + - 96 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4588
SELECT + + MAX ( + - 96 ) AS col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4589
SELECT + 94 DIV + + 18
----
5

skipif mysql # not compatible
query I rowsort label-4589
SELECT + 94 / + + 18
----
5

query I rowsort
SELECT - 48 * + 80 * 6 * + 4
----
-92160

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT - 44 * 27 DIV + + 75 + - 30
----
-45

skipif mysql # not compatible
query I rowsort label-4591
SELECT - 44 * 27 / + + 75 + - 30
----
-45

query I rowsort
SELECT - COALESCE ( + + 75, - 47 ) * 10 AS col0
----
-750

query I rowsort
SELECT ALL + NULLIF ( + 20, + 80 / + - 61 ) AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4594
SELECT ALL + 72, + 30 DIV + - SUM( DISTINCT + 90 ) + NULLIF ( - 57, - + CAST( - - 80 AS SIGNED ) * + 13 ) AS col1
----
72
-57

skipif mysql # not compatible
query II rowsort label-4594
SELECT ALL + 72, + 30 / + - SUM ( DISTINCT + 90 ) + NULLIF ( - 57, - + CAST ( - - 80 AS INTEGER ) * + 13 ) AS col1
----
72
-57

query II rowsort
SELECT ALL + 11, + 23 AS col1
----
11
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT DISTINCT + 43 * COUNT( - 58 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + 43 * COUNT ( - 58 ) AS col1
----
43

query I rowsort
SELECT ALL NULLIF ( + + 57, ( - NULLIF ( 77, + 23 ) ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT - CASE WHEN NOT 52 IS NOT NULL AND NOT - 10 * NULLIF ( 18, + 70 / - 4 ) >= NULL THEN - + 31 + + - COUNT( * ) END * 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT - CASE WHEN NOT 52 IS NOT NULL AND NOT - 10 * NULLIF ( 18, + 70 / - 4 ) >= NULL THEN - + 31 + + - COUNT ( * ) END * 42 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4599
SELECT - MAX( ALL - - 52 ) + CAST( NULL AS SIGNED ) + - - ( + + COUNT( * ) ) + + + 56 + + + 33 - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT - MAX ( ALL - - 52 ) + CAST ( NULL AS INTEGER ) + - - ( + + COUNT ( * ) ) + + + 56 + + + 33 - - 71
----
NULL

query I rowsort
SELECT + 52 * - - NULLIF ( 14, - 59 ) col2
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT - 58 * - - MIN( - + NULLIF ( 35, + - 48 * ( 64 ) ) ) * + 92
----
186760

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 58 * - - MIN ( - + NULLIF ( 35, + - 48 * ( 64 ) ) ) * + 92
----
186760

query I rowsort
SELECT ALL NULLIF ( + 69, + COALESCE ( + NULLIF ( 64, + 92 ), + + 97, + 99 ) * + + 74 ) AS col1
----
69

query I rowsort
SELECT - 69 - 59 + 31 - + 23 * - - 72
----
-1753

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT - COUNT( * ) + - NULLIF ( - 85, - 61 * + COUNT( * ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT - COUNT ( * ) + - NULLIF ( - 85, - 61 * + COUNT ( * ) ) AS col1
----
84

query I rowsort
SELECT DISTINCT + 80 + + 31 AS col0
----
111

query I rowsort
SELECT ALL - 26 + 52
----
26

query I rowsort
SELECT ALL ( + - 75 )
----
-75

query II rowsort
SELECT 29 col2, + 73
----
29
73

query I rowsort
SELECT ALL + 26 + 5 AS col1
----
31

query I rowsort
SELECT - ( - - 61 ) - 85 + + - 30 col0
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4611
SELECT ALL CASE 71 WHEN - + 2 + + - 72 * - 62 THEN + CASE + + ( + ( COUNT( * ) ) ) WHEN COUNT( * ) THEN - 10 * + CAST( + - COALESCE ( + - 69, 66, COUNT( * ), 45 ) AS SIGNED ) ELSE - 85 + - - 76 * + 77 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL CASE 71 WHEN - + 2 + + - 72 * - 62 THEN + CASE + + ( + ( COUNT ( * ) ) ) WHEN COUNT ( * ) THEN - 10 * + CAST ( + - COALESCE ( + - 69, 66, COUNT ( * ), 45 ) AS INTEGER ) ELSE - 85 + - - 76 * + 77 END ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 86 + 38 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - 83 - - + 19 + + COUNT( * ) - + + 16 * + ( 44 )
----
-767

skipif mysql # not compatible
query I rowsort label-4613
SELECT - 83 - - + 19 + + COUNT ( * ) - + + 16 * + ( 44 )
----
-767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4614
SELECT ALL - + 85 + + + COALESCE ( 52, - CAST( NULL AS SIGNED ) + COUNT( * ) ) AS col2, 81
----
-33
81

skipif mysql # not compatible
query II rowsort label-4614
SELECT ALL - + 85 + + + COALESCE ( 52, - CAST ( NULL AS INTEGER ) + COUNT ( * ) ) AS col2, 81
----
-33
81

query I rowsort
SELECT ALL + 23 * - COALESCE ( + - COALESCE ( + 55, 80 ), + 45 * - 37 ) AS col1
----
1265

query I rowsort
SELECT - 27 + 14 AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4617
SELECT + 10 DIV - - 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT + 10 / - - 23 AS col1
----
0

query I rowsort
SELECT + + 68 * + ( 5 ) AS col2
----
340

query I rowsort
SELECT - - 98 + - 49
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT + - 93 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT + - 93 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4621
SELECT DISTINCT + - COUNT( - ( - - 63 ) ) * 91 DIV + 16
----
-5

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT + - COUNT ( - ( - - 63 ) ) * 91 / + 16
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT ALL 18 DIV + + 49 * + 78 + - 91
----
-91

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL 18 / + + 49 * + 78 + - 91
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4623
SELECT - NULLIF ( + 2, + 59 * - - 24 ) DIV + 92 + + - 84 AS col1, ( - + MAX( ALL - - 62 ) )
----
-84
-62

skipif mysql # not compatible
query II rowsort label-4623
SELECT - NULLIF ( + 2, + 59 * - - 24 ) / + 92 + + - 84 AS col1, ( - + MAX ( ALL - - 62 ) )
----
-84
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT ALL + MIN( - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL + MIN ( - 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4625
SELECT ALL + 96 DIV + MAX( 35 ) - - + 60 + + 41 col0
----
103

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL + 96 / + MAX ( 35 ) - - + 60 + + 41 col0
----
103

query I rowsort
SELECT + 12 + 39 + - 9
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT DISTINCT + COUNT( + - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT + COUNT ( + - 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - + 72 * - 60 / - 78 / + CASE + 98 WHEN + COUNT( * ) THEN + 69 * 96 WHEN + + 24 / - COUNT( * ) + - - 57 THEN - COUNT( * ) END * - - 76 + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT - + 72 * - 60 / - 78 / + CASE + 98 WHEN + COUNT ( * ) THEN + 69 * 96 WHEN + + 24 / - COUNT ( * ) + - - 57 THEN - COUNT ( * ) END * - - 76 + - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL - 61 * COUNT( ( + - 33 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL - 61 * COUNT ( ( + - 33 ) )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4630
SELECT 65, - 66 * COUNT( * ) AS col0
----
65
-66

skipif mysql # not compatible
query II rowsort label-4630
SELECT 65, - 66 * COUNT ( * ) AS col0
----
65
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT - ( + 62 ) DIV 83 * - - 56 + + - 47
----
-47

skipif mysql # not compatible
query I rowsort label-4631
SELECT - ( + 62 ) / 83 * - - 56 + + - 47
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT + 38 DIV - 10 + - 4
----
-7

skipif mysql # not compatible
query I rowsort label-4632
SELECT + 38 / - 10 + - 4
----
-7

query I rowsort
SELECT ALL 30 * 20
----
600

query I rowsort
SELECT + 36 * - 3
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL 42 * - ( - COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL 42 * - ( - COUNT ( * ) )
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-4636
SELECT DISTINCT + 14 AS col2, 5 * 43 DIV 59 AS col0
----
14
3

skipif mysql # not compatible
query II rowsort label-4636
SELECT DISTINCT + 14 AS col2, 5 * 43 / 59 AS col0
----
14
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT DISTINCT + 88, + MIN( - 86 ) AS col0
----
88
-86

skipif mysql # not compatible
query II rowsort label-4637
SELECT DISTINCT + 88, + MIN ( - 86 ) AS col0
----
88
-86

query I rowsort
SELECT 57 * - 96 + + ( - + 72 )
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT + 70 + - COUNT( - ( 90 ) ) * + 3 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4639
SELECT + 70 + - COUNT ( - ( 90 ) ) * + 3 AS col0
----
67

query II rowsort
SELECT - 99 AS col2, - 36 AS col2
----
-99
-36

query I rowsort
SELECT - 52 - 12 + - - 59 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT NULLIF ( + - COALESCE ( 45, + COUNT( ALL 60 ) ), + 32 + + 83 + + 31 * - 62 )
----
-45

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT NULLIF ( + - COALESCE ( 45, + COUNT ( ALL 60 ) ), + 32 + + 83 + + 31 * - 62 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL + 67 * + + ( + NULLIF ( - COUNT( * ), MIN( - 28 ) / + COUNT( ALL - 8 ) * + 84 + NULLIF ( 53, 33 ) - + + 49 + + COUNT( * ) + + 72 * - 87 * - 61 * 45 * - + 68 - + + 92 * + - 9 ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL + 67 * + + ( + NULLIF ( - COUNT ( * ), MIN ( - 28 ) / + COUNT ( ALL - 8 ) * + 84 + NULLIF ( 53, 33 ) - + + 49 + + COUNT ( * ) + + 72 * - 87 * - 61 * 45 * - + 68 - + + 92 * + - 9 ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4644
SELECT ALL 20 * - - 86 + - NULLIF ( + 65, + 63 - - + MAX( 73 ) ) + 59 * 29 DIV + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL 20 * - - 86 + - NULLIF ( + 65, + 63 - - + MAX ( 73 ) ) + 59 * 29 / + - COUNT ( * )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4645
SELECT ALL - COUNT( * ) * + 22 + + + CAST( 56 AS SIGNED ) * - 2
----
-134

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - COUNT ( * ) * + 22 + + + CAST ( 56 AS INTEGER ) * - 2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL MAX( DISTINCT - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL MAX ( DISTINCT - 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT - ( + + MIN( + - 1 ) ) + - 7 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4647
SELECT - ( + + MIN ( + - 1 ) ) + - 7 AS col2
----
-6

query I rowsort
SELECT ALL - 4 * - 10 * - 29
----
-1160

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT - 68 + - 24 - 69 + - + COUNT( * ) AS col0
----
-162

skipif mysql # not compatible
query I rowsort label-4649
SELECT - 68 + - 24 - 69 + - + COUNT ( * ) AS col0
----
-162

query I rowsort
SELECT ALL + 8 + 72
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4651
SELECT DISTINCT - 50 + - - COALESCE ( 86, - 50 + COUNT( * ) DIV - + 22 - 57 - - NULLIF ( + 1, 30 ) ) col2
----
36

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT - 50 + - - COALESCE ( 86, - 50 + COUNT ( * ) / - + 22 - 57 - - NULLIF ( + 1, 30 ) ) col2
----
36

query I rowsort
SELECT 8 * 2 AS col1
----
16

query II rowsort
SELECT ALL 0 AS col1, + 17 * 38 AS col2
----
0
646

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL COUNT( * ) - + - 85 * 10 AS col1
----
851

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL COUNT ( * ) - + - 85 * 10 AS col1
----
851

query I rowsort
SELECT DISTINCT + NULLIF ( - 73, - 38 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT ( + - COUNT( DISTINCT - - 21 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT ( + - COUNT ( DISTINCT - - 21 ) ) AS col0
----
-1

query I rowsort
SELECT - 83 * + + 67 - 57 AS col2
----
-5618

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT - - COUNT( DISTINCT - ( - 67 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4658
SELECT - - COUNT ( DISTINCT - ( - 67 ) ) AS col0
----
1

query I rowsort
SELECT + + ( + - 58 ) col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4660
SELECT ALL + COALESCE ( 41, - - COUNT( * ) * CAST( + - 64 AS SIGNED ) - + 25, MAX( DISTINCT + - 78 ), CAST( + COUNT( * ) AS SIGNED ) ) * - 40 * + - 88 + - + 11 + + - 40, - 38 col1
----
144269
-38

skipif mysql # not compatible
query II rowsort label-4660
SELECT ALL + COALESCE ( 41, - - COUNT ( * ) * CAST ( + - 64 AS INTEGER ) - + 25, MAX ( DISTINCT + - 78 ), CAST ( + COUNT ( * ) AS INTEGER ) ) * - 40 * + - 88 + - + 11 + + - 40, - 38 col1
----
144269
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4661
SELECT + 19 * + + MIN( 44 ) + - 57 + - 11 DIV + + 41 AS col2
----
779

skipif mysql # not compatible
query I rowsort label-4661
SELECT + 19 * + + MIN ( 44 ) + - 57 + - 11 / + + 41 AS col2
----
779

onlyif mysql # aggregate syntax: 
query II rowsort label-4662
SELECT - 62 AS col0, - 79 + SUM( 60 ) + - + 63 AS col2
----
-62
-82

skipif mysql # not compatible
query II rowsort label-4662
SELECT - 62 AS col0, - 79 + SUM ( 60 ) + - + 63 AS col2
----
-62
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL - - COUNT( * ) * COUNT( - + 88 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL - - COUNT ( * ) * COUNT ( - + 88 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT + 94 * - 32 + + 94 - 69 + + NULLIF ( 74, + 93 * - 38 ) + 19 DIV 5 * - 78 * 48
----
-14141

skipif mysql # not compatible
query I rowsort label-4664
SELECT + 94 * - 32 + + 94 - 69 + + NULLIF ( 74, + 93 * - 38 ) + 19 / 5 * - 78 * 48
----
-14141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4665
SELECT - 33 * - COUNT( * ) DIV - 55 - + 82 + + 41 * + - 23 AS col0, - SUM( + 98 ) * + MIN( - 27 )
----
-1025
2646

skipif mysql # not compatible
query II rowsort label-4665
SELECT - 33 * - COUNT ( * ) / - 55 - + 82 + + 41 * + - 23 AS col0, - SUM ( + 98 ) * + MIN ( - 27 )
----
-1025
2646

query I rowsort
SELECT ALL - 15 * - ( 70 ) AS col2
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT - 85 * 68 + + COUNT( * )
----
-5779

skipif mysql # not compatible
query I rowsort label-4667
SELECT - 85 * 68 + + COUNT ( * )
----
-5779

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4668
SELECT DISTINCT - 8 AS col1, - 82 + - 91 * ( 7 ) * - + NULLIF ( - CAST( NULL AS DECIMAL ), CAST( NULL AS DECIMAL ) + 36 ) AS col2
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-4668
SELECT DISTINCT - 8 AS col1, - 82 + - 91 * ( 7 ) * - + NULLIF ( - CAST ( NULL AS REAL ), CAST ( NULL AS REAL ) + 36 ) AS col2
----
-8
NULL

query I rowsort
SELECT 36 * + 42 * + 99 AS col2
----
149688

query I rowsort
SELECT 72 * + + 95 AS col0
----
6840

query I rowsort
SELECT ALL 88 + - + 5
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-4672
SELECT ALL 23 + - COALESCE ( + - 6, + 83 + + CASE - + 41 WHEN - - COUNT( * ) THEN NULL WHEN + 68 * - + ( + 2 ) THEN - 63 * + SUM( ALL - - 23 ) ELSE + 81 - - 86 END + 83 * - COUNT( * ) ) col1, + MIN( + + 79 )
----
29
79

skipif mysql # not compatible
query II rowsort label-4672
SELECT ALL 23 + - COALESCE ( + - 6, + 83 + + CASE - + 41 WHEN - - COUNT ( * ) THEN NULL WHEN + 68 * - + ( + 2 ) THEN - 63 * + SUM ( ALL - - 23 ) ELSE + 81 - - 86 END + 83 * - COUNT ( * ) ) col1, + MIN ( + + 79 )
----
29
79

query I rowsort
SELECT 71 * - 12 + - 55
----
-907

query I rowsort
SELECT ALL 34 + COALESCE ( 94, + 53 * - 46 ) AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4675
SELECT ALL COUNT( * ) + + 38 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL COUNT ( * ) + + 38 * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 22 * + - 93
----
-2046

query I rowsort
SELECT DISTINCT 39 + + 14 col2
----
53

query I rowsort
SELECT ALL 74 + - 17 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT COUNT( 25 ) - - 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4679
SELECT COUNT ( 25 ) - - 95 AS col0
----
96

query I rowsort
SELECT - 18 - + 92
----
-110

query I rowsort
SELECT - 92 * + 53 AS col1
----
-4876

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT 76 + MIN( ALL COALESCE ( + 45, + 34 ) ) AS col2
----
121

skipif mysql # not compatible
query I rowsort label-4682
SELECT 76 + MIN ( ALL COALESCE ( + 45, + 34 ) ) AS col2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4683
SELECT DISTINCT + + 93 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT + + 93 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 71 - - 38 AS col2
----
-33

query I rowsort
SELECT 53 * + 84
----
4452

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT - 58 * 70 AS col0, MIN( ALL + 86 ) col1
----
-4060
86

skipif mysql # not compatible
query II rowsort label-4686
SELECT - 58 * 70 AS col0, MIN ( ALL + 86 ) col1
----
-4060
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT COUNT( * ) * - - COUNT( * ) - - 99
----
100

skipif mysql # not compatible
query I rowsort label-4687
SELECT COUNT ( * ) * - - COUNT ( * ) - - 99
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT ALL + CASE + + 52 WHEN + 65 THEN - 47 + - + CASE - 21 WHEN - 79 THEN - CAST( NULL AS SIGNED ) ELSE NULL END WHEN + 16 THEN 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL + CASE + + 52 WHEN + 65 THEN - 47 + - + CASE - 21 WHEN - 79 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END WHEN + 16 THEN 85 END
----
NULL

query I rowsort
SELECT 46 - + 73 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT 33 * ( + COUNT( * ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4690
SELECT 33 * ( + COUNT ( * ) ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT 25 + + + 58 + ( + 57 ) * + - COALESCE ( COUNT( * ), - NULLIF ( 32, + 74 ) * - ( 5 ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4691
SELECT 25 + + + 58 + ( + 57 ) * + - COALESCE ( COUNT ( * ), - NULLIF ( 32, + 74 ) * - ( 5 ) ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - COUNT( * ) * - - 21 col1
----
-21

skipif mysql # not compatible
query I rowsort label-4692
SELECT - COUNT ( * ) * - - 21 col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT 71 + + + COUNT( * ) * 93
----
164

skipif mysql # not compatible
query I rowsort label-4693
SELECT 71 + + + COUNT ( * ) * 93
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-4694
SELECT - 80 DIV + + 71 DIV 44 * + 46 * - 10 + + 92
----
92

skipif mysql # not compatible
query I rowsort label-4694
SELECT - 80 / + + 71 / 44 * + 46 * - 10 + + 92
----
92

query I rowsort
SELECT DISTINCT - - NULLIF ( - 40, 48 * + 64 * + 97 )
----
-40

query II rowsort
SELECT ALL - ( - 75 ) AS col0, ( + 28 ) AS col0
----
75
28

query I rowsort
SELECT DISTINCT + 53 * + 2 + 94
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT - 70 * + 94 + - ( + ( + - MAX( ALL - 17 ) ) )
----
-6597

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT - 70 * + 94 + - ( + ( + - MAX ( ALL - 17 ) ) )
----
-6597

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT + MAX( DISTINCT + 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4699
SELECT + MAX ( DISTINCT + 59 ) AS col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4700
SELECT 72 DIV - 26 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4700
SELECT 72 / - 26 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT + 84 * + + COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + 84 * + + COUNT ( * ) AS col0
----
84

query I rowsort
SELECT 55 * + NULLIF ( - 68, + - 84 - - 37 - + 80 / 58 )
----
-3740

query I rowsort
SELECT ALL + 66 * + 63
----
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT 71 + + CASE - 37 WHEN 81 THEN NULL ELSE ( - 69 ) END - - + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4704
SELECT 71 + + CASE - 37 WHEN 81 THEN NULL ELSE ( - 69 ) END - - + COUNT ( * ) AS col2
----
3

query II rowsort
SELECT DISTINCT - 94 + - + 46 + 70, 24 * 21 + + - ( 20 ) AS col1
----
-70
484

onlyif mysql # aggregate syntax: 
query II rowsort label-4706
SELECT + 52 AS col2, 49 - ( + - MAX( - 55 ) ) AS col1
----
52
-6

skipif mysql # not compatible
query II rowsort label-4706
SELECT + 52 AS col2, 49 - ( + - MAX ( - 55 ) ) AS col1
----
52
-6

query II rowsort
SELECT ALL - 61 col0, - 62 + - 68 AS col0
----
-61
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT + MAX( + + ( 20 ) ) + COUNT( * ) * 67
----
87

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + MAX ( + + ( 20 ) ) + COUNT ( * ) * 67
----
87

query II rowsort
SELECT 6 + - 19 + - 45 * 32 AS col0, + 31
----
-1453
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ALL - COUNT( * ) + - 20 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL - COUNT ( * ) + - 20 AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4711
SELECT ALL + 76 - - - COUNT( * ) / - 96 + + 12 * - + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL + 76 - - - COUNT ( * ) / - 96 + + 12 * - + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT DISTINCT MIN( DISTINCT + 60 ) * 6 AS col1
----
360

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT MIN ( DISTINCT + 60 ) * 6 AS col1
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT MIN( ALL + 9 ) * + 15 + - + COUNT( * ) * - + COUNT( * )
----
136

skipif mysql # not compatible
query I rowsort label-4713
SELECT MIN ( ALL + 9 ) * + 15 + - + COUNT ( * ) * - + COUNT ( * )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT ALL - 31 - + COUNT( * ) - - + 68 * - + 30 AS col0
----
-2072

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL - 31 - + COUNT ( * ) - - + 68 * - + 30 AS col0
----
-2072

query II rowsort
SELECT ALL + 4 AS col2, + 44 * + 22
----
4
968

query I rowsort
SELECT ALL - ( 28 ) col0
----
-28

query I rowsort
SELECT + 65 + - - 42 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT - + COUNT( DISTINCT + 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-4718
SELECT - + COUNT ( DISTINCT + 36 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT DISTINCT + COALESCE ( - 0, - COUNT( DISTINCT - 60 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT + COALESCE ( - 0, - COUNT ( DISTINCT - 60 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT - COUNT( - ( - - CASE - 17 WHEN ( - 10 ) THEN - - 22 * - 85 + + 46 END ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT - COUNT ( - ( - - CASE - 17 WHEN ( - 10 ) THEN - - 22 * - 85 + + 46 END ) ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT + - 79 + - 72 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT + - 79 + - 72 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT ALL - ( + 64 ) DIV - 36 - + 18
----
-17

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - ( + 64 ) / - 36 - + 18
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4723
SELECT + - 60 * - - CAST( NULL AS SIGNED ) * - - 93 AS col2, + MIN( ALL + 38 ) + 72 col2, + ( 39 ) AS col2
----
NULL
110
39

skipif mysql # not compatible
query III rowsort label-4723
SELECT + - 60 * - - CAST ( NULL AS INTEGER ) * - - 93 AS col2, + MIN ( ALL + 38 ) + 72 col2, + ( 39 ) AS col2
----
NULL
110
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4724
SELECT + 81 AS col0, MIN( ALL + 27 )
----
81
27

skipif mysql # not compatible
query II rowsort label-4724
SELECT + 81 AS col0, MIN ( ALL + 27 )
----
81
27

query I rowsort
SELECT ALL + 32 * - 70
----
-2240

query I rowsort
SELECT ALL - 74 + - 18 * 79 AS col0
----
-1496

onlyif mysql # aggregate syntax: 
query II rowsort label-4727
SELECT - - 9 AS col1, - COUNT( * ) + 55
----
9
54

skipif mysql # not compatible
query II rowsort label-4727
SELECT - - 9 AS col1, - COUNT ( * ) + 55
----
9
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT ( - 64 ) * + - 54 DIV + COUNT( * ) + - COUNT( * ) * - 35
----
3491

skipif mysql # not compatible
query I rowsort label-4728
SELECT ( - 64 ) * + - 54 / + COUNT ( * ) + - COUNT ( * ) * - 35
----
3491

onlyif mysql # aggregate syntax: 
query II rowsort label-4729
SELECT ( 89 ), 12 * + - COUNT( * ) AS col2
----
89
-12

skipif mysql # not compatible
query II rowsort label-4729
SELECT ( 89 ), 12 * + - COUNT ( * ) AS col2
----
89
-12

query I rowsort
SELECT ALL ( - 89 ) * - 72 * - - 27 + - ( - + 72 )
----
173088

query I rowsort
SELECT 7 * 92 - - 0
----
644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4732
SELECT + 52 DIV ( + + COALESCE ( + 47, + COUNT( * ) - + + ( - - 33 ), SUM( + CASE + - 52 WHEN 26 THEN 75 * - - 5 END ) DIV 33 * + 88 + - 36, + - 92 * + 23 * SUM( + 69 ) * - + 44 + - - 87 + + + 16 + + - 82 ) ) - 75 + + - 3 col2
----
-77

skipif mysql # not compatible
query I rowsort label-4732
SELECT + 52 / ( + + COALESCE ( + 47, + COUNT ( * ) - + + ( - - 33 ), SUM ( + CASE + - 52 WHEN 26 THEN 75 * - - 5 END ) / 33 * + 88 + - 36, + - 92 * + 23 * SUM ( + 69 ) * - + 44 + - - 87 + + + 16 + + - 82 ) ) - 75 + + - 3 col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL 64 * COUNT( * ) + + 62 * 16 + + 88 + + 2 * 53 AS col2
----
1250

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL 64 * COUNT ( * ) + + 62 * 16 + + 88 + + 2 * 53 AS col2
----
1250

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT + ( SUM( + - 21 ) ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-4734
SELECT + ( SUM ( + - 21 ) ) col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT DISTINCT 14 * + 64 + + 83 + - 96 * COUNT( * ) AS col0
----
883

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT 14 * + 64 + + 83 + - 96 * COUNT ( * ) AS col0
----
883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT ALL CASE + - 4 WHEN - - 57 THEN - 86 * + + MIN( - 94 ) + + - 83 WHEN CASE + 48 WHEN CASE + 28 WHEN 23 * - + 18 + - 6 + + CAST( NULL AS SIGNED ) + - 19 + COALESCE ( 65, + + NULLIF ( - 43, + + COUNT( * ) / + - 89 ) * 1 * - 88 / + 27 - + COUNT( * ), + - 22 * 82 * 83 + 69 ) + - AVG ( ALL + CAST( NULL AS SIGNED ) ) + 58 THEN + COALESCE ( + 68, - ( + 1 ), - 20 - + COUNT( * ), 31 * - - 2 - COUNT( * ) * + 17 + + 88 ) ELSE 9 + + - 25 - + 33 - + + COUNT( * ) * + 78 + 47 * 51 END THEN NULL WHEN + 32 THEN NULL WHEN 67 THEN 22 END + NULLIF ( - NULLIF ( + 9, - MAX( ALL - NULLIF ( + 75, + 36 ) ) ) + - 15, - 86 ) THEN NULL ELSE NULL END * + 89 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL CASE + - 4 WHEN - - 57 THEN - 86 * + + MIN ( - 94 ) + + - 83 WHEN CASE + 48 WHEN CASE + 28 WHEN 23 * - + 18 + - 6 + + CAST ( NULL AS INTEGER ) + - 19 + COALESCE ( 65, + + NULLIF ( - 43, + + COUNT ( * ) / + - 89 ) * 1 * - 88 / + 27 - + COUNT ( * ), + - 22 * 82 * 83 + 69 ) + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) + 58 THEN + COALESCE ( + 68, - ( + 1 ), - 20 - + COUNT ( * ), 31 * - - 2 - COUNT ( * ) * + 17 + + 88 ) ELSE 9 + + - 25 - + 33 - + + COUNT ( * ) * + 78 + 47 * 51 END THEN NULL WHEN + 32 THEN NULL WHEN 67 THEN 22 END + NULLIF ( - NULLIF ( + 9, - MAX ( ALL - NULLIF ( + 75, + 36 ) ) ) + - 15, - 86 ) THEN NULL ELSE NULL END * + 89 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT COALESCE ( - 48, + CAST( 65 AS SIGNED ) * + 82 )
----
-48

skipif mysql # not compatible
query I rowsort label-4737
SELECT COALESCE ( - 48, + CAST ( 65 AS INTEGER ) * + 82 )
----
-48

query I rowsort
SELECT - 28 - 9 AS col2
----
-37

query I rowsort
SELECT - 40 * ( 97 )
----
-3880

query III rowsort
SELECT - 45 * + - 0 col0, 55 * - 15 + + 88, 84 - 7 - 91 - + - 97 * + ( 29 ) AS col2
----
0
-737
2799

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL - 36 * + - CASE + 73 WHEN - 17 * - + 45 + - 29 + - 14 THEN NULL WHEN 79 THEN + - 64 ELSE NULL END * COUNT( - 61 ) + + ( - - 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - 36 * + - CASE + 73 WHEN - 17 * - + 45 + - 29 + - 14 THEN NULL WHEN 79 THEN + - 64 ELSE NULL END * COUNT ( - 61 ) + + ( - - 85 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + 44 * - COUNT( * ) + - + 27 col1
----
-71

skipif mysql # not compatible
query I rowsort label-4742
SELECT + 44 * - COUNT ( * ) + - + 27 col1
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4743
SELECT COALESCE ( 27, + 79 * + 93 + + + MAX( DISTINCT - + 13 ) + COUNT( * ) DIV + - 86 DIV + + 16, + + 45 * - 55 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4743
SELECT COALESCE ( 27, + 79 * + 93 + + + MAX ( DISTINCT - + 13 ) + COUNT ( * ) / + - 86 / + + 16, + + 45 * - 55 ) AS col0
----
27

query I rowsort
SELECT ALL + 72 * - + 28
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT - 67 * 15 * + ( + COALESCE ( + COALESCE ( + + 16, - 54 * - 22 + + 0, - - 79 ), + - COUNT( * ) * 93 ) ) - - 20 AS col2
----
-16060

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT - 67 * 15 * + ( + COALESCE ( + COALESCE ( + + 16, - 54 * - 22 + + 0, - - 79 ), + - COUNT ( * ) * 93 ) ) - - 20 AS col2
----
-16060

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT - 9 * + - COALESCE ( - + 62, + + COUNT( * ) )
----
-558

skipif mysql # not compatible
query I rowsort label-4746
SELECT - 9 * + - COALESCE ( - + 62, + + COUNT ( * ) )
----
-558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4747
SELECT DISTINCT - + 26 DIV 78 DIV + MIN( ALL + + 66 ) * + 67
----
0

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT - + 26 / 78 / + MIN ( ALL + + 66 ) * + 67
----
0

query I rowsort
SELECT - + 13 + 67 - + 1 * + + 81 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + COUNT( * ) * - 53 * + MAX( + 9 ) * 15
----
-7155

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + COUNT ( * ) * - 53 * + MAX ( + 9 ) * 15
----
-7155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4750
SELECT ALL 69 * + 36 + - CAST( - NULLIF ( - 85, - - 36 ) AS SIGNED ) + + + 87 + + COALESCE ( COUNT( * ), 58 * 4, - 70 * + 32 * + + CAST( NULL AS SIGNED ) * + 45 * - + 20 DIV + ( - COUNT( * ) ) DIV ( 48 ) + + 81 + + 53 + 93 * + - NULLIF ( + 25, - 84 + - 56 + - 32 + + 56 * NULLIF ( + - 57, 16 ) ) ) * 81 * 63 * + 43, + 62 AS col2
----
221915
62

skipif mysql # not compatible
query II rowsort label-4750
SELECT ALL 69 * + 36 + - CAST ( - NULLIF ( - 85, - - 36 ) AS INTEGER ) + + + 87 + + COALESCE ( COUNT ( * ), 58 * 4, - 70 * + 32 * + + CAST ( NULL AS INTEGER ) * + 45 * - + 20 / + ( - COUNT ( * ) ) / ( 48 ) + + 81 + + 53 + 93 * + - NULLIF ( + 25, - 84 + - 56 + - 32 + + 56 * NULLIF ( + - 57, 16 ) ) ) * 81 * 63 * + 43, + 62 AS col2
----
221915
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4751
SELECT ALL MIN( DISTINCT + 91 ) + + CAST( ( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) AS col2, 63 AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-4751
SELECT ALL MIN ( DISTINCT + 91 ) + + CAST ( ( + CAST ( NULL AS INTEGER ) ) AS REAL ) AS col2, 63 AS col0
----
NULL
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT + - 89 DIV + 16
----
-5

skipif mysql # not compatible
query I rowsort label-4752
SELECT + - 89 / + 16
----
-5

query II rowsort
SELECT ALL - 83 + - 80 AS col0, 77 AS col0
----
-163
77

query II rowsort
SELECT - 9 + + 84, 68 * 27 AS col2
----
75
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT + ( ( - + 51 ) ) + - 3 * - 35 + MAX( ALL + 19 )
----
73

skipif mysql # not compatible
query I rowsort label-4755
SELECT + ( ( - + 51 ) ) + - 3 * - 35 + MAX ( ALL + 19 )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4756
SELECT + 92 + - - COUNT( * ) AS col1, 93 AS col2
----
93
93

skipif mysql # not compatible
query II rowsort label-4756
SELECT + 92 + - - COUNT ( * ) AS col1, 93 AS col2
----
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT - + 12 + + 94 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT - + 12 + + 94 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 24 + - - 62
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4759
SELECT + COUNT( * ) + + 69 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT + COUNT ( * ) + + 69 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4760
SELECT ALL 0 DIV 39 * - + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL 0 / 39 * - + 84 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT ALL CAST( NULL AS SIGNED ) / 94 + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL CAST ( NULL AS INTEGER ) / 94 + 29 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4762
SELECT + CAST( + - 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-4762
SELECT + CAST ( + - 62 AS INTEGER )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4763
SELECT DISTINCT 72 DIV + COUNT( * ) - - 65 * + + COUNT( * )
----
137

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT 72 / + COUNT ( * ) - - 65 * + + COUNT ( * )
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT + CASE - 7 WHEN + ( 7 ) + + - ( - 9 ) THEN - COUNT( * ) * + - 75 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT + CASE - 7 WHEN + ( 7 ) + + - ( - 9 ) THEN - COUNT ( * ) * + - 75 + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 52 + + 24
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL SUM( - 75 ) * + + 63 + ( - - ( - COUNT( * ) ) ) AS col0
----
-4726

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL SUM ( - 75 ) * + + 63 + ( - - ( - COUNT ( * ) ) ) AS col0
----
-4726

query II rowsort
SELECT 97 AS col0, - 55 AS col2
----
97
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + COUNT( * ) * - 79 + - 64 * + 32
----
-2127

skipif mysql # not compatible
query I rowsort label-4768
SELECT + COUNT ( * ) * - 79 + - 64 * + 32
----
-2127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4769
SELECT 90 * 31 * 37 AS col2, + CAST( NULL AS SIGNED )
----
103230
NULL

skipif mysql # not compatible
query II rowsort label-4769
SELECT 90 * 31 * 37 AS col2, + CAST ( NULL AS INTEGER )
----
103230
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT 25 * 98 DIV - 90 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4770
SELECT 25 * 98 / - 90 AS col1
----
-27

query I rowsort
SELECT 96 + 33
----
129

query I rowsort
SELECT 15 * + - 41
----
-615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT ALL - CAST( NULL AS SIGNED ) / + + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL - CAST ( NULL AS INTEGER ) / + + 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT 68 * - + COUNT( * ) + + 13 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-4774
SELECT 68 * - + COUNT ( * ) + + 13 AS col0
----
-55

query I rowsort
SELECT - 65 * + 28 + + ( 61 ) * - 51 col1
----
-4931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT ALL - COUNT( * ) DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL - COUNT ( * ) / 8
----
0

query I rowsort
SELECT 5 * + 54 AS col0
----
270

query I rowsort
SELECT 41 + - NULLIF ( - 34 + - 99, 79 + 64 ) AS col1
----
174

query I rowsort
SELECT 12 + + 39 * + 60 AS col1
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT - ( 32 ) * MAX( - 2 * - 85 )
----
-5440

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT - ( 32 ) * MAX ( - 2 * - 85 )
----
-5440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4781
SELECT ALL + COUNT( * ) + MAX( DISTINCT - 27 ) DIV - 30
----
1

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL + COUNT ( * ) + MAX ( DISTINCT - 27 ) / - 30
----
1

query I rowsort
SELECT - 2 * 42 + + 35
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4783
SELECT MIN( ALL - 97 ) + COALESCE ( + 70, + COUNT( * ) ) DIV - COUNT( * ) col1
----
-167

skipif mysql # not compatible
query I rowsort label-4783
SELECT MIN ( ALL - 97 ) + COALESCE ( + 70, + COUNT ( * ) ) / - COUNT ( * ) col1
----
-167

query I rowsort
SELECT 31 * 59 AS col1
----
1829

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT COUNT( * ) * + 92
----
92

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT COUNT ( * ) * + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL + 42 + + CASE + 71 WHEN COUNT( * ) THEN NULL WHEN + 90 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 31 END AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + 42 + + CASE + 71 WHEN COUNT ( * ) THEN NULL WHEN + 90 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 31 END AS col0
----
11

query I rowsort
SELECT 46 + - 76
----
-30

query I rowsort
SELECT DISTINCT + 97 + - 34 * 87
----
-2861

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL + 43 + NULLIF ( - 5 + COUNT( 80 ), 44 + 0 ) * + ( - 30 )
----
163

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL + 43 + NULLIF ( - 5 + COUNT ( 80 ), 44 + 0 ) * + ( - 30 )
----
163

query I rowsort
SELECT 56 + + 2
----
58

query I rowsort
SELECT 30 * + 2 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT 66 + - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4792
SELECT 66 + - COUNT ( * ) AS col0
----
65

query I rowsort
SELECT ALL - 80 + + 82 * 2 AS col0
----
84

query I rowsort
SELECT 55 * 66
----
3630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4795
SELECT 91 + CASE NULLIF ( 81, COUNT( * ) ) WHEN NULLIF ( - 86, 39 * 65 ) THEN NULL WHEN COUNT( * ) THEN + NULLIF ( + COUNT( CAST( NULL AS SIGNED ) ), 0 + - NULLIF ( + 40, CAST( - COUNT( * ) AS SIGNED ) + + COUNT( * ) * + 0 ) ) * + 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT 91 + CASE NULLIF ( 81, COUNT ( * ) ) WHEN NULLIF ( - 86, 39 * 65 ) THEN NULL WHEN COUNT ( * ) THEN + NULLIF ( + COUNT ( CAST ( NULL AS INTEGER ) ), 0 + - NULLIF ( + 40, CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) * + 0 ) ) * + 24 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT DISTINCT 77 * - MAX( - 19 )
----
1463

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT 77 * - MAX ( - 19 )
----
1463

query I rowsort
SELECT ALL - 80 - - 30 AS col0
----
-50

query I rowsort
SELECT 81 * 0
----
0

query I rowsort
SELECT DISTINCT 12 * 36
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT - 62 - COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT - 62 - COUNT ( * ) AS col1
----
-63

query I rowsort
SELECT 64 + + 56
----
120

query I rowsort
SELECT 71 * - 28
----
-1988

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT 81 DIV - 90 - - 38
----
38

skipif mysql # not compatible
query I rowsort label-4803
SELECT 81 / - 90 - - 38
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4804
SELECT COUNT( * ) DIV 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT COUNT ( * ) / 35 AS col2
----
0

query I rowsort
SELECT 96 * 57 col2
----
5472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4806
SELECT ALL + COUNT( * ) DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL + COUNT ( * ) / 56
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4807
SELECT COUNT( * ) DIV - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4807
SELECT COUNT ( * ) / - 43 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4808
SELECT DISTINCT COUNT( * ) DIV 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT COUNT ( * ) / 17 AS col1
----
0

query I rowsort
SELECT 96 * - 76
----
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT - 61 * - 25 - COUNT( * )
----
1524

skipif mysql # not compatible
query I rowsort label-4810
SELECT - 61 * - 25 - COUNT ( * )
----
1524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT DISTINCT CAST( + 88 AS SIGNED ) * - 17 AS col0
----
-1496

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT CAST ( + 88 AS INTEGER ) * - 17 AS col0
----
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL 1 + + COUNT( * ) * COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL 1 + + COUNT ( * ) * COUNT ( * ) AS col1
----
2

query I rowsort
SELECT 12 * 92 AS col2
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT - ( - 3 ) * SUM( ALL - 50 + - 83 )
----
-399

skipif mysql # not compatible
query I rowsort label-4814
SELECT - ( - 3 ) * SUM ( ALL - 50 + - 83 )
----
-399

query I rowsort
SELECT - 33 * 97 + + 76 * - 9 col1
----
-3885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4816
SELECT DISTINCT - CASE ( CAST( COUNT( - 74 ) AS SIGNED ) ) WHEN 0 / 22 THEN CASE SUM( 61 ) WHEN ( + 32 ) THEN NULL ELSE + COUNT( * ) * 1 END END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT - CASE ( CAST ( COUNT ( - 74 ) AS INTEGER ) ) WHEN 0 / 22 THEN CASE SUM ( 61 ) WHEN ( + 32 ) THEN NULL ELSE + COUNT ( * ) * 1 END END + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 86 + NULLIF ( 32, 71 ) * 53 AS col1
----
1610

query I rowsort
SELECT 92 * 63 col0
----
5796

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL + COUNT( * ) + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL + COUNT ( * ) + - 8
----
-7

query I rowsort
SELECT DISTINCT - - 60 col0
----
60

query I rowsort
SELECT ALL + 36 + - 44
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT DISTINCT + 25 + SUM( ALL + 28 )
----
53

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT + 25 + SUM ( ALL + 28 )
----
53

query I rowsort
SELECT + NULLIF ( + 12, - 87 ) * - 74 + - 31 AS col2
----
-919

query I rowsort
SELECT ALL - - 24 + - 0
----
24

query I rowsort
SELECT - 16 * - 65 + 89
----
1129

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - - SUM( ALL 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4826
SELECT - - SUM ( ALL 34 ) AS col1
----
34

query I rowsort
SELECT 94 + 28 AS col2
----
122

query I rowsort
SELECT - 83 * - 95 AS col0
----
7885

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL + CASE 44 WHEN COUNT( 79 ) THEN NULL WHEN 85 THEN + 9 ELSE NULL END * + 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL + CASE 44 WHEN COUNT ( 79 ) THEN NULL WHEN 85 THEN + 9 ELSE NULL END * + 95 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4830
SELECT DISTINCT + ( - CAST( - COUNT( * ) AS SIGNED ) ) DIV 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) / 86 col2
----
0

query I rowsort
SELECT - 41 + 35
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT DISTINCT MIN( - 59 ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT MIN ( - 59 ) col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL COALESCE ( + + 87, + COUNT( * ), + 63 + - 91 )
----
87

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL COALESCE ( + + 87, + COUNT ( * ), + 63 + - 91 )
----
87

query I rowsort
SELECT ALL - 76 * - + 77
----
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL MAX( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL MAX ( + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT - 53 + + - COUNT( DISTINCT - 94 ) * + NULLIF ( - 76, 10 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4836
SELECT - 53 + + - COUNT ( DISTINCT - 94 ) * + NULLIF ( - 76, 10 ) AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4837
SELECT DISTINCT MIN( ALL CAST( + 28 AS SIGNED ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT MIN ( ALL CAST ( + 28 AS INTEGER ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT - COUNT( * ) + ( 3 )
----
2

skipif mysql # not compatible
query I rowsort label-4838
SELECT - COUNT ( * ) + ( 3 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT - 5 + - COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4839
SELECT - 5 + - COUNT ( * ) AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT - CAST( NULL AS SIGNED ) + - - 90 - 92 / - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT - CAST ( NULL AS INTEGER ) + - - 90 - 92 / - 27 AS col0
----
NULL

query I rowsort
SELECT ALL - 13 * + + 89 AS col1
----
-1157

query I rowsort
SELECT - 10 * + 94
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT DISTINCT COUNT( * ) * 28
----
28

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT COUNT ( * ) * 28
----
28

query I rowsort
SELECT DISTINCT + 32 * 64
----
2048

query I rowsort
SELECT - 63 + + + 91 * 75
----
6762

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL + COUNT( * ) * + - ( - 44 ) * - CASE + 85 WHEN 50 THEN + 6 * 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL + COUNT ( * ) * + - ( - 44 ) * - CASE + 85 WHEN 50 THEN + 6 * 40 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT - ( COUNT( * ) ) * - 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4847
SELECT - ( COUNT ( * ) ) * - 23 AS col2
----
23

query I rowsort
SELECT + 80 * - 4 col2
----
-320

query I rowsort
SELECT 87 * - 57 + 62 * 42 AS col1
----
-2355

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL + 59 * + + 76 + MIN( - 76 + 41 ) AS col0
----
4449

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + 59 * + + 76 + MIN ( - 76 + 41 ) AS col0
----
4449

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - + 23 * 90 + - COUNT( * ) + + 75
----
-1996

skipif mysql # not compatible
query I rowsort label-4851
SELECT - + 23 * 90 + - COUNT ( * ) + + 75
----
-1996

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT + COUNT( * ) * + - 7 + + 10 col2
----
3

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT + COUNT ( * ) * + - 7 + + 10 col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4853
SELECT - + 26 + 77 + 10 DIV + 92
----
51

skipif mysql # not compatible
query I rowsort label-4853
SELECT - + 26 + 77 + 10 / + 92
----
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4854
SELECT ALL - 57 DIV + + CAST( 30 AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - 57 / + + CAST ( 30 AS INTEGER ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL 64 * + COUNT( * ) + 14 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL 64 * + COUNT ( * ) + 14 AS col1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT DISTINCT + - 48 DIV + + 47 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT + - 48 / + + 47 AS col2
----
-1

query I rowsort
SELECT + - 2 * 77 AS col1
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT + - ( MIN( ALL 25 ) ) * 14 + 60
----
-290

skipif mysql # not compatible
query I rowsort label-4858
SELECT + - ( MIN ( ALL 25 ) ) * 14 + 60
----
-290

query I rowsort
SELECT + 45 + 9 + 85
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL - 58 * - COUNT( * ) * - 4 + - 50
----
-282

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - 58 * - COUNT ( * ) * - 4 + - 50
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT + 85 * + - MAX( + 36 )
----
-3060

skipif mysql # not compatible
query I rowsort label-4861
SELECT + 85 * + - MAX ( + 36 )
----
-3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT + + 19 + CAST( - 50 AS SIGNED ) + + 86 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4862
SELECT + + 19 + CAST ( - 50 AS INTEGER ) + + 86 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT DISTINCT 99 - + + SUM( + 22 ) + 20
----
97

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT 99 - + + SUM ( + 22 ) + 20
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4864
SELECT + - 0 * 57 + + CAST( 16 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4864
SELECT + - 0 * 57 + + CAST ( 16 AS INTEGER ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL MIN( ALL + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL MIN ( ALL + 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT DISTINCT - 62 - - COUNT( * ) * + + ( SUM( 63 ) ) * 59 - COUNT( * ) * - 51 col0
----
3706

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - 62 - - COUNT ( * ) * + + ( SUM ( 63 ) ) * 59 - COUNT ( * ) * - 51 col0
----
3706

query I rowsort
SELECT + ( - 90 ) * - + 94 - - 17 AS col1
----
8477

query I rowsort
SELECT - 29 * - 28 col0
----
812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4869
SELECT ALL COUNT( * ) DIV 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL COUNT ( * ) / 14 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4870
SELECT DISTINCT COUNT( * ), 47 * + CAST( NULL AS SIGNED ) + 46 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4870
SELECT DISTINCT COUNT ( * ), 47 * + CAST ( NULL AS INTEGER ) + 46 AS col1
----
1
NULL

query I rowsort
SELECT - 23 + - 48 * - 61
----
2905

query I rowsort
SELECT + 93 * + 70
----
6510

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT + 11 DIV - ( + 19 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT + 11 / - ( + 19 ) col2
----
0

query I rowsort
SELECT DISTINCT + 72 + + 94 + - 15
----
151

query I rowsort
SELECT ALL ( - - 37 ) AS col1
----
37

query I rowsort
SELECT ALL 93 * - 44
----
-4092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4877
SELECT + 75 DIV - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-4877
SELECT + 75 / - COUNT ( * )
----
-75

query II rowsort
SELECT 94 AS col2, 69 AS col2
----
94
69

query I rowsort
SELECT - 57 * 44 AS col0
----
-2508

query I rowsort
SELECT 19 * 23 - + ( + ( + 57 ) )
----
380

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT DISTINCT + 83 DIV + + 58 + + 30 + + 16
----
47

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT + 83 / + + 58 + + 30 + + 16
----
47

query I rowsort
SELECT - - ( - COALESCE ( + ( ( 78 ) ), + 92 ) ) + - 12 col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT + - 87 * + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT + - 87 * + COUNT ( * )
----
-87

query I rowsort
SELECT ALL 25 / + CASE 88 WHEN + 61 * + 1 THEN + AVG ( DISTINCT + 49 ) * - 57 END + + 32
----
NULL

query I rowsort
SELECT ALL + 0 * - 10 AS col1
----
0

query I rowsort
SELECT - 2 * - + 31 - - 77
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT - 66 * 62 - + 67 + + 85 * COUNT( * ) AS col1
----
-4074

skipif mysql # not compatible
query I rowsort label-4887
SELECT - 66 * 62 - + 67 + + 85 * COUNT ( * ) AS col1
----
-4074

query I rowsort
SELECT DISTINCT + ( + 95 ) * + + 86 * + 21
----
171570

query I rowsort
SELECT - 60 * + 27
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT + CASE MIN( + 69 ) WHEN 5 + COALESCE ( ( COUNT( * ) ), 20 * + NULLIF ( - 45 * 49, - COUNT( * ) + 33 ), 74 ) THEN NULL WHEN + 93 * + 94 THEN NULL ELSE 46 END
----
46

skipif mysql # not compatible
query I rowsort label-4890
SELECT + CASE MIN ( + 69 ) WHEN 5 + COALESCE ( ( COUNT ( * ) ), 20 * + NULLIF ( - 45 * 49, - COUNT ( * ) + 33 ), 74 ) THEN NULL WHEN + 93 * + 94 THEN NULL ELSE 46 END
----
46

query II rowsort
SELECT + 45 AS col1, - 94
----
45
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL + NULLIF ( 58, - + COUNT( * ) ) col0
----
58

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + NULLIF ( 58, - + COUNT ( * ) ) col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT + CAST( + 70 AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4893
SELECT + CAST ( + 70 AS INTEGER ) AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4894
SELECT ALL + 21 AS col2, + 96 * + CAST( NULL AS SIGNED )
----
21
NULL

skipif mysql # not compatible
query II rowsort label-4894
SELECT ALL + 21 AS col2, + 96 * + CAST ( NULL AS INTEGER )
----
21
NULL

query I rowsort
SELECT ALL 91 * + 37 + 68 * 24 - ( - 72 ) AS col1
----
5071

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - 36 * + COUNT( DISTINCT - 9 )
----
-36

skipif mysql # not compatible
query I rowsort label-4896
SELECT - 36 * + COUNT ( DISTINCT - 9 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT COALESCE ( COUNT( * ), - + COALESCE ( 2, + 34 * 27 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4897
SELECT COALESCE ( COUNT ( * ), - + COALESCE ( 2, + 34 * 27 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4898
SELECT 74 DIV + CAST( 27 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-4898
SELECT 74 / + CAST ( 27 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT 81 + - 55 - COUNT( * ) - + - 40 + 59 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-4899
SELECT 81 + - 55 - COUNT ( * ) - + - 40 + 59 AS col1
----
124

query I rowsort
SELECT ( 40 ) * + NULLIF ( + 37, 45 ) * - 93
----
-137640

query I rowsort
SELECT - 94 * 91 * - 65 - - - 45
----
555965

query II rowsort
SELECT 0 + - 92 AS col1, - 30
----
-92
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ( COUNT( * ) ) + - ( 40 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4903
SELECT ( COUNT ( * ) ) + - ( 40 ) AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT ALL CAST( 50 AS SIGNED ) + 32
----
82

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL CAST ( 50 AS INTEGER ) + 32
----
82

query I rowsort
SELECT ALL 52 + - 99
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4906
SELECT COUNT( * ) + + 53 + - NULLIF ( ( + 97 ), - AVG ( 38 ) + COUNT( * ) ) * CAST( + 76 AS SIGNED )
----
-7318

skipif mysql # not compatible
query I rowsort label-4906
SELECT COUNT ( * ) + + 53 + - NULLIF ( ( + 97 ), - AVG ( 38 ) + COUNT ( * ) ) * CAST ( + 76 AS INTEGER )
----
-7318

query I rowsort
SELECT ( - - 70 ) * 2 * - 8 + 83 AS col1
----
-1037

query I rowsort
SELECT 34 + 62
----
96

query I rowsort
SELECT ALL 45 + + 35 + - 24 + + - 91 * 92
----
-8316

query I rowsort
SELECT 44 + 6 - - 20 * + 82 AS col1
----
1690

query I rowsort
SELECT 24 + - + 59 AS col0
----
-35

query I rowsort
SELECT ( + 56 ) + + 51 AS col2
----
107

query I rowsort
SELECT DISTINCT 44 * + + 79 AS col1
----
3476

query I rowsort
SELECT DISTINCT + + 85 + NULLIF ( 12, + + 73 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL - - 22 + MIN( - - ( 23 ) ) + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL - - 22 + MIN ( - - ( 23 ) ) + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT - MAX( - ( - 83 ) ) * - - 30 * ( - 24 DIV + 67 ) - 92
----
-92

skipif mysql # not compatible
query I rowsort label-4916
SELECT - MAX ( - ( - 83 ) ) * - - 30 * ( - 24 / + 67 ) - 92
----
-92

query I rowsort
SELECT DISTINCT 52 * - - 87 * + 21
----
95004

query I rowsort
SELECT 90 + - COALESCE ( + ( - 37 ), - 93, 3 - - 2 ) * - 49 AS col0
----
-1723

onlyif mysql # aggregate syntax: 
query II rowsort label-4919
SELECT MIN( ALL - - 47 ), 13 * + 81 AS col0
----
47
1053

skipif mysql # not compatible
query II rowsort label-4919
SELECT MIN ( ALL - - 47 ), 13 * + 81 AS col0
----
47
1053

query I rowsort
SELECT DISTINCT - + CASE 72 WHEN ( + - 22 ) THEN + AVG ( DISTINCT 38 ) * - 97 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 44 * - NULLIF ( 42, - - 5 * 54 ) * - 5 AS col0
----
9240

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT + 14 * - - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4922
SELECT + 14 * - - COUNT ( * )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4923
SELECT MIN( ALL + + ( + 22 ) ) * 1 * - NULLIF ( 16 * 71, 11 ) - 81 DIV 36
----
-24994

skipif mysql # not compatible
query I rowsort label-4923
SELECT MIN ( ALL + + ( + 22 ) ) * 1 * - NULLIF ( 16 * 71, 11 ) - 81 / 36
----
-24994

query I rowsort
SELECT + NULLIF ( - - 26, - + 68 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL + 44 - + ( + COUNT( * ) ) * - ( 59 ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + 44 - + ( + COUNT ( * ) ) * - ( 59 ) AS col1
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT DISTINCT - COALESCE ( - 69, + CAST( 9 AS SIGNED ), 10, + 59 + 37 * - 2 )
----
69

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT - COALESCE ( - 69, + CAST ( 9 AS INTEGER ), 10, + 59 + 37 * - 2 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT ALL - 22 * CAST( NULL AS SIGNED ) + + 50 + - 3 * - MAX( 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL - 22 * CAST ( NULL AS INTEGER ) + + 50 + - 3 * - MAX ( 18 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT DISTINCT - 5 * + - COUNT( 29 )
----
5

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT - 5 * + - COUNT ( 29 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4929
SELECT + 30 + + + CAST( + 56 AS SIGNED ) + - + COUNT( * ) + ( 41 - - 35 DIV 91 ) * 64 col0
----
2709

skipif mysql # not compatible
query I rowsort label-4929
SELECT + 30 + + + CAST ( + 56 AS INTEGER ) + - + COUNT ( * ) + ( 41 - - 35 / 91 ) * 64 col0
----
2709

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT + COALESCE ( + 17, NULLIF ( 27, - 68 * 52 ) - - 73 * 63 ) + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-4930
SELECT + COALESCE ( + 17, NULLIF ( 27, - 68 * 52 ) - - 73 * 63 ) + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL - 17 * MAX( + + 44 ) col1
----
-748

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL - 17 * MAX ( + + 44 ) col1
----
-748

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT 47 + - CASE 94 WHEN + + 0 / + 51 - 68 THEN 61 - 51 * - 24 WHEN 26 THEN NULLIF ( 44, - 7 + - 51 ) WHEN 57 THEN COUNT( * ) + 24 ELSE NULL END * + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT 47 + - CASE 94 WHEN + + 0 / + 51 - 68 THEN 61 - 51 * - 24 WHEN 26 THEN NULLIF ( 44, - 7 + - 51 ) WHEN 57 THEN COUNT ( * ) + 24 ELSE NULL END * + 21 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4933
SELECT 9 DIV - + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4933
SELECT 9 / - + 31 AS col1
----
0

query II rowsort
SELECT DISTINCT 85 AS col0, + 64 - + 92 AS col2
----
85
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT - 73 + - MAX( DISTINCT - + 15 )
----
-58

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT - 73 + - MAX ( DISTINCT - + 15 )
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4936
SELECT 35 DIV + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-4936
SELECT 35 / + COUNT ( * )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT 5 * - 89 / + CASE - + 43 WHEN + 3 + 73 * + 37 THEN NULL WHEN 94 / - 13 THEN CAST( 3 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT 5 * - 89 / + CASE - + 43 WHEN + 3 + 73 * + 37 THEN NULL WHEN 94 / - 13 THEN CAST ( 3 AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4938
SELECT ( + 49 ) * NULLIF ( - 38, - 19 * 47 + 70 DIV + 82 ) + 42 DIV + 42 AS col0
----
-1861

skipif mysql # not compatible
query I rowsort label-4938
SELECT ( + 49 ) * NULLIF ( - 38, - 19 * 47 + 70 / + 82 ) + 42 / + 42 AS col0
----
-1861

query I rowsort
SELECT 15 - - 74
----
89

query I rowsort
SELECT ALL 39 * - - 93 * - ( NULLIF ( - 68, 38 + 58 ) )
----
246636

query I rowsort
SELECT ALL + 55 + + NULLIF ( + 49, + 94 * - - 36 + - 51 )
----
104

query I rowsort
SELECT 34 * - + 87
----
-2958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4943
SELECT ALL 92 + - 29 + MAX( + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + + COUNT( * ) * + MIN( - 59 + - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL 92 + - 29 + MAX ( + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + COUNT ( * ) * + MIN ( - 59 + - 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL - 83 * - + COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL - 83 * - + COUNT ( * ) AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + AVG ( + 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + AVG ( + 48 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4946
SELECT 45 * 7 + - 67, 47 DIV + 43 col1
----
248
1

skipif mysql # not compatible
query II rowsort label-4946
SELECT 45 * 7 + - 67, 47 / + 43 col1
----
248
1

query I rowsort
SELECT - 84 + 6 * + ( + - 62 )
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT 28 * - SUM( ALL - 83 ) + - NULLIF ( COALESCE ( 26, 12 ), - 17 * + ( COUNT( DISTINCT ( 70 ) ) ) ) + 56 * COALESCE ( 74, 12 )
----
6442

skipif mysql # not compatible
query I rowsort label-4948
SELECT 28 * - SUM ( ALL - 83 ) + - NULLIF ( COALESCE ( 26, 12 ), - 17 * + ( COUNT ( DISTINCT ( 70 ) ) ) ) + 56 * COALESCE ( 74, 12 )
----
6442

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL 81 * 22 - COUNT( * ) + 20 + + 45 AS col1
----
1846

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL 81 * 22 - COUNT ( * ) + 20 + + 45 AS col1
----
1846

onlyif mysql # aggregate syntax: 
query II rowsort label-4950
SELECT ALL - + 86 AS col1, ( - COUNT( * ) ) AS col2
----
-86
-1

skipif mysql # not compatible
query II rowsort label-4950
SELECT ALL - + 86 AS col1, ( - COUNT ( * ) ) AS col2
----
-86
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4951
SELECT + + 95 DIV - - SUM( + 53 ) + - + 17
----
-16

skipif mysql # not compatible
query I rowsort label-4951
SELECT + + 95 / - - SUM ( + 53 ) + - + 17
----
-16

query I rowsort
SELECT - 69 + + - 74 AS col1
----
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT ALL - 68 * ( 29 ) * ( 28 ) DIV 11
----
-5019

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL - 68 * ( 29 ) * ( 28 ) / 11
----
-5019

query I rowsort
SELECT ALL + 57 * + 41 AS col2
----
2337

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT DISTINCT SUM( DISTINCT - 14 ) * - ( 79 ) AS col1
----
1106

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT SUM ( DISTINCT - 14 ) * - ( 79 ) AS col1
----
1106

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT + + 1 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT + + 1 / 93
----
0

query I rowsort
SELECT - + 96 * - 29 + + 66
----
2850

query I rowsort
SELECT + - NULLIF ( + ( + + 0 ), - - 62 + + ( + 28 ) ) * 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - 28 * + MAX( DISTINCT 9 ) * + 17
----
-4284

skipif mysql # not compatible
query I rowsort label-4959
SELECT - 28 * + MAX ( DISTINCT 9 ) * + 17
----
-4284

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT + 67 - NULLIF ( COUNT( + + 12 ), - COUNT( * ) + - 72 * - 82 ) - - COALESCE ( + 87, - 3 ) AS col2
----
153

skipif mysql # not compatible
query I rowsort label-4960
SELECT + 67 - NULLIF ( COUNT ( + + 12 ), - COUNT ( * ) + - 72 * - 82 ) - - COALESCE ( + 87, - 3 ) AS col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT + MAX( DISTINCT + 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4961
SELECT + MAX ( DISTINCT + 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4962
SELECT DISTINCT + COUNT( * ) * 49 DIV + 80 + COUNT( * ) + 99
----
100

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT + COUNT ( * ) * 49 / + 80 + COUNT ( * ) + 99
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL - ( + 89 ) * + CASE + + 92 WHEN - + MIN( DISTINCT + ( + 67 ) ) * 47 + - 62 THEN NULL WHEN 7 THEN - 29 * 44 WHEN + 96 THEN NULL END * - 65 + - 41 + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL - ( + 89 ) * + CASE + + 92 WHEN - + MIN ( DISTINCT + ( + 67 ) ) * 47 + - 62 THEN NULL WHEN 7 THEN - 29 * 44 WHEN + 96 THEN NULL END * - 65 + - 41 + - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4964
SELECT ALL + CASE - NULLIF ( - 61, - + 8 ) WHEN + - ( + CASE MIN( ALL 37 ) WHEN 15 THEN + 71 * - 48 WHEN 14 * + CAST( NULL AS SIGNED ) THEN NULL END ) THEN NULL WHEN - 67 / - 70 THEN NULL WHEN + MAX( ALL + 11 ) * 6 THEN + 93 + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + CASE - NULLIF ( - 61, - + 8 ) WHEN + - ( + CASE MIN ( ALL 37 ) WHEN 15 THEN + 71 * - 48 WHEN 14 * + CAST ( NULL AS INTEGER ) THEN NULL END ) THEN NULL WHEN - 67 / - 70 THEN NULL WHEN + MAX ( ALL + 11 ) * 6 THEN + 93 + - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4965
SELECT ALL MIN( ALL + + 77 ) + - 87 - 19 DIV - + 10
----
-9

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL MIN ( ALL + + 77 ) + - 87 - 19 / - + 10
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4966
SELECT - CAST( + 56 AS SIGNED ) * 31 * + 36 - SUM( DISTINCT 68 ) AS col0
----
-62564

skipif mysql # not compatible
query I rowsort label-4966
SELECT - CAST ( + 56 AS INTEGER ) * 31 * + 36 - SUM ( DISTINCT 68 ) AS col0
----
-62564

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT DISTINCT + ( + 11 ), COUNT( * ) * 75 AS col2
----
11
75

skipif mysql # not compatible
query II rowsort label-4967
SELECT DISTINCT + ( + 11 ), COUNT ( * ) * 75 AS col2
----
11
75

query I rowsort
SELECT - 64 * - 16
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT + MAX( + - ( + 59 ) ) * - 27 + + 74 AS col0
----
1667

skipif mysql # not compatible
query I rowsort label-4969
SELECT + MAX ( + - ( + 59 ) ) * - 27 + + 74 AS col0
----
1667

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT - 28 + - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-4970
SELECT - 28 + - COUNT ( * )
----
-29

query I rowsort
SELECT - 34 * - 26 AS col1
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT + CASE - 72 WHEN + 28 * - 71 / - + AVG ( ALL - 95 ) - - 17 / + 85 THEN + 72 END * MIN( DISTINCT - 77 + + 86 * + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT + CASE - 72 WHEN + 28 * - 71 / - + AVG ( ALL - 95 ) - - 17 / + 85 THEN + 72 END * MIN ( DISTINCT - 77 + + 86 * + 99 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - 80 + COUNT( 98 ) + - 88 * + + 44
----
-3951

skipif mysql # not compatible
query I rowsort label-4973
SELECT - 80 + COUNT ( 98 ) + - 88 * + + 44
----
-3951

query II rowsort
SELECT ALL + 24 - + 5 AS col0, + 5 * - 39 AS col2
----
19
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL COALESCE ( COUNT( * ), + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL COALESCE ( COUNT ( * ), + 16 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT - SUM( ALL + 69 ) + + 77 - - 11 * + 97 * - 77 AS col0
----
-82151

skipif mysql # not compatible
query I rowsort label-4976
SELECT - SUM ( ALL + 69 ) + + 77 - - 11 * + 97 * - 77 AS col0
----
-82151

onlyif mysql # DIV for integer division: 
query II rowsort label-4977
SELECT ALL + NULLIF ( + 45, 30 ) DIV + 93, + ( 56 ) AS col2
----
0
56

skipif mysql # not compatible
query II rowsort label-4977
SELECT ALL + NULLIF ( + 45, 30 ) / + 93, + ( 56 ) AS col2
----
0
56

query I rowsort
SELECT - 62 * - COALESCE ( 23, 41 * - 69, - 62 + - 68 )
----
1426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4979
SELECT - MAX( + - 37 ) col0, + 51 * - - 95 + 12 - - CAST( NULL AS SIGNED ) + 53 AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-4979
SELECT - MAX ( + - 37 ) col0, + 51 * - - 95 + 12 - - CAST ( NULL AS INTEGER ) + 53 AS col1
----
37
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4980
SELECT + + COALESCE ( + NULLIF ( COALESCE ( COUNT( * ), - + CAST( NULL AS SIGNED ) ), 9 * 42 ), - COUNT( * ) * 92 ) + 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4980
SELECT + + COALESCE ( + NULLIF ( COALESCE ( COUNT ( * ), - + CAST ( NULL AS INTEGER ) ), 9 * 42 ), - COUNT ( * ) * 92 ) + 87 AS col1
----
88

query I rowsort
SELECT - 13 * 40
----
-520

onlyif mysql # aggregate syntax: 
query II rowsort label-4982
SELECT DISTINCT + 47 AS col1, - COUNT( * ) AS col2
----
47
-1

skipif mysql # not compatible
query II rowsort label-4982
SELECT DISTINCT + 47 AS col1, - COUNT ( * ) AS col2
----
47
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4983
SELECT + MIN( - 62 ) DIV + 75 * + 45 * + ( MIN( DISTINCT - 75 ) ) + 86 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4983
SELECT + MIN ( - 62 ) / + 75 * + 45 * + ( MIN ( DISTINCT - 75 ) ) + 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4984
SELECT + COUNT( * ) AS col2, 87 + + + 21 AS col1
----
1
108

skipif mysql # not compatible
query II rowsort label-4984
SELECT + COUNT ( * ) AS col2, 87 + + + 21 AS col1
----
1
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT - + MIN( ALL - 18 ) * - 34
----
-612

skipif mysql # not compatible
query I rowsort label-4985
SELECT - + MIN ( ALL - 18 ) * - 34
----
-612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4986
SELECT DISTINCT 8, COUNT( + 68 ) + + CAST( 93 AS SIGNED ) * - COUNT( DISTINCT 35 ) AS col2
----
8
-92

skipif mysql # not compatible
query II rowsort label-4986
SELECT DISTINCT 8, COUNT ( + 68 ) + + CAST ( 93 AS INTEGER ) * - COUNT ( DISTINCT 35 ) AS col2
----
8
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL - COUNT( * ) * + - 3 - + - 35 col0
----
38

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - COUNT ( * ) * + - 3 - + - 35 col0
----
38

query I rowsort
SELECT NULLIF ( - 63, NULLIF ( 52, + ( - ( 55 ) ) ) * - 73 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT + + 54 * + 25 * + COUNT( + COALESCE ( + 48, - 43 + 42 ) ) - 36 * 77 + - 79 * 14 AS col0
----
-2528

skipif mysql # not compatible
query I rowsort label-4989
SELECT + + 54 * + 25 * + COUNT ( + COALESCE ( + 48, - 43 + 42 ) ) - 36 * 77 + - 79 * 14 AS col0
----
-2528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4990
SELECT - MIN( DISTINCT + 1 ) DIV + 28 + 94
----
94

skipif mysql # not compatible
query I rowsort label-4990
SELECT - MIN ( DISTINCT + 1 ) / + 28 + 94
----
94

query I rowsort
SELECT + ( - + 70 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT DISTINCT 56 * + COUNT( * ) + + + COUNT( * ) + - - 31
----
88

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT 56 * + COUNT ( * ) + + + COUNT ( * ) + - - 31
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT + CAST( - - 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-4993
SELECT + CAST ( - - 34 AS INTEGER )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4994
SELECT + ( 66 ) DIV - + 86 + - 66
----
-66

skipif mysql # not compatible
query I rowsort label-4994
SELECT + ( 66 ) / - + 86 + - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL + 55 * - MAX( ALL - 58 ) * + 0 + COUNT( - 59 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL + 55 * - MAX ( ALL - 58 ) * + 0 + COUNT ( - 59 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4996
SELECT - 40 + - + 2 AS col1, 10 DIV 1
----
-42
10

skipif mysql # not compatible
query II rowsort label-4996
SELECT - 40 + - + 2 AS col1, 10 / 1
----
-42
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT CASE - + 65 WHEN - COUNT( * ) THEN 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT CASE - + 65 WHEN - COUNT ( * ) THEN 65 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT + 11 * + 14 * MIN( - 23 ) AS col0
----
-3542

skipif mysql # not compatible
query I rowsort label-4998
SELECT + 11 * + 14 * MIN ( - 23 ) AS col0
----
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - COUNT( * ) + 76 + - 70 - - 41 + - MAX( - + 45 ) + + 96 AS col0
----
187

skipif mysql # not compatible
query I rowsort label-4999
SELECT - COUNT ( * ) + 76 + - 70 - - 41 + - MAX ( - + 45 ) + + 96 AS col0
----
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5000
SELECT - COALESCE ( + - SUM( - 48 ), - - 32 * 5 DIV - ( - + 76 ) + 34 - - 78 * 28, + 27 * + 51 ) + + 62
----
14

skipif mysql # not compatible
query I rowsort label-5000
SELECT - COALESCE ( + - SUM ( - 48 ), - - 32 * 5 / - ( - + 76 ) + 34 - - 78 * 28, + 27 * + 51 ) + + 62
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL COALESCE ( - ( COUNT( * ) ), + 85, - 49 + + 51, - - 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL COALESCE ( - ( COUNT ( * ) ), + 85, - 49 + + 51, - - 12 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT CASE 47 WHEN - + CAST( - 63 AS SIGNED ) * - + 75 THEN - + 58 + + + 68 ELSE 5 END
----
5

skipif mysql # not compatible
query I rowsort label-5002
SELECT CASE 47 WHEN - + CAST ( - 63 AS INTEGER ) * - + 75 THEN - + 58 + + + 68 ELSE 5 END
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5003
SELECT ALL - 37 * - + ( + - 44 ) AS col1, 96 + - - 99 * + 68 * + COALESCE ( COALESCE ( - 13, + 95 ), + 60 ) * - 97 + 73 * - COUNT( * ) col2
----
-1628
8489075

skipif mysql # not compatible
query II rowsort label-5003
SELECT ALL - 37 * - + ( + - 44 ) AS col1, 96 + - - 99 * + 68 * + COALESCE ( COALESCE ( - 13, + 95 ), + 60 ) * - 97 + 73 * - COUNT ( * ) col2
----
-1628
8489075

query I rowsort
SELECT DISTINCT - 45 * + 74 - + 81 AS col2
----
-3411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL + 12 * 13 * + COUNT( * ) * COUNT( * ) - COUNT( * ) * - + COUNT( * ) * - CAST( + 44 AS SIGNED ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL + 12 * 13 * + COUNT ( * ) * COUNT ( * ) - COUNT ( * ) * - + COUNT ( * ) * - CAST ( + 44 AS INTEGER ) AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5006
SELECT SUM( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT SUM ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT + 38 * - + 75 * + ( + 33 )
----
-94050

query I rowsort
SELECT - COALESCE ( - 95, - 53 - 99 ) * 25 + + 67
----
2442

query I rowsort
SELECT - - 87 - + 30 AS col2
----
57

query I rowsort
SELECT - ( CASE + 84 WHEN + + 21 THEN 66 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5011
SELECT ALL CAST( - + AVG ( ALL - 1 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL CAST ( - + AVG ( ALL - 1 ) AS INTEGER )
----
1

query I rowsort
SELECT - - 95 * - ( 98 )
----
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT - + 98 + 57 * - - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT - + 98 + 57 * - - COUNT ( * )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5014
SELECT - 99 DIV CAST( SUM( + 24 ) AS SIGNED ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5014
SELECT - 99 / CAST ( SUM ( + 24 ) AS INTEGER ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT 47 + 31 + - ( - COUNT( * ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5015
SELECT 47 + 31 + - ( - COUNT ( * ) ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT - CASE 80 WHEN + 4 THEN + 94 * + COUNT( * ) * + 93 + + COUNT( * ) WHEN + 14 + + 67 THEN 17 + + 38 * - 12 WHEN - 16 THEN NULL ELSE COUNT( ALL 27 ) + - COUNT( * ) END - - 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5016
SELECT - CASE 80 WHEN + 4 THEN + 94 * + COUNT ( * ) * + 93 + + COUNT ( * ) WHEN + 14 + + 67 THEN 17 + + 38 * - 12 WHEN - 16 THEN NULL ELSE COUNT ( ALL 27 ) + - COUNT ( * ) END - - 64 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT ALL + - COALESCE ( - COUNT( * ), + - 96 + - 78 * + 47 ) + + + ( - 34 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL + - COALESCE ( - COUNT ( * ), + - 96 + - 78 * + 47 ) + + + ( - 34 ) AS col1
----
-33

query I rowsort
SELECT ALL - - 56 + - ( 81 ) AS col1
----
-25

query I rowsort
SELECT + - 65 * + + 18 + - 95 + + 84 - - 90 - + - 89 col2
----
-1002

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT DISTINCT - 46 + + CASE - - 90 WHEN + 20 + 77 + - 13 THEN - MIN( DISTINCT - 72 ) END * 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT - 46 + + CASE - - 90 WHEN + 20 + 77 + - 13 THEN - MIN ( DISTINCT - 72 ) END * 21 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT 35 DIV + + 34 + + 34 col1
----
35

skipif mysql # not compatible
query I rowsort label-5021
SELECT 35 / + + 34 + + 34 col1
----
35

query I rowsort
SELECT ALL - COALESCE ( 27, 46, + 42 ) AS col0
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-5023
SELECT ALL - + 27 + + ( + 68 ) AS col0, + 11 - 34 DIV + 5
----
41
5

skipif mysql # not compatible
query II rowsort label-5023
SELECT ALL - + 27 + + ( + 68 ) AS col0, + 11 - 34 / + 5
----
41
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - 15 * - CASE - - COUNT( * ) WHEN - + 74 THEN - 72 ELSE NULL END / + 73 + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT - 15 * - CASE - - COUNT ( * ) WHEN - + 74 THEN - 72 ELSE NULL END / + 73 + + 18
----
NULL

query II rowsort
SELECT DISTINCT - 67 AS col1, 50
----
-67
50

query I rowsort
SELECT 15 - - + 18 AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5027
SELECT COUNT( * ) * - 40 * + + 14, - 84 AS col1
----
-560
-84

skipif mysql # not compatible
query II rowsort label-5027
SELECT COUNT ( * ) * - 40 * + + 14, - 84 AS col1
----
-560
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT - MIN( 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT - MIN ( 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5029
SELECT DISTINCT CAST( NULL AS SIGNED ) - + COUNT( * ) / + - COUNT( * ) AS col0, + 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-5029
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + COUNT ( * ) / + - COUNT ( * ) AS col0, + 23
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ( - 85 ) * - COALESCE ( - - 38, COUNT( * ), MAX( + + 27 ) ) * + - 82 col1
----
-264860

skipif mysql # not compatible
query I rowsort label-5030
SELECT ( - 85 ) * - COALESCE ( - - 38, COUNT ( * ), MAX ( + + 27 ) ) * + - 82 col1
----
-264860

onlyif mysql # aggregate syntax: 
query II rowsort label-5031
SELECT ALL - COUNT( * ) AS col2, + 75 * 89 AS col2
----
-1
6675

skipif mysql # not compatible
query II rowsort label-5031
SELECT ALL - COUNT ( * ) AS col2, + 75 * 89 AS col2
----
-1
6675

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT + NULLIF ( + 31, - - 2 ) * - 10 * + COALESCE ( - COUNT( * ), + + 54 ) - + 79
----
231

skipif mysql # not compatible
query I rowsort label-5032
SELECT + NULLIF ( + 31, - - 2 ) * - 10 * + COALESCE ( - COUNT ( * ), + + 54 ) - + 79
----
231

query I rowsort
SELECT 69 * 62
----
4278

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT 61 * - - COUNT( DISTINCT + 55 ) * COUNT( * ) + - - 54 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-5034
SELECT 61 * - - COUNT ( DISTINCT + 55 ) * COUNT ( * ) + - - 54 AS col2
----
115

onlyif mysql # DIV for integer division: 
query II rowsort label-5035
SELECT 75 DIV + NULLIF ( + + 38, 57 ) AS col1, - 85
----
1
-85

skipif mysql # not compatible
query II rowsort label-5035
SELECT 75 / + NULLIF ( + + 38, 57 ) AS col1, - 85
----
1
-85

query I rowsort
SELECT DISTINCT 73 * - 37 AS col0
----
-2701

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL - CASE 42 WHEN - - 42 + COUNT( * ) THEN + 93 + - + 15 * + + MAX( 65 ) + MIN( - 59 + 39 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL - CASE 42 WHEN - - 42 + COUNT ( * ) THEN + 93 + - + 15 * + + MAX ( 65 ) + MIN ( - 59 + 39 ) END
----
NULL

query I rowsort
SELECT 82 + - 79
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT 59 + 51 + 13 + - + 22 * 3 + CAST( - 49 AS SIGNED ) col1
----
8

skipif mysql # not compatible
query I rowsort label-5039
SELECT 59 + 51 + 13 + - + 22 * 3 + CAST ( - 49 AS INTEGER ) col1
----
8

query I rowsort
SELECT - NULLIF ( - 76, 86 - 1 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5041
SELECT - CAST( - + 63 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5041
SELECT - CAST ( - + 63 AS INTEGER ) AS col2
----
63

query I rowsort
SELECT 51 + - 74 * 25 * + 53 + + 87
----
-97912

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT ALL + NULLIF ( 91, + - 6 ) + COALESCE ( + 38, - 86 - COUNT( * ) ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL + NULLIF ( 91, + - 6 ) + COALESCE ( + 38, - 86 - COUNT ( * ) ) AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT DISTINCT - COUNT( ALL - 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT - COUNT ( ALL - 42 )
----
-1

query I rowsort
SELECT DISTINCT 3 + - - 16 AS col2
----
19

query II rowsort
SELECT ALL + 72 AS col2, 95 AS col1
----
72
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5047
SELECT DISTINCT COUNT( * ) col1, 4 DIV + 4 AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5047
SELECT DISTINCT COUNT ( * ) col1, 4 / + 4 AS col1
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5048
SELECT COUNT( * ) DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-5048
SELECT COUNT ( * ) / + 17
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL COUNT( * ) + - 37 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL COUNT ( * ) + - 37 AS col0
----
-36

query I rowsort
SELECT ALL - 74 * + 21 + - 35
----
-1589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5051
SELECT - ( MIN( ALL 56 ) ) DIV + 83 * COUNT( * ) + - COUNT( * ) + + - 55
----
-56

skipif mysql # not compatible
query I rowsort label-5051
SELECT - ( MIN ( ALL 56 ) ) / + 83 * COUNT ( * ) + - COUNT ( * ) + + - 55
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5052
SELECT ALL - COUNT( * ) DIV - - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - COUNT ( * ) / - - 68 AS col2
----
0

query I rowsort
SELECT 18 - 78 + 12 * + - 56 * 91 * 25
----
-1528860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT DISTINCT - CASE + + 20 WHEN + - CAST( NULL AS SIGNED ) THEN + 38 + + 91 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - CASE + + 20 WHEN + - CAST ( NULL AS INTEGER ) THEN + 38 + + 91 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL - 28 * CASE + 87 WHEN - CASE + 54 WHEN + 92 THEN 33 ELSE NULL END THEN - + MAX( ALL 19 ) * 12 + 56 ELSE 57 END AS col1
----
-1596

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL - 28 * CASE + 87 WHEN - CASE + 54 WHEN + 92 THEN 33 ELSE NULL END THEN - + MAX ( ALL 19 ) * 12 + 56 ELSE 57 END AS col1
----
-1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5056
SELECT ALL + CAST( NULL AS SIGNED ) * - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL + CAST ( NULL AS INTEGER ) * - 14 AS col1
----
NULL

query I rowsort
SELECT ALL + ( - 92 ) * - 54 AS col1
----
4968

query I rowsort
SELECT DISTINCT + 56 * - - 9 * + CASE 41 WHEN - 73 * - 21 THEN NULL WHEN - 7 THEN - 89 + 13 + + 2 WHEN 81 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5059
SELECT COUNT( * ) * + 81 + ( - - 78 ), + 15 col1
----
159
15

skipif mysql # not compatible
query II rowsort label-5059
SELECT COUNT ( * ) * + 81 + ( - - 78 ), + 15 col1
----
159
15

query I rowsort
SELECT 43 * + + 37 * - + 21 AS col0
----
-33411

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT 79 * COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5061
SELECT 79 * COUNT ( * ) AS col1
----
79

query I rowsort
SELECT 85 + 21
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT DISTINCT 27 DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT 27 / - 89 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT DISTINCT - COUNT( * ) + 71 * - 45
----
-3196

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT - COUNT ( * ) + 71 * - 45
----
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT ALL 62 * - - NULLIF ( + - COUNT( * ), + 57 ) AS col0, + 68 * - + 24 col1
----
-62
-1632

skipif mysql # not compatible
query II rowsort label-5065
SELECT ALL 62 * - - NULLIF ( + - COUNT ( * ), + 57 ) AS col0, + 68 * - + 24 col1
----
-62
-1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5066
SELECT ALL - MIN( + 85 ) + - 70 + + - 13 DIV + 13, - 36 - 90 col1
----
-156
-126

skipif mysql # not compatible
query II rowsort label-5066
SELECT ALL - MIN ( + 85 ) + - 70 + + - 13 / + 13, - 36 - 90 col1
----
-156
-126

query I rowsort
SELECT ALL - 9 + 19
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT - + ( + MAX( 26 ) ) * + 1 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5068
SELECT - + ( + MAX ( 26 ) ) * + 1 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT + + 29 * + + COUNT( DISTINCT - 2 )
----
29

skipif mysql # not compatible
query I rowsort label-5069
SELECT + + 29 * + + COUNT ( DISTINCT - 2 )
----
29

query II rowsort
SELECT ALL - 49 + + 59 AS col1, - 4 AS col0
----
10
-4

query I rowsort
SELECT + 8 - 84 + + 63 - - 88 * - 23 AS col0
----
-2037

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT - 78 * + - ( + - 14 ) * - 53 - - - COUNT( * ) + - - 88
----
57963

skipif mysql # not compatible
query I rowsort label-5072
SELECT - 78 * + - ( + - 14 ) * - 53 - - - COUNT ( * ) + - - 88
----
57963

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT ALL 48 DIV + + 15 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL 48 / + + 15 AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 8 + 85 * + 20 * - + 15 * MAX( ALL 72 ) * 4 + 43 - + ( 72 + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 8 + 85 * + 20 * - + 15 * MAX ( ALL 72 ) * 4 + 43 - + ( 72 + 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT CASE 6 WHEN - 17 THEN + 60 WHEN + 50 / + ( - 50 ) THEN NULL WHEN - NULLIF ( 5, COUNT( * ) * - 59 + COUNT( * ) ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT CASE 6 WHEN - 17 THEN + 60 WHEN + 50 / + ( - 50 ) THEN NULL WHEN - NULLIF ( 5, COUNT ( * ) * - 59 + COUNT ( * ) ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5076
SELECT ALL - - MAX( DISTINCT - 2 ) - - 74 DIV - 34 + + + ( 21 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - - MAX ( DISTINCT - 2 ) - - 74 / - 34 + + + ( 21 ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5077
SELECT ALL + ( + 69 ) AS col2, + 64 * - 60 * + SUM( - - ( + CAST( - - 45 AS SIGNED ) ) )
----
69
-172800

skipif mysql # not compatible
query II rowsort label-5077
SELECT ALL + ( + 69 ) AS col2, + 64 * - 60 * + SUM ( - - ( + CAST ( - - 45 AS INTEGER ) ) )
----
69
-172800

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT - 67 + - - ( ( - COUNT( * ) ) ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5078
SELECT - 67 + - - ( ( - COUNT ( * ) ) ) AS col2
----
-68

query I rowsort
SELECT - - 53 - + 14 * + - 95 + - 57 AS col0
----
1326

query II rowsort
SELECT - ( 24 ) AS col2, 60
----
-24
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5081
SELECT ALL + 72 - + MAX( - 84 ) DIV 92 col1
----
72

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL + 72 - + MAX ( - 84 ) / 92 col1
----
72

query I rowsort
SELECT + 12 * + 70
----
840

onlyif mysql # aggregate syntax: 
query II rowsort label-5083
SELECT - 18 * - 23 * - 58 * + MAX( ALL - 83 ), - 85 - 16 col2
----
1992996
-101

skipif mysql # not compatible
query II rowsort label-5083
SELECT - 18 * - 23 * - 58 * + MAX ( ALL - 83 ), - 85 - 16 col2
----
1992996
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5084
SELECT - COUNT( * ) DIV - 75 + + + COALESCE ( + - 10, + + ( - - 50 ), - CAST( NULL AS SIGNED ) )
----
-10

skipif mysql # not compatible
query I rowsort label-5084
SELECT - COUNT ( * ) / - 75 + + + COALESCE ( + - 10, + + ( - - 50 ), - CAST ( NULL AS INTEGER ) )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5085
SELECT ALL + 12 * - 16 - - - NULLIF ( - + 15, + + 87 * 70 + - + 62 - - 95 + - + CAST( NULL AS SIGNED ) + - COUNT( * ) ) AS col0
----
-177

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL + 12 * - 16 - - - NULLIF ( - + 15, + + 87 * 70 + - + 62 - - 95 + - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) AS col0
----
-177

query I rowsort
SELECT - 82 * + - 96
----
7872

query I rowsort
SELECT ( - + ( 43 ) )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT - 34 DIV 67 * 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5088
SELECT - 34 / 67 * 92 AS col1
----
0

query I rowsort
SELECT + 46 * + - 27
----
-1242

query I rowsort
SELECT ALL + ( + + 46 )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5091
SELECT - COUNT( * ) DIV 67 * - 21 - + COUNT( * ) DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-5091
SELECT - COUNT ( * ) / 67 * - 21 - + COUNT ( * ) / - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT NULLIF ( + MIN( ALL + + 47 ), - + 8 * - 67 * + 30 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5092
SELECT NULLIF ( + MIN ( ALL + + 47 ), - + 8 * - 67 * + 30 ) AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5093
SELECT - COUNT( * ) DIV - MAX( - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT - COUNT ( * ) / - MAX ( - 39 )
----
0

query I rowsort
SELECT - 16 - + - 26 + 33 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + COUNT( + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-5095
SELECT + COUNT ( + 44 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL 30 * + MIN( DISTINCT - 46 ) + + 42 AS col0
----
-1338

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL 30 * + MIN ( DISTINCT - 46 ) + + 42 AS col0
----
-1338

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT CASE - 40 WHEN + 23 * - 81 THEN + - COUNT( * ) WHEN 41 THEN NULL END * + - 24 + - + 75 + 77 * 8 + 88 + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT CASE - 40 WHEN + 23 * - 81 THEN + - COUNT ( * ) WHEN 41 THEN NULL END * + - 24 + - + 75 + 77 * 8 + 88 + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL + 53 * - + 30 * 37 + COUNT( + 67 ) + + 73
----
-58756

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL + 53 * - + 30 * 37 + COUNT ( + 67 ) + + 73
----
-58756

query I rowsort
SELECT ALL 67 * + - 26 + + + 31 AS col2
----
-1711

query I rowsort
SELECT - + 33 - - 23
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT + CASE MAX( 9 ) WHEN - + 85 * 37 * + 79 * 49 THEN + COUNT( * ) WHEN - - 76 THEN - 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT + CASE MAX ( 9 ) WHEN - + 85 * 37 * + 79 * 49 THEN + COUNT ( * ) WHEN - - 76 THEN - 82 ELSE NULL END
----
NULL

query I rowsort
SELECT - - 58 - 21
----
37

query I rowsort
SELECT ALL - 67 * 89 + - + 34 + + 30 AS col2
----
-5967

query I rowsort
SELECT - ( + 19 ) * + 60 + - - 17
----
-1123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5105
SELECT ALL ( - 81 ) * - - 49 DIV COUNT( * ) * - 11 AS col2, + 64 * - CASE - 33 WHEN + COUNT( * ) * 13 - 88 THEN NULL WHEN 64 DIV + 40 THEN 12 ELSE 21 END AS col1
----
43659
-1344

skipif mysql # not compatible
query II rowsort label-5105
SELECT ALL ( - 81 ) * - - 49 / COUNT ( * ) * - 11 AS col2, + 64 * - CASE - 33 WHEN + COUNT ( * ) * 13 - 88 THEN NULL WHEN 64 / + 40 THEN 12 ELSE 21 END AS col1
----
43659
-1344

query I rowsort
SELECT - 6 + - 89 + + 37 + + 92 AS col0
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5107
SELECT ALL - NULLIF ( CAST( NULL AS DECIMAL ), - 54 ) + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - NULLIF ( CAST ( NULL AS REAL ), - 54 ) + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT + COUNT( * ) + - 22 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5108
SELECT + COUNT ( * ) + - 22 AS col2
----
-21

query I rowsort
SELECT ALL - 68 * - - 90
----
-6120

query I rowsort
SELECT - 82 * - 51
----
4182

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT - MIN( DISTINCT - + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-5111
SELECT - MIN ( DISTINCT - + 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT + + CASE + 28 WHEN + 70 THEN + + COUNT( + + 20 ) END + - 21 * - MIN( + - 42 ) * + + COUNT( * ) * + 37 / 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT + + CASE + 28 WHEN + 70 THEN + + COUNT ( + + 20 ) END + - 21 * - MIN ( + - 42 ) * + + COUNT ( * ) * + 37 / 67 AS col1
----
NULL

query II rowsort
SELECT - 6 col1, + 35 - 5 + - 20 * - 43
----
-6
890

query I rowsort
SELECT + 69 + + + 59 AS col1
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5115
SELECT + 9 DIV - 95 + 4 * 45 * - COUNT( + - 73 ) AS col1
----
-180

skipif mysql # not compatible
query I rowsort label-5115
SELECT + 9 / - 95 + 4 * 45 * - COUNT ( + - 73 ) AS col1
----
-180

query I rowsort
SELECT + 6 + 1 AS col1
----
7

query II rowsort
SELECT DISTINCT 12 * + 22, 47 AS col1
----
264
47

query II rowsort
SELECT ALL 68 AS col1, 78 AS col1
----
68
78

query II rowsort
SELECT DISTINCT 20 AS col0, ( 20 ) AS col1
----
20
20

query I rowsort
SELECT + 58 * + + 72 col0
----
4176

query I rowsort
SELECT + 22 * - + 3 AS col0
----
-66

query I rowsort
SELECT - 28 * + 72
----
-2016

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5123
SELECT ALL + COUNT( * ) AS col0, CASE - + CAST( 94 AS DECIMAL ) WHEN 36 - COALESCE ( - - 85, + + COUNT( * ) + - 13 * + COUNT( * ) ) / - SUM( ALL + 10 ) THEN NULL WHEN 86 * 59 THEN NULL WHEN COUNT( * ) * + 26 THEN 65 END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5123
SELECT ALL + COUNT ( * ) AS col0, CASE - + CAST ( 94 AS REAL ) WHEN 36 - COALESCE ( - - 85, + + COUNT ( * ) + - 13 * + COUNT ( * ) ) / - SUM ( ALL + 10 ) THEN NULL WHEN 86 * 59 THEN NULL WHEN COUNT ( * ) * + 26 THEN 65 END AS col1
----
1
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5124
SELECT DISTINCT 51 * + - CASE 24 WHEN 72 THEN NULL WHEN - CAST( - ( - 12 ) AS DECIMAL ) + + - 71 THEN NULL ELSE + 50 END * + 62 AS col0
----
-158100

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT 51 * + - CASE 24 WHEN 72 THEN NULL WHEN - CAST ( - ( - 12 ) AS REAL ) + + - 71 THEN NULL ELSE + 50 END * + 62 AS col0
----
-158100

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT - CASE 74 WHEN - - 44 THEN - 99 + 79 + - COUNT( * ) END / + 69 + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT - CASE 74 WHEN - - 44 THEN - 99 + 79 + - COUNT ( * ) END / + 69 + 85
----
NULL

query I rowsort
SELECT DISTINCT 15 * - 84 AS col1
----
-1260

onlyif mysql # aggregate syntax: 
query II rowsort label-5127
SELECT ALL - COUNT( * ) + + 76 AS col0, + 51 + + - 60 + + + 34 + - ( - 65 ) + NULLIF ( + 83, + - 40 ) * + 75
----
75
6315

skipif mysql # not compatible
query II rowsort label-5127
SELECT ALL - COUNT ( * ) + + 76 AS col0, + 51 + + - 60 + + + 34 + - ( - 65 ) + NULLIF ( + 83, + - 40 ) * + 75
----
75
6315

onlyif mysql # aggregate syntax: 
query II rowsort label-5128
SELECT ALL - COUNT( * ), 2 AS col0
----
-1
2

skipif mysql # not compatible
query II rowsort label-5128
SELECT ALL - COUNT ( * ), 2 AS col0
----
-1
2

query II rowsort
SELECT + 56 AS col2, 53 + - 88 col2
----
56
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5130
SELECT ALL 50 + + + 4 - - + 51 + - 68 DIV - - 46 + ( + 83 ) DIV - + COUNT( + ( - 42 ) )
----
21

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL 50 + + + 4 - - + 51 + - 68 / - - 46 + ( + 83 ) / - + COUNT ( + ( - 42 ) )
----
21

query I rowsort
SELECT ALL - - ( - 36 ) + + - 74 + - 37 + - + 20
----
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-5132
SELECT + COUNT( * ) AS col1, + 54 * MAX( DISTINCT 78 ) col2
----
1
4212

skipif mysql # not compatible
query II rowsort label-5132
SELECT + COUNT ( * ) AS col1, + 54 * MAX ( DISTINCT 78 ) col2
----
1
4212

query I rowsort
SELECT - 24 + + - 71
----
-95

query I rowsort
SELECT + 33 * + 79 AS col1
----
2607

query I rowsort
SELECT DISTINCT + + 60 * ( 5 )
----
300

query I rowsort
SELECT 44 * - + 92 + + ( + NULLIF ( - 19, 5 ) )
----
-4067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5137
SELECT ALL - COUNT( * ) + + - 74 DIV - - NULLIF ( 24, + 67 DIV 62 * - 57 + - CAST( NULL AS SIGNED ) + + + 61 + - - 31 * + - 25 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL - COUNT ( * ) + + - 74 / - - NULLIF ( 24, + 67 / 62 * - 57 + - CAST ( NULL AS INTEGER ) + + + 61 + - - 31 * + - 25 ) AS col0
----
-4

query I rowsort
SELECT ALL + 57 * 89 + 60 col1
----
5133

query I rowsort
SELECT ALL - 66 - 27
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT DISTINCT - - MAX( DISTINCT - 43 ) * + - 95 AS col0
----
4085

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT - - MAX ( DISTINCT - 43 ) * + - 95 AS col0
----
4085

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT COUNT( * ) * - COALESCE ( - 59, + 98 + - ( 82 ) )
----
59

skipif mysql # not compatible
query I rowsort label-5141
SELECT COUNT ( * ) * - COALESCE ( - 59, + 98 + - ( 82 ) )
----
59

query I rowsort
SELECT + ( + 26 ) * + - 62 AS col0
----
-1612

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT 93 - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-5143
SELECT 93 - COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT ALL COALESCE ( + 21, - COUNT( - + 48 ) * - 15, 96 )
----
21

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL COALESCE ( + 21, - COUNT ( - + 48 ) * - 15, 96 )
----
21

query I rowsort
SELECT + 7 - 68
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5146
SELECT ALL - CASE + - ( - - 6 ) WHEN + + 62 + - 74 THEN + 67 * - 88 + 9 * - 13 * CAST( NULL AS SIGNED ) * + 87 * + CAST( NULL AS SIGNED ) WHEN - 77 / - 87 THEN 48 * ( + 70 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL - CASE + - ( - - 6 ) WHEN + + 62 + - 74 THEN + 67 * - 88 + 9 * - 13 * CAST ( NULL AS INTEGER ) * + 87 * + CAST ( NULL AS INTEGER ) WHEN - 77 / - 87 THEN 48 * ( + 70 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT + ( + ( CASE - COUNT( * ) WHEN + - 51 THEN NULL ELSE - + 59 END ) ) * 63 + 28 AS col0
----
-3689

skipif mysql # not compatible
query I rowsort label-5147
SELECT + ( + ( CASE - COUNT ( * ) WHEN + - 51 THEN NULL ELSE - + 59 END ) ) * 63 + 28 AS col0
----
-3689

query I rowsort
SELECT 85 - 11
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5149
SELECT COUNT( * ) * 3 AS col2, - 17
----
3
-17

skipif mysql # not compatible
query II rowsort label-5149
SELECT COUNT ( * ) * 3 AS col2, - 17
----
3
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT ALL 53 * + + MAX( + 16 ) * - + 25
----
-21200

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL 53 * + + MAX ( + 16 ) * - + 25
----
-21200

query I rowsort
SELECT 18 + ( + 18 ) AS col0
----
36

query I rowsort
SELECT 53 - 44
----
9

query I rowsort
SELECT 27 + + ( 66 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT CASE + 77 WHEN - ( + COUNT( * ) ) THEN - ( - 73 ) - - 57 + + + COUNT( * ) ELSE NULL END - + + 21 * - - ( - - 26 ) * + NULLIF ( 54, + SUM( + ( - 59 ) ) ) + - ( + 8 ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT CASE + 77 WHEN - ( + COUNT ( * ) ) THEN - ( - 73 ) - - 57 + + + COUNT ( * ) ELSE NULL END - + + 21 * - - ( - - 26 ) * + NULLIF ( 54, + SUM ( + ( - 59 ) ) ) + - ( + 8 ) * 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5155
SELECT ALL CAST( NULL AS SIGNED ) * + 93 AS col0, + 95 DIV 14 DIV + 21
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5155
SELECT ALL CAST ( NULL AS INTEGER ) * + 93 AS col0, + 95 / 14 / + 21
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT ( + - ( - 48 ) ) DIV ( ( + + 11 ) )
----
4

skipif mysql # not compatible
query I rowsort label-5156
SELECT ( + - ( - 48 ) ) / ( ( + + 11 ) )
----
4

query I rowsort
SELECT DISTINCT 68 + - 24 + - 74 col0
----
-30

query I rowsort
SELECT + 48 - ( - - 39 ) AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT CAST( + 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-5159
SELECT CAST ( + 57 AS INTEGER )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5160
SELECT COALESCE ( 55, - COUNT( * ) * - + 84 * - + 72 * + 29 + COUNT( * ) DIV + 97 ) + + - 84 - + + 91 + + 92 DIV + 41 + 70 * 7
----
372

skipif mysql # not compatible
query I rowsort label-5160
SELECT COALESCE ( 55, - COUNT ( * ) * - + 84 * - + 72 * + 29 + COUNT ( * ) / + 97 ) + + - 84 - + + 91 + + 92 / + 41 + 70 * 7
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT ALL COUNT( * ) - + COALESCE ( - 45, + - 19 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL COUNT ( * ) - + COALESCE ( - 45, + - 19 ) AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5162
SELECT ALL - ( - 18 ), - CASE 56 WHEN + 92 + - - CASE - 47 WHEN + - COUNT( * ) + - CAST( + ( COUNT( * ) ) AS SIGNED ) THEN NULL WHEN + + 82 + 83 THEN NULL WHEN 47 * 20 THEN - 74 ELSE 26 END THEN NULL ELSE - 20 * + COUNT( * ) END AS col1
----
18
20

skipif mysql # not compatible
query II rowsort label-5162
SELECT ALL - ( - 18 ), - CASE 56 WHEN + 92 + - - CASE - 47 WHEN + - COUNT ( * ) + - CAST ( + ( COUNT ( * ) ) AS INTEGER ) THEN NULL WHEN + + 82 + 83 THEN NULL WHEN 47 * 20 THEN - 74 ELSE 26 END THEN NULL ELSE - 20 * + COUNT ( * ) END AS col1
----
18
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL - 70 - + 40 - - COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL - 70 - + 40 - - COUNT ( * )
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT 38 + + - 33 + + MIN( + - 65 ) + - 85 * + - 44 * + ( + + 60 ) col0
----
224340

skipif mysql # not compatible
query I rowsort label-5164
SELECT 38 + + - 33 + + MIN ( + - 65 ) + - 85 * + - 44 * + ( + + 60 ) col0
----
224340

query I rowsort
SELECT 82 - - ( + - 15 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT + + MIN( ALL + 40 ) * COUNT( * ) * + 67 + COUNT( * ) + ( + ( - 48 ) )
----
2633

skipif mysql # not compatible
query I rowsort label-5166
SELECT + + MIN ( ALL + 40 ) * COUNT ( * ) * + 67 + COUNT ( * ) + ( + ( - 48 ) )
----
2633

query I rowsort
SELECT NULLIF ( + 22, + 7 ) + + 13
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT CASE - 92 WHEN + 14 * + - MAX( ALL - - 35 ) + + 80 + + 42 + - 87 * + + COUNT( * ) THEN + - 32 - + 61 + 90 + 75 * - 50 END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT CASE - 92 WHEN + 14 * + - MAX ( ALL - - 35 ) + + 80 + + 42 + - 87 * + + COUNT ( * ) THEN + - 32 - + 61 + 90 + 75 * - 50 END + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 47 * 74 AS col2
----
3478

query II rowsort
SELECT ( - 34 ) * + 52, 63 + + + 35 * 15 - - 3 - - 68 + + 35 AS col2
----
-1768
694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5171
SELECT 7 + COUNT( * ) DIV + 42 * 76
----
7

skipif mysql # not compatible
query I rowsort label-5171
SELECT 7 + COUNT ( * ) / + 42 * 76
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5172
SELECT ALL 61 DIV + - 88
----
0

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL 61 / + - 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT DISTINCT + SUM( - 80 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT + SUM ( - 80 ) AS col2
----
-80

query I rowsort
SELECT - 13 * + 86 - - - 73
----
-1191

onlyif mysql # aggregate syntax: 
query III rowsort label-5175
SELECT ALL 88 + - 0 - - COUNT( * ) * - 45 * - COUNT( * ) * ( - 95 ) AS col2, - 78, + - 25 col2
----
-4187
-78
-25

skipif mysql # not compatible
query III rowsort label-5175
SELECT ALL 88 + - 0 - - COUNT ( * ) * - 45 * - COUNT ( * ) * ( - 95 ) AS col2, - 78, + - 25 col2
----
-4187
-78
-25

query I rowsort
SELECT DISTINCT - ( - - 23 ) + - 19 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL + COUNT( * ) * - ( - 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL + COUNT ( * ) * - ( - 95 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ( + + 11 ) * - - COUNT( + ( + - 23 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5178
SELECT ( + + 11 ) * - - COUNT ( + ( + - 23 ) ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5179
SELECT 60 * - ( ( 42 ) ) AS col2, 20 * + COUNT( * ) + 1
----
-2520
21

skipif mysql # not compatible
query II rowsort label-5179
SELECT 60 * - ( ( 42 ) ) AS col2, 20 * + COUNT ( * ) + 1
----
-2520
21

query I rowsort
SELECT 63 + + + 95 AS col2
----
158

query II rowsort
SELECT - 78 AS col2, - 2 * 69 - 50 col1
----
-78
-188

query I rowsort
SELECT ALL + 74 + 50 AS col1
----
124

query I rowsort
SELECT DISTINCT + 2 + + 37 + - ( + + 19 ) + + + 5 * + - 97 * + 88 AS col0
----
-42660

query II rowsort
SELECT ALL 33 AS col0, - 64
----
33
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT DISTINCT COUNT( + 92 )
----
1

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT COUNT ( + 92 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL MIN( ( + 61 ) ) * + 32
----
1952

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL MIN ( ( + 61 ) ) * + 32
----
1952

query I rowsort
SELECT ALL - 20 + - 34
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5188
SELECT DISTINCT CASE + 32 WHEN + - MAX( ALL + 65 ) THEN + 70 ELSE + 65 * - COUNT( + 20 ) DIV + 76 * COUNT( * ) + 53 - + 47 END * NULLIF ( - 25, CASE CAST( - CASE 36 WHEN + MAX( 32 ) * + 42 THEN + 3 ELSE + 62 END AS SIGNED ) WHEN - 51 * + COUNT( * ) + COUNT( * ) * - 51 THEN NULL WHEN + 23 THEN 23 * + MAX( 45 ) + 15 END - SUM( ALL + NULLIF ( + 22, 85 ) ) )
----
-150

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT CASE + 32 WHEN + - MAX ( ALL + 65 ) THEN + 70 ELSE + 65 * - COUNT ( + 20 ) / + 76 * COUNT ( * ) + 53 - + 47 END * NULLIF ( - 25, CASE CAST ( - CASE 36 WHEN + MAX ( 32 ) * + 42 THEN + 3 ELSE + 62 END AS INTEGER ) WHEN - 51 * + COUNT ( * ) + COUNT ( * ) * - 51 THEN NULL WHEN + 23 THEN 23 * + MAX ( 45 ) + 15 END - SUM ( ALL + NULLIF ( + 22, 85 ) ) )
----
-150

query I rowsort
SELECT DISTINCT 86 * + - 0 + - + 41 AS col1
----
-41

query I rowsort
SELECT ALL + 48 * + - 61 AS col1
----
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT - 30 * - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT - 30 * - COUNT ( * ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5192
SELECT ALL + 39, 13 * + 71 + + COUNT( ALL - 4 ) AS col2
----
39
924

skipif mysql # not compatible
query II rowsort label-5192
SELECT ALL + 39, 13 * + 71 + + COUNT ( ALL - 4 ) AS col2
----
39
924

query I rowsort
SELECT + 11 * - 26 * 90 * + 53 + - - 56 + + - 29 * - 68 AS col1
----
-1362192

query I rowsort
SELECT - 85 * + 25
----
-2125

query I rowsort
SELECT + 91 * - 92 AS col1
----
-8372

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT 76 DIV - 84 * - + 39 * - 37 + 87 col2
----
87

skipif mysql # not compatible
query I rowsort label-5196
SELECT 76 / - 84 * - + 39 * - 37 + 87 col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT DISTINCT - + 76 * - 15 + - ( - + 90 ) DIV 7 AS col0
----
1152

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT - + 76 * - 15 + - ( - + 90 ) / 7 AS col0
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ALL + + 66 * + - ( - 30 ) - + COUNT( * ) * COUNT( * ) * - - 63 + 92
----
2009

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + + 66 * + - ( - 30 ) - + COUNT ( * ) * COUNT ( * ) * - - 63 + 92
----
2009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5199
SELECT ALL 3 DIV + 47 * - + MIN( - 56 ) + - + 35
----
-35

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL 3 / + 47 * - + MIN ( - 56 ) + - + 35
----
-35

query I rowsort
SELECT + 73 * + 70 AS col1
----
5110

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5201
SELECT + + 19 + - - 83 + + CASE CAST( + - 78 AS SIGNED ) WHEN - 83 THEN + - 19 ELSE + - 95 END DIV + - 74 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-5201
SELECT + + 19 + - - 83 + + CASE CAST ( + - 78 AS INTEGER ) WHEN - 83 THEN + - 19 ELSE + - 95 END / + - 74 AS col2
----
103

query I rowsort
SELECT + 86 * - 52 AS col1
----
-4472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT DISTINCT + - CAST( - 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT + - CAST ( - 99 AS INTEGER )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5204
SELECT - COUNT( * ) AS col1, - CASE + 16 WHEN + 91 + + 15 - 38 * 58 + + + COUNT( * ) THEN NULL ELSE - 41 END * + 20 * + ( + 69 )
----
-1
56580

skipif mysql # not compatible
query II rowsort label-5204
SELECT - COUNT ( * ) AS col1, - CASE + 16 WHEN + 91 + + 15 - 38 * 58 + + + COUNT ( * ) THEN NULL ELSE - 41 END * + 20 * + ( + 69 )
----
-1
56580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5205
SELECT + 34 * - 54 * + MIN( ALL + + 78 ) * 96 + + 9 + + 20 DIV + + 4 + 87 DIV CAST( + + 7 AS SIGNED ) DIV + 36 * - 81 AS col0
----
-13747954

skipif mysql # not compatible
query I rowsort label-5205
SELECT + 34 * - 54 * + MIN ( ALL + + 78 ) * 96 + + 9 + + 20 / + + 4 + 87 / CAST ( + + 7 AS INTEGER ) / + 36 * - 81 AS col0
----
-13747954

query I rowsort
SELECT ALL + CASE - 27 WHEN - 82 + 26 / - + 87 THEN NULL WHEN + - 10 THEN + 27 END
----
NULL

query I rowsort
SELECT + - 94 + - - 41
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-5208
SELECT + - 76 AS col0, 60 * + + COUNT( * ) * + 91
----
-76
5460

skipif mysql # not compatible
query II rowsort label-5208
SELECT + - 76 AS col0, 60 * + + COUNT ( * ) * + 91
----
-76
5460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT DISTINCT - 45 * - + 65 / - + 31 + + 38 / - CAST( NULL AS SIGNED ) + + ( - 88 ) / + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - 45 * - + 65 / - + 31 + + 38 / - CAST ( NULL AS INTEGER ) + + ( - 88 ) / + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 76 * + - 88 * + 57
----
-381216

query I rowsort
SELECT ALL ( + 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT - MAX( DISTINCT + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-5212
SELECT - MAX ( DISTINCT + 66 )
----
-66

query I rowsort
SELECT + 6 + + + 84 + 2 * - ( + + 4 ) AS col2
----
82

query I rowsort
SELECT DISTINCT 35 + + + 61 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL 93 + - 64 * + + COUNT( DISTINCT - 80 )
----
29

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL 93 + - 64 * + + COUNT ( DISTINCT - 80 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT + 99 - - - COUNT( * ) col0
----
98

skipif mysql # not compatible
query I rowsort label-5216
SELECT + 99 - - - COUNT ( * ) col0
----
98

query I rowsort
SELECT ALL + 88 + 4
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT + MIN( + ( - 54 ) ) - - 78 + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5218
SELECT + MIN ( + ( - 54 ) ) - - 78 + - COUNT ( * )
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-5219
SELECT DISTINCT 40 DIV + 56 * + ( - 22 ) AS col0, + 42 * + ( + + 99 )
----
0
4158

skipif mysql # not compatible
query II rowsort label-5219
SELECT DISTINCT 40 / + 56 * + ( - 22 ) AS col0, + 42 * + ( + + 99 )
----
0
4158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5220
SELECT DISTINCT CAST( - 50 AS SIGNED ) + + 25 + 93
----
68

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT CAST ( - 50 AS INTEGER ) + + 25 + 93
----
68

query I rowsort
SELECT ALL - 16 * + ( 98 )
----
-1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5222
SELECT DISTINCT + 61 * CAST( NULL AS SIGNED ) * ( CASE - 90 WHEN - 43 THEN - ( + - 49 ) + - 22 WHEN + 59 THEN 72 END ) * + - MAX( DISTINCT - 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT + 61 * CAST ( NULL AS INTEGER ) * ( CASE - 90 WHEN - 43 THEN - ( + - 49 ) + - 22 WHEN + 59 THEN 72 END ) * + - MAX ( DISTINCT - 30 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 92 * 16
----
1472

query I rowsort
SELECT - ( + ( - 0 ) )
----
0

query II rowsort
SELECT + 16 + + CASE + 75 WHEN 67 * + + 46 / + 59 / 16 THEN + 32 WHEN - - 56 + + 6 THEN NULL END + - 20 * + 87 col0, + 69 AS col0
----
NULL
69

query I rowsort
SELECT ALL NULLIF ( 55, + - 67 + + 31 + + 8 )
----
55

query I rowsort
SELECT DISTINCT + 62 * - + 15
----
-930

query I rowsort
SELECT DISTINCT NULLIF ( 21, - 99 ) AS col1
----
21

query I rowsort
SELECT ALL NULLIF ( 13, 30 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5230
SELECT DISTINCT - - 40 * + 5 AS col1, COUNT( * ) * + 80 * 82
----
200
6560

skipif mysql # not compatible
query II rowsort label-5230
SELECT DISTINCT - - 40 * + 5 AS col1, COUNT ( * ) * + 80 * 82
----
200
6560

query I rowsort
SELECT - - ( - 55 ) * - 13 * + 36 + + + 21
----
25761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5232
SELECT DISTINCT - + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * - MAX( 49 ) * 85 * + 3 * 64 / - 76 - - 30 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - MAX ( 49 ) * 85 * + 3 * 64 / - 76 - - 30 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL + + ( + - COALESCE ( + + 35, COUNT( * ), - 82 - + + 4, + - 86 - + 21 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL + + ( + - COALESCE ( + + 35, COUNT ( * ), - 82 - + + 4, + - 86 - + 21 ) )
----
-35

query I rowsort
SELECT - - ( - + 48 ) * + + 75 + + 2 - + 81 + + 21 * - 40
----
-4519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5235
SELECT - COUNT( * ) DIV CAST( + 37 AS SIGNED ) * + 46 DIV MIN( + 62 ) DIV - 55 + - 29
----
-29

skipif mysql # not compatible
query I rowsort label-5235
SELECT - COUNT ( * ) / CAST ( + 37 AS INTEGER ) * + 46 / MIN ( + 62 ) / - 55 + - 29
----
-29

query I rowsort
SELECT + 6 * 16
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5237
SELECT - CAST( NULL AS SIGNED ) + 42 * + - CASE - 22 WHEN - - 68 * - - 77 THEN - - 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT - CAST ( NULL AS INTEGER ) + 42 * + - CASE - 22 WHEN - - 68 * - - 77 THEN - - 44 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5238
SELECT NULLIF ( - + 55, + CASE + + COUNT( * ) WHEN 66 THEN + 96 * - 43 / - 70 WHEN + NULLIF ( + - 93, - CAST( + - 48 AS SIGNED ) ) + - 27 THEN NULL WHEN - 58 * - 16 THEN 65 + COUNT( DISTINCT 36 ) ELSE NULL END - + 83 * COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-5238
SELECT NULLIF ( - + 55, + CASE + + COUNT ( * ) WHEN 66 THEN + 96 * - 43 / - 70 WHEN + NULLIF ( + - 93, - CAST ( + - 48 AS INTEGER ) ) + - 27 THEN NULL WHEN - 58 * - 16 THEN 65 + COUNT ( DISTINCT 36 ) ELSE NULL END - + 83 * COUNT ( * ) )
----
-55

query I rowsort
SELECT - 59 + + 71 + + + 91
----
103

query I rowsort
SELECT ALL - - 32 * + - 85 + - + 21
----
-2741

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT + - MAX( 3 ) * + 1 + 69 * + 64 * + - 80
----
-353283

skipif mysql # not compatible
query I rowsort label-5241
SELECT + - MAX ( 3 ) * + 1 + 69 * + 64 * + - 80
----
-353283

query I rowsort
SELECT DISTINCT - - 87 * 22 + - - 77
----
1991

query I rowsort
SELECT - - 19 * - 50 + 48 * + + 0 - - 39
----
-911

query I rowsort
SELECT - + 27 * 88
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT COALESCE ( + SUM( ALL + COALESCE ( - + 53, 37 ) ), + 99, + - 49, 62 ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-5245
SELECT COALESCE ( + SUM ( ALL + COALESCE ( - + 53, 37 ) ), + 99, + - 49, 62 ) col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + NULLIF ( + 20, + - 74 ) * - - COALESCE ( - + 66, - COALESCE ( - 77, 60 + COUNT( * ), - 37 ) ) + - - 8 + + 23
----
-1289

skipif mysql # not compatible
query I rowsort label-5246
SELECT + NULLIF ( + 20, + - 74 ) * - - COALESCE ( - + 66, - COALESCE ( - 77, 60 + COUNT ( * ), - 37 ) ) + - - 8 + + 23
----
-1289

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT + COUNT( * ) + 77 - + ( + + 46 )
----
32

skipif mysql # not compatible
query I rowsort label-5247
SELECT + COUNT ( * ) + 77 - + ( + + 46 )
----
32

query I rowsort
SELECT 53 + 7 + 94
----
154

query I rowsort
SELECT ALL 87 * - 61 AS col1
----
-5307

query I rowsort
SELECT DISTINCT 99 * + ( + + 45 )
----
4455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT ALL CAST( - + 80 AS SIGNED ) + + 93
----
13

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL CAST ( - + 80 AS INTEGER ) + + 93
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5252
SELECT DISTINCT 78, SUM( + 15 ) AS col1
----
78
15

skipif mysql # not compatible
query II rowsort label-5252
SELECT DISTINCT 78, SUM ( + 15 ) AS col1
----
78
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT 93 - 53 - - - 67 + - CASE - MIN( 45 ) WHEN 42 - + 87 * 86 * + 34 THEN 75 * + 71 - + + 22 * 13 WHEN - CASE 54 WHEN 26 THEN CASE 6 WHEN 93 THEN NULL WHEN 94 THEN + 59 * 3 ELSE 20 END WHEN + 1 THEN NULL ELSE - 63 END THEN NULL ELSE NULL END - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT 93 - 53 - - - 67 + - CASE - MIN ( 45 ) WHEN 42 - + 87 * 86 * + 34 THEN 75 * + 71 - + + 22 * 13 WHEN - CASE 54 WHEN 26 THEN CASE 6 WHEN 93 THEN NULL WHEN 94 THEN + 59 * 3 ELSE 20 END WHEN + 1 THEN NULL ELSE - 63 END THEN NULL ELSE NULL END - 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5254
SELECT ALL 51 * - ( 57 ) col2, - 71 * 97 * 28 + - CASE + CAST( 10 AS SIGNED ) WHEN + MIN( ALL - 98 ) THEN - + 39 * - - 31 + + - 79 WHEN COUNT( * ) * 26 THEN + COUNT( * ) + 34 ELSE NULL END - MAX( ALL 88 )
----
-2907
NULL

skipif mysql # not compatible
query II rowsort label-5254
SELECT ALL 51 * - ( 57 ) col2, - 71 * 97 * 28 + - CASE + CAST ( 10 AS INTEGER ) WHEN + MIN ( ALL - 98 ) THEN - + 39 * - - 31 + + - 79 WHEN COUNT ( * ) * 26 THEN + COUNT ( * ) + 34 ELSE NULL END - MAX ( ALL 88 )
----
-2907
NULL

query I rowsort
SELECT 49 + 71 AS col1
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5256
SELECT CAST( CASE 59 WHEN - 62 * + 89 / - - 38 + + COUNT( * ) + 48 THEN NULL WHEN + 11 THEN NULL ELSE + NULLIF ( - 77, - 59 * + 92 ) END AS SIGNED ) + - - 41 * + 67 AS col2
----
2670

skipif mysql # not compatible
query I rowsort label-5256
SELECT CAST ( CASE 59 WHEN - 62 * + 89 / - - 38 + + COUNT ( * ) + 48 THEN NULL WHEN + 11 THEN NULL ELSE + NULLIF ( - 77, - 59 * + 92 ) END AS INTEGER ) + - - 41 * + 67 AS col2
----
2670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5257
SELECT 7 + + 75 + 30 + + - NULLIF ( - ( + 38 ), COUNT( * ) ) + + ( + ( - COUNT( * ) ) ) + + COUNT( * ) * - - COUNT( * ) * + + NULLIF ( 59, + CAST( NULL AS SIGNED ) ) DIV - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-5257
SELECT 7 + + 75 + 30 + + - NULLIF ( - ( + 38 ), COUNT ( * ) ) + + ( + ( - COUNT ( * ) ) ) + + COUNT ( * ) * - - COUNT ( * ) * + + NULLIF ( 59, + CAST ( NULL AS INTEGER ) ) / - COUNT ( * )
----
90

query II rowsort
SELECT - 97, 41 AS col0
----
-97
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5259
SELECT CAST( - 1 AS SIGNED ) + 22, 88 + 23 * + - 16 * + - 10 * - + ( 63 ) AS col1
----
21
-231752

skipif mysql # not compatible
query II rowsort label-5259
SELECT CAST ( - 1 AS INTEGER ) + 22, 88 + 23 * + - 16 * + - 10 * - + ( 63 ) AS col1
----
21
-231752

query I rowsort
SELECT DISTINCT - 40 - + 3 * - 1 AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5261
SELECT ALL + CASE 30 WHEN - + 97 THEN 94 END * - - 76 col1, - COUNT( * ) * + 34 * 88 * + 45 DIV + - COUNT( * ) * COUNT( * ) AS col0
----
NULL
134640

skipif mysql # not compatible
query II rowsort label-5261
SELECT ALL + CASE 30 WHEN - + 97 THEN 94 END * - - 76 col1, - COUNT ( * ) * + 34 * 88 * + 45 / + - COUNT ( * ) * COUNT ( * ) AS col0
----
NULL
134640

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT ALL 85 DIV - 56
----
-1

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL 85 / - 56
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT DISTINCT + 67 * COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT + 67 * COUNT ( * )
----
67

query I rowsort
SELECT ALL 24 * - 32 AS col0
----
-768

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5265
SELECT 44 * - - 50 + + + MIN( - ( 60 ) ) + 89 + + 29 - + 87 AS col2, - 56 + CAST( 57 AS DECIMAL ) + + + ( + 72 ) * + CAST( NULL AS DECIMAL ) AS col1
----
2171
NULL

skipif mysql # not compatible
query II rowsort label-5265
SELECT 44 * - - 50 + + + MIN ( - ( 60 ) ) + 89 + + 29 - + 87 AS col2, - 56 + CAST ( 57 AS REAL ) + + + ( + 72 ) * + CAST ( NULL AS REAL ) AS col1
----
2171
NULL

query I rowsort
SELECT 88 + 69
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT - NULLIF ( - + 40, 92 ) * 43 - + - COALESCE ( 90, + 61, + 2 DIV 19 DIV 0 * + + 44, 19 DIV - 6 * - + 23 )
----
1810

skipif mysql # not compatible
query I rowsort label-5267
SELECT - NULLIF ( - + 40, 92 ) * 43 - + - COALESCE ( 90, + 61, + 2 / 19 / 0 * + + 44, 19 / - 6 * - + 23 )
----
1810

query I rowsort
SELECT - 77 + - 18
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT ALL - + 46 * + 15 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL - + 46 * + 15 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5270
SELECT ALL + 47 + CAST( NULL AS SIGNED ) * + + COUNT( * ) - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL + 47 + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) - 17 AS col1
----
NULL

query I rowsort
SELECT ALL 4 * + - 75 AS col1
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2
----
0

query II rowsort
SELECT ALL - 16 col1, - 49
----
-16
-49

query I rowsort
SELECT ALL - 86 + - 97 + + - 24
----
-207

query I rowsort
SELECT DISTINCT - - 4 + 85 - + ( - ( - 40 ) ) AS col1
----
49

query I rowsort
SELECT DISTINCT + + 33 + + + 65
----
98

query I rowsort
SELECT 36 + - + ( + 75 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT + COALESCE ( - - COUNT( * ), - ( + + 15 ) * 72, COALESCE ( 27, - 55, 8 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5278
SELECT + COALESCE ( - - COUNT ( * ), - ( + + 15 ) * 72, COALESCE ( 27, - 55, 8 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5279
SELECT 14 AS col0, + 0 + ( + + 14 ) + - 18 - - CASE - 2 WHEN - - 6 THEN NULL ELSE 47 END + 54 * + 26 * - 34 + + - 91 / + + CAST( NULL AS SIGNED ) AS col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-5279
SELECT 14 AS col0, + 0 + ( + + 14 ) + - 18 - - CASE - 2 WHEN - - 6 THEN NULL ELSE 47 END + 54 * + 26 * - 34 + + - 91 / + + CAST ( NULL AS INTEGER ) AS col0
----
14
NULL

query I rowsort
SELECT + + 8 * + + 83 + CASE 84 WHEN + 90 THEN NULL WHEN + + 22 THEN NULL ELSE 33 END
----
697

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL + - COUNT( * ) * 84 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL + - COUNT ( * ) * 84 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL + COALESCE ( CASE - 73 WHEN COUNT( * ) THEN NULL WHEN + 56 + + 52 * + - 76 * + 2 - - 97 THEN - + COUNT( * ) END, + 22, - 36 ) + 20 * + + ( - 86 )
----
-1698

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL + COALESCE ( CASE - 73 WHEN COUNT ( * ) THEN NULL WHEN + 56 + + 52 * + - 76 * + 2 - - 97 THEN - + COUNT ( * ) END, + 22, - 36 ) + 20 * + + ( - 86 )
----
-1698

query I rowsort
SELECT 16 * + 44 AS col1
----
704

onlyif mysql # aggregate syntax: 
query II rowsort label-5284
SELECT + + 31 AS col1, NULLIF ( - COALESCE ( - 96, + + 12 * + 20 - - - 65 ), - - MIN( DISTINCT 18 ) ) AS col2
----
31
96

skipif mysql # not compatible
query II rowsort label-5284
SELECT + + 31 AS col1, NULLIF ( - COALESCE ( - 96, + + 12 * + 20 - - - 65 ), - - MIN ( DISTINCT 18 ) ) AS col2
----
31
96

query II rowsort
SELECT + 71 AS col0, 57
----
71
57

query I rowsort
SELECT ALL - - ( + 38 ) + 30 * 47 AS col0
----
1448

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT + SUM( DISTINCT - + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-5287
SELECT + SUM ( DISTINCT - + 39 )
----
-39

query I rowsort
SELECT ALL + 1 * 4 + + 97 + + 93 + 85
----
279

query II rowsort
SELECT 38, 63 + ( 71 ) AS col0
----
38
134

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL - ( COUNT( * ) ) - + MAX( DISTINCT 39 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - ( COUNT ( * ) ) - + MAX ( DISTINCT 39 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT - NULLIF ( - 67, - - 80 / + MIN( ALL - 1 ) + + 56 + 49 + - 75 + - + 47 * - 84 ) col0
----
67

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT - NULLIF ( - 67, - - 80 / + MIN ( ALL - 1 ) + + 56 + 49 + - 75 + - + 47 * - 84 ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL COUNT( * ) - + 16 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL COUNT ( * ) - + 16 AS col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5293
SELECT MIN( ALL - + 58 ) DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-5293
SELECT MIN ( ALL - + 58 ) / + 84
----
0

query I rowsort
SELECT 53 + 51
----
104

query I rowsort
SELECT 88 * 78
----
6864

query I rowsort
SELECT ALL 80 * - 93 AS col1
----
-7440

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT 78 - + - ( - 61 ) DIV + 79 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5297
SELECT 78 - + - ( - 61 ) / + 79 AS col0
----
78

query II rowsort
SELECT ALL 41, + 76 AS col1
----
41
76

onlyif mysql # aggregate syntax: 
query III rowsort label-5299
SELECT ALL 98 * + 96 AS col1, COUNT( * ) * - 14, COUNT( * ) AS col1
----
9408
-14
1

skipif mysql # not compatible
query III rowsort label-5299
SELECT ALL 98 * + 96 AS col1, COUNT ( * ) * - 14, COUNT ( * ) AS col1
----
9408
-14
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT DISTINCT COUNT( * ) * + 0, 4 * - + 19 + + 32 * 2 AS col0
----
0
-12

skipif mysql # not compatible
query II rowsort label-5300
SELECT DISTINCT COUNT ( * ) * + 0, 4 * - + 19 + + 32 * 2 AS col0
----
0
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT MAX( DISTINCT 70 ) + - 99 + - - 7 col0
----
-22

skipif mysql # not compatible
query I rowsort label-5301
SELECT MAX ( DISTINCT 70 ) + - 99 + - - 7 col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT COUNT( * ) * + 57 col0
----
57

skipif mysql # not compatible
query I rowsort label-5302
SELECT COUNT ( * ) * + 57 col0
----
57

query II rowsort
SELECT DISTINCT 79 * 14, - 51 col1
----
1106
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT DISTINCT COUNT( DISTINCT - + 92 ) + - 64 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT COUNT ( DISTINCT - + 92 ) + - 64 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT - 92 * - + SUM( 12 )
----
1104

skipif mysql # not compatible
query I rowsort label-5305
SELECT - 92 * - + SUM ( 12 )
----
1104

query I rowsort
SELECT ALL - 51 + - 16
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT - MIN( DISTINCT 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-5307
SELECT - MIN ( DISTINCT 30 )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-5308
SELECT ALL 49 + + 48 AS col1, + COUNT( * )
----
97
1

skipif mysql # not compatible
query II rowsort label-5308
SELECT ALL 49 + + 48 AS col1, + COUNT ( * )
----
97
1

query II rowsort
SELECT DISTINCT 14, 93 + 39 + - ( 33 ) * 78 * + 42 AS col0
----
14
-107976

query I rowsort
SELECT ALL - 1 + ( + 33 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5311
SELECT MAX( ALL - CAST( NULL AS DECIMAL ) ) * - + NULLIF ( - - COUNT( * ), - 98 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT MAX ( ALL - CAST ( NULL AS REAL ) ) * - + NULLIF ( - - COUNT ( * ), - 98 ) col2
----
NULL

query I rowsort
SELECT ALL 98 + + + 70 - + COALESCE ( 82, - + 96 * + + 29 * 80 * + 92 + + + 89 ) + - 87 AS col1
----
-1

query I rowsort
SELECT ALL - + ( - + 50 )
----
50

query I rowsort
SELECT - 41 * 0 AS col2
----
0

query I rowsort
SELECT ALL + 83 * + - 60 + - 49 + + + 26
----
-5003

query I rowsort
SELECT ALL + 19 * + - 14 + + + 27
----
-239

query I rowsort
SELECT - 64 * 33
----
-2112

query I rowsort
SELECT DISTINCT + 24 * 22
----
528

query I rowsort
SELECT 61 * + 19 * + 98 + + 53
----
113635

query I rowsort
SELECT 51 * + 93 AS col2
----
4743

query I rowsort
SELECT ALL + CASE ( + 30 ) WHEN - 32 THEN 25 + - - 90 * - 86 WHEN + AVG ( 99 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL + + MAX( DISTINCT + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL + + MAX ( DISTINCT + 48 )
----
48

query I rowsort
SELECT COALESCE ( - - 76, - CASE 53 WHEN 43 THEN - 50 * + + 9 ELSE NULL END * + - 75, - 24 ) * + + 8 * - - 81 + + 90 col1
----
49338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5324
SELECT ALL + 60 * CAST( 41 AS SIGNED ) - + COUNT( * ) + + + 5 AS col0
----
2464

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL + 60 * CAST ( 41 AS INTEGER ) - + COUNT ( * ) + + + 5 AS col0
----
2464

onlyif mysql # aggregate syntax: 
query II rowsort label-5325
SELECT + COALESCE ( + - 74, + 56 ) * - - 53 + 92 AS col0, - CASE + - ( 14 ) WHEN - 69 + - - COUNT( - 57 ) / + 9 - - ( - 1 ) + + + ( + 36 ) THEN + - AVG ( 42 ) * - 33 WHEN 65 + - 82 THEN NULL END - + COALESCE ( COUNT( * ), + 29, 84 ) / 94 AS col1
----
-3830
NULL

skipif mysql # not compatible
query II rowsort label-5325
SELECT + COALESCE ( + - 74, + 56 ) * - - 53 + 92 AS col0, - CASE + - ( 14 ) WHEN - 69 + - - COUNT ( - 57 ) / + 9 - - ( - 1 ) + + + ( + 36 ) THEN + - AVG ( 42 ) * - 33 WHEN 65 + - 82 THEN NULL END - + COALESCE ( COUNT ( * ), + 29, 84 ) / 94 AS col1
----
-3830
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT - 29 + + 41 + - COUNT( - 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5326
SELECT - 29 + + 41 + - COUNT ( - 11 ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5327
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) * - 21 - + + 0 * - + 36 + + COUNT( * ) * - 37, 31 AS col0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-5327
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 21 - + + 0 * - + 36 + + COUNT ( * ) * - 37, 31 AS col0
----
NULL
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT + 40 * - 50 * + 55 * 44 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT + 40 * - 50 * + 55 * 44 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT DISTINCT + 12 * + ( 72 ) * CAST( - - 62 AS SIGNED ) * + 50
----
2678400

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT + 12 * + ( 72 ) * CAST ( - - 62 AS INTEGER ) * + 50
----
2678400

query I rowsort
SELECT DISTINCT + 3 * + NULLIF ( + 2, 41 ) * - 51 * - 4 AS col1
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT - ( - + 73 ) + + 62 + + 56 + - + 79 + - + ( + COUNT( * ) )
----
111

skipif mysql # not compatible
query I rowsort label-5331
SELECT - ( - + 73 ) + + 62 + + 56 + - + 79 + - + ( + COUNT ( * ) )
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-5332
SELECT ALL COALESCE ( - 79, + + 76 * + 30 DIV 62 ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL COALESCE ( - 79, + + 76 * + 30 / 62 ) col1
----
-79

query I rowsort
SELECT DISTINCT - 40 * - - 35 col2
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL CASE + 94 WHEN - 4 * - + 31 THEN - MAX( ALL - 55 ) * - CASE - - ( - + 20 ) WHEN 51 THEN + 33 + - COALESCE ( + - ( + + AVG ( ALL 35 ) ), + 41 * + + 60 + 12 - 6, NULLIF ( 69, 48 ) ) - COUNT( * ) * - COUNT( * ) END WHEN - 11 THEN 10 + AVG ( - ( 9 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL CASE + 94 WHEN - 4 * - + 31 THEN - MAX ( ALL - 55 ) * - CASE - - ( - + 20 ) WHEN 51 THEN + 33 + - COALESCE ( + - ( + + AVG ( ALL 35 ) ), + 41 * + + 60 + 12 - 6, NULLIF ( 69, 48 ) ) - COUNT ( * ) * - COUNT ( * ) END WHEN - 11 THEN 10 + AVG ( - ( 9 ) ) END AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( + - 21, - - 69 * + 8 ) + 57 + 84
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT + 26 DIV + + 20 * 97 DIV - ( + 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-5336
SELECT + 26 / + + 20 * 97 / - ( + 73 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5337
SELECT DISTINCT - 50 + 92 AS col0, COUNT( * ) * 10 + + - 69
----
42
-59

skipif mysql # not compatible
query II rowsort label-5337
SELECT DISTINCT - 50 + 92 AS col0, COUNT ( * ) * 10 + + - 69
----
42
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL + ( COUNT( * ) ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL + ( COUNT ( * ) ) + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5339
SELECT ( - 29 ) AS col1, - 56 * - CAST( + - ( - + 39 ) AS SIGNED )
----
-29
2184

skipif mysql # not compatible
query II rowsort label-5339
SELECT ( - 29 ) AS col1, - 56 * - CAST ( + - ( - + 39 ) AS INTEGER )
----
-29
2184

query I rowsort
SELECT DISTINCT + + ( - 71 ) + + - 38 + - 20 AS col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT - - 67 * COUNT( * ) * 44 * + 48 + + - 51 * + - 23 AS col2
----
142677

skipif mysql # not compatible
query I rowsort label-5341
SELECT - - 67 * COUNT ( * ) * 44 * + 48 + + - 51 * + - 23 AS col2
----
142677

query II rowsort
SELECT - 83 - + 87 AS col1, + 37 col1
----
-170
37

query I rowsort
SELECT ALL + 95 * + 86 AS col2
----
8170

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT DISTINCT COUNT( * ) + + - ( + 16 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT COUNT ( * ) + + - ( + 16 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT - ( + ( 98 ) ) / COUNT( * ) + CASE COUNT( * ) WHEN - + 69 * + + 54 THEN - 51 + - 60 * + ( ( + 62 ) ) + - - CASE + 47 WHEN - 55 THEN NULL WHEN + 95 * - 2 THEN NULL WHEN 52 THEN NULL ELSE - 78 * + 78 END + 77 * - 69 ELSE NULL END + + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT - ( + ( 98 ) ) / COUNT ( * ) + CASE COUNT ( * ) WHEN - + 69 * + + 54 THEN - 51 + - 60 * + ( ( + 62 ) ) + - - CASE + 47 WHEN - 55 THEN NULL WHEN + 95 * - 2 THEN NULL WHEN 52 THEN NULL ELSE - 78 * + 78 END + 77 * - 69 ELSE NULL END + + 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT + - NULLIF ( - 78, - 1 + + COALESCE ( + COALESCE ( - + 22, 76, COUNT( * ) ), - + 65 ) ) + + MAX( DISTINCT 57 ) col2
----
135

skipif mysql # not compatible
query I rowsort label-5346
SELECT + - NULLIF ( - 78, - 1 + + COALESCE ( + COALESCE ( - + 22, 76, COUNT ( * ) ), - + 65 ) ) + + MAX ( DISTINCT 57 ) col2
----
135

onlyif mysql # aggregate syntax: 
query III rowsort label-5347
SELECT + COUNT( * ) * - + 23 + + - 96 AS col2, + ( - 12 ) AS col0, - 24
----
-119
-12
-24

skipif mysql # not compatible
query III rowsort label-5347
SELECT + COUNT ( * ) * - + 23 + + - 96 AS col2, + ( - 12 ) AS col0, - 24
----
-119
-12
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5348
SELECT + 28 DIV - 62 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5348
SELECT + 28 / - 62 * - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5349
SELECT DISTINCT 68 DIV - 43 * - + COUNT( * ) + - 32 * 32 - - CAST( 28 AS SIGNED ) DIV - 24 + 85
----
-939

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT 68 / - 43 * - + COUNT ( * ) + - 32 * 32 - - CAST ( 28 AS INTEGER ) / - 24 + 85
----
-939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5350
SELECT ALL + 42 * - + 60 + - 95 * COUNT( * ) - - + 69 DIV COUNT( - 72 ) AS col2, CAST( - - 34 AS SIGNED )
----
-2546
34

skipif mysql # not compatible
query II rowsort label-5350
SELECT ALL + 42 * - + 60 + - 95 * COUNT ( * ) - - + 69 / COUNT ( - 72 ) AS col2, CAST ( - - 34 AS INTEGER )
----
-2546
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT + - 57 DIV 82 + + + 52
----
52

skipif mysql # not compatible
query I rowsort label-5351
SELECT + - 57 / 82 + + + 52
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT DISTINCT + 52 DIV - - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT + 52 / - - 67 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT + COALESCE ( COALESCE ( + 27, 2 * + 85 + 74 ), - 29, - 56 * 20 + CAST( NULL AS SIGNED ) + + - 97 + 98 * + - CAST( + + ( 35 ) AS SIGNED ) - - MAX( ALL + + 23 ) + 74 ) * - MAX( + 35 + - 2 )
----
-891

skipif mysql # not compatible
query I rowsort label-5353
SELECT + COALESCE ( COALESCE ( + 27, 2 * + 85 + 74 ), - 29, - 56 * 20 + CAST ( NULL AS INTEGER ) + + - 97 + 98 * + - CAST ( + + ( 35 ) AS INTEGER ) - - MAX ( ALL + + 23 ) + 74 ) * - MAX ( + 35 + - 2 )
----
-891

query I rowsort
SELECT + 17 * + 8
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-5355
SELECT + 34 DIV - 10
----
-3

skipif mysql # not compatible
query I rowsort label-5355
SELECT + 34 / - 10
----
-3

query I rowsort
SELECT + ( - - 63 ) AS col1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT COALESCE ( - - 92, - 67 + - + 5, - 64 DIV 4 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5357
SELECT COALESCE ( - - 92, - 67 + - + 5, - 64 / 4 ) AS col1
----
92

query I rowsort
SELECT ALL 5 * 43
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT CASE WHEN NOT COALESCE ( + 58, - 40 * 35 - 6 - - - CASE - 17 WHEN - COUNT( ALL ( - 13 ) ) THEN 45 WHEN + 46 THEN NULL ELSE NULL END * + 73 / - 59 / + - 28 / + 23 ) BETWEEN NULL AND - ( + 69 ) THEN - 14 + COUNT( * ) * 67 ELSE COUNT( * ) - + 61 END
----
53

skipif mysql # not compatible
query I rowsort label-5359
SELECT CASE WHEN NOT COALESCE ( + 58, - 40 * 35 - 6 - - - CASE - 17 WHEN - COUNT ( ALL ( - 13 ) ) THEN 45 WHEN + 46 THEN NULL ELSE NULL END * + 73 / - 59 / + - 28 / + 23 ) BETWEEN NULL AND - ( + 69 ) THEN - 14 + COUNT ( * ) * 67 ELSE COUNT ( * ) - + 61 END
----
53

query I rowsort
SELECT - 16 * - 81
----
1296

query II rowsort
SELECT ALL + 49 AS col2, - 50 AS col0
----
49
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5362
SELECT + CAST( - 42 AS SIGNED ) * + 71 col1
----
-2982

skipif mysql # not compatible
query I rowsort label-5362
SELECT + CAST ( - 42 AS INTEGER ) * + 71 col1
----
-2982

query I rowsort
SELECT NULLIF ( 88, 2 ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5364
SELECT ALL 47 * - ( CAST( NULL AS SIGNED ) ) + + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL 47 * - ( CAST ( NULL AS INTEGER ) ) + + 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT + 60 * 98 + 36 - - COUNT( * ) AS col2
----
5917

skipif mysql # not compatible
query I rowsort label-5365
SELECT + 60 * 98 + 36 - - COUNT ( * ) AS col2
----
5917

onlyif mysql # aggregate syntax: 
query II rowsort label-5366
SELECT COUNT( * ) AS col0, 26 AS col2
----
1
26

skipif mysql # not compatible
query II rowsort label-5366
SELECT COUNT ( * ) AS col0, 26 AS col2
----
1
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5367
SELECT + CAST( NULL AS DECIMAL ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT + CAST ( NULL AS REAL ) * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT + COUNT( * ) + - ( + 65 ) - COUNT( - 95 ) + 80 * 47 * 8 - + COUNT( * ) AS col1
----
30014

skipif mysql # not compatible
query I rowsort label-5368
SELECT + COUNT ( * ) + - ( + 65 ) - COUNT ( - 95 ) + 80 * 47 * 8 - + COUNT ( * ) AS col1
----
30014

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT MIN( ALL + 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5369
SELECT MIN ( ALL + 25 ) AS col2
----
25

query I rowsort
SELECT - 27 + + 95 AS col2
----
68

query I rowsort
SELECT - 85 * + 39 AS col2
----
-3315

query I rowsort
SELECT ALL + ( + + 20 ) * - - 79 + 72 col1
----
1652

query I rowsort
SELECT DISTINCT ( - 97 )
----
-97

query I rowsort
SELECT ALL - 54 + - 19 AS col2
----
-73

query I rowsort
SELECT DISTINCT 20 + - - 81 * + 32
----
2612

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT DISTINCT + COUNT( * ) + + 11 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT + COUNT ( * ) + + 11 AS col2
----
12

query I rowsort
SELECT DISTINCT + - 27 + + 93
----
66

query II rowsort
SELECT - + 65, 42 AS col0
----
-65
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT DISTINCT - + MAX( DISTINCT - + 67 ) + + + 44
----
111

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT - + MAX ( DISTINCT - + 67 ) + + + 44
----
111

query II rowsort
SELECT - - 30 * - - 37 + 95 AS col2, 78
----
1205
78

query I rowsort
SELECT DISTINCT - - 47 - - - 9 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT NULLIF ( ( - 68 ), - - CASE 55 WHEN + + MIN( 26 ) + + ( + - 93 ) THEN NULL WHEN + COUNT( 16 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) + - 8 + 48 * 79 * - 65 / - 63 THEN + 14 * 30 WHEN 41 * - 29 THEN NULL END * - 27 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5382
SELECT NULLIF ( ( - 68 ), - - CASE 55 WHEN + + MIN ( 26 ) + + ( + - 93 ) THEN NULL WHEN + COUNT ( 16 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) + - 8 + 48 * 79 * - 65 / - 63 THEN + 14 * 30 WHEN 41 * - 29 THEN NULL END * - 27 ) AS col1
----
-68

query II rowsort
SELECT ALL 56 * + 95 * 83 AS col2, 14
----
441560
14

query II rowsort
SELECT - + 14, ( + - 41 ) + + + 72 col2
----
-14
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT DISTINCT - 67 - - + MIN( - 95 ) * 13 * + 64 * 64 * - + 52 + + - COALESCE ( - 67, + ( - - 45 ) * + 9 + 18 + - + 85, + - 34 ) * + + 5 * + 92
----
263075873

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT - 67 - - + MIN ( - 95 ) * 13 * + 64 * 64 * - + 52 + + - COALESCE ( - 67, + ( - - 45 ) * + 9 + 18 + - + 85, + - 34 ) * + + 5 * + 92
----
263075873

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT + - MIN( + - 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5386
SELECT + - MIN ( + - 64 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL - + COUNT( DISTINCT 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL - + COUNT ( DISTINCT 31 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5388
SELECT ALL - NULLIF ( - 56, - CAST( 52 AS DECIMAL ) ) * + 41 * 9 + 35 + + + ( 4 ) + - + ( + 63 ) DIV 86 * + 72 AS col1
----
20703

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - NULLIF ( - 56, - CAST ( 52 AS REAL ) ) * + 41 * 9 + 35 + + + ( 4 ) + - + ( + 63 ) / 86 * + 72 AS col1
----
20703

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT + 53 * - COUNT( + 49 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5389
SELECT + 53 * - COUNT ( + 49 ) AS col2
----
-53

query I rowsort
SELECT ALL - 23 * - 25
----
575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5391
SELECT + 97 * + 17 * + + 92 + + + CASE - - 18 WHEN - - COALESCE ( + CAST( NULL AS SIGNED ), + + 97 * + + 38, - 56 * + - MIN( DISTINCT + 5 ) + 82 + + 20 ) THEN + - 5 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT + 97 * + 17 * + + 92 + + + CASE - - 18 WHEN - - COALESCE ( + CAST ( NULL AS INTEGER ), + + 97 * + + 38, - 56 * + - MIN ( DISTINCT + 5 ) + 82 + + 20 ) THEN + - 5 END AS col0
----
NULL

query I rowsort
SELECT 62 + - + 26 * - 75 AS col0
----
2012

query I rowsort
SELECT 98 * - - 57
----
5586

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT COUNT( ALL + - 94 ) + 0
----
1

skipif mysql # not compatible
query I rowsort label-5394
SELECT COUNT ( ALL + - 94 ) + 0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5395
SELECT ALL 58 + + - 97 AS col0, - COALESCE ( - - 53, + + 62 ) DIV - + 86 * 83 * + 91 * + 63 DIV - - 49 AS col0
----
-39
0

skipif mysql # not compatible
query II rowsort label-5395
SELECT ALL 58 + + - 97 AS col0, - COALESCE ( - - 53, + + 62 ) / - + 86 * 83 * + 91 * + 63 / - - 49 AS col0
----
-39
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5396
SELECT COALESCE ( + 1, - 20 DIV - 38 + 42 ) * - 35 DIV - 74 + NULLIF ( + 61, - - COUNT( * ) - CAST( + 24 AS SIGNED ) + COUNT( * ) * 77 ), 58 AS col2
----
61
58

skipif mysql # not compatible
query II rowsort label-5396
SELECT COALESCE ( + 1, - 20 / - 38 + 42 ) * - 35 / - 74 + NULLIF ( + 61, - - COUNT ( * ) - CAST ( + 24 AS INTEGER ) + COUNT ( * ) * 77 ), 58 AS col2
----
61
58

query I rowsort
SELECT DISTINCT 87 + - NULLIF ( + 45, - - 85 / 68 ) col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT ALL - MIN( DISTINCT - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL - MIN ( DISTINCT - 53 )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5399
SELECT DISTINCT 10 * - 40 AS col0, - 17 * 56 * + MIN( DISTINCT - 83 ) + + + 48
----
-400
79064

skipif mysql # not compatible
query II rowsort label-5399
SELECT DISTINCT 10 * - 40 AS col0, - 17 * 56 * + MIN ( DISTINCT - 83 ) + + + 48
----
-400
79064

query I rowsort
SELECT 7 + + + 42
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5401
SELECT ALL 22 + - - COALESCE ( - 53, + + 78 DIV - + 64 ) * + 35 * + 40 * MIN( - 28 ) + - COUNT( ALL + 23 )
----
2077621

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL 22 + - - COALESCE ( - 53, + + 78 / - + 64 ) * + 35 * + 40 * MIN ( - 28 ) + - COUNT ( ALL + 23 )
----
2077621

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT 78 * 42 DIV - 44
----
-74

skipif mysql # not compatible
query I rowsort label-5402
SELECT 78 * 42 / - 44
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT COUNT( * ) + - - 43 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5403
SELECT COUNT ( * ) + - - 43 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT 57 + + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT 57 + + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5405
SELECT ALL COALESCE ( - COUNT( * ), + NULLIF ( 17, + 47 + 23 ) - - + 58 ) * - 21 * ( + 28 ) DIV + 49 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL COALESCE ( - COUNT ( * ), + NULLIF ( 17, + 47 + 23 ) - - + 58 ) * - 21 * ( + 28 ) / + 49 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT 68 * 17 + SUM( ALL + 46 ) + + 53 * + COUNT( * )
----
1255

skipif mysql # not compatible
query I rowsort label-5406
SELECT 68 * 17 + SUM ( ALL + 46 ) + + 53 * + COUNT ( * )
----
1255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT DISTINCT ( - 42 ) * 71 - CAST( - 18 AS SIGNED ) AS col0
----
-2964

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT ( - 42 ) * 71 - CAST ( - 18 AS INTEGER ) AS col0
----
-2964

onlyif mysql # aggregate syntax: 
query II rowsort label-5408
SELECT ALL 68 + - 1 AS col2, COUNT( * ) - 91 * - COUNT( * ) + - - 18
----
67
110

skipif mysql # not compatible
query II rowsort label-5408
SELECT ALL 68 + - 1 AS col2, COUNT ( * ) - 91 * - COUNT ( * ) + - - 18
----
67
110

query I rowsort
SELECT ALL 79 * + - 97 * - 46 * + ( 67 )
----
23617366

onlyif mysql # aggregate syntax: 
query II rowsort label-5410
SELECT ALL + COUNT( * ) + - + 76 AS col2, + ( + ( - 66 ) ) AS col2
----
-75
-66

skipif mysql # not compatible
query II rowsort label-5410
SELECT ALL + COUNT ( * ) + - + 76 AS col2, + ( + ( - 66 ) ) AS col2
----
-75
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT ALL MAX( ALL - 81 ) + + CASE + CAST( NULL AS SIGNED ) WHEN 83 / + + 40 THEN NULL WHEN - + 27 THEN NULL ELSE - - 52 END * - 13 * + 88
----
-59569

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL MAX ( ALL - 81 ) + + CASE + CAST ( NULL AS INTEGER ) WHEN 83 / + + 40 THEN NULL WHEN - + 27 THEN NULL ELSE - - 52 END * - 13 * + 88
----
-59569

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT ALL - ( - - MIN( + 43 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL - ( - - MIN ( + 43 ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT ALL - - 37 + + MAX( - 16 )
----
21

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL - - 37 + + MAX ( - 16 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5414
SELECT DISTINCT 0 - + CASE 37 WHEN + + 89 * + 32 THEN - + 96 * - CAST( NULL AS SIGNED ) ELSE - 87 * - 18 END, 7 AS col0
----
-1566
7

skipif mysql # not compatible
query II rowsort label-5414
SELECT DISTINCT 0 - + CASE 37 WHEN + + 89 * + 32 THEN - + 96 * - CAST ( NULL AS INTEGER ) ELSE - 87 * - 18 END, 7 AS col0
----
-1566
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT ALL - 79 DIV - 71 - + 79 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL - 79 / - 71 - + 79 AS col2
----
-78

query I rowsort
SELECT - 74 * - 42 AS col2
----
3108

query I rowsort
SELECT 18 + - - 38 + - - 94 AS col1
----
150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5418
SELECT DISTINCT - + 95 * - 8 + - + COUNT( CAST( - - 7 AS DECIMAL ) ) * ( - + SUM( - + 35 ) )
----
725

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT - + 95 * - 8 + - + COUNT ( CAST ( - - 7 AS REAL ) ) * ( - + SUM ( - + 35 ) )
----
725

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT - CASE + - 87 WHEN + COUNT( * ) THEN 25 END - - - 41 * - COUNT( * ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT - CASE + - 87 WHEN + COUNT ( * ) THEN 25 END - - - 41 * - COUNT ( * ) * 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5420
SELECT + NULLIF ( 27, + 90 * - 73 - - - CAST( NULL AS SIGNED ) + + 55 - - MIN( ALL + - ( + + 19 ) ) * SUM( DISTINCT + - 58 ) + - COUNT( DISTINCT - + 4 ) ) + - 62
----
-35

skipif mysql # not compatible
query I rowsort label-5420
SELECT + NULLIF ( 27, + 90 * - 73 - - - CAST ( NULL AS INTEGER ) + + 55 - - MIN ( ALL + - ( + + 19 ) ) * SUM ( DISTINCT + - 58 ) + - COUNT ( DISTINCT - + 4 ) ) + - 62
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL MIN( ALL - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL MIN ( ALL - 81 ) AS col1
----
-81

query I rowsort
SELECT DISTINCT 89 * - 36
----
-3204

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL + COUNT( - + 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL + COUNT ( - + 38 ) AS col0
----
1

query I rowsort
SELECT ( 80 ) * + 55 AS col1
----
4400

query I rowsort
SELECT 5 + + 96 - - 49
----
150

query I rowsort
SELECT + 51 * + + 68 AS col0
----
3468

query I rowsort
SELECT - 73 + 8 * 82 AS col2
----
583

query I rowsort
SELECT 72 * + 11 col1
----
792

query I rowsort
SELECT 35 * - 3 + - 12 AS col2
----
-117

query I rowsort
SELECT DISTINCT - ( 37 ) col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5431
SELECT DISTINCT - 80 + COALESCE ( + + 73, ( + + COALESCE ( - 8, + 55 * - COUNT( * ) ) ) * - 66 - + 85 - - CASE 94 WHEN + AVG ( - 57 ) THEN + SUM( - + 59 ) WHEN CAST( - + COUNT( * ) AS DECIMAL ) THEN + 79 END DIV 27 * COUNT( * ) ) + - 85 * 61
----
-5192

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT - 80 + COALESCE ( + + 73, ( + + COALESCE ( - 8, + 55 * - COUNT ( * ) ) ) * - 66 - + 85 - - CASE 94 WHEN + AVG ( - 57 ) THEN + SUM ( - + 59 ) WHEN CAST ( - + COUNT ( * ) AS REAL ) THEN + 79 END / 27 * COUNT ( * ) ) + - 85 * 61
----
-5192

query II rowsort
SELECT ALL - 59 AS col1, 85
----
-59
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5433
SELECT ALL 34 * + - 36 * COUNT( * ) AS col0, 35
----
-1224
35

skipif mysql # not compatible
query II rowsort label-5433
SELECT ALL 34 * + - 36 * COUNT ( * ) AS col0, 35
----
-1224
35

query I rowsort
SELECT 97 * + 81 AS col2
----
7857

query I rowsort
SELECT DISTINCT 69 + 84 AS col0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5436
SELECT DISTINCT - SUM( ALL - 73 ) + + + 52 DIV + 17 col0
----
76

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT - SUM ( ALL - 73 ) + + + 52 / + 17 col0
----
76

query I rowsort
SELECT 23 * + 51 col0
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL - 63 + + + COUNT( * ) + 21
----
-41

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL - 63 + + + COUNT ( * ) + 21
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT COUNT( * ) - - 25 * 10 * - + 69 AS col0
----
-17249

skipif mysql # not compatible
query I rowsort label-5439
SELECT COUNT ( * ) - - 25 * 10 * - + 69 AS col0
----
-17249

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5440
SELECT 74 AS col0, + COUNT( * ) DIV 47 * + 94 * - + COALESCE ( 8, - 20 ) - - 91 * 57
----
74
5187

skipif mysql # not compatible
query II rowsort label-5440
SELECT 74 AS col0, + COUNT ( * ) / 47 * + 94 * - + COALESCE ( 8, - 20 ) - - 91 * 57
----
74
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL MAX( ALL - ( 38 ) ) + 58 + SUM( + + CASE ( - 25 ) WHEN 25 * - + 86 + - - 53 THEN - + 30 + - 22 ELSE + 52 END ) * + 61 * + 59 AS col0
----
187168

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL MAX ( ALL - ( 38 ) ) + 58 + SUM ( + + CASE ( - 25 ) WHEN 25 * - + 86 + - - 53 THEN - + 30 + - 22 ELSE + 52 END ) * + 61 * + 59 AS col0
----
187168

query I rowsort
SELECT 13 * - 31
----
-403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT DISTINCT - CAST( AVG ( ALL - - 82 ) AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT - CAST ( AVG ( ALL - - 82 ) AS INTEGER )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT DISTINCT NULLIF ( CAST( - - COUNT( DISTINCT - 71 ) AS SIGNED ), + 13 ) * + + 94 * + MAX( + 86 ) * COUNT( * ) + - 9 AS col1
----
8075

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT NULLIF ( CAST ( - - COUNT ( DISTINCT - 71 ) AS INTEGER ), + 13 ) * + + 94 * + MAX ( + 86 ) * COUNT ( * ) + - 9 AS col1
----
8075

query I rowsort
SELECT ALL + 37 - - 35 * - - 35 AS col1
----
1262

query I rowsort
SELECT DISTINCT - NULLIF ( + 45, - + 85 ) AS col0
----
-45

query I rowsort
SELECT 95 - - 31 AS col0
----
126

query II rowsort
SELECT - 39 AS col2, - 97
----
-39
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5449
SELECT - NULLIF ( + ( + + 5 ), - 30 * CAST( - 85 AS SIGNED ) ) + 13
----
8

skipif mysql # not compatible
query I rowsort label-5449
SELECT - NULLIF ( + ( + + 5 ), - 30 * CAST ( - 85 AS INTEGER ) ) + 13
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5450
SELECT 41 DIV + 11
----
3

skipif mysql # not compatible
query I rowsort label-5450
SELECT 41 / + 11
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5451
SELECT ALL ( - 85 ) * + + CASE - + SUM( DISTINCT + 72 ) WHEN CAST( + COUNT( + + 25 ) AS SIGNED ) THEN NULL WHEN ( + 43 ) THEN - 64 + - + 28 + + 31 * + NULLIF ( 22, CAST( NULL AS DECIMAL ) ) * + 96 + + NULLIF ( + 32, 45 ) ELSE NULL END + + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL ( - 85 ) * + + CASE - + SUM ( DISTINCT + 72 ) WHEN CAST ( + COUNT ( + + 25 ) AS INTEGER ) THEN NULL WHEN ( + 43 ) THEN - 64 + - + 28 + + 31 * + NULLIF ( 22, CAST ( NULL AS REAL ) ) * + 96 + + NULLIF ( + 32, 45 ) ELSE NULL END + + 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT 71 * CASE 85 WHEN - - CASE + - 49 WHEN 85 THEN - COUNT( * ) WHEN ( + 36 ) * MIN( - 32 ) THEN NULL WHEN + 28 THEN COUNT( * ) ELSE + 35 + + 37 / 17 * - + 34 END * + - 49 + 64 * 49 * 39 + 41 THEN NULL WHEN COUNT( * ) THEN NULL WHEN + COUNT( * ) * + 70 THEN NULL ELSE + 91 * + 50 END - 8
----
323042

skipif mysql # not compatible
query I rowsort label-5452
SELECT 71 * CASE 85 WHEN - - CASE + - 49 WHEN 85 THEN - COUNT ( * ) WHEN ( + 36 ) * MIN ( - 32 ) THEN NULL WHEN + 28 THEN COUNT ( * ) ELSE + 35 + + 37 / 17 * - + 34 END * + - 49 + 64 * 49 * 39 + 41 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * + 70 THEN NULL ELSE + 91 * + 50 END - 8
----
323042

query I rowsort
SELECT DISTINCT - 91 * + 28
----
-2548

query I rowsort
SELECT + - NULLIF ( - - 31, 40 ) * + 23
----
-713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5455
SELECT + CASE + 16 WHEN - + 4 THEN - 40 - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT + CASE + 16 WHEN - + 4 THEN - 40 - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 16 * + - ( - + 20 ) * - - 44 AS col2
----
14080

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + - ( + + COUNT( DISTINCT - 41 ) ) + + 6 - + 27 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-5457
SELECT + - ( + + COUNT ( DISTINCT - 41 ) ) + + 6 - + 27 AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT DISTINCT - COALESCE ( + 71, COUNT( * ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT - COALESCE ( + 71, COUNT ( * ) ) AS col2
----
-71

query I rowsort
SELECT - - 95 * - 47 AS col0
----
-4465

query I rowsort
SELECT ALL + 15 + + 0 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5462
SELECT - - 46 DIV + 8
----
5

skipif mysql # not compatible
query I rowsort label-5462
SELECT - - 46 / + 8
----
5

query I rowsort
SELECT ALL + 40 + + 6 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5464
SELECT ALL + CASE - + CASE - CASE - 39 WHEN - 2 / + 17 THEN NULL ELSE + COUNT( * ) * - 94 * - 2 * - 57 * + + 92 END WHEN + 51 + + ( CASE 79 WHEN - 28 + 49 THEN + MAX( + - 56 ) + - COUNT( * ) - + COUNT( * ) WHEN - COALESCE ( CASE 73 WHEN COUNT( * ) * COUNT( * ) THEN - COUNT( * ) * - 35 WHEN + 52 * - CAST( NULL AS SIGNED ) + 30 * 58 THEN NULL END, 96 ) THEN + 20 ELSE NULL END ) THEN - 75 END WHEN + 83 - 45 THEN + 2 + - 40 WHEN 63 + + 74 * + 47 THEN + 35 - + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL + CASE - + CASE - CASE - 39 WHEN - 2 / + 17 THEN NULL ELSE + COUNT ( * ) * - 94 * - 2 * - 57 * + + 92 END WHEN + 51 + + ( CASE 79 WHEN - 28 + 49 THEN + MAX ( + - 56 ) + - COUNT ( * ) - + COUNT ( * ) WHEN - COALESCE ( CASE 73 WHEN COUNT ( * ) * COUNT ( * ) THEN - COUNT ( * ) * - 35 WHEN + 52 * - CAST ( NULL AS INTEGER ) + 30 * 58 THEN NULL END, 96 ) THEN + 20 ELSE NULL END ) THEN - 75 END WHEN + 83 - 45 THEN + 2 + - 40 WHEN 63 + + 74 * + 47 THEN + 35 - + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5465
SELECT - ( - ( - ( - 61 ) ) ) DIV - - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5465
SELECT - ( - ( - ( - 61 ) ) ) / - - COUNT ( * ) AS col1
----
61

query I rowsort
SELECT DISTINCT 92 * + 5 * 30 + 25 * + ( - 94 ) * - 15 AS col1
----
49050

query II rowsort
SELECT ALL + 49, - 79 AS col2
----
49
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5468
SELECT + 48 DIV + - 31 + - 71 * - COUNT( * ) * - 57 AS col1
----
-4048

skipif mysql # not compatible
query I rowsort label-5468
SELECT + 48 / + - 31 + - 71 * - COUNT ( * ) * - 57 AS col1
----
-4048

onlyif mysql # DIV for integer division: 
query I rowsort label-5469
SELECT - 10 DIV + ( + 59 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5469
SELECT - 10 / + ( + 59 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5470
SELECT - CAST( NULL AS DECIMAL ) * - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT - CAST ( NULL AS REAL ) * - - 14
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 36, - 16 ) * + - CASE + - 77 WHEN - 72 THEN + 92 WHEN + - 65 + - 77 THEN NULL ELSE NULL END + - 55 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5472
SELECT 31 DIV - + 55 + 13 + + - 73 DIV - CAST( COUNT( ALL 48 ) AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-5472
SELECT 31 / - + 55 + 13 + + - 73 / - CAST ( COUNT ( ALL 48 ) AS INTEGER )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5473
SELECT - 74 + 63 DIV + + 65 col2
----
-74

skipif mysql # not compatible
query I rowsort label-5473
SELECT - 74 + 63 / + + 65 col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT ALL + CAST( - - 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + CAST ( - - 20 AS INTEGER )
----
20

query I rowsort
SELECT DISTINCT + CASE 56 WHEN + 71 THEN NULL ELSE 78 + - - 45 END
----
123

query I rowsort
SELECT NULLIF ( + COALESCE ( - 81, 7, + 36 * + 27 ), - AVG ( ALL 1 ) * - ( + 89 ) ) col1
----
-81

query I rowsort
SELECT DISTINCT + NULLIF ( - + ( 51 ), + - 4 / 21 + + 17 ) * + 0 - + + 22
----
-22

query I rowsort
SELECT COALESCE ( 66, + + 45 ) AS col1
----
66

query II rowsort
SELECT ALL + - 64 col1, + 25
----
-64
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5480
SELECT DISTINCT + 68 AS col1, + 60 - - + 80 + - 74 + ( 13 ) - + - 5 * - ( + COUNT( * ) ) * + - 58 AS col0
----
68
369

skipif mysql # not compatible
query II rowsort label-5480
SELECT DISTINCT + 68 AS col1, + 60 - - + 80 + - 74 + ( 13 ) - + - 5 * - ( + COUNT ( * ) ) * + - 58 AS col0
----
68
369

query I rowsort
SELECT ALL + ( + 46 ) AS col1
----
46

query I rowsort
SELECT + 26 * + 33 + - 97 AS col2
----
761

onlyif mysql # aggregate syntax: 
query II rowsort label-5483
SELECT ALL - COUNT( * ), COALESCE ( - 11, - + COUNT( * ) ) AS col1
----
-1
-11

skipif mysql # not compatible
query II rowsort label-5483
SELECT ALL - COUNT ( * ), COALESCE ( - 11, - + COUNT ( * ) ) AS col1
----
-1
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5484
SELECT + MAX( DISTINCT + 21 ) col0, 71 + 75 * - 56 AS col1
----
21
-4129

skipif mysql # not compatible
query II rowsort label-5484
SELECT + MAX ( DISTINCT + 21 ) col0, 71 + 75 * - 56 AS col1
----
21
-4129

query II rowsort
SELECT + 92 * + - ( + 1 ) * - + 88 AS col1, - 85
----
8096
-85

query I rowsort
SELECT DISTINCT + 79 * - - 38
----
3002

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5487
SELECT DISTINCT + - NULLIF ( + 19, ( 94 ) + - 60 ) DIV - + 18 AS col0, 68 * - 85 * - ( COUNT( * ) )
----
1
5780

skipif mysql # not compatible
query II rowsort label-5487
SELECT DISTINCT + - NULLIF ( + 19, ( 94 ) + - 60 ) / - + 18 AS col0, 68 * - 85 * - ( COUNT ( * ) )
----
1
5780

query I rowsort
SELECT ALL - 35 * + + 88 + + 46 + - + 39 + - 49 col0
----
-3122

query I rowsort
SELECT ALL 12 + - 56
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5490
SELECT ALL - 86 + + - ( + + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL - 86 + + - ( + + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5491
SELECT + ( 97 ) + - COALESCE ( - MIN( DISTINCT - 26 ), - ( - + 29 ) ) DIV 93 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5491
SELECT + ( 97 ) + - COALESCE ( - MIN ( DISTINCT - 26 ), - ( - + 29 ) ) / 93 AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5492
SELECT - COUNT( * ) AS col0, + 65 col2
----
-1
65

skipif mysql # not compatible
query II rowsort label-5492
SELECT - COUNT ( * ) AS col0, + 65 col2
----
-1
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5493
SELECT + 8 + 4 DIV - + 43 * + 64 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5493
SELECT + 8 + 4 / - + 43 * + 64 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT MIN( DISTINCT + 89 ) + + + 33 col2
----
122

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT MIN ( DISTINCT + 89 ) + + + 33 col2
----
122

query I rowsort
SELECT ALL 52 + - 76 - + ( + 72 ) * 75 + + 99 AS col0
----
-5325

query I rowsort
SELECT + NULLIF ( + 57, + ( + 91 ) ) * 67
----
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT DISTINCT MIN( DISTINCT - 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT MIN ( DISTINCT - 2 ) AS col0
----
-2

query I rowsort
SELECT + ( + 56 ) col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT DISTINCT - 50 DIV 61 - + + 95 * + 78 * + 5 AS col2
----
-37050

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT - 50 / 61 - + + 95 * + 78 * + 5 AS col2
----
-37050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT CAST( - + ( - 71 ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-5500
SELECT CAST ( - + ( - 71 ) AS INTEGER )
----
71

query II rowsort
SELECT DISTINCT + ( 66 ), + 89 * - + 39 AS col0
----
66
-3471

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT - COUNT( * ) * - ( - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-5502
SELECT - COUNT ( * ) * - ( - 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5503
SELECT CAST( - - 47 AS SIGNED ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5503
SELECT CAST ( - - 47 AS INTEGER ) AS col0
----
47

query I rowsort
SELECT NULLIF ( - 35, + 34 ) * ( - 45 ) AS col1
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT 81 * ( - ( - COUNT( * ) ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5505
SELECT 81 * ( - ( - COUNT ( * ) ) ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT - COUNT( * ) * - COUNT( * ) + MAX( + + 67 ) - + ( + + ( - 5 ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5506
SELECT - COUNT ( * ) * - COUNT ( * ) + MAX ( + + 67 ) - + ( + + ( - 5 ) ) AS col2
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-5507
SELECT 55 DIV 65 AS col2, - 0
----
0
0

skipif mysql # not compatible
query II rowsort label-5507
SELECT 55 / 65 AS col2, - 0
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5508
SELECT - + 65 * COUNT( * ) + + 62 * 2 - CAST( - 70 AS SIGNED ) - + 24 * 17 * - 77 + 99
----
31644

skipif mysql # not compatible
query I rowsort label-5508
SELECT - + 65 * COUNT ( * ) + + 62 * 2 - CAST ( - 70 AS INTEGER ) - + 24 * 17 * - 77 + 99
----
31644

query I rowsort
SELECT DISTINCT + - 76 * 95 * + 82 + - 27 AS col2
----
-592067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5510
SELECT ALL + 50 * - 71 * CAST( - 74 AS SIGNED )
----
262700

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL + 50 * - 71 * CAST ( - 74 AS INTEGER )
----
262700

query I rowsort
SELECT ALL + 39 * 38 col0
----
1482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5512
SELECT + COUNT( * ) * 20 DIV - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5512
SELECT + COUNT ( * ) * 20 / - 89 AS col2
----
0

query I rowsort
SELECT + 4 - - 76 - 73 + + 98 * + - 10
----
-973

onlyif mysql # aggregate syntax: 
query II rowsort label-5514
SELECT ALL SUM( DISTINCT - - 63 ), + 58 col2
----
63
58

skipif mysql # not compatible
query II rowsort label-5514
SELECT ALL SUM ( DISTINCT - - 63 ), + 58 col2
----
63
58

query I rowsort
SELECT 29 + - + ( + 65 )
----
-36

query I rowsort
SELECT 3 * - 11 * - 22 + 26 + - 23 + - 30 * + + 94 * - 35
----
99429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5517
SELECT ALL + - ( + 83 ) + MAX( DISTINCT - - 25 ) + - + 2 - - + 29 + - 33 * - MAX( - 75 ) * + - 25 * + 89 + - 54 * + - 85 * 89 * + 11 * + ( - + CAST( NULL AS SIGNED ) ), - 71 AS col2
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-5517
SELECT ALL + - ( + 83 ) + MAX ( DISTINCT - - 25 ) + - + 2 - - + 29 + - 33 * - MAX ( - 75 ) * + - 25 * + 89 + - 54 * + - 85 * 89 * + 11 * + ( - + CAST ( NULL AS INTEGER ) ), - 71 AS col2
----
NULL
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5518
SELECT ALL - + 71 + + 79 - + - 61 DIV COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL - + 71 + + 79 - + - 61 / COUNT ( * )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5519
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) * NULLIF ( + CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ), + 51 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) * NULLIF ( + CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ), + 51 ) col0
----
2

query I rowsort
SELECT 52 + - ( + - 80 )
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5521
SELECT CASE 77 WHEN + 84 * + 20 + - 87 + 70 + + MAX( CAST( NULL AS SIGNED ) ) DIV + MAX( ALL - 71 ) THEN + CASE WHEN NOT NULL NOT BETWEEN + 8 AND + 74 * + - 29 + - - 49 + ( + 47 ) * 61 * 62 + - MIN( DISTINCT 3 ) + + 35 THEN - 90 END WHEN 7 * + 27 THEN NULL ELSE + 41 + ( 28 + + 79 ) END DIV - ( 62 + - COUNT( * ) * 81 )
----
7

skipif mysql # not compatible
query I rowsort label-5521
SELECT CASE 77 WHEN + 84 * + 20 + - 87 + 70 + + MAX ( CAST ( NULL AS INTEGER ) ) / + MAX ( ALL - 71 ) THEN + CASE WHEN NOT NULL NOT BETWEEN + 8 AND + 74 * + - 29 + - - 49 + ( + 47 ) * 61 * 62 + - MIN ( DISTINCT 3 ) + + 35 THEN - 90 END WHEN 7 * + 27 THEN NULL ELSE + 41 + ( 28 + + 79 ) END / - ( 62 + - COUNT ( * ) * 81 )
----
7

query I rowsort
SELECT ALL - 12 + - 69 + 51
----
-30

query I rowsort
SELECT ALL + 54 + + 57 * 82
----
4728

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT ALL + 32 + + 25 + 99 * 93 DIV 69 * - - 25
----
3382

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL + 32 + + 25 + 99 * 93 / 69 * - - 25
----
3382

query I rowsort
SELECT ALL 11 * + 54 AS col1
----
594

onlyif mysql # DIV for integer division: 
query I rowsort label-5526
SELECT ALL - 40 DIV - - 94 * - ( + 11 )
----
0

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL - 40 / - - 94 * - ( + 11 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5527
SELECT ALL 64 col2, + 74 - + - COUNT( + 96 )
----
64
75

skipif mysql # not compatible
query II rowsort label-5527
SELECT ALL 64 col2, + 74 - + - COUNT ( + 96 )
----
64
75

query I rowsort
SELECT DISTINCT 58 * 74 AS col2
----
4292

onlyif mysql # aggregate syntax: 
query II rowsort label-5529
SELECT 97 * + 21 * - + 94 AS col0, COUNT( - + 39 )
----
-191478
1

skipif mysql # not compatible
query II rowsort label-5529
SELECT 97 * + 21 * - + 94 AS col0, COUNT ( - + 39 )
----
-191478
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5530
SELECT - 21, SUM( + + 9 ) + + 80 AS col0
----
-21
89

skipif mysql # not compatible
query II rowsort label-5530
SELECT - 21, SUM ( + + 9 ) + + 80 AS col0
----
-21
89

query I rowsort
SELECT ALL 93 * + 99 AS col2
----
9207

query II rowsort
SELECT DISTINCT 25 AS col2, + 99 AS col0
----
25
99

query I rowsort
SELECT DISTINCT - 22 * + 31 AS col1
----
-682

query II rowsort
SELECT DISTINCT - 99 AS col0, + 2 AS col2
----
-99
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5535
SELECT - COUNT( * ) DIV + 64 * - COUNT( * ) * MIN( DISTINCT - 10 ) - + - COUNT( * ) * + COALESCE ( + COUNT( * ), + + 47 + 97 * - 3 + + - 10 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5535
SELECT - COUNT ( * ) / + 64 * - COUNT ( * ) * MIN ( DISTINCT - 10 ) - + - COUNT ( * ) * + COALESCE ( + COUNT ( * ), + + 47 + 97 * - 3 + + - 10 ) col1
----
1

query II rowsort
SELECT ALL - 77, + ( - 25 ) * + + 8 + + - 62 AS col2
----
-77
-262

query I rowsort
SELECT 28 * ( - + 28 )
----
-784

onlyif mysql # aggregate syntax: 
query II rowsort label-5538
SELECT + 52 col0, 66 * - 84 * - - COUNT( * ) AS col0
----
52
-5544

skipif mysql # not compatible
query II rowsort label-5538
SELECT + 52 col0, 66 * - 84 * - - COUNT ( * ) AS col0
----
52
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT COUNT( * ) + - 73 col1
----
-72

skipif mysql # not compatible
query I rowsort label-5539
SELECT COUNT ( * ) + - 73 col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-5540
SELECT DISTINCT - + COUNT( * ) col0, 49 AS col2
----
-1
49

skipif mysql # not compatible
query II rowsort label-5540
SELECT DISTINCT - + COUNT ( * ) col0, 49 AS col2
----
-1
49

query I rowsort
SELECT + + 3 * - + 12 + + 57 + - 88 + + - 88 + + 79
----
-76

query I rowsort
SELECT DISTINCT 26 * - 59
----
-1534

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT - ( + 68 ) DIV + 58 + + 86 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5543
SELECT - ( + 68 ) / + 58 + + 86 AS col1
----
85

query I rowsort
SELECT ALL - - 11 + + 37
----
48

query II rowsort
SELECT + 92, - 21 AS col0
----
92
-21

query I rowsort
SELECT ALL 44 * + 69 AS col1
----
3036

query I rowsort
SELECT ALL - 10 + + 54
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5548
SELECT 95 + 4 DIV - 92 * + 39 * + 55 + + 24 + + 16 + - 67 * 89 + 44 AS col2
----
-5784

skipif mysql # not compatible
query I rowsort label-5548
SELECT 95 + 4 / - 92 * + 39 * + 55 + + 24 + + 16 + - 67 * 89 + 44 AS col2
----
-5784

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT 98 DIV + 41 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5549
SELECT 98 / + 41 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT - COUNT( * ) + 14 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5550
SELECT - COUNT ( * ) + 14 AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5551
SELECT ALL - ( 28 ) + - MIN( DISTINCT - 11 ) + - MIN( DISTINCT - 55 ) AS col2, 27 AS col1
----
38
27

skipif mysql # not compatible
query II rowsort label-5551
SELECT ALL - ( 28 ) + - MIN ( DISTINCT - 11 ) + - MIN ( DISTINCT - 55 ) AS col2, 27 AS col1
----
38
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5552
SELECT - COUNT( * ) AS col0, 44
----
-1
44

skipif mysql # not compatible
query II rowsort label-5552
SELECT - COUNT ( * ) AS col0, 44
----
-1
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5553
SELECT - - 2 * + 90 + - + 4 + - - 85 AS col0, - ( + COUNT( * ) )
----
261
-1

skipif mysql # not compatible
query II rowsort label-5553
SELECT - - 2 * + 90 + - + 4 + - - 85 AS col0, - ( + COUNT ( * ) )
----
261
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT ALL + - COUNT( * ) + 38
----
37

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL + - COUNT ( * ) + 38
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5555
SELECT DISTINCT - - CAST( - + 62 AS SIGNED ) DIV + 28
----
-2

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT - - CAST ( - + 62 AS INTEGER ) / + 28
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5556
SELECT DISTINCT - 16 + + - 60 + + - CAST( NULL AS DECIMAL ) + + 29 + 47 * - 62 * - 48 * + + COUNT( DISTINCT + + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT - 16 + + - 60 + + - CAST ( NULL AS REAL ) + + 29 + 47 * - 62 * - 48 * + + COUNT ( DISTINCT + + 92 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT ALL - 53 * + CAST( NULL AS SIGNED ) + - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL - 53 * + CAST ( NULL AS INTEGER ) + - 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT COUNT( ALL + - 0 ) * + + 38 + - 84 + + 78 * + MAX( ALL + - 47 )
----
-3712

skipif mysql # not compatible
query I rowsort label-5558
SELECT COUNT ( ALL + - 0 ) * + + 38 + - 84 + + 78 * + MAX ( ALL + - 47 )
----
-3712

query I rowsort
SELECT DISTINCT - 61 + - + 38 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + 3 + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + 3 + - COUNT ( * )
----
2

query I rowsort
SELECT - 43 + + + 99
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5562
SELECT CAST( NULL AS SIGNED ) * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5562
SELECT CAST ( NULL AS INTEGER ) * - 33
----
NULL

query II rowsort
SELECT 23 + 6 AS col1, 31 col2
----
29
31

query I rowsort
SELECT DISTINCT - 36 - + + 85 col0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL SUM( DISTINCT - 71 ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL SUM ( DISTINCT - 71 ) col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL - COUNT( * ) - + 10
----
-11

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL - COUNT ( * ) - + 10
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5567
SELECT 6 * + + COALESCE ( - + 81, + + ( - 61 ) DIV 5 ) * - SUM( DISTINCT + 95 ) AS col1
----
46170

skipif mysql # not compatible
query I rowsort label-5567
SELECT 6 * + + COALESCE ( - + 81, + + ( - 61 ) / 5 ) * - SUM ( DISTINCT + 95 ) AS col1
----
46170

query I rowsort
SELECT 13 + - 76 + - + 4 + - - ( - 21 ) * - + 58 AS col0
----
1151

query I rowsort
SELECT 16 - + 82 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ALL CASE + + 19 WHEN + 83 + + + COUNT( * ) THEN - + 29 * + + CASE ( - - NULLIF ( + 56, 43 * + AVG ( DISTINCT + 31 ) ) ) WHEN + 12 * + 3 * + 65 + - COALESCE ( + 78, - 56 ) THEN + 8 WHEN 14 THEN NULL END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL CASE + + 19 WHEN + 83 + + + COUNT ( * ) THEN - + 29 * + + CASE ( - - NULLIF ( + 56, 43 * + AVG ( DISTINCT + 31 ) ) ) WHEN + 12 * + 3 * + 65 + - COALESCE ( + 78, - 56 ) THEN + 8 WHEN 14 THEN NULL END ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 18 - 20 AS col2
----
-38

query I rowsort
SELECT 32 * + 57 * - 52 col0
----
-94848

query I rowsort
SELECT 38 + 58
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL SUM( + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL SUM ( + 41 )
----
41

query I rowsort
SELECT - 91 * 88 * 29 col2
----
-232232

query II rowsort
SELECT + 97 + - + 35, 38 AS col1
----
62
38

query II rowsort
SELECT ALL - 73 * - 48, COALESCE ( + 5, 24 + - 79 + + 56 ) + - + 50 + 57 AS col2
----
3504
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5578
SELECT + COUNT( * ) * - 2 * COUNT( * ) * - COUNT( 49 ) + + + 76 + - COUNT( * ) + + 90 DIV - 46 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5578
SELECT + COUNT ( * ) * - 2 * COUNT ( * ) * - COUNT ( 49 ) + + + 76 + - COUNT ( * ) + + 90 / - 46 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5579
SELECT NULLIF ( - 23, - 86 * NULLIF ( 27, + 4 * + COUNT( * ) ) ) AS col2, - 4 * + 53 * 10 * - 26 + 87 / - MAX( DISTINCT - + ( - 52 ) ) * CAST( NULL AS DECIMAL ) - - 78
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-5579
SELECT NULLIF ( - 23, - 86 * NULLIF ( 27, + 4 * + COUNT ( * ) ) ) AS col2, - 4 * + 53 * 10 * - 26 + 87 / - MAX ( DISTINCT - + ( - 52 ) ) * CAST ( NULL AS REAL ) - - 78
----
-23
NULL

query I rowsort
SELECT ALL 71 * + - 20 + + 79
----
-1341

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT - MIN( - 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5581
SELECT - MIN ( - 96 ) AS col2
----
96

query I rowsort
SELECT ALL + 27 * + - 79 * + 83 + - 29 - - 62
----
-177006

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT - 2 - - CASE + CASE 20 WHEN + 49 * + 68 * 79 + 24 + + 9 THEN NULL ELSE COUNT( * ) + - MAX( ALL 90 ) END WHEN + 31 * 58 + + COUNT( * ) THEN - 83 WHEN + + 85 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT - 2 - - CASE + CASE 20 WHEN + 49 * + 68 * 79 + 24 + + 9 THEN NULL ELSE COUNT ( * ) + - MAX ( ALL 90 ) END WHEN + 31 * 58 + + COUNT ( * ) THEN - 83 WHEN + + 85 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5584
SELECT ALL + MAX( ALL 86 ) * - ( - 84 ) + 35 DIV + COUNT( * )
----
7259

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL + MAX ( ALL 86 ) * - ( - 84 ) + 35 / + COUNT ( * )
----
7259

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT + MIN( ALL + 42 ) col2
----
42

skipif mysql # not compatible
query I rowsort label-5585
SELECT + MIN ( ALL + 42 ) col2
----
42

query I rowsort
SELECT ALL - 57 * - 2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT ALL CAST( NULL AS SIGNED ) * + 30 + + - 82 * + 80 + 49 + - 17 * + - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL CAST ( NULL AS INTEGER ) * + 30 + + - 82 * + 80 + 49 + - 17 * + - 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT + - 97 * - MAX( DISTINCT - 54 ) + - 63 * + 32 AS col2
----
-7254

skipif mysql # not compatible
query I rowsort label-5588
SELECT + - 97 * - MAX ( DISTINCT - 54 ) + - 63 * + 32 AS col2
----
-7254

query I rowsort
SELECT + 32 + - 75 AS col1
----
-43

query I rowsort
SELECT + + 41 * - + 30
----
-1230

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT + ( 75 ) + - - COUNT( * ) col2
----
76

skipif mysql # not compatible
query I rowsort label-5591
SELECT + ( 75 ) + - - COUNT ( * ) col2
----
76

query I rowsort
SELECT - 15 - 32 - + 45
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT + 58 DIV - 25 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5593
SELECT + 58 / - 25 AS col0
----
-2

query I rowsort
SELECT ALL + CASE + - NULLIF ( + 26, - 94 + 75 / - 11 ) WHEN + 38 * 51 + + 19 * 61 + + 15 + + 45 THEN + 69 END / - + COALESCE ( 5, 12, + 21 - 83 + - 63 - ( - 6 ) - - 38 / 87 ) + 48 * - - 83 * 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5595
SELECT DISTINCT COALESCE ( - COUNT( * ), - COUNT( * ), 38 + 60 ) AS col2, - 69 * - ( 47 ) * - - 47 AS col2
----
-1
152421

skipif mysql # not compatible
query II rowsort label-5595
SELECT DISTINCT COALESCE ( - COUNT ( * ), - COUNT ( * ), 38 + 60 ) AS col2, - 69 * - ( 47 ) * - - 47 AS col2
----
-1
152421

query I rowsort
SELECT + 34 + - + 34 * + + ( + 64 ) + + - ( - + 53 ) AS col2
----
-2089

query II rowsort
SELECT DISTINCT + 59 * + ( - 55 ) AS col2, - 18
----
-3245
-18

query I rowsort
SELECT - 4 * - 38
----
152

query I rowsort
SELECT DISTINCT - 5 * - - 79 AS col0
----
-395

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5600
SELECT - CAST( ( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT - CAST ( ( + CAST ( NULL AS INTEGER ) ) AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 74 * - 48 col1
----
3552

query I rowsort
SELECT ALL + 15 + 44 * + 38 - - 17
----
1704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5603
SELECT ALL + NULLIF ( 16, + 94 ) + - COALESCE ( + COUNT( * ), - - CAST( - 48 AS SIGNED ) + - COUNT( * ) + + CAST( - 40 AS SIGNED ) + - 80 * + + 21 + ( + COUNT( * ) ) * - NULLIF ( - + 33, + 88 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL + NULLIF ( 16, + 94 ) + - COALESCE ( + COUNT ( * ), - - CAST ( - 48 AS INTEGER ) + - COUNT ( * ) + + CAST ( - 40 AS INTEGER ) + - 80 * + + 21 + ( + COUNT ( * ) ) * - NULLIF ( - + 33, + 88 ) ) AS col1
----
15

query I rowsort
SELECT ALL - 88 * + 64 AS col1
----
-5632

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT - COUNT( * ) * COUNT( + - 40 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5605
SELECT - COUNT ( * ) * COUNT ( + - 40 ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT ALL + 42 + + CAST( 78 AS SIGNED ) col1
----
120

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL + 42 + + CAST ( 78 AS INTEGER ) col1
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5607
SELECT ALL - 30 DIV + + 82 + + COUNT( * ) + 29 * 1 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL - 30 / + + 82 + + COUNT ( * ) + 29 * 1 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT - + 57 - - - COUNT( * ) - - 18
----
-40

skipif mysql # not compatible
query I rowsort label-5608
SELECT - + 57 - - - COUNT ( * ) - - 18
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT DISTINCT + 19 * - 36 - 97 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT + 19 * - 36 - 97 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( 93, - - 37 ) AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5611
SELECT ALL - 27 * - + 54 + - 48 + - + 7 - - 88 DIV + - 8 AS col1
----
1392

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL - 27 * - + 54 + - 48 + - + 7 - - 88 / + - 8 AS col1
----
1392

query I rowsort
SELECT DISTINCT + - 85 * + - 63
----
5355

query II rowsort
SELECT DISTINCT + 7 col0, - 28
----
7
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT ALL - SUM( + COALESCE ( 70, - 8 ) ) * - 81
----
5670

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL - SUM ( + COALESCE ( 70, - 8 ) ) * - 81
----
5670

query I rowsort
SELECT - 3 * + + 35
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5616
SELECT + + ( + COUNT( * ) ) * - - 47 DIV 23 - + ( - 34 ) col1
----
36

skipif mysql # not compatible
query I rowsort label-5616
SELECT + + ( + COUNT ( * ) ) * - - 47 / 23 - + ( - 34 ) col1
----
36

query I rowsort
SELECT - + 45 + + 68 AS col0
----
23

query I rowsort
SELECT + + 6 + NULLIF ( 55, - 19 ) * - 95 + - + 38 * - 5
----
-5029

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT - + 95 * + MIN( - 50 ) - + - COUNT( * ) col1
----
4751

skipif mysql # not compatible
query I rowsort label-5619
SELECT - + 95 * + MIN ( - 50 ) - + - COUNT ( * ) col1
----
4751

query I rowsort
SELECT + 9 * + + 12
----
108

query I rowsort
SELECT 31 * + - 60 + 25 + + + 12
----
-1823

query II rowsort
SELECT ALL + 77 AS col1, 19
----
77
19

query I rowsort
SELECT 9 * + 67 + + 9 AS col1
----
612

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5624
SELECT CASE - + 65 WHEN + 45 THEN NULL WHEN + CASE - - 30 WHEN + - 72 THEN + ( + - CAST( + - 47 AS DECIMAL ) ) ELSE NULL END THEN NULL WHEN - - 47 THEN NULL ELSE 41 + + - 9 END
----
32

skipif mysql # not compatible
query I rowsort label-5624
SELECT CASE - + 65 WHEN + 45 THEN NULL WHEN + CASE - - 30 WHEN + - 72 THEN + ( + - CAST ( + - 47 AS REAL ) ) ELSE NULL END THEN NULL WHEN - - 47 THEN NULL ELSE 41 + + - 9 END
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5625
SELECT ALL 60 AS col0, + NULLIF ( + 44, + COALESCE ( + 15, + - CAST( NULL AS SIGNED ) ) * + 91 + ( - 88 ) ) DIV 41 * 25 * - 20 * + + 50 - + COUNT( + 80 )
----
60
-25001

skipif mysql # not compatible
query II rowsort label-5625
SELECT ALL 60 AS col0, + NULLIF ( + 44, + COALESCE ( + 15, + - CAST ( NULL AS INTEGER ) ) * + 91 + ( - 88 ) ) / 41 * 25 * - 20 * + + 50 - + COUNT ( + 80 )
----
60
-25001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5626
SELECT - CAST( NULL AS SIGNED ) AS col2, COALESCE ( - + 80, + 77 * + - COUNT( * ) * + CAST( NULL AS SIGNED ) DIV - - MIN( ALL - 50 ) DIV 11 ) AS col1
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-5626
SELECT - CAST ( NULL AS INTEGER ) AS col2, COALESCE ( - + 80, + 77 * + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) / - - MIN ( ALL - 50 ) / 11 ) AS col1
----
NULL
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT ALL COALESCE ( 70, CAST( + 33 AS SIGNED ), 86 )
----
70

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL COALESCE ( 70, CAST ( + 33 AS INTEGER ), 86 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5628
SELECT - CAST( NULL AS SIGNED ) AS col0, 12 AS col2
----
NULL
12

skipif mysql # not compatible
query II rowsort label-5628
SELECT - CAST ( NULL AS INTEGER ) AS col0, 12 AS col2
----
NULL
12

query II rowsort
SELECT ALL 18 AS col1, + 36 * - 27
----
18
-972

query I rowsort
SELECT 9 * + 98 + + 16
----
898

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT + 98 - SUM( - ( 65 ) )
----
163

skipif mysql # not compatible
query I rowsort label-5631
SELECT + 98 - SUM ( - ( 65 ) )
----
163

query I rowsort
SELECT + 16 * + 52 AS col2
----
832

onlyif mysql # DIV for integer division: 
query I rowsort label-5633
SELECT ( 81 ) + - - 50 DIV 52
----
81

skipif mysql # not compatible
query I rowsort label-5633
SELECT ( 81 ) + - - 50 / 52
----
81

query II rowsort
SELECT ALL 27 AS col2, 2 - 97
----
27
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5635
SELECT 57 + - COUNT( * ) - + + ( - 49 ) + + 76 * CAST( + 19 AS SIGNED ) * - 53 * - + 40 + + 20 * COUNT( * ) AS col0, 51 * - 8 + + + COUNT( ALL - 45 )
----
3061405
-407

skipif mysql # not compatible
query II rowsort label-5635
SELECT 57 + - COUNT ( * ) - + + ( - 49 ) + + 76 * CAST ( + 19 AS INTEGER ) * - 53 * - + 40 + + 20 * COUNT ( * ) AS col0, 51 * - 8 + + + COUNT ( ALL - 45 )
----
3061405
-407

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5636
SELECT 60 * + 73, + 88 DIV - COUNT( * ) AS col1
----
4380
-88

skipif mysql # not compatible
query II rowsort label-5636
SELECT 60 * + 73, + 88 / - COUNT ( * ) AS col1
----
4380
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT 67 DIV + - 86 * - 23
----
0

skipif mysql # not compatible
query I rowsort label-5637
SELECT 67 / + - 86 * - 23
----
0

query I rowsort
SELECT ALL 80 + - 87 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5639
SELECT DISTINCT 86 col1, - 47 * - COUNT( * ) + - 64 - 94 - - COUNT( * )
----
86
-110

skipif mysql # not compatible
query II rowsort label-5639
SELECT DISTINCT 86 col1, - 47 * - COUNT ( * ) + - 64 - 94 - - COUNT ( * )
----
86
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL - 83 + - + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - 83 + - + COUNT ( * )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5641
SELECT CAST( + 12 AS SIGNED ) - + NULLIF ( 33, 40 )
----
-21

skipif mysql # not compatible
query I rowsort label-5641
SELECT CAST ( + 12 AS INTEGER ) - + NULLIF ( 33, 40 )
----
-21

query I rowsort
SELECT ALL + 10 + + 43 * - 7 AS col2
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL - 56 * 45 * COUNT( * )
----
-2520

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - 56 * 45 * COUNT ( * )
----
-2520

query I rowsort
SELECT ALL 20 + + 70 * 90 + + + ( 63 )
----
6383

query I rowsort
SELECT DISTINCT 79 + + 97
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-5646
SELECT 76, COUNT( * ) col2
----
76
1

skipif mysql # not compatible
query II rowsort label-5646
SELECT 76, COUNT ( * ) col2
----
76
1

query II rowsort
SELECT - 3 col1, + 71
----
-3
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5648
SELECT ALL - 81 + 20 DIV - MAX( DISTINCT - - 73 )
----
-81

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL - 81 + 20 / - MAX ( DISTINCT - - 73 )
----
-81

query I rowsort
SELECT ALL + 23 * + ( + 84 )
----
1932

query I rowsort
SELECT 34 * - 87
----
-2958

query I rowsort
SELECT DISTINCT + 90 * - - 31 * 14
----
39060

query I rowsort
SELECT ALL - 31 + + ( NULLIF ( + 30, - 35 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5653
SELECT ALL - 24 AS col2, COALESCE ( + ( - + COUNT( * ) ), + - 33 + 71 * + 22, + - 87 ) + 6
----
-24
5

skipif mysql # not compatible
query II rowsort label-5653
SELECT ALL - 24 AS col2, COALESCE ( + ( - + COUNT ( * ) ), + - 33 + 71 * + 22, + - 87 ) + 6
----
-24
5

onlyif mysql # DIV for integer division: 
query II rowsort label-5654
SELECT ALL - 83 AS col2, + 69 DIV + 72
----
-83
0

skipif mysql # not compatible
query II rowsort label-5654
SELECT ALL - 83 AS col2, + 69 / + 72
----
-83
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT - 21 DIV - + 7
----
3

skipif mysql # not compatible
query I rowsort label-5655
SELECT - 21 / - + 7
----
3

query II rowsort
SELECT ALL - 14 AS col0, - 39
----
-14
-39

query I rowsort
SELECT DISTINCT + 29 * + 23 AS col0
----
667

query II rowsort
SELECT - 67, 75 AS col2
----
-67
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5659
SELECT + CAST( NULL AS SIGNED ) / - CASE + - CAST( + 80 AS SIGNED ) WHEN + 98 THEN - 4 WHEN + + 70 / + 82 THEN NULL ELSE NULL END + COUNT( * ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT + CAST ( NULL AS INTEGER ) / - CASE + - CAST ( + 80 AS INTEGER ) WHEN + 98 THEN - 4 WHEN + + 70 / + 82 THEN NULL ELSE NULL END + COUNT ( * ) - + COUNT ( * )
----
NULL

query I rowsort
SELECT 49 * + + 29 AS col2
----
1421

query I rowsort
SELECT + + ( - 95 ) AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5662
SELECT + 14 * + 53 * + - 77 + - - 73 * + - CAST( NULL AS SIGNED ) * - 23, SUM( ALL 78 ) * 34 AS col2
----
NULL
2652

skipif mysql # not compatible
query II rowsort label-5662
SELECT + 14 * + 53 * + - 77 + - - 73 * + - CAST ( NULL AS INTEGER ) * - 23, SUM ( ALL 78 ) * 34 AS col2
----
NULL
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT 72 * - MIN( ( + 7 ) )
----
-504

skipif mysql # not compatible
query I rowsort label-5663
SELECT 72 * - MIN ( ( + 7 ) )
----
-504

query I rowsort
SELECT DISTINCT + - 7 * - 53
----
371

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT DISTINCT + - 90 DIV + - 43
----
2

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT + - 90 / + - 43
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT DISTINCT - COUNT( + - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT - COUNT ( + - 61 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL - ( + 79 ) + - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL - ( + 79 ) + - COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-5668
SELECT 15 + 35 * - 41 * 65 * + 28, - 66 * - ( COUNT( * ) ) - + 17 * + 49 col0
----
-2611685
-767

skipif mysql # not compatible
query II rowsort label-5668
SELECT 15 + 35 * - 41 * 65 * + 28, - 66 * - ( COUNT ( * ) ) - + 17 * + 49 col0
----
-2611685
-767

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT 22 * + MAX( ALL 34 )
----
748

skipif mysql # not compatible
query I rowsort label-5669
SELECT 22 * + MAX ( ALL 34 )
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT CASE 53 WHEN - 63 THEN - - ( + 56 ) END * + + 63 - + COUNT( * ) + - 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5670
SELECT CASE 53 WHEN - 63 THEN - - ( + 56 ) END * + + 63 - + COUNT ( * ) + - 60 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5671
SELECT 60 - - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0, + COUNT( * ) + 62 + - ( - + 91 ) - - ( COUNT( * ) ) * 64 * - 51 + + - SUM( 32 ), - 13 + + - 4 AS col1
----
NULL
-3142
-17

skipif mysql # not compatible
query III rowsort label-5671
SELECT 60 - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0, + COUNT ( * ) + 62 + - ( - + 91 ) - - ( COUNT ( * ) ) * 64 * - 51 + + - SUM ( 32 ), - 13 + + - 4 AS col1
----
NULL
-3142
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5672
SELECT ALL 80 + + 90 col1, ( + 83 ) * + - COUNT( * ) AS col2
----
170
-83

skipif mysql # not compatible
query II rowsort label-5672
SELECT ALL 80 + + 90 col1, ( + 83 ) * + - COUNT ( * ) AS col2
----
170
-83

query I rowsort
SELECT ALL 39 + ( - 82 ) col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5674
SELECT ALL - COUNT( * ) + - - AVG ( ALL 79 ) * CAST( NULL AS SIGNED ) / 33 AS col2, + ( 55 ) + + 42 * - + 56 * + 56
----
NULL
-131657

skipif mysql # not compatible
query II rowsort label-5674
SELECT ALL - COUNT ( * ) + - - AVG ( ALL 79 ) * CAST ( NULL AS INTEGER ) / 33 AS col2, + ( 55 ) + + 42 * - + 56 * + 56
----
NULL
-131657

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT ALL COUNT( * ) * COUNT( ALL - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL COUNT ( * ) * COUNT ( ALL - 82 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT COUNT( * ) + - + MIN( DISTINCT + + 73 ) + + - 55
----
-127

skipif mysql # not compatible
query I rowsort label-5676
SELECT COUNT ( * ) + - + MIN ( DISTINCT + + 73 ) + + - 55
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5677
SELECT CAST( + 77 AS SIGNED ) * + - 58, + 13 * - - COUNT( * ) + - + NULLIF ( + + ( + + 98 ), 36 ) + + + 59 AS col0
----
-4466
-26

skipif mysql # not compatible
query II rowsort label-5677
SELECT CAST ( + 77 AS INTEGER ) * + - 58, + 13 * - - COUNT ( * ) + - + NULLIF ( + + ( + + 98 ), 36 ) + + + 59 AS col0
----
-4466
-26

query I rowsort
SELECT DISTINCT 38 * - 50 * - - 7 AS col2
----
-13300

query I rowsort
SELECT 47 + + 35
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT 85 * + + SUM( DISTINCT + 62 ) col0
----
5270

skipif mysql # not compatible
query I rowsort label-5680
SELECT 85 * + + SUM ( DISTINCT + 62 ) col0
----
5270

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT - 78 - + MAX( 87 ) AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-5681
SELECT - 78 - + MAX ( 87 ) AS col1
----
-165

query I rowsort
SELECT - + 62 col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT + COUNT( * ) + - 0 + - 23 * - + 52
----
1197

skipif mysql # not compatible
query I rowsort label-5683
SELECT + COUNT ( * ) + - 0 + - 23 * - + 52
----
1197

query I rowsort
SELECT - 27 * + + 16 + + + 62 AS col0
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT MAX( + + 81 ) * - COALESCE ( 78, 35 )
----
-6318

skipif mysql # not compatible
query I rowsort label-5685
SELECT MAX ( + + 81 ) * - COALESCE ( 78, 35 )
----
-6318

query I rowsort
SELECT + 84 * 66 + 60 + - + 74
----
5530

query I rowsort
SELECT 18 - + + 83
----
-65

query I rowsort
SELECT - 55 - 29 * 49 AS col0
----
-1476

query I rowsort
SELECT DISTINCT + - 55 * 43
----
-2365

query I rowsort
SELECT + - CASE + 88 WHEN - 37 + + 17 THEN - 78 + + 82 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5691
SELECT - 12 * - COALESCE ( + + 73, + COALESCE ( + 2, ( MAX( DISTINCT 63 ) ), 57 DIV + 14 * CASE - 78 WHEN - 69 THEN NULL WHEN - COUNT( * ) THEN - 82 * - + 33 * 90 - + - 72 WHEN + 95 * + 38 + - COALESCE ( - 37, + - 91 ) + + 80 THEN NULL ELSE ( - 91 ) * + - 36 END, + 44 * COUNT( * ) + - 6 ) - + 21 DIV 77 ) * + 85 AS col1
----
74460

skipif mysql # not compatible
query I rowsort label-5691
SELECT - 12 * - COALESCE ( + + 73, + COALESCE ( + 2, ( MAX ( DISTINCT 63 ) ), 57 / + 14 * CASE - 78 WHEN - 69 THEN NULL WHEN - COUNT ( * ) THEN - 82 * - + 33 * 90 - + - 72 WHEN + 95 * + 38 + - COALESCE ( - 37, + - 91 ) + + 80 THEN NULL ELSE ( - 91 ) * + - 36 END, + 44 * COUNT ( * ) + - 6 ) - + 21 / 77 ) * + 85 AS col1
----
74460

query I rowsort
SELECT ALL + 84 * - 99 + + 37 * - NULLIF ( + - 43, + ( + 35 ) * 77 * - AVG ( ALL - 18 ) * 14 ) AS col2
----
-6725

onlyif mysql # DIV for integer division: 
query I rowsort label-5693
SELECT + 21 + + 91 DIV - 57 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5693
SELECT + 21 + + 91 / - 57 AS col2
----
20

query I rowsort
SELECT ALL - + NULLIF ( - ( - + 24 ), - 84 )
----
-24

query I rowsort
SELECT DISTINCT - 46 + - 51 AS col0
----
-97

query I rowsort
SELECT ALL - 28 + - 12 * 54
----
-676

query I rowsort
SELECT - 45 * + 20
----
-900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5698
SELECT ALL - SUM( + 36 ) DIV + - COUNT( * ) + - 99 * 9 + + 17 AS col0
----
-838

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL - SUM ( + 36 ) / + - COUNT ( * ) + - 99 * 9 + + 17 AS col0
----
-838

query II rowsort
SELECT - 78 AS col1, NULLIF ( - COALESCE ( 90, 54 ), + 52 )
----
-78
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT ALL CASE + ( - MAX( + 60 ) ) WHEN - 49 * - 12 / 95 / - - 53 * - MIN( ALL - - 49 ) THEN + + 32 * + + 66 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL CASE + ( - MAX ( + 60 ) ) WHEN - 49 * - 12 / 95 / - - 53 * - MIN ( ALL - - 49 ) THEN + + 32 * + + 66 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT - NULLIF ( - 42, 53 + + AVG ( ALL - - 50 ) ) + + - SUM( 62 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-5701
SELECT - NULLIF ( - 42, 53 + + AVG ( ALL - - 50 ) ) + + - SUM ( 62 ) AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5702
SELECT ALL - 29 + - - NULLIF ( - - CAST( - 23 AS SIGNED ), - - 22 * + - 20 / - + 62 * 60 + - + AVG ( DISTINCT + 67 ) * - 19 )
----
-52

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL - 29 + - - NULLIF ( - - CAST ( - 23 AS INTEGER ), - - 22 * + - 20 / - + 62 * 60 + - + AVG ( DISTINCT + 67 ) * - 19 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5703
SELECT - 27 DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-5703
SELECT - 27 / - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT - SUM( DISTINCT 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-5704
SELECT - SUM ( DISTINCT 33 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT + CAST( NULL AS SIGNED ) + 68 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT + CAST ( NULL AS INTEGER ) + 68 col2
----
NULL

query II rowsort
SELECT 58, - 51 AS col0
----
58
-51

query I rowsort
SELECT DISTINCT ( - - 12 ) AS col0
----
12

query I rowsort
SELECT DISTINCT 15 * - 26 col2
----
-390

onlyif mysql # aggregate syntax: 
query II rowsort label-5709
SELECT DISTINCT - 92 col2, + 24 * - + COUNT( * ) + + NULLIF ( 54, COUNT( * ) * - 60 ) * COUNT( * ) AS col0
----
-92
30

skipif mysql # not compatible
query II rowsort label-5709
SELECT DISTINCT - 92 col2, + 24 * - + COUNT ( * ) + + NULLIF ( 54, COUNT ( * ) * - 60 ) * COUNT ( * ) AS col0
----
-92
30

query I rowsort
SELECT ALL - 40 * + 41 AS col2
----
-1640

query III rowsort
SELECT - NULLIF ( + + 82, 63 / - - 4 * - + ( 48 ) ) AS col1, ( - CASE - 59 WHEN + + 17 THEN + 10 WHEN 82 THEN 25 END ) * - 32 + + COALESCE ( 64, + + 15, + 26 * 92, - - 14 ) + - 23, 91 col1
----
-82
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5712
SELECT ALL - + 41 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL - + 41 / 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT DISTINCT + + CASE + 23 WHEN 16 THEN NULL WHEN - + 14 THEN 7 * + COUNT( * ) * + 4 END - + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT + + CASE + 23 WHEN 16 THEN NULL WHEN - + 14 THEN 7 * + COUNT ( * ) * + 4 END - + - 32
----
NULL

query I rowsort
SELECT ALL 99 * + 30 * - 99
----
-294030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5715
SELECT - ( + 19 ) * + - NULLIF ( SUM( ALL - 43 ), - ( + ( MIN( ALL 99 ) ) ) ) * - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5715
SELECT - ( + 19 ) * + - NULLIF ( SUM ( ALL - 43 ), - ( + ( MIN ( ALL 99 ) ) ) ) * - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 39 + - 27 * + + 68 + - 28 AS col1
----
-1825

query I rowsort
SELECT + 52 + + ( - 98 ) * 20 * 2 * + 42 AS col2
----
-164588

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT + ( + + MAX( 85 ) ) col0
----
85

skipif mysql # not compatible
query I rowsort label-5718
SELECT + ( + + MAX ( 85 ) ) col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5719
SELECT DISTINCT 45 DIV - - 4 + + - NULLIF ( + - 25, + - 83 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT 45 / - - 4 + + - NULLIF ( + - 25, + - 83 ) AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5720
SELECT DISTINCT + 59 DIV 76 + + 87 AS col0, CAST( + + ( + + SUM( + 91 ) ) AS SIGNED ) DIV - - 83 AS col2
----
87
1

skipif mysql # not compatible
query II rowsort label-5720
SELECT DISTINCT + 59 / 76 + + 87 AS col0, CAST ( + + ( + + SUM ( + 91 ) ) AS INTEGER ) / - - 83 AS col2
----
87
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5721
SELECT ALL + COUNT( - 72 ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + COUNT ( - 72 ) / - COUNT ( * )
----
-1

query I rowsort
SELECT + - 58 * + 98
----
-5684

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ALL - COUNT( * ) * - - NULLIF ( + ( 61 ), - - 77 ) + + + COUNT( * ) + - 56
----
-116

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL - COUNT ( * ) * - - NULLIF ( + ( 61 ), - - 77 ) + + + COUNT ( * ) + - 56
----
-116

query II rowsort
SELECT + 87 AS col2, - 94 - + 78 AS col2
----
87
-172

query I rowsort
SELECT DISTINCT - 82 * - 15 + + 56 AS col0
----
1286

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT CASE - ( + 83 ) WHEN + + 40 + - 7 THEN + ( - + ( MIN( DISTINCT + 33 ) ) ) ELSE - MAX( + + 94 ) END
----
-94

skipif mysql # not compatible
query I rowsort label-5726
SELECT CASE - ( + 83 ) WHEN + + 40 + - 7 THEN + ( - + ( MIN ( DISTINCT + 33 ) ) ) ELSE - MAX ( + + 94 ) END
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT - 77 * - 26 * + COUNT( * ) - - - COUNT( * ) AS col1
----
2001

skipif mysql # not compatible
query I rowsort label-5727
SELECT - 77 * - 26 * + COUNT ( * ) - - - COUNT ( * ) AS col1
----
2001

query II rowsort
SELECT DISTINCT 10 * + 67, - 55 + - 92 AS col1
----
670
-147

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5729
SELECT DISTINCT + 5 * - - NULLIF ( - 85, - 69 + - CAST( + ( - + ( - + COUNT( * ) ) ) AS DECIMAL ) ) + 10
----
-415

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT + 5 * - - NULLIF ( - 85, - 69 + - CAST ( + ( - + ( - + COUNT ( * ) ) ) AS REAL ) ) + 10
----
-415

onlyif mysql # DIV for integer division: 
query I rowsort label-5730
SELECT - 91 * - - 48 DIV + 4
----
-1092

skipif mysql # not compatible
query I rowsort label-5730
SELECT - 91 * - - 48 / + 4
----
-1092

onlyif mysql # DIV for integer division: 
query II rowsort label-5731
SELECT DISTINCT + COALESCE ( + 9, 53 * 11 ) AS col1, - 53 DIV + ( + 96 ) DIV - 1 AS col1
----
9
0

skipif mysql # not compatible
query II rowsort label-5731
SELECT DISTINCT + COALESCE ( + 9, 53 * 11 ) AS col1, - 53 / + ( + 96 ) / - 1 AS col1
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT + CASE - 57 WHEN + 57 + 6 THEN + 97 / MAX( DISTINCT - 84 ) ELSE NULL END + + COALESCE ( - 16, + 79 ) + - - 26 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT + CASE - 57 WHEN + 57 + 6 THEN + 97 / MAX ( DISTINCT - 84 ) ELSE NULL END + + COALESCE ( - 16, + 79 ) + - - 26 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT + ( - 75 ) * - COUNT( * ) * 50 - + COUNT( * ) * + - 88 AS col0
----
3838

skipif mysql # not compatible
query I rowsort label-5733
SELECT + ( - 75 ) * - COUNT ( * ) * 50 - + COUNT ( * ) * + - 88 AS col0
----
3838

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL ( SUM( ALL + 83 ) )
----
83

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL ( SUM ( ALL + 83 ) )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5735
SELECT DISTINCT + MAX( + 15 ) * + + ( - 41 ), + 40 + + - 39 col1
----
-615
1

skipif mysql # not compatible
query II rowsort label-5735
SELECT DISTINCT + MAX ( + 15 ) * + + ( - 41 ), + 40 + + - 39 col1
----
-615
1

query I rowsort
SELECT ALL - 25 * 93
----
-2325

query I rowsort
SELECT - 87 * - 85 AS col1
----
7395

query I rowsort
SELECT ALL - 0 * - 6 + + 93
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5739
SELECT DISTINCT + COUNT( * ) * - - CAST( - 5 AS SIGNED ) * - 56 + + 0 + - 80 DIV + 20 AS col1
----
276

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT + COUNT ( * ) * - - CAST ( - 5 AS INTEGER ) * - 56 + + 0 + - 80 / + 20 AS col1
----
276

query II rowsort
SELECT - + 78 + 68, - 60 * + 17 AS col1
----
-10
-1020

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT - 14 DIV 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5741
SELECT - 14 / 60 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT - - COUNT( * ) + ( 67 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5742
SELECT - - COUNT ( * ) + ( 67 ) AS col2
----
68

query I rowsort
SELECT + 28 + 33 + - + 29 AS col1
----
32

query I rowsort
SELECT - + 28 + + 47
----
19

query I rowsort
SELECT - - ( + 4 )
----
4

query I rowsort
SELECT ALL + 68 + + 4 + + + 84
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT - 3 + COALESCE ( 80, + 60 DIV + 34 + 70 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5747
SELECT - 3 + COALESCE ( 80, + 60 / + 34 + 70 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL - CASE - + SUM( + 68 ) WHEN - AVG ( - 94 ) * - 14 + 55 * - 76 * + + 95 THEN NULL WHEN + 51 THEN 67 WHEN + 78 THEN NULL ELSE - - 71 * 64 * - 42 END + + CASE + 89 WHEN - + 40 THEN + - NULLIF ( + COUNT( * ), + 60 ) - + 84 WHEN + 79 THEN NULL WHEN - + 49 + 13 THEN - - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL - CASE - + SUM ( + 68 ) WHEN - AVG ( - 94 ) * - 14 + 55 * - 76 * + + 95 THEN NULL WHEN + 51 THEN 67 WHEN + 78 THEN NULL ELSE - - 71 * 64 * - 42 END + + CASE + 89 WHEN - + 40 THEN + - NULLIF ( + COUNT ( * ), + 60 ) - + 84 WHEN + 79 THEN NULL WHEN - + 49 + 13 THEN - - 3 END
----
NULL

query I rowsort
SELECT + COALESCE ( 59, - + 99 ) + - 40 AS col2
----
19

query I rowsort
SELECT + 39 - + 74
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT + MIN( - 3 ) * + 29 + + 27 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5751
SELECT + MIN ( - 3 ) * + 29 + + 27 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL CASE + + 84 WHEN - ( - - 45 ) THEN COUNT( * ) WHEN 89 + + COUNT( * ) THEN NULL END + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL CASE + + 84 WHEN - ( - - 45 ) THEN COUNT ( * ) WHEN 89 + + COUNT ( * ) THEN NULL END + + 64 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT ALL ( 41 ) - 32 * + CAST( NULL AS SIGNED ) * + - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL ( 41 ) - 32 * + CAST ( NULL AS INTEGER ) * + - 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5754
SELECT ( + 57 ) DIV 94 + + 60 + - COUNT( * ) + - 75 * - 25 AS col0
----
1934

skipif mysql # not compatible
query I rowsort label-5754
SELECT ( + 57 ) / 94 + + 60 + - COUNT ( * ) + - 75 * - 25 AS col0
----
1934

query I rowsort
SELECT ALL 50 - + 81 * + 2 * 80 AS col1
----
-12910

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT MAX( ALL + + 71 ) * - 82 / CASE + COUNT( * ) WHEN - 32 THEN - 12 * - - 19 + + 95 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT MAX ( ALL + + 71 ) * - 82 / CASE + COUNT ( * ) WHEN - 32 THEN - 12 * - - 19 + + 95 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT MIN( ALL 72 ) + + + 2 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-5757
SELECT MIN ( ALL 72 ) + + + 2 AS col2
----
74

query I rowsort
SELECT DISTINCT 55 * - 7 AS col1
----
-385

query I rowsort
SELECT 91 + + 38
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5760
SELECT DISTINCT NULLIF ( + ( + 70 ), CAST( NULL AS SIGNED ) + 60 + + COUNT( 27 ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT NULLIF ( + ( + 70 ), CAST ( NULL AS INTEGER ) + 60 + + COUNT ( 27 ) ) AS col1
----
70

query I rowsort
SELECT + 24 * 69 * - ( 51 ) * ( 71 ) + - 15 AS col2
----
-5996391

query I rowsort
SELECT 96 - 62 AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5763
SELECT CASE - 55 WHEN 56 * - 85 + + 17 - + - MAX( - + 42 ) * - + 17 * + 84 * - 94 + - 14 THEN + 48 * + CASE - - 11 WHEN 93 THEN - COUNT( - 85 ) END + 38 + - COUNT( * ) * + 28 ELSE NULL END, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5763
SELECT CASE - 55 WHEN 56 * - 85 + + 17 - + - MAX ( - + 42 ) * - + 17 * + 84 * - 94 + - 14 THEN + 48 * + CASE - - 11 WHEN 93 THEN - COUNT ( - 85 ) END + 38 + - COUNT ( * ) * + 28 ELSE NULL END, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5764
SELECT + CAST( - ( - + 53 ) AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-5764
SELECT + CAST ( - ( - + 53 ) AS INTEGER )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT 73 / + MIN( + 97 ) * - CASE + 45 WHEN + 50 THEN - 15 ELSE NULL END + - 13 + + - 67 * 52 * - - ( 78 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT 73 / + MIN ( + 97 ) * - CASE + 45 WHEN + 50 THEN - 15 ELSE NULL END + - 13 + + - 67 * 52 * - - ( 78 ) AS col1
----
NULL

query I rowsort
SELECT - 21 + + + 20 * + 50 AS col1
----
979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5767
SELECT DISTINCT + + 48 * + + 88 * + + COALESCE ( + 17, - - 75 + + - COUNT( * ) - CAST( 64 AS SIGNED ) * 17, + CAST( NULL AS SIGNED ) ) col1
----
71808

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT + + 48 * + + 88 * + + COALESCE ( + 17, - - 75 + + - COUNT ( * ) - CAST ( 64 AS INTEGER ) * 17, + CAST ( NULL AS INTEGER ) ) col1
----
71808

query I rowsort
SELECT ALL + 86 + 74
----
160

query I rowsort
SELECT 42 * 67 AS col2
----
2814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5770
SELECT DISTINCT - - CAST( + COUNT( DISTINCT ( - - 97 ) ) AS SIGNED ) * + 7 - - + ( - COUNT( * ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT - - CAST ( + COUNT ( DISTINCT ( - - 97 ) ) AS INTEGER ) * + 7 - - + ( - COUNT ( * ) ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL + - COUNT( * ) + - - 51 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL + - COUNT ( * ) + - - 51 AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5772
SELECT + ( 92 ) DIV 47 + - + COALESCE ( + 28, - SUM( ALL 91 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-5772
SELECT + ( 92 ) / 47 + - + COALESCE ( + 28, - SUM ( ALL 91 ) )
----
-27

query I rowsort
SELECT + 23 + + 9
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT COUNT( * ) * + 0 * + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5774
SELECT COUNT ( * ) * + 0 * + 90 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT + COUNT( * ) + + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-5775
SELECT + COUNT ( * ) + + - 55
----
-54

query I rowsort
SELECT ALL - - 94 + + + 90 AS col2
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5777
SELECT - + CAST( + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-5777
SELECT - + CAST ( + 22 AS INTEGER )
----
-22

query I rowsort
SELECT DISTINCT - ( 79 ) - - 78
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT 75 - - SUM( ALL + 23 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT 75 - - SUM ( ALL + 23 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5780
SELECT COUNT( * ) col2, + 61 AS col2
----
1
61

skipif mysql # not compatible
query II rowsort label-5780
SELECT COUNT ( * ) col2, + 61 AS col2
----
1
61

query I rowsort
SELECT ALL + 24 * - 82 AS col1
----
-1968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5782
SELECT COUNT( * ) DIV - 7 + - + COUNT( - 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-5782
SELECT COUNT ( * ) / - 7 + - + COUNT ( - 64 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5783
SELECT 50 + + 89 - + 46 + - - COUNT( ALL + 36 ) * + 1 * - + ( - SUM( + + 83 ) ) DIV ( 62 ) + + + 77 + + 7 * - ( + - 65 ) + 58
----
684

skipif mysql # not compatible
query I rowsort label-5783
SELECT 50 + + 89 - + 46 + - - COUNT ( ALL + 36 ) * + 1 * - + ( - SUM ( + + 83 ) ) / ( 62 ) + + + 77 + + 7 * - ( + - 65 ) + 58
----
684

query I rowsort
SELECT ALL 74 * - 40 AS col2
----
-2960

query I rowsort
SELECT 56 * + - 8 AS col0
----
-448

onlyif mysql # DIV for integer division: 
query II rowsort label-5786
SELECT 74, 17 DIV 37 * - 23 AS col0
----
74
0

skipif mysql # not compatible
query II rowsort label-5786
SELECT 74, 17 / 37 * - 23 AS col0
----
74
0

query II rowsort
SELECT 44, 18 - + 72 + - - 0 * 34 AS col2
----
44
-54

query II rowsort
SELECT ALL - 37 AS col0, 63 AS col0
----
-37
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5789
SELECT DISTINCT - COUNT( * ) AS col0, - 27 - - NULLIF ( - + 8, + 81 + 42 )
----
-1
-35

skipif mysql # not compatible
query II rowsort label-5789
SELECT DISTINCT - COUNT ( * ) AS col0, - 27 - - NULLIF ( - + 8, + 81 + 42 )
----
-1
-35

query I rowsort
SELECT ALL + 98 * 83 col1
----
8134

onlyif mysql # DIV for integer division: 
query II rowsort label-5791
SELECT 85 + 23 - 79 DIV 77, 63 AS col1
----
107
63

skipif mysql # not compatible
query II rowsort label-5791
SELECT 85 + 23 - 79 / 77, 63 AS col1
----
107
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5792
SELECT CAST( NULL AS SIGNED ) / + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT CAST ( NULL AS INTEGER ) / + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5793
SELECT ALL COUNT( * ) DIV + ( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL COUNT ( * ) / + ( 82 )
----
0

query II rowsort
SELECT + - 8 AS col0, + 12
----
-8
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT - COUNT( * ) * - COUNT( * ) * 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5795
SELECT - COUNT ( * ) * - COUNT ( * ) * 49 AS col0
----
49

query II rowsort
SELECT 23, 66 AS col0
----
23
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5797
SELECT DISTINCT + 90 + COUNT( * ) AS col0, ( - - CAST( NULL AS SIGNED ) )
----
91
NULL

skipif mysql # not compatible
query II rowsort label-5797
SELECT DISTINCT + 90 + COUNT ( * ) AS col0, ( - - CAST ( NULL AS INTEGER ) )
----
91
NULL

query I rowsort
SELECT DISTINCT 6 + + COALESCE ( + 99, - + 38 + - 26 + + ( + 83 ), + + 67 ) * + 73
----
7233

query II rowsort
SELECT DISTINCT - 39 AS col2, - 94 AS col0
----
-39
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5800
SELECT - + 13, 49 * + MAX( - 10 ) AS col0
----
-13
-490

skipif mysql # not compatible
query II rowsort label-5800
SELECT - + 13, 49 * + MAX ( - 10 ) AS col0
----
-13
-490

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5801
SELECT + CAST( - 42 AS SIGNED ) + - 56 + 33 AS col1, 52 AS col1
----
-65
52

skipif mysql # not compatible
query II rowsort label-5801
SELECT + CAST ( - 42 AS INTEGER ) + - 56 + 33 AS col1, 52 AS col1
----
-65
52

query I rowsort
SELECT - 21 * + 27 * + 6
----
-3402

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5803
SELECT ALL 91 + + 78 * 98 DIV + - 45 AS col1, 42 + + MAX( 18 ) AS col1
----
-78
60

skipif mysql # not compatible
query II rowsort label-5803
SELECT ALL 91 + + 78 * 98 / + - 45 AS col1, 42 + + MAX ( 18 ) AS col1
----
-78
60

query I rowsort
SELECT + 65 + - - 39
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT + COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT + CAST( + 70 AS SIGNED ) * + - ( - MAX( ALL - - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT + CAST ( + 70 AS INTEGER ) * + - ( - MAX ( ALL - - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5807
SELECT + - 19 + + - CASE - 98 WHEN 71 + AVG ( DISTINCT + NULLIF ( 22, - 71 * 9 ) ) * - COUNT( * ) THEN + CAST( NULL AS SIGNED ) * 52 ELSE + 28 + + + 74 - - 50 END + COUNT( * ) + COUNT( DISTINCT - 81 ) * - 33 DIV + 35 * 35 * - + COUNT( * ) col0
----
-170

skipif mysql # not compatible
query I rowsort label-5807
SELECT + - 19 + + - CASE - 98 WHEN 71 + AVG ( DISTINCT + NULLIF ( 22, - 71 * 9 ) ) * - COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) * 52 ELSE + 28 + + + 74 - - 50 END + COUNT ( * ) + COUNT ( DISTINCT - 81 ) * - 33 / + 35 * 35 * - + COUNT ( * ) col0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT ALL - COUNT( * ) - - + MAX( + 16 )
----
15

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL - COUNT ( * ) - - + MAX ( + 16 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT ALL SUM( DISTINCT - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL SUM ( DISTINCT - 20 ) AS col2
----
-20

query I rowsort
SELECT - 22 + + - 8 AS col1
----
-30

query I rowsort
SELECT ALL + 28 * - + 9
----
-252

query I rowsort
SELECT - 99 + + 61 AS col0
----
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-5813
SELECT - 16 DIV + 44, - 37 - + + 6 AS col2
----
0
-43

skipif mysql # not compatible
query II rowsort label-5813
SELECT - 16 / + 44, - 37 - + + 6 AS col2
----
0
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5814
SELECT - CASE SUM( 80 ) WHEN 94 * + 32 * + AVG ( DISTINCT - 57 ) * + - 89 THEN + CAST( NULL AS SIGNED ) * - + 65 ELSE - + 90 * - 0 * 60 * - CASE + COALESCE ( 51, - ( - 65 ) - - + COUNT( * ) ) WHEN - 63 THEN NULL WHEN - 56 - + 62 + NULLIF ( - 42, + + COUNT( * ) * - 26 + + - 86 + - 90 ) + - 6 * + COUNT( * ) THEN NULL ELSE - CAST( NULL AS SIGNED ) END + + 51 * 82 END + + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT - CASE SUM ( 80 ) WHEN 94 * + 32 * + AVG ( DISTINCT - 57 ) * + - 89 THEN + CAST ( NULL AS INTEGER ) * - + 65 ELSE - + 90 * - 0 * 60 * - CASE + COALESCE ( 51, - ( - 65 ) - - + COUNT ( * ) ) WHEN - 63 THEN NULL WHEN - 56 - + 62 + NULLIF ( - 42, + + COUNT ( * ) * - 26 + + - 86 + - 90 ) + - 6 * + COUNT ( * ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) END + + 51 * 82 END + + 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT ( 12 ) * + 93 + - 77 * + ( + + COUNT( * ) ) * + - COUNT( * ) * + 83 + - COALESCE ( - 81, + - 77 - - 97 ) AS col0
----
7588

skipif mysql # not compatible
query I rowsort label-5815
SELECT ( 12 ) * + 93 + - 77 * + ( + + COUNT ( * ) ) * + - COUNT ( * ) * + 83 + - COALESCE ( - 81, + - 77 - - 97 ) AS col0
----
7588

onlyif mysql # aggregate syntax: 
query II rowsort label-5816
SELECT DISTINCT + NULLIF ( 23, COUNT( - - 21 ) * 5 + COUNT( * ) * 44 ) AS col0, 70 AS col0
----
23
70

skipif mysql # not compatible
query II rowsort label-5816
SELECT DISTINCT + NULLIF ( 23, COUNT ( - - 21 ) * 5 + COUNT ( * ) * 44 ) AS col0, 70 AS col0
----
23
70

query I rowsort
SELECT COALESCE ( + 28, - - 89 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5818
SELECT + 27 DIV + COALESCE ( 96, - - 49 * - 16 + ( 58 ) ) + - 55
----
-55

skipif mysql # not compatible
query I rowsort label-5818
SELECT + 27 / + COALESCE ( 96, - - 49 * - 16 + ( 58 ) ) + - 55
----
-55

query I rowsort
SELECT COALESCE ( - + 21, - + 9 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-5820
SELECT ALL + ( 22 ), NULLIF ( + 76, COUNT( * ) + - - 21 ) AS col1
----
22
76

skipif mysql # not compatible
query II rowsort label-5820
SELECT ALL + ( 22 ), NULLIF ( + 76, COUNT ( * ) + - - 21 ) AS col1
----
22
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5821
SELECT DISTINCT + COALESCE ( + 31, - 6 + - + ( SUM( + 70 ) ) DIV - 95, + 17 )
----
31

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT + COALESCE ( + 31, - 6 + - + ( SUM ( + 70 ) ) / - 95, + 17 )
----
31

query I rowsort
SELECT + 64 * - 26 + - 47
----
-1711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5823
SELECT ALL COALESCE ( - + 36, + 34 DIV + 8 + - - 46 + 56 + - 65, - 27 DIV - - ( 53 ) DIV ( - 78 ) DIV + - 6 + - CAST( + + 9 AS SIGNED ) ) * - 34 * COUNT( * )
----
1224

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL COALESCE ( - + 36, + 34 / + 8 + - - 46 + 56 + - 65, - 27 / - - ( 53 ) / ( - 78 ) / + - 6 + - CAST ( + + 9 AS INTEGER ) ) * - 34 * COUNT ( * )
----
1224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5824
SELECT - CAST( NULL AS SIGNED ) * + 14 / - + 86 AS col1, + CASE - 94 WHEN 1 * 2 + COALESCE ( - COUNT( * ), - + 26 ) + + - 11 * - CASE - + CAST( NULL AS SIGNED ) WHEN MAX( - + ( + + 73 ) ) THEN NULL WHEN + + 92 THEN + MIN( - 22 ) END + - 37 THEN + 39 END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5824
SELECT - CAST ( NULL AS INTEGER ) * + 14 / - + 86 AS col1, + CASE - 94 WHEN 1 * 2 + COALESCE ( - COUNT ( * ), - + 26 ) + + - 11 * - CASE - + CAST ( NULL AS INTEGER ) WHEN MAX ( - + ( + + 73 ) ) THEN NULL WHEN + + 92 THEN + MIN ( - 22 ) END + - 37 THEN + 39 END AS col0
----
NULL
NULL

query I rowsort
SELECT NULLIF ( + ( - 27 ), + - 57 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT - COUNT( * ) + + 81
----
80

skipif mysql # not compatible
query I rowsort label-5826
SELECT - COUNT ( * ) + + 81
----
80

query II rowsort
SELECT + 79 + + 33 AS col2, 46 AS col0
----
112
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT - CAST( + 79 AS SIGNED ) * - 69 AS col1
----
5451

skipif mysql # not compatible
query I rowsort label-5828
SELECT - CAST ( + 79 AS INTEGER ) * - 69 AS col1
----
5451

query I rowsort
SELECT + 96 * + - 74 * 62
----
-440448

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5830
SELECT + 55 + - 85 AS col2, 77 + + CAST( NULL AS DECIMAL ) / + - 45 * + 67
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-5830
SELECT + 55 + - 85 AS col2, 77 + + CAST ( NULL AS REAL ) / + - 45 * + 67
----
-30
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5831
SELECT ALL + 57 * - COUNT( * ) + - - CAST( NULL AS SIGNED ) + + 70 * COUNT( * ) * - 69 + 88 / - 90 * + - 45 + - 17 * 52 * 27 * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL + 57 * - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + 70 * COUNT ( * ) * - 69 + 88 / - 90 * + - 45 + - 17 * 52 * 27 * + 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5832
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + COUNT( * ) + + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + + - 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5833
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) + + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + - 68
----
NULL

query I rowsort
SELECT DISTINCT 90 * 32 + + 56 * + 48 * 66 * 1 AS col1
----
180288

query I rowsort
SELECT + + 49 + + - 30 - 68 col0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5836
SELECT ALL - 80 DIV - 83 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - 80 / - 83 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL - 99 * - + 5 + + MIN( ALL + - 97 ) * 43 + + COUNT( * ) + - 3 * - NULLIF ( COUNT( ALL + 64 ), + - MAX( - 7 ) ) AS col2
----
-3672

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL - 99 * - + 5 + + MIN ( ALL + - 97 ) * 43 + + COUNT ( * ) + - 3 * - NULLIF ( COUNT ( ALL + 64 ), + - MAX ( - 7 ) ) AS col2
----
-3672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5838
SELECT - COUNT( * ) DIV - 12 * - - 46 col1
----
0

skipif mysql # not compatible
query I rowsort label-5838
SELECT - COUNT ( * ) / - 12 * - - 46 col1
----
0

query I rowsort
SELECT - 27 - + - 96 AS col0
----
69

query I rowsort
SELECT NULLIF ( + ( + 54 ), 99 )
----
54

query II rowsort
SELECT + + 8 + + 24 AS col1, 70 AS col0
----
32
70

query I rowsort
SELECT + - 34 + ( - 24 ) AS col2
----
-58

query I rowsort
SELECT DISTINCT - 75 - + + NULLIF ( + 40, + - ( - + 54 ) )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT + MAX( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT + MAX ( 10 )
----
10

query I rowsort
SELECT + 75 * 15
----
1125

query I rowsort
SELECT - 45 * + 34 AS col0
----
-1530

query II rowsort
SELECT DISTINCT 69 AS col0, + 79
----
69
79

query II rowsort
SELECT ALL 20, 35 + 12 AS col0
----
20
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT DISTINCT - MIN( 61 ) * - 17
----
1037

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT - MIN ( 61 ) * - 17
----
1037

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5850
SELECT DISTINCT 98 DIV + - MAX( 54 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT 98 / + - MAX ( 54 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5851
SELECT - COUNT( * ) DIV - - 9
----
0

skipif mysql # not compatible
query I rowsort label-5851
SELECT - COUNT ( * ) / - - 9
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5852
SELECT DISTINCT 41 DIV - 31 + COUNT( * ) * + COUNT( * ) AS col1, - 76 + + 84
----
0
8

skipif mysql # not compatible
query II rowsort label-5852
SELECT DISTINCT 41 / - 31 + COUNT ( * ) * + COUNT ( * ) AS col1, - 76 + + 84
----
0
8

query II rowsort
SELECT + ( + 78 ) * - 7 + COALESCE ( - 39, + 66 ), + 19 AS col1
----
-585
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT - 79 * - - MAX( DISTINCT + - 31 )
----
2449

skipif mysql # not compatible
query I rowsort label-5854
SELECT - 79 * - - MAX ( DISTINCT + - 31 )
----
2449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT CAST( + 89 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5855
SELECT CAST ( + 89 AS INTEGER ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT + MAX( DISTINCT - 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-5856
SELECT + MAX ( DISTINCT - 55 ) AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5857
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + 14 / + 18 + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + 14 / + 18 + 46
----
NULL

query I rowsort
SELECT ALL - - 27 / + 65 + - 76 + - 31 + - + CASE - 0 WHEN - - 67 THEN - + 22 / - ( + 85 ) / + 25 + + 22 / + - 91 / 51 * + 92 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT + COUNT( + + ( - 16 ) ) * - 97 + + + ( - - 22 ) + + + 76 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5859
SELECT + COUNT ( + + ( - 16 ) ) * - 97 + + + ( - - 22 ) + + + 76 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT DISTINCT - - NULLIF ( + NULLIF ( - 3, + + 5 + + MAX( DISTINCT - 52 ) ), + + 1 ) * 78
----
-234

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT - - NULLIF ( + NULLIF ( - 3, + + 5 + + MAX ( DISTINCT - 52 ) ), + + 1 ) * 78
----
-234

query I rowsort
SELECT NULLIF ( + 16, 6 ) * - 4 + + 52
----
-12

query II rowsort
SELECT + 55 AS col2, - 51 col1
----
55
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5863
SELECT + COUNT( * ) * - + NULLIF ( + - 1, - ( ( + CAST( 52 AS SIGNED ) ) ) ) + - 90 - 75 + - + 17 AS col0
----
-181

skipif mysql # not compatible
query I rowsort label-5863
SELECT + COUNT ( * ) * - + NULLIF ( + - 1, - ( ( + CAST ( 52 AS INTEGER ) ) ) ) + - 90 - 75 + - + 17 AS col0
----
-181

query II rowsort
SELECT - - NULLIF ( + 70, - 13 * + - 64 ) AS col2, - 44
----
70
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5865
SELECT ALL - + MIN( + CAST( NULL AS SIGNED ) ) * - - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL - + MIN ( + CAST ( NULL AS INTEGER ) ) * - - 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT - 43 - + COUNT( * ) * - - 99 AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-5866
SELECT - 43 - + COUNT ( * ) * - - 99 AS col2
----
-142

query I rowsort
SELECT DISTINCT ( + 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT COUNT( * ) + + 41 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5868
SELECT COUNT ( * ) + + 41 AS col0
----
42

query I rowsort
SELECT 41 + - 6 * + 81
----
-445

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT ALL 99 DIV + - ( - 40 )
----
2

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL 99 / + - ( - 40 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT 60 DIV + 18
----
3

skipif mysql # not compatible
query I rowsort label-5871
SELECT 60 / + 18
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT MIN( 19 ) + - - 89 * 76 AS col1
----
6783

skipif mysql # not compatible
query I rowsort label-5872
SELECT MIN ( 19 ) + - - 89 * 76 AS col1
----
6783

query I rowsort
SELECT 69 * - 19
----
-1311

query I rowsort
SELECT 76 + + 13 + + 67
----
156

query I rowsort
SELECT ALL 45 * - 86 AS col1
----
-3870

query II rowsort
SELECT ALL 15 + - - 48 AS col0, + 87 - 5 - - + 82 AS col0
----
63
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5877
SELECT 95 + + CAST( 65 AS SIGNED ) + - + 37 * - - COUNT( * ) * + + CASE + 38 WHEN - 83 * 25 * + 65 + 70 - - 25 * 75 - + 54 THEN NULL ELSE + 79 END * + + 99 - + + 92 DIV + - COUNT( * ) AS col0
----
-289125

skipif mysql # not compatible
query I rowsort label-5877
SELECT 95 + + CAST ( 65 AS INTEGER ) + - + 37 * - - COUNT ( * ) * + + CASE + 38 WHEN - 83 * 25 * + 65 + 70 - - 25 * 75 - + 54 THEN NULL ELSE + 79 END * + + 99 - + + 92 / + - COUNT ( * ) AS col0
----
-289125

onlyif mysql # aggregate syntax: 
query II rowsort label-5878
SELECT ALL 91 + 23 - + + 81 - MAX( - 32 ) * - COUNT( * ) * 74, 33 AS col2
----
-2335
33

skipif mysql # not compatible
query II rowsort label-5878
SELECT ALL 91 + 23 - + + 81 - MAX ( - 32 ) * - COUNT ( * ) * 74, 33 AS col2
----
-2335
33

query I rowsort
SELECT DISTINCT 50 + 14 - NULLIF ( 51, 63 )
----
13

query I rowsort
SELECT 85 * - + 1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5881
SELECT DISTINCT + 2 / + 59 - - 70 - + 50 - + 47 * - 85 / - CASE CAST( - ( - 9 ) AS SIGNED ) WHEN + - AVG ( DISTINCT + - ( - + COALESCE ( + - 55, + + 20 * + 73 + + - 26 + + 47 ) ) ) / - 84 * - - 68 THEN + + 41 WHEN COUNT( * ) * - 34 THEN NULL END + 31 - - 78 * - CASE WHEN NOT NULL IN ( CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ), + 96 * + COUNT( * ) ) THEN - + 77 ELSE + 55 END / 35 + - 56 * - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT + 2 / + 59 - - 70 - + 50 - + 47 * - 85 / - CASE CAST ( - ( - 9 ) AS INTEGER ) WHEN + - AVG ( DISTINCT + - ( - + COALESCE ( + - 55, + + 20 * + 73 + + - 26 + + 47 ) ) ) / - 84 * - - 68 THEN + + 41 WHEN COUNT ( * ) * - 34 THEN NULL END + 31 - - 78 * - CASE WHEN NOT NULL IN ( CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ), + 96 * + COUNT ( * ) ) THEN - + 77 ELSE + 55 END / 35 + - 56 * - 85 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5882
SELECT - 82 DIV + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5882
SELECT - 82 / + 89 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT 65 * + 78 - + + COUNT( + + 54 ) * + 91 + COALESCE ( 43, 65 * - + 25 * - 35 ) * + 79
----
8376

skipif mysql # not compatible
query I rowsort label-5883
SELECT 65 * + 78 - + + COUNT ( + + 54 ) * + 91 + COALESCE ( 43, 65 * - + 25 * - 35 ) * + 79
----
8376

query II rowsort
SELECT + 65 + - 24 * + 70 + - + ( 51 ) col1, 26
----
-1666
26

query I rowsort
SELECT ALL + 78 * + 79 - + 42 AS col0
----
6120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5886
SELECT DISTINCT - - NULLIF ( - COALESCE ( - 47, + 64 DIV 94 * - - 62 ), - COUNT( * ) ), COUNT( * ) AS col0
----
47
1

skipif mysql # not compatible
query II rowsort label-5886
SELECT DISTINCT - - NULLIF ( - COALESCE ( - 47, + 64 / 94 * - - 62 ), - COUNT ( * ) ), COUNT ( * ) AS col0
----
47
1

query I rowsort
SELECT + + 26 * + NULLIF ( - - 17, - + 57 ) + + - NULLIF ( - 43, + 18 * ( 99 ) ) + + - 80
----
405

onlyif mysql # aggregate syntax: 
query III rowsort label-5888
SELECT 42 * 30 * - 36 + 40 AS col2, - 95 * - - SUM( - + 78 ) col2, + - 68 * + 64 + 23 AS col0
----
-45320
7410
-4329

skipif mysql # not compatible
query III rowsort label-5888
SELECT 42 * 30 * - 36 + 40 AS col2, - 95 * - - SUM ( - + 78 ) col2, + - 68 * + 64 + 23 AS col0
----
-45320
7410
-4329

query I rowsort
SELECT ALL - COALESCE ( - 86, + - 52 ) AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5890
SELECT - NULLIF ( - 8, + 69 * + + 89 ) * + + COALESCE ( - COALESCE ( + COUNT( * ), + 83 + + 37, - - 26 * - - 33 DIV + AVG ( ALL + 79 ) ), - - 15 * - 32, - 56 * - + ( 97 ) + + + COUNT( * ) * - - ( 5 ) * + NULLIF ( + + 5, + COUNT( * ) * 95 * + ( - 90 ) * + MAX( + 93 ) DIV 49 + + 30 + + 98 ), - 17 ) + - 84 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5890
SELECT - NULLIF ( - 8, + 69 * + + 89 ) * + + COALESCE ( - COALESCE ( + COUNT ( * ), + 83 + + 37, - - 26 * - - 33 / + AVG ( ALL + 79 ) ), - - 15 * - 32, - 56 * - + ( 97 ) + + + COUNT ( * ) * - - ( 5 ) * + NULLIF ( + + 5, + COUNT ( * ) * 95 * + ( - 90 ) * + MAX ( + 93 ) / 49 + + 30 + + 98 ), - 17 ) + - 84 AS col0
----
-92

query I rowsort
SELECT ALL 1 * + 10 AS col0
----
10

query I rowsort
SELECT + ( + 24 ) + + 15 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ALL - COUNT( * ) * - - ( 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL - COUNT ( * ) * - - ( 33 ) AS col1
----
-33

query I rowsort
SELECT 86 + - 84 AS col0
----
2

query I rowsort
SELECT ALL - 6 + ( 16 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT DISTINCT + 52 * - COUNT( - 26 )
----
-52

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT + 52 * - COUNT ( - 26 )
----
-52

query I rowsort
SELECT ALL + 79 * 94 AS col0
----
7426

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT DISTINCT MIN( + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT MIN ( + 69 )
----
69

query I rowsort
SELECT ALL - 7 + - 12
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT MAX( DISTINCT - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT MAX ( DISTINCT - 45 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT COUNT( * ) * COALESCE ( + - 28, + 82 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5901
SELECT COUNT ( * ) * COALESCE ( + - 28, + 82 ) AS col0
----
-28

query I rowsort
SELECT ALL - 80 + + 61 AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT ALL + 17 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL + 17 / + 85 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT SUM( ALL + 44 ) * + + 78
----
3432

skipif mysql # not compatible
query I rowsort label-5904
SELECT SUM ( ALL + 44 ) * + + 78
----
3432

query I rowsort
SELECT ALL 38 + 61
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - + 18 + - COUNT( * ) + COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5906
SELECT - + 18 + - COUNT ( * ) + COUNT ( * ) AS col1
----
-18

query I rowsort
SELECT + 89 * + 58 col2
----
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ALL + - CASE - - COUNT( * ) WHEN - + NULLIF ( + + 5, + - 9 ) / + 88 * + ( + 96 ) + - 8 THEN + COUNT( * ) + + 69 + - - 92 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + - CASE - - COUNT ( * ) WHEN - + NULLIF ( + + 5, + - 9 ) / + 88 * + ( + 96 ) + - 8 THEN + COUNT ( * ) + + 69 + - - 92 END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT + 16 DIV - - 18
----
0

skipif mysql # not compatible
query I rowsort label-5909
SELECT + 16 / - - 18
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5910
SELECT + 51 AS col0, + COUNT( * ) + + MAX( + 99 ) + + 29 + - - 80 * - + ( - 32 ) AS col0
----
51
2689

skipif mysql # not compatible
query II rowsort label-5910
SELECT + 51 AS col0, + COUNT ( * ) + + MAX ( + 99 ) + + 29 + - - 80 * - + ( - 32 ) AS col0
----
51
2689

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT DISTINCT + COALESCE ( + - ( + COUNT( * ) ), - - 16 + + 85 + NULLIF ( - 98, 0 ) * - 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT + COALESCE ( + - ( + COUNT ( * ) ), - - 16 + + 85 + NULLIF ( - 98, 0 ) * - 65 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT + NULLIF ( - + COUNT( + 94 ), - + 75 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5912
SELECT + NULLIF ( - + COUNT ( + 94 ), - + 75 ) AS col2
----
-1

query I rowsort
SELECT + 43 + + ( - 17 ) col1
----
26

query I rowsort
SELECT + - 42 + + 52 + 73 - - 63 * 24 * - - 18 AS col2
----
27299

query II rowsort
SELECT - 88 * - 88 * - 63 AS col2, 8 AS col1
----
-487872
8

query I rowsort
SELECT ALL 1 + + + 84 + 66
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5917
SELECT + MAX( DISTINCT + 70 ) - - - 98 - + 99, 78 DIV - COUNT( * ) + 35 + - 99 * 76 DIV 40 AS col2
----
-127
-231

skipif mysql # not compatible
query II rowsort label-5917
SELECT + MAX ( DISTINCT + 70 ) - - - 98 - + 99, 78 / - COUNT ( * ) + 35 + - 99 * 76 / 40 AS col2
----
-127
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT DISTINCT MAX( DISTINCT 18 )
----
18

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT MAX ( DISTINCT 18 )
----
18

query I rowsort
SELECT DISTINCT 81 + ( + - 18 ) AS col1
----
63

query I rowsort
SELECT ALL 40 + - 86
----
-46

query I rowsort
SELECT ALL CASE + 28 WHEN - 29 / + 71 + - 97 THEN - 76 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT - NULLIF ( - COUNT( * ), + + 67 / + COUNT( * ) ) * - 52
----
-52

skipif mysql # not compatible
query I rowsort label-5922
SELECT - NULLIF ( - COUNT ( * ), + + 67 / + COUNT ( * ) ) * - 52
----
-52

query II rowsort
SELECT 79, + 45 AS col0
----
79
45

query I rowsort
SELECT + 98 + 35 AS col1
----
133

query I rowsort
SELECT - 4 - - 92 AS col2
----
88

query III rowsort
SELECT 23 AS col2, 64 AS col2, - + 78 col0
----
23
64
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ALL MIN( ALL + 4 ) col0
----
4

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL MIN ( ALL + 4 ) col0
----
4

query I rowsort
SELECT - 80 - + 44
----
-124

query I rowsort
SELECT - 50 + 6 AS col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5930
SELECT ALL - MIN( ALL + + 53 ) + + 78 + + 91 DIV 66 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL - MIN ( ALL + + 53 ) + + 78 + + 91 / 66 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT - 44 + + + 67 * + + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5931
SELECT - 44 + + + 67 * + + COUNT ( * ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5932
SELECT DISTINCT ( ( SUM( + + 36 ) ) ), 46 AS col1
----
36
46

skipif mysql # not compatible
query II rowsort label-5932
SELECT DISTINCT ( ( SUM ( + + 36 ) ) ), 46 AS col1
----
36
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5933
SELECT ALL - 76 - + ( - CASE + + COUNT( * ) WHEN 44 THEN + 16 ELSE - + ( + 71 ) DIV 51 END ) + + 49 + - 10 * - 14 - - + 22 * + + 61 * COUNT( * ) * + 9 AS col2
----
12190

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL - 76 - + ( - CASE + + COUNT ( * ) WHEN 44 THEN + 16 ELSE - + ( + 71 ) / 51 END ) + + 49 + - 10 * - 14 - - + 22 * + + 61 * COUNT ( * ) * + 9 AS col2
----
12190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5934
SELECT ALL CAST( - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL CAST ( - 5 AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT - 96 + - + COUNT( * ) * - 25
----
-71

skipif mysql # not compatible
query I rowsort label-5935
SELECT - 96 + - + COUNT ( * ) * - 25
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT ALL + 13 - + COALESCE ( COUNT( + ( + 82 ) ), - - MAX( 99 ) + 76 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL + 13 - + COALESCE ( COUNT ( + ( + 82 ) ), - - MAX ( 99 ) + 76 ) AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT DISTINCT COALESCE ( - - 78, + CAST( NULL AS SIGNED ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT COALESCE ( - - 78, + CAST ( NULL AS INTEGER ) ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5938
SELECT ALL + 58 AS col1, 87 * + 53 - COUNT( * ) AS col1
----
58
4610

skipif mysql # not compatible
query II rowsort label-5938
SELECT ALL + 58 AS col1, 87 * + 53 - COUNT ( * ) AS col1
----
58
4610

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT + COUNT( ALL + 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT + COUNT ( ALL + 6 ) AS col0
----
1

query I rowsort
SELECT - 73 * + 89
----
-6497

query I rowsort
SELECT + - 18 * + 97 + - - 29
----
-1717

onlyif mysql # aggregate syntax: 
query II rowsort label-5942
SELECT ALL + 35, COALESCE ( - COUNT( ALL - NULLIF ( 3, + + 64 ) ), + + 31, 29 ) AS col2
----
35
-1

skipif mysql # not compatible
query II rowsort label-5942
SELECT ALL + 35, COALESCE ( - COUNT ( ALL - NULLIF ( 3, + + 64 ) ), + + 31, 29 ) AS col2
----
35
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT - - ( - 86 ) * + COUNT( * ) + MAX( 55 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5943
SELECT - - ( - 86 ) * + COUNT ( * ) + MAX ( 55 ) AS col0
----
-31

query II rowsort
SELECT 59 AS col2, - 67 col2
----
59
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT ALL + 70 * + + ( COUNT( * ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL + 70 * + + ( COUNT ( * ) ) AS col0
----
70

query II rowsort
SELECT DISTINCT + - 79 AS col2, 30
----
-79
30

query II rowsort
SELECT + 22 * + 91 AS col2, + 77 * 23 * + 1
----
2002
1771

query I rowsort
SELECT + + NULLIF ( - 77, ( - 90 ) * - 37 )
----
-77

query I rowsort
SELECT DISTINCT + 68 * + - ( 88 ) AS col0
----
-5984

query I rowsort
SELECT - 80 - - 44 + - 23 AS col2
----
-59

query I rowsort
SELECT ALL 19 * 92 AS col1
----
1748

query I rowsort
SELECT - ( - + 1 ) + 76
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5953
SELECT DISTINCT - 74 * - 35 + - - 61 DIV - 45 + + + 40
----
2629

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT - 74 * - 35 + - - 61 / - 45 + + + 40
----
2629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5954
SELECT DISTINCT MIN( DISTINCT - + CAST( - ( 15 ) AS SIGNED ) ) DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT MIN ( DISTINCT - + CAST ( - ( 15 ) AS INTEGER ) ) / + 30
----
0

query I rowsort
SELECT ALL ( - - 6 ) * 54 + - 79 AS col0
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT + + 88 + + - COUNT( * ) - + 72 + - 80 * COUNT( * ) * 94
----
-7505

skipif mysql # not compatible
query I rowsort label-5956
SELECT + + 88 + + - COUNT ( * ) - + 72 + - 80 * COUNT ( * ) * 94
----
-7505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5957
SELECT ALL 7 * + ( + MIN( + + 38 ) ) * - CASE + 87 WHEN + + COUNT( * ) THEN - NULLIF ( 40, + COUNT( * ) * + - 61 * + - COUNT( * ) + 6 - + + 92 ) END + + 85 * COUNT( * ) + + CAST( 92 AS SIGNED ) + - 30 + - 27 + 14 + 19 + 82 + AVG ( ALL + 31 ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL 7 * + ( + MIN ( + + 38 ) ) * - CASE + 87 WHEN + + COUNT ( * ) THEN - NULLIF ( 40, + COUNT ( * ) * + - 61 * + - COUNT ( * ) + 6 - + + 92 ) END + + 85 * COUNT ( * ) + + CAST ( 92 AS INTEGER ) + - 30 + - 27 + 14 + 19 + 82 + AVG ( ALL + 31 ) * - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT + 10 + + COUNT( * ) + + 1
----
12

skipif mysql # not compatible
query I rowsort label-5958
SELECT + 10 + + COUNT ( * ) + + 1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT - CAST( + ( 66 ) AS SIGNED ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-5959
SELECT - CAST ( + ( 66 ) AS INTEGER ) AS col2
----
-66

query II rowsort
SELECT ALL 69 * - 65 AS col2, - 33 AS col0
----
-4485
-33

query I rowsort
SELECT 44 * - 41 + 41 + - - 25
----
-1738

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT - ( - MAX( DISTINCT + 62 ) )
----
62

skipif mysql # not compatible
query I rowsort label-5962
SELECT - ( - MAX ( DISTINCT + 62 ) )
----
62

query I rowsort
SELECT - 56 + 85 * + + 89
----
7509

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT ALL + COUNT( * ) * COUNT( * ) - + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL + COUNT ( * ) * COUNT ( * ) - + - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT SUM( DISTINCT - 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-5965
SELECT SUM ( DISTINCT - 16 ) AS col1
----
-16

query II rowsort
SELECT + 27 * + - 82 AS col1, - 50 AS col2
----
-2214
-50

query I rowsort
SELECT DISTINCT 91 - - - 51
----
40

query I rowsort
SELECT ALL CASE 26 WHEN - 26 THEN 5 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5969
SELECT ALL COUNT( * ) - 17 + - + MAX( DISTINCT + 70 ) DIV - 49 + + 54 col1
----
39

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL COUNT ( * ) - 17 + - + MAX ( DISTINCT + 70 ) / - 49 + + 54 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT ( - + 46 ) * COUNT( * ) + 78
----
32

skipif mysql # not compatible
query I rowsort label-5970
SELECT ( - + 46 ) * COUNT ( * ) + 78
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5971
SELECT 36 * - MIN( + 83 ) AS col0, - 0
----
-2988
0

skipif mysql # not compatible
query II rowsort label-5971
SELECT 36 * - MIN ( + 83 ) AS col0, - 0
----
-2988
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT ALL - - 53 * + CAST( - + 5 AS SIGNED )
----
-265

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL - - 53 * + CAST ( - + 5 AS INTEGER )
----
-265

query I rowsort
SELECT ( + 45 ) * + 67 AS col0
----
3015

query I rowsort
SELECT DISTINCT 49 * - 76 * - - 71
----
-264404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5975
SELECT ALL CASE - 58 WHEN + 10 THEN + 74 + CASE - + 94 WHEN 17 * - - ( - SUM( DISTINCT + - 6 ) ) - - 14 THEN NULL ELSE - COUNT( * ) END WHEN 13 * + 27 + + + COALESCE ( + - 37, - 70 * - - ( + CAST( NULL AS SIGNED ) ), + 33 - 47 + 18 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL CASE - 58 WHEN + 10 THEN + 74 + CASE - + 94 WHEN 17 * - - ( - SUM ( DISTINCT + - 6 ) ) - - 14 THEN NULL ELSE - COUNT ( * ) END WHEN 13 * + 27 + + + COALESCE ( + - 37, - 70 * - - ( + CAST ( NULL AS INTEGER ) ), + 33 - 47 + 18 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5976
SELECT ALL - + 61 * - COUNT( * ) * - 34 + + 91 DIV - COUNT( * ) AS col2
----
-2165

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL - + 61 * - COUNT ( * ) * - 34 + + 91 / - COUNT ( * ) AS col2
----
-2165

query I rowsort
SELECT 71 * 90
----
6390

query I rowsort
SELECT + COALESCE ( CASE + 17 WHEN - 19 THEN + - 35 END, - 10 ) AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT 75 DIV - - 36 + + 55 + - 93 * 13 AS col2
----
-1152

skipif mysql # not compatible
query I rowsort label-5979
SELECT 75 / - - 36 + + 55 + - 93 * 13 AS col2
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT + COUNT( DISTINCT - + 78 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5980
SELECT + COUNT ( DISTINCT - + 78 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5981
SELECT CAST( NULL AS SIGNED ) * + ( - ( - - COUNT( DISTINCT - 60 ) ) ) * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT CAST ( NULL AS INTEGER ) * + ( - ( - - COUNT ( DISTINCT - 60 ) ) ) * + 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5982
SELECT - ( CAST( NULL AS SIGNED ) ) AS col1, MIN( DISTINCT 14 ) AS col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-5982
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col1, MIN ( DISTINCT 14 ) AS col0
----
NULL
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5983
SELECT ALL - CASE 56 WHEN 74 * - - 21 - - 41 * 27 THEN + + COUNT( * ) + + + MAX( - - 51 ) WHEN 99 * + + 62 THEN NULL ELSE SUM( DISTINCT + 73 ) + 86 + + 39 DIV + + 20 END
----
-160

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - CASE 56 WHEN 74 * - - 21 - - 41 * 27 THEN + + COUNT ( * ) + + + MAX ( - - 51 ) WHEN 99 * + + 62 THEN NULL ELSE SUM ( DISTINCT + 73 ) + 86 + + 39 / + + 20 END
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT DISTINCT - - ( + 61 ) + ( + COUNT( * ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT - - ( + 61 ) + ( + COUNT ( * ) ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5985
SELECT 19 * + ( - - COUNT( * ) ), 2 + - 3 AS col0
----
19
-1

skipif mysql # not compatible
query II rowsort label-5985
SELECT 19 * + ( - - COUNT ( * ) ), 2 + - 3 AS col0
----
19
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT DISTINCT + ( 89 ) + - COUNT( * ) + + 67
----
155

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT + ( 89 ) + - COUNT ( * ) + + 67
----
155

query I rowsort
SELECT DISTINCT - + ( - 14 ) AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5988
SELECT DISTINCT - NULLIF ( - CAST( - 97 AS SIGNED ), + + 36 / + 21 * 28 + - ( 16 ) * - - 2 * - 20 )
----
-97

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT - NULLIF ( - CAST ( - 97 AS INTEGER ), + + 36 / + 21 * 28 + - ( 16 ) * - - 2 * - 20 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ALL - COUNT( * ) * + 86 col0
----
-86

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL - COUNT ( * ) * + 86 col0
----
-86

query II rowsort
SELECT 66 + - 39 - 44 AS col0, 5 * + - 37 * 1 AS col0
----
-17
-185

query II rowsort
SELECT + 57 AS col1, 55
----
57
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT DISTINCT 86 - - 73 + - 87 + - - 80 DIV - 86 * - 83 DIV + + 33 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT 86 - - 73 + - 87 + - - 80 / - 86 * - 83 / + + 33 AS col0
----
72

query II rowsort
SELECT ALL - 59, + 1 AS col2
----
-59
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5994
SELECT DISTINCT + 76 - CAST( 48 AS SIGNED ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT + 76 - CAST ( 48 AS INTEGER ) AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5995
SELECT ALL 15 / - 8 * + CASE + MIN( ALL - + 17 ) WHEN + 59 THEN NULL ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL 15 / - 8 * + CASE + MIN ( ALL - + 17 ) WHEN + 59 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT 10 + - 47
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-5997
SELECT - 78, 94 + - NULLIF ( COUNT( * ), - + MIN( + 9 ) + - 12 ) * 8 - 3 AS col0
----
-78
83

skipif mysql # not compatible
query II rowsort label-5997
SELECT - 78, 94 + - NULLIF ( COUNT ( * ), - + MIN ( + 9 ) + - 12 ) * 8 - 3 AS col0
----
-78
83

query I rowsort
SELECT 94 * + - 65 AS col0
----
-6110

query I rowsort
SELECT ALL 79 * - 14 * 32 AS col1
----
-35392

query I rowsort
SELECT 0 + - + 77 * - 47 * - 31 AS col1
----
-112189

query II rowsort
SELECT COALESCE ( + 95, + 2 ) + + + 79 - 58 * + 34, ( + + 41 ) col0
----
-1798
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6002
SELECT ALL CAST( - + 1 AS SIGNED ) * - 28
----
28

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL CAST ( - + 1 AS INTEGER ) * - 28
----
28

query II rowsort
SELECT 19 + - - 97 + 90 AS col2, 64 * - ( - 50 ) * + 62
----
206
198400

onlyif mysql # aggregate syntax: 
query II rowsort label-6004
SELECT DISTINCT 97 AS col1, COUNT( * )
----
97
1

skipif mysql # not compatible
query II rowsort label-6004
SELECT DISTINCT 97 AS col1, COUNT ( * )
----
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT + 59 * - - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6005
SELECT + 59 * - - COUNT ( * ) AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6006
SELECT DISTINCT + SUM( ALL 56 ) * + + 59 * - COALESCE ( + + 41, - + COUNT( * ) - - - COUNT( * ), + 82 DIV - + COUNT( * ) + ( 0 ) + + + 11 * - 28 ) AS col0
----
-135464

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT + SUM ( ALL 56 ) * + + 59 * - COALESCE ( + + 41, - + COUNT ( * ) - - - COUNT ( * ), + 82 / - + COUNT ( * ) + ( 0 ) + + + 11 * - 28 ) AS col0
----
-135464

query I rowsort
SELECT ALL 38 * + 38 * + 91 AS col1
----
131404

query I rowsort
SELECT ALL + 70 + - - 99 AS col2
----
169

query I rowsort
SELECT - 82 + + + 92
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT - CASE - + 45 WHEN ( + 58 ) THEN COUNT( + 17 ) WHEN + 3 THEN + COALESCE ( ( + 64 ), + + 51 ) * - MAX( + 88 ) + - + 68 + SUM( - - 14 ) + - + 18 ELSE - 42 END col0
----
42

skipif mysql # not compatible
query I rowsort label-6010
SELECT - CASE - + 45 WHEN ( + 58 ) THEN COUNT ( + 17 ) WHEN + 3 THEN + COALESCE ( ( + 64 ), + + 51 ) * - MAX ( + 88 ) + - + 68 + SUM ( - - 14 ) + - + 18 ELSE - 42 END col0
----
42

query I rowsort
SELECT ( 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT + MAX( - + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-6012
SELECT + MAX ( - + 58 )
----
-58

query I rowsort
SELECT 34 * - 18 AS col0
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL - 18 * - 39 * CASE + 80 WHEN 31 THEN NULL WHEN + - 77 THEN AVG ( - 59 ) * + 34 + - NULLIF ( + + 98, - 2 ) END / + 73 + + AVG ( 67 ) + - - 34 * - - 75 * + NULLIF ( - ( - 45 ), - - 80 / + + 98 ) * 86 * - - 70 / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL - 18 * - 39 * CASE + 80 WHEN 31 THEN NULL WHEN + - 77 THEN AVG ( - 59 ) * + 34 + - NULLIF ( + + 98, - 2 ) END / + 73 + + AVG ( 67 ) + - - 34 * - - 75 * + NULLIF ( - ( - 45 ), - - 80 / + + 98 ) * 86 * - - 70 / - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - + 6 col2, + 11
----
-6
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT - COUNT( DISTINCT 24 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6016
SELECT - COUNT ( DISTINCT 24 ) col2
----
-1

query I rowsort
SELECT DISTINCT - + 83 * + 50 + + 26 AS col0
----
-4124

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL - + CASE - 52 WHEN ( - - COUNT( * ) ) THEN + 21 WHEN - 55 / + - 65 + + 78 * - 19 * 61 / + 38 THEN 32 ELSE NULL END * + - COUNT( ( + 9 ) ) + - - 36 + - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL - + CASE - 52 WHEN ( - - COUNT ( * ) ) THEN + 21 WHEN - 55 / + - 65 + + 78 * - 19 * 61 / + 38 THEN 32 ELSE NULL END * + - COUNT ( ( + 9 ) ) + - - 36 + - 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT - 98 * + 74 * + CASE - 78 WHEN + + AVG ( ALL + 76 ) * 61 - + - 11 + COUNT( * ) THEN 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT - 98 * + 74 * + CASE - 78 WHEN + + AVG ( ALL + 76 ) * 61 - + - 11 + COUNT ( * ) THEN 0 END AS col2
----
NULL

query I rowsort
SELECT ALL 68 * - - 49 col1
----
3332

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT - ( - 7 ) + + 96 + - 36 DIV + 62 * + - 42
----
103

skipif mysql # not compatible
query I rowsort label-6021
SELECT - ( - 7 ) + + 96 + - 36 / + 62 * + - 42
----
103

query II rowsort
SELECT + - 3, + 15 AS col2
----
-3
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6023
SELECT DISTINCT - COALESCE ( + 5, - ( - - 83 ), - 20 * + COUNT( * ) DIV + + 20 * - - 16 + - 40, + + MAX( DISTINCT + - 3 ) ) * ( + + ( 39 ) )
----
-195

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT - COALESCE ( + 5, - ( - - 83 ), - 20 * + COUNT ( * ) / + + 20 * - - 16 + - 40, + + MAX ( DISTINCT + - 3 ) ) * ( + + ( 39 ) )
----
-195

query I rowsort
SELECT - 64 * 80
----
-5120

query I rowsort
SELECT 80 * ( - - 92 ) + 36 * - + 84 AS col2
----
4336

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT - COUNT( * ) - - 99 col0
----
98

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT - COUNT ( * ) - - 99 col0
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-6027
SELECT ALL + 89 DIV + 47, + 94 * + CASE - 89 WHEN + 87 THEN NULL ELSE + 11 - - - 85 + + ( ( + 65 ) ) END AS col2
----
1
-846

skipif mysql # not compatible
query II rowsort label-6027
SELECT ALL + 89 / + 47, + 94 * + CASE - 89 WHEN + 87 THEN NULL ELSE + 11 - - - 85 + + ( ( + 65 ) ) END AS col2
----
1
-846

query I rowsort
SELECT 85 * + 82 AS col1
----
6970

query I rowsort
SELECT 20 + ( + 2 ) AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6030
SELECT DISTINCT + CASE - 4 WHEN - NULLIF ( ( - + 15 ), + + 70 ) THEN NULL ELSE - 87 END DIV - 47 col2
----
1

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT + CASE - 4 WHEN - NULLIF ( ( - + 15 ), + + 70 ) THEN NULL ELSE - 87 END / - 47 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6031
SELECT DISTINCT + COUNT( DISTINCT + - 21 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT + COUNT ( DISTINCT + - 21 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( + 69 ) * 88
----
6072

onlyif mysql # DIV for integer division: 
query I rowsort label-6033
SELECT - 4 DIV + 1
----
-4

skipif mysql # not compatible
query I rowsort label-6033
SELECT - 4 / + 1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6034
SELECT ALL + 90 / + 61 / + CAST( NULL AS SIGNED ) / 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL + 90 / + 61 / + CAST ( NULL AS INTEGER ) / 55
----
NULL

query I rowsort
SELECT - 21 + + 12 AS col1
----
-9

query I rowsort
SELECT - 80 - + - 75 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT - 44 + NULLIF ( - + 16, - 13 ) * - - COUNT( - 16 )
----
-60

skipif mysql # not compatible
query I rowsort label-6037
SELECT - 44 + NULLIF ( - + 16, - 13 ) * - - COUNT ( - 16 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT COUNT( * ) * + 84 + + 52 + 96 * - ( + 73 ) * + 41 * 82 - - 88
----
-23560672

skipif mysql # not compatible
query I rowsort label-6038
SELECT COUNT ( * ) * + 84 + + 52 + 96 * - ( + 73 ) * + 41 * 82 - - 88
----
-23560672

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT ALL COALESCE ( - COUNT( * ), - 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL COALESCE ( - COUNT ( * ), - 36 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT + COALESCE ( + + 36, 92 + + 98 ) + COUNT( * ) * - 75 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6040
SELECT + COALESCE ( + + 36, 92 + + 98 ) + COUNT ( * ) * - 75 AS col2
----
-39

query I rowsort
SELECT DISTINCT - 0 * + 64 AS col1
----
0

query II rowsort
SELECT - 14 * - 57, + 58 AS col1
----
798
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL COALESCE ( COUNT( * ), 33 + 13 * - + 92 + + 91 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL COALESCE ( COUNT ( * ), 33 + 13 * - + 92 + + 91 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT - - CASE 49 WHEN + + ( 75 ) THEN + - 53 - - NULLIF ( - 79, + 68 ) * + 30 + + - COUNT( * ) + + - 2 / 11 WHEN + COUNT( * ) + COALESCE ( - - 79, - 0 + - ( - - 23 ) * + ( + COUNT( * ) ) + 88 + + + 28 * - 74 ) THEN - 89 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT - - CASE 49 WHEN + + ( 75 ) THEN + - 53 - - NULLIF ( - 79, + 68 ) * + 30 + + - COUNT ( * ) + + - 2 / 11 WHEN + COUNT ( * ) + COALESCE ( - - 79, - 0 + - ( - - 23 ) * + ( + COUNT ( * ) ) + 88 + + + 28 * - 74 ) THEN - 89 END AS col2
----
NULL

query I rowsort
SELECT ALL - 38 + - 96
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT - - 33 - - 33 DIV 92 DIV - 14 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6046
SELECT - - 33 - - 33 / 92 / - 14 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6047
SELECT ALL CAST( + + 13 AS SIGNED ) * 28 + - 77 AS col1
----
287

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL CAST ( + + 13 AS INTEGER ) * 28 + - 77 AS col1
----
287

query I rowsort
SELECT DISTINCT - 89 * 89 * - 25 + 33
----
198058

query I rowsort
SELECT DISTINCT - 30 + - 44 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT DISTINCT + 19 + + COUNT( * ) * + - 98
----
-79

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT + 19 + + COUNT ( * ) * + - 98
----
-79

query I rowsort
SELECT + 82 - 11
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6052
SELECT DISTINCT 56 * + 22 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT 56 * + 22 / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + ( - NULLIF ( - 32, + + 27 ) ) AS col2
----
32

query I rowsort
SELECT DISTINCT 4 * 50
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6055
SELECT + COALESCE ( + MIN( DISTINCT + + COALESCE ( - 81, - 41 ) ), + 66 + - + 13 + 9 - - COALESCE ( + 81, + ( 88 ) ) * - - 49 ) * + - 97 / AVG ( 29 ) + 47 + + - CAST( NULL AS SIGNED ) AS col2, - 95 * 38 AS col0
----
NULL
-3610

skipif mysql # not compatible
query II rowsort label-6055
SELECT + COALESCE ( + MIN ( DISTINCT + + COALESCE ( - 81, - 41 ) ), + 66 + - + 13 + 9 - - COALESCE ( + 81, + ( 88 ) ) * - - 49 ) * + - 97 / AVG ( 29 ) + 47 + + - CAST ( NULL AS INTEGER ) AS col2, - 95 * 38 AS col0
----
NULL
-3610

query I rowsort
SELECT ALL + 85 * - + 61
----
-5185

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT 51 * + MAX( ALL + 88 ) * - + 58
----
-260304

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT 51 * + MAX ( ALL + 88 ) * - + 58
----
-260304

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT DISTINCT + COUNT( DISTINCT 45 ) * - ( + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT + COUNT ( DISTINCT 45 ) * - ( + 55 ) AS col2
----
-55

query I rowsort
SELECT - 80 + - 65
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT - 98 * + 67 * ( + COUNT( * ) ) col0
----
-6566

skipif mysql # not compatible
query I rowsort label-6060
SELECT - 98 * + 67 * ( + COUNT ( * ) ) col0
----
-6566

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL COUNT( * ) * + 53
----
53

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL COUNT ( * ) * + 53
----
53

query I rowsort
SELECT + ( - + 92 ) - - 76 + - 38 AS col0
----
-54

query I rowsort
SELECT + 85 + + 21
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-6064
SELECT NULLIF ( + + 17, + COUNT( * ) ) AS col0, - 15
----
17
-15

skipif mysql # not compatible
query II rowsort label-6064
SELECT NULLIF ( + + 17, + COUNT ( * ) ) AS col0, - 15
----
17
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL + CASE - 97 WHEN + 16 * - 53 + 68 THEN NULL WHEN - 21 THEN - COUNT( * ) * - - 33 - - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL + CASE - 97 WHEN + 16 * - 53 + 68 THEN NULL WHEN - 21 THEN - COUNT ( * ) * - - 33 - - + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT - 18 * + - MIN( ALL 42 ) + + 37
----
793

skipif mysql # not compatible
query I rowsort label-6066
SELECT - 18 * + - MIN ( ALL 42 ) + + 37
----
793

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6067
SELECT 32 * + CAST( 44 AS SIGNED ) + - + CAST( + 37 AS DECIMAL ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT 32 * + CAST ( 44 AS INTEGER ) + - + CAST ( + 37 AS REAL ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6068
SELECT NULLIF ( - 67, 29 / 2 + 13 ) AS col2, 10 * + + ( CAST( NULL AS SIGNED ) ) col2
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-6068
SELECT NULLIF ( - 67, 29 / 2 + 13 ) AS col2, 10 * + + ( CAST ( NULL AS INTEGER ) ) col2
----
-67
NULL

query I rowsort
SELECT ALL - 25 * + + 37 + - + 25 AS col2
----
-950

query I rowsort
SELECT ALL + NULLIF ( + + ( 79 ), - - 72 ) * 11 + + 80 AS col1
----
949

query I rowsort
SELECT - 55 - - 27 col2
----
-28

query II rowsort
SELECT DISTINCT + 61 AS col1, 13
----
61
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT ALL + 50 DIV - 35 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL + 50 / - 35 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT DISTINCT + 14 * - - CASE - + 82 WHEN - 94 + - - ( MAX( DISTINCT - 18 ) ) THEN 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT + 14 * - - CASE - + 82 WHEN - 94 + - - ( MAX ( DISTINCT - 18 ) ) THEN 19 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6075
SELECT DISTINCT + 42 * - + 90 * + + 51 * + - CAST( - - 33 AS SIGNED ) * CAST( NULL AS SIGNED ) + + + 91 * + - 99 * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT + 42 * - + 90 * + + 51 * + - CAST ( - - 33 AS INTEGER ) * CAST ( NULL AS INTEGER ) + + + 91 * + - 99 * + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT ALL - 51 * + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - 51 * + - COUNT ( * )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6077
SELECT ALL CAST( AVG ( - 11 ) AS SIGNED ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL CAST ( AVG ( - 11 ) AS INTEGER ) AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT - + ( + + 36 ) DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-6078
SELECT - + ( + + 36 ) / - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT ALL + 42 + + COALESCE ( COALESCE ( + 51, + + 25, + + ( - 3 ) * - - 38 ), CASE + - 98 WHEN + + 55 * + COUNT( * ) THEN - - 22 ELSE NULL END + 7 ) col0
----
93

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL + 42 + + COALESCE ( COALESCE ( + 51, + + 25, + + ( - 3 ) * - - 38 ), CASE + - 98 WHEN + + 55 * + COUNT ( * ) THEN - - 22 ELSE NULL END + 7 ) col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6080
SELECT - 3 + - CAST( - - 61 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-6080
SELECT - 3 + - CAST ( - - 61 AS INTEGER )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6081
SELECT - CASE COUNT( * ) WHEN + COALESCE ( - - 32, 86 ) THEN - 72 * - + SUM( + 93 ) WHEN + + 41 * CAST( + ( - CASE + 45 WHEN - COUNT( * ) * 79 * + ( + - 24 ) * + 13 + + - 32 + - 49 * 37 THEN + COALESCE ( + 94, + 6 ) + COUNT( * ) * 41 WHEN + 31 THEN NULL WHEN + + CASE - + 2 WHEN + - 84 THEN + 26 - + - NULLIF ( - 38, + - COALESCE ( ( - - 39 ), + 79 ) - - 24 ) + 36 + - - 83 * 48 ELSE NULL END THEN 99 ELSE + 52 END ) AS SIGNED ) THEN + 0 - + 87 / + ( COALESCE ( 6, - 23 ) + COUNT( DISTINCT + ( 91 ) ) ) END - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6081
SELECT - CASE COUNT ( * ) WHEN + COALESCE ( - - 32, 86 ) THEN - 72 * - + SUM ( + 93 ) WHEN + + 41 * CAST ( + ( - CASE + 45 WHEN - COUNT ( * ) * 79 * + ( + - 24 ) * + 13 + + - 32 + - 49 * 37 THEN + COALESCE ( + 94, + 6 ) + COUNT ( * ) * 41 WHEN + 31 THEN NULL WHEN + + CASE - + 2 WHEN + - 84 THEN + 26 - + - NULLIF ( - 38, + - COALESCE ( ( - - 39 ), + 79 ) - - 24 ) + 36 + - - 83 * 48 ELSE NULL END THEN 99 ELSE + 52 END ) AS INTEGER ) THEN + 0 - + 87 / + ( COALESCE ( 6, - 23 ) + COUNT ( DISTINCT + ( 91 ) ) ) END - 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT - COUNT( DISTINCT - - 34 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6082
SELECT - COUNT ( DISTINCT - - 34 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6083
SELECT ALL 10, 37 DIV + 90 AS col2
----
10
0

skipif mysql # not compatible
query II rowsort label-6083
SELECT ALL 10, 37 / + 90 AS col2
----
10
0

query I rowsort
SELECT - 30 + - - 1 + + - ( - NULLIF ( + - 28, - 61 ) ) * - + 34 * 24
----
22819

query I rowsort
SELECT ALL + - 66 + + 40 AS col2
----
-26

query II rowsort
SELECT ALL - COALESCE ( 12, + + 53 * - - 72 + 97 + + + 68 ) + 90 * + + 98 * ( + - 89 ) AS col1, - 96 col0
----
-784992
-96

query I rowsort
SELECT - + ( + 36 ) + + NULLIF ( + + 82, - NULLIF ( + 14, + 11 * + 73 + + 30 ) ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6088
SELECT + 89 * 70 + + 38 * COUNT( * ) * 0, + 61 AS col0
----
6230
61

skipif mysql # not compatible
query II rowsort label-6088
SELECT + 89 * 70 + + 38 * COUNT ( * ) * 0, + 61 AS col0
----
6230
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6089
SELECT + + CAST( 63 AS SIGNED ) + COUNT( * ) / - 92 * - CAST( NULL AS SIGNED ) / - + 88, - 55 AS col1
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-6089
SELECT + + CAST ( 63 AS INTEGER ) + COUNT ( * ) / - 92 * - CAST ( NULL AS INTEGER ) / - + 88, - 55 AS col1
----
NULL
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6090
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - ( - - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - ( - - 87 )
----
NULL

query I rowsort
SELECT ALL 86 * + NULLIF ( - + 35, 90 ) + - - 9 - 12
----
-3013

query I rowsort
SELECT - 95 * - 30 + + + ( 36 ) col1
----
2886

query II rowsort
SELECT ALL + 89 * + - 64, - ( + - 45 ) AS col1
----
-5696
45

query I rowsort
SELECT ALL + 26 * - 89 * 59 AS col0
----
-136526

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6095
SELECT ALL - 75, CAST( NULL AS SIGNED ) AS col0
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-6095
SELECT ALL - 75, CAST ( NULL AS INTEGER ) AS col0
----
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT COUNT( * ) + - ( - 56 )
----
57

skipif mysql # not compatible
query I rowsort label-6096
SELECT COUNT ( * ) + - ( - 56 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT DISTINCT 28 * + 18 * - COUNT( * ) AS col0
----
-504

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT 28 * + 18 * - COUNT ( * ) AS col0
----
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT ALL 92 DIV + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL 92 / + 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6099
SELECT 99 * 4 - - COALESCE ( - 44, + 46 * + 42 ) * 84 + + - MAX( ALL + 27 ) AS col0, - 63 - - 25 * + 44 * 31
----
-3327
34037

skipif mysql # not compatible
query II rowsort label-6099
SELECT 99 * 4 - - COALESCE ( - 44, + 46 * + 42 ) * 84 + + - MAX ( ALL + 27 ) AS col0, - 63 - - 25 * + 44 * 31
----
-3327
34037

query I rowsort
SELECT ALL ( 53 ) + + - 83
----
-30

query I rowsort
SELECT ALL 9 + ( + 61 ) + - 85 + + + 65 AS col2
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6102
SELECT 88 AS col0, CAST( NULL AS DECIMAL ) / 6 AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-6102
SELECT 88 AS col0, CAST ( NULL AS REAL ) / 6 AS col1
----
88
NULL

query I rowsort
SELECT ALL + 28 * + + 35
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL ( - 88 ) + 40 + + ( 32 ) - - COUNT( * ) * - COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL ( - 88 ) + 40 + + ( 32 ) - - COUNT ( * ) * - COUNT ( * ) AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT - 1 DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6105
SELECT - 1 / - 92 AS col2
----
0

query I rowsort
SELECT + 71 + + 62 col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT DISTINCT - MIN( ALL + + 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT - MIN ( ALL + + 82 )
----
-82

query II rowsort
SELECT 44 AS col0, + CASE - - 56 WHEN - 90 * - 86 THEN - 24 END * - 48 - + 82 + + + 73 / 33 * + 63 - - 87 col2
----
44
NULL

query I rowsort
SELECT ALL - + 27 - + 67
----
-94

query I rowsort
SELECT + 37 * - 12
----
-444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6111
SELECT + 51 * - + CAST( NULL AS SIGNED ) * - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT + 51 * - + CAST ( NULL AS INTEGER ) * - 84 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 33 AS col0, + 56
----
33
56

query I rowsort
SELECT - 17 - - 52 * - + 15 AS col1
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT MAX( + 5 ) - + - 77 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6114
SELECT MAX ( + 5 ) - + - 77 AS col2
----
82

query I rowsort
SELECT - + NULLIF ( 47, + + 77 ) AS col0
----
-47

query II rowsort
SELECT ALL + 75 AS col1, + 30 AS col2
----
75
30

query I rowsort
SELECT - 44 + + + ( - 71 ) col1
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6118
SELECT - 46 AS col1, 74 DIV COUNT( * )
----
-46
74

skipif mysql # not compatible
query II rowsort label-6118
SELECT - 46 AS col1, 74 / COUNT ( * )
----
-46
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6119
SELECT + CASE CASE - - 48 WHEN + - 39 - - 59 + + 66 + + 22 * 38 + + 18 THEN + + COUNT( - - CAST( + - 72 AS SIGNED ) ) WHEN - 45 + 1 * - + COUNT( * ) THEN NULL WHEN - 84 * - 52 THEN + 9 * + 27 - + 25 + - 63 * + + COUNT( * ) * - 70 + + 25 + 67 * 27 END WHEN + COUNT( - ( - 58 ) ) * CAST( 70 AS SIGNED ) * COUNT( * ) * - 6 + - - ( 90 ) + 22 * - 82 + + 93 / COUNT( * ) * 23 * + 29 - COUNT( * ) * 95 THEN COUNT( * ) WHEN + 1 / 21 + + 42 THEN 14 + 53 END * - 53 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT + CASE CASE - - 48 WHEN + - 39 - - 59 + + 66 + + 22 * 38 + + 18 THEN + + COUNT ( - - CAST ( + - 72 AS INTEGER ) ) WHEN - 45 + 1 * - + COUNT ( * ) THEN NULL WHEN - 84 * - 52 THEN + 9 * + 27 - + 25 + - 63 * + + COUNT ( * ) * - 70 + + 25 + 67 * 27 END WHEN + COUNT ( - ( - 58 ) ) * CAST ( 70 AS INTEGER ) * COUNT ( * ) * - 6 + - - ( 90 ) + 22 * - 82 + + 93 / COUNT ( * ) * 23 * + 29 - COUNT ( * ) * 95 THEN COUNT ( * ) WHEN + 1 / 21 + + 42 THEN 14 + 53 END * - 53 col0
----
NULL

query II rowsort
SELECT - 85 AS col2, + 74
----
-85
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6121
SELECT DISTINCT + 1 * ( - 49 ) DIV - MAX( ALL + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT + 1 * ( - 49 ) / - MAX ( ALL + 61 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6122
SELECT DISTINCT + 83, 92 + + MAX( DISTINCT + - 32 ) AS col1
----
83
60

skipif mysql # not compatible
query II rowsort label-6122
SELECT DISTINCT + 83, 92 + + MAX ( DISTINCT + - 32 ) AS col1
----
83
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6123
SELECT ( 35 ) DIV - + ( - 17 ) + + 88 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6123
SELECT ( 35 ) / - + ( - 17 ) + + 88 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT 0 * - - COUNT( * ) * 87
----
0

skipif mysql # not compatible
query I rowsort label-6124
SELECT 0 * - - COUNT ( * ) * 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT 3 + MAX( DISTINCT - 69 ) + 46 + - + 83 + 22 col2
----
-81

skipif mysql # not compatible
query I rowsort label-6125
SELECT 3 + MAX ( DISTINCT - 69 ) + 46 + - + 83 + 22 col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6126
SELECT ALL - ( - CAST( 78 AS SIGNED ) ) AS col2, + 40 AS col2
----
78
40

skipif mysql # not compatible
query II rowsort label-6126
SELECT ALL - ( - CAST ( 78 AS INTEGER ) ) AS col2, + 40 AS col2
----
78
40

query I rowsort
SELECT DISTINCT 15 + + 29 AS col2
----
44

query I rowsort
SELECT ALL 50 + 70
----
120

query I rowsort
SELECT ALL ( COALESCE ( - 69, - 30 ) ) + 56 - 22 + + 3 + + 32 * 39 AS col0
----
1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6130
SELECT DISTINCT + CASE - 51 WHEN - 45 THEN - CASE - 53 WHEN + ( - + 35 ) THEN ( - + 87 ) WHEN - 58 + + + 45 / + 64 THEN NULL ELSE - + 2 * + + 67 + + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) END - - 48 END * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT + CASE - 51 WHEN - 45 THEN - CASE - 53 WHEN + ( - + 35 ) THEN ( - + 87 ) WHEN - 58 + + + 45 / + 64 THEN NULL ELSE - + 2 * + + 67 + + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) END - - 48 END * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6131
SELECT DISTINCT 61 + - CASE 25 WHEN + + 42 THEN - 29 WHEN 1 + + - 9 THEN - CAST( COUNT( * ) AS SIGNED ) ELSE + ( + 28 ) END * + SUM( + 40 ) * 38 * 46 + - + COUNT( * ) AS col1
----
-1957700

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT 61 + - CASE 25 WHEN + + 42 THEN - 29 WHEN 1 + + - 9 THEN - CAST ( COUNT ( * ) AS INTEGER ) ELSE + ( + 28 ) END * + SUM ( + 40 ) * 38 * 46 + - + COUNT ( * ) AS col1
----
-1957700

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6132
SELECT COALESCE ( + 49, - 44, + - 97 ) + + 41 AS col1, MIN( + 24 ) DIV - - COUNT( * ) - - - 28
----
90
-4

skipif mysql # not compatible
query II rowsort label-6132
SELECT COALESCE ( + 49, - 44, + - 97 ) + + 41 AS col1, MIN ( + 24 ) / - - COUNT ( * ) - - - 28
----
90
-4

query I rowsort
SELECT ALL ( - + 67 ) * + - 41 AS col0
----
2747

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT COUNT( * ) + - 16 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6134
SELECT COUNT ( * ) + - 16 AS col1
----
-15

query I rowsort
SELECT 28 * + 85
----
2380

query I rowsort
SELECT 60 * + 1 + - ( 22 ) * + 90 AS col0
----
-1920

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6137
SELECT - CASE COUNT( - 95 ) WHEN - 29 / - 54 + - 58 THEN ( + 5 ) * - 55 ELSE NULL END * + + 38 + + 30 / + 61 + - CAST( 99 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT - CASE COUNT ( - 95 ) WHEN - 29 / - 54 + - 58 THEN ( + 5 ) * - 55 ELSE NULL END * + + 38 + + 30 / + 61 + - CAST ( 99 AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + 69 * 66 + + 71 + - 13 AS col1
----
4612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6139
SELECT ALL + COUNT( * ) - + 89 + + 57 + + 16 DIV 1 + - MAX( - COALESCE ( + + 1, + 37 ) ) + - 5 + - COUNT( * ) * + + MIN( 65 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL + COUNT ( * ) - + 89 + + 57 + + 16 / 1 + - MAX ( - COALESCE ( + + 1, + 37 ) ) + - 5 + - COUNT ( * ) * + + MIN ( 65 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT DISTINCT - - ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT - - ( + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT 85 - - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-6141
SELECT 85 - - COUNT ( * )
----
86

query I rowsort
SELECT + 26 * - 70 AS col1
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT DISTINCT - 57 * - COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT - 57 * - COUNT ( * ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT DISTINCT - MIN( DISTINCT + 82 ) * - 49 col1
----
4018

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT - MIN ( DISTINCT + 82 ) * - 49 col1
----
4018

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6145
SELECT DISTINCT 23 * - 53 AS col1, 43 + - 84 + - CAST( NULL AS DECIMAL )
----
-1219
NULL

skipif mysql # not compatible
query II rowsort label-6145
SELECT DISTINCT 23 * - 53 AS col1, 43 + - 84 + - CAST ( NULL AS REAL )
----
-1219
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT 24 + MIN( DISTINCT 46 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6146
SELECT 24 + MIN ( DISTINCT 46 ) AS col1
----
70

query I rowsort
SELECT + 1 + - 50 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT + 85 - 36 + - CASE + 86 WHEN - 37 + 3 THEN NULL WHEN + 65 / - - 92 THEN NULL WHEN + + CASE + 50 WHEN - CASE - + 74 WHEN - + 76 THEN NULL ELSE + 3 END THEN - - 90 + - + 15 WHEN 80 THEN + 89 + + 1 END + - 42 THEN - + 20 + + - 29 END * + 88 + + COALESCE ( + - 26, + + MAX( DISTINCT - - 32 ) + 89 ) + + + ( + 39 ) * + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT + 85 - 36 + - CASE + 86 WHEN - 37 + 3 THEN NULL WHEN + 65 / - - 92 THEN NULL WHEN + + CASE + 50 WHEN - CASE - + 74 WHEN - + 76 THEN NULL ELSE + 3 END THEN - - 90 + - + 15 WHEN 80 THEN + 89 + + 1 END + - 42 THEN - + 20 + + - 29 END * + 88 + + COALESCE ( + - 26, + + MAX ( DISTINCT - - 32 ) + 89 ) + + + ( + 39 ) * + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT ( ( + - 74 ) ) + - + MAX( - 9 ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-6149
SELECT ( ( + - 74 ) ) + - + MAX ( - 9 ) col0
----
-65

query I rowsort
SELECT + 98 + 43 - - 61
----
202

query I rowsort
SELECT ALL ( + - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6152
SELECT 34 / 46 + - CASE 71 WHEN - + 44 + - - COUNT( * ) THEN 63 + - + 33 END * + - 26 + - + 6 AS col1, 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-6152
SELECT 34 / 46 + - CASE 71 WHEN - + 44 + - - COUNT ( * ) THEN 63 + - + 33 END * + - 26 + - + 6 AS col1, 14
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT + ( 63 ) + - - 30 * 24 * 34 * NULLIF ( + COUNT( * ), + - 44 ) AS col2
----
24543

skipif mysql # not compatible
query I rowsort label-6153
SELECT + ( 63 ) + - - 30 * 24 * 34 * NULLIF ( + COUNT ( * ), + - 44 ) AS col2
----
24543

query I rowsort
SELECT - 65 + - 36 AS col2
----
-101

query I rowsort
SELECT ALL - 92 * - 83 + 20 AS col1
----
7656

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT ALL + - 44 + + 20 + + 7 + - 65 * + 51 * 30 * + 46 - + 19 DIV + + 83 * 17 + 55 AS col1
----
-4574662

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL + - 44 + + 20 + + 7 + - 65 * + 51 * 30 * + 46 - + 19 / + + 83 * 17 + 55 AS col1
----
-4574662

onlyif mysql # DIV for integer division: 
query I rowsort label-6157
SELECT DISTINCT 46 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT 46 / + 87
----
0

query I rowsort
SELECT - 57 + + 27
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL + COALESCE ( - NULLIF ( - 38, - - ( + 92 ) ), + COUNT( * ) ) * 23 * 79 + - 90 AS col1
----
68956

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL + COALESCE ( - NULLIF ( - 38, - - ( + 92 ) ), + COUNT ( * ) ) * 23 * 79 + - 90 AS col1
----
68956

query I rowsort
SELECT ALL - 72 + + - 84 * - 68 * + + 15
----
85608

query I rowsort
SELECT - NULLIF ( - 52, 44 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT - 51 + CASE 88 WHEN ( 57 ) * + 19 + + - 60 THEN + MIN( - COALESCE ( - 34, + 77 * 89 * + + ( 2 ) ) ) WHEN 4 THEN + 23 ELSE NULL END / - COUNT( + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT - 51 + CASE 88 WHEN ( 57 ) * + 19 + + - 60 THEN + MIN ( - COALESCE ( - 34, + 77 * 89 * + + ( 2 ) ) ) WHEN 4 THEN + 23 ELSE NULL END / - COUNT ( + 45 )
----
NULL

query I rowsort
SELECT ALL - 21 * 86 + - COALESCE ( 96, - - 6, - - 70 ) AS col0
----
-1902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6164
SELECT - COUNT( * ) + CAST( - COUNT( * ) AS SIGNED ), ( - + 86 ) AS col1
----
-2
-86

skipif mysql # not compatible
query II rowsort label-6164
SELECT - COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ), ( - + 86 ) AS col1
----
-2
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6165
SELECT DISTINCT 81 * + 42 + + - 35 + + + ( - 22 ) + CAST( NULL AS DECIMAL ) * - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT 81 * + 42 + + - 35 + + + ( - 22 ) + CAST ( NULL AS REAL ) * - 95 AS col1
----
NULL

query I rowsort
SELECT COALESCE ( 46, 14 + + 60 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT + SUM( ALL + 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6167
SELECT + SUM ( ALL + 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6168
SELECT COALESCE ( - CASE + COALESCE ( 82, 90 + + 43, - COALESCE ( - 19, + 65 ) ) WHEN - ( + + 53 ) + AVG ( - + 16 ) THEN SUM( 22 ) DIV 39 WHEN + 93 * 68 * 83 THEN NULL END, + 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6168
SELECT COALESCE ( - CASE + COALESCE ( 82, 90 + + 43, - COALESCE ( - 19, + 65 ) ) WHEN - ( + + 53 ) + AVG ( - + 16 ) THEN SUM ( 22 ) / 39 WHEN + 93 * 68 * 83 THEN NULL END, + 78 ) AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6169
SELECT + CAST( NULL AS SIGNED ) * - 72 + - COUNT( * ) + + 14 * 85 * 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT + CAST ( NULL AS INTEGER ) * - 72 + - COUNT ( * ) + + 14 * 85 * 51 AS col0
----
NULL

query I rowsort
SELECT + 37 * + 99 * - 42 * - 85 * - - 58
----
758460780

query II rowsort
SELECT NULLIF ( + 35, + COALESCE ( + NULLIF ( + 7, - 45 ), 43 + 93 ) ) AS col2, 86 + - - 34 + + 20 AS col2
----
35
140

query I rowsort
SELECT ALL NULLIF ( + + 33, - 42 * + + ( - - 76 ) ) * - 94 * - 33 + - - 18 - - 25 AS col1
----
102409

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL + ( + + MAX( - 30 ) ) col0
----
-30

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL + ( + + MAX ( - 30 ) ) col0
----
-30

query II rowsort
SELECT ALL + 3 AS col1, 16
----
3
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT + MIN( - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-6175
SELECT + MIN ( - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL - - COUNT( * ) * + 63 + + + 73 - - - 50 + - 61 * COUNT( * ) * + - 49 + 73
----
3148

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - - COUNT ( * ) * + 63 + + + 73 - - - 50 + - 61 * COUNT ( * ) * + - 49 + 73
----
3148

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT + - COUNT( - 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6177
SELECT + - COUNT ( - 19 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6178
SELECT DISTINCT + - NULLIF ( - 45, - CASE - - 80 WHEN + + 44 / + CAST( + 65 AS SIGNED ) + - COALESCE ( + - 4, CAST( NULL AS DECIMAL ) ) * - 84 / + 95 - - 17 THEN - - 32 * - COUNT( * ) + - - ( - COUNT( - 35 ) ) + ( 97 ) END )
----
45

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + - NULLIF ( - 45, - CASE - - 80 WHEN + + 44 / + CAST ( + 65 AS INTEGER ) + - COALESCE ( + - 4, CAST ( NULL AS REAL ) ) * - 84 / + 95 - - 17 THEN - - 32 * - COUNT ( * ) + - - ( - COUNT ( - 35 ) ) + ( 97 ) END )
----
45

query I rowsort
SELECT ALL - ( 83 ) AS col1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-6180
SELECT + 82 + + - ( + 71 ) DIV ( + - 91 )
----
82

skipif mysql # not compatible
query I rowsort label-6180
SELECT + 82 + + - ( + 71 ) / ( + - 91 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6181
SELECT DISTINCT + COALESCE ( - - 83, - 41 * + COUNT( * ) + CAST( + COALESCE ( - 10, + 20 ) AS SIGNED ) + + ( - 41 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT + COALESCE ( - - 83, - 41 * + COUNT ( * ) + CAST ( + COALESCE ( - 10, + 20 ) AS INTEGER ) + + ( - 41 ) ) AS col2
----
83

query I rowsort
SELECT ALL - ( + ( - 91 ) ) + + + 90 + - ( - 23 ) AS col2
----
204

onlyif mysql # aggregate syntax: 
query II rowsort label-6183
SELECT DISTINCT + 96 * + + 7 * + MAX( - 24 ) * + + ( 84 ) AS col1, + 98
----
-1354752
98

skipif mysql # not compatible
query II rowsort label-6183
SELECT DISTINCT + 96 * + + 7 * + MAX ( - 24 ) * + + ( 84 ) AS col1, + 98
----
-1354752
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT ALL MAX( ALL - + 21 ) + 53 * + MAX( DISTINCT + ( 47 ) )
----
2470

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL MAX ( ALL - + 21 ) + 53 * + MAX ( DISTINCT + ( 47 ) )
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT - COUNT( 78 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6185
SELECT - COUNT ( 78 ) AS col1
----
-1

query I rowsort
SELECT ALL 93 + 56 AS col1
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6187
SELECT ALL - 52 + + 8 + - 44 DIV - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - 52 + + 8 + - 44 / - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6188
SELECT DISTINCT 59, COUNT( * ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-6188
SELECT DISTINCT 59, COUNT ( * ) AS col0
----
59
1

query I rowsort
SELECT + - 71 - - 30 AS col2
----
-41

query I rowsort
SELECT + 45 + - - 64
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-6191
SELECT - ( + 85 ), + COUNT( * ) AS col0
----
-85
1

skipif mysql # not compatible
query II rowsort label-6191
SELECT - ( + 85 ), + COUNT ( * ) AS col0
----
-85
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6192
SELECT + 22 + 39 * - 35 + + + CASE WHEN NOT - 16 >= - + CAST( - 25 AS SIGNED ) THEN 99 WHEN NOT 89 * - 8 - - 25 IN ( + + ( + 25 ) / 50 * COUNT( * ) * - + ( - 1 ) + + 88 + - ( ( + ( 21 ) ) ) - + - 64, + 91, MIN( ALL 70 ) ) AND NULL BETWEEN 37 * + + 54 AND + - 0 THEN NULL END + - + 50 col0
----
-1294

skipif mysql # not compatible
query I rowsort label-6192
SELECT + 22 + 39 * - 35 + + + CASE WHEN NOT - 16 >= - + CAST ( - 25 AS INTEGER ) THEN 99 WHEN NOT 89 * - 8 - - 25 IN ( + + ( + 25 ) / 50 * COUNT ( * ) * - + ( - 1 ) + + 88 + - ( ( + ( 21 ) ) ) - + - 64, + 91, MIN ( ALL 70 ) ) AND NULL BETWEEN 37 * + + 54 AND + - 0 THEN NULL END + - + 50 col0
----
-1294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6193
SELECT ALL 33 + + 19 + - COUNT( * ) + - COUNT( * ) * 82 + + 17 + 64 * + 35 * - + 9 + - - ( + + 44 ) DIV - 47 AS col2
----
-20174

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL 33 + + 19 + - COUNT ( * ) + - COUNT ( * ) * 82 + + 17 + 64 * + 35 * - + 9 + - - ( + + 44 ) / - 47 AS col2
----
-20174

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT DISTINCT COUNT( ALL + 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT COUNT ( ALL + 36 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6195
SELECT - ( - - CAST( NULL AS SIGNED ) ) AS col0, 56 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-6195
SELECT - ( - - CAST ( NULL AS INTEGER ) ) AS col0, 56 AS col0
----
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL COUNT( * ) + + - 74 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL COUNT ( * ) + + - 74 AS col1
----
-73

query I rowsort
SELECT + 15 * - 50 col0
----
-750

onlyif mysql # DIV for integer division: 
query I rowsort label-6198
SELECT ALL + 95 DIV - 36 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL + 95 / - 36 AS col2
----
-2

query I rowsort
SELECT ALL - 41 + + 10
----
-31

query I rowsort
SELECT ALL ( + + 29 ) - - - ( 97 ) + - + 57
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6201
SELECT ALL ( + + 84 ) DIV - 89 * + 15 * - MAX( 22 ) * - - 78 + - + SUM( ALL 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL ( + + 84 ) / - 89 * + 15 * - MAX ( 22 ) * - - 78 + - + SUM ( ALL 53 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT + COUNT( * ) + - 32 + + 54 * + 74 + - 18 + ( + ( + 98 ) )
----
4045

skipif mysql # not compatible
query I rowsort label-6202
SELECT + COUNT ( * ) + - 32 + + 54 * + 74 + - 18 + ( + ( + 98 ) )
----
4045

query I rowsort
SELECT DISTINCT + COALESCE ( + 4, - + 84 + + 10, 59 + 65 )
----
4

query I rowsort
SELECT ALL - 6 * 38
----
-228

query I rowsort
SELECT - 25 * - 6 AS col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6206
SELECT ALL COUNT( * ) * 90 AS col1, + CAST( NULL AS SIGNED ) + - - 32 + - AVG ( ALL + + 1 )
----
90
NULL

skipif mysql # not compatible
query II rowsort label-6206
SELECT ALL COUNT ( * ) * 90 AS col1, + CAST ( NULL AS INTEGER ) + - - 32 + - AVG ( ALL + + 1 )
----
90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT ALL - 74 * + 60 * + + COUNT( - - 67 ) + - 88 + - 14 * + COUNT( * ) * 92
----
-5816

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL - 74 * + 60 * + + COUNT ( - - 67 ) + - 88 + - 14 * + COUNT ( * ) * 92
----
-5816

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT DISTINCT + - ( - - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT + - ( - - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT - 70 + 87
----
17

query I rowsort
SELECT - - 13 * + 9
----
117

query II rowsort
SELECT ( - 96 ) AS col1, 81 col1
----
-96
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6212
SELECT COUNT( * ) * 86 + 13 + 17 + + 21 * - 66 + - 35 * - 76 - + 96 AS col1, 24 * 65
----
1294
1560

skipif mysql # not compatible
query II rowsort label-6212
SELECT COUNT ( * ) * 86 + 13 + 17 + + 21 * - 66 + - 35 * - 76 - + 96 AS col1, 24 * 65
----
1294
1560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6213
SELECT ALL + 58 * - - CAST( + - MAX( - 19 ) AS SIGNED ) * - ( - 82 ) + + 35, + 85 AS col0
----
90399
85

skipif mysql # not compatible
query II rowsort label-6213
SELECT ALL + 58 * - - CAST ( + - MAX ( - 19 ) AS INTEGER ) * - ( - 82 ) + + 35, + 85 AS col0
----
90399
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL + - COUNT( * ) + - 87 + + 66 - + + 53 - + COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + - COUNT ( * ) + - 87 + + 66 - + + 53 - + COUNT ( * ) AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6215
SELECT DISTINCT - - CAST( - + 65 AS SIGNED ) + 29
----
-36

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT - - CAST ( - + 65 AS INTEGER ) + 29
----
-36

query I rowsort
SELECT DISTINCT - 25 * 93 - - 41 AS col0
----
-2284

onlyif mysql # aggregate syntax: 
query II rowsort label-6217
SELECT ALL - 67 + COUNT( * ) AS col1, 68 + 84
----
-66
152

skipif mysql # not compatible
query II rowsort label-6217
SELECT ALL - 67 + COUNT ( * ) AS col1, 68 + 84
----
-66
152

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT 63 + COUNT( 8 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6218
SELECT 63 + COUNT ( 8 ) AS col2
----
64

query I rowsort
SELECT ALL - 56 + + 95
----
39

query I rowsort
SELECT ALL + - 73 * 18
----
-1314

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT - 86 + - MIN( - 99 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6221
SELECT - 86 + - MIN ( - 99 ) AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6222
SELECT ALL - COUNT( * ) + + 41 + + 82 DIV + 63
----
41

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL - COUNT ( * ) + + 41 + + 82 / + 63
----
41

query I rowsort
SELECT 43 + + - 41 AS col0
----
2

query I rowsort
SELECT - 13 + - + 71 col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6225
SELECT 32 - - - 90 - + 29 / + COUNT( * ) * COUNT( * ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT 32 - - - 90 - + 29 / + COUNT ( * ) * COUNT ( * ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT ALL COUNT( * ) + - + 25 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL COUNT ( * ) + - + 25 AS col2
----
-24

query I rowsort
SELECT ALL - 9 + + 38
----
29

query I rowsort
SELECT ALL 86 * + 64
----
5504

query I rowsort
SELECT 48 + - + 98
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-6230
SELECT ALL 16 col0, - COUNT( * )
----
16
-1

skipif mysql # not compatible
query II rowsort label-6230
SELECT ALL 16 col0, - COUNT ( * )
----
16
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT COUNT( * ) * + SUM( DISTINCT + - 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6231
SELECT COUNT ( * ) * + SUM ( DISTINCT + - 92 ) AS col0
----
-92

query I rowsort
SELECT ( + - 82 ) * + 49 + + + ( - - 95 ) col0
----
-3923

onlyif mysql # aggregate syntax: 
query II rowsort label-6233
SELECT ALL - COUNT( * ), 59 AS col1
----
-1
59

skipif mysql # not compatible
query II rowsort label-6233
SELECT ALL - COUNT ( * ), 59 AS col1
----
-1
59

query II rowsort
SELECT ALL - 8 col1, - 81
----
-8
-81

query I rowsort
SELECT - 45 * - 64 AS col1
----
2880

query II rowsort
SELECT ALL - 73 AS col0, - 78 AS col2
----
-73
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT ALL + CAST( + - 19 AS SIGNED ) * - CAST( - CASE + - 4 WHEN ( 7 ) / - 96 * - + 48 + 13 THEN - - 9 / - SUM( ALL - - 12 ) + 52 ELSE NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL + CAST ( + - 19 AS INTEGER ) * - CAST ( - CASE + - 4 WHEN ( 7 ) / - 96 * - + 48 + 13 THEN - - 9 / - SUM ( ALL - - 12 ) + 52 ELSE NULL END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT - ( - NULLIF ( - 89, - COUNT( * ) + + - 88 ) ) / + 56 * + - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6238
SELECT - ( - NULLIF ( - 89, - COUNT ( * ) + + - 88 ) ) / + 56 * + - 43 AS col2
----
NULL

query I rowsort
SELECT 26 * + 39 * + - 15 + - 11 AS col0
----
-15221

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL - NULLIF ( + 26, - + MAX( + 2 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL - NULLIF ( + 26, - + MAX ( + 2 ) ) AS col0
----
-26

query I rowsort
SELECT ALL - 71 + + - 85 + + - 87 + - 3 * - 85
----
12

query I rowsort
SELECT + ( - 59 ) AS col2
----
-59

query I rowsort
SELECT 32 * + 97
----
3104

query I rowsort
SELECT 47 - - 81 AS col1
----
128

query I rowsort
SELECT DISTINCT + 68 + + 0 AS col1
----
68

query I rowsort
SELECT 11 * - 66
----
-726

onlyif mysql # aggregate syntax: 
query II rowsort label-6247
SELECT + 53 * MAX( 79 ), 42 AS col0
----
4187
42

skipif mysql # not compatible
query II rowsort label-6247
SELECT + 53 * MAX ( 79 ), 42 AS col0
----
4187
42

query I rowsort
SELECT DISTINCT + - 71 + + 62
----
-9

query I rowsort
SELECT ALL + 86 * 52
----
4472

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT + 20 * - COUNT( * ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-6250
SELECT + 20 * - COUNT ( * ) col0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6251
SELECT DISTINCT + CASE - - ( + 26 ) WHEN 38 THEN NULL ELSE - 79 + - COUNT( * ) DIV 50 END * - COUNT( DISTINCT 4 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT + CASE - - ( + 26 ) WHEN 38 THEN NULL ELSE - 79 + - COUNT ( * ) / 50 END * - COUNT ( DISTINCT 4 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6252
SELECT ALL COUNT( * ), 37 + 35 * + + 48 AS col2
----
1
1717

skipif mysql # not compatible
query II rowsort label-6252
SELECT ALL COUNT ( * ), 37 + 35 * + + 48 AS col2
----
1
1717

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT 39 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-6253
SELECT 39 / - 96
----
0

query II rowsort
SELECT DISTINCT 54 AS col2, + NULLIF ( - ( + - 76 ), - 56 + - 84 ) AS col2
----
54
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6255
SELECT ALL COUNT( * ) AS col0, 6 DIV 67 col0
----
1
0

skipif mysql # not compatible
query II rowsort label-6255
SELECT ALL COUNT ( * ) AS col0, 6 / 67 col0
----
1
0

query I rowsort
SELECT 29 + ( - - 62 ) AS col1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6257
SELECT 64 / - 3 * - 76 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6257
SELECT 64 / - 3 * - 76 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT CASE 92 WHEN AVG ( 74 ) + + + 30 * + - COUNT( - 95 ) * + COUNT( * ) THEN NULL WHEN + 56 THEN + + 38 ELSE NULL END * + 4 + + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT CASE 92 WHEN AVG ( 74 ) + + + 30 * + - COUNT ( - 95 ) * + COUNT ( * ) THEN NULL WHEN + 56 THEN + + 38 ELSE NULL END * + 4 + + - 76
----
NULL

query II rowsort
SELECT 34 AS col2, - 80
----
34
-80

query I rowsort
SELECT 48 + + - 67 + - 54 * + - 90
----
4841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6261
SELECT ALL COUNT( * ) AS col1, + CAST( 94 AS SIGNED )
----
1
94

skipif mysql # not compatible
query II rowsort label-6261
SELECT ALL COUNT ( * ) AS col1, + CAST ( 94 AS INTEGER )
----
1
94

query II rowsort
SELECT - 79 AS col2, - ( - 61 ) + + 19 * - 46 col2
----
-79
-813

query I rowsort
SELECT 73 - 66 * + + 56 + + 53 col1
----
-3570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6264
SELECT DISTINCT NULLIF ( - ( - CASE + COUNT( * ) WHEN COUNT( * ) * + 51 THEN NULL WHEN 56 * 40 THEN - 65 * CAST( ( - 76 ) AS SIGNED ) + - 97 END ), - + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT DISTINCT NULLIF ( - ( - CASE + COUNT ( * ) WHEN COUNT ( * ) * + 51 THEN NULL WHEN 56 * 40 THEN - 65 * CAST ( ( - 76 ) AS INTEGER ) + - 97 END ), - + 11 )
----
NULL

query I rowsort
SELECT ( + + 93 ) * 18 * + ( ( + 55 ) )
----
92070

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT 77 DIV + 63 + - 57 + ( 11 )
----
-45

skipif mysql # not compatible
query I rowsort label-6266
SELECT 77 / + 63 + - 57 + ( 11 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT COUNT( * ) + + + 1 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6267
SELECT COUNT ( * ) + + + 1 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6268
SELECT - - CAST( 53 AS SIGNED ) DIV + 11 - + MAX( ALL + + 74 )
----
-70

skipif mysql # not compatible
query I rowsort label-6268
SELECT - - CAST ( 53 AS INTEGER ) / + 11 - + MAX ( ALL + + 74 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL 94 * - + COUNT( * ) + 74 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL 94 * - + COUNT ( * ) + 74 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT - MAX( ALL + 46 ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-6270
SELECT - MAX ( ALL + 46 ) col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL - 60 * + 38 + + 82 * - 87 + - - ( - - COUNT( ALL - 34 ) ) * + 53 AS col2
----
-9361

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL - 60 * + 38 + + 82 * - 87 + - - ( - - COUNT ( ALL - 34 ) ) * + 53 AS col2
----
-9361

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL + COUNT( * ) * + 79 + + 45 + + + CASE - 17 WHEN + 73 * - + COUNT( ALL - 74 ) + + 90 THEN + 34 * + 39 - - COUNT( * ) WHEN - - COUNT( * ) + + 5 THEN NULL END + + 83 * + 87 - COALESCE ( + 53, - 36 ) * - - COUNT( * ) * - 92 / NULLIF ( + 63, 83 ) + COUNT( * ) * - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL + COUNT ( * ) * + 79 + + 45 + + + CASE - 17 WHEN + 73 * - + COUNT ( ALL - 74 ) + + 90 THEN + 34 * + 39 - - COUNT ( * ) WHEN - - COUNT ( * ) + + 5 THEN NULL END + + 83 * + 87 - COALESCE ( + 53, - 36 ) * - - COUNT ( * ) * - 92 / NULLIF ( + 63, 83 ) + COUNT ( * ) * - - 86
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6273
SELECT + + 70 AS col2, 71 DIV - 2
----
70
-35

skipif mysql # not compatible
query II rowsort label-6273
SELECT + + 70 AS col2, 71 / - 2
----
70
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-6274
SELECT ALL + 13 AS col0, COUNT( * )
----
13
1

skipif mysql # not compatible
query II rowsort label-6274
SELECT ALL + 13 AS col0, COUNT ( * )
----
13
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6275
SELECT - 2 DIV - NULLIF ( + 86, - 22 ) + + 12 * - 51
----
-612

skipif mysql # not compatible
query I rowsort label-6275
SELECT - 2 / - NULLIF ( + 86, - 22 ) + + 12 * - 51
----
-612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT ALL + 31 * - COUNT( * ) - CAST( MIN( DISTINCT 86 ) AS SIGNED ) - + 2 + - + 4 col2
----
-123

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + 31 * - COUNT ( * ) - CAST ( MIN ( DISTINCT 86 ) AS INTEGER ) - + 2 + - + 4 col2
----
-123

query I rowsort
SELECT + - 34 + 60 * 31 * + 65
----
120866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6278
SELECT + + 49 col1, 37 * - 59 DIV COUNT( * ) + + COALESCE ( CAST( + - 20 AS SIGNED ), 52, - 16 + + - COUNT( * ) ) + - - 96 DIV + 26
----
49
-2200

skipif mysql # not compatible
query II rowsort label-6278
SELECT + + 49 col1, 37 * - 59 / COUNT ( * ) + + COALESCE ( CAST ( + - 20 AS INTEGER ), 52, - 16 + + - COUNT ( * ) ) + - - 96 / + 26
----
49
-2200

query I rowsort
SELECT - + 53 - 97 col2
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6280
SELECT DISTINCT + 48 * + CASE + 37 WHEN + ( + 0 ) + + 91 THEN - - AVG ( ALL - CASE - 69 WHEN - NULLIF ( + 41, + ( - 20 ) ) + - + 18 + + + 8 * - + ( + + 25 ) THEN ( - 82 ) END ) WHEN CAST( NULL AS SIGNED ) - 30 + + 1 + - 30 * 11 THEN 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT + 48 * + CASE + 37 WHEN + ( + 0 ) + + 91 THEN - - AVG ( ALL - CASE - 69 WHEN - NULLIF ( + 41, + ( - 20 ) ) + - + 18 + + + 8 * - + ( + + 25 ) THEN ( - 82 ) END ) WHEN CAST ( NULL AS INTEGER ) - 30 + + 1 + - 30 * 11 THEN 36 END
----
NULL

query I rowsort
SELECT - ( + 35 ) * + 64 + - 98 + 68 + - 8 * + 40 col0
----
-2590

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT ALL + NULLIF ( - + NULLIF ( - + 80, + + 76 / 28 - + 36 * - COUNT( * ) * + - 9 ), COUNT( ALL - 91 ) ) * - + 52 + + - NULLIF ( 98, 3 ) AS col1
----
-4258

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL + NULLIF ( - + NULLIF ( - + 80, + + 76 / 28 - + 36 * - COUNT ( * ) * + - 9 ), COUNT ( ALL - 91 ) ) * - + 52 + + - NULLIF ( 98, 3 ) AS col1
----
-4258

onlyif mysql # aggregate syntax: 
query II rowsort label-6283
SELECT ALL + 15 * 83, COUNT( * ) AS col1
----
1245
1

skipif mysql # not compatible
query II rowsort label-6283
SELECT ALL + 15 * 83, COUNT ( * ) AS col1
----
1245
1

query I rowsort
SELECT + + ( - - 91 ) + + 34 * - 29 AS col2
----
-895

onlyif mysql # aggregate syntax: 
query II rowsort label-6285
SELECT ALL ( + - COUNT( + 93 ) ) * - - 44 AS col2, - 41 AS col2
----
-44
-41

skipif mysql # not compatible
query II rowsort label-6285
SELECT ALL ( + - COUNT ( + 93 ) ) * - - 44 AS col2, - 41 AS col2
----
-44
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT - 92 + - SUM( 14 )
----
-106

skipif mysql # not compatible
query I rowsort label-6286
SELECT - 92 + - SUM ( 14 )
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT - COUNT( * ) * - 3 + - 70 * + 53 AS col2
----
-3707

skipif mysql # not compatible
query I rowsort label-6287
SELECT - COUNT ( * ) * - 3 + - 70 * + 53 AS col2
----
-3707

query I rowsort
SELECT + 80 * + - 58 * 37 AS col2
----
-171680

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT + 56 + COUNT( * ) - - ( + + 35 )
----
92

skipif mysql # not compatible
query I rowsort label-6289
SELECT + 56 + COUNT ( * ) - - ( + + 35 )
----
92

query I rowsort
SELECT - 38 + + - 68 AS col0
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-6291
SELECT ALL - 74 DIV - NULLIF ( - 23, - 81 )
----
-3

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL - 74 / - NULLIF ( - 23, - 81 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6292
SELECT DISTINCT - 65 * CAST( NULL AS SIGNED ) * + - NULLIF ( - 36, + 66 * - 69 * - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - 65 * CAST ( NULL AS INTEGER ) * + - NULLIF ( - 36, + 66 * - 69 * - 44 )
----
NULL

query I rowsort
SELECT - 85 * - 43
----
3655

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT - 3 + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6294
SELECT - 3 + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6295
SELECT ALL - 74 DIV NULLIF ( + 51, + + 40 * COUNT( * ) DIV + + 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL - 74 / NULLIF ( + 51, + + 40 * COUNT ( * ) / + + 46 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6296
SELECT - 55 + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT - 55 + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 47 * - 49 * - 29
----
-66787

query I rowsort
SELECT DISTINCT ( - - 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT - COUNT( * ) * + + NULLIF ( + + 23, - 57 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-6299
SELECT - COUNT ( * ) * + + NULLIF ( + + 23, - 57 ) AS col0
----
-23

query I rowsort
SELECT + - 26 + - 43 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT DISTINCT - - 9 + + NULLIF ( - CASE + 32 WHEN - COUNT( * ) THEN 42 WHEN + 32 THEN NULL ELSE NULL END, + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT - - 9 + + NULLIF ( - CASE + 32 WHEN - COUNT ( * ) THEN 42 WHEN + 32 THEN NULL ELSE NULL END, + 49 )
----
NULL

query I rowsort
SELECT DISTINCT + ( - NULLIF ( 5, - - 11 * + - 54 + - - 16 * - 43 ) ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6303
SELECT - CAST( NULL AS SIGNED ) * - ( - ( 62 ) ) + + 36 + - 59 + 33 * - 97 * - - SUM( + 73 ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT - CAST ( NULL AS INTEGER ) * - ( - ( 62 ) ) + + 36 + - 59 + 33 * - 97 * - - SUM ( + 73 ) + - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL + COALESCE ( - - 33, - COUNT( * ) ) * + + 86
----
2838

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL + COALESCE ( - - 33, - COUNT ( * ) ) * + + 86
----
2838

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT - 37 DIV + ( + 72 ) + 42 + 42 DIV + 22
----
43

skipif mysql # not compatible
query I rowsort label-6305
SELECT - 37 / + ( + 72 ) + 42 + 42 / + 22
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT + 2 DIV 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6306
SELECT + 2 / 34 AS col1
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-6307
SELECT ( + 11 ) AS col2, + 12 * 42 + - + ( 65 ) + - 36 * - 2 * SUM( + 85 ) AS col1, - COUNT( * )
----
11
6559
-1

skipif mysql # not compatible
query III rowsort label-6307
SELECT ( + 11 ) AS col2, + 12 * 42 + - + ( 65 ) + - 36 * - 2 * SUM ( + 85 ) AS col1, - COUNT ( * )
----
11
6559
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL + - COUNT( ALL 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL + - COUNT ( ALL 18 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + ( COALESCE ( + + 42, - - 92 * + 76 * 54 ) )
----
42

query I rowsort
SELECT ALL 59 * 50 + - 59
----
2891

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT CASE - + 98 WHEN SUM( DISTINCT + 37 ) THEN - 53 ELSE - + 18 + - + 35 END col0
----
-53

skipif mysql # not compatible
query I rowsort label-6311
SELECT CASE - + 98 WHEN SUM ( DISTINCT + 37 ) THEN - 53 ELSE - + 18 + - + 35 END col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6312
SELECT + CAST( - + NULLIF ( COUNT( NULLIF ( 34, + 1 ) ), + 87 / + + 67 + - 57 + MAX( + + 37 ) ) AS SIGNED ) AS col1, 83 AS col2
----
-1
83

skipif mysql # not compatible
query II rowsort label-6312
SELECT + CAST ( - + NULLIF ( COUNT ( NULLIF ( 34, + 1 ) ), + 87 / + + 67 + - 57 + MAX ( + + 37 ) ) AS INTEGER ) AS col1, 83 AS col2
----
-1
83

query I rowsort
SELECT ALL 27 * + - 9
----
-243

query I rowsort
SELECT ALL 3 * + - 94 AS col0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT DISTINCT 62 * MIN( ALL + + ( 56 ) )
----
3472

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT 62 * MIN ( ALL + + ( 56 ) )
----
3472

query I rowsort
SELECT ALL 21 * - + 84 AS col1
----
-1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6317
SELECT - CAST( - 20 AS SIGNED ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-6317
SELECT - CAST ( - 20 AS INTEGER ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL CASE + COUNT( * ) WHEN - 17 * - - COUNT( * ) * + COUNT( * ) THEN NULL ELSE 91 * 54 + 14 + 50 * 72 + + 38 END
----
8566

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL CASE + COUNT ( * ) WHEN - 17 * - - COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE 91 * 54 + 14 + 50 * 72 + + 38 END
----
8566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT - CAST( - 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-6319
SELECT - CAST ( - 3 AS INTEGER )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6320
SELECT ALL CASE + 92 WHEN CAST( + 20 AS SIGNED ) * 89 THEN + 52 WHEN - - 31 * + - 40 THEN - + 26 + 55 - NULLIF ( - 46, - + 57 ) + + 22 WHEN - 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL CASE + 92 WHEN CAST ( + 20 AS INTEGER ) * 89 THEN + 52 WHEN - - 31 * + - 40 THEN - + 26 + 55 - NULLIF ( - 46, - + 57 ) + + 22 WHEN - 13 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 98 * - 21 + 3
----
-2055

query I rowsort
SELECT - 97 * 75 * + - ( ( + 17 ) )
----
123675

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6323
SELECT COUNT( * ) AS col1, 20 DIV ( - COUNT( * ) ) DIV - COUNT( + 91 ) + + + COALESCE ( + 88, - 47, + + 38 ) - + 24 * 62
----
1
-1380

skipif mysql # not compatible
query II rowsort label-6323
SELECT COUNT ( * ) AS col1, 20 / ( - COUNT ( * ) ) / - COUNT ( + 91 ) + + + COALESCE ( + 88, - 47, + + 38 ) - + 24 * 62
----
1
-1380

query I rowsort
SELECT ALL 61 + - + 13 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT + SUM( DISTINCT + + 12 ) + 8 - + + 57
----
-37

skipif mysql # not compatible
query I rowsort label-6325
SELECT + SUM ( DISTINCT + + 12 ) + 8 - + + 57
----
-37

query I rowsort
SELECT + 61 * ( 26 )
----
1586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6327
SELECT CAST( - 4 AS SIGNED ) + + ( - 31 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-6327
SELECT CAST ( - 4 AS INTEGER ) + + ( - 31 ) AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6328
SELECT DISTINCT - COUNT( * ) DIV - + 82
----
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT - COUNT ( * ) / - + 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6329
SELECT COUNT( ALL + 54 ) + + 97, 1 AS col0
----
98
1

skipif mysql # not compatible
query II rowsort label-6329
SELECT COUNT ( ALL + 54 ) + + 97, 1 AS col0
----
98
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6330
SELECT ALL - - ( - COUNT( * ) ) + ( + 30 ) + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL - - ( - COUNT ( * ) ) + ( + 30 ) + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 88 + 17 + - + 74
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6332
SELECT ALL - 39 - - COALESCE ( + COUNT( * ), 17 + - + CASE + + MAX( - + 76 ) WHEN + ( + + COALESCE ( 23, - 66 * + - 65 - + CAST( NULL AS SIGNED ) ) ) * COALESCE ( + 81, - - 38 * - 45 ) - + 28 / - 73 + + CASE + 18 WHEN - COUNT( * ) + - 83 * - 28 THEN 97 ELSE NULL END THEN + 85 ELSE 49 * - 98 END ) + 81 + + 67
----
110

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL - 39 - - COALESCE ( + COUNT ( * ), 17 + - + CASE + + MAX ( - + 76 ) WHEN + ( + + COALESCE ( 23, - 66 * + - 65 - + CAST ( NULL AS INTEGER ) ) ) * COALESCE ( + 81, - - 38 * - 45 ) - + 28 / - 73 + + CASE + 18 WHEN - COUNT ( * ) + - 83 * - 28 THEN 97 ELSE NULL END THEN + 85 ELSE 49 * - 98 END ) + 81 + + 67
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT - - MAX( 1 )
----
1

skipif mysql # not compatible
query I rowsort label-6333
SELECT - - MAX ( 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT CASE - 84 WHEN 81 * - CAST( NULL AS SIGNED ) THEN + - 94 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT CASE - 84 WHEN 81 * - CAST ( NULL AS INTEGER ) THEN + - 94 END AS col2
----
NULL

query II rowsort
SELECT 76 * - ( + - 58 ) AS col1, + 90 AS col2
----
4408
90

onlyif mysql # aggregate syntax: 
query II rowsort label-6336
SELECT + 33 AS col0, 2 * + - 11 - + + NULLIF ( + 27, + - SUM( DISTINCT 14 ) ) AS col0
----
33
-49

skipif mysql # not compatible
query II rowsort label-6336
SELECT + 33 AS col0, 2 * + - 11 - + + NULLIF ( + 27, + - SUM ( DISTINCT 14 ) ) AS col0
----
33
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT - 35 DIV - 77 - + 75
----
-75

skipif mysql # not compatible
query I rowsort label-6337
SELECT - 35 / - 77 - + 75
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6338
SELECT DISTINCT + + 64 DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT + + 64 / - 90 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6339
SELECT ALL + 98 DIV ( - - 14 ) AS col0, 12 col2
----
7
12

skipif mysql # not compatible
query II rowsort label-6339
SELECT ALL + 98 / ( - - 14 ) AS col0, 12 col2
----
7
12

query I rowsort
SELECT 56 * + 22 * + 63
----
77616

query I rowsort
SELECT - 91 * 2 * 98
----
-17836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6342
SELECT + 4 + CAST( NULL AS SIGNED ) + ( + - COUNT( * ) ) + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT + 4 + CAST ( NULL AS INTEGER ) + ( + - COUNT ( * ) ) + 87
----
NULL

query I rowsort
SELECT + + ( + + 59 ) AS col2
----
59

query I rowsort
SELECT 66 + NULLIF ( + 55, + 96 ) AS col2
----
121

query I rowsort
SELECT 25 * + 72
----
1800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6346
SELECT 29 + 88, CASE - 31 WHEN - - 86 + 87 + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) + - 91 * 67 * 95 THEN NULL WHEN - 2 THEN NULL WHEN - ( + + CAST( 17 AS DECIMAL ) ) * COUNT( * ) THEN + + 85 * 34 * 19 ELSE NULL END AS col0
----
117
NULL

skipif mysql # not compatible
query II rowsort label-6346
SELECT 29 + 88, CASE - 31 WHEN - - 86 + 87 + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) + - 91 * 67 * 95 THEN NULL WHEN - 2 THEN NULL WHEN - ( + + CAST ( 17 AS REAL ) ) * COUNT ( * ) THEN + + 85 * 34 * 19 ELSE NULL END AS col0
----
117
NULL

query I rowsort
SELECT - 26 * + 15 + + ( + 26 ) col0
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT 48 + - COALESCE ( ( + COUNT( DISTINCT + 90 ) ), + ( - 85 ) )
----
47

skipif mysql # not compatible
query I rowsort label-6348
SELECT 48 + - COALESCE ( ( + COUNT ( DISTINCT + 90 ) ), + ( - 85 ) )
----
47

query I rowsort
SELECT ALL 74 + + 74 AS col2
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-6350
SELECT DISTINCT 20 DIV + 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT 20 / + 78 col0
----
0

query I rowsort
SELECT ( 80 ) + - 75 * + 31
----
-2245

onlyif mysql # aggregate syntax: 
query II rowsort label-6352
SELECT MIN( ALL + 24 ) * + COUNT( * ) * 57 col1, - 7
----
1368
-7

skipif mysql # not compatible
query II rowsort label-6352
SELECT MIN ( ALL + 24 ) * + COUNT ( * ) * 57 col1, - 7
----
1368
-7

query I rowsort
SELECT ALL 14 + 61
----
75

query I rowsort
SELECT 73 * ( + 42 ) AS col1
----
3066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6355
SELECT COUNT( * ) + - 48 + 50 * + COUNT( * ) + - 75 + + + 87 * - CASE - - COUNT( * ) WHEN + - ( + 13 ) THEN - + CAST( NULL AS SIGNED ) END * - 74 AS col1, MIN( DISTINCT + 21 ) * 28 + + NULLIF ( + + 2, NULLIF ( - 83, + 95 * COUNT( * ) + - - 42 + + - 80 ) )
----
NULL
590

skipif mysql # not compatible
query II rowsort label-6355
SELECT COUNT ( * ) + - 48 + 50 * + COUNT ( * ) + - 75 + + + 87 * - CASE - - COUNT ( * ) WHEN + - ( + 13 ) THEN - + CAST ( NULL AS INTEGER ) END * - 74 AS col1, MIN ( DISTINCT + 21 ) * 28 + + NULLIF ( + + 2, NULLIF ( - 83, + 95 * COUNT ( * ) + - - 42 + + - 80 ) )
----
NULL
590

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL COALESCE ( + + SUM( 98 ), + 75 ) + 0
----
98

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL COALESCE ( + + SUM ( 98 ), + 75 ) + 0
----
98

query I rowsort
SELECT ( + ( 22 ) ) * - 80 AS col1
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL 19 * + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL 19 * + COUNT ( * ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-6359
SELECT ALL - 43 - - - 29 + + COUNT( * ) + 32 AS col0, 81 AS col2
----
-39
81

skipif mysql # not compatible
query II rowsort label-6359
SELECT ALL - 43 - - - 29 + + COUNT ( * ) + 32 AS col0, 81 AS col2
----
-39
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6360
SELECT ALL - + 99 - + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL - + 99 - + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6361
SELECT COUNT( * ) DIV - + 20 + - 48 - + SUM( + 0 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6361
SELECT COUNT ( * ) / - + 20 + - 48 - + SUM ( + 0 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL MAX( ALL 51 ) * COUNT( * ) + 55 col1
----
106

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL MAX ( ALL 51 ) * COUNT ( * ) + 55 col1
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6363
SELECT 50 DIV - 5 AS col2, COALESCE ( - + CAST( + 34 AS SIGNED ), + 37, + 48 ) AS col2, - + COUNT( * )
----
-10
-34
-1

skipif mysql # not compatible
query III rowsort label-6363
SELECT 50 / - 5 AS col2, COALESCE ( - + CAST ( + 34 AS INTEGER ), + 37, + 48 ) AS col2, - + COUNT ( * )
----
-10
-34
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6364
SELECT - ( - SUM( 35 ) ) DIV - - 23, 59 AS col1
----
1
59

skipif mysql # not compatible
query II rowsort label-6364
SELECT - ( - SUM ( 35 ) ) / - - 23, 59 AS col1
----
1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT + 78 * 17 * - MAX( - 38 ) + + 51
----
50439

skipif mysql # not compatible
query I rowsort label-6365
SELECT + 78 * 17 * - MAX ( - 38 ) + + 51
----
50439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6366
SELECT 39 * ( 77 ) / CAST( NULL AS SIGNED ) + - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT 39 * ( 77 ) / CAST ( NULL AS INTEGER ) + - 36 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6367
SELECT DISTINCT COUNT( * ) * + + 6 * 60 + + CAST( + + 61 AS SIGNED ) + 29
----
450

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT COUNT ( * ) * + + 6 * 60 + + CAST ( + + 61 AS INTEGER ) + 29
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT ALL - COALESCE ( - COUNT( * ), + - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL - COALESCE ( - COUNT ( * ), + - 74 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT DISTINCT - 6 DIV + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT - 6 / + 55 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6370
SELECT DISTINCT - NULLIF ( + - ( + + 15 ), + 16 * 60 ) + - 17 * + - CAST( NULL AS SIGNED ) * - + 97, + 42 AS col0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-6370
SELECT DISTINCT - NULLIF ( + - ( + + 15 ), + 16 * 60 ) + - 17 * + - CAST ( NULL AS INTEGER ) * - + 97, + 42 AS col0
----
NULL
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6371
SELECT ALL - NULLIF ( - 45, - 53 ), + ( + AVG ( 35 ) ) - + 62 + 14 * - CAST( NULL AS SIGNED ) col1
----
45
NULL

skipif mysql # not compatible
query II rowsort label-6371
SELECT ALL - NULLIF ( - 45, - 53 ), + ( + AVG ( 35 ) ) - + 62 + 14 * - CAST ( NULL AS INTEGER ) col1
----
45
NULL

query I rowsort
SELECT 83 * + - 88 AS col1
----
-7304

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT + 40 * - 31 - + 83 + MAX( - 44 ) * - 39 + - 45 * - - 20
----
-507

skipif mysql # not compatible
query I rowsort label-6373
SELECT + 40 * - 31 - + 83 + MAX ( - 44 ) * - 39 + - 45 * - - 20
----
-507

query I rowsort
SELECT DISTINCT + 43 * - + 49 * - 10
----
21070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6375
SELECT - COALESCE ( 83, - ( + 15 ) ) * NULLIF ( + CAST( NULL AS SIGNED ), + - 69 * + 58 + - ( + SUM( - 42 ) ) + - - 71 * 48 ) * + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT - COALESCE ( 83, - ( + 15 ) ) * NULLIF ( + CAST ( NULL AS INTEGER ), + - 69 * + 58 + - ( + SUM ( - 42 ) ) + - - 71 * 48 ) * + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT ALL COUNT( * ) + ( - 54 )
----
-53

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL COUNT ( * ) + ( - 54 )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6377
SELECT DISTINCT + 43 * - 94 DIV - COUNT( * )
----
4042

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT + 43 * - 94 / - COUNT ( * )
----
4042

query I rowsort
SELECT ALL + 25 * - - 42 AS col2
----
1050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6379
SELECT DISTINCT - 71 - + CAST( + 34 AS SIGNED ) AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT - 71 - + CAST ( + 34 AS INTEGER ) AS col0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6380
SELECT - CAST( NULL AS SIGNED ) + - ( - 98 - + COALESCE ( 97, COUNT( * ), 12 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT - CAST ( NULL AS INTEGER ) + - ( - 98 - + COALESCE ( 97, COUNT ( * ), 12 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT + 60 * SUM( ALL 5 ) AS col1
----
300

skipif mysql # not compatible
query I rowsort label-6381
SELECT + 60 * SUM ( ALL 5 ) AS col1
----
300

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT ALL ( 7 ) DIV 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL ( 7 ) / 50 AS col1
----
0

query I rowsort
SELECT - COALESCE ( - ( + 37 ), 72 * 30 ) + 70 AS col1
----
107

query I rowsort
SELECT + 6 + - 64
----
-58

query I rowsort
SELECT - NULLIF ( - 62, 89 * - 79 + + 92 ) AS col2
----
62

query I rowsort
SELECT ALL 18 * + 63
----
1134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT + 24 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT + 24 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT ALL - 81 DIV 2
----
-40

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL - 81 / 2
----
-40

query I rowsort
SELECT ALL ( - 19 ) * 82 AS col2
----
-1558

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT - NULLIF ( + 10, 80 + COUNT( * ) * 16 )
----
-10

skipif mysql # not compatible
query I rowsort label-6390
SELECT - NULLIF ( + 10, 80 + COUNT ( * ) * 16 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + MAX( 89 ) + + COALESCE ( 45, COUNT( * ) ) AS col0
----
134

skipif mysql # not compatible
query I rowsort label-6391
SELECT + MAX ( 89 ) + + COALESCE ( 45, COUNT ( * ) ) AS col0
----
134

query I rowsort
SELECT + 64 * - COALESCE ( 8, 33 )
----
-512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6393
SELECT + NULLIF ( COALESCE ( ( + 52 ), - 81 ), - CAST( NULL AS SIGNED ) + 10 * 28 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6393
SELECT + NULLIF ( COALESCE ( ( + 52 ), - 81 ), - CAST ( NULL AS INTEGER ) + 10 * 28 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT ( NULLIF ( 73, + COUNT( ALL 41 ) * 9 ) ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-6394
SELECT ( NULLIF ( 73, + COUNT ( ALL 41 ) * 9 ) ) AS col0
----
73

query I rowsort
SELECT - ( 55 ) * - 23
----
1265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6396
SELECT DISTINCT 5 * CAST( NULL AS SIGNED ) + - 26 * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT 5 * CAST ( NULL AS INTEGER ) + - 26 * 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6397
SELECT ALL - 64 * - 48 + CAST( 33 AS SIGNED )
----
3105

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL - 64 * - 48 + CAST ( 33 AS INTEGER )
----
3105

query I rowsort
SELECT ( - ( - 93 ) )
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6399
SELECT ALL 18 * 64 + 64 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL 18 * 64 + 64 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + ( + 61 ) - - 84 * 54
----
4597

query I rowsort
SELECT DISTINCT - 48 * + 69 + 13 AS col1
----
-3299

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT ALL COUNT( * ) * - 79 + - 71 * - 73
----
5104

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL COUNT ( * ) * - 79 + - 71 * - 73
----
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT DISTINCT 92 * - 17 + - COUNT( * )
----
-1565

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT 92 * - 17 + - COUNT ( * )
----
-1565

query I rowsort
SELECT ALL 45 * 23 AS col0
----
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT + 68 + + ( + 11 ) * + NULLIF ( 97 + 22, - NULLIF ( + 76, - 27 * COUNT( * ) ) )
----
1377

skipif mysql # not compatible
query I rowsort label-6405
SELECT + 68 + + ( + 11 ) * + NULLIF ( 97 + 22, - NULLIF ( + 76, - 27 * COUNT ( * ) ) )
----
1377

query I rowsort
SELECT + ( - 4 ) AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6407
SELECT + 73 * COUNT( * ) + + 32 DIV 79
----
73

skipif mysql # not compatible
query I rowsort label-6407
SELECT + 73 * COUNT ( * ) + + 32 / 79
----
73

query I rowsort
SELECT - ( 33 ) - 42 AS col2
----
-75

query I rowsort
SELECT - 9 * 3
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT 57 * + ( - 14 ) + ( - COUNT( * ) ) AS col1
----
-799

skipif mysql # not compatible
query I rowsort label-6410
SELECT 57 * + ( - 14 ) + ( - COUNT ( * ) ) AS col1
----
-799

query I rowsort
SELECT - 26 - - 83
----
57

query I rowsort
SELECT ALL 4 * + 75 + 36
----
336

query I rowsort
SELECT ALL + COALESCE ( - 45, - 95 * - 90 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT - ( + 44 ) + + MIN( + 81 )
----
37

skipif mysql # not compatible
query I rowsort label-6414
SELECT - ( + 44 ) + + MIN ( + 81 )
----
37

query I rowsort
SELECT ALL 2 * + 61 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT - ( NULLIF ( + 77, - COUNT( * ) + + 51 * + 15 ) ) + 86
----
9

skipif mysql # not compatible
query I rowsort label-6416
SELECT - ( NULLIF ( + 77, - COUNT ( * ) + + 51 * + 15 ) ) + 86
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6417
SELECT - 73 * CASE ( CAST( NULL AS SIGNED ) ) WHEN - 85 THEN 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT - 73 * CASE ( CAST ( NULL AS INTEGER ) ) WHEN - 85 THEN 39 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT ALL - CASE 45 WHEN 81 THEN NULL ELSE + 86 END DIV ( - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL - CASE 45 WHEN 81 THEN NULL ELSE + 86 END / ( - 59 )
----
1

query I rowsort
SELECT - 90 + - 91 AS col0
----
-181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6420
SELECT ALL + CAST( - 25 AS SIGNED ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + CAST ( - 25 AS INTEGER ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT - COUNT( * ) * 7 + 98
----
91

skipif mysql # not compatible
query I rowsort label-6421
SELECT - COUNT ( * ) * 7 + 98
----
91

query I rowsort
SELECT - 55 + - 3 AS col2
----
-58

query I rowsort
SELECT ALL + + 20 * 18
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT + + NULLIF ( - 0, + 82 ) + COALESCE ( 75, 58, + COUNT( 49 ) * - 36 )
----
75

skipif mysql # not compatible
query I rowsort label-6424
SELECT + + NULLIF ( - 0, + 82 ) + COALESCE ( 75, 58, + COUNT ( 49 ) * - 36 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6425
SELECT - 3 * CAST( - SUM( - 75 ) * - 78 AS SIGNED ) AS col0
----
17550

skipif mysql # not compatible
query I rowsort label-6425
SELECT - 3 * CAST ( - SUM ( - 75 ) * - 78 AS INTEGER ) AS col0
----
17550

query I rowsort
SELECT DISTINCT - + 45 * 89
----
-4005

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT - + 97 * CASE - 72 WHEN - 92 THEN 27 WHEN - COUNT( 99 ) * - 63 THEN NULL ELSE 24 + 91 END
----
-11155

skipif mysql # not compatible
query I rowsort label-6427
SELECT - + 97 * CASE - 72 WHEN - 92 THEN 27 WHEN - COUNT ( 99 ) * - 63 THEN NULL ELSE 24 + 91 END
----
-11155

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6428
SELECT ALL - + CAST( NULL AS DECIMAL ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL - + CAST ( NULL AS REAL ) * 1
----
NULL

query I rowsort
SELECT DISTINCT - 58 * - 29
----
1682

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT + - NULLIF ( + 56, 3 ) DIV 4 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-6430
SELECT + - NULLIF ( + 56, 3 ) / 4 AS col1
----
-14

query I rowsort
SELECT - 19 + - 72 col2
----
-91

query I rowsort
SELECT - - 70 * 25
----
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT - COALESCE ( - 5, + COUNT( * ), + 43 * - 45 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6433
SELECT - COALESCE ( - 5, + COUNT ( * ), + 43 * - 45 ) AS col1
----
5

query I rowsort
SELECT + 2 + 30
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT DISTINCT - ( - 51 ) + COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT - ( - 51 ) + COUNT ( * ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT ALL - 15 + 24 * + MAX( ALL - 38 * + 66 )
----
-60207

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL - 15 + 24 * + MAX ( ALL - 38 * + 66 )
----
-60207

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT 51 DIV + + 31 + - 28 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-6437
SELECT 51 / + + 31 + - 28 AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6438
SELECT DISTINCT - 4 DIV - COUNT( * ) + - 29 DIV + 71 col0
----
4

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT - 4 / - COUNT ( * ) + - 29 / + 71 col0
----
4

query I rowsort
SELECT ALL 69 * - 6 AS col1
----
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT + ( - 6 ) + COUNT( * ) * + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-6440
SELECT + ( - 6 ) + COUNT ( * ) * + COUNT ( * )
----
-5

query I rowsort
SELECT + NULLIF ( - 42, AVG ( 45 ) + 62 ) AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6442
SELECT ALL CASE - NULLIF ( 6, - 64 + + 42 / - 57 ) WHEN ( - CAST( - COUNT( * ) AS SIGNED ) ) + 86 / + 31 THEN NULL WHEN - 8 * CAST( NULL AS SIGNED ) THEN + 83 END / + CASE 5 WHEN - 9 * + ( 43 ) THEN 56 * - 82 + 94 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL CASE - NULLIF ( 6, - 64 + + 42 / - 57 ) WHEN ( - CAST ( - COUNT ( * ) AS INTEGER ) ) + 86 / + 31 THEN NULL WHEN - 8 * CAST ( NULL AS INTEGER ) THEN + 83 END / + CASE 5 WHEN - 9 * + ( 43 ) THEN 56 * - 82 + 94 END + COUNT ( * )
----
NULL

query I rowsort
SELECT 63 * 36 col2
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT CASE + - 13 WHEN + MAX( + 87 ) THEN - COUNT( * ) * + 68 ELSE NULL END * + 41 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT CASE + - 13 WHEN + MAX ( + 87 ) THEN - COUNT ( * ) * + 68 ELSE NULL END * + 41 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT 8 + COUNT( 79 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6445
SELECT 8 + COUNT ( 79 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL - COUNT( + 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL - COUNT ( + 10 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6447
SELECT ALL 55 DIV - + 62 * 45
----
0

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL 55 / - + 62 * 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT DISTINCT - CASE - MIN( 52 ) WHEN - AVG ( ALL + 1 ) THEN + 65 WHEN + 81 / 54 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT - CASE - MIN ( 52 ) WHEN - AVG ( ALL + 1 ) THEN + 65 WHEN + 81 / 54 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 90 * - 71
----
-6390

query I rowsort
SELECT + CASE + CASE + 68 WHEN + 63 THEN 56 END WHEN 57 THEN 21 * 47 - 15 / 90 END * 71 - 61
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT 27 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT 27 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT MAX( - + 50 ) - 68 * + 53
----
-3654

skipif mysql # not compatible
query I rowsort label-6452
SELECT MAX ( - + 50 ) - 68 * + 53
----
-3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6453
SELECT - 1 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6453
SELECT - 1 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 5 * 0 - 63
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6455
SELECT DISTINCT + 71 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT + 71 / 97 AS col0
----
0

query I rowsort
SELECT ( + - 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT COUNT( DISTINCT - - 12 )
----
1

skipif mysql # not compatible
query I rowsort label-6457
SELECT COUNT ( DISTINCT - - 12 )
----
1

query I rowsort
SELECT DISTINCT + 38 + - - 82 + - 24 * - 57 AS col0
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL - 79 + - 95 + COUNT( * ) AS col2
----
-173

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL - 79 + - 95 + COUNT ( * ) AS col2
----
-173

query I rowsort
SELECT + 8 + + 71 AS col0
----
79

query I rowsort
SELECT 48 + - 4 + + 83 AS col0
----
127

query I rowsort
SELECT DISTINCT + ( - + 96 ) AS col0
----
-96

query I rowsort
SELECT DISTINCT - + ( + + 77 ) + + 92
----
15

query I rowsort
SELECT ALL 88 + + 89
----
177

query I rowsort
SELECT ALL - - 8 * - 25 * 66 AS col2
----
-13200

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT MAX( COALESCE ( - 96, + 6 ) ) + - 70 AS col1
----
-166

skipif mysql # not compatible
query I rowsort label-6466
SELECT MAX ( COALESCE ( - 96, + 6 ) ) + - 70 AS col1
----
-166

query II rowsort
SELECT 51 AS col2, 71
----
51
71

query I rowsort
SELECT 57 * 60 * + 28 AS col0
----
95760

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT MAX( - COALESCE ( + + 56, 54 ) ) * 23
----
-1288

skipif mysql # not compatible
query I rowsort label-6469
SELECT MAX ( - COALESCE ( + + 56, 54 ) ) * 23
----
-1288

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT MAX( + - NULLIF ( + 59, + 29 ) ) * 62 + 63 * - 77 AS col1
----
-8509

skipif mysql # not compatible
query I rowsort label-6470
SELECT MAX ( + - NULLIF ( + 59, + 29 ) ) * 62 + 63 * - 77 AS col1
----
-8509

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6471
SELECT MIN( - 31 ) DIV - 32 + - 68
----
-68

skipif mysql # not compatible
query I rowsort label-6471
SELECT MIN ( - 31 ) / - 32 + - 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT DISTINCT 56 - + + 35 + - COUNT( * ) - 59 * - ( COUNT( * ) ) * 91
----
5389

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT 56 - + + 35 + - COUNT ( * ) - 59 * - ( COUNT ( * ) ) * 91
----
5389

query I rowsort
SELECT 82 * - + 97 * - 82 AS col2
----
652228

onlyif mysql # DIV for integer division: 
query I rowsort label-6474
SELECT DISTINCT + 84 DIV + 58
----
1

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT + 84 / + 58
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6475
SELECT COUNT( * ) DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6475
SELECT COUNT ( * ) / + 92 AS col1
----
0

query I rowsort
SELECT DISTINCT 14 * NULLIF ( - 48, - 69 * + 80 )
----
-672

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT 79 + 5 + + 25 DIV - 78 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6477
SELECT 79 + 5 + + 25 / - 78 AS col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT 82 * 16 DIV + 6
----
218

skipif mysql # not compatible
query I rowsort label-6478
SELECT 82 * 16 / + 6
----
218

query I rowsort
SELECT 24 * - - 86 AS col2
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT + COUNT( * ) * + 10 + - - 90 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-6480
SELECT + COUNT ( * ) * + 10 + - - 90 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT COUNT( * ) * - COUNT( DISTINCT + 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6481
SELECT COUNT ( * ) * - COUNT ( DISTINCT + 86 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT 31 * 26 + + - SUM( ALL - 57 ) AS col0
----
863

skipif mysql # not compatible
query I rowsort label-6482
SELECT 31 * 26 + + - SUM ( ALL - 57 ) AS col0
----
863

query I rowsort
SELECT ALL - 95 * 93
----
-8835

query II rowsort
SELECT DISTINCT - 46 AS col1, - 8 * + + 93 AS col0
----
-46
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT COALESCE ( MAX( DISTINCT - 43 ), - 78 )
----
-43

skipif mysql # not compatible
query I rowsort label-6485
SELECT COALESCE ( MAX ( DISTINCT - 43 ), - 78 )
----
-43

query I rowsort
SELECT + 99 + - 6 AS col1
----
93

query I rowsort
SELECT 14 * - 72 + - NULLIF ( NULLIF ( 20, 75 ), 91 ) AS col1
----
-1028

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT + COUNT( * ) + - + CASE + - COUNT( * ) WHEN - 33 THEN NULL ELSE + 85 + 10 END AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6488
SELECT + COUNT ( * ) + - + CASE + - COUNT ( * ) WHEN - 33 THEN NULL ELSE + 85 + 10 END AS col1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6489
SELECT ALL - - 28 * 13 + + COALESCE ( + 8, 22 * 71 + - 37 ) + MIN( + 59 ) DIV 70
----
372

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL - - 28 * 13 + + COALESCE ( + 8, 22 * 71 + - 37 ) + MIN ( + 59 ) / 70
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT DISTINCT 91 + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT 91 + + COUNT ( * )
----
92

query II rowsort
SELECT - + 78 AS col1, 60 AS col2
----
-78
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6492
SELECT CASE - - 49 WHEN + 12 THEN - ( 39 ) ELSE - 30 END DIV 30 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6492
SELECT CASE - - 49 WHEN + 12 THEN - ( 39 ) ELSE - 30 END / 30 AS col0
----
-1

query I rowsort
SELECT + 39 + + 54
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT ALL ( - 62 ) + 27 + - CASE COUNT( * ) WHEN - 65 THEN MAX( DISTINCT + 91 ) WHEN - NULLIF ( 9, - 54 ) THEN NULL ELSE NULL END * + ( + COALESCE ( 81, CASE - ( - COUNT( * ) ) WHEN COUNT( * ) THEN + CAST( 62 AS SIGNED ) + - 43 / COUNT( * ) WHEN + 30 THEN NULL END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL ( - 62 ) + 27 + - CASE COUNT ( * ) WHEN - 65 THEN MAX ( DISTINCT + 91 ) WHEN - NULLIF ( 9, - 54 ) THEN NULL ELSE NULL END * + ( + COALESCE ( 81, CASE - ( - COUNT ( * ) ) WHEN COUNT ( * ) THEN + CAST ( 62 AS INTEGER ) + - 43 / COUNT ( * ) WHEN + 30 THEN NULL END ) ) AS col1
----
NULL

query II rowsort
SELECT - 98 AS col1, + 83 + 42
----
-98
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT - 62 + + CAST( + 98 AS SIGNED ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6496
SELECT - 62 + + CAST ( + 98 AS INTEGER ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL MIN( - - NULLIF ( + + 28, + 12 ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL MIN ( - - NULLIF ( + + 28, + 12 ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT ALL ( - + COALESCE ( + COUNT( * ), + 28, - SUM( DISTINCT + 83 ), COUNT( * ) ) ) + 84 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL ( - + COALESCE ( + COUNT ( * ), + 28, - SUM ( DISTINCT + 83 ), COUNT ( * ) ) ) + 84 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT DISTINCT 80 * - ( + COUNT( - 1 ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT 80 * - ( + COUNT ( - 1 ) ) AS col2
----
-80

query I rowsort
SELECT DISTINCT + 26 + - 24 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT ALL - + COUNT( ALL - - 99 ) + 49 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL - + COUNT ( ALL - - 99 ) + 49 AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6502
SELECT + CAST( + - 56 AS SIGNED ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-6502
SELECT + CAST ( + - 56 AS INTEGER ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6503
SELECT 39 / ( + + 84 ) * + NULLIF ( - CASE + 7 WHEN - 40 THEN NULL WHEN AVG ( ALL 45 ) THEN 5 + 71 ELSE NULL END + + MAX( + 13 ), COUNT( * ) ) - + COALESCE ( COUNT( * ), + 12 * - 30, ( - 90 ) * CASE 62 / - COUNT( * ) + MAX( ALL ( + 70 ) - - 69 / 46 ) * + COUNT( * ) WHEN ( + 56 ) THEN NULL WHEN ( COUNT( * ) ) THEN 7 WHEN + NULLIF ( 98, CASE 27 WHEN 13 * 84 THEN COALESCE ( COALESCE ( 18, 38 - 50 * 2, 12 * COALESCE ( - ( ( - 2 ) ), 41 * + CAST( - 98 * 66 AS DECIMAL ), - 46 + 77 * - CASE + 16 * + 66 + 85 WHEN - 57 + 45 THEN - 57 - ( - 74 + 62 ) WHEN MAX( 49 ) THEN + COUNT( * ) / + 46 END ) + + 70 * CAST( 38 + 62 AS SIGNED ) ), 68 ) + - 77 WHEN + COUNT( * ) * - NULLIF ( - 30, + 98 + + 4 ) THEN - COUNT( * ) END * + 51 ) THEN 92 - 10 ELSE - 67 + - 85 * 63 END ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6503
SELECT 39 / ( + + 84 ) * + NULLIF ( - CASE + 7 WHEN - 40 THEN NULL WHEN AVG ( ALL 45 ) THEN 5 + 71 ELSE NULL END + + MAX ( + 13 ), COUNT ( * ) ) - + COALESCE ( COUNT ( * ), + 12 * - 30, ( - 90 ) * CASE 62 / - COUNT ( * ) + MAX ( ALL ( + 70 ) - - 69 / 46 ) * + COUNT ( * ) WHEN ( + 56 ) THEN NULL WHEN ( COUNT ( * ) ) THEN 7 WHEN + NULLIF ( 98, CASE 27 WHEN 13 * 84 THEN COALESCE ( COALESCE ( 18, 38 - 50 * 2, 12 * COALESCE ( - ( ( - 2 ) ), 41 * + CAST ( - 98 * 66 AS REAL ), - 46 + 77 * - CASE + 16 * + 66 + 85 WHEN - 57 + 45 THEN - 57 - ( - 74 + 62 ) WHEN MAX ( 49 ) THEN + COUNT ( * ) / + 46 END ) + + 70 * CAST ( 38 + 62 AS INTEGER ) ), 68 ) + - 77 WHEN + COUNT ( * ) * - NULLIF ( - 30, + 98 + + 4 ) THEN - COUNT ( * ) END * + 51 ) THEN 92 - 10 ELSE - 67 + - 85 * 63 END ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6504
SELECT ALL + 76 * - COUNT( * ) DIV - ( COUNT( ALL - ( - 56 ) ) )
----
76

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL + 76 * - COUNT ( * ) / - ( COUNT ( ALL - ( - 56 ) ) )
----
76

query I rowsort
SELECT 70 + 64 * + - 99
----
-6266

onlyif mysql # DIV for integer division: 
query I rowsort label-6506
SELECT DISTINCT 20 + - 76 + + - COALESCE ( + 63, - 43 * 87, - 53 DIV NULLIF ( 24 * - ( + 76 ), ( - 10 ) * 52 ) ) AS col1
----
-119

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT 20 + - 76 + + - COALESCE ( + 63, - 43 * 87, - 53 / NULLIF ( 24 * - ( + 76 ), ( - 10 ) * 52 ) ) AS col1
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6507
SELECT + ( COALESCE ( - 77, + NULLIF ( 71, CAST( NULL AS SIGNED ) ) ) ) + 34 col2
----
-43

skipif mysql # not compatible
query I rowsort label-6507
SELECT + ( COALESCE ( - 77, + NULLIF ( 71, CAST ( NULL AS INTEGER ) ) ) ) + 34 col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-6508
SELECT - COUNT( * ) - + 46, 66 AS col1
----
-47
66

skipif mysql # not compatible
query II rowsort label-6508
SELECT - COUNT ( * ) - + 46, 66 AS col1
----
-47
66

query I rowsort
SELECT ALL - 97 * + 13
----
-1261

query I rowsort
SELECT ALL 86 - + 99 AS col2
----
-13

query I rowsort
SELECT ALL COALESCE ( - - 26, + 14 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL + SUM( 63 ) - 85
----
-22

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL + SUM ( 63 ) - 85
----
-22

query I rowsort
SELECT - CASE + 48 WHEN + 58 THEN + - 4 * 20 + 58 ELSE NULL END * + 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT + 11 DIV - + 37 + - 90
----
-90

skipif mysql # not compatible
query I rowsort label-6514
SELECT + 11 / - + 37 + - 90
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT 71 * + - NULLIF ( + NULLIF ( - - 0, COALESCE ( - 94, 8 + + 90 * 67, - 94 + 48 ) / 35 ), - 39 ) - 88 * COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-6515
SELECT 71 * + - NULLIF ( + NULLIF ( - - 0, COALESCE ( - 94, 8 + + 90 * 67, - 94 + 48 ) / 35 ), - 39 ) - 88 * COUNT ( * )
----
-88

query I rowsort
SELECT DISTINCT + 80 * - 24 AS col0
----
-1920

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6517
SELECT - NULLIF ( - COUNT( ALL CAST( NULL AS DECIMAL ) ), 45 ) * + 92
----
0

skipif mysql # not compatible
query I rowsort label-6517
SELECT - NULLIF ( - COUNT ( ALL CAST ( NULL AS REAL ) ), 45 ) * + 92
----
0

query I rowsort
SELECT NULLIF ( - 83, 26 ) col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6519
SELECT CASE - 83 WHEN + MIN( DISTINCT - - 82 ) + 25 THEN 3 ELSE + CASE + 96 WHEN - 71 + 19 * 16 THEN + COUNT( * ) WHEN CASE + CAST( 90 AS SIGNED ) WHEN + 21 THEN ( + 69 ) ELSE COUNT( * ) * 52 END THEN NULL END + AVG ( DISTINCT 36 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT CASE - 83 WHEN + MIN ( DISTINCT - - 82 ) + 25 THEN 3 ELSE + CASE + 96 WHEN - 71 + 19 * 16 THEN + COUNT ( * ) WHEN CASE + CAST ( 90 AS INTEGER ) WHEN + 21 THEN ( + 69 ) ELSE COUNT ( * ) * 52 END THEN NULL END + AVG ( DISTINCT 36 ) END
----
NULL

query I rowsort
SELECT - 7 * + - 57 * 70 col2
----
27930

query I rowsort
SELECT ALL 72 * - + 18 + + 84 AS col2
----
-1212

onlyif mysql # DIV for integer division: 
query I rowsort label-6522
SELECT DISTINCT + 54 DIV + 25 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT + 54 / + 25 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL + ( - 56 ) * - COUNT( * ) + + 61 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + ( - 56 ) * - COUNT ( * ) + + 61 AS col0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6524
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * - 16 + 5 DIV 15 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * - 16 + 5 / 15 AS col1
----
-16

query I rowsort
SELECT + 96 * - + 50
----
-4800

query I rowsort
SELECT - 40 * 60 AS col2
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT + COUNT( * ) * - CASE + - 21 WHEN + 46 * 97 THEN 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT + COUNT ( * ) * - CASE + - 21 WHEN + 46 * 97 THEN 87 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 23 * + + 4 + + + 47
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6529
SELECT ( - COUNT( * ) ) AS col2, + 18 DIV - 28
----
-1
0

skipif mysql # not compatible
query II rowsort label-6529
SELECT ( - COUNT ( * ) ) AS col2, + 18 / - 28
----
-1
0

query I rowsort
SELECT ALL + + NULLIF ( + - 57, 3 + 20 ) col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT - + MAX( ALL + + 50 ) - - COALESCE ( + CASE COUNT( * ) WHEN 32 THEN NULL WHEN - COUNT( * ) THEN COUNT( * ) * 83 WHEN 31 * + ( 35 ) THEN + COUNT( * ) END, 28 * + 68 ) AS col0
----
1854

skipif mysql # not compatible
query I rowsort label-6531
SELECT - + MAX ( ALL + + 50 ) - - COALESCE ( + CASE COUNT ( * ) WHEN 32 THEN NULL WHEN - COUNT ( * ) THEN COUNT ( * ) * 83 WHEN 31 * + ( 35 ) THEN + COUNT ( * ) END, 28 * + 68 ) AS col0
----
1854

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT MAX( DISTINCT - - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-6532
SELECT MAX ( DISTINCT - - 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT ALL - + 5 * + 13 * - ( - 21 ) - 67 * + COUNT( * ) + + MIN( DISTINCT - ( - 43 ) + - 26 ) AS col0
----
-1415

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL - + 5 * + 13 * - ( - 21 ) - 67 * + COUNT ( * ) + + MIN ( DISTINCT - ( - 43 ) + - 26 ) AS col0
----
-1415

query I rowsort
SELECT - + ( + 80 ) AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6535
SELECT ALL - 97 + - + CAST( + + MAX( + 6 ) AS SIGNED )
----
-103

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL - 97 + - + CAST ( + + MAX ( + 6 ) AS INTEGER )
----
-103

query I rowsort
SELECT + 12 * - 62 - + 23 + 91 * 84
----
6877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT ALL + COALESCE ( + - 66, CAST( NULL AS SIGNED ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL + COALESCE ( + - 66, CAST ( NULL AS INTEGER ) ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT - 37 * + - COUNT( - + ( + 71 ) ) * MAX( 80 * 70 + - 64 ) - + 92 AS col1
----
204740

skipif mysql # not compatible
query I rowsort label-6538
SELECT - 37 * + - COUNT ( - + ( + 71 ) ) * MAX ( 80 * 70 + - 64 ) - + 92 AS col1
----
204740

query I rowsort
SELECT + 70 + - 42
----
28

query I rowsort
SELECT + 39 - + + 63 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL COUNT( * ) - 20 + - COALESCE ( + 80, - 90, + 42 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL COUNT ( * ) - 20 + - COALESCE ( + 80, - 90, + 42 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT + + COUNT( * ) * MAX( DISTINCT 89 ) * 14 + - 69 * + MIN( 36 ) AS col2
----
-1238

skipif mysql # not compatible
query I rowsort label-6542
SELECT + + COUNT ( * ) * MAX ( DISTINCT 89 ) * 14 + - 69 * + MIN ( 36 ) AS col2
----
-1238

query I rowsort
SELECT + 92 + 97 col0
----
189

query I rowsort
SELECT + + 81 + - + COALESCE ( + 93, ( - 8 ) + 70 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT + SUM( ALL - + NULLIF ( - 85, - 62 - + - 28 ) ) + + 4
----
89

skipif mysql # not compatible
query I rowsort label-6545
SELECT + SUM ( ALL - + NULLIF ( - 85, - 62 - + - 28 ) ) + + 4
----
89

query I rowsort
SELECT ALL 3 * 49 * - ( 93 )
----
-13671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6547
SELECT DISTINCT CASE - COALESCE ( - + CASE + + AVG ( 95 ) WHEN CASE COUNT( * ) WHEN COUNT( + 49 ) * - ( 82 + ( 21 ) ) THEN + 58 * + CAST( - 35 * 71 AS DECIMAL ) ELSE + MIN( DISTINCT - 66 ) END * 57 + - 94 THEN + COUNT( * ) WHEN ( - 84 ) THEN COUNT( * ) ELSE NULL END, + ( 42 ) * + ( + MAX( 64 ) * AVG ( + 71 ) + - 58 ) - + 90 ) WHEN + CASE 4 WHEN - 46 * + 21 THEN NULL WHEN 76 + - 6 THEN 88 + - 13 ELSE NULL END + 52 THEN + 35 * CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT CASE - COALESCE ( - + CASE + + AVG ( 95 ) WHEN CASE COUNT ( * ) WHEN COUNT ( + 49 ) * - ( 82 + ( 21 ) ) THEN + 58 * + CAST ( - 35 * 71 AS REAL ) ELSE + MIN ( DISTINCT - 66 ) END * 57 + - 94 THEN + COUNT ( * ) WHEN ( - 84 ) THEN COUNT ( * ) ELSE NULL END, + ( 42 ) * + ( + MAX ( 64 ) * AVG ( + 71 ) + - 58 ) - + 90 ) WHEN + CASE 4 WHEN - 46 * + 21 THEN NULL WHEN 76 + - 6 THEN 88 + - 13 ELSE NULL END + 52 THEN + 35 * CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6548
SELECT ALL 32 DIV - 61 * 62 col2
----
0

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL 32 / - 61 * 62 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6549
SELECT + 38 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-6549
SELECT + 38 / + 73
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6550
SELECT + 55 + - CASE 43 WHEN - COUNT( * ) THEN - 53 ELSE + 88 END DIV + 2 col1
----
11

skipif mysql # not compatible
query I rowsort label-6550
SELECT + 55 + - CASE 43 WHEN - COUNT ( * ) THEN - 53 ELSE + 88 END / + 2 col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6551
SELECT - CAST( - - 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-6551
SELECT - CAST ( - - 57 AS INTEGER )
----
-57

query I rowsort
SELECT - 20 * + 44 AS col2
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT ALL + MAX( DISTINCT - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL + MAX ( DISTINCT - 71 )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT + 81 DIV - + 47 + 88 + 13
----
100

skipif mysql # not compatible
query I rowsort label-6554
SELECT + 81 / - + 47 + 88 + 13
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6555
SELECT CAST( NULL AS SIGNED ), 54 * - + COUNT( * ) AS col1
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-6555
SELECT CAST ( NULL AS INTEGER ), 54 * - + COUNT ( * ) AS col1
----
NULL
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6556
SELECT ALL - 64 DIV - COUNT( * ) + - 37 + - 71
----
-44

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL - 64 / - COUNT ( * ) + - 37 + - 71
----
-44

query I rowsort
SELECT - 84 * 87 AS col2
----
-7308

query I rowsort
SELECT - 1 - + ( + 28 )
----
-29

query I rowsort
SELECT DISTINCT + ( 24 )
----
24

query I rowsort
SELECT - CASE 93 WHEN - 46 THEN NULL WHEN - 46 THEN - 55 * + 68 + + 4 * ( + CASE + 99 WHEN + 64 - 36 THEN 24 + - 54 END ) ELSE NULL END * + 11 + + 32
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6561
SELECT ALL + - ( - 21 ) DIV - - CASE - ( + 94 ) WHEN - CASE 25 WHEN - 54 * 36 + 90 THEN NULL WHEN + COUNT( * ) * 80 THEN NULL ELSE 55 * - 46 END + 71 THEN NULL WHEN - 70 THEN 99 + 0 * - 53 WHEN 30 THEN 52 + - COUNT( 65 ) * - ( 92 ) ELSE + 26 * + COUNT( ALL - 32 ) - 35 END + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL + - ( - 21 ) / - - CASE - ( + 94 ) WHEN - CASE 25 WHEN - 54 * 36 + 90 THEN NULL WHEN + COUNT ( * ) * 80 THEN NULL ELSE 55 * - 46 END + 71 THEN NULL WHEN - 70 THEN 99 + 0 * - 53 WHEN 30 THEN 52 + - COUNT ( 65 ) * - ( 92 ) ELSE + 26 * + COUNT ( ALL - 32 ) - 35 END + + COUNT ( * )
----
-1

query I rowsort
SELECT - - 36 + + 88
----
124

query I rowsort
SELECT 86 * - - 77 + + - 96 AS col0
----
6526

query I rowsort
SELECT + + 81 - + 51 * - 5 * + - 31 AS col0
----
-7824

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT - + COUNT( * ) + - 7 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6565
SELECT - + COUNT ( * ) + - 7 AS col1
----
-8

query I rowsort
SELECT DISTINCT + - 53 col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6567
SELECT ALL - - 2 DIV 31
----
0

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL - - 2 / 31
----
0

query I rowsort
SELECT - 97 + 89 AS col1
----
-8

query I rowsort
SELECT DISTINCT - 9 * - - ( - 0 ) - 20 * - NULLIF ( + 60, 22 )
----
1200

query I rowsort
SELECT DISTINCT - 98 * + - 37
----
3626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6571
SELECT - 10 * - 62 + COUNT( * ) + - 12 DIV + MAX( ALL + 84 ) AS col2
----
621

skipif mysql # not compatible
query I rowsort label-6571
SELECT - 10 * - 62 + COUNT ( * ) + - 12 / + MAX ( ALL + 84 ) AS col2
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL + 55 * - COUNT( ALL 34 ) - - ( - 40 )
----
-95

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL + 55 * - COUNT ( ALL 34 ) - - ( - 40 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6573
SELECT + 33 * + + 69 * + ( + + CASE 90 WHEN 14 THEN + MAX( - ( 68 ) ) + CAST( 8 - 63 AS SIGNED ) * + 52 WHEN - CAST( 83 AS SIGNED ) * 47 THEN + 94 - 71 ELSE NULL END ) * 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT + 33 * + + 69 * + ( + + CASE 90 WHEN 14 THEN + MAX ( - ( 68 ) ) + CAST ( 8 - 63 AS INTEGER ) * + 52 WHEN - CAST ( 83 AS INTEGER ) * 47 THEN + 94 - 71 ELSE NULL END ) * 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT 69 + 69 + 6 * - 5 * - - ( COUNT( * ) ) * - 21 * 43
----
27228

skipif mysql # not compatible
query I rowsort label-6574
SELECT 69 + 69 + 6 * - 5 * - - ( COUNT ( * ) ) * - 21 * 43
----
27228

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT + COUNT( - - 69 ) * - 3
----
-3

skipif mysql # not compatible
query I rowsort label-6575
SELECT + COUNT ( - - 69 ) * - 3
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT ( + - 94 ) * - 0 DIV - - 67 col1
----
0

skipif mysql # not compatible
query I rowsort label-6576
SELECT ( + - 94 ) * - 0 / - - 67 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL + 74 * + + MAX( 56 ) AS col1
----
4144

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL + 74 * + + MAX ( 56 ) AS col1
----
4144

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT + COUNT( * ) * NULLIF ( - 87, 73 * - 1 ) * + 60 col2
----
-5220

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT + COUNT ( * ) * NULLIF ( - 87, 73 * - 1 ) * + 60 col2
----
-5220

query I rowsort
SELECT - - NULLIF ( + 64, - 20 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT ALL SUM( + 50 ) - + 79 * - 99 + - 24 + - 63 * 28 * - 21 AS col0
----
44891

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL SUM ( + 50 ) - + 79 * - 99 + - 24 + - 63 * 28 * - 21 AS col0
----
44891

onlyif mysql # aggregate syntax: 
query II rowsort label-6581
SELECT ALL 42, - COUNT( * ) + - 15 + SUM( + 19 ) * - 6 col1
----
42
-130

skipif mysql # not compatible
query II rowsort label-6581
SELECT ALL 42, - COUNT ( * ) + - 15 + SUM ( + 19 ) * - 6 col1
----
42
-130

query I rowsort
SELECT 72 * - - 12 * + + 12 AS col2
----
10368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6583
SELECT 8 + 13 DIV 40 * COUNT( * ) DIV + - ( NULLIF ( COUNT( * ), - 59 ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6583
SELECT 8 + 13 / 40 * COUNT ( * ) / + - ( NULLIF ( COUNT ( * ), - 59 ) ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT MIN( ALL - 8 ) + + - ( - COUNT( * ) )
----
-7

skipif mysql # not compatible
query I rowsort label-6584
SELECT MIN ( ALL - 8 ) + + - ( - COUNT ( * ) )
----
-7

query I rowsort
SELECT 91 - - - 17
----
74

query I rowsort
SELECT ALL 26 * - 90 AS col1
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT 33 + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-6587
SELECT 33 + COUNT ( * )
----
34

query II rowsort
SELECT 99 AS col0, 63 AS col0
----
99
63

query I rowsort
SELECT DISTINCT 55 * + - 54 * - 59 AS col2
----
175230

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6590
SELECT ALL 90 + - - 20, CAST( + 28 AS SIGNED ) + - 28 AS col0
----
110
0

skipif mysql # not compatible
query II rowsort label-6590
SELECT ALL 90 + - - 20, CAST ( + 28 AS INTEGER ) + - 28 AS col0
----
110
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6591
SELECT 86 AS col0, - 31 * + MIN( 7 ) + - 49 + + 71 - - 71 * - 25 AS col0
----
86
-1970

skipif mysql # not compatible
query II rowsort label-6591
SELECT 86 AS col0, - 31 * + MIN ( 7 ) + - 49 + + 71 - - 71 * - 25 AS col0
----
86
-1970

query I rowsort
SELECT ALL + ( - + 4 ) + - - 85 + + ( + 20 ) - - 39
----
140

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6593
SELECT CAST( NULL AS DECIMAL ) + + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT CAST ( NULL AS REAL ) + + - 40 AS col0
----
NULL

query II rowsort
SELECT + 32, 30 * - - 53 AS col1
----
32
1590

query I rowsort
SELECT 36 * + + 31 + - 8
----
1108

query I rowsort
SELECT 13 * + - COALESCE ( + 32, 60 ) col1
----
-416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6597
SELECT DISTINCT COUNT( - - 37 ) DIV + - ( + - 39 ) + + - COUNT( * ) + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT COUNT ( - - 37 ) / + - ( + - 39 ) + + - COUNT ( * ) + + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 30 * + 52 * - 97
----
-151320

query II rowsort
SELECT DISTINCT - + 23 AS col0, + 82 AS col2
----
-23
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6600
SELECT 14 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT 14 * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL - ( - 54 ) - + 51 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6602
SELECT - - NULLIF ( - ( NULLIF ( + 48, CAST( NULL AS DECIMAL ) ) ), - - 19 ) * 46 - COUNT( ALL 26 )
----
-2209

skipif mysql # not compatible
query I rowsort label-6602
SELECT - - NULLIF ( - ( NULLIF ( + 48, CAST ( NULL AS REAL ) ) ), - - 19 ) * 46 - COUNT ( ALL 26 )
----
-2209

query I rowsort
SELECT 14 * - ( 39 ) - - 12
----
-534

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT + - MAX( DISTINCT - + 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6604
SELECT + - MAX ( DISTINCT - + 80 ) AS col2
----
80

query I rowsort
SELECT ALL - NULLIF ( + 45, + 53 ) AS col1
----
-45

query III rowsort
SELECT DISTINCT - 45 AS col0, + 7 AS col0, 65
----
-45
7
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ALL - 53 * - COUNT( ALL - + 73 )
----
53

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - 53 * - COUNT ( ALL - + 73 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6608
SELECT 48 DIV - + 70 + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6608
SELECT 48 / - + 70 + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT ALL COUNT( ALL + 64 )
----
1

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL COUNT ( ALL + 64 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT DISTINCT - - 32 DIV NULLIF ( - + 47, 57 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT - - 32 / NULLIF ( - + 47, 57 ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6611
SELECT 2 - + 20 * + CAST( NULL AS SIGNED ) + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT 2 - + 20 * + CAST ( NULL AS INTEGER ) + + 96 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6612
SELECT ALL - 39 * + - 28 / - 77 / - CASE + COUNT( ALL + NULLIF ( + COALESCE ( ( + 83 ), + CAST( NULL AS DECIMAL ) * 95, + 97 * + 4 ), 7 + - 12 * 22 ) ) WHEN + 76 * + 98 THEN + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL - 39 * + - 28 / - 77 / - CASE + COUNT ( ALL + NULLIF ( + COALESCE ( ( + 83 ), + CAST ( NULL AS REAL ) * 95, + 97 * + 4 ), 7 + - 12 * 22 ) ) WHEN + 76 * + 98 THEN + 97 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT 72 DIV - + 26
----
-2

skipif mysql # not compatible
query I rowsort label-6613
SELECT 72 / - + 26
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6614
SELECT 8 DIV + + SUM( + 82 ) AS col0, 65 + 56 AS col1
----
0
121

skipif mysql # not compatible
query II rowsort label-6614
SELECT 8 / + + SUM ( + 82 ) AS col0, 65 + 56 AS col1
----
0
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6615
SELECT DISTINCT - COALESCE ( + 69, + 29 ) + CAST( - 11 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT - COALESCE ( + 69, + 29 ) + CAST ( - 11 AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT 1 + ( + COUNT( * ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6616
SELECT 1 + ( + COUNT ( * ) ) AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6617
SELECT 36 - 56 + + ( 58 ) DIV + 74
----
-20

skipif mysql # not compatible
query I rowsort label-6617
SELECT 36 - 56 + + ( 58 ) / + 74
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6618
SELECT ALL - 67 + 5 + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL - 67 + 5 + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 49 + - ( - - 77 ) AS col2
----
-126

query I rowsort
SELECT ALL 72 * - 80 * - 12 * - - 93 AS col0
----
6428160

query II rowsort
SELECT 33 * + + 50, - 67 AS col1
----
1650
-67

query I rowsort
SELECT DISTINCT - ( + - 53 ) + - - 77
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ALL SUM( - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL SUM ( - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT - MIN( ALL - + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-6624
SELECT - MIN ( ALL - + 12 )
----
12

query II rowsort
SELECT ALL 36 * 93, + ( - ( + - 83 ) ) col2
----
3348
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6626
SELECT 23 + - CAST( + + 11 AS SIGNED ) col0
----
12

skipif mysql # not compatible
query I rowsort label-6626
SELECT 23 + - CAST ( + + 11 AS INTEGER ) col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT - SUM( - 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6627
SELECT - SUM ( - 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6628
SELECT - 6 DIV - MAX( - + 8 ) - + 27 + + 36
----
9

skipif mysql # not compatible
query I rowsort label-6628
SELECT - 6 / - MAX ( - + 8 ) - + 27 + + 36
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT - COUNT( ALL 23 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6629
SELECT - COUNT ( ALL 23 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 89 * + - 84 - - ( 52 )
----
-7424

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT 91 + + 76 - + 88 + + COUNT( * ) * 5 * - + 70 - - + 76 AS col2
----
-195

skipif mysql # not compatible
query I rowsort label-6631
SELECT 91 + + 76 - + 88 + + COUNT ( * ) * 5 * - + 70 - - + 76 AS col2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL - 64 * COUNT( * ) * 97
----
-6208

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - 64 * COUNT ( * ) * 97
----
-6208

query I rowsort
SELECT DISTINCT - 73 * + 1 AS col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT ALL - 9 DIV 40 DIV 12 + 63
----
63

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL - 9 / 40 / 12 + 63
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6635
SELECT + 18 * + COUNT( * ) DIV - 43 + + 74
----
74

skipif mysql # not compatible
query I rowsort label-6635
SELECT + 18 * + COUNT ( * ) / - 43 + + 74
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6636
SELECT DISTINCT + - CAST( + CAST( 92 AS SIGNED ) AS SIGNED ), + 39 * + + 54 col2
----
-92
2106

skipif mysql # not compatible
query II rowsort label-6636
SELECT DISTINCT + - CAST ( + CAST ( 92 AS INTEGER ) AS INTEGER ), + 39 * + + 54 col2
----
-92
2106

query I rowsort
SELECT + 32 + - - 80 AS col1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT + - 60 DIV + 16 + + 55 + - 2 + - 79 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-6638
SELECT + - 60 / + 16 + + 55 + - 2 + - 79 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT - 6 * - + 73 + + + COUNT( * )
----
439

skipif mysql # not compatible
query I rowsort label-6639
SELECT - 6 * - + 73 + + + COUNT ( * )
----
439

query I rowsort
SELECT + - 83 * ( 59 ) + + 11 AS col2
----
-4886

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT - COUNT( * ) - + 70
----
-71

skipif mysql # not compatible
query I rowsort label-6641
SELECT - COUNT ( * ) - + 70
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT - COALESCE ( + - 45, + 78, NULLIF ( - - COUNT( * ), 45 ) + 62 ) * 59
----
2655

skipif mysql # not compatible
query I rowsort label-6642
SELECT - COALESCE ( + - 45, + 78, NULLIF ( - - COUNT ( * ), 45 ) + 62 ) * 59
----
2655

query I rowsort
SELECT 68 * + 52 + 26 * 82 * - + 81 + 5 AS col0
----
-169151

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT - 28 - MIN( ALL 47 )
----
-75

skipif mysql # not compatible
query I rowsort label-6644
SELECT - 28 - MIN ( ALL 47 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT DISTINCT + - NULLIF ( + CASE 0 WHEN CASE SUM( DISTINCT - - 10 ) WHEN 70 * - 19 - 36 DIV 16 THEN - 20 ELSE 11 DIV + 66 END THEN - 29 * - 14 + 6 ELSE 75 END, NULLIF ( - 83, COALESCE ( 38, 65, 55 ) * + 22 ) + 8 ) AS col2
----
-412

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT + - NULLIF ( + CASE 0 WHEN CASE SUM ( DISTINCT - - 10 ) WHEN 70 * - 19 - 36 / 16 THEN - 20 ELSE 11 / + 66 END THEN - 29 * - 14 + 6 ELSE 75 END, NULLIF ( - 83, COALESCE ( 38, 65, 55 ) * + 22 ) + 8 ) AS col2
----
-412

onlyif mysql # aggregate syntax: 
query II rowsort label-6646
SELECT DISTINCT - 24 * - COUNT( * ) + + COUNT( * ) AS col2, - 25 AS col1
----
25
-25

skipif mysql # not compatible
query II rowsort label-6646
SELECT DISTINCT - 24 * - COUNT ( * ) + + COUNT ( * ) AS col2, - 25 AS col1
----
25
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6647
SELECT + 86 * 6 * - COALESCE ( + 31, + - COUNT( * ) - 22, - 20 * 12 ) + + CAST( + 76 AS SIGNED )
----
-15920

skipif mysql # not compatible
query I rowsort label-6647
SELECT + 86 * 6 * - COALESCE ( + 31, + - COUNT ( * ) - 22, - 20 * 12 ) + + CAST ( + 76 AS INTEGER )
----
-15920

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ALL + 3 * 8 * + + 50 + + 18 + + COUNT( * ) + + 22 col2
----
1241

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL + 3 * 8 * + + 50 + + 18 + + COUNT ( * ) + + 22 col2
----
1241

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT - + ( + + 93 ) + + 10 - - - 62 + 87 * - 57 + - COUNT( * ) * + 12
----
-5116

skipif mysql # not compatible
query I rowsort label-6649
SELECT - + ( + + 93 ) + + 10 - - - 62 + 87 * - 57 + - COUNT ( * ) * + 12
----
-5116

query I rowsort
SELECT ALL + 97 * + 29 AS col2
----
2813

query I rowsort
SELECT ALL + + 59 + + 3
----
62

query I rowsort
SELECT - - 27 + - 89 + 2 * - + ( + - 64 ) * 11 * + NULLIF ( 4, 15 * - 9 ) * + 24 * - 87 AS col0
----
-11759678

query I rowsort
SELECT + CASE 10 WHEN + + 42 THEN 42 * 96 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT DISTINCT COUNT( + + 11 ) + + 30
----
31

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT COUNT ( + + 11 ) + + 30
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT MIN( ALL ( - 13 ) ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6655
SELECT MIN ( ALL ( - 13 ) ) AS col2
----
-13

query I rowsort
SELECT ALL - 35 + + 34 * + - 65 * 99
----
-218825

query I rowsort
SELECT ALL + 80 + - 94
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT ALL 15 + SUM( DISTINCT + + 24 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL 15 + SUM ( DISTINCT + + 24 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT DISTINCT + MAX( DISTINCT - CASE - + 65 WHEN + - 83 THEN + 75 - - + 43 ELSE - - 18 END ) * + 44 * + 89 + + 88
----
-70400

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT + MAX ( DISTINCT - CASE - + 65 WHEN + - 83 THEN + 75 - - + 43 ELSE - - 18 END ) * + 44 * + 89 + + 88
----
-70400

query I rowsort
SELECT DISTINCT - 63 + + + 20 AS col0
----
-43

query I rowsort
SELECT - 79 + - 84
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT ALL COALESCE ( + COUNT( 12 ), - - 78 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL COALESCE ( + COUNT ( 12 ), - - 78 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 90 * + + CASE + 91 WHEN - 38 THEN 46 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ALL COALESCE ( 80, + COUNT( * ), 37 )
----
80

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL COALESCE ( 80, + COUNT ( * ), 37 )
----
80

query I rowsort
SELECT - 25 * 67 * - 33
----
55275

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ALL + MIN( ALL 41 ) * - + ( + 71 ) + COUNT( ALL + + 71 )
----
-2910

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL + MIN ( ALL 41 ) * - + ( + 71 ) + COUNT ( ALL + + 71 )
----
-2910

query II rowsort
SELECT 16 AS col1, + 25
----
16
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - 1 - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6668
SELECT - 1 - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6669
SELECT DISTINCT - 0 - + 57 * + + 1, 14 + + ( - ( - CASE SUM( ALL 15 ) WHEN + 33 THEN + CASE - ( - 88 ) WHEN + 25 THEN NULL WHEN MAX( DISTINCT - 6 ) THEN + COUNT( * ) ELSE NULL END END ) ) + ( 36 ) / + 17 AS col1
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-6669
SELECT DISTINCT - 0 - + 57 * + + 1, 14 + + ( - ( - CASE SUM ( ALL 15 ) WHEN + 33 THEN + CASE - ( - 88 ) WHEN + 25 THEN NULL WHEN MAX ( DISTINCT - 6 ) THEN + COUNT ( * ) ELSE NULL END END ) ) + ( 36 ) / + 17 AS col1
----
-57
NULL

query I rowsort
SELECT ALL ( + - 67 ) AS col2
----
-67

query I rowsort
SELECT ALL - - 8 - 3
----
5

query I rowsort
SELECT - - 24 * - 76
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT ALL + COUNT( 78 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL + COUNT ( 78 ) AS col1
----
1

query I rowsort
SELECT - 49 + + - 88 col0
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT - COUNT( * ) * + - ( - - 17 )
----
17

skipif mysql # not compatible
query I rowsort label-6675
SELECT - COUNT ( * ) * + - ( - - 17 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6676
SELECT + - COUNT( * ), - 81 * - COUNT( * ) AS col1
----
-1
81

skipif mysql # not compatible
query II rowsort label-6676
SELECT + - COUNT ( * ), - 81 * - COUNT ( * ) AS col1
----
-1
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6677
SELECT + 1 col0, COUNT( * ) * - - 15
----
1
15

skipif mysql # not compatible
query II rowsort label-6677
SELECT + 1 col0, COUNT ( * ) * - - 15
----
1
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6678
SELECT ALL + 18 col2, SUM( - 61 )
----
18
-61

skipif mysql # not compatible
query II rowsort label-6678
SELECT ALL + 18 col2, SUM ( - 61 )
----
18
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6679
SELECT DISTINCT 64 * + ( + 35 ), CAST( NULL AS SIGNED ) - + + 5 AS col1
----
2240
NULL

skipif mysql # not compatible
query II rowsort label-6679
SELECT DISTINCT 64 * + ( + 35 ), CAST ( NULL AS INTEGER ) - + + 5 AS col1
----
2240
NULL

query I rowsort
SELECT - + 97 * - 43
----
4171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6681
SELECT - - CAST( - COUNT( * ) AS SIGNED ) / COUNT( * ) + + - CAST( NULL AS SIGNED ) + - 5 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6681
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) / COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + - 5 col0
----
NULL

query I rowsort
SELECT DISTINCT + 75 * + + COALESCE ( + 50, - 20 ) AS col2
----
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT ALL - 57 * - MIN( DISTINCT + 83 ) + + - 15
----
4716

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL - 57 * - MIN ( DISTINCT + 83 ) + + - 15
----
4716

query I rowsort
SELECT DISTINCT + - 40 * - 98
----
3920

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT + + 48 DIV + ( 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6685
SELECT + + 48 / + ( 30 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT ALL 49 * 68 * - 32 - + + CASE - COUNT( * ) WHEN - + 34 THEN NULL WHEN - ( + 28 ) THEN 56 END / + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL 49 * 68 * - 32 - + + CASE - COUNT ( * ) WHEN - + 34 THEN NULL WHEN - ( + 28 ) THEN 56 END / + 93
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6687
SELECT ALL + 63 * + 31 * - 2 + - 6 AS col0, - COUNT( * ) DIV + SUM( ALL - 68 ) * - - ( + 53 ) + + 58
----
-3912
58

skipif mysql # not compatible
query II rowsort label-6687
SELECT ALL + 63 * + 31 * - 2 + - 6 AS col0, - COUNT ( * ) / + SUM ( ALL - 68 ) * - - ( + 53 ) + + 58
----
-3912
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6688
SELECT + COUNT( * ) * 38 DIV + 92 - - 27
----
27

skipif mysql # not compatible
query I rowsort label-6688
SELECT + COUNT ( * ) * 38 / + 92 - - 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT CASE - 52 WHEN - AVG ( DISTINCT 69 ) + + + COUNT( * ) + + - 7 - 48 + - 51 * - COUNT( ALL 24 ) THEN MIN( - 54 ) + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT CASE - 52 WHEN - AVG ( DISTINCT 69 ) + + + COUNT ( * ) + + - 7 - 48 + - 51 * - COUNT ( ALL 24 ) THEN MIN ( - 54 ) + 83 END
----
NULL

query I rowsort
SELECT + 4 * - 56
----
-224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6691
SELECT ALL - 70 * 25 + + + 90 * - 43 AS col2, + 26 + - 7 * 26 + + - COUNT( * ) + + 47 + CAST( COUNT( * ) + + 26 AS SIGNED ) * CAST( NULL AS DECIMAL ) * - 90
----
-5620
NULL

skipif mysql # not compatible
query II rowsort label-6691
SELECT ALL - 70 * 25 + + + 90 * - 43 AS col2, + 26 + - 7 * 26 + + - COUNT ( * ) + + 47 + CAST ( COUNT ( * ) + + 26 AS INTEGER ) * CAST ( NULL AS REAL ) * - 90
----
-5620
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6692
SELECT 12 * + - CAST( NULL AS SIGNED ) - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT 12 * + - CAST ( NULL AS INTEGER ) - + 44
----
NULL

query I rowsort
SELECT + 92 + - ( - 9 ) col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6694
SELECT ALL + CASE + + 68 WHEN MAX( DISTINCT + + 93 ) THEN + SUM( + + CASE 98 WHEN - ( - 89 ) / 46 THEN + 74 ELSE 20 + 0 END ) WHEN - 39 * 19 + + 82 * + 67 THEN NULL END * 4 + + CAST( CASE - 18 WHEN 26 THEN NULL ELSE 92 END + + 41 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL + CASE + + 68 WHEN MAX ( DISTINCT + + 93 ) THEN + SUM ( + + CASE 98 WHEN - ( - 89 ) / 46 THEN + 74 ELSE 20 + 0 END ) WHEN - 39 * 19 + + 82 * + 67 THEN NULL END * 4 + + CAST ( CASE - 18 WHEN 26 THEN NULL ELSE 92 END + + 41 AS REAL )
----
NULL

query I rowsort
SELECT 13 * 5 - 81 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6696
SELECT DISTINCT COUNT( * ) * 52 DIV - 12 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT COUNT ( * ) * 52 / - 12 AS col1
----
-4

query I rowsort
SELECT - 38 - + 38 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT SUM( + - 32 ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-6698
SELECT SUM ( + - 32 ) col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6699
SELECT ALL - 77 * - - COUNT( 93 ) - 98 + 82 + 77 DIV + + 55 + + 44 * - + 94 * 77
----
-318564

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL - 77 * - - COUNT ( 93 ) - 98 + 82 + 77 / + + 55 + + 44 * - + 94 * 77
----
-318564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6700
SELECT + 78 + - COALESCE ( 56, - 54, - CASE - SUM( ALL + 28 ) WHEN 1 / - - 48 + + CAST( NULL AS SIGNED ) * - 9 THEN COUNT( * ) * COUNT( * ) - NULLIF ( 4, + COUNT( * ) ) END ) * - 24
----
1422

skipif mysql # not compatible
query I rowsort label-6700
SELECT + 78 + - COALESCE ( 56, - 54, - CASE - SUM ( ALL + 28 ) WHEN 1 / - - 48 + + CAST ( NULL AS INTEGER ) * - 9 THEN COUNT ( * ) * COUNT ( * ) - NULLIF ( 4, + COUNT ( * ) ) END ) * - 24
----
1422

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL ( COUNT( DISTINCT + 86 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL ( COUNT ( DISTINCT + 86 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6702
SELECT ALL COUNT( DISTINCT + - 13 ), 86 AS col2
----
1
86

skipif mysql # not compatible
query II rowsort label-6702
SELECT ALL COUNT ( DISTINCT + - 13 ), 86 AS col2
----
1
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6703
SELECT - CASE - - CASE - + 74 WHEN 38 - CASE + 23 WHEN 47 THEN - COUNT( * ) * 52 * 79 WHEN 77 / ( 49 ) THEN 93 ELSE NULL END THEN + 88 / - 20 END WHEN CAST( + COUNT( * ) AS SIGNED ) + 14 THEN - MAX( DISTINCT 27 ) + 14 WHEN 20 THEN NULL ELSE NULL END * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6703
SELECT - CASE - - CASE - + 74 WHEN 38 - CASE + 23 WHEN 47 THEN - COUNT ( * ) * 52 * 79 WHEN 77 / ( 49 ) THEN 93 ELSE NULL END THEN + 88 / - 20 END WHEN CAST ( + COUNT ( * ) AS INTEGER ) + 14 THEN - MAX ( DISTINCT 27 ) + 14 WHEN 20 THEN NULL ELSE NULL END * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 42 * 96 AS col0
----
4032

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6705
SELECT DISTINCT + 31 DIV + 79 + - ( - - 12 ) AS col2, + 5 + - CAST( NULL AS SIGNED )
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-6705
SELECT DISTINCT + 31 / + 79 + - ( - - 12 ) AS col2, + 5 + - CAST ( NULL AS INTEGER )
----
-12
NULL

query I rowsort
SELECT + 61 * + - 35 * - + 24 * + + 69
----
3535560

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT COUNT( * ) * - 96 + 5 + 54 + + 2 * - 11
----
-59

skipif mysql # not compatible
query I rowsort label-6707
SELECT COUNT ( * ) * - 96 + 5 + 54 + + 2 * - 11
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6708
SELECT - + NULLIF ( CAST( 91 AS SIGNED ), + 10 ), COUNT( * ) AS col2
----
-91
1

skipif mysql # not compatible
query II rowsort label-6708
SELECT - + NULLIF ( CAST ( 91 AS INTEGER ), + 10 ), COUNT ( * ) AS col2
----
-91
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6709
SELECT + 88 DIV + 68 + + - 52 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6709
SELECT + 88 / + 68 + + - 52 AS col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6710
SELECT 26 DIV + 62 * - - COUNT( * ) * + - COUNT( * ) + + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-6710
SELECT 26 / + 62 * - - COUNT ( * ) * + - COUNT ( * ) + + - 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL - + CASE 58 WHEN + 81 * + + 38 * - - 20 THEN NULL WHEN 45 * + - COUNT( * ) * + + 92 THEN + - 81 * 82 + 96 ELSE 18 * 56 END AS col2
----
-1008

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL - + CASE 58 WHEN + 81 * + + 38 * - - 20 THEN NULL WHEN 45 * + - COUNT ( * ) * + + 92 THEN + - 81 * 82 + 96 ELSE 18 * 56 END AS col2
----
-1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6712
SELECT CAST( NULL AS SIGNED ) + - - CASE + 88 WHEN - 32 * - 63 THEN ( - 89 ) * + - COUNT( * ) END - - 33 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT CAST ( NULL AS INTEGER ) + - - CASE + 88 WHEN - 32 * - 63 THEN ( - 89 ) * + - COUNT ( * ) END - - 33 * 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT ALL SUM( ALL - + 3 ) + + - 71 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL SUM ( ALL - + 3 ) + + - 71 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL - - COALESCE ( - 96, COUNT( * ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL - - COALESCE ( - 96, COUNT ( * ) ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT - COUNT( * ) + + 15 - 7
----
7

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT - COUNT ( * ) + + 15 - 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6716
SELECT DISTINCT + - COUNT( * ) + + + CAST( + + 7 AS SIGNED ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT + - COUNT ( * ) + + + CAST ( + + 7 AS INTEGER ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL - - 75 + + MAX( ALL + 21 ) + - 6 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL - - 75 + + MAX ( ALL + 21 ) + - 6 AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT ( + 72 ) + 72 + + 26 DIV - 87 * - 54 DIV - + 24 * - - 2
----
144

skipif mysql # not compatible
query I rowsort label-6718
SELECT ( + 72 ) + 72 + + 26 / - 87 * - 54 / - + 24 * - - 2
----
144

query I rowsort
SELECT + 4 + 65 * 59 col2
----
3839

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6720
SELECT + 79 * - SUM( ALL 1 ) + + 25 AS col1, CAST( NULL AS DECIMAL ) * - 74 AS col1
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-6720
SELECT + 79 * - SUM ( ALL 1 ) + + 25 AS col1, CAST ( NULL AS REAL ) * - 74 AS col1
----
-54
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), CAST( - - 15 AS SIGNED ) * 79 ) * CAST( 54 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), CAST ( - - 15 AS INTEGER ) * 79 ) * CAST ( 54 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT 17 * + + NULLIF ( + 48, + 62 ) * 91 + + 79 + COUNT( * ) + - 28 + - 69 AS col1
----
74239

skipif mysql # not compatible
query I rowsort label-6722
SELECT 17 * + + NULLIF ( + 48, + 62 ) * 91 + + 79 + COUNT ( * ) + - 28 + - 69 AS col1
----
74239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6723
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) - SUM( 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) - SUM ( 90 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6724
SELECT DISTINCT - 63 + + ( + 49 ) * - MIN( + - 81 ), - MAX( CAST( - 59 AS SIGNED ) ) - + 74 col0
----
3906
-15

skipif mysql # not compatible
query II rowsort label-6724
SELECT DISTINCT - 63 + + ( + 49 ) * - MIN ( + - 81 ), - MAX ( CAST ( - 59 AS INTEGER ) ) - + 74 col0
----
3906
-15

query I rowsort
SELECT ALL 26 * - 52
----
-1352

query I rowsort
SELECT 7 * - + 22 AS col0
----
-154

query I rowsort
SELECT ALL NULLIF ( + 1, - 87 ) - + 46 * - 7 * + 47 AS col1
----
15135

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT COUNT( * ) * 25 * 30
----
750

skipif mysql # not compatible
query I rowsort label-6728
SELECT COUNT ( * ) * 25 * 30
----
750

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT 26 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-6729
SELECT 26 / - 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6730
SELECT 61 DIV 57 col1
----
1

skipif mysql # not compatible
query I rowsort label-6730
SELECT 61 / 57 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6731
SELECT ALL 14 DIV 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL 14 / 62 AS col1
----
0

query I rowsort
SELECT 32 + - 24
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT COALESCE ( + CASE COUNT( * ) WHEN + 10 THEN + + 81 ELSE NULL END, + - 91 + 61 + MAX( ALL - + 59 ) * + ( + 82 ) * 39 ) * 88
----
-16606656

skipif mysql # not compatible
query I rowsort label-6733
SELECT COALESCE ( + CASE COUNT ( * ) WHEN + 10 THEN + + 81 ELSE NULL END, + - 91 + 61 + MAX ( ALL - + 59 ) * + ( + 82 ) * 39 ) * 88
----
-16606656

query I rowsort
SELECT DISTINCT 7 * - - 69
----
483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6735
SELECT ALL CAST( 4 AS SIGNED ) * - 26
----
-104

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL CAST ( 4 AS INTEGER ) * - 26
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6736
SELECT CAST( 23 AS SIGNED ) + - + 25 AS col0, ( 17 )
----
-2
17

skipif mysql # not compatible
query II rowsort label-6736
SELECT CAST ( 23 AS INTEGER ) + - + 25 AS col0, ( 17 )
----
-2
17

query I rowsort
SELECT DISTINCT - 86 * + + 41
----
-3526

query I rowsort
SELECT ALL + 52 * 13
----
676

query II rowsort
SELECT DISTINCT - 40, 78 AS col0
----
-40
78

query I rowsort
SELECT 99 * - 22 AS col2
----
-2178

query I rowsort
SELECT + 2 - - 80 - ( - + 4 ) AS col2
----
86

query I rowsort
SELECT ALL - 92 * 14
----
-1288

query I rowsort
SELECT ALL - + COALESCE ( + 82, 52 - 76 ) + 65 - - 41
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6744
SELECT ALL CAST( NULL AS SIGNED ) + + + 20 * + + 96 + - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL CAST ( NULL AS INTEGER ) + + + 20 * + + 96 + - 69 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 26 + + 1 + - 52 + + + 6 * + 9 * 79 * + COALESCE ( 20, + 64 ) AS col1
----
85295

onlyif mysql # aggregate syntax: 
query II rowsort label-6746
SELECT + 75 * MIN( + 86 ) AS col2, + 7 * - 91
----
6450
-637

skipif mysql # not compatible
query II rowsort label-6746
SELECT + 75 * MIN ( + 86 ) AS col2, + 7 * - 91
----
6450
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT DISTINCT + COALESCE ( + - CASE + - ( - 85 ) WHEN + COALESCE ( 96, - MAX( 47 ) / - MIN( ALL - 18 ) * - CASE - COUNT( * ) WHEN SUM( ALL + ( 54 ) ) THEN 85 / 31 - 46 ELSE NULL END ) THEN - 28 ELSE NULL END, MAX( DISTINCT + ( 90 ) ), ( - 41 ) ) * ( - COUNT( * ) ) + - 69 * 17
----
-1263

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT + COALESCE ( + - CASE + - ( - 85 ) WHEN + COALESCE ( 96, - MAX ( 47 ) / - MIN ( ALL - 18 ) * - CASE - COUNT ( * ) WHEN SUM ( ALL + ( 54 ) ) THEN 85 / 31 - 46 ELSE NULL END ) THEN - 28 ELSE NULL END, MAX ( DISTINCT + ( 90 ) ), ( - 41 ) ) * ( - COUNT ( * ) ) + - 69 * 17
----
-1263

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT 94 DIV 72 * - + 77 col0
----
-77

skipif mysql # not compatible
query I rowsort label-6748
SELECT 94 / 72 * - + 77 col0
----
-77

query I rowsort
SELECT 37 * - - 90
----
3330

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6750
SELECT CASE 5 WHEN + + CAST( NULL AS DECIMAL ) + + + 31 THEN NULL WHEN 35 * + 37 THEN NULL ELSE + 11 END AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6750
SELECT CASE 5 WHEN + + CAST ( NULL AS REAL ) + + + 31 THEN NULL WHEN 35 * + 37 THEN NULL ELSE + 11 END AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT ALL + ( 60 ) * + ( - 70 ) + SUM( DISTINCT - + 35 ) * + 20 + + 2 AS col1
----
-4898

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL + ( 60 ) * + ( - 70 ) + SUM ( DISTINCT - + 35 ) * + 20 + + 2 AS col1
----
-4898

query I rowsort
SELECT DISTINCT - 26 + 37 AS col0
----
11

query I rowsort
SELECT DISTINCT - + ( 12 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT DISTINCT - CAST( + + 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT - CAST ( + + 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT ALL - ( - 73 ) - + 61 * 37 - - - COUNT( * )
----
-2185

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - ( - 73 ) - + 61 * 37 - - - COUNT ( * )
----
-2185

query II rowsort
SELECT + 90, + 89 AS col0
----
90
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT ALL + COUNT( * ) * - 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + COUNT ( * ) * - 48 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT COUNT( * ) * - - 91 * + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-6758
SELECT COUNT ( * ) * - - 91 * + - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT ALL - MAX( ALL 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL - MAX ( ALL 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL - COUNT( * ) - + 88
----
-89

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL - COUNT ( * ) - + 88
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-6761
SELECT COUNT( * ) AS col0, 49 AS col2
----
1
49

skipif mysql # not compatible
query II rowsort label-6761
SELECT COUNT ( * ) AS col0, 49 AS col2
----
1
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6762
SELECT ALL - 81, ( - 5 ) + + - COUNT( * ) AS col2
----
-81
-6

skipif mysql # not compatible
query II rowsort label-6762
SELECT ALL - 81, ( - 5 ) + + - COUNT ( * ) AS col2
----
-81
-6

query I rowsort
SELECT 50 * + 39 - - ( + 2 )
----
1952

query I rowsort
SELECT 52 * 11 AS col2
----
572

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + SUM( + + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-6765
SELECT + SUM ( + + 31 )
----
31

query I rowsort
SELECT ALL - ( + NULLIF ( + - 99, - - 18 ) ) AS col2
----
99

query I rowsort
SELECT ALL 73 * - - 79
----
5767

query I rowsort
SELECT 36 + + 9
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6769
SELECT ALL - ( + 59 ) DIV 85 col1
----
0

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL - ( + 59 ) / 85 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6770
SELECT DISTINCT - CASE - NULLIF ( + - 86, - 33 - + 14 ) WHEN COUNT( * ) + - - CAST( NULL AS SIGNED ) THEN ( SUM( - 60 ) ) + 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT - CASE - NULLIF ( + - 86, - 33 - + 14 ) WHEN COUNT ( * ) + - - CAST ( NULL AS INTEGER ) THEN ( SUM ( - 60 ) ) + 44 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT - COUNT( * ) * + + 23 * + 71 + ( + - NULLIF ( - 7, COALESCE ( + 52, + COUNT( * ) ) - + 23 ) )
----
-1626

skipif mysql # not compatible
query I rowsort label-6771
SELECT - COUNT ( * ) * + + 23 * + 71 + ( + - NULLIF ( - 7, COALESCE ( + 52, + COUNT ( * ) ) - + 23 ) )
----
-1626

query I rowsort
SELECT DISTINCT - 69 * 6 * - - 85
----
-35190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6773
SELECT ALL COUNT( ALL - - CAST( NULL AS SIGNED ) ) AS col0, 31
----
0
31

skipif mysql # not compatible
query II rowsort label-6773
SELECT ALL COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0, 31
----
0
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ALL - MAX( + NULLIF ( - 24, + 38 ) ) * - 52
----
-1248

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL - MAX ( + NULLIF ( - 24, + 38 ) ) * - 52
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT SUM( - - 29 ) * + - ( 56 ) - + 63 + MIN( ALL - 90 ) - + 75 * - 2 * - - 73 AS col2
----
9173

skipif mysql # not compatible
query I rowsort label-6775
SELECT SUM ( - - 29 ) * + - ( 56 ) - + 63 + MIN ( ALL - 90 ) - + 75 * - 2 * - - 73 AS col2
----
9173

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6776
SELECT DISTINCT CASE - + 53 WHEN 44 + 88 * + COUNT( * ) * - - 53 * COUNT( * ) THEN CAST( COUNT( * ) AS DECIMAL ) WHEN - 29 * - - 5 THEN 48 - ( 78 ) * 74 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT CASE - + 53 WHEN 44 + 88 * + COUNT ( * ) * - - 53 * COUNT ( * ) THEN CAST ( COUNT ( * ) AS REAL ) WHEN - 29 * - - 5 THEN 48 - ( 78 ) * 74 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 19 + + 73 * 22 AS col2
----
1587

onlyif mysql # aggregate syntax: 
query II rowsort label-6778
SELECT - COUNT( * ) * + - COUNT( * ) AS col2, 26 AS col2
----
1
26

skipif mysql # not compatible
query II rowsort label-6778
SELECT - COUNT ( * ) * + - COUNT ( * ) AS col2, 26 AS col2
----
1
26

query II rowsort
SELECT - 69 AS col2, + 69
----
-69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT ALL 12 + + 36 * - MAX( 1 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL 12 + + 36 * - MAX ( 1 ) AS col2
----
-24

query I rowsort
SELECT - ( + 44 ) * - 20 * + 14
----
12320

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT + 87 + 59 + + MIN( 85 )
----
231

skipif mysql # not compatible
query I rowsort label-6782
SELECT + 87 + 59 + + MIN ( 85 )
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT + 96 * + 9 * 82 * COUNT( * ) AS col0
----
70848

skipif mysql # not compatible
query I rowsort label-6783
SELECT + 96 * + 9 * 82 * COUNT ( * ) AS col0
----
70848

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT DISTINCT + 74 + - ( - COUNT( * ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT + 74 + - ( - COUNT ( * ) ) AS col2
----
75

query I rowsort
SELECT DISTINCT ( - 49 ) col1
----
-49

query I rowsort
SELECT ALL - 99 + 61 AS col2
----
-38

query I rowsort
SELECT ALL 53 + 49 col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL + COUNT( - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL + COUNT ( - 11 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6789
SELECT DISTINCT CASE 30 WHEN - COUNT( * ) - - ( ( - 18 ) ) * 98 THEN - 82 / 47 WHEN 15 * 88 / - 21 + + 6 * 78 - 57 THEN 51 / + CAST( 12 / + 76 AS SIGNED ) + 37 END + + CASE - 14 - + CASE - 77 WHEN 79 THEN 64 + COUNT( * ) WHEN - 87 * 23 THEN - CAST( NULL AS SIGNED ) WHEN 74 + 93 THEN NULL END WHEN 34 + 45 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT CASE 30 WHEN - COUNT ( * ) - - ( ( - 18 ) ) * 98 THEN - 82 / 47 WHEN 15 * 88 / - 21 + + 6 * 78 - 57 THEN 51 / + CAST ( 12 / + 76 AS INTEGER ) + 37 END + + CASE - 14 - + CASE - 77 WHEN 79 THEN 64 + COUNT ( * ) WHEN - 87 * 23 THEN - CAST ( NULL AS INTEGER ) WHEN 74 + 93 THEN NULL END WHEN 34 + 45 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 80 * + 68
----
5440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6791
SELECT - CAST( ( 49 ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-6791
SELECT - CAST ( ( 49 ) AS INTEGER )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6792
SELECT + 98 + - 74 + + 52 / + 60 - - 56 - 96 * - CAST( NULL AS SIGNED ) / + + ( + - COUNT( * ) ) * MIN( ALL 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT + 98 + - 74 + + 52 / + 60 - - 56 - 96 * - CAST ( NULL AS INTEGER ) / + + ( + - COUNT ( * ) ) * MIN ( ALL 17 )
----
NULL

query I rowsort
SELECT DISTINCT - 47 * - + 34 AS col2
----
1598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6794
SELECT - 81 - + - 87 DIV 10 DIV COALESCE ( SUM( ALL + + 83 ), + 88 ) * - COUNT( * ) + - 27 AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-6794
SELECT - 81 - + - 87 / 10 / COALESCE ( SUM ( ALL + + 83 ), + 88 ) * - COUNT ( * ) + - 27 AS col1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT - 86 * + COALESCE ( + + COUNT( * ), - 13 * - 23 + + COUNT( * ) * + 63 + - COUNT( * ), 32 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-6795
SELECT - 86 * + COALESCE ( + + COUNT ( * ), - 13 * - 23 + + COUNT ( * ) * + 63 + - COUNT ( * ), 32 ) AS col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6796
SELECT ALL + 65 AS col2, CAST( + 27 AS SIGNED )
----
65
27

skipif mysql # not compatible
query II rowsort label-6796
SELECT ALL + 65 AS col2, CAST ( + 27 AS INTEGER )
----
65
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT + 25 + - COUNT( * ) col2
----
24

skipif mysql # not compatible
query I rowsort label-6797
SELECT + 25 + - COUNT ( * ) col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6798
SELECT ALL + 72 * + 50 + - + CAST( + COUNT( * ) AS SIGNED ) - + 1 AS col0
----
3598

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL + 72 * + 50 + - + CAST ( + COUNT ( * ) AS INTEGER ) - + 1 AS col0
----
3598

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL - + 56 * + 11 - 41 - - 78 + MIN( ALL + - ( ( - - 0 ) ) ) AS col1
----
-579

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL - + 56 * + 11 - 41 - - 78 + MIN ( ALL + - ( ( - - 0 ) ) ) AS col1
----
-579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6800
SELECT + + COUNT( * ) + - 31, - CASE 58 WHEN + - 4 * - + NULLIF ( 27, - - 23 ) + - + 25 THEN + - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN NULL ELSE - ( 54 ) END * CAST( 78 * 41 AS SIGNED ) + + 78 AS col2
----
-30
172770

skipif mysql # not compatible
query II rowsort label-6800
SELECT + + COUNT ( * ) + - 31, - CASE 58 WHEN + - 4 * - + NULLIF ( 27, - - 23 ) + - + 25 THEN + - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN NULL ELSE - ( 54 ) END * CAST ( 78 * 41 AS INTEGER ) + + 78 AS col2
----
-30
172770

query I rowsort
SELECT + - 59 * - 6 AS col2
----
354

query I rowsort
SELECT - 15 + 69 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT CASE - 82 WHEN + 52 * COUNT( ALL + - 81 ) + + 33 THEN 42 + 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT CASE - 82 WHEN + 52 * COUNT ( ALL + - 81 ) + + 33 THEN 42 + 82 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT DISTINCT + COUNT( * ) * + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT + COUNT ( * ) * + - 1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6805
SELECT + ( 14 ) AS col2, - COUNT( * )
----
14
-1

skipif mysql # not compatible
query II rowsort label-6805
SELECT + ( 14 ) AS col2, - COUNT ( * )
----
14
-1

query I rowsort
SELECT - 8 + 44 AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT - 96 DIV + 92 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6807
SELECT - 96 / + 92 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT NULLIF ( + + NULLIF ( - 45, + COUNT( + 44 ) + ( 13 ) - + 52 ), + 36 * - 24 )
----
-45

skipif mysql # not compatible
query I rowsort label-6808
SELECT NULLIF ( + + NULLIF ( - 45, + COUNT ( + 44 ) + ( 13 ) - + 52 ), + 36 * - 24 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT ALL - ( MAX( DISTINCT - COALESCE ( + 88, 56 ) ) ) * + 50 AS col1
----
4400

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL - ( MAX ( DISTINCT - COALESCE ( + 88, 56 ) ) ) * + 50 AS col1
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL + MAX( - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL + MAX ( - 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT - COUNT( * ) + + - ( + NULLIF ( + + 32, 51 ) ) * COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6811
SELECT - COUNT ( * ) + + - ( + NULLIF ( + + 32, 51 ) ) * COUNT ( * ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6812
SELECT + CAST( - 90 AS SIGNED ) AS col2, 95 col2
----
-90
95

skipif mysql # not compatible
query II rowsort label-6812
SELECT + CAST ( - 90 AS INTEGER ) AS col2, 95 col2
----
-90
95

query II rowsort
SELECT + 19 * + 36, - 22 * 6 + 20 col1
----
684
-112

query I rowsort
SELECT DISTINCT + COALESCE ( - ( 87 ), - 25 + - 8 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6815
SELECT ALL 51 * + 13 * - 14 + COUNT( * ) + + + 43 DIV - 75 AS col1
----
-9281

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL 51 * + 13 * - 14 + COUNT ( * ) + + + 43 / - 75 AS col1
----
-9281

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL 20 * - + COUNT( DISTINCT + 19 ) + - 20 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL 20 * - + COUNT ( DISTINCT + 19 ) + - 20 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT - MAX( DISTINCT 16 ) * + 53 + - + 79 AS col2
----
-927

skipif mysql # not compatible
query I rowsort label-6817
SELECT - MAX ( DISTINCT 16 ) * + 53 + - + 79 AS col2
----
-927

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT - 90 * COALESCE ( 15, + MAX( 23 ), + 52 * COUNT( * ) ) + 75 AS col1
----
-1275

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - 90 * COALESCE ( 15, + MAX ( 23 ), + 52 * COUNT ( * ) ) + 75 AS col1
----
-1275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6819
SELECT DISTINCT - AVG ( ALL 94 ) / - 9 + + 21 + - CASE WHEN NOT ( CAST( NULL AS SIGNED ) ) NOT IN ( - 86, + 99 * - 97 - ( 62 ) * COALESCE ( 52, + COUNT( * ) * - COUNT( * ) ) ) THEN 19 * + CAST( + 47 AS SIGNED ) WHEN - 1 BETWEEN CASE - AVG ( DISTINCT + 56 ) WHEN NULLIF ( + 25, + 14 ) THEN - NULLIF ( + ( MIN( 41 ) ), 77 ) + 79 * 1 WHEN + 92 / COALESCE ( 31 * COUNT( * ), - 68 ) THEN NULL END * - 1 AND + 94 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT - AVG ( ALL 94 ) / - 9 + + 21 + - CASE WHEN NOT ( CAST ( NULL AS INTEGER ) ) NOT IN ( - 86, + 99 * - 97 - ( 62 ) * COALESCE ( 52, + COUNT ( * ) * - COUNT ( * ) ) ) THEN 19 * + CAST ( + 47 AS INTEGER ) WHEN - 1 BETWEEN CASE - AVG ( DISTINCT + 56 ) WHEN NULLIF ( + 25, + 14 ) THEN - NULLIF ( + ( MIN ( 41 ) ), 77 ) + 79 * 1 WHEN + 92 / COALESCE ( 31 * COUNT ( * ), - 68 ) THEN NULL END * - 1 AND + 94 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + + 44 + 28 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL + 70 + 72 + - + SUM( 85 ) - + 15 + + + COUNT( * ) * + + 59 * - 31 * 45 + + MAX( - 74 ) * + + 34 AS col1
----
-84779

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL + 70 + 72 + - + SUM ( 85 ) - + 15 + + + COUNT ( * ) * + + 59 * - 31 * 45 + + MAX ( - 74 ) * + + 34 AS col1
----
-84779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6822
SELECT DISTINCT + 0 + - 60 DIV + COUNT( DISTINCT - 39 )
----
-60

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT + 0 + - 60 / + COUNT ( DISTINCT - 39 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT DISTINCT + COUNT( * ) + ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT + COUNT ( * ) + ( - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6824
SELECT + COALESCE ( 20, - 39 * + - ( - COUNT( 41 ) ), 83 DIV + 38 + 20 + + ( - + COUNT( * ) ) * - 13 ) + 55
----
75

skipif mysql # not compatible
query I rowsort label-6824
SELECT + COALESCE ( 20, - 39 * + - ( - COUNT ( 41 ) ), 83 / + 38 + 20 + + ( - + COUNT ( * ) ) * - 13 ) + 55
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT + ( - - ( - - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT + ( - - ( - - COUNT ( * ) ) )
----
1

query I rowsort
SELECT + - COALESCE ( 29, + 38 ) + 31
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT + MIN( DISTINCT 72 ) * 27
----
1944

skipif mysql # not compatible
query I rowsort label-6827
SELECT + MIN ( DISTINCT 72 ) * 27
----
1944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6828
SELECT ALL + ( CAST( + + 23 AS SIGNED ) ), + COUNT( * ) AS col1
----
23
1

skipif mysql # not compatible
query II rowsort label-6828
SELECT ALL + ( CAST ( + + 23 AS INTEGER ) ), + COUNT ( * ) AS col1
----
23
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6829
SELECT + 32 * 4 + + CASE + 58 WHEN - COUNT( 0 ) * - + 74 - - 31 THEN - 80 ELSE - 45 END AS col1, 80 DIV - + 9
----
83
-8

skipif mysql # not compatible
query II rowsort label-6829
SELECT + 32 * 4 + + CASE + 58 WHEN - COUNT ( 0 ) * - + 74 - - 31 THEN - 80 ELSE - 45 END AS col1, 80 / - + 9
----
83
-8

query I rowsort
SELECT CASE + 94 WHEN 56 THEN NULL ELSE + 61 END
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6831
SELECT ALL 45 * - - COALESCE ( - 77, - COUNT( * ) DIV - - COUNT( * ) * - 88 ) col2
----
-3465

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL 45 * - - COALESCE ( - 77, - COUNT ( * ) / - - COUNT ( * ) * - 88 ) col2
----
-3465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6832
SELECT - 50 * + 50 * + CAST( - 36 AS SIGNED ) * - SUM( - + 1 ) AS col0, + 26 * + 9 + - 16
----
90000
218

skipif mysql # not compatible
query II rowsort label-6832
SELECT - 50 * + 50 * + CAST ( - 36 AS INTEGER ) * - SUM ( - + 1 ) AS col0, + 26 * + 9 + - 16
----
90000
218

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6833
SELECT - 55 DIV + 3 - COUNT( * ), 55 * - 45 + - CASE - - 29 WHEN + 41 THEN + 44 ELSE NULL END * + - 88 AS col2
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-6833
SELECT - 55 / + 3 - COUNT ( * ), 55 * - 45 + - CASE - - 29 WHEN + 41 THEN + 44 ELSE NULL END * + - 88 AS col2
----
-19
NULL

query I rowsort
SELECT + 85 * - 62
----
-5270

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL MIN( + 18 ) * - 0 - + 48 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL MIN ( + 18 ) * - 0 - + 48 AS col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6836
SELECT CAST( AVG ( - NULLIF ( + ( - CAST( - 30 AS SIGNED ) ), 41 - + 83 ) ) AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-6836
SELECT CAST ( AVG ( - NULLIF ( + ( - CAST ( - 30 AS INTEGER ) ), 41 - + 83 ) ) AS INTEGER ) AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6837
SELECT CAST( - ( + 92 ) AS SIGNED ) AS col0, 39 * + + ( 59 )
----
-92
2301

skipif mysql # not compatible
query II rowsort label-6837
SELECT CAST ( - ( + 92 ) AS INTEGER ) AS col0, 39 * + + ( 59 )
----
-92
2301

query I rowsort
SELECT + 55 * + + CASE 50 WHEN - - 11 THEN - 29 END * - + 18 * 90 * - - COALESCE ( + 17, + + 1, - 5 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT DISTINCT + 14 DIV + 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT + 14 / + 26 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT DISTINCT ( COALESCE ( + ( - NULLIF ( - NULLIF ( + 14, - 15 ), - + 11 + - 96 + + + 16 ) ), 18, - SUM( DISTINCT 45 ) * 10 ) ) + 4
----
18

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT ( COALESCE ( + ( - NULLIF ( - NULLIF ( + 14, - 15 ), - + 11 + - 96 + + + 16 ) ), 18, - SUM ( DISTINCT 45 ) * 10 ) ) + 4
----
18

query I rowsort
SELECT - 10 * + 66 + 58 * - 66
----
-4488

query II rowsort
SELECT 71 * 82 * + 2 AS col1, COALESCE ( - 15, - 92 )
----
11644
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6843
SELECT ALL 31 + + NULLIF ( + + COUNT( * ), + 57 ) + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + SUM( + - 51 ) * 74 / 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL 31 + + NULLIF ( + + COUNT ( * ), + 57 ) + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + SUM ( + - 51 ) * 74 / 22 AS col1
----
NULL

query II rowsort
SELECT + 21 AS col0, 73 col0
----
21
73

query I rowsort
SELECT 24 * + 81 + + 14
----
1958

query II rowsort
SELECT ALL - 22, + 25 col0
----
-22
25

query I rowsort
SELECT ALL + 97 + + - 57 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT ( 73 ) + 98 * SUM( DISTINCT 49 )
----
4875

skipif mysql # not compatible
query I rowsort label-6848
SELECT ( 73 ) + 98 * SUM ( DISTINCT 49 )
----
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT ALL - COUNT( * ) + - + 45 + 4 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL - COUNT ( * ) + - + 45 + 4 AS col2
----
-42

query II rowsort
SELECT DISTINCT + 30 * - + ( 10 ) AS col2, ( + - 16 )
----
-300
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT DISTINCT + - CASE + COUNT( * ) WHEN 43 THEN + ( - MAX( + 1 ) ) / 14 - + 55 WHEN - 40 THEN 37 / 34 + - 45 + + + 41 * MAX( DISTINCT - ( - 64 ) ) END + - 27 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT + - CASE + COUNT ( * ) WHEN 43 THEN + ( - MAX ( + 1 ) ) / 14 - + 55 WHEN - 40 THEN 37 / 34 + - 45 + + + 41 * MAX ( DISTINCT - ( - 64 ) ) END + - 27 * 67
----
NULL

query I rowsort
SELECT - 18 + + 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL - + COUNT( * ) - - - COUNT( * ) * + ( + 0 ) - + + 35 + 85 * - MAX( DISTINCT 88 ) AS col1
----
-7516

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - + COUNT ( * ) - - - COUNT ( * ) * + ( + 0 ) - + + 35 + 85 * - MAX ( DISTINCT 88 ) AS col1
----
-7516

query I rowsort
SELECT ALL ( - - 59 ) col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT - CASE 60 WHEN - COUNT( * ) + + 25 - - + 60 * + COUNT( * ) * + 93 * - COUNT( * ) THEN + 18 * + + 8 * + 13 + + 43 - - ( - 8 ) + - 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6855
SELECT - CASE 60 WHEN - COUNT ( * ) + + 25 - - + 60 * + COUNT ( * ) * + 93 * - COUNT ( * ) THEN + 18 * + + 8 * + 13 + + 43 - - ( - 8 ) + - 11 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL + - SUM( 16 ) * - - 75 AS col1
----
-1200

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL + - SUM ( 16 ) * - - 75 AS col1
----
-1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT 92 * CAST( NULL AS SIGNED ) + - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT 92 * CAST ( NULL AS INTEGER ) + - 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6858
SELECT ALL + - ( + COUNT( * ) ) DIV + 8 * + 26 - - + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL + - ( + COUNT ( * ) ) / + 8 * + 26 - - + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT DISTINCT MIN( ALL - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT MIN ( ALL - 47 )
----
-47

query I rowsort
SELECT ALL + - 62 * - 33 AS col1
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT SUM( + - 24 ) + 62
----
38

skipif mysql # not compatible
query I rowsort label-6861
SELECT SUM ( + - 24 ) + 62
----
38

query I rowsort
SELECT + 43 * + 49 AS col0
----
2107

onlyif mysql # DIV for integer division: 
query I rowsort label-6863
SELECT 20 DIV - + 41
----
0

skipif mysql # not compatible
query I rowsort label-6863
SELECT 20 / - + 41
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6864
SELECT ( - 67 ) DIV 59
----
-1

skipif mysql # not compatible
query I rowsort label-6864
SELECT ( - 67 ) / 59
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT COUNT( * ) + - + COUNT( DISTINCT + NULLIF ( - 44, + 93 + + + 37 + 12 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT COUNT ( * ) + - + COUNT ( DISTINCT + NULLIF ( - 44, + 93 + + + 37 + 12 ) )
----
0

query I rowsort
SELECT ( - 50 ) - - + ( ( - 49 ) ) * - 83
----
4017

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT 36 + + + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6867
SELECT 36 + + + COUNT ( * ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL 50 * COUNT( - 10 )
----
50

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL 50 * COUNT ( - 10 )
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-6869
SELECT ALL - NULLIF ( - 88, + 77 ) + - COUNT( * ), - CASE + ( 83 ) WHEN - COUNT( * ) THEN + - COUNT( * ) * - 26 + + - 35 + 23 + - 47 + 10 - + 99 * + ( COUNT( * ) ) END - - 57 / - ( 45 ) AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6869
SELECT ALL - NULLIF ( - 88, + 77 ) + - COUNT ( * ), - CASE + ( 83 ) WHEN - COUNT ( * ) THEN + - COUNT ( * ) * - 26 + + - 35 + 23 + - 47 + 10 - + 99 * + ( COUNT ( * ) ) END - - 57 / - ( 45 ) AS col2
----
87
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6870
SELECT DISTINCT + 73 + - CAST( + 28 AS SIGNED ) * + ( + 82 ) + - + 87 * 55 + + - ( - COUNT( * ) ) AS col0
----
-7007

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT + 73 + - CAST ( + 28 AS INTEGER ) * + ( + 82 ) + - + 87 * 55 + + - ( - COUNT ( * ) ) AS col0
----
-7007

query I rowsort
SELECT ALL 43 + - + 35 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT + NULLIF ( 41, COUNT( * ) ) * - 84 + - 15 AS col2
----
-3459

skipif mysql # not compatible
query I rowsort label-6872
SELECT + NULLIF ( 41, COUNT ( * ) ) * - 84 + - 15 AS col2
----
-3459

query I rowsort
SELECT DISTINCT 90 * - 29 AS col2
----
-2610

query I rowsort
SELECT DISTINCT 49 + + 72
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL 7 + 5 + + - 74 - COUNT( ALL 18 ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL 7 + 5 + + - 74 - COUNT ( ALL 18 ) col0
----
-63

query I rowsort
SELECT 90 + + - ( - 84 )
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT ALL 84 + + ( + COUNT( * ) ) * + 15 + - 66 * - 69 + + 75 + + CASE 31 WHEN - 83 THEN 28 * + COUNT( * ) + + 61 WHEN - + 70 * COUNT( * ) THEN 14 END + + 21 * - COUNT( * ) / - 44 * 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL 84 + + ( + COUNT ( * ) ) * + 15 + - 66 * - 69 + + 75 + + CASE 31 WHEN - 83 THEN 28 * + COUNT ( * ) + + 61 WHEN - + 70 * COUNT ( * ) THEN 14 END + + 21 * - COUNT ( * ) / - 44 * 18 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 42 + + - 71
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT + COALESCE ( + + 55, + 87 ) * COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT + COALESCE ( + + 55, + 87 ) * COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL COUNT( 43 ) + + + 32 + - - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL COUNT ( 43 ) + + + 32 + - - COUNT ( * )
----
34

query I rowsort
SELECT ALL 89 * + 77 AS col2
----
6853

onlyif mysql # aggregate syntax: 
query II rowsort label-6882
SELECT DISTINCT 6 + + COUNT( * ), - ( - COUNT( * ) ) AS col1
----
7
1

skipif mysql # not compatible
query II rowsort label-6882
SELECT DISTINCT 6 + + COUNT ( * ), - ( - COUNT ( * ) ) AS col1
----
7
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6883
SELECT ALL + 53 - CAST( 70 AS SIGNED ) + - + 97 AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL + 53 - CAST ( 70 AS INTEGER ) + - + 97 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT 58 * - COUNT( * ) - - ( + - COUNT( - - 36 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-6884
SELECT 58 * - COUNT ( * ) - - ( + - COUNT ( - - 36 ) )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6885
SELECT DISTINCT 77 DIV SUM( - + 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT 77 / SUM ( - + 79 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6886
SELECT ALL + CAST( 35 AS SIGNED ) * 90 AS col0
----
3150

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL + CAST ( 35 AS INTEGER ) * 90 AS col0
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT ( + CASE 77 WHEN 40 THEN + COUNT( * ) END ) - COUNT( * ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT ( + CASE 77 WHEN 40 THEN + COUNT ( * ) END ) - COUNT ( * ) - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6888
SELECT + CAST( NULL AS DECIMAL ) * + + 19 * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6888
SELECT + CAST ( NULL AS REAL ) * + + 19 * + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT 68 + MIN( ALL + ( - 12 ) ) * - 86
----
1100

skipif mysql # not compatible
query I rowsort label-6889
SELECT 68 + MIN ( ALL + ( - 12 ) ) * - 86
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - + SUM( + - 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6890
SELECT - + SUM ( + - 71 ) AS col2
----
71

query I rowsort
SELECT - + 14 col2
----
-14

query I rowsort
SELECT DISTINCT + 99 * - + 58 col1
----
-5742

query I rowsort
SELECT - ( 19 ) AS col1
----
-19

query II rowsort
SELECT + COALESCE ( + 51, - 96 ) + - - 4 AS col1, 97 * + 28 col0
----
55
2716

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT - - MAX( ALL - 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-6895
SELECT - - MAX ( ALL - 24 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ( - MAX( - + 93 ) ) * - 49
----
-4557

skipif mysql # not compatible
query I rowsort label-6896
SELECT ( - MAX ( - + 93 ) ) * - 49
----
-4557

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6897
SELECT - - CASE - - SUM( ALL + 69 ) WHEN ( + - 80 ) * + + 47 * COUNT( * ) + + 22 + + - 71 - - CAST( - 54 AS SIGNED ) THEN + 78 ELSE - ( 65 ) * NULLIF ( - 56, - CASE - 37 WHEN 38 THEN NULL ELSE - 5 + 17 END + CASE - 56 WHEN 52 + + 21 * + 96 THEN NULL WHEN + 50 + + 42 THEN - ( 23 ) + - CASE - 77 WHEN 95 THEN COUNT( ALL NULLIF ( - 46, - CAST( NULL AS SIGNED ) + 29 ) ) END END * 60 ) + - ( 84 + + 49 * + COUNT( * ) ) END AS col0
----
3507

skipif mysql # not compatible
query I rowsort label-6897
SELECT - - CASE - - SUM ( ALL + 69 ) WHEN ( + - 80 ) * + + 47 * COUNT ( * ) + + 22 + + - 71 - - CAST ( - 54 AS INTEGER ) THEN + 78 ELSE - ( 65 ) * NULLIF ( - 56, - CASE - 37 WHEN 38 THEN NULL ELSE - 5 + 17 END + CASE - 56 WHEN 52 + + 21 * + 96 THEN NULL WHEN + 50 + + 42 THEN - ( 23 ) + - CASE - 77 WHEN 95 THEN COUNT ( ALL NULLIF ( - 46, - CAST ( NULL AS INTEGER ) + 29 ) ) END END * 60 ) + - ( 84 + + 49 * + COUNT ( * ) ) END AS col0
----
3507

query I rowsort
SELECT ALL + 32 * 58
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT ALL ( - 0 ) + 46 * + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL ( - 0 ) + 46 * + + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT DISTINCT + 14 + + COUNT( DISTINCT 52 ) DIV 58
----
14

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT + 14 + + COUNT ( DISTINCT 52 ) / 58
----
14

query I rowsort
SELECT ALL + 96 + + - 44 col0
----
52

query I rowsort
SELECT DISTINCT - 14 + 23
----
9

query I rowsort
SELECT NULLIF ( - + 64, + 71 ) AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT 60 DIV 78 - - 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6904
SELECT 60 / 78 - - 14 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT + 19 * - COUNT( * ) * + 79 * + COUNT( * ) AS col1
----
-1501

skipif mysql # not compatible
query I rowsort label-6905
SELECT + 19 * - COUNT ( * ) * + 79 * + COUNT ( * ) AS col1
----
-1501

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT + COUNT( DISTINCT - - 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6906
SELECT + COUNT ( DISTINCT - - 24 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT - COUNT( ( + 54 ) ) * + 21 col2
----
-21

skipif mysql # not compatible
query I rowsort label-6907
SELECT - COUNT ( ( + 54 ) ) * + 21 col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT ALL ( - COALESCE ( + - 33, + MIN( ALL - 90 ) + 14 ) ) * + 77 + + ( - 35 )
----
2506

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL ( - COALESCE ( + - 33, + MIN ( ALL - 90 ) + 14 ) ) * + 77 + + ( - 35 )
----
2506

query I rowsort
SELECT - 83 * 18 AS col1
----
-1494

query I rowsort
SELECT DISTINCT 95 * + 23 AS col2
----
2185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6911
SELECT ALL + CASE + 97 WHEN - - 2 - - CASE 72 WHEN - - 89 * 20 + + - 82 + + 59 + - - COALESCE ( 3, + 54 * - 89 + - - 47 + + - 32 ) / COALESCE ( + CASE - 88 WHEN 1 * + CASE + 26 WHEN 88 THEN + 61 WHEN - 91 THEN - 72 END THEN + 55 END + 69 * CAST( 53 * 38 AS SIGNED ), 52 / - 17, + COUNT( * ) ) THEN 75 + - ( + 44 ) WHEN - 41 - COALESCE ( 94, 86 ) * 12 THEN - COUNT( 90 ) END THEN + 82 + - 25 ELSE NULL END * + SUM( DISTINCT 31 ) - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL + CASE + 97 WHEN - - 2 - - CASE 72 WHEN - - 89 * 20 + + - 82 + + 59 + - - COALESCE ( 3, + 54 * - 89 + - - 47 + + - 32 ) / COALESCE ( + CASE - 88 WHEN 1 * + CASE + 26 WHEN 88 THEN + 61 WHEN - 91 THEN - 72 END THEN + 55 END + 69 * CAST ( 53 * 38 AS INTEGER ), 52 / - 17, + COUNT ( * ) ) THEN 75 + - ( + 44 ) WHEN - 41 - COALESCE ( 94, 86 ) * 12 THEN - COUNT ( 90 ) END THEN + 82 + - 25 ELSE NULL END * + SUM ( DISTINCT 31 ) - 82 AS col1
----
NULL

query I rowsort
SELECT ALL + ( 86 ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6913
SELECT + 79 * - - CAST( NULL AS SIGNED ) + + 82 AS col1, 44 AS col0
----
NULL
44

skipif mysql # not compatible
query II rowsort label-6913
SELECT + 79 * - - CAST ( NULL AS INTEGER ) + + 82 AS col1, 44 AS col0
----
NULL
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6914
SELECT 16 * + - COUNT( * ) + - + CAST( NULL AS SIGNED ) - - 78 * + - NULLIF ( + 14, + + 26 ) * - - 14 - - - AVG ( + 16 ) + + 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT 16 * + - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) - - 78 * + - NULLIF ( + 14, + + 26 ) * - - 14 - - - AVG ( + 16 ) + + 48 col2
----
NULL

query I rowsort
SELECT + - COALESCE ( - 12, - - ( - 74 ) ) * + 69 * 95 + + 93 + + - 59
----
78694

query I rowsort
SELECT DISTINCT - 19 * - 40 AS col2
----
760

onlyif mysql # aggregate syntax: 
query II rowsort label-6917
SELECT ALL + 32, 65 + - ( COUNT( * ) ) AS col1
----
32
64

skipif mysql # not compatible
query II rowsort label-6917
SELECT ALL + 32, 65 + - ( COUNT ( * ) ) AS col1
----
32
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT + 98 * + COUNT( * ) col2
----
98

skipif mysql # not compatible
query I rowsort label-6918
SELECT + 98 * + COUNT ( * ) col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6919
SELECT + + 0 + + 94 / - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT + + 0 + + 94 / - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 26 + + 16
----
-10

query II rowsort
SELECT + ( + - 17 ) - - 55 col1, 97 - + 97 AS col1
----
38
0

query I rowsort
SELECT + 83 * - 40 AS col1
----
-3320

query I rowsort
SELECT ALL 22 * + 77
----
1694

onlyif mysql # DIV for integer division: 
query I rowsort label-6924
SELECT + ( - 63 ) DIV 44 * 49
----
-49

skipif mysql # not compatible
query I rowsort label-6924
SELECT + ( - 63 ) / 44 * 49
----
-49

query I rowsort
SELECT ALL 86 + - ( + 85 )
----
1

query I rowsort
SELECT DISTINCT - 82 + - 96 col0
----
-178

query I rowsort
SELECT ALL + 27 + + + 77 * 69 AS col2
----
5340

query I rowsort
SELECT - 50 - + 23
----
-73

query I rowsort
SELECT - ( 15 ) + - 34 col2
----
-49

query II rowsort
SELECT 76 AS col0, + 62 AS col1
----
76
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT - ( 98 ) * + + 87 + + 37 + ( - + COALESCE ( 91, + CAST( NULL AS SIGNED ) ) )
----
-8580

skipif mysql # not compatible
query I rowsort label-6931
SELECT - ( 98 ) * + + 87 + + 37 + ( - + COALESCE ( 91, + CAST ( NULL AS INTEGER ) ) )
----
-8580

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT + 38 + - + 34 - ( + NULLIF ( 41, - - 49 + CASE + 71 WHEN + 25 - MAX( - ( - 74 ) ) THEN + 87 * - 64 * + + 21 WHEN + 33 * COALESCE ( MAX( DISTINCT - 50 ), 8, 97 ) THEN NULL WHEN - COUNT( * ) THEN NULL END ) ) + + 45 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6932
SELECT + 38 + - + 34 - ( + NULLIF ( 41, - - 49 + CASE + 71 WHEN + 25 - MAX ( - ( - 74 ) ) THEN + 87 * - 64 * + + 21 WHEN + 33 * COALESCE ( MAX ( DISTINCT - 50 ), 8, 97 ) THEN NULL WHEN - COUNT ( * ) THEN NULL END ) ) + + 45 AS col0
----
8

query I rowsort
SELECT ALL + 65 + + 33 col1
----
98

query I rowsort
SELECT + 14 + + 95 - 85 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT - COALESCE ( - - 32, + 91 * - 65 * ( SUM( - 29 ) ) ) - - 50
----
18

skipif mysql # not compatible
query I rowsort label-6935
SELECT - COALESCE ( - - 32, + 91 * - 65 * ( SUM ( - 29 ) ) ) - - 50
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6936
SELECT ALL ( CAST( + AVG ( 8 ) AS SIGNED ) ) AS col2, - 57 + + + 93 + + 71 - 1 + - 32 + + 18 + + CASE 64 WHEN - 99 THEN + 85 + + 28 ELSE NULL END * 26 + 44 / 90 AS col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-6936
SELECT ALL ( CAST ( + AVG ( 8 ) AS INTEGER ) ) AS col2, - 57 + + + 93 + + 71 - 1 + - 32 + + 18 + + CASE 64 WHEN - 99 THEN + 85 + + 28 ELSE NULL END * 26 + 44 / 90 AS col2
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT - CASE + NULLIF ( 99, 28 / + - 29 * + COALESCE ( - 62, - 53 ) + + + 98 ) WHEN + 1 / - 51 + - - 51 + 62 * + + ( 83 ) * + 44 * + COUNT( * ) THEN ( - 13 ) WHEN - 95 THEN + ( 31 ) END + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6937
SELECT - CASE + NULLIF ( 99, 28 / + - 29 * + COALESCE ( - 62, - 53 ) + + + 98 ) WHEN + 1 / - 51 + - - 51 + 62 * + + ( 83 ) * + 44 * + COUNT ( * ) THEN ( - 13 ) WHEN - 95 THEN + ( 31 ) END + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT ALL 72 - + - 99 * + - MAX( - 64 ) * + 33 * - COUNT( * )
----
-209016

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL 72 - + - 99 * + - MAX ( - 64 ) * + 33 * - COUNT ( * )
----
-209016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6939
SELECT DISTINCT 29 DIV - - MAX( + + 21 ) - - + 96 - 35
----
62

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT 29 / - - MAX ( + + 21 ) - - + 96 - 35
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6940
SELECT DISTINCT + COALESCE ( - 73, CASE - - 93 WHEN - 56 THEN NULL WHEN + + 79 + - 8 THEN ( NULLIF ( - 90, - + 58 DIV + MAX( DISTINCT - - 61 ) * + 36 - + + COUNT( + + 48 ) ) ) ELSE NULL END DIV 89 )
----
-73

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT + COALESCE ( - 73, CASE - - 93 WHEN - 56 THEN NULL WHEN + + 79 + - 8 THEN ( NULLIF ( - 90, - + 58 / + MAX ( DISTINCT - - 61 ) * + 36 - + + COUNT ( + + 48 ) ) ) ELSE NULL END / 89 )
----
-73

query I rowsort
SELECT ALL - 65 * - 68 AS col0
----
4420

query I rowsort
SELECT - 60 + - ( - - 63 ) AS col0
----
-123

query I rowsort
SELECT ALL - 93 * - 28 AS col1
----
2604

onlyif mysql # aggregate syntax: 
query II rowsort label-6944
SELECT ALL + COUNT( * ), - 53 AS col1
----
1
-53

skipif mysql # not compatible
query II rowsort label-6944
SELECT ALL + COUNT ( * ), - 53 AS col1
----
1
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6945
SELECT + 97 * + ( - ( + + COUNT( * ) ) ) + - COALESCE ( 19, - - CAST( - 22 AS SIGNED ), + - CASE + 46 WHEN 4 THEN NULL ELSE - - 80 * + NULLIF ( - 99, NULLIF ( + 82, - NULLIF ( 86, 0 * - ( ( 6 ) * - 14 ) ) ) ) + + 36 END * 57 ) + COUNT( * )
----
-115

skipif mysql # not compatible
query I rowsort label-6945
SELECT + 97 * + ( - ( + + COUNT ( * ) ) ) + - COALESCE ( 19, - - CAST ( - 22 AS INTEGER ), + - CASE + 46 WHEN 4 THEN NULL ELSE - - 80 * + NULLIF ( - 99, NULLIF ( + 82, - NULLIF ( 86, 0 * - ( ( 6 ) * - 14 ) ) ) ) + + 36 END * 57 ) + COUNT ( * )
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6946
SELECT + CAST( + 97 AS SIGNED ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6946
SELECT + CAST ( + 97 AS INTEGER ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6947
SELECT CAST( NULL AS SIGNED ), - MIN( DISTINCT - - 85 ) col1
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-6947
SELECT CAST ( NULL AS INTEGER ), - MIN ( DISTINCT - - 85 ) col1
----
NULL
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6948
SELECT 2 DIV 78 + + 35 * + - 80
----
-2800

skipif mysql # not compatible
query I rowsort label-6948
SELECT 2 / 78 + + 35 * + - 80
----
-2800

onlyif mysql # DIV for integer division: 
query I rowsort label-6949
SELECT - 24 DIV 22
----
-1

skipif mysql # not compatible
query I rowsort label-6949
SELECT - 24 / 22
----
-1

query II rowsort
SELECT + - 21, 50 AS col2
----
-21
50

query I rowsort
SELECT - + 54 * 5 + - 28 AS col2
----
-298

query II rowsort
SELECT DISTINCT + 26, 46 AS col1
----
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT COUNT( NULLIF ( + 86, + ( 27 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6953
SELECT COUNT ( NULLIF ( + 86, + ( 27 ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT - COUNT( * ) * 1 * + 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6954
SELECT - COUNT ( * ) * 1 * + 43 AS col1
----
-43

query I rowsort
SELECT + 96 * 62
----
5952

query II rowsort
SELECT + 14 AS col1, 99 AS col0
----
14
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT - SUM( ALL + 26 ) - - 38 + - 36 * 80 * MAX( + + 29 ) * - 73 + 21 AS col1
----
6096993

skipif mysql # not compatible
query I rowsort label-6957
SELECT - SUM ( ALL + 26 ) - - 38 + - 36 * 80 * MAX ( + + 29 ) * - 73 + 21 AS col1
----
6096993

query I rowsort
SELECT - + 52 + - 16 + + 15 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT DISTINCT - 79 * - 83 * - 72 + SUM( + 71 ) * + 8 + + ( + 21 )
----
-471515

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT - 79 * - 83 * - 72 + SUM ( + 71 ) * + 8 + + ( + 21 )
----
-471515

query II rowsort
SELECT ALL + 3, - 91 AS col2
----
3
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6961
SELECT - - COUNT( * ) AS col0, + 36 + + 11
----
1
47

skipif mysql # not compatible
query II rowsort label-6961
SELECT - - COUNT ( * ) AS col0, + 36 + + 11
----
1
47

query II rowsort
SELECT ALL 68 + 97 AS col1, 26
----
165
26

query II rowsort
SELECT ALL 27 + + 24, 83 AS col0
----
51
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6964
SELECT MAX( - - 29 ) + 93, - 61 AS col0
----
122
-61

skipif mysql # not compatible
query II rowsort label-6964
SELECT MAX ( - - 29 ) + 93, - 61 AS col0
----
122
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT ALL 32 + - AVG ( DISTINCT - 66 ) + - 62 + + CAST( NULL AS SIGNED ) * - 63 + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL 32 + - AVG ( DISTINCT - 66 ) + - 62 + + CAST ( NULL AS INTEGER ) * - 63 + + 26
----
NULL

query I rowsort
SELECT ALL 91 + 23
----
114

query I rowsort
SELECT DISTINCT 67 - - 82 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT CASE - ( + MIN( COALESCE ( - ( + 51 ), + 39 / 69 - - ( + 55 ) ) ) ) WHEN + 36 + + + 10 * + + 57 THEN NULL ELSE + + COUNT( * ) + + 8 END * - + 15 * - + 79 AS col2
----
10665

skipif mysql # not compatible
query I rowsort label-6968
SELECT CASE - ( + MIN ( COALESCE ( - ( + 51 ), + 39 / 69 - - ( + 55 ) ) ) ) WHEN + 36 + + + 10 * + + 57 THEN NULL ELSE + + COUNT ( * ) + + 8 END * - + 15 * - + 79 AS col2
----
10665

onlyif mysql # aggregate syntax: 
query II rowsort label-6969
SELECT ALL 85 * + + 98 col0, - SUM( DISTINCT - 3 ) + - + 97 + + + 18
----
8330
-76

skipif mysql # not compatible
query II rowsort label-6969
SELECT ALL 85 * + + 98 col0, - SUM ( DISTINCT - 3 ) + - + 97 + + + 18
----
8330
-76

query I rowsort
SELECT DISTINCT 20 * - 76 AS col1
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT ALL 78 - + ( SUM( 61 ) )
----
17

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL 78 - + ( SUM ( 61 ) )
----
17

query II rowsort
SELECT DISTINCT 66 * - + 19 AS col2, 67 * 84 AS col1
----
-1254
5628

query I rowsort
SELECT ALL 25 * 87
----
2175

query I rowsort
SELECT 67 * - ( - 21 )
----
1407

query I rowsort
SELECT 21 * - 35 * + 1 * - + 33 * - 36 AS col0
----
-873180

query I rowsort
SELECT ( - + ( + + 46 ) )
----
-46

query I rowsort
SELECT ALL - - 95 * - 31 * + 0
----
0

query II rowsort
SELECT ( + 74 ), 91 * + 35 AS col2
----
74
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT - 99 * - - 72 - COUNT( * )
----
-7129

skipif mysql # not compatible
query I rowsort label-6979
SELECT - 99 * - - 72 - COUNT ( * )
----
-7129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6980
SELECT - 20 * 6 + - 74 + + MIN( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6980
SELECT - 20 * 6 + - 74 + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT - CASE - COALESCE ( + 55, 36 * - 19 ) WHEN - 21 THEN - 46 * - MIN( DISTINCT - - NULLIF ( - + 79, + NULLIF ( + - 74, - 70 ) ) ) WHEN + - 34 THEN 99 * - + COUNT( 91 ) END - - 33 * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT - CASE - COALESCE ( + 55, 36 * - 19 ) WHEN - 21 THEN - 46 * - MIN ( DISTINCT - - NULLIF ( - + 79, + NULLIF ( + - 74, - 70 ) ) ) WHEN + - 34 THEN 99 * - + COUNT ( 91 ) END - - 33 * 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6982
SELECT + 80 DIV COALESCE ( COUNT( - - NULLIF ( 47, + + 56 DIV - + 3 + 40 DIV - 50 ) ), AVG ( DISTINCT - 9 ), 97 * + 95 + 26 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6982
SELECT + 80 / COALESCE ( COUNT ( - - NULLIF ( 47, + + 56 / - + 3 + 40 / - 50 ) ), AVG ( DISTINCT - 9 ), 97 * + 95 + 26 ) AS col1
----
80

query I rowsort
SELECT DISTINCT + 37 + + 33 * 24 + + 16
----
845

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT ALL - 78 + 9 + - MAX( - 51 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL - 78 + 9 + - MAX ( - 51 ) AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6985
SELECT COUNT( - + CAST( + - 12 AS SIGNED ) ) * + 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6985
SELECT COUNT ( - + CAST ( + - 12 AS INTEGER ) ) * + 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT - COUNT( * ) * + - 77 + + 47 + - - SUM( ALL - 31 ) * - + MAX( DISTINCT + 67 )
----
2201

skipif mysql # not compatible
query I rowsort label-6986
SELECT - COUNT ( * ) * + - 77 + + 47 + - - SUM ( ALL - 31 ) * - + MAX ( DISTINCT + 67 )
----
2201

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT - COUNT( * ) * COUNT( * ) + - 33 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6987
SELECT - COUNT ( * ) * COUNT ( * ) + - 33 AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6988
SELECT DISTINCT + SUM( DISTINCT - 10 ) DIV - - COALESCE ( - + 47, - 95 - - 80 * ( + 25 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT + SUM ( DISTINCT - 10 ) / - - COALESCE ( - + 47, - 95 - - 80 * ( + 25 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6989
SELECT 29 DIV COALESCE ( - - 82, + 78, - 63 * + - COUNT( * ) * - - 1 - + + 25 * + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-6989
SELECT 29 / COALESCE ( - - 82, + 78, - 63 * + - COUNT ( * ) * - - 1 - + + 25 * + 32 )
----
0

query II rowsort
SELECT - 85 AS col1, + 59 AS col0
----
-85
59

query I rowsort
SELECT ALL + 64 + - + 79 * 57
----
-4439

query I rowsort
SELECT ALL - 10 - - 78
----
68

query II rowsort
SELECT - 38, 39 + - 44 AS col2
----
-38
-5

query I rowsort
SELECT 51 + + - 35
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6995
SELECT ALL - COALESCE ( - - 92, 6, + CAST( NULL AS SIGNED ) ) * + 35 + - COALESCE ( + 53, 2 ) + + - ( ( - + 20 ) ), + COUNT( * ) * - + COUNT( * ) * - 36 col0
----
-3253
36

skipif mysql # not compatible
query II rowsort label-6995
SELECT ALL - COALESCE ( - - 92, 6, + CAST ( NULL AS INTEGER ) ) * + 35 + - COALESCE ( + 53, 2 ) + + - ( ( - + 20 ) ), + COUNT ( * ) * - + COUNT ( * ) * - 36 col0
----
-3253
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT DISTINCT + 92 * + ( - + COUNT( * ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT + 92 * + ( - + COUNT ( * ) ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-6997
SELECT ALL MAX( + ( - + 98 ) ), 6 AS col1
----
-98
6

skipif mysql # not compatible
query II rowsort label-6997
SELECT ALL MAX ( + ( - + 98 ) ), 6 AS col1
----
-98
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT MAX( 63 ) + + - 3 + - 46 - - 86 + 16 + - COUNT( * ) * + COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-6998
SELECT MAX ( 63 ) + + - 3 + - 46 - - 86 + 16 + - COUNT ( * ) * + COUNT ( * )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT 76 + + - 32 + - + COUNT( * ) col2
----
43

skipif mysql # not compatible
query I rowsort label-6999
SELECT 76 + + - 32 + - + COUNT ( * ) col2
----
43

query I rowsort
SELECT ( + 34 ) - 62 AS col2
----
-28

query I rowsort
SELECT DISTINCT NULLIF ( + 75, - 2 ) * 32 AS col2
----
2400

query II rowsort
SELECT - 20 + + - 99 * 39 AS col0, + 91
----
-3881
91

query I rowsort
SELECT ALL 59 * 60 AS col1
----
3540

query I rowsort
SELECT DISTINCT - 85 * + NULLIF ( + 35, - + 15 ) AS col2
----
-2975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7005
SELECT 50 * - NULLIF ( + CAST( NULL AS SIGNED ), + COALESCE ( - 18, 54 + + 42 ) ) * + COUNT( * ) + + - 77 / - + 53 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT 50 * - NULLIF ( + CAST ( NULL AS INTEGER ), + COALESCE ( - 18, 54 + + 42 ) ) * + COUNT ( * ) + + - 77 / - + 53 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7006
SELECT ALL - CASE + - 97 WHEN - 35 THEN - COUNT( * ) WHEN + SUM( + 94 ) THEN + 16 + + 47 ELSE NULL END * + SUM( + 90 ) * + CASE 10 WHEN + 66 THEN - ( NULLIF ( + CAST( NULL AS SIGNED ), + 66 / - 84 ) ) - 37 WHEN + 70 THEN NULL WHEN 90 + 67 * 32 THEN + 15 WHEN COUNT( * ) THEN NULL END * 63 - + 17 + - NULLIF ( - 17 - 78, ( 70 ) ) * 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL - CASE + - 97 WHEN - 35 THEN - COUNT ( * ) WHEN + SUM ( + 94 ) THEN + 16 + + 47 ELSE NULL END * + SUM ( + 90 ) * + CASE 10 WHEN + 66 THEN - ( NULLIF ( + CAST ( NULL AS INTEGER ), + 66 / - 84 ) ) - 37 WHEN + 70 THEN NULL WHEN 90 + 67 * 32 THEN + 15 WHEN COUNT ( * ) THEN NULL END * 63 - + 17 + - NULLIF ( - 17 - 78, ( 70 ) ) * 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT MIN( DISTINCT - - 75 ) + + 66 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-7007
SELECT MIN ( DISTINCT - - 75 ) + + 66 AS col0
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-7008
SELECT COUNT( * ) * 13 * - NULLIF ( 98, + ( + - 8 ) ) AS col0, 2 * - 20 + - 61 AS col0
----
-1274
-101

skipif mysql # not compatible
query II rowsort label-7008
SELECT COUNT ( * ) * 13 * - NULLIF ( 98, + ( + - 8 ) ) AS col0, 2 * - 20 + - 61 AS col0
----
-1274
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-7009
SELECT + 84 DIV 19 + 36 + - + 43
----
-3

skipif mysql # not compatible
query I rowsort label-7009
SELECT + 84 / 19 + 36 + - + 43
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ALL - 64 * + MAX( ALL 59 ) + - 20 AS col2
----
-3796

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL - 64 * + MAX ( ALL 59 ) + - 20 AS col2
----
-3796

query II rowsort
SELECT DISTINCT - 48, - 47 AS col0
----
-48
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT ALL - - CAST( 47 AS SIGNED ) col2
----
47

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL - - CAST ( 47 AS INTEGER ) col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL + + 33 * - + 85 + - COUNT( * ) + + + 60
----
-2746

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL + + 33 * - + 85 + - COUNT ( * ) + + + 60
----
-2746

query I rowsort
SELECT + 36 * + 33
----
1188

query I rowsort
SELECT ALL + ( - 50 ) * - 73 + ( - 60 ) * 72 + 72
----
-598

onlyif mysql # aggregate syntax: 
query II rowsort label-7016
SELECT + - COUNT( * ) AS col0, 33 + + 11 AS col1
----
-1
44

skipif mysql # not compatible
query II rowsort label-7016
SELECT + - COUNT ( * ) AS col0, 33 + + 11 AS col1
----
-1
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7017
SELECT ALL - 20 * - 16 + 98 DIV + - ( - 94 )
----
321

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - 20 * - 16 + 98 / + - ( - 94 )
----
321

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT - COUNT( ALL 9 ) * + 31 * - - 84 * + + 95
----
-247380

skipif mysql # not compatible
query I rowsort label-7018
SELECT - COUNT ( ALL 9 ) * + 31 * - - 84 * + + 95
----
-247380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT + CASE - 63 WHEN - CAST( NULL AS SIGNED ) THEN - - 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT + CASE - 63 WHEN - CAST ( NULL AS INTEGER ) THEN - - 52 END AS col1
----
NULL

query II rowsort
SELECT + - 68 AS col2, - 21 + - 42 + 25 * + - 45 AS col2
----
-68
-1188

query I rowsort
SELECT ALL + 78 - 70 * - 30 AS col1
----
2178

query I rowsort
SELECT - ( + 19 ) * - - 61 col1
----
-1159

query I rowsort
SELECT ALL + 69 * + 94
----
6486

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT + NULLIF ( - + 52, + + MIN( ( 11 ) ) * + + 39 ) + + 47
----
-5

skipif mysql # not compatible
query I rowsort label-7024
SELECT + NULLIF ( - + 52, + + MIN ( ( 11 ) ) * + + 39 ) + + 47
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7025
SELECT - 74 - + ( + 59 ) DIV - 90 * - COUNT( + - ( + CASE + - 6 WHEN + 43 THEN NULL ELSE - 14 END ) ), - 78 AS col2
----
-74
-78

skipif mysql # not compatible
query II rowsort label-7025
SELECT - 74 - + ( + 59 ) / - 90 * - COUNT ( + - ( + CASE + - 6 WHEN + 43 THEN NULL ELSE - 14 END ) ), - 78 AS col2
----
-74
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7026
SELECT DISTINCT MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT - ( + - MIN( 45 ) ) * - COUNT( * ) * + ( - 59 )
----
2655

skipif mysql # not compatible
query I rowsort label-7027
SELECT - ( + - MIN ( 45 ) ) * - COUNT ( * ) * + ( - 59 )
----
2655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7028
SELECT ALL + COUNT( * ) DIV - 56 * ( + - 17 ) * - NULLIF ( 41, + 56 * + - 45 + + + 45 )
----
0

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL + COUNT ( * ) / - 56 * ( + - 17 ) * - NULLIF ( 41, + 56 * + - 45 + + + 45 )
----
0

query I rowsort
SELECT - 31 * - 42
----
1302

query I rowsort
SELECT - 13 + - 2
----
-15

query I rowsort
SELECT DISTINCT + 61 * + ( + ( - 26 ) ) col1
----
-1586

query I rowsort
SELECT + 7 + - - 98 AS col1
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-7033
SELECT + 66 * + 7 * + 51 * - 12 AS col2, + COUNT( * )
----
-282744
1

skipif mysql # not compatible
query II rowsort label-7033
SELECT + 66 * + 7 * + 51 * - 12 AS col2, + COUNT ( * )
----
-282744
1

query I rowsort
SELECT - ( + - 78 ) * + + 18 + 41 + 96 AS col2
----
1541

query I rowsort
SELECT DISTINCT + 62 * + 91
----
5642

onlyif mysql # DIV for integer division: 
query II rowsort label-7036
SELECT - 17 * - 21 * + - NULLIF ( + 7, - - 6 + - 92 DIV - 80 ) AS col1, 8 AS col0
----
NULL
8

skipif mysql # not compatible
query II rowsort label-7036
SELECT - 17 * - 21 * + - NULLIF ( + 7, - - 6 + - 92 / - 80 ) AS col1, 8 AS col0
----
NULL
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7037
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT - MIN( ALL + + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-7038
SELECT - MIN ( ALL + + 20 )
----
-20

query II rowsort
SELECT ALL - 11 + - - 74, 82 AS col2
----
63
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7040
SELECT + - 42 * ( + 12 ) + + SUM( 22 ) + 1 + + 94 + - + 75 * - 35 col2, 17 * + 79 AS col0
----
2238
1343

skipif mysql # not compatible
query II rowsort label-7040
SELECT + - 42 * ( + 12 ) + + SUM ( 22 ) + 1 + + 94 + - + 75 * - 35 col2, 17 * + 79 AS col0
----
2238
1343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7041
SELECT - COUNT( * ) DIV - + 68 - - SUM( ALL 6 ) * + - 6 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-7041
SELECT - COUNT ( * ) / - + 68 - - SUM ( ALL 6 ) * + - 6 AS col1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT DISTINCT 32 DIV 20
----
1

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT 32 / 20
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7043
SELECT ALL + COUNT( * ) DIV - - 48 + 96 * 6 + + 38
----
614

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL + COUNT ( * ) / - - 48 + 96 * 6 + + 38
----
614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7044
SELECT - 6 - - SUM( ALL - - CAST( 65 AS SIGNED ) ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-7044
SELECT - 6 - - SUM ( ALL - - CAST ( 65 AS INTEGER ) ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT ALL 59 * - 47 * + COUNT( * )
----
-2773

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL 59 * - 47 * + COUNT ( * )
----
-2773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7046
SELECT ALL + NULLIF ( + 82, - + 33 ) * + - 0 + + - 91 + - 18 + + + 21 / - - 46 * - + CAST( NULL AS SIGNED ) * - 66 + - - COUNT( * ) + 79 col2, + 63
----
NULL
63

skipif mysql # not compatible
query II rowsort label-7046
SELECT ALL + NULLIF ( + 82, - + 33 ) * + - 0 + + - 91 + - 18 + + + 21 / - - 46 * - + CAST ( NULL AS INTEGER ) * - 66 + - - COUNT ( * ) + 79 col2, + 63
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT + + MIN( ALL + 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7047
SELECT + + MIN ( ALL + 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT DISTINCT + ( + SUM( + 27 ) )
----
27

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT + ( + SUM ( + 27 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT DISTINCT + 30 * + - CASE + COUNT( CASE 83 WHEN + 31 THEN - - 67 / + 35 + + 29 WHEN - 45 THEN + 60 * + + ( - 44 ) WHEN 48 THEN + 15 END ) WHEN + 42 * + 56 THEN 56 END - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + 30 * + - CASE + COUNT ( CASE 83 WHEN + 31 THEN - - 67 / + 35 + + 29 WHEN - 45 THEN + 60 * + + ( - 44 ) WHEN 48 THEN + 15 END ) WHEN + 42 * + 56 THEN 56 END - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 73 * 14 * - 27 + - - 82 + COALESCE ( 1, + 39, + 23 ) * - + 73 * + 12 * 92 AS col1
----
-52916

query I rowsort
SELECT + + ( + + 44 ) - - 95 AS col0
----
139

query I rowsort
SELECT ALL 56 * - + NULLIF ( 21, 92 ) - - - 10 AS col0
----
-1186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7053
SELECT - CAST( + - AVG ( ALL + 22 ) AS SIGNED ) * COUNT( * ) col0
----
22

skipif mysql # not compatible
query I rowsort label-7053
SELECT - CAST ( + - AVG ( ALL + 22 ) AS INTEGER ) * COUNT ( * ) col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7054
SELECT + 50 + CAST( - + 16 AS SIGNED ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7054
SELECT + 50 + CAST ( - + 16 AS INTEGER ) AS col1
----
34

query I rowsort
SELECT ALL + 47 * - + 98
----
-4606

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL + COUNT( * ) * - 30
----
-30

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL + COUNT ( * ) * - 30
----
-30

query II rowsort
SELECT - 49 AS col0, 39
----
-49
39

query II rowsort
SELECT - 96 + + 25 * + 96 AS col1, + 70 AS col0
----
2304
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL 2 * + SUM( - + 10 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL 2 * + SUM ( - + 10 ) col1
----
-20

query I rowsort
SELECT + 8 * + 24
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT - 14 * - - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-7061
SELECT - 14 * - - COUNT ( * )
----
-14

query I rowsort
SELECT DISTINCT - 29 * + ( + 23 ) AS col1
----
-667

query I rowsort
SELECT + NULLIF ( - 99, 70 ) + + 3 AS col2
----
-96

query I rowsort
SELECT ALL 66 * + 99
----
6534

onlyif mysql # DIV for integer division: 
query I rowsort label-7065
SELECT ALL - 85 DIV + - 16 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - 85 / + - 16 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7066
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT ALL - COUNT( DISTINCT + - 19 ) + 23
----
22

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL - COUNT ( DISTINCT + - 19 ) + 23
----
22

query I rowsort
SELECT - 48 - 7 * - 57
----
351

onlyif mysql # DIV for integer division: 
query I rowsort label-7069
SELECT + - 52 * + 25 - - 71 DIV - 17
----
-1304

skipif mysql # not compatible
query I rowsort label-7069
SELECT + - 52 * + 25 - - 71 / - 17
----
-1304

onlyif mysql # aggregate syntax: 
query II rowsort label-7070
SELECT - COUNT( * ) + 82 * + COUNT( * ) * + ( + + COUNT( * ) ) AS col0, - 5 + 66
----
81
61

skipif mysql # not compatible
query II rowsort label-7070
SELECT - COUNT ( * ) + 82 * + COUNT ( * ) * + ( + + COUNT ( * ) ) AS col0, - 5 + 66
----
81
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7071
SELECT ALL - - CAST( NULL AS SIGNED ) / - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL - - CAST ( NULL AS INTEGER ) / - 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7072
SELECT - 38 + + ( + 50 ) + + 84 + + SUM( ALL 72 ) AS col1, 24
----
168
24

skipif mysql # not compatible
query II rowsort label-7072
SELECT - 38 + + ( + 50 ) + + 84 + + SUM ( ALL 72 ) AS col1, 24
----
168
24

query I rowsort
SELECT - 77 + + 96 * + 5 AS col0
----
403

query II rowsort
SELECT - + 13 AS col1, - 29 AS col1
----
-13
-29

query I rowsort
SELECT ALL + - 9 + + + 28 + - 65 * + 51 * 14 AS col0
----
-46391

query II rowsort
SELECT ALL + 3 AS col2, 65 AS col0
----
3
65

query I rowsort
SELECT 90 + 12 + 28
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7078
SELECT - - NULLIF ( + CAST( NULL AS SIGNED ), + MIN( - NULLIF ( - 38, ( - 72 ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT - - NULLIF ( + CAST ( NULL AS INTEGER ), + MIN ( - NULLIF ( - 38, ( - 72 ) ) ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( 52 )
----
52

query I rowsort
SELECT ALL - + 17 * - ( + 32 ) + 29
----
573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7081
SELECT 67 * CAST( + + COUNT( * ) AS SIGNED ), 10 DIV + 63 + - - 60 + 81 AS col2
----
67
141

skipif mysql # not compatible
query II rowsort label-7081
SELECT 67 * CAST ( + + COUNT ( * ) AS INTEGER ), 10 / + 63 + - - 60 + 81 AS col2
----
67
141

query I rowsort
SELECT + COALESCE ( + 44, - + 35 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7083
SELECT ALL - CASE 60 WHEN - 84 THEN - 82 * - - 46 + + COALESCE ( + 73, 21, 89 DIV 8 ) - 31 ELSE - + 98 END AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - CASE 60 WHEN - 84 THEN - 82 * - - 46 + + COALESCE ( + 73, 21, 89 / 8 ) - 31 ELSE - + 98 END AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT MAX( ALL - NULLIF ( + - 94, + 32 ) ) * - 27 * + 95 + + - COUNT( * )
----
-241111

skipif mysql # not compatible
query I rowsort label-7084
SELECT MAX ( ALL - NULLIF ( + - 94, + 32 ) ) * - 27 * + 95 + + - COUNT ( * )
----
-241111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7085
SELECT 46 * + CASE 25 WHEN + + 60 THEN + CASE - + 51 WHEN MAX( ALL 34 ) * + CAST( NULL AS SIGNED ) THEN 32 WHEN - 9 THEN NULL END * + - 91 + - 52 + + - 35 * 73 * + COUNT( + 71 ) * + ( - - 1 ) + + - 80 / 98 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT 46 * + CASE 25 WHEN + + 60 THEN + CASE - + 51 WHEN MAX ( ALL 34 ) * + CAST ( NULL AS INTEGER ) THEN 32 WHEN - 9 THEN NULL END * + - 91 + - 52 + + - 35 * 73 * + COUNT ( + 71 ) * + ( - - 1 ) + + - 80 / 98 ELSE NULL END
----
NULL

query I rowsort
SELECT 90 * + + 52
----
4680

query II rowsort
SELECT + 95, - 53 AS col0
----
95
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT ALL 51 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL 51 / + 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7089
SELECT DISTINCT - 56 - - - 74 * - 71 - - 59 + 59 + + 1 DIV 26 * 74 * - 47 AS col1
----
5316

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT - 56 - - - 74 * - 71 - - 59 + 59 + + 1 / 26 * 74 * - 47 AS col1
----
5316

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT + + MAX( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-7090
SELECT + + MAX ( 90 )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7091
SELECT ALL - 35 col0, - 52 + - - 28 * - 24 * - COUNT( * ) * + 33
----
-35
22124

skipif mysql # not compatible
query II rowsort label-7091
SELECT ALL - 35 col0, - 52 + - - 28 * - 24 * - COUNT ( * ) * + 33
----
-35
22124

onlyif mysql # DIV for integer division: 
query I rowsort label-7092
SELECT 80 DIV ( 20 ) * + 22 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7092
SELECT 80 / ( 20 ) * + 22 AS col0
----
88

query I rowsort
SELECT ALL 26 * - 31 AS col1
----
-806

onlyif mysql # DIV for integer division: 
query II rowsort label-7094
SELECT + 92 AS col0, 43 DIV 92 AS col0
----
92
0

skipif mysql # not compatible
query II rowsort label-7094
SELECT + 92 AS col0, 43 / 92 AS col0
----
92
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7095
SELECT + 45 col0, + NULLIF ( 87, - ( + COUNT( * ) ) * - + 44 ) + - 8 AS col1
----
45
79

skipif mysql # not compatible
query II rowsort label-7095
SELECT + 45 col0, + NULLIF ( 87, - ( + COUNT ( * ) ) * - + 44 ) + - 8 AS col1
----
45
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7096
SELECT 70 DIV COUNT( * ) * - 41 AS col0
----
-2870

skipif mysql # not compatible
query I rowsort label-7096
SELECT 70 / COUNT ( * ) * - 41 AS col0
----
-2870

query I rowsort
SELECT ALL 20 + 51
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7098
SELECT ALL 96 + + 40 - + CAST( + 52 AS SIGNED ) + - 89
----
-5

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL 96 + + 40 - + CAST ( + 52 AS INTEGER ) + - 89
----
-5

query I rowsort
SELECT 86 + + - 62 AS col2
----
24

query I rowsort
SELECT ALL - COALESCE ( - 3, ( + 16 ) * + 29 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7101
SELECT DISTINCT 25 + CAST( - 11 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT 25 + CAST ( - 11 AS INTEGER ) AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7102
SELECT ALL 60 + + NULLIF ( + + 14, + - CAST( NULL AS DECIMAL ) * CASE - CAST( NULL AS SIGNED ) WHEN 12 THEN NULL WHEN + 1 THEN + COUNT( * ) WHEN - CASE + 10 WHEN + 73 THEN NULL WHEN - COALESCE ( 0, 80, + 82 ) + - - 59 + - 98 + + 92 THEN + SUM( ALL - 65 ) + 58 / + 27 END THEN ( - 89 ) * 71 END ) * - 53 AS col2
----
-682

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL 60 + + NULLIF ( + + 14, + - CAST ( NULL AS REAL ) * CASE - CAST ( NULL AS INTEGER ) WHEN 12 THEN NULL WHEN + 1 THEN + COUNT ( * ) WHEN - CASE + 10 WHEN + 73 THEN NULL WHEN - COALESCE ( 0, 80, + 82 ) + - - 59 + - 98 + + 92 THEN + SUM ( ALL - 65 ) + 58 / + 27 END THEN ( - 89 ) * 71 END ) * - 53 AS col2
----
-682

query I rowsort
SELECT DISTINCT - ( + 13 ) * - 61
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL + COUNT( * ) + NULLIF ( + 12, 26 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + COUNT ( * ) + NULLIF ( + 12, 26 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT - 27 * + 21 + - - COUNT( * )
----
-566

skipif mysql # not compatible
query I rowsort label-7105
SELECT - 27 * + 21 + - - COUNT ( * )
----
-566

query II rowsort
SELECT - 24 AS col0, + COALESCE ( + 93, 39 + - - 52 )
----
-24
93

query I rowsort
SELECT 30 + + 97 AS col1
----
127

query I rowsort
SELECT DISTINCT + 53 * + 16 AS col2
----
848

query II rowsort
SELECT - 82 col1, 95 * - 27 * + 36
----
-82
-92340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7110
SELECT - CAST( 85 AS SIGNED ) * - + 98 * 66
----
549780

skipif mysql # not compatible
query I rowsort label-7110
SELECT - CAST ( 85 AS INTEGER ) * - + 98 * 66
----
549780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7111
SELECT ALL - 20 * + CAST( + 68 AS SIGNED ) / + SUM( 40 ) * - + 14 * 18 * - + CASE + - 16 WHEN - ( COUNT( * ) ) THEN + + COUNT( * ) * - - ( + COALESCE ( 69, - MAX( ALL + + 38 ) + ( + 89 ) * + - CAST( NULL AS SIGNED ), + 14 - + 72 ) ) / 97 + + 13 END * 41 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - 20 * + CAST ( + 68 AS INTEGER ) / + SUM ( 40 ) * - + 14 * 18 * - + CASE + - 16 WHEN - ( COUNT ( * ) ) THEN + + COUNT ( * ) * - - ( + COALESCE ( 69, - MAX ( ALL + + 38 ) + ( + 89 ) * + - CAST ( NULL AS INTEGER ), + 14 - + 72 ) ) / 97 + + 13 END * 41 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7112
SELECT DISTINCT ( CAST( + 44 AS SIGNED ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT ( CAST ( + 44 AS INTEGER ) ) AS col1
----
44

query I rowsort
SELECT DISTINCT ( 71 ) * 77 AS col2
----
5467

query I rowsort
SELECT ALL + 29 - - + 13 AS col0
----
42

query II rowsort
SELECT ALL 6, + 82 col1
----
6
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7116
SELECT 81 * - COUNT( * ) * + 75 DIV COUNT( * ) * + 70 + + 49 + + - 15 + + 32 * + 0 * - - 80 * - 66
----
-425216

skipif mysql # not compatible
query I rowsort label-7116
SELECT 81 * - COUNT ( * ) * + 75 / COUNT ( * ) * + 70 + + 49 + + - 15 + + 32 * + 0 * - - 80 * - 66
----
-425216

query I rowsort
SELECT 84 + + 99 col1
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7118
SELECT COALESCE ( - NULLIF ( + ( - + MIN( ALL - 98 ) ), - 71 ), + 89 + - COUNT( * ) ) DIV + 98 + 87 * - - 11 AS col1
----
956

skipif mysql # not compatible
query I rowsort label-7118
SELECT COALESCE ( - NULLIF ( + ( - + MIN ( ALL - 98 ) ), - 71 ), + 89 + - COUNT ( * ) ) / + 98 + 87 * - - 11 AS col1
----
956

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT 61 - - + COUNT( * ) col2
----
62

skipif mysql # not compatible
query I rowsort label-7119
SELECT 61 - - + COUNT ( * ) col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7120
SELECT COUNT( * ) * - + ( - 17 ) + - 70 DIV - 96 * + 20 * - 38 * - - COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7120
SELECT COUNT ( * ) * - + ( - 17 ) + - 70 / - 96 * + 20 * - 38 * - - COUNT ( * ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7121
SELECT + + COUNT( * ) AS col0, + 70 + ( + + 62 ) AS col1
----
1
132

skipif mysql # not compatible
query II rowsort label-7121
SELECT + + COUNT ( * ) AS col0, + 70 + ( + + 62 ) AS col1
----
1
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL - CASE - COALESCE ( COALESCE ( + 25, - - 12 * + MIN( ALL + 18 ) + + - 68 ), 34, - CASE + COUNT( * ) WHEN 33 THEN 34 WHEN + 15 * - 25 * - - 0 THEN NULL ELSE NULL END ) WHEN + 33 THEN + 54 * + COUNT( * ) / + - COUNT( 55 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL - CASE - COALESCE ( COALESCE ( + 25, - - 12 * + MIN ( ALL + 18 ) + + - 68 ), 34, - CASE + COUNT ( * ) WHEN 33 THEN 34 WHEN + 15 * - 25 * - - 0 THEN NULL ELSE NULL END ) WHEN + 33 THEN + 54 * + COUNT ( * ) / + - COUNT ( 55 ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7123
SELECT + 4 - + CASE + + 40 WHEN - 92 + 56 * - COUNT( * ) * - + 96 THEN NULL WHEN + 91 * + - MIN( 74 ) THEN NULL WHEN + ( - COUNT( * ) ) THEN - 13 + + - CAST( NULL AS SIGNED ) + - - 15 ELSE - + 28 + + - 17 END - + 50 - - COUNT( * ) + - 3 * - 30 DIV COUNT( * ) * - 52
----
-4680

skipif mysql # not compatible
query I rowsort label-7123
SELECT + 4 - + CASE + + 40 WHEN - 92 + 56 * - COUNT ( * ) * - + 96 THEN NULL WHEN + 91 * + - MIN ( 74 ) THEN NULL WHEN + ( - COUNT ( * ) ) THEN - 13 + + - CAST ( NULL AS INTEGER ) + - - 15 ELSE - + 28 + + - 17 END - + 50 - - COUNT ( * ) + - 3 * - 30 / COUNT ( * ) * - 52
----
-4680

query II rowsort
SELECT DISTINCT - 81 AS col2, 30
----
-81
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL - - COUNT( 7 ) * + 76 + + + 56 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL - - COUNT ( 7 ) * + 76 + + + 56 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT 84 * - COUNT( * ) + - + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-7126
SELECT 84 * - COUNT ( * ) + - + COUNT ( * )
----
-85

query II rowsort
SELECT DISTINCT - 65 * - + 54 AS col0, ( - 87 ) + ( + 8 ) * - 56 AS col2
----
3510
-535

query I rowsort
SELECT ALL - 47 * + 66 AS col1
----
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT 60 * + ( - COUNT( * ) ) * COUNT( DISTINCT + + ( + 6 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-7129
SELECT 60 * + ( - COUNT ( * ) ) * COUNT ( DISTINCT + + ( + 6 ) )
----
-60

query I rowsort
SELECT + NULLIF ( 86, + - 56 ) * + - 0 + + - 75 + 32
----
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7131
SELECT COUNT( 14 ) - - - CAST( NULL AS DECIMAL ) * - 15 + + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT COUNT ( 14 ) - - - CAST ( NULL AS REAL ) * - 15 + + 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7132
SELECT COUNT( - 14 ) AS col1, 62 - - 29 + - - 97
----
1
188

skipif mysql # not compatible
query II rowsort label-7132
SELECT COUNT ( - 14 ) AS col1, 62 - - 29 + - - 97
----
1
188

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT MIN( - + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-7133
SELECT MIN ( - + 51 )
----
-51

query I rowsort
SELECT 86 * 13 col1
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT SUM( 15 ) + - 12
----
3

skipif mysql # not compatible
query I rowsort label-7135
SELECT SUM ( 15 ) + - 12
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7136
SELECT ALL COUNT( * ) * + - ( 91 ) DIV + 82 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL COUNT ( * ) * + - ( 91 ) / + 82 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7137
SELECT DISTINCT + COUNT( * ) DIV + - 40 * 88 DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT + COUNT ( * ) / + - 40 * 88 / + 22
----
0

query II rowsort
SELECT ALL 42 + - 23 AS col2, + ( + 24 ) AS col0
----
19
24

query II rowsort
SELECT 89 * 40 AS col2, 70 AS col0
----
3560
70

query II rowsort
SELECT ALL + 85 * 70, + 80 AS col1
----
5950
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT NULLIF ( + 72, 95 ) DIV - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7141
SELECT NULLIF ( + 72, 95 ) / - 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT ( - CASE + SUM( + 88 ) WHEN + - 20 THEN - 90 END ) * 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT ( - CASE + SUM ( + 88 ) WHEN + - 20 THEN - 90 END ) * 25 AS col2
----
NULL

query I rowsort
SELECT + - ( 98 ) * - 33 AS col0
----
3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT 69 * COUNT( DISTINCT + 87 ) + + 65 - - CASE - NULLIF ( + COALESCE ( - - MIN( 80 ), + AVG ( ALL - 53 ) ), + 21 * CAST( NULL AS SIGNED ) + + - 88 ) WHEN - SUM( 32 ) THEN + 69 END * + - 66 + - - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7144
SELECT 69 * COUNT ( DISTINCT + 87 ) + + 65 - - CASE - NULLIF ( + COALESCE ( - - MIN ( 80 ), + AVG ( ALL - 53 ) ), + 21 * CAST ( NULL AS INTEGER ) + + - 88 ) WHEN - SUM ( 32 ) THEN + 69 END * + - 66 + - - 35 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( + 68 ) AS col2
----
68

query I rowsort
SELECT DISTINCT - 30 - + ( - 14 ) * - 35
----
-520

onlyif mysql # DIV for integer division: 
query I rowsort label-7147
SELECT ALL 39 * 10 DIV - 74 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL 39 * 10 / - 74 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-7148
SELECT DISTINCT 88 * + 49 AS col1, 6 DIV - - 19 AS col0
----
4312
0

skipif mysql # not compatible
query II rowsort label-7148
SELECT DISTINCT 88 * + 49 AS col1, 6 / - - 19 AS col0
----
4312
0

query I rowsort
SELECT + + ( + 59 ) * 78
----
4602

query I rowsort
SELECT + - ( - 99 ) + + ( - - 5 ) AS col0
----
104

onlyif mysql # DIV for integer division: 
query II rowsort label-7151
SELECT + 11 DIV - + 6 AS col1, 71 + - COALESCE ( - 72, - 59 )
----
-1
143

skipif mysql # not compatible
query II rowsort label-7151
SELECT + 11 / - + 6 AS col1, 71 + - COALESCE ( - 72, - 59 )
----
-1
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT DISTINCT + - COUNT( * ) + 92
----
91

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT + - COUNT ( * ) + 92
----
91

query I rowsort
SELECT DISTINCT - ( + - 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT ALL + + COUNT( 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL + + COUNT ( 2 ) AS col1
----
1

query I rowsort
SELECT + 69 * + 44
----
3036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7156
SELECT + 65 * - COUNT( * ) + 83 DIV - ( CASE - 84 WHEN - - 82 THEN SUM( DISTINCT - 53 ) ELSE + 39 * ( 31 ) - - 63 END ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-7156
SELECT + 65 * - COUNT ( * ) + 83 / - ( CASE - 84 WHEN - - 82 THEN SUM ( DISTINCT - 53 ) ELSE + 39 * ( 31 ) - - 63 END ) col2
----
-65

query I rowsort
SELECT - 73 + 97 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT ALL ( + SUM( DISTINCT - 88 ) ) * + NULLIF ( - 54, + 45 ) + - 88 - - 4
----
4668

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL ( + SUM ( DISTINCT - 88 ) ) * + NULLIF ( - 54, + 45 ) + - 88 - - 4
----
4668

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT + ( + 7 ) * + ( + + 88 ) * - + COUNT( * ) AS col1
----
-616

skipif mysql # not compatible
query I rowsort label-7159
SELECT + ( + 7 ) * + ( + + 88 ) * - + COUNT ( * ) AS col1
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL - NULLIF ( 25, SUM( ( - 27 ) ) ) * + 36 * 21
----
-18900

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL - NULLIF ( 25, SUM ( ( - 27 ) ) ) * + 36 * 21
----
-18900

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT COUNT( * ) * 28 * - + 99 * - MAX( DISTINCT - 99 ) + + 13 * + 38 + + ( + 55 )
----
-273879

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT COUNT ( * ) * 28 * - + 99 * - MAX ( DISTINCT - 99 ) + + 13 * + 38 + + ( + 55 )
----
-273879

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ALL COUNT( * ) * + + 47 * - - 54 + - 34
----
2504

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL COUNT ( * ) * + + 47 * - - 54 + - 34
----
2504

query I rowsort
SELECT DISTINCT + 98 * + - 23 col2
----
-2254

query I rowsort
SELECT ALL + 17 * - + 25 col1
----
-425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7165
SELECT 26 * - COALESCE ( + CAST( NULL AS SIGNED ), 86 - SUM( DISTINCT - - 67 ), + - 60 - - + MIN( + 41 ) * + 76 + - COUNT( * ) * + 4 ) * + 30 - 4 + + - 51 * 3 * + 61 col2
----
-24157

skipif mysql # not compatible
query I rowsort label-7165
SELECT 26 * - COALESCE ( + CAST ( NULL AS INTEGER ), 86 - SUM ( DISTINCT - - 67 ), + - 60 - - + MIN ( + 41 ) * + 76 + - COUNT ( * ) * + 4 ) * + 30 - 4 + + - 51 * 3 * + 61 col2
----
-24157

query I rowsort
SELECT NULLIF ( + ( 91 ), + 26 )
----
91

query I rowsort
SELECT - 95 * + - 33
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT - 94 * - - 86 * + 46 + 95 - - - COUNT( - 41 ) + + COUNT( 86 ) * 66 * + - ( MAX( ALL 17 ) ) + - COUNT( * ) + + SUM( - + 29 ) - + SUM( + 80 )
----
-373002

skipif mysql # not compatible
query I rowsort label-7168
SELECT - 94 * - - 86 * + 46 + 95 - - - COUNT ( - 41 ) + + COUNT ( 86 ) * 66 * + - ( MAX ( ALL 17 ) ) + - COUNT ( * ) + + SUM ( - + 29 ) - + SUM ( + 80 )
----
-373002

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT + ( + + MIN( ALL 43 ) )
----
43

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT + ( + + MIN ( ALL 43 ) )
----
43

query I rowsort
SELECT - 47 - + - 35
----
-12

query II rowsort
SELECT ALL + 39, 2 AS col2
----
39
2

query I rowsort
SELECT ALL - 28 * + 10 - - 33
----
-247

query I rowsort
SELECT DISTINCT + 70 * - - 90 + + 57
----
6357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7174
SELECT - CAST( - - 93 AS SIGNED ) * - 47
----
4371

skipif mysql # not compatible
query I rowsort label-7174
SELECT - CAST ( - - 93 AS INTEGER ) * - 47
----
4371

query I rowsort
SELECT ALL + 43 * 70 col0
----
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT - MAX( - 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7176
SELECT - MAX ( - 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT ALL - - SUM( ALL - 2 ) * SUM( DISTINCT - 71 ) - + COUNT( * )
----
141

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL - - SUM ( ALL - 2 ) * SUM ( DISTINCT - 71 ) - + COUNT ( * )
----
141

query I rowsort
SELECT + - 82 * + 91
----
-7462

query II rowsort
SELECT - + 98 AS col0, - 68 AS col2
----
-98
-68

query I rowsort
SELECT + + 7 * ( - 80 ) AS col0
----
-560

onlyif mysql # aggregate syntax: 
query II rowsort label-7181
SELECT DISTINCT - + 68 * - - COUNT( * ) * + 52 AS col2, 83 AS col0
----
-3536
83

skipif mysql # not compatible
query II rowsort label-7181
SELECT DISTINCT - + 68 * - - COUNT ( * ) * + 52 AS col2, 83 AS col0
----
-3536
83

query II rowsort
SELECT + 52 AS col0, 81 + 54 AS col0
----
52
135

query I rowsort
SELECT ALL - - 18 + + 20 AS col1
----
38

query II rowsort
SELECT DISTINCT 80, 33 AS col2
----
80
33

query I rowsort
SELECT ALL - 36 + - - NULLIF ( + NULLIF ( - 50, + 7 - - - 83 ), + - 76 ) AS col1
----
-86

query II rowsort
SELECT DISTINCT + 39, 78 * - 48 AS col1
----
39
-3744

query I rowsort
SELECT ALL + 67 + + - 7 + + - 53
----
7

query I rowsort
SELECT + - 81 * + 31 + - 97 * + 74
----
-9689

query I rowsort
SELECT ALL - 75 + + 88
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT + 85 - SUM( DISTINCT + 51 ) - - - ( + 75 ) + 96 * - 88 AS col2
----
-8489

skipif mysql # not compatible
query I rowsort label-7190
SELECT + 85 - SUM ( DISTINCT + 51 ) - - - ( + 75 ) + 96 * - 88 AS col2
----
-8489

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT MAX( + 64 ) * - - 8 + + 11
----
523

skipif mysql # not compatible
query I rowsort label-7191
SELECT MAX ( + 64 ) * - - 8 + + 11
----
523

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7192
SELECT ALL 40 DIV 48 + - + 21 * - 62 AS col1, + 79 * - - COUNT( * ) DIV - 86, 67 * COUNT( * ) * COUNT( 28 ) - 34 AS col0
----
1302
0
33

skipif mysql # not compatible
query III rowsort label-7192
SELECT ALL 40 / 48 + - + 21 * - 62 AS col1, + 79 * - - COUNT ( * ) / - 86, 67 * COUNT ( * ) * COUNT ( 28 ) - 34 AS col0
----
1302
0
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT COUNT( * ) * + 25 * + 15 * + - 0
----
0

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT COUNT ( * ) * + 25 * + 15 * + - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7194
SELECT - 34 DIV - 45 * + 83 * + 49 * 86 + - ( + CAST( - + 1 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7194
SELECT - 34 / - 45 * + 83 * + 49 * 86 + - ( + CAST ( - + 1 AS INTEGER ) )
----
1

query I rowsort
SELECT + 31 * - 56 AS col0
----
-1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7196
SELECT + COALESCE ( - + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ), + 41 + + 16 ) + + 52
----
52

skipif mysql # not compatible
query I rowsort label-7196
SELECT + COALESCE ( - + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ), + 41 + + 16 ) + + 52
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7197
SELECT CAST( NULL AS DECIMAL ) * COUNT( * ) + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT CAST ( NULL AS REAL ) * COUNT ( * ) + 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7198
SELECT ALL + COALESCE ( + 69, + MAX( DISTINCT 86 ) ) / + 78 / + 63 - - CASE COUNT( 74 ) WHEN + 39 + + 57 + - 31 THEN - - 5 WHEN - 45 * + - 26 + - 10 + + 77 THEN NULL WHEN 90 THEN NULL END + + CASE MAX( DISTINCT - - 22 ) WHEN - MIN( DISTINCT - 72 ) THEN + COUNT( * ) * + 78 WHEN - 55 THEN CAST( NULL AS SIGNED ) END + - COALESCE ( 88 + - 4, + 29 + 53 ) * - 88 - - 4 / 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL + COALESCE ( + 69, + MAX ( DISTINCT 86 ) ) / + 78 / + 63 - - CASE COUNT ( 74 ) WHEN + 39 + + 57 + - 31 THEN - - 5 WHEN - 45 * + - 26 + - 10 + + 77 THEN NULL WHEN 90 THEN NULL END + + CASE MAX ( DISTINCT - - 22 ) WHEN - MIN ( DISTINCT - 72 ) THEN + COUNT ( * ) * + 78 WHEN - 55 THEN CAST ( NULL AS INTEGER ) END + - COALESCE ( 88 + - 4, + 29 + 53 ) * - 88 - - 4 / 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + 95 * + CASE + + 33 WHEN - MAX( ALL 1 ) THEN - + COUNT( * ) * 63 * - - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT + 95 * + CASE + + 33 WHEN - MAX ( ALL 1 ) THEN - + COUNT ( * ) * 63 * - - COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 1 * - + 11 * + 73 AS col1
----
803

query I rowsort
SELECT + 72 * - - 9 AS col2
----
648

onlyif mysql # aggregate syntax: 
query II rowsort label-7202
SELECT ALL - COUNT( ALL 64 ) col1, - 42
----
-1
-42

skipif mysql # not compatible
query II rowsort label-7202
SELECT ALL - COUNT ( ALL 64 ) col1, - 42
----
-1
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL - NULLIF ( - 12, + 86 + + + 43 + - 77 * - 4 * + 7 * - COUNT( * ) * 26 / 27 * + - 49 + - COUNT( - + 77 ) )
----
12

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - NULLIF ( - 12, + 86 + + + 43 + - 77 * - 4 * + 7 * - COUNT ( * ) * 26 / 27 * + - 49 + - COUNT ( - + 77 ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT - 62 * - 88 + + COUNT( * ) + + 92 * - + 12 AS col0
----
4353

skipif mysql # not compatible
query I rowsort label-7204
SELECT - 62 * - 88 + + COUNT ( * ) + + 92 * - + 12 AS col0
----
4353

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT COUNT( ALL - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-7205
SELECT COUNT ( ALL - 92 )
----
1

query I rowsort
SELECT 90 + - 73 AS col2
----
17

query I rowsort
SELECT ALL + ( + - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT - 44 + - 64 + - + COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-7208
SELECT - 44 + - 64 + - + COUNT ( * )
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7209
SELECT DISTINCT COALESCE ( - + ( + COALESCE ( + ( + 72 ), - + MAX( + 0 ) * 15 - MAX( - 66 ) + + + 94 + 34 DIV - 48 + 31 * + 83 * + 48 + ( + 81 ) * + 82 + - + ( - + 11 ) + 15 ) ), - 51 )
----
-72

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT COALESCE ( - + ( + COALESCE ( + ( + 72 ), - + MAX ( + 0 ) * 15 - MAX ( - 66 ) + + + 94 + 34 / - 48 + 31 * + 83 * + 48 + ( + 81 ) * + 82 + - + ( - + 11 ) + 15 ) ), - 51 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL + ( - 79 ) + - COUNT( * ) * + - 65
----
-14

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + ( - 79 ) + - COUNT ( * ) * + - 65
----
-14

query I rowsort
SELECT + 57 + - 91 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7212
SELECT ALL + CASE - COUNT( * ) WHEN - - CASE - 44 WHEN + - 46 THEN - - 27 * 66 END THEN + - 90 - + 33 ELSE NULL END, 41 AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-7212
SELECT ALL + CASE - COUNT ( * ) WHEN - - CASE - 44 WHEN + - 46 THEN - - 27 * 66 END THEN + - 90 - + 33 ELSE NULL END, 41 AS col1
----
NULL
41

query I rowsort
SELECT ALL + 40 + - 89 AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-7214
SELECT + 84 + - + 98 DIV 14
----
77

skipif mysql # not compatible
query I rowsort label-7214
SELECT + 84 + - + 98 / 14
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7215
SELECT - MIN( DISTINCT - + NULLIF ( + - ( ( - - 11 ) ), + + 65 + + CAST( NULL AS SIGNED ) ) ) + COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-7215
SELECT - MIN ( DISTINCT - + NULLIF ( + - ( ( - - 11 ) ), + + 65 + + CAST ( NULL AS INTEGER ) ) ) + COUNT ( * ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ALL + ( - 54 ) + - 71 * + MAX( ALL - 28 ) AS col2
----
1934

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL + ( - 54 ) + - 71 * + MAX ( ALL - 28 ) AS col2
----
1934

query I rowsort
SELECT DISTINCT - 37 + - CASE + 20 WHEN 99 - + 32 THEN + 92 ELSE - - 96 END AS col0
----
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-7218
SELECT - ( - 16 ) DIV + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7218
SELECT - ( - 16 ) / + 80 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT 28 + - 65 - - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT 28 + - 65 - - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7220
SELECT ALL - ( + 93 ) + + COALESCE ( + 5, + 90 ) DIV + 64
----
-93

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL - ( + 93 ) + + COALESCE ( + 5, + 90 ) / + 64
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-7221
SELECT - 60 * + COUNT( * ) AS col1, - NULLIF ( 74, - ( + + 60 ) ) AS col1
----
-60
-74

skipif mysql # not compatible
query II rowsort label-7221
SELECT - 60 * + COUNT ( * ) AS col1, - NULLIF ( 74, - ( + + 60 ) ) AS col1
----
-60
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT CASE + - 41 WHEN + COUNT( * ) THEN - + COUNT( * ) ELSE + + 73 + - + MAX( - 37 ) + COUNT( * ) END AS col2
----
111

skipif mysql # not compatible
query I rowsort label-7222
SELECT CASE + - 41 WHEN + COUNT ( * ) THEN - + COUNT ( * ) ELSE + + 73 + - + MAX ( - 37 ) + COUNT ( * ) END AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT ALL - 89 + + 26 + 41 / - 42 / - CASE 83 WHEN - 41 * - 71 * + 21 + - 7 + - 25 + 86 + COUNT( * ) * + COUNT( * ) * + ( + - ( + COUNT( * ) ) ) + + + COUNT( * ) - + 89 * + - 11 * - MIN( + + 37 ) + - - 42 + ( - - 86 ) + 57 / 29 * + COALESCE ( 73 + 74 * + 93, 73 - 69 * - COUNT( * ) ) THEN + COUNT( * ) / - 78 END + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL - 89 + + 26 + 41 / - 42 / - CASE 83 WHEN - 41 * - 71 * + 21 + - 7 + - 25 + 86 + COUNT ( * ) * + COUNT ( * ) * + ( + - ( + COUNT ( * ) ) ) + + + COUNT ( * ) - + 89 * + - 11 * - MIN ( + + 37 ) + - - 42 + ( - - 86 ) + 57 / 29 * + COALESCE ( 73 + 74 * + 93, 73 - 69 * - COUNT ( * ) ) THEN + COUNT ( * ) / - 78 END + - 90
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7224
SELECT DISTINCT 91 + - NULLIF ( + - COUNT( * ), + 39 * + - 58 ) AS col0, - COUNT( * ) * - 83 DIV 56 col2, + - 60
----
92
1
-60

skipif mysql # not compatible
query III rowsort label-7224
SELECT DISTINCT 91 + - NULLIF ( + - COUNT ( * ), + 39 * + - 58 ) AS col0, - COUNT ( * ) * - 83 / 56 col2, + - 60
----
92
1
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT ALL COUNT( * ) - + 51 + 55 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL COUNT ( * ) - + 51 + 55 AS col0
----
5

query I rowsort
SELECT DISTINCT 55 - - - 87 AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7227
SELECT - COALESCE ( + ( + ( + 55 ) ), 75 * ( + 6 ) ) DIV COUNT( * ) * + - 54 * + 6 * + 40 + + + 28
----
712828

skipif mysql # not compatible
query I rowsort label-7227
SELECT - COALESCE ( + ( + ( + 55 ) ), 75 * ( + 6 ) ) / COUNT ( * ) * + - 54 * + 6 * + 40 + + + 28
----
712828

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT ALL MAX( - 82 ) - + - 13 + + + MIN( 18 ) * + 1 * + + 67
----
1137

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL MAX ( - 82 ) - + - 13 + + + MIN ( 18 ) * + 1 * + + 67
----
1137

query I rowsort
SELECT DISTINCT 49 * + - 79 AS col1
----
-3871

query I rowsort
SELECT 14 * - 13 col2
----
-182

query I rowsort
SELECT 50 * + 2
----
100

query I rowsort
SELECT ALL 84 * + ( + ( - + 79 ) )
----
-6636

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7233
SELECT DISTINCT - CASE WHEN SUM( DISTINCT 16 ) BETWEEN + 54 AND ( - + CAST( - 66 AS DECIMAL ) ) THEN - 80 WHEN NOT ( 7 + 24 ) >= NULL THEN NULL ELSE NULL END * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT - CASE WHEN SUM ( DISTINCT 16 ) BETWEEN + 54 AND ( - + CAST ( - 66 AS REAL ) ) THEN - 80 WHEN NOT ( 7 + 24 ) >= NULL THEN NULL ELSE NULL END * - 51
----
NULL

query I rowsort
SELECT - AVG ( + + 29 ) * - 11 + - CASE + 53 WHEN - 69 THEN - ( 31 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7235
SELECT 39 * 90 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT 39 * 90 * + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - 17 AS col0, - 90 AS col1
----
-17
-90

query I rowsort
SELECT 56 + + - 0 * + 66
----
56

query II rowsort
SELECT + + 71 AS col2, 20
----
71
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT - NULLIF ( 4, 39 ) DIV + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7239
SELECT - NULLIF ( 4, 39 ) / + 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT + - ( COUNT( * ) ) * - + 99 + 64 - + COUNT( ALL - 81 )
----
162

skipif mysql # not compatible
query I rowsort label-7240
SELECT + - ( COUNT ( * ) ) * - + 99 + 64 - + COUNT ( ALL - 81 )
----
162

query I rowsort
SELECT ALL - + 16 col1
----
-16

query I rowsort
SELECT + 55 * - + 93
----
-5115

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL NULLIF ( + 44, - + MIN( + ( 93 ) ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL NULLIF ( + 44, - + MIN ( + ( 93 ) ) ) AS col1
----
44

query I rowsort
SELECT ALL 38 + 3 AS col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7245
SELECT - 21 * + ( + + COUNT( * ) ), ( + + 69 ) + - + SUM( DISTINCT + + 73 ) AS col0
----
-21
-4

skipif mysql # not compatible
query II rowsort label-7245
SELECT - 21 * + ( + + COUNT ( * ) ), ( + + 69 ) + - + SUM ( DISTINCT + + 73 ) AS col0
----
-21
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7246
SELECT CASE - 85 WHEN - - COUNT( * ) + - ( - 34 ) - + 91 THEN NULL WHEN - COUNT( * ) * + COUNT( * ) / COUNT( * ) THEN + - 36 + COUNT( * ) / + - 63 + 25 END - 85 + - - COUNT( * ) / + CAST( NULL AS SIGNED ) * - 95 + + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT CASE - 85 WHEN - - COUNT ( * ) + - ( - 34 ) - + 91 THEN NULL WHEN - COUNT ( * ) * + COUNT ( * ) / COUNT ( * ) THEN + - 36 + COUNT ( * ) / + - 63 + 25 END - 85 + - - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * - 95 + + - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT + 58 * + + COUNT( * ) + + 75 * + COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-7247
SELECT + 58 * + + COUNT ( * ) + + 75 * + COUNT ( * )
----
133

query I rowsort
SELECT 74 * + COALESCE ( - + 48, CASE WHEN NOT NULL IS NOT NULL THEN - 60 ELSE NULL END * + - 32, 13 * + 40 * - + 35 * + - 92 + ( 51 ) ) AS col1
----
-3552

onlyif mysql # aggregate syntax: 
query II rowsort label-7249
SELECT ALL - COUNT( * ), 62 AS col2
----
-1
62

skipif mysql # not compatible
query II rowsort label-7249
SELECT ALL - COUNT ( * ), 62 AS col2
----
-1
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7250
SELECT 5 * - + 81 * CASE - 80 WHEN COUNT( * ) / + + ( - 96 ) + + 61 THEN - + NULLIF ( - 71, 73 * 14 ) WHEN - - 97 THEN - ( - + 86 ) + - + 16 + - 17 + - CAST( NULL AS SIGNED ) / - 97 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT 5 * - + 81 * CASE - 80 WHEN COUNT ( * ) / + + ( - 96 ) + + 61 THEN - + NULLIF ( - 71, 73 * 14 ) WHEN - - 97 THEN - ( - + 86 ) + - + 16 + - 17 + - CAST ( NULL AS INTEGER ) / - 97 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT 89 + - COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7251
SELECT 89 + - COUNT ( * ) AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7252
SELECT 24 DIV MIN( + - 91 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7252
SELECT 24 / MIN ( + - 91 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT 98 + COUNT( * ) + - 52 * + ( + CAST( - 10 AS SIGNED ) ) * - COUNT( * ) AS col1
----
-421

skipif mysql # not compatible
query I rowsort label-7253
SELECT 98 + COUNT ( * ) + - 52 * + ( + CAST ( - 10 AS INTEGER ) ) * - COUNT ( * ) AS col1
----
-421

onlyif mysql # aggregate syntax: 
query II rowsort label-7254
SELECT - 96, - COUNT( * ) + 16 col2
----
-96
15

skipif mysql # not compatible
query II rowsort label-7254
SELECT - 96, - COUNT ( * ) + 16 col2
----
-96
15

query II rowsort
SELECT 52 AS col0, 39
----
52
39

query I rowsort
SELECT DISTINCT + 85 * + 65
----
5525

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT - 72 + + + MIN( - 88 ) + 95 * 35 * + + 72 AS col0
----
239240

skipif mysql # not compatible
query I rowsort label-7257
SELECT - 72 + + + MIN ( - 88 ) + 95 * 35 * + + 72 AS col0
----
239240

onlyif mysql # DIV for integer division: 
query I rowsort label-7258
SELECT + 78 DIV + 93 * 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7258
SELECT + 78 / + 93 * 55 AS col2
----
0

query I rowsort
SELECT - 48 + 75
----
27

query II rowsort
SELECT ALL + CASE + ( - 94 ) WHEN + - 61 THEN + 98 * + 11 ELSE NULL END AS col2, - 90
----
NULL
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT - ( COUNT( * ) ) * + + ( - + 11 ) - - - 40 * + 27 + - - ( + - 29 ) AS col2
----
-1098

skipif mysql # not compatible
query I rowsort label-7261
SELECT - ( COUNT ( * ) ) * + + ( - + 11 ) - - - 40 * + 27 + - - ( + - 29 ) AS col2
----
-1098

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT + MAX( 98 ) - + + 7
----
91

skipif mysql # not compatible
query I rowsort label-7262
SELECT + MAX ( 98 ) - + + 7
----
91

query I rowsort
SELECT COALESCE ( - 55, 37 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT + SUM( 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7264
SELECT + SUM ( 48 ) AS col0
----
48

query I rowsort
SELECT + + 70 * + + 1 + + + 35
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT ALL - - 24 * 30 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL - - 24 * 30 - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + + 4 AS col0, - 66
----
4
-66

query II rowsort
SELECT ALL + 99 AS col2, ( + + 15 )
----
99
15

query II rowsort
SELECT DISTINCT + + 88 AS col0, - 9 + 79
----
88
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7270
SELECT + + 43 DIV + ( - - 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7270
SELECT + + 43 / + ( - - 24 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7271
SELECT + - 99 * - COALESCE ( COUNT( * ), - + 73 ) * - + 86 + - SUM( DISTINCT + 50 ), - 5 col0
----
-8564
-5

skipif mysql # not compatible
query II rowsort label-7271
SELECT + - 99 * - COALESCE ( COUNT ( * ), - + 73 ) * - + 86 + - SUM ( DISTINCT + 50 ), - 5 col0
----
-8564
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7272
SELECT ALL + 44 DIV - - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL + 44 / - - 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7273
SELECT - + 22 AS col0, COUNT( * ) AS col1
----
-22
1

skipif mysql # not compatible
query II rowsort label-7273
SELECT - + 22 AS col0, COUNT ( * ) AS col1
----
-22
1

query I rowsort
SELECT - 32 + + - ( - + 81 ) + - ( + 49 ) + + - 73 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT ALL NULLIF ( - ( + 46 ), - - MIN( ALL + 8 ) ) - - 31 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL NULLIF ( - ( + 46 ), - - MIN ( ALL + 8 ) ) - - 31 AS col1
----
-15

query II rowsort
SELECT - ( + 90 ) AS col0, + 26
----
-90
26

query I rowsort
SELECT - 85 + 54 + - 49 * 51 col1
----
-2530

query I rowsort
SELECT + 96 * - COALESCE ( 38, + COALESCE ( - 79, 36 ) ) col0
----
-3648

query I rowsort
SELECT - 2 * - 1
----
2

query I rowsort
SELECT ALL 37 * + + 5
----
185

query I rowsort
SELECT - 66 * - 44 AS col1
----
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT DISTINCT SUM( DISTINCT - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT SUM ( DISTINCT - 76 )
----
-76

query I rowsort
SELECT DISTINCT + 9 * + 78 * - 52 * - 14
----
511056

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT - 1 * - + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7284
SELECT - 1 * - + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT ALL + 36 + + - 50 + - NULLIF ( 98, COUNT( * ) )
----
-112

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL + 36 + + - 50 + - NULLIF ( 98, COUNT ( * ) )
----
-112

query I rowsort
SELECT DISTINCT COALESCE ( - - 66, 79 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT + 30 DIV + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7287
SELECT + 30 / + 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT - 65 * + - MIN( + - 79 ) AS col1
----
-5135

skipif mysql # not compatible
query I rowsort label-7288
SELECT - 65 * + - MIN ( + - 79 ) AS col1
----
-5135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7289
SELECT + 64 DIV - ( + ( 35 ) ) + ( + ( COUNT( * ) ) ) - - 39 DIV - - 98 col0
----
0

skipif mysql # not compatible
query I rowsort label-7289
SELECT + 64 / - ( + ( 35 ) ) + ( + ( COUNT ( * ) ) ) - - 39 / - - 98 col0
----
0

query I rowsort
SELECT - 15 * + - 89
----
1335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7291
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + COUNT( * ) * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT + + 97 + - + 31 * + - COUNT( * )
----
128

skipif mysql # not compatible
query I rowsort label-7292
SELECT + + 97 + - + 31 * + - COUNT ( * )
----
128

query II rowsort
SELECT + + COALESCE ( + 97, + 33, CASE + + 37 WHEN 46 - 72 THEN + - 48 * - 44 + 55 END ) AS col0, + 21 AS col2
----
97
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7294
SELECT DISTINCT COUNT( * ) * + CASE + COUNT( * ) WHEN 16 * + AVG ( + 22 ) * + 67 - + 35 + - COUNT( * ) + + 76 * - - 69 * CAST( + + COUNT( DISTINCT + + 80 ) AS SIGNED ) THEN 94 + + 8 + 67 + + 85 + - MAX( CAST( - 23 AS SIGNED ) ) + + ( + + COALESCE ( + 11, + + 40 DIV + + NULLIF ( 2, - 88 * - 87 + CAST( 2 AS SIGNED ) ), 51 ) ) + - 69 * 42 * - 82 WHEN + 27 THEN - 85 * SUM( 52 * 56 ) ELSE 28 END - 87 - 46
----
-105

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT COUNT ( * ) * + CASE + COUNT ( * ) WHEN 16 * + AVG ( + 22 ) * + 67 - + 35 + - COUNT ( * ) + + 76 * - - 69 * CAST ( + + COUNT ( DISTINCT + + 80 ) AS INTEGER ) THEN 94 + + 8 + 67 + + 85 + - MAX ( CAST ( - 23 AS INTEGER ) ) + + ( + + COALESCE ( + 11, + + 40 / + + NULLIF ( 2, - 88 * - 87 + CAST ( 2 AS INTEGER ) ), 51 ) ) + - 69 * 42 * - 82 WHEN + 27 THEN - 85 * SUM ( 52 * 56 ) ELSE 28 END - 87 - 46
----
-105

query I rowsort
SELECT - + 53 * 46
----
-2438

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT DISTINCT + 15 * - COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT + 15 * - COUNT ( * ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT DISTINCT - SUM( - 30 ) * - + 21 + - + COUNT( * )
----
-631

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT - SUM ( - 30 ) * - + 21 + - + COUNT ( * )
----
-631

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT MAX( + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-7298
SELECT MAX ( + 9 )
----
9

query II rowsort
SELECT ALL 80 AS col2, - 49 AS col1
----
80
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7300
SELECT + CAST( - 67 AS SIGNED ) * + 67 + - + COUNT( * ) + - SUM( + 93 ) AS col2, - ( 21 ) DIV 80
----
-4583
0

skipif mysql # not compatible
query II rowsort label-7300
SELECT + CAST ( - 67 AS INTEGER ) * + 67 + - + COUNT ( * ) + - SUM ( + 93 ) AS col2, - ( 21 ) / 80
----
-4583
0

query I rowsort
SELECT + 85 * + 77
----
6545

query I rowsort
SELECT COALESCE ( - 22, - 54 ) - - 11 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7303
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ( - MAX( DISTINCT + 63 ) ) * + + 1 * + - 97 + ( - CASE WHEN NOT 4 IS NULL THEN + 80 ELSE NULL END ) - + + 67 - + COUNT( * ) * - + 70 * 77 AS col1
----
11354

skipif mysql # not compatible
query I rowsort label-7304
SELECT ( - MAX ( DISTINCT + 63 ) ) * + + 1 * + - 97 + ( - CASE WHEN NOT 4 IS NULL THEN + 80 ELSE NULL END ) - + + 67 - + COUNT ( * ) * - + 70 * 77 AS col1
----
11354

query I rowsort
SELECT 49 - + 17 AS col0
----
32

query II rowsort
SELECT ALL 5 AS col2, 29 * - 69 AS col2
----
5
-2001

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT COUNT( * ) + - + NULLIF ( - 11, + - 38 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7307
SELECT COUNT ( * ) + - + NULLIF ( - 11, + - 38 ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7308
SELECT 33 + + + COALESCE ( - 12, - 14 + - COUNT( * ) + + - 28 ) + 35 + - 83 / - CAST( NULL AS SIGNED ) * + + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7308
SELECT 33 + + + COALESCE ( - 12, - 14 + - COUNT ( * ) + + - 28 ) + 35 + - 83 / - CAST ( NULL AS INTEGER ) * + + 27 AS col1
----
NULL

query II rowsort
SELECT 9, 37 AS col1
----
9
37

query II rowsort
SELECT 15, 40 AS col0
----
15
40

query I rowsort
SELECT ALL + 5 + 15 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7312
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) * - + ( + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) * - + ( + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7313
SELECT DISTINCT + 15 DIV - 31 col2
----
0

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT + 15 / - 31 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7314
SELECT + 65 * - + 48 + - 8, COUNT( * ) AS col1
----
-3128
1

skipif mysql # not compatible
query II rowsort label-7314
SELECT + 65 * - + 48 + - 8, COUNT ( * ) AS col1
----
-3128
1

query I rowsort
SELECT + NULLIF ( + 18, + 45 * - - 17 ) AS col0
----
18

query I rowsort
SELECT ( + 32 ) + - - 30
----
62

query I rowsort
SELECT 59 * - 67 + 0 AS col1
----
-3953

query II rowsort
SELECT + + 3 AS col0, 68 + - - 6 AS col0
----
3
74

onlyif mysql # aggregate syntax: 
query II rowsort label-7319
SELECT ALL + 21 * - 60 + - 54, SUM( ALL + 86 ) AS col1
----
-1314
86

skipif mysql # not compatible
query II rowsort label-7319
SELECT ALL + 21 * - 60 + - 54, SUM ( ALL + 86 ) AS col1
----
-1314
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7320
SELECT + 35 * 23 DIV 42 - 82
----
-63

skipif mysql # not compatible
query I rowsort label-7320
SELECT + 35 * 23 / 42 - 82
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7321
SELECT ALL 85 * + MIN( ALL - - 79 ) AS col2, 81 + + 29 + - + CAST( 68 AS SIGNED ) * + 61 AS col1
----
6715
-4038

skipif mysql # not compatible
query II rowsort label-7321
SELECT ALL 85 * + MIN ( ALL - - 79 ) AS col2, 81 + + 29 + - + CAST ( 68 AS INTEGER ) * + 61 AS col1
----
6715
-4038

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL - - NULLIF ( MAX( + 97 ), + 49 + + - 4 ) * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL - - NULLIF ( MAX ( + 97 ), + 49 + + - 4 ) * + COUNT ( * )
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7323
SELECT ALL - + ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL - + ( - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL + 85 * - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL + 85 * - COUNT ( * )
----
-85

query II rowsort
SELECT DISTINCT - 49, ( + - 86 ) AS col0
----
-49
-86

query I rowsort
SELECT 7 + + 14 col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7327
SELECT SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7328
SELECT DISTINCT - ( - COALESCE ( - 94, + 77, + 10 * + 86 DIV - 26 * + 34 + + 72 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT - ( - COALESCE ( - 94, + 77, + 10 * + 86 / - 26 * + 34 + + 72 ) )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT 5 + - + MIN( ALL - - NULLIF ( - 74, 56 ) ) * + CASE - ( ( - - COUNT( * ) ) ) WHEN - 51 / ( + + MIN( 67 ) ) + - 31 THEN NULL WHEN 7 THEN + 64 * + 94 END * 9 - - - COUNT( * ) * - 99 + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT 5 + - + MIN ( ALL - - NULLIF ( - 74, 56 ) ) * + CASE - ( ( - - COUNT ( * ) ) ) WHEN - 51 / ( + + MIN ( 67 ) ) + - 31 THEN NULL WHEN 7 THEN + 64 * + 94 END * 9 - - - COUNT ( * ) * - 99 + - 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7330
SELECT COALESCE ( + 99, - 67 + COUNT( * ) + - - 26 DIV 43 * + 82 * + SUM( - - 89 ) DIV - - 32 ) * - 39 AS col0
----
-3861

skipif mysql # not compatible
query I rowsort label-7330
SELECT COALESCE ( + 99, - 67 + COUNT ( * ) + - - 26 / 43 * + 82 * + SUM ( - - 89 ) / - - 32 ) * - 39 AS col0
----
-3861

onlyif mysql # DIV for integer division: 
query I rowsort label-7331
SELECT 14 + ( - + 47 ) DIV + 93
----
14

skipif mysql # not compatible
query I rowsort label-7331
SELECT 14 + ( - + 47 ) / + 93
----
14

query I rowsort
SELECT NULLIF ( 55, 35 * - 75 ) + 67
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT ALL + 36 + - COALESCE ( 38, - 98 ) * + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL + 36 + - COALESCE ( 38, - 98 ) * + COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7334
SELECT COUNT( * ) + + 7 AS col1, + 24 AS col1
----
8
24

skipif mysql # not compatible
query II rowsort label-7334
SELECT COUNT ( * ) + + 7 AS col1, + 24 AS col1
----
8
24

query I rowsort
SELECT ALL 84 + + 99 + - 91
----
92

query I rowsort
SELECT 23 * + - 44 AS col0
----
-1012

query I rowsort
SELECT 59 + - 24 * + 63
----
-1453

query I rowsort
SELECT DISTINCT 19 + - 46 * + CASE 93 WHEN - 63 THEN - 47 * + 13 * - 36 + - - COALESCE ( + - 10, 48 ) END
----
NULL

query I rowsort
SELECT ALL 77 + COALESCE ( 66, - 11 )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT - SUM( DISTINCT + + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-7340
SELECT - SUM ( DISTINCT + + 14 )
----
-14

query I rowsort
SELECT 78 + COALESCE ( - 27, + 50 ) AS col2
----
51

query I rowsort
SELECT 49 * - - 54
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL ( - 1 ) + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL ( - 1 ) + - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT COUNT( * ) * + 10
----
10

skipif mysql # not compatible
query I rowsort label-7344
SELECT COUNT ( * ) * + 10
----
10

query I rowsort
SELECT 94 * + 69
----
6486

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL MIN( + - 60 ) * - 59 AS col1
----
3540

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL MIN ( + - 60 ) * - 59 AS col1
----
3540

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + + MIN( ALL - + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-7347
SELECT + + MIN ( ALL - + 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT DISTINCT - NULLIF ( - ( - + 51 ), + 5 * + COUNT( * ) + + + NULLIF ( - 83, 69 * - + 12 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT - NULLIF ( - ( - + 51 ), + 5 * + COUNT ( * ) + + + NULLIF ( - 83, 69 * - + 12 ) )
----
-51

query I rowsort
SELECT ALL 29 * - 65 - - + 25
----
-1860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7350
SELECT 74 * + + 25, + ( COALESCE ( - 77, - 96, COUNT( * ) - - CAST( - + COUNT( * ) AS SIGNED ) * + 19 ) ) AS col2
----
1850
-77

skipif mysql # not compatible
query II rowsort label-7350
SELECT 74 * + + 25, + ( COALESCE ( - 77, - 96, COUNT ( * ) - - CAST ( - + COUNT ( * ) AS INTEGER ) * + 19 ) ) AS col2
----
1850
-77

query I rowsort
SELECT DISTINCT - - ( ( - 3 ) ) AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT DISTINCT - + 4 DIV ( 53 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT - + 4 / ( 53 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT MIN( DISTINCT - - ( + + ( - + 46 ) ) ) * - 46 + - CAST( NULL AS SIGNED ) + + 82 + MAX( + - 59 ) / - - 44 + + ( 2 ) - - 15 + - - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT MIN ( DISTINCT - - ( + + ( - + 46 ) ) ) * - 46 + - CAST ( NULL AS INTEGER ) + + 82 + MAX ( + - 59 ) / - - 44 + + ( 2 ) - - 15 + - - 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7354
SELECT - COUNT( * ) DIV - + 48
----
0

skipif mysql # not compatible
query I rowsort label-7354
SELECT - COUNT ( * ) / - + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT 76 * + - 6 * - - MIN( 13 ) * - ( - - 61 )
----
361608

skipif mysql # not compatible
query I rowsort label-7355
SELECT 76 * + - 6 * - - MIN ( 13 ) * - ( - - 61 )
----
361608

query I rowsort
SELECT - 58 + - 91 AS col1
----
-149

query I rowsort
SELECT - + 43 * - 60 + 21 AS col0
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT ALL - - 62 * + + COUNT( + - 78 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL - - 62 * + + COUNT ( + - 78 ) col2
----
62

query I rowsort
SELECT COALESCE ( + COALESCE ( + 47, + 89 + - 88 ), - 77 ) col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7360
SELECT - + 4 DIV SUM( + 85 ) * + 95
----
0

skipif mysql # not compatible
query I rowsort label-7360
SELECT - + 4 / SUM ( + 85 ) * + 95
----
0

query I rowsort
SELECT - 73 * + 73 AS col2
----
-5329

query II rowsort
SELECT DISTINCT + 85 AS col0, 3
----
85
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL + COUNT( * ) + 56
----
57

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + COUNT ( * ) + 56
----
57

query I rowsort
SELECT ALL 14 * + 45 AS col1
----
630

query I rowsort
SELECT ALL - 67 + + 78 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7366
SELECT 26 AS col2, - 95 + + CAST( 67 AS SIGNED ) col2
----
26
-28

skipif mysql # not compatible
query II rowsort label-7366
SELECT 26 AS col2, - 95 + + CAST ( 67 AS INTEGER ) col2
----
26
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL + 40 + - + COUNT( * ) + + 18 * + NULLIF ( - 8, 23 * + 74 * - 28 ) col0
----
-105

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL + 40 + - + COUNT ( * ) + + 18 * + NULLIF ( - 8, 23 * + 74 * - 28 ) col0
----
-105

query I rowsort
SELECT + 14 * - 19 AS col0
----
-266

query I rowsort
SELECT - 72 * 99 AS col1
----
-7128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT ALL - 5 + + + ( - 33 ) + + AVG ( 48 ) * CASE - - CAST( NULL AS SIGNED ) WHEN - 31 THEN + - CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL - 5 + + + ( - 33 ) + + AVG ( 48 ) * CASE - - CAST ( NULL AS INTEGER ) WHEN - 31 THEN + - CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT 53, 97 AS col1
----
53
97

query I rowsort
SELECT DISTINCT - 23 + CASE 43 WHEN + 4 THEN - 19 END
----
NULL

query I rowsort
SELECT - 36 * ( + 38 ) col0
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL - COUNT( * ) - - 94 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL - COUNT ( * ) - - 94 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT DISTINCT CASE - COUNT( 59 ) WHEN + 85 THEN ( - COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT CASE - COUNT ( 59 ) WHEN + 85 THEN ( - COUNT ( * ) ) END AS col0
----
NULL

query I rowsort
SELECT ALL 24 - + + 30
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT - SUM( + ( - ( 45 ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-7377
SELECT - SUM ( + ( - ( 45 ) ) )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7378
SELECT ALL CASE 92 WHEN + + 60 + - + 97 * - 30 + 0 + - ( - COUNT( * ) ) THEN - 60 * - - ( + NULLIF ( 34, - 13 + 25 ) ) + + - COUNT( * ) / CAST( + 19 AS SIGNED ) WHEN + + MIN( + 84 ) THEN 77 WHEN - CASE + 86 WHEN + 48 * 58 + 35 + 91 + - MIN( DISTINCT + - 15 ) + 17 * - CAST( ( - 51 ) AS SIGNED ) THEN 99 WHEN - COUNT( 63 ) THEN - 53 END * 5 THEN 93 * ( - 33 / AVG ( CASE - 77 WHEN 33 THEN - ( + 41 ) * 95 END ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL CASE 92 WHEN + + 60 + - + 97 * - 30 + 0 + - ( - COUNT ( * ) ) THEN - 60 * - - ( + NULLIF ( 34, - 13 + 25 ) ) + + - COUNT ( * ) / CAST ( + 19 AS INTEGER ) WHEN + + MIN ( + 84 ) THEN 77 WHEN - CASE + 86 WHEN + 48 * 58 + 35 + 91 + - MIN ( DISTINCT + - 15 ) + 17 * - CAST ( ( - 51 ) AS INTEGER ) THEN 99 WHEN - COUNT ( 63 ) THEN - 53 END * 5 THEN 93 * ( - 33 / AVG ( CASE - 77 WHEN 33 THEN - ( + 41 ) * 95 END ) ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7379
SELECT ALL - 78 * - CAST( NULL AS SIGNED ) * + COALESCE ( - - 23, - CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col0, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7379
SELECT ALL - 78 * - CAST ( NULL AS INTEGER ) * + COALESCE ( - - 23, - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0
----
NULL
-1

query I rowsort
SELECT - 0 + + 80
----
80

query I rowsort
SELECT - + 65 * + + ( - + 6 )
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT - NULLIF ( 50, - + 77 ) + + COUNT( * ) - - MAX( - 31 )
----
-80

skipif mysql # not compatible
query I rowsort label-7382
SELECT - NULLIF ( 50, - + 77 ) + + COUNT ( * ) - - MAX ( - 31 )
----
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7383
SELECT + - CAST( NULL AS DECIMAL ) + - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT + - CAST ( NULL AS REAL ) + - - 89
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7384
SELECT + - 19 AS col2, - 90 DIV - COUNT( ALL 33 )
----
-19
90

skipif mysql # not compatible
query II rowsort label-7384
SELECT + - 19 AS col2, - 90 / - COUNT ( ALL 33 )
----
-19
90

query I rowsort
SELECT - - 47 * - 40 + + 92 + 97
----
-1691

query I rowsort
SELECT ALL 50 * - 40
----
-2000

query I rowsort
SELECT + 20 * + 58 AS col1
----
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL + - SUM( ALL + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL + - SUM ( ALL + 69 )
----
-69

query I rowsort
SELECT + 47 + - - 24
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT + + 8 * + - 45 * + - MAX( ALL 9 )
----
3240

skipif mysql # not compatible
query I rowsort label-7390
SELECT + + 8 * + - 45 * + - MAX ( ALL 9 )
----
3240

query I rowsort
SELECT - + 53 * 36 + 49 AS col1
----
-1859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7392
SELECT DISTINCT + COUNT( * ) * + 36 + - CAST( - 66 AS SIGNED )
----
102

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT + COUNT ( * ) * + 36 + - CAST ( - 66 AS INTEGER )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT DISTINCT + - 38 * MIN( DISTINCT + 10 ) + + 40
----
-340

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT + - 38 * MIN ( DISTINCT + 10 ) + + 40
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT + 50 * - MAX( ALL 8 ) AS col0
----
-400

skipif mysql # not compatible
query I rowsort label-7394
SELECT + 50 * - MAX ( ALL 8 ) AS col0
----
-400

query I rowsort
SELECT ALL - 81 * 95 AS col0
----
-7695

query I rowsort
SELECT - 20 - - ( - 65 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7397
SELECT + 87 col0, + 92 * 97 DIV + 65 AS col0, + SUM( DISTINCT 81 ) * 84 * - + ( - CAST( 23 AS SIGNED ) )
----
87
137
156492

skipif mysql # not compatible
query III rowsort label-7397
SELECT + 87 col0, + 92 * 97 / + 65 AS col0, + SUM ( DISTINCT 81 ) * 84 * - + ( - CAST ( 23 AS INTEGER ) )
----
87
137
156492

query I rowsort
SELECT + 90 + - 18 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL - COUNT( * ) * 19 + 73
----
54

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL - COUNT ( * ) * 19 + 73
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT NULLIF ( CASE + 70 WHEN - + 81 * COUNT( * ) - - 40 THEN - 89 ELSE NULL END, - + ( AVG ( ALL 4 ) ) * - - 62 - + COUNT( * ) + + MAX( ALL - - 70 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT NULLIF ( CASE + 70 WHEN - + 81 * COUNT ( * ) - - 40 THEN - 89 ELSE NULL END, - + ( AVG ( ALL 4 ) ) * - - 62 - + COUNT ( * ) + + MAX ( ALL - - 70 ) )
----
NULL

query I rowsort
SELECT + 84 + 48 * - - 2 - + 81
----
99

query I rowsort
SELECT DISTINCT - COALESCE ( - 57, 32 ) * - + 78 + 18 col0
----
-4428

query I rowsort
SELECT ALL + 27 * + 84 - - 48 + + 98
----
2414

query I rowsort
SELECT DISTINCT 1 * 25 AS col1
----
25

query I rowsort
SELECT DISTINCT 60 * + 85
----
5100

query II rowsort
SELECT ALL - 74 - + 94, + 37 col0
----
-168
37

query I rowsort
SELECT - 30 * + 31 * - 39 AS col0
----
36270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7408
SELECT DISTINCT - 1 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT - 1 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7409
SELECT - CAST( - - ( - + 1 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7409
SELECT - CAST ( - - ( - + 1 ) AS INTEGER )
----
1

query II rowsort
SELECT 98, + NULLIF ( + - 80, + - 73 - + 27 ) AS col0
----
98
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7411
SELECT ALL - 74 - - CASE + 9 WHEN - - 24 * CASE + + CAST( NULL AS SIGNED ) WHEN 43 + + MAX( - 51 ) + + 46 * - + 59 THEN 72 + - 43 WHEN - 11 / + 19 + - 74 THEN NULL WHEN + 77 THEN NULL ELSE NULL END + 69 THEN NULL WHEN 13 * - 21 THEN NULL WHEN 11 * - 13 + - 8 + 15 THEN 95 ELSE NULL END * - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - 74 - - CASE + 9 WHEN - - 24 * CASE + + CAST ( NULL AS INTEGER ) WHEN 43 + + MAX ( - 51 ) + + 46 * - + 59 THEN 72 + - 43 WHEN - 11 / + 19 + - 74 THEN NULL WHEN + 77 THEN NULL ELSE NULL END + 69 THEN NULL WHEN 13 * - 21 THEN NULL WHEN 11 * - 13 + - 8 + 15 THEN 95 ELSE NULL END * - + 76
----
NULL

query I rowsort
SELECT - + 19 * - 49 * 63 * 13
----
762489

query II rowsort
SELECT - - 55 + - + 71, + 18 AS col1
----
-16
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7414
SELECT DISTINCT COUNT( * ) col2, + 22
----
1
22

skipif mysql # not compatible
query II rowsort label-7414
SELECT DISTINCT COUNT ( * ) col2, + 22
----
1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT DISTINCT - MAX( - - ( + 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT - MAX ( - - ( + 38 ) )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7416
SELECT ALL CAST( NULL AS SIGNED ), 61 * 1 AS col2
----
NULL
61

skipif mysql # not compatible
query II rowsort label-7416
SELECT ALL CAST ( NULL AS INTEGER ), 61 * 1 AS col2
----
NULL
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7417
SELECT - 24, + COUNT( * ) * + 76 + 78 - - 8 AS col1
----
-24
162

skipif mysql # not compatible
query II rowsort label-7417
SELECT - 24, + COUNT ( * ) * + 76 + 78 - - 8 AS col1
----
-24
162

onlyif mysql # DIV for integer division: 
query II rowsort label-7418
SELECT ALL 35, - 70 DIV - 31 col0
----
35
2

skipif mysql # not compatible
query II rowsort label-7418
SELECT ALL 35, - 70 / - 31 col0
----
35
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT - MAX( DISTINCT 61 ) * - SUM( + 23 )
----
1403

skipif mysql # not compatible
query I rowsort label-7419
SELECT - MAX ( DISTINCT 61 ) * - SUM ( + 23 )
----
1403

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL + COUNT( * ) + 36
----
37

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL + COUNT ( * ) + 36
----
37

query II rowsort
SELECT - - 83, 21 AS col2
----
83
21

query I rowsort
SELECT DISTINCT - 7 + + 80 AS col0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7423
SELECT ALL - 16, + COUNT( * ) AS col1
----
-16
1

skipif mysql # not compatible
query II rowsort label-7423
SELECT ALL - 16, + COUNT ( * ) AS col1
----
-16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT MIN( + + 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7424
SELECT MIN ( + + 83 ) AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7425
SELECT 96 AS col2, - SUM( + CAST( NULL AS SIGNED ) )
----
96
NULL

skipif mysql # not compatible
query II rowsort label-7425
SELECT 96 AS col2, - SUM ( + CAST ( NULL AS INTEGER ) )
----
96
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7426
SELECT + + 49 AS col0, + COUNT( * ) DIV - 3 * 70
----
49
0

skipif mysql # not compatible
query II rowsort label-7426
SELECT + + 49 AS col0, + COUNT ( * ) / - 3 * 70
----
49
0

query I rowsort
SELECT ALL 23 + + - 92 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT 36 + - COUNT( * ) * - 8
----
44

skipif mysql # not compatible
query I rowsort label-7428
SELECT 36 + - COUNT ( * ) * - 8
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7429
SELECT DISTINCT + MIN( DISTINCT - CAST( 18 AS SIGNED ) ) + + 98, + 33 + + 58 col2
----
80
91

skipif mysql # not compatible
query II rowsort label-7429
SELECT DISTINCT + MIN ( DISTINCT - CAST ( 18 AS INTEGER ) ) + + 98, + 33 + + 58 col2
----
80
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7430
SELECT ALL - 40 + + 11 + + 56 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL - 40 + + 11 + + 56 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7431
SELECT ALL 97 + - + SUM( ALL 48 ) AS col0, - 27
----
49
-27

skipif mysql # not compatible
query II rowsort label-7431
SELECT ALL 97 + - + SUM ( ALL 48 ) AS col0, - 27
----
49
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT DISTINCT 56 * - COUNT( * ) * + 69 * + - 53 AS col2
----
204792

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT 56 * - COUNT ( * ) * + 69 * + - 53 AS col2
----
204792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7433
SELECT - 89 DIV - MIN( ALL - 59 ) + + 74 col2
----
73

skipif mysql # not compatible
query I rowsort label-7433
SELECT - 89 / - MIN ( ALL - 59 ) + + 74 col2
----
73

query I rowsort
SELECT DISTINCT ( 2 ) + + - 38 * 0 + - 5
----
-3

query I rowsort
SELECT 59 + + 16 * 54 * 37 AS col2
----
32027

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT ALL COUNT( * ) + + 22 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL COUNT ( * ) + + 22 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL 48 - COUNT( 34 ) + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL 48 - COUNT ( 34 ) + + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT CASE + 13 WHEN + 39 THEN - 82 ELSE + 82 * + 92 END * + MAX( ALL + + 7 )
----
52808

skipif mysql # not compatible
query I rowsort label-7438
SELECT CASE + 13 WHEN + 39 THEN - 82 ELSE + 82 * + 92 END * + MAX ( ALL + + 7 )
----
52808

query I rowsort
SELECT 48 + - 10 AS col2
----
38

query I rowsort
SELECT ( 38 ) * - + ( + 68 ) * - - 76 + - 25 AS col2
----
-196409

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT ALL 88 DIV ( 72 ) * - 35
----
-35

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL 88 / ( 72 ) * - 35
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7442
SELECT CASE + + 73 WHEN 27 THEN + 48 ELSE + 82 END DIV + + 71
----
1

skipif mysql # not compatible
query I rowsort label-7442
SELECT CASE + + 73 WHEN 27 THEN + 48 ELSE + 82 END / + + 71
----
1

query I rowsort
SELECT 74 - - ( - - 29 ) + + - 88 * + ( + 72 ) AS col2
----
-6233

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL + ( + COUNT( * ) ) * 52
----
52

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL + ( + COUNT ( * ) ) * 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT ALL 22 * - 9 * - 82 + COUNT( * ) + + - 63 col1
----
16174

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL 22 * - 9 * - 82 + COUNT ( * ) + + - 63 col1
----
16174

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT ALL - COUNT( * ) + - + ( - + 90 )
----
89

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL - COUNT ( * ) + - + ( - + 90 )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7447
SELECT - MIN( ALL + + 2 ), - COUNT( NULLIF ( 17, - 81 ) ) * - 69 + + + 7 * 6 DIV - - 17 + + 86 + + 76 AS col2
----
-2
233

skipif mysql # not compatible
query II rowsort label-7447
SELECT - MIN ( ALL + + 2 ), - COUNT ( NULLIF ( 17, - 81 ) ) * - 69 + + + 7 * 6 / - - 17 + + 86 + + 76 AS col2
----
-2
233

query I rowsort
SELECT 51 + 84 AS col2
----
135

query II rowsort
SELECT + 2 - - 41 col2, 45 AS col2
----
43
45

query I rowsort
SELECT 82 * + 73
----
5986

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT + COALESCE ( + COUNT( * ), - 24 ) + + - COALESCE ( + - 51, + 70 )
----
52

skipif mysql # not compatible
query I rowsort label-7451
SELECT + COALESCE ( + COUNT ( * ), - 24 ) + + - COALESCE ( + - 51, + 70 )
----
52

query I rowsort
SELECT ( + 92 ) - + - NULLIF ( 46, + 85 * 91 * + + 7 ) * + 93
----
4370

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL + + ( + COUNT( * ) ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL + + ( + COUNT ( * ) ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT + 29 * - COALESCE ( 42, COUNT( * ) * - 97 * - 95 + + 15 + - 74 * 81 ) * + - ( + 57 ) col0
----
69426

skipif mysql # not compatible
query I rowsort label-7454
SELECT + 29 * - COALESCE ( 42, COUNT ( * ) * - 97 * - 95 + + 15 + - 74 * 81 ) * + - ( + 57 ) col0
----
69426

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7455
SELECT ALL - AVG ( ALL CAST( NULL AS SIGNED ) ), - CAST( NULL AS SIGNED ) * + - 56 + 39
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7455
SELECT ALL - AVG ( ALL CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) * + - 56 + 39
----
NULL
NULL

query I rowsort
SELECT 20 + + COALESCE ( + 14, 96 ) AS col0
----
34

query I rowsort
SELECT - + 16 * 42 + 43 AS col2
----
-629

query I rowsort
SELECT ALL + + 42 * + 12
----
504

query I rowsort
SELECT ALL + - 25 * + 82 col2
----
-2050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7460
SELECT 45 DIV - COUNT( * ) + + + ( + 54 )
----
9

skipif mysql # not compatible
query I rowsort label-7460
SELECT 45 / - COUNT ( * ) + + + ( + 54 )
----
9

query I rowsort
SELECT 17 * + + 56
----
952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT ALL + CAST( + - 47 AS SIGNED ) * - 70 * + 71 AS col2
----
233590

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL + CAST ( + - 47 AS INTEGER ) * - 70 * + 71 AS col2
----
233590

query I rowsort
SELECT 62 + - 49 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT - 59 * MAX( ALL - 56 ) + - 85 col0
----
3219

skipif mysql # not compatible
query I rowsort label-7464
SELECT - 59 * MAX ( ALL - 56 ) + - 85 col0
----
3219

query I rowsort
SELECT DISTINCT - ( + 94 )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7466
SELECT ALL + 46 DIV - - COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL + 46 / - - COUNT ( * ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT - 2 * 96 * - - 21 + + MAX( 56 )
----
-3976

skipif mysql # not compatible
query I rowsort label-7467
SELECT - 2 * 96 * - - 21 + + MAX ( 56 )
----
-3976

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL 71 * COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL 71 * COUNT ( * ) AS col0
----
71

query I rowsort
SELECT 58 * + + 18 AS col1
----
1044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT CAST( NULL AS SIGNED ) * 42 + - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT CAST ( NULL AS INTEGER ) * 42 + - 24 AS col0
----
NULL

query II rowsort
SELECT 42, 21 AS col0
----
42
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT 67 * - ( + COUNT( * ) )
----
-67

skipif mysql # not compatible
query I rowsort label-7472
SELECT 67 * - ( + COUNT ( * ) )
----
-67

query I rowsort
SELECT ALL 65 * COALESCE ( - 49, + 81 * + 80 * - 67, - 37 ) AS col0
----
-3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7474
SELECT - 17 AS col0, CASE - - 18 WHEN + - 97 THEN 12 * + - SUM( 0 ) / + + 82 ELSE - 94 * - - 56 END - - CAST( NULL AS SIGNED ) + - 99 AS col0
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-7474
SELECT - 17 AS col0, CASE - - 18 WHEN + - 97 THEN 12 * + - SUM ( 0 ) / + + 82 ELSE - 94 * - - 56 END - - CAST ( NULL AS INTEGER ) + - 99 AS col0
----
-17
NULL

query II rowsort
SELECT ALL 19, - 4 + + 4 AS col1
----
19
0

query I rowsort
SELECT 83 + + 2 + + - 7
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7477
SELECT ALL + 64 * 86 DIV + 57
----
96

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL + 64 * 86 / + 57
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-7478
SELECT ALL 58, 9 * 91 DIV - 38 + 1 AS col1
----
58
-20

skipif mysql # not compatible
query II rowsort label-7478
SELECT ALL 58, 9 * 91 / - 38 + 1 AS col1
----
58
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT ( NULLIF ( + 23, COUNT( * ) ) ) + - 35 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7479
SELECT ( NULLIF ( + 23, COUNT ( * ) ) ) + - 35 AS col0
----
-12

query I rowsort
SELECT ALL + 73 + - 0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT + 77 DIV 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7481
SELECT + 77 / 9 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7482
SELECT - 16 * + - CAST( - + MIN( - 93 ) AS SIGNED ) + 84 AS col0
----
1572

skipif mysql # not compatible
query I rowsort label-7482
SELECT - 16 * + - CAST ( - + MIN ( - 93 ) AS INTEGER ) + 84 AS col0
----
1572

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT 63 + - 20 DIV 34 * + 17 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7483
SELECT 63 + - 20 / 34 * + 17 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT - MIN( - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7484
SELECT - MIN ( - 12 ) AS col1
----
12

query II rowsort
SELECT + 9 AS col0, + ( 11 ) AS col2
----
9
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7486
SELECT + 42 AS col2, 35 * CAST( NULL AS SIGNED ) col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-7486
SELECT + 42 AS col2, 35 * CAST ( NULL AS INTEGER ) col1
----
42
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7487
SELECT DISTINCT + ( + + 60 ) + 75 - - CASE + + COUNT( * ) WHEN 14 THEN 30 + + 75 + + + 68 WHEN - SUM( + 53 ) + - COUNT( * ) THEN NULL END + + CAST( - 65 AS SIGNED ) / 69 * + 47 * + ( 33 ) / + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT + ( + + 60 ) + 75 - - CASE + + COUNT ( * ) WHEN 14 THEN 30 + + 75 + + + 68 WHEN - SUM ( + 53 ) + - COUNT ( * ) THEN NULL END + + CAST ( - 65 AS INTEGER ) / 69 * + 47 * + ( 33 ) / + 91 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7488
SELECT ALL 96 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL 96 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL MAX( 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL MAX ( 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT DISTINCT COUNT( * ) * - 7 + + - 60 - - 16 * - ( + COALESCE ( + 63, + COUNT( * ) - + + ( COUNT( * ) ) ) ) AS col1
----
-1075

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT COUNT ( * ) * - 7 + + - 60 - - 16 * - ( + COALESCE ( + 63, + COUNT ( * ) - + + ( COUNT ( * ) ) ) ) AS col1
----
-1075

query I rowsort
SELECT ALL 58 * + CASE + - 98 WHEN + AVG ( DISTINCT - 24 ) * + 60 THEN - - ( - ( + 44 ) ) END
----
NULL

query I rowsort
SELECT ALL + 96 + - 23 AS col2
----
73

query I rowsort
SELECT DISTINCT + 38 + + 10 * - 34 col0
----
-302

query I rowsort
SELECT + 46 - - 12 col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7495
SELECT - 15 DIV - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-7495
SELECT - 15 / - COUNT ( * )
----
15

query I rowsort
SELECT + 55 * 12 col1
----
660

query I rowsort
SELECT - CASE - 80 WHEN + 32 THEN + 8 WHEN + + 91 THEN NULL END * - 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7498
SELECT - 61 + - - 76 DIV + 93 + + COUNT( * ) + 36
----
-24

skipif mysql # not compatible
query I rowsort label-7498
SELECT - 61 + - - 76 / + 93 + + COUNT ( * ) + 36
----
-24

query I rowsort
SELECT + 55 * 70 - - 18 AS col0
----
3868

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL + MAX( DISTINCT + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL + MAX ( DISTINCT + 0 )
----
0

query I rowsort
SELECT DISTINCT + 32 * + - 89 AS col2
----
-2848

query I rowsort
SELECT DISTINCT + 60 * - + 90
----
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT CASE + + 60 WHEN - ( - 69 ) THEN NULL WHEN 21 THEN 95 * 34 / - - 43 WHEN - COALESCE ( SUM( DISTINCT 64 ), - 42 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT CASE + + 60 WHEN - ( - 69 ) THEN NULL WHEN 21 THEN 95 * 34 / - - 43 WHEN - COALESCE ( SUM ( DISTINCT 64 ), - 42 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT - CAST( NULL AS SIGNED ) + - 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT - CAST ( NULL AS INTEGER ) + - 58 col0
----
NULL

query I rowsort
SELECT DISTINCT + 42 * + 51 col2
----
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT - 59 * + COUNT( DISTINCT + - 58 )
----
-59

skipif mysql # not compatible
query I rowsort label-7506
SELECT - 59 * + COUNT ( DISTINCT + - 58 )
----
-59

query I rowsort
SELECT DISTINCT + NULLIF ( + 89, - 67 ) AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7508
SELECT COALESCE ( - 83, + + 33 + - COUNT( * ), - SUM( ALL 6 ) DIV + 39 )
----
-83

skipif mysql # not compatible
query I rowsort label-7508
SELECT COALESCE ( - 83, + + 33 + - COUNT ( * ), - SUM ( ALL 6 ) / + 39 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT + ( + CASE - AVG ( + 14 ) WHEN - 64 * COUNT( * ) THEN 1 * - 86 WHEN - 7 + + NULLIF ( - COUNT( * ), COUNT( * ) ) + 96 * + COUNT( * ) + + 32 + 67 * + 11 THEN 94 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT + ( + CASE - AVG ( + 14 ) WHEN - 64 * COUNT ( * ) THEN 1 * - 86 WHEN - 7 + + NULLIF ( - COUNT ( * ), COUNT ( * ) ) + 96 * + COUNT ( * ) + + 32 + 67 * + 11 THEN 94 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT ALL 4 * - COUNT( * ) + + 40
----
36

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL 4 * - COUNT ( * ) + + 40
----
36

query I rowsort
SELECT - - 7 * - 37 AS col0
----
-259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7512
SELECT ALL - 73 * + 17 * - + 44 + + + ( 83 ) + + COALESCE ( - + 26, + 63 ) DIV COUNT( * ) DIV - 51 * - + 81 * - NULLIF ( - - COUNT( * ), - COUNT( * ) * - CASE NULLIF ( + COUNT( * ), ( + 71 ) ) WHEN + CASE - 86 WHEN 98 + + + 77 - - 25 * - 14 THEN NULL WHEN - CAST( NULL AS SIGNED ) DIV + COUNT( * ) + + + COUNT( * ) * - 1 + - 61 THEN + + CAST( 73 AS SIGNED ) + + + 45 + 94 * + ( - 63 ) WHEN + 37 THEN - NULLIF ( + 17, ( 75 ) ) * 96 END + CAST( NULL AS SIGNED ) THEN + ( 88 ) * + 83 ELSE - 63 * - COUNT( * ) END ) AS col2
----
54687

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL - 73 * + 17 * - + 44 + + + ( 83 ) + + COALESCE ( - + 26, + 63 ) / COUNT ( * ) / - 51 * - + 81 * - NULLIF ( - - COUNT ( * ), - COUNT ( * ) * - CASE NULLIF ( + COUNT ( * ), ( + 71 ) ) WHEN + CASE - 86 WHEN 98 + + + 77 - - 25 * - 14 THEN NULL WHEN - CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + + COUNT ( * ) * - 1 + - 61 THEN + + CAST ( 73 AS INTEGER ) + + + 45 + 94 * + ( - 63 ) WHEN + 37 THEN - NULLIF ( + 17, ( 75 ) ) * 96 END + CAST ( NULL AS INTEGER ) THEN + ( 88 ) * + 83 ELSE - 63 * - COUNT ( * ) END ) AS col2
----
54687

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT DISTINCT 88 * + ( + + COUNT( * ) ) + - 72 + 38
----
54

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT 88 * + ( + + COUNT ( * ) ) + - 72 + 38
----
54

query I rowsort
SELECT - 0 + 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL - COUNT( * ) * + COUNT( * ) - - 78 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL - COUNT ( * ) * + COUNT ( * ) - - 78 AS col1
----
77

query I rowsort
SELECT - 14 * CASE - 22 WHEN + + 50 + 2 THEN NULL WHEN + ( + + 97 ) / - NULLIF ( + 66, + 26 ) THEN + - 96 + - 53 WHEN + 45 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - + ( + - NULLIF ( - 6, - 52 ) ) AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7518
SELECT DISTINCT - COUNT( * ) * - 89 DIV + COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT - COUNT ( * ) * - 89 / + COUNT ( * ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT - - 55 - + - COUNT( * ) col1
----
56

skipif mysql # not compatible
query I rowsort label-7519
SELECT - - 55 - + - COUNT ( * ) col1
----
56

query I rowsort
SELECT ALL + + 84 * - 59 AS col0
----
-4956

query II rowsort
SELECT DISTINCT + 59 * + 20 AS col0, - 18 * - 31 + + - NULLIF ( - - 7, + - 88 )
----
1180
551

query I rowsort
SELECT ALL + - 71 - 51
----
-122

query I rowsort
SELECT DISTINCT - 67 - - + 61
----
-6

query I rowsort
SELECT + 0 - - 2 + 66
----
68

query I rowsort
SELECT + 44 + + - 27 col0
----
17

query I rowsort
SELECT + 13 - - + ( 87 ) - - NULLIF ( 52, ( - 4 ) ) * - 23 AS col1
----
-1096

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT + + SUM( 75 ) * 52 + + + 53 + + 98 * + 29 AS col0
----
6795

skipif mysql # not compatible
query I rowsort label-7527
SELECT + + SUM ( 75 ) * 52 + + + 53 + + 98 * + 29 AS col0
----
6795

query I rowsort
SELECT + + 48 * - + 70 AS col1
----
-3360

query I rowsort
SELECT ALL 32 * + 62
----
1984

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT ALL + NULLIF ( - 8, - - 79 ) col0, COUNT( * )
----
-8
1

skipif mysql # not compatible
query II rowsort label-7530
SELECT ALL + NULLIF ( - 8, - - 79 ) col0, COUNT ( * )
----
-8
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7531
SELECT 83 / - + ( + 35 ) + + - CAST( NULL AS DECIMAL ) + + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * 53 * - MIN( ALL - - ( 57 ) ) / - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT 83 / - + ( + 35 ) + + - CAST ( NULL AS REAL ) + + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * 53 * - MIN ( ALL - - ( 57 ) ) / - 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7532
SELECT CAST( 76 AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7532
SELECT CAST ( 76 AS INTEGER ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7533
SELECT - CAST( - 36 AS SIGNED ) + 44 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7533
SELECT - CAST ( - 36 AS INTEGER ) + 44 AS col2
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7534
SELECT ALL + COUNT( * ) AS col1, 55 AS col2
----
1
55

skipif mysql # not compatible
query II rowsort label-7534
SELECT ALL + COUNT ( * ) AS col1, 55 AS col2
----
1
55

query I rowsort
SELECT ALL + COALESCE ( 0, - 76 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ALL CASE + 85 WHEN 11 / 21 THEN 94 WHEN - - ( - 7 ) THEN NULL END / 97 - + + 69 + MIN( - 5 ) * - ( - + 82 ) + + 15 + COALESCE ( - 92, - ( 87 ) * COALESCE ( - COUNT( * ), + - CASE - + 95 WHEN + ( - 67 ) THEN + + COUNT( * ) + 96 / 34 + 27 WHEN - COUNT( * ) THEN 63 + - 25 + + 31 * + + 16 ELSE - 54 / + - COUNT( * ) END ) + ( - 28 ), 57 + ( 23 + - 76 ) ) * NULLIF ( + 32 / - ( + 61 ), - 96 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL CASE + 85 WHEN 11 / 21 THEN 94 WHEN - - ( - 7 ) THEN NULL END / 97 - + + 69 + MIN ( - 5 ) * - ( - + 82 ) + + 15 + COALESCE ( - 92, - ( 87 ) * COALESCE ( - COUNT ( * ), + - CASE - + 95 WHEN + ( - 67 ) THEN + + COUNT ( * ) + 96 / 34 + 27 WHEN - COUNT ( * ) THEN 63 + - 25 + + 31 * + + 16 ELSE - 54 / + - COUNT ( * ) END ) + ( - 28 ), 57 + ( 23 + - 76 ) ) * NULLIF ( + 32 / - ( + 61 ), - 96 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7537
SELECT ALL 31 DIV - 7 + + - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL 31 / - 7 + + - COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT ALL 0 / - COUNT( * ) * - 64 * - SUM( + 73 ) + - - 93 * - CASE - + 67 WHEN + + 54 THEN + - 49 / 73 ELSE NULL END - - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL 0 / - COUNT ( * ) * - 64 * - SUM ( + 73 ) + - - 93 * - CASE - + 67 WHEN + + 54 THEN + - 49 / 73 ELSE NULL END - - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL - COUNT( * ) * 60 + + + 8 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL - COUNT ( * ) * 60 + + + 8 AS col1
----
-52

query I rowsort
SELECT - 17 - 88 AS col0
----
-105

query I rowsort
SELECT DISTINCT - 11 * - 18 AS col0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT + + 55 * + COUNT( * ) + ( ( - + 75 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-7542
SELECT + + 55 * + COUNT ( * ) + ( ( - + 75 ) )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7543
SELECT - 7 * - + 51 / + 40 * + 74 - - + 44 + - + 60 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT - 7 * - + 51 / + 40 * + 74 - - + 44 + - + 60 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT ALL - 81 * 59 DIV - + 51 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - 81 * 59 / - + 51 AS col2
----
93

query I rowsort
SELECT NULLIF ( 69, + 35 ) * 18
----
1242

query I rowsort
SELECT - 21 + + + 16 AS col2
----
-5

query I rowsort
SELECT 95 * ( - 35 )
----
-3325

query I rowsort
SELECT DISTINCT + ( - - 76 )
----
76

query I rowsort
SELECT ALL + 29 - - - 38
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7550
SELECT CAST( NULL AS SIGNED ) AS col1, 2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-7550
SELECT CAST ( NULL AS INTEGER ) AS col1, 2
----
NULL
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7551
SELECT COUNT( * ) DIV - COUNT( - - 52 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7551
SELECT COUNT ( * ) / - COUNT ( - - 52 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7552
SELECT ALL + COUNT( * ) DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL + COUNT ( * ) / + 72 AS col2
----
0

query I rowsort
SELECT 95 + + - 29 * 92 AS col2
----
-2573

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + COUNT( DISTINCT 99 ) + - 3 * - 71 * - + 92
----
-19595

skipif mysql # not compatible
query I rowsort label-7554
SELECT + COUNT ( DISTINCT 99 ) + - 3 * - 71 * - + 92
----
-19595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7555
SELECT ALL + ( + 97 ) - - COUNT( * ) DIV - 43 col2
----
97

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL + ( + 97 ) - - COUNT ( * ) / - 43 col2
----
97

query I rowsort
SELECT - 6 * - - 91
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT + COUNT( * ) + + - 25
----
-24

skipif mysql # not compatible
query I rowsort label-7557
SELECT + COUNT ( * ) + + - 25
----
-24

query I rowsort
SELECT ALL + 14 * + - 18 AS col1
----
-252

query II rowsort
SELECT ALL 72, 11 AS col0
----
72
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT MAX( ALL - - 16 ) + + + ( - ( - + 64 ) )
----
80

skipif mysql # not compatible
query I rowsort label-7560
SELECT MAX ( ALL - - 16 ) + + + ( - ( - + 64 ) )
----
80

query II rowsort
SELECT DISTINCT 74 AS col1, + 38
----
74
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT ALL - 59 * + MIN( DISTINCT + 68 )
----
-4012

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL - 59 * + MIN ( DISTINCT + 68 )
----
-4012

onlyif mysql # DIV for integer division: 
query I rowsort label-7563
SELECT 68 * 11 DIV - 56
----
-13

skipif mysql # not compatible
query I rowsort label-7563
SELECT 68 * 11 / - 56
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7564
SELECT 66 col0, + 71 + CAST( NULL AS SIGNED )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-7564
SELECT 66 col0, + 71 + CAST ( NULL AS INTEGER )
----
66
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7565
SELECT 52 - - COUNT( * ) + + MIN( + 65 ) * - 93 * - COUNT( * ) AS col2, 9 AS col0
----
6098
9

skipif mysql # not compatible
query II rowsort label-7565
SELECT 52 - - COUNT ( * ) + + MIN ( + 65 ) * - 93 * - COUNT ( * ) AS col2, 9 AS col0
----
6098
9

query II rowsort
SELECT - 37 AS col1, - 67 AS col2
----
-37
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT COUNT( ALL + 43 ) + + + MIN( DISTINCT 25 )
----
26

skipif mysql # not compatible
query I rowsort label-7567
SELECT COUNT ( ALL + 43 ) + + + MIN ( DISTINCT 25 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7568
SELECT DISTINCT 90 + - CASE - CAST( + 23 AS SIGNED ) WHEN - CASE 35 WHEN + COUNT( * ) * + - AVG ( DISTINCT + 69 ) + - MIN( DISTINCT + - 0 ) THEN NULL WHEN - COUNT( * ) * - CASE - - 73 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - 48 + + 50 END - - + 90 THEN NULL ELSE + 58 * + - CAST( NULL AS SIGNED ) * - - AVG ( - 64 ) - - 48 / + + CASE - 35 WHEN + 84 THEN NULL WHEN + + 38 / 35 * + 89 * - - 54 THEN 57 WHEN + 34 THEN NULL END * - 81 * - COUNT( * ) END * + COALESCE ( - 64, - 52 + - 26 * + 6, 90 ) THEN 24 + + 68 ELSE NULL END + + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT 90 + - CASE - CAST ( + 23 AS INTEGER ) WHEN - CASE 35 WHEN + COUNT ( * ) * + - AVG ( DISTINCT + 69 ) + - MIN ( DISTINCT + - 0 ) THEN NULL WHEN - COUNT ( * ) * - CASE - - 73 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - 48 + + 50 END - - + 90 THEN NULL ELSE + 58 * + - CAST ( NULL AS INTEGER ) * - - AVG ( - 64 ) - - 48 / + + CASE - 35 WHEN + 84 THEN NULL WHEN + + 38 / 35 * + 89 * - - 54 THEN 57 WHEN + 34 THEN NULL END * - 81 * - COUNT ( * ) END * + COALESCE ( - 64, - 52 + - 26 * + 6, 90 ) THEN 24 + + 68 ELSE NULL END + + 94 AS col2
----
NULL

query II rowsort
SELECT 53 AS col0, - 69 AS col1
----
53
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT ALL 42 + + CAST( + + 11 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL 42 + + CAST ( + + 11 AS INTEGER )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT MIN( ALL - 79 ) * + 74 AS col1
----
-5846

skipif mysql # not compatible
query I rowsort label-7571
SELECT MIN ( ALL - 79 ) * + 74 AS col1
----
-5846

query I rowsort
SELECT DISTINCT 54 + - - 54
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT ALL 89 + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL 89 + COUNT ( * ) AS col1
----
90

query II rowsort
SELECT ALL + 52 + + + 77 * 9 * - 35 + - COALESCE ( - - 58, 86 ), - 96 + - 32 AS col0
----
-24261
-128

query I rowsort
SELECT 83 * + + 10
----
830

query I rowsort
SELECT ( - + ( - + 14 ) ) * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + - ( - - ( + - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-7577
SELECT + - ( - - ( + - COUNT ( * ) ) )
----
1

query I rowsort
SELECT - 52 + - 64
----
-116

query I rowsort
SELECT DISTINCT + - 21 - + + 43 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL - COUNT( * ) - 78 * + 34 * - + 54 AS col0
----
143207

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL - COUNT ( * ) - 78 * + 34 * - + 54 AS col0
----
143207

query II rowsort
SELECT DISTINCT - 13 AS col0, 71 AS col2
----
-13
71

query I rowsort
SELECT + NULLIF ( 40, + 13 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7583
SELECT ALL 56 AS col2, - CAST( NULL AS SIGNED )
----
56
NULL

skipif mysql # not compatible
query II rowsort label-7583
SELECT ALL 56 AS col2, - CAST ( NULL AS INTEGER )
----
56
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7584
SELECT 51 * - CASE COUNT( * ) WHEN 29 THEN - CAST( NULL AS SIGNED ) - 22 + - CASE 30 WHEN + 81 THEN NULL WHEN 51 THEN NULL WHEN + COALESCE ( + - 51, - - 98, + + CASE + - 3 WHEN CAST( + + CASE - 12 WHEN - + 51 * + COUNT( * ) - + 51 THEN NULL ELSE - 59 END AS DECIMAL ) * - 45 + - 35 + - CAST( + 73 AS SIGNED ) THEN 71 - 24 / - 78 * NULLIF ( - 38, - CASE - + 44 WHEN - + 13 - - 39 THEN NULL ELSE + 4 END ) END - - COALESCE ( + 47, AVG ( 96 ) + 57 * - 12 ) ) THEN + 17 / - 34 - + 16 ELSE NULL END / + 84 WHEN - 49 THEN + 85 - 43 WHEN 47 * 27 THEN NULL WHEN - 88 + - 51 THEN + SUM( ALL 27 ) * - 40 END * 0 - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT 51 * - CASE COUNT ( * ) WHEN 29 THEN - CAST ( NULL AS INTEGER ) - 22 + - CASE 30 WHEN + 81 THEN NULL WHEN 51 THEN NULL WHEN + COALESCE ( + - 51, - - 98, + + CASE + - 3 WHEN CAST ( + + CASE - 12 WHEN - + 51 * + COUNT ( * ) - + 51 THEN NULL ELSE - 59 END AS REAL ) * - 45 + - 35 + - CAST ( + 73 AS INTEGER ) THEN 71 - 24 / - 78 * NULLIF ( - 38, - CASE - + 44 WHEN - + 13 - - 39 THEN NULL ELSE + 4 END ) END - - COALESCE ( + 47, AVG ( 96 ) + 57 * - 12 ) ) THEN + 17 / - 34 - + 16 ELSE NULL END / + 84 WHEN - 49 THEN + 85 - 43 WHEN 47 * 27 THEN NULL WHEN - 88 + - 51 THEN + SUM ( ALL 27 ) * - 40 END * 0 - 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT DISTINCT + + COUNT( * ) * - 98
----
-98

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT + + COUNT ( * ) * - 98
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7586
SELECT CAST( NULL AS SIGNED ) * 83 * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT CAST ( NULL AS INTEGER ) * 83 * 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7587
SELECT - CASE - 66 WHEN 46 THEN NULL WHEN + + 97 + + - 35 * - 39 THEN + 9 * 32 + + - 50 - - - 81 ELSE NULL END * - - 10, COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7587
SELECT - CASE - 66 WHEN 46 THEN NULL WHEN + + 97 + + - 35 * - 39 THEN + 9 * 32 + + - 50 - - - 81 ELSE NULL END * - - 10, COUNT ( * ) col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT 89 + + 80 + COUNT( * ) col1
----
170

skipif mysql # not compatible
query I rowsort label-7588
SELECT 89 + + 80 + COUNT ( * ) col1
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-7589
SELECT - 2, - MAX( 88 ) + + COUNT( * ) * + 89 * + 32 AS col1
----
-2
2760

skipif mysql # not compatible
query II rowsort label-7589
SELECT - 2, - MAX ( 88 ) + + COUNT ( * ) * + 89 * + 32 AS col1
----
-2
2760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7590
SELECT - 62 + + CAST( NULL AS SIGNED ), - 52 + - 25 AS col2
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-7590
SELECT - 62 + + CAST ( NULL AS INTEGER ), - 52 + - 25 AS col2
----
NULL
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT ALL + 91 DIV - + 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL + 91 / - + 46 AS col1
----
-1

query I rowsort
SELECT 42 + + 72 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT 52 + - COUNT( * ) * + 75
----
-23

skipif mysql # not compatible
query I rowsort label-7593
SELECT 52 + - COUNT ( * ) * + 75
----
-23

query I rowsort
SELECT ALL - 28 + 2 + - 57 + - 84 * 42 AS col2
----
-3611

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT + 74 * - + 89 * + MAX( 7 ) * - 4 * 13
----
2397304

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT + 74 * - + 89 * + MAX ( 7 ) * - 4 * 13
----
2397304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7596
SELECT ALL + 1 + - + 4 + + COUNT( * ) DIV + 28 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL + 1 + - + 4 + + COUNT ( * ) / + 28 AS col2
----
-3

query I rowsort
SELECT DISTINCT - 38 + - 45 - 28 * + 35
----
-1063

query I rowsort
SELECT ALL 1 + 73
----
74

query I rowsort
SELECT 87 + - 3
----
84

query I rowsort
SELECT ALL - 29 * 11 * - 64 col0
----
20416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7601
SELECT CAST( NULL AS SIGNED ) * MAX( + + 48 ) + + 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT CAST ( NULL AS INTEGER ) * MAX ( + + 48 ) + + 11 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 11 * - 13
----
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7603
SELECT - CASE 62 WHEN + 63 * - NULLIF ( + + ( + + COUNT( * ) ), + 25 - + - CAST( NULL AS SIGNED ) ) + + ( 26 ) THEN NULL ELSE - 17 + + 75 END * + COUNT( 84 )
----
-58

skipif mysql # not compatible
query I rowsort label-7603
SELECT - CASE 62 WHEN + 63 * - NULLIF ( + + ( + + COUNT ( * ) ), + 25 - + - CAST ( NULL AS INTEGER ) ) + + ( 26 ) THEN NULL ELSE - 17 + + 75 END * + COUNT ( 84 )
----
-58

query I rowsort
SELECT + 94 * 60 AS col1
----
5640

onlyif mysql # aggregate syntax: 
query II rowsort label-7605
SELECT DISTINCT - COUNT( * ) * + 24 + 21, 86 col2
----
-3
86

skipif mysql # not compatible
query II rowsort label-7605
SELECT DISTINCT - COUNT ( * ) * + 24 + 21, 86 col2
----
-3
86

query I rowsort
SELECT - 65 + ( 58 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT - 41 * ( - 83 ) / - ( CASE - + 53 WHEN 34 THEN + + 11 * + 10 WHEN + COUNT( - 57 ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT - 41 * ( - 83 ) / - ( CASE - + 53 WHEN 34 THEN + + 11 * + 10 WHEN + COUNT ( - 57 ) THEN NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7608
SELECT - COUNT( * ) * - - SUM( DISTINCT 87 ) * + COUNT( * ) * - 70 + - 32 - 57 * - 54 * + - CASE - - COUNT( * ) WHEN + CAST( 67 AS SIGNED ) THEN ( + + 71 ) WHEN + - 27 THEN - 74 ELSE NULL END - - + 89 * + COUNT( * ) * + + 88 - 97 + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT - COUNT ( * ) * - - SUM ( DISTINCT 87 ) * + COUNT ( * ) * - 70 + - 32 - 57 * - 54 * + - CASE - - COUNT ( * ) WHEN + CAST ( 67 AS INTEGER ) THEN ( + + 71 ) WHEN + - 27 THEN - 74 ELSE NULL END - - + 89 * + COUNT ( * ) * + + 88 - 97 + - 32
----
NULL

query II rowsort
SELECT DISTINCT - 32 * 95 AS col0, + 67 + + + 21
----
-3040
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT DISTINCT 38 * 42 - + - COUNT( * ) * + 47 + MAX( DISTINCT 24 ) AS col0
----
1667

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT 38 * 42 - + - COUNT ( * ) * + 47 + MAX ( DISTINCT 24 ) AS col0
----
1667

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7611
SELECT ALL + - 77 DIV + + 36 * + + COUNT( * ) - - 76 * ( 70 )
----
5318

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL + - 77 / + + 36 * + + COUNT ( * ) - - 76 * ( 70 )
----
5318

query I rowsort
SELECT + - 93 + 17 AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7613
SELECT ALL - + 21 * - 99 - - 6 + - COUNT( * ) + + CAST( NULL AS SIGNED ) / 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL - + 21 * - 99 - - 6 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) / 93
----
NULL

query I rowsort
SELECT + 39 - - 55 AS col1
----
94

query II rowsort
SELECT ALL - 38 * + - 68 AS col2, + 43 * + 91
----
2584
3913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7616
SELECT + MAX( ALL - 21 ) * + MAX( + - 16 ) + + CAST( NULL AS SIGNED ) * - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT + MAX ( ALL - 21 ) * + MAX ( + - 16 ) + + CAST ( NULL AS INTEGER ) * - 56 AS col0
----
NULL

query I rowsort
SELECT + 60 * - - 81 + - + 1 AS col0
----
4859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7618
SELECT CASE - + ( ( 78 ) ) WHEN - 61 / + CAST( + 18 AS SIGNED ) THEN NULL WHEN - 10 THEN NULL ELSE ( ( - 55 ) ) END * + + SUM( DISTINCT 97 ) * + NULLIF ( - MAX( NULLIF ( + 11, + - 38 ) ), + ( - 97 ) ) * + CAST( NULL AS SIGNED ) + - - 61 * + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT CASE - + ( ( 78 ) ) WHEN - 61 / + CAST ( + 18 AS INTEGER ) THEN NULL WHEN - 10 THEN NULL ELSE ( ( - 55 ) ) END * + + SUM ( DISTINCT 97 ) * + NULLIF ( - MAX ( NULLIF ( + 11, + - 38 ) ), + ( - 97 ) ) * + CAST ( NULL AS INTEGER ) + - - 61 * + 56 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7619
SELECT + - 41 + + - CASE - 57 WHEN 0 THEN - + NULLIF ( - 44, + 29 + + COUNT( * ) - + 46 ) WHEN COUNT( * ) - - 93 + + 80 * - + COALESCE ( + + COUNT( * ), + - 43, + 77 * - - 10 + - - COUNT( * ) ) * NULLIF ( + - COALESCE ( - 31, + 48 + + 62 ), - COUNT( * ) ) * - 25 / - 11 + + - 18 - - CAST( + - 63 AS SIGNED ) - + ( + 93 ) THEN + 74 + 14 END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT + - 41 + + - CASE - 57 WHEN 0 THEN - + NULLIF ( - 44, + 29 + + COUNT ( * ) - + 46 ) WHEN COUNT ( * ) - - 93 + + 80 * - + COALESCE ( + + COUNT ( * ), + - 43, + 77 * - - 10 + - - COUNT ( * ) ) * NULLIF ( + - COALESCE ( - 31, + 48 + + 62 ), - COUNT ( * ) ) * - 25 / - 11 + + - 18 - - CAST ( + - 63 AS INTEGER ) - + ( + 93 ) THEN + 74 + 14 END + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7620
SELECT + COUNT( * ) DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-7620
SELECT + COUNT ( * ) / + 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7621
SELECT - 80 + NULLIF ( - 25, + ( + AVG ( DISTINCT 80 ) ) + 62 + + CAST( NULL AS SIGNED ) ) + ( COUNT( * ) ) * - 61 * 49 AS col2
----
-3094

skipif mysql # not compatible
query I rowsort label-7621
SELECT - 80 + NULLIF ( - 25, + ( + AVG ( DISTINCT 80 ) ) + 62 + + CAST ( NULL AS INTEGER ) ) + ( COUNT ( * ) ) * - 61 * 49 AS col2
----
-3094

query I rowsort
SELECT DISTINCT 84 * + 35 AS col0
----
2940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7623
SELECT DISTINCT + ( - 9 ) DIV + MAX( 75 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT + ( - 9 ) / + MAX ( 75 ) AS col0
----
0

query I rowsort
SELECT ALL NULLIF ( 71, - 88 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7625
SELECT + + 17 + + COUNT( * ), + NULLIF ( + 94, + MIN( DISTINCT 36 ) ) AS col0
----
18
94

skipif mysql # not compatible
query II rowsort label-7625
SELECT + + 17 + + COUNT ( * ), + NULLIF ( + 94, + MIN ( DISTINCT 36 ) ) AS col0
----
18
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT - - COUNT( * ) * 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7626
SELECT - - COUNT ( * ) * 92 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7627
SELECT ALL - 37 + - COUNT( * ) * NULLIF ( 61, - - CASE WHEN NOT CASE + - 8 WHEN + 86 * CAST( NULL AS DECIMAL ) - - 97 THEN NULL WHEN - 98 THEN + COUNT( * ) * + 0 - - 84 ELSE NULL END NOT BETWEEN + - CASE + 71 WHEN 34 - 88 + - 94 + 19 * + - 44 * - - MAX( + 56 ) THEN - 62 * + SUM( ALL 44 ) + 96 WHEN + 50 THEN NULL WHEN - + 5 THEN NULL END AND + 24 THEN - CAST( NULL AS SIGNED ) ELSE 82 * - ( ( - 70 ) ) + - - CASE 84 WHEN 75 - CASE 40 + - 59 WHEN - ( 30 ) THEN - 89 + NULLIF ( - 12 + + 78, - 22 ) END THEN - 83 WHEN COUNT( * ) THEN 13 END END )
----
-98

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - 37 + - COUNT ( * ) * NULLIF ( 61, - - CASE WHEN NOT CASE + - 8 WHEN + 86 * CAST ( NULL AS REAL ) - - 97 THEN NULL WHEN - 98 THEN + COUNT ( * ) * + 0 - - 84 ELSE NULL END NOT BETWEEN + - CASE + 71 WHEN 34 - 88 + - 94 + 19 * + - 44 * - - MAX ( + 56 ) THEN - 62 * + SUM ( ALL 44 ) + 96 WHEN + 50 THEN NULL WHEN - + 5 THEN NULL END AND + 24 THEN - CAST ( NULL AS INTEGER ) ELSE 82 * - ( ( - 70 ) ) + - - CASE 84 WHEN 75 - CASE 40 + - 59 WHEN - ( 30 ) THEN - 89 + NULLIF ( - 12 + + 78, - 22 ) END THEN - 83 WHEN COUNT ( * ) THEN 13 END END )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7628
SELECT ALL 55 + 45 * - CAST( NULL AS SIGNED ) - - 36 + - - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL 55 + 45 * - CAST ( NULL AS INTEGER ) - - 36 + - - 95 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 14 + 12
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT + COALESCE ( 93, NULLIF ( + COUNT( * ), - 4 ) ) * 94 + + 34
----
8776

skipif mysql # not compatible
query I rowsort label-7630
SELECT + COALESCE ( 93, NULLIF ( + COUNT ( * ), - 4 ) ) * 94 + + 34
----
8776

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT 78 + - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT 78 + - COUNT ( * )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7632
SELECT - COUNT( * ) + + + 85 DIV - 29
----
-3

skipif mysql # not compatible
query I rowsort label-7632
SELECT - COUNT ( * ) + + + 85 / - 29
----
-3

query I rowsort
SELECT DISTINCT 54 + + 63 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) + + 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) + + 87 AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7635
SELECT 15, COUNT( * ) col1
----
15
1

skipif mysql # not compatible
query II rowsort label-7635
SELECT 15, COUNT ( * ) col1
----
15
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT ALL + 70 + - 96 DIV 97 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL + 70 + - 96 / 97 AS col0
----
70

query I rowsort
SELECT + 71 - - 20 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT - MAX( ALL - 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7638
SELECT - MAX ( ALL - 63 ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7639
SELECT ALL CASE - + 92 WHEN - ( 52 ) THEN COUNT( * ) + + + 17 - - - 97 / - - SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) WHEN + 15 * + ( + - 45 ) THEN - MAX( + 6 ) * - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL CASE - + 92 WHEN - ( 52 ) THEN COUNT ( * ) + + + 17 - - - 97 / - - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) WHEN + 15 * + ( + - 45 ) THEN - MAX ( + 6 ) * - 79 END
----
NULL

query I rowsort
SELECT - 71 + + - 2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT - 30 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-7641
SELECT - 30 / - 40
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7642
SELECT ALL - 27 DIV 26 - COALESCE ( + SUM( DISTINCT - 16 ), COALESCE ( + 57, + COUNT( * ) + + - ( 35 ) - + 73 * + - 45 ) - - + 10 ) + - + 32 col0
----
-17

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL - 27 / 26 - COALESCE ( + SUM ( DISTINCT - 16 ), COALESCE ( + 57, + COUNT ( * ) + + - ( 35 ) - + 73 * + - 45 ) - - + 10 ) + - + 32 col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7643
SELECT - 41 * + + 15 * - CAST( NULL AS SIGNED ) AS col0, + 80 col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-7643
SELECT - 41 * + + 15 * - CAST ( NULL AS INTEGER ) AS col0, + 80 col2
----
NULL
80

query I rowsort
SELECT + 47 * + 42
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL - COUNT( * ) * + + 27
----
-27

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - COUNT ( * ) * + + 27
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7646
SELECT DISTINCT COUNT( * ) DIV - 64 * 85 * + 47 - 40 + - + CAST( + - 69 AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT COUNT ( * ) / - 64 * 85 * + 47 - 40 + - + CAST ( + - 69 AS INTEGER ) AS col2
----
29

query I rowsort
SELECT ALL + 62 * - + 80
----
-4960

query I rowsort
SELECT ALL + - ( - 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT DISTINCT + CASE WHEN NULL IS NULL THEN 0 ELSE CASE - COUNT( * ) WHEN + 64 THEN NULL WHEN 70 THEN NULL WHEN - 57 THEN + 40 + SUM( - + 77 ) ELSE 17 END + - 7 + + 84 / - 75 * + COUNT( * ) END
----
0

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT + CASE WHEN NULL IS NULL THEN 0 ELSE CASE - COUNT ( * ) WHEN + 64 THEN NULL WHEN 70 THEN NULL WHEN - 57 THEN + 40 + SUM ( - + 77 ) ELSE 17 END + - 7 + + 84 / - 75 * + COUNT ( * ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - CASE - NULLIF ( 26, - + 3 ) WHEN ( 26 ) THEN + + 18 END * - 76 * 91 + ( MIN( DISTINCT + 96 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT - CASE - NULLIF ( 26, - + 3 ) WHEN ( 26 ) THEN + + 18 END * - 76 * 91 + ( MIN ( DISTINCT + 96 ) ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7651
SELECT 12 AS col2, MIN( + 26 ) DIV 17 - + 17
----
12
-16

skipif mysql # not compatible
query II rowsort label-7651
SELECT 12 AS col2, MIN ( + 26 ) / 17 - + 17
----
12
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7652
SELECT + SUM( DISTINCT - 76 ) * 90 + + - 58 * CAST( NULL AS SIGNED ) - - - CASE CASE 10 WHEN 55 * COUNT( * ) - + 55 THEN - COUNT( * ) ELSE NULL END WHEN + CAST( NULL AS SIGNED ) THEN + ( + + MAX( + - 2 ) ) END * + - ( + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT + SUM ( DISTINCT - 76 ) * 90 + + - 58 * CAST ( NULL AS INTEGER ) - - - CASE CASE 10 WHEN 55 * COUNT ( * ) - + 55 THEN - COUNT ( * ) ELSE NULL END WHEN + CAST ( NULL AS INTEGER ) THEN + ( + + MAX ( + - 2 ) ) END * + - ( + 37 )
----
NULL

query II rowsort
SELECT ALL + 60, - 8 AS col0
----
60
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT - 81 * - + COUNT( * ) col0
----
81

skipif mysql # not compatible
query I rowsort label-7654
SELECT - 81 * - + COUNT ( * ) col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT ALL - + 32 / - 93 * CASE - 58 WHEN + - 9 + + - CAST( NULL AS SIGNED ) THEN - 12 + 68 + + + CAST( NULL AS SIGNED ) * - 15 WHEN NULLIF ( - - 99, 56 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - + 32 / - 93 * CASE - 58 WHEN + - 9 + + - CAST ( NULL AS INTEGER ) THEN - 12 + 68 + + + CAST ( NULL AS INTEGER ) * - 15 WHEN NULLIF ( - - 99, 56 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT ALL 56 * 55 DIV + - ( - + 30 )
----
102

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL 56 * 55 / + - ( - + 30 )
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7657
SELECT DISTINCT - + 73 * 92 * - 41 + + + MAX( ALL - 80 ) * + - CAST( + + 12 AS SIGNED )
----
276316

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT - + 73 * 92 * - 41 + + + MAX ( ALL - 80 ) * + - CAST ( + + 12 AS INTEGER )
----
276316

query I rowsort
SELECT ALL + 47 * + ( - - 41 ) + - - 30 + 30
----
1987

onlyif mysql # DIV for integer division: 
query I rowsort label-7659
SELECT + 44 DIV + 56 * + + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7659
SELECT + 44 / + 56 * + + 91 AS col2
----
0

query I rowsort
SELECT - 83 + - 75 - - 65 AS col0
----
-93

query I rowsort
SELECT + 53 * - + 32 - 82 + - 70 AS col1
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT + COUNT( DISTINCT - ( + 34 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7662
SELECT + COUNT ( DISTINCT - ( + 34 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT CASE - COUNT( DISTINCT 99 ) WHEN 55 THEN + 84 WHEN + + COUNT( + + 87 ) * - - 79 * MIN( + + 84 ) * - - 87 + + 35 * - + 77 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT CASE - COUNT ( DISTINCT 99 ) WHEN 55 THEN + 84 WHEN + + COUNT ( + + 87 ) * - - 79 * MIN ( + + 84 ) * - - 87 + + 35 * - + 77 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7664
SELECT + 43 DIV + COUNT( * ) * COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-7664
SELECT + 43 / + COUNT ( * ) * COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT MAX( + 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-7665
SELECT MAX ( + 67 ) AS col0
----
67

query I rowsort
SELECT ALL 72 * - - COALESCE ( + 91, 32 ) + + 89 + + 91 AS col0
----
6732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7667
SELECT + ( + 2 ) - ( COUNT( * ) ) + - CAST( NULL AS SIGNED ), + 18 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-7667
SELECT + ( + 2 ) - ( COUNT ( * ) ) + - CAST ( NULL AS INTEGER ), + 18 AS col2
----
NULL
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7668
SELECT ALL 2 DIV + 16 * SUM( DISTINCT 61 ) col2, + 5 + - 91 + 79 + - COUNT( 89 ) * - 61 AS col0
----
0
54

skipif mysql # not compatible
query II rowsort label-7668
SELECT ALL 2 / + 16 * SUM ( DISTINCT 61 ) col2, + 5 + - 91 + 79 + - COUNT ( 89 ) * - 61 AS col0
----
0
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7669
SELECT + COUNT( * ) + 84, + 43 AS col0
----
85
43

skipif mysql # not compatible
query II rowsort label-7669
SELECT + COUNT ( * ) + 84, + 43 AS col0
----
85
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7670
SELECT ALL 13 + + 17, 85 * + COUNT( * ) AS col1
----
30
85

skipif mysql # not compatible
query II rowsort label-7670
SELECT ALL 13 + + 17, 85 * + COUNT ( * ) AS col1
----
30
85

query I rowsort
SELECT 77 + - 14
----
63

query I rowsort
SELECT ( - 21 ) + + 65 AS col0
----
44

query I rowsort
SELECT 22 - - 30 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT ALL 59 * + CASE + ( - ( 18 ) ) WHEN - COUNT( * ) THEN NULL WHEN - 58 * - 18 THEN + 97 / + 54 * + 82 * + COUNT( + 11 ) - + 0 END * - 48 - + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL 59 * + CASE + ( - ( 18 ) ) WHEN - COUNT ( * ) THEN NULL WHEN - 58 * - 18 THEN + 97 / + 54 * + 82 * + COUNT ( + 11 ) - + 0 END * - 48 - + 38 AS col0
----
NULL

query I rowsort
SELECT 93 * - + 49 AS col1
----
-4557

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT DISTINCT - ( - - ( - 37 ) ) * - 68 - + 6 * + - 56 * - - MAX( ALL 74 ) AS col1
----
22348

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT - ( - - ( - 37 ) ) * - 68 - + 6 * + - 56 * - - MAX ( ALL 74 ) AS col1
----
22348

query I rowsort
SELECT ALL 23 * + + 90 AS col1
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT 21 + 43 + 81 * + COUNT( * ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-7678
SELECT 21 + 43 + 81 * + COUNT ( * ) AS col0
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7679
SELECT ALL - - 2 DIV - + 55 - + 82 + - 19 * - COUNT( + - 18 ) + - - 5 + - + 42
----
-100

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL - - 2 / - + 55 - + 82 + - 19 * - COUNT ( + - 18 ) + - - 5 + - + 42
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7680
SELECT SUM( 28 ) / - + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * + - 47 * COUNT( 97 ) + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT SUM ( 28 ) / - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * + - 47 * COUNT ( 97 ) + + 20
----
NULL

query I rowsort
SELECT 39 * - 37 AS col2
----
-1443

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT COUNT( * ) + - + 26 * + 14 AS col0
----
-363

skipif mysql # not compatible
query I rowsort label-7682
SELECT COUNT ( * ) + - + 26 * + 14 AS col0
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT + + CASE 86 WHEN - ( COALESCE ( - 66, - + 57 ) ) THEN NULL WHEN + COUNT( * ) * - COUNT( * ) * + 63 THEN - 27 * - 45 * + 55 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT + + CASE 86 WHEN - ( COALESCE ( - 66, - + 57 ) ) THEN NULL WHEN + COUNT ( * ) * - COUNT ( * ) * + 63 THEN - 27 * - 45 * + 55 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - + 91 col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT + 65 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-7685
SELECT + 65 / + 69
----
0

query I rowsort
SELECT 16 * + 70 col1
----
1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7687
SELECT DISTINCT - + 60 * + COALESCE ( 66, + + COUNT( * ) DIV - 88, - ( - + 81 ) * - 34 + + - 64 + + + 70 * - CAST( NULL AS SIGNED ) + - + ( - 95 ) ) AS col1
----
-3960

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT - + 60 * + COALESCE ( 66, + + COUNT ( * ) / - 88, - ( - + 81 ) * - 34 + + - 64 + + + 70 * - CAST ( NULL AS INTEGER ) + - + ( - 95 ) ) AS col1
----
-3960

query I rowsort
SELECT ALL - 61 * + 69 * + 35 AS col1
----
-147315

query I rowsort
SELECT ALL - - NULLIF ( + 88, - - 33 ) AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7690
SELECT DISTINCT - + 68 + - 13 DIV ( - COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT - + 68 + - 13 / ( - COUNT ( * ) )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7691
SELECT ALL - + ( - 32 ) + + - 66 + + + COALESCE ( + CAST( NULL AS SIGNED ), CASE 80 WHEN + 47 THEN NULL WHEN - - 9 * + 24 * 39 + - 79 DIV - 72 * - 37 THEN NULL ELSE + MAX( - + 39 ) * + 70 - + 45 - 74 DIV + COUNT( * ) + - COUNT( * ) END * - 92 * - 2 + 73 ) * + 13
----
-6816285

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL - + ( - 32 ) + + - 66 + + + COALESCE ( + CAST ( NULL AS INTEGER ), CASE 80 WHEN + 47 THEN NULL WHEN - - 9 * + 24 * 39 + - 79 / - 72 * - 37 THEN NULL ELSE + MAX ( - + 39 ) * + 70 - + 45 - 74 / + COUNT ( * ) + - COUNT ( * ) END * - 92 * - 2 + 73 ) * + 13
----
-6816285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7692
SELECT ALL + AVG ( + + 47 ) + + - 33 * + ( - - CAST( NULL AS SIGNED ) ) * + - ( - 60 ) * 57 + - COUNT( * ) * + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL + AVG ( + + 47 ) + + - 33 * + ( - - CAST ( NULL AS INTEGER ) ) * + - ( - 60 ) * 57 + - COUNT ( * ) * + - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT + - SUM( ALL - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7693
SELECT + - SUM ( ALL - 0 ) AS col1
----
0

query I rowsort
SELECT + 37 + 37
----
74

query I rowsort
SELECT ALL - + COALESCE ( 56, + - 29 * + 7 + + - 31 ) AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7696
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) + + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + - 53
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7697
SELECT + 64 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT + 64 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7698
SELECT ALL 26 + COUNT( * ) DIV + 93 * + + 40 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL 26 + COUNT ( * ) / + 93 * + + 40 AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7699
SELECT ALL 78 * 29 DIV + + 46 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL 78 * 29 / + + 46 AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7700
SELECT 54, + COALESCE ( - - 1, - 13 + - - 57 + - - 57 * + - 70 + - 28 * 85 ) * + ( 55 ) + + CASE - + 95 WHEN + 92 THEN NULL WHEN + + 47 * - 74 THEN - 62 ELSE NULL END * + COUNT( * ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-7700
SELECT 54, + COALESCE ( - - 1, - 13 + - - 57 + - - 57 * + - 70 + - 28 * 85 ) * + ( 55 ) + + CASE - + 95 WHEN + 92 THEN NULL WHEN + + 47 * - 74 THEN - 62 ELSE NULL END * + COUNT ( * ) AS col2
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL - MAX( DISTINCT + 70 ) - - 28
----
-42

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL - MAX ( DISTINCT + 70 ) - - 28
----
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7702
SELECT 3 * 85 * + CAST( NULL AS SIGNED ) AS col0, + 26 DIV - 40
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7702
SELECT 3 * 85 * + CAST ( NULL AS INTEGER ) AS col0, + 26 / - 40
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT 25 - - MIN( DISTINCT ( 60 ) )
----
85

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT 25 - - MIN ( DISTINCT ( 60 ) )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7704
SELECT ALL 89, MAX( + + 88 ) AS col2
----
89
88

skipif mysql # not compatible
query II rowsort label-7704
SELECT ALL 89, MAX ( + + 88 ) AS col2
----
89
88

query I rowsort
SELECT 93 * + 41
----
3813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7706
SELECT COUNT( * ) * + COUNT( * ) DIV - + 82
----
0

skipif mysql # not compatible
query I rowsort label-7706
SELECT COUNT ( * ) * + COUNT ( * ) / - + 82
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7707
SELECT CAST( NULL AS SIGNED ) + 33 + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7707
SELECT CAST ( NULL AS INTEGER ) + 33 + 59 AS col0
----
NULL

query II rowsort
SELECT ALL 1 AS col0, 30
----
1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL MIN( - + ( + ( + - 47 ) ) )
----
47

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL MIN ( - + ( + ( + - 47 ) ) )
----
47

query II rowsort
SELECT ALL 10 AS col1, - 97
----
10
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7711
SELECT DISTINCT 62 col0, 97 * + - CAST( NULL AS SIGNED ) AS col0
----
62
NULL

skipif mysql # not compatible
query II rowsort label-7711
SELECT DISTINCT 62 col0, 97 * + - CAST ( NULL AS INTEGER ) AS col0
----
62
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7712
SELECT + 36 * 51 / - 12 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT + 36 * 51 / - 12 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + 56 ) AS col2
----
56

query II rowsort
SELECT - - NULLIF ( 39, - 38 - 15 + - - 23 ) col0, + 16 AS col2
----
39
16

query I rowsort
SELECT - ( + - CASE COALESCE ( 32, + 12 * + 45 + + 15 * 56 ) WHEN - 39 THEN 23 END ) + + - ( - 36 )
----
NULL

query I rowsort
SELECT ALL 88 + 90
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7717
SELECT 3, 26 * + - 41 DIV - + COUNT( * ) + 5 AS col2
----
3
1071

skipif mysql # not compatible
query II rowsort label-7717
SELECT 3, 26 * + - 41 / - + COUNT ( * ) + 5 AS col2
----
3
1071

query I rowsort
SELECT - 72 * - + 33 * + - 67 + - - 1 + - 98
----
-159289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7719
SELECT - CAST( - 23 AS SIGNED ) * + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) - 47 col0, 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-7719
SELECT - CAST ( - 23 AS INTEGER ) * + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) - 47 col0, 80
----
NULL
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT ALL - - COALESCE ( - 24, CAST( NULL AS SIGNED ) + 29, + 18 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL - - COALESCE ( - 24, CAST ( NULL AS INTEGER ) + 29, + 18 ) AS col1
----
-24

query I rowsort
SELECT DISTINCT + - 18 * - 84 + 41 - 15 AS col1
----
1538

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT DISTINCT - COUNT( * ) * 31 + + + 71 col1
----
40

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT - COUNT ( * ) * 31 + + + 71 col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7723
SELECT ALL - + ( - - 6 ) * COUNT( * ) + - MAX( DISTINCT - 74 ) AS col0, 33 AS col2
----
68
33

skipif mysql # not compatible
query II rowsort label-7723
SELECT ALL - + ( - - 6 ) * COUNT ( * ) + - MAX ( DISTINCT - 74 ) AS col0, 33 AS col2
----
68
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7724
SELECT ALL - + 95, 84 * - 99 + - COUNT( * ) * 72 AS col2
----
-95
-8388

skipif mysql # not compatible
query II rowsort label-7724
SELECT ALL - + 95, 84 * - 99 + - COUNT ( * ) * 72 AS col2
----
-95
-8388

query I rowsort
SELECT + - ( 79 ) AS col1
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7726
SELECT 33 DIV MIN( + 62 )
----
0

skipif mysql # not compatible
query I rowsort label-7726
SELECT 33 / MIN ( + 62 )
----
0

query I rowsort
SELECT ALL - 58 + 19 + - 41
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7728
SELECT ( - 11 ) * NULLIF ( 58, + 96 ) * 4 + 82 - - + COUNT( * ) + - 22 * - CAST( NULL AS SIGNED ) - - COUNT( * ) * MAX( DISTINCT + + 65 ) AS col1, - ( - 53 )
----
NULL
53

skipif mysql # not compatible
query II rowsort label-7728
SELECT ( - 11 ) * NULLIF ( 58, + 96 ) * 4 + 82 - - + COUNT ( * ) + - 22 * - CAST ( NULL AS INTEGER ) - - COUNT ( * ) * MAX ( DISTINCT + + 65 ) AS col1, - ( - 53 )
----
NULL
53

query I rowsort
SELECT 82 * + + 68
----
5576

onlyif mysql # DIV for integer division: 
query I rowsort label-7730
SELECT ALL + + 90 * - - 83 + - ( - 73 ) DIV + - 52 AS col0
----
7469

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL + + 90 * - - 83 + - ( - 73 ) / + - 52 AS col0
----
7469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7731
SELECT DISTINCT 55 * + - CAST( COUNT( * ) AS SIGNED ) * COALESCE ( + COUNT( * ), - 97 ) AS col0, + 44 * + ( 57 ) * - 93 * - COUNT( * )
----
-55
233244

skipif mysql # not compatible
query II rowsort label-7731
SELECT DISTINCT 55 * + - CAST ( COUNT ( * ) AS INTEGER ) * COALESCE ( + COUNT ( * ), - 97 ) AS col0, + 44 * + ( 57 ) * - 93 * - COUNT ( * )
----
-55
233244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT ALL + COALESCE ( + 6, 1 * - MIN( - - 99 ) - - - CAST( + - COALESCE ( + 7, - - 36 + COALESCE ( + COUNT( * ), 5 ) + - 97 * + + 15 / + + 99 ) AS SIGNED ), - + 96 * - ( - 42 ) )
----
6

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL + COALESCE ( + 6, 1 * - MIN ( - - 99 ) - - - CAST ( + - COALESCE ( + 7, - - 36 + COALESCE ( + COUNT ( * ), 5 ) + - 97 * + + 15 / + + 99 ) AS INTEGER ), - + 96 * - ( - 42 ) )
----
6

query I rowsort
SELECT DISTINCT - 84 - - 31
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT - 72 + - - COUNT( * ) + + 27 + COUNT( * ) + 94 - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-7734
SELECT - 72 + - - COUNT ( * ) + + 27 + COUNT ( * ) + 94 - COUNT ( * )
----
50

query I rowsort
SELECT - 78 * ( - 26 ) * - 15 * - 52 AS col2
----
1581840

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7736
SELECT - CAST( NULL AS DECIMAL ) + + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7736
SELECT - CAST ( NULL AS REAL ) + + + 89
----
NULL

query I rowsort
SELECT - 42 * - 10 AS col1
----
420

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT ALL COUNT( * ), + 64 * 71 AS col2
----
1
4544

skipif mysql # not compatible
query II rowsort label-7738
SELECT ALL COUNT ( * ), + 64 * 71 AS col2
----
1
4544

query I rowsort
SELECT ALL CASE 75 WHEN - 93 THEN NULL ELSE + 43 END
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT - 18 + - - COUNT( - + 11 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-7740
SELECT - 18 + - - COUNT ( - + 11 ) AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7741
SELECT ALL 99 AS col1, 14 - 55 * - + 62 * ( + 97 ) - - MIN( ALL CAST( + 91 AS SIGNED ) ) DIV - 81
----
99
330783

skipif mysql # not compatible
query II rowsort label-7741
SELECT ALL 99 AS col1, 14 - 55 * - + 62 * ( + 97 ) - - MIN ( ALL CAST ( + 91 AS INTEGER ) ) / - 81
----
99
330783

query I rowsort
SELECT - 94 + 55 * + 25 * - 99
----
-136219

query I rowsort
SELECT - 71 + + - 30
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7744
SELECT - 59 + + 28 * + 38 + + - CAST( + - 43 AS SIGNED ) * + - 30 AS col0
----
-285

skipif mysql # not compatible
query I rowsort label-7744
SELECT - 59 + + 28 * + 38 + + - CAST ( + - 43 AS INTEGER ) * + - 30 AS col0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT + MIN( ALL - 47 ) - - 43 + + - 40 + 92 * ( 99 ) AS col1
----
9064

skipif mysql # not compatible
query I rowsort label-7745
SELECT + MIN ( ALL - 47 ) - - 43 + + - 40 + 92 * ( 99 ) AS col1
----
9064

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL + ( - COUNT( * ) ) * - 93 * + 21 AS col0
----
1953

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL + ( - COUNT ( * ) ) * - 93 * + 21 AS col0
----
1953

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT - 76 DIV - 62
----
1

skipif mysql # not compatible
query I rowsort label-7747
SELECT - 76 / - 62
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT + MAX( - CASE + 56 WHEN - 29 THEN + 7 END ) * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT + MAX ( - CASE + 56 WHEN - 29 THEN + 7 END ) * - 92
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7749
SELECT + 94 + 46 - ( + AVG ( DISTINCT - 53 ) ) * - + CAST( NULL AS SIGNED ) * + - 51 * 33 / - 99 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7749
SELECT + 94 + 46 - ( + AVG ( DISTINCT - 53 ) ) * - + CAST ( NULL AS INTEGER ) * + - 51 * 33 / - 99 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7750
SELECT ALL SUM( + 29 ) + 41 * + ( - + ( + 58 ) ) AS col0, 27
----
-2349
27

skipif mysql # not compatible
query II rowsort label-7750
SELECT ALL SUM ( + 29 ) + 41 * + ( - + ( + 58 ) ) AS col0, 27
----
-2349
27

query I rowsort
SELECT ALL 77 + + ( - + 87 ) AS col2
----
-10

query I rowsort
SELECT ALL + + 26 * 33
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT + 60 + - + MIN( DISTINCT - + 25 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7753
SELECT + 60 + - + MIN ( DISTINCT - + 25 ) AS col0
----
85

query II rowsort
SELECT ALL 37 AS col0, 56
----
37
56

query I rowsort
SELECT ALL + 39 * - 1 + + - 0 AS col0
----
-39

query I rowsort
SELECT ALL 22 + + + 72 AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT + NULLIF ( 36, ( + + 23 ) * 42 * 0 + 57 + - CAST( NULL AS SIGNED ) ) * - 14 AS col1
----
-504

skipif mysql # not compatible
query I rowsort label-7757
SELECT + NULLIF ( 36, ( + + 23 ) * 42 * 0 + 57 + - CAST ( NULL AS INTEGER ) ) * - 14 AS col1
----
-504

query II rowsort
SELECT ALL + 14 AS col0, 16
----
14
16

query I rowsort
SELECT + 49 + + - 84
----
-35

query I rowsort
SELECT + - 9 + - 87 * + - 59
----
5124

query II rowsort
SELECT - 71, 51 AS col2
----
-71
51

query II rowsort
SELECT - 82, - 98 * 42 + - ( + - 13 ) AS col2
----
-82
-4103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7763
SELECT + - 81 + 52 AS col0, + COUNT( * ) DIV - - COUNT( * ) AS col1
----
-29
1

skipif mysql # not compatible
query II rowsort label-7763
SELECT + - 81 + 52 AS col0, + COUNT ( * ) / - - COUNT ( * ) AS col1
----
-29
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7764
SELECT + 42 * - 40 / NULLIF ( 55, 58 ) + + - 77 * - 11 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT + 42 * - 40 / NULLIF ( 55, 58 ) + + - 77 * - 11 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 49, - 40 ) * - 58
----
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT + 85 + - 80 + 48 + + 33 * COUNT( * ) col0
----
86

skipif mysql # not compatible
query I rowsort label-7766
SELECT + 85 + - 80 + 48 + + 33 * COUNT ( * ) col0
----
86

query I rowsort
SELECT + CASE - 98 WHEN + + 9 THEN + - 72 WHEN - 44 THEN NULL ELSE NULL END * - - 13 col0
----
NULL

query I rowsort
SELECT - 61 * + + 25
----
-1525

query I rowsort
SELECT - 78 + - 32 AS col1
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT 7 * 84 * + 14 + - MAX( ALL + 90 ) AS col2
----
8142

skipif mysql # not compatible
query I rowsort label-7770
SELECT 7 * 84 * + 14 + - MAX ( ALL + 90 ) AS col2
----
8142

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT CASE + + COUNT( DISTINCT - - 48 ) WHEN 94 THEN + 7 WHEN - 26 THEN NULL WHEN + - 62 * + 7 + - 49 + + + 92 THEN + 96 * + + COUNT( * ) * + 96 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT CASE + + COUNT ( DISTINCT - - 48 ) WHEN 94 THEN + 7 WHEN - 26 THEN NULL WHEN + - 62 * + 7 + - 49 + + + 92 THEN + 96 * + + COUNT ( * ) * + 96 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT + CAST( NULL AS SIGNED ) * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT + CAST ( NULL AS INTEGER ) * 56
----
NULL

query I rowsort
SELECT - 31 + - NULLIF ( 27, + 68 ) col0
----
-58

query I rowsort
SELECT ALL + 7 * - 16
----
-112

query I rowsort
SELECT ALL - 35 * - 92 AS col2
----
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ALL NULLIF ( + - 23, + NULLIF ( - COUNT( * ), + COUNT( * ) + 15 * - 43 * + 17 * - 62 * 58 ) * - + 44 + + 57 ) * 51 + + + 47 AS col2
----
-1126

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL NULLIF ( + - 23, + NULLIF ( - COUNT ( * ), + COUNT ( * ) + 15 * - 43 * + 17 * - 62 * 58 ) * - + 44 + + 57 ) * 51 + + + 47 AS col2
----
-1126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7777
SELECT - 12 / CASE + 78 WHEN 88 THEN NULL WHEN + 68 + + NULLIF ( - - COUNT( * ), - - CASE - COUNT( * ) WHEN - COUNT( + 80 ) / + 80 * - - 19 THEN - + ( - 60 ) ELSE NULL END ) + + ( - + 96 ) + + + 59 THEN + - CAST( + 25 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT - 12 / CASE + 78 WHEN 88 THEN NULL WHEN + 68 + + NULLIF ( - - COUNT ( * ), - - CASE - COUNT ( * ) WHEN - COUNT ( + 80 ) / + 80 * - - 19 THEN - + ( - 60 ) ELSE NULL END ) + + ( - + 96 ) + + + 59 THEN + - CAST ( + 25 AS INTEGER ) END
----
NULL

query II rowsort
SELECT DISTINCT - 19 * 46 + 21 + + + 39 + - 24 AS col0, + 22 AS col2
----
-838
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT - CAST( + ( 39 ) AS SIGNED ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7779
SELECT - CAST ( + ( 39 ) AS INTEGER ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7780
SELECT ALL + ( + - ( CASE + 81 WHEN + AVG ( + ( - - 66 ) ) THEN NULL ELSE - 92 / 87 * - + 46 END ) ) * + + NULLIF ( + + 69, + 28 / + 99 ) * - 66 * - CASE - 90 WHEN - CASE - + 61 WHEN - 35 * + 74 THEN NULL WHEN 99 - + CAST( + - 96 AS SIGNED ) + - - ( - COUNT( * ) ) THEN - 27 END * ( + 45 ) THEN - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + ( + - ( CASE + 81 WHEN + AVG ( + ( - - 66 ) ) THEN NULL ELSE - 92 / 87 * - + 46 END ) ) * + + NULLIF ( + + 69, + 28 / + 99 ) * - 66 * - CASE - 90 WHEN - CASE - + 61 WHEN - 35 * + 74 THEN NULL WHEN 99 - + CAST ( + - 96 AS INTEGER ) + - - ( - COUNT ( * ) ) THEN - 27 END * ( + 45 ) THEN - - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7781
SELECT ALL COALESCE ( - 34, ( + COALESCE ( - + 95, - ( - - 59 ), 54 DIV 70 ) ) DIV 1 * 27 + 86 + - NULLIF ( 89, COUNT( * ) * - - COUNT( ALL + 73 ) + - 0 + - - NULLIF ( - MAX( DISTINCT + 84 ), - 43 - 7 ) * - 79 + COUNT( * ) DIV + 61 ) + - 89 DIV - - 53 + - 34 ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL COALESCE ( - 34, ( + COALESCE ( - + 95, - ( - - 59 ), 54 / 70 ) ) / 1 * 27 + 86 + - NULLIF ( 89, COUNT ( * ) * - - COUNT ( ALL + 73 ) + - 0 + - - NULLIF ( - MAX ( DISTINCT + 84 ), - 43 - 7 ) * - 79 + COUNT ( * ) / + 61 ) + - 89 / - - 53 + - 34 ) col1
----
-34

query II rowsort
SELECT DISTINCT + 17 + + 4, + 79 + + + 68 col2
----
21
147

query I rowsort
SELECT - 35 * - 42
----
1470

query I rowsort
SELECT DISTINCT + 65 + - - 50
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT ALL - 74 + 44 AS col1, - COUNT( * ) * + 18 + - ( COALESCE ( - + 43, + 25, 47 * + 95 * 11 ) ) * + 76
----
-30
3250

skipif mysql # not compatible
query II rowsort label-7785
SELECT ALL - 74 + 44 AS col1, - COUNT ( * ) * + 18 + - ( COALESCE ( - + 43, + 25, 47 * + 95 * 11 ) ) * + 76
----
-30
3250

query I rowsort
SELECT DISTINCT + 10 * 57 + 14 + 47 AS col0
----
631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7787
SELECT DISTINCT 7 + - 2 + - 80 DIV - 71 + + + 61 * - COUNT( * ) - + ( - - CAST( - MIN( + 2 ) AS SIGNED ) )
----
-53

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT 7 + - 2 + - 80 / - 71 + + + 61 * - COUNT ( * ) - + ( - - CAST ( - MIN ( + 2 ) AS INTEGER ) )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7788
SELECT - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7789
SELECT DISTINCT + + COUNT( * ) * - 92 AS col0, 4
----
-92
4

skipif mysql # not compatible
query II rowsort label-7789
SELECT DISTINCT + + COUNT ( * ) * - 92 AS col0, 4
----
-92
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT DISTINCT - - ( - 40 ) - - MAX( DISTINCT + - 60 ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT - - ( - 40 ) - - MAX ( DISTINCT + - 60 ) AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - - COUNT( * ) * 48
----
48

skipif mysql # not compatible
query I rowsort label-7791
SELECT - - COUNT ( * ) * 48
----
48

query II rowsort
SELECT + - 22 + + + 63 AS col2, - 54 AS col2
----
41
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7793
SELECT ALL + 58 DIV 30 - - 22
----
23

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + 58 / 30 - - 22
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ALL + + 19 * 88 + + COUNT( * ) AS col0
----
1673

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL + + 19 * 88 + + COUNT ( * ) AS col0
----
1673

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT DISTINCT - 89 * - NULLIF ( - 20, SUM( + 21 ) ) AS col1
----
-1780

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT - 89 * - NULLIF ( - 20, SUM ( + 21 ) ) AS col1
----
-1780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7796
SELECT ALL + 66 DIV - MIN( - CAST( - - 65 AS SIGNED ) ) + + - 42 AS col0, - 2
----
-41
-2

skipif mysql # not compatible
query II rowsort label-7796
SELECT ALL + 66 / - MIN ( - CAST ( - - 65 AS INTEGER ) ) + + - 42 AS col0, - 2
----
-41
-2

query I rowsort
SELECT DISTINCT - + NULLIF ( + - 69, + - AVG ( ALL 37 ) ) AS col2
----
69

query I rowsort
SELECT 73 * 89
----
6497

query I rowsort
SELECT DISTINCT - + 76 col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT SUM( + 77 ) * - 60 * 29 * + COUNT( * )
----
-133980

skipif mysql # not compatible
query I rowsort label-7800
SELECT SUM ( + 77 ) * - 60 * 29 * + COUNT ( * )
----
-133980

query II rowsort
SELECT ALL - 67, 40 AS col0
----
-67
40

query I rowsort
SELECT 39 * - 37 - + 25
----
-1468

query I rowsort
SELECT NULLIF ( + - 51, + 37 ) * - 49 * 58
----
144942

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT ALL COUNT( * ) * 62 * + 42 col0
----
2604

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL COUNT ( * ) * 62 * + 42 col0
----
2604

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7805
SELECT DISTINCT - 44 AS col1, - SUM( ALL 95 ) * - + 37 + + 58 * + + 88 + COUNT( * ) DIV + 95 * + 23 col2
----
-44
8619

skipif mysql # not compatible
query II rowsort label-7805
SELECT DISTINCT - 44 AS col1, - SUM ( ALL 95 ) * - + 37 + + 58 * + + 88 + COUNT ( * ) / + 95 * + 23 col2
----
-44
8619

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL - MAX( - 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL - MAX ( - 96 ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7807
SELECT DISTINCT CAST( NULL AS DECIMAL ) + ( + NULLIF ( - 80, CASE - - MIN( DISTINCT + 21 ) WHEN + - 3 * + ( - COUNT( * ) ) * - 18 * - - 57 / 87 THEN + 26 + - 53 + - 41 WHEN COALESCE ( + - 24, + 89, - 8 / - 28 / - + 18 ) / COUNT( * ) THEN NULL ELSE + 40 END / - 5 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT CAST ( NULL AS REAL ) + ( + NULLIF ( - 80, CASE - - MIN ( DISTINCT + 21 ) WHEN + - 3 * + ( - COUNT ( * ) ) * - 18 * - - 57 / 87 THEN + 26 + - 53 + - 41 WHEN COALESCE ( + - 24, + 89, - 8 / - 28 / - + 18 ) / COUNT ( * ) THEN NULL ELSE + 40 END / - 5 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7808
SELECT CAST( NULL AS SIGNED ) * + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT CAST ( NULL AS INTEGER ) * + 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT COALESCE ( - + ( COUNT( * ) ), 93 ) + + 65 + + 86
----
150

skipif mysql # not compatible
query I rowsort label-7809
SELECT COALESCE ( - + ( COUNT ( * ) ), 93 ) + + 65 + + 86
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT ALL MIN( - 24 ) + - - 10 AS col0, 77
----
-14
77

skipif mysql # not compatible
query II rowsort label-7810
SELECT ALL MIN ( - 24 ) + - - 10 AS col0, 77
----
-14
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT COUNT( * ) + + 38 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7811
SELECT COUNT ( * ) + + 38 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT 49 * - 28 * 96 * - COUNT( * ) * + 4 + + 97 * 88 AS col2
----
535384

skipif mysql # not compatible
query I rowsort label-7812
SELECT 49 * - 28 * 96 * - COUNT ( * ) * + 4 + + 97 * 88 AS col2
----
535384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7813
SELECT ALL 47 + + 52 * + - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + - - CAST( NULL AS SIGNED ) * + - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL 47 + + 52 * + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - - CAST ( NULL AS INTEGER ) * + - 95 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7814
SELECT - 85 * + + COUNT( 82 ) * + - 96 * 78 - - 24 + - 15 + + + 81 DIV + - MIN( 18 ) + + CAST( 84 AS SIGNED ) col1
----
636569

skipif mysql # not compatible
query I rowsort label-7814
SELECT - 85 * + + COUNT ( 82 ) * + - 96 * 78 - - 24 + - 15 + + + 81 / + - MIN ( 18 ) + + CAST ( 84 AS INTEGER ) col1
----
636569

query I rowsort
SELECT DISTINCT 94 + 2 AS col1
----
96

query I rowsort
SELECT ALL - 72 * + - 82 AS col2
----
5904

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ALL + - 88 * 98 + COUNT( * ) + + COUNT( * ) + 95
----
-8527

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL + - 88 * 98 + COUNT ( * ) + + COUNT ( * ) + 95
----
-8527

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ALL 12 + + CASE + 72 WHEN - COUNT( * ) THEN 57 ELSE - 83 * - + 99 + - 69 + + 28 END AS col1
----
8188

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL 12 + + CASE + 72 WHEN - COUNT ( * ) THEN 57 ELSE - 83 * - + 99 + - 69 + + 28 END AS col1
----
8188

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT DISTINCT - 44 * + 48 + 14 + 16 * - 21 * - SUM( DISTINCT + 87 ) * 97 * - - 85 AS col2
----
241015742

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT - 44 * + 48 + 14 + 16 * - 21 * - SUM ( DISTINCT + 87 ) * 97 * - - 85 AS col2
----
241015742

query I rowsort
SELECT - 56 + + 77 AS col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7821
SELECT 18 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT 18 / - 65 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT - ( - - ( + CAST( NULL AS SIGNED ) ) ) * - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT - ( - - ( + CAST ( NULL AS INTEGER ) ) ) * - 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT 8 + ( - 58 ) * - 70 - - + 43 * + 48 * + + 37 * + 46 + ( - + 60 ) * - - COUNT( * )
----
3516936

skipif mysql # not compatible
query I rowsort label-7823
SELECT 8 + ( - 58 ) * - 70 - - + 43 * + 48 * + + 37 * + 46 + ( - + 60 ) * - - COUNT ( * )
----
3516936

query II rowsort
SELECT DISTINCT 38 AS col0, 48 AS col2
----
38
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT - COUNT( + 35 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7825
SELECT - COUNT ( + 35 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL + COUNT( - 86 ) - + 35 + - 42 * - COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL + COUNT ( - 86 ) - + 35 + - 42 * - COUNT ( * ) AS col1
----
8

query I rowsort
SELECT 87 * 50 * + + 64 - + - 39 AS col2
----
278439

onlyif mysql # aggregate syntax: 
query II rowsort label-7828
SELECT DISTINCT COUNT( * ) AS col1, MAX( 23 ) AS col1
----
1
23

skipif mysql # not compatible
query II rowsort label-7828
SELECT DISTINCT COUNT ( * ) AS col1, MAX ( 23 ) AS col1
----
1
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7829
SELECT DISTINCT CAST( ( - 60 ) AS SIGNED ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT CAST ( ( - 60 ) AS INTEGER ) AS col2
----
-60

query II rowsort
SELECT ALL - + 64, + 62 AS col0
----
-64
62

onlyif mysql # DIV for integer division: 
query II rowsort label-7831
SELECT + 83 DIV - 23 + 40 * - + 31 AS col2, + 47
----
-1243
47

skipif mysql # not compatible
query II rowsort label-7831
SELECT + 83 / - 23 + 40 * - + 31 AS col2, + 47
----
-1243
47

query I rowsort
SELECT - - 82 * - 49 + - 95 - - 32 + + COALESCE ( - 34, 44 ) + 96 * - 7 * 86 * ( 71 ) AS col2
----
-4107347

query I rowsort
SELECT 22 * - ( - 84 ) col0
----
1848

query I rowsort
SELECT ALL - ( + - 15 )
----
15

query I rowsort
SELECT - 14 * + NULLIF ( - 74, + + 61 ) * 70 + + 34 AS col1
----
72554

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL 13 + COUNT( 7 )
----
14

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL 13 + COUNT ( 7 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT 44 * 96 DIV + - 92 + + 12
----
-33

skipif mysql # not compatible
query I rowsort label-7837
SELECT 44 * 96 / + - 92 + + 12
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-7838
SELECT ALL ( + COUNT( * ) ) + + MIN( DISTINCT + - 68 ) - 75 * + 34 * - + 20 AS col1, 38
----
50933
38

skipif mysql # not compatible
query II rowsort label-7838
SELECT ALL ( + COUNT ( * ) ) + + MIN ( DISTINCT + - 68 ) - 75 * + 34 * - + 20 AS col1, 38
----
50933
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7839
SELECT COUNT( * ) + + + 32 DIV - NULLIF ( - + 36, 82 ) * - + 89
----
1

skipif mysql # not compatible
query I rowsort label-7839
SELECT COUNT ( * ) + + + 32 / - NULLIF ( - + 36, 82 ) * - + 89
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7840
SELECT DISTINCT - SUM( ALL - 21 ) AS col1, - ( - 48 ) + 36 AS col0
----
21
84

skipif mysql # not compatible
query II rowsort label-7840
SELECT DISTINCT - SUM ( ALL - 21 ) AS col1, - ( - 48 ) + 36 AS col0
----
21
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT DISTINCT - CAST( + COALESCE ( - + 32, - + 16, - 44 ) AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT - CAST ( + COALESCE ( - + 32, - + 16, - 44 ) AS INTEGER )
----
32

query I rowsort
SELECT 2 * - 43 * + 91
----
-7826

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT 37 + + - NULLIF ( - + 12, MIN( DISTINCT 68 ) + 44 )
----
49

skipif mysql # not compatible
query I rowsort label-7843
SELECT 37 + + - NULLIF ( - + 12, MIN ( DISTINCT 68 ) + 44 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT COUNT( * ) * + - 95
----
-95

skipif mysql # not compatible
query I rowsort label-7844
SELECT COUNT ( * ) * + - 95
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL NULLIF ( 5, COUNT( ALL 65 ) ) + - 3 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL NULLIF ( 5, COUNT ( ALL 65 ) ) + - 3 AS col2
----
2

query I rowsort
SELECT DISTINCT 6 * + 35 AS col2
----
210

query I rowsort
SELECT ALL - 17 + + - 45 AS col1
----
-62

query I rowsort
SELECT DISTINCT 41 * - - 49 AS col1
----
2009

query I rowsort
SELECT ALL 0 + + - 63
----
-63

query I rowsort
SELECT ALL + 45 + + - 78
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT - - MAX( + - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7851
SELECT - - MAX ( + - 13 ) AS col0
----
-13

query I rowsort
SELECT DISTINCT + 15 * 70 + + 90
----
1140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7853
SELECT ( CAST( NULL AS SIGNED ) ) AS col0, 42 - 39 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7853
SELECT ( CAST ( NULL AS INTEGER ) ) AS col0, 42 - 39 AS col0
----
NULL
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7854
SELECT DISTINCT 28 - COUNT( * ), - MAX( - - 19 ) col1
----
27
-19

skipif mysql # not compatible
query II rowsort label-7854
SELECT DISTINCT 28 - COUNT ( * ), - MAX ( - - 19 ) col1
----
27
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT ALL - MIN( ALL + 76 ) - - 45
----
-31

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL - MIN ( ALL + 76 ) - - 45
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7856
SELECT - NULLIF ( - COUNT( DISTINCT - - 4 ), + + 20 + - COUNT( * ) ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-7856
SELECT - NULLIF ( - COUNT ( DISTINCT - - 4 ), + + 20 + - COUNT ( * ) ) / + 53
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7857
SELECT ALL 69 * 24, - CAST( - 3 AS SIGNED ) AS col0
----
1656
3

skipif mysql # not compatible
query II rowsort label-7857
SELECT ALL 69 * 24, - CAST ( - 3 AS INTEGER ) AS col0
----
1656
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT - 38 + - COALESCE ( ( + - 98 ), - 65 + + ( COUNT( * ) ), + - 40 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7858
SELECT - 38 + - COALESCE ( ( + - 98 ), - 65 + + ( COUNT ( * ) ), + - 40 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT DISTINCT - - ( + + 51 ) * - + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT - - ( + + 51 ) * - + COUNT ( * )
----
-51

query I rowsort
SELECT DISTINCT + - 18 * + 93 AS col0
----
-1674

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7861
SELECT - - NULLIF ( + 85, + - 31 ) DIV + 91 + - COALESCE ( + 0, 37, - COUNT( - - 55 ) * + 97 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7861
SELECT - - NULLIF ( + 85, + - 31 ) / + 91 + - COALESCE ( + 0, 37, - COUNT ( - - 55 ) * + 97 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7862
SELECT + - 33 * CAST( NULL AS SIGNED ) * - CAST( + 76 AS SIGNED ) - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT + - 33 * CAST ( NULL AS INTEGER ) * - CAST ( + 76 AS INTEGER ) - - 62
----
NULL

query I rowsort
SELECT + + 75 + - 18 * + 49
----
-807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7864
SELECT - + 70 * + - CAST( - 93 AS SIGNED ) * + 6
----
-39060

skipif mysql # not compatible
query I rowsort label-7864
SELECT - + 70 * + - CAST ( - 93 AS INTEGER ) * + 6
----
-39060

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT + - 0 + + - CASE - 71 WHEN + 12 + 63 THEN - COUNT( * ) END * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT + - 0 + + - CASE - 71 WHEN + 12 + 63 THEN - COUNT ( * ) END * 55
----
NULL

query I rowsort
SELECT - 1 + + + 87 + + + 44 * + 90 * - - 59 AS col2
----
233726

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT - CASE - - 19 WHEN 89 THEN NULL WHEN - - COUNT( * ) THEN 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT - CASE - - 19 WHEN 89 THEN NULL WHEN - - COUNT ( * ) THEN 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT + 45 * + NULLIF ( + - NULLIF ( + + MIN( - + 40 ), 55 ), 13 ) + 88
----
1888

skipif mysql # not compatible
query I rowsort label-7868
SELECT + 45 * + NULLIF ( + - NULLIF ( + + MIN ( - + 40 ), 55 ), 13 ) + 88
----
1888

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL 32 + ( - + COUNT( * ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL 32 + ( - + COUNT ( * ) ) AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7870
SELECT COALESCE ( + 53, + 13 * - + 27 DIV + ( + 49 ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7870
SELECT COALESCE ( + 53, + 13 * - + 27 / + ( + 49 ) ) AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7871
SELECT ALL 60 * - COUNT( * ) + - 78 + - NULLIF ( + 28, - 14 + + - 37 ) + + + 76 DIV + + 82 * 84 AS col1
----
-166

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL 60 * - COUNT ( * ) + - 78 + - NULLIF ( + 28, - 14 + + - 37 ) + + + 76 / + + 82 * 84 AS col1
----
-166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT - 96 * ( - CAST( - 62 AS SIGNED ) ) col0
----
-5952

skipif mysql # not compatible
query I rowsort label-7872
SELECT - 96 * ( - CAST ( - 62 AS INTEGER ) ) col0
----
-5952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT ALL + CAST( - 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + CAST ( - 25 AS INTEGER )
----
-25

query II rowsort
SELECT + 81, CASE - 99 WHEN 70 THEN NULL ELSE 18 END * 51 * + 31 - + - 27 + 49 AS col1
----
81
28534

query I rowsort
SELECT + 84 - - 5
----
89

query I rowsort
SELECT - 60 * + 74
----
-4440

query I rowsort
SELECT - 66 * + 42
----
-2772

query I rowsort
SELECT ALL - 58 * - + 62 AS col1
----
3596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7879
SELECT NULLIF ( + + 78, - - 86 + COALESCE ( + 69, - - 65 - - 82, - - 38 + - COUNT( * ), 61 * ( + + 30 ) + + 56 + - 85 + + 41 * CAST( NULL AS SIGNED ) * 13 ) )
----
78

skipif mysql # not compatible
query I rowsort label-7879
SELECT NULLIF ( + + 78, - - 86 + COALESCE ( + 69, - - 65 - - 82, - - 38 + - COUNT ( * ), 61 * ( + + 30 ) + + 56 + - 85 + + 41 * CAST ( NULL AS INTEGER ) * 13 ) )
----
78

query I rowsort
SELECT ALL - 86 * + 19 AS col0
----
-1634

query I rowsort
SELECT NULLIF ( ( 87 ), - - 51 ) AS col0
----
87

query I rowsort
SELECT ALL - 49 * + 49 - + 38 + - 63 + - ( - 15 )
----
-2487

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL 77 * 84 * 21 - - 97 + 82 * - COUNT( * )
----
135843

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL 77 * 84 * 21 - - 97 + 82 * - COUNT ( * )
----
135843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7884
SELECT - COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT - COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT - 70 + + - COALESCE ( - - COUNT( * ), - 95 ) * - 92 * 0 col1
----
-70

skipif mysql # not compatible
query I rowsort label-7885
SELECT - 70 + + - COALESCE ( - - COUNT ( * ), - 95 ) * - 92 * 0 col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7886
SELECT + + COUNT( DISTINCT CAST( + - 2 AS SIGNED ) ) * - CASE - + MAX( + + NULLIF ( - + 39, 22 ) ) WHEN - - AVG ( 98 ) THEN + CAST( NULL AS DECIMAL ) WHEN - 19 THEN NULL WHEN + + 45 THEN - 2 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT + + COUNT ( DISTINCT CAST ( + - 2 AS INTEGER ) ) * - CASE - + MAX ( + + NULLIF ( - + 39, 22 ) ) WHEN - - AVG ( 98 ) THEN + CAST ( NULL AS REAL ) WHEN - 19 THEN NULL WHEN + + 45 THEN - 2 END AS col0
----
NULL

query I rowsort
SELECT - - 6 + - 76 + - - 36 AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7888
SELECT - CAST( NULL AS SIGNED ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT - CAST ( NULL AS INTEGER ) * + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT + 70 * + 23 - + ( - ( + 74 ) ) + - + ( 86 ) * + + COUNT( * ) * 82 col0
----
-5368

skipif mysql # not compatible
query I rowsort label-7889
SELECT + 70 * + 23 - + ( - ( + 74 ) ) + - + ( 86 ) * + + COUNT ( * ) * 82 col0
----
-5368

query I rowsort
SELECT DISTINCT - 3 * - 74
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT + SUM( DISTINCT + ( + ( - + 49 ) ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT + SUM ( DISTINCT + ( + ( - + 49 ) ) ) AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7892
SELECT ALL CASE + 63 WHEN + 37 * - ( - 4 ) * - - ( - + ( - 70 ) ) THEN NULL WHEN - - CAST( + + MIN( ALL - 17 ) AS SIGNED ) THEN 77 * 88 / - 57 - + 18 WHEN - 95 THEN NULL END col2, - 43
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-7892
SELECT ALL CASE + 63 WHEN + 37 * - ( - 4 ) * - - ( - + ( - 70 ) ) THEN NULL WHEN - - CAST ( + + MIN ( ALL - 17 ) AS INTEGER ) THEN 77 * 88 / - 57 - + 18 WHEN - 95 THEN NULL END col2, - 43
----
NULL
-43

query I rowsort
SELECT + ( 41 ) + 62
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT + - 48 * + MIN( + 97 ) col0
----
-4656

skipif mysql # not compatible
query I rowsort label-7894
SELECT + - 48 * + MIN ( + 97 ) col0
----
-4656

query I rowsort
SELECT ALL + COALESCE ( + + 23, - 83 - 76 )
----
23

query II rowsort
SELECT ALL + 91, - 74 * + 9 AS col0
----
91
-666

query I rowsort
SELECT ALL - 10 * 88 AS col2
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT DISTINCT - MIN( DISTINCT - 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - MIN ( DISTINCT - 86 ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7899
SELECT - + 71 AS col2, CAST( - 59 AS SIGNED ) * + + 98 col1
----
-71
-5782

skipif mysql # not compatible
query II rowsort label-7899
SELECT - + 71 AS col2, CAST ( - 59 AS INTEGER ) * + + 98 col1
----
-71
-5782

query I rowsort
SELECT + 90 + 87 AS col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT - COALESCE ( + 53, + - COUNT( * ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT - COALESCE ( + 53, + - COUNT ( * ) ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-7902
SELECT ALL + COUNT( * ) + - 41 + - 73 AS col1, - 48 * + COUNT( * ) * - 61
----
-113
2928

skipif mysql # not compatible
query II rowsort label-7902
SELECT ALL + COUNT ( * ) + - 41 + - 73 AS col1, - 48 * + COUNT ( * ) * - 61
----
-113
2928

query I rowsort
SELECT ALL 14 + + 1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT + 20 + - - 64 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT + 20 + - - 64 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT + 79 * 88 * + + COUNT( * )
----
6952

skipif mysql # not compatible
query I rowsort label-7905
SELECT + 79 * 88 * + + COUNT ( * )
----
6952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7906
SELECT ALL COUNT( DISTINCT - 21 ) DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL COUNT ( DISTINCT - 21 ) / + 71 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7907
SELECT + 96 DIV 78 * + + 62 DIV 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7907
SELECT + 96 / 78 * + + 62 / 35 AS col2
----
1

query I rowsort
SELECT DISTINCT + 44 + - 96 AS col1
----
-52

query II rowsort
SELECT ALL 78 + + 32 + - 41 - + 34 AS col1, - 3 * - 93 * - 82 + 35 AS col1
----
35
-22843

query II rowsort
SELECT + 84 + - - 71 AS col0, 35
----
155
35

query I rowsort
SELECT + 43 - - + 62
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7912
SELECT - 18 DIV COUNT( * ) + + 7 col2
----
-11

skipif mysql # not compatible
query I rowsort label-7912
SELECT - 18 / COUNT ( * ) + + 7 col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7913
SELECT - NULLIF ( - - 94, + - 86 ) * 32 + - 85 + - 93 * ( + - 1 ) DIV - - 21 - - + MAX( DISTINCT - 52 ) col1
----
-3141

skipif mysql # not compatible
query I rowsort label-7913
SELECT - NULLIF ( - - 94, + - 86 ) * 32 + - 85 + - 93 * ( + - 1 ) / - - 21 - - + MAX ( DISTINCT - 52 ) col1
----
-3141

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL COUNT( * ) * - + ( - - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL COUNT ( * ) * - + ( - - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7915
SELECT CAST( - + 20 AS SIGNED ) col2
----
-20

skipif mysql # not compatible
query I rowsort label-7915
SELECT CAST ( - + 20 AS INTEGER ) col2
----
-20

query I rowsort
SELECT - 42 * 51
----
-2142

query II rowsort
SELECT + 54 + + NULLIF ( - 29, - 49 ) AS col2, 40 AS col1
----
25
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7918
SELECT ALL + NULLIF ( - - COUNT( * ), - - 10 - CAST( NULL AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL + NULLIF ( - - COUNT ( * ), - - 10 - CAST ( NULL AS INTEGER ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT - 67 * 70 + - 22 + + COUNT( * ) * - + ( + ( - + 75 ) ) * + COUNT( * ) * + 77 AS col1
----
1063

skipif mysql # not compatible
query I rowsort label-7919
SELECT - 67 * 70 + - 22 + + COUNT ( * ) * - + ( + ( - + 75 ) ) * + COUNT ( * ) * + 77 AS col1
----
1063

onlyif mysql # aggregate syntax: 
query II rowsort label-7920
SELECT ALL + COUNT( * ), 21 AS col2
----
1
21

skipif mysql # not compatible
query II rowsort label-7920
SELECT ALL + COUNT ( * ), 21 AS col2
----
1
21

query I rowsort
SELECT - 82 + + 29 * 71 * CASE - 27 WHEN - + 93 THEN - 98 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7922
SELECT ALL CAST( NULL AS DECIMAL ) / 48 - + COUNT( * ) * + 39 * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL CAST ( NULL AS REAL ) / 48 - + COUNT ( * ) * + 39 * - 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7923
SELECT ALL + COUNT( * ) col0, 33
----
1
33

skipif mysql # not compatible
query II rowsort label-7923
SELECT ALL + COUNT ( * ) col0, 33
----
1
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7924
SELECT DISTINCT 67 DIV 50 - - 25 + + 52 * - NULLIF ( - + COUNT( * ), + 72 ) + + COALESCE ( + - 43, + - ( - 48 ) - + ( + COUNT( * ) ), 79 DIV - 3 ) DIV 44 + + 37 * + 25 + 19 * + 8 AS col2
----
1155

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT 67 / 50 - - 25 + + 52 * - NULLIF ( - + COUNT ( * ), + 72 ) + + COALESCE ( + - 43, + - ( - 48 ) - + ( + COUNT ( * ) ), 79 / - 3 ) / 44 + + 37 * + 25 + 19 * + 8 AS col2
----
1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7925
SELECT + 11 AS col2, - CAST( 73 AS SIGNED ) - MAX( ALL + 85 ) - 69 AS col1
----
11
-227

skipif mysql # not compatible
query II rowsort label-7925
SELECT + 11 AS col2, - CAST ( 73 AS INTEGER ) - MAX ( ALL + 85 ) - 69 AS col1
----
11
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL + - NULLIF ( - + COALESCE ( + + NULLIF ( - - COALESCE ( ( - 64 ), - + 69 ), 45 ), - - 26, - + 72 ), - COUNT( * ) ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL + - NULLIF ( - + COALESCE ( + + NULLIF ( - - COALESCE ( ( - 64 ), - + 69 ), 45 ), - - 26, - + 72 ), - COUNT ( * ) ) col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT ALL + 66 * - MAX( 4 )
----
-264

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL + 66 * - MAX ( 4 )
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT + - COUNT( * ) * - 68 - - 61 + - 95 + 20 * - - 52 * + 98 + 12 * ( - 6 ) AS col1
----
101882

skipif mysql # not compatible
query I rowsort label-7928
SELECT + - COUNT ( * ) * - 68 - - 61 + - 95 + 20 * - - 52 * + 98 + 12 * ( - 6 ) AS col1
----
101882

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7929
SELECT - + COUNT( * ) DIV + - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7929
SELECT - + COUNT ( * ) / + - 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT + - 39 * + - SUM( + 15 ) AS col1
----
585

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT + - 39 * + - SUM ( + 15 ) AS col1
----
585

query I rowsort
SELECT ALL + + COALESCE ( + 58, + + 7 )
----
58

query II rowsort
SELECT - 1 col2, - 65 * 24 AS col2
----
-1
-1560

query II rowsort
SELECT ALL + + 67 AS col2, 83
----
67
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7934
SELECT ALL - + 51 AS col1, + COUNT( * )
----
-51
1

skipif mysql # not compatible
query II rowsort label-7934
SELECT ALL - + 51 AS col1, + COUNT ( * )
----
-51
1

query II rowsort
SELECT ALL - 73 AS col1, + 9 AS col2
----
-73
9

query I rowsort
SELECT NULLIF ( - 6, + 65 ) * 38
----
-228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7937
SELECT - 78 - ( - + 31 ) + + 71 DIV - COUNT( * ) AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-7937
SELECT - 78 - ( - + 31 ) + + 71 / - COUNT ( * ) AS col1
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7938
SELECT 50 DIV - + ( - MIN( - NULLIF ( + + 7, - 49 ) ) ) + + + 88 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7938
SELECT 50 / - + ( - MIN ( - NULLIF ( + + 7, - 49 ) ) ) + + + 88 AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7939
SELECT COALESCE ( + - 72, + 48, - 14 + 81 ) + - 92, + COUNT( * ) AS col0
----
-164
1

skipif mysql # not compatible
query II rowsort label-7939
SELECT COALESCE ( + - 72, + 48, - 14 + 81 ) + - 92, + COUNT ( * ) AS col0
----
-164
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT - MIN( DISTINCT + - 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7940
SELECT - MIN ( DISTINCT + - 95 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL - 56 + + - COUNT( * ) * - 51 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - 56 + + - COUNT ( * ) * - 51 AS col0
----
-5

query I rowsort
SELECT ALL - 98 + 91
----
-7

query II rowsort
SELECT ALL 70, COALESCE ( - 77, + NULLIF ( + 68, - - 46 + - 44 / + 27 ) ) AS col2
----
70
-77

query I rowsort
SELECT 19 + + - 31 AS col0
----
-12

query I rowsort
SELECT + 41 - - 59 AS col0
----
100

query I rowsort
SELECT ALL - 48 + + ( - 94 ) AS col1
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT 2 * - CASE + 72 WHEN - COUNT( * ) THEN 14 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7947
SELECT 2 * - CASE + 72 WHEN - COUNT ( * ) THEN 14 END AS col0
----
NULL

query I rowsort
SELECT 5 + 62 * 67
----
4159

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ( 15 ) - + + 10 - + 14 + - - 88 * - COUNT( 46 ) * 15 AS col2
----
-1329

skipif mysql # not compatible
query I rowsort label-7949
SELECT ( 15 ) - + + 10 - + 14 + - - 88 * - COUNT ( 46 ) * 15 AS col2
----
-1329

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ( - 44 ) + - CASE - - 99 WHEN 28 THEN NULL WHEN - 98 THEN NULL ELSE - COUNT( * ) END + SUM( 21 ) * 33
----
650

skipif mysql # not compatible
query I rowsort label-7950
SELECT ( - 44 ) + - CASE - - 99 WHEN 28 THEN NULL WHEN - 98 THEN NULL ELSE - COUNT ( * ) END + SUM ( 21 ) * 33
----
650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT DISTINCT 83 - - 29 + - 88 + 14 * CAST( NULL AS SIGNED ) * - 59 * - - ( 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT 83 - - 29 + - 88 + 14 * CAST ( NULL AS INTEGER ) * - 59 * - - ( 69 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 18 * + 80
----
1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 25 AS col1
----
NULL

query I rowsort
SELECT 65 * + - 52
----
-3380

query I rowsort
SELECT 36 - - + 96 * + CASE ( + - 8 ) WHEN - 90 THEN - 23 ELSE NULL END / - AVG ( - - NULLIF ( - - NULLIF ( + 42, 30 ), - - 30 ) ) + - - 25 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT 72 DIV + 24 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7956
SELECT 72 / + 24 AS col1
----
3

query I rowsort
SELECT DISTINCT 82 * 36 * - 74
----
-218448

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT DISTINCT 76 * 11 * + CASE + 46 WHEN 87 / COUNT( * ) THEN NULL WHEN + 59 THEN NULL WHEN 81 THEN 38 WHEN + 92 THEN NULL END / - 99 + - 62 * - 27 / - 15 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT 76 * 11 * + CASE + 46 WHEN 87 / COUNT ( * ) THEN NULL WHEN + 59 THEN NULL WHEN 81 THEN 38 WHEN + 92 THEN NULL END / - 99 + - 62 * - 27 / - 15 + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT + NULLIF ( - - CAST( 54 AS SIGNED ), 58 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7959
SELECT + NULLIF ( - - CAST ( 54 AS INTEGER ), 58 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT + 73 * 93 * SUM( DISTINCT + + 37 ) AS col1
----
251193

skipif mysql # not compatible
query I rowsort label-7960
SELECT + 73 * 93 * SUM ( DISTINCT + + 37 ) AS col1
----
251193

query I rowsort
SELECT 8 - 67 AS col1
----
-59

query I rowsort
SELECT - 76 + - + 90 * + 64 AS col0
----
-5836

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT 8 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-7963
SELECT 8 / + 35
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT - CAST( + - 50 AS SIGNED ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7964
SELECT - CAST ( + - 50 AS INTEGER ) AS col1
----
50

query I rowsort
SELECT ALL + 27 + - 1 * - 95 AS col1
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7966
SELECT 57 + - - 37 + - + 83 * 72 + - - 73 + + 18 + 24 * COUNT( ( + 83 ) ) DIV 17
----
-5790

skipif mysql # not compatible
query I rowsort label-7966
SELECT 57 + - - 37 + - + 83 * 72 + - - 73 + + 18 + 24 * COUNT ( ( + 83 ) ) / 17
----
-5790

query II rowsort
SELECT ALL 81 * 54 AS col2, ( 71 ) AS col0
----
4374
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7968
SELECT COALESCE ( - COUNT( * ), - 22 * + 49 + 93 * - + 26 + + + 84 + - - 99 + - - 54 * + + 25 DIV - CAST( NULL AS SIGNED ) * - - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7968
SELECT COALESCE ( - COUNT ( * ), - 22 * + 49 + 93 * - + 26 + + + 84 + - - 99 + - - 54 * + + 25 / - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT ALL + 25 + - 61 AS col1
----
-36

query I rowsort
SELECT ALL - 66 + + ( - 95 ) AS col2
----
-161

query I rowsort
SELECT 2 + + 98 + ( - - 50 )
----
150

query I rowsort
SELECT 11 + - - 66 AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7973
SELECT 15 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-7973
SELECT 15 / 57
----
0

query II rowsort
SELECT 50 + - - 43 + - - 18, - 16 * - 62 * 44 - + ( + 70 ) AS col2
----
111
43578

onlyif mysql # aggregate syntax: 
query II rowsort label-7975
SELECT ALL COUNT( * ) AS col0, - 37 + + + 69
----
1
32

skipif mysql # not compatible
query II rowsort label-7975
SELECT ALL COUNT ( * ) AS col0, - 37 + + + 69
----
1
32

query I rowsort
SELECT 37 + - 50 AS col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7977
SELECT ALL COUNT( * ) AS col0, - NULLIF ( - + 29, + 24 ) DIV + 41 * + 94
----
1
0

skipif mysql # not compatible
query II rowsort label-7977
SELECT ALL COUNT ( * ) AS col0, - NULLIF ( - + 29, + 24 ) / + 41 * + 94
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT SUM( DISTINCT - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT SUM ( DISTINCT - 59 )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT ALL + CAST( - 33 AS SIGNED ) * + 63 + - 36
----
-2115

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL + CAST ( - 33 AS INTEGER ) * + 63 + - 36
----
-2115

onlyif mysql # aggregate syntax: 
query II rowsort label-7980
SELECT ALL COUNT( * ) AS col0, 56
----
1
56

skipif mysql # not compatible
query II rowsort label-7980
SELECT ALL COUNT ( * ) AS col0, 56
----
1
56

query I rowsort
SELECT DISTINCT - COALESCE ( + 50, + 67, + + 50, + - 20 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT 46 + + NULLIF ( + COUNT( ALL + 0 ), + 33 + ( SUM( + 54 ) ) + ( + 9 ) + + 74 + NULLIF ( COUNT( * ), - ( + + SUM( DISTINCT - 16 ) ) ) + 13 * - + 31 + + + 10 + 39 * 37 * 19 ) * 48 + - + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7982
SELECT 46 + + NULLIF ( + COUNT ( ALL + 0 ), + 33 + ( SUM ( + 54 ) ) + ( + 9 ) + + 74 + NULLIF ( COUNT ( * ), - ( + + SUM ( DISTINCT - 16 ) ) ) + 13 * - + 31 + + + 10 + 39 * 37 * 19 ) * 48 + - + COUNT ( * ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT 62 + 38 + + 86 * SUM( ALL + 67 )
----
5862

skipif mysql # not compatible
query I rowsort label-7983
SELECT 62 + 38 + + 86 * SUM ( ALL + 67 )
----
5862

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT - CASE - COUNT( * ) WHEN 96 THEN - 1 * - + 60 * + + COUNT( * ) + - AVG ( DISTINCT + 9 ) + 33 * + 94 + + + 63 * - 48 + - COUNT( * ) + 84 * + + 38 * + - 49 * 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT - CASE - COUNT ( * ) WHEN 96 THEN - 1 * - + 60 * + + COUNT ( * ) + - AVG ( DISTINCT + 9 ) + 33 * + 94 + + + 63 * - 48 + - COUNT ( * ) + 84 * + + 38 * + - 49 * 19 END
----
NULL

query I rowsort
SELECT 55 * + 12 + - 98 * - - NULLIF ( + 97, - 52 - 74 / 64 ) AS col1
----
-8846

query I rowsort
SELECT ALL 24 * - - 3
----
72

query II rowsort
SELECT + NULLIF ( + COALESCE ( - - 23, + 82 ), 61 ) * - 52 AS col2, 10
----
-1196
10

query I rowsort
SELECT + + CASE - + 42 WHEN + + 24 + 36 THEN + - 82 + - 77 ELSE ( + 46 ) END AS col1
----
46

query I rowsort
SELECT + + 86 + + 28 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL - COUNT( - 8 ) * - - 38 * - NULLIF ( CASE 80 WHEN 9 THEN NULL WHEN - SUM( 78 ) - - 67 THEN + + COUNT( * ) / + 33 WHEN 92 * - - ( 66 ) + - 46 * + + 50 - 0 THEN NULL END, CASE + CASE COUNT( * ) WHEN - COUNT( * ) + - - 91 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN - 6 THEN - - 44 * - 63 + - - 70 END WHEN - 14 / + COUNT( * ) THEN + 75 + 24 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL - COUNT ( - 8 ) * - - 38 * - NULLIF ( CASE 80 WHEN 9 THEN NULL WHEN - SUM ( 78 ) - - 67 THEN + + COUNT ( * ) / + 33 WHEN 92 * - - ( 66 ) + - 46 * + + 50 - 0 THEN NULL END, CASE + CASE COUNT ( * ) WHEN - COUNT ( * ) + - - 91 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - 6 THEN - - 44 * - 63 + - - 70 END WHEN - 14 / + COUNT ( * ) THEN + 75 + 24 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7991
SELECT ALL + 90 * 81 * - COUNT( * ) + - 52 + + 37 + - - 63 * + 10 + + - 45 DIV 36
----
-6676

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL + 90 * 81 * - COUNT ( * ) + - 52 + + 37 + - - 63 * + 10 + + - 45 / 36
----
-6676

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT 11 * 11 * ( + - 79 ) + + + 50 + MIN( + - 3 )
----
-9512

skipif mysql # not compatible
query I rowsort label-7992
SELECT 11 * 11 * ( + - 79 ) + + + 50 + MIN ( + - 3 )
----
-9512

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT + + COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7993
SELECT + + COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT ALL - 11 * + CAST( + + 43 AS SIGNED ) + + + 60 + + 69
----
-344

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL - 11 * + CAST ( + + 43 AS INTEGER ) + + + 60 + + 69
----
-344

onlyif mysql # aggregate syntax: 
query II rowsort label-7995
SELECT - 20 AS col0, SUM( ALL + 64 ) AS col1
----
-20
64

skipif mysql # not compatible
query II rowsort label-7995
SELECT - 20 AS col0, SUM ( ALL + 64 ) AS col1
----
-20
64

query I rowsort
SELECT DISTINCT - 29 + + 89 col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7997
SELECT DISTINCT + 74 AS col2, MAX( 36 ) - - + CAST( 16 AS SIGNED ) DIV - + 84 col0
----
74
36

skipif mysql # not compatible
query II rowsort label-7997
SELECT DISTINCT + 74 AS col2, MAX ( 36 ) - - + CAST ( 16 AS INTEGER ) / - + 84 col0
----
74
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7998
SELECT DISTINCT - + 92 + - + COUNT( * ) + - - CAST( NULL AS SIGNED ) / - SUM( ALL + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT - + 92 + - + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) / - SUM ( ALL + 28 )
----
NULL

query I rowsort
SELECT + + 90 - + 87 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8000
SELECT + - COUNT( * ) - + + 38 + - 53 + CAST( - 2 AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-8000
SELECT + - COUNT ( * ) - + + 38 + - 53 + CAST ( - 2 AS INTEGER ) AS col2
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8001
SELECT ALL + 4 DIV - 87 * + 15 + - + 73 - - 86 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL + 4 / - 87 * + 15 + - + 73 - - 86 AS col1
----
13

query II rowsort
SELECT DISTINCT 83 AS col1, + 75 AS col0
----
83
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT - COUNT( * ) + + 74 + - 14 * + - 75
----
1123

skipif mysql # not compatible
query I rowsort label-8003
SELECT - COUNT ( * ) + + 74 + - 14 * + - 75
----
1123

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT COUNT( 98 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT COUNT ( 98 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT ALL - 31 - + + 21 + - 41 DIV - 28 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL - 31 - + + 21 + - 41 / - 28 AS col1
----
-51

query I rowsort
SELECT + 13 * - 96 col0
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT - MAX( + 68 ) - - - 6
----
-74

skipif mysql # not compatible
query I rowsort label-8007
SELECT - MAX ( + 68 ) - - - 6
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT COUNT( - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT COUNT ( - 61 )
----
1

query I rowsort
SELECT - 83 * + 81 * - 18
----
121014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8010
SELECT DISTINCT - 86 DIV - COUNT( + NULLIF ( - 43, - 67 ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT - 86 / - COUNT ( + NULLIF ( - 43, - 67 ) ) AS col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8011
SELECT ALL - 96 DIV - + 87
----
1

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - 96 / - + 87
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8012
SELECT - 47 * + 48, COUNT( * ) col1
----
-2256
1

skipif mysql # not compatible
query II rowsort label-8012
SELECT - 47 * + 48, COUNT ( * ) col1
----
-2256
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT - MAX( + - 45 ) + - - 96 col2
----
141

skipif mysql # not compatible
query I rowsort label-8013
SELECT - MAX ( + - 45 ) + - - 96 col2
----
141

query I rowsort
SELECT - COALESCE ( - - 23, - ( 33 ) * - 58 * + 63 * - - 97 ) * 13 col2
----
-299

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8015
SELECT ALL ( + CAST( NULL AS DECIMAL ) ), 88 + + + 94 DIV 33 + + ( + + 42 ) * + - 91 AS col2
----
NULL
-3732

skipif mysql # not compatible
query II rowsort label-8015
SELECT ALL ( + CAST ( NULL AS REAL ) ), 88 + + + 94 / 33 + + ( + + 42 ) * + - 91 AS col2
----
NULL
-3732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8016
SELECT ALL ( + CAST( COUNT( * ) AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT DISTINCT + NULLIF ( + 83, - NULLIF ( + SUM( ( 7 ) ), - 26 / - - COUNT( * ) ) ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT + NULLIF ( + 83, - NULLIF ( + SUM ( ( 7 ) ), - 26 / - - COUNT ( * ) ) ) AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT ALL CAST( NULL AS SIGNED ) / + 14 * - - 57 + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL CAST ( NULL AS INTEGER ) / + 14 * - - 57 + + 59
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8019
SELECT - 93 * + + MAX( - + 73 ) * - 56 * - + 6, - 15 + + ( + 3 ) + - 50 + + - 19 / - 39 / ( + - ( CASE - + ( - NULLIF ( SUM( + - 21 ), 56 + - - 43 ) ) WHEN + 47 THEN COUNT( * ) - + + 27 END ) ) col2
----
2281104
NULL

skipif mysql # not compatible
query II rowsort label-8019
SELECT - 93 * + + MAX ( - + 73 ) * - 56 * - + 6, - 15 + + ( + 3 ) + - 50 + + - 19 / - 39 / ( + - ( CASE - + ( - NULLIF ( SUM ( + - 21 ), 56 + - - 43 ) ) WHEN + 47 THEN COUNT ( * ) - + + 27 END ) ) col2
----
2281104
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT + + SUM( + - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-8020
SELECT + + SUM ( + - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT + COUNT( * ) * 17, 3 AS col2
----
17
3

skipif mysql # not compatible
query II rowsort label-8021
SELECT + COUNT ( * ) * 17, 3 AS col2
----
17
3

query I rowsort
SELECT ALL + ( 77 ) col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL + - 93 * + MAX( DISTINCT - + 47 ) - + 58 * + 46 AS col2
----
1703

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL + - 93 * + MAX ( DISTINCT - + 47 ) - + 58 * + 46 AS col2
----
1703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT DISTINCT 42 * + CAST( NULL AS SIGNED ) * + 35 + + COUNT( * ) * - - 55 / 22 + - 76 * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT 42 * + CAST ( NULL AS INTEGER ) * + 35 + + COUNT ( * ) * - - 55 / 22 + - 76 * 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8025
SELECT + - ( - - 88 ) AS col2, - COUNT( * ) - + 17
----
-88
-18

skipif mysql # not compatible
query II rowsort label-8025
SELECT + - ( - - 88 ) AS col2, - COUNT ( * ) - + 17
----
-88
-18

query I rowsort
SELECT - - 44 + + 40 + - - 43 AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT - - SUM( 84 ) * - + ( + 30 ) - + 48 AS col1
----
-2568

skipif mysql # not compatible
query I rowsort label-8027
SELECT - - SUM ( 84 ) * - + ( + 30 ) - + 48 AS col1
----
-2568

query I rowsort
SELECT ALL 78 * - ( + 28 )
----
-2184

query I rowsort
SELECT + 90 + - 27 * 49
----
-1233

query I rowsort
SELECT + 42 + + 47 * + 34 AS col2
----
1640

query I rowsort
SELECT + 60 * + 88 AS col0
----
5280

onlyif mysql # aggregate syntax: 
query II rowsort label-8032
SELECT + COUNT( * ) + - COALESCE ( - - 68, - 77 ) + 92 AS col2, - 67
----
25
-67

skipif mysql # not compatible
query II rowsort label-8032
SELECT + COUNT ( * ) + - COALESCE ( - - 68, - 77 ) + 92 AS col2, - 67
----
25
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT DISTINCT CASE + ( + NULLIF ( NULLIF ( - 0, - + 47 ), + + 46 + - COUNT( * ) ) ) WHEN MAX( 95 ) THEN - 88 * - + 4 * - + 74 * + 26 ELSE + 25 * + - 28 * + COUNT( * ) + + 74 + + 14 - + COALESCE ( - 71, - + 14 * + COUNT( * ) - 43 ) + - - COUNT( * ) * - + 24 - + + 87 END
----
-652

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT CASE + ( + NULLIF ( NULLIF ( - 0, - + 47 ), + + 46 + - COUNT ( * ) ) ) WHEN MAX ( 95 ) THEN - 88 * - + 4 * - + 74 * + 26 ELSE + 25 * + - 28 * + COUNT ( * ) + + 74 + + 14 - + COALESCE ( - 71, - + 14 * + COUNT ( * ) - 43 ) + - - COUNT ( * ) * - + 24 - + + 87 END
----
-652

query I rowsort
SELECT + 24 * - 30
----
-720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8035
SELECT - COUNT( * ) * - CAST( 61 AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8035
SELECT - COUNT ( * ) * - CAST ( 61 AS INTEGER ) AS col2
----
61

query I rowsort
SELECT DISTINCT - 82 * + + 11 * + 81 AS col0
----
-73062

query I rowsort
SELECT DISTINCT 65 + 28
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT 81 + + + COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8038
SELECT 81 + + + COUNT ( * ) AS col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT ALL 0 + 19 DIV + 13 + 90 * - 34 * - ( + - 60 ) AS col1
----
-183599

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL 0 + 19 / + 13 + 90 * - 34 * - ( + - 60 ) AS col1
----
-183599

query I rowsort
SELECT 90 + + 33 * 81 AS col0
----
2763

onlyif mysql # DIV for integer division: 
query II rowsort label-8041
SELECT 61 + + 55 DIV + + 25 AS col1, 73
----
63
73

skipif mysql # not compatible
query II rowsort label-8041
SELECT 61 + + 55 / + + 25 AS col1, 73
----
63
73

query I rowsort
SELECT ALL + 65 + - 89 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT 6 - COUNT( * ) * - 56 col2
----
62

skipif mysql # not compatible
query I rowsort label-8043
SELECT 6 - COUNT ( * ) * - 56 col2
----
62

query I rowsort
SELECT 80 + 28 AS col1
----
108

query I rowsort
SELECT ALL - 93 + - 21 * - 80 AS col1
----
1587

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT COUNT( * ) + 12 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8046
SELECT COUNT ( * ) + 12 AS col1
----
13

query I rowsort
SELECT 96 + - 84
----
12

query I rowsort
SELECT DISTINCT - ( ( + 59 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT 25 + + CASE 82 WHEN - 16 * COUNT( * ) THEN + 16 + - 21 WHEN 22 * 56 THEN 35 - 45 WHEN COALESCE ( - 9, + SUM( + 83 ) + 98, COUNT( * ) ) THEN 71 * - 87 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT 25 + + CASE 82 WHEN - 16 * COUNT ( * ) THEN + 16 + - 21 WHEN 22 * 56 THEN 35 - 45 WHEN COALESCE ( - 9, + SUM ( + 83 ) + 98, COUNT ( * ) ) THEN 71 * - 87 ELSE NULL END col2
----
NULL

query I rowsort
SELECT 96 * - 42
----
-4032

query I rowsort
SELECT 31 * + 85
----
2635

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT DISTINCT - CASE + 28 WHEN + ( + COUNT( * ) ) THEN - 39 WHEN ( 35 ) * - 50 + + 56 THEN NULL END * + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT - CASE + 28 WHEN + ( + COUNT ( * ) ) THEN - 39 WHEN ( 35 ) * - 50 + + 56 THEN NULL END * + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT COALESCE ( + NULLIF ( 68, AVG ( 39 ) / 50 + + 32 ), + 93 - + 91, CASE + COUNT( * ) WHEN - MIN( - 19 ) THEN 15 WHEN MAX( DISTINCT 39 ) * 41 THEN NULL ELSE NULL END, 50 ) + MAX( ALL - 46 ) * - 52 AS col2
----
2460

skipif mysql # not compatible
query I rowsort label-8053
SELECT COALESCE ( + NULLIF ( 68, AVG ( 39 ) / 50 + + 32 ), + 93 - + 91, CASE + COUNT ( * ) WHEN - MIN ( - 19 ) THEN 15 WHEN MAX ( DISTINCT 39 ) * 41 THEN NULL ELSE NULL END, 50 ) + MAX ( ALL - 46 ) * - 52 AS col2
----
2460

query I rowsort
SELECT + 36 * 93 + - 16
----
3332

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT 21 * ( 38 * + COUNT( * ) )
----
798

skipif mysql # not compatible
query I rowsort label-8055
SELECT 21 * ( 38 * + COUNT ( * ) )
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT COUNT( * ) + ( - 58 )
----
-57

skipif mysql # not compatible
query I rowsort label-8056
SELECT COUNT ( * ) + ( - 58 )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8057
SELECT DISTINCT 19 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT 19 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 66 * - 0 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8059
SELECT 4 * 74 - COUNT( * ) DIV 56 AS col0
----
296

skipif mysql # not compatible
query I rowsort label-8059
SELECT 4 * 74 - COUNT ( * ) / 56 AS col0
----
296

query I rowsort
SELECT DISTINCT 60 + - 53 AS col2
----
7

query I rowsort
SELECT ALL 18 * - 27
----
-486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8062
SELECT CAST( - 17 AS SIGNED ) + + 20 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8062
SELECT CAST ( - 17 AS INTEGER ) + + 20 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT ALL - CAST( NULL AS SIGNED ) + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - CAST ( NULL AS INTEGER ) + 50 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT ALL 12 + 71 DIV 99 col0
----
12

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL 12 + 71 / 99 col0
----
12

query I rowsort
SELECT 71 * 81
----
5751

query I rowsort
SELECT DISTINCT - 23 + + 57 AS col0
----
34

query I rowsort
SELECT DISTINCT 47 + + 42 * - 2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT MIN( 20 ) - 19
----
1

skipif mysql # not compatible
query I rowsort label-8068
SELECT MIN ( 20 ) - 19
----
1

query I rowsort
SELECT 61 * + 16 AS col2
----
976

query I rowsort
SELECT DISTINCT 11 + - 36 AS col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT + 82 + 28 DIV + 37 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8071
SELECT + 82 + 28 / + 37 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT - MIN( + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-8072
SELECT - MIN ( + 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT DISTINCT 0 - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT 0 - - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT 0 * 56 AS col0
----
0

query I rowsort
SELECT ALL + ( 37 ) * - 34
----
-1258

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT - 49 DIV 48 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8076
SELECT - 49 / 48 AS col2
----
-1

query I rowsort
SELECT DISTINCT - ( - 4 ) AS col2
----
4

query I rowsort
SELECT ALL + CASE 46 WHEN - AVG ( DISTINCT + 4 ) THEN - 16 END * + 92 - 33 * 67 AS col1
----
NULL

query I rowsort
SELECT - 15 - - 24 AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8080
SELECT + SUM( 21 ) DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8080
SELECT + SUM ( 21 ) / - 51 AS col1
----
0

query I rowsort
SELECT 57 + 21 AS col2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT ALL + + 18 DIV 6
----
3

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL + + 18 / 6
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT - + 62 * - 77 - - 89 DIV 99 AS col2
----
4774

skipif mysql # not compatible
query I rowsort label-8083
SELECT - + 62 * - 77 - - 89 / 99 AS col2
----
4774

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT ALL - + ( + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL - + ( + COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT 26 - 35 * - 73 AS col0
----
2581

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT - COUNT( 82 ) + - 16 * 38
----
-609

skipif mysql # not compatible
query I rowsort label-8086
SELECT - COUNT ( 82 ) + - 16 * 38
----
-609

query I rowsort
SELECT ALL + 99 * 74 AS col1
----
7326

query I rowsort
SELECT 56 * + - COALESCE ( 18, 51 ) AS col0
----
-1008

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8089
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + 98 AS col0
----
NULL

query I rowsort
SELECT 46 * - 49 AS col2
----
-2254

query I rowsort
SELECT 85 - - + 47
----
132

query I rowsort
SELECT ALL + 64 + - 50
----
14

query I rowsort
SELECT ALL 71 + + 53
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT - SUM( DISTINCT + - 68 ) + 77 col0
----
145

skipif mysql # not compatible
query I rowsort label-8094
SELECT - SUM ( DISTINCT + - 68 ) + 77 col0
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8095
SELECT - CAST( - ( + 63 ) AS SIGNED ) + 53 col0
----
116

skipif mysql # not compatible
query I rowsort label-8095
SELECT - CAST ( - ( + 63 ) AS INTEGER ) + 53 col0
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT ALL + 65 DIV - + 81 * 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL + 65 / - + 81 * 44 AS col1
----
0

query I rowsort
SELECT + 23 * + - 15
----
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT - 35 + + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-8098
SELECT - 35 + + COUNT ( * )
----
-34

query I rowsort
SELECT + 99 + - COALESCE ( + 70, - ( ( - 83 ) ) * - 15 ) + - 1 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT ALL COUNT( * ) * + + 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL COUNT ( * ) * + + 30 AS col2
----
30

query I rowsort
SELECT DISTINCT - ( - - 24 ) - 66
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT DISTINCT COUNT( ALL + 43 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT COUNT ( ALL + 43 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT + 33 + - + ( 8 ) * COUNT( * ) col0
----
25

skipif mysql # not compatible
query I rowsort label-8103
SELECT + 33 + - + ( 8 ) * COUNT ( * ) col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL - 62 - - + CASE CASE 40 WHEN + 68 THEN + 2 END WHEN - 44 THEN SUM( - 32 ) WHEN 72 THEN 44 + + CASE 49 + + 70 * 60 WHEN + 48 THEN + 95 ELSE NULL END ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL - 62 - - + CASE CASE 40 WHEN + 68 THEN + 2 END WHEN - 44 THEN SUM ( - 32 ) WHEN 72 THEN 44 + + CASE 49 + + 70 * 60 WHEN + 48 THEN + 95 ELSE NULL END ELSE NULL END * + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT + 46 + - 56 DIV 4
----
32

skipif mysql # not compatible
query I rowsort label-8105
SELECT + 46 + - 56 / 4
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8106
SELECT DISTINCT CASE - COUNT( * ) WHEN 27 * 48 + 4 THEN + NULLIF ( - 50, 94 ) WHEN 62 + - CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT CASE - COUNT ( * ) WHEN 27 * 48 + 4 THEN + NULLIF ( - 50, 94 ) WHEN 62 + - CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT + - 1 - 67 + - COUNT( 44 )
----
-69

skipif mysql # not compatible
query I rowsort label-8107
SELECT + - 1 - 67 + - COUNT ( 44 )
----
-69

query I rowsort
SELECT + 74 * + 35 * 56
----
145040

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT + + 32 + + 48 DIV + 44
----
33

skipif mysql # not compatible
query I rowsort label-8109
SELECT + + 32 + + 48 / + 44
----
33

query I rowsort
SELECT + + ( + + 94 ) + 72 AS col0
----
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8111
SELECT 51 DIV - 74 + - COUNT( * ) DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-8111
SELECT 51 / - 74 + - COUNT ( * ) / + 45
----
0

query I rowsort
SELECT ALL + CASE ( 2 ) WHEN - 24 * 35 THEN 17 WHEN 44 THEN NULL END * - 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8113
SELECT ALL + CAST( + + 67 AS SIGNED ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL + CAST ( + + 67 AS INTEGER ) AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT DISTINCT + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL NULLIF ( + 19, - 14 + - SUM( 19 + 98 ) ) * 44 AS col2
----
836

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL NULLIF ( + 19, - 14 + - SUM ( 19 + 98 ) ) * 44 AS col2
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT ALL - - 14 * + - 91 * - 55 + SUM( ALL 82 ) * 33
----
72776

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - - 14 * + - 91 * - 55 + SUM ( ALL 82 ) * 33
----
72776

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT COALESCE ( - 47, + COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-8117
SELECT COALESCE ( - 47, + COUNT ( * ) )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT - 19 DIV - 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8118
SELECT - 19 / - 25 AS col2
----
0

query I rowsort
SELECT + 31 * - 59
----
-1829

query I rowsort
SELECT 4 * - 43 + - + 67 AS col2
----
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT CASE + + SUM( + 13 ) WHEN 84 THEN NULL ELSE - ( 95 ) * + 29 END AS col0
----
-2755

skipif mysql # not compatible
query I rowsort label-8121
SELECT CASE + + SUM ( + 13 ) WHEN 84 THEN NULL ELSE - ( 95 ) * + 29 END AS col0
----
-2755

query I rowsort
SELECT + 89 * - - 96 + - 54
----
8490

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT CASE + + 32 WHEN 1 * 94 THEN - 77 WHEN 41 * MAX( 29 ) THEN 87 * - MIN( DISTINCT 19 ) + + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT CASE + + 32 WHEN 1 * 94 THEN - 77 WHEN 41 * MAX ( 29 ) THEN 87 * - MIN ( DISTINCT 19 ) + + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8124
SELECT + 83 DIV 7 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-8124
SELECT + 83 / 7 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8125
SELECT ALL + CAST( NULL AS SIGNED ) * + ( + - ( COUNT( * ) ) ) * - 73 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( + - ( COUNT ( * ) ) ) * - 73 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 53 * - 62 + - 24
----
3262

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT - ( - MIN( + - 70 ) ) + 85 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8127
SELECT - ( - MIN ( + - 70 ) ) + 85 AS col1
----
15

query I rowsort
SELECT DISTINCT 76 * + + 71 * COALESCE ( - 35, 25 ) + 93 * - 14
----
-190162

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL + SUM( ( - ( - 96 ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + SUM ( ( - ( - 96 ) ) )
----
96

query II rowsort
SELECT + 39 AS col2, 88 * - - 33 * 83
----
39
241032

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL 51 * + SUM( - + 95 ) - - 8 * + COUNT( * ) AS col1
----
-4837

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL 51 * + SUM ( - + 95 ) - - 8 * + COUNT ( * ) AS col1
----
-4837

onlyif mysql # aggregate syntax: 
query II rowsort label-8132
SELECT COUNT( * ) AS col0, + 69 * - COUNT( DISTINCT 42 ) AS col2
----
1
-69

skipif mysql # not compatible
query II rowsort label-8132
SELECT COUNT ( * ) AS col0, + 69 * - COUNT ( DISTINCT 42 ) AS col2
----
1
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT COUNT( DISTINCT + 54 )
----
1

skipif mysql # not compatible
query I rowsort label-8133
SELECT COUNT ( DISTINCT + 54 )
----
1

query I rowsort
SELECT - 41 + + 8 + - 53
----
-86

query I rowsort
SELECT ALL ( + 70 ) col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT DISTINCT - 61 * - CAST( - 29 AS SIGNED ) AS col1
----
-1769

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT - 61 * - CAST ( - 29 AS INTEGER ) AS col1
----
-1769

query II rowsort
SELECT DISTINCT 95, + 63 AS col0
----
95
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT - - MIN( - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-8138
SELECT - - MIN ( - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT + MIN( ALL + 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8139
SELECT + MIN ( ALL + 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT - + CASE 19 WHEN 77 * 82 - + 67 THEN - 58 END / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8140
SELECT - + CASE 19 WHEN 77 * 82 - + 67 THEN - 58 END / COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT - MAX( + + 66 ) * + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT - MAX ( + + 66 ) * + COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT ALL COUNT( - 56 )
----
1

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL COUNT ( - 56 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8143
SELECT - 85 col1, 36 * CAST( - 77 AS SIGNED ) AS col0
----
-85
-2772

skipif mysql # not compatible
query II rowsort label-8143
SELECT - 85 col1, 36 * CAST ( - 77 AS INTEGER ) AS col0
----
-85
-2772

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT - 24 DIV 16 DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT - 24 / 16 / 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT DISTINCT + COALESCE ( 17, + - ( - 77 ) + + CASE + 19 WHEN - 39 THEN NULL WHEN - COALESCE ( - ( - COUNT( * ) ), 55 + COUNT( * ) ) THEN NULL WHEN - 25 - - 7 * 20 THEN 75 + 13 ELSE NULL END * 10 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT + COALESCE ( 17, + - ( - 77 ) + + CASE + 19 WHEN - 39 THEN NULL WHEN - COALESCE ( - ( - COUNT ( * ) ), 55 + COUNT ( * ) ) THEN NULL WHEN - 25 - - 7 * 20 THEN 75 + 13 ELSE NULL END * 10 ) AS col2
----
17

query I rowsort
SELECT ALL + + 72 * + 73
----
5256

onlyif mysql # DIV for integer division: 
query I rowsort label-8147
SELECT DISTINCT - 17 DIV - 83 + 19
----
19

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT - 17 / - 83 + 19
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8148
SELECT ALL + 82 DIV COUNT( * ) + + 91 col0
----
173

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL + 82 / COUNT ( * ) + + 91 col0
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT COUNT( - 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8149
SELECT COUNT ( - 24 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT + - COUNT( - + ( - 34 ) ) * - 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8150
SELECT + - COUNT ( - + ( - 34 ) ) * - 25 AS col2
----
25

query I rowsort
SELECT - - 59 + 79 AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT 85 * - 19 * + - COUNT( * )
----
1615

skipif mysql # not compatible
query I rowsort label-8152
SELECT 85 * - 19 * + - COUNT ( * )
----
1615

query I rowsort
SELECT ALL 95 + - 55 + - - 55
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8154
SELECT ALL 66 DIV - 17 AS col2, - COUNT( * ) AS col0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-8154
SELECT ALL 66 / - 17 AS col2, - COUNT ( * ) AS col0
----
-3
-1

query I rowsort
SELECT 75 + + + 39 + + 5 AS col2
----
119

query II rowsort
SELECT ALL 89 * 76 AS col1, 69 * - - 15 * + 55 + 63 * - 85
----
6764
51570

query I rowsort
SELECT DISTINCT 1 * - + 70 AS col0
----
-70

query I rowsort
SELECT ALL 59 - + 12 AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8159
SELECT COUNT( * ) * - COUNT( * ) DIV + - 89 * - + COALESCE ( - 80, 60 * COUNT( * ), 4 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8159
SELECT COUNT ( * ) * - COUNT ( * ) / + - 89 * - + COALESCE ( - 80, 60 * COUNT ( * ), 4 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT ( + + 68 ) + - 26 + + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8160
SELECT ( + + 68 ) + - 26 + + COUNT ( * ) AS col1
----
43

query I rowsort
SELECT 10 - 65 AS col2
----
-55

query I rowsort
SELECT 19 - 69 AS col1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8163
SELECT ALL + 2 DIV - - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + 2 / - - 73 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8164
SELECT DISTINCT 35 - - + CAST( NULL AS DECIMAL ) + - 51 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT 35 - - + CAST ( NULL AS REAL ) + - 51 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8165
SELECT COALESCE ( - + 40, + - COUNT( * ) ) + + 74 - 51 * + CAST( 54 DIV + 82 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-8165
SELECT COALESCE ( - + 40, + - COUNT ( * ) ) + + 74 - 51 * + CAST ( 54 / + 82 AS INTEGER )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT + CAST( NULL AS SIGNED ) + + 28 + + + 27 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT + CAST ( NULL AS INTEGER ) + + 28 + + + 27 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT ALL MIN( DISTINCT + ( + ( - - 41 ) ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL MIN ( DISTINCT + ( + ( - - 41 ) ) ) AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT CAST( + - 81 AS SIGNED ) * - - 43 * - 0 * 62
----
0

skipif mysql # not compatible
query I rowsort label-8168
SELECT CAST ( + - 81 AS INTEGER ) * - - 43 * - 0 * 62
----
0

query I rowsort
SELECT + 29 * - 52
----
-1508

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT 62 + + - 99 DIV 15 * - - 19
----
-52

skipif mysql # not compatible
query I rowsort label-8170
SELECT 62 + + - 99 / 15 * - - 19
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8171
SELECT ALL - 21 * - CAST( NULL AS DECIMAL ) / + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL - 21 * - CAST ( NULL AS REAL ) / + - 53
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8172
SELECT 52 * - 47 AS col1, COUNT( + + 77 )
----
-2444
1

skipif mysql # not compatible
query II rowsort label-8172
SELECT 52 * - 47 AS col1, COUNT ( + + 77 )
----
-2444
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT - MIN( - + 89 ) + + 28 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-8173
SELECT - MIN ( - + 89 ) + + 28 AS col1
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8174
SELECT DISTINCT + ( COUNT( * ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8175
SELECT ALL + 29 + + 31 + + COUNT( * ) + - - 35 + - 29 DIV + COUNT( ALL 17 )
----
67

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + 29 + + 31 + + COUNT ( * ) + - - 35 + - 29 / + COUNT ( ALL 17 )
----
67

query I rowsort
SELECT DISTINCT ( 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL - MAX( - 99 ) * - + 69 * - + 63
----
430353

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - MAX ( - 99 ) * - + 69 * - + 63
----
430353

query I rowsort
SELECT DISTINCT + + 70 + - 30 col1
----
40

query I rowsort
SELECT CASE + - 75 WHEN - 65 + - 81 THEN + 67 * - 34 ELSE - 42 * 15 END
----
-630

query II rowsort
SELECT ALL + 80 + - 39 AS col0, ( 4 )
----
41
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT + 45 + + + ( - - 60 ) + COUNT( * ) - 51 col0
----
55

skipif mysql # not compatible
query I rowsort label-8181
SELECT + 45 + + + ( - - 60 ) + COUNT ( * ) - 51 col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT ALL + 69 + - NULLIF ( - CASE + 34 WHEN - 70 * 84 THEN 70 * + 51 + + 32 END, + 60 * + 89 + + ( + COALESCE ( 99, 59 ) - CAST( NULL AS SIGNED ) ) ) - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL + 69 + - NULLIF ( - CASE + 34 WHEN - 70 * 84 THEN 70 * + 51 + + 32 END, + 60 * + 89 + + ( + COALESCE ( 99, 59 ) - CAST ( NULL AS INTEGER ) ) ) - - 2
----
NULL

query I rowsort
SELECT ALL ( + - ( + 76 ) )
----
-76

query I rowsort
SELECT ( + 3 ) + + NULLIF ( - - 45, 65 ) AS col1
----
48

query II rowsort
SELECT 11 * + 84 AS col0, - 36 + 98
----
924
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT SUM( ALL - + 90 ) + COUNT( - - 68 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-8186
SELECT SUM ( ALL - + 90 ) + COUNT ( - - 68 ) AS col1
----
-89

query I rowsort
SELECT 1 + + 80 + - 19 * + 78 + 38 AS col2
----
-1363

query I rowsort
SELECT ALL + + 57 * 26 AS col1
----
1482

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT DISTINCT - ( + 85 ) + + 15 DIV 22 + 21 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT - ( + 85 ) + + 15 / 22 + 21 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL 96 + + 13 * + - 43 * + COUNT( * ) * + - 63
----
35313

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL 96 + + 13 * + - 43 * + COUNT ( * ) * + - 63
----
35313

query I rowsort
SELECT DISTINCT - 96 + - + 35 AS col1
----
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT ALL - 78 - + 60 DIV 40 + 9 + 20
----
-50

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL - 78 - + 60 / 40 + 9 + 20
----
-50

query I rowsort
SELECT 55 * - - 69 AS col0
----
3795

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT - SUM( DISTINCT + 92 ) - + + 9 + + - 25 + COUNT( * )
----
-125

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT - SUM ( DISTINCT + 92 ) - + + 9 + + - 25 + COUNT ( * )
----
-125

query II rowsort
SELECT ALL - 36 AS col2, + 81
----
-36
81

query I rowsort
SELECT 81 * - 70 AS col0
----
-5670

query I rowsort
SELECT - 42 * - + 44 * 92 + 64 AS col2
----
170080

query I rowsort
SELECT 0 * + ( - 3 ) * + 75
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT DISTINCT 11 DIV 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT 11 / 28 AS col0
----
0

query II rowsort
SELECT DISTINCT - 51 AS col0, + 48 AS col1
----
-51
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL COUNT( * ) * ( - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL COUNT ( * ) * ( - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT COALESCE ( - 83, - + SUM( DISTINCT + 46 ), + 83 ) * + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-8202
SELECT COALESCE ( - 83, - + SUM ( DISTINCT + 46 ), + 83 ) * + COUNT ( * )
----
-83

query I rowsort
SELECT 0 - - 51 AS col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8204
SELECT DISTINCT 1 + + 79 + - + CAST( 39 AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT 1 + + 79 + - + CAST ( 39 AS INTEGER ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8205
SELECT CASE - 95 WHEN + 65 - - 40 + NULLIF ( + COUNT( * ), + COUNT( * ) ) + 79 THEN + CAST( NULL AS SIGNED ) ELSE NULL END / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT CASE - 95 WHEN + 65 - - 40 + NULLIF ( + COUNT ( * ), + COUNT ( * ) ) + 79 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END / 48
----
NULL

query I rowsort
SELECT ( 79 ) + + 31 AS col2
----
110

query I rowsort
SELECT DISTINCT - 33 + + 4 + 97
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-8208
SELECT DISTINCT 30 AS col1, - SUM( 44 ) * - 10 + + + 83 AS col1
----
30
523

skipif mysql # not compatible
query II rowsort label-8208
SELECT DISTINCT 30 AS col1, - SUM ( 44 ) * - 10 + + + 83 AS col1
----
30
523

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT ALL - COUNT( ALL - + 58 ) + - 68 + - 5 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL - COUNT ( ALL - + 58 ) + - 68 + - 5 AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8210
SELECT ALL + 0 + + CAST( SUM( ALL - - 24 ) AS SIGNED ) + - 33 col0
----
-9

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL + 0 + + CAST ( SUM ( ALL - - 24 ) AS INTEGER ) + - 33 col0
----
-9

query I rowsort
SELECT DISTINCT - 31 + 71
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT DISTINCT 85 + + 58 + COUNT( * ) * + + SUM( DISTINCT + 7 ) AS col2
----
150

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT 85 + + 58 + COUNT ( * ) * + + SUM ( DISTINCT + 7 ) AS col2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT DISTINCT + - COUNT( * ) + - 52 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT + - COUNT ( * ) + - 52 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT - COUNT( ALL - - COALESCE ( + 2, - 71, - ( 5 ) / ( - 47 ) ) ) - - 27 * + 45
----
1214

skipif mysql # not compatible
query I rowsort label-8214
SELECT - COUNT ( ALL - - COALESCE ( + 2, - 71, - ( 5 ) / ( - 47 ) ) ) - - 27 * + 45
----
1214

onlyif mysql # DIV for integer division: 
query II rowsort label-8215
SELECT 46, 49 DIV - + 12 AS col0
----
46
-4

skipif mysql # not compatible
query II rowsort label-8215
SELECT 46, 49 / - + 12 AS col0
----
46
-4

query I rowsort
SELECT ALL ( - 80 ) * - 64
----
5120

query I rowsort
SELECT 69 * - 95 + + 30 AS col0
----
-6525

onlyif mysql # aggregate syntax: 
query II rowsort label-8218
SELECT - + 85 AS col0, SUM( 39 )
----
-85
39

skipif mysql # not compatible
query II rowsort label-8218
SELECT - + 85 AS col0, SUM ( 39 )
----
-85
39

query I rowsort
SELECT ALL - + 92 + - + 66 * 69
----
-4646

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL - ( - - 65 ) * - - COUNT( * ) - 35 * + + MIN( - 76 ) col0
----
2595

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL - ( - - 65 ) * - - COUNT ( * ) - 35 * + + MIN ( - 76 ) col0
----
2595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT DISTINCT - 24 - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT - 24 - - CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT 8, ( - 76 ) AS col2
----
8
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8223
SELECT DISTINCT 25 * + + CAST( + - ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT 25 * + + CAST ( + - ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8224
SELECT + 39 DIV - COUNT( * ) + + + 58 * 8 * - 27 AS col2
----
-12567

skipif mysql # not compatible
query I rowsort label-8224
SELECT + 39 / - COUNT ( * ) + + + 58 * 8 * - 27 AS col2
----
-12567

query I rowsort
SELECT - ( - 88 ) * 25 + - 46 - + 11 AS col0
----
2143

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT - 42 + - MAX( + - 51 )
----
9

skipif mysql # not compatible
query I rowsort label-8226
SELECT - 42 + - MAX ( + - 51 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8227
SELECT + 51 * - 24 + + CAST( NULL AS SIGNED ) + - 86 + - SUM( - 34 ) + + ( 90 ) * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT + 51 * - 24 + + CAST ( NULL AS INTEGER ) + - 86 + - SUM ( - 34 ) + + ( 90 ) * - 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8228
SELECT COALESCE ( + 64, + NULLIF ( 42, - COUNT( * ) + - CASE - 59 WHEN CAST( NULL AS SIGNED ) + - ( - COUNT( * ) ) / + 3 THEN NULL ELSE 82 END + + 70 ) )
----
64

skipif mysql # not compatible
query I rowsort label-8228
SELECT COALESCE ( + 64, + NULLIF ( 42, - COUNT ( * ) + - CASE - 59 WHEN CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) ) / + 3 THEN NULL ELSE 82 END + + 70 ) )
----
64

query I rowsort
SELECT - ( - 57 ) * 70 * + - 90 AS col0
----
-359100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT CAST( NULL AS SIGNED ) / - - ( 13 ) + - + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT CAST ( NULL AS INTEGER ) / - - ( 13 ) + - + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT - COUNT( * ) * + 78 * - 8 * + 11
----
6864

skipif mysql # not compatible
query I rowsort label-8231
SELECT - COUNT ( * ) * + 78 * - 8 * + 11
----
6864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT - CAST( 3 AS SIGNED ) + + ( - 2 ) + MIN( ALL + 33 )
----
28

skipif mysql # not compatible
query I rowsort label-8232
SELECT - CAST ( 3 AS INTEGER ) + + ( - 2 ) + MIN ( ALL + 33 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT ALL + 20 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + 20 / + 47
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8234
SELECT ALL - COUNT( * ) * 36, + 59 AS col0
----
-36
59

skipif mysql # not compatible
query II rowsort label-8234
SELECT ALL - COUNT ( * ) * 36, + 59 AS col0
----
-36
59

query I rowsort
SELECT - 82 * - 71 col0
----
5822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8236
SELECT - 13 * - - CAST( 75 AS SIGNED ) * - + 48 - + + 12 + + CAST( - 64 AS SIGNED ) - 99 col2
----
46625

skipif mysql # not compatible
query I rowsort label-8236
SELECT - 13 * - - CAST ( 75 AS INTEGER ) * - + 48 - + + 12 + + CAST ( - 64 AS INTEGER ) - 99 col2
----
46625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT DISTINCT + 30 * - 37 / CASE 78 WHEN + + 69 + 98 + 0 * + ( + CASE - COUNT( * ) WHEN 35 + 64 THEN NULL ELSE COUNT( * ) END ) THEN NULL WHEN + CAST( NULL AS SIGNED ) + ( 93 ) THEN 46 / 74 WHEN + 24 THEN NULL ELSE NULL END * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT + 30 * - 37 / CASE 78 WHEN + + 69 + 98 + 0 * + ( + CASE - COUNT ( * ) WHEN 35 + 64 THEN NULL ELSE COUNT ( * ) END ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) + ( 93 ) THEN 46 / 74 WHEN + 24 THEN NULL ELSE NULL END * + 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8238
SELECT - 19 * + CASE 36 WHEN - + COUNT( * ) * + ( - 13 ) - + CAST( NULL AS SIGNED ) THEN NULL WHEN 10 * 56 THEN 57 ELSE NULL END * - CAST( + 67 * + 60 AS SIGNED ) + 36 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT - 19 * + CASE 36 WHEN - + COUNT ( * ) * + ( - 13 ) - + CAST ( NULL AS INTEGER ) THEN NULL WHEN 10 * 56 THEN 57 ELSE NULL END * - CAST ( + 67 * + 60 AS INTEGER ) + 36 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - COALESCE ( + 42, - - 27 / 57 ) + - + 47 / - CASE + 57 WHEN NULLIF ( 44, ( 75 ) / 62 ) THEN 37 WHEN + 8 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8240
SELECT - 46 * + COUNT( * ), ( + - 30 ) * + 40 * + - 80 * + COALESCE ( - CASE 20 WHEN + 88 THEN - 2 * 26 END, - CASE 57 WHEN - NULLIF ( - 74, CAST( NULL AS SIGNED ) + 74 ) * 51 + 66 * - COALESCE ( + 45 * 5 + 75, - 83 + - COUNT( * ) ) THEN + 97 * 66 END ) AS col0
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-8240
SELECT - 46 * + COUNT ( * ), ( + - 30 ) * + 40 * + - 80 * + COALESCE ( - CASE 20 WHEN + 88 THEN - 2 * 26 END, - CASE 57 WHEN - NULLIF ( - 74, CAST ( NULL AS INTEGER ) + 74 ) * 51 + 66 * - COALESCE ( + 45 * 5 + 75, - 83 + - COUNT ( * ) ) THEN + 97 * 66 END ) AS col0
----
-46
NULL

query I rowsort
SELECT - - 90 + - - 14 AS col0
----
104

query I rowsort
SELECT + - 85 - + 72 * + + 15 AS col0
----
-1165

query I rowsort
SELECT ALL + 20 * + 11 * - + 24 + + 99 + + 6 + - 94
----
-5269

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT - 71 * COUNT( * ) - + ( + NULLIF ( 93, - 11 ) ) * - 40 AS col1
----
3649

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT - 71 * COUNT ( * ) - + ( + NULLIF ( 93, - 11 ) ) * - 40 AS col1
----
3649

query I rowsort
SELECT DISTINCT - - 28 + + - 51
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT ALL + 44 * + + COUNT( * ) + - 10
----
34

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + 44 * + + COUNT ( * ) + - 10
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT ALL SUM( DISTINCT - 32 ) + - 30 + + 40
----
-22

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL SUM ( DISTINCT - 32 ) + - 30 + + 40
----
-22

query I rowsort
SELECT ALL - COALESCE ( + - 56, 3 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT - + COUNT( * ) + + + 69 + + + 68
----
136

skipif mysql # not compatible
query I rowsort label-8249
SELECT - + COUNT ( * ) + + + 69 + + + 68
----
136

query I rowsort
SELECT - 71 * + + 21 * + - 89 * + + 17 AS col0
----
2255883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8251
SELECT + - 83 * + - CAST( - 54 AS SIGNED )
----
-4482

skipif mysql # not compatible
query I rowsort label-8251
SELECT + - 83 * + - CAST ( - 54 AS INTEGER )
----
-4482

query I rowsort
SELECT ALL - 77 * - - 82
----
-6314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8253
SELECT + - CAST( + 25 AS SIGNED ) + - + COUNT( + 33 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8253
SELECT + - CAST ( + 25 AS INTEGER ) + - + COUNT ( + 33 ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT + + 66 / - NULLIF ( - - 42, + 30 * + 66 ) - + + CAST( NULL AS SIGNED ) + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT + + 66 / - NULLIF ( - - 42, + 30 * + 66 ) - + + CAST ( NULL AS INTEGER ) + 69
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8255
SELECT + + SUM( CAST( + 47 AS SIGNED ) ) + + 20 + 4 * - + CAST( NULL AS SIGNED ) + MAX( CASE - 55 WHEN 34 THEN 16 WHEN + 17 / 45 THEN NULL END ) * + 13 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT + + SUM ( CAST ( + 47 AS INTEGER ) ) + + 20 + 4 * - + CAST ( NULL AS INTEGER ) + MAX ( CASE - 55 WHEN 34 THEN 16 WHEN + 17 / 45 THEN NULL END ) * + 13 col2
----
NULL

query II rowsort
SELECT - 10 col1, - 89 AS col1
----
-10
-89

query I rowsort
SELECT ALL 32 - 12 * - 27 AS col1
----
356

query I rowsort
SELECT + - 22 * - 61 * 84 - + - 5
----
112733

query II rowsort
SELECT ALL + 30 AS col2, ( - 66 )
----
30
-66

query I rowsort
SELECT + 29 + + 70 AS col0
----
99

query I rowsort
SELECT ALL 99 - + 55
----
44

query I rowsort
SELECT + ( + + 86 ) + + 93 col2
----
179

query I rowsort
SELECT - ( - 74 ) AS col0
----
74

query I rowsort
SELECT ALL + 15 * + 82 AS col0
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ( - COALESCE ( + + COUNT( * ), 39 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8265
SELECT ( - COALESCE ( + + COUNT ( * ), 39 ) )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8266
SELECT + 46 DIV + 92, 17 AS col2
----
0
17

skipif mysql # not compatible
query II rowsort label-8266
SELECT + 46 / + 92, 17 AS col2
----
0
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8267
SELECT + MIN( + 64 ), + 58 - + + 93 AS col1
----
64
-35

skipif mysql # not compatible
query II rowsort label-8267
SELECT + MIN ( + 64 ), + 58 - + + 93 AS col1
----
64
-35

query I rowsort
SELECT ALL + - 79 * + 10 + + 49 + + + 25 AS col2
----
-716

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8269
SELECT ALL - - 1 / + 60 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - - 1 / + 60 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8270
SELECT ALL + 16 * + - 54 + + CAST( NULL AS DECIMAL ) * 88 + - 60 * 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL + 16 * + - 54 + + CAST ( NULL AS REAL ) * 88 + - 60 * 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8271
SELECT DISTINCT - 80 * + COUNT( * ) + + 85 + + 86 DIV - 48 - - 40 + + 60 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT - 80 * + COUNT ( * ) + + 85 + + 86 / - 48 - - 40 + + 60 AS col2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8272
SELECT DISTINCT + - ( + 6 ) * 92 * ( ( + 63 ) ) * - + 81 * + 69 + - 2 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT + - ( + 6 ) * 92 * ( ( + 63 ) ) * - + 81 * + 69 + - 2 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT ALL - + COUNT( * ) * ( 99 ) + - SUM( + 96 ) + - 2 + - 6 - + COUNT( * ) AS col2
----
-204

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL - + COUNT ( * ) * ( 99 ) + - SUM ( + 96 ) + - 2 + - 6 - + COUNT ( * ) AS col2
----
-204

onlyif mysql # aggregate syntax: 
query II rowsort label-8274
SELECT ALL + + COUNT( - 46 ) AS col2, + 97 * - - 71 AS col1
----
1
6887

skipif mysql # not compatible
query II rowsort label-8274
SELECT ALL + + COUNT ( - 46 ) AS col2, + 97 * - - 71 AS col1
----
1
6887

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT - CASE - 86 WHEN + + 49 * 70 THEN + + COUNT( * ) * 36 / - COUNT( DISTINCT 74 ) + ( 1 + ( + SUM( DISTINCT 61 ) ) * + 39 ) WHEN 28 THEN 25 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8275
SELECT - CASE - 86 WHEN + + 49 * 70 THEN + + COUNT ( * ) * 36 / - COUNT ( DISTINCT 74 ) + ( 1 + ( + SUM ( DISTINCT 61 ) ) * + 39 ) WHEN 28 THEN 25 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 7 + 68 col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8277
SELECT DISTINCT - - 8 - SUM( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) * 20 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT - - 8 - SUM ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) * 20 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL + MAX( ALL 44 ) * - - 69 + + - 88
----
2948

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL + MAX ( ALL 44 ) * - - 69 + + - 88
----
2948

query I rowsort
SELECT + CASE - 36 WHEN - + ( - - 92 ) THEN NULL WHEN - - 69 THEN + 62 - - + 5 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8280
SELECT 47 - + + COALESCE ( - 49, + 58 DIV 84 * + 52 * + CAST( NULL AS SIGNED ), 29 )
----
96

skipif mysql # not compatible
query I rowsort label-8280
SELECT 47 - + + COALESCE ( - 49, + 58 / 84 * + 52 * + CAST ( NULL AS INTEGER ), 29 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8281
SELECT DISTINCT - 38 * + 93, + ( - CAST( NULL AS SIGNED ) ) * 35 - - ( + - 44 ) AS col2
----
-3534
NULL

skipif mysql # not compatible
query II rowsort label-8281
SELECT DISTINCT - 38 * + 93, + ( - CAST ( NULL AS INTEGER ) ) * 35 - - ( + - 44 ) AS col2
----
-3534
NULL

query II rowsort
SELECT 58 * - 52 * + + 52 col2, 28 * - 8 + 4 - 30
----
-156832
-250

query I rowsort
SELECT 94 * 85 col2
----
7990

query I rowsort
SELECT ALL 37 * 80
----
2960

query II rowsort
SELECT DISTINCT 61, 87 * - 93 AS col0
----
61
-8091

query II rowsort
SELECT - 65 AS col0, 99
----
-65
99

query II rowsort
SELECT ALL 18, ( + 70 ) * + 61 AS col2
----
18
4270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8288
SELECT ALL - 20 * + COUNT( - 14 ) * MAX( 79 ) * COUNT( * ) + - + COUNT( * ) DIV 82
----
-1580

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL - 20 * + COUNT ( - 14 ) * MAX ( 79 ) * COUNT ( * ) + - + COUNT ( * ) / 82
----
-1580

query I rowsort
SELECT ALL 59 + - ( + + 81 ) + 88 * - + 23 + - 85 + - 30 * - + 27 * 32 * + 8 AS col0
----
205229

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT 9 * - + COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8290
SELECT 9 * - + COUNT ( * ) AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT DISTINCT 88 + - + CAST( 92 AS SIGNED ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT 88 + - + CAST ( 92 AS INTEGER ) col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8292
SELECT COUNT( * ) DIV - NULLIF ( + 99, - 15 * - 91 * + 8 + - 2 - + - ( - COUNT( 23 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8292
SELECT COUNT ( * ) / - NULLIF ( + 99, - 15 * - 91 * + 8 + - 2 - + - ( - COUNT ( 23 ) ) )
----
0

query I rowsort
SELECT ALL 23 + ( ( - 96 ) ) * + - 44 col0
----
4247

query I rowsort
SELECT 99 + + 4 AS col1
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT ALL CAST( NULL AS SIGNED ) * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL CAST ( NULL AS INTEGER ) * 49
----
NULL

query II rowsort
SELECT DISTINCT - 83 AS col1, + 57
----
-83
57

query I rowsort
SELECT ALL 87 + - 0
----
87

query I rowsort
SELECT DISTINCT - 35 + - 60 + 82 AS col0
----
-13

query I rowsort
SELECT ALL + + 3 + 6
----
9

query II rowsort
SELECT + 73 + 63 - - 36 AS col2, 44
----
172
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8301
SELECT ALL - 2 + - 11 DIV - 39 AS col1, - COUNT( * )
----
-2
-1

skipif mysql # not compatible
query II rowsort label-8301
SELECT ALL - 2 + - 11 / - 39 AS col1, - COUNT ( * )
----
-2
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT + COUNT( * ) * 83 * - ( - 12 ) - 79 + - 4
----
913

skipif mysql # not compatible
query I rowsort label-8302
SELECT + COUNT ( * ) * 83 * - ( - 12 ) - 79 + - 4
----
913

query II rowsort
SELECT ( - 83 ) * + + 24, - 40 AS col1
----
-1992
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8304
SELECT + 88 AS col2, COUNT( * ) * + 82 * 73 * ( + NULLIF ( - 95, + 14 ) ) AS col0
----
88
-568670

skipif mysql # not compatible
query II rowsort label-8304
SELECT + 88 AS col2, COUNT ( * ) * + 82 * 73 * ( + NULLIF ( - 95, + 14 ) ) AS col0
----
88
-568670

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT - CASE - ( + 90 ) WHEN + - COUNT( * ) + - + 34 + + ( + 26 ) + - 93 + + 73 * 10 THEN + 26 * 18 + 95 END - + COALESCE ( 62, - 57 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT - CASE - ( + 90 ) WHEN + - COUNT ( * ) + - + 34 + + ( + 26 ) + - 93 + + 73 * 10 THEN + 26 * 18 + 95 END - + COALESCE ( 62, - 57 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8306
SELECT ALL - COUNT( DISTINCT - COALESCE ( + 88, + 18 ) ) * - 51 DIV ( - 80 ) DIV 94 * + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL - COUNT ( DISTINCT - COALESCE ( + 88, + 18 ) ) * - 51 / ( - 80 ) / 94 * + 54 AS col1
----
0

query I rowsort
SELECT - 62 * + - 21
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL + - 85 * SUM( DISTINCT + 39 )
----
-3315

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL + - 85 * SUM ( DISTINCT + 39 )
----
-3315

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8309
SELECT DISTINCT 50 AS col1, 10 DIV COUNT( * )
----
50
10

skipif mysql # not compatible
query II rowsort label-8309
SELECT DISTINCT 50 AS col1, 10 / COUNT ( * )
----
50
10

query I rowsort
SELECT + 2 + 62 AS col1
----
64

query I rowsort
SELECT ALL + + 19 * - 53
----
-1007

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8312
SELECT ALL + CAST( NULL AS DECIMAL ) * ( 38 ), 77 AS col2
----
NULL
77

skipif mysql # not compatible
query II rowsort label-8312
SELECT ALL + CAST ( NULL AS REAL ) * ( 38 ), 77 AS col2
----
NULL
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8313
SELECT + 55 DIV COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-8313
SELECT + 55 / COUNT ( * )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT 93 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT 93 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT COUNT( * ) - + 34 + + 4 * + + CASE - 42 WHEN + 57 * 93 + - + 3 * + 26 THEN ( 72 ) * - 72 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT COUNT ( * ) - + 34 + + 4 * + + CASE - 42 WHEN + 57 * 93 + - + 3 * + 26 THEN ( 72 ) * - 72 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 74 + 90
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8317
SELECT 10 - CASE + 11 WHEN 87 * + - 29 + + + 74 + - ( - + 27 ) THEN - 6 WHEN + 95 THEN + 12 ELSE + 22 DIV CASE - 52 WHEN 51 + 79 THEN + CASE 55 WHEN + 77 THEN - 25 WHEN COALESCE ( + 68, - 92 * 53, 5 DIV - CAST( 91 * + 91 AS SIGNED ) + 19 ) THEN NULL ELSE + 56 + CASE 44 WHEN - 91 THEN - NULLIF ( - 98, - 56 * - 43 ) WHEN - 57 DIV CASE 95 WHEN - 76 THEN NULL ELSE + 52 * - COUNT( * ) END THEN NULL ELSE CAST( NULL AS SIGNED ) END END + CAST( NULL AS SIGNED ) ELSE COUNT( * ) + + 19 DIV NULLIF ( + 15, + 92 * 39 ) END END
----
-1

skipif mysql # not compatible
query I rowsort label-8317
SELECT 10 - CASE + 11 WHEN 87 * + - 29 + + + 74 + - ( - + 27 ) THEN - 6 WHEN + 95 THEN + 12 ELSE + 22 / CASE - 52 WHEN 51 + 79 THEN + CASE 55 WHEN + 77 THEN - 25 WHEN COALESCE ( + 68, - 92 * 53, 5 / - CAST ( 91 * + 91 AS INTEGER ) + 19 ) THEN NULL ELSE + 56 + CASE 44 WHEN - 91 THEN - NULLIF ( - 98, - 56 * - 43 ) WHEN - 57 / CASE 95 WHEN - 76 THEN NULL ELSE + 52 * - COUNT ( * ) END THEN NULL ELSE CAST ( NULL AS INTEGER ) END END + CAST ( NULL AS INTEGER ) ELSE COUNT ( * ) + + 19 / NULLIF ( + 15, + 92 * 39 ) END END
----
-1

query I rowsort
SELECT 90 + - ( + 12 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT 93 * + COUNT( ALL - 62 )
----
93

skipif mysql # not compatible
query I rowsort label-8319
SELECT 93 * + COUNT ( ALL - 62 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8320
SELECT ALL 83 + 65 * COALESCE ( - + 51, + 19 * COUNT( * ) DIV 4 + - - 80 - - 68 ) + + COALESCE ( + 86 - + COUNT( * ), 14, + ( MAX( + ( + 56 ) ) ) ) * 36
----
-172

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL 83 + 65 * COALESCE ( - + 51, + 19 * COUNT ( * ) / 4 + - - 80 - - 68 ) + + COALESCE ( + 86 - + COUNT ( * ), 14, + ( MAX ( + ( + 56 ) ) ) ) * 36
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT 0 + - COUNT( * ) * + - ( - COUNT( ALL - - 88 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8321
SELECT 0 + - COUNT ( * ) * + - ( - COUNT ( ALL - - 88 ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8322
SELECT ALL MAX( DISTINCT + 39 ) col0, COUNT( * ) AS col0
----
39
1

skipif mysql # not compatible
query II rowsort label-8322
SELECT ALL MAX ( DISTINCT + 39 ) col0, COUNT ( * ) AS col0
----
39
1

query I rowsort
SELECT ALL - 89 + - + 94 AS col1
----
-183

query I rowsort
SELECT ALL + 25 + + ( + 93 )
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8325
SELECT COUNT( * ) + 51 + - - COUNT( * ) + + NULLIF ( - 48, - + CAST( + - 21 AS SIGNED ) ) AS col0, + COUNT( * ) AS col0
----
5
1

skipif mysql # not compatible
query II rowsort label-8325
SELECT COUNT ( * ) + 51 + - - COUNT ( * ) + + NULLIF ( - 48, - + CAST ( + - 21 AS INTEGER ) ) AS col0, + COUNT ( * ) AS col0
----
5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL COUNT( * ) + - SUM( DISTINCT - 62 )
----
63

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL COUNT ( * ) + - SUM ( DISTINCT - 62 )
----
63

query I rowsort
SELECT DISTINCT - 80 * - - 52 AS col0
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL + 99 * 56 + - MAX( ALL + - COALESCE ( + 21, 33 ) ) AS col1
----
5565

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + 99 * 56 + - MAX ( ALL + - COALESCE ( + 21, 33 ) ) AS col1
----
5565

query I rowsort
SELECT DISTINCT 38 * - 93 * - + 34 * + 23 * - 12 + + - 80
----
-33163136

query II rowsort
SELECT ALL - - ( + + 39 ), - 35 * - - 40 AS col2
----
39
-1400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8331
SELECT + CAST( 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-8331
SELECT + CAST ( 80 AS INTEGER )
----
80

query I rowsort
SELECT - ( - - 3 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT - MIN( + 45 ) * - 6
----
270

skipif mysql # not compatible
query I rowsort label-8333
SELECT - MIN ( + 45 ) * - 6
----
270

query II rowsort
SELECT + ( - 69 ) * - 58 * + 83 AS col2, 38 + - 13 AS col2
----
332166
25

query I rowsort
SELECT + 93 * + + 81 - 76 * + + 73
----
1985

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT + MIN( 81 )
----
81

skipif mysql # not compatible
query I rowsort label-8336
SELECT + MIN ( 81 )
----
81

query I rowsort
SELECT ALL + ( + 58 ) col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT + - COALESCE ( + + COUNT( * ), + + 19 ) * + - COALESCE ( - ( + CASE - - 71 WHEN + MIN( DISTINCT 71 ) + 78 * 38 THEN NULL WHEN - NULLIF ( - SUM( DISTINCT + 48 ), 81 ) + - 42 * - 37 THEN NULL ELSE 79 END ), - ( 91 ) * + COUNT( * ) ) * - 60 AS col2
----
4740

skipif mysql # not compatible
query I rowsort label-8338
SELECT + - COALESCE ( + + COUNT ( * ), + + 19 ) * + - COALESCE ( - ( + CASE - - 71 WHEN + MIN ( DISTINCT 71 ) + 78 * 38 THEN NULL WHEN - NULLIF ( - SUM ( DISTINCT + 48 ), 81 ) + - 42 * - 37 THEN NULL ELSE 79 END ), - ( 91 ) * + COUNT ( * ) ) * - 60 AS col2
----
4740

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT ALL + COUNT( ALL - + 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL + COUNT ( ALL - + 1 ) AS col2
----
1

query II rowsort
SELECT ALL + + ( - 63 ), - 23 + 95 + 61 + - - 98 + + 73 AS col2
----
-63
304

query I rowsort
SELECT + COALESCE ( 20, - 97 - - 79 - 99 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL CASE - SUM( DISTINCT 15 ) WHEN + + 63 / - 19 - - - 99 THEN COUNT( * ) / 59 * - 57 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL CASE - SUM ( DISTINCT 15 ) WHEN + + 63 / - 19 - - - 99 THEN COUNT ( * ) / 59 * - 57 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 74 + - 63
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT ALL - 20 + + + 98 * COALESCE ( + 70, + 41, + SUM( + - 11 ) * 19 + 76 + 55 + 28 + - 96 ) AS col0
----
6840

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL - 20 + + + 98 * COALESCE ( + 70, + 41, + SUM ( + - 11 ) * 19 + 76 + 55 + 28 + - 96 ) AS col0
----
6840

query II rowsort
SELECT 1 col0, + 34 AS col0
----
1
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8346
SELECT DISTINCT 95 + MAX( 32 ) + - NULLIF ( 40, + 46 ), + 21 * + 38 AS col2
----
87
798

skipif mysql # not compatible
query II rowsort label-8346
SELECT DISTINCT 95 + MAX ( 32 ) + - NULLIF ( 40, + 46 ), + 21 * + 38 AS col2
----
87
798

query I rowsort
SELECT DISTINCT + 47 * + 29
----
1363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8348
SELECT DISTINCT COUNT( * ) + + - 90 * 59 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT DISTINCT COUNT ( * ) + + - 90 * 59 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8349
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) + - - 64 AS col2, + ( + 21 ) AS col2
----
NULL
21

skipif mysql # not compatible
query II rowsort label-8349
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) + - - 64 AS col2, + ( + 21 ) AS col2
----
NULL
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8350
SELECT + ( + - NULLIF ( - MAX( ALL - - CAST( - 64 AS SIGNED ) ), 0 ) ) - + NULLIF ( - 55, - 69 ) * - - COUNT( DISTINCT - 27 ) * - 99
----
-5509

skipif mysql # not compatible
query I rowsort label-8350
SELECT + ( + - NULLIF ( - MAX ( ALL - - CAST ( - 64 AS INTEGER ) ), 0 ) ) - + NULLIF ( - 55, - 69 ) * - - COUNT ( DISTINCT - 27 ) * - 99
----
-5509

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT - COUNT( * ) - - - 1 + - 0 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8351
SELECT - COUNT ( * ) - - - 1 + - 0 AS col2
----
-2

query I rowsort
SELECT DISTINCT COALESCE ( - 85, 17 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL CASE 71 WHEN + 38 THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL CASE 71 WHEN + 38 THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL ( + + 24 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8355
SELECT ALL - CAST( - 26 AS SIGNED ) + + 43 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL - CAST ( - 26 AS INTEGER ) + + 43 AS col1
----
69

query I rowsort
SELECT - 0 - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT - MIN( 36 ) - 12
----
-48

skipif mysql # not compatible
query I rowsort label-8357
SELECT - MIN ( 36 ) - 12
----
-48

query II rowsort
SELECT DISTINCT 98, 90 AS col1
----
98
90

query I rowsort
SELECT ALL 64 * 76 * - 18 AS col0
----
-87552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8360
SELECT + + 45 DIV - 94 + + + CAST( + 45 AS SIGNED ) + + 54 + - COUNT( * ) * 7 DIV + - ( 18 ) - - 76
----
175

skipif mysql # not compatible
query I rowsort label-8360
SELECT + + 45 / - 94 + + + CAST ( + 45 AS INTEGER ) + + 54 + - COUNT ( * ) * 7 / + - ( 18 ) - - 76
----
175

query I rowsort
SELECT - + 88 * - 78 * + 81 * + 84 - + + 6 + - + 83
----
46702567

onlyif mysql # aggregate syntax: 
query II rowsort label-8362
SELECT + 35 * - 82 * + ( - - 46 ) + 9 * ( + - 16 ) * 23, + ( - COUNT( * ) ) AS col2
----
-135332
-1

skipif mysql # not compatible
query II rowsort label-8362
SELECT + 35 * - 82 * + ( - - 46 ) + 9 * ( + - 16 ) * 23, + ( - COUNT ( * ) ) AS col2
----
-135332
-1

query I rowsort
SELECT + - 25 - 91 + - 46
----
-162

query I rowsort
SELECT ALL + + 39 * + 3
----
117

query I rowsort
SELECT ALL + - 14 * + 58 AS col2
----
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + 57 + + 81 - ( - MIN( DISTINCT + 46 ) ) AS col2
----
184

skipif mysql # not compatible
query I rowsort label-8366
SELECT + 57 + + 81 - ( - MIN ( DISTINCT + 46 ) ) AS col2
----
184

query I rowsort
SELECT DISTINCT + CASE - 69 WHEN + 76 * - - 43 THEN + + 64 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT DISTINCT + + NULLIF ( - - COUNT( * ), - CAST( 23 AS SIGNED ) / - + 31 * - + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT + + NULLIF ( - - COUNT ( * ), - CAST ( 23 AS INTEGER ) / - + 31 * - + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8369
SELECT - COUNT( * ) DIV - - 68 + - COUNT( * ) + + + 61
----
60

skipif mysql # not compatible
query I rowsort label-8369
SELECT - COUNT ( * ) / - - 68 + - COUNT ( * ) + + + 61
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8370
SELECT ALL - 67 DIV 78 + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL - 67 / 78 + COUNT ( * ) col1
----
1

query II rowsort
SELECT ALL + 43 AS col1, + 91 * - 17 AS col1
----
43
-1547

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT - COUNT( * ) * 70 + + 38 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8372
SELECT - COUNT ( * ) * 70 + + 38 AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8373
SELECT - + 29 * + CAST( MAX( 25 ) AS SIGNED ) AS col1
----
-725

skipif mysql # not compatible
query I rowsort label-8373
SELECT - + 29 * + CAST ( MAX ( 25 ) AS INTEGER ) AS col1
----
-725

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL - 18 * 44 * + + COUNT( * ) col1
----
-792

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL - 18 * 44 * + + COUNT ( * ) col1
----
-792

query I rowsort
SELECT + + 48 + - + 54 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT DISTINCT - + 84 * - + 79 + - + 19 + + MAX( - 40 )
----
6577

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT - + 84 * - + 79 + - + 19 + + MAX ( - 40 )
----
6577

query II rowsort
SELECT ALL + 29 AS col1, 11
----
29
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8378
SELECT 88 * COUNT( * ) * + - 64 + 18 - + + 29 DIV 3
----
-5623

skipif mysql # not compatible
query I rowsort label-8378
SELECT 88 * COUNT ( * ) * + - 64 + 18 - + + 29 / 3
----
-5623

query I rowsort
SELECT ALL 54 * - 96 * 52 AS col0
----
-269568

query I rowsort
SELECT + 66 * - 61
----
-4026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8381
SELECT - COALESCE ( + 61, 55 + - + 47, - 17 + + CAST( + 28 AS SIGNED ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-8381
SELECT - COALESCE ( + 61, 55 + - + 47, - 17 + + CAST ( + 28 AS INTEGER ) ) AS col1
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8382
SELECT - 36 - - 18 DIV - NULLIF ( + 31, + 24 + 72 + COUNT( * ) + 53 + 0 * + COUNT( * ) * 54 ) * 96
----
-36

skipif mysql # not compatible
query I rowsort label-8382
SELECT - 36 - - 18 / - NULLIF ( + 31, + 24 + 72 + COUNT ( * ) + 53 + 0 * + COUNT ( * ) * 54 ) * 96
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT SUM( - 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT SUM ( - 69 ) AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT + 6 + - + 49 + - CAST( NULL AS SIGNED ) * + 4 * - 66 * + + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8384
SELECT + 6 + - + 49 + - CAST ( NULL AS INTEGER ) * + 4 * - 66 * + + 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT - 12 - - + COALESCE ( + + 95, - + ( - - 51 ), + ( - COUNT( * ) ), - 21 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8385
SELECT - 12 - - + COALESCE ( + + 95, - + ( - - 51 ), + ( - COUNT ( * ) ), - 21 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT - SUM( ALL + 68 ) * 21
----
-1428

skipif mysql # not compatible
query I rowsort label-8386
SELECT - SUM ( ALL + 68 ) * 21
----
-1428

query II rowsort
SELECT 87 AS col2, 97 + - 58 AS col0
----
87
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT ALL + CAST( NULL AS SIGNED ) - + - 96 + + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL + CAST ( NULL AS INTEGER ) - + - 96 + + - 62
----
NULL

query I rowsort
SELECT + 0 + - 87 + + 54
----
-33

query I rowsort
SELECT DISTINCT COALESCE ( 70, 1 * 35 + + 27 ) / - + CASE + ( 21 ) WHEN + 4 THEN + 45 * + 27 WHEN + 45 THEN NULL ELSE NULL END / 50 + - 57 * - 39 AS col0
----
NULL

query I rowsort
SELECT - 76 + + 63
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT - 53 * - - CASE - MAX( ALL + 5 ) WHEN + 23 THEN - AVG ( ALL 16 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT - 53 * - - CASE - MAX ( ALL + 5 ) WHEN + 23 THEN - AVG ( ALL 16 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8393
SELECT - SUM( + 52 ) + CAST( + COUNT( * ) AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-8393
SELECT - SUM ( + 52 ) + CAST ( + COUNT ( * ) AS INTEGER )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8394
SELECT - 28 + ( - 71 ) * + CASE - CASE - - 48 WHEN + 85 * - 63 - - 76 + CASE - SUM( ALL 56 ) WHEN + CAST( 82 AS SIGNED ) * CAST( NULL AS DECIMAL ) THEN 38 - - 88 ELSE - 62 END + ( + 2 + 77 / + 86 ) * + 78 * 70 THEN - COUNT( + 16 ) * 10 + + ( - 84 ) END WHEN - 5 THEN NULL WHEN 50 / 63 + + CAST( NULL AS SIGNED ) * AVG ( ( 33 ) ) THEN - 45 + + 1 ELSE 33 END AS col0
----
-2371

skipif mysql # not compatible
query I rowsort label-8394
SELECT - 28 + ( - 71 ) * + CASE - CASE - - 48 WHEN + 85 * - 63 - - 76 + CASE - SUM ( ALL 56 ) WHEN + CAST ( 82 AS INTEGER ) * CAST ( NULL AS REAL ) THEN 38 - - 88 ELSE - 62 END + ( + 2 + 77 / + 86 ) * + 78 * 70 THEN - COUNT ( + 16 ) * 10 + + ( - 84 ) END WHEN - 5 THEN NULL WHEN 50 / 63 + + CAST ( NULL AS INTEGER ) * AVG ( ( 33 ) ) THEN - 45 + + 1 ELSE 33 END AS col0
----
-2371

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8395
SELECT ALL - SUM( + 29 ) * + 54 + + 11 * - 99 + + 1 DIV - 31 AS col1
----
-2655

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL - SUM ( + 29 ) * + 54 + + 11 * - 99 + + 1 / - 31 AS col1
----
-2655

query I rowsort
SELECT NULLIF ( + 36, - 57 ) * + 46 * 20 * - 50
----
-1656000

query I rowsort
SELECT 60 * 99
----
5940

query I rowsort
SELECT 50 + + 56 AS col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8399
SELECT DISTINCT - COALESCE ( CAST( - - 45 AS SIGNED ), - SUM( - - 71 ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT - COALESCE ( CAST ( - - 45 AS INTEGER ), - SUM ( - - 71 ) ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT + COUNT( + 66 )
----
1

skipif mysql # not compatible
query I rowsort label-8400
SELECT + COUNT ( + 66 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8401
SELECT DISTINCT - 58 AS col1, + COUNT( - 28 )
----
-58
1

skipif mysql # not compatible
query II rowsort label-8401
SELECT DISTINCT - 58 AS col1, + COUNT ( - 28 )
----
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL - - SUM( ALL + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL - - SUM ( ALL + 55 )
----
55

query II rowsort
SELECT + + 76, + 5 + - 57 AS col0
----
76
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL + CASE + - 26 WHEN - - 6 THEN - 64 * - - 51 WHEN - 57 THEN - SUM( - 55 ) + + 55 + + + 76 END * - 84 + + COUNT( * ) * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL + CASE + - 26 WHEN - - 6 THEN - 64 * - - 51 WHEN - 57 THEN - SUM ( - 55 ) + + 55 + + + 76 END * - 84 + + COUNT ( * ) * 4
----
NULL

query II rowsort
SELECT DISTINCT - 50, ( + 4 ) col0
----
-50
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8406
SELECT 66 AS col0, COUNT( * )
----
66
1

skipif mysql # not compatible
query II rowsort label-8406
SELECT 66 AS col0, COUNT ( * )
----
66
1

query I rowsort
SELECT ALL + - 12 + + + 32 + + 15 AS col2
----
35

query I rowsort
SELECT + - 26 * - 9 - - 48
----
282

query I rowsort
SELECT ALL + 22 * - - 14 + - 65
----
243

query II rowsort
SELECT ALL - 88 AS col0, - 43 AS col0
----
-88
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-8411
SELECT + 36 AS col0, + 18 + + 83 DIV 22
----
36
21

skipif mysql # not compatible
query II rowsort label-8411
SELECT + 36 AS col0, + 18 + + 83 / 22
----
36
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT DISTINCT MIN( ALL 85 ) + + 62 * + 78
----
4921

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT MIN ( ALL 85 ) + + 62 * + 78
----
4921

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL ( - - MIN( + + 29 ) ) + + + 79 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL ( - - MIN ( + + 29 ) ) + + + 79 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL - MAX( ALL + + ( + 96 ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - MAX ( ALL + + ( + 96 ) ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT DISTINCT - 28 + - CASE + 83 WHEN + + ( + 21 ) * - ( - + 58 ) * - - 94 * - + 14 - + - COUNT( * ) THEN + 11 + + 17 * - ( - 84 * - COUNT( * ) ) END - + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT - 28 + - CASE + 83 WHEN + + ( + 21 ) * - ( - + 58 ) * - - 94 * - + 14 - + - COUNT ( * ) THEN + 11 + + 17 * - ( - 84 * - COUNT ( * ) ) END - + 69 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT ALL + 6 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL + 6 / 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT DISTINCT - COUNT( ALL - 3 ) + - 22 + - 44
----
-67

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT - COUNT ( ALL - 3 ) + - 22 + - 44
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL + 2 + + COUNT( * ) * + - 3 + 36 * - + 71 + + + 56 AS col0
----
-2501

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL + 2 + + COUNT ( * ) * + - 3 + 36 * - + 71 + + + 56 AS col0
----
-2501

onlyif mysql # aggregate syntax: 
query II rowsort label-8419
SELECT 93 * 96, COUNT( DISTINCT + 26 ) AS col2
----
8928
1

skipif mysql # not compatible
query II rowsort label-8419
SELECT 93 * 96, COUNT ( DISTINCT + 26 ) AS col2
----
8928
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8420
SELECT 29 * 47 DIV MIN( DISTINCT - + 85 ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-8420
SELECT 29 * 47 / MIN ( DISTINCT - + 85 ) col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT ALL 24 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL 24 / 23
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT DISTINCT 59 * 15 DIV 93 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT 59 * 15 / 93 AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT ALL CAST( + 92 AS SIGNED ) - CAST( NULL AS SIGNED ) + + COUNT( * ) * - 96 * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL CAST ( + 92 AS INTEGER ) - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 96 * 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL + MAX( DISTINCT + - COALESCE ( + 81, - 18, + + 24 ) ) * - MAX( DISTINCT - 34 )
----
-2754

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL + MAX ( DISTINCT + - COALESCE ( + 81, - 18, + + 24 ) ) * - MAX ( DISTINCT - 34 )
----
-2754

query II rowsort
SELECT DISTINCT ( + 2 ) * + 80 col0, COALESCE ( - - 64, + 56 ) - - 93 AS col2
----
160
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8426
SELECT 15 - - 66 * - COUNT( * ) * + 35 + - + 76 + + + CAST( 97 AS SIGNED ) AS col2
----
-2274

skipif mysql # not compatible
query I rowsort label-8426
SELECT 15 - - 66 * - COUNT ( * ) * + 35 + - + 76 + + + CAST ( 97 AS INTEGER ) AS col2
----
-2274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8427
SELECT COUNT( * ) + - 15 + 13, - CASE + COUNT( * ) WHEN + 49 * - - 72 - CASE 38 WHEN + 25 + + + 63 - - 70 + + CAST( + 89 AS SIGNED ) THEN - 12 * COUNT( * ) WHEN 27 THEN NULL WHEN 98 THEN 26 ELSE - 51 * - MAX( DISTINCT 78 ) END * + 5 THEN - 16 + + CAST( - 0 AS SIGNED ) END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8427
SELECT COUNT ( * ) + - 15 + 13, - CASE + COUNT ( * ) WHEN + 49 * - - 72 - CASE 38 WHEN + 25 + + + 63 - - 70 + + CAST ( + 89 AS INTEGER ) THEN - 12 * COUNT ( * ) WHEN 27 THEN NULL WHEN 98 THEN 26 ELSE - 51 * - MAX ( DISTINCT 78 ) END * + 5 THEN - 16 + + CAST ( - 0 AS INTEGER ) END AS col1
----
-1
NULL

query II rowsort
SELECT 72 * - + 11 col1, 46
----
-792
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8429
SELECT + 99 DIV - + ( - COUNT( * ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8429
SELECT + 99 / - + ( - COUNT ( * ) ) AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT + CAST( NULL AS SIGNED ) - + - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT + CAST ( NULL AS INTEGER ) - + - 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8431
SELECT ALL + ( + 67 ) AS col2, + COALESCE ( CASE - ( + AVG ( 67 ) ) WHEN - - 15 * 24 DIV - ( + COUNT( DISTINCT 32 ) ) + + 15 THEN - 5 WHEN COALESCE ( - 97, 6 * 96 + 80 ) THEN NULL END, ( 40 ), - 74 DIV 25 ) AS col1
----
67
40

skipif mysql # not compatible
query II rowsort label-8431
SELECT ALL + ( + 67 ) AS col2, + COALESCE ( CASE - ( + AVG ( 67 ) ) WHEN - - 15 * 24 / - ( + COUNT ( DISTINCT 32 ) ) + + 15 THEN - 5 WHEN COALESCE ( - 97, 6 * 96 + 80 ) THEN NULL END, ( 40 ), - 74 / 25 ) AS col1
----
67
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT ALL 86 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL 86 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL - - 39 * - MAX( + 94 ) * + 33
----
-120978

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL - - 39 * - MAX ( + 94 ) * + 33
----
-120978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8434
SELECT + CAST( NULL AS SIGNED ) - 64 + COALESCE ( + 10, - COUNT( * ), - 89 * - 62 + + 70 - + ( + + MAX( 91 ) ) ) + + 69 * + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT + CAST ( NULL AS INTEGER ) - 64 + COALESCE ( + 10, - COUNT ( * ), - 89 * - 62 + + 70 - + ( + + MAX ( 91 ) ) ) + + 69 * + 64 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 13 * + - CASE 60 WHEN 3 THEN NULL WHEN 57 THEN NULL ELSE 56 END col0
----
-728

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8436
SELECT 93 DIV + CAST( - 65 AS SIGNED ) + - + 7 * + 17 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-8436
SELECT 93 / + CAST ( - 65 AS INTEGER ) + - + 7 * + 17 AS col0
----
-120

query I rowsort
SELECT 37 * + 30 * 64 - + 19
----
71021

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ( + COUNT( * ) ) + 81 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8438
SELECT ( + COUNT ( * ) ) + 81 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ( + ( + - 8 ) ) * + COUNT( * ) - + 81 col0
----
-89

skipif mysql # not compatible
query I rowsort label-8439
SELECT ( + ( + - 8 ) ) * + COUNT ( * ) - + 81 col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8440
SELECT + - ( - 83 ) * CASE 16 WHEN + 94 THEN + - SUM( ALL - 42 ) * COUNT( * ) DIV + ( COUNT( * ) ) ELSE - NULLIF ( - 56, 19 + - 8 ) END + - 56 + 3 * + 42 AS col2
----
4718

skipif mysql # not compatible
query I rowsort label-8440
SELECT + - ( - 83 ) * CASE 16 WHEN + 94 THEN + - SUM ( ALL - 42 ) * COUNT ( * ) / + ( COUNT ( * ) ) ELSE - NULLIF ( - 56, 19 + - 8 ) END + - 56 + 3 * + 42 AS col2
----
4718

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8441
SELECT 13 - COUNT( * ) * - COALESCE ( 13, - 33 * - 37 * - - 64 * - 59 DIV + + 79 * + + COUNT( * ) + - - 27 ) col2
----
26

skipif mysql # not compatible
query I rowsort label-8441
SELECT 13 - COUNT ( * ) * - COALESCE ( 13, - 33 * - 37 * - - 64 * - 59 / + + 79 * + + COUNT ( * ) + - - 27 ) col2
----
26

query I rowsort
SELECT - 89 * - 98 * + + 91 + - 68 AS col0
----
793634

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT DISTINCT + ( - COUNT( ALL + 63 ) ) * - 73
----
73

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT + ( - COUNT ( ALL + 63 ) ) * - 73
----
73

query I rowsort
SELECT 62 + 0
----
62

query I rowsort
SELECT ALL - + CASE 79 WHEN + ( + - 53 ) + - 32 THEN ( 71 ) WHEN - - NULLIF ( - - 46, + ( 30 ) + NULLIF ( + 12, + 41 * + 59 + 79 ) ) THEN NULL WHEN + 59 THEN NULL ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT DISTINCT + + 42 + + 43 AS col2, + 21 * 93
----
85
1953

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT ( - COUNT( * ) ) * - - 74 + - 18
----
-92

skipif mysql # not compatible
query I rowsort label-8447
SELECT ( - COUNT ( * ) ) * - - 74 + - 18
----
-92

query II rowsort
SELECT ALL - - 92 + + - 38 AS col2, 13 AS col0
----
54
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8449
SELECT + SUM( + + 92 ), + 97 * 60 AS col0
----
92
5820

skipif mysql # not compatible
query II rowsort label-8449
SELECT + SUM ( + + 92 ), + 97 * 60 AS col0
----
92
5820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8450
SELECT ALL - CASE - + COUNT( - 55 ) WHEN + - 49 / + MIN( DISTINCT + 41 ) THEN NULL ELSE CAST( NULL AS SIGNED ) * 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL - CASE - + COUNT ( - 55 ) WHEN + - 49 / + MIN ( DISTINCT + 41 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) * 19 END
----
NULL

query I rowsort
SELECT 3 * - 69 AS col0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT DISTINCT - CASE 85 WHEN ( + - 13 ) THEN NULL ELSE MIN( + 59 ) END AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT - CASE 85 WHEN ( + - 13 ) THEN NULL ELSE MIN ( + 59 ) END AS col1
----
-59

query I rowsort
SELECT DISTINCT - 25 - + - 20 + + - 61 * - + 12 * - 25 + 53 AS col1
----
-18252

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT - 53 * - COUNT( * ) * - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT - 53 * - COUNT ( * ) * - COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT 28 * + 11 * + + MIN( + - 93 ) AS col1
----
-28644

skipif mysql # not compatible
query I rowsort label-8455
SELECT 28 * + 11 * + + MIN ( + - 93 ) AS col1
----
-28644

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT - CASE 87 WHEN 28 * + 40 THEN COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT - CASE 87 WHEN 28 * + 40 THEN COUNT ( * ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT COUNT( * ) + + 78 + - 61 * + COALESCE ( 97, - - MIN( ALL - - 92 ) )
----
-5838

skipif mysql # not compatible
query I rowsort label-8457
SELECT COUNT ( * ) + + 78 + - 61 * + COALESCE ( 97, - - MIN ( ALL - - 92 ) )
----
-5838

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT ALL SUM( DISTINCT - - 8 ) col1
----
8

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL SUM ( DISTINCT - - 8 ) col1
----
8

query I rowsort
SELECT - 23 * + 14
----
-322

query I rowsort
SELECT + 29 * - 82 col2
----
-2378

query I rowsort
SELECT - 41 + + - 4
----
-45

query I rowsort
SELECT - 99 * 20
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT - SUM( - 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8463
SELECT - SUM ( - 43 ) AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8464
SELECT ALL CASE - 62 WHEN + CASE COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN + 98 + - + 0 + - ( - 94 ) - + + CAST( NULL AS SIGNED ) * - 6 + + 29 * - 73 - 44 THEN 21 * - 7 ELSE NULL END THEN + 98 + 30 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL CASE - 62 WHEN + CASE COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN + 98 + - + 0 + - ( - 94 ) - + + CAST ( NULL AS INTEGER ) * - 6 + + 29 * - 73 - 44 THEN 21 * - 7 ELSE NULL END THEN + 98 + 30 END AS col1
----
NULL

query I rowsort
SELECT - 34 * 17 + + 74
----
-504

query I rowsort
SELECT - 93 + + - 53 col1
----
-146

query I rowsort
SELECT ALL 5 * + 59 col2
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT ALL 63 * COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL 63 * COUNT ( * ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT - 69 * - - COUNT( * ) * 53
----
-3657

skipif mysql # not compatible
query I rowsort label-8469
SELECT - 69 * - - COUNT ( * ) * 53
----
-3657

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL - ( COUNT( * ) ) + COUNT( ALL - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL - ( COUNT ( * ) ) + COUNT ( ALL - 39 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT DISTINCT COUNT( * ) * 16 + + 94 + 57 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT COUNT ( * ) * 16 + + 94 + 57 AS col1
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8472
SELECT + + 51 + - + CASE + - 48 WHEN 22 * + + CASE 72 WHEN + 24 THEN + + 85 + 95 * - COUNT( * ) + + - 94 + - 91 * - 92 + 65 WHEN + CAST( NULL AS SIGNED ) + - 98 THEN NULL WHEN - 11 THEN - 23 ELSE NULL END + 21 THEN 92 ELSE + MAX( ALL 1 ) * + COUNT( * ) END + COUNT( ALL + 1 )
----
51

skipif mysql # not compatible
query I rowsort label-8472
SELECT + + 51 + - + CASE + - 48 WHEN 22 * + + CASE 72 WHEN + 24 THEN + + 85 + 95 * - COUNT ( * ) + + - 94 + - 91 * - 92 + 65 WHEN + CAST ( NULL AS INTEGER ) + - 98 THEN NULL WHEN - 11 THEN - 23 ELSE NULL END + 21 THEN 92 ELSE + MAX ( ALL 1 ) * + COUNT ( * ) END + COUNT ( ALL + 1 )
----
51

query I rowsort
SELECT + - 77 + - - 47
----
-30

query II rowsort
SELECT - 80 AS col1, 95 - - + 76
----
-80
171

query II rowsort
SELECT - 25, 86 AS col2
----
-25
86

query I rowsort
SELECT + 90 * - 66
----
-5940

query II rowsort
SELECT + ( + 46 ) + + + 7, + 48 AS col1
----
53
48

query I rowsort
SELECT DISTINCT - 88 + - + 79
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT ALL - COUNT( * ) + + 5
----
4

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL - COUNT ( * ) + + 5
----
4

query II rowsort
SELECT ALL 59 AS col0, 57 col0
----
59
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL 65 * NULLIF ( - MAX( DISTINCT + 31 ), ( + COUNT( * ) ) ) AS col1
----
-2015

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL 65 * NULLIF ( - MAX ( DISTINCT + 31 ), ( + COUNT ( * ) ) ) AS col1
----
-2015

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT ALL - + COUNT( * ) * - 15 + - 41 + - 40 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL - + COUNT ( * ) * - 15 + - 41 + - 40 AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8483
SELECT ALL - CASE + CAST( - 28 AS SIGNED ) WHEN CASE 26 WHEN + 29 THEN + 14 WHEN - 11 - + ( + - 76 ) + + + 76 THEN + 18 END THEN NULL WHEN CASE CASE 3 WHEN 46 * + 50 + - 59 * 98 THEN NULL WHEN 99 THEN 30 + + 58 END WHEN + 71 * - COALESCE ( + MAX( - 15 ), - 66, MAX( ALL - 18 ) + - 71 * + 37, + 17 ) THEN 85 WHEN ( + 2 ) THEN 96 WHEN - 76 + - 92 THEN - 87 WHEN + ( - 98 ) THEN NULL END * - 86 THEN + COALESCE ( + ( 96 ), - 81 * 18 ) ELSE + 82 - + CAST( ( - 39 ) AS SIGNED ) END * 73 - + 23
----
-8856

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - CASE + CAST ( - 28 AS INTEGER ) WHEN CASE 26 WHEN + 29 THEN + 14 WHEN - 11 - + ( + - 76 ) + + + 76 THEN + 18 END THEN NULL WHEN CASE CASE 3 WHEN 46 * + 50 + - 59 * 98 THEN NULL WHEN 99 THEN 30 + + 58 END WHEN + 71 * - COALESCE ( + MAX ( - 15 ), - 66, MAX ( ALL - 18 ) + - 71 * + 37, + 17 ) THEN 85 WHEN ( + 2 ) THEN 96 WHEN - 76 + - 92 THEN - 87 WHEN + ( - 98 ) THEN NULL END * - 86 THEN + COALESCE ( + ( 96 ), - 81 * 18 ) ELSE + 82 - + CAST ( ( - 39 ) AS INTEGER ) END * 73 - + 23
----
-8856

query I rowsort
SELECT + 92 * - 35 - + 13
----
-3233

query I rowsort
SELECT - 62 * - + 34
----
2108

query I rowsort
SELECT ALL 32 * - - 9 + - 79 + + COALESCE ( + 42, - 34, - + 13 * 57 * - 47 )
----
251

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8487
SELECT + 57 * + + 1 - CAST( NULL AS DECIMAL ), - 22 AS col0
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-8487
SELECT + 57 * + + 1 - CAST ( NULL AS REAL ), - 22 AS col0
----
NULL
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL + COUNT( * ) * 87 + 31 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL + COUNT ( * ) * 87 + 31 AS col1
----
118

query I rowsort
SELECT CASE 91 WHEN ( + 43 ) + - 68 THEN - 95 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8490
SELECT - ( + + COUNT( * ) ) DIV NULLIF ( NULLIF ( 60, COUNT( - 35 ) ), - ( + 63 ) ) * + 70 * - - COUNT( * ) - - - 84 + - - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-8490
SELECT - ( + + COUNT ( * ) ) / NULLIF ( NULLIF ( 60, COUNT ( - 35 ) ), - ( + 63 ) ) * + 70 * - - COUNT ( * ) - - - 84 + - - COUNT ( * )
----
-83

query I rowsort
SELECT - 13 + - 65
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT CASE 40 WHEN + 7 THEN + COUNT( * ) + + - MIN( - 37 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT CASE 40 WHEN + 7 THEN + COUNT ( * ) + + - MIN ( - 37 ) END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8493
SELECT COALESCE ( + - 47, + 61 * + - 66 DIV - - ( 71 ) * 61 - 49 )
----
-47

skipif mysql # not compatible
query I rowsort label-8493
SELECT COALESCE ( + - 47, + 61 * + - 66 / - - ( 71 ) * 61 - 49 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT - 77 + + + 27 + - SUM( 56 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT - 77 + + + 27 + - SUM ( 56 ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT DISTINCT + COUNT( ALL - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT + COUNT ( ALL - 60 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT CASE - ( - - 94 ) WHEN COUNT( + 95 ) THEN + 49 * + - 87 WHEN - 62 * + 0 - + 17 * + 62 THEN - 81 ELSE + 79 * - COUNT( * ) + 52 END AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8496
SELECT CASE - ( - - 94 ) WHEN COUNT ( + 95 ) THEN + 49 * + - 87 WHEN - 62 * + 0 - + 17 * + 62 THEN - 81 ELSE + 79 * - COUNT ( * ) + 52 END AS col2
----
-27

query I rowsort
SELECT ALL + CASE + 91 WHEN 8 THEN + 53 * 94 + - 59 END
----
NULL

query I rowsort
SELECT - 6 * 32 AS col0
----
-192

query I rowsort
SELECT ALL - 4 * - 78
----
312

query I rowsort
SELECT - 17 * + + 8
----
-136

query I rowsort
SELECT - 23 + + + 3 AS col2
----
-20

query I rowsort
SELECT DISTINCT - 95 * + + 31 AS col1
----
-2945

query I rowsort
SELECT ALL - 5 + - 88 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - SUM( 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-8504
SELECT - SUM ( 88 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8505
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col1, COUNT( * ) + + + 99 AS col1
----
1
100

skipif mysql # not compatible
query II rowsort label-8505
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) + + + 99 AS col1
----
1
100

query I rowsort
SELECT - 8 * ( + 32 ) - - 85 AS col1
----
-171

query I rowsort
SELECT ALL + 51 + + - 56 col2
----
-5

query I rowsort
SELECT - - 45 + - 88 * + + 78 AS col2
----
-6819

query I rowsort
SELECT + - 40 * + + 99 col2
----
-3960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8510
SELECT ALL + 34 / - CAST( NULL AS DECIMAL ) + - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL + 34 / - CAST ( NULL AS REAL ) + - + 62
----
NULL

query I rowsort
SELECT ALL + 59 + 67
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT DISTINCT - 1 * + 23 * - CASE - - COUNT( * ) WHEN - + 18 * + COUNT( * ) * - + 57 THEN 68 WHEN - - SUM( ALL 30 ) THEN NULL END - + NULLIF ( COUNT( * ), + - 72 ) - 8 / NULLIF ( - NULLIF ( COUNT( * ), 43 ), + COUNT( * ) * - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT - 1 * + 23 * - CASE - - COUNT ( * ) WHEN - + 18 * + COUNT ( * ) * - + 57 THEN 68 WHEN - - SUM ( ALL 30 ) THEN NULL END - + NULLIF ( COUNT ( * ), + - 72 ) - 8 / NULLIF ( - NULLIF ( COUNT ( * ), 43 ), + COUNT ( * ) * - 66 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT DISTINCT - COALESCE ( + 25, CAST( NULL AS SIGNED ) ) + ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT - COALESCE ( + 25, CAST ( NULL AS INTEGER ) ) + ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 24 - - + 9 AS col1, + 88
----
33
88

query I rowsort
SELECT ALL - 99 - 2 AS col2
----
-101

query I rowsort
SELECT ALL 21 * 27 AS col2
----
567

query I rowsort
SELECT - 29 * 57 + - 0
----
-1653

onlyif mysql # aggregate syntax: 
query II rowsort label-8518
SELECT - CASE - 14 WHEN - COUNT( * ) THEN + 10 ELSE NULL END / 79 + + 2 AS col2, + 43 AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8518
SELECT - CASE - 14 WHEN - COUNT ( * ) THEN + 10 ELSE NULL END / 79 + + 2 AS col2, + 43 AS col1
----
NULL
43

onlyif mysql # DIV for integer division: 
query II rowsort label-8519
SELECT ALL + 50 DIV + 42 - + + 7 col0, 60 AS col0
----
-6
60

skipif mysql # not compatible
query II rowsort label-8519
SELECT ALL + 50 / + 42 - + + 7 col0, 60 AS col0
----
-6
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT + 84 * - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-8520
SELECT + 84 * - COUNT ( * )
----
-84

query I rowsort
SELECT + 36 + + - 52 col1
----
-16

query II rowsort
SELECT DISTINCT + 76, 76
----
76
76

query I rowsort
SELECT 18 * 11 AS col2
----
198

query I rowsort
SELECT ALL ( + - 68 ) * + - 74 AS col2
----
5032

onlyif mysql # DIV for integer division: 
query I rowsort label-8525
SELECT 63 DIV 43 DIV 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8525
SELECT 63 / 43 / 11 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT ( - + 6 ) + - 90 + - - 68 * 71 + - 37 + + + ( - CAST( - - 25 AS SIGNED ) ) AS col0
----
4670

skipif mysql # not compatible
query I rowsort label-8526
SELECT ( - + 6 ) + - 90 + - - 68 * 71 + - 37 + + + ( - CAST ( - - 25 AS INTEGER ) ) AS col0
----
4670

query II rowsort
SELECT 10, - 23 AS col2
----
10
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8528
SELECT ALL - 8 AS col1, 26 + - - COUNT( * ) + - 45 AS col2
----
-8
-18

skipif mysql # not compatible
query II rowsort label-8528
SELECT ALL - 8 AS col1, 26 + - - COUNT ( * ) + - 45 AS col2
----
-8
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8529
SELECT 43 + ( + CASE - - 33 WHEN 17 + - 48 * MAX( + CAST( - 18 AS SIGNED ) ) * ( + 59 ) THEN NULL WHEN - COUNT( * ) THEN - 58 END ) / SUM( - 30 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT 43 + ( + CASE - - 33 WHEN 17 + - 48 * MAX ( + CAST ( - 18 AS INTEGER ) ) * ( + 59 ) THEN NULL WHEN - COUNT ( * ) THEN - 58 END ) / SUM ( - 30 ) col2
----
NULL

query I rowsort
SELECT ALL 0 + + 86
----
86

query I rowsort
SELECT ALL + 36 + + 77 AS col1
----
113

query I rowsort
SELECT ALL - 73 + 91 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8533
SELECT NULLIF ( 21, CAST( CAST( - 11 AS SIGNED ) AS SIGNED ) * - - CAST( + + 16 AS SIGNED ) ) * + - 71 + 98 + 19 + + + COUNT( * ) * 22
----
-1352

skipif mysql # not compatible
query I rowsort label-8533
SELECT NULLIF ( 21, CAST ( CAST ( - 11 AS INTEGER ) AS INTEGER ) * - - CAST ( + + 16 AS INTEGER ) ) * + - 71 + 98 + 19 + + + COUNT ( * ) * 22
----
-1352

query I rowsort
SELECT 49 + + 89
----
138

query I rowsort
SELECT 30 + + 40 AS col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT + ( 53 ) + + CASE - 49 WHEN - 43 + 2 THEN NULL ELSE - CAST( NULL AS SIGNED ) END + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT + ( 53 ) + + CASE - 49 WHEN - 43 + 2 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT 19 + 34 + ( + + NULLIF ( - COUNT( * ), - 69 * + SUM( ALL - 55 ) * - - 13 ) )
----
52

skipif mysql # not compatible
query I rowsort label-8537
SELECT 19 + 34 + ( + + NULLIF ( - COUNT ( * ), - 69 * + SUM ( ALL - 55 ) * - - 13 ) )
----
52

query II rowsort
SELECT ALL 98 col1, - 23 + - ( + 30 ) AS col2
----
98
-53

query I rowsort
SELECT ALL + 5 * + + 69 - 56 + - 35 AS col1
----
254

onlyif mysql # DIV for integer division: 
query II rowsort label-8540
SELECT + 26, 59 + - 65 + + - 62 - + 98 - - 49 DIV + 69 AS col0
----
26
-166

skipif mysql # not compatible
query II rowsort label-8540
SELECT + 26, 59 + - 65 + + - 62 - + 98 - - 49 / + 69 AS col0
----
26
-166

query I rowsort
SELECT ALL + ( + + 56 ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8542
SELECT ALL - + 65 - - + MIN( ( + CAST( NULL AS SIGNED ) ) ) * - 18 + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - + 65 - - + MIN ( ( + CAST ( NULL AS INTEGER ) ) ) * - 18 + - 91
----
NULL

query I rowsort
SELECT - 8 + - 52
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8544
SELECT ALL - NULLIF ( - CASE - - 26 WHEN - - 56 THEN + - 43 + + - 28 ELSE NULL END, - SUM( ALL + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL - NULLIF ( - CASE - - 26 WHEN - - 56 THEN + - 43 + + - 28 ELSE NULL END, - SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT 91 + - 30
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT - CASE - 2 WHEN - 67 THEN NULL ELSE - 10 END * - 42 * COUNT( DISTINCT - - ( - 82 ) ) AS col2
----
-420

skipif mysql # not compatible
query I rowsort label-8546
SELECT - CASE - 2 WHEN - 67 THEN NULL ELSE - 10 END * - 42 * COUNT ( DISTINCT - - ( - 82 ) ) AS col2
----
-420

query II rowsort
SELECT 55 AS col2, - 50
----
55
-50

query I rowsort
SELECT DISTINCT - + 23 - 48
----
-71

query II rowsort
SELECT 86, - 49 AS col1
----
86
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT ALL + + 94 DIV 58
----
1

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL + + 94 / 58
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8551
SELECT 47 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-8551
SELECT 47 / 67
----
0

query I rowsort
SELECT DISTINCT - 96 * + + ( 48 )
----
-4608

query I rowsort
SELECT DISTINCT 89 * + 45
----
4005

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8554
SELECT ALL - 9, COUNT( * ) * + NULLIF ( + COUNT( * ), 27 DIV + - ( 14 ) + 75 ) + 30 DIV COUNT( * ) AS col0
----
-9
31

skipif mysql # not compatible
query II rowsort label-8554
SELECT ALL - 9, COUNT ( * ) * + NULLIF ( + COUNT ( * ), 27 / + - ( 14 ) + 75 ) + 30 / COUNT ( * ) AS col0
----
-9
31

query I rowsort
SELECT 3 * + 58 + + 90
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT MAX( - + 11 ) * 2 + + - 70
----
-92

skipif mysql # not compatible
query I rowsort label-8556
SELECT MAX ( - + 11 ) * 2 + + - 70
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8557
SELECT 13 * - + COALESCE ( - MIN( ALL - 78 ), + 95 ) - + 75, - COUNT( * ) DIV + + 75 AS col1
----
-1089
0

skipif mysql # not compatible
query II rowsort label-8557
SELECT 13 * - + COALESCE ( - MIN ( ALL - 78 ), + 95 ) - + 75, - COUNT ( * ) / + + 75 AS col1
----
-1089
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8558
SELECT - COUNT( ALL + + 64 ) DIV - COUNT( * ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8558
SELECT - COUNT ( ALL + + 64 ) / - COUNT ( * ) - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT COUNT( * ) * - ( 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-8559
SELECT COUNT ( * ) * - ( 51 )
----
-51

query I rowsort
SELECT ALL 82 + - 42
----
40

query I rowsort
SELECT ALL 41 + 32 + - 37
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT ( 95 ) * - + COUNT( * ) * - - 55
----
-5225

skipif mysql # not compatible
query I rowsort label-8562
SELECT ( 95 ) * - + COUNT ( * ) * - - 55
----
-5225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8563
SELECT DISTINCT 87 DIV - + COUNT( + + 52 )
----
-87

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT 87 / - + COUNT ( + + 52 )
----
-87

query I rowsort
SELECT ALL 46 + 50
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8565
SELECT 52 AS col0, CAST( + CAST( 99 AS SIGNED ) AS SIGNED )
----
52
99

skipif mysql # not compatible
query II rowsort label-8565
SELECT 52 AS col0, CAST ( + CAST ( 99 AS INTEGER ) AS INTEGER )
----
52
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT + COUNT( - 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8566
SELECT + COUNT ( - 40 ) AS col0
----
1

query I rowsort
SELECT ALL 22 * - 45
----
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-8568
SELECT 59 DIV 12 DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8568
SELECT 59 / 12 / - 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT 40 * COUNT( * ) * + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT 40 * COUNT ( * ) * + COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT 88 + + COUNT( * ) - - - 76
----
13

skipif mysql # not compatible
query I rowsort label-8570
SELECT 88 + + COUNT ( * ) - - - 76
----
13

query I rowsort
SELECT DISTINCT 82 + + 33 + + 94 AS col2
----
209

query I rowsort
SELECT DISTINCT 30 - + ( - NULLIF ( - 14, - 50 + 81 ) ) * - - 79
----
-1076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT DISTINCT + 32 * + CAST( NULL AS SIGNED ) * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT + 32 * + CAST ( NULL AS INTEGER ) * 70
----
NULL

query I rowsort
SELECT - ( 21 ) col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8575
SELECT ALL AVG ( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL AVG ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8576
SELECT + COUNT( * ) AS col1, + 62 col1
----
1
62

skipif mysql # not compatible
query II rowsort label-8576
SELECT + COUNT ( * ) AS col1, + 62 col1
----
1
62

query I rowsort
SELECT 93 + ( - 38 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT + COUNT( * ) * + 35 * + + 6
----
210

skipif mysql # not compatible
query I rowsort label-8578
SELECT + COUNT ( * ) * + 35 * + + 6
----
210

onlyif mysql # aggregate syntax: 
query II rowsort label-8579
SELECT COUNT( * ), - COUNT( DISTINCT + 9 ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-8579
SELECT COUNT ( * ), - COUNT ( DISTINCT + 9 ) AS col1
----
1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8580
SELECT ALL + 16 * + ( + - CAST( + - 41 AS SIGNED ) ) AS col0, 26 - - ( 1 ) * 80 * - 30 * + 93 AS col0
----
656
-223174

skipif mysql # not compatible
query II rowsort label-8580
SELECT ALL + 16 * + ( + - CAST ( + - 41 AS INTEGER ) ) AS col0, 26 - - ( 1 ) * 80 * - 30 * + 93 AS col0
----
656
-223174

query II rowsort
SELECT ALL + 42, - 60 col0
----
42
-60

query I rowsort
SELECT 85 + + 17 * + - 73 AS col1
----
-1156

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT DISTINCT COUNT( ALL + 81 ) * - + 70 - - + 41
----
-29

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT COUNT ( ALL + 81 ) * - + 70 - - + 41
----
-29

query II rowsort
SELECT 62 - - 88, NULLIF ( - 80, - 92 / - 9 * + 7 ) AS col1
----
150
-80

query II rowsort
SELECT ALL 52, - 38 AS col0
----
52
-38

query I rowsort
SELECT + 7 * + + 13 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8587
SELECT - 13 + COUNT( * ) AS col0, 71 * - COALESCE ( CAST( NULL AS SIGNED ), - ( - NULLIF ( - + 39, - 76 + - - 42 ) ) DIV - + 65 * - 55, - 77 * - - 3 + - + COUNT( * ) * - 98 + - - 43 )
----
-12
0

skipif mysql # not compatible
query II rowsort label-8587
SELECT - 13 + COUNT ( * ) AS col0, 71 * - COALESCE ( CAST ( NULL AS INTEGER ), - ( - NULLIF ( - + 39, - 76 + - - 42 ) ) / - + 65 * - 55, - 77 * - - 3 + - + COUNT ( * ) * - 98 + - - 43 )
----
-12
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8588
SELECT - NULLIF ( - ( - - 1 ), + 80 * 61 * 4 + - 56 + + SUM( + 64 ) + + 1 + - + CAST( NULL AS SIGNED ) * NULLIF ( COUNT( * ), - - 20 ) * - + 43 * + COUNT( DISTINCT 52 ) * - 24 / 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8588
SELECT - NULLIF ( - ( - - 1 ), + 80 * 61 * 4 + - 56 + + SUM ( + 64 ) + + 1 + - + CAST ( NULL AS INTEGER ) * NULLIF ( COUNT ( * ), - - 20 ) * - + 43 * + COUNT ( DISTINCT 52 ) * - 24 / 4 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT - 1 + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8589
SELECT - 1 + + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 18 * - 35 AS col0
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT COUNT( * ) * + 74 + 91 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-8591
SELECT COUNT ( * ) * + 74 + 91 AS col2
----
165

query I rowsort
SELECT - 83 - + 90 AS col2
----
-173

onlyif mysql # DIV for integer division: 
query I rowsort label-8593
SELECT ALL - 45 DIV + ( + 4 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL - 45 / + ( + 4 ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8594
SELECT NULLIF ( - ( + CAST( NULL AS SIGNED ) ), 87 * + COUNT( * ) * + COUNT( * ) + + - 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT NULLIF ( - ( + CAST ( NULL AS INTEGER ) ), 87 * + COUNT ( * ) * + COUNT ( * ) + + - 5 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL + 9 * 42 + + - 69 + 73 * - + 73 * + COUNT( * ) col2
----
-5020

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL + 9 * 42 + + - 69 + 73 * - + 73 * + COUNT ( * ) col2
----
-5020

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT DISTINCT - 63 DIV - - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT - 63 / - - 93 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT ALL ( + 94 ) * + 11 * + 93 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL ( + 94 ) * + 11 * + 93 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT - 47 * + - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8598
SELECT - 47 * + - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT - ( - 61 ) + - 80 AS col2, + COUNT( * ) col2
----
-19
1

skipif mysql # not compatible
query II rowsort label-8599
SELECT - ( - 61 ) + - 80 AS col2, + COUNT ( * ) col2
----
-19
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT COALESCE ( + 15, + COALESCE ( + 25, + + 72, - + 2 ) - + COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-8600
SELECT COALESCE ( + 15, + COALESCE ( + 25, + + 72, - + 2 ) - + COUNT ( * ) )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8601
SELECT ALL 86 * + - 67 + - 66 - - - MIN( DISTINCT + - CAST( + 71 AS SIGNED ) ) * + 83
----
65

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL 86 * + - 67 + - 66 - - - MIN ( DISTINCT + - CAST ( + 71 AS INTEGER ) ) * + 83
----
65

query I rowsort
SELECT 73 * - 56 + - COALESCE ( + 18, COALESCE ( 32, 95 ) ) AS col2
----
-4106

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT + COUNT( DISTINCT - + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-8603
SELECT + COUNT ( DISTINCT - + 50 )
----
1

query II rowsort
SELECT - ( - COALESCE ( 44, + - ( + 56 ) - 32 ) ) + + 95 AS col1, 9 AS col0
----
139
9

query I rowsort
SELECT + 10 * + - 71 AS col0
----
-710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8606
SELECT ALL SUM( 14 ) * - + 24 * - 34 * - CASE + 6 WHEN - - SUM( DISTINCT + + 77 ) THEN + 82 - - COUNT( * ) ELSE NULL END * - 90 - - NULLIF ( + + 62, - COUNT( * ) ) * + CASE - - 96 WHEN + + 27 + COALESCE ( NULLIF ( ( COUNT( * ) ), + 64 ), + 84 * - 85 + 82 * SUM( ALL + 16 + 0 ) ) * 70 THEN NULL WHEN 76 THEN NULL WHEN CASE MIN( ALL - 10 ) WHEN + 13 * ( - COUNT( + 51 ) ) THEN 28 WHEN - 7 * - 42 THEN 75 * 57 - 93 WHEN + COUNT( * ) + - COUNT( * ) * 45 THEN - 20 ELSE NULL END THEN + 48 WHEN - COUNT( * ) THEN NULL END + - 6 * + COALESCE ( NULLIF ( + NULLIF ( 78, 16 + + 78 ), 20 + - 22 ), CAST( + ( - 16 ) AS SIGNED ) + - COUNT( * ) * 29 ) - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL SUM ( 14 ) * - + 24 * - 34 * - CASE + 6 WHEN - - SUM ( DISTINCT + + 77 ) THEN + 82 - - COUNT ( * ) ELSE NULL END * - 90 - - NULLIF ( + + 62, - COUNT ( * ) ) * + CASE - - 96 WHEN + + 27 + COALESCE ( NULLIF ( ( COUNT ( * ) ), + 64 ), + 84 * - 85 + 82 * SUM ( ALL + 16 + 0 ) ) * 70 THEN NULL WHEN 76 THEN NULL WHEN CASE MIN ( ALL - 10 ) WHEN + 13 * ( - COUNT ( + 51 ) ) THEN 28 WHEN - 7 * - 42 THEN 75 * 57 - 93 WHEN + COUNT ( * ) + - COUNT ( * ) * 45 THEN - 20 ELSE NULL END THEN + 48 WHEN - COUNT ( * ) THEN NULL END + - 6 * + COALESCE ( NULLIF ( + NULLIF ( 78, 16 + + 78 ), 20 + - 22 ), CAST ( + ( - 16 ) AS INTEGER ) + - COUNT ( * ) * 29 ) - + 29
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8607
SELECT + + 83 * - 64 AS col0, 21 DIV + 89
----
-5312
0

skipif mysql # not compatible
query II rowsort label-8607
SELECT + + 83 * - 64 AS col0, 21 / + 89
----
-5312
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT 66 * - 51 + + 50 - - - ( + CASE - + 44 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN NULL WHEN + 99 / + 83 * - 1 + + 27 + 1 / - 46 - 14 * + 49 THEN + 58 + ( 0 + 52 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT 66 * - 51 + + 50 - - - ( + CASE - + 44 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN + 99 / + 83 * - 1 + + 27 + 1 / - 46 - 14 * + 49 THEN + 58 + ( 0 + 52 ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT DISTINCT 2 * + 10 - - + COUNT( DISTINCT 87 )
----
21

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT 2 * + 10 - - + COUNT ( DISTINCT 87 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT - + CAST( NULL AS SIGNED ) * - 16 + - 54 + + 58 + 5 + + 44 - - 33 * 42 * ( + 78 ) / + + ( + 45 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT - + CAST ( NULL AS INTEGER ) * - 16 + - 54 + + 58 + 5 + + 44 - - 33 * 42 * ( + 78 ) / + + ( + 45 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT + + CAST( NULL AS SIGNED ) / 91 * + + 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT + + CAST ( NULL AS INTEGER ) / 91 * + + 67 col1
----
NULL

query I rowsort
SELECT + 90 + - 5
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8613
SELECT ALL 60 DIV COUNT( * ) + + COUNT( * ) + - - 44 DIV - 43 + 70 * + 0 - - 15 * - 3
----
15

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL 60 / COUNT ( * ) + + COUNT ( * ) + - - 44 / - 43 + 70 * + 0 - - 15 * - 3
----
15

query I rowsort
SELECT - 29 + + - NULLIF ( + ( - - 5 ), + 51 ) AS col1
----
-34

query I rowsort
SELECT - - ( - 67 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + - COUNT( ALL - 69 ) * SUM( - 22 ) + + + 31 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8616
SELECT + - COUNT ( ALL - 69 ) * SUM ( - 22 ) + + + 31 AS col1
----
53

query II rowsort
SELECT + 13 + 80, + 46 col0
----
93
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8618
SELECT + 17 DIV - - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8618
SELECT + 17 / - - 73 AS col1
----
0

query I rowsort
SELECT ALL 87 * - + 88 * - 61
----
467016

query I rowsort
SELECT + 57 * - + 45 + 25
----
-2540

query II rowsort
SELECT + + 51 + - + 14, 27 + 86 AS col0
----
37
113

query I rowsort
SELECT DISTINCT 44 * + 36 + - + 26
----
1558

query I rowsort
SELECT DISTINCT - 59 * - - 63 AS col1
----
-3717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8624
SELECT ALL + 95 DIV - SUM( DISTINCT 9 )
----
-10

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL + 95 / - SUM ( DISTINCT 9 )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8625
SELECT DISTINCT - 79 DIV + - 31
----
2

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT - 79 / + - 31
----
2

query I rowsort
SELECT + 20 + + + 41 col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL NULLIF ( + 69, + - COALESCE ( - 25, - 97, - 74 ) - - 25 * - - COUNT( * ) ) + + + 61 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL NULLIF ( + 69, + - COALESCE ( - 25, - 97, - 74 ) - - 25 * - - COUNT ( * ) ) + + + 61 AS col1
----
130

query I rowsort
SELECT ALL 71 + + 92
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - CASE - + COUNT( * ) WHEN ( - + 29 ) THEN 39 / + - 83 * + - 1 - + MAX( DISTINCT - 42 ) ELSE + ( - + CASE WHEN ( + 40 ) IS NOT NULL THEN NULL ELSE - 84 END ) + - + 14 * + 65 END + ( - ( 67 ) ) - COALESCE ( - 20, - 6, - 8 ) * MAX( 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT - CASE - + COUNT ( * ) WHEN ( - + 29 ) THEN 39 / + - 83 * + - 1 - + MAX ( DISTINCT - 42 ) ELSE + ( - + CASE WHEN ( + 40 ) IS NOT NULL THEN NULL ELSE - 84 END ) + - + 14 * + 65 END + ( - ( 67 ) ) - COALESCE ( - 20, - 6, - 8 ) * MAX ( 84 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 58 * + 20
----
-1160

query I rowsort
SELECT + 53 * 36
----
1908

query I rowsort
SELECT ALL + COALESCE ( - 18, + 26 + 94 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8633
SELECT DISTINCT 39 DIV - + 65 + 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT 39 / - + 65 + 17 AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8634
SELECT MAX( - 29 ) DIV - 50 + - ( - + 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8634
SELECT MAX ( - 29 ) / - 50 + - ( - + 13 ) AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT CAST( - + 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-8635
SELECT CAST ( - + 92 AS INTEGER )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8636
SELECT + 42 AS col2, 94 * + - CAST( NULL AS SIGNED )
----
42
NULL

skipif mysql # not compatible
query II rowsort label-8636
SELECT + 42 AS col2, 94 * + - CAST ( NULL AS INTEGER )
----
42
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8637
SELECT DISTINCT - 96 DIV + 81 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT - 96 / + 81 AS col0
----
-1

query I rowsort
SELECT ALL + 87 * - + 64
----
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT - CASE + COALESCE ( ( - - ( 93 ) ), 22 ) WHEN - 97 / + 76 * - - 72 THEN NULL WHEN + + 2 THEN NULL ELSE + 21 * + 28 * + + COUNT( * ) END * - MAX( + + ( 24 ) ) * - SUM( DISTINCT + 9 ) * - ( 46 ) + 27
----
5842395

skipif mysql # not compatible
query I rowsort label-8639
SELECT - CASE + COALESCE ( ( - - ( 93 ) ), 22 ) WHEN - 97 / + 76 * - - 72 THEN NULL WHEN + + 2 THEN NULL ELSE + 21 * + 28 * + + COUNT ( * ) END * - MAX ( + + ( 24 ) ) * - SUM ( DISTINCT + 9 ) * - ( 46 ) + 27
----
5842395

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL - + SUM( ALL + 18 ) * + + 24
----
-432

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - + SUM ( ALL + 18 ) * + + 24
----
-432

query I rowsort
SELECT - + 37 * - - 31 + + 79
----
-1068

query I rowsort
SELECT ALL - 26 * - + 73 AS col0
----
1898

onlyif mysql # aggregate syntax: 
query II rowsort label-8643
SELECT - 67 AS col2, + COUNT( * ) * + - 10 + + 81 AS col2
----
-67
71

skipif mysql # not compatible
query II rowsort label-8643
SELECT - 67 AS col2, + COUNT ( * ) * + - 10 + + 81 AS col2
----
-67
71

query I rowsort
SELECT ALL - 82 * - + 53
----
4346

query I rowsort
SELECT - 18 * + 69 AS col0
----
-1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8646
SELECT - 88 * + CAST( NULL AS SIGNED ) * - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8646
SELECT - 88 * + CAST ( NULL AS INTEGER ) * - 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT + SUM( DISTINCT - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-8647
SELECT + SUM ( DISTINCT - 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ( - + COALESCE ( - ( + - ( 28 ) ), + 45 * + COUNT( * ) + + 80 + - 60 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-8648
SELECT ( - + COALESCE ( - ( + - ( 28 ) ), + 45 * + COUNT ( * ) + + 80 + - 60 ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL + + COUNT( DISTINCT 18 )
----
1

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + + COUNT ( DISTINCT 18 )
----
1

query II rowsort
SELECT + - 76, 76 AS col0
----
-76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL - 21 * MIN( DISTINCT + 61 ) col2
----
-1281

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL - 21 * MIN ( DISTINCT + 61 ) col2
----
-1281

query I rowsort
SELECT - + 10 * - - 58 AS col2
----
-580

query I rowsort
SELECT ALL 21 + - 10 * 94 AS col2
----
-919

query I rowsort
SELECT ALL - + 74 + - 39 * + 22 AS col1
----
-932

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT - MAX( 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8655
SELECT - MAX ( 30 ) AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8656
SELECT - COUNT( * ) DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-8656
SELECT - COUNT ( * ) / - 74
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8657
SELECT 25 + + 96 * COUNT( * ) DIV - - NULLIF ( 72, 46 ) + - 40
----
-14

skipif mysql # not compatible
query I rowsort label-8657
SELECT 25 + + 96 * COUNT ( * ) / - - NULLIF ( 72, 46 ) + - 40
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT AVG ( DISTINCT 99 ) * + - CASE 89 WHEN + - 19 THEN NULL WHEN - - 74 * + + 33 - + COUNT( * ) + - 58 + + - COUNT( * ) - + + 15 THEN - + 55 + 68 END * + 86 + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT AVG ( DISTINCT 99 ) * + - CASE 89 WHEN + - 19 THEN NULL WHEN - - 74 * + + 33 - + COUNT ( * ) + - 58 + + - COUNT ( * ) - + + 15 THEN - + 55 + 68 END * + 86 + 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT 37 + + + COALESCE ( 74, - 64 ) * COUNT( ALL + 3 ) + + 50 AS col2
----
161

skipif mysql # not compatible
query I rowsort label-8659
SELECT 37 + + + COALESCE ( 74, - 64 ) * COUNT ( ALL + 3 ) + + 50 AS col2
----
161

query I rowsort
SELECT ALL 65 + - 49
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT SUM( ALL 18 ) * COUNT( * ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8661
SELECT SUM ( ALL 18 ) * COUNT ( * ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT ALL 36 * + COUNT( * ) * + 93 * ( - + 35 )
----
-117180

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL 36 * + COUNT ( * ) * + 93 * ( - + 35 )
----
-117180

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT ALL 18 DIV - 54 * + + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL 18 / - 54 * + + 95 AS col0
----
0

query I rowsort
SELECT 53 * + 7
----
371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8665
SELECT CAST( COALESCE ( 85, - + 36 ) AS SIGNED ) + 27 * 55 col1
----
1570

skipif mysql # not compatible
query I rowsort label-8665
SELECT CAST ( COALESCE ( 85, - + 36 ) AS INTEGER ) + 27 * 55 col1
----
1570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8666
SELECT CASE ( COALESCE ( + 96, + COALESCE ( CAST( NULL AS SIGNED ), + - 62 * - 36 / 70 + 22, + 94 ) ) ) WHEN - - COUNT( * ) * + 10 + - + 75 THEN CAST( 35 AS SIGNED ) * - - 90 * - 46 + CASE + 7 WHEN 53 THEN COUNT( * ) WHEN 28 THEN NULL ELSE + NULLIF ( - 77, 19 / - 78 - 66 ) END - 72 WHEN + 21 THEN - 94 + + ( + ( - 79 ) ) ELSE NULL END * 64 + 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT CASE ( COALESCE ( + 96, + COALESCE ( CAST ( NULL AS INTEGER ), + - 62 * - 36 / 70 + 22, + 94 ) ) ) WHEN - - COUNT ( * ) * + 10 + - + 75 THEN CAST ( 35 AS INTEGER ) * - - 90 * - 46 + CASE + 7 WHEN 53 THEN COUNT ( * ) WHEN 28 THEN NULL ELSE + NULLIF ( - 77, 19 / - 78 - 66 ) END - 72 WHEN + 21 THEN - 94 + + ( + ( - 79 ) ) ELSE NULL END * 64 + 80 col2
----
NULL

query I rowsort
SELECT ALL 70 - - 30 * - 60 AS col1
----
-1730

query I rowsort
SELECT DISTINCT - NULLIF ( + 43, - 12 * + 46 ) * + 71
----
-3053

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8669
SELECT ALL + 55 - + 98 DIV SUM( DISTINCT 8 ) AS col2, 12 + - 45 - 14 * - 34
----
43
443

skipif mysql # not compatible
query II rowsort label-8669
SELECT ALL + 55 - + 98 / SUM ( DISTINCT 8 ) AS col2, 12 + - 45 - 14 * - 34
----
43
443

query I rowsort
SELECT DISTINCT - 1 * - + 1 * - 46 AS col2
----
-46

query I rowsort
SELECT DISTINCT 22 * + 28
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT + - NULLIF ( - + COUNT( * ), 63 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8672
SELECT + - NULLIF ( - + COUNT ( * ), 63 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8673
SELECT ALL - + COALESCE ( MAX( - + 82 ), 9 * + + 58 * 15 * - CASE - + 0 WHEN + - 21 * 65 THEN + COUNT( DISTINCT 93 ) DIV + 90 + + COUNT( * ) * + + 17 + 51 WHEN + - ( CASE - + 54 WHEN COUNT( * ) + + 29 THEN 88 + 94 WHEN + COUNT( DISTINCT ( - 11 ) ) THEN NULL WHEN CAST( - 10 AS DECIMAL ) THEN - 22 * + 2 END ) + + 71 THEN NULL END + 47 * - 68, NULLIF ( + ( + 34 ), COUNT( * ) ) - + 87 )
----
82

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL - + COALESCE ( MAX ( - + 82 ), 9 * + + 58 * 15 * - CASE - + 0 WHEN + - 21 * 65 THEN + COUNT ( DISTINCT 93 ) / + 90 + + COUNT ( * ) * + + 17 + 51 WHEN + - ( CASE - + 54 WHEN COUNT ( * ) + + 29 THEN 88 + 94 WHEN + COUNT ( DISTINCT ( - 11 ) ) THEN NULL WHEN CAST ( - 10 AS REAL ) THEN - 22 * + 2 END ) + + 71 THEN NULL END + 47 * - 68, NULLIF ( + ( + 34 ), COUNT ( * ) ) - + 87 )
----
82

query I rowsort
SELECT + - 63 * 28 + - 45 AS col0
----
-1809

query I rowsort
SELECT + 25 + - 11
----
14

query II rowsort
SELECT 91 + 20 AS col1, 80 AS col1
----
111
80

query I rowsort
SELECT ALL + ( + 57 ) + - 70 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT ALL - + CASE + 60 WHEN + - 83 + - - COALESCE ( + 76, - 62, + ( - - COUNT( + 90 ) ) / - COUNT( * ) ) * 30 THEN - + 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL - + CASE + 60 WHEN + - 83 + - - COALESCE ( + 76, - 62, + ( - - COUNT ( + 90 ) ) / - COUNT ( * ) ) * 30 THEN - + 1 END
----
NULL

query I rowsort
SELECT DISTINCT + - 1 * + - 5 AS col2
----
5

query I rowsort
SELECT DISTINCT + + 85 + + + 17
----
102

query I rowsort
SELECT ALL + 79 + 36 + - - 85
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL - - NULLIF ( - - 79, - SUM( + ( NULLIF ( + 4, + + 14 + - 95 ) ) ) )
----
79

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL - - NULLIF ( - - 79, - SUM ( + ( NULLIF ( + 4, + + 14 + - 95 ) ) ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT DISTINCT - 77 * COUNT( * ) * 51 AS col0
----
-3927

skipif mysql # not compatible
query I rowsort label-8683
SELECT DISTINCT - 77 * COUNT ( * ) * 51 AS col0
----
-3927

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8684
SELECT ALL + + 59 + COUNT( * ) - + 76 DIV - + 57, + 20 AS col2
----
61
20

skipif mysql # not compatible
query II rowsort label-8684
SELECT ALL + + 59 + COUNT ( * ) - + 76 / - + 57, + 20 AS col2
----
61
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT 37 + COALESCE ( + - 51, - ( 31 ) + - COALESCE ( + 66, - 71, 89 * + CAST( - - 4 AS SIGNED ) * + 64 * + 47 - - 73 ) ) + - 46
----
-60

skipif mysql # not compatible
query I rowsort label-8685
SELECT 37 + COALESCE ( + - 51, - ( 31 ) + - COALESCE ( + 66, - 71, 89 * + CAST ( - - 4 AS INTEGER ) * + 64 * + 47 - - 73 ) ) + - 46
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT - + ( CAST( - 14 AS SIGNED ) )
----
14

skipif mysql # not compatible
query I rowsort label-8686
SELECT - + ( CAST ( - 14 AS INTEGER ) )
----
14

query I rowsort
SELECT ALL + 49 + - 38
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT + 77 * COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT + 77 * COUNT ( * ) AS col2
----
77

query I rowsort
SELECT ALL - 86 + - COALESCE ( + 91, 87 * 53, - - 31 )
----
-177

query II rowsort
SELECT DISTINCT 8, 81 col2
----
8
81

query I rowsort
SELECT DISTINCT 59 * - 16 AS col0
----
-944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT ALL - 86 - + + 0 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL - 86 - + + 0 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 53 * - 30
----
-1590

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT CASE + + 73 WHEN + COUNT( + - 14 ) * + - 91 * - 28 THEN - 6 ELSE NULL END * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT CASE + + 73 WHEN + COUNT ( + - 14 ) * + - 91 * - 28 THEN - 6 ELSE NULL END * - 74
----
NULL

query I rowsort
SELECT ALL + 14 * + 97
----
1358

query II rowsort
SELECT 72, - 52 AS col1
----
72
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL COUNT( - 23 ) * - 56
----
-56

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL COUNT ( - 23 ) * - 56
----
-56

query I rowsort
SELECT ALL + 14 * + 27
----
378

query I rowsort
SELECT 88 * + + 38 AS col2
----
3344

onlyif mysql # aggregate syntax: 
query II rowsort label-8700
SELECT ALL 40 AS col1, SUM( ALL + 50 ) * - + 75 + + NULLIF ( 43, 47 + + + COUNT( * ) ) AS col1
----
40
-3707

skipif mysql # not compatible
query II rowsort label-8700
SELECT ALL 40 AS col1, SUM ( ALL + 50 ) * - + 75 + + NULLIF ( 43, 47 + + + COUNT ( * ) ) AS col1
----
40
-3707

query I rowsort
SELECT DISTINCT - 42 * - + 72 AS col1
----
3024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8702
SELECT ALL ( + 5 ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL ( + 5 ) / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 79 * 83 * ( 98 ) + + 16
----
-642570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8704
SELECT CAST( - + MIN( - + 86 ) AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8704
SELECT CAST ( - + MIN ( - + 86 ) AS INTEGER ) AS col2
----
86

query II rowsort
SELECT + - 37 AS col2, COALESCE ( - 65, - - 13 )
----
-37
-65

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8706
SELECT ALL - - 26, + CAST( NULL AS SIGNED ) / + - CAST( NULL AS DECIMAL ) * - 74 AS col0
----
26
NULL

skipif mysql # not compatible
query II rowsort label-8706
SELECT ALL - - 26, + CAST ( NULL AS INTEGER ) / + - CAST ( NULL AS REAL ) * - 74 AS col0
----
26
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT - 9 * COUNT( * ) * + MAX( DISTINCT - - 68 ) * + - 27 * 88 AS col1, + ( 49 ) * + NULLIF ( - 82, + + 51 )
----
1454112
-4018

skipif mysql # not compatible
query II rowsort label-8707
SELECT - 9 * COUNT ( * ) * + MAX ( DISTINCT - - 68 ) * + - 27 * 88 AS col1, + ( 49 ) * + NULLIF ( - 82, + + 51 )
----
1454112
-4018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8708
SELECT + 14 + + + COUNT( * ) + + CAST( + 69 AS SIGNED ) + - 92
----
-8

skipif mysql # not compatible
query I rowsort label-8708
SELECT + 14 + + + COUNT ( * ) + + CAST ( + 69 AS INTEGER ) + - 92
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT DISTINCT - COUNT( + - 17 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT - COUNT ( + - 17 ) AS col1
----
-1

query I rowsort
SELECT ALL ( 2 ) * - ( - - 61 ) + - NULLIF ( + 75, - + ( - 27 ) ) + + - 50
----
-247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8711
SELECT ALL + + CAST( NULL AS SIGNED ) * + + 2 + CASE + 5 WHEN - - 63 * + - 5 * - 71 * CASE - - 88 WHEN - 15 + + + 75 / + ( + COUNT( * ) ) THEN - - 65 * 72 END + + - 52 * + 44 / + 26 * + - 39 * + 49 THEN NULL ELSE - 47 - 25 * - 68 END * + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL + + CAST ( NULL AS INTEGER ) * + + 2 + CASE + 5 WHEN - - 63 * + - 5 * - 71 * CASE - - 88 WHEN - 15 + + + 75 / + ( + COUNT ( * ) ) THEN - - 65 * 72 END + + - 52 * + 44 / + 26 * + - 39 * + 49 THEN NULL ELSE - 47 - 25 * - 68 END * + 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT + - 77 * - + CASE - 96 WHEN 53 THEN + MIN( 68 ) + ( - 73 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT + - 77 * - + CASE - 96 WHEN 53 THEN + MIN ( 68 ) + ( - 73 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8713
SELECT DISTINCT + ( + 69 ) * - 45 + COUNT( * ) + + - CAST( NULL AS DECIMAL ) + + COUNT( * ) * + 69 / + + COUNT( * ) * 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT + ( + 69 ) * - 45 + COUNT ( * ) + + - CAST ( NULL AS REAL ) + + COUNT ( * ) * + 69 / + + COUNT ( * ) * 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT - + 72 * - - NULLIF ( - 61, COUNT( * ) ) - + + 55 - 96 * - 69 AS col0
----
10961

skipif mysql # not compatible
query I rowsort label-8714
SELECT - + 72 * - - NULLIF ( - 61, COUNT ( * ) ) - + + 55 - 96 * - 69 AS col0
----
10961

query I rowsort
SELECT ALL - 39 * + 56 AS col2
----
-2184

onlyif mysql # aggregate syntax: 
query II rowsort label-8716
SELECT DISTINCT + 57, + 80 * + MIN( DISTINCT - - ( + + ( - 2 ) ) ) AS col1
----
57
-160

skipif mysql # not compatible
query II rowsort label-8716
SELECT DISTINCT + 57, + 80 * + MIN ( DISTINCT - - ( + + ( - 2 ) ) ) AS col1
----
57
-160

query I rowsort
SELECT + 12 - - ( 24 )
----
36

query I rowsort
SELECT + + ( 29 ) AS col2
----
29

query I rowsort
SELECT DISTINCT + 89 + 27
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT - - COUNT( * ) * 24 / NULLIF ( - 61, 22 ) * + - 60 * + - 10 + - + 77 * 53 + + + 46 - - 17 + CASE + 14 WHEN - ( - ( - 85 ) ) THEN COUNT( * ) END * - + 32 + + - COUNT( * ) * + COUNT( ALL 28 ) + + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT - - COUNT ( * ) * 24 / NULLIF ( - 61, 22 ) * + - 60 * + - 10 + - + 77 * 53 + + + 46 - - 17 + CASE + 14 WHEN - ( - ( - 85 ) ) THEN COUNT ( * ) END * - + 32 + + - COUNT ( * ) * + COUNT ( ALL 28 ) + + 41 AS col1
----
NULL

query I rowsort
SELECT - - 78 * COALESCE ( + + 17, + 53 )
----
1326

query II rowsort
SELECT ALL + - 83 AS col0, - 48 * - 34 AS col0
----
-83
1632

query I rowsort
SELECT - 30 * - 57
----
1710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8724
SELECT ALL - 90 * + CAST( + 78 AS SIGNED ) AS col1
----
-7020

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL - 90 * + CAST ( + 78 AS INTEGER ) AS col1
----
-7020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8725
SELECT - 48 DIV + ( + NULLIF ( - 12, NULLIF ( + COUNT( * ), - 41 * - + 37 + - 80 ) ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8725
SELECT - 48 / + ( + NULLIF ( - 12, NULLIF ( + COUNT ( * ), - 41 * - + 37 + - 80 ) ) ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL 54 / 26 * - CASE 69 WHEN + 32 THEN ( 16 ) + - MIN( ALL - + 60 ) - 83 * 55 * 22 WHEN + 28 * NULLIF ( - + 70, 45 ) + 63 THEN NULL WHEN + 51 THEN + NULLIF ( + + 94, - 93 ) * + COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL 54 / 26 * - CASE 69 WHEN + 32 THEN ( 16 ) + - MIN ( ALL - + 60 ) - 83 * 55 * 22 WHEN + 28 * NULLIF ( - + 70, 45 ) + 63 THEN NULL WHEN + 51 THEN + NULLIF ( + + 94, - 93 ) * + COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT + 95 * + - 37
----
-3515

query I rowsort
SELECT + 12 + + 14 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL + 28 * - CASE - 74 WHEN - ( 15 ) THEN - 59 END * - COUNT( + + 90 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + 28 * - CASE - 74 WHEN - ( 15 ) THEN - 59 END * - COUNT ( + + 90 ) AS col2
----
NULL

query I rowsort
SELECT - ( - 85 ) - - 86
----
171

query I rowsort
SELECT - 64 + 97
----
33

query I rowsort
SELECT ALL NULLIF ( 54, 44 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8733
SELECT DISTINCT COUNT( * ), - 18 + + 61 AS col1
----
1
43

skipif mysql # not compatible
query II rowsort label-8733
SELECT DISTINCT COUNT ( * ), - 18 + + 61 AS col1
----
1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT ALL + 28 * + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL + 28 * + COUNT ( * ) AS col1
----
28

query II rowsort
SELECT DISTINCT ( 33 ) AS col0, 86 AS col0
----
33
86

query II rowsort
SELECT ALL 35 AS col1, 89
----
35
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT - COUNT( * ) + 64 * 30 col2
----
1919

skipif mysql # not compatible
query I rowsort label-8737
SELECT - COUNT ( * ) + 64 * 30 col2
----
1919

query I rowsort
SELECT ALL NULLIF ( - - 79, - - ( + 85 ) )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8739
SELECT - 10 + 43 AS col1, COUNT( * ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-8739
SELECT - 10 + 43 AS col1, COUNT ( * ) AS col0
----
33
1

query I rowsort
SELECT DISTINCT + 83 + + CASE - + 0 WHEN 46 * - NULLIF ( - 44, - + ( 50 ) ) THEN NULL ELSE - - 99 END
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-8741
SELECT - 85 + + 87 DIV 26 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8741
SELECT - 85 + + 87 / 26 AS col1
----
-82

query II rowsort
SELECT ALL + - 37, - 90 AS col2
----
-37
-90

query I rowsort
SELECT ALL + - 54 * 93 - - - 8 + + - 78
----
-5108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8744
SELECT ALL - + CAST( - 88 AS SIGNED ) * CAST( + 36 AS SIGNED ) + 58 + + CASE + 95 WHEN - 94 THEN ( + 3 ) WHEN CAST( NULL AS SIGNED ) THEN NULL END - - 33 + + - 50 * + + 16 * 62 + - ( + - 83 ) AS col0, 28
----
NULL
28

skipif mysql # not compatible
query II rowsort label-8744
SELECT ALL - + CAST ( - 88 AS INTEGER ) * CAST ( + 36 AS INTEGER ) + 58 + + CASE + 95 WHEN - 94 THEN ( + 3 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL END - - 33 + + - 50 * + + 16 * 62 + - ( + - 83 ) AS col0, 28
----
NULL
28

query I rowsort
SELECT + - 48 + + 1 AS col0
----
-47

query I rowsort
SELECT ALL + 43 * + - COALESCE ( - - 59, NULLIF ( + - NULLIF ( 59, + - ( 1 ) ), ( + - 22 ) ) )
----
-2537

onlyif mysql # DIV for integer division: 
query II rowsort label-8747
SELECT 12, 67 DIV + + ( + - 43 ) AS col0
----
12
-1

skipif mysql # not compatible
query II rowsort label-8747
SELECT 12, 67 / + + ( + - 43 ) AS col0
----
12
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL - MAX( ALL - 74 ) * + COUNT( * ) + - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - MAX ( ALL - 74 ) * + COUNT ( * ) + - COUNT ( * ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8749
SELECT CAST( NULL AS SIGNED ) * - 96 / + COUNT( * ) * 15 + + ( 65 ) * + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT CAST ( NULL AS INTEGER ) * - 96 / + COUNT ( * ) * 15 + + ( 65 ) * + 53 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 13 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT DISTINCT + - CAST( - 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT + - CAST ( - 83 AS INTEGER )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT - 17 * - - 66 * 87 - CASE - - COUNT( * ) WHEN - - 86 + 99 * + 15 * - + 27 + + MAX( + 65 ) / + 98 * 43 THEN + 38 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT - 17 * - - 66 * 87 - CASE - - COUNT ( * ) WHEN - - 86 + 99 * + 15 * - + 27 + + MAX ( + 65 ) / + 98 * 43 THEN + 38 END AS col1
----
NULL

query I rowsort
SELECT ALL + 74 * - 46 - - COALESCE ( 47, + + 44 * 91 ) AS col0
----
-3357

query I rowsort
SELECT ALL 13 * - 7
----
-91

query I rowsort
SELECT + 36 * - - ( 81 )
----
2916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT + CASE - CASE 8 WHEN - MAX( DISTINCT 40 ) * + CAST( NULL AS SIGNED ) THEN 63 END WHEN - 48 / + 66 * - 81 + - COUNT( * ) * - 13 * + 63 THEN - 16 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT + CASE - CASE 8 WHEN - MAX ( DISTINCT 40 ) * + CAST ( NULL AS INTEGER ) THEN 63 END WHEN - 48 / + 66 * - 81 + - COUNT ( * ) * - 13 * + 63 THEN - 16 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8757
SELECT + COALESCE ( 70, - - 7 ) + - 31 + 94 AS col0, - COUNT( * ) * + 13 + - - 4
----
133
-9

skipif mysql # not compatible
query II rowsort label-8757
SELECT + COALESCE ( 70, - - 7 ) + - 31 + 94 AS col0, - COUNT ( * ) * + 13 + - - 4
----
133
-9

query I rowsort
SELECT - ( + + 47 ) AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8759
SELECT - 77 * 98 AS col2, + ( + CAST( NULL AS SIGNED ) ) col0
----
-7546
NULL

skipif mysql # not compatible
query II rowsort label-8759
SELECT - 77 * 98 AS col2, + ( + CAST ( NULL AS INTEGER ) ) col0
----
-7546
NULL

query I rowsort
SELECT + 41 * 79 col2
----
3239

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT MAX( DISTINCT + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-8761
SELECT MAX ( DISTINCT + 9 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8762
SELECT - ( + - NULLIF ( - CAST( - 77 AS SIGNED ), - MAX( - 79 ) + 85 + - CASE + - 59 WHEN + 0 / - - 63 + + 68 THEN + 72 WHEN 72 + - 31 + - 39 THEN NULL ELSE + 49 + - + CASE - + 23 WHEN + 23 THEN NULL WHEN + ( + CASE 1 WHEN - 79 THEN NULL ELSE 35 * - 97 + MIN( 16 ) END ) + - 12 THEN 39 * COALESCE ( ( + CAST( + 19 AS SIGNED ) ), 43 + 23, + 95 / 73 ) END - - COUNT( * ) / MAX( - 95 * 55 ) END - 32 ) ) * ( - 33 ) AS col2
----
-2541

skipif mysql # not compatible
query I rowsort label-8762
SELECT - ( + - NULLIF ( - CAST ( - 77 AS INTEGER ), - MAX ( - 79 ) + 85 + - CASE + - 59 WHEN + 0 / - - 63 + + 68 THEN + 72 WHEN 72 + - 31 + - 39 THEN NULL ELSE + 49 + - + CASE - + 23 WHEN + 23 THEN NULL WHEN + ( + CASE 1 WHEN - 79 THEN NULL ELSE 35 * - 97 + MIN ( 16 ) END ) + - 12 THEN 39 * COALESCE ( ( + CAST ( + 19 AS INTEGER ) ), 43 + 23, + 95 / 73 ) END - - COUNT ( * ) / MAX ( - 95 * 55 ) END - 32 ) ) * ( - 33 ) AS col2
----
-2541

query III rowsort
SELECT ALL + 96 + - 67, - 3 AS col0, - + 8 + 0 AS col1
----
29
-3
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8764
SELECT + 5 * - COUNT( * ), 13 AS col2
----
-5
13

skipif mysql # not compatible
query II rowsort label-8764
SELECT + 5 * - COUNT ( * ), 13 AS col2
----
-5
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8765
SELECT + CAST( - MAX( ALL - 98 ) AS SIGNED ) - - 19
----
117

skipif mysql # not compatible
query I rowsort label-8765
SELECT + CAST ( - MAX ( ALL - 98 ) AS INTEGER ) - - 19
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL - - MAX( - 94 ) + 30
----
-64

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL - - MAX ( - 94 ) + 30
----
-64

query I rowsort
SELECT + ( - 99 ) * 59
----
-5841

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT ALL - - SUM( - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL - - SUM ( - 76 )
----
-76

query I rowsort
SELECT 61 * 32 + - 84 col1
----
1868

query I rowsort
SELECT ALL - - 65 - - 81
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT + + SUM( - ( - 43 ) )
----
43

skipif mysql # not compatible
query I rowsort label-8771
SELECT + + SUM ( - ( - 43 ) )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT ALL - + CAST( 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL - + CAST ( 9 AS INTEGER )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8773
SELECT MIN( - + 65 ) DIV - ( 65 )
----
1

skipif mysql # not compatible
query I rowsort label-8773
SELECT MIN ( - + 65 ) / - ( 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT - COUNT( ALL - 60 ) * 23 + - - 29 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8774
SELECT - COUNT ( ALL - 60 ) * 23 + - - 29 AS col0
----
6

query I rowsort
SELECT 46 * - 31 AS col0
----
-1426

query I rowsort
SELECT 53 - - ( + + 51 )
----
104

query II rowsort
SELECT + 54 AS col0, 3 AS col2
----
54
3

query II rowsort
SELECT 45 col0, + 64 * + + 97 AS col0
----
45
6208

query II rowsort
SELECT ALL - 36 AS col0, 73 * + ( 49 ) AS col2
----
-36
3577

onlyif mysql # aggregate syntax: 
query II rowsort label-8780
SELECT DISTINCT 70, + SUM( DISTINCT - 49 ) col2
----
70
-49

skipif mysql # not compatible
query II rowsort label-8780
SELECT DISTINCT 70, + SUM ( DISTINCT - 49 ) col2
----
70
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT 97 - + 91 + + NULLIF ( - + MAX( + 38 ), + 80 * - + 52 )
----
-32

skipif mysql # not compatible
query I rowsort label-8781
SELECT 97 - + 91 + + NULLIF ( - + MAX ( + 38 ), + 80 * - + 52 )
----
-32

query I rowsort
SELECT DISTINCT 47 * - - 99
----
4653

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT + 18 * + 83 + - + 76 - + + ( + COUNT( * ) ) + + COUNT( * ) * 39 AS col1
----
1456

skipif mysql # not compatible
query I rowsort label-8783
SELECT + 18 * + 83 + - + 76 - + + ( + COUNT ( * ) ) + + COUNT ( * ) * 39 AS col1
----
1456

onlyif mysql # aggregate syntax: 
query II rowsort label-8784
SELECT - 80 AS col1, + COUNT( * )
----
-80
1

skipif mysql # not compatible
query II rowsort label-8784
SELECT - 80 AS col1, + COUNT ( * )
----
-80
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8785
SELECT 55, CAST( NULL AS SIGNED ) AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-8785
SELECT 55, CAST ( NULL AS INTEGER ) AS col0
----
55
NULL

query I rowsort
SELECT ALL 93 + + + 1 AS col0
----
94

query I rowsort
SELECT 87 + + 70
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT 32 - + - CAST( 26 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-8788
SELECT 32 - + - CAST ( 26 AS INTEGER )
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8789
SELECT ALL 91 col2, - 67 - - 40 * - + 31 + - 91 DIV 21 AS col0
----
91
-1311

skipif mysql # not compatible
query II rowsort label-8789
SELECT ALL 91 col2, - 67 - - 40 * - + 31 + - 91 / 21 AS col0
----
91
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT ALL 57 + + COUNT( * ) * COALESCE ( - 25, - CASE + COALESCE ( + 92, - ( + - 7 ) * + 37 + - - ( - 71 ) ) WHEN + AVG ( ALL 18 ) THEN + COUNT( * ) + 65 * - MIN( DISTINCT + 8 ) * - 96 WHEN - COUNT( * ) + + + 97 * 58 THEN 57 * 23 ELSE 29 END * - COUNT( * ) ) col0
----
32

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL 57 + + COUNT ( * ) * COALESCE ( - 25, - CASE + COALESCE ( + 92, - ( + - 7 ) * + 37 + - - ( - 71 ) ) WHEN + AVG ( ALL 18 ) THEN + COUNT ( * ) + 65 * - MIN ( DISTINCT + 8 ) * - 96 WHEN - COUNT ( * ) + + + 97 * 58 THEN 57 * 23 ELSE 29 END * - COUNT ( * ) ) col0
----
32

query I rowsort
SELECT ALL - + 5 + + 30 AS col2
----
25

query II rowsort
SELECT - 82, + 17 AS col1
----
-82
17

query I rowsort
SELECT - 3 + 21 AS col1
----
18

query II rowsort
SELECT 60 AS col2, - 55 + 55 AS col1
----
60
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8795
SELECT DISTINCT + 84 DIV + - COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT + 84 / + - COUNT ( * ) AS col2
----
-84

query I rowsort
SELECT 50 + + 82 col2
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-8797
SELECT + 69 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-8797
SELECT + 69 / 79
----
0

query I rowsort
SELECT 83 * + 39 AS col0
----
3237

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT ALL - 60 * - ( - 84 ) + + 17 * - 43 * + MAX( DISTINCT - - 38 ) * - + 90 - COUNT( * ) + 75
----
2495054

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL - 60 * - ( - 84 ) + + 17 * - 43 * + MAX ( DISTINCT - - 38 ) * - + 90 - COUNT ( * ) + 75
----
2495054

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8800
SELECT CAST( NULL AS SIGNED ) AS col0, + 50
----
NULL
50

skipif mysql # not compatible
query II rowsort label-8800
SELECT CAST ( NULL AS INTEGER ) AS col0, + 50
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT ALL MIN( DISTINCT COALESCE ( 47, + 21 * 66 + + + 15 ) ) * 2 * + + COUNT( ALL - - 28 )
----
94

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL MIN ( DISTINCT COALESCE ( 47, + 21 * 66 + + + 15 ) ) * 2 * + + COUNT ( ALL - - 28 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8802
SELECT ALL + CASE + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN ( - 28 ) / + - 81 * + CASE + - 85 WHEN - 85 + - COUNT( * ) + 74 + - CAST( + COUNT( * ) AS SIGNED ) * - 52 * 95 * + 89 / + MIN( DISTINCT - 78 ) THEN 39 / - COUNT( DISTINCT - 21 ) - 41 WHEN + - 40 THEN NULL ELSE NULL END + + 52 END - 16 * - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN ( - 28 ) / + - 81 * + CASE + - 85 WHEN - 85 + - COUNT ( * ) + 74 + - CAST ( + COUNT ( * ) AS INTEGER ) * - 52 * 95 * + 89 / + MIN ( DISTINCT - 78 ) THEN 39 / - COUNT ( DISTINCT - 21 ) - 41 WHEN + - 40 THEN NULL ELSE NULL END + + 52 END - 16 * - 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL - COUNT( * ) - - - 93
----
-94

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL - COUNT ( * ) - - - 93
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT - 19 * 68 DIV - 70
----
18

skipif mysql # not compatible
query I rowsort label-8804
SELECT - 19 * 68 / - 70
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8805
SELECT ALL 88 * - COALESCE ( - 9, - 99 DIV + 24 + COUNT( * ) + 38 + + COUNT( * ) - - COALESCE ( - 12, + COUNT( * ) * COALESCE ( + COUNT( * ), - 9, + NULLIF ( - 28, - - 98 ) * + 93 + + - 70 ), + 49 * - - 70 + + 44 ) * 67, 38 ) col1
----
792

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL 88 * - COALESCE ( - 9, - 99 / + 24 + COUNT ( * ) + 38 + + COUNT ( * ) - - COALESCE ( - 12, + COUNT ( * ) * COALESCE ( + COUNT ( * ), - 9, + NULLIF ( - 28, - - 98 ) * + 93 + + - 70 ), + 49 * - - 70 + + 44 ) * 67, 38 ) col1
----
792

query II rowsort
SELECT - 89 AS col1, + 56 + - - 74 AS col2
----
-89
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT COALESCE ( COUNT( * ), - + ( 36 ), CASE - COUNT( * ) WHEN + COUNT( * ) / - 58 + + 15 + + + 4 THEN 48 ELSE + + 63 END ) * - 85 * - - 89 col0
----
-7565

skipif mysql # not compatible
query I rowsort label-8807
SELECT COALESCE ( COUNT ( * ), - + ( 36 ), CASE - COUNT ( * ) WHEN + COUNT ( * ) / - 58 + + 15 + + + 4 THEN 48 ELSE + + 63 END ) * - 85 * - - 89 col0
----
-7565

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8808
SELECT - 12 * - - 49 * + 57 + 45 + + ( - - 91 ) DIV - + COALESCE ( + + 97, ( - ( 82 ) ) ) + - - 72 + 82 * - COUNT( * ), + 58 DIV - - 22 AS col2
----
-33481
2

skipif mysql # not compatible
query II rowsort label-8808
SELECT - 12 * - - 49 * + 57 + 45 + + ( - - 91 ) / - + COALESCE ( + + 97, ( - ( 82 ) ) ) + - - 72 + 82 * - COUNT ( * ), + 58 / - - 22 AS col2
----
-33481
2

onlyif mysql # DIV for integer division: 
query II rowsort label-8809
SELECT + 12, + 79 DIV + - 21 AS col2
----
12
-3

skipif mysql # not compatible
query II rowsort label-8809
SELECT + 12, + 79 / + - 21 AS col2
----
12
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8810
SELECT CASE 11 WHEN - + 43 * 86 THEN NULL ELSE + MIN( 65 ) + + - 36 DIV + - 60 + COUNT( DISTINCT + 70 ) END DIV - 20 + + 98
----
95

skipif mysql # not compatible
query I rowsort label-8810
SELECT CASE 11 WHEN - + 43 * 86 THEN NULL ELSE + MIN ( 65 ) + + - 36 / + - 60 + COUNT ( DISTINCT + 70 ) END / - 20 + + 98
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL + 69 * + - 69 * COUNT( * ) * ( + CASE + + 3 WHEN + 77 THEN + + CAST( NULL AS SIGNED ) WHEN + - 28 + 33 THEN NULL END ) / MAX( + - 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + 69 * + - 69 * COUNT ( * ) * ( + CASE + + 3 WHEN + 77 THEN + + CAST ( NULL AS INTEGER ) WHEN + - 28 + 33 THEN NULL END ) / MAX ( + - 58 ) AS col2
----
NULL

query I rowsort
SELECT 72 + 45 AS col2
----
117

query I rowsort
SELECT DISTINCT + 87 * - + 30 AS col1
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL 53 + - 3 - + - ( 81 ) * - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL 53 + - 3 - + - ( 81 ) * - COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT 88 + - - ( + 44 ) * + COUNT( * ) * + + ( - 48 ) * - 98 AS col1
----
207064

skipif mysql # not compatible
query I rowsort label-8815
SELECT 88 + - - ( + 44 ) * + COUNT ( * ) * + + ( - 48 ) * - 98 AS col1
----
207064

query I rowsort
SELECT ALL + 69 + 33
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8817
SELECT + MAX( - - CAST( NULL AS SIGNED ) ) * - AVG ( + CAST( NULL AS SIGNED ) ) + 24 + - - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT + MAX ( - - CAST ( NULL AS INTEGER ) ) * - AVG ( + CAST ( NULL AS INTEGER ) ) + 24 + - - 35 AS col2
----
NULL

query II rowsort
SELECT 71 * 43, 46 col0
----
3053
46

query I rowsort
SELECT 7 + + - 47 + + 53 AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT ALL - 97 + CAST( + - 92 AS SIGNED ) * - ( 53 ) col2
----
4779

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL - 97 + CAST ( + - 92 AS INTEGER ) * - ( 53 ) col2
----
4779

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT DISTINCT NULLIF ( 91, - + 99 * - 68 ) / - - CASE - + 6 WHEN 83 + 50 THEN + 32 WHEN + 87 + + + 18 + - - 92 THEN - 35 * - - 11 * - - 34 - 10 END - + + 23 * - - COUNT( * ) + 42 - - 54 * 65 + 40 + + - 10 / - COALESCE ( - COUNT( * ), COUNT( * ) ) * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT NULLIF ( 91, - + 99 * - 68 ) / - - CASE - + 6 WHEN 83 + 50 THEN + 32 WHEN + 87 + + + 18 + - - 92 THEN - 35 * - - 11 * - - 34 - 10 END - + + 23 * - - COUNT ( * ) + 42 - - 54 * 65 + 40 + + - 10 / - COALESCE ( - COUNT ( * ), COUNT ( * ) ) * 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT 97 * - + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-8822
SELECT 97 * - + COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8823
SELECT 32 + + ( + NULLIF ( 25, - - 68 * + - MIN( DISTINCT 69 ) + - + 10 ) ) DIV 59 + 71 DIV - + ( NULLIF ( + 50, + 26 ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8823
SELECT 32 + + ( + NULLIF ( 25, - - 68 * + - MIN ( DISTINCT 69 ) + - + 10 ) ) / 59 + 71 / - + ( NULLIF ( + 50, + 26 ) ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT 5 + + + 29 + - COUNT( * ) + MAX( - 33 ) + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT 5 + + + 29 + - COUNT ( * ) + MAX ( - 33 ) + - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL COUNT( * ) + 76 col1
----
77

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL COUNT ( * ) + 76 col1
----
77

query I rowsort
SELECT + 45 * - + 6
----
-270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8827
SELECT ALL COALESCE ( - 33, CASE COUNT( ALL - 3 ) WHEN + ( 14 ) + - 9 * - 98 * AVG ( + - NULLIF ( + 56, + ( + 12 ) ) ) * + - 50 THEN - 11 ELSE NULL END DIV - - 50 - + 16 + 31 * + - CASE 11 WHEN ( - ( + 68 ) ) * + ( NULLIF ( + COUNT( * ), - 88 + - 8 ) * + 62 ) THEN + 79 ELSE NULL END - 1, + NULLIF ( 75, 18 + - COUNT( * ) ), 31 DIV 81 + COUNT( * ) )
----
-33

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL COALESCE ( - 33, CASE COUNT ( ALL - 3 ) WHEN + ( 14 ) + - 9 * - 98 * AVG ( + - NULLIF ( + 56, + ( + 12 ) ) ) * + - 50 THEN - 11 ELSE NULL END / - - 50 - + 16 + 31 * + - CASE 11 WHEN ( - ( + 68 ) ) * + ( NULLIF ( + COUNT ( * ), - 88 + - 8 ) * + 62 ) THEN + 79 ELSE NULL END - 1, + NULLIF ( 75, 18 + - COUNT ( * ) ), 31 / 81 + COUNT ( * ) )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-8828
SELECT ALL - 55 - 47 DIV + 94 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL - 55 - 47 / + 94 AS col2
----
-55

query I rowsort
SELECT + + 44 * + - ( 88 )
----
-3872

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT + ( 94 ) DIV + 71 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8830
SELECT + ( 94 ) / + 71 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8831
SELECT + CAST( - 32 AS SIGNED ) * 31 - + - COUNT( * )
----
-991

skipif mysql # not compatible
query I rowsort label-8831
SELECT + CAST ( - 32 AS INTEGER ) * 31 - + - COUNT ( * )
----
-991

query I rowsort
SELECT NULLIF ( + + 41, 39 * 41 - + 29 * 33 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT ALL 33 DIV 31 - 9 * ( - - 41 ) col0
----
-368

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL 33 / 31 - 9 * ( - - 41 ) col0
----
-368

query I rowsort
SELECT ALL NULLIF ( + COALESCE ( - 26, + 70 + + 25 ), - 3 / + 27 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + 17 - 28 - 61 + - NULLIF ( + + 96, 66 * + SUM( + 78 ) * - 51 + - + 13 * + 58 )
----
-168

skipif mysql # not compatible
query I rowsort label-8835
SELECT + 17 - 28 - 61 + - NULLIF ( + + 96, 66 * + SUM ( + 78 ) * - 51 + - + 13 * + 58 )
----
-168

query I rowsort
SELECT - + 93 * + 88 AS col0
----
-8184

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8837
SELECT ALL CAST( NULL AS DECIMAL ) * + COUNT( * ) * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL CAST ( NULL AS REAL ) * + COUNT ( * ) * - 37
----
NULL

query I rowsort
SELECT + ( + 30 ) AS col0
----
30

query I rowsort
SELECT ALL 54 * + 31 + + 21 - - - 29 AS col1
----
1666

query I rowsort
SELECT NULLIF ( - 36, - 36 * + - 76 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8841
SELECT DISTINCT ( - + 6 ) * - 92 + - 26 / - 64 - + - SUM( ALL + - 48 ) * + + CAST( NULL AS SIGNED ) + - 20 / + 9 + - COUNT( - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT ( - + 6 ) * - 92 + - 26 / - 64 - + - SUM ( ALL + - 48 ) * + + CAST ( NULL AS INTEGER ) + - 20 / + 9 + - COUNT ( - 92 )
----
NULL

query I rowsort
SELECT - 48 * 15 + + 80 AS col0
----
-640

query I rowsort
SELECT - 12 * - 38
----
456

query I rowsort
SELECT + 10 * - + ( 26 ) - - - 91 AS col0
----
-351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT + 0 - CAST( - 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-8845
SELECT + 0 - CAST ( - 91 AS INTEGER )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8846
SELECT - CAST( ( + + COUNT( * ) ) AS SIGNED ) DIV + COUNT( ALL + 9 ), + ( + - 54 ) - - ( - ( + - 63 ) ) - 97 + + ( 18 ) * 75 AS col2
----
-1
1262

skipif mysql # not compatible
query II rowsort label-8846
SELECT - CAST ( ( + + COUNT ( * ) ) AS INTEGER ) / + COUNT ( ALL + 9 ), + ( + - 54 ) - - ( - ( + - 63 ) ) - 97 + + ( 18 ) * 75 AS col2
----
-1
1262

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT - 82 * - COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8847
SELECT - 82 * - COUNT ( * ) AS col2
----
82

query I rowsort
SELECT ALL + 39 * 55
----
2145

query I rowsort
SELECT ALL COALESCE ( - 77, + 43, + 84 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT - 92 + COALESCE ( - - SUM( ALL - 2 ), - 9 - + 65 ) + + + COUNT( * ) * - 19
----
-113

skipif mysql # not compatible
query I rowsort label-8850
SELECT - 92 + COALESCE ( - - SUM ( ALL - 2 ), - 9 - + 65 ) + + + COUNT ( * ) * - 19
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL + CASE + 86 WHEN - ( - 43 ) THEN + + 65 WHEN - + COUNT( ALL - 84 ) * + 72 + + + 25 THEN NULL ELSE NULL END - 0 * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL + CASE + 86 WHEN - ( - 43 ) THEN + + 65 WHEN - + COUNT ( ALL - 84 ) * + 72 + + + 25 THEN NULL ELSE NULL END - 0 * - 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8852
SELECT - 24 DIV - COUNT( * ) + ( + + 35 ) * - 41
----
-1411

skipif mysql # not compatible
query I rowsort label-8852
SELECT - 24 / - COUNT ( * ) + ( + + 35 ) * - 41
----
-1411

query I rowsort
SELECT + 94 * - 8 AS col2
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT - + COUNT( - + 18 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8854
SELECT - + COUNT ( - + 18 ) AS col2
----
-1

query I rowsort
SELECT + 7 * - - 51 AS col0
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ALL - SUM( ALL - - 96 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL - SUM ( ALL - - 96 ) AS col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT - 51 + - ( 76 ) + - 46 + + NULLIF ( - 25, + + 21 + - CAST( NULL AS SIGNED ) ) * + 27 AS col2
----
-848

skipif mysql # not compatible
query I rowsort label-8857
SELECT - 51 + - ( 76 ) + - 46 + + NULLIF ( - 25, + + 21 + - CAST ( NULL AS INTEGER ) ) * + 27 AS col2
----
-848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT - - CAST( NULL AS SIGNED ) * 77 / + 90 + + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT - - CAST ( NULL AS INTEGER ) * 77 / + 90 + + 62 AS col1
----
NULL

query I rowsort
SELECT + - 88 + COALESCE ( + 43, 50, ( - 60 ) ) * 30
----
1202

query I rowsort
SELECT - 40 * - + NULLIF ( 62, + 42 ) * - 39 + - 86 + - 87
----
-96893

query I rowsort
SELECT + 10 * - - 19
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8862
SELECT - - 23 AS col1, 81 * CASE WHEN 80 NOT IN ( - 4 * - 72 ) THEN 75 + + COUNT( * ) + + - 13 * + + SUM( - - 53 ) ELSE - CAST( ( + 14 ) AS SIGNED ) END
----
23
-49653

skipif mysql # not compatible
query II rowsort label-8862
SELECT - - 23 AS col1, 81 * CASE WHEN 80 NOT IN ( - 4 * - 72 ) THEN 75 + + COUNT ( * ) + + - 13 * + + SUM ( - - 53 ) ELSE - CAST ( ( + 14 ) AS INTEGER ) END
----
23
-49653

query II rowsort
SELECT ALL - 59 AS col2, 16 * - 63
----
-59
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT DISTINCT 41 DIV - - 80 + + 92 * 51 AS col2
----
4692

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT 41 / - - 80 + + 92 * 51 AS col2
----
4692

onlyif mysql # aggregate syntax: 
query II rowsort label-8865
SELECT ALL + 48, + 81 * + MIN( ALL + - 51 ) AS col0
----
48
-4131

skipif mysql # not compatible
query II rowsort label-8865
SELECT ALL + 48, + 81 * + MIN ( ALL + - 51 ) AS col0
----
48
-4131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8866
SELECT DISTINCT 44 / + - ( - NULLIF ( COUNT( - 86 ), + 0 - - COUNT( * ) ) ) / - 53 + CAST( NULL AS SIGNED ) + MIN( 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT 44 / + - ( - NULLIF ( COUNT ( - 86 ), + 0 - - COUNT ( * ) ) ) / - 53 + CAST ( NULL AS INTEGER ) + MIN ( 10 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT CAST( + 38 AS SIGNED ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8867
SELECT CAST ( + 38 AS INTEGER ) AS col2
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8868
SELECT ALL - ( CAST( NULL AS DECIMAL ) ) / + 68 + - - 83 + + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - ( CAST ( NULL AS REAL ) ) / + 68 + - - 83 + + 22 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT + 6 DIV 83 * + 87 * + 79 + + COALESCE ( 87, + ( - 21 ) )
----
87

skipif mysql # not compatible
query I rowsort label-8869
SELECT + 6 / 83 * + 87 * + 79 + + COALESCE ( 87, + ( - 21 ) )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8870
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) + - COALESCE ( 9, - 41 * 90 ) - + - 42
----
32

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) + - COALESCE ( 9, - 41 * 90 ) - + - 42
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT + 12 DIV - 92 * + 61 * + - 71
----
0

skipif mysql # not compatible
query I rowsort label-8871
SELECT + 12 / - 92 * + 61 * + - 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8872
SELECT ALL ( + SUM( + - ( + + 30 ) ) ) DIV + 92 + + 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL ( + SUM ( + - ( + + 30 ) ) ) / + 92 + + 9 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT + 43 * - 71 * 87 + + ( - 75 ) - - COUNT( * ) * + COUNT( * )
----
-265685

skipif mysql # not compatible
query I rowsort label-8873
SELECT + 43 * - 71 * 87 + + ( - 75 ) - - COUNT ( * ) * + COUNT ( * )
----
-265685

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + 59 * - + COUNT( * ) * - 29
----
1711

skipif mysql # not compatible
query I rowsort label-8874
SELECT + 59 * - + COUNT ( * ) * - 29
----
1711

query I rowsort
SELECT - 64 * ( + 57 ) AS col0
----
-3648

query I rowsort
SELECT ALL 70 * 31 col2
----
2170

query I rowsort
SELECT + 76 + - 31 * + + 8
----
-172

onlyif mysql # DIV for integer division: 
query I rowsort label-8878
SELECT ALL 62 DIV - 99 - - 26 * + + 62
----
1612

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL 62 / - 99 - - 26 * + + 62
----
1612

query II rowsort
SELECT DISTINCT + 39 AS col1, 72 AS col1
----
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL + COALESCE ( 4, 22, - + 16 * - COUNT( * ) + - 77 ) - 7
----
-3

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL + COALESCE ( 4, 22, - + 16 * - COUNT ( * ) + - 77 ) - 7
----
-3

query II rowsort
SELECT 25 * 27, ( 98 ) AS col2
----
675
98

query I rowsort
SELECT ALL ( 95 ) - - 20
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8883
SELECT 41 + CASE + 64 WHEN - NULLIF ( - 13, + + 54 ) THEN 53 / COUNT( * ) WHEN ( - + 37 ) + - CAST( + 97 AS SIGNED ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT 41 + CASE + 64 WHEN - NULLIF ( - 13, + + 54 ) THEN 53 / COUNT ( * ) WHEN ( - + 37 ) + - CAST ( + 97 AS INTEGER ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8884
SELECT DISTINCT - CASE + 98 WHEN SUM( ALL - + CAST( + + 32 AS SIGNED ) ) * - 26 + + 83 + + CAST( NULL AS SIGNED ) THEN NULL WHEN + CASE 56 WHEN - 58 THEN + COUNT( * ) + + CASE COALESCE ( - + 57, + MAX( ALL + 48 ) * - 31 - 95, - COUNT( * ) / - 78 ) WHEN - 16 THEN + ( - - 37 ) * - COUNT( + + 35 ) / - 18 WHEN 28 THEN + 52 - 55 END WHEN ( 60 ) - - 4 * + 53 THEN NULL END * + 22 THEN - COUNT( * ) * - NULLIF ( + 38, MAX( DISTINCT 68 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT - CASE + 98 WHEN SUM ( ALL - + CAST ( + + 32 AS INTEGER ) ) * - 26 + + 83 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + CASE 56 WHEN - 58 THEN + COUNT ( * ) + + CASE COALESCE ( - + 57, + MAX ( ALL + 48 ) * - 31 - 95, - COUNT ( * ) / - 78 ) WHEN - 16 THEN + ( - - 37 ) * - COUNT ( + + 35 ) / - 18 WHEN 28 THEN + 52 - 55 END WHEN ( 60 ) - - 4 * + 53 THEN NULL END * + 22 THEN - COUNT ( * ) * - NULLIF ( + 38, MAX ( DISTINCT 68 ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8885
SELECT CAST( NULL AS DECIMAL ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT CAST ( NULL AS REAL ) * 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT - + 2 AS col1, COALESCE ( 46, 50 * - COUNT( * ) ) * + 19 + 50 AS col0
----
-2
924

skipif mysql # not compatible
query II rowsort label-8886
SELECT - + 2 AS col1, COALESCE ( 46, 50 * - COUNT ( * ) ) * + 19 + 50 AS col0
----
-2
924

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT DISTINCT - + 56 * + NULLIF ( + 28, + 14 / + MAX( + 7 ) ) * + 32
----
-50176

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT - + 56 * + NULLIF ( + 28, + 14 / + MAX ( + 7 ) ) * + 32
----
-50176

query II rowsort
SELECT DISTINCT + 63, 63
----
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL - 73 * 85 * + NULLIF ( COUNT( * ), + 5 ) + - 46 + + 67 AS col2
----
-6184

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL - 73 * 85 * + NULLIF ( COUNT ( * ), + 5 ) + - 46 + + 67 AS col2
----
-6184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8890
SELECT CASE - + CASE - 93 WHEN - + 61 * - CAST( NULL AS SIGNED ) * COUNT( * ) THEN - + 25 * - NULLIF ( - 30, - + 44 ) ELSE + 16 END WHEN + + CAST( NULL AS SIGNED ) * COUNT( * ) * 99 THEN 18 - + 88 ELSE NULL END / 92 * - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT CASE - + CASE - 93 WHEN - + 61 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) THEN - + 25 * - NULLIF ( - 30, - + 44 ) ELSE + 16 END WHEN + + CAST ( NULL AS INTEGER ) * COUNT ( * ) * 99 THEN 18 - + 88 ELSE NULL END / 92 * - 63 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 45 * - 35 * 51 * - ( - 11 ) - + 45 * + + 72, 54 AS col1
----
880335
54

query I rowsort
SELECT ALL - 23 + + + 59
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-8893
SELECT 45 DIV + 14, 22 AS col2
----
3
22

skipif mysql # not compatible
query II rowsort label-8893
SELECT 45 / + 14, 22 AS col2
----
3
22

query I rowsort
SELECT ( ( 0 ) )
----
0

query I rowsort
SELECT ALL + + 1 + 30 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8896
SELECT + COUNT( + CASE + ( 84 ) WHEN - COALESCE ( - - ( CAST( - + 16 AS DECIMAL ) ), + 81 ) THEN - ( 68 ) WHEN + - 53 THEN NULL END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8896
SELECT + COUNT ( + CASE + ( 84 ) WHEN - COALESCE ( - - ( CAST ( - + 16 AS REAL ) ), + 81 ) THEN - ( 68 ) WHEN + - 53 THEN NULL END ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8897
SELECT 68 / - 29 / CAST( NULL AS DECIMAL ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT 68 / - 29 / CAST ( NULL AS REAL ) * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT - - COALESCE ( 69, - 76 + - COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-8898
SELECT - - COALESCE ( 69, - 76 + - COUNT ( * ) )
----
69

query I rowsort
SELECT ALL + + 10 + - 13 - + 11 * + + 52 + - 86 * + 83
----
-7713

query I rowsort
SELECT ALL + 27 + 94 AS col2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT 10 * + + CAST( ( + - 85 ) AS SIGNED )
----
-850

skipif mysql # not compatible
query I rowsort label-8901
SELECT 10 * + + CAST ( ( + - 85 ) AS INTEGER )
----
-850

query I rowsort
SELECT ALL 94 * 52 AS col1
----
4888

query I rowsort
SELECT 87 * - 41
----
-3567

query I rowsort
SELECT + 39 * 9 * 8 * - 43 + 12 * + 56 AS col1
----
-120072

query II rowsort
SELECT ALL - 47 * + 42 AS col2, 2 AS col0
----
-1974
2

query II rowsort
SELECT DISTINCT - ( - 36 ) AS col2, 30 AS col2
----
36
30

query I rowsort
SELECT ALL - 38 * - 27 * - - 77
----
79002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT ALL - CAST( - 33 AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL - CAST ( - 33 AS INTEGER ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT 26 * MIN( + - 84 )
----
-2184

skipif mysql # not compatible
query I rowsort label-8909
SELECT 26 * MIN ( + - 84 )
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT - 63 * + 14 - - - 89 * COUNT( * ) * 60 AS col2
----
-6222

skipif mysql # not compatible
query I rowsort label-8910
SELECT - 63 * + 14 - - - 89 * COUNT ( * ) * 60 AS col2
----
-6222

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8911
SELECT 22 - + ( CAST( NULL AS DECIMAL ) ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT 22 - + ( CAST ( NULL AS REAL ) ) * 16
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( + 24, + 8 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8913
SELECT ALL COUNT( * ) + + - 84 + - NULLIF ( - 51, - MIN( + 70 ) ) * 23, + 27 - - + 20 AS col1
----
1090
47

skipif mysql # not compatible
query II rowsort label-8913
SELECT ALL COUNT ( * ) + + - 84 + - NULLIF ( - 51, - MIN ( + 70 ) ) * 23, + 27 - - + 20 AS col1
----
1090
47

query I rowsort
SELECT 81 - + + 78
----
3

query I rowsort
SELECT - 69 - 30 * - - ( 9 )
----
-339

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT - 13 + + CASE 96 WHEN + + 3 * + 46 THEN NULL ELSE + COUNT( * ) END + - 33 * - 40
----
1308

skipif mysql # not compatible
query I rowsort label-8916
SELECT - 13 + + CASE 96 WHEN + + 3 * + 46 THEN NULL ELSE + COUNT ( * ) END + - 33 * - 40
----
1308

query I rowsort
SELECT 73 * + 95 + + + 66
----
7001

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT DISTINCT - SUM( + + 14 ) + CASE - NULLIF ( + 10, 14 + 22 - - + 30 / - + MAX( - 58 ) ) WHEN + 79 * 40 * 76 + ( + 17 ) THEN 26 ELSE + COUNT( + - 24 ) * - - CASE COALESCE ( + 50, + 7 ) WHEN + - 21 THEN NULL WHEN 96 THEN 54 END * 56 * 21 + + 35 * 57 END * + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT - SUM ( + + 14 ) + CASE - NULLIF ( + 10, 14 + 22 - - + 30 / - + MAX ( - 58 ) ) WHEN + 79 * 40 * 76 + ( + 17 ) THEN 26 ELSE + COUNT ( + - 24 ) * - - CASE COALESCE ( + 50, + 7 ) WHEN + - 21 THEN NULL WHEN 96 THEN 54 END * 56 * 21 + + 35 * 57 END * + 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT ALL + COUNT( DISTINCT + CASE + + 65 WHEN 39 THEN + ( - + 42 ) WHEN 88 THEN NULL ELSE NULL END ) + - 58
----
-58

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL + COUNT ( DISTINCT + CASE + + 65 WHEN 39 THEN + ( - + 42 ) WHEN 88 THEN NULL ELSE NULL END ) + - 58
----
-58

query I rowsort
SELECT ( - 64 ) + - + 7
----
-71

query I rowsort
SELECT DISTINCT 28 + - 4 * - 92 AS col2
----
396

onlyif mysql # aggregate syntax: 
query II rowsort label-8922
SELECT ALL - 31 + 47, - 59 * + COUNT( * ) col0
----
16
-59

skipif mysql # not compatible
query II rowsort label-8922
SELECT ALL - 31 + 47, - 59 * + COUNT ( * ) col0
----
16
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT ALL + MAX( ALL - + 55 ) + 2 - - 19 + COUNT( * ) + 10 * - 17, + COUNT( + + 18 ) * + - 21 AS col1
----
-203
-21

skipif mysql # not compatible
query II rowsort label-8923
SELECT ALL + MAX ( ALL - + 55 ) + 2 - - 19 + COUNT ( * ) + 10 * - 17, + COUNT ( + + 18 ) * + - 21 AS col1
----
-203
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8924
SELECT DISTINCT - 98 + - + 1 + + - COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT - 98 + - + 1 + + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 69 * - 46 * - 15
----
47610

query I rowsort
SELECT 81 * + - 9
----
-729

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8927
SELECT ALL - MIN( DISTINCT - 39 ) - + + 23 DIV 73 col0, + COALESCE ( + 11, - - 64 * 85 + ( - NULLIF ( - MIN( - 80 ), + CAST( + COUNT( * ) AS DECIMAL ) + - COUNT( + - 44 ) + + 85 * - - 69 DIV + - 9 ) ) DIV 15 )
----
39
11

skipif mysql # not compatible
query II rowsort label-8927
SELECT ALL - MIN ( DISTINCT - 39 ) - + + 23 / 73 col0, + COALESCE ( + 11, - - 64 * 85 + ( - NULLIF ( - MIN ( - 80 ), + CAST ( + COUNT ( * ) AS REAL ) + - COUNT ( + - 44 ) + + 85 * - - 69 / + - 9 ) ) / 15 )
----
39
11

query I rowsort
SELECT 91 * - 98
----
-8918

query I rowsort
SELECT 97 + - 7
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT 0 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-8930
SELECT 0 / - 99
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8931
SELECT ALL + COUNT( ALL + 51 ) DIV 51 + + MAX( + + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL + COUNT ( ALL + 51 ) / 51 + + MAX ( + + 93 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8932
SELECT - 53 * 92 DIV - + 37
----
131

skipif mysql # not compatible
query I rowsort label-8932
SELECT - 53 * 92 / - + 37
----
131

query I rowsort
SELECT - 29 * - 23 AS col2
----
667

query I rowsort
SELECT DISTINCT + 72 * + + 64 - + + ( + 87 ) + + - 56 * + 69 * + + 14 AS col2
----
-49575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8935
SELECT ALL + CASE - 19 WHEN + - MAX( - + 74 ) THEN - 52 * + 80 * - 91 + CAST( NULL AS SIGNED ) + + 33 END, + 36 * + 93 AS col1, 57 AS col0
----
NULL
3348
57

skipif mysql # not compatible
query III rowsort label-8935
SELECT ALL + CASE - 19 WHEN + - MAX ( - + 74 ) THEN - 52 * + 80 * - 91 + CAST ( NULL AS INTEGER ) + + 33 END, + 36 * + 93 AS col1, 57 AS col0
----
NULL
3348
57

query I rowsort
SELECT NULLIF ( - 53, + - 75 + 13 / + - 57 + - 54 * + 29 * + + 83 ) AS col1
----
-53

query I rowsort
SELECT + 99 + - 16
----
83

query I rowsort
SELECT ALL - 7 * + - 17 col2
----
119

query I rowsort
SELECT 71 * + 98 + + 38
----
6996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8940
SELECT ALL + CAST( MIN( + CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL + CAST ( MIN ( + CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8941
SELECT + ( + CAST( NULL AS SIGNED ) ) * - - 62 + COALESCE ( + 3, - + 35 ) + + 58 + + 30 * + SUM( 36 ) - + 91 * COUNT( * ) * + CAST( NULL AS DECIMAL ) + - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8941
SELECT + ( + CAST ( NULL AS INTEGER ) ) * - - 62 + COALESCE ( + 3, - + 35 ) + + 58 + + 30 * + SUM ( 36 ) - + 91 * COUNT ( * ) * + CAST ( NULL AS REAL ) + - 6 AS col1
----
NULL

query I rowsort
SELECT + 51 * 39
----
1989

query I rowsort
SELECT DISTINCT + ( + 77 ) AS col1
----
77

query I rowsort
SELECT DISTINCT - ( + 20 ) * - + 15 * + - 67
----
-20100

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL - 46 * MIN( - 53 ) + 26
----
2464

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL - 46 * MIN ( - 53 ) + 26
----
2464

onlyif mysql # DIV for integer division: 
query I rowsort label-8946
SELECT + 31 DIV + 12
----
2

skipif mysql # not compatible
query I rowsort label-8946
SELECT + 31 / + 12
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL COUNT( * ) * + - 1 + + - 39 + + - ( - - 89 ) + + + 90 * + SUM( ALL 96 ) * 45 + - AVG ( + + CASE 95 WHEN - 84 THEN 0 WHEN - + ( 37 ) - + 3 THEN + + 98 END ) + + 97 + + ( + 49 ) - CASE + 15 WHEN - 43 THEN 68 END * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL COUNT ( * ) * + - 1 + + - 39 + + - ( - - 89 ) + + + 90 * + SUM ( ALL 96 ) * 45 + - AVG ( + + CASE 95 WHEN - 84 THEN 0 WHEN - + ( 37 ) - + 3 THEN + + 98 END ) + + 97 + + ( + 49 ) - CASE + 15 WHEN - 43 THEN 68 END * 61
----
NULL

query I rowsort
SELECT + 31 * - 33 - - 40 + - NULLIF ( + - 38, + 16 ) * - 47 AS col2
----
-2769

onlyif mysql # DIV for integer division: 
query II rowsort label-8949
SELECT ALL + 8, 4 DIV - - 72 AS col2
----
8
0

skipif mysql # not compatible
query II rowsort label-8949
SELECT ALL + 8, 4 / - - 72 AS col2
----
8
0

query II rowsort
SELECT 46 AS col2, 75 - - 73
----
46
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT + COUNT( * ) * 65 - + 78 + 64 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8951
SELECT + COUNT ( * ) * 65 - + 78 + 64 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL + - NULLIF ( COALESCE ( - 48, - - 92 ), + + COUNT( * ) ) col0
----
48

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL + - NULLIF ( COALESCE ( - 48, - - 92 ), + + COUNT ( * ) ) col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL + 21 + + NULLIF ( - - COUNT( * ), - 94 * + MIN( + ( - + 87 ) ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + 21 + + NULLIF ( - - COUNT ( * ), - 94 * + MIN ( + ( - + 87 ) ) ) AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8954
SELECT DISTINCT - CASE 64 WHEN - COUNT( * ) THEN NULL ELSE + 12 DIV - 93 * - COUNT( * ) * + 95 END + + 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT - CASE 64 WHEN - COUNT ( * ) THEN NULL ELSE + 12 / - 93 * - COUNT ( * ) * + 95 END + + 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT - + MIN( + 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8955
SELECT - + MIN ( + 80 ) AS col0
----
-80

query I rowsort
SELECT DISTINCT + 18 * 6
----
108

query I rowsort
SELECT DISTINCT - 2 + - - 55 AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-8958
SELECT - 43, SUM( ( - 59 ) ) AS col2
----
-43
-59

skipif mysql # not compatible
query II rowsort label-8958
SELECT - 43, SUM ( ( - 59 ) ) AS col2
----
-43
-59

query I rowsort
SELECT ALL + - 72 + + 88 AS col2
----
16

query II rowsort
SELECT DISTINCT 71 AS col1, + 76 AS col1
----
71
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT ALL + COALESCE ( + 43, COUNT( * ), - 72 ) - + 8 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL + COALESCE ( + 43, COUNT ( * ), - 72 ) - + 8 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT + MAX( + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-8962
SELECT + MAX ( + 56 )
----
56

query I rowsort
SELECT - 65 * 10 AS col2
----
-650

query II rowsort
SELECT - ( - + 19 ), - 9 - - 21 - - 65 col0
----
19
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8965
SELECT ALL + SUM( - + 89 ) * ( + 40 ) + + CASE - - ( CASE COUNT( * ) WHEN + NULLIF ( - 31, - COUNT( * ) + - - 70 ) + - ( + + COUNT( * ) ) + - ( + ( + 88 ) ) * - COUNT( * ) + + 24 THEN - - 44 WHEN - + COUNT( * ) * - CAST( NULL AS SIGNED ) + + 88 THEN 80 END ) WHEN - + 70 THEN 41 ELSE + 26 * COUNT( * ) * + + 7 * 61 END AS col1
----
7542

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL + SUM ( - + 89 ) * ( + 40 ) + + CASE - - ( CASE COUNT ( * ) WHEN + NULLIF ( - 31, - COUNT ( * ) + - - 70 ) + - ( + + COUNT ( * ) ) + - ( + ( + 88 ) ) * - COUNT ( * ) + + 24 THEN - - 44 WHEN - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 88 THEN 80 END ) WHEN - + 70 THEN 41 ELSE + 26 * COUNT ( * ) * + + 7 * 61 END AS col1
----
7542

query I rowsort
SELECT - 82 - + - 17
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8967
SELECT + 93 / AVG ( - + 9 ) * - + CASE ( - 11 ) WHEN - CAST( COUNT( * ) AS SIGNED ) + - 95 THEN NULL WHEN 78 THEN 20 + 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT + 93 / AVG ( - + 9 ) * - + CASE ( - 11 ) WHEN - CAST ( COUNT ( * ) AS INTEGER ) + - 95 THEN NULL WHEN 78 THEN 20 + 48 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL + 75 * - MAX( ALL + 39 ) AS col0
----
-2925

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + 75 * - MAX ( ALL + 39 ) AS col0
----
-2925

query I rowsort
SELECT + 70 * + 48 AS col1
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT + CASE 4 WHEN - NULLIF ( 4, - 96 ) / - 43 THEN NULL ELSE + - 44 + - SUM( ALL ( - 63 ) ) END AS col0
----
19

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT + CASE 4 WHEN - NULLIF ( 4, - 96 ) / - 43 THEN NULL ELSE + - 44 + - SUM ( ALL ( - 63 ) ) END AS col0
----
19

query II rowsort
SELECT - 40 * - 58, 56 col0
----
2320
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8972
SELECT ALL - 2 DIV + ( + + COUNT( * ) ) + + 24, 55 DIV NULLIF ( + 59, 12 ) + - + 87 DIV - COUNT( * ) AS col2
----
22
87

skipif mysql # not compatible
query II rowsort label-8972
SELECT ALL - 2 / + ( + + COUNT ( * ) ) + + 24, 55 / NULLIF ( + 59, 12 ) + - + 87 / - COUNT ( * ) AS col2
----
22
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8973
SELECT DISTINCT - 19 DIV - 98 + - 76 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT - 19 / - 98 + - 76 AS col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8974
SELECT DISTINCT + CAST( 50 AS SIGNED ) AS col2, 97
----
50
97

skipif mysql # not compatible
query II rowsort label-8974
SELECT DISTINCT + CAST ( 50 AS INTEGER ) AS col2, 97
----
50
97

query I rowsort
SELECT 10 * - 68 + 29 col2
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT - - 5 * + MAX( ALL - 73 ) AS col0
----
-365

skipif mysql # not compatible
query I rowsort label-8976
SELECT - - 5 * + MAX ( ALL - 73 ) AS col0
----
-365

query I rowsort
SELECT ( ( + - 56 ) ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL - 98 * 99 + - COUNT( * ) AS col1
----
-9703

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL - 98 * 99 + - COUNT ( * ) AS col1
----
-9703

query I rowsort
SELECT - 4 + 16 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8980
SELECT + CASE - 5 WHEN 93 + 13 + 36 + + 69 * - 75 THEN NULL ELSE - - CASE + COALESCE ( 32, - - 6 ) WHEN + 97 THEN + - CAST( - - 80 AS SIGNED ) WHEN - 15 * - COUNT( ALL ( + 93 ) ) + - - 61 + + - 32 + + + COALESCE ( + 50, - 4 ) + - - CASE + - 32 WHEN 79 * - 79 THEN + - ( + COUNT( * ) ) * 13 + + 86 ELSE + 89 * - 54 END THEN NULL ELSE NULL END END * - MAX( ALL 53 / + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT + CASE - 5 WHEN 93 + 13 + 36 + + 69 * - 75 THEN NULL ELSE - - CASE + COALESCE ( 32, - - 6 ) WHEN + 97 THEN + - CAST ( - - 80 AS INTEGER ) WHEN - 15 * - COUNT ( ALL ( + 93 ) ) + - - 61 + + - 32 + + + COALESCE ( + 50, - 4 ) + - - CASE + - 32 WHEN 79 * - 79 THEN + - ( + COUNT ( * ) ) * 13 + + 86 ELSE + 89 * - 54 END THEN NULL ELSE NULL END END * - MAX ( ALL 53 / + 38 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT DISTINCT + - 78 * - 70 + - CAST( 23 AS SIGNED ) + 35 AS col1
----
5472

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT + - 78 * - 70 + - CAST ( 23 AS INTEGER ) + 35 AS col1
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL + - 3 * + + COUNT( * ) * 47 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL + - 3 * + + COUNT ( * ) * 47 AS col2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + - 3 - - - 78 + + 91 * + SUM( + 61 ) + 63 AS col0
----
5533

skipif mysql # not compatible
query I rowsort label-8983
SELECT + - 3 - - - 78 + + 91 * + SUM ( + 61 ) + 63 AS col0
----
5533

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL - MAX( - ( 6 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL - MAX ( - ( 6 ) ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT + + COUNT( * ) - - - 10
----
-9

skipif mysql # not compatible
query I rowsort label-8985
SELECT + + COUNT ( * ) - - - 10
----
-9

query I rowsort
SELECT + 76 * - 21
----
-1596

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8987
SELECT DISTINCT 46 DIV - 39, 98 * + COUNT( 24 ) AS col1
----
-1
98

skipif mysql # not compatible
query II rowsort label-8987
SELECT DISTINCT 46 / - 39, 98 * + COUNT ( 24 ) AS col1
----
-1
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8988
SELECT - NULLIF ( - 16, - 89 * 64 * - - ( - 0 ) * 47 * + 93 + + - CAST( - NULLIF ( + + 44, + AVG ( DISTINCT - + 47 ) * + 37 + + + 17 * + 42 ) AS SIGNED ) + + CASE 30 WHEN + CAST( + 2 AS SIGNED ) + - CAST( NULL AS DECIMAL ) + COUNT( * ) * - + 58 * 26 + - + 89 THEN + 67 ELSE - 40 END ) + COUNT( * ) * - 64 * + 47 AS col1
----
-2992

skipif mysql # not compatible
query I rowsort label-8988
SELECT - NULLIF ( - 16, - 89 * 64 * - - ( - 0 ) * 47 * + 93 + + - CAST ( - NULLIF ( + + 44, + AVG ( DISTINCT - + 47 ) * + 37 + + + 17 * + 42 ) AS INTEGER ) + + CASE 30 WHEN + CAST ( + 2 AS INTEGER ) + - CAST ( NULL AS REAL ) + COUNT ( * ) * - + 58 * 26 + - + 89 THEN + 67 ELSE - 40 END ) + COUNT ( * ) * - 64 * + 47 AS col1
----
-2992

query I rowsort
SELECT + + CASE + 37 WHEN 37 THEN NULL ELSE - 6 END * 7 AS col1
----
NULL

query I rowsort
SELECT - 34 + ( + - 79 ) col2
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8991
SELECT + 4 DIV - 86 AS col0, NULLIF ( - SUM( DISTINCT + CAST( NULL AS SIGNED ) ), - MAX( - - 4 ) + 87 ) * - 22 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8991
SELECT + 4 / - 86 AS col0, NULLIF ( - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ), - MAX ( - - 4 ) + 87 ) * - 22 AS col1
----
0
NULL

query I rowsort
SELECT 69 * + 62
----
4278

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT DISTINCT + 6 DIV + - 11
----
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT + 6 / + - 11
----
0

query II rowsort
SELECT DISTINCT 99 AS col0, + 68 + + 53
----
99
121

query I rowsort
SELECT ALL 18 * - - 98
----
1764

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT 16 DIV - 13 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8996
SELECT 16 / - 13 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8997
SELECT ALL 56 AS col1, 44 + - + 56 + - CAST( ( 75 ) AS SIGNED ) AS col1
----
56
-87

skipif mysql # not compatible
query II rowsort label-8997
SELECT ALL 56 AS col1, 44 + - + 56 + - CAST ( ( 75 ) AS INTEGER ) AS col1
----
56
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL COUNT( * ) * 3 col2
----
3

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL COUNT ( * ) * 3 col2
----
3

query I rowsort
SELECT 51 * - + 94
----
-4794

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9000
SELECT - 24 AS col0, ( - - 69 ) DIV - - COUNT( * ) + 6 * + 37
----
-24
291

skipif mysql # not compatible
query II rowsort label-9000
SELECT - 24 AS col0, ( - - 69 ) / - - COUNT ( * ) + 6 * + 37
----
-24
291

query I rowsort
SELECT ALL 69 + 79
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL + 44 + - - 64 + + 85 * + COUNT( * )
----
193

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + 44 + - - 64 + + 85 * + COUNT ( * )
----
193

query II rowsort
SELECT DISTINCT - 83 AS col2, + 56 AS col0
----
-83
56

query I rowsort
SELECT 45 * - 10 + + 7
----
-443

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9005
SELECT ( + + ( - + 41 ) ) DIV - COUNT( * ) + - 34 + - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9005
SELECT ( + + ( - + 41 ) ) / - COUNT ( * ) + - 34 + - COUNT ( * ) AS col1
----
6

query I rowsort
SELECT 66 + - 95 AS col0
----
-29

query I rowsort
SELECT ALL 16 + + 88
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL - 54 + - SUM( DISTINCT + 86 ) AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - 54 + - SUM ( DISTINCT + 86 ) AS col1
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9009
SELECT - ( - COUNT( * ) ) * - 42 + + - COUNT( + 43 ) DIV 54
----
-42

skipif mysql # not compatible
query I rowsort label-9009
SELECT - ( - COUNT ( * ) ) * - 42 + + - COUNT ( + 43 ) / 54
----
-42

query I rowsort
SELECT ALL + 93 + 70
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9011
SELECT COUNT( * ) + + 44 - - 51 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT COUNT ( * ) + + 44 - - 51 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - + ( - - 33 )
----
-33

query II rowsort
SELECT ALL - + 12 AS col0, 95 AS col2
----
-12
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT + COALESCE ( + 28, - 61 - 66, COALESCE ( - 34, + NULLIF ( 14, ( - - 7 ) ) + - - ( + COUNT( + 88 ) ) * COUNT( * ) ) + + COUNT( * ) + + COALESCE ( - 35, ( - - 58 ) - - - 30, COUNT( * ) ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9014
SELECT + COALESCE ( + 28, - 61 - 66, COALESCE ( - 34, + NULLIF ( 14, ( - - 7 ) ) + - - ( + COUNT ( + 88 ) ) * COUNT ( * ) ) + + COUNT ( * ) + + COALESCE ( - 35, ( - - 58 ) - - - 30, COUNT ( * ) ) ) AS col0
----
28

query I rowsort
SELECT 27 + + + 88 AS col0
----
115

query I rowsort
SELECT ALL - + 88 - + 44 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL + 77 * + 20 * COALESCE ( - + COUNT( * ), 12, - 51 )
----
-1540

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL + 77 * + 20 * COALESCE ( - + COUNT ( * ), 12, - 51 )
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT DISTINCT + 61 * - - 56 + + - CASE - - 55 WHEN 70 THEN NULL WHEN COUNT( * ) THEN + 21 WHEN - + COUNT( * ) THEN NULL END + + + NULLIF ( - COUNT( * ), + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT + 61 * - - 56 + + - CASE - - 55 WHEN 70 THEN NULL WHEN COUNT ( * ) THEN + 21 WHEN - + COUNT ( * ) THEN NULL END + + + NULLIF ( - COUNT ( * ), + 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9019
SELECT ALL + 28 * - 63 * 4 - + + SUM( 58 ) AS col2, + ( + 79 )
----
-7114
79

skipif mysql # not compatible
query II rowsort label-9019
SELECT ALL + 28 * - 63 * 4 - + + SUM ( 58 ) AS col2, + ( + 79 )
----
-7114
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT ALL + 17 * NULLIF ( - 22, 84 ) * - SUM( ALL - - 40 ) + - COALESCE ( - ( - + 44 ), + ( 72 ) )
----
14916

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL + 17 * NULLIF ( - 22, 84 ) * - SUM ( ALL - - 40 ) + - COALESCE ( - ( - + 44 ), + ( 72 ) )
----
14916

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT MIN( - - 11 ) * 41 * - 64 * - 25 + - - 61 - + 75
----
721586

skipif mysql # not compatible
query I rowsort label-9021
SELECT MIN ( - - 11 ) * 41 * - 64 * - 25 + - - 61 - + 75
----
721586

onlyif mysql # aggregate syntax: 
query II rowsort label-9022
SELECT ALL 46 AS col2, 54 * - MIN( - 19 ) AS col1
----
46
1026

skipif mysql # not compatible
query II rowsort label-9022
SELECT ALL 46 AS col2, 54 * - MIN ( - 19 ) AS col1
----
46
1026

query I rowsort
SELECT 97 * 97 * + + 91
----
856219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9024
SELECT 0 + - + 35 DIV - NULLIF ( - 68, + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9024
SELECT 0 + - + 35 / - NULLIF ( - 68, + COUNT ( * ) ) AS col2
----
0

query II rowsort
SELECT 45 * + 4 * - + ( - 9 ), - ( - + 34 ) AS col2
----
1620
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9026
SELECT ALL - CASE CASE + 65 WHEN COUNT( * ) + 52 DIV + 72 THEN COUNT( * ) WHEN 9 + 42 THEN - + 24 END WHEN - COALESCE ( - - COUNT( * ), + 96 * - + 11, - - 40 ) THEN NULL ELSE - - 61 - - 2 * - - COUNT( * ) END DIV 62, + 73 col2
----
-1
73

skipif mysql # not compatible
query II rowsort label-9026
SELECT ALL - CASE CASE + 65 WHEN COUNT ( * ) + 52 / + 72 THEN COUNT ( * ) WHEN 9 + 42 THEN - + 24 END WHEN - COALESCE ( - - COUNT ( * ), + 96 * - + 11, - - 40 ) THEN NULL ELSE - - 61 - - 2 * - - COUNT ( * ) END / 62, + 73 col2
----
-1
73

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9027
SELECT 69, ( - 90 ) - - - 31 * - + 28 / - - CAST( NULL AS DECIMAL ) * - 6 + 93 / + 55 AS col0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-9027
SELECT 69, ( - 90 ) - - - 31 * - + 28 / - - CAST ( NULL AS REAL ) * - 6 + 93 / + 55 AS col0
----
69
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9028
SELECT ALL 82 + - NULLIF ( - COUNT( ALL - 98 ), - + 95 + + 37 * - 30 ) + + 20 * ( SUM( ALL + 60 ) ) AS col1, COUNT( - 6 ) + - 10
----
1283
-9

skipif mysql # not compatible
query II rowsort label-9028
SELECT ALL 82 + - NULLIF ( - COUNT ( ALL - 98 ), - + 95 + + 37 * - 30 ) + + 20 * ( SUM ( ALL + 60 ) ) AS col1, COUNT ( - 6 ) + - 10
----
1283
-9

query II rowsort
SELECT 25 - 9 AS col0, + 82 * 31
----
16
2542

query II rowsort
SELECT ALL 68 AS col2, 22 * 60 col0
----
68
1320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9031
SELECT DISTINCT 17 + - 63 + + 87 + - ( - 80 ) DIV 15, 63 * - + COUNT( * ) * + 71 - + + COUNT( * ) + + ( 34 ) + - 75 + + COUNT( - - 80 ) * + + 33 AS col1
----
46
-4482

skipif mysql # not compatible
query II rowsort label-9031
SELECT DISTINCT 17 + - 63 + + 87 + - ( - 80 ) / 15, 63 * - + COUNT ( * ) * + 71 - + + COUNT ( * ) + + ( 34 ) + - 75 + + COUNT ( - - 80 ) * + + 33 AS col1
----
46
-4482

query I rowsort
SELECT 35 - + 35 col2
----
0

query I rowsort
SELECT ALL - 58 + + 85 * - 59 + - - ( 9 )
----
-5064

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT DISTINCT 52 + COUNT( ALL + 75 )
----
53

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT 52 + COUNT ( ALL + 75 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL 11 + + COUNT( DISTINCT - 54 ) * 12 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL 11 + + COUNT ( DISTINCT - 54 ) * 12 AS col0
----
23

query II rowsort
SELECT 63 AS col0, 48
----
63
48

query I rowsort
SELECT ALL + 85 * ( 92 )
----
7820

query I rowsort
SELECT ALL 16 + - ( COALESCE ( - 2, - ( 35 ) ) ) + - - 11 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT + SUM( DISTINCT 24 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-9039
SELECT + SUM ( DISTINCT 24 ) col2
----
24

query I rowsort
SELECT COALESCE ( - 61, - + 27 ) * + - 27 * - 40 col1
----
-65880

query II rowsort
SELECT ALL - ( - 44 ) col2, 7
----
44
7

query I rowsort
SELECT ALL + 61 * 5 - - ( + 14 ) - + + 46 * 74
----
-3085

query I rowsort
SELECT ALL 28 * - 90 - + 38
----
-2558

onlyif mysql # aggregate syntax: 
query III rowsort label-9044
SELECT DISTINCT - 1 AS col2, 13 - + + 81 - 86, + COALESCE ( + + 37, - COUNT( * ), 70 ) * - - 57 AS col1
----
-1
-154
2109

skipif mysql # not compatible
query III rowsort label-9044
SELECT DISTINCT - 1 AS col2, 13 - + + 81 - 86, + COALESCE ( + + 37, - COUNT ( * ), 70 ) * - - 57 AS col1
----
-1
-154
2109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT ALL - - NULLIF ( - CAST( + 93 AS SIGNED ), CASE 23 WHEN - 33 THEN NULL WHEN - MAX( + 11 ) - + + 58 THEN + 63 ELSE NULL END )
----
-93

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL - - NULLIF ( - CAST ( + 93 AS INTEGER ), CASE 23 WHEN - 33 THEN NULL WHEN - MAX ( + 11 ) - + + 58 THEN + 63 ELSE NULL END )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9046
SELECT ALL - + SUM( ALL 67 ) * + - 79 + + 19 DIV 21 AS col1
----
5293

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - + SUM ( ALL 67 ) * + - 79 + + 19 / 21 AS col1
----
5293

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT ALL 83 DIV + + 69 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL 83 / + + 69 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9048
SELECT + + ( - - ( + - 64 ) ) DIV - 37 + - + 32 * + 32 AS col2
----
-1023

skipif mysql # not compatible
query I rowsort label-9048
SELECT + + ( - - ( + - 64 ) ) / - 37 + - + 32 * + 32 AS col2
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT + + MAX( DISTINCT - - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-9049
SELECT + + MAX ( DISTINCT - - 68 )
----
68

query I rowsort
SELECT ALL 10 * + 74
----
740

query I rowsort
SELECT 42 * - 95
----
-3990

query I rowsort
SELECT + 89 - - 75
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9053
SELECT ( + + MIN( - + 70 ) ) DIV + COUNT( * ) + + 58 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9053
SELECT ( + + MIN ( - + 70 ) ) / + COUNT ( * ) + + 58 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL + + COALESCE ( - - 68, 86, - 16 + + COUNT( * ) + + 19 + - - ( + 9 ) * + 44 * + 73 * - - 71 * + 98, - - 86 * - NULLIF ( - ( 42 ), + - 53 * 48 ) )
----
68

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL + + COALESCE ( - - 68, 86, - 16 + + COUNT ( * ) + + 19 + - - ( + 9 ) * + 44 * + 73 * - - 71 * + 98, - - 86 * - NULLIF ( - ( 42 ), + - 53 * 48 ) )
----
68

query I rowsort
SELECT - 77 * + - 24 + 38 * - 80 AS col1
----
-1192

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9056
SELECT ALL + + CASE + 35 WHEN - 58 + - 22 THEN NULL WHEN + COUNT( * ) THEN + 98 / 33 + - 67 - - 12 - - 37 * + COUNT( * ) * 61 WHEN - 98 + + CAST( NULL AS DECIMAL ) THEN NULL ELSE - 38 END AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL + + CASE + 35 WHEN - 58 + - 22 THEN NULL WHEN + COUNT ( * ) THEN + 98 / 33 + - 67 - - 12 - - 37 * + COUNT ( * ) * 61 WHEN - 98 + + CAST ( NULL AS REAL ) THEN NULL ELSE - 38 END AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9057
SELECT ALL - - 60 DIV + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL - - 60 / + COUNT ( * )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9058
SELECT - 25 DIV + COUNT( DISTINCT - 80 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-9058
SELECT - 25 / + COUNT ( DISTINCT - 80 ) col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9059
SELECT DISTINCT + - 95, + CASE ( 3 ) WHEN + 51 THEN - 7 / + 55 + + + CAST( - ( - 23 ) AS SIGNED ) + - 49 END + + 10 + MAX( DISTINCT ( 8 ) ) + - 6 + MIN( - + 23 ) * + 36 * 65 AS col2
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-9059
SELECT DISTINCT + - 95, + CASE ( 3 ) WHEN + 51 THEN - 7 / + 55 + + + CAST ( - ( - 23 ) AS INTEGER ) + - 49 END + + 10 + MAX ( DISTINCT ( 8 ) ) + - 6 + MIN ( - + 23 ) * + 36 * 65 AS col2
----
-95
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT DISTINCT - + 10 DIV + 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT - + 10 / + 21 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9061
SELECT - NULLIF ( + - COUNT( * ), - NULLIF ( 32, 29 + + + 60 ) * + 89 + + + 28 / + CAST( NULL AS DECIMAL ) / + - ( - SUM( ALL - 80 ) ) - - 25 * 34 + - 46 + + 87 * + 82 ) * - - 89 + - COUNT( * ) + COUNT( * ) col0
----
89

skipif mysql # not compatible
query I rowsort label-9061
SELECT - NULLIF ( + - COUNT ( * ), - NULLIF ( 32, 29 + + + 60 ) * + 89 + + + 28 / + CAST ( NULL AS REAL ) / + - ( - SUM ( ALL - 80 ) ) - - 25 * 34 + - 46 + + 87 * + 82 ) * - - 89 + - COUNT ( * ) + COUNT ( * ) col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9062
SELECT - MAX( + 44 ) + - - NULLIF ( ( - - COUNT( 79 ) ), 37 + + CAST( + 98 AS SIGNED ) )
----
-43

skipif mysql # not compatible
query I rowsort label-9062
SELECT - MAX ( + 44 ) + - - NULLIF ( ( - - COUNT ( 79 ) ), 37 + + CAST ( + 98 AS INTEGER ) )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9063
SELECT - NULLIF ( + 66, ( + ( + + CAST( + + ( - - NULLIF ( + 83, + 95 * - + 25 ) ) AS SIGNED ) ) ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9063
SELECT - NULLIF ( + 66, ( + ( + + CAST ( + + ( - - NULLIF ( + 83, + 95 * - + 25 ) ) AS INTEGER ) ) ) ) AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9064
SELECT ALL - SUM( ALL - CAST( NULL AS SIGNED ) ) + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL - SUM ( ALL - CAST ( NULL AS INTEGER ) ) + 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9065
SELECT - 47 + + COUNT( * ) AS col1, - 51
----
-46
-51

skipif mysql # not compatible
query II rowsort label-9065
SELECT - 47 + + COUNT ( * ) AS col1, - 51
----
-46
-51

query I rowsort
SELECT ALL + 26 + - - 64 * 63 AS col2
----
4058

query I rowsort
SELECT ALL - 26 + - 17 - - + 74 - + 75 AS col2
----
-44

query I rowsort
SELECT ALL - 53 * - 31
----
1643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9069
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - AVG ( + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - AVG ( + 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT DISTINCT + 81 + 36 + - COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT + 81 + 36 + - COUNT ( * )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL NULLIF ( - 23, + + 86 + 97 * - ( + + ( - - ( + - COUNT( * ) ) ) ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL NULLIF ( - 23, + + 86 + 97 * - ( + + ( - - ( + - COUNT ( * ) ) ) ) ) AS col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT DISTINCT - 9 DIV ( - - 72 ) DIV 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT - 9 / ( - - 72 ) / 23 AS col1
----
0

query I rowsort
SELECT ALL COALESCE ( 92, - - 20 ) AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 20 AS col0
----
NULL

query I rowsort
SELECT ALL 14 * - - 85 * + + 80
----
95200

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT + ( + 77 ) * + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9076
SELECT + ( + 77 ) * + COUNT ( * ) AS col0
----
77

query I rowsort
SELECT ALL + - 21 * + - 5 AS col0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + AVG ( + NULLIF ( - 36, 21 * + + 35 ) ) * + - 18 / 51 - + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + AVG ( + NULLIF ( - 36, 21 * + + 35 ) ) * + - 18 / 51 - + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT + + 16 + + ( SUM( ALL 69 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9079
SELECT + + 16 + + ( SUM ( ALL 69 ) ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9080
SELECT ALL + 10 * 77, CAST( NULL AS SIGNED ) * + 24 col2
----
770
NULL

skipif mysql # not compatible
query II rowsort label-9080
SELECT ALL + 10 * 77, CAST ( NULL AS INTEGER ) * + 24 col2
----
770
NULL

query I rowsort
SELECT - 29 * - - 16 * 92 + - 43 AS col1
----
-42731

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT + + 49 * COUNT( * ) + + 67 * COUNT( - 33 )
----
116

skipif mysql # not compatible
query I rowsort label-9082
SELECT + + 49 * COUNT ( * ) + + 67 * COUNT ( - 33 )
----
116

query I rowsort
SELECT + + 66 * 23 AS col1
----
1518

query I rowsort
SELECT DISTINCT + COALESCE ( - + 18, - 68 * - 40 + + 62 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT ALL ( COUNT( * ) ) * - 56 col1
----
-56

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL ( COUNT ( * ) ) * - 56 col1
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9086
SELECT ALL + 69 * 61 + - - 28 * - COUNT( * ) DIV + 50 + + COUNT( * ) AS col1
----
4210

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL + 69 * 61 + - - 28 * - COUNT ( * ) / + 50 + + COUNT ( * ) AS col1
----
4210

query I rowsort
SELECT + - 89 + - + 78 col1
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT DISTINCT + ( + 2 ) * - - 77 + + COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT + ( + 2 ) * - - 77 + + COUNT ( * )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT + - COUNT( * ) + - 49 col0
----
-50

skipif mysql # not compatible
query I rowsort label-9089
SELECT + - COUNT ( * ) + - 49 col0
----
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9090
SELECT ALL + NULLIF ( - + 86, CAST( NULL AS DECIMAL ) * + - 21 / 30 ) * - 24 + - 25
----
2039

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL + NULLIF ( - + 86, CAST ( NULL AS REAL ) * + - 21 / 30 ) * - 24 + - 25
----
2039

query I rowsort
SELECT + CASE + + 79 WHEN + + 26 THEN + 40 ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( - ( - - 85 ), + + NULLIF ( + + 44, 96 - + 81 - CASE + 91 WHEN - 27 THEN + 63 / - + 28 / - 31 * 80 + 94 + + 44 + 8 END * - 2 + 93 * - ( - 58 ) ) + - 77 + - 88 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-9093
SELECT + ( + + COUNT( DISTINCT + 39 ) ) AS col2, - 42 AS col2
----
1
-42

skipif mysql # not compatible
query II rowsort label-9093
SELECT + ( + + COUNT ( DISTINCT + 39 ) ) AS col2, - 42 AS col2
----
1
-42

query I rowsort
SELECT NULLIF ( - ( 23 ), 27 ) AS col1
----
-23

query II rowsort
SELECT ALL + 87 AS col0, + 24
----
87
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT + 47 * - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-9096
SELECT + 47 * - - COUNT ( * )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9097
SELECT ALL + 42 * + 4 + CASE + + 58 WHEN + 79 + CAST( - 49 AS SIGNED ) THEN NULL WHEN - 88 * + AVG ( ALL - - 76 ) + 42 - + + NULLIF ( 97, - - 3 ) * + 42 * + NULLIF ( + MIN( + - 20 ), 33 ) THEN - + COUNT( DISTINCT + + 16 ) ELSE - 65 - - CAST( - 77 AS SIGNED ) + - COUNT( DISTINCT + CASE - 67 WHEN - 90 THEN - 7 * 71 * + 75 ELSE 20 END ) * 90 + 21 * ( + 10 DIV 92 ) END + COUNT( * ) * 59 * 79
----
4597

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL + 42 * + 4 + CASE + + 58 WHEN + 79 + CAST ( - 49 AS INTEGER ) THEN NULL WHEN - 88 * + AVG ( ALL - - 76 ) + 42 - + + NULLIF ( 97, - - 3 ) * + 42 * + NULLIF ( + MIN ( + - 20 ), 33 ) THEN - + COUNT ( DISTINCT + + 16 ) ELSE - 65 - - CAST ( - 77 AS INTEGER ) + - COUNT ( DISTINCT + CASE - 67 WHEN - 90 THEN - 7 * 71 * + 75 ELSE 20 END ) * 90 + 21 * ( + 10 / 92 ) END + COUNT ( * ) * 59 * 79
----
4597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT DISTINCT 64 * + 38 + + CAST( NULL AS SIGNED ) + ( - - SUM( 8 ) ) / + - ( - 91 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT 64 * + 38 + + CAST ( NULL AS INTEGER ) + ( - - SUM ( 8 ) ) / + - ( - 91 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9099
SELECT ALL NULLIF ( + + 65, + - 16 + + 72 ) AS col1, + ( 90 ) + - 92 DIV + 41
----
65
88

skipif mysql # not compatible
query II rowsort label-9099
SELECT ALL NULLIF ( + + 65, + - 16 + + 72 ) AS col1, + ( 90 ) + - 92 / + 41
----
65
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT - COUNT( * ) * + - 91
----
91

skipif mysql # not compatible
query I rowsort label-9100
SELECT - COUNT ( * ) * + - 91
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT ALL + 85 DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL + 85 / + 51
----
1

query I rowsort
SELECT DISTINCT ( 19 ) + + 33 + 71 * 98 AS col1
----
7010

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT - 11 + - + 3 DIV + - 60 * + ( - 3 )
----
-11

skipif mysql # not compatible
query I rowsort label-9103
SELECT - 11 + - + 3 / + - 60 * + ( - 3 )
----
-11

query I rowsort
SELECT ALL + 95 - + ( 50 ) * - - 11 * + 33
----
-18055

onlyif mysql # aggregate syntax: 
query II rowsort label-9105
SELECT 88 AS col1, 68 + - + COUNT( * ) AS col1
----
88
67

skipif mysql # not compatible
query II rowsort label-9105
SELECT 88 AS col1, 68 + - + COUNT ( * ) AS col1
----
88
67

query II rowsort
SELECT - 77 AS col0, - 86
----
-77
-86

query I rowsort
SELECT + 57 * + + 7
----
399

query I rowsort
SELECT ALL - 22 * + 42 * 2
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT - NULLIF ( + - 35, 92 ) - + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-9109
SELECT - NULLIF ( + - 35, 92 ) - + + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT ALL COUNT( + + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL COUNT ( + + 3 )
----
1

query I rowsort
SELECT - 10 + 69 + - - 57
----
116

query I rowsort
SELECT ALL - + 69 * + 25 - + 44
----
-1769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9113
SELECT + COUNT( * ) + COUNT( * ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT + COUNT ( * ) + COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - + 62 - - 89 AS col2
----
27

query I rowsort
SELECT ALL + ( - - 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT - + COUNT( DISTINCT + + 57 ) * 16
----
-16

skipif mysql # not compatible
query I rowsort label-9116
SELECT - + COUNT ( DISTINCT + + 57 ) * 16
----
-16

query I rowsort
SELECT - - 87 - - 95 col1
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9118
SELECT + CAST( NULL AS SIGNED ) col1, - 42 + + 18 AS col1
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-9118
SELECT + CAST ( NULL AS INTEGER ) col1, - 42 + + 18 AS col1
----
NULL
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT + COUNT( ALL - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-9119
SELECT + COUNT ( ALL - 78 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9120
SELECT ALL + 90 DIV - + ( - + 48 ) AS col1, + 65 AS col1
----
1
65

skipif mysql # not compatible
query II rowsort label-9120
SELECT ALL + 90 / - + ( - + 48 ) AS col1, + 65 AS col1
----
1
65

query I rowsort
SELECT 13 * + - 28 - - 9 AS col2
----
-355

query II rowsort
SELECT ALL - - 41 AS col0, 28
----
41
28

query I rowsort
SELECT DISTINCT + - 68 * - - ( - ( - 55 ) )
----
-3740

query I rowsort
SELECT ALL - + 24 col0
----
-24

query I rowsort
SELECT ALL 28 * - 38
----
-1064

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT - 98 DIV 70 * + 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9126
SELECT - 98 / 70 * + 74 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL + COUNT( * ) + + NULLIF ( - 30, - 62 + + + AVG ( DISTINCT 82 ) ) + - - 73 * + 71 AS col0
----
5154

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + COUNT ( * ) + + NULLIF ( - 30, - 62 + + + AVG ( DISTINCT 82 ) ) + - - 73 * + 71 AS col0
----
5154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9128
SELECT DISTINCT - + COALESCE ( - 79, 40, CAST( 28 AS SIGNED ) ) + - + 25 + - 58
----
-4

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT - + COALESCE ( - 79, 40, CAST ( 28 AS INTEGER ) ) + - + 25 + - 58
----
-4

query I rowsort
SELECT ALL - 49 + 46
----
-3

query I rowsort
SELECT ALL - 38 + + 34 AS col0
----
-4

query I rowsort
SELECT + + ( 14 ) AS col2
----
14

query I rowsort
SELECT + + 15 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL 17 + - COUNT( 24 ) - - COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL 17 + - COUNT ( 24 ) - - COUNT ( * ) AS col2
----
17

query I rowsort
SELECT DISTINCT + 71 * 89 * - 38
----
-240122

query I rowsort
SELECT ALL 35 + - + ( 23 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT COUNT( * ) * 93 * 70 AS col2
----
6510

skipif mysql # not compatible
query I rowsort label-9136
SELECT COUNT ( * ) * 93 * 70 AS col2
----
6510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9137
SELECT 70 + + 62 + 22 DIV COALESCE ( + - 20, + 59 DIV - 64 + MIN( DISTINCT + 36 ) + 6 )
----
131

skipif mysql # not compatible
query I rowsort label-9137
SELECT 70 + + 62 + 22 / COALESCE ( + - 20, + 59 / - 64 + MIN ( DISTINCT + 36 ) + 6 )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT + 97 * + + 62 + COUNT( * )
----
6015

skipif mysql # not compatible
query I rowsort label-9138
SELECT + 97 * + + 62 + COUNT ( * )
----
6015

query II rowsort
SELECT 60 + - 83 AS col1, + 89 col1
----
-23
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT CAST( - - 1 AS SIGNED ) * + 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9140
SELECT CAST ( - - 1 AS INTEGER ) * + 66 AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9141
SELECT DISTINCT + 55 DIV + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT + 55 / + COUNT ( * )
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9142
SELECT DISTINCT 51 - + + 60, 63 - + 88 + + CASE + 40 WHEN + 16 - + 47 + + 27 + + NULLIF ( - 7, + 80 + + + 58 ) THEN NULL WHEN 69 THEN 95 WHEN 25 THEN 50 + 8 + + - 36 ELSE NULL END * CAST( NULL AS DECIMAL ) AS col0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-9142
SELECT DISTINCT 51 - + + 60, 63 - + 88 + + CASE + 40 WHEN + 16 - + 47 + + 27 + + NULLIF ( - 7, + 80 + + + 58 ) THEN NULL WHEN 69 THEN 95 WHEN 25 THEN 50 + 8 + + - 36 ELSE NULL END * CAST ( NULL AS REAL ) AS col0
----
-9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9143
SELECT 71 + ( - CASE 54 WHEN - 31 * - - 60 THEN - 47 * + 27 WHEN - 53 / - 36 * - 65 * - - CAST( NULL AS SIGNED ) THEN NULL WHEN ( + 26 ) / - + 30 THEN NULL WHEN 5 + - ( - 72 ) * + 3 THEN NULL END ) / - - 41 AS col0, COALESCE ( + 34, 69 * 83 )
----
NULL
34

skipif mysql # not compatible
query II rowsort label-9143
SELECT 71 + ( - CASE 54 WHEN - 31 * - - 60 THEN - 47 * + 27 WHEN - 53 / - 36 * - 65 * - - CAST ( NULL AS INTEGER ) THEN NULL WHEN ( + 26 ) / - + 30 THEN NULL WHEN 5 + - ( - 72 ) * + 3 THEN NULL END ) / - - 41 AS col0, COALESCE ( + 34, 69 * 83 )
----
NULL
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9144
SELECT ALL - 85 DIV + - NULLIF ( + + MIN( DISTINCT 26 ), 36 * 42 * + - 37 * - 66 + - + ( - 50 ) - + - 98 * 76 ) - - + 50 - - - 43 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL - 85 / + - NULLIF ( + + MIN ( DISTINCT 26 ), 36 * 42 * + - 37 * - 66 + - + ( - 50 ) - + - 98 * 76 ) - - + 50 - - - 43 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9145
SELECT - 89 * - 28 + 79 + - + ( + 80 ) * - + 53 + 0, 28 - + + COUNT( * ) col2
----
6811
27

skipif mysql # not compatible
query II rowsort label-9145
SELECT - 89 * - 28 + 79 + - + ( + 80 ) * - + 53 + 0, 28 - + + COUNT ( * ) col2
----
6811
27

query I rowsort
SELECT - 33 * - 26 * - 59
----
-50622

query I rowsort
SELECT 48 * - 62 + 78
----
-2898

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9148
SELECT ALL + CAST( NULL AS DECIMAL ) * + + NULLIF ( + COUNT( * ), + CASE + 0 WHEN - - AVG ( ALL + 51 ) THEN - 2 * + 31 + + AVG ( DISTINCT + 1 ) + - CASE 40 WHEN - 3 THEN NULL WHEN - 10 THEN NULL WHEN + - 8 / - + 1 THEN + 38 ELSE - 52 * 26 + - 43 END END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL + CAST ( NULL AS REAL ) * + + NULLIF ( + COUNT ( * ), + CASE + 0 WHEN - - AVG ( ALL + 51 ) THEN - 2 * + 31 + + AVG ( DISTINCT + 1 ) + - CASE 40 WHEN - 3 THEN NULL WHEN - 10 THEN NULL WHEN + - 8 / - + 1 THEN + 38 ELSE - 52 * 26 + - 43 END END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT 27 + - COUNT( * ) + - - ( - 2 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-9149
SELECT 27 + - COUNT ( * ) + - - ( - 2 ) AS col0
----
24

query I rowsort
SELECT ALL - 53 + 99
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9151
SELECT 47 * COUNT( * ) + + 58 * 29 DIV 9 + + - 34 - + 50
----
149

skipif mysql # not compatible
query I rowsort label-9151
SELECT 47 * COUNT ( * ) + + 58 * 29 / 9 + + - 34 - + 50
----
149

query I rowsort
SELECT + - 19 col0
----
-19

query I rowsort
SELECT DISTINCT + 51 + - - 50 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT NULLIF ( COUNT( * ), - 55 * + 49 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9154
SELECT NULLIF ( COUNT ( * ), - 55 * + 49 ) AS col2
----
1

query I rowsort
SELECT ALL + + 74 + + 0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9156
SELECT + 41 * - COUNT( + 13 ) DIV - COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9156
SELECT + 41 * - COUNT ( + 13 ) / - COUNT ( * ) AS col0
----
41

query I rowsort
SELECT DISTINCT + 84 + + 73 - - 66
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9158
SELECT 27 AS col2, - 9 + + + CASE + - SUM( - + 70 ) WHEN - 93 THEN COUNT( * ) WHEN 4 * + 95 / + + 80 - 7 + + MIN( NULLIF ( 18, - + 51 - + 69 ) ) + 6 THEN + 70 * + - 54 * + COUNT( * ) * - + 99 * CASE + - COALESCE ( + 48, CASE + COUNT( * ) WHEN + 28 THEN - 48 WHEN NULLIF ( - 92, - - 87 + - + 12 ) THEN NULL END ) WHEN 9 THEN + ( + 39 ) WHEN - 52 THEN + ( CAST( NULL AS SIGNED ) ) ELSE NULL END + - NULLIF ( 40 + COUNT( * ) * ( 62 * - 2 + - 11 ), - 32 * + 29 - - CASE + 39 WHEN COALESCE ( + NULLIF ( 34, - 95 ), + 18 * 86 + + 42, ( + 31 ) + + 14 ) + + 74 / 5 THEN 18 * - 1 + 93 WHEN - 44 + 4 THEN 0 ELSE COUNT( * ) - 82 * + NULLIF ( + SUM( 19 ), 27 - - 56 / + 18 ) END ) * - 40 ELSE COALESCE ( 87, - SUM( 77 ) ) END * ( + 2 )
----
27
165

skipif mysql # not compatible
query II rowsort label-9158
SELECT 27 AS col2, - 9 + + + CASE + - SUM ( - + 70 ) WHEN - 93 THEN COUNT ( * ) WHEN 4 * + 95 / + + 80 - 7 + + MIN ( NULLIF ( 18, - + 51 - + 69 ) ) + 6 THEN + 70 * + - 54 * + COUNT ( * ) * - + 99 * CASE + - COALESCE ( + 48, CASE + COUNT ( * ) WHEN + 28 THEN - 48 WHEN NULLIF ( - 92, - - 87 + - + 12 ) THEN NULL END ) WHEN 9 THEN + ( + 39 ) WHEN - 52 THEN + ( CAST ( NULL AS INTEGER ) ) ELSE NULL END + - NULLIF ( 40 + COUNT ( * ) * ( 62 * - 2 + - 11 ), - 32 * + 29 - - CASE + 39 WHEN COALESCE ( + NULLIF ( 34, - 95 ), + 18 * 86 + + 42, ( + 31 ) + + 14 ) + + 74 / 5 THEN 18 * - 1 + 93 WHEN - 44 + 4 THEN 0 ELSE COUNT ( * ) - 82 * + NULLIF ( + SUM ( 19 ), 27 - - 56 / + 18 ) END ) * - 40 ELSE COALESCE ( 87, - SUM ( 77 ) ) END * ( + 2 )
----
27
165

query I rowsort
SELECT DISTINCT 53 * - 64
----
-3392

query II rowsort
SELECT + 53 AS col0, - 28 AS col2
----
53
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT ALL - MAX( ALL + - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL - MAX ( ALL + - 85 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT 60 DIV - + 36 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9162
SELECT 60 / - + 36 AS col0
----
-1

query I rowsort
SELECT ALL - 94 * + 87
----
-8178

query I rowsort
SELECT 31 * + ( - 10 )
----
-310

query II rowsort
SELECT DISTINCT - 85 * + 21 * 33 AS col1, 55
----
-58905
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9166
SELECT 41 * + + 54 DIV - + COUNT( * ) AS col1
----
-2214

skipif mysql # not compatible
query I rowsort label-9166
SELECT 41 * + + 54 / - + COUNT ( * ) AS col1
----
-2214

query II rowsort
SELECT 70, 7 + 90 AS col1
----
70
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9168
SELECT MIN( DISTINCT 44 ) * - + CAST( NULL AS SIGNED ) * - ( + COUNT( + ( + 39 ) ) ) - 6 * + 34 / + CAST( - 15 AS SIGNED ) + - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT MIN ( DISTINCT 44 ) * - + CAST ( NULL AS INTEGER ) * - ( + COUNT ( + ( + 39 ) ) ) - 6 * + 34 / + CAST ( - 15 AS INTEGER ) + - 9 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 81, 13 AS col1
----
81
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT - COUNT( - + 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-9170
SELECT - COUNT ( - + 5 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT 59 + + 68 - 46 + + 99 * + 52 + CAST( NULL AS SIGNED ) * - 77 * 64 + 38 / - 31 * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT 59 + + 68 - 46 + + 99 * + 52 + CAST ( NULL AS INTEGER ) * - 77 * 64 + 38 / - 31 * 47
----
NULL

query II rowsort
SELECT 43, 31 AS col1
----
43
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT - 73 + + 68 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT - 73 + + 68 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9174
SELECT 17, - COUNT( ALL + 96 ) AS col2
----
17
-1

skipif mysql # not compatible
query II rowsort label-9174
SELECT 17, - COUNT ( ALL + 96 ) AS col2
----
17
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9175
SELECT + + 28 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-9175
SELECT + + 28 / + 53
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT ALL CAST( + 5 AS SIGNED ) + + 54 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL CAST ( + 5 AS INTEGER ) + + 54 AS col0
----
59

query I rowsort
SELECT + 30 - - + 84
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9178
SELECT DISTINCT - 95 + + ( - - 70 ) + 96 * + ( + + 33 ) DIV COUNT( * ) * ( - + 65 ) + COUNT( * ) + - 8 * - 26 * 29
----
-199912

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT - 95 + + ( - - 70 ) + 96 * + ( + + 33 ) / COUNT ( * ) * ( - + 65 ) + COUNT ( * ) + - 8 * - 26 * 29
----
-199912

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + + MIN( 65 ) + - 91 * 73 + 15
----
-6563

skipif mysql # not compatible
query I rowsort label-9179
SELECT + + MIN ( 65 ) + - 91 * 73 + 15
----
-6563

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT + + CASE - 66 WHEN 62 * + 68 + COUNT( ALL + 36 ) THEN + 19 END / - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT + + CASE - 66 WHEN 62 * + 68 + COUNT ( ALL + 36 ) THEN + 19 END / - 14 AS col2
----
NULL

query I rowsort
SELECT ALL 23 + 1 AS col0
----
24

query I rowsort
SELECT ALL - 4 + - + 75 * 42
----
-3154

query I rowsort
SELECT ALL + - 14 + + 49 AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9184
SELECT ALL - - 51 + + 44 + - 62 DIV + + 55 + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL - - 51 + + 44 + - 62 / + + 55 + COUNT ( * )
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9185
SELECT + 89 DIV + CAST( - 19 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-9185
SELECT + 89 / + CAST ( - 19 AS INTEGER )
----
-4

query I rowsort
SELECT + 94 - + 6 + 74
----
162

query I rowsort
SELECT ALL + 21 + + 9
----
30

query I rowsort
SELECT CASE - 34 WHEN - 12 THEN 39 WHEN + + ( + + 30 ) THEN NULL ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 65, - 97 + + 91 + - 78 + + 60 AS col2
----
65
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - MIN( + 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9190
SELECT - MIN ( + 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT + 55 * SUM( DISTINCT - 22 ) AS col1
----
-1210

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT + 55 * SUM ( DISTINCT - 22 ) AS col1
----
-1210

query I rowsort
SELECT DISTINCT + + 97 * + 45 AS col1
----
4365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9193
SELECT DISTINCT + MIN( ALL ( 53 ) ) * + CAST( - 44 AS SIGNED ) - + COUNT( * ) - - ( COALESCE ( + 68, + - ( + + 93 ), - COALESCE ( - SUM( - - 73 ), - COUNT( * ), + 88 + - 49 ) DIV - 1 * - 69 - + + 12 + + 82 - - 91 ) ) * - 4 * 84 AS col2
----
-25181

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT + MIN ( ALL ( 53 ) ) * + CAST ( - 44 AS INTEGER ) - + COUNT ( * ) - - ( COALESCE ( + 68, + - ( + + 93 ), - COALESCE ( - SUM ( - - 73 ), - COUNT ( * ), + 88 + - 49 ) / - 1 * - 69 - + + 12 + + 82 - - 91 ) ) * - 4 * 84 AS col2
----
-25181

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT COALESCE ( 49, + 50 - + COUNT( * ), 71 * + + 8 * 10 * 43 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9194
SELECT COALESCE ( 49, + 50 - + COUNT ( * ), 71 * + + 8 * 10 * 43 ) AS col0
----
49

query I rowsort
SELECT DISTINCT + ( 4 ) * + + 12 - - 86 + 42 + - - 5 * - 80 * - 64 + - - 54
----
25830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT DISTINCT CAST( NULL AS SIGNED ) * CAST( + 28 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT CAST ( NULL AS INTEGER ) * CAST ( + 28 AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( 3, + - 10, + - 71 * - 63 * 95 )
----
3

query II rowsort
SELECT ALL + 99 AS col0, + 61 * + + 29 * + 39 * 33
----
99
2276703

query I rowsort
SELECT + 64 + 3 AS col0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT + 82 * + 53 AS col2, + COUNT( * ) col0
----
4346
1

skipif mysql # not compatible
query II rowsort label-9200
SELECT + 82 * + 53 AS col2, + COUNT ( * ) col0
----
4346
1

query I rowsort
SELECT - 88 * + 57 * - 16
----
80256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9202
SELECT COALESCE ( 8, + 45 * + 39 DIV + + 47 * - COUNT( * ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9202
SELECT COALESCE ( 8, + 45 * + 39 / + + 47 * - COUNT ( * ) ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL + COALESCE ( - MAX( + 28 ), + + ( + 58 ) + CASE + + 90 WHEN + 98 THEN 44 * 68 + - COALESCE ( + 39, - ( + - COUNT( * ) ) ) + 23 END )
----
-28

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL + COALESCE ( - MAX ( + 28 ), + + ( + 58 ) + CASE + + 90 WHEN + 98 THEN 44 * 68 + - COALESCE ( + 39, - ( + - COUNT ( * ) ) ) + 23 END )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT DISTINCT + COUNT( ALL - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT + COUNT ( ALL - 98 )
----
1

query I rowsort
SELECT - 52 * - 63 AS col2
----
3276

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT DISTINCT - 82 DIV - 74 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT - 82 / - 74 AS col1
----
1

query I rowsort
SELECT - 87 + - + 35
----
-122

query I rowsort
SELECT ALL - 64 * + 54 AS col1
----
-3456

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT - 16 DIV 84 * - + 53
----
0

skipif mysql # not compatible
query I rowsort label-9209
SELECT - 16 / 84 * - + 53
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9210
SELECT - CAST( 51 AS SIGNED ) + + 1 * - - CAST( - - 23 AS SIGNED ) - - + 74 DIV - 77
----
-28

skipif mysql # not compatible
query I rowsort label-9210
SELECT - CAST ( 51 AS INTEGER ) + + 1 * - - CAST ( - - 23 AS INTEGER ) - - + 74 / - 77
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - 98 * COUNT( * ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 98 * COUNT ( * ) AS col2
----
-98

query I rowsort
SELECT DISTINCT 88 * + 49 * - 24 + - - 45
----
-103443

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9213
SELECT - + 88 + + 33 / 53 - MIN( DISTINCT 50 ) * - 96 * COUNT( * ) * + 60 - - CAST( NULL AS DECIMAL ) * + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT - + 88 + + 33 / 53 - MIN ( DISTINCT 50 ) * - 96 * COUNT ( * ) * + 60 - - CAST ( NULL AS REAL ) * + - 90
----
NULL

query I rowsort
SELECT - - ( 64 ) AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9215
SELECT DISTINCT - - 20 + + 31, + CAST( NULL AS SIGNED ) * - COUNT( * ) * - + 98 + - - COUNT( * ) col2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-9215
SELECT DISTINCT - - 20 + + 31, + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - + 98 + - - COUNT ( * ) col2
----
51
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT DISTINCT + ( - COALESCE ( - + COUNT( * ), + CASE - 15 WHEN CASE - + 60 WHEN - + 22 * + - 60 THEN + 62 * - - COUNT( ALL - - COALESCE ( + 71, - - 89 ) ) / + 66 * - + 63 * 73 - - + MAX( 84 ) + + + COUNT( - 99 ) + 82 * 97 END * - 66 THEN - 96 WHEN - ( - 9 ) * - COUNT( * ) * - - 90 THEN NULL WHEN CAST( NULL AS SIGNED ) + + 59 - + + 46 * - - 27 * + COUNT( * ) THEN NULL END ) ) + 57 + CAST( NULL AS SIGNED ) + 95 / - 24 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + ( - COALESCE ( - + COUNT ( * ), + CASE - 15 WHEN CASE - + 60 WHEN - + 22 * + - 60 THEN + 62 * - - COUNT ( ALL - - COALESCE ( + 71, - - 89 ) ) / + 66 * - + 63 * 73 - - + MAX ( 84 ) + + + COUNT ( - 99 ) + 82 * 97 END * - 66 THEN - 96 WHEN - ( - 9 ) * - COUNT ( * ) * - - 90 THEN NULL WHEN CAST ( NULL AS INTEGER ) + + 59 - + + 46 * - - 27 * + COUNT ( * ) THEN NULL END ) ) + 57 + CAST ( NULL AS INTEGER ) + 95 / - 24 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT - + COUNT( * ) * 94 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-9217
SELECT - + COUNT ( * ) * 94 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL - - 8 + - - SUM( - + 17 )
----
-9

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL - - 8 + - - SUM ( - + 17 )
----
-9

query I rowsort
SELECT ALL 95 + - + 7 + 34 + + 22 * - 52 col0
----
-1022

onlyif mysql # aggregate syntax: 
query II rowsort label-9220
SELECT COUNT( * ), + 25 AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-9220
SELECT COUNT ( * ), + 25 AS col2
----
1
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9221
SELECT ALL - 0, - MIN( DISTINCT + - 93 ) AS col1
----
0
93

skipif mysql # not compatible
query II rowsort label-9221
SELECT ALL - 0, - MIN ( DISTINCT + - 93 ) AS col1
----
0
93

query I rowsort
SELECT + 78 + - 64
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9223
SELECT + - COUNT( * ) * 0 + - + 73 + + 17 - - + 44 + - 95 DIV - 36 + 24 + 88 + + 92 AS col2
----
194

skipif mysql # not compatible
query I rowsort label-9223
SELECT + - COUNT ( * ) * 0 + - + 73 + + 17 - - + 44 + - 95 / - 36 + 24 + 88 + + 92 AS col2
----
194

query I rowsort
SELECT + - 6 * 33 col0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL - ( - + 62 ) * - CASE + + 89 WHEN + 58 THEN - + COUNT( * ) ELSE - 15 - - + NULLIF ( - 75, - COUNT( * ) ) * - COUNT( * ) END + 20
----
-3700

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL - ( - + 62 ) * - CASE + + 89 WHEN + 58 THEN - + COUNT ( * ) ELSE - 15 - - + NULLIF ( - 75, - COUNT ( * ) ) * - COUNT ( * ) END + 20
----
-3700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9226
SELECT + 53 + + 74 + - MAX( - + 96 ) DIV - 69
----
126

skipif mysql # not compatible
query I rowsort label-9226
SELECT + 53 + + 74 + - MAX ( - + 96 ) / - 69
----
126

query I rowsort
SELECT + 67 + + - 13 + + 51 + 28 + + + 11
----
144

query I rowsort
SELECT DISTINCT - 99 * + 8 AS col2
----
-792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9229
SELECT ALL CAST( NULL AS SIGNED ) / - COUNT( * ) * - + 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL CAST ( NULL AS INTEGER ) / - COUNT ( * ) * - + 62 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9230
SELECT - 98 * ( - 65 ) + 97 + - COALESCE ( + 82, + 64 + 69 + + 72 * 26 + - + COALESCE ( + 95, 60 * + + 3 + 44 + + AVG ( DISTINCT 64 ) DIV + + COUNT( * ) ) )
----
6385

skipif mysql # not compatible
query I rowsort label-9230
SELECT - 98 * ( - 65 ) + 97 + - COALESCE ( + 82, + 64 + 69 + + 72 * 26 + - + COALESCE ( + 95, 60 * + + 3 + 44 + + AVG ( DISTINCT 64 ) / + + COUNT ( * ) ) )
----
6385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9231
SELECT + 65 * - 58 * - 40 * - 34 DIV - COUNT( DISTINCT - + 42 ) AS col1
----
5127200

skipif mysql # not compatible
query I rowsort label-9231
SELECT + 65 * - 58 * - 40 * - 34 / - COUNT ( DISTINCT - + 42 ) AS col1
----
5127200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT CAST( - 59 AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9232
SELECT CAST ( - 59 AS INTEGER ) AS col0
----
-59

query I rowsort
SELECT + 41 * + 33 AS col0
----
1353

query II rowsort
SELECT + ( + 12 ) col1, + 60 AS col1
----
12
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT CAST( - 64 AS SIGNED ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9235
SELECT CAST ( - 64 AS INTEGER ) AS col1
----
-64

query I rowsort
SELECT + 11 * - 17 * COALESCE ( + - 43, + ( - 6 ) + + 96 ) AS col0
----
8041

onlyif mysql # aggregate syntax: 
query II rowsort label-9237
SELECT ALL - 68 * COUNT( - - 20 ), - 4 AS col0
----
-68
-4

skipif mysql # not compatible
query II rowsort label-9237
SELECT ALL - 68 * COUNT ( - - 20 ), - 4 AS col0
----
-68
-4

query I rowsort
SELECT DISTINCT 34 * + 13 AS col0
----
442

query I rowsort
SELECT + 75 * + 86 AS col2
----
6450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9240
SELECT ( - + COALESCE ( COUNT( * ), + 92 * + COUNT( * ) DIV - - 92 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9240
SELECT ( - + COALESCE ( COUNT ( * ), + 92 * + COUNT ( * ) / - - 92 ) ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9241
SELECT + CAST( + + NULLIF ( SUM( 44 ), - COUNT( * ) ) AS SIGNED ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9241
SELECT + CAST ( + + NULLIF ( SUM ( 44 ), - COUNT ( * ) ) AS INTEGER ) AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9242
SELECT MIN( - CASE 46 WHEN 84 * + 90 * + 94 THEN - - CAST( NULL AS SIGNED ) WHEN + 9 THEN NULL END ) * + + 14 + + 5 + - 86 / 7 * + 32 * + - 26 + 94 - - + CAST( + 36 AS DECIMAL ) AS col0, ( - 9 ) + + 34 - - MIN( + - 66 ) * - CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9242
SELECT MIN ( - CASE 46 WHEN 84 * + 90 * + 94 THEN - - CAST ( NULL AS INTEGER ) WHEN + 9 THEN NULL END ) * + + 14 + + 5 + - 86 / 7 * + 32 * + - 26 + 94 - - + CAST ( + 36 AS REAL ) AS col0, ( - 9 ) + + 34 - - MIN ( + - 66 ) * - CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT ALL + + 72 + - 65 * - 44 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL + + 72 + - 65 * - 44 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL MAX( DISTINCT + 92 ) + - + MIN( ALL - 9 )
----
101

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL MAX ( DISTINCT + 92 ) + - + MIN ( ALL - 9 )
----
101

query I rowsort
SELECT DISTINCT - 73 * + 19 AS col0
----
-1387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT - 26 / + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT - 26 / + CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT ALL - 57 + 49 col1, - ( + 88 )
----
-8
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9248
SELECT ALL + - 43 DIV - + 93 col1
----
0

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL + - 43 / - + 93 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9249
SELECT ALL - + ( + + 66 ) + COUNT( * ) * - 89 DIV 39 * + - COUNT( * ) * - 51
----
-168

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL - + ( + + 66 ) + COUNT ( * ) * - 89 / 39 * + - COUNT ( * ) * - 51
----
-168

query I rowsort
SELECT DISTINCT + 13 * + 15 * + + 82 + - 24 col2
----
15966

query I rowsort
SELECT + 92 + - - 92 AS col1
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9252
SELECT + COALESCE ( + ( - - CASE MAX( ALL + 5 ) WHEN - CAST( - COALESCE ( + + 74, - 74, - + 48 * - COALESCE ( - 96, 62 + + 13 ) ) AS SIGNED ) THEN - 79 ELSE NULL END ), 48, + + 55 ) * - - 23
----
1104

skipif mysql # not compatible
query I rowsort label-9252
SELECT + COALESCE ( + ( - - CASE MAX ( ALL + 5 ) WHEN - CAST ( - COALESCE ( + + 74, - 74, - + 48 * - COALESCE ( - 96, 62 + + 13 ) ) AS INTEGER ) THEN - 79 ELSE NULL END ), 48, + + 55 ) * - - 23
----
1104

query I rowsort
SELECT 2 + - + 84 * - + 17 AS col1
----
1430

query I rowsort
SELECT 51 + - + 35 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT - 42 + + - SUM( - - 35 ) * 77 + + 52
----
-2685

skipif mysql # not compatible
query I rowsort label-9255
SELECT - 42 + + - SUM ( - - 35 ) * 77 + + 52
----
-2685

query I rowsort
SELECT ALL - 61 * - 25
----
1525

onlyif mysql # aggregate syntax: 
query II rowsort label-9257
SELECT ALL ( - 43 ) AS col1, 76 - 26 - + + ( - COUNT( * ) ) AS col0
----
-43
51

skipif mysql # not compatible
query II rowsort label-9257
SELECT ALL ( - 43 ) AS col1, 76 - 26 - + + ( - COUNT ( * ) ) AS col0
----
-43
51

query I rowsort
SELECT ALL NULLIF ( + 56, - - 71 / 33 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT COUNT( * ) * - - 38 * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-9259
SELECT COUNT ( * ) * - - 38 * - + 0
----
0

query I rowsort
SELECT + 92 - 73 + + 99 col0
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-9261
SELECT - 93 col0, COUNT( * ) + + ( - 76 ) * 79 AS col2
----
-93
-6003

skipif mysql # not compatible
query II rowsort label-9261
SELECT - 93 col0, COUNT ( * ) + + ( - 76 ) * 79 AS col2
----
-93
-6003

query I rowsort
SELECT 50 - - 59
----
109

query I rowsort
SELECT DISTINCT 70 * + - 19
----
-1330

query II rowsort
SELECT + 3 AS col1, 14 AS col2
----
3
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT DISTINCT 34 * + + CAST( - 3 AS SIGNED )
----
-102

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT 34 * + + CAST ( - 3 AS INTEGER )
----
-102

query I rowsort
SELECT ALL 93 + - 58 + - + 65 col0
----
-30

query I rowsort
SELECT 85 - - 5 AS col0
----
90

query I rowsort
SELECT ALL 69 + - 18 + - 23 AS col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9269
SELECT + 80 DIV - COUNT( * ) + - + 81, - 96 AS col2
----
-161
-96

skipif mysql # not compatible
query II rowsort label-9269
SELECT + 80 / - COUNT ( * ) + - + 81, - 96 AS col2
----
-161
-96

query I rowsort
SELECT ALL 87 + + + 81 AS col2
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT 69 + + - MAX( - + 96 ) AS col0, + 92 * 98 * - 95 AS col0
----
165
-856520

skipif mysql # not compatible
query II rowsort label-9271
SELECT 69 + + - MAX ( - + 96 ) AS col0, + 92 * 98 * - 95 AS col0
----
165
-856520

query I rowsort
SELECT 4 * - 1
----
-4

query I rowsort
SELECT ALL 63 + + 80 AS col2
----
143

query I rowsort
SELECT 75 + + COALESCE ( - - 53, 84 + 11 ) AS col0
----
128

query II rowsort
SELECT 62 AS col2, - 62
----
62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT CAST( NULL AS SIGNED ) / 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT CAST ( NULL AS INTEGER ) / 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL - MIN( + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL - MIN ( + 37 )
----
-37

query I rowsort
SELECT ALL 15 + 76 AS col1
----
91

query I rowsort
SELECT ALL 27 + + 19 * + - 92
----
-1721

query II rowsort
SELECT DISTINCT - 28 * - 49 * - + 47 AS col0, 96
----
-64484
96

query I rowsort
SELECT ALL - 17 * + 49 col2
----
-833

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT DISTINCT - + NULLIF ( + COUNT( * ), - COUNT( DISTINCT 75 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT - + NULLIF ( + COUNT ( * ), - COUNT ( DISTINCT 75 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT + - CAST( + 77 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-9283
SELECT + - CAST ( + 77 AS INTEGER )
----
-77

query II rowsort
SELECT 29, 90 * - 70 * - 40 col0
----
29
252000

query I rowsort
SELECT ALL 30 - 97
----
-67

query II rowsort
SELECT - ( - 89 ) * + 72 AS col2, 9 + 56 AS col1
----
6408
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9287
SELECT DISTINCT + - 65 DIV + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT + - 65 / + 68 AS col1
----
0

query I rowsort
SELECT 96 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT DISTINCT + ( 4 ) * - + COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT + ( 4 ) * - + COUNT ( * ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9290
SELECT DISTINCT + - 73 DIV - COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT + - 73 / - COUNT ( * ) AS col2
----
73

query I rowsort
SELECT DISTINCT + + 23 * + 13
----
299

query II rowsort
SELECT + 1 AS col1, 73 AS col1
----
1
73

query I rowsort
SELECT ALL + 74 * + - 23 AS col1
----
-1702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9294
SELECT 44 DIV COALESCE ( + - 19, + - 85 + + COUNT( * ) + + 52 DIV - 26 * + + 63 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9294
SELECT 44 / COALESCE ( + - 19, + - 85 + + COUNT ( * ) + + 52 / - 26 * + + 63 ) AS col1
----
-2

query I rowsort
SELECT 50 + + - 11 + + 26 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9296
SELECT DISTINCT CAST( - 54 AS SIGNED ) * + 13 * + 91 AS col0, 43 AS col2
----
-63882
43

skipif mysql # not compatible
query II rowsort label-9296
SELECT DISTINCT CAST ( - 54 AS INTEGER ) * + 13 * + 91 AS col0, 43 AS col2
----
-63882
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT 60 + - + SUM( ALL + 56 )
----
4

skipif mysql # not compatible
query I rowsort label-9297
SELECT 60 + - + SUM ( ALL + 56 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9298
SELECT DISTINCT + 95 * 66 AS col2, - SUM( + - ( - 4 ) ) DIV + - ( + NULLIF ( - - ( - 36 ), - 80 + + 63 ) ) AS col0
----
6270
0

skipif mysql # not compatible
query II rowsort label-9298
SELECT DISTINCT + 95 * 66 AS col2, - SUM ( + - ( - 4 ) ) / + - ( + NULLIF ( - - ( - 36 ), - 80 + + 63 ) ) AS col0
----
6270
0

query II rowsort
SELECT DISTINCT 41 + + 26 AS col1, 33 + + 11
----
67
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT DISTINCT 58 * + + 79 + - COUNT( * ) AS col1
----
4581

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT 58 * + + 79 + - COUNT ( * ) AS col1
----
4581

query I rowsort
SELECT NULLIF ( + 1, - 45 + - 49 * - 11 )
----
1

query I rowsort
SELECT ALL 33 * 11 + - 41 AS col2
----
322

query I rowsort
SELECT + 58 + + 82 AS col0
----
140

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9304
SELECT - CAST( NULL AS DECIMAL ) / - CASE ( - 63 ) WHEN ( + COALESCE ( + - ( 90 ), + + 33 + 7 ) ) THEN - 38 + + + 79 + + ( + 48 ) WHEN - 69 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT - CAST ( NULL AS REAL ) / - CASE ( - 63 ) WHEN ( + COALESCE ( + - ( 90 ), + + 33 + 7 ) ) THEN - 38 + + + 79 + + ( + 48 ) WHEN - 69 THEN NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT DISTINCT - + 29 * 12 + + + 76 - + - 38 DIV 90 - + 27 * 81
----
-2459

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT - + 29 * 12 + + + 76 - + - 38 / 90 - + 27 * 81
----
-2459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT - 56 * CAST( - 6 AS SIGNED )
----
336

skipif mysql # not compatible
query I rowsort label-9306
SELECT - 56 * CAST ( - 6 AS INTEGER )
----
336

query I rowsort
SELECT DISTINCT + - ( - 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9308
SELECT + - COUNT( 50 ) DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-9308
SELECT + - COUNT ( 50 ) / - 25
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9309
SELECT + + CASE 33 WHEN 2 THEN NULL WHEN + - 85 * COUNT( DISTINCT + ( + 97 ) ) + + + 2 * + + CAST( NULL AS SIGNED ) THEN NULL ELSE - + CAST( NULL AS DECIMAL ) END * - NULLIF ( - 8, - 46 + + ( + 79 ) ) / 53 + + 43 / - 60 - 92 + - 7 - ( - - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT + + CASE 33 WHEN 2 THEN NULL WHEN + - 85 * COUNT ( DISTINCT + ( + 97 ) ) + + + 2 * + + CAST ( NULL AS INTEGER ) THEN NULL ELSE - + CAST ( NULL AS REAL ) END * - NULLIF ( - 8, - 46 + + ( + 79 ) ) / 53 + + 43 / - 60 - 92 + - 7 - ( - - 65 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT - + 4 * - 82 + + CAST( - 19 AS SIGNED ) - - 49 - + CAST( NULL AS SIGNED ) + + COALESCE ( - 0, - - 14, + - 61 * 54 ) * + 50 + - - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT - + 4 * - 82 + + CAST ( - 19 AS INTEGER ) - - 49 - + CAST ( NULL AS INTEGER ) + + COALESCE ( - 0, - - 14, + - 61 * 54 ) * + 50 + - - 26 AS col1
----
NULL

query I rowsort
SELECT + 33 * 67
----
2211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9312
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) + - + 85 + - 99 * - 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - + 85 + - 99 * - 76 AS col1
----
NULL

query II rowsort
SELECT + 56 + - 12 * + 43 * + 76 col0, 16 * - ( 67 ) + - 70
----
-39160
-1142

query I rowsort
SELECT ALL 30 * - 76 * + 5 AS col2
----
-11400

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT + COUNT( * ) * - 61 * + + 52
----
-3172

skipif mysql # not compatible
query I rowsort label-9315
SELECT + COUNT ( * ) * - 61 * + + 52
----
-3172

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT - + 67 * + MIN( 55 )
----
-3685

skipif mysql # not compatible
query I rowsort label-9316
SELECT - + 67 * + MIN ( 55 )
----
-3685

query I rowsort
SELECT ALL - 87 + - 75 AS col2
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9318
SELECT ALL 57 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL 57 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 23 + + 68 AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9320
SELECT ALL CAST( NULL AS DECIMAL ) * - - COALESCE ( 12, + + 28 * 26 * - 62 + + 32 + - COUNT( * ) * + + 40, - 39 * + COUNT( * ) + - - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL CAST ( NULL AS REAL ) * - - COALESCE ( 12, + + 28 * 26 * - 62 + + 32 + - COUNT ( * ) * + + 40, - 39 * + COUNT ( * ) + - - 12 )
----
NULL

query I rowsort
SELECT + 94 + - 16 * - 13 * + - NULLIF ( + 86, 12 ) AS col0
----
-17794

onlyif mysql # aggregate syntax: 
query II rowsort label-9322
SELECT ALL NULLIF ( - - COUNT( * ), - - ( 99 ) - + 85 ), - 43 * 95 AS col1
----
1
-4085

skipif mysql # not compatible
query II rowsort label-9322
SELECT ALL NULLIF ( - - COUNT ( * ), - - ( 99 ) - + 85 ), - 43 * 95 AS col1
----
1
-4085

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT ALL 18 + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL 18 + COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL + COUNT( * ) * + 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL + COUNT ( * ) * + 65 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9325
SELECT 6, + CAST( - + 20 AS SIGNED ) * - - 83 AS col0
----
6
-1660

skipif mysql # not compatible
query II rowsort label-9325
SELECT 6, + CAST ( - + 20 AS INTEGER ) * - - 83 AS col0
----
6
-1660

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL - 9 + - COALESCE ( COALESCE ( + 69, 48, + ( - - 68 ) * - ( 20 ) - - COUNT( * ) ), + ( + + 99 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL - 9 + - COALESCE ( COALESCE ( + 69, 48, + ( - - 68 ) * - ( 20 ) - - COUNT ( * ) ), + ( + + 99 ) ) AS col1
----
-78

query I rowsort
SELECT - 5 * - 85 col0
----
425

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT + MIN( + - 72 ) * + 41 col2
----
-2952

skipif mysql # not compatible
query I rowsort label-9328
SELECT + MIN ( + - 72 ) * + 41 col2
----
-2952

onlyif mysql # aggregate syntax: 
query III rowsort label-9329
SELECT - 57 AS col1, COUNT( * ) * - - 64, - + 99 * - - 8 * 56 + COUNT( * ) + - 10 + - 87 + - + 54 AS col0
----
-57
64
-44502

skipif mysql # not compatible
query III rowsort label-9329
SELECT - 57 AS col1, COUNT ( * ) * - - 64, - + 99 * - - 8 * 56 + COUNT ( * ) + - 10 + - 87 + - + 54 AS col0
----
-57
64
-44502

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT ALL - 19 * - COUNT( - 7 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL - 19 * - COUNT ( - 7 ) AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT + 69 - 44 * + - CAST( NULL AS SIGNED ) * + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT + 69 - 44 * + - CAST ( NULL AS INTEGER ) * + 29 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9332
SELECT DISTINCT NULLIF ( + + 6, + - 61 / - 89 + 20 ) AS col2, 39 * - + CAST( NULL AS SIGNED )
----
6
NULL

skipif mysql # not compatible
query II rowsort label-9332
SELECT DISTINCT NULLIF ( + + 6, + - 61 / - 89 + 20 ) AS col2, 39 * - + CAST ( NULL AS INTEGER )
----
6
NULL

query I rowsort
SELECT ALL + 46 * + 71
----
3266

onlyif mysql # aggregate syntax: 
query II rowsort label-9334
SELECT + 85 * + 39 - + - 63, MAX( ALL - + 55 ) * - 49 AS col1
----
3378
2695

skipif mysql # not compatible
query II rowsort label-9334
SELECT + 85 * + 39 - + - 63, MAX ( ALL - + 55 ) * - 49 AS col1
----
3378
2695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9335
SELECT ALL COUNT( - - 69 ) / - - 2 - + + CAST( NULL AS SIGNED ) + - 60 + - + 93 AS col2, 69
----
NULL
69

skipif mysql # not compatible
query II rowsort label-9335
SELECT ALL COUNT ( - - 69 ) / - - 2 - + + CAST ( NULL AS INTEGER ) + - 60 + - + 93 AS col2, 69
----
NULL
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9336
SELECT ALL - 60 DIV - - 59 + + COUNT( + ( - 92 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL - 60 / - - 59 + + COUNT ( + ( - 92 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT - 16 * - - MIN( ALL + 26 ) * 66 AS col1
----
-27456

skipif mysql # not compatible
query I rowsort label-9337
SELECT - 16 * - - MIN ( ALL + 26 ) * 66 AS col1
----
-27456

query I rowsort
SELECT - 92 - - - NULLIF ( - 45, + 45 ) AS col2
----
-47

query II rowsort
SELECT ALL + 55 AS col2, + 19
----
55
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - - CASE - - CASE - 33 WHEN COUNT( * ) THEN NULL ELSE - 99 END WHEN + 87 THEN + NULLIF ( + COUNT( - 26 ), + - 60 ) ELSE 12 * + + 63 END * 73 - + ( + + 8 ) * - NULLIF ( - NULLIF ( + 89, 22 * + - 27 ), - 98 ) AS col0
----
54476

skipif mysql # not compatible
query I rowsort label-9340
SELECT - - CASE - - CASE - 33 WHEN COUNT ( * ) THEN NULL ELSE - 99 END WHEN + 87 THEN + NULLIF ( + COUNT ( - 26 ), + - 60 ) ELSE 12 * + + 63 END * 73 - + ( + + 8 ) * - NULLIF ( - NULLIF ( + 89, 22 * + - 27 ), - 98 ) AS col0
----
54476

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT - - MIN( DISTINCT - + 47 ) * - + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-9341
SELECT - - MIN ( DISTINCT - + 47 ) * - + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query III rowsort label-9342
SELECT DISTINCT + ( - SUM( DISTINCT - 95 ) ) col1, 80 + - 62 + + 93 AS col0, + + 94 AS col0
----
95
111
94

skipif mysql # not compatible
query III rowsort label-9342
SELECT DISTINCT + ( - SUM ( DISTINCT - 95 ) ) col1, 80 + - 62 + + 93 AS col0, + + 94 AS col0
----
95
111
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT - + 3 + + - COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9343
SELECT - + 3 + + - COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT ALL + 34 * - 61 AS col0
----
-2074

query I rowsort
SELECT - - COALESCE ( - 17, + 8 ) + - + 90 AS col2
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT ALL + COALESCE ( + 10, - 82 + + 7 + + 78 + + 17 * + - SUM( - - 26 ) + + + 68 )
----
10

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL + COALESCE ( + 10, - 82 + + 7 + + 78 + + 17 * + - SUM ( - - 26 ) + + + 68 )
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-9347
SELECT DISTINCT + + 56 col0, 89 DIV - 15 + 35
----
56
30

skipif mysql # not compatible
query II rowsort label-9347
SELECT DISTINCT + + 56 col0, 89 / - 15 + 35
----
56
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9348
SELECT - CASE - CAST( NULL AS DECIMAL ) WHEN + 56 + - 85 + + 83 * - SUM( + CAST( - - 79 AS SIGNED ) ) THEN NULL ELSE - - COUNT( ALL 56 ) END * + 17 + + + 99 + 4 * MAX( ALL + 42 ) + COALESCE ( - 82, 34, + 28 ) + - ( - ( 85 ) ) * + 72 AS col2
----
6288

skipif mysql # not compatible
query I rowsort label-9348
SELECT - CASE - CAST ( NULL AS REAL ) WHEN + 56 + - 85 + + 83 * - SUM ( + CAST ( - - 79 AS INTEGER ) ) THEN NULL ELSE - - COUNT ( ALL 56 ) END * + 17 + + + 99 + 4 * MAX ( ALL + 42 ) + COALESCE ( - 82, 34, + 28 ) + - ( - ( 85 ) ) * + 72 AS col2
----
6288

query I rowsort
SELECT DISTINCT + + 39 col2
----
39

query I rowsort
SELECT - - 79 + + 92
----
171

query I rowsort
SELECT ALL - + ( + 5 ) * - 63 col1
----
315

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9352
SELECT + ( - COUNT( * ) ) DIV 26 * + - MIN( - - 25 ) * 97 * + SUM( - 77 ) AS col2, 20 col0
----
0
20

skipif mysql # not compatible
query II rowsort label-9352
SELECT + ( - COUNT ( * ) ) / 26 * + - MIN ( - - 25 ) * 97 * + SUM ( - 77 ) AS col2, 20 col0
----
0
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9353
SELECT + 31 + 69 DIV COUNT( * ) - - 39 + 17 DIV + 47 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-9353
SELECT + 31 + 69 / COUNT ( * ) - - 39 + 17 / + 47 AS col1
----
139

query I rowsort
SELECT ( - - ( + + 44 ) )
----
44

query I rowsort
SELECT - 75 * + 5 AS col2
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT + ( 76 ) + + MIN( DISTINCT + + 58 ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-9356
SELECT + ( 76 ) + + MIN ( DISTINCT + + 58 ) AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT 56 * - 66 + + COUNT( * ) AS col2
----
-3695

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT 56 * - 66 + + COUNT ( * ) AS col2
----
-3695

query I rowsort
SELECT + - 52 * - 18 AS col1
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL COALESCE ( 59, - COUNT( * ) + + + 46 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL COALESCE ( 59, - COUNT ( * ) + + + 46 ) AS col2
----
59

query I rowsort
SELECT ALL ( + - 7 ) * - 51 col2
----
357

query II rowsort
SELECT - ( - + 80 ), + 24 AS col2
----
80
24

query I rowsort
SELECT ALL 38 * + 71 * - + 96 + - + 13 * - 39
----
-258501

query I rowsort
SELECT ALL 77 + 26 AS col0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9364
SELECT ALL 0 + + ( COUNT( * ) ) * - 46, + 61 * - 77 DIV + COUNT( * ) AS col2
----
-46
-4697

skipif mysql # not compatible
query II rowsort label-9364
SELECT ALL 0 + + ( COUNT ( * ) ) * - 46, + 61 * - 77 / + COUNT ( * ) AS col2
----
-46
-4697

query I rowsort
SELECT DISTINCT 12 + - - 98
----
110

query I rowsort
SELECT ALL 70 * + ( 39 )
----
2730

query II rowsort
SELECT - 52 AS col1, + 9
----
-52
9

query II rowsort
SELECT - 54 AS col2, 75
----
-54
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL + 42 - + + 91 + + - ( - - 29 ) + - - MAX( ALL - 28 )
----
-106

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL + 42 - + + 91 + + - ( - - 29 ) + - - MAX ( ALL - 28 )
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-9370
SELECT ALL - ( - 30 ) DIV - 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL - ( - 30 ) / - 45 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9371
SELECT - 75, COALESCE ( 58, + 80 ) + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + + 60 AS col1
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-9371
SELECT - 75, COALESCE ( 58, + 80 ) + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 60 AS col1
----
-75
NULL

query II rowsort
SELECT 77, 60 AS col2
----
77
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9373
SELECT COUNT( * ) DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9373
SELECT COUNT ( * ) / - 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT - 80 * 8 + + NULLIF ( + SUM( DISTINCT - 56 ), + MIN( DISTINCT 50 ) ) AS col2
----
-696

skipif mysql # not compatible
query I rowsort label-9374
SELECT - 80 * 8 + + NULLIF ( + SUM ( DISTINCT - 56 ), + MIN ( DISTINCT 50 ) ) AS col2
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL + COUNT( * ) * COALESCE ( - COALESCE ( + - ( + MIN( - 39 ) ), - 3 * + COUNT( * ) ), 49, - 55 * 76 ) * + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL + COUNT ( * ) * COALESCE ( - COALESCE ( + - ( + MIN ( - 39 ) ), - 3 * + COUNT ( * ) ), 49, - 55 * 76 ) * + COUNT ( * )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT ALL - + CAST( + 63 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL - + CAST ( + 63 AS INTEGER ) AS col2
----
-63

query II rowsort
SELECT + 1, ( - + 74 ) AS col2
----
1
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT - 36 * + 41 * - MIN( + ( 79 ) )
----
116604

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT - 36 * + 41 * - MIN ( + ( 79 ) )
----
116604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9379
SELECT ALL - - COALESCE ( 2, + CAST( NULL AS SIGNED ) + + COUNT( * ) + 89 + - ( 80 ) * - + 90, - - 35, 72 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL - - COALESCE ( 2, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + 89 + - ( 80 ) * - + 90, - - 35, 72 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT COALESCE ( 67, + - 0 * + + 85, + 93 + + 20 + 10, - COUNT( * ) ) * - - 48 AS col1
----
3216

skipif mysql # not compatible
query I rowsort label-9380
SELECT COALESCE ( 67, + - 0 * + + 85, + 93 + + 20 + 10, - COUNT ( * ) ) * - - 48 AS col1
----
3216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT DISTINCT - COALESCE ( ( + CAST( NULL AS SIGNED ) ), - + 12 ) * - 45 * - ( + 28 )
----
15120

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT - COALESCE ( ( + CAST ( NULL AS INTEGER ) ), - + 12 ) * - 45 * - ( + 28 )
----
15120

query I rowsort
SELECT 64 * - 69
----
-4416

query I rowsort
SELECT + - CASE - 72 WHEN - - 61 THEN NULL ELSE - 7 END AS col1
----
7

query I rowsort
SELECT 82 * - - ( 69 )
----
5658

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT CASE - 44 WHEN MIN( - - 25 ) THEN + 24 + - 3 + 71 WHEN + - 61 + - 59 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT CASE - 44 WHEN MIN ( - - 25 ) THEN + 24 + - 3 + 71 WHEN + - 61 + - 59 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - - 54 + - 23
----
31

query II rowsort
SELECT + 8 AS col1, 31
----
8
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9388
SELECT + CAST( + ( + - CASE - - MAX( DISTINCT - - 35 ) WHEN ( - COUNT( * ) ) * 74 * + 93 THEN NULL ELSE - 11 END ) AS SIGNED ) * 53 - + COUNT( * )
----
582

skipif mysql # not compatible
query I rowsort label-9388
SELECT + CAST ( + ( + - CASE - - MAX ( DISTINCT - - 35 ) WHEN ( - COUNT ( * ) ) * 74 * + 93 THEN NULL ELSE - 11 END ) AS INTEGER ) * 53 - + COUNT ( * )
----
582

query II rowsort
SELECT ALL - - 35 AS col0, + 79 * + - 95
----
35
-7505

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT + ( 51 ) + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT + ( 51 ) + COUNT ( * )
----
52

query I rowsort
SELECT ALL 48 * + + 57 * 93 AS col1
----
254448

query I rowsort
SELECT DISTINCT - + ( - 11 ) * + 51 AS col1
----
561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9393
SELECT 53 + 0 + ( - 1 ) - - COUNT( * ) * + CAST( NULL AS SIGNED ) * 36 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9393
SELECT 53 + 0 + ( - 1 ) - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 36 * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 89 - - 92 * CASE - - 70 WHEN 70 + - AVG ( + 28 ) * - - 45 THEN - COALESCE ( + 73, + - 54, 77 ) END
----
NULL

query II rowsort
SELECT 95 + - 75 * - 36, 52 AS col2
----
2795
52

query I rowsort
SELECT ( 89 ) - - - 68 * + 74
----
-4943

onlyif mysql # DIV for integer division: 
query I rowsort label-9397
SELECT ALL 23 - 41 - + 26 - + 59 DIV + 86 * 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL 23 - 41 - + 26 - + 59 / + 86 * 44 AS col1
----
-44

query I rowsort
SELECT 79 * - 92 * + 60 * - - 66 * - 70 AS col2
----
2014689600

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT COUNT( * ) * + ( 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9399
SELECT COUNT ( * ) * + ( 60 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT 99 - CASE + - COUNT( * ) WHEN 59 THEN - 62 ELSE NULL END + + 48 + + 90 + 18 + - - 36 * - SUM( 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT 99 - CASE + - COUNT ( * ) WHEN 59 THEN - 62 ELSE NULL END + + 48 + + 90 + 18 + - - 36 * - SUM ( 83 )
----
NULL

query I rowsort
SELECT 88 + - 77 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9402
SELECT DISTINCT + 1 DIV - 3, COUNT( - 83 ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-9402
SELECT DISTINCT + 1 / - 3, COUNT ( - 83 ) AS col2
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9403
SELECT DISTINCT 52 * - 0 * + 73 DIV - - 51
----
0

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT 52 * - 0 * + 73 / - - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT 14 * + CASE - COUNT( * ) WHEN + + 59 THEN NULL WHEN + 50 * 78 + + 52 THEN 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9404
SELECT 14 * + CASE - COUNT ( * ) WHEN + + 59 THEN NULL WHEN + 50 * 78 + + 52 THEN 65 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9405
SELECT - MAX( DISTINCT + CAST( - 67 AS SIGNED ) )
----
67

skipif mysql # not compatible
query I rowsort label-9405
SELECT - MAX ( DISTINCT + CAST ( - 67 AS INTEGER ) )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT 4 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT 4 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 51 * - 9 * + - 73 * - - 79 * + 91 AS col1
----
240881823

query I rowsort
SELECT 10 - - 59
----
69

query II rowsort
SELECT ( + 98 ) - - 53 + 10 + + - 89, - 25 + 58 AS col1
----
72
33

query I rowsort
SELECT - 6 * ( 49 ) + - 25 AS col2
----
-319

query I rowsort
SELECT + 99 - + 67 * + + 36 - + 81 * + - 93 AS col0
----
5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT - 10 * - 14 * - CAST( NULL AS SIGNED ) + + - 76 - 12 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT - 10 * - 14 * - CAST ( NULL AS INTEGER ) + + - 76 - 12 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9413
SELECT + 57 DIV 96, - 47 + - 17 AS col1
----
0
-64

skipif mysql # not compatible
query II rowsort label-9413
SELECT + 57 / 96, - 47 + - 17 AS col1
----
0
-64

query II rowsort
SELECT ALL + 76 * - + 49 + - 10 + + 82 * + 77 AS col1, 92 + 20
----
2580
112

query I rowsort
SELECT - 66 + + 49 AS col2
----
-17

query I rowsort
SELECT ALL - - NULLIF ( 4, 9 * + 11 * 25 * - - 89 * + + 76 + 70 * - 82 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + COUNT( * ) * ( 64 ) + + 63
----
127

skipif mysql # not compatible
query I rowsort label-9417
SELECT + COUNT ( * ) * ( 64 ) + + 63
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL - + MAX( 16 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - + MAX ( 16 ) col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-9419
SELECT 99 + - COUNT( * ), - 58 AS col1
----
98
-58

skipif mysql # not compatible
query II rowsort label-9419
SELECT 99 + - COUNT ( * ), - 58 AS col1
----
98
-58

query II rowsort
SELECT + + ( + - 22 ), 8 AS col2
----
-22
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT + CASE - 25 WHEN - COUNT( * ) * - ( + 11 ) * - 51 + + AVG ( DISTINCT - - 72 ) + - COUNT( * ) * + 80 + 90 / COALESCE ( 98, - 95, - + 8 ) * 92 * - 15 + + COUNT( DISTINCT 5 ) THEN - + 34 * - - 75 WHEN + 24 * - 13 THEN NULL ELSE + COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9421
SELECT + CASE - 25 WHEN - COUNT ( * ) * - ( + 11 ) * - 51 + + AVG ( DISTINCT - - 72 ) + - COUNT ( * ) * + 80 + 90 / COALESCE ( 98, - 95, - + 8 ) * 92 * - 15 + + COUNT ( DISTINCT 5 ) THEN - + 34 * - - 75 WHEN + 24 * - 13 THEN NULL ELSE + COUNT ( * ) END AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9422
SELECT + COALESCE ( - ( + 93 ), - 44 DIV + 36 - 62 + - CAST( NULL AS SIGNED ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9422
SELECT + COALESCE ( - ( + 93 ), - 44 / + 36 - 62 + - CAST ( NULL AS INTEGER ) ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - COUNT( * ) + - COUNT( * ) + 56 * + 31 AS col0
----
1734

skipif mysql # not compatible
query I rowsort label-9423
SELECT - COUNT ( * ) + - COUNT ( * ) + 56 * + 31 AS col0
----
1734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9424
SELECT + 41 AS col0, + COALESCE ( + CAST( NULL AS SIGNED ), - COALESCE ( - 69, NULLIF ( + 67, - - CASE - + ( + 63 ) WHEN + ( + 83 ) + + + CAST( NULL AS SIGNED ) THEN - + 1 WHEN + + 98 THEN NULL END ) * - CAST( - - 59 AS SIGNED ) * 74 - + 53 * + 16 * 84 + 79 + 63 DIV + CASE 28 WHEN NULLIF ( CAST( + + 9 AS SIGNED ), + 0 * - 11 + + + 18 DIV - 68 * 99 * CASE COUNT( * ) WHEN + - SUM( ALL 27 ) THEN - 56 * - 54 * + - CAST( NULL AS SIGNED ) + + 98 END + - 11 ) THEN 47 ELSE + 15 END ) * + 87 - 33 DIV - 32, MIN( ALL 80 ) )
----
41
6004

skipif mysql # not compatible
query II rowsort label-9424
SELECT + 41 AS col0, + COALESCE ( + CAST ( NULL AS INTEGER ), - COALESCE ( - 69, NULLIF ( + 67, - - CASE - + ( + 63 ) WHEN + ( + 83 ) + + + CAST ( NULL AS INTEGER ) THEN - + 1 WHEN + + 98 THEN NULL END ) * - CAST ( - - 59 AS INTEGER ) * 74 - + 53 * + 16 * 84 + 79 + 63 / + CASE 28 WHEN NULLIF ( CAST ( + + 9 AS INTEGER ), + 0 * - 11 + + + 18 / - 68 * 99 * CASE COUNT ( * ) WHEN + - SUM ( ALL 27 ) THEN - 56 * - 54 * + - CAST ( NULL AS INTEGER ) + + 98 END + - 11 ) THEN 47 ELSE + 15 END ) * + 87 - 33 / - 32, MIN ( ALL 80 ) )
----
41
6004

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT ALL + 60 - - + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL + 60 - - + COUNT ( * ) AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9426
SELECT DISTINCT - COUNT( * ) * - - COALESCE ( 67, + 87 * 81 DIV + + 3 ) * + - 85 * - SUM( + 60 )
----
-341700

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT - COUNT ( * ) * - - COALESCE ( 67, + 87 * 81 / + + 3 ) * + - 85 * - SUM ( + 60 )
----
-341700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9427
SELECT - CAST( NULL AS SIGNED ) + 45 * + COUNT( * ) * + 29 * + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT - CAST ( NULL AS INTEGER ) + 45 * + COUNT ( * ) * + 29 * + - 88
----
NULL

query I rowsort
SELECT ALL + 87 * + - 99
----
-8613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9429
SELECT ALL + 15 DIV - + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL + 15 / - + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL - MIN( + 58 ) - 60 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - MIN ( + 58 ) - 60 AS col1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT ALL + COUNT( - 35 ) * + 92
----
92

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL + COUNT ( - 35 ) * + 92
----
92

query I rowsort
SELECT - CASE + - 92 WHEN + 42 THEN + 95 * - 69 WHEN - 65 THEN + - ( - - 41 ) WHEN + 95 THEN NULL END + - 23
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9433
SELECT - 39 DIV MAX( ALL - 99 ) col0, + 4 + ( 64 )
----
0
68

skipif mysql # not compatible
query II rowsort label-9433
SELECT - 39 / MAX ( ALL - 99 ) col0, + 4 + ( 64 )
----
0
68

query I rowsort
SELECT - 57 + - 13 AS col2
----
-70

query I rowsort
SELECT - 15 * - + 44 AS col2
----
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT ALL CAST( NULL AS SIGNED ) * + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL CAST ( NULL AS INTEGER ) * + + 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9437
SELECT - 9 + 36 * - - MAX( DISTINCT CAST( NULL AS SIGNED ) ) / + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT - 9 + 36 * - - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) / + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT DISTINCT + CASE + + 74 WHEN + MIN( + 30 ) THEN NULL WHEN - 8 / + COUNT( * ) * + 2 - + 85 / - + COUNT( * ) * - - 70 + - 70 THEN + 11 + - - 76 ELSE COUNT( COALESCE ( + 8, 94, - 27 ) ) + - - 11 * + 95 + 34 + 56 END AS col0
----
1136

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT + CASE + + 74 WHEN + MIN ( + 30 ) THEN NULL WHEN - 8 / + COUNT ( * ) * + 2 - + 85 / - + COUNT ( * ) * - - 70 + - 70 THEN + 11 + - - 76 ELSE COUNT ( COALESCE ( + 8, 94, - 27 ) ) + - - 11 * + 95 + 34 + 56 END AS col0
----
1136

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT ALL 1 + - + 38 + - COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL 1 + - + 38 + - COUNT ( * ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9440
SELECT DISTINCT + COUNT( * ) * + 27 + - 84, 70 col0
----
-57
70

skipif mysql # not compatible
query II rowsort label-9440
SELECT DISTINCT + COUNT ( * ) * + 27 + - 84, 70 col0
----
-57
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL 86 * + 2 + + + 54 + COUNT( * ) col2
----
227

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL 86 * + 2 + + + 54 + COUNT ( * ) col2
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT + 0 * + CAST( - 5 AS SIGNED ) * - - 43 + 89 * 78 col2
----
6942

skipif mysql # not compatible
query I rowsort label-9442
SELECT + 0 * + CAST ( - 5 AS INTEGER ) * - - 43 + 89 * 78 col2
----
6942

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT + COUNT( * ) - - 85
----
86

skipif mysql # not compatible
query I rowsort label-9443
SELECT + COUNT ( * ) - - 85
----
86

query II rowsort
SELECT + + 26, 70 AS col1
----
26
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9445
SELECT + 77, CASE 83 WHEN + + COUNT( * ) THEN NULL WHEN COUNT( * ) + + - 74 + + COUNT( * ) + - 48 + 77 + 31 * 43 * - 97 * COUNT( DISTINCT + 34 ) * + - 7 THEN NULL WHEN - 27 THEN NULL ELSE + + 5 END AS col2
----
77
5

skipif mysql # not compatible
query II rowsort label-9445
SELECT + 77, CASE 83 WHEN + + COUNT ( * ) THEN NULL WHEN COUNT ( * ) + + - 74 + + COUNT ( * ) + - 48 + 77 + 31 * 43 * - 97 * COUNT ( DISTINCT + 34 ) * + - 7 THEN NULL WHEN - 27 THEN NULL ELSE + + 5 END AS col2
----
77
5

query II rowsort
SELECT ALL 94 * 59 + + 82 - 53 * + - 53 + - 63 * - 57 - 96 col1, 23 AS col0
----
11932
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9447
SELECT + - COUNT( * ) * - 16 DIV + + 61
----
0

skipif mysql # not compatible
query I rowsort label-9447
SELECT + - COUNT ( * ) * - 16 / + + 61
----
0

query II rowsort
SELECT ALL 41 * 28 AS col0, 55 AS col0
----
1148
55

query I rowsort
SELECT + 63 * 58 - - 68
----
3722

query I rowsort
SELECT + CASE 1 WHEN - 38 - + + 52 THEN - + 98 ELSE NULL END - - 11
----
NULL

query I rowsort
SELECT ALL 88 * - 18 AS col1
----
-1584

query I rowsort
SELECT - ( + + 19 )
----
-19

query I rowsort
SELECT - 18 * 4 - 54 * - + 50
----
2628

query I rowsort
SELECT + ( - + ( + 24 ) ) * + 89
----
-2136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9455
SELECT ALL CASE 19 WHEN - 51 * + 21 THEN CAST( NULL AS SIGNED ) + + MIN( ALL - + 15 ) WHEN + - 39 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL CASE 19 WHEN - 51 * + 21 THEN CAST ( NULL AS INTEGER ) + + MIN ( ALL - + 15 ) WHEN + - 39 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 33 * 69
----
-2277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9457
SELECT ALL MIN( + CAST( - 66 AS SIGNED ) )
----
-66

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL MIN ( + CAST ( - 66 AS INTEGER ) )
----
-66

query I rowsort
SELECT DISTINCT + ( + 54 ) + - COALESCE ( - ( + 34 ), + 79 + 39 )
----
88

query I rowsort
SELECT ALL - 84 + + 22 col1
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9460
SELECT DISTINCT COALESCE ( - 21, + COUNT( ALL - 99 ), COUNT( * ) * 61 + - + 6 DIV - 29 + + COALESCE ( - ( + NULLIF ( + - SUM( + 53 ), 41 ) ), 2, - 88 * + - 62 - - ( - CASE - 82 WHEN + 75 THEN - 32 END ) ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT COALESCE ( - 21, + COUNT ( ALL - 99 ), COUNT ( * ) * 61 + - + 6 / - 29 + + COALESCE ( - ( + NULLIF ( + - SUM ( + 53 ), 41 ) ), 2, - 88 * + - 62 - - ( - CASE - 82 WHEN + 75 THEN - 32 END ) ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL + 21 + + SUM( ( + 60 ) ) - - ( + 8 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + 21 + + SUM ( ( + 60 ) ) - - ( + 8 ) AS col2
----
89

query I rowsort
SELECT ALL - 15 + + 92
----
77

query I rowsort
SELECT - 98 + + - NULLIF ( - ( - - 86 ), - NULLIF ( + 54, 74 ) * 39 / - AVG ( ALL - + 44 ) ) col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9464
SELECT COALESCE ( + COUNT( 17 ), - - 30 * 28 + - CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9464
SELECT COALESCE ( + COUNT ( 17 ), - - 30 * 28 + - CAST ( NULL AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9465
SELECT - - COUNT( * ) DIV - SUM( + 63 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9465
SELECT - - COUNT ( * ) / - SUM ( + 63 ) AS col1
----
0

query I rowsort
SELECT - - 18 * - 22
----
-396

query II rowsort
SELECT - ( - 49 ), 85 AS col2
----
49
85

query I rowsort
SELECT - + 43 - + 33
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9469
SELECT - CAST( 4 AS SIGNED ), - 98 * + 14 col2
----
-4
-1372

skipif mysql # not compatible
query II rowsort label-9469
SELECT - CAST ( 4 AS INTEGER ), - 98 * + 14 col2
----
-4
-1372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) / - + ( - ( ( + 76 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) / - + ( - ( ( + 76 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - - 69 + - COUNT( * ) + NULLIF ( - 57, COUNT( * ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9471
SELECT - - 69 + - COUNT ( * ) + NULLIF ( - 57, COUNT ( * ) ) AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9472
SELECT ALL - 47 / CAST( NULL AS SIGNED ) * - 33 + - 45 / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL - 47 / CAST ( NULL AS INTEGER ) * - 33 + - 45 / - - COUNT ( * )
----
NULL

query I rowsort
SELECT 49 - - 31
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9474
SELECT - 98 - - 83 - + 33 - 88 + + - 10 * - + ( + + COUNT( * ) ) + 48 * CAST( 26 AS SIGNED ) + 45 * - 40
----
-678

skipif mysql # not compatible
query I rowsort label-9474
SELECT - 98 - - 83 - + 33 - 88 + + - 10 * - + ( + + COUNT ( * ) ) + 48 * CAST ( 26 AS INTEGER ) + 45 * - 40
----
-678

query I rowsort
SELECT 97 + + - 3 AS col2
----
94

query II rowsort
SELECT - 63 * - 87 * 13 - - 66 + - - 1 + + + 59 + - 51 + - + 64 + 95 + 52 AS col0, + 24
----
71411
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9477
SELECT - - ( COALESCE ( - + 90, - 25 * + + ( - ( + 89 ) ) * + - 46, + - 79 * - 86 ) ) DIV 29 + - NULLIF ( + + COUNT( * ), + - 86 )
----
-4

skipif mysql # not compatible
query I rowsort label-9477
SELECT - - ( COALESCE ( - + 90, - 25 * + + ( - ( + 89 ) ) * + - 46, + - 79 * - 86 ) ) / 29 + - NULLIF ( + + COUNT ( * ), + - 86 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9478
SELECT + 64 + - 73 * + COUNT( * ) + + 10, 33 AS col2
----
1
33

skipif mysql # not compatible
query II rowsort label-9478
SELECT + 64 + - 73 * + COUNT ( * ) + + 10, 33 AS col2
----
1
33

query I rowsort
SELECT DISTINCT + 14 * 91 col1
----
1274

query I rowsort
SELECT + 96 * + 56 + 35
----
5411

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT ALL - COUNT( ALL + 76 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL - COUNT ( ALL + 76 ) col0
----
-1

query I rowsort
SELECT ( - 86 ) * + - 62 + 46
----
5378

onlyif mysql # DIV for integer division: 
query I rowsort label-9483
SELECT 85 + COALESCE ( - - 76, + - 27 ) DIV - 47 + + - 0 + + 45 col2
----
129

skipif mysql # not compatible
query I rowsort label-9483
SELECT 85 + COALESCE ( - - 76, + - 27 ) / - 47 + + - 0 + + 45 col2
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT 94 / - - MIN( + + ( CAST( NULL AS SIGNED ) ) ) * - 42 * 84 / + - 71 + - + ( 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT 94 / - - MIN ( + + ( CAST ( NULL AS INTEGER ) ) ) * - 42 * 84 / + - 71 + - + ( 33 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9485
SELECT - 52 * 10 DIV ( - NULLIF ( - 77, - + 48 DIV 8 - 55 * 60 ) ) + ( - 22 ) * + 63
----
-1392

skipif mysql # not compatible
query I rowsort label-9485
SELECT - 52 * 10 / ( - NULLIF ( - 77, - + 48 / 8 - 55 * 60 ) ) + ( - 22 ) * + 63
----
-1392

query II rowsort
SELECT ALL - 68, 16 AS col1
----
-68
16

query I rowsort
SELECT DISTINCT 93 * 68
----
6324

query I rowsort
SELECT ALL 28 + 85 AS col2
----
113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9489
SELECT 20 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT 20 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT DISTINCT 39 + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT 39 + COUNT ( * ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT DISTINCT + 52 + + 69 + 74 + + COUNT( * ) * - + 1 * + 0 * COUNT( * ) * + MIN( ALL 77 ) AS col1
----
195

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT + 52 + + 69 + 74 + + COUNT ( * ) * - + 1 * + 0 * COUNT ( * ) * + MIN ( ALL 77 ) AS col1
----
195

query II rowsort
SELECT ALL 26, 56 AS col1
----
26
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT COALESCE ( - COUNT( * ), 56 ) - + 19
----
-20

skipif mysql # not compatible
query I rowsort label-9493
SELECT COALESCE ( - COUNT ( * ), 56 ) - + 19
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9494
SELECT DISTINCT CAST( - NULLIF ( 80, + 20 ) AS SIGNED ) + - 91 + + - 73 AS col0, + 29
----
-244
29

skipif mysql # not compatible
query II rowsort label-9494
SELECT DISTINCT CAST ( - NULLIF ( 80, + 20 ) AS INTEGER ) + - 91 + + - 73 AS col0, + 29
----
-244
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT - + COUNT( DISTINCT - 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-9495
SELECT - + COUNT ( DISTINCT - 42 )
----
-1

query I rowsort
SELECT COALESCE ( - 29, + - 5 ) + - 56 col1
----
-85

query II rowsort
SELECT ALL 87 AS col0, - 9
----
87
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9498
SELECT + 79 + + + MAX( ALL - + 80 ), 39 AS col1
----
-1
39

skipif mysql # not compatible
query II rowsort label-9498
SELECT + 79 + + + MAX ( ALL - + 80 ), 39 AS col1
----
-1
39

query I rowsort
SELECT 94 + + 74
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9500
SELECT ALL COUNT( * ) - - 32 DIV ( 68 ) * + + 29 + 96 col1
----
97

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL COUNT ( * ) - - 32 / ( 68 ) * + + 29 + 96 col1
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9501
SELECT ALL - - 95 - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - - 95 - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT + 1 * - NULLIF ( 48, ( - 46 ) * - - 43 * + + 25 ) * COUNT( * ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT + 1 * - NULLIF ( 48, ( - 46 ) * - - 43 * + + 25 ) * COUNT ( * ) col2
----
-48

query I rowsort
SELECT + 68 + - + 58
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT + MAX( - - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-9504
SELECT + MAX ( - - 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT CASE 7 WHEN + - 36 THEN - ( 56 ) END + + + MAX( - - 82 ) - + - AVG ( 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9505
SELECT CASE 7 WHEN + - 36 THEN - ( 56 ) END + + + MAX ( - - 82 ) - + - AVG ( 36 ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 3 - 21
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9507
SELECT + NULLIF ( 91, - ( - + 9 ) * + + CASE + 15 WHEN + 61 THEN NULLIF ( 87, - 97 * - + 19 * 6 * - + 1 ) ELSE NULL END + 7 + - 88 * 99 * 65 + 32 + 76 ) * - - 6 DIV - COUNT( * )
----
-546

skipif mysql # not compatible
query I rowsort label-9507
SELECT + NULLIF ( 91, - ( - + 9 ) * + + CASE + 15 WHEN + 61 THEN NULLIF ( 87, - 97 * - + 19 * 6 * - + 1 ) ELSE NULL END + 7 + - 88 * 99 * 65 + 32 + 76 ) * - - 6 / - COUNT ( * )
----
-546

query I rowsort
SELECT + 95 + 84
----
179

query I rowsort
SELECT ( - 77 ) * - 48 col2
----
3696

onlyif mysql # DIV for integer division: 
query I rowsort label-9510
SELECT 4 DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-9510
SELECT 4 / - 65
----
0

query I rowsort
SELECT 85 * + 60 * 68 AS col0
----
346800

query I rowsort
SELECT 88 + - + 65
----
23

query II rowsort
SELECT 24 col2, - 85
----
24
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT - COUNT( * ) * + 68 + 95
----
27

skipif mysql # not compatible
query I rowsort label-9514
SELECT - COUNT ( * ) * + 68 + 95
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9515
SELECT DISTINCT - 71 AS col0, COUNT( + - 86 ) DIV 11
----
-71
0

skipif mysql # not compatible
query II rowsort label-9515
SELECT DISTINCT - 71 AS col0, COUNT ( + - 86 ) / 11
----
-71
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL 52 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL 52 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 87 + - + 83
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT 23 - 25 - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9518
SELECT 23 - 25 - - COUNT ( * )
----
-1

query I rowsort
SELECT ALL - ( 90 ) * + + 52 + + 94 + 83
----
-4503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9520
SELECT DISTINCT - CASE + + CASE MIN( DISTINCT 8 ) WHEN 37 - + - 36 * + 70 THEN + + CAST( NULL AS SIGNED ) END WHEN COUNT( * ) THEN + 2 WHEN 22 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT - CASE + + CASE MIN ( DISTINCT 8 ) WHEN 37 - + - 36 * + 70 THEN + + CAST ( NULL AS INTEGER ) END WHEN COUNT ( * ) THEN + 2 WHEN 22 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT COUNT( * ) + + SUM( - 15 )
----
-14

skipif mysql # not compatible
query I rowsort label-9521
SELECT COUNT ( * ) + + SUM ( - 15 )
----
-14

query II rowsort
SELECT 62 AS col0, + 98 AS col2
----
62
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL - COUNT( * ) + 9 - 73 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - COUNT ( * ) + 9 - 73 AS col1
----
-65

query I rowsort
SELECT 3 * - 15 * 7 + + 20
----
-295

onlyif mysql # aggregate syntax: 
query II rowsort label-9525
SELECT - COUNT( * ), + 58 * + + ( + - 1 ) AS col2
----
-1
-58

skipif mysql # not compatible
query II rowsort label-9525
SELECT - COUNT ( * ), + 58 * + + ( + - 1 ) AS col2
----
-1
-58

query I rowsort
SELECT 54 * + - 76 AS col0
----
-4104

query I rowsort
SELECT DISTINCT 86 + + - 20 AS col1
----
66

query II rowsort
SELECT ALL 80 AS col2, + 72 AS col1
----
80
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT - SUM( DISTINCT - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-9529
SELECT - SUM ( DISTINCT - 47 )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9530
SELECT - 3 DIV - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9530
SELECT - 3 / - 27 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9531
SELECT DISTINCT - + ( + 51 ) - - 68 * 5, 85 * 91 + - 53 + COUNT( * ) - + + COUNT( * ) + - + 91 AS col2
----
289
7591

skipif mysql # not compatible
query II rowsort label-9531
SELECT DISTINCT - + ( + 51 ) - - 68 * 5, 85 * 91 + - 53 + COUNT ( * ) - + + COUNT ( * ) + - + 91 AS col2
----
289
7591

onlyif mysql # aggregate syntax: 
query II rowsort label-9532
SELECT - COALESCE ( COALESCE ( - - 51, + 77 ), + MIN( DISTINCT - 46 ) ) AS col1, 57
----
-51
57

skipif mysql # not compatible
query II rowsort label-9532
SELECT - COALESCE ( COALESCE ( - - 51, + 77 ), + MIN ( DISTINCT - 46 ) ) AS col1, 57
----
-51
57

query I rowsort
SELECT DISTINCT + 16 - 66 * - 53 AS col1
----
3514

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT CASE + COUNT( * ) WHEN + + 71 THEN + 32 * + NULLIF ( COUNT( * ), 5 ) + - - 81 + + - NULLIF ( ( - 37 ), 37 ) * COALESCE ( 2, + + 10 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT CASE + COUNT ( * ) WHEN + + 71 THEN + 32 * + NULLIF ( COUNT ( * ), 5 ) + - - 81 + + - NULLIF ( ( - 37 ), 37 ) * COALESCE ( 2, + + 10 ) END AS col2
----
NULL

query II rowsort
SELECT ALL - 12 col1, - 29 * 8 + 60 + - + 79
----
-12
-251

query I rowsort
SELECT ALL + 72 * - + 32 + + + 7 AS col2
----
-2297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT DISTINCT AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9538
SELECT + + 2 DIV + 7
----
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT + + 2 / + 7
----
0

query II rowsort
SELECT + 22, 94 AS col1
----
22
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9540
SELECT ALL 36 - 55 * 36 DIV - - 67 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL 36 - 55 * 36 / - - 67 AS col1
----
7

query I rowsort
SELECT + + 17 + - - 46 * 79 * + 67
----
243495

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9542
SELECT - 72 AS col2, 59 DIV + - COUNT( * ) AS col1
----
-72
-59

skipif mysql # not compatible
query II rowsort label-9542
SELECT - 72 AS col2, 59 / + - COUNT ( * ) AS col1
----
-72
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9543
SELECT DISTINCT - COUNT( * ) AS col1, - COUNT( * ) AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9543
SELECT DISTINCT - COUNT ( * ) AS col1, - COUNT ( * ) AS col0
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL - COUNT( * ) * + + 63
----
-63

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL - COUNT ( * ) * + + 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT - + COUNT( * ) * 61 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9545
SELECT - + COUNT ( * ) * 61 AS col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-9546
SELECT - 76 - + - 14 - 33 DIV - 63 + + 98 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9546
SELECT - 76 - + - 14 - 33 / - 63 + + 98 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9547
SELECT + SUM( ALL - ( - NULLIF ( + CAST( NULL AS SIGNED ), + 51 ) ) ) / 43 + + 30 * NULLIF ( + 38, - 97 ) - - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT + SUM ( ALL - ( - NULLIF ( + CAST ( NULL AS INTEGER ), + 51 ) ) ) / 43 + + 30 * NULLIF ( + 38, - 97 ) - - 32 AS col0
----
NULL

query I rowsort
SELECT + ( + 70 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9549
SELECT + NULLIF ( 62, 62 * - 45 - 35 * - + 88 ) * COUNT( * ), 94 col1
----
62
94

skipif mysql # not compatible
query II rowsort label-9549
SELECT + NULLIF ( 62, 62 * - 45 - 35 * - + 88 ) * COUNT ( * ), 94 col1
----
62
94

query I rowsort
SELECT 70 * ( - + 1 ) + - 39
----
-109

query I rowsort
SELECT DISTINCT + 75 * COALESCE ( 88, 92 * - - 58 ) + ( - + 23 ) col2
----
6577

query I rowsort
SELECT - 17 + 6 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-9553
SELECT DISTINCT + 80 * + ( + 5 ) AS col0, + MAX( DISTINCT 47 )
----
400
47

skipif mysql # not compatible
query II rowsort label-9553
SELECT DISTINCT + 80 * + ( + 5 ) AS col0, + MAX ( DISTINCT 47 )
----
400
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9554
SELECT DISTINCT 12 * - CAST( NULL AS SIGNED ) * + NULLIF ( - 5, - + 35 ) + ( - + 79 ) + - 37 AS col2, 78 * + - 13 AS col0, 28 * - 52 * - + 33 AS col2
----
NULL
-1014
48048

skipif mysql # not compatible
query III rowsort label-9554
SELECT DISTINCT 12 * - CAST ( NULL AS INTEGER ) * + NULLIF ( - 5, - + 35 ) + ( - + 79 ) + - 37 AS col2, 78 * + - 13 AS col0, 28 * - 52 * - + 33 AS col2
----
NULL
-1014
48048

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + MIN( ALL + CASE + 69 WHEN + + CASE + 45 WHEN 12 THEN NULL ELSE - 94 END + 39 THEN 68 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT + MIN ( ALL + CASE + 69 WHEN + + CASE + 45 WHEN 12 THEN NULL ELSE - 94 END + 39 THEN 68 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9556
SELECT - 39 + - 76 DIV + 37 AS col0, - 86 * + - 9 * - 86 + + 41 AS col1
----
-41
-66523

skipif mysql # not compatible
query II rowsort label-9556
SELECT - 39 + - 76 / + 37 AS col0, - 86 * + - 9 * - 86 + + 41 AS col1
----
-41
-66523

query I rowsort
SELECT DISTINCT + ( + 67 ) AS col0
----
67

query I rowsort
SELECT + 5 * + 39 + - - ( 89 )
----
284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9559
SELECT + CASE COUNT( * ) WHEN + - 67 THEN NULL WHEN + COUNT( * ) + - CAST( NULL AS SIGNED ) THEN CAST( - 58 AS DECIMAL ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT + CASE COUNT ( * ) WHEN + - 67 THEN NULL WHEN + COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN CAST ( - 58 AS REAL ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9560
SELECT DISTINCT + CAST( + - 97 AS SIGNED ) * 46 - - - COUNT( * )
----
-4463

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT + CAST ( + - 97 AS INTEGER ) * 46 - - - COUNT ( * )
----
-4463

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9561
SELECT ALL - - COUNT( * ) * - - 29 + COUNT( DISTINCT + - 25 ) + 20 - - - AVG ( ALL 23 ) * + 85 - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL - - COUNT ( * ) * - - 29 + COUNT ( DISTINCT + - 25 ) + 20 - - - AVG ( ALL 23 ) * + 85 - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT - + 56 + - COUNT( * ) + + 38
----
-19

skipif mysql # not compatible
query I rowsort label-9562
SELECT - + 56 + - COUNT ( * ) + + 38
----
-19

query II rowsort
SELECT ALL ( + 75 ), 72 AS col2
----
75
72

query I rowsort
SELECT + 37 + + 28
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9565
SELECT + 64 + 66 AS col1, - 82 + - + CASE - COUNT( * ) WHEN + + CAST( + 69 AS SIGNED ) THEN NULL ELSE - 19 END
----
130
-63

skipif mysql # not compatible
query II rowsort label-9565
SELECT + 64 + 66 AS col1, - 82 + - + CASE - COUNT ( * ) WHEN + + CAST ( + 69 AS INTEGER ) THEN NULL ELSE - 19 END
----
130
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9566
SELECT + CAST( + - 1 AS SIGNED ) + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9566
SELECT + CAST ( + - 1 AS INTEGER ) + COUNT ( * ) col0
----
0

query I rowsort
SELECT + - 54 + 46 AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT ALL + SUM( + + 61 ) DIV - COUNT( * ) + + + 55
----
-6

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL + SUM ( + + 61 ) / - COUNT ( * ) + + + 55
----
-6

query II rowsort
SELECT + + 80 * - 85, - 97 AS col0
----
-6800
-97

query I rowsort
SELECT ALL + 10 * + - 18 + - + 68
----
-248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9571
SELECT + + 30 / + - CASE - CAST( - ( - ( + 86 ) ) AS SIGNED ) WHEN + - CASE - 14 WHEN - SUM( + 67 ) THEN NULL ELSE 42 * - ( - - NULLIF ( - 1, + ( + + CAST( - 65 AS SIGNED ) ) ) ) - + 83 / + - 20 END THEN + 75 + + - 42 WHEN - - 3 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT + + 30 / + - CASE - CAST ( - ( - ( + 86 ) ) AS INTEGER ) WHEN + - CASE - 14 WHEN - SUM ( + 67 ) THEN NULL ELSE 42 * - ( - - NULLIF ( - 1, + ( + + CAST ( - 65 AS INTEGER ) ) ) ) - + 83 / + - 20 END THEN + 75 + + - 42 WHEN - - 3 THEN NULL END
----
NULL

query II rowsort
SELECT - 97 * + 64 + - 38, + 95 AS col0
----
-6246
95

query I rowsort
SELECT - 5 * - - 36 col2
----
-180

query I rowsort
SELECT + 17 * + 78 * - 87 * - 20 AS col2
----
2307240

onlyif mysql # DIV for integer division: 
query II rowsort label-9575
SELECT DISTINCT - 3 DIV 80 + + 7 AS col2, 5 AS col2
----
7
5

skipif mysql # not compatible
query II rowsort label-9575
SELECT DISTINCT - 3 / 80 + + 7 AS col2, 5 AS col2
----
7
5

query I rowsort
SELECT + 69 * + + 67 AS col2
----
4623

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9577
SELECT CAST( NULL AS SIGNED ) AS col2, - 81 AS col1
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-9577
SELECT CAST ( NULL AS INTEGER ) AS col2, - 81 AS col1
----
NULL
-81

query I rowsort
SELECT + 57 + + 36
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT - COUNT( * ) * + ( + COALESCE ( 54, + ( 89 ) + + 87, COUNT( DISTINCT + 54 ) ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9579
SELECT - COUNT ( * ) * + ( + COALESCE ( 54, + ( 89 ) + + 87, COUNT ( DISTINCT + 54 ) ) ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-9580
SELECT + 51 * + + COUNT( + 37 ) col1, - 73 + - 86 AS col1
----
51
-159

skipif mysql # not compatible
query II rowsort label-9580
SELECT + 51 * + + COUNT ( + 37 ) col1, - 73 + - 86 AS col1
----
51
-159

query I rowsort
SELECT + 64 * 61 * 99 + - - 18 AS col2
----
386514

query I rowsort
SELECT DISTINCT + 94 * - - 92
----
8648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT ALL + COALESCE ( CAST( - 1 AS SIGNED ), + 22 - 89, + 51, 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL + COALESCE ( CAST ( - 1 AS INTEGER ), + 22 - 89, + 51, 94 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT + MAX( ALL - ( 26 ) ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT + MAX ( ALL - ( 26 ) ) col2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9585
SELECT DISTINCT + 58 DIV COUNT( DISTINCT + 80 )
----
58

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT + 58 / COUNT ( DISTINCT + 80 )
----
58

query I rowsort
SELECT 93 * - 95
----
-8835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9587
SELECT + - 58 * + 3 - - CAST( + 5 AS SIGNED ) - + COUNT( * ) AS col2
----
-170

skipif mysql # not compatible
query I rowsort label-9587
SELECT + - 58 * + 3 - - CAST ( + 5 AS INTEGER ) - + COUNT ( * ) AS col2
----
-170

query II rowsort
SELECT - 73 col0, 67 AS col1
----
-73
67

query I rowsort
SELECT 18 * - 24
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT 62 * + + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9590
SELECT 62 * + + COUNT ( * )
----
62

query I rowsort
SELECT DISTINCT + 62 + - 22
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT ALL - COUNT( * ) + - - 74 col0
----
73

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL - COUNT ( * ) + - - 74 col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9593
SELECT - 81 + + 56 + 0 - - 99 * - + ( - - 17 ) DIV ( 17 ) + - 99
----
-223

skipif mysql # not compatible
query I rowsort label-9593
SELECT - 81 + + 56 + 0 - - 99 * - + ( - - 17 ) / ( 17 ) + - 99
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-9594
SELECT DISTINCT + MAX( - ( - 42 ) ) col2, 12 AS col1
----
42
12

skipif mysql # not compatible
query II rowsort label-9594
SELECT DISTINCT + MAX ( - ( - 42 ) ) col2, 12 AS col1
----
42
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9595
SELECT ALL 69 AS col1, + 77 * + 48 + 81 + SUM( 18 ) + - - 29
----
69
3824

skipif mysql # not compatible
query II rowsort label-9595
SELECT ALL 69 AS col1, + 77 * + 48 + 81 + SUM ( 18 ) + - - 29
----
69
3824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9596
SELECT COUNT( * ) + - ( - 58 ) DIV - MAX( COALESCE ( 7, + 99 - + - 37 ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9596
SELECT COUNT ( * ) + - ( - 58 ) / - MAX ( COALESCE ( 7, + 99 - + - 37 ) ) AS col1
----
-7

query I rowsort
SELECT + ( + ( + 69 ) ) * + 75
----
5175

query I rowsort
SELECT ALL 35 + 26 * + 88 AS col0
----
2323

query I rowsort
SELECT 4 + + 1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9600
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) AS col2, 35 * 36
----
NULL
1260

skipif mysql # not compatible
query II rowsort label-9600
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2, 35 * 36
----
NULL
1260

query II rowsort
SELECT DISTINCT + 25 + + 5 AS col1, ( + 82 )
----
30
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL - SUM( DISTINCT - - CASE - 3 WHEN + 67 THEN ( + 79 ) + + 37 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL - SUM ( DISTINCT - - CASE - 3 WHEN + 67 THEN ( + 79 ) + + 37 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL + NULLIF ( - 52, COUNT( * ) ) + 2
----
-50

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL + NULLIF ( - 52, COUNT ( * ) ) + 2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT 39 * - 47 * + COUNT( DISTINCT + + 62 )
----
-1833

skipif mysql # not compatible
query I rowsort label-9604
SELECT 39 * - 47 * + COUNT ( DISTINCT + + 62 )
----
-1833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9605
SELECT COUNT( * ) + + COALESCE ( + 79, + 21 * - 61 ) + + 41 * - 67 AS col0, - 63 * - CAST( AVG ( DISTINCT + + 42 ) AS SIGNED ) * + 80
----
-2667
211680

skipif mysql # not compatible
query II rowsort label-9605
SELECT COUNT ( * ) + + COALESCE ( + 79, + 21 * - 61 ) + + 41 * - 67 AS col0, - 63 * - CAST ( AVG ( DISTINCT + + 42 ) AS INTEGER ) * + 80
----
-2667
211680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9606
SELECT COALESCE ( - 64, 33, + + 35 ) + - NULLIF ( - 30, - 81 ) DIV 38 + - SUM( 80 ) AS col2, + NULLIF ( - 50, - 94 ) AS col1
----
-144
-50

skipif mysql # not compatible
query II rowsort label-9606
SELECT COALESCE ( - 64, 33, + + 35 ) + - NULLIF ( - 30, - 81 ) / 38 + - SUM ( 80 ) AS col2, + NULLIF ( - 50, - 94 ) AS col1
----
-144
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9607
SELECT ALL CASE + + CAST( - 65 AS SIGNED ) WHEN + 70 THEN - 82 + + 57 * + 82 + - 24 WHEN - + 71 * + CASE NULLIF ( - MAX( ALL - + CAST( NULL AS SIGNED ) ), ( 38 ) ) WHEN - - CASE - 35 WHEN + 16 THEN NULL WHEN + - 53 THEN NULL WHEN - 72 * + 56 * 6 + - 7 + - 74 - + 44 * - 67 + - 82 THEN NULL ELSE - 74 + + 83 END THEN - + 83 * - 93 + - 65 ELSE NULL END - 75 * 88 THEN + 46 ELSE + 8 END * + + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL CASE + + CAST ( - 65 AS INTEGER ) WHEN + 70 THEN - 82 + + 57 * + 82 + - 24 WHEN - + 71 * + CASE NULLIF ( - MAX ( ALL - + CAST ( NULL AS INTEGER ) ), ( 38 ) ) WHEN - - CASE - 35 WHEN + 16 THEN NULL WHEN + - 53 THEN NULL WHEN - 72 * + 56 * 6 + - 7 + - 74 - + 44 * - 67 + - 82 THEN NULL ELSE - 74 + + 83 END THEN - + 83 * - 93 + - 65 ELSE NULL END - 75 * 88 THEN + 46 ELSE + 8 END * + + COUNT ( * ) AS col0
----
8

query I rowsort
SELECT 7 * - 42 * - + 50 + 24 col1
----
14724

query I rowsort
SELECT + 60 * - - 17 + 98 AS col0
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL 22 - - MIN( + + 59 ) + + 81 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL 22 - - MIN ( + + 59 ) + + 81 AS col0
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-9611
SELECT NULLIF ( - 65, + MAX( + 10 ) ) * COUNT( * ) AS col0, - 37
----
-65
-37

skipif mysql # not compatible
query II rowsort label-9611
SELECT NULLIF ( - 65, + MAX ( + 10 ) ) * COUNT ( * ) AS col0, - 37
----
-65
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT ALL CAST( + - 62 AS SIGNED ) - - 88 + + 40 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL CAST ( + - 62 AS INTEGER ) - - 88 + + 40 AS col1
----
66

query I rowsort
SELECT ( 53 ) * + 84
----
4452

query I rowsort
SELECT + 36 + - 13
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT ALL + SUM( ALL - 21 ) * - 57
----
1197

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + SUM ( ALL - 21 ) * - 57
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT CASE - 47 WHEN + COUNT( * ) THEN 28 END + - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT CASE - 47 WHEN + COUNT ( * ) THEN 28 END + - 51 AS col0
----
NULL

query I rowsort
SELECT 53 + - + 8
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT + NULLIF ( - MAX( - - 3 ), 23 )
----
-3

skipif mysql # not compatible
query I rowsort label-9618
SELECT + NULLIF ( - MAX ( - - 3 ), 23 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9619
SELECT ALL - - 56 + 7 DIV + ( - 40 )
----
56

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - - 56 + 7 / + ( - 40 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9620
SELECT ALL - NULLIF ( + - ( + COUNT( * ) ), + COUNT( CAST( - + 67 AS SIGNED ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL - NULLIF ( + - ( + COUNT ( * ) ), + COUNT ( CAST ( - + 67 AS INTEGER ) ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL + 24 * - - 89 * + SUM( - - 55 ) AS col0
----
117480

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL + 24 * - - 89 * + SUM ( - - 55 ) AS col0
----
117480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9622
SELECT ALL 69 + CAST( 32 AS SIGNED ) + + + COUNT( * ) * - 43 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL 69 + CAST ( 32 AS INTEGER ) + + + COUNT ( * ) * - 43 AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT - 12 + - CAST( NULL AS SIGNED ) + + ( - 63 ) * - 90 * + - 42 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT - 12 + - CAST ( NULL AS INTEGER ) + + ( - 63 ) * - 90 * + - 42 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT CAST( 18 AS SIGNED ) + - + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-9624
SELECT CAST ( 18 AS INTEGER ) + - + COUNT ( * )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9625
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) + 35 - - 7 * - 12 AS col2, + NULLIF ( - 36, + + ( - + COUNT( DISTINCT CAST( + 57 AS SIGNED ) ) ) * + 38 + + 18 )
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-9625
SELECT DISTINCT + - CAST ( NULL AS REAL ) + 35 - - 7 * - 12 AS col2, + NULLIF ( - 36, + + ( - + COUNT ( DISTINCT CAST ( + 57 AS INTEGER ) ) ) * + 38 + + 18 )
----
NULL
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9626
SELECT DISTINCT COUNT( * ) AS col1, 74 + + 0
----
1
74

skipif mysql # not compatible
query II rowsort label-9626
SELECT DISTINCT COUNT ( * ) AS col1, 74 + + 0
----
1
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT ALL + CAST( NULL AS SIGNED ) * - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL + CAST ( NULL AS INTEGER ) * - 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL + 38 - - 93 + 65 + - 11 + 73 * - 84 + + 73 + + 32 * - + 52 + + + COUNT( * )
----
-7537

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL + 38 - - 93 + 65 + - 11 + 73 * - 84 + + 73 + + 32 * - + 52 + + + COUNT ( * )
----
-7537

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL SUM( ALL 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL SUM ( ALL 58 ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9630
SELECT ALL COUNT( CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL COUNT ( CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9631
SELECT 20 AS col0, CAST( NULL AS SIGNED ) AS col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-9631
SELECT 20 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
20
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT COALESCE ( - ( + - 95 ), 20 * + - 96 + 88 - - - CAST( NULL AS SIGNED ) - + 32 )
----
95

skipif mysql # not compatible
query I rowsort label-9632
SELECT COALESCE ( - ( + - 95 ), 20 * + - 96 + 88 - - - CAST ( NULL AS INTEGER ) - + 32 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9633
SELECT ALL - 76 DIV 62
----
-1

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL - 76 / 62
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9634
SELECT 38 DIV COALESCE ( + - 20, - + 42 ) * - COUNT( * ) - - + 19 * - 24 AS col0
----
-455

skipif mysql # not compatible
query I rowsort label-9634
SELECT 38 / COALESCE ( + - 20, - + 42 ) * - COUNT ( * ) - - + 19 * - 24 AS col0
----
-455

query I rowsort
SELECT 74 * 1 col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9636
SELECT ALL - CASE COUNT( * ) WHEN + + ( - 52 ) * + 85 THEN + 62 * - + 46 * + CASE 64 WHEN 3 + + + COALESCE ( + - 63, + 76 * + 57 - + 92 * - + CASE + ( + 80 ) WHEN - 86 * - CAST( + 93 AS SIGNED ) - - + 55 THEN CASE - + 87 WHEN - 86 THEN + + 40 WHEN COALESCE ( + CAST( NULL AS DECIMAL ), - CAST( + 41 AS SIGNED ) + 34 / AVG ( + 91 ) * + SUM( DISTINCT + - 21 ) ) THEN + 95 WHEN + + 5 * - - 22 + - 17 + + 31 / 17 + + 85 THEN NULL END * + 93 END - + - 37 * - COUNT( * ) + + ( - + 23 ) ) + - - 30 * + CASE - 7 WHEN + 3 THEN - 1 WHEN - 32 THEN 39 ELSE SUM( 63 ) END THEN - COUNT( * ) + 27 WHEN + 74 + + 14 THEN NULL ELSE 1 + COUNT( * ) END * + NULLIF ( + MAX( + 60 ) / ( + 45 - CASE CAST( NULL AS DECIMAL ) WHEN 22 - - 18 THEN 31 END ), 0 ) WHEN - ( - 50 ) THEN NULL WHEN + ( AVG ( 81 ) ) THEN - 20 * - 52 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL - CASE COUNT ( * ) WHEN + + ( - 52 ) * + 85 THEN + 62 * - + 46 * + CASE 64 WHEN 3 + + + COALESCE ( + - 63, + 76 * + 57 - + 92 * - + CASE + ( + 80 ) WHEN - 86 * - CAST ( + 93 AS INTEGER ) - - + 55 THEN CASE - + 87 WHEN - 86 THEN + + 40 WHEN COALESCE ( + CAST ( NULL AS REAL ), - CAST ( + 41 AS INTEGER ) + 34 / AVG ( + 91 ) * + SUM ( DISTINCT + - 21 ) ) THEN + 95 WHEN + + 5 * - - 22 + - 17 + + 31 / 17 + + 85 THEN NULL END * + 93 END - + - 37 * - COUNT ( * ) + + ( - + 23 ) ) + - - 30 * + CASE - 7 WHEN + 3 THEN - 1 WHEN - 32 THEN 39 ELSE SUM ( 63 ) END THEN - COUNT ( * ) + 27 WHEN + 74 + + 14 THEN NULL ELSE 1 + COUNT ( * ) END * + NULLIF ( + MAX ( + 60 ) / ( + 45 - CASE CAST ( NULL AS REAL ) WHEN 22 - - 18 THEN 31 END ), 0 ) WHEN - ( - 50 ) THEN NULL WHEN + ( AVG ( 81 ) ) THEN - 20 * - 52 ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL 74 * - 70 AS col1
----
-5180

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT NULLIF ( + 51, - - 80 * + 4 * COUNT( * ) - - 58 )
----
51

skipif mysql # not compatible
query I rowsort label-9638
SELECT NULLIF ( + 51, - - 80 * + 4 * COUNT ( * ) - - 58 )
----
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9639
SELECT ALL - CAST( - 53 AS SIGNED ) DIV - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL - CAST ( - 53 AS INTEGER ) / - 97 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT + 98 * + 56 * - CAST( + ( 83 ) AS SIGNED ) AS col0
----
-455504

skipif mysql # not compatible
query I rowsort label-9640
SELECT + 98 * + 56 * - CAST ( + ( 83 ) AS INTEGER ) AS col0
----
-455504

query I rowsort
SELECT DISTINCT - 58 * - 35 AS col2
----
2030

query II rowsort
SELECT - 44 + ( - 93 ) col1, - 69
----
-137
-69

query I rowsort
SELECT - COALESCE ( - ( 95 ), + 57 ) + 11 AS col2
----
106

query I rowsort
SELECT - NULLIF ( 86, 20 ) * + 30 AS col0
----
-2580

query I rowsort
SELECT + 17 * + 25 + + 4
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT DISTINCT ( - COUNT( * ) ) * 28 + + 54
----
26

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT ( - COUNT ( * ) ) * 28 + + 54
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT DISTINCT 60 * - 12 + + 8 DIV 90 AS col2
----
-720

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT 60 * - 12 + + 8 / 90 AS col2
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT MIN( DISTINCT - 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9648
SELECT MIN ( DISTINCT - 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL SUM( DISTINCT - 8 ) + + 9
----
1

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL SUM ( DISTINCT - 8 ) + + 9
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT + 72 * COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9650
SELECT + 72 * COUNT ( * ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT + 78 * - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-9651
SELECT + 78 * - COUNT ( * )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT DISTINCT 1 + - CAST( + 94 AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT 1 + - CAST ( + 94 AS INTEGER )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + 42 - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-9653
SELECT + 42 - - COUNT ( * )
----
43

query I rowsort
SELECT DISTINCT 65 * 9 AS col0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL COUNT( * ) - + MAX( DISTINCT 97 ) * + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL COUNT ( * ) - + MAX ( DISTINCT 97 ) * + COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT COUNT( 7 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT COUNT ( 7 ) AS col2
----
1

query I rowsort
SELECT ALL + 7 - ( 85 - - 65 ) * + 14 col0
----
-2093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9658
SELECT ALL - 52 DIV + COALESCE ( - 47 * 73, + COUNT( * ) * + 1 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL - 52 / + COALESCE ( - 47 * 73, + COUNT ( * ) * + 1 ) AS col2
----
0

query I rowsort
SELECT + 58 + - ( 72 - + COALESCE ( - 3, - 65 + + 71 * 98 ) ) * 18 AS col1
----
-1292

query I rowsort
SELECT - 64 - 24 AS col1
----
-88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9661
SELECT + 34 + + CAST( NULL AS SIGNED ) / - CAST( 54 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT + 34 + + CAST ( NULL AS INTEGER ) / - CAST ( 54 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT + SUM( 59 ) * + 74
----
4366

skipif mysql # not compatible
query I rowsort label-9662
SELECT + SUM ( 59 ) * + 74
----
4366

query I rowsort
SELECT + 11 + 80 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - COUNT( * ) * - 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9664
SELECT - COUNT ( * ) * - 76 AS col1
----
76

query I rowsort
SELECT - 28 + 64 AS col0
----
36

query I rowsort
SELECT - 87 * - 20
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT DISTINCT COUNT( DISTINCT CASE 80 WHEN + 43 - 78 * + 85 THEN NULL WHEN 50 / + 4 THEN - 8 + + 84 ELSE NULL END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT COUNT ( DISTINCT CASE 80 WHEN + 43 - 78 * + 85 THEN NULL WHEN 50 / + 4 THEN - 8 + + 84 ELSE NULL END ) AS col0
----
0

query I rowsort
SELECT ALL ( ( + 73 ) ) col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT - COUNT( ALL 57 ) + - 44
----
-45

skipif mysql # not compatible
query I rowsort label-9669
SELECT - COUNT ( ALL 57 ) + - 44
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT ALL COUNT( ALL - 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL COUNT ( ALL - 45 ) AS col0
----
1

query I rowsort
SELECT ALL - 72 * 35
----
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT ALL 76 DIV 59 + 62
----
63

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL 76 / 59 + 62
----
63

query I rowsort
SELECT - ( - 84 ) + - 64 AS col1
----
20

query I rowsort
SELECT - 21 * 47
----
-987

query I rowsort
SELECT 82 * 92 + + 16
----
7560

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT + 1 DIV + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9676
SELECT + 1 / + 32 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT DISTINCT - + 52 DIV - 20
----
2

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT - + 52 / - 20
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL ( - 41 ) * 43 + MIN( ALL 35 )
----
-1728

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL ( - 41 ) * 43 + MIN ( ALL 35 )
----
-1728

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT - + 96 DIV + 81
----
-1

skipif mysql # not compatible
query I rowsort label-9679
SELECT - + 96 / + 81
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL - 2 * - 28 + - CASE 76 WHEN + 78 THEN COUNT( * ) * + 33 + 41 WHEN - 85 THEN - 68 END * 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL - 2 * - 28 + - CASE 76 WHEN + 78 THEN COUNT ( * ) * + 33 + 41 WHEN - 85 THEN - 68 END * 15 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9681
SELECT DISTINCT - SUM( DISTINCT 31 ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT - SUM ( DISTINCT 31 ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9682
SELECT ALL + 31 * CASE + 1 WHEN + 8 THEN + ( 31 ) WHEN + 74 THEN 59 END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL + 31 * CASE + 1 WHEN + 8 THEN + ( 31 ) WHEN + 74 THEN 59 END + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL + 38 * 28 + + COUNT( * )
----
1065

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL + 38 * 28 + + COUNT ( * )
----
1065

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT + - CAST( + 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-9684
SELECT + - CAST ( + 50 AS INTEGER )
----
-50

query I rowsort
SELECT ALL + - 10 * 82
----
-820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT - CAST( NULL AS SIGNED ) + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT - CAST ( NULL AS INTEGER ) + 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT DISTINCT + + CASE + 45 WHEN ( NULLIF ( 17, 5 ) ) * - 95 THEN - COUNT( * ) * - 55 WHEN - 85 * 90 THEN NULL WHEN 18 THEN - 26 END * - ( 40 * + MIN( DISTINCT - 80 ) ) + + 71 * - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT + + CASE + 45 WHEN ( NULLIF ( 17, 5 ) ) * - 95 THEN - COUNT ( * ) * - 55 WHEN - 85 * 90 THEN NULL WHEN 18 THEN - 26 END * - ( 40 * + MIN ( DISTINCT - 80 ) ) + + 71 * - 64 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9688
SELECT - CAST( - 17 AS SIGNED ) * 76
----
1292

skipif mysql # not compatible
query I rowsort label-9688
SELECT - CAST ( - 17 AS INTEGER ) * 76
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-9689
SELECT DISTINCT + + COALESCE ( 8, 38 DIV - 59 + 93, 59 * 74, 3 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT + + COALESCE ( 8, 38 / - 59 + 93, 59 * 74, 3 ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9690
SELECT - CAST( NULL AS DECIMAL ) * CASE + 76 WHEN MAX( + 69 ) THEN NULL WHEN - 53 THEN 1 ELSE NULL END + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT - CAST ( NULL AS REAL ) * CASE + 76 WHEN MAX ( + 69 ) THEN NULL WHEN - 53 THEN 1 ELSE NULL END + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT DISTINCT - 51 * + 49 - 52 * COUNT( * ) AS col1
----
-2551

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT - 51 * + 49 - 52 * COUNT ( * ) AS col1
----
-2551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT - CAST( - 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-9692
SELECT - CAST ( - 76 AS INTEGER )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9693
SELECT COUNT( + - CAST( NULL AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9693
SELECT COUNT ( + - CAST ( NULL AS INTEGER ) ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT + SUM( + 10 ) + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-9694
SELECT + SUM ( + 10 ) + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT + 23 * + COUNT( * ) col2
----
23

skipif mysql # not compatible
query I rowsort label-9695
SELECT + 23 * + COUNT ( * ) col2
----
23

query I rowsort
SELECT + 40 + + NULLIF ( - 52, + ( 97 ) + ( - 44 ) ) AS col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-9697
SELECT - ( - + 21 ) + + ( 12 ) DIV 97
----
21

skipif mysql # not compatible
query I rowsort label-9697
SELECT - ( - + 21 ) + + ( 12 ) / 97
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT - ( + MAX( DISTINCT 28 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-9698
SELECT - ( + MAX ( DISTINCT 28 ) )
----
-28

query I rowsort
SELECT + 87 * 68 AS col0
----
5916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9700
SELECT - CAST( 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-9700
SELECT - CAST ( 7 AS INTEGER )
----
-7

query I rowsort
SELECT ALL 63 + 23 + 98 * - 35 AS col0
----
-3344

query I rowsort
SELECT ALL 39 + - 65 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT DISTINCT 98 + NULLIF ( - ( + 65 ), - SUM( 5 ) * COALESCE ( 51 + - COUNT( * ), 21 ) )
----
33

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT 98 + NULLIF ( - ( + 65 ), - SUM ( 5 ) * COALESCE ( 51 + - COUNT ( * ), 21 ) )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT ( 18 ) DIV 7
----
2

skipif mysql # not compatible
query I rowsort label-9704
SELECT ( 18 ) / 7
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT 92 * - 51 * COUNT( * )
----
-4692

skipif mysql # not compatible
query I rowsort label-9705
SELECT 92 * - 51 * COUNT ( * )
----
-4692

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL + 13 + + - ( + 97 ) - COUNT( * ) * COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL + 13 + + - ( + 97 ) - COUNT ( * ) * COUNT ( * ) AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT 66 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT 66 * - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT 2 * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9708
SELECT 2 * - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT 14 * - SUM( DISTINCT - 91 ) - - COUNT( * ) * - 4 AS col0
----
1270

skipif mysql # not compatible
query I rowsort label-9709
SELECT 14 * - SUM ( DISTINCT - 91 ) - - COUNT ( * ) * - 4 AS col0
----
1270

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT ALL + + SUM( DISTINCT - 58 ) + + 56 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL + + SUM ( DISTINCT - 58 ) + + 56 AS col2
----
-2

query I rowsort
SELECT + + ( + 66 )
----
66

query I rowsort
SELECT ALL - + 57 * - + 90 * - 10 AS col1
----
-51300

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT ALL + COUNT( - + 90 ) + - 30 col0
----
-29

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL + COUNT ( - + 90 ) + - 30 col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT + 87 / + - ( - CASE COUNT( * ) WHEN - 20 THEN COALESCE ( COALESCE ( - 73, + 92 ), 93, - 33 + + 76 * 1 ) END ) + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT + 87 / + - ( - CASE COUNT ( * ) WHEN - 20 THEN COALESCE ( COALESCE ( - 73, + 92 ), 93, - 33 + + 76 * 1 ) END ) + 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ALL - - 7 * - COUNT( * ) * 59
----
-413

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL - - 7 * - COUNT ( * ) * 59
----
-413

query I rowsort
SELECT - NULLIF ( - 68, ( + 94 ) * 7 - ( - 91 ) ) + + ( ( 22 ) ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT - 91 * + 81 * - COUNT( * ) + + 89 - COUNT( * ) AS col1
----
7459

skipif mysql # not compatible
query I rowsort label-9717
SELECT - 91 * + 81 * - COUNT ( * ) + + 89 - COUNT ( * ) AS col1
----
7459

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL - SUM( DISTINCT 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL - SUM ( DISTINCT 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL - - MAX( DISTINCT - + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL - - MAX ( DISTINCT - + 52 )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9720
SELECT + CASE + 64 WHEN ( - 63 ) * 9 THEN CAST( + 61 AS SIGNED ) ELSE - 48 END AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9720
SELECT + CASE + 64 WHEN ( - 63 ) * 9 THEN CAST ( + 61 AS INTEGER ) ELSE - 48 END AS col1
----
-48

query I rowsort
SELECT DISTINCT - - 53 - 40 * 27
----
-1027

query I rowsort
SELECT DISTINCT + 18 - + 4 * - 93 col2
----
390

query I rowsort
SELECT ALL - + COALESCE ( - 88, + 71 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9725
SELECT 79 + + COUNT( ALL - 4 ) DIV 24 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9725
SELECT 79 + + COUNT ( ALL - 4 ) / 24 AS col0
----
79

query I rowsort
SELECT ALL 25 * - 23 * 57
----
-32775

query I rowsort
SELECT 10 * + ( 2 ) AS col2
----
20

query I rowsort
SELECT - 39 * - NULLIF ( + 53, - 22 )
----
2067

query I rowsort
SELECT DISTINCT + 36 * 78 AS col2
----
2808

query I rowsort
SELECT ALL + 53 * 92
----
4876

query I rowsort
SELECT 23 * ( + 22 ) * - 82 AS col2
----
-41492

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT CASE - - ( + ( 6 ) ) WHEN + 97 * 99 THEN + 5 + - 81 WHEN - 44 THEN - MAX( - 17 ) * - 95 WHEN - 52 + + 34 / - COUNT( * ) THEN + ( + 19 ) + - COUNT( DISTINCT 24 ) WHEN + 74 + - 74 THEN - 70 ELSE + 26 END * + 91 AS col0
----
2366

skipif mysql # not compatible
query I rowsort label-9732
SELECT CASE - - ( + ( 6 ) ) WHEN + 97 * 99 THEN + 5 + - 81 WHEN - 44 THEN - MAX ( - 17 ) * - 95 WHEN - 52 + + 34 / - COUNT ( * ) THEN + ( + 19 ) + - COUNT ( DISTINCT 24 ) WHEN + 74 + - 74 THEN - 70 ELSE + 26 END * + 91 AS col0
----
2366

query I rowsort
SELECT 32 * - 90 AS col0
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT 38 - - - COALESCE ( ( + 48 ), 11, MAX( DISTINCT 58 ) * - 63 ) + 37
----
27

skipif mysql # not compatible
query I rowsort label-9734
SELECT 38 - - - COALESCE ( ( + 48 ), 11, MAX ( DISTINCT 58 ) * - 63 ) + 37
----
27

query I rowsort
SELECT DISTINCT - 8 * - 55 AS col0
----
440

query I rowsort
SELECT DISTINCT - 35 + + 12 AS col0
----
-23

query II rowsort
SELECT ALL 52, - 64 AS col1
----
52
-64

query I rowsort
SELECT ALL 63 + 78 + + 86
----
227

query I rowsort
SELECT 38 + + 39 * + + 52 * 15 + + 22 AS col0
----
30480

query I rowsort
SELECT 47 + 15
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT CASE + COUNT( * ) WHEN + + 92 THEN - COUNT( * ) WHEN + 80 THEN NULL WHEN 46 THEN 43 ELSE NULL END - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT CASE + COUNT ( * ) WHEN + + 92 THEN - COUNT ( * ) WHEN + 80 THEN NULL WHEN 46 THEN 43 ELSE NULL END - - 28
----
NULL

query I rowsort
SELECT ALL 57 * 18 col1
----
1026

query I rowsort
SELECT 57 + 19
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9744
SELECT 60 col2, CAST( + 77 AS SIGNED )
----
60
77

skipif mysql # not compatible
query II rowsort label-9744
SELECT 60 col2, CAST ( + 77 AS INTEGER )
----
60
77

query I rowsort
SELECT ( + - 64 ) * - 3 * + 25
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT - 0 + + 66 * + COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT - 0 + + 66 * + COUNT ( * ) col2
----
66

query I rowsort
SELECT ALL 21 * 99 AS col0
----
2079

query I rowsort
SELECT ALL 85 + + 48 * 67 col1
----
3301

query I rowsort
SELECT 82 + + - 28
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT DISTINCT COUNT( - 62 )
----
1

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT COUNT ( - 62 )
----
1

query II rowsort
SELECT ALL + 41 AS col1, - 77 * + 78 * + 85
----
41
-510510

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT DISTINCT - COUNT( + 60 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT - COUNT ( + 60 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT - CASE + 46 WHEN + ( + 25 ) THEN + 41 WHEN 93 * - 85 + 37 THEN NULL ELSE + 6 + COUNT( * ) * COUNT( * ) END + 0 * COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-9753
SELECT - CASE + 46 WHEN + ( + 25 ) THEN + 41 WHEN 93 * - 85 + 37 THEN NULL ELSE + 6 + COUNT ( * ) * COUNT ( * ) END + 0 * COUNT ( * )
----
-7

query I rowsort
SELECT ALL 55 * - 35 + - 93 - + 11 * 72
----
-2810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9755
SELECT ALL - 24 DIV + COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - 24 / + COUNT ( * ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT CASE - MAX( + + 73 ) WHEN 29 / 7 THEN NULL WHEN 67 THEN - 0 END * + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT CASE - MAX ( + + 73 ) WHEN 29 / 7 THEN NULL WHEN 67 THEN - 0 END * + 4 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9757
SELECT - CASE 82 WHEN 6 THEN - 41 - CASE + 95 WHEN 56 THEN 76 / AVG ( + CAST( NULL AS SIGNED ) ) WHEN + COUNT( * ) THEN MIN( DISTINCT - 52 ) WHEN 65 THEN NULL END END * NULLIF ( + 6 + 97, - 20 * + 29 + 40 ) + NULLIF ( + COUNT( * ), + CASE - 48 WHEN COUNT( 40 ) + 32 THEN 74 ELSE + COUNT( * ) END * 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT - CASE 82 WHEN 6 THEN - 41 - CASE + 95 WHEN 56 THEN 76 / AVG ( + CAST ( NULL AS INTEGER ) ) WHEN + COUNT ( * ) THEN MIN ( DISTINCT - 52 ) WHEN 65 THEN NULL END END * NULLIF ( + 6 + 97, - 20 * + 29 + 40 ) + NULLIF ( + COUNT ( * ), + CASE - 48 WHEN COUNT ( 40 ) + 32 THEN 74 ELSE + COUNT ( * ) END * 64 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9758
SELECT 80 DIV + - MAX( - + 87 ) * ( 11 ) + 85 + 27 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-9758
SELECT 80 / + - MAX ( - + 87 ) * ( 11 ) + 85 + 27 AS col2
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT ALL CAST( NULL AS SIGNED ) / + 57 + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL CAST ( NULL AS INTEGER ) / + 57 + + 50
----
NULL

query I rowsort
SELECT 87 + + 81 col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT NULLIF ( ( 92 ), AVG ( - 3 ) * ( - 49 * + 96 + + SUM( - 69 ) * + COALESCE ( + 58, ( - ( 78 ) ) * 47 ) ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9761
SELECT NULLIF ( ( 92 ), AVG ( - 3 ) * ( - 49 * + 96 + + SUM ( - 69 ) * + COALESCE ( + 58, ( - ( 78 ) ) * 47 ) ) ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9762
SELECT ALL COALESCE ( COUNT( * ), + - 3 * - COUNT( ALL 3 ), - CAST( - 16 AS SIGNED ) ) * + 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL COALESCE ( COUNT ( * ), + - 3 * - COUNT ( ALL 3 ), - CAST ( - 16 AS INTEGER ) ) * + 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT + + SUM( 75 ) col0
----
75

skipif mysql # not compatible
query I rowsort label-9763
SELECT + + SUM ( 75 ) col0
----
75

query I rowsort
SELECT ALL 53 * + 56 + + 73
----
3041

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - 23 - - COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-9765
SELECT - 23 - - COUNT ( * ) AS col2
----
-22

query I rowsort
SELECT 25 * - + 63
----
-1575

query I rowsort
SELECT - - 71 * ( 3 ) * - 97 - - 97 AS col2
----
-20564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + 63 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + 63 ) AS col1
----
NULL

query I rowsort
SELECT 32 * + 13
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL + 48 + + + 99 + + COUNT( DISTINCT - ( + 81 ) ) AS col0
----
148

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL + 48 + + + 99 + + COUNT ( DISTINCT - ( + 81 ) ) AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT DISTINCT - MAX( ALL + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT - MAX ( ALL + 1 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT - 5 + + 49 + - COALESCE ( - CAST( NULL AS SIGNED ), - 68 * CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT - 5 + + 49 + - COALESCE ( - CAST ( NULL AS INTEGER ), - 68 * CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT NULLIF ( + 97, - 71 * - 64 + + COUNT( * ) ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT NULLIF ( + 97, - 71 * - 64 + + COUNT ( * ) ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT ALL + CAST( NULL AS SIGNED ) + + 66 * - 64 / + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + CAST ( NULL AS INTEGER ) + + 66 * - 64 / + 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9775
SELECT DISTINCT - 31 + + 13 + + + 47 + + 50 DIV - 3 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT - 31 + + 13 + + + 47 + + 50 / - 3 AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT - 45 DIV + + ( 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9776
SELECT - 45 / + + ( 44 ) AS col2
----
-1

query I rowsort
SELECT - 51 + - 2 * + 99 AS col1
----
-249

query I rowsort
SELECT ALL - 13 + - 87 + - 71 + 20 * 12
----
69

query I rowsort
SELECT ALL + 59 * + 72
----
4248

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT - COUNT( * ) * + 24 * - + 57 * 92 AS col0
----
125856

skipif mysql # not compatible
query I rowsort label-9780
SELECT - COUNT ( * ) * + 24 * - + 57 * 92 AS col0
----
125856

query I rowsort
SELECT ALL - 14 * 79 * + 93
----
-102858

query I rowsort
SELECT ALL + 59 * 73
----
4307

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT - ( 84 ) * COUNT( 35 ) + - 29 * + COUNT( * )
----
-113

skipif mysql # not compatible
query I rowsort label-9783
SELECT - ( 84 ) * COUNT ( 35 ) + - 29 * + COUNT ( * )
----
-113

query I rowsort
SELECT ALL NULLIF ( - + 34, + 68 ) AS col2
----
-34

query I rowsort
SELECT DISTINCT CASE + 61 WHEN 2 THEN NULL WHEN + + 27 THEN - 90 * 30 - 4 END
----
NULL

query II rowsort
SELECT ALL - 87 - + + 14 AS col2, 34 + 23 - 55
----
-101
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT - - NULLIF ( + - 43, 62 * + COALESCE ( - 86, 56 ) / 43 ) - + COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9787
SELECT - - NULLIF ( + - 43, 62 * + COALESCE ( - 86, 56 ) / 43 ) - + COUNT ( * ) AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9788
SELECT + - COALESCE ( COUNT( ALL 51 ), CASE 34 WHEN 12 / SUM( ALL + 32 ) THEN + 56 WHEN 72 THEN NULL WHEN - 76 * + SUM( DISTINCT 47 ) THEN + 69 END, + 98 - COUNT( 88 + CAST( 13 AS SIGNED ) ) ) * 96
----
-96

skipif mysql # not compatible
query I rowsort label-9788
SELECT + - COALESCE ( COUNT ( ALL 51 ), CASE 34 WHEN 12 / SUM ( ALL + 32 ) THEN + 56 WHEN 72 THEN NULL WHEN - 76 * + SUM ( DISTINCT 47 ) THEN + 69 END, + 98 - COUNT ( 88 + CAST ( 13 AS INTEGER ) ) ) * 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL - NULLIF ( - 26, - 24 - 19 + + ( CASE + 87 WHEN COUNT( * ) THEN ( - MAX( ALL 59 ) ) + - 0 * 11 ELSE NULL END ) ) col0
----
26

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL - NULLIF ( - 26, - 24 - 19 + + ( CASE + 87 WHEN COUNT ( * ) THEN ( - MAX ( ALL 59 ) ) + - 0 * 11 ELSE NULL END ) ) col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9790
SELECT DISTINCT - 95 * COUNT( * ) AS col1, + COALESCE ( + 97, 52 ) AS col1
----
-95
97

skipif mysql # not compatible
query II rowsort label-9790
SELECT DISTINCT - 95 * COUNT ( * ) AS col1, + COALESCE ( + 97, 52 ) AS col1
----
-95
97

query I rowsort
SELECT - NULLIF ( + 64, + 39 + - 47 / 88 ) AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9792
SELECT + COALESCE ( - COUNT( * ), COUNT( * ) DIV + 30 ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9792
SELECT + COALESCE ( - COUNT ( * ), COUNT ( * ) / + 30 ) * COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT ( - - 29 ) * + 82 AS col2
----
2378

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT DISTINCT + CASE + MIN( ALL + 76 ) WHEN - COUNT( ALL - 97 ) THEN - NULLIF ( - 52, 4 + - COUNT( * ) ) ELSE NULL END * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT + CASE + MIN ( ALL + 76 ) WHEN - COUNT ( ALL - 97 ) THEN - NULLIF ( - 52, 4 + - COUNT ( * ) ) ELSE NULL END * 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT DISTINCT - ( - 4 ) * - + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT - ( - 4 ) * - + COUNT ( * )
----
-4

query I rowsort
SELECT DISTINCT - 35 * 38
----
-1330

query I rowsort
SELECT + - 7 * - 53 AS col1
----
371

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT DISTINCT - 2 * - - COUNT( ALL - + 67 ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT - 2 * - - COUNT ( ALL - + 67 ) col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9799
SELECT MIN( - 74 ), + COUNT( * ) AS col0
----
-74
1

skipif mysql # not compatible
query II rowsort label-9799
SELECT MIN ( - 74 ), + COUNT ( * ) AS col0
----
-74
1

query II rowsort
SELECT + - 47 * + 72, 53 * + 58 AS col0
----
-3384
3074

query I rowsort
SELECT - - 8 * + + 35 + + 78 AS col2
----
358

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT - 13 DIV - - COALESCE ( - 59, + 40, - 28 + 80 ) * + 45
----
0

skipif mysql # not compatible
query I rowsort label-9802
SELECT - 13 / - - COALESCE ( - 59, + 40, - 28 + 80 ) * + 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT DISTINCT + COUNT( * ) * - + 36 * + + COUNT( * ) + - 6 + 99
----
57

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT + COUNT ( * ) * - + 36 * + + COUNT ( * ) + - 6 + 99
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9804
SELECT DISTINCT - 52 * 4 * 59 DIV 6 + + 23 AS col0
----
-2022

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT - 52 * 4 * 59 / 6 + + 23 AS col0
----
-2022

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ALL + 69 * + 31 + + SUM( 74 )
----
2213

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL + 69 * + 31 + + SUM ( 74 )
----
2213

onlyif mysql # aggregate syntax: 
query II rowsort label-9806
SELECT ALL - 86 * + - 77 + + COUNT( * ) AS col1, 35 col0
----
6623
35

skipif mysql # not compatible
query II rowsort label-9806
SELECT ALL - 86 * + - 77 + + COUNT ( * ) AS col1, 35 col0
----
6623
35

query I rowsort
SELECT DISTINCT 81 * 63
----
5103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9808
SELECT ALL + 12, + 99 + 76 * - + 76 * - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-9808
SELECT ALL + 12, + 99 + 76 * - + 76 * - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
12
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9809
SELECT ALL NULLIF ( - - MIN( CAST( 77 AS SIGNED ) ), + ( + COUNT( * ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL NULLIF ( - - MIN ( CAST ( 77 AS INTEGER ) ), + ( + COUNT ( * ) ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT - 28 * - + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9810
SELECT - 28 * - + COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL 29 * - - 37 + COUNT( * ) AS col1
----
1074

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL 29 * - - 37 + COUNT ( * ) AS col1
----
1074

query I rowsort
SELECT ALL 35 * 37 + 17
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT - NULLIF ( + 48, + COUNT( * ) ) - + 69 + + 61
----
-56

skipif mysql # not compatible
query I rowsort label-9813
SELECT - NULLIF ( + 48, + COUNT ( * ) ) - + 69 + + 61
----
-56

query I rowsort
SELECT DISTINCT ( 28 ) col2
----
28

query I rowsort
SELECT ALL - 82 * + 13
----
-1066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT ALL CAST( - 61 AS SIGNED ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL CAST ( - 61 AS INTEGER ) AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9817
SELECT DISTINCT - 0 DIV + 74 DIV - + COUNT( * ) * - - 34 col1
----
0

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT - 0 / + 74 / - + COUNT ( * ) * - - 34 col1
----
0

query I rowsort
SELECT + 56 + + - 21 * - 46 * - 53 - - + 77 AS col1
----
-51065

query I rowsort
SELECT - 62 - + 40 AS col2
----
-102

query I rowsort
SELECT - 45 - + 38 - - 63 * 85
----
5272

query I rowsort
SELECT - 89 + + 55
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9822
SELECT - 98 DIV 49
----
-2

skipif mysql # not compatible
query I rowsort label-9822
SELECT - 98 / 49
----
-2

query I rowsort
SELECT + - ( - - 32 ) * - - 69 - + 46 * + + 85
----
-6118

query I rowsort
SELECT ALL + - 71 * + 78
----
-5538

query I rowsort
SELECT DISTINCT + ( - 12 ) * - ( - - 46 ) * - 23
----
-12696

onlyif mysql # aggregate syntax: 
query II rowsort label-9826
SELECT ALL - COUNT( * ) AS col0, 92 AS col0
----
-1
92

skipif mysql # not compatible
query II rowsort label-9826
SELECT ALL - COUNT ( * ) AS col0, 92 AS col0
----
-1
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT CAST( - 31 AS SIGNED ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-9827
SELECT CAST ( - 31 AS INTEGER ) col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT ALL + ( - COUNT( ALL + 36 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL + ( - COUNT ( ALL + 36 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT - - 61 * - 70 + 26 + - 15 - + COUNT( * ) + 22 * - 92 * + 94
----
-194516

skipif mysql # not compatible
query I rowsort label-9829
SELECT - - 61 * - 70 + 26 + - 15 - + COUNT ( * ) + 22 * - 92 * + 94
----
-194516

query I rowsort
SELECT + - 3 + 62 + 45 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT MIN( - - 19 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-9831
SELECT MIN ( - - 19 ) col0
----
19

query II rowsort
SELECT ALL + 6, 95 * + 56 AS col1
----
6
5320

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT + SUM( + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-9833
SELECT + SUM ( + 83 )
----
83

query I rowsort
SELECT 12 * 79 * + 68 + - COALESCE ( + + NULLIF ( + 39, - 70 ), 35 ) * 88
----
61032

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT - COUNT( * ) * COUNT( * ) * 5 * - ( + 31 )
----
155

skipif mysql # not compatible
query I rowsort label-9835
SELECT - COUNT ( * ) * COUNT ( * ) * 5 * - ( + 31 )
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9836
SELECT + 84 * + CAST( + 24 AS SIGNED ) AS col2, 71 AS col0
----
2016
71

skipif mysql # not compatible
query II rowsort label-9836
SELECT + 84 * + CAST ( + 24 AS INTEGER ) AS col2, 71 AS col0
----
2016
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9837
SELECT DISTINCT - + ( MIN( DISTINCT - - 36 ) ) DIV + COUNT( * ) + 96 + + 10 + 8 * - 2 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT - + ( MIN ( DISTINCT - - 36 ) ) / + COUNT ( * ) + 96 + + 10 + 8 * - 2 AS col1
----
54

query I rowsort
SELECT ALL + - ( COALESCE ( + 2, - + 13 ) )
----
-2

query I rowsort
SELECT ALL 71 + + + 53 col1
----
124

query I rowsort
SELECT ALL - 46 * 27
----
-1242

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9841
SELECT ALL + ( - - NULLIF ( + COALESCE ( + 78, + 17 ), CASE 2 WHEN 53 / 78 THEN 58 / 38 WHEN MIN( NULLIF ( - ( 44 ), + 21 * 4 ) ) THEN CASE - 71 WHEN 58 + 81 THEN NULL WHEN + 59 * + CAST( NULL AS DECIMAL ) + MAX( 85 ) THEN NULL ELSE 88 END ELSE NULL END / AVG ( - 67 ) ) ) + - 94 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL + ( - - NULLIF ( + COALESCE ( + 78, + 17 ), CASE 2 WHEN 53 / 78 THEN 58 / 38 WHEN MIN ( NULLIF ( - ( 44 ), + 21 * 4 ) ) THEN CASE - 71 WHEN 58 + 81 THEN NULL WHEN + 59 * + CAST ( NULL AS REAL ) + MAX ( 85 ) THEN NULL ELSE 88 END ELSE NULL END / AVG ( - 67 ) ) ) + - 94 AS col0
----
-16

query II rowsort
SELECT + 50 + + ( - + 96 ) col2, + 57 AS col1
----
-46
57

query I rowsort
SELECT DISTINCT - + 79 + - 97 AS col1
----
-176

query I rowsort
SELECT 38 + - 65 - 89 + 93 * + 23 col2
----
2023

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT COUNT( * ) - - - 76
----
-75

skipif mysql # not compatible
query I rowsort label-9845
SELECT COUNT ( * ) - - - 76
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9846
SELECT + 46 AS col0, - COUNT( * ) AS col1
----
46
-1

skipif mysql # not compatible
query II rowsort label-9846
SELECT + 46 AS col0, - COUNT ( * ) AS col1
----
46
-1

query I rowsort
SELECT ALL 34 + - 1 * - 41 * - 31 AS col1
----
-1237

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT SUM( 95 ) * - 54 AS col0
----
-5130

skipif mysql # not compatible
query I rowsort label-9848
SELECT SUM ( 95 ) * - 54 AS col0
----
-5130

onlyif mysql # DIV for integer division: 
query I rowsort label-9849
SELECT ALL 80 DIV + 30 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL 80 / + 30 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT 92 + + - CAST( NULL AS SIGNED ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT 92 + + - CAST ( NULL AS INTEGER ) * - 40
----
NULL

query I rowsort
SELECT DISTINCT 92 * + 38
----
3496

query II rowsort
SELECT - 69 AS col0, - 51
----
-69
-51

query I rowsort
SELECT 8 + 43 * + 70 AS col0
----
3018

query II rowsort
SELECT DISTINCT 71, 4 - - ( + 45 ) + 28 * + - 62 AS col0
----
71
-1687

query II rowsort
SELECT ALL 27 * - 43, + 65 AS col2
----
-1161
65

query II rowsort
SELECT - 78 AS col0, 34
----
-78
34

query I rowsort
SELECT 27 + CASE 45 WHEN + - 43 THEN - - 96 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( - ( + 21 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT COUNT( * ) * + 94 col1
----
94

skipif mysql # not compatible
query I rowsort label-9859
SELECT COUNT ( * ) * + 94 col1
----
94

query I rowsort
SELECT ALL 56 * + 58 + - 83 col0
----
3165

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT CASE - - MAX( 90 ) WHEN + - 51 + - 72 THEN NULL WHEN - ( + 1 ) / + ( + ( 18 ) ) THEN - CASE 75 WHEN ( COUNT( + 80 ) ) THEN + 6 END ELSE COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT CASE - - MAX ( 90 ) WHEN + - 51 + - 72 THEN NULL WHEN - ( + 1 ) / + ( + ( 18 ) ) THEN - CASE 75 WHEN ( COUNT ( + 80 ) ) THEN + 6 END ELSE COUNT ( * ) END AS col0
----
1

query I rowsort
SELECT ALL + CASE - - 56 WHEN + ( 59 ) THEN NULL WHEN 41 THEN NULL ELSE 10 + + 19 END
----
29

query I rowsort
SELECT ALL - 13 * - + 8 AS col1
----
104

query I rowsort
SELECT + 23 * 29 + + 57
----
724

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL + COUNT( + 87 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL + COUNT ( + 87 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT - - 31 / 76 / - 42 * 74 * AVG ( ALL + 51 ) - - CASE + 86 WHEN 36 + 82 THEN + ( + NULLIF ( + 31, - COUNT( * ) ) ) WHEN - 86 * 99 THEN NULL END * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT - - 31 / 76 / - 42 * 74 * AVG ( ALL + 51 ) - - CASE + 86 WHEN 36 + 82 THEN + ( + NULLIF ( + 31, - COUNT ( * ) ) ) WHEN - 86 * 99 THEN NULL END * 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT - 76 - MIN( ALL + 4 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9867
SELECT - 76 - MIN ( ALL + 4 ) AS col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9868
SELECT ALL + 52 + - 27 DIV - 28
----
52

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + 52 + - 27 / - 28
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT COUNT( DISTINCT 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9869
SELECT COUNT ( DISTINCT 17 ) AS col0
----
1

query II rowsort
SELECT - - 79, 79 * + 31 AS col2
----
79
2449

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL ( + COUNT( + 95 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL ( + COUNT ( + 95 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9872
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) + 2 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) + 2 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9873
SELECT - - ( 63 ) DIV + 14 + + 26 + + - ( - + 58 ) * 7 - - MAX( DISTINCT 57 ) * + NULLIF ( + ( 5 ) * 55 + - COUNT( * ) DIV + 88, - 82 ) AS col1
----
16111

skipif mysql # not compatible
query I rowsort label-9873
SELECT - - ( 63 ) / + 14 + + 26 + + - ( - + 58 ) * 7 - - MAX ( DISTINCT 57 ) * + NULLIF ( + ( 5 ) * 55 + - COUNT ( * ) / + 88, - 82 ) AS col1
----
16111

query I rowsort
SELECT DISTINCT - 17 + + 36 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT + 39 - 50 - 54 / + 88 - + CASE MIN( DISTINCT 45 ) WHEN + 85 * 42 + 58 THEN NULL WHEN - ( + COALESCE ( - 14, + 11 ) ) * SUM( ALL + 50 ) THEN 9 WHEN + 8 + - 3 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT + 39 - 50 - 54 / + 88 - + CASE MIN ( DISTINCT 45 ) WHEN + 85 * 42 + 58 THEN NULL WHEN - ( + COALESCE ( - 14, + 11 ) ) * SUM ( ALL + 50 ) THEN 9 WHEN + 8 + - 3 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL - 0 + + 77 * COUNT( * ) * 24 + - - COUNT( * )
----
1849

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL - 0 + + 77 * COUNT ( * ) * 24 + - - COUNT ( * )
----
1849

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL + + 89 + - ( - + COALESCE ( - 96, + 33 + + + SUM( DISTINCT 7 ) ) ) + - CASE - 92 WHEN 78 THEN + 0 ELSE NULL END * + 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL + + 89 + - ( - + COALESCE ( - 96, + 33 + + + SUM ( DISTINCT 7 ) ) ) + - CASE - 92 WHEN 78 THEN + 0 ELSE NULL END * + 78 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9878
SELECT ALL - ( COUNT( * ) ), + 92 - - 42 + MIN( + 46 ) AS col0
----
-1
180

skipif mysql # not compatible
query II rowsort label-9878
SELECT ALL - ( COUNT ( * ) ), + 92 - - 42 + MIN ( + 46 ) AS col0
----
-1
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9879
SELECT 99 DIV - 97 + + + 82 + - CASE - + COUNT( * ) WHEN - - COALESCE ( + - AVG ( ALL + ( 6 ) ), + 85, - COUNT( * ) DIV 32 ) THEN NULL WHEN + 0 THEN NULL ELSE - NULLIF ( - CAST( + COUNT( * ) AS SIGNED ), + COUNT( * ) + MAX( 59 ) ) END * - ( + 90 ) DIV + 35
----
83

skipif mysql # not compatible
query I rowsort label-9879
SELECT 99 / - 97 + + + 82 + - CASE - + COUNT ( * ) WHEN - - COALESCE ( + - AVG ( ALL + ( 6 ) ), + 85, - COUNT ( * ) / 32 ) THEN NULL WHEN + 0 THEN NULL ELSE - NULLIF ( - CAST ( + COUNT ( * ) AS INTEGER ), + COUNT ( * ) + MAX ( 59 ) ) END * - ( + 90 ) / + 35
----
83

query I rowsort
SELECT ALL + 54 - 59 * - - 37 + 77 AS col0
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL 93 - + NULLIF ( - - COUNT( * ), + 96 ) + - 79 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL 93 - + NULLIF ( - - COUNT ( * ), + 96 ) + - 79 AS col2
----
13

query I rowsort
SELECT 67 * + + 37 AS col2
----
2479

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT DISTINCT 28 * - + 22 * - + COALESCE ( + + 87, - 56 + - 24 + + + COUNT( * ), - 36 ) AS col1
----
53592

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT 28 * - + 22 * - + COALESCE ( + + 87, - 56 + - 24 + + + COUNT ( * ), - 36 ) AS col1
----
53592

query II rowsort
SELECT DISTINCT + 9 * + 68 AS col2, - 12 + - 78
----
612
-90

query I rowsort
SELECT ALL + 0 * - 59 AS col0
----
0

query I rowsort
SELECT ALL - 37 - 74 * + 58
----
-4329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9887
SELECT DISTINCT + SUM( ALL 72 ) * + - AVG ( + 30 ) * + CAST( NULL AS SIGNED ), ( - COUNT( * ) ) DIV + 80 col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9887
SELECT DISTINCT + SUM ( ALL 72 ) * + - AVG ( + 30 ) * + CAST ( NULL AS INTEGER ), ( - COUNT ( * ) ) / + 80 col1
----
NULL
0

query I rowsort
SELECT + 51 * - + NULLIF ( - 2, 63 ) + - 98
----
4

query I rowsort
SELECT 21 * - - 58 AS col1
----
1218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9890
SELECT COALESCE ( 52, - COUNT( * ) ) DIV + ( + 72 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9890
SELECT COALESCE ( 52, - COUNT ( * ) ) / + ( + 72 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT - MIN( - - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT - MIN ( - - 13 )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9892
SELECT DISTINCT - 64 DIV + - COALESCE ( 30, - 59 - + - 8 * 6 DIV + 53 * + 2 - - AVG ( - 13 ) * + COUNT( * ) ) col2
----
2

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT - 64 / + - COALESCE ( 30, - 59 - + - 8 * 6 / + 53 * + 2 - - AVG ( - 13 ) * + COUNT ( * ) ) col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL + 47 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL + 47 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 7 * - 49
----
343

query I rowsort
SELECT 69 * + 1 * - 78
----
-5382

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL 90 + - COUNT( * ) + - + 85 + 84 col2
----
88

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL 90 + - COUNT ( * ) + - + 85 + 84 col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT 56 + + COUNT( ALL + NULLIF ( + COALESCE ( - 73, + 19 + - + 67 ), 87 * 6 ) )
----
57

skipif mysql # not compatible
query I rowsort label-9897
SELECT 56 + + COUNT ( ALL + NULLIF ( + COALESCE ( - 73, + 19 + - + 67 ), 87 * 6 ) )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9898
SELECT + ( + COUNT( * ) ) - - NULLIF ( - - CAST( NULL AS SIGNED ), + 90 ) + - SUM( - + 81 ) * - 42 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT + ( + COUNT ( * ) ) - - NULLIF ( - - CAST ( NULL AS INTEGER ), + 90 ) + - SUM ( - + 81 ) * - 42 col2
----
NULL

query I rowsort
SELECT + 73 + - 64 AS col2
----
9

query I rowsort
SELECT 45 - 69 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT - NULLIF ( - 43, - 66 * + MAX( + 13 ) )
----
43

skipif mysql # not compatible
query I rowsort label-9901
SELECT - NULLIF ( - 43, - 66 * + MAX ( + 13 ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT COUNT( * ) + - 20
----
-19

skipif mysql # not compatible
query I rowsort label-9902
SELECT COUNT ( * ) + - 20
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT + ( - 14 ) + - COUNT( * ) - 29 + + + 8 col1
----
-36

skipif mysql # not compatible
query I rowsort label-9903
SELECT + ( - 14 ) + - COUNT ( * ) - 29 + + + 8 col1
----
-36

query I rowsort
SELECT ALL - 21 + - 64
----
-85

query I rowsort
SELECT DISTINCT 75 + - 63 * - 5
----
390

query I rowsort
SELECT ALL + - 53 + - 96
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT + ( + + 22 ) + COUNT( * ) + 28 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9907
SELECT + ( + + 22 ) + COUNT ( * ) + 28 AS col2
----
51

query I rowsort
SELECT ALL 93 + ( + 48 ) AS col1
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9909
SELECT DISTINCT ( - + CAST( - 21 AS SIGNED ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT ( - + CAST ( - 21 AS INTEGER ) ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT ALL - - COUNT( * ) + ( - 51 ) + + - ( + COALESCE ( + - CAST( + ( - 29 ) AS SIGNED ), + 1 + 57 * 14 ) ) - ( CAST( NULL AS SIGNED ) + - 60 * CASE 93 WHEN + 94 * 54 + + 83 THEN COUNT( * ) ELSE - COUNT( * ) + - COUNT( * ) * - COUNT( * ) END ) * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - - COUNT ( * ) + ( - 51 ) + + - ( + COALESCE ( + - CAST ( + ( - 29 ) AS INTEGER ), + 1 + 57 * 14 ) ) - ( CAST ( NULL AS INTEGER ) + - 60 * CASE 93 WHEN + 94 * 54 + + 83 THEN COUNT ( * ) ELSE - COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) END ) * + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9911
SELECT - 80 * + 83 + - NULLIF ( - - 75, + + 98 ) + + - 80 col1, 67 + - + ( + COUNT( * ) ) col1
----
-6795
66

skipif mysql # not compatible
query II rowsort label-9911
SELECT - 80 * + 83 + - NULLIF ( - - 75, + + 98 ) + + - 80 col1, 67 + - + ( + COUNT ( * ) ) col1
----
-6795
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9912
SELECT + COALESCE ( 24, + - 62 DIV - 41 + + - 60 + + CAST( NULL AS SIGNED ) * + 91 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-9912
SELECT + COALESCE ( 24, + - 62 / - 41 + + - 60 + + CAST ( NULL AS INTEGER ) * + 91 ) AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9913
SELECT 67 * + - COUNT( * ) * + 61 / CAST( NULL AS SIGNED ) + + AVG ( ALL - + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT 67 * + - COUNT ( * ) * + 61 / CAST ( NULL AS INTEGER ) + + AVG ( ALL - + 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT + COALESCE ( 7, - COUNT( * ) + 67, - 49 )
----
7

skipif mysql # not compatible
query I rowsort label-9914
SELECT + COALESCE ( 7, - COUNT ( * ) + 67, - 49 )
----
7

query I rowsort
SELECT NULLIF ( + + 92, + - 50 ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9916
SELECT + 67 DIV + CAST( + - 21 AS SIGNED ) + - + 51 AS col1, + 16 * + 58 AS col0
----
-54
928

skipif mysql # not compatible
query II rowsort label-9916
SELECT + 67 / + CAST ( + - 21 AS INTEGER ) + - + 51 AS col1, + 16 * + 58 AS col0
----
-54
928

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL ( - 6 ) * 53 * - + 64 * - COUNT( * ) - + 38
----
-20390

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL ( - 6 ) * 53 * - + 64 * - COUNT ( * ) - + 38
----
-20390

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT - ( CASE - + 55 WHEN 76 THEN - - 16 + + 62 - ( - COUNT( * ) ) + + 99 / + 91 ELSE NULL END ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9918
SELECT - ( CASE - + 55 WHEN 76 THEN - - 16 + + 62 - ( - COUNT ( * ) ) + + 99 / + 91 ELSE NULL END ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + ( + - 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT DISTINCT 42 * - ( - 46 ) - NULLIF ( + 49, 2 ) * + COUNT( * ) + + 80 AS col1
----
1963

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT 42 * - ( - 46 ) - NULLIF ( + 49, 2 ) * + COUNT ( * ) + + 80 AS col1
----
1963

query I rowsort
SELECT DISTINCT - 23 * 89 AS col2
----
-2047

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT DISTINCT - 14 * + + COUNT( * ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT - 14 * + + COUNT ( * ) col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT - COUNT( * ) * - - 64
----
-64

skipif mysql # not compatible
query I rowsort label-9923
SELECT - COUNT ( * ) * - - 64
----
-64

query I rowsort
SELECT - 45 * + 29 AS col2
----
-1305

onlyif mysql # aggregate syntax: 
query II rowsort label-9925
SELECT ALL + COUNT( * ) col1, 95 AS col2
----
1
95

skipif mysql # not compatible
query II rowsort label-9925
SELECT ALL + COUNT ( * ) col1, 95 AS col2
----
1
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9926
SELECT - SUM( DISTINCT 96 ) + - + 61 DIV 10
----
-102

skipif mysql # not compatible
query I rowsort label-9926
SELECT - SUM ( DISTINCT 96 ) + - + 61 / 10
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-9927
SELECT 5 * - 50 - + SUM( + 19 ) AS col2, CASE + + 99 WHEN + NULLIF ( - + 45, + 73 + 77 ) THEN - 17 * 47 + CASE - 74 WHEN 47 THEN NULL WHEN + COUNT( * ) * + 32 THEN NULL ELSE 63 / + 88 END END
----
-269
NULL

skipif mysql # not compatible
query II rowsort label-9927
SELECT 5 * - 50 - + SUM ( + 19 ) AS col2, CASE + + 99 WHEN + NULLIF ( - + 45, + 73 + 77 ) THEN - 17 * 47 + CASE - 74 WHEN 47 THEN NULL WHEN + COUNT ( * ) * + 32 THEN NULL ELSE 63 / + 88 END END
----
-269
NULL

query I rowsort
SELECT NULLIF ( + 62, + 68 )
----
62

query I rowsort
SELECT NULLIF ( - - 90, + 71 ) AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9930
SELECT - ( - COUNT( * ) ) * + 81 col1, + 88 + + CASE + - CAST( NULL AS SIGNED ) WHEN - COALESCE ( + 30, + COUNT( * ) * 98 ) THEN MAX( DISTINCT 86 ) ELSE NULL END AS col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-9930
SELECT - ( - COUNT ( * ) ) * + 81 col1, + 88 + + CASE + - CAST ( NULL AS INTEGER ) WHEN - COALESCE ( + 30, + COUNT ( * ) * 98 ) THEN MAX ( DISTINCT 86 ) ELSE NULL END AS col1
----
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT + 15 + COUNT( * ) / + SUM( CASE - 30 WHEN - 50 THEN - 7 WHEN - 88 THEN 70 END ) * 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9931
SELECT + 15 + COUNT ( * ) / + SUM ( CASE - 30 WHEN - 50 THEN - 7 WHEN - 88 THEN 70 END ) * 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9932
SELECT ALL + 29 * + 55 + 56 + - 81 - - + ( - 53 ) + - COUNT( * ) DIV + 44 * 72
----
1517

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL + 29 * + 55 + 56 + - 81 - - + ( - 53 ) + - COUNT ( * ) / + 44 * 72
----
1517

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9933
SELECT COUNT( * ) AS col0, - 25 DIV - 46 + - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-9933
SELECT COUNT ( * ) AS col0, - 25 / - 46 + - COUNT ( * )
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9934
SELECT ALL 18, CASE + 15 WHEN - 36 THEN AVG ( DISTINCT - + ( + + 3 ) ) + - + 19 WHEN 7 * ( COUNT( * ) ) + NULLIF ( 14, 29 * - COALESCE ( - MIN( ALL + 62 ), 89 + 40 ) - CASE 36 WHEN ( COUNT( 55 ) ) THEN NULL WHEN 56 THEN + MAX( ALL 50 ) * COUNT( * ) END ) THEN NULL WHEN 85 / CAST( NULL AS SIGNED ) THEN - NULLIF ( + CAST( - 14 AS SIGNED ), - CASE + 2 WHEN 96 THEN - 13 END * 90 ) END + + 78 AS col2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-9934
SELECT ALL 18, CASE + 15 WHEN - 36 THEN AVG ( DISTINCT - + ( + + 3 ) ) + - + 19 WHEN 7 * ( COUNT ( * ) ) + NULLIF ( 14, 29 * - COALESCE ( - MIN ( ALL + 62 ), 89 + 40 ) - CASE 36 WHEN ( COUNT ( 55 ) ) THEN NULL WHEN 56 THEN + MAX ( ALL 50 ) * COUNT ( * ) END ) THEN NULL WHEN 85 / CAST ( NULL AS INTEGER ) THEN - NULLIF ( + CAST ( - 14 AS INTEGER ), - CASE + 2 WHEN 96 THEN - 13 END * 90 ) END + + 78 AS col2
----
18
NULL

query I rowsort
SELECT ALL + 54 + - 16 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT DISTINCT + CAST( + 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT + CAST ( + 88 AS INTEGER )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL + ( + COUNT( * ) ) + + 3 + + - 44
----
-40

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL + ( + COUNT ( * ) ) + + 3 + + - 44
----
-40

query I rowsort
SELECT - - 80 * - - NULLIF ( 91, 4 )
----
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT + - 74 + - NULLIF ( 54, + - 69 ) * - 8 + + - 83 + - MAX( DISTINCT + - 12 ) + - ( - COUNT( * ) + COALESCE ( - COUNT( * ), COUNT( 65 ), COUNT( * ) ) ) AS col0
----
289

skipif mysql # not compatible
query I rowsort label-9939
SELECT + - 74 + - NULLIF ( 54, + - 69 ) * - 8 + + - 83 + - MAX ( DISTINCT + - 12 ) + - ( - COUNT ( * ) + COALESCE ( - COUNT ( * ), COUNT ( 65 ), COUNT ( * ) ) ) AS col0
----
289

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT MIN( - + NULLIF ( + 41, - - 44 / + 50 ) ) + + 93 + + COUNT( * ) * + 97 * - 70 + CASE 41 + - 0 WHEN - COUNT( * ) * - 62 THEN 34 + + 83 WHEN - 23 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT MIN ( - + NULLIF ( + 41, - - 44 / + 50 ) ) + + 93 + + COUNT ( * ) * + 97 * - 70 + CASE 41 + - 0 WHEN - COUNT ( * ) * - 62 THEN 34 + + 83 WHEN - 23 THEN NULL END
----
NULL

query II rowsort
SELECT 15 AS col2, 0 AS col2
----
15
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9942
SELECT + - 24 + - 75 + 27 + 87 - + 37 DIV + + 17 * COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9942
SELECT + - 24 + - 75 + 27 + 87 - + 37 / + + 17 * COUNT ( * )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9943
SELECT + 80 * COUNT( * ) * - NULLIF ( - 81, + + 82 + + COUNT( * ) ) + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT + 80 * COUNT ( * ) * - NULLIF ( - 81, + + 82 + + COUNT ( * ) ) + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9944
SELECT DISTINCT 20 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT 20 / 53 AS col0
----
0

query I rowsort
SELECT ALL NULLIF ( 2, - - AVG ( - 75 ) ) + 91 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ALL COUNT( * ) * - 22 * + 34 + + MIN( 70 ) AS col2
----
-678

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL COUNT ( * ) * - 22 * + 34 + + MIN ( 70 ) AS col2
----
-678

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT + 7 DIV - - 59
----
0

skipif mysql # not compatible
query I rowsort label-9947
SELECT + 7 / - - 59
----
0

query I rowsort
SELECT ALL + 53 * - + 72
----
-3816

query III rowsort
SELECT + 82 AS col2, + 44 * + + NULLIF ( 21, - + 23 / + 66 ) AS col0, 98
----
82
924
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT DISTINCT + 42 DIV + + 63 * 9
----
0

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT + 42 / + + 63 * 9
----
0

query I rowsort
SELECT ALL - 67 * + + 25 AS col2
----
-1675

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT + + 3 - - 69 + - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9952
SELECT + + 3 - - 69 + - COUNT ( * )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9953
SELECT + - ( - 32 ) + - ( 60 ) DIV + + 18 + 79
----
108

skipif mysql # not compatible
query I rowsort label-9953
SELECT + - ( - 32 ) + - ( 60 ) / + + 18 + 79
----
108

query I rowsort
SELECT + - 23 * + 9 + + 59
----
-148

query I rowsort
SELECT ALL 27 * 1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9956
SELECT - CAST( NULL AS SIGNED ) + - 75 + CAST( + MIN( ALL + - 28 ) AS SIGNED ) * - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT - CAST ( NULL AS INTEGER ) + - 75 + CAST ( + MIN ( ALL + - 28 ) AS INTEGER ) * - 81 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9957
SELECT + 25 DIV + + 19 - - 45 * - 17
----
-764

skipif mysql # not compatible
query I rowsort label-9957
SELECT + 25 / + + 19 - - 45 * - 17
----
-764

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9958
SELECT + CAST( 45 AS SIGNED ), - 22 col1
----
45
-22

skipif mysql # not compatible
query II rowsort label-9958
SELECT + CAST ( 45 AS INTEGER ), - 22 col1
----
45
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT + SUM( + ( + 6 ) ) - - 77 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9959
SELECT + SUM ( + ( + 6 ) ) - - 77 AS col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9960
SELECT ALL 44 DIV COALESCE ( - COUNT( * ), - 45 DIV + + 96 ) - - 46 + + + ( + 42 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL 44 / COALESCE ( - COUNT ( * ), - 45 / + + 96 ) - - 46 + + + ( + 42 ) AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9961
SELECT + ( - + 89 ) DIV - 53 + + 94 col2
----
95

skipif mysql # not compatible
query I rowsort label-9961
SELECT + ( - + 89 ) / - 53 + + 94 col2
----
95

query I rowsort
SELECT - 45 * - 8 AS col1
----
360

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT + 57 * 45 DIV + 12 AS col1
----
213

skipif mysql # not compatible
query I rowsort label-9963
SELECT + 57 * 45 / + 12 AS col1
----
213

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT 73 DIV + 55 - + + 78
----
-77

skipif mysql # not compatible
query I rowsort label-9964
SELECT 73 / + 55 - + + 78
----
-77

query II rowsort
SELECT ALL - 37 * 83 AS col2, 65 + + 65 AS col2
----
-3071
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9966
SELECT + 9 DIV COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9966
SELECT + 9 / COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL + 85 * NULLIF ( + - 5, + + 7 ) + + - 69 - COUNT( * ) AS col1
----
-495

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL + 85 * NULLIF ( + - 5, + + 7 ) + + - 69 - COUNT ( * ) AS col1
----
-495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT ( + CASE 22 WHEN + + 48 THEN CAST( 74 AS SIGNED ) WHEN + 0 + + CAST( 56 AS SIGNED ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9968
SELECT ( + CASE 22 WHEN + + 48 THEN CAST ( 74 AS INTEGER ) WHEN + 0 + + CAST ( 56 AS INTEGER ) THEN NULL END )
----
NULL

query I rowsort
SELECT ALL 68 * + 25
----
1700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9970
SELECT + COALESCE ( + CAST( 27 AS SIGNED ), - 3 DIV + SUM( 23 ), + + 20 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9970
SELECT + COALESCE ( + CAST ( 27 AS INTEGER ), - 3 / + SUM ( 23 ), + + 20 ) AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT DISTINCT + - CAST( + 47 AS SIGNED ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT + - CAST ( + 47 AS INTEGER ) col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9972
SELECT - 54 * + 34 + 83 * COUNT( * ) + + 4 * + NULLIF ( - CAST( - - 97 AS SIGNED ), + + 87 + - 34 ) * - 47 + 80
----
16563

skipif mysql # not compatible
query I rowsort label-9972
SELECT - 54 * + 34 + 83 * COUNT ( * ) + + 4 * + NULLIF ( - CAST ( - - 97 AS INTEGER ), + + 87 + - 34 ) * - 47 + 80
----
16563

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL - - 59 * 77 + + SUM( ALL + ( 41 ) )
----
4584

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL - - 59 * 77 + + SUM ( ALL + ( 41 ) )
----
4584

onlyif mysql # aggregate syntax: 
query II rowsort label-9974
SELECT ALL + ( - + 50 ) AS col2, + 53 * - + 92 * NULLIF ( - 27, + COUNT( * ) ) * 65 AS col2
----
-50
8557380

skipif mysql # not compatible
query II rowsort label-9974
SELECT ALL + ( - + 50 ) AS col2, + 53 * - + 92 * NULLIF ( - 27, + COUNT ( * ) ) * 65 AS col2
----
-50
8557380

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT + SUM( DISTINCT - 4 ) + COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9975
SELECT + SUM ( DISTINCT - 4 ) + COUNT ( * ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL + - COUNT( * ) + + - 22
----
-23

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL + - COUNT ( * ) + + - 22
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT DISTINCT - COALESCE ( + 94, MIN( 59 ), - 54 ) * + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT - COALESCE ( + 94, MIN ( 59 ), - 54 ) * + COUNT ( * )
----
-94

query II rowsort
SELECT ALL - + 70 * 17 + 22 + - 35 AS col0, 28 * + + 69 + + - 26 - - + 46 + + 15 * + 15
----
-1203
2177

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT + COUNT( * ) + - + COALESCE ( + COUNT( * ), + 77 * 95 ) + + 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9979
SELECT + COUNT ( * ) + - + COALESCE ( + COUNT ( * ), + 77 * 95 ) + + 98 AS col0
----
98

query I rowsort
SELECT 85 * 63
----
5355

query I rowsort
SELECT - NULLIF ( - 31, + + ( + + 83 ) + 59 * 10 )
----
31

query I rowsort
SELECT 88 + - + 72 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT 34 + + SUM( DISTINCT + 2 ) + 31 - - + COALESCE ( - 50, 33 ) * - 48 AS col1
----
2467

skipif mysql # not compatible
query I rowsort label-9983
SELECT 34 + + SUM ( DISTINCT + 2 ) + 31 - - + COALESCE ( - 50, 33 ) * - 48 AS col1
----
2467

query I rowsort
SELECT 77 - + 79
----
-2

query I rowsort
SELECT ALL 11 - + 25
----
-14

query I rowsort
SELECT 23 + - 50 * + 79
----
-3927

query I rowsort
SELECT DISTINCT - - 28 - 85 AS col1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9988
SELECT ALL 70 DIV + 9 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL 70 / + 9 AS col2
----
7

query I rowsort
SELECT 76 + - - 47 AS col2
----
123

query I rowsort
SELECT ALL 34 * 94 AS col2
----
3196

query II rowsort
SELECT + 95 AS col2, 32
----
95
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9992
SELECT ALL COALESCE ( - + 63, - COALESCE ( 77, - 19, + COUNT( * ) ) DIV 37, - 19 ) * 53
----
-3339

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL COALESCE ( - + 63, - COALESCE ( 77, - 19, + COUNT ( * ) ) / 37, - 19 ) * 53
----
-3339

query I rowsort
SELECT DISTINCT 63 * + CASE + 77 WHEN + 22 / 3 THEN NULL WHEN - 21 / + 42 * + - 19 THEN NULL WHEN + - 91 THEN 21 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL COUNT( * ) + + + 76 * ( + 49 )
----
3725

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL COUNT ( * ) + + + 76 * ( + 49 )
----
3725

query I rowsort
SELECT DISTINCT 27 + - - 87 AS col0
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9996
SELECT DISTINCT + CAST( - 71 AS SIGNED ) + + COUNT( * ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + CAST ( - 71 AS INTEGER ) + + COUNT ( * ) col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT ALL - COALESCE ( 65, ( + 32 ) DIV - 41, + + NULLIF ( 91, - 25 + + - 11 ) * - 88 ) * + 95
----
-6175

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - COALESCE ( 65, ( + 32 ) / - 41, + + NULLIF ( 91, - 25 + + - 11 ) * - 88 ) * + 95
----
-6175

query I rowsort
SELECT 70 * + 52 + 4 + + 71 AS col2
----
3715

query I rowsort
SELECT ALL 62 + + 19 AS col0
----
81

