hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT + + 81 * CASE 92 WHEN - 89 + - 32 THEN NULL WHEN - + COALESCE ( + + 27, - 51 * - ( - - COUNT( * ) ), + + 15 ) + 75 + - 75 THEN - 47 END + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT + + 81 * CASE 92 WHEN - 89 + - 32 THEN NULL WHEN - + COALESCE ( + + 27, - 51 * - ( - - COUNT ( * ) ), + + 15 ) + 75 + - 75 THEN - 47 END + + 85
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 4, - - 33 ) col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT - 49 + - + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2
SELECT - 49 + - + COUNT ( * )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3
SELECT ALL - CAST( NULL AS SIGNED ) * + 46, 77 col2
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3
SELECT ALL - CAST ( NULL AS INTEGER ) * + 46, 77 col2
----
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4
SELECT DISTINCT CAST( - - NULLIF ( 60, + AVG ( DISTINCT 81 ) ) AS SIGNED ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT CAST ( - - NULLIF ( 60, + AVG ( DISTINCT 81 ) ) AS INTEGER ) AS col2
----
60

query I rowsort
SELECT ALL - 53 - + + 70 + 81
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT - - 47 * + 16 + + COUNT( * ) AS col1
----
753

skipif mysql # not compatible
query I rowsort label-6
SELECT - - 47 * + 16 + + COUNT ( * ) AS col1
----
753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7
SELECT ALL - + 91 * + 36 AS col2, 23 * CAST( NULL AS SIGNED ) * + SUM( - 72 ) / 21 + - 45 + - AVG ( DISTINCT + 84 ) * ( + + 65 ) + - 53 * - 23
----
-3276
NULL

skipif mysql # not compatible
query II rowsort label-7
SELECT ALL - + 91 * + 36 AS col2, 23 * CAST ( NULL AS INTEGER ) * + SUM ( - 72 ) / 21 + - 45 + - AVG ( DISTINCT + 84 ) * ( + + 65 ) + - 53 * - 23
----
-3276
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT - ( ( CASE + 29 WHEN + + 91 THEN NULL ELSE - 13 DIV + 72 + 83 + + 38 END ) )
----
-121

skipif mysql # not compatible
query I rowsort label-8
SELECT - ( ( CASE + 29 WHEN + + 91 THEN NULL ELSE - 13 / + 72 + 83 + + 38 END ) )
----
-121

query I rowsort
SELECT + 12 + + 82 + ( - 18 )
----
76

query II rowsort
SELECT 0 * + 14, 17 * + 69 * + 80 AS col2
----
0
93840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-11
SELECT - COUNT( * ) * + + 78 * COALESCE ( 80, 7 + - + 4, COUNT( * ) ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-11
SELECT - COUNT ( * ) * + + 78 * COALESCE ( 80, 7 + - + 4, COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 93 AS col0
----
-93

query II rowsort
SELECT DISTINCT COALESCE ( + 59, - 60 ) * + 6 col1, + 29 + + 27 * 47 + + 28 AS col1
----
354
1326

query I rowsort
SELECT ALL 84 * 10
----
840

query I rowsort
SELECT 97 * + 83 + - 64 + + - 97
----
7890

query I rowsort
SELECT ALL + 6 * - - 81
----
486

query I rowsort
SELECT 90 * 56 * 75 col0
----
378000

onlyif mysql # aggregate syntax: 
query II rowsort label-18
SELECT 26 + 35 - + COUNT( * ), 13 AS col1
----
60
13

skipif mysql # not compatible
query II rowsort label-18
SELECT 26 + 35 - + COUNT ( * ), 13 AS col1
----
60
13

query I rowsort
SELECT ALL 49 * - 91 AS col2
----
-4459

query I rowsort
SELECT - 32 * - 88 + 80 AS col1
----
2896

query I rowsort
SELECT 16 * 36 col1
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-22
SELECT ALL CAST( - - 14 AS SIGNED ) + + + 21
----
35

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL CAST ( - - 14 AS INTEGER ) + + + 21
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-23
SELECT 66 AS col0, + CAST( SUM( 28 ) AS SIGNED )
----
66
28

skipif mysql # not compatible
query II rowsort label-23
SELECT 66 AS col0, + CAST ( SUM ( 28 ) AS INTEGER )
----
66
28

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT ALL ( - COUNT( * ) ) + 35 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL ( - COUNT ( * ) ) + 35 AS col2
----
34

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-26
SELECT ALL - 80, - ( - CAST( + 58 AS SIGNED ) ) AS col0
----
-80
58

skipif mysql # not compatible
query II rowsort label-26
SELECT ALL - 80, - ( - CAST ( + 58 AS INTEGER ) ) AS col0
----
-80
58

query I rowsort
SELECT DISTINCT - 56 + - 61 AS col2
----
-117

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-29
SELECT 17 * NULLIF ( - 51, - 81 ) - 72 * - - CAST( 60 AS SIGNED )
----
-5187

skipif mysql # not compatible
query I rowsort label-29
SELECT 17 * NULLIF ( - 51, - 81 ) - 72 * - - CAST ( 60 AS INTEGER )
----
-5187

query II rowsort
SELECT + + 79 AS col0, + 93 AS col0
----
79
93

query I rowsort
SELECT ALL + - 68 - + 26
----
-94

query II rowsort
SELECT ALL - 33, + 3 * - 69 col0
----
-33
-207

query I rowsort
SELECT 92 + + 90 AS col2
----
182

query I rowsort
SELECT 36 - - + 69 AS col0
----
105

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-36
SELECT ALL + 21 - 17 * + 13 * - + 86 * - 60 * - CAST( NULL AS DECIMAL ) - - - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL + 21 - 17 * + 13 * - + 86 * - 60 * - CAST ( NULL AS REAL ) - - - 80 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT - 36 DIV + 22 + + 86 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-37
SELECT - 36 / + 22 + + 86 AS col1
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT COUNT( * ) * - 38 - 3 + - 90 AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-39
SELECT COUNT ( * ) * - 38 - 3 + - 90 AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT + NULLIF ( - 75, - 56 + - COUNT( * ) * + COUNT( * ) * + - 35 ) * COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-40
SELECT + NULLIF ( - 75, - 56 + - COUNT ( * ) * + COUNT ( * ) * + - 35 ) * COUNT ( * )
----
-75

query I rowsort
SELECT 61 + + 89 * - + 3 * + + 15 * 31 * - ( - + 68 ) AS col2
----
-8442479

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ALL + 86 * - + 88 * - + 0 + ( - + 32 ) * + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL + 86 * - + 88 * - + 0 + ( - + 32 ) * + COUNT ( * )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-43
SELECT 0 * + + CAST( NULL AS SIGNED ) * - AVG ( ALL 26 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT 0 * + + CAST ( NULL AS INTEGER ) * - AVG ( ALL 26 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT DISTINCT SUM( 47 )
----
47

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT SUM ( 47 )
----
47

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-46
SELECT ALL + COUNT( * ) + COALESCE ( - 38, 40 DIV - 3 + - - 5 )
----
-37

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + COUNT ( * ) + COALESCE ( - 38, 40 / - 3 + - - 5 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-47
SELECT ALL - ( COUNT( * ) ) * - - 14 DIV - - MIN( DISTINCT 27 ) + + 58
----
58

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL - ( COUNT ( * ) ) * - - 14 / - - MIN ( DISTINCT 27 ) + + 58
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-48
SELECT 16 * - CAST( NULL AS SIGNED ), SUM( ALL - 73 ) + 16 col2
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-48
SELECT 16 * - CAST ( NULL AS INTEGER ), SUM ( ALL - 73 ) + 16 col2
----
NULL
-57

query I rowsort
SELECT ALL - 71 * + 34 + + - 55 AS col1
----
-2469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-50
SELECT ALL + 32 * - + CAST( + 65 AS SIGNED ) * - 16 + + COUNT( * ) AS col1
----
33281

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL + 32 * - + CAST ( + 65 AS INTEGER ) * - 16 + + COUNT ( * ) AS col1
----
33281

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ALL 27 * - 55 * + 53 + - 44 - 43 * 81 + + MIN( + 25 ) + - + 24 + + 14 * + + 13 - + 74 + 10 AS col0
----
-82113

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL 27 * - 55 * + 53 + - 44 - 43 * 81 + + MIN ( + 25 ) + - + 24 + + 14 * + + 13 - + 74 + 10 AS col0
----
-82113

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL - MIN( NULLIF ( - + 58, + 92 ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL - MIN ( NULLIF ( - + 58, + 92 ) ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT 25 + SUM( DISTINCT - - 29 )
----
54

skipif mysql # not compatible
query I rowsort label-53
SELECT 25 + SUM ( DISTINCT - - 29 )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT 60 DIV ( + - 78 ) * - 51 - + 71 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-54
SELECT 60 / ( + - 78 ) * - 51 - + 71 AS col2
----
-71

query II rowsort
SELECT ALL 35 - 36 AS col2, + 69 AS col2
----
-1
69

onlyif mysql # aggregate syntax: 
query II rowsort label-56
SELECT MIN( ALL - 34 ), + 62 AS col1
----
-34
62

skipif mysql # not compatible
query II rowsort label-56
SELECT MIN ( ALL - 34 ), + 62 AS col1
----
-34
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-57
SELECT CASE CAST( + 45 AS SIGNED ) WHEN + 68 THEN + - NULLIF ( - CAST( + COUNT( * ) AS SIGNED ), - + 54 ) ELSE - 43 END + - - 55
----
12

skipif mysql # not compatible
query I rowsort label-57
SELECT CASE CAST ( + 45 AS INTEGER ) WHEN + 68 THEN + - NULLIF ( - CAST ( + COUNT ( * ) AS INTEGER ), - + 54 ) ELSE - 43 END + - - 55
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-58
SELECT + - COUNT( * ) * - NULLIF ( 30, - MIN( + 28 ) ) + + CAST( NULL AS DECIMAL ) - - NULLIF ( + 24, ( - NULLIF ( - 27, + 61 ) ) + - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT + - COUNT ( * ) * - NULLIF ( 30, - MIN ( + 28 ) ) + + CAST ( NULL AS REAL ) - - NULLIF ( + 24, ( - NULLIF ( - 27, + 61 ) ) + - 35 )
----
NULL

query II rowsort
SELECT 12 * 82, - 72 + - + 16 + + 23 col2
----
984
-65

query I rowsort
SELECT DISTINCT - - 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT DISTINCT + 53 * + + COUNT( * ) + - COUNT( * ) + + - 86 - + NULLIF ( 10, + 18 ) + - 49 * + 71
----
-3523

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT + 53 * + + COUNT ( * ) + - COUNT ( * ) + + - 86 - + NULLIF ( 10, + 18 ) + - 49 * + 71
----
-3523

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL - + COUNT( - - 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL - + COUNT ( - - 88 ) AS col1
----
-1

query I rowsort
SELECT + 67 + - 4 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT + - 20 * SUM( ALL 17 ) col0
----
-340

skipif mysql # not compatible
query I rowsort label-64
SELECT + - 20 * SUM ( ALL 17 ) col0
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT + + MIN( ALL + 67 ) + - 2
----
65

skipif mysql # not compatible
query I rowsort label-65
SELECT + + MIN ( ALL + 67 ) + - 2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT - MAX( 51 ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-66
SELECT - MAX ( 51 ) col1
----
-51

query I rowsort
SELECT - ( NULLIF ( - + 32, - - CASE + 65 WHEN + ( + 58 ) THEN + + ( + 70 ) END ) ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT ALL MIN( 74 ) * 83
----
6142

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL MIN ( 74 ) * 83
----
6142

query II rowsort
SELECT + 43 + + - 88 col2, - 73
----
-45
-73

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

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

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL COUNT ( * ) + + 45 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT DISTINCT MAX( DISTINCT 82 ) + - ( + + 47 )
----
35

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT MAX ( DISTINCT 82 ) + - ( + + 47 )
----
35

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

skipif mysql # not compatible
query I rowsort label-73
SELECT + 37 / 58
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT - 43 DIV 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-74
SELECT - 43 / 47 AS col1
----
0

query I rowsort
SELECT - 20 * + 85
----
-1700

query I rowsort
SELECT + 31 + + 94 AS col1
----
125

query I rowsort
SELECT + 7 + 65
----
72

query I rowsort
SELECT - 84 + + 0
----
-84

query I rowsort
SELECT ( + - COALESCE ( 55, + 62, + 21 + + - 50 ) ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-80
SELECT + 73 DIV COUNT( * ) + - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-80
SELECT + 73 / COUNT ( * ) + - COUNT ( * ) AS col2
----
72

query I rowsort
SELECT ALL + ( + 3 ) * - 93 - + + 25 AS col1
----
-304

query I rowsort
SELECT ALL + COALESCE ( + 66, - - 63 - - 82 ) AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-83
SELECT COALESCE ( + 88, COALESCE ( - MIN( - 45 ), 59 + + 27 + - 43, - 33 ) DIV + 15, + 21 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-83
SELECT COALESCE ( + 88, COALESCE ( - MIN ( - 45 ), 59 + + 27 + - 43, - 33 ) / + 15, + 21 ) AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-84
SELECT ALL 76 * + 89 - - 27 * CAST( + COUNT( DISTINCT + 77 ) AS SIGNED ) * + 24
----
7412

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL 76 * + 89 - - 27 * CAST ( + COUNT ( DISTINCT + 77 ) AS INTEGER ) * + 24
----
7412

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ALL + - MIN( ALL + - 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL + - MIN ( ALL + - 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT - NULLIF ( + MIN( ALL + + 37 ), 83 + - 17 + COUNT( - 83 ) * - + 9 + 87 )
----
-37

skipif mysql # not compatible
query I rowsort label-87
SELECT - NULLIF ( + MIN ( ALL + + 37 ), 83 + - 17 + COUNT ( - 83 ) * - + 9 + 87 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT + SUM( DISTINCT 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-88
SELECT + SUM ( DISTINCT 47 ) AS col0
----
47

query I rowsort
SELECT ALL - - 84 * - 24 AS col0
----
-2016

onlyif mysql # DIV for integer division: 
query I rowsort label-90
SELECT - + COALESCE ( 21, 78 ) DIV - 2 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-90
SELECT - + COALESCE ( 21, 78 ) / - 2 AS col1
----
10

query I rowsort
SELECT + 74 * + + 69 AS col2
----
5106

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT DISTINCT + + 71 * - + CASE 44 WHEN - 77 THEN + 79 / + + COUNT( * ) + - NULLIF ( - SUM( DISTINCT + 37 ), + ( - + AVG ( - 29 ) ) * - COUNT( + - 30 ) ) * 8 END + + + 89 + - 62 * 73 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT + + 71 * - + CASE 44 WHEN - 77 THEN + 79 / + + COUNT ( * ) + - NULLIF ( - SUM ( DISTINCT + 37 ), + ( - + AVG ( - 29 ) ) * - COUNT ( + - 30 ) ) * 8 END + + + 89 + - 62 * 73 * COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-94
SELECT ALL + 25 * 78 * + 65 + - ( - COUNT( * ) ) + - 79 * 17 + COUNT( * ), 95 * - ( 27 ) + 7 AS col0
----
125409
-2558

skipif mysql # not compatible
query II rowsort label-94
SELECT ALL + 25 * 78 * + 65 + - ( - COUNT ( * ) ) + - 79 * 17 + COUNT ( * ), 95 * - ( 27 ) + 7 AS col0
----
125409
-2558

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-96
SELECT + + 8 * + 29 + - 63 DIV CAST( - 10 AS SIGNED ) AS col0
----
238

skipif mysql # not compatible
query I rowsort label-96
SELECT + + 8 * + 29 + - 63 / CAST ( - 10 AS INTEGER ) AS col0
----
238

query I rowsort
SELECT ALL 29 * - - 40 * + 86 + + 61 * - ( - 71 )
----
104091

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT - + 47 * + COUNT( * ) * + 98 - - + 47
----
-4559

skipif mysql # not compatible
query I rowsort label-98
SELECT - + 47 * + COUNT ( * ) * + 98 - - + 47
----
-4559

query I rowsort
SELECT - - 89 + 75 AS col2
----
164

query I rowsort
SELECT - + 74 * + 48 - + - 76 + 84 * + + 29 + 58
----
-982

query I rowsort
SELECT + 2 * 3 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-102
SELECT DISTINCT 65 AS col1, - 55 + + - COUNT( * ) + - 10 * - 15 * COUNT( * ) * - 90 AS col2
----
65
-13556

skipif mysql # not compatible
query II rowsort label-102
SELECT DISTINCT 65 AS col1, - 55 + + - COUNT ( * ) + - 10 * - 15 * COUNT ( * ) * - 90 AS col2
----
65
-13556

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

query I rowsort
SELECT + 66 + + - 92 AS col2
----
-26

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-106
SELECT ALL COUNT( DISTINCT + CAST( COALESCE ( - 94, 14 * + ( - 36 ) + 20 ) AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL COUNT ( DISTINCT + CAST ( COALESCE ( - 94, 14 * + ( - 36 ) + 20 ) AS INTEGER ) ) AS col1
----
1

query III rowsort
SELECT 82 AS col1, 49, 89 AS col2
----
82
49
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT - NULLIF ( 46, + 88 * + COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-109
SELECT - NULLIF ( 46, + 88 * + COUNT ( * ) )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT + 54 DIV - 16
----
-3

skipif mysql # not compatible
query I rowsort label-110
SELECT + 54 / - 16
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT ALL MAX( + COALESCE ( + 81, - 29, + ( - 69 ) ) ) - - 34 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL MAX ( + COALESCE ( + 81, - 29, + ( - 69 ) ) ) - - 34 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT + COUNT( * ) - - 63 + - 62 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-112
SELECT + COUNT ( * ) - - 63 + - 62 AS col1
----
2

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT ALL 12 DIV 12 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL 12 / 12 AS col0
----
1

query I rowsort
SELECT 76 * 58 - - 54 col0
----
4462

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

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

query II rowsort
SELECT ALL + 79 AS col0, - 6
----
79
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT NULLIF ( + 71, - 65 ) * 57 + 59 + 60 + - 41 + - ( - COUNT( * ) ) * 77
----
4202

skipif mysql # not compatible
query I rowsort label-119
SELECT NULLIF ( + 71, - 65 ) * 57 + 59 + 60 + - 41 + - ( - COUNT ( * ) ) * 77
----
4202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-120
SELECT ALL - 40 * + CAST( - 99 AS SIGNED ) AS col2
----
3960

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL - 40 * + CAST ( - 99 AS INTEGER ) AS col2
----
3960

query II rowsort
SELECT DISTINCT + 92, - 96 col0
----
92
-96

query I rowsort
SELECT ALL - 86 * + + 81 * + 68
----
-473688

query I rowsort
SELECT ALL - 75 * + + 97 + + 79
----
-7196

query II rowsort
SELECT DISTINCT + - 88, 74 AS col2
----
-88
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-125
SELECT + + ( - + 12 ) DIV + 61 * + 72 + COUNT( * ) + 38 * 34 DIV 80 + + 94 + - 61 + - COUNT( * ), + 42 AS col2
----
49
42

skipif mysql # not compatible
query II rowsort label-125
SELECT + + ( - + 12 ) / + 61 * + 72 + COUNT ( * ) + 38 * 34 / 80 + + 94 + - 61 + - COUNT ( * ), + 42 AS col2
----
49
42

query II rowsort
SELECT ALL - - 6 AS col1, 95 col2
----
6
95

onlyif mysql # aggregate syntax: 
query II rowsort label-127
SELECT + 64 AS col1, + ( + + COALESCE ( COUNT( * ), + - 78 ) )
----
64
1

skipif mysql # not compatible
query II rowsort label-127
SELECT + 64 AS col1, + ( + + COALESCE ( COUNT ( * ), + - 78 ) )
----
64
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-128
SELECT ALL + 34 + - - 20 + + 5 * + COUNT( * ) AS col1, MIN( DISTINCT - NULLIF ( - 86, + COALESCE ( CAST( NULL AS SIGNED ), - 19 * - - 11 ) ) )
----
59
86

skipif mysql # not compatible
query II rowsort label-128
SELECT ALL + 34 + - - 20 + + 5 * + COUNT ( * ) AS col1, MIN ( DISTINCT - NULLIF ( - 86, + COALESCE ( CAST ( NULL AS INTEGER ), - 19 * - - 11 ) ) )
----
59
86

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT 98 DIV ( - + 46 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-131
SELECT 98 / ( - + 46 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT DISTINCT - COUNT( * ) + + 25 * 88 AS col1
----
2199

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT - COUNT ( * ) + + 25 * 88 AS col1
----
2199

query I rowsort
SELECT + + ( - 70 ) col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-134
SELECT CASE + CASE - + 13 WHEN 17 * COUNT( * ) * + 38 * 6 + 6 / - 27 THEN COUNT( - 47 ) WHEN + 88 THEN + 6 + + 57 END WHEN - 80 THEN - CAST( - 38 AS SIGNED ) - 83 ELSE - - COUNT( - CAST( NULL AS SIGNED ) ) + CAST( 5 AS SIGNED ) END + - 87
----
-82

skipif mysql # not compatible
query I rowsort label-134
SELECT CASE + CASE - + 13 WHEN 17 * COUNT ( * ) * + 38 * 6 + 6 / - 27 THEN COUNT ( - 47 ) WHEN + 88 THEN + 6 + + 57 END WHEN - 80 THEN - CAST ( - 38 AS INTEGER ) - 83 ELSE - - COUNT ( - CAST ( NULL AS INTEGER ) ) + CAST ( 5 AS INTEGER ) END + - 87
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT + 40 + + CASE + - NULLIF ( - 80, - 64 + - COUNT( * ) - + - 79 ) WHEN + + COUNT( * ) THEN + - 37 - COUNT( * ) + + 84 WHEN + 96 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT + 40 + + CASE + - NULLIF ( - 80, - 64 + - COUNT ( * ) - + - 79 ) WHEN + + COUNT ( * ) THEN + - 37 - COUNT ( * ) + + 84 WHEN + 96 THEN NULL END AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-137
SELECT + 66 + 21 col0, - 11 * + + 2 DIV + + 84 AS col1
----
87
0

skipif mysql # not compatible
query II rowsort label-137
SELECT + 66 + 21 col0, - 11 * + + 2 / + + 84 AS col1
----
87
0

query I rowsort
SELECT DISTINCT + + 14 * 75 * 20 AS col0
----
21000

onlyif mysql # DIV for integer division: 
query I rowsort label-139
SELECT 39 DIV + 53 col0
----
0

skipif mysql # not compatible
query I rowsort label-139
SELECT 39 / + 53 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-140
SELECT - + COUNT( * ) * ( 96 ) DIV + - 57 + + + MAX( NULLIF ( + 86, 21 ) ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-140
SELECT - + COUNT ( * ) * ( 96 ) / + - 57 + + + MAX ( NULLIF ( + 86, 21 ) ) AS col1
----
87

query I rowsort
SELECT 70 * + 26
----
1820

query II rowsort
SELECT 39 + 43 AS col1, + 43 col0
----
82
43

query I rowsort
SELECT ALL - ( - - NULLIF ( 46, 28 + + 40 ) ) + + + 84
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT ALL - NULLIF ( 69, - 24 * 68 / + MIN( DISTINCT 34 ) + - COUNT( * ) ) * - 97 * - MAX( 68 ) * - ( - 41 ) + - 58 + + 25 AS col2
----
-18660117

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL - NULLIF ( 69, - 24 * 68 / + MIN ( DISTINCT 34 ) + - COUNT ( * ) ) * - 97 * - MAX ( 68 ) * - ( - 41 ) + - 58 + + 25 AS col2
----
-18660117

query I rowsort
SELECT 16 + - ( - 50 ) AS col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT DISTINCT 20 + - COALESCE ( - + 53, + ( - 16 ) * 0 ) DIV + 55 * - 79
----
20

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT 20 + - COALESCE ( - + 53, + ( - 16 ) * 0 ) / + 55 * - 79
----
20

query I rowsort
SELECT DISTINCT - 98 * 50 AS col1
----
-4900

query I rowsort
SELECT DISTINCT 28 col1
----
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-149
SELECT 60 + CAST( + 35 AS SIGNED ) + - 48 DIV 62
----
95

skipif mysql # not compatible
query I rowsort label-149
SELECT 60 + CAST ( + 35 AS INTEGER ) + - 48 / 62
----
95

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-151
SELECT ALL - ( - + 97 ) DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL - ( - + 97 ) / + 52
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-152
SELECT 50 + 41 + 88 DIV - - COUNT( - - NULLIF ( - 22, - ( - 46 ) + + ( 61 ) ) )
----
179

skipif mysql # not compatible
query I rowsort label-152
SELECT 50 + 41 + 88 / - - COUNT ( - - NULLIF ( - 22, - ( - 46 ) + + ( 61 ) ) )
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-153
SELECT DISTINCT 6 * ( + CAST( + 58 AS SIGNED ) )
----
348

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT 6 * ( + CAST ( + 58 AS INTEGER ) )
----
348

query II rowsort
SELECT DISTINCT + 35 * + 28 AS col0, + 70 AS col2
----
980
70

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT MIN( DISTINCT - - 16 ) * - 28 + + 59 * - 47 * - + 8 AS col0
----
21736

skipif mysql # not compatible
query I rowsort label-155
SELECT MIN ( DISTINCT - - 16 ) * - 28 + + 59 * - 47 * - + 8 AS col0
----
21736

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT + COUNT( * ) * - 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-156
SELECT + COUNT ( * ) * - 93 AS col0
----
-93

query I rowsort
SELECT - 20 + + - 94
----
-114

query II rowsort
SELECT ALL - - ( - 98 ) AS col1, - 79 AS col2
----
-98
-79

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

skipif mysql # not compatible
query I rowsort label-159
SELECT - 64 / COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT 56 + - ( - COUNT( ALL 32 ) ) - - 17 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-160
SELECT 56 + - ( - COUNT ( ALL 32 ) ) - - 17 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT - COUNT( * ) * + 75 + 25 + - 50 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-161
SELECT - COUNT ( * ) * + 75 + 25 + - 50 AS col1
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-162
SELECT ALL 61 DIV + 88 * MAX( ALL + 45 ) * - - 10 - 98 DIV + + 48
----
-2

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL 61 / + 88 * MAX ( ALL + 45 ) * - - 10 - 98 / + + 48
----
-2

query II rowsort
SELECT DISTINCT 65 + 19 AS col2, 70
----
84
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT ALL - - 54 * + COUNT( * ) col0
----
54

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL - - 54 * + COUNT ( * ) col0
----
54

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

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

query I rowsort
SELECT DISTINCT - 80 + 35
----
-45

query I rowsort
SELECT ALL + - 42 + 53 AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-169
SELECT - 80 * - 16 AS col2, + MAX( - 76 ) AS col0
----
1280
-76

skipif mysql # not compatible
query II rowsort label-169
SELECT - 80 * - 16 AS col2, + MAX ( - 76 ) AS col0
----
1280
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT DISTINCT - + 12 + - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT - + 12 + - COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT + NULLIF ( + + COUNT( * ), - ( - CASE - 43 WHEN - COUNT( * ) THEN ( + 35 ) END ) )
----
1

skipif mysql # not compatible
query I rowsort label-171
SELECT + NULLIF ( + + COUNT ( * ), - ( - CASE - 43 WHEN - COUNT ( * ) THEN ( + 35 ) END ) )
----
1

query I rowsort
SELECT + + 97 col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-173
SELECT ALL + 87 + + CAST( NULL AS SIGNED ) + - 54 * + 73 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL + 87 + + CAST ( NULL AS INTEGER ) + - 54 * + 73 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-174
SELECT - - NULLIF ( - CAST( NULL AS SIGNED ), - + CAST( - COUNT( DISTINCT + 71 ) AS SIGNED ) + 73 ) * - 46 - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT - - NULLIF ( - CAST ( NULL AS INTEGER ), - + CAST ( - COUNT ( DISTINCT + 71 ) AS INTEGER ) + 73 ) * - 46 - + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT ALL + 76 * - MIN( + 70 )
----
-5320

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL + 76 * - MIN ( + 70 )
----
-5320

onlyif mysql # aggregate syntax: 
query II rowsort label-176
SELECT DISTINCT COUNT( * ) - + + COUNT( * ) + - 44 AS col0, + 10
----
-44
10

skipif mysql # not compatible
query II rowsort label-176
SELECT DISTINCT COUNT ( * ) - + + COUNT ( * ) + - 44 AS col0, + 10
----
-44
10

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT ALL + COUNT( ALL 13 ) - + 43 * - 39
----
1678

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL + COUNT ( ALL 13 ) - + 43 * - 39
----
1678

query I rowsort
SELECT 35 * + 98 AS col2
----
3430

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

query I rowsort
SELECT ALL - 57 - - ( 64 ) + - 82
----
-75

query I rowsort
SELECT 51 + + + 70 + - - 3 * - 94
----
-161

query I rowsort
SELECT 54 - - 77 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT MAX( + 28 ) * + 88
----
2464

skipif mysql # not compatible
query I rowsort label-183
SELECT MAX ( + 28 ) * + 88
----
2464

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

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL + COUNT ( * ) * - 97 AS col2
----
-97

query II rowsort
SELECT 34 * ( + 85 ) AS col1, - 82 AS col0
----
2890
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-186
SELECT ALL + ( + + 89 ) * - 18 col0, ( 4 ) + + COUNT( * ) * + COUNT( * ) AS col2
----
-1602
5

skipif mysql # not compatible
query II rowsort label-186
SELECT ALL + ( + + 89 ) * - 18 col0, ( 4 ) + + COUNT ( * ) * + COUNT ( * ) AS col2
----
-1602
5

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

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

query II rowsort
SELECT 60 * + 83 * 52, + 37 AS col1
----
258960
37

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

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL COUNT( - - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL COUNT ( - - 50 )
----
1

query II rowsort
SELECT 50, - 59 AS col2
----
50
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-192
SELECT DISTINCT NULLIF ( - + 15, NULLIF ( - 78, - + COALESCE ( + 44, - - CAST( NULL AS SIGNED ), - 17 * 23 - 21 ) * 49 * - - 14 ) + + CASE 91 WHEN - 39 THEN NULL ELSE + ( - 17 ) END )
----
-15

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT NULLIF ( - + 15, NULLIF ( - 78, - + COALESCE ( + 44, - - CAST ( NULL AS INTEGER ), - 17 * 23 - 21 ) * 49 * - - 14 ) + + CASE 91 WHEN - 39 THEN NULL ELSE + ( - 17 ) END )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT - 35 + 61 + - - 23 * - - SUM( DISTINCT + 59 ) + + COUNT( * ) + - 5 + 64 * + 76 - - 55
----
6298

skipif mysql # not compatible
query I rowsort label-193
SELECT - 35 + 61 + - - 23 * - - SUM ( DISTINCT + 59 ) + + COUNT ( * ) + - 5 + 64 * + 76 - - 55
----
6298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-194
SELECT DISTINCT + + 40 + + CASE 19 WHEN CAST( 37 AS SIGNED ) THEN + + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT + + 40 + + CASE 19 WHEN CAST ( 37 AS INTEGER ) THEN + + 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL + ( + NULLIF ( 83, - + 74 / + 64 * + 26 ) ) + + + 46 - + COUNT( * ) * + - 16 * + - COUNT( * ) + - + 90 + + COUNT( DISTINCT - - 62 ) * - 54
----
-31

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + ( + NULLIF ( 83, - + 74 / + 64 * + 26 ) ) + + + 46 - + COUNT ( * ) * + - 16 * + - COUNT ( * ) + - + 90 + + COUNT ( DISTINCT - - 62 ) * - 54
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-196
SELECT - + 61 - + - 35 - CAST( 3 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-196
SELECT - + 61 - + - 35 - CAST ( 3 AS INTEGER )
----
-29

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT DISTINCT COUNT( * ) * + 77 + 59 + 5
----
141

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT COUNT ( * ) * + 77 + 59 + 5
----
141

query I rowsort
SELECT ALL 85 * - 39 + + + 59 + - - NULLIF ( + 86, - + 43 ) AS col1
----
-3170

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT + 98 DIV 40
----
2

skipif mysql # not compatible
query I rowsort label-201
SELECT + 98 / 40
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT ALL - + 80 * COUNT( * ) * - 31 - + + 11 * 54 + - 6 AS col1
----
1880

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL - + 80 * COUNT ( * ) * - 31 - + + 11 * 54 + - 6 AS col1
----
1880

query II rowsort
SELECT ALL + 71 AS col1, - 11 AS col2
----
71
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL + - CASE 30 WHEN COALESCE ( - 17, - - ( 20 ) / + - 59, + - 68 ) THEN NULL WHEN - 53 THEN - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL + - CASE 30 WHEN COALESCE ( - 17, - - ( 20 ) / + - 59, + - 68 ) THEN NULL WHEN - 53 THEN - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-205
SELECT + COALESCE ( 78, + 21, - - MAX( + + 10 ) * 31 + 5 ) DIV + COUNT( * ) - NULLIF ( COUNT( * ), 87 + - 71 ) + 66 + - 43 * + + 2 * 27 + - ( 47 ) * - 97 * - 6 * + ( - 27 ) - - 94 * 93 + COUNT( * ) * + 93
----
745214

skipif mysql # not compatible
query I rowsort label-205
SELECT + COALESCE ( 78, + 21, - - MAX ( + + 10 ) * 31 + 5 ) / + COUNT ( * ) - NULLIF ( COUNT ( * ), 87 + - 71 ) + 66 + - 43 * + + 2 * 27 + - ( 47 ) * - 97 * - 6 * + ( - 27 ) - - 94 * 93 + COUNT ( * ) * + 93
----
745214

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT + 78 + + - COUNT( * ) col1
----
77

skipif mysql # not compatible
query I rowsort label-206
SELECT + 78 + + - COUNT ( * ) col1
----
77

query I rowsort
SELECT + - 10 + - - 7
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-208
SELECT ALL 40 * + - ( - - ( + - CAST( NULL AS SIGNED ) ) ) / - 53 + + - CASE + + 7 WHEN NULLIF ( + 25, 84 ) - + 2 THEN - CAST( 13 AS DECIMAL ) ELSE + + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL 40 * + - ( - - ( + - CAST ( NULL AS INTEGER ) ) ) / - 53 + + - CASE + + 7 WHEN NULLIF ( + 25, 84 ) - + 2 THEN - CAST ( 13 AS REAL ) ELSE + + 44 END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-210
SELECT DISTINCT + + 58 AS col1, COALESCE ( + 90, 58 + + COUNT( * ) + ( + CASE + - 7 WHEN + COUNT( ALL 10 ) + + + 23 THEN + - 19 ELSE + 93 END ), + - 17 + - 40 - + CAST( NULL AS SIGNED ) + - COALESCE ( - + 3, + + 34 + - 29 ) * - SUM( ALL - - 94 ) ) * + 76 + 52 DIV 14
----
58
6843

skipif mysql # not compatible
query II rowsort label-210
SELECT DISTINCT + + 58 AS col1, COALESCE ( + 90, 58 + + COUNT ( * ) + ( + CASE + - 7 WHEN + COUNT ( ALL 10 ) + + + 23 THEN + - 19 ELSE + 93 END ), + - 17 + - 40 - + CAST ( NULL AS INTEGER ) + - COALESCE ( - + 3, + + 34 + - 29 ) * - SUM ( ALL - - 94 ) ) * + 76 + 52 / 14
----
58
6843

query II rowsort
SELECT + 44 + + 62 AS col2, - 64 AS col0
----
106
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT + COUNT( * ) * - COUNT( * ) * + 58 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-212
SELECT + COUNT ( * ) * - COUNT ( * ) * + 58 AS col2
----
-58

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

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

query I rowsort
SELECT + NULLIF ( - 90, 85 )
----
-90

query I rowsort
SELECT - 13 + + ( - 61 ) + - 91 * - - ( 80 )
----
-7354

query I rowsort
SELECT - NULLIF ( - 63, - 55 + - 53 * + - 7 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT ALL COUNT( ALL 52 )
----
1

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL COUNT ( ALL 52 )
----
1

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

query I rowsort
SELECT ALL NULLIF ( - + 89, - 35 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT + 95 + + + ( + COUNT( * ) )
----
96

skipif mysql # not compatible
query I rowsort label-220
SELECT + 95 + + + ( + COUNT ( * ) )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-221
SELECT - CASE + 60 WHEN COUNT( * ) - + COUNT( + 96 ) THEN - - 17 * MAX( ALL - - 58 ) + 14 * ( - CAST( + 82 AS SIGNED ) ) END * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-221
SELECT - CASE + 60 WHEN COUNT ( * ) - + COUNT ( + 96 ) THEN - - 17 * MAX ( ALL - - 58 ) + 14 * ( - CAST ( + 82 AS INTEGER ) ) END * + 53
----
NULL

query I rowsort
SELECT DISTINCT + 81 * + + 30
----
2430

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-224
SELECT + COALESCE ( CAST( - 32 AS SIGNED ), 33 ) DIV 47 DIV - - 79 * + 55 AS col0, - 8 + - 46 AS col0
----
0
-54

skipif mysql # not compatible
query II rowsort label-224
SELECT + COALESCE ( CAST ( - 32 AS INTEGER ), 33 ) / 47 / - - 79 * + 55 AS col0, - 8 + - 46 AS col0
----
0
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT - COUNT( * ) + + + 29 + + 54 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-226
SELECT - COUNT ( * ) + + + 29 + + 54 AS col2
----
82

query I rowsort
SELECT + NULLIF ( + - 90, 41 * + 94 ) AS col1
----
-90

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

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

query II rowsort
SELECT DISTINCT + 13 + + - 98, 91 AS col1
----
-85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT DISTINCT - SUM( 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT - SUM ( 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT + - 0 + + COUNT( * ) * 33
----
33

skipif mysql # not compatible
query I rowsort label-231
SELECT + - 0 + + COUNT ( * ) * 33
----
33

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-233
SELECT ALL - 93 DIV - - COUNT( * ) - 91
----
-184

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL - 93 / - - COUNT ( * ) - 91
----
-184

query I rowsort
SELECT - 71 * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-235
SELECT + 41 * - 38 + + + ( - 64 ) * CASE - 6 WHEN + COUNT( * ) * - 57 * - CAST( NULL AS SIGNED ) + - + 38 THEN NULL WHEN - + 23 * - + 56 * - + COUNT( * ) / - 9 * 24 THEN - CASE + 73 WHEN 80 THEN NULL WHEN - - 20 * + - COUNT( * ) + - 55 + NULLIF ( COUNT( * ), + - 98 + - AVG ( - 51 ) ) * - ( 90 ) THEN NULL ELSE - 71 END + 87 WHEN 42 THEN - 37 / 37 - 82 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT + 41 * - 38 + + + ( - 64 ) * CASE - 6 WHEN + COUNT ( * ) * - 57 * - CAST ( NULL AS INTEGER ) + - + 38 THEN NULL WHEN - + 23 * - + 56 * - + COUNT ( * ) / - 9 * 24 THEN - CASE + 73 WHEN 80 THEN NULL WHEN - - 20 * + - COUNT ( * ) + - 55 + NULLIF ( COUNT ( * ), + - 98 + - AVG ( - 51 ) ) * - ( 90 ) THEN NULL ELSE - 71 END + 87 WHEN 42 THEN - 37 / 37 - 82 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 50 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL 29 * + + 62 - 96 + COUNT( + 55 ) AS col0
----
1703

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL 29 * + + 62 - 96 + COUNT ( + 55 ) AS col0
----
1703

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT + - 48 * - SUM( ALL - - 39 )
----
1872

skipif mysql # not compatible
query I rowsort label-238
SELECT + - 48 * - SUM ( ALL - - 39 )
----
1872

query I rowsort
SELECT ALL + + 91 col0
----
91

query I rowsort
SELECT - 8 + + + 92
----
84

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

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

query I rowsort
SELECT + 16 * - 73 + ( + 91 )
----
-1077

query I rowsort
SELECT + 90 * 43 * 37 AS col0
----
143190

query I rowsort
SELECT ALL + 99 col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT + NULLIF ( - 81, - COALESCE ( + 6, + - 95 * + 44, + + 6 * - - CASE + + SUM( - 7 ) WHEN + 24 / - 41 THEN NULL WHEN + ( - 41 ) * - 22 / - - 10 THEN 48 / + + MIN( DISTINCT + 62 ) WHEN + - 64 * 98 THEN NULL END + 32 ) + + - 2 ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-246
SELECT + NULLIF ( - 81, - COALESCE ( + 6, + - 95 * + 44, + + 6 * - - CASE + + SUM ( - 7 ) WHEN + 24 / - 41 THEN NULL WHEN + ( - 41 ) * - 22 / - - 10 THEN 48 / + + MIN ( DISTINCT + 62 ) WHEN + - 64 * 98 THEN NULL END + 32 ) + + - 2 ) col1
----
-81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-248
SELECT - CAST( NULL AS SIGNED ) * + 41 - + + COUNT( * ) + 43 * - 98 + 32 / + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT - CAST ( NULL AS INTEGER ) * + 41 - + + COUNT ( * ) + 43 * - 98 + 32 / + 80
----
NULL

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

query I rowsort
SELECT DISTINCT 83 + + 23 * + - 20
----
-377

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-252
SELECT ALL 53 + + + ( - 96 ) col1, - COUNT( ALL 7 ) col1
----
-43
-1

skipif mysql # not compatible
query II rowsort label-252
SELECT ALL 53 + + + ( - 96 ) col1, - COUNT ( ALL 7 ) col1
----
-43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT DISTINCT 12 + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT 12 + + COUNT ( * )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-254
SELECT 43 + + 69 + + - COUNT( * ) + CASE - 32 WHEN - + 58 / - 25 * CAST( + 36 AS DECIMAL ) THEN - + CASE + - 47 WHEN - CASE + 86 WHEN + 17 * - SUM( DISTINCT 21 ) THEN NULL WHEN - COUNT( * ) THEN - - 3 * - NULLIF ( 15, - 23 ) + + + 18 ELSE - 44 END THEN + - 35 WHEN + 51 THEN NULL WHEN 8 + - CASE - 59 WHEN 67 * MIN( - 69 ) THEN 12 + NULLIF ( - 48, 62 ) * CAST( - 68 + 49 * - COUNT( * ) AS SIGNED ) WHEN + 47 THEN - ( - CAST( + 81 AS SIGNED ) ) * - 0 ELSE NULL END THEN NULL ELSE - 80 END WHEN 3 * - AVG ( - 39 ) THEN NULL END / ( COUNT( * ) ) * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-254
SELECT 43 + + 69 + + - COUNT ( * ) + CASE - 32 WHEN - + 58 / - 25 * CAST ( + 36 AS REAL ) THEN - + CASE + - 47 WHEN - CASE + 86 WHEN + 17 * - SUM ( DISTINCT 21 ) THEN NULL WHEN - COUNT ( * ) THEN - - 3 * - NULLIF ( 15, - 23 ) + + + 18 ELSE - 44 END THEN + - 35 WHEN + 51 THEN NULL WHEN 8 + - CASE - 59 WHEN 67 * MIN ( - 69 ) THEN 12 + NULLIF ( - 48, 62 ) * CAST ( - 68 + 49 * - COUNT ( * ) AS INTEGER ) WHEN + 47 THEN - ( - CAST ( + 81 AS INTEGER ) ) * - 0 ELSE NULL END THEN NULL ELSE - 80 END WHEN 3 * - AVG ( - 39 ) THEN NULL END / ( COUNT ( * ) ) * + 22
----
NULL

query I rowsort
SELECT DISTINCT 88 + 60 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT DISTINCT 47 + + COUNT( * ) col2
----
48

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT 47 + + COUNT ( * ) col2
----
48

query I rowsort
SELECT 95 * 93 * 93 AS col0
----
821655

query I rowsort
SELECT DISTINCT 11 + - 45
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL + COUNT( ALL + - 10 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL + COUNT ( ALL + - 10 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT 42 DIV + ( - + 5 )
----
-8

skipif mysql # not compatible
query I rowsort label-260
SELECT 42 / + ( - + 5 )
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT ALL + + 10 + + + NULLIF ( + COUNT( * ), + + 20 )
----
11

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL + + 10 + + + NULLIF ( + COUNT ( * ), + + 20 )
----
11

query I rowsort
SELECT ALL - 26 * + 86 * + ( + 17 ) col1
----
-38012

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT ALL COALESCE ( SUM( - - 86 ), 16 )
----
86

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL COALESCE ( SUM ( - - 86 ), 16 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT COUNT( * ) + 26 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-265
SELECT COUNT ( * ) + 26 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT + NULLIF ( - + 60, COUNT( * ) ) + 9 - + 58 + - - 20
----
-89

skipif mysql # not compatible
query I rowsort label-266
SELECT + NULLIF ( - + 60, COUNT ( * ) ) + 9 - + 58 + - - 20
----
-89

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

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL + COUNT ( * ) - - 77 AS col0
----
78

query I rowsort
SELECT - - 59 col1
----
59

query I rowsort
SELECT DISTINCT - 21 * + 41
----
-861

query I rowsort
SELECT ALL - 63 - + 4 col1
----
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-271
SELECT - CAST( NULL AS DECIMAL ) / - + 43 + + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT - CAST ( NULL AS REAL ) / - + 43 + + 38 AS col1
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( - 60, 46 ) * - + 83
----
-4980

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT DISTINCT + + 76 * - COUNT( * ) * 55 AS col2
----
-4180

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT + + 76 * - COUNT ( * ) * 55 AS col2
----
-4180

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

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

query I rowsort
SELECT + 5 * + 48 AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT DISTINCT - - COUNT( + 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT - - COUNT ( + 48 ) AS col1
----
1

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

query I rowsort
SELECT 62 * + 48 - 16 AS col2
----
2960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-279
SELECT DISTINCT + 80 + 36 * + ( + - NULLIF ( + 93, - - COUNT( * ) ) ) + + NULLIF ( 50, + AVG ( ALL + CAST( NULL AS SIGNED ) ) ) - - 62 * + ( + + 28 )
----
-1482

skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT + 80 + 36 * + ( + - NULLIF ( + 93, - - COUNT ( * ) ) ) + + NULLIF ( 50, + AVG ( ALL + CAST ( NULL AS INTEGER ) ) ) - - 62 * + ( + + 28 )
----
-1482

query I rowsort
SELECT 50 * + - 54 col2
----
-2700

query I rowsort
SELECT + NULLIF ( + 76, - COALESCE ( 23, - 9 ) ) * - ( - + 4 ) + - 71 AS col0
----
233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-282
SELECT ALL - CASE + 43 WHEN - 55 * - 82 THEN 58 * COUNT( * ) WHEN 84 THEN COUNT( * ) * + CAST( NULL AS SIGNED ) / - NULLIF ( + SUM( + 56 ), + 91 ) + CASE 24 WHEN + - 68 THEN + + 26 WHEN - 13 * + 21 THEN NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL - CASE + 43 WHEN - 55 * - 82 THEN 58 * COUNT ( * ) WHEN 84 THEN COUNT ( * ) * + CAST ( NULL AS INTEGER ) / - NULLIF ( + SUM ( + 56 ), + 91 ) + CASE 24 WHEN + - 68 THEN + + 26 WHEN - 13 * + 21 THEN NULL END ELSE NULL END
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL + CAST ( 70 AS INTEGER ) + + + 38
----
108

query I rowsort
SELECT ALL - 90 * - 70 AS col1
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT DISTINCT - 81 + - CASE + ( CASE 84 WHEN - 65 THEN + 59 ELSE 75 + + - 43 + - 48 - COUNT( * ) END ) WHEN ( + MAX( DISTINCT - 87 ) ) * + 54 THEN + COUNT( * ) WHEN + + 39 THEN NULL ELSE MIN( - - 28 ) END AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT - 81 + - CASE + ( CASE 84 WHEN - 65 THEN + 59 ELSE 75 + + - 43 + - 48 - COUNT ( * ) END ) WHEN ( + MAX ( DISTINCT - 87 ) ) * + 54 THEN + COUNT ( * ) WHEN + + 39 THEN NULL ELSE MIN ( - - 28 ) END AS col2
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-287
SELECT 66 AS col1, 72 DIV COUNT( + 97 )
----
66
72

skipif mysql # not compatible
query II rowsort label-287
SELECT 66 AS col1, 72 / COUNT ( + 97 )
----
66
72

query I rowsort
SELECT DISTINCT 47 + 45
----
92

query II rowsort
SELECT - 41 AS col0, + NULLIF ( - 6, + 97 ) AS col2
----
-41
-6

onlyif mysql # aggregate syntax: 
query III rowsort label-290
SELECT 47 col1, 18 - + MIN( + 60 ) AS col0, - 31 AS col0
----
47
-42
-31

skipif mysql # not compatible
query III rowsort label-290
SELECT 47 col1, 18 - + MIN ( + 60 ) AS col0, - 31 AS col0
----
47
-42
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-291
SELECT - 97, 36 * 62 + - + MAX( ALL 3 ) AS col0
----
-97
2229

skipif mysql # not compatible
query II rowsort label-291
SELECT - 97, 36 * 62 + - + MAX ( ALL 3 ) AS col0
----
-97
2229

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT DISTINCT - 73 + + + 31 AS col2, COUNT( * )
----
-42
1

skipif mysql # not compatible
query II rowsort label-292
SELECT DISTINCT - 73 + + + 31 AS col2, COUNT ( * )
----
-42
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-293
SELECT DISTINCT - 18 + - 91 + + 58 + + 57 DIV - SUM( - + 66 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT - 18 + - 91 + + 58 + + 57 / - SUM ( - + 66 ) AS col2
----
-51

query I rowsort
SELECT 88 * 7
----
616

query I rowsort
SELECT ALL - 0 + + COALESCE ( - 66, 58, + 9 * - 31 * - 74 ) * + ( + 68 ) AS col1
----
-4488

onlyif mysql # DIV for integer division: 
query I rowsort label-296
SELECT DISTINCT 16 DIV - - 92 * 34 DIV + ( + 89 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT 16 / - - 92 * 34 / + ( + 89 ) AS col2
----
0

query II rowsort
SELECT ALL 56 col0, - 73
----
56
-73

query I rowsort
SELECT - ( + 33 ) col0
----
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT 5 - NULLIF ( 26, + 69 ) + ( + + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-300
SELECT 5 - NULLIF ( 26, + 69 ) + ( + + COUNT ( * ) )
----
-20

query I rowsort
SELECT 49 * + + 3 AS col2
----
147

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

query II rowsort
SELECT DISTINCT 68 AS col1, 32
----
68
32

query I rowsort
SELECT ALL + 92 - 63 + + - 5 * + 98
----
-461

query I rowsort
SELECT 5 + 42 col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-306
SELECT + MIN( + 5 ) * - + 73 DIV - 35
----
10

skipif mysql # not compatible
query I rowsort label-306
SELECT + MIN ( + 5 ) * - + 73 / - 35
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-307
SELECT ALL - CAST( CASE + 83 WHEN + 33 THEN COUNT( * ) - + + 59 + + 89 + - 64 * - - 84 WHEN COUNT( * ) + + 12 THEN NULL ELSE NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL - CAST ( CASE + 83 WHEN + 33 THEN COUNT ( * ) - + + 59 + + 89 + - 64 * - - 84 WHEN COUNT ( * ) + + 12 THEN NULL ELSE NULL END AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - + 82 AS col1, - 83 * - 56
----
-82
4648

query I rowsort
SELECT - 24 col0
----
-24

query II rowsort
SELECT ALL 36, + 39 col0
----
36
39

query II rowsort
SELECT 15, 43 AS col1
----
15
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-312
SELECT - 7 DIV - 72 - 41 - + - 58 * + 31 + 33 * - + NULLIF ( + CAST( + + 64 AS SIGNED ), 44 DIV + COUNT( * ) * - + 95 * - COUNT( * ) )
----
-355

skipif mysql # not compatible
query I rowsort label-312
SELECT - 7 / - 72 - 41 - + - 58 * + 31 + 33 * - + NULLIF ( + CAST ( + + 64 AS INTEGER ), 44 / + COUNT ( * ) * - + 95 * - COUNT ( * ) )
----
-355

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

skipif mysql # not compatible
query I rowsort label-313
SELECT - COUNT ( * ) * - - 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT 74 + + COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-314
SELECT 74 + + COUNT ( * ) AS col1
----
75

query I rowsort
SELECT ALL 86 * - 77 + - 67 AS col0
----
-6689

onlyif mysql # aggregate syntax: 
query II rowsort label-316
SELECT 58, - SUM( DISTINCT + NULLIF ( + 64, 38 ) ) AS col0
----
58
-64

skipif mysql # not compatible
query II rowsort label-316
SELECT 58, - SUM ( DISTINCT + NULLIF ( + 64, 38 ) ) AS col0
----
58
-64

query I rowsort
SELECT + - 77 AS col2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT + NULLIF ( + - CAST( + 19 AS SIGNED ), - - 60 + + 80 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-318
SELECT + NULLIF ( + - CAST ( + 19 AS INTEGER ), - - 60 + + 80 ) AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-319
SELECT DISTINCT - 21 * - - COUNT( * ) DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT - 21 * - - COUNT ( * ) / - 60
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-320
SELECT ALL CASE - - 65 WHEN - SUM( DISTINCT - 92 ) THEN - CAST( - NULLIF ( - 99, + 33 * - 2 ) AS SIGNED ) + - 92 ELSE + + COUNT( * ) END * 87 DIV - - COUNT( * ) + + 9 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL CASE - - 65 WHEN - SUM ( DISTINCT - 92 ) THEN - CAST ( - NULLIF ( - 99, + 33 * - 2 ) AS INTEGER ) + - 92 ELSE + + COUNT ( * ) END * 87 / - - COUNT ( * ) + + 9 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT 44 * - + 83 * + COUNT( * )
----
-3652

skipif mysql # not compatible
query I rowsort label-321
SELECT 44 * - + 83 * + COUNT ( * )
----
-3652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-322
SELECT DISTINCT 32 * + 86 + + + CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT 32 * + 86 + + + CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( + + 74 ) * 84 AS col1
----
6216

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT + 19 + + MAX( 76 ) + 5
----
100

skipif mysql # not compatible
query I rowsort label-324
SELECT + 19 + + MAX ( 76 ) + 5
----
100

query I rowsort
SELECT + 19 * - + ( 48 ) + 88
----
-824

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-327
SELECT MIN( - - 67 ), - ( - 30 ) AS col2
----
67
30

skipif mysql # not compatible
query II rowsort label-327
SELECT MIN ( - - 67 ), - ( - 30 ) AS col2
----
67
30

query I rowsort
SELECT ALL - 59 * + - 50 AS col0
----
2950

query I rowsort
SELECT ALL + 5 + + 13 * 84 + + - 64 + NULLIF ( + + 91, 22 ) AS col2
----
1124

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT ALL MAX( 92 ) * 16 AS col1
----
1472

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL MAX ( 92 ) * 16 AS col1
----
1472

query I rowsort
SELECT ALL + 60 * 64
----
3840

query I rowsort
SELECT ALL - 5 - - 15 - - 48 * 6 * 73
----
21034

query I rowsort
SELECT - 45 col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT - CASE + SUM( - 63 ) WHEN 43 THEN + + 12 ELSE COUNT( * ) * + COUNT( * ) END + + - ( - + 50 )
----
49

skipif mysql # not compatible
query I rowsort label-334
SELECT - CASE + SUM ( - 63 ) WHEN 43 THEN + + 12 ELSE COUNT ( * ) * + COUNT ( * ) END + + - ( - + 50 )
----
49

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

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

query I rowsort
SELECT + 76 - + - 24 AS col1
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-337
SELECT ALL - ( + + 23 ) DIV + 41 * + ( COUNT( DISTINCT 49 ) )
----
0

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL - ( + + 23 ) / + 41 * + ( COUNT ( DISTINCT 49 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-338
SELECT - - 68 + + CASE - + CAST( - 4 AS SIGNED ) WHEN - - 42 THEN NULL ELSE + 81 END
----
149

skipif mysql # not compatible
query I rowsort label-338
SELECT - - 68 + + CASE - + CAST ( - 4 AS INTEGER ) WHEN - - 42 THEN NULL ELSE + 81 END
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT SUM( - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT SUM ( - 59 ) AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT - 17 + - + NULLIF ( - 2, + ( - - 13 ) ) DIV - 16
----
-17

skipif mysql # not compatible
query I rowsort label-340
SELECT - 17 + - + NULLIF ( - 2, + ( - - 13 ) ) / - 16
----
-17

query I rowsort
SELECT - - 12 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT - NULLIF ( + + CAST( NULL AS SIGNED ), + + COUNT( * ) ) + CAST( - 74 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT - NULLIF ( + + CAST ( NULL AS INTEGER ), + + COUNT ( * ) ) + CAST ( - 74 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 75 * - NULLIF ( + 22, + + 23 )
----
-1650

query I rowsort
SELECT + - 36 * + 78
----
-2808

onlyif mysql # aggregate syntax: 
query II rowsort label-345
SELECT - - MIN( ALL + 66 ) AS col1, + SUM( - + 50 )
----
66
-50

skipif mysql # not compatible
query II rowsort label-345
SELECT - - MIN ( ALL + 66 ) AS col1, + SUM ( - + 50 )
----
66
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-346
SELECT ALL + CAST( + + 33 AS SIGNED ) + - 77 - NULLIF ( + ( - 52 ), - + 10 ) + - + ( 36 ) - 64 * + CASE + 70 WHEN 32 THEN - 97 * + AVG ( ALL 40 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL + CAST ( + + 33 AS INTEGER ) + - 77 - NULLIF ( + ( - 52 ), - + 10 ) + - + ( 36 ) - 64 * + CASE + 70 WHEN 32 THEN - 97 * + AVG ( ALL 40 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-347
SELECT COUNT( ALL - 75 ) * - 86 + - + ( 55 ) DIV - 55 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-347
SELECT COUNT ( ALL - 75 ) * - 86 + - + ( 55 ) / - 55 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL NULLIF ( 22, - + 20 * 56 - + 0 * + 10 ) * + MIN( ALL - 70 ) * - + 60 * + COUNT( DISTINCT 63 ) - - - COUNT( * ) - - MAX( - + 16 ) AS col2
----
92383

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL NULLIF ( 22, - + 20 * 56 - + 0 * + 10 ) * + MIN ( ALL - 70 ) * - + 60 * + COUNT ( DISTINCT 63 ) - - - COUNT ( * ) - - MAX ( - + 16 ) AS col2
----
92383

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT DISTINCT - 32 DIV - + COALESCE ( + - 46, - + 83 + + - 53 ) + - + 93 * 45 AS col0
----
-4185

skipif mysql # not compatible
query I rowsort label-349
SELECT DISTINCT - 32 / - + COALESCE ( + - 46, - + 83 + + - 53 ) + - + 93 * 45 AS col0
----
-4185

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

query I rowsort
SELECT + 31 + - - 64
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-352
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) DIV 31 + + 14 + CAST( - - 15 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) / 31 + + 14 + CAST ( - - 15 AS INTEGER ) AS col1
----
29

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT - 41 * - + MIN( ALL ( 64 ) ) + - 15 DIV - 15
----
2625

skipif mysql # not compatible
query I rowsort label-354
SELECT - 41 * - + MIN ( ALL ( 64 ) ) + - 15 / - 15
----
2625

query I rowsort
SELECT + 95 + - + 43 * + - 14 AS col1
----
697

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

query II rowsort
SELECT + 29 AS col2, - 3 + - 47 AS col1
----
29
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-358
SELECT - CAST( - + COUNT( * ) AS SIGNED ) + - + 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-358
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) + - + 30 AS col0
----
-29

query I rowsort
SELECT + ( - COALESCE ( - 27, 86, - - 80 ) ) + + 56
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-360
SELECT ALL 95 DIV - 33 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL 95 / - 33 AS col1
----
-2

query I rowsort
SELECT ALL - 73 * - + 4
----
292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-362
SELECT COALESCE ( + 83, + SUM( + + 94 ) * - 17 + - - COUNT( * ) + - COUNT( * ) * - 46 * 48 ) * + + 61 + - 70 + - - CAST( - - 71 AS SIGNED ) * - - NULLIF ( - + 24, + 97 + - - CAST( NULL AS DECIMAL ) ) + + 30 * - 83 + - 65 + + 50 + + - COUNT( * ) * + + 17 AS col2, 41 + + + COALESCE ( + 2, 50, - + 30 )
----
767
43

skipif mysql # not compatible
query II rowsort label-362
SELECT COALESCE ( + 83, + SUM ( + + 94 ) * - 17 + - - COUNT ( * ) + - COUNT ( * ) * - 46 * 48 ) * + + 61 + - 70 + - - CAST ( - - 71 AS INTEGER ) * - - NULLIF ( - + 24, + 97 + - - CAST ( NULL AS REAL ) ) + + 30 * - 83 + - 65 + + 50 + + - COUNT ( * ) * + + 17 AS col2, 41 + + + COALESCE ( + 2, 50, - + 30 )
----
767
43

query II rowsort
SELECT ALL + 14 AS col1, 81 AS col1
----
14
81

query II rowsort
SELECT DISTINCT + 20 AS col2, 36 AS col2
----
20
36

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL MAX( ALL - 96 ) * + + MAX( + 39 ) + - - MAX( ALL - 45 ) - - 62
----
-3727

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL MAX ( ALL - 96 ) * + + MAX ( + 39 ) + - - MAX ( ALL - 45 ) - - 62
----
-3727

query I rowsort
SELECT ALL 23 * - 44
----
-1012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-367
SELECT DISTINCT + COALESCE ( + + 28, - CAST( 55 AS SIGNED ) + - 1 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT + COALESCE ( + + 28, - CAST ( 55 AS INTEGER ) + - 1 ) AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-368
SELECT - COUNT( * ) * 54 + 82 * - 0 DIV 94
----
-54

skipif mysql # not compatible
query I rowsort label-368
SELECT - COUNT ( * ) * 54 + 82 * - 0 / 94
----
-54

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-369
SELECT - - 47 * + 72 - COALESCE ( - 18, - + CASE + - CAST( NULL AS DECIMAL ) WHEN - 31 THEN 15 - + ( 48 ) + + 54 * + 95 + - ( 65 ) + + + 82 DIV + + 1 DIV - + 66 WHEN 9 THEN NULL END, + CAST( NULL AS SIGNED ) ) AS col1
----
3402

skipif mysql # not compatible
query I rowsort label-369
SELECT - - 47 * + 72 - COALESCE ( - 18, - + CASE + - CAST ( NULL AS REAL ) WHEN - 31 THEN 15 - + ( 48 ) + + 54 * + 95 + - ( 65 ) + + + 82 / + + 1 / - + 66 WHEN 9 THEN NULL END, + CAST ( NULL AS INTEGER ) ) AS col1
----
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT - - NULLIF ( 40, - 7 * 28 + - COUNT( * ) + + 60 - - 55 + + 47 * + - 67 + - 47 + 99 ) * 54 AS col1
----
2160

skipif mysql # not compatible
query I rowsort label-370
SELECT - - NULLIF ( 40, - 7 * 28 + - COUNT ( * ) + + 60 - - 55 + + 47 * + - 67 + - 47 + 99 ) * 54 AS col1
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT MIN( ALL + 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-371
SELECT MIN ( ALL + 12 ) AS col2
----
12

query II rowsort
SELECT ALL - 9 AS col0, 4 col1
----
-9
4

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

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

query II rowsort
SELECT ALL - 55 AS col0, - 53
----
-55
-53

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

query II rowsort
SELECT - 86 AS col1, - 87 + - 56 * + + 9 AS col2
----
-86
-591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-377
SELECT ALL - - 32 + 7 - - + CASE + ( - 58 ) WHEN + 85 * + 89 THEN - ( + + 44 ) * + ( - - 2 ) * - 73 + 73 + 22 END * + + ( + + COALESCE ( CAST( NULL AS SIGNED ), + 1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL - - 32 + 7 - - + CASE + ( - 58 ) WHEN + 85 * + 89 THEN - ( + + 44 ) * + ( - - 2 ) * - 73 + 73 + 22 END * + + ( + + COALESCE ( CAST ( NULL AS INTEGER ), + 1 ) )
----
NULL

query I rowsort
SELECT DISTINCT + 42 * - 63 AS col2
----
-2646

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT - + 20 * 95 + - MAX( DISTINCT - 21 )
----
-1879

skipif mysql # not compatible
query I rowsort label-379
SELECT - + 20 * 95 + - MAX ( DISTINCT - 21 )
----
-1879

query I rowsort
SELECT DISTINCT + - 19 * - - 97
----
-1843

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-381
SELECT DISTINCT + 93 + - COUNT( * ) DIV - - 58 AS col0, 4 * - - 64 AS col2
----
93
256

skipif mysql # not compatible
query II rowsort label-381
SELECT DISTINCT + 93 + - COUNT ( * ) / - - 58 AS col0, 4 * - - 64 AS col2
----
93
256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-382
SELECT - - NULLIF ( - + CAST( NULL AS SIGNED ), + 45 * - + 57 + - 68 * - - ( + - 31 ) + - ( + - AVG ( DISTINCT + - 56 ) ) * 49 + + 4 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT - - NULLIF ( - + CAST ( NULL AS INTEGER ), + 45 * - + 57 + - 68 * - - ( + - 31 ) + - ( + - AVG ( DISTINCT + - 56 ) ) * 49 + + 4 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-384
SELECT - COUNT( * ) * - 15 * - + 50, + 83 + + 73 - + - COUNT( * ) AS col1
----
-750
157

skipif mysql # not compatible
query II rowsort label-384
SELECT - COUNT ( * ) * - 15 * - + 50, + 83 + + 73 - + - COUNT ( * ) AS col1
----
-750
157

query I rowsort
SELECT CASE + 77 WHEN NULLIF ( ( 89 ), + + 68 + - 76 ) THEN + - ( + 23 ) END AS col2
----
NULL

query II rowsort
SELECT ALL - 3, - COALESCE ( - - 64, + 23 ) + 80 AS col1
----
-3
16

query I rowsort
SELECT NULLIF ( - 73, - 29 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT DISTINCT + COUNT( ALL - 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT + COUNT ( ALL - 74 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 84 + + 44 AS col1
----
128

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

skipif mysql # not compatible
query I rowsort label-390
SELECT 67 / - + 48 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 25 * - 3 * - 95
----
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT ALL 83 - + CASE 42 WHEN - + 1 + + 82 THEN ( + + COUNT( 58 ) ) END - - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL 83 - + CASE 42 WHEN - + 1 + + 82 THEN ( + + COUNT ( 58 ) ) END - - + 0
----
NULL

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

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

query I rowsort
SELECT ALL + 77 * + + 6
----
462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-395
SELECT CASE + NULLIF ( 36, - 27 * 39 * 23 ) WHEN 37 + CAST( NULL AS SIGNED ) THEN - COUNT( + + 12 ) END * + - 1 - - CAST( NULL AS SIGNED ) * - 52 + + 2 / + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-395
SELECT CASE + NULLIF ( 36, - 27 * 39 * 23 ) WHEN 37 + CAST ( NULL AS INTEGER ) THEN - COUNT ( + + 12 ) END * + - 1 - - CAST ( NULL AS INTEGER ) * - 52 + + 2 / + 41
----
NULL

query I rowsort
SELECT DISTINCT 89 * + 9 * + - 30 AS col2
----
-24030

query I rowsort
SELECT DISTINCT - 65 col0
----
-65

query I rowsort
SELECT DISTINCT 82 - 8 AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-399
SELECT CAST( 60 AS SIGNED ) * + COUNT( * ) * + 43 * - 78 + - 86 AS col0
----
-201326

skipif mysql # not compatible
query I rowsort label-399
SELECT CAST ( 60 AS INTEGER ) * + COUNT ( * ) * + 43 * - 78 + - 86 AS col0
----
-201326

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT 31 * + - 59 + + + 26 - + 52 * COUNT( * ) AS col2
----
-1855

skipif mysql # not compatible
query I rowsort label-400
SELECT 31 * + - 59 + + + 26 - + 52 * COUNT ( * ) AS col2
----
-1855

query II rowsort
SELECT ALL ( + 70 ) * - 83 * - + 55 AS col2, 29
----
319550
29

query II rowsort
SELECT DISTINCT - 49 * 6, - 56 AS col0
----
-294
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-403
SELECT DISTINCT - ( 11 ) DIV 2 col1
----
-5

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT - ( 11 ) / 2 col1
----
-5

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

skipif mysql # not compatible
query I rowsort label-404
SELECT 80 - SUM ( - 79 )
----
159

query I rowsort
SELECT ALL + - 84 + + 56
----
-28

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-407
SELECT + 91 + - + 86 + + MIN( ALL 11 ) + - - COUNT( * ) + - 99 DIV + + 11 + 27 + - 45 DIV 11 * + 9 - - - COALESCE ( - 58, - 67 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-407
SELECT + 91 + - + 86 + + MIN ( ALL 11 ) + - - COUNT ( * ) + - 99 / + + 11 + 27 + - 45 / 11 * + 9 - - - COALESCE ( - 58, - 67 ) AS col1
----
57

query I rowsort
SELECT - 0 * - 13 * 60 * + 92
----
0

query I rowsort
SELECT 80 * + ( 81 )
----
6480

onlyif mysql # aggregate syntax: 
query II rowsort label-410
SELECT ALL + - 92 + - COUNT( * ), - MIN( 86 ) AS col0
----
-93
-86

skipif mysql # not compatible
query II rowsort label-410
SELECT ALL + - 92 + - COUNT ( * ), - MIN ( 86 ) AS col0
----
-93
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-411
SELECT DISTINCT + 61 + - COUNT( * ) AS col1, + 8 * + 26
----
60
208

skipif mysql # not compatible
query II rowsort label-411
SELECT DISTINCT + 61 + - COUNT ( * ) AS col1, + 8 * + 26
----
60
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-412
SELECT - 40 + + ( CAST( + + 42 AS SIGNED ) ) AS col2, + ( - COALESCE ( + 26, - 51 + - - ( + COUNT( * ) ) * ( 84 ) ) ) + + 44 DIV + - 45 + - + 89
----
2
-115

skipif mysql # not compatible
query II rowsort label-412
SELECT - 40 + + ( CAST ( + + 42 AS INTEGER ) ) AS col2, + ( - COALESCE ( + 26, - 51 + - - ( + COUNT ( * ) ) * ( 84 ) ) ) + + 44 / + - 45 + - + 89
----
2
-115

query I rowsort
SELECT ALL - - 12 + 70
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL SUM( + 9 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL SUM ( + 9 ) col0
----
9

query II rowsort
SELECT ALL - 48 + - 34, ( - 46 ) col1
----
-82
-46

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

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

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

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

query I rowsort
SELECT 44 + + - 51 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT 82 * + - ( - - COUNT( * ) ) * - 17 - + COUNT( * ) AS col1
----
1393

skipif mysql # not compatible
query I rowsort label-419
SELECT 82 * + - ( - - COUNT ( * ) ) * - 17 - + COUNT ( * ) AS col1
----
1393

query I rowsort
SELECT ALL - 45 * - 12
----
540

query I rowsort
SELECT 53 + 16
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-422
SELECT ALL - 36 - 67 + 65 AS col1, - 30 + + ( - 61 ) * + - COUNT( * ) + + - COUNT( * ) + + + 56 * 59 * + 2 col1
----
-38
6638

skipif mysql # not compatible
query II rowsort label-422
SELECT ALL - 36 - 67 + 65 AS col1, - 30 + + ( - 61 ) * + - COUNT ( * ) + + - COUNT ( * ) + + + 56 * 59 * + 2 col1
----
-38
6638

onlyif mysql # aggregate syntax: 
query II rowsort label-423
SELECT ALL 69, + COUNT( * ) + + 84 + + + 23 * 6 AS col1
----
69
223

skipif mysql # not compatible
query II rowsort label-423
SELECT ALL 69, + COUNT ( * ) + + 84 + + + 23 * 6 AS col1
----
69
223

query I rowsort
SELECT 69 + 22
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT DISTINCT MIN( - - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT MIN ( - - 5 )
----
5

query I rowsort
SELECT 79 + + 95 * - 59 AS col2
----
-5526

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT ALL 77 DIV 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL 77 / 70 AS col0
----
1

query I rowsort
SELECT ALL - ( + 30 ) AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-429
SELECT 98 + + 44 + - 69, 85 * + COUNT( * ) + + 63 * + - 47 * + - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
73
3046

skipif mysql # not compatible
query II rowsort label-429
SELECT 98 + + 44 + - 69, 85 * + COUNT ( * ) + + 63 * + - 47 * + - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
73
3046

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT 4 / 36 / - - CASE COUNT( * ) WHEN CASE - COUNT( * ) WHEN - 35 THEN NULL WHEN COUNT( * ) * - + 24 * 42 THEN - 25 * - 63 + + 23 * - 71 * - 93 ELSE - 96 + + 74 - 50 + - 45 - - + 20 + COUNT( * ) * + ( NULLIF ( - 11, - - 81 ) ) * 75 + COUNT( * ) * - + 32 END * COUNT( * ) THEN 93 WHEN + COALESCE ( 85, 55, 70 / 18 ) THEN - 74 ELSE NULL END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT 4 / 36 / - - CASE COUNT ( * ) WHEN CASE - COUNT ( * ) WHEN - 35 THEN NULL WHEN COUNT ( * ) * - + 24 * 42 THEN - 25 * - 63 + + 23 * - 71 * - 93 ELSE - 96 + + 74 - 50 + - 45 - - + 20 + COUNT ( * ) * + ( NULLIF ( - 11, - - 81 ) ) * 75 + COUNT ( * ) * - + 32 END * COUNT ( * ) THEN 93 WHEN + COALESCE ( 85, 55, 70 / 18 ) THEN - 74 ELSE NULL END * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT ALL - 1 DIV - 88 * + 48 * + 15
----
0

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL - 1 / - 88 * + 48 * + 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - 6 * COUNT( * ) * - - 90 + + 73
----
-467

skipif mysql # not compatible
query I rowsort label-432
SELECT - 6 * COUNT ( * ) * - - 90 + + 73
----
-467

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT MAX( - 14 ) * 21 AS col0
----
-294

skipif mysql # not compatible
query I rowsort label-433
SELECT MAX ( - 14 ) * 21 AS col0
----
-294

query I rowsort
SELECT 10 * + 34 + - 46
----
294

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

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

query I rowsort
SELECT ALL 70 * 53
----
3710

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-437
SELECT 3 + ( - CAST( NULL AS SIGNED ) ) * + AVG ( + 19 ) AS col0, + 26 AS col2
----
NULL
26

skipif mysql # not compatible
query II rowsort label-437
SELECT 3 + ( - CAST ( NULL AS INTEGER ) ) * + AVG ( + 19 ) AS col0, + 26 AS col2
----
NULL
26

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

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

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

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT + - 40 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-440
SELECT ALL - - ( + 81 ) + CAST( + - 23 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL - - ( + 81 ) + CAST ( + - 23 AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT DISTINCT - - CASE + 27 WHEN - 45 * + 81 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT - - CASE + 27 WHEN - 45 * + 81 THEN + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 57 + + + ( + ( + 64 ) ) AS col1
----
121

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

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

query I rowsort
SELECT 18 + + - 78
----
-60

query I rowsort
SELECT DISTINCT - 51 + + 36
----
-15

query I rowsort
SELECT DISTINCT - 93 + + - 72 AS col0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT - - SUM( 54 )
----
54

skipif mysql # not compatible
query I rowsort label-447
SELECT - - SUM ( 54 )
----
54

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

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

query II rowsort
SELECT 97 * - 3 + - 23, + ( - + 42 ) AS col1
----
-314
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-450
SELECT ALL - COALESCE ( - 6, + - COUNT( * ) * CAST( + + COUNT( * ) AS SIGNED ), - 27 + - ( + 70 ) + - - SUM( DISTINCT + ( - 92 ) ) * + 21 ) * - 65 + COUNT( * ) DIV 46 + 10 + 90 * - + COUNT( ALL - CAST( + 57 AS SIGNED ) )
----
-470

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL - COALESCE ( - 6, + - COUNT ( * ) * CAST ( + + COUNT ( * ) AS INTEGER ), - 27 + - ( + 70 ) + - - SUM ( DISTINCT + ( - 92 ) ) * + 21 ) * - 65 + COUNT ( * ) / 46 + 10 + 90 * - + COUNT ( ALL - CAST ( + 57 AS INTEGER ) )
----
-470

query I rowsort
SELECT + + 38 + + 1 * + + 79 * + 81 AS col2
----
6437

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT DISTINCT + ( + + ( + - MIN( NULLIF ( 53, + 7 ) ) ) ) + - 37 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT + ( + + ( + - MIN ( NULLIF ( 53, + 7 ) ) ) ) + - 37 AS col0
----
-90

query I rowsort
SELECT + - 63 + 51 + + 46 * - 73
----
-3370

query I rowsort
SELECT ALL - 57 + - - 50 AS col1
----
-7

query I rowsort
SELECT ALL - 99 + - - 82 + - 94 + + 76 AS col1
----
-35

query I rowsort
SELECT DISTINCT 12 * 45
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ALL - - ( COUNT( * ) ) - + SUM( ALL + + 60 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL - - ( COUNT ( * ) ) - + SUM ( ALL + + 60 ) AS col2
----
-59

query I rowsort
SELECT ALL 30 * + 1 - + 61
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT - COUNT( DISTINCT 67 ) + + 2 + + 11 * ( + 18 ) AS col0
----
199

skipif mysql # not compatible
query I rowsort label-459
SELECT - COUNT ( DISTINCT 67 ) + + 2 + + 11 * ( + 18 ) AS col0
----
199

query I rowsort
SELECT ALL + 4 - + 48
----
-44

query I rowsort
SELECT - COALESCE ( - 36, 71 ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-462
SELECT - 78 + - MAX( ALL - CAST( 13 AS SIGNED ) ) * 91
----
1105

skipif mysql # not compatible
query I rowsort label-462
SELECT - 78 + - MAX ( ALL - CAST ( 13 AS INTEGER ) ) * 91
----
1105

query III rowsort
SELECT 96 AS col1, 75 AS col1, + 0 AS col0
----
96
75
0

query I rowsort
SELECT ALL - 14 * + - 65 AS col2
----
910

onlyif mysql # aggregate syntax: 
query II rowsort label-465
SELECT DISTINCT MAX( 40 ) AS col1, + 0 - + 51 + - - 99 AS col1
----
40
48

skipif mysql # not compatible
query II rowsort label-465
SELECT DISTINCT MAX ( 40 ) AS col1, + 0 - + 51 + - - 99 AS col1
----
40
48

query I rowsort
SELECT ALL - 14 * 83 AS col2
----
-1162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-467
SELECT - COUNT( * ) DIV + - SUM( DISTINCT - - 45 )
----
0

skipif mysql # not compatible
query I rowsort label-467
SELECT - COUNT ( * ) / + - SUM ( DISTINCT - - 45 )
----
0

query II rowsort
SELECT + 88 AS col0, + 90 * + 61
----
88
5490

query II rowsort
SELECT ALL + ( + + 6 ) AS col0, + 9
----
6
9

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT - MIN( + 72 ) * - 46
----
3312

skipif mysql # not compatible
query I rowsort label-470
SELECT - MIN ( + 72 ) * - 46
----
3312

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

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

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

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL + COUNT ( DISTINCT - 97 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-473
SELECT ALL - - 57 * + COUNT( + 73 ) + - - MAX( - ( + CAST( NULL AS SIGNED ) ) ) + - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL - - 57 * + COUNT ( + 73 ) + - - MAX ( - ( + CAST ( NULL AS INTEGER ) ) ) + - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-474
SELECT DISTINCT + COUNT( * ) AS col0, 18 * - + 38
----
1
-684

skipif mysql # not compatible
query II rowsort label-474
SELECT DISTINCT + COUNT ( * ) AS col0, 18 * - + 38
----
1
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT ALL + + 24 * 44 * - 72 + - 70 + + - COUNT( * ) AS col2
----
-76103

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL + + 24 * 44 * - 72 + - 70 + + - COUNT ( * ) AS col2
----
-76103

query I rowsort
SELECT - 59 + - - 21 col0
----
-38

query I rowsort
SELECT 57 col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT DISTINCT - 92 * - COALESCE ( + + SUM( - 1 ), - + 1 * 16 ) + - COUNT( * ) + - + 95 * - 55 * - 85 AS col1
----
-444218

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT - 92 * - COALESCE ( + + SUM ( - 1 ), - + 1 * 16 ) + - COUNT ( * ) + - + 95 * - 55 * - 85 AS col1
----
-444218

query I rowsort
SELECT DISTINCT - 41 * 35 + 58 + - 31 + 45 + + COALESCE ( 70, 23 ) AS col2
----
-1293

query I rowsort
SELECT - - 9 + - 25 * - - 60
----
-1491

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL - COALESCE ( + 89, COUNT( * ) ) * - 58 * + 83 AS col1
----
428446

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL - COALESCE ( + 89, COUNT ( * ) ) * - 58 * + 83 AS col1
----
428446

query II rowsort
SELECT DISTINCT + + 53, 97 * 38 AS col1
----
53
3686

query I rowsort
SELECT DISTINCT COALESCE ( - + 89, + 6 ) * - + 82 + + + 22 - - 77 AS col2
----
7397

onlyif mysql # aggregate syntax: 
query II rowsort label-484
SELECT - COUNT( * ) AS col1, 71
----
-1
71

skipif mysql # not compatible
query II rowsort label-484
SELECT - COUNT ( * ) AS col1, 71
----
-1
71

query II rowsort
SELECT ALL 73 AS col1, - 20 AS col0
----
73
-20

query II rowsort
SELECT + 34 col1, - 76
----
34
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-487
SELECT - 45, + CAST( 9 AS SIGNED ) AS col2
----
-45
9

skipif mysql # not compatible
query II rowsort label-487
SELECT - 45, + CAST ( 9 AS INTEGER ) AS col2
----
-45
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT ALL 67 DIV + 9 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL 67 / + 9 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT + SUM( - - 93 ) - + 97
----
-4

skipif mysql # not compatible
query I rowsort label-490
SELECT + SUM ( - - 93 ) - + 97
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-491
SELECT DISTINCT 13 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT 13 / 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-492
SELECT DISTINCT COUNT( * ) * + 17, COUNT( 13 ) * 95 + + CASE 36 WHEN - + 0 - + COUNT( * ) THEN - COUNT( * ) ELSE + + 73 + - 69 END AS col2
----
17
99

skipif mysql # not compatible
query II rowsort label-492
SELECT DISTINCT COUNT ( * ) * + 17, COUNT ( 13 ) * 95 + + CASE 36 WHEN - + 0 - + COUNT ( * ) THEN - COUNT ( * ) ELSE + + 73 + - 69 END AS col2
----
17
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-493
SELECT ALL MIN( DISTINCT + 48 ) AS col0, 70 * + NULLIF ( + 2, - 51 ) * + COALESCE ( - CAST( 30 AS SIGNED ), ( + COUNT( * ) ) DIV - CASE - 39 WHEN 19 THEN - MAX( + + 12 ) END )
----
48
-4200

skipif mysql # not compatible
query II rowsort label-493
SELECT ALL MIN ( DISTINCT + 48 ) AS col0, 70 * + NULLIF ( + 2, - 51 ) * + COALESCE ( - CAST ( 30 AS INTEGER ), ( + COUNT ( * ) ) / - CASE - 39 WHEN 19 THEN - MAX ( + + 12 ) END )
----
48
-4200

query II rowsort
SELECT ALL 24 * 28 AS col0, - 54 AS col2
----
672
-54

query I rowsort
SELECT + 30 + + 22 col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-496
SELECT + ( CAST( 64 AS SIGNED ) ) + 46 * - 63 AS col0
----
-2834

skipif mysql # not compatible
query I rowsort label-496
SELECT + ( CAST ( 64 AS INTEGER ) ) + 46 * - 63 AS col0
----
-2834

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT - 12 * - MAX( DISTINCT - - 0 ) * 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-497
SELECT - 12 * - MAX ( DISTINCT - - 0 ) * 43 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT ALL MIN( + 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL MIN ( + 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-499
SELECT DISTINCT SUM( DISTINCT + 41 ), COUNT( * ) * - 27 AS col2
----
41
-27

skipif mysql # not compatible
query II rowsort label-499
SELECT DISTINCT SUM ( DISTINCT + 41 ), COUNT ( * ) * - 27 AS col2
----
41
-27

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

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

query I rowsort
SELECT DISTINCT 23 + + 31 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT ALL - COUNT( + 65 ) + - - 60
----
59

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL - COUNT ( + 65 ) + - - 60
----
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-503
SELECT + 53 + 74 + - 96, + 58 * + + CAST( - - 63 AS SIGNED ) * - 9 - + 28 DIV + 48 AS col0
----
31
-32886

skipif mysql # not compatible
query II rowsort label-503
SELECT + 53 + 74 + - 96, + 58 * + + CAST ( - - 63 AS INTEGER ) * - 9 - + 28 / + 48 AS col0
----
31
-32886

query I rowsort
SELECT ALL 58 + 75
----
133

query II rowsort
SELECT - 29 + - - 48 AS col0, + 14 AS col0
----
19
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-506
SELECT - 5 + - 28 - - CASE - - AVG ( - + 38 ) WHEN - 31 * 20 + + ( - 15 ) * + 63 THEN - 50 WHEN + - CAST( NULL AS SIGNED ) * - + 77 + - 44 THEN NULL ELSE NULL END - + 98 * - + 40 * + + 57 / 79
----
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT - 5 + - 28 - - CASE - - AVG ( - + 38 ) WHEN - 31 * 20 + + ( - 15 ) * + 63 THEN - 50 WHEN + - CAST ( NULL AS INTEGER ) * - + 77 + - 44 THEN NULL ELSE NULL END - + 98 * - + 40 * + + 57 / 79
----
NULL

query I rowsort
SELECT - + ( 96 ) * - 69
----
6624

query I rowsort
SELECT DISTINCT 45 - + 29 * - 60 * 57
----
99225

query I rowsort
SELECT ALL - - 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL - ( - SUM( DISTINCT - + 2 ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL - ( - SUM ( DISTINCT - + 2 ) ) AS col1
----
-2

query I rowsort
SELECT DISTINCT - + 67 AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-512
SELECT DISTINCT + COUNT( * ) - + - 47 * + 48 - - + 18 - - COUNT( * ) + - 22 * + 47 * - CAST( NULL AS SIGNED ) * - 29 * + 23 + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT + COUNT ( * ) - + - 47 * + 48 - - + 18 - - COUNT ( * ) + - 22 * + 47 * - CAST ( NULL AS INTEGER ) * - 29 * + 23 + - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT DISTINCT - CASE WHEN ( NOT ( NOT 56 IS NOT NULL ) ) THEN NULL ELSE 94 + 92 + - 42 + 79 / - 3 / - 90 / - COUNT( + 5 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT - CASE WHEN ( NOT ( NOT 56 IS NOT NULL ) ) THEN NULL ELSE 94 + 92 + - 42 + 79 / - 3 / - 90 / - COUNT ( + 5 ) END
----
NULL

query I rowsort
SELECT DISTINCT 50 * + - NULLIF ( + + 37, - 19 ) + 11 AS col1
----
-1839

query I rowsort
SELECT ( - ( - - 16 ) ) + 83 col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-516
SELECT 3 DIV COUNT( ALL + ( + 41 ) )
----
3

skipif mysql # not compatible
query I rowsort label-516
SELECT 3 / COUNT ( ALL + ( + 41 ) )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT NULLIF ( + 40, + - 72 ) + + 33 + + 68 - + - 59 DIV + ( + - 34 ) * + 98 DIV - 65
----
142

skipif mysql # not compatible
query I rowsort label-517
SELECT NULLIF ( + 40, + - 72 ) + + 33 + + 68 - + - 59 / + ( + - 34 ) * + 98 / - 65
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-518
SELECT DISTINCT + + 93 DIV - 1 + - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT + + 93 / - 1 + - COUNT ( * )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-519
SELECT ALL - CASE + 4 WHEN COUNT( * ) THEN NULL ELSE - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL - CASE + 4 WHEN COUNT ( * ) THEN NULL ELSE - - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT + COALESCE ( + 59, - + CAST( NULL AS SIGNED ) + + 56, - 25 + 47, - 80 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-520
SELECT + COALESCE ( + 59, - + CAST ( NULL AS INTEGER ) + + 56, - 25 + 47, - 80 ) AS col0
----
59

query I rowsort
SELECT + - 26 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT DISTINCT MIN( ALL 55 )
----
55

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT MIN ( ALL 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT DISTINCT - SUM( ALL - - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT - SUM ( ALL - - 85 )
----
-85

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-525
SELECT ALL 12 AS col1, ( + COALESCE ( - ( + 43 ), + COUNT( * ) ) ), COUNT( * ) + - 87 AS col1
----
12
-43
-86

skipif mysql # not compatible
query III rowsort label-525
SELECT ALL 12 AS col1, ( + COALESCE ( - ( + 43 ), + COUNT ( * ) ) ), COUNT ( * ) + - 87 AS col1
----
12
-43
-86

query II rowsort
SELECT DISTINCT 14, 79 AS col2
----
14
79

query I rowsort
SELECT ALL + 14 * - + 24 AS col2
----
-336

query II rowsort
SELECT 26 AS col2, 57 AS col2
----
26
57

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

skipif mysql # not compatible
query I rowsort label-529
SELECT COUNT ( * ) + + - 77 + - 27 AS col0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-530
SELECT DISTINCT COUNT( + 20 ) + + MAX( DISTINCT + ( - - CAST( + - 0 AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT COUNT ( + 20 ) + + MAX ( DISTINCT + ( - - CAST ( + - 0 AS INTEGER ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ( + - 97 ) + + MIN( + - 45 ) AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-531
SELECT ( + - 97 ) + + MIN ( + - 45 ) AS col0
----
-142

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

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

query I rowsort
SELECT ALL 71 + - 81 + - 53 + + 15 AS col0
----
-48

query II rowsort
SELECT - 33, 50 AS col0
----
-33
50

query I rowsort
SELECT COALESCE ( 66, - + 0 * + - 62 * + + 91 ) * - 36
----
-2376

onlyif mysql # DIV for integer division: 
query II rowsort label-536
SELECT DISTINCT 46 AS col2, - 3 DIV + NULLIF ( - 99, + + 11 ) AS col2
----
46
0

skipif mysql # not compatible
query II rowsort label-536
SELECT DISTINCT 46 AS col2, - 3 / + NULLIF ( - 99, + + 11 ) AS col2
----
46
0

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT NULLIF ( + 4, 58 ) DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-537
SELECT NULLIF ( + 4, 58 ) / + 75
----
0

query II rowsort
SELECT 12 AS col2, + 1 + + 21 * - 27 * + 18 AS col2
----
12
-10205

onlyif mysql # DIV for integer division: 
query I rowsort label-539
SELECT + 11 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-539
SELECT + 11 / - 88
----
0

query II rowsort
SELECT + + 57 AS col2, 70 AS col0
----
57
70

onlyif mysql # DIV for integer division: 
query I rowsort label-541
SELECT - 75 DIV + - 73 - CASE WHEN + 25 IS NOT NULL THEN 94 ELSE + 21 END AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-541
SELECT - 75 / + - 73 - CASE WHEN + 25 IS NOT NULL THEN 94 ELSE + 21 END AS col0
----
-93

query I rowsort
SELECT ALL - - 8 AS col2
----
8

query I rowsort
SELECT ALL - + 17 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT + COUNT( DISTINCT + - 39 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-544
SELECT + COUNT ( DISTINCT + - 39 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - ( NULLIF ( 51, + 76 * 99 ) )
----
-51

query I rowsort
SELECT ALL + 81 * + + 54
----
4374

query II rowsort
SELECT + 0 * + - 57 * 12 AS col2, 66
----
0
66

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT ALL - SUM( DISTINCT 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL - SUM ( DISTINCT 77 ) AS col0
----
-77

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

skipif mysql # not compatible
query I rowsort label-549
SELECT + 44 + - ( - COUNT ( * ) ) AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-550
SELECT + 57 + CASE + - 44 WHEN + 31 THEN + + 9 WHEN CAST( NULL AS SIGNED ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT + 57 + CASE + - 44 WHEN + 31 THEN + + 9 WHEN CAST ( NULL AS INTEGER ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( - - ( - 82 ), 97 )
----
-82

query I rowsort
SELECT - 66 * 44 + 1 * + - 75 + 63
----
-2916

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT + 74 * + MIN( - - 30 ) + + - 11 AS col0
----
2209

skipif mysql # not compatible
query I rowsort label-553
SELECT + 74 * + MIN ( - - 30 ) + + - 11 AS col0
----
2209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-554
SELECT + CAST( + ( + - 92 ) AS SIGNED ) col1, COUNT( * )
----
-92
1

skipif mysql # not compatible
query II rowsort label-554
SELECT + CAST ( + ( + - 92 ) AS INTEGER ) col1, COUNT ( * )
----
-92
1

query I rowsort
SELECT + - 51 AS col1
----
-51

query I rowsort
SELECT DISTINCT - + 58
----
-58

query I rowsort
SELECT ALL 63 * + 11
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT - COALESCE ( - 72, + + MAX( DISTINCT - COALESCE ( 6, + 3, - + 24 ) ) ) + - - 37 * - 60 - - + 85 AS col2
----
-2063

skipif mysql # not compatible
query I rowsort label-558
SELECT - COALESCE ( - 72, + + MAX ( DISTINCT - COALESCE ( 6, + 3, - + 24 ) ) ) + - - 37 * - 60 - - + 85 AS col2
----
-2063

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL - CASE + 44 WHEN + COUNT( * ) THEN - COUNT( + 96 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL - CASE + 44 WHEN + COUNT ( * ) THEN - COUNT ( + 96 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 45 + + + 2 * - - 51
----
147

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

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL - 55 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-562
SELECT ALL - 82 + + COALESCE ( - - 38, + + 41, + - COUNT( + ( 91 ) ) ) DIV 11 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL - 82 + + COALESCE ( - - 38, + + 41, + - COUNT ( + ( 91 ) ) ) / 11 AS col2
----
-79

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

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

query I rowsort
SELECT 4 * ( - + 59 ) AS col2
----
-236

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT DISTINCT - 73 DIV - 55
----
1

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT - 73 / - 55
----
1

query I rowsort
SELECT 78 * - 64 col2
----
-4992

query I rowsort
SELECT ALL + 10 + 81
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT ALL - COUNT( DISTINCT - 53 ) * + 67
----
-67

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL - COUNT ( DISTINCT - 53 ) * + 67
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-569
SELECT 88 DIV - 65 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-569
SELECT 88 / - 65 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT 23 DIV + 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-570
SELECT 23 / + 54 AS col0
----
0

query I rowsort
SELECT 4 - - - 64 * - - 62 AS col1
----
-3964

query I rowsort
SELECT DISTINCT ( - + 43 ) + + NULLIF ( + 39, + - 98 ) * - - ( - 27 )
----
-1096

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ALL + 92 * MIN( DISTINCT 99 )
----
9108

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + 92 * MIN ( DISTINCT 99 )
----
9108

onlyif mysql # DIV for integer division: 
query I rowsort label-574
SELECT ALL + 83 + - - 30 DIV + + 56 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL + 83 + - - 30 / + + 56 AS col1
----
83

query II rowsort
SELECT 3 + + 56, - 83 col0
----
59
-83

query I rowsort
SELECT 39 - 46 + + 32 AS col1
----
25

query II rowsort
SELECT 13 + 46, - 24 AS col0
----
59
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-578
SELECT COUNT( * ) * COUNT( * ) * CAST( + MIN( + - 5 ) AS SIGNED ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-578
SELECT COUNT ( * ) * COUNT ( * ) * CAST ( + MIN ( + - 5 ) AS INTEGER ) AS col0
----
-5

query I rowsort
SELECT 22 + - - 12 * 77 AS col0
----
946

query I rowsort
SELECT - 39 * + ( + - 5 ) AS col2
----
195

query I rowsort
SELECT ALL 78 * - 69 - + + 11
----
-5393

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-582
SELECT - - MAX( 3 ) + - - 80 DIV - 62 + - 19 - + 63 DIV + 30
----
-19

skipif mysql # not compatible
query I rowsort label-582
SELECT - - MAX ( 3 ) + - - 80 / - 62 + - 19 - + 63 / + 30
----
-19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-584
SELECT + + 96 + + 34 + + - 40 + + 75 * + - ( CAST( 99 AS SIGNED ) )
----
-7335

skipif mysql # not compatible
query I rowsort label-584
SELECT + + 96 + + 34 + + - 40 + + 75 * + - ( CAST ( 99 AS INTEGER ) )
----
-7335

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT DISTINCT - 32 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT - 32 / - 71
----
0

query I rowsort
SELECT ALL - 27 * + - 1 - - 92
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT + - COALESCE ( 13, - 27 ) + + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-587
SELECT + - COALESCE ( 13, - 27 ) + + COUNT ( * ) AS col2
----
-12

query I rowsort
SELECT ALL + 16 * + + 4 AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-589
SELECT + CAST( - + 50 AS SIGNED ) DIV + 52 * 84
----
0

skipif mysql # not compatible
query I rowsort label-589
SELECT + CAST ( - + 50 AS INTEGER ) / + 52 * 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-590
SELECT + AVG ( DISTINCT - 31 ) * - - 56 + - 7 * - - 24 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT + AVG ( DISTINCT - 31 ) * - - 56 + - 7 * - - 24 + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL MAX( - 65 ) * + 69
----
-4485

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL MAX ( - 65 ) * + 69
----
-4485

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

skipif mysql # not compatible
query I rowsort label-592
SELECT + 50 / - 59
----
0

query I rowsort
SELECT + - 39 * 77 col0
----
-3003

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

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

query I rowsort
SELECT ALL + + 47 AS col0
----
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL MAX( 60 ) * ( - 18 ) + 60 * - + COUNT( * ) * + + CASE - 66 WHEN + - COALESCE ( + - COUNT( * ), 46 ) THEN - - 99 + + - ( ( - COUNT( * ) ) ) ELSE NULL END + - - 12 + + + 42 * - 22 / - 18 + - 32 * - + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL MAX ( 60 ) * ( - 18 ) + 60 * - + COUNT ( * ) * + + CASE - 66 WHEN + - COALESCE ( + - COUNT ( * ), 46 ) THEN - - 99 + + - ( ( - COUNT ( * ) ) ) ELSE NULL END + - - 12 + + + 42 * - 22 / - 18 + - 32 * - + 92 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT + COUNT( * ) + + + 84 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-599
SELECT + COUNT ( * ) + + + 84 AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-600
SELECT + COALESCE ( + + COUNT( * ), - + NULLIF ( - ( - + 79 ), + CAST( NULL AS SIGNED ) + + ( COUNT( * ) ) ) + + + 4, - NULLIF ( - 86, + - 16 ) * - + 63 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-600
SELECT + COALESCE ( + + COUNT ( * ), - + NULLIF ( - ( - + 79 ), + CAST ( NULL AS INTEGER ) + + ( COUNT ( * ) ) ) + + + 4, - NULLIF ( - 86, + - 16 ) * - + 63 ) col1
----
1

query I rowsort
SELECT - 13 + 0 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT ALL + SUM( - + 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL + SUM ( - + 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT + 77 + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-603
SELECT + 77 + COUNT ( * ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-604
SELECT DISTINCT COALESCE ( CAST( NULL AS SIGNED ), - 56, + 51 )
----
-56

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT COALESCE ( CAST ( NULL AS INTEGER ), - 56, + 51 )
----
-56

query I rowsort
SELECT DISTINCT 1 * - 92 * 34 AS col1
----
-3128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-606
SELECT - 30 + - COUNT( * ) DIV + ( + ( + 12 ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-606
SELECT - 30 + - COUNT ( * ) / + ( + ( + 12 ) ) AS col0
----
-30

query I rowsort
SELECT ALL 35 + + 95
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT + 18 * - 48 * + COUNT( * ) AS col1
----
-864

skipif mysql # not compatible
query I rowsort label-608
SELECT + 18 * - 48 * + COUNT ( * ) AS col1
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT - COUNT( * ) + 77
----
76

skipif mysql # not compatible
query I rowsort label-609
SELECT - COUNT ( * ) + 77
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-610
SELECT DISTINCT CASE AVG ( DISTINCT 79 ) WHEN 30 - + ( - 42 ) THEN NULL WHEN - COALESCE ( - CASE 92 WHEN + + ( + + CASE COUNT( * ) WHEN + 26 THEN + CASE 73 WHEN 67 THEN NULL WHEN 62 + + 26 / + COUNT( * ) + - 44 THEN + + CAST( 14 AS DECIMAL ) ELSE NULL END / + - 87 + + - 54 * + 47 WHEN + 29 THEN + 54 ELSE COUNT( * ) END ) + - - 15 / 19 THEN NULL WHEN - + 20 * ( - + 57 ) * + - ( - CASE + CASE ( 71 ) WHEN 37 THEN + 29 WHEN + 98 THEN 11 END WHEN + NULLIF ( - 84, + 63 + NULLIF ( - 77 + - 99, 52 ) ) * 88 THEN + CAST( MIN( DISTINCT - 81 ) AS SIGNED ) - 42 ELSE 8 END ) + 76 * + MAX( ALL 98 ) THEN 43 - CASE 71 WHEN - 4 * 51 THEN - 33 WHEN ( COUNT( * ) ) * 27 + 95 THEN NULL END END, CASE ( 39 ) WHEN + 91 THEN 65 + 36 ELSE - 99 END / + COUNT( * ) + - ( + CAST( CASE 9 WHEN + 95 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE 59 END AS DECIMAL ) ) ) THEN NULL WHEN - 46 / CAST( NULL AS SIGNED ) + 97 THEN + 98 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-610
SELECT DISTINCT CASE AVG ( DISTINCT 79 ) WHEN 30 - + ( - 42 ) THEN NULL WHEN - COALESCE ( - CASE 92 WHEN + + ( + + CASE COUNT ( * ) WHEN + 26 THEN + CASE 73 WHEN 67 THEN NULL WHEN 62 + + 26 / + COUNT ( * ) + - 44 THEN + + CAST ( 14 AS REAL ) ELSE NULL END / + - 87 + + - 54 * + 47 WHEN + 29 THEN + 54 ELSE COUNT ( * ) END ) + - - 15 / 19 THEN NULL WHEN - + 20 * ( - + 57 ) * + - ( - CASE + CASE ( 71 ) WHEN 37 THEN + 29 WHEN + 98 THEN 11 END WHEN + NULLIF ( - 84, + 63 + NULLIF ( - 77 + - 99, 52 ) ) * 88 THEN + CAST ( MIN ( DISTINCT - 81 ) AS INTEGER ) - 42 ELSE 8 END ) + 76 * + MAX ( ALL 98 ) THEN 43 - CASE 71 WHEN - 4 * 51 THEN - 33 WHEN ( COUNT ( * ) ) * 27 + 95 THEN NULL END END, CASE ( 39 ) WHEN + 91 THEN 65 + 36 ELSE - 99 END / + COUNT ( * ) + - ( + CAST ( CASE 9 WHEN + 95 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE 59 END AS REAL ) ) ) THEN NULL WHEN - 46 / CAST ( NULL AS INTEGER ) + 97 THEN + 98 * COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 0 + + - 67 + - NULLIF ( + 30, - + 11 * 85 ) - + + 79 AS col0
----
-176

query I rowsort
SELECT DISTINCT - 7 * - + NULLIF ( 28, - 65 )
----
196

query I rowsort
SELECT ALL CASE WHEN ( - 89 ) IS NOT NULL THEN 18 * - CASE + 66 WHEN 28 THEN NULL WHEN 85 + - 84 - - 88 * + 15 * + - 47 THEN + 62 + 39 + 45 END END AS col0
----
NULL

query I rowsort
SELECT - 87 * + 31
----
-2697

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT SUM( DISTINCT - 8 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT SUM ( DISTINCT - 8 ) col1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-616
SELECT ALL - 73 AS col1, + 9 DIV + 43, + 76 * - - COUNT( * ) AS col0
----
-73
0
76

skipif mysql # not compatible
query III rowsort label-616
SELECT ALL - 73 AS col1, + 9 / + 43, + 76 * - - COUNT ( * ) AS col0
----
-73
0
76

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT - MIN( ALL - 26 ) * + - 68 - + 40
----
-1808

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - MIN ( ALL - 26 ) * + - 68 - + 40
----
-1808

query II rowsort
SELECT - + ( 23 ) * + - 20 AS col2, + 11
----
460
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-619
SELECT - COALESCE ( + - ( + + CASE - 59 WHEN ( + 14 ) * + + COUNT( * ) THEN NULL ELSE + 18 END ), - + 38 DIV 38 * 14 * + 8 ) - 17 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-619
SELECT - COALESCE ( + - ( + + CASE - 59 WHEN ( + 14 ) * + + COUNT ( * ) THEN NULL ELSE + 18 END ), - + 38 / 38 * 14 * + 8 ) - 17 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-620
SELECT - - 48 * + COUNT( * ) + 69 * CAST( - 27 AS SIGNED ) + 41 + - + ( - 69 ) * 11 * 95 + 27
----
70358

skipif mysql # not compatible
query I rowsort label-620
SELECT - - 48 * + COUNT ( * ) + 69 * CAST ( - 27 AS INTEGER ) + 41 + - + ( - 69 ) * 11 * 95 + 27
----
70358

onlyif mysql # aggregate syntax: 
query II rowsort label-621
SELECT + COUNT( * ) col0, + 36
----
1
36

skipif mysql # not compatible
query II rowsort label-621
SELECT + COUNT ( * ) col0, + 36
----
1
36

query I rowsort
SELECT - + 24 - + + 25
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT DISTINCT 94 DIV 4 + - 33 * - - 25 + + 56
----
-746

skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT 94 / 4 + - 33 * - - 25 + + 56
----
-746

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

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

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

skipif mysql # not compatible
query I rowsort label-625
SELECT + 84 / COUNT ( * ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-626
SELECT DISTINCT - + 82 * + ( - 12 ) + - + SUM( DISTINCT 8 ) + - 52 - - 56 * + CAST( NULL AS SIGNED ) AS col1, + ( + + NULLIF ( + 37, - + 45 ) )
----
NULL
37

skipif mysql # not compatible
query II rowsort label-626
SELECT DISTINCT - + 82 * + ( - 12 ) + - + SUM ( DISTINCT 8 ) + - 52 - - 56 * + CAST ( NULL AS INTEGER ) AS col1, + ( + + NULLIF ( + 37, - + 45 ) )
----
NULL
37

query II rowsort
SELECT + NULLIF ( 63, + 28 ) AS col1, - 46 + + 9 AS col1
----
63
-37

query I rowsort
SELECT + 11 * - - 17
----
187

query I rowsort
SELECT ALL 2 * - 85 * + 28
----
-4760

query II rowsort
SELECT ( + 61 ) AS col2, + 55
----
61
55

onlyif mysql # aggregate syntax: 
query II rowsort label-631
SELECT + 72 - + 37 AS col2, - COUNT( ALL 38 ) AS col1
----
35
-1

skipif mysql # not compatible
query II rowsort label-631
SELECT + 72 - + 37 AS col2, - COUNT ( ALL 38 ) AS col1
----
35
-1

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

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL + CAST ( NULL AS INTEGER ) * - 12 + - 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-633
SELECT ALL + 55 * 81 * 63 + ( - 64 ) + - + 79 - + 80 + + + 27 + - ( ( + COUNT( * ) ) ) + + + COUNT( DISTINCT 65 ) - - 25 * - + 39 * + - 44 DIV 4 AS col2, SUM( DISTINCT - CAST( - + NULLIF ( 4, - 78 ) AS SIGNED ) ) AS col2
----
291194
4

skipif mysql # not compatible
query II rowsort label-633
SELECT ALL + 55 * 81 * 63 + ( - 64 ) + - + 79 - + 80 + + + 27 + - ( ( + COUNT ( * ) ) ) + + + COUNT ( DISTINCT 65 ) - - 25 * - + 39 * + - 44 / 4 AS col2, SUM ( DISTINCT - CAST ( - + NULLIF ( 4, - 78 ) AS INTEGER ) ) AS col2
----
291194
4

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

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

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

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

query I rowsort
SELECT 28 * - 16 + - + 18 col2
----
-466

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

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

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL - COUNT ( * ) * + + 48 - COUNT ( * ) AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-640
SELECT + 0 * + CAST( 25 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-640
SELECT + 0 * + CAST ( 25 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT 20 * + ( - 27 ) + COUNT( * ) + + - COUNT( * ) + - - 57 * + 24
----
828

skipif mysql # not compatible
query I rowsort label-641
SELECT 20 * + ( - 27 ) + COUNT ( * ) + + - COUNT ( * ) + - - 57 * + 24
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT + 24 * + SUM( DISTINCT 55 )
----
1320

skipif mysql # not compatible
query I rowsort label-642
SELECT + 24 * + SUM ( DISTINCT 55 )
----
1320

query I rowsort
SELECT DISTINCT 29 * - 34 AS col1
----
-986

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL SUM( DISTINCT + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL SUM ( DISTINCT + 74 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-645
SELECT - 59 + - + 27 AS col0, + COUNT( * ) DIV + 6 col2
----
-86
0

skipif mysql # not compatible
query II rowsort label-645
SELECT - 59 + - + 27 AS col0, + COUNT ( * ) / + 6 col2
----
-86
0

query II rowsort
SELECT + 70 * + - 8 AS col1, - 78 * - + 82
----
-560
6396

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT ALL MAX( DISTINCT + 13 ) * + + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL MAX ( DISTINCT + 13 ) * + + COUNT ( * ) AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-648
SELECT CAST( NULL AS SIGNED ) - 11, CASE + 26 WHEN - 29 * + + ( + 25 ) + 64 - - 13 * 19 + + COUNT( * ) THEN 58 ELSE NULL END * - - 65 - - 44 + + + 28 + + + AVG ( - - 97 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-648
SELECT CAST ( NULL AS INTEGER ) - 11, CASE + 26 WHEN - 29 * + + ( + 25 ) + 64 - - 13 * 19 + + COUNT ( * ) THEN 58 ELSE NULL END * - - 65 - - 44 + + + 28 + + + AVG ( - - 97 )
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-649
SELECT NULLIF ( + + 44, - 55 ) / - + 24 * - 10 + 17 - 39 + + 45 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT NULLIF ( + + 44, - 55 ) / - + 24 * - 10 + 17 - 39 + + 45 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL 49, 20 * + 67 AS col0
----
49
1340

query II rowsort
SELECT ALL 46 col2, - 77 col1
----
46
-77

query II rowsort
SELECT - 57, + 89 AS col2
----
-57
89

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

skipif mysql # not compatible
query II rowsort label-653
SELECT DISTINCT COUNT ( * ) AS col1, 95
----
1
95

query I rowsort
SELECT 78 - 27 * + 60 AS col0
----
-1542

query I rowsort
SELECT + ( + 53 ) + - 86
----
-33

query I rowsort
SELECT + 80 - + COALESCE ( - 98, + + 69 ) AS col1
----
178

query I rowsort
SELECT 27 + - 12
----
15

query I rowsort
SELECT ALL + - 84 + - 9 + + + 36 * + - 2
----
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-659
SELECT ( + ( - 47 ) ) + - COALESCE ( + NULLIF ( - - 36, NULLIF ( + - 24, + 54 ) ), - 32, - - MIN( ALL + 33 ) * - + 11 DIV 55 + COUNT( * ) + 46 )
----
-83

skipif mysql # not compatible
query I rowsort label-659
SELECT ( + ( - 47 ) ) + - COALESCE ( + NULLIF ( - - 36, NULLIF ( + - 24, + 54 ) ), - 32, - - MIN ( ALL + 33 ) * - + 11 / 55 + COUNT ( * ) + 46 )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT ALL 2 DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL 2 / + 21
----
0

query I rowsort
SELECT ALL + 64 + - 86
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT - 46 + - - 83 * + 4 + - 27 + - 86 * - - COUNT( DISTINCT - 67 )
----
173

skipif mysql # not compatible
query I rowsort label-662
SELECT - 46 + - - 83 * + 4 + - 27 + - 86 * - - COUNT ( DISTINCT - 67 )
----
173

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-663
SELECT ALL - CAST( NULL AS DECIMAL ) * - 67 / - - 38 * 87 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL - CAST ( NULL AS REAL ) * - 67 / - - 38 * 87 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT ALL + + 92 + COUNT( * ) + 80 + + ( + 65 ) + - 65, - 43 AS col0
----
173
-43

skipif mysql # not compatible
query II rowsort label-664
SELECT ALL + + 92 + COUNT ( * ) + 80 + + ( + 65 ) + - 65, - 43 AS col0
----
173
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-665
SELECT + COUNT( DISTINCT - + 84 ) AS col0, 19 AS col2
----
1
19

skipif mysql # not compatible
query II rowsort label-665
SELECT + COUNT ( DISTINCT - + 84 ) AS col0, 19 AS col2
----
1
19

query I rowsort
SELECT 96 + + 12 + - 65 AS col2
----
43

query II rowsort
SELECT - 37 AS col2, + 95
----
-37
95

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL - + MIN( - 78 ) * - 42
----
-3276

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL - + MIN ( - 78 ) * - 42
----
-3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT + CAST( + COUNT( - 28 ) AS SIGNED ) + + 38 + - 4 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-669
SELECT + CAST ( + COUNT ( - 28 ) AS INTEGER ) + + 38 + - 4 AS col0
----
35

query I rowsort
SELECT 75 * 78
----
5850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-671
SELECT 37 * + 96 + 59 + 84 DIV - NULLIF ( - - COUNT( * ), - + 75 )
----
3527

skipif mysql # not compatible
query I rowsort label-671
SELECT 37 * + 96 + 59 + 84 / - NULLIF ( - - COUNT ( * ), - + 75 )
----
3527

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

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT DISTINCT + CASE - 24 WHEN 95 THEN NULL ELSE - ( + ( + 84 ) ) DIV + 97 + - 82 END + - + 46 + + 75 * ( - + 72 ) * + 50
----
-270128

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT + CASE - 24 WHEN 95 THEN NULL ELSE - ( + ( + 84 ) ) / + 97 + - 82 END + - + 46 + + 75 * ( - + 72 ) * + 50
----
-270128

onlyif mysql # DIV for integer division: 
query I rowsort label-674
SELECT 7 * 33 DIV 14
----
16

skipif mysql # not compatible
query I rowsort label-674
SELECT 7 * 33 / 14
----
16

query I rowsort
SELECT ALL NULLIF ( 8, + - 8 ) * 40 col1
----
320

query I rowsort
SELECT DISTINCT - COALESCE ( + 45, + 10 + 2 * + 13 * - + 43 ) col1
----
-45

query I rowsort
SELECT ALL - 97 - + 45
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-678
SELECT ALL + 24 * - 98 AS col0, NULLIF ( - 64, - + ( + MIN( DISTINCT 93 ) ) )
----
-2352
-64

skipif mysql # not compatible
query II rowsort label-678
SELECT ALL + 24 * - 98 AS col0, NULLIF ( - 64, - + ( + MIN ( DISTINCT 93 ) ) )
----
-2352
-64

query I rowsort
SELECT 3 + - + 54 AS col0
----
-51

query I rowsort
SELECT 34 * 79 - + - 91 AS col1
----
2777

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT COUNT( * ) * + - COUNT( ALL - 7 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-681
SELECT COUNT ( * ) * + - COUNT ( ALL - 7 ) col1
----
-1

query I rowsort
SELECT ( + 74 ) * 34
----
2516

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT ( + COUNT( * ) ) + 53
----
54

skipif mysql # not compatible
query I rowsort label-684
SELECT ( + COUNT ( * ) ) + 53
----
54

query II rowsort
SELECT - ( 61 ) AS col2, + 60 AS col0
----
-61
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-686
SELECT ALL - 53 * + + ( + SUM( CAST( NULL AS SIGNED ) ) ) + + - 20 + 24 * + - ( - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL - 53 * + + ( + SUM ( CAST ( NULL AS INTEGER ) ) ) + + - 20 + 24 * + - ( - 88 )
----
NULL

query I rowsort
SELECT ALL 34 * 56
----
1904

onlyif mysql # DIV for integer division: 
query II rowsort label-688
SELECT ALL 47 + - 12 col2, - 21 DIV 84
----
35
0

skipif mysql # not compatible
query II rowsort label-688
SELECT ALL 47 + - 12 col2, - 21 / 84
----
35
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-689
SELECT DISTINCT - COALESCE ( - 15, - + 73 + 3 * ( + - 1 ) ) * + + 66 / - ( + + 65 ) + 78 * + - COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT - COALESCE ( - 15, - + 73 + 3 * ( + - 1 ) ) * + + 66 / - ( + + 65 ) + 78 * + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 13 AS col0
----
-13

query I rowsort
SELECT DISTINCT + 35 + - 24 + - - ( + + 51 ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-692
SELECT DISTINCT + CAST( 79 AS SIGNED ) + - + 91
----
-12

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT + CAST ( 79 AS INTEGER ) + - + 91
----
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-693
SELECT MIN( 47 ) / - COUNT( * ) + + 45 + - - CAST( NULL AS DECIMAL ) - - + 64 + 42 * - - 17 * + 65 * - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-693
SELECT MIN ( 47 ) / - COUNT ( * ) + + 45 + - - CAST ( NULL AS REAL ) - - + 64 + 42 * - - 17 * + 65 * - CAST ( NULL AS REAL ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-694
SELECT ( + 61 ) - + - ( - ( 87 ) ) AS col0, 36 DIV 4 AS col0
----
-26
9

skipif mysql # not compatible
query II rowsort label-694
SELECT ( + 61 ) - + - ( - ( 87 ) ) AS col0, 36 / 4 AS col0
----
-26
9

query I rowsort
SELECT + 66 * + 0 * 49 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( - ( - - 60 ), - - 10 )
----
-60

query I rowsort
SELECT ALL - 52 + 47 * 9 AS col1
----
371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-698
SELECT + NULLIF ( + + NULLIF ( + ( + MAX( DISTINCT - 0 ) ), + ( CAST( NULL AS SIGNED ) ) * - - 69 ), ( + 54 ) + - COUNT( * ) ) - - 88, COALESCE ( - + 65, - + 56 + ( + 55 ) DIV + + CAST( + + COALESCE ( 8, COUNT( * ) - + + 25 ) AS SIGNED ) * 5 + + - 42, 28 + 97 ) + + COUNT( * ) AS col1
----
88
-64

skipif mysql # not compatible
query II rowsort label-698
SELECT + NULLIF ( + + NULLIF ( + ( + MAX ( DISTINCT - 0 ) ), + ( CAST ( NULL AS INTEGER ) ) * - - 69 ), ( + 54 ) + - COUNT ( * ) ) - - 88, COALESCE ( - + 65, - + 56 + ( + 55 ) / + + CAST ( + + COALESCE ( 8, COUNT ( * ) - + + 25 ) AS INTEGER ) * 5 + + - 42, 28 + 97 ) + + COUNT ( * ) AS col1
----
88
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT - - COALESCE ( + - CASE COUNT( - - 74 ) WHEN 88 - - 55 THEN + - 86 + ( + 96 ) + 47 ELSE + 87 * - + 71 + - + 96 END, 0 ) col0
----
6273

skipif mysql # not compatible
query I rowsort label-699
SELECT - - COALESCE ( + - CASE COUNT ( - - 74 ) WHEN 88 - - 55 THEN + - 86 + ( + 96 ) + 47 ELSE + 87 * - + 71 + - + 96 END, 0 ) col0
----
6273

onlyif mysql # DIV for integer division: 
query II rowsort label-700
SELECT ALL + 77 DIV + - 97 * NULLIF ( + + 61, 46 ) + + + 75 + + 43 col2, - 2
----
118
-2

skipif mysql # not compatible
query II rowsort label-700
SELECT ALL + 77 / + - 97 * NULLIF ( + + 61, 46 ) + + + 75 + + 43 col2, - 2
----
118
-2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-702
SELECT + 93 / + 66 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT + 93 / + 66 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 33 * + 38
----
-1254

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT - 2 + - - 26 + + SUM( ( - 51 ) ) - - - ( - 57 ) + - 60 + 43 + - - 42 * - 82
----
-3431

skipif mysql # not compatible
query I rowsort label-704
SELECT - 2 + - - 26 + + SUM ( ( - 51 ) ) - - - ( - 57 ) + - 60 + 43 + - - 42 * - 82
----
-3431

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

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

query II rowsort
SELECT DISTINCT - 55 AS col0, - 2 col0
----
-55
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-707
SELECT ALL - 68, + ( - + 84 ) * + - 98 + + 57 * 78 * - COUNT( DISTINCT + 77 ) + - + 94 AS col0
----
-68
3692

skipif mysql # not compatible
query II rowsort label-707
SELECT ALL - 68, + ( - + 84 ) * + - 98 + + 57 * 78 * - COUNT ( DISTINCT + 77 ) + - + 94 AS col0
----
-68
3692

query I rowsort
SELECT + NULLIF ( - 23, + 3 ) AS col0
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-709
SELECT ( - - 10 ) + + 16 DIV - 23 AS col2, + 99 AS col0
----
10
99

skipif mysql # not compatible
query II rowsort label-709
SELECT ( - - 10 ) + + 16 / - 23 AS col2, + 99 AS col0
----
10
99

query I rowsort
SELECT 42 * + + 25
----
1050

query I rowsort
SELECT 13 * + + 60
----
780

query I rowsort
SELECT - 24 * 33 + - 43
----
-835

query I rowsort
SELECT - 47 * - 68 AS col0
----
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-714
SELECT + 83, + 76 + - - ( + + COUNT( * ) ) AS col0
----
83
77

skipif mysql # not compatible
query II rowsort label-714
SELECT + 83, + 76 + - - ( + + COUNT ( * ) ) AS col0
----
83
77

query II rowsort
SELECT + 37, - 36 - + + 9 AS col2
----
37
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT DISTINCT + SUM( + - 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT + SUM ( + - 17 ) AS col1
----
-17

query I rowsort
SELECT ALL - 30 + + 27 + - 98 col2
----
-101

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

onlyif mysql # DIV for integer division: 
query II rowsort label-719
SELECT - 78 DIV - - 85 + - 41 AS col1, 26 + 54
----
-41
80

skipif mysql # not compatible
query II rowsort label-719
SELECT - 78 / - - 85 + - 41 AS col1, 26 + 54
----
-41
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-720
SELECT + 48 * - - COUNT( * ) DIV + 51, COUNT( * ) + + 32 col0
----
0
33

skipif mysql # not compatible
query II rowsort label-720
SELECT + 48 * - - COUNT ( * ) / + 51, COUNT ( * ) + + 32 col0
----
0
33

query I rowsort
SELECT ALL - 66 + + 37 * 32
----
1118

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-723
SELECT - + 86 - - 92 DIV + COUNT( * ) AS col2, ( 71 )
----
6
71

skipif mysql # not compatible
query II rowsort label-723
SELECT - + 86 - - 92 / + COUNT ( * ) AS col2, ( 71 )
----
6
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-724
SELECT DISTINCT + CAST( - 33 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT + CAST ( - 33 AS INTEGER )
----
-33

query I rowsort
SELECT ALL 45 + 33
----
78

query I rowsort
SELECT + - 11 - - 68
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-727
SELECT ALL - CAST( NULL AS SIGNED ) + - 23 + + 36 + - SUM( - + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL - CAST ( NULL AS INTEGER ) + - 23 + + 36 + - SUM ( - + 92 )
----
NULL

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

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

query I rowsort
SELECT + + 36 + 98 AS col0
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-730
SELECT ALL + NULLIF ( + 83, - + CAST( NULL AS SIGNED ) ) + COUNT( DISTINCT + 59 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + NULLIF ( + 83, - + CAST ( NULL AS INTEGER ) ) + COUNT ( DISTINCT + 59 ) AS col0
----
84

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

query I rowsort
SELECT - ( - - 30 ) + - + 75 + - 29 AS col1
----
-134

query I rowsort
SELECT + 64 - + COALESCE ( - + 60, - - NULLIF ( - ( - - 94 ), - COALESCE ( 28, ( COALESCE ( + + 58, + 73 * + 43 ) ) ) ) )
----
124

query I rowsort
SELECT + 8 + 42
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-735
SELECT + COUNT( + + 32 ) - - ( 75 ) AS col0, - 95
----
76
-95

skipif mysql # not compatible
query II rowsort label-735
SELECT + COUNT ( + + 32 ) - - ( 75 ) AS col0, - 95
----
76
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-736
SELECT ALL CAST( NULL AS SIGNED ) - - ( + 85 ) + + COALESCE ( - 86, 64, + - 89 + NULLIF ( + 78, - CASE 87 WHEN + CAST( NULL AS SIGNED ) THEN 40 WHEN + 60 + + 74 THEN NULL ELSE - CASE + 60 WHEN + - 96 THEN 12 * - - 36 WHEN COALESCE ( 0, CAST( + 47 AS SIGNED ) ) THEN NULL ELSE NULL END + - 69 END + 8 ) + + 32 * - 39 * - 71 / - 53 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL CAST ( NULL AS INTEGER ) - - ( + 85 ) + + COALESCE ( - 86, 64, + - 89 + NULLIF ( + 78, - CASE 87 WHEN + CAST ( NULL AS INTEGER ) THEN 40 WHEN + 60 + + 74 THEN NULL ELSE - CASE + 60 WHEN + - 96 THEN 12 * - - 36 WHEN COALESCE ( 0, CAST ( + 47 AS INTEGER ) ) THEN NULL ELSE NULL END + - 69 END + 8 ) + + 32 * - 39 * - 71 / - 53 ) col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-738
SELECT + + 35 + + ( + - ( + 27 ) ) + CAST( 22 AS SIGNED ) + + 23 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-738
SELECT + + 35 + + ( + - ( + 27 ) ) + CAST ( 22 AS INTEGER ) + + 23 AS col0
----
53

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

query I rowsort
SELECT DISTINCT 53 col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-741
SELECT ( COUNT( * ) ), 2 * - ( COALESCE ( - - 37, 15, + MIN( + ( - + 30 ) ) + + + CAST( NULL AS SIGNED ) + - - ( - 7 ) ) ) * - 95 * - 19 + COUNT( * ) AS col0
----
1
-133569

skipif mysql # not compatible
query II rowsort label-741
SELECT ( COUNT ( * ) ), 2 * - ( COALESCE ( - - 37, 15, + MIN ( + ( - + 30 ) ) + + + CAST ( NULL AS INTEGER ) + - - ( - 7 ) ) ) * - 95 * - 19 + COUNT ( * ) AS col0
----
1
-133569

query I rowsort
SELECT + NULLIF ( 83, + 95 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT 61 * 39 + - + COUNT( ALL + 78 ) + 64 * - 16 * 53 AS col1
----
-51894

skipif mysql # not compatible
query I rowsort label-743
SELECT 61 * 39 + - + COUNT ( ALL + 78 ) + 64 * - 16 * 53 AS col1
----
-51894

query I rowsort
SELECT - 1 * - 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL + SUM( + + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + SUM ( + + 7 )
----
7

query I rowsort
SELECT + 71 * - 42 AS col0
----
-2982

query I rowsort
SELECT ALL - 61 * - 24
----
1464

query I rowsort
SELECT + 65 + + 19 AS col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT DISTINCT 71 DIV - 16 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT 71 / - 16 AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-750
SELECT DISTINCT CAST( + 48 AS SIGNED ) * - ( - 30 ) - 89 * + ( + 49 ) AS col0, 25
----
-2921
25

skipif mysql # not compatible
query II rowsort label-750
SELECT DISTINCT CAST ( + 48 AS INTEGER ) * - ( - 30 ) - 89 * + ( + 49 ) AS col0, 25
----
-2921
25

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT + 29 + + 2 + + 33 + + 66 * 57 * SUM( 46 )
----
173116

skipif mysql # not compatible
query I rowsort label-751
SELECT + 29 + + 2 + + 33 + + 66 * 57 * SUM ( 46 )
----
173116

query I rowsort
SELECT COALESCE ( - - 13, - - 56 * - - 79 + - - 56 + - - 47, 39 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT + COUNT( * ) * - + COALESCE ( 12, MAX( + 55 ) + + 3 ) * + 55 * 68 + - 11
----
-44891

skipif mysql # not compatible
query I rowsort label-753
SELECT + COUNT ( * ) * - + COALESCE ( 12, MAX ( + 55 ) + + 3 ) * + 55 * 68 + - 11
----
-44891

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT + 44 * - 87 * + 28 + - 28 + + MAX( - - 99 ) col0
----
-107113

skipif mysql # not compatible
query I rowsort label-754
SELECT + 44 * - 87 * + 28 + - 28 + + MAX ( - - 99 ) col0
----
-107113

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT DISTINCT 56 * 30 + - ( COUNT( * ) ) * 68 - + 81
----
1531

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT 56 * 30 + - ( COUNT ( * ) ) * 68 - + 81
----
1531

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-756
SELECT ALL 62 * + - 39 + - 1 + - COUNT( * ) * + 74 DIV - - MIN( 74 ) col0
----
-2420

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL 62 * + - 39 + - 1 + - COUNT ( * ) * + 74 / - - MIN ( 74 ) col0
----
-2420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-757
SELECT COUNT( * ) * + - CAST( NULL AS SIGNED ) + - 3 + - COUNT( * ) + + 80 + - 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - 3 + - COUNT ( * ) + + 80 + - 40 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL + 71 * - COUNT( * ) * ( - 91 ) + - 75 + - + 52
----
6334

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL + 71 * - COUNT ( * ) * ( - 91 ) + - 75 + - + 52
----
6334

query I rowsort
SELECT ALL COALESCE ( - + 72, - 56, - 12 ) AS col1
----
-72

query I rowsort
SELECT - - 65 + - - 17 AS col0
----
82

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-762
SELECT ALL CAST( + 66 AS SIGNED ) * + 82 + - + MIN( - 75 ) + - 99 AS col2
----
5388

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL CAST ( + 66 AS INTEGER ) * + 82 + - + MIN ( - 75 ) + - 99 AS col2
----
5388

onlyif mysql # aggregate syntax: 
query II rowsort label-763
SELECT DISTINCT + - 35 - + 62 AS col1, COUNT( * ) - + ( - 67 ) AS col0
----
-97
68

skipif mysql # not compatible
query II rowsort label-763
SELECT DISTINCT + - 35 - + 62 AS col1, COUNT ( * ) - + ( - 67 ) AS col0
----
-97
68

query I rowsort
SELECT + 62 + 62
----
124

query I rowsort
SELECT - 6 * - 27
----
162

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-767
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - + + AVG ( + 81 ) + - + 95, - CASE - - 85 WHEN - ( ( + 89 ) ) / + 23 - + - 79 THEN + ( - 46 ) END + 55 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-767
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - + + AVG ( + 81 ) + - + 95, - CASE - - 85 WHEN - ( ( + 89 ) ) / + 23 - + - 79 THEN + ( - 46 ) END + 55 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-768
SELECT - ( - MIN( - + NULLIF ( CASE + 9 WHEN - - 42 + + 58 THEN NULL WHEN - - 91 THEN + ( + CAST( 22 AS SIGNED ) ) + + 88 ELSE NULL END, 78 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT - ( - MIN ( - + NULLIF ( CASE + 9 WHEN - - 42 + + 58 THEN NULL WHEN - - 91 THEN + ( + CAST ( 22 AS INTEGER ) ) + + 88 ELSE NULL END, 78 ) ) ) AS col2
----
NULL

query I rowsort
SELECT - 2 - + - 72 AS col0
----
70

query I rowsort
SELECT + 7 * - + 33 * + 16
----
-3696

query I rowsort
SELECT - 78 - + 14
----
-92

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

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

query I rowsort
SELECT ALL 57 col1
----
57

query I rowsort
SELECT 22 * + 54
----
1188

query I rowsort
SELECT 58 * - 43 col1
----
-2494

query I rowsort
SELECT DISTINCT 83 * + + 29 AS col0
----
2407

onlyif mysql # aggregate syntax: 
query II rowsort label-777
SELECT 41 - + SUM( ALL + 14 ) + COUNT( ALL - + 55 ), 51 * - COALESCE ( - + 31, COUNT( * ) * 98, COALESCE ( - + 76, - SUM( ALL - 37 ) ) ) * 61 AS col1
----
28
96441

skipif mysql # not compatible
query II rowsort label-777
SELECT 41 - + SUM ( ALL + 14 ) + COUNT ( ALL - + 55 ), 51 * - COALESCE ( - + 31, COUNT ( * ) * 98, COALESCE ( - + 76, - SUM ( ALL - 37 ) ) ) * 61 AS col1
----
28
96441

query I rowsort
SELECT ALL 30 * - 96 AS col0
----
-2880

query I rowsort
SELECT 48 * + 23
----
1104

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT 38 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-780
SELECT 38 / 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT + 40 DIV + - 53 * 17 - 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-781
SELECT + 40 / + - 53 * 17 - 18 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT 86 - MAX( ALL - 33 ) * + 10
----
416

skipif mysql # not compatible
query I rowsort label-782
SELECT 86 - MAX ( ALL - 33 ) * + 10
----
416

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-783
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + ( - - 66 ) AS col0, 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-783
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + ( - - 66 ) AS col0, 78
----
NULL
78

query I rowsort
SELECT ALL - - 13 AS col2
----
13

query I rowsort
SELECT 78 * + 44 * - ( - 81 ) col1
----
277992

onlyif mysql # DIV for integer division: 
query I rowsort label-786
SELECT ALL + 5 DIV + - 47 * 60 * NULLIF ( + 42, - - 30 ) + + 52
----
52

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL + 5 / + - 47 * 60 * NULLIF ( + 42, - - 30 ) + + 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT ALL + 83 + - COUNT( ALL + - 47 ) + + - 66
----
16

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL + 83 + - COUNT ( ALL + - 47 ) + + - 66
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT ALL - 25 * - SUM( ALL 94 )
----
2350

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL - 25 * - SUM ( ALL 94 )
----
2350

query II rowsort
SELECT ALL 80 * 34 * - 42 AS col1, + 16
----
-114240
16

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT + 19 * 92 * COUNT( * )
----
1748

skipif mysql # not compatible
query I rowsort label-790
SELECT + 19 * 92 * COUNT ( * )
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT + 50 * - COUNT( * ) + - 3
----
-53

skipif mysql # not compatible
query I rowsort label-791
SELECT + 50 * - COUNT ( * ) + - 3
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ALL + 23 - ( + 92 ) + MIN( ALL + 24 )
----
-45

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL + 23 - ( + 92 ) + MIN ( ALL + 24 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT ALL + MAX( DISTINCT - 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL + MAX ( DISTINCT - 35 ) AS col1
----
-35

query I rowsort
SELECT + 4 * + ( + 55 ) col1
----
220

query I rowsort
SELECT - ( + 20 ) + - - 47
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL - MIN( 61 ) * + 62 AS col1
----
-3782

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL - MIN ( 61 ) * + 62 AS col1
----
-3782

query I rowsort
SELECT 19 + - 53 AS col1
----
-34

query I rowsort
SELECT 65 * - COALESCE ( - 62, + - 71 ) + + 37 AS col0
----
4067

query I rowsort
SELECT + 79 + 92
----
171

query I rowsort
SELECT - + 11 col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT 7 + + + 83 - - 54 * + 31 * - COUNT( * )
----
-1584

skipif mysql # not compatible
query I rowsort label-801
SELECT 7 + + + 83 - - 54 * + 31 * - COUNT ( * )
----
-1584

query I rowsort
SELECT 42 - + 71 * 72 AS col0
----
-5070

query II rowsort
SELECT ALL 1 AS col2, 30 + 42
----
1
72

query I rowsort
SELECT 16 + - 70 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT 52 + - - COUNT( DISTINCT - 48 ) - 29 + - ( + - ( + 14 ) ) * 6 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-805
SELECT 52 + - - COUNT ( DISTINCT - 48 ) - 29 + - ( + - ( + 14 ) ) * 6 AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-806
SELECT ALL - COUNT( * ) + + + COALESCE ( + MIN( DISTINCT + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ), - 42 ) - - + 57 - + COALESCE ( - + AVG ( ALL - - 13 ), MIN( ALL 10 ) * - 9 + + COUNT( * ) + - - 29 ) - - 35 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 43 + + SUM( + + 6 ) / - ( 63 ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL - COUNT ( * ) + + + COALESCE ( + MIN ( DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ), - 42 ) - - + 57 - + COALESCE ( - + AVG ( ALL - - 13 ), MIN ( ALL 10 ) * - 9 + + COUNT ( * ) + - - 29 ) - - 35 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 43 + + SUM ( + + 6 ) / - ( 63 ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-807
SELECT ALL 18 + - COUNT( * ) * + CAST( + 47 AS SIGNED ) AS col0, + 92 + + COUNT( ALL - 63 ) + + NULLIF ( + 37, + CAST( NULL AS SIGNED ) )
----
-29
130

skipif mysql # not compatible
query II rowsort label-807
SELECT ALL 18 + - COUNT ( * ) * + CAST ( + 47 AS INTEGER ) AS col0, + 92 + + COUNT ( ALL - 63 ) + + NULLIF ( + 37, + CAST ( NULL AS INTEGER ) )
----
-29
130

query I rowsort
SELECT 42 + - 17 + 15
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-809
SELECT COUNT( * ) DIV - 20 DIV - + 80 DIV + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-809
SELECT COUNT ( * ) / - 20 / - + 80 / + 53 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT DISTINCT + SUM( ALL + 15 ) + 6 * + - COUNT( * ) - - 13 + + ( - 23 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT + SUM ( ALL + 15 ) + 6 * + - COUNT ( * ) - - 13 + + ( - 23 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-811
SELECT 41 * - - CASE NULLIF ( - COUNT( * ), COUNT( * ) / - - CAST( + 88 AS SIGNED ) * CAST( NULL AS SIGNED ) + + - 7 ) WHEN - - 36 THEN NULL WHEN + 67 THEN CAST( NULL AS SIGNED ) * 87 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-811
SELECT 41 * - - CASE NULLIF ( - COUNT ( * ), COUNT ( * ) / - - CAST ( + 88 AS INTEGER ) * CAST ( NULL AS INTEGER ) + + - 7 ) WHEN - - 36 THEN NULL WHEN + 67 THEN CAST ( NULL AS INTEGER ) * 87 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-812
SELECT COALESCE ( CAST( NULL AS SIGNED ), + 17 + - + NULLIF ( + COUNT( * ), - COUNT( * ) + 40 ) ) * 30 + + + 29 + + ( + 87 )
----
596

skipif mysql # not compatible
query I rowsort label-812
SELECT COALESCE ( CAST ( NULL AS INTEGER ), + 17 + - + NULLIF ( + COUNT ( * ), - COUNT ( * ) + 40 ) ) * 30 + + + 29 + + ( + 87 )
----
596

query II rowsort
SELECT ALL - 12 col1, 2 AS col2
----
-12
2

query I rowsort
SELECT 83 * + + 23 AS col1
----
1909

onlyif mysql # DIV for integer division: 
query II rowsort label-815
SELECT ALL - 28 AS col0, 53 DIV 7 AS col1
----
-28
7

skipif mysql # not compatible
query II rowsort label-815
SELECT ALL - 28 AS col0, 53 / 7 AS col1
----
-28
7

query I rowsort
SELECT ALL 28 + - - 67 * 20 * - 87 + 1 - + 48 col1
----
-116599

query I rowsort
SELECT 66 * - 29 AS col2
----
-1914

query I rowsort
SELECT ALL - 72 * 30
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT 73 + - 40 - + + ( - 55 ) * - 95 + 66 + - 73 * + 50 * MAX( DISTINCT - - 77 ) AS col0
----
-286176

skipif mysql # not compatible
query I rowsort label-819
SELECT 73 + - 40 - + + ( - 55 ) * - 95 + 66 + - 73 * + 50 * MAX ( DISTINCT - - 77 ) AS col0
----
-286176

query II rowsort
SELECT DISTINCT 63 + 57, 82 - 7 col2
----
120
75

query I rowsort
SELECT DISTINCT - 76 * + 52 AS col0
----
-3952

onlyif mysql # aggregate syntax: 
query II rowsort label-822
SELECT ALL - COUNT( * ) AS col1, - 70 AS col1
----
-1
-70

skipif mysql # not compatible
query II rowsort label-822
SELECT ALL - COUNT ( * ) AS col1, - 70 AS col1
----
-1
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT 79 * MIN( ALL - 86 ) - - - 96
----
-6890

skipif mysql # not compatible
query I rowsort label-824
SELECT 79 * MIN ( ALL - 86 ) - - - 96
----
-6890

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT + SUM( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-825
SELECT + SUM ( 61 )
----
61

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-827
SELECT ( + MAX( + 53 ) ) * + 58 - - NULLIF ( - - CAST( NULL AS DECIMAL ), + 89 ) + + ( + 84 ) * + 43 / - 30 + + + COUNT( * ) + - 28 - + 46 * 2 * + + SUM( ALL + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT ( + MAX ( + 53 ) ) * + 58 - - NULLIF ( - - CAST ( NULL AS REAL ), + 89 ) + + ( + 84 ) * + 43 / - 30 + + + COUNT ( * ) + - 28 - + 46 * 2 * + + SUM ( ALL + 95 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT + 61 * - 47 * - COUNT( + 87 ) + 3
----
2870

skipif mysql # not compatible
query I rowsort label-828
SELECT + 61 * - 47 * - COUNT ( + 87 ) + 3
----
2870

query I rowsort
SELECT 62 + + 45
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-830
SELECT - 68 AS col1, 9 DIV + - COUNT( * )
----
-68
-9

skipif mysql # not compatible
query II rowsort label-830
SELECT - 68 AS col1, 9 / + - COUNT ( * )
----
-68
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-831
SELECT CAST( + 46 AS SIGNED ) * + MAX( ALL - - 32 ) + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT CAST ( + 46 AS INTEGER ) * + MAX ( ALL - - 32 ) + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 53 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT 41 + 42 + + + 50 * 33 + + COUNT( * ) AS col1
----
1734

skipif mysql # not compatible
query I rowsort label-833
SELECT 41 + 42 + + + 50 * 33 + + COUNT ( * ) AS col1
----
1734

query I rowsort
SELECT DISTINCT + - 5 * - + 9 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL - - 43 * - 25 + - + COALESCE ( 4, + + COALESCE ( - 26, + 66 ), - - MIN( DISTINCT - + 40 ) + + 37 + + 75 ) * + - 85
----
-735

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL - - 43 * - 25 + - + COALESCE ( 4, + + COALESCE ( - 26, + 66 ), - - MIN ( DISTINCT - + 40 ) + + 37 + + 75 ) * + - 85
----
-735

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-837
SELECT ALL 13, 61 * - 65 * - COALESCE ( COUNT( * ), + COUNT( 59 ), 69 * + 83 * - 8 ) + - + 29 * - 62 / + 79 + - ( + 99 ) + + CASE + 23 WHEN + - COUNT( * ) THEN NULL WHEN + 83 * - COUNT( * ) + NULLIF ( - CASE ( + 99 ) WHEN + - 34 + + 67 + + 24 * + 84 + - + NULLIF ( + + 54, - COUNT( * ) ) * - 98 + - - 51 + 31 * + 93 THEN + COUNT( * ) END, + 31 * 76 + + CAST( NULL AS SIGNED ) * + 30 ) + + - COUNT( * ) + 10 / + 15 THEN + 20 - - 74 END * + 85 * + ( 30 ) AS col1
----
13
NULL

skipif mysql # not compatible
query II rowsort label-837
SELECT ALL 13, 61 * - 65 * - COALESCE ( COUNT ( * ), + COUNT ( 59 ), 69 * + 83 * - 8 ) + - + 29 * - 62 / + 79 + - ( + 99 ) + + CASE + 23 WHEN + - COUNT ( * ) THEN NULL WHEN + 83 * - COUNT ( * ) + NULLIF ( - CASE ( + 99 ) WHEN + - 34 + + 67 + + 24 * + 84 + - + NULLIF ( + + 54, - COUNT ( * ) ) * - 98 + - - 51 + 31 * + 93 THEN + COUNT ( * ) END, + 31 * 76 + + CAST ( NULL AS INTEGER ) * + 30 ) + + - COUNT ( * ) + 10 / + 15 THEN + 20 - - 74 END * + 85 * + ( 30 ) AS col1
----
13
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-839
SELECT CAST( 78 AS SIGNED ) + - 2 * - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-839
SELECT CAST ( 78 AS INTEGER ) + - 2 * - COUNT ( * )
----
80

query I rowsort
SELECT 80 * CASE - 22 WHEN AVG ( DISTINCT 52 ) THEN - + 50 * - 99 END + - + 14 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-841
SELECT ( COUNT( * ) ) AS col0, COUNT( * ) DIV + ( - + CAST( 62 AS SIGNED ) ) col1
----
1
0

skipif mysql # not compatible
query II rowsort label-841
SELECT ( COUNT ( * ) ) AS col0, COUNT ( * ) / + ( - + CAST ( 62 AS INTEGER ) ) col1
----
1
0

query I rowsort
SELECT - - 81 + - 72 * - 15
----
1161

query I rowsort
SELECT DISTINCT - 93 + - - 13 + + - 88 * - 60 col0
----
5200

query I rowsort
SELECT - NULLIF ( + + 47, - 83 )
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-845
SELECT + 31 * 33 AS col0, 62 + + CAST( NULL AS DECIMAL )
----
1023
NULL

skipif mysql # not compatible
query II rowsort label-845
SELECT + 31 * 33 AS col0, 62 + + CAST ( NULL AS REAL )
----
1023
NULL

query I rowsort
SELECT DISTINCT + 57 + - 21 + + 14
----
50

query I rowsort
SELECT ALL + 48 + - 76 + + 70 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT - COUNT( * ) * - 31 * + - 83 AS col2
----
-2573

skipif mysql # not compatible
query I rowsort label-848
SELECT - COUNT ( * ) * - 31 * + - 83 AS col2
----
-2573

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT + 89 - + + COUNT( * ) * - 12 + + ( + 29 )
----
130

skipif mysql # not compatible
query I rowsort label-849
SELECT + 89 - + + COUNT ( * ) * - 12 + + ( + 29 )
----
130

query I rowsort
SELECT - ( - 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT - ( - - COUNT( * ) ) * 30 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-851
SELECT - ( - - COUNT ( * ) ) * 30 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-852
SELECT DISTINCT NULLIF ( - + 60, + 66 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) col0
----
-60

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT NULLIF ( - + 60, + 66 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-853
SELECT ALL 19 * + COUNT( + + 95 ) * - 72 - NULLIF ( + - 64, - + 77 ) AS col1, 40
----
-1304
40

skipif mysql # not compatible
query II rowsort label-853
SELECT ALL 19 * + COUNT ( + + 95 ) * - 72 - NULLIF ( + - 64, - + 77 ) AS col1, 40
----
-1304
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-854
SELECT + 32 / CASE 13 WHEN + NULLIF ( + 55, - CAST( NULL AS SIGNED ) + + + 90 ) THEN NULL WHEN - 93 THEN 67 * - ( - 27 ) * 42 - - - 96 * + + 57 END * - - 20 * - 26 - - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-854
SELECT + 32 / CASE 13 WHEN + NULLIF ( + 55, - CAST ( NULL AS INTEGER ) + + + 90 ) THEN NULL WHEN - 93 THEN 67 * - ( - 27 ) * 42 - - - 96 * + + 57 END * - - 20 * - 26 - - 81 AS col2
----
NULL

query I rowsort
SELECT ALL + 40 * + 27
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT DISTINCT - 86 * COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT - 86 * COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT - COUNT( * ) - - + 98 + 17 + - 87
----
27

skipif mysql # not compatible
query I rowsort label-857
SELECT - COUNT ( * ) - - + 98 + 17 + - 87
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT + NULLIF ( - - MIN( ALL - + 66 ), - - 92 ) * 92 + SUM( DISTINCT - 69 ) - + 48
----
-6189

skipif mysql # not compatible
query I rowsort label-858
SELECT + NULLIF ( - - MIN ( ALL - + 66 ), - - 92 ) * 92 + SUM ( DISTINCT - 69 ) - + 48
----
-6189

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

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

query II rowsort
SELECT - + 9 + 19 col1, 86 * + CASE - 76 WHEN COALESCE ( + 57, - 56 ) THEN + 23 * + + 29 ELSE NULL END * - 36 * - - 80 AS col0
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT + - COALESCE ( + + 87, + - COUNT( * ) ) * + 82 AS col0
----
-7134

skipif mysql # not compatible
query I rowsort label-861
SELECT + - COALESCE ( + + 87, + - COUNT ( * ) ) * + 82 AS col0
----
-7134

query I rowsort
SELECT ALL + 97 col2
----
97

query I rowsort
SELECT + + 28 - 57 * - 28 AS col0
----
1624

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

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

query I rowsort
SELECT DISTINCT + + 24 AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-866
SELECT DISTINCT + 4 * COALESCE ( + 8, 3, COUNT( * ) * 31 + - 99 + + 60 - - 30 ) * + + 91, 42 AS col2
----
2912
42

skipif mysql # not compatible
query II rowsort label-866
SELECT DISTINCT + 4 * COALESCE ( + 8, 3, COUNT ( * ) * 31 + - 99 + + 60 - - 30 ) * + + 91, 42 AS col2
----
2912
42

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT + 86 + + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-867
SELECT + 86 + + COUNT ( * ) AS col0
----
87

query I rowsort
SELECT ALL + + 25 AS col2
----
25

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

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

query I rowsort
SELECT + - NULLIF ( - 32, - 95 ) AS col2
----
32

query II rowsort
SELECT ALL + + ( - 42 ), + 5 + + 1 AS col1
----
-42
6

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT - 3 * COUNT( DISTINCT + - 14 ) + + 72
----
69

skipif mysql # not compatible
query I rowsort label-872
SELECT - 3 * COUNT ( DISTINCT + - 14 ) + + 72
----
69

query I rowsort
SELECT CASE - 61 WHEN + 96 THEN + 56 + - - 57 END AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 72 + - - 14 AS col1
----
86

query I rowsort
SELECT ALL 95 * 36
----
3420

query I rowsort
SELECT ALL 7 + + 36 * 59 + + 55 - 81
----
2105

query I rowsort
SELECT + 18 * - 70 AS col2
----
-1260

query I rowsort
SELECT + 89 + + 88
----
177

query I rowsort
SELECT ALL 0 * - NULLIF ( 21, + 45 )
----
0

query I rowsort
SELECT + 65 + - 40 AS col2
----
25

query I rowsort
SELECT - 71 + + 4 + 3 AS col0
----
-64

query I rowsort
SELECT - ( + - 72 ) col2
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT ALL 53 - COUNT( DISTINCT - 50 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL 53 - COUNT ( DISTINCT - 50 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT + 35 + + - COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-886
SELECT + 35 + + - COUNT ( * ) AS col1
----
34

query I rowsort
SELECT ALL NULLIF ( + 22, 6 )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-888
SELECT DISTINCT COUNT( * ), - 49 AS col1
----
1
-49

skipif mysql # not compatible
query II rowsort label-888
SELECT DISTINCT COUNT ( * ), - 49 AS col1
----
1
-49

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

query I rowsort
SELECT DISTINCT ( - + 9 ) col0
----
-9

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-892
SELECT ALL + + 39 DIV + ( CAST( 28 AS SIGNED ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL + + 39 / + ( CAST ( 28 AS INTEGER ) ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-893
SELECT + - 25, 76 + - COUNT( * ) DIV + COALESCE ( 34, - ( + 62 ) ) * + 86 * 76 AS col0
----
-25
76

skipif mysql # not compatible
query II rowsort label-893
SELECT + - 25, 76 + - COUNT ( * ) / + COALESCE ( 34, - ( + 62 ) ) * + 86 * 76 AS col0
----
-25
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-894
SELECT - + MIN( + 41 ) * - - 80 + + + COUNT( * ) + - CAST( - - 99 AS SIGNED )
----
-3378

skipif mysql # not compatible
query I rowsort label-894
SELECT - + MIN ( + 41 ) * - - 80 + + + COUNT ( * ) + - CAST ( - - 99 AS INTEGER )
----
-3378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-895
SELECT - 72 DIV - 4 + + - 14 * + - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-895
SELECT - 72 / - 4 + + - 14 * + - COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL - + ( - MIN( 96 ) ) * - 34
----
-3264

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL - + ( - MIN ( 96 ) ) * - 34
----
-3264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-897
SELECT - + 72 DIV + + COUNT( ALL - 33 )
----
-72

skipif mysql # not compatible
query I rowsort label-897
SELECT - + 72 / + + COUNT ( ALL - 33 )
----
-72

query I rowsort
SELECT ALL + COALESCE ( 91, - - 29 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-899
SELECT ALL + - 34 * CAST( NULL AS SIGNED ) + - 17 - SUM( 36 ) * + - COUNT( * ) * + - 98 * + 28 / - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL + - 34 * CAST ( NULL AS INTEGER ) + - 17 - SUM ( 36 ) * + - COUNT ( * ) * + - 98 * + 28 / - 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-900
SELECT ALL - 94 / 65 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - 94 / 65 + CAST ( NULL AS INTEGER )
----
NULL

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

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

query II rowsort
SELECT ALL - 60 AS col0, 60 AS col2
----
-60
60

query I rowsort
SELECT DISTINCT + ( NULLIF ( + - 56, + 1 ) ) + - 62
----
-118

query II rowsort
SELECT + 65 AS col2, - 70 + + ( - - 68 )
----
65
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT MIN( DISTINCT - - 4 ) * + 41 + - - 48
----
212

skipif mysql # not compatible
query I rowsort label-905
SELECT MIN ( DISTINCT - - 4 ) * + 41 + - - 48
----
212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-906
SELECT CASE - + 21 WHEN - + ( + + AVG ( - + 99 ) ) + - MIN( - 36 ) + - 84 THEN NULL WHEN - 88 THEN 71 * + 92 + ( + - 82 ) - + + 35 + - 41 + + 73 * - COUNT( * ) * - + ( - - NULLIF ( - 23, 46 ) ) - + COALESCE ( - + 79, - 55 * - - 3 - + + COUNT( * ) DIV + 64 * - + 72 ) * COALESCE ( + + 43, - + NULLIF ( 13, 72 * + 99 ) ) ELSE - - 39 + - 61 + 68 * - 1 * 68 END + 8 AS col1
----
-4638

skipif mysql # not compatible
query I rowsort label-906
SELECT CASE - + 21 WHEN - + ( + + AVG ( - + 99 ) ) + - MIN ( - 36 ) + - 84 THEN NULL WHEN - 88 THEN 71 * + 92 + ( + - 82 ) - + + 35 + - 41 + + 73 * - COUNT ( * ) * - + ( - - NULLIF ( - 23, 46 ) ) - + COALESCE ( - + 79, - 55 * - - 3 - + + COUNT ( * ) / + 64 * - + 72 ) * COALESCE ( + + 43, - + NULLIF ( 13, 72 * + 99 ) ) ELSE - - 39 + - 61 + 68 * - 1 * 68 END + 8 AS col1
----
-4638

query I rowsort
SELECT + - 81 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-908
SELECT ALL - 90 + - + COUNT( DISTINCT + - 99 ) * - + 14 AS col0, 43 * + + 3 * 53 + + - 3 AS col2
----
-76
6834

skipif mysql # not compatible
query II rowsort label-908
SELECT ALL - 90 + - + COUNT ( DISTINCT + - 99 ) * - + 14 AS col0, 43 * + + 3 * 53 + + - 3 AS col2
----
-76
6834

query II rowsort
SELECT ALL - 9 + + 27 + 8 * - 68 col2, 99 AS col1
----
-526
99

onlyif mysql # aggregate syntax: 
query II rowsort label-910
SELECT 73 * - 75 + - 44 AS col2, 0 * - - COUNT( * )
----
-5519
0

skipif mysql # not compatible
query II rowsort label-910
SELECT 73 * - 75 + - 44 AS col2, 0 * - - COUNT ( * )
----
-5519
0

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL + 75 + ( - 20 ) + - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + 75 + ( - 20 ) + - - COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-912
SELECT DISTINCT - ( - - 78 ) * COUNT( * ) * + - 8, + NULLIF ( + 82, - 67 + - + CASE + 74 WHEN - COUNT( * ) THEN NULL ELSE + - COUNT( * ) / 91 END + COUNT( * ) * + 10 ) + 55 AS col0
----
624
137

skipif mysql # not compatible
query II rowsort label-912
SELECT DISTINCT - ( - - 78 ) * COUNT ( * ) * + - 8, + NULLIF ( + 82, - 67 + - + CASE + 74 WHEN - COUNT ( * ) THEN NULL ELSE + - COUNT ( * ) / 91 END + COUNT ( * ) * + 10 ) + 55 AS col0
----
624
137

query I rowsort
SELECT - 5 col0
----
-5

query II rowsort
SELECT 32 * - 27 AS col2, - 59 AS col2
----
-864
-59

query III rowsort
SELECT DISTINCT 18 - 82 AS col2, + 89 - + + ( + 35 ) AS col1, 12 AS col1
----
-64
54
12

query I rowsort
SELECT ALL 53 - - 97 AS col0
----
150

query I rowsort
SELECT ALL 6 * + 35
----
210

query I rowsort
SELECT ALL 17 - - + 21
----
38

query I rowsort
SELECT 82 * 51 AS col0
----
4182

query I rowsort
SELECT DISTINCT 41 * + - 14
----
-574

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

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

query I rowsort
SELECT ( - 17 ) * - 9 - 60
----
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-924
SELECT ALL COUNT( * ) * - MIN( ALL - - NULLIF ( - CAST( NULL AS SIGNED ), - 85 ) ) AS col1, 65 AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-924
SELECT ALL COUNT ( * ) * - MIN ( ALL - - NULLIF ( - CAST ( NULL AS INTEGER ), - 85 ) ) AS col1, 65 AS col1
----
NULL
65

query I rowsort
SELECT + 14 * - + 14 * 35 AS col2
----
-6860

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-927
SELECT ALL + COALESCE ( - + 78, + 61 * 41, + CAST( - + COUNT( * ) AS SIGNED ) + + 98 )
----
-78

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + COALESCE ( - + 78, + 61 * 41, + CAST ( - + COUNT ( * ) AS INTEGER ) + + 98 )
----
-78

query I rowsort
SELECT DISTINCT + 37 * - 93
----
-3441

onlyif mysql # DIV for integer division: 
query I rowsort label-929
SELECT - 28 DIV 51 - 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-929
SELECT - 28 / 51 - 6 AS col1
----
-6

query I rowsort
SELECT 47 * - 85
----
-3995

query I rowsort
SELECT DISTINCT 19 + - 32 AS col2
----
-13

query II rowsort
SELECT ALL 46 + - 97 AS col2, + 81 AS col0
----
-51
81

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

skipif mysql # not compatible
query I rowsort label-933
SELECT - 21 + 60 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT + + COUNT( ALL 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-934
SELECT + + COUNT ( ALL 29 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - - 69 + 9 col2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-936
SELECT + 70 * + COUNT( * ) + - - 18 - 44 DIV - 95 col1
----
88

skipif mysql # not compatible
query I rowsort label-936
SELECT + 70 * + COUNT ( * ) + - - 18 - 44 / - 95 col1
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT ALL + 69 * - + 59 - 33 + COUNT( * ) * - COUNT( * ) AS col1
----
-4105

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL + 69 * - + 59 - 33 + COUNT ( * ) * - COUNT ( * ) AS col1
----
-4105

query I rowsort
SELECT - 27 col1
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-940
SELECT ALL - COUNT( - - COALESCE ( + - 89, + - 37, + 56 * + - 43 + - + 29 + + 98 - + 44 + + - 91 ) ) AS col1, 63 + - + ( 54 ) + 46
----
-1
55

skipif mysql # not compatible
query II rowsort label-940
SELECT ALL - COUNT ( - - COALESCE ( + - 89, + - 37, + 56 * + - 43 + - + 29 + + 98 - + 44 + + - 91 ) ) AS col1, 63 + - + ( 54 ) + 46
----
-1
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-941
SELECT 41 + + - 95 + - + 40 * - COUNT( * ) * + COUNT( * ), CAST( NULL AS SIGNED ) * + MAX( ALL + 23 ) AS col1
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-941
SELECT 41 + + - 95 + - + 40 * - COUNT ( * ) * + COUNT ( * ), CAST ( NULL AS INTEGER ) * + MAX ( ALL + 23 ) AS col1
----
-14
NULL

query I rowsort
SELECT 77 * + - 35
----
-2695

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

query I rowsort
SELECT 57 + 73 AS col0
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-945
SELECT DISTINCT MAX( DISTINCT CAST( - 32 AS SIGNED ) )
----
-32

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT MAX ( DISTINCT CAST ( - 32 AS INTEGER ) )
----
-32

query I rowsort
SELECT DISTINCT 66 col1
----
66

query I rowsort
SELECT 76 + + 54
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-948
SELECT 86 + - + 75 + + NULLIF ( + COALESCE ( - COUNT( * ), + + 35, - - CASE - CAST( NULL AS SIGNED ) WHEN + 83 THEN + CAST( - NULLIF ( - + 68, - 25 ) AS SIGNED ) + - 79 WHEN 12 + + COALESCE ( COUNT( * ), + 43, + 29 ) * + 15 - + 89 THEN NULL ELSE - 89 END ), 17 ) * + 80 * + + CAST( MIN( ALL + ( 98 ) ) AS SIGNED )
----
-7829

skipif mysql # not compatible
query I rowsort label-948
SELECT 86 + - + 75 + + NULLIF ( + COALESCE ( - COUNT ( * ), + + 35, - - CASE - CAST ( NULL AS INTEGER ) WHEN + 83 THEN + CAST ( - NULLIF ( - + 68, - 25 ) AS INTEGER ) + - 79 WHEN 12 + + COALESCE ( COUNT ( * ), + 43, + 29 ) * + 15 - + 89 THEN NULL ELSE - 89 END ), 17 ) * + 80 * + + CAST ( MIN ( ALL + ( 98 ) ) AS INTEGER )
----
-7829

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT 92 * COUNT( ALL 30 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-949
SELECT 92 * COUNT ( ALL 30 ) AS col0
----
92

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

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

query I rowsort
SELECT 66 + + 84
----
150

query I rowsort
SELECT 11 + - + 64
----
-53

query II rowsort
SELECT ALL 38, COALESCE ( - + 84, + ( + ( + - ( - 32 ) ) ), + 66 * 10 ) AS col1
----
38
-84

query I rowsort
SELECT 82 / - + 66 / + - CASE + - 58 WHEN + - 88 + 39 THEN + 69 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT COUNT( * ) * - + 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-955
SELECT COUNT ( * ) * - + 97 AS col2
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT 85 + - ( COUNT( * ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-957
SELECT 85 + - ( COUNT ( * ) ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-958
SELECT COUNT( * ) DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-958
SELECT COUNT ( * ) / 84
----
0

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

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

query II rowsort
SELECT ALL 3 AS col2, 77 * + - 6 col2
----
3
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT DISTINCT 13 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT 13 / 41
----
0

query I rowsort
SELECT ALL + 83 + - 2
----
81

query I rowsort
SELECT - + 78 + 42 + + - 79 + 36 + + 33 + + ( 15 ) * 12 * - 15 col1
----
-2746

query I rowsort
SELECT 3 * - 29 + 44
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-965
SELECT DISTINCT + + 0 * + NULLIF ( + + 9, + - 52 + - - 32 - - 24 * + COALESCE ( + 52, - 63 - 80 ) * - CAST( - 49 AS SIGNED ) * - - ( + 31 ) * 14 * + - 50 ) + - - 79 * + 23, - 84 * - + COALESCE ( - + COUNT( * ), 30 ) + - - 40 AS col0
----
1817
-44

skipif mysql # not compatible
query II rowsort label-965
SELECT DISTINCT + + 0 * + NULLIF ( + + 9, + - 52 + - - 32 - - 24 * + COALESCE ( + 52, - 63 - 80 ) * - CAST ( - 49 AS INTEGER ) * - - ( + 31 ) * 14 * + - 50 ) + - - 79 * + 23, - 84 * - + COALESCE ( - + COUNT ( * ), 30 ) + - - 40 AS col0
----
1817
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT DISTINCT + COUNT( * ) * 78 + + 52 + 82 * 24
----
2098

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT + COUNT ( * ) * 78 + + 52 + 82 * 24
----
2098

query I rowsort
SELECT DISTINCT + 94 * + - 36 + - 89 AS col1
----
-3473

query I rowsort
SELECT + 64 + + - 91 * + 79 col0
----
-7125

query I rowsort
SELECT + 68 * - 63 AS col2
----
-4284

query I rowsort
SELECT + - 76 * - 96 AS col1
----
7296

query I rowsort
SELECT + - 3 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT + NULLIF ( CASE - 72 WHEN - 77 / - 27 THEN NULL WHEN 34 * + CASE + - 92 WHEN + + COALESCE ( + 7, COUNT( * ) ) THEN - + 35 + - ( 16 ) + - CASE 74 WHEN 32 THEN 93 END ELSE NULL END + - - 44 THEN + 85 WHEN - - ( + + COUNT( * ) ) / + ( - COUNT( * ) ) THEN NULL END, + COUNT( * ) + 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-972
SELECT + NULLIF ( CASE - 72 WHEN - 77 / - 27 THEN NULL WHEN 34 * + CASE + - 92 WHEN + + COALESCE ( + 7, COUNT ( * ) ) THEN - + 35 + - ( 16 ) + - CASE 74 WHEN 32 THEN 93 END ELSE NULL END + - - 44 THEN + 85 WHEN - - ( + + COUNT ( * ) ) / + ( - COUNT ( * ) ) THEN NULL END, + COUNT ( * ) + 45 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT - MIN( + - 45 ) + + COUNT( * ) + - 56
----
-10

skipif mysql # not compatible
query I rowsort label-973
SELECT - MIN ( + - 45 ) + + COUNT ( * ) + - 56
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT + COALESCE ( + - 2, - 84 DIV - ( + + 77 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-974
SELECT + COALESCE ( + - 2, - 84 / - ( + + 77 ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-975
SELECT DISTINCT NULLIF ( - 60, - + 29 + SUM( - 37 ) ) DIV 20 AS col0, ( COUNT( * ) )
----
-3
1

skipif mysql # not compatible
query II rowsort label-975
SELECT DISTINCT NULLIF ( - 60, - + 29 + SUM ( - 37 ) ) / 20 AS col0, ( COUNT ( * ) )
----
-3
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT ALL + 85 * CASE - 57 WHEN 65 THEN NULL WHEN - MAX( 2 ) THEN NULL ELSE + + 40 END AS col0
----
3400

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL + 85 * CASE - 57 WHEN 65 THEN NULL WHEN - MAX ( 2 ) THEN NULL ELSE + + 40 END AS col0
----
3400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-978
SELECT SUM( ALL - - 5 ), + CAST( NULL AS SIGNED ) AS col1
----
5
NULL

skipif mysql # not compatible
query II rowsort label-978
SELECT SUM ( ALL - - 5 ), + CAST ( NULL AS INTEGER ) AS col1
----
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-979
SELECT ALL NULLIF ( - 55, + - COALESCE ( + + 65, + 39, + + 97 + + + 55 + - - 20 ) + - 97 ), COALESCE ( - CAST( + 10 AS SIGNED ), - - 66 * + - 35 ) col1
----
-55
-10

skipif mysql # not compatible
query II rowsort label-979
SELECT ALL NULLIF ( - 55, + - COALESCE ( + + 65, + 39, + + 97 + + + 55 + - - 20 ) + - 97 ), COALESCE ( - CAST ( + 10 AS INTEGER ), - - 66 * + - 35 ) col1
----
-55
-10

query I rowsort
SELECT DISTINCT 35 * - 10 * 99
----
-34650

onlyif mysql # DIV for integer division: 
query I rowsort label-981
SELECT - ( - 39 ) DIV + 37 + - 34
----
-33

skipif mysql # not compatible
query I rowsort label-981
SELECT - ( - 39 ) / + 37 + - 34
----
-33

query II rowsort
SELECT 94, 2 AS col2
----
94
2

query I rowsort
SELECT - ( + + 6 ) * - - 64 AS col1
----
-384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-984
SELECT ALL CASE MIN( - - 23 ) WHEN - COALESCE ( + 99, + - COALESCE ( + CAST( - COUNT( * ) AS SIGNED ), - COUNT( * ) * ( + + 38 ) ), ( 10 ) ) THEN - 76 * - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL CASE MIN ( - - 23 ) WHEN - COALESCE ( + 99, + - COALESCE ( + CAST ( - COUNT ( * ) AS INTEGER ), - COUNT ( * ) * ( + + 38 ) ), ( 10 ) ) THEN - 76 * - 40 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-985
SELECT 7 col0, COUNT( * )
----
7
1

skipif mysql # not compatible
query II rowsort label-985
SELECT 7 col0, COUNT ( * )
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT - COUNT( * ) * + 19 * COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-986
SELECT - COUNT ( * ) * + 19 * COUNT ( * ) AS col2
----
-19

query I rowsort
SELECT ALL 34 + 75
----
109

query I rowsort
SELECT ALL + 23 + + 7 + + 63
----
93

query II rowsort
SELECT 23 AS col2, + 33 + + - ( - 54 ) * + 86
----
23
4677

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT ALL MAX( - - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL MAX ( - - 62 )
----
62

query I rowsort
SELECT - 23 * 14 + + ( ( - 46 ) ) + + - 75 AS col1
----
-443

query I rowsort
SELECT DISTINCT + + 27 + - 73
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-993
SELECT - + MIN( + + 92 ), - MIN( DISTINCT + 37 ) AS col2
----
-92
-37

skipif mysql # not compatible
query II rowsort label-993
SELECT - + MIN ( + + 92 ), - MIN ( DISTINCT + 37 ) AS col2
----
-92
-37

query I rowsort
SELECT ALL + - 77 + - ( ( + + ( 14 ) ) )
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-995
SELECT - + ( 31 ) + + + MAX( - - 24 ) DIV + - 59 DIV - 50 DIV - 27
----
-31

skipif mysql # not compatible
query I rowsort label-995
SELECT - + ( 31 ) + + + MAX ( - - 24 ) / + - 59 / - 50 / - 27
----
-31

query I rowsort
SELECT + + 43 * + + 65 AS col0
----
2795

query I rowsort
SELECT - - 74 + 45 - - 18 + 7 * - - 6 col0
----
179

onlyif mysql # aggregate syntax: 
query II rowsort label-998
SELECT COUNT( * ) AS col1, 24 * - 62
----
1
-1488

skipif mysql # not compatible
query II rowsort label-998
SELECT COUNT ( * ) AS col1, 24 * - 62
----
1
-1488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-999
SELECT ALL + - CAST( - 19 AS SIGNED ) + + 41
----
60

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL + - CAST ( - 19 AS INTEGER ) + + 41
----
60

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1001
SELECT + 52 + - 3 + + COUNT( DISTINCT + - CAST( NULL AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-1001
SELECT + 52 + - 3 + + COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
49

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

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL - CAST ( NULL AS INTEGER ) * 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT - 52 * + + 75 * + MIN( ALL + + 28 ) - - 98 + + 5 AS col2
----
-109097

skipif mysql # not compatible
query I rowsort label-1003
SELECT - 52 * + + 75 * + MIN ( ALL + + 28 ) - - 98 + + 5 AS col2
----
-109097

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT - 78 * 16 * + COUNT( * ) * - 58
----
72384

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - 78 * 16 * + COUNT ( * ) * - 58
----
72384

query I rowsort
SELECT - - 72 + ( - 65 )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1008
SELECT + - 67 DIV + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1008
SELECT + - 67 / + 90 AS col0
----
0

query I rowsort
SELECT - 28 * + 56 + - 78 AS col1
----
-1646

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT + COUNT( * ) - + 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1010
SELECT + COUNT ( * ) - + 3 AS col2
----
-2

query I rowsort
SELECT ALL 37 * + 60
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT + COUNT( ALL - - 30 ) - - 53
----
54

skipif mysql # not compatible
query I rowsort label-1012
SELECT + COUNT ( ALL - - 30 ) - - 53
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT DISTINCT + ( + NULLIF ( - SUM( 70 ), COUNT( * ) ) ) * 21 AS col2
----
-1470

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT + ( + NULLIF ( - SUM ( 70 ), COUNT ( * ) ) ) * 21 AS col2
----
-1470

query I rowsort
SELECT ALL 1 * + 10 * + 18
----
180

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT CASE - 24 WHEN + + CASE - 16 WHEN - - COUNT( * ) + - 62 THEN NULL ELSE 86 END THEN - 93 * 45 - 95 WHEN - 70 * 84 - 71 - - 84 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT CASE - 24 WHEN + + CASE - 16 WHEN - - COUNT ( * ) + - 62 THEN NULL ELSE 86 END THEN - 93 * 45 - 95 WHEN - 70 * 84 - 71 - - 84 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT + 0 + SUM( + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-1017
SELECT + 0 + SUM ( + 7 )
----
7

query I rowsort
SELECT + ( 0 ) * - - 13 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT + COUNT( * ) * + NULLIF ( + + 41, + - 89 ) + + - ( 38 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1019
SELECT + COUNT ( * ) * + NULLIF ( + + 41, + - 89 ) + + - ( 38 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT ALL COUNT( * ) * - NULLIF ( + + 9, - 55 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL COUNT ( * ) * - NULLIF ( + + 9, - 55 ) AS col1
----
-9

query I rowsort
SELECT + ( - 52 ) + + 96
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL SUM( + 10 ) * + 17 AS col1
----
170

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL SUM ( + 10 ) * + 17 AS col1
----
170

query I rowsort
SELECT DISTINCT 17 * + + 72 + 53 AS col0
----
1277

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT DISTINCT 86 * 21 * 30 / - CASE + + 84 WHEN + 67 THEN - ( COUNT( * ) ) + - 28 ELSE NULL END * - - 5 * - 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT 86 * 21 * 30 / - CASE + + 84 WHEN + 67 THEN - ( COUNT ( * ) ) + - 28 ELSE NULL END * - - 5 * - 93 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1025
SELECT + 34 + COUNT ( * ) * - 28 AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1026
SELECT - 73 DIV - 40
----
1

skipif mysql # not compatible
query I rowsort label-1026
SELECT - 73 / - 40
----
1

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

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

query I rowsort
SELECT + 23 * + 19 * - - ( + 89 ) AS col2
----
38893

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT ALL COALESCE ( + 51, - + COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL COALESCE ( + 51, - + COUNT ( * ) )
----
51

query I rowsort
SELECT ALL + 82 * - - 69
----
5658

query I rowsort
SELECT - 59 * - 62
----
3658

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT + 66 * + 4 + COUNT( * )
----
265

skipif mysql # not compatible
query I rowsort label-1032
SELECT + 66 * + 4 + COUNT ( * )
----
265

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

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL - MAX( DISTINCT 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - MAX ( DISTINCT 30 )
----
-30

query I rowsort
SELECT ALL + 22 + + 50
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1036
SELECT DISTINCT - 68 DIV + 35
----
-1

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT - 68 / + 35
----
-1

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

skipif mysql # not compatible
query I rowsort label-1037
SELECT 95 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 86 * - 47 * 78 + - 27
----
-315303

query II rowsort
SELECT DISTINCT 88 * + 21 * - 61 AS col1, 89 AS col1
----
-112728
89

query I rowsort
SELECT ALL 41 + 86
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT ALL + 96 * + COUNT( DISTINCT 26 ) * + COUNT( * ) - + 35 + + - 74
----
-13

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL + 96 * + COUNT ( DISTINCT 26 ) * + COUNT ( * ) - + 35 + + - 74
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1042
SELECT NULLIF ( CAST( NULL AS SIGNED ), COUNT( * ) * - 79 * + + SUM( ALL + - 51 ) ) * - + 48 + - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT NULLIF ( CAST ( NULL AS INTEGER ), COUNT ( * ) * - 79 * + + SUM ( ALL + - 51 ) ) * - + 48 + - + 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1043
SELECT 43 col0, MAX( - 55 )
----
43
-55

skipif mysql # not compatible
query II rowsort label-1043
SELECT 43 col0, MAX ( - 55 )
----
43
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-1044
SELECT + 31 * 63 * ( + 85 ) * + - 60 - COUNT( * ) AS col0, - 42
----
-9960301
-42

skipif mysql # not compatible
query II rowsort label-1044
SELECT + 31 * 63 * ( + 85 ) * + - 60 - COUNT ( * ) AS col0, - 42
----
-9960301
-42

query II rowsort
SELECT - 83, 10 * + 52 * 23 AS col2
----
-83
11960

query I rowsort
SELECT ALL - 46 - 86
----
-132

query III rowsort
SELECT - 17, + ( + + 50 ) * - 93 - 13 + 80 AS col0, + 46 AS col2
----
-17
-4583
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1048
SELECT ALL - ( + COUNT( * ) ) DIV + 17 * 22 * + + 54
----
0

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL - ( + COUNT ( * ) ) / + 17 * 22 * + + 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT + ( - CASE - + 45 WHEN + 28 THEN + 37 + + COUNT( * ) * + 53 * 73 ELSE 3 END ) - 95 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1049
SELECT + ( - CASE - + 45 WHEN + 28 THEN + 37 + + COUNT ( * ) * + 53 * 73 ELSE 3 END ) - 95 AS col2
----
-98

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

query I rowsort
SELECT DISTINCT 86 * + 47 AS col0
----
4042

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL 91 - + COUNT( * ) col1
----
90

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL 91 - + COUNT ( * ) col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT - SUM( ( + 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-1053
SELECT - SUM ( ( + 25 ) )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1054
SELECT 8 DIV 93 * + ( + 5 )
----
0

skipif mysql # not compatible
query I rowsort label-1054
SELECT 8 / 93 * + ( + 5 )
----
0

query I rowsort
SELECT - 87 + - 46 + + 34 * - 9 - - 16
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - 57 - + + MIN( DISTINCT + - 97 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1056
SELECT - 57 - + + MIN ( DISTINCT + - 97 ) AS col1
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT - NULLIF ( + - MAX( ALL + 20 ), + 92 / - 90 + + - COALESCE ( ( COUNT( * ) ), - COUNT( DISTINCT - 78 ) * + - CASE 33 WHEN - 58 THEN - 29 * - 97 * - MAX( DISTINCT 2 ) - + 11 + + 7 + + NULLIF ( - 90, - 24 - + 96 + + COUNT( + 81 ) - + - SUM( - - 39 ) ) WHEN - CASE + 72 WHEN + 88 - 3 - - COALESCE ( 9, - + 12 ) * 68 + + COUNT( * ) - - COUNT( * ) * - - MIN( + 16 ) + + 50 - - NULLIF ( - 94, 20 ) THEN + + COUNT( * ) * - - COALESCE ( 22, COUNT( * ) * + NULLIF ( AVG ( ALL - 42 ), + SUM( DISTINCT 52 ) ) * 74, - 97, - 2 * 76 ) * + 61 END + MAX( 92 ) THEN NULL END / - 11 + 59 ) + 68 * 42 )
----
20

skipif mysql # not compatible
query I rowsort label-1058
SELECT - NULLIF ( + - MAX ( ALL + 20 ), + 92 / - 90 + + - COALESCE ( ( COUNT ( * ) ), - COUNT ( DISTINCT - 78 ) * + - CASE 33 WHEN - 58 THEN - 29 * - 97 * - MAX ( DISTINCT 2 ) - + 11 + + 7 + + NULLIF ( - 90, - 24 - + 96 + + COUNT ( + 81 ) - + - SUM ( - - 39 ) ) WHEN - CASE + 72 WHEN + 88 - 3 - - COALESCE ( 9, - + 12 ) * 68 + + COUNT ( * ) - - COUNT ( * ) * - - MIN ( + 16 ) + + 50 - - NULLIF ( - 94, 20 ) THEN + + COUNT ( * ) * - - COALESCE ( 22, COUNT ( * ) * + NULLIF ( AVG ( ALL - 42 ), + SUM ( DISTINCT 52 ) ) * 74, - 97, - 2 * 76 ) * + 61 END + MAX ( 92 ) THEN NULL END / - 11 + 59 ) + 68 * 42 )
----
20

query II rowsort
SELECT DISTINCT - 16 col0, 23 * - - 18 col1
----
-16
414

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1061
SELECT DISTINCT + 93 AS col1, COUNT( * ) + 77 + 58 * 7
----
93
484

skipif mysql # not compatible
query II rowsort label-1061
SELECT DISTINCT + 93 AS col1, COUNT ( * ) + 77 + 58 * 7
----
93
484

query I rowsort
SELECT + 37 + + 32 + + - 97 + + 67 * 42 - 85
----
2701

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ALL 42 * + COUNT( * ) + 67 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL 42 * + COUNT ( * ) + 67 AS col1
----
109

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

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

query I rowsort
SELECT 86 * - 0 * + - 43 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1066
SELECT 69 + + 41 AS col1, CASE - - 95 WHEN - 84 THEN - COUNT( * ) WHEN - + CAST( - COUNT( * ) AS SIGNED ) THEN - SUM( ALL + 13 ) ELSE NULL END
----
110
NULL

skipif mysql # not compatible
query II rowsort label-1066
SELECT 69 + + 41 AS col1, CASE - - 95 WHEN - 84 THEN - COUNT ( * ) WHEN - + CAST ( - COUNT ( * ) AS INTEGER ) THEN - SUM ( ALL + 13 ) ELSE NULL END
----
110
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1067
SELECT ALL - 63 * - - 75 col0, - COUNT( * ) * - - 83 - - + 41
----
-4725
-42

skipif mysql # not compatible
query II rowsort label-1067
SELECT ALL - 63 * - - 75 col0, - COUNT ( * ) * - - 83 - - + 41
----
-4725
-42

query I rowsort
SELECT 76 * - 94
----
-7144

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT COUNT( * ) + + 56
----
57

skipif mysql # not compatible
query I rowsort label-1069
SELECT COUNT ( * ) + + 56
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1070
SELECT DISTINCT - 82 * + 51 AS col2, + COUNT( * ) + + 19 + + MIN( + NULLIF ( + 91, - 45 ) ) + 18 DIV + - COUNT( * )
----
-4182
93

skipif mysql # not compatible
query II rowsort label-1070
SELECT DISTINCT - 82 * + 51 AS col2, + COUNT ( * ) + + 19 + + MIN ( + NULLIF ( + 91, - 45 ) ) + 18 / + - COUNT ( * )
----
-4182
93

query I rowsort
SELECT 92 - 47
----
45

query I rowsort
SELECT DISTINCT 65 * + 32 + 94
----
2174

onlyif mysql # DIV for integer division: 
query II rowsort label-1073
SELECT DISTINCT 35 DIV - 86 col1, + 83
----
0
83

skipif mysql # not compatible
query II rowsort label-1073
SELECT DISTINCT 35 / - 86 col1, + 83
----
0
83

query I rowsort
SELECT + 93 * + 61 col2
----
5673

query I rowsort
SELECT DISTINCT - ( + 56 ) / + CASE 56 WHEN + 64 THEN 82 ELSE NULL END
----
NULL

query I rowsort
SELECT - 65 * - 41 + - 0
----
2665

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT + COUNT( DISTINCT - 88 ) - - - COUNT( * ) + + NULLIF ( - + ( - COUNT( * ) ), - NULLIF ( - 35, 47 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1077
SELECT + COUNT ( DISTINCT - 88 ) - - - COUNT ( * ) + + NULLIF ( - + ( - COUNT ( * ) ), - NULLIF ( - 35, 47 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL - 1 * + ( + - 4 ) * - - 24 * + ( + - NULLIF ( + NULLIF ( 91, + COUNT( * ) / - 34 * + 44 ), 62 ) ) * - 78 AS col0
----
681408

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL - 1 * + ( + - 4 ) * - - 24 * + ( + - NULLIF ( + NULLIF ( 91, + COUNT ( * ) / - 34 * + 44 ), 62 ) ) * - 78 AS col0
----
681408

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

skipif mysql # not compatible
query I rowsort label-1079
SELECT - 65 * + COUNT ( * ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT DISTINCT - 39 * - NULLIF ( + 77, - 43 + + COUNT( * ) ) AS col0
----
3003

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT - 39 * - NULLIF ( + 77, - 43 + + COUNT ( * ) ) AS col0
----
3003

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

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

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

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

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

query I rowsort
SELECT + - 4 * + 3
----
-12

query I rowsort
SELECT DISTINCT 93 - - 40 + - ( 6 ) * + 86
----
-383

query I rowsort
SELECT ALL + COALESCE ( ( + ( + 76 ) ), + 84 ) col0
----
76

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

query I rowsort
SELECT + 81 * 26 * - - 86 + 38 * 22 AS col2
----
181952

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1090
SELECT ALL 38 * + - CAST( - 31 AS SIGNED )
----
1178

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL 38 * + - CAST ( - 31 AS INTEGER )
----
1178

onlyif mysql # DIV for integer division: 
query II rowsort label-1091
SELECT ALL 77 DIV + - 12, + 71 col0
----
-6
71

skipif mysql # not compatible
query II rowsort label-1091
SELECT ALL 77 / + - 12, + 71 col0
----
-6
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT + COUNT( * ) * 44 * + 83
----
3652

skipif mysql # not compatible
query I rowsort label-1092
SELECT + COUNT ( * ) * 44 * + 83
----
3652

query I rowsort
SELECT ALL 4 * ( + + 71 ) AS col1
----
284

query I rowsort
SELECT - 83 - 66
----
-149

query II rowsort
SELECT DISTINCT + 18 AS col0, - 77 * - - 26
----
18
-2002

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

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

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

query I rowsort
SELECT 96 * + + 38 + 15 - + 37
----
3626

query I rowsort
SELECT + 11 * + 39 * + 97
----
41613

query I rowsort
SELECT ( - COALESCE ( - + 75, 12 ) )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1101
SELECT - 99 * + CASE + - 94 WHEN + CAST( + AVG ( ALL + 29 ) AS SIGNED ) THEN 76 WHEN COUNT( * ) THEN SUM( - 50 ) / - 16 - 70 WHEN CAST( - 5 AS SIGNED ) THEN NULL ELSE NULL END / - 45 + 73 * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1101
SELECT - 99 * + CASE + - 94 WHEN + CAST ( + AVG ( ALL + 29 ) AS INTEGER ) THEN 76 WHEN COUNT ( * ) THEN SUM ( - 50 ) / - 16 - 70 WHEN CAST ( - 5 AS INTEGER ) THEN NULL ELSE NULL END / - 45 + 73 * - 97
----
NULL

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

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

query I rowsort
SELECT - 69 + 26 - 62 AS col2
----
-105

query I rowsort
SELECT COALESCE ( - 17, + - 97 ) AS col0
----
-17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1106
SELECT DISTINCT + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

query I rowsort
SELECT ALL 22 * 59 AS col2
----
1298

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT - 34 DIV - 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1108
SELECT - 34 / - 62 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT COALESCE ( + 16, + 76 * + ( - COUNT( * ) * + 35 ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1109
SELECT COALESCE ( + 16, + 76 * + ( - COUNT ( * ) * + 35 ) ) AS col2
----
16

query I rowsort
SELECT COALESCE ( 22, 56 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL - SUM( - 54 ) * - 88 - + ( + COUNT( * ) ) col0
----
-4753

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - SUM ( - 54 ) * - 88 - + ( + COUNT ( * ) ) col0
----
-4753

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT ALL + 70 DIV 20 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL + 70 / 20 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1113
SELECT - COUNT( * ) DIV ( 57 )
----
0

skipif mysql # not compatible
query I rowsort label-1113
SELECT - COUNT ( * ) / ( 57 )
----
0

query I rowsort
SELECT DISTINCT ( - 1 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT - 74 - 16 DIV 9
----
-75

skipif mysql # not compatible
query I rowsort label-1115
SELECT - 74 - 16 / 9
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1116
SELECT ALL ( CAST( AVG ( 21 ) AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL ( CAST ( AVG ( 21 ) AS INTEGER ) )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1117
SELECT ALL + 71 DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL + 71 / - 94 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT - 50 * COALESCE ( + 19, 52 * 41 - + 17, - CAST( 54 AS SIGNED ) ) AS col1
----
-950

skipif mysql # not compatible
query I rowsort label-1118
SELECT - 50 * COALESCE ( + 19, 52 * 41 - + 17, - CAST ( 54 AS INTEGER ) ) AS col1
----
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT SUM( DISTINCT - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1119
SELECT SUM ( DISTINCT - 3 ) AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT - 67 DIV 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1120
SELECT - 67 / 79 AS col1
----
0

query I rowsort
SELECT DISTINCT + 53 * - 61
----
-3233

query I rowsort
SELECT ALL - 98 * 9
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT ALL ( MAX( DISTINCT - 19 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL ( MAX ( DISTINCT - 19 ) )
----
-19

query I rowsort
SELECT ALL + 71 + + 37
----
108

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

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

query I rowsort
SELECT DISTINCT + 53 + 9 AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1127
SELECT ALL - 99 * - NULLIF ( - COUNT( * ), CASE + 54 WHEN COALESCE ( 79, COUNT( * ) ) THEN NULL ELSE CAST( + 61 AS DECIMAL ) END * 32 )
----
-99

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL - 99 * - NULLIF ( - COUNT ( * ), CASE + 54 WHEN COALESCE ( 79, COUNT ( * ) ) THEN NULL ELSE CAST ( + 61 AS REAL ) END * 32 )
----
-99

query I rowsort
SELECT + 14 * ( + 6 ) AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1129
SELECT ALL + 27 + COALESCE ( + COUNT( * ), 71 * - CAST( - 38 AS SIGNED ), - 23 * 55 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL + 27 + COALESCE ( + COUNT ( * ), 71 * - CAST ( - 38 AS INTEGER ), - 23 * 55 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT - 60 + + ( - ( COALESCE ( - COUNT( * ), + CASE 30 WHEN 1 + - 13 / - 70 THEN NULL WHEN - 1 * + 39 THEN 91 * 32 ELSE NULL END ) ) + - 14 )
----
-73

skipif mysql # not compatible
query I rowsort label-1130
SELECT - 60 + + ( - ( COALESCE ( - COUNT ( * ), + CASE 30 WHEN 1 + - 13 / - 70 THEN NULL WHEN - 1 * + 39 THEN 91 * 32 ELSE NULL END ) ) + - 14 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT - ( - ( - COUNT( * ) ) ) + ( - NULLIF ( - 83, + COUNT( * ) / 13 ) ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-1131
SELECT - ( - ( - COUNT ( * ) ) ) + ( - NULLIF ( - 83, + COUNT ( * ) / 13 ) ) AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1132
SELECT + 42 - COALESCE ( SUM( + 45 ) + ( + COUNT( * ) + - 87 * 10 ), + CASE + 63 WHEN 23 THEN NULL WHEN - AVG ( 41 ) * + ( 18 ) THEN + CASE ( CAST( NULL AS SIGNED ) ) WHEN + 46 THEN 43 * 28 - 61 DIV - 85 WHEN - MAX( - 2 ) THEN NULL ELSE NULL END * - 90 ELSE NULL END ) AS col0
----
866

skipif mysql # not compatible
query I rowsort label-1132
SELECT + 42 - COALESCE ( SUM ( + 45 ) + ( + COUNT ( * ) + - 87 * 10 ), + CASE + 63 WHEN 23 THEN NULL WHEN - AVG ( 41 ) * + ( 18 ) THEN + CASE ( CAST ( NULL AS INTEGER ) ) WHEN + 46 THEN 43 * 28 - 61 / - 85 WHEN - MAX ( - 2 ) THEN NULL ELSE NULL END * - 90 ELSE NULL END ) AS col0
----
866

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT DISTINCT - 9 + + COALESCE ( - 44, COALESCE ( - 40, - SUM( - 5 ), - 11 - 99 * 21 ) + NULLIF ( - 3, - 96 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT - 9 + + COALESCE ( - 44, COALESCE ( - 40, - SUM ( - 5 ), - 11 - 99 * 21 ) + NULLIF ( - 3, - 96 ) ) AS col2
----
-53

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT DISTINCT 71 DIV 25 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT 71 / 25 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1137
SELECT DISTINCT 89 DIV - 42 - - COUNT( * ) * 83
----
81

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT 89 / - 42 - - COUNT ( * ) * 83
----
81

query I rowsort
SELECT ALL 88 * 55
----
4840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1139
SELECT ALL 64 - CAST( NULL AS SIGNED ) * + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL 64 - CAST ( NULL AS INTEGER ) * + 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT DISTINCT COUNT( * ) * 17
----
17

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT COUNT ( * ) * 17
----
17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT CASE + 98 WHEN CAST( + ( + 8 ) AS SIGNED ) THEN 59 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT CASE + 98 WHEN CAST ( + ( + 8 ) AS INTEGER ) THEN 59 END * COUNT ( * )
----
NULL

query I rowsort
SELECT ( 87 ) * - 45
----
-3915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1144
SELECT - COUNT( * ) DIV - 70 + 64 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-1144
SELECT - COUNT ( * ) / - 70 + 64 / + 65
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1145
SELECT DISTINCT CASE + COALESCE ( - 79, - 19 ) WHEN 91 - - 55 THEN CAST( NULL AS SIGNED ) - + 3 END - + ( - 41 - + 18 ) * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT CASE + COALESCE ( - 79, - 19 ) WHEN 91 - - 55 THEN CAST ( NULL AS INTEGER ) - + 3 END - + ( - 41 - + 18 ) * 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT ALL ( + 4 ) DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL ( + 4 ) / - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT ( 95 ) * + SUM( ALL - 85 * - 12 )
----
96900

skipif mysql # not compatible
query I rowsort label-1147
SELECT ( 95 ) * + SUM ( ALL - 85 * - 12 )
----
96900

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

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

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

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

query I rowsort
SELECT DISTINCT - - 41 * 85
----
3485

query I rowsort
SELECT 24 + + 80 AS col2
----
104

query I rowsort
SELECT + 17 * 74
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT COUNT( 31 ) * - 59
----
-59

skipif mysql # not compatible
query I rowsort label-1153
SELECT COUNT ( 31 ) * - 59
----
-59

query I rowsort
SELECT ALL 57 * + 43
----
2451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1155
SELECT - - CAST( + COUNT( * ) AS SIGNED ) * - 41 + + 70
----
29

skipif mysql # not compatible
query I rowsort label-1155
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) * - 41 + + 70
----
29

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1156
SELECT 14 - CAST( NULL AS DECIMAL ) / + ( - CASE - ( + 90 ) WHEN - 98 * + 95 - CAST( NULL AS SIGNED ) THEN 32 * CAST( NULL AS SIGNED ) + - 11 WHEN 9 - 29 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT 14 - CAST ( NULL AS REAL ) / + ( - CASE - ( + 90 ) WHEN - 98 * + 95 - CAST ( NULL AS INTEGER ) THEN 32 * CAST ( NULL AS INTEGER ) + - 11 WHEN 9 - 29 THEN NULL END )
----
NULL

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

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

query I rowsort
SELECT 18 * 14 + - 77
----
175

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

skipif mysql # not compatible
query I rowsort label-1159
SELECT - 10 - - ( + COUNT ( * ) ) AS col0
----
-9

query I rowsort
SELECT 63 + 18
----
81

query I rowsort
SELECT ALL - 21 * - 56
----
1176

query I rowsort
SELECT ALL 37 + - CASE WHEN NOT ( COALESCE ( - 89, 88 ) - + 26 ) BETWEEN 83 AND NULL THEN 99 * - 73 END AS col0
----
7264

query I rowsort
SELECT DISTINCT 41 + ( 70 )
----
111

query I rowsort
SELECT ALL + - 23 + + 55
----
32

query I rowsort
SELECT ALL + 72 + 24
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT COUNT( * ) + 32 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-1166
SELECT COUNT ( * ) + 32 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT DISTINCT COUNT( ALL 80 )
----
1

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT COUNT ( ALL 80 )
----
1

query I rowsort
SELECT ALL + 6 col0
----
6

query I rowsort
SELECT ALL + 22 + 29 AS col1
----
51

query I rowsort
SELECT 65 * - 94 AS col1
----
-6110

query I rowsort
SELECT - 26 * 83
----
-2158

query I rowsort
SELECT DISTINCT + + 81 + 63 AS col1
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT 79 DIV + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1173
SELECT 79 / + 96 AS col0
----
0

query I rowsort
SELECT ALL + 4 + - 29
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT 85 * COUNT( 14 ) * 19
----
1615

skipif mysql # not compatible
query I rowsort label-1175
SELECT 85 * COUNT ( 14 ) * 19
----
1615

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT ALL + 32 DIV + + 37 col1
----
0

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL + 32 / + + 37 col1
----
0

query I rowsort
SELECT DISTINCT - 23 - + - 39
----
16

query I rowsort
SELECT 1 + 86 AS col2
----
87

query I rowsort
SELECT DISTINCT + 59 - + 29 + - 20 AS col0
----
10

query I rowsort
SELECT 85 * - 45
----
-3825

onlyif mysql # DIV for integer division: 
query I rowsort label-1181
SELECT 91 + + 12 - 46 DIV - 40
----
104

skipif mysql # not compatible
query I rowsort label-1181
SELECT 91 + + 12 - 46 / - 40
----
104

query I rowsort
SELECT 1 + 33 AS col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT 36 + 50 DIV - 76 col0
----
36

skipif mysql # not compatible
query I rowsort label-1183
SELECT 36 + 50 / - 76 col0
----
36

query I rowsort
SELECT DISTINCT 76 - - 51 * 48
----
2524

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT - 65 * + 3 + + ( - 62 + - COUNT( * ) ) AS col1
----
-258

skipif mysql # not compatible
query I rowsort label-1185
SELECT - 65 * + 3 + + ( - 62 + - COUNT ( * ) ) AS col1
----
-258

query I rowsort
SELECT DISTINCT ( - 85 ) * - 17
----
1445

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT DISTINCT - MIN( ALL + 97 ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT - MIN ( ALL + 97 ) col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1189
SELECT ALL 4 * + + 38 * ( - 53 DIV + 51 )
----
-152

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL 4 * + + 38 * ( - 53 / + 51 )
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1190
SELECT NULLIF ( - CASE 10 WHEN + ( COUNT( * ) ) * 64 THEN - 86 + 15 WHEN - 57 / + 46 + 94 * CASE COUNT( * ) WHEN - 15 * + 27 THEN NULL ELSE 2 END THEN 35 - - 8 * - 12 END, - 82 ) + ( 11 ) * CASE 88 - NULLIF ( 19 + + COALESCE ( + 48, - 71 * 23 - 96, 88 ), + 75 ) WHEN 52 + 45 THEN NULL ELSE NULLIF ( + 47, NULLIF ( 93, ( NULLIF ( 22, - COUNT( * ) + ( 19 ) ) ) ) * - CAST( 8 * 91 AS SIGNED ) + 93 ) + + 35 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1190
SELECT NULLIF ( - CASE 10 WHEN + ( COUNT ( * ) ) * 64 THEN - 86 + 15 WHEN - 57 / + 46 + 94 * CASE COUNT ( * ) WHEN - 15 * + 27 THEN NULL ELSE 2 END THEN 35 - - 8 * - 12 END, - 82 ) + ( 11 ) * CASE 88 - NULLIF ( 19 + + COALESCE ( + 48, - 71 * 23 - 96, 88 ), + 75 ) WHEN 52 + 45 THEN NULL ELSE NULLIF ( + 47, NULLIF ( 93, ( NULLIF ( 22, - COUNT ( * ) + ( 19 ) ) ) ) * - CAST ( 8 * 91 AS INTEGER ) + 93 ) + + 35 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1191
SELECT ALL + 97 DIV ( COUNT( ALL 96 ) )
----
97

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL + 97 / ( COUNT ( ALL 96 ) )
----
97

query I rowsort
SELECT DISTINCT ( 43 ) * + 52
----
2236

query I rowsort
SELECT + + 93 AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1194
SELECT 8 DIV NULLIF ( - COALESCE ( - 67, - 90, MIN( 53 ) * 21 ), + COALESCE ( 23, CASE - ( COUNT( * ) ) WHEN - 66 + - 17 * COUNT( * ) THEN CAST( NULL AS SIGNED ) + 79 WHEN + 91 THEN NULL WHEN - SUM( + 6 ) + + 81 THEN CAST( NULL AS DECIMAL ) + 79 * - 57 ELSE - 89 DIV - AVG ( - ( - 1 ) ) END, - 91 * - 69 + CAST( 62 AS DECIMAL ) * 2, - 61 + + ( - 64 ) ) ) DIV CAST( COALESCE ( - 97, 64 DIV ( 62 * 7 ), CAST( COUNT( * ) AS DECIMAL ) - ( + 68 ) ) + + 7 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1194
SELECT 8 / NULLIF ( - COALESCE ( - 67, - 90, MIN ( 53 ) * 21 ), + COALESCE ( 23, CASE - ( COUNT ( * ) ) WHEN - 66 + - 17 * COUNT ( * ) THEN CAST ( NULL AS INTEGER ) + 79 WHEN + 91 THEN NULL WHEN - SUM ( + 6 ) + + 81 THEN CAST ( NULL AS REAL ) + 79 * - 57 ELSE - 89 / - AVG ( - ( - 1 ) ) END, - 91 * - 69 + CAST ( 62 AS REAL ) * 2, - 61 + + ( - 64 ) ) ) / CAST ( COALESCE ( - 97, 64 / ( 62 * 7 ), CAST ( COUNT ( * ) AS REAL ) - ( + 68 ) ) + + 7 AS INTEGER ) col0
----
0

query I rowsort
SELECT ALL 41 + + 45 col1
----
86

query I rowsort
SELECT 39 * + 24 AS col1
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT + + 50 * + 8 + + COUNT( * ) * 41
----
441

skipif mysql # not compatible
query I rowsort label-1197
SELECT + + 50 * + 8 + + COUNT ( * ) * 41
----
441

query I rowsort
SELECT 98 * + 51 * 59 AS col2
----
294882

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT DISTINCT COUNT( - 45 ) + 44
----
45

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT COUNT ( - 45 ) + 44
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT ALL - + ( CASE 78 WHEN 62 + + 51 THEN NULL WHEN + 98 THEN COUNT( - 42 ) WHEN + 81 * - 49 THEN MIN( DISTINCT 64 ) + + 12 * + 86 ELSE COUNT( * ) + 3 END ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL - + ( CASE 78 WHEN 62 + + 51 THEN NULL WHEN + 98 THEN COUNT ( - 42 ) WHEN + 81 * - 49 THEN MIN ( DISTINCT 64 ) + + 12 * + 86 ELSE COUNT ( * ) + 3 END ) AS col1
----
-4

query I rowsort
SELECT ALL - 88 col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT 31 DIV 63 + CASE 65 + + 40 WHEN 68 THEN NULL WHEN 95 THEN NULL WHEN - 39 + - 38 * + 69 THEN + 88 + + 35 ELSE - 77 END DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1202
SELECT 31 / 63 + CASE 65 + + 40 WHEN 68 THEN NULL WHEN 95 THEN NULL WHEN - 39 + - 38 * + 69 THEN + 88 + + 35 ELSE - 77 END / 89 AS col1
----
0

query I rowsort
SELECT ALL - 67 + + - 47 AS col0
----
-114

query I rowsort
SELECT ALL - - 30 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT DISTINCT + - 21 + - 17 + COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT + - 21 + - 17 + COUNT ( * ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT DISTINCT + 84 + + + SUM( ALL - ( + 7 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT + 84 + + + SUM ( ALL - ( + 7 ) ) AS col2
----
77

query I rowsort
SELECT + - 85 * + 57 * - 24 - - 46 * + ( - 28 + - 45 )
----
112922

query I rowsort
SELECT + NULLIF ( 25, 62 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL CASE + 16 WHEN MAX( - 17 ) THEN NULL ELSE + 50 END + ( 4 ) * COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL CASE + 16 WHEN MAX ( - 17 ) THEN NULL ELSE + 50 END + ( 4 ) * COUNT ( * )
----
54

query I rowsort
SELECT 80 - + 81 * 75 AS col0
----
-5995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1211
SELECT + 24 * + + CAST( + 23 AS SIGNED )
----
552

skipif mysql # not compatible
query I rowsort label-1211
SELECT + 24 * + + CAST ( + 23 AS INTEGER )
----
552

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

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

query I rowsort
SELECT ALL + 90 - + 44
----
46

query I rowsort
SELECT ALL 95 * 9
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL COUNT( * ) * + 30 col2
----
30

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL COUNT ( * ) * + 30 col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT - 83 - + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-1216
SELECT - 83 - + COUNT ( * )
----
-84

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

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

query II rowsort
SELECT 3 AS col0, + 72 + + 14 + ( - 64 ) col1
----
3
22

query I rowsort
SELECT - 29 - - - 71 + 44 * NULLIF ( 49, - ( 11 ) ) AS col0
----
2056

query I rowsort
SELECT ALL - 74 * - 24
----
1776

query I rowsort
SELECT - 41 * - 15 AS col0
----
615

onlyif mysql # DIV for integer division: 
query I rowsort label-1222
SELECT ALL 47 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL 47 / + 82 AS col1
----
0

query I rowsort
SELECT - 17 * + 19
----
-323

query I rowsort
SELECT ALL + 1 * 59 * 13 * 98 AS col0
----
75166

query I rowsort
SELECT ALL - ( - 91 ) * - 51 AS col0
----
-4641

query I rowsort
SELECT - 11 * 7
----
-77

query I rowsort
SELECT ALL + NULLIF ( - 42, + 4 + 23 ) * - ( + ( 59 ) * 19 ) col0
----
47082

query I rowsort
SELECT ALL + 8 * + 98 + + 13
----
797

query I rowsort
SELECT - ( + - 82 ) * - 82 + 85 - + ( - 92 ) * 20 AS col0
----
-4799

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT NULLIF ( 17, - ( COUNT( * ) ) * 22 )
----
17

skipif mysql # not compatible
query I rowsort label-1230
SELECT NULLIF ( 17, - ( COUNT ( * ) ) * 22 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT 2 * + + COUNT( * ) + 74
----
76

skipif mysql # not compatible
query I rowsort label-1231
SELECT 2 * + + COUNT ( * ) + 74
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT + CASE - - 46 WHEN COUNT( * ) THEN + 36 + - SUM( 13 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT + CASE - - 46 WHEN COUNT ( * ) THEN + 36 + - SUM ( 13 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT + - CAST( + ( - + 88 ) AS SIGNED ) * 26
----
2288

skipif mysql # not compatible
query I rowsort label-1233
SELECT + - CAST ( + ( - + 88 ) AS INTEGER ) * 26
----
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL COUNT( * ) * 6 * + + 47 + 88 AS col0
----
370

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL COUNT ( * ) * 6 * + + 47 + 88 AS col0
----
370

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1236
SELECT DISTINCT + MAX( - 37 ) * + - MAX( DISTINCT 61 ) + - COUNT( ALL 77 + 47 ) * - 50 + - COALESCE ( 35, CAST( + 52 AS SIGNED ) * 13, 70 )
----
2272

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT + MAX ( - 37 ) * + - MAX ( DISTINCT 61 ) + - COUNT ( ALL 77 + 47 ) * - 50 + - COALESCE ( 35, CAST ( + 52 AS INTEGER ) * 13, 70 )
----
2272

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT DISTINCT + - COUNT( * ) * 91 + + 34 - 16 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT + - COUNT ( * ) * 91 + + 34 - 16 AS col0
----
-73

query I rowsort
SELECT DISTINCT + - 70 col1
----
-70

query I rowsort
SELECT ALL 32 * 19 * + 21 + + 73 AS col2
----
12841

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT + 23 * + CASE SUM( ALL - 80 ) WHEN SUM( 40 ) + 49 THEN COALESCE ( 74, - 81, + COUNT( * ) - COUNT( * ) ) + - 86 END - + COUNT( DISTINCT 63 - + 46 * - 85 ) - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1240
SELECT + 23 * + CASE SUM ( ALL - 80 ) WHEN SUM ( 40 ) + 49 THEN COALESCE ( 74, - 81, + COUNT ( * ) - COUNT ( * ) ) + - 86 END - + COUNT ( DISTINCT 63 - + 46 * - 85 ) - 51
----
NULL

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

query I rowsort
SELECT ALL - 72 * + + NULLIF ( 13, + 62 ) + 16
----
-920

query I rowsort
SELECT DISTINCT + + NULLIF ( - 47, - 2 * 32 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1244
SELECT ALL 40 * - 59 + 67 + + CAST( 13 + - 40 AS SIGNED ) DIV 54 AS col0
----
-2293

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL 40 * - 59 + 67 + + CAST ( 13 + - 40 AS INTEGER ) / 54 AS col0
----
-2293

query I rowsort
SELECT - + 49 + 3
----
-46

query II rowsort
SELECT - 5, + 38 + - 49 AS col1
----
-5
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-1247
SELECT ALL + + 55 AS col1, - 50 + + COUNT( * ) AS col0
----
55
-49

skipif mysql # not compatible
query II rowsort label-1247
SELECT ALL + + 55 AS col1, - 50 + + COUNT ( * ) AS col0
----
55
-49

query I rowsort
SELECT + 44 * + 86 + - + 6 + - 34
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT ALL + + CASE MIN( + 60 ) WHEN - 60 / 88 THEN 98 + - 35 WHEN 31 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL + + CASE MIN ( + 60 ) WHEN - 60 / 88 THEN 98 + - 35 WHEN 31 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1250
SELECT + 48 * - 53 - - - CAST( NULL AS SIGNED ) * - CASE + 96 + COUNT( * ) WHEN - COUNT( * ) THEN + 84 + MIN( + 63 ) WHEN - 38 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT + 48 * - 53 - - - CAST ( NULL AS INTEGER ) * - CASE + 96 + COUNT ( * ) WHEN - COUNT ( * ) THEN + 84 + MIN ( + 63 ) WHEN - 38 THEN NULL END
----
NULL

query I rowsort
SELECT + 47 * - - NULLIF ( - 35, 8 ) AS col1
----
-1645

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT DISTINCT - 78 * COUNT( * ) - - + 6
----
-72

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - 78 * COUNT ( * ) - - + 6
----
-72

query I rowsort
SELECT DISTINCT + - 87 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT - ( + + MAX( ALL + - 21 ) ) * - 45 - + ( + 89 ) AS col0
----
-1034

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT - ( + + MAX ( ALL + - 21 ) ) * - 45 - + ( + 89 ) AS col0
----
-1034

query I rowsort
SELECT + + 50 * - + 15 * - 33
----
24750

query I rowsort
SELECT + 74 + - 89 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT - ( - + 71 ) * 70 * + + ( MAX( DISTINCT + 4 ) ) * 2 + 37 AS col1
----
39797

skipif mysql # not compatible
query I rowsort label-1257
SELECT - ( - + 71 ) * 70 * + + ( MAX ( DISTINCT + 4 ) ) * 2 + 37 AS col1
----
39797

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

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL SUM ( ALL - - 41 )
----
41

query I rowsort
SELECT - ( - - 49 )
----
-49

query I rowsort
SELECT + 60 + 24
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1261
SELECT - CAST( - - 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-1261
SELECT - CAST ( - - 9 AS INTEGER )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1262
SELECT - COALESCE ( + + 2, + - 66, - CASE - 62 WHEN 5 + COALESCE ( + COUNT( + 96 ), - 8 - - 27 ) * 73 THEN NULL ELSE - 32 DIV - ( 97 ) END + - 72 )
----
-2

skipif mysql # not compatible
query I rowsort label-1262
SELECT - COALESCE ( + + 2, + - 66, - CASE - 62 WHEN 5 + COALESCE ( + COUNT ( + 96 ), - 8 - - 27 ) * 73 THEN NULL ELSE - 32 / - ( 97 ) END + - 72 )
----
-2

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

skipif mysql # not compatible
query I rowsort label-1263
SELECT - 53 * + COUNT ( DISTINCT 40 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT - ( + NULLIF ( COUNT( * ), - - 22 - COUNT( * ) ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1264
SELECT - ( + NULLIF ( COUNT ( * ), - - 22 - COUNT ( * ) ) ) col2
----
-1

query I rowsort
SELECT - 29 + + 29 * 33 + - 38 - + 19 * 62 AS col2
----
-288

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

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL SUM ( 54 )
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT DISTINCT COUNT( ALL 76 )
----
1

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT COUNT ( ALL 76 )
----
1

query I rowsort
SELECT + 17 * 61 AS col2
----
1037

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1270
SELECT DISTINCT 58 + - ( - + COUNT( * ) ) - + 55 DIV 2 col2
----
32

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT 58 + - ( - + COUNT ( * ) ) - + 55 / 2 col2
----
32

query I rowsort
SELECT DISTINCT ( 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT DISTINCT SUM( 69 )
----
69

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT SUM ( 69 )
----
69

query I rowsort
SELECT ALL 93 + + + 32 + + 36 * - + 43
----
-1423

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1274
SELECT + 75 + + - 0 - - + 59 DIV COUNT( ALL 8 ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-1274
SELECT + 75 + + - 0 - - + 59 / COUNT ( ALL 8 ) AS col2
----
134

query I rowsort
SELECT + 34 - 89 - 31 AS col1
----
-86

query I rowsort
SELECT - 57 + + 74
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1277
SELECT DISTINCT COUNT( * ) DIV 11 + + - 51 + - + 79 + 13 * COUNT( * ) + 50
----
-67

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT COUNT ( * ) / 11 + + - 51 + - + 79 + 13 * COUNT ( * ) + 50
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT ALL - 70 DIV + - 8 + + + 9 * - 80 * + 81
----
-58312

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL - 70 / + - 8 + + + 9 * - 80 * + 81
----
-58312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1279
SELECT ALL 92 DIV + 95 + - 80 + + COUNT( * ) + + COUNT( * ) * 29 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL 92 / + 95 + - 80 + + COUNT ( * ) + + COUNT ( * ) * 29 AS col0
----
-50

query I rowsort
SELECT - - 39 + + 18 + + + 96 AS col0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1281
SELECT DISTINCT - - MAX( + 89 ) DIV 31 + 11 + + 10
----
23

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT - - MAX ( + 89 ) / 31 + 11 + + 10
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1282
SELECT DISTINCT 50 DIV - - 86 * - + 69 + 41 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT 50 / - - 86 * - + 69 + 41 AS col1
----
41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT + + SUM( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-1284
SELECT + + SUM ( - 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT - + 4 * 21 + - - COUNT( * ) * - 21
----
-105

skipif mysql # not compatible
query I rowsort label-1285
SELECT - + 4 * 21 + - - COUNT ( * ) * - 21
----
-105

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

skipif mysql # not compatible
query I rowsort label-1286
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 59 * - CAST ( NULL AS INTEGER ) + - 32
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT ALL - - 42 * SUM( - 15 ) - 11
----
-641

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL - - 42 * SUM ( - 15 ) - 11
----
-641

query II rowsort
SELECT - 45 * - 66 AS col2, + ( - NULLIF ( - 51, 49 / NULLIF ( 72, 13 ) ) ) + - 55
----
2970
-4

query I rowsort
SELECT DISTINCT 93 - + 66
----
27

query I rowsort
SELECT ALL - 77 * + 54 * - 15 * - - 88 AS col2
----
5488560

query I rowsort
SELECT COALESCE ( 78, + - 21, + 19 + 21 ) * 73 AS col0
----
5694

query I rowsort
SELECT DISTINCT - 0 * + 74 * + 8 AS col2
----
0

query I rowsort
SELECT + 85 * - NULLIF ( + 43, + + 93 + - 50 ) - - 68
----
NULL

query II rowsort
SELECT + 94, 87 + 19 + - + 67 * - 59 AS col0
----
94
4059

query I rowsort
SELECT 95 - - 60 AS col0
----
155

query I rowsort
SELECT 4 + + 45
----
49

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

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

query I rowsort
SELECT ALL + 83 * + 60 AS col0
----
4980

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT DISTINCT - COUNT( * ) * + 55
----
-55

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT - COUNT ( * ) * + 55
----
-55

query I rowsort
SELECT ALL 88 + 76
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT COALESCE ( - + ( + 8 ), - 25 ) DIV + ( - ( + 58 ) ) * + 69
----
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT COALESCE ( - + ( + 8 ), - 25 ) / + ( - ( + 58 ) ) * + 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT ALL ( + 13 ) + + ( 40 ) DIV 2 * + 80 AS col2
----
1613

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL ( + 13 ) + + ( 40 ) / 2 * + 80 AS col2
----
1613

query I rowsort
SELECT ALL 52 + - 86 + 11 * + - 3 AS col1
----
-67

query I rowsort
SELECT 26 * - 32
----
-832

query I rowsort
SELECT NULLIF ( + + 96, 31 ) + 86
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT DISTINCT 4 + 83 - CASE - - 83 WHEN - ( CASE + 87 WHEN 48 / + NULLIF ( + 34, 52 + ( - 2 ) ) THEN 17 - COUNT( * ) ELSE NULL END ) * + 35 THEN MAX( - 58 ) - MIN( - ( - ( 72 ) ) ) WHEN 32 * + COUNT( * ) THEN NULL ELSE NULL END + - 59 * + 15 * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT 4 + 83 - CASE - - 83 WHEN - ( CASE + 87 WHEN 48 / + NULLIF ( + 34, 52 + ( - 2 ) ) THEN 17 - COUNT ( * ) ELSE NULL END ) * + 35 THEN MAX ( - 58 ) - MIN ( - ( - ( 72 ) ) ) WHEN 32 * + COUNT ( * ) THEN NULL ELSE NULL END + - 59 * + 15 * 61
----
NULL

query I rowsort
SELECT 39 + - 7
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1309
SELECT 74 - - NULLIF ( - ( - + 9 ), - - NULLIF ( 35, - COALESCE ( + 84, 49, CAST( COUNT( * ) AS SIGNED ) + 43, 33 ) ) - NULLIF ( - 72, 34 * + 55 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1309
SELECT 74 - - NULLIF ( - ( - + 9 ), - - NULLIF ( 35, - COALESCE ( + 84, 49, CAST ( COUNT ( * ) AS INTEGER ) + 43, 33 ) ) - NULLIF ( - 72, 34 * + 55 ) ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-1310
SELECT DISTINCT 87, + MIN( DISTINCT 30 ) AS col1
----
87
30

skipif mysql # not compatible
query II rowsort label-1310
SELECT DISTINCT 87, + MIN ( DISTINCT 30 ) AS col1
----
87
30

query I rowsort
SELECT ALL 39 + 57
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1312
SELECT ALL 35 + + 97 DIV + 75 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL 35 + + 97 / + 75 AS col0
----
36

query II rowsort
SELECT ALL 44, 73 AS col2
----
44
73

query I rowsort
SELECT - 18 * - 21
----
378

query I rowsort
SELECT ALL + ( - - 43 ) * + 32 AS col0
----
1376

query II rowsort
SELECT - + 60, 21 AS col2
----
-60
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + 52 * + COALESCE ( - - 21, + - 53 ) - - + 27 + COUNT( * ) * 99 AS col0
----
1218

skipif mysql # not compatible
query I rowsort label-1317
SELECT + 52 * + COALESCE ( - - 21, + - 53 ) - - + 27 + COUNT ( * ) * 99 AS col0
----
1218

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT + 84 * 6 * + 59 * 94 - - 47 + + 56 DIV 40 AS col1
----
2795232

skipif mysql # not compatible
query I rowsort label-1318
SELECT + 84 * 6 * + 59 * 94 - - 47 + + 56 / 40 AS col1
----
2795232

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT 86 + - - COUNT( ALL - 51 ) - + CASE - + 44 WHEN + 88 + + ( - 49 ) THEN 21 ELSE 74 END * 33
----
-2355

skipif mysql # not compatible
query I rowsort label-1319
SELECT 86 + - - COUNT ( ALL - 51 ) - + CASE - + 44 WHEN + 88 + + ( - 49 ) THEN 21 ELSE 74 END * 33
----
-2355

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1320
SELECT - 20 + + - CAST( + 31 AS SIGNED ) DIV + + 44 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1320
SELECT - 20 + + - CAST ( + 31 AS INTEGER ) / + + 44 AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1321
SELECT DISTINCT - CAST( 79 AS SIGNED ) * - + 70 + - ( + + 77 ) DIV ( 7 * 80 ) AS col0
----
5530

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT - CAST ( 79 AS INTEGER ) * - + 70 + - ( + + 77 ) / ( 7 * 80 ) AS col0
----
5530

query I rowsort
SELECT ALL + + 80 * - - 51 + - 71 AS col1
----
4009

query I rowsort
SELECT + 70 + + 24 AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1324
SELECT ALL - 37 * + - 75 + + ( + COALESCE ( + 64, - 57 * - CASE - 10 WHEN - CAST( 11 AS DECIMAL ) * 21 THEN 30 - 6 WHEN - 47 THEN NULL WHEN 80 THEN + 83 * - COUNT( * ) END ) ) AS col2
----
2839

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - 37 * + - 75 + + ( + COALESCE ( + 64, - 57 * - CASE - 10 WHEN - CAST ( 11 AS REAL ) * 21 THEN 30 - 6 WHEN - 47 THEN NULL WHEN 80 THEN + 83 * - COUNT ( * ) END ) ) AS col2
----
2839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1325
SELECT - COUNT( * ) + - ( - CAST( 57 AS SIGNED ) )
----
56

skipif mysql # not compatible
query I rowsort label-1325
SELECT - COUNT ( * ) + - ( - CAST ( 57 AS INTEGER ) )
----
56

query I rowsort
SELECT 32 * - - 99
----
3168

query I rowsort
SELECT DISTINCT - + 68 * - 64
----
4352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1328
SELECT + 19 * - + MIN( ALL - - 28 ) / 88 * + + CAST( NULL AS SIGNED ) + + + 88 + MIN( DISTINCT + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT + 19 * - + MIN ( ALL - - 28 ) / 88 * + + CAST ( NULL AS INTEGER ) + + + 88 + MIN ( DISTINCT + 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT COUNT( * ) - + - ( - 61 ) + + 55 + + + 2 * + + 30 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1329
SELECT COUNT ( * ) - + - ( - 61 ) + + 55 + + + 2 * + + 30 AS col2
----
55

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

query I rowsort
SELECT 4 + 12 + 71
----
87

query I rowsort
SELECT 15 * 15 - + 4 col0
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT DISTINCT - SUM( ALL + + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT - SUM ( ALL + + 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT DISTINCT - CASE 92 WHEN MIN( 56 ) * - + 61 THEN NULL ELSE - 90 * - 1 END
----
-90

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT - CASE 92 WHEN MIN ( 56 ) * - + 61 THEN NULL ELSE - 90 * - 1 END
----
-90

query I rowsort
SELECT 30 + + - COALESCE ( - 17, 67 - - 19 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1336
SELECT ALL 6 * CAST( AVG ( - + ( - 6 ) ) AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL 6 * CAST ( AVG ( - + ( - 6 ) ) AS INTEGER ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL 64 + + ( - 83 ) * - - 70 - + COUNT( * )
----
-5747

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL 64 + + ( - 83 ) * - - 70 - + COUNT ( * )
----
-5747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1338
SELECT 52 * - - CASE - NULLIF ( 98, - 90 * COALESCE ( 41, - 60 + COUNT( * ) * + MIN( 30 * 0 ) ) * ( - SUM( - 88 ) ) + 5 ) WHEN 65 + + ( CAST( NULL AS SIGNED ) + 87 ) THEN - MIN( - 20 ) END + - NULLIF ( + 7, 81 * - AVG ( ALL 59 * 19 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT 52 * - - CASE - NULLIF ( 98, - 90 * COALESCE ( 41, - 60 + COUNT ( * ) * + MIN ( 30 * 0 ) ) * ( - SUM ( - 88 ) ) + 5 ) WHEN 65 + + ( CAST ( NULL AS INTEGER ) + 87 ) THEN - MIN ( - 20 ) END + - NULLIF ( + 7, 81 * - AVG ( ALL 59 * 19 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT ALL - ( 98 ) + + 20 - + SUM( DISTINCT - 52 ) + - 17 * - COALESCE ( COALESCE ( + 92, COUNT( * ) + - 23 * 9, - 0 ), 66 * + 51 - 11 )
----
1538

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL - ( 98 ) + + 20 - + SUM ( DISTINCT - 52 ) + - 17 * - COALESCE ( COALESCE ( + 92, COUNT ( * ) + - 23 * 9, - 0 ), 66 * + 51 - 11 )
----
1538

query I rowsort
SELECT ALL + ( - 4 ) * + 55
----
-220

query II rowsort
SELECT ALL 24, 72 AS col2
----
24
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1342
SELECT 35 + + 99 + + 59 + + - 12, - COUNT( * ) AS col2
----
181
-1

skipif mysql # not compatible
query II rowsort label-1342
SELECT 35 + + 99 + + 59 + + - 12, - COUNT ( * ) AS col2
----
181
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1343
SELECT COUNT( * ) DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-1343
SELECT COUNT ( * ) / - 90
----
0

query I rowsort
SELECT ( + 52 ) + + + 37
----
89

query I rowsort
SELECT DISTINCT 40 + + 33 AS col0
----
73

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

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

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

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

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

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

query I rowsort
SELECT 29 + 7
----
36

query I rowsort
SELECT ALL ( + 51 ) - + 75
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-1351
SELECT ALL + 88 AS col2, + COUNT( * ) * 67 + - NULLIF ( + 80, + CASE + COUNT( * ) WHEN 69 THEN + COUNT( * ) END )
----
88
-13

skipif mysql # not compatible
query II rowsort label-1351
SELECT ALL + 88 AS col2, + COUNT ( * ) * 67 + - NULLIF ( + 80, + CASE + COUNT ( * ) WHEN 69 THEN + COUNT ( * ) END )
----
88
-13

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

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

query I rowsort
SELECT 62 * - + 26
----
-1612

query I rowsort
SELECT 52 + 26 col1
----
78

query I rowsort
SELECT - 52 * + - 45
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL 21 * - + ( - - 43 ) * - 40 * - 48 * + COUNT( * )
----
-1733760

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL 21 * - + ( - - 43 ) * - 40 * - 48 * + COUNT ( * )
----
-1733760

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT - COALESCE ( + 21, + 65 * - - 50, + 0 * COUNT( ALL + 41 ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-1357
SELECT - COALESCE ( + 21, + 65 * - - 50, + 0 * COUNT ( ALL + 41 ) ) AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1358
SELECT 96 / 12 + - - 19 + CASE + COALESCE ( - 65, - 18 - COUNT( * ), COUNT( * ) ) WHEN - 18 - - 21 THEN + COUNT( * ) WHEN 43 THEN NULL WHEN 49 THEN + CAST( NULL AS SIGNED ) END - - 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1358
SELECT 96 / 12 + - - 19 + CASE + COALESCE ( - 65, - 18 - COUNT ( * ), COUNT ( * ) ) WHEN - 18 - - 21 THEN + COUNT ( * ) WHEN 43 THEN NULL WHEN 49 THEN + CAST ( NULL AS INTEGER ) END - - 67 col2
----
NULL

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

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

query II rowsort
SELECT DISTINCT + - 92 AS col1, 39 * 31
----
-92
1209

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

query I rowsort
SELECT DISTINCT - 99 * 84 AS col1
----
-8316

query I rowsort
SELECT ALL + 83 * + 54 AS col2
----
4482

query I rowsort
SELECT + 84 * + ( + - 4 ) AS col0
----
-336

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1365
SELECT + CASE COALESCE ( MAX( ( + - 74 ) ), ( 14 ) ) WHEN 95 + - 27 THEN CAST( 39 AS DECIMAL ) WHEN - 2 THEN NULL END * + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1365
SELECT + CASE COALESCE ( MAX ( ( + - 74 ) ), ( 14 ) ) WHEN 95 + - 27 THEN CAST ( 39 AS REAL ) WHEN - 2 THEN NULL END * + 27 AS col2
----
NULL

query II rowsort
SELECT + - 0 AS col2, 34 AS col2
----
0
34

query II rowsort
SELECT 27 col0, 27 AS col1
----
27
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1368
SELECT ALL 51 DIV COUNT( * ) + + COALESCE ( + - 27, + ( CASE + 24 WHEN NULLIF ( - COUNT( * ), - 47 + 90 ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END ) * + COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL 51 / COUNT ( * ) + + COALESCE ( + - 27, + ( CASE + 24 WHEN NULLIF ( - COUNT ( * ), - 47 + 90 ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END ) * + COUNT ( * ) )
----
24

query I rowsort
SELECT + 24 * 61
----
1464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1370
SELECT - COUNT( * ) + - - ( - - 60 ) + + CASE - MAX( + CAST( NULL AS DECIMAL ) ) WHEN - 36 / COUNT( * ) THEN - 7 END * 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT - COUNT ( * ) + - - ( - - 60 ) + + CASE - MAX ( + CAST ( NULL AS REAL ) ) WHEN - 36 / COUNT ( * ) THEN - 7 END * 89 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1371
SELECT ALL + 46 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL + 46 / - 86
----
0

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

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

query I rowsort
SELECT + NULLIF ( 77, + 1 * + 23 + + 38 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT ALL - ( + ( + - 75 ) ) * - NULLIF ( - - SUM( DISTINCT - 28 ), - 62 ) * - 83 + 25 + 77 AS col2
----
-174198

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL - ( + ( + - 75 ) ) * - NULLIF ( - - SUM ( DISTINCT - 28 ), - 62 ) * - 83 + 25 + 77 AS col2
----
-174198

query I rowsort
SELECT + NULLIF ( 60, - + 48 )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1376
SELECT COUNT( 52 ) AS col1, - NULLIF ( + NULLIF ( - - 3, - 44 ), + 33 + ( + 75 + + 38 * 92 ) ) + 33 * - 44 AS col2
----
1
-1455

skipif mysql # not compatible
query II rowsort label-1376
SELECT COUNT ( 52 ) AS col1, - NULLIF ( + NULLIF ( - - 3, - 44 ), + 33 + ( + 75 + + 38 * 92 ) ) + 33 * - 44 AS col2
----
1
-1455

onlyif mysql # aggregate syntax: 
query II rowsort label-1377
SELECT ALL SUM( ALL 61 ) * + 84 * + 91 + + 22 AS col1, + ( ( - 85 ) )
----
466306
-85

skipif mysql # not compatible
query II rowsort label-1377
SELECT ALL SUM ( ALL 61 ) * + 84 * + 91 + + 22 AS col1, + ( ( - 85 ) )
----
466306
-85

query II rowsort
SELECT 84 * - 17 - 3 - 51 * - 58 col0, - 22 AS col0
----
1527
-22

query I rowsort
SELECT ALL + 57 + + ( + 72 ) AS col2
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1380
SELECT + 35 + - ( - - ( + - CASE - 41 WHEN CASE WHEN NOT NULL IS NULL THEN + CAST( COUNT( * ) AS SIGNED ) END THEN NULL WHEN 56 THEN NULL ELSE + 9 + 56 END ) ) + 49
----
149

skipif mysql # not compatible
query I rowsort label-1380
SELECT + 35 + - ( - - ( + - CASE - 41 WHEN CASE WHEN NOT NULL IS NULL THEN + CAST ( COUNT ( * ) AS INTEGER ) END THEN NULL WHEN 56 THEN NULL ELSE + 9 + 56 END ) ) + 49
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT DISTINCT NULLIF ( - - COUNT( * ), + 26 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT NULLIF ( - - COUNT ( * ), + 26 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT ALL NULLIF ( - 8, + + 47 * - MIN( ALL - 26 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL NULLIF ( - 8, + + 47 * - MIN ( ALL - 26 ) )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1384
SELECT ALL COUNT( + 19 ) AS col1, 18 + NULLIF ( + - 13, + MIN( 18 ) + 28 )
----
1
5

skipif mysql # not compatible
query II rowsort label-1384
SELECT ALL COUNT ( + 19 ) AS col1, 18 + NULLIF ( + - 13, + MIN ( 18 ) + 28 )
----
1
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1385
SELECT DISTINCT COUNT( ALL - 98 ) * - 19 * CAST( NULL AS SIGNED ) * + + 16 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT COUNT ( ALL - 98 ) * - 19 * CAST ( NULL AS INTEGER ) * + + 16 + + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 33 col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-1387
SELECT - - SUM( DISTINCT 78 ) AS col0, - 41 AS col1
----
78
-41

skipif mysql # not compatible
query II rowsort label-1387
SELECT - - SUM ( DISTINCT 78 ) AS col0, - 41 AS col1
----
78
-41

query I rowsort
SELECT - ( - COALESCE ( - 81, + 81 ) ) + + 26 AS col0
----
-55

query I rowsort
SELECT + + 27 * + 36
----
972

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

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL + CAST ( + 13 AS INTEGER ) AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1391
SELECT ALL - CASE - + 30 WHEN 20 THEN NULL WHEN + 83 THEN - CAST( NULL AS SIGNED ) * + + 65 + - CAST( MIN( 49 ) AS SIGNED ) - + 78 WHEN - 41 THEN NULL END * 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - CASE - + 30 WHEN 20 THEN NULL WHEN + 83 THEN - CAST ( NULL AS INTEGER ) * + + 65 + - CAST ( MIN ( 49 ) AS INTEGER ) - + 78 WHEN - 41 THEN NULL END * 96 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1393
SELECT ALL - COALESCE ( + 23, - 71 * 14 * CASE + 11 WHEN + 15 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 69 * + 69 + - COUNT( * ) THEN ( - 56 ) END + ( - 49 ) * COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL - COALESCE ( + 23, - 71 * 14 * CASE + 11 WHEN + 15 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 69 * + 69 + - COUNT ( * ) THEN ( - 56 ) END + ( - 49 ) * COUNT ( * ) )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1394
SELECT - 69 DIV - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1394
SELECT - 69 / - 88 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT + 38 DIV - ( + 89 )
----
0

skipif mysql # not compatible
query I rowsort label-1395
SELECT + 38 / - ( + 89 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1396
SELECT - ( + COUNT( * ) ) * - - 92 + + CASE + 83 WHEN + CAST( + 40 AS SIGNED ) THEN ( + 36 ) ELSE NULL END + + 70 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1396
SELECT - ( + COUNT ( * ) ) * - - 92 + + CASE + 83 WHEN + CAST ( + 40 AS INTEGER ) THEN ( + 36 ) ELSE NULL END + + 70 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1397
SELECT DISTINCT + 79 DIV + NULLIF ( + 6, - 93 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT + 79 / + NULLIF ( + 6, - 93 ) AS col2
----
13

query I rowsort
SELECT + + 40 + - 76
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT + CASE - 98 WHEN - COUNT( * ) * - 24 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT + CASE - 98 WHEN - COUNT ( * ) * - 24 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1400
SELECT ALL - 56 DIV - 90 DIV + - NULLIF ( + COUNT( * ), - - 21 ) + - - 22
----
22

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL - 56 / - 90 / + - NULLIF ( + COUNT ( * ), - - 21 ) + - - 22
----
22

query I rowsort
SELECT ALL + 71 * - 78 * + 16 + + 87 AS col1
----
-88521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1402
SELECT - - 63 * - CAST( + 1 AS SIGNED ) * - MIN( ALL + 27 ) + - + MIN( + + 80 ) AS col0
----
1621

skipif mysql # not compatible
query I rowsort label-1402
SELECT - - 63 * - CAST ( + 1 AS INTEGER ) * - MIN ( ALL + 27 ) + - + MIN ( + + 80 ) AS col0
----
1621

query I rowsort
SELECT + 18 + + 72
----
90

query I rowsort
SELECT + ( - - 15 ) col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT ALL + 82 * + 37 + - COUNT( ALL - - 94 ) AS col2
----
3033

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL + 82 * + 37 + - COUNT ( ALL - - 94 ) AS col2
----
3033

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL + COALESCE ( 64, + 73, COUNT( * ) * + - 51 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + COALESCE ( 64, + 73, COUNT ( * ) * + - 51 ) AS col1
----
64

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1408
SELECT + CAST( NULL AS SIGNED ) col0, - COUNT( * ) * 46 AS col0
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-1408
SELECT + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) * 46 AS col0
----
NULL
-46

query I rowsort
SELECT + 47 + - - 47
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1410
SELECT 88 * + 93 + + + 53 - + + CAST( NULL AS DECIMAL ) * + 4 * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1410
SELECT 88 * + 93 + + + 53 - + + CAST ( NULL AS REAL ) * + 4 * 87
----
NULL

query I rowsort
SELECT + 11 + 78
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1412
SELECT ALL 3 * 38 - - 3, ( + COUNT( * ) ) + 59 + 80 AS col2
----
117
140

skipif mysql # not compatible
query II rowsort label-1412
SELECT ALL 3 * 38 - - 3, ( + COUNT ( * ) ) + 59 + 80 AS col2
----
117
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT + 5 * - SUM( ALL 98 ) * 71 col1
----
-34790

skipif mysql # not compatible
query I rowsort label-1413
SELECT + 5 * - SUM ( ALL 98 ) * 71 col1
----
-34790

query I rowsort
SELECT ALL - 80 * - 98 * + + 29
----
227360

query I rowsort
SELECT ALL ( 9 )
----
9

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

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL COUNT ( DISTINCT + 27 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1417
SELECT - 79 col1, ( 60 ) * - 88 * COUNT( * ) + + + ( + MIN( ALL 61 ) ) - - 89
----
-79
-5130

skipif mysql # not compatible
query II rowsort label-1417
SELECT - 79 col1, ( 60 ) * - 88 * COUNT ( * ) + + + ( + MIN ( ALL 61 ) ) - - 89
----
-79
-5130

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT + 69 DIV + - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1418
SELECT + 69 / + - 84 AS col0
----
0

query I rowsort
SELECT ALL 81 * + 49
----
3969

query I rowsort
SELECT ALL + - 54 * + 78 + - - 66
----
-4146

query I rowsort
SELECT + 46 + + + 80 AS col1
----
126

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1423
SELECT + CASE - - 0 WHEN + COUNT( * ) * + 25 THEN NULL WHEN + + 31 * + COUNT( * ) DIV + + MAX( DISTINCT 52 ) THEN + 32 END + + 88
----
120

skipif mysql # not compatible
query I rowsort label-1423
SELECT + CASE - - 0 WHEN + COUNT ( * ) * + 25 THEN NULL WHEN + + 31 * + COUNT ( * ) / + + MAX ( DISTINCT 52 ) THEN + 32 END + + 88
----
120

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

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

query I rowsort
SELECT - 73 * + + 66
----
-4818

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

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

query I rowsort
SELECT 61 + + + 47 AS col0
----
108

query II rowsort
SELECT ALL 69, 36 AS col1
----
69
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT + 23 + - COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1429
SELECT + 23 + - COUNT ( * ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1430
SELECT ALL - + 86 + - MAX( - 87 ) + - 66 + - MIN( ALL - 78 ), 85 AS col2
----
13
85

skipif mysql # not compatible
query II rowsort label-1430
SELECT ALL - + 86 + - MAX ( - 87 ) + - 66 + - MIN ( ALL - 78 ), 85 AS col2
----
13
85

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

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

query II rowsort
SELECT DISTINCT - - 61 * + 66 * + + 16, - 41 + - - 94 AS col1
----
64416
53

query I rowsort
SELECT ALL + 58 + - + 53
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1434
SELECT DISTINCT + - 48 + CASE + CAST( + COALESCE ( + - 20, - 28 * + AVG ( + - 92 ), + 41 ) AS DECIMAL ) WHEN + COUNT( * ) / 35 + + 34 THEN NULL WHEN + 54 THEN ( 93 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT + - 48 + CASE + CAST ( + COALESCE ( + - 20, - 28 * + AVG ( + - 92 ), + 41 ) AS REAL ) WHEN + COUNT ( * ) / 35 + + 34 THEN NULL WHEN + 54 THEN ( 93 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 32 + - 94 AS col2
----
-62

query I rowsort
SELECT ALL 55 + + - 37
----
18

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

skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT COUNT ( * ) + + 77 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL - SUM( - 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL - SUM ( - 84 ) AS col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT 39 DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1439
SELECT 39 / + 77 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1440
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + COUNT( * ) * - - 1 * + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - - 1 * + - 72
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1441
SELECT COUNT( * ) * - 98 DIV 14 * + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1441
SELECT COUNT ( * ) * - 98 / 14 * + COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1442
SELECT ALL COALESCE ( - 32, + 0 ) DIV + + ( - 3 ) DIV - + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL COALESCE ( - 32, + 0 ) / + + ( - 3 ) / - + COUNT ( * )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT 29 DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1443
SELECT 29 / 93 AS col2
----
0

query I rowsort
SELECT ALL 23 - + 24 + - 39 AS col2
----
-40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT DISTINCT 41 * 19 DIV 43 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT 41 * 19 / 43 AS col2
----
18

query I rowsort
SELECT ALL 75 * - 86 AS col1
----
-6450

query I rowsort
SELECT 54 - - - ( - COALESCE ( + + CASE + - ( + - 66 ) WHEN - + 44 * - 11 THEN - - 29 WHEN 64 * - 26 THEN NULL ELSE NULL END, - 18 * + 63 - - 34 ) ) AS col2
----
-1046

query I rowsort
SELECT 89 * - - 63 AS col1
----
5607

query II rowsort
SELECT 76 + + 70, 85 AS col0
----
146
85

onlyif mysql # DIV for integer division: 
query I rowsort label-1451
SELECT 6 DIV - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1451
SELECT 6 / - 30 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT ( - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 14 + - + 90
----
-76

query I rowsort
SELECT + ( 40 ) - - - ( 97 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1455
SELECT ALL + 45 DIV - COUNT( * ), + ( + CASE CAST( + 6 AS SIGNED ) WHEN + ( 39 ) THEN NULL WHEN + 92 - 49 THEN + COALESCE ( 36, + 21 * CAST( NULL AS SIGNED ), AVG ( ALL 87 ) ) ELSE NULL END ) * - 49 AS col0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-1455
SELECT ALL + 45 / - COUNT ( * ), + ( + CASE CAST ( + 6 AS INTEGER ) WHEN + ( 39 ) THEN NULL WHEN + 92 - 49 THEN + COALESCE ( 36, + 21 * CAST ( NULL AS INTEGER ), AVG ( ALL 87 ) ) ELSE NULL END ) * - 49 AS col0
----
-45
NULL

query I rowsort
SELECT DISTINCT 72 * - 23 - + 70
----
-1726

query I rowsort
SELECT ALL 77 + - 50 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1458
SELECT - 60 / - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT - 60 / - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 12 + + 65 AS col0
----
77

query I rowsort
SELECT + 96 - + - 17 + + 42
----
155

query I rowsort
SELECT ALL - ( 36 ) AS col1
----
-36

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1464
SELECT ALL - NULLIF ( ( - + 69 ), CAST( - 50 AS SIGNED ) / - - CASE ( + 43 ) WHEN + - 57 * 68 - 39 THEN NULL WHEN - COALESCE ( - 70, + 73 + 80 ) THEN 20 ELSE - 9 - 84 END / SUM( 9 ) + + 55 ) * - 66 AS col1
----
-4554

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL - NULLIF ( ( - + 69 ), CAST ( - 50 AS INTEGER ) / - - CASE ( + 43 ) WHEN + - 57 * 68 - 39 THEN NULL WHEN - COALESCE ( - 70, + 73 + 80 ) THEN 20 ELSE - 9 - 84 END / SUM ( 9 ) + + 55 ) * - 66 AS col1
----
-4554

query I rowsort
SELECT 55 - + 58 * + 6 AS col2
----
-293

query I rowsort
SELECT 68 * - 3 AS col0
----
-204

query I rowsort
SELECT ALL + 98 * + NULLIF ( 96, - + 68 / 88 + - 41 ) AS col0
----
9408

query I rowsort
SELECT 39 + - 59
----
-20

query I rowsort
SELECT ALL + 25 * + ( - NULLIF ( - 67, - COALESCE ( 30, + 42 ) ) ) AS col1
----
1675

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT DISTINCT + NULLIF ( - COUNT( * ), - - 44 + - NULLIF ( + CASE 12 WHEN 6 * + + 56 THEN COUNT( * ) / - - 72 + 26 ELSE NULL END, + 70 ) + - 19 ) * 44
----
-44

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT + NULLIF ( - COUNT ( * ), - - 44 + - NULLIF ( + CASE 12 WHEN 6 * + + 56 THEN COUNT ( * ) / - - 72 + 26 ELSE NULL END, + 70 ) + - 19 ) * 44
----
-44

query I rowsort
SELECT 58 * - - 29
----
1682

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT + 82 * + COUNT( * ) * + + NULLIF ( 4, 59 * 53 + + + COUNT( * ) + - 46 - + ( - ( + 8 ) ) ) + 47 col2
----
375

skipif mysql # not compatible
query I rowsort label-1472
SELECT + 82 * + COUNT ( * ) * + + NULLIF ( 4, 59 * 53 + + + COUNT ( * ) + - 46 - + ( - ( + 8 ) ) ) + 47 col2
----
375

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT ALL 93 / - NULLIF ( - 17, - 60 * + 10 ) * CASE 66 WHEN + - 41 + - 69 THEN + 53 + ( 74 + + ( COUNT( * ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL 93 / - NULLIF ( - 17, - 60 * + 10 ) * CASE 66 WHEN + - 41 + - 69 THEN + 53 + ( 74 + + ( COUNT ( * ) ) ) END
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 23, + - 58 - 9 ) AS col1
----
-23

query I rowsort
SELECT 45 * + + 71 AS col1
----
3195

query I rowsort
SELECT 80 * + + 38 AS col1
----
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT MAX( DISTINCT 42 ) + + 49 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1477
SELECT MAX ( DISTINCT 42 ) + + 49 AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT ALL + 62 DIV + 20 col1
----
3

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + 62 / + 20 col1
----
3

query I rowsort
SELECT 35 * 43 + + 86
----
1591

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT DISTINCT + 45 DIV - 53 * + ( + - 87 )
----
0

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT + 45 / - 53 * + ( + - 87 )
----
0

query I rowsort
SELECT 70 * 38 AS col0
----
2660

query I rowsort
SELECT DISTINCT 76 * - 6
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT DISTINCT - COALESCE ( - 46, - - SUM( ALL 17 ) ) + + 47 * - 44 + - - 80
----
-1942

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT - COALESCE ( - 46, - - SUM ( ALL 17 ) ) + + 47 * - 44 + - - 80
----
-1942

query I rowsort
SELECT ALL + ( - - 92 ) + 44 AS col1
----
136

query I rowsort
SELECT ALL + + NULLIF ( - 17, - 42 ) AS col0
----
-17

query I rowsort
SELECT ALL - 85 + - ( 17 )
----
-102

query II rowsort
SELECT - + 98 col1, 40 AS col0
----
-98
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT DISTINCT 47 + - 11 + - + 61 * 27 * ( + 6 ) * + COUNT( * ) + 5 AS col2
----
-9841

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT 47 + - 11 + - + 61 * 27 * ( + 6 ) * + COUNT ( * ) + 5 AS col2
----
-9841

onlyif mysql # DIV for integer division: 
query I rowsort label-1489
SELECT ALL 61 + + 7 DIV + 87 + - 23 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL 61 + + 7 / + 87 + - 23 AS col2
----
38

query I rowsort
SELECT ALL 65 + 44 + + 30 * 53 + + 69
----
1768

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

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

query I rowsort
SELECT + 18 * 60 AS col1
----
1080

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1493
SELECT DISTINCT + 95 AS col0, - CAST( - - ( 89 ) AS SIGNED ) * + + 17 + + + 48 + - 39 DIV 36 AS col1
----
95
-1466

skipif mysql # not compatible
query II rowsort label-1493
SELECT DISTINCT + 95 AS col0, - CAST ( - - ( 89 ) AS INTEGER ) * + + 17 + + + 48 + - 39 / 36 AS col1
----
95
-1466

query I rowsort
SELECT ALL - + 40 + 71 AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1495
SELECT DISTINCT COUNT( * ) DIV - SUM( + - 60 ) DIV - - NULLIF ( - 12, + MIN( 99 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT COUNT ( * ) / - SUM ( + - 60 ) / - - NULLIF ( - 12, + MIN ( 99 ) )
----
0

query I rowsort
SELECT ALL + 42 + 88 col2
----
130

query I rowsort
SELECT ALL - 83 + + 34 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT + - 78 * COUNT( * ) + + COUNT( * ) * ( - 79 ) AS col1
----
-157

skipif mysql # not compatible
query I rowsort label-1498
SELECT + - 78 * COUNT ( * ) + + COUNT ( * ) * ( - 79 ) AS col1
----
-157

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

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

query I rowsort
SELECT DISTINCT - 39 * + 60 AS col2
----
-2340

query I rowsort
SELECT ALL 77 - - - 26 AS col1
----
51

query I rowsort
SELECT + 21 * 22 AS col2
----
462

query II rowsort
SELECT 68 AS col1, + 71
----
68
71

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

skipif mysql # not compatible
query I rowsort label-1504
SELECT - NULLIF ( - + COUNT ( * ), + NULLIF ( - CAST ( NULL AS INTEGER ), - 28 * - - COUNT ( * ) + COUNT ( * ) * + - COUNT ( * ) + + COUNT ( * ) ) )
----
1

query I rowsort
SELECT DISTINCT 47 - + - 57 AS col1
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-1506
SELECT ALL 96 AS col2, - 41 * + - COUNT( * ) AS col0
----
96
41

skipif mysql # not compatible
query II rowsort label-1506
SELECT ALL 96 AS col2, - 41 * + - COUNT ( * ) AS col0
----
96
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT DISTINCT MAX( - 69 ) - 23
----
-92

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT MAX ( - 69 ) - 23
----
-92

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1514
SELECT + 19 AS col1, + NULLIF ( - - COALESCE ( 73, + ( + + 47 ), + MAX( 7 ) ), + ( + 87 ) ) AS col0
----
19
73

skipif mysql # not compatible
query II rowsort label-1514
SELECT + 19 AS col1, + NULLIF ( - - COALESCE ( 73, + ( + + 47 ), + MAX ( 7 ) ), + ( + 87 ) ) AS col0
----
19
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT - NULLIF ( + - ( 27 ), - 1 ) * 28 + + COUNT( * ) AS col0
----
757

skipif mysql # not compatible
query I rowsort label-1515
SELECT - NULLIF ( + - ( 27 ), - 1 ) * 28 + + COUNT ( * ) AS col0
----
757

query I rowsort
SELECT ( - - 10 )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1517
SELECT - NULLIF ( ( - 50 ), + + 85 - - - 20 - + 14 + + 84 * - 17 + + NULLIF ( 18, - + 8 * 5 ) * - 53 ) DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-1517
SELECT - NULLIF ( ( - 50 ), + + 85 - - - 20 - + 14 + + 84 * - 17 + + NULLIF ( 18, - + 8 * 5 ) * - 53 ) / 49
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1518
SELECT DISTINCT 15 * - CAST( NULL AS SIGNED ) + + 25
----
NULL

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

query II rowsort
SELECT DISTINCT 63 * - NULLIF ( - 31, + 50 ), - 80 AS col1
----
1953
-80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ALL + COUNT( * ) * COALESCE ( 56, + 92, - 0 * - + 48 ) + - ( + 75 ) * - - 41 + - 69 AS col1
----
-3088

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL + COUNT ( * ) * COALESCE ( 56, + 92, - 0 * - + 48 ) + - ( + 75 ) * - - 41 + - 69 AS col1
----
-3088

query I rowsort
SELECT ALL + 59 * - 17
----
-1003

query I rowsort
SELECT ALL 92 * - 97 * 23 + - 23 AS col2
----
-205275

query I rowsort
SELECT ALL + - 92 AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1525
SELECT ALL 80 * - - 81 * + ( + 69 ) * + 23 + + 23 / - + ( - ( - ( + CAST( NULL AS SIGNED ) ) ) ) + 84 + 2 * + COALESCE ( 26 * - 96 + - 95, COALESCE ( + 6, - 49 / COUNT( * ), 45 + + MAX( ALL + 68 + 68 ) * ( 88 * + 20 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL 80 * - - 81 * + ( + 69 ) * + 23 + + 23 / - + ( - ( - ( + CAST ( NULL AS INTEGER ) ) ) ) + 84 + 2 * + COALESCE ( 26 * - 96 + - 95, COALESCE ( + 6, - 49 / COUNT ( * ), 45 + + MAX ( ALL + 68 + 68 ) * ( 88 * + 20 ) ) ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1526
SELECT - COUNT ( * ) * 74
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT SUM( - - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-1527
SELECT SUM ( - - 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - 80 * - + COUNT( * ) * - - 38
----
3040

skipif mysql # not compatible
query I rowsort label-1528
SELECT - 80 * - + COUNT ( * ) * - - 38
----
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT - 19 + - 4 * - COUNT( * ) + - COUNT( - + 30 ) + + 78 + 22 / + 11 - CASE - - 99 WHEN + - 4 + - 86 THEN NULL WHEN 65 THEN 56 + + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT - 19 + - 4 * - COUNT ( * ) + - COUNT ( - + 30 ) + + 78 + 22 / + 11 - CASE - - 99 WHEN + - 4 + - 86 THEN NULL WHEN 65 THEN 56 + + 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT + COALESCE ( - 12, + 60, + COALESCE ( - 3, + + 18 ) * + 11 * - COUNT( * ) ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-1530
SELECT + COALESCE ( - 12, + 60, + COALESCE ( - 3, + + 18 ) * + 11 * - COUNT ( * ) ) col2
----
-12

query I rowsort
SELECT - - 73 + + 42 AS col0
----
115

query I rowsort
SELECT + + 68 * + - 99 - - 78 * - + 10
----
-7512

query II rowsort
SELECT 89 AS col1, ( - 20 )
----
89
-20

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1535
SELECT ALL - 61 * + - 10 * + - COUNT( * ) * + CAST( NULL AS DECIMAL ) + + COUNT( * ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - 61 * + - 10 * + - COUNT ( * ) * + CAST ( NULL AS REAL ) + + COUNT ( * ) * 23
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL + - 87 * - + ( + 4 ) * + 64 * - 44 - + COUNT( DISTINCT - 70 )
----
-979969

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + - 87 * - + ( + 4 ) * + 64 * - 44 - + COUNT ( DISTINCT - 70 )
----
-979969

query II rowsort
SELECT DISTINCT + 54 * - 13 AS col2, 63
----
-702
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1539
SELECT DISTINCT + 43 * - COUNT( * ) + + 77 * - + 63 AS col0, 37
----
-4894
37

skipif mysql # not compatible
query II rowsort label-1539
SELECT DISTINCT + 43 * - COUNT ( * ) + + 77 * - + 63 AS col0, 37
----
-4894
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT COALESCE ( 74, - 13 + + COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-1540
SELECT COALESCE ( 74, - 13 + + COUNT ( * ) )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT ALL + - 75 * - COUNT( * ) * 10
----
750

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL + - 75 * - COUNT ( * ) * 10
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT - - COUNT( * ) - - 64 + - - 64 * COUNT( * ) * - + 99
----
-6271

skipif mysql # not compatible
query I rowsort label-1542
SELECT - - COUNT ( * ) - - 64 + - - 64 * COUNT ( * ) * - + 99
----
-6271

onlyif mysql # aggregate syntax: 
query II rowsort label-1543
SELECT - 49 + - MIN( ALL 27 ) + 71 + + + 0 * 67 AS col1, + 81 * - - 85 AS col0
----
-5
6885

skipif mysql # not compatible
query II rowsort label-1543
SELECT - 49 + - MIN ( ALL 27 ) + 71 + + + 0 * 67 AS col1, + 81 * - - 85 AS col0
----
-5
6885

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

skipif mysql # not compatible
query I rowsort label-1544
SELECT + + 66 * CAST ( NULL AS INTEGER ) * + 64
----
NULL

query I rowsort
SELECT ALL ( - - 73 ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1546
SELECT - CASE + 28 WHEN - + 82 * 2 * - COALESCE ( - + 32, - CAST( NULL AS DECIMAL ) * + COUNT( * ) - + COUNT( - - 62 ) ) * - - 55 * 97 + ( + MAX( ALL 67 ) ) * - 3 + 41 THEN - 30 - - 32 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1546
SELECT - CASE + 28 WHEN - + 82 * 2 * - COALESCE ( - + 32, - CAST ( NULL AS REAL ) * + COUNT ( * ) - + COUNT ( - - 62 ) ) * - - 55 * 97 + ( + MAX ( ALL 67 ) ) * - 3 + 41 THEN - 30 - - 32 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1547
SELECT - 95 + - SUM( - + 78 ) + + - CAST( NULL AS SIGNED ) * - - 7 + + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT - 95 + - SUM ( - + 78 ) + + - CAST ( NULL AS INTEGER ) * - - 7 + + + 80
----
NULL

query I rowsort
SELECT - 53 * 8
----
-424

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

skipif mysql # not compatible
query I rowsort label-1549
SELECT + 58 * - COUNT ( - 27 ) AS col0
----
-58

query I rowsort
SELECT ALL 64 * + ( - 96 ) AS col1
----
-6144

query I rowsort
SELECT + 70 + 46
----
116

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1552
SELECT + CASE + 32 WHEN - + ( NULLIF ( - 37, + CAST( NULL AS DECIMAL ) + + 99 ) ) + + + MIN( ALL + 88 ) THEN NULL ELSE + + 80 DIV 68 END - 70 DIV - ( + 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1552
SELECT + CASE + 32 WHEN - + ( NULLIF ( - 37, + CAST ( NULL AS REAL ) + + 99 ) ) + + + MIN ( ALL + 88 ) THEN NULL ELSE + + 80 / 68 END - 70 / - ( + 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT DISTINCT 58 * + + SUM( DISTINCT + 87 ) col0
----
5046

skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT 58 * + + SUM ( DISTINCT + 87 ) col0
----
5046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT ALL 68 DIV + ( + 71 ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL 68 / + ( + 71 ) + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1555
SELECT 99 DIV - 16 + - - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-1555
SELECT 99 / - 16 + - - COUNT ( * )
----
-5

query I rowsort
SELECT CASE - 44 WHEN + 6 THEN - 77 * 10 ELSE NULL END + + 11 + - 28 col1
----
NULL

query I rowsort
SELECT DISTINCT 22 * - 67 * - 15 * + - 85 AS col2
----
-1879350

query I rowsort
SELECT DISTINCT 16 + - 21
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT MIN( ALL - 89 ) + 88
----
-1

skipif mysql # not compatible
query I rowsort label-1559
SELECT MIN ( ALL - 89 ) + 88
----
-1

query II rowsort
SELECT ALL + 57 + 0, 83 * - 88 + 0 + 2 AS col2
----
57
-7302

query I rowsort
SELECT + 73 * - + 40 AS col1
----
-2920

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL + + COUNT( * ) * - - COUNT( * ) * + - NULLIF ( - 85, - 71 )
----
85

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL + + COUNT ( * ) * - - COUNT ( * ) * + - NULLIF ( - 85, - 71 )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1563
SELECT ( 25 ) * - 3 * + + 47 + + COUNT( * ) DIV 93 + ( + 75 ) * + 72 AS col2
----
1875

skipif mysql # not compatible
query I rowsort label-1563
SELECT ( 25 ) * - 3 * + + 47 + + COUNT ( * ) / 93 + ( + 75 ) * + 72 AS col2
----
1875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1564
SELECT DISTINCT - 33 * - ( - CASE 26 WHEN 80 - - COUNT( DISTINCT + + CAST( - - 19 AS SIGNED ) ) / + CAST( + - CASE 83 WHEN + 71 THEN - 21 END AS SIGNED ) + AVG ( ALL 57 + 70 ) THEN 25 WHEN SUM( ALL - 29 ) * 12 THEN NULL ELSE - MIN( ALL + 89 ) END ) AS col1
----
2937

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT - 33 * - ( - CASE 26 WHEN 80 - - COUNT ( DISTINCT + + CAST ( - - 19 AS INTEGER ) ) / + CAST ( + - CASE 83 WHEN + 71 THEN - 21 END AS INTEGER ) + AVG ( ALL 57 + 70 ) THEN 25 WHEN SUM ( ALL - 29 ) * 12 THEN NULL ELSE - MIN ( ALL + 89 ) END ) AS col1
----
2937

onlyif mysql # aggregate syntax: 
query II rowsort label-1565
SELECT ( + - ( - + ( + COUNT( ALL + 91 ) ) ) ) AS col2, + 76 AS col1
----
1
76

skipif mysql # not compatible
query II rowsort label-1565
SELECT ( + - ( - + ( + COUNT ( ALL + 91 ) ) ) ) AS col2, + 76 AS col1
----
1
76

query I rowsort
SELECT ALL - + 52 - 97
----
-149

query I rowsort
SELECT ALL 9 * 88 * - 60
----
-47520

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

query I rowsort
SELECT DISTINCT - + 88 AS col1
----
-88

query I rowsort
SELECT DISTINCT - - 85 * - + 18 * - 80 + - 24 col0
----
122376

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT + 6 * + - 80 + + - COUNT( * )
----
-481

skipif mysql # not compatible
query I rowsort label-1571
SELECT + 6 * + - 80 + + - COUNT ( * )
----
-481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1572
SELECT 30 * - CAST( + - 40 AS SIGNED )
----
1200

skipif mysql # not compatible
query I rowsort label-1572
SELECT 30 * - CAST ( + - 40 AS INTEGER )
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT - ( + COUNT( * ) ) + - 56
----
-57

skipif mysql # not compatible
query I rowsort label-1573
SELECT - ( + COUNT ( * ) ) + - 56
----
-57

query I rowsort
SELECT 9 + 44 * - + 49 AS col2
----
-2147

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT - COUNT( * ) - 56 - - + 0 + - 27 * - 38 * - 13 + - - 95 AS col2
----
-13300

skipif mysql # not compatible
query I rowsort label-1575
SELECT - COUNT ( * ) - 56 - - + 0 + - 27 * - 38 * - 13 + - - 95 AS col2
----
-13300

query I rowsort
SELECT ( - 57 ) * - + 50
----
2850

query I rowsort
SELECT 55 + + - 4 AS col2
----
51

query I rowsort
SELECT ALL 77 * + - 61 AS col1
----
-4697

query I rowsort
SELECT ALL + 94 * - 21 AS col2
----
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT 90 + + COUNT( * ) * + 23 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-1580
SELECT 90 + + COUNT ( * ) * + 23 AS col1
----
113

query II rowsort
SELECT 69 AS col1, - 79
----
69
-79

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

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL 17 + + COUNT ( * ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT DISTINCT 76 + - MIN( DISTINCT - 13 )
----
89

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT 76 + - MIN ( DISTINCT - 13 )
----
89

query I rowsort
SELECT ALL - 76 * - - 67 AS col2
----
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ALL 11 + - + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL 11 + - + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1586
SELECT - 17 AS col1, - 92 * - COUNT( * ) + - ( + 19 )
----
-17
73

skipif mysql # not compatible
query II rowsort label-1586
SELECT - 17 AS col1, - 92 * - COUNT ( * ) + - ( + 19 )
----
-17
73

query II rowsort
SELECT DISTINCT - 15, + 33 AS col2
----
-15
33

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

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

query II rowsort
SELECT 63, 25 AS col0
----
63
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT 99 * + + COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1590
SELECT 99 * + + COUNT ( * ) AS col2
----
99

query I rowsort
SELECT ALL 75 + - + 72 + 10 + + 37 * - 6
----
-209

query I rowsort
SELECT ( - 95 ) * + 25 * - 87
----
206625

query II rowsort
SELECT + 83, 78 * - 92 AS col2
----
83
-7176

query I rowsort
SELECT 96 * - + 88 + - 18 * + - 9 col2
----
-8286

onlyif mysql # aggregate syntax: 
query II rowsort label-1595
SELECT ALL + 37 * - 54 + 9 col2, 9 + + ( - + 44 ) + - + ( + 40 ) + COUNT( * )
----
-1989
-74

skipif mysql # not compatible
query II rowsort label-1595
SELECT ALL + 37 * - 54 + 9 col2, 9 + + ( - + 44 ) + - + ( + 40 ) + COUNT ( * )
----
-1989
-74

query I rowsort
SELECT DISTINCT + 79 - - 89 AS col1
----
168

query I rowsort
SELECT ALL 54 - - 39
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL + 85 - + MAX( + - 4 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL + 85 - + MAX ( + - 4 ) AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1600
SELECT 45 * + CAST( - 10 AS SIGNED ) / - CAST( NULL AS SIGNED ) + + + 33 + - 29 * + CAST( + 26 AS SIGNED ) * - 53 / + - 18 + - CAST( NULL AS SIGNED ) * - + 91 + + 30 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1600
SELECT 45 * + CAST ( - 10 AS INTEGER ) / - CAST ( NULL AS INTEGER ) + + + 33 + - 29 * + CAST ( + 26 AS INTEGER ) * - 53 / + - 18 + - CAST ( NULL AS INTEGER ) * - + 91 + + 30 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1601
SELECT ( 24 ) + 80 + + MAX( DISTINCT NULLIF ( 65, ( - - 83 ) DIV + 59 * - 56 - 50 ) ) - - 54 + 2 DIV 33
----
223

skipif mysql # not compatible
query I rowsort label-1601
SELECT ( 24 ) + 80 + + MAX ( DISTINCT NULLIF ( 65, ( - - 83 ) / + 59 * - 56 - 50 ) ) - - 54 + 2 / 33
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1602
SELECT + 79 AS col0, - 78 * + CAST( NULL AS SIGNED ) * - + 56 AS col0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-1602
SELECT + 79 AS col0, - 78 * + CAST ( NULL AS INTEGER ) * - + 56 AS col0
----
79
NULL

query I rowsort
SELECT 93 + - 11
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1604
SELECT ALL - COUNT( * ) AS col1, + 95
----
-1
95

skipif mysql # not compatible
query II rowsort label-1604
SELECT ALL - COUNT ( * ) AS col1, + 95
----
-1
95

query I rowsort
SELECT DISTINCT 28 * 35
----
980

query II rowsort
SELECT 64 * + 81 * - - 6 * - 53, + 80 col0
----
-1648512
80

query I rowsort
SELECT DISTINCT 89 + + 60 AS col2
----
149

query I rowsort
SELECT - NULLIF ( - 52, + + 99 + - 92 ) AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT 83 DIV 53 * + 94
----
94

skipif mysql # not compatible
query I rowsort label-1609
SELECT 83 / 53 * + 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT ALL - 35 + + NULLIF ( - 80, + SUM( ALL 19 ) ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL - 35 + + NULLIF ( - 80, + SUM ( ALL 19 ) ) AS col1
----
-115

query I rowsort
SELECT 54 + 66 * 40
----
2694

query I rowsort
SELECT DISTINCT - 63 + - 19 * 71
----
-1412

query I rowsort
SELECT ALL + 99 + 72 AS col2
----
171

query I rowsort
SELECT ALL NULLIF ( 66, + + 42 * + + ( - 72 ) ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT - ( MAX( DISTINCT - 93 ) ) - + 96 + - COALESCE ( - 10, 48, + + 65 ) * 82
----
817

skipif mysql # not compatible
query I rowsort label-1615
SELECT - ( MAX ( DISTINCT - 93 ) ) - + 96 + - COALESCE ( - 10, 48, + + 65 ) * 82
----
817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1616
SELECT ALL + 0 + + - 4 + - 29 + - ( - MIN( DISTINCT 26 ) ) DIV + 1 + 92 * 14
----
1281

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL + 0 + + - 4 + - 29 + - ( - MIN ( DISTINCT 26 ) ) / + 1 + 92 * 14
----
1281

query I rowsort
SELECT ALL - 45 * + 68
----
-3060

query I rowsort
SELECT - 57 + 81 + - 37 AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1619
SELECT DISTINCT - COUNT( * ) * + 3 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT - COUNT ( * ) * + 3 / - 61
----
0

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

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL + ( - - CAST ( 72 AS INTEGER ) ) AS col1
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-1621
SELECT + 27 DIV - + 86 * - 14 + + 10 AS col1, - 29 * 30 + - + 44 AS col1
----
10
-914

skipif mysql # not compatible
query II rowsort label-1621
SELECT + 27 / - + 86 * - 14 + + 10 AS col1, - 29 * 30 + - + 44 AS col1
----
10
-914

query I rowsort
SELECT - 40 * + - 16 - + 9 AS col2
----
631

query I rowsort
SELECT DISTINCT + - 60 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT DISTINCT - - 43 * + SUM( - 47 ) AS col2
----
-2021

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT - - 43 * + SUM ( - 47 ) AS col2
----
-2021

query I rowsort
SELECT - 13 * + 86 * - 87 AS col0
----
97266

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL ( + - SUM( ALL 11 ) ) * COUNT( * ) * - - ( + MAX( + 99 ) ) + + 93 - + NULLIF ( + 65, + 9 ) * + - 16 + + 11
----
55

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL ( + - SUM ( ALL 11 ) ) * COUNT ( * ) * - - ( + MAX ( + 99 ) ) + + 93 - + NULLIF ( + 65, + 9 ) * + - 16 + + 11
----
55

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

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

query I rowsort
SELECT 19 * + 3 + + 44 AS col0
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT ALL + 12 * 64 DIV 70 * + + 25 * + - 7 - - 11 + + COALESCE ( + + 25, - NULLIF ( - COUNT( * ), - - 92 * + 86 ), + 71 + SUM( - 80 ) ) - 48
----
-1762

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL + 12 * 64 / 70 * + + 25 * + - 7 - - 11 + + COALESCE ( + + 25, - NULLIF ( - COUNT ( * ), - - 92 * + 86 ), + 71 + SUM ( - 80 ) ) - 48
----
-1762

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT DISTINCT + 56 DIV 26 * - 10 * 87 + + - 63 + + 89 col1
----
-1714

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT + 56 / 26 * - 10 * 87 + + - 63 + + 89 col1
----
-1714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1631
SELECT + 58 DIV COALESCE ( + 3, - COUNT( * ) ) * 95 + + COUNT( * ) - MAX( DISTINCT - 47 ) + 67 * 16 * + 54 * - + MIN( 25 )
----
-1445347

skipif mysql # not compatible
query I rowsort label-1631
SELECT + 58 / COALESCE ( + 3, - COUNT ( * ) ) * 95 + + COUNT ( * ) - MAX ( DISTINCT - 47 ) + 67 * 16 * + 54 * - + MIN ( 25 )
----
-1445347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1632
SELECT ALL NULLIF ( + + 77, - MAX( 52 ) / + 77 ) * - COALESCE ( + 64, - 31 * - CAST( + - 28 AS SIGNED ) + + ( + + COUNT( * ) ) ) AS col1, - 20 AS col1
----
-4928
-20

skipif mysql # not compatible
query II rowsort label-1632
SELECT ALL NULLIF ( + + 77, - MAX ( 52 ) / + 77 ) * - COALESCE ( + 64, - 31 * - CAST ( + - 28 AS INTEGER ) + + ( + + COUNT ( * ) ) ) AS col1, - 20 AS col1
----
-4928
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT + MIN( 71 )
----
71

skipif mysql # not compatible
query I rowsort label-1633
SELECT + MIN ( 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT + COALESCE ( + - 62, - COUNT( ALL 92 ) ) * - MIN( ALL - + 56 ) AS col0
----
-3472

skipif mysql # not compatible
query I rowsort label-1634
SELECT + COALESCE ( + - 62, - COUNT ( ALL 92 ) ) * - MIN ( ALL - + 56 ) AS col0
----
-3472

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

skipif mysql # not compatible
query I rowsort label-1635
SELECT + - 68 / + - 97
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1636
SELECT ALL ( + COUNT( * ) ) * - 13 + 94, + 28 + ( + - 3 ) AS col0
----
81
25

skipif mysql # not compatible
query II rowsort label-1636
SELECT ALL ( + COUNT ( * ) ) * - 13 + 94, + 28 + ( + - 3 ) AS col0
----
81
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT 16 * + ( - MIN( - 9 ) ) AS col0
----
144

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT 16 * + ( - MIN ( - 9 ) ) AS col0
----
144

query I rowsort
SELECT + 60 + + 17
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT MAX( - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1639
SELECT MAX ( - 50 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT + 59 * + 15 * + COUNT( ALL - + 29 ) AS col1
----
885

skipif mysql # not compatible
query I rowsort label-1640
SELECT + 59 * + 15 * + COUNT ( ALL - + 29 ) AS col1
----
885

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

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

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

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

query I rowsort
SELECT ALL 41 + + + COALESCE ( 20, + 22, + - 20 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT + COALESCE ( - + 53, - SUM( DISTINCT + 27 ), COUNT( * ) + 36 * - - CASE + 92 WHEN - 19 + - - 79 * + 52 * 75 THEN - 29 WHEN 54 THEN NULL END ) + - 48 + - 31 * + 83
----
-2674

skipif mysql # not compatible
query I rowsort label-1644
SELECT + COALESCE ( - + 53, - SUM ( DISTINCT + 27 ), COUNT ( * ) + 36 * - - CASE + 92 WHEN - 19 + - - 79 * + 52 * 75 THEN - 29 WHEN 54 THEN NULL END ) + - 48 + - 31 * + 83
----
-2674

query I rowsort
SELECT + 6 - - + 59 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1646
SELECT + COUNT( * ) + MAX( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1646
SELECT + COUNT ( * ) + MAX ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 35 + 48
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-1648
SELECT ALL COUNT( * ), + ( 84 ) * + + 77 * + 79 * + + 7 * - - 78 + + 90 AS col2
----
1
278990802

skipif mysql # not compatible
query II rowsort label-1648
SELECT ALL COUNT ( * ), + ( 84 ) * + + 77 * + 79 * + + 7 * - - 78 + + 90 AS col2
----
1
278990802

query I rowsort
SELECT ALL 5 + - 74 AS col1
----
-69

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

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

query II rowsort
SELECT DISTINCT COALESCE ( 21, + CASE - 65 WHEN + 60 THEN NULL WHEN - 93 + - + 71 THEN NULL WHEN - - 83 THEN + 10 ELSE 74 END ) AS col1, 21 AS col0
----
21
21

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1653
SELECT - 69 + - MIN( ALL + CAST( ( - - 89 ) AS SIGNED ) )
----
-158

skipif mysql # not compatible
query I rowsort label-1653
SELECT - 69 + - MIN ( ALL + CAST ( ( - - 89 ) AS INTEGER ) )
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1654
SELECT + CASE 4 WHEN - 76 + + + COUNT( DISTINCT - + 4 ) + - 10 THEN CAST( NULL AS SIGNED ) - + 88 * + + 80 END / - ( - 51 ), + 10 + - 28 AS col2
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-1654
SELECT + CASE 4 WHEN - 76 + + + COUNT ( DISTINCT - + 4 ) + - 10 THEN CAST ( NULL AS INTEGER ) - + 88 * + + 80 END / - ( - 51 ), + 10 + - 28 AS col2
----
NULL
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL COALESCE ( + COALESCE ( 29, 8 ), - 60 * 63 + - + CASE - - 37 WHEN + 61 + COUNT( * ) + + 98 * - 63 / + 49 + 15 + - 75 * 14 / 52 THEN NULL ELSE 48 * 78 + - COUNT( DISTINCT 19 ) END, - 16 )
----
29

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL COALESCE ( + COALESCE ( 29, 8 ), - 60 * 63 + - + CASE - - 37 WHEN + 61 + COUNT ( * ) + + 98 * - 63 / + 49 + 15 + - 75 * 14 / 52 THEN NULL ELSE 48 * 78 + - COUNT ( DISTINCT 19 ) END, - 16 )
----
29

query I rowsort
SELECT - 98 * 20 AS col2
----
-1960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1657
SELECT ALL + 69 - - - 93 - - 93 DIV + - COALESCE ( + COALESCE ( + 34, - - 21 ), COUNT( * ) * + AVG ( - - 99 ) * + 28 + - 19 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL + 69 - - - 93 - - 93 / + - COALESCE ( + COALESCE ( + 34, - - 21 ), COUNT ( * ) * + AVG ( - - 99 ) * + 28 + - 19 ) AS col0
----
-26

query I rowsort
SELECT ALL ( - 91 )
----
-91

query I rowsort
SELECT - 92 * - + 33 AS col1
----
3036

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

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

query II rowsort
SELECT ALL + - 45 * + + 30 + 57 AS col1, ( - 95 ) * - 33
----
-1293
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT ALL - MIN( DISTINCT + + 35 ) * + 55 AS col0
----
-1925

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL - MIN ( DISTINCT + + 35 ) * + 55 AS col0
----
-1925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1663
SELECT - CAST( + CAST( + CASE 13 WHEN - - 12 THEN - COUNT( * ) * 1 * NULLIF ( 78, 91 + + 97 ) ELSE + COUNT( * ) END AS SIGNED ) AS SIGNED ) * + 94 * - 79 + + 34 AS col2
----
7460

skipif mysql # not compatible
query I rowsort label-1663
SELECT - CAST ( + CAST ( + CASE 13 WHEN - - 12 THEN - COUNT ( * ) * 1 * NULLIF ( 78, 91 + + 97 ) ELSE + COUNT ( * ) END AS INTEGER ) AS INTEGER ) * + 94 * - 79 + + 34 AS col2
----
7460

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1665
SELECT 63 DIV 85 * 53 * + - 76 + - - 19 + 63 - - ( 90 ), + 49 AS col2
----
172
49

skipif mysql # not compatible
query II rowsort label-1665
SELECT 63 / 85 * 53 * + - 76 + - - 19 + 63 - - ( 90 ), + 49 AS col2
----
172
49

query I rowsort
SELECT ALL + - 66 * 84
----
-5544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1667
SELECT - + CAST( + ( - 68 ) AS SIGNED ) - + 73 * - ( - 98 ), + 3 AS col0
----
-7086
3

skipif mysql # not compatible
query II rowsort label-1667
SELECT - + CAST ( + ( - 68 ) AS INTEGER ) - + 73 * - ( - 98 ), + 3 AS col0
----
-7086
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1668
SELECT DISTINCT - + 6 / - 35 + 20 + - 14 / + 10 + + CASE + ( SUM( DISTINCT + 83 ) ) WHEN - 49 THEN NULL WHEN + SUM( ALL + CAST( NULL AS SIGNED ) ) * COUNT( * ) THEN - CAST( + 7 AS DECIMAL ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT - + 6 / - 35 + 20 + - 14 / + 10 + + CASE + ( SUM ( DISTINCT + 83 ) ) WHEN - 49 THEN NULL WHEN + SUM ( ALL + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) THEN - CAST ( + 7 AS REAL ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1669
SELECT ALL + - 40 DIV - + 12 DIV COUNT( * ) + + 37 + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + - 40 / - + 12 / COUNT ( * ) + + 37 + + COUNT ( * )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1670
SELECT - + ( - 47 ) * - MIN( ALL - + 82 ) + + 97 DIV + COUNT( * ) + 6 AS col2
----
3957

skipif mysql # not compatible
query I rowsort label-1670
SELECT - + ( - 47 ) * - MIN ( ALL - + 82 ) + + 97 / + COUNT ( * ) + 6 AS col2
----
3957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1671
SELECT + 49 - - CAST( NULL AS SIGNED ) * 34 * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1671
SELECT + 49 - - CAST ( NULL AS INTEGER ) * 34 * + 83
----
NULL

query I rowsort
SELECT DISTINCT - 56 * + 95 * ( 46 ) + + 26 - + - 54 AS col2
----
-244640

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

query I rowsort
SELECT ALL 40 * 58 + 66
----
2386

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ( - 84 ) * - NULLIF ( - 51, - 68 * + 44 + SUM( ALL + 81 ) + - COUNT( + - 2 ) + ( 46 ) + - 34 / 81 ) * - + 62 AS col0
----
265608

skipif mysql # not compatible
query I rowsort label-1675
SELECT ( - 84 ) * - NULLIF ( - 51, - 68 * + 44 + SUM ( ALL + 81 ) + - COUNT ( + - 2 ) + ( 46 ) + - 34 / 81 ) * - + 62 AS col0
----
265608

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT 47 AS col2, 71 * + + COUNT( * ) + - COUNT( * )
----
47
70

skipif mysql # not compatible
query II rowsort label-1676
SELECT 47 AS col2, 71 * + + COUNT ( * ) + - COUNT ( * )
----
47
70

query I rowsort
SELECT 67 + + 73 col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ( + 55 ) * COUNT( DISTINCT - 72 )
----
55

skipif mysql # not compatible
query I rowsort label-1678
SELECT ( + 55 ) * COUNT ( DISTINCT - 72 )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT 89 DIV - ( + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-1679
SELECT 89 / - ( + 80 )
----
-1

query I rowsort
SELECT DISTINCT 99 - 98 * - 8 AS col1
----
883

query I rowsort
SELECT ALL 58 * + 28 col0
----
1624

query II rowsort
SELECT - 57 col1, 57 - + + 73 * - - 61
----
-57
-4396

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT 2 + + 3 - - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-1683
SELECT 2 + + 3 - - COUNT ( * )
----
6

query II rowsort
SELECT - 10 AS col1, 9 + + 37 AS col2
----
-10
46

query I rowsort
SELECT 79 - - - 37
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ( ( + 86 ) ) * - COUNT( * ) * MAX( - 46 ) AS col2
----
3956

skipif mysql # not compatible
query I rowsort label-1686
SELECT ( ( + 86 ) ) * - COUNT ( * ) * MAX ( - 46 ) AS col2
----
3956

query I rowsort
SELECT ( + 32 ) * 47 AS col0
----
1504

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT DISTINCT 29, - COUNT( * ) AS col1
----
29
-1

skipif mysql # not compatible
query II rowsort label-1688
SELECT DISTINCT 29, - COUNT ( * ) AS col1
----
29
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-1689
SELECT - 31, 6 - - SUM( ALL + 85 ) AS col0, - ( + 49 ) + + 72 AS col1
----
-31
91
23

skipif mysql # not compatible
query III rowsort label-1689
SELECT - 31, 6 - - SUM ( ALL + 85 ) AS col0, - ( + 49 ) + + 72 AS col1
----
-31
91
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT ALL - SUM( + 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL - SUM ( + 33 ) AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1691
SELECT ALL CAST( 92 AS SIGNED ) * - + 94
----
-8648

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL CAST ( 92 AS INTEGER ) * - + 94
----
-8648

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1692
SELECT 87 AS col2, CASE + + 19 WHEN - + CAST( 71 AS DECIMAL ) THEN NULL WHEN 5 * 78 * + COUNT( * ) THEN + + 76 + - 40 WHEN - ( + 81 ) THEN - - 35 * + - COUNT( + 87 ) ELSE NULL END * 54 - 9 * + 29 + - 12
----
87
NULL

skipif mysql # not compatible
query II rowsort label-1692
SELECT 87 AS col2, CASE + + 19 WHEN - + CAST ( 71 AS REAL ) THEN NULL WHEN 5 * 78 * + COUNT ( * ) THEN + + 76 + - 40 WHEN - ( + 81 ) THEN - - 35 * + - COUNT ( + 87 ) ELSE NULL END * 54 - 9 * + 29 + - 12
----
87
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1693
SELECT + 31 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-1693
SELECT + 31 / - 98
----
0

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

skipif mysql # not compatible
query I rowsort label-1694
SELECT - + 32 / + 31 + - COUNT ( * )
----
-2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT DISTINCT 49 + 58 DIV + 42 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT 49 + 58 / + 42 AS col1
----
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT ALL CASE COUNT( * ) WHEN + 19 THEN NULL ELSE + + 91 END + + - ( - + 67 )
----
158

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL CASE COUNT ( * ) WHEN + 19 THEN NULL ELSE + + 91 END + + - ( - + 67 )
----
158

query I rowsort
SELECT DISTINCT + 4 + - 36
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL + MAX( DISTINCT 41 ) + - 98 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL + MAX ( DISTINCT 41 ) + - 98 AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1701
SELECT + 42 DIV 27 + - COUNT( * ) + + 64 * + MIN( ALL - 88 ) + 80 * + MAX( + 89 ) + + + CASE - - CAST( NULL AS SIGNED ) WHEN 78 THEN - COUNT( * ) - - + 56 - + + 70 * CASE - 1 WHEN 61 DIV 72 THEN CAST( NULL AS SIGNED ) DIV + 29 WHEN - 33 THEN NULL WHEN - 47 THEN NULL END - + COUNT( * ) WHEN 55 THEN NULL ELSE - COUNT( * ) * 72 END * + 38
----
-1248

skipif mysql # not compatible
query I rowsort label-1701
SELECT + 42 / 27 + - COUNT ( * ) + + 64 * + MIN ( ALL - 88 ) + 80 * + MAX ( + 89 ) + + + CASE - - CAST ( NULL AS INTEGER ) WHEN 78 THEN - COUNT ( * ) - - + 56 - + + 70 * CASE - 1 WHEN 61 / 72 THEN CAST ( NULL AS INTEGER ) / + 29 WHEN - 33 THEN NULL WHEN - 47 THEN NULL END - + COUNT ( * ) WHEN 55 THEN NULL ELSE - COUNT ( * ) * 72 END * + 38
----
-1248

query I rowsort
SELECT + - 99
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT DISTINCT - 79 + COUNT( * ) + - 89 AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - 79 + COUNT ( * ) + - 89 AS col1
----
-167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1704
SELECT - ( - + COALESCE ( - + 19, + - CASE + 60 WHEN + + 31 THEN - - 21 + 20 ELSE - ( - COUNT( * ) ) * + 99 END * - COUNT( + ( 93 ) ) DIV + 78, - 50 + - 61 ) ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-1704
SELECT - ( - + COALESCE ( - + 19, + - CASE + 60 WHEN + + 31 THEN - - 21 + 20 ELSE - ( - COUNT ( * ) ) * + 99 END * - COUNT ( + ( 93 ) ) / + 78, - 50 + - 61 ) ) col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT + MIN( - + NULLIF ( + 86, - - 61 * - + 80 ) ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-1705
SELECT + MIN ( - + NULLIF ( + 86, - - 61 * - + 80 ) ) AS col0
----
-86

query I rowsort
SELECT 40 * 28 + + + CASE - + 28 WHEN + 44 THEN + 53 WHEN - 42 + + + 92 THEN + + 34 * - 18 + 14 END
----
NULL

query I rowsort
SELECT 67 * + + 29 AS col1
----
1943

query I rowsort
SELECT DISTINCT - ( - ( - ( 66 ) ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT MIN( - - 54 ) * - 31
----
-1674

skipif mysql # not compatible
query I rowsort label-1709
SELECT MIN ( - - 54 ) * - 31
----
-1674

query I rowsort
SELECT 99 + - 14 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT ALL MIN( ALL 78 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL MIN ( ALL 78 ) col2
----
78

query I rowsort
SELECT ALL - 86 - 82 * - 75 AS col2
----
6064

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT 82 DIV 79 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1713
SELECT 82 / 79 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1714
SELECT 18 * - 64, COUNT( * ) col1
----
-1152
1

skipif mysql # not compatible
query II rowsort label-1714
SELECT 18 * - 64, COUNT ( * ) col1
----
-1152
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT DISTINCT MIN( ALL - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT MIN ( ALL - 51 )
----
-51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT COALESCE ( + + 96, + COUNT( * ) ) + + 2
----
98

skipif mysql # not compatible
query I rowsort label-1717
SELECT COALESCE ( + + 96, + COUNT ( * ) ) + + 2
----
98

query I rowsort
SELECT 33 + 4 * + 52 + + - 93 AS col1
----
148

query I rowsort
SELECT + 32 * 28 + CASE + 91 WHEN + + 27 THEN 31 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL - 27 + + 13 - + 81 + + 73 * - 57 AS col2
----
-4256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT - CASE COALESCE ( - 19, - 28 * + 49 ) WHEN - COUNT( * ) THEN - + CASE + COUNT( * ) WHEN - + COUNT( * ) THEN 94 * 69 WHEN - - AVG ( DISTINCT + 41 ) * ( + 43 ) + 59 * + + COUNT( * ) * 51 THEN - 53 + COUNT( * ) END * 54 WHEN 50 - COUNT( * ) THEN - COALESCE ( ( 38 ), - CASE - 81 WHEN 79 THEN + 40 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 5 END ) * + 93 + - 49 WHEN 81 * - SUM( 60 * + 96 ) + - 75 THEN + 46 ELSE - MIN( 3 ) END col1
----
3

skipif mysql # not compatible
query I rowsort label-1722
SELECT - CASE COALESCE ( - 19, - 28 * + 49 ) WHEN - COUNT ( * ) THEN - + CASE + COUNT ( * ) WHEN - + COUNT ( * ) THEN 94 * 69 WHEN - - AVG ( DISTINCT + 41 ) * ( + 43 ) + 59 * + + COUNT ( * ) * 51 THEN - 53 + COUNT ( * ) END * 54 WHEN 50 - COUNT ( * ) THEN - COALESCE ( ( 38 ), - CASE - 81 WHEN 79 THEN + 40 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 5 END ) * + 93 + - 49 WHEN 81 * - SUM ( 60 * + 96 ) + - 75 THEN + 46 ELSE - MIN ( 3 ) END col1
----
3

query I rowsort
SELECT 65 + - + 50
----
15

query I rowsort
SELECT ALL + - 82 + - 20
----
-102

query I rowsort
SELECT - + 14 AS col1
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-1726
SELECT ALL 21 + - 15 DIV - - 69 + ( + 38 ) AS col0, 47
----
59
47

skipif mysql # not compatible
query II rowsort label-1726
SELECT ALL 21 + - 15 / - - 69 + ( + 38 ) AS col0, 47
----
59
47

query I rowsort
SELECT - - 45 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT + ( + COUNT( * ) ) * 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1728
SELECT + ( + COUNT ( * ) ) * 70 AS col2
----
70

query I rowsort
SELECT ALL 7 * - 93 * - - 76 + + 29
----
-49447

query I rowsort
SELECT - ( - 1 ) - - - 27 + + - 58
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT 14 * - 73 + - MIN( DISTINCT 30 ) * - COALESCE ( + + 32, - 39 + - 97 ) col1
----
-62

skipif mysql # not compatible
query I rowsort label-1731
SELECT 14 * - 73 + - MIN ( DISTINCT 30 ) * - COALESCE ( + + 32, - 39 + - 97 ) col1
----
-62

query I rowsort
SELECT + 84 - - 86 AS col0
----
170

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT + CASE AVG ( DISTINCT - + COALESCE ( - ( + + 55 ), - 13 ) ) WHEN ( - COUNT( ALL - 69 ) ) THEN - - 48 WHEN - - 11 * + - SUM( - 39 ) + - + ( + CAST( - 91 AS SIGNED ) ) THEN + - 91 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT + CASE AVG ( DISTINCT - + COALESCE ( - ( + + 55 ), - 13 ) ) WHEN ( - COUNT ( ALL - 69 ) ) THEN - - 48 WHEN - - 11 * + - SUM ( - 39 ) + - + ( + CAST ( - 91 AS INTEGER ) ) THEN + - 91 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT ALL 44 * + NULLIF ( - 83, - + CASE - 3 WHEN - - 2 THEN - + 99 WHEN + ( + 74 ) * - 96 THEN + COUNT( * ) END / 52 ) - - - COUNT( * ) * + ( + 7 ) - + 67 AS col0
----
-3726

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL 44 * + NULLIF ( - 83, - + CASE - 3 WHEN - - 2 THEN - + 99 WHEN + ( + 74 ) * - 96 THEN + COUNT ( * ) END / 52 ) - - - COUNT ( * ) * + ( + 7 ) - + 67 AS col0
----
-3726

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT ALL + COUNT( * ) AS col2, + 29 * - - 39 AS col1
----
1
1131

skipif mysql # not compatible
query II rowsort label-1737
SELECT ALL + COUNT ( * ) AS col2, + 29 * - - 39 AS col1
----
1
1131

onlyif mysql # aggregate syntax: 
query II rowsort label-1738
SELECT + 65 * CASE WHEN NULL IS NOT NULL THEN NULL ELSE 46 END * + MAX( + 77 ) + 95 * - COUNT( * ) + + 78 AS col1, 99 AS col0
----
230213
99

skipif mysql # not compatible
query II rowsort label-1738
SELECT + 65 * CASE WHEN NULL IS NOT NULL THEN NULL ELSE 46 END * + MAX ( + 77 ) + 95 * - COUNT ( * ) + + 78 AS col1, 99 AS col0
----
230213
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT - 29 - 31 * - - COUNT( * ) * + 67 col1
----
-2106

skipif mysql # not compatible
query I rowsort label-1740
SELECT - 29 - 31 * - - COUNT ( * ) * + 67 col1
----
-2106

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1741
SELECT + CAST( NULL AS DECIMAL ) * CASE - 95 WHEN 39 THEN NULL WHEN 75 * COUNT( * ) * + NULLIF ( - 59, + 61 * + 56 ) * - ( COUNT( * ) ) THEN NULL WHEN + SUM( DISTINCT + ( - 26 ) ) * + 67 * + 72 + + - 19 * 53 THEN - 4 * - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT + CAST ( NULL AS REAL ) * CASE - 95 WHEN 39 THEN NULL WHEN 75 * COUNT ( * ) * + NULLIF ( - 59, + 61 * + 56 ) * - ( COUNT ( * ) ) THEN NULL WHEN + SUM ( DISTINCT + ( - 26 ) ) * + 67 * + 72 + + - 19 * 53 THEN - 4 * - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1742
SELECT ALL + COUNT( * ), 93 AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL + COUNT ( * ), 93 AS col1
----
1
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1743
SELECT + 55 AS col1, 59 * + 65 DIV + + COUNT( * )
----
55
3835

skipif mysql # not compatible
query II rowsort label-1743
SELECT + 55 AS col1, 59 * + 65 / + + COUNT ( * )
----
55
3835

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT - 93 + ( - SUM( + 16 ) )
----
-109

skipif mysql # not compatible
query I rowsort label-1744
SELECT - 93 + ( - SUM ( + 16 ) )
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL MAX( DISTINCT - 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL MAX ( DISTINCT - 62 ) AS col0
----
-62

query II rowsort
SELECT - 64, NULLIF ( + + 49, + - 77 ) AS col0
----
-64
49

query I rowsort
SELECT ALL COALESCE ( - + ( - 89 ), + + 85 ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT - 63 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1748
SELECT - 63 / 68 AS col1
----
0

query II rowsort
SELECT 34 AS col1, + 77
----
34
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT DISTINCT - 65 + COUNT( + 16 ) + - 67 * + 62 * - MIN( ALL + 88 )
----
365488

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT - 65 + COUNT ( + 16 ) + - 67 * + 62 * - MIN ( ALL + 88 )
----
365488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1751
SELECT - 33 * - CASE - + 0 WHEN + + 61 * + ( + 82 ) + 50 THEN + COUNT( * ) + - ( - ( + - ( 17 ) ) ) WHEN 81 / ( - 13 ) + + COUNT( * ) + - ( - NULLIF ( - 26, - 90 ) ) + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT - 33 * - CASE - + 0 WHEN + + 61 * + ( + 82 ) + 50 THEN + COUNT ( * ) + - ( - ( + - ( 17 ) ) ) WHEN 81 / ( - 13 ) + + COUNT ( * ) + - ( - NULLIF ( - 26, - 90 ) ) + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT - COALESCE ( + + 74, + 90 ) + - MIN( 84 ) + + COUNT( * )
----
-157

skipif mysql # not compatible
query I rowsort label-1752
SELECT - COALESCE ( + + 74, + 90 ) + - MIN ( 84 ) + + COUNT ( * )
----
-157

query I rowsort
SELECT ALL - + 59 * - COALESCE ( + 55, - - 38 + - + 10 * + + ( - 94 ) ) * + 16 AS col1
----
51920

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT - AVG ( ALL + - 13 ) + - + CASE + COUNT( * ) WHEN 5 * - + COUNT( * ) - - 12 + + COALESCE ( - 2, NULLIF ( - 68, AVG ( ALL - + 57 ) ) ) - - + ( + 80 ) + - NULLIF ( - SUM( + 19 ), + 73 ) + + 33 * 24 * + MIN( 9 ) THEN + 26 * COUNT( * ) + + 45 WHEN ( + 33 ) * NULLIF ( - CASE - 21 WHEN + 67 * + ( - 25 * NULLIF ( 46, 25 ) ) + - 6 THEN NULL WHEN 52 / + 52 THEN - 51 END, 61 ) + + 19 THEN NULL ELSE + CASE + 24 WHEN - COUNT( * ) THEN 58 - CASE 46 WHEN + COUNT( * ) * - 45 THEN 49 WHEN ( - 72 ) - NULLIF ( 30, + COUNT( * ) ) THEN NULL ELSE - MAX( 82 ) END ELSE NULL END END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT - AVG ( ALL + - 13 ) + - + CASE + COUNT ( * ) WHEN 5 * - + COUNT ( * ) - - 12 + + COALESCE ( - 2, NULLIF ( - 68, AVG ( ALL - + 57 ) ) ) - - + ( + 80 ) + - NULLIF ( - SUM ( + 19 ), + 73 ) + + 33 * 24 * + MIN ( 9 ) THEN + 26 * COUNT ( * ) + + 45 WHEN ( + 33 ) * NULLIF ( - CASE - 21 WHEN + 67 * + ( - 25 * NULLIF ( 46, 25 ) ) + - 6 THEN NULL WHEN 52 / + 52 THEN - 51 END, 61 ) + + 19 THEN NULL ELSE + CASE + 24 WHEN - COUNT ( * ) THEN 58 - CASE 46 WHEN + COUNT ( * ) * - 45 THEN 49 WHEN ( - 72 ) - NULLIF ( 30, + COUNT ( * ) ) THEN NULL ELSE - MAX ( 82 ) END ELSE NULL END END col0
----
NULL

query I rowsort
SELECT - + 9 - - 83 AS col1
----
74

query I rowsort
SELECT DISTINCT + + 30 * + 5
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT + - COALESCE ( + ( + 44 ), - 97 + + - 45 ) - - 21 * + - 71 * - - 15 * - CAST( NULL AS SIGNED ) * 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT + - COALESCE ( + ( + 44 ), - 97 + + - 45 ) - - 21 * + - 71 * - - 15 * - CAST ( NULL AS INTEGER ) * 32 AS col0
----
NULL

query II rowsort
SELECT 85 AS col1, + 16
----
85
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT - NULLIF ( + COUNT( * ), + - MAX( 5 ) - - 84 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1760
SELECT - NULLIF ( + COUNT ( * ), + - MAX ( 5 ) - - 84 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1761
SELECT - 55 + + 27 * - - CAST( 79 AS SIGNED )
----
2078

skipif mysql # not compatible
query I rowsort label-1761
SELECT - 55 + + 27 * - - CAST ( 79 AS INTEGER )
----
2078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1762
SELECT ( - 46 ) DIV - - 93 + + - COALESCE ( 61, - + 42, + + COALESCE ( - ( - - 8 ), 56 * AVG ( 22 ) * + 12 + COUNT( * ) - 32 + 77 + + 25 ) DIV 95 * MIN( - 17 ) + + ( 90 ) * - 38 ) - + 82
----
-143

skipif mysql # not compatible
query I rowsort label-1762
SELECT ( - 46 ) / - - 93 + + - COALESCE ( 61, - + 42, + + COALESCE ( - ( - - 8 ), 56 * AVG ( 22 ) * + 12 + COUNT ( * ) - 32 + 77 + + 25 ) / 95 * MIN ( - 17 ) + + ( 90 ) * - 38 ) - + 82
----
-143

query I rowsort
SELECT 93 * - - 6 - - 28 AS col1
----
586

onlyif mysql # aggregate syntax: 
query II rowsort label-1764
SELECT ALL + - COUNT( * ), 72 AS col0
----
-1
72

skipif mysql # not compatible
query II rowsort label-1764
SELECT ALL + - COUNT ( * ), 72 AS col0
----
-1
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT + 82 + + - 10 + + COALESCE ( + 98, + NULLIF ( + 66, ( - + 28 ) ) + - COUNT( DISTINCT - ( - - 63 ) ) ) + 41 * + - 2
----
88

skipif mysql # not compatible
query I rowsort label-1765
SELECT + 82 + + - 10 + + COALESCE ( + 98, + NULLIF ( + 66, ( - + 28 ) ) + - COUNT ( DISTINCT - ( - - 63 ) ) ) + 41 * + - 2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1766
SELECT ALL + 29 DIV + + 56 + + 74 + + - 94 - - 0 - - 22 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL + 29 / + + 56 + + 74 + + - 94 - - 0 - - 22 AS col2
----
2

query II rowsort
SELECT DISTINCT + 90 AS col2, 90 AS col0
----
90
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1768
SELECT + - 33 * - 49 * - AVG ( ALL 48 ) + CASE - 22 WHEN 72 THEN 64 + + - COUNT( * ) * - ( + + 75 ) * 79 / + 96 + COUNT( * ) / + - ( - 0 ) + 52 WHEN + CAST( NULL AS SIGNED ) * - SUM( 29 / + 20 + 13 ) THEN 1 + - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT + - 33 * - 49 * - AVG ( ALL 48 ) + CASE - 22 WHEN 72 THEN 64 + + - COUNT ( * ) * - ( + + 75 ) * 79 / + 96 + COUNT ( * ) / + - ( - 0 ) + 52 WHEN + CAST ( NULL AS INTEGER ) * - SUM ( 29 / + 20 + 13 ) THEN 1 + - 4 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT + SUM( ALL + 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1770
SELECT + SUM ( ALL + 2 ) AS col2
----
2

query I rowsort
SELECT ALL 35 * - - 20
----
700

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

skipif mysql # not compatible
query I rowsort label-1772
SELECT + COUNT ( * ) * - 44 * + 95 * - COUNT ( * ) AS col0
----
4180

query I rowsort
SELECT + 47 * + 2 AS col2
----
94

query I rowsort
SELECT + 6 + - 95 AS col0
----
-89

query II rowsort
SELECT ( - 65 ) AS col0, - 92 AS col0
----
-65
-92

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

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

query I rowsort
SELECT + ( + 49 ) col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT DISTINCT - ( - - 22 ) * + 32 * 71 * - 49 * 8 + 12 * - COUNT( 96 ) * - 23 + - 96
----
19593908

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT - ( - - 22 ) * + 32 * 71 * - 49 * 8 + 12 * - COUNT ( 96 ) * - 23 + - 96
----
19593908

query I rowsort
SELECT - 57 + + - 26 + 52 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL + MAX( - + 46 ) * - COUNT( * ) + - COALESCE ( - 89, - 12 * + + 88 ) * - - 30 + + 94 AS col0
----
2810

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL + MAX ( - + 46 ) * - COUNT ( * ) + - COALESCE ( - 89, - 12 * + + 88 ) * - - 30 + + 94 AS col0
----
2810

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT ALL SUM( + 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL SUM ( + 71 ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1782
SELECT CASE - COALESCE ( - 15, + 82 * - + COUNT( * ) + CAST( - + ( + 50 ) AS SIGNED ) ) WHEN + 21 * - + 51 + + COUNT( * ) THEN + SUM( 38 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT CASE - COALESCE ( - 15, + 82 * - + COUNT ( * ) + CAST ( - + ( + 50 ) AS INTEGER ) ) WHEN + 21 * - + 51 + + COUNT ( * ) THEN + SUM ( 38 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1783
SELECT - 32 * + 62 + - 17 + + 72 - NULLIF ( 96, - - 5 * + COALESCE ( - - CASE - 87 WHEN 10 THEN - - 30 + - 97 ELSE NULL END, COUNT( * ), + 29 ) ) * 68 DIV - 3 + 60 * + 85
----
5347

skipif mysql # not compatible
query I rowsort label-1783
SELECT - 32 * + 62 + - 17 + + 72 - NULLIF ( 96, - - 5 * + COALESCE ( - - CASE - 87 WHEN 10 THEN - - 30 + - 97 ELSE NULL END, COUNT ( * ), + 29 ) ) * 68 / - 3 + 60 * + 85
----
5347

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT + 45 + + 98 - + - MAX( 97 ) * - 86 AS col1
----
-8199

skipif mysql # not compatible
query I rowsort label-1784
SELECT + 45 + + 98 - + - MAX ( 97 ) * - 86 AS col1
----
-8199

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT + 21 * ( - COUNT( * ) ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-1785
SELECT + 21 * ( - COUNT ( * ) ) col2
----
-21

query I rowsort
SELECT - - 99 + 20 AS col2
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1787
SELECT ALL + 48 * - 54 + - 18 / CAST( NULL AS SIGNED ) AS col0, - 23 * + 30 * - 3 + 19
----
NULL
2089

skipif mysql # not compatible
query II rowsort label-1787
SELECT ALL + 48 * - 54 + - 18 / CAST ( NULL AS INTEGER ) AS col0, - 23 * + 30 * - 3 + 19
----
NULL
2089

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1789
SELECT ALL - 49 + + 60 - 81 DIV - 70 AS col2, + 14 DIV 63 + + 22 * - 15 + + 24 + 27 + - NULLIF ( + ( - - 55 ), - + 47 DIV - 95 + - + 48 ) AS col1
----
12
-334

skipif mysql # not compatible
query II rowsort label-1789
SELECT ALL - 49 + + 60 - 81 / - 70 AS col2, + 14 / 63 + + 22 * - 15 + + 24 + 27 + - NULLIF ( + ( - - 55 ), - + 47 / - 95 + - + 48 ) AS col1
----
12
-334

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT - MAX( DISTINCT - 66 ) + 28
----
94

skipif mysql # not compatible
query I rowsort label-1790
SELECT - MAX ( DISTINCT - 66 ) + 28
----
94

query I rowsort
SELECT ALL + 83 - 59 + - 95 + - 12 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT - COUNT( * ) * - 91 + + 22 + - 69
----
44

skipif mysql # not compatible
query I rowsort label-1792
SELECT - COUNT ( * ) * - 91 + + 22 + - 69
----
44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1794
SELECT ALL + - 39 * - CAST( + + 31 AS SIGNED ) AS col1
----
1209

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL + - 39 * - CAST ( + + 31 AS INTEGER ) AS col1
----
1209

query I rowsort
SELECT - + 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1796
SELECT COALESCE ( - 10, - ( 30 ), + CAST( 86 AS SIGNED ) ) * + COUNT( * ) DIV COUNT( * ) * - - COALESCE ( - 13, - 97 ) col1
----
130

skipif mysql # not compatible
query I rowsort label-1796
SELECT COALESCE ( - 10, - ( 30 ), + CAST ( 86 AS INTEGER ) ) * + COUNT ( * ) / COUNT ( * ) * - - COALESCE ( - 13, - 97 ) col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT ALL + + COUNT( * ) * + - 2 * - + 62
----
124

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + + COUNT ( * ) * + - 2 * - + 62
----
124

query I rowsort
SELECT - COALESCE ( - 2, 83 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL - 98 * + - 55 * - COUNT( * ) + + - 72
----
-5462

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL - 98 * + - 55 * - COUNT ( * ) + + - 72
----
-5462

query I rowsort
SELECT 67 * 96 AS col1
----
6432

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT 73 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-1801
SELECT 73 / - 42
----
-1

query I rowsort
SELECT 83 - + 26 AS col0
----
57

query I rowsort
SELECT 18 * 84 * - - 31 AS col1
----
46872

query II rowsort
SELECT 48 AS col2, 12
----
48
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL MIN( DISTINCT 30 ) * 75
----
2250

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL MIN ( DISTINCT 30 ) * 75
----
2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1806
SELECT ALL - 28 + + - ( CAST( NULL AS SIGNED ) ) - 64 + + - 74 * + COALESCE ( - - COUNT( * ), - 79 + + + 73, + 78 ) + + 57 * - - 40 + 69 * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - 28 + + - ( CAST ( NULL AS INTEGER ) ) - 64 + + - 74 * + COALESCE ( - - COUNT ( * ), - 79 + + + 73, + 78 ) + + 57 * - - 40 + 69 * + 41
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1807
SELECT DISTINCT 87 + - + 92 + + + 12 * - COUNT( * ) * - 15 * - 38 AS col0, + 51 * - COUNT( * ) AS col2
----
-6845
-51

skipif mysql # not compatible
query II rowsort label-1807
SELECT DISTINCT 87 + - + 92 + + + 12 * - COUNT ( * ) * - 15 * - 38 AS col0, + 51 * - COUNT ( * ) AS col2
----
-6845
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT COALESCE ( + 56, + 21, - 4, - 45 ) * + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-1808
SELECT COALESCE ( + 56, + 21, - 4, - 45 ) * + - COUNT ( * )
----
-56

query I rowsort
SELECT ALL 22 + - 64 AS col2
----
-42

query II rowsort
SELECT ALL - 62 col2, - 92 AS col1
----
-62
-92

query I rowsort
SELECT DISTINCT 9 + 86 + - 88 * + 40
----
-3425

onlyif mysql # aggregate syntax: 
query II rowsort label-1812
SELECT ALL - 63, - COUNT( DISTINCT - ( 25 ) ) + + SUM( + 8 ) AS col1
----
-63
7

skipif mysql # not compatible
query II rowsort label-1812
SELECT ALL - 63, - COUNT ( DISTINCT - ( 25 ) ) + + SUM ( + 8 ) AS col1
----
-63
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT DISTINCT + MIN( - - 50 ) * 10
----
500

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT + MIN ( - - 50 ) * 10
----
500

query I rowsort
SELECT ALL - 53 col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT + 87 - + - COUNT( ALL - 86 ) * + - NULLIF ( + - ( + COUNT( * ) ), - + COUNT( * ) * - 73 + 63 + - 70 ) col2
----
88

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + 87 - + - COUNT ( ALL - 86 ) * + - NULLIF ( + - ( + COUNT ( * ) ), - + COUNT ( * ) * - 73 + 63 + - 70 ) col2
----
88

query I rowsort
SELECT - NULLIF ( 14, - - 28 + - 89 ) AS col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1817
SELECT + NULLIF ( + + 29, + NULLIF ( - 92, - 73 * 62 + - + 89 * - COUNT( * ) ) + + 68 ) + + 73 * + + 99 + - 90 DIV + SUM( + + 91 ) * - 13 - - 12 + 32 + 97 + ( + + COUNT( * ) ) + 33
----
7431

skipif mysql # not compatible
query I rowsort label-1817
SELECT + NULLIF ( + + 29, + NULLIF ( - 92, - 73 * 62 + - + 89 * - COUNT ( * ) ) + + 68 ) + + 73 * + + 99 + - 90 / + SUM ( + + 91 ) * - 13 - - 12 + 32 + 97 + ( + + COUNT ( * ) ) + 33
----
7431

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

query I rowsort
SELECT ALL COALESCE ( - - 27, + 88 ) AS col1
----
27

query I rowsort
SELECT 22 + + 98 col0
----
120

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1823
SELECT DISTINCT 29 * + - 50 * - 68 + + + CAST( - 33 AS SIGNED ) + - - COUNT( - - 51 )
----
98568

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT 29 * + - 50 * - 68 + + + CAST ( - 33 AS INTEGER ) + - - COUNT ( - - 51 )
----
98568

query I rowsort
SELECT DISTINCT - 44 * - 82 AS col0
----
3608

query I rowsort
SELECT 60 * - + ( + 4 ) AS col2
----
-240

query I rowsort
SELECT 78 * + 85 * + 91 * + - 10
----
-6033300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1827
SELECT + 0 + + ( - - 94 ) + - 18 + 74 + 59 * - 50 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1827
SELECT + 0 + + ( - - 94 ) + - 18 + 74 + 59 * - 50 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1828
SELECT 12 + - + COUNT( * ) AS col2, - 29 * - 15 AS col1, - - COUNT( ( + ( 87 ) ) )
----
11
435
1

skipif mysql # not compatible
query III rowsort label-1828
SELECT 12 + - + COUNT ( * ) AS col2, - 29 * - 15 AS col1, - - COUNT ( ( + ( 87 ) ) )
----
11
435
1

query I rowsort
SELECT 83 + - - 38 + 81
----
202

query II rowsort
SELECT 39 AS col2, - 62 AS col1
----
39
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT - 35, - COUNT( * ) * + 94 AS col1
----
-35
-94

skipif mysql # not compatible
query II rowsort label-1831
SELECT - 35, - COUNT ( * ) * + 94 AS col1
----
-35
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT DISTINCT + 68 DIV - + 6
----
-11

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT + 68 / - + 6
----
-11

query I rowsort
SELECT DISTINCT 37 * - 95 * 72 + + 79 AS col1
----
-253001

query I rowsort
SELECT ALL + ( - 49 ) * + 25
----
-1225

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT DISTINCT - COUNT( DISTINCT + ( - ( 97 ) ) ) * - 79 + + - 88 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - COUNT ( DISTINCT + ( - ( 97 ) ) ) * - 79 + + - 88 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ALL COALESCE ( + 84, ( + + 20 ) ) * + 87 * - 24 + - ( COUNT( * ) ) + - 6 + + 4 * + NULLIF ( COUNT( * ), + 93 * - 43 + + MIN( 32 ) * + COALESCE ( 51, + 38 ) + + - 79 ) * - 87 AS col2
----
-175747

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL COALESCE ( + 84, ( + + 20 ) ) * + 87 * - 24 + - ( COUNT ( * ) ) + - 6 + + 4 * + NULLIF ( COUNT ( * ), + 93 * - 43 + + MIN ( 32 ) * + COALESCE ( 51, + 38 ) + + - 79 ) * - 87 AS col2
----
-175747

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT - COUNT( * ) * + 41 * - 93 * + - 94 * + 17 + + 61 AS col1
----
-6093113

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT - COUNT ( * ) * + 41 * - 93 * + - 94 * + 17 + + 61 AS col1
----
-6093113

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL + COUNT( * ) * 62 + - 76 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL + COUNT ( * ) * 62 + - 76 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-1839
SELECT ALL - COUNT( * ) * 13 + MIN( DISTINCT + 30 ) col0, - 23 col1
----
17
-23

skipif mysql # not compatible
query II rowsort label-1839
SELECT ALL - COUNT ( * ) * 13 + MIN ( DISTINCT + 30 ) col0, - 23 col1
----
17
-23

query I rowsort
SELECT 60 * 13 + 67 AS col2
----
847

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT 33 DIV + 5
----
6

skipif mysql # not compatible
query I rowsort label-1843
SELECT 33 / + 5
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT COUNT( * ) + 17
----
18

skipif mysql # not compatible
query I rowsort label-1844
SELECT COUNT ( * ) + 17
----
18

query II rowsort
SELECT + 61, - 68 col0
----
61
-68

query I rowsort
SELECT 51 * + 53 * + 13 + + 77 col1
----
35216

query I rowsort
SELECT 27 * + 19 AS col1
----
513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1848
SELECT ALL + CASE COUNT( * ) WHEN + CAST( - 21 AS SIGNED ) THEN COUNT( * ) + 45 END + - + 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL + CASE COUNT ( * ) WHEN + CAST ( - 21 AS INTEGER ) THEN COUNT ( * ) + 45 END + - + 8 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1849
SELECT ALL - 78 AS col0, SUM( + - 71 ) - 95
----
-78
-166

skipif mysql # not compatible
query II rowsort label-1849
SELECT ALL - 78 AS col0, SUM ( + - 71 ) - 95
----
-78
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL + COUNT( * ) - + 99 + - 96 - - 68 * - + 10 * 6 - 4
----
-4278

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL + COUNT ( * ) - + 99 + - 96 - - 68 * - + 10 * 6 - 4
----
-4278

query I rowsort
SELECT ALL + 27 * + 61
----
1647

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

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

query I rowsort
SELECT DISTINCT + 16 - - 49
----
65

query I rowsort
SELECT ALL - + 15 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - + 78 * - 48 * - NULLIF ( 58, + + 78 * + 39 + + 80 * - 55 ) * + + COUNT( * ) * - 60 - - 28 AS col1
----
13029148

skipif mysql # not compatible
query I rowsort label-1855
SELECT - + 78 * - 48 * - NULLIF ( 58, + + 78 * + 39 + + 80 * - 55 ) * + + COUNT ( * ) * - 60 - - 28 AS col1
----
13029148

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT ALL + 39 AS col2, + COUNT( * ) + - 52
----
39
-51

skipif mysql # not compatible
query II rowsort label-1858
SELECT ALL + 39 AS col2, + COUNT ( * ) + - 52
----
39
-51

query I rowsort
SELECT + - 20 + + 9 col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1860
SELECT + 62 DIV + - 31 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1860
SELECT + 62 / + - 31 AS col1
----
-2

query I rowsort
SELECT ALL - 51 * + + 71 * - 3
----
10863

onlyif mysql # aggregate syntax: 
query II rowsort label-1862
SELECT + + COALESCE ( 52, + 62, + 59 + - 89 ) + COUNT( * ) AS col0, MIN( DISTINCT 89 )
----
53
89

skipif mysql # not compatible
query II rowsort label-1862
SELECT + + COALESCE ( 52, + 62, + 59 + - 89 ) + COUNT ( * ) AS col0, MIN ( DISTINCT 89 )
----
53
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1863
SELECT ALL CASE 50 WHEN 33 + SUM( DISTINCT CAST( + + 20 AS SIGNED ) ) * + 9 + + 45 - + - 93 * + 84 THEN + ( + 25 ) WHEN + 71 + + 25 THEN NULL WHEN + - ( COALESCE ( - - 89, - + 15 * - NULLIF ( + + 88, COUNT( * ) ), 67 * 85 + 91 ) ) + 68 THEN CASE WHEN NOT NULL IS NULL THEN NULL WHEN 65 IS NOT NULL THEN NULL ELSE + 35 END DIV + 63 ELSE 36 DIV 90 END
----
0

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL CASE 50 WHEN 33 + SUM ( DISTINCT CAST ( + + 20 AS INTEGER ) ) * + 9 + + 45 - + - 93 * + 84 THEN + ( + 25 ) WHEN + 71 + + 25 THEN NULL WHEN + - ( COALESCE ( - - 89, - + 15 * - NULLIF ( + + 88, COUNT ( * ) ), 67 * 85 + 91 ) ) + 68 THEN CASE WHEN NOT NULL IS NULL THEN NULL WHEN 65 IS NOT NULL THEN NULL ELSE + 35 END / + 63 ELSE 36 / 90 END
----
0

query II rowsort
SELECT - 8, + ( + 38 ) AS col2
----
-8
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1865
SELECT + - 1 DIV + - 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1865
SELECT + - 1 / + - 10 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL + ( - + 77 ) + - SUM( ALL 83 ) AS col1
----
-160

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL + ( - + 77 ) + - SUM ( ALL 83 ) AS col1
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1867
SELECT - 80, - 90 / + AVG ( ALL + + 15 ) * - 47 + 72 - - CASE + 39 WHEN - AVG ( ALL - 92 ) - - CASE - - 77 WHEN - 9 / + 6 THEN - 18 ELSE COUNT( * ) / + + COUNT( * ) + - 51 + COUNT( * ) + - - 3 END * 85 * COUNT( * ) THEN CAST( NULL AS SIGNED ) + 65 END AS col2
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-1867
SELECT - 80, - 90 / + AVG ( ALL + + 15 ) * - 47 + 72 - - CASE + 39 WHEN - AVG ( ALL - 92 ) - - CASE - - 77 WHEN - 9 / + 6 THEN - 18 ELSE COUNT ( * ) / + + COUNT ( * ) + - 51 + COUNT ( * ) + - - 3 END * 85 * COUNT ( * ) THEN CAST ( NULL AS INTEGER ) + 65 END AS col2
----
-80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1868
SELECT - 91 AS col1, + CAST( NULL AS SIGNED )
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-1868
SELECT - 91 AS col1, + CAST ( NULL AS INTEGER )
----
-91
NULL

query I rowsort
SELECT - - 21 * - 60 AS col0
----
-1260

query I rowsort
SELECT DISTINCT 47 + 87 + + 77 AS col1
----
211

query I rowsort
SELECT ALL 76 + + - 92
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1872
SELECT - ( CASE - 65 WHEN - 55 + + 86 THEN + COUNT( * ) WHEN 96 THEN - 89 WHEN - + 41 * + + 70 * + COUNT( * ) * - COALESCE ( 83, + 52 ) * 34 THEN CASE 68 WHEN 38 THEN + + COUNT( * ) WHEN + 23 THEN - CASE 25 WHEN 73 * 70 + CAST( NULL AS SIGNED ) THEN NULL WHEN - COUNT( * ) / 86 THEN NULL ELSE 69 END WHEN AVG ( ALL 57 ) THEN NULL ELSE + 14 * + COALESCE ( + 4, 12 ) + 92 END ELSE - 65 END )
----
65

skipif mysql # not compatible
query I rowsort label-1872
SELECT - ( CASE - 65 WHEN - 55 + + 86 THEN + COUNT ( * ) WHEN 96 THEN - 89 WHEN - + 41 * + + 70 * + COUNT ( * ) * - COALESCE ( 83, + 52 ) * 34 THEN CASE 68 WHEN 38 THEN + + COUNT ( * ) WHEN + 23 THEN - CASE 25 WHEN 73 * 70 + CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( * ) / 86 THEN NULL ELSE 69 END WHEN AVG ( ALL 57 ) THEN NULL ELSE + 14 * + COALESCE ( + 4, 12 ) + 92 END ELSE - 65 END )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1873
SELECT + 47 * + CASE 79 WHEN COUNT( * ) * + CASE + 40 WHEN - + 35 * + ( 21 ) THEN 11 ELSE + + 19 END THEN - 84 * - 96 * 45 WHEN 86 * - ( 66 ) THEN NULL WHEN - + 58 / 57 THEN NULL END * CAST( MAX( ALL - 18 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT + 47 * + CASE 79 WHEN COUNT ( * ) * + CASE + 40 WHEN - + 35 * + ( 21 ) THEN 11 ELSE + + 19 END THEN - 84 * - 96 * 45 WHEN 86 * - ( 66 ) THEN NULL WHEN - + 58 / 57 THEN NULL END * CAST ( MAX ( ALL - 18 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT 11 + - - CASE - COUNT( - - 35 ) WHEN + 97 THEN NULL ELSE COALESCE ( - + 95, - + 48 * 64 ) END + - - COUNT( * ) + 27
----
-56

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT 11 + - - CASE - COUNT ( - - 35 ) WHEN + 97 THEN NULL ELSE COALESCE ( - + 95, - + 48 * 64 ) END + - - COUNT ( * ) + 27
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL - COUNT( * ) * - 2 + - - 73 * + - 30
----
-2188

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - COUNT ( * ) * - 2 + - - 73 * + - 30
----
-2188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1876
SELECT ( - NULLIF ( - MIN( DISTINCT CAST( NULL AS SIGNED ) ), - 47 + + 12 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT ( - NULLIF ( - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ), - 47 + + 12 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1877
SELECT ALL - CAST( NULL AS DECIMAL ) * + ( - 48 ) * COUNT( * ) + 6 + 55 * + 97 * + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL - CAST ( NULL AS REAL ) * + ( - 48 ) * COUNT ( * ) + 6 + 55 * + 97 * + - 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT + COALESCE ( 85, - 4, + SUM( + - 21 ) * - - ( + 1 ) + 35 )
----
85

skipif mysql # not compatible
query I rowsort label-1878
SELECT + COALESCE ( 85, - 4, + SUM ( + - 21 ) * - - ( + 1 ) + 35 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT 1 / + + 69 + 79 * + CASE + ( + - 33 ) WHEN - - 53 * NULLIF ( MIN( - + 41 ), - + 69 ) * ( COALESCE ( - 18, 49 * + + ( - ( + + 76 ) ) + - CASE - COALESCE ( + + COUNT( ALL 6 ), COUNT( * ) + COUNT( * ) ) WHEN + AVG ( DISTINCT 4 ) THEN + ( 28 ) ELSE NULL END, 58 ) ) - - 13 THEN - ( - COUNT( * ) ) WHEN COUNT( * ) * MIN( 7 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT 1 / + + 69 + 79 * + CASE + ( + - 33 ) WHEN - - 53 * NULLIF ( MIN ( - + 41 ), - + 69 ) * ( COALESCE ( - 18, 49 * + + ( - ( + + 76 ) ) + - CASE - COALESCE ( + + COUNT ( ALL 6 ), COUNT ( * ) + COUNT ( * ) ) WHEN + AVG ( DISTINCT 4 ) THEN + ( 28 ) ELSE NULL END, 58 ) ) - - 13 THEN - ( - COUNT ( * ) ) WHEN COUNT ( * ) * MIN ( 7 ) THEN NULL END
----
NULL

query II rowsort
SELECT - 17 * + 95, 88 AS col1
----
-1615
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1881
SELECT + 28 * - 70 * - 88, CASE + 40 WHEN + - 84 - + 57 * ( - - 81 ) THEN - - CASE - + 7 WHEN + 66 THEN NULL WHEN + 40 THEN 73 * COUNT( * ) / + COUNT( * ) + 35 END + - 7 END AS col2
----
172480
NULL

skipif mysql # not compatible
query II rowsort label-1881
SELECT + 28 * - 70 * - 88, CASE + 40 WHEN + - 84 - + 57 * ( - - 81 ) THEN - - CASE - + 7 WHEN + 66 THEN NULL WHEN + 40 THEN 73 * COUNT ( * ) / + COUNT ( * ) + 35 END + - 7 END AS col2
----
172480
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1882
SELECT ALL + ( + 1 ) * NULLIF ( - 83, 0 ) * - COUNT( * ) * - NULLIF ( - COUNT( * ), + 62 * - - COUNT( * ) ) + 70 DIV - + 46 + - 5 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + ( + 1 ) * NULLIF ( - 83, 0 ) * - COUNT ( * ) * - NULLIF ( - COUNT ( * ), + 62 * - - COUNT ( * ) ) + 70 / - + 46 + - 5 AS col2
----
77

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

skipif mysql # not compatible
query I rowsort label-1883
SELECT 65 * COUNT ( * ) + 96 * - - COUNT ( * ) AS col1
----
161

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1885
SELECT ALL + 50 * + 44 - - + ( - SUM( - - 31 ) ) col0, COUNT( * ) AS col2
----
2169
1

skipif mysql # not compatible
query II rowsort label-1885
SELECT ALL + 50 * + 44 - - + ( - SUM ( - - 31 ) ) col0, COUNT ( * ) AS col2
----
2169
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1886
SELECT DISTINCT - 75 * + CAST( + + 1 AS SIGNED ) * - 94 + ( + 6 ) AS col1
----
7056

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT - 75 * + CAST ( + + 1 AS INTEGER ) * - 94 + ( + 6 ) AS col1
----
7056

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

query I rowsort
SELECT DISTINCT + 17 * 68 * - - 60 - 22 col0
----
69338

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL - CASE + 13 WHEN 5 * - ( + 72 ) + - COUNT( * ) THEN + 12 WHEN - ( 12 ) THEN NULL END * + - 34 * ( + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL - CASE + 13 WHEN 5 * - ( + 72 ) + - COUNT ( * ) THEN + 12 WHEN - ( 12 ) THEN NULL END * + - 34 * ( + 91 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT - 57 * - ( - 45 ) + + + MIN( - 72 ) AS col1
----
-2637

skipif mysql # not compatible
query I rowsort label-1890
SELECT - 57 * - ( - 45 ) + + + MIN ( - 72 ) AS col1
----
-2637

query I rowsort
SELECT ALL + + 21 * - 56
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT COUNT( * ) * - COUNT( ALL - 19 ) * + 45 + - - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-1892
SELECT COUNT ( * ) * - COUNT ( ALL - 19 ) * + 45 + - - COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT - 52 * - COUNT( * ) * + 23 AS col1
----
1196

skipif mysql # not compatible
query I rowsort label-1893
SELECT - 52 * - COUNT ( * ) * + 23 AS col1
----
1196

query I rowsort
SELECT ALL + - COALESCE ( - - 27, + - 28 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1895
SELECT - 96 + + 95 - 15 + + + 51 + - CAST( + 45 AS SIGNED ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1895
SELECT - 96 + + 95 - 15 + + + 51 + - CAST ( + 45 AS INTEGER ) AS col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1896
SELECT + 66 * ( - NULLIF ( + COUNT( * ), - MAX( - 31 ) ) ) * - 63 DIV 1 + 44
----
4202

skipif mysql # not compatible
query I rowsort label-1896
SELECT + 66 * ( - NULLIF ( + COUNT ( * ), - MAX ( - 31 ) ) ) * - 63 / 1 + 44
----
4202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1897
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1897
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( * ) AS col2
----
NULL
1

query II rowsort
SELECT - - 66 * + 73 + 24 AS col2, 4 + + 45
----
4842
49

query I rowsort
SELECT - - ( 82 )
----
82

query I rowsort
SELECT + - 16 + - 85 AS col2
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1901
SELECT - + COUNT( * ) * + 61 col0, + 14 DIV + + MIN( 95 ) + + 97 + + 50 - - 11 DIV - + MIN( 39 ) + 78 AS col2
----
-61
225

skipif mysql # not compatible
query II rowsort label-1901
SELECT - + COUNT ( * ) * + 61 col0, + 14 / + + MIN ( 95 ) + + 97 + + 50 - - 11 / - + MIN ( 39 ) + 78 AS col2
----
-61
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1902
SELECT - COALESCE ( + - 7, - 92 * - NULLIF ( + 58, - 59 ) + - 2 + + 62 ) + + + COUNT( ALL - 84 ) * + - COUNT( * ) - - + ( COUNT( * ) ) * - ( - ( CAST( + + COALESCE ( + ( - CASE + COALESCE ( - 5, 26 ) WHEN + 9 * + 23 THEN - 34 ELSE + CASE ( + 99 ) WHEN - MIN( DISTINCT CAST( 93 AS SIGNED ) ) THEN NULL WHEN + 18 THEN SUM( 31 ) / 14 WHEN - 70 THEN ( + COUNT( * ) ) + 69 ELSE NULL END + 10 END ), - COUNT( * ), - 8 / - 36 ) AS SIGNED ) ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1902
SELECT - COALESCE ( + - 7, - 92 * - NULLIF ( + 58, - 59 ) + - 2 + + 62 ) + + + COUNT ( ALL - 84 ) * + - COUNT ( * ) - - + ( COUNT ( * ) ) * - ( - ( CAST ( + + COALESCE ( + ( - CASE + COALESCE ( - 5, 26 ) WHEN + 9 * + 23 THEN - 34 ELSE + CASE ( + 99 ) WHEN - MIN ( DISTINCT CAST ( 93 AS INTEGER ) ) THEN NULL WHEN + 18 THEN SUM ( 31 ) / 14 WHEN - 70 THEN ( + COUNT ( * ) ) + 69 ELSE NULL END + 10 END ), - COUNT ( * ), - 8 / - 36 ) AS INTEGER ) ) ) AS col1
----
5

query II rowsort
SELECT - ( + 45 ), 48 AS col0
----
-45
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT - 21 + - 96 + - - 25 * - COUNT( * )
----
-142

skipif mysql # not compatible
query I rowsort label-1904
SELECT - 21 + - 96 + - - 25 * - COUNT ( * )
----
-142

query I rowsort
SELECT + 91 - - - NULLIF ( + 63, + - 65 ) AS col2
----
28

query I rowsort
SELECT + NULLIF ( - + 59, + 7 ) + 21 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT DISTINCT - 17 + - - 16, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-1907
SELECT DISTINCT - 17 + - - 16, COUNT ( * ) AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + 65 + + COUNT( * ) * + COUNT( * ) * + + 0 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1908
SELECT + 65 + + COUNT ( * ) * + COUNT ( * ) * + + 0 AS col1
----
65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1910
SELECT + 41 + + 66 DIV - 8 + - ( - 81 )
----
114

skipif mysql # not compatible
query I rowsort label-1910
SELECT + 41 + + 66 / - 8 + - ( - 81 )
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1911
SELECT ALL COUNT( * ) / - 71 * + - COALESCE ( - 94, 82 ) * + ( - COUNT( * ) ) * - + 57 + CAST( NULL AS SIGNED ) - + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL COUNT ( * ) / - 71 * + - COALESCE ( - 94, 82 ) * + ( - COUNT ( * ) ) * - + 57 + CAST ( NULL AS INTEGER ) - + 62 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1912
SELECT - NULLIF ( ( 70 ), + 48 * + + 43 * - CAST( NULL AS SIGNED ) * - + NULLIF ( - 37, + 34 ) - + 44 )
----
-70

skipif mysql # not compatible
query I rowsort label-1912
SELECT - NULLIF ( ( 70 ), + 48 * + + 43 * - CAST ( NULL AS INTEGER ) * - + NULLIF ( - 37, + 34 ) - + 44 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + 17 + - 26 - + + SUM( 88 ) + + COALESCE ( + + 4, - 38 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-1913
SELECT + 17 + - 26 - + + SUM ( 88 ) + + COALESCE ( + + 4, - 38 ) AS col0
----
-93

query I rowsort
SELECT + 29 + 73 AS col0
----
102

query I rowsort
SELECT + 93 + - + 76 col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1916
SELECT ALL 99 + + 10 + + COALESCE ( 29, 95, + - 99 DIV 13 + - - 85 + - + 12 + - 53, - COUNT( * ) ) AS col1
----
138

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL 99 + + 10 + + COALESCE ( 29, 95, + - 99 / 13 + - - 85 + - + 12 + - 53, - COUNT ( * ) ) AS col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT + 5 + - - MIN( - 88 ) * 7
----
-611

skipif mysql # not compatible
query I rowsort label-1917
SELECT + 5 + - - MIN ( - 88 ) * 7
----
-611

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1919
SELECT DISTINCT + 68, + 51 * - 32 * CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) * - 60 AS col1, - + 60 AS col1
----
68
NULL
-60

skipif mysql # not compatible
query III rowsort label-1919
SELECT DISTINCT + 68, + 51 * - 32 * CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) * - 60 AS col1, - + 60 AS col1
----
68
NULL
-60

query I rowsort
SELECT + 75 * + 32 * + 57
----
136800

query I rowsort
SELECT DISTINCT + 13 AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1922
SELECT DISTINCT + 73 DIV + 74 - + 81 col2
----
-81

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + 73 / + 74 - + 81 col2
----
-81

query I rowsort
SELECT DISTINCT 15 * 57 AS col1
----
855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1924
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1925
SELECT 34 DIV - 90 + 90 + + - 41 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-1925
SELECT 34 / - 90 + 90 + + - 41 AS col1
----
49

query I rowsort
SELECT 32 * - 13 AS col0
----
-416

query I rowsort
SELECT 68 * 52
----
3536

query I rowsort
SELECT ALL - - 11 AS col0
----
11

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

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

query I rowsort
SELECT ALL - + 33 col2
----
-33

query II rowsort
SELECT + + 74, + 90 - - 75 * 80 AS col0
----
74
6090

onlyif mysql # aggregate syntax: 
query II rowsort label-1933
SELECT ALL - COUNT( * ) AS col1, - 57 * 13 + + COUNT( * ) AS col1
----
-1
-740

skipif mysql # not compatible
query II rowsort label-1933
SELECT ALL - COUNT ( * ) AS col1, - 57 * 13 + + COUNT ( * ) AS col1
----
-1
-740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1934
SELECT ALL + 6 DIV SUM( DISTINCT + ( + + 34 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + 6 / SUM ( DISTINCT + ( + + 34 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1935
SELECT ALL - 84 + - 38 DIV + COUNT( * ) + + + 48 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL - 84 + - 38 / + COUNT ( * ) + + + 48 AS col2
----
-74

query II rowsort
SELECT + 58 AS col2, - 2
----
58
-2

query II rowsort
SELECT + ( + ( + - ( + 78 ) ) ), - NULLIF ( 35, + + 7 ) + - + 94 AS col0
----
-78
-129

query II rowsort
SELECT ALL - - 27 AS col2, + 40
----
27
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1940
SELECT - 10 * - + 46 + 60 DIV - 99
----
460

skipif mysql # not compatible
query I rowsort label-1940
SELECT - 10 * - + 46 + 60 / - 99
----
460

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT DISTINCT - COALESCE ( - + 70, 44 DIV - 61 ) + - 13
----
57

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT - COALESCE ( - + 70, 44 / - 61 ) + - 13
----
57

query I rowsort
SELECT ALL - COALESCE ( - ( + 45 ), - - 73 )
----
45

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

query I rowsort
SELECT ALL - 88 + - 81
----
-169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1945
SELECT DISTINCT + 43, CAST( NULL AS SIGNED ) AS col0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-1945
SELECT DISTINCT + 43, CAST ( NULL AS INTEGER ) AS col0
----
43
NULL

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

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

query I rowsort
SELECT DISTINCT 18 + - - 52 + + + 23 + + + NULLIF ( - 74, + NULLIF ( - 15, - - 72 * + - 64 ) / + - 48 ) col2
----
19

query II rowsort
SELECT 98 * + 84 AS col0, - 81 AS col1
----
8232
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1949
SELECT 8 - + + CASE - 84 WHEN - 71 THEN NULL WHEN 4 THEN - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT 8 - + + CASE - 84 WHEN - 71 THEN NULL WHEN 4 THEN - CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1950
SELECT AVG ( 45 ) * - + 19 - 6 + + + CASE WHEN NOT - 43 IS NOT NULL THEN + 83 * + SUM( - - 32 ) + 30 ELSE NULL END * + 25 AS col2, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1950
SELECT AVG ( 45 ) * - + 19 - 6 + + + CASE WHEN NOT - 43 IS NOT NULL THEN + 83 * + SUM ( - - 32 ) + 30 ELSE NULL END * + 25 AS col2, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL COUNT( * ) * + - 84 * 13
----
-1092

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL COUNT ( * ) * + - 84 * 13
----
-1092

query I rowsort
SELECT DISTINCT - 20 * - 69
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL + COALESCE ( + 6, - 56 - NULLIF ( + 8, COUNT( * ) + - 73 + 5 ) ) * - COUNT( * ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL + COALESCE ( + 6, - 56 - NULLIF ( + 8, COUNT ( * ) + - 73 + 5 ) ) * - COUNT ( * ) AS col2
----
-6

query I rowsort
SELECT DISTINCT - 47 - + + 31 * NULLIF ( ( + + 42 ), + 7 * 94 + - - 58 ) col2
----
-1349

query I rowsort
SELECT 52 * + + 88 * - - 13
----
59488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT COUNT( * ) DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-1956
SELECT COUNT ( * ) / 55
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1957
SELECT DISTINCT 51 DIV + 78, NULLIF ( + + 24, 34 + + 30 ) * 12 - 73 + + 36 AS col2
----
0
251

skipif mysql # not compatible
query II rowsort label-1957
SELECT DISTINCT 51 / + 78, NULLIF ( + + 24, 34 + + 30 ) * 12 - 73 + + 36 AS col2
----
0
251

query I rowsort
SELECT 42 * + 37
----
1554

query I rowsort
SELECT 78 * 14 * + - 20
----
-21840

query I rowsort
SELECT ( - 92 ) * 51 AS col0
----
-4692

query I rowsort
SELECT + 78 col2
----
78

query I rowsort
SELECT ALL - 79 * 47 * + 3
----
-11139

query I rowsort
SELECT DISTINCT - - 44 AS col2
----
44

query I rowsort
SELECT 43 * + - 50
----
-2150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1965
SELECT + + COUNT( * ) DIV - 70 DIV + COUNT( * ) + 44 + - - 48
----
92

skipif mysql # not compatible
query I rowsort label-1965
SELECT + + COUNT ( * ) / - 70 / + COUNT ( * ) + 44 + - - 48
----
92

query I rowsort
SELECT DISTINCT - 77 * 23 AS col2
----
-1771

query I rowsort
SELECT ALL - + 78 + - + 62 AS col1
----
-140

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

query I rowsort
SELECT + 23 * 92 + - 55
----
2061

query I rowsort
SELECT DISTINCT - 27 + - - 66
----
39

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

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

query I rowsort
SELECT DISTINCT - - 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT COUNT( + - 90 ) + - + 53 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-1973
SELECT COUNT ( + - 90 ) + - + 53 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT + - COALESCE ( COUNT( * ), + - SUM( DISTINCT - - 0 ), - COUNT( + 10 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1974
SELECT + - COALESCE ( COUNT ( * ), + - SUM ( DISTINCT - - 0 ), - COUNT ( + 10 ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - - 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-1976
SELECT ALL 73 + + 44 * - 22 * - 32 col2, + NULLIF ( + 87, + COUNT( * ) ) * - ( 21 ) - - - 19 * - SUM( DISTINCT + 45 ) AS col2
----
31049
-972

skipif mysql # not compatible
query II rowsort label-1976
SELECT ALL 73 + + 44 * - 22 * - 32 col2, + NULLIF ( + 87, + COUNT ( * ) ) * - ( 21 ) - - - 19 * - SUM ( DISTINCT + 45 ) AS col2
----
31049
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT NULLIF ( - 58, + 73 + - COUNT( * ) / + + 98 + 64 - + - ( - AVG ( DISTINCT + 43 ) ) - COUNT( * ) * - 88 - + - NULLIF ( + 87, + 85 + + - 27 ) / + - NULLIF ( 73, + 61 ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-1977
SELECT NULLIF ( - 58, + 73 + - COUNT ( * ) / + + 98 + 64 - + - ( - AVG ( DISTINCT + 43 ) ) - COUNT ( * ) * - 88 - + - NULLIF ( + 87, + 85 + + - 27 ) / + - NULLIF ( 73, + 61 ) ) AS col1
----
-58

query I rowsort
SELECT ALL + - 61 + - 39 col0
----
-100

query I rowsort
SELECT 30 * 72
----
2160

query I rowsort
SELECT - 83 + + + 79 * - - 74 + - 13 AS col0
----
5750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1981
SELECT ALL - 33 * - - CAST( 4 AS SIGNED ) * + + 69
----
-9108

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - 33 * - - CAST ( 4 AS INTEGER ) * + + 69
----
-9108

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT COUNT( * ) + + 54 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1982
SELECT COUNT ( * ) + + 54 AS col2
----
55

query I rowsort
SELECT 11 * - 41 AS col1
----
-451

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT COUNT( * ) * - 79 * CASE - + ( - 24 ) WHEN - 12 / - 69 * 6 + COUNT( - + 9 ) + - + NULLIF ( + AVG ( DISTINCT + 29 ), - 89 + + ( - 45 ) ) THEN - ( 37 ) * 6 * 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT COUNT ( * ) * - 79 * CASE - + ( - 24 ) WHEN - 12 / - 69 * 6 + COUNT ( - + 9 ) + - + NULLIF ( + AVG ( DISTINCT + 29 ), - 89 + + ( - 45 ) ) THEN - ( 37 ) * 6 * 12 END AS col0
----
NULL

query I rowsort
SELECT 17 + - 40
----
-23

query I rowsort
SELECT 36 + 77
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL COUNT( - - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL COUNT ( - - 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT DISTINCT COUNT( DISTINCT + - 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT COUNT ( DISTINCT + - 34 ) AS col0
----
1

query I rowsort
SELECT - 98 * 93
----
-9114

query I rowsort
SELECT + NULLIF ( + 29, + 6 + - 40 * 55 ) + + + 71
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-1991
SELECT - 72 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT - 72 / - 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1992
SELECT DISTINCT + + 72 * + + CASE + + MIN( + + 76 ) WHEN + 9 THEN - CASE - COUNT( * ) WHEN - COUNT( * ) - COUNT( + 65 ) * + - CAST( NULL AS SIGNED ) + - COUNT( - 54 ) + + 71 + + - AVG ( ALL + 6 ) - - - CAST( + + 15 AS SIGNED ) + + - 79 + + SUM( DISTINCT + + 7 ) THEN + + 80 + 60 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN - + 24 THEN NULL END WHEN ( + MIN( + 47 ) ) * + 82 THEN 0 WHEN - 64 THEN - 59 ELSE COUNT( * ) * 24 END
----
1728

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT + + 72 * + + CASE + + MIN ( + + 76 ) WHEN + 9 THEN - CASE - COUNT ( * ) WHEN - COUNT ( * ) - COUNT ( + 65 ) * + - CAST ( NULL AS INTEGER ) + - COUNT ( - 54 ) + + 71 + + - AVG ( ALL + 6 ) - - - CAST ( + + 15 AS INTEGER ) + + - 79 + + SUM ( DISTINCT + + 7 ) THEN + + 80 + 60 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 24 THEN NULL END WHEN ( + MIN ( + 47 ) ) * + 82 THEN 0 WHEN - 64 THEN - 59 ELSE COUNT ( * ) * 24 END
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL NULLIF ( 20, - + 91 ) * 33 + + COUNT( * )
----
661

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL NULLIF ( 20, - + 91 ) * 33 + + COUNT ( * )
----
661

query I rowsort
SELECT ALL + + 82 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1995
SELECT + - 29 + + COUNT( * ) * - CAST( - 57 AS SIGNED ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1995
SELECT + - 29 + + COUNT ( * ) * - CAST ( - 57 AS INTEGER ) AS col1
----
28

query I rowsort
SELECT ALL 46 * - 65 + 66 AS col1
----
-2924

query I rowsort
SELECT - + NULLIF ( + - 56, + 18 ) * - 67 col0
----
-3752

query I rowsort
SELECT + 74 + + 75 + - 75 - - + 29 col2
----
103

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT ALL 17 * 43 + SUM( - 56 ) + - 41
----
634

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL 17 * 43 + SUM ( - 56 ) + - 41
----
634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2001
SELECT ALL COUNT( 36 ) * + + COUNT( * ) + 35 + 2 * - - COUNT( * ) DIV - 56 * - ( + 24 ) + + 20
----
56

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL COUNT ( 36 ) * + + COUNT ( * ) + 35 + 2 * - - COUNT ( * ) / - 56 * - ( + 24 ) + + 20
----
56

query I rowsort
SELECT ALL + 63 * - 6 + 10 * + 77 * - 18 col0
----
-14238

query I rowsort
SELECT ALL 45 * + - 15 AS col2
----
-675

query II rowsort
SELECT + 5 AS col1, 23
----
5
23

query I rowsort
SELECT + 28 col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL - 34 * - COUNT( * ) - - + 51 * 29 AS col1
----
1513

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL - 34 * - COUNT ( * ) - - + 51 * 29 AS col1
----
1513

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT - + 84 * - MIN( DISTINCT - + 12 ) * - + 34 - + 69 + 32
----
34235

skipif mysql # not compatible
query I rowsort label-2007
SELECT - + 84 * - MIN ( DISTINCT - + 12 ) * - + 34 - + 69 + 32
----
34235

query I rowsort
SELECT + 30 * - 44
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT MAX( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-2009
SELECT MAX ( - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT MAX( 89 )
----
89

skipif mysql # not compatible
query I rowsort label-2010
SELECT MAX ( 89 )
----
89

query I rowsort
SELECT 65 * 15 + - 12 AS col1
----
963

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2012
SELECT ALL CAST( + - 82 AS SIGNED ) DIV 43 - + 92
----
-93

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL CAST ( + - 82 AS INTEGER ) / 43 - + 92
----
-93

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT ALL CAST( NULL AS SIGNED ) / 74 / 52 * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL CAST ( NULL AS INTEGER ) / 74 / 52 * - 85
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2015
SELECT - 50 AS col1, - COUNT ( * ) AS col2
----
-50
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-2016
SELECT - ( + COUNT( * ) ), - 21 * 87 AS col0, - 30 AS col2
----
-1
-1827
-30

skipif mysql # not compatible
query III rowsort label-2016
SELECT - ( + COUNT ( * ) ), - 21 * 87 AS col0, - 30 AS col2
----
-1
-1827
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL COUNT( - 91 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL COUNT ( - 91 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT + 98 DIV 15
----
6

skipif mysql # not compatible
query I rowsort label-2019
SELECT + 98 / 15
----
6

query I rowsort
SELECT - 4 * + + 46 AS col1
----
-184

query III rowsort
SELECT + 16 - + - 67, ( + 5 ) AS col0, + 95 AS col2
----
83
5
95

query I rowsort
SELECT + 75 * - 5
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL + 75 + + + COUNT( * ) + 6 * - MAX( DISTINCT + 76 )
----
-380

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL + 75 + + + COUNT ( * ) + 6 * - MAX ( DISTINCT + 76 )
----
-380

query I rowsort
SELECT ALL - 12 + 25 + 7 + - - 64 AS col0
----
84

query I rowsort
SELECT - 68 * - - 15 * - ( - 39 )
----
-39780

query I rowsort
SELECT DISTINCT 33 * - 80
----
-2640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT DISTINCT + - COUNT( * ) + + 32
----
31

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT + - COUNT ( * ) + + 32
----
31

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

query I rowsort
SELECT - + 33 * - 68
----
2244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2031
SELECT ALL + 74 DIV - ( - + 29 ) + - 83 + + 49 * - MIN( 25 ) AS col0
----
-1306

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL + 74 / - ( - + 29 ) + - 83 + + 49 * - MIN ( 25 ) AS col0
----
-1306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2032
SELECT - CAST( + - 37 AS SIGNED ) + - + 46 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-2032
SELECT - CAST ( + - 37 AS INTEGER ) + - + 46 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL + - 2 * - 72 * + 47 * + COUNT( * )
----
6768

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL + - 2 * - 72 * + 47 * + COUNT ( * )
----
6768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2034
SELECT ALL - 38 / + COUNT( * ) + + 72 * + ( - - 82 ) * - - CAST( NULL AS SIGNED ) * + + COUNT( * ) * - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL - 38 / + COUNT ( * ) + + 72 * + ( - - 82 ) * - - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * - 84 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + + 55 col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT - - 6 * - COALESCE ( - - 3, - 10 * COUNT( + 85 ), + - 70 )
----
-18

skipif mysql # not compatible
query I rowsort label-2037
SELECT - - 6 * - COALESCE ( - - 3, - 10 * COUNT ( + 85 ), + - 70 )
----
-18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT DISTINCT + + ( + - 61 ) DIV 7 - + 59
----
-67

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT + + ( + - 61 ) / 7 - + 59
----
-67

query II rowsort
SELECT + 95 AS col2, 74
----
95
74

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2042
SELECT - 65 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT - 65 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT + 35 * + 9 * - COUNT( * ) AS col1
----
-315

skipif mysql # not compatible
query I rowsort label-2043
SELECT + 35 * + 9 * - COUNT ( * ) AS col1
----
-315

query I rowsort
SELECT + + 46 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2045
SELECT ALL - MAX( + - 35 ) / + CAST( NULL AS SIGNED ) * - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - MAX ( + - 35 ) / + CAST ( NULL AS INTEGER ) * - 24 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2046
SELECT + 82 * - 30, CAST( NULL AS SIGNED ) AS col0
----
-2460
NULL

skipif mysql # not compatible
query II rowsort label-2046
SELECT + 82 * - 30, CAST ( NULL AS INTEGER ) AS col0
----
-2460
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT MAX( DISTINCT - 58 ) * - MIN( DISTINCT + 17 )
----
986

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT MAX ( DISTINCT - 58 ) * - MIN ( DISTINCT + 17 )
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL 53 * - SUM( - 75 ) AS col0
----
3975

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL 53 * - SUM ( - 75 ) AS col0
----
3975

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT DISTINCT CAST( + 12 AS SIGNED ) * 64
----
768

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT CAST ( + 12 AS INTEGER ) * 64
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT COUNT( * ) + 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2052
SELECT COUNT ( * ) + 83 AS col2
----
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2054
SELECT 52 + CAST( - 29 AS SIGNED ) + 36 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-2054
SELECT 52 + CAST ( - 29 AS INTEGER ) + 36 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT CASE + - 65 WHEN 96 * NULLIF ( + 37, 86 + + - 67 ) - + + 10 * + + 50 * + + 68 * - - 14 + + + 44 THEN NULL WHEN + - 8 * 85 / ( - 81 ) + + 0 + COUNT( * ) THEN - + 24 + - + 69 WHEN + 14 * - 69 THEN NULL END + + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT CASE + - 65 WHEN 96 * NULLIF ( + 37, 86 + + - 67 ) - + + 10 * + + 50 * + + 68 * - - 14 + + + 44 THEN NULL WHEN + - 8 * 85 / ( - 81 ) + + 0 + COUNT ( * ) THEN - + 24 + - + 69 WHEN + 14 * - 69 THEN NULL END + + - 1 AS col1
----
NULL

query I rowsort
SELECT ALL 80 + + 56 * 52 AS col1
----
2992

query I rowsort
SELECT ALL 39 * 20
----
780

onlyif mysql # aggregate syntax: 
query II rowsort label-2058
SELECT 71 + - + SUM( + 8 ) * - 46 * + 72 AS col0, 82 AS col1
----
26567
82

skipif mysql # not compatible
query II rowsort label-2058
SELECT 71 + - + SUM ( + 8 ) * - 46 * + 72 AS col0, 82 AS col1
----
26567
82

query I rowsort
SELECT ALL 51 + - + COALESCE ( 71, - 98 * - 93 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT 86 + + COUNT( - - 54 )
----
87

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT 86 + + COUNT ( - - 54 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2061
SELECT 87 + - + COUNT( * ) * 32 DIV + 95 + + 48 + COUNT( * ) DIV - ( 81 ) AS col1
----
135

skipif mysql # not compatible
query I rowsort label-2061
SELECT 87 + - + COUNT ( * ) * 32 / + 95 + + 48 + COUNT ( * ) / - ( 81 ) AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT ALL 50 + NULLIF ( + COALESCE ( + ( 57 ), - 10 * + 46 ), + + 80 ) + NULLIF ( + 28, - MAX( ALL - ( - 60 ) ) + + + 14 ) * + + 85
----
2487

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL 50 + NULLIF ( + COALESCE ( + ( 57 ), - 10 * + 46 ), + + 80 ) + NULLIF ( + 28, - MAX ( ALL - ( - 60 ) ) + + + 14 ) * + + 85
----
2487

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT - 20 * - 38 + + COUNT( * ) AS col2, NULLIF ( - 95, - + 96 ) AS col0
----
761
-95

skipif mysql # not compatible
query II rowsort label-2063
SELECT - 20 * - 38 + + COUNT ( * ) AS col2, NULLIF ( - 95, - + 96 ) AS col0
----
761
-95

query I rowsort
SELECT ALL - 7 + + - 82
----
-89

query I rowsort
SELECT ALL - 96 * + 41 * - - 37 * 80 AS col0
----
-11650560

query I rowsort
SELECT DISTINCT 21 * - 37
----
-777

query I rowsort
SELECT DISTINCT - - 35 AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2068
SELECT DISTINCT - 57 DIV SUM( + 44 ) * ( + + 56 ) + COUNT( * ) + + 54 + + 13 col1
----
12

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT - 57 / SUM ( + 44 ) * ( + + 56 ) + COUNT ( * ) + + 54 + + 13 col1
----
12

query I rowsort
SELECT ALL - + 44
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT - - COALESCE ( - 80, + 65 * - MAX( 69 ), 25 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT - - COALESCE ( - 80, + 65 * - MAX ( 69 ), 25 ) AS col1
----
-80

query I rowsort
SELECT ALL - ( - - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT + COUNT( * ) - - - ( - 32 )
----
33

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT + COUNT ( * ) - - - ( - 32 )
----
33

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

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

query I rowsort
SELECT 15 * - 50 AS col0
----
-750

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2075
SELECT COALESCE ( ( + 62 ), + + COUNT( * ) * - + COUNT( * ) ) + + - CASE - 91 WHEN + + 29 * - + 82 THEN NULLIF ( - NULLIF ( - + 26, + COUNT( * ) - ( - + 68 ) * + ( COUNT( * ) ) ), + - 99 ) ELSE 41 DIV - MIN( + + 25 ) + + 14 - + + 99 END * 68 * - 86, - COUNT( * ) AS col1
----
-502866
-1

skipif mysql # not compatible
query II rowsort label-2075
SELECT COALESCE ( ( + 62 ), + + COUNT ( * ) * - + COUNT ( * ) ) + + - CASE - 91 WHEN + + 29 * - + 82 THEN NULLIF ( - NULLIF ( - + 26, + COUNT ( * ) - ( - + 68 ) * + ( COUNT ( * ) ) ), + - 99 ) ELSE 41 / - MIN ( + + 25 ) + + 14 - + + 99 END * 68 * - 86, - COUNT ( * ) AS col1
----
-502866
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2076
SELECT DISTINCT - ( - NULLIF ( 53, - CASE + - 73 WHEN - + ( + 48 ) * SUM( DISTINCT - - 75 ) * - 28 + - 10 * - 21 / + - 23 THEN NULL WHEN - 49 * + + COALESCE ( + 53, COUNT( * ) * COALESCE ( + 80, 55 * + + NULLIF ( - MIN( DISTINCT + ( - 89 ) ), - - 57 ) + 40 / + + 64 + + CAST( 70 AS SIGNED ) ) + + 97, 76 - MAX( 13 ) * 25 ) * 5 + 53 * - 29 THEN 81 ELSE NULL END * 36 ) ) col2
----
53

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT - ( - NULLIF ( 53, - CASE + - 73 WHEN - + ( + 48 ) * SUM ( DISTINCT - - 75 ) * - 28 + - 10 * - 21 / + - 23 THEN NULL WHEN - 49 * + + COALESCE ( + 53, COUNT ( * ) * COALESCE ( + 80, 55 * + + NULLIF ( - MIN ( DISTINCT + ( - 89 ) ), - - 57 ) + 40 / + + 64 + + CAST ( 70 AS INTEGER ) ) + + 97, 76 - MAX ( 13 ) * 25 ) * 5 + 53 * - 29 THEN 81 ELSE NULL END * 36 ) ) col2
----
53

query I rowsort
SELECT DISTINCT - ( + + 1 ) col0
----
-1

query I rowsort
SELECT 26 * + 60 AS col1
----
1560

query I rowsort
SELECT 62 + + 42 AS col1
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-2080
SELECT 29 AS col1, COUNT( * ) * + - 49 - + 1
----
29
-50

skipif mysql # not compatible
query II rowsort label-2080
SELECT 29 AS col1, COUNT ( * ) * + - 49 - + 1
----
29
-50

query I rowsort
SELECT 52 * + 29 AS col2
----
1508

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

query I rowsort
SELECT DISTINCT + 30 + + 10 - + + 37 * ( - 38 ) AS col1
----
1446

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT ALL 81 + 65 + + CAST( - 82 AS SIGNED ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL 81 + 65 + + CAST ( - 82 AS INTEGER ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL 39 * + 63 * - 70 * - 73 * - COUNT( * )
----
-12555270

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL 39 * + 63 * - 70 * - 73 * - COUNT ( * )
----
-12555270

query I rowsort
SELECT DISTINCT 98 + 8
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2087
SELECT DISTINCT 65, ( + 82 ) + MIN( + 85 ) + + CAST( NULL AS SIGNED ) + - 84 / - + ( + - 84 ) * - 38 * 46 AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-2087
SELECT DISTINCT 65, ( + 82 ) + MIN ( + 85 ) + + CAST ( NULL AS INTEGER ) + - 84 / - + ( + - 84 ) * - 38 * 46 AS col0
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ALL 33 + 14 + MAX( ALL + - ( + 33 ) )
----
14

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL 33 + 14 + MAX ( ALL + - ( + 33 ) )
----
14

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

query II rowsort
SELECT ALL 45 * - ( + 93 ), 70 AS col0
----
-4185
70

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2092
SELECT - 74 AS col1, + CASE + NULLIF ( - - 10, + - COUNT( * ) ) WHEN + 5 THEN + 65 + - 13 END
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-2092
SELECT - 74 AS col1, + CASE + NULLIF ( - - 10, + - COUNT ( * ) ) WHEN + 5 THEN + 65 + - 13 END
----
-74
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - - 30, + + 91 )
----
30

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2095
SELECT COUNT( * ) * - COUNT( * ) * - 30 AS col1, SUM( ALL 92 )
----
30
92

skipif mysql # not compatible
query II rowsort label-2095
SELECT COUNT ( * ) * - COUNT ( * ) * - 30 AS col1, SUM ( ALL 92 )
----
30
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2096
SELECT DISTINCT 66 - + CAST( - 9 AS SIGNED ) * ( + 76 ) DIV + 28 AS col1, 23 AS col2
----
90
23

skipif mysql # not compatible
query II rowsort label-2096
SELECT DISTINCT 66 - + CAST ( - 9 AS INTEGER ) * ( + 76 ) / + 28 AS col1, 23 AS col2
----
90
23

query II rowsort
SELECT ALL - 22 AS col2, 57
----
-22
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2099
SELECT ALL MIN( 90 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL MIN ( 90 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 12 * - 19 AS col2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT - COUNT( * ) + + + NULLIF ( + ( + - 33 ), 92 * - - CASE + 73 WHEN - + 31 THEN NULL WHEN - + 13 - NULLIF ( ( - 15 ), + 37 * - 48 ) THEN - - 99 ELSE - NULLIF ( + - 26, - CASE ( 46 ) WHEN + + 55 * 82 THEN + CASE - + 60 WHEN CASE - COUNT( * ) WHEN - - 35 THEN + 96 * 65 + 26 END THEN + SUM( ALL 7 ) - + 34 END WHEN - 84 + 31 THEN + 63 / + 75 WHEN - 91 THEN NULL END ) + 16 END ) * - 58
----
1913

skipif mysql # not compatible
query I rowsort label-2101
SELECT - COUNT ( * ) + + + NULLIF ( + ( + - 33 ), 92 * - - CASE + 73 WHEN - + 31 THEN NULL WHEN - + 13 - NULLIF ( ( - 15 ), + 37 * - 48 ) THEN - - 99 ELSE - NULLIF ( + - 26, - CASE ( 46 ) WHEN + + 55 * 82 THEN + CASE - + 60 WHEN CASE - COUNT ( * ) WHEN - - 35 THEN + 96 * 65 + 26 END THEN + SUM ( ALL 7 ) - + 34 END WHEN - 84 + 31 THEN + 63 / + 75 WHEN - 91 THEN NULL END ) + 16 END ) * - 58
----
1913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2102
SELECT 4 - - COUNT( * ) DIV ( 93 )
----
4

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

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

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL COUNT ( + 16 ) * + - 46 AS col1
----
-46

query I rowsort
SELECT - 25 + + + 58 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT + NULLIF ( - 6, + 68 - + 82 + - - COUNT( * ) + MIN( ALL 92 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-2105
SELECT + NULLIF ( - 6, + 68 - + 82 + - - COUNT ( * ) + MIN ( ALL 92 ) )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2106
SELECT ( 77 ) + + 1 + CAST( + + 51 AS SIGNED ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-2106
SELECT ( 77 ) + + 1 + CAST ( + + 51 AS INTEGER ) AS col1
----
129

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

skipif mysql # not compatible
query I rowsort label-2107
SELECT + 17 / 32
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT + 61 + + 10 - + CAST( + 12 AS SIGNED ) * + + 33 AS col2
----
-325

skipif mysql # not compatible
query I rowsort label-2108
SELECT + 61 + + 10 - + CAST ( + 12 AS INTEGER ) * + + 33 AS col2
----
-325

query I rowsort
SELECT ALL + 49 * - 27
----
-1323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2110
SELECT ALL 40 * NULLIF ( + 22, + CASE + 97 WHEN 93 THEN NULL WHEN + + 13 * - 59 / + + COUNT( * ) THEN - + 68 END ) * MAX( DISTINCT CAST( + 6 AS SIGNED ) ) AS col1
----
5280

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL 40 * NULLIF ( + 22, + CASE + 97 WHEN 93 THEN NULL WHEN + + 13 * - 59 / + + COUNT ( * ) THEN - + 68 END ) * MAX ( DISTINCT CAST ( + 6 AS INTEGER ) ) AS col1
----
5280

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT ALL + 68 DIV - + 12 col2
----
-5

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL + 68 / - + 12 col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2112
SELECT ALL - 50 AS col0, - 37 * COUNT( * ) DIV - COUNT( * ) AS col1
----
-50
37

skipif mysql # not compatible
query II rowsort label-2112
SELECT ALL - 50 AS col0, - 37 * COUNT ( * ) / - COUNT ( * ) AS col1
----
-50
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2113
SELECT ALL - 71 * - - 8 + COALESCE ( + 54, + 38 / 47 * + CASE - - 29 WHEN - 29 * 38 THEN - - CAST( NULL AS SIGNED ) ELSE + + 52 END + + - COUNT( * ) * - 82 / 68 ) + - CAST( NULL AS DECIMAL ) + - + 37 + + 86 + + CAST( NULL AS SIGNED ) * - + 29 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL - 71 * - - 8 + COALESCE ( + 54, + 38 / 47 * + CASE - - 29 WHEN - 29 * 38 THEN - - CAST ( NULL AS INTEGER ) ELSE + + 52 END + + - COUNT ( * ) * - 82 / 68 ) + - CAST ( NULL AS REAL ) + - + 37 + + 86 + + CAST ( NULL AS INTEGER ) * - + 29 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2114
SELECT ALL 42 * 26 * - CAST( - 64 AS SIGNED ) + - 45 - + 95 + MAX( DISTINCT 82 ) * - - 40 * - 26
----
-15532

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL 42 * 26 * - CAST ( - 64 AS INTEGER ) + - 45 - + 95 + MAX ( DISTINCT 82 ) * - - 40 * - 26
----
-15532

query I rowsort
SELECT DISTINCT + 58 * + + 32 + - 62 AS col1
----
1794

onlyif mysql # aggregate syntax: 
query III rowsort label-2116
SELECT ( 81 ) * - + 78 + COUNT( * ) AS col1, 59 AS col2, + 17 * 63 AS col1
----
-6317
59
1071

skipif mysql # not compatible
query III rowsort label-2116
SELECT ( 81 ) * - + 78 + COUNT ( * ) AS col1, 59 AS col2, + 17 * 63 AS col1
----
-6317
59
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT + NULLIF ( - - 30, - - CASE + COUNT( * ) WHEN + 85 THEN 72 END ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2117
SELECT + NULLIF ( - - 30, - - CASE + COUNT ( * ) WHEN + 85 THEN 72 END ) AS col2
----
30

query I rowsort
SELECT - 5 * + + 18
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2119
SELECT ALL 79 * NULLIF ( + COALESCE ( - - COUNT( * ), + 43 * + CAST( - 64 AS SIGNED ) DIV - 73 * CASE + 28 WHEN + COUNT( * ) THEN + 7 * + - 32 - - + 63 ELSE - 21 END DIV - - COUNT( * ) ), + CAST( NULL AS SIGNED ) * 71 + 87 ) + + 65 + 81 AS col0
----
225

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL 79 * NULLIF ( + COALESCE ( - - COUNT ( * ), + 43 * + CAST ( - 64 AS INTEGER ) / - 73 * CASE + 28 WHEN + COUNT ( * ) THEN + 7 * + - 32 - - + 63 ELSE - 21 END / - - COUNT ( * ) ), + CAST ( NULL AS INTEGER ) * 71 + 87 ) + + 65 + 81 AS col0
----
225

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

skipif mysql # not compatible
query I rowsort label-2120
SELECT 7 * - + COUNT ( * ) - + 88 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT + COUNT( - 80 ) * + - 38 + 29 + - 37 + 49
----
3

skipif mysql # not compatible
query I rowsort label-2121
SELECT + COUNT ( - 80 ) * + - 38 + 29 + - 37 + 49
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2122
SELECT ALL - 16 * - - 98 * + 12 * - 14 * 30 * - CASE - 12 WHEN + 21 THEN NULL WHEN + + 85 THEN NULL WHEN 88 + + 10 / - 2 * + 19 THEN - 34 * 34 * - 66 + 14 - CAST( NULL AS SIGNED ) * + 54 END / - COUNT( * ) + + ( + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL - 16 * - - 98 * + 12 * - 14 * 30 * - CASE - 12 WHEN + 21 THEN NULL WHEN + + 85 THEN NULL WHEN 88 + + 10 / - 2 * + 19 THEN - 34 * 34 * - 66 + 14 - CAST ( NULL AS INTEGER ) * + 54 END / - COUNT ( * ) + + ( + 44 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT - COUNT( + 35 ) * + 90
----
-90

skipif mysql # not compatible
query I rowsort label-2123
SELECT - COUNT ( + 35 ) * + 90
----
-90

query I rowsort
SELECT DISTINCT + COALESCE ( - 41, - 81 ) AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2125
SELECT ALL - 44 + + - 52 + ( + 17 ) + + - 51 * + 80 + - CASE COALESCE ( + 69, 55 ) WHEN - 62 THEN + + 82 / - - 99 * - + 95 + - 18 * + ( CASE MAX( - 87 ) WHEN + 18 * + 55 - - - 45 THEN + SUM( 3 ) * - 35 + + 46 * - 53 END ) + - - COUNT( * ) * + 0 + - 13 * - 89 END - MAX( DISTINCT - 38 + + 88 ) * + CAST( NULL AS SIGNED ) / 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL - 44 + + - 52 + ( + 17 ) + + - 51 * + 80 + - CASE COALESCE ( + 69, 55 ) WHEN - 62 THEN + + 82 / - - 99 * - + 95 + - 18 * + ( CASE MAX ( - 87 ) WHEN + 18 * + 55 - - - 45 THEN + SUM ( 3 ) * - 35 + + 46 * - 53 END ) + - - COUNT ( * ) * + 0 + - 13 * - 89 END - MAX ( DISTINCT - 38 + + 88 ) * + CAST ( NULL AS INTEGER ) / 29
----
NULL

query I rowsort
SELECT - 63 - - 68 AS col2
----
5

query I rowsort
SELECT + 53 * + 15 * + 45 - - 67
----
35842

query I rowsort
SELECT ALL + 8 + + 88 * - 36 + 62 * - 32
----
-5144

query I rowsort
SELECT ALL NULLIF ( 91, - 13 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT - 9 + + MAX( + 84 ) + - 78 * + 5 * CAST( + - 23 AS SIGNED ) AS col0
----
9045

skipif mysql # not compatible
query I rowsort label-2130
SELECT - 9 + + MAX ( + 84 ) + - 78 * + 5 * CAST ( + - 23 AS INTEGER ) AS col0
----
9045

query I rowsort
SELECT DISTINCT NULLIF ( 57, NULLIF ( + 79, - - 10 + 43 * ( 56 ) + + 59 ) * - - 46 ) AS col2
----
57

query I rowsort
SELECT + 9 * ( - 49 )
----
-441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT - - 60 + - 46 - + 0 * 61 * 72 * CAST( NULL AS SIGNED ) - + - 73 * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2133
SELECT - - 60 + - 46 - + 0 * 61 * 72 * CAST ( NULL AS INTEGER ) - + - 73 * + 61
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL + 90 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - COALESCE ( + 51, - + 23 * - 37 ) + + 42 * + + 62
----
2553

onlyif mysql # DIV for integer division: 
query I rowsort label-2136
SELECT - 38 DIV + + 30 + + + 33 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2136
SELECT - 38 / + + 30 + + + 33 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL CASE - 64 WHEN + + COUNT( + 78 ) THEN NULL WHEN 56 * + 41 THEN - 32 WHEN COUNT( * ) THEN NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL CASE - 64 WHEN + + COUNT ( + 78 ) THEN NULL WHEN 56 * + 41 THEN - 32 WHEN COUNT ( * ) THEN NULL END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT + 52 * + 94 + COUNT( * ) AS col1
----
4889

skipif mysql # not compatible
query I rowsort label-2138
SELECT + 52 * + 94 + COUNT ( * ) AS col1
----
4889

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT + - NULLIF ( + 24, - 84 ) + + + 63 - - + 41 + - 7 + + MAX( 97 ) AS col2
----
170

skipif mysql # not compatible
query I rowsort label-2139
SELECT + - NULLIF ( + 24, - 84 ) + + + 63 - - + 41 + - 7 + + MAX ( 97 ) AS col2
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2140
SELECT DISTINCT - - 33 * + MIN( - + 95 ) - ( ( + COUNT( * ) ) ) + - COUNT( * ) * 34 * - COALESCE ( - CAST( NULL AS SIGNED ), + 28 ) AS col2
----
-2184

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT - - 33 * + MIN ( - + 95 ) - ( ( + COUNT ( * ) ) ) + - COUNT ( * ) * 34 * - COALESCE ( - CAST ( NULL AS INTEGER ), + 28 ) AS col2
----
-2184

onlyif mysql # aggregate syntax: 
query II rowsort label-2141
SELECT + + 44 + - - 58 + + 24 * - + 92 col1, - COUNT( ALL + 30 ) * + 80 - + 54
----
-2106
-134

skipif mysql # not compatible
query II rowsort label-2141
SELECT + + 44 + - - 58 + + 24 * - + 92 col1, - COUNT ( ALL + 30 ) * + 80 - + 54
----
-2106
-134

query II rowsort
SELECT - - 33 * - - 29 AS col2, - NULLIF ( - 0, + + 2 )
----
957
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2143
SELECT + - COALESCE ( 95, - - 8, + ( - 82 ), 26 + + 12 ) * - - 50 + + + MIN( - - CAST( - 53 AS SIGNED ) )
----
-4803

skipif mysql # not compatible
query I rowsort label-2143
SELECT + - COALESCE ( 95, - - 8, + ( - 82 ), 26 + + 12 ) * - - 50 + + + MIN ( - - CAST ( - 53 AS INTEGER ) )
----
-4803

query I rowsort
SELECT + - ( - 3 ) + - - ( + + 31 ) + + + 21 AS col0
----
55

query I rowsort
SELECT - + CASE 87 WHEN + 52 THEN - + AVG ( DISTINCT + 35 ) * + 42 * + 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT COALESCE ( + COUNT( * ), ( + + 98 ), - 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2146
SELECT COALESCE ( + COUNT ( * ), ( + + 98 ), - 20 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2147
SELECT + 54 * + + COUNT( * ) * ( + - 75 ), + 41 DIV + 98 AS col0
----
-4050
0

skipif mysql # not compatible
query II rowsort label-2147
SELECT + 54 * + + COUNT ( * ) * ( + - 75 ), + 41 / + 98 AS col0
----
-4050
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT DISTINCT + 61 + 46 - + 65 - + 55 DIV - 88 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT + 61 + 46 - + 65 - + 55 / - 88 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2149
SELECT DISTINCT + 39 * + 21 AS col2, 68 + + 74 + + 6 + - 7 + CAST( NULL AS SIGNED ) + - + 15 * CAST( NULL AS SIGNED ) * + + 94
----
819
NULL

skipif mysql # not compatible
query II rowsort label-2149
SELECT DISTINCT + 39 * + 21 AS col2, 68 + + 74 + + 6 + - 7 + CAST ( NULL AS INTEGER ) + - + 15 * CAST ( NULL AS INTEGER ) * + + 94
----
819
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 34 + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 34 + + 41
----
NULL

query I rowsort
SELECT ALL 12 * 94
----
1128

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL 6 * + + 61 + COUNT( * ) * - + 31 + + COUNT( * ) * + + COUNT( * )
----
336

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL 6 * + + 61 + COUNT ( * ) * - + 31 + + COUNT ( * ) * + + COUNT ( * )
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT ALL COUNT( - 74 ) * - 37 + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL COUNT ( - 74 ) * - 37 + COUNT ( * )
----
-36

query I rowsort
SELECT + NULLIF ( + + 43, 52 ) AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2157
SELECT + SUM( DISTINCT 69 ) DIV + - NULLIF ( + + 45, + 88 * + ( - + 6 ) - COUNT( * ) ) - NULLIF ( - 83, + COUNT( * ) * + 73 )
----
82

skipif mysql # not compatible
query I rowsort label-2157
SELECT + SUM ( DISTINCT 69 ) / + - NULLIF ( + + 45, + 88 * + ( - + 6 ) - COUNT ( * ) ) - NULLIF ( - 83, + COUNT ( * ) * + 73 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + COALESCE ( - 62, MIN( + + 95 ) + + COUNT( * ) ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + COALESCE ( - 62, MIN ( + + 95 ) + + COUNT ( * ) ) AS col0
----
-62

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

query I rowsort
SELECT ALL + 4 * + 99 * 46 + + 70 AS col2
----
18286

query I rowsort
SELECT ( 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL 62 * + + ( + COALESCE ( + 54, + + 9 ) ) + COUNT( * ) AS col1
----
3349

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL 62 * + + ( + COALESCE ( + 54, + + 9 ) ) + COUNT ( * ) AS col1
----
3349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2163
SELECT - 22 * CASE + CAST( NULL AS SIGNED ) WHEN + 15 THEN + 96 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT - 22 * CASE + CAST ( NULL AS INTEGER ) WHEN + 15 THEN + 96 END col0
----
NULL

query I rowsort
SELECT + ( + NULLIF ( + - 80, + 9 ) ) AS col1
----
-80

query I rowsort
SELECT - 39 + 99
----
60

query I rowsort
SELECT - CASE + - 89 WHEN 36 + 68 THEN - 50 * 2 END * ( ( + + 13 ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2167
SELECT + 87 * + SUM( CAST( NULL AS SIGNED ) ) + - - CAST( - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) * - + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT + 87 * + SUM ( CAST ( NULL AS INTEGER ) ) + - - CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) * - + 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2168
SELECT CASE + 42 WHEN - 71 * SUM( + - 18 ) - + 83 * 39 * - 50 THEN NULL ELSE - 83 + 95 DIV - 90 END
----
-84

skipif mysql # not compatible
query I rowsort label-2168
SELECT CASE + 42 WHEN - 71 * SUM ( + - 18 ) - + 83 * 39 * - 50 THEN NULL ELSE - 83 + 95 / - 90 END
----
-84

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

skipif mysql # not compatible
query I rowsort label-2169
SELECT COALESCE ( - - COUNT ( * ), + ( - 63 ) + - + 45 )
----
1

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

query II rowsort
SELECT 79 AS col1, + 55
----
79
55

query II rowsort
SELECT ALL + 0, 25 + - 28 col1
----
0
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT - 72 DIV + - 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2174
SELECT - 72 / + - 48 AS col1
----
1

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

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

query I rowsort
SELECT - - 64 col0
----
64

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

skipif mysql # not compatible
query I rowsort label-2177
SELECT + - CAST ( NULL AS INTEGER ) / ( - 73 ) / CAST ( + + 93 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT DISTINCT - 74 DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT - 74 / 98 AS col2
----
0

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

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

query I rowsort
SELECT ALL - 41 * - - 35 AS col1
----
-1435

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT + 5 DIV - 20 + + + 1 + + 57 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2181
SELECT + 5 / - 20 + + + 1 + + 57 AS col0
----
58

query I rowsort
SELECT 92 + - 80
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2183
SELECT + 79 - - 18 DIV + + 44 + + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-2183
SELECT + 79 - - 18 / + + 44 + + + COUNT ( * )
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT + COUNT( * ) + 49 + + 99
----
149

skipif mysql # not compatible
query I rowsort label-2185
SELECT + COUNT ( * ) + 49 + + 99
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT CAST( - - 17 AS SIGNED ) - 75 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-2186
SELECT CAST ( - - 17 AS INTEGER ) - 75 AS col2
----
-58

query I rowsort
SELECT ALL - 91 + 0 AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2188
SELECT CASE + 70 WHEN + - CASE + + 39 WHEN + 75 THEN NULL WHEN - 92 + + 98 * - + 41 THEN ( - ( - 28 ) ) - + + 17 END * - - COUNT( * ) THEN 12 + - ( + 53 ) / - 68 END * - - 97 * + 32 AS col2, CAST( 25 AS SIGNED ) AS col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-2188
SELECT CASE + 70 WHEN + - CASE + + 39 WHEN + 75 THEN NULL WHEN - 92 + + 98 * - + 41 THEN ( - ( - 28 ) ) - + + 17 END * - - COUNT ( * ) THEN 12 + - ( + 53 ) / - 68 END * - - 97 * + 32 AS col2, CAST ( 25 AS INTEGER ) AS col2
----
NULL
25

query I rowsort
SELECT ALL 70 + + 64
----
134

query II rowsort
SELECT ALL - 26 AS col1, ( ( + - 62 ) ) * - 93 AS col2
----
-26
5766

query I rowsort
SELECT + 27 * - 70 + - 80
----
-1970

query I rowsort
SELECT ALL + 25 + - + ( + 60 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2193
SELECT DISTINCT - COUNT( * ) AS col2, 46 * 74 * - 9 col0
----
-1
-30636

skipif mysql # not compatible
query II rowsort label-2193
SELECT DISTINCT - COUNT ( * ) AS col2, 46 * 74 * - 9 col0
----
-1
-30636

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL COUNT( ALL - 24 ) * - 64
----
-64

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL COUNT ( ALL - 24 ) * - 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL 16 - - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL 16 - - COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2196
SELECT + 46 AS col2, - CASE - COUNT( * ) WHEN + MAX( + + 69 ) THEN - + ( - 2 ) END AS col0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-2196
SELECT + 46 AS col2, - CASE - COUNT ( * ) WHEN + MAX ( + + 69 ) THEN - + ( - 2 ) END AS col0
----
46
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2197
SELECT 51 + + MAX( CAST( 26 AS SIGNED ) )
----
77

skipif mysql # not compatible
query I rowsort label-2197
SELECT 51 + + MAX ( CAST ( 26 AS INTEGER ) )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2198
SELECT COUNT( DISTINCT - - 66 ) DIV - 16 * 93 + + 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2198
SELECT COUNT ( DISTINCT - - 66 ) / - 16 * 93 + + 69 AS col0
----
69

query I rowsort
SELECT 90 + - 85 AS col1
----
5

query II rowsort
SELECT DISTINCT - 29 AS col0, 4 AS col1
----
-29
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2201
SELECT + 57 col0, - ( CAST( - + 17 AS SIGNED ) ) * - 23
----
57
-391

skipif mysql # not compatible
query II rowsort label-2201
SELECT + 57 col0, - ( CAST ( - + 17 AS INTEGER ) ) * - 23
----
57
-391

query I rowsort
SELECT + 45 * 20 - 52
----
848

onlyif mysql # DIV for integer division: 
query II rowsort label-2203
SELECT 80 DIV - 82 AS col0, - 61 * 29 * 90 + - 24 DIV - 87
----
0
-159210

skipif mysql # not compatible
query II rowsort label-2203
SELECT 80 / - 82 AS col0, - 61 * 29 * 90 + - 24 / - 87
----
0
-159210

query I rowsort
SELECT 15 * + 71
----
1065

query II rowsort
SELECT DISTINCT - 19, 97 + - 39 AS col0
----
-19
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT ALL - SUM( DISTINCT 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL - SUM ( DISTINCT 82 ) AS col0
----
-82

query I rowsort
SELECT DISTINCT 79 * - 39 * - 38 col2
----
117078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2208
SELECT ALL - - COUNT( * ) DIV COALESCE ( - - 1, - MAX( + 44 ) ) * SUM( + - 35 ) + - - 97 * - 12 + + - CAST( + SUM( ALL 36 ) AS SIGNED ) col0
----
-1235

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL - - COUNT ( * ) / COALESCE ( - - 1, - MAX ( + 44 ) ) * SUM ( + - 35 ) + - - 97 * - 12 + + - CAST ( + SUM ( ALL 36 ) AS INTEGER ) col0
----
-1235

query I rowsort
SELECT - ( + + 84 ) - + 60
----
-144

query I rowsort
SELECT + 64 + - + 54 AS col0
----
10

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

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

query I rowsort
SELECT - 87 + 11
----
-76

query I rowsort
SELECT 89 + + 91 AS col1
----
180

query I rowsort
SELECT DISTINCT + + 16 * + 52 AS col1
----
832

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2217
SELECT + COALESCE ( - - 76, - + 59 + - 87, COALESCE ( - + 0, - - 70 * 30 * - - 13 DIV 38 ) + - + 49 * - - 25 ) + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2217
SELECT + COALESCE ( - - 76, - + 59 + - 87, COALESCE ( - + 0, - - 70 * 30 * - - 13 / 38 ) + - + 49 * - - 25 ) + COUNT ( * ) AS col0
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT CASE 22 WHEN - COUNT( * ) THEN NULL ELSE 48 END
----
48

skipif mysql # not compatible
query I rowsort label-2219
SELECT CASE 22 WHEN - COUNT ( * ) THEN NULL ELSE 48 END
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT DISTINCT 6 * + SUM( DISTINCT + - 35 ) * - 65 AS col1
----
13650

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT 6 * + SUM ( DISTINCT + - 35 ) * - 65 AS col1
----
13650

onlyif mysql # aggregate syntax: 
query II rowsort label-2221
SELECT CASE - 18 WHEN + 89 + 91 / - + 41 / + NULLIF ( 23, CASE - 55 WHEN - 14 THEN - + COUNT( * ) ELSE NULL END ) THEN - 29 ELSE NULL END + - 7 * + 31 * - ( - 68 ) * 12 AS col0, + 74 + COALESCE ( - 41, - 25 ) AS col1
----
NULL
33

skipif mysql # not compatible
query II rowsort label-2221
SELECT CASE - 18 WHEN + 89 + 91 / - + 41 / + NULLIF ( 23, CASE - 55 WHEN - 14 THEN - + COUNT ( * ) ELSE NULL END ) THEN - 29 ELSE NULL END + - 7 * + 31 * - ( - 68 ) * 12 AS col0, + 74 + COALESCE ( - 41, - 25 ) AS col1
----
NULL
33

query I rowsort
SELECT ALL - - 74 + + 28
----
102

query I rowsort
SELECT - 63 + + 68
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT DISTINCT - MAX( ALL - 5 ) + - 39 + - 42
----
-76

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT - MAX ( ALL - 5 ) + - 39 + - 42
----
-76

query I rowsort
SELECT ALL + + 61 + 98
----
159

query II rowsort
SELECT 36 AS col0, 55
----
36
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT - COUNT( ALL 29 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2227
SELECT - COUNT ( ALL 29 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT 97 + - 16 + COALESCE ( + 67, - + ( - COUNT( * ) ), - 64 * + COUNT( * ) ) * - - 71 * - 58 AS col1
----
-275825

skipif mysql # not compatible
query I rowsort label-2228
SELECT 97 + - 16 + COALESCE ( + 67, - + ( - COUNT ( * ) ), - 64 * + COUNT ( * ) ) * - - 71 * - 58 AS col1
----
-275825

query I rowsort
SELECT - 30 * 20 + - 79 AS col2
----
-679

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2230
SELECT ALL - 84 DIV - - 69 AS col2, 31, + MAX( ALL + + 53 ) AS col1
----
-1
31
53

skipif mysql # not compatible
query III rowsort label-2230
SELECT ALL - 84 / - - 69 AS col2, 31, + MAX ( ALL + + 53 ) AS col1
----
-1
31
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT DISTINCT - 66 * - ( 67 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT - 66 * - ( 67 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 71 * + ( - ( + 40 ) ) AS col2
----
-2840

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT ALL - 85 DIV - 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - 85 / - 35 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2234
SELECT ALL COUNT( * ) - 86 DIV + - 45
----
2

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL COUNT ( * ) - 86 / + - 45
----
2

query I rowsort
SELECT DISTINCT - 67 * - - 79 AS col2
----
-5293

query I rowsort
SELECT 55 - - 45 AS col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-2237
SELECT ALL + MAX( + 21 ) - - COUNT( * ), 44 AS col1
----
22
44

skipif mysql # not compatible
query II rowsort label-2237
SELECT ALL + MAX ( + 21 ) - - COUNT ( * ), 44 AS col1
----
22
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT 77 + + 1 + COUNT( DISTINCT CAST( - 87 AS SIGNED ) ) * - - ( 92 )
----
170

skipif mysql # not compatible
query I rowsort label-2238
SELECT 77 + + 1 + COUNT ( DISTINCT CAST ( - 87 AS INTEGER ) ) * - - ( 92 )
----
170

query I rowsort
SELECT + ( + - 79 ) * - 74 + + - 62 AS col0
----
5784

onlyif mysql # aggregate syntax: 
query II rowsort label-2240
SELECT ALL - COALESCE ( COUNT( * ), - 86 ) AS col0, NULLIF ( + 31, CASE - ( 98 ) WHEN - 4 - + 35 THEN ( 65 ) WHEN 62 THEN NULL ELSE + + 91 * + + CASE - 39 WHEN - - 9 THEN 30 + - + 8 END END * + 10 )
----
-1
31

skipif mysql # not compatible
query II rowsort label-2240
SELECT ALL - COALESCE ( COUNT ( * ), - 86 ) AS col0, NULLIF ( + 31, CASE - ( 98 ) WHEN - 4 - + 35 THEN ( 65 ) WHEN 62 THEN NULL ELSE + + 91 * + + CASE - 39 WHEN - - 9 THEN 30 + - + 8 END END * + 10 )
----
-1
31

query II rowsort
SELECT ALL - 95 * - + 39, - 28 + 50 AS col1
----
3705
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2242
SELECT SUM( + + 11 ) AS col2, 72 * - 36
----
11
-2592

skipif mysql # not compatible
query II rowsort label-2242
SELECT SUM ( + + 11 ) AS col2, 72 * - 36
----
11
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT COUNT( * ) + + 57 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2243
SELECT COUNT ( * ) + + 57 AS col1
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-2244
SELECT 15 DIV 56 AS col1, 63 AS col1
----
0
63

skipif mysql # not compatible
query II rowsort label-2244
SELECT 15 / 56 AS col1, 63 AS col1
----
0
63

query I rowsort
SELECT 86 * 41 AS col1
----
3526

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT - ( - 82 ) DIV + 24 + 66 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2248
SELECT - ( - 82 ) / + 24 + 66 AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT + 85 * + 98 * + + 14 + ( ( - COALESCE ( + + 65, + 1 + + CASE - 30 WHEN - 11 + - 0 * + 54 THEN ( COUNT( * ) ) + 48 + - 38 ELSE - 34 + - 33 + 66 DIV - 22 END * - - 52 ) ) ) AS col1
----
116555

skipif mysql # not compatible
query I rowsort label-2249
SELECT + 85 * + 98 * + + 14 + ( ( - COALESCE ( + + 65, + 1 + + CASE - 30 WHEN - 11 + - 0 * + 54 THEN ( COUNT ( * ) ) + 48 + - 38 ELSE - 34 + - 33 + 66 / - 22 END * - - 52 ) ) ) AS col1
----
116555

query I rowsort
SELECT ALL + 76 + - 22 AS col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT - - COALESCE ( - ( + 20 ), - 72 DIV - 96, + 89, - 0 )
----
-20

skipif mysql # not compatible
query I rowsort label-2251
SELECT - - COALESCE ( - ( + 20 ), - 72 / - 96, + 89, - 0 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT ALL + NULLIF ( - - 34, - CAST( NULL AS SIGNED ) ) * - 75 AS col2
----
-2550

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL + NULLIF ( - - 34, - CAST ( NULL AS INTEGER ) ) * - 75 AS col2
----
-2550

onlyif mysql # DIV for integer division: 
query I rowsort label-2253
SELECT + 12 DIV - - 44 col0
----
0

skipif mysql # not compatible
query I rowsort label-2253
SELECT + 12 / - - 44 col0
----
0

query I rowsort
SELECT ALL 51 + 2 col0
----
53

query I rowsort
SELECT DISTINCT - 24 col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2256
SELECT DISTINCT + ( + - 10 ) DIV 63 AS col1, - COUNT( * ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-2256
SELECT DISTINCT + ( + - 10 ) / 63 AS col1, - COUNT ( * ) AS col1
----
0
-1

query I rowsort
SELECT + 78 + - 18
----
60

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

skipif mysql # not compatible
query I rowsort label-2258
SELECT + COUNT ( * ) / 52
----
0

query II rowsort
SELECT ALL 17 + + + 26 AS col1, - 46
----
43
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - SUM( ALL + + 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-2260
SELECT - SUM ( ALL + + 36 ) AS col2
----
-36

query I rowsort
SELECT - 61 * - 86 + + 15 * - 17 AS col1
----
4991

onlyif mysql # aggregate syntax: 
query II rowsort label-2262
SELECT ALL - 49 + + 32 AS col0, + COUNT( * ) + + 6 AS col0
----
-17
7

skipif mysql # not compatible
query II rowsort label-2262
SELECT ALL - 49 + + 32 AS col0, + COUNT ( * ) + + 6 AS col0
----
-17
7

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2264
SELECT + + 69 - + 95 AS col2, COUNT( * )
----
-26
1

skipif mysql # not compatible
query II rowsort label-2264
SELECT + + 69 - + 95 AS col2, COUNT ( * )
----
-26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT ALL - COUNT( * ) * - 45 + + 65 col2
----
110

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL - COUNT ( * ) * - 45 + + 65 col2
----
110

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT - CASE COUNT( * ) WHEN - COUNT( ALL + - 78 ) THEN - 29 * + COUNT( * ) WHEN - 64 THEN + 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT - CASE COUNT ( * ) WHEN - COUNT ( ALL + - 78 ) THEN - 29 * + COUNT ( * ) WHEN - 64 THEN + 14 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 71 * - + 76 * - - ( + + 94 ) AS col2
----
507224

query I rowsort
SELECT ALL 11 * - - 20
----
220

query I rowsort
SELECT - 23 * 46 AS col0
----
-1058

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT + CASE + 39 WHEN + + 92 / + 98 THEN NULL WHEN - 47 THEN ( 44 ) + + + 26 * + 11 END + MIN( ALL - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT + CASE + 39 WHEN + + 92 / + 98 THEN NULL WHEN - 47 THEN ( 44 ) + + + 26 * + 11 END + MIN ( ALL - 77 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2273
SELECT - CASE 82 WHEN - - CASE - AVG ( DISTINCT + 5 ) WHEN + 97 * + 0 THEN NULL WHEN + + CASE - - 78 WHEN + 69 THEN - 97 WHEN + - NULLIF ( + - 36, - - SUM( DISTINCT - 53 ) ) THEN - COUNT( * ) * - 85 END THEN - - 29 END * + CAST( NULL AS SIGNED ) * - ( - + COUNT( * ) ) THEN - + 79 WHEN + COALESCE ( + 47, - COUNT( * ) ) THEN + 19 WHEN 53 + - - 63 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT - CASE 82 WHEN - - CASE - AVG ( DISTINCT + 5 ) WHEN + 97 * + 0 THEN NULL WHEN + + CASE - - 78 WHEN + 69 THEN - 97 WHEN + - NULLIF ( + - 36, - - SUM ( DISTINCT - 53 ) ) THEN - COUNT ( * ) * - 85 END THEN - - 29 END * + CAST ( NULL AS INTEGER ) * - ( - + COUNT ( * ) ) THEN - + 79 WHEN + COALESCE ( + 47, - COUNT ( * ) ) THEN + 19 WHEN 53 + - - 63 THEN NULL END col1
----
NULL

query I rowsort
SELECT - 93 * + 78
----
-7254

onlyif mysql # aggregate syntax: 
query II rowsort label-2275
SELECT ALL + COUNT( * ) AS col0, 76
----
1
76

skipif mysql # not compatible
query II rowsort label-2275
SELECT ALL + COUNT ( * ) AS col0, 76
----
1
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT - CAST( + + 39 AS SIGNED ) + 40 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2276
SELECT - CAST ( + + 39 AS INTEGER ) + 40 AS col2
----
1

query I rowsort
SELECT ( 17 ) AS col2
----
17

query II rowsort
SELECT ALL + 25, 42 AS col1
----
25
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2279
SELECT DISTINCT + COALESCE ( 10, - 88 * + 32 + + COUNT( * ), + CASE + - 74 WHEN + + CAST( NULL AS SIGNED ) THEN + ( + 57 ) END + - - 32 - 86 + + + 90, - COALESCE ( - + 92, + 77 ) ) / - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT + COALESCE ( 10, - 88 * + 32 + + COUNT ( * ), + CASE + - 74 WHEN + + CAST ( NULL AS INTEGER ) THEN + ( + 57 ) END + - - 32 - 86 + + + 90, - COALESCE ( - + 92, + 77 ) ) / - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT - ( - COUNT( * ) ) + MAX( DISTINCT + + ( 42 ) )
----
43

skipif mysql # not compatible
query I rowsort label-2280
SELECT - ( - COUNT ( * ) ) + MAX ( DISTINCT + + ( 42 ) )
----
43

query I rowsort
SELECT - 27 * + 31
----
-837

query I rowsort
SELECT DISTINCT + 18 * + + ( - ( + 90 ) )
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT - 97 * + ( + COALESCE ( 76, + + 50, + MIN( + + 22 ) ) ) AS col0
----
-7372

skipif mysql # not compatible
query I rowsort label-2283
SELECT - 97 * + ( + COALESCE ( 76, + + 50, + MIN ( + + 22 ) ) ) AS col0
----
-7372

query I rowsort
SELECT - 3 * + - 18
----
54

query II rowsort
SELECT + + 96 col2, - 45 col0
----
96
-45

query I rowsort
SELECT ALL + 51 * - 56 + + 53 - - 62 AS col1
----
-2741

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT - 82 + - - 95 + - 38 - + 45 * + - 87 * - CASE 77 WHEN + CASE + + ( - 72 ) WHEN - - 87 THEN - 19 - - COUNT( * ) + - COUNT( * ) + + - 43 * - + 11 END THEN COUNT( * ) * + 62 END / - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT - 82 + - - 95 + - 38 - + 45 * + - 87 * - CASE 77 WHEN + CASE + + ( - 72 ) WHEN - - 87 THEN - 19 - - COUNT ( * ) + - COUNT ( * ) + + - 43 * - + 11 END THEN COUNT ( * ) * + 62 END / - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT DISTINCT + CASE - ( + ( - 21 ) ) WHEN + 4 * - 4 * 9 * + 52 THEN 93 + + - 34 * 96 ELSE NULL END * + 82 + - COUNT( ALL 42 ) + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT + CASE - ( + ( - 21 ) ) WHEN + 4 * - 4 * 9 * + 52 THEN 93 + + - 34 * 96 ELSE NULL END * + 82 + - COUNT ( ALL 42 ) + + 47
----
NULL

query I rowsort
SELECT DISTINCT - - COALESCE ( - + 9, 26 ) * - 75 AS col1
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT ALL 61 * - + 42 * COUNT( * ) + - MIN( 15 )
----
-2577

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL 61 * - + 42 * COUNT ( * ) + - MIN ( 15 )
----
-2577

query II rowsort
SELECT ALL + 21, - 69 AS col1
----
21
-69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT DISTINCT + + 72 * - 83 + + 50 + + + 97 + COALESCE ( 32, + ( - COUNT( * ) ) * 22 + + 90 ) * - 4 + + COUNT( * ) * - 70 AS col1
----
-6027

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT + + 72 * - 83 + + 50 + + + 97 + COALESCE ( 32, + ( - COUNT ( * ) ) * 22 + + 90 ) * - 4 + + COUNT ( * ) * - 70 AS col1
----
-6027

query I rowsort
SELECT + 77 * + 97 * - 63 + + - 6
----
-470553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2295
SELECT ALL - COUNT( * ) * 5 * + CAST( - 75 AS SIGNED ) + + 47
----
422

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL - COUNT ( * ) * 5 * + CAST ( - 75 AS INTEGER ) + + 47
----
422

onlyif mysql # DIV for integer division: 
query I rowsort label-2296
SELECT ALL + 95 DIV 11
----
8

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + 95 / 11
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT + + COUNT( ALL 92 ) + + 99 + - 6 - + 74 * + - 7 * 55 col1
----
28584

skipif mysql # not compatible
query I rowsort label-2297
SELECT + + COUNT ( ALL 92 ) + + 99 + - 6 - + 74 * + - 7 * 55 col1
----
28584

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

query I rowsort
SELECT - - 98 + ( + + 1 ) + + NULLIF ( - - ( + 20 ), 30 ) * + - 91 * + 80 - - - 0
----
-145501

query I rowsort
SELECT ALL + 65 col0
----
65

query I rowsort
SELECT ALL + 29 * 71 * + 31 * + + 26
----
1659554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT + NULLIF ( - 40, - 33 * - CAST( NULL AS SIGNED ) + + 37 ) + + - 15 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2302
SELECT + NULLIF ( - 40, - 33 * - CAST ( NULL AS INTEGER ) + + 37 ) + + - 15 AS col1
----
-55

query II rowsort
SELECT ALL + 54 AS col1, - 55 + COALESCE ( + + 4, 20 - - + 55 ) AS col1
----
54
-51

query I rowsort
SELECT + 21 * 70 - - 7 col0
----
1477

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

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

query I rowsort
SELECT ALL 65 - + 78 * - + 11 - + + 37
----
886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2307
SELECT + NULLIF ( NULLIF ( COALESCE ( - 57, - 67 * - ( - - 92 ) DIV - + 91 + + 60 ), - CASE + COUNT( * ) WHEN + + MIN( - 19 ) + - 63 - - MAX( - 60 ) * + + 31 THEN 44 * + 94 * - 19 WHEN + 73 * + 83 + 41 + + 70 + + + 78 + + - 85 * + CAST( NULL AS SIGNED ) * COUNT( * ) DIV + 60 THEN NULL END ), + 89 ) * + 64 AS col0
----
-3648

skipif mysql # not compatible
query I rowsort label-2307
SELECT + NULLIF ( NULLIF ( COALESCE ( - 57, - 67 * - ( - - 92 ) / - + 91 + + 60 ), - CASE + COUNT ( * ) WHEN + + MIN ( - 19 ) + - 63 - - MAX ( - 60 ) * + + 31 THEN 44 * + 94 * - 19 WHEN + 73 * + 83 + 41 + + 70 + + + 78 + + - 85 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) / + 60 THEN NULL END ), + 89 ) * + 64 AS col0
----
-3648

query I rowsort
SELECT + ( 75 ) + + 70 AS col0
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2309
SELECT - COUNT( * ) * - 34 DIV + - 91
----
0

skipif mysql # not compatible
query I rowsort label-2309
SELECT - COUNT ( * ) * - 34 / + - 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT + 11 * + + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2310
SELECT + 11 * + + COUNT ( * ) AS col2
----
11

query I rowsort
SELECT + 76 + - 51 * 25 + + 50 + + - 8 + + + 66
----
-1091

onlyif mysql # aggregate syntax: 
query II rowsort label-2312
SELECT ALL MIN( ALL - - 82 ) AS col1, - ( 91 )
----
82
-91

skipif mysql # not compatible
query II rowsort label-2312
SELECT ALL MIN ( ALL - - 82 ) AS col1, - ( 91 )
----
82
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + MAX( - 50 ) + - + NULLIF ( 1, 16 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-2313
SELECT + MAX ( - 50 ) + - + NULLIF ( 1, 16 ) AS col0
----
-51

query I rowsort
SELECT ALL 63 + - ( - 59 ) AS col2
----
122

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2316
SELECT 68 DIV 39 - + ( - + ( + ( - 48 ) ) )
----
-47

skipif mysql # not compatible
query I rowsort label-2316
SELECT 68 / 39 - + ( - + ( + ( - 48 ) ) )
----
-47

query I rowsort
SELECT 23 * - + 52 + - 41 col1
----
-1237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT - 95 * + - 84 + ( - 13 ) * + - CAST( NULL AS SIGNED ) * + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT - 95 * + - 84 + ( - 13 ) * + - CAST ( NULL AS INTEGER ) * + - 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2319
SELECT CAST( + COUNT( DISTINCT 72 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2319
SELECT CAST ( + COUNT ( DISTINCT 72 ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2320
SELECT ALL + 20 DIV + - 30 + 2 + - + 41 * - SUM( - 36 ) AS col2
----
-1474

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL + 20 / + - 30 + 2 + - + 41 * - SUM ( - 36 ) AS col2
----
-1474

query I rowsort
SELECT + 91 + + CASE - - 56 WHEN - 17 THEN 19 END + 1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2323
SELECT - MAX( - 73 ) DIV 23 * - - 87 AS col2
----
261

skipif mysql # not compatible
query I rowsort label-2323
SELECT - MAX ( - 73 ) / 23 * - - 87 AS col2
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT DISTINCT + 25 DIV 54 - + 55 + - COALESCE ( - 7, - + 96 + + 87 + - + 81 * 15 )
----
-48

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT + 25 / 54 - + 55 + - COALESCE ( - 7, - + 96 + + 87 + - + 81 * 15 )
----
-48

query I rowsort
SELECT ALL + + 59 * + + 66 - - - COALESCE ( - + 38, ( - 71 ) + - 46 ) AS col2
----
3932

query I rowsort
SELECT 64 + 14 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2327
SELECT + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ), + 24 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-2327
SELECT + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ), + 24 AS col2
----
NULL
24

query I rowsort
SELECT + 16 + + 31 + 57 * - 86 AS col0
----
-4855

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2329
SELECT ALL + + 67 * + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL + + 67 * + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 13 * - - 71 + + - 69 AS col0
----
854

query II rowsort
SELECT ALL + - 54 * - - 17 + - - 0 * + - 91 * + - 69 AS col0, 91 * - 14 AS col1
----
-918
-1274

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

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

query I rowsort
SELECT ALL - - 57 AS col1
----
57

query I rowsort
SELECT DISTINCT ( NULLIF ( + + 24, - 18 ) ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL NULLIF ( - + COUNT( * ), + + 78 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL NULLIF ( - + COUNT ( * ), + + 78 ) AS col2
----
-1

query I rowsort
SELECT 13 * ( + 2 )
----
26

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT 55 + + - COALESCE ( 98, - 86 DIV + 91 * - 50, 34 + 32 ) * + 75 * 66
----
-485045

skipif mysql # not compatible
query I rowsort label-2338
SELECT 55 + + - COALESCE ( 98, - 86 / + 91 * - 50, 34 + 32 ) * + 75 * 66
----
-485045

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2339
SELECT 61 * - COALESCE ( - + 64, 89 ) * - 59 AS col2, + CAST( NULL AS SIGNED )
----
-230336
NULL

skipif mysql # not compatible
query II rowsort label-2339
SELECT 61 * - COALESCE ( - + 64, 89 ) * - 59 AS col2, + CAST ( NULL AS INTEGER )
----
-230336
NULL

query I rowsort
SELECT - 31 col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL MAX( ( + + 65 ) ) * - 37 * + ( - + 56 ) col1
----
134680

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL MAX ( ( + + 65 ) ) * - 37 * + ( - + 56 ) col1
----
134680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2342
SELECT SUM( ALL + 30 ) - - 83 DIV - 11 col0
----
23

skipif mysql # not compatible
query I rowsort label-2342
SELECT SUM ( ALL + 30 ) - - 83 / - 11 col0
----
23

query I rowsort
SELECT 96 * - + 78 AS col1
----
-7488

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT DISTINCT - 90 + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT - 90 + COUNT ( * )
----
-89

query I rowsort
SELECT ALL + 36 + - 94 AS col2
----
-58

query II rowsort
SELECT DISTINCT 48 AS col0, 72
----
48
72

query I rowsort
SELECT 80 + - + 53
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT 86 * CAST( - 26 AS SIGNED ) AS col0
----
-2236

skipif mysql # not compatible
query I rowsort label-2348
SELECT 86 * CAST ( - 26 AS INTEGER ) AS col0
----
-2236

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT COUNT( * ) * - 13 * + - COUNT( * ) * 92
----
1196

skipif mysql # not compatible
query I rowsort label-2349
SELECT COUNT ( * ) * - 13 * + - COUNT ( * ) * 92
----
1196

query I rowsort
SELECT 25 - + - 6 AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2351
SELECT 31 DIV - 12 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2351
SELECT 31 / - 12 AS col1
----
-2

query I rowsort
SELECT ALL 9 + - 28 + - - 53 + 51 - + ( + 93 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2353
SELECT + 64, + 63 - + MAX( - 74 ) AS col1
----
64
137

skipif mysql # not compatible
query II rowsort label-2353
SELECT + 64, + 63 - + MAX ( - 74 ) AS col1
----
64
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT COUNT( * ) * + ( - CASE 57 WHEN 53 THEN NULL WHEN COALESCE ( + NULLIF ( + - CASE + 77 WHEN + 34 THEN + 91 END, - ( 71 ) ), - 43 ) + + 19 THEN 15 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2354
SELECT COUNT ( * ) * + ( - CASE 57 WHEN 53 THEN NULL WHEN COALESCE ( + NULLIF ( + - CASE + 77 WHEN + 34 THEN + 91 END, - ( 71 ) ), - 43 ) + + 19 THEN 15 END ) AS col2
----
NULL

query I rowsort
SELECT 15 + 32
----
47

query I rowsort
SELECT - 23 * - + 17 + 76 AS col1
----
467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2357
SELECT ALL + 89 * CAST( NULL AS SIGNED ) * 90 / - + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL + 89 * CAST ( NULL AS INTEGER ) * 90 / - + 64 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2358
SELECT COUNT( DISTINCT CAST( + 94 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-2358
SELECT COUNT ( DISTINCT CAST ( + 94 AS INTEGER ) )
----
1

query I rowsort
SELECT ALL 39 + - 1 AS col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2360
SELECT DISTINCT + 56 * + + 92 * - 96, COUNT( + 88 ) * MIN( + CASE - 88 WHEN + 95 THEN NULL WHEN 56 THEN NULL ELSE - 44 END ) + + 4 + - COUNT( * ) AS col2
----
-494592
-41

skipif mysql # not compatible
query II rowsort label-2360
SELECT DISTINCT + 56 * + + 92 * - 96, COUNT ( + 88 ) * MIN ( + CASE - 88 WHEN + 95 THEN NULL WHEN 56 THEN NULL ELSE - 44 END ) + + 4 + - COUNT ( * ) AS col2
----
-494592
-41

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2363
SELECT DISTINCT ( - 71 ) - + 88 * + MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) / - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT ( - 71 ) - + 88 * + MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) / - 75
----
NULL

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

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

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

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

query I rowsort
SELECT - 94 * - 61 + - - 32 * - 68
----
3558

onlyif mysql # DIV for integer division: 
query I rowsort label-2367
SELECT 28 * + 98 DIV - + 7 AS col1
----
-392

skipif mysql # not compatible
query I rowsort label-2367
SELECT 28 * + 98 / - + 7 AS col1
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT 71 * + COUNT( * ) * + 99
----
7029

skipif mysql # not compatible
query I rowsort label-2368
SELECT 71 * + COUNT ( * ) * + 99
----
7029

query I rowsort
SELECT ALL - - 97 AS col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2370
SELECT - + 63 * - COUNT( * ) DIV + + COUNT( * ) + - 91 + + 80 * COUNT( * ) * - 72 AS col1
----
-5788

skipif mysql # not compatible
query I rowsort label-2370
SELECT - + 63 * - COUNT ( * ) / + + COUNT ( * ) + - 91 + + 80 * COUNT ( * ) * - 72 AS col1
----
-5788

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

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

query I rowsort
SELECT ALL + 71 - 97
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT ALL - 12 DIV + ( - 80 )
----
0

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - 12 / + ( - 80 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2374
SELECT COUNT( - 68 ) + COALESCE ( + + 48, - + COUNT( ALL - 28 ) DIV + ( 64 ) * + 60 + - + 32 * CASE + 86 WHEN + + 70 THEN NULL WHEN 43 * - + COALESCE ( + ( - ( 60 ) ), + 64 + - - CAST( + 48 AS SIGNED ) * - COUNT( * ) + 9, - 90 ) - + + 93 THEN - + 56 DIV + 49 END + 8 + - + 71, - ( - COUNT( * ) ) )
----
49

skipif mysql # not compatible
query I rowsort label-2374
SELECT COUNT ( - 68 ) + COALESCE ( + + 48, - + COUNT ( ALL - 28 ) / + ( 64 ) * + 60 + - + 32 * CASE + 86 WHEN + + 70 THEN NULL WHEN 43 * - + COALESCE ( + ( - ( 60 ) ), + 64 + - - CAST ( + 48 AS INTEGER ) * - COUNT ( * ) + 9, - 90 ) - + + 93 THEN - + 56 / + 49 END + 8 + - + 71, - ( - COUNT ( * ) ) )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2375
SELECT - ( 82 ) DIV 47 * - ( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-2375
SELECT - ( 82 ) / 47 * - ( + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT - COUNT( DISTINCT + 88 ) * + ( ( + 13 ) ) * 97 + - + 44 * + 55
----
-3681

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT - COUNT ( DISTINCT + 88 ) * + ( ( + 13 ) ) * 97 + - + 44 * + 55
----
-3681

query I rowsort
SELECT + 47 + 84 AS col0
----
131

query I rowsort
SELECT + 18 * - 47 + 49 col0
----
-797

query I rowsort
SELECT 30 * - 82 AS col1
----
-2460

query I rowsort
SELECT 0 + 12
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2381
SELECT ALL + MAX( - 58 ) * 14 DIV + + 91 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL + MAX ( - 58 ) * 14 / + + 91 AS col0
----
-8

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

skipif mysql # not compatible
query I rowsort label-2382
SELECT 71 + COUNT ( * ) AS col0
----
72

query II rowsort
SELECT 37 AS col2, 50 / + CASE 9 WHEN 29 THEN + 78 ELSE NULL END col2
----
37
NULL

query I rowsort
SELECT 9 + 96 + + ( - 3 )
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2385
SELECT 80 + + + CASE - 73 WHEN - + COUNT( * ) THEN - 62 * + 20 + + - 0 + CASE + 79 WHEN + 14 THEN NULL WHEN - + 40 * 76 / MIN( ALL - 46 ) THEN + 40 - CAST( NULL AS SIGNED ) END WHEN COUNT( * ) + 16 THEN NULL END * 44 + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT 80 + + + CASE - 73 WHEN - + COUNT ( * ) THEN - 62 * + 20 + + - 0 + CASE + 79 WHEN + 14 THEN NULL WHEN - + 40 * 76 / MIN ( ALL - 46 ) THEN + 40 - CAST ( NULL AS INTEGER ) END WHEN COUNT ( * ) + 16 THEN NULL END * 44 + 10 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 29 * - - 92
----
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT - 22 + - ( - 7 ) + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT - 22 + - ( - 7 ) + - COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT DISTINCT + MIN( 43 ) + - 79 - - 93
----
57

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT + MIN ( 43 ) + - 79 - - 93
----
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2390
SELECT 80 * + CAST( + - 62 AS SIGNED ) * CASE CASE + - COUNT( * ) WHEN + 93 THEN + 86 END WHEN CASE + ( 61 ) WHEN 66 THEN - CAST( 59 AS SIGNED ) ELSE NULL END * - + 94 THEN NULL WHEN - 32 THEN + + 84 * - + 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT 80 * + CAST ( + - 62 AS INTEGER ) * CASE CASE + - COUNT ( * ) WHEN + 93 THEN + 86 END WHEN CASE + ( 61 ) WHEN 66 THEN - CAST ( 59 AS INTEGER ) ELSE NULL END * - + 94 THEN NULL WHEN - 32 THEN + + 84 * - + 75 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2391
SELECT COUNT( * ) + - COALESCE ( COALESCE ( - SUM( - CAST( + + 88 AS SIGNED ) ), + 61 ), + 66 + + 55 )
----
-87

skipif mysql # not compatible
query I rowsort label-2391
SELECT COUNT ( * ) + - COALESCE ( COALESCE ( - SUM ( - CAST ( + + 88 AS INTEGER ) ), + 61 ), + 66 + + 55 )
----
-87

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

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL MIN ( 52 )
----
52

query I rowsort
SELECT 5 * + + 6
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL + COUNT( * ) + - 38
----
-37

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL + COUNT ( * ) + - 38
----
-37

query II rowsort
SELECT ALL 63 AS col2, 99 + + 45 * + + ( 48 ) * - - 4 + + 36 AS col1
----
63
8775

query I rowsort
SELECT 21 + - 56 + 30 * + 50 + + 13
----
1478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2397
SELECT DISTINCT + COUNT( + 73 ) + + + 99 DIV COUNT( * ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT + COUNT ( + 73 ) + + + 99 / COUNT ( * ) AS col1
----
100

query I rowsort
SELECT ALL + 42 - 1 * - - 22 AS col2
----
20

query I rowsort
SELECT DISTINCT - + 25 * + - 50
----
1250

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2400
SELECT 68 DIV + - 43 * - 22 DIV - CAST( + 20 AS SIGNED ) - + 44 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2400
SELECT 68 / + - 43 * - 22 / - CAST ( + 20 AS INTEGER ) - + 44 AS col2
----
-45

query II rowsort
SELECT + 76 * + - 70 AS col2, 92 AS col0
----
-5320
92

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2403
SELECT + + COALESCE ( 15, - 46 ) DIV COALESCE ( + + ( - 28 ), + + 68 ) + - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2403
SELECT + + COALESCE ( 15, - 46 ) / COALESCE ( + + ( - 28 ), + + 68 ) + - - COUNT ( * ) AS col2
----
1

query II rowsort
SELECT ALL + + 68 AS col2, - 4 * - 15 + 16 + - 46
----
68
30

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2406
SELECT CAST( + CASE + COUNT( ALL NULLIF ( - 80, - 3 * + 52 ) ) WHEN - - 26 * + + 97 - - + CAST( NULL AS SIGNED ) * + - 3 THEN + COUNT( * ) * + 66 + + 84 - - 0 WHEN + - MAX( 4 ) * - + COUNT( * ) * - - ( + + NULLIF ( - + SUM( + - 37 ), + - 65 - 1 + - 4 * 64 + + + 19 ) ) THEN + CASE 53 WHEN - MIN( + 20 ) THEN + 61 ELSE NULL END * - 65 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT CAST ( + CASE + COUNT ( ALL NULLIF ( - 80, - 3 * + 52 ) ) WHEN - - 26 * + + 97 - - + CAST ( NULL AS INTEGER ) * + - 3 THEN + COUNT ( * ) * + 66 + + 84 - - 0 WHEN + - MAX ( 4 ) * - + COUNT ( * ) * - - ( + + NULLIF ( - + SUM ( + - 37 ), + - 65 - 1 + - 4 * 64 + + + 19 ) ) THEN + CASE 53 WHEN - MIN ( + 20 ) THEN + 61 ELSE NULL END * - 65 ELSE NULL END AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + + 95, + 85 * 35 col1
----
95
2975

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT ALL + + 34, ( - - 81 ) * - COUNT( * ) col2
----
34
-81

skipif mysql # not compatible
query II rowsort label-2408
SELECT ALL + + 34, ( - - 81 ) * - COUNT ( * ) col2
----
34
-81

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

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

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

query II rowsort
SELECT ALL + - 18, + 57 col0
----
-18
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2412
SELECT + + ( - 72 ) * COALESCE ( - 55, - - SUM( DISTINCT 8 ) * - - 38 + - - 15 + + COUNT( * ) * 51, - 51 * + - 44 - + + 66 ) + + + 1 AS col2, 67 * - ( 72 ) + + + COALESCE ( - + 48, + 71 ) + + 79 + + 24 + - COUNT( + 55 ) + + AVG ( ALL - 16 ) + + + 76 * - AVG ( ALL 52 ) / - 4 * + 28 + + + 32 + - 83 + + + 86 - + + 79 * + 5 + - 20 * + 51 * 53 * + CASE 87 WHEN + CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN + CAST( NULL AS SIGNED ) END * - 75 THEN NULL WHEN + NULLIF ( - NULLIF ( 70, 39 ), + 12 + + 88 ) + - 9 THEN - 3 ELSE NULL END AS col1
----
3961
NULL

skipif mysql # not compatible
query II rowsort label-2412
SELECT + + ( - 72 ) * COALESCE ( - 55, - - SUM ( DISTINCT 8 ) * - - 38 + - - 15 + + COUNT ( * ) * 51, - 51 * + - 44 - + + 66 ) + + + 1 AS col2, 67 * - ( 72 ) + + + COALESCE ( - + 48, + 71 ) + + 79 + + 24 + - COUNT ( + 55 ) + + AVG ( ALL - 16 ) + + + 76 * - AVG ( ALL 52 ) / - 4 * + 28 + + + 32 + - 83 + + + 86 - + + 79 * + 5 + - 20 * + 51 * 53 * + CASE 87 WHEN + CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) END * - 75 THEN NULL WHEN + NULLIF ( - NULLIF ( 70, 39 ), + 12 + + 88 ) + - 9 THEN - 3 ELSE NULL END AS col1
----
3961
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2413
SELECT + 74 AS col2, - 46 * + CAST( NULL AS DECIMAL ) * - 12 AS col0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-2413
SELECT + 74 AS col2, - 46 * + CAST ( NULL AS REAL ) * - 12 AS col0
----
74
NULL

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

skipif mysql # not compatible
query I rowsort label-2414
SELECT - COUNT ( 52 )
----
-1

query II rowsort
SELECT ALL + 55 AS col0, - 79
----
55
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT SUM( DISTINCT - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-2417
SELECT SUM ( DISTINCT - 45 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2418
SELECT ALL - 97 * 52 + CAST( NULL AS SIGNED ) + + 55 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL - 97 * 52 + CAST ( NULL AS INTEGER ) + + 55 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL 46 + - + 46 * MAX( + 31 )
----
-1380

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL 46 + - + 46 * MAX ( + 31 )
----
-1380

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2421
SELECT - ( - 5 ) AS col1, CASE - CAST( - 99 AS SIGNED ) WHEN 38 THEN NULL WHEN 52 / + 21 + - 25 + + 90 THEN NULL WHEN + 9 THEN - 5 * - 43 + + 67 END + + 12 AS col2
----
5
NULL

skipif mysql # not compatible
query II rowsort label-2421
SELECT - ( - 5 ) AS col1, CASE - CAST ( - 99 AS INTEGER ) WHEN 38 THEN NULL WHEN 52 / + 21 + - 25 + + 90 THEN NULL WHEN + 9 THEN - 5 * - 43 + + 67 END + + 12 AS col2
----
5
NULL

query I rowsort
SELECT ALL + 36 + + 82
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT + COUNT( * ) + 74 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-2423
SELECT + COUNT ( * ) + 74 AS col0
----
75

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2426
SELECT + CASE CAST( + - 23 AS SIGNED ) WHEN 40 THEN + 17 END + ( + 18 ), SUM( ALL + 79 ) AS col2
----
NULL
79

skipif mysql # not compatible
query II rowsort label-2426
SELECT + CASE CAST ( + - 23 AS INTEGER ) WHEN 40 THEN + 17 END + ( + 18 ), SUM ( ALL + 79 ) AS col2
----
NULL
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2427
SELECT ALL - CASE - 16 WHEN 39 THEN - - 80 WHEN + - COUNT( * ) THEN - CAST( - - 78 AS SIGNED ) * - + COUNT( * ) - 85 - + + 90 WHEN + 51 / + 74 * - CAST( + COUNT( * ) AS SIGNED ) THEN NULL END + - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - CASE - 16 WHEN 39 THEN - - 80 WHEN + - COUNT ( * ) THEN - CAST ( - - 78 AS INTEGER ) * - + COUNT ( * ) - 85 - + + 90 WHEN + 51 / + 74 * - CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL END + - 16 AS col0
----
NULL

query I rowsort
SELECT + 74 - + + 88 AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2429
SELECT - 80 * 59 AS col1, NULLIF ( + + 65, + CAST( - + 54 AS SIGNED ) * + 41 / + - MAX( - 44 ) )
----
-4720
65

skipif mysql # not compatible
query II rowsort label-2429
SELECT - 80 * 59 AS col1, NULLIF ( + + 65, + CAST ( - + 54 AS INTEGER ) * + 41 / + - MAX ( - 44 ) )
----
-4720
65

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT - 3 + 96 + + 32 DIV + + 61 + - 16 * 18 AS col1
----
-195

skipif mysql # not compatible
query I rowsort label-2431
SELECT - 3 + 96 + + 32 / + + 61 + - 16 * 18 AS col1
----
-195

query I rowsort
SELECT ALL - 74 - + 34 AS col1
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2433
SELECT - 21 * - 99 AS col0, 49 + + 83 + + 52 - - CAST( NULL AS SIGNED ) + - - 12 / + 48
----
2079
NULL

skipif mysql # not compatible
query II rowsort label-2433
SELECT - 21 * - 99 AS col0, 49 + + 83 + + 52 - - CAST ( NULL AS INTEGER ) + - - 12 / + 48
----
2079
NULL

query I rowsort
SELECT + 91 + - 43 - - 89 AS col1
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT - 60 - COALESCE ( + ( + 19 ), + 23 * 39, - MAX( ALL - - COALESCE ( - - 36, 8 / - ( 48 ), + ( - + CAST( NULL AS SIGNED ) ) ) ) ) + + - 55 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT - 60 - COALESCE ( + ( + 19 ), + 23 * 39, - MAX ( ALL - - COALESCE ( - - 36, 8 / - ( 48 ), + ( - + CAST ( NULL AS INTEGER ) ) ) ) ) + + - 55 * CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2436
SELECT - NULLIF ( - COUNT ( * ), - + ( 26 ) )
----
1

query I rowsort
SELECT - + NULLIF ( ( - 4 ), 24 ) * NULLIF ( - 24, - - 92 + + - 10 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2438
SELECT CASE CASE 85 WHEN - + CAST( 41 AS SIGNED ) THEN - ( 12 ) * 2 WHEN 62 THEN NULL WHEN - + 12 THEN + 55 ELSE NULL END WHEN - 94 + + + 40 THEN NULL WHEN + 87 THEN CAST( + - 3 AS DECIMAL ) WHEN 63 * 30 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT CASE CASE 85 WHEN - + CAST ( 41 AS INTEGER ) THEN - ( 12 ) * 2 WHEN 62 THEN NULL WHEN - + 12 THEN + 55 ELSE NULL END WHEN - 94 + + + 40 THEN NULL WHEN + 87 THEN CAST ( + - 3 AS REAL ) WHEN 63 * 30 THEN NULL END
----
NULL

query I rowsort
SELECT - + 56 + - 5 + - - 57
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT - 49 * + SUM( DISTINCT + 7 ) * - + 54 col2
----
18522

skipif mysql # not compatible
query I rowsort label-2441
SELECT - 49 * + SUM ( DISTINCT + 7 ) * - + 54 col2
----
18522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2442
SELECT ALL - 34 DIV + ( - COALESCE ( + COALESCE ( 80, COUNT( DISTINCT - 31 ) + COUNT( * ), - - 72 * + 30 * - MAX( ALL + 38 ) + + NULLIF ( + - 53, + 24 DIV + - 17 + + CASE - 70 WHEN + 67 THEN - + 4 END ) - + 0 ), + 58 ) ) - 42
----
-42

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - 34 / + ( - COALESCE ( + COALESCE ( 80, COUNT ( DISTINCT - 31 ) + COUNT ( * ), - - 72 * + 30 * - MAX ( ALL + 38 ) + + NULLIF ( + - 53, + 24 / + - 17 + + CASE - 70 WHEN + 67 THEN - + 4 END ) - + 0 ), + 58 ) ) - 42
----
-42

query I rowsort
SELECT DISTINCT + CASE 40 WHEN - 68 / 32 + - 32 THEN + 52 + 51 * + 58 WHEN + NULLIF ( - + ( + 97 ), 23 ) + + + 62 + + + 71 THEN NULL WHEN 43 / - ( 67 ) * - + NULLIF ( - 52, + - 81 ) + 20 + + 65 + + 78 / + 2 - - - 5 - - + ( + + 70 ) / + - 20 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2444
SELECT ALL - MIN( DISTINCT - 29 ) * - + 91 * - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - MIN ( DISTINCT - 29 ) * - + 91 * - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2445
SELECT - 15 + - - 92 * CAST( 60 AS SIGNED ) * - 68 AS col2
----
-375375

skipif mysql # not compatible
query I rowsort label-2445
SELECT - 15 + - - 92 * CAST ( 60 AS INTEGER ) * - 68 AS col2
----
-375375

query I rowsort
SELECT - + 4 + + 55 - - 39 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT + 47 * COUNT( * ) + - - 72 * - CASE - + NULLIF ( + COUNT( * ), 77 + - 23 ) WHEN SUM( ALL COALESCE ( - ( 41 ), - + 44 * + 30 + - 27 - - - 0 * 18 ) ) THEN - ( + 47 ) * + + 87 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT + 47 * COUNT ( * ) + - - 72 * - CASE - + NULLIF ( + COUNT ( * ), 77 + - 23 ) WHEN SUM ( ALL COALESCE ( - ( 41 ), - + 44 * + 30 + - 27 - - - 0 * 18 ) ) THEN - ( + 47 ) * + + 87 ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT DISTINCT 91 DIV 79
----
1

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT 91 / 79
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT DISTINCT 13 * - 2 - - COUNT( * ) + + 3 + 35 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT 13 * - 2 - - COUNT ( * ) + + 3 + 35 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL + + COALESCE ( + 72, - + 46, + SUM( - 32 ) * - - 32 )
----
72

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + + COALESCE ( + 72, - + 46, + SUM ( - 32 ) * - - 32 )
----
72

query II rowsort
SELECT + ( + 50 ) + 30 * - 28 AS col2, 32 + COALESCE ( - - 94, 51 + + 98 ) AS col2
----
-790
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT ALL 23 * + + 77 * + CAST( - + ( 52 ) AS SIGNED ) + - + NULLIF ( 93, + 33 )
----
-92185

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL 23 * + + 77 * + CAST ( - + ( 52 ) AS INTEGER ) + - + NULLIF ( 93, + 33 )
----
-92185

query II rowsort
SELECT DISTINCT + 28, + 2 AS col0
----
28
2

query II rowsort
SELECT ALL - 37 * - + 59 + - 83 AS col0, 71 AS col1
----
2100
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT + 34 + 96 + + + ( 38 ) + - COUNT( * ) * 0
----
168

skipif mysql # not compatible
query I rowsort label-2455
SELECT + 34 + 96 + + + ( 38 ) + - COUNT ( * ) * 0
----
168

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2457
SELECT ALL + 44 AS col2, + SUM( ALL - 4 )
----
44
-4

skipif mysql # not compatible
query II rowsort label-2457
SELECT ALL + 44 AS col2, + SUM ( ALL - 4 )
----
44
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-2458
SELECT COALESCE ( MAX( 63 ), COUNT( * ) ), + 68 AS col2
----
63
68

skipif mysql # not compatible
query II rowsort label-2458
SELECT COALESCE ( MAX ( 63 ), COUNT ( * ) ), + 68 AS col2
----
63
68

query I rowsort
SELECT + 87 + 79
----
166

query I rowsort
SELECT ALL + 60 * 28 * - 6 + + - 5
----
-10085

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT + SUM( DISTINCT + + 45 ) * - 64 * 98 AS col2
----
-282240

skipif mysql # not compatible
query I rowsort label-2461
SELECT + SUM ( DISTINCT + + 45 ) * - 64 * 98 AS col2
----
-282240

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT + SUM( DISTINCT - 93 ) + - 6
----
-99

skipif mysql # not compatible
query I rowsort label-2462
SELECT + SUM ( DISTINCT - 93 ) + - 6
----
-99

query I rowsort
SELECT + 75 + ( - 39 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT SUM( ALL + + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT SUM ( ALL + + 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT DISTINCT ( + 59 ) * 19 - - MIN( + + 32 )
----
1153

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT ( + 59 ) * 19 - - MIN ( + + 32 )
----
1153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2466
SELECT 24 + CAST( + 94 AS SIGNED ) AS col0
----
118

skipif mysql # not compatible
query I rowsort label-2466
SELECT 24 + CAST ( + 94 AS INTEGER ) AS col0
----
118

query I rowsort
SELECT ALL 33 - 62 + - 98 + - - 86 * + 3 AS col2
----
131

query II rowsort
SELECT DISTINCT 55 col2, 43 AS col0
----
55
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2469
SELECT ALL + 42 - 41 * - MIN( ALL 5 ) + - - NULLIF ( + + 57, + NULLIF ( - 19, + + 61 * - 24 ) * - CAST( - 40 AS DECIMAL ) * 72 + 51 - + COUNT( * ) / 78 * + 22 * - 97 + + + MAX( ( 64 ) ) + + + 25 * - - 84 * + - 9 ) AS col2
----
304

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL + 42 - 41 * - MIN ( ALL 5 ) + - - NULLIF ( + + 57, + NULLIF ( - 19, + + 61 * - 24 ) * - CAST ( - 40 AS REAL ) * 72 + 51 - + COUNT ( * ) / 78 * + 22 * - 97 + + + MAX ( ( 64 ) ) + + + 25 * - - 84 * + - 9 ) AS col2
----
304

query I rowsort
SELECT ( + 59 ) * + + 93 + - 16 AS col2
----
5471

query I rowsort
SELECT 50 + - + 25 * + ( + 44 ) AS col1
----
-1050

query II rowsort
SELECT - 18 AS col2, 98
----
-18
98

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT 87 DIV - 34 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2475
SELECT 87 / - 34 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT COUNT( * ) + + 16 * + + 99 AS col1
----
1585

skipif mysql # not compatible
query I rowsort label-2476
SELECT COUNT ( * ) + + 16 * + + 99 AS col1
----
1585

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2478
SELECT ALL - 49 * + 44 * + 57 AS col1, COUNT( * ) AS col2
----
-122892
1

skipif mysql # not compatible
query II rowsort label-2478
SELECT ALL - 49 * + 44 * + 57 AS col1, COUNT ( * ) AS col2
----
-122892
1

query I rowsort
SELECT 64 + - + 49
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2480
SELECT - 33 + 8 DIV - 75 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2480
SELECT - 33 + 8 / - 75 AS col1
----
-33

query I rowsort
SELECT DISTINCT + CASE 0 WHEN + + 37 * + - 89 THEN - - 96 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 56 * COALESCE ( - 9, - - NULLIF ( + + 50, + + 99 ) ) AS col2
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT + CASE - - 7 WHEN - COALESCE ( 53, - - MAX( DISTINCT + 68 ) ) THEN NULL ELSE - 53 END
----
-53

skipif mysql # not compatible
query I rowsort label-2483
SELECT + CASE - - 7 WHEN - COALESCE ( 53, - - MAX ( DISTINCT + 68 ) ) THEN NULL ELSE - 53 END
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT COUNT( * ) * - COALESCE ( + 42, 93 ) * + 20 * 43
----
-36120

skipif mysql # not compatible
query I rowsort label-2484
SELECT COUNT ( * ) * - COALESCE ( + 42, 93 ) * + 20 * 43
----
-36120

query I rowsort
SELECT ALL + - 3 + 55
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL - + SUM( + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - + SUM ( + 96 )
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT - COALESCE ( - 92, - 78, + 16 ) DIV ( + 61 ) * + + 89 + - 92 * + + 40 AS col1
----
-3591

skipif mysql # not compatible
query I rowsort label-2487
SELECT - COALESCE ( - 92, - 78, + 16 ) / ( + 61 ) * + + 89 + - 92 * + + 40 AS col1
----
-3591

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT - COUNT( * ) * - 70 + - 54
----
16

skipif mysql # not compatible
query I rowsort label-2488
SELECT - COUNT ( * ) * - 70 + - 54
----
16

query I rowsort
SELECT ALL - 82 + - 45 AS col1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ALL COALESCE ( 9, - 57 ) + + 97 * - 43 * + COUNT( * ) - + + 5 col1
----
-4167

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL COALESCE ( 9, - 57 ) + + 97 * - 43 * + COUNT ( * ) - + + 5 col1
----
-4167

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT COUNT( * ) * - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2492
SELECT COUNT ( * ) * - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT 96 * - 14
----
-1344

query I rowsort
SELECT 5 * + - 42
----
-210

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL COALESCE ( + 54, + 60 - - - COUNT( * ) ) - + MAX( - 45 )
----
99

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL COALESCE ( + 54, + 60 - - - COUNT ( * ) ) - + MAX ( - 45 )
----
99

query I rowsort
SELECT 31 * 62 AS col2
----
1922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2498
SELECT 14 + + - NULLIF ( - CAST( NULL AS SIGNED ), - + COALESCE ( + 72, 65 ) ) + ( + + COUNT( * ) ) / + 23 + - + 41 * - + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT 14 + + - NULLIF ( - CAST ( NULL AS INTEGER ), - + COALESCE ( + 72, 65 ) ) + ( + + COUNT ( * ) ) / + 23 + - + 41 * - + 64 AS col0
----
NULL

query I rowsort
SELECT 21 * - 65 AS col0
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT COUNT( * ) + - 77 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2500
SELECT COUNT ( * ) + - 77 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-2501
SELECT - COUNT( * ) + + MAX( DISTINCT 98 ) + + - 43 + 77 * COUNT( * ) + 11, 54 * 19 * + - 92 AS col0
----
142
-94392

skipif mysql # not compatible
query II rowsort label-2501
SELECT - COUNT ( * ) + + MAX ( DISTINCT 98 ) + + - 43 + 77 * COUNT ( * ) + 11, 54 * 19 * + - 92 AS col0
----
142
-94392

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT + 31 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT + 31 / 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ALL + 18 + + 60 + - ( ( + 18 ) ) * + CASE - ( + 47 ) WHEN 11 + - COUNT( 54 ) THEN + 30 * + COUNT( * ) + - + 29 + - + 44 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL + 18 + + 60 + - ( ( + 18 ) ) * + CASE - ( + 47 ) WHEN 11 + - COUNT ( 54 ) THEN + 30 * + COUNT ( * ) + - + 29 + - + 44 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 85 + + 47 col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2505
SELECT ( + 61 ) - - ( 7 ) * 81 DIV - - COUNT( ALL - + 94 ) AS col1
----
628

skipif mysql # not compatible
query I rowsort label-2505
SELECT ( + 61 ) - - ( 7 ) * 81 / - - COUNT ( ALL - + 94 ) AS col1
----
628

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT 48 DIV + - 37 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2506
SELECT 48 / + - 37 AS col0
----
-1

query I rowsort
SELECT + 72 + 53 col0
----
125

query I rowsort
SELECT DISTINCT - 35 * 10 AS col1
----
-350

query II rowsort
SELECT 97 * - 33 AS col2, - 78 AS col1
----
-3201
-78

query I rowsort
SELECT ALL - COALESCE ( 87, ( + 79 ) ) * + 18 AS col0
----
-1566

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT 28 DIV 38 - - 20
----
20

skipif mysql # not compatible
query I rowsort label-2511
SELECT 28 / 38 - - 20
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT DISTINCT - ( - 81 ) * 50 + - 93 - + 39 - 62 + - + 93 DIV + 74 * + 88 DIV + 68 + 54 + ( + - 34 ) AS col2
----
3875

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT - ( - 81 ) * 50 + - 93 - + 39 - 62 + - + 93 / + 74 * + 88 / + 68 + 54 + ( + - 34 ) AS col2
----
3875

query I rowsort
SELECT DISTINCT 26 * ( + 93 ) + + 92 AS col0
----
2510

onlyif mysql # aggregate syntax: 
query II rowsort label-2514
SELECT ALL + 52 * + 29 * - - 32 * + 82 + COUNT( * ) col0, + 9 + + 77
----
3956993
86

skipif mysql # not compatible
query II rowsort label-2514
SELECT ALL + 52 * + 29 * - - 32 * + 82 + COUNT ( * ) col0, + 9 + + 77
----
3956993
86

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

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

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

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

query I rowsort
SELECT 15 * + 57 col0
----
855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2518
SELECT CAST( NULL AS SIGNED ) * - 4 * - 99 * - + 71 * + AVG ( + 95 ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT CAST ( NULL AS INTEGER ) * - 4 * - 99 * - + 71 * + AVG ( + 95 ) + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 96 + - 20
----
76

query I rowsort
SELECT - 28 + ( + 11 ) + + - 93
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT - 21 + 86 + + CASE - COUNT( * ) WHEN - 92 + 61 THEN + 0 + - 7 WHEN 86 * + 78 - COUNT( * ) THEN - 10 + 14 / 79 ELSE NULL END + + + 46 * 30 * + - 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT - 21 + 86 + + CASE - COUNT ( * ) WHEN - 92 + 61 THEN + 0 + - 7 WHEN 86 * + 78 - COUNT ( * ) THEN - 10 + 14 / 79 ELSE NULL END + + + 46 * 30 * + - 7 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT - 44 DIV - - 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2522
SELECT - 44 / - - 77 AS col2
----
0

query I rowsort
SELECT + 50 + + 91
----
141

query I rowsort
SELECT ALL 32 + 22
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2525
SELECT DISTINCT 91 DIV - + 18 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT 91 / - + 18 AS col0
----
-5

query I rowsort
SELECT DISTINCT 69 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT - SUM( 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2527
SELECT - SUM ( 21 ) AS col0
----
-21

query I rowsort
SELECT ALL ( 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT - COUNT( * ) * + + 0 * - 5
----
0

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - COUNT ( * ) * + + 0 * - 5
----
0

query I rowsort
SELECT + - 94 * - 40 * 20 - + 87 + + 12
----
75125

query I rowsort
SELECT - 68 + - 38
----
-106

query I rowsort
SELECT DISTINCT + 56 + - 17 AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2533
SELECT - ( - 99 ) * + NULLIF ( + CASE 94 WHEN 90 * - 68 + + 9 + COUNT( - 48 ) + - ( + 70 ) - - 30 THEN COALESCE ( + - 75, 58 + - - NULLIF ( 96, + COUNT( ALL - 46 ) ) ) * - - COUNT( 81 ) WHEN - - ( + + 41 ) * 6 + 0 + - 45 THEN NULL WHEN + - 3 THEN 95 ELSE NULL END, COALESCE ( CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) ) ) * - 22 * - 2 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT - ( - 99 ) * + NULLIF ( + CASE 94 WHEN 90 * - 68 + + 9 + COUNT ( - 48 ) + - ( + 70 ) - - 30 THEN COALESCE ( + - 75, 58 + - - NULLIF ( 96, + COUNT ( ALL - 46 ) ) ) * - - COUNT ( 81 ) WHEN - - ( + + 41 ) * 6 + 0 + - 45 THEN NULL WHEN + - 3 THEN 95 ELSE NULL END, COALESCE ( CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) ) ) * - 22 * - 2 * COUNT ( * )
----
NULL

query I rowsort
SELECT + 56 + + + 2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL - 6 + + NULLIF ( + 3, + - COUNT( * ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL - 6 + + NULLIF ( + 3, + - COUNT ( * ) ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT DISTINCT + ( + 95 ) + + - COUNT( * ) * - + 19 col0
----
114

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + ( + 95 ) + + - COUNT ( * ) * - + 19 col0
----
114

query I rowsort
SELECT + + 67 * - + ( 90 )
----
-6030

query I rowsort
SELECT + - 51 + 23
----
-28

query I rowsort
SELECT - COALESCE ( - 84, - ( - 59 ) ) AS col2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT - CAST( - 6 AS SIGNED ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2540
SELECT - CAST ( - 6 AS INTEGER ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT DISTINCT - 12 - + 48 + - COUNT( * ) * - - 56 * - 73 - - COUNT( * ) * COUNT( * ) AS col0
----
4029

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT - 12 - + 48 + - COUNT ( * ) * - - 56 * - 73 - - COUNT ( * ) * COUNT ( * ) AS col0
----
4029

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2542
SELECT + 55, + 12 - + 35 * - COUNT( * ) * - 49 + 48 + - + 71 DIV - 84 AS col1
----
55
-1655

skipif mysql # not compatible
query II rowsort label-2542
SELECT + 55, + 12 - + 35 * - COUNT ( * ) * - 49 + 48 + - + 71 / - 84 AS col1
----
55
-1655

query I rowsort
SELECT - 65 * + + 90 + 8 AS col0
----
-5842

query I rowsort
SELECT + 58 * 93 AS col1
----
5394

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT 82 DIV + + 76 + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-2545
SELECT 82 / + + 76 + - 18
----
-17

query I rowsort
SELECT ALL 70 * ( + - 73 )
----
-5110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT + CASE + 30 WHEN - MIN( + + 34 ) * - 17 * 57 THEN - 53 ELSE NULL END * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT + CASE + 30 WHEN - MIN ( + + 34 ) * - 17 * 57 THEN - 53 ELSE NULL END * 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT DISTINCT CASE - 2 WHEN COUNT( * ) * + COUNT( * ) + 9 - - - 99 + + 3 * - - 87 + + COUNT( * ) + - - 71 THEN - COUNT( * ) * - + ( + 57 ) END * - 94 * 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT CASE - 2 WHEN COUNT ( * ) * + COUNT ( * ) + 9 - - - 99 + + 3 * - - 87 + + COUNT ( * ) + - - 71 THEN - COUNT ( * ) * - + ( + 57 ) END * - 94 * 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT + COUNT( * ) * 52 * 35
----
1820

skipif mysql # not compatible
query I rowsort label-2551
SELECT + COUNT ( * ) * 52 * 35
----
1820

query I rowsort
SELECT ( 14 )
----
14

query I rowsort
SELECT NULLIF ( + 24, + + 71 )
----
24

query I rowsort
SELECT ALL + CASE 3 WHEN - + 15 THEN - 87 END
----
NULL

query I rowsort
SELECT + 68 * 44 AS col1
----
2992

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL CASE - 66 WHEN 16 + - - 51 + + - MAX( DISTINCT 37 ) - + 15 * + 99 * + 32 THEN - COALESCE ( - - COUNT( * ), 10 ) / + 99 + COUNT( * ) WHEN + - 78 THEN NULL END * ( + 45 ) * - - 76 / + 46 + + + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL CASE - 66 WHEN 16 + - - 51 + + - MAX ( DISTINCT 37 ) - + 15 * + 99 * + 32 THEN - COALESCE ( - - COUNT ( * ), 10 ) / + 99 + COUNT ( * ) WHEN + - 78 THEN NULL END * ( + 45 ) * - - 76 / + 46 + + + 42 AS col1
----
NULL

query II rowsort
SELECT ALL + 75 AS col1, + ( + 57 )
----
75
57

query I rowsort
SELECT - 38 * + 48 * - - 19 * - + 64
----
2217984

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT DISTINCT + 42 * + - 42 * + ( NULLIF ( - + 91, + MIN( ALL - 94 ) ) ) + + - ( - 46 ) AS col1, COUNT( - ( + 96 ) ) - + + ( - COUNT( * ) ) * COUNT( * )
----
160570
2

skipif mysql # not compatible
query II rowsort label-2560
SELECT DISTINCT + 42 * + - 42 * + ( NULLIF ( - + 91, + MIN ( ALL - 94 ) ) ) + + - ( - 46 ) AS col1, COUNT ( - ( + 96 ) ) - + + ( - COUNT ( * ) ) * COUNT ( * )
----
160570
2

query I rowsort
SELECT DISTINCT - - 38 * + ( + 65 ) * + + 4 - 13
----
9867

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT - + 23 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-2562
SELECT - + 23 / - 87
----
0

query I rowsort
SELECT ALL 22 * + 33 + - - 46
----
772

query I rowsort
SELECT + 43 + + - 67 AS col1
----
-24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT + MIN( - - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-2566
SELECT + MIN ( - - 95 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2567
SELECT ALL - CASE + 8 WHEN - ( - COUNT( ALL + ( - ( - + CAST( NULL AS SIGNED ) ) ) ) ) THEN - - 32 WHEN - - 26 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - CASE + 8 WHEN - ( - COUNT ( ALL + ( - ( - + CAST ( NULL AS INTEGER ) ) ) ) ) THEN - - 32 WHEN - - 26 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT MAX( DISTINCT - 41 ) * - COUNT( * ) + - + CASE 19 WHEN - + 13 THEN 90 ELSE + 80 * 73 END + - + 72 AS col1
----
-5871

skipif mysql # not compatible
query I rowsort label-2568
SELECT MAX ( DISTINCT - 41 ) * - COUNT ( * ) + - + CASE 19 WHEN - + 13 THEN 90 ELSE + 80 * 73 END + - + 72 AS col1
----
-5871

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT - 40 DIV - 68 * 80 * + 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2569
SELECT - 40 / - 68 * 80 * + 45 AS col2
----
0

query I rowsort
SELECT ALL + + 34 + + 29
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT - - MAX( DISTINCT 13 ) + - - 9 * + 84 * 22 col0
----
16645

skipif mysql # not compatible
query I rowsort label-2571
SELECT - - MAX ( DISTINCT 13 ) + - - 9 * + 84 * 22 col0
----
16645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT ALL - + COUNT( * ) DIV - - 72 * - - 37 * - 55 * + 92 + 78 * + + 36 * - COALESCE ( + 4, - COUNT( * ) + + - SUM( DISTINCT + 91 ) + + COUNT( - 66 ) - - 70 ) * 77 + - COUNT( * ) + 5
----
-864860

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL - + COUNT ( * ) / - - 72 * - - 37 * - 55 * + 92 + 78 * + + 36 * - COALESCE ( + 4, - COUNT ( * ) + + - SUM ( DISTINCT + 91 ) + + COUNT ( - 66 ) - - 70 ) * 77 + - COUNT ( * ) + 5
----
-864860

onlyif mysql # DIV for integer division: 
query I rowsort label-2573
SELECT ALL - + ( + + 39 ) DIV - - 98
----
0

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL - + ( + + 39 ) / - - 98
----
0

query II rowsort
SELECT - 39 AS col0, 35
----
-39
35

query II rowsort
SELECT + 56 + - - 53, - 67 AS col1
----
109
-67

query I rowsort
SELECT ALL - + 42 * + 91
----
-3822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2577
SELECT - + 83, - 25 * + MAX( ALL + 67 ) * + 96 - - - CAST( - 31 AS SIGNED ) + 4 * + 11 AS col1
----
-83
-160725

skipif mysql # not compatible
query II rowsort label-2577
SELECT - + 83, - 25 * + MAX ( ALL + 67 ) * + 96 - - - CAST ( - 31 AS INTEGER ) + 4 * + 11 AS col1
----
-83
-160725

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

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

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

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - MIN ( ALL - 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT COUNT( * ) - + ( - 17 ) * - + 93 AS col1
----
-1580

skipif mysql # not compatible
query I rowsort label-2580
SELECT COUNT ( * ) - + ( - 17 ) * - + 93 AS col1
----
-1580

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

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT + COUNT ( * ) - + 68 AS col2
----
-67

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT 34 * + CAST( NULL AS SIGNED ) * - MIN( ALL 60 ) * 12 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT 34 * + CAST ( NULL AS INTEGER ) * - MIN ( ALL 60 ) * 12 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2584
SELECT 14 / - 2 + + - ( COUNT ( * ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT 78 * - + COUNT( * ) - 26
----
-104

skipif mysql # not compatible
query I rowsort label-2585
SELECT 78 * - + COUNT ( * ) - 26
----
-104

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2587
SELECT + 69 DIV - CAST( 86 AS SIGNED ) * - 78 - + 94 DIV - COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2587
SELECT + 69 / - CAST ( 86 AS INTEGER ) * - 78 - + 94 / - COUNT ( * ) AS col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2588
SELECT 88 * - COUNT( * ) * + COALESCE ( + 11, 9 ) DIV + COUNT( * ) + 78 AS col0
----
-890

skipif mysql # not compatible
query I rowsort label-2588
SELECT 88 * - COUNT ( * ) * + COALESCE ( + 11, 9 ) / + COUNT ( * ) + 78 AS col0
----
-890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2589
SELECT 30 + - SUM( + ( - ( 15 ) ) ) DIV 94 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2589
SELECT 30 + - SUM ( + ( - ( 15 ) ) ) / 94 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2590
SELECT DISTINCT 86 + 3 * + 44 + - + 88 DIV - 64 + - - NULLIF ( 56, + + 70 + + MIN( DISTINCT - + 10 ) * - MIN( - 12 ) ) DIV - + 29
----
218

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT 86 + 3 * + 44 + - + 88 / - 64 + - - NULLIF ( 56, + + 70 + + MIN ( DISTINCT - + 10 ) * - MIN ( - 12 ) ) / - + 29
----
218

query I rowsort
SELECT 59 + - 19
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2592
SELECT ALL 21 + - 4 col0, COALESCE ( 9, 25 + + 98 + - COUNT( * ) * - - 24 + + 34 ) + - - COALESCE ( + COUNT( * ), + 98 * 72 * - 10 + - 62 * - + 61, 46, 65 ) AS col1
----
17
10

skipif mysql # not compatible
query II rowsort label-2592
SELECT ALL 21 + - 4 col0, COALESCE ( 9, 25 + + 98 + - COUNT ( * ) * - - 24 + + 34 ) + - - COALESCE ( + COUNT ( * ), + 98 * 72 * - 10 + - 62 * - + 61, 46, 65 ) AS col1
----
17
10

query I rowsort
SELECT + 41 * + 36 * 28
----
41328

query I rowsort
SELECT 61 * + 46 + + - 20
----
2786

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2596
SELECT + - COALESCE ( - 24, - 70 DIV 6 ) col1
----
24

skipif mysql # not compatible
query I rowsort label-2596
SELECT + - COALESCE ( - 24, - 70 / 6 ) col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT + ( + 60 ) + + - MAX( DISTINCT - - 4 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2597
SELECT + ( + 60 ) + + - MAX ( DISTINCT - - 4 ) AS col2
----
56

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2599
SELECT ALL - 6 + - + 26 + - COUNT( DISTINCT - 37 ) + - 21 DIV + 26 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - 6 + - + 26 + - COUNT ( DISTINCT - 37 ) + - 21 / + 26 AS col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT - 77 * 65 DIV + + 27 col1
----
-185

skipif mysql # not compatible
query I rowsort label-2600
SELECT - 77 * 65 / + + 27 col1
----
-185

query II rowsort
SELECT DISTINCT - 23 * - - 46 AS col2, ( + 5 )
----
-1058
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2602
SELECT DISTINCT - 12 - 95 - - - 85 AS col2, COALESCE ( - CAST( NULL AS SIGNED ), - 71, + + 85 ) col0
----
-192
-71

skipif mysql # not compatible
query II rowsort label-2602
SELECT DISTINCT - 12 - 95 - - - 85 AS col2, COALESCE ( - CAST ( NULL AS INTEGER ), - 71, + + 85 ) col0
----
-192
-71

query II rowsort
SELECT - ( 52 ), + 32 * + 24 + - 69 + + 54 col1
----
-52
753

onlyif mysql # DIV for integer division: 
query II rowsort label-2604
SELECT + 40 DIV - 60 AS col1, 23 AS col1
----
0
23

skipif mysql # not compatible
query II rowsort label-2604
SELECT + 40 / - 60 AS col1, 23 AS col1
----
0
23

query II rowsort
SELECT 5 * + 68 AS col0, 85 * + + 37
----
340
3145

query I rowsort
SELECT - 50 * + ( - ( + - 3 ) ) AS col1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT + CASE + - 64 WHEN + 44 THEN NULL WHEN - CASE + 82 WHEN + + 86 THEN NULL WHEN - 2 * + - 66 THEN - 49 WHEN MIN( DISTINCT - 90 ) THEN + 54 ELSE NULL END THEN - 33 + 31 WHEN 41 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT + CASE + - 64 WHEN + 44 THEN NULL WHEN - CASE + 82 WHEN + + 86 THEN NULL WHEN - 2 * + - 66 THEN - 49 WHEN MIN ( DISTINCT - 90 ) THEN + 54 ELSE NULL END THEN - 33 + 31 WHEN 41 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 7 - - + 4 + + 0 col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2609
SELECT DISTINCT 67 AS col1, 42 * + 88 + - COUNT( * ) + - 69 AS col0
----
67
3626

skipif mysql # not compatible
query II rowsort label-2609
SELECT DISTINCT 67 AS col1, 42 * + 88 + - COUNT ( * ) + - 69 AS col0
----
67
3626

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT ALL + ( - 45 ) DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL + ( - 45 ) / - 89
----
0

query I rowsort
SELECT 8 + 3 AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2613
SELECT - 30, - ( NULLIF ( + + 39, COUNT( + + 74 ) * COUNT( ALL + + 27 ) + + 76 ) ) + - + MIN( ALL + 38 ) AS col2
----
-30
-77

skipif mysql # not compatible
query II rowsort label-2613
SELECT - 30, - ( NULLIF ( + + 39, COUNT ( + + 74 ) * COUNT ( ALL + + 27 ) + + 76 ) ) + - + MIN ( ALL + 38 ) AS col2
----
-30
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2614
SELECT 14 * - + 94 * + COUNT( * ) AS col2, - COUNT( * ) AS col1
----
-1316
-1

skipif mysql # not compatible
query II rowsort label-2614
SELECT 14 * - + 94 * + COUNT ( * ) AS col2, - COUNT ( * ) AS col1
----
-1316
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2615
SELECT COUNT( * ) AS col1, SUM( + 15 ) DIV + 5 + + 74 AS col0
----
1
77

skipif mysql # not compatible
query II rowsort label-2615
SELECT COUNT ( * ) AS col1, SUM ( + 15 ) / + 5 + + 74 AS col0
----
1
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2616
SELECT + 2 * - + COALESCE ( NULLIF ( + 92, + + 93 - - - CAST( NULL AS SIGNED ) / + + 68 ), + 86 ) + - 20 + - + 48 AS col1
----
-252

skipif mysql # not compatible
query I rowsort label-2616
SELECT + 2 * - + COALESCE ( NULLIF ( + 92, + + 93 - - - CAST ( NULL AS INTEGER ) / + + 68 ), + 86 ) + - 20 + - + 48 AS col1
----
-252

query I rowsort
SELECT 40 * + 58
----
2320

query I rowsort
SELECT DISTINCT 74 * - NULLIF ( 48, + + 19 ) * - ( + 24 )
----
85248

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT ALL + MIN( - 65 ) + + 55 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL + MIN ( - 65 ) + + 55 AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT 59 DIV NULLIF ( + 58, + 68 ) * + + 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2620
SELECT 59 / NULLIF ( + 58, + 68 ) * + + 78 AS col1
----
78

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

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL + 20 + - 4 * ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2622
SELECT 39 - - - SUM( 78 ) AS col0, - 54 + + 14
----
-39
-40

skipif mysql # not compatible
query II rowsort label-2622
SELECT 39 - - - SUM ( 78 ) AS col0, - 54 + + 14
----
-39
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-2623
SELECT + 61 AS col1, 50 + - + COUNT( * )
----
61
49

skipif mysql # not compatible
query II rowsort label-2623
SELECT + 61 AS col1, 50 + - + COUNT ( * )
----
61
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2624
SELECT CASE 5 WHEN CAST( 96 AS SIGNED ) * + 0 - + + 89 THEN + - 23 END / 39 * + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT CASE 5 WHEN CAST ( 96 AS INTEGER ) * + 0 - + + 89 THEN + - 23 END / 39 * + 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT COUNT( 42 ) * - + 48 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT COUNT ( 42 ) * - + 48 / - 59
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2626
SELECT DISTINCT 74 DIV - + NULLIF ( - ( MAX( DISTINCT + 38 ) ), + COUNT( * ) * + 69 ) + - 71 AS col2, 50 AS col0
----
-70
50

skipif mysql # not compatible
query II rowsort label-2626
SELECT DISTINCT 74 / - + NULLIF ( - ( MAX ( DISTINCT + 38 ) ), + COUNT ( * ) * + 69 ) + - 71 AS col2, 50 AS col0
----
-70
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2627
SELECT ALL CASE + 52 WHEN + COUNT( * ) THEN ( NULLIF ( 18, + + NULLIF ( ( - 86 ), - 19 ) ) ) + + + 88 - + 71 + + COUNT( * ) ELSE + SUM( 43 ) END - - 74 DIV - 30
----
41

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL CASE + 52 WHEN + COUNT ( * ) THEN ( NULLIF ( 18, + + NULLIF ( ( - 86 ), - 19 ) ) ) + + + 88 - + 71 + + COUNT ( * ) ELSE + SUM ( 43 ) END - - 74 / - 30
----
41

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

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

query I rowsort
SELECT 71 - COALESCE ( 80, 76, 69 ) AS col2
----
-9

query I rowsort
SELECT ALL - 19 * 61 + - + ( + 41 ) + - 78 - - + 75 AS col1
----
-1203

onlyif mysql # DIV for integer division: 
query I rowsort label-2631
SELECT DISTINCT + 8 DIV 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT + 8 / 80 AS col0
----
0

query I rowsort
SELECT ALL + 49 - 59 AS col2
----
-10

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2635
SELECT 40 - + CAST( NULL AS DECIMAL ) - + + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT 40 - + CAST ( NULL AS REAL ) - + + 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT ALL 81 * + 79 * + COUNT( DISTINCT + + ( + 67 ) ) * + 68 + + + 45 - + 33 * 26 + CASE + 62 WHEN 78 + + 60 THEN + 79 ELSE NULL END + + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL 81 * + 79 * + COUNT ( DISTINCT + + ( + 67 ) ) * + 68 + + + 45 - + 33 * 26 + CASE + 62 WHEN 78 + + 60 THEN + 79 ELSE NULL END + + 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2637
SELECT - 23, COUNT( * ) AS col1
----
-23
1

skipif mysql # not compatible
query II rowsort label-2637
SELECT - 23, COUNT ( * ) AS col1
----
-23
1

query I rowsort
SELECT + 55 + + 92 AS col1
----
147

query I rowsort
SELECT COALESCE ( - 93, - 20 )
----
-93

query I rowsort
SELECT - 47 * 33 + + + 47 + 77
----
-1427

query II rowsort
SELECT ALL 52 AS col2, 81 * - 73 AS col2
----
52
-5913

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2642
SELECT ALL COUNT( * ) col2, + 34 DIV 97 * 35 * - + 17 DIV - - NULLIF ( - - 5, + - 52 ) * + 19 * - - ( - 7 ) * - 99 + 22
----
1
22

skipif mysql # not compatible
query II rowsort label-2642
SELECT ALL COUNT ( * ) col2, + 34 / 97 * 35 * - + 17 / - - NULLIF ( - - 5, + - 52 ) * + 19 * - - ( - 7 ) * - 99 + 22
----
1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT + + 62 * + 26 * + - COUNT( * ) * 85 AS col2
----
-137020

skipif mysql # not compatible
query I rowsort label-2643
SELECT + + 62 * + 26 * + - COUNT ( * ) * 85 AS col2
----
-137020

onlyif mysql # aggregate syntax: 
query II rowsort label-2644
SELECT + NULLIF ( + 19, - MAX( 90 ) ) + + 37 + - - COUNT( * ) AS col2, 41
----
57
41

skipif mysql # not compatible
query II rowsort label-2644
SELECT + NULLIF ( + 19, - MAX ( 90 ) ) + + 37 + - - COUNT ( * ) AS col2, 41
----
57
41

query I rowsort
SELECT ALL 17 col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2646
SELECT + 17 + + MIN( ALL - 3 ) + 8 col1, 90
----
22
90

skipif mysql # not compatible
query II rowsort label-2646
SELECT + 17 + + MIN ( ALL - 3 ) + 8 col1, 90
----
22
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT - NULLIF ( - + 14, COUNT( * ) + - + 50 + - + COUNT( + 84 ) )
----
14

skipif mysql # not compatible
query I rowsort label-2647
SELECT - NULLIF ( - + 14, COUNT ( * ) + - + 50 + - + COUNT ( + 84 ) )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2648
SELECT ALL - CAST( - + 38 AS SIGNED ) + + - 32 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL - CAST ( - + 38 AS INTEGER ) + + - 32 AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2649
SELECT ALL + AVG ( DISTINCT - 20 ) + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL + AVG ( DISTINCT - 20 ) + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT DISTINCT 10 + + MIN( DISTINCT NULLIF ( + 84, - + 83 * - 94 ) ) + - NULLIF ( - 81, COUNT( ALL + 23 ) * + + 30 )
----
175

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT 10 + + MIN ( DISTINCT NULLIF ( + 84, - + 83 * - 94 ) ) + - NULLIF ( - 81, COUNT ( ALL + 23 ) * + + 30 )
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT DISTINCT CASE - 88 WHEN - + 50 + - + 58 THEN 99 / + - 4 + - CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT CASE - 88 WHEN - + 50 + - + 58 THEN 99 / + - 4 + - CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT + 59 * COUNT ( * ) + - COUNT ( * ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2653
SELECT ALL - MAX( DISTINCT - 58 ) * + + MIN( ALL + ( - 96 ) ) + - CAST( NULL AS SIGNED ) - + ( - + 13 ) / + 51, COALESCE ( - 40, + + 55 ) col0
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-2653
SELECT ALL - MAX ( DISTINCT - 58 ) * + + MIN ( ALL + ( - 96 ) ) + - CAST ( NULL AS INTEGER ) - + ( - + 13 ) / + 51, COALESCE ( - 40, + + 55 ) col0
----
NULL
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2654
SELECT ALL + CASE 80 WHEN 80 THEN NULL WHEN + 85 - - 42 THEN + CAST( NULL AS SIGNED ) + + 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL + CASE 80 WHEN 80 THEN NULL WHEN + 85 - - 42 THEN + CAST ( NULL AS INTEGER ) + + 30 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 29 * - 59 + 7
----
-1704

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2656
SELECT - 3 DIV + - 32 + - COALESCE ( CAST( - 73 AS SIGNED ), + 66 )
----
73

skipif mysql # not compatible
query I rowsort label-2656
SELECT - 3 / + - 32 + - COALESCE ( CAST ( - 73 AS INTEGER ), + 66 )
----
73

query I rowsort
SELECT ALL + 13 col0
----
13

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2659
SELECT ALL ( - 38 ) * + + 99 - - + 24 DIV + 49
----
-3762

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL ( - 38 ) * + + 99 - - + 24 / + 49
----
-3762

query I rowsort
SELECT DISTINCT + + 61 * + - ( + 48 )
----
-2928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT - - CASE - - NULLIF ( + 24, 28 + + CAST( NULL AS SIGNED ) ) WHEN - - 67 THEN ( - COUNT( * ) ) END + 24 + - + COUNT( * ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT - - CASE - - NULLIF ( + 24, 28 + + CAST ( NULL AS INTEGER ) ) WHEN - - 67 THEN ( - COUNT ( * ) ) END + 24 + - + COUNT ( * ) * - 61
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT - 18 * MAX( ALL - 92 ) + - 55 col0
----
1601

skipif mysql # not compatible
query I rowsort label-2664
SELECT - 18 * MAX ( ALL - 92 ) + - 55 col0
----
1601

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

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

query I rowsort
SELECT - 53 * + - ( - + 65 ) col0
----
-3445

query I rowsort
SELECT + 23 + + 94 AS col0
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2669
SELECT ALL SUM( - - 77 ) DIV - 43 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL SUM ( - - 77 ) / - 43 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT DISTINCT - 35 DIV + 4 + - - 90 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT - 35 / + 4 + - - 90 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT DISTINCT + - COUNT( * ) + + + 44
----
43

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT + - COUNT ( * ) + + + 44
----
43

query I rowsort
SELECT ALL - - 43 * 46 + - NULLIF ( + 63, - 34 ) + + 60 AS col2
----
1975

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT + 98 DIV - - 43 col0
----
2

skipif mysql # not compatible
query I rowsort label-2673
SELECT + 98 / - - 43 col0
----
2

query I rowsort
SELECT DISTINCT + ( - 84 ) * - 71
----
5964

query I rowsort
SELECT ALL 81 + + 86 + - 78 * - 87
----
6953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2676
SELECT - AVG ( + NULLIF ( + 26, - 11 ) ) + - + CAST( NULL AS SIGNED ) * + 58 + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT - AVG ( + NULLIF ( + 26, - 11 ) ) + - + CAST ( NULL AS INTEGER ) * + 58 + 80 AS col2
----
NULL

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

query I rowsort
SELECT + 99 + 89
----
188

query II rowsort
SELECT DISTINCT 5 + - 53 * - 67 AS col0, + 41 * + + 5 AS col2
----
3556
205

query I rowsort
SELECT ALL 40 + 99
----
139

query I rowsort
SELECT DISTINCT 69 + + 22 + 24 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT + COUNT( * ) + - MAX( DISTINCT - 49 ) + 7 - 2 - 94 + - 41 * 80 + + 94
----
-3225

skipif mysql # not compatible
query I rowsort label-2682
SELECT + COUNT ( * ) + - MAX ( DISTINCT - 49 ) + 7 - 2 - 94 + - 41 * 80 + + 94
----
-3225

query I rowsort
SELECT ALL - 20 + + 21 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2685
SELECT ALL 98 * - - COALESCE ( - SUM( ALL + 85 ), + AVG ( ALL - - 61 ) DIV + - 98 + - 79 - - 5 + COUNT( * ) + 1 * - 26 )
----
-8330

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL 98 * - - COALESCE ( - SUM ( ALL + 85 ), + AVG ( ALL - - 61 ) / + - 98 + - 79 - - 5 + COUNT ( * ) + 1 * - 26 )
----
-8330

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2687
SELECT - CAST( NULL AS SIGNED ) + + NULLIF ( 39, + - COUNT( * ) * ( + - CAST( 85 AS SIGNED ) ) - 57 ) * + 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT - CAST ( NULL AS INTEGER ) + + NULLIF ( 39, + - COUNT ( * ) * ( + - CAST ( 85 AS INTEGER ) ) - 57 ) * + 54 col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2688
SELECT - 49 AS col0, 33 + 83 DIV + - 71 + - 42 AS col2
----
-49
-10

skipif mysql # not compatible
query II rowsort label-2688
SELECT - 49 AS col0, 33 + 83 / + - 71 + - 42 AS col2
----
-49
-10

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2691
SELECT + 73 DIV + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2691
SELECT + 73 / + COUNT ( * ) AS col0
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT 97 * - 74 * - + MIN( ALL + + 83 )
----
595774

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT 97 * - 74 * - + MIN ( ALL + + 83 )
----
595774

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL + COALESCE ( + 43, + 26 * 17 + COUNT( * ), + 77 + - ( 87 ) - - 22 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL + COALESCE ( + 43, + 26 * 17 + COUNT ( * ), + 77 + - ( 87 ) - - 22 ) AS col0
----
43

query I rowsort
SELECT - 84 * - 98 AS col2
----
8232

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

query I rowsort
SELECT ( 17 ) * 45
----
765

query I rowsort
SELECT DISTINCT - - 86 AS col2
----
86

query I rowsort
SELECT DISTINCT - - 53 + + 51
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2701
SELECT ALL + - 91 * + - 49 * + 67 + - - 57 DIV - 60, + COUNT( * ) AS col2
----
298753
1

skipif mysql # not compatible
query II rowsort label-2701
SELECT ALL + - 91 * + - 49 * + 67 + - - 57 / - 60, + COUNT ( * ) AS col2
----
298753
1

query I rowsort
SELECT ALL - 42 + - 67 AS col1
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2703
SELECT COUNT( * ) * - 48 - + - CASE - 97 WHEN + + CAST( NULL AS SIGNED ) THEN - 73 WHEN 28 THEN + + 52 WHEN + - 40 THEN + COUNT( * ) + 7 / + 68 / - ( 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT COUNT ( * ) * - 48 - + - CASE - 97 WHEN + + CAST ( NULL AS INTEGER ) THEN - 73 WHEN 28 THEN + + 52 WHEN + - 40 THEN + COUNT ( * ) + 7 / + 68 / - ( 1 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ALL + COUNT( * ) + + + 47 + - 67 + + COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL + COUNT ( * ) + + + 47 + - 67 + + COUNT ( * ) AS col0
----
-18

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

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

query I rowsort
SELECT ALL 26 + 86
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2707
SELECT ALL 31 AS col2, - 51 DIV COUNT( * ) AS col2
----
31
-51

skipif mysql # not compatible
query II rowsort label-2707
SELECT ALL 31 AS col2, - 51 / COUNT ( * ) AS col2
----
31
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2708
SELECT 29 + - 50 - + 96 DIV 6 + COUNT( * ) * - - 75
----
38

skipif mysql # not compatible
query I rowsort label-2708
SELECT 29 + - 50 - + 96 / 6 + COUNT ( * ) * - - 75
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT 18 - - SUM( + 12 )
----
30

skipif mysql # not compatible
query I rowsort label-2709
SELECT 18 - - SUM ( + 12 )
----
30

query II rowsort
SELECT - 17, 34 AS col2
----
-17
34

query II rowsort
SELECT 65, + 64 AS col2
----
65
64

query II rowsort
SELECT - 70 AS col1, - 22 AS col1
----
-70
-22

query II rowsort
SELECT 38 AS col2, 31 AS col0
----
38
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT + CASE - 62 WHEN 26 + 0 + - 72 + + 96 + + 30 / - 31 * - - COUNT( * ) * + 43 * 46 THEN - 39 * - 38 + - + 43 ELSE + + 15 + + 62 END + - + 65 - + 40 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + CASE - 62 WHEN 26 + 0 + - 72 + + 96 + + 30 / - 31 * - - COUNT ( * ) * + 43 * 46 THEN - 39 * - 38 + - + 43 ELSE + + 15 + + 62 END + - + 65 - + 40 AS col0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2715
SELECT ALL - 97 DIV + 35 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL - 97 / + 35 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT DISTINCT 93 * + SUM( - 68 )
----
-6324

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT 93 * + SUM ( - 68 )
----
-6324

query I rowsort
SELECT ALL + 34 + + 41
----
75

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

query I rowsort
SELECT 68 * + - 63 AS col1
----
-4284

query I rowsort
SELECT 39 + - 26 col2
----
13

query II rowsort
SELECT DISTINCT 15 - + 60 + + ( - 97 ) * + 66 * - 72 * + 50 * 5 - + 84 * 58 + - + 7, 82 * - 24 + + 29 AS col2
----
115231076
-1939

query II rowsort
SELECT 46 AS col1, 34
----
46
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2723
SELECT - 95 AS col2, + 61 DIV SUM( 98 )
----
-95
0

skipif mysql # not compatible
query II rowsort label-2723
SELECT - 95 AS col2, + 61 / SUM ( 98 )
----
-95
0

query I rowsort
SELECT 68 * 81
----
5508

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2725
SELECT 74 + - 66 + CAST( NULL AS DECIMAL ) * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT 74 + - 66 + CAST ( NULL AS REAL ) * - 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2726
SELECT CASE - CAST( NULL AS SIGNED ) WHEN + 93 THEN NULL WHEN - + 77 THEN - 59 WHEN + 37 / + - 3 THEN NULL ELSE NULL END + - - AVG ( DISTINCT + - 12 ) + + - 20 / - MIN( DISTINCT - ( 60 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN + 93 THEN NULL WHEN - + 77 THEN - 59 WHEN + 37 / + - 3 THEN NULL ELSE NULL END + - - AVG ( DISTINCT + - 12 ) + + - 20 / - MIN ( DISTINCT - ( 60 ) )
----
NULL

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

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

query I rowsort
SELECT 93 * + 42 * 36 * + + ( + 18 ) AS col1
----
2531088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2729
SELECT ALL - - 11 AS col2, COUNT( * ) * + CAST( - + AVG ( - 16 ) AS SIGNED ) * + NULLIF ( + - 19, 58 ) - - - 10 * + COUNT( * )
----
11
-314

skipif mysql # not compatible
query II rowsort label-2729
SELECT ALL - - 11 AS col2, COUNT ( * ) * + CAST ( - + AVG ( - 16 ) AS INTEGER ) * + NULLIF ( + - 19, 58 ) - - - 10 * + COUNT ( * )
----
11
-314

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT 51 * COUNT( * ) - - 6 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2730
SELECT 51 * COUNT ( * ) - - 6 AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-2731
SELECT ALL - - 25 AS col2, COUNT( * ) AS col0
----
25
1

skipif mysql # not compatible
query II rowsort label-2731
SELECT ALL - - 25 AS col2, COUNT ( * ) AS col0
----
25
1

query I rowsort
SELECT + 94 + + 46 * + 83 + + 18
----
3930

onlyif mysql # DIV for integer division: 
query I rowsort label-2733
SELECT + 8 + + ( + + 11 ) + 0 DIV 66 * 90 col0
----
19

skipif mysql # not compatible
query I rowsort label-2733
SELECT + 8 + + ( + + 11 ) + 0 / 66 * 90 col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2734
SELECT CAST( NULL AS SIGNED ) / - - 41 + + CAST( + 44 AS SIGNED ) AS col2, 69 * + COUNT( * )
----
NULL
69

skipif mysql # not compatible
query II rowsort label-2734
SELECT CAST ( NULL AS INTEGER ) / - - 41 + + CAST ( + 44 AS INTEGER ) AS col2, 69 * + COUNT ( * )
----
NULL
69

query I rowsort
SELECT ALL - 96 * 2 col1
----
-192

query II rowsort
SELECT + 41 AS col1, + 21 AS col1
----
41
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2737
SELECT + 58 AS col2, 3 DIV + COUNT( * ) + + 21
----
58
24

skipif mysql # not compatible
query II rowsort label-2737
SELECT + 58 AS col2, 3 / + COUNT ( * ) + + 21
----
58
24

query I rowsort
SELECT + 47 * - - 85 * + 61 + - 58 * 32 AS col1
----
241839

query I rowsort
SELECT + NULLIF ( - + 73, + + 36 * - 12 / - - 5 ) AS col0
----
-73

query I rowsort
SELECT ALL - 46 + + 95
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT COUNT( * ) * + 58 + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-2741
SELECT COUNT ( * ) * + 58 + - COUNT ( * )
----
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT ALL + 77 * + 44 * COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL + 77 * + 44 * COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 18 + + 58 * - 42 col2
----
-2418

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT DISTINCT - COUNT( * ) + - 86 col1
----
-87

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT - COUNT ( * ) + - 86 col1
----
-87

query II rowsort
SELECT 62 col2, 52 + 93 AS col0
----
62
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2748
SELECT + + COUNT( * ) AS col1, CAST( - NULLIF ( + 23, + 75 ) AS SIGNED ) * - COUNT( * ) + - - 95
----
1
118

skipif mysql # not compatible
query II rowsort label-2748
SELECT + + COUNT ( * ) AS col1, CAST ( - NULLIF ( + 23, + 75 ) AS INTEGER ) * - COUNT ( * ) + - - 95
----
1
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL - COUNT( * ) + 50
----
49

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - COUNT ( * ) + 50
----
49

query I rowsort
SELECT 97 * 63
----
6111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2751
SELECT COUNT( * ) * + ( - + 73 ) + - CAST( + - CAST( - 59 AS DECIMAL ) AS SIGNED ) * + 45 AS col0
----
-2728

skipif mysql # not compatible
query I rowsort label-2751
SELECT COUNT ( * ) * + ( - + 73 ) + - CAST ( + - CAST ( - 59 AS REAL ) AS INTEGER ) * + 45 AS col0
----
-2728

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT + + NULLIF ( COALESCE ( - - 50, + + MAX( - 7 ) ), 26 / - ( 32 ) )
----
50

skipif mysql # not compatible
query I rowsort label-2753
SELECT + + NULLIF ( COALESCE ( - - 50, + + MAX ( - 7 ) ), 26 / - ( 32 ) )
----
50

query II rowsort
SELECT 62 AS col0, - 96 AS col2
----
62
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL + - 76 + + 39 + - + CASE COALESCE ( + 77, - + 33 * - 44 + ( COUNT( * ) ) ) WHEN + 76 * - 41 * - + 21 - - 9 THEN + 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + - 76 + + 39 + - + CASE COALESCE ( + 77, - + 33 * - 44 + ( COUNT ( * ) ) ) WHEN + 76 * - 41 * - + 21 - - 9 THEN + 93 END AS col0
----
NULL

query II rowsort
SELECT 99 AS col0, 62
----
99
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT + COALESCE ( 97, - COUNT( 30 ), + 3, - - COUNT( - 14 ) ) col0
----
97

skipif mysql # not compatible
query I rowsort label-2757
SELECT + COALESCE ( 97, - COUNT ( 30 ), + 3, - - COUNT ( - 14 ) ) col0
----
97

query I rowsort
SELECT 33 + + + 86 AS col2
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2759
SELECT ALL + 38 + - - MIN( + 98 ) DIV + 23 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL + 38 + - - MIN ( + 98 ) / + 23 AS col1
----
42

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2761
SELECT 53 * - - COUNT( * ) AS col1, 73 + - 93
----
53
-20

skipif mysql # not compatible
query II rowsort label-2761
SELECT 53 * - - COUNT ( * ) AS col1, 73 + - 93
----
53
-20

query I rowsort
SELECT ALL - 93 * + 88 * - 45 AS col1
----
368280

query I rowsort
SELECT 78 * - 53
----
-4134

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2765
SELECT 84 + - 59 DIV SUM( DISTINCT + 78 ) * - 56
----
84

skipif mysql # not compatible
query I rowsort label-2765
SELECT 84 + - 59 / SUM ( DISTINCT + 78 ) * - 56
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL MAX( ALL - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL MAX ( ALL - 25 )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT 68 DIV + 34 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2767
SELECT 68 / + 34 AS col1
----
2

query I rowsort
SELECT ALL 44 * + 22
----
968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT 74 + - COUNT( * ) + + - 49 * + 85 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT 74 + - COUNT ( * ) + + - 49 * + 85 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT + 49 / + MAX ( DISTINCT - 91 ) AS col2
----
0

query II rowsort
SELECT DISTINCT 38 * + - 7 AS col1, + ( + - 67 ) AS col1
----
-266
-67

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + 25, + + 33 )
----
25

query I rowsort
SELECT 3 * - 18 * + 37 * - 76
----
151848

query I rowsort
SELECT DISTINCT + 58 * - 86 AS col0
----
-4988

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT 18 * + COUNT( * ) * 9 AS col1
----
162

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT 18 * + COUNT ( * ) * 9 AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL - MAX( 90 ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - MAX ( 90 ) col1
----
-90

query I rowsort
SELECT ALL - + 33 * + - 32 + + 88
----
1144

query I rowsort
SELECT ALL + 53 * 40 * - 62 + + - 8
----
-131448

query I rowsort
SELECT + + 29 * 56 * - + 33
----
-53592

query I rowsort
SELECT ALL NULLIF ( 43, - 49 ) * - 74
----
-3182

query I rowsort
SELECT DISTINCT + 90 * - 81 AS col2
----
-7290

query I rowsort
SELECT DISTINCT + 81 * + 24 - 51 * - + 74
----
5718

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT ALL 14 * - 76 + - - SUM( + 96 )
----
-968

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL 14 * - 76 + - - SUM ( + 96 )
----
-968

query I rowsort
SELECT + 58 - - 51 + - 49 * - - 77
----
-3664

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT ALL + MAX( ALL + 3 ) col0, COUNT( ALL + 66 ) AS col2
----
3
1

skipif mysql # not compatible
query II rowsort label-2786
SELECT ALL + MAX ( ALL + 3 ) col0, COUNT ( ALL + 66 ) AS col2
----
3
1

query I rowsort
SELECT + 44 * - 19 + + ( 84 ) AS col1
----
-752

onlyif mysql # DIV for integer division: 
query I rowsort label-2788
SELECT ALL + 34 DIV - + 20
----
-1

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL + 34 / - + 20
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT + COUNT( * ) * + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2789
SELECT + COUNT ( * ) * + 16 AS col2
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-2790
SELECT ALL + 98 AS col2, ( - - 17 ) DIV 49 * ( - - 7 ) AS col1
----
98
0

skipif mysql # not compatible
query II rowsort label-2790
SELECT ALL + 98 AS col2, ( - - 17 ) / 49 * ( - - 7 ) AS col1
----
98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT + 87 + - 26 * MAX( + 39 ) AS col1
----
-927

skipif mysql # not compatible
query I rowsort label-2791
SELECT + 87 + - 26 * MAX ( + 39 ) AS col1
----
-927

onlyif mysql # aggregate syntax: 
query II rowsort label-2792
SELECT MAX( - ( - 74 ) ), + 72 col2
----
74
72

skipif mysql # not compatible
query II rowsort label-2792
SELECT MAX ( - ( - 74 ) ), + 72 col2
----
74
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT - ( 39 ) - 20 - CAST( + SUM( ALL 50 ) AS SIGNED ) * - + COALESCE ( - 59, - + 18 )
----
-3009

skipif mysql # not compatible
query I rowsort label-2793
SELECT - ( 39 ) - 20 - CAST ( + SUM ( ALL 50 ) AS INTEGER ) * - + COALESCE ( - 59, - + 18 )
----
-3009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2794
SELECT ALL 75 DIV ( + MAX( - + 2 ) ) * + 55 * 53 AS col0, 56 * + CAST( NULL AS SIGNED ) * + + CASE + + ( 76 ) WHEN + 94 THEN + COUNT( * ) + NULLIF ( 22, COUNT( * ) ) WHEN + COUNT( 33 ) THEN NULL END DIV - 6
----
-107855
NULL

skipif mysql # not compatible
query II rowsort label-2794
SELECT ALL 75 / ( + MAX ( - + 2 ) ) * + 55 * 53 AS col0, 56 * + CAST ( NULL AS INTEGER ) * + + CASE + + ( 76 ) WHEN + 94 THEN + COUNT ( * ) + NULLIF ( 22, COUNT ( * ) ) WHEN + COUNT ( 33 ) THEN NULL END / - 6
----
-107855
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT - COUNT( * ) - + - 14 col1
----
13

skipif mysql # not compatible
query I rowsort label-2795
SELECT - COUNT ( * ) - + - 14 col1
----
13

query II rowsort
SELECT 27, - 7 AS col1
----
27
-7

query I rowsort
SELECT ALL - 44 * - 17 AS col2
----
748

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

query I rowsort
SELECT ALL + 44 * - - 90 col2
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT DISTINCT NULLIF ( - COUNT( DISTINCT - - 38 ), + MIN( - NULLIF ( + + 66, + 28 * + 10 + + 55 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT NULLIF ( - COUNT ( DISTINCT - - 38 ), + MIN ( - NULLIF ( + + 66, + 28 * + 10 + + 55 ) ) )
----
-1

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

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

query I rowsort
SELECT - 67 + 13 + + 31
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-2803
SELECT - 70, COUNT( * ) * + 87 * COUNT( * ) * 51 AS col2
----
-70
4437

skipif mysql # not compatible
query II rowsort label-2803
SELECT - 70, COUNT ( * ) * + 87 * COUNT ( * ) * 51 AS col2
----
-70
4437

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT + ( + 81 ) DIV + 33 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2804
SELECT + ( + 81 ) / + 33 AS col0
----
2

query I rowsort
SELECT ALL + - 76 + + 89 col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2806
SELECT DISTINCT - 6 AS col0, COALESCE ( + + CASE - - 45 WHEN - - MAX( - 28 ) * + 27 + - ( - - 56 ) THEN - MAX( 1 ) WHEN - 37 THEN - 68 WHEN - 98 * + SUM( DISTINCT + 27 ) - + 78 THEN NULL ELSE - - 37 / - 78 * + COUNT( * ) END, 86, 80 * - 30, + 67 * 84 ) / - + CASE CAST( - + 55 AS SIGNED ) WHEN + COUNT( * ) THEN - 98 WHEN COUNT( * ) THEN + - MAX( DISTINCT + 52 ) END
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-2806
SELECT DISTINCT - 6 AS col0, COALESCE ( + + CASE - - 45 WHEN - - MAX ( - 28 ) * + 27 + - ( - - 56 ) THEN - MAX ( 1 ) WHEN - 37 THEN - 68 WHEN - 98 * + SUM ( DISTINCT + 27 ) - + 78 THEN NULL ELSE - - 37 / - 78 * + COUNT ( * ) END, 86, 80 * - 30, + 67 * 84 ) / - + CASE CAST ( - + 55 AS INTEGER ) WHEN + COUNT ( * ) THEN - 98 WHEN COUNT ( * ) THEN + - MAX ( DISTINCT + 52 ) END
----
-6
NULL

query I rowsort
SELECT - 17 * 20 AS col1
----
-340

onlyif mysql # aggregate syntax: 
query II rowsort label-2808
SELECT ALL 81 AS col0, 66 * COUNT( * )
----
81
66

skipif mysql # not compatible
query II rowsort label-2808
SELECT ALL 81 AS col0, 66 * COUNT ( * )
----
81
66

query I rowsort
SELECT - - 24 + - - ( 20 ) * + - 0 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + + NULLIF ( + - COUNT( * ), MAX( - 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2810
SELECT + + NULLIF ( + - COUNT ( * ), MAX ( - 44 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - 92 + 53 + COUNT( * ) * - 7 * - - ( 97 )
----
-718

skipif mysql # not compatible
query I rowsort label-2811
SELECT - 92 + 53 + COUNT ( * ) * - 7 * - - ( 97 )
----
-718

query I rowsort
SELECT ALL + 52 * - 99 col2
----
-5148

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT + + NULLIF ( 55, - + 71 * 58 + 74 + + - COUNT( * ) + + COUNT( * ) * + NULLIF ( - - 72, - + 27 ) + + - CASE 86 WHEN 92 THEN COUNT( * ) END * + 78 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT + + NULLIF ( 55, - + 71 * 58 + 74 + + - COUNT ( * ) + + COUNT ( * ) * + NULLIF ( - - 72, - + 27 ) + + - CASE 86 WHEN 92 THEN COUNT ( * ) END * + 78 ) AS col0
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT + 0 * MAX( - - 88 ) + + 30 col2
----
30

skipif mysql # not compatible
query I rowsort label-2816
SELECT + 0 * MAX ( - - 88 ) + + 30 col2
----
30

query I rowsort
SELECT ALL + + 98 col0
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2818
SELECT ALL + - 29 * + 31 * - - 44 AS col0, MAX( DISTINCT + 36 )
----
-39556
36

skipif mysql # not compatible
query II rowsort label-2818
SELECT ALL + - 29 * + 31 * - - 44 AS col0, MAX ( DISTINCT + 36 )
----
-39556
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT - 13 DIV 43 * 66 + + 56 * + 84 AS col0
----
4704

skipif mysql # not compatible
query I rowsort label-2819
SELECT - 13 / 43 * 66 + + 56 * + 84 AS col0
----
4704

query II rowsort
SELECT DISTINCT + - NULLIF ( - + 45, - 7 + - 75 * + 16 + - - 74 ), + 97 AS col2
----
45
97

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

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

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

query I rowsort
SELECT + ( 78 ) + + + 52 col0
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT + CAST( - + 66 AS SIGNED ) * + 13
----
-858

skipif mysql # not compatible
query I rowsort label-2824
SELECT + CAST ( - + 66 AS INTEGER ) * + 13
----
-858

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2825
SELECT DISTINCT 69 * COALESCE ( + COALESCE ( - 89, + 37 * + 86 ), - ( + - 59 ) + + + COUNT( ALL + 90 ) * + ( - 89 ) ) DIV - 16
----
383

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT 69 * COALESCE ( + COALESCE ( - 89, + 37 * + 86 ), - ( + - 59 ) + + + COUNT ( ALL + 90 ) * + ( - 89 ) ) / - 16
----
383

query I rowsort
SELECT DISTINCT 80 * - + 87 AS col0
----
-6960

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-2828
SELECT ALL CASE + MIN( + 93 ) WHEN 42 THEN - 60 WHEN 59 THEN + - 63 * - - 28 + + + 79 END AS col0, 17, - - 92 AS col0
----
NULL
17
92

skipif mysql # not compatible
query III rowsort label-2828
SELECT ALL CASE + MIN ( + 93 ) WHEN 42 THEN - 60 WHEN 59 THEN + - 63 * - - 28 + + + 79 END AS col0, 17, - - 92 AS col0
----
NULL
17
92

onlyif mysql # DIV for integer division: 
query II rowsort label-2829
SELECT DISTINCT 14 * - 89 + + - 47 DIV 89 col0, 33
----
-1246
33

skipif mysql # not compatible
query II rowsort label-2829
SELECT DISTINCT 14 * - 89 + + - 47 / 89 col0, 33
----
-1246
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL 89 * - - MIN( - + ( 75 ) ) + 46 * 8 AS col0
----
-6307

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL 89 * - - MIN ( - + ( 75 ) ) + 46 * 8 AS col0
----
-6307

query I rowsort
SELECT + ( + 65 ) - + + 79 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2832
SELECT + 91 DIV - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2832
SELECT + 91 / - 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT MIN( + - 48 ) - - + 34 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2833
SELECT MIN ( + - 48 ) - - + 34 AS col1
----
-14

query I rowsort
SELECT 19 + - + 23 * - - 47
----
-1062

query I rowsort
SELECT 28 + - 59
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2836
SELECT ALL + - 74 + - ( + MIN( ALL - 21 ) ) + + ( + - 35 ) DIV - COUNT( * ) - - COUNT( * ) + + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL + - 74 + - ( + MIN ( ALL - 21 ) ) + + ( + - 35 ) / - COUNT ( * ) - - COUNT ( * ) + + COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL COUNT( ALL + ( 42 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL COUNT ( ALL + ( 42 ) ) AS col1
----
1

query I rowsort
SELECT 93 - + 26 col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2839
SELECT ALL CASE 90 WHEN - 47 THEN NULL WHEN + NULLIF ( + COUNT( * ), - NULLIF ( + 74, + CAST( - COUNT( * ) AS SIGNED ) * + SUM( DISTINCT - - 82 ) / + - 46 ) ) THEN + 86 ELSE + CASE - 79 WHEN - 58 / - 28 + + - 41 THEN + CASE 3 WHEN + ( + COUNT( * ) ) THEN NULL WHEN - 74 THEN + - NULLIF ( - 47, + 38 * + 76 ) + + + 0 ELSE - - 3 END + + + MIN( + 22 ) - 42 - - - 72 / + 60 WHEN + - 31 THEN NULL ELSE NULL END END + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL CASE 90 WHEN - 47 THEN NULL WHEN + NULLIF ( + COUNT ( * ), - NULLIF ( + 74, + CAST ( - COUNT ( * ) AS INTEGER ) * + SUM ( DISTINCT - - 82 ) / + - 46 ) ) THEN + 86 ELSE + CASE - 79 WHEN - 58 / - 28 + + - 41 THEN + CASE 3 WHEN + ( + COUNT ( * ) ) THEN NULL WHEN - 74 THEN + - NULLIF ( - 47, + 38 * + 76 ) + + + 0 ELSE - - 3 END + + + MIN ( + 22 ) - 42 - - - 72 / + 60 WHEN + - 31 THEN NULL ELSE NULL END END + + 29
----
NULL

query I rowsort
SELECT ALL + ( 68 ) + + CASE + - 42 WHEN 98 THEN + 41 ELSE 52 END
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT 1 + - CAST( - 62 AS SIGNED ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2841
SELECT 1 + - CAST ( - 62 AS INTEGER ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT DISTINCT + - 32 * + 18 - - - 64 - - 30 * + + SUM( - - 91 ) col0
----
2090

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT + - 32 * + 18 - - - 64 - - 30 * + + SUM ( - - 91 ) col0
----
2090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2843
SELECT + COALESCE ( NULLIF ( + 27, + 8 ), + 60 * + 12 * + 18, + CAST( NULL AS SIGNED ) ) + + - 40 + 19
----
6

skipif mysql # not compatible
query I rowsort label-2843
SELECT + COALESCE ( NULLIF ( + 27, + 8 ), + 60 * + 12 * + 18, + CAST ( NULL AS INTEGER ) ) + + - 40 + 19
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2844
SELECT 62 * - 55 - 20 * - COUNT( 79 ) + + COUNT( * ) + + 97 + - - 62 * - 29, CAST( NULL AS SIGNED ) + - 16 AS col0
----
-5090
NULL

skipif mysql # not compatible
query II rowsort label-2844
SELECT 62 * - 55 - 20 * - COUNT ( 79 ) + + COUNT ( * ) + + 97 + - - 62 * - 29, CAST ( NULL AS INTEGER ) + - 16 AS col0
----
-5090
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2845
SELECT 41 * 89 * COUNT( * ) * + + 84 - - 74 - + ( COUNT( * ) ) * 3 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT 41 * 89 * COUNT ( * ) * + + 84 - - 74 - + ( COUNT ( * ) ) * 3 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 56 * - 90 * - + 72 AS col0
----
-362880

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT DISTINCT - 30 DIV - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT - 30 / - 77 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2848
SELECT - 62 DIV + + COALESCE ( + 38, + 41 * - - ( 19 ) * 9, + NULLIF ( 24, + 7 * - - 99 + - 99 + + - MAX( DISTINCT + + ( - 85 ) ) DIV - 7 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2848
SELECT - 62 / + + COALESCE ( + 38, + 41 * - - ( 19 ) * 9, + NULLIF ( 24, + 7 * - - 99 + - 99 + + - MAX ( DISTINCT + + ( - 85 ) ) / - 7 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2849
SELECT ALL - 34 * - CASE + 4 WHEN + - 74 THEN + CAST( NULL AS SIGNED ) * - + 8 * 88 + + + 68 * + 70 END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - 34 * - CASE + 4 WHEN + - 74 THEN + CAST ( NULL AS INTEGER ) * - + 8 * 88 + + + 68 * + 70 END * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2850
SELECT ALL - COALESCE ( - COUNT( * ), - + 90 + - 91 + 53 ) AS col2, NULLIF ( COUNT( * ), - 45 * + 72 )
----
1
1

skipif mysql # not compatible
query II rowsort label-2850
SELECT ALL - COALESCE ( - COUNT ( * ), - + 90 + - 91 + 53 ) AS col2, NULLIF ( COUNT ( * ), - 45 * + 72 )
----
1
1

query II rowsort
SELECT 49 * - NULLIF ( - 36, 70 * + 67 / - 90 ) AS col2, + 12 AS col1
----
1764
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2852
SELECT 88 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT 88 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT 94 DIV - 90 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2853
SELECT 94 / - 90 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL + 71 * + + COUNT( * ) * - 94 * - + 84
----
560616

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL + 71 * + + COUNT ( * ) * - 94 * - + 84
----
560616

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT DISTINCT + 62 + - + MIN( + 83 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT + 62 + - + MIN ( + 83 ) AS col1
----
-21

query I rowsort
SELECT ALL + 44 + - - 39 AS col1
----
83

query I rowsort
SELECT 97 + 34 col2
----
131

query II rowsort
SELECT ALL 45, 19 AS col2
----
45
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2860
SELECT DISTINCT 79 + - + 26 DIV - COALESCE ( - 52, - 16 ) * + 96 - + CAST( - AVG ( + 23 ) AS SIGNED ) * - - NULLIF ( + COUNT( * ), - + CASE - 27 WHEN 20 THEN NULL WHEN + + 48 THEN NULL ELSE + 35 + + 40 END ) DIV + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT 79 + - + 26 / - COALESCE ( - 52, - 16 ) * + 96 - + CAST ( - AVG ( + 23 ) AS INTEGER ) * - - NULLIF ( + COUNT ( * ), - + CASE - 27 WHEN 20 THEN NULL WHEN + + 48 THEN NULL ELSE + 35 + + 40 END ) / + - COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2861
SELECT - 55 AS col2, 56 * + COUNT( * ) AS col0
----
-55
56

skipif mysql # not compatible
query II rowsort label-2861
SELECT - 55 AS col2, 56 * + COUNT ( * ) AS col0
----
-55
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2862
SELECT 90 AS col2, COUNT( - - 65 ) * COUNT( - 34 )
----
90
1

skipif mysql # not compatible
query II rowsort label-2862
SELECT 90 AS col2, COUNT ( - - 65 ) * COUNT ( - 34 )
----
90
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2863
SELECT ALL 14 + COUNT( * ) * - CASE + 85 WHEN + + 67 THEN - SUM( - + 81 ) * - ( 27 ) + COUNT( * ) * + COUNT( * ) WHEN + CAST( - COUNT( * ) AS DECIMAL ) * - 29 * - 31 + CAST( - ( 59 ) AS SIGNED ) THEN NULL ELSE NULLIF ( + 4, - 22 ) * + - COUNT( + 68 ) END AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL 14 + COUNT ( * ) * - CASE + 85 WHEN + + 67 THEN - SUM ( - + 81 ) * - ( 27 ) + COUNT ( * ) * + COUNT ( * ) WHEN + CAST ( - COUNT ( * ) AS REAL ) * - 29 * - 31 + CAST ( - ( 59 ) AS INTEGER ) THEN NULL ELSE NULLIF ( + 4, - 22 ) * + - COUNT ( + 68 ) END AS col0
----
18

query I rowsort
SELECT 3 * + 54 AS col2
----
162

query I rowsort
SELECT ALL - 9 * - - 56 AS col1
----
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT 9 DIV + 22 col2
----
0

skipif mysql # not compatible
query I rowsort label-2866
SELECT 9 / + 22 col2
----
0

query I rowsort
SELECT DISTINCT 43 + + 92
----
135

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

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

query I rowsort
SELECT 99 + + 96
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT - MAX( ALL 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2870
SELECT - MAX ( ALL 97 ) AS col0
----
-97

query I rowsort
SELECT COALESCE ( 3, - 1 ) + 2 AS col1
----
5

query I rowsort
SELECT 18 + + 47
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT - MAX( - 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-2873
SELECT - MAX ( - 39 ) AS col2
----
39

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT COUNT( * ) + 11 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2876
SELECT COUNT ( * ) + 11 AS col2
----
12

query I rowsort
SELECT ALL + 47 * 54
----
2538

query I rowsort
SELECT 53 + ( 99 ) AS col1
----
152

query I rowsort
SELECT ALL 6 * - 94
----
-564

query I rowsort
SELECT DISTINCT 23 * + 3 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT + MIN( ALL NULLIF ( + 90, COALESCE ( - 49, 45 ) + - 79 ) ) * - 26 - + ( - 48 + 29 )
----
-2321

skipif mysql # not compatible
query I rowsort label-2881
SELECT + MIN ( ALL NULLIF ( + 90, COALESCE ( - 49, 45 ) + - 79 ) ) * - 26 - + ( - 48 + 29 )
----
-2321

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT 72 * + MIN( DISTINCT 94 )
----
6768

skipif mysql # not compatible
query I rowsort label-2882
SELECT 72 * + MIN ( DISTINCT 94 )
----
6768

query I rowsort
SELECT ALL - 48 * + 51 AS col0
----
-2448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2884
SELECT 43 + + ( + MIN( ALL 82 ) + - 86 DIV + 96 )
----
125

skipif mysql # not compatible
query I rowsort label-2884
SELECT 43 + + ( + MIN ( ALL 82 ) + - 86 / + 96 )
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT ALL - COALESCE ( - 30, COALESCE ( CAST( NULL AS SIGNED ), 42, - MIN( ALL 10 ) ) * + 78 - + ( COUNT( * ) ) )
----
30

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL - COALESCE ( - 30, COALESCE ( CAST ( NULL AS INTEGER ), 42, - MIN ( ALL 10 ) ) * + 78 - + ( COUNT ( * ) ) )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT 62 * ( - 79 DIV 58 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-2886
SELECT 62 * ( - 79 / 58 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL - NULLIF ( + COUNT( * ), 84 ) * 24 + 41 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL - NULLIF ( + COUNT ( * ), 84 ) * 24 + 41 AS col2
----
17

query I rowsort
SELECT 75 * 27 + 2 * + 29 AS col2
----
2083

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2889
SELECT DISTINCT - 3 DIV SUM( COALESCE ( 89, 11, 25, - 37 ) * - 88 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT - 3 / SUM ( COALESCE ( 89, 11, 25, - 37 ) * - 88 ) AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2890
SELECT ALL 7 * + 74 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL 7 * + 74 + CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL + 20 * MIN( + 53 * + ( 34 ) ) + 13
----
36053

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL + 20 * MIN ( + 53 * + ( 34 ) ) + 13
----
36053

query I rowsort
SELECT 87 + + 96 * 45 AS col1
----
4407

query I rowsort
SELECT ALL 38 * 24 + 46
----
958

onlyif mysql # DIV for integer division: 
query I rowsort label-2895
SELECT DISTINCT - 3 DIV + 8
----
0

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - 3 / + 8
----
0

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

query I rowsort
SELECT + 93 * 27 + + 30 AS col2
----
2541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2898
SELECT - MIN( DISTINCT 51 ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-2898
SELECT - MIN ( DISTINCT 51 ) / 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT 13 * + 63 + - SUM( ALL 6 )
----
813

skipif mysql # not compatible
query I rowsort label-2899
SELECT 13 * + 63 + - SUM ( ALL 6 )
----
813

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2900
SELECT - CAST( NULL AS DECIMAL ) * 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2900
SELECT - CAST ( NULL AS REAL ) * 94 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2901
SELECT + 32 + CAST ( NULL AS INTEGER ) * - 66 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT ALL + 13 + + ( - ( CAST( AVG ( - 86 ) AS SIGNED ) ) - 88 * + NULLIF ( - COUNT( * ) * - 49, + ( COUNT( DISTINCT + 53 ) ) - + SUM( DISTINCT 3 ) * + CASE 47 * 70 + - CASE - 26 + 23 WHEN + MIN( ( 90 ) ) THEN NULL ELSE - 3 END / 40 WHEN 0 * 20 THEN 36 ELSE NULL END ) ) AS col0
----
-4213

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL + 13 + + ( - ( CAST ( AVG ( - 86 ) AS INTEGER ) ) - 88 * + NULLIF ( - COUNT ( * ) * - 49, + ( COUNT ( DISTINCT + 53 ) ) - + SUM ( DISTINCT 3 ) * + CASE 47 * 70 + - CASE - 26 + 23 WHEN + MIN ( ( 90 ) ) THEN NULL ELSE - 3 END / 40 WHEN 0 * 20 THEN 36 ELSE NULL END ) ) AS col0
----
-4213

query I rowsort
SELECT ALL + 86 + 99 * 31 AS col2
----
3155

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT DISTINCT - COUNT( * ) * - 39
----
39

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT - COUNT ( * ) * - 39
----
39

query I rowsort
SELECT ALL 91 + 33
----
124

query I rowsort
SELECT - 96 * - 70
----
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT ALL - 14 * COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL - 14 * COUNT ( * )
----
-14

query I rowsort
SELECT DISTINCT + 0 - 16 * + 67 AS col0
----
-1072

query I rowsort
SELECT - + 67 - - 99 AS col1
----
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT + 15 + - 60 * COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-2912
SELECT + 15 + - 60 * COUNT ( * )
----
-45

query I rowsort
SELECT DISTINCT 85 - - 19
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT CASE ( - SUM( ALL + 62 ) ) WHEN 15 / 46 THEN + AVG ( - 50 ) WHEN - 76 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT CASE ( - SUM ( ALL + 62 ) ) WHEN 15 / 46 THEN + AVG ( - 50 ) WHEN - 76 THEN NULL END AS col1
----
NULL

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

query I rowsort
SELECT ALL - 74 col1
----
-74

query I rowsort
SELECT ALL + 7 * 50
----
350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT - AVG ( CASE WHEN NOT + CAST( 16 AS SIGNED ) IS NOT NULL THEN 35 WHEN NOT NULL IS NOT NULL THEN NULL END ) * - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT - AVG ( CASE WHEN NOT + CAST ( 16 AS INTEGER ) IS NOT NULL THEN 35 WHEN NOT NULL IS NOT NULL THEN NULL END ) * - 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT ALL - COUNT( - 26 ) DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - COUNT ( - 26 ) / 41
----
0

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

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

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

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

query I rowsort
SELECT + 99 - 42
----
57

query I rowsort
SELECT ALL - NULLIF ( 66, 56 / - 6 + + 63 ) * 50
----
-3300

query I rowsort
SELECT + - 35 * ( 53 )
----
-1855

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

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

query I rowsort
SELECT - NULLIF ( + 44, 66 * - 74 + 37 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT + - 85 DIV 35
----
-2

skipif mysql # not compatible
query I rowsort label-2927
SELECT + - 85 / 35
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT ALL 14 DIV + 5
----
2

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL 14 / + 5
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2929
SELECT ALL - 21 DIV - 30 + + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL - 21 / - 30 + + 93 AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2930
SELECT ALL - 30 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL - 30 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT + 2 DIV 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2931
SELECT + 2 / 80 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2932
SELECT ALL - 64 DIV + 93 * SUM( 24 ) + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL - 64 / + 93 * SUM ( 24 ) + + COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2933
SELECT ALL 34 * 79 + 81 DIV ( - COALESCE ( + 13, + 85 * 98 ) )
----
2680

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL 34 * 79 + 81 / ( - COALESCE ( + 13, + 85 * 98 ) )
----
2680

query I rowsort
SELECT + 10 * - 84
----
-840

query I rowsort
SELECT ALL 59 * - 96 + 27 AS col1
----
-5637

query I rowsort
SELECT DISTINCT + 16 AS col1
----
16

query I rowsort
SELECT + ( + + NULLIF ( + 58, + 90 ) ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL + COUNT( * ) * 49 + 90 AS col2
----
139

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL + COUNT ( * ) * 49 + 90 AS col2
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT + CAST( - + COALESCE ( + 73, 6 ) AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-2939
SELECT + CAST ( - + COALESCE ( + 73, 6 ) AS INTEGER )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ( - CASE - 58 WHEN 10 THEN - 78 + 67 * + 75 WHEN 62 THEN - COALESCE ( 28, MAX( COALESCE ( ( - 98 ), - 87, ( - 36 ) + 96 ) ) ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT ( - CASE - 58 WHEN 10 THEN - 78 + 67 * + 75 WHEN 62 THEN - COALESCE ( 28, MAX ( COALESCE ( ( - 98 ), - 87, ( - 36 ) + 96 ) ) ) ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT + 74 + + 39 DIV ( 25 )
----
75

skipif mysql # not compatible
query I rowsort label-2941
SELECT + 74 + + 39 / ( 25 )
----
75

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT + COUNT( * ) + 60 * + 9 AS col0
----
541

skipif mysql # not compatible
query I rowsort label-2945
SELECT + COUNT ( * ) + 60 * + 9 AS col0
----
541

query I rowsort
SELECT - 33 * 20
----
-660

query I rowsort
SELECT ALL - 82 * + + 7 + 34 AS col0
----
-540

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL 50 * + 9 * SUM( + 60 * 76 ) AS col1
----
2052000

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL 50 * + 9 * SUM ( + 60 * 76 ) AS col1
----
2052000

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT + MIN( DISTINCT + ( 84 ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + MIN ( DISTINCT + ( 84 ) ) AS col0
----
84

query I rowsort
SELECT DISTINCT 83 * 20 - 31
----
1629

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2953
SELECT ALL + ( + 80 ) DIV + 61 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL + ( + 80 ) / + 61 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT - 97 + + COUNT( * ) col0
----
-96

skipif mysql # not compatible
query I rowsort label-2954
SELECT - 97 + + COUNT ( * ) col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL 58 * + 14 - COUNT( * ) * 28
----
784

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL 58 * + 14 - COUNT ( * ) * 28
----
784

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2956
SELECT 55 * - AVG ( DISTINCT 26 ) * - 46 + + ( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT 55 * - AVG ( DISTINCT 26 ) * - 46 + + ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 93 col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2958
SELECT ALL + SUM( - + 35 ) DIV - COALESCE ( CAST( + 77 AS SIGNED ), 27 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + SUM ( - + 35 ) / - COALESCE ( CAST ( + 77 AS INTEGER ), 27 ) AS col0
----
0

query I rowsort
SELECT + - 96 + 43 * - 79 AS col0
----
-3493

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2960
SELECT - - 91 DIV - MIN( ALL - 58 ) + 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2960
SELECT - - 91 / - MIN ( ALL - 58 ) + 7 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT - 79 * + 91 * 70 - - 13 * + 73 + COUNT( * )
----
-502280

skipif mysql # not compatible
query I rowsort label-2961
SELECT - 79 * + 91 * 70 - - 13 * + 73 + COUNT ( * )
----
-502280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT ALL - - 62 * + - 12 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - - 62 * + - 12 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL + - 58 * - SUM( DISTINCT + 51 ) AS col2
----
2958

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL + - 58 * - SUM ( DISTINCT + 51 ) AS col2
----
2958

query I rowsort
SELECT DISTINCT - + 96 * + 12 + - 31
----
-1183

query I rowsort
SELECT DISTINCT + + 33 * - + 35 + + 51
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT - 33 * + 38 * + CASE 18 WHEN + 0 + - 97 / COUNT( * ) THEN 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT - 33 * + 38 * + CASE 18 WHEN + 0 + - 97 / COUNT ( * ) THEN 82 END AS col2
----
NULL

query I rowsort
SELECT - - 89 * - 96
----
-8544

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT - COUNT( * ) + - 17 + - 51 * + ( 90 - 66 ) * + 58 AS col1
----
-71010

skipif mysql # not compatible
query I rowsort label-2969
SELECT - COUNT ( * ) + - 17 + - 51 * + ( 90 - 66 ) * + 58 AS col1
----
-71010

query I rowsort
SELECT - 59 + - - 14
----
-45

query I rowsort
SELECT - COALESCE ( + 1, + 11, 33 * + 68 ) AS col2
----
-1

query I rowsort
SELECT ALL + 34 * - 86 AS col1
----
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT - MAX( DISTINCT 45 ) + - 38 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-2973
SELECT - MAX ( DISTINCT 45 ) + - 38 AS col2
----
-83

query I rowsort
SELECT + ( 77 ) * 28
----
2156

query I rowsort
SELECT - + ( 42 ) + + 25 AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT DISTINCT - 1 * + 5 DIV + 68 + 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT - 1 * + 5 / + 68 + 36 AS col1
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2977
SELECT ALL - 43 + - 92 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL - 43 + - 92 * CAST ( NULL AS REAL )
----
NULL

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

query I rowsort
SELECT ALL + 12 + ( - 13 ) + - 18 AS col2
----
-19

query I rowsort
SELECT DISTINCT + 3 * 1 * 31 AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT + 86 DIV + + 53 + + 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-2981
SELECT + 86 / + + 53 + + 87 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL 69 + 14 / - - CASE - 8 WHEN - COUNT( * ) THEN 29 END / 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL 69 + 14 / - - CASE - 8 WHEN - COUNT ( * ) THEN 29 END / 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2983
SELECT 49 DIV - COUNT( * ) + - 49 - - 35 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2983
SELECT 49 / - COUNT ( * ) + - 49 - - 35 AS col2
----
-63

query II rowsort
SELECT 55, + 5 AS col2
----
55
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2986
SELECT + 37 AS col0, + CAST( + + 99 AS SIGNED ) AS col1
----
37
99

skipif mysql # not compatible
query II rowsort label-2986
SELECT + 37 AS col0, + CAST ( + + 99 AS INTEGER ) AS col1
----
37
99

query I rowsort
SELECT 50 * - - 64 + 93 * - 38 col2
----
-334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2988
SELECT ALL - COUNT( CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - COUNT ( CAST ( NULL AS INTEGER ) ) col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2989
SELECT CAST( NULL AS DECIMAL ) + - 29 * + + 68 / - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT CAST ( NULL AS REAL ) + - 29 * + + 68 / - 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL COALESCE ( 48, + + 18 - 8, NULLIF ( MAX( DISTINCT + 95 ), 83 ) * 15 ) - CASE - 90 WHEN + 26 THEN - 25 * 92 WHEN - 64 THEN ( + 64 ) ELSE NULL END * 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL COALESCE ( 48, + + 18 - 8, NULLIF ( MAX ( DISTINCT + 95 ), 83 ) * 15 ) - CASE - 90 WHEN + 26 THEN - 25 * 92 WHEN - 64 THEN ( + 64 ) ELSE NULL END * 36 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2991
SELECT ALL + CAST( + 30 AS SIGNED ) - + + COUNT( * ) col0
----
29

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL + CAST ( + 30 AS INTEGER ) - + + COUNT ( * ) col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2992
SELECT ALL SUM( + CAST( NULL AS DECIMAL ) ) * - ( 50 ) * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL SUM ( + CAST ( NULL AS REAL ) ) * - ( 50 ) * - 83
----
NULL

query II rowsort
SELECT DISTINCT - 79 AS col0, 22 AS col0
----
-79
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT COUNT( * ) * + 78 * - + ( + 29 ) col1
----
-2262

skipif mysql # not compatible
query I rowsort label-2995
SELECT COUNT ( * ) * + 78 * - + ( + 29 ) col1
----
-2262

query II rowsort
SELECT DISTINCT - 44, - ( + 65 ) AS col1
----
-44
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT - CASE SUM( DISTINCT 76 ) WHEN 93 THEN + 40 ELSE 16 END + 45
----
29

skipif mysql # not compatible
query I rowsort label-2997
SELECT - CASE SUM ( DISTINCT 76 ) WHEN 93 THEN + 40 ELSE 16 END + 45
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL 47 + + SUM( DISTINCT - + 41 )
----
6

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL 47 + + SUM ( DISTINCT - + 41 )
----
6

query I rowsort
SELECT - 30 * + ( - - 68 ) col0
----
-2040

query I rowsort
SELECT 49 * - + 47 - - 44
----
-2259

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

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

query I rowsort
SELECT + 13 + - + 9 - + 9 AS col0
----
-5

query I rowsort
SELECT DISTINCT - + 18 + - + 27 + ( 74 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3004
SELECT - 14, COALESCE ( + COUNT( * ), COUNT( * ) + 2 ) AS col1
----
-14
1

skipif mysql # not compatible
query II rowsort label-3004
SELECT - 14, COALESCE ( + COUNT ( * ), COUNT ( * ) + 2 ) AS col1
----
-14
1

query I rowsort
SELECT 62 + + 35 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT - CASE + 45 WHEN + 13 THEN 89 WHEN 25 THEN NULL ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-3006
SELECT - CASE + 45 WHEN + 13 THEN 89 WHEN 25 THEN NULL ELSE + COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL + + 43 + + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + + 43 + + COUNT ( * )
----
44

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

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

query I rowsort
SELECT DISTINCT + 61 + - 89 AS col1
----
-28

query I rowsort
SELECT ALL + 17 + - 3 AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT DISTINCT + 99 + - + 38 DIV - - 10 - + - 12
----
108

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT + 99 + - + 38 / - - 10 - + - 12
----
108

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

skipif mysql # not compatible
query I rowsort label-3012
SELECT COUNT ( * ) * - + MAX ( DISTINCT 23 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT ALL + SUM( - - CAST( NULL AS SIGNED ) ) - + 58 / - 66 + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL + SUM ( - - CAST ( NULL AS INTEGER ) ) - + 58 / - 66 + 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3014
SELECT COUNT( 61 ) DIV MIN( ALL - ( 93 ) ) - 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3014
SELECT COUNT ( 61 ) / MIN ( ALL - ( 93 ) ) - 68 AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT ALL + 81 / ( CAST( NULL AS SIGNED ) ) / + + CASE - 58 WHEN COUNT( * ) THEN NULL WHEN 21 THEN + 40 + 81 END + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL + 81 / ( CAST ( NULL AS INTEGER ) ) / + + CASE - 58 WHEN COUNT ( * ) THEN NULL WHEN 21 THEN + 40 + 81 END + + 47 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT + COUNT ( + 54 ) * - + 55 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ( 73 ) * - - 54 + COUNT( * ) col2
----
3943

skipif mysql # not compatible
query I rowsort label-3017
SELECT ( 73 ) * - - 54 + COUNT ( * ) col2
----
3943

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT 55 * COUNT( * ) * - 93 * 61 + + ( 61 )
----
-311954

skipif mysql # not compatible
query I rowsort label-3018
SELECT 55 * COUNT ( * ) * - 93 * 61 + + ( 61 )
----
-311954

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT COUNT( * ) - - 12
----
13

skipif mysql # not compatible
query I rowsort label-3019
SELECT COUNT ( * ) - - 12
----
13

query I rowsort
SELECT 91 * 47 + 14 + 46 * - 9 AS col1
----
3877

onlyif mysql # DIV for integer division: 
query II rowsort label-3021
SELECT 18 DIV + + 49 AS col2, 40 col0
----
0
40

skipif mysql # not compatible
query II rowsort label-3021
SELECT 18 / + + 49 AS col2, 40 col0
----
0
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT 54 * - + COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3022
SELECT 54 * - + COUNT ( * ) AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3023
SELECT DISTINCT 67 DIV + 81 * - 16 * - + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT 67 / + 81 * - 16 * - + 85 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3024
SELECT ALL - COUNT( * ) * - 21 DIV - + 16
----
-1

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL - COUNT ( * ) * - 21 / - + 16
----
-1

query I rowsort
SELECT + 39 + + + 78 AS col0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-3026
SELECT ALL - 8 DIV - + 89 * - + 49
----
0

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - 8 / - + 89 * - + 49
----
0

query I rowsort
SELECT DISTINCT - + 13 AS col0
----
-13

query I rowsort
SELECT - 12 * + 47 + + - 54 * - 35 AS col0
----
1326

query I rowsort
SELECT - ( - - NULLIF ( - - 81, - 47 * + ( 82 * - 81 ) ) ) * + 91
----
-7371

query I rowsort
SELECT ALL 31 + + 87
----
118

query I rowsort
SELECT ALL 35 + 20
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-3032
SELECT - 19 + + 83, COUNT( + 40 ) + COUNT( * ) * NULLIF ( + 18, + ( - 7 ) ) AS col2
----
64
19

skipif mysql # not compatible
query II rowsort label-3032
SELECT - 19 + + 83, COUNT ( + 40 ) + COUNT ( * ) * NULLIF ( + 18, + ( - 7 ) ) AS col2
----
64
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + 28 * + - 82 + - CASE - 0 WHEN - MIN( 18 ) + 99 THEN 63 * + COALESCE ( - ( - 80 ), - 58 ) WHEN - 74 * - 72 THEN NULL END + 88 * 77 * - COALESCE ( 61 - 63 * + 54, 82 - - COUNT( * ), 64 * + 59 - - 80 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT + 28 * + - 82 + - CASE - 0 WHEN - MIN ( 18 ) + 99 THEN 63 * + COALESCE ( - ( - 80 ), - 58 ) WHEN - 74 * - 72 THEN NULL END + 88 * 77 * - COALESCE ( 61 - 63 * + 54, 82 - - COUNT ( * ), 64 * + 59 - - 80 ) AS col2
----
NULL

query I rowsort
SELECT 84 * + - 21
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL MIN( DISTINCT - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL MIN ( DISTINCT - 89 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT - CAST( - 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-3036
SELECT - CAST ( - 46 AS INTEGER )
----
46

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

query I rowsort
SELECT ALL + 1 + - 9 col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3039
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT 25 + - - 71 + + 43 * + 96 * 19 * - COUNT( * )
----
-78336

skipif mysql # not compatible
query I rowsort label-3040
SELECT 25 + - - 71 + + 43 * + 96 * 19 * - COUNT ( * )
----
-78336

query I rowsort
SELECT - 81 - 63 * 91 * + ( + 48 )
----
-275265

query I rowsort
SELECT - 40 * - 30
----
1200

query I rowsort
SELECT ALL - 58 * + 66 AS col2
----
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + 52 + - + CASE + 85 WHEN + + 50 * + COUNT( * ) + 78 THEN 26 + - 53 WHEN 92 * + 13 - - COUNT( * ) THEN NULL END + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT + 52 + - + CASE + 85 WHEN + + 50 * + COUNT ( * ) + 78 THEN 26 + - 53 WHEN 92 * + 13 - - COUNT ( * ) THEN NULL END + 66 AS col1
----
NULL

query I rowsort
SELECT - 16 + - 14
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL MIN( - 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL MIN ( - 53 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT - CASE - 71 WHEN - - SUM( ALL + ( - 12 ) ) THEN COUNT( * ) * 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT - CASE - 71 WHEN - - SUM ( ALL + ( - 12 ) ) THEN COUNT ( * ) * 7 END
----
NULL

query I rowsort
SELECT ALL + 86 * 4
----
344

query I rowsort
SELECT - ( + - 26 ) + + + 43
----
69

query I rowsort
SELECT - 4 * + - 66 AS col1
----
264

query I rowsort
SELECT - 21 + + 65 + + 85 + 76 AS col2
----
205

onlyif mysql # DIV for integer division: 
query I rowsort label-3052
SELECT - 80 * 52 DIV 86
----
-48

skipif mysql # not compatible
query I rowsort label-3052
SELECT - 80 * 52 / 86
----
-48

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

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

query I rowsort
SELECT - 98 + - + 83
----
-181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3055
SELECT ALL CASE 73 WHEN - 50 * CASE - COUNT( * ) WHEN 77 + - 31 THEN - ( 58 ) * CAST( - 79 AS SIGNED ) END - - 89 THEN + 48 * COUNT( * ) WHEN 18 + 96 * - 46 THEN 42 + + 1 * + 80 WHEN 42 THEN + ( + 79 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL CASE 73 WHEN - 50 * CASE - COUNT ( * ) WHEN 77 + - 31 THEN - ( 58 ) * CAST ( - 79 AS INTEGER ) END - - 89 THEN + 48 * COUNT ( * ) WHEN 18 + 96 * - 46 THEN 42 + + 1 * + 80 WHEN 42 THEN + ( + 79 ) END
----
NULL

query I rowsort
SELECT ALL COALESCE ( + + ( + ( - ( + 74 ) ) ), 80 * 23 + 18, - 40, 57 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT - 74 + ( - + COUNT( DISTINCT - + 47 ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3057
SELECT - 74 + ( - + COUNT ( DISTINCT - + 47 ) ) AS col1
----
-75

query I rowsort
SELECT + COALESCE ( + + 10, 29 )
----
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT - COUNT( 35 ) * + 10 * + - 17 AS col2
----
170

skipif mysql # not compatible
query I rowsort label-3060
SELECT - COUNT ( 35 ) * + 10 * + - 17 AS col2
----
170

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT - ( 11 ) * + 31 + - + 4 + + NULLIF ( + 45, + COUNT( * ) ) + + 59
----
-241

skipif mysql # not compatible
query I rowsort label-3062
SELECT - ( 11 ) * + 31 + - + 4 + + NULLIF ( + 45, + COUNT ( * ) ) + + 59
----
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL + MAX( DISTINCT + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL + MAX ( DISTINCT + 95 ) AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3064
SELECT 23 DIV - - CAST( - 16 AS SIGNED ) + + 8 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3064
SELECT 23 / - - CAST ( - 16 AS INTEGER ) + + 8 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT COALESCE ( + COUNT( * ), - - 43, - - 44 * - 27 * + 70 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3065
SELECT COALESCE ( + COUNT ( * ), - - 43, - - 44 * - 27 * + 70 ) AS col2
----
1

query I rowsort
SELECT - 14 * + - 43
----
602

query I rowsort
SELECT ALL - 23 * + 3
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT 61 * - COUNT( + ( + 55 ) ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT 61 * - COUNT ( + ( + 55 ) ) col1
----
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT - 5 * - 7 + CASE - 80 WHEN 6 THEN ( 66 ) WHEN 90 + - COUNT( * ) THEN NULL WHEN - ( - COUNT( * ) ) THEN NULL ELSE 98 END + - 21 col2
----
112

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT - 5 * - 7 + CASE - 80 WHEN 6 THEN ( 66 ) WHEN 90 + - COUNT ( * ) THEN NULL WHEN - ( - COUNT ( * ) ) THEN NULL ELSE 98 END + - 21 col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT - MAX( - 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3071
SELECT - MAX ( - 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT DISTINCT - 98 * - - 27 + + COUNT( + 0 )
----
-2645

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT - 98 * - - 27 + + COUNT ( + 0 )
----
-2645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT DISTINCT COUNT( * ) * - 36 + + MIN( ALL + - 65 ) + + 20 + + ( - COUNT( * ) + - 97 ) DIV + 80 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT COUNT ( * ) * - 36 + + MIN ( ALL + - 65 ) + + 20 + + ( - COUNT ( * ) + - 97 ) / + 80 AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3074
SELECT - - 7 * + ( + CAST( 66 AS SIGNED ) ) AS col1
----
462

skipif mysql # not compatible
query I rowsort label-3074
SELECT - - 7 * + ( + CAST ( 66 AS INTEGER ) ) AS col1
----
462

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT + + 2 * - 6 DIV 98 + + 57 * + 44 * - 18 + 18 AS col1
----
-45126

skipif mysql # not compatible
query I rowsort label-3075
SELECT + + 2 * - 6 / 98 + + 57 * + 44 * - 18 + 18 AS col1
----
-45126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT ALL + + COALESCE ( + 18, CAST( COUNT( * ) AS SIGNED ) + 58, + 43 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL + + COALESCE ( + 18, CAST ( COUNT ( * ) AS INTEGER ) + 58, + 43 ) AS col0
----
18

query II rowsort
SELECT + + 9, 9 * - 28 AS col0
----
9
-252

query II rowsort
SELECT 69 AS col0, - 72 AS col1
----
69
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT + COALESCE ( + 80, ( - - COUNT( * ) ) + - 6 )
----
80

skipif mysql # not compatible
query I rowsort label-3079
SELECT + COALESCE ( + 80, ( - - COUNT ( * ) ) + - 6 )
----
80

query I rowsort
SELECT DISTINCT + + 60 AS col0
----
60

query I rowsort
SELECT DISTINCT 51 * + 26 + 15 AS col0
----
1341

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL + COUNT( 68 ) * + 71 + + 11 col0
----
82

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL + COUNT ( 68 ) * + 71 + + 11 col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT - 39 * ( - 91 ) * + ( SUM( + 21 ) )
----
74529

skipif mysql # not compatible
query I rowsort label-3083
SELECT - 39 * ( - 91 ) * + ( SUM ( + 21 ) )
----
74529

query II rowsort
SELECT + + 48 col0, + 87 * - 86 * + 94 * 48
----
48
-33758784

onlyif mysql # aggregate syntax: 
query II rowsort label-3085
SELECT ALL COUNT( * ), 8 AS col1
----
1
8

skipif mysql # not compatible
query II rowsort label-3085
SELECT ALL COUNT ( * ), 8 AS col1
----
1
8

query I rowsort
SELECT ALL - CASE - + 12 WHEN + NULLIF ( - 17, - 32 ) THEN 20 END AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 13, AVG ( ALL + - 63 ) / - 37 + ( 5 ) ) col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3088
SELECT ALL COUNT( * ) - - 53 + 82 AS col0, + COUNT( * ) AS col2
----
136
1

skipif mysql # not compatible
query II rowsort label-3088
SELECT ALL COUNT ( * ) - - 53 + 82 AS col0, + COUNT ( * ) AS col2
----
136
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3089
SELECT + - 31 + - COUNT( ALL - + 65 ) + - - ( - + CAST( + 11 AS SIGNED ) )
----
-43

skipif mysql # not compatible
query I rowsort label-3089
SELECT + - 31 + - COUNT ( ALL - + 65 ) + - - ( - + CAST ( + 11 AS INTEGER ) )
----
-43

query I rowsort
SELECT - NULLIF ( + 56, + 81 * 16 / - - 40 ) col1
----
-56

query I rowsort
SELECT DISTINCT 5 * + + 71 * - 18
----
-6390

query I rowsort
SELECT + 16 * + 13
----
208

query I rowsort
SELECT - 34 + + 19 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT + 46 * CASE + - 71 WHEN - 77 THEN NULL ELSE + - CAST( - - 60 AS SIGNED ) END * - COALESCE ( 15, 59 + 5 ) AS col2
----
41400

skipif mysql # not compatible
query I rowsort label-3094
SELECT + 46 * CASE + - 71 WHEN - 77 THEN NULL ELSE + - CAST ( - - 60 AS INTEGER ) END * - COALESCE ( 15, 59 + 5 ) AS col2
----
41400

query II rowsort
SELECT 79 AS col1, + 84 + - + 88 AS col1
----
79
-4

query I rowsort
SELECT + 80 * - 23 * - 42 AS col1
----
77280

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT ALL 81 col2, ( + COUNT( * ) )
----
81
1

skipif mysql # not compatible
query II rowsort label-3098
SELECT ALL 81 col2, ( + COUNT ( * ) )
----
81
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3099
SELECT + CAST( + - COUNT( * ) AS SIGNED ) - 54
----
-55

skipif mysql # not compatible
query I rowsort label-3099
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) - 54
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3100
SELECT + COUNT( * ) DIV 5 AS col1, + MIN( + - 52 ) AS col0
----
0
-52

skipif mysql # not compatible
query II rowsort label-3100
SELECT + COUNT ( * ) / 5 AS col1, + MIN ( + - 52 ) AS col0
----
0
-52

query I rowsort
SELECT + 62 * + COALESCE ( 80, - 14 + - - 51 ) AS col1
----
4960

onlyif mysql # aggregate syntax: 
query II rowsort label-3102
SELECT 8, + SUM( + 87 ) + 27 AS col1
----
8
114

skipif mysql # not compatible
query II rowsort label-3102
SELECT 8, + SUM ( + 87 ) + 27 AS col1
----
8
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT ALL SUM( 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL SUM ( 86 ) AS col0
----
86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT + 14 DIV - - 67 * + ( 67 )
----
0

skipif mysql # not compatible
query I rowsort label-3105
SELECT + 14 / - - 67 * + ( 67 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL - 92 + - MAX( 36 )
----
-128

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - 92 + - MAX ( 36 )
----
-128

query I rowsort
SELECT + 32 - + 44 + - 38
----
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT - 84 * - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3109
SELECT - 84 * - COUNT ( * ) AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT ALL + ( + 3 ) DIV - NULLIF ( - + 31, + 44 ) + 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + ( + 3 ) / - NULLIF ( - + 31, + 44 ) + 5 AS col0
----
5

query II rowsort
SELECT ALL + 70 AS col0, 11 AS col1
----
70
11

query I rowsort
SELECT - - 22 * + 74
----
1628

onlyif mysql # DIV for integer division: 
query I rowsort label-3113
SELECT ALL + 8 DIV 85 + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + 8 / 85 + - 19
----
-19

query I rowsort
SELECT + - 11 + - 74
----
-85

query I rowsort
SELECT - 57 - - - 37
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3116
SELECT 28, ( - CAST( NULL AS SIGNED ) ) - + 51 * - AVG ( DISTINCT + COALESCE ( 42, 78 ) ) * ( + 72 ) + + 6 AS col0
----
28
NULL

skipif mysql # not compatible
query II rowsort label-3116
SELECT 28, ( - CAST ( NULL AS INTEGER ) ) - + 51 * - AVG ( DISTINCT + COALESCE ( 42, 78 ) ) * ( + 72 ) + + 6 AS col0
----
28
NULL

query I rowsort
SELECT - 70 * - 10
----
700

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

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL COUNT ( * ) / 31 + + 8
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT - 74 * + CASE 98 WHEN - 12 / COUNT( - + 64 ) * + 99 + 8 THEN NULL ELSE 24 END * 25 AS col0
----
-44400

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT - 74 * + CASE 98 WHEN - 12 / COUNT ( - + 64 ) * + 99 + 8 THEN NULL ELSE 24 END * 25 AS col0
----
-44400

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT ALL 57 * + - MIN( 84 ) + - 91 + - 44 - 87
----
-5010

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL 57 * + - MIN ( 84 ) + - 91 + - 44 - 87
----
-5010

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT DISTINCT - COUNT( DISTINCT + + 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT - COUNT ( DISTINCT + + 52 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3123
SELECT 96 * 47 AS col2, - 62 DIV + 97 AS col2
----
4512
0

skipif mysql # not compatible
query II rowsort label-3123
SELECT 96 * 47 AS col2, - 62 / + 97 AS col2
----
4512
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL - COUNT( * ) * 50
----
-50

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL - COUNT ( * ) * 50
----
-50

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3126
SELECT 1 col1, COUNT( DISTINCT - 66 ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3126
SELECT 1 col1, COUNT ( DISTINCT - 66 ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT - 0 + - - COALESCE ( COUNT( * ), 33, - + CASE - COUNT( * ) WHEN 61 THEN NULL ELSE - ( - 11 ) END ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3127
SELECT - 0 + - - COALESCE ( COUNT ( * ), 33, - + CASE - COUNT ( * ) WHEN 61 THEN NULL ELSE - ( - 11 ) END ) * + COUNT ( * ) AS col2
----
1

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL COUNT ( * ) / - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT 22 * - COUNT( * ) * + CASE WHEN NOT ( + 46 ) NOT IN ( - 57 ) THEN 42 END * + 22 - - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT 22 * - COUNT ( * ) * + CASE WHEN NOT ( + 46 ) NOT IN ( - 57 ) THEN 42 END * + 22 - - 11
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3132
SELECT ALL + 22 DIV + 71 * + 35 AS col2, 90 - + 23
----
0
67

skipif mysql # not compatible
query II rowsort label-3132
SELECT ALL + 22 / + 71 * + 35 AS col2, 90 - + 23
----
0
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3133
SELECT 22 * + 8 DIV + + CAST( COUNT( * ) AS SIGNED )
----
176

skipif mysql # not compatible
query I rowsort label-3133
SELECT 22 * + 8 / + + CAST ( COUNT ( * ) AS INTEGER )
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT 93 + + NULLIF ( - 23, + 24 * - - 7 ) + - 88 + COUNT( * ) + 70 * + 84
----
5863

skipif mysql # not compatible
query I rowsort label-3134
SELECT 93 + + NULLIF ( - 23, + 24 * - - 7 ) + - 88 + COUNT ( * ) + 70 * + 84
----
5863

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT COUNT( * ) + + 81 * 65 * - - 45 * + 46 + - MAX( + 17 ) * - 26 AS col0
----
10898993

skipif mysql # not compatible
query I rowsort label-3135
SELECT COUNT ( * ) + + 81 * 65 * - - 45 * + 46 + - MAX ( + 17 ) * - 26 AS col0
----
10898993

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT ( - COUNT( * ) ) - + SUM( - 61 )
----
60

skipif mysql # not compatible
query I rowsort label-3136
SELECT ( - COUNT ( * ) ) - + SUM ( - 61 )
----
60

query I rowsort
SELECT 12 + + + 56 + CASE 85 WHEN 81 THEN + 46 * - COALESCE ( 10, + 22 * + 83 ) END * 42 * 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL MAX( DISTINCT - - 78 ) * - ( + 66 ) + + ( + - 13 ) * - - 59
----
-5915

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL MAX ( DISTINCT - - 78 ) * - ( + 66 ) + + ( + - 13 ) * - - 59
----
-5915

query I rowsort
SELECT ( + 13 ) + + 15 + - 26 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL MAX( - 0 ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL MAX ( - 0 ) + COUNT ( * )
----
1

query I rowsort
SELECT ALL 79 + 1 + + + 32 AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3142
SELECT 47 + + MAX( 56 ) / + + 74 + 45 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT 47 + + MAX ( 56 ) / + + 74 + 45 * + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL 90 + - 14 + + - 71 * + 61 col0
----
-4255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3144
SELECT CASE - 65 WHEN - 52 THEN + 18 / + 70 + + - 96 - 36 * CASE + ( - 22 ) * 8 WHEN - 27 * + 21 THEN 33 END / + COUNT( 20 + 39 ) WHEN CAST( 45 AS SIGNED ) * COALESCE ( + 29 + 58, ( - 72 ) ) THEN NULL END + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT CASE - 65 WHEN - 52 THEN + 18 / + 70 + + - 96 - 36 * CASE + ( - 22 ) * 8 WHEN - 27 * + 21 THEN 33 END / + COUNT ( 20 + 39 ) WHEN CAST ( 45 AS INTEGER ) * COALESCE ( + 29 + 58, ( - 72 ) ) THEN NULL END + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT COUNT( * ) * + - 99 * - - 83
----
-8217

skipif mysql # not compatible
query I rowsort label-3145
SELECT COUNT ( * ) * + - 99 * - - 83
----
-8217

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

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

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL COUNT ( * ) + 58 + + + 43
----
102

query I rowsort
SELECT COALESCE ( - 15, + + NULLIF ( - + 26, - 44 ) ) AS col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3149
SELECT + 92 DIV - 73 + - MIN( ALL + ( - 65 ) ) * COUNT( DISTINCT - 23 )
----
64

skipif mysql # not compatible
query I rowsort label-3149
SELECT + 92 / - 73 + - MIN ( ALL + ( - 65 ) ) * COUNT ( DISTINCT - 23 )
----
64

query I rowsort
SELECT ALL 15 * - 86 * - - 18
----
-23220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT DISTINCT - 38 + + CAST( NULL AS SIGNED ) + - CAST( - 44 AS SIGNED ) - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT - 38 + + CAST ( NULL AS INTEGER ) + - CAST ( - 44 AS INTEGER ) - 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3152
SELECT ALL 24 + + 41 DIV 45 AS col1, COUNT( * ) AS col0
----
24
1

skipif mysql # not compatible
query II rowsort label-3152
SELECT ALL 24 + + 41 / 45 AS col1, COUNT ( * ) AS col0
----
24
1

query I rowsort
SELECT 93 * + - 78 AS col1
----
-7254

query I rowsort
SELECT ALL - 89 * + - 53 - - 11 AS col2
----
4728

query I rowsort
SELECT DISTINCT 86 - 57 + + - 91 * - 31
----
2850

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

query I rowsort
SELECT DISTINCT + - ( ( 85 ) ) - - + 94 col1
----
9

query I rowsort
SELECT + ( - - COALESCE ( 90, 48 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT ALL - MAX( ALL 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL - MAX ( ALL 35 )
----
-35

query I rowsort
SELECT - 71 * - - CASE WHEN NULL IS NULL THEN - 15 ELSE - 7 + + 96 END
----
1065

query I rowsort
SELECT + NULLIF ( - - 59, - - ( - 27 ) - 95 * - - 62 ) * + - 6 * 94 + + 23 + 2 col0
----
-33251

query I rowsort
SELECT DISTINCT - + 49 col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT - COUNT( - 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3163
SELECT - COUNT ( - 67 ) AS col1
----
-1

query I rowsort
SELECT ALL + ( - ( 98 ) ) * - 83 AS col1
----
8134

query I rowsort
SELECT + 37 * 65
----
2405

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL + - 16 * - COUNT( * ) + - 83
----
-67

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL + - 16 * - COUNT ( * ) + - 83
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT - NULLIF ( - - 99, ( - NULLIF ( - CASE + - COUNT( * ) WHEN + - 8 / COUNT( * ) THEN COUNT( * ) + 38 ELSE NULL END, 61 ) ) ) + 73
----
-26

skipif mysql # not compatible
query I rowsort label-3167
SELECT - NULLIF ( - - 99, ( - NULLIF ( - CASE + - COUNT ( * ) WHEN + - 8 / COUNT ( * ) THEN COUNT ( * ) + 38 ELSE NULL END, 61 ) ) ) + 73
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3168
SELECT 36 * + + 29 - + 48 AS col1, - 40 * - + COUNT( * ) - + + 10 + - ( + + 66 ) AS col2
----
996
-36

skipif mysql # not compatible
query II rowsort label-3168
SELECT 36 * + + 29 - + 48 AS col1, - 40 * - + COUNT ( * ) - + + 10 + - ( + + 66 ) AS col2
----
996
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT 27 * COUNT( * ) + + COUNT( * ) + + 9 - - 0 + + COUNT( * ) / - - CASE COALESCE ( 0, 22 * - 52 - - 9 * + 52, + 74 ) WHEN + 78 THEN COUNT( * ) END + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT 27 * COUNT ( * ) + + COUNT ( * ) + + 9 - - 0 + + COUNT ( * ) / - - CASE COALESCE ( 0, 22 * - 52 - - 9 * + 52, + 74 ) WHEN + 78 THEN COUNT ( * ) END + + 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3170
SELECT 28 AS col2, + 41 + + - CAST( NULL AS SIGNED )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-3170
SELECT 28 AS col2, + 41 + + - CAST ( NULL AS INTEGER )
----
28
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3171
SELECT DISTINCT 17 AS col1, CASE 67 WHEN 36 THEN NULL ELSE + - CAST( NULL AS SIGNED ) + + - ( + CAST( NULL AS SIGNED ) ) + + ( 48 ) * - 29 END + + 10
----
17
NULL

skipif mysql # not compatible
query II rowsort label-3171
SELECT DISTINCT 17 AS col1, CASE 67 WHEN 36 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) + + - ( + CAST ( NULL AS INTEGER ) ) + + ( 48 ) * - 29 END + + 10
----
17
NULL

query I rowsort
SELECT 93 * + 17 col2
----
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT ALL - MAX( 17 ) + - 60 * + 29 * - CASE 77 WHEN + - ( + 13 ) THEN 13 + 96 WHEN 76 * - 41 THEN NULL ELSE 35 + + 24 END AS col2
----
102643

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL - MAX ( 17 ) + - 60 * + 29 * - CASE 77 WHEN + - ( + 13 ) THEN 13 + 96 WHEN 76 * - 41 THEN NULL ELSE 35 + + 24 END AS col2
----
102643

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

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

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

skipif mysql # not compatible
query I rowsort label-3175
SELECT 6 + - COUNT ( * ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT ALL - 64 + - COUNT( ALL + 80 ) + + 20 + - 22 + - MIN( 7 ) * + COUNT( * ) * - COUNT( * ) * 53 AS col1
----
304

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - 64 + - COUNT ( ALL + 80 ) + + 20 + - 22 + - MIN ( 7 ) * + COUNT ( * ) * - COUNT ( * ) * 53 AS col1
----
304

query II rowsort
SELECT - 87, 99 AS col0
----
-87
99

query I rowsort
SELECT ALL 3 + ( + - 77 ) * - + 24
----
1851

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT COUNT( * ) * - SUM( DISTINCT 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3179
SELECT COUNT ( * ) * - SUM ( DISTINCT 36 ) AS col0
----
-36

query I rowsort
SELECT ALL + 92 + - 13
----
79

query I rowsort
SELECT 47 * + + ( + 76 )
----
3572

query I rowsort
SELECT ALL 97 + + 50
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT 27 - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3183
SELECT 27 - COUNT ( * )
----
26

query II rowsort
SELECT - 2 col1, - 26 + + + NULLIF ( + + 15, + 72 * + 16 ) - - 45 / CASE + 79 WHEN 39 THEN ( + 18 ) END
----
-2
NULL

query I rowsort
SELECT 37 * + 70
----
2590

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT MIN( + + 8 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT MIN ( + + 8 ) * - 0
----
0

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

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

query I rowsort
SELECT ALL + 9 - + 69 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT DISTINCT COUNT( * ) * + 30 * + - 33 + - 75 * - 39 AS col0
----
1935

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT COUNT ( * ) * + 30 * + - 33 + - 75 * - 39 AS col0
----
1935

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

skipif mysql # not compatible
query I rowsort label-3190
SELECT COUNT ( * ) - - COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT - - ( - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL + MAX( DISTINCT 73 ) * + 0 - - 66 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL + MAX ( DISTINCT 73 ) * + 0 - - 66 AS col1
----
66

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

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

query II rowsort
SELECT + - 0, 37 * - 5 AS col1
----
0
-185

query I rowsort
SELECT + 28 * + + 91 AS col0
----
2548

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3197
SELECT + 72 + + COUNT( * ) DIV 38 + + + 44 - - - 88 * + - 80 AS col0, 93 AS col2
----
7156
93

skipif mysql # not compatible
query II rowsort label-3197
SELECT + 72 + + COUNT ( * ) / 38 + + + 44 - - - 88 * + - 80 AS col0, 93 AS col2
----
7156
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3198
SELECT ALL 16 DIV ( - MIN( ALL - + 76 ) ) AS col2, - COUNT( * ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-3198
SELECT ALL 16 / ( - MIN ( ALL - + 76 ) ) AS col2, - COUNT ( * ) AS col0
----
0
-1

query I rowsort
SELECT + - 2 * - 43 - + 9 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3200
SELECT 44 / - 79 * + 4 + - CAST( + - CASE + 21 WHEN + ( - 76 ) + - 70 THEN - COUNT( * ) END AS SIGNED ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT 44 / - 79 * + 4 + - CAST ( + - CASE + 21 WHEN + ( - 76 ) + - 70 THEN - COUNT ( * ) END AS INTEGER ) * - 53
----
NULL

query I rowsort
SELECT DISTINCT 43 * - - 55
----
2365

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT - ( - CASE 49 WHEN - 40 THEN - 43 + 80 * + + ( + MIN( DISTINCT + 1 ) ) WHEN 63 + 96 / - 9 THEN - 38 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT - ( - CASE 49 WHEN - 40 THEN - 43 + 80 * + + ( + MIN ( DISTINCT + 1 ) ) WHEN 63 + 96 / - 9 THEN - 38 END ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT DISTINCT + - 5 * 2 + + SUM( - 33 ) + + - 89 + + 31 + - 94 col1
----
-195

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT + - 5 * 2 + + SUM ( - 33 ) + + - 89 + + 31 + - 94 col1
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3205
SELECT ALL - ( - + CAST( + 34 AS SIGNED ) ) / - + CAST( NULL AS DECIMAL ) + - + 6 / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL - ( - + CAST ( + 34 AS INTEGER ) ) / - + CAST ( NULL AS REAL ) + - + 6 / COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3206
SELECT - 75 DIV + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3206
SELECT - 75 / + 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT SUM( ALL 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-3207
SELECT SUM ( ALL 51 ) col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3208
SELECT + 63 + 9 DIV 84 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3208
SELECT + 63 + 9 / 84 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + NULLIF ( 0, - + CASE - - 6 WHEN + 31 THEN NULL ELSE 64 + - + SUM( ALL - + 97 ) * + - 1 * + 25 END * 2 )
----
0

skipif mysql # not compatible
query I rowsort label-3209
SELECT + NULLIF ( 0, - + CASE - - 6 WHEN + 31 THEN NULL ELSE 64 + - + SUM ( ALL - + 97 ) * + - 1 * + 25 END * 2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT MAX( 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3210
SELECT MAX ( 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL COUNT( - 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL COUNT ( - 63 ) AS col2
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL NULLIF ( 99, - - 47 ) + - + MIN( + - 90 )
----
189

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL NULLIF ( 99, - - 47 ) + - + MIN ( + - 90 )
----
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT DISTINCT + CASE + + 43 WHEN + + 54 - + COUNT( * ) THEN NULL WHEN 39 THEN + 82 / ( - NULLIF ( 99, MIN( 53 ) + + CAST( NULL AS SIGNED ) ) ) / + 42 + + 96 END * ( 78 + + 57 * 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + CASE + + 43 WHEN + + 54 - + COUNT ( * ) THEN NULL WHEN 39 THEN + 82 / ( - NULLIF ( 99, MIN ( 53 ) + + CAST ( NULL AS INTEGER ) ) ) / + 42 + + 96 END * ( 78 + + 57 * 43 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 33 + + + CASE - + 56 WHEN 64 THEN + 95 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL SUM( ALL + ( + 91 ) )
----
91

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL SUM ( ALL + ( + 91 ) )
----
91

query I rowsort
SELECT DISTINCT - 15 + 99 * 97
----
9588

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL + 60 + + - 70 - + 2 * + 65 - + COUNT( * )
----
-141

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL + 60 + + - 70 - + 2 * + 65 - + COUNT ( * )
----
-141

query II rowsort
SELECT ALL COALESCE ( - - 1, - 70 * - 36 ) AS col0, - 73 * + + 75 + 33
----
1
-5442

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3221
SELECT - 55 - - 30 DIV 78 * + COUNT( * ) col1, ( - COALESCE ( 83, ( - COUNT( * ) ) * 76 ) ) AS col1
----
-55
-83

skipif mysql # not compatible
query II rowsort label-3221
SELECT - 55 - - 30 / 78 * + COUNT ( * ) col1, ( - COALESCE ( 83, ( - COUNT ( * ) ) * 76 ) ) AS col1
----
-55
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3222
SELECT ALL NULLIF ( - + NULLIF ( COALESCE ( COUNT( * ), - + 35 * 63 DIV - CAST( 60 AS SIGNED ) + + 96 + ( 49 ), - 23 * - CASE COUNT( * ) WHEN 70 + ( 83 + + 45 DIV + ( + 88 + - 79 ) ) THEN NULL ELSE 2 - 76 * 82 END - 82 * 94 ), - NULLIF ( 13, + 23 DIV 5 ) ), - MIN( + 31 ) + - 25 * - 59 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL NULLIF ( - + NULLIF ( COALESCE ( COUNT ( * ), - + 35 * 63 / - CAST ( 60 AS INTEGER ) + + 96 + ( 49 ), - 23 * - CASE COUNT ( * ) WHEN 70 + ( 83 + + 45 / + ( + 88 + - 79 ) ) THEN NULL ELSE 2 - 76 * 82 END - 82 * 94 ), - NULLIF ( 13, + 23 / 5 ) ), - MIN ( + 31 ) + - 25 * - 59 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT - 25 + - - 85 * - MIN( DISTINCT 7 ) - COUNT( * )
----
-621

skipif mysql # not compatible
query I rowsort label-3223
SELECT - 25 + - - 85 * - MIN ( DISTINCT 7 ) - COUNT ( * )
----
-621

query I rowsort
SELECT ALL + 97 - + 57
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3225
SELECT - + MIN( DISTINCT - 85 ) * COUNT( * ) DIV + 99, - CASE + - MIN( + + 36 ) WHEN - 52 + + 40 THEN NULL ELSE 61 END AS col2
----
0
-61

skipif mysql # not compatible
query II rowsort label-3225
SELECT - + MIN ( DISTINCT - 85 ) * COUNT ( * ) / + 99, - CASE + - MIN ( + + 36 ) WHEN - 52 + + 40 THEN NULL ELSE 61 END AS col2
----
0
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-3226
SELECT DISTINCT - 47 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT - 47 / - 92
----
0

query II rowsort
SELECT - 89 + + - 73 AS col1, 98 + + 13 AS col1
----
-162
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL + + NULLIF ( - 80, - COUNT( * ) ) - - 47
----
-33

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL + + NULLIF ( - 80, - COUNT ( * ) ) - - 47
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3229
SELECT - 3 + + CAST( NULL AS DECIMAL ) AS col2, 17
----
NULL
17

skipif mysql # not compatible
query II rowsort label-3229
SELECT - 3 + + CAST ( NULL AS REAL ) AS col2, 17
----
NULL
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT ALL - 97 - - CAST( - 36 AS SIGNED ) + + 18 * - 1
----
-151

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - 97 - - CAST ( - 36 AS INTEGER ) + + 18 * - 1
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3231
SELECT - - 92 DIV - COUNT( DISTINCT + + 46 )
----
-92

skipif mysql # not compatible
query I rowsort label-3231
SELECT - - 92 / - COUNT ( DISTINCT + + 46 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL + COUNT( 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL + COUNT ( 44 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT + + 17 * COALESCE ( 58, COUNT( * ) )
----
986

skipif mysql # not compatible
query I rowsort label-3233
SELECT + + 17 * COALESCE ( 58, COUNT ( * ) )
----
986

query II rowsort
SELECT - NULLIF ( + 53, - - 41 * - 14 ) AS col2, 2 * - 49
----
-53
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3235
SELECT COUNT( * ) DIV + 44 + - - 30 * + 81
----
2430

skipif mysql # not compatible
query I rowsort label-3235
SELECT COUNT ( * ) / + 44 + - - 30 * + 81
----
2430

query I rowsort
SELECT - 74 col2
----
-74

query I rowsort
SELECT - 92 * - 26 AS col1
----
2392

query I rowsort
SELECT + - 40 col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL + SUM( DISTINCT - 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL + SUM ( DISTINCT - 63 ) AS col1
----
-63

query II rowsort
SELECT DISTINCT + + 8 * 98 AS col0, - 11
----
784
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT ALL + - COALESCE ( + ( - 52 ), - - 88 + - - CASE WHEN ( - 63 ) NOT BETWEEN + ( - 62 ) DIV - COUNT( * ) AND NULL THEN + 0 END DIV 49, 35 )
----
52

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL + - COALESCE ( + ( - 52 ), - - 88 + - - CASE WHEN ( - 63 ) NOT BETWEEN + ( - 62 ) / - COUNT ( * ) AND NULL THEN + 0 END / 49, 35 )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3242
SELECT ALL + 15 DIV 97 + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL + 15 / 97 + - 22
----
-22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT 90 * 37 - - 61 * - 74 + COUNT( ALL - 23 )
----
-1183

skipif mysql # not compatible
query I rowsort label-3244
SELECT 90 * 37 - - 61 * - 74 + COUNT ( ALL - 23 )
----
-1183

query I rowsort
SELECT DISTINCT - + 61 * + 80 + + 97 col2
----
-4783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3246
SELECT + - CASE - 26 WHEN + 31 THEN NULL WHEN + 73 THEN + 87 * + CAST( NULL AS SIGNED ) * + 25 + CAST( NULL AS SIGNED ) - 53 WHEN - 72 + CASE - 79 WHEN - 91 THEN NULL WHEN COUNT( * ) THEN - 51 * - 46 + - 47 END / - 61 THEN COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT + - CASE - 26 WHEN + 31 THEN NULL WHEN + 73 THEN + 87 * + CAST ( NULL AS INTEGER ) * + 25 + CAST ( NULL AS INTEGER ) - 53 WHEN - 72 + CASE - 79 WHEN - 91 THEN NULL WHEN COUNT ( * ) THEN - 51 * - 46 + - 47 END / - 61 THEN COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ( - + COALESCE ( NULLIF ( - + 89, - - 66 + NULLIF ( 41, 40 + + - 8 ) ), - + 99 * 48, + 93 * 20 + ( ( 70 ) ) ) )
----
89

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL - 87 * COUNT( * ) + + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - 87 * COUNT ( * ) + + COUNT ( * )
----
-86

query I rowsort
SELECT DISTINCT - ( + 78 ) * 46 * CASE 88 WHEN + 4 + + - 37 THEN - 9 + - 50 END + + ( - 84 ) / 6
----
NULL

query I rowsort
SELECT ALL 3 * 40 * - 15 col2
----
-1800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3253
SELECT + COUNT( * ) + 49 + + 45 * + CASE + + 36 WHEN - - 36 - - + 79 THEN NULL ELSE - MAX( - - 85 ) + - 38 + + CAST( CASE 89 WHEN + 35 THEN + 27 + COUNT( * ) END AS SIGNED ) END * COALESCE ( 72, - 24 * + 38 + + 36, 54 * 9 + - COALESCE ( - 93 - + 89 / + 34, 91 + 38, COUNT( * ), + 30 ) * 2 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT + COUNT ( * ) + 49 + + 45 * + CASE + + 36 WHEN - - 36 - - + 79 THEN NULL ELSE - MAX ( - - 85 ) + - 38 + + CAST ( CASE 89 WHEN + 35 THEN + 27 + COUNT ( * ) END AS INTEGER ) END * COALESCE ( 72, - 24 * + 38 + + 36, 54 * 9 + - COALESCE ( - 93 - + 89 / + 34, 91 + 38, COUNT ( * ), + 30 ) * 2 ) AS col0
----
NULL

query I rowsort
SELECT 10 * - 66 - - - 24 * - - 75
----
-2460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT DISTINCT 87 * 16 - CAST( NULL AS SIGNED ) * - + 6 * - + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT 87 * 16 - CAST ( NULL AS INTEGER ) * - + 6 * - + 55 AS col0
----
NULL

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

query I rowsort
SELECT - 38 * + 59 * 97 col0
----
-217474

onlyif mysql # aggregate syntax: 
query II rowsort label-3258
SELECT DISTINCT 24 * 46 - COUNT( * ) AS col2, - 14
----
1103
-14

skipif mysql # not compatible
query II rowsort label-3258
SELECT DISTINCT 24 * 46 - COUNT ( * ) AS col2, - 14
----
1103
-14

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3261
SELECT MIN( ALL + ( - 63 ) ) AS col2, 47
----
-63
47

skipif mysql # not compatible
query II rowsort label-3261
SELECT MIN ( ALL + ( - 63 ) ) AS col2, 47
----
-63
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT DISTINCT COUNT( + - ( - 82 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT COUNT ( + - ( - 82 ) ) AS col1
----
1

query I rowsort
SELECT ALL - - 2 * + - 51 AS col1
----
-102

query II rowsort
SELECT - - 91 AS col1, - 29
----
91
-29

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT NULLIF ( - + ( - 35 ), + 75 * + COUNT( ALL 87 ) / ( 64 ) / + 82 + + - 59 + 69 ) * COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-3268
SELECT NULLIF ( - + ( - 35 ), + 75 * + COUNT ( ALL 87 ) / ( 64 ) / + 82 + + - 59 + 69 ) * COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT + 1 * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3269
SELECT + 1 * - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT 70 - 37
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3271
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) + 2, CAST( NULL AS DECIMAL ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3271
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 2, CAST ( NULL AS REAL ) AS col2
----
NULL
NULL

query I rowsort
SELECT - 67 * 5
----
-335

query I rowsort
SELECT 6 * 12
----
72

query I rowsort
SELECT - 63 col0
----
-63

query I rowsort
SELECT DISTINCT - + 85 + + 8 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3276
SELECT ALL + 16 + MIN( ALL + + ( - - 60 ) ) + - 5, MIN( - 37 ) + NULLIF ( - - 91, COUNT( * ) * 51 ) AS col2
----
71
54

skipif mysql # not compatible
query II rowsort label-3276
SELECT ALL + 16 + MIN ( ALL + + ( - - 60 ) ) + - 5, MIN ( - 37 ) + NULLIF ( - - 91, COUNT ( * ) * 51 ) AS col2
----
71
54

query I rowsort
SELECT 39 - - 54
----
93

query I rowsort
SELECT ALL - - 35 + + 57
----
92

query I rowsort
SELECT + 26 * 31 * - + 97 * + + NULLIF ( + + 17, + 11 + + + 4 * - - 78 ) - + 99 * 39 + + 16 AS col0
----
-1332939

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL + - 43 + - 56 + + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + - 43 + - 56 + + COUNT ( * )
----
-98

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

skipif mysql # not compatible
query I rowsort label-3281
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) + - - 87 + - 87 / - - 52 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 9 * + 91
----
819

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

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

query I rowsort
SELECT 0 * - 34 + ( - + 88 )
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-3285
SELECT ALL - 5 * COALESCE ( + 92, - 38 * + 10 DIV + - 71 ) AS col2, 51
----
-460
51

skipif mysql # not compatible
query II rowsort label-3285
SELECT ALL - 5 * COALESCE ( + 92, - 38 * + 10 / + - 71 ) AS col2, 51
----
-460
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3286
SELECT + 9, - 21 DIV - ( 87 ) + - 62 - + - COUNT( * ) AS col1
----
9
-61

skipif mysql # not compatible
query II rowsort label-3286
SELECT + 9, - 21 / - ( 87 ) + - 62 - + - COUNT ( * ) AS col1
----
9
-61

query II rowsort
SELECT ALL 86 + + 2 AS col1, 87 AS col2
----
88
87

query I rowsort
SELECT ALL 63 + 26 AS col2
----
89

query II rowsort
SELECT ALL - 12 AS col1, 9 + + 17
----
-12
26

query II rowsort
SELECT 57 AS col2, 17 AS col2
----
57
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT COUNT( * ) + - + 69 + 45 * + + MIN( 67 )
----
2947

skipif mysql # not compatible
query I rowsort label-3292
SELECT COUNT ( * ) + - + 69 + 45 * + + MIN ( 67 )
----
2947

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3294
SELECT ALL 20 DIV NULLIF ( + 11, + COUNT( * ) ) * 93
----
93

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL 20 / NULLIF ( + 11, + COUNT ( * ) ) * 93
----
93

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

query II rowsort
SELECT 87, 24 AS col0
----
87
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3297
SELECT - 95 AS col1, 30 + - 88 * - COALESCE ( + 83, + 87 DIV - + COUNT( * ) - + + 7, - 40 ) * - + 21 + 33 DIV 3 col1
----
-95
-153343

skipif mysql # not compatible
query II rowsort label-3297
SELECT - 95 AS col1, 30 + - 88 * - COALESCE ( + 83, + 87 / - + COUNT ( * ) - + + 7, - 40 ) * - + 21 + 33 / 3 col1
----
-95
-153343

query I rowsort
SELECT ( 70 ) - - - 65 col2
----
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3300
SELECT 76, ( + CAST( NULL AS SIGNED ) ) * - CAST( 34 AS SIGNED ) + + + ( 10 ) - - + COUNT( * ) AS col2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-3300
SELECT 76, ( + CAST ( NULL AS INTEGER ) ) * - CAST ( 34 AS INTEGER ) + + + ( 10 ) - - + COUNT ( * ) AS col2
----
76
NULL

query II rowsort
SELECT ALL 6, ( - 24 ) * + 26 * - + ( - 99 ) AS col0
----
6
-61776

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT 6 + COUNT( * ) * 64 * + 44 col2
----
2822

skipif mysql # not compatible
query I rowsort label-3302
SELECT 6 + COUNT ( * ) * 64 * + 44 col2
----
2822

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT ALL 41 * + - COUNT( * ) AS col1, 64
----
-41
64

skipif mysql # not compatible
query II rowsort label-3303
SELECT ALL 41 * + - COUNT ( * ) AS col1, 64
----
-41
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT 93 + + + SUM( 73 )
----
166

skipif mysql # not compatible
query I rowsort label-3304
SELECT 93 + + + SUM ( 73 )
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-3305
SELECT + 15 DIV + ( 29 )
----
0

skipif mysql # not compatible
query I rowsort label-3305
SELECT + 15 / + ( 29 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT ( - ( - ( - 11 ) ) ) DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT ( - ( - ( - 11 ) ) ) / + 85
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3307
SELECT COUNT( DISTINCT 65 ) - + ( 21 ) - - ( - 29 ) AS col0, - MAX( ALL ( + 84 ) ) + - 25 AS col1
----
-49
-109

skipif mysql # not compatible
query II rowsort label-3307
SELECT COUNT ( DISTINCT 65 ) - + ( 21 ) - - ( - 29 ) AS col0, - MAX ( ALL ( + 84 ) ) + - 25 AS col1
----
-49
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3308
SELECT DISTINCT + 26 AS col1, CAST( NULL AS SIGNED ) - + COUNT( * ) + + 85 + - + 42 / - 62 * 29 * - + 47
----
26
NULL

skipif mysql # not compatible
query II rowsort label-3308
SELECT DISTINCT + 26 AS col1, CAST ( NULL AS INTEGER ) - + COUNT ( * ) + + 85 + - + 42 / - 62 * 29 * - + 47
----
26
NULL

query I rowsort
SELECT 85 + - 97 AS col2
----
-12

query I rowsort
SELECT - 8 - + 14 + + + 93
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT + 78 + NULLIF ( - 37, - + COUNT( * ) / + 50 ) + - 99
----
-58

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT + 78 + NULLIF ( - 37, - + COUNT ( * ) / + 50 ) + - 99
----
-58

query II rowsort
SELECT - 19 AS col1, 77 * - 55 + + 71 AS col1
----
-19
-4164

query II rowsort
SELECT - 65 * + + 58, - 79 AS col0
----
-3770
-79

query I rowsort
SELECT ALL - + 83 + + 96 AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3315
SELECT ALL MIN( + 67 ) AS col2, CASE + 5 WHEN - 47 THEN 6 END + 38 - - 52 - + 43
----
67
NULL

skipif mysql # not compatible
query II rowsort label-3315
SELECT ALL MIN ( + 67 ) AS col2, CASE + 5 WHEN - 47 THEN 6 END + 38 - - 52 - + 43
----
67
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3316
SELECT ALL - + COUNT( * ) + + 60 / - COUNT( * ) + - 70 - + - CASE 18 WHEN + NULLIF ( + - 80, + 12 ) + - + 36 + + CAST( NULL AS SIGNED ) + + 30 * + 43 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - + COUNT ( * ) + + 60 / - COUNT ( * ) + - 70 - + - CASE 18 WHEN + NULLIF ( + - 80, + 12 ) + - + 36 + + CAST ( NULL AS INTEGER ) + + 30 * + 43 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT - 52 + - 46 - - - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT - 52 + - 46 - - - COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3318
SELECT - 99 DIV - MIN( ALL + 99 ) + 34 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-3318
SELECT - 99 / - MIN ( ALL + 99 ) + 34 AS col2
----
35

query I rowsort
SELECT 69 + - 35
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3320
SELECT ALL + COUNT( * ) * - 63 - 34, + CAST( NULL AS SIGNED ) / - 95 + NULLIF ( + 80, - 90 * - 55 - - 78 ) * - 55 + CASE 82 WHEN 59 * 42 THEN + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN - COUNT( * ) * + ( CAST( NULL AS SIGNED ) ) END AS col1
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-3320
SELECT ALL + COUNT ( * ) * - 63 - 34, + CAST ( NULL AS INTEGER ) / - 95 + NULLIF ( + 80, - 90 * - 55 - - 78 ) * - 55 + CASE 82 WHEN 59 * 42 THEN + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) * + ( CAST ( NULL AS INTEGER ) ) END AS col1
----
-97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3321
SELECT 31 * - - 82 AS col2, CAST( NULL AS SIGNED ) * + 82 col0
----
2542
NULL

skipif mysql # not compatible
query II rowsort label-3321
SELECT 31 * - - 82 AS col2, CAST ( NULL AS INTEGER ) * + 82 col0
----
2542
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL - COUNT( DISTINCT - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL - COUNT ( DISTINCT - 76 )
----
-1

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

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

query I rowsort
SELECT ALL + NULLIF ( + - 35, 21 * + - ( - + 76 ) + + 55 + - 99 * + 44 / + - 82 + + ( - 60 ) ) * + - 50 - - ( + 54 ) AS col1
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT 57 * + - MAX( + + 54 )
----
-3078

skipif mysql # not compatible
query I rowsort label-3325
SELECT 57 * + - MAX ( + + 54 )
----
-3078

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3326
SELECT 47 * CAST( NULL AS DECIMAL ) - + 43 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT 47 * CAST ( NULL AS REAL ) - + 43 col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT DISTINCT - 56 * 69 * - - NULLIF ( - - COUNT( * ), CASE + - 21 WHEN 67 * + + 1 THEN - - ( COUNT( * ) ) / - MAX( ALL - 68 ) + COUNT( ALL - 42 ) ELSE + ( 93 ) END + + 46 ) * 89
----
-343896

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT - 56 * 69 * - - NULLIF ( - - COUNT ( * ), CASE + - 21 WHEN 67 * + + 1 THEN - - ( COUNT ( * ) ) / - MAX ( ALL - 68 ) + COUNT ( ALL - 42 ) ELSE + ( 93 ) END + + 46 ) * 89
----
-343896

query I rowsort
SELECT ALL - 30 col2
----
-30

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

query I rowsort
SELECT DISTINCT - 57 * - 48 AS col2
----
2736

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

skipif mysql # not compatible
query I rowsort label-3332
SELECT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) - 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL NULLIF ( 85, + - ( + MIN( ALL 72 ) ) * 24 / - + 32 + 64 - 73 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL NULLIF ( 85, + - ( + MIN ( ALL 72 ) ) * 24 / - + 32 + 64 - 73 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT + CASE - 63 WHEN 64 + COUNT( * ) - ( - + 2 ) + 25 * + COALESCE ( - 22, + + 5, 83 ) THEN NULL WHEN - 87 THEN 73 * + 71 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT + CASE - 63 WHEN 64 + COUNT ( * ) - ( - + 2 ) + 25 * + COALESCE ( - 22, + + 5, 83 ) THEN NULL WHEN - 87 THEN 73 * + 71 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT DISTINCT AVG ( ALL + + 47 ) + CASE - COUNT( * ) WHEN + 7 THEN - + 87 WHEN + 64 - 54 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT AVG ( ALL + + 47 ) + CASE - COUNT ( * ) WHEN + 7 THEN - + 87 WHEN + 64 - 54 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3336
SELECT ALL + ( - 55 ) + + + 20 + - 41 * - ( 17 ) + COUNT( * ) DIV + - 73 + - 93 AS col2
----
569

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL + ( - 55 ) + + + 20 + - 41 * - ( 17 ) + COUNT ( * ) / + - 73 + - 93 AS col2
----
569

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

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

query II rowsort
SELECT + 58 * - - 37, + 5 AS col1
----
2146
5

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

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

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

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL 55 + - COUNT ( * ) + + 75 AS col0
----
129

query I rowsort
SELECT - 25 - + 41
----
-66

query I rowsort
SELECT + + 3 * + 85
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + - 59 + - COUNT( * ) * + 61 AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-3343
SELECT + - 59 + - COUNT ( * ) * + 61 AS col2
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT + + 53 DIV - ( COALESCE ( 93, - AVG ( + ( - 36 ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT + + 53 / - ( COALESCE ( 93, - AVG ( + ( - 36 ) ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3345
SELECT + + NULLIF ( 34, 53 ) * + 25 / - + 61 / + CAST( NULL AS SIGNED ) + - - 27 + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT + + NULLIF ( 34, 53 ) * + 25 / - + 61 / + CAST ( NULL AS INTEGER ) + - - 27 + + 33 AS col1
----
NULL

query I rowsort
SELECT CASE WHEN ( NULL ) <= 53 THEN NULL ELSE 74 + - 42 + - + 41 END col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL - 73 - + COUNT( DISTINCT - + 1 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL - 73 - + COUNT ( DISTINCT - + 1 ) AS col0
----
-74

query I rowsort
SELECT ( - 78 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT + ( + - 52 ) - + + NULLIF ( COUNT( * ), + 97 + - 66 ) * + 92 - + 2 * - 35 col0
----
-74

skipif mysql # not compatible
query I rowsort label-3349
SELECT + ( + - 52 ) - + + NULLIF ( COUNT ( * ), + 97 + - 66 ) * + 92 - + 2 * - 35 col0
----
-74

query I rowsort
SELECT - 7 * - 61 - + 24 * + + 45
----
-653

query I rowsort
SELECT ALL + 42 * + 97 AS col0
----
4074

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3353
SELECT 51 DIV + 22 + + + 92, - 68 AS col2
----
94
-68

skipif mysql # not compatible
query II rowsort label-3353
SELECT 51 / + 22 + + + 92, - 68 AS col2
----
94
-68

query I rowsort
SELECT ( - 82 )
----
-82

query I rowsort
SELECT ( 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3356
SELECT - COALESCE ( + + CAST( NULL AS SIGNED ), 38 * + + 34 * - - ( 81 ) ) * - MIN( - 99 ), + 95 AS col2
----
-10360548
95

skipif mysql # not compatible
query II rowsort label-3356
SELECT - COALESCE ( + + CAST ( NULL AS INTEGER ), 38 * + + 34 * - - ( 81 ) ) * - MIN ( - 99 ), + 95 AS col2
----
-10360548
95

query I rowsort
SELECT ALL 45 * 94
----
4230

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

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL CAST ( NULL AS INTEGER ) * + 81 / - 4 / + COUNT ( * )
----
NULL

query II rowsort
SELECT NULLIF ( - 22, + + 33 ) col0, - 15
----
-22
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3360
SELECT DISTINCT + 7, - 87 * + + 97 * 73 - + COUNT( DISTINCT - + CAST( + + 55 AS SIGNED ) ) - - + 62 AS col0
----
7
-615986

skipif mysql # not compatible
query II rowsort label-3360
SELECT DISTINCT + 7, - 87 * + + 97 * 73 - + COUNT ( DISTINCT - + CAST ( + + 55 AS INTEGER ) ) - - + 62 AS col0
----
7
-615986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3361
SELECT ALL + MAX( + - 60 ) DIV - COALESCE ( 8, + 60 )
----
7

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL + MAX ( + - 60 ) / - COALESCE ( 8, + 60 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3362
SELECT - CAST( + COALESCE ( - AVG ( DISTINCT - 1 ), - 59 ) AS SIGNED ) * - 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3362
SELECT - CAST ( + COALESCE ( - AVG ( DISTINCT - 1 ), - 59 ) AS INTEGER ) * - 89 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT CASE + 85 WHEN - + 14 THEN NULL WHEN - SUM( ALL - 21 ) / + 80 + - ( CASE - 47 WHEN 9 THEN - ( + 97 ) END ) THEN + - 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT CASE + 85 WHEN - + 14 THEN NULL WHEN - SUM ( ALL - 21 ) / + 80 + - ( CASE - 47 WHEN 9 THEN - ( + 97 ) END ) THEN + - 43 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3364
SELECT NULLIF ( + - CAST( NULL AS DECIMAL ), - ( + SUM( DISTINCT + 3 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT NULLIF ( + - CAST ( NULL AS REAL ), - ( + SUM ( DISTINCT + 3 ) ) )
----
NULL

query I rowsort
SELECT NULLIF ( - COALESCE ( + + 83, + 41 ), + COALESCE ( - 6, ( - + ( + 86 ) ) ) )
----
-83

query I rowsort
SELECT ALL - 80 * - - 87
----
-6960

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT - - 64 + 81 + - 60 * + - CASE - 22 WHEN - 7 * - + MAX( ALL - ( - 61 ) ) THEN COALESCE ( 77, 30 - - + 0 + + 57 ) + 64 * 94 END + - 67 * + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT - - 64 + 81 + - 60 * + - CASE - 22 WHEN - 7 * - + MAX ( ALL - ( - 61 ) ) THEN COALESCE ( 77, 30 - - + 0 + + 57 ) + 64 * 94 END + - 67 * + 95 AS col2
----
NULL

query II rowsort
SELECT - + ( 29 ) + - 16 AS col1, - 69 * - 71 * - 57 AS col2
----
-45
-279243

query I rowsort
SELECT - + 89 + + 50
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL + SUM( + 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL + SUM ( + 81 ) AS col2
----
81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3372
SELECT ALL 99 * + 53 + - - CAST( NULL AS SIGNED ) + + ( 67 ) * + 7 AS col2, 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-3372
SELECT ALL 99 * + 53 + - - CAST ( NULL AS INTEGER ) + + ( 67 ) * + 7 AS col2, 78
----
NULL
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT - MIN( 44 ) + 43
----
-1

skipif mysql # not compatible
query I rowsort label-3373
SELECT - MIN ( 44 ) + 43
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT - - 37 + - MIN( DISTINCT - + 30 )
----
67

skipif mysql # not compatible
query I rowsort label-3374
SELECT - - 37 + - MIN ( DISTINCT - + 30 )
----
67

query II rowsort
SELECT - + 63 + - + 26 + + 28 col2, ( 38 ) * - 77 AS col2
----
-61
-2926

query I rowsort
SELECT + + 57 - + 18
----
39

query II rowsort
SELECT ALL 94 col1, 69 * - ( 56 ) col0
----
94
-3864

query I rowsort
SELECT - - 88 + - - 22 col1
----
110

query I rowsort
SELECT + - 82 + + 24
----
-58

query II rowsort
SELECT - + 9 AS col2, - 95 * 87
----
-9
-8265

query I rowsort
SELECT + 72 + + 61 AS col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT MAX( 37 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT MAX ( 37 ) AS col1
----
37

query I rowsort
SELECT ALL - 41 - - 14
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT + COUNT( * ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-3384
SELECT + COUNT ( * ) + 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT - 57 * - SUM( - 67 )
----
-3819

skipif mysql # not compatible
query I rowsort label-3385
SELECT - 57 * - SUM ( - 67 )
----
-3819

query I rowsort
SELECT ALL ( + 10 ) * - 88 * + + 74 + 88 AS col1
----
-65032

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT + 39 DIV - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT + 39 / - 53 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT + 90 DIV + COUNT( * ) + 66 col1
----
156

skipif mysql # not compatible
query I rowsort label-3388
SELECT + 90 / + COUNT ( * ) + 66 col1
----
156

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL + 74 * + 15 * + - COUNT( * ) AS col0
----
-1110

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL + 74 * + 15 * + - COUNT ( * ) AS col0
----
-1110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3391
SELECT + CAST( - COUNT( * ) AS SIGNED ) * 12 + COUNT( * ) * CAST( + + 62 AS SIGNED ) * + 49 + 19 col1
----
3045

skipif mysql # not compatible
query I rowsort label-3391
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * 12 + COUNT ( * ) * CAST ( + + 62 AS INTEGER ) * + 49 + 19 col1
----
3045

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT 21 DIV + + 88 - + 20
----
-20

skipif mysql # not compatible
query I rowsort label-3392
SELECT 21 / + + 88 - + 20
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT COUNT( ALL 98 ) + + - SUM( ALL + 19 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT COUNT ( ALL 98 ) + + - SUM ( ALL + 19 ) AS col1
----
-18

query I rowsort
SELECT ALL 19 + + 43 AS col2
----
62

query I rowsort
SELECT DISTINCT - + 53 AS col0
----
-53

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

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT 92 + + COUNT ( * ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3397
SELECT 29 * + 97 * 70 + - 20 AS col0, 70 * - 28 + + + COUNT( ALL ( + + 41 ) )
----
196890
-1959

skipif mysql # not compatible
query II rowsort label-3397
SELECT 29 * + 97 * 70 + - 20 AS col0, 70 * - 28 + + + COUNT ( ALL ( + + 41 ) )
----
196890
-1959

onlyif mysql # aggregate syntax: 
query II rowsort label-3398
SELECT ALL + 47 + + 25 AS col1, - COUNT( * ) AS col0
----
72
-1

skipif mysql # not compatible
query II rowsort label-3398
SELECT ALL + 47 + + 25 AS col1, - COUNT ( * ) AS col0
----
72
-1

query I rowsort
SELECT + - 6 col2
----
-6

query II rowsort
SELECT COALESCE ( + 82, + 28 * 0 + 69 * + 60 + - 93, - 89 ) * 75 - + 31 AS col2, 71
----
6119
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT 39 DIV - COALESCE ( - 18, - ( + 23 ) * - 95 ) - + 75
----
-73

skipif mysql # not compatible
query I rowsort label-3401
SELECT 39 / - COALESCE ( - 18, - ( + 23 ) * - 95 ) - + 75
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT DISTINCT - + COUNT( * ) * + 19 AS col2, 84
----
-19
84

skipif mysql # not compatible
query II rowsort label-3402
SELECT DISTINCT - + COUNT ( * ) * + 19 AS col2, 84
----
-19
84

query I rowsort
SELECT ALL + + 71 - + 65
----
6

query I rowsort
SELECT - 34 * + 11 AS col1
----
-374

query I rowsort
SELECT DISTINCT + - ( + 68 ) * + 76
----
-5168

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL - MIN( DISTINCT - ( + 24 ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL - MIN ( DISTINCT - ( + 24 ) ) AS col0
----
24

query I rowsort
SELECT DISTINCT + - 29 * - + 68 + + 52 - - - 75
----
1949

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

query I rowsort
SELECT 88 - - + 37 + - 44 AS col0
----
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3411
SELECT ALL 57 AS col2, + 29 DIV - COUNT( * ) AS col0, - + 4
----
57
-29
-4

skipif mysql # not compatible
query III rowsort label-3411
SELECT ALL 57 AS col2, + 29 / - COUNT ( * ) AS col0, - + 4
----
57
-29
-4

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

skipif mysql # not compatible
query I rowsort label-3412
SELECT 31 + + COUNT ( * ) AS col0
----
32

query I rowsort
SELECT 40 + 68
----
108

query I rowsort
SELECT 50 + 72
----
122

query II rowsort
SELECT ALL 68 col0, NULLIF ( 79, - + 7 ) AS col2
----
68
79

query I rowsort
SELECT DISTINCT 56 * - + 74
----
-4144

query I rowsort
SELECT DISTINCT 15 + 69 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT + 70 + MAX( - + 63 ) * 44 AS col1
----
-2702

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT + 70 + MAX ( - + 63 ) * 44 AS col1
----
-2702

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT DISTINCT - 98 * - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT - 98 * - COUNT ( * )
----
98

query I rowsort
SELECT 56 + + 38 + + 89
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3422
SELECT ALL 55 * - CAST( - ( + 15 ) AS SIGNED )
----
825

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL 55 * - CAST ( - ( + 15 ) AS INTEGER )
----
825

query I rowsort
SELECT ALL 14 + + NULLIF ( - 12, + + 25 / 31 ) - - - 15
----
-13

query I rowsort
SELECT + 98 * - 91 + 48
----
-8870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT 89 * 95 - CAST( - 14 AS SIGNED )
----
8469

skipif mysql # not compatible
query I rowsort label-3425
SELECT 89 * 95 - CAST ( - 14 AS INTEGER )
----
8469

query I rowsort
SELECT ALL - 26 + + - 65 + + 48 AS col1
----
-43

query II rowsort
SELECT 61, 34 AS col1
----
61
34

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3429
SELECT + + ( + SUM( ALL - 26 ) ) AS col2, 86
----
-26
86

skipif mysql # not compatible
query II rowsort label-3429
SELECT + + ( + SUM ( ALL - 26 ) ) AS col2, 86
----
-26
86

query I rowsort
SELECT - 91 + + 29
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT + - SUM( - + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3431
SELECT + - SUM ( - + 55 )
----
55

query I rowsort
SELECT 54 + 60 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ALL - 35 - + COUNT( + 48 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL - 35 - + COUNT ( + 48 ) AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT DISTINCT + 24 * 51 + - CASE + + 76 WHEN + - 21 * + - CAST( NULL AS SIGNED ) + - 46 THEN 19 / - 11 / 46 WHEN + 54 THEN NULL WHEN - 4 + COALESCE ( + 52, 10 ) + 54 * 54 / - 40 THEN NULL WHEN + CAST( - ( + 42 ) AS SIGNED ) - 54 / - 4 THEN + 69 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT + 24 * 51 + - CASE + + 76 WHEN + - 21 * + - CAST ( NULL AS INTEGER ) + - 46 THEN 19 / - 11 / 46 WHEN + 54 THEN NULL WHEN - 4 + COALESCE ( + 52, 10 ) + 54 * 54 / - 40 THEN NULL WHEN + CAST ( - ( + 42 ) AS INTEGER ) - 54 / - 4 THEN + 69 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT DISTINCT CASE + 31 WHEN - 33 THEN NULL WHEN 62 THEN - - ( - + ( - + 30 ) ) END * + 97 + - ( COALESCE ( + COUNT( * ), + COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT CASE + 31 WHEN - 33 THEN NULL WHEN 62 THEN - - ( - + ( - + 30 ) ) END * + 97 + - ( COALESCE ( + COUNT ( * ), + COUNT ( * ) ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3437
SELECT + COUNT( * ) * - COUNT( * ) + - - 48, + COUNT( * ) * - 93 + - 57 AS col0
----
47
-150

skipif mysql # not compatible
query II rowsort label-3437
SELECT + COUNT ( * ) * - COUNT ( * ) + - - 48, + COUNT ( * ) * - 93 + - 57 AS col0
----
47
-150

query I rowsort
SELECT ALL + 74 - + + 81 AS col2
----
-7

query I rowsort
SELECT 23 + - + 14
----
9

query I rowsort
SELECT + 98 * - 12 + - + 71 AS col0
----
-1247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT + MAX( DISTINCT 0 ) + + + COALESCE ( + 92, - - CASE + 83 WHEN + 27 * - + 14 + - COUNT( * ) * 92 THEN NULL ELSE + NULLIF ( - - 39, COUNT( * ) * - + COUNT( * ) * 59 + - 65 ) END + 24 DIV 30, 75, 0 + ( - 39 ) )
----
92

skipif mysql # not compatible
query I rowsort label-3441
SELECT + MAX ( DISTINCT 0 ) + + + COALESCE ( + 92, - - CASE + 83 WHEN + 27 * - + 14 + - COUNT ( * ) * 92 THEN NULL ELSE + NULLIF ( - - 39, COUNT ( * ) * - + COUNT ( * ) * 59 + - 65 ) END + 24 / 30, 75, 0 + ( - 39 ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT - COUNT( * ) + + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3442
SELECT - COUNT ( * ) + + + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT - 81 + - 73 + + COUNT( * ) + MIN( + 84 ) * + 3
----
99

skipif mysql # not compatible
query I rowsort label-3443
SELECT - 81 + - 73 + + COUNT ( * ) + MIN ( + 84 ) * + 3
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3444
SELECT 3 + + - 51 + + 15 * 15 * - CAST( - - CASE - 45 WHEN - - 40 + - 33 THEN NULL ELSE + + ( 96 ) END AS SIGNED ) * + CASE - 44 WHEN 31 + 61 * 86 THEN 78 WHEN 20 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT 3 + + - 51 + + 15 * 15 * - CAST ( - - CASE - 45 WHEN - - 40 + - 33 THEN NULL ELSE + + ( 96 ) END AS INTEGER ) * + CASE - 44 WHEN 31 + 61 * 86 THEN 78 WHEN 20 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3445
SELECT - 90 + + NULLIF ( 8, - AVG ( - 58 ) * 29 + CASE 88 WHEN - - 55 * - ( - COUNT( * ) ) + - + CAST( 31 AS SIGNED ) + - 54 - + 16 THEN - ( 83 ) * - 43 + 19 * ( 45 * 4 + + 75 ) END )
----
-82

skipif mysql # not compatible
query I rowsort label-3445
SELECT - 90 + + NULLIF ( 8, - AVG ( - 58 ) * 29 + CASE 88 WHEN - - 55 * - ( - COUNT ( * ) ) + - + CAST ( 31 AS INTEGER ) + - 54 - + 16 THEN - ( 83 ) * - 43 + 19 * ( 45 * 4 + + 75 ) END )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT 76 + - 59 - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-3446
SELECT 76 + - 59 - - COUNT ( * )
----
18

query I rowsort
SELECT ALL + 83 * + + 45 * + - 51 * 32 AS col1
----
-6095520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3448
SELECT DISTINCT NULLIF ( COUNT( * ), + 37 + - 56 ) DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT NULLIF ( COUNT ( * ), + 37 + - 56 ) / + 70 AS col0
----
0

query I rowsort
SELECT ALL 92 + 39 AS col1
----
131

query I rowsort
SELECT DISTINCT CASE - + 58 WHEN 25 THEN - + 77 * 26 END / 43 AS col1
----
NULL

query II rowsort
SELECT 9 AS col0, 11 * + + 55 AS col0
----
9
605

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT ALL + 56 + + 68 + 36 + CASE - 10 WHEN - COUNT( * ) + 96 + - + 6 THEN NULL ELSE 15 END * 99 DIV + ( + - 37 )
----
120

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + 56 + + 68 + 36 + CASE - 10 WHEN - COUNT ( * ) + 96 + - + 6 THEN NULL ELSE 15 END * 99 / + ( + - 37 )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT - CASE + + COUNT( * ) WHEN + 37 * + 12 * 7 * - 52 THEN + - 59 * - 79 WHEN - COUNT( * ) - + 8 THEN NULL WHEN - COUNT( * ) THEN 87 / 35 + 21 - + 66 END + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT - CASE + + COUNT ( * ) WHEN + 37 * + 12 * 7 * - 52 THEN + - 59 * - 79 WHEN - COUNT ( * ) - + 8 THEN NULL WHEN - COUNT ( * ) THEN 87 / 35 + 21 - + 66 END + 41
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3454
SELECT ALL 69, 91 DIV 5 AS col2
----
69
18

skipif mysql # not compatible
query II rowsort label-3454
SELECT ALL 69, 91 / 5 AS col2
----
69
18

query I rowsort
SELECT - 56 + - 47 - 13 + + 54 * - 24
----
-1412

query I rowsort
SELECT ALL NULLIF ( - 98, 83 )
----
-98

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

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

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

query I rowsort
SELECT - 20 * - 94 * - 33 * + + 37 AS col1
----
-2295480

query I rowsort
SELECT - 26 + - 95
----
-121

query I rowsort
SELECT COALESCE ( 47, - 96, - ( - - 83 ) )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT - 43 DIV - 47 + + + 60
----
60

skipif mysql # not compatible
query I rowsort label-3462
SELECT - 43 / - 47 + + + 60
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3463
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 17 * + 3 * + + 71 * - + 28 AS col0
----
NULL
-101388

skipif mysql # not compatible
query II rowsort label-3463
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 17 * + 3 * + + 71 * - + 28 AS col0
----
NULL
-101388

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT COALESCE ( + COUNT( * ), - - 21 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3464
SELECT COALESCE ( + COUNT ( * ), - - 21 ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3465
SELECT ALL + NULLIF ( + CAST( NULL AS DECIMAL ), 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL + NULLIF ( + CAST ( NULL AS REAL ), 39 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT ALL CAST( NULL AS SIGNED ) * - 62 + - 27 + + ( NULLIF ( + 53, 18 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL CAST ( NULL AS INTEGER ) * - 62 + - 27 + + ( NULLIF ( + 53, 18 ) ) col1
----
NULL

query I rowsort
SELECT ALL + ( 66 ) * - 45 + + - 71 - - 79 AS col0
----
-2962

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

query I rowsort
SELECT 49 * + 36 + - 89 * - - 48 AS col2
----
-2508

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT - - 52 DIV 34 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3470
SELECT - - 52 / 34 AS col2
----
1

query II rowsort
SELECT + 89, - 89 + + 78 AS col1
----
89
-11

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3473
SELECT - COUNT( + 87 ) - - 64 + + 38 * + 20 / + ( + - NULLIF ( + 18, - 94 ) ) + + CAST( NULL AS DECIMAL ) / - - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT - COUNT ( + 87 ) - - 64 + + 38 * + 20 / + ( + - NULLIF ( + 18, - 94 ) ) + + CAST ( NULL AS REAL ) / - - 92
----
NULL

query I rowsort
SELECT - + 85 * - 27 + - 35
----
2260

query I rowsort
SELECT + 63 * + NULLIF ( 89, - 97 )
----
5607

query II rowsort
SELECT ALL + + 33, - 80 AS col1
----
33
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3477
SELECT DISTINCT + 28 AS col1, COUNT( * )
----
28
1

skipif mysql # not compatible
query II rowsort label-3477
SELECT DISTINCT + 28 AS col1, COUNT ( * )
----
28
1

query I rowsort
SELECT DISTINCT - - ( - 46 ) * - NULLIF ( 53, + 66 ) * + 62 AS col1
----
151156

query II rowsort
SELECT 10 col1, + 65
----
10
65

query II rowsort
SELECT - 7, + ( + 88 ) AS col1
----
-7
88

query I rowsort
SELECT DISTINCT - 63 * 55 * + 54 col1
----
-187110

query II rowsort
SELECT - ( + + 50 ) AS col2, 16 AS col2
----
-50
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL + 29 * + COUNT( * ) * 67
----
1943

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + 29 * + COUNT ( * ) * 67
----
1943

query II rowsort
SELECT + 87 * + - 99 AS col1, + 85 - + 37 * - - 54 * 43
----
-8613
-85829

query I rowsort
SELECT ALL CASE - 35 WHEN + 36 THEN ( + AVG ( ALL + 12 ) ) END + + AVG ( - 38 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT NULLIF ( + 7, - ( - COUNT( * ) ) ) * + 28 - + - 4 AS col0
----
200

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT NULLIF ( + 7, - ( - COUNT ( * ) ) ) * + 28 - + - 4 AS col0
----
200

query I rowsort
SELECT ALL 74 + + + 33
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT DISTINCT + 70 + + - 23 * CAST( NULL AS SIGNED ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT + 70 + + - 23 * CAST ( NULL AS INTEGER ) * 45
----
NULL

query I rowsort
SELECT ALL 45 * + - 0 AS col1
----
0

query I rowsort
SELECT ALL 39 + + - 80 + - 17
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT + NULLIF ( + ( - 50 ), - COALESCE ( 41, COUNT( * ) + 83 * + + 64 ) + + 94 * + - 64 ) + - - COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3492
SELECT + NULLIF ( + ( - 50 ), - COALESCE ( 41, COUNT ( * ) + 83 * + + 64 ) + + 94 * + - 64 ) + - - COUNT ( * ) AS col0
----
-49

query II rowsort
SELECT - 26 * + - 21 AS col2, 62 * + 3
----
546
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3494
SELECT ALL COUNT( * ) DIV + 98 * - + 86 AS col1, MAX( ALL + + 2 ) * + 85 col1
----
0
170

skipif mysql # not compatible
query II rowsort label-3494
SELECT ALL COUNT ( * ) / + 98 * - + 86 AS col1, MAX ( ALL + + 2 ) * + 85 col1
----
0
170

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT DISTINCT + COUNT( * ) * - 27 * - ( + - 48 )
----
-1296

skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT + COUNT ( * ) * - 27 * - ( + - 48 )
----
-1296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 7 + 78 + 0 * 44 * + 44 - + 60 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 7 + 78 + 0 * 44 * + 44 - + 60 * 43
----
NULL

query II rowsort
SELECT DISTINCT 38 - - + NULLIF ( - 70, + 76 + - 48 ) col0, - 0 AS col0
----
-32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT - 67 + - MIN( + 45 )
----
-112

skipif mysql # not compatible
query I rowsort label-3498
SELECT - 67 + - MIN ( + 45 )
----
-112

query I rowsort
SELECT - 19 + - 61 AS col1
----
-80

query I rowsort
SELECT ALL + ( + 99 ) * - ( + - 3 ) AS col0
----
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3501
SELECT + 51 + 90 + + + 79 + - COUNT( * ) DIV COUNT( * ) * + ( - 79 ) * + 9 + - - NULLIF ( - - 30, - 60 ) * 65 * - COUNT( * ) * 67 * + 90
----
-11757569

skipif mysql # not compatible
query I rowsort label-3501
SELECT + 51 + 90 + + + 79 + - COUNT ( * ) / COUNT ( * ) * + ( - 79 ) * + 9 + - - NULLIF ( - - 30, - 60 ) * 65 * - COUNT ( * ) * 67 * + 90
----
-11757569

query I rowsort
SELECT - + 90 * - 84 * CASE - 26 WHEN - 49 THEN - 19 ELSE 15 * + 15 END AS col2
----
1701000

query I rowsort
SELECT + 94 * - + 33 + + 41
----
-3061

query I rowsort
SELECT ALL + + 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT - - AVG ( + 19 ) * 33 - - 52 + + CASE - ( 1 ) WHEN + NULLIF ( - 69, + 14 ) THEN - 12 END + - MIN( - - 25 ) + - 97 * - 53 + - - 77 + ( - 94 ) + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT - - AVG ( + 19 ) * 33 - - 52 + + CASE - ( 1 ) WHEN + NULLIF ( - 69, + 14 ) THEN - 12 END + - MIN ( - - 25 ) + - 97 * - 53 + - - 77 + ( - 94 ) + - 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT - + COUNT( * ) * + - 81 * - 83 + - 42 AS col2
----
-6765

skipif mysql # not compatible
query I rowsort label-3506
SELECT - + COUNT ( * ) * + - 81 * - 83 + - 42 AS col2
----
-6765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3507
SELECT ALL + + COUNT( * ) * + MAX( DISTINCT - 31 ) - - 31 + + 6 + COUNT( * ) + + - CAST( NULL AS SIGNED ) * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + + COUNT ( * ) * + MAX ( DISTINCT - 31 ) - - 31 + + 6 + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * - 57
----
NULL

query I rowsort
SELECT - 14 + + 88 + + 44 AS col2
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3509
SELECT 5 * + 30 + - 14 * + - 18 + + 53 + CAST( - 57 AS SIGNED ) + - 99 AS col0, MIN( + 1 ) + 48 + + + COALESCE ( - COUNT( * ), + 89 - + - 43, COUNT( * ) + - 27 ) AS col2
----
299
48

skipif mysql # not compatible
query II rowsort label-3509
SELECT 5 * + 30 + - 14 * + - 18 + + 53 + CAST ( - 57 AS INTEGER ) + - 99 AS col0, MIN ( + 1 ) + 48 + + + COALESCE ( - COUNT ( * ), + 89 - + - 43, COUNT ( * ) + - 27 ) AS col2
----
299
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3510
SELECT + CASE - - 88 WHEN - - CAST( NULL AS SIGNED ) THEN 85 WHEN 69 THEN - 9 * 12 END, 26 AS col2
----
NULL
26

skipif mysql # not compatible
query II rowsort label-3510
SELECT + CASE - - 88 WHEN - - CAST ( NULL AS INTEGER ) THEN 85 WHEN 69 THEN - 9 * 12 END, 26 AS col2
----
NULL
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT ALL + ( - 66 ) * - 43 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + ( - 66 ) * - 43 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( 44 ) * 18 + + 87 + - 24
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT DISTINCT + - 72 * - + 91 * + MAX( ALL - ( 43 ) )
----
-281736

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT + - 72 * - + 91 * + MAX ( ALL - ( 43 ) )
----
-281736

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL + NULLIF ( - ( + + 90 ), - CASE + ( + - COUNT( * ) ) WHEN - CASE + COALESCE ( - 79, - - 96 / - COUNT( DISTINCT ( - 38 ) ) * - 30 + - 46 + + - 58 + 55, - 74 * - 13 ) WHEN + COUNT( ALL ( 88 ) ) THEN - ( - 24 ) / 21 WHEN - 85 + 25 THEN NULL END / 89 THEN - 49 WHEN 5 THEN NULL END )
----
-90

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL + NULLIF ( - ( + + 90 ), - CASE + ( + - COUNT ( * ) ) WHEN - CASE + COALESCE ( - 79, - - 96 / - COUNT ( DISTINCT ( - 38 ) ) * - 30 + - 46 + + - 58 + 55, - 74 * - 13 ) WHEN + COUNT ( ALL ( 88 ) ) THEN - ( - 24 ) / 21 WHEN - 85 + 25 THEN NULL END / 89 THEN - 49 WHEN 5 THEN NULL END )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT - CASE CAST( + + 9 AS SIGNED ) WHEN 41 THEN - + 90 + + - CASE MIN( ALL + 17 ) WHEN 56 THEN - COUNT( * ) ELSE NULL END - MIN( DISTINCT - - 16 ) / + 12 WHEN - 11 + - + COALESCE ( - 82, - ( 75 ) * 93 ) THEN - 85 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT - CASE CAST ( + + 9 AS INTEGER ) WHEN 41 THEN - + 90 + + - CASE MIN ( ALL + 17 ) WHEN 56 THEN - COUNT ( * ) ELSE NULL END - MIN ( DISTINCT - - 16 ) / + 12 WHEN - 11 + - + COALESCE ( - 82, - ( 75 ) * 93 ) THEN - 85 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT DISTINCT 51 + + NULLIF ( COUNT( * ), - + 47 + - 78 )
----
52

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT 51 + + NULLIF ( COUNT ( * ), - + 47 + - 78 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3517
SELECT ALL 56 + - 8 + + COALESCE ( + COUNT( * ), 9 * - COUNT( * ) + - 56 + + + 9 + 62 DIV + MIN( - 52 ) + - 37 ) * - 79 * + + 97 * - 15 AS col1
----
114993

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL 56 + - 8 + + COALESCE ( + COUNT ( * ), 9 * - COUNT ( * ) + - 56 + + + 9 + 62 / + MIN ( - 52 ) + - 37 ) * - 79 * + + 97 * - 15 AS col1
----
114993

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3519
SELECT ALL + ( - 91 ) * + - CAST( + - 54 AS SIGNED ) - SUM( ALL 62 ) col1
----
-4976

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL + ( - 91 ) * + - CAST ( + - 54 AS INTEGER ) - SUM ( ALL 62 ) col1
----
-4976

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT + NULLIF ( 23, 12 * + 63 - 38 + 31 ) * + COUNT( * ) + + - COUNT( * ) * + 48 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3520
SELECT + NULLIF ( 23, 12 * + 63 - 38 + 31 ) * + COUNT ( * ) + + - COUNT ( * ) * + 48 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3521
SELECT ALL 39 + + COUNT( * ) * 59 * + 5 col1, + ( - 17 )
----
334
-17

skipif mysql # not compatible
query II rowsort label-3521
SELECT ALL 39 + + COUNT ( * ) * 59 * + 5 col1, + ( - 17 )
----
334
-17

query I rowsort
SELECT 1 + - 64 - - + 3
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT 56 col0, + COUNT( + - 45 ) AS col2
----
56
1

skipif mysql # not compatible
query II rowsort label-3523
SELECT 56 col0, + COUNT ( + - 45 ) AS col2
----
56
1

query I rowsort
SELECT ( - NULLIF ( 43, + 47 ) ) + - - 30 AS col1
----
-13

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3526
SELECT ALL 55 * - + MIN( ALL + 84 ) AS col0, 69 col1
----
-4620
69

skipif mysql # not compatible
query II rowsort label-3526
SELECT ALL 55 * - + MIN ( ALL + 84 ) AS col0, 69 col1
----
-4620
69

query I rowsort
SELECT ( + 10 ) + - - 5
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3528
SELECT ALL 97 AS col1, COUNT( + 47 ) + + ( + 45 ) col1
----
97
46

skipif mysql # not compatible
query II rowsort label-3528
SELECT ALL 97 AS col1, COUNT ( + 47 ) + + ( + 45 ) col1
----
97
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3529
SELECT ( - MIN( 79 ) ) DIV + 48 + + + 59
----
58

skipif mysql # not compatible
query I rowsort label-3529
SELECT ( - MIN ( 79 ) ) / + 48 + + + 59
----
58

query II rowsort
SELECT 72 AS col0, 55
----
72
55

query II rowsort
SELECT ALL 73, + 32 AS col2
----
73
32

query I rowsort
SELECT + 62 * + + 74 + - 74 + - + 53 AS col2
----
4461

onlyif mysql # DIV for integer division: 
query II rowsort label-3533
SELECT ALL - 19, 42 DIV 24 + 28 AS col2
----
-19
29

skipif mysql # not compatible
query II rowsort label-3533
SELECT ALL - 19, 42 / 24 + 28 AS col2
----
-19
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT - 71 DIV - - 45
----
-1

skipif mysql # not compatible
query I rowsort label-3534
SELECT - 71 / - - 45
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3535
SELECT ALL - 9, - 88 DIV - + 29 + - 62 + 77 AS col2
----
-9
18

skipif mysql # not compatible
query II rowsort label-3535
SELECT ALL - 9, - 88 / - + 29 + - 62 + 77 AS col2
----
-9
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3536
SELECT DISTINCT 59 DIV COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT 59 / COUNT ( * ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL - + COALESCE ( + - 14, + + MIN( DISTINCT - 20 ), - - ( 85 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL - + COALESCE ( + - 14, + + MIN ( DISTINCT - 20 ), - - ( 85 ) ) AS col2
----
14

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

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL + CAST ( NULL AS INTEGER ) * - 12 * - 21
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3540
SELECT ALL - COUNT( + 6 ) + 44, - 76 + + - CAST( NULL AS SIGNED ) * 27 + + 20 + + - 43 + 20 AS col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-3540
SELECT ALL - COUNT ( + 6 ) + 44, - 76 + + - CAST ( NULL AS INTEGER ) * 27 + + 20 + + - 43 + 20 AS col1
----
43
NULL

query II rowsort
SELECT + 58 AS col2, 5 AS col1
----
58
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT - CAST( - NULLIF ( - 19, - + NULLIF ( - 32, - 51 ) ) AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-3542
SELECT - CAST ( - NULLIF ( - 19, - + NULLIF ( - 32, - 51 ) ) AS INTEGER )
----
-19

query I rowsort
SELECT ALL - - 17 AS col1
----
17

query I rowsort
SELECT ALL + 93 + + - 87 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3545
SELECT DISTINCT - COALESCE ( ( + - SUM( ALL 23 ) ), 7 + + 44 ) col1, 94 * - 84 AS col0
----
23
-7896

skipif mysql # not compatible
query II rowsort label-3545
SELECT DISTINCT - COALESCE ( ( + - SUM ( ALL 23 ) ), 7 + + 44 ) col1, 94 * - 84 AS col0
----
23
-7896

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT ALL - MIN( ALL - - 59 ) + - 23, - MAX( DISTINCT 98 ) AS col0
----
-82
-98

skipif mysql # not compatible
query II rowsort label-3546
SELECT ALL - MIN ( ALL - - 59 ) + - 23, - MAX ( DISTINCT 98 ) AS col0
----
-82
-98

query I rowsort
SELECT DISTINCT - + 79 AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3548
SELECT + - MIN( DISTINCT + 20 ) * + 63 - - COUNT( * ) - + COALESCE ( 68, + CASE 25 WHEN + - CAST( NULL AS SIGNED ) THEN 32 WHEN + 8 THEN NULL WHEN - MIN( - 64 ) THEN 13 ELSE + ( + 26 ) END, COUNT( * ) + 66 ) + 47 * - 94 DIV ( - NULLIF ( 53, + SUM( - 88 ) ) + 6 ) AS col0
----
-1233

skipif mysql # not compatible
query I rowsort label-3548
SELECT + - MIN ( DISTINCT + 20 ) * + 63 - - COUNT ( * ) - + COALESCE ( 68, + CASE 25 WHEN + - CAST ( NULL AS INTEGER ) THEN 32 WHEN + 8 THEN NULL WHEN - MIN ( - 64 ) THEN 13 ELSE + ( + 26 ) END, COUNT ( * ) + 66 ) + 47 * - 94 / ( - NULLIF ( 53, + SUM ( - 88 ) ) + 6 ) AS col0
----
-1233

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL - COALESCE ( MAX( DISTINCT + 4 ), 82, + 81 )
----
-4

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL - COALESCE ( MAX ( DISTINCT + 4 ), 82, + 81 )
----
-4

query I rowsort
SELECT ALL + 25 + - + COALESCE ( 35, - - 62, + + 50 + + - 3 + - 66 ) AS col1
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-3551
SELECT 56 DIV + 86 * + 86 * - 59 AS col2, 49 + - 30 AS col1
----
0
19

skipif mysql # not compatible
query II rowsort label-3551
SELECT 56 / + 86 * + 86 * - 59 AS col2, 49 + - 30 AS col1
----
0
19

query I rowsort
SELECT 91 * + 93
----
8463

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT MIN( DISTINCT 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT MIN ( DISTINCT 34 ) AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3555
SELECT DISTINCT - 53 * - CASE + + COUNT( * ) WHEN + + 15 THEN + COALESCE ( NULLIF ( + 21, + + COUNT( * ) * - COUNT( * ) + + + 89 - - 95 + + + ( MAX( ALL - 80 ) ) + + NULLIF ( CAST( 37 AS SIGNED ), - 12 * + CAST( NULL AS SIGNED ) ) ), AVG ( ALL - 58 ) * 25 ) / - ( - 7 * MAX( ALL + 91 ) ) WHEN - 40 * 67 + - 53 THEN ( 71 ) * + COALESCE ( 1 * COUNT( ALL - 6 * 20 ), - 82, 68 ) + 93 ELSE NULL END * - 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - 53 * - CASE + + COUNT ( * ) WHEN + + 15 THEN + COALESCE ( NULLIF ( + 21, + + COUNT ( * ) * - COUNT ( * ) + + + 89 - - 95 + + + ( MAX ( ALL - 80 ) ) + + NULLIF ( CAST ( 37 AS INTEGER ), - 12 * + CAST ( NULL AS INTEGER ) ) ), AVG ( ALL - 58 ) * 25 ) / - ( - 7 * MAX ( ALL + 91 ) ) WHEN - 40 * 67 + - 53 THEN ( 71 ) * + COALESCE ( 1 * COUNT ( ALL - 6 * 20 ), - 82, 68 ) + 93 ELSE NULL END * - 94 col1
----
NULL

query I rowsort
SELECT ALL + 90 * + 60 * + 75 AS col1
----
405000

query I rowsort
SELECT 81 * - ( + - 20 )
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT 90 + MIN( ALL + 94 )
----
184

skipif mysql # not compatible
query I rowsort label-3558
SELECT 90 + MIN ( ALL + 94 )
----
184

query I rowsort
SELECT ( + 97 ) * 94 AS col2
----
9118

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3562
SELECT ALL 99 * - COUNT( * ) AS col1, - 49 AS col1
----
-99
-49

skipif mysql # not compatible
query II rowsort label-3562
SELECT ALL 99 * - COUNT ( * ) AS col1, - 49 AS col1
----
-99
-49

query I rowsort
SELECT ALL - + 6 * ( 61 )
----
-366

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL NULLIF ( - - 71, + 76 * + 87 - + - MAX( DISTINCT 64 ) ) + 32 * + - ( + 15 ) * - 80
----
38471

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL NULLIF ( - - 71, + 76 * + 87 - + - MAX ( DISTINCT 64 ) ) + 32 * + - ( + 15 ) * - 80
----
38471

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3565
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT CAST ( NULL AS REAL ) + - 87 col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT DISTINCT - SUM( + + 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT - SUM ( + + 23 ) AS col0
----
-23

query I rowsort
SELECT 46 + - 19 * 29 * 58 * + - 74
----
2364938

onlyif mysql # aggregate syntax: 
query II rowsort label-3570
SELECT + 47 * 25 * - 67 + COUNT( * ) AS col2, NULLIF ( + + 46, + COUNT( * ) ) AS col2
----
-78724
46

skipif mysql # not compatible
query II rowsort label-3570
SELECT + 47 * 25 * - 67 + COUNT ( * ) AS col2, NULLIF ( + + 46, + COUNT ( * ) ) AS col2
----
-78724
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3571
SELECT 36 * 33 + - - 69 + + CASE + - MAX( - 64 ) WHEN COUNT( DISTINCT 45 ) THEN NULL ELSE + - COUNT( * ) / 36 / - + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT 36 * 33 + - - 69 + + CASE + - MAX ( - 64 ) WHEN COUNT ( DISTINCT 45 ) THEN NULL ELSE + - COUNT ( * ) / 36 / - + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3572
SELECT DISTINCT + + SUM( ALL - 96 ) AS col1, 54 * - 56 + - 86 + + 81 * - 65 + - - SUM( ALL - 75 ) + 14
----
-96
-8436

skipif mysql # not compatible
query II rowsort label-3572
SELECT DISTINCT + + SUM ( ALL - 96 ) AS col1, 54 * - 56 + - 86 + + 81 * - 65 + - - SUM ( ALL - 75 ) + 14
----
-96
-8436

query I rowsort
SELECT ALL - 93 * - 52 + + 98 col1
----
4934

query I rowsort
SELECT + + 37 * 38 * 21
----
29526

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

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - COUNT ( * ) / + 66 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3576
SELECT + - 20 DIV 89, - 68 + + + 97 + + - 70 DIV COUNT( * ) AS col2
----
0
-41

skipif mysql # not compatible
query II rowsort label-3576
SELECT + - 20 / 89, - 68 + + + 97 + + - 70 / COUNT ( * ) AS col2
----
0
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3577
SELECT DISTINCT + 7 * 78 + CAST( NULL AS DECIMAL ) + + 90 AS col2, NULLIF ( - + 52, - 53 - + ( - COALESCE ( + - 69, + 77 ) ) ) AS col1
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-3577
SELECT DISTINCT + 7 * 78 + CAST ( NULL AS REAL ) + + 90 AS col2, NULLIF ( - + 52, - 53 - + ( - COALESCE ( + - 69, + 77 ) ) ) AS col1
----
NULL
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL COUNT( * ) * 42 + 96
----
138

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL COUNT ( * ) * 42 + 96
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3579
SELECT ALL + CASE 91 WHEN 53 THEN - 43 END * - 66 * - - COUNT( * ) - 33 + - + 70 / - - 82 * 55 + 94 * - + 93 * COUNT( * ) - + - ( - CAST( - + 9 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL + CASE 91 WHEN 53 THEN - 43 END * - 66 * - - COUNT ( * ) - 33 + - + 70 / - - 82 * 55 + 94 * - + 93 * COUNT ( * ) - + - ( - CAST ( - + 9 AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 0 * - 45
----
0

query I rowsort
SELECT + 4 * ( - 69 ) AS col0
----
-276

query I rowsort
SELECT ALL - 66 * + 32
----
-2112

query I rowsort
SELECT + 21 + 31 + + 85 * + + 16 * - 62
----
-84268

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3584
SELECT 93 * CAST( NULL AS DECIMAL ) * + + 69 - + + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT 93 * CAST ( NULL AS REAL ) * + + 69 - + + 37 AS col1
----
NULL

query I rowsort
SELECT - 74 * 30
----
-2220

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT DISTINCT - 21 DIV 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT - 21 / 61 AS col2
----
0

query I rowsort
SELECT - 68 + - - 37
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL MAX( DISTINCT + 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL MAX ( DISTINCT + 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL - COUNT( * ) * - + 37 * - COALESCE ( + + 44, + ( - 43 ) ) * + + 39 - - 33 * + + 91
----
-60489

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL - COUNT ( * ) * - + 37 * - COALESCE ( + + 44, + ( - 43 ) ) * + + 39 - - 33 * + + 91
----
-60489

query I rowsort
SELECT - 44 + + - 58 * 3 * + 72
----
-12572

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT ALL - 31 DIV + 23
----
-1

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - 31 / + 23
----
-1

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

query II rowsort
SELECT 97 AS col1, - 97
----
97
-97

query I rowsort
SELECT ALL - 4 * + 94
----
-376

query I rowsort
SELECT - 8 * - + ( - - 40 ) AS col2
----
320

query I rowsort
SELECT - 14 + - - 44 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT DISTINCT - COUNT( + 21 ) + - 9 + + 80
----
70

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT - COUNT ( + 21 ) + - 9 + + 80
----
70

query I rowsort
SELECT DISTINCT - 13 * 49
----
-637

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

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL MIN ( 88 )
----
88

query I rowsort
SELECT ALL 92 / 66 + - CASE + 81 WHEN + 34 THEN - 56 WHEN + 59 THEN - + 12 * - 68 + + + 75 - + 52 + - 30 + - 93 + + 53 * + 69 END AS col2
----
NULL

query II rowsort
SELECT 95 col2, 33 AS col0
----
95
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL + SUM( ALL + 0 ) + - 85 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + SUM ( ALL + 0 ) + - 85 AS col1
----
-85

query I rowsort
SELECT - - 90 + - 16 - 63 AS col0
----
11

query II rowsort
SELECT 69 col0, 31 col2
----
69
31

query I rowsort
SELECT - 60 * - - 69
----
-4140

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT ALL + 96 DIV - 29 + + - 69
----
-72

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + 96 / - 29 + + - 69
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + CASE - COALESCE ( - 0, 79 * + + 10 + - 34 * - 34 - + 28 + + ( + 95 ) ) WHEN + - MIN( DISTINCT + - 83 ) THEN MAX( + 8 ) * - - ( - COUNT( ALL - 90 ) ) ELSE 52 END * 26 * + - 59 + + CASE 91 + + 85 * 70 WHEN - COUNT( * ) THEN NULL WHEN 74 THEN 81 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT + CASE - COALESCE ( - 0, 79 * + + 10 + - 34 * - 34 - + 28 + + ( + 95 ) ) WHEN + - MIN ( DISTINCT + - 83 ) THEN MAX ( + 8 ) * - - ( - COUNT ( ALL - 90 ) ) ELSE 52 END * 26 * + - 59 + + CASE 91 + + 85 * 70 WHEN - COUNT ( * ) THEN NULL WHEN 74 THEN 81 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3609
SELECT DISTINCT + MIN( - + COALESCE ( 34, + ( + 4 ), + + 61 ) ) DIV 72 - - + 99 + - + MAX( DISTINCT ( - 1 ) )
----
100

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT + MIN ( - + COALESCE ( 34, + ( + 4 ), + + 61 ) ) / 72 - - + 99 + - + MAX ( DISTINCT ( - 1 ) )
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3610
SELECT ALL - CASE + + 50 WHEN - - 15 THEN NULL WHEN 28 * - 58 - MAX( ALL - ( 4 ) ) THEN NULL ELSE + + COUNT( * ) DIV 96 * - - 14 END * + 24 * 37, COUNT( * ) + - + 28 + - 18 * - COUNT( * ) + - + 13 + 69 AS col1
----
0
47

skipif mysql # not compatible
query II rowsort label-3610
SELECT ALL - CASE + + 50 WHEN - - 15 THEN NULL WHEN 28 * - 58 - MAX ( ALL - ( 4 ) ) THEN NULL ELSE + + COUNT ( * ) / 96 * - - 14 END * + 24 * 37, COUNT ( * ) + - + 28 + - 18 * - COUNT ( * ) + - + 13 + 69 AS col1
----
0
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT - SUM( - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-3611
SELECT - SUM ( - 34 )
----
34

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT 30 DIV 91 + + - 12 + - + ( + + 18 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3613
SELECT 30 / 91 + + - 12 + - + ( + + 18 ) AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3614
SELECT + CASE - 4 WHEN + 97 THEN - - 79 WHEN 47 + - + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col1, - CAST( NULL AS DECIMAL ) + + - 45 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3614
SELECT + CASE - 4 WHEN + 97 THEN - - 79 WHEN 47 + - + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col1, - CAST ( NULL AS REAL ) + + - 45 AS col0
----
NULL
NULL

query I rowsort
SELECT + 28 + + 31 * 22
----
710

query II rowsort
SELECT ALL + 46, + 23 * + 63 col2
----
46
1449

query II rowsort
SELECT ALL + 20 AS col2, + 17 * 62
----
20
1054

query I rowsort
SELECT + 50 * - 6
----
-300

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT ALL - COUNT( * ) * MIN( 40 ) * - 45 AS col1, - COUNT( DISTINCT - 92 ) * + - 68 * - - 60 * - 34 + - CASE + 55 WHEN - ( + MAX( + 98 ) ) THEN NULL WHEN ( - COUNT( * ) ) + - 58 THEN + - COUNT( * ) * + + 60 * - + CASE ( + 10 ) WHEN 21 THEN 45 ELSE NULL END END AS col2
----
1800
NULL

skipif mysql # not compatible
query II rowsort label-3619
SELECT ALL - COUNT ( * ) * MIN ( 40 ) * - 45 AS col1, - COUNT ( DISTINCT - 92 ) * + - 68 * - - 60 * - 34 + - CASE + 55 WHEN - ( + MAX ( + 98 ) ) THEN NULL WHEN ( - COUNT ( * ) ) + - 58 THEN + - COUNT ( * ) * + + 60 * - + CASE ( + 10 ) WHEN 21 THEN 45 ELSE NULL END END AS col2
----
1800
NULL

query II rowsort
SELECT ALL + 36 AS col1, + 81
----
36
81

query I rowsort
SELECT ALL 32 * - 19 * + 57
----
-34656

query I rowsort
SELECT + 44 * - 12 AS col0
----
-528

query I rowsort
SELECT + ( + 68 ) - - 77
----
145

query I rowsort
SELECT + 14 * 39 * + + 17 AS col0
----
9282

query I rowsort
SELECT - 20 * - 16 AS col2
----
320

query I rowsort
SELECT ALL 26 * 12 col0
----
312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3627
SELECT NULLIF ( - COALESCE ( - 2, + - COUNT( * ) DIV + 33 + + 46 * 8 ), - 62 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3627
SELECT NULLIF ( - COALESCE ( - 2, + - COUNT ( * ) / + 33 + + 46 * 8 ), - 62 ) AS col0
----
2

query I rowsort
SELECT COALESCE ( 25, - 72 - + - 11 + + 10 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT - CAST( 26 AS SIGNED ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-3629
SELECT - CAST ( 26 AS INTEGER ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ALL COALESCE ( + + COUNT( * ), + + 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL COALESCE ( + + COUNT ( * ), + + 35 ) AS col2
----
1

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

query I rowsort
SELECT ALL - CASE - + 86 WHEN + + 58 THEN NULL ELSE - NULLIF ( + 85, - 13 ) END + 84
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT - 54 * - SUM( DISTINCT + - NULLIF ( + + 57, - - 40 ) )
----
-3078

skipif mysql # not compatible
query I rowsort label-3633
SELECT - 54 * - SUM ( DISTINCT + - NULLIF ( + + 57, - - 40 ) )
----
-3078

query I rowsort
SELECT DISTINCT COALESCE ( 53, - 89, 53 + COALESCE ( - - 87, - 27 ) + NULLIF ( + + 76, + - 41 ) * - 17 * - - 90 * 8 ) AS col0
----
53

query I rowsort
SELECT + 95 + + 68
----
163

query II rowsort
SELECT - 53 AS col1, + COALESCE ( + - 43, - 53 )
----
-53
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT ALL + 41 + + + COUNT( * ) + - ( + 51 ) * + SUM( 51 ) * + 90 * + CAST( - COUNT( * ) AS SIGNED )
----
234132

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL + 41 + + + COUNT ( * ) + - ( + 51 ) * + SUM ( 51 ) * + 90 * + CAST ( - COUNT ( * ) AS INTEGER )
----
234132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3638
SELECT + - 36 + - CAST( + COUNT( * ) AS SIGNED ) - - COALESCE ( + 81, - + 33 ), + 34 AS col1
----
44
34

skipif mysql # not compatible
query II rowsort label-3638
SELECT + - 36 + - CAST ( + COUNT ( * ) AS INTEGER ) - - COALESCE ( + 81, - + 33 ), + 34 AS col1
----
44
34

query I rowsort
SELECT - - 30 * + 28 AS col2
----
840

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

query I rowsort
SELECT - ( - 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT 76 + - - 88 + - 3 + - 47 * + - 94 * + ( 97 ) * - - 61 + + + COUNT( * ) * + 91 * 28
----
26144015

skipif mysql # not compatible
query I rowsort label-3642
SELECT 76 + - - 88 + - 3 + - 47 * + - 94 * + ( 97 ) * - - 61 + + + COUNT ( * ) * + 91 * 28
----
26144015

query I rowsort
SELECT 7 * + + 14
----
98

query I rowsort
SELECT ALL + + 47 * - - 71 - + 42
----
3295

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL - + 84 * + 53 + 28 * + ( - COUNT( * ) ) * + 44 AS col1
----
-5684

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL - + 84 * + 53 + 28 * + ( - COUNT ( * ) ) * + 44 AS col1
----
-5684

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3647
SELECT ALL + 40, + CAST( NULL AS SIGNED ) + - 89 - - 82 - - 44 * - 10 AS col1
----
40
NULL

skipif mysql # not compatible
query II rowsort label-3647
SELECT ALL + 40, + CAST ( NULL AS INTEGER ) + - 89 - - 82 - - 44 * - 10 AS col1
----
40
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT ALL + 26 DIV + ( 67 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL + 26 / + ( 67 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3649
SELECT DISTINCT CAST( 4 AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT CAST ( 4 AS INTEGER ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3650
SELECT COALESCE ( + ( - 69 ), - + 96 * + 5 * - 51, - - COUNT( * ) * + 98 * - + ( - - 11 ) / + ( COUNT( * ) ) ) / - 74 + - - 98 + ( - CASE - 86 WHEN - + CAST( NULL AS DECIMAL ) + + COUNT( * ) THEN 63 WHEN - ( 7 ) * + 53 THEN + 51 - 83 * - 65 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT COALESCE ( + ( - 69 ), - + 96 * + 5 * - 51, - - COUNT ( * ) * + 98 * - + ( - - 11 ) / + ( COUNT ( * ) ) ) / - 74 + - - 98 + ( - CASE - 86 WHEN - + CAST ( NULL AS REAL ) + + COUNT ( * ) THEN 63 WHEN - ( 7 ) * + 53 THEN + 51 - 83 * - 65 END ) AS col1
----
NULL

query I rowsort
SELECT 32 * + 31 AS col0
----
992

query II rowsort
SELECT + 44 AS col2, + 19 + + 61
----
44
80

query II rowsort
SELECT ALL - + 73, 18 AS col0
----
-73
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT - SUM( - 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3654
SELECT - SUM ( - 18 ) AS col0
----
18

query I rowsort
SELECT - ( + 82 ) col0
----
-82

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

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

query I rowsort
SELECT ALL - - 83 * + + 65 * + 98 AS col1
----
528710

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT DISTINCT COUNT( * ) * 20, 96 * - - 85 AS col0
----
20
8160

skipif mysql # not compatible
query II rowsort label-3658
SELECT DISTINCT COUNT ( * ) * 20, 96 * - - 85 AS col0
----
20
8160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3659
SELECT MIN( ALL + NULLIF ( 72, 26 ) ) * + + COALESCE ( - - 60, + 49 * - 51, + 41 + - + 72 DIV - 73 * + CAST( NULL AS SIGNED ) + - 24, - MIN( - 57 ) * - COUNT( DISTINCT 53 ) + + CASE COUNT( * ) WHEN + COUNT( ALL + 57 ) + + 91 THEN 44 + ( 63 ) WHEN 64 + 85 THEN NULL END ) - + COALESCE ( - SUM( + 73 ), 87, + CAST( NULL AS SIGNED ), + 30 DIV + NULLIF ( - 99, 97 ) ) AS col1
----
4393

skipif mysql # not compatible
query I rowsort label-3659
SELECT MIN ( ALL + NULLIF ( 72, 26 ) ) * + + COALESCE ( - - 60, + 49 * - 51, + 41 + - + 72 / - 73 * + CAST ( NULL AS INTEGER ) + - 24, - MIN ( - 57 ) * - COUNT ( DISTINCT 53 ) + + CASE COUNT ( * ) WHEN + COUNT ( ALL + 57 ) + + 91 THEN 44 + ( 63 ) WHEN 64 + 85 THEN NULL END ) - + COALESCE ( - SUM ( + 73 ), 87, + CAST ( NULL AS INTEGER ), + 30 / + NULLIF ( - 99, 97 ) ) AS col1
----
4393

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT ALL + 31 * - - 42 * + 75 * + COUNT( ALL + 88 )
----
97650

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL + 31 * - - 42 * + 75 * + COUNT ( ALL + 88 )
----
97650

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT + COUNT( * ) * - - 15 * NULLIF ( - 37, 91 )
----
-555

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + COUNT ( * ) * - - 15 * NULLIF ( - 37, 91 )
----
-555

onlyif mysql # DIV for integer division: 
query I rowsort label-3662
SELECT 84 DIV + 57
----
1

skipif mysql # not compatible
query I rowsort label-3662
SELECT 84 / + 57
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT + 82 * 36 * - - ( - COUNT( * ) ) * + COUNT( * ) + + 11
----
-2941

skipif mysql # not compatible
query I rowsort label-3663
SELECT + 82 * 36 * - - ( - COUNT ( * ) ) * + COUNT ( * ) + + 11
----
-2941

query I rowsort
SELECT 0 + + - 29
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT ALL ( + 81 ) DIV + - 38
----
-2

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL ( + 81 ) / + - 38
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT - MAX( DISTINCT + - 72 ) * + ( 67 ) + - 70 + + 77 - + 82 + + 33 + + 52
----
4834

skipif mysql # not compatible
query I rowsort label-3666
SELECT - MAX ( DISTINCT + - 72 ) * + ( 67 ) + - 70 + + 77 - + 82 + + 33 + + 52
----
4834

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3668
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 63 + - COALESCE ( 4, + - 5 / - 15 * - 9 + 96 ) + + + COUNT( * ) / - - SUM( ALL - 76 ) * - 97 + + 29 * + + ( + 21 ) * + 35 + - 49 AS col2, + 64 AS col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-3668
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 63 + - COALESCE ( 4, + - 5 / - 15 * - 9 + 96 ) + + + COUNT ( * ) / - - SUM ( ALL - 76 ) * - 97 + + 29 * + + ( + 21 ) * + 35 + - 49 AS col2, + 64 AS col1
----
NULL
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3669
SELECT DISTINCT COALESCE ( - 26, + + 0 * - 93 ) + 26 * + - 60 + - 57 + ( MIN( 52 ) ) * 73 + - 35 + 24 + 45 DIV - + 85 AS col2, - 5
----
2142
-5

skipif mysql # not compatible
query II rowsort label-3669
SELECT DISTINCT COALESCE ( - 26, + + 0 * - 93 ) + 26 * + - 60 + - 57 + ( MIN ( 52 ) ) * 73 + - 35 + 24 + 45 / - + 85 AS col2, - 5
----
2142
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT CAST( NULL AS SIGNED ) + - COALESCE ( + 71, + 54, - 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT CAST ( NULL AS INTEGER ) + - COALESCE ( + 71, + 54, - 33 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT DISTINCT CAST( + ( + + 37 ) AS SIGNED ) + - 83 + 39 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT CAST ( + ( + + 37 ) AS INTEGER ) + - 83 + 39 AS col2
----
-7

query I rowsort
SELECT DISTINCT 36 + - 83
----
-47

query I rowsort
SELECT 98 * 7 * - 94 AS col1
----
-64484

query II rowsort
SELECT ALL - ( - - 76 ), + 19 AS col0
----
-76
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT COALESCE ( + 26, - + ( COUNT( * ) ), 7 + 31 )
----
26

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT COALESCE ( + 26, - + ( COUNT ( * ) ), 7 + 31 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT MAX( ALL - - 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3676
SELECT MAX ( ALL - - 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3677
SELECT - - SUM( + 62 ), CASE + 46 WHEN ( + + AVG ( ALL 26 ) ) THEN + 28 * + 44 END + - ( - 79 ) * - 8 AS col0
----
62
NULL

skipif mysql # not compatible
query II rowsort label-3677
SELECT - - SUM ( + 62 ), CASE + 46 WHEN ( + + AVG ( ALL 26 ) ) THEN + 28 * + 44 END + - ( - 79 ) * - 8 AS col0
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT + NULLIF ( COUNT( * ), + 97 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + NULLIF ( COUNT ( * ), + 97 ) AS col1
----
1

query I rowsort
SELECT + 87 * - - 67 col2
----
5829

query I rowsort
SELECT ALL + CASE 94 WHEN - ( - + 61 ) THEN NULL WHEN + 49 THEN NULL WHEN + 70 THEN + 63 + 64 END / - 91 / 18 col2
----
NULL

query I rowsort
SELECT ALL + 3 col2
----
3

query I rowsort
SELECT ALL 23 * - + 15 col2
----
-345

query I rowsort
SELECT ALL - - NULLIF ( 73, + 47 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL - CASE - COUNT( * ) WHEN 80 + + - 98 THEN + 95 * + MIN( ALL + 93 ) * + 78 * + - 64 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL - CASE - COUNT ( * ) WHEN 80 + + - 98 THEN + 95 * + MIN ( ALL + 93 ) * + 78 * + - 64 END col0
----
NULL

query I rowsort
SELECT DISTINCT + 62 * - 24
----
-1488

query I rowsort
SELECT ALL - 8 * + 19 AS col0
----
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3687
SELECT DISTINCT - ( COUNT( * ) ) DIV + COALESCE ( - - COUNT( * ), 75, + 68, - + 2 ) - - COUNT( * ) + + - ( 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT - ( COUNT ( * ) ) / + COALESCE ( - - COUNT ( * ), 75, + 68, - + 2 ) - - COUNT ( * ) + + - ( 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3688
SELECT ( - 42 ) * + 35 AS col0, COUNT( * ) AS col1
----
-1470
1

skipif mysql # not compatible
query II rowsort label-3688
SELECT ( - 42 ) * + 35 AS col0, COUNT ( * ) AS col1
----
-1470
1

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

query II rowsort
SELECT + 13 AS col2, 71
----
13
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT ALL - 72 + + - 24 DIV + 71 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL - 72 + + - 24 / + 71 AS col2
----
-72

query I rowsort
SELECT DISTINCT + COALESCE ( + 98, - - 46 + 69 ) + - 71
----
27

query II rowsort
SELECT + 68, + 31 AS col2
----
68
31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - 27 * - 28 * + + MAX( ALL + - 2 ) * + + 82 * COUNT( * ) + 93 AS col0
----
-123891

skipif mysql # not compatible
query I rowsort label-3695
SELECT - 27 * - 28 * + + MAX ( ALL + - 2 ) * + + 82 * COUNT ( * ) + 93 AS col0
----
-123891

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT DISTINCT - NULLIF ( - 25, + SUM( + - 82 ) + - 53 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT - NULLIF ( - 25, + SUM ( + - 82 ) + - 53 ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3697
SELECT DISTINCT + SUM( DISTINCT NULLIF ( + - ( - 10 ), + CAST( + ( 59 ) AS SIGNED ) - - 75 ) ) + + 98 + - + 82 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT + SUM ( DISTINCT NULLIF ( + - ( - 10 ), + CAST ( + ( 59 ) AS INTEGER ) - - 75 ) ) + + 98 + - + 82 AS col0
----
26

query I rowsort
SELECT DISTINCT + 18 + + 80 + - 87 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT ALL CAST( 72 AS SIGNED ) + - ( + 24 ) + + 5 * - 90 * + - 80 AS col0
----
36048

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL CAST ( 72 AS INTEGER ) + - ( + 24 ) + + 5 * - 90 * + - 80 AS col0
----
36048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT DISTINCT + COALESCE ( - 43, - 74 ) * - + 66 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT + COALESCE ( - 43, - 74 ) * - + 66 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3701
SELECT ALL + 82 * - + 68 DIV 2 AS col0, 18 AS col0
----
-2788
18

skipif mysql # not compatible
query II rowsort label-3701
SELECT ALL + 82 * - + 68 / 2 AS col0, 18 AS col0
----
-2788
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3702
SELECT 15 - + SUM( ALL + 98 ) + + 28 AS col1, - SUM( ALL 47 ) * CAST( NULL AS SIGNED ) col0
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-3702
SELECT 15 - + SUM ( ALL + 98 ) + + 28 AS col1, - SUM ( ALL 47 ) * CAST ( NULL AS INTEGER ) col0
----
-55
NULL

query I rowsort
SELECT ALL - CASE + - 91 WHEN + 34 THEN + - 75 END AS col2
----
NULL

query II rowsort
SELECT 25 - - ( + 38 ) AS col0, 20 + + 42 AS col1
----
63
62

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

query I rowsort
SELECT - - 67 AS col0
----
67

query II rowsort
SELECT ALL 10 AS col2, 40 AS col0
----
10
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3708
SELECT DISTINCT - MIN( + 5 ) DIV + 28 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT - MIN ( + 5 ) / + 28 + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + COALESCE ( + + 49, - 49 * 83 ) * - 95 AS col2
----
-4655

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT + - COUNT( + COALESCE ( + 54, 73 * - 65 * 65 / 23 + - 40 + 54 + + + 91 ) ) - + + ( - 53 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3710
SELECT + - COUNT ( + COALESCE ( + 54, 73 * - 65 * 65 / 23 + - 40 + 54 + + + 91 ) ) - + + ( - 53 ) AS col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT ALL - 48 DIV + 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - 48 / + 39 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3712
SELECT - - 67 AS col1, 25 DIV + 78 AS col1
----
67
0

skipif mysql # not compatible
query II rowsort label-3712
SELECT - - 67 AS col1, 25 / + 78 AS col1
----
67
0

query II rowsort
SELECT DISTINCT + 10, 2 AS col1
----
10
2

query I rowsort
SELECT ALL - 98 * + 0
----
0

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

query I rowsort
SELECT + 15 + + 97 AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3717
SELECT ALL 55 * CASE WHEN NULL BETWEEN NULL AND 99 THEN 95 END + + 61 + 21 + + - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL 55 * CASE WHEN NULL BETWEEN NULL AND 99 THEN 95 END + + 61 + 21 + + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 99 - 43 + - 50 * - - 88
----
-4542

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

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

query I rowsort
SELECT + 42 + + 62 AS col1
----
104

query I rowsort
SELECT ALL 12 * - 25
----
-300

onlyif mysql # aggregate syntax: 
query II rowsort label-3722
SELECT ALL - COUNT( * ) AS col2, + 24 AS col0
----
-1
24

skipif mysql # not compatible
query II rowsort label-3722
SELECT ALL - COUNT ( * ) AS col2, + 24 AS col0
----
-1
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3723
SELECT ALL 69, 13 * + + COUNT( * ) * - 1 AS col2
----
69
-13

skipif mysql # not compatible
query II rowsort label-3723
SELECT ALL 69, 13 * + + COUNT ( * ) * - 1 AS col2
----
69
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL + ( + ( ( - - COUNT( + + 33 ) ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL + ( + ( ( - - COUNT ( + + 33 ) ) ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT 39 + - + 62 AS col2
----
-23

query I rowsort
SELECT ALL 86 * - 80 + + 81
----
-6799

query I rowsort
SELECT + NULLIF ( + 45, + 96 ) + - ( - 57 )
----
102

query I rowsort
SELECT ( 88 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3729
SELECT ALL - 77 * COUNT( * ) AS col1, + 23 col1
----
-77
23

skipif mysql # not compatible
query II rowsort label-3729
SELECT ALL - 77 * COUNT ( * ) AS col1, + 23 col1
----
-77
23

onlyif mysql # DIV for integer division: 
query II rowsort label-3730
SELECT + 9 DIV 70 AS col1, 42 + + - 44 AS col2
----
0
-2

skipif mysql # not compatible
query II rowsort label-3730
SELECT + 9 / 70 AS col1, 42 + + - 44 AS col2
----
0
-2

query I rowsort
SELECT - 15 * 60 AS col2
----
-900

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

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

query I rowsort
SELECT ALL + 59 * - 34 + - CASE - 60 WHEN - + 15 + + + 92 THEN - 11 * + 93 + - + 80 ELSE 49 END - 82
----
-2137

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL + COUNT( * ) * - 9 + 55
----
46

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL + COUNT ( * ) * - 9 + 55
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3735
SELECT DISTINCT + 32 * NULLIF ( - NULLIF ( NULLIF ( - 4, + ( 69 ) ), + ( - + 60 ) + - 13 + CASE CAST( NULL AS SIGNED ) WHEN + - 67 THEN NULL ELSE + 24 * - ( + 81 ) END / - 8 ), - + 54 ) + 6 + - 72 * + 53
----
-3682

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + 32 * NULLIF ( - NULLIF ( NULLIF ( - 4, + ( 69 ) ), + ( - + 60 ) + - 13 + CASE CAST ( NULL AS INTEGER ) WHEN + - 67 THEN NULL ELSE + 24 * - ( + 81 ) END / - 8 ), - + 54 ) + 6 + - 72 * + 53
----
-3682

query I rowsort
SELECT - 14 * + + 26
----
-364

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3738
SELECT NULLIF ( - 18, + 23 * - + 54 + - COALESCE ( - + COUNT( * ), + COALESCE ( + 76, - + 47 * - + CAST( 57 AS SIGNED ) * NULLIF ( 2, 94 ), - + 92 ) * COUNT( * ) + + 69, COALESCE ( 74, + + 65 / - COUNT( ALL + CAST( 44 AS SIGNED ) ) * - 66, 34 + CASE 28 WHEN + ( - 98 ) / 45 THEN ( + COALESCE ( 22, 60 ) ) / ( MIN( DISTINCT + 78 ) ) WHEN 15 THEN NULL ELSE CASE SUM( 53 ) WHEN 36 / 14 + 8 THEN 81 WHEN ( + COUNT( * ) ) * 29 THEN - 53 WHEN + SUM( ALL 26 ) THEN 25 END END * - 63, 49 + + 3 ) ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3738
SELECT NULLIF ( - 18, + 23 * - + 54 + - COALESCE ( - + COUNT ( * ), + COALESCE ( + 76, - + 47 * - + CAST ( 57 AS INTEGER ) * NULLIF ( 2, 94 ), - + 92 ) * COUNT ( * ) + + 69, COALESCE ( 74, + + 65 / - COUNT ( ALL + CAST ( 44 AS INTEGER ) ) * - 66, 34 + CASE 28 WHEN + ( - 98 ) / 45 THEN ( + COALESCE ( 22, 60 ) ) / ( MIN ( DISTINCT + 78 ) ) WHEN 15 THEN NULL ELSE CASE SUM ( 53 ) WHEN 36 / 14 + 8 THEN 81 WHEN ( + COUNT ( * ) ) * 29 THEN - 53 WHEN + SUM ( ALL 26 ) THEN 25 END END * - 63, 49 + + 3 ) ) ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT 5 * COUNT( * ) * + 37 + + + 62 + 18
----
265

skipif mysql # not compatible
query I rowsort label-3739
SELECT 5 * COUNT ( * ) * + 37 + + + 62 + 18
----
265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT + 47 * 92 - + NULLIF ( + - 55, + CAST( NULL AS SIGNED ) ) AS col1
----
4379

skipif mysql # not compatible
query I rowsort label-3740
SELECT + 47 * 92 - + NULLIF ( + - 55, + CAST ( NULL AS INTEGER ) ) AS col1
----
4379

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

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

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

query I rowsort
SELECT 42 * + - 53 - + 17 * - - 6 AS col1
----
-2328

query I rowsort
SELECT ALL + + 67 AS col0
----
67

query II rowsort
SELECT - - 57 * - 74 - 83 * + 3 AS col1, 66
----
-4467
66

query I rowsort
SELECT ALL + + 50 AS col0
----
50

query I rowsort
SELECT ALL - 18 * + - 27 AS col2
----
486

query I rowsort
SELECT - - 7 + - 66 - - 82 * 84
----
6829

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - COUNT( * ) + + + 78 + + 67 AS col0
----
144

skipif mysql # not compatible
query I rowsort label-3749
SELECT - COUNT ( * ) + + + 78 + + 67 AS col0
----
144

query II rowsort
SELECT DISTINCT - 69 * 99 col2, + 46 * + - 92
----
-6831
-4232

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT + MIN( ALL 18 ) * - 24
----
-432

skipif mysql # not compatible
query I rowsort label-3751
SELECT + MIN ( ALL 18 ) * - 24
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT + - ( 22 ) + + COUNT( * ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-3752
SELECT + - ( 22 ) + + COUNT ( * ) col0
----
-21

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

skipif mysql # not compatible
query I rowsort label-3753
SELECT - COUNT ( * ) * + 38 AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT ALL + SUM( 3 ) / - ( CAST( NULL AS SIGNED ) ) + COUNT( * ) + 54 + - 51 * + 48 / + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + SUM ( 3 ) / - ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + 54 + - 51 * + 48 / + 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT ALL - 11 + 4 DIV COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL - 11 + 4 / COUNT ( * )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3756
SELECT DISTINCT - - 10 + + - CAST( - 1 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT - - 10 + + - CAST ( - 1 AS INTEGER )
----
11

query II rowsort
SELECT DISTINCT + - 47 + + 45 col1, 65
----
-2
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3758
SELECT + 72 DIV 97 + - COUNT( * ) + + 9 - + 2 * - 92 * + 74 AS col0
----
13624

skipif mysql # not compatible
query I rowsort label-3758
SELECT + 72 / 97 + - COUNT ( * ) + + 9 - + 2 * - 92 * + 74 AS col0
----
13624

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL NULLIF ( + + 85, + 48 * + COUNT( * ) * 47 - + 13 * + 26 * - COUNT( * ) + 88 / ( 41 ) ) + + + 32 + + - 91
----
26

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL NULLIF ( + + 85, + 48 * + COUNT ( * ) * 47 - + 13 * + 26 * - COUNT ( * ) + 88 / ( 41 ) ) + + + 32 + + - 91
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3760
SELECT DISTINCT 69 * + + 74 * - 57 AS col2, + COALESCE ( 50, - MIN( - + 29 ) ) * - 24 AS col0
----
-291042
-1200

skipif mysql # not compatible
query II rowsort label-3760
SELECT DISTINCT 69 * + + 74 * - 57 AS col2, + COALESCE ( 50, - MIN ( - + 29 ) ) * - 24 AS col0
----
-291042
-1200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3761
SELECT - CASE + 14 WHEN + + 13 THEN NULL WHEN 55 * - CASE - 32 WHEN - 45 THEN 64 WHEN + ( - 54 ) THEN + 75 + 90 + + 26 WHEN + CAST( NULL AS DECIMAL ) / - 54 * + - 42 THEN NULL ELSE + - 83 END THEN + MIN( 59 ) * - COALESCE ( + 58, 63 - + 80 - 37 ) * - 80 + 97 * + 48 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3761
SELECT - CASE + 14 WHEN + + 13 THEN NULL WHEN 55 * - CASE - 32 WHEN - 45 THEN 64 WHEN + ( - 54 ) THEN + 75 + 90 + + 26 WHEN + CAST ( NULL AS REAL ) / - 54 * + - 42 THEN NULL ELSE + - 83 END THEN + MIN ( 59 ) * - COALESCE ( + 58, 63 - + 80 - 37 ) * - 80 + 97 * + 48 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL - COUNT( * ) + - + 39 * 8
----
-313

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - COUNT ( * ) + - + 39 * 8
----
-313

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT DISTINCT SUM( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT SUM ( 41 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT DISTINCT + 15 DIV - 98 + + - 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + 15 / - 98 + + - 44 AS col1
----
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-3765
SELECT ALL + 38 DIV + ( COALESCE ( + 56, 99, - - 26 ) ) * + + 86 - + - 0 AS col2, 85 + - + 63
----
0
22

skipif mysql # not compatible
query II rowsort label-3765
SELECT ALL + 38 / + ( COALESCE ( + 56, 99, - - 26 ) ) * + + 86 - + - 0 AS col2, 85 + - + 63
----
0
22

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

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

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

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

query II rowsort
SELECT + 2 * - ( + + 97 ), 78 AS col0
----
-194
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT DISTINCT COUNT( * ) * - 4 * 43 col2
----
-172

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT COUNT ( * ) * - 4 * 43 col2
----
-172

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

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

query I rowsort
SELECT DISTINCT 49 * 90 AS col2
----
4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT ALL MIN( 67 ) DIV - 38 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL MIN ( 67 ) / - 38 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT ALL - 10 * + - COALESCE ( - COUNT( * ), - ( - + 23 ) ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL - 10 * + - COALESCE ( - COUNT ( * ), - ( - + 23 ) ) col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT DISTINCT MAX( - + 65 ) * - + 90 - + + 19 + - 10 AS col2
----
5821

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT MAX ( - + 65 ) * - + 90 - + + 19 + - 10 AS col2
----
5821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3776
SELECT + 8 DIV - - ( - COALESCE ( + 46, + COUNT( * ), + 98 ) ) + - 78 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3776
SELECT + 8 / - - ( - COALESCE ( + 46, + COUNT ( * ), + 98 ) ) + - 78 AS col1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT ALL + ( 46 ) * + 98 + - + 51 + + 94 DIV - 78
----
4456

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL + ( 46 ) * + 98 + - + 51 + + 94 / - 78
----
4456

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT - ( - + COUNT( DISTINCT ( 84 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT - ( - + COUNT ( DISTINCT ( 84 ) ) )
----
1

query I rowsort
SELECT 53 - + ( 30 ) * + 83 AS col0
----
-2437

query I rowsort
SELECT DISTINCT CASE + 5 WHEN 14 * - 96 / + - 54 THEN 3 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 74 + 75
----
1

query I rowsort
SELECT ALL + 15 + - 75
----
-60

query II rowsort
SELECT + 41 AS col0, 51 col1
----
41
51

query I rowsort
SELECT 22 - - 38 + - 85 + + 56
----
31

query I rowsort
SELECT ALL - 24 * + 79
----
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT - COUNT( * ) - + 53
----
-54

skipif mysql # not compatible
query I rowsort label-3786
SELECT - COUNT ( * ) - + 53
----
-54

query I rowsort
SELECT ALL + - 45 + + 33 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT 14 * + + ( COUNT( * ) ) + - 70
----
-56

skipif mysql # not compatible
query I rowsort label-3788
SELECT 14 * + + ( COUNT ( * ) ) + - 70
----
-56

query I rowsort
SELECT 1 + - 40
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-3790
SELECT 56 AS col1, 8 + - COUNT( * ) * - - 87 * + + 37 * + - ( + 60 ) col1
----
56
193148

skipif mysql # not compatible
query II rowsort label-3790
SELECT 56 AS col1, 8 + - COUNT ( * ) * - - 87 * + + 37 * + - ( + 60 ) col1
----
56
193148

query II rowsort
SELECT ALL 0 AS col2, 53
----
0
53

query I rowsort
SELECT 3 + - 61 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT ALL + SUM( + 35 ) + - + 1 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL + SUM ( + 35 ) + - + 1 AS col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT ALL 56 + - 72 DIV - + 2 col2
----
92

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL 56 + - 72 / - + 2 col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3795
SELECT DISTINCT NULLIF ( - 33, + COUNT( * ) ) DIV - 53 * - + SUM( 64 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT NULLIF ( - 33, + COUNT ( * ) ) / - 53 * - + SUM ( 64 ) AS col0
----
0

query I rowsort
SELECT ALL 50 * 97 col0
----
4850

query I rowsort
SELECT ALL ( - 1 ) - + 68 AS col0
----
-69

query I rowsort
SELECT ALL ( + 74 ) * + 23
----
1702

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT COUNT( * ) + - + 6
----
-5

skipif mysql # not compatible
query I rowsort label-3799
SELECT COUNT ( * ) + - + 6
----
-5

query I rowsort
SELECT 28 * - 1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT 64 * + CASE + 40 WHEN 28 * - 96 + + + 69 - - CAST( - - 67 AS SIGNED ) THEN 28 + - CAST( NULL AS SIGNED ) * ( - 11 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT 64 * + CASE + 40 WHEN 28 * - 96 + + + 69 - - CAST ( - - 67 AS INTEGER ) THEN 28 + - CAST ( NULL AS INTEGER ) * ( - 11 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ALL MIN( ALL - 9 ) * - 16 * NULLIF ( + 13, MAX( ALL + - 31 ) ) + - 60 AS col2
----
1812

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL MIN ( ALL - 9 ) * - 16 * NULLIF ( + 13, MAX ( ALL + - 31 ) ) + - 60 AS col2
----
1812

query I rowsort
SELECT DISTINCT 8 * 88 * - - 37
----
26048

query I rowsort
SELECT DISTINCT - 69 * 77
----
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT 54 * - 98 * + + COUNT( * )
----
-5292

skipif mysql # not compatible
query I rowsort label-3805
SELECT 54 * - 98 * + + COUNT ( * )
----
-5292

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL MIN( + 14 ) * ( - + 95 ) * + NULLIF ( - ( 40 ), + 60 * - + 56 ) + + + 53
----
53253

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL MIN ( + 14 ) * ( - + 95 ) * + NULLIF ( - ( 40 ), + 60 * - + 56 ) + + + 53
----
53253

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT - COUNT( * ) * - 65 + - 30
----
35

skipif mysql # not compatible
query I rowsort label-3807
SELECT - COUNT ( * ) * - 65 + - 30
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3808
SELECT + CAST( NULL AS DECIMAL ) * 62 * + 49 * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT + CAST ( NULL AS REAL ) * 62 * + 49 * - 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3809
SELECT + + ( + 91 ) * + 72 * + + 27 + - - 60 + + CASE - 15 WHEN + 38 THEN NULL WHEN + - 89 THEN - 48 * 62 - ( - + 59 ) END + + - NULLIF ( CAST( NULL AS SIGNED ), - - 86 * + 14 ) AS col1, + 16 AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-3809
SELECT + + ( + 91 ) * + 72 * + + 27 + - - 60 + + CASE - 15 WHEN + 38 THEN NULL WHEN + - 89 THEN - 48 * 62 - ( - + 59 ) END + + - NULLIF ( CAST ( NULL AS INTEGER ), - - 86 * + 14 ) AS col1, + 16 AS col1
----
NULL
16

query II rowsort
SELECT + 30 AS col0, - 22 AS col2
----
30
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3811
SELECT ALL + CAST( NULL AS DECIMAL ) + - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + CAST ( NULL AS REAL ) + - 6 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT + 81 * - 87 - + 72 + + SUM( ALL - ( CAST( - CAST( + - 63 AS SIGNED ) AS SIGNED ) ) ) * + - 19
----
-5922

skipif mysql # not compatible
query I rowsort label-3812
SELECT + 81 * - 87 - + 72 + + SUM ( ALL - ( CAST ( - CAST ( + - 63 AS INTEGER ) AS INTEGER ) ) ) * + - 19
----
-5922

query I rowsort
SELECT ALL - 36 * - 35
----
1260

query I rowsort
SELECT + 82 + - 85 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL 21 * - 83 * - COUNT( * ) * 28 - + 27 AS col2
----
48777

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL 21 * - 83 * - COUNT ( * ) * 28 - + 27 AS col2
----
48777

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3816
SELECT DISTINCT 60 DIV MAX( + 18 ) + + 51 - 83 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT 60 / MAX ( + 18 ) + + 51 - 83 AS col1
----
-29

query I rowsort
SELECT ALL - - 97 + 9 AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT - 89 * - 78 + + COUNT( * ) + - - COUNT( * )
----
6944

skipif mysql # not compatible
query I rowsort label-3818
SELECT - 89 * - 78 + + COUNT ( * ) + - - COUNT ( * )
----
6944

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3819
SELECT DISTINCT - 88 AS col2, + COUNT( * ) - + 33 * COUNT( * ) * 22 + 67 * 76 DIV 47
----
-88
-617

skipif mysql # not compatible
query II rowsort label-3819
SELECT DISTINCT - 88 AS col2, + COUNT ( * ) - + 33 * COUNT ( * ) * 22 + 67 * 76 / 47
----
-88
-617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT DISTINCT - 28 + - + CAST( - - 24 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT - 28 + - + CAST ( - - 24 AS INTEGER )
----
-52

query I rowsort
SELECT DISTINCT - 17 + ( 60 ) + + 49 AS col0
----
92

query I rowsort
SELECT ALL - + ( 36 ) + ( + 53 ) AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3823
SELECT + COUNT( * ) + CAST( - + COALESCE ( 98, - - COUNT( * ) + CAST( - - 64 AS SIGNED ) ) AS SIGNED ) - - + NULLIF ( COUNT( * ), - + 52 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3823
SELECT + COUNT ( * ) + CAST ( - + COALESCE ( 98, - - COUNT ( * ) + CAST ( - - 64 AS INTEGER ) ) AS INTEGER ) - - + NULLIF ( COUNT ( * ), - + 52 ) AS col0
----
-96

query I rowsort
SELECT ALL - 84 + - 36 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT - ( - COUNT( ALL + - 77 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT - ( - COUNT ( ALL + - 77 ) ) AS col1
----
1

query I rowsort
SELECT ( - 99 ) * + 99 AS col0
----
-9801

query I rowsort
SELECT + 54 * - - 61
----
3294

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT + 98 * - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-3829
SELECT + 98 * - COUNT ( * )
----
-98

query I rowsort
SELECT ( - 93 )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT ALL SUM( ALL - 51 ) AS col2, 47
----
-51
47

skipif mysql # not compatible
query II rowsort label-3831
SELECT ALL SUM ( ALL - 51 ) AS col2, 47
----
-51
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL + ( - - 18 ) * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + ( - - 18 ) * COUNT ( * )
----
18

query I rowsort
SELECT ( CASE + + 73 WHEN + 6 THEN 10 + - 32 + - ( + - 23 ) - ( + 22 ) END ) * + - 26
----
NULL

query I rowsort
SELECT 45 + + NULLIF ( + 34, + 36 ) + + 82 AS col0
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT - 79 - - ( - 72 ) DIV + - 14 col2
----
-74

skipif mysql # not compatible
query I rowsort label-3835
SELECT - 79 - - ( - 72 ) / + - 14 col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT - 96 * - CAST( 32 AS SIGNED )
----
3072

skipif mysql # not compatible
query I rowsort label-3836
SELECT - 96 * - CAST ( 32 AS INTEGER )
----
3072

query I rowsort
SELECT - 55 - - 12 AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3838
SELECT - COALESCE ( + 88, + 5 + CAST( 90 AS SIGNED ) + + 26 ) / ( - ( - - 8 ) ) / - + CAST( NULL AS SIGNED ), + 45 * - 42 * + 66 + + 9 AS col2
----
NULL
-124731

skipif mysql # not compatible
query II rowsort label-3838
SELECT - COALESCE ( + 88, + 5 + CAST ( 90 AS INTEGER ) + + 26 ) / ( - ( - - 8 ) ) / - + CAST ( NULL AS INTEGER ), + 45 * - 42 * + 66 + + 9 AS col2
----
NULL
-124731

query I rowsort
SELECT ALL + ( - - ( + 59 ) )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT ALL 60 DIV + NULLIF ( - 50, 56 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL 60 / + NULLIF ( - 50, 56 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT + MIN( DISTINCT + 59 ) * + - 14 + - + 76 + ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT + MIN ( DISTINCT + 59 ) * + - 14 + - + 76 + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( + 74 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3843
SELECT - COUNT( * ) DIV + - 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT - COUNT ( * ) / + - 19 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3844
SELECT + - COALESCE ( - 15, + + 29 ) DIV - 87 + - - 8 - - - 30 + + 27 * + COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3844
SELECT + - COALESCE ( - 15, + + 29 ) / - 87 + - - 8 - - - 30 + + 27 * + COUNT ( * ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT - COUNT( * ) * ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3845
SELECT - COUNT ( * ) * ( + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3846
SELECT + + ( - CAST( NULL AS SIGNED ) ) AS col2, 46 * + - 5
----
NULL
-230

skipif mysql # not compatible
query II rowsort label-3846
SELECT + + ( - CAST ( NULL AS INTEGER ) ) AS col2, 46 * + - 5
----
NULL
-230

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3847
SELECT + + 45 * + 17 AS col1, - 9 + + - COUNT( * ) + - - MAX( - 32 ) + + - 42 DIV - + 84 + CASE 35 WHEN - SUM( ALL + 69 ) + - CASE + ( + + 73 ) WHEN 11 * - COUNT( * ) THEN - - ( + - COUNT( * ) ) + + 95 * + 52 END * COUNT( * ) + 21 THEN NULL ELSE 67 END
----
765
25

skipif mysql # not compatible
query II rowsort label-3847
SELECT + + 45 * + 17 AS col1, - 9 + + - COUNT ( * ) + - - MAX ( - 32 ) + + - 42 / - + 84 + CASE 35 WHEN - SUM ( ALL + 69 ) + - CASE + ( + + 73 ) WHEN 11 * - COUNT ( * ) THEN - - ( + - COUNT ( * ) ) + + 95 * + 52 END * COUNT ( * ) + 21 THEN NULL ELSE 67 END
----
765
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3848
SELECT - - 76 + - + 10 - 58 * + 70 * - 58 * - - 25 + - - 17 + - 23 - + 69 * + CAST( NULL AS SIGNED ) - - 45 / + COALESCE ( + SUM( + 57 ), - 88 ) + + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT - - 76 + - + 10 - 58 * + 70 * - 58 * - - 25 + - - 17 + - 23 - + 69 * + CAST ( NULL AS INTEGER ) - - 45 / + COALESCE ( + SUM ( + 57 ), - 88 ) + + 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT + + NULLIF ( + 14, + - ( - - COALESCE ( + 25, 66 * - 84 ) ) + + - MIN( - ( 74 ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-3849
SELECT + + NULLIF ( + 14, + - ( - - COALESCE ( + 25, 66 * - 84 ) ) + + - MIN ( - ( 74 ) ) )
----
14

query I rowsort
SELECT ALL 45 * - 90 + + NULLIF ( - COALESCE ( + 58, - 62 ), - 64 )
----
-4108

query I rowsort
SELECT ALL 10 * + 12
----
120

query I rowsort
SELECT + 79 * + 30
----
2370

onlyif mysql # aggregate syntax: 
query II rowsort label-3853
SELECT + MAX( ALL + 60 ) col2, 52 AS col0
----
60
52

skipif mysql # not compatible
query II rowsort label-3853
SELECT + MAX ( ALL + 60 ) col2, 52 AS col0
----
60
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL + - ( SUM( - - 53 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + - ( SUM ( - - 53 ) ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3855
SELECT + ( - + 7 ) AS col1, NULLIF ( + - CASE - - 7 WHEN - - CAST( NULL AS SIGNED ) / - 29 + 33 THEN - 95 - - COUNT( * ) + - 92 WHEN + + CAST( NULL AS SIGNED ) * + + 46 - + + 92 - + - 27 THEN NULL ELSE NULL END, + - COUNT( * ) + - - COALESCE ( - COUNT( * ), - + 1 * + ( - - 84 ) - - CASE + 50 WHEN - ( + 36 ) THEN + + 36 * - COALESCE ( - 6, - 30 ) END + - 99 / 7, - COALESCE ( + 83, CAST( NULL AS SIGNED ) ), + 12 + + 47 ) ) AS col2
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-3855
SELECT + ( - + 7 ) AS col1, NULLIF ( + - CASE - - 7 WHEN - - CAST ( NULL AS INTEGER ) / - 29 + 33 THEN - 95 - - COUNT ( * ) + - 92 WHEN + + CAST ( NULL AS INTEGER ) * + + 46 - + + 92 - + - 27 THEN NULL ELSE NULL END, + - COUNT ( * ) + - - COALESCE ( - COUNT ( * ), - + 1 * + ( - - 84 ) - - CASE + 50 WHEN - ( + 36 ) THEN + + 36 * - COALESCE ( - 6, - 30 ) END + - 99 / 7, - COALESCE ( + 83, CAST ( NULL AS INTEGER ) ), + 12 + + 47 ) ) AS col2
----
-7
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3856
SELECT ALL ( - + 19 ) * - MIN( - 69 ) + - NULLIF ( - COUNT( DISTINCT - 80 ), - 51 * - AVG ( - 87 ) ) * - 37 + 14 AS col0, - 67 AS col0
----
-1334
-67

skipif mysql # not compatible
query II rowsort label-3856
SELECT ALL ( - + 19 ) * - MIN ( - 69 ) + - NULLIF ( - COUNT ( DISTINCT - 80 ), - 51 * - AVG ( - 87 ) ) * - 37 + 14 AS col0, - 67 AS col0
----
-1334
-67

query I rowsort
SELECT + + 18 * + 84
----
1512

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT ALL 66 * NULLIF ( + 6, - COUNT( * ) ) + COUNT( * ) AS col0, - 62 AS col2
----
397
-62

skipif mysql # not compatible
query II rowsort label-3858
SELECT ALL 66 * NULLIF ( + 6, - COUNT ( * ) ) + COUNT ( * ) AS col0, - 62 AS col2
----
397
-62

query I rowsort
SELECT + ( + 21 ) AS col2
----
21

query I rowsort
SELECT + 68 - - 81 - + - 21
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3861
SELECT CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3861
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT ALL + - 12 col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3863
SELECT COUNT( - 18 ) * + ( 28 ) * - 32 + + 39 + - + 13 + + 57 * - 76 * - 33 * + 22 * CASE + COALESCE ( - 95, + CAST( CAST( NULL AS SIGNED ) AS SIGNED ), + + 8 + - 63 ) WHEN - AVG ( - - NULLIF ( + - 62, + - 54 + + - ( + + 47 ) ) ) THEN 43 ELSE + 71 END
----
223296402

skipif mysql # not compatible
query I rowsort label-3863
SELECT COUNT ( - 18 ) * + ( 28 ) * - 32 + + 39 + - + 13 + + 57 * - 76 * - 33 * + 22 * CASE + COALESCE ( - 95, + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), + + 8 + - 63 ) WHEN - AVG ( - - NULLIF ( + - 62, + - 54 + + - ( + + 47 ) ) ) THEN 43 ELSE + 71 END
----
223296402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT ALL 35 - - 72 * - CAST( - - 51 AS SIGNED ) + - 52 AS col2
----
-3689

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL 35 - - 72 * - CAST ( - - 51 AS INTEGER ) + - 52 AS col2
----
-3689

query I rowsort
SELECT DISTINCT - COALESCE ( - + 99, - 77 * + 68 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3866
SELECT ALL 79 DIV 93 + + + 93 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL 79 / 93 + + + 93 AS col2
----
93

query I rowsort
SELECT + 63 * + + 17 AS col2
----
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT DISTINCT COUNT( ALL - + 49 )
----
1

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT COUNT ( ALL - + 49 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT ALL COUNT( - 35 )
----
1

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL COUNT ( - 35 )
----
1

query I rowsort
SELECT + 39 - + - 16 AS col1
----
55

query I rowsort
SELECT + 9 + - + 18 * + 99
----
-1773

query I rowsort
SELECT ALL 21 - + 57 AS col1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3873
SELECT + 27 DIV - - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3873
SELECT + 27 / - - 48 AS col2
----
0

query I rowsort
SELECT - 33 * - + 78 AS col2
----
2574

query II rowsort
SELECT DISTINCT 10 AS col0, 30
----
10
30

query I rowsort
SELECT + 3 + - 41 + + - 57
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT - COUNT( * ) * - 11 * 89 * + + 86
----
84194

skipif mysql # not compatible
query I rowsort label-3877
SELECT - COUNT ( * ) * - 11 * 89 * + + 86
----
84194

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL COUNT( - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL COUNT ( - 92 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT + 79 + COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3879
SELECT + 79 + COUNT ( * ) AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT - 85 DIV - 29
----
2

skipif mysql # not compatible
query I rowsort label-3880
SELECT - 85 / - 29
----
2

query I rowsort
SELECT + 97 * + - 9 AS col2
----
-873

query I rowsort
SELECT + 55 + - 15
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3883
SELECT + COUNT( ALL CAST( NULL AS SIGNED ) ) * + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3883
SELECT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * + 86 AS col2
----
0

query I rowsort
SELECT DISTINCT + 6 * - 24 * + 36 AS col2
----
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT COUNT( - 3 )
----
1

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT COUNT ( - 3 )
----
1

query I rowsort
SELECT ALL + 97 * - - 21
----
2037

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL COUNT( - 58 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL COUNT ( - 58 ) AS col0
----
1

query I rowsort
SELECT - ( - - 95 ) * 48
----
-4560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3889
SELECT - 1 + + + 22 DIV - 40 + - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT - 1 + + + 22 / - 40 + - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 6 * + 75
----
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3891
SELECT CAST( + 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-3891
SELECT CAST ( + 28 AS INTEGER )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + COUNT( ALL 60 )
----
1

skipif mysql # not compatible
query I rowsort label-3892
SELECT + COUNT ( ALL 60 )
----
1

query I rowsort
SELECT - COALESCE ( + 77, + 3, + 46, + 6 ) + + 33
----
-44

query I rowsort
SELECT - + 58 * 15 AS col1
----
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + - SUM( 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3895
SELECT + - SUM ( 98 ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT ALL - 40 DIV + + 14 + - ( + - 45 )
----
43

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - 40 / + + 14 + - ( + - 45 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3897
SELECT ALL + 62 DIV ( 52 ) DIV COALESCE ( - 82, 52 + - CAST( SUM( ALL 31 ) AS SIGNED ) ) + - 82 * + 4 + - COUNT( * )
----
-329

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL + 62 / ( 52 ) / COALESCE ( - 82, 52 + - CAST ( SUM ( ALL 31 ) AS INTEGER ) ) + - 82 * + 4 + - COUNT ( * )
----
-329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT ALL + + CAST( - - 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL + + CAST ( - - 15 AS INTEGER )
----
15

query I rowsort
SELECT - 0 + 76 AS col0
----
76

query I rowsort
SELECT 37 * - 61 * + 17 * 84 + - + 4
----
-3223000

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3901
SELECT - 57 * - 39 + 71 AS col0, CASE - 12 WHEN 56 THEN - MAX( - 54 ) - + COUNT( ALL 17 ) WHEN + + 9 * + - AVG ( DISTINCT - + 30 ) + - + CAST( - 37 AS DECIMAL ) THEN NULL ELSE - - COUNT( - 74 ) END
----
2294
1

skipif mysql # not compatible
query II rowsort label-3901
SELECT - 57 * - 39 + 71 AS col0, CASE - 12 WHEN 56 THEN - MAX ( - 54 ) - + COUNT ( ALL 17 ) WHEN + + 9 * + - AVG ( DISTINCT - + 30 ) + - + CAST ( - 37 AS REAL ) THEN NULL ELSE - - COUNT ( - 74 ) END
----
2294
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ALL - - 26 * + + 95 * COUNT( * )
----
2470

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL - - 26 * + + 95 * COUNT ( * )
----
2470

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT DISTINCT - - COUNT( * ) * + 28 * - COUNT( * ) + 74, 53 + - + 69 + + + 98 col2
----
46
82

skipif mysql # not compatible
query II rowsort label-3903
SELECT DISTINCT - - COUNT ( * ) * + 28 * - COUNT ( * ) + 74, 53 + - + 69 + + + 98 col2
----
46
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL + SUM( + 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL + SUM ( + 4 ) AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 81 / + 39 - - 75 * + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 81 / + 39 - - 75 * + 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT - 54 * + ( 25 ) - + + COUNT( * ) + - 8
----
-1359

skipif mysql # not compatible
query I rowsort label-3906
SELECT - 54 * + ( 25 ) - + + COUNT ( * ) + - 8
----
-1359

query I rowsort
SELECT + 15 + + + CASE WHEN - 87 <= - 57 THEN - - 45 ELSE NULL END AS col1
----
60

query I rowsort
SELECT 12 * - 33 * - 86 AS col2
----
34056

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT 48 + - 49 + 65 + + - 6 + 94 + - 40 + 63 * + ( - - 49 ) + + 49 * - - 84 * + ( + 55 ) + ( - ( MAX( DISTINCT + + 89 ) ) ) - - - 3 + - MAX( ALL + 72 )
----
229415

skipif mysql # not compatible
query I rowsort label-3909
SELECT 48 + - 49 + 65 + + - 6 + 94 + - 40 + 63 * + ( - - 49 ) + + 49 * - - 84 * + ( + 55 ) + ( - ( MAX ( DISTINCT + + 89 ) ) ) - - - 3 + - MAX ( ALL + 72 )
----
229415

query I rowsort
SELECT 54 * + 57
----
3078

onlyif mysql # DIV for integer division: 
query II rowsort label-3911
SELECT DISTINCT 32 DIV - 74 AS col0, 87
----
0
87

skipif mysql # not compatible
query II rowsort label-3911
SELECT DISTINCT 32 / - 74 AS col0, 87
----
0
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT 38 * + MIN( ALL - 16 ) AS col0
----
-608

skipif mysql # not compatible
query I rowsort label-3912
SELECT 38 * + MIN ( ALL - 16 ) AS col0
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT DISTINCT 85 + - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT 85 + - COUNT ( * )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT DISTINCT 96 DIV 5 DIV - 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT 96 / 5 / - 24 AS col0
----
0

query I rowsort
SELECT ALL 20 + + 87 * - + 82
----
-7114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT 34 DIV + COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3916
SELECT 34 / + COUNT ( * ) AS col1
----
34

query I rowsort
SELECT 70 + + 45
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3918
SELECT CAST( + ( + 53 ) AS SIGNED ) * + COUNT( * ) * + - 16 - - COUNT( * )
----
-847

skipif mysql # not compatible
query I rowsort label-3918
SELECT CAST ( + ( + 53 ) AS INTEGER ) * + COUNT ( * ) * + - 16 - - COUNT ( * )
----
-847

query I rowsort
SELECT ALL 84 + + 30
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3920
SELECT 53 - CAST( NULL AS SIGNED ) - - COUNT( * ) * + - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT 53 - CAST ( NULL AS INTEGER ) - - COUNT ( * ) * + - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3921
SELECT ALL + 12 + + - COUNT( * ) DIV - ( - COUNT( * ) ) + - 70 AS col0, 82 col1
----
-59
82

skipif mysql # not compatible
query II rowsort label-3921
SELECT ALL + 12 + + - COUNT ( * ) / - ( - COUNT ( * ) ) + - 70 AS col0, 82 col1
----
-59
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT ALL - ( + 42 ) DIV - + 32
----
1

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL - ( + 42 ) / - + 32
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL + - 78 + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL + - 78 + COUNT ( * )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT ALL - 57 * - 18 DIV 1
----
1026

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - 57 * - 18 / 1
----
1026

onlyif mysql # DIV for integer division: 
query I rowsort label-3925
SELECT + ( 61 ) DIV - - 91 + 0 * + COALESCE ( - 84, + 19 + - NULLIF ( 60, + NULLIF ( - AVG ( DISTINCT + 24 ), 8 ) ), - 54 + 91 * + 76 ) * - 77 - - 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3925
SELECT + ( 61 ) / - - 91 + 0 * + COALESCE ( - 84, + 19 + - NULLIF ( 60, + NULLIF ( - AVG ( DISTINCT + 24 ), 8 ) ), - 54 + 91 * + 76 ) * - 77 - - 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT - + NULLIF ( - COUNT( * ), + 16 + 96 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT - + NULLIF ( - COUNT ( * ), + 16 + 96 ) AS col0
----
1

query I rowsort
SELECT 76 * + 5 - + 36 col0
----
344

query I rowsort
SELECT + + ( 29 )
----
29

query I rowsort
SELECT 65 + + + 14 AS col2
----
79

query I rowsort
SELECT DISTINCT - + 90
----
-90

query I rowsort
SELECT ALL + 36 * 14 col0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT DISTINCT - - MIN( DISTINCT + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-3932
SELECT DISTINCT - - MIN ( DISTINCT + 38 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3933
SELECT ALL - - 23 DIV - + COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - - 23 / - + COUNT ( * ) AS col0
----
-23

query I rowsort
SELECT DISTINCT - ( - ( + 57 ) )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3935
SELECT 93 + + 66, + CAST( NULL AS SIGNED ) AS col0
----
159
NULL

skipif mysql # not compatible
query II rowsort label-3935
SELECT 93 + + 66, + CAST ( NULL AS INTEGER ) AS col0
----
159
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT 12 * + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-3936
SELECT 12 * + COUNT ( * )
----
12

query I rowsort
SELECT 48 * - 12 AS col2
----
-576

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3938
SELECT ALL - CAST( 99 AS SIGNED ) DIV + - 91
----
1

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL - CAST ( 99 AS INTEGER ) / + - 91
----
1

query I rowsort
SELECT 19 + + 15 + 39
----
73

query I rowsort
SELECT 96 * - + 69 + - + ( - - 46 ) col1
----
-6670

query I rowsort
SELECT 35 * + 89 * + 3
----
9345

query II rowsort
SELECT DISTINCT 8 AS col0, 30 * + - 94
----
8
-2820

query I rowsort
SELECT DISTINCT 26 * + 59
----
1534

query I rowsort
SELECT 54 - 29 AS col0
----
25

query I rowsort
SELECT ALL 20 + + 27
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT MAX( ALL + 53 ) - + 59
----
-6

skipif mysql # not compatible
query I rowsort label-3946
SELECT MAX ( ALL + 53 ) - + 59
----
-6

query I rowsort
SELECT DISTINCT - 6 * - 70 AS col1
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT 37 * + + 80 * 28 * + COALESCE ( - ( + + 38 ), - 36 + + 49 * + 97, SUM( DISTINCT 33 ) ) AS col0
----
-3149440

skipif mysql # not compatible
query I rowsort label-3948
SELECT 37 * + + 80 * 28 * + COALESCE ( - ( + + 38 ), - 36 + + 49 * + 97, SUM ( DISTINCT 33 ) ) AS col0
----
-3149440

query I rowsort
SELECT 73 + + 30 AS col2
----
103

query I rowsort
SELECT ALL 84 + 46
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT COUNT( DISTINCT - 88 ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3951
SELECT COUNT ( DISTINCT - 88 ) + - COUNT ( * ) AS col1
----
0

query II rowsort
SELECT 43 AS col2, + 11 AS col0
----
43
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT SUM( DISTINCT 72 ) - - 16 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3953
SELECT SUM ( DISTINCT 72 ) - - 16 AS col0
----
88

query I rowsort
SELECT ALL 78 * + + 21 AS col0
----
1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT ALL - 89 + + CAST( + 44 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - 89 + + CAST ( + 44 AS INTEGER ) AS col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3956
SELECT ALL + 34 + + ( - - NULLIF ( + 42, 17 / - 24 / + + 17 ) ) * - 44 + ( + - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ) AS col1, + 74 + + 21
----
-1814
95

skipif mysql # not compatible
query II rowsort label-3956
SELECT ALL + 34 + + ( - - NULLIF ( + 42, 17 / - 24 / + + 17 ) ) * - 44 + ( + - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col1, + 74 + + 21
----
-1814
95

query II rowsort
SELECT - 94 AS col0, - 8 + + 39 + + NULLIF ( 7, - - 93 ) * 81
----
-94
598

query I rowsort
SELECT ALL 76 + ( 7 ) AS col0
----
83

query I rowsort
SELECT - 46 * + + 91 AS col1
----
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL COUNT( * ) * + - 20 col0
----
-20

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL COUNT ( * ) * + - 20 col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3961
SELECT - COUNT( * ) AS col1, 49 AS col2
----
-1
49

skipif mysql # not compatible
query II rowsort label-3961
SELECT - COUNT ( * ) AS col1, 49 AS col2
----
-1
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT + 12 * 66 * 59 + - - 53 DIV + 12
----
46732

skipif mysql # not compatible
query I rowsort label-3962
SELECT + 12 * 66 * 59 + - - 53 / + 12
----
46732

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT + COUNT( * ) + + ( 15 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3963
SELECT + COUNT ( * ) + + ( 15 ) AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT CAST( + 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-3964
SELECT CAST ( + 94 AS INTEGER )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT + 39 DIV - + ( - 74 ) + - 24
----
-24

skipif mysql # not compatible
query I rowsort label-3965
SELECT + 39 / - + ( - 74 ) + - 24
----
-24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3966
SELECT ALL + CAST( + 94 AS SIGNED ) DIV - 24 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + CAST ( + 94 AS INTEGER ) / - 24 AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT ALL - 74 * - + 5 - - + CAST( - 38 AS SIGNED )
----
332

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL - 74 * - + 5 - - + CAST ( - 38 AS INTEGER )
----
332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3968
SELECT DISTINCT + + COUNT( * ) DIV - 76 + + - 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT + + COUNT ( * ) / - 76 + + - 31 AS col0
----
-31

query I rowsort
SELECT 60 + + 6 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT MAX( - - 73 ) * - 69 * - ( - + 11 ) AS col2
----
-55407

skipif mysql # not compatible
query I rowsort label-3970
SELECT MAX ( - - 73 ) * - 69 * - ( - + 11 ) AS col2
----
-55407

query I rowsort
SELECT - + 29 + + - 13 * - - 94 * - 26 + 66 + - + 61 AS col1
----
31748

query I rowsort
SELECT ALL + ( 35 ) AS col0
----
35

query I rowsort
SELECT - - 66 * - 46 + - + 7
----
-3043

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL + + MIN( ALL - + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + + MIN ( ALL - + 90 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3975
SELECT - 83 DIV - 2 + + 42 - - 28 col1
----
111

skipif mysql # not compatible
query I rowsort label-3975
SELECT - 83 / - 2 + + 42 - - 28 col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL + 63 * - - 58 + - + COUNT( * )
----
3653

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL + 63 * - - 58 + - + COUNT ( * )
----
3653

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT COUNT( * ) * 0 * + + 60
----
0

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT COUNT ( * ) * 0 * + + 60
----
0

query I rowsort
SELECT ALL + 65 + - 24
----
41

query I rowsort
SELECT ALL - 38 + + + 78 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT - 26 + 59 * + 20 * - - MIN( ALL 87 ) AS col0
----
102634

skipif mysql # not compatible
query I rowsort label-3980
SELECT - 26 + 59 * + 20 * - - MIN ( ALL 87 ) AS col0
----
102634

query I rowsort
SELECT - NULLIF ( - 15, + 70 + - 58 ) + - ( + + 50 ) AS col0
----
-35

query I rowsort
SELECT ALL + 65 + + 33 * 42 * + 40
----
55505

onlyif mysql # aggregate syntax: 
query II rowsort label-3983
SELECT + COUNT( * ) * COUNT( ALL - 76 ) * 33 AS col0, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-3983
SELECT + COUNT ( * ) * COUNT ( ALL - 76 ) * 33 AS col0, COUNT ( * )
----
33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT - 79 * - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3984
SELECT - 79 * - COUNT ( * )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3985
SELECT ALL - 2 + - - 26 + + 94 DIV - - CAST( - 79 AS SIGNED ) + - COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL - 2 + - - 26 + + 94 / - - CAST ( - 79 AS INTEGER ) + - COUNT ( * ) AS col2
----
22

query I rowsort
SELECT DISTINCT + 47 + 87 AS col0
----
134

query I rowsort
SELECT ALL NULLIF ( - 44, - 24 )
----
-44

query I rowsort
SELECT ALL + 29 * 92
----
2668

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3989
SELECT 21 col2, - CAST( NULL AS SIGNED ) col1, + - 46
----
21
NULL
-46

skipif mysql # not compatible
query III rowsort label-3989
SELECT 21 col2, - CAST ( NULL AS INTEGER ) col1, + - 46
----
21
NULL
-46

query I rowsort
SELECT - 43 * 68 AS col2
----
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL - 2 + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL - 2 + + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT + 48 * - ( - 44 ) * - + COUNT( * )
----
-2112

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT + 48 * - ( - 44 ) * - + COUNT ( * )
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL NULLIF ( + 53, + + COUNT( * ) / - 31 ) - - - 37 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL NULLIF ( + 53, + + COUNT ( * ) / - 31 ) - - - 37 AS col2
----
16

query II rowsort
SELECT DISTINCT - 75 * - 37, 55 col0
----
2775
55

onlyif mysql # aggregate syntax: 
query III rowsort label-3995
SELECT - 66, COUNT( * ) col0, ( + 23 ) + + 69 AS col0
----
-66
1
92

skipif mysql # not compatible
query III rowsort label-3995
SELECT - 66, COUNT ( * ) col0, ( + 23 ) + + 69 AS col0
----
-66
1
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3996
SELECT + + COUNT( * ) + + COALESCE ( - 23, - + 30, - 72 ) + - + 20 AS col0, ( + 96 ) + + 96 * COUNT( * )
----
-42
192

skipif mysql # not compatible
query II rowsort label-3996
SELECT + + COUNT ( * ) + + COALESCE ( - 23, - + 30, - 72 ) + - + 20 AS col0, ( + 96 ) + + 96 * COUNT ( * )
----
-42
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL - 71 - - COALESCE ( 34, - + NULLIF ( - SUM( 97 ), + 87 ), + - 3, 28 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL - 71 - - COALESCE ( 34, - + NULLIF ( - SUM ( 97 ), + 87 ), + - 3, 28 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT ALL - MIN( DISTINCT 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL - MIN ( DISTINCT 85 ) AS col0
----
-85

query I rowsort
SELECT - + 91 - 98 + - + 18 * + 70 AS col0
----
-1449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT + + ( + COUNT( * ) ) * CASE 95 WHEN - 89 THEN 99 * COALESCE ( - - COUNT( * ), + 58 * - - COALESCE ( - 38, + 12 ) + + + 47 ) + - + NULLIF ( + 56, ( 79 ) * + CAST( 5 AS SIGNED ) / - + 43 * + - AVG ( DISTINCT 11 ) - + 21 ) + - 24 WHEN + + 38 * + + 84 + + 60 - - 47 + + + 27 * + SUM( + 31 ) / - 84 + - 17 THEN - 77 * + ( - 62 ) WHEN 51 + + 42 THEN + 30 / 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT + + ( + COUNT ( * ) ) * CASE 95 WHEN - 89 THEN 99 * COALESCE ( - - COUNT ( * ), + 58 * - - COALESCE ( - 38, + 12 ) + + + 47 ) + - + NULLIF ( + 56, ( 79 ) * + CAST ( 5 AS INTEGER ) / - + 43 * + - AVG ( DISTINCT 11 ) - + 21 ) + - 24 WHEN + + 38 * + + 84 + + 60 - - 47 + + + 27 * + SUM ( + 31 ) / - 84 + - 17 THEN - 77 * + ( - 62 ) WHEN 51 + + 42 THEN + 30 / 13 END
----
NULL

query III rowsort
SELECT ALL + 62 AS col2, + ( 67 ) - 6, 49 AS col2
----
62
61
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT DISTINCT + COALESCE ( + CAST( NULL AS SIGNED ), - + COUNT( * ) ) * - + 59 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) * - + 59 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL + SUM( ALL + + 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL + SUM ( ALL + + 38 ) AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT DISTINCT + CAST( - - 51 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT + CAST ( - - 51 AS INTEGER ) AS col0
----
51

query II rowsort
SELECT + 51 AS col1, NULLIF ( + 44, + ( + + 45 ) + - 72 ) AS col2
----
51
44

query I rowsort
SELECT + 73 - 74 + + - 36 * 0 * - 39 - - - 54 + ( - 27 )
----
-82

query I rowsort
SELECT - - 64 * + 17 + + + 98
----
1186

query I rowsort
SELECT ALL - 53 * - ( 49 ) AS col2
----
2597

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT - COUNT( * ) - - COUNT( ALL - 83 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4009
SELECT - COUNT ( * ) - - COUNT ( ALL - 83 ) AS col0
----
0

query I rowsort
SELECT + - ( + 23 )
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-4011
SELECT + - 9 DIV - + 50 AS col0, + 64
----
0
64

skipif mysql # not compatible
query II rowsort label-4011
SELECT + - 9 / - + 50 AS col0, + 64
----
0
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT ALL + - COUNT( * ) * 69 + + CAST( 45 AS SIGNED ) + + 70 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL + - COUNT ( * ) * 69 + + CAST ( 45 AS INTEGER ) + + 70 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT + COUNT( * ) * + ( + - 21 ) + + + 62 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4013
SELECT + COUNT ( * ) * + ( + - 21 ) + + + 62 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT + 57 * - + MAX( DISTINCT 9 )
----
-513

skipif mysql # not compatible
query I rowsort label-4014
SELECT + 57 * - + MAX ( DISTINCT 9 )
----
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ( + SUM( DISTINCT + + 12 ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4015
SELECT ( + SUM ( DISTINCT + + 12 ) ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL 59 * - ( NULLIF ( + 46, COUNT( * ) ) ) * - + MAX( DISTINCT + 42 ) + + 64
----
114052

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL 59 * - ( NULLIF ( + 46, COUNT ( * ) ) ) * - + MAX ( DISTINCT + 42 ) + + 64
----
114052

query I rowsort
SELECT + 50 * + - 41 AS col2
----
-2050

query I rowsort
SELECT + 97 + - + 27 + 2 AS col1
----
72

query I rowsort
SELECT + ( 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT + MAX( + + 17 ) + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-4020
SELECT + MAX ( + + 17 ) + + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT - ( SUM( DISTINCT 17 ) ) * - MAX( + 18 ) * + + 96
----
29376

skipif mysql # not compatible
query I rowsort label-4021
SELECT - ( SUM ( DISTINCT 17 ) ) * - MAX ( + 18 ) * + + 96
----
29376

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL 2 * - + NULLIF ( - ( 60 ), - + COUNT( * ) / + - 29 )
----
120

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL 2 * - + NULLIF ( - ( 60 ), - + COUNT ( * ) / + - 29 )
----
120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4023
SELECT ALL + 27 * - ( - 19 ) + - CAST( 47 AS SIGNED ) DIV - 1 AS col2
----
560

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL + 27 * - ( - 19 ) + - CAST ( 47 AS INTEGER ) / - 1 AS col2
----
560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4024
SELECT + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + NULLIF ( COUNT( * ), - - 50 * + 68 ) + 99
----
100

skipif mysql # not compatible
query I rowsort label-4025
SELECT + NULLIF ( COUNT ( * ), - - 50 * + 68 ) + 99
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4026
SELECT + ( 26 ) * MAX( - - 70 ) - - CAST( - AVG ( DISTINCT ( + 76 ) ) AS SIGNED )
----
1744

skipif mysql # not compatible
query I rowsort label-4026
SELECT + ( 26 ) * MAX ( - - 70 ) - - CAST ( - AVG ( DISTINCT ( + 76 ) ) AS INTEGER )
----
1744

onlyif mysql # aggregate syntax: 
query II rowsort label-4027
SELECT - COUNT( * ) - + - 0, 10 * - + 98 AS col0
----
-1
-980

skipif mysql # not compatible
query II rowsort label-4027
SELECT - COUNT ( * ) - + - 0, 10 * - + 98 AS col0
----
-1
-980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4028
SELECT ALL ( + NULLIF ( CAST( SUM( - 39 ) AS SIGNED ), + COUNT( * ) * 9 * - 57 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL ( + NULLIF ( CAST ( SUM ( - 39 ) AS INTEGER ), + COUNT ( * ) * 9 * - 57 ) )
----
-39

query I rowsort
SELECT DISTINCT NULLIF ( - 4, - - 22 ) AS col1
----
-4

query I rowsort
SELECT + ( + COALESCE ( + - 16, 21, - 71 ) ) * 54 AS col1
----
-864

query I rowsort
SELECT - + 6 + + 20 AS col2
----
14

query I rowsort
SELECT ALL - - 5 - + 81
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT - 94 + + COUNT( ALL - 64 ) + + 21
----
-72

skipif mysql # not compatible
query I rowsort label-4033
SELECT - 94 + + COUNT ( ALL - 64 ) + + 21
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4034
SELECT - 64 DIV 59 AS col2, COUNT( * ) col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-4034
SELECT - 64 / 59 AS col2, COUNT ( * ) col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT ALL - COUNT( * ) * - - 92 * - + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL - COUNT ( * ) * - - 92 * - + COUNT ( * )
----
92

query I rowsort
SELECT - + 3 * + 60
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT - COUNT( * ) + COUNT( * ) + 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4037
SELECT - COUNT ( * ) + COUNT ( * ) + 61 AS col0
----
61

query I rowsort
SELECT DISTINCT - 76 * 59 + + 20 * + + 9
----
-4304

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT + COUNT( * ) * - 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + COUNT ( * ) * - 98 AS col0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT - + 54 DIV + 21
----
-2

skipif mysql # not compatible
query I rowsort label-4040
SELECT - + 54 / + 21
----
-2

query II rowsort
SELECT 89 * - 81 AS col0, + 86 AS col2
----
-7209
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL - NULLIF ( + 74, + 83 * - ( + COUNT( * ) ) ) + + 98 * + 98 AS col1
----
9530

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - NULLIF ( + 74, + 83 * - ( + COUNT ( * ) ) ) + + 98 * + 98 AS col1
----
9530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT 22 + + CAST( + 2 AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4043
SELECT 22 + + CAST ( + 2 AS INTEGER ) AS col0
----
24

query I rowsort
SELECT ALL - 22 + 40 col1
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4045
SELECT ALL + NULLIF ( + - 74, - 3 ) + - 84 / - 79 * - CAST( NULL AS DECIMAL ) * - - 19 + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL + NULLIF ( + - 74, - 3 ) + - 84 / - 79 * - CAST ( NULL AS REAL ) * - - 19 + 12
----
NULL

query I rowsort
SELECT DISTINCT - - 25
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4047
SELECT 65 DIV - - 84 + COALESCE ( 49, - ( - - COUNT( * ) ), - COUNT( DISTINCT - + 86 ) * 40 * + 55 + COUNT( * ) - + 48 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4047
SELECT 65 / - - 84 + COALESCE ( 49, - ( - - COUNT ( * ) ), - COUNT ( DISTINCT - + 86 ) * 40 * + 55 + COUNT ( * ) - + 48 ) AS col1
----
49

query II rowsort
SELECT 54 AS col0, - 69
----
54
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT + 11 * 2 + - COALESCE ( 95, - 56 + SUM( ALL - 19 ) * + 54 + - MIN( + 26 ) ) * COUNT( * ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4049
SELECT + 11 * 2 + - COALESCE ( 95, - 56 + SUM ( ALL - 19 ) * + 54 + - MIN ( + 26 ) ) * COUNT ( * ) AS col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT DISTINCT 67 * 27 DIV - 18
----
-100

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT 67 * 27 / - 18
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-4051
SELECT 40, - COUNT( * ) * 57 + 81 AS col0
----
40
24

skipif mysql # not compatible
query II rowsort label-4051
SELECT 40, - COUNT ( * ) * 57 + 81 AS col0
----
40
24

query II rowsort
SELECT ALL - 27 AS col1, + 87 AS col1
----
-27
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4053
SELECT 54 AS col1, COUNT( * ) AS col2
----
54
1

skipif mysql # not compatible
query II rowsort label-4053
SELECT 54 AS col1, COUNT ( * ) AS col2
----
54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT DISTINCT - 47 * - MIN( DISTINCT + 37 ) AS col0
----
1739

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT - 47 * - MIN ( DISTINCT + 37 ) AS col0
----
1739

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT ALL 55 - + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL 55 - + COUNT ( * )
----
54

query II rowsort
SELECT ALL - 17, 15 + + 42 AS col0
----
-17
57

query II rowsort
SELECT ( - 64 ) * + 24 + - 93, 77 * - 6 + + 10 col0
----
-1629
-452

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL - MIN( 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL - MIN ( 35 )
----
-35

query I rowsort
SELECT ALL 19 - - + 99
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT CASE + MAX( ALL + + 17 ) WHEN + NULLIF ( - NULLIF ( 97, - + 80 ), + 20 ) + - NULLIF ( 6, + - COUNT( ALL 6 ) - - + 2 * - 88 ) * + ( - 69 ) THEN NULL WHEN + - CAST( - MAX( - 98 ) AS SIGNED ) + - 25 + COUNT( * ) THEN - - 74 * + COALESCE ( + - 28, + - 14 * - + 20 ) * - MAX( ALL - - 72 ) * + COALESCE ( - 90, - ( - 27 ) + - + CAST( NULL AS SIGNED ) ) END * - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT CASE + MAX ( ALL + + 17 ) WHEN + NULLIF ( - NULLIF ( 97, - + 80 ), + 20 ) + - NULLIF ( 6, + - COUNT ( ALL 6 ) - - + 2 * - 88 ) * + ( - 69 ) THEN NULL WHEN + - CAST ( - MAX ( - 98 ) AS INTEGER ) + - 25 + COUNT ( * ) THEN - - 74 * + COALESCE ( + - 28, + - 14 * - + 20 ) * - MAX ( ALL - - 72 ) * + COALESCE ( - 90, - ( - 27 ) + - + CAST ( NULL AS INTEGER ) ) END * - 98 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4061
SELECT + 79 AS col2, - 26 DIV + 26 AS col0
----
79
-1

skipif mysql # not compatible
query II rowsort label-4061
SELECT + 79 AS col2, - 26 / + 26 AS col0
----
79
-1

query I rowsort
SELECT - - NULLIF ( + 8, - - 96 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4063
SELECT + COUNT( * ), + CAST( NULL AS SIGNED ) * MIN( ALL CAST( NULL AS SIGNED ) ) + 42 + + AVG ( DISTINCT + 10 ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4063
SELECT + COUNT ( * ), + CAST ( NULL AS INTEGER ) * MIN ( ALL CAST ( NULL AS INTEGER ) ) + 42 + + AVG ( DISTINCT + 10 ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL - SUM( + - 88 ) * 11 * - 22 col2
----
-21296

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - SUM ( + - 88 ) * 11 * - 22 col2
----
-21296

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4065
SELECT DISTINCT 57 AS col0, - CASE - 92 WHEN - ( - - CAST( + 26 AS SIGNED ) ) + + + ( 17 ) THEN NULL WHEN + 23 THEN NULL ELSE 43 END col2
----
57
-43

skipif mysql # not compatible
query II rowsort label-4065
SELECT DISTINCT 57 AS col0, - CASE - 92 WHEN - ( - - CAST ( + 26 AS INTEGER ) ) + + + ( 17 ) THEN NULL WHEN + 23 THEN NULL ELSE 43 END col2
----
57
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4066
SELECT ALL COUNT( * ), + ( 53 ) AS col2
----
1
53

skipif mysql # not compatible
query II rowsort label-4066
SELECT ALL COUNT ( * ), + ( 53 ) AS col2
----
1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL - COUNT( * ) + - 51 col1
----
-52

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL - COUNT ( * ) + - 51 col1
----
-52

query II rowsort
SELECT ALL 85, 51 AS col2
----
85
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4069
SELECT MAX( DISTINCT - 54 ) + 42 + - 37 + 18 + COUNT( * ) * 67 * CAST( NULL AS SIGNED ) / + 6 + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT MAX ( DISTINCT - 54 ) + 42 + - 37 + 18 + COUNT ( * ) * 67 * CAST ( NULL AS INTEGER ) / + 6 + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT DISTINCT 7 + + COALESCE ( + + SUM( 99 ), 19 ) * 88 AS col0
----
8719

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT 7 + + COALESCE ( + + SUM ( 99 ), 19 ) * 88 AS col0
----
8719

query II rowsort
SELECT 27, - 31 col0
----
27
-31

query I rowsort
SELECT - 51 + + 55
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT 27 * + + 83 * + + 44 * ( - MIN( + + 39 ) ) * - 66 AS col0
----
253806696

skipif mysql # not compatible
query I rowsort label-4073
SELECT 27 * + + 83 * + + 44 * ( - MIN ( + + 39 ) ) * - 66 AS col0
----
253806696

onlyif mysql # DIV for integer division: 
query II rowsort label-4074
SELECT DISTINCT 92 AS col1, - 64 DIV - 27
----
92
2

skipif mysql # not compatible
query II rowsort label-4074
SELECT DISTINCT 92 AS col1, - 64 / - 27
----
92
2

query I rowsort
SELECT ALL - 37 + - 78 * 94 - + 76
----
-7445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT 45 * ( + CAST( NULL AS SIGNED ) ) / - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT 45 * ( + CAST ( NULL AS INTEGER ) ) / - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT - 8 - - + SUM( DISTINCT - 63 )
----
-71

skipif mysql # not compatible
query I rowsort label-4077
SELECT - 8 - - + SUM ( DISTINCT - 63 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT COUNT( * ) + 50 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4078
SELECT COUNT ( * ) + 50 AS col1
----
51

query I rowsort
SELECT ALL + - 9 * - 55 - 44
----
451

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT - SUM( ALL - 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT - SUM ( ALL - 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4081
SELECT + 58 * - 38 * + - 51 AS col2, + COUNT( * ) * + 94 * COUNT( * ) AS col0
----
112404
94

skipif mysql # not compatible
query II rowsort label-4081
SELECT + 58 * - 38 * + - 51 AS col2, + COUNT ( * ) * + 94 * COUNT ( * ) AS col0
----
112404
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4082
SELECT 63 DIV - CAST( 95 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4082
SELECT 63 / - CAST ( 95 AS INTEGER ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL - COUNT( * ) + 40
----
39

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL - COUNT ( * ) + 40
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4084
SELECT ALL + 79 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + 79 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT 44 - - - CASE - 83 WHEN 51 + COUNT( * ) THEN NULL ELSE - 35 * 84 - + + 53 END AS col1
----
3037

skipif mysql # not compatible
query I rowsort label-4085
SELECT 44 - - - CASE - 83 WHEN 51 + COUNT ( * ) THEN NULL ELSE - 35 * 84 - + + 53 END AS col1
----
3037

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL - COALESCE ( - 8, + - COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL - COALESCE ( - 8, + - COUNT ( * ) )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4087
SELECT MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ALL - 34 - + - COUNT( + 84 ) + 65 + - 61 * + ( 24 ) * + + 46 * - + 49
----
3299888

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL - 34 - + - COUNT ( + 84 ) + 65 + - 61 * + ( 24 ) * + + 46 * - + 49
----
3299888

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT 14 * COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT 14 * COUNT ( * )
----
14

query I rowsort
SELECT 82 * - 37
----
-3034

onlyif mysql # aggregate syntax: 
query II rowsort label-4091
SELECT DISTINCT 49 * + + COUNT( * ), 22 * + 37 AS col2
----
49
814

skipif mysql # not compatible
query II rowsort label-4091
SELECT DISTINCT 49 * + + COUNT ( * ), 22 * + 37 AS col2
----
49
814

query I rowsort
SELECT 62 + 39
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-4093
SELECT ALL - ( + + COUNT( * ) ), 7 AS col2
----
-1
7

skipif mysql # not compatible
query II rowsort label-4093
SELECT ALL - ( + + COUNT ( * ) ), 7 AS col2
----
-1
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4094
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS DECIMAL ) * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS REAL ) * + 23
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT 72 + - 16 DIV + ( - - COUNT( * ) ) - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-4095
SELECT 72 + - 16 / + ( - - COUNT ( * ) ) - COUNT ( * )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT 14 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4096
SELECT 14 / 79 AS col0
----
0

query I rowsort
SELECT DISTINCT 13 * + + 21 * + 26 AS col1
----
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT SUM( + 55 ) + + 46 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-4098
SELECT SUM ( + 55 ) + + 46 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT COALESCE ( 36, - COUNT( 89 ) ) * COUNT( * ) - - 29 + - - NULLIF ( + NULLIF ( COUNT( DISTINCT - 39 ), - NULLIF ( + 94, - - 8 ) * - 27 + 35 * 7 ), - 29 + + COUNT( * ) ) + + + 27 + + - 76 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4099
SELECT COALESCE ( 36, - COUNT ( 89 ) ) * COUNT ( * ) - - 29 + - - NULLIF ( + NULLIF ( COUNT ( DISTINCT - 39 ), - NULLIF ( + 94, - - 8 ) * - 27 + 35 * 7 ), - 29 + + COUNT ( * ) ) + + + 27 + + - 76 AS col0
----
17

query I rowsort
SELECT ALL - + 16 AS col1
----
-16

query I rowsort
SELECT DISTINCT - - 55 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT COUNT( * ) + ( + 79 )
----
80

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT COUNT ( * ) + ( + 79 )
----
80

query I rowsort
SELECT DISTINCT - 31 col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4104
SELECT + COUNT( * ) + - 18 + + - ( - COUNT( * ) ) + - - 5 * + - 86 * 32 + + + 45 DIV 90 * - 57 * + 84 AS col0
----
-13776

skipif mysql # not compatible
query I rowsort label-4104
SELECT + COUNT ( * ) + - 18 + + - ( - COUNT ( * ) ) + - - 5 * + - 86 * 32 + + + 45 / 90 * - 57 * + 84 AS col0
----
-13776

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - MAX( DISTINCT + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4105
SELECT - MAX ( DISTINCT + 44 )
----
-44

query I rowsort
SELECT + - 46 * - 52 AS col1
----
2392

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL + 66 + MIN( + 36 ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL + 66 + MIN ( + 36 ) AS col0
----
102

query II rowsort
SELECT ALL + 7 + + 6 + 14 * 28, - 13 AS col1
----
405
-13

query I rowsort
SELECT + 1 * - - 71
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4110
SELECT + - 27 + COALESCE ( 0, - 65, + 73 + + 95 - - + 36 - + ( - + 33 ) * + + 73 * - 80 * COALESCE ( + + 84, - 39 * + 47 DIV + 30, + CASE + + 77 WHEN 46 + + 25 * - 88 * - 82 DIV + 44 THEN NULL WHEN - COALESCE ( - 60, + 58 + - 49, - 43 * 1 ) * - 50 * + + 43 THEN + + 66 * + COUNT( * ) + + + 53 END, ( 91 ) DIV 71 ) * MIN( 80 ) ) + 18 DIV ( 61 )
----
-27

skipif mysql # not compatible
query I rowsort label-4110
SELECT + - 27 + COALESCE ( 0, - 65, + 73 + + 95 - - + 36 - + ( - + 33 ) * + + 73 * - 80 * COALESCE ( + + 84, - 39 * + 47 / + 30, + CASE + + 77 WHEN 46 + + 25 * - 88 * - 82 / + 44 THEN NULL WHEN - COALESCE ( - 60, + 58 + - 49, - 43 * 1 ) * - 50 * + + 43 THEN + + 66 * + COUNT ( * ) + + + 53 END, ( 91 ) / 71 ) * MIN ( 80 ) ) + 18 / ( 61 )
----
-27

query I rowsort
SELECT ALL - ( 23 ) AS col1
----
-23

query I rowsort
SELECT DISTINCT + 72 + - 77 + + 88 AS col2
----
83

query I rowsort
SELECT DISTINCT + 14 + + 64 + - 74 col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4114
SELECT + CAST( - COUNT( * ) AS SIGNED ) + 74
----
73

skipif mysql # not compatible
query I rowsort label-4114
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + 74
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4115
SELECT - 56 + - 20 - + - 62 + CASE + 67 WHEN 16 * - 13 / CAST( NULL AS DECIMAL ) * - ( + - COUNT( * ) ) THEN 42 WHEN - 89 * - - 96 + - + 87 THEN NULL ELSE COUNT( * ) END * + - 83 * 9 - + CAST( NULL AS SIGNED ) + 86 / 26 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT - 56 + - 20 - + - 62 + CASE + 67 WHEN 16 * - 13 / CAST ( NULL AS REAL ) * - ( + - COUNT ( * ) ) THEN 42 WHEN - 89 * - - 96 + - + 87 THEN NULL ELSE COUNT ( * ) END * + - 83 * 9 - + CAST ( NULL AS INTEGER ) + 86 / 26 + + COUNT ( * )
----
NULL

query I rowsort
SELECT - - 31 col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT + 15 + + + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4117
SELECT + 15 + + + COUNT ( * ) AS col2
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-4118
SELECT 79 AS col1, 3 DIV + COALESCE ( + 23, + + 20 DIV NULLIF ( + 59, + 43 ) + - 91, + 11 + 56 + - + 48 + - 43 ) * 33 AS col2
----
79
0

skipif mysql # not compatible
query II rowsort label-4118
SELECT 79 AS col1, 3 / + COALESCE ( + 23, + + 20 / NULLIF ( + 59, + 43 ) + - 91, + 11 + 56 + - + 48 + - 43 ) * 33 AS col2
----
79
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4119
SELECT + 91 + 58 + + CAST( - - 62 AS SIGNED ) + - 27 * 94 * 54 AS col1
----
-136841

skipif mysql # not compatible
query I rowsort label-4119
SELECT + 91 + 58 + + CAST ( - - 62 AS INTEGER ) + - 27 * 94 * 54 AS col1
----
-136841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4120
SELECT - 97 - COUNT( * ) + - - CAST( - 38 AS SIGNED ) * 14 + - - 57 + 94
----
-479

skipif mysql # not compatible
query I rowsort label-4120
SELECT - 97 - COUNT ( * ) + - - CAST ( - 38 AS INTEGER ) * 14 + - - 57 + 94
----
-479

query I rowsort
SELECT ALL 28 * 82 * + 25 - + 90 AS col1
----
57310

onlyif mysql # DIV for integer division: 
query I rowsort label-4122
SELECT DISTINCT 91 DIV - 41
----
-2

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT 91 / - 41
----
-2

query I rowsort
SELECT - NULLIF ( + 60, - 15 ) * + - 33 AS col2
----
1980

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4124
SELECT + 53 DIV 74 + + 4, 61 * + - 10 * COUNT( * ) + + + 85 col2
----
4
-525

skipif mysql # not compatible
query II rowsort label-4124
SELECT + 53 / 74 + + 4, 61 * + - 10 * COUNT ( * ) + + + 85 col2
----
4
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL 43 * COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL 43 * COUNT ( * )
----
43

query I rowsort
SELECT + ( + 60 )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4127
SELECT - 14 + + + 42 * COUNT( * ) * + ( + + 39 ), - 84 * + COALESCE ( 86, 45 + + ( + 20 ) ) AS col0
----
1624
-7224

skipif mysql # not compatible
query II rowsort label-4127
SELECT - 14 + + + 42 * COUNT ( * ) * + ( + + 39 ), - 84 * + COALESCE ( 86, 45 + + ( + 20 ) ) AS col0
----
1624
-7224

query I rowsort
SELECT + 25 * + 20
----
500

query I rowsort
SELECT DISTINCT - 30 * ( 42 )
----
-1260

query I rowsort
SELECT 48 * + - 65 + 81 col1
----
-3039

query I rowsort
SELECT COALESCE ( 19, + CASE + - 33 WHEN + 28 * - 60 + + 3 / + - 1 / - 56 THEN 44 ELSE - 23 END ) AS col2
----
19

query I rowsort
SELECT COALESCE ( + 94, - 28, - 76 * - 24 )
----
94

query I rowsort
SELECT DISTINCT + 75 * + - COALESCE ( + 76, 71 ) * 77 * + 46 * - 41 + 20
----
827765420

query I rowsort
SELECT ALL - 39 * + 77 + + 51
----
-2952

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + SUM( DISTINCT - 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4135
SELECT + SUM ( DISTINCT - 48 ) AS col0
----
-48

query I rowsort
SELECT ALL + COALESCE ( - + 60, + + 92 ) AS col0
----
-60

query I rowsort
SELECT - - 92 * 70 + + 66
----
6506

query I rowsort
SELECT ALL + 2 * - 10 + + 45
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4139
SELECT - - CAST( NULL AS SIGNED ) * + 30 + + CAST( NULL AS SIGNED ) - - COUNT( * ) * 2 + + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT - - CAST ( NULL AS INTEGER ) * + 30 + + CAST ( NULL AS INTEGER ) - - COUNT ( * ) * 2 + + 54 AS col2
----
NULL

query I rowsort
SELECT + 46 * + 48
----
2208

query II rowsort
SELECT ALL - 34 * ( + 70 ) * + ( + + 36 ) col2, 82 * - - ( - 14 ) AS col1
----
-85680
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + 13 * - - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-4142
SELECT + 13 * - - COUNT ( * )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT ALL - 54 DIV - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL - 54 / - 81 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4144
SELECT ALL 57 - 0 * - CAST( NULL AS SIGNED ) AS col1, 18 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4144
SELECT ALL 57 - 0 * - CAST ( NULL AS INTEGER ) AS col1, 18 AS col2
----
NULL
18

query I rowsort
SELECT + - 90 - 9 AS col1
----
-99

query II rowsort
SELECT ALL NULLIF ( - 12, 73 ), + 99 * 45 AS col2
----
-12
4455

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT + + 15 DIV + 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-4147
SELECT + + 15 / + 84 col1
----
0

query I rowsort
SELECT - - 4 * + 42 AS col1
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT + CAST( 29 AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4149
SELECT + CAST ( 29 AS INTEGER ) AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT - CAST( 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-4150
SELECT - CAST ( 3 AS INTEGER )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4151
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + 39 AS col2
----
NULL
39

skipif mysql # not compatible
query II rowsort label-4151
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 39 AS col2
----
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT + COUNT( * ) * - COUNT( DISTINCT - 57 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4152
SELECT + COUNT ( * ) * - COUNT ( DISTINCT - 57 ) AS col0
----
-1

query I rowsort
SELECT ALL 50 * - NULLIF ( + 77, + - 58 ) AS col0
----
-3850

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT MIN( DISTINCT - 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT MIN ( DISTINCT - 16 ) AS col2
----
-16

query I rowsort
SELECT ALL COALESCE ( + 13, + - ( + + 83 ) - - 44 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL 2 * MAX( DISTINCT ( 93 ) ) col1
----
186

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL 2 * MAX ( DISTINCT ( 93 ) ) col1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT + COUNT( * ) * + - ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4157
SELECT + COUNT ( * ) * + - ( - - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4158
SELECT + CAST( + - 97 AS SIGNED ) AS col0, 93 * - 98 AS col2
----
-97
-9114

skipif mysql # not compatible
query II rowsort label-4158
SELECT + CAST ( + - 97 AS INTEGER ) AS col0, 93 * - 98 AS col2
----
-97
-9114

query II rowsort
SELECT DISTINCT + 40, 65 AS col1
----
40
65

query II rowsort
SELECT ALL + 43 AS col2, + 15 + + 22 * + - 94 AS col2
----
43
-2053

query I rowsort
SELECT + 2 - - 17
----
19

query I rowsort
SELECT + ( + 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT + COUNT( * ) * 80 - + 78
----
2

skipif mysql # not compatible
query I rowsort label-4163
SELECT + COUNT ( * ) * 80 - + 78
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT DISTINCT 73 DIV - + 45 + + 91 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT 73 / - + 45 + + 91 AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT ALL + 53 * 74 DIV + 67
----
58

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + 53 * 74 / + 67
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4166
SELECT ALL COUNT( * ) DIV - ( - + CASE MAX( DISTINCT - - 38 ) WHEN - 20 THEN NULL WHEN + 45 THEN + MAX( COALESCE ( + 82, 5, + 89 ) ) ELSE + - 16 END ) + 63
----
63

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL COUNT ( * ) / - ( - + CASE MAX ( DISTINCT - - 38 ) WHEN - 20 THEN NULL WHEN + 45 THEN + MAX ( COALESCE ( + 82, 5, + 89 ) ) ELSE + - 16 END ) + 63
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT DISTINCT 16 DIV - + 2 + - 89 DIV - + 93
----
-8

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT 16 / - + 2 + - 89 / - + 93
----
-8

query II rowsort
SELECT ALL - 81 + - + 94 AS col0, + 12
----
-175
12

query I rowsort
SELECT 23 - - 26
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL - MIN( DISTINCT - + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - MIN ( DISTINCT - + 68 ) AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4171
SELECT + ( - 54 ) DIV + 11 + - 69 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4171
SELECT + ( - 54 ) / + 11 + - 69 AS col0
----
-73

query I rowsort
SELECT 74 * + 27 AS col2
----
1998

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT + 38 + + - 27 * - ( - MAX( - - 63 ) ) * - COUNT( * )
----
1739

skipif mysql # not compatible
query I rowsort label-4173
SELECT + 38 + + - 27 * - ( - MAX ( - - 63 ) ) * - COUNT ( * )
----
1739

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT COUNT( * ) * 42 + - ( + NULLIF ( ( + + 50 ), 2 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-4174
SELECT COUNT ( * ) * 42 + - ( + NULLIF ( ( + + 50 ), 2 ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT + CASE + + 3 WHEN + - 51 THEN - COUNT( * ) + - - 58 - - COALESCE ( 90, 80 ) + - COUNT( * ) + - + 90 + + 43 + - COUNT( * ) / ( + 91 ) * - 77 ELSE + + 83 + + CASE + + 25 WHEN + 8 / + 92 - MAX( + + ( - 9 ) ) + - 54 + 83 * - COUNT( * ) + - 78 + 21 * + + COUNT( * ) + 78 - + + 7 + + - 90 * + + COUNT( * ) THEN - 69 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT + CASE + + 3 WHEN + - 51 THEN - COUNT ( * ) + - - 58 - - COALESCE ( 90, 80 ) + - COUNT ( * ) + - + 90 + + 43 + - COUNT ( * ) / ( + 91 ) * - 77 ELSE + + 83 + + CASE + + 25 WHEN + 8 / + 92 - MAX ( + + ( - 9 ) ) + - 54 + 83 * - COUNT ( * ) + - 78 + 21 * + + COUNT ( * ) + 78 - + + 7 + + - 90 * + + COUNT ( * ) THEN - 69 END END
----
NULL

query II rowsort
SELECT - ( 30 ) * - + 88 + - CASE - + NULLIF ( 29, - 26 ) WHEN ( + 38 ) THEN + 70 - - - 10 * + + 23 END col0, 20 * - 71 col2
----
NULL
-1420

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT + - ( + - ( - COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4177
SELECT + - ( + - ( - COUNT ( * ) ) ) AS col0
----
-1

query I rowsort
SELECT - 88 + + - 14
----
-102

query I rowsort
SELECT DISTINCT + 47 - + 6 col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4180
SELECT + COUNT( * ) + + - 33 - - 90 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT + COUNT ( * ) + + - 33 - - 90 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + 94 AS col0, + 66 AS col1
----
94
66

query I rowsort
SELECT + 38 + + - 60 + + NULLIF ( + 93, + + 52 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL + 64 * SUM( + 67 ) * 37 col1
----
158656

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL + 64 * SUM ( + 67 ) * 37 col1
----
158656

query I rowsort
SELECT 58 * + 75 * 78 * - 41 + - 41 AS col1
----
-13911341

query I rowsort
SELECT + 86 + - 34 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4186
SELECT DISTINCT + - 61 - - MIN( ALL 49 ) + + SUM( DISTINCT - 18 ) DIV - - 88
----
-12

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT + - 61 - - MIN ( ALL 49 ) + + SUM ( DISTINCT - 18 ) / - - 88
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT 82 * 36 DIV - - 80
----
36

skipif mysql # not compatible
query I rowsort label-4187
SELECT 82 * 36 / - - 80
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT MAX( ALL 30 ) - - 6
----
36

skipif mysql # not compatible
query I rowsort label-4188
SELECT MAX ( ALL 30 ) - - 6
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-4189
SELECT 63 DIV - 84 AS col0, + 72 * + 82 * + 29 AS col0
----
0
171216

skipif mysql # not compatible
query II rowsort label-4189
SELECT 63 / - 84 AS col0, + 72 * + 82 * + 29 AS col0
----
0
171216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT 98 * CAST( NULL AS SIGNED ) * + AVG ( - + 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT 98 * CAST ( NULL AS INTEGER ) * + AVG ( - + 90 )
----
NULL

query I rowsort
SELECT COALESCE ( - 86, - 68 ) * 74
----
-6364

query I rowsort
SELECT ALL 96 + 55
----
151

query I rowsort
SELECT 78 + + 90 + - ( + 58 )
----
110

query I rowsort
SELECT 88 + - + ( - 17 ) col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT 23 - + - 48 * - MAX( - - CASE + 72 WHEN + 76 - ( - 17 ) + 69 - CAST( + CAST( - ( 9 ) AS SIGNED ) AS SIGNED ) * - + 97 THEN - + 11 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT 23 - + - 48 * - MAX ( - - CASE + 72 WHEN + 76 - ( - 17 ) + 69 - CAST ( + CAST ( - ( 9 ) AS INTEGER ) AS INTEGER ) * - + 97 THEN - + 11 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4196
SELECT + 56 * + + 39 + 82 DIV - 98
----
2184

skipif mysql # not compatible
query I rowsort label-4196
SELECT + 56 * + + 39 + 82 / - 98
----
2184

query I rowsort
SELECT ALL + 12 + - 6 * - 5 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4198
SELECT DISTINCT ( + 5 ) + CAST( NULL AS SIGNED ) * + + COUNT( * ) + + - MIN( - + 39 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT ( + 5 ) + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + + - MIN ( - + 39 ) col0
----
NULL

query II rowsort
SELECT ALL 42 + 1 AS col0, + 23 + - 55 AS col2
----
43
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT 76 * COUNT( + + ( - 40 ) ) * 69 + COUNT( * ) AS col0
----
5245

skipif mysql # not compatible
query I rowsort label-4200
SELECT 76 * COUNT ( + + ( - 40 ) ) * 69 + COUNT ( * ) AS col0
----
5245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4201
SELECT - 6 DIV - 31 + - - 72 * 93 * 57 - - MAX( ALL + + 82 ) AS col0
----
381754

skipif mysql # not compatible
query I rowsort label-4201
SELECT - 6 / - 31 + - - 72 * 93 * 57 - - MAX ( ALL + + 82 ) AS col0
----
381754

onlyif mysql # aggregate syntax: 
query II rowsort label-4202
SELECT DISTINCT ( - 74 ) + 46 - + 40 * 33 AS col0, - 31 * + 64 + MAX( DISTINCT + - 57 )
----
-1348
-2041

skipif mysql # not compatible
query II rowsort label-4202
SELECT DISTINCT ( - 74 ) + 46 - + 40 * 33 AS col0, - 31 * + 64 + MAX ( DISTINCT + - 57 )
----
-1348
-2041

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT + MIN( + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-4203
SELECT + MIN ( + 75 )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT - ( 55 ) * - 14 + - CAST( NULL AS SIGNED ) / + - 58 * - 97 - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT - ( 55 ) * - 14 + - CAST ( NULL AS INTEGER ) / + - 58 * - 97 - + 60
----
NULL

query I rowsort
SELECT 88 * 42
----
3696

query I rowsort
SELECT + 1 * - - 86 - + - 35 AS col1
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT ALL - 9 - - ( CAST( NULL AS SIGNED ) ) * + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - 9 - - ( CAST ( NULL AS INTEGER ) ) * + 1 AS col0
----
NULL

query I rowsort
SELECT + 68 * - 14 + 84
----
-868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4209
SELECT ALL + - 51 - + + 81 - - 84 + - 65 + + 93 DIV MAX( ALL 32 ) + + 13 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL + - 51 - + + 81 - - 84 + - 65 + + 93 / MAX ( ALL 32 ) + + 13 AS col2
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4210
SELECT - 95 DIV CASE + + 8 WHEN + COUNT( * ) THEN NULL ELSE 88 * - 36 + + 60 END * - ( + + COUNT( - - 45 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4210
SELECT - 95 / CASE + + 8 WHEN + COUNT ( * ) THEN NULL ELSE 88 * - 36 + + 60 END * - ( + + COUNT ( - - 45 ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 37 * - 67
----
-2479

onlyif mysql # aggregate syntax: 
query II rowsort label-4213
SELECT ALL ( CASE - 46 WHEN + 5 / + + 25 THEN + 98 * - - MAX( ALL - - ( 13 ) ) / + 40 END ) AS col2, 29 AS col2
----
NULL
29

skipif mysql # not compatible
query II rowsort label-4213
SELECT ALL ( CASE - 46 WHEN + 5 / + + 25 THEN + 98 * - - MAX ( ALL - - ( 13 ) ) / + 40 END ) AS col2, 29 AS col2
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT ALL MIN( + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL MIN ( + 79 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4215
SELECT 92 - - + COUNT( * ) + 83 DIV - + 65 + - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4215
SELECT 92 - - + COUNT ( * ) + 83 / - + 65 + - COUNT ( * ) AS col1
----
91

query I rowsort
SELECT DISTINCT - 98 + + + 50
----
-48

query I rowsort
SELECT ALL + 43 + - + 37 AS col2
----
6

query I rowsort
SELECT 78 * + 76 AS col1
----
5928

query I rowsort
SELECT DISTINCT - 71 * - NULLIF ( + + 73, + 42 + + 32 * 79 )
----
5183

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT COUNT( * ) + + + 50 + - ( - ( 84 ) ) * - 84
----
-7005

skipif mysql # not compatible
query I rowsort label-4220
SELECT COUNT ( * ) + + + 50 + - ( - ( 84 ) ) * - 84
----
-7005

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT 97 DIV - 78 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4221
SELECT 97 / - 78 AS col0
----
-1

query I rowsort
SELECT ALL - 81 + + 64 AS col1
----
-17

query II rowsort
SELECT 33 AS col1, + 82 + 93 * 35 + - 80
----
33
3257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT DISTINCT MIN( ALL + CAST( - + 86 AS SIGNED ) )
----
-86

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT MIN ( ALL + CAST ( - + 86 AS INTEGER ) )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4225
SELECT - 25 DIV - - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-4225
SELECT - 25 / - - COUNT ( * )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT COALESCE ( + COALESCE ( + 58, - + ( + 17 ), + + 86 ), - 15 + + 40 * + + 48 + + - 15 - CAST( NULL AS SIGNED ) + 73 )
----
58

skipif mysql # not compatible
query I rowsort label-4226
SELECT COALESCE ( + COALESCE ( + 58, - + ( + 17 ), + + 86 ), - 15 + + 40 * + + 48 + + - 15 - CAST ( NULL AS INTEGER ) + 73 )
----
58

query I rowsort
SELECT + 1 * + 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL - COUNT( * ) * - 70 + + 43 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL - COUNT ( * ) * - 70 + + 43 AS col2
----
113

query I rowsort
SELECT + 95 * + 87 AS col0
----
8265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4230
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) DIV 8
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4230
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) / 8
----
NULL
0

query I rowsort
SELECT DISTINCT + + 17 AS col1
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4232
SELECT 88, - CAST( NULL AS DECIMAL ) AS col0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-4232
SELECT 88, - CAST ( NULL AS REAL ) AS col0
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL MIN( - - 62 ) * - 26 col1
----
-1612

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL MIN ( - - 62 ) * - 26 col1
----
-1612

query I rowsort
SELECT ALL - + 94 * + 17
----
-1598

query I rowsort
SELECT ALL + - ( - 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + + 89 * - NULLIF ( - 10, - COUNT( * ) ) * - 16 * - - 80 * - ( + + COUNT( * ) ) - 40
----
1139160

skipif mysql # not compatible
query I rowsort label-4236
SELECT + + 89 * - NULLIF ( - 10, - COUNT ( * ) ) * - 16 * - - 80 * - ( + + COUNT ( * ) ) - 40
----
1139160

query II rowsort
SELECT + 23 AS col2, + 98 * - - 73
----
23
7154

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT - COUNT( * ) + NULLIF ( 45, + 22 * - 33 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4238
SELECT - COUNT ( * ) + NULLIF ( 45, + 22 * - 33 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT - 27 * - - CASE + + COUNT( ALL + 63 ) WHEN + 8 THEN + 29 / - 27 END - - CASE + + 42 WHEN - + 58 THEN 5 WHEN - + 11 THEN + + 8 + + 6 + - - COUNT( * ) ELSE - 9 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT - 27 * - - CASE + + COUNT ( ALL + 63 ) WHEN + 8 THEN + 29 / - 27 END - - CASE + + 42 WHEN - + 58 THEN 5 WHEN - + 11 THEN + + 8 + + 6 + - - COUNT ( * ) ELSE - 9 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT - + 92 * 67 + + + COUNT( * ) + + 35 * 76 DIV - + 33
----
-6243

skipif mysql # not compatible
query I rowsort label-4240
SELECT - + 92 * 67 + + + COUNT ( * ) + + 35 * 76 / - + 33
----
-6243

query I rowsort
SELECT + + 86 * 62
----
5332

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT + - 17 + + ( - - 91 ) + - COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4242
SELECT + - 17 + + ( - - 91 ) + - COUNT ( * ) AS col2
----
73

query I rowsort
SELECT ALL + COALESCE ( + 0, - 56, + + 21 * + 34 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4244
SELECT + 35 * + - CASE + SUM( + - 17 ) WHEN - 12 THEN - - 5 END - + - 21 - - COUNT( * ) + - 71 + - - 21 + - + 66 * 60 / + + 57 AS col2, + 86 / + 94 / + - 37 * - CAST( NULL AS DECIMAL ) + 5 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4244
SELECT + 35 * + - CASE + SUM ( + - 17 ) WHEN - 12 THEN - - 5 END - + - 21 - - COUNT ( * ) + - 71 + - - 21 + - + 66 * 60 / + + 57 AS col2, + 86 / + 94 / + - 37 * - CAST ( NULL AS REAL ) + 5 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4245
SELECT ALL + CAST( NULL AS SIGNED ), 68 AS col2
----
NULL
68

skipif mysql # not compatible
query II rowsort label-4245
SELECT ALL + CAST ( NULL AS INTEGER ), 68 AS col2
----
NULL
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4246
SELECT + 68 * 64 * + 8, COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col2
----
34816
NULL

skipif mysql # not compatible
query II rowsort label-4246
SELECT + 68 * 64 * + 8, COUNT ( * ) + + CAST ( NULL AS REAL ) AS col2
----
34816
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT + NULLIF ( 1, - + 99 ) * CAST( + + AVG ( 34 ) AS SIGNED ) + - 2
----
32

skipif mysql # not compatible
query I rowsort label-4247
SELECT + NULLIF ( 1, - + 99 ) * CAST ( + + AVG ( 34 ) AS INTEGER ) + - 2
----
32

query II rowsort
SELECT + 57 AS col0, + 52 + - 51 - + 6 * + 45 AS col1
----
57
-269

query I rowsort
SELECT ALL - + 43 * 96 AS col2
----
-4128

onlyif mysql # aggregate syntax: 
query II rowsort label-4250
SELECT - 8, 77 + - - ( - - COALESCE ( + 43, + 53 - - 1 + 2, - - ( - COUNT( * ) ) ) ) * 91 col0
----
-8
3990

skipif mysql # not compatible
query II rowsort label-4250
SELECT - 8, 77 + - - ( - - COALESCE ( + 43, + 53 - - 1 + 2, - - ( - COUNT ( * ) ) ) ) * 91 col0
----
-8
3990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT + CAST( 97 AS SIGNED ) + - 78
----
19

skipif mysql # not compatible
query I rowsort label-4251
SELECT + CAST ( 97 AS INTEGER ) + - 78
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4252
SELECT + ( ( + - 30 ) ) * COUNT( * ) - 96 DIV CAST( 30 AS SIGNED ) * + 5 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4252
SELECT + ( ( + - 30 ) ) * COUNT ( * ) - 96 / CAST ( 30 AS INTEGER ) * + 5 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT ALL 79 * - + COUNT( * ), + COUNT( * ) col1
----
-79
1

skipif mysql # not compatible
query II rowsort label-4253
SELECT ALL 79 * - + COUNT ( * ), + COUNT ( * ) col1
----
-79
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT - 91 DIV + 3
----
-30

skipif mysql # not compatible
query I rowsort label-4254
SELECT - 91 / + 3
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT MIN( - 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT MIN ( - 21 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT + 79 + MAX( ALL - 4 ) + - - 69
----
144

skipif mysql # not compatible
query I rowsort label-4256
SELECT + 79 + MAX ( ALL - 4 ) + - - 69
----
144

query I rowsort
SELECT DISTINCT 85 + 81 AS col2
----
166

query I rowsort
SELECT - ( - 30 ) AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT DISTINCT + NULLIF ( - CASE - 58 WHEN 14 THEN NULL WHEN - + COUNT( * ) THEN 66 END, 43 ) + - CAST( NULL AS SIGNED ) - AVG ( 64 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT + NULLIF ( - CASE - 58 WHEN 14 THEN NULL WHEN - + COUNT ( * ) THEN 66 END, 43 ) + - CAST ( NULL AS INTEGER ) - AVG ( 64 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 94 + + + 94 AS col1
----
188

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT DISTINCT - COALESCE ( - - 79, + COUNT( * ) + + - 94 * - 75, - - 29 * 61 ) * + 84 - - 60 AS col0, + ( - 34 ) * 86 * + + 48 col2
----
-6576
-140352

skipif mysql # not compatible
query II rowsort label-4261
SELECT DISTINCT - COALESCE ( - - 79, + COUNT ( * ) + + - 94 * - 75, - - 29 * 61 ) * + 84 - - 60 AS col0, + ( - 34 ) * 86 * + + 48 col2
----
-6576
-140352

query I rowsort
SELECT DISTINCT 72 + + ( - - 67 ) + + + 63 * - - 72 + - 87 col1
----
4588

query I rowsort
SELECT - 84 * - - 92 col2
----
-7728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT - ( CAST( 75 AS SIGNED ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4264
SELECT - ( CAST ( 75 AS INTEGER ) ) AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT - 1 + + ( + 37 ) * + 22 - - + NULLIF ( - 33, + CAST( - + 80 AS SIGNED ) ) * + - 38 * + + 80 AS col1
----
101133

skipif mysql # not compatible
query I rowsort label-4265
SELECT - 1 + + ( + 37 ) * + 22 - - + NULLIF ( - 33, + CAST ( - + 80 AS INTEGER ) ) * + - 38 * + + 80 AS col1
----
101133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4266
SELECT ALL CASE 63 WHEN 90 * - - 52 * - 85 + + + 47 THEN + MAX( DISTINCT + - 85 ) * + ( + 65 ) + + 6 * - 28 WHEN CASE + + 20 WHEN + + COUNT( * ) THEN 70 * 9 WHEN CAST( + + 1 AS SIGNED ) THEN NULL END / + + ( + SUM( + 48 ) ) + + 81 + + CAST( NULL AS SIGNED ) + + SUM( - - CAST( + + 41 AS SIGNED ) ) THEN NULL ELSE + 32 END
----
32

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL CASE 63 WHEN 90 * - - 52 * - 85 + + + 47 THEN + MAX ( DISTINCT + - 85 ) * + ( + 65 ) + + 6 * - 28 WHEN CASE + + 20 WHEN + + COUNT ( * ) THEN 70 * 9 WHEN CAST ( + + 1 AS INTEGER ) THEN NULL END / + + ( + SUM ( + 48 ) ) + + 81 + + CAST ( NULL AS INTEGER ) + + SUM ( - - CAST ( + + 41 AS INTEGER ) ) THEN NULL ELSE + 32 END
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4267
SELECT - 54 * + + COALESCE ( + - 12, + + 26 DIV - 53 ) * MIN( ALL 24 ), 48 AS col0
----
15552
48

skipif mysql # not compatible
query II rowsort label-4267
SELECT - 54 * + + COALESCE ( + - 12, + + 26 / - 53 ) * MIN ( ALL 24 ), 48 AS col0
----
15552
48

query I rowsort
SELECT - 65 + + - 44
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT ALL 71 - - 45 + + 21 + - 59 * 86 DIV + 57
----
48

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL 71 - - 45 + + 21 + - 59 * 86 / + 57
----
48

query I rowsort
SELECT - 76 * 11 * 26 + + 50
----
-21686

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4271
SELECT DISTINCT - CAST( 61 AS SIGNED ) DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT - CAST ( 61 AS INTEGER ) / + 76
----
0

query I rowsort
SELECT - + 37 * + - 47
----
1739

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT + 86 DIV 36 + - + ( 50 ) * - ( - + 95 ) * 49 AS col2
----
-232748

skipif mysql # not compatible
query I rowsort label-4273
SELECT + 86 / 36 + - + ( 50 ) * - ( - + 95 ) * 49 AS col2
----
-232748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4274
SELECT + - 82 DIV COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-4274
SELECT + - 82 / COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT ALL 96 * + 90 * + ( - + COUNT( * ) ) + - 54 + + - 86
----
-8780

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL 96 * + 90 * + ( - + COUNT ( * ) ) + - 54 + + - 86
----
-8780

query I rowsort
SELECT - 23 - + 85 col2
----
-108

query I rowsort
SELECT - NULLIF ( + 88, + + 41 )
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4278
SELECT 14 * - - CAST( NULL AS DECIMAL ) + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT 14 * - - CAST ( NULL AS REAL ) + 14 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4279
SELECT CASE - 15 WHEN + - 6 THEN + + CAST( + COUNT( * ) AS SIGNED ) WHEN - - 44 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT CASE - 15 WHEN + - 6 THEN + + CAST ( + COUNT ( * ) AS INTEGER ) WHEN - - 44 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4280
SELECT ALL 76 * - - 37 + + 40, CASE - - 13 WHEN + CAST( NULL AS DECIMAL ) THEN COUNT( * ) ELSE + 98 END col1
----
2852
98

skipif mysql # not compatible
query II rowsort label-4280
SELECT ALL 76 * - - 37 + + 40, CASE - - 13 WHEN + CAST ( NULL AS REAL ) THEN COUNT ( * ) ELSE + 98 END col1
----
2852
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4281
SELECT CASE + 88 WHEN - + 85 - CASE - + 59 WHEN - 79 THEN NULL ELSE + - 61 END - + ( - 41 ) THEN - 84 WHEN + + 52 / + 64 * + CASE + COUNT( * ) WHEN - 53 * + + 3 THEN NULL WHEN + 15 THEN COUNT( * ) END THEN + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT CASE + 88 WHEN - + 85 - CASE - + 59 WHEN - 79 THEN NULL ELSE + - 61 END - + ( - 41 ) THEN - 84 WHEN + + 52 / + 64 * + CASE + COUNT ( * ) WHEN - 53 * + + 3 THEN NULL WHEN + 15 THEN COUNT ( * ) END THEN + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 50 * + ( 3 ) AS col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT COALESCE ( + 6, + + 45 * - 33 + 38 + + - MIN( DISTINCT - 29 ) * + 40 ) * + + CAST( NULL AS SIGNED ) * 63 * - 61 - - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT COALESCE ( + 6, + + 45 * - 33 + 38 + + - MIN ( DISTINCT - 29 ) * + 40 ) * + + CAST ( NULL AS INTEGER ) * 63 * - 61 - - 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4284
SELECT + 14 DIV - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-4284
SELECT + 14 / - COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL COUNT( * ) * 35 col1
----
35

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL COUNT ( * ) * 35 col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL 96 + + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL 96 + + COUNT ( * ) AS col2
----
97

query I rowsort
SELECT ALL 19 * + 66 AS col0
----
1254

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT 23 + + MIN( DISTINCT 74 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4288
SELECT 23 + + MIN ( DISTINCT 74 ) AS col2
----
97

query I rowsort
SELECT DISTINCT 31 - + - 23 AS col1
----
54

query II rowsort
SELECT 58 col2, - ( - + 96 )
----
58
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4291
SELECT 36 - - 10 + + COUNT( * ) * 31 DIV + COALESCE ( + NULLIF ( + 69, + - ( COUNT( * ) ) ), 24 * + - 32 + - 56 * COUNT( * ) + 5 * - 22 ) * - 55 + - - COUNT( * ) + 93
----
140

skipif mysql # not compatible
query I rowsort label-4291
SELECT 36 - - 10 + + COUNT ( * ) * 31 / + COALESCE ( + NULLIF ( + 69, + - ( COUNT ( * ) ) ), 24 * + - 32 + - 56 * COUNT ( * ) + 5 * - 22 ) * - 55 + - - COUNT ( * ) + 93
----
140

query I rowsort
SELECT ALL 66 * + 6 AS col0
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4293
SELECT DISTINCT NULLIF ( + - 86, - 24 + + 53 + + 74 / + COUNT( * ) * - 25 ) * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT NULLIF ( + - 86, - 24 + + 53 + + 74 / + COUNT ( * ) * - 25 ) * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT ( 97 ) DIV - 85 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4294
SELECT ( 97 ) / - 85 AS col0
----
-1

query I rowsort
SELECT ALL 80 col0
----
80

query I rowsort
SELECT ALL COALESCE ( - 32, - 93 * + + 65, - 10 )
----
-32

query II rowsort
SELECT DISTINCT - 92 AS col2, - 15 AS col2
----
-92
-15

query I rowsort
SELECT - ( + - 1 ) * ( 34 ) AS col1
----
34

query I rowsort
SELECT + 78 + - 99 AS col1
----
-21

query I rowsort
SELECT + + ( + 35 )
----
35

query I rowsort
SELECT 43 - 6 AS col1
----
37

query I rowsort
SELECT + 5 * + - 92 AS col0
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT - - MAX( - 96 ) * - + 49 * - ( - - 50 ) - - SUM( DISTINCT + 6 )
----
-235194

skipif mysql # not compatible
query I rowsort label-4303
SELECT - - MAX ( - 96 ) * - + 49 * - ( - - 50 ) - - SUM ( DISTINCT + 6 )
----
-235194

query I rowsort
SELECT ALL - + 64 + - 5 AS col0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT DISTINCT 2 * 54 * - + ( CASE + + MAX( + - 40 ) WHEN ( - 22 ) + - + 31 THEN - 7 WHEN - - CAST( NULL AS SIGNED ) + - 34 + - ( - COUNT( * ) ) THEN NULL END ) + - 85 + - - MAX( DISTINCT - 9 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT 2 * 54 * - + ( CASE + + MAX ( + - 40 ) WHEN ( - 22 ) + - + 31 THEN - 7 WHEN - - CAST ( NULL AS INTEGER ) + - 34 + - ( - COUNT ( * ) ) THEN NULL END ) + - 85 + - - MAX ( DISTINCT - 9 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT - 78 + - MIN( 48 ) col1
----
-126

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT - 78 + - MIN ( 48 ) col1
----
-126

query I rowsort
SELECT DISTINCT + + 35 * 96 * 95
----
319200

query I rowsort
SELECT ALL - + 72 + + 95 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4309
SELECT DISTINCT + 87 + - + COUNT( * ) + CASE CAST( 12 AS SIGNED ) WHEN + 96 - + + ( - 76 ) + CAST( NULL AS DECIMAL ) - + ( + 6 ) * - 96 THEN 8 * - COUNT( * ) + - - NULLIF ( 73, - - ( COALESCE ( - 88, 8 ) ) * + 49 * - + 26 ) * - CAST( 75 AS SIGNED ) - 20 END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT + 87 + - + COUNT ( * ) + CASE CAST ( 12 AS INTEGER ) WHEN + 96 - + + ( - 76 ) + CAST ( NULL AS REAL ) - + ( + 6 ) * - 96 THEN 8 * - COUNT ( * ) + - - NULLIF ( 73, - - ( COALESCE ( - 88, 8 ) ) * + 49 * - + 26 ) * - CAST ( 75 AS INTEGER ) - 20 END * - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4310
SELECT DISTINCT + 21 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT + 21 / + 92
----
0

query I rowsort
SELECT 82 + - - ( + 54 ) - + - 47 * - + 14 AS col0
----
-522

query I rowsort
SELECT COALESCE ( + + 37, 38 ) * - 69 AS col1
----
-2553

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT COUNT( * ) * - 27 + + 12 + - MAX( DISTINCT 56 )
----
-71

skipif mysql # not compatible
query I rowsort label-4313
SELECT COUNT ( * ) * - 27 + + 12 + - MAX ( DISTINCT 56 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4314
SELECT DISTINCT MIN( + 4 ) * + 58 * CASE + + MIN( DISTINCT + + 15 ) WHEN 99 THEN NULL ELSE + - 97 DIV COUNT( * ) + + COUNT( * ) + - COUNT( * ) * + + 14 END AS col2
----
-25520

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT MIN ( + 4 ) * + 58 * CASE + + MIN ( DISTINCT + + 15 ) WHEN 99 THEN NULL ELSE + - 97 / COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) * + + 14 END AS col2
----
-25520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4315
SELECT ALL + CASE + ( + COUNT( * ) ) WHEN 19 THEN NULL ELSE - 16 * + COALESCE ( + 81, COUNT( * ), + 51, - 24 DIV + 5 * - 31 + + 8 * - 76 ) END - 39
----
-1335

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + CASE + ( + COUNT ( * ) ) WHEN 19 THEN NULL ELSE - 16 * + COALESCE ( + 81, COUNT ( * ), + 51, - 24 / + 5 * - 31 + + 8 * - 76 ) END - 39
----
-1335

query I rowsort
SELECT DISTINCT - 13 - + - 72 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT 88 + 42 + - 77 - - CAST( - ( - 90 ) AS SIGNED ) * - + 36
----
-3187

skipif mysql # not compatible
query I rowsort label-4317
SELECT 88 + 42 + - 77 - - CAST ( - ( - 90 ) AS INTEGER ) * - + 36
----
-3187

onlyif mysql # aggregate syntax: 
query II rowsort label-4318
SELECT DISTINCT + 49 - 43 AS col1, COUNT( * ) col1
----
6
1

skipif mysql # not compatible
query II rowsort label-4318
SELECT DISTINCT + 49 - 43 AS col1, COUNT ( * ) col1
----
6
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4319
SELECT - 13 col0, COUNT( * ) col2
----
-13
1

skipif mysql # not compatible
query II rowsort label-4319
SELECT - 13 col0, COUNT ( * ) col2
----
-13
1

query I rowsort
SELECT 22 + + ( - 57 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT NULLIF ( + CASE + 39 WHEN - 60 THEN NULL WHEN - 85 THEN - - COUNT( * ) ELSE NULL END, + 31 ) + - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT NULLIF ( + CASE + 39 WHEN - 60 THEN NULL WHEN - 85 THEN - - COUNT ( * ) ELSE NULL END, + 31 ) + - - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL SUM( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL SUM ( 20 )
----
20

query I rowsort
SELECT DISTINCT 71 * - - 29 AS col2
----
2059

query I rowsort
SELECT - 62 * - + 6 - - 47
----
419

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT 78 + - 63 + - MIN( - - 86 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4325
SELECT 78 + - 63 + - MIN ( - - 86 ) AS col2
----
-71

query I rowsort
SELECT - + 81 AS col2
----
-81

query I rowsort
SELECT - 45 + 69 + + - 62 * 63 * - 88
----
343752

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4328
SELECT - 85 + ( + 97 ) DIV 63 AS col1, ( + ( MIN( DISTINCT - + 55 ) ) ) * + 65
----
-84
-3575

skipif mysql # not compatible
query II rowsort label-4328
SELECT - 85 + ( + 97 ) / 63 AS col1, ( + ( MIN ( DISTINCT - + 55 ) ) ) * + 65
----
-84
-3575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4329
SELECT 27 / - + CASE + + CAST( NULL AS DECIMAL ) WHEN - 24 / - 57 + + - 16 - - ( - - CAST( - 2 AS SIGNED ) ) / - ( - 42 ) THEN 51 + COALESCE ( - 69, 72 ) + MIN( + ( - 24 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4329
SELECT 27 / - + CASE + + CAST ( NULL AS REAL ) WHEN - 24 / - 57 + + - 16 - - ( - - CAST ( - 2 AS INTEGER ) ) / - ( - 42 ) THEN 51 + COALESCE ( - 69, 72 ) + MIN ( + ( - 24 ) ) END AS col2
----
NULL

query I rowsort
SELECT ALL 29 + + 70
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT + 68 - - 60 DIV + 66 * ( 44 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4331
SELECT + 68 - - 60 / + 66 * ( 44 ) AS col1
----
68

query II rowsort
SELECT + 12 + - 38 AS col1, 50
----
-26
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL + CASE 72 WHEN ( + 73 ) + - + 72 THEN + 7 + + - COUNT( * ) * - - ( + 48 ) WHEN 8 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL + CASE 72 WHEN ( + 73 ) + - + 72 THEN + 7 + + - COUNT ( * ) * - - ( + 48 ) WHEN 8 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT ALL - + 69 AS col1, - 67 AS col0
----
-69
-67

query II rowsort
SELECT + 42 AS col1, 13
----
42
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4336
SELECT ALL 33 * - ( + 12 ) + - - 1 DIV + COUNT( * ) + - + 27 AS col0
----
-422

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL 33 * - ( + 12 ) + - - 1 / + COUNT ( * ) + - + 27 AS col0
----
-422

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT DISTINCT - 83 * + 95 + + 69 + - 3 + + + COUNT( * )
----
-7818

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT - 83 * + 95 + + 69 + - 3 + + + COUNT ( * )
----
-7818

query I rowsort
SELECT ALL - - ( - 46 ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4339
SELECT - 61 + - - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT - 61 + - - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL 20 * + 26 + + 41 + CASE + ( 3 ) WHEN + COUNT( * ) THEN 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL 20 * + 26 + + 41 + CASE + ( 3 ) WHEN + COUNT ( * ) THEN 16 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4341
SELECT - COUNT( * ) AS col0, 90 + + 39 + + 72 - 56 * - CASE - MAX( - 97 ) WHEN + + CAST( + + ( - 41 ) AS SIGNED ) / CAST( NULL AS DECIMAL ) THEN SUM( - - 29 ) * - 18 - 4 * 6 + - 62 * - 6 ELSE ( + ( - 73 ) ) + - - 80 END * 24 - + 63 - + 1 AS col2
----
-1
9545

skipif mysql # not compatible
query II rowsort label-4341
SELECT - COUNT ( * ) AS col0, 90 + + 39 + + 72 - 56 * - CASE - MAX ( - 97 ) WHEN + + CAST ( + + ( - 41 ) AS INTEGER ) / CAST ( NULL AS REAL ) THEN SUM ( - - 29 ) * - 18 - 4 * 6 + - 62 * - 6 ELSE ( + ( - 73 ) ) + - - 80 END * 24 - + 63 - + 1 AS col2
----
-1
9545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4342
SELECT - 41 * - COALESCE ( 13, 46 + + + CAST( + COUNT( + 35 ) AS SIGNED ) ) + + 94 AS col1
----
627

skipif mysql # not compatible
query I rowsort label-4342
SELECT - 41 * - COALESCE ( 13, 46 + + + CAST ( + COUNT ( + 35 ) AS INTEGER ) ) + + 94 AS col1
----
627

query I rowsort
SELECT + - NULLIF ( 28, + 83 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4344
SELECT CAST( - 78 AS SIGNED ) AS col1, 63 DIV + 45 - 60
----
-78
-59

skipif mysql # not compatible
query II rowsort label-4344
SELECT CAST ( - 78 AS INTEGER ) AS col1, 63 / + 45 - 60
----
-78
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT + - COUNT( + - 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4345
SELECT + - COUNT ( + - 79 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4346
SELECT ALL - - 2 AS col0, COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-4346
SELECT ALL - - 2 AS col0, COUNT ( * )
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT MIN( ( 67 ) ) * 1 + - 79 * 85 * + 32 AS col0
----
-214813

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT MIN ( ( 67 ) ) * 1 + - 79 * 85 * + 32 AS col0
----
-214813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT DISTINCT + CAST( - - ( + 27 ) AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + CAST ( - - ( + 27 ) AS INTEGER ) AS col1
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4349
SELECT DISTINCT + 81 - - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT + 81 - - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 26 * + 68 * 44 * - 14
----
1089088

query I rowsort
SELECT - 85 * - + ( - 50 )
----
-4250

onlyif mysql # aggregate syntax: 
query II rowsort label-4352
SELECT ALL + COUNT( ALL 37 ), 13 * + 76 AS col1
----
1
988

skipif mysql # not compatible
query II rowsort label-4352
SELECT ALL + COUNT ( ALL 37 ), 13 * + 76 AS col1
----
1
988

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT MIN( DISTINCT 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4353
SELECT MIN ( DISTINCT 1 )
----
1

query I rowsort
SELECT - 49 * + ( 96 ) * - 44 + 89 col1
----
207065

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT - 73 DIV - - 9 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4355
SELECT - 73 / - - 9 AS col0
----
-8

query I rowsort
SELECT - 78 * COALESCE ( + - 84, 81 ) col0
----
6552

query I rowsort
SELECT - 48 * 52 * 42 * - - ( - 44 ) * 63 - + 50 - - + 36 - + 1 AS col1
----
290594289

query I rowsort
SELECT - 25 - + + 74 + - 87 + - 57
----
-243

query I rowsort
SELECT ALL 30 * - - 15
----
450

onlyif mysql # aggregate syntax: 
query II rowsort label-4360
SELECT DISTINCT + COUNT( * ) * - 28 * 3 AS col0, 53 AS col2
----
-84
53

skipif mysql # not compatible
query II rowsort label-4360
SELECT DISTINCT + COUNT ( * ) * - 28 * 3 AS col0, 53 AS col2
----
-84
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4361
SELECT ALL COALESCE ( - + 12, - 22 + COUNT( * ), - + COALESCE ( - CAST( NULL AS SIGNED ), + 22 * - + 23 * + 81 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL COALESCE ( - + 12, - 22 + COUNT ( * ), - + COALESCE ( - CAST ( NULL AS INTEGER ), + 22 * - + 23 * + 81 ) )
----
-12

query I rowsort
SELECT - 12 + - 43 + - 29 - 1 * - 26 * + 85
----
2126

query I rowsort
SELECT + ( - 75 ) * - 30
----
2250

query II rowsort
SELECT ALL - 39 + - 67 col0, + 10 * ( - - 81 )
----
-106
810

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT DISTINCT COALESCE ( 56, + 96 ) + + MIN( DISTINCT + 99 ) col1
----
155

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT COALESCE ( 56, + 96 ) + + MIN ( DISTINCT + 99 ) col1
----
155

query I rowsort
SELECT DISTINCT + - 31 + + - 48 + 12 col0
----
-67

query II rowsort
SELECT - ( - 55 ), + 98 AS col0
----
55
98

query I rowsort
SELECT DISTINCT - + 18 + - 32 * - - 97 + - + 80
----
-3202

onlyif mysql # DIV for integer division: 
query I rowsort label-4369
SELECT ALL 62 + 57 DIV - - 60 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL 62 + 57 / - - 60 AS col1
----
62

onlyif mysql # aggregate syntax: 
query III rowsort label-4370
SELECT + COUNT( * ) * + 52 AS col1, + COUNT( * ) AS col1, + 65 col1
----
52
1
65

skipif mysql # not compatible
query III rowsort label-4370
SELECT + COUNT ( * ) * + 52 AS col1, + COUNT ( * ) AS col1, + 65 col1
----
52
1
65

onlyif mysql # DIV for integer division: 
query II rowsort label-4371
SELECT DISTINCT - 87 DIV + + 78 AS col0, + 24
----
-1
24

skipif mysql # not compatible
query II rowsort label-4371
SELECT DISTINCT - 87 / + + 78 AS col0, + 24
----
-1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT - ( MIN( ALL 18 ) ) + 53 + 12 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4372
SELECT - ( MIN ( ALL 18 ) ) + 53 + 12 AS col1
----
47

query II rowsort
SELECT ALL 20 * - 80 AS col0, + 1 AS col2
----
-1600
1

query I rowsort
SELECT DISTINCT + + 24 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT + + CAST( NULL AS SIGNED ) - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT + + CAST ( NULL AS INTEGER ) - 54
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4376
SELECT + + 26 * + + 13 AS col1, - 26 * - CASE + 74 WHEN 32 THEN + + 69 ELSE NULL END * + COUNT( * ) AS col0
----
338
NULL

skipif mysql # not compatible
query II rowsort label-4376
SELECT + + 26 * + + 13 AS col1, - 26 * - CASE + 74 WHEN 32 THEN + + 69 ELSE NULL END * + COUNT ( * ) AS col0
----
338
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4377
SELECT ALL - 71 / - COUNT( * ) - - CAST( NULL AS SIGNED ) + - + ( + 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL - 71 / - COUNT ( * ) - - CAST ( NULL AS INTEGER ) + - + ( + 75 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT + 97 * + COUNT( * ) - 89 - 81
----
-73

skipif mysql # not compatible
query I rowsort label-4378
SELECT + 97 * + COUNT ( * ) - 89 - 81
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT ALL - ( 12 ) * - 60 * - - CASE 97 WHEN - + COUNT( * ) THEN + + 59 - + + 69 WHEN 2 * - 18 + 61 + - - 21 / + - 35 * + + ( + 27 ) THEN - + 33 END + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - ( 12 ) * - 60 * - - CASE 97 WHEN - + COUNT ( * ) THEN + + 59 - + + 69 WHEN 2 * - 18 + 61 + - - 21 / + - 35 * + + ( + 27 ) THEN - + 33 END + - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4380
SELECT DISTINCT + - CASE + 20 WHEN - 54 THEN 12 WHEN - + 33 * - - 27 / - + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) THEN - CASE 69 WHEN - 42 THEN NULL WHEN - 22 THEN NULL ELSE + + CAST( NULL AS SIGNED ) END ELSE - ( 59 ) END AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT + - CASE + 20 WHEN - 54 THEN 12 WHEN - + 33 * - - 27 / - + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) THEN - CASE 69 WHEN - 42 THEN NULL WHEN - 22 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) END ELSE - ( 59 ) END AS col0
----
59

query I rowsort
SELECT + - 7 + + 29 + 71
----
93

query I rowsort
SELECT ALL 9 * ( 19 ) AS col2
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT + 33 * - + CAST( 57 AS SIGNED ) * 25 * 1
----
-47025

skipif mysql # not compatible
query I rowsort label-4383
SELECT + 33 * - + CAST ( 57 AS INTEGER ) * 25 * 1
----
-47025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT + 97 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT + 97 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 55 + - 51 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT + 56, COALESCE ( + 70, MIN( ( - 52 ) ) ) AS col1
----
56
70

skipif mysql # not compatible
query II rowsort label-4386
SELECT + 56, COALESCE ( + 70, MIN ( ( - 52 ) ) ) AS col1
----
56
70

query II rowsort
SELECT NULLIF ( + 94, 46 * 58 + COALESCE ( - + 1, - + 8 * 90 * 78 ) ) AS col1, 62
----
94
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT + 49 + 16 * - CASE - + 76 WHEN - + 35 * MIN( - - 20 ) * - + 83 + + 68 THEN NULL WHEN COUNT( * ) THEN + - 91 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT + 49 + 16 * - CASE - + 76 WHEN - + 35 * MIN ( - - 20 ) * - + 83 + + 68 THEN NULL WHEN COUNT ( * ) THEN + - 91 END col0
----
NULL

query I rowsort
SELECT - 55 * - 81
----
4455

query I rowsort
SELECT - 82 * + 58 + + 3 - + - 77 * - - 6 AS col1
----
-4291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT + CAST( + AVG ( DISTINCT + 16 ) AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4391
SELECT + CAST ( + AVG ( DISTINCT + 16 ) AS INTEGER ) AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4392
SELECT + 1 + - + ( COUNT( * ) ) + 78 * - - CASE - - ( - 41 ) WHEN 41 THEN COUNT( * ) + NULLIF ( + ( + + CAST( NULL AS SIGNED ) ), - 49 ) + - 47 + + 60 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT + 1 + - + ( COUNT ( * ) ) + 78 * - - CASE - - ( - 41 ) WHEN 41 THEN COUNT ( * ) + NULLIF ( + ( + + CAST ( NULL AS INTEGER ) ), - 49 ) + - 47 + + 60 END AS col1
----
NULL

query I rowsort
SELECT ALL 7 * 66 AS col0
----
462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4394
SELECT - 19 DIV COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-4394
SELECT - 19 / COUNT ( * )
----
-19

query I rowsort
SELECT ALL 50 * - 13 + - - 45 AS col1
----
-605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4396
SELECT DISTINCT 42 * + ( + 66 ) * ( + 27 ) + CAST( + COUNT( * ) AS SIGNED ) + + - 36 * 30 DIV 1
----
73765

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT 42 * + ( + 66 ) * ( + 27 ) + CAST ( + COUNT ( * ) AS INTEGER ) + + - 36 * 30 / 1
----
73765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4397
SELECT + 7 + + SUM( + COALESCE ( - + 35, + 48 ) ) * + - 35 AS col0, + CAST( NULL AS SIGNED ) + - COUNT( * ) col1
----
1232
NULL

skipif mysql # not compatible
query II rowsort label-4397
SELECT + 7 + + SUM ( + COALESCE ( - + 35, + 48 ) ) * + - 35 AS col0, + CAST ( NULL AS INTEGER ) + - COUNT ( * ) col1
----
1232
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT COUNT( * ) AS col1, 5
----
1
5

skipif mysql # not compatible
query II rowsort label-4398
SELECT COUNT ( * ) AS col1, 5
----
1
5

query I rowsort
SELECT - 71 + - 17 AS col0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-4400
SELECT + 83 DIV - 66 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4400
SELECT + 83 / - 66 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT - 89 DIV + 33
----
-2

skipif mysql # not compatible
query I rowsort label-4401
SELECT - 89 / + 33
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT COUNT( + + 26 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4402
SELECT COUNT ( + + 26 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - SUM( ALL + 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4403
SELECT - SUM ( ALL + 95 ) AS col0
----
-95

query I rowsort
SELECT - 67 + + - 96 + - 61
----
-224

query I rowsort
SELECT - - 4 * + + 53 col2
----
212

onlyif mysql # aggregate syntax: 
query II rowsort label-4406
SELECT DISTINCT - COUNT( * ) + + + 23 * + 99 AS col0, - 7 AS col1
----
2276
-7

skipif mysql # not compatible
query II rowsort label-4406
SELECT DISTINCT - COUNT ( * ) + + + 23 * + 99 AS col0, - 7 AS col1
----
2276
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL CASE 42 WHEN + + 54 THEN NULL WHEN + ( 3 ) + + COUNT( * ) * + 73 THEN - 33 * COUNT( DISTINCT - 22 ) ELSE NULL END + 70 * - + COUNT( * ) + - - 89 - + 32 + - 13 * - - 31 + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL CASE 42 WHEN + + 54 THEN NULL WHEN + ( 3 ) + + COUNT ( * ) * + 73 THEN - 33 * COUNT ( DISTINCT - 22 ) ELSE NULL END + 70 * - + COUNT ( * ) + - - 89 - + 32 + - 13 * - - 31 + 5
----
NULL

query I rowsort
SELECT - 94 + + - 71 AS col1
----
-165

query I rowsort
SELECT ALL + 7 + - - 98 + - 94
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT DISTINCT + COUNT( * ) + 49 * 52 AS col0
----
2549

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT + COUNT ( * ) + 49 * 52 AS col0
----
2549

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4411
SELECT + 4 AS col2, + 21 * - 11 + + CAST( 15 AS SIGNED )
----
4
-216

skipif mysql # not compatible
query II rowsort label-4411
SELECT + 4 AS col2, + 21 * - 11 + + CAST ( 15 AS INTEGER )
----
4
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT ALL - 58 * - 41 + 67 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - 58 * - 41 + 67 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT - + COALESCE ( 56, - 40 * + - 86 + + 7 * 29 + - COUNT( * ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4413
SELECT - + COALESCE ( 56, - 40 * + - 86 + + 7 * 29 + - COUNT ( * ) ) AS col2
----
-56

query I rowsort
SELECT ALL + - 53 - + ( ( + + 61 ) ) + 85
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT - - MIN( ALL - 45 ) + 73
----
28

skipif mysql # not compatible
query I rowsort label-4415
SELECT - - MIN ( ALL - 45 ) + 73
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4416
SELECT + - 97 + + + 49 * + 47 * - - 48 + + 72 + - 61 * 89 * + COUNT( * ) col1, CASE COUNT( * ) WHEN 33 * - 3 * + 45 THEN NULL WHEN + + SUM( - 53 ) THEN NULL WHEN - 48 THEN + ( - 4 ) + + 56 + - 71 * COUNT( * ) + + + 11 + - MAX( DISTINCT CAST( - 97 AS DECIMAL ) ) END * - 32 + NULLIF ( 18, + COUNT( * ) - + 68 ) AS col2
----
105090
NULL

skipif mysql # not compatible
query II rowsort label-4416
SELECT + - 97 + + + 49 * + 47 * - - 48 + + 72 + - 61 * 89 * + COUNT ( * ) col1, CASE COUNT ( * ) WHEN 33 * - 3 * + 45 THEN NULL WHEN + + SUM ( - 53 ) THEN NULL WHEN - 48 THEN + ( - 4 ) + + 56 + - 71 * COUNT ( * ) + + + 11 + - MAX ( DISTINCT CAST ( - 97 AS REAL ) ) END * - 32 + NULLIF ( 18, + COUNT ( * ) - + 68 ) AS col2
----
105090
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT - CASE + MAX( DISTINCT + - 1 ) WHEN 93 THEN - + 56 WHEN - - 21 THEN 60 WHEN + - 33 THEN - 63 * 16 / - + 21 / + + 16 END + - - 95 / 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT - CASE + MAX ( DISTINCT + - 1 ) WHEN 93 THEN - + 56 WHEN - - 21 THEN 60 WHEN + - 33 THEN - 63 * 16 / - + 21 / + + 16 END + - - 95 / 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4418
SELECT DISTINCT - CASE - 35 WHEN - + COUNT( * ) THEN - + COALESCE ( - 46, + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * - 78 * - + 67, + + 98 * + - 55 * - - CASE + ( + 66 ) WHEN 53 THEN - 85 + - 48 WHEN - 21 - 78 + + - ( + 24 ) THEN 69 END * 78 ) ELSE 48 END * 70 + - 62 AS col2
----
-3422

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - CASE - 35 WHEN - + COUNT ( * ) THEN - + COALESCE ( - 46, + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 78 * - + 67, + + 98 * + - 55 * - - CASE + ( + 66 ) WHEN 53 THEN - 85 + - 48 WHEN - 21 - 78 + + - ( + 24 ) THEN 69 END * 78 ) ELSE 48 END * 70 + - 62 AS col2
----
-3422

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT DISTINCT - + COUNT( + ( - - 54 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT - + COUNT ( + ( - - 54 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT DISTINCT + - CAST( NULL AS SIGNED ) - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - 45
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT - 60 DIV - 50 + - - 30 + + 13 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4421
SELECT - 60 / - 50 + - - 30 + + 13 AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4422
SELECT ALL - COUNT( * ) DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL - COUNT ( * ) / + 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT 97 / + CAST( NULL AS SIGNED ) / + ( + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT 97 / + CAST ( NULL AS INTEGER ) / + ( + 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT DISTINCT COUNT( * ) * - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT COUNT ( * ) * - 19 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-4425
SELECT DISTINCT COUNT( * ) * + 22 AS col1, 66
----
22
66

skipif mysql # not compatible
query II rowsort label-4425
SELECT DISTINCT COUNT ( * ) * + 22 AS col1, 66
----
22
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT COUNT( * ) * 57 DIV + 95 col1
----
0

skipif mysql # not compatible
query I rowsort label-4426
SELECT COUNT ( * ) * 57 / + 95 col1
----
0

query I rowsort
SELECT DISTINCT 2 * - 59 * + ( 20 )
----
-2360

query I rowsort
SELECT ALL - 36 * + CASE - 58 WHEN - - 72 THEN 2 / - - 63 / - - 38 WHEN - 63 / 32 * 79 - 75 THEN - - 11 - - - 26 END
----
NULL

query I rowsort
SELECT 32 * 51 AS col1
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT COUNT( * ) * + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT COUNT ( * ) * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT 22 * NULLIF ( + MIN( DISTINCT - 85 ), - - 82 * 19 + + COUNT( * ) ) col0
----
-1870

skipif mysql # not compatible
query I rowsort label-4431
SELECT 22 * NULLIF ( + MIN ( DISTINCT - 85 ), - - 82 * 19 + + COUNT ( * ) ) col0
----
-1870

query I rowsort
SELECT DISTINCT 19 + 41 AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT CAST( + - 92 AS SIGNED ) + + + 93 + + + NULLIF ( 63, - 51 )
----
64

skipif mysql # not compatible
query I rowsort label-4433
SELECT CAST ( + - 92 AS INTEGER ) + + + 93 + + + NULLIF ( 63, - 51 )
----
64

query I rowsort
SELECT DISTINCT 95 + + 46 + - 63 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL 54 + - ( + 54 ) * - + ( CASE - 24 WHEN + - COUNT( * ) / 58 - - COUNT( DISTINCT - ( 67 ) ) / + COUNT( - 48 ) THEN NULL WHEN COUNT( * ) * + MAX( - + 53 ) THEN + - 61 WHEN ( - 76 ) THEN NULL ELSE NULL END ) * - COALESCE ( - 27, 72 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL 54 + - ( + 54 ) * - + ( CASE - 24 WHEN + - COUNT ( * ) / 58 - - COUNT ( DISTINCT - ( 67 ) ) / + COUNT ( - 48 ) THEN NULL WHEN COUNT ( * ) * + MAX ( - + 53 ) THEN + - 61 WHEN ( - 76 ) THEN NULL ELSE NULL END ) * - COALESCE ( - 27, 72 ) AS col0
----
NULL

query I rowsort
SELECT 48 * - + 50
----
-2400

query I rowsort
SELECT ( + - 17 ) - - 86
----
69

query I rowsort
SELECT - + 10 AS col0
----
-10

query I rowsort
SELECT ALL - 11 + - 88 * 48 AS col1
----
-4235

query II rowsort
SELECT ALL 39 + - 56 col1, - 13 AS col2
----
-17
-13

query I rowsort
SELECT ALL - - 93 + + + 44 AS col1
----
137

query I rowsort
SELECT DISTINCT - 20 * + 22 AS col0
----
-440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4443
SELECT ALL + 98 + 71 + + - 91 DIV - - 55 + 78 DIV - 54 + + COUNT( * ) - - 39 AS col1
----
207

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL + 98 + 71 + + - 91 / - - 55 + 78 / - 54 + + COUNT ( * ) - - 39 AS col1
----
207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4444
SELECT + COUNT( * ) * - - ( - + COUNT( * ) ) * 11 DIV 13 * 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4444
SELECT + COUNT ( * ) * - - ( - + COUNT ( * ) ) * 11 / 13 * 84 AS col1
----
0

query I rowsort
SELECT ALL 84 - + - 46
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL + + 51 - NULLIF ( + 1, 30 ) - + MIN( - 6 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL + + 51 - NULLIF ( + 1, 30 ) - + MIN ( - 6 ) AS col2
----
56

query I rowsort
SELECT + 72 * 86 + + 61 AS col0
----
6253

query I rowsort
SELECT 71 * - ( + 37 ) AS col2
----
-2627

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT DISTINCT + 4 DIV - 30 + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT + 4 / - 30 + - 30
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT DISTINCT - COALESCE ( - 42, 95 * 0 * + - 73 * + CASE 99 WHEN MAX( ALL + - 70 ) THEN + - 98 END, + 65 DIV + COUNT( * ) * ( - + 34 ) )
----
42

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT - COALESCE ( - 42, 95 * 0 * + - 73 * + CASE 99 WHEN MAX ( ALL + - 70 ) THEN + - 98 END, + 65 / + COUNT ( * ) * ( - + 34 ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4451
SELECT ALL MIN( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL MIN ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 50 * - 34 * 75 col0
----
-127500

query I rowsort
SELECT ALL - COALESCE ( + ( 24 ), 30 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT COUNT( * ) + + 53 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4454
SELECT COUNT ( * ) + + 53 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4455
SELECT - - CASE - 24 WHEN + 93 THEN + 41 WHEN + CAST( + + 70 AS SIGNED ) THEN NULL ELSE + COUNT( * ) * + - CAST( - 15 AS SIGNED ) END
----
15

skipif mysql # not compatible
query I rowsort label-4455
SELECT - - CASE - 24 WHEN + 93 THEN + 41 WHEN + CAST ( + + 70 AS INTEGER ) THEN NULL ELSE + COUNT ( * ) * + - CAST ( - 15 AS INTEGER ) END
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL - NULLIF ( 91, + 38 + - + 14 ) * + + 75 * - - 93 + - ( + CASE - - 81 WHEN - + 19 THEN + - 47 + - 63 ELSE + + NULLIF ( + 19, + 35 * + 36 + + 9 * - + 41 + + - CASE WHEN - COUNT( * ) IN ( - + 48 * + 49, - NULLIF ( - - 3, - 96 ) ) THEN 75 + + + COUNT( * ) ELSE + 32 * + 92 + - 53 + - CASE 77 WHEN + - 49 - + ( 30 ) + + 61 THEN + COALESCE ( + - 41, - COUNT( * ) ) WHEN + 58 THEN + 69 * - - 87 ELSE - 57 END END ) + + - 4 END ) - + 24 col0
----
-634764

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - NULLIF ( 91, + 38 + - + 14 ) * + + 75 * - - 93 + - ( + CASE - - 81 WHEN - + 19 THEN + - 47 + - 63 ELSE + + NULLIF ( + 19, + 35 * + 36 + + 9 * - + 41 + + - CASE WHEN - COUNT ( * ) IN ( - + 48 * + 49, - NULLIF ( - - 3, - 96 ) ) THEN 75 + + + COUNT ( * ) ELSE + 32 * + 92 + - 53 + - CASE 77 WHEN + - 49 - + ( 30 ) + + 61 THEN + COALESCE ( + - 41, - COUNT ( * ) ) WHEN + 58 THEN + 69 * - - 87 ELSE - 57 END END ) + + - 4 END ) - + 24 col0
----
-634764

query I rowsort
SELECT 42 * - 10 * - + 48 col2
----
20160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4458
SELECT DISTINCT - ( CASE - COALESCE ( + 68, - + 79 ) WHEN - COUNT( * ) * - - 92 * - 6 + - 69 - + 92 * - - ( - 21 ) THEN - COUNT( * ) + CASE 0 WHEN - 72 THEN - + 38 / + 40 - CAST( NULL AS SIGNED ) + - 4 + - 95 END END ) * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT - ( CASE - COALESCE ( + 68, - + 79 ) WHEN - COUNT ( * ) * - - 92 * - 6 + - 69 - + 92 * - - ( - 21 ) THEN - COUNT ( * ) + CASE 0 WHEN - 72 THEN - + 38 / + 40 - CAST ( NULL AS INTEGER ) + - 4 + - 95 END END ) * - 0
----
NULL

query II rowsort
SELECT ALL + 77 + + + 53 + - 86 AS col0, 4 + + 50 AS col2
----
44
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT ALL + 4 * SUM( DISTINCT 9 ) * + + 9 AS col0
----
324

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL + 4 * SUM ( DISTINCT 9 ) * + + 9 AS col0
----
324

onlyif mysql # aggregate syntax: 
query II rowsort label-4461
SELECT DISTINCT - 64 AS col1, - 38 + - COUNT( * ) AS col0
----
-64
-39

skipif mysql # not compatible
query II rowsort label-4461
SELECT DISTINCT - 64 AS col1, - 38 + - COUNT ( * ) AS col0
----
-64
-39

query I rowsort
SELECT 35 + 16 + - 76 + 29
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT COUNT( + - 5 ) - + - COALESCE ( - 24, - 19 )
----
-23

skipif mysql # not compatible
query I rowsort label-4463
SELECT COUNT ( + - 5 ) - + - COALESCE ( - 24, - 19 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4464
SELECT DISTINCT - COALESCE ( - - 22, 83 ) + - ( 50 ) - - MIN( - 20 ) + + 39 + - - 83 + 10 + - ( + + 65 ) * + 29 * + - 22 * + - 84 AS col2, 93 - + 95
----
-3483440
-2

skipif mysql # not compatible
query II rowsort label-4464
SELECT DISTINCT - COALESCE ( - - 22, 83 ) + - ( 50 ) - - MIN ( - 20 ) + + 39 + - - 83 + 10 + - ( + + 65 ) * + 29 * + - 22 * + - 84 AS col2, 93 - + 95
----
-3483440
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT ALL - CAST( NULL AS SIGNED ) + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL - CAST ( NULL AS INTEGER ) + 31 AS col2
----
NULL

query I rowsort
SELECT ALL 54 + + + 60 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT 41 * - MAX( 20 ) AS col1
----
-820

skipif mysql # not compatible
query I rowsort label-4467
SELECT 41 * - MAX ( 20 ) AS col1
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT + SUM( DISTINCT + - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-4468
SELECT + SUM ( DISTINCT + - 26 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4469
SELECT ALL 71 * COUNT( * ) * - + 4 AS col2, CAST( - 7 AS SIGNED ) AS col0
----
-284
-7

skipif mysql # not compatible
query II rowsort label-4469
SELECT ALL 71 * COUNT ( * ) * - + 4 AS col2, CAST ( - 7 AS INTEGER ) AS col0
----
-284
-7

query I rowsort
SELECT DISTINCT + ( + 61 ) + + 0 * - - NULLIF ( - + 0, + 24 ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4471
SELECT + 35 * + ( + 93 ) * + + 14 * ( - COUNT( * ) ) + + 17 DIV - 70 AS col0
----
-45570

skipif mysql # not compatible
query I rowsort label-4471
SELECT + 35 * + ( + 93 ) * + + 14 * ( - COUNT ( * ) ) + + 17 / - 70 AS col0
----
-45570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT DISTINCT - CAST( 98 AS SIGNED ) * + - COALESCE ( + 99, - - 84 ) * ( 62 ) AS col2
----
601524

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT - CAST ( 98 AS INTEGER ) * + - COALESCE ( + 99, - - 84 ) * ( 62 ) AS col2
----
601524

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL + 2 + + - COALESCE ( - + 52, - 64 + - 89 - + 31 * + ( - + 78 ) - - + 22 + - + 91 + COUNT( * ) * - COUNT( * ) * + 63 )
----
54

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + 2 + + - COALESCE ( - + 52, - 64 + - 89 - + 31 * + ( - + 78 ) - - + 22 + - + 91 + COUNT ( * ) * - COUNT ( * ) * + 63 )
----
54

query I rowsort
SELECT ALL + 91 * - + 29
----
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT DISTINCT - COALESCE ( 89, + ( - - NULLIF ( - COUNT( * ), + - 38 + + 40 ) ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT - COALESCE ( 89, + ( - - NULLIF ( - COUNT ( * ), + - 38 + + 40 ) ) ) AS col0
----
-89

query I rowsort
SELECT - 29 + 16 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL 86 - - + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL 86 - - + COUNT ( * ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL + COUNT( DISTINCT - 76 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + COUNT ( DISTINCT - 76 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT DISTINCT + 39 - - 2 * - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT + 39 - - 2 * - COUNT ( * ) AS col0
----
37

query I rowsort
SELECT ALL - 75 * - - 14
----
-1050

query I rowsort
SELECT + - ( - + 2 ) + - + 94 + + 7
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT DISTINCT MIN( ALL 69 ) / 91 * CASE 40 WHEN - 51 THEN - COUNT( - + 0 ) + - COUNT( * ) / - AVG ( 40 ) WHEN + COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT MIN ( ALL 69 ) / 91 * CASE 40 WHEN - 51 THEN - COUNT ( - + 0 ) + - COUNT ( * ) / - AVG ( 40 ) WHEN + COUNT ( * ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT + - 20 * + COUNT( * ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-4483
SELECT + - 20 * + COUNT ( * ) col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4484
SELECT ALL - 14 * + 26 + - 26 DIV 45 DIV - 34 * - + 23 AS col2
----
-364

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL - 14 * + 26 + - 26 / 45 / - 34 * - + 23 AS col2
----
-364

query I rowsort
SELECT - - 98 AS col0
----
98

query I rowsort
SELECT - 28 + + - 47 AS col0
----
-75

query I rowsort
SELECT + 72 * - 0 * + - 29 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4488
SELECT - - COUNT( - + CAST( - - 60 AS SIGNED ) ), 94 + + - NULLIF ( + 56, + 40 ) AS col1
----
1
38

skipif mysql # not compatible
query II rowsort label-4488
SELECT - - COUNT ( - + CAST ( - - 60 AS INTEGER ) ), 94 + + - NULLIF ( + 56, + 40 ) AS col1
----
1
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4489
SELECT + 32 * - - 24 DIV + - 4 AS col2
----
-192

skipif mysql # not compatible
query I rowsort label-4489
SELECT + 32 * - - 24 / + - 4 AS col2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL - COUNT( * ) + - - 27 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - COUNT ( * ) + - - 27 AS col0
----
26

query II rowsort
SELECT ALL + 45 + - + 23 + - 27 + NULLIF ( - - 38, - - 54 - - 53 ) * 93 * + - NULLIF ( 66, - + 48 * 9 - + - AVG ( DISTINCT - 43 ) + 15 ) * + 33, + 96 AS col1
----
-7697057
96

query I rowsort
SELECT ALL ( + + 15 ) + + NULLIF ( 41, - 86 ) AS col2
----
56

query I rowsort
SELECT DISTINCT ( + + 70 ) + + + 6 * + 88 * - 17
----
-8906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT ALL 95 * - CAST( NULL AS SIGNED ) + - 34 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL 95 * - CAST ( NULL AS INTEGER ) + - 34 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT DISTINCT - 18 * + + CAST( 4 AS SIGNED ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT - 18 * + + CAST ( 4 AS INTEGER ) AS col1
----
-72

query I rowsort
SELECT ( + 11 ) AS col1
----
11

query II rowsort
SELECT ( 95 ) AS col2, 14 AS col0
----
95
14

query I rowsort
SELECT ( 97 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT - AVG ( + 23 ) + + + 28 * ( - COUNT( * ) ) * COUNT( ALL 95 ) - + CASE + 79 WHEN 9 / - 13 * + 71 THEN - COUNT( * ) END + - 21 * - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT - AVG ( + 23 ) + + + 28 * ( - COUNT ( * ) ) * COUNT ( ALL 95 ) - + CASE + 79 WHEN 9 / - 13 * + 71 THEN - COUNT ( * ) END + - 21 * - 71
----
NULL

query I rowsort
SELECT ALL + 76 * - 49 + 81 AS col2
----
-3643

query I rowsort
SELECT + ( - - 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL 44 * + COUNT( * ) + + 77
----
121

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL 44 * + COUNT ( * ) + + 77
----
121

query I rowsort
SELECT ALL ( + 57 ) * + 87
----
4959

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT ALL - 49 * + 94 + COUNT( * ) AS col1
----
-4605

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL - 49 * + 94 + COUNT ( * ) AS col1
----
-4605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT DISTINCT + CAST( + - 54 AS SIGNED ) * - 32
----
1728

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + CAST ( + - 54 AS INTEGER ) * - 32
----
1728

query I rowsort
SELECT - ( - - 21 ) * + + 41 + 13 AS col0
----
-848

query I rowsort
SELECT ALL + + COALESCE ( - - 14, 53 )
----
14

query I rowsort
SELECT - + 56 + 24 * - 0 * + 93 AS col0
----
-56

query II rowsort
SELECT + 94 AS col1, 81 - - 29
----
94
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT 34 * - COUNT( * ) + - 11 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4510
SELECT 34 * - COUNT ( * ) + - 11 AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT + 87 DIV + 44 + 25
----
26

skipif mysql # not compatible
query I rowsort label-4511
SELECT + 87 / + 44 + 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL + CASE - 9 WHEN - COUNT( * ) * + 64 THEN NULL WHEN + 31 THEN + 87 + + - 17 END / - - 39 - - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL + CASE - 9 WHEN - COUNT ( * ) * + 64 THEN NULL WHEN + 31 THEN + 87 + + - 17 END / - - 39 - - + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT + + ( ( + + 98 ) ) + + - COUNT( * ) * 0
----
98

skipif mysql # not compatible
query I rowsort label-4513
SELECT + + ( ( + + 98 ) ) + + - COUNT ( * ) * 0
----
98

query II rowsort
SELECT + 72 AS col2, 6 AS col0
----
72
6

query I rowsort
SELECT DISTINCT + + 19 AS col0
----
19

query I rowsort
SELECT ALL - + 67 * - 64 AS col1
----
4288

query I rowsort
SELECT - + 99 * + 91 * - 89 AS col1
----
801801

onlyif mysql # aggregate syntax: 
query II rowsort label-4518
SELECT - + COUNT( * ) + - + 14 + + 26 * + 46 AS col2, 15 + - 35 AS col2
----
1181
-20

skipif mysql # not compatible
query II rowsort label-4518
SELECT - + COUNT ( * ) + - + 14 + + 26 * + 46 AS col2, 15 + - 35 AS col2
----
1181
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT - 77 * - COUNT( * ) + + 87 * + COUNT( * ) * - 53
----
-4534

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT - 77 * - COUNT ( * ) + + 87 * + COUNT ( * ) * - 53
----
-4534

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL + 18 * - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL + 18 * - COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT ALL + 55 DIV - + ( + + COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL + 55 / - + ( + + COUNT ( * ) )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT + 90 DIV 97 + + 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4522
SELECT + 90 / 97 + + 72 AS col2
----
72

query I rowsort
SELECT - 29 * + 70 + + 17 AS col2
----
-2013

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - COUNT( * ) * + 52 + + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4524
SELECT - COUNT ( * ) * + 52 + + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4525
SELECT - 52 AS col2, - COUNT( * ) AS col0
----
-52
-1

skipif mysql # not compatible
query II rowsort label-4525
SELECT - 52 AS col2, - COUNT ( * ) AS col0
----
-52
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT + + CAST( - 33 AS SIGNED ) * - 70 - + 4 + - + 8
----
2298

skipif mysql # not compatible
query I rowsort label-4526
SELECT + + CAST ( - 33 AS INTEGER ) * - 70 - + 4 + - + 8
----
2298

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT - NULLIF ( - MAX( DISTINCT - 88 ), + 0 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4527
SELECT - NULLIF ( - MAX ( DISTINCT - 88 ), + 0 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL COUNT( * ) + - ( - 50 )
----
51

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL COUNT ( * ) + - ( - 50 )
----
51

query I rowsort
SELECT ALL ( - 53 ) + 77 - - + 38
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT + COUNT( * ) - - 24
----
25

skipif mysql # not compatible
query I rowsort label-4530
SELECT + COUNT ( * ) - - 24
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4531
SELECT + 67 + - 97 + - 46 AS col0, 39 + + MAX( DISTINCT + 52 ) + 32 DIV 69 * - 13 AS col2
----
-76
91

skipif mysql # not compatible
query II rowsort label-4531
SELECT + 67 + - 97 + - 46 AS col0, 39 + + MAX ( DISTINCT + 52 ) + 32 / 69 * - 13 AS col2
----
-76
91

query I rowsort
SELECT ALL 78 + 7
----
85

query II rowsort
SELECT + 43 + - + 65 AS col1, 33 AS col2
----
-22
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - 78 * - COUNT( * ) * + 91 + + COUNT( * ) + + 76 AS col2
----
7175

skipif mysql # not compatible
query I rowsort label-4534
SELECT - 78 * - COUNT ( * ) * + 91 + + COUNT ( * ) + + 76 AS col2
----
7175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4535
SELECT DISTINCT + 38 DIV + MAX( ( ( - 37 ) ) ) + - 84 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT + 38 / + MAX ( ( ( - 37 ) ) ) + - 84 AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4536
SELECT DISTINCT NULLIF ( - 10, - - CAST( COUNT( * ) AS SIGNED ) ) DIV - + 60 - - 14 col0
----
14

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT NULLIF ( - 10, - - CAST ( COUNT ( * ) AS INTEGER ) ) / - + 60 - - 14 col0
----
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4537
SELECT + 90 DIV - CAST( + 78 AS SIGNED ) + + 55
----
54

skipif mysql # not compatible
query I rowsort label-4537
SELECT + 90 / - CAST ( + 78 AS INTEGER ) + + 55
----
54

query II rowsort
SELECT ALL + NULLIF ( + 51, 29 * - 92 * + 23 ), + 51
----
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + 89 + + COUNT( * ) * + COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-4539
SELECT + 89 + + COUNT ( * ) * + COUNT ( * ) AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4540
SELECT ALL 95 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL 95 / - 62
----
-1

query I rowsort
SELECT - 6 / - CASE - 20 WHEN - - 60 THEN - - 67 + - 16 + + - 18 * - 27 + - ( 48 ) WHEN - 10 THEN 61 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 70 * - 76 * - 27
----
-143640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4543
SELECT + 27 DIV 24 + ( - + 11 ) * - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4543
SELECT + 27 / 24 + ( - + 11 ) * - COUNT ( * )
----
12

query I rowsort
SELECT + ( - 41 ) * - ( + + 90 ) * - 91 * + 0 + + - 5 + - 2 - - 18 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT - 28 * 21 + + 0 + - + 21 * - COUNT( * ) * 99 * + 13 - - - COUNT( - 93 ) * NULLIF ( - 74, - 26 + - 64 ) AS col1
----
26513

skipif mysql # not compatible
query I rowsort label-4545
SELECT - 28 * 21 + + 0 + - + 21 * - COUNT ( * ) * 99 * + 13 - - - COUNT ( - 93 ) * NULLIF ( - 74, - 26 + - 64 ) AS col1
----
26513

query I rowsort
SELECT DISTINCT + 41 * - - 16 * 94 AS col0
----
61664

query I rowsort
SELECT DISTINCT + + 50 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4548
SELECT + + 19 * 32 * 98 / + CAST( NULL AS SIGNED ) / 74, + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4548
SELECT + + 19 * 32 * 98 / + CAST ( NULL AS INTEGER ) / 74, + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT - + CAST( NULL AS SIGNED ) * - + 57 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT - + CAST ( NULL AS INTEGER ) * - + 57 col0
----
NULL

query I rowsort
SELECT ALL + - 7 * - 65 + + - 73 + - 68 AS col2
----
314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4551
SELECT COUNT( * ) * + 40 + CAST( - - 13 AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4551
SELECT COUNT ( * ) * + 40 + CAST ( - - 13 AS INTEGER ) AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT DISTINCT - 81 * - CASE + 73 WHEN + 41 THEN NULL ELSE + COUNT( * ) * + 5 DIV + + 26 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT - 81 * - CASE + 73 WHEN + 41 THEN NULL ELSE + COUNT ( * ) * + 5 / + + 26 END AS col1
----
0

query I rowsort
SELECT DISTINCT - + ( 53 ) AS col1
----
-53

query I rowsort
SELECT ALL - - 35 AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4555
SELECT DISTINCT - 25 DIV - COUNT( * ) - + 4 * - 33
----
157

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT - 25 / - COUNT ( * ) - + 4 * - 33
----
157

query I rowsort
SELECT 36 * + 74 AS col1
----
2664

query I rowsort
SELECT 79 * + 98 AS col0
----
7742

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT - - 7 * 8 * + COUNT( DISTINCT - 72 ) + + + 18 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4558
SELECT - - 7 * 8 * + COUNT ( DISTINCT - 72 ) + + + 18 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT - - NULLIF ( + - 37, MAX( - 8 ) * CAST( NULL AS SIGNED ) - 48 )
----
-37

skipif mysql # not compatible
query I rowsort label-4559
SELECT - - NULLIF ( + - 37, MAX ( - 8 ) * CAST ( NULL AS INTEGER ) - 48 )
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4560
SELECT - 18 * + 49 * + + 5 + COUNT( * ) * + 18 AS col0, 67
----
-4392
67

skipif mysql # not compatible
query II rowsort label-4560
SELECT - 18 * + 49 * + + 5 + COUNT ( * ) * + 18 AS col0, 67
----
-4392
67

query I rowsort
SELECT ALL - 32 + 23 AS col0
----
-9

query I rowsort
SELECT 59 + 76 AS col1
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-4563
SELECT ALL 16 + + COUNT( * ) + + 26 + + NULLIF ( + 44, + 28 ) + - + 57 AS col1, COUNT( ALL + ( - + ( - 66 ) ) ) + + 76
----
30
77

skipif mysql # not compatible
query II rowsort label-4563
SELECT ALL 16 + + COUNT ( * ) + + 26 + + NULLIF ( + 44, + 28 ) + - + 57 AS col1, COUNT ( ALL + ( - + ( - 66 ) ) ) + + 76
----
30
77

query I rowsort
SELECT 36 + + 7
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT DISTINCT 32 DIV 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT 32 / 37 AS col2
----
0

query I rowsort
SELECT 16 * - + 79 * + 8
----
-10112

query I rowsort
SELECT ALL + 73 + + - 44 AS col2
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-4568
SELECT ALL 46 AS col1, - 23 DIV 9
----
46
-2

skipif mysql # not compatible
query II rowsort label-4568
SELECT ALL 46 AS col1, - 23 / 9
----
46
-2

query II rowsort
SELECT - 47, + 31 AS col1
----
-47
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT SUM( - CASE - 56 WHEN - 55 + + - 18 THEN - 59 END ) + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT SUM ( - CASE - 56 WHEN - 55 + + - 18 THEN - 59 END ) + 91 AS col2
----
NULL

query I rowsort
SELECT 77 * + 29
----
2233

onlyif mysql # aggregate syntax: 
query II rowsort label-4572
SELECT CASE + + 59 WHEN - - CASE 6 WHEN + COALESCE ( + 53, - 2 * 29 * - 23 ) / - - COUNT( * ) THEN NULL WHEN - + MIN( ALL 35 ) THEN + ( + + 7 ) + + + 35 - - - 66 + - 10 * + + 72 - + 12 ELSE - + 87 - + 13 END THEN + + 25 + - 92 END + - 64 * - + ( + COUNT( * ) ), + 78 AS col0
----
NULL
78

skipif mysql # not compatible
query II rowsort label-4572
SELECT CASE + + 59 WHEN - - CASE 6 WHEN + COALESCE ( + 53, - 2 * 29 * - 23 ) / - - COUNT ( * ) THEN NULL WHEN - + MIN ( ALL 35 ) THEN + ( + + 7 ) + + + 35 - - - 66 + - 10 * + + 72 - + 12 ELSE - + 87 - + 13 END THEN + + 25 + - 92 END + - 64 * - + ( + COUNT ( * ) ), + 78 AS col0
----
NULL
78

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4573
SELECT - 14 AS col0, 72 / - 30 + - CAST( NULL AS DECIMAL )
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-4573
SELECT - 14 AS col0, 72 / - 30 + - CAST ( NULL AS REAL )
----
-14
NULL

query I rowsort
SELECT ALL 25 - + 91 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT 67 * COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-4575
SELECT 67 * COUNT ( * )
----
67

query I rowsort
SELECT 79 * + 44 col0
----
3476

query II rowsort
SELECT 82, + 44 AS col1
----
82
44

query I rowsort
SELECT ALL 89 * 1
----
89

query II rowsort
SELECT 57 * + + ( 93 ) AS col0, 22
----
5301
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4580
SELECT 48 DIV + + COUNT( ALL - 12 ) - + 77 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4580
SELECT 48 / + + COUNT ( ALL - 12 ) - + 77 AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4581
SELECT 45 DIV - CAST( + - 93 AS SIGNED ) DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4581
SELECT 45 / - CAST ( + - 93 AS INTEGER ) / COUNT ( * )
----
0

query II rowsort
SELECT ALL - 35 col1, + 27 + - 91 + - + ( 18 ) AS col2
----
-35
-82

query I rowsort
SELECT 94 * 31 * + 71 * + + 46
----
9517124

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT ALL - ( - 54 ) DIV 91 * - + 19
----
0

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL - ( - 54 ) / 91 * - + 19
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT ALL - + COUNT( * ) AS col1, COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-4585
SELECT ALL - + COUNT ( * ) AS col1, COUNT ( * ) AS col1
----
-1
1

query I rowsort
SELECT DISTINCT + - ( + 41 ) + 36 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4587
SELECT DISTINCT CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4588
SELECT 73 + NULLIF ( - - 79, - COALESCE ( SUM( DISTINCT 92 ), 68 / + ( - 10 ) + + 19 / + 18, - CAST( - 92 AS SIGNED ) + + 9 * - 43, + 10 ) - - - 57 + + + 30 + 92 * + 72 * + - 47 / + 54 + ( - AVG ( ALL + 18 ) ) + - 74 ) AS col0
----
152

skipif mysql # not compatible
query I rowsort label-4588
SELECT 73 + NULLIF ( - - 79, - COALESCE ( SUM ( DISTINCT 92 ), 68 / + ( - 10 ) + + 19 / + 18, - CAST ( - 92 AS INTEGER ) + + 9 * - 43, + 10 ) - - - 57 + + + 30 + 92 * + 72 * + - 47 / + 54 + ( - AVG ( ALL + 18 ) ) + - 74 ) AS col0
----
152

query I rowsort
SELECT ALL + 27 * 69 AS col1
----
1863

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT COALESCE ( + - COUNT( * ), + 59, + 83 * + 16 + - ( - CASE + 42 WHEN - + 31 THEN - 0 + 45 WHEN + 80 THEN NULL WHEN + - 40 THEN NULL END ) + COUNT( * ) ) + - 76
----
-77

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT COALESCE ( + - COUNT ( * ), + 59, + 83 * + 16 + - ( - CASE + 42 WHEN - + 31 THEN - 0 + 45 WHEN + 80 THEN NULL WHEN + - 40 THEN NULL END ) + COUNT ( * ) ) + - 76
----
-77

query I rowsort
SELECT 71 col1
----
71

query I rowsort
SELECT ALL - 36 + 75
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4593
SELECT + + COUNT( * ), 43 AS col0
----
1
43

skipif mysql # not compatible
query II rowsort label-4593
SELECT + + COUNT ( * ), 43 AS col0
----
1
43

query I rowsort
SELECT 43 - 71 * + 92 AS col1
----
-6489

query I rowsort
SELECT ALL 21 * - + 89 AS col1
----
-1869

query II rowsort
SELECT ALL 37, - 41 * 2 AS col1
----
37
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4597
SELECT 73 * + CASE - + 94 WHEN - 72 THEN 76 WHEN - COUNT( * ) + - - 89 - + 92 / - 7 THEN MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) WHEN - 81 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT 73 * + CASE - + 94 WHEN - 72 THEN 76 WHEN - COUNT ( * ) + - - 89 - + 92 / - 7 THEN MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) WHEN - 81 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4598
SELECT ALL + 75 + - 15 DIV + 95 * ( 74 ) - - 52 AS col0, ( + 60 ) AS col0
----
127
60

skipif mysql # not compatible
query II rowsort label-4598
SELECT ALL + 75 + - 15 / + 95 * ( 74 ) - - 52 AS col0, ( + 60 ) AS col0
----
127
60

query I rowsort
SELECT ALL + 95 + - ( - 66 )
----
161

query I rowsort
SELECT DISTINCT - 41 + + 66
----
25

query I rowsort
SELECT ALL 90 col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL - 14 * + ( - 65 ) * 15 * - COUNT( * )
----
-13650

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL - 14 * + ( - 65 ) * 15 * - COUNT ( * )
----
-13650

query I rowsort
SELECT DISTINCT + 96 - + 6 + - 1 * - 84 * 73
----
6222

onlyif mysql # aggregate syntax: 
query II rowsort label-4604
SELECT DISTINCT - 42 * + COUNT( * ), + 7 * 88 AS col0
----
-42
616

skipif mysql # not compatible
query II rowsort label-4604
SELECT DISTINCT - 42 * + COUNT ( * ), + 7 * 88 AS col0
----
-42
616

query I rowsort
SELECT ALL + 87 * ( - + 66 ) AS col1
----
-5742

query I rowsort
SELECT ALL + 15 * - + 94 col0
----
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT 67 * 50 * + COUNT( * )
----
3350

skipif mysql # not compatible
query I rowsort label-4607
SELECT 67 * 50 * + COUNT ( * )
----
3350

query I rowsort
SELECT ALL - 51 * + + 46 AS col2
----
-2346

query I rowsort
SELECT ALL - 42 * 22 AS col0
----
-924

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT 50 + 99 * - COUNT( * ) - - 43, 65 AS col1
----
-6
65

skipif mysql # not compatible
query II rowsort label-4610
SELECT 50 + 99 * - COUNT ( * ) - - 43, 65 AS col1
----
-6
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL MAX( DISTINCT 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL MAX ( DISTINCT 14 ) AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT 57 DIV - 95 * 51
----
0

skipif mysql # not compatible
query I rowsort label-4612
SELECT 57 / - 95 * 51
----
0

query I rowsort
SELECT 66 * + - 96 AS col2
----
-6336

query I rowsort
SELECT 2 * - - 54 * - 81 AS col2
----
-8748

query I rowsort
SELECT ALL - 92 * 55 - 50
----
-5110

query I rowsort
SELECT + - 86 * + 10
----
-860

query I rowsort
SELECT ALL + + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT + 33 + COUNT( * ) * + + COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4618
SELECT + 33 + COUNT ( * ) * + + COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4619
SELECT ALL - COUNT( * ) * SUM( + - 43 ) + - 75 DIV - 7 + 89 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL - COUNT ( * ) * SUM ( + - 43 ) + - 75 / - 7 + 89 AS col1
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT ALL + 31 * ( 39 ) * 5 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL + 31 * ( 39 ) * 5 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT - 82 * 21 * + MAX( - 22 ) + + - 2
----
37882

skipif mysql # not compatible
query I rowsort label-4621
SELECT - 82 * 21 * + MAX ( - 22 ) + + - 2
----
37882

query I rowsort
SELECT + + ( + - 66 )
----
-66

query I rowsort
SELECT - - 92 * + 63 + - 40 * + 93 * - ( - + 48 ) AS col0
----
-172764

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT - ( + CASE 11 WHEN 66 THEN - 61 END ) * - 4 + + 90 / + ( - - 33 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT - ( + CASE 11 WHEN 66 THEN - 61 END ) * - 4 + + 90 / + ( - - 33 ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT + + SUM( DISTINCT + - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-4625
SELECT + + SUM ( DISTINCT + - 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT + 37 * 36 - CASE + COUNT( * ) WHEN 70 THEN + COUNT( * ) ELSE 5 END + + 65 * 15
----
2302

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT + 37 * 36 - CASE + COUNT ( * ) WHEN 70 THEN + COUNT ( * ) ELSE 5 END + + 65 * 15
----
2302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT ALL + CAST( NULL AS SIGNED ) / CASE AVG ( + 57 ) WHEN - + 32 THEN NULL ELSE + - ( - CAST( NULL AS SIGNED ) ) END - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL + CAST ( NULL AS INTEGER ) / CASE AVG ( + 57 ) WHEN - + 32 THEN NULL ELSE + - ( - CAST ( NULL AS INTEGER ) ) END - + 29
----
NULL

query II rowsort
SELECT + ( - 61 ), ( - - 1 ) + - 94 AS col1
----
-61
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4629
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - 10 + ( - 83 ) col1, + COUNT( - - 45 ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4629
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 10 + ( - 83 ) col1, + COUNT ( - - 45 ) AS col1
----
NULL
1

query I rowsort
SELECT + + ( - 50 ) + + + 27
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT - NULLIF ( 82, 23 * + - 87 - - 21 + - COUNT( - - 79 ) ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4631
SELECT - NULLIF ( 82, 23 * + - 87 - - 21 + - COUNT ( - - 79 ) ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL MIN( 96 ) - - + ( + 55 )
----
151

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL MIN ( 96 ) - - + ( + 55 )
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT COUNT( 56 )
----
1

skipif mysql # not compatible
query I rowsort label-4633
SELECT COUNT ( 56 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - SUM( 28 ) * + 5 + 13 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-4634
SELECT - SUM ( 28 ) * + 5 + 13 AS col0
----
-127

query I rowsort
SELECT + 20 * - 20 AS col2
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4636
SELECT + 37 + - 86 + + CAST( + - 83 AS SIGNED ) + + ( + + ( 28 ) ) * + ( - + COUNT( ALL 40 ) ) * - 88 * - 39 + - 42 - + + 65 col2
----
-96335

skipif mysql # not compatible
query I rowsort label-4636
SELECT + 37 + - 86 + + CAST ( + - 83 AS INTEGER ) + + ( + + ( 28 ) ) * + ( - + COUNT ( ALL 40 ) ) * - 88 * - 39 + - 42 - + + 65 col2
----
-96335

query I rowsort
SELECT ALL NULLIF ( - 99, + 44 + 30 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + 14 + - - ( - COUNT( * ) ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4638
SELECT + 14 + - - ( - COUNT ( * ) ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4639
SELECT - NULLIF ( + 34, + + 56 ) + + 45 + - - COUNT( * ) + - 54, 45 AS col2
----
-42
45

skipif mysql # not compatible
query II rowsort label-4639
SELECT - NULLIF ( + 34, + + 56 ) + + 45 + - - COUNT ( * ) + - 54, 45 AS col2
----
-42
45

query I rowsort
SELECT - 84 + + - 20
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4641
SELECT ALL CASE + 72 WHEN - - 91 THEN + CAST( NULL AS SIGNED ) * - 10 + - + ( + 24 ) + - 66 + + 30 - + COUNT( * ) + - - COUNT( * ) / - 44 + - 91 * + - 73 * COUNT( * ) WHEN + + 19 + - 17 + + + COUNT( * ) THEN - - 1 WHEN + 56 / - + 52 THEN NULL ELSE + 17 END AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL CASE + 72 WHEN - - 91 THEN + CAST ( NULL AS INTEGER ) * - 10 + - + ( + 24 ) + - 66 + + 30 - + COUNT ( * ) + - - COUNT ( * ) / - 44 + - 91 * + - 73 * COUNT ( * ) WHEN + + 19 + - 17 + + + COUNT ( * ) THEN - - 1 WHEN + 56 / - + 52 THEN NULL ELSE + 17 END AS col2
----
17

query I rowsort
SELECT - ( 95 ) + + 99 AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT - CAST( + + 25 AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4643
SELECT - CAST ( + + 25 AS INTEGER ) AS col1
----
-25

query I rowsort
SELECT - 36 + + - 69
----
-105

query I rowsort
SELECT ALL NULLIF ( 30, AVG ( DISTINCT + 40 ) * 10 ) AS col2
----
30

query I rowsort
SELECT DISTINCT + 66 * + 21 AS col1
----
1386

query I rowsort
SELECT DISTINCT ( 16 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4648
SELECT DISTINCT 71 + - - COUNT( * ) + + 45 + + 95 + - 74 * + - 35 * - 29 * + + CAST( + - NULLIF ( + ( - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) ), ( 76 ) ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT 71 + - - COUNT ( * ) + + 45 + + 95 + - 74 * + - 35 * - 29 * + + CAST ( + - NULLIF ( + ( - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) ), ( 76 ) ) AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + 48 * + 1 col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4650
SELECT DISTINCT + COUNT( * ) + - ( + 57 ) col1, + 51 - + CAST( ( - 25 ) AS SIGNED )
----
-56
76

skipif mysql # not compatible
query II rowsort label-4650
SELECT DISTINCT + COUNT ( * ) + - ( + 57 ) col1, + 51 - + CAST ( ( - 25 ) AS INTEGER )
----
-56
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT DISTINCT + 66 * - CAST( + 17 AS SIGNED ) AS col0
----
-1122

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT + 66 * - CAST ( + 17 AS INTEGER ) AS col0
----
-1122

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT ALL + 92 DIV + 16 + + 12
----
17

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + 92 / + 16 + + 12
----
17

query I rowsort
SELECT ALL + 48 * 96 AS col2
----
4608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT DISTINCT + CAST( 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT + CAST ( 59 AS INTEGER )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT + COUNT( * ) DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT + COUNT ( * ) / - 54
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4656
SELECT ALL + 14 DIV 33 + - 52 DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + 14 / 33 + - 52 / - 69 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT CAST( 99 AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4657
SELECT CAST ( 99 AS INTEGER ) AS col2
----
99

query I rowsort
SELECT + 22 * - 67
----
-1474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4659
SELECT ALL - 65 DIV - 80 + - MAX( ALL - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL - 65 / - 80 + - MAX ( ALL - 91 )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4660
SELECT - 57 DIV - 37 - 43 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4660
SELECT - 57 / - 37 - 43 AS col1
----
-42

query I rowsort
SELECT - 86 * + 34 AS col2
----
-2924

query I rowsort
SELECT ( 43 ) AS col1
----
43

query I rowsort
SELECT ALL 15 * 44 AS col0
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4664
SELECT ALL NULLIF ( + COUNT( DISTINCT NULLIF ( + CAST( - 76 AS SIGNED ), + 87 * CAST( - 84 * - 36 AS SIGNED ) + 13 ) ), 67 + - 79 * + 53 ) * - 19 - 44 * 58
----
-2571

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL NULLIF ( + COUNT ( DISTINCT NULLIF ( + CAST ( - 76 AS INTEGER ), + 87 * CAST ( - 84 * - 36 AS INTEGER ) + 13 ) ), 67 + - 79 * + 53 ) * - 19 - 44 * 58
----
-2571

query I rowsort
SELECT + NULLIF ( + 60, + 45 + 94 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4666
SELECT ( CAST( ( - ( + 30 ) ) AS SIGNED ) )
----
-30

skipif mysql # not compatible
query I rowsort label-4666
SELECT ( CAST ( ( - ( + 30 ) ) AS INTEGER ) )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4667
SELECT COALESCE ( - MAX( DISTINCT + 5 ), 48 DIV + 43, 4 * - 46 ) * 1 + - 74
----
-79

skipif mysql # not compatible
query I rowsort label-4667
SELECT COALESCE ( - MAX ( DISTINCT + 5 ), 48 / + 43, 4 * - 46 ) * 1 + - 74
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT + MIN( DISTINCT 53 ) * + SUM( ( + 78 ) + - 60 ) + + ( 38 + + 13 ) * 71
----
4575

skipif mysql # not compatible
query I rowsort label-4668
SELECT + MIN ( DISTINCT 53 ) * + SUM ( ( + 78 ) + - 60 ) + + ( 38 + + 13 ) * 71
----
4575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4669
SELECT ALL CAST( - 26 AS SIGNED ) * + ( 55 - + 4 )
----
-1326

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL CAST ( - 26 AS INTEGER ) * + ( 55 - + 4 )
----
-1326

query I rowsort
SELECT ALL 37 * - 65 - ( 71 )
----
-2476

query I rowsort
SELECT + NULLIF ( 28, + 83 * - CASE 40 WHEN - 45 THEN 60 WHEN + 47 + 49 * ( 56 ) THEN NULL WHEN + 35 + + 89 THEN - 61 END - 40 ) AS col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4672
SELECT + COUNT( * ) DIV + 36 col1
----
0

skipif mysql # not compatible
query I rowsort label-4672
SELECT + COUNT ( * ) / + 36 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL + COUNT( * ) * 15
----
15

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + COUNT ( * ) * 15
----
15

query I rowsort
SELECT + ( + 11 ) * 27
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL 2 * - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL 2 * - COUNT ( * ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT DISTINCT 13 DIV + 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT 13 / + 51 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT + 54 DIV COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4677
SELECT + 54 / COUNT ( * )
----
54

query I rowsort
SELECT + 60 * + 8
----
480

query I rowsort
SELECT ALL 66 * + 78
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT + 72 - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4680
SELECT + 72 - COUNT ( * ) AS col1
----
71

query I rowsort
SELECT 5 * 52
----
260

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4682
SELECT DISTINCT COUNT( - 13 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT COUNT ( - 13 ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 18 + 66 AS col2
----
84

query I rowsort
SELECT ALL 30 + CASE 40 WHEN + 67 THEN NULL WHEN 10 THEN - 48 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4685
SELECT ALL + CASE WHEN - 16 IN ( 55 / - 47 ) THEN 52 * 29 WHEN NOT NULL = - COUNT( DISTINCT ( 68 ) ) + + CAST( NULL AS SIGNED ) * 89 THEN COUNT( * ) * - ( - CAST( NULL AS SIGNED ) ) END + ( 65 ) * + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL + CASE WHEN - 16 IN ( 55 / - 47 ) THEN 52 * 29 WHEN NOT NULL = - COUNT ( DISTINCT ( 68 ) ) + + CAST ( NULL AS INTEGER ) * 89 THEN COUNT ( * ) * - ( - CAST ( NULL AS INTEGER ) ) END + ( 65 ) * + 9 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT ( CAST( 86 AS SIGNED ) ) * 7
----
602

skipif mysql # not compatible
query I rowsort label-4686
SELECT ( CAST ( 86 AS INTEGER ) ) * 7
----
602

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4687
SELECT ALL + 53 + - CASE 45 WHEN + ( + 91 ) * - NULLIF ( + 4, 83 ) + - 42 THEN + CAST( NULL AS SIGNED ) ELSE + 14 DIV 62 + + 99 END
----
-46

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL + 53 + - CASE 45 WHEN + ( + 91 ) * - NULLIF ( + 4, 83 ) + - 42 THEN + CAST ( NULL AS INTEGER ) ELSE + 14 / 62 + + 99 END
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT COUNT( * ) * - 67 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT COUNT ( * ) * - 67 AS col0
----
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4689
SELECT - COALESCE ( + ( 89 ), + 7 ) - - ( - ( CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT - COALESCE ( + ( 89 ), + 7 ) - - ( - ( CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT MIN( 25 ) + 74
----
99

skipif mysql # not compatible
query I rowsort label-4690
SELECT MIN ( 25 ) + 74
----
99

query I rowsort
SELECT - 25 - - ( + 86 )
----
61

query I rowsort
SELECT - 68 + 32 AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT ALL - - 93 + CAST( 68 AS SIGNED ) AS col0
----
161

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - - 93 + CAST ( 68 AS INTEGER ) AS col0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT COUNT( DISTINCT 65 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4694
SELECT COUNT ( DISTINCT 65 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - CASE NULLIF ( 46, - 60 ) WHEN + 89 - + 58 * + 38 THEN NULL WHEN + COUNT( * ) THEN 69 END * 1 + - 9 / + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT - CASE NULLIF ( 46, - 60 ) WHEN + 89 - + 58 * + 38 THEN NULL WHEN + COUNT ( * ) THEN 69 END * 1 + - 9 / + 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL - + 80 * + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL - + 80 * + COUNT ( * )
----
-80

query I rowsort
SELECT DISTINCT ( - 22 ) + 60 AS col1
----
38

query I rowsort
SELECT DISTINCT - 15 * 57
----
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT + COUNT( * ) + - 35 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4699
SELECT + COUNT ( * ) + - 35 AS col0
----
-34

query I rowsort
SELECT - 27 * + ( - 16 ) AS col2
----
432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT ALL - + CAST( COUNT( * ) AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 28 * - 94 AS col1
----
-2632

query I rowsort
SELECT ALL + 13 * 98 col0
----
1274

query I rowsort
SELECT DISTINCT - 55 * 0 AS col2
----
0

query I rowsort
SELECT + + 74 AS col0
----
74

query I rowsort
SELECT - 21 * + 42 + COALESCE ( - 11 - 46 * + 52, - 10 ) AS col1
----
-3285

query I rowsort
SELECT + 93 * 62 AS col0
----
5766

query I rowsort
SELECT DISTINCT - + 33
----
-33

query I rowsort
SELECT ALL + 63 - - NULLIF ( 92 + + 90, - 2 ) AS col0
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT + 7 * - COUNT( DISTINCT + 31 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4710
SELECT + 7 * - COUNT ( DISTINCT + 31 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT DISTINCT - MIN( + 46 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT - MIN ( + 46 ) AS col0
----
-46

query I rowsort
SELECT ALL - - 60 AS col1
----
60

query I rowsort
SELECT 51 + 80 AS col2
----
131

query I rowsort
SELECT ALL - ( - 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4715
SELECT DISTINCT COUNT( * ) * + 3 DIV 7
----
0

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT COUNT ( * ) * + 3 / 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - COUNT( * ) * - 6 - 65 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4716
SELECT - COUNT ( * ) * - 6 - 65 AS col2
----
-59

query I rowsort
SELECT ALL + 92 * + - 7
----
-644

query I rowsort
SELECT 51 + - 87 * CASE - 24 WHEN - 44 + 98 THEN NULL WHEN NULLIF ( + 69, - 67 ) THEN - 84 WHEN + 46 * + 92 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT 86 + - - 32 - + 2 DIV + 58
----
118

skipif mysql # not compatible
query I rowsort label-4719
SELECT 86 + - - 32 - + 2 / + 58
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4720
SELECT DISTINCT - 83 * - NULLIF ( + NULLIF ( - ( 72 ), CAST( NULL AS SIGNED ) + MAX( DISTINCT 4 ) * 82 ), 6 ) AS col1
----
-5976

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT - 83 * - NULLIF ( + NULLIF ( - ( 72 ), CAST ( NULL AS INTEGER ) + MAX ( DISTINCT 4 ) * 82 ), 6 ) AS col1
----
-5976

query I rowsort
SELECT ALL 66 + + + 83
----
149

query I rowsort
SELECT ALL 25 * + 13 * - 68 AS col1
----
-22100

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT 76 + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4723
SELECT 76 + COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL COUNT( * ) + + + 54 - + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL COUNT ( * ) + + + 54 - + COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT MAX( ALL + ( 87 ) ) + 34
----
121

skipif mysql # not compatible
query I rowsort label-4725
SELECT MAX ( ALL + ( 87 ) ) + 34
----
121

query I rowsort
SELECT ALL - 66 * - 47
----
3102

query I rowsort
SELECT 95 + 43
----
138

query I rowsort
SELECT ALL 12 + + + 90 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL COUNT( + COALESCE ( - 95, 33 + 26 ) ) + ( - 30 ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL COUNT ( + COALESCE ( - 95, 33 + 26 ) ) + ( - 30 ) col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ( - ( COUNT( * ) ) ) + - NULLIF ( - 89 + ( + 59 ), - 81 + + COUNT( * ) * 8 )
----
29

skipif mysql # not compatible
query I rowsort label-4730
SELECT ( - ( COUNT ( * ) ) ) + - NULLIF ( - 89 + ( + 59 ), - 81 + + COUNT ( * ) * 8 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT ALL 59 DIV + NULLIF ( 33, 89 )
----
1

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL 59 / + NULLIF ( 33, 89 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT 85 DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT 85 / + + 86
----
0

query I rowsort
SELECT 20 + - + 14 * - 53
----
762

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT - ( - + 1 ) * + MAX( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4734
SELECT - ( - + 1 ) * + MAX ( ALL + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT + 22 + + COUNT( * ) + + COUNT( * ) * 7
----
30

skipif mysql # not compatible
query I rowsort label-4735
SELECT + 22 + + COUNT ( * ) + + COUNT ( * ) * 7
----
30

query I rowsort
SELECT - - 25 AS col0
----
25

query I rowsort
SELECT DISTINCT 1 * - - 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT DISTINCT + COUNT( * ) - + + CASE 95 WHEN 59 THEN 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT + COUNT ( * ) - + + CASE 95 WHEN 59 THEN 19 END AS col1
----
NULL

query I rowsort
SELECT ALL 19 * 92 * 11 + 91 AS col2
----
19319

query I rowsort
SELECT - 89 * 25 * 92 AS col2
----
-204700

query I rowsort
SELECT DISTINCT - ( + 42 )
----
-42

query I rowsort
SELECT ALL + 28 - + 39 * 56 AS col1
----
-2156

query I rowsort
SELECT ALL ( + 34 ) AS col2
----
34

query I rowsort
SELECT ALL 86 * + - 19 * 29
----
-47386

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT + ( - COUNT( * ) ) - 69 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4745
SELECT + ( - COUNT ( * ) ) - 69 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT + COUNT( * ) * ( 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4746
SELECT + COUNT ( * ) * ( 96 ) AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT CAST( + 2 AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4747
SELECT CAST ( + 2 AS INTEGER ) AS col0
----
2

query I rowsort
SELECT + - 43 col2
----
-43

query I rowsort
SELECT ALL - + ( - + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - 91 * + + 6 * - NULLIF ( - NULLIF ( 57, MAX( 90 ) ), - 83 ) - + COUNT( * ) * - 20 AS col0
----
-31102

skipif mysql # not compatible
query I rowsort label-4750
SELECT - 91 * + + 6 * - NULLIF ( - NULLIF ( 57, MAX ( 90 ) ), - 83 ) - + COUNT ( * ) * - 20 AS col0
----
-31102

query I rowsort
SELECT 63 * + 28 AS col0
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT + COUNT( + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-4752
SELECT + COUNT ( + 45 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT ALL 88 DIV - 63 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL 88 / - 63 AS col0
----
-1

query I rowsort
SELECT 42 * - 97 AS col1
----
-4074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4755
SELECT ALL - ( + CASE ( COUNT( * ) ) WHEN - CAST( COUNT( * ) AS SIGNED ) THEN NULL ELSE + 81 DIV + 21 END )
----
-3

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL - ( + CASE ( COUNT ( * ) ) WHEN - CAST ( COUNT ( * ) AS INTEGER ) THEN NULL ELSE + 81 / + 21 END )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT 70 * + + 57 * + + 25 * ( + COUNT( * ) )
----
99750

skipif mysql # not compatible
query I rowsort label-4756
SELECT 70 * + + 57 * + + 25 * ( + COUNT ( * ) )
----
99750

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL COUNT( * ) * 46 + - 12 + - 37
----
-3

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL COUNT ( * ) * 46 + - 12 + - 37
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT COUNT( * ) + - 68 - + - NULLIF ( 45, - 19 ) * - COUNT( * )
----
-112

skipif mysql # not compatible
query I rowsort label-4758
SELECT COUNT ( * ) + - 68 - + - NULLIF ( 45, - 19 ) * - COUNT ( * )
----
-112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4759
SELECT SUM( + + 22 ) / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT SUM ( + + 22 ) / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT CAST( - 88 AS SIGNED ) * + COUNT( * ) + 91 col0
----
3

skipif mysql # not compatible
query I rowsort label-4760
SELECT CAST ( - 88 AS INTEGER ) * + COUNT ( * ) + 91 col0
----
3

query I rowsort
SELECT DISTINCT - 52 + 12 AS col0
----
-40

query I rowsort
SELECT ALL + 97 * + 21 AS col1
----
2037

query I rowsort
SELECT 60 * + + 8 AS col0
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - COALESCE ( COUNT( * ), - + 40 + SUM( DISTINCT - 91 ), 47 ) * - 12
----
12

skipif mysql # not compatible
query I rowsort label-4764
SELECT - COALESCE ( COUNT ( * ), - + 40 + SUM ( DISTINCT - 91 ), 47 ) * - 12
----
12

query I rowsort
SELECT ALL + 34 + 61 * - 73 AS col2
----
-4419

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT DISTINCT + 52 + + COUNT( * ) * 49
----
101

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT + 52 + + COUNT ( * ) * 49
----
101

query I rowsort
SELECT - 25 * - 70 * - + 76
----
-133000

query I rowsort
SELECT DISTINCT - 52 + + 96 + + + 42 * - 97 col1
----
-4030

onlyif mysql # aggregate syntax: 
query II rowsort label-4769
SELECT DISTINCT COUNT( * ), - 16 * - COUNT( 16 ) AS col0
----
1
16

skipif mysql # not compatible
query II rowsort label-4769
SELECT DISTINCT COUNT ( * ), - 16 * - COUNT ( 16 ) AS col0
----
1
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL COALESCE ( + - 78, + 21, 64 ) + - CAST( 81 AS SIGNED ) AS col1
----
-159

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL COALESCE ( + - 78, + 21, 64 ) + - CAST ( 81 AS INTEGER ) AS col1
----
-159

query I rowsort
SELECT ALL 71 * - 58 AS col0
----
-4118

query II rowsort
SELECT - 18, ( + 96 ) + + 66 AS col2
----
-18
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT - 89 + + + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4773
SELECT - 89 + + + COUNT ( * ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT - 95 * + - CASE 71 WHEN - 61 / 35 THEN AVG ( 33 ) WHEN - 62 * COALESCE ( 47 * 5, - COALESCE ( - 88, 88 * + 8, 8 ) * + AVG ( 23 ) ) + COUNT( * ) THEN NULL END * 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT - 95 * + - CASE 71 WHEN - 61 / 35 THEN AVG ( 33 ) WHEN - 62 * COALESCE ( 47 * 5, - COALESCE ( - 88, 88 * + 8, 8 ) * + AVG ( 23 ) ) + COUNT ( * ) THEN NULL END * 57 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 44 + + + 9 AS col2
----
-35

query I rowsort
SELECT ALL - 35 * - - 81
----
-2835

query I rowsort
SELECT DISTINCT - ( + + 64 ) * - 60 * - 74 AS col0
----
-284160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT DISTINCT - 70 * - CAST( - + 53 AS SIGNED )
----
-3710

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT - 70 * - CAST ( - + 53 AS INTEGER )
----
-3710

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL + + 9 - COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL + + 9 - COUNT ( * ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL MIN( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL MIN ( + 36 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4781
SELECT - CAST( + COALESCE ( 78, + 29 * - MAX( ALL 98 * + NULLIF ( 84, 46 ) ) + + COUNT( * ), COUNT( * ) ) AS SIGNED ) + COUNT( 96 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4781
SELECT - CAST ( + COALESCE ( 78, + 29 * - MAX ( ALL 98 * + NULLIF ( 84, 46 ) ) + + COUNT ( * ), COUNT ( * ) ) AS INTEGER ) + COUNT ( 96 ) AS col0
----
-77

query I rowsort
SELECT ALL + 57 - 99
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - - 82 + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4783
SELECT - - 82 + + COUNT ( * )
----
83

query I rowsort
SELECT - + 7 + 64
----
57

query I rowsort
SELECT - 62 * - 28
----
1736

query I rowsort
SELECT + 36 * 13 AS col2
----
468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4787
SELECT + CASE - 6 WHEN - + 77 + + 82 DIV - COUNT( * ) THEN - 23 ELSE 87 END DIV 36 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4787
SELECT + CASE - 6 WHEN - + 77 + + 82 / - COUNT ( * ) THEN - 23 ELSE 87 END / 36 AS col2
----
2

query I rowsort
SELECT DISTINCT + 5 * 47
----
235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT ALL CAST( NULL AS SIGNED ) * - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL CAST ( NULL AS INTEGER ) * - + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT COUNT( * ) * - - ( - 87 ) + ( ( + 97 ) )
----
10

skipif mysql # not compatible
query I rowsort label-4790
SELECT COUNT ( * ) * - - ( - 87 ) + ( ( + 97 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT + - COUNT( * ) / + COUNT( * ) + + - CASE - NULLIF ( + COUNT( * ), 74 ) WHEN 17 + - 7 THEN + 66 * COUNT( * ) WHEN - 59 THEN - 64 * - ( 84 * - COUNT( * ) ) END + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT + - COUNT ( * ) / + COUNT ( * ) + + - CASE - NULLIF ( + COUNT ( * ), 74 ) WHEN 17 + - 7 THEN + 66 * COUNT ( * ) WHEN - 59 THEN - 64 * - ( 84 * - COUNT ( * ) ) END + 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL + CASE 53 WHEN + AVG ( - 55 ) + 50 THEN NULL ELSE - COUNT( ALL + 83 ) * - 63 END AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL + CASE 53 WHEN + AVG ( - 55 ) + 50 THEN NULL ELSE - COUNT ( ALL + 83 ) * - 63 END AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT + CAST( - 78 AS SIGNED ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4793
SELECT + CAST ( - 78 AS INTEGER ) AS col1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4794
SELECT DISTINCT - - 68 * 35 + - 97 - - 77 DIV + 74
----
2284

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT - - 68 * 35 + - 97 - - 77 / + 74
----
2284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4795
SELECT ALL + + 56 AS col2, 47 - + CASE 25 WHEN + CASE + CAST( 77 AS SIGNED ) WHEN 54 THEN MIN( 1 ) WHEN - 81 - 26 THEN NULL END THEN + COUNT( * ) END - 58
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4795
SELECT ALL + + 56 AS col2, 47 - + CASE 25 WHEN + CASE + CAST ( 77 AS INTEGER ) WHEN 54 THEN MIN ( 1 ) WHEN - 81 - 26 THEN NULL END THEN + COUNT ( * ) END - 58
----
56
NULL

query II rowsort
SELECT + 35 AS col1, 32
----
35
32

query I rowsort
SELECT ALL 68 * - 26 * - + 34 + 11
----
60123

query I rowsort
SELECT + CASE - 32 WHEN - + 48 THEN + 54 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ( COUNT( - - 16 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4799
SELECT ( COUNT ( - - 16 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT - COUNT( - 25 ) * - 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4800
SELECT - COUNT ( - 25 ) * - 6 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4801
SELECT + 5 DIV + + 41 + - ( - COUNT( * ) ) * 69
----
69

skipif mysql # not compatible
query I rowsort label-4801
SELECT + 5 / + + 41 + - ( - COUNT ( * ) ) * 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT ALL MAX( ALL - - 67 ) * 98 * - 57 * 9 + NULLIF ( 22, + 46 * ( + 1 ) )
----
-3368336

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL MAX ( ALL - - 67 ) * 98 * - 57 * 9 + NULLIF ( 22, + 46 * ( + 1 ) )
----
-3368336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT + CAST( NULL AS SIGNED ) + - 16 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT + CAST ( NULL AS INTEGER ) + - 16 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT DISTINCT 80 * + COUNT( * ) + - - 48 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT 80 * + COUNT ( * ) + - - 48 AS col1
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-4805
SELECT + COALESCE ( - 79, + 30 ) + - 94 - 99 DIV - 5 AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-4805
SELECT + COALESCE ( - 79, + 30 ) + - 94 - 99 / - 5 AS col1
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-4806
SELECT DISTINCT 48 DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT 48 / 86 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4807
SELECT ALL 92 * - 60 * - CASE + COUNT( ALL + 72 ) WHEN 23 THEN + CAST( + 46 AS DECIMAL ) * + CASE 75 WHEN 32 * - 95 THEN - 51 * 95 END ELSE NULL END + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL 92 * - 60 * - CASE + COUNT ( ALL + 72 ) WHEN 23 THEN + CAST ( + 46 AS REAL ) * + CASE 75 WHEN 32 * - 95 THEN - 51 * 95 END ELSE NULL END + 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4808
SELECT ALL + COALESCE ( - + 50, COUNT( * ) DIV + 70 - - 47 * COALESCE ( + ( + 21 ) DIV 55, 11 + 13 * ( - 37 ), 92 + COALESCE ( - 41, COALESCE ( - CAST( COUNT( - 65 ) AS SIGNED ), + ( + 9 ) ) + - 43 ) DIV SUM( + 8 ) ) ) * 31
----
-1550

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL + COALESCE ( - + 50, COUNT ( * ) / + 70 - - 47 * COALESCE ( + ( + 21 ) / 55, 11 + 13 * ( - 37 ), 92 + COALESCE ( - 41, COALESCE ( - CAST ( COUNT ( - 65 ) AS INTEGER ), + ( + 9 ) ) + - 43 ) / SUM ( + 8 ) ) ) * 31
----
-1550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT COALESCE ( + ( - CAST( + + COUNT( * ) AS SIGNED ) ), 42 * ( 42 * - 79 ), + 95 + - ( + COALESCE ( + 89, 57 * - 53 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4809
SELECT COALESCE ( + ( - CAST ( + + COUNT ( * ) AS INTEGER ) ), 42 * ( 42 * - 79 ), + 95 + - ( + COALESCE ( + 89, 57 * - 53 ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT + CASE - MAX( + 59 ) WHEN - + ( - 36 ) THEN 37 WHEN + COUNT( * ) * + 39 THEN NULL ELSE NULL END + + 22 * 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT + CASE - MAX ( + 59 ) WHEN - + ( - 36 ) THEN 37 WHEN + COUNT ( * ) * + 39 THEN NULL ELSE NULL END + + 22 * 87 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4811
SELECT - NULLIF ( - - ( 99 ), + 37 * COUNT( * ) ) * - 59 - COUNT( * ) * + MIN( ALL - 88 * NULLIF ( ( 84 ) DIV - 47, 78 ) )
----
5753

skipif mysql # not compatible
query I rowsort label-4811
SELECT - NULLIF ( - - ( 99 ), + 37 * COUNT ( * ) ) * - 59 - COUNT ( * ) * + MIN ( ALL - 88 * NULLIF ( ( 84 ) / - 47, 78 ) )
----
5753

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4812
SELECT DISTINCT COUNT( * ) * - CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT COUNT ( * ) * - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT - 71 + - 32
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL + CASE - - 76 WHEN - CASE + 11 WHEN 60 THEN 96 WHEN + ( 2 ) * 44 THEN - 17 * 2 + + 46 * + 44 END - + 48 / 36 THEN + COUNT( ALL 72 ) * 38 WHEN - 70 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + CASE - - 76 WHEN - CASE + 11 WHEN 60 THEN 96 WHEN + ( 2 ) * 44 THEN - 17 * 2 + + 46 * + 44 END - + 48 / 36 THEN + COUNT ( ALL 72 ) * 38 WHEN - 70 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4815
SELECT - 47 + COUNT( * ) - - 11 - - COUNT( * ) DIV COALESCE ( CASE 51 WHEN 71 - + 25 THEN NULL ELSE - CAST( NULL AS SIGNED ) END, 10 )
----
-35

skipif mysql # not compatible
query I rowsort label-4815
SELECT - 47 + COUNT ( * ) - - 11 - - COUNT ( * ) / COALESCE ( CASE 51 WHEN 71 - + 25 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END, 10 )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4816
SELECT DISTINCT ( - + COALESCE ( MAX( CAST( NULL AS SIGNED ) ), 9 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT ( - + COALESCE ( MAX ( CAST ( NULL AS INTEGER ) ), 9 ) )
----
-9

query II rowsort
SELECT ALL ( + + 37 ) AS col0, - 79 AS col2
----
37
-79

query I rowsort
SELECT ALL + - ( + 63 ) - 28 + 67 col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - ( + + CASE + COUNT( * ) WHEN - COUNT( DISTINCT 64 ) THEN 71 * COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - ( + + CASE + COUNT ( * ) WHEN - COUNT ( DISTINCT 64 ) THEN 71 * COUNT ( * ) END )
----
NULL

query I rowsort
SELECT - - 97 + + ( + 0 )
----
97

query I rowsort
SELECT - 80 * + 58 AS col2
----
-4640

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT - ( - - 67 ) + - 5 DIV 16 col2
----
-67

skipif mysql # not compatible
query I rowsort label-4822
SELECT - ( - - 67 ) + - 5 / 16 col2
----
-67

query I rowsort
SELECT - + 20 * + + 85 * + 68
----
-115600

query I rowsort
SELECT DISTINCT + + 69 * - NULLIF ( + 54, 31 ) AS col2
----
-3726

query I rowsort
SELECT + NULLIF ( + 81, 96 ) AS col1
----
81

query I rowsort
SELECT ALL + - 2 * 92 * - 90
----
16560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4827
SELECT DISTINCT - MIN( 22 ), + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) - + 81 * - 2 AS col2
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-4827
SELECT DISTINCT - MIN ( 22 ), + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) - + 81 * - 2 AS col2
----
-22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT + NULLIF ( 41, - COUNT( * ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4828
SELECT + NULLIF ( 41, - COUNT ( * ) ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL + - 27 + - 8 + + NULLIF ( 47, MIN( DISTINCT + 65 ) )
----
12

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL + - 27 + - 8 + + NULLIF ( 47, MIN ( DISTINCT + 65 ) )
----
12

query I rowsort
SELECT - 53 - - 38 AS col2
----
-15

query I rowsort
SELECT DISTINCT 67 + 92 col2
----
159

query II rowsort
SELECT ALL - 41, - 49 AS col0
----
-41
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL COUNT( * ) + 73 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL COUNT ( * ) + 73 AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT ALL + 34 DIV - + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL + 34 / - + 75 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT DISTINCT - COALESCE ( 72, - CAST( 31 AS SIGNED ) + + - COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT - COALESCE ( 72, - CAST ( 31 AS INTEGER ) + + - COUNT ( * ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT COUNT( - - ( 26 ) ) - 81 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-4836
SELECT COUNT ( - - ( 26 ) ) - 81 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL MAX( DISTINCT - 78 ) * + 31 * - + 37
----
89466

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL MAX ( DISTINCT - 78 ) * + 31 * - + 37
----
89466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4838
SELECT ALL 7 * - 29 / COALESCE ( - 50, + - 40 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL 7 * - 29 / COALESCE ( - 50, + - 40 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 66 + + 80
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4840
SELECT MIN( - CAST( 57 AS SIGNED ) ) + - 28 + - - 72
----
-13

skipif mysql # not compatible
query I rowsort label-4840
SELECT MIN ( - CAST ( 57 AS INTEGER ) ) + - 28 + - - 72
----
-13

query I rowsort
SELECT COALESCE ( + 12, + 88 ) * 59 AS col0
----
708

query I rowsort
SELECT 56 col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT 24 - - COALESCE ( + NULLIF ( 58, ( 40 ) * 74 ), + 96, MAX( + 22 ) + 9, MAX( DISTINCT 29 ) )
----
82

skipif mysql # not compatible
query I rowsort label-4843
SELECT 24 - - COALESCE ( + NULLIF ( 58, ( 40 ) * 74 ), + 96, MAX ( + 22 ) + 9, MAX ( DISTINCT 29 ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL - MAX( DISTINCT 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL - MAX ( DISTINCT 89 )
----
-89

query I rowsort
SELECT 14 + + 64 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT DISTINCT - 27 - CASE WHEN NOT 93 NOT IN ( COUNT( * ) ) THEN - 61 ELSE NULL END - + MIN( ALL + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT - 27 - CASE WHEN NOT 93 NOT IN ( COUNT ( * ) ) THEN - 61 ELSE NULL END - + MIN ( ALL + 65 )
----
NULL

query I rowsort
SELECT ALL + 32 * + + 14
----
448

query I rowsort
SELECT 69 * - 75
----
-5175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4849
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, - 48
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-4849
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - 48
----
NULL
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT 40 * - - COUNT( * ) + + ( - 77 ) + 6 + 85 * + 7
----
564

skipif mysql # not compatible
query I rowsort label-4850
SELECT 40 * - - COUNT ( * ) + + ( - 77 ) + 6 + 85 * + 7
----
564

query I rowsort
SELECT NULLIF ( - - 8, 60 + - 44 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT - MIN( 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT - MIN ( 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT ALL 52 * + 50 + - COUNT( * ) + - + 27 AS col2
----
2572

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL 52 * + 50 + - COUNT ( * ) + - + 27 AS col2
----
2572

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT COUNT( * ) + - COUNT( ALL 43 ) - - 43 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4854
SELECT COUNT ( * ) + - COUNT ( ALL 43 ) - - 43 AS col1
----
43

query II rowsort
SELECT ALL 52 col2, 91
----
52
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT - - CAST( + + 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-4856
SELECT - - CAST ( + + 6 AS INTEGER )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT 71 - + - SUM( DISTINCT + + 36 ) * + COUNT( * )
----
107

skipif mysql # not compatible
query I rowsort label-4857
SELECT 71 - + - SUM ( DISTINCT + + 36 ) * + COUNT ( * )
----
107

query I rowsort
SELECT DISTINCT 36 + - 95 AS col0
----
-59

query I rowsort
SELECT DISTINCT + 97 + 63 AS col2
----
160

query I rowsort
SELECT DISTINCT + 86 + + - 30 AS col1
----
56

query I rowsort
SELECT - - 10 AS col0
----
10

query I rowsort
SELECT ALL 25 col0
----
25

query I rowsort
SELECT - 51 + - 56
----
-107

query I rowsort
SELECT 87 - - + 41 AS col0
----
128

query I rowsort
SELECT + CASE 75 WHEN - - ( + 69 ) THEN NULL WHEN + - 87 THEN NULL ELSE - 21 END
----
-21

query I rowsort
SELECT ALL + 38 + - + 34
----
4

query I rowsort
SELECT 70 * + 7
----
490

onlyif mysql # aggregate syntax: 
query II rowsort label-4868
SELECT ALL - 75 + + 23 * + SUM( - + 2 ) AS col0, 55 + + 67 AS col0
----
-121
122

skipif mysql # not compatible
query II rowsort label-4868
SELECT ALL - 75 + + 23 * + SUM ( - + 2 ) AS col0, 55 + + 67 AS col0
----
-121
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL - MAX( ALL + + 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL - MAX ( ALL + + 6 ) AS col0
----
-6

query I rowsort
SELECT DISTINCT - 93 + - 9
----
-102

query II rowsort
SELECT ALL - 60 AS col1, 29 + + 55 - + 55
----
-60
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT 14 * - - CAST( - 5 AS SIGNED ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-4872
SELECT 14 * - - CAST ( - 5 AS INTEGER ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4873
SELECT 28 AS col0, + 55 * - + COUNT( * )
----
28
-55

skipif mysql # not compatible
query II rowsort label-4873
SELECT 28 AS col0, + 55 * - + COUNT ( * )
----
28
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4874
SELECT + 61, COUNT( * ) AS col2
----
61
1

skipif mysql # not compatible
query II rowsort label-4874
SELECT + 61, COUNT ( * ) AS col2
----
61
1

query I rowsort
SELECT 33 + + + 41
----
74

query I rowsort
SELECT ALL 12 - 81 * 49 AS col0
----
-3957

onlyif mysql # DIV for integer division: 
query I rowsort label-4877
SELECT 4 DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4877
SELECT 4 / 70 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4878
SELECT ALL - 3 DIV + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - 3 / + COUNT ( * )
----
-3

query I rowsort
SELECT 11 + + 60
----
71

query I rowsort
SELECT - 27 * + 97 + + - 95 + - 31 * - 61
----
-823

query I rowsort
SELECT ALL - ( ( 6 ) )
----
-6

query II rowsort
SELECT ALL - 94 AS col0, 46
----
-94
46

query II rowsort
SELECT DISTINCT - 97, + 5 AS col2
----
-97
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT DISTINCT CASE + 47 WHEN 49 + 29 THEN 72 WHEN + + 39 THEN 2 - - CAST( NULL AS SIGNED ) ELSE + 3 + - 80 END * COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT CASE + 47 WHEN 49 + 29 THEN 72 WHEN + + 39 THEN 2 - - CAST ( NULL AS INTEGER ) ELSE + 3 + - 80 END * COUNT ( * )
----
-77

query I rowsort
SELECT + ( + 27 ) + - 61 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT - COUNT( * ) * 38 + + COALESCE ( - - ( 61 ), - + 13 ) * - 13 AS col0
----
-831

skipif mysql # not compatible
query I rowsort label-4886
SELECT - COUNT ( * ) * 38 + + COALESCE ( - - ( 61 ), - + 13 ) * - 13 AS col0
----
-831

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT + - 17, + 11 + + COUNT( * ) AS col1
----
-17
12

skipif mysql # not compatible
query II rowsort label-4887
SELECT + - 17, + 11 + + COUNT ( * ) AS col1
----
-17
12

query I rowsort
SELECT + 75 + + 55 AS col0
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-4889
SELECT ( - COUNT( * ) ) * + 36 + - 70, 84 * + 24 * + 39 AS col0
----
-106
78624

skipif mysql # not compatible
query II rowsort label-4889
SELECT ( - COUNT ( * ) ) * + 36 + - 70, 84 * + 24 * + 39 AS col0
----
-106
78624

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL 59 + - 17 - 7 * - 18 - + ( - + MIN( + 66 ) )
----
234

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL 59 + - 17 - 7 * - 18 - + ( - + MIN ( + 66 ) )
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT - 42 + + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-4891
SELECT - 42 + + + COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL 86 + - CASE - 59 WHEN 45 * + COUNT( * ) * - 7 * SUM( ALL 69 ) THEN + 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL 86 + - CASE - 59 WHEN 45 * + COUNT ( * ) * - 7 * SUM ( ALL 69 ) THEN + 17 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 25 + ( 74 ) AS col2
----
99

query II rowsort
SELECT - - 32 AS col1, - 14 * 16 * - 82
----
32
18368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4895
SELECT ALL + - 39 + 25 + 75 DIV + CASE + + COUNT( * ) WHEN 37 THEN 8 WHEN + COUNT( * ) THEN 66 ELSE - 2 END
----
-13

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + - 39 + 25 + 75 / + CASE + + COUNT ( * ) WHEN 37 THEN 8 WHEN + COUNT ( * ) THEN 66 ELSE - 2 END
----
-13

query II rowsort
SELECT - - 63 AS col2, 17
----
63
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4897
SELECT + COUNT( * ) AS col2, - 5
----
1
-5

skipif mysql # not compatible
query II rowsort label-4897
SELECT + COUNT ( * ) AS col2, - 5
----
1
-5

query I rowsort
SELECT 66 * 70 + - 24 - ( 47 )
----
4549

query I rowsort
SELECT + + 18 * - + 91
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT - - 13 + + - COUNT( * ) * + 37 + - 56 * + 34 AS col2
----
-1928

skipif mysql # not compatible
query I rowsort label-4900
SELECT - - 13 + + - COUNT ( * ) * + 37 + - 56 * + 34 AS col2
----
-1928

query I rowsort
SELECT - + 38 + 72 * - 12 + + + 13 + - - 58
----
-831

query I rowsort
SELECT + ( + 88 ) * + - 35
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL COUNT( * ) * 15 + + NULLIF ( + 82, - 39 / MIN( DISTINCT 93 ) )
----
97

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL COUNT ( * ) * 15 + + NULLIF ( + 82, - 39 / MIN ( DISTINCT 93 ) )
----
97

query I rowsort
SELECT + ( + + 72 ) * - 10
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL 91 - - - SUM( DISTINCT + 19 ) + ( - + 12 ) * CASE + 6 WHEN - MAX( ALL + 99 ) THEN 78 ELSE NULL END * - MIN( 61 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL 91 - - - SUM ( DISTINCT + 19 ) + ( - + 12 ) * CASE + 6 WHEN - MAX ( ALL + 99 ) THEN 78 ELSE NULL END * - MIN ( 61 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4906
SELECT DISTINCT SUM( ALL + 98 ) AS col2, - COUNT( ALL - 91 ) + - + 14 col2
----
98
-15

skipif mysql # not compatible
query II rowsort label-4906
SELECT DISTINCT SUM ( ALL + 98 ) AS col2, - COUNT ( ALL - 91 ) + - + 14 col2
----
98
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT DISTINCT COALESCE ( - 58, CAST( - 63 AS SIGNED ) * - 48 )
----
-58

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT COALESCE ( - 58, CAST ( - 63 AS INTEGER ) * - 48 )
----
-58

query I rowsort
SELECT - 78 * + + 44 AS col2
----
-3432

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT ALL MIN( ALL + 43 ), + 35 col2
----
43
35

skipif mysql # not compatible
query II rowsort label-4909
SELECT ALL MIN ( ALL + 43 ), + 35 col2
----
43
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT + COUNT( * ) - 99
----
-98

skipif mysql # not compatible
query I rowsort label-4910
SELECT + COUNT ( * ) - 99
----
-98

query I rowsort
SELECT ( - ( + + 60 ) ) AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT 80 * + + CASE - 86 WHEN - + 38 + - 75 + + 65 + 52 * MAX( + 51 * 27 ) THEN + CAST( SUM( 35 ) AS SIGNED ) + 82 ELSE NULL END * + 63 + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT 80 * + + CASE - 86 WHEN - + 38 + - 75 + + 65 + 52 * MAX ( + 51 * 27 ) THEN + CAST ( SUM ( 35 ) AS INTEGER ) + 82 ELSE NULL END * + 63 + 56
----
NULL

query I rowsort
SELECT NULLIF ( - 10, - 52 * + 49 * 34 + 65 + - 57 + 47 ) AS col0
----
-10

query I rowsort
SELECT - 42 * - - ( 70 ) AS col1
----
-2940

query II rowsort
SELECT - 48 + + - 93 AS col1, 82 AS col1
----
-141
82

query I rowsort
SELECT DISTINCT 83 * - 54 col0
----
-4482

query I rowsort
SELECT - 12 * + 92
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL + SUM( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL + SUM ( - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT COALESCE ( + 38, - - COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-4919
SELECT COALESCE ( + 38, - - COUNT ( * ) )
----
38

query I rowsort
SELECT DISTINCT + CASE - + COALESCE ( 38, 97, + 69 ) WHEN + - 49 * + + 95 + + 75 * 54 THEN - 38 * + 92 + 67 END
----
NULL

query I rowsort
SELECT - 76 * + 34 AS col2
----
-2584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4922
SELECT COUNT( * ) * 6 * - + 70 + - - 23 DIV + 12 + 25 + + COUNT( - 64 ) AS col2
----
-393

skipif mysql # not compatible
query I rowsort label-4922
SELECT COUNT ( * ) * 6 * - + 70 + - - 23 / + 12 + 25 + + COUNT ( - 64 ) AS col2
----
-393

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT + MIN( + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-4923
SELECT + MIN ( + 60 )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4924
SELECT COUNT( DISTINCT + 47 ) AS col2, - 62
----
1
-62

skipif mysql # not compatible
query II rowsort label-4924
SELECT COUNT ( DISTINCT + 47 ) AS col2, - 62
----
1
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4925
SELECT ALL + 86 * 75 + CASE + + 37 WHEN ( CASE - COUNT( * ) WHEN - 57 * + 74 - + COALESCE ( 88, + ( + CAST( NULL AS SIGNED ) ) * - 98, 49 * 11 ) THEN 59 WHEN + 0 THEN - 13 * 60 END ) THEN - 70 ELSE NULL END * - NULLIF ( 80 + + 45, COUNT( * ) * NULLIF ( + MAX( ( 63 ) ) / + 43, 51 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + 86 * 75 + CASE + + 37 WHEN ( CASE - COUNT ( * ) WHEN - 57 * + 74 - + COALESCE ( 88, + ( + CAST ( NULL AS INTEGER ) ) * - 98, 49 * 11 ) THEN 59 WHEN + 0 THEN - 13 * 60 END ) THEN - 70 ELSE NULL END * - NULLIF ( 80 + + 45, COUNT ( * ) * NULLIF ( + MAX ( ( 63 ) ) / + 43, 51 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT - 4 DIV 19 col1
----
0

skipif mysql # not compatible
query I rowsort label-4926
SELECT - 4 / 19 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4927
SELECT + MIN( ALL 3 ) DIV + 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT + MIN ( ALL 3 ) / + 53 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT - NULLIF ( 86, 55 + 61 ) * + + MIN( - 87 ) + + ( - 83 )
----
7399

skipif mysql # not compatible
query I rowsort label-4928
SELECT - NULLIF ( 86, 55 + 61 ) * + + MIN ( - 87 ) + + ( - 83 )
----
7399

query II rowsort
SELECT - 31 + - 53 AS col1, 90 * - - ( + 58 ) AS col1
----
-84
5220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4930
SELECT - + 83 / 8 * ( - CASE SUM( + + CAST( NULL AS SIGNED ) ) WHEN + 23 THEN 67 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT - + 83 / 8 * ( - CASE SUM ( + + CAST ( NULL AS INTEGER ) ) WHEN + 23 THEN 67 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT + COUNT( * ) * - 73 + + 3 + COUNT( * ) + 30 + 44 * 97 * - 3
----
-12843

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT + COUNT ( * ) * - 73 + + 3 + COUNT ( * ) + 30 + 44 * 97 * - 3
----
-12843

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT SUM( - 91 ), 39 AS col2
----
-91
39

skipif mysql # not compatible
query II rowsort label-4932
SELECT SUM ( - 91 ), 39 AS col2
----
-91
39

query I rowsort
SELECT ALL - ( - - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT - ( - - COUNT( - + ( - 49 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4934
SELECT - ( - - COUNT ( - + ( - 49 ) ) ) AS col1
----
-1

query II rowsort
SELECT - - 47 + + - 3 AS col1, - 92
----
44
-92

query I rowsort
SELECT + 89 * 38 * 87 AS col0
----
294234

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT CASE 31 WHEN + MAX( 34 ) THEN - CASE + ( - - 71 ) WHEN + 32 - 26 * 20 THEN + 65 * ( 77 ) ELSE NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT CASE 31 WHEN + MAX ( 34 ) THEN - CASE + ( - - 71 ) WHEN + 32 - 26 * 20 THEN + 65 * ( 77 ) ELSE NULL END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + - COUNT( * ) + - - 88 col0
----
87

skipif mysql # not compatible
query I rowsort label-4938
SELECT + - COUNT ( * ) + - - 88 col0
----
87

query I rowsort
SELECT ALL 91 - + 18 * 52
----
-845

query I rowsort
SELECT - ( + 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT + MIN( DISTINCT - - 75 ) + - - COUNT( - - 96 )
----
76

skipif mysql # not compatible
query I rowsort label-4941
SELECT + MIN ( DISTINCT - - 75 ) + - - COUNT ( - - 96 )
----
76

query I rowsort
SELECT ALL 84 * 65 * + 5
----
27300

query I rowsort
SELECT + 55 - + 42 AS col2
----
13

query I rowsort
SELECT - CASE WHEN NOT ( NULLIF ( 78, - 30 * + 23 ) ) IS NULL THEN + 60 END AS col0
----
-60

query I rowsort
SELECT - 31 - - 95 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL 37 * - MAX( ALL - 78 ) * ( 6 )
----
17316

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL 37 * - MAX ( ALL - 78 ) * ( 6 )
----
17316

query I rowsort
SELECT - 49 * 92
----
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT - COUNT( * ) + + 47
----
46

skipif mysql # not compatible
query I rowsort label-4948
SELECT - COUNT ( * ) + + 47
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL COALESCE ( - NULLIF ( + 49, + - MIN( + 22 ) * + 54 + - 30 ), - - 33 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL COALESCE ( - NULLIF ( + 49, + - MIN ( + 22 ) * + 54 + - 30 ), - - 33 ) AS col0
----
-49

query I rowsort
SELECT DISTINCT 42 * - 34 AS col1
----
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + 13 * - ( MAX( ALL + 72 ) )
----
-936

skipif mysql # not compatible
query I rowsort label-4951
SELECT + 13 * - ( MAX ( ALL + 72 ) )
----
-936

query I rowsort
SELECT + 71 + - 53
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - 89 * SUM( 32 ) AS col1
----
-2848

skipif mysql # not compatible
query I rowsort label-4953
SELECT - 89 * SUM ( 32 ) AS col1
----
-2848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4954
SELECT DISTINCT 13 / + 56 + - + 94 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT 13 / + 56 + - + 94 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + - 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL + SUM( 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL + SUM ( 27 ) AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4957
SELECT + CAST( NULL AS SIGNED ) AS col0, - ( - + 70 )
----
NULL
70

skipif mysql # not compatible
query II rowsort label-4957
SELECT + CAST ( NULL AS INTEGER ) AS col0, - ( - + 70 )
----
NULL
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4958
SELECT 13 * + ( + CASE + + 82 WHEN - - NULLIF ( - ( - COUNT( * ) ), + 25 - 80 * + 28 ) THEN COUNT( * ) DIV - 37 WHEN + ( - 32 ) THEN - 1 ELSE + 23 END ) + - COUNT( * ) AS col0
----
298

skipif mysql # not compatible
query I rowsort label-4958
SELECT 13 * + ( + CASE + + 82 WHEN - - NULLIF ( - ( - COUNT ( * ) ), + 25 - 80 * + 28 ) THEN COUNT ( * ) / - 37 WHEN + ( - 32 ) THEN - 1 ELSE + 23 END ) + - COUNT ( * ) AS col0
----
298

query I rowsort
SELECT 41 * - 73 * - 76 * 59 + + 47
----
13420659

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4960
SELECT DISTINCT + MIN( 83 ) DIV - 29 + + + ( + - 41 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT + MIN ( 83 ) / - 29 + + + ( + - 41 ) col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT CAST( - - 47 AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4961
SELECT CAST ( - - 47 AS INTEGER ) AS col1
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4962
SELECT DISTINCT + + 36 AS col0, 75 * + CAST( NULL AS DECIMAL )
----
36
NULL

skipif mysql # not compatible
query II rowsort label-4962
SELECT DISTINCT + + 36 AS col0, 75 * + CAST ( NULL AS REAL )
----
36
NULL

query I rowsort
SELECT - + 87 + 61 col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4964
SELECT DISTINCT - + 13 DIV - ( - + MAX( DISTINCT + - 96 ) ) + 44 * + SUM( ALL 36 ) + 94 + 16 * + COUNT( * ) AS col2
----
1694

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT - + 13 / - ( - + MAX ( DISTINCT + - 96 ) ) + 44 * + SUM ( ALL 36 ) + 94 + 16 * + COUNT ( * ) AS col2
----
1694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4965
SELECT + 76 * 85 * 15 DIV + - 20 + - ( + - 49 ) * + + NULLIF ( 51, 57 * - ( 36 * 70 ) ) + COUNT( * ) * 8
----
-2338

skipif mysql # not compatible
query I rowsort label-4965
SELECT + 76 * 85 * 15 / + - 20 + - ( + - 49 ) * + + NULLIF ( 51, 57 * - ( 36 * 70 ) ) + COUNT ( * ) * 8
----
-2338

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT + COUNT( * ) col2, 83 * + - 42
----
1
-3486

skipif mysql # not compatible
query II rowsort label-4966
SELECT + COUNT ( * ) col2, 83 * + - 42
----
1
-3486

query I rowsort
SELECT ALL - - 21 col0
----
21

query I rowsort
SELECT 92 + - 69 * 88
----
-5980

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4969
SELECT ALL + 66 - - 8 + + 86, - 44 AS col2, - CAST( + 34 AS SIGNED ) AS col0
----
160
-44
-34

skipif mysql # not compatible
query III rowsort label-4969
SELECT ALL + 66 - - 8 + + 86, - 44 AS col2, - CAST ( + 34 AS INTEGER ) AS col0
----
160
-44
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4970
SELECT - CAST( + MIN( DISTINCT + - 5 ) AS SIGNED ) * - + COUNT( * ) + - ( 14 )
----
-19

skipif mysql # not compatible
query I rowsort label-4970
SELECT - CAST ( + MIN ( DISTINCT + - 5 ) AS INTEGER ) * - + COUNT ( * ) + - ( 14 )
----
-19

query I rowsort
SELECT - 31 * + 79 AS col0
----
-2449

query I rowsort
SELECT ALL + 16 * + + 96
----
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL + - 76 - - - 93 * + 58 + - MIN( DISTINCT 17 )
----
-5487

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + - 76 - - - 93 * + 58 + - MIN ( DISTINCT 17 )
----
-5487

query I rowsort
SELECT - + ( + 2 )
----
-2

query I rowsort
SELECT - 63 * 16 + 38
----
-970

query II rowsort
SELECT 8 * + 79 AS col2, 85 AS col0
----
632
85

query I rowsort
SELECT 14 + - 10
----
4

query I rowsort
SELECT 85 * + + 35 AS col2
----
2975

query I rowsort
SELECT DISTINCT 41 col0
----
41

query I rowsort
SELECT 98 * 79 AS col1
----
7742

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT COUNT( * ) + 8 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4981
SELECT COUNT ( * ) + 8 AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4982
SELECT COUNT( * ) * - - 50, + 53 + + + MIN( ALL CAST( NULL AS SIGNED ) ) col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-4982
SELECT COUNT ( * ) * - - 50, + 53 + + + MIN ( ALL CAST ( NULL AS INTEGER ) ) col0
----
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT ALL CASE - - 39 WHEN - - 34 THEN - - ( + 9 ) WHEN + - 48 - SUM( - 66 ) + 77 * + 83 THEN NULL WHEN 38 THEN - 58 END * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL CASE - - 39 WHEN - - 34 THEN - - ( + 9 ) WHEN + - 48 - SUM ( - 66 ) + 77 * + 83 THEN NULL WHEN 38 THEN - 58 END * - 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4984
SELECT COUNT( * ) DIV - COALESCE ( - + 63, 90 * 16 * NULLIF ( + 59, - 71 + + NULLIF ( 30, 21 + 12 ) ) DIV + 82 ) * 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT COUNT ( * ) / - COALESCE ( - + 63, 90 * 16 * NULLIF ( + 59, - 71 + + NULLIF ( 30, 21 + 12 ) ) / + 82 ) * 18 AS col2
----
0

query I rowsort
SELECT 4 - COALESCE ( + 28, - 49 ) * + 55 AS col1
----
-1536

query I rowsort
SELECT ALL COALESCE ( + ( + 15 ), 63 * + 39 * - 25 ) + - 18
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL 24 + 50 * 91 * + + COALESCE ( + - 56, - COUNT( * ) ) * - - 27 * - 71
----
488451624

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL 24 + 50 * 91 * + + COALESCE ( + - 56, - COUNT ( * ) ) * - - 27 * - 71
----
488451624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT 68 DIV + COALESCE ( + MAX( ALL 48 ), COUNT( * ), 47 + + - 32 * + MAX( DISTINCT + + 4 ) + + 62 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4988
SELECT 68 / + COALESCE ( + MAX ( ALL 48 ), COUNT ( * ), 47 + + - 32 * + MAX ( DISTINCT + + 4 ) + + 62 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT CASE - 12 WHEN + + COUNT( * ) + 85 THEN NULL WHEN 87 / + COUNT( * ) THEN - COUNT( * ) ELSE NULL END + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT CASE - 12 WHEN + + COUNT ( * ) + 85 THEN NULL WHEN 87 / + COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END + + 12
----
NULL

query I rowsort
SELECT ALL + 52 * 24
----
1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4991
SELECT ALL + CASE - - 0 WHEN - 99 * + CAST( + + 16 AS SIGNED ) THEN - CASE + + 65 WHEN + 23 THEN ( + 35 ) ELSE - COUNT( * ) * - 51 END + 0 * + 56 ELSE + COUNT( * ) END DIV 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL + CASE - - 0 WHEN - 99 * + CAST ( + + 16 AS INTEGER ) THEN - CASE + + 65 WHEN + 23 THEN ( + 35 ) ELSE - COUNT ( * ) * - 51 END + 0 * + 56 ELSE + COUNT ( * ) END / 16 AS col1
----
0

query I rowsort
SELECT 41 + - 69 * 15 AS col1
----
-994

query I rowsort
SELECT DISTINCT - - 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL + - 65 * MAX( - - COALESCE ( + - 62, - + 33 - + 56 ) ) + + ( - 3 ) + - 37 * - 34 * ( + 46 * + 64 ) AS col1
----
3707579

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL + - 65 * MAX ( - - COALESCE ( + - 62, - + 33 - + 56 ) ) + + ( - 3 ) + - 37 * - 34 * ( + 46 * + 64 ) AS col1
----
3707579

query I rowsort
SELECT + COALESCE ( + + 24, + 16 )
----
24

query I rowsort
SELECT DISTINCT - - 76 col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT DISTINCT + 87 * + - 8 + - 62 + - COUNT( * )
----
-759

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT + 87 * + - 8 + - 62 + - COUNT ( * )
----
-759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4998
SELECT ALL - - CASE + 43 WHEN MIN( 47 ) THEN + + COALESCE ( + + COUNT( * ), - 69 * CASE 38 WHEN CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * 65 THEN 93 ELSE NULL END * 52 ) WHEN 60 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL - - CASE + 43 WHEN MIN ( 47 ) THEN + + COALESCE ( + + COUNT ( * ), - 69 * CASE 38 WHEN CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * 65 THEN 93 ELSE NULL END * 52 ) WHEN 60 THEN NULL END col2
----
NULL

query I rowsort
SELECT ALL - 89 col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5000
SELECT 20 + - + AVG ( ALL + 36 ) - 58 + CAST( NULL AS DECIMAL ) - 54 + 71 * + 73 * 28 * - SUM( 79 + 53 ) / COUNT( 30 - - 25 ) / 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT 20 + - + AVG ( ALL + 36 ) - 58 + CAST ( NULL AS REAL ) - 54 + 71 * + 73 * 28 * - SUM ( 79 + 53 ) / COUNT ( 30 - - 25 ) / 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ( + MAX( - - 92 ) )
----
92

skipif mysql # not compatible
query I rowsort label-5001
SELECT ( + MAX ( - - 92 ) )
----
92

query I rowsort
SELECT 79 * - 82 + 82 + ( - + NULLIF ( 98, - + 49 ) ) AS col0
----
-6494

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT - - COALESCE ( - 30, 51 * - - COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-5003
SELECT - - COALESCE ( - 30, 51 * - - COUNT ( * ) )
----
-30

query I rowsort
SELECT 88 + - 56
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT 4 + - 98 + 89 * 71 DIV 4 * + + 71 * - 99 AS col0
----
-11098885

skipif mysql # not compatible
query I rowsort label-5005
SELECT 4 + - 98 + 89 * 71 / 4 * + + 71 * - 99 AS col0
----
-11098885

query I rowsort
SELECT ALL - ( + 32 ) + - 71 AS col1
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT COUNT( * ) + + - COUNT( * ) - 27 + - COUNT( + 32 ) * - 72 * 55 AS col1
----
3933

skipif mysql # not compatible
query I rowsort label-5007
SELECT COUNT ( * ) + + - COUNT ( * ) - 27 + - COUNT ( + 32 ) * - 72 * 55 AS col1
----
3933

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT - 1, COALESCE ( - 72, + 71 * 69 + - 29 - - COUNT( * ) * + 34, + 7 - 42 ) * - COUNT( * ) AS col1
----
-1
72

skipif mysql # not compatible
query II rowsort label-5008
SELECT - 1, COALESCE ( - 72, + 71 * 69 + - 29 - - COUNT ( * ) * + 34, + 7 - 42 ) * - COUNT ( * ) AS col1
----
-1
72

query I rowsort
SELECT 4 + - 47
----
-43

query I rowsort
SELECT 13 + - 32 AS col1
----
-19

query I rowsort
SELECT 49 - - - 66 AS col2
----
-17

query I rowsort
SELECT 23 + 75
----
98

query I rowsort
SELECT AVG ( DISTINCT - 23 ) + + 45 * + - 19 + - 74 + 27 + - 18 + + CASE - + 15 WHEN - 45 THEN 56 ELSE NULL END * + 30 / - 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT - SUM( 17 ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-5014
SELECT - SUM ( 17 ) col0
----
-17

query I rowsort
SELECT DISTINCT 41 + 68
----
109

query I rowsort
SELECT ALL 76 + + 24 AS col2
----
100

query I rowsort
SELECT ALL - ( + - 37 ) AS col1
----
37

query II rowsort
SELECT DISTINCT - 87, 76 AS col0
----
-87
76

query I rowsort
SELECT 76 + + 77
----
153

query I rowsort
SELECT ALL - + 76 col1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5021
SELECT 94 + - 67 * - COUNT( * ) AS col1, + 75 * + 72 + 36 + + + 5 + + - COUNT( * ) + - ( + 49 ) - - 4 DIV - 11
----
161
5391

skipif mysql # not compatible
query II rowsort label-5021
SELECT 94 + - 67 * - COUNT ( * ) AS col1, + 75 * + 72 + 36 + + + 5 + + - COUNT ( * ) + - ( + 49 ) - - 4 / - 11
----
161
5391

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT + COUNT( 3 )
----
1

skipif mysql # not compatible
query I rowsort label-5022
SELECT + COUNT ( 3 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5023
SELECT + COUNT( * ) DIV 6 + + + 17 - - 63
----
80

skipif mysql # not compatible
query I rowsort label-5023
SELECT + COUNT ( * ) / 6 + + + 17 - - 63
----
80

query I rowsort
SELECT + + 60 * 58 AS col2
----
3480

query I rowsort
SELECT ALL 25 * 23 AS col0
----
575

onlyif mysql # DIV for integer division: 
query I rowsort label-5026
SELECT DISTINCT 84 * - - NULLIF ( 82, 8 ) - 36 DIV 12
----
6885

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT 84 * - - NULLIF ( 82, 8 ) - 36 / 12
----
6885

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT + 8 + - SUM( ALL + 30 )
----
-22

skipif mysql # not compatible
query I rowsort label-5027
SELECT + 8 + - SUM ( ALL + 30 )
----
-22

query I rowsort
SELECT + - ( - 99 )
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5029
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - + 49 + + + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT + CAST ( NULL AS REAL ) * - + 49 + + + 8 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5030
SELECT DISTINCT - + CASE + CAST( - MIN( DISTINCT + + CAST( NULL AS DECIMAL ) ) AS DECIMAL ) WHEN - 19 + + + 84 + + - 83 - - 89 THEN + 34 + + - AVG ( ALL - 68 ) ELSE NULL END / + SUM( COALESCE ( 27, - 54 + - 78 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT - + CASE + CAST ( - MIN ( DISTINCT + + CAST ( NULL AS REAL ) ) AS REAL ) WHEN - 19 + + + 84 + + - 83 - - 89 THEN + 34 + + - AVG ( ALL - 68 ) ELSE NULL END / + SUM ( COALESCE ( 27, - 54 + - 78 ) ) col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 58, 67 )
----
-58

query I rowsort
SELECT ALL + + 32 AS col0
----
32

query I rowsort
SELECT - + 53 + + - 53
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5034
SELECT + CASE 69 WHEN + CAST( NULL AS SIGNED ) + + 66 + - 20 * 25 * ( + 60 ) * + 10 * - CASE 20 WHEN + COUNT( * ) / - 89 + ( NULLIF ( 25, - COUNT( * ) ) + 4 ) / + 9 THEN - 54 WHEN - 18 / + 18 THEN 56 END + - 82 - - CASE COALESCE ( 85, + ( + 48 ) ) + + ( 83 ) / - 96 WHEN + 40 * 78 + NULLIF ( AVG ( ALL 26 ), ( 0 ) / + 9 ) THEN 95 WHEN - 83 * - 12 THEN NULL ELSE NULL END * 42 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + CASE + COUNT( * ) WHEN 72 + - 24 THEN NULL WHEN COALESCE ( + 70, COALESCE ( - COUNT( * ), 90, 5 * 90 ) ) THEN - CASE - 87 WHEN - 75 - + NULLIF ( - ( - 14 ), 77 * + 79 ) THEN NULL ELSE 43 * + MIN( DISTINCT + 9 ) END END * + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT + CASE 69 WHEN + CAST ( NULL AS INTEGER ) + + 66 + - 20 * 25 * ( + 60 ) * + 10 * - CASE 20 WHEN + COUNT ( * ) / - 89 + ( NULLIF ( 25, - COUNT ( * ) ) + 4 ) / + 9 THEN - 54 WHEN - 18 / + 18 THEN 56 END + - 82 - - CASE COALESCE ( 85, + ( + 48 ) ) + + ( 83 ) / - 96 WHEN + 40 * 78 + NULLIF ( AVG ( ALL 26 ), ( 0 ) / + 9 ) THEN 95 WHEN - 83 * - 12 THEN NULL ELSE NULL END * 42 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + CASE + COUNT ( * ) WHEN 72 + - 24 THEN NULL WHEN COALESCE ( + 70, COALESCE ( - COUNT ( * ), 90, 5 * 90 ) ) THEN - CASE - 87 WHEN - 75 - + NULLIF ( - ( - 14 ), 77 * + 79 ) THEN NULL ELSE 43 * + MIN ( DISTINCT + 9 ) END END * + 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT MAX( ALL + + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-5035
SELECT MAX ( ALL + + 92 )
----
92

query I rowsort
SELECT ALL - 17 + + 81 + + 46 + 23 * - + 63 col1
----
-1339

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT COUNT( 53 )
----
1

skipif mysql # not compatible
query I rowsort label-5037
SELECT COUNT ( 53 )
----
1

query I rowsort
SELECT + 96 * - ( + 92 )
----
-8832

query I rowsort
SELECT ALL + 44 * - + 11 AS col0
----
-484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5040
SELECT - 44, CASE + 30 WHEN + CAST( NULL AS SIGNED ) * - + 86 * - CAST( + 65 AS SIGNED ) + 33 THEN NULL WHEN - ( + - ( + + ( 28 ) ) ) * 97 THEN 85 + 30 ELSE - 37 DIV + 41 + COUNT( * ) DIV + 93 END + 0 AS col1
----
-44
0

skipif mysql # not compatible
query II rowsort label-5040
SELECT - 44, CASE + 30 WHEN + CAST ( NULL AS INTEGER ) * - + 86 * - CAST ( + 65 AS INTEGER ) + 33 THEN NULL WHEN - ( + - ( + + ( 28 ) ) ) * 97 THEN 85 + 30 ELSE - 37 / + 41 + COUNT ( * ) / + 93 END + 0 AS col1
----
-44
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5041
SELECT - COUNT( * ) DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT - COUNT ( * ) / - + 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5042
SELECT + 60 * MIN( - CAST( + 57 AS SIGNED ) ) AS col1
----
-3420

skipif mysql # not compatible
query I rowsort label-5042
SELECT + 60 * MIN ( - CAST ( + 57 AS INTEGER ) ) AS col1
----
-3420

onlyif mysql # DIV for integer division: 
query II rowsort label-5043
SELECT - 42 + + + 84 + - 77 DIV + - 44, + 77 AS col1
----
43
77

skipif mysql # not compatible
query II rowsort label-5043
SELECT - 42 + + + 84 + - 77 / + - 44, + 77 AS col1
----
43
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL COUNT( + 2 )
----
1

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL COUNT ( + 2 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT COALESCE ( + - NULLIF ( - + 80, + 87 * + MIN( + - 76 ) ), + + 75 )
----
80

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT COALESCE ( + - NULLIF ( - + 80, + 87 * + MIN ( + - 76 ) ), + + 75 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5046
SELECT + 12 DIV + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-5046
SELECT + 12 / + - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT - 18 + 66 + + + NULLIF ( COALESCE ( + COUNT( * ), - 79 * - - 53 + - 4 + - 7, + 92 ), - 3 ) * - 9 * - CASE ( + 81 ) * 71 WHEN 6 THEN MIN( 9 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT - 18 + 66 + + + NULLIF ( COALESCE ( + COUNT ( * ), - 79 * - - 53 + - 4 + - 7, + 92 ), - 3 ) * - 9 * - CASE ( + 81 ) * 71 WHEN 6 THEN MIN ( 9 ) END
----
NULL

query I rowsort
SELECT - 30 * - 56 AS col1
----
1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5049
SELECT DISTINCT - 9 DIV COALESCE ( - 50, 5 ) * + + 9 * COUNT( * ) AS col2, - COUNT( * ) - - 87 * - 50
----
0
-4351

skipif mysql # not compatible
query II rowsort label-5049
SELECT DISTINCT - 9 / COALESCE ( - 50, 5 ) * + + 9 * COUNT ( * ) AS col2, - COUNT ( * ) - - 87 * - 50
----
0
-4351

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT ALL SUM( - + 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL SUM ( - + 36 ) AS col0
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-5051
SELECT - 82 DIV - + 69, 56 AS col2
----
1
56

skipif mysql # not compatible
query II rowsort label-5051
SELECT - 82 / - + 69, 56 AS col2
----
1
56

query I rowsort
SELECT ALL - 82 * + 29
----
-2378

onlyif mysql # DIV for integer division: 
query I rowsort label-5053
SELECT DISTINCT - 10 DIV - 31 * - + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT - 10 / - 31 * - + 76 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5054
SELECT 33 AS col2, - 55 DIV - 3
----
33
18

skipif mysql # not compatible
query II rowsort label-5054
SELECT 33 AS col2, - 55 / - 3
----
33
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5055
SELECT ALL - - COUNT( + ( - 11 ) ) * - + 25 * + 56 + - - 46 + - 0 DIV + + 62 col1
----
-1354

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL - - COUNT ( + ( - 11 ) ) * - + 25 * + 56 + - - 46 + - 0 / + + 62 col1
----
-1354

query II rowsort
SELECT - + 55 - 29, - 28 col0
----
-84
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5057
SELECT - + 50 DIV + - 5 - COUNT( * ) * 31 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5057
SELECT - + 50 / + - 5 - COUNT ( * ) * 31 AS col2
----
-21

query I rowsort
SELECT - - 80 + + 44 col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT - + 75 * + - 92 - - 81 + - - 70 + - 10 + + COUNT( 47 ) AS col1
----
7042

skipif mysql # not compatible
query I rowsort label-5059
SELECT - + 75 * + - 92 - - 81 + - - 70 + - 10 + + COUNT ( 47 ) AS col1
----
7042

query I rowsort
SELECT ALL + - ( + - 97 ) * - - 8 AS col1
----
776

query II rowsort
SELECT - 72 AS col1, + 33
----
-72
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5062
SELECT ALL + - 14, - SUM( + 45 ) AS col1
----
-14
-45

skipif mysql # not compatible
query II rowsort label-5062
SELECT ALL + - 14, - SUM ( + 45 ) AS col1
----
-14
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5063
SELECT ALL + + 82 * + - CAST( - + NULLIF ( - - AVG ( DISTINCT + + 0 ), - MIN( 93 ) ) AS SIGNED ) + - - 60 * - - 61 AS col2
----
3660

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL + + 82 * + - CAST ( - + NULLIF ( - - AVG ( DISTINCT + + 0 ), - MIN ( 93 ) ) AS INTEGER ) + - - 60 * - - 61 AS col2
----
3660

query I rowsort
SELECT - 97 - 16
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT ALL + 80, + COUNT( * ) + - - 90 AS col2
----
80
91

skipif mysql # not compatible
query II rowsort label-5065
SELECT ALL + 80, + COUNT ( * ) + - - 90 AS col2
----
80
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL + CASE + 53 WHEN + COUNT( * ) + + 74 THEN 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + CASE + 53 WHEN + COUNT ( * ) + + 74 THEN 61 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT + - 48 * + + CAST( - 82 AS SIGNED )
----
3936

skipif mysql # not compatible
query I rowsort label-5067
SELECT + - 48 * + + CAST ( - 82 AS INTEGER )
----
3936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5068
SELECT - - CASE - 12 WHEN + COUNT( ALL + CAST( NULL AS SIGNED ) ) + + 26 * + 82 + + 87 * + + COUNT( * ) THEN 63 / - 83 + - NULLIF ( - 0, - COUNT( * ) ) ELSE NULL END + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT - - CASE - 12 WHEN + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + + 26 * + 82 + + 87 * + + COUNT ( * ) THEN 63 / - 83 + - NULLIF ( - 0, - COUNT ( * ) ) ELSE NULL END + - 66
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5069
SELECT + CAST( - 31 AS SIGNED ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-5069
SELECT + CAST ( - 31 AS INTEGER ) col2
----
-31

query II rowsort
SELECT + - 47, 90 AS col2
----
-47
90

query I rowsort
SELECT ALL - 93 * 74 AS col1
----
-6882

query I rowsort
SELECT ALL - 2 * 75 * - 15 + + 41
----
2291

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL + SUM( ALL - + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL + SUM ( ALL - + 71 )
----
-71

query I rowsort
SELECT + 73 * 97 col2
----
7081

query I rowsort
SELECT ALL + ( + 75 ) * + 70 + 61 * + - 90 col2
----
-240

query I rowsort
SELECT 86 * + 28 + + 64
----
2472

query I rowsort
SELECT + 37 + 13 AS col2
----
50

query I rowsort
SELECT + 13 + - - 19
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT MIN( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5079
SELECT MIN ( 2 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5080
SELECT + 6 + ( 29 ) * - + CASE - COUNT( * ) WHEN + 16 THEN NULL WHEN + SUM( DISTINCT + 48 ) / 55 * 78 - 35 THEN NULL ELSE CAST( MIN( 28 ) AS SIGNED ) * 24 END AS col1
----
-19482

skipif mysql # not compatible
query I rowsort label-5080
SELECT + 6 + ( 29 ) * - + CASE - COUNT ( * ) WHEN + 16 THEN NULL WHEN + SUM ( DISTINCT + 48 ) / 55 * 78 - 35 THEN NULL ELSE CAST ( MIN ( 28 ) AS INTEGER ) * 24 END AS col1
----
-19482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5081
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) + + 21
----
NULL

query II rowsort
SELECT ALL ( - 31 ) AS col1, - 59 AS col2
----
-31
-59

query I rowsort
SELECT + 59 + + 88 * + 10 AS col0
----
939

query I rowsort
SELECT ALL 65 - + 83 AS col2
----
-18

query I rowsort
SELECT 64 * + - 48
----
-3072

query I rowsort
SELECT NULLIF ( - 0, + + 12 + + + 75 ) + 36 AS col2
----
36

query I rowsort
SELECT 36 + + 8
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5088
SELECT - SUM( ALL + 76 ), 59 col1
----
-76
59

skipif mysql # not compatible
query II rowsort label-5088
SELECT - SUM ( ALL + 76 ), 59 col1
----
-76
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5089
SELECT ALL - CAST( NULL AS SIGNED ) / + 4 * CASE WHEN NULL BETWEEN COUNT( * ) AND - 23 + - CAST( CAST( - 69 AS DECIMAL ) AS SIGNED ) THEN - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL - CAST ( NULL AS INTEGER ) / + 4 * CASE WHEN NULL BETWEEN COUNT ( * ) AND - 23 + - CAST ( CAST ( - 69 AS REAL ) AS INTEGER ) THEN - 92 END
----
NULL

query I rowsort
SELECT COALESCE ( 33, + 87 ) * + 60 col0
----
1980

query I rowsort
SELECT DISTINCT - 99 * - 59
----
5841

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT + 95 + + 83 DIV - 74 + 61
----
155

skipif mysql # not compatible
query I rowsort label-5092
SELECT + 95 + + 83 / - 74 + 61
----
155

query I rowsort
SELECT 26 + + 59 + + 35 col0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5094
SELECT + NULLIF ( - CAST( - + 67 AS SIGNED ), - MAX( ALL + + 5 ) + + 77 + - 81 )
----
67

skipif mysql # not compatible
query I rowsort label-5094
SELECT + NULLIF ( - CAST ( - + 67 AS INTEGER ), - MAX ( ALL + + 5 ) + + 77 + - 81 )
----
67

query I rowsort
SELECT ALL - 97 * - NULLIF ( - 90, - - 11 ) + NULLIF ( - + 48, 38 * - + 80 / - - 3 + - + 38 + + 77 )
----
-8778

query I rowsort
SELECT - 75 * + + 58 + + - 88
----
-4438

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT ALL + 6 + + 94 - + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL + 6 + + 94 - + COUNT ( * )
----
99

query I rowsort
SELECT ALL - 36 + - 35 col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL - CASE - 46 WHEN - 37 / + NULLIF ( MAX( ALL - 58 ), - 20 + - 38 ) + + 45 * - ( - 49 ) - MAX( - 59 ) + COUNT( * ) / + 2 THEN + 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL - CASE - 46 WHEN - 37 / + NULLIF ( MAX ( ALL - 58 ), - 20 + - 38 ) + + 45 * - ( - 49 ) - MAX ( - 59 ) + COUNT ( * ) / + 2 THEN + 93 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT ALL + ( - 5 ) + + 39 + + COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL + ( - 5 ) + + 39 + + COUNT ( * ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5101
SELECT 90 * + + 64 * 55 * COALESCE ( + 25, + 59 * - CAST( NULL AS SIGNED ) - + 82 + + 94 * + COUNT( * ) ) + 52 AS col1
----
7920052

skipif mysql # not compatible
query I rowsort label-5101
SELECT 90 * + + 64 * 55 * COALESCE ( + 25, + 59 * - CAST ( NULL AS INTEGER ) - + 82 + + 94 * + COUNT ( * ) ) + 52 AS col1
----
7920052

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT ALL - CASE - 19 WHEN 58 THEN NULL WHEN + MIN( DISTINCT - 64 ) THEN - + 7 / - + 62 END + + ( + + 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL - CASE - 19 WHEN 58 THEN NULL WHEN + MIN ( DISTINCT - 64 ) THEN - + 7 / - + 62 END + + ( + + 58 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5103
SELECT DISTINCT + 99 + + COUNT( * ) - + + 14 DIV - + ( + 38 ) + COUNT( * ) AS col2, + 96 AS col2
----
101
96

skipif mysql # not compatible
query II rowsort label-5103
SELECT DISTINCT + 99 + + COUNT ( * ) - + + 14 / - + ( + 38 ) + COUNT ( * ) AS col2, + 96 AS col2
----
101
96

query I rowsort
SELECT - 31 * + 97 * + 67 + - 14 AS col0
----
-201483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT DISTINCT - CAST( 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT - CAST ( 56 AS INTEGER )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5106
SELECT ALL - 27 DIV - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL - 27 / - 73 AS col0
----
0

query II rowsort
SELECT 49 + + ( - 95 ) AS col0, 50 * - 63
----
-46
-3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT DISTINCT AVG ( ALL - CAST( - 97 AS SIGNED ) ) * + 46 / + SUM( ALL + + CAST( NULL AS SIGNED ) ) / - - COUNT( * ) + 71 - + CAST( NULL AS SIGNED ) + - AVG ( ALL + 20 ) * + 98 * - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT AVG ( ALL - CAST ( - 97 AS INTEGER ) ) * + 46 / + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) / - - COUNT ( * ) + 71 - + CAST ( NULL AS INTEGER ) + - AVG ( ALL + 20 ) * + 98 * - 8 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5109
SELECT DISTINCT - CAST( - 90 AS SIGNED ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT - CAST ( - 90 AS INTEGER ) AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT ALL - ( + - 32 ) DIV NULLIF ( - NULLIF ( 95, - 43 * 86 + - 24 ), + 11 ) + - + 84
----
-84

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL - ( + - 32 ) / NULLIF ( - NULLIF ( 95, - 43 * 86 + - 24 ), + 11 ) + - + 84
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5111
SELECT 39 DIV SUM( + 39 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5111
SELECT 39 / SUM ( + 39 ) col2
----
1

query I rowsort
SELECT DISTINCT + 9 * 87 col0
----
783

query I rowsort
SELECT 74 * + - 40 * + 20
----
-59200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5114
SELECT ALL 17 / - CASE - - 42 WHEN - 56 * - - 57 + - ( 58 ) * + - 29 / CAST( - MAX( ALL + 50 ) AS SIGNED ) THEN - CAST( 46 AS DECIMAL ) WHEN 53 + COUNT( * ) THEN 67 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL 17 / - CASE - - 42 WHEN - 56 * - - 57 + - ( 58 ) * + - 29 / CAST ( - MAX ( ALL + 50 ) AS INTEGER ) THEN - CAST ( 46 AS REAL ) WHEN 53 + COUNT ( * ) THEN 67 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5115
SELECT 58 AS col0, + SUM( ALL 42 ) AS col0
----
58
42

skipif mysql # not compatible
query II rowsort label-5115
SELECT 58 AS col0, + SUM ( ALL 42 ) AS col0
----
58
42

query I rowsort
SELECT ALL COALESCE ( 33, 40 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT + 39 * 38 + CAST( NULL AS SIGNED ) + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5117
SELECT + 39 * 38 + CAST ( NULL AS INTEGER ) + - 71 AS col0
----
NULL

query I rowsort
SELECT + ( - 2 ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5119
SELECT ALL + MAX( ALL - CAST( 45 AS SIGNED ) )
----
-45

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL + MAX ( ALL - CAST ( 45 AS INTEGER ) )
----
-45

query I rowsort
SELECT 61 * + - ( 84 ) + - - 17
----
-5107

query I rowsort
SELECT DISTINCT - 59 * - - 80
----
-4720

query II rowsort
SELECT - + 94, 93 AS col2
----
-94
93

query I rowsort
SELECT 10 + - 18
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5124
SELECT - 69 AS col0, - 92 + - 27 - 10 + - 63 + COUNT( * ) + + COALESCE ( - + 13, + - 79 ) + COALESCE ( + 52, 62 ) - ( - 4 ) + + 76 DIV 52
----
-69
-147

skipif mysql # not compatible
query II rowsort label-5124
SELECT - 69 AS col0, - 92 + - 27 - 10 + - 63 + COUNT ( * ) + + COALESCE ( - + 13, + - 79 ) + COALESCE ( + 52, 62 ) - ( - 4 ) + + 76 / 52
----
-69
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT ALL CAST( + 91 AS SIGNED ) * - - 27
----
2457

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL CAST ( + 91 AS INTEGER ) * - - 27
----
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT NULLIF ( 37, - COUNT( * ) ) * - 1 * + - 94 AS col1
----
3478

skipif mysql # not compatible
query I rowsort label-5126
SELECT NULLIF ( 37, - COUNT ( * ) ) * - 1 * + - 94 AS col1
----
3478

onlyif mysql # aggregate syntax: 
query II rowsort label-5127
SELECT COUNT( * ) + + 63 + - 80, + 28 + + COALESCE ( + - COUNT( + 15 ), - 8 ) - - 99 AS col0
----
-16
126

skipif mysql # not compatible
query II rowsort label-5127
SELECT COUNT ( * ) + + 63 + - 80, + 28 + + COALESCE ( + - COUNT ( + 15 ), - 8 ) - - 99 AS col0
----
-16
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5128
SELECT ALL - - 50 * + 41 + COUNT( * ) + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - - 50 * + 41 + COUNT ( * ) + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + ( - 40 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5130
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) - - 84 + - + 49
----
35

skipif mysql # not compatible
query I rowsort label-5130
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) - - 84 + - + 49
----
35

query I rowsort
SELECT ALL - + COALESCE ( - 45, - 70 ) AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5132
SELECT ALL + 72 * + COUNT( * ) + - 61 + - 15 * - COUNT( * ) + + - CASE 0 WHEN 60 / + 29 THEN - CASE + AVG ( - + 96 ) WHEN COUNT( * ) - COALESCE ( + CAST( - 57 AS DECIMAL ), 83 ) THEN + 70 * 41 + COUNT( * ) END * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + 72 * + COUNT ( * ) + - 61 + - 15 * - COUNT ( * ) + + - CASE 0 WHEN 60 / + 29 THEN - CASE + AVG ( - + 96 ) WHEN COUNT ( * ) - COALESCE ( + CAST ( - 57 AS REAL ), 83 ) THEN + 70 * 41 + COUNT ( * ) END * + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5133
SELECT ALL - NULLIF ( + - COUNT( * ), + - 31 * + - 83 - - + COUNT( + - CASE + 75 WHEN + 18 THEN NULL ELSE + 87 END ) ) DIV - 22
----
0

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - NULLIF ( + - COUNT ( * ), + - 31 * + - 83 - - + COUNT ( + - CASE + 75 WHEN + 18 THEN NULL ELSE + 87 END ) ) / - 22
----
0

query I rowsort
SELECT NULLIF ( 61, + 61 )
----
NULL

query II rowsort
SELECT ALL + 8 * + 10 + + 80, - 42 + - + 77 * + 33 AS col2
----
160
-2583

onlyif mysql # aggregate syntax: 
query II rowsort label-5136
SELECT + 65 AS col1, + MIN( - 53 )
----
65
-53

skipif mysql # not compatible
query II rowsort label-5136
SELECT + 65 AS col1, + MIN ( - 53 )
----
65
-53

query I rowsort
SELECT 4 * - 9 * ( - 10 ) * + 81 + + 44
----
29204

query I rowsort
SELECT 39 * + 11
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT 43 * COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-5139
SELECT 43 * COUNT ( * )
----
43

query I rowsort
SELECT ALL + 95 * 18 AS col1
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT COUNT( - + ( 66 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5141
SELECT COUNT ( - + ( 66 ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT 49 DIV 53 * + 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT 49 / 53 * + 16 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT 52 - 28 - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5143
SELECT 52 - 28 - COUNT ( * )
----
23

query I rowsort
SELECT ALL - 22 - - 69 col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT 29 - - CAST( + ( - 86 ) AS SIGNED ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5145
SELECT 29 - - CAST ( + ( - 86 ) AS INTEGER ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-5146
SELECT DISTINCT 37 * - CASE - 96 WHEN 89 * - 65 + + 76 THEN NULL WHEN - 64 THEN NULL WHEN + 67 THEN NULL ELSE - + COUNT( * ) END AS col1, 21
----
37
21

skipif mysql # not compatible
query II rowsort label-5146
SELECT DISTINCT 37 * - CASE - 96 WHEN 89 * - 65 + + 76 THEN NULL WHEN - 64 THEN NULL WHEN + 67 THEN NULL ELSE - + COUNT ( * ) END AS col1, 21
----
37
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT DISTINCT - COUNT( * ) * + MAX( ALL - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT - COUNT ( * ) * + MAX ( ALL - 92 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT 42 * + COALESCE ( - - 17, 66 + MIN( - 38 ) ) AS col0
----
714

skipif mysql # not compatible
query I rowsort label-5148
SELECT 42 * + COALESCE ( - - 17, 66 + MIN ( - 38 ) ) AS col0
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT + 5 - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + 5 - COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5150
SELECT - 30 * - COUNT( * ) * - + 97 * + + 99, COUNT( * ) - + CASE + - 41 WHEN - 53 THEN 62 * + 89 * - 13 END AS col2
----
-288090
NULL

skipif mysql # not compatible
query II rowsort label-5150
SELECT - 30 * - COUNT ( * ) * - + 97 * + + 99, COUNT ( * ) - + CASE + - 41 WHEN - 53 THEN 62 * + 89 * - 13 END AS col2
----
-288090
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - COUNT( * ) * + 41 * 72 col2
----
-2952

skipif mysql # not compatible
query I rowsort label-5151
SELECT - COUNT ( * ) * + 41 * 72 col2
----
-2952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT - CASE COUNT( * ) WHEN 19 THEN - 30 WHEN + 91 THEN - COALESCE ( + - 3, 96 / - 12 * - 39 + 85 - 29 / - + 9, + 37 * NULLIF ( 3 + + 43, - 63 - 34 * + COALESCE ( 54 / + CAST( + COUNT( * ) AS SIGNED ) + 72 * 49, - CAST( - COUNT( * ) AS SIGNED ) * 13 + 31, CASE - NULLIF ( 33, 75 * 78 + 64 ) WHEN - MIN( ALL 86 ) THEN - COUNT( * ) + + 71 WHEN 17 THEN + SUM( ALL + 54 ) + CAST( COUNT( * ) AS SIGNED ) END ) ) ) END - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT - CASE COUNT ( * ) WHEN 19 THEN - 30 WHEN + 91 THEN - COALESCE ( + - 3, 96 / - 12 * - 39 + 85 - 29 / - + 9, + 37 * NULLIF ( 3 + + 43, - 63 - 34 * + COALESCE ( 54 / + CAST ( + COUNT ( * ) AS INTEGER ) + 72 * 49, - CAST ( - COUNT ( * ) AS INTEGER ) * 13 + 31, CASE - NULLIF ( 33, 75 * 78 + 64 ) WHEN - MIN ( ALL 86 ) THEN - COUNT ( * ) + + 71 WHEN 17 THEN + SUM ( ALL + 54 ) + CAST ( COUNT ( * ) AS INTEGER ) END ) ) ) END - - 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5153
SELECT - 24 + - AVG ( CAST( NULL AS SIGNED ) ) + + 46 + 25 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT - 24 + - AVG ( CAST ( NULL AS INTEGER ) ) + + 46 + 25 * + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT - COUNT( * ) + + - 99
----
-100

skipif mysql # not compatible
query I rowsort label-5154
SELECT - COUNT ( * ) + + - 99
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT + ( + - COUNT( * ) ) * + - 98
----
98

skipif mysql # not compatible
query I rowsort label-5155
SELECT + ( + - COUNT ( * ) ) * + - 98
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT ALL + 88 DIV 49 * + ( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL + 88 / 49 * + ( 59 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5157
SELECT DISTINCT + 54 * - 45 AS col2, + COUNT( ALL - - CAST( - - 78 AS SIGNED ) ) * - 28 * 9
----
-2430
-252

skipif mysql # not compatible
query II rowsort label-5157
SELECT DISTINCT + 54 * - 45 AS col2, + COUNT ( ALL - - CAST ( - - 78 AS INTEGER ) ) * - 28 * 9
----
-2430
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL + COALESCE ( - 97, + + ( - - 59 ) ) + - + CASE - - NULLIF ( + 21, + 91 ) WHEN + 1 THEN - COALESCE ( + 25, + 11 ) WHEN - 34 / 8 - COUNT( * ) THEN NULL WHEN - COUNT( * ) * - COALESCE ( 95, 96 ) + - 40 * + 58 THEN 31 * 49 END * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL + COALESCE ( - 97, + + ( - - 59 ) ) + - + CASE - - NULLIF ( + 21, + 91 ) WHEN + 1 THEN - COALESCE ( + 25, + 11 ) WHEN - 34 / 8 - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) * - COALESCE ( 95, 96 ) + - 40 * + 58 THEN 31 * 49 END * 11
----
NULL

query II rowsort
SELECT ALL + 21 * - - 5 AS col2, + 73
----
105
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT + 64 + + - 96 * + COUNT( * ) * + 21 AS col1
----
-1952

skipif mysql # not compatible
query I rowsort label-5160
SELECT + 64 + + - 96 * + COUNT ( * ) * + 21 AS col1
----
-1952

onlyif mysql # DIV for integer division: 
query I rowsort label-5161
SELECT - - 50 DIV + + 10
----
5

skipif mysql # not compatible
query I rowsort label-5161
SELECT - - 50 / + + 10
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - 30 * - COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5162
SELECT - 30 * - COUNT ( * ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + - 11 + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-5163
SELECT + - 11 + COUNT ( * )
----
-10

query I rowsort
SELECT - ( + + NULLIF ( - + 49, + 71 ) )
----
49

query I rowsort
SELECT DISTINCT + + 20 + - + 26 AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL 5 * CAST( COUNT( * ) AS SIGNED ) * 56 * 4 + - COUNT( * ) AS col2
----
1119

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL 5 * CAST ( COUNT ( * ) AS INTEGER ) * 56 * 4 + - COUNT ( * ) AS col2
----
1119

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL 49 + + 20 - - + MAX( DISTINCT - ( - 38 ) ) + 31 + - 94 * - + 37
----
3616

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL 49 + + 20 - - + MAX ( DISTINCT - ( - 38 ) ) + 31 + - 94 * - + 37
----
3616

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT DISTINCT + MIN( + ( - - 62 ) ) * 53 + - ( - 44 ) * - SUM( + 33 )
----
1834

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT + MIN ( + ( - - 62 ) ) * 53 + - ( - 44 ) * - SUM ( + 33 )
----
1834

query I rowsort
SELECT + 33 * - 52 col0
----
-1716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT + + 48 + - CAST( NULL AS SIGNED ) + 72 * + 32 * - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT + + 48 + - CAST ( NULL AS INTEGER ) + 72 * + 32 * - 39 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5171
SELECT 27 * - + COUNT( * ) / - 73 + + 13 * 54 * 86 * + ( - CAST( NULL AS DECIMAL ) ) / 91 + 61 + + 90 + - 56 + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT 27 * - + COUNT ( * ) / - 73 + + 13 * 54 * 86 * + ( - CAST ( NULL AS REAL ) ) / 91 + 61 + + 90 + - 56 + + 56
----
NULL

query I rowsort
SELECT ( - - 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT DISTINCT - 27 * + - CASE + + 7 WHEN COUNT( * ) THEN - - 18 END - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT - 27 * + - CASE + + 7 WHEN COUNT ( * ) THEN - - 18 END - 69
----
NULL

query II rowsort
SELECT + 82 AS col2, 32 AS col0
----
82
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ( - COUNT( DISTINCT + 73 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5175
SELECT ( - COUNT ( DISTINCT + 73 ) )
----
-1

query I rowsort
SELECT DISTINCT - 50 * + ( - + 33 ) - 73
----
1577

onlyif mysql # DIV for integer division: 
query I rowsort label-5177
SELECT ALL + 64 DIV 10
----
6

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL + 64 / 10
----
6

query I rowsort
SELECT - 35 * + 39 + + 82 AS col2
----
-1283

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT ALL + COUNT( ALL - 19 )
----
1

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL + COUNT ( ALL - 19 )
----
1

query II rowsort
SELECT DISTINCT + 0 AS col2, + 50 AS col1
----
0
50

query I rowsort
SELECT ALL 42 * + 52
----
2184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5182
SELECT + CAST( + CASE - 14 WHEN + + 4 * + COUNT( * ) * - 56 - 99 + + CASE 27 WHEN - 37 / COUNT( * ) THEN - - SUM( 92 ) * + - 33 + - COUNT( * ) + - 50 ELSE + 59 + CASE CAST( NULL AS SIGNED ) + + 24 / + 99 WHEN - 79 THEN NULL WHEN + 73 THEN NULL ELSE ( 71 ) END END * - AVG ( + 91 * - NULLIF ( - 41, ( 73 ) / 94 ) ) THEN 30 * + 60 - 5 WHEN 26 + - 16 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT + CAST ( + CASE - 14 WHEN + + 4 * + COUNT ( * ) * - 56 - 99 + + CASE 27 WHEN - 37 / COUNT ( * ) THEN - - SUM ( 92 ) * + - 33 + - COUNT ( * ) + - 50 ELSE + 59 + CASE CAST ( NULL AS INTEGER ) + + 24 / + 99 WHEN - 79 THEN NULL WHEN + 73 THEN NULL ELSE ( 71 ) END END * - AVG ( + 91 * - NULLIF ( - 41, ( 73 ) / 94 ) ) THEN 30 * + 60 - 5 WHEN 26 + - 16 THEN NULL END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5183
SELECT ALL + 92 * CAST( + AVG ( ALL + + 91 ) AS SIGNED )
----
8372

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL + 92 * CAST ( + AVG ( ALL + + 91 ) AS INTEGER )
----
8372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT + CAST( - AVG ( - - 21 ) AS SIGNED ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-5184
SELECT + CAST ( - AVG ( - - 21 ) AS INTEGER ) col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT - 0 DIV 31 * + + ( - 55 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5185
SELECT - 0 / 31 * + + ( - 55 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT - 6 + - + 76 * - COUNT( * ) + 5 * - ( - 85 ) AS col1
----
495

skipif mysql # not compatible
query I rowsort label-5186
SELECT - 6 + - + 76 * - COUNT ( * ) + 5 * - ( - 85 ) AS col1
----
495

query I rowsort
SELECT DISTINCT + 74 * + + 25 * 31 AS col2
----
57350

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL 0 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL 0 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT ALL 21 * + CASE - - 7 WHEN + - 42 THEN - - 39 WHEN 84 * + + 79 + - 27 THEN - 79 WHEN + 96 THEN NULL ELSE + COUNT( * ) * + + ( + NULLIF ( - 31, - MAX( ALL 6 ) * - ( 83 ) ) ) * 9 + 58 END + 82 DIV - 83 AS col0
----
-4641

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL 21 * + CASE - - 7 WHEN + - 42 THEN - - 39 WHEN 84 * + + 79 + - 27 THEN - 79 WHEN + 96 THEN NULL ELSE + COUNT ( * ) * + + ( + NULLIF ( - 31, - MAX ( ALL 6 ) * - ( 83 ) ) ) * 9 + 58 END + 82 / - 83 AS col0
----
-4641

onlyif mysql # aggregate syntax: 
query II rowsort label-5190
SELECT COUNT( * ), 37 col2
----
1
37

skipif mysql # not compatible
query II rowsort label-5190
SELECT COUNT ( * ), 37 col2
----
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL 35 * + 40 + + 80 + + + COUNT( * )
----
1481

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL 35 * + 40 + + 80 + + + COUNT ( * )
----
1481

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT + COUNT( + 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5192
SELECT + COUNT ( + 44 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5193
SELECT + - 70 - 78 * + 64 AS col1, 11 + MAX( - - 23 ) * + + 47 * + + 67 * 27 + + 58 AS col1
----
-5062
1955598

skipif mysql # not compatible
query II rowsort label-5193
SELECT + - 70 - 78 * + 64 AS col1, 11 + MAX ( - - 23 ) * + + 47 * + + 67 * 27 + + 58 AS col1
----
-5062
1955598

query I rowsort
SELECT - + 44 AS col1
----
-44

query I rowsort
SELECT ALL - - 60 + 87 + 98 + + 70 AS col0
----
315

query I rowsort
SELECT - - 21 * + + 52 + - 40 col1
----
1052

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT + - COUNT( * ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5197
SELECT + - COUNT ( * ) * - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ALL + NULLIF ( + - 58, + + 88 * - COUNT( * ) ) * + + MIN( DISTINCT + 97 )
----
-5626

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + NULLIF ( + - 58, + + 88 * - COUNT ( * ) ) * + + MIN ( DISTINCT + 97 )
----
-5626

query I rowsort
SELECT DISTINCT + 7 + + + 97 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT ALL - + 55 * SUM( - ( + 75 ) ) AS col2
----
4125

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL - + 55 * SUM ( - ( + 75 ) ) AS col2
----
4125

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT - COUNT( * ) - - + 92
----
91

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT - COUNT ( * ) - - + 92
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5202
SELECT ALL + 58 * 71 DIV + 57 + - COUNT( DISTINCT - 0 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL + 58 * 71 / + 57 + - COUNT ( DISTINCT - 0 ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5203
SELECT - + 94 + - 57 * + ( 86 ) * - 39 * - COUNT( * ) + CASE + 44 WHEN + - CAST( NULL AS SIGNED ) * - + 65 * - CAST( NULL AS DECIMAL ) * + 22 * + 22 THEN 32 DIV - COALESCE ( + 35, 78 + 2 ) WHEN 46 + 18 * COUNT( + CAST( + CASE - 92 WHEN 58 THEN 23 + ( - 54 ) * 9 ELSE NULL END AS SIGNED ) - - 94 ) THEN + 94 * CAST( NULL AS SIGNED ) WHEN - CASE + 3 WHEN + 86 - CAST( NULL AS SIGNED ) THEN + COUNT( * ) + 74 * + 40 ELSE NULL END THEN NULL ELSE + 16 * SUM( - 85 ) - - ( + MAX( DISTINCT CAST( + 29 AS SIGNED ) ) ) END col2
----
-192603

skipif mysql # not compatible
query I rowsort label-5203
SELECT - + 94 + - 57 * + ( 86 ) * - 39 * - COUNT ( * ) + CASE + 44 WHEN + - CAST ( NULL AS INTEGER ) * - + 65 * - CAST ( NULL AS REAL ) * + 22 * + 22 THEN 32 / - COALESCE ( + 35, 78 + 2 ) WHEN 46 + 18 * COUNT ( + CAST ( + CASE - 92 WHEN 58 THEN 23 + ( - 54 ) * 9 ELSE NULL END AS INTEGER ) - - 94 ) THEN + 94 * CAST ( NULL AS INTEGER ) WHEN - CASE + 3 WHEN + 86 - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) + 74 * + 40 ELSE NULL END THEN NULL ELSE + 16 * SUM ( - 85 ) - - ( + MAX ( DISTINCT CAST ( + 29 AS INTEGER ) ) ) END col2
----
-192603

query I rowsort
SELECT - - 19 + + 21 * + - 62 * + 96 * 3
----
-374957

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + 9 + 49 * + 53 * - - 51 + - - COUNT( ALL 76 )
----
132457

skipif mysql # not compatible
query I rowsort label-5205
SELECT + 9 + 49 * + 53 * - - 51 + - - COUNT ( ALL 76 )
----
132457

query I rowsort
SELECT DISTINCT 83 col1
----
83

query I rowsort
SELECT - 53 * + 49 + + - 53 * + 56 * - 78 * 68
----
15739675

query I rowsort
SELECT + 20 + 90
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT + 90 * - + COUNT( * ) * 65
----
-5850

skipif mysql # not compatible
query I rowsort label-5209
SELECT + 90 * - + COUNT ( * ) * 65
----
-5850

query I rowsort
SELECT + ( + 89 )
----
89

query II rowsort
SELECT + 48 AS col0, - 42 col1
----
48
-42

query II rowsort
SELECT + 0 AS col2, + 69 AS col2
----
0
69

query I rowsort
SELECT 83 * 98
----
8134

onlyif mysql # DIV for integer division: 
query I rowsort label-5214
SELECT DISTINCT 65 + + 58 DIV - 86 + - - 96 + + 79 * - 22 * + 86 * + + 26 + 99 AS col0
----
-3885908

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT 65 + + 58 / - 86 + - - 96 + + 79 * - 22 * + 86 * + + 26 + 99 AS col0
----
-3885908

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT DISTINCT - 35, + 80 * + - COUNT( * ) col0
----
-35
-80

skipif mysql # not compatible
query II rowsort label-5215
SELECT DISTINCT - 35, + 80 * + - COUNT ( * ) col0
----
-35
-80

query I rowsort
SELECT ALL 88 + 67
----
155

query I rowsort
SELECT ( + ( 67 ) ) * + + 92 * + 97 * + + 73 - + 36
----
43647248

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5218
SELECT ALL - 9, 21 * + 43 * + NULLIF ( + CAST( + + 78 AS SIGNED ), - 40 ) + - 28 AS col2
----
-9
70406

skipif mysql # not compatible
query II rowsort label-5218
SELECT ALL - 9, 21 * + 43 * + NULLIF ( + CAST ( + + 78 AS INTEGER ), - 40 ) + - 28 AS col2
----
-9
70406

onlyif mysql # aggregate syntax: 
query II rowsort label-5219
SELECT ALL - 12 AS col2, - ( + COUNT( * ) )
----
-12
-1

skipif mysql # not compatible
query II rowsort label-5219
SELECT ALL - 12 AS col2, - ( + COUNT ( * ) )
----
-12
-1

query I rowsort
SELECT DISTINCT - 15 + 10 AS col1
----
-5

query I rowsort
SELECT ALL 52 + - + 94
----
-42

query I rowsort
SELECT - 41 * + - 83 + COALESCE ( 46, 42, - - 76 ) col2
----
3449

query I rowsort
SELECT ALL - 30 + + ( - 49 ) + + + 77
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5224
SELECT + 12 * 32 + + 59 + + MIN( ALL + - 41 ) * 14 AS col2, + 74 * + + 17 AS col1
----
-131
1258

skipif mysql # not compatible
query II rowsort label-5224
SELECT + 12 * 32 + + 59 + + MIN ( ALL + - 41 ) * 14 AS col2, + 74 * + + 17 AS col1
----
-131
1258

query I rowsort
SELECT - 55 - + 11 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT - CASE ( - - 44 ) WHEN - 89 * ( + COUNT( * ) ) * + 53 + - 55 * 4 + - 14 THEN + 4 * + 93 / - 21 + - - 11 WHEN 30 THEN NULL END + + 54 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT - CASE ( - - 44 ) WHEN - 89 * ( + COUNT ( * ) ) * + 53 + - 55 * 4 + - 14 THEN + 4 * + 93 / - 21 + - - 11 WHEN 30 THEN NULL END + + 54 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT - COUNT( * ) * + - 95 - + - 43 * ( - + CASE - 52 WHEN + 31 THEN - 87 - - - 2 + + 34 ELSE NULL END ) * - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT - COUNT ( * ) * + - 95 - + - 43 * ( - + CASE - 52 WHEN + 31 THEN - 87 - - - 2 + + 34 ELSE NULL END ) * - 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL - - 8 + + SUM( ALL + 10 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - - 8 + + SUM ( ALL + 10 ) AS col0
----
18

query I rowsort
SELECT - 8 * - 63 + + + 30 AS col0
----
534

query I rowsort
SELECT 8 + + 53 AS col1
----
61

query I rowsort
SELECT - 82 * - + ( - 70 ) + 60 + + + NULLIF ( ( + - 17 ), 29 * - 24 + - 96 * + 13 + + 16 ) AS col2
----
-5697

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT + ( - 22 ) + MIN( + 75 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT + ( - 22 ) + MIN ( + 75 ) AS col2
----
53

query I rowsort
SELECT 85 + 12
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT 9 * + ( - + COUNT( * ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT 9 * + ( - + COUNT ( * ) ) AS col0
----
-9

query I rowsort
SELECT + 48 + - 64 + 18
----
2

query I rowsort
SELECT ALL + ( - COALESCE ( 51, 74, - ( 30 ) ) ) AS col0
----
-51

query I rowsort
SELECT 77 + ( 82 ) AS col1
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5238
SELECT ALL NULLIF ( - CAST( - 37 AS SIGNED ), + 0 * + - 34 + + + 93 ) AS col1, 74 * + 7 * + MIN( 6 ) * + - 56 col2
----
37
-174048

skipif mysql # not compatible
query II rowsort label-5238
SELECT ALL NULLIF ( - CAST ( - 37 AS INTEGER ), + 0 * + - 34 + + + 93 ) AS col1, 74 * + 7 * + MIN ( 6 ) * + - 56 col2
----
37
-174048

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT NULLIF ( - COUNT( * ), NULLIF ( + + 57, + - ( - 44 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5239
SELECT NULLIF ( - COUNT ( * ), NULLIF ( + + 57, + - ( - 44 ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5240
SELECT 95 + 19 + + - COUNT( - 66 ) col1, - 65 * 80
----
113
-5200

skipif mysql # not compatible
query II rowsort label-5240
SELECT 95 + 19 + + - COUNT ( - 66 ) col1, - 65 * 80
----
113
-5200

query I rowsort
SELECT - ( + 47 ) AS col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT 54 + 32 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT 54 + 32 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 98 + + 50 * + CASE - 54 WHEN + 16 THEN + 71 + - 92 - + - 41 + 0 + - 23 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 78 * + 27
----
-2106

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT DISTINCT + 35 - - ( 38 ) DIV + + 43 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT + 35 - - ( 38 ) / + + 43 AS col0
----
35

query I rowsort
SELECT ALL - 63 * - CASE - 39 WHEN - 7 THEN 64 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 82 * - 46 AS col1, - 19
----
3772
-19

query I rowsort
SELECT DISTINCT - ( + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5249
SELECT 29 + 73 col0, MAX( ALL + + 89 ) col0
----
102
89

skipif mysql # not compatible
query II rowsort label-5249
SELECT 29 + 73 col0, MAX ( ALL + + 89 ) col0
----
102
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT - COUNT( * ) * COUNT( * ) + + 64
----
63

skipif mysql # not compatible
query I rowsort label-5250
SELECT - COUNT ( * ) * COUNT ( * ) + + 64
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT CASE - 84 WHEN - 51 / + 61 THEN + + 1 END - - SUM( ALL + 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT CASE - 84 WHEN - 51 / + 61 THEN + + 1 END - - SUM ( ALL + 8 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5252
SELECT 48 DIV + 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5252
SELECT 48 / + 44 AS col0
----
1

query I rowsort
SELECT 58 * + ( 52 )
----
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT 93 * COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-5254
SELECT 93 * COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT + ( 16 ) + + MAX( DISTINCT 29 )
----
45

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT + ( 16 ) + + MAX ( DISTINCT 29 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5256
SELECT ALL 89 + - 9 AS col1, COUNT( - ( + 9 ) ) * 49 + - CAST( NULL AS SIGNED )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-5256
SELECT ALL 89 + - 9 AS col1, COUNT ( - ( + 9 ) ) * 49 + - CAST ( NULL AS INTEGER )
----
80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT COUNT( DISTINCT 83 ) + - 83 + - 20 AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-5257
SELECT COUNT ( DISTINCT 83 ) + - 83 + - 20 AS col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL + 29 + 62 + + COUNT( * ) + 91 * 85 * + 76 AS col0
----
587952

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL + 29 + 62 + + COUNT ( * ) + 91 * 85 * + 76 AS col0
----
587952

query I rowsort
SELECT DISTINCT + 20 + 36 + + 82
----
138

query I rowsort
SELECT ALL 82 + + - 44
----
38

query I rowsort
SELECT + 94 * 58 + - 77
----
5375

query I rowsort
SELECT ALL 53 + + 82 - - 2
----
137

query I rowsort
SELECT 8 + - 33 AS col1
----
-25

query I rowsort
SELECT ALL - - 13 AS col0
----
13

query I rowsort
SELECT 74 + - 30 * + 41 AS col0
----
-1156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5266
SELECT DISTINCT - + COALESCE ( + SUM( ( 91 ) ), - 54 * 76 DIV - + 84 )
----
-91

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT - + COALESCE ( + SUM ( ( 91 ) ), - 54 * 76 / - + 84 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT ALL - SUM( + 22 ) * - COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL - SUM ( + 22 ) * - COUNT ( * ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5268
SELECT DISTINCT 54 - CASE - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) * CAST( 95 AS SIGNED ) THEN NULL WHEN + 99 * - 54 * + 34 + - 70 THEN NULL ELSE - + 71 END
----
125

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT 54 - CASE - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * CAST ( 95 AS INTEGER ) THEN NULL WHEN + 99 * - 54 * + 34 + - 70 THEN NULL ELSE - + 71 END
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT 33 - CAST( 43 AS SIGNED ) - + 65 * - 49 * + + ( - + 20 )
----
-63710

skipif mysql # not compatible
query I rowsort label-5269
SELECT 33 - CAST ( 43 AS INTEGER ) - + 65 * - 49 * + + ( - + 20 )
----
-63710

onlyif mysql # aggregate syntax: 
query II rowsort label-5270
SELECT ALL COUNT( * ) * + + ( - - 47 ), 52 AS col0
----
47
52

skipif mysql # not compatible
query II rowsort label-5270
SELECT ALL COUNT ( * ) * + + ( - - 47 ), 52 AS col0
----
47
52

query I rowsort
SELECT + 21 * + 64 AS col2
----
1344

onlyif mysql # aggregate syntax: 
query III rowsort label-5272
SELECT 48 - 29, COUNT( * ) AS col2, 26 AS col0
----
19
1
26

skipif mysql # not compatible
query III rowsort label-5272
SELECT 48 - 29, COUNT ( * ) AS col2, 26 AS col0
----
19
1
26

query II rowsort
SELECT ALL - 31 * 47 AS col2, - 24 * - - 46
----
-1457
-1104

query I rowsort
SELECT DISTINCT 90 * - - ( - - 97 )
----
8730

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT ALL MAX( ALL - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL MAX ( ALL - 78 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5276
SELECT + 31 + COALESCE ( COUNT( * ), 94, 73 + + 50 * + 2 DIV - 34 * + MIN( 6 ) )
----
32

skipif mysql # not compatible
query I rowsort label-5276
SELECT + 31 + COALESCE ( COUNT ( * ), 94, 73 + + 50 * + 2 / - 34 * + MIN ( 6 ) )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5277
SELECT - 33 AS col0, + CAST( NULL AS SIGNED ) AS col0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-5277
SELECT - 33 AS col0, + CAST ( NULL AS INTEGER ) AS col0
----
-33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT + COUNT( * ) + + + 96
----
97

skipif mysql # not compatible
query I rowsort label-5278
SELECT + COUNT ( * ) + + + 96
----
97

query I rowsort
SELECT DISTINCT - 51 + + + 65 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - SUM( + 70 ) - - - 23 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-5280
SELECT - SUM ( + 70 ) - - - 23 AS col2
----
-93

query II rowsort
SELECT - 44 AS col1, + 40 * + 77 AS col0
----
-44
3080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5282
SELECT ALL 91 * CASE + 7 WHEN - CAST( NULL AS SIGNED ) THEN 77 WHEN - 12 / - CAST( NULL AS SIGNED ) - + COUNT( * ) - - 39 THEN NULL END + + 79 * - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL 91 * CASE + 7 WHEN - CAST ( NULL AS INTEGER ) THEN 77 WHEN - 12 / - CAST ( NULL AS INTEGER ) - + COUNT ( * ) - - 39 THEN NULL END + + 79 * - 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT 65 * + 58 * - - COUNT( - 7 ) + - - 12 AS col1
----
3782

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT 65 * + 58 * - - COUNT ( - 7 ) + - - 12 AS col1
----
3782

query I rowsort
SELECT ALL + 42 * + + 64 AS col2
----
2688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5285
SELECT DISTINCT + 15, + COALESCE ( - 47, 37 + + - CAST( NULL AS SIGNED ), SUM( 33 ) + + ( - - 3 ) ) * 72 + - + 72 * + 56 AS col2
----
15
-7416

skipif mysql # not compatible
query II rowsort label-5285
SELECT DISTINCT + 15, + COALESCE ( - 47, 37 + + - CAST ( NULL AS INTEGER ), SUM ( 33 ) + + ( - - 3 ) ) * 72 + - + 72 * + 56 AS col2
----
15
-7416

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL 28 * - MIN( DISTINCT 39 ) + - ( + - 5 )
----
-1087

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL 28 * - MIN ( DISTINCT 39 ) + - ( + - 5 )
----
-1087

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT NULLIF ( COUNT( * ), - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-5287
SELECT NULLIF ( COUNT ( * ), - 89 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ALL COUNT( * ) * + COUNT( * ) + + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL COUNT ( * ) * + COUNT ( * ) + + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT COUNT( * ) * 12 - + + 29 - + 55 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5289
SELECT COUNT ( * ) * 12 - + + 29 - + 55 AS col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5290
SELECT + 41 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-5290
SELECT + 41 / - 83
----
0

query I rowsort
SELECT NULLIF ( + 31, 97 )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5292
SELECT ALL + 22 DIV + COUNT( * ) - 86 + - 97 * 0
----
-64

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL + 22 / + COUNT ( * ) - 86 + - 97 * 0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT - CASE - CAST( ( - 40 ) AS SIGNED ) WHEN 46 * + + 33 THEN 89 WHEN + + 70 - + 28 THEN 52 + 50 END - 17 - - + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT - CASE - CAST ( ( - 40 ) AS INTEGER ) WHEN 46 * + + 33 THEN 89 WHEN + + 70 - + 28 THEN 52 + 50 END - 17 - - + 50 AS col1
----
NULL

query I rowsort
SELECT + + ( 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT 42 * CASE + + 80 WHEN + - 31 + 74 THEN 56 WHEN + COALESCE ( - 26, + 77 * + COUNT( * ) * - 57 * 89 * + 15 * COUNT( * ) ) THEN NULL END - 33 - + 71 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT 42 * CASE + + 80 WHEN + - 31 + 74 THEN 56 WHEN + COALESCE ( - 26, + 77 * + COUNT ( * ) * - 57 * 89 * + 15 * COUNT ( * ) ) THEN NULL END - 33 - + 71 col1
----
NULL

query I rowsort
SELECT ALL + - 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT DISTINCT + COUNT( 22 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT + COUNT ( 22 ) col0
----
1

query I rowsort
SELECT ALL + - 86 AS col2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5299
SELECT ALL + 58, COALESCE ( 20, - - ( + + COALESCE ( - 4, 60 * - - 15 - SUM( DISTINCT + COALESCE ( 88, - - ( + 48 ) DIV 52 ) ) - 20 ) ), - 27 * + + COUNT( * ), MAX( DISTINCT 43 ) - 84 ) AS col0
----
58
20

skipif mysql # not compatible
query II rowsort label-5299
SELECT ALL + 58, COALESCE ( 20, - - ( + + COALESCE ( - 4, 60 * - - 15 - SUM ( DISTINCT + COALESCE ( 88, - - ( + 48 ) / 52 ) ) - 20 ) ), - 27 * + + COUNT ( * ), MAX ( DISTINCT 43 ) - 84 ) AS col0
----
58
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT 81 * - - 20 + + 68 * 26 * - ( 68 ) + + CAST( - COUNT( * ) AS SIGNED ) * + - 57 * 99 + + - ( + 80 )
----
-113041

skipif mysql # not compatible
query I rowsort label-5300
SELECT 81 * - - 20 + + 68 * 26 * - ( 68 ) + + CAST ( - COUNT ( * ) AS INTEGER ) * + - 57 * 99 + + - ( + 80 )
----
-113041

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL + 70 * - 32 + + COUNT( * ) AS col2
----
-2239

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL + 70 * - 32 + + COUNT ( * ) AS col2
----
-2239

query I rowsort
SELECT + - COALESCE ( - 19, - 33 ) - - - 84 * - - 75
----
-6281

query I rowsort
SELECT + + 15 * - - ( - 35 ) col2
----
-525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT DISTINCT + CAST( - 87 AS SIGNED ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT + CAST ( - 87 AS INTEGER ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5305
SELECT ALL + - CAST( - - 99 AS SIGNED ) * + 62 AS col2
----
-6138

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + - CAST ( - - 99 AS INTEGER ) * + 62 AS col2
----
-6138

query I rowsort
SELECT + 33 + - 93 * + - ( - 53 ) AS col2
----
-4896

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT ALL 72 DIV + - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL 72 / + - 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT + 42 * + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-5308
SELECT + 42 * + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT DISTINCT - 43 + + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT - 43 + + COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT - - MIN( DISTINCT + 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5310
SELECT - - MIN ( DISTINCT + 40 ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT ALL CAST( NULL AS SIGNED ) + - 21 * + 47 * CAST( - 85 AS SIGNED ) * + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL CAST ( NULL AS INTEGER ) + - 21 * + 47 * CAST ( - 85 AS INTEGER ) * + 9 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5312
SELECT - CASE COALESCE ( - 13, - CASE + 80 WHEN + NULLIF ( - + 4, + + 50 * - 30 ) THEN + 24 END, - CAST( NULL AS SIGNED ) - + - 77 ) WHEN + - COUNT( * ) + - + ( + 96 ) - + + 81 * + ( - AVG ( ALL - 4 ) ) THEN NULL WHEN 89 THEN - 81 ELSE + 2 * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT - CASE COALESCE ( - 13, - CASE + 80 WHEN + NULLIF ( - + 4, + + 50 * - 30 ) THEN + 24 END, - CAST ( NULL AS INTEGER ) - + - 77 ) WHEN + - COUNT ( * ) + - + ( + 96 ) - + + 81 * + ( - AVG ( ALL - 4 ) ) THEN NULL WHEN 89 THEN - 81 ELSE + 2 * - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT + COUNT( * ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5313
SELECT + COUNT ( * ) + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT - NULLIF ( 60, + + 50 ) AS col2
----
-60

query I rowsort
SELECT + 13 + + 8
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT - COUNT( * ) * 78
----
-78

skipif mysql # not compatible
query I rowsort label-5316
SELECT - COUNT ( * ) * 78
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-5317
SELECT ALL 13 + - + COUNT( * ) AS col1, 43 AS col2
----
12
43

skipif mysql # not compatible
query II rowsort label-5317
SELECT ALL 13 + - + COUNT ( * ) AS col1, 43 AS col2
----
12
43

query I rowsort
SELECT ALL - 47 + - 45 * + 31 + 15 + + NULLIF ( 20, + ( + 3 ) )
----
-1407

query I rowsort
SELECT DISTINCT 42 + - 66
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT + CAST( + - 46 AS SIGNED ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT + CAST ( + - 46 AS INTEGER ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 77 + + 69
----
146

query I rowsort
SELECT ALL 36 + - - 2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT + ( + + ( - COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5323
SELECT + ( + + ( - COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT 38 * + - CAST( 4 AS SIGNED ) + 0 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-5324
SELECT 38 * + - CAST ( 4 AS INTEGER ) + 0 AS col1
----
-152

query I rowsort
SELECT - 41 + 14 AS col0
----
-27

query II rowsort
SELECT - 0 * 63 AS col2, - 62
----
0
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT - 98 * - 28 + + 0 + + 8 DIV - + 96 * ( + 65 )
----
2744

skipif mysql # not compatible
query I rowsort label-5327
SELECT - 98 * - 28 + + 0 + + 8 / - + 96 * ( + 65 )
----
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT - ( COUNT( * ) ) + 4 + - 72 + - - MIN( + 63 ) * + 12 + - 64 + 45 * - 0 + 99 AS col0
----
722

skipif mysql # not compatible
query I rowsort label-5328
SELECT - ( COUNT ( * ) ) + 4 + - 72 + - - MIN ( + 63 ) * + 12 + - 64 + 45 * - 0 + 99 AS col0
----
722

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT + COALESCE ( - + NULLIF ( - 56, + 52 ), - COUNT( * ) ) * + 75 AS col0
----
4200

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT + COALESCE ( - + NULLIF ( - 56, + 52 ), - COUNT ( * ) ) * + 75 AS col0
----
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT DISTINCT + + 46 * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT + + 46 * - COUNT ( * )
----
-46

query I rowsort
SELECT + 45 * - 51
----
-2295

query I rowsort
SELECT - 5 * + 54 + + 36
----
-234

query I rowsort
SELECT - + 30 + - 57 - + - 87 AS col2
----
0

query I rowsort
SELECT ALL + ( + 8 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5335
SELECT - - CASE 3 WHEN - 63 * ( + 85 ) * - 80 - 68 * + CAST( NULL AS SIGNED ) THEN - 51 * 65 ELSE + 43 * - 64 + - - 57 + MAX( + + 72 ) END * + 24 AS col0
----
-62952

skipif mysql # not compatible
query I rowsort label-5335
SELECT - - CASE 3 WHEN - 63 * ( + 85 ) * - 80 - 68 * + CAST ( NULL AS INTEGER ) THEN - 51 * 65 ELSE + 43 * - 64 + - - 57 + MAX ( + + 72 ) END * + 24 AS col0
----
-62952

query I rowsort
SELECT DISTINCT + - 60
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5337
SELECT ALL + - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL + - ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT + 47 + + 70 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL - MIN( ALL - 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - MIN ( ALL - 72 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT COUNT( * ) * + 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5340
SELECT COUNT ( * ) * + 76 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ALL + + 42 + 87 * - ( - SUM( - - 31 ) )
----
2739

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL + + 42 + 87 * - ( - SUM ( - - 31 ) )
----
2739

query I rowsort
SELECT 42 - - 8
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-5343
SELECT DISTINCT 27, + 80 DIV + 97 col0
----
27
0

skipif mysql # not compatible
query II rowsort label-5343
SELECT DISTINCT 27, + 80 / + 97 col0
----
27
0

query I rowsort
SELECT DISTINCT 37 + - + 29 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT ALL 96 + - + 94 + CASE - + 8 WHEN - + 7 THEN NULLIF ( - 62, + - AVG ( DISTINCT - 83 ) * - + MIN( - + 13 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL 96 + - + 94 + CASE - + 8 WHEN - + 7 THEN NULLIF ( - 62, + - AVG ( DISTINCT - 83 ) * - + MIN ( - + 13 ) ) END
----
NULL

query II rowsort
SELECT - 31 AS col0, + ( + 82 ) col1
----
-31
82

query I rowsort
SELECT ALL 72 + - 14 + 49 AS col2
----
107

query I rowsort
SELECT ALL + 42 * 91 AS col1
----
3822

query I rowsort
SELECT ALL 36 - + ( 93 ) AS col1
----
-57

query II rowsort
SELECT DISTINCT 47, 64 AS col0
----
47
64

query I rowsort
SELECT 67 + - + ( + 60 )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5352
SELECT DISTINCT 88 DIV + 28 * COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT 88 / + 28 * COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT 12 / - COUNT( * ) * - 51 * CASE + 58 WHEN 25 THEN 64 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT 12 / - COUNT ( * ) * - 51 * CASE + 58 WHEN 25 THEN 64 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5354
SELECT 83 * - CASE - 3 WHEN + + CAST( + 64 AS SIGNED ) THEN + 68 WHEN - + 30 THEN - 18 * - 80 * - 99 END * + - CASE - CAST( NULL AS SIGNED ) WHEN 62 THEN NULL WHEN + 81 THEN + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT 83 * - CASE - 3 WHEN + + CAST ( + 64 AS INTEGER ) THEN + 68 WHEN - + 30 THEN - 18 * - 80 * - 99 END * + - CASE - CAST ( NULL AS INTEGER ) WHEN 62 THEN NULL WHEN + 81 THEN + 5 END
----
NULL

query I rowsort
SELECT 18 + + 90
----
108

query I rowsort
SELECT ALL 23 * - 31 * - 89 AS col1
----
63457

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT DISTINCT 35 DIV + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT 35 / + 46 AS col2
----
0

query I rowsort
SELECT ALL 58 - + - 46 AS col0
----
104

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5359
SELECT 2 DIV - CAST( + + 82 AS SIGNED ) AS col1, - 77
----
0
-77

skipif mysql # not compatible
query II rowsort label-5359
SELECT 2 / - CAST ( + + 82 AS INTEGER ) AS col1, - 77
----
0
-77

query II rowsort
SELECT ALL 87 * + 37 * - - 71, + 6 AS col1
----
228549
6

query I rowsort
SELECT ALL - + NULLIF ( - ( + 34 ), - 34 ) col1
----
NULL

query I rowsort
SELECT ALL + 20 * + 95
----
1900

onlyif mysql # DIV for integer division: 
query III rowsort label-5363
SELECT DISTINCT - 26 AS col2, - 6 * 98 AS col0, 55 DIV 58 + - 12 * + 45 AS col2
----
-26
-588
-540

skipif mysql # not compatible
query III rowsort label-5363
SELECT DISTINCT - 26 AS col2, - 6 * 98 AS col0, 55 / 58 + - 12 * + 45 AS col2
----
-26
-588
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT ALL - + SUM( ALL - 48 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL - + SUM ( ALL - 48 ) col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT 85 + 87 * + ( MAX( - - 62 ) ) AS col2
----
5479

skipif mysql # not compatible
query I rowsort label-5365
SELECT 85 + 87 * + ( MAX ( - - 62 ) ) AS col2
----
5479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5366
SELECT CASE - 31 WHEN - ( - - NULLIF ( 27, - 39 ) ) * + + 79 * - ( 54 ) + - COUNT( * ) * 41 + 43 THEN NULL WHEN 1 THEN 71 - - CASE 24 WHEN + + ( + COUNT( * ) ) * + CAST( NULL AS SIGNED ) THEN 28 WHEN + ( 23 ) + - 25 * 9 THEN - CASE CAST( NULL AS SIGNED ) WHEN NULLIF ( 97, + CAST( - 24 AS SIGNED ) ) THEN 86 + 63 WHEN - CAST( 29 AS SIGNED ) / + 45 THEN 30 END WHEN COUNT( * ) THEN 6 / - 41 ELSE NULL END ELSE 49 END AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5366
SELECT CASE - 31 WHEN - ( - - NULLIF ( 27, - 39 ) ) * + + 79 * - ( 54 ) + - COUNT ( * ) * 41 + 43 THEN NULL WHEN 1 THEN 71 - - CASE 24 WHEN + + ( + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) THEN 28 WHEN + ( 23 ) + - 25 * 9 THEN - CASE CAST ( NULL AS INTEGER ) WHEN NULLIF ( 97, + CAST ( - 24 AS INTEGER ) ) THEN 86 + 63 WHEN - CAST ( 29 AS INTEGER ) / + 45 THEN 30 END WHEN COUNT ( * ) THEN 6 / - 41 ELSE NULL END ELSE 49 END AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5367
SELECT DISTINCT + - 44 + + - NULLIF ( - - 8, + 13 ) + + + NULLIF ( + + 70, + 45 + - - COUNT( * ) ), + 61 + - + 96 + 27 AS col1
----
18
-8

skipif mysql # not compatible
query II rowsort label-5367
SELECT DISTINCT + - 44 + + - NULLIF ( - - 8, + 13 ) + + + NULLIF ( + + 70, + 45 + - - COUNT ( * ) ), + 61 + - + 96 + 27 AS col1
----
18
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT ALL - COUNT( * ), 64 + + 5 * + 4 AS col0
----
-1
84

skipif mysql # not compatible
query II rowsort label-5368
SELECT ALL - COUNT ( * ), 64 + + 5 * + 4 AS col0
----
-1
84

query I rowsort
SELECT 77 * - 41 AS col0
----
-3157

query I rowsort
SELECT ALL 48 + 75
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT ALL + - 6 + + COUNT( * ) * + 57
----
51

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL + - 6 + + COUNT ( * ) * + 57
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5372
SELECT - - 92 * - + COUNT( * ) + - + 11 * - + 59 * + CAST( + - 41 AS SIGNED ) * + 13 + + + 83
----
-345926

skipif mysql # not compatible
query I rowsort label-5372
SELECT - - 92 * - + COUNT ( * ) + - + 11 * - + 59 * + CAST ( + - 41 AS INTEGER ) * + 13 + + + 83
----
-345926

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT ALL - 54 + + + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL - 54 + + + COUNT ( * )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5374
SELECT + 15 + + + COUNT( * ) + - 63 - - + ( ( + 39 ) ) * - - CAST( NULL AS SIGNED ) * - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT + 15 + + + COUNT ( * ) + - 63 - - + ( ( + 39 ) ) * - - CAST ( NULL AS INTEGER ) * - + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL - - COUNT( * ) + 46
----
47

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL - - COUNT ( * ) + 46
----
47

query I rowsort
SELECT DISTINCT - + 77 * - 13
----
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT - COALESCE ( NULLIF ( - + 11, + - 80 ), + SUM( ALL + + ( - ( - - 69 ) ) ) + - 3, + + 72 ) * - - 63 * ( + ( 31 ) ) * + 22 + - 66 + - 14 col0
----
472546

skipif mysql # not compatible
query I rowsort label-5377
SELECT - COALESCE ( NULLIF ( - + 11, + - 80 ), + SUM ( ALL + + ( - ( - - 69 ) ) ) + - 3, + + 72 ) * - - 63 * ( + ( 31 ) ) * + 22 + - 66 + - 14 col0
----
472546

query I rowsort
SELECT ALL - - 27 + + 15 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT 23 - + MAX( - 55 ) * 66 AS col0
----
3653

skipif mysql # not compatible
query I rowsort label-5379
SELECT 23 - + MAX ( - 55 ) * 66 AS col0
----
3653

query I rowsort
SELECT ALL + 46 + 67 AS col1
----
113

query II rowsort
SELECT DISTINCT 25, + 18 col1
----
25
18

query I rowsort
SELECT 67 + 20 * 66 AS col1
----
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT ALL MIN( - - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL MIN ( - - 13 )
----
13

query I rowsort
SELECT 77 + 72 * + 68
----
4973

query II rowsort
SELECT - 86 col2, ( - 5 )
----
-86
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT 86 + + 68 + - COUNT( * ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-5386
SELECT 86 + + 68 + - COUNT ( * ) AS col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL - 83 - NULLIF ( 15, - COUNT( * ) )
----
-98

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL - 83 - NULLIF ( 15, - COUNT ( * ) )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5388
SELECT ALL COUNT( * ), CAST( + 68 AS SIGNED ) col0
----
1
68

skipif mysql # not compatible
query II rowsort label-5388
SELECT ALL COUNT ( * ), CAST ( + 68 AS INTEGER ) col0
----
1
68

query II rowsort
SELECT ALL 82 - - + 36 AS col2, - 69
----
118
-69

query I rowsort
SELECT 92 * - 88 AS col2
----
-8096

query I rowsort
SELECT ALL - 12 * - + 86 AS col1
----
1032

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT DISTINCT MAX( DISTINCT + 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT MAX ( DISTINCT + 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5393
SELECT - 61, COALESCE ( - - 87, + 34 + - - 25, - 85 ) * + + COUNT( * ) + - + 32 AS col1
----
-61
55

skipif mysql # not compatible
query II rowsort label-5393
SELECT - 61, COALESCE ( - - 87, + 34 + - - 25, - 85 ) * + + COUNT ( * ) + - + 32 AS col1
----
-61
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT COUNT( * ) + + 54 * + - 0 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5394
SELECT COUNT ( * ) + + 54 * + - 0 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT DISTINCT MIN( ALL 85 )
----
85

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT MIN ( ALL 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT 18 + - + 10 + - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5396
SELECT 18 + - + 10 + - COUNT ( * ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-5397
SELECT DISTINCT 70 DIV 36, 58 AS col0
----
1
58

skipif mysql # not compatible
query II rowsort label-5397
SELECT DISTINCT 70 / 36, 58 AS col0
----
1
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5398
SELECT - 90, 7 + + ( + 72 ) + 57 DIV COUNT( * ) AS col2
----
-90
136

skipif mysql # not compatible
query II rowsort label-5398
SELECT - 90, 7 + + ( + 72 ) + 57 / COUNT ( * ) AS col2
----
-90
136

query I rowsort
SELECT - 22 + 96
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5400
SELECT - CAST( NULL AS SIGNED ) + + + 93 + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT - CAST ( NULL AS INTEGER ) + + + 93 + 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5401
SELECT DISTINCT + MAX( 76 ) DIV + 59 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT + MAX ( 76 ) / + 59 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5402
SELECT + 50 * - + CAST( + 82 AS SIGNED ) + - 71 + + - 7 * + - 75 AS col1, - COUNT( * )
----
-3646
-1

skipif mysql # not compatible
query II rowsort label-5402
SELECT + 50 * - + CAST ( + 82 AS INTEGER ) + - 71 + + - 7 * + - 75 AS col1, - COUNT ( * )
----
-3646
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT ALL - - 17 * + CAST( 92 AS SIGNED ) + + 41 + 83 col0
----
1688

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL - - 17 * + CAST ( 92 AS INTEGER ) + + 41 + 83 col0
----
1688

query I rowsort
SELECT DISTINCT 98 * - + 2
----
-196

onlyif mysql # aggregate syntax: 
query II rowsort label-5405
SELECT DISTINCT - 24 * + + 31 + - 61 + + - COUNT( * ), + 65 AS col2
----
-806
65

skipif mysql # not compatible
query II rowsort label-5405
SELECT DISTINCT - 24 * + + 31 + - 61 + + - COUNT ( * ), + 65 AS col2
----
-806
65

query I rowsort
SELECT + - 53 + 25
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL + CASE MIN( - - 32 ) WHEN - + COUNT( * ) + + 25 THEN NULL WHEN - COUNT( * ) * - 87 THEN - - 68 * - 28 + - 19 * + 4 ELSE 25 END * + 76
----
1900

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL + CASE MIN ( - - 32 ) WHEN - + COUNT ( * ) + + 25 THEN NULL WHEN - COUNT ( * ) * - 87 THEN - - 68 * - 28 + - 19 * + 4 ELSE 25 END * + 76
----
1900

query II rowsort
SELECT DISTINCT + 43 AS col0, NULLIF ( + - 77, - + 76 + - - 45 )
----
43
-77

query I rowsort
SELECT ALL - + COALESCE ( + 76, - ( - - ( 63 ) ) ) * - 18 + 0 * - + 96 * 76 AS col2
----
1368

query I rowsort
SELECT + 52 * + + 24 AS col0
----
1248

query I rowsort
SELECT DISTINCT 24 * ( 51 ) * 32 + 73
----
39241

query II rowsort
SELECT ALL + + 5, + 66 AS col2
----
5
66

query II rowsort
SELECT + + 94 AS col2, 42 AS col1
----
94
42

query I rowsort
SELECT - + 37 + - 14
----
-51

query I rowsort
SELECT + - 26 * - + 61 + 99 AS col0
----
1685

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5416
SELECT + 21, 63 - + CAST( 1 AS SIGNED ) AS col2
----
21
62

skipif mysql # not compatible
query II rowsort label-5416
SELECT + 21, 63 - + CAST ( 1 AS INTEGER ) AS col2
----
21
62

onlyif mysql # DIV for integer division: 
query II rowsort label-5417
SELECT ALL + + 62 AS col2, - 68 DIV + 71 AS col0
----
62
0

skipif mysql # not compatible
query II rowsort label-5417
SELECT ALL + + 62 AS col2, - 68 / + 71 AS col0
----
62
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5418
SELECT DISTINCT 25 - ( + + 76 ) - CAST( + 89 AS SIGNED ) AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT 25 - ( + + 76 ) - CAST ( + 89 AS INTEGER ) AS col1
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT ALL 60 - + 38 + + 32 * - MIN( + CAST( - 46 AS SIGNED ) ) * 41 + 32 col1
----
60406

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL 60 - + 38 + + 32 * - MIN ( + CAST ( - 46 AS INTEGER ) ) * 41 + 32 col1
----
60406

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT - CASE 71 WHEN - + COUNT( * ) + + - 28 THEN NULL ELSE - 24 END * + 72 col0
----
1728

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT - CASE 71 WHEN - + COUNT ( * ) + + - 28 THEN NULL ELSE - 24 END * + 72 col0
----
1728

query II rowsort
SELECT ALL - 88 * 59, - CASE + + 99 WHEN - ( - 13 ) * - 79 THEN NULL WHEN 12 THEN + + 89 END AS col0
----
-5192
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5422
SELECT + 19 - COALESCE ( - - 56, 23 * - MAX( - 18 ) / + ( 87 ) - + + 92 ) - - CAST( NULL AS SIGNED ) - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT + 19 - COALESCE ( - - 56, 23 * - MAX ( - 18 ) / + ( 87 ) - + + 92 ) - - CAST ( NULL AS INTEGER ) - + 34
----
NULL

query I rowsort
SELECT - 24 * 30 col2
----
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT + COUNT( * ) * + 29 AS col1, + 64
----
29
64

skipif mysql # not compatible
query II rowsort label-5424
SELECT + COUNT ( * ) * + 29 AS col1, + 64
----
29
64

query I rowsort
SELECT + ( - - 22 ) + - + NULLIF ( + ( CASE 18 WHEN + - 5 THEN - + 18 END ), 3 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL MIN( 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL MIN ( 91 ) AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT - CASE - + 51 WHEN 5 * + 67 THEN + 55 WHEN + 97 - + ( + 93 ) * + 81 + + + 12 * - CAST( + - 69 AS SIGNED ) THEN NULL ELSE NULL END / - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT - CASE - + 51 WHEN 5 * + 67 THEN + 55 WHEN + 97 - + ( + 93 ) * + 81 + + + 12 * - CAST ( + - 69 AS INTEGER ) THEN NULL ELSE NULL END / - 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5428
SELECT ALL MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT ALL + 43 DIV + + ( + - 72 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL + 43 / + + ( + - 72 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT DISTINCT MAX( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT MAX ( 73 )
----
73

query I rowsort
SELECT ALL ( + COALESCE ( - 97, 26 ) )
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-5432
SELECT ALL + 25 DIV + 66 AS col0, + 12 - - 57 DIV + 22
----
0
14

skipif mysql # not compatible
query II rowsort label-5432
SELECT ALL + 25 / + 66 AS col0, + 12 - - 57 / + 22
----
0
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5433
SELECT ALL + 53 DIV + 26 AS col1, ( CASE + + 47 WHEN - COALESCE ( 34, ( + 25 ) DIV + AVG ( + ( - CAST( NULL AS SIGNED ) ) ) - + 40 - + AVG ( + - 99 ), + 74 ) THEN + + 67 + - CASE - + MIN( - - 97 ) WHEN + 10 DIV 79 THEN NULL WHEN + MAX( 90 ) THEN - 31 WHEN 99 * CAST( + 53 * 41 AS SIGNED ) THEN NULL ELSE 56 * + 43 END * 63 ELSE NULL END ) AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-5433
SELECT ALL + 53 / + 26 AS col1, ( CASE + + 47 WHEN - COALESCE ( 34, ( + 25 ) / + AVG ( + ( - CAST ( NULL AS INTEGER ) ) ) - + 40 - + AVG ( + - 99 ), + 74 ) THEN + + 67 + - CASE - + MIN ( - - 97 ) WHEN + 10 / 79 THEN NULL WHEN + MAX ( 90 ) THEN - 31 WHEN 99 * CAST ( + 53 * 41 AS INTEGER ) THEN NULL ELSE 56 * + 43 END * 63 ELSE NULL END ) AS col2
----
2
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5434
SELECT ALL COALESCE ( 28, 61 - - ( + 78 ), - - CAST( NULL AS SIGNED ) )
----
28

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL COALESCE ( 28, 61 - - ( + 78 ), - - CAST ( NULL AS INTEGER ) )
----
28

query I rowsort
SELECT DISTINCT + ( + 8 ) + 97 AS col1
----
105

query II rowsort
SELECT - 5 + + + 80 AS col0, 6 + + 13 * ( + 0 ) * + 41 * - 81
----
75
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT + MIN( + 9 ) - 50
----
-41

skipif mysql # not compatible
query I rowsort label-5437
SELECT + MIN ( + 9 ) - 50
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL - - COUNT( * ) * 11 * - 16
----
-176

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL - - COUNT ( * ) * 11 * - 16
----
-176

query I rowsort
SELECT - + 48 * + 68 + + 5 + 64 AS col2
----
-3195

query I rowsort
SELECT + + 43 * + 77
----
3311

query I rowsort
SELECT DISTINCT 82 * 93 + - 32 * - 60 AS col2
----
9546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5442
SELECT ALL + + 41 / + CAST( NULL AS SIGNED ) + + - 40 + - 16 / - - 69 + - 81 * 72 + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL + + 41 / + CAST ( NULL AS INTEGER ) + + - 40 + - 16 / - - 69 + - 81 * 72 + 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5443
SELECT DISTINCT + NULLIF ( - 77, + 77 ) DIV + + ( - 80 ) + 28 * - + 28 + COUNT( * )
----
-783

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT + NULLIF ( - 77, + 77 ) / + + ( - 80 ) + 28 * - + 28 + COUNT ( * )
----
-783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT - 70 * - + CAST( - 54 AS SIGNED ) AS col2
----
-3780

skipif mysql # not compatible
query I rowsort label-5444
SELECT - 70 * - + CAST ( - 54 AS INTEGER ) AS col2
----
-3780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5445
SELECT ALL + 27 DIV 7 + - + COUNT( * ) + COUNT( ALL - - 76 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL + 27 / 7 + - + COUNT ( * ) + COUNT ( ALL - - 76 ) AS col1
----
3

query I rowsort
SELECT DISTINCT + + 62 AS col2
----
62

query II rowsort
SELECT + - 16 * - 44 AS col1, + 33 + 56 * - + 58 AS col2
----
704
-3215

query I rowsort
SELECT + ( - 64 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5449
SELECT ALL COUNT( * ) * 98 - COUNT( 42 ) DIV - + NULLIF ( 80, - - 8 ) * 83 + + - ( + - 37 ) + + + 89
----
224

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL COUNT ( * ) * 98 - COUNT ( 42 ) / - + NULLIF ( 80, - - 8 ) * 83 + + - ( + - 37 ) + + + 89
----
224

query I rowsort
SELECT ALL - 77 * + 48 AS col2
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT + + COALESCE ( - NULLIF ( - 18, COALESCE ( - ( - COUNT( * ) ), - - COUNT( * ) * + + 8 * 86 + - 55 * + COUNT( 3 ), CASE - + 2 WHEN + 38 + - 57 THEN NULL ELSE + 77 + + 53 * + 47 END ) * + COUNT( * ) ), + 12 + + ( - 55 ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5451
SELECT + + COALESCE ( - NULLIF ( - 18, COALESCE ( - ( - COUNT ( * ) ), - - COUNT ( * ) * + + 8 * 86 + - 55 * + COUNT ( 3 ), CASE - + 2 WHEN + 38 + - 57 THEN NULL ELSE + 77 + + 53 * + 47 END ) * + COUNT ( * ) ), + 12 + + ( - 55 ) ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL + + COALESCE ( COUNT( * ), 7 )
----
1

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL + + COALESCE ( COUNT ( * ), 7 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5453
SELECT ALL + 86 * CAST( + 77 AS SIGNED ) AS col2
----
6622

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + 86 * CAST ( + 77 AS INTEGER ) AS col2
----
6622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5454
SELECT + 15 * + + 21 + + COUNT( * ) - 22 + + CAST( + 77 AS SIGNED ) * + 7 * - + 52 + + - COUNT( * ) AS col1
----
-27735

skipif mysql # not compatible
query I rowsort label-5454
SELECT + 15 * + + 21 + + COUNT ( * ) - 22 + + CAST ( + 77 AS INTEGER ) * + 7 * - + 52 + + - COUNT ( * ) AS col1
----
-27735

onlyif mysql # aggregate syntax: 
query II rowsort label-5455
SELECT DISTINCT 78 * + 80 * + - COUNT( * ) AS col1, + 77
----
-6240
77

skipif mysql # not compatible
query II rowsort label-5455
SELECT DISTINCT 78 * + 80 * + - COUNT ( * ) AS col1, + 77
----
-6240
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT + 49 * SUM( - 98 )
----
-4802

skipif mysql # not compatible
query I rowsort label-5456
SELECT + 49 * SUM ( - 98 )
----
-4802

query I rowsort
SELECT DISTINCT 54 * 41
----
2214

query I rowsort
SELECT + 95 + 41
----
136

query I rowsort
SELECT 20 * - + 24 * + 42 - + 60
----
-20220

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + COUNT( * ) * 31 * + 26 AS col2
----
806

skipif mysql # not compatible
query I rowsort label-5460
SELECT + COUNT ( * ) * 31 * + 26 AS col2
----
806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT + CAST( + - 5 AS SIGNED ) + + 99 col1
----
94

skipif mysql # not compatible
query I rowsort label-5461
SELECT + CAST ( + - 5 AS INTEGER ) + + 99 col1
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-5462
SELECT ALL 91, + 84 DIV - - 80 AS col1
----
91
1

skipif mysql # not compatible
query II rowsort label-5462
SELECT ALL 91, + 84 / - - 80 AS col1
----
91
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT ALL CASE - - 50 WHEN - COUNT( * ) THEN NULL WHEN CASE + + 47 WHEN 2 THEN - 7 + CAST( - - COUNT( * ) AS SIGNED ) * - 88 + - + 39 WHEN + + 43 THEN - 22 + 86 * + 18 ELSE - 10 END THEN + 65 * ( + - ( - + COUNT( * ) ) ) * - 15 + - 33 * - + 94 / 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL CASE - - 50 WHEN - COUNT ( * ) THEN NULL WHEN CASE + + 47 WHEN 2 THEN - 7 + CAST ( - - COUNT ( * ) AS INTEGER ) * - 88 + - + 39 WHEN + + 43 THEN - 22 + 86 * + 18 ELSE - 10 END THEN + 65 * ( + - ( - + COUNT ( * ) ) ) * - 15 + - 33 * - + 94 / 93 ELSE NULL END
----
NULL

query I rowsort
SELECT + 65 + - 44 col2
----
21

query II rowsort
SELECT ALL 49, - 17 - 42 AS col0
----
49
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5466
SELECT ALL COALESCE ( - + 37, - - CAST( + 87 AS SIGNED ), - 81 DIV + 90 DIV + 62 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL COALESCE ( - + 37, - - CAST ( + 87 AS INTEGER ), - 81 / + 90 / + 62 ) AS col0
----
-37

query I rowsort
SELECT + 41 + 87 AS col1
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-5468
SELECT DISTINCT 6 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT 6 / + 92
----
0

query I rowsort
SELECT ALL 65 + + + 17 AS col1
----
82

query I rowsort
SELECT + ( - 35 ) + 72 + + - CASE + - ( - 7 ) WHEN + 44 THEN - 39 END / + - 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5471
SELECT - CAST( NULL AS SIGNED ) AS col1, 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-5471
SELECT - CAST ( NULL AS INTEGER ) AS col1, 72
----
NULL
72

query I rowsort
SELECT + 81 * + 69
----
5589

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT - MIN( ALL COALESCE ( 94, + - 73 * + 84 ) ) + - 3 + - 28 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-5473
SELECT - MIN ( ALL COALESCE ( 94, + - 73 * + 84 ) ) + - 3 + - 28 AS col0
----
-125

query I rowsort
SELECT ALL ( + 56 )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5475
SELECT - SUM( DISTINCT - - 70 ) DIV SUM( DISTINCT 4 )
----
-17

skipif mysql # not compatible
query I rowsort label-5475
SELECT - SUM ( DISTINCT - - 70 ) / SUM ( DISTINCT 4 )
----
-17

query I rowsort
SELECT 13 + + 79 * 84
----
6649

query II rowsort
SELECT - 76 AS col0, - 64 AS col1
----
-76
-64

query II rowsort
SELECT ALL 98 AS col2, 22 * + 7 col1
----
98
154

query I rowsort
SELECT - 68 + - + 40 * 25 + - 36
----
-1104

query I rowsort
SELECT ALL - 31 + - - 47 * - 42
----
-2005

query I rowsort
SELECT 93 * 30 AS col1
----
2790

query I rowsort
SELECT - 59 col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5483
SELECT + 24 DIV + 59 - 55 * - - 53 AS col1
----
-2915

skipif mysql # not compatible
query I rowsort label-5483
SELECT + 24 / + 59 - 55 * - - 53 AS col1
----
-2915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5484
SELECT + 4 + + CAST( NULL AS SIGNED ) * 38 / SUM( + + 3 ) / + - 63 * - 25 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT + 4 + + CAST ( NULL AS INTEGER ) * 38 / SUM ( + + 3 ) / + - 63 * - 25 col1
----
NULL

query I rowsort
SELECT ALL - + ( - 81 )
----
81

query I rowsort
SELECT DISTINCT + 37 - - 94 * - + 46 col0
----
-4287

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + ( - + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5487
SELECT + ( - + COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT - 70 + 35
----
-35

query I rowsort
SELECT ALL + + 90 * + - 60
----
-5400

query I rowsort
SELECT ALL + 71 * 46
----
3266

onlyif mysql # aggregate syntax: 
query II rowsort label-5491
SELECT ALL - - COUNT( * ) AS col0, 90 * - 38 + - + ( - 29 ) * 98 * + 4 + + COUNT( * ) - - - SUM( DISTINCT + 88 ) AS col1
----
1
7861

skipif mysql # not compatible
query II rowsort label-5491
SELECT ALL - - COUNT ( * ) AS col0, 90 * - 38 + - + ( - 29 ) * 98 * + 4 + + COUNT ( * ) - - - SUM ( DISTINCT + 88 ) AS col1
----
1
7861

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT MIN( - 84 ) * + COALESCE ( 32, 57 + - 8 * - 54 ) * - - 6 + + COUNT( * ) + + 30 - + 36 * - 33 + + + 67 AS col1
----
-14842

skipif mysql # not compatible
query I rowsort label-5492
SELECT MIN ( - 84 ) * + COALESCE ( 32, 57 + - 8 * - 54 ) * - - 6 + + COUNT ( * ) + + 30 - + 36 * - 33 + + + 67 AS col1
----
-14842

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5493
SELECT 52 * + COUNT( - 26 ) + + + 63 + + 93 + 81 DIV + 36
----
210

skipif mysql # not compatible
query I rowsort label-5493
SELECT 52 * + COUNT ( - 26 ) + + + 63 + + 93 + 81 / + 36
----
210

onlyif mysql # aggregate syntax: 
query II rowsort label-5494
SELECT 76 * - + 40 * ( + 50 ) AS col0, + COUNT( * ) * - 91 + + 9 col0
----
-152000
-82

skipif mysql # not compatible
query II rowsort label-5494
SELECT 76 * - + 40 * ( + 50 ) AS col0, + COUNT ( * ) * - 91 + + 9 col0
----
-152000
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5495
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5496
SELECT ALL ( COUNT( * ) ) * COALESCE ( - 41, MIN( + - 92 ) * - 98 + - + 13, + CAST( 92 AS SIGNED ) + 6 + + 33 ) * 84 * + 8 + + - COALESCE ( - ( - 36 ), 19 - 13 ) AS col1
----
-27588

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL ( COUNT ( * ) ) * COALESCE ( - 41, MIN ( + - 92 ) * - 98 + - + 13, + CAST ( 92 AS INTEGER ) + 6 + + 33 ) * 84 * + 8 + + - COALESCE ( - ( - 36 ), 19 - 13 ) AS col1
----
-27588

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT DISTINCT COUNT( * ) * + + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT COUNT ( * ) * + + 57 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT - COUNT( + + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT - COUNT ( + + 80 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT ALL 24 + + COUNT( ALL - 68 ) + - + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL 24 + + COUNT ( ALL - 68 ) + - + COUNT ( * ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT 89 * - 23 - - COUNT( * ) AS col0
----
-2046

skipif mysql # not compatible
query I rowsort label-5500
SELECT 89 * - 23 - - COUNT ( * ) AS col0
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT ALL COUNT( * ) + + 55 * - 54 AS col0
----
-2969

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL COUNT ( * ) + + 55 * - 54 AS col0
----
-2969

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT COUNT( * ) - + 8
----
-7

skipif mysql # not compatible
query I rowsort label-5502
SELECT COUNT ( * ) - + 8
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT COUNT( * ) * + 6
----
6

skipif mysql # not compatible
query I rowsort label-5503
SELECT COUNT ( * ) * + 6
----
6

query I rowsort
SELECT 53 + - 26 + + - 27 + 90 + 18 AS col0
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-5505
SELECT 97 - - SUM( ( 22 ) ) AS col1, 15 AS col0
----
119
15

skipif mysql # not compatible
query II rowsort label-5505
SELECT 97 - - SUM ( ( 22 ) ) AS col1, 15 AS col0
----
119
15

query I rowsort
SELECT ALL + COALESCE ( + - 39, + + 18, - 11, - 97 ) AS col1
----
-39

query I rowsort
SELECT - 43 - - + 0 * + + 61 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - SUM( DISTINCT 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-5508
SELECT - SUM ( DISTINCT 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT ALL + 60 * COUNT( * ) col1
----
60

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL + 60 * COUNT ( * ) col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT DISTINCT - COUNT( * ) - - 19 * 4 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT - COUNT ( * ) - - 19 * 4 AS col0
----
75

query I rowsort
SELECT + 9 + + ( - 57 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ( + - COUNT( * ) ) * 88
----
-88

skipif mysql # not compatible
query I rowsort label-5512
SELECT ( + - COUNT ( * ) ) * 88
----
-88

query I rowsort
SELECT ALL 49 * - 64 + - 49 AS col2
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT COUNT( * ) - + 86 + + 36 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT COUNT ( * ) - + 86 + + 36 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT - COUNT( ALL + 12 ) * - + 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5515
SELECT - COUNT ( ALL + 12 ) * - + 7 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT + + COALESCE ( 14, ( - 64 ) * - 79 + + - ( - CAST( 22 AS SIGNED ) ) + 61 * ( + 10 ) )
----
14

skipif mysql # not compatible
query I rowsort label-5516
SELECT + + COALESCE ( 14, ( - 64 ) * - 79 + + - ( - CAST ( 22 AS INTEGER ) ) + 61 * ( + 10 ) )
----
14

query I rowsort
SELECT ALL - + 7 AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5518
SELECT ALL - 95 * + - COALESCE ( - 45, - - MIN( ALL + - 99 ) ) AS col0, - COUNT( * ) DIV + 30 AS col1
----
-4275
0

skipif mysql # not compatible
query II rowsort label-5518
SELECT ALL - 95 * + - COALESCE ( - 45, - - MIN ( ALL + - 99 ) ) AS col0, - COUNT ( * ) / + 30 AS col1
----
-4275
0

query I rowsort
SELECT + 81 * + 14 AS col0
----
1134

onlyif mysql # DIV for integer division: 
query I rowsort label-5520
SELECT ALL - 84 DIV + + 19
----
-4

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL - 84 / + + 19
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT 78 * - NULLIF ( - 99, - MAX( DISTINCT 26 ) ) + + - 20 AS col1
----
7702

skipif mysql # not compatible
query I rowsort label-5521
SELECT 78 * - NULLIF ( - 99, - MAX ( DISTINCT 26 ) ) + + - 20 AS col1
----
7702

onlyif mysql # DIV for integer division: 
query I rowsort label-5522
SELECT + 80 DIV 70 * + ( - 54 ) + + + 85
----
31

skipif mysql # not compatible
query I rowsort label-5522
SELECT + 80 / 70 * + ( - 54 ) + + + 85
----
31

query I rowsort
SELECT ALL - NULLIF ( + - 84, NULLIF ( - - 82, - 53 * - 54 ) )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5524
SELECT 76 + 43 DIV - - 51 * + + COUNT( * ) * 9 col1, + 32
----
76
32

skipif mysql # not compatible
query II rowsort label-5524
SELECT 76 + 43 / - - 51 * + + COUNT ( * ) * 9 col1, + 32
----
76
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5525
SELECT + 18 * + 95 + + 13 - + - CAST( NULL AS DECIMAL ) * 89 / 13 / - 29 / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT + 18 * + 95 + + 13 - + - CAST ( NULL AS REAL ) * 89 / 13 / - 29 / - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL + CASE - 97 WHEN + SUM( + 14 ) THEN - 16 ELSE NULL END * + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + CASE - 97 WHEN + SUM ( + 14 ) THEN - 16 ELSE NULL END * + 58 AS col2
----
NULL

query I rowsort
SELECT 92 - - ( - - 33 ) AS col1
----
125

query I rowsort
SELECT ALL + 84 * - + 97
----
-8148

onlyif mysql # aggregate syntax: 
query II rowsort label-5529
SELECT ALL - MIN( ALL 3 ) + - - 80, + ( 84 ) AS col2
----
77
84

skipif mysql # not compatible
query II rowsort label-5529
SELECT ALL - MIN ( ALL 3 ) + - - 80, + ( 84 ) AS col2
----
77
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT 57 * + + 8 * COUNT( DISTINCT - 28 ) * + + 87 + - 97 + 81
----
39656

skipif mysql # not compatible
query I rowsort label-5530
SELECT 57 * + + 8 * COUNT ( DISTINCT - 28 ) * + + 87 + - 97 + 81
----
39656

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT DISTINCT - COUNT( * ) + 52 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT - COUNT ( * ) + 52 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT DISTINCT + COUNT( * ) + + MIN( 50 ) + - 76 * - - 6 * + 13
----
-5877

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT + COUNT ( * ) + + MIN ( 50 ) + - 76 * - - 6 * + 13
----
-5877

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT ALL - 94 + + 18 DIV 31 * - - 19 * + COALESCE ( 91, ( 53 ) + - 94, 46 * + 77 * + 37 DIV 19 )
----
-94

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL - 94 + + 18 / 31 * - - 19 * + COALESCE ( 91, ( 53 ) + - 94, 46 * + 77 * + 37 / 19 )
----
-94

query I rowsort
SELECT 92 + - + 55 AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5535
SELECT 94 * COALESCE ( 11, - + 57 * + CASE + 77 WHEN 78 THEN NULL ELSE + NULLIF ( + 5, + + MIN( 11 ) ) DIV - 29 + - - 85 + + + 55 - - MIN( DISTINCT + 76 ) END ) + + 66 AS col0
----
1100

skipif mysql # not compatible
query I rowsort label-5535
SELECT 94 * COALESCE ( 11, - + 57 * + CASE + 77 WHEN 78 THEN NULL ELSE + NULLIF ( + 5, + + MIN ( 11 ) ) / - 29 + - - 85 + + + 55 - - MIN ( DISTINCT + 76 ) END ) + + 66 AS col0
----
1100

query I rowsort
SELECT 37 - 90
----
-53

query I rowsort
SELECT ALL + ( - + ( - 59 ) ) + - + 50
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT - CAST( NULL AS SIGNED ) * - 21 + + + ( 41 ) + - 45 * - 2 * 60 + - - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT - CAST ( NULL AS INTEGER ) * - 21 + + + ( 41 ) + - 45 * - 2 * 60 + - - 46 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT DISTINCT 52 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT 52 / - 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5540
SELECT DISTINCT NULLIF ( + - CAST( NULL AS DECIMAL ), + 52 ) + MIN( 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT NULLIF ( + - CAST ( NULL AS REAL ), + 52 ) + MIN ( 62 ) AS col0
----
NULL

query I rowsort
SELECT ALL 70 + - 5 * 5
----
45

query I rowsort
SELECT - 76 * + 32 AS col0
----
-2432

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT ALL - COALESCE ( + 13, 70 ) DIV 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL - COALESCE ( + 13, 70 ) / 48 AS col1
----
0

query I rowsort
SELECT ALL 46 + - 67
----
-21

query I rowsort
SELECT ALL 64 * - 71
----
-4544

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT - + ( - + MIN( DISTINCT - 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-5546
SELECT - + ( - + MIN ( DISTINCT - 46 ) )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5547
SELECT ALL - 89 * ( CASE - + 7 WHEN 0 THEN + + 63 WHEN 30 + + - 77 THEN - + 99 END ) + - CAST( NULL AS SIGNED ) AS col1, 66
----
NULL
66

skipif mysql # not compatible
query II rowsort label-5547
SELECT ALL - 89 * ( CASE - + 7 WHEN 0 THEN + + 63 WHEN 30 + + - 77 THEN - + 99 END ) + - CAST ( NULL AS INTEGER ) AS col1, 66
----
NULL
66

query I rowsort
SELECT ALL - 31 - 61 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT - + COUNT( * ) * - 10 * MIN( ALL - - 40 )
----
400

skipif mysql # not compatible
query I rowsort label-5549
SELECT - + COUNT ( * ) * - 10 * MIN ( ALL - - 40 )
----
400

query I rowsort
SELECT - 3 + + + NULLIF ( - 69, 49 ) + - 52
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + ( + + 3 ) + 94 + 64 * 57 - COUNT( * ) - - 40 * 23 col1
----
4664

skipif mysql # not compatible
query I rowsort label-5551
SELECT + ( + + 3 ) + 94 + 64 * 57 - COUNT ( * ) - - 40 * 23 col1
----
4664

onlyif mysql # aggregate syntax: 
query II rowsort label-5552
SELECT ALL 60 - 43 * + COUNT( * ) AS col1, - 86 col2
----
17
-86

skipif mysql # not compatible
query II rowsort label-5552
SELECT ALL 60 - 43 * + COUNT ( * ) AS col1, - 86 col2
----
17
-86

query I rowsort
SELECT + NULLIF ( - 29, - ( + - 21 ) * AVG ( 54 ) + + ( COALESCE ( - - 36, 76, - 78 ) ) + - - 71 * - 15 * 94 * + + 3 / + - 38 + 99 )
----
-29

query I rowsort
SELECT + + 68 + + - 54
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT + + 10 * + 7 - CAST( NULL AS SIGNED ) + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT + + 10 * + 7 - CAST ( NULL AS INTEGER ) + 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT - SUM( DISTINCT - 38 ) * 90 + 39
----
3459

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT - SUM ( DISTINCT - 38 ) * 90 + 39
----
3459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5557
SELECT + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT - 88 + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-5558
SELECT - 88 + COUNT ( * )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5559
SELECT DISTINCT + COUNT( * ) * - ( - 74 ) DIV - - NULLIF ( + + COUNT( * ), - - NULLIF ( 32, ( + 62 ) * - AVG ( 20 ) * + + 80 * + COALESCE ( 86, - 90 + ( - 98 ) + + 78 + + - 46, - CASE 6 WHEN + 19 + - - 12 * - 27 THEN - 57 WHEN 93 + CAST( + COUNT( * ) + 89 AS SIGNED ) * 59 THEN 19 WHEN COUNT( * ) THEN NULL ELSE ( ( - COUNT( * ) ) ) END ) DIV COUNT( DISTINCT 88 * - ( + 63 ) + - 33 ) + + 35 * - 15 ) )
----
74

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + COUNT ( * ) * - ( - 74 ) / - - NULLIF ( + + COUNT ( * ), - - NULLIF ( 32, ( + 62 ) * - AVG ( 20 ) * + + 80 * + COALESCE ( 86, - 90 + ( - 98 ) + + 78 + + - 46, - CASE 6 WHEN + 19 + - - 12 * - 27 THEN - 57 WHEN 93 + CAST ( + COUNT ( * ) + 89 AS INTEGER ) * 59 THEN 19 WHEN COUNT ( * ) THEN NULL ELSE ( ( - COUNT ( * ) ) ) END ) / COUNT ( DISTINCT 88 * - ( + 63 ) + - 33 ) + + 35 * - 15 ) )
----
74

query I rowsort
SELECT ALL + - ( + - 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5561
SELECT DISTINCT + 77 * + + MAX( DISTINCT ( + CAST( NULL AS SIGNED ) ) ) * + + 49 - - 23 + - 55 + 73 * + - 35 * + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT + 77 * + + MAX ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) ) * + + 49 - - 23 + - 55 + 73 * + - 35 * + 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT + ( + NULLIF ( MAX( DISTINCT - 2 ), - 50 * - ( - COUNT( * ) ) + - NULLIF ( - 37, 54 + - 66 * - + 66 + - - 76 ) ) )
----
-2

skipif mysql # not compatible
query I rowsort label-5562
SELECT + ( + NULLIF ( MAX ( DISTINCT - 2 ), - 50 * - ( - COUNT ( * ) ) + - NULLIF ( - 37, 54 + - 66 * - + 66 + - - 76 ) ) )
----
-2

query I rowsort
SELECT DISTINCT 96 * + 18
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ( - - COUNT( DISTINCT - + 87 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5564
SELECT ( - - COUNT ( DISTINCT - + 87 ) )
----
1

query I rowsort
SELECT - 42 * + + 58
----
-2436

query I rowsort
SELECT ALL 8 * - - 25 + - + 79 * 29 - - + 35 col1
----
-2056

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT + 6 DIV - - 89
----
0

skipif mysql # not compatible
query I rowsort label-5567
SELECT + 6 / - - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT NULLIF ( + 96, + 19 + + NULLIF ( + + 97, COUNT( * ) * - 31 - + + 36 ) * 79 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5568
SELECT NULLIF ( + 96, + 19 + + NULLIF ( + + 97, COUNT ( * ) * - 31 - + + 36 ) * 79 ) AS col1
----
96

query I rowsort
SELECT ALL + ( + 49 )
----
49

query I rowsort
SELECT COALESCE ( + 84, - 4 * - 76 ) AS col1
----
84

query I rowsort
SELECT DISTINCT - 8 * ( + COALESCE ( - 51, - 60 ) ) col2
----
408

query I rowsort
SELECT ALL 41 * 76 col0
----
3116

query I rowsort
SELECT - 52 * + - 35 AS col1
----
1820

query I rowsort
SELECT - 70 + - 72
----
-142

query I rowsort
SELECT DISTINCT - ( + + 91 ) * - 85 AS col0
----
7735

query I rowsort
SELECT ALL - + 46 * - 79 * + 98 + 4 + 0 + - ( 31 ) - - + ( 61 )
----
356166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5577
SELECT - COUNT( + + CAST( NULL AS DECIMAL ) ) + NULLIF ( - + 99, NULLIF ( + 95, 66 ) - + 2 / - CAST( + 46 AS SIGNED ) ) * 25 + + 51 + - ( - COUNT( * ) ) * - 94
----
-2518

skipif mysql # not compatible
query I rowsort label-5577
SELECT - COUNT ( + + CAST ( NULL AS REAL ) ) + NULLIF ( - + 99, NULLIF ( + 95, 66 ) - + 2 / - CAST ( + 46 AS INTEGER ) ) * 25 + + 51 + - ( - COUNT ( * ) ) * - 94
----
-2518

onlyif mysql # aggregate syntax: 
query II rowsort label-5578
SELECT 68, SUM( - 90 ) AS col1
----
68
-90

skipif mysql # not compatible
query II rowsort label-5578
SELECT 68, SUM ( - 90 ) AS col1
----
68
-90

query I rowsort
SELECT - + 88 * - 42
----
3696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5580
SELECT ALL - - AVG ( ALL CAST( NULL AS SIGNED ) ) * - 66 * + 28 + + COALESCE ( 75, - 56 * + - 77, - 12 ) / - 71 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL - - AVG ( ALL CAST ( NULL AS INTEGER ) ) * - 66 * + 28 + + COALESCE ( 75, - 56 * + - 77, - 12 ) / - 71 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL - ( SUM( 80 ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL - ( SUM ( 80 ) ) AS col0
----
-80

query I rowsort
SELECT DISTINCT 49 * + + 87
----
4263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT - + 39 - 42 - + + 9 + - - 45 + - CAST( NULL AS SIGNED ) * + 49 * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT - + 39 - 42 - + + 9 + - - 45 + - CAST ( NULL AS INTEGER ) * + 49 * 78
----
NULL

query I rowsort
SELECT ALL 67 * + 75 AS col1
----
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT - NULLIF ( + 37, + ( - + 29 ) + + COALESCE ( 79, + 73, - - COUNT( * ) * + 61 + - - 38 + - AVG ( - + 37 ) / + 53 ) / + 96 ) * - 34 - + 96 + 12 AS col0
----
1174

skipif mysql # not compatible
query I rowsort label-5585
SELECT - NULLIF ( + 37, + ( - + 29 ) + + COALESCE ( 79, + 73, - - COUNT ( * ) * + 61 + - - 38 + - AVG ( - + 37 ) / + 53 ) / + 96 ) * - 34 - + 96 + 12 AS col0
----
1174

query I rowsort
SELECT ALL - - 84 * + 75 * + 15
----
94500

query I rowsort
SELECT - 80 * - 46 * + - 72 - - 96
----
-264864

onlyif mysql # aggregate syntax: 
query II rowsort label-5588
SELECT - COUNT( ALL - COALESCE ( + 93, CASE - 69 WHEN - 72 THEN - 34 / + 85 / - 70 ELSE NULL END ) ), - CASE + NULLIF ( - 34, ( - 56 ) ) WHEN - + 83 THEN NULL ELSE - SUM( DISTINCT + - 12 ) END AS col1
----
-1
-12

skipif mysql # not compatible
query II rowsort label-5588
SELECT - COUNT ( ALL - COALESCE ( + 93, CASE - 69 WHEN - 72 THEN - 34 / + 85 / - 70 ELSE NULL END ) ), - CASE + NULLIF ( - 34, ( - 56 ) ) WHEN - + 83 THEN NULL ELSE - SUM ( DISTINCT + - 12 ) END AS col1
----
-1
-12

query II rowsort
SELECT - 74, + 2 AS col1
----
-74
2

query I rowsort
SELECT + CASE 50 WHEN - 64 THEN + 9 - + - 86 + - 66 - - + 61 * + 26 END / + 14 AS col0
----
NULL

query I rowsort
SELECT - - 62 * - ( - ( + 1 ) ) AS col0
----
62

query II rowsort
SELECT - - 98 AS col0, - 6
----
98
-6

query I rowsort
SELECT - + 87 * 77 AS col1
----
-6699

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5594
SELECT DISTINCT - ( ( 49 ) ) * 59 DIV - + SUM( 98 ) + - + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT - ( ( 49 ) ) * 59 / - + SUM ( 98 ) + - + COUNT ( * ) AS col1
----
28

query I rowsort
SELECT ALL - 1 + 93 AS col0
----
92

query I rowsort
SELECT + 39 - + 78
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT - COALESCE ( MIN( 18 ), 60, 4 * + SUM( ALL + 30 ) + + 63 + 75 * + 49 + - 4 + + 82, 90 + + - 96 * - 74 ) AS col2, - 37 AS col1
----
-18
-37

skipif mysql # not compatible
query II rowsort label-5597
SELECT - COALESCE ( MIN ( 18 ), 60, 4 * + SUM ( ALL + 30 ) + + 63 + 75 * + 49 + - 4 + + 82, 90 + + - 96 * - 74 ) AS col2, - 37 AS col1
----
-18
-37

query I rowsort
SELECT ALL - 66 + 75 * + - ( 3 )
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT ALL - 31 DIV 7 + + 92 * 50
----
4596

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL - 31 / 7 + + 92 * 50
----
4596

query I rowsort
SELECT + 36 * + - 86 * 13 AS col2
----
-40248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT - 72 * + - 60 - COUNT( * ) DIV + - COALESCE ( + 73, - NULLIF ( - + 10, - 34 ) * - + 48 + + - CASE 56 WHEN + 7 THEN - 85 * - - SUM( DISTINCT 48 ) * 44 END, - 60 ) * - NULLIF ( + COUNT( * ), - - 66 )
----
4320

skipif mysql # not compatible
query I rowsort label-5601
SELECT - 72 * + - 60 - COUNT ( * ) / + - COALESCE ( + 73, - NULLIF ( - + 10, - 34 ) * - + 48 + + - CASE 56 WHEN + 7 THEN - 85 * - - SUM ( DISTINCT 48 ) * 44 END, - 60 ) * - NULLIF ( + COUNT ( * ), - - 66 )
----
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT ALL AVG ( ALL - ( - 93 ) ) * + 95 * - CAST( NULL AS SIGNED ) * + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL AVG ( ALL - ( - 93 ) ) * + 95 * - CAST ( NULL AS INTEGER ) * + 90 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5603
SELECT 46 DIV - 97 col1, - 1 AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-5603
SELECT 46 / - 97 col1, - 1 AS col0
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT COUNT( * ) * + 75 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5604
SELECT COUNT ( * ) * + 75 AS col1
----
75

query I rowsort
SELECT DISTINCT 6 * - 53 AS col0
----
-318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5606
SELECT 27 + + - 45 DIV 94 - + - COUNT( * ) - 16 * + 55 - ( + ( - - 47 ) ) col0
----
-899

skipif mysql # not compatible
query I rowsort label-5606
SELECT 27 + + - 45 / 94 - + - COUNT ( * ) - 16 * + 55 - ( + ( - - 47 ) ) col0
----
-899

onlyif mysql # aggregate syntax: 
query II rowsort label-5607
SELECT DISTINCT 0 - - COUNT( * ) AS col0, + 86 AS col2
----
1
86

skipif mysql # not compatible
query II rowsort label-5607
SELECT DISTINCT 0 - - COUNT ( * ) AS col0, + 86 AS col2
----
1
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5608
SELECT ALL + 59 DIV COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL + 59 / COUNT ( * ) AS col1
----
59

query I rowsort
SELECT 46 + + 80 + + - 14 * + + 96
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL 35 - - 89 + 68 * + + COUNT( * ) + - + MIN( ALL - - 11 ) AS col0
----
181

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL 35 - - 89 + 68 * + + COUNT ( * ) + - + MIN ( ALL - - 11 ) AS col0
----
181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT 55 + - CAST( + 55 AS SIGNED ) + + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-5611
SELECT 55 + - CAST ( + 55 AS INTEGER ) + + - 1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT NULLIF ( + + ( + 62 ), - - 72 * + + 51 - - - 89 + - + 24 + - 58 DIV - 17 ) DIV - 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5612
SELECT NULLIF ( + + ( + 62 ), - - 72 * + + 51 - - - 89 + - + 24 + - 58 / - 17 ) / - 58 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5613
SELECT 62 DIV MIN( ( 79 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT 62 / MIN ( ( 79 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT ALL ( + CAST( NULL AS SIGNED ) ) / + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) / + 81
----
NULL

query I rowsort
SELECT + ( - 54 ) AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5616
SELECT + 69 * - + MIN( + 99 ) DIV + - COUNT( * ) + MAX( ALL + - 74 ) AS col0
----
6757

skipif mysql # not compatible
query I rowsort label-5616
SELECT + 69 * - + MIN ( + 99 ) / + - COUNT ( * ) + MAX ( ALL + - 74 ) AS col0
----
6757

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5617
SELECT ALL - CAST( + 87 AS SIGNED ), - 31 * + 25 + 30 AS col1
----
-87
-745

skipif mysql # not compatible
query II rowsort label-5617
SELECT ALL - CAST ( + 87 AS INTEGER ), - 31 * + 25 + 30 AS col1
----
-87
-745

query I rowsort
SELECT ALL - 48 * - 85
----
4080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT 52 * - - 20 + - - 8 * ( CAST( 12 AS SIGNED ) )
----
1136

skipif mysql # not compatible
query I rowsort label-5619
SELECT 52 * - - 20 + - - 8 * ( CAST ( 12 AS INTEGER ) )
----
1136

query II rowsort
SELECT ALL - - 48 * 72 col0, COALESCE ( 18, ( 61 ) + + 78 )
----
3456
18

query I rowsort
SELECT 44 + - 75 AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT ALL - + CAST( + - 89 AS SIGNED ) * - 52 * + 87 AS col0
----
-402636

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL - + CAST ( + - 89 AS INTEGER ) * - 52 * + 87 AS col0
----
-402636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5623
SELECT + ( + - COALESCE ( - CAST( NULL AS SIGNED ), - 99 - CASE 31 WHEN - + COUNT( * ) THEN - 71 END * + 90 ) ) * - COALESCE ( - + 98, + - COUNT( * ), - 65 * - 26 * COUNT( * ) + + + MIN( 55 ) ) + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT + ( + - COALESCE ( - CAST ( NULL AS INTEGER ), - 99 - CASE 31 WHEN - + COUNT ( * ) THEN - 71 END * + 90 ) ) * - COALESCE ( - + 98, + - COUNT ( * ), - 65 * - 26 * COUNT ( * ) + + + MIN ( 55 ) ) + + 63
----
NULL

query I rowsort
SELECT - - COALESCE ( - 61, - + 79 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT - + ( 5 ) AS col2, 71 + - + ( MAX( DISTINCT 32 ) )
----
-5
39

skipif mysql # not compatible
query II rowsort label-5625
SELECT - + ( 5 ) AS col2, 71 + - + ( MAX ( DISTINCT 32 ) )
----
-5
39

query I rowsort
SELECT + 1 + + 75 AS col0
----
76

query I rowsort
SELECT - 70 * 10 + - 84 AS col2
----
-784

query I rowsort
SELECT DISTINCT + 5 + - 93 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ALL - - COUNT( DISTINCT - - 25 ) + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - - COUNT ( DISTINCT - - 25 ) + + - COUNT ( * ) AS col0
----
0

query II rowsort
SELECT ALL + 72 + - - 36 AS col2, 64 * + 79 col1
----
108
5056

query I rowsort
SELECT ALL + 55 + - 6 AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT 12 + 41 + + 62 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT 12 + 41 + + 62 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 54 + 99
----
153

query II rowsort
SELECT DISTINCT 24 AS col0, - 83
----
24
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT COUNT( * ) + + - 65
----
-64

skipif mysql # not compatible
query I rowsort label-5635
SELECT COUNT ( * ) + + - 65
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL - 35 * - - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - 35 * - - COUNT ( * )
----
-35

query I rowsort
SELECT 1 * 25
----
25

query I rowsort
SELECT 37 + - 24 + + - ( + 62 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5639
SELECT ALL CAST( COUNT( * ) AS SIGNED ) - + CASE 94 WHEN - 50 THEN + - 77 WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) - + CASE 94 WHEN - 50 THEN + - 77 WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL - 85 AS col0, 58 AS col0
----
-85
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL - COUNT( * ) * 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL - COUNT ( * ) * 33 AS col1
----
-33

query I rowsort
SELECT DISTINCT - 98 col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL + MIN( - 43 ) - + - 57 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL + MIN ( - 43 ) - + - 57 AS col0
----
14

query I rowsort
SELECT ALL 23 * - 8 AS col2
----
-184

query I rowsort
SELECT 17 * 9 AS col0
----
153

query I rowsort
SELECT 26 - - 46 AS col0
----
72

query II rowsort
SELECT + 10 AS col2, 5 * - 45 col2
----
10
-225

query II rowsort
SELECT 86 col0, + 16
----
86
16

query I rowsort
SELECT DISTINCT 95 * - 89
----
-8455

query II rowsort
SELECT ALL - 31 AS col2, - 45
----
-31
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT ALL COUNT( * ) * - 81
----
-81

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL COUNT ( * ) * - 81
----
-81

query I rowsort
SELECT + - 20 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT + ( COUNT( * ) ) * 88 * + 9
----
792

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT + ( COUNT ( * ) ) * 88 * + 9
----
792

onlyif mysql # aggregate syntax: 
query II rowsort label-5654
SELECT ALL - COUNT( * ) AS col1, 30 + 50
----
-1
80

skipif mysql # not compatible
query II rowsort label-5654
SELECT ALL - COUNT ( * ) AS col1, 30 + 50
----
-1
80

query I rowsort
SELECT ALL + 28 + + - 74 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - 9 * - NULLIF ( - 91, - - 79 / + COUNT( * ) ) + + 7 - 74 AS col2
----
-886

skipif mysql # not compatible
query I rowsort label-5656
SELECT - 9 * - NULLIF ( - 91, - - 79 / + COUNT ( * ) ) + + 7 - 74 AS col2
----
-886

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT - - MIN( ALL + 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT - - MIN ( ALL + 72 ) AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT ALL + CAST( NULL AS SIGNED ) + - - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 77 AS col2
----
NULL

query I rowsort
SELECT ( 73 ) + - 59 AS col0
----
14

query I rowsort
SELECT 77 * - - ( + 4 ) AS col2
----
308

onlyif mysql # aggregate syntax: 
query II rowsort label-5661
SELECT + SUM( DISTINCT + + 61 ) + + - 53 AS col1, - 54 + + - 69 AS col1
----
8
-123

skipif mysql # not compatible
query II rowsort label-5661
SELECT + SUM ( DISTINCT + + 61 ) + + - 53 AS col1, - 54 + + - 69 AS col1
----
8
-123

query I rowsort
SELECT NULLIF ( 81, 5 ) * - 10 AS col1
----
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-5663
SELECT - 85 DIV + 39 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5663
SELECT - 85 / + 39 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT DISTINCT - - 16 + + - COUNT( * ) - 43 * + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT - - 16 + + - COUNT ( * ) - 43 * + - COUNT ( * )
----
58

query II rowsort
SELECT ALL - 25, - 63 AS col2
----
-25
-63

query I rowsort
SELECT DISTINCT ( + 36 ) AS col1
----
36

query I rowsort
SELECT DISTINCT + + 4 * 98
----
392

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL + COALESCE ( - MIN( 62 ), + 4 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL + COALESCE ( - MIN ( 62 ), + 4 ) AS col2
----
-62

query II rowsort
SELECT DISTINCT + 26 + ( 27 ) AS col1, 7
----
53
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL - 15 * - 90 + - - 88 * + NULLIF ( - - COUNT( * ), - 83 ) AS col2
----
1438

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL - 15 * - 90 + - - 88 * + NULLIF ( - - COUNT ( * ), - 83 ) AS col2
----
1438

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT MIN( ALL 83 )
----
83

skipif mysql # not compatible
query I rowsort label-5671
SELECT MIN ( ALL 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT DISTINCT + COUNT( * ) * 64
----
64

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT + COUNT ( * ) * 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT 92 - COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5673
SELECT 92 - COUNT ( * ) AS col0
----
91

query I rowsort
SELECT 37 * - 41
----
-1517

query I rowsort
SELECT DISTINCT + 94 - 16 * + + 88 AS col0
----
-1314

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT - 60 * + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-5676
SELECT - 60 * + COUNT ( * )
----
-60

query I rowsort
SELECT - 77 - 59 + 88 + - 62 + + COALESCE ( + 65, 39 ) * - + 35 + - + 99 - + 85 AS col2
----
-2569

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL NULLIF ( - + ( 54 ), 16 / + COALESCE ( 34, COUNT( * ) ) * + SUM( ALL + ( 85 ) ) * - 46 )
----
-54

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL NULLIF ( - + ( 54 ), 16 / + COALESCE ( 34, COUNT ( * ) ) * + SUM ( ALL + ( 85 ) ) * - 46 )
----
-54

query I rowsort
SELECT DISTINCT + 49 * + 64 * + 37 AS col1
----
116032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5680
SELECT ALL + 77 DIV + 86 * CAST( 81 AS SIGNED ), - SUM( + 64 ) AS col1
----
0
-64

skipif mysql # not compatible
query II rowsort label-5680
SELECT ALL + 77 / + 86 * CAST ( 81 AS INTEGER ), - SUM ( + 64 ) AS col1
----
0
-64

query I rowsort
SELECT COALESCE ( + + 80, 29 ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5682
SELECT - COUNT( * ) * + SUM( - 62 ) * CAST( NULL AS SIGNED ) AS col1, COUNT( * ) + - 84 * - SUM( + + 55 ) + - + 79 * - + 80 col2
----
NULL
10941

skipif mysql # not compatible
query II rowsort label-5682
SELECT - COUNT ( * ) * + SUM ( - 62 ) * CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) + - 84 * - SUM ( + + 55 ) + - + 79 * - + 80 col2
----
NULL
10941

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5683
SELECT COUNT( * ) / - 22 + CASE - 85 WHEN + CAST( NULL AS DECIMAL ) + - NULLIF ( - 49, + 53 ) THEN + ( + COUNT( DISTINCT 7 ) ) + COUNT( * ) + + 65 + - - COUNT( * ) END, + CASE COUNT( * ) WHEN - 82 THEN - MIN( - 84 ) * ( 73 ) - 48 * 71 + + 23 * - 72 + SUM( DISTINCT 3 ) END * 85 + + 35 + + 39 col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5683
SELECT COUNT ( * ) / - 22 + CASE - 85 WHEN + CAST ( NULL AS REAL ) + - NULLIF ( - 49, + 53 ) THEN + ( + COUNT ( DISTINCT 7 ) ) + COUNT ( * ) + + 65 + - - COUNT ( * ) END, + CASE COUNT ( * ) WHEN - 82 THEN - MIN ( - 84 ) * ( 73 ) - 48 * 71 + + 23 * - 72 + SUM ( DISTINCT 3 ) END * 85 + + 35 + + 39 col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT + COUNT( ALL + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-5684
SELECT + COUNT ( ALL + 58 )
----
1

query I rowsort
SELECT ALL + ( + ( - - 1 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5686
SELECT 78 * 4 + - - 91 * - 16, - CAST( 52 AS SIGNED ) col1
----
-1144
-52

skipif mysql # not compatible
query II rowsort label-5686
SELECT 78 * 4 + - - 91 * - 16, - CAST ( 52 AS INTEGER ) col1
----
-1144
-52

query I rowsort
SELECT ALL + 46 * + 88 + + 86
----
4134

query I rowsort
SELECT DISTINCT + - 40 * + 47 col2
----
-1880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5689
SELECT + + CAST( + 13 AS SIGNED ) + - 29
----
-16

skipif mysql # not compatible
query I rowsort label-5689
SELECT + + CAST ( + 13 AS INTEGER ) + - 29
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5690
SELECT ALL + 11 * - ( - CASE - ( + ( + COUNT( * ) ) ) WHEN - 84 * 23 * + 59 THEN - - 92 WHEN - 73 THEN - NULLIF ( - - 81, - 37 * - 24 + AVG ( ALL + 2 ) + + 42 ) / - 34 / 79 WHEN - 23 - 81 + 45 THEN NULL END ) * + 20 + 15 - - + 85 / + 45 * COUNT( * ) + - 74 + + CAST( - 7 AS SIGNED ) / + SUM( - 78 ) / 26 + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL + 11 * - ( - CASE - ( + ( + COUNT ( * ) ) ) WHEN - 84 * 23 * + 59 THEN - - 92 WHEN - 73 THEN - NULLIF ( - - 81, - 37 * - 24 + AVG ( ALL + 2 ) + + 42 ) / - 34 / 79 WHEN - 23 - 81 + 45 THEN NULL END ) * + 20 + 15 - - + 85 / + 45 * COUNT ( * ) + - 74 + + CAST ( - 7 AS INTEGER ) / + SUM ( - 78 ) / 26 + - 80
----
NULL

query I rowsort
SELECT ALL + - 99 AS col1
----
-99

query I rowsort
SELECT + - 91 col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ALL + 89 * 43 + - + COUNT( * ) AS col0
----
3826

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL + 89 * 43 + - + COUNT ( * ) AS col0
----
3826

onlyif mysql # aggregate syntax: 
query II rowsort label-5694
SELECT + MAX( DISTINCT 72 ), + COUNT( * ) + + 24 AS col2
----
72
25

skipif mysql # not compatible
query II rowsort label-5694
SELECT + MAX ( DISTINCT 72 ), + COUNT ( * ) + + 24 AS col2
----
72
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5695
SELECT ALL + CAST( NULL AS SIGNED ) * ( - 3 ) + + AVG ( ALL - 64 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + CAST ( NULL AS INTEGER ) * ( - 3 ) + + AVG ( ALL - 64 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT DISTINCT - 77 + - MIN( + 89 ) AS col0
----
-166

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT - 77 + - MIN ( + 89 ) AS col0
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL - MAX( + - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL - MAX ( + - 0 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5698
SELECT + + 50 * COUNT( * ), + NULLIF ( 82, 67 ) col2
----
50
82

skipif mysql # not compatible
query II rowsort label-5698
SELECT + + 50 * COUNT ( * ), + NULLIF ( 82, 67 ) col2
----
50
82

query I rowsort
SELECT DISTINCT + 89 col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5700
SELECT + CAST( + 23 AS SIGNED ) + 85
----
108

skipif mysql # not compatible
query I rowsort label-5700
SELECT + CAST ( + 23 AS INTEGER ) + 85
----
108

query I rowsort
SELECT + 76 - 94 * - 28
----
2708

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT + 96 * - COUNT( + 78 )
----
-96

skipif mysql # not compatible
query I rowsort label-5702
SELECT + 96 * - COUNT ( + 78 )
----
-96

query I rowsort
SELECT + 7 + 90 + 32 + + + 25 AS col2
----
154

query I rowsort
SELECT - 13 - + - 92 * 4
----
355

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL SUM( ALL - 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL SUM ( ALL - 63 ) AS col1
----
-63

query II rowsort
SELECT 9 AS col1, - 21 * - + 20 AS col0
----
9
420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5707
SELECT DISTINCT 80 AS col1, CAST( + 76 AS SIGNED ) AS col0
----
80
76

skipif mysql # not compatible
query II rowsort label-5707
SELECT DISTINCT 80 AS col1, CAST ( + 76 AS INTEGER ) AS col0
----
80
76

query I rowsort
SELECT DISTINCT 32 col0
----
32

onlyif mysql # aggregate syntax: 
query III rowsort label-5709
SELECT ALL + 72 * - + MAX( DISTINCT 36 ) AS col0, + 98 * + 88 * + COUNT( * ) AS col1, - 22 * + - 66 col1
----
-2592
8624
1452

skipif mysql # not compatible
query III rowsort label-5709
SELECT ALL + 72 * - + MAX ( DISTINCT 36 ) AS col0, + 98 * + 88 * + COUNT ( * ) AS col1, - 22 * + - 66 col1
----
-2592
8624
1452

query I rowsort
SELECT DISTINCT + 63 * 64 AS col0
----
4032

query I rowsort
SELECT - ( - 35 ) col2
----
35

query I rowsort
SELECT + 0 * + 86 * + + 88 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5713
SELECT - CAST( 40 AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-5713
SELECT - CAST ( 40 AS INTEGER ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT - COUNT( * ) + 3 - + 53
----
-51

skipif mysql # not compatible
query I rowsort label-5714
SELECT - COUNT ( * ) + 3 - + 53
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5715
SELECT DISTINCT 9 DIV + - COALESCE ( + 27, 50 + - 54 ) + - COUNT( * ) + 27 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT 9 / + - COALESCE ( + 27, 50 + - 54 ) + - COUNT ( * ) + 27 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL CASE + 53 WHEN + COUNT( * ) THEN - 14 * 86 + 80 * COUNT( * ) * AVG ( DISTINCT 55 ) * 98 + + - COUNT( * ) END / + COUNT( * ) - 45 + COUNT( * ) + + - 16 / 86 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL CASE + 53 WHEN + COUNT ( * ) THEN - 14 * 86 + 80 * COUNT ( * ) * AVG ( DISTINCT 55 ) * 98 + + - COUNT ( * ) END / + COUNT ( * ) - 45 + COUNT ( * ) + + - 16 / 86 * - 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT ALL + SUM( 98 )
----
98

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL + SUM ( 98 )
----
98

query I rowsort
SELECT - + 55 * + + 48 - + 71 + - 47 * 70 AS col2
----
-6001

query I rowsort
SELECT ALL - + 42 * + 78 col2
----
-3276

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5720
SELECT - CAST( NULL AS DECIMAL ) - 5 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT - CAST ( NULL AS REAL ) - 5 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 44 * 11 * + 18 + + + 92 AS col2
----
-8620

query II rowsort
SELECT ALL + - 62 * - 42 + - - ( - - 73 ) - + 44, 78 AS col2
----
2633
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5723
SELECT ALL 83 * + - CAST( + NULLIF ( + - 6, - - COALESCE ( 24, + + 9 ) * + - 87 ) AS SIGNED ) + - 39
----
459

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL 83 * + - CAST ( + NULLIF ( + - 6, - - COALESCE ( 24, + + 9 ) * + - 87 ) AS INTEGER ) + - 39
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT - - 28 * + - COUNT( - ( 82 ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5724
SELECT - - 28 * + - COUNT ( - ( 82 ) ) AS col0
----
-28

query I rowsort
SELECT DISTINCT + - NULLIF ( 92, 80 * 24 / + + 79 * 3 ) AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5726
SELECT - + SUM( ALL - - 35 ) - - 28 + + ( + 56 ) * + + 38 * 4 + + CASE - + 66 WHEN - 9 + + 16 * 28 * + 43 THEN NULL WHEN - COUNT( DISTINCT 5 ) THEN NULL ELSE + 84 + + - 99 + - 44 - 2 + + 35 * - 93 + - + 32 * + - CAST( - 67 AS SIGNED ) END + - 52 * - COUNT( * )
----
3097

skipif mysql # not compatible
query I rowsort label-5726
SELECT - + SUM ( ALL - - 35 ) - - 28 + + ( + 56 ) * + + 38 * 4 + + CASE - + 66 WHEN - 9 + + 16 * 28 * + 43 THEN NULL WHEN - COUNT ( DISTINCT 5 ) THEN NULL ELSE + 84 + + - 99 + - 44 - 2 + + 35 * - 93 + - + 32 * + - CAST ( - 67 AS INTEGER ) END + - 52 * - COUNT ( * )
----
3097

query I rowsort
SELECT ALL + + 70 * - 32 * - + 5
----
11200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT ALL - CAST( NULL AS SIGNED ) * - 44 + + 48 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL - CAST ( NULL AS INTEGER ) * - 44 + + 48 col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5729
SELECT ALL + 86, 69 DIV - + 98 * + - ( 92 ) - + 73 AS col2
----
86
-73

skipif mysql # not compatible
query II rowsort label-5729
SELECT ALL + 86, 69 / - + 98 * + - ( 92 ) - + 73 AS col2
----
86
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT - 47 * + + COUNT( * ) * 62 AS col2
----
-2914

skipif mysql # not compatible
query I rowsort label-5730
SELECT - 47 * + + COUNT ( * ) * 62 AS col2
----
-2914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5731
SELECT - CASE - COUNT( * ) WHEN - CAST( - 44 AS SIGNED ) * + CAST( + + COUNT( * ) AS DECIMAL ) + - - 91 + - + 20 + + 34 * 13 THEN NULL ELSE COALESCE ( + - 40, ( + + 2 ) ) END + 34 AS col1, - 60 col1
----
74
-60

skipif mysql # not compatible
query II rowsort label-5731
SELECT - CASE - COUNT ( * ) WHEN - CAST ( - 44 AS INTEGER ) * + CAST ( + + COUNT ( * ) AS REAL ) + - - 91 + - + 20 + + 34 * 13 THEN NULL ELSE COALESCE ( + - 40, ( + + 2 ) ) END + 34 AS col1, - 60 col1
----
74
-60

query I rowsort
SELECT 24 + - 96
----
-72

query I rowsort
SELECT 11 * - + 78 * 76
----
-65208

query II rowsort
SELECT - 71, 3 * 21 AS col0
----
-71
63

query I rowsort
SELECT DISTINCT + NULLIF ( 80, - 46 ) - - 13 AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5736
SELECT 20 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-5736
SELECT 20 / - 81
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT AVG ( ALL + + CAST( NULL AS SIGNED ) ) * + 64 + 21 * + ( - 60 ) / - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT AVG ( ALL + + CAST ( NULL AS INTEGER ) ) * + 64 + 21 * + ( - 60 ) / - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT 27 - + - COUNT( * ) + - 41
----
-13

skipif mysql # not compatible
query I rowsort label-5738
SELECT 27 - + - COUNT ( * ) + - 41
----
-13

query II rowsort
SELECT 59 AS col1, - 65 AS col0
----
59
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5740
SELECT COUNT( * ) DIV + - 57 col0
----
0

skipif mysql # not compatible
query I rowsort label-5740
SELECT COUNT ( * ) / + - 57 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5741
SELECT ALL 58 + + COUNT( * ) + + 26 + + 88 * + CAST( NULL AS SIGNED ) + 91 * + 86 * + 56 * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL 58 + + COUNT ( * ) + + 26 + + 88 * + CAST ( NULL AS INTEGER ) + 91 * + 86 * + 56 * + 37
----
NULL

query I rowsort
SELECT 61 - 63 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5743
SELECT ALL 7 AS col0, 63 * + 53 - - 39 + - - CASE - - 67 WHEN + COUNT( * ) - + AVG ( ALL - 91 ) + + 92 / - - 71 THEN - 31 WHEN 97 THEN NULL ELSE 22 END
----
7
3400

skipif mysql # not compatible
query II rowsort label-5743
SELECT ALL 7 AS col0, 63 * + 53 - - 39 + - - CASE - - 67 WHEN + COUNT ( * ) - + AVG ( ALL - 91 ) + + 92 / - - 71 THEN - 31 WHEN 97 THEN NULL ELSE 22 END
----
7
3400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5744
SELECT CASE 93 WHEN - CAST( - - 73 AS SIGNED ) THEN NULL WHEN - 24 THEN 74 / 46 + + COALESCE ( - NULLIF ( - COUNT( + 23 ), + 59 * 41 + + 67 * + 73 * 98 - - + MIN( DISTINCT + 33 ) ), - COUNT( * ) ) END - - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT CASE 93 WHEN - CAST ( - - 73 AS INTEGER ) THEN NULL WHEN - 24 THEN 74 / 46 + + COALESCE ( - NULLIF ( - COUNT ( + 23 ), + 59 * 41 + + 67 * + 73 * 98 - - + MIN ( DISTINCT + 33 ) ), - COUNT ( * ) ) END - - 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT ALL - COUNT( * ) AS col1, 29
----
-1
29

skipif mysql # not compatible
query II rowsort label-5745
SELECT ALL - COUNT ( * ) AS col1, 29
----
-1
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5746
SELECT DISTINCT 63 + 66 + + 61 * CAST( NULL AS SIGNED ) / + + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT 63 + 66 + + 61 * CAST ( NULL AS INTEGER ) / + + 57 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5747
SELECT ALL ( + 70 ) + + CAST( NULL AS DECIMAL ) + 98 / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL ( + 70 ) + + CAST ( NULL AS REAL ) + 98 / COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 99 * - 98 + + + 48 AS col0
----
-9654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5749
SELECT - NULLIF ( - CAST( + 66 AS SIGNED ), - 16 * 23 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5749
SELECT - NULLIF ( - CAST ( + 66 AS INTEGER ), - 16 * 23 ) AS col1
----
66

query II rowsort
SELECT - 64 AS col0, ( - ( - 67 ) )
----
-64
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT COUNT( * ) * + COUNT( * ) + - + 79 * - NULLIF ( - 16, + 93 ) - 94 + - COUNT( * ) AS col0
----
-1358

skipif mysql # not compatible
query I rowsort label-5751
SELECT COUNT ( * ) * + COUNT ( * ) + - + 79 * - NULLIF ( - 16, + 93 ) - 94 + - COUNT ( * ) AS col0
----
-1358

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT COUNT( * ) + + 39
----
40

skipif mysql # not compatible
query I rowsort label-5752
SELECT COUNT ( * ) + + 39
----
40

query II rowsort
SELECT ALL + 69 + + + 47 col2, - 8
----
116
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5754
SELECT DISTINCT + 10 + + 48 + NULLIF ( + + CAST( NULL AS SIGNED ), - 56 ) + + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT + 10 + + 48 + NULLIF ( + + CAST ( NULL AS INTEGER ), - 56 ) + + + 45
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5755
SELECT ALL - CAST( - - 32 AS SIGNED ) - - 49 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - CAST ( - - 32 AS INTEGER ) - - 49 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT 83 * + COUNT( * ) + - + 64
----
19

skipif mysql # not compatible
query I rowsort label-5756
SELECT 83 * + COUNT ( * ) + - + 64
----
19

query I rowsort
SELECT ALL - + NULLIF ( - 4, + + 27 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT - + 9 * - - 29 * + + NULLIF ( - 18, + - COALESCE ( - 56, + - 3, + + 91 ) * ( - 62 ) * SUM( - 14 ) + + MIN( ALL - - 91 ) + + COUNT( * ) - AVG ( DISTINCT 44 ) ) + - 43 AS col1
----
4655

skipif mysql # not compatible
query I rowsort label-5758
SELECT - + 9 * - - 29 * + + NULLIF ( - 18, + - COALESCE ( - 56, + - 3, + + 91 ) * ( - 62 ) * SUM ( - 14 ) + + MIN ( ALL - - 91 ) + + COUNT ( * ) - AVG ( DISTINCT 44 ) ) + - 43 AS col1
----
4655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5759
SELECT + + 70, NULLIF ( + 89, 16 * - CAST( COUNT( * ) AS SIGNED ) ) + 7 AS col0
----
70
96

skipif mysql # not compatible
query II rowsort label-5759
SELECT + + 70, NULLIF ( + 89, 16 * - CAST ( COUNT ( * ) AS INTEGER ) ) + 7 AS col0
----
70
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT 13 + - MIN( - 3 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5760
SELECT 13 + - MIN ( - 3 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT COUNT( * ) * + 26 * COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5761
SELECT COUNT ( * ) * + 26 * COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT + 45 * COALESCE ( - 37, + NULLIF ( + 9, + + ( + 71 ) - - 61 ) ) + + + MIN( DISTINCT + + 20 ) + + 77 + 93 * - 31 * - COUNT( * ) * - - 39 - - + 91 AS col2
----
110960

skipif mysql # not compatible
query I rowsort label-5762
SELECT + 45 * COALESCE ( - 37, + NULLIF ( + 9, + + ( + 71 ) - - 61 ) ) + + + MIN ( DISTINCT + + 20 ) + + 77 + 93 * - 31 * - COUNT ( * ) * - - 39 - - + 91 AS col2
----
110960

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5763
SELECT CASE - 36 WHEN - COUNT( * ) * - ( + COUNT( * ) ) - + 39 THEN NULLIF ( - - 54, 98 ) * + 94 WHEN - COALESCE ( + 73, + CAST( NULL AS DECIMAL ) + + COUNT( * ) ) / - 84 THEN + 7 * 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5763
SELECT CASE - 36 WHEN - COUNT ( * ) * - ( + COUNT ( * ) ) - + 39 THEN NULLIF ( - - 54, 98 ) * + 94 WHEN - COALESCE ( + 73, + CAST ( NULL AS REAL ) + + COUNT ( * ) ) / - 84 THEN + 7 * 96 ELSE NULL END
----
NULL

query I rowsort
SELECT + ( 94 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5765
SELECT 23 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT 23 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL - SUM( 45 ) * - - 85
----
-3825

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL - SUM ( 45 ) * - - 85
----
-3825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5767
SELECT DISTINCT + NULLIF ( + 70, + SUM( ALL 5 ) ) * - COUNT( * ) DIV - 94 + - - 90 + CASE - + 32 WHEN - MAX( ALL - + 18 ) * - - 9 THEN NULL WHEN - ( + + 67 ) + + 25 THEN NULL ELSE - 83 END DIV + 76 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT + NULLIF ( + 70, + SUM ( ALL 5 ) ) * - COUNT ( * ) / - 94 + - - 90 + CASE - + 32 WHEN - MAX ( ALL - + 18 ) * - - 9 THEN NULL WHEN - ( + + 67 ) + + 25 THEN NULL ELSE - 83 END / + 76 AS col2
----
89

query II rowsort
SELECT 27 + + + 94 AS col1, 50 * + 50
----
121
2500

query I rowsort
SELECT 30 - + - 44 AS col1
----
74

query I rowsort
SELECT 72 + - ( + 96 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT DISTINCT 23 + + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT 23 + + COUNT ( * ) AS col2
----
24

query I rowsort
SELECT ALL 82 + - + 66
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5773
SELECT 61 + - - 70 + - COUNT( * ) * - - 73 * CAST( + - COUNT( * ) AS SIGNED )
----
204

skipif mysql # not compatible
query I rowsort label-5773
SELECT 61 + - - 70 + - COUNT ( * ) * - - 73 * CAST ( + - COUNT ( * ) AS INTEGER )
----
204

query II rowsort
SELECT ALL 22 + 54 AS col0, 2 * + - 45 AS col2
----
76
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-5775
SELECT 51 * + 84 * + - 53, 60 DIV 55 AS col0
----
-227052
1

skipif mysql # not compatible
query II rowsort label-5775
SELECT 51 * + 84 * + - 53, 60 / 55 AS col0
----
-227052
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT - 69 + + + SUM( 90 ) * + MIN( - + 80 ) - + - 78 + 63
----
-7128

skipif mysql # not compatible
query I rowsort label-5776
SELECT - 69 + + + SUM ( 90 ) * + MIN ( - + 80 ) - + - 78 + 63
----
-7128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5777
SELECT ALL - 84 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL - 84 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT 10 + + COUNT( * ) + + 25 * 11
----
286

skipif mysql # not compatible
query I rowsort label-5778
SELECT 10 + + COUNT ( * ) + + 25 * 11
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT - + COUNT( * ) * - 65 * + ( + 72 ) * 51 + - 23 - + NULLIF ( - ( - 84 ), - 31 ) * - 30 + - 66 + - 76 + + - 38
----
240997

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT - + COUNT ( * ) * - 65 * + ( + 72 ) * 51 + - 23 - + NULLIF ( - ( - 84 ), - 31 ) * - 30 + - 66 + - 76 + + - 38
----
240997

query I rowsort
SELECT DISTINCT - + 28 AS col1
----
-28

query I rowsort
SELECT + ( + - 47 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT + + 76 - - MIN( 74 )
----
150

skipif mysql # not compatible
query I rowsort label-5782
SELECT + + 76 - - MIN ( 74 )
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5783
SELECT + 38 * + CAST( + + 93 AS SIGNED ) AS col2, - 90 * + 2 - + + 50 AS col2
----
3534
-230

skipif mysql # not compatible
query II rowsort label-5783
SELECT + 38 * + CAST ( + + 93 AS INTEGER ) AS col2, - 90 * + 2 - + + 50 AS col2
----
3534
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ( + SUM( DISTINCT + + 64 ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5784
SELECT ( + SUM ( DISTINCT + + 64 ) ) AS col2
----
64

query II rowsort
SELECT DISTINCT + 72 AS col2, - ( 73 )
----
72
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT - COUNT( * ) * + 68 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-5786
SELECT - COUNT ( * ) * + 68 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT + NULLIF ( 76, COUNT( * ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5787
SELECT + NULLIF ( 76, COUNT ( * ) ) AS col0
----
76

query I rowsort
SELECT - 7 * - 72
----
504

query I rowsort
SELECT - NULLIF ( + + 70, + ( - 16 ) * - 39 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5790
SELECT ALL + 13 * 48 DIV + COUNT( * ) AS col1, + ( + 73 ) * - 39 * 14 + 63 - COUNT( 14 ) AS col0
----
624
-39796

skipif mysql # not compatible
query II rowsort label-5790
SELECT ALL + 13 * 48 / + COUNT ( * ) AS col1, + ( + 73 ) * - 39 * 14 + 63 - COUNT ( 14 ) AS col0
----
624
-39796

query I rowsort
SELECT - 59 - + 0 col1
----
-59

query I rowsort
SELECT ALL - 41 + - 30 AS col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT - ( 65 ) DIV + 56 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5793
SELECT - ( 65 ) / + 56 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT - COUNT( * ) * + 24
----
-24

skipif mysql # not compatible
query I rowsort label-5794
SELECT - COUNT ( * ) * + 24
----
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5795
SELECT ALL - 42 + - 73 * + - COUNT( * ), - CAST( NULL AS DECIMAL ) AS col0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-5795
SELECT ALL - 42 + - 73 * + - COUNT ( * ), - CAST ( NULL AS REAL ) AS col0
----
31
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5796
SELECT - 29 - SUM( - 71 ) col1, + 53 AS col1
----
42
53

skipif mysql # not compatible
query II rowsort label-5796
SELECT - 29 - SUM ( - 71 ) col1, + 53 AS col1
----
42
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT - COUNT( * ) + + - 56 - - ( + 53 )
----
-4

skipif mysql # not compatible
query I rowsort label-5797
SELECT - COUNT ( * ) + + - 56 - - ( + 53 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5798
SELECT - ( + - 74 ) * - 79 AS col0, + COUNT( * ) AS col2
----
-5846
1

skipif mysql # not compatible
query II rowsort label-5798
SELECT - ( + - 74 ) * - 79 AS col0, + COUNT ( * ) AS col2
----
-5846
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5799
SELECT - COUNT( * ), 85 AS col0
----
-1
85

skipif mysql # not compatible
query II rowsort label-5799
SELECT - COUNT ( * ), 85 AS col0
----
-1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT - 81 + - ( + MAX( + 15 ) ) + + - SUM( ALL + 59 )
----
-155

skipif mysql # not compatible
query I rowsort label-5800
SELECT - 81 + - ( + MAX ( + 15 ) ) + + - SUM ( ALL + 59 )
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT + MIN( ALL + - 32 ) * + 48
----
-1536

skipif mysql # not compatible
query I rowsort label-5801
SELECT + MIN ( ALL + - 32 ) * + 48
----
-1536

query II rowsort
SELECT + 66 AS col2, 91
----
66
91

query I rowsort
SELECT - + 16 - + 92
----
-108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5804
SELECT DISTINCT + NULLIF ( 1, + COALESCE ( - 50, + 75, + + 26 ) + - CASE - - 66 WHEN ( + 24 ) * + 40 / + - 99 + - - 99 * - 87 + 85 * - AVG ( + 67 ) * + 0 THEN + 27 END * - COALESCE ( - - 49, + MAX( ALL 74 ), - 90 ) ) / - CASE NULLIF ( 10, + - 53 * + 9 ) WHEN + - CAST( - - 9 AS DECIMAL ) * - 7 THEN + 90 WHEN 58 + + 86 THEN NULL ELSE NULL END * ( + ( - 54 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT + NULLIF ( 1, + COALESCE ( - 50, + 75, + + 26 ) + - CASE - - 66 WHEN ( + 24 ) * + 40 / + - 99 + - - 99 * - 87 + 85 * - AVG ( + 67 ) * + 0 THEN + 27 END * - COALESCE ( - - 49, + MAX ( ALL 74 ), - 90 ) ) / - CASE NULLIF ( 10, + - 53 * + 9 ) WHEN + - CAST ( - - 9 AS REAL ) * - 7 THEN + 90 WHEN 58 + + 86 THEN NULL ELSE NULL END * ( + ( - 54 ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT - - 41 - + CASE - - NULLIF ( - 43, COUNT( * ) * + COUNT( * ) ) WHEN - + 90 THEN NULL ELSE 34 END
----
7

skipif mysql # not compatible
query I rowsort label-5805
SELECT - - 41 - + CASE - - NULLIF ( - 43, COUNT ( * ) * + COUNT ( * ) ) WHEN - + 90 THEN NULL ELSE 34 END
----
7

query I rowsort
SELECT DISTINCT - ( - - 19 ) AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT ALL 63 DIV - ( - - 72 ) - - + 68 col2
----
68

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL 63 / - ( - - 72 ) - - + 68 col2
----
68

query I rowsort
SELECT + + 7 col1
----
7

query II rowsort
SELECT 83 AS col2, 8 + - 72 col0
----
83
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5810
SELECT DISTINCT + COUNT( * ), 8 / - + CAST( NULL AS SIGNED ) + + 49 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5810
SELECT DISTINCT + COUNT ( * ), 8 / - + CAST ( NULL AS INTEGER ) + + 49 AS col1
----
1
NULL

query I rowsort
SELECT - 27 + - 52
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5812
SELECT + 84 * CAST( NULL AS SIGNED ) / - 58 - 41 * - 90 - - + CAST( - - 89 AS SIGNED ) + 71 + - 72 * - 35 / - NULLIF ( - 48, + + 84 * + CAST( COUNT( * ) AS SIGNED ) ) + - 33 + - 33 * - ( - 26 ) / - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT + 84 * CAST ( NULL AS INTEGER ) / - 58 - 41 * - 90 - - + CAST ( - - 89 AS INTEGER ) + 71 + - 72 * - 35 / - NULLIF ( - 48, + + 84 * + CAST ( COUNT ( * ) AS INTEGER ) ) + - 33 + - 33 * - ( - 26 ) / - 21 AS col1
----
NULL

query I rowsort
SELECT - - 57 * 35 + + 20 col0
----
2015

query I rowsort
SELECT ALL + - COALESCE ( - 21, + - 29 + + 3 - + 15 * + 76 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5815
SELECT ALL - 54 * + COUNT( * ) DIV - + 59 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL - 54 * + COUNT ( * ) / - + 59 + + 99
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5816
SELECT + ( - NULLIF ( ( + - 9 ), CASE + 6 WHEN - 7 DIV + COUNT( * ) + + 47 * - 93 + - 86 + + - 77 THEN 65 WHEN + + 7 THEN NULL ELSE + 89 END ) ) DIV + + 71 + + 41 + + COUNT( * ) * - - ( - 77 ) * + 78 + 68
----
-5897

skipif mysql # not compatible
query I rowsort label-5816
SELECT + ( - NULLIF ( ( + - 9 ), CASE + 6 WHEN - 7 / + COUNT ( * ) + + 47 * - 93 + - 86 + + - 77 THEN 65 WHEN + + 7 THEN NULL ELSE + 89 END ) ) / + + 71 + + 41 + + COUNT ( * ) * - - ( - 77 ) * + 78 + 68
----
-5897

query I rowsort
SELECT ALL + ( - 85 ) AS col0
----
-85

query II rowsort
SELECT 0 AS col2, + 69 AS col0
----
0
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5819
SELECT + 91, ( + COUNT( * ) ) AS col2
----
91
1

skipif mysql # not compatible
query II rowsort label-5819
SELECT + 91, ( + COUNT ( * ) ) AS col2
----
91
1

query I rowsort
SELECT + NULLIF ( + 65, - - NULLIF ( ( 37 ), - 11 + + 96 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT + COUNT( - 73 ) * - - 2 + - ( 8 ) + + 2
----
-4

skipif mysql # not compatible
query I rowsort label-5821
SELECT + COUNT ( - 73 ) * - - 2 + - ( 8 ) + + 2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT + COUNT( * ) * - ( - 63 ) + - MAX( + 77 ) - + COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5822
SELECT + COUNT ( * ) * - ( - 63 ) + - MAX ( + 77 ) - + COUNT ( * ) AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5823
SELECT DISTINCT - 42 * + + 69 + + CAST( + - 44 AS SIGNED ) DIV - 83 AS col0
----
-2898

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT - 42 * + + 69 + + CAST ( + - 44 AS INTEGER ) / - 83 AS col0
----
-2898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5824
SELECT + ( 4 ) + COUNT( * ) DIV + ( + + 38 ) * - 33 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5824
SELECT + ( 4 ) + COUNT ( * ) / + ( + + 38 ) * - 33 AS col2
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-5825
SELECT DISTINCT 18 * + 15 * + 14 * 20 + + 68 + 22 DIV - 20 + ( - 81 ), 40 AS col0
----
75586
40

skipif mysql # not compatible
query II rowsort label-5825
SELECT DISTINCT 18 * + 15 * + 14 * 20 + + 68 + 22 / - 20 + ( - 81 ), 40 AS col0
----
75586
40

query I rowsort
SELECT ALL 99 * - 78
----
-7722

query II rowsort
SELECT + 5 + 75 + 47 * + 78 + - - 34, 48 - - 26 AS col1
----
3780
74

query I rowsort
SELECT - 11 - + 18
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT + COUNT( 33 ) + 78
----
79

skipif mysql # not compatible
query I rowsort label-5829
SELECT + COUNT ( 33 ) + 78
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5830
SELECT - 87 + - - NULLIF ( - 6, NULLIF ( - + COUNT( * ), - 28 + + ( - + 41 ) + - 90 ) ) col1, + 51 * 42
----
-93
2142

skipif mysql # not compatible
query II rowsort label-5830
SELECT - 87 + - - NULLIF ( - 6, NULLIF ( - + COUNT ( * ), - 28 + + ( - + 41 ) + - 90 ) ) col1, + 51 * 42
----
-93
2142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5831
SELECT ALL + COUNT( * ) - + COALESCE ( - - 89, 32 ) DIV - 97 - - 29
----
30

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL + COUNT ( * ) - + COALESCE ( - - 89, 32 ) / - 97 - - 29
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT - COUNT( - 41 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5832
SELECT - COUNT ( - 41 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5833
SELECT ALL + MAX( DISTINCT - 52 ) * 0 * - 65 col1, 37 * - 72
----
0
-2664

skipif mysql # not compatible
query II rowsort label-5833
SELECT ALL + MAX ( DISTINCT - 52 ) * 0 * - 65 col1, 37 * - 72
----
0
-2664

query I rowsort
SELECT DISTINCT 83 * 50 AS col1
----
4150

query I rowsort
SELECT - 78 col0
----
-78

query I rowsort
SELECT - 45 + 42 AS col1
----
-3

query I rowsort
SELECT 50 * - + 9
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT + 81 + - ( COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-5838
SELECT + 81 + - ( COUNT ( * ) )
----
80

query I rowsort
SELECT ALL + + 36 * - + 86
----
-3096

query I rowsort
SELECT + 38 * 85 * + + 7 - - 72
----
22682

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT DISTINCT + + 6 + + COALESCE ( 14, - 53, 65 * + MIN( DISTINCT - 71 ) )
----
20

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT + + 6 + + COALESCE ( 14, - 53, 65 * + MIN ( DISTINCT - 71 ) )
----
20

query I rowsort
SELECT ALL - 24 + - 29 * + - 76 AS col0
----
2180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5843
SELECT DISTINCT - 55 * - 55 DIV - COUNT( * ) AS col2
----
-3025

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT - 55 * - 55 / - COUNT ( * ) AS col2
----
-3025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5844
SELECT - 74 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT - 74 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT - 14 - + SUM( DISTINCT + 36 ) + - CASE + 87 WHEN - 23 * - 1 THEN + 46 ELSE + 56 + 56 + ( + 37 ) END
----
-199

skipif mysql # not compatible
query I rowsort label-5845
SELECT - 14 - + SUM ( DISTINCT + 36 ) + - CASE + 87 WHEN - 23 * - 1 THEN + 46 ELSE + 56 + 56 + ( + 37 ) END
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT 30 - + CASE - + 34 WHEN + 8 THEN NULL WHEN + + 9 * + 0 + + 71 + + - 35 * - - 16 + 4 + + 52 * 61 / - 84 THEN NULL ELSE - + COUNT( * ) END AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5846
SELECT 30 - + CASE - + 34 WHEN + 8 THEN NULL WHEN + + 9 * + 0 + + 71 + + - 35 * - - 16 + 4 + + 52 * 61 / - 84 THEN NULL ELSE - + COUNT ( * ) END AS col1
----
31

query I rowsort
SELECT 59 * + 52 * - 59 * - 5 - 12 - 84
----
904964

query I rowsort
SELECT 75 * - + 36 AS col0
----
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-5849
SELECT ALL 66 DIV + - 74 * + 1
----
0

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL 66 / + - 74 * + 1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5850
SELECT DISTINCT 1 * - - 40 * + CAST( - - MIN( ALL 62 ) AS SIGNED ), + 60 AS col2
----
2480
60

skipif mysql # not compatible
query II rowsort label-5850
SELECT DISTINCT 1 * - - 40 * + CAST ( - - MIN ( ALL 62 ) AS INTEGER ), + 60 AS col2
----
2480
60

query I rowsort
SELECT DISTINCT + ( - + 73 ) + - 70 AS col2
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT DISTINCT COUNT( DISTINCT - 28 ) * - 20 * + 60 * 78 * 3 + + 90 AS col0
----
-280710

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT COUNT ( DISTINCT - 28 ) * - 20 * + 60 * 78 * 3 + + 90 AS col0
----
-280710

onlyif mysql # aggregate syntax: 
query II rowsort label-5853
SELECT ( + - COUNT( * ) ) - 1 + COUNT( * ) + - 26, - 61 AS col0
----
-27
-61

skipif mysql # not compatible
query II rowsort label-5853
SELECT ( + - COUNT ( * ) ) - 1 + COUNT ( * ) + - 26, - 61 AS col0
----
-27
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5854
SELECT CASE - 37 WHEN COUNT( * ) THEN - 67 * + - 24 END + - CAST( - ( + 57 ) AS SIGNED ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT CASE - 37 WHEN COUNT ( * ) THEN - 67 * + - 24 END + - CAST ( - ( + 57 ) AS INTEGER ) / + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5855
SELECT DISTINCT 93 - + + ( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT 93 - + + ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 5 * 49 AS col1
----
245

query I rowsort
SELECT DISTINCT 22 * + 0
----
0

query I rowsort
SELECT 90 * - 95
----
-8550

onlyif mysql # aggregate syntax: 
query II rowsort label-5859
SELECT - 12 AS col0, + COUNT( * ) AS col1
----
-12
1

skipif mysql # not compatible
query II rowsort label-5859
SELECT - 12 AS col0, + COUNT ( * ) AS col1
----
-12
1

query I rowsort
SELECT DISTINCT - 72 * + 17
----
-1224

query II rowsort
SELECT 44 * + NULLIF ( - - 75, 57 ) * + 27, ( 31 ) AS col0
----
89100
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5862
SELECT - COALESCE ( + - 31, CASE NULLIF ( - 65, 85 + 36 ) WHEN + CAST( - 91 AS DECIMAL ) + - 20 THEN + 31 + + 9 + 0 * - CAST( NULL AS SIGNED ) * - - COUNT( * ) + - 68 END ) * - MAX( ALL + 23 )
----
-713

skipif mysql # not compatible
query I rowsort label-5862
SELECT - COALESCE ( + - 31, CASE NULLIF ( - 65, 85 + 36 ) WHEN + CAST ( - 91 AS REAL ) + - 20 THEN + 31 + + 9 + 0 * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + - 68 END ) * - MAX ( ALL + 23 )
----
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + 82 + - - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-5863
SELECT + 82 + - - COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT - - MIN( DISTINCT - 58 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5864
SELECT - - MIN ( DISTINCT - 58 ) AS col0
----
-58

query I rowsort
SELECT + 65 * - - 63 + - - 6 AS col1
----
4101

query I rowsort
SELECT ALL - 78 * - 20 * - 96 AS col0
----
-149760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL + 20 * CAST( 43 AS SIGNED )
----
860

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + 20 * CAST ( 43 AS INTEGER )
----
860

query I rowsort
SELECT DISTINCT + ( + 34 ) * - 8 + 90 col0
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT ALL - COUNT( * ) + ( + - ( + 23 ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL - COUNT ( * ) + ( + - ( + 23 ) ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT - 31 - - COUNT( * ) + - - 94
----
64

skipif mysql # not compatible
query I rowsort label-5870
SELECT - 31 - - COUNT ( * ) + - - 94
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT - 45 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT - 45 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + + 39 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT 82 + + 3 * - COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5873
SELECT 82 + + 3 * - COUNT ( * ) AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5874
SELECT - + 41 * - 17 + + CAST( NULL AS SIGNED ) AS col0, 98 AS col1
----
NULL
98

skipif mysql # not compatible
query II rowsort label-5874
SELECT - + 41 * - 17 + + CAST ( NULL AS INTEGER ) AS col0, 98 AS col1
----
NULL
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5875
SELECT ALL - + COUNT( * ) + - + CAST( + - 85 AS SIGNED ) + + - 93 col1
----
-9

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL - + COUNT ( * ) + - + CAST ( + - 85 AS INTEGER ) + + - 93 col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5876
SELECT - 33 DIV - ( + 48 ) * + + 18 * - 31 + COUNT( * ) DIV + - 92 + 19 + - 12 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5876
SELECT - 33 / - ( + 48 ) * + + 18 * - 31 + COUNT ( * ) / + - 92 + 19 + - 12 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5877
SELECT 39 + - NULLIF ( - CAST( ( 81 ) AS SIGNED ), + COALESCE ( - - 19, + SUM( 99 ) - - 71 / 13 ) ), 89 * 20 AS col2
----
120
1780

skipif mysql # not compatible
query II rowsort label-5877
SELECT 39 + - NULLIF ( - CAST ( ( 81 ) AS INTEGER ), + COALESCE ( - - 19, + SUM ( 99 ) - - 71 / 13 ) ), 89 * 20 AS col2
----
120
1780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5878
SELECT ALL - COALESCE ( 89, - 96, - 6 + + 56 + + 72 + + 27 * - - 18 * + - CAST( + COALESCE ( - 19, 87 ) AS SIGNED ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - COALESCE ( 89, - 96, - 6 + + 56 + + 72 + + 27 * - - 18 * + - CAST ( + COALESCE ( - 19, 87 ) AS INTEGER ) ) AS col0
----
-89

query I rowsort
SELECT DISTINCT - 0 * + - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL - COUNT( * ) + - MAX( DISTINCT - + 52 )
----
51

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - COUNT ( * ) + - MAX ( DISTINCT - + 52 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5881
SELECT DISTINCT + CAST( - 84 AS SIGNED ) + - 57 AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT + CAST ( - 84 AS INTEGER ) + - 57 AS col0
----
-141

query I rowsort
SELECT ALL - 82 * 88 col0
----
-7216

query I rowsort
SELECT ALL + 28 - - 74 + + 85
----
187

query I rowsort
SELECT + 23 * + + 48 + 95
----
1199

query I rowsort
SELECT ALL - NULLIF ( 57, 74 * + 61 * + 20 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT 74 + - SUM( + + 19 )
----
55

skipif mysql # not compatible
query I rowsort label-5886
SELECT 74 + - SUM ( + + 19 )
----
55

query II rowsort
SELECT + 33 AS col1, + 29 AS col2
----
33
29

query I rowsort
SELECT ALL - 83 * + 16 col1
----
-1328

query II rowsort
SELECT + 86 col1, 2 AS col1
----
86
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT 64 DIV - 48
----
-1

skipif mysql # not compatible
query I rowsort label-5890
SELECT 64 / - 48
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5891
SELECT 0 DIV + 37 AS col1, 36
----
0
36

skipif mysql # not compatible
query II rowsort label-5891
SELECT 0 / + 37 AS col1, 36
----
0
36

query II rowsort
SELECT ALL - 45 col0, ( + 32 )
----
-45
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT DISTINCT 11 DIV 66 * + 78 * - + 47
----
0

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT 11 / 66 * + 78 * - + 47
----
0

query II rowsort
SELECT DISTINCT - 22 AS col2, + 52 - + 67 + - 46 AS col0
----
-22
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT ALL COUNT( * ) * 96
----
96

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL COUNT ( * ) * 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT MIN( DISTINCT 64 ) + + + 9
----
73

skipif mysql # not compatible
query I rowsort label-5896
SELECT MIN ( DISTINCT 64 ) + + + 9
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5897
SELECT DISTINCT + 47 DIV - + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT + 47 / - + 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL NULLIF ( + 39, - + COUNT( * ) + - + MIN( ALL + 48 ) ) col2
----
39

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL NULLIF ( + 39, - + COUNT ( * ) + - + MIN ( ALL + 48 ) ) col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT - - COALESCE ( 25, + + 3 / 83 - CAST( 26 AS SIGNED ) - - 9 + - 22 ) * ( - 39 ) + + 10 + - + AVG ( DISTINCT + CASE + COALESCE ( + COALESCE ( + - 48, - 28 * + - 84 ), 42 ) WHEN 66 THEN - 78 + 50 / + 51 * + - 12 * + 69 * - 12 WHEN - 70 + - 82 THEN + ( CAST( NULL AS SIGNED ) ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT - - COALESCE ( 25, + + 3 / 83 - CAST ( 26 AS INTEGER ) - - 9 + - 22 ) * ( - 39 ) + + 10 + - + AVG ( DISTINCT + CASE + COALESCE ( + COALESCE ( + - 48, - 28 * + - 84 ), 42 ) WHEN 66 THEN - 78 + 50 / + 51 * + - 12 * + 69 * - 12 WHEN - 70 + - 82 THEN + ( CAST ( NULL AS INTEGER ) ) END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5900
SELECT ALL 29, 71 - CASE - 43 WHEN + COUNT( * ) THEN NULL ELSE + + 89 * CAST( - - 0 AS SIGNED ) + - - 82 END AS col1
----
29
-11

skipif mysql # not compatible
query II rowsort label-5900
SELECT ALL 29, 71 - CASE - 43 WHEN + COUNT ( * ) THEN NULL ELSE + + 89 * CAST ( - - 0 AS INTEGER ) + - - 82 END AS col1
----
29
-11

query I rowsort
SELECT - - 68 + + + 73
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT - - MIN( 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5902
SELECT - - MIN ( 88 ) AS col1
----
88

query I rowsort
SELECT + + 4 * - 5
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT - + ( - - SUM( - + 38 ) ) + + 1
----
39

skipif mysql # not compatible
query I rowsort label-5904
SELECT - + ( - - SUM ( - + 38 ) ) + + 1
----
39

query II rowsort
SELECT - + 36 AS col0, - 53
----
-36
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL + + 65 + MIN( + - 37 )
----
28

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL + + 65 + MIN ( + - 37 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL MAX( + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL MAX ( + 99 ) AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT + CAST( - 91 AS SIGNED ) * - 68 col2
----
6188

skipif mysql # not compatible
query I rowsort label-5908
SELECT + CAST ( - 91 AS INTEGER ) * - 68 col2
----
6188

query I rowsort
SELECT ALL - 38 + - 82 + + 25
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5910
SELECT DISTINCT - COUNT( * ) * + - ( - MAX( - 46 ) ) * - - COUNT( * ) + + 85 + - 52 * + COUNT( * ) * + - COUNT( * ) * AVG ( DISTINCT - + 4 ) / - COALESCE ( + 6, - - ( - SUM( 99 ) ) * - - 41 ) + - COALESCE ( + 53, CASE - 79 WHEN 76 THEN 43 END * - COUNT( * ) + - COUNT( * ), CAST( 6 AS SIGNED ) ) * + 45 - - 9 + + + CASE + 40 WHEN - 40 * - 23 / + 44 THEN - 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT - COUNT ( * ) * + - ( - MAX ( - 46 ) ) * - - COUNT ( * ) + + 85 + - 52 * + COUNT ( * ) * + - COUNT ( * ) * AVG ( DISTINCT - + 4 ) / - COALESCE ( + 6, - - ( - SUM ( 99 ) ) * - - 41 ) + - COALESCE ( + 53, CASE - 79 WHEN 76 THEN 43 END * - COUNT ( * ) + - COUNT ( * ), CAST ( 6 AS INTEGER ) ) * + 45 - - 9 + + + CASE + 40 WHEN - 40 * - 23 / + 44 THEN - 6 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5911
SELECT ALL 46 + ( + CAST( NULL AS SIGNED ) ) * - COALESCE ( - 27, + SUM( 67 ) ) + + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL 46 + ( + CAST ( NULL AS INTEGER ) ) * - COALESCE ( - 27, + SUM ( 67 ) ) + + 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT + + 52 + MAX( + 19 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5912
SELECT + + 52 + MAX ( + 19 ) AS col2
----
71

query I rowsort
SELECT ALL + 47 + - + 16 * 54 - - 28 AS col2
----
-789

query II rowsort
SELECT ALL 3, - 16 * + 77 AS col1
----
3
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT + - 77 + - NULLIF ( + + SUM( - - 41 ), - 98 ) AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-5915
SELECT + - 77 + - NULLIF ( + + SUM ( - - 41 ), - 98 ) AS col2
----
-118

query I rowsort
SELECT - ( - 31 )
----
31

query II rowsort
SELECT DISTINCT 70 AS col1, + 53 + + 28 + + - 67 + + 10
----
70
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT ALL + 97 + - 49 * - 69 + - 75 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL + 97 + - 49 * - 69 + - 75 / - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 88 AS col2, 51
----
88
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5920
SELECT + - CAST( NULL AS DECIMAL ) / 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT + - CAST ( NULL AS REAL ) / 96 AS col2
----
NULL

query I rowsort
SELECT - 65 + + 81
----
16

query I rowsort
SELECT ALL NULLIF ( - - 4, - 58 ) * + 80 * 56 AS col1
----
17920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5923
SELECT ALL 79 + + 18 * + + CAST( NULL AS DECIMAL ) * + - 24 * - 83 * - 62 + + - ( 83 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL 79 + + 18 * + + CAST ( NULL AS REAL ) * + - 24 * - 83 * - 62 + + - ( 83 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT DISTINCT + 73 * 76 * COUNT( * )
----
5548

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT + 73 * 76 * COUNT ( * )
----
5548

query I rowsort
SELECT DISTINCT - - 64 * + 51 + - NULLIF ( 58, 15 ) AS col1
----
3206

query I rowsort
SELECT ALL ( - ( 26 ) ) * 13
----
-338

query I rowsort
SELECT + 24 * + - 12 * - - 2
----
-576

query I rowsort
SELECT ALL 30 * + 3
----
90

query I rowsort
SELECT ALL + 19 col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT + 89 - - 59 * 85 DIV + 91 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-5930
SELECT + 89 - - 59 * 85 / + 91 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT - MAX( DISTINCT - 31 ) * + 13 * + COALESCE ( 42, NULLIF ( 75, + ( + MIN( DISTINCT 87 ) ) ), - COUNT( * ) + + 4, 35 ) + - - 77 - - COUNT( * ) AS col1
----
17004

skipif mysql # not compatible
query I rowsort label-5931
SELECT - MAX ( DISTINCT - 31 ) * + 13 * + COALESCE ( 42, NULLIF ( 75, + ( + MIN ( DISTINCT 87 ) ) ), - COUNT ( * ) + + 4, 35 ) + - - 77 - - COUNT ( * ) AS col1
----
17004

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT COALESCE ( - COUNT( * ), ( - + 66 ) * - 69 + - 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-5932
SELECT COALESCE ( - COUNT ( * ), ( - + 66 ) * - 69 + - 20 )
----
-1

query I rowsort
SELECT DISTINCT + 22 col1
----
22

query I rowsort
SELECT ALL + NULLIF ( - + 97, + 74 ) AS col0
----
-97

query I rowsort
SELECT ALL + 34 * 28
----
952

query I rowsort
SELECT ALL + 61 * - - ( + 10 )
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT - 87 - - COUNT( * ) - MAX( ALL - - 11 ) + - CASE - 13 WHEN - 90 + COALESCE ( + 72, COUNT( * ), + 56 * + - 66 + + + 0 * + + 65 ) THEN NULL ELSE + 4 END * ( + 38 ) * - + MAX( + 91 )
----
13735

skipif mysql # not compatible
query I rowsort label-5937
SELECT - 87 - - COUNT ( * ) - MAX ( ALL - - 11 ) + - CASE - 13 WHEN - 90 + COALESCE ( + 72, COUNT ( * ), + 56 * + - 66 + + + 0 * + + 65 ) THEN NULL ELSE + 4 END * ( + 38 ) * - + MAX ( + 91 )
----
13735

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT - + MIN( 82 ) + - 71 AS col0
----
-153

skipif mysql # not compatible
query I rowsort label-5938
SELECT - + MIN ( 82 ) + - 71 AS col0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5939
SELECT ALL 25 * + + 55 * - + CAST( + 94 AS SIGNED ) + 59 * + ( - 31 ) * 57 + + - 58 AS col0
----
-233561

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL 25 * + + 55 * - + CAST ( + 94 AS INTEGER ) + 59 * + ( - 31 ) * 57 + + - 58 AS col0
----
-233561

query I rowsort
SELECT - 47 col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT ALL + 61 + + + CASE + + 53 WHEN + + 20 / 67 * MAX( 10 ) THEN NULL WHEN + + 29 / + 65 + - COUNT( * ) * + - 85 * 39 THEN - 64 * + + COUNT( * ) * 56 * 45 - - - ( + - 60 ) * 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL + 61 + + + CASE + + 53 WHEN + + 20 / 67 * MAX ( 10 ) THEN NULL WHEN + + 29 / + 65 + - COUNT ( * ) * + - 85 * 39 THEN - 64 * + + COUNT ( * ) * 56 * 45 - - - ( + - 60 ) * 51 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( + + 59 ) col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT DISTINCT - - NULLIF ( - 21, + 59 ) + 64 * + COUNT( DISTINCT + + 63 )
----
43

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT - - NULLIF ( - 21, + 59 ) + 64 * + COUNT ( DISTINCT + + 63 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT - 53 - - CASE - - 46 WHEN - NULLIF ( - - ( + 99 ), 43 + - NULLIF ( 83, 11 ) + - NULLIF ( + 31, 65 ) ) THEN 89 - + - 97 ELSE NULL END + + - NULLIF ( - 44, - 17 ) + 64 + + COUNT( * ) * 0 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT - 53 - - CASE - - 46 WHEN - NULLIF ( - - ( + 99 ), 43 + - NULLIF ( 83, 11 ) + - NULLIF ( + 31, 65 ) ) THEN 89 - + - 97 ELSE NULL END + + - NULLIF ( - 44, - 17 ) + 64 + + COUNT ( * ) * 0 col0
----
NULL

query II rowsort
SELECT + ( + 78 ) AS col0, ( 42 ) + + 4 - + + 72
----
78
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5946
SELECT ALL - ( + 85 ) + + + 17 - + 36 DIV - + 26 + 50 * - 86 col1
----
-4367

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL - ( + 85 ) + + + 17 - + 36 / - + 26 + 50 * - 86 col1
----
-4367

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT - 66 + - SUM( + 86 ) + - 52
----
-204

skipif mysql # not compatible
query I rowsort label-5947
SELECT - 66 + - SUM ( + 86 ) + - 52
----
-204

query I rowsort
SELECT - + 96 AS col2
----
-96

query I rowsort
SELECT ALL 24 * + 29 + 58
----
754

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5950
SELECT + + 54 * 89 AS col1, - CAST( NULL AS SIGNED )
----
4806
NULL

skipif mysql # not compatible
query II rowsort label-5950
SELECT + + 54 * 89 AS col1, - CAST ( NULL AS INTEGER )
----
4806
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5951
SELECT ALL - 85 - + - 21 * 16 DIV + - 2 AS col0
----
-253

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL - 85 - + - 21 * 16 / + - 2 AS col0
----
-253

query I rowsort
SELECT + - 80 - + 76
----
-156

query I rowsort
SELECT ALL + - 82 * - 64 AS col1
----
5248

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT + COUNT( * ) + - 21 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-5954
SELECT + COUNT ( * ) + - 21 AS col0
----
-20

query II rowsort
SELECT 41, + 46 col0
----
41
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5956
SELECT + 1 + CASE ( - COALESCE ( - CASE 69 WHEN - + CAST( NULL AS SIGNED ) THEN - 39 - ( - ( - 51 ) ) END, - NULLIF ( - - NULLIF ( 3, + 15 + + 40 + 48 ), - 13 * - ( + 8 ) + 87 + + + 20 * + - 76 ) * 19 * 3 * - 94 ) ) WHEN + 81 / + 54 - + ( - NULLIF ( + - 94, 23 * - + 27 ) ) + + + 18 - - 75 * + 52 THEN NULL WHEN 21 * + + ( + 93 ) THEN + 29 * + 22 ELSE - ( 12 ) END * + 30
----
-359

skipif mysql # not compatible
query I rowsort label-5956
SELECT + 1 + CASE ( - COALESCE ( - CASE 69 WHEN - + CAST ( NULL AS INTEGER ) THEN - 39 - ( - ( - 51 ) ) END, - NULLIF ( - - NULLIF ( 3, + 15 + + 40 + 48 ), - 13 * - ( + 8 ) + 87 + + + 20 * + - 76 ) * 19 * 3 * - 94 ) ) WHEN + 81 / + 54 - + ( - NULLIF ( + - 94, 23 * - + 27 ) ) + + + 18 - - 75 * + 52 THEN NULL WHEN 21 * + + ( + 93 ) THEN + 29 * + 22 ELSE - ( 12 ) END * + 30
----
-359

query I rowsort
SELECT + 89 * - 26 + + 96 - - 7
----
-2211

query I rowsort
SELECT + 14 * NULLIF ( 3, + 21 ) + 48
----
90

query I rowsort
SELECT + ( - - 74 ) * + 2
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5960
SELECT MAX( ALL - 12 ) DIV + 32 * 85 + 3
----
3

skipif mysql # not compatible
query I rowsort label-5960
SELECT MAX ( ALL - 12 ) / + 32 * 85 + 3
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT + ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT + ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT + ( + COUNT( * ) ) + + 33 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5962
SELECT + ( + COUNT ( * ) ) + + 33 AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5963
SELECT + ( + 10 ) DIV + COUNT( * ) - + 52
----
-42

skipif mysql # not compatible
query I rowsort label-5963
SELECT + ( + 10 ) / + COUNT ( * ) - + 52
----
-42

query I rowsort
SELECT DISTINCT CASE 37 WHEN - - 89 THEN - 31 * - 92 * - - 20 WHEN - + 0 THEN NULL ELSE NULL END * + 69 * - + 98 * - 7 * + 58 / + 64 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5965
SELECT ALL + 54, CAST( NULL AS SIGNED ) * - 5 col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-5965
SELECT ALL + 54, CAST ( NULL AS INTEGER ) * - 5 col0
----
54
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5966
SELECT CAST( + + ( - 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5966
SELECT CAST ( + + ( - 0 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5967
SELECT ALL + 25, + 76 * + - 11 * + CAST( - 13 AS SIGNED ) * - - 37 AS col2
----
25
402116

skipif mysql # not compatible
query II rowsort label-5967
SELECT ALL + 25, + 76 * + - 11 * + CAST ( - 13 AS INTEGER ) * - - 37 AS col2
----
25
402116

query I rowsort
SELECT ALL 99 * 86
----
8514

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5969
SELECT + 76 * CASE - ( 59 ) WHEN - + MIN( + - 69 ) * ( COUNT( * ) ) * 57 * 92 THEN 92 * - 10 WHEN - - 52 + - 39 THEN + 79 * - COUNT( ALL - - 94 ) * 78 * - 74 * + 96 * - ( 91 ) - 50 + - 78 + + 10 DIV - 86 + 14 ELSE - COUNT( * ) END + + 57
----
-19

skipif mysql # not compatible
query I rowsort label-5969
SELECT + 76 * CASE - ( 59 ) WHEN - + MIN ( + - 69 ) * ( COUNT ( * ) ) * 57 * 92 THEN 92 * - 10 WHEN - - 52 + - 39 THEN + 79 * - COUNT ( ALL - - 94 ) * 78 * - 74 * + 96 * - ( 91 ) - 50 + - 78 + + 10 / - 86 + 14 ELSE - COUNT ( * ) END + + 57
----
-19

query I rowsort
SELECT DISTINCT 76 * + 43 col1
----
3268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT CAST( - - 41 AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5971
SELECT CAST ( - - 41 AS INTEGER ) AS col2
----
41

query I rowsort
SELECT 9 + + - 90 + - 38 AS col1
----
-119

query I rowsort
SELECT 15 * - 33 AS col2
----
-495

query I rowsort
SELECT ALL 69 + + - 23 + + 75
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT 96 + 47 * + - COUNT( * ) + + COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5975
SELECT 96 + 47 * + - COUNT ( * ) + + COUNT ( * ) AS col1
----
50

query I rowsort
SELECT ALL + 71 + - 91 - + 75 AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5977
SELECT ALL 22 + 2 + - NULLIF ( - CASE + COUNT( * ) WHEN + 7 * + 52 * - ( CAST( - - COUNT( - 2 ) AS SIGNED ) ) + - 22 * - CAST( - - 35 AS SIGNED ) THEN + 8 END, - - 74 * + + 34 + 77 + 24 ) + COUNT( * ) * + 5 AS col1, COUNT( * ) * - 12 AS col2
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-5977
SELECT ALL 22 + 2 + - NULLIF ( - CASE + COUNT ( * ) WHEN + 7 * + 52 * - ( CAST ( - - COUNT ( - 2 ) AS INTEGER ) ) + - 22 * - CAST ( - - 35 AS INTEGER ) THEN + 8 END, - - 74 * + + 34 + 77 + 24 ) + COUNT ( * ) * + 5 AS col1, COUNT ( * ) * - 12 AS col2
----
NULL
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5978
SELECT ALL - 91 + + 47 * + CAST( - 34 AS SIGNED ) * + COUNT( * ) + - 34
----
-1723

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL - 91 + + 47 * + CAST ( - 34 AS INTEGER ) * + COUNT ( * ) + - 34
----
-1723

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL + 32 + - NULLIF ( + - 96, 88 ) + - COALESCE ( + - COUNT( + 15 ), - - 15 + + 22 + + 29 ) + 78 + - 95 * 57 * + + 64 AS col0
----
-346353

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + 32 + - NULLIF ( + - 96, 88 ) + - COALESCE ( + - COUNT ( + 15 ), - - 15 + + 22 + + 29 ) + 78 + - 95 * 57 * + + 64 AS col0
----
-346353

query I rowsort
SELECT ALL - NULLIF ( - + 49, - 58 + - 80 )
----
49

query I rowsort
SELECT - - 11 AS col2
----
11

query II rowsort
SELECT ALL 26 AS col0, ( - 41 ) * - 15
----
26
615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5983
SELECT ALL - ( - CASE - 78 WHEN - 81 / - + 52 + - + COUNT( * ) + - + COUNT( * ) - - 4 + + 8 * 1 * + + 4 + + - ( - 24 ) * + 56 THEN - CAST( 1 AS SIGNED ) * 7 * + 0 END ) + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - ( - CASE - 78 WHEN - 81 / - + 52 + - + COUNT ( * ) + - + COUNT ( * ) - - 4 + + 8 * 1 * + + 4 + + - ( - 24 ) * + 56 THEN - CAST ( 1 AS INTEGER ) * 7 * + 0 END ) + 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5984
SELECT - - 91 AS col1, - 99 + + 49 * - - CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-5984
SELECT - - 91 AS col1, - 99 + + 49 * - - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2
----
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5985
SELECT + COALESCE ( + + NULLIF ( 47, + - CAST( NULL AS SIGNED ) ), 98, + - 74 + - + CASE WHEN NOT 83 IS NULL THEN + + 88 - - - 93 * + - 70 * 16 ELSE 97 * 81 + COUNT( + 9 ) END + + 51 ) + 81
----
128

skipif mysql # not compatible
query I rowsort label-5985
SELECT + COALESCE ( + + NULLIF ( 47, + - CAST ( NULL AS INTEGER ) ), 98, + - 74 + - + CASE WHEN NOT 83 IS NULL THEN + + 88 - - - 93 * + - 70 * 16 ELSE 97 * 81 + COUNT ( + 9 ) END + + 51 ) + 81
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT ALL MAX( - + 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL MAX ( - + 13 )
----
-13

query II rowsort
SELECT - - 68 AS col1, - 9 * - - 10
----
68
-90

query I rowsort
SELECT ALL + 95 * 83 AS col2
----
7885

query I rowsort
SELECT DISTINCT - 36 - 57 + - - 47 + - 25 * NULLIF ( - ( - - 4 ), - 19 ) * 14 AS col2
----
1354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 44, - 88 )
----
-44

query II rowsort
SELECT DISTINCT - 19 col1, 47 AS col2
----
-19
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5993
SELECT - + CAST( MIN( - 40 ) AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5993
SELECT - + CAST ( MIN ( - 40 ) AS INTEGER ) AS col0
----
40

query I rowsort
SELECT 45 * - 14
----
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-5995
SELECT 49 DIV - + 33
----
-1

skipif mysql # not compatible
query I rowsort label-5995
SELECT 49 / - + 33
----
-1

query I rowsort
SELECT 84 * + - 29 * - ( 42 )
----
102312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5997
SELECT DISTINCT + 78 * + + CASE - CAST( NULL AS SIGNED ) WHEN 6 THEN NULL ELSE - 2 END AS col1, - COALESCE ( - 73, - 98 + - ( + COUNT( * ) ) )
----
-156
73

skipif mysql # not compatible
query II rowsort label-5997
SELECT DISTINCT + 78 * + + CASE - CAST ( NULL AS INTEGER ) WHEN 6 THEN NULL ELSE - 2 END AS col1, - COALESCE ( - 73, - 98 + - ( + COUNT ( * ) ) )
----
-156
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT DISTINCT MIN( + + 34 ) * + + CASE COUNT( 81 ) WHEN + 76 + 1 * - + 69 THEN NULL ELSE - 51 * 18 * - 12 END
----
374544

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT MIN ( + + 34 ) * + + CASE COUNT ( 81 ) WHEN + 76 + 1 * - + 69 THEN NULL ELSE - 51 * 18 * - 12 END
----
374544

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5999
SELECT ALL + 61 * CAST( NULL AS DECIMAL ) AS col2, CAST( - ( + AVG ( ALL + + 78 ) ) AS SIGNED ) * - 41
----
NULL
3198

skipif mysql # not compatible
query II rowsort label-5999
SELECT ALL + 61 * CAST ( NULL AS REAL ) AS col2, CAST ( - ( + AVG ( ALL + + 78 ) ) AS INTEGER ) * - 41
----
NULL
3198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT DISTINCT + 52 + + 62 * - - ( - - CAST( NULL AS SIGNED ) ) + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT + 52 + + 62 * - - ( - - CAST ( NULL AS INTEGER ) ) + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT 6 + MAX( 50 )
----
56

skipif mysql # not compatible
query I rowsort label-6001
SELECT 6 + MAX ( 50 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT DISTINCT 35 + 35 * - COALESCE ( + + COUNT( * ), - - 84 * - + 9 + + COUNT( * ) ) * 7 * 14 + - + 87 * 63 * - 52 col1
----
281617

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT 35 + 35 * - COALESCE ( + + COUNT ( * ), - - 84 * - + 9 + + COUNT ( * ) ) * 7 * 14 + - + 87 * 63 * - 52 col1
----
281617

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT 34 * - + ( - COUNT( * ) ) * - 24
----
-816

skipif mysql # not compatible
query I rowsort label-6003
SELECT 34 * - + ( - COUNT ( * ) ) * - 24
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT COUNT( * ) + + 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT COUNT ( * ) + + 52 AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6005
SELECT DISTINCT 92 DIV - 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT 92 / - 71 AS col2
----
-1

query I rowsort
SELECT 34 * + 9 AS col1
----
306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT ALL 56 - - + COALESCE ( + 38, + - CAST( NULL AS SIGNED ) * - 70 )
----
94

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL 56 - - + COALESCE ( + 38, + - CAST ( NULL AS INTEGER ) * - 70 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT 13 * COUNT( DISTINCT - - 75 ) - + - 52 * 76 AS col2
----
3965

skipif mysql # not compatible
query I rowsort label-6008
SELECT 13 * COUNT ( DISTINCT - - 75 ) - + - 52 * 76 AS col2
----
3965

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT - NULLIF ( - + 60, - 39 / ( + 81 ) ) * - - 54 + - COUNT( * ) * + + 66
----
3174

skipif mysql # not compatible
query I rowsort label-6009
SELECT - NULLIF ( - + 60, - 39 / ( + 81 ) ) * - - 54 + - COUNT ( * ) * + + 66
----
3174

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT + - NULLIF ( + COUNT( * ), - - 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-6010
SELECT + - NULLIF ( + COUNT ( * ), - - 29 )
----
-1

query II rowsort
SELECT 34 * + 94 + + ( - 22 ), + 64 AS col0
----
3174
64

query II rowsort
SELECT 82 * + 26 * + 34 * 99 AS col2, 56
----
7176312
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL - + 20 - COALESCE ( 35, - SUM( ALL + 46 ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL - + 20 - COALESCE ( 35, - SUM ( ALL + 46 ) ) AS col0
----
-55

query I rowsort
SELECT - ( + + 80 ) AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6015
SELECT DISTINCT + CAST( 72 AS SIGNED ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT + CAST ( 72 AS INTEGER ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL - - ( - COUNT( * ) ) * 51 * 83 AS col0
----
-4233

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL - - ( - COUNT ( * ) ) * 51 * 83 AS col0
----
-4233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6017
SELECT DISTINCT - + ( - - 98 ) * 13 + SUM( - 87 ) + + - 92 + + - COUNT( * ) * + 35 + - + 71 + + - COUNT( - 38 ) * + ( - 5 ) - - ( - + 82 ) * - 85 + - COALESCE ( CASE - 95 WHEN - + NULLIF ( 73, CAST( 27 AS SIGNED ) * - - 59 ) THEN - 98 ELSE NULL END, + 16 ) * - 10 * + - NULLIF ( + 42, 53 ) AS col2
----
-1304

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT - + ( - - 98 ) * 13 + SUM ( - 87 ) + + - 92 + + - COUNT ( * ) * + 35 + - + 71 + + - COUNT ( - 38 ) * + ( - 5 ) - - ( - + 82 ) * - 85 + - COALESCE ( CASE - 95 WHEN - + NULLIF ( 73, CAST ( 27 AS INTEGER ) * - - 59 ) THEN - 98 ELSE NULL END, + 16 ) * - 10 * + - NULLIF ( + 42, 53 ) AS col2
----
-1304

query I rowsort
SELECT ( 33 ) + - 28 AS col1
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6019
SELECT 64 + + CAST( NULL AS DECIMAL ) - + - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT 64 + + CAST ( NULL AS REAL ) - + - 81 AS col0
----
NULL

query I rowsort
SELECT 74 + - - 38
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL MIN( DISTINCT 19 )
----
19

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL MIN ( DISTINCT 19 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6022
SELECT DISTINCT 74, + CAST( NULL AS SIGNED ) AS col0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-6022
SELECT DISTINCT 74, + CAST ( NULL AS INTEGER ) AS col0
----
74
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6023
SELECT ALL - 38 + + 83 + + 11 * + - 64 + - 94 AS col1, CAST( NULL AS SIGNED ) / - 17 / + + 5
----
-753
NULL

skipif mysql # not compatible
query II rowsort label-6023
SELECT ALL - 38 + + 83 + + 11 * + - 64 + - 94 AS col1, CAST ( NULL AS INTEGER ) / - 17 / + + 5
----
-753
NULL

query I rowsort
SELECT 90 + 27
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6025
SELECT DISTINCT - MIN( + - 80 ) DIV - 71 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - MIN ( + - 80 ) / - 71 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6026
SELECT DISTINCT - 20 + CAST( + 97 AS SIGNED ) + + + COUNT( * ) + + + MIN( ALL + 46 ) * - 25
----
-1072

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT - 20 + CAST ( + 97 AS INTEGER ) + + + COUNT ( * ) + + + MIN ( ALL + 46 ) * - 25
----
-1072

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT ALL MAX( - 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL MAX ( - 20 ) AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT - 82 DIV - 67 col2
----
1

skipif mysql # not compatible
query I rowsort label-6028
SELECT - 82 / - 67 col2
----
1

query I rowsort
SELECT - 88 + - 97
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT ALL - COUNT( * ) + 98 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL - COUNT ( * ) + 98 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT DISTINCT MIN( ALL + - 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT MIN ( ALL + - 20 ) AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT DISTINCT - CAST( - - 70 AS SIGNED ) * - - 52 + - 31 - + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT - CAST ( - - 70 AS INTEGER ) * - - 52 + - 31 - + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6033
SELECT + 68 DIV - + COUNT( * ) + ( ( + 89 ) ), 1 + - - 11 AS col0
----
21
12

skipif mysql # not compatible
query II rowsort label-6033
SELECT + 68 / - + COUNT ( * ) + ( ( + 89 ) ), 1 + - - 11 AS col0
----
21
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT CASE - + COUNT( * ) WHEN 21 THEN + 33 WHEN - 40 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6034
SELECT CASE - + COUNT ( * ) WHEN 21 THEN + 33 WHEN - 40 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL + COALESCE ( + - COUNT( * ), - 14 ) * NULLIF ( - 48, - - 8 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL + COALESCE ( + - COUNT ( * ), - 14 ) * NULLIF ( - 48, - - 8 ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT NULLIF ( - - COUNT( * ), - - 81 - - - 50 + + 16 * - ( - CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) * + - 57 + - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-6036
SELECT NULLIF ( - - COUNT ( * ), - - 81 - - - 50 + + 16 * - ( - CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) * + - 57 + - 74 )
----
1

query I rowsort
SELECT ALL - 30 * 51 AS col0
----
-1530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT ALL - CAST( NULL AS SIGNED ) * + 69 + - - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL - CAST ( NULL AS INTEGER ) * + 69 + - - 72 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 92 col2, + 34
----
92
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT ALL + COUNT( ALL - 24 )
----
1

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL + COUNT ( ALL - 24 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT - 42 * + 19 - - + 37 + + CASE + + 69 WHEN + - COALESCE ( - 1, + 3, - + 61 ) THEN NULL ELSE - COUNT( * ) * - 99 - + + SUM( DISTINCT - - 16 ) + + 25 + COUNT( * ) * 5 + + 29 * - 31 / - + 50 + + 84 + - CASE + + 98 WHEN - 83 + - + 30 THEN + 5 + - 97 + 72 * + 49 END END * + + 16 + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT - 42 * + 19 - - + 37 + + CASE + + 69 WHEN + - COALESCE ( - 1, + 3, - + 61 ) THEN NULL ELSE - COUNT ( * ) * - 99 - + + SUM ( DISTINCT - - 16 ) + + 25 + COUNT ( * ) * 5 + + 29 * - 31 / - + 50 + + 84 + - CASE + + 98 WHEN - 83 + - + 30 THEN + 5 + - 97 + 72 * + 49 END END * + + 16 + - 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6042
SELECT + ( + 0 ) + - CASE 25 WHEN - CASE - - CASE + 98 WHEN - - 54 * - 18 THEN + 59 + CAST( NULL AS SIGNED ) END WHEN + 69 THEN 84 * + MAX( 87 ) WHEN COUNT( * ) THEN NULL END * - COUNT( * ) THEN NULL WHEN + CASE + + ( + 63 ) WHEN + 96 + + + 98 THEN + 36 + COALESCE ( - 45, 50 ) + - 48 * 42 + CASE 28 WHEN + + 99 - + - 12 THEN - 75 WHEN - + COALESCE ( - 31, 91 - - 63, + CAST( + 23 AS DECIMAL ) ) THEN NULL ELSE - 16 END * - ( 39 ) END THEN 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT + ( + 0 ) + - CASE 25 WHEN - CASE - - CASE + 98 WHEN - - 54 * - 18 THEN + 59 + CAST ( NULL AS INTEGER ) END WHEN + 69 THEN 84 * + MAX ( 87 ) WHEN COUNT ( * ) THEN NULL END * - COUNT ( * ) THEN NULL WHEN + CASE + + ( + 63 ) WHEN + 96 + + + 98 THEN + 36 + COALESCE ( - 45, 50 ) + - 48 * 42 + CASE 28 WHEN + + 99 - + - 12 THEN - 75 WHEN - + COALESCE ( - 31, 91 - - 63, + CAST ( + 23 AS REAL ) ) THEN NULL ELSE - 16 END * - ( 39 ) END THEN 48 END
----
NULL

query I rowsort
SELECT ALL + 99 * + + 8 - - + ( - 66 ) AS col0
----
726

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT DISTINCT + - COALESCE ( - + 17, + COUNT( * ) + - 4 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT + - COALESCE ( - + 17, + COUNT ( * ) + - 4 ) col2
----
17

query I rowsort
SELECT - - 50 * - + ( + 75 )
----
-3750

query I rowsort
SELECT + - ( + + 15 ) * + 93 AS col0
----
-1395

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT ALL + 39 DIV 52 * 57
----
0

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + 39 / 52 * 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT COUNT( ALL + 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6048
SELECT COUNT ( ALL + 37 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + + 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT DISTINCT + - MIN( + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT + - MIN ( + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL 90 * + + 51 * + - ( 39 ) * + COUNT( * ) AS col2
----
-179010

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL 90 * + + 51 * + - ( 39 ) * + COUNT ( * ) AS col2
----
-179010

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT DISTINCT COUNT( * ) * + 37
----
37

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT COUNT ( * ) * + 37
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT + - CAST( NULL AS SIGNED ) + - 55 * + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6053
SELECT + - CAST ( NULL AS INTEGER ) + - 55 * + - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT + - COUNT( * ) * - - 79 - + ( + 42 ) + - + 79 + - 20 * - + 95 + + COUNT( * )
----
1701

skipif mysql # not compatible
query I rowsort label-6054
SELECT + - COUNT ( * ) * - - 79 - + ( + 42 ) + - + 79 + - 20 * - + 95 + + COUNT ( * )
----
1701

query I rowsort
SELECT + + 43 + 88 * + 82 AS col0
----
7259

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6056
SELECT ALL + ( - ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL + ( - ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT + 46 * + COUNT( * ) * + 38 * + 94 * 5 + + - 45 AS col2
----
821515

skipif mysql # not compatible
query I rowsort label-6057
SELECT + 46 * + COUNT ( * ) * + 38 * + 94 * 5 + + - 45 AS col2
----
821515

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6058
SELECT - + 53 AS col0, - CAST( NULL AS SIGNED ) AS col1
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-6058
SELECT - + 53 AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
-53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT - COUNT( * ) + + - 75 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6059
SELECT - COUNT ( * ) + + - 75 AS col1
----
-76

query I rowsort
SELECT ALL 31 * + + 65 * + + 20
----
40300

onlyif mysql # DIV for integer division: 
query I rowsort label-6061
SELECT + 42 * 63 DIV 54 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6061
SELECT + 42 * 63 / 54 AS col0
----
49

query I rowsort
SELECT ALL 54 + 23
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6063
SELECT - ( - 42 ) col1, - 35 DIV + 86 * - - COUNT( * ) AS col1
----
42
0

skipif mysql # not compatible
query II rowsort label-6063
SELECT - ( - 42 ) col1, - 35 / + 86 * - - COUNT ( * ) AS col1
----
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT ALL 24 + + 94 + 26 + + - COUNT( * ) - - SUM( - + 65 )
----
78

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL 24 + + 94 + 26 + + - COUNT ( * ) - - SUM ( - + 65 )
----
78

query I rowsort
SELECT - ( + - 36 )
----
36

query I rowsort
SELECT - 12 * + - 24
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT ALL 18 + + COUNT( * ) + CASE ( + + 53 ) WHEN + - 5 THEN - 9 + COUNT( * ) WHEN 89 + 94 * - COUNT( * ) THEN NULL END + 23 / + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL 18 + + COUNT ( * ) + CASE ( + + 53 ) WHEN + - 5 THEN - 9 + COUNT ( * ) WHEN 89 + 94 * - COUNT ( * ) THEN NULL END + 23 / + 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6068
SELECT - COALESCE ( - - 69, + CASE + + 65 WHEN CASE - 57 WHEN + 1 THEN + 45 WHEN + + 23 THEN NULL END * + + COUNT( * ) * + - 84 THEN - 29 - COUNT( * ) END + 45 DIV + 15 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6068
SELECT - COALESCE ( - - 69, + CASE + + 65 WHEN CASE - 57 WHEN + 1 THEN + 45 WHEN + + 23 THEN NULL END * + + COUNT ( * ) * + - 84 THEN - 29 - COUNT ( * ) END + 45 / + 15 ) AS col1
----
-69

query I rowsort
SELECT + ( - - 52 ) - 45 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT ALL - COUNT( * ) + - - 4 + + ( - 41 ) + - + 50
----
-88

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL - COUNT ( * ) + - - 4 + + ( - 41 ) + - + 50
----
-88

query I rowsort
SELECT - 82 * + 19 AS col2
----
-1558

query II rowsort
SELECT 24 AS col2, 42 AS col0
----
24
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6073
SELECT - CAST( 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-6073
SELECT - CAST ( 6 AS INTEGER )
----
-6

query I rowsort
SELECT DISTINCT 17 * 37
----
629

query I rowsort
SELECT - 46 * + 62
----
-2852

onlyif mysql # aggregate syntax: 
query II rowsort label-6076
SELECT ALL + 50 col2, 74 * + - COUNT( * ) + 93
----
50
19

skipif mysql # not compatible
query II rowsort label-6076
SELECT ALL + 50 col2, 74 * + - COUNT ( * ) + 93
----
50
19

query II rowsort
SELECT ALL + 95, - 18 AS col2
----
95
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT - 98 DIV 85 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6078
SELECT - 98 / 85 col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6079
SELECT ALL + 71 DIV + + 66
----
1

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL + 71 / + + 66
----
1

query II rowsort
SELECT + - 63 AS col0, - 7
----
-63
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT + + COUNT( ALL + 67 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6081
SELECT + + COUNT ( ALL + 67 ) AS col1
----
1

query II rowsort
SELECT + - 94 AS col0, 38
----
-94
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL + + COUNT( * ) * 1 + + 68
----
69

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + + COUNT ( * ) * 1 + + 68
----
69

query I rowsort
SELECT - + 79 + - 58
----
-137

query I rowsort
SELECT - 17 * + - 48 AS col2
----
816

query I rowsort
SELECT 4 * 99 + - - 34 + + 85 + - 81 + - 40 * 53 * + 77 + - 36 * + + 96 * + 28 * - + 65 col2
----
6127114

onlyif mysql # DIV for integer division: 
query I rowsort label-6087
SELECT ALL - + 55 DIV - + 65 - + 43
----
-43

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL - + 55 / - + 65 - + 43
----
-43

query II rowsort
SELECT DISTINCT + + 96, 57 AS col0
----
96
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6089
SELECT ALL + NULLIF ( - COALESCE ( 59, - 73 * + - 41 - 4 ), + + COUNT( * ) * - COALESCE ( + + 0, + 2 * + COALESCE ( + CAST( - 66 AS SIGNED ), - 89 / - + 52 ) ) * - 56 * 12 + - 95 - - 58 )
----
-59

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL + NULLIF ( - COALESCE ( 59, - 73 * + - 41 - 4 ), + + COUNT ( * ) * - COALESCE ( + + 0, + 2 * + COALESCE ( + CAST ( - 66 AS INTEGER ), - 89 / - + 52 ) ) * - 56 * 12 + - 95 - - 58 )
----
-59

query II rowsort
SELECT ALL + 76 AS col1, + 27 AS col2
----
76
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT DISTINCT - + 49 * - 99 + + - COUNT( * ) * 13 AS col2
----
4838

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT - + 49 * - 99 + + - COUNT ( * ) * 13 AS col2
----
4838

query I rowsort
SELECT DISTINCT + ( + 70 ) col2
----
70

query I rowsort
SELECT DISTINCT + - 1 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT - MIN( ALL - 90 ), - 55 AS col2
----
90
-55

skipif mysql # not compatible
query II rowsort label-6094
SELECT - MIN ( ALL - 90 ), - 55 AS col2
----
90
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT + - CAST( 79 AS SIGNED ) * 74 AS col1
----
-5846

skipif mysql # not compatible
query I rowsort label-6095
SELECT + - CAST ( 79 AS INTEGER ) * 74 AS col1
----
-5846

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL COUNT( * ) * 67 + - 5 + + 89 + + 0 * - 91 * + COUNT( * ) AS col1
----
151

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL COUNT ( * ) * 67 + - 5 + + 89 + + 0 * - 91 * + COUNT ( * ) AS col1
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6097
SELECT - CASE + CAST( COUNT( * ) AS SIGNED ) WHEN - 7 + + 10 / ( + 11 ) THEN + COUNT( * ) * + + 23 + - 65 + 64 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT - CASE + CAST ( COUNT ( * ) AS INTEGER ) WHEN - 7 + + 10 / ( + 11 ) THEN + COUNT ( * ) * + + 23 + - 65 + 64 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 9 AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6099
SELECT ALL 31 * + 13 + - COUNT( * ) DIV + 99 + - 78 + 9 AS col0
----
334

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL 31 * + 13 + - COUNT ( * ) / + 99 + - 78 + 9 AS col0
----
334

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ALL 54 * + - ( - 14 ) + 50 * - COUNT( * ) AS col1
----
706

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL 54 * + - ( - 14 ) + 50 * - COUNT ( * ) AS col1
----
706

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT DISTINCT 23 * + COUNT( * ) * + - 13 + - 4
----
-303

skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT 23 * + COUNT ( * ) * + - 13 + - 4
----
-303

onlyif mysql # aggregate syntax: 
query II rowsort label-6102
SELECT 80 + 27 AS col2, COUNT( * ) AS col1
----
107
1

skipif mysql # not compatible
query II rowsort label-6102
SELECT 80 + 27 AS col2, COUNT ( * ) AS col1
----
107
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6103
SELECT CAST( NULL AS SIGNED ) - CAST( + 64 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6103
SELECT CAST ( NULL AS INTEGER ) - CAST ( + 64 AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 2 ) + + 16 + 75
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT 34 + - - 33 + - 24 DIV + - 2
----
79

skipif mysql # not compatible
query I rowsort label-6105
SELECT 34 + - - 33 + - 24 / + - 2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6106
SELECT DISTINCT COUNT( DISTINCT + 58 ) * - 14 AS col1, + 77 AS col0
----
-14
77

skipif mysql # not compatible
query II rowsort label-6106
SELECT DISTINCT COUNT ( DISTINCT + 58 ) * - 14 AS col1, + 77 AS col0
----
-14
77

query I rowsort
SELECT 43 + + 61
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT COUNT( * ) * - + MAX( + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-6108
SELECT COUNT ( * ) * - + MAX ( + 66 )
----
-66

query I rowsort
SELECT 50 * - + ( - 74 ) AS col2
----
3700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6110
SELECT ALL CASE - 39 WHEN - COUNT( * ) THEN - COUNT( * ) + + + COUNT( * ) WHEN - CAST( + + COUNT( * ) AS SIGNED ) THEN MIN( - 2 ) + + 59 * - 92 ELSE NULL END * + + 2 * + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL CASE - 39 WHEN - COUNT ( * ) THEN - COUNT ( * ) + + + COUNT ( * ) WHEN - CAST ( + + COUNT ( * ) AS INTEGER ) THEN MIN ( - 2 ) + + 59 * - 92 ELSE NULL END * + + 2 * + 67 AS col0
----
NULL

query I rowsort
SELECT + + 65 AS col0
----
65

query II rowsort
SELECT 42 * + 44 AS col2, CASE - + 63 WHEN - - 76 THEN NULL WHEN + 35 - + 21 THEN - - 52 END + - 16 - + 11 AS col2
----
1848
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6113
SELECT ALL - CAST( NULL AS DECIMAL ) * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL - CAST ( NULL AS REAL ) * - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT DISTINCT - - 7
----
7

query I rowsort
SELECT ALL - + 25 col1
----
-25

query I rowsort
SELECT 68 * + + 72
----
4896

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT ALL - 70 + + - 88 DIV 59
----
-71

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL - 70 + + - 88 / 59
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6118
SELECT + COUNT( * ) + MIN( DISTINCT - 66 ) DIV + 21 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6118
SELECT + COUNT ( * ) + MIN ( DISTINCT - 66 ) / + 21 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6119
SELECT DISTINCT + 79 * - ( MAX( - 75 ) ) * - 67 * 63 - - 42, - 49 - + 87 AS col0
----
-25009383
-136

skipif mysql # not compatible
query II rowsort label-6119
SELECT DISTINCT + 79 * - ( MAX ( - 75 ) ) * - 67 * 63 - - 42, - 49 - + 87 AS col0
----
-25009383
-136

onlyif mysql # DIV for integer division: 
query II rowsort label-6120
SELECT + 0 - + - 44 AS col1, - 55 DIV + 30 AS col2
----
44
-1

skipif mysql # not compatible
query II rowsort label-6120
SELECT + 0 - + - 44 AS col1, - 55 / + 30 AS col2
----
44
-1

query I rowsort
SELECT DISTINCT - + 71 + - 39 + + 22
----
-88

query I rowsort
SELECT ALL + 76 + 23 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT - 67 + - COUNT( * ) * + 95 + + 45 AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-6123
SELECT - 67 + - COUNT ( * ) * + 95 + + 45 AS col0
----
-117

query I rowsort
SELECT DISTINCT + 33 + - 30 + 44 AS col0
----
47

query II rowsort
SELECT ALL - 29, 70 + + 99 AS col2
----
-29
169

query I rowsort
SELECT 0 + 67
----
67

query I rowsort
SELECT 3 * + - 4 * 45 * - 41 AS col2
----
22140

onlyif mysql # DIV for integer division: 
query II rowsort label-6128
SELECT 80 * - 50 DIV + 2 col2, + ( - 50 ) + 33
----
-2000
-17

skipif mysql # not compatible
query II rowsort label-6128
SELECT 80 * - 50 / + 2 col2, + ( - 50 ) + 33
----
-2000
-17

query II rowsort
SELECT 20, ( - 45 ) AS col2
----
20
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6130
SELECT ALL 22 AS col1, SUM( DISTINCT + 48 )
----
22
48

skipif mysql # not compatible
query II rowsort label-6130
SELECT ALL 22 AS col1, SUM ( DISTINCT + 48 )
----
22
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6131
SELECT 70 * + SUM( ALL 84 ) + + CAST( - + 77 AS SIGNED ) + - + NULLIF ( 93, + + 9 * + 70 ) AS col0
----
5710

skipif mysql # not compatible
query I rowsort label-6131
SELECT 70 * + SUM ( ALL 84 ) + + CAST ( - + 77 AS INTEGER ) + - + NULLIF ( 93, + + 9 * + 70 ) AS col0
----
5710

query II rowsort
SELECT - 78 AS col1, 47 AS col0
----
-78
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6133
SELECT ALL 31 AS col1, COUNT( * ) * - ( + 3 ) * - 84 AS col2
----
31
252

skipif mysql # not compatible
query II rowsort label-6133
SELECT ALL 31 AS col1, COUNT ( * ) * - ( + 3 ) * - 84 AS col2
----
31
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6134
SELECT DISTINCT ( + 69 ) * - 30 * - 38 - - 11 * + 76 + - COUNT( * ) - CAST( - + 70 AS SIGNED ) * - 99 - 97 * 20 AS col1
----
70625

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT ( + 69 ) * - 30 * - 38 - - 11 * + 76 + - COUNT ( * ) - CAST ( - + 70 AS INTEGER ) * - 99 - 97 * 20 AS col1
----
70625

query I rowsort
SELECT NULLIF ( - 43, AVG ( - 38 ) ) * - 46 AS col1
----
1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6136
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT NULLIF ( - 98, - 48 + + 41 ) / CAST( NULL AS SIGNED ) * 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT NULLIF ( - 98, - 48 + + 41 ) / CAST ( NULL AS INTEGER ) * 43 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6138
SELECT ALL + 71 * 19 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL + 71 * 19 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - - 26 ) * - 78 + + 3 + - + 92 + - 75 AS col2
----
-2192

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT COUNT( * ) * - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6140
SELECT COUNT ( * ) * - 42 AS col0
----
-42

query II rowsort
SELECT - 99, - 24 AS col0
----
-99
-24

query I rowsort
SELECT ALL 81 * 82 * COALESCE ( 98, - 48 + + - 32 * - 25 ) AS col0
----
650916

query I rowsort
SELECT 14 - 25 + 79
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6144
SELECT 50 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-6144
SELECT 50 / + 99
----
0

query II rowsort
SELECT ALL 54 AS col1, + 64
----
54
64

query I rowsort
SELECT DISTINCT - 54 AS col1
----
-54

query I rowsort
SELECT ALL ( - 37 ) AS col2
----
-37

query II rowsort
SELECT - 40 AS col1, - 85
----
-40
-85

query I rowsort
SELECT 3 - + + 68 - 78 + 88
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-6150
SELECT ALL - 46 AS col0, + COUNT( ALL 38 )
----
-46
1

skipif mysql # not compatible
query II rowsort label-6150
SELECT ALL - 46 AS col0, + COUNT ( ALL 38 )
----
-46
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6151
SELECT DISTINCT + 85 * - 28 + + COALESCE ( + + 98, 35, - + 48 ) + + CAST( + 54 AS SIGNED ) - - ( + + 8 )
----
-2220

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT + 85 * - 28 + + COALESCE ( + + 98, 35, - + 48 ) + + CAST ( + 54 AS INTEGER ) - - ( + + 8 )
----
-2220

query I rowsort
SELECT + - 36 AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6153
SELECT DISTINCT 31 * 51 * + - 87 + ( COUNT( * ) ) DIV - - 49 + - 63 + 76
----
-137534

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT 31 * 51 * + - 87 + ( COUNT ( * ) ) / - - 49 + - 63 + 76
----
-137534

onlyif mysql # aggregate syntax: 
query II rowsort label-6154
SELECT COUNT( * ), COUNT( + - 48 ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-6154
SELECT COUNT ( * ), COUNT ( + - 48 ) AS col1
----
1
1

query II rowsort
SELECT + - 26 AS col2, 51
----
-26
51

query I rowsort
SELECT + - CASE + 74 WHEN 38 THEN - 87 + - 83 / - - 20 * + - ( - 76 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 50 * - 30 AS col0
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT + ( COUNT( * ) ) * + COUNT( * ) + + + 34
----
35

skipif mysql # not compatible
query I rowsort label-6158
SELECT + ( COUNT ( * ) ) * + COUNT ( * ) + + + 34
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6159
SELECT ALL - + 11 * + + COUNT( * ) + - 65 AS col2, + 77 AS col0
----
-76
77

skipif mysql # not compatible
query II rowsort label-6159
SELECT ALL - + 11 * + + COUNT ( * ) + - 65 AS col2, + 77 AS col0
----
-76
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6160
SELECT ALL + - 44 * + - CASE + - 64 WHEN + CAST( NULL AS DECIMAL ) * - - 29 THEN CASE + - COALESCE ( 63, - ( 69 ) * 39, - ( 5 ) / - COUNT( * ) + + - 53 * - 22 * COUNT( * ) ) WHEN 46 + - 60 + - 34 THEN + 78 WHEN 39 THEN - COUNT( * ) * + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) - - CASE + - 99 WHEN COUNT( * ) * + + 71 / - - COUNT( * ) * + - 69 * - ( - - 20 ) * + NULLIF ( - 89, + 77 ) + - - CASE WHEN - COUNT( * ) IS NOT NULL THEN NULL ELSE - - MAX( 12 ) END - 18 THEN + + AVG ( + 5 ) * + COALESCE ( 78 * - 81, 34, 29 ) WHEN 30 * - 54 THEN NULL END END WHEN CAST( NULL AS SIGNED ) THEN 86 END + - 16 * 29 + + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL + - 44 * + - CASE + - 64 WHEN + CAST ( NULL AS REAL ) * - - 29 THEN CASE + - COALESCE ( 63, - ( 69 ) * 39, - ( 5 ) / - COUNT ( * ) + + - 53 * - 22 * COUNT ( * ) ) WHEN 46 + - 60 + - 34 THEN + 78 WHEN 39 THEN - COUNT ( * ) * + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) - - CASE + - 99 WHEN COUNT ( * ) * + + 71 / - - COUNT ( * ) * + - 69 * - ( - - 20 ) * + NULLIF ( - 89, + 77 ) + - - CASE WHEN - COUNT ( * ) IS NOT NULL THEN NULL ELSE - - MAX ( 12 ) END - 18 THEN + + AVG ( + 5 ) * + COALESCE ( 78 * - 81, 34, 29 ) WHEN 30 * - 54 THEN NULL END END WHEN CAST ( NULL AS INTEGER ) THEN 86 END + - 16 * 29 + + 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL - CASE - MIN( + 33 ) WHEN 39 * 73 THEN - 40 END + - - 46 * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL - CASE - MIN ( + 33 ) WHEN 39 * 73 THEN - 40 END + - - 46 * 8
----
NULL

query I rowsort
SELECT + 1 - + + 6 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL - COUNT( * ) * - 94 * + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL - COUNT ( * ) * - 94 * + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6164
SELECT ALL 59 DIV + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL 59 / + + COUNT ( * )
----
59

query II rowsort
SELECT ALL + 84 * + + 67 AS col1, + 5 * + - 83 AS col0
----
5628
-415

query I rowsort
SELECT DISTINCT COALESCE ( - - 1, 32, 87 * - 30 * 6 ) col1
----
1

query I rowsort
SELECT DISTINCT + 3 * - 16 AS col1
----
-48

query I rowsort
SELECT ALL COALESCE ( 26, 82 ) AS col0
----
26

query I rowsort
SELECT - 23 - + - 87 AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT - 82 * 67 DIV + + 46 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-6170
SELECT - 82 * 67 / + + 46 AS col2
----
-119

query I rowsort
SELECT - 11 * 31
----
-341

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL COALESCE ( - - COUNT( * ), - 28 * + 50, 48 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL COALESCE ( - - COUNT ( * ), - 28 * + 50, 48 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT - 46 * + CASE 90 WHEN - 45 THEN - 89 END * SUM( ALL 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT - 46 * + CASE 90 WHEN - 45 THEN - 89 END * SUM ( ALL 89 )
----
NULL

query I rowsort
SELECT - 63 + - + 13 + - - 18 AS col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT + 69 - + 64 + 45 DIV + 14
----
8

skipif mysql # not compatible
query I rowsort label-6175
SELECT + 69 - + 64 + 45 / + 14
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6176
SELECT - 40 + + - 95 * - CAST( NULL AS DECIMAL ) / - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6176
SELECT - 40 + + - 95 * - CAST ( NULL AS REAL ) / - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT ALL SUM( - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL SUM ( - 14 )
----
-14

query I rowsort
SELECT ALL 10 * 46 AS col0
----
460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6179
SELECT - 16 + - + COUNT( DISTINCT + NULLIF ( - - ( + 59 ), - + 64 ) ) DIV 33 + 63 + + 18 + + + CAST( + + 7 AS SIGNED ) DIV COUNT( * ) DIV - CAST( 18 AS SIGNED ) - - - COUNT( * ) * - - 34
----
31

skipif mysql # not compatible
query I rowsort label-6179
SELECT - 16 + - + COUNT ( DISTINCT + NULLIF ( - - ( + 59 ), - + 64 ) ) / 33 + 63 + + 18 + + + CAST ( + + 7 AS INTEGER ) / COUNT ( * ) / - CAST ( 18 AS INTEGER ) - - - COUNT ( * ) * - - 34
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6180
SELECT ALL - - 17 + - MIN( - 60 ) - 49, + SUM( DISTINCT ( - 14 ) ) col2
----
28
-14

skipif mysql # not compatible
query II rowsort label-6180
SELECT ALL - - 17 + - MIN ( - 60 ) - 49, + SUM ( DISTINCT ( - 14 ) ) col2
----
28
-14

query I rowsort
SELECT ALL 41 + - + 94 AS col0
----
-53

query I rowsort
SELECT - 68 * - 62 AS col1
----
4216

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + COUNT( * ) + + 90 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6183
SELECT + COUNT ( * ) + + 90 AS col1
----
91

query I rowsort
SELECT + - 84 * 28 * 25 * - 63
----
3704400

query I rowsort
SELECT + + 15 * + 91 - + ( 82 ) + - 46 + + 11 * - 75
----
412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6186
SELECT DISTINCT + 95 * - CASE + AVG ( 79 ) WHEN 76 THEN 58 END * + + 38 + - 50 * - + 16 * 89 / COUNT( * ) + - 13, - 36 * - + MIN( ALL - 25 ) / + 70 + - - MAX( CAST( NULL AS SIGNED ) ) + + 3 * ( - 59 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6186
SELECT DISTINCT + 95 * - CASE + AVG ( 79 ) WHEN 76 THEN 58 END * + + 38 + - 50 * - + 16 * 89 / COUNT ( * ) + - 13, - 36 * - + MIN ( ALL - 25 ) / + 70 + - - MAX ( CAST ( NULL AS INTEGER ) ) + + 3 * ( - 59 )
----
NULL
NULL

query I rowsort
SELECT ALL + + 67 * + + 34 + - + 29 * + - 59 * + - 57 AS col1
----
-95249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6188
SELECT DISTINCT 12 * - + 2 - COUNT( * ) + + 25 DIV COALESCE ( 21, 72 DIV + ( + 24 ) + 70 + + 8 ) - - COUNT( * ) + + - 83 col1
----
-106

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT 12 * - + 2 - COUNT ( * ) + + 25 / COALESCE ( 21, 72 / + ( + 24 ) + 70 + + 8 ) - - COUNT ( * ) + + - 83 col1
----
-106

query I rowsort
SELECT + 76 col1
----
76

query I rowsort
SELECT + 60 * + + 26 AS col0
----
1560

query I rowsort
SELECT + 77 + + 65
----
142

query I rowsort
SELECT + CASE 89 WHEN - - 97 THEN + 34 END
----
NULL

query II rowsort
SELECT ALL + 35 AS col0, ( + 1 )
----
35
1

query I rowsort
SELECT ALL 92 * - 69 - 61 * - - 52 - + 81 + - 21 AS col1
----
-9622

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT + 30 * COUNT( * ) col2
----
30

skipif mysql # not compatible
query I rowsort label-6195
SELECT + 30 * COUNT ( * ) col2
----
30

query I rowsort
SELECT + 23 + ( 33 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6197
SELECT + 82 / - CASE + 39 WHEN - - 56 + - 38 * - NULLIF ( - + 38, - + 0 * + COUNT( * ) ) THEN - 27 + - + NULLIF ( COUNT( * ), + MIN( + + 51 ) ) + - CAST( NULL AS SIGNED ) END * - - 45 * + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT + 82 / - CASE + 39 WHEN - - 56 + - 38 * - NULLIF ( - + 38, - + 0 * + COUNT ( * ) ) THEN - 27 + - + NULLIF ( COUNT ( * ), + MIN ( + + 51 ) ) + - CAST ( NULL AS INTEGER ) END * - - 45 * + + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT - 0 + + 7 + 84 + - ( 49 ) + - 34 * + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-6198
SELECT - 0 + + 7 + 84 + - ( 49 ) + - 34 * + + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT COUNT( 39 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6199
SELECT COUNT ( 39 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT - 72 * - 75 * COUNT( * ) + 8 AS col0
----
5408

skipif mysql # not compatible
query I rowsort label-6200
SELECT - 72 * - 75 * COUNT ( * ) + 8 AS col0
----
5408

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT ALL SUM( DISTINCT - - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL SUM ( DISTINCT - - 90 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6202
SELECT + 46 DIV + - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6202
SELECT + 46 / + - 88 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6203
SELECT - 52 / + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT - 52 / + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT + 64 * - - ( - - 97 ) * COUNT( * ) AS col1
----
6208

skipif mysql # not compatible
query I rowsort label-6204
SELECT + 64 * - - ( - - 97 ) * COUNT ( * ) AS col1
----
6208

query I rowsort
SELECT - 69 + COALESCE ( - 33, - + 44 + + 27, + 88 )
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT ALL CASE 20 WHEN + + 41 THEN - SUM( DISTINCT + 67 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL CASE 20 WHEN + + 41 THEN - SUM ( DISTINCT + 67 ) END
----
NULL

query I rowsort
SELECT ALL + 81 + - - ( + 33 )
----
114

query I rowsort
SELECT DISTINCT - 27 * ( - + 71 ) AS col2
----
1917

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6210
SELECT - + 43, 0 + - + COUNT( * ) + + 62 DIV - 66 AS col0
----
-43
-1

skipif mysql # not compatible
query II rowsort label-6210
SELECT - + 43, 0 + - + COUNT ( * ) + + 62 / - 66 AS col0
----
-43
-1

query I rowsort
SELECT ALL + - ( - 7 ) + - 3
----
4

query I rowsort
SELECT - - ( ( - 35 ) ) AS col2
----
-35

query I rowsort
SELECT - - 5 * + 98 * - 34 col2
----
-16660

onlyif mysql # aggregate syntax: 
query II rowsort label-6214
SELECT ALL - ( 3 ) + 66 AS col1, 91 * - + SUM( + 97 ) * 83 * 52 AS col2
----
63
-38097332

skipif mysql # not compatible
query II rowsort label-6214
SELECT ALL - ( 3 ) + 66 AS col1, 91 * - + SUM ( + 97 ) * 83 * 52 AS col2
----
63
-38097332

query I rowsort
SELECT - - 94 - - - 76 * 69
----
-5150

onlyif mysql # aggregate syntax: 
query III rowsort label-6216
SELECT ALL - 7, 28 * - 42 AS col1, - COUNT( * ) + + 34 AS col1
----
-7
-1176
33

skipif mysql # not compatible
query III rowsort label-6216
SELECT ALL - 7, 28 * - 42 AS col1, - COUNT ( * ) + + 34 AS col1
----
-7
-1176
33

query I rowsort
SELECT - 88 * 26
----
-2288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6218
SELECT ALL - COUNT( * ) + + + 35 + - + NULLIF ( - CAST( 32 AS SIGNED ), - CASE - - 12 WHEN 61 THEN - + 51 WHEN + ( - 87 ) + - - 45 * - 88 THEN NULL END * - 54 - + 67 ) DIV + + 88
----
34

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL - COUNT ( * ) + + + 35 + - + NULLIF ( - CAST ( 32 AS INTEGER ), - CASE - - 12 WHEN 61 THEN - + 51 WHEN + ( - 87 ) + - - 45 * - 88 THEN NULL END * - 54 - + 67 ) / + + 88
----
34

query I rowsort
SELECT DISTINCT - - 64 + - 52 + - 8 * 84
----
-660

query I rowsort
SELECT ALL + - 2 + 45 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT - COALESCE ( - 97, + CASE + 20 WHEN + - 56 THEN NULL ELSE 3 + - MIN( DISTINCT + 76 ) END ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6221
SELECT - COALESCE ( - 97, + CASE + 20 WHEN + - 56 THEN NULL ELSE 3 + - MIN ( DISTINCT + 76 ) END ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6222
SELECT ALL - MAX( ALL - CAST( NULL AS DECIMAL ) ) / - - 31 AS col1, 86 * - 41 col2
----
NULL
-3526

skipif mysql # not compatible
query II rowsort label-6222
SELECT ALL - MAX ( ALL - CAST ( NULL AS REAL ) ) / - - 31 AS col1, 86 * - 41 col2
----
NULL
-3526

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT COUNT( * ) - + 83 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-6223
SELECT COUNT ( * ) - + 83 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT - MAX( DISTINCT + 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-6224
SELECT - MAX ( DISTINCT + 65 )
----
-65

query I rowsort
SELECT DISTINCT - 56 * - - 21
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT ALL + 98 - + CASE - 75 WHEN - COUNT( * ) * + + ( + 38 ) + - - MAX( ALL - 42 ) THEN - - 48 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL + 98 - + CASE - 75 WHEN - COUNT ( * ) * + + ( + 38 ) + - - MAX ( ALL - 42 ) THEN - - 48 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT + + SUM( ALL - - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-6227
SELECT + + SUM ( ALL - - 24 )
----
24

query I rowsort
SELECT NULLIF ( + 86, + 94 * 48 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6229
SELECT ALL + + 22 - + + CASE + 28 WHEN - COALESCE ( + 10, - 67, - 49 * + 45 + - 80 * + 0 / + - 43 ) THEN - COUNT( * ) END * + 8 AS col0, - COUNT( * ) * ( + 8 ) + + COUNT( * ) AS col1
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-6229
SELECT ALL + + 22 - + + CASE + 28 WHEN - COALESCE ( + 10, - 67, - 49 * + 45 + - 80 * + 0 / + - 43 ) THEN - COUNT ( * ) END * + 8 AS col0, - COUNT ( * ) * ( + 8 ) + + COUNT ( * ) AS col1
----
NULL
-7

query I rowsort
SELECT - 4 + 83 AS col1
----
79

query I rowsort
SELECT 4 * - 72
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6232
SELECT 41, COALESCE ( - - CAST( - + 6 AS SIGNED ), + + 11 ) + - 67 * 12 * + + 89 AS col1
----
41
-71562

skipif mysql # not compatible
query II rowsort label-6232
SELECT 41, COALESCE ( - - CAST ( - + 6 AS INTEGER ), + + 11 ) + - 67 * 12 * + + 89 AS col1
----
41
-71562

query I rowsort
SELECT - 6 * - + 98 * + 88 + - 68
----
51676

query I rowsort
SELECT ALL + 57 - + 35
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT DISTINCT - COUNT( * ) * - 12
----
12

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT - COUNT ( * ) * - 12
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6236
SELECT ALL NULLIF ( - - 7, + 28 + - 98 ) DIV ( 2 )
----
3

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL NULLIF ( - - 7, + 28 + - 98 ) / ( 2 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6237
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6238
SELECT DISTINCT - 86 AS col2, + 95 AS col1, - + MAX( ALL - 25 ) + - MIN( DISTINCT + 95 ) + + COUNT( * ) - - COALESCE ( ( COALESCE ( + 29, - 58 ) ), - - 94, 87 )
----
-86
95
-40

skipif mysql # not compatible
query III rowsort label-6238
SELECT DISTINCT - 86 AS col2, + 95 AS col1, - + MAX ( ALL - 25 ) + - MIN ( DISTINCT + 95 ) + + COUNT ( * ) - - COALESCE ( ( COALESCE ( + 29, - 58 ) ), - - 94, 87 )
----
-86
95
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT DISTINCT - ( - ( - COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT - ( - ( - COUNT ( * ) ) ) AS col0
----
-1

query II rowsort
SELECT 36 col2, - 49 col1
----
36
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT 37 + + - 60 * - 55 * 21 - 81 + 35 + + 46 * - 62 + - 66 + - 97 * + 19 * COUNT( * ) * + COUNT( * )
----
64530

skipif mysql # not compatible
query I rowsort label-6241
SELECT 37 + + - 60 * - 55 * 21 - 81 + 35 + + 46 * - 62 + - 66 + - 97 * + 19 * COUNT ( * ) * + COUNT ( * )
----
64530

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT 8 * - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6242
SELECT 8 * - COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT 44 * + 99 AS col1
----
4356

query I rowsort
SELECT 12 * 1 - + - 79 + - 43 col2
----
48

query II rowsort
SELECT 52 AS col1, ( - 46 )
----
52
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-6246
SELECT + 84 AS col0, MAX( ALL + + 0 )
----
84
0

skipif mysql # not compatible
query II rowsort label-6246
SELECT + 84 AS col0, MAX ( ALL + + 0 )
----
84
0

query II rowsort
SELECT + 87 AS col1, ( - 62 ) * 45
----
87
-2790

onlyif mysql # aggregate syntax: 
query II rowsort label-6248
SELECT ALL COUNT( * ) * - NULLIF ( + COUNT( * ), 33 ), COUNT( * ) col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-6248
SELECT ALL COUNT ( * ) * - NULLIF ( + COUNT ( * ), 33 ), COUNT ( * ) col2
----
-1
1

query I rowsort
SELECT 34 * 2 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT ALL 52 * + 40 * + - COUNT( * ) AS col0
----
-2080

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL 52 * + 40 * + - COUNT ( * ) AS col0
----
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT DISTINCT MIN( DISTINCT 15 ) * + - 22 AS col0
----
-330

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT MIN ( DISTINCT 15 ) * + - 22 AS col0
----
-330

query I rowsort
SELECT ALL 28 + + + 76 * - 1 AS col2
----
-48

query I rowsort
SELECT - 49 col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT 57 + - MAX( - 59 )
----
116

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT 57 + - MAX ( - 59 )
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6255
SELECT 33 + + + COUNT( - CAST( NULL AS SIGNED ) ) col2
----
33

skipif mysql # not compatible
query I rowsort label-6255
SELECT 33 + + + COUNT ( - CAST ( NULL AS INTEGER ) ) col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT + 92 - COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-6256
SELECT + 92 - COUNT ( * ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT ALL 62 + - + MIN( 52 )
----
10

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL 62 + - + MIN ( 52 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT - + MAX( + - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-6258
SELECT - + MAX ( + - 44 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT ( - 33 ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT ( - 33 ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6260
SELECT - CAST( NULL AS SIGNED ) + - - 68 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT - CAST ( NULL AS INTEGER ) + - - 68 col0
----
NULL

query I rowsort
SELECT ALL 89 + - 16 * + 84
----
-1255

query I rowsort
SELECT - 59 + - 13 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT - COUNT( * ) - - ( + - 31 )
----
-32

skipif mysql # not compatible
query I rowsort label-6263
SELECT - COUNT ( * ) - - ( + - 31 )
----
-32

query I rowsort
SELECT ALL + - 75 * 2 * + 73
----
-10950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6265
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6265
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 62 + ( 18 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6267
SELECT 11 * + + 51 DIV COUNT( * ) AS col0
----
561

skipif mysql # not compatible
query I rowsort label-6267
SELECT 11 * + + 51 / COUNT ( * ) AS col0
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT - MIN( DISTINCT 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-6268
SELECT - MIN ( DISTINCT 34 ) AS col0
----
-34

query I rowsort
SELECT DISTINCT - - 37 * + - 51
----
-1887

query I rowsort
SELECT DISTINCT 74 - + 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6271
SELECT - 38 AS col1, COALESCE ( + 27, 49, COUNT( * ) * + 59 ) AS col2
----
-38
27

skipif mysql # not compatible
query II rowsort label-6271
SELECT - 38 AS col1, COALESCE ( + 27, 49, COUNT ( * ) * + 59 ) AS col2
----
-38
27

query I rowsort
SELECT ( 99 ) + 9 * + - ( - + 95 ) AS col1
----
954

onlyif mysql # aggregate syntax: 
query II rowsort label-6273
SELECT ALL - + 70 - + 5 AS col1, COUNT( * ) AS col1
----
-75
1

skipif mysql # not compatible
query II rowsort label-6273
SELECT ALL - + 70 - + 5 AS col1, COUNT ( * ) AS col1
----
-75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT - MAX( DISTINCT + 65 ) * 89 AS col1
----
-5785

skipif mysql # not compatible
query I rowsort label-6274
SELECT - MAX ( DISTINCT + 65 ) * 89 AS col1
----
-5785

query I rowsort
SELECT - + 83 AS col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6276
SELECT ALL - AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL - AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - - ( + 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6278
SELECT + 89, - COUNT( * ) col0
----
89
-1

skipif mysql # not compatible
query II rowsort label-6278
SELECT + 89, - COUNT ( * ) col0
----
89
-1

query I rowsort
SELECT - 58 * + 19 - - - 43 AS col2
----
-1145

query I rowsort
SELECT 60 * + 61 + + + 11 * - + 68 AS col1
----
2912

query I rowsort
SELECT DISTINCT - - 76
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6282
SELECT 18 DIV 64 AS col0, + 40 + + COUNT( * ) + - 72, - 16 DIV + 47 + 73 + 67 + - 69 DIV + 58 AS col0
----
0
-31
139

skipif mysql # not compatible
query III rowsort label-6282
SELECT 18 / 64 AS col0, + 40 + + COUNT ( * ) + - 72, - 16 / + 47 + 73 + 67 + - 69 / + 58 AS col0
----
0
-31
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL + 16 * 30 * - ( - + COUNT( * ) ) AS col1
----
480

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + 16 * 30 * - ( - + COUNT ( * ) ) AS col1
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT ALL + NULLIF ( - 5, COUNT( * ) + + 18 ) * 28 + + 84
----
-56

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL + NULLIF ( - 5, COUNT ( * ) + + 18 ) * 28 + + 84
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6285
SELECT 8 DIV + COUNT( * ) AS col2, COUNT( * ) * 16 - + ( + - 77 ) col0
----
8
93

skipif mysql # not compatible
query II rowsort label-6285
SELECT 8 / + COUNT ( * ) AS col2, COUNT ( * ) * 16 - + ( + - 77 ) col0
----
8
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6286
SELECT COUNT( * ) DIV + - 35 * - COUNT( * ) * ( + 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6286
SELECT COUNT ( * ) / + - 35 * - COUNT ( * ) * ( + 95 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6287
SELECT 15 + - + 40 DIV - 52
----
15

skipif mysql # not compatible
query I rowsort label-6287
SELECT 15 + - + 40 / - 52
----
15

query II rowsort
SELECT DISTINCT + 8 * - 34, + ( - 29 ) AS col0
----
-272
-29

query I rowsort
SELECT 17 * - + 0 * + 16 * + - 60 + + COALESCE ( + 50, + 8, + + 28 * + 76 * + 6 * - + 85 + 18 ) * - 45 + + 98
----
-2152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6290
SELECT ALL + 26 * COALESCE ( - + 75, 60 * - 20 - 19 ) DIV COUNT( * ) AS col2
----
-1950

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL + 26 * COALESCE ( - + 75, 60 * - 20 - 19 ) / COUNT ( * ) AS col2
----
-1950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT 81 * + 56 * - - 56 * CAST( + 46 AS SIGNED ) + + 81
----
11684817

skipif mysql # not compatible
query I rowsort label-6291
SELECT 81 * + 56 * - - 56 * CAST ( + 46 AS INTEGER ) + + 81
----
11684817

query I rowsort
SELECT ALL 5 + 75
----
80

query I rowsort
SELECT ALL + 82 + + 91 AS col0
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT COUNT( ALL + 13 ) + + 78 * 27 * 81 AS col0
----
170587

skipif mysql # not compatible
query I rowsort label-6294
SELECT COUNT ( ALL + 13 ) + + 78 * 27 * 81 AS col0
----
170587

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6295
SELECT ALL + 18 + - - 37, - 39 + + COUNT( DISTINCT + 72 ) + - 46 DIV ( - + 29 ) * ( - - MIN( ALL + 51 ) ) * - 62 * + 8 - 38 AS col0
----
55
-25372

skipif mysql # not compatible
query II rowsort label-6295
SELECT ALL + 18 + - - 37, - 39 + + COUNT ( DISTINCT + 72 ) + - 46 / ( - + 29 ) * ( - - MIN ( ALL + 51 ) ) * - 62 * + 8 - 38 AS col0
----
55
-25372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6296
SELECT DISTINCT - COALESCE ( + CAST( - 66 AS SIGNED ), + CASE + 60 WHEN - - 85 THEN NULL ELSE 96 * - + 5 END, - - 6 * - COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT - COALESCE ( + CAST ( - 66 AS INTEGER ), + CASE + 60 WHEN - - 85 THEN NULL ELSE 96 * - + 5 END, - - 6 * - COUNT ( * ) )
----
66

query I rowsort
SELECT ALL + CASE 3 WHEN + 36 THEN + 51 WHEN 93 THEN + 55 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6298
SELECT ALL + 22 * 75, + COUNT( * ) AS col2
----
1650
1

skipif mysql # not compatible
query II rowsort label-6298
SELECT ALL + 22 * 75, + COUNT ( * ) AS col2
----
1650
1

query II rowsort
SELECT + 79 * - 11 AS col1, - 64
----
-869
-64

query I rowsort
SELECT + NULLIF ( + + 58, 30 + - + 53 ) AS col0
----
58

query I rowsort
SELECT DISTINCT + 89 * - + 9 AS col0
----
-801

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT - MIN( 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-6302
SELECT - MIN ( 53 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT ALL 76 - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL 76 - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT + 46 * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-6304
SELECT + 46 * - COUNT ( * )
----
-46

query I rowsort
SELECT - 33 * 14
----
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6306
SELECT + - CAST( NULL AS SIGNED ) - - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT + - CAST ( NULL AS INTEGER ) - - - 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6307
SELECT + - CAST( NULL AS SIGNED ) * - 48 + - 36 col1, COUNT( * ) * - - 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-6307
SELECT + - CAST ( NULL AS INTEGER ) * - 48 + - 36 col1, COUNT ( * ) * - - 76 AS col0
----
NULL
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT ALL + 46 DIV - + 96 - - + 79
----
79

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL + 46 / - + 96 - - + 79
----
79

query I rowsort
SELECT - 83 - 28 AS col2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL MIN( - 58 ) * - 61 * + + 75 * + 68
----
18043800

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL MIN ( - 58 ) * - 61 * + + 75 * + 68
----
18043800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6311
SELECT + ( - + COUNT( * ) ) * - + 42 AS col1, - CAST( 34 AS SIGNED )
----
42
-34

skipif mysql # not compatible
query II rowsort label-6311
SELECT + ( - + COUNT ( * ) ) * - + 42 AS col1, - CAST ( 34 AS INTEGER )
----
42
-34

query I rowsort
SELECT - 1 * - 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT 30 * + 14 - + - COUNT( * ) + - 85
----
336

skipif mysql # not compatible
query I rowsort label-6313
SELECT 30 * + 14 - + - COUNT ( * ) + - 85
----
336

query I rowsort
SELECT + NULLIF ( + - 99, + ( + + 6 ) ) AS col1
----
-99

query I rowsort
SELECT NULLIF ( 38, - 55 )
----
38

query II rowsort
SELECT + 71 AS col1, + 0
----
71
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT 31 * - + 43 + - - 29 + 2 + + + 18 * + + COUNT( * )
----
-1284

skipif mysql # not compatible
query I rowsort label-6317
SELECT 31 * - + 43 + - - 29 + 2 + + + 18 * + + COUNT ( * )
----
-1284

query I rowsort
SELECT ALL - 97 * 97 + - 58
----
-9467

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT DISTINCT + NULLIF ( COUNT( * ), + 52 ) * ( 32 ) + + 85
----
117

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT + NULLIF ( COUNT ( * ), + 52 ) * ( 32 ) + + 85
----
117

query I rowsort
SELECT DISTINCT + 77 * - 70
----
-5390

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT ALL 28 * - + COUNT( * ) * 84 * - + 45 + 22
----
105862

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL 28 * - + COUNT ( * ) * 84 * - + 45 + 22
----
105862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6322
SELECT - ( + - CAST( 27 AS SIGNED ) ) * + 22 AS col2
----
594

skipif mysql # not compatible
query I rowsort label-6322
SELECT - ( + - CAST ( 27 AS INTEGER ) ) * + 22 AS col2
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT COALESCE ( + + 70, + + 50 - + COUNT( * ) * - COUNT( * ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6323
SELECT COALESCE ( + + 70, + + 50 - + COUNT ( * ) * - COUNT ( * ) ) AS col1
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-6324
SELECT + 48, 82 DIV + 95 AS col1
----
48
0

skipif mysql # not compatible
query II rowsort label-6324
SELECT + 48, 82 / + 95 AS col1
----
48
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6325
SELECT ALL + COUNT( * ) AS col2, - 58 * - - 67 * - COALESCE ( - 68, 40 * - CAST( - 84 AS SIGNED ) * + 61 * 47 * 39 * + 2 )
----
1
-264248

skipif mysql # not compatible
query II rowsort label-6325
SELECT ALL + COUNT ( * ) AS col2, - 58 * - - 67 * - COALESCE ( - 68, 40 * - CAST ( - 84 AS INTEGER ) * + 61 * 47 * 39 * + 2 )
----
1
-264248

query I rowsort
SELECT - ( + + 1 ) * - 20 + 6 - + 93 AS col1
----
-67

query I rowsort
SELECT - 33 * NULLIF ( - 53, + - 79 / - 16 ) AS col1
----
1749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6328
SELECT ALL - 60 * - CASE - CASE + + 69 WHEN + MIN( - NULLIF ( + 95, + 79 ) ) / + ( 65 ) + - CAST( NULL AS SIGNED ) THEN NULL ELSE + 55 - - 62 + + 11 + 96 * - + CAST( NULL AS SIGNED ) END WHEN + 27 THEN - NULLIF ( - 67, 23 ) WHEN - + 99 * + - COUNT( * ) * - MIN( DISTINCT + 70 ) + - + 63 + - ( + - 42 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL - 60 * - CASE - CASE + + 69 WHEN + MIN ( - NULLIF ( + 95, + 79 ) ) / + ( 65 ) + - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 55 - - 62 + + 11 + 96 * - + CAST ( NULL AS INTEGER ) END WHEN + 27 THEN - NULLIF ( - 67, 23 ) WHEN - + 99 * + - COUNT ( * ) * - MIN ( DISTINCT + 70 ) + - + 63 + - ( + - 42 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 51 + + 10
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT DISTINCT + - COUNT( DISTINCT + - 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT + - COUNT ( DISTINCT + - 80 )
----
-1

query I rowsort
SELECT DISTINCT - - 41 * - COALESCE ( - - 16, 42 )
----
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL 70 * + - SUM( DISTINCT + + 30 ) + 52 + + - 6 * ( + 42 ) - + + COALESCE ( - 18, - 51 )
----
-2282

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL 70 * + - SUM ( DISTINCT + + 30 ) + 52 + + - 6 * ( + 42 ) - + + COALESCE ( - 18, - 51 )
----
-2282

onlyif mysql # aggregate syntax: 
query II rowsort label-6333
SELECT ALL - 20 AS col0, COUNT( * ) * + 38
----
-20
38

skipif mysql # not compatible
query II rowsort label-6333
SELECT ALL - 20 AS col0, COUNT ( * ) * + 38
----
-20
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6334
SELECT - - COUNT( DISTINCT + 66 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT - - COUNT ( DISTINCT + 66 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 28 * - - 27 - - 67 AS col1
----
823

onlyif mysql # DIV for integer division: 
query I rowsort label-6336
SELECT DISTINCT - 29 DIV + + 74
----
0

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT - 29 / + + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT ALL + SUM( + 94 ) - - + NULLIF ( - + 29, - 88 / 23 ) + + + ( - 96 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL + SUM ( + 94 ) - - + NULLIF ( - + 29, - 88 / 23 ) + + + ( - 96 ) AS col1
----
-31

query I rowsort
SELECT + ( 18 ) + - + 40 col2
----
-22

query I rowsort
SELECT - 34 * ( + 4 ) * - 21 AS col0
----
2856

query I rowsort
SELECT - + 5 + + 81 * - 53 + + 66 AS col0
----
-4232

query I rowsort
SELECT + + 99 * + + 7 AS col1
----
693

query I rowsort
SELECT ALL ( - + 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT - - COUNT( * ) + - 45 + - 74 - - 41 + 95
----
18

skipif mysql # not compatible
query I rowsort label-6343
SELECT - - COUNT ( * ) + - 45 + - 74 - - 41 + 95
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT NULLIF ( + - 25, - AVG ( DISTINCT + - 86 ) * COUNT( * ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT NULLIF ( + - 25, - AVG ( DISTINCT + - 86 ) * COUNT ( * ) ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT + + 55 + NULLIF ( + - ( ( + 35 ) ), - 97 * COUNT( * ) + + COUNT( * ) ) + 65
----
85

skipif mysql # not compatible
query I rowsort label-6345
SELECT + + 55 + NULLIF ( + - ( ( + 35 ) ), - 97 * COUNT ( * ) + + COUNT ( * ) ) + 65
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6346
SELECT ALL CAST( NULL AS SIGNED ) * - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL CAST ( NULL AS INTEGER ) * - 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6347
SELECT + MAX( DISTINCT - + 46 ) DIV 94 * 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6347
SELECT + MAX ( DISTINCT - + 46 ) / 94 * 12 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT + 17 * - COUNT( ALL - 93 ) * - CASE - 79 WHEN + 32 * + 33 + 85 + - + 74 - 8 + - 41 * 11 THEN - COUNT( * ) + - ( + - 71 ) END + - - MIN( DISTINCT - 22 ) + - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT + 17 * - COUNT ( ALL - 93 ) * - CASE - 79 WHEN + 32 * + 33 + 85 + - + 74 - 8 + - 41 * 11 THEN - COUNT ( * ) + - ( + - 71 ) END + - - MIN ( DISTINCT - 22 ) + - - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ALL SUM( - - 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL SUM ( - - 67 ) AS col0
----
67

query I rowsort
SELECT ALL ( + 18 ) + + 14 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT + NULLIF ( COUNT( * ), + + 22 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6351
SELECT + NULLIF ( COUNT ( * ), + + 22 ) AS col2
----
1

query I rowsort
SELECT + 1 * + + ( + - 12 ) AS col2
----
-12

query I rowsort
SELECT ALL 42 + - 18 * + 93
----
-1632

query I rowsort
SELECT 53 * 40 + + + 21 * + 9 AS col1
----
2309

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6355
SELECT + ( + - 43 ), 28 DIV + + NULLIF ( + - 93, 69 + - COUNT( * ) ) col0
----
-43
0

skipif mysql # not compatible
query II rowsort label-6355
SELECT + ( + - 43 ), 28 / + + NULLIF ( + - 93, 69 + - COUNT ( * ) ) col0
----
-43
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6356
SELECT - COUNT( * ) DIV + 47 + + COUNT( 34 )
----
1

skipif mysql # not compatible
query I rowsort label-6356
SELECT - COUNT ( * ) / + 47 + + COUNT ( 34 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6357
SELECT ALL - 3 / 48 + - 17 + + + COUNT( * ) + + 43 * + 54 / - + CASE - 4 WHEN + + NULLIF ( + - 40, - - 63 ) * - 72 + + COUNT( * ) + - - CAST( - - 4 AS SIGNED ) * ( 82 ) * + 55 THEN 63 END + - SUM( ALL - 30 ) * + 94 + + + ( 97 ), + CAST( + AVG ( ALL + 24 ) AS SIGNED ) AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-6357
SELECT ALL - 3 / 48 + - 17 + + + COUNT ( * ) + + 43 * + 54 / - + CASE - 4 WHEN + + NULLIF ( + - 40, - - 63 ) * - 72 + + COUNT ( * ) + - - CAST ( - - 4 AS INTEGER ) * ( 82 ) * + 55 THEN 63 END + - SUM ( ALL - 30 ) * + 94 + + + ( 97 ), + CAST ( + AVG ( ALL + 24 ) AS INTEGER ) AS col2
----
NULL
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT CAST( 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-6358
SELECT CAST ( 10 AS INTEGER )
----
10

query I rowsort
SELECT ALL + 91 * - 55 AS col1
----
-5005

onlyif mysql # aggregate syntax: 
query II rowsort label-6360
SELECT + COALESCE ( + NULLIF ( - 98, + 64 ), - COUNT( * ) ) + - - 39 - - ( + 42 ) * + 66 AS col0, - 50 + + COUNT( * ) - ( 27 ) - 4 * - - 61 - - 61 * 8 - - - 31 * + SUM( - 48 ) AS col0
----
2713
1656

skipif mysql # not compatible
query II rowsort label-6360
SELECT + COALESCE ( + NULLIF ( - 98, + 64 ), - COUNT ( * ) ) + - - 39 - - ( + 42 ) * + 66 AS col0, - 50 + + COUNT ( * ) - ( 27 ) - 4 * - - 61 - - 61 * 8 - - - 31 * + SUM ( - 48 ) AS col0
----
2713
1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6361
SELECT DISTINCT - 37 DIV - 19 + - + 11 + 44 * - COUNT( * ) + 25 + + COUNT( * ) DIV 39 col2
----
-29

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT - 37 / - 19 + - + 11 + 44 * - COUNT ( * ) + 25 + + COUNT ( * ) / 39 col2
----
-29

query II rowsort
SELECT ( - 52 ) * 71 + - + 86 AS col2, - 54
----
-3778
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT - ( - + 79 ) * - + 25 * - - COUNT( * ) + + + 50 + - 17 col0
----
-1942

skipif mysql # not compatible
query I rowsort label-6363
SELECT - ( - + 79 ) * - + 25 * - - COUNT ( * ) + + + 50 + - 17 col0
----
-1942

query I rowsort
SELECT ALL 69 * + 29 AS col0
----
2001

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT + CASE 39 WHEN - 96 THEN + 28 - - + 5 * - - COUNT( * ) ELSE 98 END + + - 44 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6365
SELECT + CASE 39 WHEN - 96 THEN + 28 - - + 5 * - - COUNT ( * ) ELSE 98 END + + - 44 AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6366
SELECT ( + 41 ), + COUNT( * ) * + ( - 95 ) AS col1
----
41
-95

skipif mysql # not compatible
query II rowsort label-6366
SELECT ( + 41 ), + COUNT ( * ) * + ( - 95 ) AS col1
----
41
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT 37 DIV - ( + + 59 ) * + 49 + 68 - - 26 DIV - + 64 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6367
SELECT 37 / - ( + + 59 ) * + 49 + 68 - - 26 / - + 64 AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT DISTINCT - 33 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT - 33 / + 45
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT + 48 + ( + COALESCE ( 75, - + 16 DIV + ( + 88 ) * + 94 ) )
----
123

skipif mysql # not compatible
query I rowsort label-6369
SELECT + 48 + ( + COALESCE ( 75, - + 16 / + ( + 88 ) * + 94 ) )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT + 61 + COUNT( * ) + + 56 + 5 * - - NULLIF ( + 84, 57 + 14 * + ( 4 ) ) AS col2
----
538

skipif mysql # not compatible
query I rowsort label-6370
SELECT + 61 + COUNT ( * ) + + 56 + 5 * - - NULLIF ( + 84, 57 + 14 * + ( 4 ) ) AS col2
----
538

query I rowsort
SELECT + + NULLIF ( - + CASE WHEN 39 IS NOT NULL THEN + 14 END, - 69 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6372
SELECT + 88 * CASE + - 42 WHEN + COUNT( * ) THEN NULL ELSE + - 99 * - COUNT( + - 84 ) - + CAST( - - 51 AS SIGNED ) END
----
4224

skipif mysql # not compatible
query I rowsort label-6372
SELECT + 88 * CASE + - 42 WHEN + COUNT ( * ) THEN NULL ELSE + - 99 * - COUNT ( + - 84 ) - + CAST ( - - 51 AS INTEGER ) END
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT DISTINCT COALESCE ( - 34, + COUNT( * ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT COALESCE ( - 34, + COUNT ( * ) ) AS col2
----
-34

query I rowsort
SELECT 27 * - 9 - COALESCE ( 1, + 50 )
----
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL + - 75 + - NULLIF ( - 4, + - 35 ) + + MIN( 71 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + - 75 + - NULLIF ( - 4, + - 35 ) + + MIN ( 71 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6376
SELECT 4 * - - COUNT( * ) - - CAST( NULL AS SIGNED ) * - + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT 4 * - - COUNT ( * ) - - CAST ( NULL AS INTEGER ) * - + 34 AS col1
----
NULL

query II rowsort
SELECT - + ( + 83 ) AS col1, + 32
----
-83
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT NULLIF ( - 19, + CAST( NULL AS SIGNED ) - + + 61 ) * - + 37 * + 16 * COALESCE ( - 29, - 54 * - - 27 )
----
-326192

skipif mysql # not compatible
query I rowsort label-6378
SELECT NULLIF ( - 19, + CAST ( NULL AS INTEGER ) - + + 61 ) * - + 37 * + 16 * COALESCE ( - 29, - 54 * - - 27 )
----
-326192

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL + COUNT( ALL ( - 29 ) ) + - COALESCE ( 23, + - 89 + 17, - 42 )
----
-22

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL + COUNT ( ALL ( - 29 ) ) + - COALESCE ( 23, + - 89 + 17, - 42 )
----
-22

query I rowsort
SELECT 18 - 96 + 58 - + - 57
----
37

query I rowsort
SELECT 27 - 20
----
7

query I rowsort
SELECT ALL + 67 + + 42
----
109

query I rowsort
SELECT DISTINCT 70 * - 60 col1
----
-4200

query I rowsort
SELECT 53 * - 73
----
-3869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6385
SELECT - 52 DIV + + 52 + + + SUM( DISTINCT 1 )
----
0

skipif mysql # not compatible
query I rowsort label-6385
SELECT - 52 / + + 52 + + + SUM ( DISTINCT 1 )
----
0

query II rowsort
SELECT DISTINCT - 4 AS col1, 1
----
-4
1

query I rowsort
SELECT 43 * - - 72
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT SUM( ALL - COALESCE ( 16, + 94, + + 94 + - - 30 ) ) * + MAX( 66 ) * + CASE + 67 WHEN - ( + 36 ) - + - NULLIF ( - 99, - COUNT( * ) + + - AVG ( ALL 30 ) ) + + COALESCE ( + + 67, - + 82, 93 ) + - 72 * - - 67 * - 16 + 4 + - + 52 * - - 69 + - 36 + ( - + 81 ) THEN - + MAX( ALL - COALESCE ( 31, 6, 34 ) ) + - + SUM( ALL - - 59 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6388
SELECT SUM ( ALL - COALESCE ( 16, + 94, + + 94 + - - 30 ) ) * + MAX ( 66 ) * + CASE + 67 WHEN - ( + 36 ) - + - NULLIF ( - 99, - COUNT ( * ) + + - AVG ( ALL 30 ) ) + + COALESCE ( + + 67, - + 82, 93 ) + - 72 * - - 67 * - 16 + 4 + - + 52 * - - 69 + - 36 + ( - + 81 ) THEN - + MAX ( ALL - COALESCE ( 31, 6, 34 ) ) + - + SUM ( ALL - - 59 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT 5 * 80 + + 66 * + 45 * + MIN( + - 15 ) + - 61
----
-44211

skipif mysql # not compatible
query I rowsort label-6389
SELECT 5 * 80 + + 66 * + 45 * + MIN ( + - 15 ) + - 61
----
-44211

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT ALL 22 DIV - 15
----
-1

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL 22 / - 15
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6391
SELECT MAX( ALL - ( ( + 36 ) ) ) * + 65 + - 52 DIV - + 67 AS col0
----
-2340

skipif mysql # not compatible
query I rowsort label-6391
SELECT MAX ( ALL - ( ( + 36 ) ) ) * + 65 + - 52 / - + 67 AS col0
----
-2340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6392
SELECT DISTINCT 57 * + 71 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT 57 * + 71 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 16 * + 21
----
336

query I rowsort
SELECT ALL 86 * 91
----
7826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6395
SELECT 97 + + CASE - 16 WHEN - COALESCE ( COUNT( * ), - COUNT( * ) + CAST( + ( - COUNT( * ) ) AS SIGNED ) ) + - 2 THEN + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6395
SELECT 97 + + CASE - 16 WHEN - COALESCE ( COUNT ( * ), - COUNT ( * ) + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) ) + - 2 THEN + 49 END
----
NULL

query I rowsort
SELECT 68 * - ( 27 ) AS col2
----
-1836

query I rowsort
SELECT ALL 80 * - 29
----
-2320

query I rowsort
SELECT 74 - 98
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6399
SELECT + COUNT( * ) * + 15 + COALESCE ( COALESCE ( + NULLIF ( COUNT( * ), 53 + - 18 * 27 ), SUM( DISTINCT 16 ) + 97 * CAST( - CASE 98 WHEN - AVG ( DISTINCT - 90 ) * 2 THEN NULL WHEN - 7 THEN CAST( - 9 AS SIGNED ) END + COUNT( ALL 2 - 54 ) * - CASE 87 * MIN( DISTINCT 71 ) WHEN 64 DIV 31 THEN NULL WHEN COUNT( * ) THEN NULL WHEN 18 THEN NULL ELSE - 17 END AS SIGNED ) ) + 0, - COALESCE ( 33, - 74 DIV - 87 ) + 70 )
----
16

skipif mysql # not compatible
query I rowsort label-6399
SELECT + COUNT ( * ) * + 15 + COALESCE ( COALESCE ( + NULLIF ( COUNT ( * ), 53 + - 18 * 27 ), SUM ( DISTINCT 16 ) + 97 * CAST ( - CASE 98 WHEN - AVG ( DISTINCT - 90 ) * 2 THEN NULL WHEN - 7 THEN CAST ( - 9 AS INTEGER ) END + COUNT ( ALL 2 - 54 ) * - CASE 87 * MIN ( DISTINCT 71 ) WHEN 64 / 31 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN 18 THEN NULL ELSE - 17 END AS INTEGER ) ) + 0, - COALESCE ( 33, - 74 / - 87 ) + 70 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT 93 + 27 * MAX( - 81 )
----
-2094

skipif mysql # not compatible
query I rowsort label-6400
SELECT 93 + 27 * MAX ( - 81 )
----
-2094

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT DISTINCT - COALESCE ( 4, 22 + 3 * + COUNT( * ) ) + ( 17 )
----
13

skipif mysql # not compatible
query I rowsort label-6401
SELECT DISTINCT - COALESCE ( 4, 22 + 3 * + COUNT ( * ) ) + ( 17 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT COUNT( * ) * + 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6402
SELECT COUNT ( * ) * + 96 AS col0
----
96

query I rowsort
SELECT ALL - 98 + + 4 col1
----
-94

query I rowsort
SELECT 18 - - 22
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ( 48 ) + + COUNT( * ) * - ( 39 )
----
9

skipif mysql # not compatible
query I rowsort label-6405
SELECT ( 48 ) + + COUNT ( * ) * - ( 39 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6406
SELECT - CAST( 99 AS SIGNED ) * + COALESCE ( - 11 + - 68, - SUM( DISTINCT - 79 ) - 74, MAX( DISTINCT - CAST( + 7 AS SIGNED ) ) DIV + 17 ) - 35
----
7786

skipif mysql # not compatible
query I rowsort label-6406
SELECT - CAST ( 99 AS INTEGER ) * + COALESCE ( - 11 + - 68, - SUM ( DISTINCT - 79 ) - 74, MAX ( DISTINCT - CAST ( + 7 AS INTEGER ) ) / + 17 ) - 35
----
7786

query I rowsort
SELECT 38 + - 72 AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6408
SELECT ALL - CASE 46 WHEN NULLIF ( - 50, - 36 ) + 21 THEN NULL ELSE + 32 * - 32 END + - COALESCE ( COUNT( * ), 5 * SUM( 70 ) + + 49 / CAST( NULL AS SIGNED ) ) / CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - CASE 46 WHEN NULLIF ( - 50, - 36 ) + 21 THEN NULL ELSE + 32 * - 32 END + - COALESCE ( COUNT ( * ), 5 * SUM ( 70 ) + + 49 / CAST ( NULL AS INTEGER ) ) / CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT COALESCE ( - 91, 24 - 1 ) * 59
----
-5369

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT ALL - COUNT( * ) + ( - 58 )
----
-59

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL - COUNT ( * ) + ( - 58 )
----
-59

query I rowsort
SELECT DISTINCT 71 + 82 * + 40 AS col1
----
3351

query I rowsort
SELECT 37 + 69
----
106

query I rowsort
SELECT ALL - 36 + - 39
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT DISTINCT + CASE + 97 WHEN + ( 48 ) THEN + 32 WHEN + 48 + 38 THEN + CAST( NULL AS SIGNED ) END * + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT + CASE + 97 WHEN + ( 48 ) THEN + 32 WHEN + 48 + 38 THEN + CAST ( NULL AS INTEGER ) END * + 65 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6415
SELECT ALL + 36 - + 41 DIV 86 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + 36 - + 41 / 86 AS col1
----
36

query I rowsort
SELECT 53 * + 21 AS col0
----
1113

query I rowsort
SELECT 62 + + 71 AS col0
----
133

query I rowsort
SELECT ALL + 36 - + ( - ( 87 ) - 49 * 0 ) col1
----
123

query I rowsort
SELECT 52 * 77
----
4004

query I rowsort
SELECT 88 * 89 AS col2
----
7832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6421
SELECT ALL NULLIF ( ( + CAST( NULL AS SIGNED ) ), 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL NULLIF ( ( + CAST ( NULL AS INTEGER ) ), 27 )
----
NULL

query I rowsort
SELECT 59 + - ( - 15 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6423
SELECT + 72 DIV - 68 + + 72 col0
----
71

skipif mysql # not compatible
query I rowsort label-6423
SELECT + 72 / - 68 + + 72 col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT - COUNT( * ) * 70
----
-70

skipif mysql # not compatible
query I rowsort label-6424
SELECT - COUNT ( * ) * 70
----
-70

query I rowsort
SELECT ALL 16 * 57
----
912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT DISTINCT + 47 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT + 47 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 74 * + 7 AS col0
----
-518

query I rowsort
SELECT - - ( 11 ) * - 11 + ( ( 33 ) + + 22 ) AS col1
----
-66

query I rowsort
SELECT - - 92 + + 19 * - 89 AS col0
----
-1599

query I rowsort
SELECT DISTINCT + + 35 AS col2
----
35

query I rowsort
SELECT ALL - 36 * 36 + - 11 AS col2
----
-1307

query I rowsort
SELECT + + 17 * + 44
----
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT ALL 79 * CAST( - 61 AS SIGNED ) + + 31
----
-4788

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL 79 * CAST ( - 61 AS INTEGER ) + + 31
----
-4788

query I rowsort
SELECT DISTINCT + + COALESCE ( - 13, 96 ) * 71 + ( ( + 89 ) ) AS col0
----
-834

query I rowsort
SELECT DISTINCT + - ( - 51 ) AS col2
----
51

query I rowsort
SELECT + 46 + 14 * - 32
----
-402

query I rowsort
SELECT + + 10 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT ALL + MAX( ALL + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL + MAX ( ALL + 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6439
SELECT - COUNT( 30 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT - COUNT ( 30 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 59 + + 95 AS col1
----
154

query I rowsort
SELECT ALL 43 + 5
----
48

query I rowsort
SELECT + + 16 * 73
----
1168

query I rowsort
SELECT - - ( 2 )
----
2

query I rowsort
SELECT DISTINCT 4 * + 43
----
172

query I rowsort
SELECT ALL - 35 - 55 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL + COUNT( ALL 10 )
----
1

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL + COUNT ( ALL 10 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6447
SELECT ALL + 67 - - 7 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL + 67 - - 7 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 18 * - 83 AS col0
----
-1494

query I rowsort
SELECT ALL - 4 - 60
----
-64

query I rowsort
SELECT DISTINCT + 49 * + + 11 AS col2
----
539

query I rowsort
SELECT ALL NULLIF ( 88, + 8 ) AS col0
----
88

query I rowsort
SELECT + 65 + + 13 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT + 82 * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-6453
SELECT + 82 * - COUNT ( * )
----
-82

query I rowsort
SELECT - ( + - ( + 90 ) ) col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT + COUNT( * ) - 82
----
-81

skipif mysql # not compatible
query I rowsort label-6455
SELECT + COUNT ( * ) - 82
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6456
SELECT - ( 73 ) DIV 54
----
-1

skipif mysql # not compatible
query I rowsort label-6456
SELECT - ( 73 ) / 54
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL + 32 * + NULLIF ( COUNT( * ), 52 )
----
32

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL + 32 * + NULLIF ( COUNT ( * ), 52 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT DISTINCT CAST( 94 AS SIGNED ) * 40
----
3760

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT CAST ( 94 AS INTEGER ) * 40
----
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - ( + - 56 ) + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-6459
SELECT - ( + - 56 ) + COUNT ( * )
----
57

query I rowsort
SELECT ALL ( + + 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6461
SELECT - ( + 90 ) DIV CASE - ( 98 ) DIV - 98 WHEN 17 DIV 49 THEN 70 + - 36 * 8 ELSE 90 + COUNT( * ) END col2
----
0

skipif mysql # not compatible
query I rowsort label-6461
SELECT - ( + 90 ) / CASE - ( 98 ) / - 98 WHEN 17 / 49 THEN 70 + - 36 * 8 ELSE 90 + COUNT ( * ) END col2
----
0

query I rowsort
SELECT ALL 10 * + 27 * 84 AS col2
----
22680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6463
SELECT ALL ( + CAST( 90 AS SIGNED ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL ( + CAST ( 90 AS INTEGER ) ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT DISTINCT CASE - COALESCE ( - COUNT( * ), 15 ) WHEN + 45 THEN - 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT CASE - COALESCE ( - COUNT ( * ), 15 ) WHEN + 45 THEN - 8 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6465
SELECT + COUNT( * ) DIV + - 57 * + 10 + 12 col0
----
12

skipif mysql # not compatible
query I rowsort label-6465
SELECT + COUNT ( * ) / + - 57 * + 10 + 12 col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6466
SELECT - 74 DIV 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6466
SELECT - 74 / 39 AS col2
----
-1

query I rowsort
SELECT + + ( + 76 ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6468
SELECT + + CAST( COUNT( * ) AS SIGNED ) * - 67 + MIN( ALL 33 + + 57 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6468
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) * - 67 + MIN ( ALL 33 + + 57 ) AS col1
----
23

query I rowsort
SELECT - + 72 * - 2
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT ALL - 3 DIV - - 16 - 64 + 96
----
32

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL - 3 / - - 16 - 64 + 96
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6471
SELECT - ( 15 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT - ( 15 ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 44 * + 34 AS col0
----
1496

query I rowsort
SELECT ALL + 74 * + + 40 + + 71 AS col1
----
3031

query I rowsort
SELECT - 56 * + 35 + 46 + - 39 AS col0
----
-1953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6475
SELECT - - COUNT( * ) * + ( 4 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6475
SELECT - - COUNT ( * ) * + ( 4 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT + MIN( DISTINCT + + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-6476
SELECT + MIN ( DISTINCT + + 93 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT - + 70 + + - 36 DIV + 70
----
-70

skipif mysql # not compatible
query I rowsort label-6477
SELECT - + 70 + + - 36 / + 70
----
-70

query I rowsort
SELECT ALL - + 61 * + 49 * ( 40 ) - 38
----
-119598

query I rowsort
SELECT ALL + ( - 3 ) * COALESCE ( 42, - 21 ) - 73 * - 75
----
5349

query I rowsort
SELECT + 46 * + + 83 * 87 AS col1
----
332166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6481
SELECT DISTINCT - + 60 DIV - + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT - + 60 / - + COUNT ( * )
----
60

query I rowsort
SELECT - 65 + + - 43 AS col2
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6483
SELECT - 83 DIV ( COALESCE ( COUNT( * ), + 99 * COUNT( * ) ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-6483
SELECT - 83 / ( COALESCE ( COUNT ( * ), + 99 * COUNT ( * ) ) ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT - CASE - - 30 WHEN COUNT( * ) + - 48 THEN NULL WHEN 44 - - CASE - COUNT( 28 ) WHEN 53 THEN - COUNT( * ) + MAX( DISTINCT 25 + - 90 ) ELSE - COUNT( * ) END THEN NULLIF ( CASE WHEN COUNT( * ) = ( + 87 - 8 * + 84 ) THEN - 57 END, 7 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT - CASE - - 30 WHEN COUNT ( * ) + - 48 THEN NULL WHEN 44 - - CASE - COUNT ( 28 ) WHEN 53 THEN - COUNT ( * ) + MAX ( DISTINCT 25 + - 90 ) ELSE - COUNT ( * ) END THEN NULLIF ( CASE WHEN COUNT ( * ) = ( + 87 - 8 * + 84 ) THEN - 57 END, 7 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT + NULLIF ( + 59, MIN( DISTINCT 30 ) ) + - NULLIF ( - CASE SUM( 99 ) WHEN 23 + - ( + 24 + - 79 ) THEN COUNT( * ) WHEN NULLIF ( ( 73 ), 33 ) THEN 68 / - 1 END, - 59 * - ( + 25 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT + NULLIF ( + 59, MIN ( DISTINCT 30 ) ) + - NULLIF ( - CASE SUM ( 99 ) WHEN 23 + - ( + 24 + - 79 ) THEN COUNT ( * ) WHEN NULLIF ( ( 73 ), 33 ) THEN 68 / - 1 END, - 59 * - ( + 25 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT + MAX( ALL - 16 ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT + MAX ( ALL - 16 ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + CASE - 7 WHEN + - 38 THEN + 0 * 78 WHEN + CASE - 9 WHEN 77 THEN NULL ELSE MIN( - 52 ) + + 22 END THEN 85 WHEN + 49 THEN - AVG ( - 69 ) END * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT + CASE - 7 WHEN + - 38 THEN + 0 * 78 WHEN + CASE - 9 WHEN 77 THEN NULL ELSE MIN ( - 52 ) + + 22 END THEN 85 WHEN + 49 THEN - AVG ( - 69 ) END * 92
----
NULL

query I rowsort
SELECT DISTINCT 70 * - + 48 AS col2
----
-3360

query I rowsort
SELECT + 35 + 75 * - NULLIF ( + 42, 48 ) col2
----
-3115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6490
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( + 71 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( + 71 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ( + COUNT( * ) ) * + ( 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6491
SELECT ( + COUNT ( * ) ) * + ( 94 ) AS col1
----
94

query I rowsort
SELECT 71 + + 24 * + 37 * ( 96 ) + - 57 * + 79
----
80816

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL 69 + + CASE + 5 WHEN 14 THEN 62 * 12 + 74 WHEN 83 / - NULLIF ( ( - ( + 93 ) ), AVG ( - 71 ) / 99 - AVG ( + 37 ) ) + COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL 69 + + CASE + 5 WHEN 14 THEN 62 * 12 + 74 WHEN 83 / - NULLIF ( ( - ( + 93 ) ), AVG ( - 71 ) / 99 - AVG ( + 37 ) ) + COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT CASE + SUM( + + 91 ) WHEN 37 * + COUNT( * ) THEN + 95 WHEN COALESCE ( + 81, - 86, - CAST( - 52 AS SIGNED ) ) * + 52 + 26 THEN NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT CASE + SUM ( + + 91 ) WHEN 37 * + COUNT ( * ) THEN + 95 WHEN COALESCE ( + 81, - 86, - CAST ( - 52 AS INTEGER ) ) * + 52 + 26 THEN NULL END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6495
SELECT ALL 42, CAST( NULL AS SIGNED ) AS col2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-6495
SELECT ALL 42, CAST ( NULL AS INTEGER ) AS col2
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT 6 + + + MAX( 71 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6496
SELECT 6 + + + MAX ( 71 ) AS col2
----
77

query II rowsort
SELECT DISTINCT 48, - 38 AS col0
----
48
-38

query II rowsort
SELECT - 52 AS col2, 26 * 72 * - 55
----
-52
-102960

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT 9 + 81 * NULLIF ( COUNT( * ), - COUNT( * ) ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6499
SELECT 9 + 81 * NULLIF ( COUNT ( * ), - COUNT ( * ) ) AS col1
----
90

query I rowsort
SELECT ALL 52 + + 93
----
145

query I rowsort
SELECT DISTINCT - + 57 AS col2
----
-57

query I rowsort
SELECT ALL - - 4 + 73 - - 98
----
175

query I rowsort
SELECT ( 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL MAX( + 14 ) * - ( 39 ) AS col0
----
-546

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL MAX ( + 14 ) * - ( 39 ) AS col0
----
-546

query I rowsort
SELECT DISTINCT 79 + - + 32 * - ( 92 )
----
3023

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT + 20 * - COALESCE ( - COUNT( * ), - 88 * 51, - 50 + 5 ) * + 36 + + 8 + 89 col2
----
817

skipif mysql # not compatible
query I rowsort label-6506
SELECT + 20 * - COALESCE ( - COUNT ( * ), - 88 * 51, - 50 + 5 ) * + 36 + + 8 + 89 col2
----
817

query I rowsort
SELECT ALL - NULLIF ( + + 59, - 74 / 77 ) AS col0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6508
SELECT - 33 DIV - 45 + - COUNT( * ) - 50 * COALESCE ( 89 + 71, + 25 + ( - 2 ) ) + 49 AS col2
----
-7952

skipif mysql # not compatible
query I rowsort label-6508
SELECT - 33 / - 45 + - COUNT ( * ) - 50 * COALESCE ( 89 + 71, + 25 + ( - 2 ) ) + 49 AS col2
----
-7952

query I rowsort
SELECT - 81 * 71 AS col0
----
-5751

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT COUNT( * ) * + 57
----
57

skipif mysql # not compatible
query I rowsort label-6510
SELECT COUNT ( * ) * + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT SUM( DISTINCT 32 )
----
32

skipif mysql # not compatible
query I rowsort label-6511
SELECT SUM ( DISTINCT 32 )
----
32

query I rowsort
SELECT - 64 + + + 90 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT DISTINCT - MIN( 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT - MIN ( 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL + + COUNT( * ) - - + 19 + + ( 12 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL + + COUNT ( * ) - - + 19 + + ( 12 ) AS col0
----
32

query I rowsort
SELECT DISTINCT - + ( 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-6516
SELECT + COUNT( * ) AS col0, 47
----
1
47

skipif mysql # not compatible
query II rowsort label-6516
SELECT + COUNT ( * ) AS col0, 47
----
1
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT DISTINCT - + COUNT( ( 81 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT - + COUNT ( ( 81 ) ) AS col0
----
-1

query II rowsort
SELECT + + 29 AS col0, 41
----
29
41

query I rowsort
SELECT 63 + - 68 + - 39
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT ALL - CASE 70 WHEN + + COUNT( * ) THEN - + 19 * + 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL - CASE 70 WHEN + + COUNT ( * ) THEN - + 19 * + 39 END
----
NULL

query I rowsort
SELECT 37 * + ( - 21 ) * 27
----
-20979

query I rowsort
SELECT 78 * + - 73 * 23 AS col0
----
-130962

query I rowsort
SELECT + 23 * + NULLIF ( ( - + 27 ), 80 ) + + 5 * + 88 AS col0
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL 23 / - 79 * - CASE + ( - 72 ) WHEN MAX( COALESCE ( + 39, 14 ) ) * 1 THEN 51 * - COALESCE ( + 46, + COALESCE ( 20, + 40 + + 0 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL 23 / - 79 * - CASE + ( - 72 ) WHEN MAX ( COALESCE ( + 39, 14 ) ) * 1 THEN 51 * - COALESCE ( + 46, + COALESCE ( 20, + 40 + + 0 ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6525
SELECT DISTINCT 58 * - - CAST( NULL AS DECIMAL ) / 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT 58 * - - CAST ( NULL AS REAL ) / 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL - 14 + MAX( 14 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL - 14 + MAX ( 14 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 60 + - - 3
----
63

query II rowsort
SELECT 61 + + - 36 AS col2, - 7
----
25
-7

query II rowsort
SELECT DISTINCT 22 * + 76, + 39 AS col2
----
1672
39

query I rowsort
SELECT 71 + - - 89
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6531
SELECT COUNT( * ) DIV 10
----
0

skipif mysql # not compatible
query I rowsort label-6531
SELECT COUNT ( * ) / 10
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6532
SELECT 77 * CAST( - 36 AS SIGNED )
----
-2772

skipif mysql # not compatible
query I rowsort label-6532
SELECT 77 * CAST ( - 36 AS INTEGER )
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT ALL 57 + + COUNT( ALL + 16 ) - + 87 + COUNT( * ) * - 19
----
-48

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL 57 + + COUNT ( ALL + 16 ) - + 87 + COUNT ( * ) * - 19
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ALL NULLIF ( 21, + 1 * - 97 ) + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL NULLIF ( 21, + 1 * - 97 ) + + COUNT ( * )
----
22

query I rowsort
SELECT ALL + 43 * - 55
----
-2365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6536
SELECT COUNT( + 98 ) + - 16 - - CAST( NULL AS SIGNED ) * - CASE 4 WHEN + SUM( DISTINCT + 32 ) THEN 23 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6536
SELECT COUNT ( + 98 ) + - 16 - - CAST ( NULL AS INTEGER ) * - CASE 4 WHEN + SUM ( DISTINCT + 32 ) THEN 23 END AS col0
----
NULL

query I rowsort
SELECT ALL 20 + + 64 + + 18 AS col1
----
102

query II rowsort
SELECT ALL ( - 51 ) col1, COALESCE ( + 50, - 34 ) AS col2
----
-51
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT DISTINCT MAX( DISTINCT - + 89 ) + + + 36 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-6539
SELECT DISTINCT MAX ( DISTINCT - + 89 ) + + + 36 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT 5 * COUNT( * ) * COUNT( * ) + + COUNT( * ) + 82 - 37 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6540
SELECT 5 * COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) + 82 - 37 AS col0
----
51

query I rowsort
SELECT + - ( + 90 ) AS col1
----
-90

query I rowsort
SELECT DISTINCT - 50 * + 17 AS col1
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT 42 + - - 70 + + + 53 + - - 98 * - ( - NULLIF ( + COUNT( * ), - SUM( ALL 2 ) ) ) * + 75 AS col2
----
7515

skipif mysql # not compatible
query I rowsort label-6543
SELECT 42 + - - 70 + + + 53 + - - 98 * - ( - NULLIF ( + COUNT ( * ), - SUM ( ALL 2 ) ) ) * + 75 AS col2
----
7515

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6544
SELECT ALL ( - + 19 ) / + + 10 * - CAST( NULL AS SIGNED ) * 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL ( - + 19 ) / + + 10 * - CAST ( NULL AS INTEGER ) * 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT DISTINCT - 73 * - ( + 65 ) * + COUNT( * ) * 59 - - ( 15 ) AS col0
----
279970

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT - 73 * - ( + 65 ) * + COUNT ( * ) * 59 - - ( 15 ) AS col0
----
279970

query I rowsort
SELECT ALL - - 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT ALL - SUM( 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL - SUM ( 58 ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT + ( 87 ) * CAST( NULL AS SIGNED ) / + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT + ( 87 ) * CAST ( NULL AS INTEGER ) / + - 1 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6549
SELECT DISTINCT 93 * CAST( NULL AS SIGNED ) + - COUNT( * ) + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT 93 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 74
----
NULL

query I rowsort
SELECT DISTINCT - 39 col1
----
-39

query I rowsort
SELECT ( + - 39 ) + + 19 - - 78 AS col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6552
SELECT + 86 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-6552
SELECT + 86 / + 46
----
1

query I rowsort
SELECT 88 * - 61 AS col2
----
-5368

query I rowsort
SELECT 46 * 66 * - 5
----
-15180

onlyif mysql # aggregate syntax: 
query II rowsort label-6555
SELECT 82 * - MAX( ALL - 4 ), - ( 25 ) AS col0
----
328
-25

skipif mysql # not compatible
query II rowsort label-6555
SELECT 82 * - MAX ( ALL - 4 ), - ( 25 ) AS col0
----
328
-25

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6556
SELECT 9 * CASE - - 92 WHEN AVG ( ALL - - 75 ) / - CAST( 42 * - AVG ( DISTINCT + ( 83 ) ) AS SIGNED ) THEN NULL WHEN - 98 + + NULLIF ( + AVG ( DISTINCT 21 ), - 90 * CAST( + 91 AS SIGNED ) + NULLIF ( 65, - 26 ) ) THEN - 33 + + CAST( 41 - 44 * COALESCE ( - NULLIF ( - 23, - ( 70 ) ), 4 + + 73 ) AS SIGNED ) ELSE CAST( NULL AS DECIMAL ) END + 80 * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT 9 * CASE - - 92 WHEN AVG ( ALL - - 75 ) / - CAST ( 42 * - AVG ( DISTINCT + ( 83 ) ) AS INTEGER ) THEN NULL WHEN - 98 + + NULLIF ( + AVG ( DISTINCT 21 ), - 90 * CAST ( + 91 AS INTEGER ) + NULLIF ( 65, - 26 ) ) THEN - 33 + + CAST ( 41 - 44 * COALESCE ( - NULLIF ( - 23, - ( 70 ) ), 4 + + 73 ) AS INTEGER ) ELSE CAST ( NULL AS REAL ) END + 80 * 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6557
SELECT ALL + NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL + NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL - COUNT( * ) * - SUM( - + 82 ) * - - 66 + + 1 * - 17 AS col0
----
-5429

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - COUNT ( * ) * - SUM ( - + 82 ) * - - 66 + + 1 * - 17 AS col0
----
-5429

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6559
SELECT - 88 + NULLIF ( + - 47, - - 29 * 36 / CAST( NULL AS DECIMAL ) ) + + 16 * + 84 col2
----
1209

skipif mysql # not compatible
query I rowsort label-6559
SELECT - 88 + NULLIF ( + - 47, - - 29 * 36 / CAST ( NULL AS REAL ) ) + + 16 * + 84 col2
----
1209

query I rowsort
SELECT ALL - 46 + - 13
----
-59

query I rowsort
SELECT DISTINCT + ( - ( + 79 ) )
----
-79

query I rowsort
SELECT DISTINCT - 1 + - 40 + - - COALESCE ( + + 1, - 42 ) * + 16 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT ALL + COUNT( * ) + - - ( 58 ) * - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL + COUNT ( * ) + - - ( 58 ) * - COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL MAX( DISTINCT + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL MAX ( DISTINCT + 38 ) AS col1
----
38

query I rowsort
SELECT - 52 * + - 55
----
2860

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT + 10 + MIN( - - 26 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6566
SELECT + 10 + MIN ( - - 26 ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6567
SELECT ALL - 83 + + 52 + + - 47, + 82 / + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-6567
SELECT ALL - 83 + + 52 + + - 47, + 82 / + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
-78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT - COUNT( * ) + - 46 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6568
SELECT - COUNT ( * ) + - 46 AS col0
----
-47

query I rowsort
SELECT ALL - 11 * 96
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT DISTINCT MAX( DISTINCT - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT MAX ( DISTINCT - 31 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6571
SELECT DISTINCT MIN( - 76 ) / + - CAST( NULL AS SIGNED ) AS col2, 35 * 57 + 97 AS col0
----
NULL
2092

skipif mysql # not compatible
query II rowsort label-6571
SELECT DISTINCT MIN ( - 76 ) / + - CAST ( NULL AS INTEGER ) AS col2, 35 * 57 + 97 AS col0
----
NULL
2092

query I rowsort
SELECT ALL 13 * - - 15 AS col0
----
195

query I rowsort
SELECT - - 16 AS col2
----
16

query I rowsort
SELECT + + 35 + - - 73 AS col2
----
108

query I rowsort
SELECT - 40 * - ( + 23 ) * + 74 * + 80 AS col1
----
5446400

query I rowsort
SELECT + 10 * 5 + - 46
----
4

query I rowsort
SELECT ALL 80 * + NULLIF ( - 58, + 21 ) AS col2
----
-4640

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT - COUNT( * ) * 2 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT - COUNT ( * ) * 2 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-6579
SELECT 41 AS col2, - 12 DIV - + 49 AS col1
----
41
0

skipif mysql # not compatible
query II rowsort label-6579
SELECT 41 AS col2, - 12 / - + 49 AS col1
----
41
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT + - CAST( - 50 AS SIGNED ) * - - 28
----
1400

skipif mysql # not compatible
query I rowsort label-6580
SELECT + - CAST ( - 50 AS INTEGER ) * - - 28
----
1400

query I rowsort
SELECT ALL - 77 * + 33
----
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT MIN( - - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-6582
SELECT MIN ( - - 66 )
----
66

query I rowsort
SELECT ALL + - 43 AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6584
SELECT + COALESCE ( - + 36, - 85 * 35 + + - 29 * - COALESCE ( 51, 24 * 5, CAST( ( 94 ) AS SIGNED ) ), + 20 * + 92 ) + 24 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6584
SELECT + COALESCE ( - + 36, - 85 * 35 + + - 29 * - COALESCE ( 51, 24 * 5, CAST ( ( 94 ) AS INTEGER ) ), + 20 * + 92 ) + 24 AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6585
SELECT 17 * - + 75 + 85 DIV - COALESCE ( - - 98, + COALESCE ( 87, - 63 + + AVG ( 31 ) ), 64, - 93 + 61 ) AS col0
----
-1275

skipif mysql # not compatible
query I rowsort label-6585
SELECT 17 * - + 75 + 85 / - COALESCE ( - - 98, + COALESCE ( 87, - 63 + + AVG ( 31 ) ), 64, - 93 + 61 ) AS col0
----
-1275

onlyif mysql # aggregate syntax: 
query II rowsort label-6586
SELECT 22 AS col1, - COUNT( * ) + - 11 AS col1
----
22
-12

skipif mysql # not compatible
query II rowsort label-6586
SELECT 22 AS col1, - COUNT ( * ) + - 11 AS col1
----
22
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6587
SELECT + - COUNT( * ) / 61 * + 97 + - + CASE - 27 WHEN CAST( 64 AS SIGNED ) * + 16 THEN 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT + - COUNT ( * ) / 61 * + 97 + - + CASE - 27 WHEN CAST ( 64 AS INTEGER ) * + 16 THEN 76 END
----
NULL

query II rowsort
SELECT ALL + - 9, 62 AS col2
----
-9
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6589
SELECT + + CAST( 17 AS SIGNED ) * + 35 AS col2
----
595

skipif mysql # not compatible
query I rowsort label-6589
SELECT + + CAST ( 17 AS INTEGER ) * + 35 AS col2
----
595

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT DISTINCT 48 * ( + ( MAX( DISTINCT - 48 ) ) )
----
-2304

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT 48 * ( + ( MAX ( DISTINCT - 48 ) ) )
----
-2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6591
SELECT ALL + SUM( 90 ) * - ( - + CAST( NULL AS SIGNED ) ) / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL + SUM ( 90 ) * - ( - + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL 90 * - 72 * + + 76 + 15 + COUNT( * ) col0
----
-492464

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL 90 * - 72 * + + 76 + 15 + COUNT ( * ) col0
----
-492464

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT DISTINCT COUNT( NULLIF ( - 80, + 4 ) ) * + - 84 + + 87 col1
----
3

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT COUNT ( NULLIF ( - 80, + 4 ) ) * + - 84 + + 87 col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6594
SELECT CASE - CAST( NULL AS SIGNED ) WHEN - 61 THEN CASE ( - ( - MIN( COALESCE ( + 79, 80 ) ) ) ) WHEN 14 THEN - COALESCE ( 86, + 2, 65 + 32 * 70 ) + 31 ELSE 57 END WHEN 73 THEN 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN - 61 THEN CASE ( - ( - MIN ( COALESCE ( + 79, 80 ) ) ) ) WHEN 14 THEN - COALESCE ( 86, + 2, 65 + 32 * 70 ) + 31 ELSE 57 END WHEN 73 THEN 69 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6595
SELECT ALL + 30 * + COALESCE ( - 28, 82 ) + + + ( - COALESCE ( CASE CASE - 76 WHEN 3 DIV 90 + - 74 * 31 THEN NULL ELSE COALESCE ( - COUNT( * ), 35 ) END WHEN + 59 THEN 0 * 13 ELSE + 45 + - NULLIF ( ( + 28 ), + 67 * + 67 ) DIV + 46 END, - 17 DIV 13 ) ) * + 41
----
-2685

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + 30 * + COALESCE ( - 28, 82 ) + + + ( - COALESCE ( CASE CASE - 76 WHEN 3 / 90 + - 74 * 31 THEN NULL ELSE COALESCE ( - COUNT ( * ), 35 ) END WHEN + 59 THEN 0 * 13 ELSE + 45 + - NULLIF ( ( + 28 ), + 67 * + 67 ) / + 46 END, - 17 / 13 ) ) * + 41
----
-2685

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT CASE + ( + 24 ) WHEN - COUNT( * ) THEN + + 84 + - MAX( ALL + 75 ) + - 10 / AVG ( DISTINCT 67 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT CASE + ( + 24 ) WHEN - COUNT ( * ) THEN + + 84 + - MAX ( ALL + 75 ) + - 10 / AVG ( DISTINCT 67 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT + CASE + COUNT( * ) WHEN + ( - 86 ) THEN - 75 WHEN - - AVG ( ALL - 36 ) THEN NULL END / 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT + CASE + COUNT ( * ) WHEN + ( - 86 ) THEN - 75 WHEN - - AVG ( ALL - 36 ) THEN NULL END / 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6598
SELECT - ( - - 99 ) DIV + - 81
----
1

skipif mysql # not compatible
query I rowsort label-6598
SELECT - ( - - 99 ) / + - 81
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT CASE + ( 94 ) WHEN - 20 * - 18 THEN NULL WHEN - COUNT( * ) * + MAX( DISTINCT 87 * + 79 ) THEN 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT CASE + ( 94 ) WHEN - 20 * - 18 THEN NULL WHEN - COUNT ( * ) * + MAX ( DISTINCT 87 * + 79 ) THEN 50 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6600
SELECT + 46 - 44 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT + 46 - 44 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6601
SELECT COUNT( * ) AS col2, ( - CASE 15 WHEN + - COUNT( * ) THEN - + 68 * 43 WHEN 13 + - 77 * + 62 THEN CAST( 53 AS SIGNED ) * ( 35 * + 62 ) END ) * + SUM( DISTINCT + 76 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6601
SELECT COUNT ( * ) AS col2, ( - CASE 15 WHEN + - COUNT ( * ) THEN - + 68 * 43 WHEN 13 + - 77 * + 62 THEN CAST ( 53 AS INTEGER ) * ( 35 * + 62 ) END ) * + SUM ( DISTINCT + 76 )
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT + CAST( NULL AS SIGNED ) / - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT + CAST ( NULL AS INTEGER ) / - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT DISTINCT MAX( + + 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT MAX ( + + 16 ) AS col0
----
16

query I rowsort
SELECT DISTINCT ( 46 ) AS col1
----
46

query I rowsort
SELECT DISTINCT - 70 * - 98 * + + 44
----
301840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6606
SELECT DISTINCT 39 - 11 + + COUNT( * ) + - COALESCE ( - 7, - ( + 55 ), - 20 * + 26 ) + 9 * CASE CASE 97 WHEN + 80 THEN 26 * + 90 WHEN + 70 THEN NULL END + 75 WHEN 9 THEN COUNT( 13 ) ELSE 25 - 53 DIV 68 END
----
261

skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT 39 - 11 + + COUNT ( * ) + - COALESCE ( - 7, - ( + 55 ), - 20 * + 26 ) + 9 * CASE CASE 97 WHEN + 80 THEN 26 * + 90 WHEN + 70 THEN NULL END + 75 WHEN 9 THEN COUNT ( 13 ) ELSE 25 - 53 / 68 END
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6607
SELECT DISTINCT CAST( + - MIN( - - 66 ) AS SIGNED ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT CAST ( + - MIN ( - - 66 ) AS INTEGER ) AS col1
----
-66

query I rowsort
SELECT - 68 * - 8 * 47 AS col2
----
25568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6609
SELECT ALL + CASE - 96 WHEN 40 * 42 + - 41 THEN NULL WHEN - 60 * + 90 + + 49 THEN 7 * 14 WHEN - 70 * NULLIF ( + AVG ( + 65 ), + CAST( NULL AS SIGNED ) + - 23 ) + AVG ( ALL - 80 ) THEN NULL ELSE COUNT( * ) * - COUNT( * ) END * ( 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL + CASE - 96 WHEN 40 * 42 + - 41 THEN NULL WHEN - 60 * + 90 + + 49 THEN 7 * 14 WHEN - 70 * NULLIF ( + AVG ( + 65 ), + CAST ( NULL AS INTEGER ) + - 23 ) + AVG ( ALL - 80 ) THEN NULL ELSE COUNT ( * ) * - COUNT ( * ) END * ( 91 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6610
SELECT DISTINCT 27, 31 * - - 41 * + COUNT( * ) AS col1
----
27
1271

skipif mysql # not compatible
query II rowsort label-6610
SELECT DISTINCT 27, 31 * - - 41 * + COUNT ( * ) AS col1
----
27
1271

query I rowsort
SELECT + 15 + ( + 64 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT - + MAX( ALL - 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6612
SELECT - + MAX ( ALL - 23 ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6613
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT - - 72 * COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-6614
SELECT - - 72 * COUNT ( * ) AS col0
----
72

query I rowsort
SELECT ALL ( - 22 ) AS col2
----
-22

query I rowsort
SELECT - - 28 + + - 77 AS col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6617
SELECT DISTINCT COUNT( * ) DIV 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT COUNT ( * ) / 73 AS col1
----
0

query II rowsort
SELECT DISTINCT 1, - 30 AS col2
----
1
-30

query II rowsort
SELECT - - 33 AS col2, 27 + 26 AS col0
----
33
53

query I rowsort
SELECT + + 46 * 44
----
2024

query I rowsort
SELECT 87 * - - 62 + 57 + 22 * 34 col0
----
6199

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6622
SELECT ( 75 ) DIV + CAST( - 69 AS SIGNED ) + + 4
----
3

skipif mysql # not compatible
query I rowsort label-6622
SELECT ( 75 ) / + CAST ( - 69 AS INTEGER ) + + 4
----
3

query I rowsort
SELECT 58 * + 85
----
4930

query I rowsort
SELECT + 90 * 45
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT ALL + - 46 + + 93 + SUM( ALL 91 ) * - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL + - 46 + + 93 + SUM ( ALL 91 ) * - COUNT ( * )
----
-44

query I rowsort
SELECT ALL 0 + ( + ( - 4 ) ) AS col2
----
-4

query I rowsort
SELECT 10 * ( - - 87 ) - + + 54 AS col1
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT COUNT( + 92 ) * - 31 * + 9 * + 35 * - 46 + 62 + ( 42 ) * + CASE + ( 65 ) WHEN - 9 THEN NULL WHEN 0 THEN NULL WHEN - 68 * 81 THEN 97 * 63 END * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT COUNT ( + 92 ) * - 31 * + 9 * + 35 * - 46 + 62 + ( 42 ) * + CASE + ( 65 ) WHEN - 9 THEN NULL WHEN 0 THEN NULL WHEN - 68 * 81 THEN 97 * 63 END * + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT COUNT( * ) * + 50 * - + COUNT( * ) * + 94 * - - 38 * + 1 + COUNT( * )
----
-178599

skipif mysql # not compatible
query I rowsort label-6629
SELECT COUNT ( * ) * + 50 * - + COUNT ( * ) * + 94 * - - 38 * + 1 + COUNT ( * )
----
-178599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT ALL COUNT( * ) + - 82 + - 63 * + + CASE - 89 WHEN - 14 + 0 THEN ( AVG ( ALL + 9 ) ) + 76 * 26 WHEN 19 THEN + 4 WHEN - COUNT( * ) / ( 28 ) THEN CAST( - 31 AS SIGNED ) ELSE NULL END * + 66 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL COUNT ( * ) + - 82 + - 63 * + + CASE - 89 WHEN - 14 + 0 THEN ( AVG ( ALL + 9 ) ) + 76 * 26 WHEN 19 THEN + 4 WHEN - COUNT ( * ) / ( 28 ) THEN CAST ( - 31 AS INTEGER ) ELSE NULL END * + 66 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ( + 69 ) * - 87
----
-6003

query I rowsort
SELECT DISTINCT + 1 + + - 5
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT ( - + 27 ) + + 23 + - COUNT( * ) + - 3 - + 3 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6633
SELECT ( - + 27 ) + + 23 + - COUNT ( * ) + - 3 - + 3 AS col1
----
-11

query I rowsort
SELECT ALL 5 - - 51 + - 53
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT ( ( COUNT( * ) ) ) * + + NULLIF ( + 77, - CAST( NULL AS SIGNED ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6635
SELECT ( ( COUNT ( * ) ) ) * + + NULLIF ( + 77, - CAST ( NULL AS INTEGER ) ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT 6 + + COUNT( * ) * + 37
----
43

skipif mysql # not compatible
query I rowsort label-6636
SELECT 6 + + COUNT ( * ) * + 37
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT ALL COUNT( - 1 ) - 17 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL COUNT ( - 1 ) - 17 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6638
SELECT CAST( NULL AS SIGNED ) * + 6 * CAST( NULL AS SIGNED ), - ( - CASE 8 WHEN - 67 THEN NULL ELSE 43 END ) col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-6638
SELECT CAST ( NULL AS INTEGER ) * + 6 * CAST ( NULL AS INTEGER ), - ( - CASE 8 WHEN - 67 THEN NULL ELSE 43 END ) col0
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT - ( - - 69 ) * - - COUNT( * ) * - - 97 + + 4 + 98 AS col2
----
-6591

skipif mysql # not compatible
query I rowsort label-6639
SELECT - ( - - 69 ) * - - COUNT ( * ) * - - 97 + + 4 + 98 AS col2
----
-6591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6640
SELECT ( 12 ) * 92 * + AVG ( + COALESCE ( - - 56, + 86 / - 71 + 4, + 5 + 88 / - 41 ) ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT ( 12 ) * 92 * + AVG ( + COALESCE ( - - 56, + 86 / - 71 + 4, + 5 + 88 / - 41 ) ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT + 83 + MAX( ALL - 35 )
----
48

skipif mysql # not compatible
query I rowsort label-6641
SELECT + 83 + MAX ( ALL - 35 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT + 96 + CAST( - - 84 AS SIGNED )
----
180

skipif mysql # not compatible
query I rowsort label-6642
SELECT + 96 + CAST ( - - 84 AS INTEGER )
----
180

query I rowsort
SELECT ALL + - 15 * + 7 - + 46 - + 71 AS col0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT MAX( + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6644
SELECT MAX ( + 18 ) AS col2
----
18

query I rowsort
SELECT DISTINCT - + CASE + + 20 WHEN + 74 THEN + 38 WHEN + 1 THEN NULL ELSE NULL END + 89 + 1 * - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT COUNT( ALL - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-6646
SELECT COUNT ( ALL - 49 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6647
SELECT ALL - NULLIF ( - - COALESCE ( + CAST( + 76 AS SIGNED ), 87 + - 4 ), 81 ) + + 45
----
-31

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL - NULLIF ( - - COALESCE ( + CAST ( + 76 AS INTEGER ), 87 + - 4 ), 81 ) + + 45
----
-31

query I rowsort
SELECT DISTINCT + 67 + + + 18 + + 40 * - 35
----
-1315

query I rowsort
SELECT DISTINCT ( + + 81 ) + - + 33 AS col0
----
48

query I rowsort
SELECT - 74 + - 63
----
-137

query I rowsort
SELECT ALL - - 10 + + 7
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6652
SELECT ALL - 60 + - CASE + 37 WHEN - 29 + + - 61 + + 43 THEN + 0 * - 59 * 39 + + CAST( NULL AS SIGNED ) * + 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL - 60 + - CASE + 37 WHEN - 29 + + - 61 + + 43 THEN + 0 * - 59 * 39 + + CAST ( NULL AS INTEGER ) * + 19 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6653
SELECT 32, COUNT( * ) AS col0
----
32
1

skipif mysql # not compatible
query II rowsort label-6653
SELECT 32, COUNT ( * ) AS col0
----
32
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6654
SELECT 52 DIV + - 50
----
-1

skipif mysql # not compatible
query I rowsort label-6654
SELECT 52 / + - 50
----
-1

query I rowsort
SELECT 88 + + 71 AS col2
----
159

query II rowsort
SELECT 10 AS col2, - 32
----
10
-32

query I rowsort
SELECT ALL + 15 + + + 80 AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT 78 DIV ( - - 30 ) * - 3
----
-6

skipif mysql # not compatible
query I rowsort label-6658
SELECT 78 / ( - - 30 ) * - 3
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-6659
SELECT + 67 AS col2, + COUNT( * ) AS col1
----
67
1

skipif mysql # not compatible
query II rowsort label-6659
SELECT + 67 AS col2, + COUNT ( * ) AS col1
----
67
1

query I rowsort
SELECT ALL + 15 - + 7
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6661
SELECT + 24 col0, COUNT( + 13 ) * + + 63
----
24
63

skipif mysql # not compatible
query II rowsort label-6661
SELECT + 24 col0, COUNT ( + 13 ) * + + 63
----
24
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT COALESCE ( - + 31, - + 68 * - - ( + SUM( DISTINCT + - 8 ) ) ) * - 21
----
651

skipif mysql # not compatible
query I rowsort label-6662
SELECT COALESCE ( - + 31, - + 68 * - - ( + SUM ( DISTINCT + - 8 ) ) ) * - 21
----
651

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ALL - MIN( + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL - MIN ( + 53 )
----
-53

query II rowsort
SELECT 34 AS col0, ( - 90 ) col1
----
34
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT COUNT( * ) * - 38
----
-38

skipif mysql # not compatible
query I rowsort label-6665
SELECT COUNT ( * ) * - 38
----
-38

query I rowsort
SELECT 12 - - 63
----
75

query I rowsort
SELECT DISTINCT - COALESCE ( - + ( 80 ), - NULLIF ( 70, + 19 ) * - 96 - 13 * + 90, + 93, 95 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6668
SELECT + 29 * ( - COALESCE ( - 21, - - 93, + 67, + COUNT( + 30 ) DIV 2 ) ) col0
----
609

skipif mysql # not compatible
query I rowsort label-6668
SELECT + 29 * ( - COALESCE ( - 21, - - 93, + 67, + COUNT ( + 30 ) / 2 ) ) col0
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT - 47 * COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-6669
SELECT - 47 * COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT CASE + 41 WHEN 47 / + 10 THEN + - MAX( ALL - 31 ) + + COUNT( * ) - + 37 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6670
SELECT CASE + 41 WHEN 47 / + 10 THEN + - MAX ( ALL - 31 ) + + COUNT ( * ) - + 37 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6671
SELECT ALL - 90 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL - 90 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6672
SELECT + 95 * + 58 * + + 2 * 69 + - 7 + - + CASE - - ( - 59 ) WHEN CAST( 61 AS SIGNED ) THEN 88 WHEN 60 + COUNT( ALL - 55 ) * + COUNT( * ) THEN 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6672
SELECT + 95 * + 58 * + + 2 * 69 + - 7 + - + CASE - - ( - 59 ) WHEN CAST ( 61 AS INTEGER ) THEN 88 WHEN 60 + COUNT ( ALL - 55 ) * + COUNT ( * ) THEN 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT COUNT( * ) + - 10
----
-9

skipif mysql # not compatible
query I rowsort label-6673
SELECT COUNT ( * ) + - 10
----
-9

query I rowsort
SELECT - 79 + + 53 + + 43 + + 93 + - 23 - + 52 - - 6 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6675
SELECT ALL - COUNT( * ) + - CAST( + - 53 AS SIGNED ) + - - 59 DIV COUNT( * ) + - CAST( - - 84 AS SIGNED ) * 10 DIV + 11 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL - COUNT ( * ) + - CAST ( + - 53 AS INTEGER ) + - - 59 / COUNT ( * ) + - CAST ( - - 84 AS INTEGER ) * 10 / + 11 AS col2
----
35

query I rowsort
SELECT + ( - + 49 ) + - 74 AS col1
----
-123

query II rowsort
SELECT ALL 53 AS col2, - 5
----
53
-5

query II rowsort
SELECT - + 88 col1, - 8 AS col1
----
-88
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6679
SELECT + ( + CASE - 10 WHEN - CAST( + 0 AS SIGNED ) THEN NULL WHEN - + 27 THEN - + 39 WHEN - 9 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT + ( + CASE - 10 WHEN - CAST ( + 0 AS INTEGER ) THEN NULL WHEN - + 27 THEN - + 39 WHEN - 9 THEN NULL END )
----
NULL

query I rowsort
SELECT ALL + ( + - 12 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6681
SELECT DISTINCT 60 + 40 + 84 DIV + COUNT( * ) + - + CASE 88 WHEN - - ( + + 67 ) THEN NULL ELSE + 89 END
----
95

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT 60 + 40 + 84 / + COUNT ( * ) + - + CASE 88 WHEN - - ( + + 67 ) THEN NULL ELSE + 89 END
----
95

query I rowsort
SELECT + - 50 + - 97 AS col0
----
-147

query I rowsort
SELECT - 42 + + 40 - - 76 + ( + + 65 )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT COALESCE ( - 13, COUNT( ALL - 37 ) ) col1
----
-13

skipif mysql # not compatible
query I rowsort label-6684
SELECT COALESCE ( - 13, COUNT ( ALL - 37 ) ) col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6685
SELECT + COUNT( * ) DIV 35 * 0 - 38 * - 79 + 2 + + 75
----
3079

skipif mysql # not compatible
query I rowsort label-6685
SELECT + COUNT ( * ) / 35 * 0 - 38 * - 79 + 2 + + 75
----
3079

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT NULLIF ( + COALESCE ( + COUNT( * ), 49 + - 32, 49 * NULLIF ( 60, 18 / 89 ), 62 ), + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT NULLIF ( + COALESCE ( + COUNT ( * ), 49 + - 32, 49 * NULLIF ( 60, 18 / 89 ), 62 ), + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL 58 * - COUNT( * ) * - CASE - 79 WHEN - 67 THEN - + 88 END - + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL 58 * - COUNT ( * ) * - CASE - 79 WHEN - 67 THEN - + 88 END - + 50 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT ALL - ( + - 72 ) * + 33 - - + 71 + - CASE - 43 WHEN + + 61 THEN NULL ELSE + + CAST( NULL AS SIGNED ) / - - 44 - - 12 END * + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - ( + - 72 ) * + 33 - - + 71 + - CASE - 43 WHEN + + 61 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) / - - 44 - - 12 END * + 14 AS col2
----
NULL

query II rowsort
SELECT - 76 * + 50, 84 * 86 * + 93 col1
----
-3800
671832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6690
SELECT 84 * - COALESCE ( 58, - - 90 - - 98 ) - - 80 + + 94 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT 84 * - COALESCE ( 58, - - 90 - - 98 ) - - 80 + + 94 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6691
SELECT - 1 * + + 16 - 23 * 82 * + CASE 79 WHEN - CAST( 95 AS SIGNED ) THEN - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT - 1 * + + 16 - 23 * 82 * + CASE 79 WHEN - CAST ( 95 AS INTEGER ) THEN - 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT NULLIF ( + 90, + 76 / + COUNT( * ) + + 12 ) col1
----
90

skipif mysql # not compatible
query I rowsort label-6692
SELECT NULLIF ( + 90, + 76 / + COUNT ( * ) + + 12 ) col1
----
90

query I rowsort
SELECT COALESCE ( + + 55, + 87 + 31 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6694
SELECT - 38 * - + 87 + CASE - COUNT( * ) WHEN - + ( 82 ) DIV + + 56 THEN - + ( + - 0 ) WHEN COUNT( - 18 ) THEN 63 DIV 51 END + 81 * COUNT( ALL - 57 ) AS col0
----
3387

skipif mysql # not compatible
query I rowsort label-6694
SELECT - 38 * - + 87 + CASE - COUNT ( * ) WHEN - + ( 82 ) / + + 56 THEN - + ( + - 0 ) WHEN COUNT ( - 18 ) THEN 63 / 51 END + 81 * COUNT ( ALL - 57 ) AS col0
----
3387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6695
SELECT CASE + - 16 WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN 69 * + CASE + 18 WHEN - 2 THEN - 54 END + + 75 / MIN( ALL CAST( NULL AS SIGNED ) ) THEN - 46 WHEN + 85 THEN - CAST( COUNT( * ) AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT CASE + - 16 WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN 69 * + CASE + 18 WHEN - 2 THEN - 54 END + + 75 / MIN ( ALL CAST ( NULL AS INTEGER ) ) THEN - 46 WHEN + 85 THEN - CAST ( COUNT ( * ) AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6696
SELECT DISTINCT + COUNT( * ) * - 9 * - ( + + COUNT( * ) ) DIV + + 17
----
0

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT + COUNT ( * ) * - 9 * - ( + + COUNT ( * ) ) / + + 17
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6697
SELECT - 9 + + 75 col0, 50 + + ( COUNT( + 72 ) )
----
66
51

skipif mysql # not compatible
query II rowsort label-6697
SELECT - 9 + + 75 col0, 50 + + ( COUNT ( + 72 ) )
----
66
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL - 21 * + SUM( + - 28 ) AS col1
----
588

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL - 21 * + SUM ( + - 28 ) AS col1
----
588

query I rowsort
SELECT DISTINCT + ( + 14 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT - + 16 + - + SUM( ALL + 70 )
----
-86

skipif mysql # not compatible
query I rowsort label-6700
SELECT - + 16 + - + SUM ( ALL + 70 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT + - ( + SUM( - - 10 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-6701
SELECT + - ( + SUM ( - - 10 ) )
----
-10

query I rowsort
SELECT - - 55 * 64
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT MIN( ALL - 13 ) * - NULLIF ( 40, COUNT( * ) ) + - 48 AS col2
----
472

skipif mysql # not compatible
query I rowsort label-6703
SELECT MIN ( ALL - 13 ) * - NULLIF ( 40, COUNT ( * ) ) + - 48 AS col2
----
472

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT - MIN( DISTINCT + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-6704
SELECT - MIN ( DISTINCT + 49 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6705
SELECT + 67 + COUNT( * ) + 57 + 28 * - CAST( + - 8 AS SIGNED ) * - 75
----
-16675

skipif mysql # not compatible
query I rowsort label-6705
SELECT + 67 + COUNT ( * ) + 57 + 28 * - CAST ( + - 8 AS INTEGER ) * - 75
----
-16675

onlyif mysql # aggregate syntax: 
query II rowsort label-6706
SELECT ALL + - 44 + - 50, CASE + - COUNT( DISTINCT + - 55 ) WHEN + COUNT( * ) THEN NULL ELSE + 89 END + + + 82 AS col1
----
-94
171

skipif mysql # not compatible
query II rowsort label-6706
SELECT ALL + - 44 + - 50, CASE + - COUNT ( DISTINCT + - 55 ) WHEN + COUNT ( * ) THEN NULL ELSE + 89 END + + + 82 AS col1
----
-94
171

query I rowsort
SELECT ALL + 78 * 66 + + + 84 AS col0
----
5232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6708
SELECT + SUM( CAST( NULL AS SIGNED ) ), 95 * - 66 AS col0
----
NULL
-6270

skipif mysql # not compatible
query II rowsort label-6708
SELECT + SUM ( CAST ( NULL AS INTEGER ) ), 95 * - 66 AS col0
----
NULL
-6270

onlyif mysql # aggregate syntax: 
query II rowsort label-6709
SELECT ALL + 9 + + MIN( ( + ( - 24 ) ) ) AS col0, - 31
----
-15
-31

skipif mysql # not compatible
query II rowsort label-6709
SELECT ALL + 9 + + MIN ( ( + ( - 24 ) ) ) AS col0, - 31
----
-15
-31

query I rowsort
SELECT ALL - - 39 * 27
----
1053

query I rowsort
SELECT DISTINCT + 84 * + 74 * - 3 AS col1
----
-18648

onlyif mysql # DIV for integer division: 
query I rowsort label-6712
SELECT - + 79 DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-6712
SELECT - + 79 / - + 96
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6713
SELECT + + SUM( DISTINCT + 76 ) * - 17 * + 48, 9 AS col0
----
-62016
9

skipif mysql # not compatible
query II rowsort label-6713
SELECT + + SUM ( DISTINCT + 76 ) * - 17 * + 48, 9 AS col0
----
-62016
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6714
SELECT ALL 67 - + 13 DIV + - 92 + - ( - + 15 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL 67 - + 13 / + - 92 + - ( - + 15 ) AS col2
----
82

query I rowsort
SELECT + 47 + 99 * - + 19 - - - 37 AS col0
----
-1871

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT + COALESCE ( - + NULLIF ( + - 63, 65 * COALESCE ( + 6, 0 ) ), + - 98, + 97 ) DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-6716
SELECT + COALESCE ( - + NULLIF ( + - 63, 65 * COALESCE ( + 6, 0 ) ), + - 98, + 97 ) / - 38
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6717
SELECT ALL COUNT( * ) DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL COUNT ( * ) / 45 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6718
SELECT ALL 10, + CAST( NULL AS SIGNED ) col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-6718
SELECT ALL 10, + CAST ( NULL AS INTEGER ) col2
----
10
NULL

query I rowsort
SELECT + 0 + - 13
----
-13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6720
SELECT ALL + CASE ( 0 ) WHEN - + CAST( NULL AS SIGNED ) DIV - 77 THEN NULL ELSE - 96 DIV + + 88 END * 68 * - - 41 AS col1
----
-2788

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL + CASE ( 0 ) WHEN - + CAST ( NULL AS INTEGER ) / - 77 THEN NULL ELSE - 96 / + + 88 END * 68 * - - 41 AS col1
----
-2788

query II rowsort
SELECT ALL + 42 AS col1, - 56 * - 78 AS col1
----
42
4368

query I rowsort
SELECT + 93 + + 67
----
160

query I rowsort
SELECT + 52 * + - 23
----
-1196

query II rowsort
SELECT ALL + 58 AS col1, 45
----
58
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6725
SELECT + CAST( + + NULLIF ( + COUNT( * ), 41 - - 75 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6725
SELECT + CAST ( + + NULLIF ( + COUNT ( * ), 41 - - 75 ) AS INTEGER )
----
1

query I rowsort
SELECT + 16 * - 75 AS col2
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT - 22 + - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-6727
SELECT - 22 + - COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6728
SELECT DISTINCT + 1 DIV 29 + COUNT( * ) + + 4 + - 19 * + + 53 * + 96 * 76 * - 24 * - COUNT( ALL - 57 ) AS col2
----
-176329723

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT + 1 / 29 + COUNT ( * ) + + 4 + - 19 * + + 53 * + 96 * 76 * - 24 * - COUNT ( ALL - 57 ) AS col2
----
-176329723

query I rowsort
SELECT ALL 74 * - 50 AS col0
----
-3700

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6730
SELECT DISTINCT - 41 DIV 81 + - 31 AS col1, - ( + + CAST( + 65 AS SIGNED ) )
----
-31
-65

skipif mysql # not compatible
query II rowsort label-6730
SELECT DISTINCT - 41 / 81 + - 31 AS col1, - ( + + CAST ( + 65 AS INTEGER ) )
----
-31
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6731
SELECT ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT ( + CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT ALL + + 77 * - + 74 * + 80 + 76 * - + 54 AS col2, - 99
----
-459944
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT + CASE + - 36 WHEN - + 10 * - 28 + - - 65 + + AVG ( ALL + - 90 ) THEN + + 57 / - + 43 * + 37 - 63 WHEN + 86 THEN + ( 20 ) + 10 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT + CASE + - 36 WHEN - + 10 * - 28 + - - 65 + + AVG ( ALL + - 90 ) THEN + + 57 / - + 43 * + 37 - 63 WHEN + 86 THEN + ( 20 ) + 10 END * + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6734
SELECT - 38 * - - 99 DIV - 3 AS col1
----
1254

skipif mysql # not compatible
query I rowsort label-6734
SELECT - 38 * - - 99 / - 3 AS col1
----
1254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6735
SELECT ALL + - ( - + NULLIF ( MAX( + 1 ), - + CAST( + 56 AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL + - ( - + NULLIF ( MAX ( + 1 ), - + CAST ( + 56 AS INTEGER ) ) )
----
1

query I rowsort
SELECT DISTINCT - ( 18 )
----
-18

query I rowsort
SELECT 2 - 14
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT + 74 * MAX( ALL + + 28 )
----
2072

skipif mysql # not compatible
query I rowsort label-6738
SELECT + 74 * MAX ( ALL + + 28 )
----
2072

query I rowsort
SELECT + 18 * + 97
----
1746

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6740
SELECT ALL + ( + COUNT( * ) ) + + 88 * - + CASE - CAST( + COALESCE ( 62, 17 ) AS SIGNED ) WHEN + 50 THEN - 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL + ( + COUNT ( * ) ) + + 88 * - + CASE - CAST ( + COALESCE ( 62, 17 ) AS INTEGER ) WHEN + 50 THEN - 77 END
----
NULL

query I rowsort
SELECT - 41 * - - 89 AS col0
----
-3649

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6742
SELECT ALL + 46 * 78 * + 40 + MAX( + 55 ) AS col1, 52 DIV - 50 col0
----
143575
-1

skipif mysql # not compatible
query II rowsort label-6742
SELECT ALL + 46 * 78 * + 40 + MAX ( + 55 ) AS col1, 52 / - 50 col0
----
143575
-1

query I rowsort
SELECT ALL - + 37 * - 64
----
2368

query I rowsort
SELECT DISTINCT + + 74 - + 30 * - + 95
----
2924

query I rowsort
SELECT 74 + - 21
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT - 68 - + NULLIF ( - + SUM( + 33 ), COUNT( * ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-6746
SELECT - 68 - + NULLIF ( - + SUM ( + 33 ), COUNT ( * ) ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-6747
SELECT ALL 49 AS col0, - COUNT( * )
----
49
-1

skipif mysql # not compatible
query II rowsort label-6747
SELECT ALL 49 AS col0, - COUNT ( * )
----
49
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT + MIN( DISTINCT + + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-6748
SELECT + MIN ( DISTINCT + + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT ALL NULLIF ( - 64, + COUNT( * ) - + 51 * 15 / - 28 + 85 / - 92 )
----
-64

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL NULLIF ( - 64, + COUNT ( * ) - + 51 * 15 / - 28 + 85 / - 92 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT + ( + + 63 ) + + - COUNT( DISTINCT 52 ) + COALESCE ( 29, - ( + 1 ) )
----
91

skipif mysql # not compatible
query I rowsort label-6750
SELECT + ( + + 63 ) + + - COUNT ( DISTINCT 52 ) + COALESCE ( 29, - ( + 1 ) )
----
91

query I rowsort
SELECT 97 * + 58
----
5626

query II rowsort
SELECT ALL 9 AS col0, + 2 col0
----
9
2

query I rowsort
SELECT DISTINCT NULLIF ( - 82, - - 3 * - 11 ) * + 11
----
-902

query I rowsort
SELECT DISTINCT + 38 * - ( 88 )
----
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT 87 * + - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-6755
SELECT 87 * + - COUNT ( * ) AS col0
----
-87

query II rowsort
SELECT - 67, 44 - - 89 AS col2
----
-67
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT DISTINCT MAX( DISTINCT + 67 ) * + + 84 col0
----
5628

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT MAX ( DISTINCT + 67 ) * + + 84 col0
----
5628

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6758
SELECT COUNT( * ) DIV - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6758
SELECT COUNT ( * ) / - COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6759
SELECT ( - 92 ) DIV - + 86 + ( + + 62 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6759
SELECT ( - 92 ) / - + 86 + ( + + 62 ) AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-6760
SELECT - 93 DIV - 29 - - 69
----
72

skipif mysql # not compatible
query I rowsort label-6760
SELECT - 93 / - 29 - - 69
----
72

query I rowsort
SELECT 22 + + - 81 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT DISTINCT 33 + + - COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT 33 + + - COUNT ( * ) AS col2
----
32

query I rowsort
SELECT ALL ( + 64 ) + 85 * 26 + + 47
----
2321

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL MAX( - 78 ) + + + 14
----
-64

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL MAX ( - 78 ) + + + 14
----
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6765
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 52 * - + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT CAST ( NULL AS REAL ) + 52 * - + 46 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6766
SELECT DISTINCT - 82 AS col2, + CAST( 22 AS SIGNED ) AS col2
----
-82
22

skipif mysql # not compatible
query II rowsort label-6766
SELECT DISTINCT - 82 AS col2, + CAST ( 22 AS INTEGER ) AS col2
----
-82
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT ( - 34 ) + - - NULLIF ( - - 95, - 31 ) - - + SUM( + 44 )
----
105

skipif mysql # not compatible
query I rowsort label-6767
SELECT ( - 34 ) + - - NULLIF ( - - 95, - 31 ) - - + SUM ( + 44 )
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6768
SELECT + - 86 DIV + 34 - - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6768
SELECT + - 86 / + 34 - - + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT - + COUNT( * ) * - 83 + MIN( DISTINCT 73 ) AS col2
----
156

skipif mysql # not compatible
query I rowsort label-6769
SELECT - + COUNT ( * ) * - 83 + MIN ( DISTINCT 73 ) AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT NULLIF ( + COUNT( * ), - 96 ) * - 66
----
-66

skipif mysql # not compatible
query I rowsort label-6770
SELECT NULLIF ( + COUNT ( * ), - 96 ) * - 66
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6771
SELECT - 56 * + + 94 / + + 59 * - CAST( NULL AS DECIMAL ) * 74 * + 31 * + - ( + 34 ) * CASE 52 WHEN + COUNT( * ) + + COUNT( * ) THEN 37 * - COUNT( * ) END - CAST( 18 AS SIGNED ) + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT - 56 * + + 94 / + + 59 * - CAST ( NULL AS REAL ) * 74 * + 31 * + - ( + 34 ) * CASE 52 WHEN + COUNT ( * ) + + COUNT ( * ) THEN 37 * - COUNT ( * ) END - CAST ( 18 AS INTEGER ) + 11
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6772
SELECT + 26, - COUNT( * ) col2
----
26
-1

skipif mysql # not compatible
query II rowsort label-6772
SELECT + 26, - COUNT ( * ) col2
----
26
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6773
SELECT ALL - 53 + - 3 AS col1, NULLIF ( 64, + + COUNT( * ) ) + + 25 + + 33 * + MIN( ALL 97 ) * - + 58
----
-56
-185569

skipif mysql # not compatible
query II rowsort label-6773
SELECT ALL - 53 + - 3 AS col1, NULLIF ( 64, + + COUNT ( * ) ) + + 25 + + 33 * + MIN ( ALL 97 ) * - + 58
----
-56
-185569

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT + MIN( ALL 32 ) * - 91 + ( + - 88 )
----
-3000

skipif mysql # not compatible
query I rowsort label-6774
SELECT + MIN ( ALL 32 ) * - 91 + ( + - 88 )
----
-3000

query I rowsort
SELECT ALL - - 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL + 83 * + + MAX( 80 ) - + + 92 * - CASE + - 29 WHEN + 66 THEN + 74 + - 21 WHEN - + 17 + + 52 THEN NULL WHEN + ( + 9 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL + 83 * + + MAX ( 80 ) - + + 92 * - CASE + - 29 WHEN + 66 THEN + 74 + - 21 WHEN - + 17 + + 52 THEN NULL WHEN + ( + 9 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6777
SELECT 17 + + 13, - CAST( NULL AS SIGNED ) * + ( + + 1 ) col0
----
30
NULL

skipif mysql # not compatible
query II rowsort label-6777
SELECT 17 + + 13, - CAST ( NULL AS INTEGER ) * + ( + + 1 ) col0
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT DISTINCT - SUM( + + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT - SUM ( + + 11 )
----
-11

query I rowsort
SELECT + 6 * + ( + 55 ) + + - 46 AS col0
----
284

query II rowsort
SELECT ALL - - 99, 36 AS col1
----
99
36

query I rowsort
SELECT DISTINCT - 59 - + 28 + - CASE + ( 65 ) WHEN - 29 THEN NULL WHEN 69 THEN + 91 ELSE NULL END + 80 / 81
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( - 34, - 25 )
----
34

query I rowsort
SELECT + - COALESCE ( 0, - - 47, - 23 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT - MIN( ALL + ( + 94 ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-6784
SELECT - MIN ( ALL + ( + 94 ) ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6785
SELECT ALL ( - COUNT( * ) ), 41 * 73 * + + CAST( NULL AS SIGNED ) * - - 96 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6785
SELECT ALL ( - COUNT ( * ) ), 41 * 73 * + + CAST ( NULL AS INTEGER ) * - - 96 AS col0
----
-1
NULL

query I rowsort
SELECT + COALESCE ( + 87, + 14 * - 46 )
----
87

query II rowsort
SELECT - - 17 AS col2, 63
----
17
63

query I rowsort
SELECT + 66 + 22
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT + 5 DIV - 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6789
SELECT + 5 / - 49 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT ALL NULLIF ( 27, - COUNT( * ) ) col0
----
27

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL NULLIF ( 27, - COUNT ( * ) ) col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6791
SELECT ALL 28, + COUNT( + 58 ) * + - 9 AS col2
----
28
-9

skipif mysql # not compatible
query II rowsort label-6791
SELECT ALL 28, + COUNT ( + 58 ) * + - 9 AS col2
----
28
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-6792
SELECT DISTINCT - 7 DIV + 76 * ( + - 43 ) AS col0, 0 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-6792
SELECT DISTINCT - 7 / + 76 * ( + - 43 ) AS col0, 0 AS col2
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6793
SELECT 6 * + ( - 49 ) * CAST( + + 89 AS SIGNED ) col1
----
-26166

skipif mysql # not compatible
query I rowsort label-6793
SELECT 6 * + ( - 49 ) * CAST ( + + 89 AS INTEGER ) col1
----
-26166

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL SUM( ALL - - ( + 36 ) )
----
36

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL SUM ( ALL - - ( + 36 ) )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6795
SELECT 22 + - + 8 + - 30 DIV - SUM( + - 24 ) AS col0, 5 AS col1
----
13
5

skipif mysql # not compatible
query II rowsort label-6795
SELECT 22 + - + 8 + - 30 / - SUM ( + - 24 ) AS col0, 5 AS col1
----
13
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6796
SELECT ALL SUM( - + 99 ) AS col0, + 12 - + - 86
----
-99
98

skipif mysql # not compatible
query II rowsort label-6796
SELECT ALL SUM ( - + 99 ) AS col0, + 12 - + - 86
----
-99
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6797
SELECT COUNT( * ) + + + CAST( + CAST( - 80 AS SIGNED ) AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-6797
SELECT COUNT ( * ) + + + CAST ( + CAST ( - 80 AS INTEGER ) AS INTEGER )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6798
SELECT ALL - 62 + - 72 + + + CAST( NULL AS SIGNED ) * + + 99 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL - 62 + - 72 + + + CAST ( NULL AS INTEGER ) * + + 99 * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT DISTINCT - 89 + - 8 + - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT - 89 + - 8 + - COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6800
SELECT DISTINCT - SUM( - - 94 ) + + - 52 + + 43 DIV + + 10 + 19 + - 37 AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT - SUM ( - - 94 ) + + - 52 + + 43 / + + 10 + 19 + - 37 AS col2
----
-160

query I rowsort
SELECT 25 - - + 35
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT DISTINCT SUM( + + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT SUM ( + + 92 )
----
92

query I rowsort
SELECT ALL - ( - 73 ) + 93 AS col2
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT ALL + COUNT( * ) + - 80
----
-79

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL + COUNT ( * ) + - 80
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6805
SELECT COALESCE ( + CAST( NULL AS SIGNED ), + - 18 * - + COUNT( * ), 71 * - 6 DIV - 32 )
----
18

skipif mysql # not compatible
query I rowsort label-6805
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), + - 18 * - + COUNT ( * ), 71 * - 6 / - 32 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6806
SELECT DISTINCT + CAST( - 53 AS SIGNED ) * - + 16
----
848

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + CAST ( - 53 AS INTEGER ) * - + 16
----
848

onlyif mysql # aggregate syntax: 
query II rowsort label-6807
SELECT ALL - MIN( 38 ), - 88 AS col0
----
-38
-88

skipif mysql # not compatible
query II rowsort label-6807
SELECT ALL - MIN ( 38 ), - 88 AS col0
----
-38
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6808
SELECT - ( - 37 ) * 55 AS col0, 67 + 55 + - 47 * NULLIF ( - 45, 62 * - + 34 * ( 24 ) * + 58 + 28 + 94 * - 96 ) + + MIN( + COALESCE ( 30, + 93 * CAST( - 60 * 42 AS SIGNED ) ) ) DIV 25 AS col1
----
2035
2238

skipif mysql # not compatible
query II rowsort label-6808
SELECT - ( - 37 ) * 55 AS col0, 67 + 55 + - 47 * NULLIF ( - 45, 62 * - + 34 * ( 24 ) * + 58 + 28 + 94 * - 96 ) + + MIN ( + COALESCE ( 30, + 93 * CAST ( - 60 * 42 AS INTEGER ) ) ) / 25 AS col1
----
2035
2238

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT - MIN( - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6809
SELECT - MIN ( - 10 ) AS col0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6810
SELECT DISTINCT 75 * - CAST( NULL AS DECIMAL ) - + - 78 + + 71 / - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT 75 * - CAST ( NULL AS REAL ) - + - 78 + + 71 / - 17
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + + 23, + + 8 * 5 - + - 72 ) * - - 77 * - 7 AS col2
----
12397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6812
SELECT ALL + 91 DIV + COUNT( * ) + + 58 + - 73
----
76

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL + 91 / + COUNT ( * ) + + 58 + - 73
----
76

query I rowsort
SELECT DISTINCT + + 65 AS col1
----
65

query I rowsort
SELECT + COALESCE ( 84, + 81 ) * + 78 col0
----
6552

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT + + 35 DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6815
SELECT + + 35 / 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT + MIN( 89 ) * 2 * + 43 AS col0
----
7654

skipif mysql # not compatible
query I rowsort label-6816
SELECT + MIN ( 89 ) * 2 * + 43 AS col0
----
7654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6817
SELECT - CASE - - CAST( NULL AS SIGNED ) WHEN CASE 1 WHEN AVG ( DISTINCT + 18 ) / + + CASE WHEN NULL NOT BETWEEN + 91 AND - - 59 - - - 15 THEN 28 WHEN 2 BETWEEN 3 AND ( 64 + 33 ) THEN - CAST( + 35 AS SIGNED ) ELSE NULL END + ( 75 ) * 9 THEN NULL ELSE 11 - - 68 END THEN CAST( NULL AS SIGNED ) ELSE - 49 END AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6817
SELECT - CASE - - CAST ( NULL AS INTEGER ) WHEN CASE 1 WHEN AVG ( DISTINCT + 18 ) / + + CASE WHEN NULL NOT BETWEEN + 91 AND - - 59 - - - 15 THEN 28 WHEN 2 BETWEEN 3 AND ( 64 + 33 ) THEN - CAST ( + 35 AS INTEGER ) ELSE NULL END + ( 75 ) * 9 THEN NULL ELSE 11 - - 68 END THEN CAST ( NULL AS INTEGER ) ELSE - 49 END AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT ALL ( + 95 ) * 24 * + COUNT( * )
----
2280

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL ( + 95 ) * 24 * + COUNT ( * )
----
2280

query I rowsort
SELECT DISTINCT + 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6820
SELECT DISTINCT - 78 * 62 + ( + - MIN( ALL - - 64 ) ) AS col2, NULLIF ( 94, - 26 - - - 50 ) AS col1
----
-4900
94

skipif mysql # not compatible
query II rowsort label-6820
SELECT DISTINCT - 78 * 62 + ( + - MIN ( ALL - - 64 ) ) AS col2, NULLIF ( 94, - 26 - - - 50 ) AS col1
----
-4900
94

query I rowsort
SELECT DISTINCT ( 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT DISTINCT + ( + COUNT( * ) ) + COALESCE ( - - 98, - MIN( DISTINCT - + 99 ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT + ( + COUNT ( * ) ) + COALESCE ( - - 98, - MIN ( DISTINCT - + 99 ) ) AS col1
----
99

query II rowsort
SELECT 2 AS col0, + 8 * - 81 + + 42 + 47
----
2
-559

query I rowsort
SELECT - 29 - - ( 25 )
----
-4

query I rowsort
SELECT ALL - ( + ( + + 9 ) ) + 67 AS col1
----
58

query I rowsort
SELECT + 93 + 10 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT DISTINCT MIN( DISTINCT 56 ) + - 32 col1
----
24

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT MIN ( DISTINCT 56 ) + - 32 col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6828
SELECT ALL 16 + - ( - CAST( + + COUNT( * ) AS SIGNED ) ) * + 1 * + + 67 + + CAST( - ( CAST( - COALESCE ( - 74, - 18 DIV + + 20 * - 99, - 99 - - 46 ) AS SIGNED ) ) AS SIGNED ) DIV + 91 col2
----
83

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL 16 + - ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) * + 1 * + + 67 + + CAST ( - ( CAST ( - COALESCE ( - 74, - 18 / + + 20 * - 99, - 99 - - 46 ) AS INTEGER ) ) AS INTEGER ) / + 91 col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT ALL + CAST( NULL AS SIGNED ) * + + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 30 AS col1
----
NULL

query II rowsort
SELECT - 74, + 39 AS col1
----
-74
39

query I rowsort
SELECT ALL 51 + + 91
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT DISTINCT SUM( 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT SUM ( 52 ) AS col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT ALL - 31 + + 33 + + 55 DIV + - 4 + + - 59
----
-70

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL - 31 + + 33 + + 55 / + - 4 + + - 59
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-6834
SELECT - 81 DIV - + 61 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6834
SELECT - 81 / - + 61 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6835
SELECT ALL + COUNT( * ) * - + 99 DIV - 29 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL + COUNT ( * ) * - + 99 / - 29 AS col2
----
3

query I rowsort
SELECT + 51 + 87 + + ( - 38 ) * - ( AVG ( - 46 ) ) * - 11 - - - 11 + - + 89 + - + 67 + CASE + 83 WHEN + AVG ( NULLIF ( + 57, 83 ) ) + 98 * + 29 THEN 95 WHEN - 1 + 29 THEN 18 WHEN ( 12 ) THEN NULL END + 94 - - 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT DISTINCT CASE WHEN NOT + 60 > + - COUNT( * ) + + + 30 THEN - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT CASE WHEN NOT + 60 > + - COUNT ( * ) + + + 30 THEN - + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6838
SELECT ALL - 31 - + 6 + + 73 AS col2, - 32 * + CASE + 72 WHEN - - ( - - 0 ) THEN NULL WHEN + 54 THEN NULL ELSE + + COUNT( * ) * 68 * + 80 - 99 + 75 + 1 END
----
36
-173344

skipif mysql # not compatible
query II rowsort label-6838
SELECT ALL - 31 - + 6 + + 73 AS col2, - 32 * + CASE + 72 WHEN - - ( - - 0 ) THEN NULL WHEN + 54 THEN NULL ELSE + + COUNT ( * ) * 68 * + 80 - 99 + 75 + 1 END
----
36
-173344

onlyif mysql # aggregate syntax: 
query II rowsort label-6839
SELECT DISTINCT + + 36 AS col1, + COUNT( * )
----
36
1

skipif mysql # not compatible
query II rowsort label-6839
SELECT DISTINCT + + 36 AS col1, + COUNT ( * )
----
36
1

query I rowsort
SELECT DISTINCT + - NULLIF ( 53, - 40 * 15 )
----
-53

query I rowsort
SELECT DISTINCT + - 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT - - 70 + - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-6842
SELECT - - 70 + - - COUNT ( * )
----
71

query I rowsort
SELECT ALL + - 77 col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6844
SELECT - + MAX( 78 ) + 0 AS col1, - 10 DIV + - COUNT( * )
----
-78
10

skipif mysql # not compatible
query II rowsort label-6844
SELECT - + MAX ( 78 ) + 0 AS col1, - 10 / + - COUNT ( * )
----
-78
10

query I rowsort
SELECT + 21 - - 23 - + + 91
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6846
SELECT - 60 DIV + + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6846
SELECT - 60 / + + 82 AS col1
----
0

query II rowsort
SELECT DISTINCT - + ( - + 96 ) * - 71 * 2, + 68 AS col1
----
-13632
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6848
SELECT + + 26 * - NULLIF ( + + 84, 78 * - 62 + ( - - 86 ) + - - MIN( ALL + + 53 ) - - 66 * + - 93 + CASE + ( - 27 ) WHEN - 3 THEN NULL ELSE CAST( NULL AS SIGNED ) END ) + + ( MAX( DISTINCT - 43 ) ) AS col2
----
-2227

skipif mysql # not compatible
query I rowsort label-6848
SELECT + + 26 * - NULLIF ( + + 84, 78 * - 62 + ( - - 86 ) + - - MIN ( ALL + + 53 ) - - 66 * + - 93 + CASE + ( - 27 ) WHEN - 3 THEN NULL ELSE CAST ( NULL AS INTEGER ) END ) + + ( MAX ( DISTINCT - 43 ) ) AS col2
----
-2227

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT COUNT( + + 99 )
----
1

skipif mysql # not compatible
query I rowsort label-6849
SELECT COUNT ( + + 99 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6850
SELECT + 48 * 85 DIV - ( + 84 )
----
-48

skipif mysql # not compatible
query I rowsort label-6850
SELECT + 48 * 85 / - ( + 84 )
----
-48

query I rowsort
SELECT ALL + + NULLIF ( + - 47, + 89 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT - + 88 * - + COUNT( * ) * + 50
----
4400

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT - + 88 * - + COUNT ( * ) * + 50
----
4400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6853
SELECT ALL + + CAST( - 26 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + + CAST ( - 26 AS INTEGER )
----
-26

query I rowsort
SELECT + - 38 * 30
----
-1140

query I rowsort
SELECT + - 79 + - - 87 AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6856
SELECT - 2, - COUNT( ALL 70 ) col0
----
-2
-1

skipif mysql # not compatible
query II rowsort label-6856
SELECT - 2, - COUNT ( ALL 70 ) col0
----
-2
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6857
SELECT - - COUNT( * ) * MIN( ALL + 21 ) * + 92 + - 4 + + + CAST( - + 82 AS DECIMAL ) + 61 * + 20 * + + CASE + - ( 0 ) WHEN + - 72 + 56 THEN 0 + 59 * 95 WHEN 86 THEN + 22 * 99 END * + ( + 1 + 51 * - 58 ) * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT - - COUNT ( * ) * MIN ( ALL + 21 ) * + 92 + - 4 + + + CAST ( - + 82 AS REAL ) + 61 * + 20 * + + CASE + - ( 0 ) WHEN + - 72 + 56 THEN 0 + 59 * 95 WHEN 86 THEN + 22 * 99 END * + ( + 1 + 51 * - 58 ) * 49
----
NULL

query II rowsort
SELECT + ( 32 ) * 28 + - 40, 31 AS col2
----
856
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT NULLIF ( + - CASE - COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN + 66 THEN + 98 WHEN - - 39 THEN NULL WHEN - COUNT( * ) * - COUNT( * ) / 74 THEN NULL ELSE - 23 END, - 92 * 9 + - 22 )
----
23

skipif mysql # not compatible
query I rowsort label-6859
SELECT NULLIF ( + - CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN + 66 THEN + 98 WHEN - - 39 THEN NULL WHEN - COUNT ( * ) * - COUNT ( * ) / 74 THEN NULL ELSE - 23 END, - 92 * 9 + - 22 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT + 29 + - MAX( 2 )
----
27

skipif mysql # not compatible
query I rowsort label-6860
SELECT + 29 + - MAX ( 2 )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6861
SELECT CASE WHEN NOT NULL > - 54 THEN 7 / 6 / - - COUNT( * ) + + 86 ELSE NULL END AS col0, + 87 + - + 68 AS col2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-6861
SELECT CASE WHEN NOT NULL > - 54 THEN 7 / 6 / - - COUNT ( * ) + + 86 ELSE NULL END AS col0, + 87 + - + 68 AS col2
----
NULL
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6862
SELECT DISTINCT + COUNT( * ) * - + 68 DIV + + 55 + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT + COUNT ( * ) * - + 68 / + + 55 + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT - NULLIF ( - 19, + + COUNT( 64 ) - + 48 * COALESCE ( - 2, - + 0 ) )
----
19

skipif mysql # not compatible
query I rowsort label-6863
SELECT - NULLIF ( - 19, + + COUNT ( 64 ) - + 48 * COALESCE ( - 2, - + 0 ) )
----
19

query II rowsort
SELECT - ( + 88 ) col2, 49 * - 65 + - 82
----
-88
-3267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6865
SELECT + 11 + + CAST( - - COUNT( * ) AS SIGNED ) DIV - 84 * - - 41 * ( 85 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6865
SELECT + 11 + + CAST ( - - COUNT ( * ) AS INTEGER ) / - 84 * - - 41 * ( 85 ) AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6866
SELECT DISTINCT - ( + + 3 ) * + COUNT( * ) DIV - 64 + 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT - ( + + 3 ) * + COUNT ( * ) / - 64 + 76 AS col1
----
76

query I rowsort
SELECT ALL 76 + 16
----
92

query I rowsort
SELECT DISTINCT - 62 + + 77 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT DISTINCT 10 * - COUNT( - 5 )
----
-10

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT 10 * - COUNT ( - 5 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6870
SELECT - ( + 96 ) AS col2, NULLIF ( CASE + NULLIF ( - 83, - 50 * 50 / + 15 * - + 47 - 44 ) WHEN - 81 + + + COUNT( * ) + SUM( ALL - 71 ) THEN + 17 WHEN + 40 * + 3 THEN NULL END, 38 * 53 + - CAST( 42 + - 33 AS SIGNED ) ) col2
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-6870
SELECT - ( + 96 ) AS col2, NULLIF ( CASE + NULLIF ( - 83, - 50 * 50 / + 15 * - + 47 - 44 ) WHEN - 81 + + + COUNT ( * ) + SUM ( ALL - 71 ) THEN + 17 WHEN + 40 * + 3 THEN NULL END, 38 * 53 + - CAST ( 42 + - 33 AS INTEGER ) ) col2
----
-96
NULL

query I rowsort
SELECT + 34 - - 71 + + - 14 + + 84 * - 81 - 2 * + + 25
----
-6763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT + 40 * + 47 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT + 40 * + 47 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6873
SELECT 57 + + 36 + + 56 + - CAST( NULL AS DECIMAL ) * COUNT( * ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT 57 + + 36 + + 56 + - CAST ( NULL AS REAL ) * COUNT ( * ) * 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT COUNT( * ) * + MIN( ALL - - 57 ) * MAX( DISTINCT 27 )
----
1539

skipif mysql # not compatible
query I rowsort label-6874
SELECT COUNT ( * ) * + MIN ( ALL - - 57 ) * MAX ( DISTINCT 27 )
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT 76 * COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6875
SELECT 76 * COUNT ( * ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT COUNT( * ) + - - MIN( ALL + + 83 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6876
SELECT COUNT ( * ) + - - MIN ( ALL + + 83 ) AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6877
SELECT CAST( + 61 AS SIGNED ) - - + 9 DIV + + 12 + ( + 19 ) col0
----
80

skipif mysql # not compatible
query I rowsort label-6877
SELECT CAST ( + 61 AS INTEGER ) - - + 9 / + + 12 + ( + 19 ) col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT DISTINCT CASE - 73 WHEN - MIN( - 65 ) - - + 49 THEN NULL ELSE - COUNT( * ) - - 34 + - + 80 END
----
-47

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT CASE - 73 WHEN - MIN ( - 65 ) - - + 49 THEN NULL ELSE - COUNT ( * ) - - 34 + - + 80 END
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6879
SELECT DISTINCT COUNT( * ) * - + ( + 37 ) + - COUNT( * ), COUNT( * ) AS col0
----
-38
1

skipif mysql # not compatible
query II rowsort label-6879
SELECT DISTINCT COUNT ( * ) * - + ( + 37 ) + - COUNT ( * ), COUNT ( * ) AS col0
----
-38
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6880
SELECT ALL CASE 54 WHEN 76 * - 76 * + 94 + - - MIN( DISTINCT - 53 ) + - NULLIF ( - - 33, + 48 ) + - 21 THEN NULL WHEN 82 THEN + 71 END * + CAST( NULL AS SIGNED ) * + 12 + + CAST( - COUNT( * ) + ( + ( 74 ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL CASE 54 WHEN 76 * - 76 * + 94 + - - MIN ( DISTINCT - 53 ) + - NULLIF ( - - 33, + 48 ) + - 21 THEN NULL WHEN 82 THEN + 71 END * + CAST ( NULL AS INTEGER ) * + 12 + + CAST ( - COUNT ( * ) + ( + ( 74 ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6881
SELECT 45 + + 53 DIV - - 78 + + 28
----
73

skipif mysql # not compatible
query I rowsort label-6881
SELECT 45 + + 53 / - - 78 + + 28
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT 61 DIV - - 2 + 23 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-6882
SELECT 61 / - - 2 + 23 AS col0
----
53

query I rowsort
SELECT - 35 * ( + 37 ) * + 56 + - 28
----
-72548

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT + - 94 * COUNT( * ) - 94 * - 71 + - 15
----
6565

skipif mysql # not compatible
query I rowsort label-6884
SELECT + - 94 * COUNT ( * ) - 94 * - 71 + - 15
----
6565

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6885
SELECT 94 * 87 + + 40 * - 56 - 69 + + 46 + + + 73 + ( - - COUNT( * ) ) + COUNT( * ) DIV - 46 * + 56 DIV - 23
----
5989

skipif mysql # not compatible
query I rowsort label-6885
SELECT 94 * 87 + + 40 * - 56 - 69 + + 46 + + + 73 + ( - - COUNT ( * ) ) + COUNT ( * ) / - 46 * + 56 / - 23
----
5989

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6886
SELECT DISTINCT - - COUNT( + 37 ), CASE ( ( + COUNT( * ) ) ) WHEN + NULLIF ( - 71, + 84 ) * CAST( NULL AS DECIMAL ) * + + COUNT( + + 37 ) * + 28 + 38 + 45 THEN + 47 * - 21 END + + 26 / - 75 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6886
SELECT DISTINCT - - COUNT ( + 37 ), CASE ( ( + COUNT ( * ) ) ) WHEN + NULLIF ( - 71, + 84 ) * CAST ( NULL AS REAL ) * + + COUNT ( + + 37 ) * + 28 + 38 + 45 THEN + 47 * - 21 END + + 26 / - 75 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT ALL - 89 + - + COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL - 89 + - + COUNT ( * ) AS col0
----
-90

query I rowsort
SELECT + 85 * + 75 + - + 19
----
6356

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL - MIN( DISTINCT - 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL - MIN ( DISTINCT - 31 ) AS col2
----
31

query I rowsort
SELECT ALL + 98 + + 18 + ( 30 ) AS col0
----
146

query I rowsort
SELECT ALL - - 77 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT + MAX( ALL + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-6892
SELECT + MAX ( ALL + 6 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-6893
SELECT + COUNT( * ) * - 4 + 13 + - 57 AS col0, ( + 32 ) AS col0
----
-48
32

skipif mysql # not compatible
query II rowsort label-6893
SELECT + COUNT ( * ) * - 4 + 13 + - 57 AS col0, ( + 32 ) AS col0
----
-48
32

query I rowsort
SELECT ALL + 37 + + 29 - - 81
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6895
SELECT 0 DIV 65 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6895
SELECT 0 / 65 * + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 35 * 57 AS col1
----
1995

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL - 75 + - - 46 + + 38 + + 92 + 69 * - 36 - + 10 * + 57 + - - 11 + COUNT( * ) AS col0
----
-2941

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL - 75 + - - 46 + + 38 + + 92 + 69 * - 36 - + 10 * + 57 + - - 11 + COUNT ( * ) AS col0
----
-2941

query I rowsort
SELECT 6 * + 31 AS col2
----
186

query I rowsort
SELECT ALL - CASE - 40 WHEN + 61 THEN NULL ELSE + 96 END AS col0
----
-96

query I rowsort
SELECT DISTINCT + 93 + + 31 AS col2
----
124

query I rowsort
SELECT DISTINCT - 30 + 35 + + 21 * 94 + 60 * 34 AS col2
----
4019

onlyif mysql # aggregate syntax: 
query II rowsort label-6902
SELECT ALL + CASE 81 WHEN - - 62 * + 31 + + 91 + - COUNT( * ) THEN - 36 / - 22 - + 70 END + 92 * COUNT( * ) AS col0, 38 * + 10 AS col2
----
NULL
380

skipif mysql # not compatible
query II rowsort label-6902
SELECT ALL + CASE 81 WHEN - - 62 * + 31 + + 91 + - COUNT ( * ) THEN - 36 / - 22 - + 70 END + 92 * COUNT ( * ) AS col0, 38 * + 10 AS col2
----
NULL
380

query I rowsort
SELECT DISTINCT 99 + 26
----
125

query I rowsort
SELECT ALL 58 + - 97
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT ALL + 49 DIV 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL + 49 / 50 AS col1
----
0

query I rowsort
SELECT 15 + 17
----
32

query I rowsort
SELECT 21 * - 81
----
-1701

query I rowsort
SELECT 24 + 21 AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6909
SELECT 60 - 3 + + 35, - NULLIF ( + CASE + COUNT( DISTINCT + 62 ) WHEN 33 THEN - 67 * - 4 - - 31 ELSE - 89 END, - + COUNT( - - ( - 95 ) ) * - 89 + + ( + 80 ) / - 54 ) AS col1
----
92
89

skipif mysql # not compatible
query II rowsort label-6909
SELECT 60 - 3 + + 35, - NULLIF ( + CASE + COUNT ( DISTINCT + 62 ) WHEN 33 THEN - 67 * - 4 - - 31 ELSE - 89 END, - + COUNT ( - - ( - 95 ) ) * - 89 + + ( + 80 ) / - 54 ) AS col1
----
92
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT ( 55 ) - + + MIN( DISTINCT - 55 ) col2
----
110

skipif mysql # not compatible
query I rowsort label-6910
SELECT ( 55 ) - + + MIN ( DISTINCT - 55 ) col2
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6911
SELECT ALL 98 - - COALESCE ( + 72, 31 DIV - + 48 ) + - COUNT( DISTINCT - 38 ) col0
----
169

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL 98 - - COALESCE ( + 72, 31 / - + 48 ) + - COUNT ( DISTINCT - 38 ) col0
----
169

query I rowsort
SELECT DISTINCT 57 * - - 32
----
1824

onlyif mysql # aggregate syntax: 
query II rowsort label-6913
SELECT DISTINCT 34 col1, - ( - COUNT( * ) )
----
34
1

skipif mysql # not compatible
query II rowsort label-6913
SELECT DISTINCT 34 col1, - ( - COUNT ( * ) )
----
34
1

query I rowsort
SELECT ALL 92 * + 10 * ( ( + - 15 ) ) col1
----
-13800

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL COUNT( * ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT DISTINCT COUNT( * ) * + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT COUNT ( * ) * + - 63
----
-63

query II rowsort
SELECT ALL 95, 88 AS col2
----
95
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT - MAX( ( - - 7 ) ) * - ( 21 ) AS col1
----
147

skipif mysql # not compatible
query I rowsort label-6918
SELECT - MAX ( ( - - 7 ) ) * - ( 21 ) AS col1
----
147

query I rowsort
SELECT ALL 36 * 36
----
1296

query I rowsort
SELECT 17 + - 78
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-6921
SELECT ALL 45, + COUNT( * ) AS col1
----
45
1

skipif mysql # not compatible
query II rowsort label-6921
SELECT ALL 45, + COUNT ( * ) AS col1
----
45
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6922
SELECT + CAST( NULL AS SIGNED ) - - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT + CAST ( NULL AS INTEGER ) - - 79 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6923
SELECT DISTINCT 81 DIV - 9
----
-9

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT 81 / - 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL + - COUNT( * ) * COUNT( * ) * 74 + + 34 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL + - COUNT ( * ) * COUNT ( * ) * 74 + + 34 AS col1
----
-40

query I rowsort
SELECT 86 + - 6
----
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6926
SELECT ALL 46 * - CAST( - 29 AS SIGNED ) + - 18 + + + 83 DIV + 17, 52 col0
----
1320
52

skipif mysql # not compatible
query II rowsort label-6926
SELECT ALL 46 * - CAST ( - 29 AS INTEGER ) + - 18 + + + 83 / + 17, 52 col0
----
1320
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT DISTINCT - 75 * + + ( - 76 ) * COUNT( * ) + - 22 - 6 AS col0
----
5672

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT - 75 * + + ( - 76 ) * COUNT ( * ) + - 22 - 6 AS col0
----
5672

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT ALL + 82 * - - COUNT( ALL 80 ) + 36 + 31 * + + ( - + 95 ) + - 14 - - 92 AS col1
----
-2749

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL + 82 * - - COUNT ( ALL 80 ) + 36 + 31 * + + ( - + 95 ) + - 14 - - 92 AS col1
----
-2749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6929
SELECT DISTINCT - COALESCE ( 73, - SUM( ( - + CAST( - 63 AS SIGNED ) ) ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT - COALESCE ( 73, - SUM ( ( - + CAST ( - 63 AS INTEGER ) ) ) ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT ALL MAX( DISTINCT + + 72 ) * + 53 + + COUNT( * ) + - 74 + + - 58 * 90 AS col2
----
-1477

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL MAX ( DISTINCT + + 72 ) * + 53 + + COUNT ( * ) + - 74 + + - 58 * 90 AS col2
----
-1477

query I rowsort
SELECT 65 + + 25
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT - SUM( ALL 24 ) * - ( + 84 ) + 8 - - + 72 * + - 21 * + 5
----
-5536

skipif mysql # not compatible
query I rowsort label-6932
SELECT - SUM ( ALL 24 ) * - ( + 84 ) + 8 - - + 72 * + - 21 * + 5
----
-5536

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT CASE + COUNT( * ) WHEN + NULLIF ( + + 11, - MAX( - 83 ) / CASE + + 75 WHEN 82 THEN 79 + + 23 END / + 86 * - - 28 ) + + 48 / 17 + 21 THEN NULL WHEN + MIN( ALL 26 ) THEN COUNT( * ) * + ( - 68 ) ELSE 5 * 30 END + ( + COUNT( * ) ) AS col0
----
151

skipif mysql # not compatible
query I rowsort label-6933
SELECT CASE + COUNT ( * ) WHEN + NULLIF ( + + 11, - MAX ( - 83 ) / CASE + + 75 WHEN 82 THEN 79 + + 23 END / + 86 * - - 28 ) + + 48 / 17 + 21 THEN NULL WHEN + MIN ( ALL 26 ) THEN COUNT ( * ) * + ( - 68 ) ELSE 5 * 30 END + ( + COUNT ( * ) ) AS col0
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6934
SELECT - ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT - ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 14 AS col2, - 45 AS col2
----
14
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT + 32 + 24 DIV 4 DIV - 63 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6936
SELECT + 32 + 24 / 4 / - 63 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT - + CASE + - 15 WHEN COUNT( * ) * 12 THEN - CASE 5 WHEN 15 THEN + + 20 ELSE - 96 * + 27 * 37 * - 10 + + MAX( + - COALESCE ( + + 29, ( + 85 ) * 71 ) ) END + COALESCE ( - 29 + COUNT( * ), - 17 * + 35 + + NULLIF ( ( 99 ), 66 / - 63 ) ) ELSE NULL END * 8 + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6937
SELECT - + CASE + - 15 WHEN COUNT ( * ) * 12 THEN - CASE 5 WHEN 15 THEN + + 20 ELSE - 96 * + 27 * 37 * - 10 + + MAX ( + - COALESCE ( + + 29, ( + 85 ) * 71 ) ) END + COALESCE ( - 29 + COUNT ( * ), - 17 * + 35 + + NULLIF ( ( 99 ), 66 / - 63 ) ) ELSE NULL END * 8 + - 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6938
SELECT ALL - CAST( - + 64 AS SIGNED ) + ( 2 ) * - 95 DIV + - 64
----
66

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL - CAST ( - + 64 AS INTEGER ) + ( 2 ) * - 95 / + - 64
----
66

query I rowsort
SELECT ALL 76 - - 47 AS col1
----
123

query II rowsort
SELECT DISTINCT - 67 AS col2, 97 col1
----
-67
97

query I rowsort
SELECT 41 * - ( + - 46 ) AS col0
----
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL - SUM( DISTINCT 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL - SUM ( DISTINCT 31 ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT DISTINCT + CAST( 34 AS SIGNED ) - - 20 + CAST( NULL AS SIGNED ) / 58 * 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT + CAST ( 34 AS INTEGER ) - - 20 + CAST ( NULL AS INTEGER ) / 58 * 10 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6944
SELECT ALL + 44 - - 44 - - - CASE COUNT( * ) WHEN - + 48 THEN - NULLIF ( - CAST( NULL AS SIGNED ), + + 4 ) WHEN 73 + - + 18 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL + 44 - - 44 - - - CASE COUNT ( * ) WHEN - + 48 THEN - NULLIF ( - CAST ( NULL AS INTEGER ), + + 4 ) WHEN 73 + - + 18 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 28 * + 2 AS col1
----
-56

query I rowsort
SELECT + 93 + + ( + 16 )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT + 27 * COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT + 27 * COUNT ( * )
----
27

query I rowsort
SELECT ALL NULLIF ( 24, 45 + + 78 + + - ( + + 46 ) * - 42 ) AS col2
----
24

query I rowsort
SELECT - 79 col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT ALL + CAST( NULL AS SIGNED ) * + 45 / + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL + CAST ( NULL AS INTEGER ) * + 45 / + 67 AS col1
----
NULL

query I rowsort
SELECT - CASE + ( - + 57 ) WHEN + + 72 - - NULLIF ( 26, - 80 ) + - - 76 * + 92 + + 40 THEN - 54 + 89 END + + - 78 / - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT DISTINCT COUNT( - 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT COUNT ( - 55 ) AS col1
----
1

query I rowsort
SELECT ALL NULLIF ( - ( 30 ), 16 ) AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6954
SELECT ALL COUNT( * ) DIV - + 47 * - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL COUNT ( * ) / - + 47 * - 67 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6955
SELECT + ( + 69 ) DIV 11 * COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6955
SELECT + ( + 69 ) / 11 * COUNT ( * ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6956
SELECT ALL CASE + ( 15 ) WHEN - MIN( DISTINCT - - 87 ) * + - CAST( + SUM( ALL 0 ) AS SIGNED ) + - 9 + + 37 THEN + + 31 WHEN - 41 - + 99 THEN NULL ELSE 91 + - CAST( - ( + 46 ) AS SIGNED ) END
----
137

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL CASE + ( 15 ) WHEN - MIN ( DISTINCT - - 87 ) * + - CAST ( + SUM ( ALL 0 ) AS INTEGER ) + - 9 + + 37 THEN + + 31 WHEN - 41 - + 99 THEN NULL ELSE 91 + - CAST ( - ( + 46 ) AS INTEGER ) END
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6957
SELECT + CAST( + COUNT( * ) AS SIGNED ) + - COUNT( ALL - - 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6957
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( ALL - - 50 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT DISTINCT + 46 DIV - + 30 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT + 46 / - + 30 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT + + 77 + + 68 DIV 75 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6959
SELECT + + 77 + + 68 / 75 AS col0
----
77

query II rowsort
SELECT ALL - 72, 13 AS col0
----
-72
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT + - ( - COUNT( * ) ) + 68 + + 61 * - ( - 95 )
----
5864

skipif mysql # not compatible
query I rowsort label-6961
SELECT + - ( - COUNT ( * ) ) + 68 + + 61 * - ( - 95 )
----
5864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT ALL CASE - + 84 WHEN ( + + 35 ) THEN NULL WHEN 35 * 7 + + CASE + 71 WHEN - ( + + 12 ) * + - 64 / - 11 + - + CAST( NULL AS SIGNED ) THEN NULL ELSE - + 82 END THEN + + 83 + + + 6 END + 53 * - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL CASE - + 84 WHEN ( + + 35 ) THEN NULL WHEN 35 * 7 + + CASE + 71 WHEN - ( + + 12 ) * + - 64 / - 11 + - + CAST ( NULL AS INTEGER ) THEN NULL ELSE - + 82 END THEN + + 83 + + + 6 END + 53 * - 72 AS col2
----
NULL

query I rowsort
SELECT + 40 + - + 55 AS col1
----
-15

query I rowsort
SELECT ALL + 11 + - 12
----
-1

query I rowsort
SELECT - - 54 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6966
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) * + + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + + 8 AS col0
----
NULL

query II rowsort
SELECT ALL - 61 + 13, - 50 - + 84 * + - 78 AS col2
----
-48
6502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6968
SELECT + - 50 + + - CAST( + AVG ( + - 66 ) AS DECIMAL ) + - - ( - 82 ) * + 14 + + CAST( NULL AS SIGNED ) + 51 - + 56 * + + MAX( - - 89 ) * COALESCE ( - CAST( NULL AS SIGNED ), + 32 ) * + MAX( DISTINCT 19 ) / + COUNT( DISTINCT + 44 ) + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT + - 50 + + - CAST ( + AVG ( + - 66 ) AS REAL ) + - - ( - 82 ) * + 14 + + CAST ( NULL AS INTEGER ) + 51 - + 56 * + + MAX ( - - 89 ) * COALESCE ( - CAST ( NULL AS INTEGER ), + 32 ) * + MAX ( DISTINCT 19 ) / + COUNT ( DISTINCT + 44 ) + - 40
----
NULL

query I rowsort
SELECT - 27 * + + 7 * + + 38 + + + 68 + + + 76 * + 41 + 27 * 52
----
-2594

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT ALL - + 87 * + 21 - + 64 + - + COUNT( * ) + 28 AS col1
----
-1864

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL - + 87 * + 21 - + 64 + - + COUNT ( * ) + 28 AS col1
----
-1864

query II rowsort
SELECT + 42 * - - 84, + 45 + + 23 * 83 AS col2
----
3528
1954

query II rowsort
SELECT 20, 89 AS col2
----
20
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6973
SELECT DISTINCT + 44 AS col0, + COUNT( * )
----
44
1

skipif mysql # not compatible
query II rowsort label-6973
SELECT DISTINCT + 44 AS col0, + COUNT ( * )
----
44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT ALL - 70 * + - 59 * + COUNT( * ) - 22 + + MIN( 37 ) + + 10 AS col1
----
4155

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL - 70 * + - 59 * + COUNT ( * ) - 22 + + MIN ( 37 ) + + 10 AS col1
----
4155

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT ALL 53 * + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL 53 * + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT + 64 * + 38
----
2432

query I rowsort
SELECT CASE 12 WHEN 74 THEN 12 WHEN - 87 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL COALESCE ( + 3, 62 * - 44 * - 73 + + 79 * + 79 ) * - 75 * + 86 + + COUNT( * )
----
-19349

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL COALESCE ( + 3, 62 * - 44 * - 73 + + 79 * + 79 ) * - 75 * + 86 + + COUNT ( * )
----
-19349

query I rowsort
SELECT 85 * + + ( - + 30 ) + - 50 AS col2
----
-2600

onlyif mysql # DIV for integer division: 
query I rowsort label-6980
SELECT ALL - 0 * - 30 - 20 DIV - 14
----
1

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL - 0 * - 30 - 20 / - 14
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6981
SELECT + 28 DIV - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6981
SELECT + 28 / - 80 AS col0
----
0

query I rowsort
SELECT - 34 * 17
----
-578

query I rowsort
SELECT ALL + NULLIF ( NULLIF ( - 16, + 26 ), 84 - + 34 + - - 15 * 11 )
----
-16

query I rowsort
SELECT DISTINCT ( - + 49 ) * - 47 * - 10 AS col1
----
-23030

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT DISTINCT + NULLIF ( + ( + MAX( ALL - - 11 ) ), + ( MAX( + 77 ) ) * + COUNT( * ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT + NULLIF ( + ( + MAX ( ALL - - 11 ) ), + ( MAX ( + 77 ) ) * + COUNT ( * ) ) AS col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6986
SELECT MAX( + - CAST( NULL AS DECIMAL ) ) AS col0, 30
----
NULL
30

skipif mysql # not compatible
query II rowsort label-6986
SELECT MAX ( + - CAST ( NULL AS REAL ) ) AS col0, 30
----
NULL
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6987
SELECT - CAST( NULL AS SIGNED ) - - NULLIF ( + + 46, + - MIN( ALL + - 44 ) ) * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT - CAST ( NULL AS INTEGER ) - - NULLIF ( + + 46, + - MIN ( ALL + - 44 ) ) * + 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6988
SELECT - CAST( NULL AS SIGNED ) * 70 AS col0, ( - 94 )
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-6988
SELECT - CAST ( NULL AS INTEGER ) * 70 AS col0, ( - 94 )
----
NULL
-94

query I rowsort
SELECT ALL - + 59 + 60 * + 44
----
2581

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6990
SELECT ALL - 51 + + 23 * 6 * + + AVG ( 27 ) * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL - 51 + + 23 * 6 * + + AVG ( 27 ) * + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - + 46 * - 8 AS col0
----
368

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT DISTINCT CASE + - AVG ( - 30 ) WHEN + MIN( - 94 ) THEN 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT CASE + - AVG ( - 30 ) WHEN + MIN ( - 94 ) THEN 50 END
----
NULL

query I rowsort
SELECT DISTINCT - + 29 + - 52 col1
----
-81

query I rowsort
SELECT DISTINCT + 60 + 12 + - 27 + - + 76 * 47
----
-3527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT DISTINCT + - 17 + + 75 / ( + 99 ) * - - CAST( NULL AS SIGNED ) + - CASE 82 WHEN - - 39 THEN NULL WHEN - 48 * + 76 THEN - 54 ELSE NULL END + + 58 * + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT + - 17 + + 75 / ( + 99 ) * - - CAST ( NULL AS INTEGER ) + - CASE 82 WHEN - - 39 THEN NULL WHEN - 48 * + 76 THEN - 54 ELSE NULL END + + 58 * + 63 AS col0
----
NULL

query I rowsort
SELECT - - 10 + 96 * - 1 + 26 AS col0
----
-60

query I rowsort
SELECT - - 46 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT DISTINCT + SUM( ALL + 99 ) + + 91
----
190

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT + SUM ( ALL + 99 ) + + 91
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT - COUNT( * ) + - + 54 * - 66 AS col1
----
3563

skipif mysql # not compatible
query I rowsort label-6999
SELECT - COUNT ( * ) + - + 54 * - 66 AS col1
----
3563

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT - 40 + 93 + 16 * + 43 - - COUNT( * ) col2
----
742

skipif mysql # not compatible
query I rowsort label-7000
SELECT - 40 + 93 + 16 * + 43 - - COUNT ( * ) col2
----
742

onlyif mysql # aggregate syntax: 
query II rowsort label-7001
SELECT ( + 50 ) AS col2, SUM( 78 ) AS col1
----
50
78

skipif mysql # not compatible
query II rowsort label-7001
SELECT ( + 50 ) AS col2, SUM ( 78 ) AS col1
----
50
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7002
SELECT ALL - COALESCE ( 76, NULLIF ( + 97, - 67 ) ) DIV + COUNT( * ) - + 47 col1
----
-123

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL - COALESCE ( 76, NULLIF ( + 97, - 67 ) ) / + COUNT ( * ) - + 47 col1
----
-123

query II rowsort
SELECT + + 94 + + 19 AS col2, - 8 AS col1
----
113
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT + + COUNT( DISTINCT - 12 ) * + 54 - + - 3
----
57

skipif mysql # not compatible
query I rowsort label-7004
SELECT + + COUNT ( DISTINCT - 12 ) * + 54 - + - 3
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7005
SELECT ALL + CASE MAX( DISTINCT 34 ) WHEN 36 THEN + 89 * - CAST( NULL AS SIGNED ) + COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL + CASE MAX ( DISTINCT 34 ) WHEN 36 THEN + 89 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ( 57 ) * + 42 + + + 13 + - - COUNT( * ) AS col1
----
2408

skipif mysql # not compatible
query I rowsort label-7006
SELECT ( 57 ) * + 42 + + + 13 + - - COUNT ( * ) AS col1
----
2408

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT 34 * + COALESCE ( - 3, - 51 * - CASE - COUNT( * ) WHEN + 56 THEN + + 8 WHEN + 58 THEN + 82 WHEN + + 60 THEN - 16 * 11 + + COUNT( * ) - 84 END * + 70 ) * + + 32 + 5 col0
----
-3259

skipif mysql # not compatible
query I rowsort label-7007
SELECT 34 * + COALESCE ( - 3, - 51 * - CASE - COUNT ( * ) WHEN + 56 THEN + + 8 WHEN + 58 THEN + 82 WHEN + + 60 THEN - 16 * 11 + + COUNT ( * ) - 84 END * + 70 ) * + + 32 + 5 col0
----
-3259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7008
SELECT ( - - ( - 22 ) ) * - COALESCE ( - + COUNT( * ), + - MAX( - 89 ) * + 72 * + - MAX( ALL - 97 ) + CAST( NULL AS SIGNED ) * ( - - 17 ) * - - 19 * + 92 * COUNT( * ) * 22 ) + 75 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7008
SELECT ( - - ( - 22 ) ) * - COALESCE ( - + COUNT ( * ), + - MAX ( - 89 ) * + 72 * + - MAX ( ALL - 97 ) + CAST ( NULL AS INTEGER ) * ( - - 17 ) * - - 19 * + 92 * COUNT ( * ) * 22 ) + 75 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT 59 + - COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7009
SELECT 59 + - COUNT ( * ) AS col2
----
58

query I rowsort
SELECT ALL 69 * + 5 AS col0
----
345

onlyif mysql # DIV for integer division: 
query I rowsort label-7011
SELECT 66 DIV - 21 col1
----
-3

skipif mysql # not compatible
query I rowsort label-7011
SELECT 66 / - 21 col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7012
SELECT ALL 81 DIV 29 * - MAX( DISTINCT + 57 ) * 7 AS col1
----
-798

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL 81 / 29 * - MAX ( DISTINCT + 57 ) * 7 AS col1
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT DISTINCT - MAX( ALL + 73 ) + - - COUNT( * ) + - + 70 * + 47 AS col1
----
-3362

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT - MAX ( ALL + 73 ) + - - COUNT ( * ) + - + 70 * + 47 AS col1
----
-3362

query I rowsort
SELECT DISTINCT 98 * + 43
----
4214

query II rowsort
SELECT - 26 * 45 + + 33, + 71 AS col1
----
-1137
71

query I rowsort
SELECT 18 * 80 + + 71 * + 97
----
8327

query I rowsort
SELECT ALL 33 * - 48
----
-1584

onlyif mysql # DIV for integer division: 
query I rowsort label-7018
SELECT 56 DIV - 2
----
-28

skipif mysql # not compatible
query I rowsort label-7018
SELECT 56 / - 2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7019
SELECT 91 DIV ( 87 ) * 7
----
7

skipif mysql # not compatible
query I rowsort label-7019
SELECT 91 / ( 87 ) * 7
----
7

query I rowsort
SELECT 94 + - 55
----
39

query II rowsort
SELECT DISTINCT 40, 80 AS col0
----
40
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT ALL COUNT( * ) + CASE + - 46 WHEN - 48 THEN + 73 + 93 WHEN + CASE - 75 WHEN + COALESCE ( 46, COALESCE ( - 1, + 71 ) * + + 90 * - 57 * AVG ( DISTINCT 75 ) + - - 22 ) THEN 43 WHEN 80 THEN NULL END THEN - ( ( + 45 ) ) + 66 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL COUNT ( * ) + CASE + - 46 WHEN - 48 THEN + 73 + 93 WHEN + CASE - 75 WHEN + COALESCE ( 46, COALESCE ( - 1, + 71 ) * + + 90 * - 57 * AVG ( DISTINCT 75 ) + - - 22 ) THEN 43 WHEN 80 THEN NULL END THEN - ( ( + 45 ) ) + 66 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL 85 + + MAX( DISTINCT - 15 )
----
70

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL 85 + + MAX ( DISTINCT - 15 )
----
70

query I rowsort
SELECT 45 + - 24 + 14 + ( + 26 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT DISTINCT - 64 + NULLIF ( + 89, - - COUNT( 4 ) )
----
25

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT - 64 + NULLIF ( + 89, - - COUNT ( 4 ) )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7026
SELECT ALL + COUNT( * ) AS col2, 23 AS col1
----
1
23

skipif mysql # not compatible
query II rowsort label-7026
SELECT ALL + COUNT ( * ) AS col2, 23 AS col1
----
1
23

query I rowsort
SELECT ALL 92 + + - 87
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT ALL - CAST( - 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - CAST ( - 11 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT CASE ( - SUM( ALL - 13 ) ) WHEN COUNT( * ) THEN - + 33 * - ( + + 98 ) ELSE + + 79 END AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7029
SELECT CASE ( - SUM ( ALL - 13 ) ) WHEN COUNT ( * ) THEN - + 33 * - ( + + 98 ) ELSE + + 79 END AS col1
----
79

query I rowsort
SELECT ALL + 14 + + 51
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT COUNT( * ) + 50
----
51

skipif mysql # not compatible
query I rowsort label-7031
SELECT COUNT ( * ) + 50
----
51

query I rowsort
SELECT DISTINCT - 28 + + 71
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT DISTINCT - COUNT( * ) * 23
----
-23

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT - COUNT ( * ) * 23
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7034
SELECT 37 AS col2, + 79 * - 30 * 16 * + 10 + - + CASE WHEN NOT - 42 IS NULL THEN NULL WHEN + COALESCE ( + - 10, 49 ) + 55 IN ( CAST( NULL AS SIGNED ) + + SUM( DISTINCT - 76 ) - + COUNT( * ) ) THEN 21 ELSE + 1 + 35 END * 46 AS col0
----
37
NULL

skipif mysql # not compatible
query II rowsort label-7034
SELECT 37 AS col2, + 79 * - 30 * 16 * + 10 + - + CASE WHEN NOT - 42 IS NULL THEN NULL WHEN + COALESCE ( + - 10, 49 ) + 55 IN ( CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT - 76 ) - + COUNT ( * ) ) THEN 21 ELSE + 1 + 35 END * 46 AS col0
----
37
NULL

query I rowsort
SELECT + 85 + 27 * 4
----
193

query I rowsort
SELECT ALL - 79 * + + 86 AS col1
----
-6794

onlyif mysql # DIV for integer division: 
query I rowsort label-7037
SELECT 94 DIV + 8 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7037
SELECT 94 / + 8 AS col1
----
11

query I rowsort
SELECT - + 86 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT ALL - MIN( + - COALESCE ( - ( - 76 ), 32 ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL - MIN ( + - COALESCE ( - ( - 76 ), 32 ) ) AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT 31 * COALESCE ( + 72, + 6 DIV - 53, - 84 * - 64, 10 ) AS col2
----
2232

skipif mysql # not compatible
query I rowsort label-7040
SELECT 31 * COALESCE ( + 72, + 6 / - 53, - 84 * - 64, 10 ) AS col2
----
2232

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT 34 DIV + 7
----
4

skipif mysql # not compatible
query I rowsort label-7041
SELECT 34 / + 7
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT COUNT( - - 22 ) * + 92 + - 90 + - 93
----
-91

skipif mysql # not compatible
query I rowsort label-7042
SELECT COUNT ( - - 22 ) * + 92 + - 90 + - 93
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7043
SELECT ALL + 85 * + + CAST( COUNT( * ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL + 85 * + + CAST ( COUNT ( * ) AS INTEGER )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7044
SELECT DISTINCT - 40 + 23, CAST( NULL AS SIGNED ) AS col0
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-7044
SELECT DISTINCT - 40 + 23, CAST ( NULL AS INTEGER ) AS col0
----
-17
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7045
SELECT 69 * + 78 AS col0, + 49 + - COALESCE ( - - 60, - + CASE + - 19 WHEN COUNT( * ) * + 85 THEN NULL WHEN - 85 THEN - COALESCE ( + + MIN( + 32 ), 97 ) ELSE - 53 + - COUNT( * ) * + + NULLIF ( + + COUNT( * ), - 15 * 9 ) + 97 END * - 20, - 4 )
----
5382
-11

skipif mysql # not compatible
query II rowsort label-7045
SELECT 69 * + 78 AS col0, + 49 + - COALESCE ( - - 60, - + CASE + - 19 WHEN COUNT ( * ) * + 85 THEN NULL WHEN - 85 THEN - COALESCE ( + + MIN ( + 32 ), 97 ) ELSE - 53 + - COUNT ( * ) * + + NULLIF ( + + COUNT ( * ), - 15 * 9 ) + 97 END * - 20, - 4 )
----
5382
-11

query I rowsort
SELECT ALL - 23 + + 78 AS col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7047
SELECT 40 + + 39 * - ( MIN( - - 99 ) ), - 67 AS col1
----
-3821
-67

skipif mysql # not compatible
query II rowsort label-7047
SELECT 40 + + 39 * - ( MIN ( - - 99 ) ), - 67 AS col1
----
-3821
-67

query I rowsort
SELECT - 22 * + + 13 + + - 89
----
-375

query I rowsort
SELECT DISTINCT 92 + 27 + 50 + - 1 + 73 col2
----
241

query I rowsort
SELECT 94 * 88
----
8272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7051
SELECT CASE WHEN NOT ( NOT ( NULL ) >= + + 28 ) OR NOT - NULLIF ( + + 10, - COUNT( * ) * + - NULLIF ( + - 74, 60 ) * - CAST( + + 34 AS SIGNED ) * 20 ) + - 53 IS NULL THEN + + 68 ELSE 58 * + 79 END - 7 * - 89
----
691

skipif mysql # not compatible
query I rowsort label-7051
SELECT CASE WHEN NOT ( NOT ( NULL ) >= + + 28 ) OR NOT - NULLIF ( + + 10, - COUNT ( * ) * + - NULLIF ( + - 74, 60 ) * - CAST ( + + 34 AS INTEGER ) * 20 ) + - 53 IS NULL THEN + + 68 ELSE 58 * + 79 END - 7 * - 89
----
691

query I rowsort
SELECT 84 + + - 38
----
46

query I rowsort
SELECT ALL 36 * 80
----
2880

query I rowsort
SELECT DISTINCT 76 + - 67 + + 2 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT ALL - 65 + + 31 - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL - 65 + + 31 - COUNT ( * )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7056
SELECT ALL CAST( 62 AS SIGNED ) + - - COUNT( + CAST( + ( - - 78 ) AS SIGNED ) )
----
63

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL CAST ( 62 AS INTEGER ) + - - COUNT ( + CAST ( + ( - - 78 ) AS INTEGER ) )
----
63

query I rowsort
SELECT - 33 * - 16 - + 0
----
528

query I rowsort
SELECT ALL 3 * - 1 * 37 AS col1
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7059
SELECT + COUNT( * ) / + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT + COUNT ( * ) / + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 99 - - 84 + + 95
----
278

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL COUNT( * ) * - 84 * + 69
----
-5796

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL COUNT ( * ) * - 84 * + 69
----
-5796

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT - COUNT( DISTINCT - - 97 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7062
SELECT - COUNT ( DISTINCT - - 97 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT + 0 * 52 * - ( - MIN( - 6 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7063
SELECT + 0 * 52 * - ( - MIN ( - 6 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL + 39 * - 67 + - + COUNT( * ) AS col2
----
-2614

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL + 39 * - 67 + - + COUNT ( * ) AS col2
----
-2614

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT DISTINCT COUNT( - 97 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT COUNT ( - 97 ) AS col0
----
1

query I rowsort
SELECT + 49 * - 29 col0
----
-1421

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7067
SELECT ALL - CAST( 40 AS SIGNED ) * ( - 77 ) AS col0, COALESCE ( + 54, - 76 ) AS col0
----
3080
54

skipif mysql # not compatible
query II rowsort label-7067
SELECT ALL - CAST ( 40 AS INTEGER ) * ( - 77 ) AS col0, COALESCE ( + 54, - 76 ) AS col0
----
3080
54

query I rowsort
SELECT - + 61 - ( 69 ) AS col0
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT DISTINCT - CASE - 67 WHEN + 18 + + 63 + + ( + AVG ( ALL 35 ) ) + - 54 * + 76 THEN - 94 + 38 * - + 17 WHEN - 78 + - ( + + COUNT( ( + 42 ) ) ) * 57 * 15 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT - CASE - 67 WHEN + 18 + + 63 + + ( + AVG ( ALL 35 ) ) + - 54 * + 76 THEN - 94 + 38 * - + 17 WHEN - 78 + - ( + + COUNT ( ( + 42 ) ) ) * 57 * 15 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL COUNT( - 12 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL COUNT ( - 12 ) AS col0
----
1

query I rowsort
SELECT + + 92 + - 15
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7072
SELECT ALL 46 * 70 + + + 15 + - 98 * NULLIF ( 96, 95 * COUNT( * ) * + + CAST( CASE COUNT( 22 ) WHEN + + 9 THEN CASE + + 79 WHEN - - 64 THEN NULL WHEN - + COUNT( * ) / + 78 * - 90 THEN + CAST( - 23 AS SIGNED ) - + 74 END WHEN + 76 THEN NULL WHEN - 92 THEN NULL ELSE NULL END AS SIGNED ) ) * + COUNT( * )
----
-6173

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL 46 * 70 + + + 15 + - 98 * NULLIF ( 96, 95 * COUNT ( * ) * + + CAST ( CASE COUNT ( 22 ) WHEN + + 9 THEN CASE + + 79 WHEN - - 64 THEN NULL WHEN - + COUNT ( * ) / + 78 * - 90 THEN + CAST ( - 23 AS INTEGER ) - + 74 END WHEN + 76 THEN NULL WHEN - 92 THEN NULL ELSE NULL END AS INTEGER ) ) * + COUNT ( * )
----
-6173

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT + - 17 + MAX( DISTINCT 6 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7073
SELECT + - 17 + MAX ( DISTINCT 6 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT - MAX( ALL + 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-7074
SELECT - MAX ( ALL + 67 ) AS col0
----
-67

query I rowsort
SELECT ALL - 17 * + 4
----
-68

query I rowsort
SELECT + 5 + 19 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT DISTINCT - MAX( + 74 ) * - 74 + + NULLIF ( SUM( 44 ), + + COALESCE ( 18, ( 55 ) + ( - 93 ) * + 6 / + 84 + + - 74 ) ) AS col0
----
5520

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT - MAX ( + 74 ) * - 74 + + NULLIF ( SUM ( 44 ), + + COALESCE ( 18, ( 55 ) + ( - 93 ) * + 6 / + 84 + + - 74 ) ) AS col0
----
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT DISTINCT - 24 * - - 5 + - COUNT( + 39 ) col0
----
-121

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT - 24 * - - 5 + - COUNT ( + 39 ) col0
----
-121

query I rowsort
SELECT DISTINCT + 0 * + 15
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7080
SELECT + 19 * + 28 + - 71, + SUM( - 55 ) AS col0
----
461
-55

skipif mysql # not compatible
query II rowsort label-7080
SELECT + 19 * + 28 + - 71, + SUM ( - 55 ) AS col0
----
461
-55

query I rowsort
SELECT + 46 * - - NULLIF ( 90, + 15 + 84 * + - 14 )
----
4140

query I rowsort
SELECT ALL 37 * + 81 + + 74 AS col1
----
3071

query I rowsort
SELECT NULLIF ( + 77, - + 91 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT 55 DIV + 51 + + 85 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-7084
SELECT 55 / + 51 + + 85 AS col0
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7085
SELECT - CAST( NULL AS DECIMAL ) + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT - CAST ( NULL AS REAL ) + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL 81 * + 36 + + COUNT( * ) + 18 + - + 42
----
2893

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL 81 * + 36 + + COUNT ( * ) + 18 + - + 42
----
2893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7087
SELECT - NULLIF ( - COALESCE ( - + 40, - + MAX( - 60 ) ), - CAST( NULL AS SIGNED ) * 85 ) * 95 AS col2
----
-3800

skipif mysql # not compatible
query I rowsort label-7087
SELECT - NULLIF ( - COALESCE ( - + 40, - + MAX ( - 60 ) ), - CAST ( NULL AS INTEGER ) * 85 ) * 95 AS col2
----
-3800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7088
SELECT 28 * + 87 * - - 80 + + 20 + 39 AS col0, + 6 + CAST( NULL AS SIGNED )
----
194939
NULL

skipif mysql # not compatible
query II rowsort label-7088
SELECT 28 * + 87 * - - 80 + + 20 + 39 AS col0, + 6 + CAST ( NULL AS INTEGER )
----
194939
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7089
SELECT ALL CAST( + 63 AS SIGNED ) * - + 14 + + ( + 18 ) + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL CAST ( + 63 AS INTEGER ) * - + 14 + + ( + 18 ) + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 0, 23 * + - 52 ) AS col2
----
0

query I rowsort
SELECT DISTINCT 49 * - 91 + 4
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT DISTINCT 38 * + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT 38 * + COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT + MIN( DISTINCT + - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT + MIN ( DISTINCT + - 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT + SUM( - + 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7094
SELECT + SUM ( - + 45 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT + MAX( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-7095
SELECT + MAX ( 59 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7096
SELECT - - COUNT( * ) * 34 + - - 13, 83 AS col0
----
47
83

skipif mysql # not compatible
query II rowsort label-7096
SELECT - - COUNT ( * ) * 34 + - - 13, 83 AS col0
----
47
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7097
SELECT + CAST( + + CAST( + - 17 AS SIGNED ) AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-7097
SELECT + CAST ( + + CAST ( + - 17 AS INTEGER ) AS INTEGER )
----
-17

query I rowsort
SELECT + + 59 + 17
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7099
SELECT ALL + NULLIF ( ( + CAST( 83 AS SIGNED ) ), 33 ) * - + COUNT( * ) + CAST( - 71 AS SIGNED ) DIV 42 * - - 37 - ( + 2 ) + + + 39 DIV - 95
----
-122

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL + NULLIF ( ( + CAST ( 83 AS INTEGER ) ), 33 ) * - + COUNT ( * ) + CAST ( - 71 AS INTEGER ) / 42 * - - 37 - ( + 2 ) + + + 39 / - 95
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-7100
SELECT 92 AS col1, - 95 * + COUNT( * )
----
92
-95

skipif mysql # not compatible
query II rowsort label-7100
SELECT 92 AS col1, - 95 * + COUNT ( * )
----
92
-95

query I rowsort
SELECT - - CASE COALESCE ( - - 22, 69 ) WHEN 38 THEN - 42 ELSE NULL END * - - 80
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7102
SELECT ALL - 34, + MIN( DISTINCT - - 94 ) AS col0
----
-34
94

skipif mysql # not compatible
query II rowsort label-7102
SELECT ALL - 34, + MIN ( DISTINCT - - 94 ) AS col0
----
-34
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7103
SELECT ALL + 80 col1, 82 * - CASE + + COUNT( DISTINCT 57 ) WHEN + COUNT( * ) * - 48 * + 45 * - 36 + ( - 56 ) * + 16 * - 68 * + 70 THEN NULL WHEN + + ( 91 ) THEN - COALESCE ( + 50, - 50 ) END * 41
----
80
NULL

skipif mysql # not compatible
query II rowsort label-7103
SELECT ALL + 80 col1, 82 * - CASE + + COUNT ( DISTINCT 57 ) WHEN + COUNT ( * ) * - 48 * + 45 * - 36 + ( - 56 ) * + 16 * - 68 * + 70 THEN NULL WHEN + + ( 91 ) THEN - COALESCE ( + 50, - 50 ) END * 41
----
80
NULL

query I rowsort
SELECT DISTINCT + ( 47 ) col2
----
47

query I rowsort
SELECT - + 57 col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7106
SELECT + - 32 * + 56 * - - 7 + 61 + + 5 * - + NULLIF ( 98, COALESCE ( - 59, 80 * - ( 13 ) - - 72 ) ) DIV - + 82 + + + 54 + ( - 39 ) DIV - - 79 * - - 25 * - COUNT( * ) - - 46 * 96
----
-8008

skipif mysql # not compatible
query I rowsort label-7106
SELECT + - 32 * + 56 * - - 7 + 61 + + 5 * - + NULLIF ( 98, COALESCE ( - 59, 80 * - ( 13 ) - - 72 ) ) / - + 82 + + + 54 + ( - 39 ) / - - 79 * - - 25 * - COUNT ( * ) - - 46 * 96
----
-8008

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT COUNT( * ) * - + ( COUNT( - 44 ) ) - - - COUNT( * ) + + + 5 * - SUM( DISTINCT 98 ) AS col1
----
-492

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT COUNT ( * ) * - + ( COUNT ( - 44 ) ) - - - COUNT ( * ) + + + 5 * - SUM ( DISTINCT 98 ) AS col1
----
-492

query II rowsort
SELECT - 79 AS col0, 9
----
-79
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT + - 46 DIV + 55 + + 9
----
9

skipif mysql # not compatible
query I rowsort label-7109
SELECT + - 46 / + 55 + + 9
----
9

query I rowsort
SELECT + - ( - 95 ) + + 73 AS col1
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT ALL 39 * - CASE 0 WHEN - 27 * - 92 THEN NULL WHEN + 46 * - 95 THEN NULL ELSE + + 18 END + - - 68 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL 39 * - CASE 0 WHEN - 27 * - 92 THEN NULL WHEN + 46 * - 95 THEN NULL ELSE + + 18 END + - - 68 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 77 * + 42
----
-3234

query I rowsort
SELECT + + 72 * - 71
----
-5112

query I rowsort
SELECT + 83 + + 93
----
176

query I rowsort
SELECT ALL 76 + 65
----
141

query I rowsort
SELECT - ( - 26 ) col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT ALL MAX( DISTINCT - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL MAX ( DISTINCT - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ALL CASE COUNT( * ) WHEN - 83 * - - 61 - - - 32 * + 9 + - + COUNT( ALL 46 ) THEN - - 70 + - COALESCE ( AVG ( DISTINCT + 66 ), - + 0 + + 84 + + + 96 + + + 66 ) - + 85 END + + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL CASE COUNT ( * ) WHEN - 83 * - - 61 - - - 32 * + 9 + - + COUNT ( ALL 46 ) THEN - - 70 + - COALESCE ( AVG ( DISTINCT + 66 ), - + 0 + + 84 + + + 96 + + + 66 ) - + 85 END + + - 13
----
NULL

query I rowsort
SELECT - NULLIF ( 66, - 74 + + 97 )
----
-66

query II rowsort
SELECT ALL 10, ( - 14 ) AS col2
----
10
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT + COUNT( * ) * + 48
----
48

skipif mysql # not compatible
query I rowsort label-7121
SELECT + COUNT ( * ) * + 48
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7122
SELECT - NULLIF ( - 68, + 44 / - 14 * + + 74 + + 31 ) * + NULLIF ( - + CAST( NULL AS SIGNED ), COUNT( * ) - - 2 ) + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7122
SELECT - NULLIF ( - 68, + 44 / - 14 * + + 74 + + 31 ) * + NULLIF ( - + CAST ( NULL AS INTEGER ), COUNT ( * ) - - 2 ) + + 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7123
SELECT + 18 AS col2, SUM( 2 )
----
18
2

skipif mysql # not compatible
query II rowsort label-7123
SELECT + 18 AS col2, SUM ( 2 )
----
18
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT ALL 8 DIV - + 37 + - + ( 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL 8 / - + 37 + - + ( 8 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT CAST( + + MAX( + 8 ) AS SIGNED ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7125
SELECT CAST ( + + MAX ( + 8 ) AS INTEGER ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL + 51 * + COALESCE ( - 67, + - 38 + - - SUM( DISTINCT + 52 ) * 31, 93, + MAX( DISTINCT + 52 ) + 34 + 97 + 75 * + 13 )
----
-3417

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL + 51 * + COALESCE ( - 67, + - 38 + - - SUM ( DISTINCT + 52 ) * 31, 93, + MAX ( DISTINCT + 52 ) + 34 + 97 + 75 * + 13 )
----
-3417

onlyif mysql # DIV for integer division: 
query I rowsort label-7127
SELECT DISTINCT 76 DIV + 94 + - + 21 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT 76 / + 94 + - + 21 AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT ALL 45 DIV + 45 - + 0
----
1

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL 45 / + 45 - + 0
----
1

query II rowsort
SELECT + 32 AS col2, 20
----
32
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT - 62 * + MAX( ALL + - 21 )
----
1302

skipif mysql # not compatible
query I rowsort label-7130
SELECT - 62 * + MAX ( ALL + - 21 )
----
1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7131
SELECT 60 * - 88 + SUM( ALL - + ( - 14 ) ) + + - ( - - ( - 51 ) ) * + CAST( + - 96 AS SIGNED ) * - COALESCE ( + + ( - + CASE - + ( + 90 ) WHEN + CASE 63 WHEN - MAX( + CAST( NULL AS SIGNED ) ) * 14 + - 79 * 61 THEN - 46 WHEN - 0 THEN + 94 END * 38 - + 3 THEN + 19 + - ( - NULLIF ( + 78, + MIN( DISTINCT 1 ) ) ) ELSE - 93 + CASE 49 WHEN 99 THEN + 82 END END ), + ( - 82 ) * + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT 60 * - 88 + SUM ( ALL - + ( - 14 ) ) + + - ( - - ( - 51 ) ) * + CAST ( + - 96 AS INTEGER ) * - COALESCE ( + + ( - + CASE - + ( + 90 ) WHEN + CASE 63 WHEN - MAX ( + CAST ( NULL AS INTEGER ) ) * 14 + - 79 * 61 THEN - 46 WHEN - 0 THEN + 94 END * 38 - + 3 THEN + 19 + - ( - NULLIF ( + 78, + MIN ( DISTINCT 1 ) ) ) ELSE - 93 + CASE 49 WHEN 99 THEN + 82 END END ), + ( - 82 ) * + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ( - - 51 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7133
SELECT ALL + COUNT( * ) col2, - 74
----
1
-74

skipif mysql # not compatible
query II rowsort label-7133
SELECT ALL + COUNT ( * ) col2, - 74
----
1
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT - + 63 DIV + + 99 * 30 + + 84
----
84

skipif mysql # not compatible
query I rowsort label-7134
SELECT - + 63 / + + 99 * 30 + + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT + 55 * - COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7135
SELECT + 55 * - COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT - 24 + - - 90 - 58
----
8

query I rowsort
SELECT - 82 + NULLIF ( 1, - 84 + 92 ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7138
SELECT DISTINCT + CASE + CAST( + 70 AS SIGNED ) WHEN + 29 THEN COUNT( - 25 ) WHEN - 39 THEN 62 * + COUNT( * ) WHEN + 8 THEN - - 99 * - 98 ELSE + + 2 END * + 16 + + - 43 / CASE + 16 WHEN - - AVG ( ALL 6 ) THEN NULL WHEN - ( - + COUNT( * ) ) THEN AVG ( ALL ( + 68 ) ) - + 65 END * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT + CASE + CAST ( + 70 AS INTEGER ) WHEN + 29 THEN COUNT ( - 25 ) WHEN - 39 THEN 62 * + COUNT ( * ) WHEN + 8 THEN - - 99 * - 98 ELSE + + 2 END * + 16 + + - 43 / CASE + 16 WHEN - - AVG ( ALL 6 ) THEN NULL WHEN - ( - + COUNT ( * ) ) THEN AVG ( ALL ( + 68 ) ) - + 65 END * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT ALL + COUNT( 20 )
----
1

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL + COUNT ( 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT + SUM( DISTINCT + 61 ) + - - 40
----
101

skipif mysql # not compatible
query I rowsort label-7140
SELECT + SUM ( DISTINCT + 61 ) + - - 40
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-7141
SELECT 81 AS col1, MIN( - 54 ) + 99 + NULLIF ( 2, - 55 * - ( + 58 ) * + 99 ) - - 17 * + 94 * - 57 * + + 17 * - + COUNT( ALL - NULLIF ( - + 89, - 43 / 31 + 91 ) )
----
81
1548509

skipif mysql # not compatible
query II rowsort label-7141
SELECT 81 AS col1, MIN ( - 54 ) + 99 + NULLIF ( 2, - 55 * - ( + 58 ) * + 99 ) - - 17 * + 94 * - 57 * + + 17 * - + COUNT ( ALL - NULLIF ( - + 89, - 43 / 31 + 91 ) )
----
81
1548509

onlyif mysql # aggregate syntax: 
query II rowsort label-7142
SELECT - 71 * + + 2 col2, 23 - COUNT( * )
----
-142
22

skipif mysql # not compatible
query II rowsort label-7142
SELECT - 71 * + + 2 col2, 23 - COUNT ( * )
----
-142
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7143
SELECT 87 + - 19 DIV - 48 * - + 14 * ( 63 ) * + - 41 * + - ( + 44 ) * ( 23 ) + + 31 + + COUNT( * ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-7143
SELECT 87 + - 19 / - 48 * - + 14 * ( 63 ) * + - 41 * + - ( + 44 ) * ( 23 ) + + 31 + + COUNT ( * ) AS col1
----
119

query II rowsort
SELECT - 68 AS col1, 60
----
-68
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7145
SELECT ALL - - 53 + - 27 + - 12 + - NULLIF ( - 57, - + 96 - - + COUNT( * ) + + CASE + 62 WHEN - ( - + 4 ) THEN + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - 46 WHEN + - ( - + 7 ) THEN NULL WHEN - - 92 THEN NULL END + - - 5 * 34 - + + 89 * ( 70 ) * - 92 ) * 14
----
812

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - - 53 + - 27 + - 12 + - NULLIF ( - 57, - + 96 - - + COUNT ( * ) + + CASE + 62 WHEN - ( - + 4 ) THEN + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 46 WHEN + - ( - + 7 ) THEN NULL WHEN - - 92 THEN NULL END + - - 5 * 34 - + + 89 * ( 70 ) * - 92 ) * 14
----
812

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7146
SELECT - + 64 AS col0, 27 * + + CAST( NULL AS SIGNED )
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-7146
SELECT - + 64 AS col0, 27 * + + CAST ( NULL AS INTEGER )
----
-64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT DISTINCT - 37 + - CASE - 8 WHEN ( + - COUNT( * ) ) THEN - - MIN( + + 67 ) + - NULLIF ( + 49, + - 77 - 82 ) * - NULLIF ( 50, 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT - 37 + - CASE - 8 WHEN ( + - COUNT ( * ) ) THEN - - MIN ( + + 67 ) + - NULLIF ( + 49, + - 77 - 82 ) * - NULLIF ( 50, 58 ) END
----
NULL

query I rowsort
SELECT ( + - 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7149
SELECT + CASE - + 77 WHEN + 31 THEN + MAX( ALL - + ( CAST( NULL AS SIGNED ) ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT + CASE - + 77 WHEN + 31 THEN + MAX ( ALL - + ( CAST ( NULL AS INTEGER ) ) ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT ALL MIN( DISTINCT 33 ) + + + 77 * 91 + + + 30 + - 79
----
6991

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL MIN ( DISTINCT 33 ) + + + 77 * 91 + + + 30 + - 79
----
6991

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT DISTINCT - 81 DIV 54 col2
----
-1

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT - 81 / 54 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT 40 + 91 + - NULLIF ( - - ( + 89 ), - + 63 * + 17 + - + 38 + + + COUNT( * ) ) * + SUM( ALL 39 )
----
-3340

skipif mysql # not compatible
query I rowsort label-7152
SELECT 40 + 91 + - NULLIF ( - - ( + 89 ), - + 63 * + 17 + - + 38 + + + COUNT ( * ) ) * + SUM ( ALL 39 )
----
-3340

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT MIN( ALL - 1 ) - 14
----
-15

skipif mysql # not compatible
query I rowsort label-7153
SELECT MIN ( ALL - 1 ) - 14
----
-15

query I rowsort
SELECT ALL 17 * + - 71 AS col2
----
-1207

query I rowsort
SELECT 50 + 88 + - - 23 col0
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT 85 DIV + 14 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7156
SELECT 85 / + 14 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT ALL 34 + + MAX( 32 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL 34 + + MAX ( 32 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT COUNT( ALL - 81 ) + - + 17 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7158
SELECT COUNT ( ALL - 81 ) + - + 17 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT CASE - COUNT( * ) WHEN - 37 THEN - 81 END * + 74 * - 71 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT CASE - COUNT ( * ) WHEN - 37 THEN - 81 END * + 74 * - 71 col0
----
NULL

query I rowsort
SELECT ALL - 64 * 2
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7161
SELECT DISTINCT + 10 - - - 12 + - 37 DIV COUNT( * ) + - 3
----
-42

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + 10 - - - 12 + - 37 / COUNT ( * ) + - 3
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT - 72 DIV + 52 + - + 94
----
-95

skipif mysql # not compatible
query I rowsort label-7162
SELECT - 72 / + 52 + - + 94
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT - COUNT( * ) * + + 43 + 12 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7163
SELECT - COUNT ( * ) * + + 43 + 12 AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7164
SELECT 29 DIV + 17 DIV - COUNT( 59 ) DIV + + COUNT( + 39 ) + - COALESCE ( - 65, ( 76 ) * + 67 + - ( - 89 ), - - 25 * + 73 - - - 4 ) + + COUNT( * ) AS col2, 82 + - CAST( + 22 AS SIGNED ) AS col1
----
65
60

skipif mysql # not compatible
query II rowsort label-7164
SELECT 29 / + 17 / - COUNT ( 59 ) / + + COUNT ( + 39 ) + - COALESCE ( - 65, ( 76 ) * + 67 + - ( - 89 ), - - 25 * + 73 - - - 4 ) + + COUNT ( * ) AS col2, 82 + - CAST ( + 22 AS INTEGER ) AS col1
----
65
60

query I rowsort
SELECT + 22 * + ( + + NULLIF ( - ( + - 15 ), + 50 + + - 73 ) )
----
330

query I rowsort
SELECT DISTINCT - NULLIF ( + - 17, - 97 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7167
SELECT ALL - + NULLIF ( 45, - + 58 / - - 37 + - COUNT( * ) + 41 * 1 / - + COALESCE ( + 83, 1 / 58 * - 26 ) ), - 8 col1
----
-45
-8

skipif mysql # not compatible
query II rowsort label-7167
SELECT ALL - + NULLIF ( 45, - + 58 / - - 37 + - COUNT ( * ) + 41 * 1 / - + COALESCE ( + 83, 1 / 58 * - 26 ) ), - 8 col1
----
-45
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7168
SELECT ALL - MAX( - CAST( NULL AS DECIMAL ) ) * - CASE + 59 WHEN - 87 / - - ( - 57 ) - - 16 + + 90 * - 52 * + 60 / + - 29 * + - CAST( - 30 AS SIGNED ) THEN - 93 / - 28 * - 68 WHEN + 71 THEN NULL ELSE NULL END AS col0, CAST( + + COUNT( 0 ) AS SIGNED ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7168
SELECT ALL - MAX ( - CAST ( NULL AS REAL ) ) * - CASE + 59 WHEN - 87 / - - ( - 57 ) - - 16 + + 90 * - 52 * + 60 / + - 29 * + - CAST ( - 30 AS INTEGER ) THEN - 93 / - 28 * - 68 WHEN + 71 THEN NULL ELSE NULL END AS col0, CAST ( + + COUNT ( 0 ) AS INTEGER ) col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT DISTINCT - - COUNT( DISTINCT - 65 ) AS col1, 17
----
1
17

skipif mysql # not compatible
query II rowsort label-7169
SELECT DISTINCT - - COUNT ( DISTINCT - 65 ) AS col1, 17
----
1
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7170
SELECT ALL - COALESCE ( - - 74, 97 * + 49 * + + ( - + 17 ) * + 12 + ( - - 46 ) + - + 68, + 41 * - 20 ) + - - CASE - + 39 WHEN 94 THEN + MAX( ALL + 25 ) + - CAST( 14 AS SIGNED ) * ( - + 97 ) WHEN + 7 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL - COALESCE ( - - 74, 97 * + 49 * + + ( - + 17 ) * + 12 + ( - - 46 ) + - + 68, + 41 * - 20 ) + - - CASE - + 39 WHEN 94 THEN + MAX ( ALL + 25 ) + - CAST ( 14 AS INTEGER ) * ( - + 97 ) WHEN + 7 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7171
SELECT - 55 DIV - COUNT( * ) + - 22 + 10 - + 77 + - - 53 * + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7171
SELECT - 55 / - COUNT ( * ) + - 22 + 10 - + 77 + - - 53 * + COUNT ( * )
----
19

query I rowsort
SELECT DISTINCT - - ( - 80 ) + + + ( - 4 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT - 68 * + 95 * COUNT( * ) AS col1
----
-6460

skipif mysql # not compatible
query I rowsort label-7173
SELECT - 68 * + 95 * COUNT ( * ) AS col1
----
-6460

query I rowsort
SELECT 45 + + ( - 1 )
----
44

query I rowsort
SELECT ALL - + 50 + + ( 22 )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7176
SELECT ALL - - 25 + + 93 - + + 89 + + 89 + - + COUNT( * ) DIV - + 65 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - - 25 + + 93 - + + 89 + + 89 + - + COUNT ( * ) / - + 65 AS col2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7177
SELECT CAST( + 90 AS SIGNED ) + 94 + - 49 * + - 59 + + + 98 AS col2
----
3173

skipif mysql # not compatible
query I rowsort label-7177
SELECT CAST ( + 90 AS INTEGER ) + 94 + - 49 * + - 59 + + + 98 AS col2
----
3173

query I rowsort
SELECT DISTINCT - 8 + - + 98
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT + 5 + + 77 + - 90 + - 97 + + 5 * - - COUNT( * ) * - 16 + + 55 AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-7179
SELECT + 5 + + 77 + - 90 + - 97 + + 5 * - - COUNT ( * ) * - 16 + + 55 AS col2
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT ALL - + ( + 94 ) DIV - - 51
----
-1

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL - + ( + 94 ) / - - 51
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7181
SELECT + COALESCE ( + 19, CASE - 83 WHEN - CASE WHEN 87 > + AVG ( ALL + 2 ) THEN - - 58 WHEN NOT - 29 IN ( - - 25 * - - 24, - 59 + - 66, - 83 ) THEN NULL ELSE 70 + 6 END + + 28 THEN NULL WHEN CAST( + - 56 AS SIGNED ) THEN 24 END ) + CAST( NULLIF ( - 18, SUM( DISTINCT - 33 ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7181
SELECT + COALESCE ( + 19, CASE - 83 WHEN - CASE WHEN 87 > + AVG ( ALL + 2 ) THEN - - 58 WHEN NOT - 29 IN ( - - 25 * - - 24, - 59 + - 66, - 83 ) THEN NULL ELSE 70 + 6 END + + 28 THEN NULL WHEN CAST ( + - 56 AS INTEGER ) THEN 24 END ) + CAST ( NULLIF ( - 18, SUM ( DISTINCT - 33 ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT ALL - 53 + + COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL - 53 + + COUNT ( * ) AS col2
----
-52

query I rowsort
SELECT ALL + 68 * - - 76 * + - 83 AS col1
----
-428944

query I rowsort
SELECT ALL + 95 * 34 AS col0
----
3230

query I rowsort
SELECT 40 * 1 * 67 AS col1
----
2680

query I rowsort
SELECT DISTINCT - 77 + - 99 AS col2
----
-176

query I rowsort
SELECT ALL + 23 + 92 AS col2
----
115

query I rowsort
SELECT ALL - 68 * + 47
----
-3196

query II rowsort
SELECT 16, 43 + 6 AS col1
----
16
49

query I rowsort
SELECT 95 + + - 44
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL MIN( DISTINCT - 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL MIN ( DISTINCT - 40 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-7192
SELECT DISTINCT COUNT( * ), ( + + SUM( - 61 ) ) AS col2
----
1
-61

skipif mysql # not compatible
query II rowsort label-7192
SELECT DISTINCT COUNT ( * ), ( + + SUM ( - 61 ) ) AS col2
----
1
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL 16 * - CASE + - 91 WHEN - SUM( 64 ) / - - 32 THEN ( + + 28 ) * + 11 END * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL 16 * - CASE + - 91 WHEN - SUM ( 64 ) / - - 32 THEN ( + + 28 ) * + 11 END * + 19
----
NULL

query I rowsort
SELECT 4 * - 21
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7195
SELECT ALL - 33 DIV + 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL - 33 / + 38 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT DISTINCT MIN( DISTINCT ( 86 ) ), 89 AS col1
----
86
89

skipif mysql # not compatible
query II rowsort label-7196
SELECT DISTINCT MIN ( DISTINCT ( 86 ) ), 89 AS col1
----
86
89

query I rowsort
SELECT DISTINCT 62 * - 99
----
-6138

query II rowsort
SELECT ALL - 55, 39 * - + 73 AS col0
----
-55
-2847

query I rowsort
SELECT ALL 80 * - 1
----
-80

query I rowsort
SELECT 94 * + + 69
----
6486

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT NULLIF ( + 77, - 34 * COALESCE ( 28, - COUNT( * ) ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7201
SELECT NULLIF ( + 77, - 34 * COALESCE ( 28, - COUNT ( * ) ) ) AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7202
SELECT DISTINCT - + CAST( + + 78 AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - + CAST ( + + 78 AS INTEGER )
----
-78

query I rowsort
SELECT DISTINCT - 13 * - 33
----
429

query I rowsort
SELECT ALL - + 94 AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7205
SELECT ALL CAST( NULL AS DECIMAL ) / - 19 * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL CAST ( NULL AS REAL ) / - 19 * + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7206
SELECT + SUM( ALL 39 ) DIV - 43 - 58 col1
----
-58

skipif mysql # not compatible
query I rowsort label-7206
SELECT + SUM ( ALL 39 ) / - 43 - 58 col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT + MAX( + 79 ) * + + 85 + + - COALESCE ( + - ( 45 ), - + 61 )
----
6760

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT + MAX ( + 79 ) * + + 85 + + - COALESCE ( + - ( 45 ), - + 61 )
----
6760

query I rowsort
SELECT 50 * + ( + + 43 ) + + 30 + + 44 * 96 * - 76 + + + NULLIF ( + 29, 1 )
----
-318815

query II rowsort
SELECT ALL + + 83, 1 AS col1
----
83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT + MIN( ALL 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7210
SELECT + MIN ( ALL 12 ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7211
SELECT + + NULLIF ( - MAX( 3 ), + 23 * + CAST( - 59 AS SIGNED ) + 36 ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-7211
SELECT + + NULLIF ( - MAX ( 3 ), + 23 * + CAST ( - 59 AS INTEGER ) + 36 ) col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7212
SELECT ALL - COUNT( DISTINCT + CAST( - - 78 AS SIGNED ) ) * + ( - + CASE 84 WHEN - 9 + - 24 THEN NULL WHEN - ( - 49 ) + + - 30 * + 68 THEN NULL WHEN + 3 * CAST( - - 68 AS SIGNED ) + CAST( NULL AS SIGNED ) + + 36 THEN NULL ELSE + ( - + NULLIF ( + 8, + AVG ( NULLIF ( 56, 4 * + 69 ) ) DIV - CAST( NULL AS SIGNED ) ) ) DIV 23 - - 98 * 5 END ) + 28 + + 15 * + 71 AS col2
----
1583

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL - COUNT ( DISTINCT + CAST ( - - 78 AS INTEGER ) ) * + ( - + CASE 84 WHEN - 9 + - 24 THEN NULL WHEN - ( - 49 ) + + - 30 * + 68 THEN NULL WHEN + 3 * CAST ( - - 68 AS INTEGER ) + CAST ( NULL AS INTEGER ) + + 36 THEN NULL ELSE + ( - + NULLIF ( + 8, + AVG ( NULLIF ( 56, 4 * + 69 ) ) / - CAST ( NULL AS INTEGER ) ) ) / 23 - - 98 * 5 END ) + 28 + + 15 * + 71 AS col2
----
1583

query I rowsort
SELECT ALL 23 * 97 + - - COALESCE ( - 53, + 6 * + + 3 + - 41, + 3 * - 71 * 69 * + 20 + + ( + 4 ) + + + 30 ) col0
----
2178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7214
SELECT + + 82 * ( - - 38 ) / + CAST( NULL AS SIGNED ) + + - 79 - + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT + + 82 * ( - - 38 ) / + CAST ( NULL AS INTEGER ) + + - 79 - + 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT DISTINCT - COUNT( * ) * + 29 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT - COUNT ( * ) * + 29 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT DISTINCT 90 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT 90 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7217
SELECT DISTINCT + 19 DIV + 18
----
1

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT + 19 / + 18
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7218
SELECT DISTINCT 99 - + 84 + + 26 DIV - 88
----
15

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT 99 - + 84 + + 26 / - 88
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7219
SELECT ALL 58 / MIN( + - 36 ) / - - CASE 48 WHEN 74 THEN NULL WHEN 44 / + 4 + 57 + + 61 + + 11 + 41 THEN NULL WHEN - CAST( - + COUNT( * ) AS SIGNED ) THEN NULLIF ( 41, - 59 + - 42 ) + + - 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL 58 / MIN ( + - 36 ) / - - CASE 48 WHEN 74 THEN NULL WHEN 44 / + 4 + 57 + + 61 + + 11 + 41 THEN NULL WHEN - CAST ( - + COUNT ( * ) AS INTEGER ) THEN NULLIF ( 41, - 59 + - 42 ) + + - 54 END AS col2
----
NULL

query I rowsort
SELECT ALL - 37 * 34 AS col1
----
-1258

query II rowsort
SELECT - 39 - + 60 AS col2, 3
----
-99
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7222
SELECT - 9 + 84 - 28 - - - 22 * 77 AS col0, COUNT( * ) + + 95
----
-1647
96

skipif mysql # not compatible
query II rowsort label-7222
SELECT - 9 + 84 - 28 - - - 22 * 77 AS col0, COUNT ( * ) + + 95
----
-1647
96

query I rowsort
SELECT ALL - 29 * + 4
----
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT - 27 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT - 27 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 62 * + - 14
----
868

query I rowsort
SELECT ALL ( + ( 49 ) ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7227
SELECT - 79 + - + 16, + COUNT( + 73 ) col1
----
-95
1

skipif mysql # not compatible
query II rowsort label-7227
SELECT - 79 + - + 16, + COUNT ( + 73 ) col1
----
-95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT ALL - COUNT( * ) * 21
----
-21

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL - COUNT ( * ) * 21
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7229
SELECT DISTINCT + 50 DIV COUNT( ALL - 82 ) + - 30 * + - 71
----
2180

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT + 50 / COUNT ( ALL - 82 ) + - 30 * + - 71
----
2180

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT ALL + COALESCE ( + - COUNT( * ), - 19 + - 18 * + 58, + 19, - 87 - - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL + COALESCE ( + - COUNT ( * ), - 19 + - 18 * + 58, + 19, - 87 - - 1 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7231
SELECT + CAST( 83 AS SIGNED ) AS col2, + 26 * + 17 + + 40 AS col1
----
83
482

skipif mysql # not compatible
query II rowsort label-7231
SELECT + CAST ( 83 AS INTEGER ) AS col2, + 26 * + 17 + + 40 AS col1
----
83
482

query I rowsort
SELECT - + 79 * - 69
----
5451

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT + - SUM( DISTINCT + 36 ) + + - 84 AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-7233
SELECT + - SUM ( DISTINCT + 36 ) + + - 84 AS col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL - + 53 * - 71 * SUM( ALL - 64 ) + 94 + ( + + NULLIF ( + 25, - 6 ) ) * + MAX( DISTINCT + 69 ) AS col1
----
-239013

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL - + 53 * - 71 * SUM ( ALL - 64 ) + 94 + ( + + NULLIF ( + 25, - 6 ) ) * + MAX ( DISTINCT + 69 ) AS col1
----
-239013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7235
SELECT - - 5 * - COALESCE ( 36, NULLIF ( + 63, + + CASE - - ( - 59 ) WHEN + - 97 * + + 55 * - 15 THEN - - 70 END * + 2 + - 61 ), 67 * + 70 ) DIV COUNT( * ) AS col0
----
-180

skipif mysql # not compatible
query I rowsort label-7235
SELECT - - 5 * - COALESCE ( 36, NULLIF ( + 63, + + CASE - - ( - 59 ) WHEN + - 97 * + + 55 * - 15 THEN - - 70 END * + 2 + - 61 ), 67 * + 70 ) / COUNT ( * ) AS col0
----
-180

query I rowsort
SELECT + + 70 col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7237
SELECT ALL + 93 * - COUNT( * ) + 56 - + ( + + 16 ) DIV 51 * - SUM( ALL - - 23 )
----
-37

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL + 93 * - COUNT ( * ) + 56 - + ( + + 16 ) / 51 * - SUM ( ALL - - 23 )
----
-37

query I rowsort
SELECT - 64 * - 50
----
3200

query I rowsort
SELECT ALL + - NULLIF ( + 78, 43 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7240
SELECT DISTINCT 21 DIV - COALESCE ( - 92, - 65, + - COUNT( * ) ) + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT 21 / - COALESCE ( - 92, - 65, + - COUNT ( * ) ) + - 94
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-7241
SELECT - MAX( + 78 ), 96 AS col1
----
-78
96

skipif mysql # not compatible
query II rowsort label-7241
SELECT - MAX ( + 78 ), 96 AS col1
----
-78
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7242
SELECT - 58 * 3 + - + 93 + + ( + CAST( NULL AS SIGNED ) ) + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT - 58 * 3 + - + 93 + + ( + CAST ( NULL AS INTEGER ) ) + 39 AS col0
----
NULL

query I rowsort
SELECT + - 72 * - + 34 AS col0
----
2448

query I rowsort
SELECT ALL + + 83 col0
----
83

query II rowsort
SELECT ALL + 24 AS col2, 53 AS col2
----
24
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT + CAST( - NULLIF ( + + 73, - - 98 ) AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-7246
SELECT + CAST ( - NULLIF ( + + 73, - - 98 ) AS INTEGER )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT CASE 23 WHEN - 2 * + 96 THEN COUNT( ALL 55 ) WHEN - + 32 THEN - 76 + + + 16 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT CASE 23 WHEN - 2 * + 96 THEN COUNT ( ALL 55 ) WHEN - + 32 THEN - 76 + + + 16 + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT + COUNT( 52 ) + 81
----
82

skipif mysql # not compatible
query I rowsort label-7248
SELECT + COUNT ( 52 ) + 81
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7249
SELECT MIN( ALL - ( + CAST( NULL AS DECIMAL ) ) ), + ( - - 58 ) * - 49 * - + 49 + + COUNT( ALL - 92 ) - - ( + 41 ) AS col0
----
NULL
139300

skipif mysql # not compatible
query II rowsort label-7249
SELECT MIN ( ALL - ( + CAST ( NULL AS REAL ) ) ), + ( - - 58 ) * - 49 * - + 49 + + COUNT ( ALL - 92 ) - - ( + 41 ) AS col0
----
NULL
139300

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ALL COUNT( * ) * - ( + + 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL COUNT ( * ) * - ( + + 87 ) AS col1
----
-87

query I rowsort
SELECT + COALESCE ( - - 90, + + 85 * - 93 - 70, - 95 ) * - 79 AS col0
----
-7110

query I rowsort
SELECT - COALESCE ( + + ( - 55 ), - 11 )
----
55

query I rowsort
SELECT - ( 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ALL MIN( - ( - - 95 ) )
----
-95

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL MIN ( - ( - - 95 ) )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT + ( + 6 ) * - - 59 * + COUNT( * )
----
354

skipif mysql # not compatible
query I rowsort label-7255
SELECT + ( + 6 ) * - - 59 * + COUNT ( * )
----
354

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7256
SELECT - 16 + AVG ( + CAST( NULL AS SIGNED ) ) col0, + 57
----
NULL
57

skipif mysql # not compatible
query II rowsort label-7256
SELECT - 16 + AVG ( + CAST ( NULL AS INTEGER ) ) col0, + 57
----
NULL
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT + 62 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-7257
SELECT + 62 / 48
----
1

query I rowsort
SELECT + 80 * 15
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT DISTINCT + CAST( + 38 AS SIGNED ) * + 37 * - + 34
----
-47804

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT + CAST ( + 38 AS INTEGER ) * + 37 * - + 34
----
-47804

query I rowsort
SELECT ALL + 43 * 26 * + 63
----
70434

onlyif mysql # DIV for integer division: 
query I rowsort label-7261
SELECT 82 DIV 28
----
2

skipif mysql # not compatible
query I rowsort label-7261
SELECT 82 / 28
----
2

query II rowsort
SELECT ALL - 64 + CASE - 24 WHEN - 95 * + - AVG ( ( + 41 ) ) THEN + 83 ELSE - COALESCE ( 38, - 29 ) END AS col0, 30 AS col1
----
-102
30

query I rowsort
SELECT DISTINCT 20 + - 23
----
-3

query I rowsort
SELECT + 99 - + ( - 37 )
----
136

query I rowsort
SELECT ALL - 72 * 62 * 31 * - 50 * - 46 + + 51 - + 83
----
-318283232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 81 AS col0, 57 AS col1
----
81
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT COUNT( + 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7268
SELECT COUNT ( + 20 ) AS col2
----
1

query II rowsort
SELECT ALL + ( + 56 ) + - 32, 73 + + - 91 col0
----
24
-18

query I rowsort
SELECT 38 - 83 + 49 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL COUNT( * ) * 45
----
45

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL COUNT ( * ) * 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ALL - - COUNT( * ) + + ( - 80 )
----
-79

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL - - COUNT ( * ) + + ( - 80 )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7273
SELECT + 35 * + 82 * + 7 * + ( 33 ) + + 95 DIV - 64 * + + COUNT( * ) - + 46 AS col1
----
662923

skipif mysql # not compatible
query I rowsort label-7273
SELECT + 35 * + 82 * + 7 * + ( 33 ) + + 95 / - 64 * + + COUNT ( * ) - + 46 AS col1
----
662923

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7274
SELECT 30 * + + 18 * - CAST( NULL AS SIGNED ) / + + 92 + + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT 30 * + + 18 * - CAST ( NULL AS INTEGER ) / + + 92 + + 24 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7275
SELECT ALL + + ( + - 28 ) DIV - - 15 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL + + ( + - 28 ) / - - 15 AS col2
----
-1

query I rowsort
SELECT 41 * ( 54 )
----
2214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7277
SELECT 32 DIV - + SUM( ALL + 54 ) + - 0 + + COUNT( * ) + COUNT( * ) * COUNT( * ) DIV - 73 * 64
----
1

skipif mysql # not compatible
query I rowsort label-7277
SELECT 32 / - + SUM ( ALL + 54 ) + - 0 + + COUNT ( * ) + COUNT ( * ) * COUNT ( * ) / - 73 * 64
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT ALL - - CASE + 55 WHEN + 24 * - COUNT( * ) - - 83 - + 91 * 1 + - - NULLIF ( - + 75, + ( 98 ) ) THEN + - 52 * + - NULLIF ( 36, + COUNT( DISTINCT - - 85 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL - - CASE + 55 WHEN + 24 * - COUNT ( * ) - - 83 - + 91 * 1 + - - NULLIF ( - + 75, + ( 98 ) ) THEN + - 52 * + - NULLIF ( 36, + COUNT ( DISTINCT - - 85 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7279
SELECT ALL + + CASE - 9 WHEN + 91 THEN + - 83 WHEN + ( CAST( NULL AS SIGNED ) ) THEN + NULLIF ( MIN( ALL + - 88 ), - 11 ) END * + - ( + COALESCE ( + CAST( + MAX( DISTINCT 40 ) AS DECIMAL ), + COUNT( * ) - + + ( - - COUNT( * ) ) + - - 28, 60 + + 46, - + 60 / 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL + + CASE - 9 WHEN + 91 THEN + - 83 WHEN + ( CAST ( NULL AS INTEGER ) ) THEN + NULLIF ( MIN ( ALL + - 88 ), - 11 ) END * + - ( + COALESCE ( + CAST ( + MAX ( DISTINCT 40 ) AS REAL ), + COUNT ( * ) - + + ( - - COUNT ( * ) ) + - - 28, 60 + + 46, - + 60 / 76 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7280
SELECT SUM( ALL - COALESCE ( + - 43, 65 ) ) DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-7280
SELECT SUM ( ALL - COALESCE ( + - 43, 65 ) ) / 42
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT ALL + 37 DIV 16 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL + 37 / 16 AS col0
----
2

query I rowsort
SELECT 78 + + 19 col2
----
97

query I rowsort
SELECT DISTINCT + 19 * + 44
----
836

query I rowsort
SELECT ALL - 64 * + 39 AS col1
----
-2496

query III rowsort
SELECT ALL - 59, + 79 col1, + ( + 73 ) + 72 AS col0
----
-59
79
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT 94 * COUNT( DISTINCT + 24 )
----
94

skipif mysql # not compatible
query I rowsort label-7286
SELECT 94 * COUNT ( DISTINCT + 24 )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7287
SELECT 27 AS col0, - COUNT( * ) AS col2
----
27
-1

skipif mysql # not compatible
query II rowsort label-7287
SELECT 27 AS col0, - COUNT ( * ) AS col2
----
27
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT COUNT( * ) * 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7288
SELECT COUNT ( * ) * 65 AS col1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7289
SELECT 75 + + 37 - + ( - 62 ) + - 34 + 92 - 11 - 60 * + + 81 * 78 + - 0 + 28 - - COUNT( * ) DIV 79 * - 70 AS col1
----
-378831

skipif mysql # not compatible
query I rowsort label-7289
SELECT 75 + + 37 - + ( - 62 ) + - 34 + 92 - 11 - 60 * + + 81 * 78 + - 0 + 28 - - COUNT ( * ) / 79 * - 70 AS col1
----
-378831

query II rowsort
SELECT - 59, + ( ( - NULLIF ( + 2, + + 55 ) ) ) * - 90 * - 10 AS col2
----
-59
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT DISTINCT MAX( DISTINCT 3 ) + - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT MAX ( DISTINCT 3 ) + - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT COUNT( ALL - 43 ) * + 4 + - + 38
----
-34

skipif mysql # not compatible
query I rowsort label-7292
SELECT COUNT ( ALL - 43 ) * + 4 + - + 38
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ( + COUNT( * ) ) * + MAX( ( - 1 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7293
SELECT ( + COUNT ( * ) ) * + MAX ( ( - 1 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT COUNT( * ) - - - 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-7294
SELECT COUNT ( * ) - - - 71 AS col2
----
-70

query I rowsort
SELECT 10 - + - 24
----
34

query II rowsort
SELECT 64 AS col1, ( + + 53 )
----
64
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL ( COUNT( ALL - 12 ) ) + 53 - - 0
----
54

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL ( COUNT ( ALL - 12 ) ) + 53 - - 0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7298
SELECT DISTINCT CAST( 39 AS SIGNED ) + + + 20 * + - NULLIF ( - 13, - + 2 ) AS col1
----
299

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT CAST ( 39 AS INTEGER ) + + + 20 * + - NULLIF ( - 13, - + 2 ) AS col1
----
299

query I rowsort
SELECT 0 + - 16
----
-16

query II rowsort
SELECT - 37, 75 * - 69 AS col0
----
-37
-5175

query II rowsort
SELECT 84 + - + 98 col1, 49 col0
----
-14
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7302
SELECT 27 - + - 83, + COUNT( * ) AS col0
----
110
1

skipif mysql # not compatible
query II rowsort label-7302
SELECT 27 - + - 83, + COUNT ( * ) AS col0
----
110
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7303
SELECT COUNT( + 43 ) col1, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7303
SELECT COUNT ( + 43 ) col1, + COUNT ( * )
----
1
1

query I rowsort
SELECT 74 - + 81 AS col1
----
-7

query II rowsort
SELECT + 65, - ( + 6 ) AS col2
----
65
-6

query I rowsort
SELECT ALL + ( - 25 ) AS col1
----
-25

query I rowsort
SELECT 53 + - 74 + + + 22 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT - 55 * + + MAX( DISTINCT + + 22 )
----
-1210

skipif mysql # not compatible
query I rowsort label-7308
SELECT - 55 * + + MAX ( DISTINCT + + 22 )
----
-1210

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT + 20 * + ( + + COALESCE ( + 32, - CASE - 19 WHEN 92 * 27 * + 35 / 80 / CASE - COUNT( * ) WHEN + 7 + - 7 THEN - - 82 * - COALESCE ( 23, + 1 * + + ( - 57 ) ) + - 56 WHEN + + 80 + COUNT( * ) THEN NULL END THEN NULL WHEN + 49 + + 99 THEN + 95 ELSE NULL END, 89 + 85 ) ) - 20 + + 80
----
700

skipif mysql # not compatible
query I rowsort label-7309
SELECT + 20 * + ( + + COALESCE ( + 32, - CASE - 19 WHEN 92 * 27 * + 35 / 80 / CASE - COUNT ( * ) WHEN + 7 + - 7 THEN - - 82 * - COALESCE ( 23, + 1 * + + ( - 57 ) ) + - 56 WHEN + + 80 + COUNT ( * ) THEN NULL END THEN NULL WHEN + 49 + + 99 THEN + 95 ELSE NULL END, 89 + 85 ) ) - 20 + + 80
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ( - 1 ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7310
SELECT ( - 1 ) * + COUNT ( * )
----
-1

query I rowsort
SELECT 76 * - 48 + + - 27 AS col1
----
-3675

query II rowsort
SELECT ALL - - 79 AS col1, 69 + - 63 - - 43 AS col0
----
79
49

query II rowsort
SELECT DISTINCT - 73 AS col0, + 19 AS col2
----
-73
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT + + COALESCE ( 21, - + 47, - + 40 + + 81 + - 8 * MIN( DISTINCT + 99 ) ) col2
----
21

skipif mysql # not compatible
query I rowsort label-7314
SELECT + + COALESCE ( 21, - + 47, - + 40 + + 81 + - 8 * MIN ( DISTINCT + 99 ) ) col2
----
21

query I rowsort
SELECT DISTINCT - COALESCE ( + + 44, - 74 )
----
-44

query I rowsort
SELECT DISTINCT + 33 + + 97 col1
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-7317
SELECT 29 DIV - - 50
----
0

skipif mysql # not compatible
query I rowsort label-7317
SELECT 29 / - - 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7318
SELECT ALL + COUNT( * ) + + 83 * + 86 + + - CASE - 53 WHEN - 98 THEN - COALESCE ( + CAST( NULL AS SIGNED ), 52, - + 88 * COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL + COUNT ( * ) + + 83 * + 86 + + - CASE - 53 WHEN - 98 THEN - COALESCE ( + CAST ( NULL AS INTEGER ), 52, - + 88 * COUNT ( * ) ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 61 * + 51 AS col0
----
-3111

query I rowsort
SELECT DISTINCT - 88 + + - ( - 80 ) AS col2
----
-8

query I rowsort
SELECT 16 * + + ( 1 ) - 0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT 7 * + + ( + COUNT( * ) ) + - 71
----
-64

skipif mysql # not compatible
query I rowsort label-7322
SELECT 7 * + + ( + COUNT ( * ) ) + - 71
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT DISTINCT 86 + 86 + - COUNT( * ) + - 3 AS col2
----
168

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT 86 + 86 + - COUNT ( * ) + - 3 AS col2
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-7324
SELECT - 3 * + COUNT( * ), 46 + + 44 + + - 8 * + + 95 * ( - - ( + 71 ) ) + - NULLIF ( - 79, 59 ) AS col2
----
-3
-53791

skipif mysql # not compatible
query II rowsort label-7324
SELECT - 3 * + COUNT ( * ), 46 + + 44 + + - 8 * + + 95 * ( - - ( + 71 ) ) + - NULLIF ( - 79, 59 ) AS col2
----
-3
-53791

query I rowsort
SELECT ALL COALESCE ( - + 22, + ( - 1 ) ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT + + 61 + COUNT( * ) col0
----
62

skipif mysql # not compatible
query I rowsort label-7326
SELECT + + 61 + COUNT ( * ) col0
----
62

query I rowsort
SELECT ALL + 56 + + 39
----
95

query I rowsort
SELECT ( + 23 ) AS col1
----
23

query I rowsort
SELECT ALL + COALESCE ( - + ( - 18 ), - 85 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT ALL ( - 34 ) AS col2, SUM( - 21 ) AS col0
----
-34
-21

skipif mysql # not compatible
query II rowsort label-7330
SELECT ALL ( - 34 ) AS col2, SUM ( - 21 ) AS col0
----
-34
-21

query I rowsort
SELECT DISTINCT - 73 * 62 + ( + + 1 )
----
-4525

query I rowsort
SELECT DISTINCT + 62 * + + ( 77 )
----
4774

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT - SUM( ALL + 2 ) - + 32
----
-34

skipif mysql # not compatible
query I rowsort label-7333
SELECT - SUM ( ALL + 2 ) - + 32
----
-34

query I rowsort
SELECT + - 37 col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7335
SELECT + + ( + + CAST( CAST( - + 81 AS DECIMAL ) AS SIGNED ) ) * 47
----
-3807

skipif mysql # not compatible
query I rowsort label-7335
SELECT + + ( + + CAST ( CAST ( - + 81 AS REAL ) AS INTEGER ) ) * 47
----
-3807

query I rowsort
SELECT ALL + 57 col1
----
57

query I rowsort
SELECT DISTINCT + - 12 AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7338
SELECT ALL 86 DIV + 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL 86 / + 66 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT + + 36 DIV - 38 - 64 - 8
----
-72

skipif mysql # not compatible
query I rowsort label-7339
SELECT + + 36 / - 38 - 64 - 8
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT + COUNT( * ) * - 16 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7340
SELECT + COUNT ( * ) * - 16 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT + COUNT( * ) + + 69 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-7341
SELECT + COUNT ( * ) + + 69 AS col1
----
70

query I rowsort
SELECT ALL 29 * - - 90 AS col2
----
2610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7343
SELECT + COUNT( * ) DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7343
SELECT + COUNT ( * ) / COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7344
SELECT + CAST( NULL AS SIGNED ) * - 6 + + + 66 AS col1, - 97 * - 99 * - 44 * - 37 col0
----
NULL
15633684

skipif mysql # not compatible
query II rowsort label-7344
SELECT + CAST ( NULL AS INTEGER ) * - 6 + + + 66 AS col1, - 97 * - 99 * - 44 * - 37 col0
----
NULL
15633684

query II rowsort
SELECT - 99 - 17 - + 2 AS col2, 48 AS col2
----
-118
48

query I rowsort
SELECT + 11 * + - 6
----
-66

query I rowsort
SELECT - 17 * + 25
----
-425

query I rowsort
SELECT DISTINCT - 80 * + + 28 + 81
----
-2159

query II rowsort
SELECT ALL + 58 AS col2, 28 * - + 10 * - - 37 * + 99 AS col0
----
58
-1025640

query I rowsort
SELECT ALL + 80 * - 10 + - - 21 * + - 72 AS col2
----
-2312

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT COALESCE ( + NULLIF ( COUNT( * ), 86 ), - 39 * + MIN( ALL 46 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7351
SELECT COALESCE ( + NULLIF ( COUNT ( * ), 86 ), - 39 * + MIN ( ALL 46 ) ) col2
----
1

query I rowsort
SELECT 20 * + 47 + - 83
----
857

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT DISTINCT + COUNT( - - 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT + COUNT ( - - 73 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7354
SELECT SUM( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT SUM ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7355
SELECT ALL CASE - + COUNT( * ) WHEN + CASE WHEN NOT ( NOT 22 IS NULL ) THEN + 33 ELSE NULL END THEN + COALESCE ( + + 11, NULLIF ( 85, + CASE + + 19 WHEN - 80 THEN + + 14 * - 91 WHEN 1 * - + 66 * - 23 * + CAST( + - COUNT( * ) AS SIGNED ) + + COUNT( * ) * + 74 * - SUM( DISTINCT - ( + 16 ) ) - + NULLIF ( + COALESCE ( 52, 52, - 95 + 68 * COUNT( * ) ), 43 ) THEN NULL WHEN COUNT( * ) THEN NULL WHEN COUNT( * ) THEN NULL END + + 38 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL CASE - + COUNT ( * ) WHEN + CASE WHEN NOT ( NOT 22 IS NULL ) THEN + 33 ELSE NULL END THEN + COALESCE ( + + 11, NULLIF ( 85, + CASE + + 19 WHEN - 80 THEN + + 14 * - 91 WHEN 1 * - + 66 * - 23 * + CAST ( + - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) * + 74 * - SUM ( DISTINCT - ( + 16 ) ) - + NULLIF ( + COALESCE ( 52, 52, - 95 + 68 * COUNT ( * ) ), 43 ) THEN NULL WHEN COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN NULL END + + 38 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7356
SELECT + 21 + + + 71 * + - COUNT( * ), 34 col0
----
-50
34

skipif mysql # not compatible
query II rowsort label-7356
SELECT + 21 + + + 71 * + - COUNT ( * ), 34 col0
----
-50
34

query I rowsort
SELECT - 85 * - 82
----
6970

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT ALL - COUNT( * ) * - 91 * - 19 - - NULLIF ( + COUNT( * ), 48 * - + COUNT( * ) ) AS col2
----
-1728

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL - COUNT ( * ) * - 91 * - 19 - - NULLIF ( + COUNT ( * ), 48 * - + COUNT ( * ) ) AS col2
----
-1728

query I rowsort
SELECT ALL ( + + 4 ) AS col1
----
4

query II rowsort
SELECT - 86, + 93 AS col0
----
-86
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL SUM( ALL - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL SUM ( ALL - 44 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7362
SELECT - CASE 83 WHEN 15 - AVG ( ALL 98 ) THEN - 90 ELSE + CAST( - ( - AVG ( DISTINCT 0 ) ) AS SIGNED ) END - - 48 * 22
----
1056

skipif mysql # not compatible
query I rowsort label-7362
SELECT - CASE 83 WHEN 15 - AVG ( ALL 98 ) THEN - 90 ELSE + CAST ( - ( - AVG ( DISTINCT 0 ) ) AS INTEGER ) END - - 48 * 22
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - - NULLIF ( + 90, AVG ( DISTINCT + 69 ) ) * + 58 * ( COUNT( * ) ) + MAX( DISTINCT + 31 )
----
5251

skipif mysql # not compatible
query I rowsort label-7363
SELECT - - NULLIF ( + 90, AVG ( DISTINCT + 69 ) ) * + 58 * ( COUNT ( * ) ) + MAX ( DISTINCT + 31 )
----
5251

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - COUNT( * ) + - MIN( DISTINCT - 64 )
----
63

skipif mysql # not compatible
query I rowsort label-7364
SELECT - COUNT ( * ) + - MIN ( DISTINCT - 64 )
----
63

query I rowsort
SELECT ALL 54 - - 14 + + 18
----
86

query I rowsort
SELECT DISTINCT - 33 * + 79 AS col1
----
-2607

query II rowsort
SELECT - + 64 - 9 + - 16, - 16 AS col2
----
-89
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7368
SELECT - - 94 + + CAST( + COUNT( * ) AS SIGNED ) AS col2, MAX( + + 58 ) * - 4 AS col1
----
95
-232

skipif mysql # not compatible
query II rowsort label-7368
SELECT - - 94 + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2, MAX ( + + 58 ) * - 4 AS col1
----
95
-232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7369
SELECT + - MAX( + 71 ) - + - 40 - 16 + 36 + + 74 * - - CAST( NULL AS SIGNED ) * + + MAX( - 92 ) - + NULLIF ( + 97, - 31 ) + 64 / 88 * + CASE + MIN( - 71 ) WHEN CASE MAX( + 38 ) WHEN - - 66 THEN 80 END THEN AVG ( ALL + + 68 ) + 76 * - - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT + - MAX ( + 71 ) - + - 40 - 16 + 36 + + 74 * - - CAST ( NULL AS INTEGER ) * + + MAX ( - 92 ) - + NULLIF ( + 97, - 31 ) + 64 / 88 * + CASE + MIN ( - 71 ) WHEN CASE MAX ( + 38 ) WHEN - - 66 THEN 80 END THEN AVG ( ALL + + 68 ) + 76 * - - 62 END
----
NULL

query I rowsort
SELECT + + 14 + + COALESCE ( - + 68, + 57 * - - 97 )
----
-54

query II rowsort
SELECT DISTINCT - 64, - 32 AS col0
----
-64
-32

query I rowsort
SELECT - - 45 * + 43 col0
----
1935

query I rowsort
SELECT - 17 + + + 59 col1
----
42

query II rowsort
SELECT + 30 col1, 64 AS col0
----
30
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7375
SELECT ALL CAST( NULL AS SIGNED ) / + 39 + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL CAST ( NULL AS INTEGER ) / + 39 + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT - MIN( DISTINCT - 99 ) * - 37
----
-3663

skipif mysql # not compatible
query I rowsort label-7376
SELECT - MIN ( DISTINCT - 99 ) * - 37
----
-3663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7377
SELECT + 76 + - - 78 + - + 87 + + - 64 * - CAST( NULL AS SIGNED ) + + COUNT( * ) * + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT + 76 + - - 78 + - + 87 + + - 64 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + + 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7378
SELECT CAST( + SUM( DISTINCT 11 ) AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-7378
SELECT CAST ( + SUM ( DISTINCT 11 ) AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL CASE 69 WHEN - 60 THEN NULL WHEN + 74 THEN - 77 ELSE NULL END / + MAX( DISTINCT + 18 ) * + 41 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL CASE 69 WHEN - 60 THEN NULL WHEN + 74 THEN - 77 ELSE NULL END / + MAX ( DISTINCT + 18 ) * + 41 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7380
SELECT COUNT( * ) * - + 44 AS col1, - ( + - 48 )
----
-44
48

skipif mysql # not compatible
query II rowsort label-7380
SELECT COUNT ( * ) * - + 44 AS col1, - ( + - 48 )
----
-44
48

onlyif mysql # DIV for integer division: 
query II rowsort label-7381
SELECT NULLIF ( 76, + 64 ) DIV - 77, 37 AS col2
----
0
37

skipif mysql # not compatible
query II rowsort label-7381
SELECT NULLIF ( 76, + 64 ) / - 77, 37 AS col2
----
0
37

query I rowsort
SELECT ALL + 16 * - 97
----
-1552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7383
SELECT ALL COUNT( * ) DIV + 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL COUNT ( * ) / + 21 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT COUNT( * ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT COUNT ( * ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT COALESCE ( - COUNT( * ), - 2 ) - - - 16 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7385
SELECT COALESCE ( - COUNT ( * ), - 2 ) - - - 16 AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7386
SELECT 48 DIV + ( - - COUNT( * ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7386
SELECT 48 / + ( - - COUNT ( * ) ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT + 6 * + - 3 * + - 72 * + COUNT( * ) + - ( + 59 )
----
1237

skipif mysql # not compatible
query I rowsort label-7387
SELECT + 6 * + - 3 * + - 72 * + COUNT ( * ) + - ( + 59 )
----
1237

query I rowsort
SELECT 57 * + - 65 AS col0
----
-3705

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT COUNT( * ) + + 33 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7389
SELECT COUNT ( * ) + + 33 AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7390
SELECT CAST( NULL AS SIGNED ) + + + 74 + + 7 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT CAST ( NULL AS INTEGER ) + + + 74 + + 7 col1
----
NULL

query II rowsort
SELECT - 90 - + 34, 46 + - 80 AS col1
----
-124
-34

query I rowsort
SELECT ALL 60 * - COALESCE ( 3, 54 ) + + + 39 col2
----
-141

query I rowsort
SELECT ALL COALESCE ( - + 75, - 80 ) AS col1
----
-75

query I rowsort
SELECT ALL + - 30 * + 80 - - 71 + + 67 + + 26 * 11 * - + 56 * - 37 AS col2
----
590330

query I rowsort
SELECT + ( - 88 ) * - 72
----
6336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT DISTINCT NULLIF ( + 59, + + CAST( + - 71 AS SIGNED ) * - 30 + + 87 )
----
59

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT NULLIF ( + 59, + + CAST ( + - 71 AS INTEGER ) * - 30 + + 87 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL - - COUNT( * ) + + 14 + - - 97 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - - COUNT ( * ) + + 14 + - - 97 AS col1
----
112

query I rowsort
SELECT - + 53
----
-53

query I rowsort
SELECT ALL + - 38 * - 40 col1
----
1520

onlyif mysql # aggregate syntax: 
query II rowsort label-7400
SELECT 0 * + 53 AS col0, - 11 + - 72 + 74 * - + 21 * + - MAX( DISTINCT + 11 ) AS col0
----
0
17011

skipif mysql # not compatible
query II rowsort label-7400
SELECT 0 * + 53 AS col0, - 11 + - 72 + 74 * - + 21 * + - MAX ( DISTINCT + 11 ) AS col0
----
0
17011

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT + COUNT( * ) * + 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7401
SELECT + COUNT ( * ) * + 56 AS col2
----
56

query I rowsort
SELECT ALL - + 25 + + 52 + + 5
----
32

query I rowsort
SELECT - + 92 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT COUNT( 72 ) + + COUNT( ALL - 84 )
----
2

skipif mysql # not compatible
query I rowsort label-7404
SELECT COUNT ( 72 ) + + COUNT ( ALL - 84 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT 23 * - ( + COUNT( * ) ) * - + 73
----
1679

skipif mysql # not compatible
query I rowsort label-7405
SELECT 23 * - ( + COUNT ( * ) ) * - + 73
----
1679

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT - COUNT( DISTINCT - 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT - COUNT ( DISTINCT - 53 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL COUNT( * ) + + 86
----
87

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL COUNT ( * ) + + 86
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7408
SELECT - 40 * 42 - COUNT( * ) DIV - - 99 + - ( - 78 ) + + + 82 AS col0
----
-1520

skipif mysql # not compatible
query I rowsort label-7408
SELECT - 40 * 42 - COUNT ( * ) / - - 99 + - ( - 78 ) + + + 82 AS col0
----
-1520

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7409
SELECT 57 DIV + 27 + - CASE MAX( 52 ) WHEN - COALESCE ( + - 40, + - 85 ) * + + 77 THEN NULL ELSE + 4 END, + 26 - + + 1 AS col2
----
-2
25

skipif mysql # not compatible
query II rowsort label-7409
SELECT 57 / + 27 + - CASE MAX ( 52 ) WHEN - COALESCE ( + - 40, + - 85 ) * + + 77 THEN NULL ELSE + 4 END, + 26 - + + 1 AS col2
----
-2
25

query II rowsort
SELECT ALL - 93, ( 33 ) AS col1
----
-93
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7411
SELECT ALL + ( + - 20 ) - - 2 DIV 28 + - 5 + - 21 * 3 + - ( + 55 )
----
-143

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL + ( + - 20 ) - - 2 / 28 + - 5 + - 21 * 3 + - ( + 55 )
----
-143

query I rowsort
SELECT 48 - - 88
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT + COUNT( * ) * + SUM( DISTINCT - + 11 ) - COUNT( * ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-7413
SELECT + COUNT ( * ) * + SUM ( DISTINCT - + 11 ) - COUNT ( * ) col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT COUNT( * ) * + - 78
----
-78

skipif mysql # not compatible
query I rowsort label-7414
SELECT COUNT ( * ) * + - 78
----
-78

query I rowsort
SELECT DISTINCT + ( - 71 ) - + - 21
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7416
SELECT DISTINCT 20 DIV - - 74
----
0

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT 20 / - - 74
----
0

query I rowsort
SELECT ( + + 29 ) * + 30 AS col0
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT ALL - MAX( - - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL - MAX ( - - 90 )
----
-90

query I rowsort
SELECT ALL - ( + CASE - 35 WHEN + 72 THEN - 81 WHEN - - 35 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT 7 + MAX( ALL + 44 ) + + 75 - + + 91
----
35

skipif mysql # not compatible
query I rowsort label-7420
SELECT 7 + MAX ( ALL + 44 ) + + 75 - + + 91
----
35

query I rowsort
SELECT 53 + + + 60
----
113

query I rowsort
SELECT 97 * + 22
----
2134

query I rowsort
SELECT DISTINCT 89 * - 56
----
-4984

query II rowsort
SELECT ALL - 55 col0, + 49
----
-55
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7425
SELECT - CAST( 28 AS SIGNED ) + 99 * - 30
----
-2998

skipif mysql # not compatible
query I rowsort label-7425
SELECT - CAST ( 28 AS INTEGER ) + 99 * - 30
----
-2998

query I rowsort
SELECT DISTINCT + ( 65 ) AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7427
SELECT + 99 + - - ( - 93 ) AS col2, 48 + 50 + + - ( - ( CAST( NULL AS SIGNED ) ) ) AS col2
----
6
NULL

skipif mysql # not compatible
query II rowsort label-7427
SELECT + 99 + - - ( - 93 ) AS col2, 48 + 50 + + - ( - ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
6
NULL

query I rowsort
SELECT DISTINCT ( - 59 ) + - 72 + - 77 AS col0
----
-208

query I rowsort
SELECT 14 * + ( 39 ) + - 74
----
472

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT - 66 + - - 13 + - 67 + - 5 * - 9 * - ( - + NULLIF ( - COUNT( * ), - 57 ) )
----
-165

skipif mysql # not compatible
query I rowsort label-7430
SELECT - 66 + - - 13 + - 67 + - 5 * - 9 * - ( - + NULLIF ( - COUNT ( * ), - 57 ) )
----
-165

query I rowsort
SELECT 45 - + 41 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT - 49 - - 12 * + COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-7432
SELECT - 49 - - 12 * + COUNT ( * ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7433
SELECT - COUNT( * ) col1, - 83
----
-1
-83

skipif mysql # not compatible
query II rowsort label-7433
SELECT - COUNT ( * ) col1, - 83
----
-1
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT COUNT( * ) * 18 * 59 + - 20 * - 77 - - 83 + - - COALESCE ( + 60, ( COUNT( * ) ) ) AS col0
----
2745

skipif mysql # not compatible
query I rowsort label-7434
SELECT COUNT ( * ) * 18 * 59 + - 20 * - 77 - - 83 + - - COALESCE ( + 60, ( COUNT ( * ) ) ) AS col0
----
2745

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT ALL - MIN( - 94 ) + 52
----
146

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL - MIN ( - 94 ) + 52
----
146

query I rowsort
SELECT - 64 + + 37 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL CASE + ( - + 97 ) WHEN - COUNT( * ) THEN - 19 + + - COUNT( * ) ELSE 65 + 55 + - COUNT( * ) END AS col1
----
119

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL CASE + ( - + 97 ) WHEN - COUNT ( * ) THEN - 19 + + - COUNT ( * ) ELSE 65 + 55 + - COUNT ( * ) END AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT DISTINCT + COUNT( * ) * - COUNT( ALL - 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT + COUNT ( * ) * - COUNT ( ALL - 45 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7439
SELECT COALESCE ( + 11, + 62, + CAST( - + COUNT( * ) AS SIGNED ) + - 73 + - 43 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7439
SELECT COALESCE ( + 11, + 62, + CAST ( - + COUNT ( * ) AS INTEGER ) + - 73 + - 43 ) AS col1
----
11

query II rowsort
SELECT + 3, 3 AS col2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT ALL - ( - + ( 35 ) ) * COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL - ( - + ( 35 ) ) * COUNT ( * )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7442
SELECT 80 DIV + 53 + + + 80
----
81

skipif mysql # not compatible
query I rowsort label-7442
SELECT 80 / + 53 + + + 80
----
81

query I rowsort
SELECT COALESCE ( + 99, - 85 ) AS col2
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7444
SELECT - CAST( NULL AS DECIMAL ) / + - COALESCE ( - CAST( NULL AS DECIMAL ), - 72 ) + + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT - CAST ( NULL AS REAL ) / + - COALESCE ( - CAST ( NULL AS REAL ), - 72 ) + + 48 AS col1
----
NULL

query I rowsort
SELECT ALL + CASE 28 WHEN + + 14 THEN + AVG ( + + 84 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 63 + + 1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7447
SELECT ALL + ( CAST( COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL + ( CAST ( COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT - 50 * + 60
----
-3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7449
SELECT - CASE + + COUNT( * ) WHEN + + 18 THEN 70 + AVG ( DISTINCT + 71 ) * + - 57 * - CAST( + 8 AS SIGNED ) - + COUNT( * ) + - + 75 WHEN + - 35 THEN NULL END * + 11 * + - 7 * 95 + 28 - 80 + COALESCE ( + 70, + 18, + 76 * - 6 ) * - 93 + + 65 + - - 33 + + 2 * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7449
SELECT - CASE + + COUNT ( * ) WHEN + + 18 THEN 70 + AVG ( DISTINCT + 71 ) * + - 57 * - CAST ( + 8 AS INTEGER ) - + COUNT ( * ) + - + 75 WHEN + - 35 THEN NULL END * + 11 * + - 7 * 95 + 28 - 80 + COALESCE ( + 70, + 18, + 76 * - 6 ) * - 93 + + 65 + - - 33 + + 2 * + 28
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7450
SELECT ALL + 89 AS col2, NULLIF ( - + COUNT( * ), + 70 ) - + 21
----
89
-22

skipif mysql # not compatible
query II rowsort label-7450
SELECT ALL + 89 AS col2, NULLIF ( - + COUNT ( * ), + 70 ) - + 21
----
89
-22

query II rowsort
SELECT + 85, 30 col2
----
85
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT + 90, + SUM( ALL 98 ) AS col1
----
90
98

skipif mysql # not compatible
query II rowsort label-7452
SELECT + 90, + SUM ( ALL 98 ) AS col1
----
90
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT + - 76 + + + COUNT( 81 )
----
-75

skipif mysql # not compatible
query I rowsort label-7453
SELECT + - 76 + + + COUNT ( 81 )
----
-75

query I rowsort
SELECT ALL 78 * + 93 * - 78
----
-565812

query I rowsort
SELECT - 47 * 15
----
-705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7456
SELECT + 22 * + + 58 * + 87 + - CAST( - 89 AS SIGNED ) + - CASE - 96 WHEN 10 THEN - 86 END - 79 * - COUNT( 2 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7456
SELECT + 22 * + + 58 * + 87 + - CAST ( - 89 AS INTEGER ) + - CASE - 96 WHEN 10 THEN - 86 END - 79 * - COUNT ( 2 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL 26 * + COUNT( * ) + 79
----
105

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL 26 * + COUNT ( * ) + 79
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT - - COUNT( * ) + - - 66
----
67

skipif mysql # not compatible
query I rowsort label-7458
SELECT - - COUNT ( * ) + - - 66
----
67

query I rowsort
SELECT ALL - - 46 * 55 - - - 7 AS col1
----
2523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7460
SELECT DISTINCT CAST( NULL AS SIGNED ) / + COUNT( DISTINCT + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + COUNT ( DISTINCT + 95 )
----
NULL

query II rowsort
SELECT - 25, 65 AS col0
----
-25
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7462
SELECT - 64, - 18 + + MIN( CAST( - 99 AS SIGNED ) ) AS col2
----
-64
-117

skipif mysql # not compatible
query II rowsort label-7462
SELECT - 64, - 18 + + MIN ( CAST ( - 99 AS INTEGER ) ) AS col2
----
-64
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7463
SELECT - ( + COUNT( * ) ) DIV - - 49
----
0

skipif mysql # not compatible
query I rowsort label-7463
SELECT - ( + COUNT ( * ) ) / - - 49
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-7464
SELECT + 20 + - 18 AS col1, - 39 + - 94 AS col1, + COUNT( * ) * COALESCE ( + 68, + 76 ) AS col1
----
2
-133
68

skipif mysql # not compatible
query III rowsort label-7464
SELECT + 20 + - 18 AS col1, - 39 + - 94 AS col1, + COUNT ( * ) * COALESCE ( + 68, + 76 ) AS col1
----
2
-133
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT + 63 * 84 + - COUNT( * ) + - COUNT( * ) AS col2
----
5290

skipif mysql # not compatible
query I rowsort label-7465
SELECT + 63 * 84 + - COUNT ( * ) + - COUNT ( * ) AS col2
----
5290

query I rowsort
SELECT + + 0 + + 59
----
59

query I rowsort
SELECT ALL 7 * 72
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT + SUM( ALL + 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7468
SELECT + SUM ( ALL + 49 ) AS col2
----
49

query I rowsort
SELECT + - 25 + + 99 + + 97
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT + + COUNT( * ) * - 32
----
-32

skipif mysql # not compatible
query I rowsort label-7470
SELECT + + COUNT ( * ) * - 32
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-7471
SELECT ALL COUNT( + 3 ) AS col2, + COALESCE ( - 0, + + 88 * 47 * - 93 ) col2
----
1
0

skipif mysql # not compatible
query II rowsort label-7471
SELECT ALL COUNT ( + 3 ) AS col2, + COALESCE ( - 0, + + 88 * 47 * - 93 ) col2
----
1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7472
SELECT + 34 * - 89 AS col0, - ( - 63 ) DIV - + COALESCE ( - 24, - 80 ) AS col0
----
-3026
2

skipif mysql # not compatible
query II rowsort label-7472
SELECT + 34 * - 89 AS col0, - ( - 63 ) / - + COALESCE ( - 24, - 80 ) AS col0
----
-3026
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL SUM( + - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL SUM ( + - 90 )
----
-90

query I rowsort
SELECT + 81 + - - 37 + + - 3 * - + 93 * - - 24
----
6814

query II rowsort
SELECT + 98 * + + 29 AS col2, 80
----
2842
80

query II rowsort
SELECT + 57 + + - 37 AS col0, 54 col1
----
20
54

onlyif mysql # DIV for integer division: 
query II rowsort label-7477
SELECT DISTINCT - 83 DIV 55 - 96 DIV + COALESCE ( 84, + 94 DIV 58 ), + 40 AS col2
----
-2
40

skipif mysql # not compatible
query II rowsort label-7477
SELECT DISTINCT - 83 / 55 - 96 / + COALESCE ( 84, + 94 / 58 ), + 40 AS col2
----
-2
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7478
SELECT 58 * - ( - ( - - CAST( + 30 AS SIGNED ) ) ) * + + 91 * + 89 * + COUNT( * ) - 5 + + 1
----
14092256

skipif mysql # not compatible
query I rowsort label-7478
SELECT 58 * - ( - ( - - CAST ( + 30 AS INTEGER ) ) ) * + + 91 * + 89 * + COUNT ( * ) - 5 + + 1
----
14092256

onlyif mysql # DIV for integer division: 
query I rowsort label-7479
SELECT ALL 56 DIV 29 DIV + + 85 * - 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL 56 / 29 / + + 85 * - 5 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL + NULLIF ( + 61, + - 21 * + COUNT( * ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL + NULLIF ( + 61, + - 21 * + COUNT ( * ) ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL + MIN( - ( + ( + 41 ) ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL + MIN ( - ( + ( + 41 ) ) ) AS col1
----
-41

query I rowsort
SELECT ALL 9 * - - 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7483
SELECT - 21 DIV - MAX( + 97 ) * - 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7483
SELECT - 21 / - MAX ( + 97 ) * - 18 AS col2
----
0

query I rowsort
SELECT ( + 45 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7485
SELECT ALL + 22 * - 75, + 81 * CAST( NULL AS SIGNED ) AS col1
----
-1650
NULL

skipif mysql # not compatible
query II rowsort label-7485
SELECT ALL + 22 * - 75, + 81 * CAST ( NULL AS INTEGER ) AS col1
----
-1650
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT + COUNT( * ) * + + 5
----
5

skipif mysql # not compatible
query I rowsort label-7486
SELECT + COUNT ( * ) * + + 5
----
5

query I rowsort
SELECT ( + NULLIF ( - 19, + 94 ) )
----
-19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7488
SELECT - + 36 DIV + - 80 * + CASE + - 6 WHEN - + 58 DIV CAST( NULL AS SIGNED ) + - AVG ( DISTINCT - - 47 ) THEN NULL ELSE - 37 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7488
SELECT - + 36 / + - 80 * + CASE + - 6 WHEN - + 58 / CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT - - 47 ) THEN NULL ELSE - 37 END AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT - - 31 / - + CAST( NULL AS SIGNED ) * - 29 + - - ( + 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT - - 31 / - + CAST ( NULL AS INTEGER ) * - 29 + - - ( + 5 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7490
SELECT ALL 73 * CAST( NULL AS DECIMAL ) * - - 55 * + 84 + + 61, 26 AS col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-7490
SELECT ALL 73 * CAST ( NULL AS REAL ) * - - 55 * + 84 + + 61, 26 AS col0
----
NULL
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT - 54 * - 51 + 73 DIV - 66 + - 74 + 90
----
2769

skipif mysql # not compatible
query I rowsort label-7491
SELECT - 54 * - 51 + 73 / - 66 + - 74 + 90
----
2769

query I rowsort
SELECT ALL + + 28 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT DISTINCT - 51 * 25 + MAX( DISTINCT 73 ) + - 37 * + + COUNT( * ) * + + CASE - 33 WHEN - 36 THEN + - COUNT( ALL - 91 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT - 51 * 25 + MAX ( DISTINCT 73 ) + - 37 * + + COUNT ( * ) * + + CASE - 33 WHEN - 36 THEN + - COUNT ( ALL - 91 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 87 * + 88 + 17 AS col1
----
7673

query I rowsort
SELECT - + 9 + + - 21 * + 29
----
-618

query I rowsort
SELECT DISTINCT + ( - 44 ) AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7497
SELECT ALL - - COUNT( * ) * + - MIN( DISTINCT + CAST( + 65 AS SIGNED ) )
----
-65

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL - - COUNT ( * ) * + - MIN ( DISTINCT + CAST ( + 65 AS INTEGER ) )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT - - COUNT( * ) + - + 56 col0
----
-55

skipif mysql # not compatible
query I rowsort label-7498
SELECT - - COUNT ( * ) + - + 56 col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT - + 60 + + 43 + + 44 + + + 52 + - MAX( + 64 ) + + 40 + + 76 * + COUNT( * ) + - 74
----
57

skipif mysql # not compatible
query I rowsort label-7499
SELECT - + 60 + + 43 + + 44 + + + 52 + - MAX ( + 64 ) + + 40 + + 76 * + COUNT ( * ) + - 74
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL + - 6 - - + 14 + 25 + - 23 * + - MAX( DISTINCT ( - ( 91 ) ) ) AS col2
----
-2060

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL + - 6 - - + 14 + 25 + - 23 * + - MAX ( DISTINCT ( - ( 91 ) ) ) AS col2
----
-2060

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT - CASE 72 WHEN AVG ( + - 97 ) - + 68 + COUNT( - 22 ) THEN + - COUNT( - 40 ) + + 20 * - + 25 ELSE NULL END + + 58 * 1 - NULLIF ( - - 96, - 23 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT - CASE 72 WHEN AVG ( + - 97 ) - + 68 + COUNT ( - 22 ) THEN + - COUNT ( - 40 ) + + 20 * - + 25 ELSE NULL END + + 58 * 1 - NULLIF ( - - 96, - 23 ) AS col2
----
NULL

query I rowsort
SELECT + 75 * - 32
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT 68 * 87 + + 5 + + COUNT( * ) AS col2
----
5922

skipif mysql # not compatible
query I rowsort label-7503
SELECT 68 * 87 + + 5 + + COUNT ( * ) AS col2
----
5922

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7504
SELECT ALL 41 DIV + 52 + ( + - MIN( ALL - 30 ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL 41 / + 52 + ( + - MIN ( ALL - 30 ) ) AS col1
----
30

query I rowsort
SELECT 23 + 65 AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT 29 DIV 64 col1
----
0

skipif mysql # not compatible
query I rowsort label-7506
SELECT 29 / 64 col1
----
0

query I rowsort
SELECT ( ( 86 ) ) + + 11 + 81 * + 98 AS col1
----
8035

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT COUNT( * ) * - 69 * - 54 AS col1
----
3726

skipif mysql # not compatible
query I rowsort label-7508
SELECT COUNT ( * ) * - 69 * - 54 AS col1
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT COUNT( * ) + + 59 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-7509
SELECT COUNT ( * ) + + 59 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7510
SELECT 19 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-7510
SELECT 19 / + 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT 58 + + AVG ( + ( - + 26 ) ) + 74 - + 59 + - 75 / CAST( NULL AS SIGNED ) - + - 83 * 41 / - 74 * + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7511
SELECT 58 + + AVG ( + ( - + 26 ) ) + 74 - + 59 + - 75 / CAST ( NULL AS INTEGER ) - + - 83 * 41 / - 74 * + - 65
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT ALL 69 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL 69 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT COUNT( * ) + 17 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7513
SELECT COUNT ( * ) + 17 AS col2
----
18

query I rowsort
SELECT 48 + - 75
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT ALL 33 * + 13 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL 33 * + 13 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 68 * + 94 AS col0
----
6392

query II rowsort
SELECT + 25 AS col2, 22 col1
----
25
22

query II rowsort
SELECT ALL - 8, ( + 72 ) AS col1
----
-8
72

query I rowsort
SELECT DISTINCT 97 + + 74 AS col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT ALL 55 + + + COUNT( * ) + 79 + - 83 * + ( 67 ) AS col1
----
-5426

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL 55 + + + COUNT ( * ) + 79 + - 83 * + ( 67 ) AS col1
----
-5426

query II rowsort
SELECT ALL - - 99 AS col0, 88
----
99
88

query I rowsort
SELECT DISTINCT - + NULLIF ( 59, - + 92 ) * - + ( + 76 ) - 4
----
4480

query I rowsort
SELECT ALL - - ( - ( + 15 ) ) AS col0
----
-15

query I rowsort
SELECT DISTINCT + 94 + - + 82 + 60 AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT ALL 26 DIV - 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL 26 / - 60 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7526
SELECT + 65 + + CASE - 26 WHEN - CAST( + - 38 AS SIGNED ) THEN NULL WHEN + + 49 + + 75 THEN + + 41 * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT + 65 + + CASE - 26 WHEN - CAST ( + - 38 AS INTEGER ) THEN NULL WHEN + + 49 + + 75 THEN + + 41 * - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 40 + + + 85 * + 73
----
6245

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT + SUM( + ( - + 21 ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7528
SELECT + SUM ( + ( - + 21 ) ) AS col2
----
-21

query I rowsort
SELECT + 18 * 64 * + - 77 + 25 AS col1
----
-88679

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT 23 - + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-7530
SELECT 23 - + + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7531
SELECT ALL - COUNT( * ) col1, 24 AS col1
----
-1
24

skipif mysql # not compatible
query II rowsort label-7531
SELECT ALL - COUNT ( * ) col1, 24 AS col1
----
-1
24

query II rowsort
SELECT + 10, - CASE + + 33 WHEN + 30 THEN NULL WHEN - - 18 THEN - 95 ELSE NULL END * + + 58 + - 54 * - 59 col0
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT 83 * - + 78 - + 98 + - + COUNT( * )
----
-6573

skipif mysql # not compatible
query I rowsort label-7533
SELECT 83 * - + 78 - + 98 + - + COUNT ( * )
----
-6573

query I rowsort
SELECT ALL - - 85 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL + 20 / CASE - 44 WHEN 85 * + - 60 - + 59 + - 92 + + + 52 * + COUNT( * ) + + - 1 THEN + + 37 END * - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL + 20 / CASE - 44 WHEN 85 * + - 60 - + 59 + - 92 + + + 52 * + COUNT ( * ) + + - 1 THEN + + 37 END * - 62 AS col0
----
NULL

query I rowsort
SELECT - 59 * + 52 + - 60 * + 95
----
-8768

query I rowsort
SELECT DISTINCT - + 33 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT 92 * - ( + MIN( + 26 ) ) AS col2
----
-2392

skipif mysql # not compatible
query I rowsort label-7538
SELECT 92 * - ( + MIN ( + 26 ) ) AS col2
----
-2392

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7539
SELECT ALL 72 AS col0, - 49 + + + 37 * SUM( + 84 ) * + 90 - + 71 DIV 41 AS col2
----
72
279670

skipif mysql # not compatible
query II rowsort label-7539
SELECT ALL 72 AS col0, - 49 + + + 37 * SUM ( + 84 ) * + 90 - + 71 / 41 AS col2
----
72
279670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7540
SELECT - COALESCE ( - MAX( DISTINCT - 34 ), + 63 * + 8 * - CAST( NULL AS SIGNED ) + - COUNT( * ) DIV - 55 )
----
-34

skipif mysql # not compatible
query I rowsort label-7540
SELECT - COALESCE ( - MAX ( DISTINCT - 34 ), + 63 * + 8 * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) / - 55 )
----
-34

query I rowsort
SELECT 71 * - 1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT + 9 * - SUM( + 55 ) + + 51
----
-444

skipif mysql # not compatible
query I rowsort label-7542
SELECT + 9 * - SUM ( + 55 ) + + 51
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT DISTINCT - 12 * - 21 * + + COUNT( * ) AS col0
----
252

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT - 12 * - 21 * + + COUNT ( * ) AS col0
----
252

query I rowsort
SELECT 58 * - 25 AS col0
----
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT ALL - ( - COUNT( * ) ) * 41
----
41

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL - ( - COUNT ( * ) ) * 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL - NULLIF ( MAX( - 8 ), - 46 ) * - 15
----
-120

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL - NULLIF ( MAX ( - 8 ), - 46 ) * - 15
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT + ( + ( - - COUNT( * ) ) ) * + - 36
----
-36

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT + ( + ( - - COUNT ( * ) ) ) * + - 36
----
-36

query II rowsort
SELECT ALL 22 + + 15, 96 AS col1
----
37
96

query I rowsort
SELECT 48 * 59
----
2832

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT ALL COUNT( - 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL COUNT ( - 5 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7551
SELECT 28 + + COUNT( * ) col0, - 3 + - COALESCE ( - 32, + 81 DIV - 48, - 52 + 78 ) AS col1
----
29
29

skipif mysql # not compatible
query II rowsort label-7551
SELECT 28 + + COUNT ( * ) col0, - 3 + - COALESCE ( - 32, + 81 / - 48, - 52 + 78 ) AS col1
----
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL 62 + + + COUNT( DISTINCT - 26 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL 62 + + + COUNT ( DISTINCT - 26 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT 47 + - ( 97 ) * - 31 * + 30 + + COUNT( * )
----
90258

skipif mysql # not compatible
query I rowsort label-7553
SELECT 47 + - ( 97 ) * - 31 * + 30 + + COUNT ( * )
----
90258

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT MIN( 53 ) + + COUNT( + - 97 ) + 11 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7554
SELECT MIN ( 53 ) + + COUNT ( + - 97 ) + 11 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL - COUNT( * ) * + 29
----
-29

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - COUNT ( * ) * + 29
----
-29

query I rowsort
SELECT ALL - 72 * + 64 + + 28 AS col2
----
-4580

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT DISTINCT ( COUNT( * ) ) * - - MAX( DISTINCT + + 47 ) * 88 AS col0
----
4136

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT ( COUNT ( * ) ) * - - MAX ( DISTINCT + + 47 ) * 88 AS col0
----
4136

query I rowsort
SELECT 58 + + - 81 * 90 AS col1
----
-7232

query I rowsort
SELECT 45 * + ( - 93 ) * + - 78
----
326430

query II rowsort
SELECT ALL 33 * - + 48 AS col2, + 74 - - - 65
----
-1584
9

query I rowsort
SELECT + 56 * 71 + + - 18 AS col1
----
3958

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7562
SELECT - + 35 * - CAST( NULL AS DECIMAL ) + 49 * + NULLIF ( + 63, COALESCE ( + MIN( DISTINCT - 68 ), - 79, - - 69 + 29 ) ) - - MAX( ALL + 63 ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT - + 35 * - CAST ( NULL AS REAL ) + 49 * + NULLIF ( + 63, COALESCE ( + MIN ( DISTINCT - 68 ), - 79, - - 69 + 29 ) ) - - MAX ( ALL + 63 ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT + NULLIF ( + 6, + + 89 ) * 66 * - COUNT( * ) + - 67 + 2 * 33 * - 62 + + 26 * + - 30 AS col1
----
-5335

skipif mysql # not compatible
query I rowsort label-7563
SELECT + NULLIF ( + 6, + + 89 ) * 66 * - COUNT ( * ) + - 67 + 2 * 33 * - 62 + + 26 * + - 30 AS col1
----
-5335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT ALL - - NULLIF ( - 18, + 64 / 79 ) * - + CAST( NULL AS SIGNED ) + 76 - 6 * 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL - - NULLIF ( - 18, + 64 / 79 ) * - + CAST ( NULL AS INTEGER ) + 76 - 6 * 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT DISTINCT - ( + SUM( 54 ) ) DIV - 32 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT - ( + SUM ( 54 ) ) / - 32 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT DISTINCT - 85 * + - 16 - ( - COUNT( * ) ), + 36 AS col0
----
1361
36

skipif mysql # not compatible
query II rowsort label-7566
SELECT DISTINCT - 85 * + - 16 - ( - COUNT ( * ) ), + 36 AS col0
----
1361
36

query I rowsort
SELECT ALL + + 40 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT DISTINCT COUNT( * ) * 61
----
61

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT COUNT ( * ) * 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - 39 * COUNT( * ) + + 59
----
20

skipif mysql # not compatible
query I rowsort label-7569
SELECT - 39 * COUNT ( * ) + + 59
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7570
SELECT + + 8 DIV + MIN( DISTINCT + + ( 78 ) ) * - - 26 + + 33
----
33

skipif mysql # not compatible
query I rowsort label-7570
SELECT + + 8 / + MIN ( DISTINCT + + ( 78 ) ) * - - 26 + + 33
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7571
SELECT - - CAST( NULL AS SIGNED ) * - - COUNT( ALL - - 44 ) * - 63 - CAST( 95 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT - - CAST ( NULL AS INTEGER ) * - - COUNT ( ALL - - 44 ) * - 63 - CAST ( 95 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 63 * + 75 + - 63 * + 49 * + + 20 AS col0
----
-57015

query I rowsort
SELECT + 32 + - 85 * 92 + + 74 * 28
----
-5716

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT - 43 * COUNT( * ) - - COUNT( - + 19 ) * + 93
----
50

skipif mysql # not compatible
query I rowsort label-7574
SELECT - 43 * COUNT ( * ) - - COUNT ( - + 19 ) * + 93
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT - + 27 * - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7575
SELECT - + 27 * - COUNT ( * ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7576
SELECT - 26 * + ( 73 ) + + + NULLIF ( - CAST( - ( + 24 ) AS SIGNED ), + 68 * - 13 * + 19 * - - NULLIF ( - 96, - COUNT( * ) ) )
----
-1874

skipif mysql # not compatible
query I rowsort label-7576
SELECT - 26 * + ( 73 ) + + + NULLIF ( - CAST ( - ( + 24 ) AS INTEGER ), + 68 * - 13 * + 19 * - - NULLIF ( - 96, - COUNT ( * ) ) )
----
-1874

query I rowsort
SELECT + 75 + + ( - - 29 )
----
104

query I rowsort
SELECT + 34 * - + NULLIF ( + 79, - ( - - 7 ) ) * - + 79 + + 42
----
212236

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL COUNT( * ) * + 39
----
39

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL COUNT ( * ) * + 39
----
39

query I rowsort
SELECT DISTINCT ( 55 ) + - - 45
----
100

query I rowsort
SELECT ALL - 35 + 18 AS col2
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-7582
SELECT - 28 + + - 17 DIV 62 * + - 89 * + 2 AS col2, 80
----
-28
80

skipif mysql # not compatible
query II rowsort label-7582
SELECT - 28 + + - 17 / 62 * + - 89 * + 2 AS col2, 80
----
-28
80

query I rowsort
SELECT ALL 34 + + - 36 * + 18 * + + 28 AS col0
----
-18110

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT DISTINCT - CASE - - MAX( - 93 ) WHEN - 13 THEN - 59 ELSE NULL END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT - CASE - - MAX ( - 93 ) WHEN - 13 THEN - 59 ELSE NULL END + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - ( - 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT DISTINCT COUNT( + + 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT COUNT ( + + 11 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT ALL - 35 + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - 35 + COUNT ( * ) AS col0
----
-34

query I rowsort
SELECT - 98 + - + 92
----
-190

query I rowsort
SELECT ALL + 63 + - - 22
----
85

query I rowsort
SELECT DISTINCT + 45 * 64
----
2880

query I rowsort
SELECT DISTINCT ( + 33 ) AS col1
----
33

query I rowsort
SELECT DISTINCT - 18 + + 7
----
-11

query I rowsort
SELECT - 14 + + 37
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL - 0 - 50 - + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL - 0 - 50 - + - COUNT ( * )
----
-49

query I rowsort
SELECT - + NULLIF ( 7, 48 ) AS col0
----
-7

query I rowsort
SELECT - 78 * 82 * 18
----
-115128

query I rowsort
SELECT + ( 19 ) * - 97 AS col0
----
-1843

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT + CASE - MIN( - 11 ) WHEN - 25 THEN NULL WHEN + 7 THEN + 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7598
SELECT + CASE - MIN ( - 11 ) WHEN - 25 THEN NULL WHEN + 7 THEN + 55 END AS col2
----
NULL

query I rowsort
SELECT ALL 44 * - + 1 AS col1
----
-44

query I rowsort
SELECT - - 47 * - 30
----
-1410

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT ALL - ( + 44 ) DIV + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL - ( + 44 ) / + 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL + - CASE - - 21 WHEN + COUNT( * ) THEN - 46 WHEN - 46 + - 48 THEN + + COALESCE ( - 79, + 58 ) + SUM( - + 83 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL + - CASE - - 21 WHEN + COUNT ( * ) THEN - 46 WHEN - 46 + - 48 THEN + + COALESCE ( - 79, + 58 ) + SUM ( - + 83 ) END
----
NULL

query I rowsort
SELECT - + 72 * 25
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT + COUNT( * ) * + + 55 - - ( - 55 ) + + 25 + - - 0 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7604
SELECT + COUNT ( * ) * + + 55 - - ( - 55 ) + + 25 + - - 0 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT DISTINCT + - SUM( DISTINCT + ( + 88 ) ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT + - SUM ( DISTINCT + ( + 88 ) ) col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT + 64 * + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7606
SELECT + 64 * + COUNT ( * ) AS col0
----
64

query I rowsort
SELECT ALL + - ( + - 74 ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT + + CAST( NULL AS SIGNED ) + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT + + CAST ( NULL AS INTEGER ) + 20 AS col0
----
NULL

query I rowsort
SELECT + 30 * 78 * + 23 AS col2
----
53820

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL + + MAX( - 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL + + MAX ( - 83 ) AS col0
----
-83

query II rowsort
SELECT ALL + 88 AS col2, - 80
----
88
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7612
SELECT ALL + 80 * - COUNT( * ) + + COUNT( * ) - - + 28 DIV - + 92 AS col0, 97 col2
----
-79
97

skipif mysql # not compatible
query II rowsort label-7612
SELECT ALL + 80 * - COUNT ( * ) + + COUNT ( * ) - - + 28 / - + 92 AS col0, 97 col2
----
-79
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7613
SELECT DISTINCT - 7 * - 45 + + + 54 + - COUNT( * ) + - - 44 - 85 + - + COUNT( * ) + - 48 * - + 29 + - CASE WHEN NULL IS NULL THEN - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT DISTINCT - 7 * - 45 + + + 54 + - COUNT ( * ) + - - 44 - 85 + - + COUNT ( * ) + - 48 * - + 29 + - CASE WHEN NULL IS NULL THEN - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT + ( SUM( DISTINCT - - 98 ) )
----
98

skipif mysql # not compatible
query I rowsort label-7614
SELECT + ( SUM ( DISTINCT - - 98 ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT ALL + 74 * - ( - COUNT( * ) ) + - ( 55 ) + - - 79 col0
----
98

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL + 74 * - ( - COUNT ( * ) ) + - ( 55 ) + - - 79 col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL COUNT( * ) * 6 + + + 15
----
21

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL COUNT ( * ) * 6 + + + 15
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7617
SELECT + ( - CAST( - + 32 AS SIGNED ) ) DIV MAX( DISTINCT - 12 ) * + - 33 DIV + COUNT( * ) + 74 * + 57
----
4284

skipif mysql # not compatible
query I rowsort label-7617
SELECT + ( - CAST ( - + 32 AS INTEGER ) ) / MAX ( DISTINCT - 12 ) * + - 33 / + COUNT ( * ) + 74 * + 57
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL - 75 * + NULLIF ( - - 83, - 50 ) * + COUNT( DISTINCT + 16 ) + - 8 - + 84
----
-6317

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL - 75 * + NULLIF ( - - 83, - 50 ) * + COUNT ( DISTINCT + 16 ) + - 8 - + 84
----
-6317

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT MIN( DISTINCT + 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7619
SELECT MIN ( DISTINCT + 13 ) AS col1
----
13

query I rowsort
SELECT ALL 27 * - 27 + 60 col2
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT - ( MAX( DISTINCT + 76 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-7621
SELECT - ( MAX ( DISTINCT + 76 ) )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7622
SELECT - 8 AS col0, CAST( NULL AS SIGNED ) * 42
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-7622
SELECT - 8 AS col0, CAST ( NULL AS INTEGER ) * 42
----
-8
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT + 68 DIV 62 * + + 88
----
88

skipif mysql # not compatible
query I rowsort label-7623
SELECT + 68 / 62 * + + 88
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7624
SELECT - 74 DIV + 70 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7624
SELECT - 74 / + 70 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7625
SELECT + 86 * + 82 * - - MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT + 86 * + 82 * - - MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7626
SELECT DISTINCT 92 * + CAST( - 36 AS SIGNED ) AS col2
----
-3312

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT 92 * + CAST ( - 36 AS INTEGER ) AS col2
----
-3312

query I rowsort
SELECT ALL ( + 15 ) + - + 84 AS col0
----
-69

query I rowsort
SELECT DISTINCT 9 + + + ( - 13 ) col1
----
-4

query I rowsort
SELECT + 21 * + + 33 AS col2
----
693

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT + 38 DIV + - 23 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7630
SELECT + 38 / + - 23 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7631
SELECT - 76 AS col0, MAX( + COALESCE ( - 84, + + 63 ) ) AS col2
----
-76
-84

skipif mysql # not compatible
query II rowsort label-7631
SELECT - 76 AS col0, MAX ( + COALESCE ( - 84, + + 63 ) ) AS col2
----
-76
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT ALL CAST( + 98 AS SIGNED ) col1
----
98

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL CAST ( + 98 AS INTEGER ) col1
----
98

query I rowsort
SELECT ALL NULLIF ( - 68, - 24 )
----
-68

query I rowsort
SELECT + 2 + + ( + 0 ) + 57 AS col2
----
59

query II rowsort
SELECT ALL - 85, 29 * + + 88 AS col1
----
-85
2552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7636
SELECT - - SUM( + ( 48 ) ) - + 40 / - COUNT( - + 77 ) * 55 * - 91 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT - - SUM ( + ( 48 ) ) - + 40 / - COUNT ( - + 77 ) * 55 * - 91 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7637
SELECT - + 59 AS col0, - 66 * + ( + + COUNT( * ) ) * + 44
----
-59
-2904

skipif mysql # not compatible
query II rowsort label-7637
SELECT - + 59 AS col0, - 66 * + ( + + COUNT ( * ) ) * + 44
----
-59
-2904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7638
SELECT 75 + + 9 DIV COUNT( DISTINCT 82 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7638
SELECT 75 + + 9 / COUNT ( DISTINCT 82 ) AS col1
----
84

query I rowsort
SELECT - - ( + - ( + - 16 ) )
----
16

query I rowsort
SELECT ALL - COALESCE ( + 20, 42 ) * + 80 * - 73
----
116800

query I rowsort
SELECT + 12 * - 57 * - 27 AS col0
----
18468

query I rowsort
SELECT ALL - - 51 col0
----
51

query I rowsort
SELECT ALL - CASE - 78 WHEN 98 THEN 51 + + - 20 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT - - 98 * + MAX( - + 81 ) + + + 21 AS col0
----
-7917

skipif mysql # not compatible
query I rowsort label-7644
SELECT - - 98 * + MAX ( - + 81 ) + + + 21 AS col0
----
-7917

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL - - MAX( ALL 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - - MAX ( ALL 46 ) AS col2
----
46

query II rowsort
SELECT ALL - - 78, - 26 AS col0
----
78
-26

query I rowsort
SELECT 75 * + 38 AS col2
----
2850

query I rowsort
SELECT + 1 col2
----
1

query I rowsort
SELECT + + 21 col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7650
SELECT ALL - - MIN( - 47 ) DIV + 93 + + COUNT( * ) + - - 83 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL - - MIN ( - 47 ) / + 93 + + COUNT ( * ) + - - 83 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT DISTINCT - + 26 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT - + 26 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( - 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL - 35 + - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL - 35 + - COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT 99 * - + ( - ( + 60 ) ) * - COUNT( * ) + - 90 - + - 26 + COUNT( ALL - 76 ) AS col0
----
-6003

skipif mysql # not compatible
query I rowsort label-7654
SELECT 99 * - + ( - ( + 60 ) ) * - COUNT ( * ) + - 90 - + - 26 + COUNT ( ALL - 76 ) AS col0
----
-6003

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT COUNT( * ) + + 59 * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7655
SELECT COUNT ( * ) + + 59 * COUNT ( * )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7656
SELECT CAST( - NULLIF ( + - COUNT( * ), 32 * - 44 + - 3 / ( - - 3 ) ) AS SIGNED ) * 25 - + COUNT( ALL - 69 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7656
SELECT CAST ( - NULLIF ( + - COUNT ( * ), 32 * - 44 + - 3 / ( - - 3 ) ) AS INTEGER ) * 25 - + COUNT ( ALL - 69 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT 47 + + COUNT( + + 47 ) + 30 * - 83 AS col0
----
-2442

skipif mysql # not compatible
query I rowsort label-7657
SELECT 47 + + COUNT ( + + 47 ) + 30 * - 83 AS col0
----
-2442

query I rowsort
SELECT ALL 44 - - 90
----
134

query I rowsort
SELECT 82 + 95 AS col1
----
177

query II rowsort
SELECT ALL 26 * 4, + 72 AS col0
----
104
72

query I rowsort
SELECT 88 * 95 col1
----
8360

onlyif mysql # DIV for integer division: 
query I rowsort label-7662
SELECT DISTINCT 38 DIV NULLIF ( ( - - 95 ), 21 ) DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT 38 / NULLIF ( ( - - 95 ), 21 ) / - 40
----
0

query I rowsort
SELECT DISTINCT 55 - + 46 AS col0
----
9

query II rowsort
SELECT 1 * - 28, 9 AS col0
----
-28
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7665
SELECT COUNT( * ) + + + 49 AS col2, COUNT( * ) + - 47 AS col0
----
50
-46

skipif mysql # not compatible
query II rowsort label-7665
SELECT COUNT ( * ) + + + 49 AS col2, COUNT ( * ) + - 47 AS col0
----
50
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7666
SELECT ALL 90 * ( - CAST( NULL AS SIGNED ) ) / + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL 90 * ( - CAST ( NULL AS INTEGER ) ) / + + 6 AS col1
----
NULL

query I rowsort
SELECT - 69 * - 88 * - 71 + 50 col2
----
-431062

query I rowsort
SELECT DISTINCT NULLIF ( + + 20, - - 57 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7669
SELECT COUNT( + - 27 ) * + - 37 + + CAST( - CAST( + 38 AS SIGNED ) AS SIGNED ) - - - COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7669
SELECT COUNT ( + - 27 ) * + - 37 + + CAST ( - CAST ( + 38 AS INTEGER ) AS INTEGER ) - - - COUNT ( * ) AS col1
----
-76

query I rowsort
SELECT ALL + 42 * + 35
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT DISTINCT + COUNT( 36 ) * - 88 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT + COUNT ( 36 ) * - 88 AS col0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-7672
SELECT DISTINCT - 3 DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT - 3 / + 38
----
0

query I rowsort
SELECT DISTINCT + 25 col1
----
25

query I rowsort
SELECT ALL - 59 + 98 col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7675
SELECT + ( - 52 ) DIV 74 + - - 81 + + + 3 + + 48 * + + MIN( 5 ) AS col0
----
324

skipif mysql # not compatible
query I rowsort label-7675
SELECT + ( - 52 ) / 74 + - - 81 + + + 3 + + 48 * + + MIN ( 5 ) AS col0
----
324

query I rowsort
SELECT DISTINCT - 68 + + 39 AS col2
----
-29

query II rowsort
SELECT DISTINCT - ( - - 92 ) AS col1, 27
----
-92
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7678
SELECT CASE 76 WHEN - 8 + 80 THEN NULL WHEN + MIN( ALL ( + 98 ) ) THEN - NULLIF ( + + NULLIF ( + MIN( ALL ( - 15 ) ), - 74 ), - CASE + + 24 WHEN - 81 + + 96 - + + 65 * + 25 THEN + 10 + - + 44 WHEN + CAST( + 42 AS SIGNED ) / SUM( 90 ) + - CASE + - CAST( + 34 AS SIGNED ) WHEN - + 55 + - 9 THEN - 30 WHEN - + 16 * + 44 THEN NULL ELSE + 58 * 79 - + 58 END - 5 * 85 THEN - 67 ELSE - 6 END ) * 52 END / COUNT( * ) + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT CASE 76 WHEN - 8 + 80 THEN NULL WHEN + MIN ( ALL ( + 98 ) ) THEN - NULLIF ( + + NULLIF ( + MIN ( ALL ( - 15 ) ), - 74 ), - CASE + + 24 WHEN - 81 + + 96 - + + 65 * + 25 THEN + 10 + - + 44 WHEN + CAST ( + 42 AS INTEGER ) / SUM ( 90 ) + - CASE + - CAST ( + 34 AS INTEGER ) WHEN - + 55 + - 9 THEN - 30 WHEN - + 16 * + 44 THEN NULL ELSE + 58 * 79 - + 58 END - 5 * 85 THEN - 67 ELSE - 6 END ) * 52 END / COUNT ( * ) + + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7679
SELECT COUNT( * ) AS col1, - CAST( + + 32 AS SIGNED ) + + 76
----
1
44

skipif mysql # not compatible
query II rowsort label-7679
SELECT COUNT ( * ) AS col1, - CAST ( + + 32 AS INTEGER ) + + 76
----
1
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7680
SELECT DISTINCT - ( 89 ) + - CAST( + + 27 AS SIGNED ) * + 90 * - 32
----
77671

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT - ( 89 ) + - CAST ( + + 27 AS INTEGER ) * + 90 * - 32
----
77671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7681
SELECT 31 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT 31 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7682
SELECT 73 + - 30 - + 90 DIV CASE - 28 WHEN + 6 + CAST( NULL AS SIGNED ) THEN + COUNT( * ) + - - 55 WHEN - 77 * - + 74 - - 26 * - 52 DIV - 81 THEN NULL ELSE + COUNT( * ) END
----
-47

skipif mysql # not compatible
query I rowsort label-7682
SELECT 73 + - 30 - + 90 / CASE - 28 WHEN + 6 + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) + - - 55 WHEN - 77 * - + 74 - - 26 * - 52 / - 81 THEN NULL ELSE + COUNT ( * ) END
----
-47

query I rowsort
SELECT DISTINCT - 31 + + 48 + + 44 * + 21 * - 16 AS col1
----
-14767

onlyif mysql # DIV for integer division: 
query I rowsort label-7684
SELECT DISTINCT - 22 DIV - 8
----
2

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT - 22 / - 8
----
2

query I rowsort
SELECT DISTINCT 92 - 69
----
23

query I rowsort
SELECT DISTINCT 50 * + 5 AS col2
----
250

query II rowsort
SELECT ALL + 5 * + 64 * 32 AS col2, 52 * + - 48 AS col2
----
10240
-2496

query II rowsort
SELECT 52, 77 col1
----
52
77

query I rowsort
SELECT ALL - 41 * - 4 AS col2
----
164

query I rowsort
SELECT 63 - + - 99
----
162

query I rowsort
SELECT 98 * - 64 * + 11 col2
----
-68992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7692
SELECT DISTINCT - 32 * NULLIF ( COUNT( * ), 62 * 34 * + 33 * 23 * 34 ) * - NULLIF ( + COALESCE ( + COUNT( * ), + 21, - 16 * MIN( - 10 ) + + 32 ), - CAST( + 43 AS DECIMAL ) * - + CAST( + COALESCE ( 80, - 61 ) AS SIGNED ) - + COUNT( * ) ) + - 36 + 6
----
2

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT - 32 * NULLIF ( COUNT ( * ), 62 * 34 * + 33 * 23 * 34 ) * - NULLIF ( + COALESCE ( + COUNT ( * ), + 21, - 16 * MIN ( - 10 ) + + 32 ), - CAST ( + 43 AS REAL ) * - + CAST ( + COALESCE ( 80, - 61 ) AS INTEGER ) - + COUNT ( * ) ) + - 36 + 6
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT DISTINCT MAX( - - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT MAX ( - - 39 )
----
39

query II rowsort
SELECT ALL + 32 AS col1, - 28 + ( - + 33 ) AS col2
----
32
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7695
SELECT ALL - 74 * + 75 + - 92 * + - CAST( NULL AS SIGNED ) * - 9 * + COUNT( - 8 ) * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL - 74 * + 75 + - 92 * + - CAST ( NULL AS INTEGER ) * - 9 * + COUNT ( - 8 ) * 88
----
NULL

query I rowsort
SELECT DISTINCT - 63 + - + 12 * - + 6
----
9

query II rowsort
SELECT - 63 AS col0, + 87 + - 87
----
-63
0

query I rowsort
SELECT + + 35 * 65
----
2275

onlyif mysql # aggregate syntax: 
query II rowsort label-7699
SELECT ALL - ( - - 87 ) + COUNT( * ) col1, + 72 AS col0
----
-86
72

skipif mysql # not compatible
query II rowsort label-7699
SELECT ALL - ( - - 87 ) + COUNT ( * ) col1, + 72 AS col0
----
-86
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT - - 24 + + SUM( ALL + 33 )
----
57

skipif mysql # not compatible
query I rowsort label-7700
SELECT - - 24 + + SUM ( ALL + 33 )
----
57

query I rowsort
SELECT + 43 - + - 52 AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7702
SELECT + 52 + - CASE - CAST( + 34 AS SIGNED ) WHEN - 72 THEN - + MIN( DISTINCT + + 13 ) * + ( + ( CAST( + + 17 AS SIGNED ) ) ) * + 57 - + SUM( ALL - 44 ) ELSE 72 * + 84 * + 45 * 14 DIV - + COUNT( * ) + MIN( ALL - 84 ) END
----
3810376

skipif mysql # not compatible
query I rowsort label-7702
SELECT + 52 + - CASE - CAST ( + 34 AS INTEGER ) WHEN - 72 THEN - + MIN ( DISTINCT + + 13 ) * + ( + ( CAST ( + + 17 AS INTEGER ) ) ) * + 57 - + SUM ( ALL - 44 ) ELSE 72 * + 84 * + 45 * 14 / - + COUNT ( * ) + MIN ( ALL - 84 ) END
----
3810376

query II rowsort
SELECT - - 37 AS col2, + CASE 92 WHEN + 42 * - 38 + 53 - - + 55 THEN + 14 END * NULLIF ( + 17, - + 47 ) - + - 2
----
37
NULL

query I rowsort
SELECT ALL - 78 * - 35 * + 19 col0
----
51870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7705
SELECT DISTINCT - - CASE + - 56 WHEN - COUNT( * ) THEN - 18 * 35 + 80 + - SUM( DISTINCT + 6 ) WHEN - 50 THEN 6 / CASE + 10 WHEN 14 THEN - 71 ELSE + - ( + 14 ) END + CASE + - 94 WHEN + 70 THEN NULL WHEN - 5 THEN NULL WHEN + - NULLIF ( + - SUM( + CAST( NULL AS SIGNED ) ), - - 94 ) * - 25 + + AVG ( ALL - 41 ) THEN - - 56 - 81 * - MAX( ALL 8 ) - + 69 ELSE NULL END END * COUNT( + 59 ) + + - COUNT( * ) - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT - - CASE + - 56 WHEN - COUNT ( * ) THEN - 18 * 35 + 80 + - SUM ( DISTINCT + 6 ) WHEN - 50 THEN 6 / CASE + 10 WHEN 14 THEN - 71 ELSE + - ( + 14 ) END + CASE + - 94 WHEN + 70 THEN NULL WHEN - 5 THEN NULL WHEN + - NULLIF ( + - SUM ( + CAST ( NULL AS INTEGER ) ), - - 94 ) * - 25 + + AVG ( ALL - 41 ) THEN - - 56 - 81 * - MAX ( ALL 8 ) - + 69 ELSE NULL END END * COUNT ( + 59 ) + + - COUNT ( * ) - 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT - 42 * + CAST( NULL AS SIGNED ) + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT - 42 * + CAST ( NULL AS INTEGER ) + + 61
----
NULL

query I rowsort
SELECT ALL - 31 * 71 + - ( - 21 )
----
-2180

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT + CASE + COALESCE ( + 90, 50 ) WHEN + 83 + - 7 THEN - COUNT( * ) ELSE NULL END + + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT + CASE + COALESCE ( + 90, 50 ) WHEN + 83 + - 7 THEN - COUNT ( * ) ELSE NULL END + + 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT CASE - - 88 WHEN 58 THEN NULL ELSE + MAX( + + 99 ) * - 52 + + 49 + - COUNT( * ) * 7 END AS col0
----
-5106

skipif mysql # not compatible
query I rowsort label-7709
SELECT CASE - - 88 WHEN 58 THEN NULL ELSE + MAX ( + + 99 ) * - 52 + + 49 + - COUNT ( * ) * 7 END AS col0
----
-5106

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT CASE - COUNT( * ) WHEN + 29 + + + 32 THEN + 65 ELSE + - COUNT( * ) - - - 61 END col1
----
-62

skipif mysql # not compatible
query I rowsort label-7710
SELECT CASE - COUNT ( * ) WHEN + 29 + + + 32 THEN + 65 ELSE + - COUNT ( * ) - - - 61 END col1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7711
SELECT + 52 * + 36, 36 + + COUNT( * ) AS col1
----
1872
37

skipif mysql # not compatible
query II rowsort label-7711
SELECT + 52 * + 36, 36 + + COUNT ( * ) AS col1
----
1872
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7712
SELECT - COUNT( - + 75 ) * 71 - - 43 - - + 41 + + - NULLIF ( + 13, 17 + - 76 / 40 + + 0 ) * + 91 AS col2, + 67 AS col1
----
-1170
67

skipif mysql # not compatible
query II rowsort label-7712
SELECT - COUNT ( - + 75 ) * 71 - - 43 - - + 41 + + - NULLIF ( + 13, 17 + - 76 / 40 + + 0 ) * + 91 AS col2, + 67 AS col1
----
-1170
67

query I rowsort
SELECT + ( + 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7714
SELECT + 71 * + 43 - - + CASE COUNT( * ) WHEN 59 THEN NULLIF ( - 67, + + ( + 43 ) / - + 67 ) ELSE - NULLIF ( - MAX( 7 ), + 6 ) END col2, 28 * - + COUNT( * )
----
3060
-28

skipif mysql # not compatible
query II rowsort label-7714
SELECT + 71 * + 43 - - + CASE COUNT ( * ) WHEN 59 THEN NULLIF ( - 67, + + ( + 43 ) / - + 67 ) ELSE - NULLIF ( - MAX ( 7 ), + 6 ) END col2, 28 * - + COUNT ( * )
----
3060
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT - COUNT( * ) - + NULLIF ( - + 11, - 40 ) + ( + + 89 ) * COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7715
SELECT - COUNT ( * ) - + NULLIF ( - + 11, - 40 ) + ( + + 89 ) * COUNT ( * ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT 36 * 87 + - 98 + + COUNT( * )
----
3035

skipif mysql # not compatible
query I rowsort label-7716
SELECT 36 * 87 + - 98 + + COUNT ( * )
----
3035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7717
SELECT + COUNT( DISTINCT + + 5 ) * 73 DIV - 68
----
-1

skipif mysql # not compatible
query I rowsort label-7717
SELECT + COUNT ( DISTINCT + + 5 ) * 73 / - 68
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7718
SELECT - CASE + 90 WHEN + COUNT( * ) THEN NULL WHEN - + AVG ( ALL + + 66 ) + + 63 + + ( - + 97 ) + - 66 THEN + + 12 + - + 65 - + CAST( - + COUNT( * ) AS SIGNED ) ELSE NULL END * + 17 + + - ( - - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7718
SELECT - CASE + 90 WHEN + COUNT ( * ) THEN NULL WHEN - + AVG ( ALL + + 66 ) + + 63 + + ( - + 97 ) + - 66 THEN + + 12 + - + 65 - + CAST ( - + COUNT ( * ) AS INTEGER ) ELSE NULL END * + 17 + + - ( - - 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT + 14 * NULLIF ( - 79, + 10 + + 19 * - + 67 / + 88 + ( ( + - 84 ) ) + - SUM( 76 ) * + 87 * + 8 + - - COALESCE ( 14, + + 49 + - 51 / + 69 ) * 1 ) + COUNT( * ) AS col1
----
-1105

skipif mysql # not compatible
query I rowsort label-7719
SELECT + 14 * NULLIF ( - 79, + 10 + + 19 * - + 67 / + 88 + ( ( + - 84 ) ) + - SUM ( 76 ) * + 87 * + 8 + - - COALESCE ( 14, + + 49 + - 51 / + 69 ) * 1 ) + COUNT ( * ) AS col1
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT + 27 * - COUNT( * ) - + + 99
----
-126

skipif mysql # not compatible
query I rowsort label-7720
SELECT + 27 * - COUNT ( * ) - + + 99
----
-126

query I rowsort
SELECT - 79 + - + 38
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT - 44 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-7722
SELECT - 44 / + 63
----
0

query I rowsort
SELECT - ( + 85 ) + 59
----
-26

query I rowsort
SELECT - 61 * + 66
----
-4026

query I rowsort
SELECT ALL NULLIF ( - 43, - 59 ) AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT ALL + 25 DIV + 98 col1
----
0

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL + 25 / + 98 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7727
SELECT DISTINCT - 67 + + 27 + + COALESCE ( - 79, - + COALESCE ( - 55, - - 73 * + - ( + 49 ), 87 ) + - - 97 * 93 ) * + + ( + 77 ) + 65 AS col0, 43 * + - CASE - 90 WHEN - MIN( DISTINCT - - 23 ) THEN NULL WHEN - 52 * + + 22 / + 95 THEN - 92 ELSE + - COUNT( * ) + + ( - 32 ) END * + 61 AS col2
----
-6058
86559

skipif mysql # not compatible
query II rowsort label-7727
SELECT DISTINCT - 67 + + 27 + + COALESCE ( - 79, - + COALESCE ( - 55, - - 73 * + - ( + 49 ), 87 ) + - - 97 * 93 ) * + + ( + 77 ) + 65 AS col0, 43 * + - CASE - 90 WHEN - MIN ( DISTINCT - - 23 ) THEN NULL WHEN - 52 * + + 22 / + 95 THEN - 92 ELSE + - COUNT ( * ) + + ( - 32 ) END * + 61 AS col2
----
-6058
86559

query I rowsort
SELECT ALL ( - 18 ) * + 92
----
-1656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7729
SELECT ALL + 45 + CAST( + 98 AS SIGNED ) + - - 64 * 47 DIV 98 DIV - - ( + + COUNT( * ) ) col1
----
173

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + 45 + CAST ( + 98 AS INTEGER ) + - - 64 * 47 / 98 / - - ( + + COUNT ( * ) ) col1
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7730
SELECT - + COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) + - 48 ) + + COUNT( * ) + - 66 * + CAST( + ( - + 37 ) AS SIGNED ) * 76 - - 18 + + 46 * + CASE + 91 WHEN + 0 + + 55 THEN + - COUNT( * ) END * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT - + COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) + - 48 ) + + COUNT ( * ) + - 66 * + CAST ( + ( - + 37 ) AS INTEGER ) * 76 - - 18 + + 46 * + CASE + 91 WHEN + 0 + + 55 THEN + - COUNT ( * ) END * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7731
SELECT ALL - ( + ( - + COUNT( * ) ) ) + + - 74 * COUNT( ALL 29 ) DIV COUNT( * ), 65 * - 74 - - 20 + + 30 AS col0
----
-73
-4760

skipif mysql # not compatible
query II rowsort label-7731
SELECT ALL - ( + ( - + COUNT ( * ) ) ) + + - 74 * COUNT ( ALL 29 ) / COUNT ( * ), 65 * - 74 - - 20 + + 30 AS col0
----
-73
-4760

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT DISTINCT + 75 * COUNT( * ) * + + 65 AS col2
----
4875

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT + 75 * COUNT ( * ) * + + 65 AS col2
----
4875

query I rowsort
SELECT - - 64 + + 9 AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7734
SELECT DISTINCT - + 23 + + 46, - COUNT( * ) AS col0
----
23
-1

skipif mysql # not compatible
query II rowsort label-7734
SELECT DISTINCT - + 23 + + 46, - COUNT ( * ) AS col0
----
23
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT ALL - CAST( - + 47 AS SIGNED ) + - - 97
----
144

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - CAST ( - + 47 AS INTEGER ) + - - 97
----
144

query I rowsort
SELECT - 58 * + 63 * 79 AS col1
----
-288666

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT + 28 + COUNT( DISTINCT + 59 ) * - 59 * + 11 * - 49 * - + COALESCE ( 68, + - 24 * + ( - 48 ) )
----
-2162440

skipif mysql # not compatible
query I rowsort label-7737
SELECT + 28 + COUNT ( DISTINCT + 59 ) * - 59 * + 11 * - 49 * - + COALESCE ( 68, + - 24 * + ( - 48 ) )
----
-2162440

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT MIN( DISTINCT + 74 ) col0
----
74

skipif mysql # not compatible
query I rowsort label-7738
SELECT MIN ( DISTINCT + 74 ) col0
----
74

query I rowsort
SELECT DISTINCT + - 48 + - 5 - 33 - + 57 col1
----
-143

onlyif mysql # DIV for integer division: 
query II rowsort label-7740
SELECT ALL - 18 + + 49 + - + 89 + 4 DIV + - 23 + 92 * 43, 9 col2
----
3898
9

skipif mysql # not compatible
query II rowsort label-7740
SELECT ALL - 18 + + 49 + - + 89 + 4 / + - 23 + 92 * 43, 9 col2
----
3898
9

query I rowsort
SELECT ALL ( + 69 ) col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT DISTINCT + - ( + 43 ) + + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT + - ( + 43 ) + + COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL + + NULLIF ( - 15, 75 / COUNT( * ) + - 19 * + + COUNT( * ) ) - - 24 * - 90
----
-2175

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL + + NULLIF ( - 15, 75 / COUNT ( * ) + - 19 * + + COUNT ( * ) ) - - 24 * - 90
----
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL + - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL + - COUNT ( * ) col1
----
-1

query I rowsort
SELECT + ( + + 19 ) * + 53 AS col1
----
1007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7746
SELECT + MAX( DISTINCT + ( 47 ) ) DIV + 35 + + 78 + + + 59 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-7746
SELECT + MAX ( DISTINCT + ( 47 ) ) / + 35 + + 78 + + + 59 AS col0
----
138

query I rowsort
SELECT DISTINCT 81 * + 52 AS col0
----
4212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7748
SELECT ALL 28 * 24 DIV - 58 * COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL 28 * 24 / - 58 * COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT + COUNT( DISTINCT 87 ) - + 23 + - 61
----
-83

skipif mysql # not compatible
query I rowsort label-7749
SELECT + COUNT ( DISTINCT 87 ) - + 23 + - 61
----
-83

query I rowsort
SELECT + ( + + 27 )
----
27

query II rowsort
SELECT + 58 col0, 10
----
58
10

query I rowsort
SELECT ( - 80 ) * 82 AS col0
----
-6560

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT 8 + COUNT( * ) + + - 48 * + 80 * + 75 * + SUM( DISTINCT + 58 ) col1
----
-16703991

skipif mysql # not compatible
query I rowsort label-7753
SELECT 8 + COUNT ( * ) + + - 48 * + 80 * + 75 * + SUM ( DISTINCT + 58 ) col1
----
-16703991

query II rowsort
SELECT 82, ( + 13 ) * - ( - 71 ) AS col1
----
82
923

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT ALL 38 + COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL 38 + COUNT ( * ) AS col1
----
39

query II rowsort
SELECT 91 AS col1, - ( + + 88 ) * - 59 * - - 96 AS col1
----
91
498432

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT DISTINCT + MAX( ALL 38 ) * + 22
----
836

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT + MAX ( ALL 38 ) * + 22
----
836

query I rowsort
SELECT ALL 32 + 76
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT 18 * + + 63 * NULLIF ( - COUNT( * ), - 58 + 78 ) col1
----
-1134

skipif mysql # not compatible
query I rowsort label-7759
SELECT 18 * + + 63 * NULLIF ( - COUNT ( * ), - 58 + 78 ) col1
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL COUNT( * ) + 57
----
58

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL COUNT ( * ) + 57
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7761
SELECT 5 - - MAX( ALL - + 73 ) col2, CASE - + 89 WHEN NULLIF ( - 14, 39 * + 54 - - 31 * + 92 ) - + 98 + - - COUNT( * ) THEN + + 85 / - ( 25 ) + + 95 WHEN - + ( + CAST( - 8 AS SIGNED ) ) * 33 THEN - 3 - - 57 END * + 15 - + 74 + - - COUNT( * )
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-7761
SELECT 5 - - MAX ( ALL - + 73 ) col2, CASE - + 89 WHEN NULLIF ( - 14, 39 * + 54 - - 31 * + 92 ) - + 98 + - - COUNT ( * ) THEN + + 85 / - ( 25 ) + + 95 WHEN - + ( + CAST ( - 8 AS INTEGER ) ) * 33 THEN - 3 - - 57 END * + 15 - + 74 + - - COUNT ( * )
----
-68
NULL

query II rowsort
SELECT - + 21, 61 col1
----
-21
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7763
SELECT COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7763
SELECT COUNT ( * ), COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT MAX( DISTINCT - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-7764
SELECT MAX ( DISTINCT - 63 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL + + 59 + - COUNT( * ) - - 3
----
61

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + + 59 + - COUNT ( * ) - - 3
----
61

query I rowsort
SELECT DISTINCT + 80 + + 48
----
128

query I rowsort
SELECT + 78 - + + 47
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7768
SELECT ALL - 31 * 89 + + 24 col2, 85 DIV + COUNT( * ) - - + 2
----
-2735
87

skipif mysql # not compatible
query II rowsort label-7768
SELECT ALL - 31 * 89 + + 24 col2, 85 / + COUNT ( * ) - - + 2
----
-2735
87

query II rowsort
SELECT - 93 AS col1, + 77 AS col1
----
-93
77

query I rowsort
SELECT 44 * + 31 * - 13 + - 48 + - 25 AS col2
----
-17805

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7771
SELECT + CAST( NULL AS SIGNED ) * + 90 + + CAST( 32 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT + CAST ( NULL AS INTEGER ) * + 90 + + CAST ( 32 AS REAL )
----
NULL

query II rowsort
SELECT 76, 4 AS col0
----
76
4

query I rowsort
SELECT 36 - + - 77 + + 93 + + 62 AS col0
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT + MIN( ALL - ( - - 31 ) ) + - - 73 col2
----
42

skipif mysql # not compatible
query I rowsort label-7774
SELECT + MIN ( ALL - ( - - 31 ) ) + - - 73 col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL + 17 - - COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL + 17 - - COUNT ( * ) AS col2
----
18

query II rowsort
SELECT 57 * - 47 AS col1, 5 + + 29 * - 15 * + - 37 + - 8 AS col0
----
-2679
16092

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT ALL + NULLIF ( - ( COALESCE ( COUNT( * ), - 90 ) ), - - COUNT( * ) * + 52 - + ( + 33 ) ) * 62 * - - 95 + + 95 AS col1, 64
----
-5795
64

skipif mysql # not compatible
query II rowsort label-7777
SELECT ALL + NULLIF ( - ( COALESCE ( COUNT ( * ), - 90 ) ), - - COUNT ( * ) * + 52 - + ( + 33 ) ) * 62 * - - 95 + + 95 AS col1, 64
----
-5795
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7778
SELECT ( - COALESCE ( - 93, 0 + + 36, + - MIN( + 8 ) ) ) DIV COUNT( ( 17 ) ) + - 6
----
87

skipif mysql # not compatible
query I rowsort label-7778
SELECT ( - COALESCE ( - 93, 0 + + 36, + - MIN ( + 8 ) ) ) / COUNT ( ( 17 ) ) + - 6
----
87

query II rowsort
SELECT 25, 6 - - + 98 - + 89 AS col2
----
25
15

query I rowsort
SELECT ALL - COALESCE ( + 90, - - 91 + 31 ) AS col0
----
-90

query I rowsort
SELECT ALL 74 * + + 61 AS col2
----
4514

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT 72 + + + COUNT( * ) * - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-7782
SELECT 72 + + + COUNT ( * ) * - COUNT ( * )
----
71

query I rowsort
SELECT 8 * - CASE - 8 WHEN + - 90 - + 43 * 59 THEN + + 5 END col1
----
NULL

query I rowsort
SELECT DISTINCT 92 * - - ( + 15 )
----
1380

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT ALL - 56, COUNT( * ) + - COUNT( * ) AS col0
----
-56
0

skipif mysql # not compatible
query II rowsort label-7785
SELECT ALL - 56, COUNT ( * ) + - COUNT ( * ) AS col0
----
-56
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7786
SELECT DISTINCT + COUNT( * ) + 16 AS col2, + 25 AS col2
----
17
25

skipif mysql # not compatible
query II rowsort label-7786
SELECT DISTINCT + COUNT ( * ) + 16 AS col2, + 25 AS col2
----
17
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7787
SELECT DISTINCT - 69 AS col0, - COUNT( * )
----
-69
-1

skipif mysql # not compatible
query II rowsort label-7787
SELECT DISTINCT - 69 AS col0, - COUNT ( * )
----
-69
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7788
SELECT ALL COALESCE ( + NULLIF ( ( + 71 ), + 91 ), 49 * + - COUNT( * ) + - 46 + - ( + - 81 ) * + - 74 ) + COALESCE ( + ( - + 72 ), 48 ) - + + MAX( ALL + 6 ) DIV + 30
----
-1

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL COALESCE ( + NULLIF ( ( + 71 ), + 91 ), 49 * + - COUNT ( * ) + - 46 + - ( + - 81 ) * + - 74 ) + COALESCE ( + ( - + 72 ), 48 ) - + + MAX ( ALL + 6 ) / + 30
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL COUNT( * ) + + - 33
----
-32

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL COUNT ( * ) + + - 33
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT 17 DIV + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7790
SELECT 17 / + 69 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT ALL + COUNT( * ) + - - 37
----
38

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL + COUNT ( * ) + - - 37
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7792
SELECT NULLIF ( - + 57, - ( + - 54 ) * - MIN( ALL + 29 ) * - 73 ) + + COALESCE ( - + 31, CAST( NULL AS SIGNED ), SUM( DISTINCT - 54 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-7792
SELECT NULLIF ( - + 57, - ( + - 54 ) * - MIN ( ALL + 29 ) * - 73 ) + + COALESCE ( - + 31, CAST ( NULL AS INTEGER ), SUM ( DISTINCT - 54 ) )
----
-88

query II rowsort
SELECT ALL - 23 AS col1, 29 + - 43 AS col0
----
-23
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT + 27 + - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7794
SELECT + 27 + - COUNT ( * ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7795
SELECT ALL + COUNT( * ) + - 54 / 71 * - + CASE + + 24 WHEN + CAST( NULL AS SIGNED ) THEN - 17 + + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL + COUNT ( * ) + - 54 / 71 * - + CASE + + 24 WHEN + CAST ( NULL AS INTEGER ) THEN - 17 + + 26 END
----
NULL

query I rowsort
SELECT - 23 * + + 4 + + 32
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7797
SELECT ALL 79 + - + 18 + COALESCE ( + MIN( ALL + 97 ), + 64 / + 31 - 23 + ( 98 ) + - + CAST( 25 AS SIGNED ) ) + + + CAST( NULL AS SIGNED ) * 28 * + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL 79 + - + 18 + COALESCE ( + MIN ( ALL + 97 ), + 64 / + 31 - 23 + ( 98 ) + - + CAST ( 25 AS INTEGER ) ) + + + CAST ( NULL AS INTEGER ) * 28 * + + 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7798
SELECT 43 * COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT 43 * COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 87, 52 + 44 AS col1
----
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT 88 * - COUNT( * ) - - 53 + 94 * + 88 AS col0
----
8237

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT 88 * - COUNT ( * ) - - 53 + 94 * + 88 AS col0
----
8237

query I rowsort
SELECT DISTINCT + 23 - 77 * + 5 AS col0
----
-362

query I rowsort
SELECT ALL - 1 * + 31 * 39
----
-1209

query I rowsort
SELECT - 76 + - + 88
----
-164

query II rowsort
SELECT DISTINCT + 94 AS col0, + 67 * - + ( 11 ) + - + 8 * - 98
----
94
47

query I rowsort
SELECT 81 + + 47
----
128

query I rowsort
SELECT DISTINCT ( + 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT ( COUNT( ALL - - 69 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7807
SELECT ( COUNT ( ALL - - 69 ) ) AS col2
----
1

query II rowsort
SELECT 72 AS col1, + 95
----
72
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7809
SELECT 38 / + 34 * + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT 38 / + 34 * + - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT ALL - - 14 DIV - - ( 77 )
----
0

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL - - 14 / - - ( 77 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7811
SELECT ALL MAX( - 19 ) AS col0, + 3 AS col1
----
-19
3

skipif mysql # not compatible
query II rowsort label-7811
SELECT ALL MAX ( - 19 ) AS col0, + 3 AS col1
----
-19
3

query I rowsort
SELECT DISTINCT + 4 * + - 5
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT 92 * + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7813
SELECT 92 * + COUNT ( * ) AS col1
----
92

query I rowsort
SELECT ALL + 14 * + 66
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT - ( - - 39 ) + NULLIF ( + + 89, - COUNT( * ) / - + 43 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7815
SELECT - ( - - 39 ) + NULLIF ( + + 89, - COUNT ( * ) / - + 43 ) AS col2
----
50

query I rowsort
SELECT - 56 * - 15 * 54
----
45360

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT ALL 21 * - 16 + 32 + + COUNT( * ) * - - 40
----
-264

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL 21 * - 16 + 32 + + COUNT ( * ) * - - 40
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7818
SELECT ALL 27 * NULLIF ( - 21, - 86 ) * NULLIF ( - COALESCE ( 31, + 86 ), ( + ( + 36 ) ) - 97 - + COALESCE ( + COUNT( * ), NULLIF ( + 72, - MAX( ALL - 71 ) ), - + 51 ) * - 24 + 82 + + 18 ) + - NULLIF ( 57, - 74 DIV - NULLIF ( COUNT( * ), 97 DIV 3 + CASE 91 WHEN - + 83 THEN - 80 * - + 53 DIV 65 - - 51 WHEN COALESCE ( + - 21, - + 57, - 76 ) THEN + 4 END * - MIN( ALL 70 ) DIV + 39 ) + 59 ) + 71 + 63 DIV 92
----
17591

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL 27 * NULLIF ( - 21, - 86 ) * NULLIF ( - COALESCE ( 31, + 86 ), ( + ( + 36 ) ) - 97 - + COALESCE ( + COUNT ( * ), NULLIF ( + 72, - MAX ( ALL - 71 ) ), - + 51 ) * - 24 + 82 + + 18 ) + - NULLIF ( 57, - 74 / - NULLIF ( COUNT ( * ), 97 / 3 + CASE 91 WHEN - + 83 THEN - 80 * - + 53 / 65 - - 51 WHEN COALESCE ( + - 21, - + 57, - 76 ) THEN + 4 END * - MIN ( ALL 70 ) / + 39 ) + 59 ) + 71 + 63 / 92
----
17591

query I rowsort
SELECT ALL - 52 * 69 + - 20 AS col1
----
-3608

onlyif mysql # aggregate syntax: 
query II rowsort label-7820
SELECT + SUM( ALL ( + 55 ) ) * - 27 + COUNT( * ) AS col1, 88 AS col0
----
-1484
88

skipif mysql # not compatible
query II rowsort label-7820
SELECT + SUM ( ALL ( + 55 ) ) * - 27 + COUNT ( * ) AS col1, 88 AS col0
----
-1484
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT ALL - 2 * + + 27 + - + COALESCE ( - 65, + - COUNT( ALL - 63 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL - 2 * + + 27 + - + COALESCE ( - 65, + - COUNT ( ALL - 63 ) ) AS col2
----
11

query I rowsort
SELECT 15 * - + 22 + 90
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT COALESCE ( + COALESCE ( + COUNT( * ), + 97 ), + + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-7823
SELECT COALESCE ( + COALESCE ( + COUNT ( * ), + 97 ), + + 59 )
----
1

query I rowsort
SELECT DISTINCT + ( 77 ) AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT - 90 * ( 29 ) DIV 11 AS col0
----
-237

skipif mysql # not compatible
query I rowsort label-7825
SELECT - 90 * ( 29 ) / 11 AS col0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT + 96 + + COALESCE ( - 82, + + COUNT( * ) )
----
14

skipif mysql # not compatible
query I rowsort label-7826
SELECT + 96 + + COALESCE ( - 82, + + COUNT ( * ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT DISTINCT - 58 * 11 + - COUNT( * )
----
-639

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT - 58 * 11 + - COUNT ( * )
----
-639

query I rowsort
SELECT ALL - 97 * + - ( - 88 ) AS col0
----
-8536

onlyif mysql # aggregate syntax: 
query II rowsort label-7829
SELECT - 33 * + 45 AS col2, + 32 + SUM( + NULLIF ( + 67, ( - 57 ) - - - 46 + + 90 * + 72 / 82 ) ) AS col1
----
-1485
99

skipif mysql # not compatible
query II rowsort label-7829
SELECT - 33 * + 45 AS col2, + 32 + SUM ( + NULLIF ( + 67, ( - 57 ) - - - 46 + + 90 * + 72 / 82 ) ) AS col1
----
-1485
99

query I rowsort
SELECT ALL + - ( - 41 )
----
41

query I rowsort
SELECT DISTINCT + 29 * + 37 - + 70
----
1003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7832
SELECT ALL + - MAX( ALL CAST( 58 AS SIGNED ) ), CAST( NULL AS DECIMAL ) * - 48 AS col2
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-7832
SELECT ALL + - MAX ( ALL CAST ( 58 AS INTEGER ) ), CAST ( NULL AS REAL ) * - 48 AS col2
----
-58
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7833
SELECT ALL + 14 DIV - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL + 14 / - COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT + COALESCE ( - 31, - 18 * - 61 * - 44 + - - 94 * MAX( ALL 37 ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7834
SELECT + COALESCE ( - 31, - 18 * - 61 * - 44 + - - 94 * MAX ( ALL 37 ) ) AS col2
----
-31

query I rowsort
SELECT - - 39 - 24
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7836
SELECT + CASE + 7 WHEN + COUNT( * ) + + 14 THEN - 41 + - COUNT( * ) WHEN 13 * - COUNT( * ) - 43 * + - 61 - + 72 * + 21 THEN NULL ELSE NULL END * 85 + - + 74 - ( COUNT( * ) ) / 43, 20 col2
----
NULL
20

skipif mysql # not compatible
query II rowsort label-7836
SELECT + CASE + 7 WHEN + COUNT ( * ) + + 14 THEN - 41 + - COUNT ( * ) WHEN 13 * - COUNT ( * ) - 43 * + - 61 - + 72 * + 21 THEN NULL ELSE NULL END * 85 + - + 74 - ( COUNT ( * ) ) / 43, 20 col2
----
NULL
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT + 97 DIV + 29
----
3

skipif mysql # not compatible
query I rowsort label-7837
SELECT + 97 / + 29
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7838
SELECT 90 * - ( - 78 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT 90 * - ( - 78 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7839
SELECT + COALESCE ( 23, + COUNT( * ) DIV 87 + 31, + 25 ) * - + 50 AS col1
----
-1150

skipif mysql # not compatible
query I rowsort label-7839
SELECT + COALESCE ( 23, + COUNT ( * ) / 87 + 31, + 25 ) * - + 50 AS col1
----
-1150

query I rowsort
SELECT DISTINCT - NULLIF ( - COALESCE ( 64, - - 28 * + + 4 * 93 * - 58 + + 44 * - 5 ), + 29 + + 7 ) col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7841
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 83 + 26 - + - ( 5 ) + + 95 * + 11 AS col1, 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-7841
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 83 + 26 - + - ( 5 ) + + 95 * + 11 AS col1, 84 AS col0
----
NULL
84

query I rowsort
SELECT ALL 7 * 30 AS col2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT + MAX( + 77 ) - - 52 + + 33
----
162

skipif mysql # not compatible
query I rowsort label-7843
SELECT + MAX ( + 77 ) - - 52 + + 33
----
162

query I rowsort
SELECT - ( - + 22 ) AS col1
----
22

query II rowsort
SELECT 64, ( + ( - 13 ) ) AS col2
----
64
-13

query I rowsort
SELECT ALL 99 + + 13 AS col2
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-7847
SELECT + ( + + 97 ) + + + 68 AS col2, + COUNT( * ) + ( + 44 )
----
165
45

skipif mysql # not compatible
query II rowsort label-7847
SELECT + ( + + 97 ) + + + 68 AS col2, + COUNT ( * ) + ( + 44 )
----
165
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT + COUNT( * ) + + 17 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7848
SELECT + COUNT ( * ) + + 17 AS col2
----
18

query I rowsort
SELECT - ( 57 )
----
-57

query I rowsort
SELECT ALL 63 + + 41 * - + 40
----
-1577

query I rowsort
SELECT ALL 21 + - + ( - 48 )
----
69

query I rowsort
SELECT ALL - 83 + - - COALESCE ( - 45, + 18, + 61 )
----
-128

query I rowsort
SELECT ALL + 28 + + 55
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT - 9 * - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-7854
SELECT - 9 * - COUNT ( * )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT - 27 DIV + 22
----
-1

skipif mysql # not compatible
query I rowsort label-7855
SELECT - 27 / + 22
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7856
SELECT 28 DIV + 91 * + 77 * + - 9 * - 98 + 56 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7856
SELECT 28 / + 91 * + 77 * + - 9 * - 98 + 56 AS col1
----
56

query II rowsort
SELECT ALL + 46 col2, 98 * COALESCE ( - + 37, ( - 97 ) )
----
46
-3626

onlyif mysql # DIV for integer division: 
query I rowsort label-7858
SELECT ALL - 31 DIV + - 94 + + - 32 col1
----
-32

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL - 31 / + - 94 + + - 32 col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7859
SELECT + ( + - 1 ) * + + COUNT( * ) * + 94 * + 42 + - + 14 * + + 56 + + - CAST( - - 51 AS SIGNED ) + - COUNT( ALL 99 ) * + 77
----
-4860

skipif mysql # not compatible
query I rowsort label-7859
SELECT + ( + - 1 ) * + + COUNT ( * ) * + 94 * + 42 + - + 14 * + + 56 + + - CAST ( - - 51 AS INTEGER ) + - COUNT ( ALL 99 ) * + 77
----
-4860

query I rowsort
SELECT ALL + NULLIF ( 11, 39 ) * 81 * - 26
----
-23166

query I rowsort
SELECT + ( + 78 ) + 36 + + 40
----
154

query I rowsort
SELECT DISTINCT + 11 * NULLIF ( + - 74, + - 52 )
----
-814

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT - 73 * - - COALESCE ( 3, + 82 * - 90 * + COALESCE ( - - MAX( + - 98 ), - 29 + - + 6, - 10 ) ) * + + 0 + COALESCE ( + 74, 48 ) + + + 60 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-7863
SELECT - 73 * - - COALESCE ( 3, + 82 * - 90 * + COALESCE ( - - MAX ( + - 98 ), - 29 + - + 6, - 10 ) ) * + + 0 + COALESCE ( + 74, 48 ) + + + 60 AS col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL + MIN( 39 )
----
39

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL + MIN ( 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT DISTINCT + + COUNT( - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT + + COUNT ( - 88 )
----
1

query I rowsort
SELECT ALL - 39 * - + 92 - - 47
----
3635

query I rowsort
SELECT ALL + + 5 AS col2
----
5

query II rowsort
SELECT - + ( 49 ) * - 21 AS col0, 84
----
1029
84

query I rowsort
SELECT 68 * - 88 + - + COALESCE ( - 46, - 79, + 0 ) * + + 22 AS col0
----
-4972

query II rowsort
SELECT + + 65 AS col2, + 5
----
65
5

query II rowsort
SELECT ALL + - 41 AS col1, 17
----
-41
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT - 11 + SUM( - + 14 ) * + 85 + 64
----
-1137

skipif mysql # not compatible
query I rowsort label-7872
SELECT - 11 + SUM ( - + 14 ) * + 85 + 64
----
-1137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7873
SELECT + CAST( NULL AS SIGNED ) * - 42 + + 94 - - + 43 * + 64 + + COUNT( * ) / + 39 - - + 25 AS col1, 33
----
NULL
33

skipif mysql # not compatible
query II rowsort label-7873
SELECT + CAST ( NULL AS INTEGER ) * - 42 + + 94 - - + 43 * + 64 + + COUNT ( * ) / + 39 - - + 25 AS col1, 33
----
NULL
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7874
SELECT + 85 * + CAST( ( + + CASE - 39 WHEN + ( - 5 ) THEN ( + 11 ) + - 49 / 2 * + 4 / + - ( - 4 ) * + - AVG ( 90 ) + COUNT( * ) + 94 * - + 31 END ) AS SIGNED ) + - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT + 85 * + CAST ( ( + + CASE - 39 WHEN + ( - 5 ) THEN ( + 11 ) + - 49 / 2 * + 4 / + - ( - 4 ) * + - AVG ( 90 ) + COUNT ( * ) + 94 * - + 31 END ) AS INTEGER ) + - + 81
----
NULL

query I rowsort
SELECT - 25 + - 25 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT + 94 - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7876
SELECT + 94 - - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7877
SELECT ALL + NULLIF ( NULLIF ( - MIN( - 20 ), - + 64 + + - CASE + 22 WHEN - + 37 DIV - 44 + 41 THEN NULL WHEN - SUM( DISTINCT 43 ) + - 28 * + COUNT( * ) THEN + + SUM( 68 ) + - ( - - 22 ) ELSE - 33 DIV - + 81 END + - 45 ), + 2 * - COUNT( * ) DIV - SUM( DISTINCT - 58 ) ) * - - COALESCE ( + + ( + COUNT( * ) ), - SUM( - 92 ) DIV + 83 - + + 16 * + COUNT( * ) + + - 35 )
----
20

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + NULLIF ( NULLIF ( - MIN ( - 20 ), - + 64 + + - CASE + 22 WHEN - + 37 / - 44 + 41 THEN NULL WHEN - SUM ( DISTINCT 43 ) + - 28 * + COUNT ( * ) THEN + + SUM ( 68 ) + - ( - - 22 ) ELSE - 33 / - + 81 END + - 45 ), + 2 * - COUNT ( * ) / - SUM ( DISTINCT - 58 ) ) * - - COALESCE ( + + ( + COUNT ( * ) ), - SUM ( - 92 ) / + 83 - + + 16 * + COUNT ( * ) + + - 35 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7878
SELECT - - 2 DIV CAST( + COUNT( * ) AS SIGNED ), + 19 + MAX( + + 94 ) AS col1
----
2
113

skipif mysql # not compatible
query II rowsort label-7878
SELECT - - 2 / CAST ( + COUNT ( * ) AS INTEGER ), + 19 + MAX ( + + 94 ) AS col1
----
2
113

onlyif mysql # DIV for integer division: 
query I rowsort label-7879
SELECT DISTINCT + 91 * 50 + + 76 DIV + 46 AS col2
----
4551

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + 91 * 50 + + 76 / + 46 AS col2
----
4551

query I rowsort
SELECT DISTINCT + - 5 * + + 88
----
-440

onlyif mysql # DIV for integer division: 
query I rowsort label-7881
SELECT - 52 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-7881
SELECT - 52 / + 89
----
0

query I rowsort
SELECT ALL + 47 * - - 30
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT + 83 * + + COUNT( * ) * + 1 - 26
----
57

skipif mysql # not compatible
query I rowsort label-7883
SELECT + 83 * + + COUNT ( * ) * + 1 - 26
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7884
SELECT ALL + COUNT( ALL 74 ) + + 67, 21 + + 44 AS col1
----
68
65

skipif mysql # not compatible
query II rowsort label-7884
SELECT ALL + COUNT ( ALL 74 ) + + 67, 21 + + 44 AS col1
----
68
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7885
SELECT - - 1, COUNT( + 17 ) * + + 82 * + ( MIN( + - 46 ) ) + - 89 - + + 26 + + 62 col1
----
1
-3825

skipif mysql # not compatible
query II rowsort label-7885
SELECT - - 1, COUNT ( + 17 ) * + + 82 * + ( MIN ( + - 46 ) ) + - 89 - + + 26 + + 62 col1
----
1
-3825

query II rowsort
SELECT 95 * - 20 AS col1, + 87
----
-1900
87

query I rowsort
SELECT ALL 58 + - 66
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT DISTINCT COUNT( * ) + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT COUNT ( * ) + - 17
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT 72 + + + COUNT( * ) * + - 90
----
-18

skipif mysql # not compatible
query I rowsort label-7889
SELECT 72 + + + COUNT ( * ) * + - 90
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT CAST( NULL AS SIGNED ) + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7890
SELECT CAST ( NULL AS INTEGER ) + + 9
----
NULL

query II rowsort
SELECT 85 * + 0 AS col0, + 31 * - + 1 AS col2
----
0
-31

query I rowsort
SELECT ALL - 96 + - + ( 36 )
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ALL COUNT( * ) * + - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL COUNT ( * ) * + - 92 AS col2
----
-92

query I rowsort
SELECT ALL ( 19 ) + + + 96
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT DISTINCT 74 * + MIN( ALL - 91 )
----
-6734

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT 74 * + MIN ( ALL - 91 )
----
-6734

query II rowsort
SELECT DISTINCT 39 + - 29 AS col2, - NULLIF ( + 36, - 58 / + 79 ) AS col1
----
10
-36

query I rowsort
SELECT NULLIF ( + - 93, + - 54 ) + - 20 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL COUNT( * ) * - 81 * + 50
----
-4050

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL COUNT ( * ) * - 81 * + 50
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL 68 - - COUNT( * ) + 48 + 87 + + COUNT( * ) * 8
----
212

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL 68 - - COUNT ( * ) + 48 + 87 + + COUNT ( * ) * 8
----
212

onlyif mysql # aggregate syntax: 
query II rowsort label-7900
SELECT ALL COUNT( * ) - + + 65 col2, 23 * + 55 + + COUNT( DISTINCT + 87 ) AS col0
----
-64
1266

skipif mysql # not compatible
query II rowsort label-7900
SELECT ALL COUNT ( * ) - + + 65 col2, 23 * + 55 + + COUNT ( DISTINCT + 87 ) AS col0
----
-64
1266

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT COUNT( * ) - - COUNT( * ) * - 22
----
-21

skipif mysql # not compatible
query I rowsort label-7901
SELECT COUNT ( * ) - - COUNT ( * ) * - 22
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT - COUNT( - 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT - COUNT ( - 57 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT DISTINCT + ( + 49 ) / - ( - CASE - 38 WHEN COUNT( * ) THEN NULL WHEN - 4 * COUNT( * ) THEN 13 + + 56 WHEN COUNT( * ) THEN + 85 END ) + - - 68 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT + ( + 49 ) / - ( - CASE - 38 WHEN COUNT ( * ) THEN NULL WHEN - 4 * COUNT ( * ) THEN 13 + + 56 WHEN COUNT ( * ) THEN + 85 END ) + - - 68 col2
----
NULL

query I rowsort
SELECT DISTINCT - 72 - + 5
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT ALL 12 DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL 12 / + 72 AS col2
----
0

query I rowsort
SELECT DISTINCT - ( 37 ) AS col1
----
-37

query I rowsort
SELECT - ( 46 ) * + + 43 * - 41 AS col1
----
81098

query I rowsort
SELECT DISTINCT + 70 * - ( 10 )
----
-700

query I rowsort
SELECT DISTINCT - 12 * + 18
----
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT ALL + 53 * - 67 + + - COUNT( * ) - + - ( + - 73 ) AS col1, 48
----
-3625
48

skipif mysql # not compatible
query II rowsort label-7910
SELECT ALL + 53 * - 67 + + - COUNT ( * ) - + - ( + - 73 ) AS col1, 48
----
-3625
48

query I rowsort
SELECT AVG ( - 72 ) * - 66 + 32 + + CASE 39 WHEN + 13 + + NULLIF ( + + 58, + - 83 ) THEN NULL WHEN - + 27 THEN - - 60 * + - 46 ELSE NULL END + 70 * - 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7912
SELECT + 22 * - 43 + - - ( - + NULLIF ( - 85, 63 / - - CAST( NULL AS SIGNED ) + + 94 * 8 / 9 + - MAX( + 3 ) + - - COUNT( * ) / 65 ) ) AS col2, + 58 AS col1
----
-861
58

skipif mysql # not compatible
query II rowsort label-7912
SELECT + 22 * - 43 + - - ( - + NULLIF ( - 85, 63 / - - CAST ( NULL AS INTEGER ) + + 94 * 8 / 9 + - MAX ( + 3 ) + - - COUNT ( * ) / 65 ) ) AS col2, + 58 AS col1
----
-861
58

query I rowsort
SELECT - NULLIF ( - 86, - 70 + - - 71 )
----
86

query I rowsort
SELECT DISTINCT - + ( - - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7915
SELECT - 11 - - 63 + - - ( - COUNT( 15 ) ) AS col2, 4 AS col1
----
51
4

skipif mysql # not compatible
query II rowsort label-7915
SELECT - 11 - - 63 + - - ( - COUNT ( 15 ) ) AS col2, 4 AS col1
----
51
4

query I rowsort
SELECT - + 13 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT COUNT( * ) - - ( - 41 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7917
SELECT COUNT ( * ) - - ( - 41 ) AS col0
----
-40

query I rowsort
SELECT ( + 17 ) col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ALL + - 27 * + COUNT( + - 56 ) * + 99 AS col1
----
-2673

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL + - 27 * + COUNT ( + - 56 ) * + 99 AS col1
----
-2673

query I rowsort
SELECT DISTINCT + 37 * - 2 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT MAX( DISTINCT + + 24 ) * 62
----
1488

skipif mysql # not compatible
query I rowsort label-7921
SELECT MAX ( DISTINCT + + 24 ) * 62
----
1488

query I rowsort
SELECT ALL + 55 * 41 AS col0
----
2255

query I rowsort
SELECT ALL 4 + 83 * 22 + + ( - 20 ) AS col1
----
1810

query I rowsort
SELECT 1 - + 44 + 77
----
34

query II rowsort
SELECT ALL 45 AS col0, - 98 AS col1
----
45
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7926
SELECT DISTINCT - 83 + - NULLIF ( - + 57, + - COUNT( * ) ) * + 18 * 44 col2, - CAST( + - 38 AS SIGNED )
----
45061
38

skipif mysql # not compatible
query II rowsort label-7926
SELECT DISTINCT - 83 + - NULLIF ( - + 57, + - COUNT ( * ) ) * + 18 * 44 col2, - CAST ( + - 38 AS INTEGER )
----
45061
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7927
SELECT COUNT( * ) + + 93 + + + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7927
SELECT COUNT ( * ) + + 93 + + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7928
SELECT ALL + MAX( ALL - 18 ) - 82 - CAST( - ( + ( + + 22 ) ) AS SIGNED ) * 9
----
98

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL + MAX ( ALL - 18 ) - 82 - CAST ( - ( + ( + + 22 ) ) AS INTEGER ) * 9
----
98

query I rowsort
SELECT 0 + - 24 col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7930
SELECT 36 DIV - + CASE + CASE 96 WHEN + - 75 THEN - + AVG ( - 39 ) * - COUNT( * ) * 69 - + + 87 WHEN + + COUNT( * ) THEN NULL ELSE NULL END WHEN - 94 THEN + 49 ELSE 17 END
----
-2

skipif mysql # not compatible
query I rowsort label-7930
SELECT 36 / - + CASE + CASE 96 WHEN + - 75 THEN - + AVG ( - 39 ) * - COUNT ( * ) * 69 - + + 87 WHEN + + COUNT ( * ) THEN NULL ELSE NULL END WHEN - 94 THEN + 49 ELSE 17 END
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT ALL 62 / + + CAST( NULL AS SIGNED ) * + - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL 62 / + + CAST ( NULL AS INTEGER ) * + - 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT 7 * + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-7932
SELECT 7 * + + COUNT ( * )
----
7

query I rowsort
SELECT 10 + + 64 + - ( - - 59 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT NULLIF ( + 46, + MAX( - 73 ) ) - - 83 AS col0
----
129

skipif mysql # not compatible
query I rowsort label-7934
SELECT NULLIF ( + 46, + MAX ( - 73 ) ) - - 83 AS col0
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7935
SELECT ALL 14 - + ( 48 ) * + - COALESCE ( - 7, - ( NULLIF ( - ( + 53 ), - 32 - + 90 + - 5 * + 76 + COUNT( * ) ) ) DIV + 78 DIV - 98 * - MAX( DISTINCT 28 ) + + 50 * - ( + - 4 ) - + + 51 )
----
-322

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL 14 - + ( 48 ) * + - COALESCE ( - 7, - ( NULLIF ( - ( + 53 ), - 32 - + 90 + - 5 * + 76 + COUNT ( * ) ) ) / + 78 / - 98 * - MAX ( DISTINCT 28 ) + + 50 * - ( + - 4 ) - + + 51 )
----
-322

query I rowsort
SELECT ALL 90 * 55 AS col1
----
4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7937
SELECT COALESCE ( - COUNT( * ), 36, + MAX( ALL 27 ) ) + - 75 + + ( - 99 ) - - 0 + + - 35, 0 DIV 24 AS col1
----
-210
0

skipif mysql # not compatible
query II rowsort label-7937
SELECT COALESCE ( - COUNT ( * ), 36, + MAX ( ALL 27 ) ) + - 75 + + ( - 99 ) - - 0 + + - 35, 0 / 24 AS col1
----
-210
0

query I rowsort
SELECT ALL 8 * - - 30
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL + COALESCE ( - NULLIF ( - COUNT( * ), - 19 * + 99 ), - - 11 + - - 74 ) * + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL + COALESCE ( - NULLIF ( - COUNT ( * ), - 19 * + 99 ), - - 11 + - - 74 ) * + 23 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT + + MAX( - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-7940
SELECT + + MAX ( - 20 )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7941
SELECT COUNT( * ) DIV + 45 - 5 - - COUNT( * ) + 13 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7941
SELECT COUNT ( * ) / + 45 - 5 - - COUNT ( * ) + 13 AS col2
----
9

query II rowsort
SELECT 2 * - 93 + - 23 AS col1, 39 AS col0
----
-209
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7943
SELECT + CASE + 73 WHEN + + ( CAST( + + 90 AS SIGNED ) ) THEN NULL WHEN 31 THEN SUM( - - 87 ) * + 19 ELSE NULL END + - + 0 * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT + CASE + 73 WHEN + + ( CAST ( + + 90 AS INTEGER ) ) THEN NULL WHEN 31 THEN SUM ( - - 87 ) * + 19 ELSE NULL END + - + 0 * 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - - ( 66 )
----
66

query I rowsort
SELECT + COALESCE ( - + 48, + - 40 ) col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL - ( - COUNT( * ) ) * + - 11 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL - ( - COUNT ( * ) ) * + - 11 AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7948
SELECT CASE + + 24 WHEN - COUNT( * ) * + 4 + - MAX( + - 69 ) + + 28 THEN 38 ELSE + 47 END * COUNT( * ) DIV 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7948
SELECT CASE + + 24 WHEN - COUNT ( * ) * + 4 + - MAX ( + - 69 ) + + 28 THEN 38 ELSE + 47 END * COUNT ( * ) / 36 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT - 43 + - + COUNT( * ) * - 27 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7949
SELECT - 43 + - + COUNT ( * ) * - 27 AS col1
----
-16

query I rowsort
SELECT ALL 88 * + + 15 + 79 + - 17
----
1382

query II rowsort
SELECT + 36, 12 col2
----
36
12

query I rowsort
SELECT ALL + 56 + + + 81 AS col1
----
137

query I rowsort
SELECT + - ( 36 )
----
-36

query I rowsort
SELECT + - 75 + + 75 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT 70 * + 32 * - 82 - - + 8 - - 38 * - + 93 * - + COUNT( * )
----
-180138

skipif mysql # not compatible
query I rowsort label-7955
SELECT 70 * + 32 * - 82 - - + 8 - - 38 * - + 93 * - + COUNT ( * )
----
-180138

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL - COUNT( - 66 ) * - + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL - COUNT ( - 66 ) * - + 25 AS col2
----
25

query I rowsort
SELECT ALL + + 25 * + + 24 AS col1
----
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7958
SELECT + + 1 + COALESCE ( 46, COUNT( * ), 37 DIV 45 - 72 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7958
SELECT + + 1 + COALESCE ( 46, COUNT ( * ), 37 / 45 - 72 ) AS col2
----
47

query I rowsort
SELECT - + ( - 89 ) + + 3 AS col2
----
92

query I rowsort
SELECT ALL - 96 + + + ( - + 68 ) AS col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT MIN( ALL + - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT MIN ( ALL + - 96 )
----
-96

query I rowsort
SELECT ALL 98 * - 20
----
-1960

query I rowsort
SELECT - 10 + 98
----
88

query I rowsort
SELECT ALL COALESCE ( + 45, - 84 * - 31 ) AS col0
----
45

query I rowsort
SELECT - 86 + + + ( + - 18 ) + 29
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL MIN( ALL 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL MIN ( ALL 75 ) AS col1
----
75

query I rowsort
SELECT - 80 * + + 40 * - 6
----
19200

onlyif mysql # aggregate syntax: 
query II rowsort label-7968
SELECT ALL SUM( ALL 30 ) AS col2, + ( + COUNT( * ) ) * + + MAX( DISTINCT 7 ) + - ( - 8 ) + - COUNT( * ) AS col0
----
30
14

skipif mysql # not compatible
query II rowsort label-7968
SELECT ALL SUM ( ALL 30 ) AS col2, + ( + COUNT ( * ) ) * + + MAX ( DISTINCT 7 ) + - ( - 8 ) + - COUNT ( * ) AS col0
----
30
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7969
SELECT 4 AS col1, + COUNT( * ) + 83 * 23 * - - 24 AS col1
----
4
45817

skipif mysql # not compatible
query II rowsort label-7969
SELECT 4 AS col1, + COUNT ( * ) + 83 * 23 * - - 24 AS col1
----
4
45817

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT - 56 + - 62 DIV - 93 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-7970
SELECT - 56 + - 62 / - 93 AS col0
----
-56

query I rowsort
SELECT - 68 + 4 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT DISTINCT MIN( DISTINCT + - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT MIN ( DISTINCT + - 49 ) AS col2
----
-49

query I rowsort
SELECT ALL ( + 97 )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7974
SELECT 33, - COUNT( ALL + + 61 ) * - 30 * CAST( + 84 AS SIGNED ) AS col0
----
33
2520

skipif mysql # not compatible
query II rowsort label-7974
SELECT 33, - COUNT ( ALL + + 61 ) * - 30 * CAST ( + 84 AS INTEGER ) AS col0
----
33
2520

query I rowsort
SELECT DISTINCT - 89 * - - ( - + COALESCE ( + - 79, + COALESCE ( - 67, - 26 + - - 39 * - 91, - - ( + + 64 ) ), 67 ) ) AS col1
----
-7031

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7976
SELECT ALL + ( + CAST( + 11 AS SIGNED ) ) * + COUNT( * ) DIV + 96 * + - 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL + ( + CAST ( + 11 AS INTEGER ) ) * + COUNT ( * ) / + 96 * + - 20 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT - 64 * - 48 * - - CASE + + 65 WHEN + MAX( DISTINCT + - 78 ) THEN - 67 * - MAX( 30 ) END * + + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT - 64 * - 48 * - - CASE + + 65 WHEN + MAX ( DISTINCT + - 78 ) THEN - 67 * - MAX ( 30 ) END * + + 40 AS col1
----
NULL

query I rowsort
SELECT - - COALESCE ( 6, - 74 ) - + + 61
----
-55

query I rowsort
SELECT - 77 * + 30 + - + 48 AS col2
----
-2358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7980
SELECT + 36 DIV 52 + - 51 + - + 51 * + 21 + - MAX( - - 84 )
----
-1206

skipif mysql # not compatible
query I rowsort label-7980
SELECT + 36 / 52 + - 51 + - + 51 * + 21 + - MAX ( - - 84 )
----
-1206

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7981
SELECT - 91 DIV + 13 + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-7981
SELECT - 91 / + 13 + - COUNT ( * )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT ALL - NULLIF ( + 7, + ( - 78 ) ) DIV + + 65 + - NULLIF ( - 10, 79 ) + 71
----
81

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL - NULLIF ( + 7, + ( - 78 ) ) / + + 65 + - NULLIF ( - 10, 79 ) + 71
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT + SUM( - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-7983
SELECT + SUM ( - 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-7984
SELECT 90 AS col1, COUNT( * ) + + COUNT( * ) * - 55
----
90
-54

skipif mysql # not compatible
query II rowsort label-7984
SELECT 90 AS col1, COUNT ( * ) + + COUNT ( * ) * - 55
----
90
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT + - CASE WHEN NOT 9 = 76 THEN 27 WHEN - 25 IS NULL THEN + - COUNT( * ) END AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7985
SELECT + - CASE WHEN NOT 9 = 76 THEN 27 WHEN - 25 IS NULL THEN + - COUNT ( * ) END AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL + ( + COUNT( DISTINCT - - 96 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL + ( + COUNT ( DISTINCT - - 96 ) )
----
1

query I rowsort
SELECT + ( + ( + 93 ) )
----
93

query II rowsort
SELECT - 26 AS col2, + 33
----
-26
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT + 16 * 38 + - MAX( 93 )
----
515

skipif mysql # not compatible
query I rowsort label-7989
SELECT + 16 * 38 + - MAX ( 93 )
----
515

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL - - COUNT( * ) * + - MAX( DISTINCT + 50 ) - + + 22 - + ( - COALESCE ( - 36, - 51, COUNT( * ) + + - SUM( DISTINCT + 32 ) ) ) AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL - - COUNT ( * ) * + - MAX ( DISTINCT + 50 ) - + + 22 - + ( - COALESCE ( - 36, - 51, COUNT ( * ) + + - SUM ( DISTINCT + 32 ) ) ) AS col2
----
-108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7991
SELECT - 9 AS col1, - COUNT( * ) - CAST( NULL AS DECIMAL ) + - + 59 * + ( - 20 ) + + + 26 + + MIN( ALL 40 ) + + + 61 * 58 AS col0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-7991
SELECT - 9 AS col1, - COUNT ( * ) - CAST ( NULL AS REAL ) + - + 59 * + ( - 20 ) + + + 26 + + MIN ( ALL 40 ) + + + 61 * 58 AS col0
----
-9
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7992
SELECT + 10 DIV + + 89, CAST( + 49 AS SIGNED ) - + + 49 + - COUNT( * ) DIV + CASE + 40 WHEN + 34 + COALESCE ( + 90, + 8 ) * + 76 * - AVG ( 96 ) * - COUNT( * ) * + 84 + 33 * - - 64 * - CASE + + COUNT( * ) WHEN - + 99 + - ( + 51 ) + + ( + - 39 ) DIV - 75 * + 67 THEN 14 ELSE + NULLIF ( + 25, + CASE - AVG ( 91 ) WHEN - 71 THEN + ( 67 ) * + ( + - 92 ) * - 5 - 19 * - CAST( - + 99 AS SIGNED ) * + 78 END ) END THEN - ( - 74 ) ELSE - + 41 + + MAX( DISTINCT + 37 + 5 ) * - 6 END * 95 * - 57 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-7992
SELECT + 10 / + + 89, CAST ( + 49 AS INTEGER ) - + + 49 + - COUNT ( * ) / + CASE + 40 WHEN + 34 + COALESCE ( + 90, + 8 ) * + 76 * - AVG ( 96 ) * - COUNT ( * ) * + 84 + 33 * - - 64 * - CASE + + COUNT ( * ) WHEN - + 99 + - ( + 51 ) + + ( + - 39 ) / - 75 * + 67 THEN 14 ELSE + NULLIF ( + 25, + CASE - AVG ( 91 ) WHEN - 71 THEN + ( 67 ) * + ( + - 92 ) * - 5 - 19 * - CAST ( - + 99 AS INTEGER ) * + 78 END ) END THEN - ( - 74 ) ELSE - + 41 + + MAX ( DISTINCT + 37 + 5 ) * - 6 END * 95 * - 57 AS col2
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7993
SELECT ALL 22 * + COUNT( * ) * - 81 AS col0, 21 + - COUNT( * )
----
-1782
20

skipif mysql # not compatible
query II rowsort label-7993
SELECT ALL 22 * + COUNT ( * ) * - 81 AS col0, 21 + - COUNT ( * )
----
-1782
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT + CAST( + ( 64 ) AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7994
SELECT + CAST ( + ( 64 ) AS INTEGER ) AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7995
SELECT CASE WHEN NULL NOT BETWEEN COUNT( * ) AND CAST( NULL AS SIGNED ) / 4 THEN - + ( ( - + 59 ) ) / + 40 + - ( - - COUNT( * ) ) + + NULLIF ( CASE + + 14 WHEN - - ( + + COUNT( * ) ) THEN - + 24 * + 61 END, - - COUNT( - 45 ) ) - + SUM( NULLIF ( + 58, + 0 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7995
SELECT CASE WHEN NULL NOT BETWEEN COUNT ( * ) AND CAST ( NULL AS INTEGER ) / 4 THEN - + ( ( - + 59 ) ) / + 40 + - ( - - COUNT ( * ) ) + + NULLIF ( CASE + + 14 WHEN - - ( + + COUNT ( * ) ) THEN - + 24 * + 61 END, - - COUNT ( - 45 ) ) - + SUM ( NULLIF ( + 58, + 0 ) ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT + CAST( + ( - AVG ( + + 31 ) ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-7996
SELECT + CAST ( + ( - AVG ( + + 31 ) ) AS INTEGER )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT + SUM( DISTINCT 7 ) - 74
----
-67

skipif mysql # not compatible
query I rowsort label-7997
SELECT + SUM ( DISTINCT 7 ) - 74
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL 86 * - - COUNT( DISTINCT + 75 ) * - 63
----
-5418

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL 86 * - - COUNT ( DISTINCT + 75 ) * - 63
----
-5418

query I rowsort
SELECT - 0 * 5 + - 8 - + 62 + - - 85 AS col2
----
15

query I rowsort
SELECT ALL - 6 * + 13 - + 75 AS col0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL 50 * + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL 50 * + - COUNT ( * )
----
-50

query I rowsort
SELECT ALL COALESCE ( + 64, + - 91 + - 97 + + + 38 + + 41 * - ( + 23 ) * + - 52 )
----
64

query I rowsort
SELECT ALL ( + - 71 )
----
-71

query I rowsort
SELECT DISTINCT 44 * 45 AS col2
----
1980

query II rowsort
SELECT ALL ( 11 ) AS col1, 80 * + - ( + 60 ) col0
----
11
-4800

query II rowsort
SELECT ALL ( - 5 ), - 68 AS col0
----
-5
-68

query I rowsort
SELECT - 73 + + + 98
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8008
SELECT DISTINCT CASE + 37 WHEN - ( - CAST( + 67 AS SIGNED ) ) * - 82 / - 20 * + 65 * + 80 + + - CAST( + NULLIF ( + 97, + - 84 ) AS SIGNED ) THEN + + COUNT( * ) * ( - 46 ) - COUNT( * ) / - - 46 ELSE 70 END AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT CASE + 37 WHEN - ( - CAST ( + 67 AS INTEGER ) ) * - 82 / - 20 * + 65 * + 80 + + - CAST ( + NULLIF ( + 97, + - 84 ) AS INTEGER ) THEN + + COUNT ( * ) * ( - 46 ) - COUNT ( * ) / - - 46 ELSE 70 END AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT ALL - 76 + - + 99 + + 54 DIV + + 26 AS col2
----
-173

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL - 76 + - + 99 + + 54 / + + 26 AS col2
----
-173

query I rowsort
SELECT + + 52 + - - 29 col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT DISTINCT + CASE 73 WHEN - - 40 + CAST( NULL AS SIGNED ) THEN + 91 + - 38 ELSE - 51 END + - + 60 col0
----
-111

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT + CASE 73 WHEN - - 40 + CAST ( NULL AS INTEGER ) THEN + 91 + - 38 ELSE - 51 END + - + 60 col0
----
-111

query II rowsort
SELECT DISTINCT + ( - 55 ) col1, 62 + 38
----
-55
100

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT ALL + 55 + 33 AS col2, 3 - + - COUNT( * ) AS col0
----
88
4

skipif mysql # not compatible
query II rowsort label-8013
SELECT ALL + 55 + 33 AS col2, 3 - + - COUNT ( * ) AS col0
----
88
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL - 91 + + - COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL - 91 + + - COUNT ( * ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL - 75 + 44 - - COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL - 75 + 44 - - COUNT ( * ) AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8016
SELECT DISTINCT - - CASE WHEN - CASE - + CAST( NULL AS SIGNED ) WHEN - 99 THEN + - ( - - 1 ) WHEN + - 58 THEN NULL END IS NULL THEN NULL ELSE - CAST( NULL AS SIGNED ) END + - + CAST( NULL AS DECIMAL ) * + 9 - - AVG ( + - 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT - - CASE WHEN - CASE - + CAST ( NULL AS INTEGER ) WHEN - 99 THEN + - ( - - 1 ) WHEN + - 58 THEN NULL END IS NULL THEN NULL ELSE - CAST ( NULL AS INTEGER ) END + - + CAST ( NULL AS REAL ) * + 9 - - AVG ( + - 9 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8017
SELECT ALL + CAST( + NULLIF ( 32, + - COALESCE ( + COUNT( * ), - + CASE + - 16 WHEN - 2 + - CAST( NULL AS SIGNED ) THEN - + ( - - 24 ) + - - 75 * - 42 * 64 WHEN - 90 THEN + 7 ELSE NULL END * + 68 + + 26, MAX( ALL 96 ) * - 43 + 28 / + 92 + + - CASE - 54 WHEN - COUNT( * ) THEN NULL ELSE - 70 END ) ) AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL + CAST ( + NULLIF ( 32, + - COALESCE ( + COUNT ( * ), - + CASE + - 16 WHEN - 2 + - CAST ( NULL AS INTEGER ) THEN - + ( - - 24 ) + - - 75 * - 42 * 64 WHEN - 90 THEN + 7 ELSE NULL END * + 68 + + 26, MAX ( ALL 96 ) * - 43 + 28 / + 92 + + - CASE - 54 WHEN - COUNT ( * ) THEN NULL ELSE - 70 END ) ) AS INTEGER )
----
32

query II rowsort
SELECT ALL - 31 * 96 AS col0, 86
----
-2976
86

query I rowsort
SELECT DISTINCT - - 90 AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8020
SELECT + + 21 DIV + + 42 + + 57
----
57

skipif mysql # not compatible
query I rowsort label-8020
SELECT + + 21 / + + 42 + + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - COUNT( DISTINCT - - 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-8021
SELECT - COUNT ( DISTINCT - - 77 )
----
-1

query I rowsort
SELECT 80 * + - ( - 28 ) AS col0
----
2240

onlyif mysql # aggregate syntax: 
query II rowsort label-8023
SELECT ALL + 48 - - - COUNT( * ) AS col2, - COUNT( * ) + + + MAX( 13 ) AS col0
----
47
12

skipif mysql # not compatible
query II rowsort label-8023
SELECT ALL + 48 - - - COUNT ( * ) AS col2, - COUNT ( * ) + + + MAX ( 13 ) AS col0
----
47
12

query I rowsort
SELECT ALL - + 75 AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT - 25 * - 28 / 76 + + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT - 25 * - 28 / 76 + + + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8026
SELECT 90 + 54 AS col0, COUNT( * )
----
144
1

skipif mysql # not compatible
query II rowsort label-8026
SELECT 90 + 54 AS col0, COUNT ( * )
----
144
1

query I rowsort
SELECT 11 + - ( - 96 ) * + + 38 * + - 5
----
-18229

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT 82 * + COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8028
SELECT 82 * + COUNT ( * ) AS col0
----
82

query I rowsort
SELECT DISTINCT - 24 * 86 col2
----
-2064

query I rowsort
SELECT + 22 * - 44 + - 3 AS col1
----
-971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT 30 * + CAST( + 41 AS SIGNED ) AS col2
----
1230

skipif mysql # not compatible
query I rowsort label-8031
SELECT 30 * + CAST ( + 41 AS INTEGER ) AS col2
----
1230

query I rowsort
SELECT ALL 45 * + 91 AS col0
----
4095

query I rowsort
SELECT 33 * 97 * 88 + 82 AS col1
----
281770

query II rowsort
SELECT 56 AS col2, + 86 AS col1
----
56
86

query I rowsort
SELECT ALL - 7 * - 96
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8036
SELECT COALESCE ( 66, - CAST( NULL AS SIGNED ) * + + 52 * 84 + + + 81 + 37 + + 56 * + - MIN( ALL - CAST( 97 AS SIGNED ) ) * CAST( NULLIF ( - 53, + + ( - - COUNT( * ) ) DIV + 32 + 42 + - - 29 + + 56 + - 67 * + + 38 + + ( - 58 ) + - COUNT( DISTINCT + 34 ) * - 54 - + - 86 DIV + NULLIF ( + 52, - ( - ( 43 ) ) + + 83 + - - 86 + 27 ) ) AS SIGNED ) DIV + NULLIF ( - 80, 60 * + - 98 - - 67 + 32 * + 1 * + COUNT( * ) ) + - 22 ) + 85 col1
----
151

skipif mysql # not compatible
query I rowsort label-8036
SELECT COALESCE ( 66, - CAST ( NULL AS INTEGER ) * + + 52 * 84 + + + 81 + 37 + + 56 * + - MIN ( ALL - CAST ( 97 AS INTEGER ) ) * CAST ( NULLIF ( - 53, + + ( - - COUNT ( * ) ) / + 32 + 42 + - - 29 + + 56 + - 67 * + + 38 + + ( - 58 ) + - COUNT ( DISTINCT + 34 ) * - 54 - + - 86 / + NULLIF ( + 52, - ( - ( 43 ) ) + + 83 + - - 86 + 27 ) ) AS INTEGER ) / + NULLIF ( - 80, 60 * + - 98 - - 67 + 32 * + 1 * + COUNT ( * ) ) + - 22 ) + 85 col1
----
151

query II rowsort
SELECT DISTINCT 12 AS col2, + 68
----
12
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT 32 + - COUNT( * ) * - 39
----
71

skipif mysql # not compatible
query I rowsort label-8038
SELECT 32 + - COUNT ( * ) * - 39
----
71

query I rowsort
SELECT 45 * NULLIF ( 45, - + 57 + + - 52 ) * + 92 AS col2
----
186300

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL - COUNT( - 62 ) * - 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL - COUNT ( - 62 ) * - 6 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8041
SELECT ALL CAST( NULL AS SIGNED ) AS col1, ( + - SUM( - 47 ) ) - 23 AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-8041
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, ( + - SUM ( - 47 ) ) - 23 AS col1
----
NULL
24

query I rowsort
SELECT ALL + 26 + + 60
----
86

query I rowsort
SELECT - 82 + + 78 * + - 12 * + ( + + 1 )
----
-1018

query II rowsort
SELECT DISTINCT 52 + - - 59 * - 20 AS col0, 98 + - + 4 AS col0
----
-1128
94

query I rowsort
SELECT ALL - 34 * - 76
----
2584

query I rowsort
SELECT - 96 + - + 51 AS col0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT + MAX( - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-8047
SELECT + MAX ( - 19 )
----
-19

query I rowsort
SELECT 59 * + 66 * - 16
----
-62304

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT + COUNT( * ) + 34 + + 55 * - 70 * + + 30 + + CASE - - ( + + 84 ) WHEN ( - + 32 ) THEN COUNT( * ) * + 29 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT + COUNT ( * ) + 34 + + 55 * - 70 * + + 30 + + CASE - - ( + + 84 ) WHEN ( - + 32 ) THEN COUNT ( * ) * + 29 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 52 - - ( 87 ) - 72 + - + 39 * + ( - - 86 ) AS col2
----
-3287

query II rowsort
SELECT - 37, + 22 AS col0
----
-37
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL - - 81 - + 15 + - 20 + COUNT( * ) + + + SUM( DISTINCT - 97 ) * 38 * + 48 col1
----
-176881

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - - 81 - + 15 + - 20 + COUNT ( * ) + + + SUM ( DISTINCT - 97 ) * 38 * + 48 col1
----
-176881

query I rowsort
SELECT DISTINCT - + 63
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-8054
SELECT DISTINCT + 86 * + 76 * - COUNT( * ), - 35 * - 83 AS col1
----
-6536
2905

skipif mysql # not compatible
query II rowsort label-8054
SELECT DISTINCT + 86 * + 76 * - COUNT ( * ), - 35 * - 83 AS col1
----
-6536
2905

query I rowsort
SELECT ALL - - 89 - - 50
----
139

onlyif mysql # DIV for integer division: 
query II rowsort label-8056
SELECT 94 DIV - 97, - 43 AS col1
----
0
-43

skipif mysql # not compatible
query II rowsort label-8056
SELECT 94 / - 97, - 43 AS col1
----
0
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT COUNT( * ) * + 86
----
86

skipif mysql # not compatible
query I rowsort label-8057
SELECT COUNT ( * ) * + 86
----
86

query I rowsort
SELECT ALL - ( - - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL - MAX( - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL - MAX ( - 20 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8060
SELECT ALL + CAST( NULL AS SIGNED ) / 6 * + 60 * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL + CAST ( NULL AS INTEGER ) / 6 * + 60 * + 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8061
SELECT 20 DIV 45 * - 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT 20 / 45 * - 11 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ALL + 75 + - SUM( 78 ) * - ( - 61 )
----
-4683

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL + 75 + - SUM ( 78 ) * - ( - 61 )
----
-4683

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8063
SELECT 10 + CAST( NULL AS DECIMAL ) + - + 70 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT 10 + CAST ( NULL AS REAL ) + - + 70 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ALL + CASE 13 WHEN COUNT( * ) THEN + 45 WHEN - 77 THEN - 47 ELSE + - ( - 71 ) + 57 END + + 71
----
199

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL + CASE 13 WHEN COUNT ( * ) THEN + 45 WHEN - 77 THEN - 47 ELSE + - ( - 71 ) + 57 END + + 71
----
199

query I rowsort
SELECT 26 + 93 AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT 76 * - 47 + + COUNT( * )
----
-3571

skipif mysql # not compatible
query I rowsort label-8067
SELECT 76 * - 47 + + COUNT ( * )
----
-3571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8068
SELECT DISTINCT 43 + ( - 77 ) + - 41, 84 * - - 53 / 5 + + COUNT( * ) + - ( ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-8068
SELECT DISTINCT 43 + ( - 77 ) + - 41, 84 * - - 53 / 5 + + COUNT ( * ) + - ( ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL + 75 + + + ( MAX( + 20 ) ) * - - 21
----
495

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL + 75 + + + ( MAX ( + 20 ) ) * - - 21
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT + 37 + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-8070
SELECT + 37 + + COUNT ( * )
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-8071
SELECT + - 3 * - + 66 * - - 87 * 18 col0, ( 58 ) DIV + 79 * - + 81 AS col0
----
310068
0

skipif mysql # not compatible
query II rowsort label-8071
SELECT + - 3 * - + 66 * - - 87 * 18 col0, ( 58 ) / + 79 * - + 81 AS col0
----
310068
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT + + COUNT( * ) + 44 * + 51 AS col1
----
2245

skipif mysql # not compatible
query I rowsort label-8072
SELECT + + COUNT ( * ) + 44 * + 51 AS col1
----
2245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8073
SELECT + - COUNT( * ) * + - 56 DIV - 14 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8073
SELECT + - COUNT ( * ) * + - 56 / - 14 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8074
SELECT DISTINCT 52 * COALESCE ( 74, CAST( NULL AS SIGNED ), + CASE - - 57 WHEN - 62 * - + 77 * + - 34 * + + COUNT( * ) * - AVG ( + ( - 12 ) ) + 8 THEN + + 92 * - 52 WHEN + + 56 * - 70 THEN 73 ELSE + 69 * - - 38 END, + + 80 ) col2, + 9
----
3848
9

skipif mysql # not compatible
query II rowsort label-8074
SELECT DISTINCT 52 * COALESCE ( 74, CAST ( NULL AS INTEGER ), + CASE - - 57 WHEN - 62 * - + 77 * + - 34 * + + COUNT ( * ) * - AVG ( + ( - 12 ) ) + 8 THEN + + 92 * - 52 WHEN + + 56 * - 70 THEN 73 ELSE + 69 * - - 38 END, + + 80 ) col2, + 9
----
3848
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT + MAX( ALL - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT + MAX ( ALL - 29 )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT + 0 + + 71 + - - 1 DIV 58
----
71

skipif mysql # not compatible
query I rowsort label-8076
SELECT + 0 + + 71 + - - 1 / 58
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT DISTINCT + 29 * CAST( NULL AS SIGNED ) + + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT + 29 * CAST ( NULL AS INTEGER ) + + 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT - - 1 * + NULLIF ( - SUM( - 26 ), + 81 )
----
26

skipif mysql # not compatible
query I rowsort label-8078
SELECT - - 1 * + NULLIF ( - SUM ( - 26 ), + 81 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT + + 90 + + 56 * - 74 * CASE + - 2 WHEN NULLIF ( - 22, - NULLIF ( + 75, + + 59 + + + CASE - 2 WHEN + 88 + - COUNT( - 11 ) THEN NULL ELSE COUNT( * ) END - + 20 ) + - 93 * + 73 ) * ( 85 ) + CAST( + 37 AS SIGNED ) + NULLIF ( 23, + 12 ) THEN + 85 WHEN CASE - 30 WHEN 33 * 5 * + - CASE - 24 WHEN + 73 THEN NULL WHEN + NULLIF ( - 25, + - 29 + - MAX( + - 56 ) + 92 + + 82 + - + CASE + 15 WHEN 4 THEN NULL WHEN - ( + AVG ( + 73 ) ) + - - COALESCE ( - 10, - 8 * COALESCE ( - 76, 23, - ( 16 ) * 83, 75, 59 * COUNT( * ) ) ) THEN NULL ELSE 27 + ( NULLIF ( + ( 18 ), + 37 - 26 * - 89 ) - 76 ) END * - 81 ) THEN + 79 + 50 WHEN - 5 THEN NULL ELSE NULL END * + 18 THEN + 63 WHEN 10 + + 69 / ( 5 ) THEN NULL END THEN NULL WHEN - CAST( ( + 47 ) AS SIGNED ) THEN 94 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT + + 90 + + 56 * - 74 * CASE + - 2 WHEN NULLIF ( - 22, - NULLIF ( + 75, + + 59 + + + CASE - 2 WHEN + 88 + - COUNT ( - 11 ) THEN NULL ELSE COUNT ( * ) END - + 20 ) + - 93 * + 73 ) * ( 85 ) + CAST ( + 37 AS INTEGER ) + NULLIF ( 23, + 12 ) THEN + 85 WHEN CASE - 30 WHEN 33 * 5 * + - CASE - 24 WHEN + 73 THEN NULL WHEN + NULLIF ( - 25, + - 29 + - MAX ( + - 56 ) + 92 + + 82 + - + CASE + 15 WHEN 4 THEN NULL WHEN - ( + AVG ( + 73 ) ) + - - COALESCE ( - 10, - 8 * COALESCE ( - 76, 23, - ( 16 ) * 83, 75, 59 * COUNT ( * ) ) ) THEN NULL ELSE 27 + ( NULLIF ( + ( 18 ), + 37 - 26 * - 89 ) - 76 ) END * - 81 ) THEN + 79 + 50 WHEN - 5 THEN NULL ELSE NULL END * + 18 THEN + 63 WHEN 10 + + 69 / ( 5 ) THEN NULL END THEN NULL WHEN - CAST ( ( + 47 ) AS INTEGER ) THEN 94 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8080
SELECT - - COALESCE ( 71, - SUM( + 57 ) * + 47 ) * - ( 24 ) - + NULLIF ( - 70, - + 91 ) * - - CAST( - 14 AS SIGNED ) AS col2, 90 + - + 18
----
-2684
72

skipif mysql # not compatible
query II rowsort label-8080
SELECT - - COALESCE ( 71, - SUM ( + 57 ) * + 47 ) * - ( 24 ) - + NULLIF ( - 70, - + 91 ) * - - CAST ( - 14 AS INTEGER ) AS col2, 90 + - + 18
----
-2684
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL + CASE - 24 WHEN - 61 - COUNT( * ) THEN - 69 WHEN - 99 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL + CASE - 24 WHEN - 61 - COUNT ( * ) THEN - 69 WHEN - 99 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT - 89 * + + 82 * + + 65 + + 48 * + CASE 68 WHEN + 71 THEN 65 * + + ( - - 80 ) WHEN - + NULLIF ( + - 63, + - COUNT( * ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8082
SELECT - 89 * + + 82 * + + 65 + + 48 * + CASE 68 WHEN + 71 THEN 65 * + + ( - - 80 ) WHEN - + NULLIF ( + - 63, + - COUNT ( * ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8083
SELECT ALL 1 * - + COALESCE ( - + ( + 21 ), + 11 + COUNT( * ), 57, + + 43 * - + 40 * - + 26 * + 96 DIV - 61 * + - 44 ) + NULLIF ( + 68, - 91 ) * 99 + 90
----
6843

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL 1 * - + COALESCE ( - + ( + 21 ), + 11 + COUNT ( * ), 57, + + 43 * - + 40 * - + 26 * + 96 / - 61 * + - 44 ) + NULLIF ( + 68, - 91 ) * 99 + 90
----
6843

query I rowsort
SELECT + ( + 7 ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ALL - 24 * 37 * 76 + - 40 - - COUNT( * )
----
-67527

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL - 24 * 37 * 76 + - 40 - - COUNT ( * )
----
-67527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT 70 / + 37 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT 70 / + 37 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT COALESCE ( - 32, - 7 ), 90 col0
----
-32
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL COUNT( * ) * + + CASE 66 WHEN 57 + 42 * 68 THEN NULL WHEN + 62 THEN 8 ELSE NULL END * + 82 + 3 + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL COUNT ( * ) * + + CASE 66 WHEN 57 + 42 * 68 THEN NULL WHEN + 62 THEN 8 ELSE NULL END * + 82 + 3 + + 43
----
NULL

query I rowsort
SELECT + NULLIF ( - - 66, + 85 * - + 89 + - ( 52 ) - + 2 )
----
66

query I rowsort
SELECT COALESCE ( - 72, - 87 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT 80 * + + SUM( 90 ) + 8 * 70 AS col2
----
7760

skipif mysql # not compatible
query I rowsort label-8091
SELECT 80 * + + SUM ( 90 ) + 8 * 70 AS col2
----
7760

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT ALL + 97 * - 24 + - 81 * - + COUNT( * )
----
-2247

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL + 97 * - 24 + - 81 * - + COUNT ( * )
----
-2247

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT + 62 * COALESCE ( + COUNT( * ), - 54 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8093
SELECT + 62 * COALESCE ( + COUNT ( * ), - 54 ) AS col1
----
62

query I rowsort
SELECT - 68 * + + 82 AS col0
----
-5576

onlyif mysql # DIV for integer division: 
query I rowsort label-8095
SELECT COALESCE ( + 38, 26 DIV 93 + - 35, + 99 * - - 89 DIV + + 4 * + 25 )
----
38

skipif mysql # not compatible
query I rowsort label-8095
SELECT COALESCE ( + 38, 26 / 93 + - 35, + 99 * - - 89 / + + 4 * + 25 )
----
38

query I rowsort
SELECT ALL - 20 * 73 + - 76 * - - 37 + + 49 * 42
----
-2214

query I rowsort
SELECT - 32 * - + 13 AS col0
----
416

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT DISTINCT - 99 DIV + + 75
----
-1

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT - 99 / + + 75
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8099
SELECT ALL 18 * - 26 + - - 93 + CAST( NULL AS SIGNED ) + - 67, + 10 * - COUNT( * ) col0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-8099
SELECT ALL 18 * - 26 + - - 93 + CAST ( NULL AS INTEGER ) + - 67, + 10 * - COUNT ( * ) col0
----
NULL
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8100
SELECT + 70 AS col0, - COUNT( * )
----
70
-1

skipif mysql # not compatible
query II rowsort label-8100
SELECT + 70 AS col0, - COUNT ( * )
----
70
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT ALL CASE - COUNT( * ) WHEN - COALESCE ( - 37, + 39 + 37 + ( 31 ) + 99 + MAX( - ( - - 5 ) ) + COUNT( DISTINCT 85 ) ) THEN - + 62 WHEN + - 27 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL CASE - COUNT ( * ) WHEN - COALESCE ( - 37, + 39 + 37 + ( 31 ) + 99 + MAX ( - ( - - 5 ) ) + COUNT ( DISTINCT 85 ) ) THEN - + 62 WHEN + - 27 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( + 89 )
----
89

query I rowsort
SELECT ALL ( + 39 ) AS col2
----
39

query I rowsort
SELECT - 66 + - 6 AS col0
----
-72

query I rowsort
SELECT + 30 + 58 * - 73 col0
----
-4204

query I rowsort
SELECT ALL + 9 * 74 AS col2
----
666

query I rowsort
SELECT ALL + 37 * 14
----
518

query I rowsort
SELECT ALL ( - 47 ) AS col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT + 94 DIV 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8109
SELECT + 94 / 65 AS col0
----
1

query I rowsort
SELECT ALL - 10 * 41 AS col1
----
-410

query I rowsort
SELECT + 12 + + ( 47 ) AS col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8112
SELECT DISTINCT 23 DIV + 20 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT 23 / + 20 AS col0
----
1

query I rowsort
SELECT + 88 + - 29 * - 58
----
1770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT ALL CAST( + 93 AS SIGNED ) col2
----
93

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL CAST ( + 93 AS INTEGER ) col2
----
93

query I rowsort
SELECT + 64 * ( 51 ) AS col0
----
3264

query I rowsort
SELECT - 76 * 75
----
-5700

query I rowsort
SELECT - ( + ( + ( 56 ) ) ) - - 43
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT + 40 * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-8118
SELECT + 40 * COUNT ( * )
----
40

query I rowsort
SELECT + 58 + + 30 col2
----
88

query I rowsort
SELECT ALL 22 * 24
----
528

onlyif mysql # DIV for integer division: 
query I rowsort label-8121
SELECT + 28 DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8121
SELECT + 28 / 68 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT + ( - CAST( COALESCE ( + NULLIF ( + 91, + 2 - + 94 ), 37 + + 83 ) AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-8122
SELECT + ( - CAST ( COALESCE ( + NULLIF ( + 91, + 2 - + 94 ), 37 + + 83 ) AS INTEGER ) )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT + ( 20 ) AS col0
----
20

query I rowsort
SELECT ALL 86 * 4 AS col1
----
344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8126
SELECT + 98 DIV + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-8126
SELECT + 98 / + COUNT ( * )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8127
SELECT ALL + ( + 17 ) DIV 2 + + 24 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL + ( + 17 ) / 2 + + 24 AS col2
----
32

query I rowsort
SELECT + 86 - - 59 * 75 AS col2
----
4511

query I rowsort
SELECT + ( 60 ) col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT + ( + COUNT( DISTINCT ( + 22 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8130
SELECT + ( + COUNT ( DISTINCT ( + 22 ) ) ) AS col0
----
1

query I rowsort
SELECT + 38 * 16 AS col2
----
608

query I rowsort
SELECT - 44 * - 59 AS col1
----
2596

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ( COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8133
SELECT ( COUNT ( * ) ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT ALL - 76 DIV ( + 2 ) + 4 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL - 76 / ( + 2 ) + 4 AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8135
SELECT ALL 46 * COALESCE ( + 86, + COALESCE ( + 77, + 99 + + 3, - 77 DIV 4 + - 29 ) + + COUNT( 77 ) * 22 ) - 72
----
3884

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL 46 * COALESCE ( + 86, + COALESCE ( + 77, + 99 + + 3, - 77 / 4 + - 29 ) + + COUNT ( 77 ) * 22 ) - 72
----
3884

query I rowsort
SELECT + 8 - 5 * ( + 85 )
----
-417

query I rowsort
SELECT DISTINCT - 95 - + 19 AS col0
----
-114

query I rowsort
SELECT 44 + + 48 * 34
----
1676

query I rowsort
SELECT ALL 66 - + 87
----
-21

query I rowsort
SELECT 50 * + ( 70 * 4 )
----
14000

query I rowsort
SELECT 62 * - 1 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - ( - SUM( DISTINCT + 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-8142
SELECT - ( - SUM ( DISTINCT + 4 ) )
----
4

query I rowsort
SELECT 65 + + 5 AS col0
----
70

query I rowsort
SELECT - 83 col2
----
-83

query I rowsort
SELECT - 33 + - 93 AS col0
----
-126

query I rowsort
SELECT DISTINCT + NULLIF ( 60, - 83 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT ALL - + 12 / NULLIF ( CASE - 85 WHEN ( - 60 ) THEN NULL WHEN - 78 + ( + 97 ) THEN 12 ELSE NULL END, 46 / COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL - + 12 / NULLIF ( CASE - 85 WHEN ( - 60 ) THEN NULL WHEN - 78 + ( + 97 ) THEN 12 ELSE NULL END, 46 / COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8148
SELECT ALL - 20 DIV - ( 61 DIV 25 + 34 DIV - ( 9 DIV 1 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - 20 / - ( 61 / 25 + 34 / - ( 9 / 1 ) )
----
-20

query I rowsort
SELECT + NULLIF ( 42, 93 / 20 ) * + 36
----
1512

query I rowsort
SELECT + 82 + + 53 AS col0
----
135

query I rowsort
SELECT - + 57 AS col2
----
-57

query I rowsort
SELECT 44 + + 71 AS col2
----
115

query I rowsort
SELECT 34 * ( - ( 11 ) )
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT - MAX( DISTINCT - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-8154
SELECT - MAX ( DISTINCT - 36 )
----
36

query I rowsort
SELECT 26 - - - 15 col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8156
SELECT 39 + + 91 + SUM( 12 - 65 ) DIV 40 * + 6 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-8156
SELECT 39 + + 91 + SUM ( 12 - 65 ) / 40 * + 6 AS col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT 45 DIV + - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8157
SELECT 45 / + - 90 AS col2
----
0

query I rowsort
SELECT ALL - ( - 64 ) + 65 * - 83
----
-5331

onlyif mysql # DIV for integer division: 
query I rowsort label-8159
SELECT 7 DIV NULLIF ( 6, - 53 - + 3 ) + 18
----
19

skipif mysql # not compatible
query I rowsort label-8159
SELECT 7 / NULLIF ( 6, - 53 - + 3 ) + 18
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8160
SELECT + 42 DIV + ( + CASE + COALESCE ( 61, COUNT( * ), 78 ) WHEN + 68 * - 94 THEN NULL WHEN + COUNT( * ) + 38 THEN NULL ELSE 51 + 67 * 8 END ) - + 94 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8160
SELECT + 42 / + ( + CASE + COALESCE ( 61, COUNT ( * ), 78 ) WHEN + 68 * - 94 THEN NULL WHEN + COUNT ( * ) + 38 THEN NULL ELSE 51 + 67 * 8 END ) - + 94 AS col1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8161
SELECT ALL 33 DIV SUM( ALL + 52 )
----
0

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL 33 / SUM ( ALL + 52 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT 80 * - 87 / - CAST( NULL AS SIGNED ) + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT 80 * - 87 / - CAST ( NULL AS INTEGER ) + 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT MIN( CASE + 80 WHEN + 38 THEN 31 END ) - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT MIN ( CASE + 80 WHEN + 38 THEN 31 END ) - 82 AS col1
----
NULL

query I rowsort
SELECT 17 * 36 + - 69
----
543

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT COUNT( ALL 45 ) * - 33 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8165
SELECT COUNT ( ALL 45 ) * - 33 AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8166
SELECT + 85 DIV + COUNT( * ) + - 59
----
26

skipif mysql # not compatible
query I rowsort label-8166
SELECT + 85 / + COUNT ( * ) + - 59
----
26

query I rowsort
SELECT ALL 73 * + - 72 * - 4
----
21024

query I rowsort
SELECT DISTINCT 32 * - - 99
----
3168

query I rowsort
SELECT 41 * - 33 AS col0
----
-1353

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT + 97 * + 79 * ( 38 DIV - 34 ) + NULLIF ( + 47, - ( - 57 ) * 72 ) AS col1
----
-7616

skipif mysql # not compatible
query I rowsort label-8170
SELECT + 97 * + 79 * ( 38 / - 34 ) + NULLIF ( + 47, - ( - 57 ) * 72 ) AS col1
----
-7616

query I rowsort
SELECT 96 * - - 92 * 61
----
538752

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT - 73 + - + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-8172
SELECT - 73 + - + COUNT ( * )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8173
SELECT DISTINCT - CAST( 36 AS SIGNED ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT - CAST ( 36 AS INTEGER ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL - 35 * + SUM( ALL - ( + 21 ) )
----
735

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL - 35 * + SUM ( ALL - ( + 21 ) )
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT + + NULLIF ( - 77, + MAX( ALL + 67 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8175
SELECT + + NULLIF ( - 77, + MAX ( ALL + 67 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT DISTINCT + 91 / - CASE 41 WHEN + 83 * MIN( 12 * 73 ) THEN 13 / - 97 + 92 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT + 91 / - CASE 41 WHEN + 83 * MIN ( 12 * 73 ) THEN 13 / - 97 + 92 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 79 * + 73 AS col0
----
5767

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8178
SELECT DISTINCT + 42 * CASE + COALESCE ( 71, + 17 + ( - 91 ), 70 ) WHEN 57 * + CAST( 43 * 28 AS DECIMAL ) THEN NULL WHEN 99 * - AVG ( ALL - 34 ) THEN + 92 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT + 42 * CASE + COALESCE ( 71, + 17 + ( - 91 ), 70 ) WHEN 57 * + CAST ( 43 * 28 AS REAL ) THEN NULL WHEN 99 * - AVG ( ALL - 34 ) THEN + 92 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL 3 + COUNT( * ) + - 91 * + 84 AS col1
----
-7640

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL 3 + COUNT ( * ) + - 91 * + 84 AS col1
----
-7640

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8180
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + ( + 74 ) + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT - CAST ( NULL AS REAL ) + + ( + 74 ) + + 5
----
NULL

query I rowsort
SELECT - ( + + 51 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL COUNT( 6 )
----
1

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL COUNT ( 6 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT DISTINCT + 15 + - - COUNT( 17 )
----
16

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT + 15 + - - COUNT ( 17 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT ALL - AVG ( - CAST( NULL AS SIGNED ) ) + + ( - ( + 57 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL - AVG ( - CAST ( NULL AS INTEGER ) ) + + ( - ( + 57 ) ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( 94, 84 / + 58 ) AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT 26 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8186
SELECT 26 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 29 + 9
----
38

query I rowsort
SELECT ALL 94 * + + 97 * + 43 - 29 * + 65 col1
----
390189

query I rowsort
SELECT 51 * - 76
----
-3876

query I rowsort
SELECT ALL + ( + - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT NULLIF ( + 83, + COUNT( * ) )
----
83

skipif mysql # not compatible
query I rowsort label-8191
SELECT NULLIF ( + 83, + COUNT ( * ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT - MIN( DISTINCT 69 ) * - 0 + + 88 * - 10
----
-880

skipif mysql # not compatible
query I rowsort label-8192
SELECT - MIN ( DISTINCT 69 ) * - 0 + + 88 * - 10
----
-880

query II rowsort
SELECT DISTINCT + 2, - 71 * 29 AS col1
----
2
-2059

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT ALL + COALESCE ( + - 33, 2 DIV + 90, 1 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL + COALESCE ( + - 33, 2 / + 90, 1 ) AS col1
----
-33

query I rowsort
SELECT - 97 * - + 80 * 67 * - 75 AS col1
----
-38994000

query I rowsort
SELECT NULLIF ( + 71, - + 47 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT CASE 32 WHEN - - 59 * + 69 THEN 12 * + COUNT( * ) + - 17 ELSE - 7 END
----
-7

skipif mysql # not compatible
query I rowsort label-8197
SELECT CASE 32 WHEN - - 59 * + 69 THEN 12 * + COUNT ( * ) + - 17 ELSE - 7 END
----
-7

query I rowsort
SELECT - 73 - + + 54 AS col2
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-8199
SELECT + COUNT( * ) col1, 10
----
1
10

skipif mysql # not compatible
query II rowsort label-8199
SELECT + COUNT ( * ) col1, 10
----
1
10

query I rowsort
SELECT + ( 7 ) * - + 42 + + 26
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT + 56 * + ( + + 69 ) - - COUNT( ALL - 49 ) AS col0
----
3865

skipif mysql # not compatible
query I rowsort label-8201
SELECT + 56 * + ( + + 69 ) - - COUNT ( ALL - 49 ) AS col0
----
3865

onlyif mysql # aggregate syntax: 
query II rowsort label-8202
SELECT + COUNT( * ) AS col1, MAX( 47 ) col0
----
1
47

skipif mysql # not compatible
query II rowsort label-8202
SELECT + COUNT ( * ) AS col1, MAX ( 47 ) col0
----
1
47

query II rowsort
SELECT + 21 AS col1, 3 * + 14 AS col1
----
21
42

query II rowsort
SELECT ALL + 5, 47 AS col0
----
5
47

query I rowsort
SELECT DISTINCT + COALESCE ( + + 26, - 56 + - 4 ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT - - 75 * - 91 * + MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT - - 75 * - 91 * + MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 67, - 92 ) * + 79 AS col2
----
-5293

query I rowsort
SELECT + + ( + 98 )
----
98

query I rowsort
SELECT ALL + - 63 AS col0
----
-63

query I rowsort
SELECT ALL + - 41 * 18 + 10
----
-728

query I rowsort
SELECT + 37 * 58 AS col2
----
2146

query I rowsort
SELECT ALL NULLIF ( 69, - 81 + 46 ) * + 82 AS col0
----
5658

query II rowsort
SELECT + 90, 90
----
90
90

query I rowsort
SELECT + 51 * NULLIF ( + - 78, 94 - 3 * 47 ) AS col1
----
-3978

query I rowsort
SELECT - 90 + ( - - 14 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT + - SUM( + - 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8216
SELECT + - SUM ( + - 3 ) AS col2
----
3

query I rowsort
SELECT ALL + 24 * + 9 + - 30 - 99
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT - 57 * + 63 + - - COUNT( * ) + + 55
----
-3535

skipif mysql # not compatible
query I rowsort label-8218
SELECT - 57 * + 63 + - - COUNT ( * ) + + 55
----
-3535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT ALL + + ( - - 54 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL + + ( - - 54 ) + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 75 AS col0, 38
----
-75
38

query I rowsort
SELECT + + 99 + 46
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8222
SELECT ALL - CASE + + 32 WHEN + CASE + 95 WHEN 21 THEN 31 * - 66 WHEN 31 * + ( COUNT( DISTINCT - 66 ) ) THEN + 60 * - 39 WHEN - 93 THEN + COALESCE ( - SUM( ALL + 37 ), 92 ) ELSE AVG ( ( 34 ) ) / 47 END + + 31 THEN NULL ELSE 55 * + COUNT( * ) END + CAST( 15 + + 88 AS SIGNED ) * NULLIF ( - 93, + 54 ) AS col1
----
-9634

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL - CASE + + 32 WHEN + CASE + 95 WHEN 21 THEN 31 * - 66 WHEN 31 * + ( COUNT ( DISTINCT - 66 ) ) THEN + 60 * - 39 WHEN - 93 THEN + COALESCE ( - SUM ( ALL + 37 ), 92 ) ELSE AVG ( ( 34 ) ) / 47 END + + 31 THEN NULL ELSE 55 * + COUNT ( * ) END + CAST ( 15 + + 88 AS INTEGER ) * NULLIF ( - 93, + 54 ) AS col1
----
-9634

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL + 19 + + 6 + + 86 * + COUNT( ALL + ( + 98 ) )
----
111

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL + 19 + + 6 + + 86 * + COUNT ( ALL + ( + 98 ) )
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8224
SELECT + CASE + AVG ( + 36 ) WHEN 50 THEN ( + 66 ) * ( - 44 ) + - 33 * + CASE 52 * 23 WHEN + 17 THEN + MAX( ALL - 40 ) ELSE - NULLIF ( CASE COUNT( * ) WHEN 70 * ( + 60 * - 85 ) + + 2 THEN + 46 * 40 END, 23 / - CASE - 20 WHEN 76 THEN + 54 + + 10 WHEN 93 THEN NULL ELSE NULL END ) END WHEN + 25 - COUNT( * ) THEN NULL END + CAST( 98 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT + CASE + AVG ( + 36 ) WHEN 50 THEN ( + 66 ) * ( - 44 ) + - 33 * + CASE 52 * 23 WHEN + 17 THEN + MAX ( ALL - 40 ) ELSE - NULLIF ( CASE COUNT ( * ) WHEN 70 * ( + 60 * - 85 ) + + 2 THEN + 46 * 40 END, 23 / - CASE - 20 WHEN 76 THEN + 54 + + 10 WHEN 93 THEN NULL ELSE NULL END ) END WHEN + 25 - COUNT ( * ) THEN NULL END + CAST ( 98 AS INTEGER )
----
NULL

query I rowsort
SELECT + 45 * - - COALESCE ( 98, 27 * 51 ) col0
----
4410

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8226
SELECT ALL ( - + CAST( NULL AS DECIMAL ) ) * + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL ( - + CAST ( NULL AS REAL ) ) * + 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8227
SELECT + 63 + - COUNT( * ) DIV 21 + + - 77 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8227
SELECT + 63 + - COUNT ( * ) / 21 + + - 77 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - NULLIF ( - 8, CASE WHEN NOT 70 BETWEEN + 31 AND - ( COUNT( * ) ) THEN - 74 + + 38 ELSE NULL END ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8228
SELECT - NULLIF ( - 8, CASE WHEN NOT 70 BETWEEN + 31 AND - ( COUNT ( * ) ) THEN - 74 + + 38 ELSE NULL END ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8229
SELECT + COUNT( * ) * + CAST( - COUNT( * ) AS SIGNED ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8229
SELECT + COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8230
SELECT ALL NULLIF ( 3, + - 63 + + CAST( 5 AS SIGNED ) + + COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL NULLIF ( 3, + - 63 + + CAST ( 5 AS INTEGER ) + + COUNT ( * ) )
----
3

query I rowsort
SELECT - 9 - 47 + - 64 + 15
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8232
SELECT - ( - + 57 ) DIV COUNT( + 43 ) DIV + 46 col2
----
1

skipif mysql # not compatible
query I rowsort label-8232
SELECT - ( - + 57 ) / COUNT ( + 43 ) / + 46 col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8233
SELECT ALL + 54 * + 15 AS col2, - CAST( - + 36 AS SIGNED ) - 17 * 31 AS col1
----
810
-491

skipif mysql # not compatible
query II rowsort label-8233
SELECT ALL + 54 * + 15 AS col2, - CAST ( - + 36 AS INTEGER ) - 17 * 31 AS col1
----
810
-491

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT ALL 91 DIV + + ( 18 )
----
5

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL 91 / + + ( 18 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8235
SELECT + ( - 34 ) DIV 81 + COUNT( * ) * 4
----
4

skipif mysql # not compatible
query I rowsort label-8235
SELECT + ( - 34 ) / 81 + COUNT ( * ) * 4
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8236
SELECT + 49 + + - CAST( + - CASE + 22 WHEN + CAST( NULL AS SIGNED ) * 70 + 74 * 89 THEN + 57 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT + 49 + + - CAST ( + - CASE + 22 WHEN + CAST ( NULL AS INTEGER ) * 70 + 74 * 89 THEN + 57 ELSE NULL END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - ( 45 ) * + 66
----
-2970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT ALL + 82 * + COALESCE ( - 80, + CAST( NULL AS SIGNED ) ) AS col0
----
-6560

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL + 82 * + COALESCE ( - 80, + CAST ( NULL AS INTEGER ) ) AS col0
----
-6560

query I rowsort
SELECT DISTINCT 49 * - 52 * 43
----
-109564

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT + ( - - MIN( - 35 ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT + ( - - MIN ( - 35 ) ) AS col2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT DISTINCT + 92 DIV - NULLIF ( + + 75, + ( ( 24 ) ) * + 94 ) + + 29 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT + 92 / - NULLIF ( + + 75, + ( ( 24 ) ) * + 94 ) + + 29 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL MIN( 11 ) * - 31 + + 80 + - 67 AS col0
----
-328

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL MIN ( 11 ) * - 31 + + 80 + - 67 AS col0
----
-328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8243
SELECT + + SUM( - CAST( NULL AS SIGNED ) ), 89 AS col0
----
NULL
89

skipif mysql # not compatible
query II rowsort label-8243
SELECT + + SUM ( - CAST ( NULL AS INTEGER ) ), 89 AS col0
----
NULL
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT MAX( DISTINCT + 22 ) * - NULLIF ( - 17, COUNT( * ) ) + CASE 6 + - 9 / - 90 WHEN - 96 THEN - 89 ELSE + NULLIF ( 5, - 24 - - 68 ) - 65 * 21 END col2
----
-986

skipif mysql # not compatible
query I rowsort label-8244
SELECT MAX ( DISTINCT + 22 ) * - NULLIF ( - 17, COUNT ( * ) ) + CASE 6 + - 9 / - 90 WHEN - 96 THEN - 89 ELSE + NULLIF ( 5, - 24 - - 68 ) - 65 * 21 END col2
----
-986

query I rowsort
SELECT ALL - 34 * + 79 + 45 AS col0
----
-2641

query I rowsort
SELECT - COALESCE ( - 52, - 92, - + COALESCE ( + 25, - 9 ) )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8247
SELECT - + 3 DIV - COUNT( * ) AS col2, 44 * 48 + + ( 68 + 79 )
----
3
2259

skipif mysql # not compatible
query II rowsort label-8247
SELECT - + 3 / - COUNT ( * ) AS col2, 44 * 48 + + ( 68 + 79 )
----
3
2259

onlyif mysql # DIV for integer division: 
query I rowsort label-8248
SELECT ALL - ( 72 ) DIV - 37 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL - ( 72 ) / - 37 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT DISTINCT + MIN( 30 ) * + 91
----
2730

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT + MIN ( 30 ) * + 91
----
2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8250
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) * SUM( + 71 ) + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) * SUM ( + 71 ) + 2 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8251
SELECT + 92 * + CAST( - 92 AS SIGNED ) * + 42 + - 87 + 43
----
-355532

skipif mysql # not compatible
query I rowsort label-8251
SELECT + 92 * + CAST ( - 92 AS INTEGER ) * + 42 + - 87 + 43
----
-355532

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL + 19 * + ( + NULLIF ( - COUNT( ALL ( 0 ) ), - 69 ) ) - - ( + 51 )
----
32

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL + 19 * + ( + NULLIF ( - COUNT ( ALL ( 0 ) ), - 69 ) ) - - ( + 51 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT - COUNT( * ) + + + 24 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8253
SELECT - COUNT ( * ) + + + 24 AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8254
SELECT + COALESCE ( NULLIF ( - CASE - 3 WHEN + 20 THEN + 52 DIV 97 WHEN CASE + COUNT( * ) WHEN 42 - - 99 DIV 71 THEN - 85 * 74 + + 58 WHEN + 96 + 14 THEN NULL END THEN SUM( DISTINCT 83 ) ELSE NULL END, 45 ), COALESCE ( SUM( ALL + 5 ), - CASE - 13 WHEN ( - 33 ) - + 2 THEN + 82 + + 21 END * + 44, - 37 ) * 32 + 26 ) * + 76 AS col1
----
14136

skipif mysql # not compatible
query I rowsort label-8254
SELECT + COALESCE ( NULLIF ( - CASE - 3 WHEN + 20 THEN + 52 / 97 WHEN CASE + COUNT ( * ) WHEN 42 - - 99 / 71 THEN - 85 * 74 + + 58 WHEN + 96 + 14 THEN NULL END THEN SUM ( DISTINCT 83 ) ELSE NULL END, 45 ), COALESCE ( SUM ( ALL + 5 ), - CASE - 13 WHEN ( - 33 ) - + 2 THEN + 82 + + 21 END * + 44, - 37 ) * 32 + 26 ) * + 76 AS col1
----
14136

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT SUM( + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-8255
SELECT SUM ( + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT MAX( + ( 53 ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8256
SELECT MAX ( + ( 53 ) ) AS col1
----
53

query I rowsort
SELECT ( + + 59 ) * + 57 col1
----
3363

query I rowsort
SELECT ALL 4 * + 11
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ( COUNT( * ) ) + - 22 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8259
SELECT ( COUNT ( * ) ) + - 22 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8260
SELECT COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) + - 1 DIV - 65 + + CASE NULLIF ( 20, + 20 ) WHEN 17 + - 91 THEN - 10 WHEN 9 + 84 * - 68 THEN NULL ELSE - COALESCE ( + 87, 25 * + 87 ) END
----
-87

skipif mysql # not compatible
query I rowsort label-8260
SELECT COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + - 1 / - 65 + + CASE NULLIF ( 20, + 20 ) WHEN 17 + - 91 THEN - 10 WHEN 9 + 84 * - 68 THEN NULL ELSE - COALESCE ( + 87, 25 * + 87 ) END
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8261
SELECT ALL 50 * + COUNT( * ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL 50 * + COUNT ( * ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT COALESCE ( - 6, + COUNT( * ), - 86 ) * + 99
----
-594

skipif mysql # not compatible
query I rowsort label-8262
SELECT COALESCE ( - 6, + COUNT ( * ), - 86 ) * + 99
----
-594

query I rowsort
SELECT DISTINCT 2 * + + 31 AS col1
----
62

query I rowsort
SELECT 63 + + 61 AS col2
----
124

query II rowsort
SELECT - 6 AS col2, - 86 * + COALESCE ( + - 50, + 53, + 23 + - 55 ) + 87
----
-6
4387

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT 70 * 28 DIV + 83 col0
----
23

skipif mysql # not compatible
query I rowsort label-8266
SELECT 70 * 28 / + 83 col0
----
23

query I rowsort
SELECT ALL 8 + + + 66
----
74

query I rowsort
SELECT DISTINCT 67 + + 56 col2
----
123

query I rowsort
SELECT 95 * + 74
----
7030

query I rowsort
SELECT + - ( - 44 ) AS col1
----
44

query I rowsort
SELECT + NULLIF ( + + 33, + - ( - 7 ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT + ( - ( - COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8272
SELECT + ( - ( - COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8273
SELECT + 20 DIV + 98 + - 46 + 38 * + + 68 AS col1
----
2538

skipif mysql # not compatible
query I rowsort label-8273
SELECT + 20 / + 98 + - 46 + 38 * + + 68 AS col1
----
2538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8274
SELECT - 29 * - CASE - 42 WHEN + 74 + COUNT( * ) + + 17 THEN NULL WHEN 5 + 88 THEN CAST( NULL AS SIGNED ) - 92 / 71 WHEN - 67 + - 61 * - 86 THEN NULL ELSE NULL END * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT - 29 * - CASE - 42 WHEN + 74 + COUNT ( * ) + + 17 THEN NULL WHEN 5 + 88 THEN CAST ( NULL AS INTEGER ) - 92 / 71 WHEN - 67 + - 61 * - 86 THEN NULL ELSE NULL END * - 27
----
NULL

query I rowsort
SELECT DISTINCT - + 51 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8276
SELECT ALL - + 61 + CAST( NULL AS SIGNED ) + + - 48 - + + 28 + - ( + COUNT( * ) ) + 40 * + COALESCE ( + COUNT( - 61 ) + - COUNT( * ), - 75 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL - + 61 + CAST ( NULL AS INTEGER ) + + - 48 - + + 28 + - ( + COUNT ( * ) ) + 40 * + COALESCE ( + COUNT ( - 61 ) + - COUNT ( * ), - 75 ) col2
----
NULL

query I rowsort
SELECT DISTINCT + + 98 * + NULLIF ( + 75, 26 )
----
7350

query I rowsort
SELECT ALL 69 + - 61 * - + 51 * - 76 * + 83
----
-19624119

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT DISTINCT 74 + 76 + - + COUNT( * ) + + 78 AS col1
----
227

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT 74 + 76 + - + COUNT ( * ) + + 78 AS col1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT - NULLIF ( MIN( ALL - + 46 ), - 38 + - 65 * 82 )
----
46

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT - NULLIF ( MIN ( ALL - + 46 ), - 38 + - 65 * 82 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL + + COUNT( 64 ) - - + 22 * 14 * - + 75
----
-23099

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL + + COUNT ( 64 ) - - + 22 * 14 * - + 75
----
-23099

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT ALL - + CASE - - 20 WHEN + COALESCE ( + 2, 59 + - COUNT( 71 ) ) THEN - 62 + 44 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL - + CASE - - 20 WHEN + COALESCE ( + 2, 59 + - COUNT ( 71 ) ) THEN - 62 + 44 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT + 66 + - 43 DIV + 31 + - 28
----
37

skipif mysql # not compatible
query I rowsort label-8283
SELECT + 66 + - 43 / + 31 + - 28
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT 91 * - + 37 - MIN( ALL - 75 ) * + 83 AS col2
----
2858

skipif mysql # not compatible
query I rowsort label-8284
SELECT 91 * - + 37 - MIN ( ALL - 75 ) * + 83 AS col2
----
2858

query I rowsort
SELECT + 75 * + 51
----
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT COUNT( ALL 38 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8286
SELECT COUNT ( ALL 38 ) AS col1
----
1

query I rowsort
SELECT 82 + - + 89 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - 98 * - + COUNT( * ) + 46 + 57 AS col2
----
201

skipif mysql # not compatible
query I rowsort label-8288
SELECT - 98 * - + COUNT ( * ) + 46 + 57 AS col2
----
201

query I rowsort
SELECT 72 * - 48
----
-3456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8290
SELECT - 16 + - 29 + - - CASE COUNT( * ) WHEN 21 THEN NULL ELSE - 88 END * NULLIF ( CAST( NULL AS DECIMAL ), 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT - 16 + - 29 + - - CASE COUNT ( * ) WHEN 21 THEN NULL ELSE - 88 END * NULLIF ( CAST ( NULL AS REAL ), 60 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 71 * 40 * 49 * 66
----
-9184560

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT SUM( DISTINCT + - ( - 52 ) ) + + - 65 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8292
SELECT SUM ( DISTINCT + - ( - 52 ) ) + + - 65 AS col0
----
-13

query I rowsort
SELECT 73 + + 40 * - 50 * + 56
----
-111927

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT 44 DIV - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8294
SELECT 44 / - 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ( ( + 41 ) ) * + COALESCE ( + 65, + 6 * COUNT( DISTINCT + 33 ), ( + 96 ) )
----
2665

skipif mysql # not compatible
query I rowsort label-8295
SELECT ( ( + 41 ) ) * + COALESCE ( + 65, + 6 * COUNT ( DISTINCT + 33 ), ( + 96 ) )
----
2665

query I rowsort
SELECT DISTINCT - 9 + + 5 + + 77 * + ( + 16 ) + 55 col1
----
1283

query II rowsort
SELECT ALL 5, 8 + 23 col1
----
5
31

query I rowsort
SELECT 79 * + 28
----
2212

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL - 91 + NULLIF ( COUNT( * ), + + 29 + 57 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL - 91 + NULLIF ( COUNT ( * ), + + 29 + 57 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT + 36 + - - MIN( DISTINCT 4 ) + - - 15 - - + 92 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT + 36 + - - MIN ( DISTINCT 4 ) + - - 15 - - + 92 AS col1
----
147

query II rowsort
SELECT 61 col1, 43 AS col0
----
61
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT ALL COUNT( DISTINCT ( - 68 ) ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL COUNT ( DISTINCT ( - 68 ) ) + + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT COUNT( DISTINCT COALESCE ( 86, + 63 * - - ( - 95 ) * - 12 + 90 ) ) - + 18
----
-17

skipif mysql # not compatible
query I rowsort label-8303
SELECT COUNT ( DISTINCT COALESCE ( 86, + 63 * - - ( - 95 ) * - 12 + 90 ) ) - + 18
----
-17

query I rowsort
SELECT ALL 2 + - + 87 col1
----
-85

query I rowsort
SELECT 69 * - 9 AS col1
----
-621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8306
SELECT 5 + - 59 - - 33 + - COUNT( * ) DIV + + 30 + - 20 + 93 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-8306
SELECT 5 + - 59 - - 33 + - COUNT ( * ) / + + 30 + - 20 + 93 AS col0
----
52

query I rowsort
SELECT 76 + ( + - 85 )
----
-9

query II rowsort
SELECT 47 AS col1, - 67
----
47
-67

query I rowsort
SELECT - 57 + + 86
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-8310
SELECT - 17 DIV 54 - + 36 * - 86 AS col0, - 25 + - + 97
----
3096
-122

skipif mysql # not compatible
query II rowsort label-8310
SELECT - 17 / 54 - + 36 * - 86 AS col0, - 25 + - + 97
----
3096
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT DISTINCT - 14 * - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT - 14 * - COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT ALL - 4 * - - COUNT( * ) + ( + 76 ) * - 74 + + 5 * 44
----
-5408

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL - 4 * - - COUNT ( * ) + ( + 76 ) * - 74 + + 5 * 44
----
-5408

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT + + COUNT( DISTINCT 22 )
----
1

skipif mysql # not compatible
query I rowsort label-8313
SELECT + + COUNT ( DISTINCT 22 )
----
1

query I rowsort
SELECT ALL + 81 * 36 - 54 + + + 15 * - + 26
----
2472

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL - COALESCE ( - NULLIF ( - + MAX( + - 45 ), + 53 ), + - 81, - 52 + 65 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL - COALESCE ( - NULLIF ( - + MAX ( + - 45 ), + 53 ), + - 81, - 52 + 65 ) AS col0
----
45

query I rowsort
SELECT + + ( - 44 ) AS col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8317
SELECT - 59 DIV 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8317
SELECT - 59 / 61 AS col0
----
0

query I rowsort
SELECT 49 * - 86
----
-4214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8319
SELECT DISTINCT COUNT( - 56 ) DIV - - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT COUNT ( - 56 ) / - - 45 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT - CAST( NULL AS SIGNED ) * - 9 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT - CAST ( NULL AS INTEGER ) * - 9 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT 10 * 10 + + - COUNT( * ) * 19 - - + MIN( 67 ) AS col2
----
148

skipif mysql # not compatible
query I rowsort label-8321
SELECT 10 * 10 + + - COUNT ( * ) * 19 - - + MIN ( 67 ) AS col2
----
148

query II rowsort
SELECT 35, 47 AS col2
----
35
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8323
SELECT DISTINCT - 56 col1, 49 - - + COUNT( DISTINCT 57 )
----
-56
50

skipif mysql # not compatible
query II rowsort label-8323
SELECT DISTINCT - 56 col1, 49 - - + COUNT ( DISTINCT 57 )
----
-56
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT DISTINCT - + CASE + 75 WHEN COALESCE ( - + 30, + MIN( - 60 ) + SUM( 98 ) / + 19, + 29 - + 72 ) THEN + 24 WHEN 31 + 59 * NULLIF ( COUNT( * ) + COUNT( * ), CASE 28 WHEN + 9 THEN NULL WHEN 53 THEN COUNT( * ) ELSE NULL END + 24 ) THEN NULL ELSE + 28 END
----
-28

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT - + CASE + 75 WHEN COALESCE ( - + 30, + MIN ( - 60 ) + SUM ( 98 ) / + 19, + 29 - + 72 ) THEN + 24 WHEN 31 + 59 * NULLIF ( COUNT ( * ) + COUNT ( * ), CASE 28 WHEN + 9 THEN NULL WHEN 53 THEN COUNT ( * ) ELSE NULL END + 24 ) THEN NULL ELSE + 28 END
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL - SUM( DISTINCT + + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL - SUM ( DISTINCT + + 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT DISTINCT - MAX( - - 32 ) * 27 AS col1
----
-864

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT - MAX ( - - 32 ) * 27 AS col1
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL + COUNT( DISTINCT + + 69 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL + COUNT ( DISTINCT + + 69 ) AS col0
----
1

query I rowsort
SELECT ALL + 29 col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT DISTINCT + ( ( + COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT + ( ( + COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8330
SELECT + 80 * - - ( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT + 80 * - - ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT ( 7 ) * + 92 * 3 + COUNT( * ) * - 35 + - 34 + CAST( NULL AS SIGNED ) * ( - ( 46 ) ) + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT ( 7 ) * + 92 * 3 + COUNT ( * ) * - 35 + - 34 + CAST ( NULL AS INTEGER ) * ( - ( 46 ) ) + - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT - 50 + + COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8332
SELECT - 50 + + COUNT ( * ) AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8333
SELECT - ( - CASE 15 WHEN + CAST( - 60 AS DECIMAL ) + - - NULLIF ( - 69, - 97 ) * - 50 THEN 44 * + 16 WHEN + 38 + + CAST( 93 AS SIGNED ) THEN COUNT( * ) WHEN + 74 + 97 THEN NULL END ) - - 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT - ( - CASE 15 WHEN + CAST ( - 60 AS REAL ) + - - NULLIF ( - 69, - 97 ) * - 50 THEN 44 * + 16 WHEN + 38 + + CAST ( 93 AS INTEGER ) THEN COUNT ( * ) WHEN + 74 + 97 THEN NULL END ) - - 22 col0
----
NULL

query II rowsort
SELECT ALL - 68 + + + 47, + 59 AS col1
----
-21
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT DISTINCT - 77 + - CASE - COUNT( * ) WHEN COUNT( * ) + 74 THEN NULL ELSE - 76 END
----
-1

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT - 77 + - CASE - COUNT ( * ) WHEN COUNT ( * ) + 74 THEN NULL ELSE - 76 END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL + 23 + + 7 + ( + COUNT( * ) ) col1
----
31

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + 23 + + 7 + ( + COUNT ( * ) ) col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8337
SELECT DISTINCT + 50 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT + 50 / 59
----
0

query I rowsort
SELECT - ( - - 35 ) * 81
----
-2835

query I rowsort
SELECT ALL + 32 * + 18
----
576

query I rowsort
SELECT DISTINCT NULLIF ( - 27, 85 )
----
-27

query II rowsort
SELECT ALL - 60 + + - ( - 85 ) + 73 * 66 AS col1, 24 - - - 63 - - 64
----
4843
25

query I rowsort
SELECT - 60 * 0
----
0

query I rowsort
SELECT - ( 52 ) * - + 87 AS col0
----
4524

onlyif mysql # aggregate syntax: 
query II rowsort label-8344
SELECT - MAX( - 55 ) AS col0, 17 col0
----
55
17

skipif mysql # not compatible
query II rowsort label-8344
SELECT - MAX ( - 55 ) AS col0, 17 col0
----
55
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8345
SELECT - - COUNT( + ( + - 9 ) ) DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8345
SELECT - - COUNT ( + ( + - 9 ) ) / + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + - 60 + 40 * - 82 AS col1
----
-3340

query I rowsort
SELECT ALL - + 90 - + + 55 + 31 * - - 59 + + 38 * 74 AS col1
----
4496

query I rowsort
SELECT DISTINCT + + 27 - 38 col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8349
SELECT DISTINCT + 7 DIV - 44 - 90
----
-90

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT + 7 / - 44 - 90
----
-90

query I rowsort
SELECT DISTINCT + - 47 col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8351
SELECT ALL + CAST( + 1 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL + CAST ( + 1 AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8352
SELECT - CAST( NULL AS SIGNED ) * + - ( + 35 ) - CAST( - + 12 AS SIGNED ) - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT - CAST ( NULL AS INTEGER ) * + - ( + 35 ) - CAST ( - + 12 AS INTEGER ) - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL 87 * - + COUNT( * ) col0
----
-87

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL 87 * - + COUNT ( * ) col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT - COUNT( * ) * + - 56 / + COUNT( + + 76 ) - 30 * + COUNT( - 30 ) * + CAST( NULL AS SIGNED ) - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8354
SELECT - COUNT ( * ) * + - 56 / + COUNT ( + + 76 ) - 30 * + COUNT ( - 30 ) * + CAST ( NULL AS INTEGER ) - 5
----
NULL

query I rowsort
SELECT + - 58 * - - 45
----
-2610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8356
SELECT + ( ( 53 ) ) * - 48 * + COALESCE ( 76, - - 99 - 57, + 9 DIV - 82 ) - MAX( + 68 ) * + 69 AS col1
----
-198036

skipif mysql # not compatible
query I rowsort label-8356
SELECT + ( ( 53 ) ) * - 48 * + COALESCE ( 76, - - 99 - 57, + 9 / - 82 ) - MAX ( + 68 ) * + 69 AS col1
----
-198036

query I rowsort
SELECT - CASE - 66 WHEN + + 32 * + - 83 - + 10 + + 50 THEN NULL WHEN + - 34 THEN 99 WHEN + 48 THEN NULL WHEN + 52 THEN NULL ELSE 72 * 12 END AS col0
----
-864

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8358
SELECT ALL - 19 * - MIN( - 95 ) AS col2, + 32 + + COUNT( DISTINCT - + 24 ) + + COUNT( * ) + - 94 DIV - 73 AS col0
----
-1805
35

skipif mysql # not compatible
query II rowsort label-8358
SELECT ALL - 19 * - MIN ( - 95 ) AS col2, + 32 + + COUNT ( DISTINCT - + 24 ) + + COUNT ( * ) + - 94 / - 73 AS col0
----
-1805
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8359
SELECT ALL + COUNT( * ) * NULLIF ( - 47, 7 ) * + 86 AS col0, ( NULLIF ( COUNT( * ), + 10 + 85 * + 62 ) )
----
-4042
1

skipif mysql # not compatible
query II rowsort label-8359
SELECT ALL + COUNT ( * ) * NULLIF ( - 47, 7 ) * + 86 AS col0, ( NULLIF ( COUNT ( * ), + 10 + 85 * + 62 ) )
----
-4042
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8360
SELECT + 93 DIV - - 12 AS col0, - 49 * - ( - - 11 ) * 63 + MIN( ALL 21 )
----
7
33978

skipif mysql # not compatible
query II rowsort label-8360
SELECT + 93 / - - 12 AS col0, - 49 * - ( - - 11 ) * 63 + MIN ( ALL 21 )
----
7
33978

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT CASE 75 WHEN + 53 + + - 64 THEN NULL WHEN + 45 THEN - 23 + + COUNT( * ) * + 37 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT CASE 75 WHEN + 53 + + - 64 THEN NULL WHEN + 45 THEN - 23 + + COUNT ( * ) * + 37 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8362
SELECT ALL + - NULLIF ( + CAST( NULL AS SIGNED ), - 61 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + - NULLIF ( + CAST ( NULL AS INTEGER ), - 61 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT + 30 * - + COUNT( 41 ) - - - MIN( DISTINCT 89 )
----
-119

skipif mysql # not compatible
query I rowsort label-8363
SELECT + 30 * - + COUNT ( 41 ) - - - MIN ( DISTINCT 89 )
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT + 81 DIV 2 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8364
SELECT + 81 / 2 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8365
SELECT DISTINCT CASE - + 8 WHEN + + MIN( - + 59 ) + + CAST( NULL AS DECIMAL ) THEN NULL WHEN 36 * 90 + - COUNT( * ) * + CAST( 37 AS SIGNED ) THEN 13 - COALESCE ( - 37, + 59 * + 92 ) END * COUNT( * ) + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT CASE - + 8 WHEN + + MIN ( - + 59 ) + + CAST ( NULL AS REAL ) THEN NULL WHEN 36 * 90 + - COUNT ( * ) * + CAST ( 37 AS INTEGER ) THEN 13 - COALESCE ( - 37, + 59 * + 92 ) END * COUNT ( * ) + 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8366
SELECT CASE + + 99 WHEN - - 95 * + - 81 * 78 * + 95 - + 23 - - + 11 + 60 THEN NULL ELSE - CAST( + COUNT( - CAST( 17 AS SIGNED ) ) AS SIGNED ) + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8366
SELECT CASE + + 99 WHEN - - 95 * + - 81 * 78 * + 95 - + 23 - - + 11 + 60 THEN NULL ELSE - CAST ( + COUNT ( - CAST ( 17 AS INTEGER ) ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 63 * - 21 AS col0
----
-1323

query II rowsort
SELECT ALL 43 * + 6 + + 75 AS col0, ( + + 63 ) AS col2
----
333
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT 36 * - - 59 + + COUNT( * ) + - 29
----
2096

skipif mysql # not compatible
query I rowsort label-8369
SELECT 36 * - - 59 + + COUNT ( * ) + - 29
----
2096

query I rowsort
SELECT - ( + + 22 ) AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8371
SELECT ALL COUNT( * ) * - - AVG ( - 43 ) + - ( - ( - ( + COUNT( * ) ) ) ) * + 27 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL COUNT ( * ) * - - AVG ( - 43 ) + - ( - ( - ( + COUNT ( * ) ) ) ) * + 27 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT ALL - 36 * - 18 + + 17 + - 82 + + 85 + - - 14 - + COALESCE ( + CAST( NULL AS SIGNED ), + 74 * - 61, - 15 ) AS col2
----
5196

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL - 36 * - 18 + + 17 + - 82 + + 85 + - - 14 - + COALESCE ( + CAST ( NULL AS INTEGER ), + 74 * - 61, - 15 ) AS col2
----
5196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8373
SELECT ALL + MIN( DISTINCT - 36 ) * + ( - COALESCE ( - - 51, - 47 DIV + 37, 88 ) ) * + CAST( - 36 + - 93 AS SIGNED ) + 79
----
-236765

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + MIN ( DISTINCT - 36 ) * + ( - COALESCE ( - - 51, - 47 / + 37, 88 ) ) * + CAST ( - 36 + - 93 AS INTEGER ) + 79
----
-236765

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT MIN( DISTINCT + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-8374
SELECT MIN ( DISTINCT + 84 )
----
84

query I rowsort
SELECT ALL 85 * - 39
----
-3315

query I rowsort
SELECT DISTINCT 92 * - 25 * + 77 + - 4
----
-177104

query II rowsort
SELECT - 55 + + ( + + 50 ) AS col2, - CASE WHEN - 0 IS NOT NULL THEN - 43 END + + - ( 24 )
----
-5
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT 20 * ( - - COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT 20 * ( - - COUNT ( * ) )
----
20

query I rowsort
SELECT ALL 79 + 89 * - + 8
----
-633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT DISTINCT CASE - - 85 WHEN - 91 + + 40 + + 67 * - - COALESCE ( COUNT( * ), - NULLIF ( ( 85 ), - 29 * SUM( DISTINCT + 92 ) ) * 17, 62 + - COUNT( DISTINCT - 6 ) ) THEN NULL WHEN 26 + CAST( NULL AS SIGNED ) THEN NULL ELSE + ( + 28 ) END AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT CASE - - 85 WHEN - 91 + + 40 + + 67 * - - COALESCE ( COUNT ( * ), - NULLIF ( ( 85 ), - 29 * SUM ( DISTINCT + 92 ) ) * 17, 62 + - COUNT ( DISTINCT - 6 ) ) THEN NULL WHEN 26 + CAST ( NULL AS INTEGER ) THEN NULL ELSE + ( + 28 ) END AS col2
----
28

query I rowsort
SELECT + 37 + - 26 AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-8382
SELECT - COUNT( * ), - 40 - 78 AS col1
----
-1
-118

skipif mysql # not compatible
query II rowsort label-8382
SELECT - COUNT ( * ), - 40 - 78 AS col1
----
-1
-118

query I rowsort
SELECT ALL ( 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT - 13 + ( - COUNT( * ) ) * + + ( + COUNT( * ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8384
SELECT - 13 + ( - COUNT ( * ) ) * + + ( + COUNT ( * ) ) AS col2
----
-14

query I rowsort
SELECT - 61 - + 77 AS col0
----
-138

query I rowsort
SELECT DISTINCT NULLIF ( 85, - 59 ) AS col0
----
85

query II rowsort
SELECT - 72, + 87 AS col0
----
-72
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8388
SELECT - - COUNT( * ), CAST( - 33 AS SIGNED ) AS col1
----
1
-33

skipif mysql # not compatible
query II rowsort label-8388
SELECT - - COUNT ( * ), CAST ( - 33 AS INTEGER ) AS col1
----
1
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT - - 67 + + SUM( DISTINCT - + 16 ) + + + ( - - 36 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-8389
SELECT - - 67 + + SUM ( DISTINCT - + 16 ) + + + ( - - 36 ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT - 32 * + ( + CAST( + 52 AS SIGNED ) ) col2
----
-1664

skipif mysql # not compatible
query I rowsort label-8390
SELECT - 32 * + ( + CAST ( + 52 AS INTEGER ) ) col2
----
-1664

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT - + SUM( 47 ) + - 66 AS col1, + 6 * - 47
----
-113
-282

skipif mysql # not compatible
query II rowsort label-8391
SELECT - + SUM ( 47 ) + - 66 AS col1, + 6 * - 47
----
-113
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT + + 87 DIV + 84 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8392
SELECT + + 87 / + 84 AS col1
----
1

query I rowsort
SELECT DISTINCT + - 81 AS col1
----
-81

query I rowsort
SELECT - - 18 + + 97
----
115

query II rowsort
SELECT ALL - COALESCE ( + 82, 84 * - - 39, + + 35 + + - 25 ) AS col1, - 63 AS col1
----
-82
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8396
SELECT + MAX( DISTINCT CAST( - 57 AS SIGNED ) ) * + 98 + + - 9 + + 38 * + 21 * - + 87 + + 51 * - COUNT( * )
----
-75072

skipif mysql # not compatible
query I rowsort label-8396
SELECT + MAX ( DISTINCT CAST ( - 57 AS INTEGER ) ) * + 98 + + - 9 + + 38 * + 21 * - + 87 + + 51 * - COUNT ( * )
----
-75072

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT DISTINCT + 79 * - SUM( DISTINCT - + 61 ) * + 83 + - MIN( + 63 )
----
399914

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT + 79 * - SUM ( DISTINCT - + 61 ) * + 83 + - MIN ( + 63 )
----
399914

query I rowsort
SELECT ALL - - ( ( + 84 ) ) + + 92
----
176

query I rowsort
SELECT DISTINCT + 30 + - 8 col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT CAST( + 50 AS SIGNED ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8400
SELECT CAST ( + 50 AS INTEGER ) AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8401
SELECT ALL + + CAST( - 60 AS SIGNED ) + + 52, + 4 AS col1, 62 AS col0
----
-8
4
62

skipif mysql # not compatible
query III rowsort label-8401
SELECT ALL + + CAST ( - 60 AS INTEGER ) + + 52, + 4 AS col1, 62 AS col0
----
-8
4
62

query I rowsort
SELECT 40 * - 77 + + 61
----
-3019

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT DISTINCT COUNT( * ) + ( 61 )
----
62

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT COUNT ( * ) + ( 61 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8404
SELECT DISTINCT + 50 * + 33 AS col0, 2 - ( 81 ) + + 86 + 45 * + CAST( NULL AS SIGNED ) + + 22 AS col1
----
1650
NULL

skipif mysql # not compatible
query II rowsort label-8404
SELECT DISTINCT + 50 * + 33 AS col0, 2 - ( 81 ) + + 86 + 45 * + CAST ( NULL AS INTEGER ) + + 22 AS col1
----
1650
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT ( - + 71 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT ( - + 71 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8406
SELECT ALL 85 * + 70 DIV + - COUNT( * )
----
-5950

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL 85 * + 70 / + - COUNT ( * )
----
-5950

query I rowsort
SELECT DISTINCT 79 + 70 - 21 * 6
----
23

query I rowsort
SELECT ALL 38 - 84 AS col2
----
-46

query I rowsort
SELECT 79 * - 78 AS col0
----
-6162

query I rowsort
SELECT + 81 * + + 80 - 0
----
6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8411
SELECT 98 - - ( NULLIF ( - + 17, COUNT( * ) / + ( - + 50 ) + - CAST( + 63 AS SIGNED ) ) ) * COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8411
SELECT 98 - - ( NULLIF ( - + 17, COUNT ( * ) / + ( - + 50 ) + - CAST ( + 63 AS INTEGER ) ) ) * COUNT ( * ) AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8412
SELECT ALL 2 DIV COALESCE ( - 50, + - COALESCE ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ), - - ( - 23 ) ), - + CAST( NULL AS SIGNED ) + 28 ) * - 10
----
0

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL 2 / COALESCE ( - 50, + - COALESCE ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), - - ( - 23 ) ), - + CAST ( NULL AS INTEGER ) + 28 ) * - 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL MIN( - 87 ) - + 10
----
-97

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL MIN ( - 87 ) - + 10
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL - - 52 - - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - - 52 - - COUNT ( * )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8415
SELECT DISTINCT + - AVG ( ALL 37 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT + - AVG ( ALL 37 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8416
SELECT DISTINCT 24 * MIN( 7 ) - + 48, COUNT( * ) - + - 17 col1
----
120
18

skipif mysql # not compatible
query II rowsort label-8416
SELECT DISTINCT 24 * MIN ( 7 ) - + 48, COUNT ( * ) - + - 17 col1
----
120
18

query I rowsort
SELECT 93 - + - 22
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT + COUNT( * ) * - COALESCE ( - 90, - COUNT( * ) * 47, - COALESCE ( - - 37, - COUNT( * ) * 21 ) )
----
90

skipif mysql # not compatible
query I rowsort label-8418
SELECT + COUNT ( * ) * - COALESCE ( - 90, - COUNT ( * ) * 47, - COALESCE ( - - 37, - COUNT ( * ) * 21 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL + COUNT( * ) * 62 * + + 88
----
5456

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL + COUNT ( * ) * 62 * + + 88
----
5456

query I rowsort
SELECT COALESCE ( + + 73, COALESCE ( + 36, - 85 + 59 ) )
----
73

query I rowsort
SELECT ( 42 ) * 55 col2
----
2310

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT 3 * 40 DIV - 43 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8422
SELECT 3 * 40 / - 43 AS col2
----
-2

query I rowsort
SELECT ALL NULLIF ( + 81, - 62 ) * + - 72
----
-5832

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT DISTINCT + 19 + - 6 DIV - 91 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT + 19 + - 6 / - 91 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8425
SELECT ALL CASE - + CASE 56 WHEN - 96 - - ( + - 28 ) THEN + + ( + + 95 ) ELSE 66 END WHEN SUM( DISTINCT CAST( NULL AS SIGNED ) ) THEN ( ( 34 ) ) WHEN + MIN( - ( 22 ) ) + + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL CASE - + CASE 56 WHEN - 96 - - ( + - 28 ) THEN + + ( + + 95 ) ELSE 66 END WHEN SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN ( ( 34 ) ) WHEN + MIN ( - ( 22 ) ) + + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT 95 DIV + + 78 + + + 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8426
SELECT 95 / + + 78 + + + 2 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT + ( + NULLIF ( + 17, + + 75 * - 13 * - MIN( + 15 ) / + + 9 ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8427
SELECT + ( + NULLIF ( + 17, + + 75 * - 13 * - MIN ( + 15 ) / + + 9 ) ) AS col0
----
17

query I rowsort
SELECT DISTINCT - 70 * 62 * - 96 + - 28 AS col0
----
416612

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT - - COUNT( * ) + ( - 37 )
----
-36

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT - - COUNT ( * ) + ( - 37 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8430
SELECT ALL + - 42 + + 41, 85 DIV + ( + MIN( + 29 ) ) + + 65 col1, - + 62 AS col0
----
-1
67
-62

skipif mysql # not compatible
query III rowsort label-8430
SELECT ALL + - 42 + + 41, 85 / + ( + MIN ( + 29 ) ) + + 65 col1, - + 62 AS col0
----
-1
67
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8431
SELECT 75 DIV COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-8431
SELECT 75 / COUNT ( * )
----
75

query I rowsort
SELECT - 42 * 16 col1
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8433
SELECT + MAX( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ( + 34 ) * + 99 + + + 19 * + 82 * 86 AS col2
----
137354

query I rowsort
SELECT ALL + 63 * 49 AS col0
----
3087

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL - 8 + + - 26 + - - COUNT( ( - 52 ) ) * 54
----
20

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - 8 + + - 26 + - - COUNT ( ( - 52 ) ) * 54
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT DISTINCT + 81 * + + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT + 81 * + + COUNT ( * )
----
81

query I rowsort
SELECT 73 + - 41 + 40 AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8439
SELECT ALL + NULLIF ( - SUM( 61 ), - COALESCE ( 89, 85, + 22 ) ) + + 62 + 60 DIV 40 + - 17 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL + NULLIF ( - SUM ( 61 ), - COALESCE ( 89, 85, + 22 ) ) + + 62 + 60 / 40 + - 17 AS col1
----
-15

query I rowsort
SELECT ALL + 63 * - - 93 * + + 38
----
222642

query I rowsort
SELECT ALL - 9 + 71 AS col1
----
62

query II rowsort
SELECT 38, + 74 AS col1
----
38
74

query I rowsort
SELECT ALL - ( + + 40 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT - 91 - + + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT - 91 - + + COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT ALL - 73 - 94 - - - 97 DIV ( - SUM( ALL + 28 ) )
----
-164

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - 73 - 94 - - - 97 / ( - SUM ( ALL + 28 ) )
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL - CASE - - ( + - 81 ) WHEN + - NULLIF ( - - 61, 8 * 83 * - + 72 - - + COUNT( * ) + - 80 * 46 ) * 79 THEN 58 + - CASE 89 + 78 WHEN + 4 + 23 THEN - 46 + - 43 WHEN - 22 THEN NULL END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL - CASE - - ( + - 81 ) WHEN + - NULLIF ( - - 61, 8 * 83 * - + 72 - - + COUNT ( * ) + - 80 * 46 ) * 79 THEN 58 + - CASE 89 + 78 WHEN + 4 + 23 THEN - 46 + - 43 WHEN - 22 THEN NULL END ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 88 + - 90
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT 24 * + COUNT( * ) * - COALESCE ( 23, - 11 ) AS col2
----
-552

skipif mysql # not compatible
query I rowsort label-8448
SELECT 24 * + COUNT ( * ) * - COALESCE ( 23, - 11 ) AS col2
----
-552

query I rowsort
SELECT ALL 32 * + 9 AS col0
----
288

query I rowsort
SELECT + 15 * + ( + + 19 ) + - + 78 + - 67
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL + 74 - ( - SUM( DISTINCT - 67 ) ) + - + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL + 74 - ( - SUM ( DISTINCT - 67 ) ) + - + COUNT ( * )
----
6

query I rowsort
SELECT DISTINCT - 19 * - 0
----
0

query I rowsort
SELECT ALL 11 col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8454
SELECT DISTINCT 31 * - SUM( - - ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT 31 * - SUM ( - - ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT ( + 68 ) + - 25 * + 37 AS col0
----
-857

query I rowsort
SELECT ALL ( + - 25 ) col0
----
-25

query I rowsort
SELECT 49 * - - 51 AS col2
----
2499

query II rowsort
SELECT - COALESCE ( - + 79, + + 38 * - 75 ) * - 93 AS col1, + 38
----
-7347
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8459
SELECT - 84 DIV - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8459
SELECT - 84 / - COUNT ( * ) AS col1
----
84

query I rowsort
SELECT ALL 54 / - - CASE + + 85 WHEN - NULLIF ( + ( - 1 ), + - 81 ) * 41 + + + 96 THEN - + 59 WHEN + 46 + 57 * - 70 THEN NULL END
----
NULL

query I rowsort
SELECT 72 + - - 48 col1
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-8462
SELECT DISTINCT + 54 DIV + 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT + 54 / + 34 AS col1
----
1

query II rowsort
SELECT DISTINCT 35 AS col2, 93
----
35
93

query I rowsort
SELECT ALL + 21 + + 35 AS col1
----
56

query II rowsort
SELECT DISTINCT 25 + - 18 * + ( 83 ) + - 28 AS col2, + 3 AS col2
----
-1497
3

query I rowsort
SELECT ALL - 41 + ( + + 58 ) + - 18
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT + 73 + - MIN( DISTINCT + - NULLIF ( 23, - 39 ) ) + - 82 * - 11
----
998

skipif mysql # not compatible
query I rowsort label-8467
SELECT + 73 + - MIN ( DISTINCT + - NULLIF ( 23, - 39 ) ) + - 82 * - 11
----
998

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT ALL COUNT( * ) + + + 12 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL COUNT ( * ) + + + 12 AS col1
----
13

query I rowsort
SELECT + ( + 46 ) + - + 15 + + 45 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8470
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( * ) + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - 91
----
NULL

query II rowsort
SELECT - 0 + 68 + - + 50 AS col0, 26 - + + 67 col1
----
18
-41

query I rowsort
SELECT ALL 70 + + 1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8473
SELECT + 39 + + CASE CAST( - 83 AS SIGNED ) WHEN 1 * - 42 * 83 THEN NULL WHEN - 79 THEN + - 15 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT + 39 + + CASE CAST ( - 83 AS INTEGER ) WHEN 1 * - 42 * 83 THEN NULL WHEN - 79 THEN + - 15 END AS col0
----
NULL

query I rowsort
SELECT - + 69 * 93 AS col1
----
-6417

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT + + 92 * + - ( - + COUNT( * ) ) + - + 43
----
49

skipif mysql # not compatible
query I rowsort label-8475
SELECT + + 92 * + - ( - + COUNT ( * ) ) + - + 43
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8476
SELECT DISTINCT + - 27, CASE - + 87 WHEN - 13 + + 98 - - ( COALESCE ( 43, + + 56 + CAST( NULL AS SIGNED ) ) ) THEN COALESCE ( + COALESCE ( 67, 5 ), 68 ) END AS col0
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-8476
SELECT DISTINCT + - 27, CASE - + 87 WHEN - 13 + + 98 - - ( COALESCE ( 43, + + 56 + CAST ( NULL AS INTEGER ) ) ) THEN COALESCE ( + COALESCE ( 67, 5 ), 68 ) END AS col0
----
-27
NULL

query I rowsort
SELECT ALL 74 * - - 27 + - 70
----
1928

query I rowsort
SELECT + 4 * + 3 AS col0
----
12

query I rowsort
SELECT DISTINCT + ( - 84 )
----
-84

query I rowsort
SELECT + COALESCE ( 75, + - 44 ) AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT ALL 11 * + ( - 44 ) - ( - + CAST( NULL AS SIGNED ) ) - - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL 11 * + ( - 44 ) - ( - + CAST ( NULL AS INTEGER ) ) - - 24 AS col1
----
NULL

query I rowsort
SELECT + 68 * - 45
----
-3060

query I rowsort
SELECT - 74 * 12
----
-888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8484
SELECT + ( + CASE - 81 WHEN - COUNT( * ) - 27 THEN NULL ELSE + 78 DIV + 36 + - 92 + + 9 END )
----
-81

skipif mysql # not compatible
query I rowsort label-8484
SELECT + ( + CASE - 81 WHEN - COUNT ( * ) - 27 THEN NULL ELSE + 78 / + 36 + - 92 + + 9 END )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8485
SELECT COALESCE ( 81, - CASE WHEN 46 NOT BETWEEN + + COUNT( * ) + - 11 + - - 76 AND - COALESCE ( - 41, - 81, - COUNT( * ), 60 DIV - 68 ) THEN - NULLIF ( 33, 77 + 73 * + 49 ) DIV + 12 END, 33, - 1 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-8485
SELECT COALESCE ( 81, - CASE WHEN 46 NOT BETWEEN + + COUNT ( * ) + - 11 + - - 76 AND - COALESCE ( - 41, - 81, - COUNT ( * ), 60 / - 68 ) THEN - NULLIF ( 33, 77 + 73 * + 49 ) / + 12 END, 33, - 1 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL + ( + + NULLIF ( + + 14, + COUNT( * ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + ( + + NULLIF ( + + 14, + COUNT ( * ) ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL - 78 * - MAX( + 71 ) AS col2
----
5538

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL - 78 * - MAX ( + 71 ) AS col2
----
5538

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8488
SELECT - COUNT( * ) DIV + 53 AS col0, - NULLIF ( - SUM( 78 ), 99 )
----
0
78

skipif mysql # not compatible
query II rowsort label-8488
SELECT - COUNT ( * ) / + 53 AS col0, - NULLIF ( - SUM ( 78 ), 99 )
----
0
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8489
SELECT - 26 DIV - 20
----
1

skipif mysql # not compatible
query I rowsort label-8489
SELECT - 26 / - 20
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT COUNT( * ) * - + COUNT( * ) + + + CASE + - 54 WHEN - - 60 * - 57 * + - COALESCE ( + 7, + COALESCE ( - 46, - 10 / - 72 - + 69, + 1 ) * + 79 ) * + 39 THEN MIN( ALL 73 ) END / + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT COUNT ( * ) * - + COUNT ( * ) + + + CASE + - 54 WHEN - - 60 * - 57 * + - COALESCE ( + 7, + COALESCE ( - 46, - 10 / - 72 - + 69, + 1 ) * + 79 ) * + 39 THEN MIN ( ALL 73 ) END / + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT COALESCE ( + + ( + 89 ), + + COUNT( * ) )
----
89

skipif mysql # not compatible
query I rowsort label-8491
SELECT COALESCE ( + + ( + 89 ), + + COUNT ( * ) )
----
89

query I rowsort
SELECT ALL 54 * - 86 - - 46 + + 86 + + 5 AS col2
----
-4507

query I rowsort
SELECT ALL - 33 * - 86 AS col0
----
2838

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL + CASE - + 42 WHEN - 1 + + ( - 50 ) + - + COUNT( * ) - 16 + - 82 * 78 * - - 39 * - 53 * 85 THEN + 15 * - 93 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + CASE - + 42 WHEN - 1 + + ( - 50 ) + - + COUNT ( * ) - 16 + - 82 * 78 * - - 39 * - 53 * 85 THEN + 15 * - 93 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 82, 90 col0
----
82
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL - COUNT( * ) * + ( + ( + + 15 ) ) * - 66
----
990

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - COUNT ( * ) * + ( + ( + + 15 ) ) * - 66
----
990

query I rowsort
SELECT 33 * 69 + - 2
----
2275

query II rowsort
SELECT DISTINCT + 65 AS col1, + 39 AS col1
----
65
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL + CASE - COUNT( * ) WHEN AVG ( ALL - 20 ) THEN + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + CASE - COUNT ( * ) WHEN AVG ( ALL - 20 ) THEN + 86 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8500
SELECT - 90 AS col2, - 19 * 53 + 9 + + CAST( NULL AS SIGNED ) + + + 2
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-8500
SELECT - 90 AS col2, - 19 * 53 + 9 + + CAST ( NULL AS INTEGER ) + + + 2
----
-90
NULL

query II rowsort
SELECT - 12 col2, ( - 49 ) - ( + + 13 ) AS col0
----
-12
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8502
SELECT + 55 * + - CAST( + 58 AS SIGNED ) * + 23 + + + CAST( - 96 AS SIGNED ) * + 0 AS col0, 6 - + - 44 + + + COUNT( * ) AS col2
----
-73370
51

skipif mysql # not compatible
query II rowsort label-8502
SELECT + 55 * + - CAST ( + 58 AS INTEGER ) * + 23 + + + CAST ( - 96 AS INTEGER ) * + 0 AS col0, 6 - + - 44 + + + COUNT ( * ) AS col2
----
-73370
51

query I rowsort
SELECT ALL - 86 + - 36
----
-122

query I rowsort
SELECT - 99 - + 28
----
-127

query I rowsort
SELECT - 12 - 35 * - + 96 AS col1
----
3348

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT ALL - - 63 + - SUM( - ( - - 36 ) ) col1
----
99

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL - - 63 + - SUM ( - ( - - 36 ) ) col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT - + MIN( DISTINCT + - 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8507
SELECT - + MIN ( DISTINCT + - 49 ) AS col1
----
49

query II rowsort
SELECT + 57 * + 4, + 79 + 56 + + 60 AS col0
----
228
195

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8509
SELECT + 71 * + - CAST( NULL AS DECIMAL ) AS col1, - 66
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-8509
SELECT + 71 * + - CAST ( NULL AS REAL ) AS col1, - 66
----
NULL
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-8510
SELECT 58 AS col2, COUNT( * ) AS col0
----
58
1

skipif mysql # not compatible
query II rowsort label-8510
SELECT 58 AS col2, COUNT ( * ) AS col0
----
58
1

query I rowsort
SELECT DISTINCT + ( - - 5 )
----
5

query I rowsort
SELECT ALL + 9 + + 60 AS col0
----
69

query I rowsort
SELECT DISTINCT 72 + - 46
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8514
SELECT + COUNT( * ) AS col0, 50
----
1
50

skipif mysql # not compatible
query II rowsort label-8514
SELECT + COUNT ( * ) AS col0, 50
----
1
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8515
SELECT ALL + 49 DIV + - ( COUNT( + 39 ) ) + + CAST( 8 AS SIGNED ) + + 4 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL + 49 / + - ( COUNT ( + 39 ) ) + + CAST ( 8 AS INTEGER ) + + 4 AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8516
SELECT - ( - + COALESCE ( + 40, - + CAST( - 68 AS SIGNED ) ) )
----
40

skipif mysql # not compatible
query I rowsort label-8516
SELECT - ( - + COALESCE ( + 40, - + CAST ( - 68 AS INTEGER ) ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT DISTINCT 27 - + 82 * - - COUNT( + 17 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT 27 - + 82 * - - COUNT ( + 17 ) AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT + CAST( + 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8518
SELECT + CAST ( + 0 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8519
SELECT 82 * CAST( NULL AS DECIMAL ) + - - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT 82 * CAST ( NULL AS REAL ) + - - 23 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8520
SELECT CAST( + + 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-8520
SELECT CAST ( + + 75 AS INTEGER )
----
75

query I rowsort
SELECT DISTINCT 56 * + 63
----
3528

query I rowsort
SELECT + 63 * + 36 + - 44 * 76
----
-1076

query I rowsort
SELECT + 73 + + 93 * - - 39 AS col0
----
3700

query I rowsort
SELECT ( 41 )
----
41

query I rowsort
SELECT - 67 - 17 AS col2
----
-84

query I rowsort
SELECT + 37 + + ( 84 )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT 47 * 49 - + - 79 - + COUNT( * ) - + 34
----
2347

skipif mysql # not compatible
query I rowsort label-8527
SELECT 47 * 49 - + - 79 - + COUNT ( * ) - + 34
----
2347

onlyif mysql # aggregate syntax: 
query II rowsort label-8528
SELECT ALL - COUNT( * ) * 54 + + + 28, + 45 AS col2
----
-26
45

skipif mysql # not compatible
query II rowsort label-8528
SELECT ALL - COUNT ( * ) * 54 + + + 28, + 45 AS col2
----
-26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8529
SELECT - CAST( - - 55 AS SIGNED ) * + 4 * + + COUNT( * ) + - COUNT( * ) AS col0, 58 AS col2
----
-221
58

skipif mysql # not compatible
query II rowsort label-8529
SELECT - CAST ( - - 55 AS INTEGER ) * + 4 * + + COUNT ( * ) + - COUNT ( * ) AS col0, 58 AS col2
----
-221
58

query I rowsort
SELECT ALL 75 + 97 + - ( 60 ) + - 57 + - 86 * - - 55
----
-4675

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8531
SELECT ALL - + COALESCE ( - + 55, - + 14 * 97 * + 30 DIV - CAST( + 53 AS SIGNED ), - - 65 ) + 56 + + 26 * - 4
----
7

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL - + COALESCE ( - + 55, - + 14 * 97 * + 30 / - CAST ( + 53 AS INTEGER ), - - 65 ) + 56 + + 26 * - 4
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT - NULLIF ( - + 90, + 56 ) + MIN( + - COALESCE ( + 88, - 64 ) ) col0
----
2

skipif mysql # not compatible
query I rowsort label-8532
SELECT - NULLIF ( - + 90, + 56 ) + MIN ( + - COALESCE ( + 88, - 64 ) ) col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8533
SELECT - CASE + COUNT( - - 56 ) WHEN + COUNT( * ) THEN - 38 END AS col1, + 11
----
38
11

skipif mysql # not compatible
query II rowsort label-8533
SELECT - CASE + COUNT ( - - 56 ) WHEN + COUNT ( * ) THEN - 38 END AS col1, + 11
----
38
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT ALL - + 36 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL - + 36 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8535
SELECT 11 + - CASE CAST( NULL AS SIGNED ) WHEN - COUNT( * ) / - 57 - - 10 THEN 10 * 52 + - 59 / - 58 - + MAX( 5 ) + + 29 * 87 WHEN NULLIF ( + COUNT( * ), + 41 * + ( MAX( DISTINCT 46 ) ) ) / COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8535
SELECT 11 + - CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) / - 57 - - 10 THEN 10 * 52 + - 59 / - 58 - + MAX ( 5 ) + + 29 * 87 WHEN NULLIF ( + COUNT ( * ), + 41 * + ( MAX ( DISTINCT 46 ) ) ) / COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL ( 20 ) col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8537
SELECT CASE + 70 WHEN - 5 / - 16 * - 10 THEN NULL ELSE - + 4 END + - CASE - 98 WHEN + + ( + 20 ) + - COUNT( * ) + + 17 THEN NULLIF ( + 34, - CAST( 91 AS SIGNED ) * + 0 ) + 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT CASE + 70 WHEN - 5 / - 16 * - 10 THEN NULL ELSE - + 4 END + - CASE - 98 WHEN + + ( + 20 ) + - COUNT ( * ) + + 17 THEN NULLIF ( + 34, - CAST ( 91 AS INTEGER ) * + 0 ) + 24 END
----
NULL

query I rowsort
SELECT DISTINCT + 32 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8539
SELECT ALL + NULLIF ( + COUNT( * ), - 47 ) - + - CASE + + AVG ( 0 ) WHEN - + ( - COUNT( * ) ) THEN - COUNT( * ) * - + 56 WHEN - 14 THEN 68 * - 0 WHEN + 48 * CAST( 82 AS SIGNED ) THEN 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL + NULLIF ( + COUNT ( * ), - 47 ) - + - CASE + + AVG ( 0 ) WHEN - + ( - COUNT ( * ) ) THEN - COUNT ( * ) * - + 56 WHEN - 14 THEN 68 * - 0 WHEN + 48 * CAST ( 82 AS INTEGER ) THEN 1 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT DISTINCT + - 94 - + 3 + - 69 + - ( CASE + + 14 WHEN 39 THEN NULL WHEN - + COUNT( - - 26 ) + + - AVG ( + + 7 ) THEN NULL WHEN 35 * - COUNT( * ) THEN 71 + - 40 ELSE NULL END ) * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT + - 94 - + 3 + - 69 + - ( CASE + + 14 WHEN 39 THEN NULL WHEN - + COUNT ( - - 26 ) + + - AVG ( + + 7 ) THEN NULL WHEN 35 * - COUNT ( * ) THEN 71 + - 40 ELSE NULL END ) * - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT - 49 * + 63 * NULLIF ( + + 37, NULLIF ( + 56, + 38 / NULLIF ( - 56, - ( + + COUNT( * ) ) ) + CASE 63 WHEN - 75 / 97 THEN + COALESCE ( 53, - SUM( DISTINCT - 89 ) ) / - 86 WHEN 38 THEN NULL ELSE NULL END + 66 ) * - 83 ) + 7 * 74
----
-113701

skipif mysql # not compatible
query I rowsort label-8541
SELECT - 49 * + 63 * NULLIF ( + + 37, NULLIF ( + 56, + 38 / NULLIF ( - 56, - ( + + COUNT ( * ) ) ) + CASE 63 WHEN - 75 / 97 THEN + COALESCE ( 53, - SUM ( DISTINCT - 89 ) ) / - 86 WHEN 38 THEN NULL ELSE NULL END + 66 ) * - 83 ) + 7 * 74
----
-113701

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT 99 + + - 62 * 62 * + COUNT( * )
----
-3745

skipif mysql # not compatible
query I rowsort label-8542
SELECT 99 + + - 62 * 62 * + COUNT ( * )
----
-3745

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8543
SELECT NULLIF ( COUNT( * ), - ( - COALESCE ( - 11, - - ( - 93 ) + COUNT( * ) - - 2, COUNT( * ), - 27 ) ) * + 65 + ( - 99 ) ) + 39 DIV 29
----
2

skipif mysql # not compatible
query I rowsort label-8543
SELECT NULLIF ( COUNT ( * ), - ( - COALESCE ( - 11, - - ( - 93 ) + COUNT ( * ) - - 2, COUNT ( * ), - 27 ) ) * + 65 + ( - 99 ) ) + 39 / 29
----
2

query I rowsort
SELECT 18 + + - 82 + - 4 AS col1
----
-68

query I rowsort
SELECT 89 + - + 39
----
50

query I rowsort
SELECT 24 + - CASE + 81 WHEN - - 63 THEN - 61 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT COUNT( + 58 ) * + ( 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8547
SELECT COUNT ( + 58 ) * + ( 39 ) AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8548
SELECT DISTINCT + 69 DIV - 66 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT + 69 / - 66 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT DISTINCT ( + + 96 ) * + 29 * 12 * + CAST( NULL AS SIGNED ) * - 68 + + 88 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT ( + + 96 ) * + 29 * 12 * + CAST ( NULL AS INTEGER ) * - 68 + + 88 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT ( + 58 ) DIV 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8550
SELECT ( + 58 ) / 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL - SUM( - + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - SUM ( - + 95 )
----
95

query II rowsort
SELECT ALL - 59 AS col0, 65 * + 28
----
-59
1820

query I rowsort
SELECT 98 * 18 AS col1
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT COUNT( * ) + + - 51
----
-50

skipif mysql # not compatible
query I rowsort label-8554
SELECT COUNT ( * ) + + - 51
----
-50

query I rowsort
SELECT COALESCE ( + 62, + - 36 + - 88 ) * 59
----
3658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8556
SELECT DISTINCT SUM( - 3 ) + - 85 DIV - 5 + - COALESCE ( CAST( + 77 AS SIGNED ), - - COUNT( 43 ) * - 25, + MIN( 1 ) + + 43 DIV - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) + 89 * + ( + COUNT( * ) - + 69 * 23 )
----
-141217

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT SUM ( - 3 ) + - 85 / - 5 + - COALESCE ( CAST ( + 77 AS INTEGER ), - - COUNT ( 43 ) * - 25, + MIN ( 1 ) + + 43 / - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) + 89 * + ( + COUNT ( * ) - + 69 * 23 )
----
-141217

query I rowsort
SELECT ALL 25 + - 28 + - ( 55 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8558
SELECT ALL COALESCE ( - CAST( + 92 AS SIGNED ), 6, + 40 * + + 79 + - COUNT( * ) ) + + 52 * + 99 * + 88
----
452932

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL COALESCE ( - CAST ( + 92 AS INTEGER ), 6, + 40 * + + 79 + - COUNT ( * ) ) + + 52 * + 99 * + 88
----
452932

query II rowsort
SELECT + 64 AS col0, 34 - - 21 + + 18 * + - 37 AS col0
----
64
-611

query II rowsort
SELECT 33 AS col2, 75
----
33
75

query I rowsort
SELECT DISTINCT + 78 + - - 56
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8562
SELECT ALL + 3 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL + 3 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL - COUNT( * ) + 16
----
15

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL - COUNT ( * ) + 16
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ALL - + MAX( + ( - 57 ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL - + MAX ( + ( - 57 ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT COUNT( ( - 21 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8565
SELECT COUNT ( ( - 21 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT - 92 * + COUNT( * ) + - 59 + + 50 * + ( 96 )
----
4649

skipif mysql # not compatible
query I rowsort label-8566
SELECT - 92 * + COUNT ( * ) + - 59 + + 50 * + ( 96 )
----
4649

query I rowsort
SELECT + 30 * - 84 * - - 98 * + 33
----
-8149680

query I rowsort
SELECT + ( + 54 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8569
SELECT MAX( + - 32 ) + COUNT( * ) + + 46 DIV - - 8 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8569
SELECT MAX ( + - 32 ) + COUNT ( * ) + + 46 / - - 8 AS col1
----
-26

query I rowsort
SELECT ALL 9 * + 66
----
594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT - CAST( + 71 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-8571
SELECT - CAST ( + 71 AS INTEGER )
----
-71

query II rowsort
SELECT - 15, 40 AS col2
----
-15
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT ALL + - COUNT( * ) * + + 40 * 18 * 29
----
-20880

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL + - COUNT ( * ) * + + 40 * 18 * 29
----
-20880

query II rowsort
SELECT ALL - 75 AS col2, - 56
----
-75
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT ALL - + 21 DIV - 9
----
2

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL - + 21 / - 9
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 46 * + 97 AS col2
----
-4462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8578
SELECT + COALESCE ( + 93, ( + ( + 37 ) ) * - 61 + 51 DIV - COUNT( * ) - + 70 * + 65 - + - COUNT( * ) + SUM( + 58 ) DIV 28 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8578
SELECT + COALESCE ( + 93, ( + ( + 37 ) ) * - 61 + 51 / - COUNT ( * ) - + 70 * + 65 - + - COUNT ( * ) + SUM ( + 58 ) / 28 ) AS col2
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-8579
SELECT - 89, 31 DIV + - 43 AS col1
----
-89
0

skipif mysql # not compatible
query II rowsort label-8579
SELECT - 89, 31 / + - 43 AS col1
----
-89
0

query II rowsort
SELECT 79 - 85 AS col0, + 0
----
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT COUNT( * ) * + 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8581
SELECT COUNT ( * ) * + 15 AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT DISTINCT + 73 * - 21 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT + 73 * - 21 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8583
SELECT ALL + CASE - 64 WHEN - - ( 2 ) * - + 69 THEN + NULLIF ( + 63, - + 20 + + 56 + ( + 82 ) - + + NULLIF ( + CASE - 67 WHEN 11 THEN NULL WHEN + 91 * - 0 THEN - 39 + 12 END, - 29 ) / 32 ) + - 19 WHEN - COUNT( * ) + 91 THEN NULL WHEN 84 THEN + 56 * 79 - 48 END * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + CASE - 64 WHEN - - ( 2 ) * - + 69 THEN + NULLIF ( + 63, - + 20 + + 56 + ( + 82 ) - + + NULLIF ( + CASE - 67 WHEN 11 THEN NULL WHEN + 91 * - 0 THEN - 39 + 12 END, - 29 ) / 32 ) + - 19 WHEN - COUNT ( * ) + 91 THEN NULL WHEN 84 THEN + 56 * 79 - 48 END * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8584
SELECT ALL + MIN( DISTINCT + + ( - 50 ) ) + + MAX( ALL 1 ) + 43 DIV 65
----
-49

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL + MIN ( DISTINCT + + ( - 50 ) ) + + MAX ( ALL 1 ) + 43 / 65
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ALL COUNT( ALL - 42 ) + + 8 + + 77 * 10 AS col0
----
779

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL COUNT ( ALL - 42 ) + + 8 + + 77 * 10 AS col0
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT ALL - MIN( 48 ) * + 91 + 80 AS col1
----
-4288

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL - MIN ( 48 ) * + 91 + 80 AS col1
----
-4288

query I rowsort
SELECT 98 + + + 53
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT NULLIF ( + + 78, + 3 ) * 10 * CAST( NULL AS SIGNED ) + - 37 + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT NULLIF ( + + 78, + 3 ) * 10 * CAST ( NULL AS INTEGER ) + - 37 + + 70
----
NULL

query I rowsort
SELECT COALESCE ( 55, 32 )
----
55

query I rowsort
SELECT 56 * - + 6 + + 9 * 24 * + 40
----
8304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8591
SELECT CASE + - COUNT( * ) WHEN - + 35 * 0 + - 15 THEN + 19 * NULLIF ( CAST( + - COUNT( * ) AS SIGNED ), COALESCE ( 33, + - 82 + + - COALESCE ( + 62, + CAST( NULL AS SIGNED ) + 2, 86 + 39 * + 66, 18 * 34 ) * - COUNT( * ) ) + + 64 * + 50 ) / + 11 + MIN( + 38 + - 1 ) ELSE - 13 + 81 END AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8591
SELECT CASE + - COUNT ( * ) WHEN - + 35 * 0 + - 15 THEN + 19 * NULLIF ( CAST ( + - COUNT ( * ) AS INTEGER ), COALESCE ( 33, + - 82 + + - COALESCE ( + 62, + CAST ( NULL AS INTEGER ) + 2, 86 + 39 * + 66, 18 * 34 ) * - COUNT ( * ) ) + + 64 * + 50 ) / + 11 + MIN ( + 38 + - 1 ) ELSE - 13 + 81 END AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT ALL - CAST( + ( + + 53 ) AS SIGNED ) * + + 27 + + SUM( - 86 ) * + MAX( DISTINCT + - 58 ) + - + 0 - - 78 + - 26 * + COUNT( + + 87 ) * + 43 * 98
----
-105929

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL - CAST ( + ( + + 53 ) AS INTEGER ) * + + 27 + + SUM ( - 86 ) * + MAX ( DISTINCT + - 58 ) + - + 0 - - 78 + - 26 * + COUNT ( + + 87 ) * + 43 * 98
----
-105929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT - 10 * + 10 * - - 5 * + + CAST( NULL AS SIGNED ) + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT - 10 * + 10 * - - 5 * + + CAST ( NULL AS INTEGER ) + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT + MIN( - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-8594
SELECT + MIN ( - 75 )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8595
SELECT + 96 DIV + + 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8595
SELECT + 96 / + + 53 AS col0
----
1

query I rowsort
SELECT 84 * + 13 + - + 97 col0
----
995

query I rowsort
SELECT + 13 * 34
----
442

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8598
SELECT ALL 19 DIV - 83 AS col0, + 16 DIV - - CASE + + COUNT( * ) WHEN 6 * - - 13 * + 58 THEN + 8 WHEN 93 * + + ( NULLIF ( + 98, - + 96 ) ) + NULLIF ( 9, 98 ) THEN NULL END * + 77
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8598
SELECT ALL 19 / - 83 AS col0, + 16 / - - CASE + + COUNT ( * ) WHEN 6 * - - 13 * + 58 THEN + 8 WHEN 93 * + + ( NULLIF ( + 98, - + 96 ) ) + NULLIF ( 9, 98 ) THEN NULL END * + 77
----
0
NULL

query I rowsort
SELECT ALL + 69 * + 64 + 89
----
4505

query I rowsort
SELECT ALL + 42 * - 60 + + + 18 AS col2
----
-2502

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT + + COUNT( * ) * + - 53 * - 66 AS col1
----
3498

skipif mysql # not compatible
query I rowsort label-8601
SELECT + + COUNT ( * ) * + - 53 * - 66 AS col1
----
3498

onlyif mysql # DIV for integer division: 
query I rowsort label-8602
SELECT ALL - + 57 DIV ( 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL - + 57 / ( 81 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT + - MIN( DISTINCT + - ( - 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-8603
SELECT + - MIN ( DISTINCT + - ( - 59 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT - + COUNT( - - ( - 94 ) ) + - 45 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-8604
SELECT - + COUNT ( - - ( - 94 ) ) + - 45 AS col1
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8605
SELECT - 90 * - - 28 + 75 - 99 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT - 90 * - - 28 + 75 - 99 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + - 19 + 2
----
-17

query I rowsort
SELECT ALL 94 * + 87 - 29
----
8149

onlyif mysql # aggregate syntax: 
query II rowsort label-8608
SELECT - COUNT( DISTINCT 4 ), - 83 AS col0
----
-1
-83

skipif mysql # not compatible
query II rowsort label-8608
SELECT - COUNT ( DISTINCT 4 ), - 83 AS col0
----
-1
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8609
SELECT DISTINCT + MAX( ALL - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT + MAX ( ALL - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - 63 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT + + 40 * - 61 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT + + 40 * - 61 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL 64 - + 13 - + 79 + - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL 64 - + 13 - + 79 + - COUNT ( * )
----
-29

query I rowsort
SELECT + + 41 * + + ( 18 )
----
738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8613
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) col1, - 82 * + CAST( NULL AS DECIMAL ) * COUNT( + - 35 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8613
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) col1, - 82 * + CAST ( NULL AS REAL ) * COUNT ( + - 35 )
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT + NULLIF ( NULLIF ( + CAST( NULL AS SIGNED ), + 53 ), + + 52 + + 38 + - + COUNT( * ) / COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT + NULLIF ( NULLIF ( + CAST ( NULL AS INTEGER ), + 53 ), + + 52 + + 38 + - + COUNT ( * ) / COUNT ( * ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8615
SELECT + + 92 DIV 57 + + 67 + + COUNT( DISTINCT + 91 ), - 86 AS col1
----
69
-86

skipif mysql # not compatible
query II rowsort label-8615
SELECT + + 92 / 57 + + 67 + + COUNT ( DISTINCT + 91 ), - 86 AS col1
----
69
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8616
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT ALL 9 DIV + 97 * - - 4
----
0

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL 9 / + 97 * - - 4
----
0

query I rowsort
SELECT + CASE + + 74 WHEN + - 96 THEN - 23 WHEN + + 98 / 25 + 51 + + + 76 * + 21 THEN NULL END / + 24 + + 34 + 91 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8619
SELECT - 67 DIV - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-8619
SELECT - 67 / - COUNT ( * )
----
67

query I rowsort
SELECT + 21 + - 45 AS col1
----
-24

query I rowsort
SELECT DISTINCT 33 * 2 * 29 AS col1
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT ALL + ( + ( 30 ) ) * - + SUM( ALL ( 87 ) ) * 65 AS col1
----
-169650

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL + ( + ( 30 ) ) * - + SUM ( ALL ( 87 ) ) * 65 AS col1
----
-169650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8623
SELECT + CAST( COUNT( * ) AS SIGNED ) + - 6 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8623
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + - 6 AS col2
----
-5

query I rowsort
SELECT ALL 4 + + 98 AS col2
----
102

query I rowsort
SELECT + 74 + - 66 * - 74 * + 62 AS col0
----
302882

query I rowsort
SELECT ALL - ( - - 79 ) + + + 14 * - - 79
----
1027

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8627
SELECT - 91 + + 8 + - COUNT( * ) + ( - 49 ) + - 63 + 48 - - + 79 / - 47 * 62 * + - CAST( NULL AS SIGNED ) * + + ( AVG ( + COALESCE ( - + 90, COALESCE ( - 58, + 57 + 2 ) ) ) ) - 84 * ( - 93 ) * - COALESCE ( 57 / ( 30 ), 94 - 89 * 30 ) / SUM( - COALESCE ( ( + 41 ), - 31 + 59, + 34 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT - 91 + + 8 + - COUNT ( * ) + ( - 49 ) + - 63 + 48 - - + 79 / - 47 * 62 * + - CAST ( NULL AS INTEGER ) * + + ( AVG ( + COALESCE ( - + 90, COALESCE ( - 58, + 57 + 2 ) ) ) ) - 84 * ( - 93 ) * - COALESCE ( 57 / ( 30 ), 94 - 89 * 30 ) / SUM ( - COALESCE ( ( + 41 ), - 31 + 59, + 34 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 97 * 74
----
7178

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8629
SELECT - 68 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT - 68 + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - ( + - 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT - 44 + - + 69 - 59 - + + 57 * + CASE + 41 WHEN + ( + 19 ) THEN ( MIN( DISTINCT + 73 ) ) + - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT - 44 + - + 69 - 59 - + + 57 * + CASE + 41 WHEN + ( + 19 ) THEN ( MIN ( DISTINCT + 73 ) ) + - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8632
SELECT ALL - COUNT( * ) + 83 + + 35 DIV 70 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - COUNT ( * ) + 83 + + 35 / 70 AS col1
----
82

query I rowsort
SELECT - ( + - 65 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8634
SELECT - COUNT( * ) + + 19 + 56 + COALESCE ( - + 72, - - NULLIF ( 24, + - 22 / + 54 - ( + - COALESCE ( - 14, - 64 * + + ( 25 ) * + 53 ) ) * 70 ) ) - + NULLIF ( CAST( + 92 AS SIGNED ), 56 * CAST( SUM( DISTINCT 38 ) AS DECIMAL ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-8634
SELECT - COUNT ( * ) + + 19 + 56 + COALESCE ( - + 72, - - NULLIF ( 24, + - 22 / + 54 - ( + - COALESCE ( - 14, - 64 * + + ( 25 ) * + 53 ) ) * 70 ) ) - + NULLIF ( CAST ( + 92 AS INTEGER ), 56 * CAST ( SUM ( DISTINCT 38 ) AS REAL ) ) AS col0
----
-90

query I rowsort
SELECT ALL + 52 + + + 43 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT - COUNT( * ) + - + 75 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-8636
SELECT - COUNT ( * ) + - + 75 AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8637
SELECT ALL - CAST( NULL AS SIGNED ) * + 34 * + 45 * + + COUNT( 40 ), 9 * COUNT( * ) - + + CASE 24 WHEN - 10 * - COUNT( * ) * + 7 * - - 15 + - + 9 - + 99 - + 44 THEN + 82 WHEN MIN( 5 ) THEN NULL ELSE NULL END / - SUM( DISTINCT + 17 * 23 + - CAST( NULL AS SIGNED ) * 46 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8637
SELECT ALL - CAST ( NULL AS INTEGER ) * + 34 * + 45 * + + COUNT ( 40 ), 9 * COUNT ( * ) - + + CASE 24 WHEN - 10 * - COUNT ( * ) * + 7 * - - 15 + - + 9 - + 99 - + 44 THEN + 82 WHEN MIN ( 5 ) THEN NULL ELSE NULL END / - SUM ( DISTINCT + 17 * 23 + - CAST ( NULL AS INTEGER ) * 46 )
----
NULL
NULL

query I rowsort
SELECT - 84 * + 30 AS col2
----
-2520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8639
SELECT ALL + COUNT( * ) DIV - 71 * - - 19 + - + 4 - - + 91 DIV - 4 - - 38 + + 89 + ( - 55 )
----
46

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + COUNT ( * ) / - 71 * - - 19 + - + 4 - - + 91 / - 4 - - 38 + + 89 + ( - 55 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8640
SELECT CAST( NULL AS SIGNED ), 17 AS col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-8640
SELECT CAST ( NULL AS INTEGER ), 17 AS col1
----
NULL
17

query I rowsort
SELECT DISTINCT - 7 * 18 * - - 40 * - 19
----
95760

query I rowsort
SELECT DISTINCT - 98 * - + 20 col0
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ALL - COUNT( * ) * - 89
----
89

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL - COUNT ( * ) * - 89
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8644
SELECT DISTINCT - 75 * NULLIF ( + 56, + CAST( 37 AS SIGNED ) ) col0, 32
----
-4200
32

skipif mysql # not compatible
query II rowsort label-8644
SELECT DISTINCT - 75 * NULLIF ( + 56, + CAST ( 37 AS INTEGER ) ) col0, 32
----
-4200
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT ALL 42 DIV - 62 * - ( 52 ) - + 58 + - NULLIF ( + 82, + 65 + + 34 ) AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL 42 / - 62 * - ( 52 ) - + 58 + - NULLIF ( + 82, + 65 + + 34 ) AS col0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT - MAX( - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-8646
SELECT - MAX ( - 93 )
----
93

query I rowsort
SELECT ALL + 58 * 22 - + + 98 AS col1
----
1178

query I rowsort
SELECT + 21 * 74 col1
----
1554

onlyif mysql # aggregate syntax: 
query II rowsort label-8649
SELECT - + 45 + + COUNT( * ) + + 71 AS col1, ( 52 ) AS col1
----
27
52

skipif mysql # not compatible
query II rowsort label-8649
SELECT - + 45 + + COUNT ( * ) + + 71 AS col1, ( 52 ) AS col1
----
27
52

query I rowsort
SELECT ALL + + 48 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT 27 * - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT 27 * - COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT + COALESCE ( - 75, - MIN( - - 9 ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT + COALESCE ( - 75, - MIN ( - - 9 ) ) AS col1
----
-75

query II rowsort
SELECT 4 AS col1, + 10 - - 59
----
4
69

query I rowsort
SELECT - 68 * + 33 * 73 + - - 15 AS col0
----
-163797

onlyif mysql # aggregate syntax: 
query II rowsort label-8655
SELECT ALL - 84, 12 * + COUNT( - 92 ) AS col1
----
-84
12

skipif mysql # not compatible
query II rowsort label-8655
SELECT ALL - 84, 12 * + COUNT ( - 92 ) AS col1
----
-84
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - MAX( DISTINCT 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8656
SELECT - MAX ( DISTINCT 6 ) AS col2
----
-6

query I rowsort
SELECT - ( - 83 ) AS col0
----
83

query I rowsort
SELECT + + 38 + 68
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT + 98 * + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-8659
SELECT + 98 * + COUNT ( * )
----
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8660
SELECT ALL - 57 * - + 13 + MAX( DISTINCT + + 81 ) + - ( - - 61 ) + - CASE + 6 WHEN - 16 / 32 THEN NULL WHEN - 32 * + - 17 - + 1 * - 14 THEN + - 50 * + + CAST( NULL AS DECIMAL ) END + 28 * - 52 / 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - 57 * - + 13 + MAX ( DISTINCT + + 81 ) + - ( - - 61 ) + - CASE + 6 WHEN - 16 / 32 THEN NULL WHEN - 32 * + - 17 - + 1 * - 14 THEN + - 50 * + + CAST ( NULL AS REAL ) END + 28 * - 52 / 26
----
NULL

query I rowsort
SELECT DISTINCT - 74 * - 45 * + 37
----
123210

query I rowsort
SELECT - ( - COALESCE ( - 68, + 93 * 49 ) )
----
-68

query I rowsort
SELECT ALL 56 + 18
----
74

query II rowsort
SELECT 81 AS col0, + 44
----
81
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT DISTINCT 91 + + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT 91 + + COUNT ( * ) AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8666
SELECT ALL ( CASE + 63 WHEN - + 60 THEN NULL ELSE + 2 + COALESCE ( + + COUNT( * ), - ( - 20 ) DIV + 4 + + 83 ) + 17 * + 96 * 94 - ( 26 ) DIV 84 END ) + ( + 27 + 45 ) AS col1
----
153483

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL ( CASE + 63 WHEN - + 60 THEN NULL ELSE + 2 + COALESCE ( + + COUNT ( * ), - ( - 20 ) / + 4 + + 83 ) + 17 * + 96 * 94 - ( 26 ) / 84 END ) + ( + 27 + 45 ) AS col1
----
153483

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT ALL 9 DIV - 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL 9 / - 32 AS col0
----
0

query I rowsort
SELECT - ( + 12 )
----
-12

query I rowsort
SELECT 14 - + + 13
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT COUNT( * ) * - 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-8670
SELECT COUNT ( * ) * - 79 AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8671
SELECT ALL + 84 + + ( - + CASE - 70 WHEN + + ( + - 53 ) THEN + 74 + CAST( + 52 AS SIGNED ) END ) - + + 25 - - COUNT( * ) AS col2, 40 DIV 37
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8671
SELECT ALL + 84 + + ( - + CASE - 70 WHEN + + ( + - 53 ) THEN + 74 + CAST ( + 52 AS INTEGER ) END ) - + + 25 - - COUNT ( * ) AS col2, 40 / 37
----
NULL
1

query I rowsort
SELECT NULLIF ( + 38, - AVG ( 45 ) ) * 65
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT DISTINCT COUNT( * ) * + 79 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT COUNT ( * ) * + 79 AS col1
----
79

query I rowsort
SELECT ALL - 21 - - 49 AS col1
----
28

query I rowsort
SELECT ALL 84 * + 83 col0
----
6972

query I rowsort
SELECT DISTINCT 1 - - ( - 71 ) col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8677
SELECT COALESCE ( 87, + 31 * - COUNT( * ), + 33 DIV - 22 ) * - 73 + 69 + - - 34 * + + 22 AS col1
----
-5534

skipif mysql # not compatible
query I rowsort label-8677
SELECT COALESCE ( 87, + 31 * - COUNT ( * ), + 33 / - 22 ) * - 73 + 69 + - - 34 * + + 22 AS col1
----
-5534

query I rowsort
SELECT 32 + 55 col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT + NULLIF ( + COUNT( * ), + 54 / - + 9 ) * + 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-8679
SELECT + NULLIF ( + COUNT ( * ), + 54 / - + 9 ) * + 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-8680
SELECT + COUNT( * ) AS col2, 64 * + 25 + - 64 + 52 AS col1
----
1
1588

skipif mysql # not compatible
query II rowsort label-8680
SELECT + COUNT ( * ) AS col2, 64 * + 25 + - 64 + 52 AS col1
----
1
1588

query I rowsort
SELECT - 6 * - 42 + + 71 - + 12
----
311

query II rowsort
SELECT - ( - 27 ) col2, 92
----
27
92

query II rowsort
SELECT ALL - + 80 AS col1, + 89 AS col0
----
-80
89

query I rowsort
SELECT 91 * + 24 * + - 51 * - 42 + 45 + + - 74 AS col0
----
4678099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8685
SELECT 78 * + CAST( + 13 AS SIGNED ) * - ( - ( - COUNT( * ) ) ) + - + 74, COUNT( * ) * NULLIF ( 86, + - 94 * - 13 ) AS col0
----
-1088
86

skipif mysql # not compatible
query II rowsort label-8685
SELECT 78 * + CAST ( + 13 AS INTEGER ) * - ( - ( - COUNT ( * ) ) ) + - + 74, COUNT ( * ) * NULLIF ( 86, + - 94 * - 13 ) AS col0
----
-1088
86

query II rowsort
SELECT ALL - 68, 47 col1
----
-68
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8687
SELECT ALL - 30 * - COUNT( * ) AS col2, 41 + + CAST( NULL AS SIGNED )
----
30
NULL

skipif mysql # not compatible
query II rowsort label-8687
SELECT ALL - 30 * - COUNT ( * ) AS col2, 41 + + CAST ( NULL AS INTEGER )
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT - - 85 * + COUNT( * ) * + 45
----
3825

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT - - 85 * + COUNT ( * ) * + 45
----
3825

query I rowsort
SELECT ALL - 70 * + 46 AS col2
----
-3220

query I rowsort
SELECT + ( + ( - + NULLIF ( - 49, - - 15 ) ) ) * + - 26 + - - 14 * + 55 * - ( + 82 ) AS col1
----
-64414

query II rowsort
SELECT DISTINCT - 68, 0 + 61 AS col2
----
-68
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8692
SELECT ALL - 78 + + COUNT( * ) + CAST( CAST( + 11 AS SIGNED ) AS SIGNED ) - COUNT( * ) + 74 * - + 52
----
-3915

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL - 78 + + COUNT ( * ) + CAST ( CAST ( + 11 AS INTEGER ) AS INTEGER ) - COUNT ( * ) + 74 * - + 52
----
-3915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8693
SELECT DISTINCT - + COUNT( * ) + + 68 + + 60 * CASE - COUNT( * ) WHEN 90 THEN + CAST( + 59 AS SIGNED ) ELSE + 88 END * 76 * + + 7, 70 + - - 30 AS col2
----
2809027
100

skipif mysql # not compatible
query II rowsort label-8693
SELECT DISTINCT - + COUNT ( * ) + + 68 + + 60 * CASE - COUNT ( * ) WHEN 90 THEN + CAST ( + 59 AS INTEGER ) ELSE + 88 END * 76 * + + 7, 70 + - - 30 AS col2
----
2809027
100

query I rowsort
SELECT ALL - + ( - - 98 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8695
SELECT - ( 18 ) DIV + 81 - - - CAST( + - 17 AS SIGNED ) + + 40 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8695
SELECT - ( 18 ) / + 81 - - - CAST ( + - 17 AS INTEGER ) + + 40 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL - + 30 + - + 55 * + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - + 30 + - + 55 * + COUNT ( * )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL COALESCE ( + - SUM( 60 ), + - 13 ) + + 93 * - - 21 / + MIN( DISTINCT - 43 ) * 65 * + 98 * + CASE + 25 WHEN - + 33 - COUNT( * ) THEN NULL WHEN + NULLIF ( - 35, + + COALESCE ( SUM( DISTINCT + 87 ), 69, 5 ) + ( 50 ) * + ( - AVG ( DISTINCT + 99 ) ) ) THEN NULL WHEN 3 THEN + 14 + + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL COALESCE ( + - SUM ( 60 ), + - 13 ) + + 93 * - - 21 / + MIN ( DISTINCT - 43 ) * 65 * + 98 * + CASE + 25 WHEN - + 33 - COUNT ( * ) THEN NULL WHEN + NULLIF ( - 35, + + COALESCE ( SUM ( DISTINCT + 87 ), 69, 5 ) + ( 50 ) * + ( - AVG ( DISTINCT + 99 ) ) ) THEN NULL WHEN 3 THEN + 14 + + 66 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8698
SELECT ALL + COUNT( * ) DIV - 74 * - 20 * - - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL + COUNT ( * ) / - 74 * - 20 * - - 73 AS col1
----
0

query I rowsort
SELECT ALL ( - 90 ) + 15 AS col2
----
-75

query I rowsort
SELECT 33 * 44
----
1452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8701
SELECT ALL - SUM( DISTINCT CAST( + + 58 AS DECIMAL ) ) + - CAST( NULL AS SIGNED ) / - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL - SUM ( DISTINCT CAST ( + + 58 AS REAL ) ) + - CAST ( NULL AS INTEGER ) / - 34
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 67, 89 ) * 21 * - 46 AS col2
----
64722

query I rowsort
SELECT - 92 * 99 + - 54 + - 90 + - - 93 - 16 * + 28 AS col2
----
-9607

query II rowsort
SELECT 23 + + 84 AS col0, 54 AS col2
----
107
54

query I rowsort
SELECT ALL 96 - + - 38 AS col2
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT 42 + CASE WHEN NOT - COUNT( * ) <> + - CAST( NULL AS SIGNED ) * - 41 + + - ( - - 71 ) THEN 37 ELSE 61 END * + 94 - + ( + 68 ) + + 33
----
5741

skipif mysql # not compatible
query I rowsort label-8706
SELECT 42 + CASE WHEN NOT - COUNT ( * ) <> + - CAST ( NULL AS INTEGER ) * - 41 + + - ( - - 71 ) THEN 37 ELSE 61 END * + 94 - + ( + 68 ) + + 33
----
5741

query I rowsort
SELECT ALL - NULLIF ( + 89, 48 ) * 24 * + + 7
----
-14952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT 58 + + - 96 * + 89 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT 58 + + - 96 * + 89 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8709
SELECT DISTINCT 54 DIV - MAX( DISTINCT - 52 ) AS col0, + 2 + + + COUNT( * )
----
1
3

skipif mysql # not compatible
query II rowsort label-8709
SELECT DISTINCT 54 / - MAX ( DISTINCT - 52 ) AS col0, + 2 + + + COUNT ( * )
----
1
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8710
SELECT + 94 + + + COUNT( * ) AS col2, 62 * + 17 col0
----
95
1054

skipif mysql # not compatible
query II rowsort label-8710
SELECT + 94 + + + COUNT ( * ) AS col2, 62 * + 17 col0
----
95
1054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8711
SELECT ALL COUNT( * ) DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL COUNT ( * ) / + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT DISTINCT - ( - - COUNT( ( 87 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT - ( - - COUNT ( ( 87 ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT - MAX( ALL + 39 ) * - + 77 AS col2
----
3003

skipif mysql # not compatible
query I rowsort label-8713
SELECT - MAX ( ALL + 39 ) * - + 77 AS col2
----
3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8714
SELECT - 61 * - - NULLIF ( CAST( NULL AS SIGNED ), + + 93 + + 53 + 19 ) * - + 27 + - ( + + 54 ) + - - 80 * - 28 * - 72 * - 11 + 81 * ( COUNT( * ) ) * - - COUNT( ALL NULLIF ( 84, 15 ) ) + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8714
SELECT - 61 * - - NULLIF ( CAST ( NULL AS INTEGER ), + + 93 + + 53 + 19 ) * - + 27 + - ( + + 54 ) + - - 80 * - 28 * - 72 * - 11 + 81 * ( COUNT ( * ) ) * - - COUNT ( ALL NULLIF ( 84, 15 ) ) + 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL COUNT( * ) * + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL COUNT ( * ) * + - 89
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT ( + 19 ) * 17 DIV - 3 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-8716
SELECT ( + 19 ) * 17 / - 3 AS col1
----
-107

query I rowsort
SELECT ALL - 75 col0
----
-75

query I rowsort
SELECT ALL - + 82 + + + 5 + + 24 * + - 46
----
-1181

query I rowsort
SELECT + ( - 81 ) AS col0
----
-81

query I rowsort
SELECT ALL - 47 + + - 79 AS col1
----
-126

query II rowsort
SELECT DISTINCT + - 57 * - - 43, + 51 AS col1
----
-2451
51

query I rowsort
SELECT ALL - + 39 col1
----
-39

query I rowsort
SELECT 19 * + 60 * + 43 + + 90
----
49110

query I rowsort
SELECT ALL + 29 * - ( + - 7 ) AS col2
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT + NULLIF ( - - COUNT( * ), - 51 + + + 9 + + + 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8725
SELECT + NULLIF ( - - COUNT ( * ), - 51 + + + 9 + + + 14 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT - 91 * + + ( - + COUNT( * ) ) * 11
----
1001

skipif mysql # not compatible
query I rowsort label-8726
SELECT - 91 * + + ( - + COUNT ( * ) ) * 11
----
1001

onlyif mysql # aggregate syntax: 
query II rowsort label-8727
SELECT - MAX( + - 55 ) * 4 AS col0, - 44 AS col1
----
220
-44

skipif mysql # not compatible
query II rowsort label-8727
SELECT - MAX ( + - 55 ) * 4 AS col0, - 44 AS col1
----
220
-44

query II rowsort
SELECT ALL 33 AS col0, 12
----
33
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8729
SELECT DISTINCT 85 AS col2, + COALESCE ( 37, + 76, + - COUNT( * ) * + - 78 + + - 66 + 76 ) AS col2
----
85
37

skipif mysql # not compatible
query II rowsort label-8729
SELECT DISTINCT 85 AS col2, + COALESCE ( 37, + 76, + - COUNT ( * ) * + - 78 + + - 66 + 76 ) AS col2
----
85
37

query I rowsort
SELECT ALL - 20 - 25
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-8731
SELECT ALL + 66 DIV 76 * + 51 AS col2, + 49
----
0
49

skipif mysql # not compatible
query II rowsort label-8731
SELECT ALL + 66 / 76 * + 51 AS col2, + 49
----
0
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL SUM( DISTINCT - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL SUM ( DISTINCT - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-8733
SELECT DISTINCT COUNT( * ) AS col0, - 73
----
1
-73

skipif mysql # not compatible
query II rowsort label-8733
SELECT DISTINCT COUNT ( * ) AS col0, - 73
----
1
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-8734
SELECT DISTINCT + 75 DIV - 56 col1
----
-1

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT + 75 / - 56 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL - ( - ( - + COALESCE ( - 61, + 0 ) ) ) - CASE ( - COUNT( ALL - - 95 ) ) WHEN + 90 THEN NULL WHEN + - 64 * 75 * - + 37 THEN NULL ELSE + COUNT( * ) END AS col1
----
60

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL - ( - ( - + COALESCE ( - 61, + 0 ) ) ) - CASE ( - COUNT ( ALL - - 95 ) ) WHEN + 90 THEN NULL WHEN + - 64 * 75 * - + 37 THEN NULL ELSE + COUNT ( * ) END AS col1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT ALL - 66 DIV + - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL - 66 / + - 82 AS col0
----
0

query I rowsort
SELECT - 25 * 76 * - 53 AS col1
----
100700

query II rowsort
SELECT - 1 * + 35 * 9, 6 * 92 col2
----
-315
552

query II rowsort
SELECT 57 AS col0, + 74
----
57
74

query I rowsort
SELECT - 19 - - - 83
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-8741
SELECT - COUNT( * ) col0, + 12
----
-1
12

skipif mysql # not compatible
query II rowsort label-8741
SELECT - COUNT ( * ) col0, + 12
----
-1
12

query I rowsort
SELECT DISTINCT 48 * + 40 * - - 84
----
161280

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT + SUM( + 40 ) * + 58 * + + 10 AS col1
----
23200

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT + SUM ( + 40 ) * + 58 * + + 10 AS col1
----
23200

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT MIN( ALL - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT MIN ( ALL - 54 ) AS col2
----
-54

query I rowsort
SELECT DISTINCT + ( 85 ) AS col2
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-8746
SELECT - + 14 + - 11 * - 11, + 29 + + - 0 + 84 + + 83 + + 24 DIV 78 col1
----
107
196

skipif mysql # not compatible
query II rowsort label-8746
SELECT - + 14 + - 11 * - 11, + 29 + + - 0 + 84 + + 83 + + 24 / 78 col1
----
107
196

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT + + COUNT( * ) - - + 10 + - + COUNT( * ) + - + ( - 53 )
----
63

skipif mysql # not compatible
query I rowsort label-8747
SELECT + + COUNT ( * ) - - + 10 + - + COUNT ( * ) + - + ( - 53 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL COALESCE ( - COUNT( * ), + + COUNT( * ), + ( - 7 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL COALESCE ( - COUNT ( * ), + + COUNT ( * ), + ( - 7 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8749
SELECT + - 41, + 87 * + COALESCE ( + 25, ( + ( - SUM( DISTINCT 8 ) ) ) * 33, + 34, ( + 12 ) ) AS col1
----
-41
2175

skipif mysql # not compatible
query II rowsort label-8749
SELECT + - 41, + 87 * + COALESCE ( + 25, ( + ( - SUM ( DISTINCT 8 ) ) ) * 33, + 34, ( + 12 ) ) AS col1
----
-41
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - - 39 + + 75 * - COUNT( ALL + 93 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8750
SELECT - - 39 + + 75 * - COUNT ( ALL + 93 ) AS col2
----
-36

query I rowsort
SELECT DISTINCT + 1 * - 17 + 18 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8752
SELECT ALL + MIN( 46 ) * + 41 + NULLIF ( - - COUNT( * ), - 28 ) + - 94 / + + 55 / + 63 * - CAST( NULL AS SIGNED ) + + 66 * 65 + - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL + MIN ( 46 ) * + 41 + NULLIF ( - - COUNT ( * ), - 28 ) + - 94 / + + 55 / + 63 * - CAST ( NULL AS INTEGER ) + + 66 * 65 + - 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT + 59 * 38 + - + COUNT( * )
----
2241

skipif mysql # not compatible
query I rowsort label-8753
SELECT + 59 * 38 + - + COUNT ( * )
----
2241

query I rowsort
SELECT ALL + - ( + 2 ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT DISTINCT - 72 * + 43 + + - NULLIF ( + 97, + 93 ) + CAST( - - 74 AS SIGNED )
----
-3119

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT - 72 * + 43 + + - NULLIF ( + 97, + 93 ) + CAST ( - - 74 AS INTEGER )
----
-3119

query I rowsort
SELECT ALL + + 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT DISTINCT + COUNT( * ) * - 1 * 73 * - - 98 + + + 37 + 33 + - + 27 AS col1
----
-7111

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT + COUNT ( * ) * - 1 * 73 * - - 98 + + + 37 + 33 + - + 27 AS col1
----
-7111

onlyif mysql # DIV for integer division: 
query I rowsort label-8758
SELECT DISTINCT + 93 * + - 49 + + + 59 DIV - + 9 + - 95 + NULLIF ( + 83, - 40 ) + 18
----
-4557

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT + 93 * + - 49 + + + 59 / - + 9 + - 95 + NULLIF ( + 83, - 40 ) + 18
----
-4557

onlyif mysql # DIV for integer division: 
query I rowsort label-8759
SELECT + - 38 DIV + + 34
----
-1

skipif mysql # not compatible
query I rowsort label-8759
SELECT + - 38 / + + 34
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8760
SELECT ALL + + ( + - NULLIF ( - CAST( 61 AS SIGNED ), + 80 * + + 51 - - 94 + + 67 + - 90 ) )
----
61

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL + + ( + - NULLIF ( - CAST ( 61 AS INTEGER ), + 80 * + + 51 - - 94 + + 67 + - 90 ) )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8761
SELECT CASE - - 56 WHEN - 38 - MIN( + 17 ) + 61 THEN NULL WHEN + - 93 THEN + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col1, - 79
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-8761
SELECT CASE - - 56 WHEN - 38 - MIN ( + 17 ) + 61 THEN NULL WHEN + - 93 THEN + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col1, - 79
----
NULL
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL + SUM( ALL + + 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + SUM ( ALL + + 53 ) AS col2
----
53

query I rowsort
SELECT + ( - - 44 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8764
SELECT - NULLIF ( COUNT( * ), - - 90 ) * + + 39 AS col0, - COUNT( * ) AS col0
----
-39
-1

skipif mysql # not compatible
query II rowsort label-8764
SELECT - NULLIF ( COUNT ( * ), - - 90 ) * + + 39 AS col0, - COUNT ( * ) AS col0
----
-39
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT + 49 + - ( + 38 ) + - CASE 10 WHEN + ( + - 57 ) THEN NULL WHEN - SUM( DISTINCT - 86 ) THEN + 70 + - CASE 92 WHEN + 60 THEN - ( 75 ) WHEN + 43 THEN NULL ELSE + + NULLIF ( 64, - + 97 / 17 ) / 52 + - 43 END * 28 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT + 49 + - ( + 38 ) + - CASE 10 WHEN + ( + - 57 ) THEN NULL WHEN - SUM ( DISTINCT - 86 ) THEN + 70 + - CASE 92 WHEN + 60 THEN - ( 75 ) WHEN + 43 THEN NULL ELSE + + NULLIF ( 64, - + 97 / 17 ) / 52 + - 43 END * 28 END * COUNT ( * )
----
NULL

query I rowsort
SELECT - ( - ( 73 ) ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT + COUNT( * ) * - COALESCE ( + CASE + COALESCE ( MIN( - 79 ), - + 10 ) WHEN 90 * + 87 - 78 + + 74 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + - 40 END, - 84 * + 80 + - COUNT( * ) ) * + ( - 53 ) AS col0
----
-2120

skipif mysql # not compatible
query I rowsort label-8767
SELECT + COUNT ( * ) * - COALESCE ( + CASE + COALESCE ( MIN ( - 79 ), - + 10 ) WHEN 90 * + 87 - 78 + + 74 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + - 40 END, - 84 * + 80 + - COUNT ( * ) ) * + ( - 53 ) AS col0
----
-2120

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT - 8 * - COUNT( 52 )
----
8

skipif mysql # not compatible
query I rowsort label-8768
SELECT - 8 * - COUNT ( 52 )
----
8

query I rowsort
SELECT ALL NULLIF ( 86, - 69 + - 42 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8770
SELECT + 19 + - COUNT( * ), + 59 AS col2
----
18
59

skipif mysql # not compatible
query II rowsort label-8770
SELECT + 19 + - COUNT ( * ), + 59 AS col2
----
18
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8771
SELECT MIN( DISTINCT - - 94 ) AS col2, - 29 AS col1
----
94
-29

skipif mysql # not compatible
query II rowsort label-8771
SELECT MIN ( DISTINCT - - 94 ) AS col2, - 29 AS col1
----
94
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT - SUM( DISTINCT ( 34 ) ) + 3
----
-31

skipif mysql # not compatible
query I rowsort label-8772
SELECT - SUM ( DISTINCT ( 34 ) ) + 3
----
-31

query I rowsort
SELECT ALL ( 82 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT ALL 77 + + 24 * + + CAST( NULL AS SIGNED ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL 77 + + 24 * + + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT ALL CAST( 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL CAST ( 97 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8776
SELECT - 38 + + 50, + COUNT( * ) * + 51 AS col2
----
12
51

skipif mysql # not compatible
query II rowsort label-8776
SELECT - 38 + + 50, + COUNT ( * ) * + 51 AS col2
----
12
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8777
SELECT - COALESCE ( 46, + ( 10 ) + - NULLIF ( + - MAX( + 28 ), COUNT( * ) ) + 15 * + + SUM( DISTINCT 94 ) * - CAST( NULL AS SIGNED ) * MIN( DISTINCT - + 63 ) * 76 * + 46 + - 13 - + - 41 * + + 85 DIV 85 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-8777
SELECT - COALESCE ( 46, + ( 10 ) + - NULLIF ( + - MAX ( + 28 ), COUNT ( * ) ) + 15 * + + SUM ( DISTINCT 94 ) * - CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - + 63 ) * 76 * + 46 + - 13 - + - 41 * + + 85 / 85 ) AS col0
----
-46

query I rowsort
SELECT + - ( - 47 ) * - 28 col0
----
-1316

query II rowsort
SELECT - 52 + + + 17, - 56 AS col1
----
-35
-56

query I rowsort
SELECT ALL - + 3 + - - 7 + 16 AS col2
----
20

query I rowsort
SELECT - 96 * - 46 AS col0
----
4416

query I rowsort
SELECT - 65 + + + 23
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT + 41 + - + COUNT( * ) * COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT + 41 + - + COUNT ( * ) * COUNT ( * ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8784
SELECT ALL - + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 2 * 51 * - + 73 AS col1
----
-7446

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8786
SELECT + CAST( - 21 AS SIGNED ), 48 + - 5 + 82 * - - 20 AS col0
----
-21
1683

skipif mysql # not compatible
query II rowsort label-8786
SELECT + CAST ( - 21 AS INTEGER ), 48 + - 5 + 82 * - - 20 AS col0
----
-21
1683

query I rowsort
SELECT DISTINCT + - 98 * 26 AS col2
----
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT + NULLIF ( + - NULLIF ( + 70, - 31 ), + ( - SUM( DISTINCT - 93 ) ) / + 44 * + 23 * + CASE + 63 WHEN + 70 THEN + COUNT( * ) * - 14 + 30 / + - 19 + COUNT( * ) + - + ( + - COUNT( * ) ) * 65 END ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-8788
SELECT + NULLIF ( + - NULLIF ( + 70, - 31 ), + ( - SUM ( DISTINCT - 93 ) ) / + 44 * + 23 * + CASE + 63 WHEN + 70 THEN + COUNT ( * ) * - 14 + 30 / + - 19 + COUNT ( * ) + - + ( + - COUNT ( * ) ) * 65 END ) AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8789
SELECT + MAX( 41 ) * + 60 * 80 / + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT + MAX ( 41 ) * + 60 * 80 / + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT + SUM( ( - 2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-8790
SELECT + SUM ( ( - 2 ) )
----
-2

query I rowsort
SELECT ALL + - 51 AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8792
SELECT DISTINCT - + CASE - 30 WHEN - COALESCE ( - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) / + 95 + - - 49 + + - 63 ) THEN + - 38 ELSE + 37 * - - 88 * + - 39 + + 97 END
----
126887

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT - + CASE - 30 WHEN - COALESCE ( - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / + 95 + - - 49 + + - 63 ) THEN + - 38 ELSE + 37 * - - 88 * + - 39 + + 97 END
----
126887

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - COUNT( * ) * - ( 21 )
----
21

skipif mysql # not compatible
query I rowsort label-8793
SELECT - COUNT ( * ) * - ( 21 )
----
21

query I rowsort
SELECT CASE - 92 WHEN 14 / 82 THEN + + 89 * 85 ELSE NULL END * AVG ( DISTINCT + 71 ) * - - 98 * + ( - 95 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8795
SELECT ALL - 64 DIV COUNT( * ), 73 AS col2
----
-64
73

skipif mysql # not compatible
query II rowsort label-8795
SELECT ALL - 64 / COUNT ( * ), 73 AS col2
----
-64
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT COUNT( * ) - - 65 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8796
SELECT COUNT ( * ) - - 65 AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8797
SELECT - 81 DIV - - NULLIF ( + - 61, - 19 * + 52 - + 99 ) + - 56 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8797
SELECT - 81 / - - NULLIF ( + - 61, - 19 * + 52 - + 99 ) + - 56 AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT 27 - 28 + - 38 + - - 95 + CAST( + 88 AS SIGNED ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-8798
SELECT 27 - 28 + - 38 + - - 95 + CAST ( + 88 AS INTEGER ) AS col1
----
144

query I rowsort
SELECT ALL 80 * + 56
----
4480

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT ALL - ( - 25 ) DIV - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL - ( - 25 ) / - 68 AS col1
----
0

query II rowsort
SELECT DISTINCT - 84 AS col0, 50 * - - 78 col0
----
-84
3900

query I rowsort
SELECT 23 * - 63 AS col2
----
-1449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT ( - CAST( NULL AS SIGNED ) ) - + 60 - - - CAST( - 53 AS SIGNED ) * + 49 * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT ( - CAST ( NULL AS INTEGER ) ) - + 60 - - - CAST ( - 53 AS INTEGER ) * + 49 * + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8804
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( COUNT( * ) AS SIGNED ) * + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( COUNT ( * ) AS INTEGER ) * + - 10
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8805
SELECT DISTINCT - 0 AS col2, COALESCE ( - COUNT( * ), - 16 * 92 ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-8805
SELECT DISTINCT - 0 AS col2, COALESCE ( - COUNT ( * ), - 16 * 92 ) AS col2
----
0
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT 42 DIV + 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8806
SELECT 42 / + 65 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8807
SELECT ALL 14 DIV + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL 14 / + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT DISTINCT NULLIF ( 1, + 0 ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT NULLIF ( 1, + 0 ) + - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL 78 + - 48
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT 77 * NULLIF ( - + 89, - + COUNT( * ) )
----
-6853

skipif mysql # not compatible
query I rowsort label-8810
SELECT 77 * NULLIF ( - + 89, - + COUNT ( * ) )
----
-6853

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL - COUNT( * ) + 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - COUNT ( * ) + 1 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT DISTINCT + 45 + + CAST( NULL AS SIGNED ) + + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT + 45 + + CAST ( NULL AS INTEGER ) + + 21 AS col1
----
NULL

query I rowsort
SELECT ALL + 86 + - 31 * + 14
----
-348

query I rowsort
SELECT + 89 - 71 * - + 21 + + - CASE + 2 WHEN 79 / - 46 + 71 THEN 46 END AS col0
----
NULL

query I rowsort
SELECT ALL + 12 + + 95 * 84 + + 14 AS col1
----
8006

query I rowsort
SELECT 70 - - - 4 AS col0
----
66

query I rowsort
SELECT DISTINCT ( + + ( - + 55 ) ) col1
----
-55

query II rowsort
SELECT ALL - 19 AS col1, - 20
----
-19
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT DISTINCT - 4 + COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT - 4 + COUNT ( * ) AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8820
SELECT ALL - CAST( 61 AS SIGNED ) - + 34 * + 35 * 99 * COUNT( * ) * 32 DIV + 4 + + ( + + 23 ) - + NULLIF ( - 22, 1 * + + 41 + + 14 - - 53 ) * + COUNT( * )
----
-942496

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL - CAST ( 61 AS INTEGER ) - + 34 * + 35 * 99 * COUNT ( * ) * 32 / + 4 + + ( + + 23 ) - + NULLIF ( - 22, 1 * + + 41 + + 14 - - 53 ) * + COUNT ( * )
----
-942496

query I rowsort
SELECT 39 - - 68 * 56 AS col2
----
3847

query I rowsort
SELECT - + 26 AS col2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8823
SELECT 42 + + 25 - - - 50 - + - COUNT( * ) DIV + 16 + - 23 DIV + - 39 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8823
SELECT 42 + + 25 - - - 50 - + - COUNT ( * ) / + 16 + - 23 / + - 39 AS col1
----
17

query I rowsort
SELECT - CASE - 87 WHEN + 4 THEN - - 13 / - 90 - COALESCE ( + 78, - - 96 ) ELSE NULL END - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL + COUNT( * ) - 57
----
-56

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + COUNT ( * ) - 57
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT 19 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-8826
SELECT 19 / + 41
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8827
SELECT + COUNT( ALL - + 85 ) * + - CAST( NULL AS SIGNED ) + + - 19 + - 78 + - - 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8827
SELECT + COUNT ( ALL - + 85 ) * + - CAST ( NULL AS INTEGER ) + + - 19 + - 78 + - - 54 col1
----
NULL

query I rowsort
SELECT ALL - - 21 * + 39
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT + 12 * - 15 + 70 + 90 + + 96 * COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-8829
SELECT + 12 * - 15 + 70 + 90 + + 96 * COUNT ( * )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT CAST( NULL AS SIGNED ) * 9 * - 40 * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT CAST ( NULL AS INTEGER ) * 9 * - 40 * + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT ALL - COUNT( * ) * + 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL - COUNT ( * ) * + 7 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8832
SELECT - 25 DIV - 78 * - - 76 + - 61 + - 87, NULLIF ( - - 83, + NULLIF ( - 8, + + 59 ) ) * + 44 - CAST( NULL AS SIGNED ) AS col0
----
-148
NULL

skipif mysql # not compatible
query II rowsort label-8832
SELECT - 25 / - 78 * - - 76 + - 61 + - 87, NULLIF ( - - 83, + NULLIF ( - 8, + + 59 ) ) * + 44 - CAST ( NULL AS INTEGER ) AS col0
----
-148
NULL

query I rowsort
SELECT ALL - ( + 10 )
----
-10

query II rowsort
SELECT + 66, - 33 AS col0
----
66
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT 36 + + 63 + COUNT( ALL - - 74 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-8835
SELECT 36 + + 63 + COUNT ( ALL - - 74 ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL - COUNT( * ) * - - MAX( + 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL - COUNT ( * ) * - - MAX ( + 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL - ( + - MAX( - - ( + + 74 ) ) )
----
74

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL - ( + - MAX ( - - ( + + 74 ) ) )
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-8838
SELECT 7 * 13 + + + 27 DIV 87 AS col2, - 20 AS col0
----
91
-20

skipif mysql # not compatible
query II rowsort label-8838
SELECT 7 * 13 + + + 27 / 87 AS col2, - 20 AS col0
----
91
-20

query I rowsort
SELECT 32 * 55 AS col2
----
1760

query II rowsort
SELECT 68 * 98 AS col2, - 3 + + 86 * + 55 + + 22 * - 24 AS col1
----
6664
4199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8841
SELECT 29 AS col2, 4 * + CAST( + COUNT( * ) AS SIGNED )
----
29
4

skipif mysql # not compatible
query II rowsort label-8841
SELECT 29 AS col2, 4 * + CAST ( + COUNT ( * ) AS INTEGER )
----
29
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT COUNT( * ) + MAX( - + 59 )
----
-58

skipif mysql # not compatible
query I rowsort label-8842
SELECT COUNT ( * ) + MAX ( - + 59 )
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT + 41 AS col2, + ( - - COUNT( * ) ) * - 58 * + - 13 col0
----
41
754

skipif mysql # not compatible
query II rowsort label-8843
SELECT + 41 AS col2, + ( - - COUNT ( * ) ) * - 58 * + - 13 col0
----
41
754

query I rowsort
SELECT ALL - 62 + 99
----
37

query I rowsort
SELECT DISTINCT 25 + - COALESCE ( - 80, 56, + + 98 )
----
105

query I rowsort
SELECT DISTINCT - 9 col2
----
-9

query I rowsort
SELECT ALL 60 + 19 * 94 * 93 + 32 - + - 55 - + 14 AS col2
----
166231

query I rowsort
SELECT 57 + + 24 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT 93 + + - MIN( + 48 ) col1
----
45

skipif mysql # not compatible
query I rowsort label-8849
SELECT 93 + + - MIN ( + 48 ) col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8850
SELECT CASE - ( - + 22 ) WHEN - NULLIF ( + 82, - MIN( 4 ) DIV - - 66 + - - 87 * - 61 + - + 59 + - + 86 ) + 91 THEN + - 7 * - + 71 + + 27 * - 62 * - 20 * COUNT( + ( - 21 ) ) + COALESCE ( 53, 58, - 86 + NULLIF ( SUM( ALL - 3 ), 63 + 96 DIV 83 ) DIV COALESCE ( + 83, + NULLIF ( - 44, + ( - MIN( DISTINCT + ( - 66 ) ) ) * + 76 - + 18 ), 35 * + 86 ) ) ELSE COUNT( * ) END * 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8850
SELECT CASE - ( - + 22 ) WHEN - NULLIF ( + 82, - MIN ( 4 ) / - - 66 + - - 87 * - 61 + - + 59 + - + 86 ) + 91 THEN + - 7 * - + 71 + + 27 * - 62 * - 20 * COUNT ( + ( - 21 ) ) + COALESCE ( 53, 58, - 86 + NULLIF ( SUM ( ALL - 3 ), 63 + 96 / 83 ) / COALESCE ( + 83, + NULLIF ( - 44, + ( - MIN ( DISTINCT + ( - 66 ) ) ) * + 76 - + 18 ), 35 * + 86 ) ) ELSE COUNT ( * ) END * 45 AS col2
----
45

query I rowsort
SELECT 6 + 26 col2
----
32

query I rowsort
SELECT ALL - 15 + - 49 AS col1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8853
SELECT - + CASE - + AVG ( + 5 ) WHEN - 48 + + + 5 THEN NULL WHEN - 0 THEN 53 DIV + 28 ELSE + MIN( - 35 ) END
----
35

skipif mysql # not compatible
query I rowsort label-8853
SELECT - + CASE - + AVG ( + 5 ) WHEN - 48 + + + 5 THEN NULL WHEN - 0 THEN 53 / + 28 ELSE + MIN ( - 35 ) END
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8854
SELECT - CAST( 86 AS SIGNED ) - - 54
----
-32

skipif mysql # not compatible
query I rowsort label-8854
SELECT - CAST ( 86 AS INTEGER ) - - 54
----
-32

query II rowsort
SELECT ALL + 41, 36 col1
----
41
36

query I rowsort
SELECT 85 + - 92
----
-7

query I rowsort
SELECT ALL 70 - + - 75 col2
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT ALL - CAST( - 44 AS SIGNED ) col2
----
44

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL - CAST ( - 44 AS INTEGER ) col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT - 14 + 50 + - 6 * - NULLIF ( ( - COUNT( * ) ), + 71 ) - - 45 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8859
SELECT - 14 + 50 + - 6 * - NULLIF ( ( - COUNT ( * ) ), + 71 ) - - 45 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8860
SELECT - 23 * - + CAST( NULL AS SIGNED ) * + - 42 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT - 23 * - + CAST ( NULL AS INTEGER ) * + - 42 + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8861
SELECT DISTINCT - 5 AS col0, - 25 DIV 94 * + 50 AS col1
----
-5
0

skipif mysql # not compatible
query II rowsort label-8861
SELECT DISTINCT - 5 AS col0, - 25 / 94 * + 50 AS col1
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT COUNT( * ) + - 2 * + 43
----
-85

skipif mysql # not compatible
query I rowsort label-8862
SELECT COUNT ( * ) + - 2 * + 43
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-8863
SELECT ALL ( + + MIN( 81 ) ) * - 93 + + + ( - 37 ) AS col1, 65 AS col1
----
-7570
65

skipif mysql # not compatible
query II rowsort label-8863
SELECT ALL ( + + MIN ( 81 ) ) * - 93 + + + ( - 37 ) AS col1, 65 AS col1
----
-7570
65

query I rowsort
SELECT + - 19 + - 9 AS col2
----
-28

query I rowsort
SELECT - + 45 + - 15
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL MIN( ( + 71 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL MIN ( ( + 71 ) ) AS col1
----
71

query I rowsort
SELECT DISTINCT ( - 8 ) * + 92 * + 8 * + 1
----
-5888

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT MIN( - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-8868
SELECT MIN ( - 41 ) AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8869
SELECT DISTINCT 95 * 63 * - 25 + + COUNT( ALL + 28 ) + - ( - 20 ) - - 20 + - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT 95 * 63 * - 25 + + COUNT ( ALL + 28 ) + - ( - 20 ) - - 20 + - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 23, 27 AS col2
----
-23
27

query I rowsort
SELECT ( - ( + CASE + 31 WHEN 25 THEN NULL ELSE - + ( ( 13 ) ) + 31 + + + 3 END ) ) AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT + 43 * CAST( NULL AS SIGNED ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT + 43 * CAST ( NULL AS INTEGER ) * - 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8873
SELECT - 62 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-8873
SELECT - 62 / + 84
----
0

query I rowsort
SELECT CASE 6 WHEN 22 THEN 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8875
SELECT + 9 * 42, + 54 * - + ( - - CASE 97 WHEN - 34 * + ( - 46 ) THEN + 69 WHEN - 95 THEN - - 17 WHEN + SUM( - 72 ) * 84 + + COUNT( ALL 16 ) THEN NULL END ) AS col2
----
378
NULL

skipif mysql # not compatible
query II rowsort label-8875
SELECT + 9 * 42, + 54 * - + ( - - CASE 97 WHEN - 34 * + ( - 46 ) THEN + 69 WHEN - 95 THEN - - 17 WHEN + SUM ( - 72 ) * 84 + + COUNT ( ALL 16 ) THEN NULL END ) AS col2
----
378
NULL

query I rowsort
SELECT COALESCE ( ( - 76 ), ( + 63 ), + + 21 * + ( - - 80 ) * - 86 + 95 + 64 * + 91 + + 3 )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8877
SELECT + ( + 47 ) AS col2, - 55 + 4 * + MIN( + 65 ) + 99 * 40 * 99 col1
----
47
392245

skipif mysql # not compatible
query II rowsort label-8877
SELECT + ( + 47 ) AS col2, - 55 + 4 * + MIN ( + 65 ) + 99 * 40 * 99 col1
----
47
392245

query I rowsort
SELECT - 8 * + 97 AS col0
----
-776

query I rowsort
SELECT ALL 21 * + 89 * - 58 + - + 68
----
-108470

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT DISTINCT 90 * 63 + + + COUNT( * ) AS col0
----
5671

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT 90 * 63 + + + COUNT ( * ) AS col0
----
5671

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT NULLIF ( - CASE + 50 WHEN + + 30 THEN NULL WHEN + - ( 62 ) THEN - + 64 * + + 79 + + SUM( - 51 ) + - MAX( DISTINCT - 23 ) END, - + 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT NULLIF ( - CASE + 50 WHEN + + 30 THEN NULL WHEN + - ( 62 ) THEN - + 64 * + + 79 + + SUM ( - 51 ) + - MAX ( DISTINCT - 23 ) END, - + 3 )
----
NULL

query I rowsort
SELECT DISTINCT 65 * - 22 * + 71 + + 99 * 47
----
-96877

query I rowsort
SELECT ALL + ( + 22 ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT - CAST( - 92 AS SIGNED ) + + - 21
----
71

skipif mysql # not compatible
query I rowsort label-8884
SELECT - CAST ( - 92 AS INTEGER ) + + - 21
----
71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8885
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 65 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 65 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8886
SELECT ALL 2 * - 61 + - ( + 25 ) DIV - NULLIF ( - 17, + 76 + 92 - - + 71 * 0 ) - - COUNT( * ) * + - 96 AS col1
----
-219

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL 2 * - 61 + - ( + 25 ) / - NULLIF ( - 17, + 76 + 92 - - + 71 * 0 ) - - COUNT ( * ) * + - 96 AS col1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL 77 * - - COUNT( * ) + - + 52
----
25

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL 77 * - - COUNT ( * ) + - + 52
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8888
SELECT DISTINCT + + 84 DIV - - 60
----
1

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT + + 84 / - - 60
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT - - COUNT( ALL + - COALESCE ( + ( 57 ), - - 49 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8889
SELECT - - COUNT ( ALL + - COALESCE ( + ( 57 ), - - 49 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT ALL - CASE 75 WHEN + 97 THEN NULL WHEN + - 38 THEN + - MIN( + 49 ) - - 0 END - + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL - CASE 75 WHEN + 97 THEN NULL WHEN + - 38 THEN + - MIN ( + 49 ) - - 0 END - + + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL + COUNT( * ) - 9 col0
----
-8

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + COUNT ( * ) - 9 col0
----
-8

query I rowsort
SELECT + + 98 * - 51 AS col1
----
-4998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8893
SELECT DISTINCT + + CAST( + COUNT( * ) AS SIGNED ) * - - 31 + + 9 / - + 45 / - + CASE - - 88 WHEN 63 + + COUNT( * ) THEN - MAX( + - 33 ) * + AVG ( + 56 ) * + 71 / + + 68 + 73 WHEN + 85 * + + ( 56 ) THEN - + 61 + + 2 * + + ( 47 ) + + 96 END + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT + + CAST ( + COUNT ( * ) AS INTEGER ) * - - 31 + + 9 / - + 45 / - + CASE - - 88 WHEN 63 + + COUNT ( * ) THEN - MAX ( + - 33 ) * + AVG ( + 56 ) * + 71 / + + 68 + 73 WHEN + 85 * + + ( 56 ) THEN - + 61 + + 2 * + + ( 47 ) + + 96 END + 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8894
SELECT + - 23 * CAST( + 11 AS SIGNED )
----
-253

skipif mysql # not compatible
query I rowsort label-8894
SELECT + - 23 * CAST ( + 11 AS INTEGER )
----
-253

query I rowsort
SELECT + - 65 * + + 4 AS col0
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT - + CASE + MAX( - 46 ) WHEN + 82 - + 43 THEN + 94 ELSE NULL END + + - 59 * + COALESCE ( - + COUNT( * ), - - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT - + CASE + MAX ( - 46 ) WHEN + 82 - + 43 THEN + 94 ELSE NULL END + + - 59 * + COALESCE ( - + COUNT ( * ), - - 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL ( - 85 ) - ( + NULLIF ( + - 20, 66 ) ) * NULLIF ( + - 84, - + SUM( DISTINCT 71 ) ) + 44
----
-1721

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL ( - 85 ) - ( + NULLIF ( + - 20, 66 ) ) * NULLIF ( + - 84, - + SUM ( DISTINCT 71 ) ) + 44
----
-1721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8898
SELECT - 74 / + ( - 92 ) * + NULLIF ( COUNT( * ), COUNT( * ) - + + 67 ) * - + ( - ( - CAST( + CASE + - 23 WHEN AVG ( - 34 ) + - 36 THEN 23 - - 7 * 1 WHEN + + CASE + 94 WHEN + + 11 + 40 * 8 THEN 38 + 15 * 62 ELSE NULL END / - 30 + - 32 THEN NULL ELSE NULL END AS SIGNED ) ) ) + - COUNT( * ) + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT - 74 / + ( - 92 ) * + NULLIF ( COUNT ( * ), COUNT ( * ) - + + 67 ) * - + ( - ( - CAST ( + CASE + - 23 WHEN AVG ( - 34 ) + - 36 THEN 23 - - 7 * 1 WHEN + + CASE + 94 WHEN + + 11 + 40 * 8 THEN 38 + 15 * 62 ELSE NULL END / - 30 + - 32 THEN NULL ELSE NULL END AS INTEGER ) ) ) + - COUNT ( * ) + - 33
----
NULL

query II rowsort
SELECT - 87 - + + 63 AS col0, + 40 AS col0
----
-150
40

query I rowsort
SELECT + 57 * - 98 AS col2
----
-5586

query II rowsort
SELECT + 1 - + 95 AS col2, 90
----
-94
90

query I rowsort
SELECT + 14 + + - 76 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT + + 97 * - COUNT( * ) * - + 87 + + + 98
----
8537

skipif mysql # not compatible
query I rowsort label-8903
SELECT + + 97 * - COUNT ( * ) * - + 87 + + + 98
----
8537

query I rowsort
SELECT ALL + 58 + 37 * + + 96
----
3610

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + COUNT( * ) - + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8905
SELECT + COUNT ( * ) - + + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT + 51 * - 45 * - 10 * + + 55
----
1262250

query I rowsort
SELECT + 9 + + ( + 19 ) * + 77 AS col0
----
1472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8908
SELECT + 15 - + 40 + - + 40 + - ( NULLIF ( + - 21, + COALESCE ( - 73, COUNT( * ) * - 13 - + - 74 ) - - 98 + - - CAST( - 11 AS SIGNED ) ) ) * - 14 * - + COUNT( * ) AS col2
----
229

skipif mysql # not compatible
query I rowsort label-8908
SELECT + 15 - + 40 + - + 40 + - ( NULLIF ( + - 21, + COALESCE ( - 73, COUNT ( * ) * - 13 - + - 74 ) - - 98 + - - CAST ( - 11 AS INTEGER ) ) ) * - 14 * - + COUNT ( * ) AS col2
----
229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT CAST( 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-8909
SELECT CAST ( 13 AS INTEGER )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8910
SELECT ALL 43 DIV 73 + - + 16
----
-16

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL 43 / 73 + - + 16
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT COUNT( * ) * - 98 + - ( 83 ) AS col2
----
-181

skipif mysql # not compatible
query I rowsort label-8911
SELECT COUNT ( * ) * - 98 + - ( 83 ) AS col2
----
-181

query II rowsort
SELECT ALL + 22 AS col2, 85
----
22
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8913
SELECT + NULLIF ( - AVG ( 58 ), + 83 ) / - NULLIF ( + CAST( NULL AS SIGNED ), 82 * 34 + + 24 ) + - 31 + - 81 * + 95 + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT + NULLIF ( - AVG ( 58 ), + 83 ) / - NULLIF ( + CAST ( NULL AS INTEGER ), 82 * 34 + + 24 ) + - 31 + - 81 * + 95 + - 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT ALL + 19 DIV - - 82 + 76 + - 30 * - 34 AS col1
----
1096

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL + 19 / - - 82 + 76 + - 30 * - 34 AS col1
----
1096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8915
SELECT DISTINCT CAST( + 23 AS SIGNED ) DIV - - ( - ( + + 80 ) ) * - COUNT( * ) + - COUNT( * ) * + 9 * - 4 * - + ( ( + 75 ) )
----
-2700

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT CAST ( + 23 AS INTEGER ) / - - ( - ( + + 80 ) ) * - COUNT ( * ) + - COUNT ( * ) * + 9 * - 4 * - + ( ( + 75 ) )
----
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT CAST( - 9 AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8916
SELECT CAST ( - 9 AS INTEGER ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT + COALESCE ( + 59, 41, - COUNT( * ) ) * + 49 * - - NULLIF ( + 15, 86 + + - COUNT( * ) )
----
43365

skipif mysql # not compatible
query I rowsort label-8917
SELECT + COALESCE ( + 59, 41, - COUNT ( * ) ) * + 49 * - - NULLIF ( + 15, 86 + + - COUNT ( * ) )
----
43365

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8918
SELECT - CAST( NULL AS SIGNED ) * 99 * + 53 AS col1, 5 col0
----
NULL
5

skipif mysql # not compatible
query II rowsort label-8918
SELECT - CAST ( NULL AS INTEGER ) * 99 * + 53 AS col1, 5 col0
----
NULL
5

query I rowsort
SELECT + 89 * 86 col2
----
7654

onlyif mysql # aggregate syntax: 
query II rowsort label-8920
SELECT - 95 * MAX( 70 ), 36 AS col1
----
-6650
36

skipif mysql # not compatible
query II rowsort label-8920
SELECT - 95 * MAX ( 70 ), 36 AS col1
----
-6650
36

onlyif mysql # DIV for integer division: 
query II rowsort label-8921
SELECT + 7 + + + COALESCE ( 32, + 93 * + 25, + - 74 ) + - + 38 DIV + + 44 AS col0, - 79 DIV + 88
----
39
0

skipif mysql # not compatible
query II rowsort label-8921
SELECT + 7 + + + COALESCE ( 32, + 93 * + 25, + - 74 ) + - + 38 / + + 44 AS col0, - 79 / + 88
----
39
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT DISTINCT 66 * ( + 27 ) * - CAST( NULL AS SIGNED ) * - + 52 - - 14 + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT 66 * ( + 27 ) * - CAST ( NULL AS INTEGER ) * - + 52 - - 14 + 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT - - 19 + + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT - - 19 + + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8924
SELECT DISTINCT + 96, + COUNT( * ) AS col0
----
96
1

skipif mysql # not compatible
query II rowsort label-8924
SELECT DISTINCT + 96, + COUNT ( * ) AS col0
----
96
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8925
SELECT - - 69 * - - CAST( NULL AS SIGNED ) * + 80 + + - 22 - - - 70 * + - 28, - COUNT( - ( - 88 ) ) * + + 24 col1
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-8925
SELECT - - 69 * - - CAST ( NULL AS INTEGER ) * + 80 + + - 22 - - - 70 * + - 28, - COUNT ( - ( - 88 ) ) * + + 24 col1
----
NULL
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL + + MIN( + - 87 ) * 99 + - 93 + + ( COUNT( * ) ) + - ( 99 ) * - 71
----
-1676

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL + + MIN ( + - 87 ) * 99 + - 93 + + ( COUNT ( * ) ) + - ( 99 ) * - 71
----
-1676

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT + + ( - + ( + - COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT + + ( - + ( + - COUNT ( * ) ) ) AS col0
----
1

query I rowsort
SELECT ALL + ( 7 ) AS col2
----
7

query I rowsort
SELECT 94 * - - 56 AS col2
----
5264

query I rowsort
SELECT ( - 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT ALL + + 14 * - - COUNT( * ) + - 30 - + - 86 + 21 * - - COUNT( * ) * 58 AS col2
----
1288

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL + + 14 * - - COUNT ( * ) + - 30 - + - 86 + 21 * - - COUNT ( * ) * 58 AS col2
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL - 31 * + COALESCE ( - - 78, - - 42 ) + + - COUNT( * ) AS col0
----
-2419

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL - 31 * + COALESCE ( - - 78, - - 42 ) + + - COUNT ( * ) AS col0
----
-2419

query I rowsort
SELECT ALL + ( + - 84 )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8934
SELECT ALL - CASE + COALESCE ( + 98, + 61, COALESCE ( + ( + - 78 ), - 84, - - COUNT( * ) DIV + 10 ) * - 33 ) WHEN - 48 THEN NULL WHEN + + 96 THEN + COUNT( * ) ELSE + 71 DIV + + 36 + - COUNT( * ) + - CASE + - NULLIF ( + 95, - 5 + + + 9 * + + 32 + - COUNT( * ) DIV 11 ) WHEN CASE + 82 WHEN + 90 THEN NULL WHEN 97 * - 6 + - 15 THEN - 67 END THEN COALESCE ( 26, 29 * + 76, + 45 * - 41 + 76 * + 94 ) + + 23 ELSE 25 * + 5 END DIV - 28 END + 7 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL - CASE + COALESCE ( + 98, + 61, COALESCE ( + ( + - 78 ), - 84, - - COUNT ( * ) / + 10 ) * - 33 ) WHEN - 48 THEN NULL WHEN + + 96 THEN + COUNT ( * ) ELSE + 71 / + + 36 + - COUNT ( * ) + - CASE + - NULLIF ( + 95, - 5 + + + 9 * + + 32 + - COUNT ( * ) / 11 ) WHEN CASE + 82 WHEN + 90 THEN NULL WHEN 97 * - 6 + - 15 THEN - 67 END THEN COALESCE ( 26, 29 * + 76, + 45 * - 41 + 76 * + 94 ) + + 23 ELSE 25 * + 5 END / - 28 END + 7 AS col0
----
3

query II rowsort
SELECT 86 + + ( 47 ) AS col1, 69
----
133
69

query I rowsort
SELECT DISTINCT - 21 * - 83 AS col0
----
1743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8937
SELECT 36 DIV + + 51 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT 36 / + + 51 / - COUNT ( * )
----
0

query I rowsort
SELECT 71 + + 60 * - 51
----
-2989

query II rowsort
SELECT 42 * 85 AS col1, 13 AS col2
----
3570
13

query I rowsort
SELECT ALL 74 + 59
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT ALL + CAST( 98 AS SIGNED ) * + COUNT( * ) + SUM( DISTINCT - 30 ) - - + 13
----
81

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL + CAST ( 98 AS INTEGER ) * + COUNT ( * ) + SUM ( DISTINCT - 30 ) - - + 13
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT COUNT( 34 ) + + 75
----
76

skipif mysql # not compatible
query I rowsort label-8942
SELECT COUNT ( 34 ) + + 75
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8943
SELECT 61 DIV - - SUM( ALL 4 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8943
SELECT 61 / - - SUM ( ALL 4 ) AS col2
----
15

query II rowsort
SELECT 49 * + 5 - + 58 + + + 12, 78 col2
----
199
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8945
SELECT CAST( - 68 AS SIGNED ) * 30
----
-2040

skipif mysql # not compatible
query I rowsort label-8945
SELECT CAST ( - 68 AS INTEGER ) * 30
----
-2040

onlyif mysql # aggregate syntax: 
query II rowsort label-8946
SELECT ALL COUNT( * ) * 18 AS col2, - 20
----
18
-20

skipif mysql # not compatible
query II rowsort label-8946
SELECT ALL COUNT ( * ) * 18 AS col2, - 20
----
18
-20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8947
SELECT CAST( NULL AS SIGNED ) + 42 * - 33 / + 46 * - CAST( NULL AS DECIMAL ) * - 89 + - CAST( 84 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT CAST ( NULL AS INTEGER ) + 42 * - 33 / + 46 * - CAST ( NULL AS REAL ) * - 89 + - CAST ( 84 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + MAX( - + 82 ) * - COALESCE ( - 14, + + 66, - AVG ( DISTINCT 76 ) * + 45 ) + - 67 + - 82 * 46 - - CASE + + 78 WHEN ( - 70 ) / + 16 - + NULLIF ( - - 80, 33 * - 56 ) + - 8 + - 55 THEN NULL WHEN - COALESCE ( + 3, 73, + 65 * 8 ) THEN 77 END + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT + MAX ( - + 82 ) * - COALESCE ( - 14, + + 66, - AVG ( DISTINCT 76 ) * + 45 ) + - 67 + - 82 * 46 - - CASE + + 78 WHEN ( - 70 ) / + 16 - + NULLIF ( - - 80, 33 * - 56 ) + - 8 + - 55 THEN NULL WHEN - COALESCE ( + 3, 73, + 65 * 8 ) THEN 77 END + 59 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT 62 DIV 11 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8949
SELECT 62 / 11 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT - 16 * - 12 + - CASE + MAX( + 59 ) WHEN - - 42 * + COUNT( + ( + 49 ) ) * - COUNT( * ) THEN NULL WHEN - 19 * - + 6 THEN 43 + 42 WHEN - + ( 20 ) / - + 22 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT - 16 * - 12 + - CASE + MAX ( + 59 ) WHEN - - 42 * + COUNT ( + ( + 49 ) ) * - COUNT ( * ) THEN NULL WHEN - 19 * - + 6 THEN 43 + 42 WHEN - + ( 20 ) / - + 22 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 74 col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8952
SELECT - 60 * + + COUNT( * ), - 32 AS col1
----
-60
-32

skipif mysql # not compatible
query II rowsort label-8952
SELECT - 60 * + + COUNT ( * ), - 32 AS col1
----
-60
-32

query I rowsort
SELECT ALL - + 0 AS col1
----
0

query I rowsort
SELECT DISTINCT - 93 * + 17 * + 96 AS col1
----
-151776

query I rowsort
SELECT 32 * + + 89 AS col2
----
2848

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8956
SELECT ALL 66 + - 90 - + 95 + + CASE 79 WHEN - 53 THEN - SUM( DISTINCT 90 ) WHEN + COUNT( * ) * 11 + COUNT( * ) + + AVG ( DISTINCT 94 ) * - + 78 THEN NULL END * - ( COUNT( ALL 27 ) ) * + CAST( 33 AS DECIMAL ) - 40 * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL 66 + - 90 - + 95 + + CASE 79 WHEN - 53 THEN - SUM ( DISTINCT 90 ) WHEN + COUNT ( * ) * 11 + COUNT ( * ) + + AVG ( DISTINCT 94 ) * - + 78 THEN NULL END * - ( COUNT ( ALL 27 ) ) * + CAST ( 33 AS REAL ) - 40 * + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT - CASE - CASE + MAX( - 98 ) WHEN - CASE + COUNT( * ) WHEN 75 THEN COUNT( * ) ELSE NULL END THEN 16 * + - 72 END WHEN - - CASE + 80 WHEN - COUNT( * ) + + - ( - + 81 ) + 14 THEN + + 80 + - + CASE WHEN COUNT( * ) IS NOT NULL THEN - 12 END WHEN + 35 THEN 30 * ( - 77 ) + - COALESCE ( ( 58 ), ( 56 ), 48 * 53 ) ELSE 25 END * + 42 + 41 THEN 27 / 12 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT - CASE - CASE + MAX ( - 98 ) WHEN - CASE + COUNT ( * ) WHEN 75 THEN COUNT ( * ) ELSE NULL END THEN 16 * + - 72 END WHEN - - CASE + 80 WHEN - COUNT ( * ) + + - ( - + 81 ) + 14 THEN + + 80 + - + CASE WHEN COUNT ( * ) IS NOT NULL THEN - 12 END WHEN + 35 THEN 30 * ( - 77 ) + - COALESCE ( ( 58 ), ( 56 ), 48 * 53 ) ELSE 25 END * + 42 + 41 THEN 27 / 12 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8958
SELECT + 74 * 14 + + - COUNT( * ) * COUNT( * ) AS col2, 52 * - + 40 * - + 70 + + CASE + 33 WHEN 76 - 36 * + COUNT( * ) THEN CASE + COUNT( * ) WHEN - - 64 * + 2 - - 5 THEN 59 - + 82 ELSE NULL END + + - NULLIF ( + + 3, - 57 + - 43 + + 76 - CAST( NULL AS SIGNED ) * COUNT( * ) * - COUNT( * ) ) WHEN COUNT( * ) THEN NULL END - 83 / + 66
----
1035
NULL

skipif mysql # not compatible
query II rowsort label-8958
SELECT + 74 * 14 + + - COUNT ( * ) * COUNT ( * ) AS col2, 52 * - + 40 * - + 70 + + CASE + 33 WHEN 76 - 36 * + COUNT ( * ) THEN CASE + COUNT ( * ) WHEN - - 64 * + 2 - - 5 THEN 59 - + 82 ELSE NULL END + + - NULLIF ( + + 3, - 57 + - 43 + + 76 - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - COUNT ( * ) ) WHEN COUNT ( * ) THEN NULL END - 83 / + 66
----
1035
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT - + SUM( DISTINCT + + 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8959
SELECT - + SUM ( DISTINCT + + 64 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT 88 - + CASE 1 WHEN + + 10 * + NULLIF ( 80, + - 68 + - COUNT( * ) ) + - COALESCE ( + ( + COUNT( * ) ), + 96 ) * - ( - 54 ) THEN + + 75 + - COALESCE ( + 67, - + COUNT( * ) ) ELSE NULL END + 40 * + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT 88 - + CASE 1 WHEN + + 10 * + NULLIF ( 80, + - 68 + - COUNT ( * ) ) + - COALESCE ( + ( + COUNT ( * ) ), + 96 ) * - ( - 54 ) THEN + + 75 + - COALESCE ( + 67, - + COUNT ( * ) ) ELSE NULL END + 40 * + 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8961
SELECT 44, 7 * + - COUNT( * ) AS col2
----
44
-7

skipif mysql # not compatible
query II rowsort label-8961
SELECT 44, 7 * + - COUNT ( * ) AS col2
----
44
-7

query II rowsort
SELECT ALL 16 AS col2, - 71 + - 97
----
16
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8963
SELECT DISTINCT 68 AS col1, COALESCE ( + + ( 26 ), + ( - 31 ) * - - 45 + + + CAST( + COALESCE ( + 36, - CASE - + 85 WHEN - - 80 THEN NULL WHEN - 77 THEN 42 END, + CAST( + SUM( - 63 ) AS SIGNED ) ) AS SIGNED ) )
----
68
26

skipif mysql # not compatible
query II rowsort label-8963
SELECT DISTINCT 68 AS col1, COALESCE ( + + ( 26 ), + ( - 31 ) * - - 45 + + + CAST ( + COALESCE ( + 36, - CASE - + 85 WHEN - - 80 THEN NULL WHEN - 77 THEN 42 END, + CAST ( + SUM ( - 63 ) AS INTEGER ) ) AS INTEGER ) )
----
68
26

onlyif mysql # DIV for integer division: 
query II rowsort label-8964
SELECT 61 + - ( 15 ), 93 DIV 50 * - 72 * + - 41 - + 21 AS col1
----
46
2931

skipif mysql # not compatible
query II rowsort label-8964
SELECT 61 + - ( 15 ), 93 / 50 * - 72 * + - 41 - + 21 AS col1
----
46
2931

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL MAX( ALL - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL MAX ( ALL - 81 )
----
-81

query I rowsort
SELECT DISTINCT - 90 * + + 12
----
-1080

query I rowsort
SELECT ALL - 17 + + 31 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT 77 * - COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8968
SELECT 77 * - COUNT ( * ) AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8969
SELECT ALL MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - 83 AS col1, + 49
----
-83
49

query I rowsort
SELECT 96 - 87
----
9

query I rowsort
SELECT DISTINCT + 27 * 55
----
1485

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8973
SELECT DISTINCT - COUNT( * ), 24 DIV + - COUNT( * ) col1
----
-1
-24

skipif mysql # not compatible
query II rowsort label-8973
SELECT DISTINCT - COUNT ( * ), 24 / + - COUNT ( * ) col1
----
-1
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT CASE + + COUNT( * ) WHEN - ( + - 9 ) + - 44 THEN + + 44 + 24 - - 88 * - 58 + + 47 * + 39 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT CASE + + COUNT ( * ) WHEN - ( + - 9 ) + - 44 THEN + + 44 + 24 - - 88 * - 58 + + 47 * + 39 END col0
----
NULL

query II rowsort
SELECT ALL - 51 AS col0, 78
----
-51
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8976
SELECT ( - ( + 62 ) ) DIV + 88 - + - 70 * 53 + + MAX( ALL + + 61 ) col0
----
3771

skipif mysql # not compatible
query I rowsort label-8976
SELECT ( - ( + 62 ) ) / + 88 - + - 70 * 53 + + MAX ( ALL + + 61 ) col0
----
3771

query I rowsort
SELECT 96 + + - 78
----
18

query II rowsort
SELECT ALL - 66 AS col0, 60 * + ( - 45 ) AS col1
----
-66
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT MIN( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-8979
SELECT MIN ( - 88 )
----
-88

query I rowsort
SELECT DISTINCT 66 * + 27
----
1782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8981
SELECT - - 7 DIV 18 + + - CAST( - 63 AS SIGNED ) + - 22 DIV + COUNT( * ) + + 20 * + 64 AS col2, COUNT( * ) AS col2
----
1321
1

skipif mysql # not compatible
query II rowsort label-8981
SELECT - - 7 / 18 + + - CAST ( - 63 AS INTEGER ) + - 22 / + COUNT ( * ) + + 20 * + 64 AS col2, COUNT ( * ) AS col2
----
1321
1

query I rowsort
SELECT + - 86 * - 47
----
4042

query I rowsort
SELECT + 53 + + + 73
----
126

query I rowsort
SELECT + + ( + + 9 ) col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8985
SELECT - 38 * + + 36 - - ( + COUNT( * ) ) + 15 * + COALESCE ( + 3, + AVG ( + 41 ) * + 29 DIV + 55 * - ( 59 ), 83 - + 89 * - COUNT( * ) + ( + COUNT( * ) ) DIV - + 84 * + - 46 * - 17 * + + 64 DIV + 15 ) AS col2, 24
----
-1322
24

skipif mysql # not compatible
query II rowsort label-8985
SELECT - 38 * + + 36 - - ( + COUNT ( * ) ) + 15 * + COALESCE ( + 3, + AVG ( + 41 ) * + 29 / + 55 * - ( 59 ), 83 - + 89 * - COUNT ( * ) + ( + COUNT ( * ) ) / - + 84 * + - 46 * - 17 * + + 64 / + 15 ) AS col2, 24
----
-1322
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL MAX( 76 ) + + - 61
----
15

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL MAX ( 76 ) + + - 61
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8987
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) + + 68 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) + + 68 col2
----
NULL

query II rowsort
SELECT DISTINCT + 18, 91 col0
----
18
91

query I rowsort
SELECT + + 34 + 3 AS col1
----
37

query II rowsort
SELECT ALL 80, + 16 AS col2
----
80
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT + - 60 + ( - COUNT( * ) ) * - + 53 * - CASE WHEN + COUNT( * ) IS NOT NULL THEN + + 39 END + 97 * + 43
----
2044

skipif mysql # not compatible
query I rowsort label-8991
SELECT + - 60 + ( - COUNT ( * ) ) * - + 53 * - CASE WHEN + COUNT ( * ) IS NOT NULL THEN + + 39 END + 97 * + 43
----
2044

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL + 79 + 14 + - + 34 / - 31 + + CASE + MAX( ALL 51 ) WHEN 74 THEN NULL WHEN - + 17 / ( COUNT( ALL + 15 ) ) + + 80 THEN NULL WHEN + - 56 THEN - ( + + 8 ) + + + 36 END * 81 * - 21 / - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL + 79 + 14 + - + 34 / - 31 + + CASE + MAX ( ALL 51 ) WHEN 74 THEN NULL WHEN - + 17 / ( COUNT ( ALL + 15 ) ) + + 80 THEN NULL WHEN + - 56 THEN - ( + + 8 ) + + + 36 END * 81 * - 21 / - 17 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8993
SELECT + COALESCE ( CAST( COUNT( ALL + + NULLIF ( - - 77, 55 ) ) AS SIGNED ), + 79 * + - 43 * + 96 * - ( COUNT( 12 ) ) ) * 18 + + - 50
----
-32

skipif mysql # not compatible
query I rowsort label-8993
SELECT + COALESCE ( CAST ( COUNT ( ALL + + NULLIF ( - - 77, 55 ) ) AS INTEGER ), + 79 * + - 43 * + 96 * - ( COUNT ( 12 ) ) ) * 18 + + - 50
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8994
SELECT - - 10 + + CAST( + - 59 AS DECIMAL ) * + ( - 7 ) * - CASE - 47 WHEN + CASE + 21 WHEN + 93 * CASE - 64 WHEN - COUNT( * ) THEN - ( 14 ) + - - 32 ELSE NULL END / - + 97 + + 58 / - - CAST( NULL AS SIGNED ) THEN - 18 WHEN - 43 THEN + 41 END THEN 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT - - 10 + + CAST ( + - 59 AS REAL ) * + ( - 7 ) * - CASE - 47 WHEN + CASE + 21 WHEN + 93 * CASE - 64 WHEN - COUNT ( * ) THEN - ( 14 ) + - - 32 ELSE NULL END / - + 97 + + 58 / - - CAST ( NULL AS INTEGER ) THEN - 18 WHEN - 43 THEN + 41 END THEN 84 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8995
SELECT + 83 + 96 * + CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
179

skipif mysql # not compatible
query I rowsort label-8995
SELECT + 83 + 96 * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT DISTINCT ( + - 14 ) DIV 94 col2
----
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT ( + - 14 ) / 94 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8997
SELECT - 68 AS col0, 95 + + + ( COALESCE ( - ( + 54 ), 7 ) ) + - COALESCE ( - 45, - - COUNT( + 33 ), 35 ) AS col1
----
-68
86

skipif mysql # not compatible
query II rowsort label-8997
SELECT - 68 AS col0, 95 + + + ( COALESCE ( - ( + 54 ), 7 ) ) + - COALESCE ( - 45, - - COUNT ( + 33 ), 35 ) AS col1
----
-68
86

query II rowsort
SELECT ALL 69, + 16 AS col0
----
69
16

query I rowsort
SELECT DISTINCT 97 - + + 52 - 68
----
-23

query I rowsort
SELECT - 26 + + 70 AS col1
----
44

query I rowsort
SELECT ALL 32 * + 29
----
928

query I rowsort
SELECT - ( - - 87 )
----
-87

query II rowsort
SELECT 95, - 56 AS col2
----
95
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT - 79 + + COUNT( * ) + + COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9004
SELECT - 79 + + COUNT ( * ) + + COUNT ( * ) AS col2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT ALL NULLIF ( 1, - + CAST( + 62 AS SIGNED ) * + 4 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL NULLIF ( 1, - + CAST ( + 62 AS INTEGER ) * + 4 ) AS col1
----
1

query I rowsort
SELECT ALL ( 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT - 60 * COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-9007
SELECT - 60 * COUNT ( * )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9008
SELECT DISTINCT + COALESCE ( 87, + 75 DIV - + 46, - ( - 89 ) DIV + 93, - - 11 * - 81 ) * - 75
----
-6525

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT + COALESCE ( 87, + 75 / - + 46, - ( - 89 ) / + 93, - - 11 * - 81 ) * - 75
----
-6525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9009
SELECT DISTINCT + COUNT( + 24 ) DIV + 51 * + + 70 - 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT + COUNT ( + 24 ) / + 51 * + + 70 - 69 AS col2
----
-69

query I rowsort
SELECT ALL + 51 * + - 30 * + 95 * - 6
----
872100

query I rowsort
SELECT - - 96 * - 29 AS col0
----
-2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9012
SELECT + 85 + + CAST( + + 61 AS SIGNED ) DIV - + 64 + - - CAST( - COUNT( - 58 ) AS SIGNED ) * + - 82 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-9012
SELECT + 85 + + CAST ( + + 61 AS INTEGER ) / - + 64 + - - CAST ( - COUNT ( - 58 ) AS INTEGER ) * + - 82 AS col1
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT ALL + ( - CAST( + - 51 AS SIGNED ) )
----
51

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL + ( - CAST ( + - 51 AS INTEGER ) )
----
51

query II rowsort
SELECT + + 89 AS col1, 7 * - - 53 - 60 - - - 71 * + 57 AS col1
----
89
-3736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9015
SELECT ALL + - CASE + 44 WHEN + SUM( + + 64 ) * + 75 THEN - 1 WHEN CAST( NULL AS SIGNED ) * - + COUNT( * ) THEN + 38 END AS col2, CAST( + 12 AS SIGNED ) + + + 42
----
NULL
54

skipif mysql # not compatible
query II rowsort label-9015
SELECT ALL + - CASE + 44 WHEN + SUM ( + + 64 ) * + 75 THEN - 1 WHEN CAST ( NULL AS INTEGER ) * - + COUNT ( * ) THEN + 38 END AS col2, CAST ( + 12 AS INTEGER ) + + + 42
----
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL + 81 * - - 68 + - COUNT( * ) AS col2
----
5507

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL + 81 * - - 68 + - COUNT ( * ) AS col2
----
5507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9017
SELECT ALL - COUNT( * ) * - - 63 + 67 * - + COALESCE ( + ( 42 ), + 86 * - - 30 DIV + + NULLIF ( + - 81, - 67 ) ) + + COUNT( * ) AS col2
----
-2876

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL - COUNT ( * ) * - - 63 + 67 * - + COALESCE ( + ( 42 ), + 86 * - - 30 / + + NULLIF ( + - 81, - 67 ) ) + + COUNT ( * ) AS col2
----
-2876

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT DISTINCT + ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT + ( - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9019
SELECT DISTINCT + - 0 * + CAST( + - 72 AS SIGNED ) * + + 79 * + - 79 * - + COUNT( * ) + + 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT + - 0 * + CAST ( + - 72 AS INTEGER ) * + + 79 * + - 79 * - + COUNT ( * ) + + 38 AS col0
----
38

query I rowsort
SELECT ALL + 80 * 89 + - 86 + + 67
----
7101

query I rowsort
SELECT ALL + - NULLIF ( - 12, + 44 ) AS col1
----
12

query I rowsort
SELECT ALL 11 * - + 76 AS col1
----
-836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9023
SELECT ALL + - 16 * + - 84 + - CASE - - 36 WHEN COUNT( * ) * - + 88 + 2 * - - 31 THEN 88 WHEN + CAST( + 47 AS SIGNED ) + + 79 THEN + - NULLIF ( + 79, CAST( - 98 AS SIGNED ) ) + + 57 END + - 40 - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL + - 16 * + - 84 + - CASE - - 36 WHEN COUNT ( * ) * - + 88 + 2 * - - 31 THEN 88 WHEN + CAST ( + 47 AS INTEGER ) + + 79 THEN + - NULLIF ( + 79, CAST ( - 98 AS INTEGER ) ) + + 57 END + - 40 - + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL 70 * - ( + + COUNT( DISTINCT + 98 ) ) - - - 95 col1
----
-165

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL 70 * - ( + + COUNT ( DISTINCT + 98 ) ) - - - 95 col1
----
-165

query I rowsort
SELECT + NULLIF ( + 66, + 30 + - - 90 * + 60 + - 73 ) * + 25
----
1650

onlyif mysql # DIV for integer division: 
query I rowsort label-9026
SELECT + ( 54 ) DIV + - 90
----
0

skipif mysql # not compatible
query I rowsort label-9026
SELECT + ( 54 ) / + - 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9027
SELECT - 96 DIV - 50 col2
----
1

skipif mysql # not compatible
query I rowsort label-9027
SELECT - 96 / - 50 col2
----
1

query II rowsort
SELECT ALL COALESCE ( 22, + 62 ), - 51 AS col2
----
22
-51

query I rowsort
SELECT ALL + 27 * - ( 14 ) * - 41
----
15498

onlyif mysql # DIV for integer division: 
query I rowsort label-9030
SELECT + 60 DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9030
SELECT + 60 / + 92 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9031
SELECT ALL - 55 * + 71 * + COUNT( ALL + CAST( NULL AS SIGNED ) ) DIV 99 * + 90 * + - 99 DIV - 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - 55 * + 71 * + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) / 99 * + 90 * + - 99 / - 34 AS col0
----
0

query II rowsort
SELECT ALL 42 * + 64, 14 col1
----
2688
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT MIN( 14 ) * + - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9033
SELECT MIN ( 14 ) * + - 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9034
SELECT CAST( - COUNT( * ) AS SIGNED ) + + 83 - - + 15 / + CAST( NULL AS DECIMAL ) + - + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + 83 - - + 15 / + CAST ( NULL AS REAL ) + - + 99 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9035
SELECT 21 - - - 91, + 32 + CASE + 34 WHEN + 22 * COUNT( * ) THEN + + MIN( CAST( NULL AS SIGNED ) ) / - 71 ELSE NULL END - - COALESCE ( CAST( NULL AS SIGNED ), - 75 + - - CASE - 90 WHEN + 49 THEN + 29 * + 19 + + 50 + 51 - - - 61 + + 51 * + + 59 + + + 45 END, - - 10 * - SUM( ALL - + 41 ) ) + 21 * - 68 * COUNT( 72 ) AS col1
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-9035
SELECT 21 - - - 91, + 32 + CASE + 34 WHEN + 22 * COUNT ( * ) THEN + + MIN ( CAST ( NULL AS INTEGER ) ) / - 71 ELSE NULL END - - COALESCE ( CAST ( NULL AS INTEGER ), - 75 + - - CASE - 90 WHEN + 49 THEN + 29 * + 19 + + 50 + 51 - - - 61 + + 51 * + + 59 + + + 45 END, - - 10 * - SUM ( ALL - + 41 ) ) + 21 * - 68 * COUNT ( 72 ) AS col1
----
-70
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9036
SELECT DISTINCT SUM( DISTINCT + 36 ) + + - CAST( - CAST( - COALESCE ( + 10, - 2 + - + 88 ) AS DECIMAL ) AS SIGNED ) * + 56
----
-524

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT SUM ( DISTINCT + 36 ) + + - CAST ( - CAST ( - COALESCE ( + 10, - 2 + - + 88 ) AS REAL ) AS INTEGER ) * + 56
----
-524

onlyif mysql # aggregate syntax: 
query II rowsort label-9037
SELECT CASE - 33 WHEN MIN( DISTINCT - 48 ) + COUNT( * ) THEN NULL ELSE + + 3 END + + COUNT( * ) AS col1, + 46 col0
----
4
46

skipif mysql # not compatible
query II rowsort label-9037
SELECT CASE - 33 WHEN MIN ( DISTINCT - 48 ) + COUNT ( * ) THEN NULL ELSE + + 3 END + + COUNT ( * ) AS col1, + 46 col0
----
4
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9038
SELECT 31 + + 81 DIV + 37
----
33

skipif mysql # not compatible
query I rowsort label-9038
SELECT 31 + + 81 / + 37
----
33

query I rowsort
SELECT 37 * - 17
----
-629

query I rowsort
SELECT 40 + + 38 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL - 53 + - COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - 53 + - COUNT ( * ) AS col0
----
-54

query I rowsort
SELECT ALL - 73 + + 68 col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL + COUNT( * ) + - 4 col2
----
-3

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL + COUNT ( * ) + - 4 col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9044
SELECT ALL + 4 DIV - + 69 * - COUNT( DISTINCT + + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL + 4 / - + 69 * - COUNT ( DISTINCT + + 77 )
----
0

query I rowsort
SELECT + + ( 1 ) AS col1
----
1

query I rowsort
SELECT ALL - 12 + - 95 AS col2
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT CASE - + COUNT( * ) WHEN 28 + - + 42 + + 67 - - 44 THEN + 79 WHEN - 63 THEN NULL END + + MIN( - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT CASE - + COUNT ( * ) WHEN 28 + - + 42 + + 67 - - 44 THEN + 79 WHEN - 63 THEN NULL END + + MIN ( - 13 )
----
NULL

query II rowsort
SELECT ( - 29 ), 44 AS col2
----
-29
44

query I rowsort
SELECT ALL - - 12 col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9050
SELECT ALL - 52 - 71 + - 92, 84 * + + CAST( NULL AS SIGNED ) col0
----
-215
NULL

skipif mysql # not compatible
query II rowsort label-9050
SELECT ALL - 52 - 71 + - 92, 84 * + + CAST ( NULL AS INTEGER ) col0
----
-215
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL - + COUNT( ALL ( + 69 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL - + COUNT ( ALL ( + 69 ) ) AS col2
----
-1

query I rowsort
SELECT ALL - + 18 AS col0
----
-18

query I rowsort
SELECT 87 + + 96 AS col0
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-9054
SELECT 47 col0, CASE + + 89 WHEN - - 68 * - + 57 * 73 / + - 10 THEN + 73 + + 96 * - 62 WHEN - 72 THEN 38 ELSE NULL END - - - 58 + - + 6 * + 88 * COUNT( * ) * 54 AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-9054
SELECT 47 col0, CASE + + 89 WHEN - - 68 * - + 57 * 73 / + - 10 THEN + 73 + + 96 * - 62 WHEN - 72 THEN 38 ELSE NULL END - - - 58 + - + 6 * + 88 * COUNT ( * ) * 54 AS col2
----
47
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9055
SELECT ALL + 86 * - 25 DIV - - 5 AS col1, + 28
----
-430
28

skipif mysql # not compatible
query II rowsort label-9055
SELECT ALL + 86 * - 25 / - - 5 AS col1, + 28
----
-430
28

query II rowsort
SELECT - 32 AS col1, + 71
----
-32
71

query I rowsort
SELECT DISTINCT + 68 * 37
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT NULLIF ( - 54, 7 / COUNT( * ) * + 9 ) * 91 AS col0
----
-4914

skipif mysql # not compatible
query I rowsort label-9058
SELECT NULLIF ( - 54, 7 / COUNT ( * ) * + 9 ) * 91 AS col0
----
-4914

query II rowsort
SELECT - 43 AS col0, 96 AS col0
----
-43
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT COUNT( * ) + 78 col0
----
79

skipif mysql # not compatible
query I rowsort label-9060
SELECT COUNT ( * ) + 78 col0
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9061
SELECT CAST( NULL AS DECIMAL ) + - - 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT CAST ( NULL AS REAL ) + - - 81 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT DISTINCT 30 DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT 30 / 96 AS col2
----
0

query I rowsort
SELECT DISTINCT 42 + ( 3 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT DISTINCT COUNT( * ) + - 87 + - + 72 AS col0
----
-158

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT COUNT ( * ) + - 87 + - + 72 AS col0
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT COUNT( ALL + + 64 )
----
1

skipif mysql # not compatible
query I rowsort label-9065
SELECT COUNT ( ALL + + 64 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9066
SELECT ALL - 24 + - ( + 2 ) - - 70 + + - 59 DIV MAX( ALL - ( 39 ) ) AS col0, MAX( - 86 ) AS col1
----
45
-86

skipif mysql # not compatible
query II rowsort label-9066
SELECT ALL - 24 + - ( + 2 ) - - 70 + + - 59 / MAX ( ALL - ( 39 ) ) AS col0, MAX ( - 86 ) AS col1
----
45
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9067
SELECT ALL COUNT( * ) * - + COUNT( * ) * + - 15 + - 82 AS col1, - 38 * 5 + + ( - 45 ) col1
----
-67
-235

skipif mysql # not compatible
query II rowsort label-9067
SELECT ALL COUNT ( * ) * - + COUNT ( * ) * + - 15 + - 82 AS col1, - 38 * 5 + + ( - 45 ) col1
----
-67
-235

query I rowsort
SELECT 52 * 47
----
2444

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9069
SELECT 32, - 9 DIV - SUM( + 39 ) AS col2
----
32
0

skipif mysql # not compatible
query II rowsort label-9069
SELECT 32, - 9 / - SUM ( + 39 ) AS col2
----
32
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9070
SELECT - + MAX( DISTINCT - 28 ) * + + 50 + - 30 + - CASE - + 95 WHEN - - 72 + + + CASE + 38 WHEN 73 / 11 THEN COUNT( + 61 ) * + 81 + 19 WHEN - CAST( + + 31 AS SIGNED ) * 25 - + - 63 + - 7 THEN 30 * - 98 * + 96 END * - 47 THEN + 24 ELSE NULL END + + 31 + - + 27 * - 96 * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT - + MAX ( DISTINCT - 28 ) * + + 50 + - 30 + - CASE - + 95 WHEN - - 72 + + + CASE + 38 WHEN 73 / 11 THEN COUNT ( + 61 ) * + 81 + 19 WHEN - CAST ( + + 31 AS INTEGER ) * 25 - + - 63 + - 7 THEN 30 * - 98 * + 96 END * - 47 THEN + 24 ELSE NULL END + + 31 + - + 27 * - 96 * 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9071
SELECT + 69 + CAST( - + COUNT( * ) AS SIGNED ) + + 33 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-9071
SELECT + 69 + CAST ( - + COUNT ( * ) AS INTEGER ) + + 33 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT + COUNT( * ) - - - 7
----
-6

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT + COUNT ( * ) - - - 7
----
-6

query I rowsort
SELECT ALL - + 10
----
-10

query I rowsort
SELECT DISTINCT - + 84 AS col0
----
-84

query I rowsort
SELECT 1 * - ( 93 ) + - - 21 AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9076
SELECT + 7 + + 66 + + - MIN( DISTINCT - 45 ) + + COUNT( * ) * - CAST( NULL AS DECIMAL ) * + 65 * + + 84 * 76 * + + 84 + + 64 * 6 * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT + 7 + + 66 + + - MIN ( DISTINCT - 45 ) + + COUNT ( * ) * - CAST ( NULL AS REAL ) * + 65 * + + 84 * 76 * + + 84 + + 64 * 6 * + 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9077
SELECT + 44, - 50 - COUNT( * ) + + - 2 * 37 + - 49 AS col0
----
44
-174

skipif mysql # not compatible
query II rowsort label-9077
SELECT + 44, - 50 - COUNT ( * ) + + - 2 * 37 + - 49 AS col0
----
44
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9078
SELECT DISTINCT - - CASE WHEN NULL NOT BETWEEN + 91 AND ( ( + 73 ) + + CASE 21 WHEN 36 * COUNT( * ) * + + 93 * + CASE 27 WHEN + NULLIF ( ( - CAST( NULL AS SIGNED ) ), - COUNT( * ) + - SUM( - 21 ) ) THEN NULL ELSE - 3 / - + 88 * 1 END * 83 + + ( + + 77 ) + + - COALESCE ( - 58, - 78 ) + - 75 + 9 * - 15 / - 15 * 4 + 83 THEN NULL WHEN 82 + 97 THEN + 32 + 77 ELSE 15 END + 96 * - 6 * 0 ) THEN NULL ELSE COUNT( * ) END / - CASE 80 WHEN 92 THEN - ( - 32 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT - - CASE WHEN NULL NOT BETWEEN + 91 AND ( ( + 73 ) + + CASE 21 WHEN 36 * COUNT ( * ) * + + 93 * + CASE 27 WHEN + NULLIF ( ( - CAST ( NULL AS INTEGER ) ), - COUNT ( * ) + - SUM ( - 21 ) ) THEN NULL ELSE - 3 / - + 88 * 1 END * 83 + + ( + + 77 ) + + - COALESCE ( - 58, - 78 ) + - 75 + 9 * - 15 / - 15 * 4 + 83 THEN NULL WHEN 82 + 97 THEN + 32 + 77 ELSE 15 END + 96 * - 6 * 0 ) THEN NULL ELSE COUNT ( * ) END / - CASE 80 WHEN 92 THEN - ( - 32 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT 61 * - + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9079
SELECT 61 * - + COUNT ( * )
----
-61

query I rowsort
SELECT ALL - 54 * - 2
----
108

query I rowsort
SELECT 67 - + - 32 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT DISTINCT - ( - 11 ) + + 25 - - + COUNT( * ) * - 6 * + 25 * 72 + + + CASE + 59 WHEN 34 THEN + 53 WHEN - 67 * - 22 THEN + COUNT( * ) WHEN COUNT( * ) THEN + ( + 52 ) ELSE - COUNT( * ) END
----
-10765

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - ( - 11 ) + + 25 - - + COUNT ( * ) * - 6 * + 25 * 72 + + + CASE + 59 WHEN 34 THEN + 53 WHEN - 67 * - 22 THEN + COUNT ( * ) WHEN COUNT ( * ) THEN + ( + 52 ) ELSE - COUNT ( * ) END
----
-10765

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT ALL CASE 34 WHEN + COUNT( * ) * + 2 THEN NULL WHEN + 75 THEN 31 / + 28 * + - 35 WHEN NULLIF ( + 82, + 71 ) THEN - 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL CASE 34 WHEN + COUNT ( * ) * + 2 THEN NULL WHEN + 75 THEN 31 / + 28 * + - 35 WHEN NULLIF ( + 82, + 71 ) THEN - 40 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT DISTINCT MAX( DISTINCT - ( - 66 ) ) col0
----
66

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT MAX ( DISTINCT - ( - 66 ) ) col0
----
66

query II rowsort
SELECT - 37 - - + 59, 48 * 90 AS col0
----
22
4320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9086
SELECT ALL + 64 + + - 6 - + 83 DIV - COUNT( * ) AS col0, - 44 + 59 * - + 29 AS col0
----
141
-1755

skipif mysql # not compatible
query II rowsort label-9086
SELECT ALL + 64 + + - 6 - + 83 / - COUNT ( * ) AS col0, - 44 + 59 * - + 29 AS col0
----
141
-1755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9087
SELECT - CAST( NULL AS SIGNED ) + + 35 + 13 + - CAST( NULL AS SIGNED ) * - COUNT( * ) - + - 27 * - - COALESCE ( - CASE + 34 WHEN 95 + - + NULLIF ( - + 50, - - AVG ( ALL + 5 ) * + - MAX( 31 ) ) THEN - 26 / 72 + + CASE + + COUNT( * ) WHEN 20 * 68 + + 32 THEN NULL WHEN - 58 THEN NULL WHEN - + 77 THEN - 17 END WHEN - 27 THEN NULL END, + CASE + 69 WHEN 79 * + ( 50 ) THEN 54 + - 47 * ( 47 ) ELSE - 42 * - CAST( 93 * + SUM( DISTINCT 18 ) AS SIGNED ) + - 67 * 29 END, + 15 + + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT - CAST ( NULL AS INTEGER ) + + 35 + 13 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + - 27 * - - COALESCE ( - CASE + 34 WHEN 95 + - + NULLIF ( - + 50, - - AVG ( ALL + 5 ) * + - MAX ( 31 ) ) THEN - 26 / 72 + + CASE + + COUNT ( * ) WHEN 20 * 68 + + 32 THEN NULL WHEN - 58 THEN NULL WHEN - + 77 THEN - 17 END WHEN - 27 THEN NULL END, + CASE + 69 WHEN 79 * + ( 50 ) THEN 54 + - 47 * ( 47 ) ELSE - 42 * - CAST ( 93 * + SUM ( DISTINCT 18 ) AS INTEGER ) + - 67 * 29 END, + 15 + + 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT - SUM( 16 ) + + 56
----
40

skipif mysql # not compatible
query I rowsort label-9088
SELECT - SUM ( 16 ) + + 56
----
40

query I rowsort
SELECT - 60 + 89
----
29

query I rowsort
SELECT ALL 89 * + 34
----
3026

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL + COUNT( + NULLIF ( - ( - - 61 ), + 82 ) ) + - 0 col0
----
1

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL + COUNT ( + NULLIF ( - ( - - 61 ), + 82 ) ) + - 0 col0
----
1

query I rowsort
SELECT DISTINCT - 38 * - + ( - + 16 ) AS col1
----
-608

query I rowsort
SELECT - 30 + 54 * + 53 col1
----
2832

onlyif mysql # aggregate syntax: 
query II rowsort label-9094
SELECT DISTINCT + ( + COALESCE ( - 27, - 81 ) ), MAX( DISTINCT - 14 ) AS col0
----
-27
-14

skipif mysql # not compatible
query II rowsort label-9094
SELECT DISTINCT + ( + COALESCE ( - 27, - 81 ) ), MAX ( DISTINCT - 14 ) AS col0
----
-27
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ALL - 37 * - + COUNT( + - 70 )
----
37

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL - 37 * - + COUNT ( + - 70 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT - 75 + COUNT( DISTINCT + 98 )
----
-74

skipif mysql # not compatible
query I rowsort label-9096
SELECT - 75 + COUNT ( DISTINCT + 98 )
----
-74

query I rowsort
SELECT + 58 + - ( + 84 )
----
-26

query II rowsort
SELECT ALL + 12 - 39 col2, - CASE - + 42 WHEN - + 61 THEN NULL WHEN + 0 + - 26 THEN + - 2 END + + - 65
----
-27
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT CAST( + 24 AS SIGNED ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9099
SELECT CAST ( + 24 AS INTEGER ) AS col2
----
24

query I rowsort
SELECT - + ( - 13 )
----
13

query I rowsort
SELECT DISTINCT 73 * + 84
----
6132

query II rowsort
SELECT ALL 77 * - 11, + 96 + + - 4 + + + 58 AS col2
----
-847
150

query I rowsort
SELECT + 61 * - - 52 * + - 80
----
-253760

query II rowsort
SELECT + + NULLIF ( + ( - 19 ), + 20 + - 47 ), - 0 + - 64 col2
----
-19
-64

query II rowsort
SELECT + - 30 * - 59, - 38 col1
----
1770
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT - 80 * + MIN( DISTINCT + 22 ) AS col1
----
-1760

skipif mysql # not compatible
query I rowsort label-9106
SELECT - 80 * + MIN ( DISTINCT + 22 ) AS col1
----
-1760

query I rowsort
SELECT + 91 + - 88
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT 97 * - + COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT 97 * - + COUNT ( * ) AS col2
----
-97

query II rowsort
SELECT ALL + 95 * + 30 + + - 49, 53 AS col2
----
2801
53

query II rowsort
SELECT ALL + 25, + 44 AS col2
----
25
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL + CASE + + ( 32 ) WHEN - 98 + + 58 THEN 83 * 73 * - + 46 WHEN + MAX( 73 ) THEN 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL + CASE + + ( 32 ) WHEN - 98 + + 58 THEN 83 * 73 * - + 46 WHEN + MAX ( 73 ) THEN 22 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9112
SELECT COALESCE ( + COUNT( * ), 87 + + 20, SUM( - + ( + 56 ) ) * - 66 + + 45 - - - CASE + - 43 WHEN + 68 * + 20 - 30 - + 88 THEN + + 18 * 28 + - 8 + COUNT( * ) DIV + 65 ELSE - 35 END - - ( COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9112
SELECT COALESCE ( + COUNT ( * ), 87 + + 20, SUM ( - + ( + 56 ) ) * - 66 + + 45 - - - CASE + - 43 WHEN + 68 * + 20 - 30 - + 88 THEN + + 18 * 28 + - 8 + COUNT ( * ) / + 65 ELSE - 35 END - - ( COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9113
SELECT - 63 * 54 + + COUNT( * ), - COUNT( * ) + - MIN( - + 8 ) AS col0
----
-3401
7

skipif mysql # not compatible
query II rowsort label-9113
SELECT - 63 * 54 + + COUNT ( * ), - COUNT ( * ) + - MIN ( - + 8 ) AS col0
----
-3401
7

query I rowsort
SELECT + 8 * + 68
----
544

query I rowsort
SELECT - ( - ( + 19 ) )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9116
SELECT - 90 + 72 DIV - + 21 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-9116
SELECT - 90 + 72 / - + 21 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT MAX( + - 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9117
SELECT MAX ( + - 99 ) AS col0
----
-99

query I rowsort
SELECT 33 * + 9 + - 86 col1
----
211

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT DISTINCT 50 * 38 DIV 51 DIV - 92 + + 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT 50 * 38 / 51 / - 92 + + 48 AS col0
----
48

query I rowsort
SELECT ALL 84 * 86
----
7224

query I rowsort
SELECT ALL ( - 58 ) AS col0
----
-58

query I rowsort
SELECT DISTINCT - 79 + 27 * + 11 * + 84 col1
----
24869

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT DISTINCT COUNT( * ) * + 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT COUNT ( * ) * + 50 AS col2
----
50

query I rowsort
SELECT ALL + 61 + - 39 col1
----
22

query I rowsort
SELECT - 48 * - 88
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT ALL CASE - 93 WHEN + COUNT( * ) THEN NULL ELSE - 92 + - 8 + - 31 END AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL CASE - 93 WHEN + COUNT ( * ) THEN NULL ELSE - 92 + - 8 + - 31 END AS col2
----
-131

query I rowsort
SELECT ALL COALESCE ( - + 20, 77 ) col2
----
-20

query I rowsort
SELECT + 18 * + + 85 AS col1
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT - COUNT( 40 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9129
SELECT - COUNT ( 40 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9130
SELECT - - COALESCE ( - CAST( - MAX( DISTINCT - - 70 ) AS SIGNED ), - + 54 ) * 80 AS col2
----
5600

skipif mysql # not compatible
query I rowsort label-9130
SELECT - - COALESCE ( - CAST ( - MAX ( DISTINCT - - 70 ) AS INTEGER ), - + 54 ) * 80 AS col2
----
5600

query I rowsort
SELECT - 95 - 97 * 77
----
-7564

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL COUNT( ALL - 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL COUNT ( ALL - 81 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9133
SELECT DISTINCT - 10 AS col0, + CAST( - + 14 AS SIGNED ) + + SUM( DISTINCT + 19 ) + 13 - + 34
----
-10
-16

skipif mysql # not compatible
query II rowsort label-9133
SELECT DISTINCT - 10 AS col0, + CAST ( - + 14 AS INTEGER ) + + SUM ( DISTINCT + 19 ) + 13 - + 34
----
-10
-16

query I rowsort
SELECT - 75 + - 60
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9135
SELECT + + COUNT( * ) DIV + 87 * - 90
----
0

skipif mysql # not compatible
query I rowsort label-9135
SELECT + + COUNT ( * ) / + 87 * - 90
----
0

query I rowsort
SELECT - + ( - 5 ) * + - 81 + + - 93 AS col2
----
-498

query I rowsort
SELECT DISTINCT + - 24 AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT + 67 + + + CAST( + - ( + 31 ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-9138
SELECT + 67 + + + CAST ( + - ( + 31 ) AS INTEGER )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9139
SELECT + + CAST( - + 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-9139
SELECT + + CAST ( - + 32 AS INTEGER )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9140
SELECT + 81 / + + 24 * 29 - - 70 * - + ( + CAST( NULL AS SIGNED ) ) * - + COALESCE ( - 15, - 3 + + 66, - - COUNT( * ) ) + - - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT + 81 / + + 24 * 29 - - 70 * - + ( + CAST ( NULL AS INTEGER ) ) * - + COALESCE ( - 15, - 3 + + 66, - - COUNT ( * ) ) + - - 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9141
SELECT ALL + COUNT( * ) DIV - - 13 + + - ( + - COUNT( * ) ) + + 86 * COALESCE ( + COUNT( * ), + - CASE + CAST( NULL AS SIGNED ) WHEN + 28 DIV - 67 DIV ( + 71 ) THEN NULL ELSE + + 34 END - + - 16 + + COUNT( * ) + + 57 * - ( - - COUNT( * ) ) * COUNT( * ) )
----
87

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL + COUNT ( * ) / - - 13 + + - ( + - COUNT ( * ) ) + + 86 * COALESCE ( + COUNT ( * ), + - CASE + CAST ( NULL AS INTEGER ) WHEN + 28 / - 67 / ( + 71 ) THEN NULL ELSE + + 34 END - + - 16 + + COUNT ( * ) + + 57 * - ( - - COUNT ( * ) ) * COUNT ( * ) )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9142
SELECT ALL + 53 col2, ( CAST( NULL AS SIGNED ) )
----
53
NULL

skipif mysql # not compatible
query II rowsort label-9142
SELECT ALL + 53 col2, ( CAST ( NULL AS INTEGER ) )
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT + COALESCE ( MIN( ALL - + 10 ), - - 71 )
----
-10

skipif mysql # not compatible
query I rowsort label-9143
SELECT + COALESCE ( MIN ( ALL - + 10 ), - - 71 )
----
-10

query I rowsort
SELECT DISTINCT - 82 + 45 AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9145
SELECT ALL 14 * COUNT( * ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL 14 * COUNT ( * ) / - 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9146
SELECT + 72, 29 * + + 14 + + ( COUNT( * ) ) AS col0
----
72
407

skipif mysql # not compatible
query II rowsort label-9146
SELECT + 72, 29 * + + 14 + + ( COUNT ( * ) ) AS col0
----
72
407

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT ALL COALESCE ( - 76, - 71 ) + - CAST( + 31 AS SIGNED ) AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL COALESCE ( - 76, - 71 ) + - CAST ( + 31 AS INTEGER ) AS col1
----
-107

query II rowsort
SELECT 57, 50 AS col0
----
57
50

query I rowsort
SELECT 31 * + - 55 * + 14
----
-23870

query II rowsort
SELECT 2 - + 75 AS col0, + 92 + + 1
----
-73
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9151
SELECT ALL 43 * 42, - MAX( ALL 13 ) AS col1
----
1806
-13

skipif mysql # not compatible
query II rowsort label-9151
SELECT ALL 43 * 42, - MAX ( ALL 13 ) AS col1
----
1806
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT COUNT( * ) * + - 60
----
-60

skipif mysql # not compatible
query I rowsort label-9152
SELECT COUNT ( * ) * + - 60
----
-60

query I rowsort
SELECT ALL - 92 col1
----
-92

query II rowsort
SELECT 87 AS col0, - 83 AS col0
----
87
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL ( 42 ) - - COUNT( * ) + + - ( - 48 ) * - 13 AS col2
----
-581

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL ( 42 ) - - COUNT ( * ) + + - ( - 48 ) * - 13 AS col2
----
-581

query I rowsort
SELECT DISTINCT - 74 * 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT - 77 * 76 + + - 63 * + COUNT( * ) * - + 62 * - - COUNT( * ) AS col0
----
-1946

skipif mysql # not compatible
query I rowsort label-9157
SELECT - 77 * 76 + + - 63 * + COUNT ( * ) * - + 62 * - - COUNT ( * ) AS col0
----
-1946

query I rowsort
SELECT 46 - + + 68
----
-22

query I rowsort
SELECT 20 + + 61
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9160
SELECT ALL 16, - 61 + + 9 - + MAX( ALL - 83 ) AS col1
----
16
31

skipif mysql # not compatible
query II rowsort label-9160
SELECT ALL 16, - 61 + + 9 - + MAX ( ALL - 83 ) AS col1
----
16
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT COUNT( * ) + 39 * - ( - - CASE - + 40 WHEN - 97 THEN - 68 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT COUNT ( * ) + 39 * - ( - - CASE - + 40 WHEN - 97 THEN - 68 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9162
SELECT + 55 AS col1, 47 + - NULLIF ( - 28, COUNT( * ) ) DIV 28 AS col2
----
55
48

skipif mysql # not compatible
query II rowsort label-9162
SELECT + 55 AS col1, 47 + - NULLIF ( - 28, COUNT ( * ) ) / 28 AS col2
----
55
48

query I rowsort
SELECT 37 * + 84 AS col0
----
3108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT - CAST( NULL AS SIGNED ) * + ( - - 5 ) + + - ( + + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT - CAST ( NULL AS INTEGER ) * + ( - - 5 ) + + - ( + + 6 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9165
SELECT DISTINCT + - 4 * COALESCE ( - COUNT( * ), - 55, - 3 ) / + + AVG ( - 31 ) * - + CAST( NULL AS DECIMAL ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT + - 4 * COALESCE ( - COUNT ( * ), - 55, - 3 ) / + + AVG ( - 31 ) * - + CAST ( NULL AS REAL ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT - 80 + - ( - 79 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT DISTINCT 54 * 17 DIV - 26
----
-35

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT 54 * 17 / - 26
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT COUNT( * ) + + 75 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9168
SELECT COUNT ( * ) + + 75 AS col1
----
76

query I rowsort
SELECT + 2 * - - 62
----
124

query I rowsort
SELECT DISTINCT - 93 * - 91
----
8463

query II rowsort
SELECT - 0, + ( 99 ) + 4 AS col0
----
0
103

query I rowsort
SELECT - ( + 80 )
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9173
SELECT - 69 DIV 46
----
-1

skipif mysql # not compatible
query I rowsort label-9173
SELECT - 69 / 46
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT + MIN( DISTINCT + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9174
SELECT + MIN ( DISTINCT + 79 ) AS col0
----
79

query I rowsort
SELECT ( + 27 ) + + - 55
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT 86 * + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9176
SELECT 86 * + COUNT ( * ) AS col1
----
86

query I rowsort
SELECT 45 + - 84
----
-39

query I rowsort
SELECT - - 76 AS col1
----
76

query I rowsort
SELECT ALL - - 74 + 97 AS col0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT - COUNT( ALL 42 ) + + 91
----
90

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT - COUNT ( ALL 42 ) + + 91
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9181
SELECT ALL - + 62, + COUNT( * ) AS col1
----
-62
1

skipif mysql # not compatible
query II rowsort label-9181
SELECT ALL - + 62, + COUNT ( * ) AS col1
----
-62
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9182
SELECT ALL - 95 + + NULLIF ( CAST( NULL AS SIGNED ), 99 ) / + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL - 95 + + NULLIF ( CAST ( NULL AS INTEGER ), 99 ) / + ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT ALL + 41 + + - COUNT( * ) * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL + 41 + + - COUNT ( * ) * COUNT ( * )
----
40

query I rowsort
SELECT 76 + - 90 + + 35 + - - 70 col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9185
SELECT - 18 DIV - + 51 - + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9185
SELECT - 18 / - + 51 - + + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT DISTINCT + 23 * SUM( ALL + 62 )
----
1426

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT + 23 * SUM ( ALL + 62 )
----
1426

query I rowsort
SELECT 21 - - ( - 64 ) AS col1
----
-43

query I rowsort
SELECT ALL - ( + 78 ) AS col2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9189
SELECT - 55 * - 59 + MIN( - CAST( 69 AS SIGNED ) ) AS col0
----
3176

skipif mysql # not compatible
query I rowsort label-9189
SELECT - 55 * - 59 + MIN ( - CAST ( 69 AS INTEGER ) ) AS col0
----
3176

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT ALL - ( - NULLIF ( - + NULLIF ( - ( - 78 ), - 89 ), - - 81 * + 30 + + COALESCE ( COUNT( * ), 18 / - - 13 ) ) )
----
-78

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL - ( - NULLIF ( - + NULLIF ( - ( - 78 ), - 89 ), - - 81 * + 30 + + COALESCE ( COUNT ( * ), 18 / - - 13 ) ) )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9191
SELECT COUNT( * ) + + - 64 col1, + 26
----
-63
26

skipif mysql # not compatible
query II rowsort label-9191
SELECT COUNT ( * ) + + - 64 col1, + 26
----
-63
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9192
SELECT ALL CAST( + 35 AS SIGNED ) * - + ( + MAX( + 94 ) ) AS col0
----
-3290

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL CAST ( + 35 AS INTEGER ) * - + ( + MAX ( + 94 ) ) AS col0
----
-3290

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL - MAX( - ( - 1 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL - MAX ( - ( - 1 ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + ( - + 41 ) - + - 31 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ( + 19 ) * 22 * + 63 + COUNT( ALL + 28 ) AS col1
----
26335

skipif mysql # not compatible
query I rowsort label-9195
SELECT ( + 19 ) * 22 * + 63 + COUNT ( ALL + 28 ) AS col1
----
26335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT ALL CAST( NULL AS SIGNED ) * 26 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL CAST ( NULL AS INTEGER ) * 26 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9197
SELECT 27 * + CAST( NULL AS SIGNED ) * - + COALESCE ( + + 70, - 4 ) * - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT 27 * + CAST ( NULL AS INTEGER ) * - + COALESCE ( + + 70, - 4 ) * - 15 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9198
SELECT 30 * - 26 AS col2, NULLIF ( - + 92, + - CAST( - COUNT( * ) AS DECIMAL ) ) + + 49
----
-780
-43

skipif mysql # not compatible
query II rowsort label-9198
SELECT 30 * - 26 AS col2, NULLIF ( - + 92, + - CAST ( - COUNT ( * ) AS REAL ) ) + + 49
----
-780
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT 65 + MIN( DISTINCT - 95 ) * - - 66 AS col0
----
-6205

skipif mysql # not compatible
query I rowsort label-9199
SELECT 65 + MIN ( DISTINCT - 95 ) * - - 66 AS col0
----
-6205

onlyif mysql # DIV for integer division: 
query II rowsort label-9200
SELECT 21 * - 29, - 44 * 93 DIV - + 35 + - 74 col2
----
-609
42

skipif mysql # not compatible
query II rowsort label-9200
SELECT 21 * - 29, - 44 * 93 / - + 35 + - 74 col2
----
-609
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9201
SELECT ALL + + 85 * 22 + COALESCE ( + - 72, - - 42 ) AS col2, + MAX( DISTINCT 4 )
----
1798
4

skipif mysql # not compatible
query II rowsort label-9201
SELECT ALL + + 85 * 22 + COALESCE ( + - 72, - - 42 ) AS col2, + MAX ( DISTINCT 4 )
----
1798
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9202
SELECT DISTINCT 43 * + 76, CASE + ( + - COUNT( * ) ) WHEN - COUNT( * ) - - - 68 THEN 44 ELSE NULL END + - ( - 4 ) AS col0
----
3268
NULL

skipif mysql # not compatible
query II rowsort label-9202
SELECT DISTINCT 43 * + 76, CASE + ( + - COUNT ( * ) ) WHEN - COUNT ( * ) - - - 68 THEN 44 ELSE NULL END + - ( - 4 ) AS col0
----
3268
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT ALL ( + ( + - CASE COUNT( * ) WHEN - 36 - + 15 * - - 21 THEN NULL ELSE - CASE + + 15 WHEN + 21 * - 66 THEN NULL WHEN - + CAST( + 4 AS SIGNED ) THEN - + 62 / - NULLIF ( COUNT( * ), + MAX( DISTINCT + 10 ) * + - 6 ) ELSE NULL END / 70 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL ( + ( + - CASE COUNT ( * ) WHEN - 36 - + 15 * - - 21 THEN NULL ELSE - CASE + + 15 WHEN + 21 * - 66 THEN NULL WHEN - + CAST ( + 4 AS INTEGER ) THEN - + 62 / - NULLIF ( COUNT ( * ), + MAX ( DISTINCT + 10 ) * + - 6 ) ELSE NULL END / 70 END ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - 73 ) + - 22 + + 53 AS col2
----
-42

query I rowsort
SELECT 24 * - + NULLIF ( - 19, + ( 50 ) ) * + + 99
----
45144

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - - COALESCE ( + + 59, + - COUNT( * ) * + 54 + - + 37 )
----
59

skipif mysql # not compatible
query I rowsort label-9206
SELECT - - COALESCE ( + + 59, + - COUNT ( * ) * + 54 + - + 37 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT CAST( - 36 AS SIGNED ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-9207
SELECT CAST ( - 36 AS INTEGER ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9208
SELECT ALL + 48 + + + 24 AS col2, - COUNT( * )
----
72
-1

skipif mysql # not compatible
query II rowsort label-9208
SELECT ALL + 48 + + + 24 AS col2, - COUNT ( * )
----
72
-1

query I rowsort
SELECT + 93 - + 33 AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT DISTINCT 68 + 48 - + - CAST( NULL AS SIGNED ) * + + 31 * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT 68 + 48 - + - CAST ( NULL AS INTEGER ) * + + 31 * 7
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9211
SELECT DISTINCT 72 + COALESCE ( 13, + 86 DIV - 53 - COUNT( ALL - 75 ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT 72 + COALESCE ( 13, + 86 / - 53 - COUNT ( ALL - 75 ) ) AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9212
SELECT ALL 86 + - 56, 31 + - CAST( + 64 AS SIGNED ) AS col2
----
30
-33

skipif mysql # not compatible
query II rowsort label-9212
SELECT ALL 86 + - 56, 31 + - CAST ( + 64 AS INTEGER ) AS col2
----
30
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9213
SELECT + 33 DIV - - CASE + CAST( + - COUNT( * ) AS SIGNED ) WHEN + + ( + - COUNT( * ) ) THEN 23 * + 50 * - 63 * - + 7 WHEN - 58 THEN NULL ELSE NULL END * - 55 * - - 57 DIV + + COUNT( DISTINCT 71 )
----
0

skipif mysql # not compatible
query I rowsort label-9213
SELECT + 33 / - - CASE + CAST ( + - COUNT ( * ) AS INTEGER ) WHEN + + ( + - COUNT ( * ) ) THEN 23 * + 50 * - 63 * - + 7 WHEN - 58 THEN NULL ELSE NULL END * - 55 * - - 57 / + + COUNT ( DISTINCT 71 )
----
0

query I rowsort
SELECT - 73 - + 59 col0
----
-132

query I rowsort
SELECT + COALESCE ( - + 10, + 60, 24 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT - 91 + + MAX( + 70 ) + - 75 + 99 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9216
SELECT - 91 + + MAX ( + 70 ) + - 75 + 99 AS col2
----
3

query I rowsort
SELECT - 79 * + 13
----
-1027

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT NULLIF ( - 51, - MIN( - + 4 ) ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-9218
SELECT NULLIF ( - 51, - MIN ( - + 4 ) ) col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT + COUNT( * ) * - - COALESCE ( + 73, 72 * - 17 * + COUNT( ALL - 49 ) + - 18, + - 58 ) - 0 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT + COUNT ( * ) * - - COALESCE ( + 73, 72 * - 17 * + COUNT ( ALL - 49 ) + - 18, + - 58 ) - 0 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT DISTINCT + MIN( + 17 ) * 81
----
1377

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT + MIN ( + 17 ) * 81
----
1377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9221
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * + + 26 * + + 28 AS col0
----
728

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * + + 26 * + + 28 AS col0
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT DISTINCT + MIN( - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT + MIN ( - 93 ) AS col1
----
-93

query II rowsort
SELECT + 47, - 78 AS col0
----
47
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT MIN( DISTINCT + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9224
SELECT MIN ( DISTINCT + 14 )
----
14

query II rowsort
SELECT ALL + COALESCE ( + ( - 26 ), 1 ) AS col2, 95 col1
----
-26
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9226
SELECT DISTINCT 87 DIV 35 + + 26 col1, + CASE + 29 WHEN 66 THEN 16 DIV - 2 + + ( + - COUNT( * ) ) * 20 + - + 63 WHEN 89 THEN NULL WHEN + + 86 * + COUNT( * ) DIV 49 THEN COUNT( * ) END AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-9226
SELECT DISTINCT 87 / 35 + + 26 col1, + CASE + 29 WHEN 66 THEN 16 / - 2 + + ( + - COUNT ( * ) ) * 20 + - + 63 WHEN 89 THEN NULL WHEN + + 86 * + COUNT ( * ) / 49 THEN COUNT ( * ) END AS col2
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT - SUM( DISTINCT + 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9227
SELECT - SUM ( DISTINCT + 56 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT - - 99 * + + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-9228
SELECT - - 99 * + + COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT ALL - + MAX( - 13 ) + + 41 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - + MAX ( - 13 ) + + 41 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9230
SELECT ALL - + COUNT( * ) DIV + 63 * - ( - COALESCE ( + CAST( + - 77 AS SIGNED ), 92 + - 2 ) ) * + - ( + - MIN( + ( - 28 ) ) ) + - + 0 * - + COALESCE ( CAST( - 73 AS SIGNED ), - 5 + - - ( + + COALESCE ( - CAST( - - NULLIF ( - 44, - 99 * - - 74 ) AS SIGNED ), + SUM( DISTINCT + - 13 ), + 31 * - 27 DIV - 64 * NULLIF ( + 25, CAST( - + 56 AS SIGNED ) ) + + ( + NULLIF ( 78, ( + COUNT( * ) ) ) ) ) ) - 38 ) + ( + 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL - + COUNT ( * ) / + 63 * - ( - COALESCE ( + CAST ( + - 77 AS INTEGER ), 92 + - 2 ) ) * + - ( + - MIN ( + ( - 28 ) ) ) + - + 0 * - + COALESCE ( CAST ( - 73 AS INTEGER ), - 5 + - - ( + + COALESCE ( - CAST ( - - NULLIF ( - 44, - 99 * - - 74 ) AS INTEGER ), + SUM ( DISTINCT + - 13 ), + 31 * - 27 / - 64 * NULLIF ( + 25, CAST ( - + 56 AS INTEGER ) ) + + ( + NULLIF ( 78, ( + COUNT ( * ) ) ) ) ) ) - 38 ) + ( + 86 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT - 74 * + + 37 * - 74 + + NULLIF ( + 74, CASE - 52 WHEN - 33 THEN 98 + - 80 + - COUNT( * ) + - 55 END ) - + 47 + + - 59 col1
----
202580

skipif mysql # not compatible
query I rowsort label-9231
SELECT - 74 * + + 37 * - 74 + + NULLIF ( + 74, CASE - 52 WHEN - 33 THEN 98 + - 80 + - COUNT ( * ) + - 55 END ) - + 47 + + - 59 col1
----
202580

query II rowsort
SELECT + 98 - 90 - 56 AS col0, 38 * + - 72 AS col1
----
-48
-2736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9233
SELECT - - MIN( + 77 ) * + + 50 DIV COUNT( DISTINCT + 39 ) AS col1
----
3850

skipif mysql # not compatible
query I rowsort label-9233
SELECT - - MIN ( + 77 ) * + + 50 / COUNT ( DISTINCT + 39 ) AS col1
----
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + 11 - SUM( DISTINCT 84 ) - 97 + + + 46 + + 22 * + MIN( ALL + 13 ) - 76 col0
----
86

skipif mysql # not compatible
query I rowsort label-9234
SELECT + 11 - SUM ( DISTINCT 84 ) - 97 + + + 46 + + 22 * + MIN ( ALL + 13 ) - 76 col0
----
86

query I rowsort
SELECT DISTINCT - 11 + - - 13 * + - 48 AS col2
----
-635

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL - 52 + - COUNT( * ) * COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL - 52 + - COUNT ( * ) * COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9237
SELECT ALL - - COUNT( * ) + 16 + + 56 DIV - - 78
----
17

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - - COUNT ( * ) + 16 + + 56 / - - 78
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT + + 72 + + - 1 DIV + 31
----
72

skipif mysql # not compatible
query I rowsort label-9238
SELECT + + 72 + + - 1 / + 31
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9239
SELECT ALL 61 + 86 DIV + + 72
----
62

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL 61 + 86 / + + 72
----
62

query I rowsort
SELECT + + 22 + - + 33
----
-11

query I rowsort
SELECT ALL 74 + + 19 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - + 95 + + - ( - 18 ) * - - 10 - - COUNT( * ) + + 71 AS col2
----
157

skipif mysql # not compatible
query I rowsort label-9242
SELECT - + 95 + + - ( - 18 ) * - - 10 - - COUNT ( * ) + + 71 AS col2
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9243
SELECT + MAX( - CAST( - + 59 AS SIGNED ) ) * + 79
----
4661

skipif mysql # not compatible
query I rowsort label-9243
SELECT + MAX ( - CAST ( - + 59 AS INTEGER ) ) * + 79
----
4661

query II rowsort
SELECT + ( 13 ) * 59 AS col0, + COALESCE ( 64, - - 67, - 39 )
----
767
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL SUM( ALL - + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL SUM ( ALL - + 94 )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9246
SELECT ALL 56 - 80 * COUNT( DISTINCT 64 ) AS col2, 13 + MAX( DISTINCT + + 3 )
----
-24
16

skipif mysql # not compatible
query II rowsort label-9246
SELECT ALL 56 - 80 * COUNT ( DISTINCT 64 ) AS col2, 13 + MAX ( DISTINCT + + 3 )
----
-24
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT + 61 * - COUNT( * ) * COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9247
SELECT + 61 * - COUNT ( * ) * COUNT ( * ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT + 79 + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-9248
SELECT + 79 + + COUNT ( * )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9249
SELECT CAST( 11 AS SIGNED ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9249
SELECT CAST ( 11 AS INTEGER ) AS col2
----
11

query I rowsort
SELECT ALL 20 * - 64
----
-1280

query I rowsort
SELECT + 31 * 90 AS col2
----
2790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9252
SELECT - COUNT( * ) - ( - COALESCE ( 69, - - COUNT( * ), ( + 50 ) * ( - + 53 ) * + + 15 * - - 29 * - - 86 ) ) + - + COUNT( ALL - 91 ) * CAST( + 28 AS SIGNED ) + - COUNT( * ) - + ( 5 )
----
34

skipif mysql # not compatible
query I rowsort label-9252
SELECT - COUNT ( * ) - ( - COALESCE ( 69, - - COUNT ( * ), ( + 50 ) * ( - + 53 ) * + + 15 * - - 29 * - - 86 ) ) + - + COUNT ( ALL - 91 ) * CAST ( + 28 AS INTEGER ) + - COUNT ( * ) - + ( 5 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9253
SELECT - 84 DIV - COALESCE ( - ( - COUNT( * ) ), + - COUNT( * ) DIV + 14 )
----
84

skipif mysql # not compatible
query I rowsort label-9253
SELECT - 84 / - COALESCE ( - ( - COUNT ( * ) ), + - COUNT ( * ) / + 14 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT 6 * + COUNT( * ) + COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9254
SELECT 6 * + COUNT ( * ) + COUNT ( * ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9255
SELECT - 1 + - - 63 * CAST( + - 43 AS SIGNED ), + 93 * 53 * - 79 AS col2
----
-2710
-389391

skipif mysql # not compatible
query II rowsort label-9255
SELECT - 1 + - - 63 * CAST ( + - 43 AS INTEGER ), + 93 * 53 * - 79 AS col2
----
-2710
-389391

query I rowsort
SELECT + 72 * - 46
----
-3312

query I rowsort
SELECT ALL + COALESCE ( - - 59, - 51 ) AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9258
SELECT - COUNT( * ) DIV - 82 + + 20
----
20

skipif mysql # not compatible
query I rowsort label-9258
SELECT - COUNT ( * ) / - 82 + + 20
----
20

query I rowsort
SELECT + + 39 * 96 + + 9 + - + 5 AS col2
----
3748

query I rowsort
SELECT DISTINCT + + 38
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT ALL - 75 * 92 * + - CASE - + AVG ( + NULLIF ( - ( - 16 ), + 8 * + 22 * CAST( + - 40 AS SIGNED ) ) ) WHEN 23 THEN COALESCE ( - - 13, + 68 ) * 79 + - - CASE + - 78 WHEN + 62 * 45 * + + 8 THEN NULL WHEN - 83 + + + 20 THEN + + 34 * - COALESCE ( - 98, + 17 ) END + + 31 * - 65 * 15 * ( - - 45 ) END + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL - 75 * 92 * + - CASE - + AVG ( + NULLIF ( - ( - 16 ), + 8 * + 22 * CAST ( + - 40 AS INTEGER ) ) ) WHEN 23 THEN COALESCE ( - - 13, + 68 ) * 79 + - - CASE + - 78 WHEN + 62 * 45 * + + 8 THEN NULL WHEN - 83 + + + 20 THEN + + 34 * - COALESCE ( - 98, + 17 ) END + + 31 * - 65 * 15 * ( - - 45 ) END + + 4
----
NULL

query I rowsort
SELECT + + 42 * - 68
----
-2856

onlyif mysql # aggregate syntax: 
query II rowsort label-9263
SELECT - + NULLIF ( + ( - 56 ), + COUNT( * ) ) + 8, + 54 AS col1
----
64
54

skipif mysql # not compatible
query II rowsort label-9263
SELECT - + NULLIF ( + ( - 56 ), + COUNT ( * ) ) + 8, + 54 AS col1
----
64
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9264
SELECT ALL SUM( 32 ) * - 1 DIV 77 + - 67 * - + 2 * - - 57
----
7638

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL SUM ( 32 ) * - 1 / 77 + - 67 * - + 2 * - - 57
----
7638

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT DISTINCT 93 * 52 * + 10 + SUM( - 23 ) AS col0
----
48337

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT 93 * 52 * + 10 + SUM ( - 23 ) AS col0
----
48337

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT ALL COUNT( * ) * - + 87 + - 60
----
-147

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL COUNT ( * ) * - + 87 + - 60
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9267
SELECT + ( + 66 ) AS col2, 2 - + + COALESCE ( + CAST( + ( ( + + 92 ) ) AS SIGNED ), - + 11, - 21 ) AS col2
----
66
-90

skipif mysql # not compatible
query II rowsort label-9267
SELECT + ( + 66 ) AS col2, 2 - + + COALESCE ( + CAST ( + ( ( + + 92 ) ) AS INTEGER ), - + 11, - 21 ) AS col2
----
66
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT - + 87 + - COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9268
SELECT - + 87 + - COUNT ( * ) AS col0
----
-88

query I rowsort
SELECT - 48 * - 68
----
3264

query I rowsort
SELECT ALL - 71 * + 8 + 58 - - 5
----
-505

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9271
SELECT DISTINCT 1 * + 81 * 37 + + 66 + + 6 - 67 * - 80 + - - 5 * CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT 1 * + 81 * 37 + + 66 + + 6 - 67 * - 80 + - - 5 * CAST ( NULL AS REAL ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9272
SELECT ALL - + 67 DIV - 1
----
67

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - + 67 / - 1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL - COUNT( * ) + + - 81 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL - COUNT ( * ) + + - 81 AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT DISTINCT + 99 + 13 + + + CAST( 16 AS SIGNED ) + - 93 + - COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT + 99 + 13 + + + CAST ( 16 AS INTEGER ) + - 93 + - COUNT ( * ) AS col0
----
34

query I rowsort
SELECT ALL + 41 + + + 3 - ( - 23 ) * - + 13
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT 53 * 52 + - COUNT( * )
----
2755

skipif mysql # not compatible
query I rowsort label-9276
SELECT 53 * 52 + - COUNT ( * )
----
2755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9277
SELECT COALESCE ( - + CAST( NULL AS SIGNED ), ( SUM( ALL + 14 ) ) - - COUNT( * ) ) * + 96 * 58 AS col2
----
83520

skipif mysql # not compatible
query I rowsort label-9277
SELECT COALESCE ( - + CAST ( NULL AS INTEGER ), ( SUM ( ALL + 14 ) ) - - COUNT ( * ) ) * + 96 * 58 AS col2
----
83520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9278
SELECT ALL - - CAST( - + 10 AS SIGNED ) * 80
----
-800

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL - - CAST ( - + 10 AS INTEGER ) * 80
----
-800

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT 5 DIV - 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9279
SELECT 5 / - 43 AS col0
----
0

query I rowsort
SELECT ALL + 74 * 19 * - - 92
----
129352

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT DISTINCT - COUNT( * ) * + - 73
----
73

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT - COUNT ( * ) * + - 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL + 47 - + 37 + MIN( - 10 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL + 47 - + 37 + MIN ( - 10 ) AS col2
----
0

query I rowsort
SELECT 40 * NULLIF ( + 56, 12 ) col0
----
2240

query I rowsort
SELECT 46 + + ( - - 32 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9285
SELECT + 5 / + 7 * - 69 + ( - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + + - COALESCE ( - 60, + 3 - - SUM( ALL 2 ) ) - + + 22 - - COUNT( * ) * 10 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT + 5 / + 7 * - 69 + ( - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + - COALESCE ( - 60, + 3 - - SUM ( ALL 2 ) ) - + + 22 - - COUNT ( * ) * 10 * + 39
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9286
SELECT SUM( DISTINCT - - 77 ) - - 82 + + - 24 * COUNT( - COALESCE ( 64, - - 50 ) ) col2, - 32 col2
----
135
-32

skipif mysql # not compatible
query II rowsort label-9286
SELECT SUM ( DISTINCT - - 77 ) - - 82 + + - 24 * COUNT ( - COALESCE ( 64, - - 50 ) ) col2, - 32 col2
----
135
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9287
SELECT SUM( ALL COALESCE ( - 54, - - 61 ) ) * - - CASE - COUNT( DISTINCT - + 56 ) WHEN CAST( 28 AS SIGNED ) THEN NULL ELSE + - 50 END * - 75 AS col2
----
-202500

skipif mysql # not compatible
query I rowsort label-9287
SELECT SUM ( ALL COALESCE ( - 54, - - 61 ) ) * - - CASE - COUNT ( DISTINCT - + 56 ) WHEN CAST ( 28 AS INTEGER ) THEN NULL ELSE + - 50 END * - 75 AS col2
----
-202500

onlyif mysql # aggregate syntax: 
query II rowsort label-9288
SELECT ALL - 4, COUNT( * ) AS col1
----
-4
1

skipif mysql # not compatible
query II rowsort label-9288
SELECT ALL - 4, COUNT ( * ) AS col1
----
-4
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT DISTINCT 1 * - COUNT( ALL + 59 ) * + - 71 * + 99 AS col2
----
7029

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT 1 * - COUNT ( ALL + 59 ) * + - 71 * + 99 AS col2
----
7029

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL 60 + + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL 60 + + COUNT ( * ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9291
SELECT ALL NULLIF ( - + ( + - COUNT( * ) ), 59 ) + 77 + - 11 + - COUNT( * ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL NULLIF ( - + ( + - COUNT ( * ) ), 59 ) + 77 + - 11 + - COUNT ( * ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT - + ( - 88 ) DIV - - 25 + 81 * 0 * - 71
----
3

skipif mysql # not compatible
query I rowsort label-9292
SELECT - + ( - 88 ) / - - 25 + 81 * 0 * - 71
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9293
SELECT COUNT( * ) * + COALESCE ( + CAST( NULL AS SIGNED ), + 90 + + 28, 55 ) AS col2
----
118

skipif mysql # not compatible
query I rowsort label-9293
SELECT COUNT ( * ) * + COALESCE ( + CAST ( NULL AS INTEGER ), + 90 + + 28, 55 ) AS col2
----
118

query I rowsort
SELECT ( + 8 ) * - 51 col2
----
-408

query I rowsort
SELECT + + 73 col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9296
SELECT ALL 49 + + 30 DIV - 27 AS col1, MIN( 12 ) col2
----
48
12

skipif mysql # not compatible
query II rowsort label-9296
SELECT ALL 49 + + 30 / - 27 AS col1, MIN ( 12 ) col2
----
48
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9297
SELECT ALL - 27 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL - 27 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT 19 DIV - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9298
SELECT 19 / - 48 AS col2
----
0

query I rowsort
SELECT ALL - - 15 + + 4 col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9300
SELECT ALL - 25 + 20 + - 34 * - 95 + - ( 81 ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - 25 + 20 + - 34 * - 95 + - ( 81 ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT 99 + COALESCE ( - + 87, 1 DIV - 11, + + 49 ) * - + 44 * + 14 col2
----
53691

skipif mysql # not compatible
query I rowsort label-9301
SELECT 99 + COALESCE ( - + 87, 1 / - 11, + + 49 ) * - + 44 * + 14 col2
----
53691

query I rowsort
SELECT ALL + 50 - - 32 + - 70
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT COUNT( ALL - 68 ) * + 20 - - SUM( ALL + ( CASE 81 WHEN + + 42 THEN - 85 ELSE - 68 END ) )
----
-48

skipif mysql # not compatible
query I rowsort label-9303
SELECT COUNT ( ALL - 68 ) * + 20 - - SUM ( ALL + ( CASE 81 WHEN + + 42 THEN - 85 ELSE - 68 END ) )
----
-48

query I rowsort
SELECT ALL + COALESCE ( + CASE - - 49 WHEN - 48 THEN NULL ELSE 46 END, - 67 ) AS col0
----
46

query I rowsort
SELECT + 96 - + 42 AS col2
----
54

query I rowsort
SELECT ALL - - 23 - - 93 AS col1
----
116

query I rowsort
SELECT 55 * + 55 * - 10 * 83
----
-2510750

query I rowsort
SELECT NULLIF ( - - 88, 77 ) col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT DISTINCT 36 * + - COALESCE ( - ( + - 86 ), + - 52 ) + + COUNT( * ) + - 65 AS col0
----
-3160

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT 36 * + - COALESCE ( - ( + - 86 ), + - 52 ) + + COUNT ( * ) + - 65 AS col0
----
-3160

query II rowsort
SELECT ALL 56 AS col1, 63 AS col2
----
56
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT 21 * - - CASE - + 5 WHEN + 34 - - 48 / 7 THEN NULL WHEN - 65 + CAST( 41 AS SIGNED ) THEN + - 42 WHEN 36 + - 61 THEN NULL END / + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT 21 * - - CASE - + 5 WHEN + 34 - - 48 / 7 THEN NULL WHEN - 65 + CAST ( 41 AS INTEGER ) THEN + - 42 WHEN 36 + - 61 THEN NULL END / + 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT 24 + - MAX( + - 75 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9312
SELECT 24 + - MAX ( + - 75 ) AS col0
----
99

query II rowsort
SELECT ALL 14 AS col2, 96
----
14
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9314
SELECT 40 DIV MAX( DISTINCT + + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-9314
SELECT 40 / MAX ( DISTINCT + + 55 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9315
SELECT ALL + 42 DIV 81 DIV 94 * 66 * + + 23 * 84, + ( 15 ) AS col0
----
0
15

skipif mysql # not compatible
query II rowsort label-9315
SELECT ALL + 42 / 81 / 94 * 66 * + + 23 * 84, + ( 15 ) AS col0
----
0
15

query II rowsort
SELECT 11 + 95, 22 AS col2
----
106
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9317
SELECT DISTINCT COUNT( * ) AS col1, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9317
SELECT DISTINCT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL + ( + ( - MIN( ALL - - 44 ) ) ) * - + 59
----
2596

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL + ( + ( - MIN ( ALL - - 44 ) ) ) * - + 59
----
2596

onlyif mysql # DIV for integer division: 
query I rowsort label-9319
SELECT 30 DIV + 98 * - 63 col2
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT 30 / + 98 * - 63 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9320
SELECT CASE - 12 WHEN 57 THEN - + 48 * - + COUNT( * ) + - - 2 * - 90 + + 45 * - 37 WHEN 70 THEN NULL ELSE + 44 END DIV - - 30 + 14 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9320
SELECT CASE - 12 WHEN 57 THEN - + 48 * - + COUNT ( * ) + - - 2 * - 90 + + 45 * - 37 WHEN 70 THEN NULL ELSE + 44 END / - - 30 + 14 AS col2
----
15

query I rowsort
SELECT ALL 60 + + - 42
----
18

query I rowsort
SELECT 46 + - 74
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT DISTINCT COUNT( * ) * + - 99 + - 0 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT COUNT ( * ) * + - 99 + - 0 AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT DISTINCT - CAST( - + 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT - CAST ( - + 82 AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT COUNT( DISTINCT 13 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9325
SELECT COUNT ( DISTINCT 13 ) AS col0
----
1

query I rowsort
SELECT 81 - - 9 - + - 65 + 42 + - 66 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT DISTINCT 37 * + 10 * COUNT( * ) * 88 + - - COUNT( * ) AS col2
----
32561

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT 37 * + 10 * COUNT ( * ) * 88 + - - COUNT ( * ) AS col2
----
32561

query II rowsort
SELECT + + 98 AS col0, - 8 AS col0
----
98
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT + 59 * - 39 + 93 * - COUNT( * ) * - 81
----
5232

skipif mysql # not compatible
query I rowsort label-9329
SELECT + 59 * - 39 + 93 * - COUNT ( * ) * - 81
----
5232

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9330
SELECT - 31 AS col2, - 6 + - + ( - COALESCE ( - 56, 53 * + 93 ) ) DIV 33 + - NULLIF ( - 59, COUNT( * ) )
----
-31
52

skipif mysql # not compatible
query II rowsort label-9330
SELECT - 31 AS col2, - 6 + - + ( - COALESCE ( - 56, 53 * + 93 ) ) / 33 + - NULLIF ( - 59, COUNT ( * ) )
----
-31
52

query I rowsort
SELECT + + 59 + 74
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9332
SELECT ALL - MAX( - 66 ) * 23 - + SUM( - - CAST( 84 AS SIGNED ) ), 49 * 71 DIV + 80 col0
----
1434
43

skipif mysql # not compatible
query II rowsort label-9332
SELECT ALL - MAX ( - 66 ) * 23 - + SUM ( - - CAST ( 84 AS INTEGER ) ), 49 * 71 / + 80 col0
----
1434
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9333
SELECT ALL + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - + ( 99 ) * - + 52 - + - 20
----
5168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9335
SELECT DISTINCT + 42, + CAST( NULLIF ( CAST( NULL AS SIGNED ), + - 16 * - 67 * + 57 * + 3 * + COUNT( * ) ) AS SIGNED ) AS col2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-9335
SELECT DISTINCT + 42, + CAST ( NULLIF ( CAST ( NULL AS INTEGER ), + - 16 * - 67 * + 57 * + 3 * + COUNT ( * ) ) AS INTEGER ) AS col2
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL + 4 * - + ( + CASE - 72 WHEN + - 0 + 80 THEN - MIN( + 27 ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL + 4 * - + ( + CASE - 72 WHEN + - 0 + 80 THEN - MIN ( + 27 ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9337
SELECT + 97 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-9337
SELECT + 97 / + - 98
----
0

query I rowsort
SELECT DISTINCT + + 45 AS col1
----
45

query II rowsort
SELECT ALL + 34 AS col1, + 78
----
34
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - SUM( - 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9340
SELECT - SUM ( - 63 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9341
SELECT ALL 63 - + COUNT( * ) + + + 16 + 87 AS col0, NULLIF ( - 82, + + 48 / 81 * - 15 ) + - 13 * + + 12 AS col0
----
165
-238

skipif mysql # not compatible
query II rowsort label-9341
SELECT ALL 63 - + COUNT ( * ) + + + 16 + 87 AS col0, NULLIF ( - 82, + + 48 / 81 * - 15 ) + - 13 * + + 12 AS col0
----
165
-238

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT + - 33 DIV - + 30
----
1

skipif mysql # not compatible
query I rowsort label-9342
SELECT + - 33 / - + 30
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9343
SELECT - - 27 * - + 35 - - - 91 + + COALESCE ( + 4, - 13 DIV - MIN( DISTINCT + ( - 26 ) ) * + 7 )
----
-1032

skipif mysql # not compatible
query I rowsort label-9343
SELECT - - 27 * - + 35 - - - 91 + + COALESCE ( + 4, - 13 / - MIN ( DISTINCT + ( - 26 ) ) * + 7 )
----
-1032

onlyif mysql # DIV for integer division: 
query I rowsort label-9344
SELECT DISTINCT - 22 DIV + - 44 + - 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT - 22 / + - 44 + - 47 AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT ALL + CAST( + + 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL + CAST ( + + 74 AS INTEGER )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9346
SELECT - 72 AS col0, + 5 * + COUNT( * )
----
-72
5

skipif mysql # not compatible
query II rowsort label-9346
SELECT - 72 AS col0, + 5 * + COUNT ( * )
----
-72
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9347
SELECT - 32 * 73 DIV 93 AS col0, COUNT( - + ( + 38 ) ) - - - CAST( NULL AS SIGNED ) DIV 52 * - 55 * + 72 AS col1
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-9347
SELECT - 32 * 73 / 93 AS col0, COUNT ( - + ( + 38 ) ) - - - CAST ( NULL AS INTEGER ) / 52 * - 55 * + 72 AS col1
----
-25
NULL

query I rowsort
SELECT + 3 - + 83 AS col0
----
-80

query I rowsort
SELECT + 79 - - + 52
----
131

query I rowsort
SELECT + 96 * - 37 * ( + 61 ) * + 91 * - NULLIF ( + 53, 85 ) col2
----
1045009056

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT - COUNT( * ) + 96 * 57
----
5471

skipif mysql # not compatible
query I rowsort label-9351
SELECT - COUNT ( * ) + 96 * 57
----
5471

query I rowsort
SELECT - 78 + + 90 AS col0
----
12

query I rowsort
SELECT ALL - 75 + 91
----
16

query I rowsort
SELECT - COALESCE ( 67, - 75 ) - 6
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-9355
SELECT ALL + 85 DIV + 5, 94 + + 77 * 40 * - 95 + - 95 + - 50 AS col0
----
17
-292651

skipif mysql # not compatible
query II rowsort label-9355
SELECT ALL + 85 / + 5, 94 + + 77 * 40 * - 95 + - 95 + - 50 AS col0
----
17
-292651

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL + 12 + + MAX( - + ( + 67 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + 12 + + MAX ( - + ( + 67 ) )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT ALL - 57 + - 67 DIV - 96 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - 57 + - 67 / - 96 AS col1
----
-57

query I rowsort
SELECT + 89 + 29 + + + 40 * - + 47
----
-1762

query I rowsort
SELECT - 6 * 90
----
-540

query I rowsort
SELECT ALL + 85 * 70
----
5950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9361
SELECT + 27 * 39 * + 53 - - CASE + - CAST( NULL AS DECIMAL ) WHEN + + 98 / + ( 54 ) * + 4 THEN NULL WHEN 62 THEN + 23 * + 25 ELSE + + CASE - - 40 WHEN - 19 / + 76 + - - 61 THEN - - 45 * COUNT( * ) + 46 WHEN 69 / - - 52 * - COUNT( - - 62 ) + - 26 THEN + COUNT( * ) * - 16 + 5 + + + 95 * - - CASE - ( 85 ) WHEN 83 THEN COALESCE ( 65, + CAST( NULL AS SIGNED ) * 40 * 85, - AVG ( DISTINCT ( - ( 51 ) ) ) + 96 ) WHEN + COUNT( * ) * + COUNT( * ) - 39 * - 50 THEN - 45 * 14 WHEN - 95 + - 36 THEN NULL END END * + NULLIF ( - CAST( NULL AS SIGNED ) / 19, 60 + 3 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT + 27 * 39 * + 53 - - CASE + - CAST ( NULL AS REAL ) WHEN + + 98 / + ( 54 ) * + 4 THEN NULL WHEN 62 THEN + 23 * + 25 ELSE + + CASE - - 40 WHEN - 19 / + 76 + - - 61 THEN - - 45 * COUNT ( * ) + 46 WHEN 69 / - - 52 * - COUNT ( - - 62 ) + - 26 THEN + COUNT ( * ) * - 16 + 5 + + + 95 * - - CASE - ( 85 ) WHEN 83 THEN COALESCE ( 65, + CAST ( NULL AS INTEGER ) * 40 * 85, - AVG ( DISTINCT ( - ( 51 ) ) ) + 96 ) WHEN + COUNT ( * ) * + COUNT ( * ) - 39 * - 50 THEN - 45 * 14 WHEN - 95 + - 36 THEN NULL END END * + NULLIF ( - CAST ( NULL AS INTEGER ) / 19, 60 + 3 ) END AS col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 87, + 76, - 62, - + 18 )
----
-87

query I rowsort
SELECT DISTINCT - 27 * + - 14 AS col1
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9364
SELECT - + 63 * COALESCE ( + 89, + 99 ) + - - COALESCE ( + MAX( DISTINCT - - 97 ), - - 4, - 55 * + + 6 DIV + COUNT( - - 14 ) + 53 * 50 ) + - MIN( + 77 ) col0
----
-5587

skipif mysql # not compatible
query I rowsort label-9364
SELECT - + 63 * COALESCE ( + 89, + 99 ) + - - COALESCE ( + MAX ( DISTINCT - - 97 ), - - 4, - 55 * + + 6 / + COUNT ( - - 14 ) + 53 * 50 ) + - MIN ( + 77 ) col0
----
-5587

query I rowsort
SELECT DISTINCT + 83 * 19 - - + 72 - - 23 - + 86 AS col0
----
1586

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL + COALESCE ( + 56, - 63, + - COUNT( * ) ) * 24 + 17 col1
----
1361

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL + COALESCE ( + 56, - 63, + - COUNT ( * ) ) * 24 + 17 col1
----
1361

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9367
SELECT DISTINCT + - SUM( ALL - CAST( NULL AS DECIMAL ) ) AS col2, - 71 + 91 AS col2
----
NULL
20

skipif mysql # not compatible
query II rowsort label-9367
SELECT DISTINCT + - SUM ( ALL - CAST ( NULL AS REAL ) ) AS col2, - 71 + 91 AS col2
----
NULL
20

query II rowsort
SELECT DISTINCT + 92 * 99 AS col2, + 48
----
9108
48

query I rowsort
SELECT NULLIF ( - + COALESCE ( + 37, 61 ), 61 ) * + NULLIF ( 64, ( + 7 ) ) - - - 71
----
-2439

query I rowsort
SELECT + - 59 AS col2
----
-59

query I rowsort
SELECT ALL + + 34
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9372
SELECT - + 4 * - 31 AS col1, AVG ( DISTINCT + 74 ) * - CASE 14 WHEN - ( + - 78 ) + + ( 94 ) THEN + ( + - 33 ) WHEN + 70 THEN + 86 + - COUNT( * ) / + - 6 * + - 13 END + CAST( 48 AS SIGNED ) AS col0
----
124
NULL

skipif mysql # not compatible
query II rowsort label-9372
SELECT - + 4 * - 31 AS col1, AVG ( DISTINCT + 74 ) * - CASE 14 WHEN - ( + - 78 ) + + ( 94 ) THEN + ( + - 33 ) WHEN + 70 THEN + 86 + - COUNT ( * ) / + - 6 * + - 13 END + CAST ( 48 AS INTEGER ) AS col0
----
124
NULL

query I rowsort
SELECT - 48 * + 47 - 69 + + 83 AS col2
----
-2242

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9374
SELECT + 60 * MAX( ALL + 1 ) DIV + 89 - - + COUNT( * ), 78 * + 51 AS col0
----
1
3978

skipif mysql # not compatible
query II rowsort label-9374
SELECT + 60 * MAX ( ALL + 1 ) / + 89 - - + COUNT ( * ), 78 * + 51 AS col0
----
1
3978

onlyif mysql # DIV for integer division: 
query I rowsort label-9375
SELECT DISTINCT + 48 DIV - NULLIF ( + + 10, 61 )
----
-4

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT + 48 / - NULLIF ( + + 10, 61 )
----
-4

query I rowsort
SELECT + 58 + 79
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9377
SELECT + MAX( - 46 ) DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-9377
SELECT + MAX ( - 46 ) / 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT DISTINCT + 15 * CAST( + - 67 AS SIGNED ) - + 87
----
-1092

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT + 15 * CAST ( + - 67 AS INTEGER ) - + 87
----
-1092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9379
SELECT - 31 * - COUNT( * ) * COUNT( * ) + - 30 AS col2, + 98 + + CAST( NULL AS SIGNED ) * + CASE + 15 WHEN + - 84 THEN NULL WHEN + 11 - 36 THEN - - 49 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9379
SELECT - 31 * - COUNT ( * ) * COUNT ( * ) + - 30 AS col2, + 98 + + CAST ( NULL AS INTEGER ) * + CASE + 15 WHEN + - 84 THEN NULL WHEN + 11 - 36 THEN - - 49 END AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT MIN( - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-9380
SELECT MIN ( - 47 )
----
-47

query I rowsort
SELECT + 79 + - + 15 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT + 85 - + COUNT( * ) - + 86
----
-2

skipif mysql # not compatible
query I rowsort label-9382
SELECT + 85 - + COUNT ( * ) - + 86
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT + 55 + + CASE COUNT( ALL - 34 ) WHEN - - 17 + 87 THEN + + COUNT( * ) - - - 25 * 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9383
SELECT + 55 + + CASE COUNT ( ALL - 34 ) WHEN - - 17 + 87 THEN + + COUNT ( * ) - - - 25 * 70 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 43 + - + 83 + 7 + - 21 * + 97 * 20 + + 29 AS col0
----
-40744

query I rowsort
SELECT ALL 19 + + 97 AS col2
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9386
SELECT + COUNT( * ) + - + 15 DIV 78 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9386
SELECT + COUNT ( * ) + - + 15 / 78 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9387
SELECT - CAST( 99 AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-9387
SELECT - CAST ( 99 AS INTEGER ) AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9388
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - MAX( 37 ) * + - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - MAX ( 37 ) * + - 49 AS col1
----
NULL

query I rowsort
SELECT ALL ( - 51 )
----
-51

query I rowsort
SELECT DISTINCT + 98 * - 90
----
-8820

query I rowsort
SELECT ALL 83 + 50
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT - CAST( NULL AS SIGNED ) * - 1 * + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT - CAST ( NULL AS INTEGER ) * - 1 * + 4 AS col0
----
NULL

query I rowsort
SELECT + 83 + - 58 AS col0
----
25

query II rowsort
SELECT - 44 col2, + 72
----
-44
72

query II rowsort
SELECT 90 AS col1, 25 AS col0
----
90
25

onlyif mysql # DIV for integer division: 
query II rowsort label-9396
SELECT ALL 99, - 46 DIV + + 42 col1
----
99
-1

skipif mysql # not compatible
query II rowsort label-9396
SELECT ALL 99, - 46 / + + 42 col1
----
99
-1

query I rowsort
SELECT DISTINCT 82 - + COALESCE ( - 34, + - 91 ) AS col2
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT DISTINCT - 33 col2, SUM( DISTINCT + - 54 ) * + - 31 col1
----
-33
1674

skipif mysql # not compatible
query II rowsort label-9398
SELECT DISTINCT - 33 col2, SUM ( DISTINCT + - 54 ) * + - 31 col1
----
-33
1674

query II rowsort
SELECT ALL - - 56 AS col2, + 7 col2
----
56
7

query II rowsort
SELECT - 77 AS col0, 65
----
-77
65

query II rowsort
SELECT DISTINCT - 25, 98 * + + 8 * + 36 AS col2
----
-25
28224

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT + ( - COUNT( * ) ) * + MIN( 77 ) + - 83 AS col0
----
-160

skipif mysql # not compatible
query I rowsort label-9402
SELECT + ( - COUNT ( * ) ) * + MIN ( 77 ) + - 83 AS col0
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-9403
SELECT ALL - + 91 DIV - 32
----
2

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - + 91 / - 32
----
2

query II rowsort
SELECT + + 30 AS col1, 23 AS col1
----
30
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9405
SELECT + COUNT( * ) DIV + 27 * 72
----
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT + COUNT ( * ) / + 27 * 72
----
0

query I rowsort
SELECT ALL - + 16 * - CASE + + 60 WHEN + - 34 THEN - 12 * 77 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9407
SELECT - 15 + - 67 - + + 9 * - MAX( - 5 ) * + + 38 + 63 * + - 41 * + COUNT( * ) * + 42 + 55, - ( NULLIF ( COUNT( * ), COUNT( * ) ) ) col0
----
-110223
NULL

skipif mysql # not compatible
query II rowsort label-9407
SELECT - 15 + - 67 - + + 9 * - MAX ( - 5 ) * + + 38 + 63 * + - 41 * + COUNT ( * ) * + 42 + 55, - ( NULLIF ( COUNT ( * ), COUNT ( * ) ) ) col0
----
-110223
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT ALL - + 99 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL - + 99 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 53 + - 90 AS col0
----
-37

query I rowsort
SELECT ALL - - 49 * + 78
----
3822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9411
SELECT ALL - - SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL - - SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT + 33 * - - 90 + 87 DIV - 91 + + + 62
----
3032

skipif mysql # not compatible
query I rowsort label-9412
SELECT + 33 * - - 90 + 87 / - 91 + + + 62
----
3032

query I rowsort
SELECT ALL - 2 col0
----
-2

query I rowsort
SELECT - 56 * - 30 * 78 AS col2
----
131040

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL + 86 + - COUNT( * ) + - 66 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL + 86 + - COUNT ( * ) + - 66 AS col2
----
19

query I rowsort
SELECT 22 + 62
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT 59 + + 15 * + COUNT( * ) + - COUNT( 45 )
----
73

skipif mysql # not compatible
query I rowsort label-9417
SELECT 59 + + 15 * + COUNT ( * ) + - COUNT ( 45 )
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9418
SELECT ALL 44 + - 8 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL 44 + - 8 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 2 * - 98 * 83
----
-16268

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT 49 * - COUNT( * ) * - 33 AS col2
----
1617

skipif mysql # not compatible
query I rowsort label-9420
SELECT 49 * - COUNT ( * ) * - 33 AS col2
----
1617

query I rowsort
SELECT 55 + - 69 + - 75 AS col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT ALL + 57 + + 47 + NULLIF ( + + 66, - CAST( NULL AS SIGNED ) ) AS col1
----
170

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL + 57 + + 47 + NULLIF ( + + 66, - CAST ( NULL AS INTEGER ) ) AS col1
----
170

query I rowsort
SELECT 39 - + 56 * - + 90
----
5079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9424
SELECT COUNT( * ) - - + 21 * + 57 DIV - COUNT( ALL 55 )
----
-1196

skipif mysql # not compatible
query I rowsort label-9424
SELECT COUNT ( * ) - - + 21 * + 57 / - COUNT ( ALL 55 )
----
-1196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9425
SELECT CAST( + NULLIF ( - - MAX( 11 ), - COUNT( * ) * - - 90 ) AS SIGNED ) + 79 AS col1, - 44 * + 34 AS col2
----
90
-1496

skipif mysql # not compatible
query II rowsort label-9425
SELECT CAST ( + NULLIF ( - - MAX ( 11 ), - COUNT ( * ) * - - 90 ) AS INTEGER ) + 79 AS col1, - 44 * + 34 AS col2
----
90
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT COUNT( * ) + - + 79 * - 6 AS col2
----
475

skipif mysql # not compatible
query I rowsort label-9426
SELECT COUNT ( * ) + - + 79 * - 6 AS col2
----
475

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT ALL 71 DIV 16
----
4

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL 71 / 16
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9428
SELECT ALL + 67 DIV + 76 * + + COUNT( + 32 ) - - - 23 * + + 20
----
-460

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL + 67 / + 76 * + + COUNT ( + 32 ) - - - 23 * + + 20
----
-460

query I rowsort
SELECT 19 * + 14 - - - 89
----
177

query II rowsort
SELECT + 54 + - 42 AS col2, + ( - 63 ) col1
----
12
-63

query I rowsort
SELECT - + ( + 48 ) AS col1
----
-48

query I rowsort
SELECT - 33 + + 82
----
49

query I rowsort
SELECT ALL - 42 * + - 73 - 55 * - 53 + + 40 AS col2
----
6021

onlyif mysql # aggregate syntax: 
query II rowsort label-9434
SELECT ( + 62 ) AS col1, COUNT( * ) * + 27 AS col0
----
62
27

skipif mysql # not compatible
query II rowsort label-9434
SELECT ( + 62 ) AS col1, COUNT ( * ) * + 27 AS col0
----
62
27

query I rowsort
SELECT ALL - - 30 col2
----
30

query I rowsort
SELECT DISTINCT - NULLIF ( + 94, ( + 39 ) + 39 )
----
-94

query I rowsort
SELECT ALL 73 * + + 23
----
1679

onlyif mysql # aggregate syntax: 
query II rowsort label-9438
SELECT DISTINCT + COUNT( * ) + 58 AS col0, + SUM( DISTINCT - 97 ) + 42 col2
----
59
-55

skipif mysql # not compatible
query II rowsort label-9438
SELECT DISTINCT + COUNT ( * ) + 58 AS col0, + SUM ( DISTINCT - 97 ) + 42 col2
----
59
-55

query I rowsort
SELECT DISTINCT - 43 + + 37
----
-6

query I rowsort
SELECT + + 60 AS col0
----
60

query I rowsort
SELECT ALL + - 9 + + 49
----
40

query I rowsort
SELECT ( + 85 ) + ( + 17 )
----
102

query I rowsort
SELECT + 6 + - + 92
----
-86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9444
SELECT 37 DIV + CAST( + + 26 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9444
SELECT 37 / + CAST ( + + 26 AS INTEGER ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9445
SELECT ALL + COUNT( * ) + CASE - 7 WHEN - - 2 THEN - MAX( ALL + 6 ) / + COUNT( * ) + COALESCE ( - 34, - 85, - - 20 * 59 + - - COALESCE ( - 31, - ( - + 21 ) ) + - 83 ) ELSE NULL END + - 41 / 19 / - + 26 + 54 + - 6 * - 22 + - 8 + + 57 * + - ( - NULLIF ( - + 57, 17 + - + 50 * - - 75 * COUNT( * ) ) ) * + CASE - - 17 WHEN - 47 + + ( + + 46 ) THEN + 46 * + NULLIF ( + CAST( + 72 AS SIGNED ), 27 * 85 + - 62 ) END + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL + COUNT ( * ) + CASE - 7 WHEN - - 2 THEN - MAX ( ALL + 6 ) / + COUNT ( * ) + COALESCE ( - 34, - 85, - - 20 * 59 + - - COALESCE ( - 31, - ( - + 21 ) ) + - 83 ) ELSE NULL END + - 41 / 19 / - + 26 + 54 + - 6 * - 22 + - 8 + + 57 * + - ( - NULLIF ( - + 57, 17 + - + 50 * - - 75 * COUNT ( * ) ) ) * + CASE - - 17 WHEN - 47 + + ( + + 46 ) THEN + 46 * + NULLIF ( + CAST ( + 72 AS INTEGER ), 27 * 85 + - 62 ) END + 45
----
NULL

query I rowsort
SELECT 30 * + 8
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT ALL - 25 + 66 + - COUNT( + + 96 )
----
40

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL - 25 + 66 + - COUNT ( + + 96 )
----
40

query I rowsort
SELECT 88 * 20 - + - ( 75 ) AS col2
----
1835

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT ALL - 16 * - - NULLIF ( + 1, + 90 * - + ( + 79 ) + COUNT( * ) + + + 53 ) * + 68 * - - 24 AS col0
----
-26112

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL - 16 * - - NULLIF ( + 1, + 90 * - + ( + 79 ) + COUNT ( * ) + + + 53 ) * + 68 * - - 24 AS col0
----
-26112

query I rowsort
SELECT ALL - ( + 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT DISTINCT + 43 + - MIN( ( - - 76 ) ) + ( + - 90 )
----
-123

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT + 43 + - MIN ( ( - - 76 ) ) + ( + - 90 )
----
-123

query II rowsort
SELECT 42 col2, 81
----
42
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9453
SELECT ALL COUNT( * ), 34 + + + COUNT( * ) AS col1
----
1
35

skipif mysql # not compatible
query II rowsort label-9453
SELECT ALL COUNT ( * ), 34 + + + COUNT ( * ) AS col1
----
1
35

query I rowsort
SELECT 84 - 38 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT DISTINCT CASE + 25 WHEN 79 + - 92 * + 62 THEN MAX( ALL 47 ) + MIN( ALL + - 34 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT CASE + 25 WHEN 79 + - 92 * + 62 THEN MAX ( ALL 47 ) + MIN ( ALL + - 34 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9456
SELECT 58 + - 43 + 88 * + - SUM( + 42 ) * CAST( 98 AS SIGNED ) + - 7 + + 48 + MIN( + + 29 ) * - + COALESCE ( 18, 97 * 74 * - 14 DIV 28 ) AS col2
----
-362674

skipif mysql # not compatible
query I rowsort label-9456
SELECT 58 + - 43 + 88 * + - SUM ( + 42 ) * CAST ( 98 AS INTEGER ) + - 7 + + 48 + MIN ( + + 29 ) * - + COALESCE ( 18, 97 * 74 * - 14 / 28 ) AS col2
----
-362674

query I rowsort
SELECT ALL + 26 - + 91 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT - COUNT( * ) + + 72 + - 85 + - - 84 * + - 19
----
-1610

skipif mysql # not compatible
query I rowsort label-9458
SELECT - COUNT ( * ) + + 72 + - 85 + - - 84 * + - 19
----
-1610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT - CAST( NULL AS SIGNED ) + - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT - CAST ( NULL AS INTEGER ) + - - 63
----
NULL

query I rowsort
SELECT DISTINCT 83 * 74
----
6142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9461
SELECT + CASE + - 5 WHEN + CAST( + + 68 AS DECIMAL ) THEN NULL ELSE + 30 END + - CAST( NULL AS SIGNED ) + - 39 + + 53 * - 84 * AVG ( DISTINCT + 65 ) - + COUNT( * ) * + MAX( ALL + 17 ) * - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT + CASE + - 5 WHEN + CAST ( + + 68 AS REAL ) THEN NULL ELSE + 30 END + - CAST ( NULL AS INTEGER ) + - 39 + + 53 * - 84 * AVG ( DISTINCT + 65 ) - + COUNT ( * ) * + MAX ( ALL + 17 ) * - 28 AS col0
----
NULL

query I rowsort
SELECT ALL - 63 * + + 74
----
-4662

query I rowsort
SELECT - 34 + - 50 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT DISTINCT + NULLIF ( 64, SUM( + 74 ) ) * - + COALESCE ( - 35, - + MAX( + 64 ) ) AS col1
----
2240

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT + NULLIF ( 64, SUM ( + 74 ) ) * - + COALESCE ( - 35, - + MAX ( + 64 ) ) AS col1
----
2240

query I rowsort
SELECT - 47 + - - 96
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT + CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 61 + - 15
----
-76

query I rowsort
SELECT + 31 * - + 53
----
-1643

query I rowsort
SELECT + 35 + - 28 col2
----
7

query I rowsort
SELECT + 75 * + 84
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL - + COUNT( * ) * - 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL - + COUNT ( * ) * - 83 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT + + MAX( DISTINCT 11 ) + 4 + + + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9472
SELECT + + MAX ( DISTINCT 11 ) + 4 + + + COUNT ( * ) AS col2
----
16

query I rowsort
SELECT ALL - 5 + + 29 AS col0
----
24

query I rowsort
SELECT ALL + ( + - 85 ) AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT - 53 DIV + - 93 + + 85 + + 75 * - 80
----
-5915

skipif mysql # not compatible
query I rowsort label-9475
SELECT - 53 / + - 93 + + 85 + + 75 * - 80
----
-5915

query I rowsort
SELECT ALL - - 71 * 50 + + 16 + - 7 - - 74
----
3633

query I rowsort
SELECT + - 50 + 81 * - 38
----
-3128

query I rowsort
SELECT DISTINCT + - NULLIF ( + 66, 53 )
----
-66

query I rowsort
SELECT + 47 + + - 76 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-9480
SELECT + - 62 col0, - MAX( ALL + 38 ) * + 73 AS col0
----
-62
-2774

skipif mysql # not compatible
query II rowsort label-9480
SELECT + - 62 col0, - MAX ( ALL + 38 ) * + 73 AS col0
----
-62
-2774

query I rowsort
SELECT ALL 74 * + 66 * - 36 + + COALESCE ( + 81, 58 )
----
-175743

query I rowsort
SELECT + + 98 + 83 + - 39 * - + 21
----
1000

query I rowsort
SELECT DISTINCT + 11 col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ALL - NULLIF ( + 78, - COUNT( * ) ) * 42 - + 59
----
-3335

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL - NULLIF ( + 78, - COUNT ( * ) ) * 42 - + 59
----
-3335

onlyif mysql # aggregate syntax: 
query II rowsort label-9485
SELECT ALL + COUNT( * ) AS col1, MIN( 48 ) + - 59 AS col2
----
1
-11

skipif mysql # not compatible
query II rowsort label-9485
SELECT ALL + COUNT ( * ) AS col1, MIN ( 48 ) + - 59 AS col2
----
1
-11

query I rowsort
SELECT + ( - 59 ) col2
----
-59

query I rowsort
SELECT ALL 6 * - 60 - + 56
----
-416

query II rowsort
SELECT DISTINCT + 1, + 32 col2
----
1
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9489
SELECT ALL + COUNT( * ) AS col1, + 71 AS col0
----
1
71

skipif mysql # not compatible
query II rowsort label-9489
SELECT ALL + COUNT ( * ) AS col1, + 71 AS col0
----
1
71

query I rowsort
SELECT + ( - 65 ) AS col0
----
-65

query I rowsort
SELECT - ( + + 10 ) + - CASE WHEN NOT - 4 IS NULL THEN - - 89 ELSE 64 END AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT + MAX( ALL + 14 ) * + 26
----
364

skipif mysql # not compatible
query I rowsort label-9492
SELECT + MAX ( ALL + 14 ) * + 26
----
364

query I rowsort
SELECT - 48 + 52
----
4

query II rowsort
SELECT ALL + 29 AS col1, 27 - + + 37 col0
----
29
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9495
SELECT + CAST( NULL AS SIGNED ) AS col2, 20 + + 46 + + 18 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-9495
SELECT + CAST ( NULL AS INTEGER ) AS col2, 20 + + 46 + + 18 AS col0
----
NULL
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT ALL 25 DIV - 24
----
-1

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL 25 / - 24
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9497
SELECT DISTINCT - MAX( - 5 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT - MAX ( - 5 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 22 * - ( - 84 )
----
1848

query I rowsort
SELECT ALL - 67 * + + NULLIF ( ( 50 ), + 47 + - + 91 )
----
-3350

onlyif mysql # aggregate syntax: 
query II rowsort label-9500
SELECT COUNT( * ), - MAX( + - 9 ) AS col0
----
1
9

skipif mysql # not compatible
query II rowsort label-9500
SELECT COUNT ( * ), - MAX ( + - 9 ) AS col0
----
1
9

query I rowsort
SELECT ALL + 31 * - 98 AS col2
----
-3038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT ALL CAST( - 61 AS SIGNED ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL CAST ( - 61 AS INTEGER ) AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9503
SELECT - MAX( + + 60 ) - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT - MAX ( + + 60 ) - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT - MAX( 35 ) * - 42
----
1470

skipif mysql # not compatible
query I rowsort label-9504
SELECT - MAX ( 35 ) * - 42
----
1470

query I rowsort
SELECT - 36 + + 95 AS col0
----
59

query I rowsort
SELECT - + 89 + - 66 + - 68 * + 2 AS col1
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT - 56 + + MAX( ALL + 42 ) - - COUNT( * ) * - 83 * - - 16
----
-1342

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT - 56 + + MAX ( ALL + 42 ) - - COUNT ( * ) * - 83 * - - 16
----
-1342

query I rowsort
SELECT ALL - 23 + + + 1 * - 19 * ( - 63 ) AS col1
----
1174

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT - 95 DIV - 35
----
2

skipif mysql # not compatible
query I rowsort label-9509
SELECT - 95 / - 35
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9510
SELECT - 25, 45 * + 33 + + COUNT( * ) AS col0
----
-25
1486

skipif mysql # not compatible
query II rowsort label-9510
SELECT - 25, 45 * + 33 + + COUNT ( * ) AS col0
----
-25
1486

query I rowsort
SELECT - COALESCE ( - 32, - - 23 * - + 93, - 45 + + 84 + 13 * - - 79 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL + 82 + - - COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL + 82 + - - COUNT ( * ) AS col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9513
SELECT ALL + 57 DIV - - COUNT( * ) + - - COALESCE ( + 18, - + 90 + - 2 ) * + 31 * + + 20
----
11217

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL + 57 / - - COUNT ( * ) + - - COALESCE ( + 18, - + 90 + - 2 ) * + 31 * + + 20
----
11217

query I rowsort
SELECT ALL + - 38 * 24 * - 24 * + + 22 * - - 9
----
4333824

query I rowsort
SELECT ALL + + 41 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9516
SELECT ALL 33 DIV - 63 - - 94 + 19 * + + NULLIF ( MAX( + 0 ), - 35 * - 85 )
----
94

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL 33 / - 63 - - 94 + 19 * + + NULLIF ( MAX ( + 0 ), - 35 * - 85 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9517
SELECT + 20 DIV - 87 AS col2, 70 DIV SUM( + 52 ) * COUNT( + ( - 13 ) ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-9517
SELECT + 20 / - 87 AS col2, 70 / SUM ( + 52 ) * COUNT ( + ( - 13 ) ) AS col1
----
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9518
SELECT DISTINCT 26 DIV + 55, ( ( 11 ) ) AS col0
----
0
11

skipif mysql # not compatible
query II rowsort label-9518
SELECT DISTINCT 26 / + 55, ( ( 11 ) ) AS col0
----
0
11

query I rowsort
SELECT + CASE - + 28 WHEN AVG ( + 11 ) * + 31 THEN 44 WHEN + + 71 THEN NULL END * + 59 AS col0
----
NULL

query I rowsort
SELECT + 51 * - 20 + + 21 * + 82
----
702

query I rowsort
SELECT ALL 55 * + - 72
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT CASE 60 WHEN - 60 - + 53 * + 68 - + 62 + + 7 + 30 - + - COUNT( * ) + - + 38 * + - 20 + + 47 / 88 THEN 99 + + 87 - + 29 ELSE NULL END * + 37 * + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT CASE 60 WHEN - 60 - + 53 * + 68 - + 62 + + 7 + 30 - + - COUNT ( * ) + - + 38 * + - 20 + + 47 / 88 THEN 99 + + 87 - + 29 ELSE NULL END * + 37 * + - 37
----
NULL

query I rowsort
SELECT DISTINCT 84 * - 4
----
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9524
SELECT + 1 * 29 * - 66 + - COUNT( * ) * - COALESCE ( + CAST( NULL AS SIGNED ), - 1 + - 93, - 96 - - COUNT( * ) ) + - + 22
----
-2030

skipif mysql # not compatible
query I rowsort label-9524
SELECT + 1 * 29 * - 66 + - COUNT ( * ) * - COALESCE ( + CAST ( NULL AS INTEGER ), - 1 + - 93, - 96 - - COUNT ( * ) ) + - + 22
----
-2030

query II rowsort
SELECT ALL 19 * - + 3, 22 col0
----
-57
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9526
SELECT COUNT( - 1 ) + MIN( + 35 ) DIV + 26 col0
----
2

skipif mysql # not compatible
query I rowsort label-9526
SELECT COUNT ( - 1 ) + MIN ( + 35 ) / + 26 col0
----
2

query I rowsort
SELECT 64 + + 25 - + 89 + + - 3
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9528
SELECT ALL MAX( + - 37 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL MAX ( + - 37 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9529
SELECT + 38 * CAST( NULL AS SIGNED ) + + SUM( ALL 99 ) + + 90 * SUM( - 69 ) - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT + 38 * CAST ( NULL AS INTEGER ) + + SUM ( ALL 99 ) + + 90 * SUM ( - 69 ) - + 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9530
SELECT CAST( + COUNT( + - 64 ) AS SIGNED ) * - + 21 / 8 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT CAST ( + COUNT ( + - 64 ) AS INTEGER ) * - + 21 / 8 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT MIN( - + 30 ) + + + 77
----
47

skipif mysql # not compatible
query I rowsort label-9531
SELECT MIN ( - + 30 ) + + + 77
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT ALL - - COUNT( ALL + + ( - 17 ) ) + + 25 + - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL - - COUNT ( ALL + + ( - 17 ) ) + + 25 + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9533
SELECT CAST( NULL AS SIGNED ) + - 90, - 8 * - - ( - 63 ) / CASE - - 54 WHEN + - 33 THEN 47 WHEN NULLIF ( - - 32, - 16 + + 23 + - CAST( 77 AS SIGNED ) ) + - - 95 + - - 74 THEN NULL ELSE NULL END * - 80 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9533
SELECT CAST ( NULL AS INTEGER ) + - 90, - 8 * - - ( - 63 ) / CASE - - 54 WHEN + - 33 THEN 47 WHEN NULLIF ( - - 32, - 16 + + 23 + - CAST ( 77 AS INTEGER ) ) + - - 95 + - - 74 THEN NULL ELSE NULL END * - 80 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT - 72 + + COALESCE ( - 56, + + 31, 81, + ( - + COUNT( * ) ) * - - 33 * - + COUNT( DISTINCT + 61 ) - + 77 - - - 8 ) + + COUNT( * )
----
-127

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT - 72 + + COALESCE ( - 56, + + 31, 81, + ( - + COUNT ( * ) ) * - - 33 * - + COUNT ( DISTINCT + 61 ) - + 77 - - - 8 ) + + COUNT ( * )
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9535
SELECT + 32 + + COUNT( + 7 ) DIV - 28 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9535
SELECT + 32 + + COUNT ( + 7 ) / - 28 AS col2
----
32

query I rowsort
SELECT 53 + - CASE 94 WHEN + 48 THEN 36 WHEN - 56 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL - CASE 17 WHEN + COUNT( * ) + + COUNT( * ) THEN 74 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL - CASE 17 WHEN + COUNT ( * ) + + COUNT ( * ) THEN 74 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT COUNT( DISTINCT 24 )
----
1

skipif mysql # not compatible
query I rowsort label-9538
SELECT COUNT ( DISTINCT 24 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9539
SELECT 22 + + + 22 DIV 10 + - - 55 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9539
SELECT 22 + + + 22 / 10 + - - 55 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT DISTINCT + 70 * - + COUNT( * ) * - 18 + - ( - - 33 )
----
1227

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT + 70 * - + COUNT ( * ) * - 18 + - ( - - 33 )
----
1227

query II rowsort
SELECT DISTINCT - + ( ( + 66 ) ) AS col1, 94 AS col0
----
-66
94

query I rowsort
SELECT 71 * - 19
----
-1349

query I rowsort
SELECT 68 * - 80 AS col2
----
-5440

query I rowsort
SELECT ALL - 66 * - + 17 AS col2
----
1122

query I rowsort
SELECT ALL - COALESCE ( + 90, 95 )
----
-90

query I rowsort
SELECT 58 * NULLIF ( 76, + 64 ) * + - 60 * 61
----
-16133280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9547
SELECT 39 AS col1, - 44 + - 30 - + 23 - + 63 * - - 5 * + 48 + CASE - CAST( + 24 AS SIGNED ) WHEN + 95 THEN + ( - 70 ) END + + 56 AS col2
----
39
NULL

skipif mysql # not compatible
query II rowsort label-9547
SELECT 39 AS col1, - 44 + - 30 - + 23 - + 63 * - - 5 * + 48 + CASE - CAST ( + 24 AS INTEGER ) WHEN + 95 THEN + ( - 70 ) END + + 56 AS col2
----
39
NULL

query I rowsort
SELECT DISTINCT - 49 * - + 27 col2
----
1323

query I rowsort
SELECT ALL - ( 78 ) col1
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9550
SELECT ALL 7 DIV - 29 * + COUNT( * ) * - 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL 7 / - 29 * + COUNT ( * ) * - 80 AS col1
----
0

query I rowsort
SELECT 84 * 1
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-9552
SELECT ALL 25 DIV + 31 * 2 col0, 79 * + 63 AS col0
----
0
4977

skipif mysql # not compatible
query II rowsort label-9552
SELECT ALL 25 / + 31 * 2 col0, 79 * + 63 AS col0
----
0
4977

onlyif mysql # DIV for integer division: 
query I rowsort label-9553
SELECT 90 DIV 30 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9553
SELECT 90 / 30 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9554
SELECT 3 DIV - + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9554
SELECT 3 / - + COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT ALL 71 + + ( + - COUNT( * ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL 71 + + ( + - COUNT ( * ) ) AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9556
SELECT 74 * + - ( - CASE 27 WHEN - CASE + CAST( + - 9 AS SIGNED ) WHEN - 39 * 88 * - 15 + + 49 THEN - 6 - - + COALESCE ( + + 73, - - 94 / 41 + + ( - 87 ) + + - ( - 65 ) * + 30 ) / + + 55 / 44 WHEN + AVG ( - 82 ) THEN COUNT( * ) ELSE NULL END * - - COUNT( * ) * + 68 THEN NULL WHEN + COUNT( * ) - - - 44 THEN - 13 + + 39 * - 31 ELSE NULL END ) / - 31 - 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT 74 * + - ( - CASE 27 WHEN - CASE + CAST ( + - 9 AS INTEGER ) WHEN - 39 * 88 * - 15 + + 49 THEN - 6 - - + COALESCE ( + + 73, - - 94 / 41 + + ( - 87 ) + + - ( - 65 ) * + 30 ) / + + 55 / 44 WHEN + AVG ( - 82 ) THEN COUNT ( * ) ELSE NULL END * - - COUNT ( * ) * + 68 THEN NULL WHEN + COUNT ( * ) - - - 44 THEN - 13 + + 39 * - 31 ELSE NULL END ) / - 31 - 67 col1
----
NULL

query II rowsort
SELECT 45, 65 AS col1
----
45
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9558
SELECT CASE - 11 WHEN + 49 THEN MIN( ALL + - COALESCE ( + 64, + 32 - + 92 - + 65 + - 75 * 85 ) ) * 36 + ( - 33 ) / - 17 * COUNT( * ) / 73 + - 4 WHEN + - 21 THEN COUNT( * ) WHEN + 38 THEN ( 35 ) * - ( 74 ) + + 7 * 91 + + + 98 END * - 12 - + MAX( + 52 ) AS col2, + 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-9558
SELECT CASE - 11 WHEN + 49 THEN MIN ( ALL + - COALESCE ( + 64, + 32 - + 92 - + 65 + - 75 * 85 ) ) * 36 + ( - 33 ) / - 17 * COUNT ( * ) / 73 + - 4 WHEN + - 21 THEN COUNT ( * ) WHEN + 38 THEN ( 35 ) * - ( 74 ) + + 7 * 91 + + + 98 END * - 12 - + MAX ( + 52 ) AS col2, + 59
----
NULL
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9559
SELECT CAST( NULL AS SIGNED ) + - + COUNT( * ) * + 64 / - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * + 64 / - 92 AS col0
----
NULL

query II rowsort
SELECT + 93 col0, 98 * - 40
----
93
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL MIN( + 73 ) + + 78 AS col1
----
151

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL MIN ( + 73 ) + + 78 AS col1
----
151

query I rowsort
SELECT ALL 71 + 30
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9563
SELECT - NULLIF ( + 22, ( - CASE + + 82 WHEN - 44 THEN - NULLIF ( + + 67, + - CAST( + + ( + 69 ) AS SIGNED ) * + - 78 * 67 / - + ( - 90 ) ) + + + 37 - - + 2 * 12 * + MIN( ALL + 75 ) WHEN - + 2 / - + 30 THEN NULL END ) / - 27 + - CAST( NULL AS SIGNED ) - + 1 ) * + 71 * - - COUNT( * ) - - SUM( ALL - - 78 ) AS col2
----
-1484

skipif mysql # not compatible
query I rowsort label-9563
SELECT - NULLIF ( + 22, ( - CASE + + 82 WHEN - 44 THEN - NULLIF ( + + 67, + - CAST ( + + ( + 69 ) AS INTEGER ) * + - 78 * 67 / - + ( - 90 ) ) + + + 37 - - + 2 * 12 * + MIN ( ALL + 75 ) WHEN - + 2 / - + 30 THEN NULL END ) / - 27 + - CAST ( NULL AS INTEGER ) - + 1 ) * + 71 * - - COUNT ( * ) - - SUM ( ALL - - 78 ) AS col2
----
-1484

query I rowsort
SELECT + 50 + 89 + + 37
----
176

query II rowsort
SELECT ALL 53 AS col1, - 78
----
53
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT + 7 * - SUM( + 68 ) AS col0, 98 + + 10
----
-476
108

skipif mysql # not compatible
query II rowsort label-9566
SELECT + 7 * - SUM ( + 68 ) AS col0, 98 + + 10
----
-476
108

query II rowsort
SELECT - - 88 AS col2, 34 AS col1
----
88
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9568
SELECT - ( - - COALESCE ( + 35, + - 47 * - + 91 * COUNT( * ) + + COUNT( * ), - COUNT( * ) ) ) AS col0, + 77
----
-35
77

skipif mysql # not compatible
query II rowsort label-9568
SELECT - ( - - COALESCE ( + 35, + - 47 * - + 91 * COUNT ( * ) + + COUNT ( * ), - COUNT ( * ) ) ) AS col0, + 77
----
-35
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT MAX( DISTINCT - 10 ) + + 76 + + - 17 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9569
SELECT MAX ( DISTINCT - 10 ) + + 76 + + - 17 AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT - ( + - ( + + 41 ) ) + + - COUNT( * ) AS col1, - 69 AS col0
----
40
-69

skipif mysql # not compatible
query II rowsort label-9570
SELECT - ( + - ( + + 41 ) ) + + - COUNT ( * ) AS col1, - 69 AS col0
----
40
-69

query I rowsort
SELECT DISTINCT 69 - - - 36 col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT - 13 + + - NULLIF ( 33, + 20 ) * + COUNT( * ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-9572
SELECT - 13 + + - NULLIF ( 33, + 20 ) * + COUNT ( * ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - MAX( + - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-9573
SELECT - MAX ( + - 42 )
----
42

query I rowsort
SELECT - + 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT DISTINCT - MAX( + 56 ) - 4 + + 87
----
27

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT - MAX ( + 56 ) - 4 + + 87
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9576
SELECT ALL 40 DIV - 92 + - 36 - - COUNT( * ) - - 81
----
46

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL 40 / - 92 + - 36 - - COUNT ( * ) - - 81
----
46

query I rowsort
SELECT + 32 - + - 33 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9578
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) + + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) + + ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + ( - 23 ) * + 26 AS col0
----
-598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9580
SELECT 29 * - COUNT( * ) - - CAST( - 65 AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9580
SELECT 29 * - COUNT ( * ) - - CAST ( - 65 AS INTEGER ) AS col0
----
-94

query I rowsort
SELECT COALESCE ( + 85, - 87 )
----
85

query I rowsort
SELECT - 20 * 85 col2
----
-1700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9583
SELECT ALL 37 * + - COUNT( * ) + - + 71 DIV - 11 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL 37 * + - COUNT ( * ) + - + 71 / - 11 AS col1
----
-31

query I rowsort
SELECT DISTINCT + COALESCE ( - 13, - 42 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT COALESCE ( - + 63, - COUNT( * ) * 35 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9585
SELECT COALESCE ( - + 63, - COUNT ( * ) * 35 ) AS col1
----
-63

query I rowsort
SELECT ALL + ( - 78 )
----
-78

query II rowsort
SELECT - 90 * + - 39 AS col2, - 81 * + 84
----
3510
-6804

onlyif mysql # aggregate syntax: 
query II rowsort label-9588
SELECT ALL COUNT( DISTINCT + + 32 ) * - 43 + - - 94 AS col2, - 21
----
51
-21

skipif mysql # not compatible
query II rowsort label-9588
SELECT ALL COUNT ( DISTINCT + + 32 ) * - 43 + - - 94 AS col2, - 21
----
51
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-9589
SELECT NULLIF ( - 14, + ( + 52 ) ) AS col0, - COUNT( * ) * + 95 - - 24
----
-14
-71

skipif mysql # not compatible
query II rowsort label-9589
SELECT NULLIF ( - 14, + ( + 52 ) ) AS col0, - COUNT ( * ) * + 95 - - 24
----
-14
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9590
SELECT + 92 DIV + COUNT( * ) + - 86 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9590
SELECT + 92 / + COUNT ( * ) + - 86 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9591
SELECT ALL + ( - - 80 ), + SUM( DISTINCT 21 ) AS col0
----
80
21

skipif mysql # not compatible
query II rowsort label-9591
SELECT ALL + ( - - 80 ), + SUM ( DISTINCT 21 ) AS col0
----
80
21

query II rowsort
SELECT + 59 * + 12, + 89 AS col1
----
708
89

query I rowsort
SELECT ALL + 24 * - - 40 + + 3 AS col0
----
963

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT DISTINCT + CAST( - 27 AS SIGNED ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT + CAST ( - 27 AS INTEGER ) AS col1
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9595
SELECT DISTINCT 86 * - - CAST( NULL AS DECIMAL ) + - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT 86 * - - CAST ( NULL AS REAL ) + - 67 AS col1
----
NULL

query I rowsort
SELECT ALL - 25 * + - ( + 2 ) + - 50 + 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT 37 * 54 + - 96 - 40 * + SUM( + 93 )
----
-1818

skipif mysql # not compatible
query I rowsort label-9597
SELECT 37 * 54 + - 96 - 40 * + SUM ( + 93 )
----
-1818

query I rowsort
SELECT - 0 + - 44 * - + 75
----
3300

query I rowsort
SELECT + ( - 59 )
----
-59

query II rowsort
SELECT + - 83 + 86 col0, - 31 * - 61
----
3
1891

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT - + 72 * + SUM( ALL - - 8 ) - - 81
----
-495

skipif mysql # not compatible
query I rowsort label-9601
SELECT - + 72 * + SUM ( ALL - - 8 ) - - 81
----
-495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9602
SELECT + 75 * - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT + 75 * - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9603
SELECT + 32 * + 60 + + 38 DIV 94 + - - COUNT( * ) + - + 13 - + 41 AS col2
----
1867

skipif mysql # not compatible
query I rowsort label-9603
SELECT + 32 * + 60 + + 38 / 94 + - - COUNT ( * ) + - + 13 - + 41 AS col2
----
1867

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT + COUNT( * ) * 6 col2
----
6

skipif mysql # not compatible
query I rowsort label-9604
SELECT + COUNT ( * ) * 6 col2
----
6

query I rowsort
SELECT ALL + NULLIF ( + 70, ( - 66 ) ) * + 46 AS col2
----
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT + 55 + + + MIN( 32 )
----
87

skipif mysql # not compatible
query I rowsort label-9606
SELECT + 55 + + + MIN ( 32 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9607
SELECT DISTINCT 29 * + - 1 AS col2, NULLIF ( - - 17, NULLIF ( + - 10, - - COUNT( * ) * + 7 * 82 ) ) col1
----
-29
17

skipif mysql # not compatible
query II rowsort label-9607
SELECT DISTINCT 29 * + - 1 AS col2, NULLIF ( - - 17, NULLIF ( + - 10, - - COUNT ( * ) * + 7 * 82 ) ) col1
----
-29
17

query I rowsort
SELECT + + 65 * - 46 AS col1
----
-2990

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ALL COALESCE ( - 16, - + COUNT( * ) ) * + - 15
----
240

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL COALESCE ( - 16, - + COUNT ( * ) ) * + - 15
----
240

query II rowsort
SELECT - 17 + - 50 AS col0, 25
----
-67
25

query I rowsort
SELECT + 30 + - 32 col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9612
SELECT DISTINCT CASE - CAST( + - COUNT( * ) AS SIGNED ) WHEN + - 58 / - 60 * 20 + - 60 + - 9 THEN NULL WHEN 0 THEN 84 ELSE NULL END AS col0, 7 + + COUNT( * )
----
NULL
8

skipif mysql # not compatible
query II rowsort label-9612
SELECT DISTINCT CASE - CAST ( + - COUNT ( * ) AS INTEGER ) WHEN + - 58 / - 60 * 20 + - 60 + - 9 THEN NULL WHEN 0 THEN 84 ELSE NULL END AS col0, 7 + + COUNT ( * )
----
NULL
8

query I rowsort
SELECT - 18 + - + 72
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9614
SELECT DISTINCT 52 AS col0, 69 - - COUNT( * )
----
52
70

skipif mysql # not compatible
query II rowsort label-9614
SELECT DISTINCT 52 AS col0, 69 - - COUNT ( * )
----
52
70

query I rowsort
SELECT ALL 32 + + 82 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT + COALESCE ( - 14, - 78 + + 83, + + 24 - + + 40 + + + ( + MAX( + 64 ) ) ) + + 37 * - - COUNT( * ) * - 42 AS col0
----
-1568

skipif mysql # not compatible
query I rowsort label-9616
SELECT + COALESCE ( - 14, - 78 + + 83, + + 24 - + + 40 + + + ( + MAX ( + 64 ) ) ) + + 37 * - - COUNT ( * ) * - 42 AS col0
----
-1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9617
SELECT DISTINCT + 94 * NULLIF ( - COUNT( * ), - 60 + - + 53 * - + CAST( NULL AS SIGNED ) * + 53 - - 42 / - + CAST( 42 AS SIGNED ) * - 6 )
----
-94

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT + 94 * NULLIF ( - COUNT ( * ), - 60 + - + 53 * - + CAST ( NULL AS INTEGER ) * + 53 - - 42 / - + CAST ( 42 AS INTEGER ) * - 6 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT DISTINCT 61 + + COUNT( ALL 83 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT 61 + + COUNT ( ALL 83 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL 1 / CASE AVG ( - - 93 ) WHEN + COUNT( * ) * - + 19 + + ( COUNT( + 97 ) ) THEN 85 * + 8 WHEN + - 84 - + 66 THEN NULL END * + + 94 + COUNT( * ) + - 59 + - + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL 1 / CASE AVG ( - - 93 ) WHEN + COUNT ( * ) * - + 19 + + ( COUNT ( + 97 ) ) THEN 85 * + 8 WHEN + - 84 - + 66 THEN NULL END * + + 94 + COUNT ( * ) + - 59 + - + 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT - 84 + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-9620
SELECT - 84 + COUNT ( * )
----
-83

query I rowsort
SELECT ALL 89 * - 54
----
-4806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9622
SELECT + CAST( + ( MAX( + - 3 ) ) AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-9622
SELECT + CAST ( + ( MAX ( + - 3 ) ) AS INTEGER )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT + CAST( 96 AS SIGNED ) col2
----
96

skipif mysql # not compatible
query I rowsort label-9623
SELECT + CAST ( 96 AS INTEGER ) col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT CAST( 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-9624
SELECT CAST ( 45 AS INTEGER )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9625
SELECT ALL - 30 DIV 48 + - NULLIF ( 68, COUNT( DISTINCT 64 ) ) * + - COUNT( ALL NULLIF ( 84, + - 69 * + 55 + - 52 + + - 76 + + + 11 * + ( + 71 ) + 95 * + 81 * 4 ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - 30 / 48 + - NULLIF ( 68, COUNT ( DISTINCT 64 ) ) * + - COUNT ( ALL NULLIF ( 84, + - 69 * + 55 + - 52 + + - 76 + + + 11 * + ( + 71 ) + 95 * + 81 * 4 ) ) AS col2
----
68

query I rowsort
SELECT ALL 53 * 15 AS col2
----
795

query I rowsort
SELECT ( + - 1 ) AS col1
----
-1

query I rowsort
SELECT ALL + ( - + 91 ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9629
SELECT DISTINCT + CASE 94 WHEN - + 15 + + - 6 * - MAX( - - 30 ) THEN 74 * CAST( NULL AS SIGNED ) * - 85 + - - 18 - - 10 * + - 75 * 64 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT + CASE 94 WHEN - + 15 + + - 6 * - MAX ( - - 30 ) THEN 74 * CAST ( NULL AS INTEGER ) * - 85 + - - 18 - - 10 * + - 75 * 64 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9630
SELECT ALL - 69 * CASE + + 32 WHEN 27 + - + 7 + - COUNT( * ) * NULLIF ( - - 8, + - 43 ) + - 77 THEN - 78 * + COALESCE ( - - COUNT( * ), 34 / CASE + 53 WHEN + - 62 * + 51 + - 21 THEN + ( + 0 ) END, + 50 / - 9 + + 94 ) * 41 * + CASE - 61 WHEN + 90 * - + MAX( ALL 60 ) / - 90 THEN NULL WHEN + 62 THEN - 29 / - 1 + 55 END + 43 + + MAX( + 39 ) WHEN + + SUM( ALL + 22 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN COUNT( * ) ELSE NULL END * - NULLIF ( + + 6, - - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL - 69 * CASE + + 32 WHEN 27 + - + 7 + - COUNT ( * ) * NULLIF ( - - 8, + - 43 ) + - 77 THEN - 78 * + COALESCE ( - - COUNT ( * ), 34 / CASE + 53 WHEN + - 62 * + 51 + - 21 THEN + ( + 0 ) END, + 50 / - 9 + + 94 ) * 41 * + CASE - 61 WHEN + 90 * - + MAX ( ALL 60 ) / - 90 THEN NULL WHEN + 62 THEN - 29 / - 1 + 55 END + 43 + + MAX ( + 39 ) WHEN + + SUM ( ALL + 22 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) ELSE NULL END * - NULLIF ( + + 6, - - 65 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9631
SELECT ALL + 4 * 86 DIV 68 * - 40 * - 68 - 75 * + - NULLIF ( 89, - CASE - + 26 WHEN - + 64 THEN NULL ELSE 59 * + 82 DIV - CAST( NULL AS SIGNED ) END + + - 61 DIV + 79 - - + 93 ) AS col0
----
20275

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL + 4 * 86 / 68 * - 40 * - 68 - 75 * + - NULLIF ( 89, - CASE - + 26 WHEN - + 64 THEN NULL ELSE 59 * + 82 / - CAST ( NULL AS INTEGER ) END + + - 61 / + 79 - - + 93 ) AS col0
----
20275

query I rowsort
SELECT + 76 - - 92
----
168

query II rowsort
SELECT + + 26, + 6 + + + 27 col2
----
26
33

query I rowsort
SELECT ALL + - 71 * 34 * - 87
----
210018

query I rowsort
SELECT - + ( 16 ) * - 31 AS col1
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT DISTINCT + + COUNT( * ) * - + MIN( ( - + 29 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT + + COUNT ( * ) * - + MIN ( ( - + 29 ) ) AS col2
----
29

query I rowsort
SELECT DISTINCT + + ( + 19 )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9638
SELECT ALL + COALESCE ( + MAX( + + 7 ), + 82, - - 82 ), + 78 AS col1
----
7
78

skipif mysql # not compatible
query II rowsort label-9638
SELECT ALL + COALESCE ( + MAX ( + + 7 ), + 82, - - 82 ), + 78 AS col1
----
7
78

query I rowsort
SELECT ALL + + 69 AS col2
----
69

query I rowsort
SELECT ALL ( + 47 )
----
47

query I rowsort
SELECT - 48 + + - 20 * 29 AS col0
----
-628

query II rowsort
SELECT - + 43 AS col1, - 78 * 33
----
-43
-2574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9643
SELECT ALL 92 DIV COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL 92 / COUNT ( * )
----
92

query I rowsort
SELECT ALL + ( + + 59 ) AS col0
----
59

query I rowsort
SELECT + 75 * 17
----
1275

onlyif mysql # DIV for integer division: 
query II rowsort label-9646
SELECT ALL + 39 DIV 65 + - COALESCE ( + 26, - 52 + + ( ( + ( + 64 ) ) ) ) * - - 52 AS col2, - 56
----
-1352
-56

skipif mysql # not compatible
query II rowsort label-9646
SELECT ALL + 39 / 65 + - COALESCE ( + 26, - 52 + + ( ( + ( + 64 ) ) ) ) * - - 52 AS col2, - 56
----
-1352
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9647
SELECT + COUNT( * ) DIV + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9647
SELECT + COUNT ( * ) / + 46 AS col2
----
0

query I rowsort
SELECT 0 * 52 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9649
SELECT ALL - ( - COUNT( * ) ) + - - 6 AS col2, 61
----
7
61

skipif mysql # not compatible
query II rowsort label-9649
SELECT ALL - ( - COUNT ( * ) ) + - - 6 AS col2, 61
----
7
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT ALL NULLIF ( - - COUNT( * ), - ( + + 28 ) - - + ( - ( - 13 ) ) + + + 29 )
----
1

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL NULLIF ( - - COUNT ( * ), - ( + + 28 ) - - + ( - ( - 13 ) ) + + + 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT - MIN( DISTINCT - 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9651
SELECT - MIN ( DISTINCT - 40 ) AS col0
----
40

query II rowsort
SELECT - 1 AS col0, - ( + 0 ) * - 86 + - - 86 + - 16 * + + 33
----
-1
-442

query I rowsort
SELECT ALL 8 + - 38
----
-30

query I rowsort
SELECT ALL + 35 + - 67 - + 37
----
-69

query I rowsort
SELECT 64 - 94 col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT SUM( ALL - 88 ) * 83 + + 67 * - 76
----
-12396

skipif mysql # not compatible
query I rowsort label-9656
SELECT SUM ( ALL - 88 ) * 83 + + 67 * - 76
----
-12396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9657
SELECT COALESCE ( - 68, + 64 * 73 + - 49 * - ( - CAST( NULL AS SIGNED ) ) * - 97 + + + COUNT( * ) + MIN( ALL - 45 ) * 26 DIV + + 53 * + CASE COUNT( * ) WHEN - 75 THEN - + CASE - + ( 29 ) WHEN 53 + - + 99 - + 48 THEN - 96 * - 84 WHEN MAX( - + 95 ) THEN NULL END DIV - 4 END, + 0 ) * 61
----
-4148

skipif mysql # not compatible
query I rowsort label-9657
SELECT COALESCE ( - 68, + 64 * 73 + - 49 * - ( - CAST ( NULL AS INTEGER ) ) * - 97 + + + COUNT ( * ) + MIN ( ALL - 45 ) * 26 / + + 53 * + CASE COUNT ( * ) WHEN - 75 THEN - + CASE - + ( 29 ) WHEN 53 + - + 99 - + 48 THEN - 96 * - 84 WHEN MAX ( - + 95 ) THEN NULL END / - 4 END, + 0 ) * 61
----
-4148

query II rowsort
SELECT 55, - NULLIF ( 25, + 62 ) * 9 + - 59 col1
----
55
-284

query II rowsort
SELECT ALL - 38, + 39 AS col0
----
-38
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9660
SELECT ALL + CAST( NULL AS DECIMAL ) * - + 85 * + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL + CAST ( NULL AS REAL ) * - + 85 * + - 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT CAST( NULL AS SIGNED ) * 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT CAST ( NULL AS INTEGER ) * 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT ALL COUNT( * ) * - 11 * - COALESCE ( + 46, + 96 * - 18 ) * + + CASE + 4 WHEN + - 77 THEN - 86 * + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL COUNT ( * ) * - 11 * - COALESCE ( + 46, + 96 * - 18 ) * + + CASE + 4 WHEN + - 77 THEN - 86 * + 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ( + - 29 ) + - MAX( - - ( - + 35 ) )
----
6

skipif mysql # not compatible
query I rowsort label-9663
SELECT ( + - 29 ) + - MAX ( - - ( - + 35 ) )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9664
SELECT COUNT( * ) + - 61 DIV 73 * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9664
SELECT COUNT ( * ) + - 61 / 73 * COUNT ( * )
----
1

query I rowsort
SELECT 74 * + 62 AS col0
----
4588

onlyif mysql # aggregate syntax: 
query II rowsort label-9666
SELECT + - 17 AS col1, COUNT( * ) col0
----
-17
1

skipif mysql # not compatible
query II rowsort label-9666
SELECT + - 17 AS col1, COUNT ( * ) col0
----
-17
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT ALL - MIN( DISTINCT + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL - MIN ( DISTINCT + 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9668
SELECT + CAST( NULLIF ( 22, 2 ) AS SIGNED ) AS col2, - NULLIF ( - 55, 97 + + + 14 - - + CASE - ( - + CAST( NULL AS SIGNED ) ) WHEN ( 52 ) + - SUM( ALL + CAST( NULL AS SIGNED ) ) * + 17 + - 99 - - 20 * - 77 * + 99 THEN + 76 + - - 52 + + - 3 * - 51 WHEN 39 THEN NULL ELSE NULL END ) col0
----
22
55

skipif mysql # not compatible
query II rowsort label-9668
SELECT + CAST ( NULLIF ( 22, 2 ) AS INTEGER ) AS col2, - NULLIF ( - 55, 97 + + + 14 - - + CASE - ( - + CAST ( NULL AS INTEGER ) ) WHEN ( 52 ) + - SUM ( ALL + CAST ( NULL AS INTEGER ) ) * + 17 + - 99 - - 20 * - 77 * + 99 THEN + 76 + - - 52 + + - 3 * - 51 WHEN 39 THEN NULL ELSE NULL END ) col0
----
22
55

query I rowsort
SELECT ALL - + ( 31 ) col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9670
SELECT - - 87 * - 80 + + + COALESCE ( + SUM( ALL - 65 ), 85 ) * - COUNT( * ) + CASE - 9 WHEN + - COUNT( * ) - 55 * CAST( NULL AS SIGNED ) THEN NULL WHEN 46 + + 16 THEN + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT - - 87 * - 80 + + + COALESCE ( + SUM ( ALL - 65 ), 85 ) * - COUNT ( * ) + CASE - 9 WHEN + - COUNT ( * ) - 55 * CAST ( NULL AS INTEGER ) THEN NULL WHEN 46 + + 16 THEN + 41 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9671
SELECT 97 * + COUNT( * ) * COALESCE ( - CAST( 10 AS SIGNED ), MAX( + ( 87 ) ) * - 26 * - ( + SUM( + + 32 ) ) + + - COALESCE ( + - 77, - 82 * - 56 * 21 + 48, - + 58 ), + CAST( 7 AS SIGNED ), - ( + ( + 99 ) ) ) + + 12 + + + 22 + NULLIF ( - CASE - 73 WHEN + + COUNT( * ) THEN - 40 * - 58 + + ( 53 ) WHEN - 55 * - COUNT( * ) * - COALESCE ( 94, 37 * 42 + - ( - 58 ) ) * + COUNT( * ) + 88 THEN NULL END, 78 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT 97 * + COUNT ( * ) * COALESCE ( - CAST ( 10 AS INTEGER ), MAX ( + ( 87 ) ) * - 26 * - ( + SUM ( + + 32 ) ) + + - COALESCE ( + - 77, - 82 * - 56 * 21 + 48, - + 58 ), + CAST ( 7 AS INTEGER ), - ( + ( + 99 ) ) ) + + 12 + + + 22 + NULLIF ( - CASE - 73 WHEN + + COUNT ( * ) THEN - 40 * - 58 + + ( 53 ) WHEN - 55 * - COUNT ( * ) * - COALESCE ( 94, 37 * 42 + - ( - 58 ) ) * + COUNT ( * ) + 88 THEN NULL END, 78 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT DISTINCT - + 2 AS col1, COUNT( * ) * + + 19 AS col0
----
-2
19

skipif mysql # not compatible
query II rowsort label-9672
SELECT DISTINCT - + 2 AS col1, COUNT ( * ) * + + 19 AS col0
----
-2
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT - 50 + - CASE - 57 WHEN 0 * 63 + 28 + + + 90 * COUNT( * ) + 90 / 91 THEN NULL ELSE 93 END * 71 * 56
----
-369818

skipif mysql # not compatible
query I rowsort label-9673
SELECT - 50 + - CASE - 57 WHEN 0 * 63 + 28 + + + 90 * COUNT ( * ) + 90 / 91 THEN NULL ELSE 93 END * 71 * 56
----
-369818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9674
SELECT ALL + - 52 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL + - 52 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 44 AS col2, ( + 3 ) - + 46 AS col2
----
44
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9676
SELECT COALESCE ( - COUNT( * ), + + CAST( NULL AS SIGNED ) - COUNT( * ) ) + 60 - - 98
----
157

skipif mysql # not compatible
query I rowsort label-9676
SELECT COALESCE ( - COUNT ( * ), + + CAST ( NULL AS INTEGER ) - COUNT ( * ) ) + 60 - - 98
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-9677
SELECT - - 22, COUNT( * ) * + ( 16 ) AS col1
----
22
16

skipif mysql # not compatible
query II rowsort label-9677
SELECT - - 22, COUNT ( * ) * + ( 16 ) AS col1
----
22
16

query I rowsort
SELECT + 17 * 42 + - - 54
----
768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9679
SELECT + + CAST( - 80 AS SIGNED ) * + 9 + - ( - 75 )
----
-645

skipif mysql # not compatible
query I rowsort label-9679
SELECT + + CAST ( - 80 AS INTEGER ) * + 9 + - ( - 75 )
----
-645

query I rowsort
SELECT - ( + 68 ) col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9681
SELECT ALL - COALESCE ( COALESCE ( - 31, CAST( - - 96 AS SIGNED ) + - CASE + 19 WHEN + 39 * + COUNT( * ) + + 37 THEN COUNT( * ) * - - MIN( DISTINCT 79 ) - + - ( - + 7 ) ELSE - 97 END, - 47 ), + COUNT( * ) - + SUM( - 92 ) * + + 34 ) + - 32 * - 48 AS col2
----
1567

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - COALESCE ( COALESCE ( - 31, CAST ( - - 96 AS INTEGER ) + - CASE + 19 WHEN + 39 * + COUNT ( * ) + + 37 THEN COUNT ( * ) * - - MIN ( DISTINCT 79 ) - + - ( - + 7 ) ELSE - 97 END, - 47 ), + COUNT ( * ) - + SUM ( - 92 ) * + + 34 ) + - 32 * - 48 AS col2
----
1567

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT 61 * - + 33 + SUM( + 73 ) * 87 AS col1
----
4338

skipif mysql # not compatible
query I rowsort label-9682
SELECT 61 * - + 33 + SUM ( + 73 ) * 87 AS col1
----
4338

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9683
SELECT ALL 85, - 83 * CAST( - 58 AS SIGNED ) AS col1
----
85
4814

skipif mysql # not compatible
query II rowsort label-9683
SELECT ALL 85, - 83 * CAST ( - 58 AS INTEGER ) AS col1
----
85
4814

query I rowsort
SELECT ALL + 49 + - - 99 + + - 58 + 13 AS col1
----
103

query I rowsort
SELECT 67 * - - 74 AS col0
----
4958

query I rowsort
SELECT 74 + - - NULLIF ( - 62, 46 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT 9 - - + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9687
SELECT 9 - - + COUNT ( * ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9688
SELECT COUNT( * ) * - + CAST( NULL AS SIGNED ) col0, 80 AS col0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-9688
SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0, 80 AS col0
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT ALL + COUNT( * ) + 14 + + 56 + 8 * + 51 * - - 61 AS col2
----
24959

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL + COUNT ( * ) + 14 + + 56 + 8 * + 51 * - - 61 AS col2
----
24959

query I rowsort
SELECT 99 + + 50 + 68 AS col2
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT COUNT( * ) + + ( + 62 )
----
63

skipif mysql # not compatible
query I rowsort label-9691
SELECT COUNT ( * ) + + ( + 62 )
----
63

query I rowsort
SELECT 18 + + CASE 59 WHEN - 57 THEN + - 96 ELSE NULL END + + 27
----
NULL

query I rowsort
SELECT 92 * + - 30
----
-2760

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9694
SELECT - 42 / CAST( + - 96 AS DECIMAL ) + + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-9694
SELECT - 42 / CAST ( + - 96 AS REAL ) + + - 46
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ( - 57 ) * - + 76 + COUNT( * )
----
4333

skipif mysql # not compatible
query I rowsort label-9695
SELECT ( - 57 ) * - + 76 + COUNT ( * )
----
4333

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT COUNT( * ) + + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-9696
SELECT COUNT ( * ) + + - 66
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9697
SELECT 42 DIV + 92 + - + 64 - + 23 * 30 AS col0
----
-754

skipif mysql # not compatible
query I rowsort label-9697
SELECT 42 / + 92 + - + 64 - + 23 * 30 AS col0
----
-754

query I rowsort
SELECT DISTINCT - - ( 23 ) col2
----
23

query I rowsort
SELECT ALL - - 68 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT DISTINCT - + COUNT( ALL + 21 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT - + COUNT ( ALL + 21 ) AS col0
----
-1

query II rowsort
SELECT DISTINCT 95 * - 97 AS col2, 83 + + 66
----
-9215
149

query I rowsort
SELECT - 35 * - 34
----
1190

query I rowsort
SELECT + 74 - 72 AS col0
----
2

query I rowsort
SELECT ALL - 72 * - 20 - 10 + + + 46
----
1476

query I rowsort
SELECT + ( + ( 86 ) ) AS col1
----
86

query I rowsort
SELECT + ( + 32 ) * + - 35 * - + 78 + + - 46
----
87314

onlyif mysql # DIV for integer division: 
query II rowsort label-9707
SELECT + + 33 DIV + - 48, 26 - 38 AS col2
----
0
-12

skipif mysql # not compatible
query II rowsort label-9707
SELECT + + 33 / + - 48, 26 - 38 AS col2
----
0
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT - + COUNT( * ) * + 75 * 29
----
-2175

skipif mysql # not compatible
query I rowsort label-9708
SELECT - + COUNT ( * ) * + 75 * 29
----
-2175

query I rowsort
SELECT ALL 40 + + + 32
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9710
SELECT ALL 80 + + COUNT( * ) + - + 55, + 28 * - 26 + - - 28 AS col1
----
26
-700

skipif mysql # not compatible
query II rowsort label-9710
SELECT ALL 80 + + COUNT ( * ) + - + 55, + 28 * - 26 + - - 28 AS col1
----
26
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT DISTINCT + + COUNT( ALL + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT + + COUNT ( ALL + 17 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL + SUM( + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL + SUM ( + 37 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT DISTINCT + - CAST( + 17 AS SIGNED ) + ( + 47 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT + - CAST ( + 17 AS INTEGER ) + ( + 47 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT ALL 20 + - + 84 + - 67 + + + 71 * + COUNT( * ) * - 28 * + NULLIF ( - 93, - + 35 * - - 79 ) * - + 76
----
-14051315

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL 20 + - + 84 + - 67 + + + 71 * + COUNT ( * ) * - 28 * + NULLIF ( - 93, - + 35 * - - 79 ) * - + 76
----
-14051315

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + ( + + 29 ) * + COUNT( * ) - - + 91 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-9715
SELECT + ( + + 29 ) * + COUNT ( * ) - - + 91 AS col0
----
120

query I rowsort
SELECT DISTINCT - 90 + 25 * 65 * + 76 * 43
----
5310410

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT + 37 + - 49 * ( - 52 ) - + COUNT( * ) AS col2
----
2584

skipif mysql # not compatible
query I rowsort label-9717
SELECT + 37 + - 49 * ( - 52 ) - + COUNT ( * ) AS col2
----
2584

onlyif mysql # DIV for integer division: 
query II rowsort label-9718
SELECT - 43 * 71 DIV + 75, 67 AS col1
----
-40
67

skipif mysql # not compatible
query II rowsort label-9718
SELECT - 43 * 71 / + 75, 67 AS col1
----
-40
67

query I rowsort
SELECT - 61 + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT ALL - MAX( - 20 ) - - 88
----
108

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL - MAX ( - 20 ) - - 88
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT ALL - 73 - 40 * COUNT( * ) AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL - 73 - 40 * COUNT ( * ) AS col0
----
-113

query I rowsort
SELECT ALL + 73 - - 85
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL CASE + 79 WHEN COALESCE ( + - 48, + - 1 ) + - + 63 THEN - AVG ( ALL - 97 ) ELSE + - MAX( ALL - 51 ) END col0
----
51

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL CASE + 79 WHEN COALESCE ( + - 48, + - 1 ) + - + 63 THEN - AVG ( ALL - 97 ) ELSE + - MAX ( ALL - 51 ) END col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9724
SELECT DISTINCT - 28 DIV - - COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT - 28 / - - COUNT ( * ) AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9725
SELECT - 30 / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT - 30 / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 41 * - + 93
----
3813

query I rowsort
SELECT + 47 * 67 AS col2
----
3149

query I rowsort
SELECT ALL ( COALESCE ( - 58, - + 41, 9 ) ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL + ( - - COUNT( - 51 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL + ( - - COUNT ( - 51 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT COALESCE ( - 42, - + 60 * - 69 - - 83 + + 57 * - + 81 + + - 72 DIV - 95 * 5 * - 24 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-9730
SELECT COALESCE ( - 42, - + 60 * - 69 - - 83 + + 57 * - + 81 + + - 72 / - 95 * 5 * - 24 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9731
SELECT ALL + 47 AS col0, + MAX( 72 ) col2
----
47
72

skipif mysql # not compatible
query II rowsort label-9731
SELECT ALL + 47 AS col0, + MAX ( 72 ) col2
----
47
72

query I rowsort
SELECT ALL + 4 * + 96 AS col0
----
384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9733
SELECT - + 98 * + COALESCE ( - COUNT( * ), + COUNT( * ) DIV 55, - 41 * + 69 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9733
SELECT - + 98 * + COALESCE ( - COUNT ( * ), + COUNT ( * ) / 55, - 41 * + 69 ) AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9734
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - MIN( DISTINCT - 61 ) AS col1
----
NULL
61

skipif mysql # not compatible
query II rowsort label-9734
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - MIN ( DISTINCT - 61 ) AS col1
----
NULL
61

query I rowsort
SELECT DISTINCT - 76 * - - 76 * + + 72 * + - 3 AS col2
----
1247616

query I rowsort
SELECT - + 49 * - 64 + - - 85 * + 75 + - 85 AS col2
----
9426

query I rowsort
SELECT ALL - 99 * 16 + 27 AS col0
----
-1557

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT COUNT( * ) * + 73 - - 79 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-9738
SELECT COUNT ( * ) * + 73 - - 79 AS col0
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9739
SELECT + + 59 AS col2, - CAST( - 38 AS SIGNED ) - COUNT( * ) + + + 21 DIV COUNT( * ) * + COUNT( * ) - 49 AS col1
----
59
9

skipif mysql # not compatible
query II rowsort label-9739
SELECT + + 59 AS col2, - CAST ( - 38 AS INTEGER ) - COUNT ( * ) + + + 21 / COUNT ( * ) * + COUNT ( * ) - 49 AS col1
----
59
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT + 55 - - + 83 + - SUM( DISTINCT - 48 ) AS col0
----
186

skipif mysql # not compatible
query I rowsort label-9740
SELECT + 55 - - + 83 + - SUM ( DISTINCT - 48 ) AS col0
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9741
SELECT ALL - NULLIF ( - CAST( + + 44 AS SIGNED ), - 38 ) * + COUNT( * ) - + 45 - - 21 * - - ( + 6 ) + - 76 + - 68 + 25 * + COUNT( * ) * - CAST( NULL AS SIGNED ) * - + 65 * + 92 + CAST( - - 72 AS SIGNED ) AS col0, 89
----
NULL
89

skipif mysql # not compatible
query II rowsort label-9741
SELECT ALL - NULLIF ( - CAST ( + + 44 AS INTEGER ), - 38 ) * + COUNT ( * ) - + 45 - - 21 * - - ( + 6 ) + - 76 + - 68 + 25 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - + 65 * + 92 + CAST ( - - 72 AS INTEGER ) AS col0, 89
----
NULL
89

query II rowsort
SELECT - 74, 24 - + 72 AS col2
----
-74
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL + + MIN( ALL - + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + + MIN ( ALL - + 7 )
----
-7

query I rowsort
SELECT ALL - + 20 * - 72 + 17 * - 73 + - + 77 col1
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-9745
SELECT ALL + 6 * + 80 + 57 AS col1, + MAX( ALL - - 79 )
----
537
79

skipif mysql # not compatible
query II rowsort label-9745
SELECT ALL + 6 * + 80 + 57 AS col1, + MAX ( ALL - - 79 )
----
537
79

query I rowsort
SELECT ALL + ( + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT + ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9747
SELECT + ( + - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT + - 22 + MIN( - 32 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9748
SELECT + - 22 + MIN ( - 32 ) AS col1
----
-54

query I rowsort
SELECT - - 11 * + 11 AS col1
----
121

query II rowsort
SELECT + 59 AS col0, 48 + + 2 * + ( + - 29 )
----
59
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9751
SELECT ALL 14 * 69 * 17 AS col1, - 81 DIV ( - MIN( - - 2 ) ) col0
----
16422
40

skipif mysql # not compatible
query II rowsort label-9751
SELECT ALL 14 * 69 * 17 AS col1, - 81 / ( - MIN ( - - 2 ) ) col0
----
16422
40

query I rowsort
SELECT + 97 + 78 AS col2
----
175

query I rowsort
SELECT DISTINCT 54 * + ( - 70 ) - 19
----
-3799

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9754
SELECT - CAST( + 81 AS SIGNED ) col0, 88
----
-81
88

skipif mysql # not compatible
query II rowsort label-9754
SELECT - CAST ( + 81 AS INTEGER ) col0, 88
----
-81
88

query I rowsort
SELECT ALL 37 * - 59 * + 19
----
-41477

query I rowsort
SELECT - ( - - 69 )
----
-69

query I rowsort
SELECT + 25 + 52 * - 22
----
-1119

query I rowsort
SELECT + 84 * 77 * - + 88 AS col0
----
-569184

query I rowsort
SELECT DISTINCT ( - + 49 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9760
SELECT ALL SUM( ALL 28 ) AS col0, + 92 + + ( + - 70 ) AS col0
----
28
22

skipif mysql # not compatible
query II rowsort label-9760
SELECT ALL SUM ( ALL 28 ) AS col0, + 92 + + ( + - 70 ) AS col0
----
28
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT + CAST( 42 AS SIGNED ) + 45 + - COUNT( * ) * - + 87 * - - COUNT( * )
----
174

skipif mysql # not compatible
query I rowsort label-9761
SELECT + CAST ( 42 AS INTEGER ) + 45 + - COUNT ( * ) * - + 87 * - - COUNT ( * )
----
174

query I rowsort
SELECT - ( + 69 )
----
-69

query I rowsort
SELECT - 54 * - 70 * + - 0 AS col1
----
0

query I rowsort
SELECT + 65 + - + ( + - ( - COALESCE ( + + COALESCE ( + 70, + 89 + NULLIF ( 50, 63 ) + + 90 ), - 64 * + + ( + 11 ) + 75 ) ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - 71 - - COUNT( * ) + COUNT( * ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9765
SELECT - 71 - - COUNT ( * ) + COUNT ( * ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT DISTINCT 77 * 58 * - 11 * - ( + COUNT( * ) ) AS col2
----
49126

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT 77 * 58 * - 11 * - ( + COUNT ( * ) ) AS col2
----
49126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT - NULLIF ( COUNT( * ), + CASE + 66 WHEN COUNT( * ) THEN - MAX( + - ( + + 90 ) ) END DIV + - 7 ) + 43 + - - COUNT( DISTINCT 5 ) DIV - COALESCE ( - 23, - 52, - 54 - + ( 57 ), + - 22 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9768
SELECT - NULLIF ( COUNT ( * ), + CASE + 66 WHEN COUNT ( * ) THEN - MAX ( + - ( + + 90 ) ) END / + - 7 ) + 43 + - - COUNT ( DISTINCT 5 ) / - COALESCE ( - 23, - 52, - 54 - + ( 57 ), + - 22 ) AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT ALL - 24 * 76 DIV + + 79
----
-23

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - 24 * 76 / + + 79
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL 24 * + COUNT( ALL - - 13 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL 24 * + COUNT ( ALL - - 13 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9771
SELECT - COUNT( * ) + + - 4 AS col0, 57 * - + 66
----
-5
-3762

skipif mysql # not compatible
query II rowsort label-9771
SELECT - COUNT ( * ) + + - 4 AS col0, 57 * - + 66
----
-5
-3762

onlyif mysql # aggregate syntax: 
query II rowsort label-9772
SELECT ALL CASE - COALESCE ( ( - ( - 6 ) ), - + COUNT( * ) * + + 49 + - MIN( ALL + 2 ) ) WHEN - + 92 THEN + 31 * - + ( - - 36 ) WHEN - 7 - - 50 + 13 * - - 59 + - COUNT( * ) * - 14 THEN 71 END col0, ( + NULLIF ( + - 94, - COUNT( ALL + - 28 ) * 4 + - + 34 ) ) AS col1
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-9772
SELECT ALL CASE - COALESCE ( ( - ( - 6 ) ), - + COUNT ( * ) * + + 49 + - MIN ( ALL + 2 ) ) WHEN - + 92 THEN + 31 * - + ( - - 36 ) WHEN - 7 - - 50 + 13 * - - 59 + - COUNT ( * ) * - 14 THEN 71 END col0, ( + NULLIF ( + - 94, - COUNT ( ALL + - 28 ) * 4 + - + 34 ) ) AS col1
----
NULL
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL - 38 * - 68 * - + COUNT( * ) - + + 6
----
-2590

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL - 38 * - 68 * - + COUNT ( * ) - + + 6
----
-2590

query I rowsort
SELECT - - 27 + - 54 col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9775
SELECT + CAST( - + CASE + + 24 WHEN + 46 THEN + + 6 END AS SIGNED ), + 78 * - + 29 col2
----
NULL
-2262

skipif mysql # not compatible
query II rowsort label-9775
SELECT + CAST ( - + CASE + + 24 WHEN + 46 THEN + + 6 END AS INTEGER ), + 78 * - + 29 col2
----
NULL
-2262

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT 36 DIV 51 + - 41 - - + 75 - + 36 * + 14 AS col0
----
-470

skipif mysql # not compatible
query I rowsort label-9776
SELECT 36 / 51 + - 41 - - + 75 - + 36 * + 14 AS col0
----
-470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9777
SELECT - CASE + 29 WHEN - + CAST( NULL AS SIGNED ) * - + 90 THEN NULL ELSE + MAX( - 4 ) END DIV - CAST( - 76 AS SIGNED ) DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9777
SELECT - CASE + 29 WHEN - + CAST ( NULL AS INTEGER ) * - + 90 THEN NULL ELSE + MAX ( - 4 ) END / - CAST ( - 76 AS INTEGER ) / COUNT ( * )
----
0

query I rowsort
SELECT 41 + - 64
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9779
SELECT ALL + + COALESCE ( - COALESCE ( 25, - SUM( ALL + 78 ) ), + 35 ) DIV - 19, 93 AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-9779
SELECT ALL + + COALESCE ( - COALESCE ( 25, - SUM ( ALL + 78 ) ), + 35 ) / - 19, 93 AS col1
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT COUNT( + CASE - + 6 WHEN - - 35 THEN NULL WHEN - 45 THEN 42 ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-9780
SELECT COUNT ( + CASE - + 6 WHEN - - 35 THEN NULL WHEN - 45 THEN 42 ELSE NULL END )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT - COUNT( DISTINCT 4 ) * + + 73 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9781
SELECT - COUNT ( DISTINCT 4 ) * + + 73 AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9782
SELECT DISTINCT - - COUNT( * ) + 70 * + - 56 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT - - COUNT ( * ) + 70 * + - 56 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9783
SELECT ALL - 31 + - - 27 * 61 DIV + - 97 AS col0, 41
----
-47
41

skipif mysql # not compatible
query II rowsort label-9783
SELECT ALL - 31 + - - 27 * 61 / + - 97 AS col0, 41
----
-47
41

query I rowsort
SELECT + 6 * - 39 - + 41
----
-275

query I rowsort
SELECT ALL - 20 + - 28 AS col2
----
-48

query I rowsort
SELECT DISTINCT - + 80 AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) - 11
----
NULL

query I rowsort
SELECT ALL - 70 * - + 89
----
6230

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - 72 - ( - 47 ) * - + COUNT( * )
----
-119

skipif mysql # not compatible
query I rowsort label-9789
SELECT - 72 - ( - 47 ) * - + COUNT ( * )
----
-119

query I rowsort
SELECT 89 * 59 * - 40 + 39
----
-210001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9791
SELECT + + CAST( - 44 AS SIGNED ) * - COUNT( * ) - - 27 AS col2, + CAST( NULL AS SIGNED ) * + COUNT( * ) / + 43
----
71
NULL

skipif mysql # not compatible
query II rowsort label-9791
SELECT + + CAST ( - 44 AS INTEGER ) * - COUNT ( * ) - - 27 AS col2, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + 43
----
71
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9792
SELECT + NULLIF ( + 47, - ( + 20 ) / - COALESCE ( - ( - 1 ), - 87 + + COUNT( * ), - ( - - COUNT( * ) ) * + 52 ) + 67 * - 52 ), - 86 * + 44 + - ( + 25 ) AS col1
----
47
-3809

skipif mysql # not compatible
query II rowsort label-9792
SELECT + NULLIF ( + 47, - ( + 20 ) / - COALESCE ( - ( - 1 ), - 87 + + COUNT ( * ), - ( - - COUNT ( * ) ) * + 52 ) + 67 * - 52 ), - 86 * + 44 + - ( + 25 ) AS col1
----
47
-3809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9793
SELECT DISTINCT + 73 - 96 - + 73, 4 * 39 + + 95 - AVG ( 69 ) / + - CASE - CAST( NULL AS SIGNED ) WHEN - 7 THEN + - NULLIF ( - 86, - SUM( ALL + + 91 ) / + 21 ) * 65 ELSE NULL END * - - 99 * COALESCE ( - 24, 18 + - 4 / + 98 + - + 90 / + 51, 37 ) AS col0
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-9793
SELECT DISTINCT + 73 - 96 - + 73, 4 * 39 + + 95 - AVG ( 69 ) / + - CASE - CAST ( NULL AS INTEGER ) WHEN - 7 THEN + - NULLIF ( - 86, - SUM ( ALL + + 91 ) / + 21 ) * 65 ELSE NULL END * - - 99 * COALESCE ( - 24, 18 + - 4 / + 98 + - + 90 / + 51, 37 ) AS col0
----
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT 46 * - 73 + COUNT( * ) - + 37 AS col1
----
-3394

skipif mysql # not compatible
query I rowsort label-9794
SELECT 46 * - 73 + COUNT ( * ) - + 37 AS col1
----
-3394

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT COUNT( * ) * 93
----
93

skipif mysql # not compatible
query I rowsort label-9795
SELECT COUNT ( * ) * 93
----
93

query II rowsort
SELECT - 15 AS col0, 30 * ( - + 1 ) col1
----
-15
-30

query II rowsort
SELECT ALL 17 col1, - 59 AS col0
----
17
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9798
SELECT COUNT( * ) + + CAST( + - 87 AS SIGNED ) * - - 40 AS col0
----
-3479

skipif mysql # not compatible
query I rowsort label-9798
SELECT COUNT ( * ) + + CAST ( + - 87 AS INTEGER ) * - - 40 AS col0
----
-3479

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT COUNT( * ) * + + 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9799
SELECT COUNT ( * ) * + + 72 AS col1
----
72

query I rowsort
SELECT ( 74 ) + - 44
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT ( + ( 21 ) ) * + SUM( ALL - 69 ) + 74 * - 45 AS col0
----
-4779

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT ( + ( 21 ) ) * + SUM ( ALL - 69 ) + 74 * - 45 AS col0
----
-4779

query I rowsort
SELECT ALL 36 * - 8
----
-288

query I rowsort
SELECT 18 * 56
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT 53 + + CASE + - MAX( + - 31 ) WHEN - 64 THEN NULL WHEN - - 71 - + - 66 * - 90 THEN + 17 * + 4 END - 89 * + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT 53 + + CASE + - MAX ( + - 31 ) WHEN - 64 THEN NULL WHEN - - 71 - + - 66 * - 90 THEN + 17 * + 4 END - 89 * + 44 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9805
SELECT NULLIF ( + 24, COALESCE ( + + CAST( NULL AS SIGNED ), - 37 * CASE NULLIF ( - + NULLIF ( - 82, + COUNT( * ) + + ( AVG ( - 67 ) ) * + - COALESCE ( - + 97, + 66, - + 92 ) ), + CASE - 59 WHEN 74 THEN - + 46 DIV 49 ELSE NULL END + + + ( 67 ) * - - 22 ) WHEN - ( - 5 ) THEN + 64 END ) DIV - 27 + + + 89 * - + COUNT( * ) ) DIV - - 19
----
1

skipif mysql # not compatible
query I rowsort label-9805
SELECT NULLIF ( + 24, COALESCE ( + + CAST ( NULL AS INTEGER ), - 37 * CASE NULLIF ( - + NULLIF ( - 82, + COUNT ( * ) + + ( AVG ( - 67 ) ) * + - COALESCE ( - + 97, + 66, - + 92 ) ), + CASE - 59 WHEN 74 THEN - + 46 / 49 ELSE NULL END + + + ( 67 ) * - - 22 ) WHEN - ( - 5 ) THEN + 64 END ) / - 27 + + + 89 * - + COUNT ( * ) ) / - - 19
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9806
SELECT ALL CAST( NULL AS DECIMAL ) + - 17 * - + ( + COUNT( * ) ) * COUNT( * ) + - 45 / + 91 * - 27 + - 27 + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL CAST ( NULL AS REAL ) + - 17 * - + ( + COUNT ( * ) ) * COUNT ( * ) + - 45 / + 91 * - 27 + - 27 + - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT ( - - CAST( + - 79 AS SIGNED ) ) * 44 AS col2
----
-3476

skipif mysql # not compatible
query I rowsort label-9807
SELECT ( - - CAST ( + - 79 AS INTEGER ) ) * 44 AS col2
----
-3476

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT COUNT( * ) * - 93 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9808
SELECT COUNT ( * ) * - 93 AS col2
----
-93

query II rowsort
SELECT ALL 91 col2, + 8
----
91
8

query I rowsort
SELECT NULLIF ( + 81, 77 ) - + 2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT COUNT( * ) - 9 * 65
----
-584

skipif mysql # not compatible
query I rowsort label-9811
SELECT COUNT ( * ) - 9 * 65
----
-584

query I rowsort
SELECT 43 + - 96
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL 22 * - MAX( 78 ) AS col2
----
-1716

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL 22 * - MAX ( 78 ) AS col2
----
-1716

query I rowsort
SELECT 88 * 64 AS col0
----
5632

query I rowsort
SELECT DISTINCT 93 + + 63
----
156

query I rowsort
SELECT DISTINCT + 76 * 2 AS col0
----
152

query I rowsort
SELECT ALL - 21 + 30
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9818
SELECT 85 * MAX( 74 ) - - 26 DIV - ( + 55 ) AS col2
----
6290

skipif mysql # not compatible
query I rowsort label-9818
SELECT 85 * MAX ( 74 ) - - 26 / - ( + 55 ) AS col2
----
6290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9819
SELECT + 9 DIV - NULLIF ( - COUNT( * ), - 33 * 48 ) - 14
----
-5

skipif mysql # not compatible
query I rowsort label-9819
SELECT + 9 / - NULLIF ( - COUNT ( * ), - 33 * 48 ) - 14
----
-5

query I rowsort
SELECT ALL - NULLIF ( 23, - 88 ) AS col0
----
-23

query I rowsort
SELECT DISTINCT 21 * + 69
----
1449

onlyif mysql # DIV for integer division: 
query I rowsort label-9822
SELECT + 46 DIV 94 + 57 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-9822
SELECT + 46 / 94 + 57 AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT 3 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-9823
SELECT 3 / + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT MAX( DISTINCT 12 ) + 92
----
104

skipif mysql # not compatible
query I rowsort label-9824
SELECT MAX ( DISTINCT 12 ) + 92
----
104

query I rowsort
SELECT 22 * + 14 - 10
----
298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9826
SELECT DISTINCT + 31 DIV ( MIN( ALL + 13 ) ) col2
----
2

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT + 31 / ( MIN ( ALL + 13 ) ) col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT + 59 * 44 + + COUNT( * ) * COUNT( * )
----
2597

skipif mysql # not compatible
query I rowsort label-9827
SELECT + 59 * 44 + + COUNT ( * ) * COUNT ( * )
----
2597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT 93 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT 93 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 14 * 32
----
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT 23 * CAST( NULL AS SIGNED ) + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT 23 * CAST ( NULL AS INTEGER ) + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT DISTINCT - MIN( DISTINCT 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT - MIN ( DISTINCT 83 )
----
-83

query I rowsort
SELECT 22 + - 3 * - 46
----
160

query I rowsort
SELECT 28 * + 7
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9834
SELECT 99 + + CAST( COUNT( * ) AS SIGNED )
----
100

skipif mysql # not compatible
query I rowsort label-9834
SELECT 99 + + CAST ( COUNT ( * ) AS INTEGER )
----
100

query I rowsort
SELECT DISTINCT + 42 * ( + 6 )
----
252

query I rowsort
SELECT - 64 * ( 28 ) + - 34
----
-1826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9837
SELECT 18 * CAST( COUNT( * ) AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9837
SELECT 18 * CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT DISTINCT + COUNT( * ) * ( 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT + COUNT ( * ) * ( 44 ) AS col0
----
44

query I rowsort
SELECT ALL 30 + 41 AS col2
----
71

query I rowsort
SELECT 34 + 31
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT - MIN( 84 ) + ( 97 + + NULLIF ( + 86 + MIN( - 14 ), + 24 * 93 + ( 55 + 27 / 57 ) ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT - MIN ( 84 ) + ( 97 + + NULLIF ( + 86 + MIN ( - 14 ), + 24 * 93 + ( 55 + 27 / 57 ) ) ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL SUM( + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL SUM ( + 29 ) AS col0
----
29

query I rowsort
SELECT DISTINCT 24 + - 94 * + 19
----
-1762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9844
SELECT ALL - CAST( + 40 AS DECIMAL ) + - 76 * - CASE - 29 WHEN - COUNT( 3 ) THEN + 47 * - 40 WHEN + 89 - + COUNT( * ) THEN 61 WHEN 16 + + 93 THEN NULL ELSE - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - CAST ( + 40 AS REAL ) + - 76 * - CASE - 29 WHEN - COUNT ( 3 ) THEN + 47 * - 40 WHEN + 89 - + COUNT ( * ) THEN 61 WHEN 16 + + 93 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT - MIN( ALL - 2 ) + 48 * 31
----
1490

skipif mysql # not compatible
query I rowsort label-9845
SELECT - MIN ( ALL - 2 ) + 48 * 31
----
1490

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT + ( + 85 ) - - 0 * COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-9846
SELECT + ( + 85 ) - - 0 * COUNT ( * )
----
85

query I rowsort
SELECT DISTINCT 88 * - 50 AS col2
----
-4400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9848
SELECT + + CAST( NULL AS SIGNED ) + 47 / - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT + + CAST ( NULL AS INTEGER ) + 47 / - 17 AS col0
----
NULL

query I rowsort
SELECT ALL + 55 * 46 AS col1
----
2530

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT 73 * - COUNT( * ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT 73 * - COUNT ( * ) col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT - + 61 * NULLIF ( - 21, COALESCE ( - 55, 66 * MAX( DISTINCT + 38 * 96 ) ) * - 34 ) col0
----
1281

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT - + 61 * NULLIF ( - 21, COALESCE ( - 55, 66 * MAX ( DISTINCT + 38 * 96 ) ) * - 34 ) col0
----
1281

query I rowsort
SELECT ALL + 53 * - NULLIF ( - 96, ( + 86 ) )
----
5088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9853
SELECT + 74 + CASE CAST( - 66 AS SIGNED ) WHEN + 47 THEN NULL WHEN 6 + COUNT( ALL 66 ) THEN 14 WHEN COUNT( * ) THEN NULL END / + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT + 74 + CASE CAST ( - 66 AS INTEGER ) WHEN + 47 THEN NULL WHEN 6 + COUNT ( ALL 66 ) THEN 14 WHEN COUNT ( * ) THEN NULL END / + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT SUM( DISTINCT - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT SUM ( DISTINCT - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + - 98 * + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-9855
SELECT + - 98 * + COUNT ( * )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9856
SELECT + - CAST( COUNT( * ) AS SIGNED ) * 5
----
-5

skipif mysql # not compatible
query I rowsort label-9856
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) * 5
----
-5

query I rowsort
SELECT + ( - 60 ) AS col1
----
-60

query I rowsort
SELECT + + 18 + 61
----
79

query I rowsort
SELECT - - 43 + 13 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT + MAX( DISTINCT - 44 ) * 33
----
-1452

skipif mysql # not compatible
query I rowsort label-9860
SELECT + MAX ( DISTINCT - 44 ) * 33
----
-1452

query I rowsort
SELECT + CASE WHEN NULL IN ( - 66 ) THEN NULL ELSE - 6 * 39 END AS col2
----
-234

query I rowsort
SELECT ALL + 88 * 12
----
1056

query I rowsort
SELECT ALL ( 22 ) * - 13 AS col2
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL + COUNT( DISTINCT + 0 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL + COUNT ( DISTINCT + 0 ) AS col1
----
1

query I rowsort
SELECT - 61 * - 87
----
5307

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9866
SELECT - 78 DIV + ( COUNT( * ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-9866
SELECT - 78 / + ( COUNT ( * ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL + SUM( DISTINCT 52 )
----
52

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + SUM ( DISTINCT 52 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9868
SELECT 65 * + 80 * - MAX( 58 DIV 82 ) - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9868
SELECT 65 * + 80 * - MAX ( 58 / 82 ) - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT NULLIF ( + + 86, 49 )
----
86

query I rowsort
SELECT + ( 55 )
----
55

query I rowsort
SELECT - 48 + 24 + + 86 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9872
SELECT DISTINCT + COUNT( * ) * 33 + + ( - 27 + 0 * NULLIF ( 16 DIV COUNT( * ) - - COUNT( * ), + CAST( 52 AS SIGNED ) - + 29 ) ) DIV 89 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT + COUNT ( * ) * 33 + + ( - 27 + 0 * NULLIF ( 16 / COUNT ( * ) - - COUNT ( * ), + CAST ( 52 AS INTEGER ) - + 29 ) ) / 89 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL ( + - CASE ( 6 ) WHEN 31 * - 14 + - 40 THEN NULL WHEN 11 / - 97 THEN 80 * 44 + + 70 ELSE MAX( - 92 ) + 55 END ) * 27 + 14 * 11
----
1153

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL ( + - CASE ( 6 ) WHEN 31 * - 14 + - 40 THEN NULL WHEN 11 / - 97 THEN 80 * 44 + + 70 ELSE MAX ( - 92 ) + 55 END ) * 27 + 14 * 11
----
1153

query I rowsort
SELECT - 95 * 71
----
-6745

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT ALL 1 DIV - COALESCE ( - 70, ( 59 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL 1 / - COALESCE ( - 70, ( 59 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT - SUM( - 51 ) - - 94
----
145

skipif mysql # not compatible
query I rowsort label-9876
SELECT - SUM ( - 51 ) - - 94
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL + 93 * + COUNT( 0 )
----
93

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL + 93 * + COUNT ( 0 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL + 2 * - COUNT( * ) + 57 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL + 2 * - COUNT ( * ) + 57 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT MAX( - - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-9879
SELECT MAX ( - - 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT - SUM( + - 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9880
SELECT - SUM ( + - 51 ) AS col2
----
51

query I rowsort
SELECT ALL + 93 * - - 97 AS col2
----
9021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9882
SELECT - CAST( + 26 AS SIGNED ) + - 21
----
-47

skipif mysql # not compatible
query I rowsort label-9882
SELECT - CAST ( + 26 AS INTEGER ) + - 21
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - COUNT( * ) - + - ( - 3 ) * 10
----
-31

skipif mysql # not compatible
query I rowsort label-9883
SELECT - COUNT ( * ) - + - ( - 3 ) * 10
----
-31

query I rowsort
SELECT - 36 * 76 AS col2
----
-2736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9885
SELECT - - 88 DIV - MAX( ALL - 18 ) + + 77 DIV - ( 66 * + 6 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9885
SELECT - - 88 / - MAX ( ALL - 18 ) + + 77 / - ( 66 * + 6 ) AS col1
----
4

query I rowsort
SELECT ALL - 44 * + - ( - 44 )
----
-1936

query I rowsort
SELECT + ( ( + 24 ) )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT - - CAST( + 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-9888
SELECT - - CAST ( + 99 AS INTEGER )
----
99

query I rowsort
SELECT - 25 + 57 AS col1
----
32

query I rowsort
SELECT - - 95 AS col1
----
95

query I rowsort
SELECT - ( - 2 ) + + 84 AS col1
----
86

query I rowsort
SELECT DISTINCT - - 16 * + 57
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL CASE + - 98 WHEN 1 THEN + COALESCE ( - 62, 27 - + 57, COUNT( * ) * + COALESCE ( + 11, 57 ) + + 74 * AVG ( DISTINCT + 64 ) ) WHEN 28 * 15 THEN - 0 WHEN - 84 * + COUNT( * ) THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL CASE + - 98 WHEN 1 THEN + COALESCE ( - 62, 27 - + 57, COUNT ( * ) * + COALESCE ( + 11, 57 ) + + 74 * AVG ( DISTINCT + 64 ) ) WHEN 28 * 15 THEN - 0 WHEN - 84 * + COUNT ( * ) THEN COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL - - 91 * ( 80 )
----
7280

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT 11 DIV - 85 - 90 DIV 63
----
-1

skipif mysql # not compatible
query I rowsort label-9895
SELECT 11 / - 85 - 90 / 63
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9896
SELECT ALL - 0 DIV + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL - 0 / + COUNT ( * ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9897
SELECT + - 62 + 74 DIV 54 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9897
SELECT + - 62 + 74 / 54 AS col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9898
SELECT ALL + + COUNT( * ) DIV + 83 + MIN( ALL - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL + + COUNT ( * ) / + 83 + MIN ( ALL - 47 )
----
-47

query I rowsort
SELECT ( + 15 ) * + 52 + + 30
----
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9900
SELECT CAST( 14 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-9900
SELECT CAST ( 14 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9901
SELECT 96 DIV 81 * + + 36 + COUNT( DISTINCT + 79 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9901
SELECT 96 / 81 * + + 36 + COUNT ( DISTINCT + 79 ) AS col2
----
37

query I rowsort
SELECT + 25 + 44 + + ( - 28 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT CAST( - - 27 AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9903
SELECT CAST ( - - 27 AS INTEGER ) AS col2
----
27

query I rowsort
SELECT 69 * 12 + - 40 * + 29
----
-332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9905
SELECT ALL - COUNT( * ) DIV 87 + - + 73 col1
----
-73

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL - COUNT ( * ) / 87 + - + 73 col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT CAST( + 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-9906
SELECT CAST ( + 88 AS INTEGER )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT ALL + 41 DIV COALESCE ( 64, 97, 94 ) + 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL + 41 / COALESCE ( 64, 97, 94 ) + 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT DISTINCT - 8 * + - 10 + - MIN( ALL - 85 ) + 40 AS col1
----
205

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT - 8 * + - 10 + - MIN ( ALL - 85 ) + 40 AS col1
----
205

query II rowsort
SELECT + 24 AS col2, + 37 AS col2
----
24
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT CAST( COUNT( * ) AS SIGNED ) + + + 12 * 21
----
253

skipif mysql # not compatible
query I rowsort label-9910
SELECT CAST ( COUNT ( * ) AS INTEGER ) + + + 12 * 21
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL ( - COUNT( + - 2 ) ) + 7 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL ( - COUNT ( + - 2 ) ) + 7 AS col2
----
6

query I rowsort
SELECT ( 48 ) + - 24 col1
----
24

query I rowsort
SELECT 37 * - 75 AS col0
----
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT 72 * COALESCE ( MAX( + 11 ), + 82, - 79 + 50 ) * + 72 AS col1
----
57024

skipif mysql # not compatible
query I rowsort label-9914
SELECT 72 * COALESCE ( MAX ( + 11 ), + 82, - 79 + 50 ) * + 72 AS col1
----
57024

onlyif mysql # DIV for integer division: 
query I rowsort label-9915
SELECT 25 * 0 DIV 75 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-9915
SELECT 25 * 0 / 75 + + 99
----
99

query I rowsort
SELECT + 17 * - - 57 + 10
----
979

query I rowsort
SELECT ALL - 35 - - 92
----
57

query I rowsort
SELECT + 29 + - 64 + + 7 AS col1
----
-28

query I rowsort
SELECT 10 * + 94 AS col1
----
940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT ALL - CAST( NULL AS SIGNED ) * 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL - CAST ( NULL AS INTEGER ) * 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT NULLIF ( + - SUM( DISTINCT + 6 ), - 69 ) + 42 * 94
----
3942

skipif mysql # not compatible
query I rowsort label-9921
SELECT NULLIF ( + - SUM ( DISTINCT + 6 ), - 69 ) + 42 * 94
----
3942

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT + 56 + - 38 + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9922
SELECT + 56 + - 38 + COUNT ( * ) AS col0
----
19

query I rowsort
SELECT - 96 + + + 28 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT - 70 * - - COUNT( * ) * - 36 AS col1
----
2520

skipif mysql # not compatible
query I rowsort label-9924
SELECT - 70 * - - COUNT ( * ) * - 36 AS col1
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT 20 + 15 + - + 61 - + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9925
SELECT 20 + 15 + - + 61 - + COUNT ( * ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-9926
SELECT - 28 AS col1, COUNT( * )
----
-28
1

skipif mysql # not compatible
query II rowsort label-9926
SELECT - 28 AS col1, COUNT ( * )
----
-28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT 10 + 82 - ( + 40 ) + + ( - 70 ) * COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9927
SELECT 10 + 82 - ( + 40 ) + + ( - 70 ) * COUNT ( * ) AS col0
----
-18

query I rowsort
SELECT DISTINCT - ( + - 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT + 45 + + ( - MIN( DISTINCT + 32 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9929
SELECT + 45 + + ( - MIN ( DISTINCT + 32 ) ) AS col0
----
13

query I rowsort
SELECT DISTINCT - 10 * + NULLIF ( + 4, + NULLIF ( 37, + 87 ) * + 54 )
----
-40

query I rowsort
SELECT + 72 + - 0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT DISTINCT + MIN( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + MIN ( 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9933
SELECT + MAX( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT + MAX ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ( - COUNT( * ) ) + 15
----
14

skipif mysql # not compatible
query I rowsort label-9934
SELECT ( - COUNT ( * ) ) + 15
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9935
SELECT DISTINCT - - 89 DIV - MAX( DISTINCT - - 85 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - - 89 / - MAX ( DISTINCT - - 85 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9936
SELECT 28 DIV - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9936
SELECT 28 / - 68 AS col1
----
0

query I rowsort
SELECT - 39 * 76 * + 93 AS col0
----
-275652

query I rowsort
SELECT 38 + 51 col1
----
89

query I rowsort
SELECT ALL + 37 + - 47 AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9940
SELECT DISTINCT - ( - - 21 ) + CAST( NULL AS SIGNED ) - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT - ( - - 21 ) + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9941
SELECT ALL COALESCE ( + 95, - 62 DIV COUNT( * ) ) + 48 * 19
----
1007

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL COALESCE ( + 95, - 62 / COUNT ( * ) ) + 48 * 19
----
1007

query I rowsort
SELECT 28 * - 15 AS col1
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ALL + 92 * + - MAX( - 58 )
----
5336

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL + 92 * + - MAX ( - 58 )
----
5336

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9944
SELECT ALL 66 DIV + 33 col0, COUNT( * ) + - COALESCE ( - 65, - 21 ) + 46 * + ( 48 )
----
2
2274

skipif mysql # not compatible
query II rowsort label-9944
SELECT ALL 66 / + 33 col0, COUNT ( * ) + - COALESCE ( - 65, - 21 ) + 46 * + ( 48 )
----
2
2274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9945
SELECT COUNT( * ) DIV - + 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9945
SELECT COUNT ( * ) / - + 1 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT 27 - + 11 * + COUNT( * ) * COALESCE ( + 43, - 37 * + 84, - 72 )
----
-446

skipif mysql # not compatible
query I rowsort label-9946
SELECT 27 - + 11 * + COUNT ( * ) * COALESCE ( + 43, - 37 * + 84, - 72 )
----
-446

onlyif mysql # aggregate syntax: 
query II rowsort label-9947
SELECT COUNT( * ) - + COUNT( * ), - 83 + - - 62 AS col1
----
0
-21

skipif mysql # not compatible
query II rowsort label-9947
SELECT COUNT ( * ) - + COUNT ( * ), - 83 + - - 62 AS col1
----
0
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT ALL - MAX( DISTINCT + + 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL - MAX ( DISTINCT + + 16 ) AS col1
----
-16

query I rowsort
SELECT DISTINCT 58 * 12 AS col1
----
696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9950
SELECT DISTINCT 70 DIV + - 70 DIV COUNT( * ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT 70 / + - 70 / COUNT ( * ) * + COUNT ( * )
----
-1

query I rowsort
SELECT ALL 93 * - 62 * + 78 AS col0
----
-449748

query I rowsort
SELECT ALL 97 * + - NULLIF ( 95, + + 82 )
----
-9215

query I rowsort
SELECT DISTINCT + 49 * 55 - - 47
----
2742

onlyif mysql # DIV for integer division: 
query I rowsort label-9954
SELECT 58 DIV - - 95 * - 4
----
0

skipif mysql # not compatible
query I rowsort label-9954
SELECT 58 / - - 95 * - 4
----
0

query I rowsort
SELECT + 63 + 68
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT 94 - COUNT( * ) - + + 96 - 90 * 44 * 98
----
-388083

skipif mysql # not compatible
query I rowsort label-9956
SELECT 94 - COUNT ( * ) - + + 96 - 90 * 44 * 98
----
-388083

query I rowsort
SELECT ALL - 55 + 50 - 62 AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT - - ( - CAST( 36 AS SIGNED ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-9958
SELECT - - ( - CAST ( 36 AS INTEGER ) ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9959
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT DISTINCT - 22 + + CAST( + 45 AS SIGNED ) * - ( + 4 ) AS col0
----
-202

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT - 22 + + CAST ( + 45 AS INTEGER ) * - ( + 4 ) AS col0
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT ALL + + 16 + + 57 * + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL + + 16 + + 57 * + + COUNT ( * )
----
73

query I rowsort
SELECT 4 * + 6 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9963
SELECT ALL COUNT( * ) + + 82 - + 75 / - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL COUNT ( * ) + + 82 - + 75 / - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 73 + + 68 + 53 * - - 3 AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT - 9 + + + MIN( DISTINCT 59 ) + - 30 * - 48
----
1490

skipif mysql # not compatible
query I rowsort label-9965
SELECT - 9 + + + MIN ( DISTINCT 59 ) + - 30 * - 48
----
1490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9966
SELECT CASE - COUNT( DISTINCT + 83 ) WHEN - - 8 + - COUNT( * ) * CAST( - 53 / - 74 AS SIGNED ) THEN CAST( - 29 AS SIGNED ) + + 74 ELSE + 57 END
----
57

skipif mysql # not compatible
query I rowsort label-9966
SELECT CASE - COUNT ( DISTINCT + 83 ) WHEN - - 8 + - COUNT ( * ) * CAST ( - 53 / - 74 AS INTEGER ) THEN CAST ( - 29 AS INTEGER ) + + 74 ELSE + 57 END
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL + - 24 + - COUNT( * ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL + - 24 + - COUNT ( * ) col2
----
-25

query I rowsort
SELECT CASE + - 53 WHEN - 77 + 46 THEN + 15 END + - 63
----
NULL

query I rowsort
SELECT - + 27 AS col0
----
-27

query I rowsort
SELECT + 36 + + 53 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT ALL - COUNT( ALL - 34 ) + - + ( 47 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL - COUNT ( ALL - 34 ) + - + ( 47 ) AS col2
----
-48

query I rowsort
SELECT DISTINCT 49 * 26
----
1274

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT ALL COALESCE ( - 58, + + 20 DIV + + 76 * - 30 - + 93 ) + 64
----
6

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL COALESCE ( - 58, + + 20 / + + 76 * - 30 - + 93 ) + 64
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT DISTINCT COUNT( DISTINCT - - ( + 70 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT COUNT ( DISTINCT - - ( + 70 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT DISTINCT - 70 * - + COUNT( * ) * + COUNT( * ) + + 81
----
151

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT - 70 * - + COUNT ( * ) * + COUNT ( * ) + + 81
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9976
SELECT - 72 + + CAST( + ( + 63 ) AS SIGNED ) - - + 76 * - 81 AS col1
----
-6165

skipif mysql # not compatible
query I rowsort label-9976
SELECT - 72 + + CAST ( + ( + 63 ) AS INTEGER ) - - + 76 * - 81 AS col1
----
-6165

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT CASE 0 WHEN + MIN( - 2 ) THEN NULL WHEN NULLIF ( 77, 8 + 88 ) THEN NULL WHEN - 70 * 96 THEN + 78 * 67 WHEN 28 + 77 THEN 67 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT CASE 0 WHEN + MIN ( - 2 ) THEN NULL WHEN NULLIF ( 77, 8 + 88 ) THEN NULL WHEN - 70 * 96 THEN + 78 * 67 WHEN 28 + 77 THEN 67 END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9978
SELECT - 47 * - 52 + ( - 25 ) DIV - 42 + 92 * - COUNT( * ) AS col0
----
2352

skipif mysql # not compatible
query I rowsort label-9978
SELECT - 47 * - 52 + ( - 25 ) / - 42 + 92 * - COUNT ( * ) AS col0
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL + ( + CASE WHEN NULL NOT BETWEEN ( COUNT( * ) ) AND - 58 THEN - COUNT( * ) ELSE NULL END ) / - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL + ( + CASE WHEN NULL NOT BETWEEN ( COUNT ( * ) ) AND - 58 THEN - COUNT ( * ) ELSE NULL END ) / - 82 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9980
SELECT 70 DIV - 12 + - 10 - + 5 * + 67
----
-350

skipif mysql # not compatible
query I rowsort label-9980
SELECT 70 / - 12 + - 10 - + 5 * + 67
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT COUNT( * ) * + - COUNT( * ) - - 70 + - 79 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9981
SELECT COUNT ( * ) * + - COUNT ( * ) - - 70 + - 79 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT - COUNT( * ) + - + 28 + + COUNT( * ) * + + ( COUNT( * ) ) + 18 * + 19
----
314

skipif mysql # not compatible
query I rowsort label-9982
SELECT - COUNT ( * ) + - + 28 + + COUNT ( * ) * + + ( COUNT ( * ) ) + 18 * + 19
----
314

query I rowsort
SELECT ALL + 34 * - 58 AS col1
----
-1972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT - COUNT( * ) * + - COALESCE ( - 75, - COUNT( * ), - COUNT( * ) / COUNT( * ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT - COUNT ( * ) * + - COALESCE ( - 75, - COUNT ( * ), - COUNT ( * ) / COUNT ( * ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 30 AS col2
----
30

query I rowsort
SELECT DISTINCT + 44 * - - 63
----
2772

query I rowsort
SELECT DISTINCT - 89 * - 93
----
8277

query I rowsort
SELECT ALL + 35 * + 88 AS col1
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT - ( COUNT( * ) ) * - COUNT( - NULLIF ( + + 70, 17 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9989
SELECT - ( COUNT ( * ) ) * - COUNT ( - NULLIF ( + + 70, 17 ) ) AS col0
----
1

query I rowsort
SELECT ALL - 71 * + 73
----
-5183

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT - 70 * NULLIF ( + COUNT( * ), 92 + + - 87 + + 95 ) * 97 AS col0
----
-6790

skipif mysql # not compatible
query I rowsort label-9991
SELECT - 70 * NULLIF ( + COUNT ( * ), 92 + + - 87 + + 95 ) * 97 AS col0
----
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT - + NULLIF ( CASE - COALESCE ( + - 27, - 15 ) WHEN COUNT( 79 ) + COUNT( * ) * + 71 THEN - 33 WHEN - 70 THEN - NULLIF ( - 49, + 91 + - 27 ) ELSE NULL END, 81 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT - + NULLIF ( CASE - COALESCE ( + - 27, - 15 ) WHEN COUNT ( 79 ) + COUNT ( * ) * + 71 THEN - 33 WHEN - 70 THEN - NULLIF ( - 49, + 91 + - 27 ) ELSE NULL END, 81 ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT DISTINCT + SUM( 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT + SUM ( 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT ALL - ( + CASE - 38 WHEN - 26 + + 39 THEN + 24 - 31 WHEN 59 * ( - 5 ) + 81 THEN - SUM( ALL + 49 ) ELSE NULL END ) + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL - ( + CASE - 38 WHEN - 26 + + 39 THEN + 24 - 31 WHEN 59 * ( - 5 ) + 81 THEN - SUM ( ALL + 49 ) ELSE NULL END ) + 89 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 26 + + 9
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT + 27 + - + CAST( NULL AS SIGNED ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT + 27 + - + CAST ( NULL AS INTEGER ) * 59
----
NULL

query II rowsort
SELECT DISTINCT + ( - + 12 ) + + + 65, + 2 * 11 AS col0
----
53
22

query I rowsort
SELECT DISTINCT - COALESCE ( ( + - 9 ), + - 66 + + 9 + NULLIF ( 29, - 71 - 75 ) * + ( - 68 ) ) + 67 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL + 44 + 62 * SUM( ALL + 60 ) AS col2
----
3764

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL + 44 + 62 * SUM ( ALL + 60 ) AS col2
----
3764

