sqllogictest
Artifact Content
Not logged in

Artifact 69b3025769db18527d0fd86ee5a104fc06945606:


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 l