sqllogictest
Artifact Content
Not logged in

Artifact 8d192933f22766560fbb98dc940e29a396f342b5:


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