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 # CAST syntax: SIGNED type: 
query I rowsort label-0
SELECT NULLIF ( - 57, + 90 * + 2 / - + NULLIF ( - - 62, 42 ) + + 13 - + + 51 / - 7 + - - 59 + - + 78 + - COALESCE ( 17, + + 89 * - CAST( NULL AS SIGNED ) / + 77 * 49, 15 ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-0
SELECT NULLIF ( - 57, + 90 * + 2 / - + NULLIF ( - - 62, 42 ) + + 13 - + + 51 / - 7 + - - 59 + - + 78 + - COALESCE ( 17, + + 89 * - CAST ( NULL AS INTEGER ) / + 77 * 49, 15 ) ) AS col1
----
-57

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2
SELECT ALL 47 col0, - COUNT( DISTINCT 65 ) + 95
----
47
94

skipif mysql # not compatible
query II rowsort label-2
SELECT ALL 47 col0, - COUNT ( DISTINCT 65 ) + 95
----
47
94

query I rowsort
SELECT DISTINCT - 97 * + 81 col2
----
-7857

query I rowsort
SELECT DISTINCT 53 AS col2
----
53

query I rowsort
SELECT 11 + 2 AS col0
----
13

query I rowsort
SELECT ALL - 7 + 19 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7
SELECT 18 - - + 19 AS col0, 86 * + 62 + - COUNT( * ) * 85 AS col2
----
37
5247

skipif mysql # not compatible
query II rowsort label-7
SELECT 18 - - + 19 AS col0, 86 * + 62 + - COUNT ( * ) * 85 AS col2
----
37
5247

query II rowsort
SELECT - 14 AS col2, ( - - 23 ) * + 58 col1
----
-14
1334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT CASE - CAST( NULL AS SIGNED ) WHEN COALESCE ( CASE - 1 WHEN - CAST( + 90 AS SIGNED ) THEN 33 + 19 WHEN + 2 / 98 - CASE 0 WHEN 15 THEN + - 92 END - + 39 + + + 90 - ( - CAST( NULL AS SIGNED ) ) THEN NULL END, - CASE - 60 WHEN ( + COALESCE ( + COUNT( * ), - 14, - COUNT( * ) * 33 ) ) THEN - 69 + - 92 ELSE NULL END + 34 ) + + 94 THEN + ( - ( + 78 ) ) + - 72 * 20 END * + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN COALESCE ( CASE - 1 WHEN - CAST ( + 90 AS INTEGER ) THEN 33 + 19 WHEN + 2 / 98 - CASE 0 WHEN 15 THEN + - 92 END - + 39 + + + 90 - ( - CAST ( NULL AS INTEGER ) ) THEN NULL END, - CASE - 60 WHEN ( + COALESCE ( + COUNT ( * ), - 14, - COUNT ( * ) * 33 ) ) THEN - 69 + - 92 ELSE NULL END + 34 ) + + 94 THEN + ( - ( + 78 ) ) + - 72 * 20 END * + 14 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT 27 + + COUNT( * ) - + + 90 + + - 39 - 33 * CAST( + + SUM( - 31 ) AS SIGNED )
----
922

skipif mysql # not compatible
query I rowsort label-10
SELECT 27 + + COUNT ( * ) - + + 90 + + - 39 - 33 * CAST ( + + SUM ( - 31 ) AS INTEGER )
----
922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-11
SELECT ALL ( 53 ) * + + CAST( - + 81 AS SIGNED )
----
-4293

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL ( 53 ) * + + CAST ( - + 81 AS INTEGER )
----
-4293

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

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

query I rowsort
SELECT DISTINCT + 62 + - + COALESCE ( + 98, - 86, - - 89 * - + 70 )
----
-36

query I rowsort
SELECT DISTINCT 60 * - 48 AS col0
----
-2880

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

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

query I rowsort
SELECT ALL 37 + 15 + + 17 AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-17
SELECT ALL 51 + CAST( NULL AS SIGNED ) + - NULLIF ( 53, - ( COUNT( * ) ) - - 89 ), 61 AS col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-17
SELECT ALL 51 + CAST ( NULL AS INTEGER ) + - NULLIF ( 53, - ( COUNT ( * ) ) - - 89 ), 61 AS col0
----
NULL
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-18
SELECT MAX( ALL - 9 ) - + 16 DIV - - COALESCE ( + - 36, 66 * - + 48 + 71 )
----
-9

skipif mysql # not compatible
query I rowsort label-18
SELECT MAX ( ALL - 9 ) - + 16 / - - COALESCE ( + - 36, 66 * - + 48 + 71 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-19
SELECT - - ( CASE - 6 WHEN - CAST( - + 74 AS SIGNED ) THEN NULL ELSE 16 + - ( 52 ) DIV + 65 * 68 END )
----
16

skipif mysql # not compatible
query I rowsort label-19
SELECT - - ( CASE - 6 WHEN - CAST ( - + 74 AS INTEGER ) THEN NULL ELSE 16 + - ( 52 ) / + 65 * 68 END )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-20
SELECT + 33 DIV + 63 + ( + COUNT( DISTINCT - - 9 ) ) - + 25 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-20
SELECT + 33 / + 63 + ( + COUNT ( DISTINCT - - 9 ) ) - + 25 AS col1
----
-24

query I rowsort
SELECT + - NULLIF ( + 99, - 3 / 30 + + 31 ) AS col2
----
-99

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

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

query I rowsort
SELECT ALL + 29 + + 79 + - 59
----
49

query II rowsort
SELECT DISTINCT - - 22 col2, + 29 * + 15
----
22
435

query I rowsort
SELECT 49 * + 9 + 36
----
477

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

onlyif mysql # aggregate syntax: 
query II rowsort label-27
SELECT ALL 84 - - - 75, NULLIF ( + 19, + + NULLIF ( - ( + 19 ), COALESCE ( - 41, - 65 * - 97 ) ) ) + - + 43 + - COUNT( * ) AS col2
----
9
-25

skipif mysql # not compatible
query II rowsort label-27
SELECT ALL 84 - - - 75, NULLIF ( + 19, + + NULLIF ( - ( + 19 ), COALESCE ( - 41, - 65 * - 97 ) ) ) + - + 43 + - COUNT ( * ) AS col2
----
9
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-28
SELECT DISTINCT - + 58, + COALESCE ( COUNT( DISTINCT 57 ), + + 4 ) + 32 AS col1
----
-58
33

skipif mysql # not compatible
query II rowsort label-28
SELECT DISTINCT - + 58, + COALESCE ( COUNT ( DISTINCT 57 ), + + 4 ) + 32 AS col1
----
-58
33

query I rowsort
SELECT + - 43
----
-43

query I rowsort
SELECT 58 * - - ( 75 )
----
4350

query I rowsort
SELECT ALL + 86 * + 30 * + 78 AS col1
----
201240

query II rowsort
SELECT + 5 AS col1, + 48
----
5
48

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-34
SELECT COUNT( * ) * CASE - - 49 WHEN + + 28 + + + 76 / - CAST( + + 72 AS SIGNED ) THEN 79 WHEN + 51 THEN - + COALESCE ( - 11, COUNT( * ) * + + COUNT( * ) ) * - 52 END, - 58 AS col1
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-34
SELECT COUNT ( * ) * CASE - - 49 WHEN + + 28 + + + 76 / - CAST ( + + 72 AS INTEGER ) THEN 79 WHEN + 51 THEN - + COALESCE ( - 11, COUNT ( * ) * + + COUNT ( * ) ) * - 52 END, - 58 AS col1
----
NULL
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-35
SELECT 22 * + CAST( NULL AS SIGNED ) * - - 60 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-35
SELECT 22 * + CAST ( NULL AS INTEGER ) * - - 60 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - NULLIF ( - - 13, 14 ) ) + - 74 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT - 24 * + 57 - + MAX( - 3 ) + - 86
----
-1451

skipif mysql # not compatible
query I rowsort label-37
SELECT - 24 * + 57 - + MAX ( - 3 ) + - 86
----
-1451

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT - 24 * + - MAX( + 39 ) + - 52
----
884

skipif mysql # not compatible
query I rowsort label-40
SELECT - 24 * + - MAX ( + 39 ) + - 52
----
884

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-41
SELECT ALL + CAST( NULL AS SIGNED ) / 63, 21 * - - 19 AS col2
----
NULL
399

skipif mysql # not compatible
query II rowsort label-41
SELECT ALL + CAST ( NULL AS INTEGER ) / 63, 21 * - - 19 AS col2
----
NULL
399

query I rowsort
SELECT 18 + - 75 + - - ( + 17 )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-43
SELECT ALL - COUNT( * ) + 69 AS col2, 76 - - 32 DIV + + 97 AS col0
----
68
76

skipif mysql # not compatible
query II rowsort label-43
SELECT ALL - COUNT ( * ) + 69 AS col2, 76 - - 32 / + + 97 AS col0
----
68
76

query I rowsort
SELECT 56 + - 82 AS col0
----
-26

query I rowsort
SELECT 63 + + 72 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL + 48 + + 21 - - + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + 48 + + 21 - - + COUNT ( * )
----
70

query I rowsort
SELECT 37 * - + 90
----
-3330

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT DISTINCT + 31 + - COALESCE ( + 45, + + 73 + - 75 + COUNT( * ) * + - 63 / - 5 ) * - + 33 * - 1 + CASE + - 3 WHEN 83 THEN + 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT + 31 + - COALESCE ( + 45, + + 73 + - 75 + COUNT ( * ) * + - 63 / - 5 ) * - + 33 * - 1 + CASE + - 3 WHEN 83 THEN + 63 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 76 + - ( + 27 )
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT DISTINCT MAX( - 85 ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT MAX ( - 85 ) col0
----
-85

query I rowsort
SELECT ALL + NULLIF ( + 45, + + 22 ) * + 20 * 80 * - 38
----
-2736000

query I rowsort
SELECT + 5 + 0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-53
SELECT ( - CAST( NULL AS SIGNED ) ) + - - COUNT( * ) * + MIN( 26 ) + MIN( + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-53
SELECT ( - CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) * + MIN ( 26 ) + MIN ( + 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT ALL - - SUM( DISTINCT + 65 ) + 71 + 18 AS col1
----
154

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL - - SUM ( DISTINCT + 65 ) + 71 + 18 AS col1
----
154

query I rowsort
SELECT - 71 * + 60
----
-4260

query I rowsort
SELECT - 4 col0
----
-4

query I rowsort
SELECT 88 + + 46 + 1 * 23
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT - COUNT( * ) * 73 + ( + + 75 ) - - 11 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT - COUNT ( * ) * 73 + ( + + 75 ) - - 11 AS col0
----
13

query I rowsort
SELECT DISTINCT - + CASE - - 58 WHEN + ( + 82 ) THEN + + 38 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 76 * - 26
----
1976

query I rowsort
SELECT DISTINCT - - NULLIF ( - + 55, + 78 - - 82 ) * - - 88 * 96
----
-464640

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT ( 36 ) DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-62
SELECT ( 36 ) / 86
----
0

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

skipif mysql # not compatible
query I rowsort label-63
SELECT 14 * - + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) + - + 2 + AVG ( 16 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-64
SELECT 21 DIV - 16 + 93 AS col2, 91 AS col2
----
92
91

skipif mysql # not compatible
query II rowsort label-64
SELECT 21 / - 16 + 93 AS col2, 91 AS col2
----
92
91

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT DISTINCT - 15 * + MIN( 8 ) * - 80
----
9600

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT - 15 * + MIN ( 8 ) * - 80
----
9600

query I rowsort
SELECT ALL - 57 * 46
----
-2622

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-67
SELECT + MIN( - 15 ) * + MAX( ALL - 90 ) * + - 64 - - 10 * + + ( + CASE + 84 WHEN - 7 + 58 - + - CAST( + 7 AS DECIMAL ) THEN - 27 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT + MIN ( - 15 ) * + MAX ( ALL - 90 ) * + - 64 - - 10 * + + ( + CASE + 84 WHEN - 7 + 58 - + - CAST ( + 7 AS REAL ) THEN - 27 ELSE NULL END )
----
NULL

query I rowsort
SELECT 4 + 82 AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-69
SELECT 6 DIV COALESCE ( - MAX( + 82 ), + 45 * 23 * - - 38, + + 92 + + + 41 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-69
SELECT 6 / COALESCE ( - MAX ( + 82 ), + 45 * 23 * - - 38, + + 92 + + + 41 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query III rowsort label-70
SELECT - 70 DIV - + 77 AS col1, - 25 * + ( - - 58 ) AS col0, - 54 AS col0
----
0
-1450
-54

skipif mysql # not compatible
query III rowsort label-70
SELECT - 70 / - + 77 AS col1, - 25 * + ( - - 58 ) AS col0, - 54 AS col0
----
0
-1450
-54

query I rowsort
SELECT + 10 * + - 34 - - 31 AS col2
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT + COUNT( * ) - - - 69 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-72
SELECT + COUNT ( * ) - - - 69 AS col2
----
-68

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

skipif mysql # not compatible
query I rowsort label-73
SELECT + 4 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-74
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, MIN( + + 8 ) + - 29 AS col0
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-74
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, MIN ( + + 8 ) + - 29 AS col0
----
NULL
-21

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT ALL + NULLIF ( + 1, - 51 + - + COUNT( * ) ) * 98 + + + 66 + + 80
----
244

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL + NULLIF ( + 1, - 51 + - + COUNT ( * ) ) * 98 + + + 66 + + 80
----
244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-78
SELECT + NULLIF ( + 7, CAST( COUNT( * ) AS SIGNED ) * 70 )
----
7

skipif mysql # not compatible
query I rowsort label-78
SELECT + NULLIF ( + 7, CAST ( COUNT ( * ) AS INTEGER ) * 70 )
----
7

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

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

query I rowsort
SELECT + NULLIF ( - ( + 13 ), + 94 + - 92 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-81
SELECT ALL AVG ( 73 ) + + COUNT( DISTINCT + 30 ) / - + CASE 1 WHEN + + ( - 59 ) * - CAST( - 74 AS DECIMAL ) * COUNT( * ) - - 75 * COUNT( + + 31 ) + + 82 + NULLIF ( - ( - 92 ), 83 * SUM( ALL 53 ) ) + - AVG ( - CASE + 57 WHEN 76 THEN - + 60 ELSE NULL END ) / + COUNT( * ) * + + COUNT( * ) + + 34 * 29 THEN CAST( NULL AS SIGNED ) + + 70 * 34 WHEN 75 THEN NULL END + - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL AVG ( 73 ) + + COUNT ( DISTINCT + 30 ) / - + CASE 1 WHEN + + ( - 59 ) * - CAST ( - 74 AS REAL ) * COUNT ( * ) - - 75 * COUNT ( + + 31 ) + + 82 + NULLIF ( - ( - 92 ), 83 * SUM ( ALL 53 ) ) + - AVG ( - CASE + 57 WHEN 76 THEN - + 60 ELSE NULL END ) / + COUNT ( * ) * + + COUNT ( * ) + + 34 * 29 THEN CAST ( NULL AS INTEGER ) + + 70 * 34 WHEN 75 THEN NULL END + - 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT MIN( + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-82
SELECT MIN ( + 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT COUNT( + 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-83
SELECT COUNT ( + 16 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-84
SELECT + COALESCE ( 68, - 78, 46 ) * + 93 + - + COUNT( DISTINCT - 35 ) DIV 11 * + + 61 DIV + ( - 68 ) * + 54 + + 87 * COUNT( * ) DIV - 77
----
6323

skipif mysql # not compatible
query I rowsort label-84
SELECT + COALESCE ( 68, - 78, 46 ) * + 93 + - + COUNT ( DISTINCT - 35 ) / 11 * + + 61 / + ( - 68 ) * + 54 + + 87 * COUNT ( * ) / - 77
----
6323

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT + 38 - + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-85
SELECT + 38 - + COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT - MAX( DISTINCT - + 93 ) col1
----
93

skipif mysql # not compatible
query I rowsort label-86
SELECT - MAX ( DISTINCT - + 93 ) col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-87
SELECT ALL COALESCE ( + 34, CAST( - + ( 44 ) AS SIGNED ) + - 74 ) + - - 4 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL COALESCE ( + 34, CAST ( - + ( 44 ) AS INTEGER ) + - 74 ) + - - 4 AS col2
----
38

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

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL COUNT ( * ) + 63 AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT + 90 DIV - 69
----
-1

skipif mysql # not compatible
query I rowsort label-89
SELECT + 90 / - 69
----
-1

query I rowsort
SELECT - NULLIF ( + 82, - 57 ) col1
----
-82

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

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

query I rowsort
SELECT ALL + 44 + 84
----
128

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

query I rowsort
SELECT + 72 * - NULLIF ( - 52, 99 )
----
3744

query I rowsort
SELECT + 30 + 34 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-96
SELECT ALL CASE ( - 49 ) WHEN + + CAST( NULL AS SIGNED ) THEN + 61 WHEN + 56 + + CAST( NULL AS SIGNED ) THEN - - 25 END - 53 * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL CASE ( - 49 ) WHEN + + CAST ( NULL AS INTEGER ) THEN + 61 WHEN + 56 + + CAST ( NULL AS INTEGER ) THEN - - 25 END - 53 * - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + + 99 + - 3
----
96

query I rowsort
SELECT + 55 + - ( - 87 ) * + 91 + - 25 AS col2
----
7947

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT - 25 * - 79 * + 72 - - 31 + + MAX( - 98 ) * 81 AS col0
----
134293

skipif mysql # not compatible
query I rowsort label-99
SELECT - 25 * - 79 * + 72 - - 31 + + MAX ( - 98 ) * 81 AS col0
----
134293

query I rowsort
SELECT ALL - ( - + 70 ) * - + 58 * - + 71
----
288260

query I rowsort
SELECT ALL - 83 AS col2
----
-83

query I rowsort
SELECT + 69 + 91 AS col0
----
160

query II rowsort
SELECT DISTINCT 38, 94 AS col1
----
38
94

query I rowsort
SELECT ALL ( 88 ) AS col1
----
88

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

query I rowsort
SELECT - + 41 * + 39 AS col0
----
-1599

query I rowsort
SELECT DISTINCT - 19 * 67 AS col2
----
-1273

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT COALESCE ( - 41, + - ( + 86 ), COUNT( * ) * - 7 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-108
SELECT COALESCE ( - 41, + - ( + 86 ), COUNT ( * ) * - 7 ) AS col2
----
-41

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

query I rowsort
SELECT - 41 * + 13 AS col1
----
-533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-111
SELECT - NULLIF ( + SUM( ALL + CAST( NULL AS SIGNED ) ), - 62 / 16 + CAST( ( - - NULLIF ( - 73, 50 + + - 55 + + 4 ) ) AS SIGNED ) - - - 91 ), CASE - COALESCE ( + 71, - 47, + 19 ) WHEN + - 22 / + - 11 THEN + CASE - - 54 WHEN + 83 THEN - 11 * + 80 ELSE 64 / - - 95 + 7 * NULLIF ( + 63 + CASE + ( 67 ) WHEN + 98 + + 2 THEN 29 + 72 END * 13, 56 * - COALESCE ( - COUNT( * ), + 58, - 78, 24 * COUNT( 88 * - 1 ) ) + 5 ) END * + 90 END col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-111
SELECT - NULLIF ( + SUM ( ALL + CAST ( NULL AS INTEGER ) ), - 62 / 16 + CAST ( ( - - NULLIF ( - 73, 50 + + - 55 + + 4 ) ) AS INTEGER ) - - - 91 ), CASE - COALESCE ( + 71, - 47, + 19 ) WHEN + - 22 / + - 11 THEN + CASE - - 54 WHEN + 83 THEN - 11 * + 80 ELSE 64 / - - 95 + 7 * NULLIF ( + 63 + CASE + ( 67 ) WHEN + 98 + + 2 THEN 29 + 72 END * 13, 56 * - COALESCE ( - COUNT ( * ), + 58, - 78, 24 * COUNT ( 88 * - 1 ) ) + 5 ) END * + 90 END col1
----
NULL
NULL

query II rowsort
SELECT DISTINCT + 49 AS col2, 52 AS col2
----
49
52

query I rowsort
SELECT - + 14 * - 7
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT DISTINCT - - 52 * - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT - - 52 * - COUNT ( * ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-115
SELECT ALL + + CASE - CAST( NULL AS DECIMAL ) WHEN - - ( + - 66 ) THEN 36 * - 79 / + + SUM( DISTINCT 5 ) / 36 + + MAX( - 4 ) * - ( - 48 ) * + 94 - - COUNT( * ) WHEN - 88 * 13 + - - 6 THEN + COALESCE ( + COUNT( * ), 68 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL + + CASE - CAST ( NULL AS REAL ) WHEN - - ( + - 66 ) THEN 36 * - 79 / + + SUM ( DISTINCT 5 ) / 36 + + MAX ( - 4 ) * - ( - 48 ) * + 94 - - COUNT ( * ) WHEN - 88 * 13 + - - 6 THEN + COALESCE ( + COUNT ( * ), 68 ) END
----
NULL

query I rowsort
SELECT ALL 51 * - 28 AS col2
----
-1428

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-118
SELECT DISTINCT + 96 * 3 * + COUNT( * ) + 92, + 33 col1
----
380
33

skipif mysql # not compatible
query II rowsort label-118
SELECT DISTINCT + 96 * 3 * + COUNT ( * ) + 92, + 33 col1
----
380
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-119
SELECT - 16 * CASE + 5 WHEN - 7 + COUNT( * ) + - + 37 THEN NULL WHEN + ( - AVG ( DISTINCT - 72 ) ) THEN NULL ELSE + - 46 END DIV 30 * + 67 + + ( 2 ) + + 60 AS col0
----
1670

skipif mysql # not compatible
query I rowsort label-119
SELECT - 16 * CASE + 5 WHEN - 7 + COUNT ( * ) + - + 37 THEN NULL WHEN + ( - AVG ( DISTINCT - 72 ) ) THEN NULL ELSE + - 46 END / 30 * + 67 + + ( 2 ) + + 60 AS col0
----
1670

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

query I rowsort
SELECT ALL - 21 * 70
----
-1470

query I rowsort
SELECT NULLIF ( - 65, + + 21 - + 84 )
----
-65

query I rowsort
SELECT + NULLIF ( + - 99, 15 ) AS col0
----
-99

query I rowsort
SELECT COALESCE ( - 39, - 31 ) AS col2
----
-39

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

query I rowsort
SELECT - 14 + - - 22
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT ALL + SUM( 64 ) col2
----
64

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL + SUM ( 64 ) col2
----
64

query I rowsort
SELECT + 90 + 97 * - - ( - - 92 ) AS col0
----
9014

query I rowsort
SELECT ALL 96 * - NULLIF ( + 21, 74 ) + + 53
----
-1963

onlyif mysql # aggregate syntax: 
query II rowsort label-130
SELECT ALL MAX( ALL 2 ) AS col2, 32
----
2
32

skipif mysql # not compatible
query II rowsort label-130
SELECT ALL MAX ( ALL 2 ) AS col2, 32
----
2
32

query I rowsort
SELECT + 21 * 69 + - - 12 - - 82 + - - 55 - + 85 + - 24
----
1489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-132
SELECT ALL + 54 * - CAST( NULL AS SIGNED ) * 16 - - + CASE - 48 WHEN - COUNT( * ) + - 34 THEN - 8 ELSE NULL END + COUNT( * ), + ( MAX( - 90 ) ) + - 75 AS col0
----
NULL
-165

skipif mysql # not compatible
query II rowsort label-132
SELECT ALL + 54 * - CAST ( NULL AS INTEGER ) * 16 - - + CASE - 48 WHEN - COUNT ( * ) + - 34 THEN - 8 ELSE NULL END + COUNT ( * ), + ( MAX ( - 90 ) ) + - 75 AS col0
----
NULL
-165

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-133
SELECT + 37 + - + 3 - CAST( NULL AS DECIMAL ) * + 1 + - 18 - 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT + 37 + - + 3 - CAST ( NULL AS REAL ) * + 1 + - 18 - 84 col2
----
NULL

query I rowsort
SELECT + 48 * + - 14 AS col1
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT + ( - COUNT( + ( + + 80 ) ) ) + 52 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-135
SELECT + ( - COUNT ( + ( + + 80 ) ) ) + 52 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - CASE 6 WHEN COUNT( * ) + - + 57 THEN + + ( + 58 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT - CASE 6 WHEN COUNT ( * ) + - + 57 THEN + + ( + 58 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 67 col0
----
-67

query I rowsort
SELECT + ( - CASE - 40 WHEN - 12 + - - 23 * 33 * - 47 * + - 40 THEN NULL WHEN + + AVG ( + - 97 ) THEN NULL ELSE - 14 END )
----
14

query I rowsort
SELECT ALL + 51 - - 35 col0
----
86

query I rowsort
SELECT + 47 * + COALESCE ( + + 75, + 5 * - - 31 * 35 ) * + 26 + + - 59 * + 3
----
91473

onlyif mysql # DIV for integer division: 
query II rowsort label-141
SELECT - + 4 DIV 44 AS col2, + 26 + + + 83 AS col2
----
0
109

skipif mysql # not compatible
query II rowsort label-141
SELECT - + 4 / 44 AS col2, + 26 + + + 83 AS col2
----
0
109

query I rowsort
SELECT + 69 - + 60 + - 19 AS col2
----
-10

query I rowsort
SELECT + ( - 47 ) * + 24
----
-1128

onlyif mysql # DIV for integer division: 
query II rowsort label-144
SELECT - 92 DIV 43, + 17 AS col2
----
-2
17

skipif mysql # not compatible
query II rowsort label-144
SELECT - 92 / 43, + 17 AS col2
----
-2
17

onlyif mysql # DIV for integer division: 
query I rowsort label-145
SELECT DISTINCT + - 88 + 19 DIV - 30 * + + 78 + - 33
----
-121

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT + - 88 + 19 / - 30 * + + 78 + - 33
----
-121

query I rowsort
SELECT ALL + 5 + 30 * COALESCE ( + 29, - 12 + - 53, 19 + - - ( + 88 ) + + 85 )
----
875

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT ALL + ( - 47 ) + CASE AVG ( 12 ) WHEN - 54 - - + MAX( - 35 ) THEN + - 40 / + 86 + + COUNT( * ) - - CASE 76 WHEN + + 60 THEN - 55 WHEN - 41 THEN NULL END + - 48 WHEN - ( - + 47 ) * NULLIF ( 4, 21 / + COUNT( * ) ) THEN NULL ELSE NULL END + COUNT( * ) + - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL + ( - 47 ) + CASE AVG ( 12 ) WHEN - 54 - - + MAX ( - 35 ) THEN + - 40 / + 86 + + COUNT ( * ) - - CASE 76 WHEN + + 60 THEN - 55 WHEN - 41 THEN NULL END + - 48 WHEN - ( - + 47 ) * NULLIF ( 4, 21 / + COUNT ( * ) ) THEN NULL ELSE NULL END + COUNT ( * ) + - - 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-148
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) + - ( - 9 ) + 47 * - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-148
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - ( - 9 ) + 47 * - + 92
----
NULL

query I rowsort
SELECT ALL - 52 * - 23 AS col0
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT ALL + 80 + - COUNT( * ) * 5 * + + 61 AS col2
----
-225

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL + 80 + - COUNT ( * ) * 5 * + + 61 AS col2
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-151
SELECT 28 DIV 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-151
SELECT 28 / 61 AS col2
----
0

query I rowsort
SELECT 31 - - 8
----
39

query II rowsort
SELECT 21 AS col0, 32 + 38 AS col0
----
21
70

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT ALL + ( + + 36 ) DIV + + 72 col0
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + ( + + 36 ) / + + 72 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT DISTINCT - 62 - SUM( - + 14 ) * COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT - 62 - SUM ( - + 14 ) * COUNT ( * )
----
-48

query I rowsort
SELECT DISTINCT 96 * + 91 * 47 col2
----
410592

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT ALL - ( + 70 ) - - - 56 - - ( - COUNT( * ) ) AS col2
----
-127

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL - ( + 70 ) - - - 56 - - ( - COUNT ( * ) ) AS col2
----
-127

query I rowsort
SELECT ALL + 90 * + 84 AS col2
----
7560

query I rowsort
SELECT 43 - + 5 AS col2
----
38

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

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

query I rowsort
SELECT 52 - - 90
----
142

query I rowsort
SELECT 88 * - NULLIF ( ( - 47 ), - 32 * + 1 )
----
4136

query I rowsort
SELECT ALL CASE + ( 31 ) WHEN + 87 THEN - 15 + + + 72 END / 81 * - 69 * + - 23 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-164
SELECT + NULLIF ( + - NULLIF ( + + 86, + - CAST( - 76 AS SIGNED ) ), + - 22 )
----
-86

skipif mysql # not compatible
query I rowsort label-164
SELECT + NULLIF ( + - NULLIF ( + + 86, + - CAST ( - 76 AS INTEGER ) ), + - 22 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT 40 * + + MAX( 51 ) + + 70
----
2110

skipif mysql # not compatible
query I rowsort label-165
SELECT 40 * + + MAX ( 51 ) + + 70
----
2110

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT - 73 - - 9 DIV - 93 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-166
SELECT - 73 - - 9 / - 93 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT 33 - - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-167
SELECT 33 - - COUNT ( * )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-168
SELECT NULLIF ( + 29, MAX( ( + CAST( NULL AS SIGNED ) ) ) / + 19 ) * + - 48 col2
----
-1392

skipif mysql # not compatible
query I rowsort label-168
SELECT NULLIF ( + 29, MAX ( ( + CAST ( NULL AS INTEGER ) ) ) / + 19 ) * + - 48 col2
----
-1392

query I rowsort
SELECT - ( 41 ) AS col2
----
-41

query I rowsort
SELECT ALL + ( + 65 ) + + ( + 41 ) col1
----
106

query I rowsort
SELECT ( - 66 ) + + + 75 * + 73 * - 58
----
-317616

query II rowsort
SELECT ALL + 45, + 7 * 24 - - 22 AS col1
----
45
190

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-173
SELECT DISTINCT 46 + - 7 * - + COUNT( * ) - ( - 39 ) - 9 - COALESCE ( + 59, + + CASE + 82 WHEN 88 + - 20 THEN + 69 END ) / + + 23 + - ( - - CAST( NULL AS DECIMAL ) ) + + 15 + - 91 * + ( + - 64 ) * + + MAX( DISTINCT - 57 ) * - 18 + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT 46 + - 7 * - + COUNT ( * ) - ( - 39 ) - 9 - COALESCE ( + 59, + + CASE + 82 WHEN 88 + - 20 THEN + 69 END ) / + + 23 + - ( - - CAST ( NULL AS REAL ) ) + + 15 + - 91 * + ( + - 64 ) * + + MAX ( DISTINCT - 57 ) * - 18 + 98 AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-175
SELECT DISTINCT - 87 + NULLIF ( + - COUNT( * ), 35 ) + + NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT - 87 + NULLIF ( + - COUNT ( * ), 35 ) + + NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT - 17 + + 63 col2
----
46

query I rowsort
SELECT - ( - COALESCE ( - 77, 62 ) ) AS col0
----
-77

query II rowsort
SELECT 96 AS col1, + ( + 50 )
----
96
50

query I rowsort
SELECT 57 * + 28 AS col0
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT COUNT( + COALESCE ( + + 34, + - 98 ) )
----
1

skipif mysql # not compatible
query I rowsort label-180
SELECT COUNT ( + COALESCE ( + + 34, + - 98 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-181
SELECT COUNT( * ) * + - 37 * - COALESCE ( - 78, - - COUNT( * ) DIV - 86 )
----
-2886

skipif mysql # not compatible
query I rowsort label-181
SELECT COUNT ( * ) * + - 37 * - COALESCE ( - 78, - - COUNT ( * ) / - 86 )
----
-2886

query I rowsort
SELECT ALL - 21 * 37 AS col1
----
-777

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT + 69 * 64 - + + 80 DIV + 89 AS col1
----
4416

skipif mysql # not compatible
query I rowsort label-185
SELECT + 69 * 64 - + + 80 / + 89 AS col1
----
4416

query I rowsort
SELECT 62 - + 50
----
12

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

skipif mysql # not compatible
query I rowsort label-187
SELECT 94 * 96 * CAST ( NULL AS INTEGER ) * + 16 + - 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-188
SELECT ALL - 1, + CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-188
SELECT ALL - 1, + CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

query I rowsort
SELECT DISTINCT + 4 * + 70
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-190
SELECT NULLIF ( + - 98, - + NULLIF ( 3, COUNT( * ) + - 45 * 80 * + ( + 53 ) ) * - - CAST( NULL AS SIGNED ) ) * 70 * 45 AS col2
----
-308700

skipif mysql # not compatible
query I rowsort label-190
SELECT NULLIF ( + - 98, - + NULLIF ( 3, COUNT ( * ) + - 45 * 80 * + ( + 53 ) ) * - - CAST ( NULL AS INTEGER ) ) * 70 * 45 AS col2
----
-308700

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT + 25 * - 52 - - 85 * 36 DIV + - ( 90 ) + + - 17
----
-1351

skipif mysql # not compatible
query I rowsort label-191
SELECT + 25 * - 52 - - 85 * 36 / + - ( 90 ) + + - 17
----
-1351

onlyif mysql # DIV for integer division: 
query I rowsort label-192
SELECT ALL + 59 DIV - ( 75 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL + 59 / - ( 75 ) AS col2
----
0

query II rowsort
SELECT + + 24, 39 AS col2
----
24
39

onlyif mysql # aggregate syntax: 
query II rowsort label-194
SELECT - CASE WHEN 53 BETWEEN + 50 / 27 AND - 1 THEN + + ( - - COUNT( * ) ) + + 26 + - + 65 + + ( - 59 ) + 41 * 48 + + + 42 END / - + COUNT( * ), 0 * 35 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-194
SELECT - CASE WHEN 53 BETWEEN + 50 / 27 AND - 1 THEN + + ( - - COUNT ( * ) ) + + 26 + - + 65 + + ( - 59 ) + 41 * 48 + + + 42 END / - + COUNT ( * ), 0 * 35 AS col2
----
NULL
0

query I rowsort
SELECT ALL COALESCE ( 66, 73 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-196
SELECT - - 10 DIV - 29 * - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-196
SELECT - - 10 / - 29 * - + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-197
SELECT ALL + 99 + NULLIF ( CAST( NULL AS SIGNED ), + - 29 / + - 40 * + + AVG ( - 27 ) - + - 26 + - 27 * + + 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL + 99 + NULLIF ( CAST ( NULL AS INTEGER ), + - 29 / + - 40 * + + AVG ( - 27 ) - + - 26 + - 27 * + + 10 ) AS col1
----
NULL

query I rowsort
SELECT - 38 * + + 13
----
-494

query I rowsort
SELECT ALL - - 92 + + 84 AS col1
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-200
SELECT ALL + 14 AS col0, SUM( ALL 40 ) * 53 AS col2
----
14
2120

skipif mysql # not compatible
query II rowsort label-200
SELECT ALL + 14 AS col0, SUM ( ALL 40 ) * 53 AS col2
----
14
2120

query I rowsort
SELECT DISTINCT + 96 + + 34
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-202
SELECT ALL - 38 + + 90 - + - COUNT( * ) * - - 22 + + + AVG ( 90 ) - - CAST( NULL AS SIGNED ) * + 35 + - 36 + 32 * - COUNT( * ) * + - 20 * - + COALESCE ( + - 95, + - 24 * + + 90, + 65 ) AS col1, - ( - COALESCE ( - 0, - 39, - 82 - + 1 ) ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-202
SELECT ALL - 38 + + 90 - + - COUNT ( * ) * - - 22 + + + AVG ( 90 ) - - CAST ( NULL AS INTEGER ) * + 35 + - 36 + 32 * - COUNT ( * ) * + - 20 * - + COALESCE ( + - 95, + - 24 * + + 90, + 65 ) AS col1, - ( - COALESCE ( - 0, - 39, - 82 - + 1 ) ) AS col2
----
NULL
0

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

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

query I rowsort
SELECT ALL - 58 + + - 91 AS col0
----
-149

query II rowsort
SELECT ALL + 93 AS col0, 16 * + + 7 col2
----
93
112

query II rowsort
SELECT 73 AS col2, + 67 + + - 53 + + - 1 AS col1
----
73
13

onlyif mysql # DIV for integer division: 
query II rowsort label-207
SELECT 98 AS col2, - 93 DIV - + 77
----
98
1

skipif mysql # not compatible
query II rowsort label-207
SELECT 98 AS col2, - 93 / - + 77
----
98
1

query I rowsort
SELECT DISTINCT 80 + 38
----
118

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-210
SELECT ALL 92 - - + ( CAST( - NULLIF ( - 22, 50 + + + 12 + + 99 / 72 ) AS SIGNED ) ) * 36 AS col0
----
884

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL 92 - - + ( CAST ( - NULLIF ( - 22, 50 + + + 12 + + 99 / 72 ) AS INTEGER ) ) * 36 AS col0
----
884

query I rowsort
SELECT - 98 - + + 30
----
-128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT + 74 * - + COUNT( * ) * - + 8 col2
----
592

skipif mysql # not compatible
query I rowsort label-213
SELECT + 74 * - + COUNT ( * ) * - + 8 col2
----
592

query I rowsort
SELECT ALL 86 * - - 49
----
4214

query I rowsort
SELECT ALL + ( 64 ) * 57 * + - 44
----
-160512

onlyif mysql # DIV for integer division: 
query I rowsort label-216
SELECT ALL + 4 * + 40 - - 91 - + 50 DIV 61 col2
----
251

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL + 4 * + 40 - - 91 - + 50 / 61 col2
----
251

query II rowsort
SELECT ( - 65 ) AS col2, 28
----
-65
28

query I rowsort
SELECT ALL 53 * - 46 - 23
----
-2461

query I rowsort
SELECT + NULLIF ( 58, 23 ) * + - 54
----
-3132

query I rowsort
SELECT ALL + 92 col2
----
92

query I rowsort
SELECT - 55 * + 48 * - + 7 AS col1
----
18480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-222
SELECT + 3 * - 33 * - 12 / - - 11 + - - 89 + 94 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT + 3 * - 33 * - 12 / - - 11 + - - 89 + 94 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT ( - 95 )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-225
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN - 61 THEN + - ( + + 90 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN - 61 THEN + - ( + + 90 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-226
SELECT - CASE 99 WHEN - + 99 THEN - - 17 * + - 17 ELSE NULL END * + + COUNT( * ) / 43 * 92 AS col2, CAST( NULL AS SIGNED ) * + + 78
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-226
SELECT - CASE 99 WHEN - + 99 THEN - - 17 * + - 17 ELSE NULL END * + + COUNT ( * ) / 43 * 92 AS col2, CAST ( NULL AS INTEGER ) * + + 78
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-227
SELECT DISTINCT 49 DIV + 57 * - 61 * + 65 * - - MAX( ALL + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT 49 / + 57 * - 61 * + 65 * - - MAX ( ALL + 65 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-228
SELECT ALL 72 * - ( - - COALESCE ( + - 67, + - 44 - 85 + + - CAST( NULL AS SIGNED ) ) ) AS col0
----
4824

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL 72 * - ( - - COALESCE ( + - 67, + - 44 - 85 + + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
4824

query I rowsort
SELECT + 78 * + 43
----
3354

query I rowsort
SELECT + ( 14 ) * + + 85 AS col2
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL + COALESCE ( + - 62, - 41 + 5 + 72 * + COUNT( * ), - + 35 ) * - - 53 + 56 + 68 * ( - 71 ) AS col1
----
-8058

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL + COALESCE ( + - 62, - 41 + 5 + 72 * + COUNT ( * ), - + 35 ) * - - 53 + 56 + 68 * ( - 71 ) AS col1
----
-8058

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT DISTINCT 12 * + NULLIF ( COUNT( * ), + 3 + - 60 - + CASE + 28 WHEN + + 7 * + + 62 - + + NULLIF ( 31, + COUNT( * ) / + 47 * + 90 ) * + + ( - 55 ) - - 45 + + 22 THEN + 47 WHEN - 45 THEN NULL END * - - 48 + 86 + - - 26 )
----
12

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT 12 * + NULLIF ( COUNT ( * ), + 3 + - 60 - + CASE + 28 WHEN + + 7 * + + 62 - + + NULLIF ( 31, + COUNT ( * ) / + 47 * + 90 ) * + + ( - 55 ) - - 45 + + 22 THEN + 47 WHEN - 45 THEN NULL END * - - 48 + 86 + - - 26 )
----
12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-234
SELECT + - CAST( NULL AS SIGNED ) * + 89 * - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT + - CAST ( NULL AS INTEGER ) * + 89 * - 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT - 69 * - SUM( ALL - ( - 72 ) )
----
4968

skipif mysql # not compatible
query I rowsort label-235
SELECT - 69 * - SUM ( ALL - ( - 72 ) )
----
4968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-236
SELECT ALL - 65 * - CAST( - NULLIF ( - 34, - 0 ) AS SIGNED ) + + 64 + 60 * - 29 + - 45 AS col0
----
489

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL - 65 * - CAST ( - NULLIF ( - 34, - 0 ) AS INTEGER ) + + 64 + 60 * - 29 + - 45 AS col0
----
489

query II rowsort
SELECT + 8 - - 65, - NULLIF ( - - 30, 88 ) AS col2
----
73
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-238
SELECT + NULLIF ( - 90, + AVG ( DISTINCT + + 70 ) * + CAST( + 16 AS SIGNED ) * - CAST( NULL AS SIGNED ) ) - - 14 + + 47
----
-29

skipif mysql # not compatible
query I rowsort label-238
SELECT + NULLIF ( - 90, + AVG ( DISTINCT + + 70 ) * + CAST ( + 16 AS INTEGER ) * - CAST ( NULL AS INTEGER ) ) - - 14 + + 47
----
-29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT DISTINCT 89 * + + MIN( 67 ) * - ( + 81 ) + 72 - - 47 + 19 * + 90
----
-481174

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT 89 * + + MIN ( 67 ) * - ( + 81 ) + 72 - - 47 + 19 * + 90
----
-481174

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL + SUM( DISTINCT - ( 65 ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL + SUM ( DISTINCT - ( 65 ) ) AS col2
----
-65

query I rowsort
SELECT DISTINCT - - 78 * - 68 + - 57
----
-5361

query I rowsort
SELECT - - 72 AS col0
----
72

query I rowsort
SELECT - + 81 - 50
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-245
SELECT ALL - + COUNT( * ) DIV 82 - - 10
----
10

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL - + COUNT ( * ) / 82 - - 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT ALL COALESCE ( - + 75, - - COUNT( * ) + 16 )
----
-75

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL COALESCE ( - + 75, - - COUNT ( * ) + 16 )
----
-75

query I rowsort
SELECT COALESCE ( - 2, 68 )
----
-2

query I rowsort
SELECT ALL - + 51 - + 7
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT - 52 + + COUNT( * ) + - + ( - + 3 ) + + 85 * - 88 AS col2
----
-7528

skipif mysql # not compatible
query I rowsort label-249
SELECT - 52 + + COUNT ( * ) + - + ( - + 3 ) + + 85 * - 88 AS col2
----
-7528

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-251
SELECT DISTINCT - - 85 * - - CASE COUNT( * ) WHEN - 67 / - - ( 79 ) + - - 43 THEN NULL ELSE COUNT( * ) END, - 53 AS col2
----
85
-53

skipif mysql # not compatible
query II rowsort label-251
SELECT DISTINCT - - 85 * - - CASE COUNT ( * ) WHEN - 67 / - - ( 79 ) + - - 43 THEN NULL ELSE COUNT ( * ) END, - 53 AS col2
----
85
-53

query I rowsort
SELECT DISTINCT + 48 * + 15 AS col1
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT - 92 * - CASE ( - - COALESCE ( + ( + MIN( ALL 60 ) ), 5 * 33 + - 12 / + SUM( DISTINCT + 54 ) * + COUNT( * ) + + - 82 * + - 13 - + + SUM( DISTINCT + 7 ) + - 99 * - 84 - + 11 ) ) WHEN + 21 + - 86 THEN NULL WHEN MIN( ALL 90 ) + + + 60 + + + ( - COUNT( * ) ) + 62 * + SUM( DISTINCT - - 97 ) THEN NULL ELSE - 58 END
----
-5336

skipif mysql # not compatible
query I rowsort label-253
SELECT - 92 * - CASE ( - - COALESCE ( + ( + MIN ( ALL 60 ) ), 5 * 33 + - 12 / + SUM ( DISTINCT + 54 ) * + COUNT ( * ) + + - 82 * + - 13 - + + SUM ( DISTINCT + 7 ) + - 99 * - 84 - + 11 ) ) WHEN + 21 + - 86 THEN NULL WHEN MIN ( ALL 90 ) + + + 60 + + + ( - COUNT ( * ) ) + 62 * + SUM ( DISTINCT - - 97 ) THEN NULL ELSE - 58 END
----
-5336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-254
SELECT ALL + COALESCE ( + 19, + 48 ) * - 21 AS col2, - 28 + - 43 - - 25 - - - 0 * + ( COUNT( * ) ) * - 86 + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
-399
-46

skipif mysql # not compatible
query II rowsort label-254
SELECT ALL + COALESCE ( + 19, + 48 ) * - 21 AS col2, - 28 + - 43 - - 25 - - - 0 * + ( COUNT ( * ) ) * - 86 + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
-399
-46

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-256
SELECT ALL CAST( NULL AS SIGNED ) AS col1, COALESCE ( ( 13 ), COUNT( * ) * - 8 * - - 22 + - 84 + + 30 DIV 72 + COUNT( * ) * + + 36 * 37 - 43 * 97 ) * 54 AS col1
----
NULL
702

skipif mysql # not compatible
query II rowsort label-256
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COALESCE ( ( 13 ), COUNT ( * ) * - 8 * - - 22 + - 84 + + 30 / 72 + COUNT ( * ) * + + 36 * 37 - 43 * 97 ) * 54 AS col1
----
NULL
702

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-258
SELECT + ( - 77 ) + + 33 AS col1, 76 / + - CASE MAX( DISTINCT + 49 ) WHEN - 37 THEN + 89 + + 67 ELSE NULL END - - - 6
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-258
SELECT + ( - 77 ) + + 33 AS col1, 76 / + - CASE MAX ( DISTINCT + 49 ) WHEN - 37 THEN + 89 + + 67 ELSE NULL END - - - 6
----
-44
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT - 26 + - + MIN( - 72 ) + 32 * + COUNT( * ) * - ( - 11 )
----
398

skipif mysql # not compatible
query I rowsort label-261
SELECT - 26 + - + MIN ( - 72 ) + 32 * + COUNT ( * ) * - ( - 11 )
----
398

query I rowsort
SELECT ALL 96 * + - 16
----
-1536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-263
SELECT ALL CAST( NULL AS SIGNED ) / - 86 * + + 75 + + 77 * + - 38 + CAST( COUNT( * ) AS SIGNED ) + 30 * - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL CAST ( NULL AS INTEGER ) / - 86 * + + 75 + + 77 * + - 38 + CAST ( COUNT ( * ) AS INTEGER ) + 30 * - 88 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-264
SELECT DISTINCT + ( + + COUNT( - CAST( NULL AS SIGNED ) ) ) AS col1, - ( + 53 )
----
0
-53

skipif mysql # not compatible
query II rowsort label-264
SELECT DISTINCT + ( + + COUNT ( - CAST ( NULL AS INTEGER ) ) ) AS col1, - ( + 53 )
----
0
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT ( + 48 ) / + + 87 / CAST( NULL AS SIGNED ) / - 14 - + + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-265
SELECT ( + 48 ) / + + 87 / CAST ( NULL AS INTEGER ) / - 14 - + + 44 AS col2
----
NULL

query I rowsort
SELECT ALL 23 + + 15
----
38

query II rowsort
SELECT + 71 * + - 62 + + 65 AS col1, 69 AS col1
----
-4337
69

query I rowsort
SELECT + 13 col0
----
13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-270
SELECT ALL - 71 + 61 DIV ( ( + - 93 ) ) DIV 65 DIV - - 73 + + NULLIF ( - 7, + - 13 DIV + + 15 * - 81 - MAX( ALL - - 51 ) ) * 1 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL - 71 + 61 / ( ( + - 93 ) ) / 65 / - - 73 + + NULLIF ( - 7, + - 13 / + + 15 * - 81 - MAX ( ALL - - 51 ) ) * 1 AS col2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-271
SELECT - 8 * COUNT( ALL 37 ) * + + NULLIF ( - - 37, + 67 * + 48 + - 54 + + + 62 - + + 3 * + ( - + CAST( NULL AS SIGNED ) ) * - 72 * 73 ) + + 24 + 1 AS col2
----
-271

skipif mysql # not compatible
query I rowsort label-271
SELECT - 8 * COUNT ( ALL 37 ) * + + NULLIF ( - - 37, + 67 * + 48 + - 54 + + + 62 - + + 3 * + ( - + CAST ( NULL AS INTEGER ) ) * - 72 * 73 ) + + 24 + 1 AS col2
----
-271

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-272
SELECT DISTINCT - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT COALESCE ( + 15, COALESCE ( 37, - 37 + 89 * - COUNT( ( + - 72 ) ) + - 3 * 39 ) ) * 47 + - MIN( - 35 ) col0
----
740

skipif mysql # not compatible
query I rowsort label-273
SELECT COALESCE ( + 15, COALESCE ( 37, - 37 + 89 * - COUNT ( ( + - 72 ) ) + - 3 * 39 ) ) * 47 + - MIN ( - 35 ) col0
----
740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-274
SELECT ALL 53 - - 34 + - + CAST( NULL AS SIGNED ) + + ( - - MAX( ALL - 44 ) ), - 62 AS col2
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-274
SELECT ALL 53 - - 34 + - + CAST ( NULL AS INTEGER ) + + ( - - MAX ( ALL - 44 ) ), - 62 AS col2
----
NULL
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-275
SELECT 71 AS col1, 34 * COUNT( - 6 ) * - - 48 * + + 63 * + 2 AS col0
----
71
205632

skipif mysql # not compatible
query II rowsort label-275
SELECT 71 AS col1, 34 * COUNT ( - 6 ) * - - 48 * + + 63 * + 2 AS col0
----
71
205632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-276
SELECT COUNT( * ) + + 78 DIV + 43
----
2

skipif mysql # not compatible
query I rowsort label-276
SELECT COUNT ( * ) + + 78 / + 43
----
2

query I rowsort
SELECT + 36 * - + 24
----
-864

query I rowsort
SELECT ALL + 95 - - 55
----
150

query I rowsort
SELECT 47 * - 76
----
-3572

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT DISTINCT - 71 DIV 4 * + 96
----
-1632

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT - 71 / 4 * + 96
----
-1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-281
SELECT COUNT( * ) DIV 1 col0, - 27
----
1
-27

skipif mysql # not compatible
query II rowsort label-281
SELECT COUNT ( * ) / 1 col0, - 27
----
1
-27

query I rowsort
SELECT 72 * 54 * 26
----
101088

query I rowsort
SELECT DISTINCT - 45 * - 26
----
1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-284
SELECT 56 - 4 + + COUNT( * ) DIV - 61 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-284
SELECT 56 - 4 + + COUNT ( * ) / - 61 AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-285
SELECT 62 * 96 * - 32 * - - CAST( NULL AS SIGNED ), 80 AS col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-285
SELECT 62 * 96 * - 32 * - - CAST ( NULL AS INTEGER ), 80 AS col2
----
NULL
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-286
SELECT DISTINCT COALESCE ( 77, + 56 ) + + + CAST( NULL AS SIGNED ) - + - 47 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT COALESCE ( 77, + 56 ) + + + CAST ( NULL AS INTEGER ) - + - 47 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT DISTINCT + 45 * - + 75 * + COUNT( * )
----
-3375

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT + 45 * - + 75 * + COUNT ( * )
----
-3375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-288
SELECT DISTINCT - MAX( DISTINCT + 20 ) + - + 5 DIV + + 22 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-288
SELECT DISTINCT - MAX ( DISTINCT + 20 ) + - + 5 / + + 22 AS col0
----
-20

query I rowsort
SELECT ALL + 27 + + - 21
----
6

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

skipif mysql # not compatible
query I rowsort label-290
SELECT + - COUNT ( DISTINCT - - 35 ) AS col0
----
-1

query I rowsort
SELECT - 60 + 16
----
-44

query I rowsort
SELECT + - NULLIF ( - 65, - 52 ) AS col1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-293
SELECT ALL - + COUNT( + 3 ) * - 28 DIV - 36 - 11 * - COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL - + COUNT ( + 3 ) * - 28 / - 36 - 11 * - COUNT ( * ) AS col1
----
11

query I rowsort
SELECT ALL 57 - + 83 + + 64
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-295
SELECT - 27 * + 82, + 82 * + CASE - 96 WHEN COUNT( * ) + + 96 THEN NULL ELSE + - 96 END col2
----
-2214
-7872

skipif mysql # not compatible
query II rowsort label-295
SELECT - 27 * + 82, + 82 * + CASE - 96 WHEN COUNT ( * ) + + 96 THEN NULL ELSE + - 96 END col2
----
-2214
-7872

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT COALESCE ( + 93, + MIN( + 2 ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-296
SELECT COALESCE ( + 93, + MIN ( + 2 ) ) AS col0
----
93

query I rowsort
SELECT 71 * 48 * 49 - 6 - - - 28
----
166958

query I rowsort
SELECT ALL - 59 - 88 AS col1
----
-147

query I rowsort
SELECT 94 * - 57 - + 22
----
-5380

query I rowsort
SELECT ALL - - 90 AS col0
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT 29 * + - COUNT( * ) + COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-302
SELECT 29 * + - COUNT ( * ) + COUNT ( * ) AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT DISTINCT - 65 DIV + 25 + + - 64
----
-66

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT - 65 / + 25 + + - 64
----
-66

query I rowsort
SELECT 73 * 71
----
5183

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT ALL CASE - 19 WHEN - - 7 THEN - - 54 * + COUNT( * ) END * 26 - - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL CASE - 19 WHEN - - 7 THEN - - 54 * + COUNT ( * ) END * 26 - - 49 AS col1
----
NULL

query I rowsort
SELECT 56 - + 21 AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-307
SELECT 27 * + + COUNT( DISTINCT + - 60 ), 54 - - - 71 + + 2 * - 25 * 25 AS col2
----
27
-1267

skipif mysql # not compatible
query II rowsort label-307
SELECT 27 * + + COUNT ( DISTINCT + - 60 ), 54 - - - 71 + + 2 * - 25 * 25 AS col2
----
27
-1267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT CAST( + 93 AS SIGNED ) - SUM( + - 96 ) AS col1
----
189

skipif mysql # not compatible
query I rowsort label-308
SELECT CAST ( + 93 AS INTEGER ) - SUM ( + - 96 ) AS col1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT - SUM( + ( 98 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-309
SELECT - SUM ( + ( 98 ) ) AS col2
----
-98

query I rowsort
SELECT 82 * + 82 * + 9 * - - 33 AS col0
----
1997028

query I rowsort
SELECT ALL 20 + - 50 - - 45
----
15

query I rowsort
SELECT ( + - 61 ) + + 3 AS col0
----
-58

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

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

query I rowsort
SELECT ALL - 68 + - 44
----
-112

query I rowsort
SELECT DISTINCT + 14 * + + 71
----
994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-316
SELECT MAX( - 43 ) * + + 89 * + COUNT( - CAST( + 77 AS SIGNED ) ) * CAST( + - 65 AS SIGNED ) * + + 52 / - CAST( NULL AS SIGNED ) + - + 15 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-316
SELECT MAX ( - 43 ) * + + 89 * + COUNT ( - CAST ( + 77 AS INTEGER ) ) * CAST ( + - 65 AS INTEGER ) * + + 52 / - CAST ( NULL AS INTEGER ) + - + 15 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-317
SELECT 97 DIV ( + 1 ) AS col0, - 67
----
97
-67

skipif mysql # not compatible
query II rowsort label-317
SELECT 97 / ( + 1 ) AS col0, - 67
----
97
-67

query I rowsort
SELECT DISTINCT 54 + 3 AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-319
SELECT - COALESCE ( - 23, + 51 * + - 66 - COUNT( * ) ) col0, 12 AS col1
----
23
12

skipif mysql # not compatible
query II rowsort label-319
SELECT - COALESCE ( - 23, + 51 * + - 66 - COUNT ( * ) ) col0, 12 AS col1
----
23
12

query I rowsort
SELECT ALL + 96 * 63 col0
----
6048

query I rowsort
SELECT 35 * 76 + + 33 AS col1
----
2693

query II rowsort
SELECT DISTINCT - 16 * + 58 - 69, 84 AS col0
----
-997
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-323
SELECT DISTINCT + COALESCE ( - COUNT( * ), + 69 DIV MAX( + - 54 ), - 30, - 58 ) * - 59 * COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + 69 / MAX ( + - 54 ), - 30, - 58 ) * - 59 * COUNT ( * ) AS col1
----
59

query I rowsort
SELECT ALL + - ( + 1 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-325
SELECT DISTINCT + COUNT( * ) / - 24 / - 75 / - 10 * - CAST( NULL AS DECIMAL ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT + COUNT ( * ) / - 24 / - 75 / - 10 * - CAST ( NULL AS REAL ) + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-326
SELECT 69 DIV 96 - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-326
SELECT 69 / 96 - 60 AS col1
----
-60

query I rowsort
SELECT - + 94 + - + 91 AS col1
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL - 80 * - 59 + - - 74 - + ( + 4 ) - + MIN( DISTINCT - 17 )
----
4807

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL - 80 * - 59 + - - 74 - + ( + 4 ) - + MIN ( DISTINCT - 17 )
----
4807

query I rowsort
SELECT 19 * 60 + - 30 AS col0
----
1110

query I rowsort
SELECT ALL + - 74
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT - ( + + NULLIF ( - COUNT( * ), - + 84 ) ) + + 80
----
81

skipif mysql # not compatible
query I rowsort label-331
SELECT - ( + + NULLIF ( - COUNT ( * ), - + 84 ) ) + + 80
----
81

query I rowsort
SELECT ALL + NULLIF ( - - 36, 52 * - 29 ) * - + 91
----
-3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-333
SELECT DISTINCT + ( + + 55 ) * - CAST( NULL AS SIGNED ) + + 69 * + 70 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT + ( + + 55 ) * - CAST ( NULL AS INTEGER ) + + 69 * + 70 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-334
SELECT + + MIN( ALL ( CASE + 14 WHEN - CAST( NULL AS SIGNED ) / - + 40 + 93 THEN - - 26 * + ( 59 ) * + 99 / - 5 * - 34 END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT + + MIN ( ALL ( CASE + 14 WHEN - CAST ( NULL AS INTEGER ) / - + 40 + 93 THEN - - 26 * + ( 59 ) * + 99 / - 5 * - 34 END ) ) AS col0
----
NULL

query I rowsort
SELECT - ( 80 ) * 9 AS col2
----
-720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT + NULLIF ( + COUNT( * ), + + 86 ) * + 93 + + 60 / - NULLIF ( + 66, - 94 ) + + + 16 + CASE - 62 WHEN - 35 THEN NULL WHEN + 55 THEN COUNT( * ) END + COUNT( * ) + - 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-337
SELECT + NULLIF ( + COUNT ( * ), + + 86 ) * + 93 + + 60 / - NULLIF ( + 66, - 94 ) + + + 16 + CASE - 62 WHEN - 35 THEN NULL WHEN + 55 THEN COUNT ( * ) END + COUNT ( * ) + - 58 col0
----
NULL

query I rowsort
SELECT + 21 + + 11 AS col0
----
32

query I rowsort
SELECT DISTINCT ( - 62 )
----
-62

query I rowsort
SELECT ALL 21 + - NULLIF ( 95, - 91 + 69 ) + + 74 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-341
SELECT ALL 79 + - - CAST( NULL AS SIGNED ) + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL 79 + - - CAST ( NULL AS INTEGER ) + 9 AS col2
----
NULL

query II rowsort
SELECT ALL ( + - 98 ), - 77 AS col0
----
-98
-77

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

query II rowsort
SELECT 61 col1, + 2 + + 15 + 83
----
61
100

query I rowsort
SELECT ALL + 27 + - + 31 * + 48
----
-1461

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

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

query I rowsort
SELECT - COALESCE ( + - 85, - + 88 )
----
85

query I rowsort
SELECT + 49 + - + 23 - 66 + - 4
----
-44

query I rowsort
SELECT ALL 13 * 65
----
845

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT DISTINCT 6, + SUM( 70 ) AS col2
----
6
70

skipif mysql # not compatible
query II rowsort label-350
SELECT DISTINCT 6, + SUM ( 70 ) AS col2
----
6
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-351
SELECT - CAST( NULL AS SIGNED ), + COUNT( * ) * + - 15 * + CASE - COUNT( * ) WHEN - 2 + + 38 THEN NULL WHEN + + 69 THEN - 12 END * - AVG ( ALL - 28 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-351
SELECT - CAST ( NULL AS INTEGER ), + COUNT ( * ) * + - 15 * + CASE - COUNT ( * ) WHEN - 2 + + 38 THEN NULL WHEN + + 69 THEN - 12 END * - AVG ( ALL - 28 )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT - COALESCE ( + 41, + + 21 DIV - 65 )
----
-41

skipif mysql # not compatible
query I rowsort label-352
SELECT - COALESCE ( + 41, + + 21 / - 65 )
----
-41

query II rowsort
SELECT + 13 + - 84 AS col2, - 90 AS col0
----
-71
-90

query I rowsort
SELECT + 48 - + - ( + 49 ) col1
----
97

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

query I rowsort
SELECT + + 14 * 72
----
1008

query I rowsort
SELECT ALL + - 84 * 69
----
-5796

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT 23 DIV + - 74 + 40 + - 91 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-358
SELECT 23 / + - 74 + 40 + - 91 AS col0
----
-51

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-361
SELECT + + COUNT( * ) col1, 83 + 29 DIV + - 87
----
1
83

skipif mysql # not compatible
query II rowsort label-361
SELECT + + COUNT ( * ) col1, 83 + 29 / + - 87
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT ALL + CASE + 47 WHEN + CASE CASE + 70 WHEN - 67 + + 19 THEN + COUNT( * ) + COALESCE ( + + 82, 81 ) WHEN - 47 * + COUNT( * ) - - AVG ( DISTINCT 7 ) + 49 - 27 * - + 81 THEN 60 END WHEN + 11 THEN NULL ELSE + 57 END THEN - 98 * + CASE 73 WHEN + + 53 + + NULLIF ( + 83, + 12 - - MIN( ALL - 99 ) + + 85 ) THEN + + COUNT( * ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL + CASE + 47 WHEN + CASE CASE + 70 WHEN - 67 + + 19 THEN + COUNT ( * ) + COALESCE ( + + 82, 81 ) WHEN - 47 * + COUNT ( * ) - - AVG ( DISTINCT 7 ) + 49 - 27 * - + 81 THEN 60 END WHEN + 11 THEN NULL ELSE + 57 END THEN - 98 * + CASE 73 WHEN + + 53 + + NULLIF ( + 83, + 12 - - MIN ( ALL - 99 ) + + 85 ) THEN + + COUNT ( * ) END ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-363
SELECT - - 88 * + CAST( NULL AS DECIMAL ) + + + 22 * 82 * - 98 / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-363
SELECT - - 88 * + CAST ( NULL AS REAL ) + + + 22 * 82 * - 98 / 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL + MIN( DISTINCT 16 )
----
16

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL + MIN ( DISTINCT 16 )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-365
SELECT ALL + - COUNT( * ), + COUNT( * ) * - + NULLIF ( + - 64, + 16 ) * - - 65 AS col0
----
-1
4160

skipif mysql # not compatible
query II rowsort label-365
SELECT ALL + - COUNT ( * ), + COUNT ( * ) * - + NULLIF ( + - 64, + 16 ) * - - 65 AS col0
----
-1
4160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-366
SELECT ALL + NULLIF ( - - 75, + 95 + + - COUNT( * ) ) * - NULLIF ( - + 41, - 20 * CASE 5 WHEN - NULLIF ( - + 34, + 4 * + 97 - 21 / CAST( 2 AS SIGNED ) ) THEN NULL WHEN - 18 + 61 THEN - - CASE + 83 WHEN + - NULLIF ( COUNT( * ), - ( - NULLIF ( - - 19, - 67 ) ) ) * + - ( + SUM( DISTINCT 7 ) ) * 20 + + NULLIF ( - 49, - + 75 + + 6 ) + + - 65 / COUNT( * ) + - 49 THEN NULL WHEN 2 * 14 THEN 83 END END - 87 / 48 ) + + 92
----
3167

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL + NULLIF ( - - 75, + 95 + + - COUNT ( * ) ) * - NULLIF ( - + 41, - 20 * CASE 5 WHEN - NULLIF ( - + 34, + 4 * + 97 - 21 / CAST ( 2 AS INTEGER ) ) THEN NULL WHEN - 18 + 61 THEN - - CASE + 83 WHEN + - NULLIF ( COUNT ( * ), - ( - NULLIF ( - - 19, - 67 ) ) ) * + - ( + SUM ( DISTINCT 7 ) ) * 20 + + NULLIF ( - 49, - + 75 + + 6 ) + + - 65 / COUNT ( * ) + - 49 THEN NULL WHEN 2 * 14 THEN 83 END END - 87 / 48 ) + + 92
----
3167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-367
SELECT - - 38 DIV + COALESCE ( - SUM( 63 ), 48 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-367
SELECT - - 38 / + COALESCE ( - SUM ( 63 ), 48 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT COUNT( * ) * + 97 + + 10 col2
----
107

skipif mysql # not compatible
query I rowsort label-368
SELECT COUNT ( * ) * + 97 + + 10 col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT - NULLIF ( + + MIN( - - 43 ), - - 68 * - SUM( + + 85 ) + 14 * - NULLIF ( + 40, - 54 + + 1 ) ) * - 58 + + 5 AS col1
----
2499

skipif mysql # not compatible
query I rowsort label-369
SELECT - NULLIF ( + + MIN ( - - 43 ), - - 68 * - SUM ( + + 85 ) + 14 * - NULLIF ( + 40, - 54 + + 1 ) ) * - 58 + + 5 AS col1
----
2499

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

query I rowsort
SELECT - 9 - + 67
----
-76

query I rowsort
SELECT - ( + - 60 ) * + - 29
----
-1740

onlyif mysql # aggregate syntax: 
query II rowsort label-373
SELECT ALL COUNT( * ) * + 52 * + - 28 * - 92 * + - 30 + + 4 + 97, COALESCE ( - + 39, + - 2 + - 6 + - COUNT( * ) * - ( + - 31 ) ) AS col0
----
-4018459
-39

skipif mysql # not compatible
query II rowsort label-373
SELECT ALL COUNT ( * ) * + 52 * + - 28 * - 92 * + - 30 + + 4 + 97, COALESCE ( - + 39, + - 2 + - 6 + - COUNT ( * ) * - ( + - 31 ) ) AS col0
----
-4018459
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL + COUNT( * ) * + - 1 + 65 + - COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL + COUNT ( * ) * + - 1 + 65 + - COUNT ( * ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL 70 * - 25 + - - ( - 48 ) - - + COUNT( * ) AS col0
----
-1797

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL 70 * - 25 + - - ( - 48 ) - - + COUNT ( * ) AS col0
----
-1797

query I rowsort
SELECT DISTINCT 38 * + - 2 + - 88
----
-164

query I rowsort
SELECT DISTINCT 90 col0
----
90

query I rowsort
SELECT - 26 + + 26 + 40 * + 79 AS col0
----
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT - COUNT( * ) - NULLIF ( - 49, 48 - 74 ) + + 46
----
94

skipif mysql # not compatible
query I rowsort label-379
SELECT - COUNT ( * ) - NULLIF ( - 49, 48 - 74 ) + + 46
----
94

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

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

query I rowsort
SELECT 71 * 8 AS col0
----
568

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT COUNT( * ) + + + COUNT( * ) + - 1 * + 46 + - - 73
----
29

skipif mysql # not compatible
query I rowsort label-382
SELECT COUNT ( * ) + + + COUNT ( * ) + - 1 * + 46 + - - 73
----
29

query I rowsort
SELECT 90 + + ( + 84 )
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT COUNT( * ) + + + 18 * - - 61
----
1099

skipif mysql # not compatible
query I rowsort label-384
SELECT COUNT ( * ) + + + 18 * - - 61
----
1099

query I rowsort
SELECT DISTINCT 18 * - - 20
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-386
SELECT ALL - 79 DIV + + 3 * - + COALESCE ( + COUNT( * ), 77, + COUNT( * ) + - + 8 - COALESCE ( - 56, - 44 - CAST( NULL AS SIGNED ), - - CAST( NULL AS SIGNED ) ) ) col2
----
26

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL - 79 / + + 3 * - + COALESCE ( + COUNT ( * ), 77, + COUNT ( * ) + - + 8 - COALESCE ( - 56, - 44 - CAST ( NULL AS INTEGER ), - - CAST ( NULL AS INTEGER ) ) ) col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT 16 DIV - 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-387
SELECT 16 / - 49 AS col2
----
0

query I rowsort
SELECT 18 + 39 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-389
SELECT CAST( + 19 AS SIGNED ) * - 58
----
-1102

skipif mysql # not compatible
query I rowsort label-389
SELECT CAST ( + 19 AS INTEGER ) * - 58
----
-1102

query I rowsort
SELECT - ( 46 ) + + 54 AS col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-391
SELECT - 11 + + 6 DIV NULLIF ( - 28, - 1 * - 10 * - - 68 * + 45 * ( + NULLIF ( 51, - MIN( DISTINCT + 21 ) ) ) + - 76 ) * + 78
----
-11

skipif mysql # not compatible
query I rowsort label-391
SELECT - 11 + + 6 / NULLIF ( - 28, - 1 * - 10 * - - 68 * + 45 * ( + NULLIF ( 51, - MIN ( DISTINCT + 21 ) ) ) + - 76 ) * + 78
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-392
SELECT SUM( + 82 ) * + 6 * + ( 54 ) AS col1, + COUNT( * ) col1
----
26568
1

skipif mysql # not compatible
query II rowsort label-392
SELECT SUM ( + 82 ) * + 6 * + ( 54 ) AS col1, + COUNT ( * ) col1
----
26568
1

query I rowsort
SELECT 0 * 91
----
0

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

skipif mysql # not compatible
query I rowsort label-394
SELECT 87 + - COUNT ( * ) / COUNT ( * )
----
86

query I rowsort
SELECT + + 2 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-396
SELECT ALL - CAST( 93 AS SIGNED ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL - CAST ( 93 AS INTEGER ) AS col0
----
-93

query I rowsort
SELECT 79 * COALESCE ( + 69, + + 59 ) + ( - 98 ) AS col1
----
5353

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

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL - 36 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT - 53 + + - 68 + - ( + 94 ) * + COUNT( * ) + - 67 * - + 41 * + 99
----
271738

skipif mysql # not compatible
query I rowsort label-399
SELECT - 53 + + - 68 + - ( + 94 ) * + COUNT ( * ) + - 67 * - + 41 * + 99
----
271738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-400
SELECT + - COUNT( * ) DIV + 17 + - 54 + + 92
----
38

skipif mysql # not compatible
query I rowsort label-400
SELECT + - COUNT ( * ) / + 17 + - 54 + + 92
----
38

query I rowsort
SELECT ALL - 15 col0
----
-15

query I rowsort
SELECT 59 * + 69 + + 31
----
4102

query I rowsort
SELECT - 36 + + - 81 * - 48 AS col1
----
3852

query I rowsort
SELECT DISTINCT - 54 + - + 33 * - 55
----
1761

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT ALL - 95 + - + 52 + - 62 DIV - + 88
----
-147

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL - 95 + - + 52 + - 62 / - + 88
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-406
SELECT - CAST( + 70 AS SIGNED ) * - COALESCE ( + + COUNT( * ), + 54 ) + - - 30 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-406
SELECT - CAST ( + 70 AS INTEGER ) * - COALESCE ( + + COUNT ( * ), + 54 ) + - - 30 AS col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-407
SELECT + - SUM( - 96 ) AS col2, 33 * 14 + + - 52 AS col0
----
96
410

skipif mysql # not compatible
query II rowsort label-407
SELECT + - SUM ( - 96 ) AS col2, 33 * 14 + + - 52 AS col0
----
96
410

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-409
SELECT ALL 68 + - 19 * 84 AS col1, CAST( NULL AS DECIMAL )
----
-1528
NULL

skipif mysql # not compatible
query II rowsort label-409
SELECT ALL 68 + - 19 * 84 AS col1, CAST ( NULL AS REAL )
----
-1528
NULL

query I rowsort
SELECT 99 col0
----
99

query II rowsort
SELECT + 29 AS col2, - 92 AS col2
----
29
-92

query I rowsort
SELECT ALL 44 + - 79 + - 36
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-413
SELECT DISTINCT 3 + - CASE - 86 WHEN 60 * + 48 / + 78 THEN NULL WHEN + 7 / - CASE - 48 WHEN CASE 22 WHEN - - 11 * + ( - + 72 ) / + 23 + 46 + - - CAST( 75 AS SIGNED ) - - MAX( 36 ) + + - 33 THEN 55 * 16 END + - - 39 + 0 THEN - 83 * + 70 WHEN + NULLIF ( + - 30, - 36 ) THEN NULL WHEN - + COUNT( * ) THEN NULL WHEN SUM( 64 ) THEN - + COUNT( * ) * 29 * 2 END * + 68 + - CAST( 43 AS SIGNED ) + - 60 * 1 / - 84 THEN - 6 + MIN( ALL - 35 - 19 ) * + 11 ELSE NULL END * COALESCE ( 61, + 58 * CAST( NULL AS SIGNED ), + 74 * 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT 3 + - CASE - 86 WHEN 60 * + 48 / + 78 THEN NULL WHEN + 7 / - CASE - 48 WHEN CASE 22 WHEN - - 11 * + ( - + 72 ) / + 23 + 46 + - - CAST ( 75 AS INTEGER ) - - MAX ( 36 ) + + - 33 THEN 55 * 16 END + - - 39 + 0 THEN - 83 * + 70 WHEN + NULLIF ( + - 30, - 36 ) THEN NULL WHEN - + COUNT ( * ) THEN NULL WHEN SUM ( 64 ) THEN - + COUNT ( * ) * 29 * 2 END * + 68 + - CAST ( 43 AS INTEGER ) + - 60 * 1 / - 84 THEN - 6 + MIN ( ALL - 35 - 19 ) * + 11 ELSE NULL END * COALESCE ( 61, + 58 * CAST ( NULL AS INTEGER ), + 74 * 6 )
----
NULL

query I rowsort
SELECT ( 81 ) * + 40 AS col0
----
3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-415
SELECT 86 AS col0, + 4 + - - COUNT( * ) + - 76 * - + CAST( NULL AS SIGNED )
----
86
NULL

skipif mysql # not compatible
query II rowsort label-415
SELECT 86 AS col0, + 4 + - - COUNT ( * ) + - 76 * - + CAST ( NULL AS INTEGER )
----
86
NULL

query I rowsort
SELECT 0 + 25
----
25

query II rowsort
SELECT - 43 AS col1, 63 * - + ( 5 ) + 47
----
-43
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT COUNT( * ) + 87 * + MIN( ALL 79 )
----
6874

skipif mysql # not compatible
query I rowsort label-418
SELECT COUNT ( * ) + 87 * + MIN ( ALL 79 )
----
6874

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL + COUNT( * ) - + 13 * - 36 * + 52 * - - 31 * + 92 AS col2
----
69406273

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL + COUNT ( * ) - + 13 * - 36 * + 52 * - - 31 * + 92 AS col2
----
69406273

query I rowsort
SELECT 81 * + 1 col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-421
SELECT ALL 50, 95 - - 71 + - + 14 * - 47 + + COUNT( * ) AS col0
----
50
825

skipif mysql # not compatible
query II rowsort label-421
SELECT ALL 50, 95 - - 71 + - + 14 * - 47 + + COUNT ( * ) AS col0
----
50
825

query I rowsort
SELECT DISTINCT - 92 - CASE - 62 WHEN + 20 THEN NULL WHEN + 45 THEN - 4 * 97 ELSE - 4 END + 78 * 32 col2
----
2408

query II rowsort
SELECT ALL 54 AS col2, 65 AS col2
----
54
65

query I rowsort
SELECT 97 + + CASE - - 46 WHEN + 31 + + 89 THEN NULL WHEN - 48 - 90 THEN - + 14 WHEN - 36 * + 33 THEN 7 END
----
NULL

query I rowsort
SELECT 6 * - 70 AS col2
----
-420

query II rowsort
SELECT ALL 65 AS col1, - 52
----
65
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-427
SELECT - 66 AS col1, - MIN( DISTINCT - 27 )
----
-66
27

skipif mysql # not compatible
query II rowsort label-427
SELECT - 66 AS col1, - MIN ( DISTINCT - 27 )
----
-66
27

query I rowsort
SELECT 90 - 14 col1
----
76

query I rowsort
SELECT ALL - 74 * - 84 * - - 91
----
565656

query I rowsort
SELECT 96 * 32 AS col0
----
3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-431
SELECT - COALESCE ( 86, - 49 DIV + 88 + COUNT( * ) + + 56 * - - 86 + + COALESCE ( - + SUM( ALL - 15 ), + + 72 * - 73 ), + ( - + ( - 98 ) ) )
----
-86

skipif mysql # not compatible
query I rowsort label-431
SELECT - COALESCE ( 86, - 49 / + 88 + COUNT ( * ) + + 56 * - - 86 + + COALESCE ( - + SUM ( ALL - 15 ), + + 72 * - 73 ), + ( - + ( - 98 ) ) )
----
-86

query I rowsort
SELECT 22 + + 42
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-433
SELECT ALL - 81 AS col2, 31 * + 28 * + ( - ( - COUNT( * ) ) ) AS col2
----
-81
868

skipif mysql # not compatible
query II rowsort label-433
SELECT ALL - 81 AS col2, 31 * + 28 * + ( - ( - COUNT ( * ) ) ) AS col2
----
-81
868

query I rowsort
SELECT 56 * - 11 col1
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT ALL + 40 + - 42 + MAX( + 80 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL + 40 + - 42 + MAX ( + 80 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-436
SELECT ALL CASE + 30 WHEN + 10 * + CASE + 84 WHEN + 34 THEN NULL WHEN + - 84 * NULLIF ( COUNT( * ), + 83 ) THEN + - 87 END THEN - 36 * + 53 END, ( COUNT( * ) ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-436
SELECT ALL CASE + 30 WHEN + 10 * + CASE + 84 WHEN + 34 THEN NULL WHEN + - 84 * NULLIF ( COUNT ( * ), + 83 ) THEN + - 87 END THEN - 36 * + 53 END, ( COUNT ( * ) ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-437
SELECT - SUM( - 16 ) DIV 45 DIV + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-437
SELECT - SUM ( - 16 ) / 45 / + 98 AS col0
----
0

query I rowsort
SELECT ALL 24 + ( - 37 ) AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-439
SELECT DISTINCT - 49 DIV 10 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT - 49 / 10 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-440
SELECT ALL - + COUNT( * ) * 40 + + + CAST( + CASE - 93 WHEN 25 THEN 39 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL - + COUNT ( * ) * 40 + + + CAST ( + CASE - 93 WHEN 25 THEN 39 END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-441
SELECT + 29 * + - 43 * 93 + - + 63 * - 23 + + - MIN( + + 24 ) * - 59, + 52 col0
----
-113106
52

skipif mysql # not compatible
query II rowsort label-441
SELECT + 29 * + - 43 * 93 + - + 63 * - 23 + + - MIN ( + + 24 ) * - 59, + 52 col0
----
-113106
52

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT + 51 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-443
SELECT + 51 / 99
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-444
SELECT 71 DIV 57 * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-444
SELECT 71 / 57 * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT + - SUM( + 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-445
SELECT + - SUM ( + 13 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-446
SELECT ALL - 80 * - 78 * 72 + COUNT( * ) + + MAX( ALL 55 ) * - 56 * - 35 + 0 + - + 41 * - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL - 80 * - 78 * 72 + COUNT ( * ) + + MAX ( ALL 55 ) * - 56 * - 35 + 0 + - + 41 * - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-447
SELECT DISTINCT - NULLIF ( + - COUNT( * ), - + 97 ) * - + MIN( DISTINCT - 35 ) * - 46 + + 88 + + + CAST( NULL AS SIGNED ), + 1 * MAX( ALL + 26 ) col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-447
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), - + 97 ) * - + MIN ( DISTINCT - 35 ) * - 46 + + 88 + + + CAST ( NULL AS INTEGER ), + 1 * MAX ( ALL + 26 ) col0
----
NULL
26

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

query I rowsort
SELECT DISTINCT - - 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT SUM( ALL + 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-450
SELECT SUM ( ALL + 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT ALL 37 * - SUM( + + 73 ) * 67 - - 63 + MIN( ALL + 57 )
----
-180847

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL 37 * - SUM ( + + 73 ) * 67 - - 63 + MIN ( ALL + 57 )
----
-180847

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT SUM( DISTINCT - CASE 85 WHEN 89 THEN - ( - 43 ) + + 48 WHEN - 5 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-452
SELECT SUM ( DISTINCT - CASE 85 WHEN 89 THEN - ( - 43 ) + + 48 WHEN - 5 THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 17 AS col2
----
-17

query I rowsort
SELECT 77 * + 14 + 24 * - 22 AS col1
----
550

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT COUNT( ALL - 80 ) col0, - CASE + 38 WHEN + 59 THEN NULL ELSE - - 77 END
----
1
-77

skipif mysql # not compatible
query II rowsort label-455
SELECT COUNT ( ALL - 80 ) col0, - CASE + 38 WHEN + 59 THEN NULL ELSE - - 77 END
----
1
-77

query I rowsort
SELECT ALL 90 * + + 45 AS col1
----
4050

query I rowsort
SELECT - 2 * 13
----
-26

query I rowsort
SELECT + 49 + - 96 AS col0
----
-47

query II rowsort
SELECT ALL 55 * - - 76 AS col1, 32 AS col1
----
4180
32

query I rowsort
SELECT + 25 + - 48
----
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT - 19 - - - COUNT( * ) - COUNT( * ) * + - 42 * + 49 AS col0
----
2038

skipif mysql # not compatible
query I rowsort label-462
SELECT - 19 - - - COUNT ( * ) - COUNT ( * ) * + - 42 * + 49 AS col0
----
2038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT + ( + 76 ) DIV - CASE 26 WHEN + + 92 DIV 40 * - - 89 THEN + 38 DIV + COUNT( * ) + 56 WHEN - 48 THEN NULL ELSE ( - 28 ) END
----
2

skipif mysql # not compatible
query I rowsort label-463
SELECT + ( + 76 ) / - CASE 26 WHEN + + 92 / 40 * - - 89 THEN + 38 / + COUNT ( * ) + 56 WHEN - 48 THEN NULL ELSE ( - 28 ) END
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT DISTINCT NULLIF ( + 82, 95 ) DIV 54 + + + 30
----
31

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT NULLIF ( + 82, 95 ) / 54 + + + 30
----
31

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

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

query I rowsort
SELECT - + 77 + + 13
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-467
SELECT ( COALESCE ( 15, + ( CASE 31 WHEN - 19 THEN + - 13 WHEN - 96 - + + 23 THEN - 47 * 66 * + COUNT( * ) - - - 53 - + - 91 * - + 0 DIV + ( - 21 ) * + 1 ELSE + - 84 END ), + NULLIF ( - COUNT( * ), 69 + SUM( ALL + 5 ) ) + - 95 ) )
----
15

skipif mysql # not compatible
query I rowsort label-467
SELECT ( COALESCE ( 15, + ( CASE 31 WHEN - 19 THEN + - 13 WHEN - 96 - + + 23 THEN - 47 * 66 * + COUNT ( * ) - - - 53 - + - 91 * - + 0 / + ( - 21 ) * + 1 ELSE + - 84 END ), + NULLIF ( - COUNT ( * ), 69 + SUM ( ALL + 5 ) ) + - 95 ) )
----
15

query I rowsort
SELECT DISTINCT - 2 + + - 85 + + + 20 - - 80 AS col0
----
13

query I rowsort
SELECT ALL - - ( + ( + ( - 31 ) ) ) * NULLIF ( - 22, - + 91 ) AS col1
----
682

query I rowsort
SELECT - ( + 74 ) * - + 86 AS col0
----
6364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-471
SELECT ALL 25 + - + COALESCE ( - 31, - 83 - SUM( DISTINCT - ( - - 39 ) ) + - - CAST( + COUNT( * ) AS SIGNED ) ) + + - 38 * 19 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL 25 + - + COALESCE ( - 31, - 83 - SUM ( DISTINCT - ( - - 39 ) ) + - - CAST ( + COUNT ( * ) AS INTEGER ) ) + + - 38 * 19 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 29 + + 10 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT DISTINCT NULLIF ( - - 54, COALESCE ( + - COUNT( * ), 93 * + ( - 47 ) - - 44, 3 * + + 99 ) + + - 30 )
----
54

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT NULLIF ( - - 54, COALESCE ( + - COUNT ( * ), 93 * + ( - 47 ) - - 44, 3 * + + 99 ) + + - 30 )
----
54

query I rowsort
SELECT ALL + - 86 + COALESCE ( + 12, - 42 - + 81 )
----
-74

query I rowsort
SELECT ALL - - 23 + + 48 + 32
----
103

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

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

query I rowsort
SELECT ALL - 20 * - NULLIF ( - 47, - - 47 ) col2
----
-940

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT - + COUNT( * ) + + 38 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-479
SELECT - + COUNT ( * ) + + 38 AS col0
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT - MIN( DISTINCT - 87 ) + - - COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-481
SELECT - MIN ( DISTINCT - 87 ) + - - COUNT ( * ) AS col0
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT DISTINCT + - 64 * + MIN( DISTINCT - 79 ) col1
----
5056

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT + - 64 * + MIN ( DISTINCT - 79 ) col1
----
5056

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT + + 54 * + 4 * ( NULLIF ( 47, + 94 + - COUNT( * ) * + NULLIF ( - + 43, - 45 + - 37 ) + + + 40 ) ) + + - 21 + + 85
----
10216

skipif mysql # not compatible
query I rowsort label-484
SELECT + + 54 * + 4 * ( NULLIF ( 47, + 94 + - COUNT ( * ) * + NULLIF ( - + 43, - 45 + - 37 ) + + + 40 ) ) + + - 21 + + 85
----
10216

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL 52 * - 8 + 34 - + 35 + - ( COUNT( * ) ) * - + 7 * - 57 AS col2
----
-816

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL 52 * - 8 + 34 - + 35 + - ( COUNT ( * ) ) * - + 7 * - 57 AS col2
----
-816

onlyif mysql # DIV for integer division: 
query I rowsort label-486
SELECT - 35 DIV + 24 - + 8 + - 41 + - - 17 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-486
SELECT - 35 / + 24 - + 8 + - 41 + - - 17 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL - 32 * - - COUNT( * ) - 45 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL - 32 * - - COUNT ( * ) - 45 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-488
SELECT DISTINCT + 17 AS col1, - MIN( DISTINCT + NULLIF ( + 71, - ( + - NULLIF ( - - 98, + ( - 48 ) ) ) * - + 3 * + 7 ) ) * - 58 AS col1
----
17
4118

skipif mysql # not compatible
query II rowsort label-488
SELECT DISTINCT + 17 AS col1, - MIN ( DISTINCT + NULLIF ( + 71, - ( + - NULLIF ( - - 98, + ( - 48 ) ) ) * - + 3 * + 7 ) ) * - 58 AS col1
----
17
4118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-489
SELECT ALL + 82 DIV + + SUM( DISTINCT - - 19 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL + 82 / + + SUM ( DISTINCT - - 19 ) AS col0
----
4

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

query I rowsort
SELECT DISTINCT + 64 * - 55 AS col1
----
-3520

query I rowsort
SELECT ALL - 9 * 50 AS col2
----
-450

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

skipif mysql # not compatible
query I rowsort label-493
SELECT - 20 * - 41 * - ( + COUNT ( * ) ) AS col0
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT - ( - 90 ) * - ( + 40 ) + - - 44 + 8 * - + COUNT( * ) * - ( - 65 )
----
-4076

skipif mysql # not compatible
query I rowsort label-494
SELECT - ( - 90 ) * - ( + 40 ) + - - 44 + 8 * - + COUNT ( * ) * - ( - 65 )
----
-4076

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT + 20 * 65 + 92 * + - COUNT( * ) AS col0
----
1208

skipif mysql # not compatible
query I rowsort label-495
SELECT + 20 * 65 + 92 * + - COUNT ( * ) AS col0
----
1208

onlyif mysql # aggregate syntax: 
query II rowsort label-496
SELECT ALL - 19 * - ( + 59 ), + SUM( ALL + - 24 ) + 55 * 28 * + 72 * - - 79 AS col1
----
1121
8759496

skipif mysql # not compatible
query II rowsort label-496
SELECT ALL - 19 * - ( + 59 ), + SUM ( ALL + - 24 ) + 55 * 28 * + 72 * - - 79 AS col1
----
1121
8759496

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT - MIN( 28 ) + 16
----
-12

skipif mysql # not compatible
query I rowsort label-497
SELECT - MIN ( 28 ) + 16
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-498
SELECT ALL - 10 * CAST( NULL AS SIGNED ) * + MIN( 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL - 10 * CAST ( NULL AS INTEGER ) * + MIN ( 95 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-499
SELECT NULLIF ( COALESCE ( + - 22, COALESCE ( + - CASE - - 67 WHEN + 70 THEN + - COUNT( * ) + + CASE - 21 WHEN 74 - 88 THEN - CASE + - MIN( DISTINCT - 25 ) WHEN + + 82 THEN - 48 ELSE NULL END ELSE + + COUNT( * ) * + - COUNT( * ) - + 31 END WHEN 1 + 49 * 10 THEN - - 70 END, COUNT( ALL 79 ) ), - 62 ), + + 16 ), - 87 AS col0
----
-22
-87

skipif mysql # not compatible
query II rowsort label-499
SELECT NULLIF ( COALESCE ( + - 22, COALESCE ( + - CASE - - 67 WHEN + 70 THEN + - COUNT ( * ) + + CASE - 21 WHEN 74 - 88 THEN - CASE + - MIN ( DISTINCT - 25 ) WHEN + + 82 THEN - 48 ELSE NULL END ELSE + + COUNT ( * ) * + - COUNT ( * ) - + 31 END WHEN 1 + 49 * 10 THEN - - 70 END, COUNT ( ALL 79 ) ), - 62 ), + + 16 ), - 87 AS col0
----
-22
-87

query I rowsort
SELECT NULLIF ( + + 33, - + 7 ) AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-501
SELECT ALL NULLIF ( + + COALESCE ( - - COUNT( * ), + + 38, 91 ), 70 + 17 * + + 29 * - + 69 ) DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL NULLIF ( + + COALESCE ( - - COUNT ( * ), + + 38, 91 ), 70 + 17 * + + 29 * - + 69 ) / - 30
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-502
SELECT + 13 DIV - - NULLIF ( 55, + + COUNT( * ) + - 30 DIV 60 * - COUNT( * ) ) * - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-502
SELECT + 13 / - - NULLIF ( 55, + + COUNT ( * ) + - 30 / 60 * - COUNT ( * ) ) * - 27 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-503
SELECT DISTINCT - + 55 * - - 51 + + + CASE 26 WHEN - + CASE + COUNT( * ) WHEN - NULLIF ( + 70, 80 ) * + 8 + + 88 THEN NULL ELSE - + 88 END * 83 THEN NULL WHEN - 92 THEN + + 29 + - CASE + - COUNT( * ) WHEN + - 89 * - 49 THEN + CASE - + 43 WHEN CAST( NULL AS SIGNED ) THEN ( + 0 ) + - + COALESCE ( COALESCE ( 66, - + 76 * + ( - + 67 ) * 63 * - + 55, + MAX( - + 83 ), - - 45 / - 6 ), 68 ) WHEN - 38 THEN NULL ELSE NULL END WHEN - - 90 THEN NULL END WHEN - 69 THEN 55 END - 26 * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT - + 55 * - - 51 + + + CASE 26 WHEN - + CASE + COUNT ( * ) WHEN - NULLIF ( + 70, 80 ) * + 8 + + 88 THEN NULL ELSE - + 88 END * 83 THEN NULL WHEN - 92 THEN + + 29 + - CASE + - COUNT ( * ) WHEN + - 89 * - 49 THEN + CASE - + 43 WHEN CAST ( NULL AS INTEGER ) THEN ( + 0 ) + - + COALESCE ( COALESCE ( 66, - + 76 * + ( - + 67 ) * 63 * - + 55, + MAX ( - + 83 ), - - 45 / - 6 ), 68 ) WHEN - 38 THEN NULL ELSE NULL END WHEN - - 90 THEN NULL END WHEN - 69 THEN 55 END - 26 * 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-504
SELECT ALL 0 DIV - ( - COUNT( * ) ) * + - COUNT( * ) col0
----
0

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

query I rowsort
SELECT DISTINCT + 93 + 2 AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-506
SELECT DISTINCT 18 * - - CAST( + - 7 AS SIGNED ) AS col2, - 26 AS col1
----
-126
-26

skipif mysql # not compatible
query II rowsort label-506
SELECT DISTINCT 18 * - - CAST ( + - 7 AS INTEGER ) AS col2, - 26 AS col1
----
-126
-26

query II rowsort
SELECT ALL - 24 + - 78 * 97 col0, 43 AS col1
----
-7590
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-508
SELECT ALL + CAST( + + 91 AS SIGNED ) + 51 - 48 + + 93 AS col0
----
187

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL + CAST ( + + 91 AS INTEGER ) + 51 - 48 + + 93 AS col0
----
187

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT + + 43 DIV - + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-509
SELECT + + 43 / - + 68 AS col2
----
0

query I rowsort
SELECT + + 85 + + 21 * + 89 AS col1
----
1954

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

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

query I rowsort
SELECT - 89 + 29 * + - 53 * ( - - 7 ) * - 13 * 74
----
10350069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-513
SELECT ALL + CASE + + 15 WHEN - - NULLIF ( + 22, + + AVG ( + ( - 22 ) ) + + COUNT( * ) * - 12 * + COUNT( * ) + 14 * + + NULLIF ( + 32, + 98 ) - ( - 60 ) + - CASE 52 WHEN - 51 THEN - 14 END * - 19 ) * + + 24 + + 48 THEN NULL ELSE + AVG ( DISTINCT + - 34 ) END + 61 - + 63 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL + CASE + + 15 WHEN - - NULLIF ( + 22, + + AVG ( + ( - 22 ) ) + + COUNT ( * ) * - 12 * + COUNT ( * ) + 14 * + + NULLIF ( + 32, + 98 ) - ( - 60 ) + - CASE 52 WHEN - 51 THEN - 14 END * - 19 ) * + + 24 + + 48 THEN NULL ELSE + AVG ( DISTINCT + - 34 ) END + 61 - + 63 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + + 20, 78 ) col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT - + MIN( + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-515
SELECT - + MIN ( + 78 )
----
-78

query I rowsort
SELECT ALL + 97 - 56
----
41

query I rowsort
SELECT DISTINCT + 75 * 12
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT ALL - 17 - + MAX( + 54 ) + - - 13 * + ( - - 44 ) - + - 15
----
516

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - 17 - + MAX ( + 54 ) + - - 13 * + ( - - 44 ) - + - 15
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT 11 * - - 91 * - COUNT( * ) AS col1
----
-1001

skipif mysql # not compatible
query I rowsort label-519
SELECT 11 * - - 91 * - COUNT ( * ) AS col1
----
-1001

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

query I rowsort
SELECT ALL - + 66 AS col0
----
-66

query I rowsort
SELECT DISTINCT + ( - 71 ) * + ( + 50 ) AS col0
----
-3550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT ALL + 77 * - 98 DIV - COUNT( 43 )
----
7546

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + 77 * - 98 / - COUNT ( 43 )
----
7546

query I rowsort
SELECT 71 - + ( - COALESCE ( + - 44, 8 * + 20 ) ) col0
----
27

query I rowsort
SELECT DISTINCT - NULLIF ( + 78, + 80 - + 13 * 70 * - - 71 ) AS col1
----
-78

query II rowsort
SELECT 10, + ( 98 ) AS col2
----
10
98

query I rowsort
SELECT 84 * - 51 * 66
----
-282744

query I rowsort
SELECT ALL - ( - 47 ) col0
----
47

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

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

query I rowsort
SELECT 19 * 55 AS col0
----
1045

query I rowsort
SELECT 51 * + 57 + 85 AS col0
----
2992

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-534
SELECT 99 + + - 78 DIV - 48 col0
----
100

skipif mysql # not compatible
query I rowsort label-534
SELECT 99 + + - 78 / - 48 col0
----
100

query I rowsort
SELECT ALL - 15 + 61 AS col1
----
46

query I rowsort
SELECT 9 * - 54 AS col0
----
-486

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

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

query I rowsort
SELECT 15 + 59
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT ALL 54 + + ( + 66 ) * - - CASE + + COUNT( * ) WHEN - + COALESCE ( + 53, + 42 ) * 28 + - 81 THEN NULL ELSE 74 END * + COUNT( * ) + - + 65 AS col2
----
4873

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL 54 + + ( + 66 ) * - - CASE + + COUNT ( * ) WHEN - + COALESCE ( + 53, + 42 ) * 28 + - 81 THEN NULL ELSE 74 END * + COUNT ( * ) + - + 65 AS col2
----
4873

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT 52 * + 3 + + 9 * - SUM( 56 ) AS col2
----
-348

skipif mysql # not compatible
query I rowsort label-540
SELECT 52 * + 3 + + 9 * - SUM ( 56 ) AS col2
----
-348

onlyif mysql # DIV for integer division: 
query I rowsort label-541
SELECT DISTINCT + 61 * 18 DIV + 72
----
15

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT + 61 * 18 / + 72
----
15

query I rowsort
SELECT + 28 + + 89 * + 74 * - - 57
----
375430

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-544
SELECT - + CASE + 76 WHEN - ( 91 ) * + + MAX( ALL 48 ) + - - 32 + + - ( + 91 ) THEN NULL WHEN 69 + CASE 47 WHEN 0 / + - CAST( NULL AS SIGNED ) * + 16 + - - 85 * - 84 * + + NULLIF ( + - 98, + 27 ) * - 80 + - + 77 * + + 70 - 6 * - 95 THEN + + CAST( + + 53 AS SIGNED ) * + 66 WHEN COUNT( - 55 ) + + 48 THEN - 60 ELSE NULL END THEN 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-544
SELECT - + CASE + 76 WHEN - ( 91 ) * + + MAX ( ALL 48 ) + - - 32 + + - ( + 91 ) THEN NULL WHEN 69 + CASE 47 WHEN 0 / + - CAST ( NULL AS INTEGER ) * + 16 + - - 85 * - 84 * + + NULLIF ( + - 98, + 27 ) * - 80 + - + 77 * + + 70 - 6 * - 95 THEN + + CAST ( + + 53 AS INTEGER ) * + 66 WHEN COUNT ( - 55 ) + + 48 THEN - 60 ELSE NULL END THEN 11 END
----
NULL

query I rowsort
SELECT ALL + + 14 * - 35
----
-490

query II rowsort
SELECT - 25 col0, - 70 AS col2
----
-25
-70

query II rowsort
SELECT ALL 64 AS col1, 96
----
64
96

query II rowsort
SELECT - 86 col0, - 92 * + 25
----
-86
-2300

onlyif mysql # DIV for integer division: 
query I rowsort label-549
SELECT DISTINCT - 70 DIV + + 11 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT - 70 / + + 11 AS col2
----
-6

query I rowsort
SELECT ALL + 37 * 33 AS col2
----
1221

onlyif mysql # aggregate syntax: 
query II rowsort label-551
SELECT DISTINCT 15, - MAX( DISTINCT + 96 ) + + - 15 AS col0
----
15
-111

skipif mysql # not compatible
query II rowsort label-551
SELECT DISTINCT 15, - MAX ( DISTINCT + 96 ) + + - 15 AS col0
----
15
-111

query I rowsort
SELECT + 44 + 24 + 11 + ( - + 90 ) * - 6
----
619

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-553
SELECT ALL + 15, + 19 / - - CAST( NULL AS DECIMAL ) - 91 + - 42 * - AVG ( DISTINCT 61 ) AS col2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-553
SELECT ALL + 15, + 19 / - - CAST ( NULL AS REAL ) - 91 + - 42 * - AVG ( DISTINCT 61 ) AS col2
----
15
NULL

query I rowsort
SELECT 48 * + 85
----
4080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-555
SELECT - ( + - 11 ) + 77 + - 89 DIV - + 94 * 88 AS col2, NULLIF ( + 47, + ( - + 68 ) + + 73 - + 26 - + + CASE - COUNT( * ) WHEN 43 THEN CASE COUNT( * ) WHEN 12 * + - 62 + - - 76 THEN NULL WHEN - 17 * COUNT( * ) * - + 91 THEN - 87 ELSE NULL END END + + - ( ( - MAX( DISTINCT + 45 ) ) ) )
----
88
47

skipif mysql # not compatible
query II rowsort label-555
SELECT - ( + - 11 ) + 77 + - 89 / - + 94 * 88 AS col2, NULLIF ( + 47, + ( - + 68 ) + + 73 - + 26 - + + CASE - COUNT ( * ) WHEN 43 THEN CASE COUNT ( * ) WHEN 12 * + - 62 + - - 76 THEN NULL WHEN - 17 * COUNT ( * ) * - + 91 THEN - 87 ELSE NULL END END + + - ( ( - MAX ( DISTINCT + 45 ) ) ) )
----
88
47

query I rowsort
SELECT - 94 + 5
----
-89

query I rowsort
SELECT 28 * + 54
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT CASE - 43 WHEN + 83 * + 10 THEN NULL WHEN + 97 THEN + 5 ELSE NULL END * + - 57 + + MAX( - 84 ) - + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-558
SELECT CASE - 43 WHEN + 83 * + 10 THEN NULL WHEN + 97 THEN + 5 ELSE NULL END * + - 57 + + MAX ( - 84 ) - + 63 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-559
SELECT ( + 97 ) + - 6 * 84 + + + SUM( 44 ) * + 85 + - + COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
3333

skipif mysql # not compatible
query I rowsort label-559
SELECT ( + 97 ) + - 6 * 84 + + + SUM ( 44 ) * + 85 + - + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
3333

onlyif mysql # DIV for integer division: 
query II rowsort label-560
SELECT 84 DIV + + 79, 5 AS col1
----
1
5

skipif mysql # not compatible
query II rowsort label-560
SELECT 84 / + + 79, 5 AS col1
----
1
5

query I rowsort
SELECT - 87 * - 7 * 15 + - 95
----
9040

query I rowsort
SELECT ALL + NULLIF ( + 79, - 55 ) * - - 57
----
4503

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT ALL 32 + + + 81 AS col2, COUNT( * ) col0
----
113
1

skipif mysql # not compatible
query II rowsort label-563
SELECT ALL 32 + + + 81 AS col2, COUNT ( * ) col0
----
113
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-564
SELECT DISTINCT CASE + NULLIF ( - 10, + 32 * + 74 + - CASE 44 WHEN + 69 / + - 85 + - 11 + - 20 + + - COUNT( * ) * 42 THEN NULL WHEN + + 98 THEN CASE - CASE - MIN( + + 7 ) WHEN - NULLIF ( + - 85, + 34 ) * + 79 THEN NULL ELSE 47 - + 2 / + 57 END WHEN + COUNT( * ) * AVG ( DISTINCT + + CAST( - 68 AS SIGNED ) ) * + ( + 65 ) * + - 88 + - 1 THEN + 59 END WHEN - 5 THEN 31 * + CAST( NULL AS SIGNED ) WHEN - 65 + - 22 THEN - 56 ELSE 82 END / 79 / NULLIF ( + 52, + 58 / - 39 + COUNT( * ) * 17 ) ) WHEN + COUNT( + 5 ) THEN NULL WHEN 74 THEN 12 + + 1 WHEN - ( + CASE CAST( NULL AS SIGNED ) WHEN 90 + - 74 THEN + COUNT( * ) * CAST( - 4 * 39 AS SIGNED ) WHEN 51 * CAST( 48 * + 85 AS SIGNED ) THEN - 32 * + 37 ELSE NULL END ) THEN CAST( NULL AS SIGNED ) + + 7 ELSE NULL END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT CASE + NULLIF ( - 10, + 32 * + 74 + - CASE 44 WHEN + 69 / + - 85 + - 11 + - 20 + + - COUNT ( * ) * 42 THEN NULL WHEN + + 98 THEN CASE - CASE - MIN ( + + 7 ) WHEN - NULLIF ( + - 85, + 34 ) * + 79 THEN NULL ELSE 47 - + 2 / + 57 END WHEN + COUNT ( * ) * AVG ( DISTINCT + + CAST ( - 68 AS INTEGER ) ) * + ( + 65 ) * + - 88 + - 1 THEN + 59 END WHEN - 5 THEN 31 * + CAST ( NULL AS INTEGER ) WHEN - 65 + - 22 THEN - 56 ELSE 82 END / 79 / NULLIF ( + 52, + 58 / - 39 + COUNT ( * ) * 17 ) ) WHEN + COUNT ( + 5 ) THEN NULL WHEN 74 THEN 12 + + 1 WHEN - ( + CASE CAST ( NULL AS INTEGER ) WHEN 90 + - 74 THEN + COUNT ( * ) * CAST ( - 4 * 39 AS INTEGER ) WHEN 51 * CAST ( 48 * + 85 AS INTEGER ) THEN - 32 * + 37 ELSE NULL END ) THEN CAST ( NULL AS INTEGER ) + + 7 ELSE NULL END * 82
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-565
SELECT CAST( 17 AS SIGNED ) * + 14 col1
----
238

skipif mysql # not compatible
query I rowsort label-565
SELECT CAST ( 17 AS INTEGER ) * + 14 col1
----
238

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

skipif mysql # not compatible
query I rowsort label-566
SELECT 25 + - ( + COUNT ( * ) ) AS col2
----
24

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

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

query I rowsort
SELECT ALL - 64 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT COUNT( * ) * - ( 10 ) + + 39 - - + 79 * 50 + ( + NULLIF ( - - 83, - 2 * + COUNT( * ) ) ) AS col2
----
4062

skipif mysql # not compatible
query I rowsort label-569
SELECT COUNT ( * ) * - ( 10 ) + + 39 - - + 79 * 50 + ( + NULLIF ( - - 83, - 2 * + COUNT ( * ) ) ) AS col2
----
4062

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-570
SELECT DISTINCT - NULLIF ( NULLIF ( + 27, + 33 + CAST( NULL AS SIGNED ) ), - 62 ) * 21 AS col2, + 52
----
-567
52

skipif mysql # not compatible
query II rowsort label-570
SELECT DISTINCT - NULLIF ( NULLIF ( + 27, + 33 + CAST ( NULL AS INTEGER ) ), - 62 ) * 21 AS col2, + 52
----
-567
52

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT DISTINCT + 74 + + MAX( DISTINCT + 37 ) + - + COUNT( * ) * 76 - - 35 - - COUNT( * ) * ( 34 ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT + 74 + + MAX ( DISTINCT + 37 ) + - + COUNT ( * ) * 76 - - 35 - - COUNT ( * ) * ( 34 ) AS col0
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-572
SELECT ALL - ( + COUNT( * ) ) + - 25 + + ( 34 ) * - 98 + 17 * + 2 * + 21 DIV COUNT( * )
----
-2644

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL - ( + COUNT ( * ) ) + - 25 + + ( 34 ) * - 98 + 17 * + 2 * + 21 / COUNT ( * )
----
-2644

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ALL 89 * COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL 89 * COUNT ( * )
----
89

query I rowsort
SELECT DISTINCT - 2 + + 54 AS col2
----
52

query I rowsort
SELECT ALL - 84 + + 42 - - + 15
----
-27

query II rowsort
SELECT DISTINCT - ( + - 24 ) AS col2, 53
----
24
53

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

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT DISTINCT - + 50 + COUNT( * ) * + 71 * 9
----
589

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT - + 50 + COUNT ( * ) * + 71 * 9
----
589

query II rowsort
SELECT 15 + 25 AS col0, + 57 AS col2
----
40
57

onlyif mysql # aggregate syntax: 
query II rowsort label-580
SELECT ALL - 32 * 44 AS col0, 17 * + - ( + COUNT( * ) ) * - ( ( + + 2 ) ) + + 47
----
-1408
81

skipif mysql # not compatible
query II rowsort label-580
SELECT ALL - 32 * 44 AS col0, 17 * + - ( + COUNT ( * ) ) * - ( ( + + 2 ) ) + + 47
----
-1408
81

query I rowsort
SELECT 2 * - - 21 - + - 33
----
75

query I rowsort
SELECT - + NULLIF ( + 33, - 18 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-583
SELECT ALL + 41 * + + NULLIF ( + 37, + COALESCE ( 75, - CAST( NULL AS DECIMAL ) / 21 ) ) * 32 * - 17 * COUNT( - COALESCE ( + 60, + 95 ) ) AS col1
----
-825248

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL + 41 * + + NULLIF ( + 37, + COALESCE ( 75, - CAST ( NULL AS REAL ) / 21 ) ) * 32 * - 17 * COUNT ( - COALESCE ( + 60, + 95 ) ) AS col1
----
-825248

query I rowsort
SELECT ALL - 83 - 1 AS col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-585
SELECT 94 DIV 27 DIV + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-585
SELECT 94 / 27 / + + COUNT ( * )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT ALL - AVG ( - - 86 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - AVG ( - - 86 ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT - 91 * + ( - COALESCE ( - 5, - + 16 * + 70 + COUNT( * ) ) ) + + + 41
----
-414

skipif mysql # not compatible
query I rowsort label-587
SELECT - 91 * + ( - COALESCE ( - 5, - + 16 * + 70 + COUNT ( * ) ) ) + + + 41
----
-414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-588
SELECT - CASE + + CASE - 33 WHEN + + CAST( - + MAX( ALL + + 12 ) AS SIGNED ) THEN 13 / + ( + + 15 ) END WHEN + 76 THEN 43 ELSE + - 22 END AS col0, CAST( NULL AS SIGNED ) / + ( 71 ) col2, + 39
----
22
NULL
39

skipif mysql # not compatible
query III rowsort label-588
SELECT - CASE + + CASE - 33 WHEN + + CAST ( - + MAX ( ALL + + 12 ) AS INTEGER ) THEN 13 / + ( + + 15 ) END WHEN + 76 THEN 43 ELSE + - 22 END AS col0, CAST ( NULL AS INTEGER ) / + ( 71 ) col2, + 39
----
22
NULL
39

query I rowsort
SELECT ALL + 80 * - + 25 + + + 72
----
-1928

query I rowsort
SELECT - 95 - 86 + + 72 * 92 * 2 AS col2
----
13067

query I rowsort
SELECT + 64 * 3
----
192

query I rowsort
SELECT + - ( 15 ) + + + 1
----
-14

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

onlyif mysql # aggregate syntax: 
query II rowsort label-594
SELECT ALL - MIN( ALL 88 ) AS col2, - 89
----
-88
-89

skipif mysql # not compatible
query II rowsort label-594
SELECT ALL - MIN ( ALL 88 ) AS col2, - 89
----
-88
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT - CASE - ( - - 26 ) WHEN 94 * + 76 * - 13 * - 56 + - NULLIF ( + 49, + 45 * + MIN( + 11 ) + + COUNT( * ) * + COUNT( * ) ) - COUNT( * ) + 32 THEN 44 * ( SUM( + 77 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT - CASE - ( - - 26 ) WHEN 94 * + 76 * - 13 * - 56 + - NULLIF ( + 49, + 45 * + MIN ( + 11 ) + + COUNT ( * ) * + COUNT ( * ) ) - COUNT ( * ) + 32 THEN 44 * ( SUM ( + 77 ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + - COUNT( * ) + NULLIF ( + 96, - + 10 )
----
95

skipif mysql # not compatible
query I rowsort label-596
SELECT + - COUNT ( * ) + NULLIF ( + 96, - + 10 )
----
95

query I rowsort
SELECT - - 76 * NULLIF ( 86, - 58 )
----
6536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-598
SELECT + + 70 * - 27 + + CAST( NULL AS SIGNED ) * 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT + + 70 * - 27 + + CAST ( NULL AS INTEGER ) * 91 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-599
SELECT ALL + 65 * 67 col2, - ( 38 ) * COUNT( * ) * 11 - + 28
----
4355
-446

skipif mysql # not compatible
query II rowsort label-599
SELECT ALL + 65 * 67 col2, - ( 38 ) * COUNT ( * ) * 11 - + 28
----
4355
-446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-600
SELECT ALL + COALESCE ( - 46, + 74, - - COUNT( * ) + + 81 ) col1, 50 + CAST( 61 AS SIGNED )
----
-46
111

skipif mysql # not compatible
query II rowsort label-600
SELECT ALL + COALESCE ( - 46, + 74, - - COUNT ( * ) + + 81 ) col1, 50 + CAST ( 61 AS INTEGER )
----
-46
111

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

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT ALL CASE - - 44 WHEN MAX( ALL - 40 ) THEN 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL CASE - - 44 WHEN MAX ( ALL - 40 ) THEN 16 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT - COUNT( DISTINCT - 2 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-603
SELECT - COUNT ( DISTINCT - 2 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT ALL - 60 DIV + - 6 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL - 60 / + - 6 AS col0
----
10

query I rowsort
SELECT ALL 44 * 27 AS col1
----
1188

query I rowsort
SELECT + 50 * - 64
----
-3200

query I rowsort
SELECT ALL - 51 + 8 col0
----
-43

query I rowsort
SELECT DISTINCT 79 + + 10
----
89

query II rowsort
SELECT - 81 AS col1, + 70
----
-81
70

query I rowsort
SELECT - 97 + - 12 col0
----
-109

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

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

query I rowsort
SELECT + 20 * + ( - + ( + 20 ) )
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-613
SELECT ALL - 18 * - 3 + + - ( + 45 ) + - + ( - 16 ) / - 78 / - COUNT( * ) + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL - 18 * - 3 + + - ( + 45 ) + - + ( - 16 ) / - 78 / - COUNT ( * ) + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT + 8 - - - 38 col0
----
-30

query I rowsort
SELECT NULLIF ( - - 78, + 79 ) AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-617
SELECT + 84 * - - 13 * + ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT + 84 * - - 13 * + ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 60 * - - 84 col1
----
5040

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT CASE - - COUNT( * ) WHEN + 74 THEN + 16 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT CASE - - COUNT ( * ) WHEN + 74 THEN + 16 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 42 * - 55 * 26 + - 79
----
59981

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT 89 * - COUNT( * ) + + 97 * + - 70 + 68
----
-6811

skipif mysql # not compatible
query I rowsort label-622
SELECT 89 * - COUNT ( * ) + + 97 * + - 70 + 68
----
-6811

query I rowsort
SELECT - 30 - - 80
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL - MAX( + 64 ) * - + 33 * COUNT( * ) - + 94
----
2018

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL - MAX ( + 64 ) * - + 33 * COUNT ( * ) - + 94
----
2018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT DISTINCT COUNT( * ) * CAST( + 19 AS SIGNED ) * - 59 + - 65 AS col1
----
-1186

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT COUNT ( * ) * CAST ( + 19 AS INTEGER ) * - 59 + - 65 AS col1
----
-1186

query I rowsort
SELECT + - ( + - 4 ) + 60
----
64

query I rowsort
SELECT DISTINCT + - 25 AS col2
----
-25

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-629
SELECT + + ( - 33 ) + + CAST( - 17 AS SIGNED ) * + + 15 * + 60
----
-15333

skipif mysql # not compatible
query I rowsort label-629
SELECT + + ( - 33 ) + + CAST ( - 17 AS INTEGER ) * + + 15 * + 60
----
-15333

query I rowsort
SELECT DISTINCT - 43 * 34 * - - 80 AS col0
----
-116960

query I rowsort
SELECT 32 * - 94 * + NULLIF ( + 98, - + 61 ) + - + 23 AS col1
----
-294807

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT ALL - + 80 DIV + + 35
----
-2

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL - + 80 / + + 35
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-635
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), - 91 - - COUNT( * ) ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-635
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), - 91 - - COUNT ( * ) ) AS col1
----
90

query II rowsort
SELECT DISTINCT 67 AS col2, 12 + 7 + + 32 * + + 40 AS col0
----
67
1299

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT - 85 DIV + 80 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-638
SELECT - 85 / + 80 AS col0
----
-1

query I rowsort
SELECT - - 30 + - 11 col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-640
SELECT DISTINCT + - 38 + - COUNT( * ) DIV - 82 AS col0, CASE + MIN( DISTINCT - 97 ) WHEN + MIN( ALL - 17 ) THEN 84 WHEN 28 THEN NULL ELSE NULL END
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-640
SELECT DISTINCT + - 38 + - COUNT ( * ) / - 82 AS col0, CASE + MIN ( DISTINCT - 97 ) WHEN + MIN ( ALL - 17 ) THEN 84 WHEN 28 THEN NULL ELSE NULL END
----
-38
NULL

query I rowsort
SELECT - 42 + + 25
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-642
SELECT ALL CAST( + + 98 AS SIGNED ) AS col0, 90 AS col0
----
98
90

skipif mysql # not compatible
query II rowsort label-642
SELECT ALL CAST ( + + 98 AS INTEGER ) AS col0, 90 AS col0
----
98
90

query I rowsort
SELECT DISTINCT 3 + + + 91 * 42
----
3825

query I rowsort
SELECT ALL - 64 + - 26
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT - 38 + - SUM( + ( + ( 50 ) ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-645
SELECT - 38 + - SUM ( + ( + ( 50 ) ) ) AS col0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT - 44 - - + 19 DIV + 75
----
-44

skipif mysql # not compatible
query I rowsort label-646
SELECT - 44 - - + 19 / + 75
----
-44

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-648
SELECT ALL CAST( - 83 AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL CAST ( - 83 AS INTEGER ) AS col2
----
-83

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

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

query I rowsort
SELECT + 79 + - + 29 * + COALESCE ( - 12, 72 ) AS col1
----
427

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

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

query I rowsort
SELECT ALL - 20 + + 2 + ( - - 8 ) - 85 AS col1
----
-95

query I rowsort
SELECT - 8 + - 24 + + 85
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-654
SELECT DISTINCT + CAST( - 82 AS SIGNED ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT + CAST ( - 82 AS INTEGER ) AS col2
----
-82

query I rowsort
SELECT DISTINCT 89 * + + 24 AS col2
----
2136

onlyif mysql # DIV for integer division: 
query I rowsort label-656
SELECT DISTINCT - 14 DIV + + ( 5 ) - + 13 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT - 14 / + + ( 5 ) - + 13 AS col0
----
-15

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-659
SELECT + 83 DIV - - MAX( - ( + 92 ) ) + + + CASE - 61 WHEN 70 THEN NULL ELSE - 66 END
----
-66

skipif mysql # not compatible
query I rowsort label-659
SELECT + 83 / - - MAX ( - ( + 92 ) ) + + + CASE - 61 WHEN 70 THEN NULL ELSE - 66 END
----
-66

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-661
SELECT + CAST( + + 2 AS SIGNED ) * 96 * + - COUNT( + 73 ) + - COUNT( * ) + + + 2 - + - COALESCE ( - ( - 16 ), 5 ) DIV + 54 + - - 8 - 22 + 83
----
-122

skipif mysql # not compatible
query I rowsort label-661
SELECT + CAST ( + + 2 AS INTEGER ) * 96 * + - COUNT ( + 73 ) + - COUNT ( * ) + + + 2 - + - COALESCE ( - ( - 16 ), 5 ) / + 54 + - - 8 - 22 + 83
----
-122

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-662
SELECT + CAST( + - 27 AS SIGNED ) DIV + 49 col2
----
0

skipif mysql # not compatible
query I rowsort label-662
SELECT + CAST ( + - 27 AS INTEGER ) / + 49 col2
----
0

query I rowsort
SELECT ALL + + 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT + ( - - SUM( - 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-664
SELECT + ( - - SUM ( - 1 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT DISTINCT - SUM( - + 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT - SUM ( - + 43 ) AS col1
----
43

query I rowsort
SELECT ( - 6 ) * + + 39
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT + + MAX( + 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-667
SELECT + + MAX ( + 53 ) AS col2
----
53

query I rowsort
SELECT ALL + 31 * + - 72
----
-2232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT + CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-669
SELECT + CAST ( + COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT 34 * - 27
----
-918

query I rowsort
SELECT - 55 * + 97 * + - 92
----
490820

query I rowsort
SELECT DISTINCT 25 + + CASE - 25 WHEN 15 THEN 81 END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT ALL + + 77 + + 73 + + - COUNT( ALL 41 ) + - 67 * + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL + + 77 + + 73 + + - COUNT ( ALL 41 ) + - 67 * + COUNT ( * )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-675
SELECT DISTINCT ( - NULLIF ( - 18, + CAST( + 12 AS SIGNED ) ) ), - COUNT( * ) col0
----
18
-1

skipif mysql # not compatible
query II rowsort label-675
SELECT DISTINCT ( - NULLIF ( - 18, + CAST ( + 12 AS INTEGER ) ) ), - COUNT ( * ) col0
----
18
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT 87 + - COUNT( + 57 ) / - 73 / + + 41 + CASE + 74 WHEN - - 51 THEN NULL WHEN - + COUNT( * ) THEN - 82 * 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT 87 + - COUNT ( + 57 ) / - 73 / + + 41 + CASE + 74 WHEN - - 51 THEN NULL WHEN - + COUNT ( * ) THEN - 82 * 76 END
----
NULL

query I rowsort
SELECT DISTINCT - 37 + + 73 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL MIN( DISTINCT 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL MIN ( DISTINCT 58 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT DISTINCT - ( COUNT( * ) ) + + 97 col0
----
96

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT - ( COUNT ( * ) ) + + 97 col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT - NULLIF ( - COUNT( * ), MIN( 12 ) * - SUM( DISTINCT 14 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-680
SELECT - NULLIF ( - COUNT ( * ), MIN ( 12 ) * - SUM ( DISTINCT 14 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-681
SELECT CASE - 4 WHEN - 11 + + MIN( DISTINCT + 60 ) THEN - 62 WHEN - 78 THEN NULL END / - COALESCE ( - - 47, + CAST( + 8 AS DECIMAL ), 57 ) - - + 83 + + + 61 + - + COUNT( * ) + ( - 79 ) * + 22 col1, - 43 col0
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-681
SELECT CASE - 4 WHEN - 11 + + MIN ( DISTINCT + 60 ) THEN - 62 WHEN - 78 THEN NULL END / - COALESCE ( - - 47, + CAST ( + 8 AS REAL ), 57 ) - - + 83 + + + 61 + - + COUNT ( * ) + ( - 79 ) * + 22 col1, - 43 col0
----
NULL
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT 84 + + - 76 + + + 4 - COUNT( * ) * + + 89 + - - 84 * 31 AS col0
----
2527

skipif mysql # not compatible
query I rowsort label-682
SELECT 84 + + - 76 + + + 4 - COUNT ( * ) * + + 89 + - - 84 * 31 AS col0
----
2527

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT DISTINCT + COUNT( * ) + - + 11
----
-10

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT + COUNT ( * ) + - + 11
----
-10

query I rowsort
SELECT 35 + 72 + 99
----
206

query I rowsort
SELECT ALL + 88 + 73
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-686
SELECT ALL - NULLIF ( + 30, COUNT( - + 35 ) * 16 + - CAST( + - 35 AS SIGNED ) - 27 - - 55 / 73 / + 19 ) + + 47 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL - NULLIF ( + 30, COUNT ( - + 35 ) * 16 + - CAST ( + - 35 AS INTEGER ) - 27 - - 55 / 73 / + 19 ) + + 47 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-687
SELECT - 31, + 69 * - - 19 DIV - + COUNT( * ) col2
----
-31
-1311

skipif mysql # not compatible
query II rowsort label-687
SELECT - 31, + 69 * - - 19 / - + COUNT ( * ) col2
----
-31
-1311

query I rowsort
SELECT 16 * + 12 AS col1
----
192

query I rowsort
SELECT 19 * 2
----
38

query II rowsort
SELECT DISTINCT 38 AS col0, 40
----
38
40

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT ALL + SUM( 38 ) - + 80 col2
----
-42

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL + SUM ( 38 ) - + 80 col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-692
SELECT ALL - COUNT( * ) * + 50 DIV - + COALESCE ( - - 3, - + 84 + - + 41, + - 54 )
----
16

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL - COUNT ( * ) * + 50 / - + COALESCE ( - - 3, - + 84 + - + 41, + - 54 )
----
16

query I rowsort
SELECT ALL - 89 - + 35 * - + ( + - 81 )
----
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT DISTINCT - NULLIF ( + + 74, 9 ) * + COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT - NULLIF ( + + 74, 9 ) * + COUNT ( * ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT ALL - COUNT( DISTINCT - ( 74 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL - COUNT ( DISTINCT - ( 74 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-696
SELECT DISTINCT - NULLIF ( 52, + - COALESCE ( - - CAST( + 91 AS DECIMAL ), - NULLIF ( 13, - - COUNT( * ) ) ) * + 71 + - CAST( - 16 AS DECIMAL ) + - ( + 47 ) ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT - NULLIF ( 52, + - COALESCE ( - - CAST ( + 91 AS REAL ), - NULLIF ( 13, - - COUNT ( * ) ) ) * + 71 + - CAST ( - 16 AS REAL ) + - ( + 47 ) ) AS col1
----
-52

query I rowsort
SELECT ALL - 5 AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT 40 - + - 80 + - + 10 DIV ( 62 ) * 10
----
120

skipif mysql # not compatible
query I rowsort label-698
SELECT 40 - + - 80 + - + 10 / ( 62 ) * 10
----
120

query I rowsort
SELECT 44 * - + 42 * + 73 col0
----
-134904

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-702
SELECT ALL - - 11 AS col2, - 44 + + 28 * - + 71 + + CAST( NULL AS SIGNED ) col0
----
11
NULL

skipif mysql # not compatible
query II rowsort label-702
SELECT ALL - - 11 AS col2, - 44 + + 28 * - + 71 + + CAST ( NULL AS INTEGER ) col0
----
11
NULL

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

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

query I rowsort
SELECT + 95 * 43 AS col2
----
4085

query I rowsort
SELECT ALL + 10 * - 51
----
-510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-706
SELECT - 17 * - - CASE - 16 WHEN - ( + - 69 ) + + 89 + - 18 THEN - 2 WHEN 11 THEN NULL ELSE + - ( 44 ) END + + + ( + - COUNT( - CAST( NULL AS SIGNED ) ) ) * - + COALESCE ( - COALESCE ( 17, - + 11 ), - 96 * 99 * + 45 ) + + - 19 * 92
----
-1000

skipif mysql # not compatible
query I rowsort label-706
SELECT - 17 * - - CASE - 16 WHEN - ( + - 69 ) + + 89 + - 18 THEN - 2 WHEN 11 THEN NULL ELSE + - ( 44 ) END + + + ( + - COUNT ( - CAST ( NULL AS INTEGER ) ) ) * - + COALESCE ( - COALESCE ( 17, - + 11 ), - 96 * 99 * + 45 ) + + - 19 * 92
----
-1000

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-707
SELECT 69 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-707
SELECT 69 - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 60 * + ( - 65 ) AS col0
----
3900

query I rowsort
SELECT - 31 * + 4 AS col1
----
-124

query I rowsort
SELECT ALL 14 + 79
----
93

query II rowsort
SELECT + 7, - 30 col0
----
7
-30

query I rowsort
SELECT ALL + 99 + 30 * - 78 AS col0
----
-2241

query I rowsort
SELECT ALL - ( + 2 ) + - 40 AS col0
----
-42

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

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + COUNT ( * ) + ( - 96 ) AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-715
SELECT COUNT( * ) * + - CAST( NULL AS SIGNED ) * 57 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-715
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * 57 col0
----
NULL

query II rowsort
SELECT - 66 AS col1, 7
----
-66
7

query I rowsort
SELECT ( + 33 ) * + 15 AS col1
----
495

onlyif mysql # aggregate syntax: 
query II rowsort label-718
SELECT DISTINCT COUNT( * ) + - COALESCE ( + + 66, + 38 ), 82 - - 58 AS col0
----
-65
140

skipif mysql # not compatible
query II rowsort label-718
SELECT DISTINCT COUNT ( * ) + - COALESCE ( + + 66, + 38 ), 82 - - 58 AS col0
----
-65
140

query II rowsort
SELECT - 22, 24 AS col1
----
-22
24

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT ALL 3 + + COALESCE ( + + ( - COUNT( * ) ), + - 64 * + - 57 ) * + - 33 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL 3 + + COALESCE ( + + ( - COUNT ( * ) ), + - 64 * + - 57 ) * + - 33 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT ALL CASE - 66 WHEN + - 13 THEN - COUNT( * ) END + + 72 * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL CASE - 66 WHEN + - 13 THEN - COUNT ( * ) END + + 72 * - 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL MAX( DISTINCT - 53 ) * - COUNT( * ) * - 64 AS col1
----
-3392

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL MAX ( DISTINCT - 53 ) * - COUNT ( * ) * - 64 AS col1
----
-3392

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

query I rowsort
SELECT DISTINCT 80 col0
----
80

query II rowsort
SELECT DISTINCT 83 AS col1, 69 - + 76 AS col1
----
83
-7

query I rowsort
SELECT DISTINCT 91 col1
----
91

query II rowsort
SELECT ALL 42 AS col0, + 30 AS col0
----
42
30

query I rowsort
SELECT 50 - 88 + + - 56 AS col0
----
-94

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

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

query I rowsort
SELECT 60 + 69
----
129

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT - MAX( DISTINCT - - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-732
SELECT - MAX ( DISTINCT - - 89 )
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-733
SELECT - 53 AS col1, 70 DIV 46 + - - 67 AS col1
----
-53
68

skipif mysql # not compatible
query II rowsort label-733
SELECT - 53 AS col1, 70 / 46 + - - 67 AS col1
----
-53
68

onlyif mysql # DIV for integer division: 
query I rowsort label-734
SELECT 44 DIV - 20
----
-2

skipif mysql # not compatible
query I rowsort label-734
SELECT 44 / - 20
----
-2

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

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

query I rowsort
SELECT + 87 * 17 + - 42
----
1437

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT DISTINCT - COUNT( ALL + 43 ) * ( 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT - COUNT ( ALL + 43 ) * ( 17 ) AS col1
----
-17

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-741
SELECT + 69 DIV + COALESCE ( + 48, 96 * COUNT( * ) + 76 + - SUM( DISTINCT 50 ) DIV 17 * 28 ) + + 28 AS col0, + 38 + + - ( - - 22 )
----
29
16

skipif mysql # not compatible
query II rowsort label-741
SELECT + 69 / + COALESCE ( + 48, 96 * COUNT ( * ) + 76 + - SUM ( DISTINCT 50 ) / 17 * 28 ) + + 28 AS col0, + 38 + + - ( - - 22 )
----
29
16

onlyif mysql # aggregate syntax: 
query II rowsort label-742
SELECT ALL + 97 col2, CASE + 8 WHEN - 32 * - 56 THEN NULL WHEN COUNT( - - 45 ) THEN NULL WHEN - 2 THEN + 6 * + - MIN( 55 ) END
----
97
NULL

skipif mysql # not compatible
query II rowsort label-742
SELECT ALL + 97 col2, CASE + 8 WHEN - 32 * - 56 THEN NULL WHEN COUNT ( - - 45 ) THEN NULL WHEN - 2 THEN + 6 * + - MIN ( 55 ) END
----
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-743
SELECT + + 40, 75 * - CAST( 99 AS SIGNED ) * - - 81 * - + 76 AS col2
----
40
45708300

skipif mysql # not compatible
query II rowsort label-743
SELECT + + 40, 75 * - CAST ( 99 AS INTEGER ) * - - 81 * - + 76 AS col2
----
40
45708300

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-744
SELECT - CAST( NULL AS DECIMAL ) + CAST( + - 72 AS DECIMAL ) + - 30 * + - COUNT( * ) / + 12 / + COUNT( * ) AS col2, + 2 AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-744
SELECT - CAST ( NULL AS REAL ) + CAST ( + - 72 AS REAL ) + - 30 * + - COUNT ( * ) / + 12 / + COUNT ( * ) AS col2, + 2 AS col1
----
NULL
2

onlyif mysql # DIV for integer division: 
query II rowsort label-745
SELECT ALL + + 85 col1, - 70 DIV + 48 col0
----
85
-1

skipif mysql # not compatible
query II rowsort label-745
SELECT ALL + + 85 col1, - 70 / + 48 col0
----
85
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT - 94 * 42 + - + 90 DIV + 78
----
-3949

skipif mysql # not compatible
query I rowsort label-746
SELECT - 94 * 42 + - + 90 / + 78
----
-3949

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-747
SELECT ALL + CAST( - 57 AS SIGNED ) * 68 + 11 AS col2
----
-3865

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL + CAST ( - 57 AS INTEGER ) * 68 + 11 AS col2
----
-3865

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT + + COALESCE ( 86, + - COUNT( * ) + - COALESCE ( + 54, + 86 ), COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-748
SELECT + + COALESCE ( 86, + - COUNT ( * ) + - COALESCE ( + 54, + 86 ), COUNT ( * ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT ALL - 39 * - 0 + - 14 * + + 1 * + - COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - 39 * - 0 + - 14 * + + 1 * + - COUNT ( * ) AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-750
SELECT DISTINCT - COUNT( * ) * - 35 + - ( - + 49 ) - - CASE - + 64 WHEN - 75 + ( + 4 ) * - COALESCE ( + 60, + + 96 ) THEN CAST( + CASE - + 32 WHEN 55 * + 2 * 40 THEN 22 ELSE NULL END AS SIGNED ) / + - COUNT( * ) WHEN + 44 THEN NULL ELSE NULL END AS col0, - COUNT( * ) * - - ( - - 7 ) AS col0
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-750
SELECT DISTINCT - COUNT ( * ) * - 35 + - ( - + 49 ) - - CASE - + 64 WHEN - 75 + ( + 4 ) * - COALESCE ( + 60, + + 96 ) THEN CAST ( + CASE - + 32 WHEN 55 * + 2 * 40 THEN 22 ELSE NULL END AS INTEGER ) / + - COUNT ( * ) WHEN + 44 THEN NULL ELSE NULL END AS col0, - COUNT ( * ) * - - ( - - 7 ) AS col0
----
NULL
-7

query I rowsort
SELECT ALL - 74 * - 63 + - 79 AS col0
----
4583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT ALL + MAX( - 88 ) * + CAST( + COUNT( * ) AS SIGNED ) + - 93
----
-181

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + MAX ( - 88 ) * + CAST ( + COUNT ( * ) AS INTEGER ) + - 93
----
-181

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-754
SELECT - CAST( + 57 AS SIGNED ) * 84
----
-4788

skipif mysql # not compatible
query I rowsort label-754
SELECT - CAST ( + 57 AS INTEGER ) * 84
----
-4788

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT + COUNT( * ) * - 51 * 12 * - - CASE 56 WHEN + 27 THEN - AVG ( DISTINCT - 77 ) ELSE NULL END / - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT + COUNT ( * ) * - 51 * 12 * - - CASE 56 WHEN + 27 THEN - AVG ( DISTINCT - 77 ) ELSE NULL END / - 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT DISTINCT - COUNT( * ) * + 32 + 73 - + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT - COUNT ( * ) * + 32 + 73 - + COUNT ( * ) AS col1
----
40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-758
SELECT + NULLIF ( - 35, + NULLIF ( + 57, - 69 + + 62 + + + CAST( NULL AS SIGNED ) ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-758
SELECT + NULLIF ( - 35, + NULLIF ( + 57, - 69 + + 62 + + + CAST ( NULL AS INTEGER ) ) ) AS col1
----
-35

query I rowsort
SELECT ALL 62 - - 60 * + 81 AS col2
----
4922

query I rowsort
SELECT - 68 * 90
----
-6120

query II rowsort
SELECT DISTINCT + 43 * - 95 AS col2, - 4 * 3 col2
----
-4085
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - MAX( DISTINCT - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-762
SELECT - MAX ( DISTINCT - 96 )
----
96

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

onlyif mysql # aggregate syntax: 
query II rowsort label-764
SELECT DISTINCT 49 * 38 AS col1, 59 * COUNT( * ) col1
----
1862
59

skipif mysql # not compatible
query II rowsort label-764
SELECT DISTINCT 49 * 38 AS col1, 59 * COUNT ( * ) col1
----
1862
59

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT + COUNT( * ) * 16 * + 41 * COUNT( * ) col2
----
656

skipif mysql # not compatible
query I rowsort label-765
SELECT + COUNT ( * ) * 16 * + 41 * COUNT ( * ) col2
----
656

query I rowsort
SELECT - ( - - 66 ) AS col2
----
-66

query I rowsort
SELECT + ( - + 62 ) + - 34
----
-96

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

query I rowsort
SELECT + 48 * - 94
----
-4512

query II rowsort
SELECT DISTINCT 71 * + + NULLIF ( + 18, + 96 / + 13 ), 5 AS col2
----
1278
5

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

query I rowsort
SELECT ALL 46 + - 6 * - - 37 AS col1
----
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-773
SELECT + + 87 + - - COALESCE ( + - ( CAST( NULL AS SIGNED ) ), 28 * 23 ) col1
----
731

skipif mysql # not compatible
query I rowsort label-773
SELECT + + 87 + - - COALESCE ( + - ( CAST ( NULL AS INTEGER ) ), 28 * 23 ) col1
----
731

query I rowsort
SELECT - + 82 * 84 AS col0
----
-6888

onlyif mysql # DIV for integer division: 
query II rowsort label-775
SELECT ALL + 43 DIV - + 60, + 56 DIV + - ( + 93 ) AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-775
SELECT ALL + 43 / - + 60, + 56 / + - ( + 93 ) AS col1
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-776
SELECT + CASE SUM( 65 ) WHEN 13 * + + 37 - 23 + + 51 THEN NULL WHEN 71 + - 70 THEN 53 * - 42 + + - COUNT( * ) END AS col2, - MIN( ALL 13 ) AS col2
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-776
SELECT + CASE SUM ( 65 ) WHEN 13 * + + 37 - 23 + + 51 THEN NULL WHEN 71 + - 70 THEN 53 * - 42 + + - COUNT ( * ) END AS col2, - MIN ( ALL 13 ) AS col2
----
NULL
-13

query I rowsort
SELECT DISTINCT - ( - + 11 ) * + + 99 + + 90 AS col1
----
1179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-778
SELECT ALL + COUNT( * ) DIV + + 30 + - ( - + 66 ) + - - 5 * - 88 * - 57 AS col2
----
25146

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL + COUNT ( * ) / + + 30 + - ( - + 66 ) + - - 5 * - 88 * - 57 AS col2
----
25146

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT ALL - 13 DIV - - 8 + + 14 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL - 13 / - - 8 + + 14 AS col2
----
13

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-781
SELECT DISTINCT + MAX( - - CAST( 83 AS SIGNED ) ) * - - 70 col0
----
5810

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT + MAX ( - - CAST ( 83 AS INTEGER ) ) * - - 70 col0
----
5810

onlyif mysql # aggregate syntax: 
query II rowsort label-782
SELECT ALL + ( + + 5 ) * - COUNT( * ) AS col0, + 29 AS col1
----
-5
29

skipif mysql # not compatible
query II rowsort label-782
SELECT ALL + ( + + 5 ) * - COUNT ( * ) AS col0, + 29 AS col1
----
-5
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-783
SELECT - 62 * - + 38 - - AVG ( + 3 ) / - + 13 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-783
SELECT - 62 * - + 38 - - AVG ( + 3 ) / - + 13 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 36 + 83 AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-785
SELECT ALL + - 23 * - COUNT( * ) + + CAST( NULL AS DECIMAL ) - - - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + - 23 * - COUNT ( * ) + + CAST ( NULL AS REAL ) - - - 70 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + COALESCE ( + 94, - + 40 + + 7 ) AS col0
----
94

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

query I rowsort
SELECT - 12 * + 38 + + - 53 * - 21 + - 56
----
601

query I rowsort
SELECT DISTINCT + 67 col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-790
SELECT - 8 DIV 94 col2
----
0

skipif mysql # not compatible
query I rowsort label-790
SELECT - 8 / 94 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT - 26 + - + COUNT( * ) + + - 32
----
-59

skipif mysql # not compatible
query I rowsort label-791
SELECT - 26 + - + COUNT ( * ) + + - 32
----
-59

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-793
SELECT ALL - CAST( NULL AS DECIMAL ) * - + 38 * - - MIN( DISTINCT - 0 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL - CAST ( NULL AS REAL ) * - + 38 * - - MIN ( DISTINCT - 0 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-794
SELECT - 78 DIV 64 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-794
SELECT - 78 / 64 AS col0
----
-1

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

skipif mysql # not compatible
query II rowsort label-795
SELECT COUNT ( * ) AS col1, - 23 AS col2
----
1
-23

query II rowsort
SELECT ALL 96, COALESCE ( 10, - 23 + COALESCE ( + 26, + 88 ) ) * - 47 * + 82 AS col2
----
96
-38540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-797
SELECT DISTINCT + ( 21 ) * - 27 + + 18 * + 85 * + 41 * 75 + 65 DIV - - COUNT( * )
----
4704248

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT + ( 21 ) * - 27 + + 18 * + 85 * + 41 * 75 + 65 / - - COUNT ( * )
----
4704248

query II rowsort
SELECT ALL 50 AS col0, 8 AS col1
----
50
8

query I rowsort
SELECT 60 * ( + + ( + 18 ) ) AS col2
----
1080

query I rowsort
SELECT 50 + - 28
----
22

query I rowsort
SELECT DISTINCT 24 + - + 51 AS col2
----
-27

query I rowsort
SELECT ALL 53 + + + 35 + + 63 AS col0
----
151

query I rowsort
SELECT 54 + - - 35 AS col2
----
89

query I rowsort
SELECT ALL 80 + + + 25
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-805
SELECT - 50 + CAST( + 86 AS SIGNED ) AS col1, - 42 * + 87 AS col1
----
36
-3654

skipif mysql # not compatible
query II rowsort label-805
SELECT - 50 + CAST ( + 86 AS INTEGER ) AS col1, - 42 * + 87 AS col1
----
36
-3654

query I rowsort
SELECT ALL 20 + + 3
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT + 23 * COUNT( * ) + - MAX( + 9 )
----
14

skipif mysql # not compatible
query I rowsort label-807
SELECT + 23 * COUNT ( * ) + - MAX ( + 9 )
----
14

query I rowsort
SELECT ALL + 90 + + 3
----
93

query I rowsort
SELECT DISTINCT - + 42 col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-810
SELECT + COUNT( * ) * 82 * - COUNT( DISTINCT 20 ) * + 16 * CASE 18 WHEN + 90 THEN - COUNT( * ) * NULLIF ( + 39, - MIN( + + 88 ) - + 14 ) - + 91 / - 37 * - 94 + + CAST( NULL AS SIGNED ) + - AVG ( - - 42 ) END + + - 96 * - 50 * - + 31, - 67 AS col2
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-810
SELECT + COUNT ( * ) * 82 * - COUNT ( DISTINCT 20 ) * + 16 * CASE 18 WHEN + 90 THEN - COUNT ( * ) * NULLIF ( + 39, - MIN ( + + 88 ) - + 14 ) - + 91 / - 37 * - 94 + + CAST ( NULL AS INTEGER ) + - AVG ( - - 42 ) END + + - 96 * - 50 * - + 31, - 67 AS col2
----
NULL
-67

query I rowsort
SELECT ALL - 13 AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-812
SELECT ALL MIN( - 6 ) - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL MIN ( - 6 ) - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 3 * - + 20
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT - NULLIF ( + - 73, + COUNT( * ) ) * SUM( + - 85 ) AS col2
----
-6205

skipif mysql # not compatible
query I rowsort label-814
SELECT - NULLIF ( + - 73, + COUNT ( * ) ) * SUM ( + - 85 ) AS col2
----
-6205

onlyif mysql # aggregate syntax: 
query II rowsort label-815
SELECT DISTINCT - 27 - + 36 * - + 69 AS col2, + 88 + - COUNT( * ) AS col2
----
2457
87

skipif mysql # not compatible
query II rowsort label-815
SELECT DISTINCT - 27 - + 36 * - + 69 AS col2, + 88 + - COUNT ( * ) AS col2
----
2457
87

query I rowsort
SELECT ALL - + 5 AS col0
----
-5

query I rowsort
SELECT ALL + + 51 * 62 AS col0
----
3162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-818
SELECT ALL COUNT( * ) DIV - - 63 * + - 11
----
0

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL COUNT ( * ) / - - 63 * + - 11
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-819
SELECT DISTINCT - 54 AS col2, + CASE - + 64 WHEN 22 * - 72 + - COUNT( * ) THEN - ( - - 8 ) END AS col1
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-819
SELECT DISTINCT - 54 AS col2, + CASE - + 64 WHEN 22 * - 72 + - COUNT ( * ) THEN - ( - - 8 ) END AS col1
----
-54
NULL

query I rowsort
SELECT 35 * 95 * + 35
----
116375

onlyif mysql # aggregate syntax: 
query II rowsort label-821
SELECT 38 * + + 96, COUNT( * ) AS col0
----
3648
1

skipif mysql # not compatible
query II rowsort label-821
SELECT 38 * + + 96, COUNT ( * ) AS col0
----
3648
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-822
SELECT 98 * 5 + COALESCE ( - - 27, 88 - + - 39 * + COUNT( * ) * ( + 49 ), + 36 DIV 92 + + ( + 73 ) + - 95 * - COALESCE ( - 40, 33 ) + COUNT( * ) * + + 51 + + 14 ) * + + 45 * + COUNT( * ) col1, 52 * - + 72 col0
----
1705
-3744

skipif mysql # not compatible
query II rowsort label-822
SELECT 98 * 5 + COALESCE ( - - 27, 88 - + - 39 * + COUNT ( * ) * ( + 49 ), + 36 / 92 + + ( + 73 ) + - 95 * - COALESCE ( - 40, 33 ) + COUNT ( * ) * + + 51 + + 14 ) * + + 45 * + COUNT ( * ) col1, 52 * - + 72 col0
----
1705
-3744

query I rowsort
SELECT ALL + 98 + - + 70
----
28

query I rowsort
SELECT 53 - - 38 + 60
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT 63 * COALESCE ( - + 13, - + ( 7 ) DIV - 22 * - 20 - - 45 - + 33, - 14 * + 9 + 36 ) AS col1
----
-819

skipif mysql # not compatible
query I rowsort label-825
SELECT 63 * COALESCE ( - + 13, - + ( 7 ) / - 22 * - 20 - - 45 - + 33, - 14 * + 9 + 36 ) AS col1
----
-819

query I rowsort
SELECT ALL - 8 * - ( - + 17 ) AS col0
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-827
SELECT DISTINCT - MAX( 40 ) + - - CAST( + 72 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT - MAX ( 40 ) + - - CAST ( + 72 AS INTEGER )
----
32

query II rowsort
SELECT ALL - 81 + - 48 AS col0, + 64
----
-129
64

query I rowsort
SELECT 43 + + 72 + + 42 * - 89 * - 53
----
198229

query I rowsort
SELECT 85 + + 49
----
134

query II rowsort
SELECT DISTINCT - 63 + - 14, 99 AS col2
----
-77
99

onlyif mysql # aggregate syntax: 
query II rowsort label-832
SELECT ALL + 9 * - 74 AS col2, + 35 + + 95 + COUNT( * ) * - NULLIF ( - 31, - 58 + + 57 )
----
-666
161

skipif mysql # not compatible
query II rowsort label-832
SELECT ALL + 9 * - 74 AS col2, + 35 + + 95 + COUNT ( * ) * - NULLIF ( - 31, - 58 + + 57 )
----
-666
161

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT COUNT( + 35 ) + + 60
----
61

skipif mysql # not compatible
query I rowsort label-833
SELECT COUNT ( + 35 ) + + 60
----
61

query II rowsort
SELECT 98 - + 19 * + + NULLIF ( 23, + 81 ), 79 + + 32 * + 8 AS col0
----
-339
335

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL - SUM( - 80 ) + - 53 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL - SUM ( - 80 ) + - 53 AS col0
----
27

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

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

query I rowsort
SELECT - NULLIF ( 23, 60 * - - 23 + 97 + + - 1 ) AS col0
----
-23

query I rowsort
SELECT ALL + 19 - - 37 AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT ALL + 61 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL + 61 / + 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT ALL + - 87 DIV + 35 + - - 10
----
8

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL + - 87 / + 35 + - - 10
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-842
SELECT 92 DIV - 2 + + - 90 + 65 + + 75
----
4

skipif mysql # not compatible
query I rowsort label-842
SELECT 92 / - 2 + + - 90 + 65 + + 75
----
4

query I rowsort
SELECT - - 7 AS col1
----
7

query I rowsort
SELECT DISTINCT 71 * 60 AS col0
----
4260

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT ALL ( - - 77 ) * COUNT( * ) + - 41
----
36

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL ( - - 77 ) * COUNT ( * ) + - 41
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-846
SELECT - 91 * - 59 * - - 11 + - + 81 - 77, COUNT( * ) * + 84 + - 16 AS col2
----
58901
68

skipif mysql # not compatible
query II rowsort label-846
SELECT - 91 * - 59 * - - 11 + - + 81 - 77, COUNT ( * ) * + 84 + - 16 AS col2
----
58901
68

onlyif mysql # aggregate syntax: 
query II rowsort label-847
SELECT ALL - ( + 91 ), ( 83 ) * - COUNT( * ) + 74 AS col2
----
-91
-9

skipif mysql # not compatible
query II rowsort label-847
SELECT ALL - ( + 91 ), ( 83 ) * - COUNT ( * ) + 74 AS col2
----
-91
-9

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

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

query II rowsort
SELECT 41 * - 50 + ( + 28 ) AS col1, 21 AS col1
----
-2022
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-850
SELECT CASE + 89 WHEN + 68 THEN - - COUNT( * ) / - + 6 * 99 + + 71 + CAST( NULL AS SIGNED ) * 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-850
SELECT CASE + 89 WHEN + 68 THEN - - COUNT ( * ) / - + 6 * 99 + + 71 + CAST ( NULL AS INTEGER ) * 28 END AS col2
----
NULL

query I rowsort
SELECT 75 * + 57 + - 36
----
4239

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-853
SELECT - 4 DIV - 50 + + + 37 * - COALESCE ( + MIN( DISTINCT - 3 ), + 53 + + 11 + SUM( - NULLIF ( + + 19, 72 + - + 56 ) ) + + 20 - 65 * - + 57 + + COUNT( * ) ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-853
SELECT - 4 / - 50 + + + 37 * - COALESCE ( + MIN ( DISTINCT - 3 ), + 53 + + 11 + SUM ( - NULLIF ( + + 19, 72 + - + 56 ) ) + + 20 - 65 * - + 57 + + COUNT ( * ) ) AS col0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-854
SELECT ALL - 89 AS col1, - COUNT( * ) AS col2
----
-89
-1

skipif mysql # not compatible
query II rowsort label-854
SELECT ALL - 89 AS col1, - COUNT ( * ) AS col2
----
-89
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT MAX( - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-856
SELECT MAX ( - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT ALL 49 + - SUM( - 13 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL 49 + - SUM ( - 13 ) AS col1
----
62

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

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

query I rowsort
SELECT 12 * + 88 + - - 67 AS col1
----
1123

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

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

query I rowsort
SELECT + 49 * 79
----
3871

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT DISTINCT SUM( + + 91 ) + - 64 AS col1, 7 AS col1
----
27
7

skipif mysql # not compatible
query II rowsort label-862
SELECT DISTINCT SUM ( + + 91 ) + - 64 AS col1, 7 AS col1
----
27
7

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

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

query II rowsort
SELECT ALL 3, + 69 AS col2
----
3
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-866
SELECT - COALESCE ( - + 40, + 55, + COUNT( * ) DIV - 81 ) AS col2, - 20 + 15 + + - 67
----
40
-72

skipif mysql # not compatible
query II rowsort label-866
SELECT - COALESCE ( - + 40, + 55, + COUNT ( * ) / - 81 ) AS col2, - 20 + 15 + + - 67
----
40
-72

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

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL MIN ( ALL 59 )
----
59

query I rowsort
SELECT DISTINCT 88 + - 24
----
64

query I rowsort
SELECT - 59 + 34
----
-25

query I rowsort
SELECT ALL + 78 * + 65 AS col0
----
5070

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

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL MAX( - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL MAX ( - 57 ) AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-873
SELECT ALL COALESCE ( + COUNT( * ), 19 + + 8 DIV - 7 )
----
1

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL COALESCE ( + COUNT ( * ), 19 + + 8 / - 7 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT + 23 + - ( - MAX( DISTINCT 11 ) )
----
34

skipif mysql # not compatible
query I rowsort label-874
SELECT + 23 + - ( - MAX ( DISTINCT 11 ) )
----
34

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

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

query I rowsort
SELECT - 87 * 76 AS col2
----
-6612

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

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

query I rowsort
SELECT - 5 + 93
----
88

query I rowsort
SELECT ALL COALESCE ( 21, - 73 )
----
21

query I rowsort
SELECT - 51 * 55
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT + SUM( ALL 41 ) * 35 AS col0
----
1435

skipif mysql # not compatible
query I rowsort label-881
SELECT + SUM ( ALL 41 ) * 35 AS col0
----
1435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-882
SELECT ALL CASE 92 WHEN 64 - - 2 THEN NULL WHEN 75 + - 64 * CAST( NULL AS SIGNED ) THEN - 73 + 2 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL CASE 92 WHEN 64 - - 2 THEN NULL WHEN 75 + - 64 * CAST ( NULL AS INTEGER ) THEN - 73 + 2 * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT - 69 + COUNT( * ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-883
SELECT - 69 + COUNT ( * ) col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL + COUNT( ALL 1 ) * 12
----
12

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL + COUNT ( ALL 1 ) * 12
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-885
SELECT ALL 15 DIV 35 col0
----
0

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL 15 / 35 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-886
SELECT - 39 DIV - 71 col1
----
0

skipif mysql # not compatible
query I rowsort label-886
SELECT - 39 / - 71 col1
----
0

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

query I rowsort
SELECT ALL + CASE - 7 WHEN - 75 + - 14 THEN 79 * + 20 END AS col0
----
NULL

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

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

query I rowsort
SELECT + 91 + - 76 AS col1
----
15

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

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

query I rowsort
SELECT - 61 * 4
----
-244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-893
SELECT + NULLIF ( + 95, + COUNT( * ) DIV 50 ) * 90 + 51 DIV + 20 col2
----
8552

skipif mysql # not compatible
query I rowsort label-893
SELECT + NULLIF ( + 95, + COUNT ( * ) / 50 ) * 90 + 51 / + 20 col2
----
8552

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

query I rowsort
SELECT DISTINCT 8 * 53 AS col2
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL - COUNT( * ) * COUNT( * ) + 96 * CASE + ( - 7 ) * COUNT( * ) WHEN 61 * 35 THEN 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL - COUNT ( * ) * COUNT ( * ) + 96 * CASE + ( - 7 ) * COUNT ( * ) WHEN 61 * 35 THEN 20 END
----
NULL

query I rowsort
SELECT + COALESCE ( - 79, 96, - 14 ) * 15
----
-1185

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT + COALESCE ( + 69, 39 - + CASE ( 64 ) + - 92 WHEN 49 THEN + ( + COALESCE ( 48, - 1 ) ) * 19 + + 71 END * - 12 ) + - MIN( - 78 )
----
147

skipif mysql # not compatible
query I rowsort label-898
SELECT + COALESCE ( + 69, 39 - + CASE ( 64 ) + - 92 WHEN 49 THEN + ( + COALESCE ( 48, - 1 ) ) * 19 + + 71 END * - 12 ) + - MIN ( - 78 )
----
147

query I rowsort
SELECT ALL - 13 * 0 + + 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT - COUNT( 9 ) - 65
----
-66

skipif mysql # not compatible
query I rowsort label-900
SELECT - COUNT ( 9 ) - 65
----
-66

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

query I rowsort
SELECT COALESCE ( 79, - 20, 10 )
----
79

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-904
SELECT CASE 54 WHEN + 73 + + COALESCE ( COUNT( * ), - 33 + CAST( NULL AS SIGNED ) / 14 ) THEN NULL WHEN 7 * + 10 THEN 35 + 48 WHEN CASE 25 WHEN + CASE - 35 WHEN + 78 * COUNT( * ) THEN NULL WHEN 16 THEN 25 * 27 ELSE + 6 - 5 END THEN - 45 / - 1 + CAST( - 11 AS SIGNED ) / 9 END * 84 THEN 18 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-904
SELECT CASE 54 WHEN + 73 + + COALESCE ( COUNT ( * ), - 33 + CAST ( NULL AS INTEGER ) / 14 ) THEN NULL WHEN 7 * + 10 THEN 35 + 48 WHEN CASE 25 WHEN + CASE - 35 WHEN + 78 * COUNT ( * ) THEN NULL WHEN 16 THEN 25 * 27 ELSE + 6 - 5 END THEN - 45 / - 1 + CAST ( - 11 AS INTEGER ) / 9 END * 84 THEN 18 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT CASE - MIN( DISTINCT 35 ) WHEN 63 - ( 23 ) THEN NULL WHEN 74 THEN - 85 + + 0 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-905
SELECT CASE - MIN ( DISTINCT 35 ) WHEN 63 - ( 23 ) THEN NULL WHEN 74 THEN - 85 + + 0 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 92 * + 75 + - 7
----
6893

query I rowsort
SELECT + 65 * 29 AS col0
----
1885

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT + 71 + COUNT( * ) col0
----
72

skipif mysql # not compatible
query I rowsort label-908
SELECT + 71 + COUNT ( * ) col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT ALL 77 DIV + 19
----
4

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL 77 / + 19
----
4

query I rowsort
SELECT ALL 67 * 85 - + 82 AS col2
----
5613

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

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

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

query I rowsort
SELECT + 18 - 5
----
13

query I rowsort
SELECT ALL 47 * - 1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT DISTINCT + 35 * ( 60 DIV - NULLIF ( 31, 70 ) - 37 )
----
-1330

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT + 35 * ( 60 / - NULLIF ( 31, 70 ) - 37 )
----
-1330

query I rowsort
SELECT ALL 33 * + 83 - 84 AS col0
----
2655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-917
SELECT DISTINCT - CAST( 6 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT - CAST ( 6 AS INTEGER ) AS col1
----
-6

query I rowsort
SELECT + 74 + + 36 AS col1
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT + 43 DIV 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-919
SELECT + 43 / 56 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-920
SELECT ALL NULLIF ( 57, - CASE 48 WHEN ( - ( COUNT( * ) ) ) THEN + 67 * 21 ELSE + CAST( + 23 AS DECIMAL ) + COUNT( * ) END * - 56 + 94 ) * - 55
----
-3135

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL NULLIF ( 57, - CASE 48 WHEN ( - ( COUNT ( * ) ) ) THEN + 67 * 21 ELSE + CAST ( + 23 AS REAL ) + COUNT ( * ) END * - 56 + 94 ) * - 55
----
-3135

query I rowsort
SELECT + + 28 * 11 AS col2
----
308

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT - CAST( + 21 AS SIGNED ) * 11
----
-231

skipif mysql # not compatible
query I rowsort label-923
SELECT - CAST ( + 21 AS INTEGER ) * 11
----
-231

query I rowsort
SELECT - - 47 + ( ( 49 ) )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-925
SELECT ALL + MAX( + CAST( - 4 AS SIGNED ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL + MAX ( + CAST ( - 4 AS INTEGER ) ) AS col0
----
-4

query I rowsort
SELECT - + NULLIF ( 0, + 4 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT DISTINCT - SUM( ALL 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-928
SELECT DISTINCT - SUM ( ALL 23 )
----
-23

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

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

query I rowsort
SELECT DISTINCT - + 15 * + 4 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL + MIN( 77 ) + + 16 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL + MIN ( 77 ) + + 16 AS col2
----
93

query I rowsort
SELECT + - 51 + 61 * + 45 AS col1
----
2694

query I rowsort
SELECT - + 76 * + ( 32 )
----
-2432

query I rowsort
SELECT - + 71 * 42
----
-2982

query I rowsort
SELECT ALL - ( 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT DISTINCT + ( - + COUNT( * ) ) + + MIN( + 69 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT + ( - + COUNT ( * ) ) + + MIN ( + 69 ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-937
SELECT 63 + + CASE 62 WHEN + CASE + 67 WHEN 33 THEN + NULLIF ( - CAST( 99 AS SIGNED ), 60 ) * 17 + + 92 ELSE 29 * 85 END THEN 89 WHEN - ( + 64 ) / 18 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-937
SELECT 63 + + CASE 62 WHEN + CASE + 67 WHEN 33 THEN + NULLIF ( - CAST ( 99 AS INTEGER ), 60 ) * 17 + + 92 ELSE 29 * 85 END THEN 89 WHEN - ( + 64 ) / 18 THEN NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT 79 * - 27 AS col1
----
-2133

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

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL - 76 / + - COUNT ( * )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-941
SELECT + COUNT( ALL 17 ) * ( + CAST( NULL AS SIGNED ) ) - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT + COUNT ( ALL 17 ) * ( + CAST ( NULL AS INTEGER ) ) - 35 AS col0
----
NULL

query I rowsort
SELECT + 91 col2
----
91

query I rowsort
SELECT 62 + - 50 + + ( - 85 )
----
-73

query I rowsort
SELECT 78 + + 46 AS col2
----
124

query I rowsort
SELECT ALL 53 * - + ( + 7 ) AS col0
----
-371

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT DISTINCT - 5 * + CASE - 41 WHEN + MAX( 9 ) THEN NULL ELSE - 66 * 6 END * 42 AS col0
----
83160

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT - 5 * + CASE - 41 WHEN + MAX ( 9 ) THEN NULL ELSE - 66 * 6 END * 42 AS col0
----
83160

query I rowsort
SELECT 97 + 48
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ALL - 87 * - COUNT( * ) * + 19 AS col0
----
1653

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - 87 * - COUNT ( * ) * + 19 AS col0
----
1653

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

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT ( + NULLIF ( - 57, - MAX( 38 ) ) ) + 38 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-950
SELECT ( + NULLIF ( - 57, - MAX ( 38 ) ) ) + 38 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT + + CASE ( + COUNT( * ) ) WHEN 31 THEN + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT + + CASE ( + COUNT ( * ) ) WHEN 31 THEN + 82 END
----
NULL

query I rowsort
SELECT ALL - 57 col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT + 67 + + COUNT( * ) * + 15 col0
----
82

skipif mysql # not compatible
query I rowsort label-953
SELECT + 67 + + COUNT ( * ) * + 15 col0
----
82

query I rowsort
SELECT - - 16 AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-955
SELECT - CAST( + 29 AS SIGNED ) * 67 AS col2
----
-1943

skipif mysql # not compatible
query I rowsort label-955
SELECT - CAST ( + 29 AS INTEGER ) * 67 AS col2
----
-1943

query I rowsort
SELECT 23 + + - 97
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-957
SELECT ALL - 10 DIV - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL - 10 / - 85 AS col0
----
0

query I rowsort
SELECT ALL + 30 * - 95
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT DISTINCT ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT ( - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT + 83 + 70 * + 59
----
4213

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT MIN( DISTINCT + - 87 ) + 53
----
-34

skipif mysql # not compatible
query I rowsort label-961
SELECT MIN ( DISTINCT + - 87 ) + 53
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ( + MAX( DISTINCT ( - 26 ) ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-962
SELECT ( + MAX ( DISTINCT ( - 26 ) ) ) AS col1
----
-26

query I rowsort
SELECT ALL + 86 + 64 - 11
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT + SUM( DISTINCT - ( 12 ) ) + 0
----
-12

skipif mysql # not compatible
query I rowsort label-964
SELECT + SUM ( DISTINCT - ( 12 ) ) + 0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT + 10 / - CASE 71 WHEN 14 * COUNT( 88 ) + 65 THEN NULL WHEN 64 THEN - 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT + 10 / - CASE 71 WHEN 14 * COUNT ( 88 ) + 65 THEN NULL WHEN 64 THEN - 45 END
----
NULL

query I rowsort
SELECT 85 + ( - ( + 56 ) ) - 18 * - 43
----
803

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT ALL 49 + CASE - 77 WHEN MAX( ( ( - 31 ) ) ) + 84 * 4 THEN COALESCE ( + ( - MAX( DISTINCT - 44 ) ), 34 + - 55 ) + 33 WHEN + 17 THEN 71 + - 7 ELSE - 8 END - + 93 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL 49 + CASE - 77 WHEN MAX ( ( ( - 31 ) ) ) + 84 * 4 THEN COALESCE ( + ( - MAX ( DISTINCT - 44 ) ), 34 + - 55 ) + 33 WHEN + 17 THEN 71 + - 7 ELSE - 8 END - + 93 AS col1
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT 44 + + NULLIF ( 53, 68 ) * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-969
SELECT 44 + + NULLIF ( 53, 68 ) * + COUNT ( * )
----
97

query I rowsort
SELECT DISTINCT 79 + + 68 AS col0
----
147

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

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

query I rowsort
SELECT ALL - 81 + + 90 AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-973
SELECT + 76 col1, COALESCE ( + - 63, + 27 + - COALESCE ( - 65, 61 + ( + 22 + COUNT( 11 ) DIV + 76 ) ), + COUNT( * ) - 79 ) * - 35 AS col1
----
76
2205

skipif mysql # not compatible
query II rowsort label-973
SELECT + 76 col1, COALESCE ( + - 63, + 27 + - COALESCE ( - 65, 61 + ( + 22 + COUNT ( 11 ) / + 76 ) ), + COUNT ( * ) - 79 ) * - 35 AS col1
----
76
2205

query II rowsort
SELECT 78 AS col0, 64
----
78
64

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT + 91 DIV + 25 + - ( 93 )
----
-90

skipif mysql # not compatible
query I rowsort label-975
SELECT + 91 / + 25 + - ( 93 )
----
-90

query I rowsort
SELECT ALL - 90 * - + 76 AS col1
----
6840

query II rowsort
SELECT + 32 AS col2, + 78 AS col1
----
32
78

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT 88 + - COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-978
SELECT 88 + - COUNT ( * ) AS col2
----
87

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-981
SELECT + COUNT( * ) * + + 74 + - 10 DIV + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-981
SELECT + COUNT ( * ) * + + 74 + - 10 / + COUNT ( * ) AS col1
----
64

query I rowsort
SELECT ALL + 18 - 30
----
-12

query I rowsort
SELECT + 89 col0
----
89

query I rowsort
SELECT ALL 30 * - - CASE + COALESCE ( 20, 73, 65 ) WHEN + 20 THEN + 91 * - ( 23 ) END col2
----
-62790

onlyif mysql # DIV for integer division: 
query I rowsort label-985
SELECT 78 DIV - 31
----
-2

skipif mysql # not compatible
query I rowsort label-985
SELECT 78 / - 31
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL + 18 - NULLIF ( 37, 55 / 87 + COUNT( * ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL + 18 - NULLIF ( 37, 55 / 87 + COUNT ( * ) ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-987
SELECT 21, - 28 + 28 + 72 * + COUNT( * ) AS col2
----
21
72

skipif mysql # not compatible
query II rowsort label-987
SELECT 21, - 28 + 28 + 72 * + COUNT ( * ) AS col2
----
21
72

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT 78 - COUNT( * ) * 13 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-988
SELECT 78 - COUNT ( * ) * 13 AS col0
----
65

query I rowsort
SELECT 13 * - - 33 AS col1
----
429

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT - 65 DIV + 94 * - 62 * + 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-990
SELECT - 65 / + 94 * - 62 * + 7 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT 59 + - COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-991
SELECT 59 + - COUNT ( * ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-992
SELECT ALL - - 9, 87 * + + COUNT( 10 ) * 11 + 55 AS col1
----
9
1012

skipif mysql # not compatible
query II rowsort label-992
SELECT ALL - - 9, 87 * + + COUNT ( 10 ) * 11 + 55 AS col1
----
9
1012

query II rowsort
SELECT + - 61 AS col2, - 64 AS col1
----
-61
-64

query I rowsort
SELECT ALL - - 48
----
48

query I rowsort
SELECT DISTINCT + 72 + 90 AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT - MAX( - 76 ) col0
----
76

skipif mysql # not compatible
query I rowsort label-996
SELECT - MAX ( - 76 ) col0
----
76

query I rowsort
SELECT ALL + + 36 + + 29 col0
----
65

query I rowsort
SELECT ALL - + ( + + COALESCE ( COALESCE ( + 86, - COALESCE ( - 20, ( ( - 89 ) ) + 49 ) ), 82 ) ) * + 83 AS col1
----
-7138

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT + 14 * + 97 * - + MIN( DISTINCT + 76 )
----
-103208

skipif mysql # not compatible
query I rowsort label-999
SELECT + 14 * + 97 * - + MIN ( DISTINCT + 76 )
----
-103208

query I rowsort
SELECT ALL 54 + - + ( + - 34 ) AS col0
----
88

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

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

query I rowsort
SELECT - - NULLIF ( - + 71, - - 23 )
----
-71

query I rowsort
SELECT - 81 * + 33 + + + 26 AS col2
----
-2647

query I rowsort
SELECT 7 * - 1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT ALL COUNT( * ) + + 78 + - - 24 + + 58 * MIN( - 95 ) * - 9
----
49693

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL COUNT ( * ) + + 78 + - - 24 + + 58 * MIN ( - 95 ) * - 9
----
49693

query II rowsort
SELECT 19 AS col1, 17 AS col2
----
19
17

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

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

query I rowsort
SELECT - ( - 36 )
----
36

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

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

query I rowsort
SELECT ALL 20 - + + 44 - 68 + + + 43 * 66
----
2746

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT + NULLIF ( - COUNT( * ), - 14 / - + 58 - + 30 ) * 66
----
-66

skipif mysql # not compatible
query I rowsort label-1011
SELECT + NULLIF ( - COUNT ( * ), - 14 / - + 58 - + 30 ) * 66
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1012
SELECT DISTINCT 32 * - - 55 col2, - COUNT( * )
----
1760
-1

skipif mysql # not compatible
query II rowsort label-1012
SELECT DISTINCT 32 * - - 55 col2, - COUNT ( * )
----
1760
-1

query I rowsort
SELECT - 96 + + ( - + 9 )
----
-105

query I rowsort
SELECT ALL 84 - 26 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT + CASE + COUNT( * ) WHEN + ( + 3 ) THEN 49 * - 41 ELSE 1 END * 24
----
24

skipif mysql # not compatible
query I rowsort label-1015
SELECT + CASE + COUNT ( * ) WHEN + ( + 3 ) THEN 49 * - 41 ELSE 1 END * 24
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1016
SELECT + 49 + CAST( NULLIF ( + - 91, CAST( - AVG ( ALL ( - ( + 15 ) ) ) AS SIGNED ) - - 86 ) AS SIGNED ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-1016
SELECT + 49 + CAST ( NULLIF ( + - 91, CAST ( - AVG ( ALL ( - ( + 15 ) ) ) AS INTEGER ) - - 86 ) AS INTEGER ) AS col2
----
-42

query I rowsort
SELECT ( ( 74 ) ) AS col2
----
74

query I rowsort
SELECT + 66 * + + NULLIF ( 54, COALESCE ( - 23, 37 ) / 59 )
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT + SUM( - + ( - - 17 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-1019
SELECT + SUM ( - + ( - - 17 ) )
----
-17

query I rowsort
SELECT DISTINCT 90 * 9 AS col0
----
810

query I rowsort
SELECT + NULLIF ( + + ( + 5 ), + AVG ( 84 ) + - 19 / - 58 ) * + 76 AS col0
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL + ( - NULLIF ( 99, COALESCE ( + 71, - COALESCE ( - 16, 6 ) * 96 + - 16 * + NULLIF ( + 78 + - 38, - 24 / 19 ) ) + + COUNT( * ) * 22 ) ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL + ( - NULLIF ( 99, COALESCE ( + 71, - COALESCE ( - 16, 6 ) * 96 + - 16 * + NULLIF ( + 78 + - 38, - 24 / 19 ) ) + + COUNT ( * ) * 22 ) ) col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT CASE - + COUNT( * ) WHEN - 36 * + 90 + 48 THEN 85 WHEN 57 THEN + 15 ELSE 11 END AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1023
SELECT CASE - + COUNT ( * ) WHEN - 36 * + 90 + 48 THEN 85 WHEN 57 THEN + 15 ELSE 11 END AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT - 71 * + - MAX( DISTINCT - - 55 ) * 68
----
265540

skipif mysql # not compatible
query I rowsort label-1024
SELECT - 71 * + - MAX ( DISTINCT - - 55 ) * 68
----
265540

query I rowsort
SELECT ALL + 42 col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1026
SELECT + 4 * 42 + + 14 + CAST( NULL AS SIGNED ) + 71 * MAX( DISTINCT - 65 * + ( + 3 * - 70 ) ) * - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1026
SELECT + 4 * 42 + + 14 + CAST ( NULL AS INTEGER ) + 71 * MAX ( DISTINCT - 65 * + ( + 3 * - 70 ) ) * - 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT COALESCE ( + COUNT( * ), 83, + CASE - 83 WHEN + 40 THEN COUNT( 70 ) WHEN 93 THEN - ( COUNT( * ) ) + ( + 24 ) * 51 END ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1027
SELECT COALESCE ( + COUNT ( * ), 83, + CASE - 83 WHEN + 40 THEN COUNT ( 70 ) WHEN 93 THEN - ( COUNT ( * ) ) + ( + 24 ) * 51 END ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT 23 * 15 - 43 * + MIN( ALL 90 ) AS col1
----
-3525

skipif mysql # not compatible
query I rowsort label-1028
SELECT 23 * 15 - 43 * + MIN ( ALL 90 ) AS col1
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT + COALESCE ( - COUNT( * ), + 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-1029
SELECT + COALESCE ( - COUNT ( * ), + 82 )
----
-1

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

query I rowsort
SELECT CASE - - 73 WHEN - 27 THEN 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL + 26 * + - MAX( ALL + 19 ) + - - 27 + + 45 * + 42 AS col1
----
1423

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL + 26 * + - MAX ( ALL + 19 ) + - - 27 + + 45 * + 42 AS col1
----
1423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1033
SELECT DISTINCT 84 * + 52 + - - COUNT( ALL - ( CAST( + 99 AS SIGNED ) ) ) * + NULLIF ( + 9, - 40 + - ( COUNT( * ) + 54 ) ) AS col0
----
4377

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT 84 * + 52 + - - COUNT ( ALL - ( CAST ( + 99 AS INTEGER ) ) ) * + NULLIF ( + 9, - 40 + - ( COUNT ( * ) + 54 ) ) AS col0
----
4377

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT - 42 * - COUNT( * ) * 36 + - 82 col0
----
1430

skipif mysql # not compatible
query I rowsort label-1034
SELECT - 42 * - COUNT ( * ) * 36 + - 82 col0
----
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL - COUNT( * ) * 62 + + - 7
----
-69

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL - COUNT ( * ) * 62 + + - 7
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1036
SELECT DISTINCT + - CASE ( + 66 ) WHEN - COUNT( * ) THEN + 7 + + COALESCE ( COUNT( * ), + COUNT( * ) * 78 + 85, - 12 ) / 4 WHEN 78 THEN CASE - 24 WHEN + CASE 5 WHEN + 77 * - 11 THEN - CAST( 90 AS SIGNED ) WHEN 62 THEN NULL END * - 62 + - MAX( 78 ) THEN NULL WHEN 48 THEN + 57 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT + - CASE ( + 66 ) WHEN - COUNT ( * ) THEN + 7 + + COALESCE ( COUNT ( * ), + COUNT ( * ) * 78 + 85, - 12 ) / 4 WHEN 78 THEN CASE - 24 WHEN + CASE 5 WHEN + 77 * - 11 THEN - CAST ( 90 AS INTEGER ) WHEN 62 THEN NULL END * - 62 + - MAX ( 78 ) THEN NULL WHEN 48 THEN + 57 ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT DISTINCT COUNT( * ) * + 51 + 19 + + 58 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT COUNT ( * ) * + 51 + 19 + + 58 AS col2
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1038
SELECT ALL - - 64 * 32 * - + COUNT( * ) * - 94 + 82 * COALESCE ( - 6 + - 8 DIV 78, 64, - SUM( DISTINCT 74 ) )
----
192020

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL - - 64 * 32 * - + COUNT ( * ) * - 94 + 82 * COALESCE ( - 6 + - 8 / 78, 64, - SUM ( DISTINCT 74 ) )
----
192020

query I rowsort
SELECT + 56 * + + 74 - 49
----
4095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1040
SELECT - MAX( 38 ) + + 24 * CAST( 88 AS SIGNED ) * 0 - - 28
----
-10

skipif mysql # not compatible
query I rowsort label-1040
SELECT - MAX ( 38 ) + + 24 * CAST ( 88 AS INTEGER ) * 0 - - 28
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1041
SELECT - - 33 / + CASE NULLIF ( 70, + COUNT( * ) / CAST( COUNT( * ) AS SIGNED ) ) WHEN - 14 THEN 93 * COUNT( * ) WHEN CASE - 31 WHEN - 52 / 25 THEN 90 / + 8 WHEN + 58 THEN NULL END THEN CASE - MAX( 28 ) WHEN 1 * 54 + + 16 * + 97 THEN COUNT( * ) END / COUNT( + 84 ) + - COUNT( * ) WHEN + 89 THEN CAST( 44 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1041
SELECT - - 33 / + CASE NULLIF ( 70, + COUNT ( * ) / CAST ( COUNT ( * ) AS INTEGER ) ) WHEN - 14 THEN 93 * COUNT ( * ) WHEN CASE - 31 WHEN - 52 / 25 THEN 90 / + 8 WHEN + 58 THEN NULL END THEN CASE - MAX ( 28 ) WHEN 1 * 54 + + 16 * + 97 THEN COUNT ( * ) END / COUNT ( + 84 ) + - COUNT ( * ) WHEN + 89 THEN CAST ( 44 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT - + 89 * - 58 * - MAX( ALL 88 ) AS col0
----
-454256

skipif mysql # not compatible
query I rowsort label-1042
SELECT - + 89 * - 58 * - MAX ( ALL 88 ) AS col0
----
-454256

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1043
SELECT DISTINCT - COALESCE ( + CAST( NULL AS SIGNED ), 70 ) + CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT - COALESCE ( + CAST ( NULL AS INTEGER ), 70 ) + CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1044
SELECT DISTINCT - ( + + 1 ) + 4 - 9 + COALESCE ( - 7, + CAST( - COUNT( * ) AS SIGNED ) * - ( SUM( - 80 ) ), + 99 + + MAX( + 80 + 49 ) ) * - 2 col0
----
8

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT - ( + + 1 ) + 4 - 9 + COALESCE ( - 7, + CAST ( - COUNT ( * ) AS INTEGER ) * - ( SUM ( - 80 ) ), + 99 + + MAX ( + 80 + 49 ) ) * - 2 col0
----
8

query I rowsort
SELECT - + 98 + + NULLIF ( - - ( 46 ), - 74 / - 12 )
----
-52

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

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

query I rowsort
SELECT 47 col0
----
47

query I rowsort
SELECT ALL + 90 * + 41
----
3690

query I rowsort
SELECT - 19 col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1050
SELECT + 79 + + + 58 + - 89 DIV + 28 + ( 15 ) AS col2
----
149

skipif mysql # not compatible
query I rowsort label-1050
SELECT + 79 + + + 58 + - 89 / + 28 + ( 15 ) AS col2
----
149

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

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

query I rowsort
SELECT - NULLIF ( + 47, + 0 + + 43 ) * + 63 col0
----
-2961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1053
SELECT + CAST( + 41 AS SIGNED ) + - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-1053
SELECT + CAST ( + 41 AS INTEGER ) + - COUNT ( * )
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT ALL ( + - MAX( ALL 71 ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL ( + - MAX ( ALL 71 ) ) AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1056
SELECT + CAST( NULL AS DECIMAL ) + - MIN( DISTINCT + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT + CAST ( NULL AS REAL ) + - MIN ( DISTINCT + 44 )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT DISTINCT + 46 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT + 46 / 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT + 71 * - + COUNT( * ) * - + SUM( ALL 83 ) * + 6 AS col0
----
35358

skipif mysql # not compatible
query I rowsort label-1059
SELECT + 71 * - + COUNT ( * ) * - + SUM ( ALL 83 ) * + 6 AS col0
----
35358

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT ALL MAX( - 42 ) * + COUNT( * ) * - + 17 AS col1
----
714

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL MAX ( - 42 ) * + COUNT ( * ) * - + 17 AS col1
----
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1061
SELECT - CAST( + 44 AS SIGNED ) * + - 20
----
880

skipif mysql # not compatible
query I rowsort label-1061
SELECT - CAST ( + 44 AS INTEGER ) * + - 20
----
880

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT - COALESCE ( + 42, - 41 ) DIV 82 + 27
----
27

skipif mysql # not compatible
query I rowsort label-1062
SELECT - COALESCE ( + 42, - 41 ) / 82 + 27
----
27

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

skipif mysql # not compatible
query I rowsort label-1063
SELECT - 0 / + - 23
----
0

query I rowsort
SELECT + 65 + + 22 * + 72
----
1649

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

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

query I rowsort
SELECT + 82 * + - 38
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT 28 * + COALESCE ( - 91, - 72 * + - COUNT( * ) * - 52, 48 + + 61 ) + + ( + MAX( - 52 ) + - ( + 68 ) * + COUNT( * ) )
----
-2668

skipif mysql # not compatible
query I rowsort label-1067
SELECT 28 * + COALESCE ( - 91, - 72 * + - COUNT ( * ) * - 52, 48 + + 61 ) + + ( + MAX ( - 52 ) + - ( + 68 ) * + COUNT ( * ) )
----
-2668

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1069
SELECT ALL - - COUNT( * ) DIV - 41 + COUNT( * ) + + MAX( 66 ) * + ( + 95 + - 22 )
----
4819

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL - - COUNT ( * ) / - 41 + COUNT ( * ) + + MAX ( 66 ) * + ( + 95 + - 22 )
----
4819

query I rowsort
SELECT ALL NULLIF ( 65, - - 95 ) * - + 72
----
-4680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1071
SELECT - + 7 DIV - 46 + - + CAST( + 28 AS SIGNED ) * + - COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1071
SELECT - + 7 / - 46 + - + CAST ( + 28 AS INTEGER ) * + - COUNT ( * ) AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1072
SELECT - 98 DIV - - COUNT( * ) - + 45 * + 31 + + + COUNT( * )
----
-1492

skipif mysql # not compatible
query I rowsort label-1072
SELECT - 98 / - - COUNT ( * ) - + 45 * + 31 + + + COUNT ( * )
----
-1492

query I rowsort
SELECT + 40 - - 48
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT - NULLIF ( 3, + - CASE 59 WHEN + 78 * 93 THEN + COALESCE ( 84, + 82, 4 ) + + CAST( 54 AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) * - COUNT( * ) THEN NULL END + 49 ) * CASE - 59 * 3 WHEN - COUNT( * ) THEN 99 ELSE 15 * ( + 53 * 72 ) END
----
-171720

skipif mysql # not compatible
query I rowsort label-1074
SELECT - NULLIF ( 3, + - CASE 59 WHEN + 78 * 93 THEN + COALESCE ( 84, + 82, 4 ) + + CAST ( 54 AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) * - COUNT ( * ) THEN NULL END + 49 ) * CASE - 59 * 3 WHEN - COUNT ( * ) THEN 99 ELSE 15 * ( + 53 * 72 ) END
----
-171720

query I rowsort
SELECT ALL + 98 * 49 AS col0
----
4802

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1076
SELECT COUNT( + CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-1076
SELECT COUNT ( + CAST ( NULL AS REAL ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1077
SELECT 91 + - - COUNT( * ) + - COALESCE ( 23, - COUNT( * ) ) DIV 59
----
92

skipif mysql # not compatible
query I rowsort label-1077
SELECT 91 + - - COUNT ( * ) + - COALESCE ( 23, - COUNT ( * ) ) / 59
----
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT ALL - NULLIF ( + 84, - - 90 - + COUNT( * ) ) * - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL - NULLIF ( + 84, - - 90 - + COUNT ( * ) ) * - COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT + COUNT( * ) - 5 - 91 - + 98 / - CASE WHEN 65 IS NULL THEN NULL WHEN NOT - 75 + 1 IS NOT NULL THEN + 14 + 69 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1080
SELECT + COUNT ( * ) - 5 - 91 - + 98 / - CASE WHEN 65 IS NULL THEN NULL WHEN NOT - 75 + 1 IS NOT NULL THEN + 14 + 69 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT DISTINCT + COUNT( * ) * - 75
----
-75

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT + COUNT ( * ) * - 75
----
-75

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

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

query I rowsort
SELECT - 26 * - 52
----
1352

query I rowsort
SELECT - ( - 26 ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1085
SELECT ALL - 31 DIV - - 37
----
0

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL - 31 / - - 37
----
0

query I rowsort
SELECT 63 * - 31
----
-1953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT 98 * + - 38 * + - COUNT( ALL + - 53 ) * - 49 * CAST( NULL AS SIGNED ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT 98 * + - 38 * + - COUNT ( ALL + - 53 ) * - 49 * CAST ( NULL AS INTEGER ) * + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT 69 - - - COUNT( * ) * 12 col0
----
57

skipif mysql # not compatible
query I rowsort label-1088
SELECT 69 - - - COUNT ( * ) * 12 col0
----
57

query II rowsort
SELECT - 29 AS col0, - 73 AS col2
----
-29
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL + NULLIF ( - - 42, - CASE + 13 WHEN - + 12 THEN + - ( 35 ) - - 46 * + 49 ELSE NULL END ) * + COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL + NULLIF ( - - 42, - CASE + 13 WHEN - + 12 THEN + - ( 35 ) - - 46 * + 49 ELSE NULL END ) * + COUNT ( * ) AS col2
----
42

query I rowsort
SELECT 98 * + - 62 AS col2
----
-6076

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1092
SELECT ALL + 59 * CAST( NULL AS SIGNED ) AS col2, + ( + + 91 )
----
NULL
91

skipif mysql # not compatible
query II rowsort label-1092
SELECT ALL + 59 * CAST ( NULL AS INTEGER ) AS col2, + ( + + 91 )
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT 68 + + - COUNT( * ) - - 89
----
156

skipif mysql # not compatible
query I rowsort label-1093
SELECT 68 + + - COUNT ( * ) - - 89
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1094
SELECT 37 AS col2, + 54 * + + CAST( NULL AS SIGNED )
----
37
NULL

skipif mysql # not compatible
query II rowsort label-1094
SELECT 37 AS col2, + 54 * + + CAST ( NULL AS INTEGER )
----
37
NULL

query II rowsort
SELECT ALL 42, 83 AS col0
----
42
83

query I rowsort
SELECT 87 + - 82 * + 47 + - 8
----
-3775

query I rowsort
SELECT 24 col2
----
24

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

query I rowsort
SELECT DISTINCT - 42 + + 85 - 73 * 78
----
-5651

query I rowsort
SELECT ALL 24 + + 24 + + 56 col2
----
104

query I rowsort
SELECT 60 * - 69 + - 32 col0
----
-4172

onlyif mysql # aggregate syntax: 
query II rowsort label-1102
SELECT DISTINCT - + COUNT( * ) AS col0, MAX( DISTINCT + 8 )
----
-1
8

skipif mysql # not compatible
query II rowsort label-1102
SELECT DISTINCT - + COUNT ( * ) AS col0, MAX ( DISTINCT + 8 )
----
-1
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1103
SELECT ALL - 94 + - NULLIF ( - + NULLIF ( - 66, + 61 - 23 + CAST( NULL AS DECIMAL ) * 34 ), 57 * - 91 ) * 86
----
-5770

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL - 94 + - NULLIF ( - + NULLIF ( - 66, + 61 - 23 + CAST ( NULL AS REAL ) * 34 ), 57 * - 91 ) * 86
----
-5770

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT 88 * + - COUNT( * ) + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1104
SELECT 88 * + - COUNT ( * ) + 88 AS col1
----
0

query I rowsort
SELECT 36 * + 41 col2
----
1476

query I rowsort
SELECT 85 + + 15 AS col1
----
100

query I rowsort
SELECT 16 * + 10 AS col0
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1108
SELECT ALL + 42 * - + COALESCE ( 85, - 3 + - 37 ) * - COALESCE ( 86, 24 DIV SUM( DISTINCT - 56 ) ) + + 48 + 64
----
307132

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL + 42 * - + COALESCE ( 85, - 3 + - 37 ) * - COALESCE ( 86, 24 / SUM ( DISTINCT - 56 ) ) + + 48 + 64
----
307132

query II rowsort
SELECT ALL - 64, 1 AS col2
----
-64
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1110
SELECT ALL - - COUNT( * ) AS col2, + 70 * MAX( + COALESCE ( + - ( + - 96 ), - 87 * - 9 + - 32 * 45 ) ) + + 15 AS col1
----
1
6735

skipif mysql # not compatible
query II rowsort label-1110
SELECT ALL - - COUNT ( * ) AS col2, + 70 * MAX ( + COALESCE ( + - ( + - 96 ), - 87 * - 9 + - 32 * 45 ) ) + + 15 AS col1
----
1
6735

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

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

query I rowsort
SELECT ALL - - 27 col2
----
27

query I rowsort
SELECT + 37 col2
----
37

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

skipif mysql # not compatible
query I rowsort label-1114
SELECT + + MIN ( 61 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT + 50 + COALESCE ( - 37, + 69 DIV 84, + + 90 * 50 + 20, 21 ) * 73
----
-2651

skipif mysql # not compatible
query I rowsort label-1115
SELECT + 50 + COALESCE ( - 37, + 69 / 84, + + 90 * 50 + 20, 21 ) * 73
----
-2651

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT + COUNT( * ) * + ( + CASE 65 WHEN + COUNT( * ) * - 78 THEN NULL WHEN 42 THEN 65 + 81 END ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT + COUNT ( * ) * + ( + CASE 65 WHEN + COUNT ( * ) * - 78 THEN NULL WHEN 42 THEN 65 + 81 END ) * 82
----
NULL

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

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

query I rowsort
SELECT + 7 * + + 81 + - 50 + - 37 + - + 3
----
477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1120
SELECT DISTINCT 3 * - 60 col1, + CAST( NULL AS SIGNED ) * + MIN( - 17 ) + - 84 + 10 * + 55 col1
----
-180
NULL

skipif mysql # not compatible
query II rowsort label-1120
SELECT DISTINCT 3 * - 60 col1, + CAST ( NULL AS INTEGER ) * + MIN ( - 17 ) + - 84 + 10 * + 55 col1
----
-180
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT + COUNT( * ) * 12 + - 53 col0
----
-41

skipif mysql # not compatible
query I rowsort label-1121
SELECT + COUNT ( * ) * 12 + - 53 col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1122
SELECT 72 * COUNT( * ) * - 88 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT 72 * COUNT ( * ) * - 88 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1123
SELECT - COUNT( - 49 ) AS col0, SUM( ALL 31 )
----
-1
31

skipif mysql # not compatible
query II rowsort label-1123
SELECT - COUNT ( - 49 ) AS col0, SUM ( ALL 31 )
----
-1
31

query I rowsort
SELECT DISTINCT 67 * + 97 * - + 91
----
-591409

query I rowsort
SELECT 98 + - 75 * + 24 + - + 29
----
-1731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1126
SELECT ALL 2 + 98, + COALESCE ( + 7, + 56 * + 81, + 90 * - ( CASE 95 WHEN ( CAST( NULL AS SIGNED ) ) * 99 THEN - 12 * 9 WHEN NULLIF ( 94, 91 * - 77 + 31 ) / ( + COUNT( * ) ) THEN NULL END - COUNT( - ( 64 ) ) ) ) AS col2
----
100
7

skipif mysql # not compatible
query II rowsort label-1126
SELECT ALL 2 + 98, + COALESCE ( + 7, + 56 * + 81, + 90 * - ( CASE 95 WHEN ( CAST ( NULL AS INTEGER ) ) * 99 THEN - 12 * 9 WHEN NULLIF ( 94, 91 * - 77 + 31 ) / ( + COUNT ( * ) ) THEN NULL END - COUNT ( - ( 64 ) ) ) ) AS col2
----
100
7

query I rowsort
SELECT 68 * + ( - 87 )
----
-5916

onlyif mysql # aggregate syntax: 
query II rowsort label-1128
SELECT 7 * - 25, MIN( ALL + + 30 ) AS col2
----
-175
30

skipif mysql # not compatible
query II rowsort label-1128
SELECT 7 * - 25, MIN ( ALL + + 30 ) AS col2
----
-175
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT 13 + - 32 DIV - + 38 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-1129
SELECT 13 + - 32 / - + 38 AS col1
----
13

query I rowsort
SELECT 23 + 50
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL + COUNT( * ) + - 42
----
-41

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL + COUNT ( * ) + - 42
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1132
SELECT ALL 18 / + ( 18 ) / - CAST( NULL AS DECIMAL ) + 42 + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL 18 / + ( 18 ) / - CAST ( NULL AS REAL ) + 42 + + 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1133
SELECT ALL COUNT( + 44 ) AS col0, - 37 AS col1
----
1
-37

skipif mysql # not compatible
query II rowsort label-1133
SELECT ALL COUNT ( + 44 ) AS col0, - 37 AS col1
----
1
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-1134
SELECT ALL COUNT( ALL 54 ) AS col2, 55 AS col2
----
1
55

skipif mysql # not compatible
query II rowsort label-1134
SELECT ALL COUNT ( ALL 54 ) AS col2, 55 AS col2
----
1
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1135
SELECT DISTINCT - COUNT( DISTINCT - - 8 ) * + CAST( NULL AS SIGNED ) - + 17 + + - 95 + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT - COUNT ( DISTINCT - - 8 ) * + CAST ( NULL AS INTEGER ) - + 17 + + - 95 + + 49
----
NULL

query I rowsort
SELECT + 9 * + 92
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT SUM( + 70 ) * - + 66
----
-4620

skipif mysql # not compatible
query I rowsort label-1137
SELECT SUM ( + 70 ) * - + 66
----
-4620

query I rowsort
SELECT ALL - NULLIF ( + 72, + 34 ) * + - 47 AS col2
----
3384

query I rowsort
SELECT COALESCE ( 73, + 77 + + 52 )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1140
SELECT - CAST( - - COALESCE ( - 70, + 4 + - + COALESCE ( - 23, - COUNT( * ) * + 73 ) ) AS SIGNED ) + 44
----
114

skipif mysql # not compatible
query I rowsort label-1140
SELECT - CAST ( - - COALESCE ( - 70, + 4 + - + COALESCE ( - 23, - COUNT ( * ) * + 73 ) ) AS INTEGER ) + 44
----
114

query I rowsort
SELECT DISTINCT + 71 AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT ALL + COUNT( * ) * 70 DIV + COUNT( * ) - 64 + + 60 * + 70 + - 43 AS col2
----
4163

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL + COUNT ( * ) * 70 / + COUNT ( * ) - 64 + + 60 * + 70 + - 43 AS col2
----
4163

query II rowsort
SELECT ALL - + 22 * - - 18 AS col2, 45
----
-396
45

query I rowsort
SELECT DISTINCT + - 33
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1145
SELECT DISTINCT + CASE + NULLIF ( - - SUM( + - 74 ), + COUNT( * ) ) WHEN COALESCE ( + 12, 35 * 62 + CAST( NULL AS SIGNED ) ) THEN 67 WHEN 4 THEN + NULLIF ( COUNT( * ), - 57 * + CAST( NULL AS SIGNED ) ) + 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT + CASE + NULLIF ( - - SUM ( + - 74 ), + COUNT ( * ) ) WHEN COALESCE ( + 12, 35 * 62 + CAST ( NULL AS INTEGER ) ) THEN 67 WHEN 4 THEN + NULLIF ( COUNT ( * ), - 57 * + CAST ( NULL AS INTEGER ) ) + 89 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT - + NULLIF ( - - 77, - SUM( 69 ) ) * - ( 92 )
----
7084

skipif mysql # not compatible
query I rowsort label-1146
SELECT - + NULLIF ( - - 77, - SUM ( 69 ) ) * - ( 92 )
----
7084

query I rowsort
SELECT - - 41 - + CASE - 7 WHEN 1 THEN NULL WHEN + 4 THEN NULL ELSE - 36 END + 46
----
123

query I rowsort
SELECT - + 66 + - 61 + - 66 + + + 93 - + ( 82 ) * CASE + 53 WHEN 1 THEN 68 * - ( 39 ) WHEN 49 * 89 THEN + 74 END AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 45 ) * - ( 8 ) AS col0
----
360

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT - 47 * - + COUNT( * ) AS col1, + 6 AS col1
----
47
6

skipif mysql # not compatible
query II rowsort label-1150
SELECT - 47 * - + COUNT ( * ) AS col1, + 6 AS col1
----
47
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1151
SELECT + 31 + + - COUNT( * ) col2, 74 + 48 + 60 + 91
----
30
273

skipif mysql # not compatible
query II rowsort label-1151
SELECT + 31 + + - COUNT ( * ) col2, 74 + 48 + 60 + 91
----
30
273

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

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

query I rowsort
SELECT ALL + 31 * + 68 * 62 AS col2
----
130696

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT DISTINCT - 77 + - 43 + - MIN( - - 69 )
----
-189

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT - 77 + - 43 + - MIN ( - - 69 )
----
-189

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT ALL 16 AS col1, 40 + COUNT( * )
----
16
41

skipif mysql # not compatible
query II rowsort label-1155
SELECT ALL 16 AS col1, 40 + COUNT ( * )
----
16
41

query I rowsort
SELECT + 20 * + - 73 AS col1
----
-1460

query I rowsort
SELECT ALL - 59 + 51
----
-8

query II rowsort
SELECT 71 col0, 38
----
71
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1159
SELECT DISTINCT 61 + - + 63 + + 35 - + CAST( ( - - NULLIF ( - + 77, - 95 ) ) AS SIGNED ) * 23 / - ( CAST( - CASE 5 WHEN - NULLIF ( 88, - 68 * COUNT( + ( + CAST( NULL AS SIGNED ) ) ) ) - + 78 THEN + 33 / - MIN( - 48 ) + COUNT( * ) * 57 WHEN COUNT( * ) - MAX( DISTINCT + 57 + + 65 ) THEN - COUNT( * ) ELSE NULL END AS SIGNED ) * + ( + 86 / 18 - - 44 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT 61 + - + 63 + + 35 - + CAST ( ( - - NULLIF ( - + 77, - 95 ) ) AS INTEGER ) * 23 / - ( CAST ( - CASE 5 WHEN - NULLIF ( 88, - 68 * COUNT ( + ( + CAST ( NULL AS INTEGER ) ) ) ) - + 78 THEN + 33 / - MIN ( - 48 ) + COUNT ( * ) * 57 WHEN COUNT ( * ) - MAX ( DISTINCT + 57 + + 65 ) THEN - COUNT ( * ) ELSE NULL END AS INTEGER ) * + ( + 86 / 18 - - 44 ) ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( 13, - 9 * + 4 ) AS col2
----
-13

query I rowsort
SELECT - 84 * - - 4 AS col1
----
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1162
SELECT - NULLIF ( 96, - CAST( NULL AS SIGNED ) )
----
-96

skipif mysql # not compatible
query I rowsort label-1162
SELECT - NULLIF ( 96, - CAST ( NULL AS INTEGER ) )
----
-96

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

query II rowsort
SELECT ALL 81 AS col0, 40 + 47 - - 30 * - 12
----
81
-273

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT - COALESCE ( + + 1, - + 20 * - 19 + + COALESCE ( + COUNT( * ), COUNT( DISTINCT + + 62 ) * MIN( ALL 26 - 88 ) + - 44, 68 - 9 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1166
SELECT - COALESCE ( + + 1, - + 20 * - 19 + + COALESCE ( + COUNT ( * ), COUNT ( DISTINCT + + 62 ) * MIN ( ALL 26 - 88 ) + - 44, 68 - 9 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT ALL 48 + - COUNT( * ) + + 93 * - 89 AS col1
----
-8230

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL 48 + - COUNT ( * ) + + 93 * - 89 AS col1
----
-8230

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT + 54 - + 37 + - 68 + 37 * + 21 * COUNT( * ) AS col2
----
726

skipif mysql # not compatible
query I rowsort label-1168
SELECT + 54 - + 37 + - 68 + 37 * + 21 * COUNT ( * ) AS col2
----
726

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1170
SELECT + 6 DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1170
SELECT + 6 / 98 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1171
SELECT ALL COUNT( * ) + - - 3 + COALESCE ( - 63, - 24 * - 71 * + - 8 + + + COUNT( * ) + ( + 54 ), 8 * 66 ) DIV 97
----
4

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL COUNT ( * ) + - - 3 + COALESCE ( - 63, - 24 * - 71 * + - 8 + + + COUNT ( * ) + ( + 54 ), 8 * 66 ) / 97
----
4

query I rowsort
SELECT + 24 * 65 AS col2
----
1560

query I rowsort
SELECT + 94 + + 22
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1174
SELECT - 63 - + - 79 + - 84 - + COALESCE ( 98, - + CASE + CAST( + - 53 AS SIGNED ) WHEN + 64 THEN - 18 * - 13 END ) * - 8 * COUNT( * )
----
716

skipif mysql # not compatible
query I rowsort label-1174
SELECT - 63 - + - 79 + - 84 - + COALESCE ( 98, - + CASE + CAST ( + - 53 AS INTEGER ) WHEN + 64 THEN - 18 * - 13 END ) * - 8 * COUNT ( * )
----
716

query II rowsort
SELECT + - 55 * - - 30 * 17 AS col2, 97
----
-28050
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT + 7 + + - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1176
SELECT + 7 + + - COUNT ( * ) AS col2
----
6

query II rowsort
SELECT - - 66 col0, 11
----
66
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT SUM( ALL + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-1178
SELECT SUM ( ALL + 95 )
----
95

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

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL + COUNT ( * ) / + - ( - 39 ) * - 40 + 69 AS col1
----
69

query I rowsort
SELECT ALL - - 87 * - 76 * NULLIF ( + NULLIF ( + 8, + 68 ), + + 76 ) + 41
----
-52855

onlyif mysql # DIV for integer division: 
query II rowsort label-1181
SELECT ALL + 48 AS col1, + ( 79 ) DIV + 17 col0
----
48
4

skipif mysql # not compatible
query II rowsort label-1181
SELECT ALL + 48 AS col1, + ( 79 ) / + 17 col0
----
48
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT - - CASE + 35 WHEN + 1 + + MIN( + 66 ) THEN - 6 + - 23 WHEN 37 * 38 THEN + COUNT( * ) * 32 END + + AVG ( DISTINCT + 63 + - 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT - - CASE + 35 WHEN + 1 + + MIN ( + 66 ) THEN - 6 + - 23 WHEN 37 * 38 THEN + COUNT ( * ) * 32 END + + AVG ( DISTINCT + 63 + - 67 ) AS col1
----
NULL

query I rowsort
SELECT - + 81 + - - 65 AS col1
----
-16

query I rowsort
SELECT + - 24
----
-24

query I rowsort
SELECT - 79 * - 44 col2
----
3476

query I rowsort
SELECT ALL - 59 * - + 62
----
3658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1187
SELECT + CAST( NULL AS SIGNED ) * + ( + 45 ) + - 0 + + + CASE - 29 WHEN - ( + + 53 ) THEN + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT + CAST ( NULL AS INTEGER ) * + ( + 45 ) + - 0 + + + CASE - 29 WHEN - ( + + 53 ) THEN + 9 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT - - 4 * 80 * + 68 - CAST( - COUNT( * ) AS SIGNED ) + 61 * + + MAX( - 92 ) + - CASE 64 WHEN CASE - 23 WHEN 31 THEN + COUNT( * ) ELSE + 58 END + 7 * - COUNT( * ) THEN NULL WHEN 28 THEN NULL ELSE - CASE + 77 WHEN - COUNT( * ) * 29 THEN + 27 * 81 - + 21 WHEN 39 THEN AVG ( ALL CAST( - 2 AS SIGNED ) ) ELSE NULL END END * - ( + 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT - - 4 * 80 * + 68 - CAST ( - COUNT ( * ) AS INTEGER ) + 61 * + + MAX ( - 92 ) + - CASE 64 WHEN CASE - 23 WHEN 31 THEN + COUNT ( * ) ELSE + 58 END + 7 * - COUNT ( * ) THEN NULL WHEN 28 THEN NULL ELSE - CASE + 77 WHEN - COUNT ( * ) * 29 THEN + 27 * 81 - + 21 WHEN 39 THEN AVG ( ALL CAST ( - 2 AS INTEGER ) ) ELSE NULL END END * - ( + 63 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 98 * 64
----
-6272

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT ALL + 0 DIV - 33 col1
----
0

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL + 0 / - 33 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT ALL ( 11 ) * - ( - COUNT( * ) ) + - 94 + 32 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL ( 11 ) * - ( - COUNT ( * ) ) + - 94 + 32 AS col2
----
-51

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

query I rowsort
SELECT COALESCE ( - 77, + 71 * + 19 ) AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1196
SELECT - CASE - + COALESCE ( CAST( NULL AS DECIMAL ), COUNT( * ) ) WHEN - - NULLIF ( COALESCE ( + 48, COUNT( * ) ), + COUNT( * ) / - 44 ) THEN - 14 END + ( - 42 + - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT - CASE - + COALESCE ( CAST ( NULL AS REAL ), COUNT ( * ) ) WHEN - - NULLIF ( COALESCE ( + 48, COUNT ( * ) ), + COUNT ( * ) / - 44 ) THEN - 14 END + ( - 42 + - COUNT ( * ) ) AS col1
----
NULL

query II rowsort
SELECT + 90 - + 60 col0, - 14 + 66 AS col2
----
30
52

query I rowsort
SELECT + NULLIF ( 51, 1 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1199
SELECT NULLIF ( - MAX( ALL - 63 ), 70 ) * - 88 + + + 42 + - 29, 73 AS col1
----
-5531
73

skipif mysql # not compatible
query II rowsort label-1199
SELECT NULLIF ( - MAX ( ALL - 63 ), 70 ) * - 88 + + + 42 + - 29, 73 AS col1
----
-5531
73

query I rowsort
SELECT ALL + 52 * - - 77 + + 26 AS col0
----
4030

query I rowsort
SELECT ALL + 1 * + - 65
----
-65

query I rowsort
SELECT - 90 * - 66 + - - 74 AS col2
----
6014

onlyif mysql # aggregate syntax: 
query II rowsort label-1203
SELECT DISTINCT ( - + 28 ) * COUNT( * ) + + 80, - 37 * - 71 col1
----
52
2627

skipif mysql # not compatible
query II rowsort label-1203
SELECT DISTINCT ( - + 28 ) * COUNT ( * ) + + 80, - 37 * - 71 col1
----
52
2627

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL 9 * + 19 + - + SUM( - 9 ) + + 29
----
209

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL 9 * + 19 + - + SUM ( - 9 ) + + 29
----
209

query I rowsort
SELECT + 6 + - 71 AS col2
----
-65

query I rowsort
SELECT ALL + 65 - + 70 + + 70
----
65

query I rowsort
SELECT + 83 + - 24 AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1208
SELECT - 94 * - ( 95 ) * + + 32 * + COALESCE ( - + 50, + 79 + - + 29 DIV + - 74 * 29 ) * + MAX( - 50 ) AS col1
----
714400000

skipif mysql # not compatible
query I rowsort label-1208
SELECT - 94 * - ( 95 ) * + + 32 * + COALESCE ( - + 50, + 79 + - + 29 / + - 74 * 29 ) * + MAX ( - 50 ) AS col1
----
714400000

query I rowsort
SELECT ( + - 27 ) + - + 48 * - + 62 * COALESCE ( - 65, 52 )
----
-193467

query I rowsort
SELECT ALL - 15 - - - 35
----
-50

query I rowsort
SELECT 21 * 8 col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT COUNT( * ) * + 82
----
82

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT COUNT ( * ) * + 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL + COALESCE ( + + MIN( + + 62 ), - CASE - - 73 WHEN MIN( - 2 ) THEN - 5 WHEN 45 + + 18 THEN NULL ELSE 95 END )
----
62

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL + COALESCE ( + + MIN ( + + 62 ), - CASE - - 73 WHEN MIN ( - 2 ) THEN - 5 WHEN 45 + + 18 THEN NULL ELSE 95 END )
----
62

query I rowsort
SELECT - - 60
----
60

query I rowsort
SELECT DISTINCT - 21 * ( + 97 )
----
-2037

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT NULLIF ( - 37, - COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT NULLIF ( - 37, - COUNT ( * ) )
----
-37

query I rowsort
SELECT + + 37 col1
----
37

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1219
SELECT ALL - CAST( - 15 AS SIGNED ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL - CAST ( - 15 AS INTEGER ) AS col2
----
15

query II rowsort
SELECT ALL - 69 + - 39 AS col2, 76 AS col2
----
-108
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT DISTINCT + 6 DIV + ( - 99 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT + 6 / + ( - 99 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 22 + + NULLIF ( ( + 8 ), + 51 * + + 3 ) + 60 + + 61 AS col2
----
151

query I rowsort
SELECT DISTINCT - 56 + - 44
----
-100

query I rowsort
SELECT ALL 2 + - - 97 + - + 98 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT CASE - + 20 WHEN + 80 THEN NULL ELSE - 78 END * - + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-1225
SELECT CASE - + 20 WHEN + 80 THEN NULL ELSE - 78 END * - + COUNT ( * )
----
78

query I rowsort
SELECT 72 + 12 AS col1
----
84

query I rowsort
SELECT DISTINCT + 14 + + 93 AS col1
----
107

query I rowsort
SELECT - 87 * - + 98 + + + 89
----
8615

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT DISTINCT 84 * COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT 84 * COUNT ( * ) AS col2
----
84

query I rowsort
SELECT DISTINCT 1 + + + 64 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT 7 * ( + 46 ) * - CASE - - 45 WHEN + + 88 THEN NULL WHEN - - 17 + + - 36 THEN + + NULLIF ( - COUNT( * ), - 66 + CASE + 43 WHEN + 0 THEN NULL WHEN + 52 * 16 - COUNT( * ) THEN NULL ELSE + 91 - 39 END * - 10 ) / + 53 + COALESCE ( + COUNT( * ), - COUNT( * ) * MIN( + 48 ), ( - 24 ) ) * - 17 WHEN 65 * COUNT( * ) THEN NULL END + + ( - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1231
SELECT 7 * ( + 46 ) * - CASE - - 45 WHEN + + 88 THEN NULL WHEN - - 17 + + - 36 THEN + + NULLIF ( - COUNT ( * ), - 66 + CASE + 43 WHEN + 0 THEN NULL WHEN + 52 * 16 - COUNT ( * ) THEN NULL ELSE + 91 - 39 END * - 10 ) / + 53 + COALESCE ( + COUNT ( * ), - COUNT ( * ) * MIN ( + 48 ), ( - 24 ) ) * - 17 WHEN 65 * COUNT ( * ) THEN NULL END + + ( - 55 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1233
SELECT ALL 45 AS col1, CASE - - 61 WHEN - 92 THEN 9 ELSE + MAX( + 41 ) END AS col1
----
45
41

skipif mysql # not compatible
query II rowsort label-1233
SELECT ALL 45 AS col1, CASE - - 61 WHEN - 92 THEN 9 ELSE + MAX ( + 41 ) END AS col1
----
45
41

query I rowsort
SELECT 22 * + 25 AS col2
----
550

onlyif mysql # DIV for integer division: 
query I rowsort label-1235
SELECT + 2 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-1235
SELECT + 2 / 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1236
SELECT ALL - - ( 87 ) * ( COALESCE ( - - 11, + COUNT( * ) ) ), - 83 AS col1
----
957
-83

skipif mysql # not compatible
query II rowsort label-1236
SELECT ALL - - ( 87 ) * ( COALESCE ( - - 11, + COUNT ( * ) ) ), - 83 AS col1
----
957
-83

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

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

query I rowsort
SELECT DISTINCT CASE + 26 WHEN 96 THEN 77 ELSE 33 * - 53 + + + 12 END AS col2
----
-1737

query I rowsort
SELECT - 52 * + + 86 * + 26 + + 25 + 86
----
-116161

query I rowsort
SELECT ALL - 59 + + - 4 * + 12 col2
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT COUNT( * ) + - - 21 * - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-1241
SELECT COUNT ( * ) + - - 21 * - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT + MIN( - 34 ) - + 10 * - + 34 col0
----
306

skipif mysql # not compatible
query I rowsort label-1242
SELECT + MIN ( - 34 ) - + 10 * - + 34 col0
----
306

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

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

query I rowsort
SELECT 54 + - 8
----
46

query I rowsort
SELECT ALL - 68 + + + 25
----
-43

query I rowsort
SELECT DISTINCT - 9 * + NULLIF ( 80, + COALESCE ( + 71, 45 ) ) * + ( - 32 ) - - + 99 AS col1
----
23139

query I rowsort
SELECT ALL 67 * - 27
----
-1809

query I rowsort
SELECT ALL 65 * - 99 + 35 + + 48 + - 86 + + 97
----
-6341

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

skipif mysql # not compatible
query I rowsort label-1249
SELECT COUNT ( * ) / - - COUNT ( * ) + 31
----
32

query I rowsort
SELECT 23 + - 37
----
-14

query I rowsort
SELECT DISTINCT - - 28 AS col2
----
28

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1253
SELECT + 58 AS col2, 62 DIV + 87
----
58
0

skipif mysql # not compatible
query II rowsort label-1253
SELECT + 58 AS col2, 62 / + 87
----
58
0

query I rowsort
SELECT 81 * ( 18 )
----
1458

query I rowsort
SELECT 9 * - - 95 * + 47 + + + 42
----
40227

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT SUM( ALL + + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-1256
SELECT SUM ( ALL + + 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT 60 - SUM( 76 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT 60 - SUM ( 76 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL - 37 * - MAX( ALL + - 62 ) AS col1
----
-2294

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL - 37 * - MAX ( ALL + - 62 ) AS col1
----
-2294

query I rowsort
SELECT 13 + + 33 + - - 92
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-1260
SELECT DISTINCT 54 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT 54 / - 77
----
0

query I rowsort
SELECT DISTINCT + 65 - + 50 * - 61 AS col2
----
3115

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

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

query II rowsort
SELECT + 34, 82 + + 12 * 5 - 87 AS col2
----
34
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1264
SELECT ALL - 68 AS col2, - CAST( - - 68 AS SIGNED ) + + 20 AS col0
----
-68
-48

skipif mysql # not compatible
query II rowsort label-1264
SELECT ALL - 68 AS col2, - CAST ( - - 68 AS INTEGER ) + + 20 AS col0
----
-68
-48

query I rowsort
SELECT 3 + + 51
----
54

query I rowsort
SELECT 42 * - + 18 AS col0
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT + 71 + + 91 + + COUNT( * ) * 12 AS col1
----
174

skipif mysql # not compatible
query I rowsort label-1267
SELECT + 71 + + 91 + + COUNT ( * ) * 12 AS col1
----
174

query I rowsort
SELECT DISTINCT + ( + 52 ) - 1 AS col1
----
51

query I rowsort
SELECT - NULLIF ( + 25, + 50 )
----
-25

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

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

query I rowsort
SELECT ALL 29 * - - 37 AS col2
----
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT - 17 + + COUNT( * ) + - 99
----
-115

skipif mysql # not compatible
query I rowsort label-1272
SELECT - 17 + + COUNT ( * ) + - 99
----
-115

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

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

query I rowsort
SELECT - - 43
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1275
SELECT - + 52 + + CASE + CASE - 95 WHEN - 7 / + + 21 THEN + SUM( ALL - 84 ) END WHEN - - 1 + + + 46 THEN - CAST( - 60 AS SIGNED ) * + 42 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1275
SELECT - + 52 + + CASE + CASE - 95 WHEN - 7 / + + 21 THEN + SUM ( ALL - 84 ) END WHEN - - 1 + + + 46 THEN - CAST ( - 60 AS INTEGER ) * + 42 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1276
SELECT - + MAX( + ( + 45 ) ) DIV + - 80
----
0

skipif mysql # not compatible
query I rowsort label-1276
SELECT - + MAX ( + ( + 45 ) ) / + - 80
----
0

query I rowsort
SELECT - - ( - - 2 ) * 49
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1278
SELECT ALL - 72 * + + ( + 59 ) * - 72 + CASE + 61 WHEN + SUM( ALL + - 72 ) - 45 THEN NULL WHEN - COUNT( * ) * CAST( NULL AS SIGNED ) THEN 12 + - 61 * 7 END + 15 / + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL - 72 * + + ( + 59 ) * - 72 + CASE + 61 WHEN + SUM ( ALL + - 72 ) - 45 THEN NULL WHEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN 12 + - 61 * 7 END + 15 / + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT - CASE - NULLIF ( - SUM( + ( + 79 ) ), - 51 ) WHEN - + 8 + + + 21 THEN - + 40 / + - 41 END + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT - CASE - NULLIF ( - SUM ( + ( + 79 ) ), - 51 ) WHEN - + 8 + + + 21 THEN - + 40 / + - 41 END + + 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT - - COUNT( DISTINCT + - ( + 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1280
SELECT - - COUNT ( DISTINCT + - ( + 27 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1281
SELECT DISTINCT + 80 + 76 DIV 79
----
80

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT + 80 + 76 / 79
----
80

query I rowsort
SELECT DISTINCT + 69 + + - 47 * 9 + + 39
----
-315

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1283
SELECT ALL - - 96 * CAST( + + ( + - 72 ) AS DECIMAL ) + - 4 - - 28 + ( + 45 ) + 68 + - - NULLIF ( + 49, 95 + 25 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - - 96 * CAST ( + + ( + - 72 ) AS REAL ) + - 4 - - 28 + ( + 45 ) + 68 + - - NULLIF ( + 49, 95 + 25 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT ALL + - 25 + + + SUM( 99 ) + - 2 * + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL + - 25 + + + SUM ( 99 ) + - 2 * + COUNT ( * )
----
72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1286
SELECT ALL + CAST( NULL AS SIGNED ) + - 3 * + 45 * - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL + CAST ( NULL AS INTEGER ) + - 3 * + 45 * - + 82
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1287
SELECT DISTINCT - 78 * MAX( + - 18 ) DIV + 81 + + 3 DIV - - 21 * - 52 * + + 16 * - + 76 * + NULLIF ( + 40, ( + 10 ) + 0 * - 42 )
----
17

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT - 78 * MAX ( + - 18 ) / + 81 + + 3 / - - 21 * - 52 * + + 16 * - + 76 * + NULLIF ( + 40, ( + 10 ) + 0 * - 42 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT DISTINCT + 20 + + - COUNT( * ) - - 82 * - 3
----
-227

skipif mysql # not compatible
query I rowsort label-1288
SELECT DISTINCT + 20 + + - COUNT ( * ) - - 82 * - 3
----
-227

query I rowsort
SELECT - + ( - 20 ) * + - 31 AS col1
----
-620

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

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

query I rowsort
SELECT - + COALESCE ( 7, 29 )
----
-7

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

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + 87 + - - COUNT ( * ) AS col0
----
88

query I rowsort
SELECT - - 81 - + 83 + ( - 84 )
----
-86

query II rowsort
SELECT + 64 AS col1, 11
----
64
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1295
SELECT - NULLIF ( COUNT( * ), - + 69 ) DIV + + ( + ( - ( 21 ) ) ) * + CAST( - 15 AS SIGNED ) + + 11 + - 58 + + 88
----
41

skipif mysql # not compatible
query I rowsort label-1295
SELECT - NULLIF ( COUNT ( * ), - + 69 ) / + + ( + ( - ( 21 ) ) ) * + CAST ( - 15 AS INTEGER ) + + 11 + - 58 + + 88
----
41

query I rowsort
SELECT - 38 * 19 AS col1
----
-722

query I rowsort
SELECT ALL 49 * + ( + 22 )
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT DISTINCT ( + + SUM( DISTINCT + 98 ) ) * 28 - + 66 AS col2
----
2678

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT ( + + SUM ( DISTINCT + 98 ) ) * 28 - + 66 AS col2
----
2678

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1300
SELECT - 79 / CAST( NULL AS SIGNED ) + - 30 * - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT - 79 / CAST ( NULL AS INTEGER ) + - 30 * - 41 AS col0
----
NULL

query I rowsort
SELECT + 90 - - 78 col2
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1302
SELECT ALL - CASE 89 WHEN 73 THEN + ( - + 52 ) * - + CASE - + 61 WHEN - - 11 * - 44 THEN + 75 WHEN - + AVG ( - 7 ) + 62 THEN COUNT( DISTINCT 11 ) ELSE 48 END DIV - COUNT( * ) + 87 WHEN 96 THEN NULLIF ( + 77, + 50 * + 38 ) + 24 DIV 58 WHEN + 86 THEN NULL ELSE COUNT( * ) DIV 33 END * 42
----
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL - CASE 89 WHEN 73 THEN + ( - + 52 ) * - + CASE - + 61 WHEN - - 11 * - 44 THEN + 75 WHEN - + AVG ( - 7 ) + 62 THEN COUNT ( DISTINCT 11 ) ELSE 48 END / - COUNT ( * ) + 87 WHEN 96 THEN NULLIF ( + 77, + 50 * + 38 ) + 24 / 58 WHEN + 86 THEN NULL ELSE COUNT ( * ) / 33 END * 42
----
0

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

query I rowsort
SELECT CASE + - 27 WHEN 21 THEN 1 ELSE + 83 END
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1305
SELECT + 71 * - NULLIF ( - MAX( - CAST( NULL AS DECIMAL ) ), + + 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT + 71 * - NULLIF ( - MAX ( - CAST ( NULL AS REAL ) ), + + 58 ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + 40 * - COUNT( * ) * + 82 + 77 AS col0
----
-3203

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 40 * - COUNT ( * ) * + 82 + 77 AS col0
----
-3203

onlyif mysql # aggregate syntax: 
query II rowsort label-1308
SELECT ALL - 52 * + 38 col2, - NULLIF ( - 95, - COUNT( * ) ) AS col0
----
-1976
95

skipif mysql # not compatible
query II rowsort label-1308
SELECT ALL - 52 * + 38 col2, - NULLIF ( - 95, - COUNT ( * ) ) AS col0
----
-1976
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1309
SELECT + 24 DIV - - 98 AS col0, + CAST( + 32 AS SIGNED ) AS col1
----
0
32

skipif mysql # not compatible
query II rowsort label-1309
SELECT + 24 / - - 98 AS col0, + CAST ( + 32 AS INTEGER ) AS col1
----
0
32

onlyif mysql # DIV for integer division: 
query II rowsort label-1310
SELECT ALL 35 DIV 50 col0, - ( 72 )
----
0
-72

skipif mysql # not compatible
query II rowsort label-1310
SELECT ALL 35 / 50 col0, - ( 72 )
----
0
-72

query I rowsort
SELECT + NULLIF ( - + 66, 82 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1312
SELECT + MIN( ALL 80 ) DIV - 20
----
-4

skipif mysql # not compatible
query I rowsort label-1312
SELECT + MIN ( ALL 80 ) / - 20
----
-4

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

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

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

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

query I rowsort
SELECT + + 98 * + + 62 col0
----
6076

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1316
SELECT + 46 - - 87 * - + 97 + - - ( + + CAST( NULL AS SIGNED ) ) AS col2, - 10 * - - 42
----
NULL
-420

skipif mysql # not compatible
query II rowsort label-1316
SELECT + 46 - - 87 * - + 97 + - - ( + + CAST ( NULL AS INTEGER ) ) AS col2, - 10 * - - 42
----
NULL
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT - 43 * COUNT( * ) + + 32 + + 78
----
67

skipif mysql # not compatible
query I rowsort label-1317
SELECT - 43 * COUNT ( * ) + + 32 + + 78
----
67

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

query I rowsort
SELECT ALL + - 73 + 98 AS col1
----
25

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

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

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

query I rowsort
SELECT ALL - 82 * + + 43 * 38 AS col2
----
-133988

query II rowsort
SELECT - - 71 - - 62 AS col0, 13 + - + 93 AS col1
----
133
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT DISTINCT + CASE 88 WHEN 23 * + 4 - + - 20 - + 78 + + - COUNT( * ) - - CASE + 76 WHEN - COUNT( * ) THEN + CAST( 38 AS SIGNED ) ELSE - ( + COUNT( * ) ) END THEN - 73 * + 83 + + 81 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT + CASE 88 WHEN 23 * + 4 - + - 20 - + 78 + + - COUNT ( * ) - - CASE + 76 WHEN - COUNT ( * ) THEN + CAST ( 38 AS INTEGER ) ELSE - ( + COUNT ( * ) ) END THEN - 73 * + 83 + + 81 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1325
SELECT + ( - 1 ) AS col1, NULLIF ( ( 24 ), COUNT( * ) + + 35 ) AS col1
----
-1
24

skipif mysql # not compatible
query II rowsort label-1325
SELECT + ( - 1 ) AS col1, NULLIF ( ( 24 ), COUNT ( * ) + + 35 ) AS col1
----
-1
24

query I rowsort
SELECT + 62 + + ( 70 ) * - + 1 + 49 AS col0
----
41

query I rowsort
SELECT - 59 - 67
----
-126

query I rowsort
SELECT - ( - 24 ) + - 57 + + 42 * + - 2 col1
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-1329
SELECT ALL 72 DIV - + 48
----
-1

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL 72 / - + 48
----
-1

query II rowsort
SELECT - - 44 * - 6 AS col0, 94 + + 94 * - - 24 AS col1
----
-264
2350

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

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

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

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

query I rowsort
SELECT - 8 * - ( + 90 ) * - 37 AS col1
----
-26640

query II rowsort
SELECT - 78 * - 34 * 78, - 90 col1
----
206856
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT 84 * COUNT( * ) * + 60 + + 92 + + + 69 AS col0
----
5201

skipif mysql # not compatible
query I rowsort label-1335
SELECT 84 * COUNT ( * ) * + 60 + + 92 + + + 69 AS col0
----
5201

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

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - MIN ( 41 )
----
-41

query I rowsort
SELECT 22 * 2 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1338
SELECT ALL - CASE - 76 WHEN - 76 + + CAST( - AVG ( DISTINCT - 41 ) AS SIGNED ) + 27 * + CAST( 81 AS SIGNED ) + COUNT( * ) THEN - + 28 + - + 49 / + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL - CASE - 76 WHEN - 76 + + CAST ( - AVG ( DISTINCT - 41 ) AS INTEGER ) + 27 * + CAST ( 81 AS INTEGER ) + COUNT ( * ) THEN - + 28 + - + 49 / + 34 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1339
SELECT 36 AS col1, + 34 DIV + 57 AS col0
----
36
0

skipif mysql # not compatible
query II rowsort label-1339
SELECT 36 AS col1, + 34 / + 57 AS col0
----
36
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1340
SELECT ALL 36 + + CAST( 20 AS SIGNED ) * ( + 19 ) AS col0
----
416

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL 36 + + CAST ( 20 AS INTEGER ) * ( + 19 ) AS col0
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT COUNT( * ) + + 78 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1341
SELECT COUNT ( * ) + + 78 AS col2
----
79

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

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL - AVG ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 29 * + 59
----
1711

onlyif mysql # aggregate syntax: 
query II rowsort label-1344
SELECT DISTINCT - COUNT( * ) + + + 18 * - - COUNT( * ) + + 54 AS col0, - 71
----
71
-71

skipif mysql # not compatible
query II rowsort label-1344
SELECT DISTINCT - COUNT ( * ) + + + 18 * - - COUNT ( * ) + + 54 AS col0, - 71
----
71
-71

query I rowsort
SELECT ALL + 75 + - + 18 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT DISTINCT + COUNT( * ) * + 79
----
79

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

query I rowsort
SELECT 14 + + 6 + - 84 AS col2
----
-64

query I rowsort
SELECT 73 * - 24 + + 41 * 39 AS col2
----
-153

query I rowsort
SELECT ALL - - 88 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT DISTINCT 92 + + + MIN( - 57 )
----
35

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT 92 + + + MIN ( - 57 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT ALL + CASE + COUNT( * ) WHEN + 74 * - 30 * + 10 THEN NULL WHEN - MIN( ALL - 73 ) THEN + - SUM( ALL + + 93 ) ELSE + 91 END + + 48
----
139

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL + CASE + COUNT ( * ) WHEN + 74 * - 30 * + 10 THEN NULL WHEN - MIN ( ALL - 73 ) THEN + - SUM ( ALL + + 93 ) ELSE + 91 END + + 48
----
139

query I rowsort
SELECT DISTINCT + 44 * 73 * - 77 AS col1
----
-247324

query I rowsort
SELECT ALL - 80 + 85
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT + 80 + - + COUNT( ALL 22 )
----
79

skipif mysql # not compatible
query I rowsort label-1354
SELECT + 80 + - + COUNT ( ALL 22 )
----
79

query I rowsort
SELECT DISTINCT - COALESCE ( - 48, + 98 ) AS col1
----
48

query I rowsort
SELECT ALL 33 * - - 28 * 79 - 17 AS col0
----
72979

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT ALL + MAX( - 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL + MAX ( - 25 ) AS col2
----
-25

query I rowsort
SELECT - 7 + - - 3 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL CASE - - SUM( ALL 43 ) WHEN 94 THEN + 39 * + + 90 WHEN - + 38 + - 37 THEN NULL END - ( - + 51 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL CASE - - SUM ( ALL 43 ) WHEN 94 THEN + 39 * + + 90 WHEN - + 38 + - 37 THEN NULL END - ( - + 51 ) AS col1
----
NULL

query I rowsort
SELECT - 46 * - 84 AS col2
----
3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1361
SELECT NULLIF ( 18, + - CAST( - CASE - SUM( ALL + 77 ) WHEN + + 87 THEN + 86 / - - 62 + + NULLIF ( + ( 28 ), + 71 ) END AS SIGNED ) + 96 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-1361
SELECT NULLIF ( 18, + - CAST ( - CASE - SUM ( ALL + 77 ) WHEN + + 87 THEN + 86 / - - 62 + + NULLIF ( + ( 28 ), + 71 ) END AS INTEGER ) + 96 ) AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1362
SELECT 62 DIV - + MIN( ALL + 46 ) AS col0, NULLIF ( + 79, - 8 ) AS col0
----
-1
79

skipif mysql # not compatible
query II rowsort label-1362
SELECT 62 / - + MIN ( ALL + 46 ) AS col0, NULLIF ( + 79, - 8 ) AS col0
----
-1
79

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

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

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

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

query II rowsort
SELECT - 76, 30 AS col0
----
-76
30

query I rowsort
SELECT CASE + 88 WHEN 13 THEN NULL ELSE + 17 + + + ( + 33 ) * + NULLIF ( + + 82, - - 41 ) END + 8
----
2731

query I rowsort
SELECT 39 * - 17
----
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT - COALESCE ( 36, - - COUNT( * ) + - 40, + 12 )
----
-36

skipif mysql # not compatible
query I rowsort label-1368
SELECT - COALESCE ( 36, - - COUNT ( * ) + - 40, + 12 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT ALL - 79 - + MIN( 61 ) - + - 61 * 35 * + 69
----
147175

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL - 79 - + MIN ( 61 ) - + - 61 * 35 * + 69
----
147175

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL CASE - COUNT( * ) WHEN + - 89 THEN + 57 WHEN + - 7 * + 96 + + + 12 THEN 66 * - 88 + - 14 WHEN - 76 * - COUNT( ALL 30 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL CASE - COUNT ( * ) WHEN + - 89 THEN + 57 WHEN + - 7 * + 96 + + + 12 THEN 66 * - 88 + - 14 WHEN - 76 * - COUNT ( ALL 30 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT DISTINCT - COUNT( + 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT - COUNT ( + 57 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT CASE - 97 WHEN - 16 THEN NULL WHEN + 58 + 31 THEN - + SUM( - - 64 ) / - + 62 + 85 * COUNT( * ) * - - 70 ELSE NULL END - ( - 84 ) * - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT CASE - 97 WHEN - 16 THEN NULL WHEN + 58 + 31 THEN - + SUM ( - - 64 ) / - + 62 + 85 * COUNT ( * ) * - - 70 ELSE NULL END - ( - 84 ) * - - 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1374
SELECT 32 * + COALESCE ( - 13, - ( + ( - + 37 ) ) * - + CAST( 48 AS SIGNED ) + - - 11 * COUNT( ALL + + 20 ) + - 76 + ( - CAST( 91 AS SIGNED ) ) + - ( - 83 + 12 ) )
----
-416

skipif mysql # not compatible
query I rowsort label-1374
SELECT 32 * + COALESCE ( - 13, - ( + ( - + 37 ) ) * - + CAST ( 48 AS INTEGER ) + - - 11 * COUNT ( ALL + + 20 ) + - 76 + ( - CAST ( 91 AS INTEGER ) ) + - ( - 83 + 12 ) )
----
-416

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT DISTINCT + 24 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT + 24 / + 73
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1376
SELECT ( 42 ) * - + 73 * 87, ( 37 ) DIV 62 - + - 73 + - 40 AS col1
----
-266742
33

skipif mysql # not compatible
query II rowsort label-1376
SELECT ( 42 ) * - + 73 * 87, ( 37 ) / 62 - + - 73 + - 40 AS col1
----
-266742
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT DISTINCT + NULLIF ( - 17, - 75 * - - COUNT( * ) * - NULLIF ( - + 60, + + 66 ) + - - 91 ) + + 5 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT + NULLIF ( - 17, - 75 * - - COUNT ( * ) * - NULLIF ( - + 60, + + 66 ) + - - 91 ) + + 5 AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1379
SELECT DISTINCT CASE + MIN( ALL + 75 ) WHEN + 76 THEN 95 WHEN 7 - - 63 + + 14 DIV - + 41 THEN - 2 + + 98 + + + 89 * 96 * + - 53 ELSE + 18 - - COUNT( * ) END DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT CASE + MIN ( ALL + 75 ) WHEN + 76 THEN 95 WHEN 7 - - 63 + + 14 / - + 41 THEN - 2 + + 98 + + + 89 * 96 * + - 53 ELSE + 18 - - COUNT ( * ) END / - 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL + 89 + MAX( ALL - 2 ) - 39 * 20 - + COUNT( * ) AS col2
----
-694

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL + 89 + MAX ( ALL - 2 ) - 39 * 20 - + COUNT ( * ) AS col2
----
-694

query I rowsort
SELECT 41 - + 64
----
-23

query I rowsort
SELECT ALL - 44 + + 11 AS col1
----
-33

query I rowsort
SELECT ALL + ( - - 96 ) + 42 + - 8
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-1384
SELECT + MAX( DISTINCT - + 48 ) AS col1, 54 AS col0
----
-48
54

skipif mysql # not compatible
query II rowsort label-1384
SELECT + MAX ( DISTINCT - + 48 ) AS col1, 54 AS col0
----
-48
54

onlyif mysql # DIV for integer division: 
query II rowsort label-1385
SELECT 38 DIV - 66, 39 AS col1
----
0
39

skipif mysql # not compatible
query II rowsort label-1385
SELECT 38 / - 66, 39 AS col1
----
0
39

query I rowsort
SELECT 41 + - 38 * 64
----
-2391

query II rowsort
SELECT 47 * + + 48 AS col0, + 4 AS col2
----
2256
4

query I rowsort
SELECT 86 - - 95 AS col1
----
181

query I rowsort
SELECT DISTINCT - - 77
----
77

query II rowsort
SELECT ALL - 84 + 38 AS col1, 56 * + - 45
----
-46
-2520

query I rowsort
SELECT DISTINCT - - 20 col0
----
20

query I rowsort
SELECT 5 * - - 6 + - 0
----
30

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

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

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

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

query I rowsort
SELECT + 9 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ALL + 49 * MAX( DISTINCT - + 19 ) AS col0
----
-931

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + 49 * MAX ( DISTINCT - + 19 ) AS col0
----
-931

query I rowsort
SELECT 85 - - 60
----
145

query I rowsort
SELECT DISTINCT + + 77 * + 11 AS col2
----
847

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1399
SELECT COUNT( ALL + 83 ), + 54 * COUNT( * ) DIV + 62 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-1399
SELECT COUNT ( ALL + 83 ), + 54 * COUNT ( * ) / + 62 AS col0
----
1
0

query I rowsort
SELECT - 18 * - 43 AS col2
----
774

onlyif mysql # aggregate syntax: 
query II rowsort label-1401
SELECT ALL - MAX( ALL + 63 ) * - 27 + - COUNT( * ) AS col2, 11
----
1700
11

skipif mysql # not compatible
query II rowsort label-1401
SELECT ALL - MAX ( ALL + 63 ) * - 27 + - COUNT ( * ) AS col2, 11
----
1700
11

query I rowsort
SELECT 77 + 6 * + 1 + - 58 * 69
----
-3919

query I rowsort
SELECT 8 * + 75
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT - CASE ( - - 16 ) WHEN - 24 THEN + COUNT( - + 27 ) WHEN - NULLIF ( + COUNT( * ), + + 1 ) + - ( + 94 ) + + 16 THEN + - 94 * + 64 * + 45 + - 38 + - 51 ELSE COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1404
SELECT - CASE ( - - 16 ) WHEN - 24 THEN + COUNT ( - + 27 ) WHEN - NULLIF ( + COUNT ( * ), + + 1 ) + - ( + 94 ) + + 16 THEN + - 94 * + 64 * + 45 + - 38 + - 51 ELSE COUNT ( * ) END AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT DISTINCT + SUM( ALL - NULLIF ( + 67, + 24 ) ) * 14 + 10 AS col2
----
-928

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT + SUM ( ALL - NULLIF ( + 67, + 24 ) ) * 14 + 10 AS col2
----
-928

query I rowsort
SELECT + 85 * 82 + - - 22 * + 19 AS col0
----
7388

onlyif mysql # DIV for integer division: 
query I rowsort label-1407
SELECT + 84 DIV - 28 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1407
SELECT + 84 / - 28 AS col2
----
-3

query I rowsort
SELECT + 55 + + 93 AS col2
----
148

query I rowsort
SELECT + 72 * 98 * - + 33
----
-232848

query I rowsort
SELECT + 37 - 23
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-1411
SELECT ALL 89 + + 39 + + 11 * 17 * - 26 + + + 38 DIV + + 29 + 50, 80 AS col1
----
-4683
80

skipif mysql # not compatible
query II rowsort label-1411
SELECT ALL 89 + + 39 + + 11 * 17 * - 26 + + + 38 / + + 29 + 50, 80 AS col1
----
-4683
80

query I rowsort
SELECT DISTINCT + 51 * + 32 * ( 30 ) + + + 20
----
48980

onlyif mysql # aggregate syntax: 
query II rowsort label-1413
SELECT ALL + 85 * - + 60 + COUNT( * ), + 31 AS col2
----
-5099
31

skipif mysql # not compatible
query II rowsort label-1413
SELECT ALL + 85 * - + 60 + COUNT ( * ), + 31 AS col2
----
-5099
31

query I rowsort
SELECT + 53 + - 96 + 88 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL + 35 * SUM( + 12 ) + + 29 AS col0
----
449

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL + 35 * SUM ( + 12 ) + + 29 AS col0
----
449

query I rowsort
SELECT NULLIF ( 59, + ( - + 30 ) ) AS col0
----
59

query I rowsort
SELECT ALL + 2 AS col2
----
2

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

skipif mysql # not compatible
query I rowsort label-1418
SELECT - CAST ( NULL AS INTEGER ) * - 11 AS col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 53, + 61 ) AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1420
SELECT - COUNT( * ) * 85 * - 40 * + - 45 + + CAST( - + COALESCE ( - CASE + 37 WHEN + 63 * - + COUNT( * ) * 50 * - ( + 33 ) * + + NULLIF ( + + 37, 92 ) - 65 THEN NULL ELSE 31 END, 8 ) AS SIGNED ) AS col0
----
-152969

skipif mysql # not compatible
query I rowsort label-1420
SELECT - COUNT ( * ) * 85 * - 40 * + - 45 + + CAST ( - + COALESCE ( - CASE + 37 WHEN + 63 * - + COUNT ( * ) * 50 * - ( + 33 ) * + + NULLIF ( + + 37, 92 ) - 65 THEN NULL ELSE 31 END, 8 ) AS INTEGER ) AS col0
----
-152969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1421
SELECT - CAST( - 43 AS SIGNED ) DIV 50 * COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1421
SELECT - CAST ( - 43 AS INTEGER ) / 50 * COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT ALL 2 * - 73 * - COUNT( * ) + 55 AS col2
----
201

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL 2 * - 73 * - COUNT ( * ) + 55 AS col2
----
201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1423
SELECT ALL COUNT( * ) DIV - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL COUNT ( * ) / - 8 AS col1
----
0

query I rowsort
SELECT + + 89 col1
----
89

query II rowsort
SELECT ALL + - 92 AS col2, 40
----
-92
40

query I rowsort
SELECT ALL - 21 * 47 * + 2 - - 57
----
-1917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1427
SELECT ALL COUNT( * ) * + 36 - + COALESCE ( + CAST( NULL AS SIGNED ), - - 50 ) + - NULLIF ( - + COUNT( * ), - - 15 - - + 57 )
----
-13

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL COUNT ( * ) * + 36 - + COALESCE ( + CAST ( NULL AS INTEGER ), - - 50 ) + - NULLIF ( - + COUNT ( * ), - - 15 - - + 57 )
----
-13

query I rowsort
SELECT + ( 80 ) * ( + NULLIF ( - 60, - 67 ) ) + - 39 * - 37 AS col1
----
-3357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1429
SELECT + + 72 + + MAX( CAST( - ( - + 52 ) AS SIGNED ) ) + 21 + 46 + - 15 + 79 * + + CASE - 66 WHEN - COUNT( * ) + - - 9 THEN - ( + 32 ) * - 15 WHEN + 83 / + 55 THEN NULL END * - 38 + COALESCE ( - 48 - 37, + 27 * 63, 71, 0 + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT + + 72 + + MAX ( CAST ( - ( - + 52 ) AS INTEGER ) ) + 21 + 46 + - 15 + 79 * + + CASE - 66 WHEN - COUNT ( * ) + - - 9 THEN - ( + 32 ) * - 15 WHEN + 83 / + 55 THEN NULL END * - 38 + COALESCE ( - 48 - 37, + 27 * 63, 71, 0 + 44 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT - + 34 DIV + + ( 80 ) + - - 31 + - 60 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1430
SELECT - + 34 / + + ( 80 ) + - - 31 + - 60 AS col2
----
-29

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

query I rowsort
SELECT DISTINCT - ( - - NULLIF ( + 19, - - 97 / 1 ) ) AS col0
----
-19

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

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

query I rowsort
SELECT - - 7 + + 94 AS col0
----
101

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT - 55 * + - COUNT( + 94 )
----
55

skipif mysql # not compatible
query I rowsort label-1438
SELECT - 55 * + - COUNT ( + 94 )
----
55

query I rowsort
SELECT + 61 + + 96 AS col2
----
157

query I rowsort
SELECT ALL + 61 + - + 16 AS col1
----
45

query I rowsort
SELECT DISTINCT - ( + - 5 ) + 12 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT DISTINCT + MIN( ALL + 12 ) + - 95 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT + MIN ( ALL + 12 ) + - 95 AS col0
----
-83

query I rowsort
SELECT ALL 19 + + 2 AS col2
----
21

query II rowsort
SELECT DISTINCT 68, - 53 AS col2
----
68
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1445
SELECT DISTINCT - COUNT( * ) + - ( + 73 ) DIV - 80 + - 33 col1
----
-34

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT - COUNT ( * ) + - ( + 73 ) / - 80 + - 33 col1
----
-34

query II rowsort
SELECT + 77 * 64 AS col2, - 89 * - 71 * + + 94 AS col0
----
4928
593986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1447
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col1, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-1447
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1448
SELECT - 65 - - + 18 / CASE NULLIF ( + - 27, 90 ) WHEN + MIN( + + CAST( NULL AS DECIMAL ) ) * COUNT( * ) - - - 26 THEN + 61 * + CAST( 91 AS SIGNED ) + - 9 + + NULLIF ( 92, + 70 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1448
SELECT - 65 - - + 18 / CASE NULLIF ( + - 27, 90 ) WHEN + MIN ( + + CAST ( NULL AS REAL ) ) * COUNT ( * ) - - - 26 THEN + 61 * + CAST ( 91 AS INTEGER ) + - 9 + + NULLIF ( 92, + 70 ) ELSE NULL END AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1450
SELECT ALL 36 + 5 * + MAX( + 49 ) + - + 66 DIV - 3 AS col1, - 47 + + - 67 + + CAST( NULL AS SIGNED ) + + - 57 DIV 1 AS col2
----
303
NULL

skipif mysql # not compatible
query II rowsort label-1450
SELECT ALL 36 + 5 * + MAX ( + 49 ) + - + 66 / - 3 AS col1, - 47 + + - 67 + + CAST ( NULL AS INTEGER ) + + - 57 / 1 AS col2
----
303
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT - 42 - + - COUNT( * ) + - 23
----
-64

skipif mysql # not compatible
query I rowsort label-1451
SELECT - 42 - + - COUNT ( * ) + - 23
----
-64

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

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

query I rowsort
SELECT + 98 * - 66 + + 88 + 37 - 56
----
-6399

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1454
SELECT + CAST( NULL AS SIGNED ) * 76 AS col0, - 94 + + 51 AS col0
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-1454
SELECT + CAST ( NULL AS INTEGER ) * 76 AS col0, - 94 + + 51 AS col0
----
NULL
-43

query I rowsort
SELECT ALL 29 * - 42
----
-1218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1456
SELECT ALL 29 DIV + COUNT( * ) - 94
----
-65

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL 29 / + COUNT ( * ) - 94
----
-65

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

query II rowsort
SELECT ALL + 2, - COALESCE ( - 47, + 68, ( - 9 ) + 78, 49 ) - - 51 AS col0
----
2
98

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

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT 76 * - - COUNT ( * ) AS col2
----
76

query II rowsort
SELECT ALL + + 77 AS col2, - 22 * - 59
----
77
1298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1461
SELECT + 56 * - + CAST( NULL AS SIGNED ) - + + 83 - + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1461
SELECT + 56 * - + CAST ( NULL AS INTEGER ) - + + 83 - + + 4
----
NULL

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

query II rowsort
SELECT + + 91 AS col2, - 82 AS col1
----
91
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT + NULLIF ( COUNT( * ), + AVG ( + 39 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1464
SELECT + NULLIF ( COUNT ( * ), + AVG ( + 39 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1465
SELECT + + 22 AS col0, - 14 + + COALESCE ( - 39, 24, + 59 * + - COUNT( * ) * - MIN( ALL + 96 ), + - 57 + 69 )
----
22
-53

skipif mysql # not compatible
query II rowsort label-1465
SELECT + + 22 AS col0, - 14 + + COALESCE ( - 39, 24, + 59 * + - COUNT ( * ) * - MIN ( ALL + 96 ), + - 57 + 69 )
----
22
-53

query I rowsort
SELECT + + 43 * + 88 * - 56 + - ( - 20 ) - + 7
----
-211891

query I rowsort
SELECT ALL + - 43
----
-43

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

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

query I rowsort
SELECT + - 69 + 18 * + 94
----
1623

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1471
SELECT ALL 70 DIV + - 55 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL 70 / + - 55 AS col2
----
-1

query I rowsort
SELECT + ( + + 91 ) * - + 55 - + 86
----
-5091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1473
SELECT - ( + NULLIF ( CAST( NULL AS SIGNED ), + 4 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT - ( + NULLIF ( CAST ( NULL AS INTEGER ), + 4 ) ) col0
----
NULL

query II rowsort
SELECT + - 6 AS col2, 55
----
-6
55

query I rowsort
SELECT ALL + + 23 AS col1
----
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1478
SELECT COALESCE ( + - 3, + CAST( NULL AS SIGNED ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1478
SELECT COALESCE ( + - 3, + CAST ( NULL AS INTEGER ) ) AS col2
----
-3

query I rowsort
SELECT - - ( + - 39 ) * - 36
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL - 6 * + MAX( DISTINCT + 98 ) * 35 + + 99 AS col1
----
-20481

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL - 6 * + MAX ( DISTINCT + 98 ) * 35 + + 99 AS col1
----
-20481

query I rowsort
SELECT + + 42 * - 84 AS col1
----
-3528

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

query I rowsort
SELECT 17 - 63 AS col0
----
-46

query I rowsort
SELECT DISTINCT + 14 * 2 + - COALESCE ( 92, + 1 )
----
-64

query I rowsort
SELECT ALL - 56 + 30 AS col1
----
-26

query I rowsort
SELECT - 56 + + 34 + - 14 + + 15 * - 18
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL - COUNT( * ) + + + SUM( ALL 78 ) + 77
----
154

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL - COUNT ( * ) + + + SUM ( ALL 78 ) + 77
----
154

query I rowsort
SELECT DISTINCT 55 * - 95 col2
----
-5225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1489
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) - 33 * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) - 33 * + 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1490
SELECT ALL - ( + 11 ) + + ( 70 ) - CAST( + 19 AS DECIMAL ) * - CASE NULLIF ( - + 44, - 28 ) WHEN + 80 + - - MAX( - + CAST( NULL AS SIGNED ) ) / - ( + 49 ) THEN - 85 * + 57 / - 24 + COUNT( * ) * 6 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL - ( + 11 ) + + ( 70 ) - CAST ( + 19 AS REAL ) * - CASE NULLIF ( - + 44, - 28 ) WHEN + 80 + - - MAX ( - + CAST ( NULL AS INTEGER ) ) / - ( + 49 ) THEN - 85 * + 57 / - 24 + COUNT ( * ) * 6 END AS col2
----
NULL

query I rowsort
SELECT ALL - 93 + - - 67
----
-26

query I rowsort
SELECT 41 - - + 58 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL + CAST( - COUNT( - 34 ) AS SIGNED ) + 58
----
57

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + CAST ( - COUNT ( - 34 ) AS INTEGER ) + 58
----
57

query I rowsort
SELECT 60 + - + 63
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT ALL - 85 * 65 * - COUNT( * ) AS col0
----
5525

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL - 85 * 65 * - COUNT ( * ) AS col0
----
5525

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT MIN( ALL + 21 ) - + 97
----
-76

skipif mysql # not compatible
query I rowsort label-1496
SELECT MIN ( ALL + 21 ) - + 97
----
-76

query I rowsort
SELECT 50 + 85
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT 86 - + CASE - 11 WHEN - COUNT( * ) * NULLIF ( + 89, - 56 + + 40 ) THEN NULL WHEN 1 THEN NULL ELSE + - 29 * - 5 END + - 41 col1
----
-100

skipif mysql # not compatible
query I rowsort label-1498
SELECT 86 - + CASE - 11 WHEN - COUNT ( * ) * NULLIF ( + 89, - 56 + + 40 ) THEN NULL WHEN 1 THEN NULL ELSE + - 29 * - 5 END + - 41 col1
----
-100

query I rowsort
SELECT 57 * + COALESCE ( + 61, - 62 )
----
3477

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT ALL - SUM( + NULLIF ( + + 51, + + 50 ) ) * 81 * - - 5 AS col1
----
-20655

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - SUM ( + NULLIF ( + + 51, + + 50 ) ) * 81 * - - 5 AS col1
----
-20655

query I rowsort
SELECT DISTINCT - 67 * + + 75
----
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT ALL - 95 - - COUNT( * ) * 64 * + 11 col0
----
609

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL - 95 - - COUNT ( * ) * 64 * + 11 col0
----
609

query I rowsort
SELECT DISTINCT - NULLIF ( 24, - 66 ) col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT - 88 DIV - - 27 col0
----
-3

skipif mysql # not compatible
query I rowsort label-1504
SELECT - 88 / - - 27 col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1505
SELECT - 58 DIV - + MIN( + - 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-1505
SELECT - 58 / - + MIN ( + - 55 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1506
SELECT ALL COUNT( * ) DIV + + COUNT( * ) - SUM( 33 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL COUNT ( * ) / + + COUNT ( * ) - SUM ( 33 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT DISTINCT - COUNT( - 62 ) * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT - COUNT ( - 62 ) * COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - - ( 65 )
----
65

query I rowsort
SELECT DISTINCT - - 72 AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1510
SELECT - 47 + + COUNT( * ) AS col2, - 42 * - CAST( + - MAX( DISTINCT + 52 ) AS SIGNED ) col2
----
-46
-2184

skipif mysql # not compatible
query II rowsort label-1510
SELECT - 47 + + COUNT ( * ) AS col2, - 42 * - CAST ( + - MAX ( DISTINCT + 52 ) AS INTEGER ) col2
----
-46
-2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1511
SELECT DISTINCT 16 * 7 * + 82 * - COUNT( * ) - 54 DIV 79
----
-9184

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT 16 * 7 * + 82 * - COUNT ( * ) - 54 / 79
----
-9184

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT - + 40 * + COUNT( * ) + - 44 + + + 31 + - 99
----
-152

skipif mysql # not compatible
query I rowsort label-1512
SELECT - + 40 * + COUNT ( * ) + - 44 + + + 31 + - 99
----
-152

query I rowsort
SELECT DISTINCT - - 0
----
0

query II rowsort
SELECT ALL 43 + - 82, - 24 col1
----
-39
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT 31 + MIN( DISTINCT + - ( - - 74 ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1515
SELECT 31 + MIN ( DISTINCT + - ( - - 74 ) ) AS col1
----
-43

query I rowsort
SELECT + 96 + - ( 76 )
----
20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT + NULLIF ( - - 32, + - 72 ) * - + COUNT( * ) * + ( + 98 ) * + + 80 - - 61 - 33
----
-250852

skipif mysql # not compatible
query I rowsort label-1518
SELECT + NULLIF ( - - 32, + - 72 ) * - + COUNT ( * ) * + ( + 98 ) * + + 80 - - 61 - 33
----
-250852

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT DISTINCT 89 * + - MIN( DISTINCT + 47 ) AS col1
----
-4183

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT 89 * + - MIN ( DISTINCT + 47 ) AS col1
----
-4183

query II rowsort
SELECT 85 AS col1, + 84 * - + 49 AS col1
----
85
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT NULLIF ( COUNT( * ), 69 + - 86 + - 21 ) + COUNT( 67 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1521
SELECT NULLIF ( COUNT ( * ), 69 + - 86 + - 21 ) + COUNT ( 67 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT 51 + 9 + 76 * + 29 / - 36 + CASE - - 57 WHEN - - CASE + ( + 44 ) WHEN + 23 THEN + SUM( DISTINCT + 90 ) * - COUNT( + 47 ) + + ( + 7 ) WHEN - COUNT( * ) THEN NULL WHEN COUNT( * ) + - COUNT( * ) * - 83 THEN COALESCE ( - 91, 50 * 66, ( COUNT( * ) ) - + 6 * + MAX( ALL 29 ) ) * 21 END / ( MIN( 95 ) / ( ( - 43 ) ) - COUNT( * ) ) THEN NULLIF ( + 5, - 42 ) * 10 - 1 WHEN + 46 THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT 51 + 9 + 76 * + 29 / - 36 + CASE - - 57 WHEN - - CASE + ( + 44 ) WHEN + 23 THEN + SUM ( DISTINCT + 90 ) * - COUNT ( + 47 ) + + ( + 7 ) WHEN - COUNT ( * ) THEN NULL WHEN COUNT ( * ) + - COUNT ( * ) * - 83 THEN COALESCE ( - 91, 50 * 66, ( COUNT ( * ) ) - + 6 * + MAX ( ALL 29 ) ) * 21 END / ( MIN ( 95 ) / ( ( - 43 ) ) - COUNT ( * ) ) THEN NULLIF ( + 5, - 42 ) * 10 - 1 WHEN + 46 THEN + COUNT ( * ) END AS col0
----
NULL

query II rowsort
SELECT - 68 col0, + ( + ( - 10 ) ) AS col2
----
-68
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1524
SELECT COALESCE ( - - 90, - 52 ) DIV + 17 + + - 34 * + - 77 + - 49
----
2574

skipif mysql # not compatible
query I rowsort label-1524
SELECT COALESCE ( - - 90, - 52 ) / + 17 + + - 34 * + - 77 + - 49
----
2574

query I rowsort
SELECT 67 * + - 24 col1
----
-1608

query II rowsort
SELECT ALL 23, - 53 - + 53 AS col1
----
23
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT 41 * - SUM( - - 99 ) AS col2
----
-4059

skipif mysql # not compatible
query I rowsort label-1527
SELECT 41 * - SUM ( - - 99 ) AS col2
----
-4059

query I rowsort
SELECT 76 + + 71
----
147

query I rowsort
SELECT 86 + - 56 AS col1
----
30

query I rowsort
SELECT ALL + 26 - - + ( + 77 ) AS col2
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1531
SELECT CAST( - COUNT( * ) AS SIGNED ) * + 31
----
-31

skipif mysql # not compatible
query I rowsort label-1531
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + 31
----
-31

query II rowsort
SELECT 1, + 42 * - ( + - 61 ) AS col1
----
1
2562

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1534
SELECT DISTINCT CAST( - + 55 AS SIGNED ) - + - 71 * 4 AS col2
----
229

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT CAST ( - + 55 AS INTEGER ) - + - 71 * 4 AS col2
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL MIN( DISTINCT - 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL MIN ( DISTINCT - 71 ) AS col1
----
-71

query I rowsort
SELECT DISTINCT - 45 - - 30 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-1537
SELECT DISTINCT 43, 11 DIV 63 + - 28 AS col2
----
43
-28

skipif mysql # not compatible
query II rowsort label-1537
SELECT DISTINCT 43, 11 / 63 + - 28 AS col2
----
43
-28

query II rowsort
SELECT - 45 col0, + AVG ( ALL - 53 ) + + + CASE + 32 WHEN 59 THEN - + 60 END
----
-45
NULL

query I rowsort
SELECT 92 * + + 80 AS col1
----
7360

query I rowsort
SELECT 66 - + 70 * + - 31 AS col2
----
2236

query I rowsort
SELECT ALL + 32 * - - 7 AS col1
----
224

onlyif mysql # aggregate syntax: 
query II rowsort label-1542
SELECT 21 - + COUNT( + + 55 ) col1, - 33 AS col0
----
20
-33

skipif mysql # not compatible
query II rowsort label-1542
SELECT 21 - + COUNT ( + + 55 ) col1, - 33 AS col0
----
20
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1543
SELECT 64 AS col1, + COALESCE ( - 83, - 42, - 39 ) * + COUNT( * ) / - 75 + + CAST( NULL AS SIGNED ) AS col1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-1543
SELECT 64 AS col1, + COALESCE ( - 83, - 42, - 39 ) * + COUNT ( * ) / - 75 + + CAST ( NULL AS INTEGER ) AS col1
----
64
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1545
SELECT ALL - 57 * + 47 + + ( + + CAST( NULL AS DECIMAL ) ) + + - 56 / + + 53 * + NULLIF ( - 9, + COALESCE ( + 59, + 85 + + 45 * 98 + 13 + - + 37, + + 53 * 44 + + 12 - COUNT( * ) * + 9 ) + - 7 ) - 81 * + 20 / 97 + - ( COUNT( + 86 ) ) * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL - 57 * + 47 + + ( + + CAST ( NULL AS REAL ) ) + + - 56 / + + 53 * + NULLIF ( - 9, + COALESCE ( + 59, + 85 + + 45 * 98 + 13 + - + 37, + + 53 * 44 + + 12 - COUNT ( * ) * + 9 ) + - 7 ) - 81 * + 20 / 97 + - ( COUNT ( + 86 ) ) * 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1546
SELECT DISTINCT 51 * COUNT( * ) * + 30 + + - 92 DIV 6 DIV 19 * - 27 col2
----
1530

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT 51 * COUNT ( * ) * + 30 + + - 92 / 6 / 19 * - 27 col2
----
1530

query II rowsort
SELECT DISTINCT - + 70, 86 * - 2 AS col2
----
-70
-172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT DISTINCT 26 * - NULLIF ( 19, - 51 * + - CASE - 2 WHEN COUNT( * ) - - COALESCE ( - + 67, - + MAX( 97 ) ) + 9 THEN - - 0 - + CAST( NULL AS SIGNED ) - 20 / + - 68 WHEN - - ( + COUNT( * ) ) + - 79 THEN CAST( NULL AS SIGNED ) * 13 WHEN 61 * 38 THEN NULL ELSE NULL END - 37 ) + + CASE - MAX( + 16 ) WHEN 27 THEN NULL WHEN COUNT( * ) THEN 83 END * - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT 26 * - NULLIF ( 19, - 51 * + - CASE - 2 WHEN COUNT ( * ) - - COALESCE ( - + 67, - + MAX ( 97 ) ) + 9 THEN - - 0 - + CAST ( NULL AS INTEGER ) - 20 / + - 68 WHEN - - ( + COUNT ( * ) ) + - 79 THEN CAST ( NULL AS INTEGER ) * 13 WHEN 61 * 38 THEN NULL ELSE NULL END - 37 ) + + CASE - MAX ( + 16 ) WHEN 27 THEN NULL WHEN COUNT ( * ) THEN 83 END * - 60 AS col2
----
NULL

query I rowsort
SELECT - 9 * - - 26 - 47
----
-281

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT + + 23 AS col1, - 6 * - MAX( ALL + 86 )
----
23
516

skipif mysql # not compatible
query II rowsort label-1550
SELECT + + 23 AS col1, - 6 * - MAX ( ALL + 86 )
----
23
516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1551
SELECT + ( + MAX( ALL + 84 ) ) DIV + CAST( - 10 AS SIGNED ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1551
SELECT + ( + MAX ( ALL + 84 ) ) / + CAST ( - 10 AS INTEGER ) AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1552
SELECT DISTINCT + + 39 * COALESCE ( - NULLIF ( - COALESCE ( + + 55, 70 + + ( 1 ) ), 9 / + 49 ), + ( - - 31 ), + CAST( NULL AS SIGNED ) ) + + 51, 26 AS col2
----
2196
26

skipif mysql # not compatible
query II rowsort label-1552
SELECT DISTINCT + + 39 * COALESCE ( - NULLIF ( - COALESCE ( + + 55, 70 + + ( 1 ) ), 9 / + 49 ), + ( - - 31 ), + CAST ( NULL AS INTEGER ) ) + + 51, 26 AS col2
----
2196
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1553
SELECT ALL - 39 * - ( - SUM( ALL - - CASE + 53 WHEN 81 THEN - 6 * + 25 DIV + 84 - - 58 + + 90 + ( + 60 ) * - + 68 * 64 ELSE - + 85 + 70 END ) )
----
585

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - 39 * - ( - SUM ( ALL - - CASE + 53 WHEN 81 THEN - 6 * + 25 / + 84 - - 58 + + 90 + ( + 60 ) * - + 68 * 64 ELSE - + 85 + 70 END ) )
----
585

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

query II rowsort
SELECT + - 38 AS col1, 75 * - + 10
----
-38
-750

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT - 66 + SUM( - 18 ) * - 34 + + 41 * + 40 AS col1
----
2186

skipif mysql # not compatible
query I rowsort label-1557
SELECT - 66 + SUM ( - 18 ) * - 34 + + 41 * + 40 AS col1
----
2186

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT - 74 * 32 + - 42 + - 27 - + - 32 + 0 * 95 + COUNT( * )
----
-2404

skipif mysql # not compatible
query I rowsort label-1558
SELECT - 74 * 32 + - 42 + - 27 - + - 32 + 0 * 95 + COUNT ( * )
----
-2404

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1560
SELECT DISTINCT 89 DIV - ( + 50 ) * + COALESCE ( + COUNT( * ), - 97 + - + COUNT( * ) + ( 19 ) + CAST( NULL AS SIGNED ) * + CAST( + - COALESCE ( CASE - - 28 WHEN + 50 THEN + - 21 END, - + AVG ( NULLIF ( + 84, ( 42 ) ) ) + + 15 * + COUNT( * ), 2 ) AS SIGNED ) * 72 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT 89 / - ( + 50 ) * + COALESCE ( + COUNT ( * ), - 97 + - + COUNT ( * ) + ( 19 ) + CAST ( NULL AS INTEGER ) * + CAST ( + - COALESCE ( CASE - - 28 WHEN + 50 THEN + - 21 END, - + AVG ( NULLIF ( + 84, ( 42 ) ) ) + + 15 * + COUNT ( * ), 2 ) AS INTEGER ) * 72 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1561
SELECT + COALESCE ( 13, - 92 ) - - - NULLIF ( 58, 77 + - COALESCE ( + 95, + COALESCE ( + + COUNT( * ), 72 * 66 + - + COUNT( * ) ), 51 + - 31 ) * 79 + + + 17 + - CAST( SUM( + 35 ) AS SIGNED ) * 93 * 78 ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-1561
SELECT + COALESCE ( 13, - 92 ) - - - NULLIF ( 58, 77 + - COALESCE ( + 95, + COALESCE ( + + COUNT ( * ), 72 * 66 + - + COUNT ( * ) ), 51 + - 31 ) * 79 + + + 17 + - CAST ( SUM ( + 35 ) AS INTEGER ) * 93 * 78 ) col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT DISTINCT 53 DIV 6
----
8

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT 53 / 6
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1563
SELECT + CAST( - 33 AS SIGNED ) DIV - 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1563
SELECT + CAST ( - 33 AS INTEGER ) / - 41 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1564
SELECT + MAX( ALL + - 10 ) + - ( + 59 ) / 61 + - + CASE - CASE - + COALESCE ( 83, 49 + 45, + COALESCE ( + 22, 37 * - MIN( DISTINCT + CASE + COALESCE ( ( + 68 ), + 47 ) WHEN 92 * 35 THEN NULL ELSE + 79 END ) + 77 * 98 + COUNT( * ) ) ) WHEN - COUNT( * ) * 61 THEN - COUNT( * ) + 95 / 51 END WHEN AVG ( 99 ) * 97 THEN + 4 ELSE NULL END - - CASE 35 + COUNT( * ) WHEN + ( 29 ) + 74 THEN - 92 WHEN - 6 + - COALESCE ( COALESCE ( - 88, - 74 + 24 * 40, 86 / COUNT( * ) ), + 68, + CAST( NULL AS SIGNED ) ) THEN 80 * - CASE + 31 WHEN - 63 + + 73 THEN NULL WHEN - ( 66 ) THEN NULL WHEN - COUNT( ALL CAST( NULL AS SIGNED ) ) - AVG ( ALL 38 ) THEN ( 48 ) / + 36 ELSE 85 END + - 23 WHEN + 54 * + 8 THEN NULL END * COALESCE ( - COUNT( * ) * - 65, 28 * 51 + 91, 67 - + CASE - 62 WHEN - 78 THEN 19 WHEN 54 THEN 69 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1564
SELECT + MAX ( ALL + - 10 ) + - ( + 59 ) / 61 + - + CASE - CASE - + COALESCE ( 83, 49 + 45, + COALESCE ( + 22, 37 * - MIN ( DISTINCT + CASE + COALESCE ( ( + 68 ), + 47 ) WHEN 92 * 35 THEN NULL ELSE + 79 END ) + 77 * 98 + COUNT ( * ) ) ) WHEN - COUNT ( * ) * 61 THEN - COUNT ( * ) + 95 / 51 END WHEN AVG ( 99 ) * 97 THEN + 4 ELSE NULL END - - CASE 35 + COUNT ( * ) WHEN + ( 29 ) + 74 THEN - 92 WHEN - 6 + - COALESCE ( COALESCE ( - 88, - 74 + 24 * 40, 86 / COUNT ( * ) ), + 68, + CAST ( NULL AS INTEGER ) ) THEN 80 * - CASE + 31 WHEN - 63 + + 73 THEN NULL WHEN - ( 66 ) THEN NULL WHEN - COUNT ( ALL CAST ( NULL AS INTEGER ) ) - AVG ( ALL 38 ) THEN ( 48 ) / + 36 ELSE 85 END + - 23 WHEN + 54 * + 8 THEN NULL END * COALESCE ( - COUNT ( * ) * - 65, 28 * 51 + 91, 67 - + CASE - 62 WHEN - 78 THEN 19 WHEN 54 THEN 69 END )
----
NULL

query I rowsort
SELECT - 35 - - + 70
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1566
SELECT + 79 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1566
SELECT + 79 / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1567
SELECT + - MIN( DISTINCT + 34 ) + + 96 * - + 90 + - 17 - COUNT( * ) + - CAST( 61 AS SIGNED )
----
-8753

skipif mysql # not compatible
query I rowsort label-1567
SELECT + - MIN ( DISTINCT + 34 ) + + 96 * - + 90 + - 17 - COUNT ( * ) + - CAST ( 61 AS INTEGER )
----
-8753

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT ALL - MIN( - 58 ) * + + COUNT( * ) - 70 col2
----
-12

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL - MIN ( - 58 ) * + + COUNT ( * ) - 70 col2
----
-12

query I rowsort
SELECT - 62 col0
----
-62

query I rowsort
SELECT DISTINCT + + 15 + - 25 col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT - + 98 * NULLIF ( + COUNT( * ), + + 65 )
----
-98

skipif mysql # not compatible
query I rowsort label-1571
SELECT - + 98 * NULLIF ( + COUNT ( * ), + + 65 )
----
-98

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

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL + 67 / + 89 + + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1573
SELECT + CASE - + 97 WHEN + + CAST( NULL AS DECIMAL ) THEN NULL WHEN - + 3 THEN - + 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT + CASE - + 97 WHEN + + CAST ( NULL AS REAL ) THEN NULL WHEN - + 3 THEN - + 49 ELSE NULL END
----
NULL

query I rowsort
SELECT - + 2 * + 52 + + 8
----
-96

query I rowsort
SELECT - 65 * - 56 AS col0
----
3640

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1576
SELECT - 52 DIV + - 58 + - ( - 34 ) * COUNT( * ) + 97 * - 17, COUNT( * ) + - 25 AS col2
----
-1615
-24

skipif mysql # not compatible
query II rowsort label-1576
SELECT - 52 / + - 58 + - ( - 34 ) * COUNT ( * ) + 97 * - 17, COUNT ( * ) + - 25 AS col2
----
-1615
-24

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

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

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

query I rowsort
SELECT DISTINCT + - 31 * - 26 AS col2
----
806

query I rowsort
SELECT - - 97 + + 42 AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT - 49 * + SUM( - 54 ) + - - 82 * + 47 * COUNT( * ) AS col0
----
6500

skipif mysql # not compatible
query I rowsort label-1581
SELECT - 49 * + SUM ( - 54 ) + - - 82 * + 47 * COUNT ( * ) AS col0
----
6500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1582
SELECT ALL - COUNT( * ) DIV + - 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - COUNT ( * ) / + - 21 AS col2
----
0

query II rowsort
SELECT + 8 * 67 + + + 37 AS col2, - 87
----
573
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT + 49 + - - 43 + + CASE + 99 WHEN + + 95 * - + ( - COUNT( * ) ) THEN NULL ELSE + 67 END AS col1
----
159

skipif mysql # not compatible
query I rowsort label-1584
SELECT + 49 + - - 43 + + CASE + 99 WHEN + + 95 * - + ( - COUNT ( * ) ) THEN NULL ELSE + 67 END AS col1
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT ALL - 26 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL - 26 / + 82
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT DISTINCT - 17 * - + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT - 17 * - + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT DISTINCT + SUM( - 98 ) * + 10 + - + 23 - + ( + 31 ) col2
----
-1034

skipif mysql # not compatible
query I rowsort label-1588
SELECT DISTINCT + SUM ( - 98 ) * + 10 + - + 23 - + ( + 31 ) col2
----
-1034

query I rowsort
SELECT - 95 * - + 92
----
8740

query I rowsort
SELECT ALL 7 * - - 53
----
371

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1591
SELECT 62 * - 53 / - CAST( NULL AS SIGNED ) * + - 33 / + ( - - 80 ) + - 84 * + 16 + - + 81 + - 41, 51 + ( + - 90 ) * - - 27 * - 45 AS col2
----
NULL
109401

skipif mysql # not compatible
query II rowsort label-1591
SELECT 62 * - 53 / - CAST ( NULL AS INTEGER ) * + - 33 / + ( - - 80 ) + - 84 * + 16 + - + 81 + - 41, 51 + ( + - 90 ) * - - 27 * - 45 AS col2
----
NULL
109401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1592
SELECT ALL CAST( 83 AS SIGNED ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL CAST ( 83 AS INTEGER ) AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1593
SELECT + ( - + 27 ) + + CAST( + 53 AS SIGNED ) + - 9 + - - 76 * 95
----
7237

skipif mysql # not compatible
query I rowsort label-1593
SELECT + ( - + 27 ) + + CAST ( + 53 AS INTEGER ) + - 9 + - - 76 * 95
----
7237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT DISTINCT + 54 * - CAST( + - ( + 30 ) AS SIGNED ) * - - 66 AS col0
----
106920

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT + 54 * - CAST ( + - ( + 30 ) AS INTEGER ) * - - 66 AS col0
----
106920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1595
SELECT + CAST( NULL AS DECIMAL ) * - 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT + CAST ( NULL AS REAL ) * - 89 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1596
SELECT COUNT( * ) AS col0, 80 DIV - 95 + - COUNT( * ) + + 91
----
1
90

skipif mysql # not compatible
query II rowsort label-1596
SELECT COUNT ( * ) AS col0, 80 / - 95 + - COUNT ( * ) + + 91
----
1
90

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

query I rowsort
SELECT + 35 + + 44
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1599
SELECT DISTINCT - 83 + + 76 + + 56 + - 26 DIV - 78 + COUNT( * ) + - + 51 * - + COUNT( * ) * + 7 + 76 AS col1, + 59 AS col1
----
483
59

skipif mysql # not compatible
query II rowsort label-1599
SELECT DISTINCT - 83 + + 76 + + 56 + - 26 / - 78 + COUNT ( * ) + - + 51 * - + COUNT ( * ) * + 7 + 76 AS col1, + 59 AS col1
----
483
59

query I rowsort
SELECT ALL 21 + 1 AS col0
----
22

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

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

query I rowsort
SELECT + - 44 * 13
----
-572

query I rowsort
SELECT ALL - 33 * 49 AS col0
----
-1617

query I rowsort
SELECT DISTINCT 83 + 26
----
109

query I rowsort
SELECT ALL + 64 + 33 AS col0
----
97

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

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

query I rowsort
SELECT ALL - 89 + + - 91 col2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT COUNT( * ) - - 15 * + 17 + + 16
----
272

skipif mysql # not compatible
query I rowsort label-1608
SELECT COUNT ( * ) - - 15 * + 17 + + 16
----
272

query I rowsort
SELECT 50 * 11
----
550

query I rowsort
SELECT ALL ( - + 58 ) * 63
----
-3654

query II rowsort
SELECT 12, + 39 col0
----
12
39

query I rowsort
SELECT DISTINCT - 81 + + 97 + - 55 col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT ALL + 48 - + COUNT( * ) * + 98 * + 49 * + - 21 * 99 AS col2
----
9983406

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL + 48 - + COUNT ( * ) * + 98 * + 49 * + - 21 * 99 AS col2
----
9983406

query I rowsort
SELECT DISTINCT - 47 col1
----
-47

query I rowsort
SELECT DISTINCT - 34 col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT + ( NULLIF ( - + COALESCE ( + 69, ( + COUNT( * ) ) + + 28 ), COUNT( * ) + 12 / + - ( - COUNT( * ) ) - COUNT( * ) ) )
----
-69

skipif mysql # not compatible
query I rowsort label-1616
SELECT + ( NULLIF ( - + COALESCE ( + 69, ( + COUNT ( * ) ) + + 28 ), COUNT ( * ) + 12 / + - ( - COUNT ( * ) ) - COUNT ( * ) ) )
----
-69

query I rowsort
SELECT ALL - 87 - + 75 AS col2
----
-162

query II rowsort
SELECT + - 86 AS col0, 26 * + + 69 * 57 AS col0
----
-86
102258

onlyif mysql # DIV for integer division: 
query II rowsort label-1619
SELECT 87 AS col2, 0 DIV - - 46
----
87
0

skipif mysql # not compatible
query II rowsort label-1619
SELECT 87 AS col2, 0 / - - 46
----
87
0

query III rowsort
SELECT + 56 AS col1, 75 AS col2, - + 82 * 47
----
56
75
-3854

query I rowsort
SELECT 80 * - COALESCE ( + 10, + 67, + + 40 ) * 70
----
-56000

query II rowsort
SELECT ALL - 39 * + 68 col0, 61 + 68 AS col1
----
-2652
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT 51 * 99 * + - SUM( + - 89 ) AS col0
----
449361

skipif mysql # not compatible
query I rowsort label-1623
SELECT 51 * 99 * + - SUM ( + - 89 ) AS col0
----
449361

query I rowsort
SELECT ALL - 30 * - - 82 AS col2
----
-2460

query I rowsort
SELECT DISTINCT 43 * + 69
----
2967

query I rowsort
SELECT ALL - NULLIF ( 20, ( - 36 ) )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1627
SELECT 70 DIV + + 86 * MAX( DISTINCT 2 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1627
SELECT 70 / + + 86 * MAX ( DISTINCT 2 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT ALL - 40 * + + ( + 22 ) * - COUNT( * )
----
880

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL - 40 * + + ( + 22 ) * - COUNT ( * )
----
880

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

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

query I rowsort
SELECT 56 + 48
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT 60 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-1631
SELECT 60 / 67
----
0

query I rowsort
SELECT 95 * - 31
----
-2945

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT MAX( + 27 ) * + 85 * + - 40 + + 36 + 81 * + 30 * 74 + + - 2 * + - 29 AS col1
----
88114

skipif mysql # not compatible
query I rowsort label-1633
SELECT MAX ( + 27 ) * + 85 * + - 40 + + 36 + 81 * + 30 * 74 + + - 2 * + - 29 AS col1
----
88114

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

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

query I rowsort
SELECT 75 + + 74
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1636
SELECT ALL - 77 * 98 * + + CAST( NULL AS SIGNED ) / 87 * - + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - 77 * 98 * + + CAST ( NULL AS INTEGER ) / 87 * - + 5
----
NULL

query I rowsort
SELECT 85 + + 59 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ALL - 68 + 12 + + - SUM( ALL 59 ) * - + 88 col1
----
5136

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL - 68 + 12 + + - SUM ( ALL 59 ) * - + 88 col1
----
5136

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT ALL - 96 DIV + + 1 col2
----
-96

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL - 96 / + + 1 col2
----
-96

query I rowsort
SELECT ALL ( - 1 ) + 76 * - 37 AS col2
----
-2813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1641
SELECT ALL 11 * - COALESCE ( - + 33, + MAX( 87 ) DIV + + ( - 62 ) + + - COUNT( * ) + - 17 DIV COUNT( * ) )
----
363

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL 11 * - COALESCE ( - + 33, + MAX ( 87 ) / + + ( - 62 ) + + - COUNT ( * ) + - 17 / COUNT ( * ) )
----
363

query I rowsort
SELECT DISTINCT - - 31 + 45 AS col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-1643
SELECT ALL - 83, CASE 66 WHEN + 16 + + 18 + - 95 / - + 53 THEN + COUNT( * ) ELSE NULL END AS col1
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-1643
SELECT ALL - 83, CASE 66 WHEN + 16 + + 18 + - 95 / - + 53 THEN + COUNT ( * ) ELSE NULL END AS col1
----
-83
NULL

query I rowsort
SELECT 42 + + ( + + 82 ) + + 56 + - + 44
----
136

query II rowsort
SELECT + 47, - 39 * 99 AS col1
----
47
-3861

query I rowsort
SELECT + ( + + 26 ) + - - 50 - + - 63 + - + 6 + - + 18 + + + 31
----
146

query I rowsort
SELECT 75 + + 21
----
96

query I rowsort
SELECT - + 6 col2
----
-6

query I rowsort
SELECT 21 + + - 18 AS col0
----
3

query I rowsort
SELECT 65 - - 13 + + 0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1651
SELECT - 81 AS col2, ( 67 ) * 83 + + COALESCE ( - 64, CASE + 43 WHEN - 30 THEN NULL WHEN 23 * COUNT( * ) + + 51 + - 24 THEN 64 ELSE 49 END ) col1
----
-81
5497

skipif mysql # not compatible
query II rowsort label-1651
SELECT - 81 AS col2, ( 67 ) * 83 + + COALESCE ( - 64, CASE + 43 WHEN - 30 THEN NULL WHEN 23 * COUNT ( * ) + + 51 + - 24 THEN 64 ELSE 49 END ) col1
----
-81
5497

query I rowsort
SELECT - ( 63 ) + - - 88
----
25

query II rowsort
SELECT 70, 65 AS col0
----
70
65

query II rowsort
SELECT ALL 42, ( 97 ) AS col1
----
42
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ( 39 ) * 94 * - COUNT( * ) * + + 56 AS col2
----
-205296

skipif mysql # not compatible
query I rowsort label-1655
SELECT ( 39 ) * 94 * - COUNT ( * ) * + + 56 AS col2
----
-205296

query I rowsort
SELECT ALL 44 * + + 54 * 39
----
92664

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT + COUNT( * ) + - 4 AS col2, + 10 AS col0
----
-3
10

skipif mysql # not compatible
query II rowsort label-1658
SELECT + COUNT ( * ) + - 4 AS col2, + 10 AS col0
----
-3
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1659
SELECT ALL - 0 * - COUNT( * ) - + + 46 DIV 46 + 4
----
3

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL - 0 * - COUNT ( * ) - + + 46 / 46 + 4
----
3

query I rowsort
SELECT 24 * - ( 9 )
----
-216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1661
SELECT + 80 + - 51 + - + 20 + + + 87 + - 92 DIV + SUM( ALL + + 27 ) + 12 DIV + 57 + + 28 DIV - 77 + ( - ( + 17 ) ) + + 60 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-1661
SELECT + 80 + - 51 + - + 20 + + + 87 + - 92 / + SUM ( ALL + + 27 ) + 12 / + 57 + + 28 / - 77 + ( - ( + 17 ) ) + + 60 AS col2
----
136

query I rowsort
SELECT 70 * - 36
----
-2520

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1665
SELECT + 62 / + ( + + CAST( NULL AS SIGNED ) ) + + + 79 + + 2 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1665
SELECT + 62 / + ( + + CAST ( NULL AS INTEGER ) ) + + + 79 + + 2 * + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 2 * + - 58 * + 13 AS col1
----
-1508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1667
SELECT 67 + + CASE AVG ( 90 ) WHEN 77 THEN + 46 * - 89 * COALESCE ( 97, 64 ) - + + 19 + - ( 8 ) + - + 14 * COALESCE ( + 88, - CAST( + 71 AS SIGNED ) * 50 + + 92 + COUNT( 62 ) / - 21, - 42 ) / 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1667
SELECT 67 + + CASE AVG ( 90 ) WHEN 77 THEN + 46 * - 89 * COALESCE ( 97, 64 ) - + + 19 + - ( 8 ) + - + 14 * COALESCE ( + 88, - CAST ( + 71 AS INTEGER ) * 50 + + 92 + COUNT ( 62 ) / - 21, - 42 ) / 41 END
----
NULL

query I rowsort
SELECT 50 * - 4 * ( - 74 ) AS col2
----
14800

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT SUM( ALL + 35 ) col1
----
35

skipif mysql # not compatible
query I rowsort label-1669
SELECT SUM ( ALL + 35 ) col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT SUM( DISTINCT + 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1670
SELECT SUM ( DISTINCT + 90 ) AS col2
----
90

query I rowsort
SELECT - 61 * - 97 + - 68 * + 65 AS col1
----
1497

query I rowsort
SELECT 76 * 34 * - + 28 * 46 AS col0
----
-3328192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT + CASE - MIN( + 3 ) WHEN 99 - + 87 + + CAST( NULL AS SIGNED ) THEN NULL ELSE + 62 END col2
----
62

skipif mysql # not compatible
query I rowsort label-1673
SELECT + CASE - MIN ( + 3 ) WHEN 99 - + 87 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 62 END col2
----
62

query I rowsort
SELECT ALL + 36 + 99 + + 1 AS col2
----
136

query I rowsort
SELECT + CASE - 10 WHEN ( + 75 ) THEN NULLIF ( + 0, - - 46 ) * 53 * - 30 END AS col0
----
NULL

query I rowsort
SELECT ALL 88 + - 54
----
34

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT ALL + COUNT( * ) + 68 + 56, 36 AS col0
----
125
36

skipif mysql # not compatible
query II rowsort label-1678
SELECT ALL + COUNT ( * ) + 68 + 56, 36 AS col0
----
125
36

onlyif mysql # DIV for integer division: 
query II rowsort label-1679
SELECT - 86 DIV + 57 AS col1, 1
----
-1
1

skipif mysql # not compatible
query II rowsort label-1679
SELECT - 86 / + 57 AS col1, 1
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT - - COUNT( * ) * + 74 * 69 + 20 * + 1 + + 51 * + 75
----
8951

skipif mysql # not compatible
query I rowsort label-1680
SELECT - - COUNT ( * ) * + 74 * 69 + 20 * + 1 + + 51 * + 75
----
8951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1681
SELECT ALL - COALESCE ( - ( + - CAST( NULL AS SIGNED ) ), + - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL - COALESCE ( - ( + - CAST ( NULL AS INTEGER ) ), + - 7 )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1682
SELECT ALL + - ( + 98 ) DIV + + 18 col2
----
-5

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL + - ( + 98 ) / + + 18 col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1683
SELECT DISTINCT - NULLIF ( - - 36, + CAST( NULL AS SIGNED ) - + NULLIF ( + 22, - + 43 ) + + 77 ) - - 26 + + 74 + ( - 92 )
----
-28

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - NULLIF ( - - 36, + CAST ( NULL AS INTEGER ) - + NULLIF ( + 22, - + 43 ) + + 77 ) - - 26 + + 74 + ( - 92 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT - SUM( DISTINCT + 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1684
SELECT - SUM ( DISTINCT + 5 ) AS col1
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-1685
SELECT ALL + 12 DIV - 60 + + 43 AS col0, 51
----
43
51

skipif mysql # not compatible
query II rowsort label-1685
SELECT ALL + 12 / - 60 + + 43 AS col0, 51
----
43
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT - 89 - + SUM( 9 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1686
SELECT - 89 - + SUM ( 9 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL - - 62 * - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL - - 62 * - COUNT ( * )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + + 99 / + - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + + 99 / + - 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1689
SELECT ALL - CASE + 24 WHEN + 77 THEN NULL WHEN + + 7 THEN COALESCE ( 90, 18 + 76 + + ( + 9 ) + 75 DIV 62 - - MAX( DISTINCT 97 ) ) * + 74 - 11 + 40 ELSE NULL END col0, 81 DIV 99 DIV + 6
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1689
SELECT ALL - CASE + 24 WHEN + 77 THEN NULL WHEN + + 7 THEN COALESCE ( 90, 18 + 76 + + ( + 9 ) + 75 / 62 - - MAX ( DISTINCT 97 ) ) * + 74 - 11 + 40 ELSE NULL END col0, 81 / 99 / + 6
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT - 68 + - 15 * + + COUNT( * ) * - - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-1690
SELECT - 68 + - 15 * + + COUNT ( * ) * - - COUNT ( * ) AS col0
----
-83

query I rowsort
SELECT + + 43 + - 35
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1692
SELECT DISTINCT - - 20 * + + COUNT( * ) AS col0, ( + 11 ) * + 72 + + 20
----
20
812

skipif mysql # not compatible
query II rowsort label-1692
SELECT DISTINCT - - 20 * + + COUNT ( * ) AS col0, ( + 11 ) * + 72 + + 20
----
20
812

onlyif mysql # aggregate syntax: 
query II rowsort label-1693
SELECT - SUM( ALL + 91 ) * 9 AS col0, + 52 * - CASE + + 23 WHEN MAX( 35 ) * + + COUNT( * ) + - + 4 * - 89 THEN NULL WHEN 46 THEN NULL WHEN - 72 THEN NULL ELSE - 85 END * 99 * - COALESCE ( + 52, - 39 + - + COUNT( * ) )
----
-819
-22754160

skipif mysql # not compatible
query II rowsort label-1693
SELECT - SUM ( ALL + 91 ) * 9 AS col0, + 52 * - CASE + + 23 WHEN MAX ( 35 ) * + + COUNT ( * ) + - + 4 * - 89 THEN NULL WHEN 46 THEN NULL WHEN - 72 THEN NULL ELSE - 85 END * 99 * - COALESCE ( + 52, - 39 + - + COUNT ( * ) )
----
-819
-22754160

onlyif mysql # aggregate syntax: 
query II rowsort label-1694
SELECT DISTINCT + ( 11 ) * + 34 * 84 - - 33 + - COUNT( * ) AS col1, + 69 * - 7 AS col2
----
31448
-483

skipif mysql # not compatible
query II rowsort label-1694
SELECT DISTINCT + ( 11 ) * + 34 * 84 - - 33 + - COUNT ( * ) AS col1, + 69 * - 7 AS col2
----
31448
-483

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1696
SELECT ALL COUNT( * ) * + 92 + - 91 * - 45 + + - 38 * - 58 + - + ( + + CASE - 18 WHEN - 89 + + 79 THEN + 3 ELSE - + 85 END ) + + + SUM( ALL 84 ) * + 75 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL COUNT ( * ) * + 92 + - 91 * - 45 + + - 38 * - 58 + - + ( + + CASE - 18 WHEN - 89 + + 79 THEN + 3 ELSE - + 85 END ) + + + SUM ( ALL 84 ) * + 75 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1697
SELECT DISTINCT MAX( 47 ) * - + COALESCE ( - 31, + ( + CAST( + 50 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) ) * + 73 + - + 54 AS col2
----
106307

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT MAX ( 47 ) * - + COALESCE ( - 31, + ( + CAST ( + 50 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) ) * + 73 + - + 54 AS col2
----
106307

query I rowsort
SELECT + NULLIF ( 47, AVG ( ALL 42 ) ) - + 27 AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1699
SELECT ALL + 13 DIV - MIN( ALL COALESCE ( + 80, + 29 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL + 13 / - MIN ( ALL COALESCE ( + 80, + 29 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1700
SELECT - SUM( + + 18 ) DIV - 98 AS col1, + 45 + - ( 80 ) DIV + 96 AS col2
----
0
45

skipif mysql # not compatible
query II rowsort label-1700
SELECT - SUM ( + + 18 ) / - 98 AS col1, + 45 + - ( 80 ) / + 96 AS col2
----
0
45

query I rowsort
SELECT DISTINCT 89 * + 40
----
3560

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT + ( + + COALESCE ( + 47, + COUNT( * ) ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1702
SELECT + ( + + COALESCE ( + 47, + COUNT ( * ) ) ) AS col1
----
47

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

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

query I rowsort
SELECT + 36 * + 80 AS col2
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT ALL COUNT( * ) * 86 * - - 23 + + 91
----
2069

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL COUNT ( * ) * 86 * - - 23 + + 91
----
2069

query I rowsort
SELECT ALL - 74 * + - 57 + + 68 AS col0
----
4286

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT DISTINCT 76 * + COALESCE ( 62, + 16 ) + + ( + + ( + 27 ) ) * + ( + CASE + COALESCE ( + NULLIF ( - - 27, 28 ), - 12 * + 84, CASE + - 62 WHEN - + 47 THEN MIN( - 13 ) WHEN + + 12 / - 63 + NULLIF ( 56, + 68 * + 88 ) + + 22 + 33 THEN NULL END ) WHEN + SUM( ALL 24 ) THEN + 49 + - AVG ( + 42 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT 76 * + COALESCE ( 62, + 16 ) + + ( + + ( + 27 ) ) * + ( + CASE + COALESCE ( + NULLIF ( - - 27, 28 ), - 12 * + 84, CASE + - 62 WHEN - + 47 THEN MIN ( - 13 ) WHEN + + 12 / - 63 + NULLIF ( 56, + 68 * + 88 ) + + 22 + 33 THEN NULL END ) WHEN + SUM ( ALL 24 ) THEN + 49 + - AVG ( + 42 ) ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1709
SELECT CASE 87 WHEN 56 * + ( - - 9 ) THEN - 84 * - + 87 - + CAST( 8 AS SIGNED ) WHEN - 34 THEN NULL ELSE - SUM( DISTINCT 28 ) END AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1709
SELECT CASE 87 WHEN 56 * + ( - - 9 ) THEN - 84 * - + 87 - + CAST ( 8 AS INTEGER ) WHEN - 34 THEN NULL ELSE - SUM ( DISTINCT 28 ) END AS col2
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-1710
SELECT ALL + 75 AS col2, + COALESCE ( + - COUNT( * ), + + COUNT( * ), + + 7 ) * + - 19
----
75
19

skipif mysql # not compatible
query II rowsort label-1710
SELECT ALL + 75 AS col2, + COALESCE ( + - COUNT ( * ), + + COUNT ( * ), + + 7 ) * + - 19
----
75
19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1712
SELECT + 32 * 56 + 15 * + 98 DIV - + COUNT( * )
----
322

skipif mysql # not compatible
query I rowsort label-1712
SELECT + 32 * 56 + 15 * + 98 / - + COUNT ( * )
----
322

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT COUNT( - + 43 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1713
SELECT COUNT ( - + 43 ) AS col0
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1715
SELECT - 6 * - - 18 + - 21 * - CASE + 73 WHEN 5 * 34 * + - 49 * + + ( + 84 ) * + + 32 + - - CAST( NULL AS SIGNED ) + COUNT( * ) THEN + - 2 * NULLIF ( + 70, - + 52 ) - - 92 * 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT - 6 * - - 18 + - 21 * - CASE + 73 WHEN 5 * 34 * + - 49 * + + ( + 84 ) * + + 32 + - - CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN + - 2 * NULLIF ( + 70, - + 52 ) - - 92 * 94 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT - - CASE - + 83 WHEN ( 21 ) * - COUNT( * ) + + + 98 THEN - + 35 * COALESCE ( + 40, - 35 ) END - - COUNT( * ) / - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT - - CASE - + 83 WHEN ( 21 ) * - COUNT ( * ) + + + 98 THEN - + 35 * COALESCE ( + 40, - 35 ) END - - COUNT ( * ) / - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1717
SELECT ALL 81, 39 * - - CAST( 29 AS SIGNED ) AS col2
----
81
1131

skipif mysql # not compatible
query II rowsort label-1717
SELECT ALL 81, 39 * - - CAST ( 29 AS INTEGER ) AS col2
----
81
1131

onlyif mysql # aggregate syntax: 
query II rowsort label-1718
SELECT - 93 AS col2, + 78 - - CASE + + MAX( - 49 ) WHEN - 6 THEN + 11 ELSE NULL END
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-1718
SELECT - 93 AS col2, + 78 - - CASE + + MAX ( - 49 ) WHEN - 6 THEN + 11 ELSE NULL END
----
-93
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1719
SELECT + - 21 + + COALESCE ( + - ( - 58 ), - 32 DIV 78 ) AS col0, + NULLIF ( - 10, + 53 ) * + 56
----
37
-560

skipif mysql # not compatible
query II rowsort label-1719
SELECT + - 21 + + COALESCE ( + - ( - 58 ), - 32 / 78 ) AS col0, + NULLIF ( - 10, + 53 ) * + 56
----
37
-560

query I rowsort
SELECT DISTINCT + 83 * - 68 AS col1
----
-5644

query I rowsort
SELECT - 86 + + 51 + + 82
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL MIN( - - 52 ) * 64 * 13
----
43264

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL MIN ( - - 52 ) * 64 * 13
----
43264

query I rowsort
SELECT + + 44 * 28 AS col2
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT - ( - + 76 ) + + + COUNT( * ) * 33
----
109

skipif mysql # not compatible
query I rowsort label-1724
SELECT - ( - + 76 ) + + + COUNT ( * ) * 33
----
109

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

skipif mysql # not compatible
query II rowsort label-1725
SELECT ALL 55 AS col1, COUNT ( * )
----
55
1

query I rowsort
SELECT - 62 * - 48
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT - - COUNT( * ) + - - 37 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1727
SELECT - - COUNT ( * ) + - - 37 AS col2
----
38

query I rowsort
SELECT ALL 45 + - 50 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL + + 47 * - CASE + ( + - COUNT( * ) ) WHEN - + 33 / - - 1 - - CASE + 18 WHEN + + COUNT( * ) THEN + - 62 + + 63 + COUNT( * ) * - ( + 9 ) WHEN 47 + - 73 THEN COUNT( * ) - - 87 + - NULLIF ( 79, - + COALESCE ( MIN( DISTINCT 30 ), + 37, 97 ) ) END THEN - COUNT( * ) * - COALESCE ( 96, 58, + NULLIF ( 28, - 73 + COALESCE ( COUNT( * ), - 2 + ( + COUNT( * ) ) ) ) ) + - 90 WHEN 88 * 13 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + + 47 * - CASE + ( + - COUNT ( * ) ) WHEN - + 33 / - - 1 - - CASE + 18 WHEN + + COUNT ( * ) THEN + - 62 + + 63 + COUNT ( * ) * - ( + 9 ) WHEN 47 + - 73 THEN COUNT ( * ) - - 87 + - NULLIF ( 79, - + COALESCE ( MIN ( DISTINCT 30 ), + 37, 97 ) ) END THEN - COUNT ( * ) * - COALESCE ( 96, 58, + NULLIF ( 28, - 73 + COALESCE ( COUNT ( * ), - 2 + ( + COUNT ( * ) ) ) ) ) + - 90 WHEN 88 * 13 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 17 + - 39 AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1731
SELECT DISTINCT + 6 DIV COUNT( DISTINCT + NULLIF ( + 72, - - ( + 88 ) ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT + 6 / COUNT ( DISTINCT + NULLIF ( + 72, - - ( + 88 ) ) ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL + COUNT( * ) + + 32 * + 72 AS col1
----
2305

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + COUNT ( * ) + + 32 * + 72 AS col1
----
2305

query II rowsort
SELECT - 49 + 25, 48 AS col0
----
-24
48

onlyif mysql # DIV for integer division: 
query II rowsort label-1734
SELECT ALL - 81 * 47 * 47 DIV - 65 AS col0, - 15
----
2752
-15

skipif mysql # not compatible
query II rowsort label-1734
SELECT ALL - 81 * 47 * 47 / - 65 AS col0, - 15
----
2752
-15

query I rowsort
SELECT DISTINCT + 26 * - 50 AS col0
----
-1300

query I rowsort
SELECT 9 * 91 + 80
----
899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1737
SELECT + 36 - + + 52 + + SUM( - - 36 ) DIV + 4 col1
----
-7

skipif mysql # not compatible
query I rowsort label-1737
SELECT + 36 - + + 52 + + SUM ( - - 36 ) / + 4 col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1738
SELECT DISTINCT 35 DIV - - 49 + - CASE + 25 WHEN + 22 THEN NULL ELSE - COUNT( * ) END * 85 * + 92
----
7820

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT 35 / - - 49 + - CASE + 25 WHEN + 22 THEN NULL ELSE - COUNT ( * ) END * 85 * + 92
----
7820

query II rowsort
SELECT ALL + ( - 41 ), 24 AS col0
----
-41
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1741
SELECT ALL + 80 / + CAST( NULL AS SIGNED ) * - COUNT( * ) + - - 77 - - + 99 AS col0, 95 AS col0
----
NULL
95

skipif mysql # not compatible
query II rowsort label-1741
SELECT ALL + 80 / + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - - 77 - - + 99 AS col0, 95 AS col0
----
NULL
95

query I rowsort
SELECT 1 + + 6 col1
----
7

query I rowsort
SELECT DISTINCT - 37 + + - 23 AS col2
----
-60

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1745
SELECT COALESCE ( + 36, - 96, - + 23 ) + - COUNT( * ) * - ( + - 47 ), 52 + + + 97 AS col2
----
-11
149

skipif mysql # not compatible
query II rowsort label-1745
SELECT COALESCE ( + 36, - 96, - + 23 ) + - COUNT ( * ) * - ( + - 47 ), 52 + + + 97 AS col2
----
-11
149

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT DISTINCT + 64 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT + 64 / 75
----
0

query I rowsort
SELECT ALL ( + 3 ) * + NULLIF ( - 19, + 73 / + + 74 ) + - 65
----
-122

query I rowsort
SELECT 71 + - 4
----
67

query I rowsort
SELECT ALL - 29 col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1750
SELECT - COALESCE ( NULLIF ( 58, + 89 * - CASE COUNT( * ) WHEN 4 THEN NULL ELSE - 64 END + - - 93 + + 11 * + CAST( NULL AS SIGNED ) * ( 63 ) ), - - 7 + + + 77 - + + 9 * - 99 - + 3 * + - 6 * - 79 ) * - - 96 + COUNT( * ) + - - 65 AS col1
----
-5502

skipif mysql # not compatible
query I rowsort label-1750
SELECT - COALESCE ( NULLIF ( 58, + 89 * - CASE COUNT ( * ) WHEN 4 THEN NULL ELSE - 64 END + - - 93 + + 11 * + CAST ( NULL AS INTEGER ) * ( 63 ) ), - - 7 + + + 77 - + + 9 * - 99 - + 3 * + - 6 * - 79 ) * - - 96 + COUNT ( * ) + - - 65 AS col1
----
-5502

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1751
SELECT + 43 DIV 43 * - - CAST( + 94 AS SIGNED ) * + 99
----
9306

skipif mysql # not compatible
query I rowsort label-1751
SELECT + 43 / 43 * - - CAST ( + 94 AS INTEGER ) * + 99
----
9306

onlyif mysql # DIV for integer division: 
query II rowsort label-1752
SELECT ALL + 90 DIV + 75, - 44 AS col0
----
1
-44

skipif mysql # not compatible
query II rowsort label-1752
SELECT ALL + 90 / + 75, - 44 AS col0
----
1
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1753
SELECT + 10 DIV + + ( COUNT( * ) ) - + 0 + - 90
----
-80

skipif mysql # not compatible
query I rowsort label-1753
SELECT + 10 / + + ( COUNT ( * ) ) - + 0 + - 90
----
-80

query I rowsort
SELECT - ( - + 88 ) * - - 6 col2
----
528

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1755
SELECT ALL 90 * - 15 + + 85 DIV + 84 DIV 7 * - + COUNT( * ) * 95 AS col0, - 57 AS col1
----
-1350
-57

skipif mysql # not compatible
query II rowsort label-1755
SELECT ALL 90 * - 15 + + 85 / + 84 / 7 * - + COUNT ( * ) * 95 AS col0, - 57 AS col1
----
-1350
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT - 60 * + 79 * - - COUNT( * ) - + 91 - + 43 + + - COUNT( * )
----
-4875

skipif mysql # not compatible
query I rowsort label-1756
SELECT - 60 * + 79 * - - COUNT ( * ) - + 91 - + 43 + + - COUNT ( * )
----
-4875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1757
SELECT ALL - COUNT( * ) + 88 - MAX( - + CAST( - 2 AS SIGNED ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - COUNT ( * ) + 88 - MAX ( - + CAST ( - 2 AS INTEGER ) ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT - - SUM( DISTINCT - + 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-1758
SELECT - - SUM ( DISTINCT - + 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL - + 82 + - MIN( + 8 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL - + 82 + - MIN ( + 8 ) AS col0
----
-90

query I rowsort
SELECT ALL + - 19 + - 45
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT COUNT( DISTINCT 72 ) + + - NULLIF ( - - 20, - COUNT( * ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-1761
SELECT COUNT ( DISTINCT 72 ) + + - NULLIF ( - - 20, - COUNT ( * ) ) AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1762
SELECT - CASE COUNT( * ) WHEN + 46 DIV + 30 THEN + + 13 END AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1762
SELECT - CASE COUNT ( * ) WHEN + 46 / + 30 THEN + + 13 END AS col1
----
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT ALL 72 + - COUNT( * ) + + + 65 * COALESCE ( + COUNT( + 65 ), - 27 * + - ( + + 58 ) ) AS col2
----
136

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL 72 + - COUNT ( * ) + + + 65 * COALESCE ( + COUNT ( + 65 ), - 27 * + - ( + + 58 ) ) AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT 11 + - MIN( DISTINCT + 31 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1765
SELECT 11 + - MIN ( DISTINCT + 31 ) AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1766
SELECT ALL - 50 DIV 6 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL - 50 / 6 AS col2
----
-8

query I rowsort
SELECT DISTINCT - 32 * + 71
----
-2272

query I rowsort
SELECT 1 * 86 col1
----
86

query I rowsort
SELECT DISTINCT + 5 - + + 15 * 44 AS col0
----
-655

onlyif mysql # DIV for integer division: 
query I rowsort label-1770
SELECT ALL - 50 DIV + + 16 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL - 50 / + + 16 AS col0
----
-3

query I rowsort
SELECT DISTINCT - 32 * + 2
----
-64

query I rowsort
SELECT + 24 * - - 94 - + 55 - 94
----
2107

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

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - COUNT ( ALL + - 43 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1774
SELECT - ( 6 ) * - + COUNT( * ) + 62 + + 5, - MAX( ALL - 77 ) AS col1
----
73
77

skipif mysql # not compatible
query II rowsort label-1774
SELECT - ( 6 ) * - + COUNT ( * ) + 62 + + 5, - MAX ( ALL - 77 ) AS col1
----
73
77

onlyif mysql # DIV for integer division: 
query II rowsort label-1775
SELECT 88 * + 15 - + 1 * + 24 * + 67 + - 7 + 18 DIV - - 42 AS col2, 95 * - 22 col1
----
-295
-2090

skipif mysql # not compatible
query II rowsort label-1775
SELECT 88 * + 15 - + 1 * + 24 * + 67 + - 7 + 18 / - - 42 AS col2, 95 * - 22 col1
----
-295
-2090

query I rowsort
SELECT + ( + 83 ) * - 24 * - 64 AS col1
----
127488

query I rowsort
SELECT + 68 * 58
----
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT ALL - 33 DIV + - 99 * 71
----
0

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL - 33 / + - 99 * 71
----
0

query I rowsort
SELECT - 8 + 34
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT - 59 * COUNT( * ) + + MIN( DISTINCT + 56 )
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1781
SELECT - CAST( COALESCE ( + 17, + + 25 ) AS SIGNED ) - - CAST( + - 57 AS SIGNED ) + 16 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-1781
SELECT - CAST ( COALESCE ( + 17, + + 25 ) AS INTEGER ) - - CAST ( + - 57 AS INTEGER ) + 16 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT - MAX( + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-1782
SELECT - MAX ( + 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT - COUNT( * ) + + 62
----
61

skipif mysql # not compatible
query I rowsort label-1783
SELECT - COUNT ( * ) + + 62
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL + + 76 + ( - 55 ) * + 79 * MAX( - 51 ) * - 22
----
-4875014

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL + + 76 + ( - 55 ) * + 79 * MAX ( - 51 ) * - 22
----
-4875014

query I rowsort
SELECT DISTINCT - 39 + + 3 + + + 29 + - 44 - - 47 + + - 68 * - + 8 * 88
----
47868

query I rowsort
SELECT DISTINCT 97 + - 88
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1787
SELECT ALL + 17 + + + 47 + - 3 DIV - - 6 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL + 17 + + + 47 + - 3 / - - 6 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT COALESCE ( 80, - 66 ) + 77 + + 37 - - - MIN( 12 ) AS col0
----
182

skipif mysql # not compatible
query I rowsort label-1788
SELECT COALESCE ( 80, - 66 ) + 77 + + 37 - - - MIN ( 12 ) AS col0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1789
SELECT ALL + CAST( + + CASE 55 WHEN NULLIF ( + 59, + - 92 ) THEN - + 67 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL + CAST ( + + CASE 55 WHEN NULLIF ( + 59, + - 92 ) THEN - + 67 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT + 84 + COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1790
SELECT + 84 + COUNT ( * ) AS col0
----
85

query I rowsort
SELECT DISTINCT 63 + - - 35
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ALL MIN( DISTINCT - - 64 ) + + 59 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL MIN ( DISTINCT - - 64 ) + + 59 AS col0
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1793
SELECT - 86 AS col2, CASE - 14 WHEN - CAST( 46 AS SIGNED ) * + ( + - 59 ) * 66 + + 4 / - 78 / 19 + 13 * + CASE + + 7 WHEN - - 43 * 17 THEN 89 END + + 11 / 47 * + 59 + - CAST( - 49 AS SIGNED ) THEN NULL WHEN - - MAX( + 47 ) THEN NULL ELSE - 36 * 51 END * + 15
----
-86
-27540

skipif mysql # not compatible
query II rowsort label-1793
SELECT - 86 AS col2, CASE - 14 WHEN - CAST ( 46 AS INTEGER ) * + ( + - 59 ) * 66 + + 4 / - 78 / 19 + 13 * + CASE + + 7 WHEN - - 43 * 17 THEN 89 END + + 11 / 47 * + 59 + - CAST ( - 49 AS INTEGER ) THEN NULL WHEN - - MAX ( + 47 ) THEN NULL ELSE - 36 * 51 END * + 15
----
-86
-27540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1794
SELECT 69 * + CAST( 8 AS SIGNED ) AS col1
----
552

skipif mysql # not compatible
query I rowsort label-1794
SELECT 69 * + CAST ( 8 AS INTEGER ) AS col1
----
552

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

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

query II rowsort
SELECT 66 col2, 23 * + 24 AS col1
----
66
552

query II rowsort
SELECT DISTINCT 60 * - 85 AS col1, 12
----
-5100
12

query I rowsort
SELECT ALL 72 - 82 * - - 18 AS col2
----
-1404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1799
SELECT - CASE - 43 WHEN + 31 THEN + 81 WHEN + 26 + + 71 * COUNT( - CAST( NULL AS SIGNED ) ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1799
SELECT - CASE - 43 WHEN + 31 THEN + 81 WHEN + 26 + + 71 * COUNT ( - CAST ( NULL AS INTEGER ) ) THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT 24 * + - 31 * CASE + COUNT( ALL + 58 ) WHEN - + 64 THEN 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT 24 * + - 31 * CASE + COUNT ( ALL + 58 ) WHEN - + 64 THEN 9 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT + 36 DIV + 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1801
SELECT + 36 / + 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1802
SELECT + 47 * + 98, - NULLIF ( - COUNT( * ), 57 + - 47 ) AS col0
----
4606
1

skipif mysql # not compatible
query II rowsort label-1802
SELECT + 47 * + 98, - NULLIF ( - COUNT ( * ), 57 + - 47 ) AS col0
----
4606
1

query II rowsort
SELECT - 26, + 34 * - ( - 63 ) AS col2
----
-26
2142

query I rowsort
SELECT + 65 + 58 + - - 72
----
195

query I rowsort
SELECT COALESCE ( + 10, + + 40 )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1806
SELECT - COUNT( * ) - + + 93 AS col2, 63
----
-94
63

skipif mysql # not compatible
query II rowsort label-1806
SELECT - COUNT ( * ) - + + 93 AS col2, 63
----
-94
63

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1808
SELECT - 7 DIV 64 DIV + 96 + + 56
----
56

skipif mysql # not compatible
query I rowsort label-1808
SELECT - 7 / 64 / + 96 + + 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT - NULLIF ( - 4, - MAX( ALL - 42 ) ) + - + 10
----
-6

skipif mysql # not compatible
query I rowsort label-1809
SELECT - NULLIF ( - 4, - MAX ( ALL - 42 ) ) + - + 10
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT DISTINCT + + 82 * - + 41 * 6 / + 76 * + CASE - + 52 WHEN 77 * COUNT( * ) + - COUNT( * ) THEN NULL WHEN - ( - - 20 ) THEN - 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT + + 82 * - + 41 * 6 / + 76 * + CASE - + 52 WHEN 77 * COUNT ( * ) + - COUNT ( * ) THEN NULL WHEN - ( - - 20 ) THEN - 72 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 34 ) * + 12 + - 46
----
362

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL - 30 * - 38 * + 46 + 87 + - 57 + - MIN( DISTINCT - + 45 ) + - ( - MAX( + - 3 ) ) AS col2
----
52512

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL - 30 * - 38 * + 46 + 87 + - 57 + - MIN ( DISTINCT - + 45 ) + - ( - MAX ( + - 3 ) ) AS col2
----
52512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1813
SELECT + + ( + - 42 ) * COUNT( * ) * + 20 * - CAST( NULL AS SIGNED ) * - COALESCE ( + 78, - 35 * - CASE + + 38 WHEN 27 * - 1 THEN + - 0 + + 62 WHEN NULLIF ( + COUNT( + 64 ), + - 17 * - 3 ) THEN NULL END + - ( ( - + CAST( + COUNT( * ) AS DECIMAL ) ) ) ) / 72 * - - 44 * - COUNT( * ) + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1813
SELECT + + ( + - 42 ) * COUNT ( * ) * + 20 * - CAST ( NULL AS INTEGER ) * - COALESCE ( + 78, - 35 * - CASE + + 38 WHEN 27 * - 1 THEN + - 0 + + 62 WHEN NULLIF ( + COUNT ( + 64 ), + - 17 * - 3 ) THEN NULL END + - ( ( - + CAST ( + COUNT ( * ) AS REAL ) ) ) ) / 72 * - - 44 * - COUNT ( * ) + 50 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT - 66 * - - COUNT( * ) + - - 12
----
-54

skipif mysql # not compatible
query I rowsort label-1815
SELECT - 66 * - - COUNT ( * ) + - - 12
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL - - COUNT( * ) * - - 59
----
59

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL - - COUNT ( * ) * - - 59
----
59

query I rowsort
SELECT - - 32 * 50 col2
----
1600

query I rowsort
SELECT ALL + 36 * + 71 + - 44
----
2512

query I rowsort
SELECT + - 36
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-1820
SELECT + 19 AS col0, 6 DIV - 43
----
19
0

skipif mysql # not compatible
query II rowsort label-1820
SELECT + 19 AS col0, 6 / - 43
----
19
0

query I rowsort
SELECT DISTINCT + + 98 + + COALESCE ( - 85, + 75 + - 14 ) AS col0
----
13

query II rowsort
SELECT + 2 AS col0, 18
----
2
18

query I rowsort
SELECT ALL + 86 + + - 88
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT - + 5 - - - SUM( - 84 )
----
79

skipif mysql # not compatible
query I rowsort label-1824
SELECT - + 5 - - - SUM ( - 84 )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1825
SELECT + - 0 * - 65 * + 6 + + NULLIF ( - MIN( ALL - 24 ), + 90 - + - ( 85 ) * 74 + + 28 + 66 ), - 27 col0
----
24
-27

skipif mysql # not compatible
query II rowsort label-1825
SELECT + - 0 * - 65 * + 6 + + NULLIF ( - MIN ( ALL - 24 ), + 90 - + - ( 85 ) * 74 + + 28 + 66 ), - 27 col0
----
24
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT ALL - 22 - + COUNT( * ) + 16 * - 93
----
-1511

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL - 22 - + COUNT ( * ) + 16 * - 93
----
-1511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1827
SELECT ALL MAX( ALL + + CAST( 89 AS SIGNED ) ) - + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL MAX ( ALL + + CAST ( 89 AS INTEGER ) ) - + COUNT ( * ) AS col2
----
88

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

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

query I rowsort
SELECT + 60 - + - 74 + + 7 * + 53 * - + 12 * 43
----
-191302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT DISTINCT CAST( - ( - 99 ) AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT CAST ( - ( - 99 ) AS INTEGER ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT + 53 * + + 48 AS col0, - COUNT( * ) AS col1
----
2544
-1

skipif mysql # not compatible
query II rowsort label-1831
SELECT + 53 * + + 48 AS col0, - COUNT ( * ) AS col1
----
2544
-1

query I rowsort
SELECT - 24 * 31 AS col0
----
-744

query II rowsort
SELECT + 30 * + + 33, - 24 col2
----
990
-24

query I rowsort
SELECT - ( - 80 )
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT + 94 * + ( + COUNT( * ) ) * + + 46 * 24 + - - 14 AS col0
----
103790

skipif mysql # not compatible
query I rowsort label-1836
SELECT + 94 * + ( + COUNT ( * ) ) * + + 46 * 24 + - - 14 AS col0
----
103790

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT ALL COUNT( * ) * 79
----
79

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL COUNT ( * ) * 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL + SUM( DISTINCT - + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL + SUM ( DISTINCT - + 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1839
SELECT + ( - CASE CAST( NULL AS SIGNED ) WHEN - 81 + + - 36 THEN - 24 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT + ( - CASE CAST ( NULL AS INTEGER ) WHEN - 81 + + - 36 THEN - 24 END )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1841
SELECT CAST( 34 AS SIGNED ), 64 col2
----
34
64

skipif mysql # not compatible
query II rowsort label-1841
SELECT CAST ( 34 AS INTEGER ), 64 col2
----
34
64

query I rowsort
SELECT + 64 * - - 24
----
1536

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

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

query I rowsort
SELECT - - 5 * + 36 * + 23
----
4140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1845
SELECT DISTINCT - COUNT( * ) DIV + COUNT( 2 ) + - 38 - 50
----
-89

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT - COUNT ( * ) / + COUNT ( 2 ) + - 38 - 50
----
-89

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

query I rowsort
SELECT + 92 * - 71 - 27 + + - 23 AS col2
----
-6582

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1848
SELECT ALL + NULLIF ( + 59, + + 41 ) * + - 5 * - ( CASE - 48 WHEN + ( - + 46 ) + ( + 44 ) THEN CAST( + 78 AS DECIMAL ) WHEN - + 20 + - 60 THEN + - 20 / - 81 + 44 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL + NULLIF ( + 59, + + 41 ) * + - 5 * - ( CASE - 48 WHEN + ( - + 46 ) + ( + 44 ) THEN CAST ( + 78 AS REAL ) WHEN - + 20 + - 60 THEN + - 20 / - 81 + 44 END )
----
NULL

query I rowsort
SELECT - 53 - 6 AS col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1850
SELECT + - CAST( + - ( + + ( - 24 ) ) AS SIGNED ) * + CASE + + COUNT( * ) WHEN + 79 * + 40 THEN 76 WHEN + 76 THEN - - 45 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1850
SELECT + - CAST ( + - ( + + ( - 24 ) ) AS INTEGER ) * + CASE + + COUNT ( * ) WHEN + 79 * + 40 THEN 76 WHEN + 76 THEN - - 45 END col1
----
NULL

query I rowsort
SELECT - + 79 * - + 44 + + 16 * + 77
----
4708

query I rowsort
SELECT - 0 * - 6 + 36 AS col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1853
SELECT ALL - 98 * + COUNT( * ) AS col0, + 4 DIV + 42 AS col0
----
-98
0

skipif mysql # not compatible
query II rowsort label-1853
SELECT ALL - 98 * + COUNT ( * ) AS col0, + 4 / + 42 AS col0
----
-98
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1854
SELECT + - 81 * - 2 + + - 26 - + CAST( NULL AS DECIMAL ) + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT + - 81 * - 2 + + - 26 - + CAST ( NULL AS REAL ) + + 31 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1856
SELECT ALL - 17 * + 66 - - 8 + - - 61 - - + 10 DIV - - COUNT( * ) AS col0
----
-1043

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL - 17 * + 66 - - 8 + - - 61 - - + 10 / - - COUNT ( * ) AS col0
----
-1043

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT 4 + - 5 + + 76 * + COUNT( * ) * + - 95
----
-7221

skipif mysql # not compatible
query I rowsort label-1857
SELECT 4 + - 5 + + 76 * + COUNT ( * ) * + - 95
----
-7221

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1858
SELECT DISTINCT 17 col0, 98 * 98 DIV - 20 * COUNT( * ) + - 21
----
17
-501

skipif mysql # not compatible
query II rowsort label-1858
SELECT DISTINCT 17 col0, 98 * 98 / - 20 * COUNT ( * ) + - 21
----
17
-501

onlyif mysql # aggregate syntax: 
query II rowsort label-1859
SELECT 1 + - + 58 * + 70 - + COUNT( * ) AS col1, 60 + 23 AS col0
----
-4060
83

skipif mysql # not compatible
query II rowsort label-1859
SELECT 1 + - + 58 * + 70 - + COUNT ( * ) AS col1, 60 + 23 AS col0
----
-4060
83

query I rowsort
SELECT 13 * + + 66 AS col0
----
858

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1861
SELECT ALL + COUNT( * ) DIV + MAX( DISTINCT - ( + + 41 ) ) * 52 * - 47
----
0

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL + COUNT ( * ) / + MAX ( DISTINCT - ( + + 41 ) ) * 52 * - 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1862
SELECT DISTINCT 28 AS col2, 24 DIV CASE ( COUNT( * ) ) WHEN + 85 + + + 58 * 56 THEN MAX( + 45 ) ELSE + 99 END + + 52 DIV + + COALESCE ( - 54, - 10 * + + 60 ) * + ( - 1 )
----
28
0

skipif mysql # not compatible
query II rowsort label-1862
SELECT DISTINCT 28 AS col2, 24 / CASE ( COUNT ( * ) ) WHEN + 85 + + + 58 * 56 THEN MAX ( + 45 ) ELSE + 99 END + + 52 / + + COALESCE ( - 54, - 10 * + + 60 ) * + ( - 1 )
----
28
0

query I rowsort
SELECT DISTINCT + 2 + + 36
----
38

query I rowsort
SELECT COALESCE ( 71, 38 - 27 ) + + 9 AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1865
SELECT 26 + - ( CAST( NULL AS SIGNED ) ) * 31 + - + 49 * - 95 + - + ( - + 76 ) / + - 51 - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT 26 + - ( CAST ( NULL AS INTEGER ) ) * 31 + - + 49 * - 95 + - + ( - + 76 ) / + - 51 - - 13
----
NULL

query II rowsort
SELECT + 13, ( + 39 ) AS col0
----
13
39

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

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

query I rowsort
SELECT ALL - 46 + + 56 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT COUNT( * ) * COUNT( * ) + 48 + - 55 + - 90
----
-96

skipif mysql # not compatible
query I rowsort label-1869
SELECT COUNT ( * ) * COUNT ( * ) + 48 + - 55 + - 90
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT - NULLIF ( + + CAST( 87 AS SIGNED ), + COALESCE ( + 38, - + 77, CAST( NULL AS SIGNED ) ) * - 55 ) - - - 90 - 98 AS col2
----
-275

skipif mysql # not compatible
query I rowsort label-1870
SELECT - NULLIF ( + + CAST ( 87 AS INTEGER ), + COALESCE ( + 38, - + 77, CAST ( NULL AS INTEGER ) ) * - 55 ) - - - 90 - 98 AS col2
----
-275

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

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

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL 27 + COUNT ( * ) AS col1
----
28

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

query I rowsort
SELECT DISTINCT 89 + - 63
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1875
SELECT + CASE - 42 WHEN COALESCE ( + - 77, - - 66 ) * + - 79 THEN NULL ELSE + + 32 * + 3 DIV 97 * - 82 * - 94 + - 52 * - - 55 * - - 26 * + 34 END AS col2
----
-2528240

skipif mysql # not compatible
query I rowsort label-1875
SELECT + CASE - 42 WHEN COALESCE ( + - 77, - - 66 ) * + - 79 THEN NULL ELSE + + 32 * + 3 / 97 * - 82 * - 94 + - 52 * - - 55 * - - 26 * + 34 END AS col2
----
-2528240

query I rowsort
SELECT ALL + 19 - + 17 + + 62 * + 5
----
312

query I rowsort
SELECT + + 52 AS col1
----
52

query I rowsort
SELECT + 77 * - 71 + + ( 55 )
----
-5412

query I rowsort
SELECT 98 * - 61 AS col0
----
-5978

query I rowsort
SELECT - 60 * + COALESCE ( - - 58, + 88 ) + - - ( - 1 ) col1
----
-3481

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

query II rowsort
SELECT 88 + 9 * - 34, ( - 79 ) * + + 60 + 62 + + - 14 AS col2
----
-218
-4692

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

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

query II rowsort
SELECT + - 68, - 48 + - 83 AS col0
----
-68
-131

query I rowsort
SELECT DISTINCT - 66 AS col1
----
-66

query I rowsort
SELECT 23 * + 98
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT 94 - - MAX( 35 )
----
129

skipif mysql # not compatible
query I rowsort label-1887
SELECT 94 - - MAX ( 35 )
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-1888
SELECT ALL - 87 * + COUNT( * ), 12 AS col2
----
-87
12

skipif mysql # not compatible
query II rowsort label-1888
SELECT ALL - 87 * + COUNT ( * ), 12 AS col2
----
-87
12

query I rowsort
SELECT DISTINCT + 15 + + - 90 + 15 AS col1
----
-60

query I rowsort
SELECT ALL 21 col1
----
21

query II rowsort
SELECT ALL 0 + 75 - - 81 * - 88, ( - 10 ) AS col0
----
-7053
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-1892
SELECT 26 * + 95 AS col0, - 63 DIV 65 AS col2
----
2470
0

skipif mysql # not compatible
query II rowsort label-1892
SELECT 26 * + 95 AS col0, - 63 / 65 AS col2
----
2470
0

query I rowsort
SELECT DISTINCT + 70 + + 6 AS col2
----
76

query I rowsort
SELECT 38 + 1
----
39

query I rowsort
SELECT - 32 * - 24
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT DISTINCT - MAX( - - 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT - MAX ( - - 5 ) AS col1
----
-5

query I rowsort
SELECT ALL - + 96 + + 37 * - 57 + 91
----
-2114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT + NULLIF ( - 98, - COUNT( * ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1899
SELECT + NULLIF ( - 98, - COUNT ( * ) ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT + MIN( + - 56 ) * - + 9
----
504

skipif mysql # not compatible
query I rowsort label-1900
SELECT + MIN ( + - 56 ) * - + 9
----
504

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1902
SELECT ALL 4 * + + 95 - + 71 DIV 44 + + - MAX( DISTINCT - 33 )
----
412

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL 4 * + + 95 - + 71 / 44 + + - MAX ( DISTINCT - 33 )
----
412

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1903
SELECT - ( 51 ) * - + COUNT( ALL - 43 ) col1, 2 DIV + 10 + 88
----
51
88

skipif mysql # not compatible
query II rowsort label-1903
SELECT - ( 51 ) * - + COUNT ( ALL - 43 ) col1, 2 / + 10 + 88
----
51
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT - COALESCE ( + + COUNT( * ), ( - COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1904
SELECT - COALESCE ( + + COUNT ( * ), ( - COUNT ( * ) ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 63 * ( + + 26 ) AS col1
----
1638

query I rowsort
SELECT ALL + + 68 AS col0
----
68

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1909
SELECT DISTINCT + 53, - 95 DIV - 15 AS col0
----
53
6

skipif mysql # not compatible
query II rowsort label-1909
SELECT DISTINCT + 53, - 95 / - 15 AS col0
----
53
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT DISTINCT 60 * - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT 60 * - COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT MIN( + 25 ) col1
----
25

skipif mysql # not compatible
query I rowsort label-1911
SELECT MIN ( + 25 ) col1
----
25

query I rowsort
SELECT ALL 95 + 29 AS col0
----
124

query I rowsort
SELECT DISTINCT CASE + 96 WHEN + 73 THEN NULL ELSE 18 + 62 + + 28 + + 97 + - 77 + - 30 END AS col0
----
98

query I rowsort
SELECT ALL 59 + + ( - 92 ) AS col2
----
-33

query I rowsort
SELECT ALL - 56 + + 7 + - 73
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT ALL + 1 + + 34 DIV - 93 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL + 1 + + 34 / - 93 AS col2
----
1

query I rowsort
SELECT + 23 + - - 60 AS col1
----
83

query I rowsort
SELECT + 35 * + 72 AS col0
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL COUNT( * ) * - 2 * 72
----
-144

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL COUNT ( * ) * - 2 * 72
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1920
SELECT + COUNT( * ) + - 71 + CAST( NULL AS SIGNED ) * + - 62 + 47 * 80 - - MAX( + + 79 ) AS col1, + 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-1920
SELECT + COUNT ( * ) + - 71 + CAST ( NULL AS INTEGER ) * + - 62 + 47 * 80 - - MAX ( + + 79 ) AS col1, + 22
----
NULL
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1921
SELECT + 87 DIV 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1921
SELECT + 87 / 52 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1922
SELECT - SUM( - + CAST( - 77 AS SIGNED ) ) * + 75 - + 76
----
-5851

skipif mysql # not compatible
query I rowsort label-1922
SELECT - SUM ( - + CAST ( - 77 AS INTEGER ) ) * + 75 - + 76
----
-5851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT + 5 + - 15 / + + 22 * - 73 + + ( 40 ) + - + 94 - - - 37 / - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT + 5 + - 15 / + + 22 * - 73 + + ( 40 ) + - + 94 - - - 37 / - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1924
SELECT ALL + COUNT( * ), + 38 AS col0
----
1
38

skipif mysql # not compatible
query II rowsort label-1924
SELECT ALL + COUNT ( * ), + 38 AS col0
----
1
38

query I rowsort
SELECT DISTINCT + 85 - - 87 col0
----
172

query II rowsort
SELECT + NULLIF ( + 87, 59 / - 57 + 60 ) AS col0, - 33 AS col1
----
87
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-1927
SELECT - 92 + + + 43 * COUNT( * ) AS col1, - 23 AS col0
----
-49
-23

skipif mysql # not compatible
query II rowsort label-1927
SELECT - 92 + + + 43 * COUNT ( * ) AS col1, - 23 AS col0
----
-49
-23

query I rowsort
SELECT DISTINCT 62 - - 20 * 14
----
342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1929
SELECT - 6 + + + CAST( NULL AS SIGNED ) / ( - + 91 ) / - - 5 AS col1, + COUNT( * ) / + CASE + 49 WHEN - 54 - + 23 / - - 15 THEN ( - CAST( NULL AS DECIMAL ) ) + + 3 WHEN + CAST( - 84 AS SIGNED ) + - 10 THEN NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1929
SELECT - 6 + + + CAST ( NULL AS INTEGER ) / ( - + 91 ) / - - 5 AS col1, + COUNT ( * ) / + CASE + 49 WHEN - 54 - + 23 / - - 15 THEN ( - CAST ( NULL AS REAL ) ) + + 3 WHEN + CAST ( - 84 AS INTEGER ) + - 10 THEN NULL END
----
NULL
NULL

query I rowsort
SELECT + + 97 + - 99
----
-2

query I rowsort
SELECT ( + - 43 ) * - ( - 37 ) + 15 AS col0
----
-1576

query I rowsort
SELECT - - 16 + + 17 + - + 92 * - 93 - - + 54 * 15 * - 85
----
-60261

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT - 11 * - COUNT( * ) + - 79
----
-68

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT - 11 * - COUNT ( * ) + - 79
----
-68

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT - - CAST( - COUNT( DISTINCT - 3 ) AS SIGNED ) * + + 97 * + 50 + 88 AS col1
----
-4762

skipif mysql # not compatible
query I rowsort label-1935
SELECT - - CAST ( - COUNT ( DISTINCT - 3 ) AS INTEGER ) * + + 97 * + 50 + 88 AS col1
----
-4762

query I rowsort
SELECT ALL - 67 * - ( + + 58 ) AS col2
----
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1937
SELECT - 8 + CAST( NULL AS SIGNED ) + + + 95 * + COALESCE ( - ( COALESCE ( 9, + 20 ) ), 47 * - + ( - 30 ) + - - CAST( 90 AS SIGNED ), + 49 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1937
SELECT - 8 + CAST ( NULL AS INTEGER ) + + + 95 * + COALESCE ( - ( COALESCE ( 9, + 20 ) ), 47 * - + ( - 30 ) + - - CAST ( 90 AS INTEGER ), + 49 ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1940
SELECT - 66 * 79 * - - CASE - - CAST( NULL AS SIGNED ) WHEN - 86 + - 36 + + 73 * - + 84 + - CAST( NULL AS SIGNED ) * - COALESCE ( - - 65, + 15 ) - + + COALESCE ( - 69, - + 65 * - COUNT( * ) - - + 79 ) * + 60 THEN - + 41 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT - 66 * 79 * - - CASE - - CAST ( NULL AS INTEGER ) WHEN - 86 + - 36 + + 73 * - + 84 + - CAST ( NULL AS INTEGER ) * - COALESCE ( - - 65, + 15 ) - + + COALESCE ( - 69, - + 65 * - COUNT ( * ) - - + 79 ) * + 60 THEN - + 41 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1941
SELECT + 18 * + 80 + CAST( NULL AS SIGNED ) AS col2, + 91 - + 89 + 7 AS col2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-1941
SELECT + 18 * + 80 + CAST ( NULL AS INTEGER ) AS col2, + 91 - + 89 + 7 AS col2
----
NULL
9

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

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

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

skipif mysql # not compatible
query I rowsort label-1943
SELECT + - NULLIF ( - ( 28 ), + 40 * - COUNT ( * ) )
----
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL - 12 * - 7 + - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL - 12 * - 7 + - COUNT ( * ) AS col1
----
83

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT + 90 DIV 90 * - 19
----
-19

skipif mysql # not compatible
query I rowsort label-1947
SELECT + 90 / 90 * - 19
----
-19

query I rowsort
SELECT - 1 * 23 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1949
SELECT + 7 + - + 0 / - 15 + + CASE - 25 WHEN - - MAX( 77 ) + - + 65 + + ( + 95 ) / COUNT( * ) THEN + 75 * COUNT( * ) * + 98 - 50 END + CAST( + + 13 AS DECIMAL ) / 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT + 7 + - + 0 / - 15 + + CASE - 25 WHEN - - MAX ( 77 ) + - + 65 + + ( + 95 ) / COUNT ( * ) THEN + 75 * COUNT ( * ) * + 98 - 50 END + CAST ( + + 13 AS REAL ) / 44
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1950
SELECT ALL + 60 DIV + - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL + 60 / + - 92 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1951
SELECT COALESCE ( - 91, - COUNT( * ) * + + 83 * + ( + NULLIF ( + 70, - + 80 ) ) DIV - 49 - + CAST( NULL AS SIGNED ) + COUNT( * ) * CASE - + 64 WHEN CAST( + CAST( 92 AS SIGNED ) AS SIGNED ) * + + 50 THEN NULL WHEN 44 THEN + + 85 * - + 98 + + 84 + - + CAST( - COUNT( * ) AS SIGNED ) * - 40 * - + 46 * - 72 + + 15 END DIV - 39 + - 11 * + 15 + - 38 + 58 * 98 * + 22 ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-1951
SELECT COALESCE ( - 91, - COUNT ( * ) * + + 83 * + ( + NULLIF ( + 70, - + 80 ) ) / - 49 - + CAST ( NULL AS INTEGER ) + COUNT ( * ) * CASE - + 64 WHEN CAST ( + CAST ( 92 AS INTEGER ) AS INTEGER ) * + + 50 THEN NULL WHEN 44 THEN + + 85 * - + 98 + + 84 + - + CAST ( - COUNT ( * ) AS INTEGER ) * - 40 * - + 46 * - 72 + + 15 END / - 39 + - 11 * + 15 + - 38 + 58 * 98 * + 22 ) col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1952
SELECT DISTINCT - 2 * 49 * - COUNT( * ) * + 57 + 54 - + 19 + + 13 * + 71 * + + 4 * COUNT( CAST( NULL AS SIGNED ) ) / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT - 2 * 49 * - COUNT ( * ) * + 57 + 54 - + 19 + + 13 * + 71 * + + 4 * COUNT ( CAST ( NULL AS INTEGER ) ) / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL COUNT( * ) * - COUNT( 24 ) + COUNT( DISTINCT - 28 )
----
0

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL COUNT ( * ) * - COUNT ( 24 ) + COUNT ( DISTINCT - 28 )
----
0

query II rowsort
SELECT - 20, + 51 AS col0
----
-20
51

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

query I rowsort
SELECT - ( 71 )
----
-71

query II rowsort
SELECT ALL 76 AS col2, - 41 * + 69
----
76
-2829

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL - COUNT( + + 77 ) * 48 * - + 5 + + 20 col2
----
260

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL - COUNT ( + + 77 ) * 48 * - + 5 + + 20 col2
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT + SUM( ALL + + 15 ) - - - 63 col1
----
-48

skipif mysql # not compatible
query I rowsort label-1959
SELECT + SUM ( ALL + + 15 ) - - - 63 col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-1960
SELECT COUNT( DISTINCT + 86 ) AS col0, + 20
----
1
20

skipif mysql # not compatible
query II rowsort label-1960
SELECT COUNT ( DISTINCT + 86 ) AS col0, + 20
----
1
20

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

skipif mysql # not compatible
query I rowsort label-1961
SELECT COUNT ( - 73 )
----
1

query I rowsort
SELECT ALL - ( + - ( 79 ) ) - + 97 + - 32 + - 48
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT COALESCE ( + 39, + 27, + MAX( 70 ) * 81 ) - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT COALESCE ( + 39, + 27, + MAX ( 70 ) * 81 ) - COUNT ( * )
----
38

query I rowsort
SELECT + 81 - - - 67 + - 6 col1
----
8

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1967
SELECT DISTINCT 78 * + + ( + CAST( - 5 AS SIGNED ) ) + + COALESCE ( + 69, - - COUNT( * ) + - 57 + - + NULLIF ( - 94, 47 ) DIV - + 43 ) AS col0
----
-321

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT 78 * + + ( + CAST ( - 5 AS INTEGER ) ) + + COALESCE ( + 69, - - COUNT ( * ) + - 57 + - + NULLIF ( - 94, 47 ) / - + 43 ) AS col0
----
-321

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

skipif mysql # not compatible
query I rowsort label-1968
SELECT - - 62 / + COUNT ( * ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT + + MIN( DISTINCT - 7 ) * + 9 - + ( + 80 ) AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-1969
SELECT + + MIN ( DISTINCT - 7 ) * + 9 - + ( + 80 ) AS col2
----
-143

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1971
SELECT DISTINCT 94, + 54 * - CAST( NULL AS SIGNED ) + + MAX( + + 25 ) AS col2
----
94
NULL

skipif mysql # not compatible
query II rowsort label-1971
SELECT DISTINCT 94, + 54 * - CAST ( NULL AS INTEGER ) + + MAX ( + + 25 ) AS col2
----
94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT ALL - 82 * - - COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL - 82 * - - COUNT ( * ) AS col2
----
-82

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

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

query I rowsort
SELECT - - 43 AS col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1975
SELECT DISTINCT - 38 * 7 DIV ( + 76 ) * 64 - - + COALESCE ( 11, - ( 84 ) + - 34 ) * - COUNT( * ) col2, 3 + - 11 * + 39 * - COUNT( * ) AS col2
----
-203
432

skipif mysql # not compatible
query II rowsort label-1975
SELECT DISTINCT - 38 * 7 / ( + 76 ) * 64 - - + COALESCE ( 11, - ( 84 ) + - 34 ) * - COUNT ( * ) col2, 3 + - 11 * + 39 * - COUNT ( * ) AS col2
----
-203
432

query II rowsort
SELECT DISTINCT - + 62 AS col1, - NULLIF ( - 94, 96 ) AS col1
----
-62
94

query I rowsort
SELECT ALL - - ( - 72 )
----
-72

query I rowsort
SELECT + + 50 * + 68 + + - 33 + 71 * 16 - + ( + + 79 ) * - + 48 * - CASE + 31 WHEN + + 47 THEN NULL ELSE - - 21 END + + 9 AS col2
----
-75120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1979
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) * 87 + - + 95 AS col1, ( - - 37 ) AS col0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-1979
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 87 + - + 95 AS col1, ( - - 37 ) AS col0
----
NULL
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1980
SELECT ALL - + 82 + - 96 + 44 * 17 AS col0, COUNT( * ) col1
----
570
1

skipif mysql # not compatible
query II rowsort label-1980
SELECT ALL - + 82 + - 96 + 44 * 17 AS col0, COUNT ( * ) col1
----
570
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1981
SELECT + MIN( 24 ) * + CAST( NULL AS SIGNED ) / - - 91 + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT + MIN ( 24 ) * + CAST ( NULL AS INTEGER ) / - - 91 + 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1982
SELECT 96 AS col1, - 86 + - COUNT( * )
----
96
-87

skipif mysql # not compatible
query II rowsort label-1982
SELECT 96 AS col1, - 86 + - COUNT ( * )
----
96
-87

query I rowsort
SELECT ALL - ( 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT DISTINCT 42 + - + 41 * SUM( - 60 )
----
2502

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT 42 + - + 41 * SUM ( - 60 )
----
2502

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT + 56 * - MIN( ALL - 11 ) * + 24 * 62 * 95 * - - 9 AS col2
----
783699840

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT + 56 * - MIN ( ALL - 11 ) * + 24 * 62 * 95 * - - 9 AS col2
----
783699840

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL - ( - COUNT( * ) ) + + + 61
----
62

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL - ( - COUNT ( * ) ) + + + 61
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT 65 * - 1 - - + 31 + - COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-1987
SELECT 65 * - 1 - - + 31 + - COUNT ( * ) AS col2
----
-35

query I rowsort
SELECT ALL + 74 * 52 * + 8 AS col2
----
30784

query III rowsort
SELECT ALL + 38 - - + 73 AS col0, - 15 AS col0, + 85
----
111
-15
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1990
SELECT 38 + - 58 * + - 98 + CAST( NULL AS SIGNED ) * + SUM( - 16 ) * + 24 + - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1990
SELECT 38 + - 58 * + - 98 + CAST ( NULL AS INTEGER ) * + SUM ( - 16 ) * + 24 + - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1991
SELECT DISTINCT + 11 DIV - - SUM( DISTINCT + - 76 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT + 11 / - - SUM ( DISTINCT + - 76 ) AS col2
----
0

query I rowsort
SELECT ALL 52 * 78 AS col0
----
4056

query I rowsort
SELECT 64 * - 67
----
-4288

query II rowsort
SELECT + 79 + - + 66 * - + 88 AS col0, - 51
----
5887
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT 19 + - SUM( ALL + - 52 ) col0
----
71

skipif mysql # not compatible
query I rowsort label-1996
SELECT 19 + - SUM ( ALL + - 52 ) col0
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL + 20 + - 1 - MAX( + 43 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL + 20 + - 1 - MAX ( + 43 ) AS col0
----
-24

query I rowsort
SELECT + 77 + - 85 AS col1
----
-8

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2001
SELECT DISTINCT 55 + + + 52 - + 50 + + 40 * + NULLIF ( + ( + 69 ), - + 60 ) + + 46 * CAST( - - 9 AS SIGNED ) DIV - 56, + 33 * - 48 AS col1
----
2810
-1584

skipif mysql # not compatible
query II rowsort label-2001
SELECT DISTINCT 55 + + + 52 - + 50 + + 40 * + NULLIF ( + ( + 69 ), - + 60 ) + + 46 * CAST ( - - 9 AS INTEGER ) / - 56, + 33 * - 48 AS col1
----
2810
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT MAX( ALL 65 ) * + - 54 AS col2
----
-3510

skipif mysql # not compatible
query I rowsort label-2002
SELECT MAX ( ALL 65 ) * + - 54 AS col2
----
-3510

onlyif mysql # aggregate syntax: 
query II rowsort label-2003
SELECT + 4 + + SUM( - 5 ), - 63 * + 79 * 29 - - + 37 AS col1
----
-1
-144296

skipif mysql # not compatible
query II rowsort label-2003
SELECT + 4 + + SUM ( - 5 ), - 63 * + 79 * 29 - - + 37 AS col1
----
-1
-144296

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ALL + ( 23 ) + - SUM( 20 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL + ( 23 ) + - SUM ( 20 ) AS col0
----
3

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

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

query I rowsort
SELECT 80 + - - 33 AS col1
----
113

query I rowsort
SELECT 68 + + - 18 * + + COALESCE ( - 4, - 46 )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT DISTINCT SUM( 84 ) * - 86 col2
----
-7224

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT SUM ( 84 ) * - 86 col2
----
-7224

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - 70 * - 85 + COUNT( * )
----
5951

skipif mysql # not compatible
query I rowsort label-2009
SELECT - 70 * - 85 + COUNT ( * )
----
5951

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL COALESCE ( - - 72, - COUNT( * ) + + 41 * + + 63, + 92 + + CASE - + ( - + 65 ) WHEN CASE + 44 WHEN + 40 THEN 1 ELSE NULL END * 12 THEN NULL WHEN - ( - + 85 ) * + 5 * + 78 THEN - 77 END + 21 * + 76 ) + - - ( ( + + 7 ) )
----
79

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL COALESCE ( - - 72, - COUNT ( * ) + + 41 * + + 63, + 92 + + CASE - + ( - + 65 ) WHEN CASE + 44 WHEN + 40 THEN 1 ELSE NULL END * 12 THEN NULL WHEN - ( - + 85 ) * + 5 * + 78 THEN - 77 END + 21 * + 76 ) + - - ( ( + + 7 ) )
----
79

query II rowsort
SELECT DISTINCT - 55, 51 col0
----
-55
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2012
SELECT ALL + ( - 45 ) + + MAX( ( + 18 ) ) + 39, - 72 * + 60 AS col0
----
12
-4320

skipif mysql # not compatible
query II rowsort label-2012
SELECT ALL + ( - 45 ) + + MAX ( ( + 18 ) ) + 39, - 72 * + 60 AS col0
----
12
-4320

query I rowsort
SELECT COALESCE ( - 63, + 73 * - + 2, - + 95 ) + - - 54 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT COUNT( + 46 ) + - 44
----
-43

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT COUNT ( + 46 ) + - 44
----
-43

query II rowsort
SELECT + 7, 98 + + 43 AS col0
----
7
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT MIN( + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-2016
SELECT MIN ( + 22 )
----
22

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

skipif mysql # not compatible
query I rowsort label-2017
SELECT 55 * COUNT ( * )
----
55

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2020
SELECT + NULLIF ( CASE - + 83 WHEN - 3 THEN + CAST( NULL AS SIGNED ) + 46 - - + COUNT( * ) WHEN 16 THEN NULL ELSE 17 END, - 99 + - - 67 ) col0
----
17

skipif mysql # not compatible
query I rowsort label-2020
SELECT + NULLIF ( CASE - + 83 WHEN - 3 THEN + CAST ( NULL AS INTEGER ) + 46 - - + COUNT ( * ) WHEN 16 THEN NULL ELSE 17 END, - 99 + - - 67 ) col0
----
17

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2023
SELECT ALL + 7 * + - 84 * + CAST( NULL AS SIGNED ) AS col0, + 47 + + 97 DIV + - 34
----
NULL
45

skipif mysql # not compatible
query II rowsort label-2023
SELECT ALL + 7 * + - 84 * + CAST ( NULL AS INTEGER ) AS col0, + 47 + + 97 / + - 34
----
NULL
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT 64 DIV + + ( + 1 )
----
64

skipif mysql # not compatible
query I rowsort label-2024
SELECT 64 / + + ( + 1 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT ALL CAST( + 67 AS SIGNED ) * + 80 + - 44 AS col0
----
5316

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL CAST ( + 67 AS INTEGER ) * + 80 + - 44 AS col0
----
5316

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2026
SELECT DISTINCT - 3, CAST( - 52 AS SIGNED ) col1
----
-3
-52

skipif mysql # not compatible
query II rowsort label-2026
SELECT DISTINCT - 3, CAST ( - 52 AS INTEGER ) col1
----
-3
-52

query I rowsort
SELECT DISTINCT + 26 * 95 AS col0
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT 57 - - COUNT( * ) + + - 94
----
-36

skipif mysql # not compatible
query I rowsort label-2028
SELECT 57 - - COUNT ( * ) + + - 94
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2029
SELECT DISTINCT + COUNT( * ) * + 65 DIV - - 66 * - 63 * - MAX( + 92 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT + COUNT ( * ) * + 65 / - - 66 * - 63 * - MAX ( + 92 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - - 70 + 29 col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL - ( + MIN( - - 71 ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL - ( + MIN ( - - 71 ) ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-2032
SELECT - 34, 27 + - COUNT( * ) col2
----
-34
26

skipif mysql # not compatible
query II rowsort label-2032
SELECT - 34, 27 + - COUNT ( * ) col2
----
-34
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT DISTINCT - - 78 + - CASE + - 10 WHEN 30 THEN NULL WHEN - - 64 THEN - - ( NULLIF ( + COUNT( * ), + + 60 * + 81 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT - - 78 + - CASE + - 10 WHEN 30 THEN NULL WHEN - - 64 THEN - - ( NULLIF ( + COUNT ( * ), + + 60 * + 81 ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2035
SELECT + 88 * + ( - 23 ) / + CAST( NULL AS SIGNED ) * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT + 88 * + ( - 23 ) / + CAST ( NULL AS INTEGER ) * + 63
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2036
SELECT ALL + 88 + NULLIF ( + - COALESCE ( + - COUNT( * ), - 73, - 63 ), 39 ) DIV + 81 DIV + 33
----
88

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + 88 + NULLIF ( + - COALESCE ( + - COUNT ( * ), - 73, - 63 ), 39 ) / + 81 / + 33
----
88

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

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

query I rowsort
SELECT - 45 + - 65 AS col1
----
-110

query II rowsort
SELECT - - 75 AS col0, - 14
----
75
-14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2041
SELECT ALL + CASE - MIN( + ( - 79 ) ) WHEN 44 THEN - COUNT( * ) * + 74 + - + 23 - - 10 * + + CASE + + 13 WHEN - 26 + + ( 32 ) THEN NULL WHEN - - 12 THEN + - COUNT( * ) END * CAST( - 61 AS SIGNED ) ELSE 89 END
----
89

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL + CASE - MIN ( + ( - 79 ) ) WHEN 44 THEN - COUNT ( * ) * + 74 + - + 23 - - 10 * + + CASE + + 13 WHEN - 26 + + ( 32 ) THEN NULL WHEN - - 12 THEN + - COUNT ( * ) END * CAST ( - 61 AS INTEGER ) ELSE 89 END
----
89

query II rowsort
SELECT ( 82 ), 65 - - - 8 AS col1
----
82
57

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

query I rowsort
SELECT 2 * 86 + + 51 + - 88 AS col1
----
135

query I rowsort
SELECT + 42 * - 53
----
-2226

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT + CASE ( + 21 ) WHEN + COUNT( ALL - - 42 ) * - - 28 THEN COUNT( * ) * 4 WHEN + COUNT( * ) THEN NULL ELSE + + 40 END AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2046
SELECT + CASE ( + 21 ) WHEN + COUNT ( ALL - - 42 ) * - - 28 THEN COUNT ( * ) * 4 WHEN + COUNT ( * ) THEN NULL ELSE + + 40 END AS col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2047
SELECT + COUNT( * ) * 31 AS col2, - 70 AS col1
----
31
-70

skipif mysql # not compatible
query II rowsort label-2047
SELECT + COUNT ( * ) * 31 AS col2, - 70 AS col1
----
31
-70

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT + 89 + + - ( - 53 ) + - MIN( ALL - - 33 ) + 83
----
192

skipif mysql # not compatible
query I rowsort label-2050
SELECT + 89 + + - ( - 53 ) + - MIN ( ALL - - 33 ) + 83
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT ALL - ( - CASE - - 75 WHEN - 23 THEN - 76 WHEN - 64 + + ( - 17 ) / - COUNT( + 16 ) + - + 44 - ( - COUNT( - 8 ) ) + - + COALESCE ( + - 81, + - 12 * - - ( + 37 ) ) * + 76 * 64 THEN NULL END ) / 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL - ( - CASE - - 75 WHEN - 23 THEN - 76 WHEN - 64 + + ( - 17 ) / - COUNT ( + 16 ) + - + 44 - ( - COUNT ( - 8 ) ) + - + COALESCE ( + - 81, + - 12 * - - ( + 37 ) ) * + 76 * 64 THEN NULL END ) / 65 AS col2
----
NULL

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

query II rowsort
SELECT ALL 76 * - 32, 88 * - 4 + - + 52 AS col1
----
-2432
-404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT COUNT( * ) * - 17 * + + 72 * - + ( MIN( 12 ) ) - - COALESCE ( - - 67, - 1, CAST( NULL AS SIGNED ) ) - - - 16 + + 43 AS col2
----
14782

skipif mysql # not compatible
query I rowsort label-2054
SELECT COUNT ( * ) * - 17 * + + 72 * - + ( MIN ( 12 ) ) - - COALESCE ( - - 67, - 1, CAST ( NULL AS INTEGER ) ) - - - 16 + + 43 AS col2
----
14782

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL 23 * 69 * + ( - MAX( DISTINCT 16 ) )
----
-25392

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL 23 * 69 * + ( - MAX ( DISTINCT 16 ) )
----
-25392

query I rowsort
SELECT + 99 * - 77 + + 56
----
-7567

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT + ( 75 ) * - + 47 + - CAST( NULL AS SIGNED ) * - + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT + ( 75 ) * - + 47 + - CAST ( NULL AS INTEGER ) * - + 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT + COALESCE ( - - COUNT( DISTINCT + 52 ), - 35 + + 17 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2059
SELECT + COALESCE ( - - COUNT ( DISTINCT + 52 ), - 35 + + 17 ) col0
----
1

query I rowsort
SELECT NULLIF ( - 49, - - 14 ) AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2061
SELECT DISTINCT 26 * 99 DIV - COALESCE ( COUNT( DISTINCT - + 50 ), 30 ) + - - 84 AS col1
----
-2490

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT 26 * 99 / - COALESCE ( COUNT ( DISTINCT - + 50 ), 30 ) + - - 84 AS col1
----
-2490

query I rowsort
SELECT ALL + + 83 AS col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2063
SELECT ALL + 83 DIV - COALESCE ( - NULLIF ( + COUNT( + 8 ), + COUNT( * ) ), 23 * 37 - - SUM( ALL 2 ) - - - 61, - 66 ) * + + 71
----
0

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL + 83 / - COALESCE ( - NULLIF ( + COUNT ( + 8 ), + COUNT ( * ) ), 23 * 37 - - SUM ( ALL 2 ) - - - 61, - 66 ) * + + 71
----
0

query I rowsort
SELECT ALL 88 * + - 48 + + 26
----
-4198

query I rowsort
SELECT DISTINCT - 50 + - 54
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2066
SELECT ALL NULLIF ( - 24, ( + - 48 ) ) * + + COUNT( * ) DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL NULLIF ( - 24, ( + - 48 ) ) * + + COUNT ( * ) / - 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2067
SELECT ALL + 59 + - COUNT( * ), SUM( DISTINCT 53 ) AS col1
----
58
53

skipif mysql # not compatible
query II rowsort label-2067
SELECT ALL + 59 + - COUNT ( * ), SUM ( DISTINCT 53 ) AS col1
----
58
53

query I rowsort
SELECT DISTINCT + 46 AS col2
----
46

query I rowsort
SELECT - 30 * + 50
----
-1500

query I rowsort
SELECT ALL - COALESCE ( - - 75, + 56 - + 90 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-2071
SELECT - + 62 + + COUNT( * ) * + 46 + + 90, 23 AS col0
----
74
23

skipif mysql # not compatible
query II rowsort label-2071
SELECT - + 62 + + COUNT ( * ) * + 46 + + 90, 23 AS col0
----
74
23

query I rowsort
SELECT ALL - 57 + 66 + - 62 + NULLIF ( 96, 5 * + - 56 * - - 3 * 53 * + - 47 / + 71 * 17 ) + + 26
----
69

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2074
SELECT ALL - COUNT( * ) DIV - CAST( 63 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL - COUNT ( * ) / - CAST ( 63 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT DISTINCT ( - - 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT DISTINCT - COALESCE ( - ( - + MIN( ALL + - 3 ) ), + 64 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT - COALESCE ( - ( - + MIN ( ALL + - 3 ) ), + 64 ) col2
----
3

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

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

query I rowsort
SELECT - 25 + + 14 col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2079
SELECT DISTINCT + CAST( - 24 AS SIGNED ) - - - 30 AS col2, 85 AS col1
----
-54
85

skipif mysql # not compatible
query II rowsort label-2079
SELECT DISTINCT + CAST ( - 24 AS INTEGER ) - - - 30 AS col2, 85 AS col1
----
-54
85

query I rowsort
SELECT - 95 * - 66 col2
----
6270

query I rowsort
SELECT + 1 + - - 53
----
54

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

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

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

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

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

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

query I rowsort
SELECT - 29 * - 18 col1
----
522

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2087
SELECT DISTINCT 76 DIV - - COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT 76 / - - COUNT ( * ) AS col0
----
76

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

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT 28 + COUNT ( * ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2089
SELECT DISTINCT - 90 DIV - 60 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT - 90 / - 60 AS col0
----
1

query II rowsort
SELECT DISTINCT + - ( 54 ) + - - 17, 85 AS col2
----
-37
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL ( + + COUNT( * ) ) + - 63 + + - 75 * MAX( DISTINCT 1 )
----
-137

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL ( + + COUNT ( * ) ) + - 63 + + - 75 * MAX ( DISTINCT 1 )
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2092
SELECT DISTINCT - + 55 AS col0, CAST( + 98 AS SIGNED ) * + - 14 AS col0
----
-55
-1372

skipif mysql # not compatible
query II rowsort label-2092
SELECT DISTINCT - + 55 AS col0, CAST ( + 98 AS INTEGER ) * + - 14 AS col0
----
-55
-1372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT ALL - CAST( NULLIF ( + 25, - 27 ) AS SIGNED ) + - 93 + + - ( + 19 ) * CAST( 62 AS SIGNED ) * - - 3 + - CAST( NULL AS SIGNED ) + + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL - CAST ( NULLIF ( + 25, - 27 ) AS INTEGER ) + - 93 + + - ( + 19 ) * CAST ( 62 AS INTEGER ) * - - 3 + - CAST ( NULL AS INTEGER ) + + + 39
----
NULL

query I rowsort
SELECT ALL 17 + + + 59 AS col2
----
76

query I rowsort
SELECT ALL ( - 23 )
----
-23

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

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

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

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

query I rowsort
SELECT NULLIF ( + 27, + - 18 + - - CASE + + 79 WHEN - + AVG ( DISTINCT + + 4 ) THEN + 58 WHEN 62 * + 81 THEN + 25 WHEN + - 99 THEN NULL END ) + + + 65
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2099
SELECT ALL + CAST( NULL AS SIGNED ) - + 70 * - - AVG ( 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL + CAST ( NULL AS INTEGER ) - + 70 * - - AVG ( 19 )
----
NULL

query II rowsort
SELECT DISTINCT 97 AS col2, 17
----
97
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL + COALESCE ( + NULLIF ( - 82, COUNT( * ) ), + - 44 ) - + 94 + + - 99 + - 95 - MIN( + 84 ) AS col0
----
-454

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + COALESCE ( + NULLIF ( - 82, COUNT ( * ) ), + - 44 ) - + 94 + + - 99 + - 95 - MIN ( + 84 ) AS col0
----
-454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2102
SELECT DISTINCT + 78 DIV - NULLIF ( 12, 46 * + 10 ) + + COUNT( * ) + + 98 col0
----
93

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT + 78 / - NULLIF ( 12, 46 * + 10 ) + + COUNT ( * ) + + 98 col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2103
SELECT ALL - 45 * + COUNT( * ) + - 50 DIV + + 89 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL - 45 * + COUNT ( * ) + - 50 / + + 89 AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2104
SELECT CAST( NULL AS SIGNED ) - - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT CAST ( NULL AS INTEGER ) - - 64 AS col1
----
NULL

query I rowsort
SELECT 58 * 10
----
580

query I rowsort
SELECT - 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT 55 - + MAX( DISTINCT - 6 ) - 71 + + + ( - 21 ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-2107
SELECT 55 - + MAX ( DISTINCT - 6 ) - 71 + + + ( - 21 ) col0
----
-31

query I rowsort
SELECT 58 * + ( 85 ) col2
----
4930

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT DISTINCT + 93 DIV - - 80
----
1

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT + 93 / - - 80
----
1

query II rowsort
SELECT ALL - 99 AS col1, 60 AS col1
----
-99
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT - 41 * - + 6 * - 61 + + NULLIF ( - + CASE + ( - + 45 ) WHEN - 54 * + 76 THEN 80 + 45 - + 58 + - COUNT( * ) * - 31 + - 85 * 68 ELSE NULL END, - 33 - + 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT - 41 * - + 6 * - 61 + + NULLIF ( - + CASE + ( - + 45 ) WHEN - 54 * + 76 THEN 80 + 45 - + 58 + - COUNT ( * ) * - 31 + - 85 * 68 ELSE NULL END, - 33 - + 85 ) AS col2
----
NULL

query I rowsort
SELECT 48 * 45 AS col1
----
2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2113
SELECT 83 * CAST( 87 AS SIGNED )
----
7221

skipif mysql # not compatible
query I rowsort label-2113
SELECT 83 * CAST ( 87 AS INTEGER )
----
7221

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT 76 * + 16 * - + 27 + - COUNT( * ) AS col2, + COUNT( * ) * - - 40 * - 78 + + - 38
----
-32833
-3158

skipif mysql # not compatible
query II rowsort label-2114
SELECT 76 * + 16 * - + 27 + - COUNT ( * ) AS col2, + COUNT ( * ) * - - 40 * - 78 + + - 38
----
-32833
-3158

query I rowsort
SELECT ALL + 49 + - 29 AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT + 90 DIV - 89 + - 75
----
-76

skipif mysql # not compatible
query I rowsort label-2116
SELECT + 90 / - 89 + - 75
----
-76

query II rowsort
SELECT DISTINCT - 22 * - + NULLIF ( - + 42, 33 ), 69 * + 67 + + 16 AS col0
----
-924
4639

query I rowsort
SELECT 73 + 41 * + 6
----
319

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT + + 46 + + + 66 * SUM( - 88 ) * + - 41
----
238174

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + + 46 + + + 66 * SUM ( - 88 ) * + - 41
----
238174

query I rowsort
SELECT ALL - + 88 AS col2
----
-88

query II rowsort
SELECT + - 19 AS col1, 9 col2
----
-19
9

query II rowsort
SELECT ALL - - 96 + - - 80 col2, 29 AS col1
----
176
29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT + 54 * 37 - COUNT( * )
----
1997

skipif mysql # not compatible
query I rowsort label-2125
SELECT + 54 * 37 - COUNT ( * )
----
1997

onlyif mysql # DIV for integer division: 
query I rowsort label-2126
SELECT DISTINCT + 73 DIV + 11 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT + 73 / + 11 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2127
SELECT ALL CASE + 45 WHEN - - SUM( ALL + + 25 ) - - CAST( + + 42 AS SIGNED ) THEN NULL ELSE - 10 DIV CAST( - + 22 AS SIGNED ) - + 50 * + 92 + 57 END * + - 24
----
109032

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL CASE + 45 WHEN - - SUM ( ALL + + 25 ) - - CAST ( + + 42 AS INTEGER ) THEN NULL ELSE - 10 / CAST ( - + 22 AS INTEGER ) - + 50 * + 92 + 57 END * + - 24
----
109032

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT - 21 * 56 * COUNT( * ) AS col2
----
-1176

skipif mysql # not compatible
query I rowsort label-2128
SELECT - 21 * 56 * COUNT ( * ) AS col2
----
-1176

onlyif mysql # aggregate syntax: 
query II rowsort label-2129
SELECT ALL 87 col0, 47 * + 68 * + 93 * MAX( ALL + 28 ) AS col2
----
87
8322384

skipif mysql # not compatible
query II rowsort label-2129
SELECT ALL 87 col0, 47 * + 68 * + 93 * MAX ( ALL + 28 ) AS col2
----
87
8322384

onlyif mysql # aggregate syntax: 
query II rowsort label-2130
SELECT 39, - COUNT( * ) * - + 15 AS col0
----
39
15

skipif mysql # not compatible
query II rowsort label-2130
SELECT 39, - COUNT ( * ) * - + 15 AS col0
----
39
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2131
SELECT DISTINCT + 7 * + 40 + - NULLIF ( - 97, - 78 ) * - CAST( - COUNT( * ) AS SIGNED ) * - 98 * ( - 35 ) - - 3 + + 59 AS col0, CAST( NULL AS SIGNED ) AS col2
----
333052
NULL

skipif mysql # not compatible
query II rowsort label-2131
SELECT DISTINCT + 7 * + 40 + - NULLIF ( - 97, - 78 ) * - CAST ( - COUNT ( * ) AS INTEGER ) * - 98 * ( - 35 ) - - 3 + + 59 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
333052
NULL

query I rowsort
SELECT DISTINCT + 49 - - 70 + 22 AS col0
----
141

query II rowsort
SELECT ALL 71 AS col0, 80 AS col1
----
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + 61 + + MAX( DISTINCT + + 61 ) + ( 68 ) * + + 10
----
802

skipif mysql # not compatible
query I rowsort label-2134
SELECT + 61 + + MAX ( DISTINCT + + 61 ) + ( 68 ) * + + 10
----
802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT ALL - 16 * 41 + + 29 + + 75 + COUNT( * ) * + CAST( NULL AS SIGNED ) * - 20 - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL - 16 * 41 + + 29 + + 75 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 20 - 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2136
SELECT 60 * 45 AS col0, - COUNT( * )
----
2700
-1

skipif mysql # not compatible
query II rowsort label-2136
SELECT 60 * 45 AS col0, - COUNT ( * )
----
2700
-1

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

query II rowsort
SELECT ALL 54, - 97 col1
----
54
-97

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

query I rowsort
SELECT 37 + - ( - 97 ) AS col2
----
134

query I rowsort
SELECT DISTINCT 95 AS col2
----
95

query I rowsort
SELECT ALL 1 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2143
SELECT ALL + 80 + - 54 * 88 * 34 - - 76 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL + 80 + - 54 * 88 * 34 - - 76 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2144
SELECT CASE 73 WHEN - CAST( - 27 AS SIGNED ) THEN NULL WHEN + + 59 * - 86 + 86 + + - 55 * - - ( - CAST( - 98 AS SIGNED ) ) * + 6 * - - 88 - + - ( 60 ) + 12 * ( 74 ) / 56 THEN 87 END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT CASE 73 WHEN - CAST ( - 27 AS INTEGER ) THEN NULL WHEN + + 59 * - 86 + 86 + + - 55 * - - ( - CAST ( - 98 AS INTEGER ) ) * + 6 * - - 88 - + - ( 60 ) + 12 * ( 74 ) / 56 THEN 87 END + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 0 * + - 25
----
0

query I rowsort
SELECT DISTINCT 59 + - 97 + + + 19 + - 61
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2147
SELECT ALL 18 + - 83 DIV - MIN( 58 )
----
19

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL 18 + - 83 / - MIN ( 58 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2148
SELECT ALL 94 + + CAST( NULL AS SIGNED ) + 30 AS col1, 13 + 6 + - 51 - 0 + - + 74 - + 89 AS col0
----
NULL
-195

skipif mysql # not compatible
query II rowsort label-2148
SELECT ALL 94 + + CAST ( NULL AS INTEGER ) + 30 AS col1, 13 + 6 + - 51 - 0 + - + 74 - + 89 AS col0
----
NULL
-195

query I rowsort
SELECT DISTINCT + 62 + + 66 * 9
----
656

query I rowsort
SELECT NULLIF ( + 3, 59 * + 16 ) AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2151
SELECT ALL 42 * + + AVG ( 74 ) + + CAST( NULL AS SIGNED ) + 37 / - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL 42 * + + AVG ( 74 ) + + CAST ( NULL AS INTEGER ) + 37 / - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT COALESCE ( + + COUNT( * ), + 97 * + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-2152
SELECT COALESCE ( + + COUNT ( * ), + 97 * + 59 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2153
SELECT ALL MIN( DISTINCT 73 ) DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL MIN ( DISTINCT 73 ) / 82 AS col2
----
0

query I rowsort
SELECT + ( 83 ) * + - 85 * - 52 AS col1
----
366860

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT - - 27 * - SUM( ALL 43 ) AS col2
----
-1161

skipif mysql # not compatible
query I rowsort label-2155
SELECT - - 27 * - SUM ( ALL 43 ) AS col2
----
-1161

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL - - COUNT( * ) * + 38 + - 37 - + + 33 * - 40 + - 32 AS col0
----
1289

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - - COUNT ( * ) * + 38 + - 37 - + + 33 * - 40 + - 32 AS col0
----
1289

query I rowsort
SELECT - ( + 25 ) - + 63 * - 12
----
731

query I rowsort
SELECT ( + - 36 ) col2
----
-36

query I rowsort
SELECT ALL + 72 * - 50
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT + 44 * 46 + SUM( DISTINCT + 16 )
----
2040

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + 44 * 46 + SUM ( DISTINCT + 16 )
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL + COALESCE ( + 28, + 40 ) * - NULLIF ( + 2, + MAX( ALL + 77 ) / + 43 ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + COALESCE ( + 28, + 40 ) * - NULLIF ( + 2, + MAX ( ALL + 77 ) / + 43 ) col2
----
-56

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

query I rowsort
SELECT ALL + + 2
----
2

query I rowsort
SELECT - 41 + + 64 AS col1
----
23

query I rowsort
SELECT - 85 * 47 + + 44 + 97 AS col1
----
-3854

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2168
SELECT ALL + + COUNT( * ) DIV - 42 col2, + 40 * + + NULLIF ( - 59, + 2 + - COUNT( * ) * - MAX( DISTINCT 34 ) ) + + 51, + - COALESCE ( + 4, + - 43 ) AS col1
----
0
-2309
-4

skipif mysql # not compatible
query III rowsort label-2168
SELECT ALL + + COUNT ( * ) / - 42 col2, + 40 * + + NULLIF ( - 59, + 2 + - COUNT ( * ) * - MAX ( DISTINCT 34 ) ) + + 51, + - COALESCE ( + 4, + - 43 ) AS col1
----
0
-2309
-4

query I rowsort
SELECT ALL 51 * + ( - + 75 )
----
-3825

query I rowsort
SELECT - - 73 * + 95 AS col1
----
6935

query I rowsort
SELECT ALL 60 * 99 * + 88 * + 89
----
46522080

query I rowsort
SELECT - 66 * + 82 * 16 * 43
----
-3723456

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

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

query I rowsort
SELECT DISTINCT + 93 + - + 75
----
18

query I rowsort
SELECT + 60 * - 36 * + + 26
----
-56160

query I rowsort
SELECT DISTINCT - 75 + + 34
----
-41

query I rowsort
SELECT ALL + 21 * + 30 AS col1
----
630

query I rowsort
SELECT - 30 * + 54 col0
----
-1620

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

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

query I rowsort
SELECT ALL 18 + - + 82
----
-64

query I rowsort
SELECT - 24 - + + 43 AS col1
----
-67

query I rowsort
SELECT - ( - 93 ) AS col2
----
93

query I rowsort
SELECT ALL ( + 46 ) AS col1
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL 58 + 28 * + 93 * - ( - + COUNT( * ) ) AS col1
----
2662

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL 58 + 28 * + 93 * - ( - + COUNT ( * ) ) AS col1
----
2662

query I rowsort
SELECT DISTINCT 17 + + 51
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2187
SELECT ALL 13 DIV 97 + MIN( - + 82 ) * 78 AS col0
----
-6396

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL 13 / 97 + MIN ( - + 82 ) * 78 AS col0
----
-6396

query I rowsort
SELECT + 94 * + - 38 + 90
----
-3482

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

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

query II rowsort
SELECT ALL + - 84 AS col1, 99 * 73 AS col1
----
-84
7227

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT - 27 * 13 * - - COUNT( * ) AS col2
----
-351

skipif mysql # not compatible
query I rowsort label-2191
SELECT - 27 * 13 * - - COUNT ( * ) AS col2
----
-351

query II rowsort
SELECT ALL + - 11, 44 * 76 col2
----
-11
3344

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT + - COUNT( * ) + + 39
----
38

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2194
SELECT ALL - COUNT( * ) * + 96 DIV + 69
----
-1

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL - COUNT ( * ) * + 96 / + 69
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2195
SELECT DISTINCT - - 66 DIV + 21 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2195
SELECT DISTINCT - - 66 / + 21 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2196
SELECT + - 29 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-2196
SELECT + - 29 / 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT - - 34 * - 38 * ( + 1 ) * - + 29 + - COUNT( * ) AS col0
----
37467

skipif mysql # not compatible
query I rowsort label-2197
SELECT - - 34 * - 38 * ( + 1 ) * - + 29 + - COUNT ( * ) AS col0
----
37467

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2199
SELECT + CASE - 29 WHEN + - CAST( + - 12 AS SIGNED ) * - 38 + 80 + + COALESCE ( 82, + 17 * 12 * 51 + + 64 ) * + 45 THEN + 61 * + 98 ELSE + - 51 END * - 17 + + COUNT( * ) + 88
----
956

skipif mysql # not compatible
query I rowsort label-2199
SELECT + CASE - 29 WHEN + - CAST ( + - 12 AS INTEGER ) * - 38 + 80 + + COALESCE ( 82, + 17 * 12 * 51 + + 64 ) * + 45 THEN + 61 * + 98 ELSE + - 51 END * - 17 + + COUNT ( * ) + 88
----
956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT + - SUM( ALL 12 ) * + COALESCE ( CASE + COALESCE ( - 13, 97 + CASE - - 8 WHEN - 98 THEN 65 * 40 WHEN 86 THEN - + 40 ELSE - 0 END / 75 ) WHEN 42 * + CAST( NULL AS SIGNED ) * 11 + + + CASE + SUM( - + 68 ) WHEN + + 33 THEN + 70 - - 88 + 73 * - NULLIF ( - 5, - ( 47 ) + + COUNT( * ) + 50 * - 51 + 87 + 46 ) * - - 87 WHEN 74 THEN NULL END - 4 + - 28 * AVG ( ALL ( + COALESCE ( + CAST( + 99 AS SIGNED ), 8 ) ) ) THEN + 99 + + CASE 31 WHEN - 47 THEN + 70 WHEN 1 THEN NULL ELSE 94 * + 32 END END, + 45 + - ( - COUNT( * ) + + 4 ) ) * 41 col2
----
-20664

skipif mysql # not compatible
query I rowsort label-2200
SELECT + - SUM ( ALL 12 ) * + COALESCE ( CASE + COALESCE ( - 13, 97 + CASE - - 8 WHEN - 98 THEN 65 * 40 WHEN 86 THEN - + 40 ELSE - 0 END / 75 ) WHEN 42 * + CAST ( NULL AS INTEGER ) * 11 + + + CASE + SUM ( - + 68 ) WHEN + + 33 THEN + 70 - - 88 + 73 * - NULLIF ( - 5, - ( 47 ) + + COUNT ( * ) + 50 * - 51 + 87 + 46 ) * - - 87 WHEN 74 THEN NULL END - 4 + - 28 * AVG ( ALL ( + COALESCE ( + CAST ( + 99 AS INTEGER ), 8 ) ) ) THEN + 99 + + CASE 31 WHEN - 47 THEN + 70 WHEN 1 THEN NULL ELSE 94 * + 32 END END, + 45 + - ( - COUNT ( * ) + + 4 ) ) * 41 col2
----
-20664

query I rowsort
SELECT - 30 + + 11 * - 89 col0
----
-1009

onlyif mysql # aggregate syntax: 
query II rowsort label-2202
SELECT 30, + COUNT( * ) * 78 AS col0
----
30
78

skipif mysql # not compatible
query II rowsort label-2202
SELECT 30, + COUNT ( * ) * 78 AS col0
----
30
78

onlyif mysql # DIV for integer division: 
query II rowsort label-2203
SELECT ALL + 0, + 58 DIV - 21 AS col1
----
0
-2

skipif mysql # not compatible
query II rowsort label-2203
SELECT ALL + 0, + 58 / - 21 AS col1
----
0
-2

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

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

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

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

query I rowsort
SELECT + - ( 39 ) * 68 AS col0
----
-2652

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2207
SELECT + - 89 AS col2, 56 * + CAST( NULL AS SIGNED )
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-2207
SELECT + - 89 AS col2, 56 * + CAST ( NULL AS INTEGER )
----
-89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL + + NULLIF ( 97, + CASE - 59 WHEN + + SUM( - 4 ) * 85 THEN + + 35 END )
----
97

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL + + NULLIF ( 97, + CASE - 59 WHEN + + SUM ( - 4 ) * 85 THEN + + 35 END )
----
97

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2210
SELECT ALL + + 46 * + 34 + - CAST( AVG ( ALL + + 16 ) AS SIGNED ) - - NULLIF ( - - CASE - 94 WHEN 86 + + 54 * + 37 THEN + COUNT( * ) ELSE - + 68 END, + - 9 * + 77 + - - CAST( NULL AS SIGNED ) ) + - 40 + - - 43 * COUNT( * ) + + - 18 * + - 21 * 66 * + 94
----
2346595

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL + + 46 * + 34 + - CAST ( AVG ( ALL + + 16 ) AS INTEGER ) - - NULLIF ( - - CASE - 94 WHEN 86 + + 54 * + 37 THEN + COUNT ( * ) ELSE - + 68 END, + - 9 * + 77 + - - CAST ( NULL AS INTEGER ) ) + - 40 + - - 43 * COUNT ( * ) + + - 18 * + - 21 * 66 * + 94
----
2346595

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT MAX( ALL - 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2211
SELECT MAX ( ALL - 53 ) AS col0
----
-53

query I rowsort
SELECT ALL + 4 * - 47 + 47 AS col2
----
-141

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

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

query I rowsort
SELECT ALL COALESCE ( - 6, + 20 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT - SUM( + - 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2215
SELECT - SUM ( + - 28 ) AS col2
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL + 17 + - NULLIF ( 57, + 72 * - COALESCE ( + 81, + - 21, + 44 ) + SUM( - - 11 ) + + ( 50 ) / + 45 + 24 ) + ( 5 )
----
-35

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL + 17 + - NULLIF ( 57, + 72 * - COALESCE ( + 81, + - 21, + 44 ) + SUM ( - - 11 ) + + ( 50 ) / + 45 + 24 ) + ( 5 )
----
-35

query I rowsort
SELECT 54 + - 26
----
28

query I rowsort
SELECT 57 * - ( + 16 )
----
-912

query I rowsort
SELECT 64 + + 11 col0
----
75

query I rowsort
SELECT 99 - + 41 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT - 44 * - + 32 * + COUNT( * ) AS col1
----
1408

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT - 44 * - + 32 * + COUNT ( * ) AS col1
----
1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2223
SELECT ALL + 17 + 67 * COUNT( + CAST( NULL AS SIGNED ) ) AS col2, 33 * - 52
----
17
-1716

skipif mysql # not compatible
query II rowsort label-2223
SELECT ALL + 17 + 67 * COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2, 33 * - 52
----
17
-1716

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT DISTINCT COUNT( * ) * - + 61 DIV + + ( - 62 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT COUNT ( * ) * - + 61 / + + ( - 62 ) AS col1
----
0

query II rowsort
SELECT ALL 64 + - 52 + + 35 - 44 AS col1, - 70 * - 3
----
3
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT 89 + + + 76 * 5 + + CAST( + - ( + 4 ) AS SIGNED ) col2
----
465

skipif mysql # not compatible
query I rowsort label-2227
SELECT 89 + + + 76 * 5 + + CAST ( + - ( + 4 ) AS INTEGER ) col2
----
465

query I rowsort
SELECT DISTINCT - 45 * + 2
----
-90

query I rowsort
SELECT 2 * 57 * - + 3
----
-342

query I rowsort
SELECT ALL - 27 * 8 * 31 * - 46 * ( + 83 )
----
25565328

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL - 18 - - 21 + + - ( + - 34 ) + - 68 * - + COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL - 18 - - 21 + + - ( + - 34 ) + - 68 * - + COUNT ( * )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT - + MIN( + 78 ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-2232
SELECT - + MIN ( + 78 ) col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT DISTINCT - - CAST( 6 AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT - - CAST ( 6 AS INTEGER ) AS col2
----
6

query I rowsort
SELECT - 74 * 44 * - + 5 - + + 69 * + 56 * - 5 AS col1
----
35600

query I rowsort
SELECT DISTINCT - COALESCE ( + + 23, + 57 ) AS col0
----
-23

query I rowsort
SELECT DISTINCT + 5 * 39 * 5 col2
----
975

query I rowsort
SELECT + 40 * + - 71 * + 36 AS col1
----
-102240

query I rowsort
SELECT DISTINCT + 61 * + - 83 - + - 63 AS col1
----
-5000

query I rowsort
SELECT ALL - - 84
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT 25 * CAST( + 68 AS SIGNED ) AS col1
----
1700

skipif mysql # not compatible
query I rowsort label-2240
SELECT 25 * CAST ( + 68 AS INTEGER ) AS col1
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL - ( - 94 ) * - COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - ( - 94 ) * - COUNT ( * ) AS col2
----
-94

query I rowsort
SELECT + 67 - - - 83
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL + MAX( ALL - 24 ) + + COUNT( * ) + 57
----
34

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL + MAX ( ALL - 24 ) + + COUNT ( * ) + 57
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2245
SELECT DISTINCT - CASE + CAST( + 58 AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) - - 97 / COALESCE ( - AVG ( ALL + - 42 ), + 72 ) THEN NULL WHEN COUNT( - 16 ) THEN 32 / + 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT - CASE + CAST ( + 58 AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) - - 97 / COALESCE ( - AVG ( ALL + - 42 ), + 72 ) THEN NULL WHEN COUNT ( - 16 ) THEN 32 / + 66 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 87 + - - 18 AS col2
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT DISTINCT - 29 DIV + 52 * - - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT - 29 / + 52 * - - 61 AS col2
----
0

query I rowsort
SELECT DISTINCT 91 + - + 66 AS col1
----
25

query I rowsort
SELECT - 30 - + 13 + 1 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT 42 + 36 * + - MAX( - + 11 )
----
438

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT 42 + 36 * + - MAX ( - + 11 )
----
438

query I rowsort
SELECT ALL - 30 + + 50 + - + 36 * + - 37 * 65 * + 46 AS col2
----
3982700

query I rowsort
SELECT DISTINCT - 76 * - 76
----
5776

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT NULLIF ( 68, + 22 * + MAX( DISTINCT - - 90 ) * + 68 * + 9 ) + + MIN( - 73 )
----
-5

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT NULLIF ( 68, + 22 * + MAX ( DISTINCT - - 90 ) * + 68 * + 9 ) + + MIN ( - 73 )
----
-5

query II rowsort
SELECT 0, 53 - - COALESCE ( - 26, + 21 ) AS col2
----
0
27

query I rowsort
SELECT ALL 83 * - 53 * - 53 AS col1
----
233147

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

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT - COUNT ( * ) - + - 50 AS col2
----
49

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

query I rowsort
SELECT ALL - 31 - 57
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2259
SELECT 92 * - 57 DIV + + COUNT( * )
----
-5244

skipif mysql # not compatible
query I rowsort label-2259
SELECT 92 * - 57 / + + COUNT ( * )
----
-5244

query I rowsort
SELECT ALL - 58 * + 87 AS col0
----
-5046

query I rowsort
SELECT 2 + - 43
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT - SUM( 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-2262
SELECT - SUM ( 29 )
----
-29

query I rowsort
SELECT 82 * + ( + 26 ) AS col2
----
2132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2264
SELECT 18 * + 18 / - + CAST( NULL AS SIGNED ) AS col0, 67 + - - 81 AS col0
----
NULL
148

skipif mysql # not compatible
query II rowsort label-2264
SELECT 18 * + 18 / - + CAST ( NULL AS INTEGER ) AS col0, 67 + - - 81 AS col0
----
NULL
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2265
SELECT 89 - - ( - - 14 ), ( + + CAST( SUM( ALL + ( - 74 ) ) AS SIGNED ) ) AS col2
----
103
-74

skipif mysql # not compatible
query II rowsort label-2265
SELECT 89 - - ( - - 14 ), ( + + CAST ( SUM ( ALL + ( - 74 ) ) AS INTEGER ) ) AS col2
----
103
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT 24 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-2266
SELECT 24 / - 71
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT DISTINCT - 14 DIV 12
----
-1

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT - 14 / 12
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT ALL SUM( DISTINCT + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL SUM ( DISTINCT + 24 )
----
24

query II rowsort
SELECT 16 col0, + 22
----
16
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2270
SELECT 8 * + CAST( NULL AS DECIMAL ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT 8 * + CAST ( NULL AS REAL ) * - 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT ALL - - 58 DIV + + NULLIF ( 5, ( + 93 ) ) + + + NULLIF ( MAX( DISTINCT - 61 ), - 67 * + - 79 * 17 + + 18 ) - - 0
----
-50

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL - - 58 / + + NULLIF ( 5, ( + 93 ) ) + + + NULLIF ( MAX ( DISTINCT - 61 ), - 67 * + - 79 * 17 + + 18 ) - - 0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT - + 33 / - 71 / + MAX( - 2 ) * + + NULLIF ( 4, - 26 * + - COUNT( * ) * + + 97 ) + 43 + - + 72 * 55 / 2 + + + 80 + + 94 * 73 * + CASE - - 83 WHEN + 71 + + + 27 THEN + + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT - + 33 / - 71 / + MAX ( - 2 ) * + + NULLIF ( 4, - 26 * + - COUNT ( * ) * + + 97 ) + 43 + - + 72 * 55 / 2 + + + 80 + + 94 * 73 * + CASE - - 83 WHEN + 71 + + + 27 THEN + + 91 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL 2 * + - COUNT( * ) + + 66 + 26 * + COALESCE ( + 42, 2 )
----
1156

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL 2 * + - COUNT ( * ) + + 66 + 26 * + COALESCE ( + 42, 2 )
----
1156

query I rowsort
SELECT - 71 - - 90 * - 92 AS col0
----
-8351

onlyif mysql # DIV for integer division: 
query I rowsort label-2275
SELECT 70 DIV - 95 - - + 64
----
64

skipif mysql # not compatible
query I rowsort label-2275
SELECT 70 / - 95 - - + 64
----
64

query I rowsort
SELECT ALL - - 82 * 77 + + 22 AS col1
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT COALESCE ( - ( MAX( + 62 ) ), 43 + COUNT( * ) ) - - + 8
----
-54

skipif mysql # not compatible
query I rowsort label-2277
SELECT COALESCE ( - ( MAX ( + 62 ) ), 43 + COUNT ( * ) ) - - + 8
----
-54

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

skipif mysql # not compatible
query I rowsort label-2278
SELECT + 24 / + 74
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2279
SELECT ALL - ( + MIN( - - 94 ) ) * + 90 * 2, - 57 AS col1
----
-16920
-57

skipif mysql # not compatible
query II rowsort label-2279
SELECT ALL - ( + MIN ( - - 94 ) ) * + 90 * 2, - 57 AS col1
----
-16920
-57

query I rowsort
SELECT DISTINCT - - 73 AS col2
----
73

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2282
SELECT - + MAX( 80 ) * - COUNT( * ) * COUNT( * ) * + COALESCE ( + 87, 57 ) + 76 - + 5 + - 37 + + - 94 AS col0, - 93 AS col1
----
6900
-93

skipif mysql # not compatible
query II rowsort label-2282
SELECT - + MAX ( 80 ) * - COUNT ( * ) * COUNT ( * ) * + COALESCE ( + 87, 57 ) + 76 - + 5 + - 37 + + - 94 AS col0, - 93 AS col1
----
6900
-93

query I rowsort
SELECT 39 * 27 AS col1
----
1053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2284
SELECT ALL + + COALESCE ( - - CASE + CASE + 84 WHEN - 8 THEN - ( + + AVG ( ALL + 82 ) ) * - + CAST( NULL AS SIGNED ) WHEN - - 23 - - 68 THEN NULL END WHEN 50 THEN - COALESCE ( + + 37, - 93, + 49 ) + - - 23 + + COUNT( * ) WHEN + + 20 / - 52 + - + 48 + COUNT( * ) THEN NULL ELSE NULL END, + 16 ) * + ( + 89 ) * 91 * COUNT( * ) + - + CAST( NULL AS SIGNED ), + 69 AS col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-2284
SELECT ALL + + COALESCE ( - - CASE + CASE + 84 WHEN - 8 THEN - ( + + AVG ( ALL + 82 ) ) * - + CAST ( NULL AS INTEGER ) WHEN - - 23 - - 68 THEN NULL END WHEN 50 THEN - COALESCE ( + + 37, - 93, + 49 ) + - - 23 + + COUNT ( * ) WHEN + + 20 / - 52 + - + 48 + COUNT ( * ) THEN NULL ELSE NULL END, + 16 ) * + ( + 89 ) * 91 * COUNT ( * ) + - + CAST ( NULL AS INTEGER ), + 69 AS col2
----
NULL
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT + 65 + 24 DIV + + 92
----
65

skipif mysql # not compatible
query I rowsort label-2285
SELECT + 65 + 24 / + + 92
----
65

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

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

query I rowsort
SELECT - 78 + - - 30
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT - 11 * - COUNT( * ) + + 28 + + 11
----
50

skipif mysql # not compatible
query I rowsort label-2289
SELECT - 11 * - COUNT ( * ) + + 28 + + 11
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT ALL 94 * - COUNT( * ) + - + MAX( ALL - 72 ) + - - 68 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL 94 * - COUNT ( * ) + - + MAX ( ALL - 72 ) + - - 68 AS col2
----
46

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

query II rowsort
SELECT 78 AS col0, + 56
----
78
56

query I rowsort
SELECT ALL + 31 * - 8 + 60 + - 54 + + - ( - - 87 ) AS col0
----
-329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2294
SELECT - - 50 * + - CASE 80 WHEN + 85 THEN ( COUNT( * ) ) + - 41 + COUNT( * ) + 39 * - 39 WHEN 47 / 14 - - - 82 THEN NULL WHEN - 71 THEN NULL ELSE 63 END * - - 54 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT - - 50 * + - CASE 80 WHEN + 85 THEN ( COUNT ( * ) ) + - 41 + COUNT ( * ) + 39 * - 39 WHEN 47 / 14 - - - 82 THEN NULL WHEN - 71 THEN NULL ELSE 63 END * - - 54 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT MIN( ALL 90 ) col2
----
90

skipif mysql # not compatible
query I rowsort label-2295
SELECT MIN ( ALL 90 ) col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT + CAST( - 89 AS SIGNED ) + + 25
----
-64

skipif mysql # not compatible
query I rowsort label-2296
SELECT + CAST ( - 89 AS INTEGER ) + + 25
----
-64

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

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

query I rowsort
SELECT DISTINCT + 17 - 4 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ALL - 62 - + - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL - 62 - + - COUNT ( * )
----
-61

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

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

query I rowsort
SELECT ALL 42 - - + 36 AS col0
----
78

query I rowsort
SELECT DISTINCT 0 * + 73 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2303
SELECT ALL + 18 AS col0, 76 DIV - + ( - + 55 ) AS col1
----
18
1

skipif mysql # not compatible
query II rowsort label-2303
SELECT ALL + 18 AS col0, 76 / - + ( - + 55 ) AS col1
----
18
1

query I rowsort
SELECT ALL + 99 - - 72 AS col2
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT ALL + 90 DIV + - 62 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL + 90 / + - 62 AS col0
----
-1

query II rowsort
SELECT + ( 16 ) + 44 * 43, - ( - 84 ) AS col2
----
1908
84

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

query I rowsort
SELECT - 99 * - 67 * + 15 AS col2
----
99495

query I rowsort
SELECT + 70 * - 57 AS col0
----
-3990

query I rowsort
SELECT ALL - NULLIF ( 16, - 4 * 3 / - CASE + 31 WHEN 49 / + 12 THEN NULL ELSE 72 END ) * 7 col1
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2311
SELECT + COUNT( - + 35 ) + + - CAST( NULL AS SIGNED ) + 94 + - COALESCE ( - AVG ( - + 33 ), - COUNT( * ) + 65, 10 * 72 + + + COALESCE ( + 18, - 16 ) ) * + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT + COUNT ( - + 35 ) + + - CAST ( NULL AS INTEGER ) + 94 + - COALESCE ( - AVG ( - + 33 ), - COUNT ( * ) + 65, 10 * 72 + + + COALESCE ( + 18, - 16 ) ) * + 57 AS col1
----
NULL

query I rowsort
SELECT + 63 + - 73
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2313
SELECT ALL SUM( DISTINCT + CAST( 17 AS SIGNED ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL SUM ( DISTINCT + CAST ( 17 AS INTEGER ) ) AS col2
----
17

query I rowsort
SELECT ALL - 0 * 99 AS col2
----
0

query I rowsort
SELECT - 40 * - 67
----
2680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2316
SELECT ALL 45 * MAX( ALL - CAST( - 5 AS SIGNED ) )
----
225

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL 45 * MAX ( ALL - CAST ( - 5 AS INTEGER ) )
----
225

query I rowsort
SELECT - + 16 + + + 16 AS col0
----
0

query II rowsort
SELECT - 6, + 95 col0
----
-6
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2319
SELECT DISTINCT COUNT( * ) + - 49 DIV + 70 * 99 * 83 * - + 20
----
1

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT COUNT ( * ) + - 49 / + 70 * 99 * 83 * - + 20
----
1

query I rowsort
SELECT - + 67 + + + 90
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL + MAX( - 91 ) + + 44
----
-47

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL + MAX ( - 91 ) + + 44
----
-47

query II rowsort
SELECT - 73 AS col0, 7 - + 26 AS col1
----
-73
-19

onlyif mysql # DIV for integer division: 
query III rowsort label-2323
SELECT DISTINCT 84, 66 DIV + ( - - 76 ) col2, + + 2 AS col2
----
84
0
2

skipif mysql # not compatible
query III rowsort label-2323
SELECT DISTINCT 84, 66 / + ( - - 76 ) col2, + + 2 AS col2
----
84
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL + COUNT( * ) + - - 39 * COUNT( * ) * - 93 + - + 12 + + - 67 + 33 + - 3 * COUNT( * ) * + - 98
----
-3378

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + COUNT ( * ) + - - 39 * COUNT ( * ) * - 93 + - + 12 + + - 67 + 33 + - 3 * COUNT ( * ) * + - 98
----
-3378

query I rowsort
SELECT - 49 * 61 AS col1
----
-2989

onlyif mysql # DIV for integer division: 
query II rowsort label-2326
SELECT DISTINCT + 54, + 38 DIV COALESCE ( + + 20, - 42, + - 73 ) + 46 AS col1
----
54
47

skipif mysql # not compatible
query II rowsort label-2326
SELECT DISTINCT + 54, + 38 / COALESCE ( + + 20, - 42, + - 73 ) + 46 AS col1
----
54
47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT ALL 42 DIV - 84 * - 73 * + 38 + + 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL 42 / - 84 * - 73 * + 38 + + 60 AS col0
----
60

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

query I rowsort
SELECT - - 40 * 72
----
2880

query I rowsort
SELECT - + 71 * + + 86 col1
----
-6106

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2333
SELECT - - 90 DIV - + MIN( DISTINCT 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-2333
SELECT - - 90 / - + MIN ( DISTINCT 70 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-2334
SELECT - ( - 70 ) * - COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT + COUNT( * ) * - - 27 * - - 85 + + 51 col0
----
2346

skipif mysql # not compatible
query I rowsort label-2335
SELECT + COUNT ( * ) * - - 27 * - - 85 + + 51 col0
----
2346

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

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

query I rowsort
SELECT - 65 - + 6 col2
----
-71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT + COUNT( * ) * + ( + + 17 ) - COUNT( * ) col1
----
16

skipif mysql # not compatible
query I rowsort label-2339
SELECT + COUNT ( * ) * + ( + + 17 ) - COUNT ( * ) col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT - 76 * 8 * - COUNT( * )
----
608

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT - 76 * 8 * - COUNT ( * )
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL 54 * 61 * + 47 - ( - 18 ) - - 72 - 47 * - ( COUNT( * ) ) AS col1
----
154955

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL 54 * 61 * + 47 - ( - 18 ) - - 72 - 47 * - ( COUNT ( * ) ) AS col1
----
154955

onlyif mysql # aggregate syntax: 
query II rowsort label-2342
SELECT - COUNT( DISTINCT + + 55 ) * - 4, 30 * + 11 + 31 + + - 99 - + 95 * COUNT( * ) AS col1
----
4
167

skipif mysql # not compatible
query II rowsort label-2342
SELECT - COUNT ( DISTINCT + + 55 ) * - 4, 30 * + 11 + 31 + + - 99 - + 95 * COUNT ( * ) AS col1
----
4
167

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT NULLIF ( - ( + + 14 ), + COUNT( ALL + - 49 ) + + 52 + MIN( DISTINCT + 67 ) ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-2343
SELECT NULLIF ( - ( + + 14 ), + COUNT ( ALL + - 49 ) + + 52 + MIN ( DISTINCT + 67 ) ) col0
----
-14

query I rowsort
SELECT + 6 - ( 4 ) - - 21 * 5 AS col1
----
107

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

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

query I rowsort
SELECT + 23 * - - NULLIF ( 76, + 48 ) col1
----
1748

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT DISTINCT COUNT( * ) * - 65
----
-65

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT COUNT ( * ) * - 65
----
-65

query I rowsort
SELECT - ( - - 42 ) + - 5 + 81 + + + 25 + + 91 AS col2
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-2351
SELECT + 76 DIV 84 * 81 * + 87
----
0

skipif mysql # not compatible
query I rowsort label-2351
SELECT + 76 / 84 * 81 * + 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2352
SELECT + CAST( 38 AS SIGNED ) * + COALESCE ( + - 72, 64 - - COUNT( * ) * + NULLIF ( - 84, - + 8 ) )
----
-2736

skipif mysql # not compatible
query I rowsort label-2352
SELECT + CAST ( 38 AS INTEGER ) * + COALESCE ( + - 72, 64 - - COUNT ( * ) * + NULLIF ( - 84, - + 8 ) )
----
-2736

query I rowsort
SELECT + 46 + + 75
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL COUNT( - 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL COUNT ( - 44 ) AS col0
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT ALL COALESCE ( - ( + - 53 ), + 36 DIV + 77 ) + 40
----
93

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL COALESCE ( - ( + - 53 ), + 36 / + 77 ) + 40
----
93

query I rowsort
SELECT DISTINCT 4 + 40 AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2358
SELECT MAX( 48 ), - 50 AS col0
----
48
-50

skipif mysql # not compatible
query II rowsort label-2358
SELECT MAX ( 48 ), - 50 AS col0
----
48
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT ( 1 ) + + ( COUNT( * ) ) + 65 * + 40 AS col0
----
2602

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT ( 1 ) + + ( COUNT ( * ) ) + 65 * + 40 AS col0
----
2602

onlyif mysql # aggregate syntax: 
query II rowsort label-2360
SELECT ALL 23 + ( + ( COUNT( * ) ) ) * + 27 - + 22 * 97, 63 * - 42 AS col0
----
-2084
-2646

skipif mysql # not compatible
query II rowsort label-2360
SELECT ALL 23 + ( + ( COUNT ( * ) ) ) * + 27 - + 22 * 97, 63 * - 42 AS col0
----
-2084
-2646

onlyif mysql # DIV for integer division: 
query II rowsort label-2361
SELECT ALL - 7 DIV 45 col0, 52 * + 95 AS col1
----
0
4940

skipif mysql # not compatible
query II rowsort label-2361
SELECT ALL - 7 / 45 col0, 52 * + 95 AS col1
----
0
4940

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT + 97 DIV 26 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2362
SELECT + 97 / 26 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2363
SELECT + COUNT( ALL + 4 ) DIV 80 + + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2363
SELECT + COUNT ( ALL + 4 ) / 80 + + 49 AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT + COALESCE ( 30, + CAST( NULL AS SIGNED ) ) - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT + COALESCE ( 30, + CAST ( NULL AS INTEGER ) ) - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL 50 + MAX( + 98 )
----
148

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL 50 + MAX ( + 98 )
----
148

query II rowsort
SELECT + 20 - + - 86, - ( - 9 ) AS col1
----
106
9

query I rowsort
SELECT ALL 64 + ( 15 ) AS col1
----
79

query I rowsort
SELECT + + 35 + + + 7 AS col0
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT DISTINCT 35 + - + MIN( DISTINCT - 64 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT 35 + - + MIN ( DISTINCT - 64 ) AS col1
----
99

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

query I rowsort
SELECT 20 * 5
----
100

query I rowsort
SELECT - 40 * - 3 + + 4 + + 70 AS col2
----
194

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

query I rowsort
SELECT ALL - - 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT 58 + - 99 + 30 * + COUNT( * ) * CASE + - 25 WHEN - 46 + + 68 THEN 59 ELSE - COUNT( * ) END
----
-71

skipif mysql # not compatible
query I rowsort label-2376
SELECT 58 + - 99 + 30 * + COUNT ( * ) * CASE + - 25 WHEN - 46 + + 68 THEN 59 ELSE - COUNT ( * ) END
----
-71

query II rowsort
SELECT + 39 AS col2, + 24 col2
----
39
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT + 57 * - COUNT( * ) + + + 22 col0
----
-35

skipif mysql # not compatible
query I rowsort label-2378
SELECT + 57 * - COUNT ( * ) + + + 22 col0
----
-35

query I rowsort
SELECT ALL + 99 - - 88 / + 28 * + ( - CASE + 77 WHEN + 42 + + 44 THEN 70 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT 83 * + - 64
----
-5312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2381
SELECT ALL + 26 DIV - 47 * - COUNT( * ) * - 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL + 26 / - 47 * - COUNT ( * ) * - 2 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT DISTINCT + 17 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT + 17 / - 64
----
0

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

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

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

skipif mysql # not compatible
query II rowsort label-2384
SELECT DISTINCT - COUNT ( * ) AS col0, - ( - 93 )
----
-1
93

query I rowsort
SELECT ALL - 99 * 39
----
-3861

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT 73 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT 73 / - 81
----
0

query I rowsort
SELECT 8 * 86 AS col0
----
688

onlyif mysql # DIV for integer division: 
query I rowsort label-2388
SELECT 11 + - + 14 * - CASE + 35 WHEN + AVG ( + 86 ) THEN + + CASE 26 WHEN + - 65 THEN NULL WHEN + 6 THEN - 18 DIV + NULLIF ( CASE 71 WHEN - 4 THEN - 78 WHEN + 62 THEN NULL WHEN + - 84 * + 92 THEN NULL ELSE NULL END, + 72 ) + 85 ELSE NULL END ELSE 27 END
----
389

skipif mysql # not compatible
query I rowsort label-2388
SELECT 11 + - + 14 * - CASE + 35 WHEN + AVG ( + 86 ) THEN + + CASE 26 WHEN + - 65 THEN NULL WHEN + 6 THEN - 18 / + NULLIF ( CASE 71 WHEN - 4 THEN - 78 WHEN + 62 THEN NULL WHEN + - 84 * + 92 THEN NULL ELSE NULL END, + 72 ) + 85 ELSE NULL END ELSE 27 END
----
389

query I rowsort
SELECT 18 * 79 col2
----
1422

query I rowsort
SELECT ALL + 27 * - 19 AS col0
----
-513

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT 27 AS col2, + NULLIF ( + SUM( 25 ), MIN( 80 ) ) + + 94 AS col2
----
27
119

skipif mysql # not compatible
query II rowsort label-2391
SELECT 27 AS col2, + NULLIF ( + SUM ( 25 ), MIN ( 80 ) ) + + 94 AS col2
----
27
119

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

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

query I rowsort
SELECT 8 * + - 20
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL 52 + - - COUNT( * ) + 83 + - - 84 AS col2
----
220

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL 52 + - - COUNT ( * ) + 83 + - - 84 AS col2
----
220

query I rowsort
SELECT 98 * - 32 AS col1
----
-3136

query II rowsort
SELECT ALL 35 AS col0, CASE 91 WHEN - - 45 THEN NULL WHEN + 45 THEN + - 58 - 97 WHEN + 28 THEN 62 END + 26
----
35
NULL

query I rowsort
SELECT ALL + 45 + + + 54 * + + 19
----
1071

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT - + COUNT( * ), MIN( + 0 ) AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-2398
SELECT - + COUNT ( * ), MIN ( + 0 ) AS col0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2399
SELECT + 18 + + - 94 * + CAST( + 14 AS SIGNED ) col0
----
-1298

skipif mysql # not compatible
query I rowsort label-2399
SELECT + 18 + + - 94 * + CAST ( + 14 AS INTEGER ) col0
----
-1298

query I rowsort
SELECT ALL 57 + - 8
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL - - 71 + + - CASE 28 WHEN + 59 - 45 THEN NULL ELSE + COUNT( * ) END * - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL - - 71 + + - CASE 28 WHEN + 59 - 45 THEN NULL ELSE + COUNT ( * ) END * - COUNT ( * ) AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2402
SELECT - 40 * + 45 DIV COUNT( * ) * + ( + 11 ) + + COUNT( * ) AS col2, + 79 AS col0
----
-19799
79

skipif mysql # not compatible
query II rowsort label-2402
SELECT - 40 * + 45 / COUNT ( * ) * + ( + 11 ) + + COUNT ( * ) AS col2, + 79 AS col0
----
-19799
79

query I rowsort
SELECT ALL 84 + + 73 AS col1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT 55 + + 11 * 80 - + COUNT( ALL - - 13 )
----
934

skipif mysql # not compatible
query I rowsort label-2404
SELECT 55 + + 11 * 80 - + COUNT ( ALL - - 13 )
----
934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2405
SELECT ALL + MAX( DISTINCT - CAST( + 7 AS SIGNED ) ) AS col0, 75
----
-7
75

skipif mysql # not compatible
query II rowsort label-2405
SELECT ALL + MAX ( DISTINCT - CAST ( + 7 AS INTEGER ) ) AS col0, 75
----
-7
75

query II rowsort
SELECT - 97 AS col2, + 68
----
-97
68

query I rowsort
SELECT ALL 37 - + 27 + - 49
----
-39

query I rowsort
SELECT + 7 * 79 AS col0
----
553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2409
SELECT DISTINCT + COUNT( * ) DIV 81 * 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT + COUNT ( * ) / 81 * 5 AS col2
----
0

query I rowsort
SELECT NULLIF ( + - 11, 23 ) * + 66 + - 50 * + - 57
----
2124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2411
SELECT - CAST( + MAX( - 32 ) AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-2411
SELECT - CAST ( + MAX ( - 32 ) AS INTEGER )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2412
SELECT COUNT( * ) DIV 36 + 32, - 69 AS col1
----
32
-69

skipif mysql # not compatible
query II rowsort label-2412
SELECT COUNT ( * ) / 36 + 32, - 69 AS col1
----
32
-69

query I rowsort
SELECT ALL 87 * + - 42
----
-3654

query I rowsort
SELECT - 56 * + + 71
----
-3976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2415
SELECT + COUNT( * ) AS col0, - CASE + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN + 32 * - + 18 + - 7 - + 81 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2415
SELECT + COUNT ( * ) AS col0, - CASE + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN + 32 * - + 18 + - 7 - + 81 END AS col2
----
1
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2417
SELECT CAST( - 78 AS SIGNED ) * ( + - 28 ) * - COALESCE ( + 88, + 22 ) * + + 18 + + ( + 8 ) AS col2
----
-3459448

skipif mysql # not compatible
query I rowsort label-2417
SELECT CAST ( - 78 AS INTEGER ) * ( + - 28 ) * - COALESCE ( + 88, + 22 ) * + + 18 + + ( + 8 ) AS col2
----
-3459448

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2419
SELECT CAST( + 47 AS SIGNED ) * + + 80 + COUNT( * ) + + 34 AS col1
----
3795

skipif mysql # not compatible
query I rowsort label-2419
SELECT CAST ( + 47 AS INTEGER ) * + + 80 + COUNT ( * ) + + 34 AS col1
----
3795

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT 18 * - CASE - COUNT( * ) WHEN + - 6 THEN NULL ELSE - 50 + 38 * + COUNT( * ) END * + NULLIF ( - 77, - 75 * - 69 ) + 45 + - + COUNT( * )
----
-16588

skipif mysql # not compatible
query I rowsort label-2420
SELECT 18 * - CASE - COUNT ( * ) WHEN + - 6 THEN NULL ELSE - 50 + 38 * + COUNT ( * ) END * + NULLIF ( - 77, - 75 * - 69 ) + 45 + - + COUNT ( * )
----
-16588

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL - SUM( 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - SUM ( 86 )
----
-86

query I rowsort
SELECT ALL - 27 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT 41 * - - 80 - - 0 + + - COUNT( * ) * 56 * 18
----
2272

skipif mysql # not compatible
query I rowsort label-2423
SELECT 41 * - - 80 - - 0 + + - COUNT ( * ) * 56 * 18
----
2272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2424
SELECT 8 DIV - + 82 * + 39 * - NULLIF ( + COUNT( * ), ( + ( - 80 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2424
SELECT 8 / - + 82 * + 39 * - NULLIF ( + COUNT ( * ), ( + ( - 80 ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT ALL 70 + + CAST( NULL AS SIGNED ) + - - 52 - - - ( COUNT( * ) ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT DISTINCT - CAST( - 44 AS SIGNED ) * 50
----
2200

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT - CAST ( - 44 AS INTEGER ) * 50
----
2200

query I rowsort
SELECT ALL - 69 * + 37 * - + 90
----
229770

onlyif mysql # DIV for integer division: 
query I rowsort label-2428
SELECT 33 DIV 9
----
3

skipif mysql # not compatible
query I rowsort label-2428
SELECT 33 / 9
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2429
SELECT 23 DIV + - 95 * + 6 * + ( 28 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2429
SELECT 23 / + - 95 * + 6 * + ( 28 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL + 5 * - 46 * - 86 + + MIN( + 67 )
----
19847

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL + 5 * - 46 * - 86 + + MIN ( + 67 )
----
19847

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT DISTINCT - - MIN( ALL - + 1 ) * - + CASE - 89 WHEN + 2 THEN NULL WHEN - - COUNT( ALL - - 73 ) / ( - - 76 ) THEN NULL WHEN + 3 / 36 THEN - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT - - MIN ( ALL - + 1 ) * - + CASE - 89 WHEN + 2 THEN NULL WHEN - - COUNT ( ALL - - 73 ) / ( - - 76 ) THEN NULL WHEN + 3 / 36 THEN - 68 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2432
SELECT DISTINCT + - CASE + + COUNT( * ) WHEN 89 THEN CAST( NULL AS SIGNED ) WHEN 69 THEN 93 + + 90 ELSE - - 89 END - + 78
----
-167

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT + - CASE + + COUNT ( * ) WHEN 89 THEN CAST ( NULL AS INTEGER ) WHEN 69 THEN 93 + + 90 ELSE - - 89 END - + 78
----
-167

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

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

query I rowsort
SELECT + 38 * 95 * - 93
----
-335730

query I rowsort
SELECT - - 73 col0
----
73

query I rowsort
SELECT + NULLIF ( - + 60, + 59 + ( 71 ) ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT ALL - 72 * - MIN( - - 62 )
----
4464

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL - 72 * - MIN ( - - 62 )
----
4464

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT - - 67 - - COUNT( * ) + 37 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-2438
SELECT - - 67 - - COUNT ( * ) + 37 AS col1
----
105

onlyif mysql # DIV for integer division: 
query II rowsort label-2439
SELECT - - CASE 24 WHEN 82 * + 62 + + - 41 THEN NULL ELSE + + 53 DIV - 55 END AS col2, 49 + + 88 * - 39 + + 75 AS col0
----
0
-3308

skipif mysql # not compatible
query II rowsort label-2439
SELECT - - CASE 24 WHEN 82 * + 62 + + - 41 THEN NULL ELSE + + 53 / - 55 END AS col2, 49 + + 88 * - 39 + + 75 AS col0
----
0
-3308

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

query I rowsort
SELECT - + 92 + - 78
----
-170

query I rowsort
SELECT DISTINCT NULLIF ( + 69, + ( + 57 ) / + 19 - + 57 )
----
69

query I rowsort
SELECT ALL CASE + 42 WHEN - + ( - 42 ) THEN - 74 * - + 52 WHEN 71 THEN NULL END - - + 19 + + - 89
----
3778

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT + SUM( ALL + 40 ) * + 26 + + 12 AS col2
----
1052

skipif mysql # not compatible
query I rowsort label-2445
SELECT + SUM ( ALL + 40 ) * + 26 + + 12 AS col2
----
1052

query I rowsort
SELECT + + 51 - - CASE + 20 WHEN - 29 THEN + 58 END + + ( - 60 ) * + 92
----
NULL

query II rowsort
SELECT ALL ( 52 ) AS col1, 10
----
52
10

query I rowsort
SELECT + 7 - + + 97 + ( - 48 ) * 71
----
-3498

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2449
SELECT - MIN( DISTINCT + + 87 ) DIV - 49
----
1

skipif mysql # not compatible
query I rowsort label-2449
SELECT - MIN ( DISTINCT + + 87 ) / - 49
----
1

query I rowsort
SELECT + 83 + - - ( + + 84 ) AS col2
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2451
SELECT ALL 89 / + 78 * + CAST( NULL AS SIGNED ) AS col1, + 66 + - ( + 9 ) AS col2
----
NULL
57

skipif mysql # not compatible
query II rowsort label-2451
SELECT ALL 89 / + 78 * + CAST ( NULL AS INTEGER ) AS col1, + 66 + - ( + 9 ) AS col2
----
NULL
57

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2453
SELECT ALL + 34 * - 17 DIV - - COUNT( - + 91 ) + - 67
----
-645

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL + 34 * - 17 / - - COUNT ( - + 91 ) + - 67
----
-645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2454
SELECT ( 38 ) DIV MAX( - 96 ) + - MAX( + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-2454
SELECT ( 38 ) / MAX ( - 96 ) + - MAX ( + 31 )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-2455
SELECT DISTINCT + 82 DIV + 50 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT + 82 / + 50 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT DISTINCT 48 * - 35 * 69 + + ( - + ( - NULLIF ( - COUNT( * ), 24 ) ) ) + + - 89 AS col0
----
-116010

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT 48 * - 35 * 69 + + ( - + ( - NULLIF ( - COUNT ( * ), 24 ) ) ) + + - 89 AS col0
----
-116010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT 46 * CAST( NULL AS SIGNED ) * + 28 + + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT 46 * CAST ( NULL AS INTEGER ) * + 28 + + + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL 22 * + 82 * MAX( ALL 77 ) * + 12 + - SUM( + 46 ) * COUNT( * )
----
1666850

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL 22 * + 82 * MAX ( ALL 77 ) * + 12 + - SUM ( + 46 ) * COUNT ( * )
----
1666850

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2460
SELECT - 53 * + MAX( ALL 84 ) / - 70 + 98 * + 69 * - COUNT( * ) * - + 30 + - 65 + - 56 + + ( + - CAST( NULL AS SIGNED ) ) / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT - 53 * + MAX ( ALL 84 ) / - 70 + 98 * + 69 * - COUNT ( * ) * - + 30 + - 65 + - 56 + + ( + - CAST ( NULL AS INTEGER ) ) / 59
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2461
SELECT + 78 DIV - - MIN( ALL + 20 ) + 91 DIV - 72 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2461
SELECT + 78 / - - MIN ( ALL + 20 ) + 91 / - 72 AS col0
----
2

query I rowsort
SELECT CASE + 99 WHEN - COALESCE ( + - 61, + 0 ) THEN NULL ELSE - 99 END
----
-99

query I rowsort
SELECT ALL - 24 * - 93 * + 22 + - + 81 * - 87 * - 39 + + 44 col0
----
-225685

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2464
SELECT ALL + 41 * + ( + - 91 ) + + COALESCE ( - 43, - - 56 + - + 28 DIV - MIN( ALL + - 80 ) ) - COUNT( 53 ) AS col2
----
-3775

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL + 41 * + ( + - 91 ) + + COALESCE ( - 43, - - 56 + - + 28 / - MIN ( ALL + - 80 ) ) - COUNT ( 53 ) AS col2
----
-3775

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT + 98 + - + MIN( - 83 ) - + + 80 col0
----
101

skipif mysql # not compatible
query I rowsort label-2465
SELECT + 98 + - + MIN ( - 83 ) - + + 80 col0
----
101

query I rowsort
SELECT + 57 * 81
----
4617

query I rowsort
SELECT 1 * - 77 + + 71 * 49 AS col2
----
3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2468
SELECT ALL + COUNT( * ) * 17 * + - 83 * + 27 + - 83 + 68 + - COUNT( * ) + CAST( + - 34 AS SIGNED ) AS col2
----
-38147

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL + COUNT ( * ) * 17 * + - 83 * + 27 + - 83 + 68 + - COUNT ( * ) + CAST ( + - 34 AS INTEGER ) AS col2
----
-38147

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL + - COALESCE ( COUNT( * ), 5 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL + - COALESCE ( COUNT ( * ), 5 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT ALL 83 * - CAST( ( - + 54 ) AS SIGNED ) - + + 77 * - - 33 AS col1
----
1941

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL 83 * - CAST ( ( - + 54 ) AS INTEGER ) - + + 77 * - - 33 AS col1
----
1941

query II rowsort
SELECT DISTINCT + + 78, 97 * - 84 AS col0
----
78
-8148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2472
SELECT ALL - - COUNT( + 67 ) * + COALESCE ( + SUM( 30 ), 71 DIV + - SUM( + 82 ) - + 53 ) + - + 66
----
-36

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL - - COUNT ( + 67 ) * + COALESCE ( + SUM ( 30 ), 71 / + - SUM ( + 82 ) - + 53 ) + - + 66
----
-36

query I rowsort
SELECT - + 57 + + 79 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + + COUNT( * ) * - 35 * - 66 * + - 23 col0
----
-53130

skipif mysql # not compatible
query I rowsort label-2474
SELECT + + COUNT ( * ) * - 35 * - 66 * + - 23 col0
----
-53130

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT + - 18 * COUNT( DISTINCT + 74 ) + - + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-2475
SELECT + - 18 * COUNT ( DISTINCT + 74 ) + - + COUNT ( * )
----
-19

query I rowsort
SELECT ALL + - 4 * - ( - COALESCE ( + 29, + 70 * + 2 ) ) col0
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2477
SELECT + ( + 75 ) + COUNT( * ) + - 19 / + 90 * + + COUNT( - 93 ) / CAST( NULL AS SIGNED ) * - + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT + ( + 75 ) + COUNT ( * ) + - 19 / + 90 * + + COUNT ( - 93 ) / CAST ( NULL AS INTEGER ) * - + 85 AS col0
----
NULL

query I rowsort
SELECT - 2 + - - 44 + 85 + 31 * - 72 AS col2
----
-2105

query I rowsort
SELECT - + 63 - + 31 + ( 57 ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2480
SELECT DISTINCT + CAST( - 89 AS SIGNED ) * - - 91 * - MAX( ALL - + 1 ) + + - COUNT( * ) * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT + CAST ( - 89 AS INTEGER ) * - - 91 * - MAX ( ALL - + 1 ) + + - COUNT ( * ) * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2481
SELECT ALL 85 * + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL 85 * + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT - + 55 + + - ( + 51 ) AS col0
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2483
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) col0
----
1

query I rowsort
SELECT - + 5 + - + 35 AS col2
----
-40

query I rowsort
SELECT DISTINCT - 95 + 25 + - 45 AS col0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL + COUNT( * ) + + 61
----
62

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL + COUNT ( * ) + + 61
----
62

query I rowsort
SELECT DISTINCT - 86 * + + 98 * + - 90 AS col0
----
758520

query I rowsort
SELECT + 60 * + ( 42 )
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT ALL + 14 + + 30 + + CAST( NULL AS SIGNED ) + - + 26 * COUNT( * ) * - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL + 14 + + 30 + + CAST ( NULL AS INTEGER ) + - + 26 * COUNT ( * ) * - + 3
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2490
SELECT - COUNT( * ), + NULLIF ( 44, + 70 ) + - ( + - 40 ) AS col2
----
-1
84

skipif mysql # not compatible
query II rowsort label-2490
SELECT - COUNT ( * ), + NULLIF ( 44, + 70 ) + - ( + - 40 ) AS col2
----
-1
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT - 24 DIV + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2491
SELECT - 24 / + 57 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT ALL - 24 DIV + - 64 + - 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL - 24 / + - 64 + - 5 AS col1
----
-5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2494
SELECT - 74 DIV COUNT( * ) + - 69 + + ( + 54 )
----
-89

skipif mysql # not compatible
query I rowsort label-2494
SELECT - 74 / COUNT ( * ) + - 69 + + ( + 54 )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2495
SELECT + 93 DIV + + 47
----
1

skipif mysql # not compatible
query I rowsort label-2495
SELECT + 93 / + + 47
----
1

query I rowsort
SELECT - 5 * 2
----
-10

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

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

query II rowsort
SELECT + 70 * + 70, - 4 * + + 78 AS col2
----
4900
-312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2499
SELECT ALL + 97 DIV 98 + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL + 97 / 98 + - + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2500
SELECT CAST( NULL AS SIGNED ) AS col0, + 62
----
NULL
62

skipif mysql # not compatible
query II rowsort label-2500
SELECT CAST ( NULL AS INTEGER ) AS col0, + 62
----
NULL
62

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

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

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

skipif mysql # not compatible
query I rowsort label-2502
SELECT CAST ( - - COUNT ( * ) AS INTEGER )
----
1

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

query I rowsort
SELECT DISTINCT 63 * - 50
----
-3150

onlyif mysql # DIV for integer division: 
query I rowsort label-2505
SELECT ALL - 7 DIV + + 78 - - 48
----
48

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL - 7 / + + 78 - - 48
----
48

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

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

query II rowsort
SELECT ALL + 74 col2, - 56 + - 6
----
74
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2508
SELECT 33 * - 92 + + COUNT( * ) + + 56 - + 11 + + NULLIF ( - - ( - 51 ), 47 ) DIV - - 64 * - ( - - 98 )
----
-2990

skipif mysql # not compatible
query I rowsort label-2508
SELECT 33 * - 92 + + COUNT ( * ) + + 56 - + 11 + + NULLIF ( - - ( - 51 ), 47 ) / - - 64 * - ( - - 98 )
----
-2990

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT DISTINCT - + 85 AS col2, MAX( + 73 )
----
-85
73

skipif mysql # not compatible
query II rowsort label-2509
SELECT DISTINCT - + 85 AS col2, MAX ( + 73 )
----
-85
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT - SUM( ALL + 61 ) * 45 AS col1
----
-2745

skipif mysql # not compatible
query I rowsort label-2510
SELECT - SUM ( ALL + 61 ) * 45 AS col1
----
-2745

query II rowsort
SELECT ALL - 89, 79 AS col2
----
-89
79

query I rowsort
SELECT 79 * - 92 AS col1
----
-7268

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2513
SELECT ALL 39 AS col0, + 71 * - 77 + + ( - COUNT( * ) ) DIV + + 33
----
39
-5467

skipif mysql # not compatible
query II rowsort label-2513
SELECT ALL 39 AS col0, + 71 * - 77 + + ( - COUNT ( * ) ) / + + 33
----
39
-5467

onlyif mysql # aggregate syntax: 
query II rowsort label-2514
SELECT - 84 AS col2, MIN( + 55 )
----
-84
55

skipif mysql # not compatible
query II rowsort label-2514
SELECT - 84 AS col2, MIN ( + 55 )
----
-84
55

query I rowsort
SELECT 58 + 77 col1
----
135

query I rowsort
SELECT ALL 19 + + 52
----
71

query I rowsort
SELECT - 94 * - - 38 AS col2
----
-3572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2518
SELECT - 3 - 64 * + + 88 + COALESCE ( NULLIF ( - - 74, + COUNT( ALL - 84 ) * - MIN( DISTINCT + - NULLIF ( - 66, - + 63 + - + 61 / + - 15 + + 49 ) ) + - AVG ( DISTINCT - 61 ) ), + CAST( - 96 AS SIGNED ) )
----
-5561

skipif mysql # not compatible
query I rowsort label-2518
SELECT - 3 - 64 * + + 88 + COALESCE ( NULLIF ( - - 74, + COUNT ( ALL - 84 ) * - MIN ( DISTINCT + - NULLIF ( - 66, - + 63 + - + 61 / + - 15 + + 49 ) ) + - AVG ( DISTINCT - 61 ) ), + CAST ( - 96 AS INTEGER ) )
----
-5561

onlyif mysql # aggregate syntax: 
query II rowsort label-2519
SELECT 2 + - 91 AS col2, + 3 * + - MIN( - + 30 ) - + - 51 AS col0
----
-89
141

skipif mysql # not compatible
query II rowsort label-2519
SELECT 2 + - 91 AS col2, + 3 * + - MIN ( - + 30 ) - + - 51 AS col0
----
-89
141

onlyif mysql # aggregate syntax: 
query II rowsort label-2520
SELECT 11 + + + 42, COUNT( * ) AS col2
----
53
1

skipif mysql # not compatible
query II rowsort label-2520
SELECT 11 + + + 42, COUNT ( * ) AS col2
----
53
1

query I rowsort
SELECT DISTINCT 50 col1
----
50

query II rowsort
SELECT 27 - 41 col0, 40 AS col1
----
-14
40

query I rowsort
SELECT 37 + + 41 * + + 3 AS col0
----
160

query I rowsort
SELECT ALL - 10 + 49
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT - ( 64 ) * + + SUM( DISTINCT - 76 ) + - 98 AS col0
----
4766

skipif mysql # not compatible
query I rowsort label-2525
SELECT - ( 64 ) * + + SUM ( DISTINCT - 76 ) + - 98 AS col0
----
4766

onlyif mysql # aggregate syntax: 
query II rowsort label-2526
SELECT - 45 * - ( - COUNT( - + 50 ) ) + - 76 * - MIN( + 72 ) / CASE NULLIF ( - + 45, - 79 ) WHEN - - 61 THEN NULL ELSE 9 END / + - COUNT( * ) * - - 33 + + - 94 + - NULLIF ( - + 44, + + ( - 72 ) ) * 97 * + 16 * + CASE + 70 WHEN + NULLIF ( + + 73, + 3 ) THEN NULL WHEN - 24 * - + ( - - 58 ) THEN 66 * + + 58 END + 76 - + 73 * + - 3 AS col1, 72 + 1 AS col2
----
NULL
73

skipif mysql # not compatible
query II rowsort label-2526
SELECT - 45 * - ( - COUNT ( - + 50 ) ) + - 76 * - MIN ( + 72 ) / CASE NULLIF ( - + 45, - 79 ) WHEN - - 61 THEN NULL ELSE 9 END / + - COUNT ( * ) * - - 33 + + - 94 + - NULLIF ( - + 44, + + ( - 72 ) ) * 97 * + 16 * + CASE + 70 WHEN + NULLIF ( + + 73, + 3 ) THEN NULL WHEN - 24 * - + ( - - 58 ) THEN 66 * + + 58 END + 76 - + 73 * + - 3 AS col1, 72 + 1 AS col2
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT COUNT( DISTINCT + 26 ) * 80
----
80

skipif mysql # not compatible
query I rowsort label-2527
SELECT COUNT ( DISTINCT + 26 ) * 80
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2528
SELECT ALL + CAST( NULL AS DECIMAL ) * 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL + CAST ( NULL AS REAL ) * 3 AS col0
----
NULL

query I rowsort
SELECT ALL - 97 col1
----
-97

query I rowsort
SELECT ALL + 20 * - 23
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT 36 + + - COALESCE ( - 9, - + 87, - - COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-2531
SELECT 36 + + - COALESCE ( - 9, - + 87, - - COUNT ( * ) )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2532
SELECT ALL + COUNT( * ) - - 84 * 85 DIV - 91 + + ( 72 ) * + 41
----
2875

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL + COUNT ( * ) - - 84 * 85 / - 91 + + ( 72 ) * + 41
----
2875

query I rowsort
SELECT DISTINCT - 20 col1
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2534
SELECT ALL + CAST( NULL AS DECIMAL ) * + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL + CAST ( NULL AS REAL ) * + + 39
----
NULL

query I rowsort
SELECT + 7 * - 88 * + 18 + - 67 AS col1
----
-11155

query I rowsort
SELECT 76 * 2 AS col2
----
152

query I rowsort
SELECT + - 25 col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT 68 DIV COUNT( * ) + + + 32
----
100

skipif mysql # not compatible
query I rowsort label-2538
SELECT 68 / COUNT ( * ) + + + 32
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT ALL - 85 DIV 23
----
-3

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL - 85 / 23
----
-3

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

query II rowsort
SELECT ALL - ( + 31 ) AS col1, 55
----
-31
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2542
SELECT ALL - COUNT( * ) DIV + 71, COUNT( * ) + 69 AS col1
----
0
70

skipif mysql # not compatible
query II rowsort label-2542
SELECT ALL - COUNT ( * ) / + 71, COUNT ( * ) + 69 AS col1
----
0
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT ALL 37 + - + 27 + COUNT( DISTINCT - 36 ) * - + NULLIF ( - + COUNT( * ), 22 * - MAX( DISTINCT - COALESCE ( - 32, 20 ) ) )
----
11

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL 37 + - + 27 + COUNT ( DISTINCT - 36 ) * - + NULLIF ( - + COUNT ( * ), 22 * - MAX ( DISTINCT - COALESCE ( - 32, 20 ) ) )
----
11

query I rowsort
SELECT - 51 * + 25 AS col2
----
-1275

query I rowsort
SELECT - + 40
----
-40

query I rowsort
SELECT - ( + - ( + - 51 ) ) + 88 * + + 41 * + 90 AS col1
----
324669

query I rowsort
SELECT ALL - 58 + - 35 AS col0
----
-93

query I rowsort
SELECT + 29 col2
----
29

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2550
SELECT + 0 + + 38, COUNT( * ) + + + 49 AS col1
----
38
50

skipif mysql # not compatible
query II rowsort label-2550
SELECT + 0 + + 38, COUNT ( * ) + + + 49 AS col1
----
38
50

query I rowsort
SELECT ALL - ( 86 ) + + 76
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2552
SELECT ( - CAST( - + COUNT( * ) AS SIGNED ) ) DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-2552
SELECT ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) / - 96
----
0

query I rowsort
SELECT ALL ( - 20 ) + - - ( 38 ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2554
SELECT DISTINCT 89, - COUNT( DISTINCT + 35 ) + + 81 * 90 * - + CASE COUNT( * ) WHEN + 63 * + COUNT( * ) THEN + COUNT( * ) WHEN - - 30 * COALESCE ( 20, + + CASE - - 18 WHEN + 60 THEN NULL WHEN - + 66 - - - 12 + - CAST( NULL AS SIGNED ) THEN NULL WHEN - 70 THEN COUNT( * ) END + 99 ) + - 94 THEN - - 34 * + + ( + 21 ) + - - COUNT( * ) + - + 62 / - 99 - COUNT( * ) - 87 END AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-2554
SELECT DISTINCT 89, - COUNT ( DISTINCT + 35 ) + + 81 * 90 * - + CASE COUNT ( * ) WHEN + 63 * + COUNT ( * ) THEN + COUNT ( * ) WHEN - - 30 * COALESCE ( 20, + + CASE - - 18 WHEN + 60 THEN NULL WHEN - + 66 - - - 12 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 70 THEN COUNT ( * ) END + 99 ) + - 94 THEN - - 34 * + + ( + 21 ) + - - COUNT ( * ) + - + 62 / - 99 - COUNT ( * ) - 87 END AS col1
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT COUNT( * ) + - 56 + 41 + + - 61 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-2555
SELECT COUNT ( * ) + - 56 + 41 + + - 61 AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2556
SELECT ( + - ( - 92 ) ) DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-2556
SELECT ( + - ( - 92 ) ) / 47
----
1

query I rowsort
SELECT 37 + + 28 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT ALL COUNT( * ) - + 35 + + + 52 - + 97 * - 10 AS col0
----
988

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL COUNT ( * ) - + 35 + + + 52 - + 97 * - 10 AS col0
----
988

query II rowsort
SELECT - 6, + 4 col2
----
-6
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2560
SELECT 17 DIV + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2560
SELECT 17 / + COUNT ( * ) AS col0
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL SUM( DISTINCT 44 ) - - 49 * 34 col2
----
1710

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL SUM ( DISTINCT 44 ) - - 49 * 34 col2
----
1710

query I rowsort
SELECT - NULLIF ( - 52, + + 16 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2564
SELECT ALL COUNT( * ), 73 + - + 80 AS col0
----
1
-7

skipif mysql # not compatible
query II rowsort label-2564
SELECT ALL COUNT ( * ), 73 + - + 80 AS col0
----
1
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2565
SELECT 42 DIV - COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-2565
SELECT 42 / - COUNT ( * ) AS col1
----
-42

query I rowsort
SELECT COALESCE ( + 25, 35, 96, 43 + - 94 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL - NULLIF ( - - 44, + NULLIF ( COUNT( * ), + - 80 ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - NULLIF ( - - 44, + NULLIF ( COUNT ( * ), + - 80 ) ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT - COUNT( * ) * - 64 * 10 * + + COUNT( * ) * + - 7
----
-4480

skipif mysql # not compatible
query I rowsort label-2568
SELECT - COUNT ( * ) * - 64 * 10 * + + COUNT ( * ) * + - 7
----
-4480

query I rowsort
SELECT ALL + ( - NULLIF ( + - 93, - + 40 ) )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT NULLIF ( 17, - CAST( + 18 AS SIGNED ) * + 94 )
----
17

skipif mysql # not compatible
query I rowsort label-2570
SELECT NULLIF ( 17, - CAST ( + 18 AS INTEGER ) * + 94 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2571
SELECT - 22 + - - 71 + + + 27, + 80 - + 62 * 91 * - COUNT( * ) AS col1
----
76
5722

skipif mysql # not compatible
query II rowsort label-2571
SELECT - 22 + - - 71 + + + 27, + 80 - + 62 * 91 * - COUNT ( * ) AS col1
----
76
5722

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2574
SELECT ALL + 80 AS col2, + COUNT( * ) * - + 15 * + 15 + 71 AS col2
----
80
-154

skipif mysql # not compatible
query II rowsort label-2574
SELECT ALL + 80 AS col2, + COUNT ( * ) * - + 15 * + 15 + 71 AS col2
----
80
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL + MAX( + 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL + MAX ( + 28 ) AS col2
----
28

query I rowsort
SELECT DISTINCT - 12 * + - 75 col0
----
900

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - + 68 * - MIN( ( + 4 ) ) AS col2
----
272

skipif mysql # not compatible
query I rowsort label-2578
SELECT - + 68 * - MIN ( ( + 4 ) ) AS col2
----
272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT ALL + + CAST( + - CASE COUNT( * ) WHEN - 18 * + - 90 * COUNT( * ) THEN ( + - 44 ) * 74 * - 13 * ( 87 ) END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + + CAST ( + - CASE COUNT ( * ) WHEN - 18 * + - 90 * COUNT ( * ) THEN ( + - 44 ) * 74 * - 13 * ( 87 ) END AS INTEGER ) AS col0
----
NULL

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

query I rowsort
SELECT - 71 * 9 AS col0
----
-639

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT ALL + + NULLIF ( + 85, - CASE 45 WHEN + 37 THEN - + COUNT( * ) END ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL + + NULLIF ( + 85, - CASE 45 WHEN + 37 THEN - + COUNT ( * ) END ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT - 85 * - ( + + CAST( + 97 AS SIGNED ) ) AS col1
----
8245

skipif mysql # not compatible
query I rowsort label-2584
SELECT - 85 * - ( + + CAST ( + 97 AS INTEGER ) ) AS col1
----
8245

query I rowsort
SELECT ALL 38 + + + 59
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2586
SELECT DISTINCT - - 0 DIV + + 25 + - 70 + + 3 + - - 71
----
4

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT - - 0 / + + 25 + - 70 + + 3 + - - 71
----
4

query I rowsort
SELECT + 42 * - 95
----
-3990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2588
SELECT - COUNT( * ) + + 97 * COUNT( * ) * + CAST( NULL AS SIGNED ) - - - 10 + 85
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2589
SELECT - NULLIF ( - 22, - + MIN( ALL - 39 ) ) AS col0, - 3 AS col0
----
22
-3

skipif mysql # not compatible
query II rowsort label-2589
SELECT - NULLIF ( - 22, - + MIN ( ALL - 39 ) ) AS col0, - 3 AS col0
----
22
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL - 10 - - COUNT( DISTINCT + + 70 ) + + 43 * + ( - 73 ) AS col0
----
-3148

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL - 10 - - COUNT ( DISTINCT + + 70 ) + + 43 * + ( - 73 ) AS col0
----
-3148

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

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

query I rowsort
SELECT + 58 + + 60
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL - COUNT( * ) - + COALESCE ( + 84, + 18 )
----
-85

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - COUNT ( * ) - + COALESCE ( + 84, + 18 )
----
-85

query I rowsort
SELECT DISTINCT ( + - 92 ) AS col0
----
-92

query I rowsort
SELECT + 35 + + - 14
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL 46 - - - 64 + + 16 - - MIN( DISTINCT + 47 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL 46 - - - 64 + + 16 - - MIN ( DISTINCT + 47 ) AS col0
----
45

query II rowsort
SELECT + 11 + + 65 AS col2, 9
----
76
9

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2599
SELECT + 99 + - + 85 AS col0, SUM( + 79 ) DIV - 52
----
14
-1

skipif mysql # not compatible
query II rowsort label-2599
SELECT + 99 + - + 85 AS col0, SUM ( + 79 ) / - 52
----
14
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT + 81 + - CASE + 84 WHEN + 4 / CAST( - ( - ( + + 40 ) ) AS SIGNED ) THEN - - 38 * 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT + 81 + - CASE + 84 WHEN + 4 / CAST ( - ( - ( + + 40 ) ) AS INTEGER ) THEN - - 38 * 63 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2601
SELECT - 98 DIV 70 * - 0
----
0

skipif mysql # not compatible
query I rowsort label-2601
SELECT - 98 / 70 * - 0
----
0

query I rowsort
SELECT + 57 + + 97 AS col1
----
154

query I rowsort
SELECT - 68 col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2604
SELECT ALL 3 DIV - - 55 + 0 col2
----
0

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL 3 / - - 55 + 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + 69 * SUM( - 79 ) * + + 67 + - COUNT( * ) + 7 + 15 - - 27
----
-365169

skipif mysql # not compatible
query I rowsort label-2605
SELECT + 69 * SUM ( - 79 ) * + + 67 + - COUNT ( * ) + 7 + 15 - - 27
----
-365169

query I rowsort
SELECT + 24 * 60
----
1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2607
SELECT - SUM( CAST( NULL AS SIGNED ) )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2608
SELECT - - 22 * + + CASE - 2 WHEN 95 THEN - COUNT( * ) * - 9 / + - CAST( NULL AS SIGNED ) - 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT - - 22 * + + CASE - 2 WHEN 95 THEN - COUNT ( * ) * - 9 / + - CAST ( NULL AS INTEGER ) - 34 END
----
NULL

query I rowsort
SELECT - - 64 + - 6 + - - 74
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2610
SELECT ALL + COUNT( * ) * + 67 * - 41 + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * + - 44 + - - 42 * + 61 * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL + COUNT ( * ) * + 67 * - 41 + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + - 44 + - - 42 * + 61 * 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ( - 29 ) * - + 73 + 65 + + SUM( ALL + 14 ) - + - 85 * - COUNT( * ) AS col1
----
2111

skipif mysql # not compatible
query I rowsort label-2611
SELECT ( - 29 ) * - + 73 + 65 + + SUM ( ALL + 14 ) - + - 85 * - COUNT ( * ) AS col1
----
2111

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT DISTINCT + COUNT( * ) * ( - COALESCE ( 0, - COUNT( * ) ) ) + + 79 + + - 10 + - 27 + + MAX( DISTINCT - 16 ) * - COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT + COUNT ( * ) * ( - COALESCE ( 0, - COUNT ( * ) ) ) + + 79 + + - 10 + - 27 + + MAX ( DISTINCT - 16 ) * - COUNT ( * ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2613
SELECT DISTINCT + + NULLIF ( 97, - + 66 + ( CAST( NULL AS SIGNED ) ) - - + COALESCE ( - - 35, - CASE + NULLIF ( - 4, - CAST( NULL AS SIGNED ) + - + COUNT( * ) + - + 20 ) WHEN - + ( 5 ) THEN - + ( MIN( ALL 55 ) ) - 54 END, - 95 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT + + NULLIF ( 97, - + 66 + ( CAST ( NULL AS INTEGER ) ) - - + COALESCE ( - - 35, - CASE + NULLIF ( - 4, - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - + 20 ) WHEN - + ( 5 ) THEN - + ( MIN ( ALL 55 ) ) - 54 END, - 95 ) ) AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2614
SELECT DISTINCT + ( - CASE + - COALESCE ( + 97, + - 53 + - 68 ) WHEN ( 8 ) + - + 74 THEN NULL WHEN 49 / + 54 + - 31 + CAST( + - 21 AS SIGNED ) / COUNT( * ) THEN + 88 + - 43 ELSE NULL END ) * 37 * + AVG ( ALL - ( + - 3 ) ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT + ( - CASE + - COALESCE ( + 97, + - 53 + - 68 ) WHEN ( 8 ) + - + 74 THEN NULL WHEN 49 / + 54 + - 31 + CAST ( + - 21 AS INTEGER ) / COUNT ( * ) THEN + 88 + - 43 ELSE NULL END ) * 37 * + AVG ( ALL - ( + - 3 ) ) - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - 17 * 88 + + + 13 - + - 66
----
-1417

query I rowsort
SELECT DISTINCT + - 31 AS col2
----
-31

query I rowsort
SELECT - 18 + - 4 col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-2618
SELECT ALL - COALESCE ( - - 56, - 2, - COUNT( * ) ) * 78 AS col0, + COUNT( ALL - COALESCE ( - + 62, + 42 / 65, + 75 ) )
----
-4368
1

skipif mysql # not compatible
query II rowsort label-2618
SELECT ALL - COALESCE ( - - 56, - 2, - COUNT ( * ) ) * 78 AS col0, + COUNT ( ALL - COALESCE ( - + 62, + 42 / 65, + 75 ) )
----
-4368
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT - 95 + - 39 * + - 73 * - COUNT( * ) + COALESCE ( - 2, + + 95 ) AS col0
----
-2944

skipif mysql # not compatible
query I rowsort label-2619
SELECT - 95 + - 39 * + - 73 * - COUNT ( * ) + COALESCE ( - 2, + + 95 ) AS col0
----
-2944

onlyif mysql # DIV for integer division: 
query I rowsort label-2620
SELECT - 6 DIV - - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2620
SELECT - 6 / - - 69 AS col0
----
0

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

skipif mysql # not compatible
query II rowsort label-2621
SELECT COUNT ( * ) AS col0, 46 AS col2
----
1
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2622
SELECT - ( 56 ) * + - 20 * - CAST( CASE - 66 WHEN + + COUNT( * ) THEN 97 WHEN - 72 THEN - - 15 END AS SIGNED ) - - + 42 + - 56 * + 93 col0, - 87 col1
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-2622
SELECT - ( 56 ) * + - 20 * - CAST ( CASE - 66 WHEN + + COUNT ( * ) THEN 97 WHEN - 72 THEN - - 15 END AS INTEGER ) - - + 42 + - 56 * + 93 col0, - 87 col1
----
NULL
-87

query II rowsort
SELECT - CASE + ( - + 29 ) WHEN + 89 THEN NULL WHEN 40 THEN NULL ELSE 40 END AS col1, 38 AS col0
----
-40
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2624
SELECT ALL + ( + - 66 ) DIV - COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + ( + - 66 ) / - COUNT ( * ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT DISTINCT ( + CASE + 98 WHEN 72 * + 99 THEN COUNT( * ) * - COUNT( DISTINCT - NULLIF ( - - 91, + + 11 ) ) + - 84 + + + 39 + - 35 ELSE - - 62 END ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT ( + CASE + 98 WHEN 72 * + 99 THEN COUNT ( * ) * - COUNT ( DISTINCT - NULLIF ( - - 91, + + 11 ) ) + - 84 + + + 39 + - 35 ELSE - - 62 END ) AS col2
----
62

query I rowsort
SELECT - 52 * + 29
----
-1508

query II rowsort
SELECT 46 * 31 * + 98 AS col0, 2
----
139748
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2628
SELECT ALL + 88 / + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL + 88 / + CAST ( NULL AS INTEGER ) col2
----
NULL

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

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

query I rowsort
SELECT 32 * 72 * - 21
----
-48384

query I rowsort
SELECT - 71 col2
----
-71

query I rowsort
SELECT 81 * - + 44 AS col2
----
-3564

onlyif mysql # aggregate syntax: 
query II rowsort label-2633
SELECT ALL 63 + + - 61 + + + COUNT( * ) AS col0, 65
----
3
65

skipif mysql # not compatible
query II rowsort label-2633
SELECT ALL 63 + + - 61 + + + COUNT ( * ) AS col0, 65
----
3
65

query I rowsort
SELECT DISTINCT - 98 * 2
----
-196

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

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

query I rowsort
SELECT DISTINCT 62 + - 1 AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2637
SELECT COALESCE ( - 40, + COALESCE ( - 19, + 26 + COUNT( * ) ), AVG ( - 87 ) ) DIV - 81 + 59 * 52 col0
----
3068

skipif mysql # not compatible
query I rowsort label-2637
SELECT COALESCE ( - 40, + COALESCE ( - 19, + 26 + COUNT ( * ) ), AVG ( - 87 ) ) / - 81 + 59 * 52 col0
----
3068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2638
SELECT ALL 97 DIV - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL 97 / - COUNT ( * ) AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2639
SELECT NULLIF ( - 99, - CASE NULLIF ( 98, 81 * 75 ) WHEN AVG ( 72 ) + - 32 THEN CAST( NULL AS DECIMAL ) + 96 * COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN NULL END ) + 46 * 0 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2639
SELECT NULLIF ( - 99, - CASE NULLIF ( 98, 81 * 75 ) WHEN AVG ( 72 ) + - 32 THEN CAST ( NULL AS REAL ) + 96 * COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN NULL END ) + 46 * 0 AS col0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2640
SELECT NULLIF ( ( - 23 ), - MIN( + 47 ) ) DIV - COUNT( + 38 * - 58 )
----
23

skipif mysql # not compatible
query I rowsort label-2640
SELECT NULLIF ( ( - 23 ), - MIN ( + 47 ) ) / - COUNT ( + 38 * - 58 )
----
23

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

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

query I rowsort
SELECT DISTINCT 96 * 30
----
2880

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2643
SELECT 21 * CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT 21 * CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT 30 - + 91 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL - COUNT( DISTINCT 39 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL - COUNT ( DISTINCT 39 ) AS col2
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2647
SELECT DISTINCT - CASE ( 3 ) WHEN - 93 * 90 + 44 THEN NULL WHEN 33 / + ( 61 * + CAST( COUNT( * ) * 52 AS SIGNED ) ) THEN NULL ELSE 75 END
----
-75

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - CASE ( 3 ) WHEN - 93 * 90 + 44 THEN NULL WHEN 33 / + ( 61 * + CAST ( COUNT ( * ) * 52 AS INTEGER ) ) THEN NULL ELSE 75 END
----
-75

query I rowsort
SELECT ALL - 92 * + 45 AS col1
----
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT 36 * COUNT( ALL 89 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2649
SELECT 36 * COUNT ( ALL 89 ) AS col0
----
36

query I rowsort
SELECT DISTINCT + 74 * 45
----
3330

query I rowsort
SELECT DISTINCT + ( 43 ) * - 97
----
-4171

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT 55 DIV - ( 24 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2652
SELECT 55 / - ( 24 ) AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT 36 + 7 DIV 31 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2653
SELECT 36 + 7 / 31 AS col2
----
36

query I rowsort
SELECT ALL + 57 + - 0 col0
----
57

query I rowsort
SELECT 61 + + 38
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT ALL + 30 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL + 30 / - 68
----
0

query I rowsort
SELECT 71 + - 63
----
8

query I rowsort
SELECT ALL + 57 + - NULLIF ( - 41, 63 ) * - 60 AS col0
----
-2403

query I rowsort
SELECT ALL - 77 + - 90
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT 68 + MIN( - 59 ) * + 68
----
-3944

skipif mysql # not compatible
query I rowsort label-2660
SELECT 68 + MIN ( - 59 ) * + 68
----
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT - 62 + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-2661
SELECT - 62 + COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT DISTINCT - 33 * COUNT( * ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT - 33 * COUNT ( * ) col0
----
-33

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

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

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

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

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

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

query I rowsort
SELECT ALL + - 32 * - 44 - - 33 * - 28
----
484

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT 36 DIV 18 + + 59 * 61
----
3601

skipif mysql # not compatible
query I rowsort label-2667
SELECT 36 / 18 + + 59 * 61
----
3601

query I rowsort
SELECT + 42 + 53
----
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT DISTINCT - + COUNT( DISTINCT - 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT - + COUNT ( DISTINCT - 27 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL 44 * 68 - CASE 53 + 37 WHEN - MAX( 60 ) THEN 81 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL 44 * 68 - CASE 53 + 37 WHEN - MAX ( 60 ) THEN 81 END AS col0
----
NULL

query I rowsort
SELECT ALL - - 4 AS col2
----
4

query I rowsort
SELECT - CASE 3 WHEN 72 THEN COALESCE ( 57, + COALESCE ( + 74, - 5 / + 95 ), + 95 ) WHEN - 28 THEN - 47 / 72 ELSE NULL END * - 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2674
SELECT 20 DIV - SUM( DISTINCT + 70 ) + + COALESCE ( 81, 24 )
----
81

skipif mysql # not compatible
query I rowsort label-2674
SELECT 20 / - SUM ( DISTINCT + 70 ) + + COALESCE ( 81, 24 )
----
81

query I rowsort
SELECT ALL - + ( 21 ) AS col1
----
-21

query I rowsort
SELECT 86 * 34 AS col0
----
2924

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT COUNT( + 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2677
SELECT COUNT ( + 10 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT - 94 * COUNT( * ) + - ( + 7 )
----
-101

skipif mysql # not compatible
query I rowsort label-2678
SELECT - 94 * COUNT ( * ) + - ( + 7 )
----
-101

query I rowsort
SELECT ALL ( + 8 ) * 28
----
224

query I rowsort
SELECT + 29 + 80 AS col1
----
109

query I rowsort
SELECT ALL + 91 AS col1
----
91

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

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

query I rowsort
SELECT + 5 + + 76 * 55
----
4185

query I rowsort
SELECT + 76 * - + 21 AS col0
----
-1596

query I rowsort
SELECT + 50 * 51 + 85 AS col0
----
2635

query I rowsort
SELECT ALL 87 + + ( 18 ) * + 38
----
771

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2687
SELECT - 58 + CAST( NULL AS DECIMAL ) + 52 * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT - 58 + CAST ( NULL AS REAL ) + 52 * 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT + 71 + CASE 22 WHEN + 48 / 76 + 82 * - 74 THEN + 34 WHEN - MAX( + 25 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT + 71 + CASE 22 WHEN + 48 / 76 + 82 * - 74 THEN + 34 WHEN - MAX ( + 25 ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2689
SELECT - CASE + - 31 WHEN ( - MAX( ALL - 93 ) ) THEN + 85 + ( + CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT - CASE + - 31 WHEN ( - MAX ( ALL - 93 ) ) THEN + 85 + ( + CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 93 + - 36 AS col1
----
57

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

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + COUNT ( * ) + 90 AS col1
----
91

query I rowsort
SELECT DISTINCT 86 + - + 52 * 67
----
-3398

query I rowsort
SELECT - ( - 98 ) * 72
----
7056

query I rowsort
SELECT ALL 21 * - - 72 AS col1
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT - SUM( ALL + 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-2695
SELECT - SUM ( ALL + 90 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT + COUNT( DISTINCT - 9 )
----
1

skipif mysql # not compatible
query I rowsort label-2696
SELECT + COUNT ( DISTINCT - 9 )
----
1

query I rowsort
SELECT ALL + + 83 - - 34 + - ( 17 + - 61 ) * 55 AS col1
----
2537

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

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

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

query I rowsort
SELECT - 35 * + 64
----
-2240

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT DISTINCT - - 41 DIV + - 69 + COALESCE ( 6, + 30 DIV - 50 )
----
6

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT - - 41 / + - 69 + COALESCE ( 6, + 30 / - 50 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( - 2, 55 * 95 ) + COUNT( * ) * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( - 2, 55 * 95 ) + COUNT ( * ) * + 54
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2703
SELECT - 62 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-2703
SELECT - 62 / 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2704
SELECT ALL - + 91 DIV 24
----
-3

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - + 91 / 24
----
-3

query I rowsort
SELECT - + 13 * + + 87 + - 36 AS col1
----
-1167

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT + 20 DIV - 50 * 61 + - 99
----
-99

skipif mysql # not compatible
query I rowsort label-2706
SELECT + 20 / - 50 * 61 + - 99
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT COALESCE ( 44, 2 DIV 51 )
----
44

skipif mysql # not compatible
query I rowsort label-2707
SELECT COALESCE ( 44, 2 / 51 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT - - 38 * - 76 * + COUNT( * ) + 65
----
-2823

skipif mysql # not compatible
query I rowsort label-2708
SELECT - - 38 * - 76 * + COUNT ( * ) + 65
----
-2823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2709
SELECT - - 33 + + + COALESCE ( 83, - COUNT( * ) ) DIV 87 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2709
SELECT - - 33 + + + COALESCE ( 83, - COUNT ( * ) ) / 87 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT + COUNT( * ) * - + 91 + 10
----
-81

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + COUNT ( * ) * - + 91 + 10
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL + + SUM( - - 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL + + SUM ( - - 42 ) AS col1
----
42

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

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

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

query I rowsort
SELECT DISTINCT + - 87 * - 20 col1
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT DISTINCT + MIN( - 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT + MIN ( - 78 ) AS col0
----
-78

query I rowsort
SELECT - 82 + + - 57
----
-139

query I rowsort
SELECT CASE - - 15 WHEN + - 88 THEN NULL ELSE + ( - 56 ) * 6 END
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL + CASE ( - COUNT( * ) ) WHEN + 74 THEN - 8 * 1 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL + CASE ( - COUNT ( * ) ) WHEN + 74 THEN - 8 * 1 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT NULLIF ( 30, - 28 * NULLIF ( 48 * COUNT( * ), - ( 38 ) * + COUNT( * ) ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2719
SELECT NULLIF ( 30, - 28 * NULLIF ( 48 * COUNT ( * ), - ( 38 ) * + COUNT ( * ) ) ) AS col1
----
30

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

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

query I rowsort
SELECT + 82 * + 76
----
6232

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT - 94 - 98 + 89 + - COUNT( * ) * COUNT( ALL NULLIF ( + 98, + 96 ) )
----
-104

skipif mysql # not compatible
query I rowsort label-2722
SELECT - 94 - 98 + 89 + - COUNT ( * ) * COUNT ( ALL NULLIF ( + 98, + 96 ) )
----
-104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT + COUNT( * ) * - 37 - - + COUNT( * ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2724
SELECT + COUNT ( * ) * - 37 - - + COUNT ( * ) AS col0
----
-36

query I rowsort
SELECT + 29 * - 88 * + 93 AS col1
----
-237336

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT ALL 40 * COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL 40 * COUNT ( * ) AS col2
----
40

query I rowsort
SELECT ALL + 19 * 90 + - - 93 AS col1
----
1803

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT SUM( ALL - 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-2728
SELECT SUM ( ALL - 37 ) AS col0
----
-37

query I rowsort
SELECT ALL 45 * - + 43 + + 39 * + 96
----
1809

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT SUM( ALL 96 ) col0
----
96

skipif mysql # not compatible
query I rowsort label-2730
SELECT SUM ( ALL 96 ) col0
----
96

query I rowsort
SELECT - 10 + - 31 * - 8 * + 11 + - 34
----
2684

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT + 16 - MIN( DISTINCT 66 ) * - 41 AS col0
----
2722

skipif mysql # not compatible
query I rowsort label-2732
SELECT + 16 - MIN ( DISTINCT 66 ) * - 41 AS col0
----
2722

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL 80 * - NULLIF ( 90, + 68 ) * COUNT( ALL 35 ) AS col2
----
-7200

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL 80 * - NULLIF ( 90, + 68 ) * COUNT ( ALL 35 ) AS col2
----
-7200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT + CAST( - 56 AS SIGNED ) * 53
----
-2968

skipif mysql # not compatible
query I rowsort label-2734
SELECT + CAST ( - 56 AS INTEGER ) * 53
----
-2968

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT + - SUM( DISTINCT + 13 ) + + 95 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2735
SELECT + - SUM ( DISTINCT + 13 ) + + 95 AS col0
----
82

query I rowsort
SELECT ALL + 75 - - - 16
----
59

query I rowsort
SELECT - CASE + 14 WHEN - 55 / 46 THEN + 90 * + 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT + NULLIF ( - ( - + 66 ), 39 - 94 ) + + 30 * COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-2738
SELECT + NULLIF ( - ( - + 66 ), 39 - 94 ) + + 30 * COUNT ( * )
----
96

query I rowsort
SELECT + 24 + + 59 AS col0
----
83

query I rowsort
SELECT ALL - 34 * + + 2 * 98 AS col0
----
-6664

query I rowsort
SELECT ALL + 23 * - 35 AS col2
----
-805

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT - + 53 + + COUNT( - 38 ) - + 24 * + 78
----
-1924

skipif mysql # not compatible
query I rowsort label-2743
SELECT - + 53 + + COUNT ( - 38 ) - + 24 * + 78
----
-1924

query I rowsort
SELECT ALL 21 * + + 9
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT - - 79 + + COUNT( * ) - + MAX( DISTINCT + 62 ) * + 6 AS col2
----
-292

skipif mysql # not compatible
query I rowsort label-2745
SELECT - - 79 + + COUNT ( * ) - + MAX ( DISTINCT + 62 ) * + 6 AS col2
----
-292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2746
SELECT + + MIN( ALL - + CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT + + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - ( + - 4 ) * - + 72 AS col1
----
-288

query I rowsort
SELECT - - ( - - ( + 25 ) ) + - 92 col0
----
-67

query II rowsort
SELECT ALL - 36, + 53 * + 12 + 73 AS col0
----
-36
709

query II rowsort
SELECT - + 79, 32 col1
----
-79
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT NULLIF ( 17, - - 31 * MAX( - 96 ) + - 34 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-2751
SELECT NULLIF ( 17, - - 31 * MAX ( - 96 ) + - 34 ) col1
----
17

query I rowsort
SELECT - 97 * - 58 * + - 45 + - 18 AS col0
----
-253188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT - 36 * COALESCE ( 14, NULLIF ( - 51, - 92 * - CAST( NULL AS SIGNED ) ), + 5 * 0 ) AS col1
----
-504

skipif mysql # not compatible
query I rowsort label-2753
SELECT - 36 * COALESCE ( 14, NULLIF ( - 51, - 92 * - CAST ( NULL AS INTEGER ) ), + 5 * 0 ) AS col1
----
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT DISTINCT + COALESCE ( 49, + + 92, CASE 65 WHEN - 52 + NULLIF ( ( + 6 ), 21 ) THEN + 61 ELSE NULL END ) DIV 88 + + 18
----
18

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT + COALESCE ( 49, + + 92, CASE 65 WHEN - 52 + NULLIF ( ( + 6 ), 21 ) THEN + 61 ELSE NULL END ) / 88 + + 18
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT - 49 * CAST( + 49 AS SIGNED ) + - 47
----
-2448

skipif mysql # not compatible
query I rowsort label-2755
SELECT - 49 * CAST ( + 49 AS INTEGER ) + - 47
----
-2448

query I rowsort
SELECT DISTINCT + + 51 + 63 * - 27 AS col2
----
-1650

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

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

query I rowsort
SELECT ALL - 61 + - + ( + + COALESCE ( + 67, - 17 ) ) + + 87 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT + 98 * - + 65 + COUNT( - 51 ) AS col1
----
-6369

skipif mysql # not compatible
query I rowsort label-2759
SELECT + 98 * - + 65 + COUNT ( - 51 ) AS col1
----
-6369

query I rowsort
SELECT DISTINCT + 88 + + 26
----
114

query I rowsort
SELECT + 45 col0
----
45

query I rowsort
SELECT ALL + 70 + - ( - 17 ) * + + 87 AS col1
----
1549

query I rowsort
SELECT DISTINCT + 43 + + 5 col1
----
48

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

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) + + - CAST ( + 19 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT + COUNT( * ) * + + 85 * 14 * 63 + 10
----
74980

skipif mysql # not compatible
query I rowsort label-2765
SELECT + COUNT ( * ) * + + 85 * 14 * 63 + 10
----
74980

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL + COALESCE ( - 76, + ( + - 27 ) ) + 96 / + ( - COUNT( * ) * - CASE COUNT( * ) WHEN - 1 THEN 75 WHEN - 92 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL + COALESCE ( - 76, + ( + - 27 ) ) + 96 / + ( - COUNT ( * ) * - CASE COUNT ( * ) WHEN - 1 THEN 75 WHEN - 92 THEN NULL END ) AS col2
----
NULL

query I rowsort
SELECT ALL 34 - - 46
----
80

query I rowsort
SELECT 90 * + 41
----
3690

query II rowsort
SELECT DISTINCT - ( + 86 ), - 6 AS col0
----
-86
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL - COUNT( * ) - + + 59 - - 49 + - + 50
----
-61

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - COUNT ( * ) - + + 59 - - 49 + - + 50
----
-61

query I rowsort
SELECT 37 col0
----
37

query I rowsort
SELECT 80 * - 22 AS col0
----
-1760

query II rowsort
SELECT 15 + 18 AS col2, 50 AS col2
----
33
50

query I rowsort
SELECT DISTINCT ( + ( + 24 ) ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT DISTINCT - 96 * + + COUNT( - 46 ) * + - COUNT( * ) + 19 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - 96 * + + COUNT ( - 46 ) * + - COUNT ( * ) + 19 AS col1
----
115

query II rowsort
SELECT DISTINCT + ( 52 ), + 85 col0
----
52
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT 23 DIV - 97 * 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2777
SELECT 23 / - 97 * 19 AS col1
----
0

query I rowsort
SELECT DISTINCT - ( 45 ) * 29 AS col1
----
-1305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2779
SELECT CAST( - 2 AS SIGNED ) * COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2779
SELECT CAST ( - 2 AS INTEGER ) * COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT 15 * + CASE + 8 WHEN 33 + + 86 THEN + 13 WHEN 95 * + 7 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT 2 DIV + ( 59 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2781
SELECT 2 / + ( 59 ) AS col1
----
0

query I rowsort
SELECT + 88 * 90
----
7920

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT - - SUM( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-2783
SELECT - - SUM ( - 32 )
----
-32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT COUNT( * ) * 57 + - 56 + - - 44
----
45

skipif mysql # not compatible
query I rowsort label-2785
SELECT COUNT ( * ) * 57 + - 56 + - - 44
----
45

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2788
SELECT - CASE + + CAST( NULL AS SIGNED ) WHEN + MIN( + + 37 ) + - COALESCE ( 36, + 43, - 2 ) THEN NULL ELSE + 16 DIV 29 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2788
SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN + MIN ( + + 37 ) + - COALESCE ( 36, + 43, - 2 ) THEN NULL ELSE + 16 / 29 END AS col1
----
0

query I rowsort
SELECT ALL + 17 + ( - + COALESCE ( - - 54, - 95 ) ) - 40
----
-77

query II rowsort
SELECT 62 + - 29 + - 19 col2, 71 AS col2
----
14
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2791
SELECT DISTINCT COUNT( * ) + - - ( 29 ) + COUNT( * ) DIV + 94 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT COUNT ( * ) + - - ( 29 ) + COUNT ( * ) / + 94 AS col2
----
30

query I rowsort
SELECT 12 col0
----
12

query I rowsort
SELECT 74 * + 14
----
1036

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2795
SELECT SUM( DISTINCT 12 ) DIV - NULLIF ( 29, 4 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2795
SELECT SUM ( DISTINCT 12 ) / - NULLIF ( 29, 4 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT DISTINCT MIN( DISTINCT 28 ) + - 61
----
-33

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT MIN ( DISTINCT 28 ) + - 61
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2797
SELECT ALL 11 - MIN( + 21 ) AS col2, + COUNT( * )
----
-10
1

skipif mysql # not compatible
query II rowsort label-2797
SELECT ALL 11 - MIN ( + 21 ) AS col2, + COUNT ( * )
----
-10
1

query I rowsort
SELECT DISTINCT - 3 AS col1
----
-3

query I rowsort
SELECT DISTINCT + 85 * 17 AS col1
----
1445

query I rowsort
SELECT 51 + 2 + 64
----
117

query I rowsort
SELECT 87 * + 30 AS col0
----
2610

query I rowsort
SELECT ( 54 ) * - 79 * + 59 AS col1
----
-251694

query I rowsort
SELECT DISTINCT - COALESCE ( + + 16, + - 11, - 75 ) * - + 47
----
752

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

query I rowsort
SELECT + 61 * 51 * + 25 - 12
----
77763

query II rowsort
SELECT ALL - + 18 AS col2, 42 AS col2
----
-18
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2807
SELECT DISTINCT - CASE + 63 WHEN COUNT( * ) / - - CAST( NULL AS SIGNED ) / + 60 + 11 + 86 * 73 THEN 4 * - 29 END * + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT - CASE + 63 WHEN COUNT ( * ) / - - CAST ( NULL AS INTEGER ) / + 60 + 11 + 86 * 73 THEN 4 * - 29 END * + 8 AS col0
----
NULL

query I rowsort
SELECT ALL ( - 14 ) AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2809
SELECT DISTINCT + CASE 69 WHEN + MAX( ALL - - 45 ) THEN + 77 WHEN 58 + CASE CAST( NULL AS SIGNED ) WHEN 27 THEN NULL WHEN 37 THEN - 60 ELSE 17 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT + CASE 69 WHEN + MAX ( ALL - - 45 ) THEN + 77 WHEN 58 + CASE CAST ( NULL AS INTEGER ) WHEN 27 THEN NULL WHEN 37 THEN - 60 ELSE 17 END THEN NULL END
----
NULL

query I rowsort
SELECT ( + 27 ) * - 46 col2
----
-1242

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - 45 + + COUNT( * ) + 90 + + NULLIF ( - + 66, + COUNT( 90 ) ) + + 76 * COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2812
SELECT - 45 + + COUNT ( * ) + 90 + + NULLIF ( - + 66, + COUNT ( 90 ) ) + + 76 * COUNT ( * ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT 37 - - CASE 85 WHEN - 60 * + - 36 THEN + 33 WHEN ( ( + 70 ) ) THEN NULL WHEN 49 + ( + 67 + - 36 * COUNT( * ) ) THEN NULL WHEN + 33 THEN NULL ELSE NULL END + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT 37 - - CASE 85 WHEN - 60 * + - 36 THEN + 33 WHEN ( ( + 70 ) ) THEN NULL WHEN 49 + ( + 67 + - 36 * COUNT ( * ) ) THEN NULL WHEN + 33 THEN NULL ELSE NULL END + 5 AS col0
----
NULL

query I rowsort
SELECT 40 + + 48 + 80 - + + 81 + 84
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT 30 * 87 DIV + 73 col1
----
35

skipif mysql # not compatible
query I rowsort label-2815
SELECT 30 * 87 / + 73 col1
----
35

query I rowsort
SELECT 17 + + 25 * + 9 AS col2
----
242

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

query I rowsort
SELECT DISTINCT + 40 * + + 72
----
2880

query I rowsort
SELECT ALL 25 + NULLIF ( - + ( - 7 ), + 30 )
----
32

query I rowsort
SELECT - - 1 + + - 14 AS col1
----
-13

query I rowsort
SELECT ALL + CASE - - 61 WHEN + 78 THEN + 49 END * - - 82 AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT + + ( COUNT ( * ) ) + + + 52 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT ALL - + 17 + - 87 * - 42 + CAST( NULL AS SIGNED ) + - - COUNT( * ) / - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL - + 17 + - 87 * - 42 + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) / - 57
----
NULL

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

query I rowsort
SELECT ALL + 46 + + - 96 AS col0
----
-50

query I rowsort
SELECT + 45 + - 88
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT + 58 + - + NULLIF ( 30, + + COUNT( * ) / - CASE - AVG ( 94 ) WHEN + 66 * ( 30 * - 49 ) THEN NULL ELSE 96 * 96 END ) col2
----
28

skipif mysql # not compatible
query I rowsort label-2828
SELECT + 58 + - + NULLIF ( 30, + + COUNT ( * ) / - CASE - AVG ( 94 ) WHEN + 66 * ( 30 * - 49 ) THEN NULL ELSE 96 * 96 END ) col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2829
SELECT + ( + 54 ) + - 88 * + 76 / + CASE - 19 WHEN 53 * + NULLIF ( + 9, + 54 * 75 ) THEN 9 * - CAST( COUNT( * ) AS SIGNED ) WHEN COUNT( * ) * - 50 THEN + 21 * + MAX( DISTINCT 63 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2829
SELECT + ( + 54 ) + - 88 * + 76 / + CASE - 19 WHEN 53 * + NULLIF ( + 9, + 54 * 75 ) THEN 9 * - CAST ( COUNT ( * ) AS INTEGER ) WHEN COUNT ( * ) * - 50 THEN + 21 * + MAX ( DISTINCT 63 ) ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2830
SELECT - MIN ( DISTINCT 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT ALL 46 * - 96 - COUNT( * ) - - 10 * NULLIF ( 61, - 48 ) AS col2
----
-3807

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL 46 * - 96 - COUNT ( * ) - - 10 * NULLIF ( 61, - 48 ) AS col2
----
-3807

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2832
SELECT + 29 * 16 col1, + 82 + + 54 DIV - COUNT( * )
----
464
28

skipif mysql # not compatible
query II rowsort label-2832
SELECT + 29 * 16 col1, + 82 + + 54 / - COUNT ( * )
----
464
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL + MAX( DISTINCT - - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL + MAX ( DISTINCT - - 12 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + SUM( + - 38 ) * + SUM( + 68 ) AS col1
----
-2584

skipif mysql # not compatible
query I rowsort label-2834
SELECT + SUM ( + - 38 ) * + SUM ( + 68 ) AS col1
----
-2584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2835
SELECT + 33 * + + 9 + 84 + 9 + + 90 * + + 1 + 40 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT + 33 * + + 9 + 84 + 9 + + 90 * + + 1 + 40 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT COALESCE ( + + 75, 36, + - 18 * + SUM( ALL - + 66 ) - 86 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2837
SELECT COALESCE ( + + 75, 36, + - 18 * + SUM ( ALL - + 66 ) - 86 ) AS col2
----
75

query I rowsort
SELECT ALL 58 * + ( - 78 ) AS col1
----
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT - 69 * - SUM( + 77 )
----
5313

skipif mysql # not compatible
query I rowsort label-2839
SELECT - 69 * - SUM ( + 77 )
----
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT + COALESCE ( 32, - COUNT( * ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2840
SELECT + COALESCE ( 32, - COUNT ( * ) ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT ALL + 51 AS col2, 14 * + - ( - COUNT( * ) )
----
51
14

skipif mysql # not compatible
query II rowsort label-2841
SELECT ALL + 51 AS col2, 14 * + - ( - COUNT ( * ) )
----
51
14

query I rowsort
SELECT ALL + 22 AS col2
----
22

query I rowsort
SELECT + 95 * 5 + + 92 AS col2
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT NULLIF ( 69, - ( - COUNT( * ) ) * - - 32 )
----
69

skipif mysql # not compatible
query I rowsort label-2844
SELECT NULLIF ( 69, - ( - COUNT ( * ) ) * - - 32 )
----
69

query I rowsort
SELECT DISTINCT + + 51 AS col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2846
SELECT - 90 DIV + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2846
SELECT - 90 / + 98 AS col1
----
0

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

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

query I rowsort
SELECT - 99 + 60
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2849
SELECT ALL + COUNT( * ) DIV ( + 25 ) - - NULLIF ( - 87, - 89 ) + + 1
----
-86

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL + COUNT ( * ) / ( + 25 ) - - NULLIF ( - 87, - 89 ) + + 1
----
-86

query II rowsort
SELECT + + 8, 0 AS col2
----
8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT - - 66 + - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2851
SELECT - - 66 + - COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2852
SELECT + + COUNT( * ) AS col0, - 9 DIV 22 col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2852
SELECT + + COUNT ( * ) AS col0, - 9 / 22 col0
----
1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2853
SELECT + COUNT( DISTINCT 59 ) DIV + - 20 * 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2853
SELECT + COUNT ( DISTINCT 59 ) / + - 20 * 1 AS col2
----
0

query I rowsort
SELECT - + CASE + + 62 WHEN 62 + + + 61 * 44 THEN NULL ELSE - 62 END * - 31
----
-1922

query I rowsort
SELECT ALL + 11 + + 56 * + 80 * - + 23 AS col2
----
-103029

onlyif mysql # aggregate syntax: 
query III rowsort label-2856
SELECT ALL COUNT( * ) + + + 23 AS col2, MIN( 48 ) AS col0, - - 42 AS col2
----
24
48
42

skipif mysql # not compatible
query III rowsort label-2856
SELECT ALL COUNT ( * ) + + + 23 AS col2, MIN ( 48 ) AS col0, - - 42 AS col2
----
24
48
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT ALL COUNT( ALL 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL COUNT ( ALL 27 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 58 + - 60 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT ALL 13 AS col1, + CASE 56 WHEN + COUNT( * ) + - + 77 + 5 THEN COUNT( * ) WHEN COUNT( * ) * 76 THEN - 72 END
----
13
NULL

skipif mysql # not compatible
query II rowsort label-2859
SELECT ALL 13 AS col1, + CASE 56 WHEN + COUNT ( * ) + - + 77 + 5 THEN COUNT ( * ) WHEN COUNT ( * ) * 76 THEN - 72 END
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT ALL + + MIN( ALL + 11 ) + - 81
----
-70

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL + + MIN ( ALL + 11 ) + - 81
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2861
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - COUNT( * ) + - COALESCE ( - + CASE - ( - 78 ) WHEN + 38 + 6 THEN 27 END, 69 * + 35 ) - - COUNT( * ) * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - COALESCE ( - + CASE - ( - 78 ) WHEN + 38 + 6 THEN 27 END, 69 * + 35 ) - - COUNT ( * ) * - 94
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2863
SELECT - 59 - COUNT( * ) + + - COALESCE ( + - 19, 90 ) * - COUNT( * ) DIV - COALESCE ( 35, + 46 * 24, 23 * + 39 ) * 94 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2863
SELECT - 59 - COUNT ( * ) + + - COALESCE ( + - 19, 90 ) * - COUNT ( * ) / - COALESCE ( 35, + 46 * 24, 23 * + 39 ) * 94 AS col2
----
-60

query I rowsort
SELECT - - 3 col2
----
3

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2867
SELECT - - CAST( NULL AS DECIMAL ) - - + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT - - CAST ( NULL AS REAL ) - - + 92 AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( + - 59, + - ( + 21 ) ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2869
SELECT ALL + 11 * + COUNT( * ) col0, CAST( NULL AS SIGNED ) + 18
----
11
NULL

skipif mysql # not compatible
query II rowsort label-2869
SELECT ALL + 11 * + COUNT ( * ) col0, CAST ( NULL AS INTEGER ) + 18
----
11
NULL

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

query I rowsort
SELECT ALL + 12 * 5
----
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT NULLIF ( - 27, + 67 ) * - ( + 41 ) - - MIN( ( + ( 22 ) ) ) AS col2
----
1129

skipif mysql # not compatible
query I rowsort label-2873
SELECT NULLIF ( - 27, + 67 ) * - ( + 41 ) - - MIN ( ( + ( 22 ) ) ) AS col2
----
1129

query I rowsort
SELECT ALL + 41 col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2875
SELECT - COALESCE ( + 36, - COUNT( * ) * COUNT( * ) + + + 67 ) * - 20 * + - 37 + 37 DIV 98
----
-26640

skipif mysql # not compatible
query I rowsort label-2875
SELECT - COALESCE ( + 36, - COUNT ( * ) * COUNT ( * ) + + + 67 ) * - 20 * + - 37 + 37 / 98
----
-26640

query I rowsort
SELECT ALL + 40 * - CASE 50 WHEN 95 * + - 71 + + 14 - - 29 THEN 34 WHEN + 3 + 76 * - 86 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 13 * + + 17 + 49
----
270

query I rowsort
SELECT DISTINCT + ( - - 13 ) AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2879
SELECT + 10 * + CAST( + 58 AS SIGNED ) * + 68 * + 87 AS col1
----
3431280

skipif mysql # not compatible
query I rowsort label-2879
SELECT + 10 * + CAST ( + 58 AS INTEGER ) * + 68 * + 87 AS col1
----
3431280

query I rowsort
SELECT + COALESCE ( + 3, - + 26 + - + ( - + ( - - ( - 79 ) ) ), + 24 )
----
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2882
SELECT + + 95 * + 32, + ( 53 ) + + ( + - COUNT( * ) ) + - - ( + 2 ) DIV 41 col2
----
3040
52

skipif mysql # not compatible
query II rowsort label-2882
SELECT + + 95 * + 32, + ( 53 ) + + ( + - COUNT ( * ) ) + - - ( + 2 ) / 41 col2
----
3040
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT DISTINCT - + CASE - 40 WHEN - 34 THEN COUNT( * ) WHEN - - 66 THEN NULL WHEN + MAX( + 83 ) THEN MAX( 66 ) ELSE NULL END * - 83 + + MAX( + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT - + CASE - 40 WHEN - 34 THEN COUNT ( * ) WHEN - - 66 THEN NULL WHEN + MAX ( + 83 ) THEN MAX ( 66 ) ELSE NULL END * - 83 + + MAX ( + 22 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL + - 19 * + MAX( ALL - + 89 ) + - - 53
----
1744

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL + - 19 * + MAX ( ALL - + 89 ) + - - 53
----
1744

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT 9 * ( 58 ) * + COUNT( * ) * 59 - + - COUNT( + 2 )
----
30799

skipif mysql # not compatible
query I rowsort label-2885
SELECT 9 * ( 58 ) * + COUNT ( * ) * 59 - + - COUNT ( + 2 )
----
30799

query I rowsort
SELECT ALL + 45 * - 93 col0
----
-4185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2887
SELECT DISTINCT - COUNT( * ) * - ( 46 ) / - NULLIF ( + - 41, + 65 ) * CAST( NULL AS SIGNED ) / + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT - COUNT ( * ) * - ( 46 ) / - NULLIF ( + - 41, + 65 ) * CAST ( NULL AS INTEGER ) / + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL COALESCE ( NULLIF ( - 51, + + 79 * + 85 + - + ( COUNT( * ) ) * - ( 27 ) ), - 64 + + 69 ) + + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL COALESCE ( NULLIF ( - 51, + + 79 * + 85 + - + ( COUNT ( * ) ) * - ( 27 ) ), - 64 + + 69 ) + + COUNT ( * )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT DISTINCT COALESCE ( - + 7, 8, - 91 * + NULLIF ( + + 12, 36 * - 93 ), - 3 DIV 67 + + 2 )
----
-7

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT COALESCE ( - + 7, 8, - 91 * + NULLIF ( + + 12, 36 * - 93 ), - 3 / 67 + + 2 )
----
-7

query I rowsort
SELECT DISTINCT 65 + - 33
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT ALL - 30 DIV + 83 * + 53
----
0

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - 30 / + 83 * + 53
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2892
SELECT + 57 + 40 - - - COUNT( * ) AS col1, 34
----
96
34

skipif mysql # not compatible
query II rowsort label-2892
SELECT + 57 + 40 - - - COUNT ( * ) AS col1, 34
----
96
34

query I rowsort
SELECT - 66 * + 89
----
-5874

query II rowsort
SELECT DISTINCT - + 13 * - 81, - 21 AS col0
----
1053
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-2895
SELECT 49 + - 99 AS col1, COUNT( * ) AS col0
----
-50
1

skipif mysql # not compatible
query II rowsort label-2895
SELECT 49 + - 99 AS col1, COUNT ( * ) AS col0
----
-50
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT ALL - 69 DIV - 9 + + 55 + + 8
----
70

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL - 69 / - 9 + + 55 + + 8
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT 95 + - + 43 * - 46 / + 32 * + CAST( NULL AS SIGNED ) * + CASE - 57 WHEN ( 75 ) + 3 THEN 18 - 60 END * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT 95 + - + 43 * - 46 / + 32 * + CAST ( NULL AS INTEGER ) * + CASE - 57 WHEN ( 75 ) + 3 THEN 18 - 60 END * - 59
----
NULL

query II rowsort
SELECT DISTINCT 80 col2, 2 * - 30 * 86 AS col0
----
80
-5160

query II rowsort
SELECT DISTINCT 32 col1, - 27 AS col2
----
32
-27

query I rowsort
SELECT 71 * 50
----
3550

query I rowsort
SELECT 74 + - 31 + 75 AS col0
----
118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT SUM( - - 79 ) + - - 8
----
87

skipif mysql # not compatible
query I rowsort label-2903
SELECT SUM ( - - 79 ) + - - 8
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT COUNT( + 95 ) * - ( - 19 ) + - 41
----
-22

skipif mysql # not compatible
query I rowsort label-2904
SELECT COUNT ( + 95 ) * - ( - 19 ) + - 41
----
-22

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

query I rowsort
SELECT ALL + 36 + + - 74 + + + 90 * - 66 AS col0
----
-5978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2907
SELECT ALL - MAX( DISTINCT 10 ) DIV 39 * - - 97
----
0

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL - MAX ( DISTINCT 10 ) / 39 * - - 97
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT ALL 22 + 14 + - COUNT( * ) col2, + 64
----
35
64

skipif mysql # not compatible
query II rowsort label-2908
SELECT ALL 22 + 14 + - COUNT ( * ) col2, + 64
----
35
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + ( + 27 ) / 72 * 37 / - MAX( + 73 ) - + - 20 + COUNT( * ) / + NULLIF ( AVG ( - CASE 18 WHEN 8 / 11 THEN - 24 * + 47 ELSE NULL END ) * 62, - 56 + + 91 ) - + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2909
SELECT + ( + 27 ) / 72 * 37 / - MAX ( + 73 ) - + - 20 + COUNT ( * ) / + NULLIF ( AVG ( - CASE 18 WHEN 8 / 11 THEN - 24 * + 47 ELSE NULL END ) * 62, - 56 + + 91 ) - + 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL + COALESCE ( + + 87, - + ( - - 41 ) * + 39, + + 33 * 60 ) + - - MAX( - 55 )
----
32

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL + COALESCE ( + + 87, - + ( - - 41 ) * + 39, + + 33 * 60 ) + - - MAX ( - 55 )
----
32

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2913
SELECT 95 DIV - CAST( + + 66 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2913
SELECT 95 / - CAST ( + + 66 AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL - 19 + + 1 * - - ( + - 17 ) + - 50 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-2915
SELECT 98 AS col1, + COUNT( 90 ) AS col0
----
98
1

skipif mysql # not compatible
query II rowsort label-2915
SELECT 98 AS col1, + COUNT ( 90 ) AS col0
----
98
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2916
SELECT + - 35 AS col0, 25 + + + MAX( - + 52 ) + + COUNT( DISTINCT ( + 11 ) ) * + + 16 AS col0
----
-35
-11

skipif mysql # not compatible
query II rowsort label-2916
SELECT + - 35 AS col0, 25 + + + MAX ( - + 52 ) + + COUNT ( DISTINCT ( + 11 ) ) * + + 16 AS col0
----
-35
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT ALL CAST( 11 AS SIGNED ) + + 60
----
71

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL CAST ( 11 AS INTEGER ) + + 60
----
71

query I rowsort
SELECT 23 + - 62
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT DISTINCT + 33 * + - COUNT( - 92 )
----
-33

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT + 33 * + - COUNT ( - 92 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT ALL + 83 + - + 88 * 58 DIV + 79 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + 83 + - + 88 * 58 / + 79 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2921
SELECT CASE - 80 WHEN + + ( MIN( DISTINCT - 23 ) ) * - - 83 + + 54 + + - 80 THEN NULL WHEN + 31 + + COUNT( * ) THEN NULL WHEN + CASE + 51 WHEN 35 / CASE 56 WHEN - COUNT( * ) THEN NULL WHEN 68 THEN NULL ELSE + 70 END THEN + 9 ELSE COUNT( * ) * ( AVG ( CASE + 13 WHEN - 37 THEN 1 WHEN + CASE - ( CAST( 43 AS DECIMAL ) ) WHEN 36 THEN - 13 - + 96 ELSE NULL END THEN 1 * + ( 16 / 24 ) END ) ) + 81 END THEN + ( CASE 55 WHEN + 13 * - CASE + 3 * 65 WHEN + ( - ( + 58 ) ) THEN + 30 * COUNT( * ) WHEN + COUNT( DISTINCT 57 ) * 76 - 22 THEN CAST( NULL AS SIGNED ) - 71 END THEN CAST( - 45 AS SIGNED ) END ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT CASE - 80 WHEN + + ( MIN ( DISTINCT - 23 ) ) * - - 83 + + 54 + + - 80 THEN NULL WHEN + 31 + + COUNT ( * ) THEN NULL WHEN + CASE + 51 WHEN 35 / CASE 56 WHEN - COUNT ( * ) THEN NULL WHEN 68 THEN NULL ELSE + 70 END THEN + 9 ELSE COUNT ( * ) * ( AVG ( CASE + 13 WHEN - 37 THEN 1 WHEN + CASE - ( CAST ( 43 AS REAL ) ) WHEN 36 THEN - 13 - + 96 ELSE NULL END THEN 1 * + ( 16 / 24 ) END ) ) + 81 END THEN + ( CASE 55 WHEN + 13 * - CASE + 3 * 65 WHEN + ( - ( + 58 ) ) THEN + 30 * COUNT ( * ) WHEN + COUNT ( DISTINCT 57 ) * 76 - 22 THEN CAST ( NULL AS INTEGER ) - 71 END THEN CAST ( - 45 AS INTEGER ) END ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( 46 ) AS col2
----
46

query I rowsort
SELECT + 97 + 71 AS col2
----
168

query I rowsort
SELECT ALL - + ( 17 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-2925
SELECT SUM( + ( 87 ) ) AS col2, 52
----
87
52

skipif mysql # not compatible
query II rowsort label-2925
SELECT SUM ( + ( 87 ) ) AS col2, 52
----
87
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2926
SELECT + - 4 * MAX( - NULLIF ( - + 27, + 84 ) ) * ( - 95 ) + + CASE 49 WHEN - 68 * - 92 THEN - 47 WHEN 84 / CAST( NULL AS DECIMAL ) + + COUNT( * ) THEN NULL END / 52 + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT + - 4 * MAX ( - NULLIF ( - + 27, + 84 ) ) * ( - 95 ) + + CASE 49 WHEN - 68 * - 92 THEN - 47 WHEN 84 / CAST ( NULL AS REAL ) + + COUNT ( * ) THEN NULL END / 52 + - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL 81 - CASE - 16 WHEN + 99 * 59 THEN NULL ELSE 58 END * 97 / + - CASE + COUNT( * ) WHEN + 5 / - 22 THEN + ( + COUNT( * ) ) + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL 81 - CASE - 16 WHEN + 99 * 59 THEN NULL ELSE 58 END * 97 / + - CASE + COUNT ( * ) WHEN + 5 / - 22 THEN + ( + COUNT ( * ) ) + - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2928
SELECT + - 71 AS col2, NULLIF ( + 48, - 90 * 59 + CASE - 75 WHEN + ( - ( - 68 ) ) THEN CAST( NULL AS SIGNED ) * 63 END + COUNT( * ) * - 82 ) AS col1
----
-71
48

skipif mysql # not compatible
query II rowsort label-2928
SELECT + - 71 AS col2, NULLIF ( + 48, - 90 * 59 + CASE - 75 WHEN + ( - ( - 68 ) ) THEN CAST ( NULL AS INTEGER ) * 63 END + COUNT ( * ) * - 82 ) AS col1
----
-71
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2929
SELECT MAX( DISTINCT ( + - 50 ) ) AS col0, 61 DIV - 57 AS col1
----
-50
-1

skipif mysql # not compatible
query II rowsort label-2929
SELECT MAX ( DISTINCT ( + - 50 ) ) AS col0, 61 / - 57 AS col1
----
-50
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL SUM( + 81 ) * + - 47 * - COUNT( * ) + 18 * - COUNT( * ) * 87 * COALESCE ( - COUNT( * ), + COALESCE ( 94, SUM( - 42 ) ) + + 59 ) AS col1
----
5373

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL SUM ( + 81 ) * + - 47 * - COUNT ( * ) + 18 * - COUNT ( * ) * 87 * COALESCE ( - COUNT ( * ), + COALESCE ( 94, SUM ( - 42 ) ) + + 59 ) AS col1
----
5373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2931
SELECT - 64 * - - SUM( ALL + 71 ) * + + CAST( NULL AS SIGNED ) - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT - 64 * - - SUM ( ALL + 71 ) * + + CAST ( NULL AS INTEGER ) - - 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2932
SELECT ALL - + 94 * 8 + + COUNT( * ) + + 91 + - 11 DIV 55 * + COUNT( * ) + + 34 * + 31
----
394

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL - + 94 * 8 + + COUNT ( * ) + + 91 + - 11 / 55 * + COUNT ( * ) + + 34 * + 31
----
394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2933
SELECT DISTINCT - COUNT( * ) * + COALESCE ( - 44, + 75 + + CAST( NULL AS SIGNED ) + + COUNT( * ) + + ( - + COUNT( * ) ) * 23 * 24 )
----
44

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - COUNT ( * ) * + COALESCE ( - 44, + 75 + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + ( - + COUNT ( * ) ) * 23 * 24 )
----
44

query II rowsort
SELECT ALL 32 AS col2, ( - ( + 96 ) )
----
32
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT DISTINCT + COALESCE ( + 29, - 29, 50 + - 95 * - + COUNT( * ) + - 45 )
----
29

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT + COALESCE ( + 29, - 29, 50 + - 95 * - + COUNT ( * ) + - 45 )
----
29

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

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

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

skipif mysql # not compatible
query I rowsort label-2937
SELECT CAST ( NULL AS INTEGER ) * - 35 + 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2938
SELECT DISTINCT - 66 / 61 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT - 66 / 61 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT CAST( + 29 AS SIGNED ) * ( - 14 ) * - + 10 AS col2
----
4060

skipif mysql # not compatible
query I rowsort label-2939
SELECT CAST ( + 29 AS INTEGER ) * ( - 14 ) * - + 10 AS col2
----
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT 55 - + 92 * + MAX( DISTINCT 36 ) * - COUNT( * ) col0
----
3367

skipif mysql # not compatible
query I rowsort label-2940
SELECT 55 - + 92 * + MAX ( DISTINCT 36 ) * - COUNT ( * ) col0
----
3367

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT 61 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-2941
SELECT 61 / - 33
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT DISTINCT 0 DIV - + 90 col1
----
0

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT 0 / - + 90 col1
----
0

query I rowsort
SELECT 6 * - - 7
----
42

query II rowsort
SELECT ALL - 49 * 76 AS col1, - 88
----
-3724
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2945
SELECT ALL 46 DIV - 71 * + - 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL 46 / - 71 * + - 34 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT DISTINCT 5 + 76 + - COUNT( - NULLIF ( 16, + - 19 * - 79 ) ) + - 0 - 16 - + 9
----
55

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT 5 + 76 + - COUNT ( - NULLIF ( 16, + - 19 * - 79 ) ) + - 0 - 16 - + 9
----
55

query I rowsort
SELECT ALL - 77 * + 46
----
-3542

onlyif mysql # DIV for integer division: 
query II rowsort label-2948
SELECT 96 * 73, + 14 DIV + + 38 AS col0
----
7008
0

skipif mysql # not compatible
query II rowsort label-2948
SELECT 96 * 73, + 14 / + + 38 AS col0
----
7008
0

query I rowsort
SELECT DISTINCT 40 + 6
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-2950
SELECT DISTINCT + 4 + + 77 AS col1, CASE WHEN - 5 IS NOT NULL THEN SUM( - 31 ) * + 20 END AS col0
----
81
-620

skipif mysql # not compatible
query II rowsort label-2950
SELECT DISTINCT + 4 + + 77 AS col1, CASE WHEN - 5 IS NOT NULL THEN SUM ( - 31 ) * + 20 END AS col0
----
81
-620

query I rowsort
SELECT 79 + 86 + - 81 * 81 + + 30 AS col1
----
-6366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT 86 * - CAST( NULL AS SIGNED ) * - - 91 * - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT 86 * - CAST ( NULL AS INTEGER ) * - - 91 * - - 54
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2953
SELECT COALESCE ( + - CAST( NULL AS SIGNED ), 18, 50 * - 99 + - 38 DIV + 98 * + - 95 + - 61 )
----
18

skipif mysql # not compatible
query I rowsort label-2953
SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), 18, 50 * - 99 + - 38 / + 98 * + - 95 + - 61 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT DISTINCT + 96 * - COALESCE ( + 34, - - 91 * - 36 * + COUNT( ALL + - 1 ), + 94 ) + + 56 col2
----
-3208

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT + 96 * - COALESCE ( + 34, - - 91 * - 36 * + COUNT ( ALL + - 1 ), + 94 ) + + 56 col2
----
-3208

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT + MIN( DISTINCT 21 ) * + COUNT( * ) + - + 65 * - + MAX( - + 96 ) + - ( + 99 ) AS col0
----
-6318

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT + MIN ( DISTINCT 21 ) * + COUNT ( * ) + - + 65 * - + MAX ( - + 96 ) + - ( + 99 ) AS col0
----
-6318

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT DISTINCT + - SUM( - - NULLIF ( - 62, 23 + - + ( + + 19 ) ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT + - SUM ( - - NULLIF ( - 62, 23 + - + ( + + 19 ) ) ) AS col2
----
62

query I rowsort
SELECT - - 74 * + - 86 + + 12 + 45 + - 28 * 19
----
-6839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2960
SELECT - + CASE + ( - - COUNT( * ) ) WHEN 15 + + COUNT( * ) * + 79 THEN - NULLIF ( - CAST( COUNT( * ) AS DECIMAL ), + 16 * + 36 ) - 82 WHEN + COUNT( * ) + 7 * + 21 THEN COALESCE ( + CASE + 29 WHEN - CASE + 84 WHEN COALESCE ( - COUNT( * ), + CAST( NULL AS SIGNED ) ) THEN COUNT( * ) * 79 ELSE CAST( 27 AS DECIMAL ) END THEN NULL ELSE ( + ( + MAX( ALL + 28 ) ) ) * ( AVG ( DISTINCT COALESCE ( 21, + 59 * CAST( NULL AS SIGNED ) ) ) * + COUNT( * ) ) END, ( + COUNT( 93 ) ), - 38 ) * ( + COUNT( * ) ) + - 99 ELSE NULL END * 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT - + CASE + ( - - COUNT ( * ) ) WHEN 15 + + COUNT ( * ) * + 79 THEN - NULLIF ( - CAST ( COUNT ( * ) AS REAL ), + 16 * + 36 ) - 82 WHEN + COUNT ( * ) + 7 * + 21 THEN COALESCE ( + CASE + 29 WHEN - CASE + 84 WHEN COALESCE ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) * 79 ELSE CAST ( 27 AS REAL ) END THEN NULL ELSE ( + ( + MAX ( ALL + 28 ) ) ) * ( AVG ( DISTINCT COALESCE ( 21, + 59 * CAST ( NULL AS INTEGER ) ) ) * + COUNT ( * ) ) END, ( + COUNT ( 93 ) ), - 38 ) * ( + COUNT ( * ) ) + - 99 ELSE NULL END * 47 AS col1
----
NULL

query I rowsort
SELECT ALL - - 71 * - 59
----
-4189

query I rowsort
SELECT - + 66 * - + 81 AS col2
----
5346

query I rowsort
SELECT - NULLIF ( + NULLIF ( + 55, 26 * + 8 ), + - 37 ) * - - 75 AS col1
----
-4125

query I rowsort
SELECT - 53 * 20 col0
----
-1060

query I rowsort
SELECT ALL - 27 * - - 77 AS col2
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT - + 16 + - COUNT( ALL + 37 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2966
SELECT - + 16 + - COUNT ( ALL + 37 ) AS col0
----
-17

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

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

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

query I rowsort
SELECT + + 67 * - - 12
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT - 83 * + - ( + 5 ) + + COUNT( * )
----
416

skipif mysql # not compatible
query I rowsort label-2970
SELECT - 83 * + - ( + 5 ) + + COUNT ( * )
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT + CASE + 33 WHEN - 26 THEN NULL WHEN + + 14 * - 73 THEN + 48 - + COUNT( * ) * + - MAX( ALL - + 37 ) * 86 ELSE NULL END - AVG ( 5 ) * 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT + CASE + 33 WHEN - 26 THEN NULL WHEN + + 14 * - 73 THEN + 48 - + COUNT ( * ) * + - MAX ( ALL - + 37 ) * 86 ELSE NULL END - AVG ( 5 ) * 71 AS col0
----
NULL

query I rowsort
SELECT ALL ( COALESCE ( + + 0, + 11 ) ) AS col1
----
0

query I rowsort
SELECT - 47 + - - 30 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT + 53 + ( - + SUM( DISTINCT - 87 ) )
----
140

skipif mysql # not compatible
query I rowsort label-2974
SELECT + 53 + ( - + SUM ( DISTINCT - 87 ) )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL 59 * - + 52 / - CASE 61 WHEN - 8 + 10 THEN NULL WHEN + NULLIF ( + + COALESCE ( + + 13, + 9 ), - 4 * 70 ) THEN COUNT( * ) - + 60 WHEN + 72 + 15 THEN + 86 + + 26 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL 59 * - + 52 / - CASE 61 WHEN - 8 + 10 THEN NULL WHEN + NULLIF ( + + COALESCE ( + + 13, + 9 ), - 4 * 70 ) THEN COUNT ( * ) - + 60 WHEN + 72 + 15 THEN + 86 + + 26 * COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 70 * + 86
----
6020

query I rowsort
SELECT + 29 + + + 65 AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT + CAST( NULL AS SIGNED ) + + - 85 * CASE - 33 WHEN - 2 THEN - + 28 * 0 ELSE - + 93 END + - 72 + 1 - 82 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT + CAST ( NULL AS INTEGER ) + + - 85 * CASE - 33 WHEN - 2 THEN - + 28 * 0 ELSE - + 93 END + - 72 + 1 - 82 * 23
----
NULL

query II rowsort
SELECT DISTINCT + 35 + + - 26 + 70 col2, 44
----
79
44

query I rowsort
SELECT ALL - 81 + + 20 + + 99
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2981
SELECT + 93 + NULLIF ( + CASE 95 WHEN + 73 / - 98 * - 41 THEN - 9 WHEN 71 + + 62 + + 67 THEN - 19 WHEN 43 THEN 24 / - CAST( - ( 77 ) AS SIGNED ) - 88 END, + COUNT( * ) * 58 ) * - ( 88 + - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT + 93 + NULLIF ( + CASE 95 WHEN + 73 / - 98 * - 41 THEN - 9 WHEN 71 + + 62 + + 67 THEN - 19 WHEN 43 THEN 24 / - CAST ( - ( 77 ) AS INTEGER ) - 88 END, + COUNT ( * ) * 58 ) * - ( 88 + - 39 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2982
SELECT + 69 + 11 DIV + - 52 AS col0, - 5 + + 64 AS col2
----
69
59

skipif mysql # not compatible
query II rowsort label-2982
SELECT + 69 + 11 / + - 52 AS col0, - 5 + + 64 AS col2
----
69
59

query II rowsort
SELECT + CASE - 3 WHEN + 75 * 6 THEN - 96 END * - 36 * + 88 / - - 50, 67 AS col0
----
NULL
67

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2985
SELECT ALL 60 AS col0, + 73 + - COUNT( * ) * - 20 * + - 60 AS col0
----
60
-1127

skipif mysql # not compatible
query II rowsort label-2985
SELECT ALL 60 AS col0, + 73 + - COUNT ( * ) * - 20 * + - 60 AS col0
----
60
-1127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2986
SELECT + CASE - CASE - 37 WHEN - - ( + - COALESCE ( + 46, - + ( + 36 ) ) ) * - + 65 * - 43 + - 3 THEN NULL WHEN + 21 THEN 85 + 55 WHEN - 61 THEN - COUNT( * ) * + 64 ELSE 27 END WHEN - 87 * 49 + 45 THEN COUNT( * ) WHEN 3 THEN CASE - COUNT( * ) WHEN + 51 + COUNT( * ) THEN ( ( + 18 ) ) + + 39 ELSE NULL END * - 38 + - 19 ELSE 59 END + COUNT( * ) DIV 48
----
59

skipif mysql # not compatible
query I rowsort label-2986
SELECT + CASE - CASE - 37 WHEN - - ( + - COALESCE ( + 46, - + ( + 36 ) ) ) * - + 65 * - 43 + - 3 THEN NULL WHEN + 21 THEN 85 + 55 WHEN - 61 THEN - COUNT ( * ) * + 64 ELSE 27 END WHEN - 87 * 49 + 45 THEN COUNT ( * ) WHEN 3 THEN CASE - COUNT ( * ) WHEN + 51 + COUNT ( * ) THEN ( ( + 18 ) ) + + 39 ELSE NULL END * - 38 + - 19 ELSE 59 END + COUNT ( * ) / 48
----
59

query II rowsort
SELECT 58, ( - 12 ) + 98 col1
----
58
86

query I rowsort
SELECT + 63 + 68 + 65
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT DISTINCT 86 + - 35 - + - ( - MAX( 22 ) ) * - + 49 + - + ( - - 14 ) * + - 66 * - COUNT( * ) AS col1
----
205

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT 86 + - 35 - + - ( - MAX ( 22 ) ) * - + 49 + - + ( - - 14 ) * + - 66 * - COUNT ( * ) AS col1
----
205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT ALL NULLIF ( 5, - - CAST( 48 AS SIGNED ) ) + + - 4 * 20 col0
----
-75

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL NULLIF ( 5, - - CAST ( 48 AS INTEGER ) ) + + - 4 * 20 col0
----
-75

query I rowsort
SELECT + 51 * + 78 AS col1
----
3978

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

skipif mysql # not compatible
query II rowsort label-2992
SELECT 7 AS col1, COUNT ( * ) AS col0
----
7
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT + 45 + - + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2994
SELECT + 45 + - + COUNT ( * ) AS col1
----
44

query I rowsort
SELECT ALL + ( - + 22 ) * + 88 AS col1
----
-1936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2996
SELECT - - 89 DIV + 9 + MAX( 71 )
----
80

skipif mysql # not compatible
query I rowsort label-2996
SELECT - - 89 / + 9 + MAX ( 71 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT DISTINCT 98 DIV + + 23 - + - 59
----
63

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT 98 / + + 23 - + - 59
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL COUNT( * ) * - - 15
----
15

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL COUNT ( * ) * - - 15
----
15

query II rowsort
SELECT + - 44 AS col2, 83 AS col2
----
-44
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT DISTINCT + 46 / - 51 * + CASE AVG ( DISTINCT + 35 ) WHEN COUNT( * ) + MIN( ALL 49 ) THEN - - 37 WHEN - 41 THEN NULL WHEN - NULLIF ( + 79, 61 * + 6 ) * 27 THEN NULL WHEN 86 THEN 56 ELSE NULL END - - 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT + 46 / - 51 * + CASE AVG ( DISTINCT + 35 ) WHEN COUNT ( * ) + MIN ( ALL 49 ) THEN - - 37 WHEN - 41 THEN NULL WHEN - NULLIF ( + 79, 61 * + 6 ) * 27 THEN NULL WHEN 86 THEN 56 ELSE NULL END - - 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT COALESCE ( - 42, 66, - - COUNT( * ) * - 1 + - 71 + + 35 + + 11 )
----
-42

skipif mysql # not compatible
query I rowsort label-3001
SELECT COALESCE ( - 42, 66, - - COUNT ( * ) * - 1 + - 71 + + 35 + + 11 )
----
-42

query I rowsort
SELECT - 27 * - - 99 + - - 19 AS col2
----
-2654

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

query I rowsort
SELECT DISTINCT + 83 col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3005
SELECT - + 62 * - + ( - + COUNT( * ) ) AS col1, ( + - 2 )
----
-62
-2

skipif mysql # not compatible
query II rowsort label-3005
SELECT - + 62 * - + ( - + COUNT ( * ) ) AS col1, ( + - 2 )
----
-62
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT + 35 * - - NULLIF ( + COUNT( * ), CAST( - 20 AS SIGNED ) ) + - 71 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3006
SELECT + 35 * - - NULLIF ( + COUNT ( * ), CAST ( - 20 AS INTEGER ) ) + - 71 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT DISTINCT + - 93 * + - 93 + + NULLIF ( COUNT( * ), - COUNT( * ) ) + + 76 * - 65
----
3710

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT + - 93 * + - 93 + + NULLIF ( COUNT ( * ), - COUNT ( * ) ) + + 76 * - 65
----
3710

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT DISTINCT + 7 DIV + 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT + 7 / + 56 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT ALL + 90 DIV + + 32 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + 90 / + + 32 AS col0
----
2

query I rowsort
SELECT + + 39 AS col1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3011
SELECT DISTINCT + 51 * - 38 + + - 60 + - CAST( - 58 AS SIGNED ) AS col0, 45 * - + 87 col0
----
-1940
-3915

skipif mysql # not compatible
query II rowsort label-3011
SELECT DISTINCT + 51 * - 38 + + - 60 + - CAST ( - 58 AS INTEGER ) AS col0, 45 * - + 87 col0
----
-1940
-3915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3012
SELECT - NULLIF ( - - 82, - - CASE + 68 WHEN + COUNT( * ) * - - 98 THEN NULL WHEN 35 THEN - 1 ELSE + 41 * 75 END + + 31 ) DIV - 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3012
SELECT - NULLIF ( - - 82, - - CASE + 68 WHEN + COUNT ( * ) * - - 98 THEN NULL WHEN 35 THEN - 1 ELSE + 41 * 75 END + + 31 ) / - 37 AS col0
----
2

query I rowsort
SELECT - 24 * + - 91 AS col2
----
2184

query I rowsort
SELECT + 29 * + 65
----
1885

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

skipif mysql # not compatible
query I rowsort label-3015
SELECT - CAST ( NULL AS REAL ) * + - 26
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3017
SELECT - CASE 62 WHEN 66 THEN NULL WHEN 75 - - 10 + ( 47 ) * - CASE - + 58 WHEN + + 99 THEN + 47 * + 81 ELSE NULL END THEN AVG ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) END * 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT - CASE 62 WHEN 66 THEN NULL WHEN 75 - - 10 + ( 47 ) * - CASE - + 58 WHEN + + 99 THEN + 47 * + 81 ELSE NULL END THEN AVG ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) END * 63 AS col1
----
NULL

query I rowsort
SELECT ALL - 51 * - 22 + - CASE - + 24 WHEN + 1 THEN - - 4 END + + - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT - NULLIF ( + ( - + 77 ), COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-3019
SELECT - NULLIF ( + ( - + 77 ), COUNT ( * ) )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3020
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 5 * + 92
----
NULL
460

skipif mysql # not compatible
query II rowsort label-3020
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 5 * + 92
----
NULL
460

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

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

query I rowsort
SELECT + 63 * + - 13 AS col1
----
-819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT + 81 + 15 / + 25 + - + COUNT( DISTINCT - 59 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT + 81 + 15 / + 25 + - + COUNT ( DISTINCT - 59 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3024
SELECT - COUNT( * ), + 94 - + 56 + - - 92 - + 4 AS col0
----
-1
126

skipif mysql # not compatible
query II rowsort label-3024
SELECT - COUNT ( * ), + 94 - + 56 + - - 92 - + 4 AS col0
----
-1
126

query II rowsort
SELECT ALL 15 AS col0, 43 AS col2
----
15
43

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

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT - COUNT ( * ) - + COUNT ( + 31 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3027
SELECT ALL ( - 3 ) * + + MAX( 66 ), - COUNT( * ) * + CASE + - 66 WHEN 78 THEN - 40 * + 9 END AS col2
----
-198
NULL

skipif mysql # not compatible
query II rowsort label-3027
SELECT ALL ( - 3 ) * + + MAX ( 66 ), - COUNT ( * ) * + CASE + - 66 WHEN 78 THEN - 40 * + 9 END AS col2
----
-198
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3029
SELECT DISTINCT + COALESCE ( 32, 80 * - + COALESCE ( - COUNT( * ), CAST( + 74 AS SIGNED ), 22 ) ) * + - ( ( 80 ) ) AS col2
----
-2560

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT + COALESCE ( 32, 80 * - + COALESCE ( - COUNT ( * ), CAST ( + 74 AS INTEGER ), 22 ) ) * + - ( ( 80 ) ) AS col2
----
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT COALESCE ( CASE + 40 WHEN 60 + + ( - 69 ) / + - 99 THEN + 85 WHEN - 93 THEN NULL END, 20, 5 - COUNT( * ) ) + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-3030
SELECT COALESCE ( CASE + 40 WHEN 60 + + ( - 69 ) / + - 99 THEN + 85 WHEN - 93 THEN NULL END, 20, 5 - COUNT ( * ) ) + COUNT ( * )
----
21

query I rowsort
SELECT 69 + - 29 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3032
SELECT + + 13 * 34 + + COUNT( ALL 23 ) - COUNT( * ) + - 77 DIV 40 * + 26 DIV + - COUNT( * ) + + COUNT( * ) + + + ( ( - COUNT( * ) ) ) * + 55 AS col1
----
414

skipif mysql # not compatible
query I rowsort label-3032
SELECT + + 13 * 34 + + COUNT ( ALL 23 ) - COUNT ( * ) + - 77 / 40 * + 26 / + - COUNT ( * ) + + COUNT ( * ) + + + ( ( - COUNT ( * ) ) ) * + 55 AS col1
----
414

query I rowsort
SELECT ALL - + 24
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT + 94 * 96 - - 48 DIV + 45 + + + 44 AS col1
----
9069

skipif mysql # not compatible
query I rowsort label-3034
SELECT + 94 * 96 - - 48 / + 45 + + + 44 AS col1
----
9069

onlyif mysql # DIV for integer division: 
query I rowsort label-3035
SELECT - NULLIF ( 20, - 78 + - 47 ) DIV - 9 - 39 + + 5 * 98
----
453

skipif mysql # not compatible
query I rowsort label-3035
SELECT - NULLIF ( 20, - 78 + - 47 ) / - 9 - 39 + + 5 * 98
----
453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT ALL - NULLIF ( + - 71, - + CAST( NULL AS SIGNED ) )
----
71

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL - NULLIF ( + - 71, - + CAST ( NULL AS INTEGER ) )
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + NULLIF ( + 45, 4 - + 18 / + NULLIF ( 41, 85 * 71 + + 10 ) / - - 25 + + - COALESCE ( COALESCE ( + 44, + 38 * + 69, COALESCE ( + COUNT( DISTINCT 52 ), COUNT( * ) ) * COUNT( * ), + COUNT( * ) ), NULLIF ( 68, - 16 ), + 4 ) )
----
45

skipif mysql # not compatible
query I rowsort label-3038
SELECT + NULLIF ( + 45, 4 - + 18 / + NULLIF ( 41, 85 * 71 + + 10 ) / - - 25 + + - COALESCE ( COALESCE ( + 44, + 38 * + 69, COALESCE ( + COUNT ( DISTINCT 52 ), COUNT ( * ) ) * COUNT ( * ), + COUNT ( * ) ), NULLIF ( 68, - 16 ), + 4 ) )
----
45

query II rowsort
SELECT DISTINCT - 67 AS col1, 98
----
-67
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT ALL 60 * - + 4 + - CAST( - 34 AS SIGNED ) AS col1
----
-206

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL 60 * - + 4 + - CAST ( - 34 AS INTEGER ) AS col1
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT 69 * 77 - - COUNT( * ) + + 40
----
5354

skipif mysql # not compatible
query I rowsort label-3041
SELECT 69 * 77 - - COUNT ( * ) + + 40
----
5354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3042
SELECT ALL 0 DIV + SUM( + 40 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL 0 / + SUM ( + 40 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3043
SELECT DISTINCT 70 * + COUNT( * ), - 33 AS col0
----
70
-33

skipif mysql # not compatible
query II rowsort label-3043
SELECT DISTINCT 70 * + COUNT ( * ), - 33 AS col0
----
70
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT ALL + - CAST( + 56 AS SIGNED ) * - - 10 + 18 + - 44 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + - CAST ( + 56 AS INTEGER ) * - - 10 + 18 + - 44 * - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 18 AS col1, - 78 AS col2
----
-18
-78

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

query I rowsort
SELECT ALL 27 + - 31 + 10 AS col0
----
6

query I rowsort
SELECT 49 + 79 AS col1
----
128

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

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

query I rowsort
SELECT + - COALESCE ( - 36, 29, + 93, - - 20 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT ALL + COUNT( * ) * + - 42 * + 18 * + + 7 AS col2
----
-5292

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL + COUNT ( * ) * + - 42 * + 18 * + + 7 AS col2
----
-5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3052
SELECT 64 * - 0 DIV 29 + CAST( + + COALESCE ( COUNT( * ), - 18, - 54 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3052
SELECT 64 * - 0 / 29 + CAST ( + + COALESCE ( COUNT ( * ), - 18, - 54 ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL 23 + CASE 74 WHEN - 46 - - 55 + - COUNT( * ) THEN COUNT( * ) * - 70 + + ( 99 ) WHEN + + 70 * COUNT( * ) * - 12 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL 23 + CASE 74 WHEN - 46 - - 55 + - COUNT ( * ) THEN COUNT ( * ) * - 70 + + ( 99 ) WHEN + + 70 * COUNT ( * ) * - 12 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3055
SELECT 99 + SUM( ALL 1 ) DIV 81 + - SUM( ( - + 68 ) )
----
167

skipif mysql # not compatible
query I rowsort label-3055
SELECT 99 + SUM ( ALL 1 ) / 81 + - SUM ( ( - + 68 ) )
----
167

query I rowsort
SELECT ALL + 18 + - 86 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL - MIN( + CASE - + 55 WHEN + 20 THEN NULL ELSE 59 END ) + - + 15 col0
----
-74

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - MIN ( + CASE - + 55 WHEN + 20 THEN NULL ELSE 59 END ) + - + 15 col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT 15 - + - 84 - + - CAST( + 22 AS SIGNED )
----
121

skipif mysql # not compatible
query I rowsort label-3058
SELECT 15 - + - 84 - + - CAST ( + 22 AS INTEGER )
----
121

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

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

query II rowsort
SELECT 95 * + 53, 30 AS col1
----
5035
30

query I rowsort
SELECT 34 + - 48 + + 53 * + 95
----
5021

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT + MIN( + 22 ) - 89
----
-67

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT + MIN ( + 22 ) - 89
----
-67

query I rowsort
SELECT 24 + - 41 + + 64 + - 31 * 18 AS col1
----
-511

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

query I rowsort
SELECT DISTINCT - 8 - - + 19 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT + 39 + + ( + COUNT( * ) ) * - ( + + 41 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3066
SELECT + 39 + + ( + COUNT ( * ) ) * - ( + + 41 ) AS col0
----
-2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3068
SELECT ALL COUNT( * ) * + + 26 AS col1, COUNT( ALL - + 51 ) AS col2
----
26
1

skipif mysql # not compatible
query II rowsort label-3068
SELECT ALL COUNT ( * ) * + + 26 AS col1, COUNT ( ALL - + 51 ) AS col2
----
26
1

query I rowsort
SELECT + 14 + + - 95 AS col0
----
-81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT + 68 / + 62 * - - ( CASE 18 WHEN + 87 * + - 93 THEN - CAST( NULL AS SIGNED ) * 67 END ) + COALESCE ( + CAST( NULL AS SIGNED ), 61 ) * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT + 68 / + 62 * - - ( CASE 18 WHEN + 87 * + - 93 THEN - CAST ( NULL AS INTEGER ) * 67 END ) + COALESCE ( + CAST ( NULL AS INTEGER ), 61 ) * - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3072
SELECT ALL 60 * + - 58 + - ( - COALESCE ( + - 5, CAST( NULL AS SIGNED ), ( + 13 ) ) ) * - 81 - ( + - 57 ) * - COUNT( * ) * - 52 AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL 60 * + - 58 + - ( - COALESCE ( + - 5, CAST ( NULL AS INTEGER ), ( + 13 ) ) ) * - 81 - ( + - 57 ) * - COUNT ( * ) * - 52 AS col0
----
-111

query I rowsort
SELECT ALL - + 72 AS col2
----
-72

query II rowsort
SELECT + + COALESCE ( + 17, - + 8 ), 17
----
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ( - ( 9 ) ) + - 5 + - COUNT( * ) * + 19
----
-33

skipif mysql # not compatible
query I rowsort label-3075
SELECT ( - ( 9 ) ) + - 5 + - COUNT ( * ) * + 19
----
-33

query II rowsort
SELECT + + ( - + 36 ) AS col2, + 46
----
-36
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT 63 * + 64 + + + ( + 36 ) * - ( 79 ) * + + ( - 99 ) * - 20 - + - COUNT( ALL 49 ) + 41 + ( + 2 )
----
-5627044

skipif mysql # not compatible
query I rowsort label-3077
SELECT 63 * + 64 + + + ( + 36 ) * - ( 79 ) * + + ( - 99 ) * - 20 - + - COUNT ( ALL 49 ) + 41 + ( + 2 )
----
-5627044

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT DISTINCT - 36 * + 40 + - 58 + COUNT( 25 ) * + 20 AS col1
----
-1478

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT - 36 * + 40 + - 58 + COUNT ( 25 ) * + 20 AS col1
----
-1478

onlyif mysql # aggregate syntax: 
query II rowsort label-3080
SELECT ALL 61 + - + 55, 34 - - ( + + COUNT( * ) ) AS col1
----
6
35

skipif mysql # not compatible
query II rowsort label-3080
SELECT ALL 61 + - + 55, 34 - - ( + + COUNT ( * ) ) AS col1
----
6
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3081
SELECT ALL - - 67 + + COALESCE ( + ( + 76 ), + 89 + - 71 + CAST( NULL AS SIGNED ) + - - 11 * 52 ) - + 0 + + 94 * - ( 58 ) AS col2
----
-5309

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL - - 67 + + COALESCE ( + ( + 76 ), + 89 + - 71 + CAST ( NULL AS INTEGER ) + - - 11 * 52 ) - + 0 + + 94 * - ( 58 ) AS col2
----
-5309

query I rowsort
SELECT ALL NULLIF ( - + 43, - 38 * - 33 ) * + - 91
----
3913

query I rowsort
SELECT ALL 0 + - 88 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT COUNT( * ) * - SUM( 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3084
SELECT COUNT ( * ) * - SUM ( 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT COUNT( + 68 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3085
SELECT COUNT ( + 68 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT ALL MIN( ALL + 88 ) * 2 + + - 71 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL MIN ( ALL + 88 ) * 2 + + - 71 AS col1
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-3087
SELECT CASE + 83 WHEN - COUNT( * ) THEN - 22 * + + 1 WHEN - + 34 THEN NULL ELSE NULL END * + + 41 * + COUNT( * ) AS col0, + NULLIF ( - + 0, 95 ) * + - 72 * + 67 * + 39
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3087
SELECT CASE + 83 WHEN - COUNT ( * ) THEN - 22 * + + 1 WHEN - + 34 THEN NULL ELSE NULL END * + + 41 * + COUNT ( * ) AS col0, + NULLIF ( - + 0, 95 ) * + - 72 * + 67 * + 39
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3088
SELECT CAST( NULL AS DECIMAL ) + + COUNT( * ) + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT CAST ( NULL AS REAL ) + + COUNT ( * ) + 50 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT 25 + COUNT( DISTINCT + 21 ) col1
----
26

skipif mysql # not compatible
query I rowsort label-3090
SELECT 25 + COUNT ( DISTINCT + 21 ) col1
----
26

query I rowsort
SELECT ALL 70 - - 26 + + - 75 col2
----
21

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

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

query II rowsort
SELECT DISTINCT - 66 AS col0, - ( 10 ) AS col0
----
-66
-10

query I rowsort
SELECT + 52 * - - 39
----
2028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3095
SELECT DISTINCT 75 * + MIN( ALL - 18 ) AS col1, - CAST( NULL AS SIGNED ) + + 5 AS col1
----
-1350
NULL

skipif mysql # not compatible
query II rowsort label-3095
SELECT DISTINCT 75 * + MIN ( ALL - 18 ) AS col1, - CAST ( NULL AS INTEGER ) + + 5 AS col1
----
-1350
NULL

query I rowsort
SELECT DISTINCT - ( + + 76 ) - - 94 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT - NULLIF ( + 30, COUNT( * ) * + NULLIF ( 19, 15 * - 67 + 57 * - 45 ) - + + 17 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3097
SELECT - NULLIF ( + 30, COUNT ( * ) * + NULLIF ( 19, 15 * - 67 + 57 * - 45 ) - + + 17 ) AS col1
----
-30

query I rowsort
SELECT - 22 * + - 0 AS col1
----
0

query I rowsort
SELECT ALL 65 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT + 68 + - CASE + 36 WHEN + MAX( 66 ) + + 79 THEN - 80 END * + 39 + ( - COUNT( * ) ) + + 38 + 59 * + + 92 * - COUNT( * ) / + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT + 68 + - CASE + 36 WHEN + MAX ( 66 ) + + 79 THEN - 80 END * + 39 + ( - COUNT ( * ) ) + + 38 + 59 * + + 92 * - COUNT ( * ) / + 70 AS col2
----
NULL

query I rowsort
SELECT ALL - ( - + 69 ) * + + 95 AS col2
----
6555

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT + 86 * - 60 * + 10 * COUNT( * )
----
-51600

skipif mysql # not compatible
query I rowsort label-3102
SELECT + 86 * - 60 * + 10 * COUNT ( * )
----
-51600

query I rowsort
SELECT ALL - 40 AS col1
----
-40

query I rowsort
SELECT DISTINCT - + CASE 21 WHEN - + 34 THEN NULL ELSE + 86 * + 80 END * + 25 * + + 77 AS col0
----
-13244000

query I rowsort
SELECT + + ( + NULLIF ( + 89, + + 79 - + 25 * + 30 + 90 ) ) + - 83
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT - COUNT( * ) * - 80 + + NULLIF ( - ( 14 ), - COALESCE ( + + COUNT( * ), - - 16 * 14 + 72 + + 97 + - + ( - 47 ), - 21 ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3106
SELECT - COUNT ( * ) * - 80 + + NULLIF ( - ( 14 ), - COALESCE ( + + COUNT ( * ), - - 16 * 14 + 72 + + 97 + - + ( - 47 ), - 21 ) ) AS col2
----
66

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

query I rowsort
SELECT - 3 - + + 21 + - 79 * 81 * - 8 * 80
----
4095336

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT ALL - 64 DIV + 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - 64 / + 78 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3110
SELECT ALL + - CAST( + + COUNT( * ) AS SIGNED ) + - COUNT( * ) * - ( + + 24 )
----
23

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + - CAST ( + + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) * - ( + + 24 )
----
23

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

skipif mysql # not compatible
query I rowsort label-3111
SELECT - 65 * - - 56 + - COUNT ( * ) * - 65 - + - 58 AS col2
----
-3517

query I rowsort
SELECT - - 14 + + 91 AS col1
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-3113
SELECT + ( - ( - 26 ) ) AS col1, + ( SUM( - 28 ) )
----
26
-28

skipif mysql # not compatible
query II rowsort label-3113
SELECT + ( - ( - 26 ) ) AS col1, + ( SUM ( - 28 ) )
----
26
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3114
SELECT + 65 * - + 55 - - 19 * + + 94 + - 8 + 32 * COUNT( * ) * - + 81 + - ( + - CAST( + 55 AS SIGNED ) ) col1, CASE - 76 WHEN - 19 THEN - 12 WHEN + SUM( + 7 ) THEN NULL END * 28 - - 5 AS col1
----
-4334
NULL

skipif mysql # not compatible
query II rowsort label-3114
SELECT + 65 * - + 55 - - 19 * + + 94 + - 8 + 32 * COUNT ( * ) * - + 81 + - ( + - CAST ( + 55 AS INTEGER ) ) col1, CASE - 76 WHEN - 19 THEN - 12 WHEN + SUM ( + 7 ) THEN NULL END * 28 - - 5 AS col1
----
-4334
NULL

query I rowsort
SELECT ALL + - 23
----
-23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3117
SELECT + 62 * 36 DIV - COUNT( * )
----
-2232

skipif mysql # not compatible
query I rowsort label-3117
SELECT + 62 * 36 / - COUNT ( * )
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL - 46 * + COUNT( ALL 91 ) + 85 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL - 46 * + COUNT ( ALL 91 ) + 85 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL 44 * 89 + - - 59 - - 86 + + - 95 + - 61 * ( - - COUNT( * ) )
----
3905

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL 44 * 89 + - - 59 - - 86 + + - 95 + - 61 * ( - - COUNT ( * ) )
----
3905

query I rowsort
SELECT DISTINCT + 29 AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3121
SELECT ALL + + 72 AS col1, + 75 + - + ( - CAST( NULL AS SIGNED ) ) AS col1, - 52
----
72
NULL
-52

skipif mysql # not compatible
query III rowsort label-3121
SELECT ALL + + 72 AS col1, + 75 + - + ( - CAST ( NULL AS INTEGER ) ) AS col1, - 52
----
72
NULL
-52

query II rowsort
SELECT DISTINCT + 19 AS col2, 43
----
19
43

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

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

query I rowsort
SELECT + 88 * - NULLIF ( + 58, 82 ) * 6 AS col0
----
-30624

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT + COUNT( 63 )
----
1

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT + COUNT ( 63 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT - CAST( + 9 AS SIGNED ) + + 34 * 37 * - CASE 69 WHEN - 63 THEN - 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT - CAST ( + 9 AS INTEGER ) + + 34 * 37 * - CASE 69 WHEN - 63 THEN - 73 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT CASE - + 27 WHEN + 62 THEN NULL WHEN + 0 THEN + COUNT( * ) * ( ( + + 47 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT CASE - + 27 WHEN + 62 THEN NULL WHEN + 0 THEN + COUNT ( * ) * ( ( + + 47 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3128
SELECT MAX( DISTINCT - 29 ) * 64 / 26 + COUNT( * ) * MIN( + + 93 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT MAX ( DISTINCT - 29 ) * 64 / 26 + COUNT ( * ) * MIN ( + + 93 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3129
SELECT ALL COUNT( * ) DIV + - 99 AS col0, + 18 AS col2
----
0
18

skipif mysql # not compatible
query II rowsort label-3129
SELECT ALL COUNT ( * ) / + - 99 AS col0, + 18 AS col2
----
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT - 69 * + 28 * + 97 + - ( - - COUNT( + 9 ) ) AS col2
----
-187405

skipif mysql # not compatible
query I rowsort label-3130
SELECT - 69 * + 28 * + 97 + - ( - - COUNT ( + 9 ) ) AS col2
----
-187405

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT ALL + COALESCE ( - 59, + 14 ) DIV + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL + COALESCE ( - 59, + 14 ) / + 75 AS col2
----
0

query I rowsort
SELECT ALL 75 * 14
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT DISTINCT COALESCE ( + 87, 49, 60, + 62 ) * + COUNT( ALL + 21 ) * + - 73
----
-6351

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT COALESCE ( + 87, 49, 60, + 62 ) * + COUNT ( ALL + 21 ) * + - 73
----
-6351

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT + 69 + COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3134
SELECT + 69 + COUNT ( * ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT + COUNT( + - 59 ) + ( + 22 )
----
23

skipif mysql # not compatible
query I rowsort label-3135
SELECT + COUNT ( + - 59 ) + ( + 22 )
----
23

query I rowsort
SELECT + 51 + + - 75
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3137
SELECT + 62 * + - 6, + COUNT( * ) col0
----
-372
1

skipif mysql # not compatible
query II rowsort label-3137
SELECT + 62 * + - 6, + COUNT ( * ) col0
----
-372
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT DISTINCT ( - COUNT( * ) ) * + 2 + - 48 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT ( - COUNT ( * ) ) * + 2 + - 48 AS col0
----
-50

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

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

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

query I rowsort
SELECT ALL NULLIF ( - - 86, 72 * - COALESCE ( - AVG ( DISTINCT 62 ), 86 ) )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3142
SELECT + SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) * - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT + SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * - 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT DISTINCT 53 + - 36 * - - SUM( - 73 ) * 22
----
57869

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT 53 + - 36 * - - SUM ( - 73 ) * 22
----
57869

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT DISTINCT - COUNT( * ) + + + 69
----
68

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT - COUNT ( * ) + + + 69
----
68

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3147
SELECT DISTINCT + SUM( CAST( - - 51 AS SIGNED ) ) + + - 79 + 68 * + + 15 AS col0
----
992

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT + SUM ( CAST ( - - 51 AS INTEGER ) ) + + - 79 + 68 * + + 15 AS col0
----
992

query I rowsort
SELECT + 63 + - 40 AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3149
SELECT + 67 * - ( + COUNT( DISTINCT - 65 ) ), 7 - - - COUNT( * ) + - 41 - + 16 AS col0
----
-67
-51

skipif mysql # not compatible
query II rowsort label-3149
SELECT + 67 * - ( + COUNT ( DISTINCT - 65 ) ), 7 - - - COUNT ( * ) + - 41 - + 16 AS col0
----
-67
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-3150
SELECT - 37 + 40 col0, ( - 77 ) DIV + ( 65 ) + + NULLIF ( + ( + 50 ), + ( + + 79 ) ) - 10 DIV + 67 - 55 + 74 * 7 AS col1
----
3
512

skipif mysql # not compatible
query II rowsort label-3150
SELECT - 37 + 40 col0, ( - 77 ) / + ( 65 ) + + NULLIF ( + ( + 50 ), + ( + + 79 ) ) - 10 / + 67 - 55 + 74 * 7 AS col1
----
3
512

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3151
SELECT - CASE - 16 WHEN - 60 THEN 59 * - 13 * - - 77 WHEN + - 56 THEN NULL END AS col0, CAST( NULL AS SIGNED ) + 7 * 61
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3151
SELECT - CASE - 16 WHEN - 60 THEN 59 * - 13 * - - 77 WHEN + - 56 THEN NULL END AS col0, CAST ( NULL AS INTEGER ) + 7 * 61
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3152
SELECT ALL + - 92 + - 11 DIV ( COUNT( * ) ) + - 74
----
-177

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL + - 92 + - 11 / ( COUNT ( * ) ) + - 74
----
-177

query I rowsort
SELECT ALL - 82 + 21 col0
----
-61

query I rowsort
SELECT - 19 col0
----
-19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT - + 60 + - + 80 + - - ( - 66 ) + - ( COALESCE ( 45, + 11, COALESCE ( + - COUNT( * ), 61 ) ) ) * - + 56 * - - COUNT( ALL + 73 ) * 47
----
118234

skipif mysql # not compatible
query I rowsort label-3156
SELECT - + 60 + - + 80 + - - ( - 66 ) + - ( COALESCE ( 45, + 11, COALESCE ( + - COUNT ( * ), 61 ) ) ) * - + 56 * - - COUNT ( ALL + 73 ) * 47
----
118234

query I rowsort
SELECT ALL + ( - + 11 ) * - + 8
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT ALL 82 - + - NULLIF ( - 7, 31 * - 71 ) + 36 DIV 54
----
75

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL 82 - + - NULLIF ( - 7, 31 * - 71 ) + 36 / 54
----
75

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

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

query I rowsort
SELECT - 26 + - 26 col2
----
-52

query I rowsort
SELECT + 70 * + 24 * 70 AS col1
----
117600

query I rowsort
SELECT - 40 * - 21
----
840

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT + 30 col1, COUNT( * ) * - 45
----
30
-45

skipif mysql # not compatible
query II rowsort label-3163
SELECT + 30 col1, COUNT ( * ) * - 45
----
30
-45

query I rowsort
SELECT 59 * + 74 + 98 + - 22 - + ( + - 61 ) AS col0
----
4503

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT + MAX( + + 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3165
SELECT + MAX ( + + 69 ) AS col2
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT ALL - CAST( NULLIF ( - COUNT( * ), 73 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - CAST ( NULLIF ( - COUNT ( * ), 73 ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3168
SELECT 18 AS col0, - COALESCE ( COUNT( * ), 66 + + 48 + + 16 + 97 * 25 * - + 98 + - COUNT( - - 90 ) * - 99 + - CAST( NULL AS SIGNED ) * + + 42 ) col0
----
18
-1

skipif mysql # not compatible
query II rowsort label-3168
SELECT 18 AS col0, - COALESCE ( COUNT ( * ), 66 + + 48 + + 16 + 97 * 25 * - + 98 + - COUNT ( - - 90 ) * - 99 + - CAST ( NULL AS INTEGER ) * + + 42 ) col0
----
18
-1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3170
SELECT ALL - 98 col2, COUNT( * )
----
-98
1

skipif mysql # not compatible
query II rowsort label-3170
SELECT ALL - 98 col2, COUNT ( * )
----
-98
1

query I rowsort
SELECT 34 * - COALESCE ( - 26, NULLIF ( + + 2, ( + 93 ) ) - 47, 6 * - 25 + - 88 + + 1 + + - 50 * 53 ) AS col1
----
884

query I rowsort
SELECT ALL + ( 30 ) * - 18 * - 15
----
8100

query II rowsort
SELECT ALL - 5 AS col0, 61
----
-5
61

query I rowsort
SELECT ALL - 85 AS col0
----
-85

query I rowsort
SELECT DISTINCT 74 + - + 83 AS col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT ALL 33 + + + ( - 1 ) DIV - 13
----
33

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL 33 + + + ( - 1 ) / - 13
----
33

query I rowsort
SELECT 39 - - + 71
----
110

query I rowsort
SELECT ALL + 70 + + 88
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT COUNT( * ) * - MAX( ALL 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-3179
SELECT COUNT ( * ) * - MAX ( ALL 92 )
----
-92

query I rowsort
SELECT ALL 98 * - 83 AS col1
----
-8134

query I rowsort
SELECT ALL - 38 + + 76
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT ALL - 27 + - + 52 + - - 21 + + - 55 - - 36 DIV - 22 + + - 42 AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - 27 + - + 52 + - - 21 + + - 55 - - 36 / - 22 + + - 42 AS col2
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-3183
SELECT - 85 DIV + - ( + + 21 ) + + 8 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3183
SELECT - 85 / + - ( + + 21 ) + + 8 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3184
SELECT ALL MIN( DISTINCT 62 ) + - + COUNT( * ) col0, 30 + 48
----
61
78

skipif mysql # not compatible
query II rowsort label-3184
SELECT ALL MIN ( DISTINCT 62 ) + - + COUNT ( * ) col0, 30 + 48
----
61
78

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

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

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

query I rowsort
SELECT 38 + - 60 + - 37 AS col0
----
-59

query I rowsort
SELECT + CASE - 5 WHEN 13 * - 98 * 83 THEN + 93 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL + 61 * - + ( 25 ) * - 45 + 25 + + - COUNT( + 59 ) col1
----
68649

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + 61 * - + ( 25 ) * - 45 + 25 + + - COUNT ( + 59 ) col1
----
68649

query I rowsort
SELECT - NULLIF ( + + 52, 77 * + ( 60 ) + - + 28 + - 28 * - - 29 + + 34 * 36 ) AS col0
----
-52

query I rowsort
SELECT ALL + 12 + - 87 AS col1
----
-75

query I rowsort
SELECT 7 - - - 23 col2
----
-16

query I rowsort
SELECT DISTINCT - NULLIF ( + 51, - + 97 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT + COUNT( * ) + 31
----
32

skipif mysql # not compatible
query I rowsort label-3194
SELECT + COUNT ( * ) + 31
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3195
SELECT ALL CAST( + 35 AS SIGNED ) - - 75 + + MIN( - 31 ) + 6
----
85

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL CAST ( + 35 AS INTEGER ) - - 75 + + MIN ( - 31 ) + 6
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT + COUNT( * ) * - 41 * - 98
----
4018

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT + COUNT ( * ) * - 41 * - 98
----
4018

query I rowsort
SELECT ALL - 85 * + - 86 - - NULLIF ( - 17, 36 ) + 36 AS col2
----
7329

query I rowsort
SELECT + 77 * + CASE + 12 WHEN + + 2 THEN NULL ELSE + NULLIF ( + - 0, - 34 ) END
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3201
SELECT ALL - 89 AS col0, + 87 + NULLIF ( + ( + COUNT( * ) ), 22 )
----
-89
88

skipif mysql # not compatible
query II rowsort label-3201
SELECT ALL - 89 AS col0, + 87 + NULLIF ( + ( + COUNT ( * ) ), 22 )
----
-89
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL - SUM( ALL 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL - SUM ( ALL 89 )
----
-89

query I rowsort
SELECT 34 * - - 60 AS col1
----
2040

query I rowsort
SELECT + 79 * + 68 - - - 10 AS col0
----
5362

query I rowsort
SELECT 1 * + 96 + 13 + ( + - 41 )
----
68

query I rowsort
SELECT ALL - COALESCE ( - + 91, 36, + 59 ) + 75 AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT - 79 * - 72 + ( - - MIN( + 63 ) ) AS col0
----
5751

skipif mysql # not compatible
query I rowsort label-3208
SELECT - 79 * - 72 + ( - - MIN ( + 63 ) ) AS col0
----
5751

query I rowsort
SELECT 69 * - 19 AS col2
----
-1311

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL 4 + + 76 * - CASE + + 5 WHEN 5 THEN 92 ELSE NULL END * 89 + - + 19 + - COUNT( * )
----
-622304

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL 4 + + 76 * - CASE + + 5 WHEN 5 THEN 92 ELSE NULL END * 89 + - + 19 + - COUNT ( * )
----
-622304

query II rowsort
SELECT ALL - 20, - 95 AS col0
----
-20
-95

query I rowsort
SELECT ALL + 38 + + 87 AS col1
----
125

query I rowsort
SELECT 59 + 16
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3215
SELECT DISTINCT - 97 AS col0, - 60 * + CASE + + CASE COUNT( * ) WHEN 8 THEN - 53 ELSE + - COUNT( * ) * 21 * + - 84 * + 22 END WHEN - + ( ( 79 ) ) / + COUNT( * ) THEN COUNT( * ) END AS col2
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-3215
SELECT DISTINCT - 97 AS col0, - 60 * + CASE + + CASE COUNT ( * ) WHEN 8 THEN - 53 ELSE + - COUNT ( * ) * 21 * + - 84 * + 22 END WHEN - + ( ( 79 ) ) / + COUNT ( * ) THEN COUNT ( * ) END AS col2
----
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT 74 + COUNT( * ) * - + 9
----
65

skipif mysql # not compatible
query I rowsort label-3216
SELECT 74 + COUNT ( * ) * - + 9
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT + - 76 + + - 78 + - + 43 + + - MIN( + - CASE - ( - - 96 ) WHEN + + 37 THEN + - 78 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT + - 76 + + - 78 + - + 43 + + - MIN ( + - CASE - ( - - 96 ) WHEN + + 37 THEN + - 78 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT ALL + + 51 * ( + + COUNT( * ) ) - - 27 AS col1, - 80
----
78
-80

skipif mysql # not compatible
query II rowsort label-3218
SELECT ALL + + 51 * ( + + COUNT ( * ) ) - - 27 AS col1, - 80
----
78
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3219
SELECT - 47 AS col1, 41 * - COUNT( * ) + - 0 * - + 5 + - 71 AS col2
----
-47
-112

skipif mysql # not compatible
query II rowsort label-3219
SELECT - 47 AS col1, 41 * - COUNT ( * ) + - 0 * - + 5 + - 71 AS col2
----
-47
-112

query I rowsort
SELECT 43 + - NULLIF ( + CASE - 24 WHEN 1 THEN AVG ( DISTINCT 25 ) ELSE NULL END, + 45 ) AS col2
----
NULL

query I rowsort
SELECT ALL 89 - - 91
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT - 58 * - CASE - - 69 WHEN CASE WHEN NULL IS NULL THEN CAST( + 42 AS SIGNED ) END THEN NULL WHEN 62 - - CAST( NULL AS SIGNED ) THEN 24 END + 68 * 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT - 58 * - CASE - - 69 WHEN CASE WHEN NULL IS NULL THEN CAST ( + 42 AS INTEGER ) END THEN NULL WHEN 62 - - CAST ( NULL AS INTEGER ) THEN 24 END + 68 * 46 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3223
SELECT ALL 98 DIV + ( - ( + + 28 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL 98 / + ( - ( + + 28 ) )
----
-3

query I rowsort
SELECT DISTINCT + - 8 - 20 + - 29 AS col0
----
-57

query I rowsort
SELECT - NULLIF ( - 43, + 35 ) col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3226
SELECT 22 + + 91 DIV - 98
----
22

skipif mysql # not compatible
query I rowsort label-3226
SELECT 22 + + 91 / - 98
----
22

query I rowsort
SELECT 56 * 96 AS col2
----
5376

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3229
SELECT NULLIF ( - + 77, - - MAX( - 15 ) * + 12 ) DIV 22
----
-3

skipif mysql # not compatible
query I rowsort label-3229
SELECT NULLIF ( - + 77, - - MAX ( - 15 ) * + 12 ) / 22
----
-3

query I rowsort
SELECT ALL - 39 * - + 0 * - 66 * 31 * + ( + 30 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT + MAX( DISTINCT + 19 ) * 72 col2
----
1368

skipif mysql # not compatible
query I rowsort label-3231
SELECT + MAX ( DISTINCT + 19 ) * 72 col2
----
1368

query I rowsort
SELECT DISTINCT 77 col2
----
77

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

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

query I rowsort
SELECT + 5 + - - CASE - 50 WHEN 5 * - + 63 + - + 50 * 61 THEN NULL WHEN - 30 THEN + 94 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT CASE + 69 WHEN - 85 / 36 THEN - 22 * - - 74 + + - 74 * - 32 * - 90 * - COUNT( 51 ) - + 53 + + ( - + 35 ) * + ( 41 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT CASE + 69 WHEN - 85 / 36 THEN - 22 * - - 74 + + - 74 * - 32 * - 90 * - COUNT ( 51 ) - + 53 + + ( - + 35 ) * + ( 41 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT CASE COUNT( * ) WHEN - CASE 49 WHEN + - 2 THEN - 42 WHEN 2 THEN NULL ELSE NULL END * + + COUNT( * ) * - 75 THEN NULL ELSE - + 42 END AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3236
SELECT CASE COUNT ( * ) WHEN - CASE 49 WHEN + - 2 THEN - 42 WHEN 2 THEN NULL ELSE NULL END * + + COUNT ( * ) * - 75 THEN NULL ELSE - + 42 END AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT DISTINCT + COUNT( + + 10 ) * 96 + + MAX( - 60 ) * 55 AS col0
----
-3204

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT + COUNT ( + + 10 ) * 96 + + MAX ( - 60 ) * 55 AS col0
----
-3204

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL + 68 * 24 + - COUNT( * )
----
1631

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL + 68 * 24 + - COUNT ( * )
----
1631

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT 70 / 76 * + CASE - 21 WHEN 44 THEN - CAST( - 53 AS SIGNED ) END + + + ( ( 96 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT 70 / 76 * + CASE - 21 WHEN 44 THEN - CAST ( - 53 AS INTEGER ) END + + + ( ( 96 ) ) col2
----
NULL

query I rowsort
SELECT + 39 * - + 62 AS col0
----
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT + CASE - 53 WHEN - 59 THEN - 50 + - NULLIF ( + - 8, - 23 * + COUNT( * ) + - 59 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT + CASE - 53 WHEN - 59 THEN - 50 + - NULLIF ( + - 8, - 23 * + COUNT ( * ) + - 59 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3242
SELECT ALL 37 * - 29 + - - 2 * + SUM( ALL + 88 ) + + 33 + 37 * 20 * CAST( + 76 AS SIGNED ) + - - 98 + - 25 + MIN( DISTINCT + + 25 ) * + 86 * COUNT( * ) - - 60
----
57659

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL 37 * - 29 + - - 2 * + SUM ( ALL + 88 ) + + 33 + 37 * 20 * CAST ( + 76 AS INTEGER ) + - - 98 + - 25 + MIN ( DISTINCT + + 25 ) * + 86 * COUNT ( * ) - - 60
----
57659

query I rowsort
SELECT ALL 80 * + 83 + - 39
----
6601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3244
SELECT COALESCE ( 35, CASE + CAST( NULL AS SIGNED ) WHEN 77 THEN - - ( 12 ) + - CAST( NULL AS SIGNED ) ELSE - + 34 END, - 45 - ( - 10 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3244
SELECT COALESCE ( 35, CASE + CAST ( NULL AS INTEGER ) WHEN 77 THEN - - ( 12 ) + - CAST ( NULL AS INTEGER ) ELSE - + 34 END, - 45 - ( - 10 ) ) AS col1
----
35

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

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

query I rowsort
SELECT + 73 col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT + + 30 DIV + 5 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3247
SELECT + + 30 / + 5 AS col2
----
6

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3249
SELECT ALL 98 * 49 + - 41 - 91 DIV + 96 AS col1, 10
----
4761
10

skipif mysql # not compatible
query II rowsort label-3249
SELECT ALL 98 * 49 + - 41 - 91 / + 96 AS col1, 10
----
4761
10

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

query I rowsort
SELECT ALL + + 82 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT ALL + 95 * 9 - - - COUNT( * ) - - COUNT( ALL 40 )
----
855

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + 95 * 9 - - - COUNT ( * ) - - COUNT ( ALL 40 )
----
855

query I rowsort
SELECT - 56 * - ( + 53 ) AS col2
----
2968

query II rowsort
SELECT DISTINCT - 51 * - 36 AS col2, + 61 * + 10
----
1836
610

query I rowsort
SELECT + + 29 + + + 36 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT - + ( + 55 ) * COUNT( + - ( 73 ) ) * 40 + + COALESCE ( MAX( + 79 ), 39 )
----
-2121

skipif mysql # not compatible
query I rowsort label-3256
SELECT - + ( + 55 ) * COUNT ( + - ( 73 ) ) * 40 + + COALESCE ( MAX ( + 79 ), 39 )
----
-2121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3257
SELECT - NULLIF ( - 31, + 54 ) * + - NULLIF ( - + SUM( - CAST( 8 AS SIGNED ) ), - + COUNT( * ) )
----
-248

skipif mysql # not compatible
query I rowsort label-3257
SELECT - NULLIF ( - 31, + 54 ) * + - NULLIF ( - + SUM ( - CAST ( 8 AS INTEGER ) ), - + COUNT ( * ) )
----
-248

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

skipif mysql # not compatible
query I rowsort label-3258
SELECT - 6 - - ( + + COUNT ( * ) ) AS col0
----
-5

query I rowsort
SELECT - 15 + - + 80 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-3260
SELECT + 28 * - + 30, - COUNT( * ) - + 76 AS col2
----
-840
-77

skipif mysql # not compatible
query II rowsort label-3260
SELECT + 28 * - + 30, - COUNT ( * ) - + 76 AS col2
----
-840
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT DISTINCT - + 81 DIV - 75
----
1

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT - + 81 / - 75
----
1

query I rowsort
SELECT - 88 + - 65
----
-153

query I rowsort
SELECT ALL ( 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT - 64 + 15 - 4 + - - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3264
SELECT - 64 + 15 - 4 + - - COUNT ( * ) AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3265
SELECT ALL 81 col2, COALESCE ( + - COUNT( * ), - 21 DIV + 35 * - 57 * + COALESCE ( + + 9, + COUNT( * ) ) ) + - - 15 AS col1
----
81
14

skipif mysql # not compatible
query II rowsort label-3265
SELECT ALL 81 col2, COALESCE ( + - COUNT ( * ), - 21 / + 35 * - 57 * + COALESCE ( + + 9, + COUNT ( * ) ) ) + - - 15 AS col1
----
81
14

query I rowsort
SELECT + 82 * 94
----
7708

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT - 94 - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-3267
SELECT - 94 - COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT - NULLIF ( 73, + CASE + 97 WHEN - 27 THEN NULL ELSE - + 75 END ) AS col1, + COUNT( * ) * - 25
----
-73
-25

skipif mysql # not compatible
query II rowsort label-3268
SELECT - NULLIF ( 73, + CASE + 97 WHEN - 27 THEN NULL ELSE - + 75 END ) AS col1, + COUNT ( * ) * - 25
----
-73
-25

query I rowsort
SELECT ALL - NULLIF ( + - 83, ( + 50 ) ) + - 18 AS col1
----
65

query I rowsort
SELECT + 76 * - 23
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT DISTINCT - ( + 73 ) + - - ( + 68 ) + NULLIF ( + 37, 59 + - 80 ) - - 78 - - - COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT - ( + 73 ) + - - ( + 68 ) + NULLIF ( + 37, 59 + - 80 ) - - 78 - - - COUNT ( * )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT + CASE 77 WHEN - 28 * + - 10 / + ( + CASE WHEN NOT COUNT( 3 ) IS NOT NULL THEN + ( - COUNT( * ) ) - + + 85 ELSE - 95 END ) THEN + 36 WHEN - 66 - - 7 THEN NULL END * - + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT + CASE 77 WHEN - 28 * + - 10 / + ( + CASE WHEN NOT COUNT ( 3 ) IS NOT NULL THEN + ( - COUNT ( * ) ) - + + 85 ELSE - 95 END ) THEN + 36 WHEN - 66 - - 7 THEN NULL END * - + 32 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 75 * + 97
----
7275

query I rowsort
SELECT DISTINCT + 11 col0
----
11

query I rowsort
SELECT + 16 * - 70
----
-1120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3276
SELECT ALL + CASE - + 21 WHEN + ( + SUM( ALL - + CAST( NULL AS DECIMAL ) ) ) THEN NULL ELSE + 94 END AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + CASE - + 21 WHEN + ( + SUM ( ALL - + CAST ( NULL AS REAL ) ) ) THEN NULL ELSE + 94 END AS col2
----
94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT ALL + 33 AS col0, MAX( DISTINCT - 69 ) AS col0
----
33
-69

skipif mysql # not compatible
query II rowsort label-3278
SELECT ALL + 33 AS col0, MAX ( DISTINCT - 69 ) AS col0
----
33
-69

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3280
SELECT COUNT( * ) DIV + 69 + + 72 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3280
SELECT COUNT ( * ) / + 69 + + 72 AS col0
----
72

query I rowsort
SELECT ( - 58 ) * - 14 - - 18 AS col2
----
830

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT + MAX( - - 63 ) + - NULLIF ( + 29, - 17 ) - + 4
----
30

skipif mysql # not compatible
query I rowsort label-3283
SELECT + MAX ( - - 63 ) + - NULLIF ( + 29, - 17 ) - + 4
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT + 32 * 84 - - COUNT( * ) col0
----
2689

skipif mysql # not compatible
query I rowsort label-3284
SELECT + 32 * 84 - - COUNT ( * ) col0
----
2689

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + 75 * - 9 + - - ( + 50 ) + + 22 * - - COUNT( * ) * + COALESCE ( - 33, + + 52 ) + 10 AS col1
----
-1341

skipif mysql # not compatible
query I rowsort label-3285
SELECT + 75 * - 9 + - - ( + 50 ) + + 22 * - - COUNT ( * ) * + COALESCE ( - 33, + + 52 ) + 10 AS col1
----
-1341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3286
SELECT ALL - NULLIF ( - SUM( ALL + 89 ), - 54 + - MAX( DISTINCT - ( - - 50 ) ) ) DIV 72 * 27 - 11 col0
----
16

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL - NULLIF ( - SUM ( ALL + 89 ), - 54 + - MAX ( DISTINCT - ( - - 50 ) ) ) / 72 * 27 - 11 col0
----
16

query I rowsort
SELECT + + 68 * + 64 AS col1
----
4352

query I rowsort
SELECT DISTINCT - 57 * + 54 + + 64 + + - 96 col1
----
-3110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3289
SELECT DISTINCT MIN( - 55 ) DIV SUM( DISTINCT + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT MIN ( - 55 ) / SUM ( DISTINCT + 84 )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3292
SELECT ALL - 18 * + 10 - - ( - 28 ) * - - SUM( DISTINCT + 59 ) * - - CASE + 0 WHEN + NULLIF ( - - CAST( NULL AS DECIMAL ), - 25 * + CASE WHEN COALESCE ( COALESCE ( + + 78, - + ( - - 88 ) + 30, 39 ), - 95 + + 56, - 11 - + 82 ) <> + 81 + 67 * - 97 THEN - 75 + - 31 WHEN - 97 * 11 BETWEEN COUNT( * ) + COUNT( * ) AND ( + COUNT( * ) + + 59 ) THEN 10 ELSE 41 + + 27 * + 1 END ) THEN 56 END * COUNT( ALL ( 89 ) ) + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - 18 * + 10 - - ( - 28 ) * - - SUM ( DISTINCT + 59 ) * - - CASE + 0 WHEN + NULLIF ( - - CAST ( NULL AS REAL ), - 25 * + CASE WHEN COALESCE ( COALESCE ( + + 78, - + ( - - 88 ) + 30, 39 ), - 95 + + 56, - 11 - + 82 ) <> + 81 + 67 * - 97 THEN - 75 + - 31 WHEN - 97 * 11 BETWEEN COUNT ( * ) + COUNT ( * ) AND ( + COUNT ( * ) + + 59 ) THEN 10 ELSE 41 + + 27 * + 1 END ) THEN 56 END * COUNT ( ALL ( 89 ) ) + 83 AS col1
----
NULL

query II rowsort
SELECT ALL + 47 AS col1, + 23
----
47
23

query I rowsort
SELECT ALL + - 37 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3295
SELECT + - 93, - SUM( DISTINCT + 71 ) AS col2
----
-93
-71

skipif mysql # not compatible
query II rowsort label-3295
SELECT + - 93, - SUM ( DISTINCT + 71 ) AS col2
----
-93
-71

query I rowsort
SELECT DISTINCT + COALESCE ( + + 42, - - 64, 84 )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT 85 * - COALESCE ( - - 9, 24 DIV - 19 * + 4 * + ( 39 ) + + 0 - 80 )
----
-765

skipif mysql # not compatible
query I rowsort label-3297
SELECT 85 * - COALESCE ( - - 9, 24 / - 19 * + 4 * + ( 39 ) + + 0 - 80 )
----
-765

query I rowsort
SELECT - 4 + + 15 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT SUM( ALL 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3299
SELECT SUM ( ALL 69 ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3300
SELECT DISTINCT + - ( + + CASE + 25 WHEN - - 19 THEN - 20 / ( + - ( - 1 ) ) * + 64 + + SUM( ALL 91 ) + + - COUNT( * ) + + + 72 - + 73 * + + 31 / + - 36 * CASE + + 92 WHEN 44 THEN NULL WHEN 85 THEN 94 END END ) + COUNT( CAST( NULL AS DECIMAL ) ) * 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT + - ( + + CASE + 25 WHEN - - 19 THEN - 20 / ( + - ( - 1 ) ) * + 64 + + SUM ( ALL 91 ) + + - COUNT ( * ) + + + 72 - + 73 * + + 31 / + - 36 * CASE + + 92 WHEN 44 THEN NULL WHEN 85 THEN 94 END END ) + COUNT ( CAST ( NULL AS REAL ) ) * 91 col2
----
NULL

query I rowsort
SELECT ALL + 48 + - - 26
----
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT 54 * + + COUNT( * ) * - - 87
----
4698

skipif mysql # not compatible
query I rowsort label-3303
SELECT 54 * + + COUNT ( * ) * - - 87
----
4698

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

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL - CAST ( NULL AS INTEGER ) * 22
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3305
SELECT DISTINCT + 87 + - + ( COUNT( * ) ) + - 65 AS col2, 45 AS col2
----
21
45

skipif mysql # not compatible
query II rowsort label-3305
SELECT DISTINCT + 87 + - + ( COUNT ( * ) ) + - 65 AS col2, 45 AS col2
----
21
45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT CAST( NULL AS SIGNED ) + - ( + + NULLIF ( + 31, - 9 / 67 + 60 * + 26 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT CAST ( NULL AS INTEGER ) + - ( + + NULLIF ( + 31, - 9 / 67 + 60 * + 26 ) ) AS col2
----
NULL

query I rowsort
SELECT 17 * - 30
----
-510

query I rowsort
SELECT ALL + 69 + - - 13 col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3310
SELECT ALL - 6 DIV + ( + COUNT( * ) ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL - 6 / + ( + COUNT ( * ) ) col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3311
SELECT DISTINCT + 97 DIV - MAX( ALL + - 19 )
----
5

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT + 97 / - MAX ( ALL + - 19 )
----
5

query I rowsort
SELECT ALL 4 - - ( + + 20 ) AS col2
----
24

query I rowsort
SELECT ALL 63 * - + 53 * - 29
----
96831

onlyif mysql # DIV for integer division: 
query I rowsort label-3314
SELECT ALL + 7 DIV - 75 * 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + 7 / - 75 * 26 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3315
SELECT 39 / + CASE COUNT( * ) WHEN + - 61 + - 97 THEN NULL WHEN 87 THEN + 71 * - 13 - - - 48 + + CAST( NULL AS SIGNED ) + 97 END * 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT 39 / + CASE COUNT ( * ) WHEN + - 61 + - 97 THEN NULL WHEN 87 THEN + 71 * - 13 - - - 48 + + CAST ( NULL AS INTEGER ) + 97 END * 89 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT CASE + 54 WHEN - COUNT( * ) + - 31 THEN - - 51 END * + + CASE + MAX( + 49 ) WHEN - 71 THEN NULL ELSE 83 * + + COALESCE ( + 3, 21 ) END + + 4 * CASE - COUNT( * ) WHEN - + 38 THEN NULL ELSE - + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT CASE + 54 WHEN - COUNT ( * ) + - 31 THEN - - 51 END * + + CASE + MAX ( + 49 ) WHEN - 71 THEN NULL ELSE 83 * + + COALESCE ( + 3, 21 ) END + + 4 * CASE - COUNT ( * ) WHEN - + 38 THEN NULL ELSE - + 99 END
----
NULL

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

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

query I rowsort
SELECT 58 * - 50 AS col2
----
-2900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT 65 / - 20 / 12 * CASE + 90 WHEN + COUNT( - ( CAST( - + 14 AS SIGNED ) ) ) * + COUNT( * ) + + 91 + + SUM( + + 20 ) + + CASE - NULLIF ( - 63, 87 ) WHEN - COUNT( * ) THEN - 42 END THEN 85 WHEN - 7 THEN NULL WHEN COUNT( * ) * + 61 + 17 THEN 32 / 88 - + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT 65 / - 20 / 12 * CASE + 90 WHEN + COUNT ( - ( CAST ( - + 14 AS INTEGER ) ) ) * + COUNT ( * ) + + 91 + + SUM ( + + 20 ) + + CASE - NULLIF ( - 63, 87 ) WHEN - COUNT ( * ) THEN - 42 END THEN 85 WHEN - 7 THEN NULL WHEN COUNT ( * ) * + 61 + 17 THEN 32 / 88 - + 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT - - COALESCE ( + COUNT( * ), 65 * - + 94 )
----
1

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT - - COALESCE ( + COUNT ( * ), 65 * - + 94 )
----
1

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

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

query II rowsort
SELECT - ( 35 ) AS col1, - 54 AS col0
----
-35
-54

query I rowsort
SELECT ALL - ( + 52 ) * + 44 col2
----
-2288

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3325
SELECT DISTINCT - + NULLIF ( + COUNT( - 21 ), + CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT - + NULLIF ( + COUNT ( - 21 ), + CAST ( NULL AS INTEGER ) )
----
-1

query I rowsort
SELECT ALL - - 78 AS col2
----
78

query I rowsort
SELECT NULLIF ( - 0, + 58 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3328
SELECT CASE + ( - COUNT( * ) ) WHEN - 61 + - + 15 * 16 + + + ( + + 69 ) THEN 54 * 99 WHEN - CAST( NULL AS SIGNED ) THEN 48 ELSE - + 84 END AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3328
SELECT CASE + ( - COUNT ( * ) ) WHEN - 61 + - + 15 * 16 + + + ( + + 69 ) THEN 54 * 99 WHEN - CAST ( NULL AS INTEGER ) THEN 48 ELSE - + 84 END AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT 20 * - 58 - - - MAX( 64 ) - - + 65 + 76 * MIN( + 66 )
----
3857

skipif mysql # not compatible
query I rowsort label-3329
SELECT 20 * - 58 - - - MAX ( 64 ) - - + 65 + 76 * MIN ( + 66 )
----
3857

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT NULLIF ( - 74, + 89 ) * + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-3330
SELECT NULLIF ( - 74, + 89 ) * + COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT + ( MAX( DISTINCT + 44 ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3331
SELECT + ( MAX ( DISTINCT + 44 ) ) AS col1
----
44

query I rowsort
SELECT ALL - ( 66 ) + - 15 AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3333
SELECT ALL NULLIF ( + CAST( - 68 AS SIGNED ), - + 18 * - 94 ) DIV + COUNT( * ) col2
----
-68

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL NULLIF ( + CAST ( - 68 AS INTEGER ), - + 18 * - 94 ) / + COUNT ( * ) col2
----
-68

query I rowsort
SELECT DISTINCT - 8 * + + 31 + + 75 + 66 AS col2
----
-107

query I rowsort
SELECT DISTINCT + 49 + - 39 AS col2
----
10

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

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

query II rowsort
SELECT ALL 51 + - 35 AS col1, ( + 40 )
----
16
40

query I rowsort
SELECT 56 + + 63
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3339
SELECT NULLIF ( - 26, - 88 ) + + 99 DIV + - 22 + - + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3339
SELECT NULLIF ( - 26, - 88 ) + + 99 / + - 22 + - + COUNT ( * ) AS col0
----
-31

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT 62 * + COUNT( + 20 ) * + + 99 - + 16
----
6122

skipif mysql # not compatible
query I rowsort label-3342
SELECT 62 * + COUNT ( + 20 ) * + + 99 - + 16
----
6122

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3343
SELECT ALL + 83 + - COALESCE ( 20, + 62, + + 96 * CAST( NULL AS SIGNED ) ) - COALESCE ( 15, - 78 DIV ( + 7 ) * + 5 + 8 ) * - 19
----
348

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + 83 + - COALESCE ( 20, + 62, + + 96 * CAST ( NULL AS INTEGER ) ) - COALESCE ( 15, - 78 / ( + 7 ) * + 5 + 8 ) * - 19
----
348

query I rowsort
SELECT ALL - 11 * - 74 AS col1
----
814

onlyif mysql # aggregate syntax: 
query II rowsort label-3345
SELECT 5, - 3 / CASE - + 4 WHEN - 56 THEN ( + 72 ) - 92 + - + 96 / 19 * - 58 + 33 + 93 WHEN - 11 * - 70 * - COUNT( * ) THEN + ( - 61 ) * - COUNT( ALL 12 ) END col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-3345
SELECT 5, - 3 / CASE - + 4 WHEN - 56 THEN ( + 72 ) - 92 + - + 96 / 19 * - 58 + 33 + 93 WHEN - 11 * - 70 * - COUNT ( * ) THEN + ( - 61 ) * - COUNT ( ALL 12 ) END col0
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT 39 + + + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3346
SELECT 39 + + + COUNT ( * ) AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT 78 * ( 24 ) DIV 13
----
144

skipif mysql # not compatible
query I rowsort label-3347
SELECT 78 * ( 24 ) / 13
----
144

query I rowsort
SELECT 68 * + 73 AS col0
----
4964

query I rowsort
SELECT ALL - NULLIF ( + 86, + 56 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL + COUNT( * ) * ( COALESCE ( - COUNT( * ), + 89 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + COUNT ( * ) * ( COALESCE ( - COUNT ( * ), + 89 ) )
----
-1

query I rowsort
SELECT 97 * + 97 col0
----
9409

query II rowsort
SELECT ALL - - 92 AS col0, - 14 AS col0
----
92
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3353
SELECT 16 DIV + 26 + + 53 + ( ( 14 ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-3353
SELECT 16 / + 26 + + 53 + ( ( 14 ) ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3354
SELECT COUNT( * ) * + 55 - - MIN( DISTINCT + + 23 ) + + + 47 AS col0, + 10 + + - 69
----
125
-59

skipif mysql # not compatible
query II rowsort label-3354
SELECT COUNT ( * ) * + 55 - - MIN ( DISTINCT + + 23 ) + + + 47 AS col0, + 10 + + - 69
----
125
-59

query I rowsort
SELECT DISTINCT + NULLIF ( + 55, + - 82 / 45 )
----
55

query I rowsort
SELECT - + ( - 35 ) + - 57
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT - 8 DIV - + 12 - 58
----
-58

skipif mysql # not compatible
query I rowsort label-3357
SELECT - 8 / - + 12 - 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT ALL - 72 * 15 * - ( - + COUNT( * ) ) AS col0
----
-1080

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL - 72 * 15 * - ( - + COUNT ( * ) ) AS col0
----
-1080

query I rowsort
SELECT 67 * - 87 + + + ( 19 )
----
-5810

onlyif mysql # DIV for integer division: 
query II rowsort label-3360
SELECT - + 92 DIV ( - + 41 ) AS col2, 68 * + + 82
----
2
5576

skipif mysql # not compatible
query II rowsort label-3360
SELECT - + 92 / ( - + 41 ) AS col2, 68 * + + 82
----
2
5576

query I rowsort
SELECT 75 * + 39 + + 49 + - 36 AS col0
----
2938

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL + 51 * - COUNT( * ) + + + 67 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + 51 * - COUNT ( * ) + + + 67 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT - COUNT( * ) + - 87 + - 3
----
-91

skipif mysql # not compatible
query I rowsort label-3363
SELECT - COUNT ( * ) + - 87 + - 3
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3364
SELECT ALL + COALESCE ( + 85, + - CASE - 49 WHEN + + 57 * - - CASE CAST( - + ( COUNT( * ) ) AS SIGNED ) WHEN - ( - COALESCE ( 15, 8 ) ) THEN - - ( 61 ) * - 93 + - 74 END THEN ( + + 40 ) END, - 50 * - 17 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL + COALESCE ( + 85, + - CASE - 49 WHEN + + 57 * - - CASE CAST ( - + ( COUNT ( * ) ) AS INTEGER ) WHEN - ( - COALESCE ( 15, 8 ) ) THEN - - ( 61 ) * - 93 + - 74 END THEN ( + + 40 ) END, - 50 * - 17 ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3365
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 65 + - COALESCE ( + 85, CAST( 80 AS DECIMAL ) ) + - ( + - 1 ) + 35 * - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 65 + - COALESCE ( + 85, CAST ( 80 AS REAL ) ) + - ( + - 1 ) + 35 * - 46 AS col0
----
NULL

query I rowsort
SELECT ALL + 73 * - - 82 + + 78 * - - 27 * - 16 + + 84
----
-27626

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT MIN( - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-3367
SELECT MIN ( - 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT - + 40 * + SUM( - 3 ) * + - 76 AS col1
----
-9120

skipif mysql # not compatible
query I rowsort label-3368
SELECT - + 40 * + SUM ( - 3 ) * + - 76 AS col1
----
-9120

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT - - 36 * 2 + - 31 + - + ( 43 ) + + 22 + + - 43 * 51 + - 46 + 40 DIV + 12 + - + 80 + - 15
----
-2311

skipif mysql # not compatible
query I rowsort label-3370
SELECT - - 36 * 2 + - 31 + - + ( 43 ) + + 22 + + - 43 * 51 + - 46 + 40 / + 12 + - + 80 + - 15
----
-2311

query I rowsort
SELECT 60 * + 35 * + 9 * - + COALESCE ( + - 46, + 82 + + COALESCE ( + ( - 34 ), ( + 25 ) + - 17 ) ) + - 48 * - 75 AS col0
----
873000

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3372
SELECT DISTINCT ( + CAST( - 26 AS SIGNED ) ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT ( + CAST ( - 26 AS INTEGER ) ) / + 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT - MAX( + + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-3373
SELECT - MAX ( + + 16 )
----
-16

query I rowsort
SELECT + 23 * - 99
----
-2277

query I rowsort
SELECT ALL 35 * - 34 col0
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL 94 - + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL 94 - + - COUNT ( * )
----
95

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + 81 + NULLIF ( + 81, + 3 * - - 7 * + SUM( DISTINCT + - 85 ) - 10 ) AS col1
----
162

skipif mysql # not compatible
query I rowsort label-3379
SELECT + 81 + NULLIF ( + 81, + 3 * - - 7 * + SUM ( DISTINCT + - 85 ) - 10 ) AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT + COUNT( * ) - + SUM( ALL + + 3 ) + + 52 * - MAX( ALL 6 ) AS col2
----
-314

skipif mysql # not compatible
query I rowsort label-3380
SELECT + COUNT ( * ) - + SUM ( ALL + + 3 ) + + 52 * - MAX ( ALL 6 ) AS col2
----
-314

query I rowsort
SELECT + 57 + + + 38
----
95

query I rowsort
SELECT + 63 + + - 99 AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3383
SELECT + COALESCE ( - + ( + - ( - 35 ) ), - 91 * - COUNT( * ) * + COUNT( * ) - - COUNT( * ) + 49 * + 57 DIV - NULLIF ( - + 48, - 59 - + COUNT( * ) ), - - 63 ) * CASE 43 WHEN + 24 THEN 71 WHEN + + COUNT( * ) THEN + + CAST( - 14 AS SIGNED ) + - 72 * SUM( DISTINCT - 26 ) ELSE + 91 END - 82 * 8 AS col2
----
-3841

skipif mysql # not compatible
query I rowsort label-3383
SELECT + COALESCE ( - + ( + - ( - 35 ) ), - 91 * - COUNT ( * ) * + COUNT ( * ) - - COUNT ( * ) + 49 * + 57 / - NULLIF ( - + 48, - 59 - + COUNT ( * ) ), - - 63 ) * CASE 43 WHEN + 24 THEN 71 WHEN + + COUNT ( * ) THEN + + CAST ( - 14 AS INTEGER ) + - 72 * SUM ( DISTINCT - 26 ) ELSE + 91 END - 82 * 8 AS col2
----
-3841

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT DISTINCT 86 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT 86 / + 89 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3385
SELECT ALL 21 DIV + ( 28 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL 21 / + ( 28 ) AS col2
----
0

query I rowsort
SELECT + 27 + + 35 + + - 93
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT + 62 - - - COUNT( * ) + - - 93 * 74 + - + 91 + - + NULLIF ( + ( - 55 ), + - 10 ) AS col0
----
6907

skipif mysql # not compatible
query I rowsort label-3387
SELECT + 62 - - - COUNT ( * ) + - - 93 * 74 + - + 91 + - + NULLIF ( + ( - 55 ), + - 10 ) AS col0
----
6907

query I rowsort
SELECT ALL COALESCE ( 57, - 99, + 87 )
----
57

query I rowsort
SELECT + 79 + + 55 * + 18 AS col2
----
1069

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - + 56 * + + 25 + - COUNT( ( - + 27 ) ) AS col2
----
-1401

skipif mysql # not compatible
query I rowsort label-3391
SELECT - + 56 * + + 25 + - COUNT ( ( - + 27 ) ) AS col2
----
-1401

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT - COUNT( * ) + + 55
----
54

skipif mysql # not compatible
query I rowsort label-3392
SELECT - COUNT ( * ) + + 55
----
54

query II rowsort
SELECT DISTINCT 99 * + 56 AS col1, 53
----
5544
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3394
SELECT ALL 85 DIV CAST( + + 3 AS SIGNED ) + + + 69, + 5 * 21 + - 89 + - 29 + - 77 AS col1
----
97
-90

skipif mysql # not compatible
query II rowsort label-3394
SELECT ALL 85 / CAST ( + + 3 AS INTEGER ) + + + 69, + 5 * 21 + - 89 + - 29 + - 77 AS col1
----
97
-90

query II rowsort
SELECT + 34, - 52 AS col2
----
34
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3396
SELECT + CAST( + 34 AS SIGNED ) * + 67 + - 31, + 82 col0
----
2247
82

skipif mysql # not compatible
query II rowsort label-3396
SELECT + CAST ( + 34 AS INTEGER ) * + 67 + - 31, + 82 col0
----
2247
82

query I rowsort
SELECT - CASE ( 18 ) WHEN + 11 THEN + - 28 END / + + 21 + 87 + + 11 * 32 * - + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT DISTINCT - CASE + 53 WHEN - + 79 THEN 85 * + CASE 39 WHEN + ( + CASE + - COUNT( * ) WHEN - 89 + COUNT( DISTINCT 62 ) * 25 * - + ( - 2 ) THEN 59 WHEN - COUNT( * ) + + - 73 THEN - 58 * + 22 ELSE 86 END ) THEN - COUNT( * ) + 48 END * - ( ( 34 ) ) + 35 ELSE 31 END * 65
----
-2015

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT - CASE + 53 WHEN - + 79 THEN 85 * + CASE 39 WHEN + ( + CASE + - COUNT ( * ) WHEN - 89 + COUNT ( DISTINCT 62 ) * 25 * - + ( - 2 ) THEN 59 WHEN - COUNT ( * ) + + - 73 THEN - 58 * + 22 ELSE 86 END ) THEN - COUNT ( * ) + 48 END * - ( ( 34 ) ) + 35 ELSE 31 END * 65
----
-2015

onlyif mysql # aggregate syntax: 
query II rowsort label-3399
SELECT 50 AS col0, MAX( ALL - 49 ) AS col0
----
50
-49

skipif mysql # not compatible
query II rowsort label-3399
SELECT 50 AS col0, MAX ( ALL - 49 ) AS col0
----
50
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT + + COALESCE ( SUM( - + 25 ), - 82 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT + + COALESCE ( SUM ( - + 25 ), - 82 ) AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3401
SELECT DISTINCT - + 72 * + - 41 + - COUNT( * ) + + 28 * + 39 + COALESCE ( + + 81, 97 - - 20 ) DIV 13 AS col0
----
4049

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - + 72 * + - 41 + - COUNT ( * ) + + 28 * + 39 + COALESCE ( + + 81, 97 - - 20 ) / 13 AS col0
----
4049

onlyif mysql # DIV for integer division: 
query I rowsort label-3402
SELECT ALL - 19 DIV + 93 + 40
----
40

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL - 19 / + 93 + 40
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3403
SELECT ALL + + 67 AS col0, 74 * COALESCE ( CAST( - 30 AS SIGNED ), + 69 ) AS col1
----
67
-2220

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL + + 67 AS col0, 74 * COALESCE ( CAST ( - 30 AS INTEGER ), + 69 ) AS col1
----
67
-2220

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT ALL - + 80 DIV + 61
----
-1

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL - + 80 / + 61
----
-1

query I rowsort
SELECT - + 94 * 73 + 60 AS col2
----
-6802

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT - 2 col0, + ( COUNT( 41 ) ) AS col0
----
-2
1

skipif mysql # not compatible
query II rowsort label-3406
SELECT - 2 col0, + ( COUNT ( 41 ) ) AS col0
----
-2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT ALL - - 78 * SUM( DISTINCT - ( - 94 ) ) - + 17 + 86 + 77 * 67 * - - 75 * - 7 * 89 - - + 48 AS col0
----
-241046826

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL - - 78 * SUM ( DISTINCT - ( - 94 ) ) - + 17 + 86 + 77 * 67 * - - 75 * - 7 * 89 - - + 48 AS col0
----
-241046826

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3408
SELECT - 23 * ( NULLIF ( + + 99, - COUNT( * ) + + CAST( NULL AS DECIMAL ) * + 91 * 10 ) )
----
-2277

skipif mysql # not compatible
query I rowsort label-3408
SELECT - 23 * ( NULLIF ( + + 99, - COUNT ( * ) + + CAST ( NULL AS REAL ) * + 91 * 10 ) )
----
-2277

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3409
SELECT ALL + 19 * 14 AS col2, CAST( NULL AS DECIMAL ) AS col0
----
266
NULL

skipif mysql # not compatible
query II rowsort label-3409
SELECT ALL + 19 * 14 AS col2, CAST ( NULL AS REAL ) AS col0
----
266
NULL

query I rowsort
SELECT DISTINCT + 38 * + 30
----
1140

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

skipif mysql # not compatible
query I rowsort label-3411
SELECT - SUM ( DISTINCT 72 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3412
SELECT - COUNT( ALL - 23 ) * - 7, COALESCE ( - - COALESCE ( 87, 95 + + ( 92 ), + 41 - 16 ), - CAST( - 71 AS SIGNED ), - - 25 ) * + 95 + - 71 AS col1
----
7
8194

skipif mysql # not compatible
query II rowsort label-3412
SELECT - COUNT ( ALL - 23 ) * - 7, COALESCE ( - - COALESCE ( 87, 95 + + ( 92 ), + 41 - 16 ), - CAST ( - 71 AS INTEGER ), - - 25 ) * + 95 + - 71 AS col1
----
7
8194

onlyif mysql # aggregate syntax: 
query II rowsort label-3413
SELECT + ( + - 27 ) * - 16 AS col1, COUNT( * ) * 39 + + 38 + + - ( + 83 ) + - 49 * - 83 * - + 88 * - 13
----
432
4652642

skipif mysql # not compatible
query II rowsort label-3413
SELECT + ( + - 27 ) * - 16 AS col1, COUNT ( * ) * 39 + + 38 + + - ( + 83 ) + - 49 * - 83 * - + 88 * - 13
----
432
4652642

query I rowsort
SELECT - 40 + + 1
----
-39

query I rowsort
SELECT - ( 76 ) * - 88
----
6688

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3417
SELECT ALL CAST( - 11 AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL CAST ( - 11 AS INTEGER ) AS col2
----
-11

query I rowsort
SELECT ALL 98 * 98 AS col1
----
9604

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

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

query I rowsort
SELECT ALL - 76 * - 91 col2
----
6916

query I rowsort
SELECT DISTINCT 3 * 45
----
135

query I rowsort
SELECT 67 + + 43 + - 45 + 12 * - ( + + 75 ) AS col2
----
-835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT - 14 * - 90 + - CAST( NULL AS SIGNED ) * + + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT - 14 * - 90 + - CAST ( NULL AS INTEGER ) * + + 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT 13 + COALESCE ( - SUM( DISTINCT 81 ), 74 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-3424
SELECT 13 + COALESCE ( - SUM ( DISTINCT 81 ), 74 ) AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3425
SELECT 3 DIV + 99 * + - 13 * - 93 col0
----
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT 3 / + 99 * + - 13 * - 93 col0
----
0

query II rowsort
SELECT ALL + 14 + + 44 AS col2, 60 col1
----
58
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT - COUNT( * ) DIV + 8 - - 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3427
SELECT - COUNT ( * ) / + 8 - - 61 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT - 98 * + + NULLIF ( 29, ( COUNT( * ) ) )
----
-2842

skipif mysql # not compatible
query I rowsort label-3428
SELECT - 98 * + + NULLIF ( 29, ( COUNT ( * ) ) )
----
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL + 53 + COALESCE ( + + ( 40 ), 44 ) + COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL + 53 + COALESCE ( + + ( 40 ), 44 ) + COUNT ( * ) AS col1
----
94

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

skipif mysql # not compatible
query II rowsort label-3430
SELECT ( - 99 ) AS col1, - COUNT ( * ) AS col2
----
-99
-1

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

query I rowsort
SELECT DISTINCT 99 * - + 48 - - 21
----
-4731

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3433
SELECT - ( 40 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT - ( 40 ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL 17 * 89 + - COUNT( * ) + - 94
----
1418

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL 17 * 89 + - COUNT ( * ) + - 94
----
1418

query III rowsort
SELECT - 70 + 27 AS col0, - 67 * - - 50 * + 66 AS col2, - 40 AS col2
----
-43
-221100
-40

query I rowsort
SELECT ALL + 38 - + + 62 * - 76 AS col2
----
4750

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT - 69 * 31 + COALESCE ( - - 52, - - 92 ) + - - 76 * + COUNT( * ) * COALESCE ( - CASE - + 55 WHEN + MIN( + 50 ) - + + 31 THEN 19 - - 32 ELSE NULL END, SUM( + 93 ) ) * + + ( - 8 )
----
-58631

skipif mysql # not compatible
query I rowsort label-3438
SELECT - 69 * 31 + COALESCE ( - - 52, - - 92 ) + - - 76 * + COUNT ( * ) * COALESCE ( - CASE - + 55 WHEN + MIN ( + 50 ) - + + 31 THEN 19 - - 32 ELSE NULL END, SUM ( + 93 ) ) * + + ( - 8 )
----
-58631

onlyif mysql # DIV for integer division: 
query I rowsort label-3439
SELECT ALL - 61 DIV + 40 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL - 61 / + 40 AS col2
----
-1

query I rowsort
SELECT 68 * - + 70 AS col1
----
-4760

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT ALL - 79 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL - 79 / + 90 AS col2
----
0

query I rowsort
SELECT 78 * - 61 AS col1
----
-4758

onlyif mysql # DIV for integer division: 
query II rowsort label-3443
SELECT 89 * + 18 * - + COALESCE ( + 97, + 92 * + 67 + - 92 - - 22 + 57 DIV - 88 * - 64 * - NULLIF ( + 53, + - 13 ), + - ( 65 ) + + 82 ) + + 70, 62 * + 0 AS col1
----
-155324
0

skipif mysql # not compatible
query II rowsort label-3443
SELECT 89 * + 18 * - + COALESCE ( + 97, + 92 * + 67 + - 92 - - 22 + 57 / - 88 * - 64 * - NULLIF ( + 53, + - 13 ), + - ( 65 ) + + 82 ) + + 70, 62 * + 0 AS col1
----
-155324
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT 58 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT 58 / 91
----
0

query I rowsort
SELECT 94 * - 21 * - - 77 * + 32
----
-4863936

onlyif mysql # aggregate syntax: 
query II rowsort label-3446
SELECT - 97 AS col2, COUNT( * ) - - + 5
----
-97
6

skipif mysql # not compatible
query II rowsort label-3446
SELECT - 97 AS col2, COUNT ( * ) - - + 5
----
-97
6

query I rowsort
SELECT DISTINCT + 62 + + 67 AS col2
----
129

query I rowsort
SELECT - 52 col2
----
-52

query I rowsort
SELECT 84 + 65 + + - NULLIF ( - - 45, 12 )
----
104

query I rowsort
SELECT DISTINCT + 44 + + NULLIF ( + ( - 85 ), + + 15 * 11 * - - 12 * 24 * + 26 * - + 46 ) AS col0
----
-41

query I rowsort
SELECT 93 + + 37
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-3452
SELECT ALL + 17 + + + ( + + COUNT( * ) ), + 69 AS col1
----
18
69

skipif mysql # not compatible
query II rowsort label-3452
SELECT ALL + 17 + + + ( + + COUNT ( * ) ), + 69 AS col1
----
18
69

query I rowsort
SELECT 77 - 66 AS col1
----
11

query I rowsort
SELECT + 11 + + 8
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT DISTINCT - + 80 + - CAST( + 23 AS SIGNED ) + 44 * + + 18 AS col0
----
689

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT - + 80 + - CAST ( + 23 AS INTEGER ) + 44 * + + 18 AS col0
----
689

query I rowsort
SELECT 72 + + 90 AS col2
----
162

query I rowsort
SELECT DISTINCT + - 51 + 50 + + 67 + + 51
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3458
SELECT - - CAST( NULL AS SIGNED ), NULLIF ( COUNT( * ), + - 62 * + 80 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3458
SELECT - - CAST ( NULL AS INTEGER ), NULLIF ( COUNT ( * ), + - 62 * + 80 ) AS col2
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3459
SELECT 51 + + - 66 DIV - 48 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3459
SELECT 51 + + - 66 / - 48 AS col1
----
52

query I rowsort
SELECT ALL - - 38 * + 38
----
1444

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL - - MAX( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL - - MAX ( 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + 21 * - 52 + + + 29 * COUNT( * ) * - ( + 0 ) + - + 11 + + 98 * - - 13 * - 68 AS col1
----
-87735

skipif mysql # not compatible
query I rowsort label-3463
SELECT + 21 * - 52 + + + 29 * COUNT ( * ) * - ( + 0 ) + - + 11 + + 98 * - - 13 * - 68 AS col1
----
-87735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3464
SELECT + COUNT( * ) DIV - 39 + - 48 + CAST( - AVG ( + 0 ) AS SIGNED ), 93 AS col0
----
-48
93

skipif mysql # not compatible
query II rowsort label-3464
SELECT + COUNT ( * ) / - 39 + - 48 + CAST ( - AVG ( + 0 ) AS INTEGER ), 93 AS col0
----
-48
93

query I rowsort
SELECT 69 * - 40
----
-2760

query I rowsort
SELECT ALL - + 68 AS col1
----
-68

query I rowsort
SELECT DISTINCT - ( + - CASE - - 15 WHEN - + 32 THEN + - 55 ELSE NULL END )
----
NULL

query I rowsort
SELECT 59 * - - ( 37 ) AS col0
----
2183

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3470
SELECT COUNT( * ) - + 71 + - ( - CASE + - 15 WHEN + COUNT( * ) * - + COALESCE ( 44, + - ( 51 ) * + + 58 * - + MIN( 30 ) ) THEN NULL ELSE + CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) - + 78 END ) + COUNT( * ) * 52
----
-95

skipif mysql # not compatible
query I rowsort label-3470
SELECT COUNT ( * ) - + 71 + - ( - CASE + - 15 WHEN + COUNT ( * ) * - + COALESCE ( 44, + - ( 51 ) * + + 58 * - + MIN ( 30 ) ) THEN NULL ELSE + CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) - + 78 END ) + COUNT ( * ) * 52
----
-95

query I rowsort
SELECT 72 * - 46 * 78 AS col0
----
-258336

query I rowsort
SELECT ALL 35 * - + 76
----
-2660

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

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

query I rowsort
SELECT ALL - 48 + 84 + + + 38 AS col2
----
74

query I rowsort
SELECT DISTINCT 34 + + 32 * 7 AS col2
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL - COUNT( * ) + + 19 + 49 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL - COUNT ( * ) + + 19 + 49 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT + ( - 66 ) * + - 17 * - 35 - - 99 * COUNT( * ) - + + 4 - - 26 * - ( 10 ) + + 72 AS col2
----
-39363

skipif mysql # not compatible
query I rowsort label-3477
SELECT + ( - 66 ) * + - 17 * - 35 - - 99 * COUNT ( * ) - + + 4 - - 26 * - ( 10 ) + + 72 AS col2
----
-39363

query I rowsort
SELECT ALL 69 + + + 88 col1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT + COUNT( * ) + + 3
----
4

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT + COUNT ( * ) + + 3
----
4

query I rowsort
SELECT - - 8 * - 33
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3481
SELECT DISTINCT - 45 + 36 AS col2, + 43 * + 86 + - 84 + + 79 * + 70 * + CAST( NULL AS SIGNED )
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-3481
SELECT DISTINCT - 45 + 36 AS col2, + 43 * + 86 + - 84 + + 79 * + 70 * + CAST ( NULL AS INTEGER )
----
-9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - 80 + - + 34 + COUNT( DISTINCT - 30 )
----
-113

skipif mysql # not compatible
query I rowsort label-3482
SELECT - 80 + - + 34 + COUNT ( DISTINCT - 30 )
----
-113

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT - CASE 25 WHEN - 75 THEN - 9 WHEN + + CASE - 13 WHEN + + 75 THEN NULL WHEN + + MIN( - 26 ) THEN - + 3 + - AVG ( DISTINCT + - 41 ) ELSE - + 69 END THEN NULL ELSE NULL END * - 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT - CASE 25 WHEN - 75 THEN - 9 WHEN + + CASE - 13 WHEN + + 75 THEN NULL WHEN + + MIN ( - 26 ) THEN - + 3 + - AVG ( DISTINCT + - 41 ) ELSE - + 69 END THEN NULL ELSE NULL END * - 87 col1
----
NULL

query I rowsort
SELECT - + 31 + 96 * - + 51 AS col2
----
-4927

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

skipif mysql # not compatible
query I rowsort label-3486
SELECT - - SUM ( DISTINCT - - 25 ) + + - COUNT ( * ) AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3487
SELECT - + 82 + 70 DIV 76 + + 59 + - COUNT( DISTINCT - ( + 4 ) ) * - 26
----
3

skipif mysql # not compatible
query I rowsort label-3487
SELECT - + 82 + 70 / 76 + + 59 + - COUNT ( DISTINCT - ( + 4 ) ) * - 26
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3488
SELECT ALL + - ( 4 ) - - + COUNT( * ) + + COALESCE ( 99, + + COUNT( * ) DIV - CAST( + 38 AS SIGNED ) - + 6 ) * - 95 * 6 AS col0
----
-56433

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + - ( 4 ) - - + COUNT ( * ) + + COALESCE ( 99, + + COUNT ( * ) / - CAST ( + 38 AS INTEGER ) - + 6 ) * - 95 * 6 AS col0
----
-56433

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3489
SELECT ALL CAST( - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL CAST ( - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - ( + 84 ) * 20 + + 62 AS col2
----
1742

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL - - COUNT( * ) * - + NULLIF ( + - 74, - 17 ) - 16
----
58

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - - COUNT ( * ) * - + NULLIF ( + - 74, - 17 ) - 16
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3493
SELECT - 5 + - 82, + CAST( NULL AS SIGNED ) AS col0
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-3493
SELECT - 5 + - 82, + CAST ( NULL AS INTEGER ) AS col0
----
-87
NULL

query II rowsort
SELECT ALL + 30 * + + 52, - 70 AS col1
----
1560
-70

query II rowsort
SELECT DISTINCT + + 68 * + 89 - - - 33 + + 71 * 21 * + + ( - - 26 ) * - ( - 13 ), ( 56 ) * - 91 AS col0
----
509977
-5096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3496
SELECT 55 DIV + 68 + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3496
SELECT 55 / + 68 + - + COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 61 * + 66
----
4026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3498
SELECT - COUNT( * ) + + - 84 + - CASE + + CAST( NULL AS SIGNED ) WHEN 2 * AVG ( 81 ) * 34 - ( COUNT( * ) ) THEN 85 WHEN 30 + - + AVG ( ALL - CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END + - COUNT( * ) AS col1, - 81 DIV + COUNT( * )
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-3498
SELECT - COUNT ( * ) + + - 84 + - CASE + + CAST ( NULL AS INTEGER ) WHEN 2 * AVG ( 81 ) * 34 - ( COUNT ( * ) ) THEN 85 WHEN 30 + - + AVG ( ALL - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END + - COUNT ( * ) AS col1, - 81 / + COUNT ( * )
----
NULL
-81

query I rowsort
SELECT NULLIF ( + + NULLIF ( - 75, - 32 ), + 32 ) AS col2
----
-75

query I rowsort
SELECT ALL + ( - 67 ) * + 50 + 58 AS col1
----
-3292

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL NULLIF ( - - 23, 6 * - 73 - + + 27 / + + 38 - + AVG ( 74 ) ) * 67 * - - COUNT( * ) + - COUNT( * ) * - + 87 AS col0
----
1628

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL NULLIF ( - - 23, 6 * - 73 - + + 27 / + + 38 - + AVG ( 74 ) ) * 67 * - - COUNT ( * ) + - COUNT ( * ) * - + 87 AS col0
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT ( 52 ) * + COUNT( * ) + - 22 * - NULLIF ( - + 37, + + 95 ) + - 34 col2
----
-796

skipif mysql # not compatible
query I rowsort label-3502
SELECT ( 52 ) * + COUNT ( * ) + - 22 * - NULLIF ( - + 37, + + 95 ) + - 34 col2
----
-796

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL + SUM( DISTINCT 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL + SUM ( DISTINCT 15 ) AS col0
----
15

query I rowsort
SELECT DISTINCT 85 * 48 + + 0
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT + SUM( ALL + 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3505
SELECT + SUM ( ALL + 96 ) AS col2
----
96

query I rowsort
SELECT ALL 60 * + 27 + - - 47 + + - 81
----
1586

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT + 9 + - + ( + 76 ) * - - COUNT( * ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-3508
SELECT + 9 + - + ( + 76 ) * - - COUNT ( * ) col1
----
-67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT SUM( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-3510
SELECT SUM ( ALL 14 )
----
14

query I rowsort
SELECT ALL 27 * - 97 col1
----
-2619

onlyif mysql # aggregate syntax: 
query II rowsort label-3512
SELECT ALL COUNT( * ) AS col1, - 26 AS col0
----
1
-26

skipif mysql # not compatible
query II rowsort label-3512
SELECT ALL COUNT ( * ) AS col1, - 26 AS col0
----
1
-26

query I rowsort
SELECT + 51 * + + 5
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL 21 * - - NULLIF ( - + 55, 64 + + 67 - - ( + - SUM( ALL + 51 ) ) ) AS col0
----
-1155

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL 21 * - - NULLIF ( - + 55, 64 + + 67 - - ( + - SUM ( ALL + 51 ) ) ) AS col0
----
-1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT + - NULLIF ( - MIN( ALL - - 85 ), + CASE - COUNT( * ) WHEN - 87 THEN + 65 WHEN - 73 - 59 THEN - COUNT( * ) END ) + 72 + CAST( NULL AS SIGNED ) * + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT + - NULLIF ( - MIN ( ALL - - 85 ), + CASE - COUNT ( * ) WHEN - 87 THEN + 65 WHEN - 73 - 59 THEN - COUNT ( * ) END ) + 72 + CAST ( NULL AS INTEGER ) * + 62 AS col0
----
NULL

query I rowsort
SELECT + - 60 + + 37
----
-23

query I rowsort
SELECT + - 2 * - 24 col0
----
48

query I rowsort
SELECT - - ( + - 56 ) * 31 + - - 62 col0
----
-1674

query I rowsort
SELECT - 96 + + 16
----
-80

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3521
SELECT - - 47 DIV - - 67 * 67 AS col1, - 11 * - COUNT( ALL 33 ) AS col2
----
0
11

skipif mysql # not compatible
query II rowsort label-3521
SELECT - - 47 / - - 67 * 67 AS col1, - 11 * - COUNT ( ALL 33 ) AS col2
----
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL + - COUNT( - + 6 ) * 36 + + - 26 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + - COUNT ( - + 6 ) * 36 + + - 26 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + MAX( ALL + COALESCE ( - ( - ( + 55 ) ), 37, + 67 + + 37 ) ) * 72 AS col2
----
3960

skipif mysql # not compatible
query I rowsort label-3523
SELECT + MAX ( ALL + COALESCE ( - ( - ( + 55 ) ), 37, + 67 + + 37 ) ) * 72 AS col2
----
3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3524
SELECT ALL 23 DIV 1 + - - COUNT( * ) AS col1, 44 AS col1
----
24
44

skipif mysql # not compatible
query II rowsort label-3524
SELECT ALL 23 / 1 + - - COUNT ( * ) AS col1, 44 AS col1
----
24
44

query I rowsort
SELECT ALL + 50 * - - 49 col2
----
2450

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3527
SELECT - + CAST( COUNT( * ) AS SIGNED ) + - 0 col2
----
-1

skipif mysql # not compatible
query I rowsort label-3527
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) + - 0 col2
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3529
SELECT ALL + + ( - ( 58 ) ) * - + SUM( + - CAST( 5 AS SIGNED ) )
----
-290

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL + + ( - ( 58 ) ) * - + SUM ( + - CAST ( 5 AS INTEGER ) )
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT + 20 * + 66 + + COUNT( * ) AS col2
----
1321

skipif mysql # not compatible
query I rowsort label-3530
SELECT + 20 * + 66 + + COUNT ( * ) AS col2
----
1321

onlyif mysql # DIV for integer division: 
query I rowsort label-3531
SELECT ALL + 34 DIV + 83 + 80
----
80

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL + 34 / + 83 + 80
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3532
SELECT ALL 44 DIV + 86 * - + ( - 18 ) + - COUNT( * ) * - NULLIF ( + - MIN( + + 16 ), + + 13 + + 21 + 94 DIV - 9 * + COUNT( * ) ) * MIN( DISTINCT - + 14 ) * - 90 + + 86 * - 88 + + - ( - COUNT( * ) ) AS col1
----
-27727

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL 44 / + 86 * - + ( - 18 ) + - COUNT ( * ) * - NULLIF ( + - MIN ( + + 16 ), + + 13 + + 21 + 94 / - 9 * + COUNT ( * ) ) * MIN ( DISTINCT - + 14 ) * - 90 + + 86 * - 88 + + - ( - COUNT ( * ) ) AS col1
----
-27727

query II rowsort
SELECT - ( - ( - 19 ) ) * + 26 col1, - 31
----
-494
-31

query I rowsort
SELECT ALL + COALESCE ( + - 97, + 42 ) AS col1
----
-97

query II rowsort
SELECT ALL + 16 AS col1, 63 AS col0
----
16
63

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

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

query I rowsort
SELECT ALL + 30 + - 90 AS col0
----
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-3538
SELECT COALESCE ( + 37, 30 ) * 62 * + 21 - - 54 AS col1, + 12 DIV - 65
----
48228
0

skipif mysql # not compatible
query II rowsort label-3538
SELECT COALESCE ( + 37, 30 ) * 62 * + 21 - - 54 AS col1, + 12 / - 65
----
48228
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT 67 * - COUNT( * ) * + 62 + - - SUM( DISTINCT - 20 ) AS col1
----
-4174

skipif mysql # not compatible
query I rowsort label-3539
SELECT 67 * - COUNT ( * ) * + 62 + - - SUM ( DISTINCT - 20 ) AS col1
----
-4174

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT 22 DIV + 83 col1
----
0

skipif mysql # not compatible
query I rowsort label-3540
SELECT 22 / + 83 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT 93 * SUM( + 85 ) col2
----
7905

skipif mysql # not compatible
query I rowsort label-3541
SELECT 93 * SUM ( + 85 ) col2
----
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT - 13 - MAX( ALL COALESCE ( + 27, - + 48 ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT - 13 - MAX ( ALL COALESCE ( + 27, - + 48 ) ) AS col2
----
-40

query I rowsort
SELECT 12 - + + 90
----
-78

query I rowsort
SELECT ALL - 47 col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL + COUNT( 90 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL + COUNT ( 90 ) col1
----
1

query I rowsort
SELECT - + COALESCE ( - 82, 76 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT + 15 + - CAST( 65 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-3547
SELECT + 15 + - CAST ( 65 AS INTEGER )
----
-50

query I rowsort
SELECT 95 * + 45
----
4275

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

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL 55 * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT CASE + 24 WHEN - 27 THEN + 43 ELSE - - 91 END
----
91

query I rowsort
SELECT ALL + 85 * + 73 AS col0
----
6205

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT COUNT( * ) * + - 96 * + + 78 AS col0
----
-7488

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT COUNT ( * ) * + - 96 * + + 78 AS col0
----
-7488

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL MIN( + 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL MIN ( + 31 ) AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT + 87 * 92 DIV 39
----
205

skipif mysql # not compatible
query I rowsort label-3555
SELECT + 87 * 92 / 39
----
205

query I rowsort
SELECT ALL 57 + 38 + - 74
----
21

query II rowsort
SELECT - 89 AS col0, + 62 AS col2
----
-89
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT - 6 AS col1, + 72 + - - 54 - + - 36 * + COUNT( * ) AS col1
----
-6
162

skipif mysql # not compatible
query II rowsort label-3558
SELECT - 6 AS col1, + 72 + - - 54 - + - 36 * + COUNT ( * ) AS col1
----
-6
162

onlyif mysql # DIV for integer division: 
query I rowsort label-3559
SELECT ALL 84 DIV + + 82 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL 84 / + + 82 AS col1
----
1

query I rowsort
SELECT - 54 + 11 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ( + 69 ) + - - 57 - + COUNT( * ) * 86
----
40

skipif mysql # not compatible
query I rowsort label-3561
SELECT ( + 69 ) + - - 57 - + COUNT ( * ) * 86
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3562
SELECT 78 + MIN( DISTINCT + 22 ) - 90 + + + 17 * - + 2 * + - 33 / 27 * 94 - + CAST( - CASE 22 WHEN CASE ( + COUNT( * ) ) WHEN - + 65 * + CASE + 96 WHEN - + 90 + 63 THEN - - 32 ELSE - COUNT( ALL - 24 ) END * 94 + - - 31 - + + 91 / ( + ( 48 ) ) THEN + 74 ELSE 65 * CAST( NULL AS SIGNED ) + 39 END THEN NULL WHEN + 66 * - 0 THEN 16 + - CASE + 69 WHEN 19 + + NULLIF ( + 16, 15 * + 49 ) * 89 THEN NULL WHEN - 54 THEN + COUNT( * ) ELSE NULL END / 72 WHEN ( 76 ) * - 93 THEN + COUNT( * ) END AS DECIMAL ) * 8 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT 78 + MIN ( DISTINCT + 22 ) - 90 + + + 17 * - + 2 * + - 33 / 27 * 94 - + CAST ( - CASE 22 WHEN CASE ( + COUNT ( * ) ) WHEN - + 65 * + CASE + 96 WHEN - + 90 + 63 THEN - - 32 ELSE - COUNT ( ALL - 24 ) END * 94 + - - 31 - + + 91 / ( + ( 48 ) ) THEN + 74 ELSE 65 * CAST ( NULL AS INTEGER ) + 39 END THEN NULL WHEN + 66 * - 0 THEN 16 + - CASE + 69 WHEN 19 + + NULLIF ( + 16, 15 * + 49 ) * 89 THEN NULL WHEN - 54 THEN + COUNT ( * ) ELSE NULL END / 72 WHEN ( 76 ) * - 93 THEN + COUNT ( * ) END AS REAL ) * 8 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL - 99 + NULLIF ( 49, - ( 94 ) - 79 * + COUNT( * ) + COUNT( * ) + - + 24 - + 81 * + 3 * + - 68 / + 88 ) + - - 53
----
3

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL - 99 + NULLIF ( 49, - ( 94 ) - 79 * + COUNT ( * ) + COUNT ( * ) + - + 24 - + 81 * + 3 * + - 68 / + 88 ) + - - 53
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3564
SELECT - 40 DIV - COUNT( * ) - + 92 - - 68
----
16

skipif mysql # not compatible
query I rowsort label-3564
SELECT - 40 / - COUNT ( * ) - + 92 - - 68
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT ALL - COUNT( ALL - 6 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL - COUNT ( ALL - 6 ) AS col0
----
-1

query II rowsort
SELECT 22 + + 54 AS col0, 46 AS col2
----
76
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3567
SELECT DISTINCT - MAX( DISTINCT + 16 ), - 95 DIV + - 75 AS col1
----
-16
1

skipif mysql # not compatible
query II rowsort label-3567
SELECT DISTINCT - MAX ( DISTINCT + 16 ), - 95 / + - 75 AS col1
----
-16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL - ( - COUNT( * ) ) - - 46 * + 79 AS col2
----
3635

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL - ( - COUNT ( * ) ) - - 46 * + 79 AS col2
----
3635

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

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

query I rowsort
SELECT - 95 * 55 + + 15 * 54
----
-4415

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - MAX( + + 90 ) * 91 * - - 48 + + 95 AS col1
----
-393025

skipif mysql # not compatible
query I rowsort label-3571
SELECT - MAX ( + + 90 ) * 91 * - - 48 + + 95 AS col1
----
-393025

query I rowsort
SELECT + 4 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL - 75 * + - ( + CASE 68 WHEN - COUNT( 41 ) * + 20 THEN NULL WHEN 17 THEN + 87 + + - 53 END ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - 75 * + - ( + CASE 68 WHEN - COUNT ( 41 ) * + 20 THEN NULL WHEN 17 THEN + 87 + + - 53 END ) + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT 51 + - COUNT( 9 )
----
50

skipif mysql # not compatible
query I rowsort label-3574
SELECT 51 + - COUNT ( 9 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT + SUM( DISTINCT + 84 ) * + 39
----
3276

skipif mysql # not compatible
query I rowsort label-3575
SELECT + SUM ( DISTINCT + 84 ) * + 39
----
3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT DISTINCT - - COUNT( * ) * + - MIN( DISTINCT - - 35 ) * + - ( - 26 ) + CAST( - 8 AS SIGNED ) * + COUNT( * ) AS col1
----
-918

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT - - COUNT ( * ) * + - MIN ( DISTINCT - - 35 ) * + - ( - 26 ) + CAST ( - 8 AS INTEGER ) * + COUNT ( * ) AS col1
----
-918

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT DISTINCT + 72 * 7 - + + 95 * - - SUM( DISTINCT - 91 ) + - COUNT( * ) + 57 AS col0, 30 AS col0
----
9205
30

skipif mysql # not compatible
query II rowsort label-3577
SELECT DISTINCT + 72 * 7 - + + 95 * - - SUM ( DISTINCT - 91 ) + - COUNT ( * ) + 57 AS col0, 30 AS col0
----
9205
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT - NULLIF ( + 59, + - 22 - - COUNT( * ) ) + ( - 83 )
----
-142

skipif mysql # not compatible
query I rowsort label-3578
SELECT - NULLIF ( + 59, + - 22 - - COUNT ( * ) ) + ( - 83 )
----
-142

query I rowsort
SELECT - - ( 32 )
----
32

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

query I rowsort
SELECT 20 + - 3 AS col2
----
17

query I rowsort
SELECT ( - 41 )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3583
SELECT 0 * + 35 DIV 24 + - - COUNT( * ) - + 43 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3583
SELECT 0 * + 35 / 24 + - - COUNT ( * ) - + 43 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT - MIN( + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-3584
SELECT - MIN ( + 70 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3585
SELECT ALL + CAST( NULL AS DECIMAL ) + - + 92 AS col2, - 11 * + COUNT( * ) - - + 48 + + 66 - + 97 - MIN( - 16 )
----
NULL
22

skipif mysql # not compatible
query II rowsort label-3585
SELECT ALL + CAST ( NULL AS REAL ) + - + 92 AS col2, - 11 * + COUNT ( * ) - - + 48 + + 66 - + 97 - MIN ( - 16 )
----
NULL
22

query I rowsort
SELECT - 61 * 66 AS col0
----
-4026

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT DISTINCT - + MIN( 88 ) * + 69 + 6
----
-6066

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT - + MIN ( 88 ) * + 69 + 6
----
-6066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT ALL - CAST( + + 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL - CAST ( + + 89 AS INTEGER )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-3589
SELECT ALL 23 AS col0, 2 * COUNT( * )
----
23
2

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL 23 AS col0, 2 * COUNT ( * )
----
23
2

query I rowsort
SELECT ALL 70 + + 31
----
101

query I rowsort
SELECT DISTINCT 5 - + 34
----
-29

query II rowsort
SELECT DISTINCT 83, - 43 * - 67 col1
----
83
2881

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

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

query I rowsort
SELECT 31 * - 59 + + 47 AS col1
----
-1782

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

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

query I rowsort
SELECT - 73 * + 89 + + 24 * 13 + - 62 col1
----
-6247

query I rowsort
SELECT + CASE 87 WHEN 40 * + - 75 THEN NULL ELSE + 92 END AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3598
SELECT + 98 DIV 7 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3598
SELECT + 98 / 7 AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT ALL 4 DIV - 36
----
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL 4 / - 36
----
0

query II rowsort
SELECT ALL + 41 AS col1, - 21 AS col0
----
41
-21

query I rowsort
SELECT DISTINCT 21 * + + 10
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT ALL - CAST( + 37 AS SIGNED ) * + + 55 * - 67 + + - 61 col1
----
136284

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL - CAST ( + 37 AS INTEGER ) * + + 55 * - 67 + + - 61 col1
----
136284

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL + MIN( - - 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + MIN ( - - 44 ) AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3604
SELECT ALL SUM( + ( - 65 ) ) * + CAST( NULL AS SIGNED ) + AVG ( DISTINCT - 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL SUM ( + ( - 65 ) ) * + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT - 60 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3605
SELECT - 68 DIV + CAST( - 44 AS SIGNED ) AS col0, - 77 AS col1
----
1
-77

skipif mysql # not compatible
query II rowsort label-3605
SELECT - 68 / + CAST ( - 44 AS INTEGER ) AS col0, - 77 AS col1
----
1
-77

query III rowsort
SELECT NULLIF ( - - 27, 92 ) AS col2, 91 * - ( 13 ), + - 76 AS col0
----
27
-1183
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT - 44 * + COUNT( * ) * - - 15 AS col2
----
-660

skipif mysql # not compatible
query I rowsort label-3607
SELECT - 44 * + COUNT ( * ) * - - 15 AS col2
----
-660

query I rowsort
SELECT - 53 * 91 + + 4 + - - 15
----
-4804

query I rowsort
SELECT COALESCE ( + 65, - 98 * - - 97 ) AS col2
----
65

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

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

query II rowsort
SELECT + - 79 AS col2, 58 * + - 53
----
-79
-3074

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

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

query II rowsort
SELECT ALL + 55 AS col2, + 77 + + 28 + - 95 + + 16 + - 67
----
55
-41

query I rowsort
SELECT - ( 43 ) * - 68 AS col1
----
2924

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT + 17 * - 0 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT + 17 * - 0 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT ALL - ( 33 ) * - COUNT( * ) * + + 92 + + 24 + + - ( + 8 ) * 23 + + 88 * SUM( 60 ) + - + 73 col0
----
8083

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL - ( 33 ) * - COUNT ( * ) * + + 92 + + 24 + + - ( + 8 ) * 23 + + 88 * SUM ( 60 ) + - + 73 col0
----
8083

query I rowsort
SELECT - - 35 AS col2
----
35

query I rowsort
SELECT - 0 + + 3 AS col0
----
3

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

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

query I rowsort
SELECT ALL - - 59 * 84 AS col1
----
4956

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

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

query I rowsort
SELECT ALL - - 47 + 90 AS col2
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT DISTINCT COUNT( + - COALESCE ( - 62, - - 77, - + ( 90 ) ) ), + MAX( DISTINCT - 9 ) AS col2
----
1
-9

skipif mysql # not compatible
query II rowsort label-3624
SELECT DISTINCT COUNT ( + - COALESCE ( - 62, - - 77, - + ( 90 ) ) ), + MAX ( DISTINCT - 9 ) AS col2
----
1
-9

query I rowsort
SELECT ALL + 41 * + + 8
----
328

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

skipif mysql # not compatible
query II rowsort label-3626
SELECT + 41, - COUNT ( * ) AS col0
----
41
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3627
SELECT ALL + 50, + 25 * 49 * COUNT( * ) * + 30 * - - 93 AS col1
----
50
3417750

skipif mysql # not compatible
query II rowsort label-3627
SELECT ALL + 50, + 25 * 49 * COUNT ( * ) * + 30 * - - 93 AS col1
----
50
3417750

query I rowsort
SELECT ALL - + 55 + - 59 * 74
----
-4421

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT ALL 2 DIV + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL 2 / + 74 AS col0
----
0

query I rowsort
SELECT 47 col1
----
47

query I rowsort
SELECT ALL + 98 - + 7 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT - SUM( ALL - 80 ) + - NULLIF ( - - 25, 27 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3632
SELECT - SUM ( ALL - 80 ) + - NULLIF ( - - 25, 27 ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT - 52 + - 61 - - 2 / + - CASE - - CASE + 72 WHEN + ( + 77 ) + 36 * 95 THEN NULL WHEN + - ( - - 27 ) + 35 THEN + ( + 74 ) WHEN - 63 / - 86 + 7 + 73 - - - 98 * + + 20 * - - CAST( 66 AS SIGNED ) / - COUNT( * ) / - + 25 - 97 THEN + + 23 * + 36 END WHEN + - CAST( NULL AS SIGNED ) - - 20 THEN - 13 END + 3 / + ( 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT - 52 + - 61 - - 2 / + - CASE - - CASE + 72 WHEN + ( + 77 ) + 36 * 95 THEN NULL WHEN + - ( - - 27 ) + 35 THEN + ( + 74 ) WHEN - 63 / - 86 + 7 + 73 - - - 98 * + + 20 * - - CAST ( 66 AS INTEGER ) / - COUNT ( * ) / - + 25 - 97 THEN + + 23 * + 36 END WHEN + - CAST ( NULL AS INTEGER ) - - 20 THEN - 13 END + 3 / + ( 37 )
----
NULL

query I rowsort
SELECT + 58 - + 90 + - + 99 * - 73 * - - 49 * - 82
----
-29038118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3635
SELECT ALL CAST( + COUNT( ALL + 44 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL CAST ( + COUNT ( ALL + 44 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT - ( 16 ) + - 18 - + + COUNT( + ( - 1 ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3636
SELECT - ( 16 ) + - 18 - + + COUNT ( + ( - 1 ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT ALL 16 - + 21 - - MIN( + 55 ) col2
----
50

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL 16 - + 21 - - MIN ( + 55 ) col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT - COUNT( * ) * - - 95 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3638
SELECT - COUNT ( * ) * - - 95 AS col0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3639
SELECT DISTINCT ( - 94 ), CAST( NULL AS SIGNED ) AS col0
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-3639
SELECT DISTINCT ( - 94 ), CAST ( NULL AS INTEGER ) AS col0
----
-94
NULL

query I rowsort
SELECT + 57 * - ( - 56 )
----
3192

query I rowsort
SELECT ALL - 9 * - 1 * + 65
----
585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3642
SELECT CAST( 41 AS SIGNED ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3642
SELECT CAST ( 41 AS INTEGER ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT - 49 * 36 + + + COUNT( * ) AS col2
----
-1763

skipif mysql # not compatible
query I rowsort label-3643
SELECT - 49 * 36 + + + COUNT ( * ) AS col2
----
-1763

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

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

query I rowsort
SELECT + 15 + - + ( 65 ) * 2 * 98 col0
----
-12725

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3646
SELECT CAST( CAST( + 39 AS DECIMAL ) AS SIGNED ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3646
SELECT CAST ( CAST ( + 39 AS REAL ) AS INTEGER ) AS col2
----
39

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT ALL ( 65 ) DIV + 36
----
1

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL ( 65 ) / + 36
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3649
SELECT 78 * + 0 - + + CAST( NULL AS SIGNED ) + 34 * + 19 AS col0, + 31 DIV 67 DIV - - 57 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3649
SELECT 78 * + 0 - + + CAST ( NULL AS INTEGER ) + 34 * + 19 AS col0, + 31 / 67 / - - 57 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3650
SELECT ALL - ( 18 ) * - + 14 DIV COUNT( * ) + - 15 + 99 * + 86
----
8751

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - ( 18 ) * - + 14 / COUNT ( * ) + - 15 + 99 * + 86
----
8751

query I rowsort
SELECT ALL 87 * - - 63 * + 95
----
520695

onlyif mysql # DIV for integer division: 
query II rowsort label-3652
SELECT + - 86 DIV 37 AS col2, + 72 * + 11 AS col2
----
-2
792

skipif mysql # not compatible
query II rowsort label-3652
SELECT + - 86 / 37 AS col2, + 72 * + 11 AS col2
----
-2
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3653
SELECT + COUNT( * ) + + CASE 33 WHEN - 93 - + 97 THEN + - 49 + + 40 * + COALESCE ( 70, - 39 ) / ( ( + COUNT( * ) ) ) + - 8 - - + MIN( 72 ) * + MIN( - + CAST( NULL AS SIGNED ) ) WHEN + 88 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT + COUNT ( * ) + + CASE 33 WHEN - 93 - + 97 THEN + - 49 + + 40 * + COALESCE ( 70, - 39 ) / ( ( + COUNT ( * ) ) ) + - 8 - - + MIN ( 72 ) * + MIN ( - + CAST ( NULL AS INTEGER ) ) WHEN + 88 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 5 * + 10
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT + - 42 * 38 + MAX( + 44 ) - 39
----
-1591

skipif mysql # not compatible
query I rowsort label-3655
SELECT + - 42 * 38 + MAX ( + 44 ) - 39
----
-1591

query I rowsort
SELECT - - 37 * 2
----
74

query I rowsort
SELECT DISTINCT - 69 * 7 * + + ( + - 69 ) - + 63 * - - 55 + + - 92 + - - 89 AS col1
----
29859

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

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

query I rowsort
SELECT ALL 58 col0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3660
SELECT DISTINCT + 83 * - ( ( 88 ) ) * - 10 + - - MIN( DISTINCT + 25 ) + - - 3 + - 22 + - 9 DIV - - 88 * COUNT( * )
----
73046

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT + 83 * - ( ( 88 ) ) * - 10 + - - MIN ( DISTINCT + 25 ) + - - 3 + - 22 + - 9 / - - 88 * COUNT ( * )
----
73046

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

skipif mysql # not compatible
query I rowsort label-3661
SELECT - CAST ( NULL AS INTEGER ) * - 39 * + + 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3662
SELECT + 36 * - 51 + + - COUNT( ALL - - 77 ) + COUNT( * ) - - CASE + 96 WHEN + - 42 + + - COALESCE ( ( CASE - 31 WHEN MAX( + 88 ) * CAST( NULL AS SIGNED ) + NULLIF ( - 37, 76 ) * + + 75 * + - 38 * - - 41 THEN NULL ELSE + - 99 END ), + 99 ) THEN NULL WHEN 34 THEN + 31 * - 45 + - + 60 END AS col1, 35
----
NULL
35

skipif mysql # not compatible
query II rowsort label-3662
SELECT + 36 * - 51 + + - COUNT ( ALL - - 77 ) + COUNT ( * ) - - CASE + 96 WHEN + - 42 + + - COALESCE ( ( CASE - 31 WHEN MAX ( + 88 ) * CAST ( NULL AS INTEGER ) + NULLIF ( - 37, 76 ) * + + 75 * + - 38 * - - 41 THEN NULL ELSE + - 99 END ), + 99 ) THEN NULL WHEN 34 THEN + 31 * - 45 + - + 60 END AS col1, 35
----
NULL
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3663
SELECT ALL + 46 - - 99 + - COUNT( * ) * + - 77 + - ( - + 54 ) + 31 AS col1, - 15 + - 62 + + + 77 AS col2
----
307
0

skipif mysql # not compatible
query II rowsort label-3663
SELECT ALL + 46 - - 99 + - COUNT ( * ) * + - 77 + - ( - + 54 ) + 31 AS col1, - 15 + - 62 + + + 77 AS col2
----
307
0

query I rowsort
SELECT + 0 * 36 col1
----
0

query II rowsort
SELECT 87 * + 95 * + 83 AS col2, 2 AS col0
----
685995
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT COUNT( * ) + CAST( + 81 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-3666
SELECT COUNT ( * ) + CAST ( + 81 AS INTEGER )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3667
SELECT ALL 79 AS col1, + MIN( + + CAST( NULL AS SIGNED ) ) * - 44
----
79
NULL

skipif mysql # not compatible
query II rowsort label-3667
SELECT ALL 79 AS col1, + MIN ( + + CAST ( NULL AS INTEGER ) ) * - 44
----
79
NULL

query I rowsort
SELECT DISTINCT + 86 * + 6 AS col1
----
516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT 96 / - CASE - - NULLIF ( + COALESCE ( + 4, - 62 + - 65 ), + 93 ) WHEN 97 + - COUNT( * ) + + 39 / - COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + AVG ( - 55 ) END * 29 + - 46 + + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT 96 / - CASE - - NULLIF ( + COALESCE ( + 4, - 62 + - 65 ), + 93 ) WHEN 97 + - COUNT ( * ) + + 39 / - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + AVG ( - 55 ) END * 29 + - 46 + + 65 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3671
SELECT ALL + 41 DIV - 97 * - 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL + 41 / - 97 * - 42 AS col0
----
0

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

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

query I rowsort
SELECT ALL 3 + 17
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT DISTINCT ( 20 ) * 22 DIV + 44 + + 61
----
71

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT ( 20 ) * 22 / + 44 + + 61
----
71

query I rowsort
SELECT 31 * - 38 AS col2
----
-1178

query I rowsort
SELECT DISTINCT - 24 + + + 82
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3677
SELECT ALL - 96 * - + 19 * - 74 * 20 * + COUNT( ALL 90 ), CASE + 25 WHEN + 52 THEN NULL ELSE + SUM( DISTINCT 20 ) - - 42 END AS col2
----
-2699520
62

skipif mysql # not compatible
query II rowsort label-3677
SELECT ALL - 96 * - + 19 * - 74 * 20 * + COUNT ( ALL 90 ), CASE + 25 WHEN + 52 THEN NULL ELSE + SUM ( DISTINCT 20 ) - - 42 END AS col2
----
-2699520
62

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3680
SELECT - CAST( NULL AS SIGNED ) * + AVG ( - 86 ) + ( 5 ) AS col2, 42 AS col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-3680
SELECT - CAST ( NULL AS INTEGER ) * + AVG ( - 86 ) + ( 5 ) AS col2, 42 AS col2
----
NULL
42

query I rowsort
SELECT 64 * + + 15
----
960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3682
SELECT + MIN( DISTINCT + CAST( - 54 AS SIGNED ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3682
SELECT + MIN ( DISTINCT + CAST ( - 54 AS INTEGER ) ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT SUM( DISTINCT 80 ) + + + 63 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-3683
SELECT SUM ( DISTINCT 80 ) + + + 63 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT DISTINCT 39 * - 36 * COUNT( * ) col2
----
-1404

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT 39 * - 36 * COUNT ( * ) col2
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT DISTINCT COUNT( DISTINCT - 11 ) - - + 34 + + 68
----
103

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT COUNT ( DISTINCT - 11 ) - - + 34 + + 68
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL + 19 * - + COUNT( - 36 ) * NULLIF ( + - 21, - 29 )
----
399

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + 19 * - + COUNT ( - 36 ) * NULLIF ( + - 21, - 29 )
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT + SUM( + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-3687
SELECT + SUM ( + 81 )
----
81

query I rowsort
SELECT DISTINCT 6 * + - COALESCE ( 36, + 21 * - - 63 - + 91 + + + 7 )
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - COUNT( * ) * + COUNT( * ) * + 65 + + + 31 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3689
SELECT - COUNT ( * ) * + COUNT ( * ) * + 65 + + + 31 AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3690
SELECT ( - 84 ) DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-3690
SELECT ( - 84 ) / - + 95
----
0

query I rowsort
SELECT 67 * + + 36 AS col1
----
2412

query I rowsort
SELECT ALL 24 * - - 15 col0
----
360

query I rowsort
SELECT + 9 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT + 98 + - - MIN( DISTINCT - 91 )
----
7

skipif mysql # not compatible
query I rowsort label-3694
SELECT + 98 + - - MIN ( DISTINCT - 91 )
----
7

query I rowsort
SELECT 13 * + 79
----
1027

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT 80 + COUNT( ALL 22 )
----
81

skipif mysql # not compatible
query I rowsort label-3696
SELECT 80 + COUNT ( ALL 22 )
----
81

query I rowsort
SELECT ALL 74 col1
----
74

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

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

query I rowsort
SELECT ALL 87 * 97 AS col1
----
8439

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT DISTINCT 27, + 58 * - + MIN( 84 ) col2
----
27
-4872

skipif mysql # not compatible
query II rowsort label-3700
SELECT DISTINCT 27, + 58 * - + MIN ( 84 ) col2
----
27
-4872

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT DISTINCT + 54 * 54 DIV - 20
----
-145

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + 54 * 54 / - 20
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3702
SELECT CAST( COALESCE ( - 3, - 31 * - - 20 * - + CAST( - ( - ( + - 99 ) ) AS SIGNED ) - - 86 + - 55 * - MIN( - - 44 ) ) AS SIGNED ) + + - 40 - - - MAX( DISTINCT + 81 ) AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-3702
SELECT CAST ( COALESCE ( - 3, - 31 * - - 20 * - + CAST ( - ( - ( + - 99 ) ) AS INTEGER ) - - 86 + - 55 * - MIN ( - - 44 ) ) AS INTEGER ) + + - 40 - - - MAX ( DISTINCT + 81 ) AS col1
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT ALL - 9 + 25 + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL - 9 + 25 + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3704
SELECT 38 - 11 - - CAST( NULL AS SIGNED ) * - 87 * ( - ( 32 ) ) * + COALESCE ( + 90, + 21 * - - 4, SUM( + + 73 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT 38 - 11 - - CAST ( NULL AS INTEGER ) * - 87 * ( - ( 32 ) ) * + COALESCE ( + 90, + 21 * - - 4, SUM ( + + 73 ) ) col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3705
SELECT COUNT ( * ) * 20
----
20

query I rowsort
SELECT ALL - 37 * - - 64
----
-2368

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT 21 + + 70 * - + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-3707
SELECT 21 + + 70 * - + COUNT ( * )
----
-49

query I rowsort
SELECT ALL 74 + 63 AS col0
----
137

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3709
SELECT DISTINCT + 92 + - MAX( - + 84 ) + - + 3 + + SUM( ALL + - 77 ) + - 95 * + CAST( NULL AS DECIMAL ) / - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT + 92 + - MAX ( - + 84 ) + - + 3 + + SUM ( ALL + - 77 ) + - 95 * + CAST ( NULL AS REAL ) / - 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3710
SELECT ALL - ( + 80 ) * 5 * + 75 AS col0, CAST( 64 AS SIGNED ) + - 52 / CAST( - - 93 AS SIGNED ) + - CASE + + COUNT( * ) WHEN 24 * - CASE + COALESCE ( - 85, - + 7 ) WHEN + 27 * + - 5 * + 26 * - 29 + + + 2 + + 37 THEN NULL ELSE + ( 5 ) END + - 60 * - - ( + 7 ) + + 64 THEN - 50 END AS col2
----
-30000
NULL

skipif mysql # not compatible
query II rowsort label-3710
SELECT ALL - ( + 80 ) * 5 * + 75 AS col0, CAST ( 64 AS INTEGER ) + - 52 / CAST ( - - 93 AS INTEGER ) + - CASE + + COUNT ( * ) WHEN 24 * - CASE + COALESCE ( - 85, - + 7 ) WHEN + 27 * + - 5 * + 26 * - 29 + + + 2 + + 37 THEN NULL ELSE + ( 5 ) END + - 60 * - - ( + 7 ) + + 64 THEN - 50 END AS col2
----
-30000
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3711
SELECT ALL + 46 + + 25 DIV + + COUNT( - 28 )
----
71

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL + 46 + + 25 / + + COUNT ( - 28 )
----
71

query I rowsort
SELECT 47 + - - 62 + + 77 * + 66
----
5191

query I rowsort
SELECT DISTINCT - 23 col2
----
-23

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3715
SELECT DISTINCT - + NULLIF ( 60, + ( - 81 ) * CAST( SUM( + 47 ) AS SIGNED ) DIV 99 ) DIV - ( + 33 )
----
1

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT - + NULLIF ( 60, + ( - 81 ) * CAST ( SUM ( + 47 ) AS INTEGER ) / 99 ) / - ( + 33 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT ALL 65 * 71 + + COUNT( * ) + - + 57 * - 57 col2
----
7865

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL 65 * 71 + + COUNT ( * ) + - + 57 * - 57 col2
----
7865

query I rowsort
SELECT 43 * - 30
----
-1290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3718
SELECT 89 DIV - MAX( DISTINCT - ( + + 48 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3718
SELECT 89 / - MAX ( DISTINCT - ( + + 48 ) ) AS col1
----
1

query I rowsort
SELECT + + 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT DISTINCT NULLIF ( + 35, - 19 * COUNT( * ) - 29 ) * - COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT NULLIF ( + 35, - 19 * COUNT ( * ) - 29 ) * - COUNT ( * ) AS col0
----
-35

query I rowsort
SELECT DISTINCT 23 * 64 - - 28
----
1500

query I rowsort
SELECT ALL + + 72 AS col2
----
72

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3724
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) * CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0, COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3724
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) * CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col0, COUNT ( * ) col2
----
NULL
1

query I rowsort
SELECT DISTINCT + + 90
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3726
SELECT ALL + - ( CASE + 49 WHEN + SUM( + + 4 ) * + + 34 THEN - - CAST( NULL AS SIGNED ) * + ( + COUNT( * ) ) * - - 91 + + + COUNT( + 98 ) * + - 77 * - 61 / + 14 WHEN + 47 * + 53 THEN + + 61 ELSE + 89 + + CAST( NULL AS SIGNED ) / + + 52 + 64 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL + - ( CASE + 49 WHEN + SUM ( + + 4 ) * + + 34 THEN - - CAST ( NULL AS INTEGER ) * + ( + COUNT ( * ) ) * - - 91 + + + COUNT ( + 98 ) * + - 77 * - 61 / + 14 WHEN + 47 * + 53 THEN + + 61 ELSE + 89 + + CAST ( NULL AS INTEGER ) / + + 52 + 64 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3727
SELECT + CAST( - ( - - SUM( 91 ) ) AS SIGNED ) * - + 36 AS col1
----
3276

skipif mysql # not compatible
query I rowsort label-3727
SELECT + CAST ( - ( - - SUM ( 91 ) ) AS INTEGER ) * - + 36 AS col1
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT - SUM( ALL 69 ) * + 76 + + - CASE MAX( ( - 10 ) ) WHEN + + 7 - + 76 * 73 THEN ( + NULLIF ( - 97, 4 * 57 ) ) + + 89 * 68 ELSE 69 END + + 82
----
-5231

skipif mysql # not compatible
query I rowsort label-3728
SELECT - SUM ( ALL 69 ) * + 76 + + - CASE MAX ( ( - 10 ) ) WHEN + + 7 - + 76 * 73 THEN ( + NULLIF ( - 97, 4 * 57 ) ) + + 89 * 68 ELSE 69 END + + 82
----
-5231

query I rowsort
SELECT ALL + ( + 59 ) AS col1
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-3730
SELECT + 82 DIV + 80 AS col0, 51 AS col1
----
1
51

skipif mysql # not compatible
query II rowsort label-3730
SELECT + 82 / + 80 AS col0, 51 AS col1
----
1
51

query I rowsort
SELECT ALL 93 * 9
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT + 99 + + CASE - - 52 WHEN + - 92 - + 79 + 90 / - COUNT( * ) THEN - 59 * + 6 + - - 16 ELSE 12 END AS col1
----
111

skipif mysql # not compatible
query I rowsort label-3732
SELECT + 99 + + CASE - - 52 WHEN + - 92 - + 79 + 90 / - COUNT ( * ) THEN - 59 * + 6 + - - 16 ELSE 12 END AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT DISTINCT ( - + NULLIF ( + - 54, + - 92 + + - COUNT( * ) + 34 ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT ( - + NULLIF ( + - 54, + - 92 + + - COUNT ( * ) + 34 ) ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3734
SELECT + 75 + + COUNT( * ), 94 - + 85 AS col2
----
76
9

skipif mysql # not compatible
query II rowsort label-3734
SELECT + 75 + + COUNT ( * ), 94 - + 85 AS col2
----
76
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT ( + - COUNT( * ) ) * COUNT( * ) * + 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT ( + - COUNT ( * ) ) * COUNT ( * ) * + 45 AS col0
----
-45

query I rowsort
SELECT DISTINCT 80 col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL 57 + - + MAX( DISTINCT - COALESCE ( - + 33, + 64 * 53 ) )
----
24

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL 57 + - + MAX ( DISTINCT - COALESCE ( - + 33, + 64 * 53 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT - COUNT( - 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3738
SELECT - COUNT ( - 35 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3739
SELECT + 28 * 2 AS col1, 64 + COUNT( DISTINCT + + 92 ) - 86 AS col1
----
56
-21

skipif mysql # not compatible
query II rowsort label-3739
SELECT + 28 * 2 AS col1, 64 + COUNT ( DISTINCT + + 92 ) - 86 AS col1
----
56
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + COUNT( * ) + + 31 + 21 + 19 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3740
SELECT + COUNT ( * ) + + 31 + 21 + 19 AS col0
----
72

query I rowsort
SELECT DISTINCT ( - 56 ) * + 57
----
-3192

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT + 16 DIV + - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT + 16 / + - 53 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3743
SELECT - 21 + - - COALESCE ( - 22, 12 + + - 95 DIV - - COUNT( DISTINCT 25 ) DIV - AVG ( DISTINCT - 28 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-3743
SELECT - 21 + - - COALESCE ( - 22, 12 + + - 95 / - - COUNT ( DISTINCT 25 ) / - AVG ( DISTINCT - 28 ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ALL COUNT( * ) + + + 81
----
82

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL COUNT ( * ) + + + 81
----
82

query I rowsort
SELECT + 92 * - 36
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT DISTINCT MAX( DISTINCT 0 ) + + 28 + + ( - 28 )
----
0

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT MAX ( DISTINCT 0 ) + + 28 + + ( - 28 )
----
0

query I rowsort
SELECT ALL + 78 + + 74 + - 95
----
57

query I rowsort
SELECT + 62 * - - 66 * 41
----
167772

query I rowsort
SELECT + 50 - 44 AS col2
----
6

query I rowsort
SELECT - + 24 * 28 * - - 68 AS col2
----
-45696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT ALL - CAST( NULL AS SIGNED ) * 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL - CAST ( NULL AS INTEGER ) * 13 AS col2
----
NULL

query I rowsort
SELECT - ( + 11 ) AS col0
----
-11

query I rowsort
SELECT ALL + COALESCE ( + + 26, 67 ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT ALL - + CAST( + 28 AS SIGNED ) * - 19 + 88 + - NULLIF ( 27, COUNT( * ) - COUNT( * ) ) + COUNT( * ) + + 2
----
596

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL - + CAST ( + 28 AS INTEGER ) * - 19 + 88 + - NULLIF ( 27, COUNT ( * ) - COUNT ( * ) ) + COUNT ( * ) + + 2
----
596

query I rowsort
SELECT ALL + 75 * 59 AS col0
----
4425

onlyif mysql # DIV for integer division: 
query I rowsort label-3756
SELECT DISTINCT - 93 DIV + + 77 - ( + + 57 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT - 93 / + + 77 - ( + + 57 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL + NULLIF ( + 86, + + MAX( 56 ) + - - 27 + - 92 )
----
86

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + NULLIF ( + 86, + + MAX ( 56 ) + - - 27 + - 92 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT ALL - 3 DIV + ( + 42 ) - - 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL - 3 / + ( + 42 ) - - 26 AS col0
----
26

query I rowsort
SELECT - - 97 * 16 AS col0
----
1552

onlyif mysql # aggregate syntax: 
query II rowsort label-3760
SELECT + SUM( ALL 73 ) * + + 94 + 47 + - 23 AS col2, - ( + 99 ) + - COALESCE ( 53, - 81 ) + - 86
----
6886
-238

skipif mysql # not compatible
query II rowsort label-3760
SELECT + SUM ( ALL 73 ) * + + 94 + 47 + - 23 AS col2, - ( + 99 ) + - COALESCE ( 53, - 81 ) + - 86
----
6886
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT - + COUNT( * ) * 20 * + MAX( ( - 29 ) ) + + 90
----
670

skipif mysql # not compatible
query I rowsort label-3761
SELECT - + COUNT ( * ) * 20 * + MAX ( ( - 29 ) ) + + 90
----
670

query I rowsort
SELECT + ( NULLIF ( + COALESCE ( + 2, - 1 ), 62 * + + 7 * 49 ) ) * + 1 + + 59 * + ( 38 ) AS col0
----
2244

query I rowsort
SELECT ALL + + 19 AS col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT - - CAST( 92 AS SIGNED ) * + 70 * 83 col0
----
534520

skipif mysql # not compatible
query I rowsort label-3764
SELECT - - CAST ( 92 AS INTEGER ) * + 70 * 83 col0
----
534520

query I rowsort
SELECT ALL + + 63 col2
----
63

query I rowsort
SELECT ALL + 70 * 55 + 87 AS col1
----
3937

query I rowsort
SELECT ALL 52 * + - ( 27 )
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT NULLIF ( - - 23, COUNT( * ) * - + MIN( - 63 ) / - COUNT( * ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3768
SELECT NULLIF ( - - 23, COUNT ( * ) * - + MIN ( - 63 ) / - COUNT ( * ) ) AS col2
----
23

query I rowsort
SELECT ALL - 81 * - 67
----
5427

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - 15 * - MIN( - ( - 75 ) ) * - + MIN( ALL + 35 ) + + 61 + 9 * 70 + 90 + - 80
----
-38674

skipif mysql # not compatible
query I rowsort label-3770
SELECT - 15 * - MIN ( - ( - 75 ) ) * - + MIN ( ALL + 35 ) + + 61 + 9 * 70 + 90 + - 80
----
-38674

query II rowsort
SELECT ALL + 86, 62 AS col2
----
86
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT + MAX( ALL + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-3772
SELECT + MAX ( ALL + 16 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3773
SELECT ALL + 17 * - 13 + COUNT( - CAST( - - 52 AS SIGNED ) ) - - 31 DIV 89 + + + 68 AS col2, + 88
----
-152
88

skipif mysql # not compatible
query II rowsort label-3773
SELECT ALL + 17 * - 13 + COUNT ( - CAST ( - - 52 AS INTEGER ) ) - - 31 / 89 + + + 68 AS col2, + 88
----
-152
88

query I rowsort
SELECT NULLIF ( + 66, - 54 + + 23 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT - NULLIF ( - - 84, COALESCE ( + 27, + + ( + COUNT( * ) ) + - 25 ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3775
SELECT - NULLIF ( - - 84, COALESCE ( + 27, + + ( + COUNT ( * ) ) + - 25 ) ) AS col0
----
-84

query I rowsort
SELECT - 40 + + 16
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT COUNT( + + 67 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3777
SELECT COUNT ( + + 67 ) AS col2
----
1

query II rowsort
SELECT ALL + 90 * + 59 + - 84 AS col0, - 26 AS col1
----
5226
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3779
SELECT DISTINCT + ( - - 52 ) * + 14 + - + 88 * - - SUM( - - 10 ), - COUNT( * ) AS col0
----
-152
-1

skipif mysql # not compatible
query II rowsort label-3779
SELECT DISTINCT + ( - - 52 ) * + 14 + - + 88 * - - SUM ( - - 10 ), - COUNT ( * ) AS col0
----
-152
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT COUNT( 72 )
----
1

skipif mysql # not compatible
query I rowsort label-3780
SELECT COUNT ( 72 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3781
SELECT DISTINCT + ( - - 12 ) + + 1 + COUNT( * ) * + - 19 * 41, ( - - 7 ) AS col2
----
-766
7

skipif mysql # not compatible
query II rowsort label-3781
SELECT DISTINCT + ( - - 12 ) + + 1 + COUNT ( * ) * + - 19 * 41, ( - - 7 ) AS col2
----
-766
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT 74 * + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT 74 * + + COUNT ( * )
----
74

query I rowsort
SELECT ALL 44 - + + 65 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT - 50 + - + COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3784
SELECT - 50 + - + COUNT ( * ) AS col2
----
-51

query I rowsort
SELECT - 9 * - 65
----
585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3786
SELECT + NULLIF ( + + 64, COUNT( * ) ) - - + 4 DIV - 21 col2
----
64

skipif mysql # not compatible
query I rowsort label-3786
SELECT + NULLIF ( + + 64, COUNT ( * ) ) - - + 4 / - 21 col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3787
SELECT 88, - MIN( ALL + - 73 ) DIV + - 26 AS col1
----
88
-2

skipif mysql # not compatible
query II rowsort label-3787
SELECT 88, - MIN ( ALL + - 73 ) / + - 26 AS col1
----
88
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3788
SELECT + + 84 + - 27 + - + 21 * 67 - 88 * + + 20 * - + 87 DIV COUNT( * )
----
151770

skipif mysql # not compatible
query I rowsort label-3788
SELECT + + 84 + - 27 + - + 21 * 67 - 88 * + + 20 * - + 87 / COUNT ( * )
----
151770

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT + - COUNT( * ) + + 75 + + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3789
SELECT + - COUNT ( * ) + + 75 + + COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL MIN( + 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL MIN ( + 42 ) AS col1
----
42

query I rowsort
SELECT 50 + + 11 AS col0
----
61

query I rowsort
SELECT DISTINCT - ( + - 77 ) col1
----
77

query I rowsort
SELECT ALL - ( 34 ) AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3794
SELECT - 28 * - 10 / - COUNT( * ) * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT - 28 * - 10 / - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3795
SELECT ALL - + 67 AS col0, COUNT( * ) + + - 80 - + 11 AS col2, + 25 AS col1
----
-67
-90
25

skipif mysql # not compatible
query III rowsort label-3795
SELECT ALL - + 67 AS col0, COUNT ( * ) + + - 80 - + 11 AS col2, + 25 AS col1
----
-67
-90
25

query I rowsort
SELECT - ( - 99 ) AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT + NULLIF ( - COALESCE ( - 38, - 4 * + ( + 18 ) + - 30 ), - CAST( NULL AS SIGNED ) )
----
38

skipif mysql # not compatible
query I rowsort label-3797
SELECT + NULLIF ( - COALESCE ( - 38, - 4 * + ( + 18 ) + - 30 ), - CAST ( NULL AS INTEGER ) )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3798
SELECT ALL - 62 col0, MAX( ALL + 63 ) + - + CAST( NULL AS SIGNED ) + + + 78
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-3798
SELECT ALL - 62 col0, MAX ( ALL + 63 ) + - + CAST ( NULL AS INTEGER ) + + + 78
----
-62
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3799
SELECT 52 DIV + 79 + + 72 AS col2, + 31 AS col1
----
72
31

skipif mysql # not compatible
query II rowsort label-3799
SELECT 52 / + 79 + + 72 AS col2, + 31 AS col1
----
72
31

query I rowsort
SELECT ALL 47 + + 50 AS col1
----
97

query I rowsort
SELECT DISTINCT - 69 * - + 77 col2
----
5313

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT ALL + - 30 + + 15 + 79 - + + 15 DIV + 79
----
64

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL + - 30 + + 15 + 79 - + + 15 / + 79
----
64

query II rowsort
SELECT DISTINCT - + 35 AS col0, + 42 AS col0
----
-35
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3804
SELECT DISTINCT - 19 + - 23 DIV - + COUNT( * ), 15 * + 51 AS col0
----
4
765

skipif mysql # not compatible
query II rowsort label-3804
SELECT DISTINCT - 19 + - 23 / - + COUNT ( * ), 15 * + 51 AS col0
----
4
765

query I rowsort
SELECT 22 * - - 47
----
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL - COUNT( DISTINCT - 27 ) + + 45 * + 8
----
359

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL - COUNT ( DISTINCT - 27 ) + + 45 * + 8
----
359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3807
SELECT ALL + 22 + - 53 + 69 * + COUNT( * ) * + CAST( COALESCE ( - 97, + 99, - + 9 ) AS SIGNED ) col0, + 59 + 90 + + 63 AS col1
----
-6724
212

skipif mysql # not compatible
query II rowsort label-3807
SELECT ALL + 22 + - 53 + 69 * + COUNT ( * ) * + CAST ( COALESCE ( - 97, + 99, - + 9 ) AS INTEGER ) col0, + 59 + 90 + + 63 AS col1
----
-6724
212

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT - COUNT( * ) * 48 + 70
----
22

skipif mysql # not compatible
query I rowsort label-3808
SELECT - COUNT ( * ) * 48 + 70
----
22

query I rowsort
SELECT 5 - + - 9 + + 51
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT 47 + MIN( + + 46 ) + - 36 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3810
SELECT 47 + MIN ( + + 46 ) + - 36 AS col1
----
57

query I rowsort
SELECT ALL + 78 + 25 AS col1
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3812
SELECT 37 + + CAST( NULL AS SIGNED ) / + ( + 35 ) AS col2, CASE - 82 WHEN CAST( NULL AS SIGNED ) THEN 45 WHEN - - 2 * + ( 41 ) + - + 2 + COUNT( * ) + 16 / ( + 70 ) * - - 50 + + 0 THEN NULL ELSE NULL END * + 99 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3812
SELECT 37 + + CAST ( NULL AS INTEGER ) / + ( + 35 ) AS col2, CASE - 82 WHEN CAST ( NULL AS INTEGER ) THEN 45 WHEN - - 2 * + ( 41 ) + - + 2 + COUNT ( * ) + 16 / ( + 70 ) * - - 50 + + 0 THEN NULL ELSE NULL END * + 99 AS col0
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 5 * - 54 AS col2
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT - 33 * - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT - 33 * - COUNT ( * ) AS col0
----
33

query I rowsort
SELECT 56 + - 65 col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL + COUNT( * ) * - + ( + 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL + COUNT ( * ) * - + ( + 35 ) AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT 27 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT 27 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 72 + 13
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT 87 * + 24 * - SUM( ALL + + 89 ) + MIN( 9 )
----
-185823

skipif mysql # not compatible
query I rowsort label-3819
SELECT 87 * + 24 * - SUM ( ALL + + 89 ) + MIN ( 9 )
----
-185823

query I rowsort
SELECT DISTINCT 82 col2
----
82

query II rowsort
SELECT DISTINCT + 36 * + 61 AS col1, 91
----
2196
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3822
SELECT DISTINCT + COUNT( * ) DIV - 19 AS col0, + 63 AS col0
----
0
63

skipif mysql # not compatible
query II rowsort label-3822
SELECT DISTINCT + COUNT ( * ) / - 19 AS col0, + 63 AS col0
----
0
63

query I rowsort
SELECT 98 - + 22 AS col1
----
76

query I rowsort
SELECT - 35 - - - 28
----
-63

query I rowsort
SELECT ALL 74 * 34 AS col1
----
2516

query I rowsort
SELECT - 48 * - 17 + + 27 + + + 77 AS col0
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT - 18 * + 2 - + - 77 * - NULLIF ( + + 78, - COUNT( * ) )
----
-6042

skipif mysql # not compatible
query I rowsort label-3827
SELECT - 18 * + 2 - + - 77 * - NULLIF ( + + 78, - COUNT ( * ) )
----
-6042

query I rowsort
SELECT DISTINCT - 73 * + 27 + 94 AS col2
----
-1877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT ALL + 40 * - + 55 - + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + 40 * - + 55 - + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3830
SELECT ALL 45 + + + 8 DIV + 92 * + 49 * - - 25 AS col2, + 57 AS col1
----
45
57

skipif mysql # not compatible
query II rowsort label-3830
SELECT ALL 45 + + + 8 / + 92 * + 49 * - - 25 AS col2, + 57 AS col1
----
45
57

query I rowsort
SELECT 71 * + 31 - - 35 AS col0
----
2236

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3832
SELECT DISTINCT ( - MIN( ALL 10 ) ) + ( 89 ) + + - CASE - 67 WHEN COUNT( * ) + - + 18 + - COALESCE ( + - COUNT( DISTINCT - CAST( 61 AS DECIMAL ) ), + 88, 22 ) THEN - 13 + + 99 * + 84 + + 22 ELSE NULL END + - 21 - - 64 / + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT ( - MIN ( ALL 10 ) ) + ( 89 ) + + - CASE - 67 WHEN COUNT ( * ) + - + 18 + - COALESCE ( + - COUNT ( DISTINCT - CAST ( 61 AS REAL ) ), + 88, 22 ) THEN - 13 + + 99 * + 84 + + 22 ELSE NULL END + - 21 - - 64 / + 18
----
NULL

query II rowsort
SELECT ALL + 90 + + 81, - 21 AS col2
----
171
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) / 78 * - - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) / 78 * - - 72 AS col2
----
NULL

query I rowsort
SELECT 27 * + 42 * - COALESCE ( - 4, + - 44 ) + - 48 + + 83 col0
----
4571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3836
SELECT MAX( ALL 14 ) * - CAST( NULL AS SIGNED ) - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT MAX ( ALL 14 ) * - CAST ( NULL AS INTEGER ) - 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3837
SELECT DISTINCT COUNT( * ) DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT COUNT ( * ) / - 38
----
0

query I rowsort
SELECT DISTINCT - 46 + 28
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3839
SELECT COUNT( * ) + + 74 * - 78 AS col0, 18 * - CAST( + - 46 AS SIGNED ) col1
----
-5771
828

skipif mysql # not compatible
query II rowsort label-3839
SELECT COUNT ( * ) + + 74 * - 78 AS col0, 18 * - CAST ( + - 46 AS INTEGER ) col1
----
-5771
828

query II rowsort
SELECT ALL - 11 AS col0, ( - 97 ) AS col2
----
-11
-97

query II rowsort
SELECT ALL - 82 AS col1, 86 col0
----
-82
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL - MAX( DISTINCT - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - MAX ( DISTINCT - 26 )
----
26

query II rowsort
SELECT + 93 AS col0, + 50
----
93
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT 40 DIV - - 25 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3844
SELECT 40 / - - 25 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3845
SELECT ALL - 56 DIV 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL - 56 / 60 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3846
SELECT ALL - 47 DIV - COALESCE ( - + COUNT( * ), - 1 )
----
-47

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - 47 / - COALESCE ( - + COUNT ( * ), - 1 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT DISTINCT 26 DIV + - ( + 73 )
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT 26 / + - ( + 73 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT - MIN( DISTINCT - - 10 ) - - 79
----
69

skipif mysql # not compatible
query I rowsort label-3848
SELECT - MIN ( DISTINCT - - 10 ) - - 79
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT + 75 * - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT + 75 * - COUNT ( * )
----
-75

query I rowsort
SELECT ALL + + 31 * + - 78 AS col0
----
-2418

query I rowsort
SELECT - + 1 + - + 84 col1
----
-85

query I rowsort
SELECT ALL + + 14 * + 93 * - 57 * + - 75 AS col2
----
5566050

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT - COUNT( * ) + - CASE - + 50 WHEN - 25 THEN COUNT( * ) END + - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT - COUNT ( * ) + - CASE - + 50 WHEN - 25 THEN COUNT ( * ) END + - 65 AS col1
----
NULL

query I rowsort
SELECT - 80 * - + 36
----
2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3855
SELECT ALL + + 39 + - CASE + 16 WHEN + 61 THEN 68 WHEN - COUNT( * ) THEN + + 6 ELSE NULL END * - ( - 0 ) * + COUNT( * ) + CAST( + + ( 65 ) AS SIGNED ) - + + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL + + 39 + - CASE + 16 WHEN + 61 THEN 68 WHEN - COUNT ( * ) THEN + + 6 ELSE NULL END * - ( - 0 ) * + COUNT ( * ) + CAST ( + + ( 65 ) AS INTEGER ) - + + 12 AS col0
----
NULL

query I rowsort
SELECT - 89 - - 83 + + ( - 16 )
----
-22

query II rowsort
SELECT 17, - 55 * 24 AS col2
----
17
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL - 71 + - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL - 71 + - COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT + + 60 - 70 + - + 80
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT DISTINCT + - 72 * + COUNT( * ) + + + ( + 23 )
----
-49

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT + - 72 * + COUNT ( * ) + + + ( + 23 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3861
SELECT ALL - 30 + + - SUM( - - CAST( NULL AS DECIMAL ) ) * - 56 * - 51 * 0 * 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL - 30 + + - SUM ( - - CAST ( NULL AS REAL ) ) * - 56 * - 51 * 0 * 78 AS col2
----
NULL

query I rowsort
SELECT + - 25 + - 59
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT DISTINCT + + ( - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT + + ( - COUNT ( * ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT + MAX( + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-3864
SELECT + MAX ( + 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT - + COUNT( * ) * 38 + - ( - 52 )
----
14

skipif mysql # not compatible
query I rowsort label-3865
SELECT - + COUNT ( * ) * 38 + - ( - 52 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT DISTINCT - 86 * - - COUNT( * ) + ( - + 1 )
----
-87

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT - 86 * - - COUNT ( * ) + ( - + 1 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3867
SELECT ALL + + 15 * + 93 + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) - 11 + + ( - 86 ) + - - CASE 9 WHEN - - CAST( 18 AS DECIMAL ) * 90 DIV - 30 THEN NULL ELSE 38 END * 41 + - + MIN( 2 ) DIV + NULLIF ( - 94, CASE 12 WHEN - + 40 THEN + 34 WHEN - - 96 * CASE + - AVG ( + - CAST( - 95 AS SIGNED ) ) WHEN + - CASE + 39 WHEN 41 THEN NULL ELSE 0 END THEN COUNT( * ) WHEN - - 0 THEN NULL WHEN 34 THEN NULL END THEN NULL END )
----
2856

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL + + 15 * + 93 + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) - 11 + + ( - 86 ) + - - CASE 9 WHEN - - CAST ( 18 AS REAL ) * 90 / - 30 THEN NULL ELSE 38 END * 41 + - + MIN ( 2 ) / + NULLIF ( - 94, CASE 12 WHEN - + 40 THEN + 34 WHEN - - 96 * CASE + - AVG ( + - CAST ( - 95 AS INTEGER ) ) WHEN + - CASE + 39 WHEN 41 THEN NULL ELSE 0 END THEN COUNT ( * ) WHEN - - 0 THEN NULL WHEN 34 THEN NULL END THEN NULL END )
----
2856

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT - 49 DIV + - 22 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3868
SELECT - 49 / + - 22 AS col0
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-3869
SELECT 23 DIV - 54 + + + 88 DIV 15 + + + ( - 61 ) AS col1, - 65 * - 58
----
-56
3770

skipif mysql # not compatible
query II rowsort label-3869
SELECT 23 / - 54 + + + 88 / 15 + + + ( - 61 ) AS col1, - 65 * - 58
----
-56
3770

query I rowsort
SELECT NULLIF ( - 15, + + 84 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT - 76 * - 28 * - COUNT( - 95 )
----
-2128

skipif mysql # not compatible
query I rowsort label-3871
SELECT - 76 * - 28 * - COUNT ( - 95 )
----
-2128

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT + MIN( ALL - 49 ) + - - 7
----
-42

skipif mysql # not compatible
query I rowsort label-3872
SELECT + MIN ( ALL - 49 ) + - - 7
----
-42

query I rowsort
SELECT DISTINCT - 5 * 16
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3874
SELECT ALL + CASE + 13 WHEN - 59 THEN + 46 + - 91 + + - 4 WHEN + + 81 / + CASE - - 49 WHEN 55 + - 41 + + CAST( NULL AS SIGNED ) + - 84 + - 49 + + 85 / + - 53 / - 46 + - 37 * + - 8 THEN + - 53 * + 16 + + 5 * + 62 + - COUNT( * ) - CAST( NULL AS SIGNED ) - 7 WHEN + + 49 THEN + 97 * 92 + + 12 - - 45 WHEN + - 65 - + 70 THEN NULL ELSE NULL END THEN NULL WHEN NULLIF ( - 93, + - CAST( NULL AS SIGNED ) ) * + CAST( 38 AS DECIMAL ) THEN NULL ELSE NULL END * 8 - + 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + CASE + 13 WHEN - 59 THEN + 46 + - 91 + + - 4 WHEN + + 81 / + CASE - - 49 WHEN 55 + - 41 + + CAST ( NULL AS INTEGER ) + - 84 + - 49 + + 85 / + - 53 / - 46 + - 37 * + - 8 THEN + - 53 * + 16 + + 5 * + 62 + - COUNT ( * ) - CAST ( NULL AS INTEGER ) - 7 WHEN + + 49 THEN + 97 * 92 + + 12 - - 45 WHEN + - 65 - + 70 THEN NULL ELSE NULL END THEN NULL WHEN NULLIF ( - 93, + - CAST ( NULL AS INTEGER ) ) * + CAST ( 38 AS REAL ) THEN NULL ELSE NULL END * 8 - + 28 col0
----
NULL

query I rowsort
SELECT + 69 * + ( + + 32 )
----
2208

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT ALL + 66 col0, - COUNT( - 18 ) AS col0
----
66
-1

skipif mysql # not compatible
query II rowsort label-3876
SELECT ALL + 66 col0, - COUNT ( - 18 ) AS col0
----
66
-1

query I rowsort
SELECT DISTINCT + 32 * - + 34
----
-1088

query I rowsort
SELECT DISTINCT + 42 * 84 - 11 + - 81 col1
----
3436

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - COUNT( * ) * - COUNT( * ) + - - 94
----
95

skipif mysql # not compatible
query I rowsort label-3879
SELECT - COUNT ( * ) * - COUNT ( * ) + - - 94
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT ALL - 9 * + CAST( + ( - 77 ) AS SIGNED ) - + + 5 AS col0
----
688

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL - 9 * + CAST ( + ( - 77 ) AS INTEGER ) - + + 5 AS col0
----
688

onlyif mysql # aggregate syntax: 
query II rowsort label-3881
SELECT DISTINCT + 89 AS col0, SUM( ALL 36 ) - + 77 + 13 AS col0
----
89
-28

skipif mysql # not compatible
query II rowsort label-3881
SELECT DISTINCT + 89 AS col0, SUM ( ALL 36 ) - + 77 + 13 AS col0
----
89
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT + 10 * - - 9 * MAX( DISTINCT - 83 ) col0
----
-7470

skipif mysql # not compatible
query I rowsort label-3882
SELECT + 10 * - - 9 * MAX ( DISTINCT - 83 ) col0
----
-7470

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT + ( - SUM( ALL - 25 ) ) * - + ( ( - COUNT( * ) ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3883
SELECT + ( - SUM ( ALL - 25 ) ) * - + ( ( - COUNT ( * ) ) ) AS col0
----
25

query I rowsort
SELECT - 64 * - 42 + 38 + 44 AS col0
----
2770

query I rowsort
SELECT + 86 - 86 AS col0
----
0

query I rowsort
SELECT + ( - 94 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3887
SELECT 52 * + - 3 * CASE + - 9 WHEN + 33 THEN NULL WHEN + 57 / - 74 + - COUNT( + - 15 ) THEN + 33 * 2 + - - 2 + + 60 + + 17 + 51 * 63 + + CASE - COUNT( * ) WHEN + + CASE 27 WHEN - 11 THEN + + 76 WHEN - 48 * 82 THEN NULL ELSE - - 50 * - 34 END + + + 57 + 6 + 90 THEN NULL WHEN - + 44 * COALESCE ( COALESCE ( + 75, 3, - + 59 - + + ( COUNT( * ) ) + + 15 * CAST( + 51 AS SIGNED ) ), + 1 * 25 ) * SUM( ALL + 47 + - ( - 14 ) ) + 37 + - 51 * + 72 THEN NULL ELSE 74 END END + + 99 / + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT 52 * + - 3 * CASE + - 9 WHEN + 33 THEN NULL WHEN + 57 / - 74 + - COUNT ( + - 15 ) THEN + 33 * 2 + - - 2 + + 60 + + 17 + 51 * 63 + + CASE - COUNT ( * ) WHEN + + CASE 27 WHEN - 11 THEN + + 76 WHEN - 48 * 82 THEN NULL ELSE - - 50 * - 34 END + + + 57 + 6 + 90 THEN NULL WHEN - + 44 * COALESCE ( COALESCE ( + 75, 3, - + 59 - + + ( COUNT ( * ) ) + + 15 * CAST ( + 51 AS INTEGER ) ), + 1 * 25 ) * SUM ( ALL + 47 + - ( - 14 ) ) + 37 + - 51 * + 72 THEN NULL ELSE 74 END END + + 99 / + 37 AS col1
----
NULL

query I rowsort
SELECT ALL 74 * + - 31
----
-2294

query I rowsort
SELECT + 79 * + 10 AS col1
----
790

query II rowsort
SELECT ALL + 30 col1, + 69
----
30
69

query I rowsort
SELECT + ( - 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT + CASE + - CAST( 83 AS SIGNED ) WHEN + + 74 THEN + COUNT( * ) + - 10 WHEN - 39 THEN - 70 + + - 24 * 60 * - NULLIF ( + 96, + 45 ) WHEN - - 27 THEN + 66 + + 36 WHEN ( - 4 ) THEN NULL END + ( + 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT + CASE + - CAST ( 83 AS INTEGER ) WHEN + + 74 THEN + COUNT ( * ) + - 10 WHEN - 39 THEN - 70 + + - 24 * 60 * - NULLIF ( + 96, + 45 ) WHEN - - 27 THEN + 66 + + 36 WHEN ( - 4 ) THEN NULL END + ( + 62 ) AS col2
----
NULL

query I rowsort
SELECT - ( - 53 ) AS col2
----
53

query I rowsort
SELECT ALL NULLIF ( - + 66, 47 ) AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT 30 * + - CASE - MAX( 35 ) WHEN - + 42 * + + COALESCE ( + + 25, - 99, COUNT( * ) ) + + 88 THEN 29 * + 3 + AVG ( + - CAST( + - 7 AS SIGNED ) ) + - 50 WHEN + + COALESCE ( - + 61, - 8 ) THEN - 31 * + 63 * - ( 16 ) END + + - MIN( ALL 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT 30 * + - CASE - MAX ( 35 ) WHEN - + 42 * + + COALESCE ( + + 25, - 99, COUNT ( * ) ) + + 88 THEN 29 * + 3 + AVG ( + - CAST ( + - 7 AS INTEGER ) ) + - 50 WHEN + + COALESCE ( - + 61, - 8 ) THEN - 31 * + 63 * - ( 16 ) END + + - MIN ( ALL 82 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 92 )
----
92

query I rowsort
SELECT ALL + 75 + + + 93
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-3898
SELECT - + COUNT( * ) AS col1, ( - - COUNT( * ) ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-3898
SELECT - + COUNT ( * ) AS col1, ( - - COUNT ( * ) ) AS col2
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3899
SELECT - - ( - + CASE + 84 WHEN + + 85 * - + COUNT( * ) * + 20 THEN + - 62 END ) + + 36 / - - ( + - ( - - CAST( 14 AS SIGNED ) ) ) + + ( + + 41 ) + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT - - ( - + CASE + 84 WHEN + + 85 * - + COUNT ( * ) * + 20 THEN + - 62 END ) + + 36 / - - ( + - ( - - CAST ( 14 AS INTEGER ) ) ) + + ( + + 41 ) + + 23
----
NULL

query I rowsort
SELECT ALL + 84 + - 17
----
67

query I rowsort
SELECT ALL - - 24 * + - 52 AS col1
----
-1248

query I rowsort
SELECT ALL + 15 + - + 15 + - 27 + 17 col0
----
-10

query I rowsort
SELECT - 40 * + 25 + + 40 + + - 82 * - 89 * - 58 col0
----
-424244

query II rowsort
SELECT ALL + 34 + - + 78 col1, - 34 AS col1
----
-44
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT - 53 * + 8 * + CAST( NULL AS SIGNED ) * 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT - 53 * + 8 * + CAST ( NULL AS INTEGER ) * 64 AS col2
----
NULL

query II rowsort
SELECT - 96 AS col0, + ( - 1 )
----
-96
-1

query I rowsort
SELECT ALL - 49 + 76 AS col1
----
27

query I rowsort
SELECT DISTINCT + 90 * 3 + + 29 + - 9 - + ( - 83 ) + + 83 * 93 AS col0
----
8092

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT DISTINCT + MIN( + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT + MIN ( + 3 ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3910
SELECT - - 93 - + 20 AS col2, 98 DIV 63 + - + 49 DIV - + 96 + - 3 AS col2
----
73
-2

skipif mysql # not compatible
query II rowsort label-3910
SELECT - - 93 - + 20 AS col2, 98 / 63 + - + 49 / - + 96 + - 3 AS col2
----
73
-2

query II rowsort
SELECT - 53, + 81 AS col0
----
-53
81

query I rowsort
SELECT - 93 * - COALESCE ( + ( + 34 ), - 77 )
----
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL + MIN( DISTINCT - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL + MIN ( DISTINCT - 76 ) AS col0
----
-76

query I rowsort
SELECT ALL 40 * - 69
----
-2760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT 28 * - 2 * - CASE - 0 WHEN - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) THEN + 53 * - 73 END - - + 32 + - 54 * 59 + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT 28 * - 2 * - CASE - 0 WHEN - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + 53 * - 73 END - - + 32 + - 54 * 59 + 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT + 23 DIV + - COUNT( ALL + 74 ) - 42
----
-65

skipif mysql # not compatible
query I rowsort label-3916
SELECT + 23 / + - COUNT ( ALL + 74 ) - 42
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT ALL - 65 DIV - ( - - 42 ) - + 57 + + 43 * - 52 * + - COALESCE ( + 39, 67, - 13 + + 81 ) + MIN( ALL - - 71 )
----
87219

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - 65 / - ( - - 42 ) - + 57 + + 43 * - 52 * + - COALESCE ( + 39, 67, - 13 + + 81 ) + MIN ( ALL - - 71 )
----
87219

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + ( + ( - COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + ( + ( - COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3919
SELECT + 16 DIV + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-3919
SELECT + 16 / + COUNT ( * )
----
16

query I rowsort
SELECT ALL - 56 * - + 45 AS col0
----
2520

query I rowsort
SELECT - 27 * - 81 AS col2
----
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT + MIN( + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-3922
SELECT + MIN ( + 13 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT DISTINCT - CAST( + - 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT - CAST ( + - 86 AS INTEGER )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT DISTINCT 9 DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT 9 / - 26
----
0

query I rowsort
SELECT ALL 68 + - 4
----
64

query II rowsort
SELECT DISTINCT 2 + + 7 AS col0, - 89
----
9
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT 2 * + 8 + - CASE - 70 WHEN - MIN( 59 ) THEN NULL ELSE - 36 END AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3927
SELECT 2 * + 8 + - CASE - 70 WHEN - MIN ( 59 ) THEN NULL ELSE - 36 END AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT 91 * NULLIF ( - - COUNT( * ), - 92 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-3928
SELECT 91 * NULLIF ( - - COUNT ( * ), - 92 ) col0
----
91

query I rowsort
SELECT - NULLIF ( - - 58, - 46 * 95 * + - CASE + NULLIF ( + 64, + 94 * - 15 ) WHEN - NULLIF ( - 6, - - 72 ) THEN - 71 ELSE 67 END ) * 67 + 87 AS col1
----
-3799

onlyif mysql # aggregate syntax: 
query II rowsort label-3930
SELECT ALL - 4 + COUNT( * ) * 43 AS col0, + 32 col2
----
39
32

skipif mysql # not compatible
query II rowsort label-3930
SELECT ALL - 4 + COUNT ( * ) * 43 AS col0, + 32 col2
----
39
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + 88 + COUNT( * ) * 96 * + 45
----
4408

skipif mysql # not compatible
query I rowsort label-3931
SELECT + 88 + COUNT ( * ) * 96 * + 45
----
4408

onlyif mysql # aggregate syntax: 
query II rowsort label-3932
SELECT CASE + 98 WHEN + 36 * + 91 THEN NULL ELSE - 16 END AS col0, - 46 * - MIN( ALL + 95 ) AS col0
----
-16
4370

skipif mysql # not compatible
query II rowsort label-3932
SELECT CASE + 98 WHEN + 36 * + 91 THEN NULL ELSE - 16 END AS col0, - 46 * - MIN ( ALL + 95 ) AS col0
----
-16
4370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT + ( + 14 ) * - - CAST( NULL AS SIGNED ) + + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT + ( + 14 ) * - - CAST ( NULL AS INTEGER ) + + + 26
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3934
SELECT DISTINCT - 86 + - 36 AS col1, 62 + + 32 * - CASE + CASE + - 50 WHEN - 43 * - 66 THEN NULL ELSE 36 + 67 - + - COUNT( * ) END WHEN + 87 THEN + 37 + - + 71 / - - 30 WHEN NULLIF ( 92, - 15 ) THEN - + 76 END col2
----
-122
NULL

skipif mysql # not compatible
query II rowsort label-3934
SELECT DISTINCT - 86 + - 36 AS col1, 62 + + 32 * - CASE + CASE + - 50 WHEN - 43 * - 66 THEN NULL ELSE 36 + 67 - + - COUNT ( * ) END WHEN + 87 THEN + 37 + - + 71 / - - 30 WHEN NULLIF ( 92, - 15 ) THEN - + 76 END col2
----
-122
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL ( + + 8 ) + COALESCE ( - 25, - 84, 39 * + 0 + + + 58 - 47 ) * + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL ( + + 8 ) + COALESCE ( - 25, - 84, 39 * + 0 + + + 58 - 47 ) * + COUNT ( * ) AS col2
----
-17

query I rowsort
SELECT - 37 - + 13 * + 11 + + + 36 col1
----
-144

query II rowsort
SELECT ALL - 52 + - 78, 28 AS col2
----
-130
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3938
SELECT + COUNT( DISTINCT - - 63 ) + - 95 - - CAST( - 10 AS SIGNED ) DIV - 23 + 94 + + NULLIF ( - + 42, + + COUNT( * ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3938
SELECT + COUNT ( DISTINCT - - 63 ) + - 95 - - CAST ( - 10 AS INTEGER ) / - 23 + 94 + + NULLIF ( - + 42, + + COUNT ( * ) ) AS col2
----
-42

query I rowsort
SELECT - 74 col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT - SUM( ALL ( - + 48 ) )
----
48

skipif mysql # not compatible
query I rowsort label-3940
SELECT - SUM ( ALL ( - + 48 ) )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3941
SELECT + 4 + - COUNT( * ) DIV + 59
----
4

skipif mysql # not compatible
query I rowsort label-3941
SELECT + 4 + - COUNT ( * ) / + 59
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT COUNT( * ) * + - 39 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3942
SELECT COUNT ( * ) * + - 39 AS col0
----
-39

query I rowsort
SELECT ALL - NULLIF ( + + ( - 59 ), NULLIF ( + ( - + 49 ), 62 * - 81 ) * - - 84 - + 75 ) col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT + COUNT( * ) + + 61 col2
----
62

skipif mysql # not compatible
query I rowsort label-3944
SELECT + COUNT ( * ) + + 61 col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT ALL + COALESCE ( - - 22, - 94 + + - 78, - + 84 + - CAST( 82 AS SIGNED ) ) - + 60 + + 91
----
53

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL + COALESCE ( - - 22, - 94 + + - 78, - + 84 + - CAST ( 82 AS INTEGER ) ) - + 60 + + 91
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT 21 * COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3946
SELECT 21 * COUNT ( * ) AS col2
----
21

query I rowsort
SELECT DISTINCT + - 54 * + 69
----
-3726

query I rowsort
SELECT DISTINCT - 87 * - + 89
----
7743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3949
SELECT ALL + 32 * 40 DIV + SUM( + - 91 )
----
-14

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + 32 * 40 / + SUM ( + - 91 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3950
SELECT 41 + - ( - 75 ) + - CASE + NULLIF ( + 80, + 64 * + CAST( NULL AS DECIMAL ) ) WHEN - 13 THEN COUNT( * ) ELSE - - CAST( NULL AS SIGNED ) + ( + - 35 ) / - 22 END * + 97 / - NULLIF ( - + CAST( 54 AS SIGNED ), + 92 * - 33 * - + 70 + - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT 41 + - ( - 75 ) + - CASE + NULLIF ( + 80, + 64 * + CAST ( NULL AS REAL ) ) WHEN - 13 THEN COUNT ( * ) ELSE - - CAST ( NULL AS INTEGER ) + ( + - 35 ) / - 22 END * + 97 / - NULLIF ( - + CAST ( 54 AS INTEGER ), + 92 * - 33 * - + 70 + - COUNT ( * ) ) AS col1
----
NULL

query II rowsort
SELECT ALL 67 AS col1, - 23 AS col2
----
67
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT DISTINCT 19 AS col0, 56 * - - COUNT( * ) AS col0
----
19
56

skipif mysql # not compatible
query II rowsort label-3952
SELECT DISTINCT 19 AS col0, 56 * - - COUNT ( * ) AS col0
----
19
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT 50 + - COUNT( * ) + + 55 * - 38 + 29 AS col0
----
-2012

skipif mysql # not compatible
query I rowsort label-3953
SELECT 50 + - COUNT ( * ) + + 55 * - 38 + 29 AS col0
----
-2012

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT 56 * + 26 * - ( - + COUNT( - 24 ) ) AS col2
----
1456

skipif mysql # not compatible
query I rowsort label-3954
SELECT 56 * + 26 * - ( - + COUNT ( - 24 ) ) AS col2
----
1456

query II rowsort
SELECT + 78 AS col2, + 84 - + 55
----
78
29

query II rowsort
SELECT 0, 61 AS col0
----
0
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT 46 + + 94 + - 2 - - 72 * CAST( NULL AS SIGNED ) * - 62 * - + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT 46 + + 94 + - 2 - - 72 * CAST ( NULL AS INTEGER ) * - 62 * - + 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT DISTINCT COUNT( * ) * - - 87
----
87

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT COUNT ( * ) * - - 87
----
87

query I rowsort
SELECT ALL - ( - 7 )
----
7

query I rowsort
SELECT DISTINCT + 88 + 54 AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL - 25 + + COUNT( * ) * 71 + - - 74
----
120

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL - 25 + + COUNT ( * ) * 71 + - - 74
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT - COUNT( * ) * + 78
----
-78

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT - COUNT ( * ) * + 78
----
-78

query I rowsort
SELECT DISTINCT + 43 + + 70 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT 85 * COUNT( - + ( ( 14 ) ) ) * + COUNT( * ) + - - 99 col1
----
184

skipif mysql # not compatible
query I rowsort label-3964
SELECT 85 * COUNT ( - + ( ( 14 ) ) ) * + COUNT ( * ) + - - 99 col1
----
184

query II rowsort
SELECT + 55 AS col2, - 10
----
55
-10

query I rowsort
SELECT ALL + 25 + 13
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT 62 + + 97 * + COUNT( * ) - - 20
----
179

skipif mysql # not compatible
query I rowsort label-3967
SELECT 62 + + 97 * + COUNT ( * ) - - 20
----
179

query II rowsort
SELECT + 9 AS col2, ( 83 ) AS col1
----
9
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT - 11 * - SUM( DISTINCT - - 70 ) + + 26 * ( - CASE + + 69 WHEN + 35 THEN 30 ELSE NULL END ) * - AVG ( ALL - 57 ) + - + NULLIF ( 94, 95 - - 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT - 11 * - SUM ( DISTINCT - - 70 ) + + 26 * ( - CASE + + 69 WHEN + 35 THEN 30 ELSE NULL END ) * - AVG ( ALL - 57 ) + - + NULLIF ( 94, 95 - - 46 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - NULLIF ( - SUM( - 63 ), 78 / + 71 ) + - 32
----
-95

skipif mysql # not compatible
query I rowsort label-3970
SELECT - NULLIF ( - SUM ( - 63 ), 78 / + 71 ) + - 32
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT DISTINCT - - 95 + + + NULLIF ( - 81, + 2 ) + SUM( DISTINCT 13 ) + + 22
----
49

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT - - 95 + + + NULLIF ( - 81, + 2 ) + SUM ( DISTINCT 13 ) + + 22
----
49

query I rowsort
SELECT ALL + 59 * - 15 * 68 * + 43 AS col2
----
-2587740

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT ALL - 67, 20 + - NULLIF ( - 92, + - 49 - COUNT( * ) ) AS col2
----
-67
112

skipif mysql # not compatible
query II rowsort label-3973
SELECT ALL - 67, 20 + - NULLIF ( - 92, + - 49 - COUNT ( * ) ) AS col2
----
-67
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3974
SELECT + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 8 + + 96
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT DISTINCT - ( 61 ) * - CAST( ( - 92 ) AS SIGNED )
----
-5612

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT - ( 61 ) * - CAST ( ( - 92 ) AS INTEGER )
----
-5612

onlyif mysql # DIV for integer division: 
query I rowsort label-3977
SELECT ALL - 93 DIV 31 col0
----
-3

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - 93 / 31 col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3978
SELECT ALL + - CAST( NULL AS DECIMAL ) + 40 + - 82 * - - 42 + + 91 * NULLIF ( - MIN( 41 ), + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + - CAST ( NULL AS REAL ) + 40 + - 82 * - - 42 + + 91 * NULLIF ( - MIN ( 41 ), + 87 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3979
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER )
----
1

query II rowsort
SELECT DISTINCT + 62, - 83 AS col2
----
62
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - 74 * + 31 * - - COUNT( * )
----
-2294

skipif mysql # not compatible
query I rowsort label-3981
SELECT - 74 * + 31 * - - COUNT ( * )
----
-2294

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT DISTINCT + 74 - + + COUNT( * ) * - 46 + + - 33 + - 73 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT + 74 - + + COUNT ( * ) * - 46 + + - 33 + - 73 AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT + CAST( 92 AS SIGNED ) * 34 * - 63 * - 15
----
2955960

skipif mysql # not compatible
query I rowsort label-3983
SELECT + CAST ( 92 AS INTEGER ) * 34 * - 63 * - 15
----
2955960

query II rowsort
SELECT - - 26 AS col0, 83 * - 91 col1
----
26
-7553

query II rowsort
SELECT DISTINCT - 85, - 67 AS col2
----
-85
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3986
SELECT ALL 59 * CAST( NULL AS SIGNED ) + COUNT( * ) * + + 78 * + 79 * 7 + - + 94 + + 17 * - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL 59 * CAST ( NULL AS INTEGER ) + COUNT ( * ) * + + 78 * + 79 * 7 + - + 94 + + 17 * - + 23
----
NULL

query II rowsort
SELECT 5 * + ( - 13 ) AS col0, 11 + - - 48 + - 58 * - 45 AS col1
----
-65
2669

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL + 80 * NULLIF ( + - NULLIF ( + 87, COALESCE ( + 7, 30 * MAX( + + 71 ) ) * - + COUNT( * ) + 11 + COUNT( * ) * - 25 * 62 * - - 55 * + + 97 * + + 25 ), COUNT( * ) ) * + - 4 AS col2
----
27840

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL + 80 * NULLIF ( + - NULLIF ( + 87, COALESCE ( + 7, 30 * MAX ( + + 71 ) ) * - + COUNT ( * ) + 11 + COUNT ( * ) * - 25 * 62 * - - 55 * + + 97 * + + 25 ), COUNT ( * ) ) * + - 4 AS col2
----
27840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3989
SELECT COUNT( * ) * + 97 * - 40 DIV + - COUNT( * ) AS col1
----
3880

skipif mysql # not compatible
query I rowsort label-3989
SELECT COUNT ( * ) * + 97 * - 40 / + - COUNT ( * ) AS col1
----
3880

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - MIN( 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-3990
SELECT - MIN ( 10 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3991
SELECT ( + - CAST( 52 AS SIGNED ) ) DIV 35 + - 3 - 88
----
-92

skipif mysql # not compatible
query I rowsort label-3991
SELECT ( + - CAST ( 52 AS INTEGER ) ) / 35 + - 3 - 88
----
-92

query I rowsort
SELECT 31 - + 72
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3993
SELECT CAST( + - 83 AS SIGNED ) * + 13
----
-1079

skipif mysql # not compatible
query I rowsort label-3993
SELECT CAST ( + - 83 AS INTEGER ) * + 13
----
-1079

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT ( - 58 ) DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-3994
SELECT ( - 58 ) / + 60
----
0

query I rowsort
SELECT ALL 69 + + 55
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3996
SELECT ALL 52 * - CAST( NULL AS SIGNED ) + - 96 + + 46 * + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL 52 * - CAST ( NULL AS INTEGER ) + - 96 + + 46 * + 8 AS col0
----
NULL

query I rowsort
SELECT ALL 58 * - + 4 * - 17 + - ( + - ( 64 ) ) * 98 + + + 42 AS col2
----
10258

query I rowsort
SELECT 2 * + + 61 - 37
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT DISTINCT COUNT( * ) * + 63 + + 69 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT COUNT ( * ) * + 63 + + 69 AS col0
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-4000
SELECT + 8 * + COUNT( * ) * 44 + - 63 + ( - - COUNT( ALL + + 7 ) ) col2, 91 AS col2
----
290
91

skipif mysql # not compatible
query II rowsort label-4000
SELECT + 8 * + COUNT ( * ) * 44 + - 63 + ( - - COUNT ( ALL + + 7 ) ) col2, 91 AS col2
----
290
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4001
SELECT COALESCE ( + NULLIF ( - 4, - + 48 + + - 22 + - 1 * 92 * - + CASE COALESCE ( - + NULLIF ( 31, - + 35 + + 44 ), 2, + + 94 + + 31 ) WHEN + 22 * - 90 THEN NULL WHEN - COUNT( - 16 ) - + 54 * - 30 / CASE + 83 WHEN + 13 THEN + + 44 ELSE NULL END - + 21 THEN - + COUNT( * ) WHEN - COUNT( * ) THEN - - MAX( DISTINCT - 6 ) * - ( + 56 ) * + + 4 * + 26 * - - 46 + + 90 * + 26 * + 69 ELSE - 59 END + + COUNT( * ) ), - CAST( NULL AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-4001
SELECT COALESCE ( + NULLIF ( - 4, - + 48 + + - 22 + - 1 * 92 * - + CASE COALESCE ( - + NULLIF ( 31, - + 35 + + 44 ), 2, + + 94 + + 31 ) WHEN + 22 * - 90 THEN NULL WHEN - COUNT ( - 16 ) - + 54 * - 30 / CASE + 83 WHEN + 13 THEN + + 44 ELSE NULL END - + 21 THEN - + COUNT ( * ) WHEN - COUNT ( * ) THEN - - MAX ( DISTINCT - 6 ) * - ( + 56 ) * + + 4 * + 26 * - - 46 + + 90 * + 26 * + 69 ELSE - 59 END + + COUNT ( * ) ), - CAST ( NULL AS INTEGER ) )
----
-4

query I rowsort
SELECT NULLIF ( + 87, + 67 )
----
87

query I rowsort
SELECT ALL - 91 * + 98 + + 69
----
-8849

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT ALL + + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL + + COUNT ( * ) col0
----
1

query I rowsort
SELECT ALL - 27 * - CASE 84 WHEN ( + + 35 ) THEN NULL ELSE + 57 END - - 33 + + 95 AS col1
----
1667

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT - - 62 * 41 + + COUNT( * )
----
2543

skipif mysql # not compatible
query I rowsort label-4006
SELECT - - 62 * 41 + + COUNT ( * )
----
2543

query I rowsort
SELECT + ( + 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL + - MAX( ALL - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL + - MAX ( ALL - 43 )
----
43

query I rowsort
SELECT - 77 * - - 52 * ( - - 0 ) * + 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4010
SELECT DISTINCT + 70 - 60 * + 3 DIV COUNT( CAST( + 38 AS SIGNED ) ) * 49 * 40
----
-352730

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + 70 - 60 * + 3 / COUNT ( CAST ( + 38 AS INTEGER ) ) * 49 * 40
----
-352730

query I rowsort
SELECT ALL - 11 * - 72 * + 74
----
58608

query I rowsort
SELECT - - 6 + + 29
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4013
SELECT ALL - SUM( + 17 ), - 39 AS col0
----
-17
-39

skipif mysql # not compatible
query II rowsort label-4013
SELECT ALL - SUM ( + 17 ), - 39 AS col0
----
-17
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT + + COUNT( * ) - 90 - 92
----
-181

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + + COUNT ( * ) - 90 - 92
----
-181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT - - 15 - + - 99 + + CAST( + 32 AS SIGNED ) col2
----
146

skipif mysql # not compatible
query I rowsort label-4015
SELECT - - 15 - + - 99 + + CAST ( + 32 AS INTEGER ) col2
----
146

query I rowsort
SELECT ALL + ( - + 30 ) * - 26
----
780

query I rowsort
SELECT - + 40 + + - 29
----
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4018
SELECT - - MAX( CAST( NULL AS DECIMAL ) ) / - NULLIF ( + 32, - 80 / 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT - - MAX ( CAST ( NULL AS REAL ) ) / - NULLIF ( + 32, - 80 / 42 )
----
NULL

query I rowsort
SELECT + 49 + + - 19
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4020
SELECT - 93 * 72 DIV + + 87
----
-76

skipif mysql # not compatible
query I rowsort label-4020
SELECT - 93 * 72 / + + 87
----
-76

query I rowsort
SELECT ALL + 69 + - 3 AS col2
----
66

query I rowsort
SELECT - 11 + - 52 col1
----
-63

query II rowsort
SELECT 68, - ( + 27 ) AS col1
----
68
-27

query I rowsort
SELECT - 87 + 48
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + 93 - - - ( + + 33 ) - MAX( DISTINCT - ( + 62 ) ) * - 61
----
-3722

skipif mysql # not compatible
query I rowsort label-4025
SELECT + 93 - - - ( + + 33 ) - MAX ( DISTINCT - ( + 62 ) ) * - 61
----
-3722

query I rowsort
SELECT ALL + ( + 51 ) + - 43 AS col1
----
8

query I rowsort
SELECT DISTINCT ( ( 31 ) ) col2
----
31

query I rowsort
SELECT + 57 + + 12 AS col1
----
69

query II rowsort
SELECT ALL + 43 + - - 86 + + 41 AS col2, + 73 AS col1
----
170
73

query I rowsort
SELECT - ( + - COALESCE ( 20, - + 11 + + ( + 18 ), - + 51, - 49 + 0 + 13 ) ) AS col2
----
20

query I rowsort
SELECT DISTINCT 56 + - - 89 AS col2
----
145

query I rowsort
SELECT ALL 15 + - 74 + - 10 - - ( NULLIF ( 92, 76 ) ) - + - 93 * + 62 AS col2
----
5789

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT CAST( + 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4033
SELECT CAST ( + 18 AS INTEGER ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4034
SELECT + COUNT( * ) DIV 64 + - 88 * - - ( COUNT( * ) ) * - 51
----
4488

skipif mysql # not compatible
query I rowsort label-4034
SELECT + COUNT ( * ) / 64 + - 88 * - - ( COUNT ( * ) ) * - 51
----
4488

onlyif mysql # DIV for integer division: 
query I rowsort label-4035
SELECT ALL 23 DIV - 70 + + 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL 23 / - 70 + + 6 AS col1
----
6

query I rowsort
SELECT + 3 * - COALESCE ( - 3, - 91 )
----
9

query II rowsort
SELECT ALL + 36, + 91 + + + 80 AS col0
----
36
171

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT + 73 DIV + + 99 + - + 9
----
-9

skipif mysql # not compatible
query I rowsort label-4038
SELECT + 73 / + + 99 + - + 9
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT CAST( 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-4039
SELECT CAST ( 9 AS INTEGER )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4040
SELECT - CASE + 77 WHEN - 47 * + + COALESCE ( - + 73, - - 8 ) + COALESCE ( 6, - 92 + 60 + CASE - 96 WHEN - CAST( + - 98 AS SIGNED ) THEN 16 WHEN 44 THEN - 81 + - 24 ELSE + CAST( + - CASE - - 73 WHEN + COUNT( * ) * 43 + 45 * - + 90 THEN ( + 54 ) END AS SIGNED ) + 92 END, 83 * 47 + + - 39 ) THEN NULL WHEN - 52 * COUNT( * ) + - - CAST( NULL AS DECIMAL ) + - 5 THEN + 32 * - 59 END / + 91 + - 39 * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT - CASE + 77 WHEN - 47 * + + COALESCE ( - + 73, - - 8 ) + COALESCE ( 6, - 92 + 60 + CASE - 96 WHEN - CAST ( + - 98 AS INTEGER ) THEN 16 WHEN 44 THEN - 81 + - 24 ELSE + CAST ( + - CASE - - 73 WHEN + COUNT ( * ) * 43 + 45 * - + 90 THEN ( + 54 ) END AS INTEGER ) + 92 END, 83 * 47 + + - 39 ) THEN NULL WHEN - 52 * COUNT ( * ) + - - CAST ( NULL AS REAL ) + - 5 THEN + 32 * - 59 END / + 91 + - 39 * + 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT CAST( NULLIF ( + COUNT( * ), + 1 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT CAST ( NULLIF ( + COUNT ( * ), + 1 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4042
SELECT ALL 60 DIV + - 26 - - 27, MAX( DISTINCT + + 10 ) col1
----
25
10

skipif mysql # not compatible
query II rowsort label-4042
SELECT ALL 60 / + - 26 - - 27, MAX ( DISTINCT + + 10 ) col1
----
25
10

query I rowsort
SELECT + 67 * 68 col1
----
4556

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT ALL 79 DIV - 19
----
-4

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL 79 / - 19
----
-4

query I rowsort
SELECT + ( 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4046
SELECT DISTINCT + COUNT( 96 ) DIV - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT + COUNT ( 96 ) / - 97 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4047
SELECT + + COUNT( - + COALESCE ( 38, 62 + 37 ) ) DIV + 96 AS col2, 21 col1
----
0
21

skipif mysql # not compatible
query II rowsort label-4047
SELECT + + COUNT ( - + COALESCE ( 38, 62 + 37 ) ) / + 96 AS col2, 21 col1
----
0
21

query I rowsort
SELECT + 34 * + 46 + + 42 * - ( 81 ) col2
----
-1838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4049
SELECT 71 DIV - 72 * - 83 * COALESCE ( - + COUNT( * ), - + 23, - COUNT( * ) ) + - 84 + + 41 * 23 + - 43 + ( - + 80 ) + + - COALESCE ( 42, - 27, 62 ) AS col2
----
694

skipif mysql # not compatible
query I rowsort label-4049
SELECT 71 / - 72 * - 83 * COALESCE ( - + COUNT ( * ), - + 23, - COUNT ( * ) ) + - 84 + + 41 * 23 + - 43 + ( - + 80 ) + + - COALESCE ( 42, - 27, 62 ) AS col2
----
694

query I rowsort
SELECT ALL + - 73 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT ALL - - SUM( ALL 38 ) * - 88 - - + 84 - 51 AS col1
----
-3311

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - - SUM ( ALL 38 ) * - 88 - - + 84 - 51 AS col1
----
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT - + COUNT( * ) + 52
----
51

skipif mysql # not compatible
query I rowsort label-4052
SELECT - + COUNT ( * ) + 52
----
51

query I rowsort
SELECT - + 46 * - 1 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL + + NULLIF ( - 78, - 96 * MIN( DISTINCT + 43 ) + - 12 * + + 88 + - 65 ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL + + NULLIF ( - 78, - 96 * MIN ( DISTINCT + 43 ) + - 12 * + + 88 + - 65 ) col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT + + CAST( NULL AS SIGNED ) * + MIN( - + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT + + CAST ( NULL AS INTEGER ) * + MIN ( - + 48 )
----
NULL

query II rowsort
SELECT ALL + - 23, 77 AS col2
----
-23
77

query II rowsort
SELECT - + 86 * ( - 37 ), 43 col0
----
3182
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - 20 + - MIN( + NULLIF ( - + 46, - + ( - 43 ) ) ) * + + 27 * - 36
----
-44732

skipif mysql # not compatible
query I rowsort label-4058
SELECT - 20 + - MIN ( + NULLIF ( - + 46, - + ( - 43 ) ) ) * + + 27 * - 36
----
-44732

query II rowsort
SELECT DISTINCT + 58 * - 61 + + + 88 AS col2, ( - 4 ) AS col0
----
-3450
-4

query II rowsort
SELECT 20 AS col0, + ( + 24 )
----
20
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT + 77 DIV + 44
----
1

skipif mysql # not compatible
query I rowsort label-4061
SELECT + 77 / + 44
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4062
SELECT - 47 * CASE + - 1 WHEN - ( 10 ) THEN + + ( - 71 ) / + 43 + + COUNT( * ) ELSE - 49 END * + CASE 81 WHEN 37 * - 94 + - + CAST( NULL AS SIGNED ) - + 30 / + COUNT( * ) THEN - + 85 * - 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT - 47 * CASE + - 1 WHEN - ( 10 ) THEN + + ( - 71 ) / + 43 + + COUNT ( * ) ELSE - 49 END * + CASE 81 WHEN 37 * - 94 + - + CAST ( NULL AS INTEGER ) - + 30 / + COUNT ( * ) THEN - + 85 * - 19 END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4063
SELECT DISTINCT - + 68 * - - ( - + CAST( NULL AS DECIMAL ) ) AS col2, 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-4063
SELECT DISTINCT - + 68 * - - ( - + CAST ( NULL AS REAL ) ) AS col2, 37
----
NULL
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4064
SELECT ALL ( SUM( 11 ) ) * - - 1 + + 61 + 77 AS col1, COUNT( * ) + + 77 * - - 6 AS col2
----
149
463

skipif mysql # not compatible
query II rowsort label-4064
SELECT ALL ( SUM ( 11 ) ) * - - 1 + + 61 + 77 AS col1, COUNT ( * ) + + 77 * - - 6 AS col2
----
149
463

query I rowsort
SELECT 76 + - + 19 + - - 46 AS col1
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-4066
SELECT ALL - 10 * - 93 AS col1, + ( - ( - 98 ) ) - + COUNT( * )
----
930
97

skipif mysql # not compatible
query II rowsort label-4066
SELECT ALL - 10 * - 93 AS col1, + ( - ( - 98 ) ) - + COUNT ( * )
----
930
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4067
SELECT 50 DIV + - NULLIF ( + - 12, COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-4067
SELECT 50 / + - NULLIF ( + - 12, COUNT ( * ) )
----
4

query I rowsort
SELECT ALL - 1 + + + 45 + 50
----
94

query II rowsort
SELECT 21, + 13 AS col0
----
21
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 52
----
NULL

query I rowsort
SELECT ALL - 11 * ( 63 ) AS col0
----
-693

query I rowsort
SELECT DISTINCT + 56 + + COALESCE ( 56, - 9 + 25 + + + 81 ) + 22 + + 3 * - - 28 * + - 99 * + 49 + - 16
----
-407366

query I rowsort
SELECT DISTINCT - 93 + - + 51 + + 76
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4074
SELECT ALL + 39 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + 39 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 16 AS col0, 5 AS col1
----
16
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT 65 - - - ( - COUNT( * ) ) * + COALESCE ( - 55, + 57 + + - MIN( + 73 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4076
SELECT 65 - - - ( - COUNT ( * ) ) * + COALESCE ( - 55, + 57 + + - MIN ( + 73 ) ) AS col2
----
10

query II rowsort
SELECT - 97 col0, 22 * + COALESCE ( - + 24, + 68 * - 41 * 98 * + 97, - 76 ) col2
----
-97
-528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4078
SELECT 84 + - + 36 + - + COALESCE ( CAST( NULL AS SIGNED ), - 57 DIV - COALESCE ( + - ( + - 60 ), 14 * + ( - - 88 ) + CAST( + 60 AS SIGNED ) + + CAST( + - COALESCE ( + 0, COUNT( * ) ) AS SIGNED ) DIV - 71 ) * 30 )
----
48

skipif mysql # not compatible
query I rowsort label-4078
SELECT 84 + - + 36 + - + COALESCE ( CAST ( NULL AS INTEGER ), - 57 / - COALESCE ( + - ( + - 60 ), 14 * + ( - - 88 ) + CAST ( + 60 AS INTEGER ) + + CAST ( + - COALESCE ( + 0, COUNT ( * ) ) AS INTEGER ) / - 71 ) * 30 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL 61 - - COUNT( DISTINCT 17 ) + - MAX( - - 64 ) + + 63 * - + 46 col2
----
-2900

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL 61 - - COUNT ( DISTINCT 17 ) + - MAX ( - - 64 ) + + 63 * - + 46 col2
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL - COALESCE ( - + 32, + COUNT( * ) + - 35 )
----
32

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL - COALESCE ( - + 32, + COUNT ( * ) + - 35 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT ALL 55 * - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL 55 * - COUNT ( * )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4082
SELECT DISTINCT - 69 * - SUM( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - 69 * - SUM ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 65 AS col0, 69 - 53 + 68
----
65
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT + MAX( ALL - - 5 ) col1
----
5

skipif mysql # not compatible
query I rowsort label-4084
SELECT + MAX ( ALL - - 5 ) col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT 42 * MAX( ALL + + 86 ) col1
----
3612

skipif mysql # not compatible
query I rowsort label-4085
SELECT 42 * MAX ( ALL + + 86 ) col1
----
3612

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT 85 * 7 * 11 DIV + 51
----
128

skipif mysql # not compatible
query I rowsort label-4086
SELECT 85 * 7 * 11 / + 51
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4087
SELECT + - 25 * - - ( CAST( NULL AS SIGNED ) ) * 76 + - + COUNT( * ) - + 30 + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT + - 25 * - - ( CAST ( NULL AS INTEGER ) ) * 76 + - + COUNT ( * ) - + 30 + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4088
SELECT SUM( - 80 ), 1 AS col0
----
-80
1

skipif mysql # not compatible
query II rowsort label-4088
SELECT SUM ( - 80 ), 1 AS col0
----
-80
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT ALL - CAST( 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL - CAST ( 34 AS INTEGER )
----
-34

query I rowsort
SELECT DISTINCT - + 89 col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT 81 * - MAX( - 14 ) + - ( + 19 )
----
1115

skipif mysql # not compatible
query I rowsort label-4091
SELECT 81 * - MAX ( - 14 ) + - ( + 19 )
----
1115

onlyif mysql # aggregate syntax: 
query II rowsort label-4092
SELECT 65 * + - 9 col2, 93 * COUNT( * ) * - 42
----
-585
-3906

skipif mysql # not compatible
query II rowsort label-4092
SELECT 65 * + - 9 col2, 93 * COUNT ( * ) * - 42
----
-585
-3906

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4093
SELECT ALL COUNT( * ) DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL COUNT ( * ) / - 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL - + ( - MIN( + 95 ) )
----
95

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL - + ( - MIN ( + 95 ) )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4095
SELECT ALL - 55 AS col2, + COUNT( * ) AS col2
----
-55
1

skipif mysql # not compatible
query II rowsort label-4095
SELECT ALL - 55 AS col2, + COUNT ( * ) AS col2
----
-55
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4096
SELECT ALL 25 * + COUNT( * ) * 61 * - COUNT( * ) * - 39 * + 19 + - + 82 + + CAST( NULL AS SIGNED ) / - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL 25 * + COUNT ( * ) * 61 * - COUNT ( * ) * - 39 * + 19 + - + 82 + + CAST ( NULL AS INTEGER ) / - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL COUNT( * ) * + ( - - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL COUNT ( * ) * + ( - - 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4098
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL + 93 / 90 * SUM( DISTINCT - 26 ) * - CASE - 52 WHEN + ( - 44 ) THEN + 6 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + 93 / 90 * SUM ( DISTINCT - 26 ) * - CASE - 52 WHEN + ( - 44 ) THEN + 6 END AS col1
----
NULL

query I rowsort
SELECT 90 * + 59 AS col0
----
5310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4101
SELECT 34 * 95 AS col2, + 16 - + CAST( NULL AS SIGNED ) - 62 / + + COUNT( ALL 45 ) + 69 * - 0 * - - ( - NULLIF ( 0, 52 + 85 ) ) AS col2
----
3230
NULL

skipif mysql # not compatible
query II rowsort label-4101
SELECT 34 * 95 AS col2, + 16 - + CAST ( NULL AS INTEGER ) - 62 / + + COUNT ( ALL 45 ) + 69 * - 0 * - - ( - NULLIF ( 0, 52 + 85 ) ) AS col2
----
3230
NULL

query I rowsort
SELECT - 33 * 2 + - 40 + 18 AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4103
SELECT CAST( 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-4103
SELECT CAST ( 30 AS INTEGER )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT + 70 + 8 + - 88 DIV + 42 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4104
SELECT + 70 + 8 + - 88 / + 42 AS col1
----
76

query I rowsort
SELECT + - 83 col2
----
-83

query I rowsort
SELECT + ( 40 ) AS col2
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4107
SELECT ALL - 68 + - AVG ( CAST( NULL AS DECIMAL ) ) * - 66 * 10 + + 65 / - ( + 67 ) + - + ( + + ( - 6 ) ) * + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL - 68 + - AVG ( CAST ( NULL AS REAL ) ) * - 66 * 10 + + 65 / - ( + 67 ) + - + ( + + ( - 6 ) ) * + - 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4108
SELECT COALESCE ( - 60, 4 * COALESCE ( - ( - - CASE + 29 WHEN + 57 * - + 93 * 74 + + - 27 THEN - COUNT( * ) WHEN + 43 - - + 24 + + 14 + 81 + + CASE - + 48 WHEN + - 27 THEN NULL WHEN - 95 THEN NULL WHEN - 74 + - 42 THEN NULL ELSE - 58 * 2 END / - 11 - - COUNT( DISTINCT - 26 ) + - CAST( NULL AS SIGNED ) * - 22 * + NULLIF ( 11, - 38 ) * + 28 * + - 4 - + ( + - 61 ) * + 14 * + - 1 THEN + 77 END ), COUNT( * ) ) + + ( CAST( + 91 AS SIGNED ) ) ) + - COALESCE ( - 77, - 26, 94 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4108
SELECT COALESCE ( - 60, 4 * COALESCE ( - ( - - CASE + 29 WHEN + 57 * - + 93 * 74 + + - 27 THEN - COUNT ( * ) WHEN + 43 - - + 24 + + 14 + 81 + + CASE - + 48 WHEN + - 27 THEN NULL WHEN - 95 THEN NULL WHEN - 74 + - 42 THEN NULL ELSE - 58 * 2 END / - 11 - - COUNT ( DISTINCT - 26 ) + - CAST ( NULL AS INTEGER ) * - 22 * + NULLIF ( 11, - 38 ) * + 28 * + - 4 - + ( + - 61 ) * + 14 * + - 1 THEN + 77 END ), COUNT ( * ) ) + + ( CAST ( + 91 AS INTEGER ) ) ) + - COALESCE ( - 77, - 26, 94 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT - MIN( + 79 ) * - 2 AS col0
----
158

skipif mysql # not compatible
query I rowsort label-4109
SELECT - MIN ( + 79 ) * - 2 AS col0
----
158

query I rowsort
SELECT ALL - ( + 7 )
----
-7

query II rowsort
SELECT ALL 46 + - + 76 col2, 84 AS col0
----
-30
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL + 43 + - COUNT( * ) col1
----
42

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + 43 + - COUNT ( * ) col1
----
42

query I rowsort
SELECT 85 + + ( - 54 ) AS col1
----
31

query I rowsort
SELECT 56 + - 20
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT 91 * - COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4115
SELECT 91 * - COUNT ( * ) AS col0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT 94 + + - 88 - - 35 DIV + + ( - 48 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4116
SELECT 94 + + - 88 - - 35 / + + ( - 48 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT CAST( 43 AS SIGNED ) + + 35 col0
----
78

skipif mysql # not compatible
query I rowsort label-4117
SELECT CAST ( 43 AS INTEGER ) + + 35 col0
----
78

query II rowsort
SELECT 10 + - 20, 77 AS col0
----
-10
77

query I rowsort
SELECT 81 * - + 37 AS col0
----
-2997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT DISTINCT - 62 * + ( + - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - 62 * + ( + - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL + COUNT( * ) - 82
----
-81

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + COUNT ( * ) - 82
----
-81

query I rowsort
SELECT ALL - 80 * 10 AS col2
----
-800

query I rowsort
SELECT 0 + - 51
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT DISTINCT + COUNT( ALL + 53 ) * - - 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT + COUNT ( ALL + 53 ) * - - 2 AS col0
----
2

query I rowsort
SELECT ALL - 8 * - ( - - 58 ) * 71 col0
----
32944

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT 80 * COUNT( DISTINCT 5 )
----
80

skipif mysql # not compatible
query I rowsort label-4126
SELECT 80 * COUNT ( DISTINCT 5 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4127
SELECT MAX( ALL + + CAST( 15 AS SIGNED ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4127
SELECT MAX ( ALL + + CAST ( 15 AS INTEGER ) ) AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4128
SELECT 0 * + + 67 * - CASE + 44 WHEN 60 * - 71 + + 58 / - 70 * 46 + + + COUNT( * ) THEN NULL WHEN 80 THEN NULL ELSE + + 81 END * COALESCE ( - + CAST( NULL AS SIGNED ), 32 * + + 2 + + - 83, ( - ( + 71 ) ) * 51 ) * + 8 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4128
SELECT 0 * + + 67 * - CASE + 44 WHEN 60 * - 71 + + 58 / - 70 * 46 + + + COUNT ( * ) THEN NULL WHEN 80 THEN NULL ELSE + + 81 END * COALESCE ( - + CAST ( NULL AS INTEGER ), 32 * + + 2 + + - 83, ( - ( + 71 ) ) * 51 ) * + 8 - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT CASE + + NULLIF ( 7, + 62 - + 6 + + + ( + 54 ) * + 96 * + COUNT( * ) * + + 42 ) WHEN - 38 THEN - + 39 + - SUM( ALL + - 58 ) + - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT CASE + + NULLIF ( 7, + 62 - + 6 + + + ( + 54 ) * + 96 * + COUNT ( * ) * + + 42 ) WHEN - 38 THEN - + 39 + - SUM ( ALL + - 58 ) + - + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT DISTINCT - + ( + + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT - + ( + + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 21 col2
----
-21

query I rowsort
SELECT ALL 96 * - 4 AS col2
----
-384

query I rowsort
SELECT 80 * - 48
----
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT DISTINCT - 92 * + 62 * 45 + - - CASE + 31 WHEN + + 35 * - 8 + 31 THEN NULL WHEN - NULLIF ( - - CAST( + + 50 AS SIGNED ), 61 ) * 85 * - - 99 THEN + 74 * - 85 + 16 + - 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT - 92 * + 62 * 45 + - - CASE + 31 WHEN + + 35 * - 8 + 31 THEN NULL WHEN - NULLIF ( - - CAST ( + + 50 AS INTEGER ), 61 ) * 85 * - - 99 THEN + 74 * - 85 + 16 + - 55 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4135
SELECT DISTINCT 14 * + 14 AS col1, 16 + + + COUNT( * ) * COUNT( * ) / + ( - + CASE 70 WHEN + 65 / + 93 THEN - CAST( NULL AS SIGNED ) * - 97 * + 60 * + 43 ELSE NULL END ) + + 8 AS col2
----
196
NULL

skipif mysql # not compatible
query II rowsort label-4135
SELECT DISTINCT 14 * + 14 AS col1, 16 + + + COUNT ( * ) * COUNT ( * ) / + ( - + CASE 70 WHEN + 65 / + 93 THEN - CAST ( NULL AS INTEGER ) * - 97 * + 60 * + 43 ELSE NULL END ) + + 8 AS col2
----
196
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL - - COUNT( * ) * - 43 * + 76 + 89
----
-3179

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - - COUNT ( * ) * - 43 * + 76 + 89
----
-3179

query I rowsort
SELECT DISTINCT 80 * 86 + - 45 col1
----
6835

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT - 68 DIV - 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4138
SELECT - 68 / - 43 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT + COUNT( * ) * - 43 + - - 5 + - + 12 - 45
----
-95

skipif mysql # not compatible
query I rowsort label-4139
SELECT + COUNT ( * ) * - 43 + - - 5 + - + 12 - 45
----
-95

query I rowsort
SELECT DISTINCT 8 + + 2 - + - 8 + 65
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL + 6 + + ( - 28 ) + - COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + 6 + + ( - 28 ) + - COUNT ( * ) AS col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT ALL 26 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL 26 / - 90
----
0

query I rowsort
SELECT ALL + ( 19 )
----
19

query I rowsort
SELECT DISTINCT 5 + - 70
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT DISTINCT 69 * + CASE 4 WHEN + 62 THEN + 3 + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT 69 * + CASE 4 WHEN + 62 THEN + 3 + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 34 * + ( - 75 ) AS col0
----
-2550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT ALL 40 + - + CAST( - 83 AS SIGNED ) * - 67
----
-5521

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL 40 + - + CAST ( - 83 AS INTEGER ) * - 67
----
-5521

query II rowsort
SELECT 84 AS col0, 28 * - 76
----
84
-2128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4149
SELECT + COUNT( * ) DIV + 26 * + 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4149
SELECT + COUNT ( * ) / + 26 * + 7 AS col1
----
0

query II rowsort
SELECT + ( - 96 ) * + 88 AS col0, + 0 * + - 50
----
-8448
0

query I rowsort
SELECT DISTINCT 33 * - 41 AS col0
----
-1353

query I rowsort
SELECT ALL 92 * - 42 AS col0
----
-3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4153
SELECT + 98 * - - CAST( NULL AS SIGNED ) / MAX( DISTINCT - 60 ) * + 22 + ( 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT + 98 * - - CAST ( NULL AS INTEGER ) / MAX ( DISTINCT - 60 ) * + 22 + ( 36 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4154
SELECT - 80, 93 * - 70 * + 1 * - 78 + - - COUNT( * ) - 16 AS col0
----
-80
507765

skipif mysql # not compatible
query II rowsort label-4154
SELECT - 80, 93 * - 70 * + 1 * - 78 + - - COUNT ( * ) - 16 AS col0
----
-80
507765

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT - SUM( ALL - + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-4155
SELECT - SUM ( ALL - + 79 ) AS col0
----
79

query II rowsort
SELECT DISTINCT 86, - 89 + - 77 AS col2
----
86
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4157
SELECT + MAX( DISTINCT ( - - 7 ) ) * + - 99 * - - 34 / + CASE - 12 WHEN + 66 - 49 + 32 / CAST( - 10 AS DECIMAL ) + - 32 THEN - 25 * - 65 / - 52 WHEN 0 - - COUNT( - 51 ) THEN - CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) WHEN - 45 THEN NULL END / - 35 + - CAST( - 95 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT + MAX ( DISTINCT ( - - 7 ) ) * + - 99 * - - 34 / + CASE - 12 WHEN + 66 - 49 + 32 / CAST ( - 10 AS REAL ) + - 32 THEN - 25 * - 65 / - 52 WHEN 0 - - COUNT ( - 51 ) THEN - CAST ( - CAST ( NULL AS REAL ) AS REAL ) WHEN - 45 THEN NULL END / - 35 + - CAST ( - 95 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT DISTINCT 91 * - SUM( DISTINCT - + 6 ) AS col2
----
546

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT 91 * - SUM ( DISTINCT - + 6 ) AS col2
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL SUM( ALL 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL SUM ( ALL 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + COUNT( * ) * - 62 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-4160
SELECT + COUNT ( * ) * - 62 AS col2
----
-62

query I rowsort
SELECT - 73 * + - 97 AS col2
----
7081

query I rowsort
SELECT ( + 94 )
----
94

query I rowsort
SELECT + 27 + 46
----
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4164
SELECT DISTINCT 2 DIV - CAST( 51 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT 2 / - CAST ( 51 AS INTEGER ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT ALL + 17 + + 65 + 79 - + - 10 * ( - + 84 ) DIV - 39
----
182

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + 17 + + 65 + 79 - + - 10 * ( - + 84 ) / - 39
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT ALL + - 67 DIV + 39 + + 23 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL + - 67 / + 39 + + 23 AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4167
SELECT DISTINCT + 2 DIV 77 + + SUM( + - 45 ) + 4
----
-41

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT + 2 / 77 + + SUM ( + - 45 ) + 4
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT ALL - 73 DIV NULLIF ( 94, + - 4 * + ( 2 ) ) + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - 73 / NULLIF ( 94, + - 4 * + ( 2 ) ) + - 43
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT - CAST( + 9 AS SIGNED ) * + 58 * - + 93 * 5 - + 66 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT - CAST ( + 9 AS INTEGER ) * + 58 * - + 93 * 5 - + 66 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT - + CAST( NULL AS SIGNED ) + + 85 / 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT - + CAST ( NULL AS INTEGER ) + + 85 / 28
----
NULL

query II rowsort
SELECT 8 AS col0, 6
----
8
6

query I rowsort
SELECT ALL - - ( + - 69 ) * 76 + - 67 + - - 55
----
-5256

query I rowsort
SELECT - 39 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT - 3 * + - COUNT( * ) + - MAX( - 58 ) * - + 46
----
-2665

skipif mysql # not compatible
query I rowsort label-4174
SELECT - 3 * + - COUNT ( * ) + - MAX ( - 58 ) * - + 46
----
-2665

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT SUM( DISTINCT + 32 ) col2
----
32

skipif mysql # not compatible
query I rowsort label-4175
SELECT SUM ( DISTINCT + 32 ) col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4176
SELECT + COUNT( * ) DIV + - 20 * - 37 * - 96 + + 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4176
SELECT + COUNT ( * ) / + - 20 * - 37 * - 96 + + 16 AS col1
----
16

query II rowsort
SELECT ALL + 53 col1, - 36 col2
----
53
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4178
SELECT ALL + + ( + SUM( ALL + + 26 ) ) col2, - 48 + - 20 * - 48 * ( + 34 )
----
26
32592

skipif mysql # not compatible
query II rowsort label-4178
SELECT ALL + + ( + SUM ( ALL + + 26 ) ) col2, - 48 + - 20 * - 48 * ( + 34 )
----
26
32592

onlyif mysql # aggregate syntax: 
query II rowsort label-4179
SELECT - 69, COUNT( * ) col1
----
-69
1

skipif mysql # not compatible
query II rowsort label-4179
SELECT - 69, COUNT ( * ) col1
----
-69
1

query I rowsort
SELECT ALL 28 * + + 25 AS col1
----
700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4181
SELECT COALESCE ( 76, - ( - COUNT( * ) ) DIV - 96 )
----
76

skipif mysql # not compatible
query I rowsort label-4181
SELECT COALESCE ( 76, - ( - COUNT ( * ) ) / - 96 )
----
76

query II rowsort
SELECT DISTINCT + 97 * + ( - 79 ) * + 76 AS col0, 96 AS col0
----
-582388
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT 7 * + 96 * + 87 * 19 + + + 68 * + 48 - + - 85 - + CAST( 20 AS SIGNED ) + - + SUM( + ( + 85 ) ) + 7 * 33 * - MIN( DISTINCT - 51 ) AS col0
----
1125841

skipif mysql # not compatible
query I rowsort label-4183
SELECT 7 * + 96 * + 87 * 19 + + + 68 * + 48 - + - 85 - + CAST ( 20 AS INTEGER ) + - + SUM ( + ( + 85 ) ) + 7 * 33 * - MIN ( DISTINCT - 51 ) AS col0
----
1125841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4184
SELECT - MIN( - 76 ) * - CASE - 36 WHEN + SUM( + + 6 ) THEN + - CASE CAST( NULL AS SIGNED ) WHEN - + 34 THEN NULL ELSE + + 58 END DIV - COUNT( * ) ELSE - 1 END AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4184
SELECT - MIN ( - 76 ) * - CASE - 36 WHEN + SUM ( + + 6 ) THEN + - CASE CAST ( NULL AS INTEGER ) WHEN - + 34 THEN NULL ELSE + + 58 END / - COUNT ( * ) ELSE - 1 END AS col1
----
76

query II rowsort
SELECT ALL + 80 * 21 AS col1, 62 AS col0
----
1680
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - 57 * - + 32 - - COUNT( * ) + - 31
----
1794

skipif mysql # not compatible
query I rowsort label-4186
SELECT - 57 * - + 32 - - COUNT ( * ) + - 31
----
1794

query I rowsort
SELECT - 74 + - - 60 * - 96 * + - 36 * + + 47
----
9745846

query I rowsort
SELECT + 21 + + 94 AS col1
----
115

onlyif mysql # DIV for integer division: 
query II rowsort label-4189
SELECT DISTINCT NULLIF ( + - 57, 37 ) DIV - + 95, + 47 AS col1
----
0
47

skipif mysql # not compatible
query II rowsort label-4189
SELECT DISTINCT NULLIF ( + - 57, 37 ) / - + 95, + 47 AS col1
----
0
47

query I rowsort
SELECT + 14 * 92 * + ( + NULLIF ( + + 67, + 67 ) ) AS col1
----
NULL

query I rowsort
SELECT + 73 + + 99
----
172

query I rowsort
SELECT ALL 79 + COALESCE ( - - ( - 89 ), + + 49 * 87 ) AS col0
----
-10

query I rowsort
SELECT + 85 + - 71 * + 50
----
-3465

query II rowsort
SELECT + 90 + 78, - 97 AS col0
----
168
-97

query I rowsort
SELECT DISTINCT 14 + - + 27 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT - 46 + - SUM( ALL - - 86 ) AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - 46 + - SUM ( ALL - - 86 ) AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL - MIN( ALL + 1 ) + 78 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - MIN ( ALL + 1 ) + 78 AS col1
----
77

query I rowsort
SELECT DISTINCT 74 + + - 38 + 12 col0
----
48

query I rowsort
SELECT ALL + 8 + + 26 + - - 76 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + - COUNT( * ) + + 18 + 57 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4200
SELECT + - COUNT ( * ) + + 18 + 57 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL 17 * - + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL 17 * - + COUNT ( * )
----
-17

query I rowsort
SELECT - CASE WHEN NOT AVG ( ALL 78 ) NOT BETWEEN - 19 AND NULL THEN - 56 WHEN NULL <> ( NULL ) THEN - 95 ELSE + 53 END
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT + 61 + - - 82 + - SUM( + + ( 6 ) )
----
137

skipif mysql # not compatible
query I rowsort label-4203
SELECT + 61 + - - 82 + - SUM ( + + ( 6 ) )
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT DISTINCT - CAST( + 94 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT - CAST ( + 94 AS INTEGER )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT - COUNT( * ) + - ( + 83 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT - COUNT ( * ) + - ( + 83 ) AS col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT 50 DIV 28 + + + 18 + + COUNT( * ) - + 94 * + COUNT( * ) * + 79 * - ( 92 ) - SUM( ALL 47 ) + - 32 + + + 49 DIV - - 51 * + 74 * + 95 * 1 * - 74 AS col1
----
683133

skipif mysql # not compatible
query I rowsort label-4206
SELECT 50 / 28 + + + 18 + + COUNT ( * ) - + 94 * + COUNT ( * ) * + 79 * - ( 92 ) - SUM ( ALL 47 ) + - 32 + + + 49 / - - 51 * + 74 * + 95 * 1 * - 74 AS col1
----
683133

query II rowsort
SELECT - 41 * + - 65 AS col1, 41
----
2665
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT + SUM( DISTINCT - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4208
SELECT + SUM ( DISTINCT - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL - 11 - - 12 * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL - 11 - - 12 * + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4211
SELECT ALL 47 * - ( + SUM( ALL - 58 ) ) DIV - COUNT( - COALESCE ( + 90, 96 * + + 61 + + + 49 - + 25 ) ) + - 43 AS col2
----
-2769

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL 47 * - ( + SUM ( ALL - 58 ) ) / - COUNT ( - COALESCE ( + 90, 96 * + + 61 + + + 49 - + 25 ) ) + - 43 AS col2
----
-2769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT CAST( NULL AS SIGNED ) * 24 * + 83 / - 19 + + + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT CAST ( NULL AS INTEGER ) * 24 * + 83 / - 19 + + + 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT - 91 * + COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4213
SELECT - 91 * + COUNT ( * ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT DISTINCT - + COUNT( 35 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT - + COUNT ( 35 ) AS col0
----
-1

query II rowsort
SELECT 93 AS col2, + 87
----
93
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4216
SELECT 59 DIV - + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4216
SELECT 59 / - + 64 AS col2
----
0

query I rowsort
SELECT 94 * + + 32
----
3008

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT 68 - NULLIF ( - + 76, + MAX( DISTINCT + 26 ) * - 8 ) + - + 31 * + 45 * + - 94 * - 1 * + 38 + + + 22
----
-4982774

skipif mysql # not compatible
query I rowsort label-4218
SELECT 68 - NULLIF ( - + 76, + MAX ( DISTINCT + 26 ) * - 8 ) + - + 31 * + 45 * + - 94 * - 1 * + 38 + + + 22
----
-4982774

query I rowsort
SELECT 4 * - + 35
----
-140

query I rowsort
SELECT DISTINCT - ( - 14 )
----
14

query I rowsort
SELECT 94 * - 16 AS col1
----
-1504

query I rowsort
SELECT ALL + 49 * - 92
----
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT - COUNT( DISTINCT - - 3 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - COUNT ( DISTINCT - - 3 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT COUNT( * ) * + + 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4224
SELECT COUNT ( * ) * + + 88 AS col0
----
88

query I rowsort
SELECT 90 - - 53 AS col0
----
143

query I rowsort
SELECT DISTINCT + 31 + 53
----
84

query II rowsort
SELECT - 3, 44 * - 95 AS col1
----
-3
-4180

onlyif mysql # aggregate syntax: 
query II rowsort label-4228
SELECT 41 AS col0, 60 * SUM( DISTINCT - - 11 )
----
41
660

skipif mysql # not compatible
query II rowsort label-4228
SELECT 41 AS col0, 60 * SUM ( DISTINCT - - 11 )
----
41
660

query I rowsort
SELECT ALL + 86 + + 96 AS col1
----
182

query I rowsort
SELECT DISTINCT - 32 + CASE - 57 WHEN - 76 THEN + 32 / - + 10 * + 94 * + 44 ELSE NULL END + + 43 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4231
SELECT - NULLIF ( MAX( DISTINCT + 8 ), - - CAST( - 14 AS SIGNED ) )
----
-8

skipif mysql # not compatible
query I rowsort label-4231
SELECT - NULLIF ( MAX ( DISTINCT + 8 ), - - CAST ( - 14 AS INTEGER ) )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4232
SELECT ALL CASE + 32 WHEN 52 + 24 - CASE 73 WHEN 39 + - - 18 + + COUNT( - - 0 ) / - 83 * COALESCE ( COUNT( * ), COUNT( * ) * 43, 89 ) THEN NULL WHEN - 58 * - 7 THEN NULL ELSE 84 / - + 46 END THEN NULL WHEN + 51 THEN + 58 ELSE - CAST( NULL AS SIGNED ) * - + 17 + - COALESCE ( 53, - + 86, - 3 ) + - ( - 86 ) END + - 69 * 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL CASE + 32 WHEN 52 + 24 - CASE 73 WHEN 39 + - - 18 + + COUNT ( - - 0 ) / - 83 * COALESCE ( COUNT ( * ), COUNT ( * ) * 43, 89 ) THEN NULL WHEN - 58 * - 7 THEN NULL ELSE 84 / - + 46 END THEN NULL WHEN + 51 THEN + 58 ELSE - CAST ( NULL AS INTEGER ) * - + 17 + - COALESCE ( 53, - + 86, - 3 ) + - ( - 86 ) END + - 69 * 27 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT - 32 * + CAST( 82 AS SIGNED )
----
-2624

skipif mysql # not compatible
query I rowsort label-4233
SELECT - 32 * + CAST ( 82 AS INTEGER )
----
-2624

query I rowsort
SELECT 34 + 88 * - - 74 AS col0
----
6546

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4235
SELECT 57, CAST( NULL AS SIGNED ) AS col0
----
57
NULL

skipif mysql # not compatible
query II rowsort label-4235
SELECT 57, CAST ( NULL AS INTEGER ) AS col0
----
57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT - CASE - 93 WHEN - - ( COUNT( * ) ) THEN - - 40 * - - COUNT( * ) WHEN + - 99 + - - 88 THEN - 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT - CASE - 93 WHEN - - ( COUNT ( * ) ) THEN - - 40 * - - COUNT ( * ) WHEN + - 99 + - - 88 THEN - 41 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT MIN( - ( - + 53 ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT MIN ( - ( - + 53 ) ) AS col1
----
53

query I rowsort
SELECT ALL + 76 + NULLIF ( 72, 44 * + 23 * + + 48 / + 73 - + 10 )
----
148

query I rowsort
SELECT + 98 + - + 75 AS col1
----
23

query I rowsort
SELECT 55 * + 74
----
4070

query I rowsort
SELECT + 12 + - ( NULLIF ( - 34, - NULLIF ( - 3, - 81 ) ) )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4242
SELECT CAST( NULL AS SIGNED ) + + 92 - - 93 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT CAST ( NULL AS INTEGER ) + + 92 - - 93 / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 52 * - 8 AS col1
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL + 41 - + MAX( + - 2 )
----
43

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL + 41 - + MAX ( + - 2 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL 92 - - NULLIF ( + 39, + MAX( DISTINCT 59 ) * 20 )
----
131

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL 92 - - NULLIF ( + 39, + MAX ( DISTINCT 59 ) * 20 )
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4246
SELECT + + COUNT( + + NULLIF ( 6, - 51 + 98 ) ) DIV - - 79 - 85 + COALESCE ( - 13, + 4 + - CAST( NULL AS SIGNED ) ) + - 35 AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-4246
SELECT + + COUNT ( + + NULLIF ( 6, - 51 + 98 ) ) / - - 79 - 85 + COALESCE ( - 13, + 4 + - CAST ( NULL AS INTEGER ) ) + - 35 AS col1
----
-133

query I rowsort
SELECT + 14 * - - 91 + 10 AS col2
----
1284

onlyif mysql # aggregate syntax: 
query II rowsort label-4248
SELECT ALL - 62 AS col0, 22 * - NULLIF ( 63, COUNT( * ) ) col0
----
-62
-1386

skipif mysql # not compatible
query II rowsort label-4248
SELECT ALL - 62 AS col0, 22 * - NULLIF ( 63, COUNT ( * ) ) col0
----
-62
-1386

query I rowsort
SELECT + + COALESCE ( - 98, - 92 * - 97 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT MIN( DISTINCT - + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-4250
SELECT MIN ( DISTINCT - + 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT COUNT( * ) * - MAX( DISTINCT - - 18 ) + 64 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4251
SELECT COUNT ( * ) * - MAX ( DISTINCT - - 18 ) + 64 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT 4 * + CASE - MAX( DISTINCT 24 ) WHEN + - 13 THEN + 36 WHEN - 70 / + - 77 - CASE + 83 WHEN - 26 THEN - 0 + + 99 * + COUNT( * ) WHEN 10 * 71 THEN NULL END - - - ( + 24 ) THEN 33 + + 60 WHEN MAX( DISTINCT + 84 ) / - 31 + 36 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT 4 * + CASE - MAX ( DISTINCT 24 ) WHEN + - 13 THEN + 36 WHEN - 70 / + - 77 - CASE + 83 WHEN - 26 THEN - 0 + + 99 * + COUNT ( * ) WHEN 10 * 71 THEN NULL END - - - ( + 24 ) THEN 33 + + 60 WHEN MAX ( DISTINCT + 84 ) / - 31 + 36 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT ALL 69 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL 69 / + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT 75 * - - 40 * + - 85 * + + NULLIF ( COUNT( * ), 72 )
----
-255000

skipif mysql # not compatible
query I rowsort label-4254
SELECT 75 * - - 40 * + - 85 * + + NULLIF ( COUNT ( * ), 72 )
----
-255000

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT + COUNT( DISTINCT - 72 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4255
SELECT + COUNT ( DISTINCT - 72 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL - SUM( ALL - - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - SUM ( ALL - - 96 )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4257
SELECT 94 DIV + COUNT( * ) AS col0, COUNT( * ) * 37
----
94
37

skipif mysql # not compatible
query II rowsort label-4257
SELECT 94 / + COUNT ( * ) AS col0, COUNT ( * ) * 37
----
94
37

query I rowsort
SELECT ALL - 17 * 91 AS col1
----
-1547

query I rowsort
SELECT 0 - 47 * - 34 AS col0
----
1598

query I rowsort
SELECT + 48 * + 93 * 91 + + + 67
----
406291

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4261
SELECT 84 DIV + + 99 AS col1, - COUNT( 19 ) - - COUNT( + 63 )
----
0
0

skipif mysql # not compatible
query II rowsort label-4261
SELECT 84 / + + 99 AS col1, - COUNT ( 19 ) - - COUNT ( + 63 )
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT 19 DIV + + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4262
SELECT 19 / + + 66 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT ALL - 17 + - - 30 DIV - + 88
----
-17

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL - 17 + - - 30 / - + 88
----
-17

query I rowsort
SELECT 81 * + + 53 + + 16 AS col2
----
4309

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT 29 * + COALESCE ( + + MIN( ALL 53 ), 71 + - ( - NULLIF ( + 9, SUM( DISTINCT + ( + 33 ) ) ) ) )
----
1537

skipif mysql # not compatible
query I rowsort label-4265
SELECT 29 * + COALESCE ( + + MIN ( ALL 53 ), 71 + - ( - NULLIF ( + 9, SUM ( DISTINCT + ( + 33 ) ) ) ) )
----
1537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT CAST( NULL AS SIGNED ) + 86 * 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT CAST ( NULL AS INTEGER ) + 86 * 26 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT - CAST( NULL AS SIGNED ) * 44 / - 41 - - 62 + - - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT - CAST ( NULL AS INTEGER ) * 44 / - 41 - - 62 + - - 29 AS col2
----
NULL

query II rowsort
SELECT ALL - ( - 72 ), 86 * + - 36 AS col2
----
72
-3096

query I rowsort
SELECT 9 + + 24 * + 52
----
1257

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT ALL 67 + + COUNT( ALL + + 40 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL 67 + + COUNT ( ALL + + 40 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT - COUNT( * ) * 99 * + 78 + 23
----
-7699

skipif mysql # not compatible
query I rowsort label-4271
SELECT - COUNT ( * ) * 99 * + 78 + 23
----
-7699

onlyif mysql # DIV for integer division: 
query II rowsort label-4272
SELECT ALL - NULLIF ( 58, 86 ) + - - 13 * - - ( - 47 ), - 63 DIV 47 col0
----
-669
-1

skipif mysql # not compatible
query II rowsort label-4272
SELECT ALL - NULLIF ( 58, 86 ) + - - 13 * - - ( - 47 ), - 63 / 47 col0
----
-669
-1

query I rowsort
SELECT 25 + - 82 * - 85 + - 34 AS col0
----
6961

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4274
SELECT ALL 3 AS col1, 16 * CAST( - - 7 AS SIGNED ) AS col1
----
3
112

skipif mysql # not compatible
query II rowsort label-4274
SELECT ALL 3 AS col1, 16 * CAST ( - - 7 AS INTEGER ) AS col1
----
3
112

query I rowsort
SELECT ALL + 55 + - + 39 + + - 36
----
-20

query I rowsort
SELECT 35 + - + 65 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT - CASE 68 WHEN - 83 * + + 82 * - - 32 + + - 36 THEN CAST( 76 AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT - CASE 68 WHEN - 83 * + + 82 * - - 32 + + - 36 THEN CAST ( 76 AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT + COUNT( * ) + 89 * + - 17 + + - CAST( + - 61 AS SIGNED )
----
-1451

skipif mysql # not compatible
query I rowsort label-4278
SELECT + COUNT ( * ) + 89 * + - 17 + + - CAST ( + - 61 AS INTEGER )
----
-1451

query I rowsort
SELECT - ( - 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT - COALESCE ( - COUNT( * ), + 5 - - 86, + - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-4280
SELECT - COALESCE ( - COUNT ( * ), + 5 - - 86, + - 92 )
----
1

query I rowsort
SELECT - - CASE - 55 WHEN + 16 THEN - 95 - + - 75 + - - 96 * - 92 * 24 * - 60 + - 6 ELSE + 2 + 22 END AS col0
----
24

query II rowsort
SELECT - 63, - 46 col2
----
-63
-46

query I rowsort
SELECT - + 36 + - - 50 AS col1
----
14

query I rowsort
SELECT - - 25 * - 67
----
-1675

query I rowsort
SELECT + 66 + - - 72 AS col2
----
138

query I rowsort
SELECT ALL - 14 * - 25
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT DISTINCT - 3 * + + MAX( ALL + NULLIF ( + ( 11 ), - + 22 ) ) + 9 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT - 3 * + + MAX ( ALL + NULLIF ( + ( 11 ), - + 22 ) ) + 9 AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4288
SELECT ALL 63 - ( CAST( NULL AS SIGNED ) ) * 10 + - COUNT( * ) / 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL 63 - ( CAST ( NULL AS INTEGER ) ) * 10 + - COUNT ( * ) / 97 AS col1
----
NULL

query I rowsort
SELECT - 32 * + - 99 * + 79 * - 60
----
-15016320

onlyif mysql # aggregate syntax: 
query II rowsort label-4290
SELECT ALL COALESCE ( - 73, + 72 + + COUNT( * ) + + - 74 + - 67 * - 76 * - 92 + + + 38 ) AS col0, 24 AS col1
----
-73
24

skipif mysql # not compatible
query II rowsort label-4290
SELECT ALL COALESCE ( - 73, + 72 + + COUNT ( * ) + + - 74 + - 67 * - 76 * - 92 + + + 38 ) AS col0, 24 AS col1
----
-73
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL MIN( DISTINCT - 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL MIN ( DISTINCT - 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4292
SELECT - COUNT( - 32 ), 89 AS col2
----
-1
89

skipif mysql # not compatible
query II rowsort label-4292
SELECT - COUNT ( - 32 ), 89 AS col2
----
-1
89

query I rowsort
SELECT + NULLIF ( - - 95, - + 12 * - 90 ) AS col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT - + 98 DIV - 35 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4294
SELECT - + 98 / - 35 AS col2
----
2

query II rowsort
SELECT - - 23 * + 15 AS col1, + 77 col1
----
345
77

query I rowsort
SELECT ALL 65 * + 34 * - 41
----
-90610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT - NULLIF ( 82, 13 ) + + - MIN( - CAST( + 92 AS SIGNED ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4297
SELECT - NULLIF ( 82, 13 ) + + - MIN ( - CAST ( + 92 AS INTEGER ) ) AS col1
----
10

query I rowsort
SELECT + 52 * 27 * - 7 AS col2
----
-9828

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT ALL 63 * 88 DIV - 33 AS col2
----
-168

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL 63 * 88 / - 33 AS col2
----
-168

query I rowsort
SELECT DISTINCT - 76 * + - 98 AS col2
----
7448

query I rowsort
SELECT CASE - - 0 WHEN + 63 THEN NULL WHEN 67 THEN 83 * 14 + 45 ELSE + 79 + + 86 END AS col1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT - 16 * - MIN( 32 ) AS col1
----
512

skipif mysql # not compatible
query I rowsort label-4302
SELECT - 16 * - MIN ( 32 ) AS col1
----
512

onlyif mysql # DIV for integer division: 
query I rowsort label-4303
SELECT 85 DIV + 88 + + 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4303
SELECT 85 / + 88 + + 60 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT ALL 1 * + 0 DIV - + 18 + - 34 + + + 80 * + - 38 * - - 34 * + ( - + 25 ) * 78
----
201551966

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL 1 * + 0 / - + 18 + - 34 + + + 80 * + - 38 * - - 34 * + ( - + 25 ) * 78
----
201551966

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT + COUNT( DISTINCT + 63 )
----
1

skipif mysql # not compatible
query I rowsort label-4305
SELECT + COUNT ( DISTINCT + 63 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + 98 + COUNT( * ) + - + 0 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4306
SELECT + 98 + COUNT ( * ) + - + 0 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT CASE WHEN NOT COUNT( * ) < + 73 THEN 49 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT CASE WHEN NOT COUNT ( * ) < + 73 THEN 49 END col0
----
NULL

query I rowsort
SELECT + 86 * - 83
----
-7138

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL ( - 40 ) * - COUNT( * ) + - + COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL ( - 40 ) * - COUNT ( * ) + - + COUNT ( * ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4310
SELECT DISTINCT 12 * - 12 + - - COUNT( * ) AS col0, + COUNT( * ) + - + NULLIF ( + 2, - + 25 )
----
-143
-1

skipif mysql # not compatible
query II rowsort label-4310
SELECT DISTINCT 12 * - 12 + - - COUNT ( * ) AS col0, + COUNT ( * ) + - + NULLIF ( + 2, - + 25 )
----
-143
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT + 55 * + + 46 * COUNT( * )
----
2530

skipif mysql # not compatible
query I rowsort label-4311
SELECT + 55 * + + 46 * COUNT ( * )
----
2530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4312
SELECT DISTINCT 61 DIV + 16 * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT 61 / + 16 * - COUNT ( * )
----
-3

query I rowsort
SELECT + ( + + COALESCE ( + ( + + 37 ), - 81 + - 26 ) )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT MIN( 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4314
SELECT MIN ( 34 )
----
34

query I rowsort
SELECT + 19 * - NULLIF ( 51, + ( + 91 ) ) AS col2
----
-969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT + CASE 89 WHEN + - ( 92 ) + + + 33 THEN - ( + CAST( 83 AS SIGNED ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT + CASE 89 WHEN + - ( 92 ) + + + 33 THEN - ( + CAST ( 83 AS INTEGER ) ) ELSE NULL END
----
NULL

query II rowsort
SELECT + 67 - + + 37 + 23, 96 AS col0
----
53
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4318
SELECT - 50 DIV 50 col0
----
-1

skipif mysql # not compatible
query I rowsort label-4318
SELECT - 50 / 50 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT DISTINCT + 26 DIV COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT + 26 / COUNT ( * )
----
26

query I rowsort
SELECT - - 63 * - NULLIF ( - - 78, 47 ) col0
----
-4914

query I rowsort
SELECT - ( - 99 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT ALL COALESCE ( - CAST( - 0 AS SIGNED ), + 49 )
----
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL COALESCE ( - CAST ( - 0 AS INTEGER ), + 49 )
----
0

query I rowsort
SELECT ALL COALESCE ( 26, + 75 ) AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4324
SELECT - - 86 DIV + - COUNT( * ) col2, 16 AS col2, + 53 + - 48 col2
----
-86
16
5

skipif mysql # not compatible
query III rowsort label-4324
SELECT - - 86 / + - COUNT ( * ) col2, 16 AS col2, + 53 + - 48 col2
----
-86
16
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4325
SELECT DISTINCT 59 AS col0, - CASE 99 WHEN - 23 THEN - 15 / - 17 WHEN 4 THEN NULL WHEN - COUNT( * ) THEN NULL END
----
59
NULL

skipif mysql # not compatible
query II rowsort label-4325
SELECT DISTINCT 59 AS col0, - CASE 99 WHEN - 23 THEN - 15 / - 17 WHEN 4 THEN NULL WHEN - COUNT ( * ) THEN NULL END
----
59
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4326
SELECT DISTINCT SUM( ALL - 25 ) DIV + 15 * + + COUNT( * ) + ( - 16 ) + + COUNT( * ) + ( - MIN( - + 21 ) ) * - SUM( DISTINCT 95 ) col2
----
-2011

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT SUM ( ALL - 25 ) / + 15 * + + COUNT ( * ) + ( - 16 ) + + COUNT ( * ) + ( - MIN ( - + 21 ) ) * - SUM ( DISTINCT 95 ) col2
----
-2011

onlyif mysql # DIV for integer division: 
query II rowsort label-4327
SELECT - 78 * 88 + - 17, 28 * 45 + - 32 DIV - + 87 + + - 5 * - + 93 * 56 AS col2
----
-6881
27300

skipif mysql # not compatible
query II rowsort label-4327
SELECT - 78 * 88 + - 17, 28 * 45 + - 32 / - + 87 + + - 5 * - + 93 * 56 AS col2
----
-6881
27300

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT - 22 DIV - + 78
----
0

skipif mysql # not compatible
query I rowsort label-4328
SELECT - 22 / - + 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4329
SELECT ALL 28 DIV COUNT( * ) + - + 26
----
2

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL 28 / COUNT ( * ) + - + 26
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT + 98 * - - COUNT( DISTINCT - - 95 ) * - ( - COUNT( * ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4330
SELECT + 98 * - - COUNT ( DISTINCT - - 95 ) * - ( - COUNT ( * ) ) AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT 17 DIV + 24 - - 83
----
83

skipif mysql # not compatible
query I rowsort label-4331
SELECT 17 / + 24 - - 83
----
83

query I rowsort
SELECT - ( - 28 ) * 25
----
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT CAST( + 10 AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4333
SELECT CAST ( + 10 AS INTEGER ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT - 86 DIV + - 9
----
9

skipif mysql # not compatible
query I rowsort label-4334
SELECT - 86 / + - 9
----
9

query I rowsort
SELECT + 92 * + 29
----
2668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4336
SELECT ALL + 29 DIV 65 + MAX( ALL + CAST( - 56 AS SIGNED ) )
----
-56

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL + 29 / 65 + MAX ( ALL + CAST ( - 56 AS INTEGER ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT DISTINCT + COUNT( - + 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT + COUNT ( - + 16 ) AS col2
----
1

query I rowsort
SELECT ( - 65 ) AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4339
SELECT DISTINCT + COUNT( * ) / + 53 + + + 35 + - COUNT( + - 97 ) / - - 92 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + COUNT ( * ) / + 53 + + + 35 + - COUNT ( + - 97 ) / - - 92 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4340
SELECT - 2 * - 22 + - + 46 DIV COUNT( * ) + - + 20
----
-22

skipif mysql # not compatible
query I rowsort label-4340
SELECT - 2 * - 22 + - + 46 / COUNT ( * ) + - + 20
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT ALL - 2 * - 91 DIV + 78 - - - ( 34 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - 2 * - 91 / + 78 - - - ( 34 ) AS col2
----
-32

query I rowsort
SELECT + 65 + ( + - ( - 53 ) )
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4343
SELECT 78 * + + COUNT( * ) - - + 53 - + + 16 - - COUNT( * ) * - 24 * MIN( DISTINCT - CASE + ( + + 86 ) WHEN - CAST( NULL AS SIGNED ) / 16 THEN NULL WHEN + 0 THEN NULL ELSE - 32 * + - 82 - - 3 END ) * - 18
----
-1134749

skipif mysql # not compatible
query I rowsort label-4343
SELECT 78 * + + COUNT ( * ) - - + 53 - + + 16 - - COUNT ( * ) * - 24 * MIN ( DISTINCT - CASE + ( + + 86 ) WHEN - CAST ( NULL AS INTEGER ) / 16 THEN NULL WHEN + 0 THEN NULL ELSE - 32 * + - 82 - - 3 END ) * - 18
----
-1134749

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT COUNT( * ) + - 31 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4344
SELECT COUNT ( * ) + - 31 AS col0
----
-30

query I rowsort
SELECT ALL + 97 - + + 22 AS col2
----
75

query II rowsort
SELECT DISTINCT + 83 col2, 68 AS col0
----
83
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT NULLIF ( + 28, + 16 * 10 + + + 5 * + 4 / + 76 / + - 70 - - - 91 + + COUNT( * ) ) * - 65 * - ( COUNT( * ) ) - 94
----
1726

skipif mysql # not compatible
query I rowsort label-4347
SELECT NULLIF ( + 28, + 16 * 10 + + + 5 * + 4 / + 76 / + - 70 - - - 91 + + COUNT ( * ) ) * - 65 * - ( COUNT ( * ) ) - 94
----
1726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4348
SELECT 19 DIV - + NULLIF ( 82, - MAX( - 65 ) + - 48 DIV - CAST( NULL AS SIGNED ) * ( + 70 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4348
SELECT 19 / - + NULLIF ( 82, - MAX ( - 65 ) + - 48 / - CAST ( NULL AS INTEGER ) * ( + 70 ) ) AS col0
----
0

query II rowsort
SELECT - + 35 AS col2, + 62 + - ( + 39 )
----
-35
23

query I rowsort
SELECT 78 + 58 col2
----
136

query II rowsort
SELECT ALL 60, - ( + 86 ) AS col0
----
60
-86

query I rowsort
SELECT DISTINCT + 4 * - - 12 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT - 41 + + 3 - COUNT( * ) - COUNT( * ) * + + 53 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4353
SELECT - 41 + + 3 - COUNT ( * ) - COUNT ( * ) * + + 53 AS col1
----
-92

query I rowsort
SELECT - + 55 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL - MAX( ALL 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL - MAX ( ALL 53 )
----
-53

query I rowsort
SELECT ALL 25 + 49 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT 88 * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4357
SELECT 88 * - COUNT ( * )
----
-88

query II rowsort
SELECT + 8 * - 17 + 96 AS col2, ( - + 63 )
----
-40
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4359
SELECT ALL + NULLIF ( + - ( 50 ), + - CASE - - 74 WHEN ( - ( 84 ) ) THEN - - 89 * 69 WHEN + 82 THEN NULL END - - + 62 ) DIV 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL + NULLIF ( + - ( 50 ), + - CASE - - 74 WHEN ( - ( 84 ) ) THEN - - 89 * 69 WHEN + 82 THEN NULL END - - + 62 ) / 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT + CASE ( MIN( ALL - - 12 ) ) WHEN ( - COUNT( * ) ) THEN - 44 WHEN - 57 THEN 96 / + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT + CASE ( MIN ( ALL - - 12 ) ) WHEN ( - COUNT ( * ) ) THEN - 44 WHEN - 57 THEN 96 / + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL CASE - 65 WHEN - 44 THEN 5 * + - 41 + 64 + - - 87 + + 13 - + 48 WHEN - - 8 + 82 + - 54 + - CASE + 1 WHEN 21 * + + COUNT( DISTINCT - - 27 ) * - 4 + - - 26 - + 39 + + COUNT( * ) THEN + 60 WHEN + 37 + - 29 + + COUNT( DISTINCT - 73 ) + 74 * 14 THEN NULL WHEN + 13 THEN NULL END THEN - ( + 41 ) END + - - 24 * 58 * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL CASE - 65 WHEN - 44 THEN 5 * + - 41 + 64 + - - 87 + + 13 - + 48 WHEN - - 8 + 82 + - 54 + - CASE + 1 WHEN 21 * + + COUNT ( DISTINCT - - 27 ) * - 4 + - - 26 - + 39 + + COUNT ( * ) THEN + 60 WHEN + 37 + - 29 + + COUNT ( DISTINCT - 73 ) + 74 * 14 THEN NULL WHEN + 13 THEN NULL END THEN - ( + 41 ) END + - - 24 * 58 * 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL + NULLIF ( ( 64 ), 73 + + - 85 + 6 * - 65 + 96 ) + 78 + - 51 * - COALESCE ( + COUNT( * ), - 74 * + 80 - + - 81 + + + 56 * + + COUNT( * ) + - - NULLIF ( + 30, - 20 + + COUNT( * ) ) ) * + COUNT( - 22 ) AS col1
----
193

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL + NULLIF ( ( 64 ), 73 + + - 85 + 6 * - 65 + 96 ) + 78 + - 51 * - COALESCE ( + COUNT ( * ), - 74 * + 80 - + - 81 + + + 56 * + + COUNT ( * ) + - - NULLIF ( + 30, - 20 + + COUNT ( * ) ) ) * + COUNT ( - 22 ) AS col1
----
193

query I rowsort
SELECT DISTINCT 52 + + + 57 AS col2
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4364
SELECT 13 * + - ( CASE - AVG ( 44 ) WHEN + + 61 THEN - 73 * + 15 * + + 86 * + - COUNT( * ) + 49 * - CAST( - 50 AS SIGNED ) + + COUNT( * ) + - - ( + + 27 ) WHEN + - 90 THEN NULL END ) * - - 15 * + NULLIF ( AVG ( DISTINCT - 74 ), - 19 ) * - 8 + - NULLIF ( + 43, - COUNT( - 78 ) - - 27 + 25 ) / + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT 13 * + - ( CASE - AVG ( 44 ) WHEN + + 61 THEN - 73 * + 15 * + + 86 * + - COUNT ( * ) + 49 * - CAST ( - 50 AS INTEGER ) + + COUNT ( * ) + - - ( + + 27 ) WHEN + - 90 THEN NULL END ) * - - 15 * + NULLIF ( AVG ( DISTINCT - 74 ), - 19 ) * - 8 + - NULLIF ( + 43, - COUNT ( - 78 ) - - 27 + 25 ) / + 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL + COUNT( * ) + + NULLIF ( - 83, + - 69 + COUNT( * ) + - + 52 )
----
-82

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + COUNT ( * ) + + NULLIF ( - 83, + - 69 + COUNT ( * ) + - + 52 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT 22 DIV - + 14 + 50 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4366
SELECT 22 / - + 14 + 50 AS col1
----
49

query I rowsort
SELECT 3 * 56 AS col1
----
168

query I rowsort
SELECT DISTINCT + ( 68 ) + - + COALESCE ( 41, - + 64 ) - - 71 + 76
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT ALL - CAST( + ( - 49 ) AS SIGNED ) col2
----
49

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL - CAST ( + ( - 49 ) AS INTEGER ) col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4370
SELECT 59 DIV 26 * + 55 + + 67 + - 40 - + 93 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4370
SELECT 59 / 26 * + 55 + + 67 + - 40 - + 93 AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT ALL - CAST( - + ( - 64 ) AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - CAST ( - + ( - 64 ) AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT 18 * - COUNT( * ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-4372
SELECT 18 * - COUNT ( * ) col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4373
SELECT ALL - 69 / + + MIN( DISTINCT - 43 ) * + CAST( NULL AS DECIMAL ) AS col2, 0 + + 96 AS col0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-4373
SELECT ALL - 69 / + + MIN ( DISTINCT - 43 ) * + CAST ( NULL AS REAL ) AS col2, 0 + + 96 AS col0
----
NULL
96

query I rowsort
SELECT ALL 2 * + 2 * 84 col1
----
336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4375
SELECT - 72 DIV + 87 + 69 * 85 * - MIN( ALL + 92 )
----
-539580

skipif mysql # not compatible
query I rowsort label-4375
SELECT - 72 / + 87 + 69 * 85 * - MIN ( ALL + 92 )
----
-539580

query I rowsort
SELECT ALL - - COALESCE ( + 94, + 39 + 43, - 59 ) AS col0
----
94

query I rowsort
SELECT + ( 83 ) AS col1
----
83

query I rowsort
SELECT 3 * + 29 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT NULLIF ( - + 71, - COUNT( + 37 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT NULLIF ( - + 71, - COUNT ( + 37 ) )
----
-71

query I rowsort
SELECT + ( - + 51 ) - - 72 AS col1
----
21

query I rowsort
SELECT + 39 * - 54
----
-2106

query I rowsort
SELECT ALL - 41 + + + 58 + + - ( + 16 ) AS col1
----
1

query I rowsort
SELECT + 79 - - + 15 * - - 55
----
904

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL + MIN( - - 29 ) col0
----
29

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL + MIN ( - - 29 ) col0
----
29

query I rowsort
SELECT DISTINCT + - 64 + + 41 AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4386
SELECT DISTINCT - 92 * 50 + 11 DIV + + MAX( ( + 87 ) )
----
-4600

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT - 92 * 50 + 11 / + + MAX ( ( + 87 ) )
----
-4600

query I rowsort
SELECT ALL 75 + + + 11 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL + 59 * - + MAX( 86 ) AS col0
----
-5074

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL + 59 * - + MAX ( 86 ) AS col0
----
-5074

query I rowsort
SELECT ALL 59 + - + ( + 15 ) AS col1
----
44

query I rowsort
SELECT 84 * + 10
----
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4391
SELECT ALL 4 * + - SUM( ALL - 97 ) AS col2, - COUNT( * ) * - + COUNT( * ) * - 43 + CAST( NULL AS SIGNED )
----
388
NULL

skipif mysql # not compatible
query II rowsort label-4391
SELECT ALL 4 * + - SUM ( ALL - 97 ) AS col2, - COUNT ( * ) * - + COUNT ( * ) * - 43 + CAST ( NULL AS INTEGER )
----
388
NULL

query I rowsort
SELECT ALL 39 + + 79 * + 23 * + 72
----
130863

query I rowsort
SELECT 3 + + 85 AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4394
SELECT ALL 51 + + COUNT( * ) DIV - - 91 * - COUNT( ALL 81 )
----
51

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL 51 + + COUNT ( * ) / - - 91 * - COUNT ( ALL 81 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT COUNT( * ) * COUNT( * ) * 36
----
36

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * 36
----
36

query II rowsort
SELECT ALL 26 AS col0, + 60 AS col1
----
26
60

query I rowsort
SELECT NULLIF ( + 11, - NULLIF ( - 50, - 81 ) )
----
11

query I rowsort
SELECT + 39 col2
----
39

query I rowsort
SELECT + 97 - + CASE - 93 WHEN - 24 THEN ( - - 27 ) WHEN + - 42 * 93 + + 6 + + 86 + 68 + 84 THEN NULL WHEN - 32 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4400
SELECT + MAX( + 84 ) + + 6 + - 2 + 56 * + - 6 * - 66 / CAST( NULL AS SIGNED ) * - + 60 + 23 col2, 51
----
NULL
51

skipif mysql # not compatible
query II rowsort label-4400
SELECT + MAX ( + 84 ) + + 6 + - 2 + 56 * + - 6 * - 66 / CAST ( NULL AS INTEGER ) * - + 60 + 23 col2, 51
----
NULL
51

query I rowsort
SELECT - 25 * 92 AS col2
----
-2300

query I rowsort
SELECT ALL 31 * - 30 AS col0
----
-930

query I rowsort
SELECT + 89 * 72
----
6408

query I rowsort
SELECT - 95 * + 96
----
-9120

query I rowsort
SELECT 93 * + 15 + - 60 AS col1
----
1335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4406
SELECT - MAX( ALL 99 ) * - CAST( - 13 AS SIGNED )
----
-1287

skipif mysql # not compatible
query I rowsort label-4406
SELECT - MAX ( ALL 99 ) * - CAST ( - 13 AS INTEGER )
----
-1287

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL CASE + 96 WHEN 51 / + 18 THEN - 99 * 80 + + 51 ELSE NULLIF ( MIN( 25 ), - 66 * - 43 ) + 37 END * 68 + ( + 42 ) * + 85 AS col0
----
7786

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL CASE + 96 WHEN 51 / + 18 THEN - 99 * 80 + + 51 ELSE NULLIF ( MIN ( 25 ), - 66 * - 43 ) + 37 END * 68 + ( + 42 ) * + 85 AS col0
----
7786

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT + COUNT( DISTINCT 3 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4408
SELECT + COUNT ( DISTINCT 3 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT - 47 DIV NULLIF ( + 85, 6 )
----
0

skipif mysql # not compatible
query I rowsort label-4409
SELECT - 47 / NULLIF ( + 85, 6 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - 59 + + SUM( ALL - 51 ) AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-4410
SELECT - 59 + + SUM ( ALL - 51 ) AS col0
----
-110

query I rowsort
SELECT DISTINCT - 21 + - 49
----
-70

query I rowsort
SELECT ALL + 66 + - COALESCE ( NULLIF ( + 24, - 5 ), + 59 * 28 + 42, 58 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT DISTINCT 6 * - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT 6 * - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT DISTINCT CASE - COUNT( * ) WHEN 60 * - AVG ( ALL + 0 ) THEN NULL ELSE + 38 END + 60
----
98

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT CASE - COUNT ( * ) WHEN 60 * - AVG ( ALL + 0 ) THEN NULL ELSE + 38 END + 60
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT + 48 + COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT + 48 + COUNT ( * ) AS col0
----
49

query I rowsort
SELECT ALL ( 42 ) + - 23 * 51
----
-1131

query I rowsort
SELECT - 5 + 85 * + 15
----
1270

query I rowsort
SELECT ALL + 30 * + 19 AS col0
----
570

query I rowsort
SELECT + 81 + 49 AS col1
----
130

query I rowsort
SELECT DISTINCT ( + 49 )
----
49

query I rowsort
SELECT ALL 63 + - 86
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT - 69 * + SUM( DISTINCT 43 ) AS col0
----
-2967

skipif mysql # not compatible
query I rowsort label-4422
SELECT - 69 * + SUM ( DISTINCT 43 ) AS col0
----
-2967

query I rowsort
SELECT + 75 * 87
----
6525

query I rowsort
SELECT DISTINCT 98 - 70 * - 91
----
6468

query I rowsort
SELECT DISTINCT ( - 19 ) AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT DISTINCT ( + CASE - 30 WHEN 8 THEN CASE 5 WHEN 39 THEN 94 + + 16 WHEN - 45 * 33 THEN - 32 + 46 * + 13 ELSE - 10 END WHEN 78 * + 60 THEN CAST( NULL AS SIGNED ) + - 4 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT ( + CASE - 30 WHEN 8 THEN CASE 5 WHEN 39 THEN 94 + + 16 WHEN - 45 * 33 THEN - 32 + 46 * + 13 ELSE - 10 END WHEN 78 * + 60 THEN CAST ( NULL AS INTEGER ) + - 4 END )
----
NULL

query I rowsort
SELECT ALL - 4 - + 84
----
-88

query I rowsort
SELECT + 39 * 66
----
2574

query I rowsort
SELECT ALL 51 * + 54 AS col2
----
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT DISTINCT - COUNT( ALL + 92 ) - 99
----
-100

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT - COUNT ( ALL + 92 ) - 99
----
-100

query I rowsort
SELECT + 33 + 90 * - 75
----
-6717

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT + 92 DIV 59
----
1

skipif mysql # not compatible
query I rowsort label-4432
SELECT + 92 / 59
----
1

query I rowsort
SELECT ALL 97 * + 12
----
1164

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - 3 * COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4434
SELECT - 3 * COUNT ( * ) AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4435
SELECT + 9 + - ( + 60 ) DIV 37
----
8

skipif mysql # not compatible
query I rowsort label-4435
SELECT + 9 + - ( + 60 ) / 37
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4436
SELECT ALL CAST( + 86 AS SIGNED ) * + 52
----
4472

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL CAST ( + 86 AS INTEGER ) * + 52
----
4472

query I rowsort
SELECT + 97 + 45 AS col1
----
142

query I rowsort
SELECT + 56 - 87
----
-31

query I rowsort
SELECT + 61 / - CASE - 49 WHEN - 26 * + 40 THEN 52 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT 96 DIV COALESCE ( 66, - 80 + 29 ) + + COUNT( * ) * 32
----
33

skipif mysql # not compatible
query I rowsort label-4440
SELECT 96 / COALESCE ( 66, - 80 + 29 ) + + COUNT ( * ) * 32
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT + COUNT( * ) - + 23
----
-22

skipif mysql # not compatible
query I rowsort label-4441
SELECT + COUNT ( * ) - + 23
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT DISTINCT MIN( ALL 40 ) * + 59
----
2360

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT MIN ( ALL 40 ) * + 59
----
2360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4443
SELECT ALL + 97 DIV - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL + 97 / - COUNT ( * ) AS col0
----
-97

query I rowsort
SELECT - 97 * - ( - 87 * - 14 ) + + 33
----
118179

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT + + MAX( + 13 ) - + 1
----
12

skipif mysql # not compatible
query I rowsort label-4445
SELECT + + MAX ( + 13 ) - + 1
----
12

query I rowsort
SELECT ALL + ( 48 ) AS col2
----
48

query I rowsort
SELECT ( 7 )
----
7

query I rowsort
SELECT - - ( + 51 ) + + 10
----
61

query I rowsort
SELECT - 94 * - 79 AS col0
----
7426

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL + 89 * COUNT( * ) + - MAX( DISTINCT - 21 ) AS col1
----
110

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL + 89 * COUNT ( * ) + - MAX ( DISTINCT - 21 ) AS col1
----
110

query I rowsort
SELECT + 34 * - 14
----
-476

query I rowsort
SELECT - 3 + - 2 * - 82
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL + + COUNT( + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + + COUNT ( + 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL - + 39 * - COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL - + 39 * - COUNT ( * ) AS col0
----
39

query I rowsort
SELECT + 61 * 6
----
366

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL - 60 * + 8 + - COUNT( * )
----
-481

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - 60 * + 8 + - COUNT ( * )
----
-481

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT - COUNT( * ) * 60 + + 19
----
-41

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT - COUNT ( * ) * 60 + + 19
----
-41

query I rowsort
SELECT DISTINCT + - 9 AS col1
----
-9

query I rowsort
SELECT ALL - 95 * + 43 + + 98 AS col0
----
-3987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT - CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4460
SELECT - CAST ( - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4461
SELECT + - 59 DIV CAST( + 61 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4461
SELECT + - 59 / CAST ( + 61 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT + 36 * 54 AS col0
----
1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4463
SELECT ALL - ( - COUNT( * ) ) DIV + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - ( - COUNT ( * ) ) / + 73 AS col2
----
0

query I rowsort
SELECT - 63 - + 59 * - 37 AS col2
----
2120

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT - COUNT( * ) * - 41
----
41

skipif mysql # not compatible
query I rowsort label-4465
SELECT - COUNT ( * ) * - 41
----
41

query I rowsort
SELECT DISTINCT + ( 23 ) AS col0
----
23

query I rowsort
SELECT DISTINCT + 45 * - 21
----
-945

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT ALL + 72 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL + 72 / - 81
----
0

query I rowsort
SELECT DISTINCT ( + + ( ( + 34 ) ) )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4470
SELECT ALL - 72 * - CAST( COUNT( * ) AS SIGNED ) * CASE + 39 - + 29 * 13 WHEN 55 * - 24 THEN 24 WHEN + COUNT( * ) - + 24 THEN CASE + 95 WHEN 99 THEN - COALESCE ( - 29, 96 * - 62 ) END ELSE - 19 - - 64 END
----
3240

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL - 72 * - CAST ( COUNT ( * ) AS INTEGER ) * CASE + 39 - + 29 * 13 WHEN 55 * - 24 THEN 24 WHEN + COUNT ( * ) - + 24 THEN CASE + 95 WHEN 99 THEN - COALESCE ( - 29, 96 * - 62 ) END ELSE - 19 - - 64 END
----
3240

query I rowsort
SELECT - 16 - 26 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT - 86 + + - COUNT( * ) + COUNT( * ) * NULLIF ( 97, 63 * 43 + 49 * + 96 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4472
SELECT - 86 + + - COUNT ( * ) + COUNT ( * ) * NULLIF ( 97, 63 * 43 + 49 * + 96 ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT COUNT( * ) - 33 DIV COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-4473
SELECT COUNT ( * ) - 33 / COUNT ( * ) AS col2
----
-32

query I rowsort
SELECT 19 * - - 86 * NULLIF ( + 83, 87 - - 94 )
----
135622

query I rowsort
SELECT 54 * - + 97 col0
----
-5238

query I rowsort
SELECT 28 + 39 * 28 AS col0
----
1120

query I rowsort
SELECT 38 + + 28 AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4478
SELECT ALL 37 + - + MIN( - 14 ) + ( ( 98 ) + + 40 ) * CASE + 80 WHEN 95 + 73 THEN NULL WHEN 99 / + 39 THEN COUNT( - 87 ) * 83 ELSE 49 * 85 + + 58 END * + CAST( 96 AS SIGNED )
----
55946355

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL 37 + - + MIN ( - 14 ) + ( ( 98 ) + + 40 ) * CASE + 80 WHEN 95 + 73 THEN NULL WHEN 99 / + 39 THEN COUNT ( - 87 ) * 83 ELSE 49 * 85 + + 58 END * + CAST ( 96 AS INTEGER )
----
55946355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4479
SELECT ALL 96 * + MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL 96 * + MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 1 * + NULLIF ( - 21, 11 ) * 91 + + 63 * - 61
----
-5754

onlyif mysql # DIV for integer division: 
query I rowsort label-4481
SELECT ( + NULLIF ( + 72, 32 ) ) DIV 4 + 69 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4481
SELECT ( + NULLIF ( + 72, 32 ) ) / 4 + 69 AS col0
----
87

query I rowsort
SELECT DISTINCT 43 + + 2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL CAST( NULL AS SIGNED ) + 4 + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL CAST ( NULL AS INTEGER ) + 4 + + 41
----
NULL

query I rowsort
SELECT + - 99 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT + COUNT( * ) + - + 59 * - MIN( - 51 * - 73 )
----
219658

skipif mysql # not compatible
query I rowsort label-4485
SELECT + COUNT ( * ) + - + 59 * - MIN ( - 51 * - 73 )
----
219658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + 27
----
NULL

query I rowsort
SELECT ALL - 18 + 60
----
42

query I rowsort
SELECT ALL - + 75 AS col1
----
-75

query I rowsort
SELECT DISTINCT 80 + + 29 * + 5
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT DISTINCT 19 + + - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT 19 + + - COUNT ( * )
----
18

query I rowsort
SELECT DISTINCT - - NULLIF ( + 34, 25 - 58 * 6 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4492
SELECT SUM( ALL + 46 ) * ( + 24 - - NULLIF ( + 84 + 96 DIV - 43, 25 ) )
----
4876

skipif mysql # not compatible
query I rowsort label-4492
SELECT SUM ( ALL + 46 ) * ( + 24 - - NULLIF ( + 84 + 96 / - 43, 25 ) )
----
4876

onlyif mysql # DIV for integer division: 
query I rowsort label-4493
SELECT ALL + 93 DIV 8 * 10
----
110

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + 93 / 8 * 10
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT 1 + - + 73 DIV - 39 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4494
SELECT 1 + - + 73 / - 39 AS col0
----
2

query I rowsort
SELECT DISTINCT - + 60 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT - MIN( ALL 97 ) * ( + 6 ) + - 70 AS col0
----
-652

skipif mysql # not compatible
query I rowsort label-4496
SELECT - MIN ( ALL 97 ) * ( + 6 ) + - 70 AS col0
----
-652

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT SUM( ALL 85 )
----
85

skipif mysql # not compatible
query I rowsort label-4497
SELECT SUM ( ALL 85 )
----
85

query I rowsort
SELECT 81 + - + 63 + 13 AS col2
----
31

query I rowsort
SELECT - 90 * + 99 - + ( 69 ) AS col1
----
-8979

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL + 41 - - - COUNT( * ) - NULLIF ( 55, MIN( DISTINCT - 67 ) + 30 ) * + 28
----
-1500

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL + 41 - - - COUNT ( * ) - NULLIF ( 55, MIN ( DISTINCT - 67 ) + 30 ) * + 28
----
-1500

query I rowsort
SELECT CASE 67 WHEN + 36 THEN 72 * 23 ELSE 11 + 5 END * + 90 + 86 * - 99 AS col2
----
-7074

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT 87 - NULLIF ( - 15, COUNT( * ) ) * + 4 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT 87 - NULLIF ( - 15, COUNT ( * ) ) * + 4 AS col1
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4503
SELECT COALESCE ( - - COUNT( * ), - - 46 * 87 + + CAST( NULL AS SIGNED ), 50 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4503
SELECT COALESCE ( - - COUNT ( * ), - - 46 * 87 + + CAST ( NULL AS INTEGER ), 50 ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT - 7 * + + 20 + - + 65 + CASE 2 WHEN + 79 THEN - ( + COUNT( * ) ) ELSE NULL END * + ( NULLIF ( + 12, 26 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT - 7 * + + 20 + - + 65 + CASE 2 WHEN + 79 THEN - ( + COUNT ( * ) ) ELSE NULL END * + ( NULLIF ( + 12, 26 ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT ALL COUNT( * ) * - 84 * + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL COUNT ( * ) * - 84 * + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT 38 + - - COUNT( * ) * - 31 + 12
----
19

skipif mysql # not compatible
query I rowsort label-4506
SELECT 38 + - - COUNT ( * ) * - 31 + 12
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4507
SELECT 48 + + CAST( + MAX( DISTINCT 87 ) AS SIGNED ) * + COUNT( * )
----
135

skipif mysql # not compatible
query I rowsort label-4507
SELECT 48 + + CAST ( + MAX ( DISTINCT 87 ) AS INTEGER ) * + COUNT ( * )
----
135

query II rowsort
SELECT ALL 68 AS col0, 14 AS col0
----
68
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4509
SELECT 54 DIV + 19 col1
----
2

skipif mysql # not compatible
query I rowsort label-4509
SELECT 54 / + 19 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT 57 + + COUNT( * ) + + ( + 29 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-4510
SELECT 57 + + COUNT ( * ) + + ( + 29 ) AS col2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4511
SELECT DISTINCT + 23 DIV - COUNT( DISTINCT 29 )
----
-23

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT + 23 / - COUNT ( DISTINCT 29 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4512
SELECT ALL 26 AS col2, - COUNT( * ) AS col1
----
26
-1

skipif mysql # not compatible
query II rowsort label-4512
SELECT ALL 26 AS col2, - COUNT ( * ) AS col1
----
26
-1

query I rowsort
SELECT 34 + + 23
----
57

query I rowsort
SELECT DISTINCT 28 col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT 44 DIV + - 18
----
-2

skipif mysql # not compatible
query I rowsort label-4515
SELECT 44 / + - 18
----
-2

query I rowsort
SELECT DISTINCT + 96 + + ( + 36 )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL + 78 + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + 78 + COUNT ( * )
----
79

query I rowsort
SELECT DISTINCT - 24 * + - 14 * - - 65
----
21840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4519
SELECT MAX( 30 ) + + COALESCE ( - 11, - COUNT( * ) DIV 1 + 52, - 55 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4519
SELECT MAX ( 30 ) + + COALESCE ( - 11, - COUNT ( * ) / 1 + 52, - 55 ) AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4520
SELECT 79 + - COUNT( * ) DIV - ( 17 )
----
79

skipif mysql # not compatible
query I rowsort label-4520
SELECT 79 + - COUNT ( * ) / - ( 17 )
----
79

query I rowsort
SELECT ALL - 79 + - 81 AS col2
----
-160

query I rowsort
SELECT 55 + 32 AS col0
----
87

query I rowsort
SELECT - 7 - + 89 * + 60 * - 77
----
411173

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL - MIN( ALL 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - MIN ( ALL 1 )
----
-1

query I rowsort
SELECT + 16 * - - 79 * ( 98 )
----
123872

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL COUNT( * ) * - + 51 * 32 * 7 + + 41 AS col2
----
-11383

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL COUNT ( * ) * - + 51 * 32 * 7 + + 41 AS col2
----
-11383

query I rowsort
SELECT DISTINCT - - 64
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4528
SELECT DISTINCT - - 8 AS col0, COUNT( * )
----
8
1

skipif mysql # not compatible
query II rowsort label-4528
SELECT DISTINCT - - 8 AS col0, COUNT ( * )
----
8
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4529
SELECT ALL - 36, CAST( NULL AS SIGNED ) / - + 3 + + 78 * + MIN( - 80 ) AS col0
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-4529
SELECT ALL - 36, CAST ( NULL AS INTEGER ) / - + 3 + + 78 * + MIN ( - 80 ) AS col0
----
-36
NULL

query I rowsort
SELECT ALL 42 * - + 17 + - 36 - + 43 - 35
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ALL + COUNT( * ) * + ( 7 ) * NULLIF ( - 51, + 40 )
----
-357

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL + COUNT ( * ) * + ( 7 ) * NULLIF ( - 51, + 40 )
----
-357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT 3 DIV ( - COUNT( ( - 76 ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4532
SELECT 3 / ( - COUNT ( ( - 76 ) ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT DISTINCT - - MIN( - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT - - MIN ( - 74 )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT ALL - CAST( - 69 AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL - CAST ( - 69 AS INTEGER ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL + 70 * - 59 * + COUNT( ALL 37 )
----
-4130

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL + 70 * - 59 * + COUNT ( ALL 37 )
----
-4130

query II rowsort
SELECT 91 AS col0, - 64 AS col0
----
91
-64

query I rowsort
SELECT 72 * + 68
----
4896

query I rowsort
SELECT DISTINCT 37 * + ( + 56 )
----
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT - + COALESCE ( + MAX( + 61 ), 60 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT - + COALESCE ( + MAX ( + 61 ), 60 ) AS col1
----
-61

query I rowsort
SELECT - 87 + - + 97 col1
----
-184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT + 4 * CASE 18 WHEN + + 6 THEN NULL ELSE + CAST( NULL AS SIGNED ) - + ( 49 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT + 4 * CASE 18 WHEN + + 6 THEN NULL ELSE + CAST ( NULL AS INTEGER ) - + ( 49 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT + 80 - + 30 + - + 24 * ( - COUNT( ALL 20 ) ) - 6 col2
----
68

skipif mysql # not compatible
query I rowsort label-4542
SELECT + 80 - + 30 + - + 24 * ( - COUNT ( ALL 20 ) ) - 6 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - COALESCE ( + 21, + COUNT( * ) * - NULLIF ( 71, - 68 ) + - 82, - 68 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4543
SELECT - COALESCE ( + 21, + COUNT ( * ) * - NULLIF ( 71, - 68 ) + - 82, - 68 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT + COUNT( * ) * + ( + 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4544
SELECT + COUNT ( * ) * + ( + 4 ) AS col0
----
4

query I rowsort
SELECT + 57 - + 45
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4546
SELECT ALL 27 + CAST( NULL AS DECIMAL ) * + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL 27 + CAST ( NULL AS REAL ) * + + 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT 46 * + + 97 + + CASE + 20 WHEN 4 THEN CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT 46 * + + 97 + + CASE + 20 WHEN 4 THEN CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 74 col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT + COUNT( * ) * + 98 AS col2, 65
----
98
65

skipif mysql # not compatible
query II rowsort label-4549
SELECT + COUNT ( * ) * + 98 AS col2, 65
----
98
65

query I rowsort
SELECT ALL + 10 + 51
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4551
SELECT ALL CAST( NULL AS SIGNED ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL CAST ( NULL AS INTEGER ) * - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL COUNT( - + 95 ) + - 73 + + 53 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL COUNT ( - + 95 ) + - 73 + + 53 AS col1
----
-19

query I rowsort
SELECT + 3 - - 4
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4554
SELECT - ( COUNT( * ) ) - + 42 * + - CAST( - ( - 64 ) AS SIGNED ) * + 22
----
59135

skipif mysql # not compatible
query I rowsort label-4554
SELECT - ( COUNT ( * ) ) - + 42 * + - CAST ( - ( - 64 ) AS INTEGER ) * + 22
----
59135

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT - COUNT( - 38 ) + + - 99
----
-100

skipif mysql # not compatible
query I rowsort label-4555
SELECT - COUNT ( - 38 ) + + - 99
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT MAX( + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT MAX ( + 17 )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4557
SELECT - 49 * + 63 * 88 * - ( + CASE 45 WHEN - 13 THEN MIN( ALL - 61 ) + 35 WHEN + 85 * COUNT( * ) + 71 * - 52 THEN 31 + + ( + 59 ) / - 19 WHEN 35 * - 91 THEN + 25 ELSE NULL END ) * ( - CAST( - NULLIF ( + 81, + COALESCE ( COUNT( * ), 87 ) ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT - 49 * + 63 * 88 * - ( + CASE 45 WHEN - 13 THEN MIN ( ALL - 61 ) + 35 WHEN + 85 * COUNT ( * ) + 71 * - 52 THEN 31 + + ( + 59 ) / - 19 WHEN 35 * - 91 THEN + 25 ELSE NULL END ) * ( - CAST ( - NULLIF ( + 81, + COALESCE ( COUNT ( * ), 87 ) ) AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT ALL - 75 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - 75 / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT - ( + SUM( + - 76 ) )
----
76

skipif mysql # not compatible
query I rowsort label-4559
SELECT - ( + SUM ( + - 76 ) )
----
76

query II rowsort
SELECT ALL - 18 + - - 11 AS col0, + 3 AS col0
----
-7
3

query I rowsort
SELECT ALL - - 32 * + 6 - + - 46 + + 97 col2
----
335

query I rowsort
SELECT - 27 * 87 * + 82 AS col0
----
-192618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4563
SELECT ALL - 11 DIV + MAX( ALL 47 ) - - + 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - 11 / + MAX ( ALL 47 ) - - + 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT + + SUM( ALL 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4564
SELECT + + SUM ( ALL 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4565
SELECT + 7 DIV + 29 * - COUNT( * ) + - 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4565
SELECT + 7 / + 29 * - COUNT ( * ) + - 43 AS col1
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4566
SELECT + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4567
SELECT - 86 * - + 87 * COALESCE ( + 57, - 38 - - 32, ( 20 ) DIV + 98 ) AS col2
----
426474

skipif mysql # not compatible
query I rowsort label-4567
SELECT - 86 * - + 87 * COALESCE ( + 57, - 38 - - 32, ( 20 ) / + 98 ) AS col2
----
426474

query I rowsort
SELECT ALL + - 61 * + 74 + - - 18 AS col1
----
-4496

query I rowsort
SELECT - 19 * + 4 - + 11
----
-87

query I rowsort
SELECT DISTINCT + + NULLIF ( + 7, ( 87 ) + + 59 )
----
7

query I rowsort
SELECT DISTINCT + - 31 AS col1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT - 70 DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT - 70 / + 79 AS col1
----
0

query II rowsort
SELECT - - 70 * + - 85 AS col2, + 87
----
-5950
87

query I rowsort
SELECT + - 64 + - - 8 + - 37 * + 28 AS col0
----
-1092

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT - 74 * ( 29 ) * 51 + + ( - 78 ) + + 30 DIV + 41 AS col1
----
-109524

skipif mysql # not compatible
query I rowsort label-4575
SELECT - 74 * ( 29 ) * 51 + + ( - 78 ) + + 30 / + 41 AS col1
----
-109524

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT - MAX( ALL 92 ) * + COUNT( ALL - 68 ) - ( + 43 ) - - CASE 89 - + 69 WHEN + COALESCE ( MIN( 98 ), + 14 * 77 + 10 ) THEN 28 ELSE + 89 + 70 END DIV 51 + COUNT( * )
----
-131

skipif mysql # not compatible
query I rowsort label-4576
SELECT - MAX ( ALL 92 ) * + COUNT ( ALL - 68 ) - ( + 43 ) - - CASE 89 - + 69 WHEN + COALESCE ( MIN ( 98 ), + 14 * 77 + 10 ) THEN 28 ELSE + 89 + 70 END / 51 + COUNT ( * )
----
-131

query I rowsort
SELECT - 57 + - + 93
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT COUNT( * ) * COUNT( * ) - - - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4578
SELECT COUNT ( * ) * COUNT ( * ) - - - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL 99 * + 0 + + + 76 AS col0
----
76

query I rowsort
SELECT - 33 + + 74 + + + 28 + 64
----
133

query I rowsort
SELECT ALL - 34 * - 28 + + 43 + - - 6 * 33 * 34
----
7727

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL 42 * + MAX( - + 77 ) * 97 + - ( 77 ) + 28
----
-313747

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL 42 * + MAX ( - + 77 ) * 97 + - ( 77 ) + 28
----
-313747

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT - COALESCE ( - + 55, 65 DIV + 70, - + 26 )
----
55

skipif mysql # not compatible
query I rowsort label-4584
SELECT - COALESCE ( - + 55, 65 / + 70, - + 26 )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT COUNT( * ) AS col0, 21
----
1
21

skipif mysql # not compatible
query II rowsort label-4585
SELECT COUNT ( * ) AS col0, 21
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + 79 + COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4586
SELECT + 79 + COUNT ( * ) AS col0
----
80

query I rowsort
SELECT - 91 * + 21
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT MAX( DISTINCT + + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-4588
SELECT MAX ( DISTINCT + + 98 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4589
SELECT + CAST( 87 AS SIGNED ) + + COUNT( * ) * 55
----
142

skipif mysql # not compatible
query I rowsort label-4589
SELECT + CAST ( 87 AS INTEGER ) + + COUNT ( * ) * 55
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT - CASE - 39 WHEN - - 48 + COUNT( * ) / - 60 * + 32 THEN COUNT( * ) + + 11 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT - CASE - 39 WHEN - - 48 + COUNT ( * ) / - 60 * + 32 THEN COUNT ( * ) + + 11 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT COUNT( DISTINCT + 57 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4591
SELECT COUNT ( DISTINCT + 57 ) AS col1
----
1

query I rowsort
SELECT + ( + - 4 ) * 32
----
-128

query I rowsort
SELECT ALL 25 - + 19 AS col1
----
6

query II rowsort
SELECT DISTINCT 50, + 69 AS col1
----
50
69

query I rowsort
SELECT ALL 43 * 86
----
3698

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL COALESCE ( - 85, 91 + + + COUNT( ALL 60 ) + - 88 * + 88, ( 98 ) ) - + 0 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL COALESCE ( - 85, 91 + + + COUNT ( ALL 60 ) + - 88 * + 88, ( 98 ) ) - + 0 AS col1
----
-85

query I rowsort
SELECT - CASE - 58 WHEN + 34 THEN 42 + - - 11 ELSE + 46 END
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL SUM( DISTINCT - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL SUM ( DISTINCT - 10 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT DISTINCT CAST( - + 29 AS SIGNED ) * + 26 * - + CAST( 91 AS SIGNED )
----
68614

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT CAST ( - + 29 AS INTEGER ) * + 26 * - + CAST ( 91 AS INTEGER )
----
68614

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4600
SELECT DISTINCT 90 - + - CAST( + 7 AS SIGNED ) AS col1, 38 col2
----
97
38

skipif mysql # not compatible
query II rowsort label-4600
SELECT DISTINCT 90 - + - CAST ( + 7 AS INTEGER ) AS col1, 38 col2
----
97
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4601
SELECT - COUNT( * ) AS col2, - 87 * - ( 50 ) AS col2
----
-1
4350

skipif mysql # not compatible
query II rowsort label-4601
SELECT - COUNT ( * ) AS col2, - 87 * - ( 50 ) AS col2
----
-1
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT + - 70 + - - COUNT( DISTINCT - 67 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-4602
SELECT + - 70 + - - COUNT ( DISTINCT - 67 ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT - COALESCE ( - 48, + + 45 ) + - COALESCE ( - 13, CAST( + 71 AS SIGNED ) * 46 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4603
SELECT - COALESCE ( - 48, + + 45 ) + - COALESCE ( - 13, CAST ( + 71 AS INTEGER ) * 46 ) AS col1
----
61

query I rowsort
SELECT + 5 - 0 - 72 AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT DISTINCT - 82 DIV 44 - - 68 + + - 34 * 55
----
-1803

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT - 82 / 44 - - 68 + + - 34 * 55
----
-1803

query I rowsort
SELECT DISTINCT + + 92
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT ALL + 54 DIV - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + 54 / - 55 AS col0
----
0

query I rowsort
SELECT ALL - + 10 AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4609
SELECT DISTINCT COUNT( * ) DIV + 80 * + 17
----
0

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT COUNT ( * ) / + 80 * + 17
----
0

query I rowsort
SELECT DISTINCT - - ( - 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4611
SELECT 93 DIV 64 + - 15 + COUNT( * ) - + + ( MIN( - 79 ) ) * + 79 * 83 AS col2
----
517990

skipif mysql # not compatible
query I rowsort label-4611
SELECT 93 / 64 + - 15 + COUNT ( * ) - + + ( MIN ( - 79 ) ) * + 79 * 83 AS col2
----
517990

query I rowsort
SELECT ALL - 88 * - 3 AS col0
----
264

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4613
SELECT ALL + 30 * - NULLIF ( + MIN( + CAST( NULL AS DECIMAL ) ), - + 38 ) * - 81 + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL + 30 * - NULLIF ( + MIN ( + CAST ( NULL AS REAL ) ), - + 38 ) * - 81 + + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT COUNT( * ) * 99
----
99

skipif mysql # not compatible
query I rowsort label-4614
SELECT COUNT ( * ) * 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT - 77 * + COUNT( * ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-4615
SELECT - 77 * + COUNT ( * ) col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4616
SELECT 27 AS col0, - COALESCE ( + 83, - - CAST( NULL AS SIGNED ) * + 56 + 18 )
----
27
-83

skipif mysql # not compatible
query II rowsort label-4616
SELECT 27 AS col0, - COALESCE ( + 83, - - CAST ( NULL AS INTEGER ) * + 56 + 18 )
----
27
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT + SUM( ALL - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4617
SELECT + SUM ( ALL - 87 ) AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 20 * - + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 20 * - + 9 AS col1
----
NULL

query II rowsort
SELECT + 55, + 50 AS col2
----
55
50

query I rowsort
SELECT ALL 22 * - 16
----
-352

query I rowsort
SELECT 38 * 48
----
1824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT ALL - 10 + 81 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - 10 + 81 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 80 AS col0
----
-80

query I rowsort
SELECT ALL + 83 + - 66
----
17

query II rowsort
SELECT 27 AS col0, + COALESCE ( + - 89, - 11 ) * - + 57 * ( 30 )
----
27
152190

query I rowsort
SELECT DISTINCT - ( - - 14 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT 37 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT 37 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 29, 51 + - 92 col2
----
29
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-4629
SELECT 52, MAX( + 3 ) AS col0
----
52
3

skipif mysql # not compatible
query II rowsort label-4629
SELECT 52, MAX ( + 3 ) AS col0
----
52
3

query I rowsort
SELECT 53 - 4 AS col2
----
49

query I rowsort
SELECT 89 * - 39 AS col2
----
-3471

query I rowsort
SELECT ALL - 74 * + 41
----
-3034

query I rowsort
SELECT DISTINCT - 93 * - ( - 41 )
----
-3813

query I rowsort
SELECT 72 + - 51
----
21

query II rowsort
SELECT DISTINCT 93, + 24 + - 98 col0
----
93
-74

query I rowsort
SELECT ALL - 75 * + - ( - + 86 )
----
-6450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4637
SELECT ALL 0 AS col0, + 51 * COALESCE ( + COUNT( * ), + COUNT( * ) * - CASE + ( - ( CAST( NULL AS SIGNED ) ) ) WHEN - 45 * - 36 THEN NULL WHEN 28 THEN 81 DIV 23 + - ( - 21 ) * ( - 63 ) WHEN 0 * COUNT( * ) THEN NULL ELSE NULL END ) AS col2
----
0
51

skipif mysql # not compatible
query II rowsort label-4637
SELECT ALL 0 AS col0, + 51 * COALESCE ( + COUNT ( * ), + COUNT ( * ) * - CASE + ( - ( CAST ( NULL AS INTEGER ) ) ) WHEN - 45 * - 36 THEN NULL WHEN 28 THEN 81 / 23 + - ( - 21 ) * ( - 63 ) WHEN 0 * COUNT ( * ) THEN NULL ELSE NULL END ) AS col2
----
0
51

query I rowsort
SELECT 32 * + 55 AS col0
----
1760

query I rowsort
SELECT - 18 * - - 72 + + 96 + - 81 + + ( - 70 ) * - 79 AS col2
----
4249

query I rowsort
SELECT 91 - - + 47
----
138

query I rowsort
SELECT 78 * - + 73 AS col1
----
-5694

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT + 36 + 14 * 93 + + CASE - 28 WHEN + + 33 / 46 THEN NULL ELSE - COUNT( * ) * ( - 89 ) END
----
1427

skipif mysql # not compatible
query I rowsort label-4642
SELECT + 36 + 14 * 93 + + CASE - 28 WHEN + + 33 / 46 THEN NULL ELSE - COUNT ( * ) * ( - 89 ) END
----
1427

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT + 93, + MAX( 83 ) AS col0
----
93
83

skipif mysql # not compatible
query II rowsort label-4643
SELECT + 93, + MAX ( 83 ) AS col0
----
93
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT + COALESCE ( - + ( - - COUNT( * ) ), + + NULLIF ( + 75, 64 * + 99 ) + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-4644
SELECT + COALESCE ( - + ( - - COUNT ( * ) ), + + NULLIF ( + 75, 64 * + 99 ) + 74 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4645
SELECT 70 + 82 DIV CASE + 1 WHEN 65 THEN 69 + 49 WHEN COUNT( 30 ) THEN - ( - 14 ) WHEN ( - 3 ) THEN - COUNT( * ) END AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4645
SELECT 70 + 82 / CASE + 1 WHEN 65 THEN 69 + 49 WHEN COUNT ( 30 ) THEN - ( - 14 ) WHEN ( - 3 ) THEN - COUNT ( * ) END AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4646
SELECT COALESCE ( 56, - COUNT( * ) DIV - 96 * 32 ) * 67
----
3752

skipif mysql # not compatible
query I rowsort label-4646
SELECT COALESCE ( 56, - COUNT ( * ) / - 96 * 32 ) * 67
----
3752

onlyif mysql # aggregate syntax: 
query III rowsort label-4647
SELECT - 2 + - - 41, SUM( 74 ) AS col0, - - 37 AS col0
----
39
74
37

skipif mysql # not compatible
query III rowsort label-4647
SELECT - 2 + - - 41, SUM ( 74 ) AS col0, - - 37 AS col0
----
39
74
37

query I rowsort
SELECT ALL NULLIF ( + 35, + ( - 67 ) ) AS col2
----
35

query I rowsort
SELECT DISTINCT + 25 * - 52 * - COALESCE ( - 90, 0 ) + 98
----
-116902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT + CAST( NULL AS SIGNED ) * + 30 + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT + CAST ( NULL AS INTEGER ) * + 30 + - 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL 64 + + + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL 64 + + + COUNT ( * )
----
65

query I rowsort
SELECT DISTINCT 4 * - - 14
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4653
SELECT - 78 + + MAX( + ( + 21 ) ), 72 AS col0
----
-57
72

skipif mysql # not compatible
query II rowsort label-4653
SELECT - 78 + + MAX ( + ( + 21 ) ), 72 AS col0
----
-57
72

query I rowsort
SELECT NULLIF ( - - 20, + 43 ) AS col1
----
20

query I rowsort
SELECT - 61 * 46 * 70 AS col0
----
-196420

query I rowsort
SELECT ALL 31 + - - 31 + + 19 * 95 * + 6
----
10892

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT 37 DIV - 4 + + 66
----
57

skipif mysql # not compatible
query I rowsort label-4657
SELECT 37 / - 4 + + 66
----
57

query II rowsort
SELECT 23 AS col2, 51
----
23
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT - SUM( DISTINCT + 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4659
SELECT - SUM ( DISTINCT + 92 ) AS col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4660
SELECT ALL 44 + + + 94 * 29 + - - 69 DIV + + 18
----
2773

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL 44 + + + 94 * 29 + - - 69 / + + 18
----
2773

query I rowsort
SELECT DISTINCT - 37 AS col2
----
-37

query I rowsort
SELECT DISTINCT 81 + + 56 AS col0
----
137

query I rowsort
SELECT ALL + 78 + + 16 * + ( + + 75 )
----
1278

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT 87 DIV + - 58 + 92 * + ( - 34 ) - - + 17 * 86 + 97 * - 18
----
-3413

skipif mysql # not compatible
query I rowsort label-4664
SELECT 87 / + - 58 + 92 * + ( - 34 ) - - + 17 * 86 + 97 * - 18
----
-3413

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL 16 + COALESCE ( + ( - COUNT( * ) ), NULLIF ( - - 99, + 95 + + 23 ) ) * 23
----
-7

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL 16 + COALESCE ( + ( - COUNT ( * ) ), NULLIF ( - - 99, + 95 + + 23 ) ) * 23
----
-7

query I rowsort
SELECT ALL + 51 + + - 58 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT 63 + - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4667
SELECT 63 + - COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL ( 88 ) * 99 * COUNT( * ) AS col1
----
8712

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL ( 88 ) * 99 * COUNT ( * ) AS col1
----
8712

query I rowsort
SELECT DISTINCT + 60 * 17 * + + 46
----
46920

query I rowsort
SELECT DISTINCT - 6 * + + 67
----
-402

query I rowsort
SELECT ALL + 51 - + 36
----
15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4672
SELECT 92 + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT 92 + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT MIN( DISTINCT + 96 ) + 84 - + 90 * - SUM( - 10 ) * - ( 44 ) - 4 col2
----
39776

skipif mysql # not compatible
query I rowsort label-4673
SELECT MIN ( DISTINCT + 96 ) + 84 - + 90 * - SUM ( - 10 ) * - ( 44 ) - 4 col2
----
39776

query I rowsort
SELECT DISTINCT 67 * + 56 AS col0
----
3752

query I rowsort
SELECT ALL - ( + 68 )
----
-68

query I rowsort
SELECT DISTINCT - NULLIF ( + ( - ( - 20 ) ), - - 13 )
----
-20

query I rowsort
SELECT DISTINCT - 43 * + 77 AS col1
----
-3311

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4678
SELECT 98 + 64 + + - 27 * 35 * 19 AS col1, ( CAST( 35 AS SIGNED ) )
----
-17793
35

skipif mysql # not compatible
query II rowsort label-4678
SELECT 98 + 64 + + - 27 * 35 * 19 AS col1, ( CAST ( 35 AS INTEGER ) )
----
-17793
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - COALESCE ( + SUM( DISTINCT + + 18 ), + 11 ) + + 97
----
79

skipif mysql # not compatible
query I rowsort label-4679
SELECT - COALESCE ( + SUM ( DISTINCT + + 18 ), + 11 ) + + 97
----
79

query I rowsort
SELECT + 16 * - - 9
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL + COUNT( * ) * - - 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + COUNT ( * ) * - - 22 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4682
SELECT CAST( NULL AS SIGNED ) + - COALESCE ( + 86, - MIN( 8 ) + - 4 + - 49 + 24 / COUNT( * ), 11 + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT CAST ( NULL AS INTEGER ) + - COALESCE ( + 86, - MIN ( 8 ) + - 4 + - 49 + 24 / COUNT ( * ), 11 + 14 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4683
SELECT ALL + COUNT( * ) DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + COUNT ( * ) / + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL + 98 * 87 * + - COUNT( * )
----
-8526

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL + 98 * 87 * + - COUNT ( * )
----
-8526

query I rowsort
SELECT + 82 + + - 39 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL + CASE COUNT( * ) WHEN NULLIF ( COUNT( * ), - 9 + + NULLIF ( 81, - 67 ) * COUNT( - 13 - 73 ) ) THEN NULL ELSE + 84 END + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + CASE COUNT ( * ) WHEN NULLIF ( COUNT ( * ), - 9 + + NULLIF ( 81, - 67 ) * COUNT ( - 13 - 73 ) ) THEN NULL ELSE + 84 END + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( ( + + 77 ) ) * - 82 AS col0
----
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + - 4 + + COUNT( * ) - + 94 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + - 4 + + COUNT ( * ) - + 94 AS col0
----
-97

query I rowsort
SELECT - 62 * - + 28 AS col0
----
1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4690
SELECT + - 52 + + COALESCE ( 36, - CAST( - + 49 AS SIGNED ) * - COALESCE ( - 72, + ( 79 ) ), COUNT( * ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4690
SELECT + - 52 + + COALESCE ( 36, - CAST ( - + 49 AS INTEGER ) * - COALESCE ( - 72, + ( 79 ) ), COUNT ( * ) ) AS col2
----
-16

query I rowsort
SELECT + 36 * + 3 + + 25 AS col0
----
133

query I rowsort
SELECT - + 41 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT + + MAX( DISTINCT - 83 ) + + 76 + + COALESCE ( + CASE WHEN NOT ( NULL ) <= ( NULL ) THEN - MIN( ALL 86 ) END, + COUNT( * ) ) * 61 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4693
SELECT + + MAX ( DISTINCT - 83 ) + + 76 + + COALESCE ( + CASE WHEN NOT ( NULL ) <= ( NULL ) THEN - MIN ( ALL 86 ) END, + COUNT ( * ) ) * 61 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT ALL + 71 + - SUM( ALL + 4 )
----
67

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL + 71 + - SUM ( ALL + 4 )
----
67

query I rowsort
SELECT - COALESCE ( + NULLIF ( - - 77, + - 76 - 97 ), + + 83, - NULLIF ( 1, - 21 ) * + 87 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4696
SELECT - - 91 * + 76, CAST( NULL AS SIGNED ) AS col1
----
6916
NULL

skipif mysql # not compatible
query II rowsort label-4696
SELECT - - 91 * + 76, CAST ( NULL AS INTEGER ) AS col1
----
6916
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT - + 33 - - + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-4697
SELECT - + 33 - - + COUNT ( * )
----
-32

query I rowsort
SELECT ALL ( + + 49 )
----
49

query I rowsort
SELECT ALL CASE 37 WHEN + + 66 THEN - 13 WHEN - 31 THEN - + 50 WHEN 24 / COALESCE ( 31 + + 18 * + 97, 84 * CASE WHEN NOT - 77 > NULL THEN + 24 ELSE NULL END + ( + 78 + 72 / - 38 ), + 40 ) THEN 32 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4700
SELECT ALL - - COUNT( * ) * - + 78 + - - 18 AS col0, CAST( NULL AS SIGNED ) + - CAST( + 65 AS SIGNED )
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-4700
SELECT ALL - - COUNT ( * ) * - + 78 + - - 18 AS col0, CAST ( NULL AS INTEGER ) + - CAST ( + 65 AS INTEGER )
----
-60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT ALL - COUNT( * ) * + + 91
----
-91

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL - COUNT ( * ) * + + 91
----
-91

query II rowsort
SELECT DISTINCT NULLIF ( + 53, + + 85 + - 61 + 39 ) * - 93 AS col1, - 4
----
-4929
-4

query II rowsort
SELECT ALL + 28 AS col0, 12 AS col1
----
28
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4704
SELECT + COALESCE ( 90, + 1 * COALESCE ( + 75, - 74 * - 84, - CASE - AVG ( NULLIF ( 74, 3 * - CAST( NULL AS SIGNED ) + + 30 ) ) WHEN + COUNT( * ) THEN + ( + 58 ) * 81 ELSE 30 + - 59 * + 3 END + 45 * 39 ) * + NULLIF ( 38, - COUNT( * ) * 73 + MIN( ( CASE 2 WHEN 74 * - 8 THEN + 97 + 84 END ) ) / COUNT( * ) ) + + 89 )
----
90

skipif mysql # not compatible
query I rowsort label-4704
SELECT + COALESCE ( 90, + 1 * COALESCE ( + 75, - 74 * - 84, - CASE - AVG ( NULLIF ( 74, 3 * - CAST ( NULL AS INTEGER ) + + 30 ) ) WHEN + COUNT ( * ) THEN + ( + 58 ) * 81 ELSE 30 + - 59 * + 3 END + 45 * 39 ) * + NULLIF ( 38, - COUNT ( * ) * 73 + MIN ( ( CASE 2 WHEN 74 * - 8 THEN + 97 + 84 END ) ) / COUNT ( * ) ) + + 89 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL - 36 * - COUNT( * ) * 9 * - 57 + + 81
----
-18387

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL - 36 * - COUNT ( * ) * 9 * - 57 + + 81
----
-18387

query I rowsort
SELECT COALESCE ( + + 76, - 94 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4707
SELECT + COUNT( * ), - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-4707
SELECT + COUNT ( * ), - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT CASE + - 50 WHEN - 20 + + 67 THEN - + AVG ( DISTINCT + CAST( - + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) ) / 35 WHEN 85 THEN 60 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT CASE + - 50 WHEN - 20 + + 67 THEN - + AVG ( DISTINCT + CAST ( - + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) / 35 WHEN 85 THEN 60 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + ( - + 77 ) * 66 * - 65 + - 30 AS col1
----
330300

query II rowsort
SELECT ALL + 37, 4 * + 97 AS col2
----
37
388

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT CASE - 29 WHEN + - 44 THEN NULL ELSE - CASE - COUNT( * ) WHEN - CASE - + 66 WHEN 7 * 5 THEN + AVG ( ALL - COALESCE ( + 48, - 45 ) ) ELSE NULL END * AVG ( ALL 39 ) + - 60 THEN NULL WHEN COUNT( * ) + 74 THEN + 38 ELSE - 11 + COUNT( * ) END * 98 END
----
980

skipif mysql # not compatible
query I rowsort label-4711
SELECT CASE - 29 WHEN + - 44 THEN NULL ELSE - CASE - COUNT ( * ) WHEN - CASE - + 66 WHEN 7 * 5 THEN + AVG ( ALL - COALESCE ( + 48, - 45 ) ) ELSE NULL END * AVG ( ALL 39 ) + - 60 THEN NULL WHEN COUNT ( * ) + 74 THEN + 38 ELSE - 11 + COUNT ( * ) END * 98 END
----
980

query I rowsort
SELECT + ( + ( + - 34 ) ) * + 15
----
-510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4713
SELECT + CAST( NULL AS SIGNED ) / COALESCE ( - - 30, + 17 + - 63, - 63, 87 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT + CAST ( NULL AS INTEGER ) / COALESCE ( - - 30, + 17 + - 63, - 63, 87 ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4714
SELECT ALL 20 DIV MIN( 31 ) AS col2, - MAX( + - 39 ) + + COUNT( - + 53 )
----
0
40

skipif mysql # not compatible
query II rowsort label-4714
SELECT ALL 20 / MIN ( 31 ) AS col2, - MAX ( + - 39 ) + + COUNT ( - + 53 )
----
0
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4715
SELECT + ( + + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4716
SELECT + COALESCE ( 64, 27 ), - CAST( NULL AS SIGNED ) * + 24 AS col1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-4716
SELECT + COALESCE ( 64, 27 ), - CAST ( NULL AS INTEGER ) * + 24 AS col1
----
64
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT - 84 DIV + 84 col1
----
-1

skipif mysql # not compatible
query I rowsort label-4717
SELECT - 84 / + 84 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL 48 * + + MAX( DISTINCT - 47 ) AS col0
----
-2256

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL 48 * + + MAX ( DISTINCT - 47 ) AS col0
----
-2256

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT DISTINCT + - 18 + + + MIN( ALL + 71 )
----
53

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT + - 18 + + + MIN ( ALL + 71 )
----
53

query I rowsort
SELECT ALL 41 * - 1
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT DISTINCT + + 68 + + 25 DIV + + 56 * + 18 - + 69 - - 41 * + 74
----
3033

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT + + 68 + + 25 / + + 56 * + 18 - + 69 - - 41 * + 74
----
3033

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT MIN( ALL 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT MIN ( ALL 12 ) AS col0
----
12

query I rowsort
SELECT + 37 + - + 36 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT - COUNT( * ) - - 55 col0
----
54

skipif mysql # not compatible
query I rowsort label-4724
SELECT - COUNT ( * ) - - 55 col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT - + MIN( DISTINCT NULLIF ( - + NULLIF ( - 67, 23 ), 38 ) ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-4725
SELECT - + MIN ( DISTINCT NULLIF ( - + NULLIF ( - 67, 23 ), 38 ) ) col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - + 81 * - ( 61 ) * + + 41 * + + CASE + 16 WHEN 79 / - - ( - NULLIF ( + 74, + 84 * + 35 ) ) * 49 + + 42 THEN COUNT( * ) * 4 ELSE 37 END + COUNT( * )
----
7495498

skipif mysql # not compatible
query I rowsort label-4726
SELECT - + 81 * - ( 61 ) * + + 41 * + + CASE + 16 WHEN 79 / - - ( - NULLIF ( + 74, + 84 * + 35 ) ) * 49 + + 42 THEN COUNT ( * ) * 4 ELSE 37 END + COUNT ( * )
----
7495498

query I rowsort
SELECT ALL + - 26 + + 52 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4728
SELECT - + COUNT( * ) * - CAST( NULL AS DECIMAL ) / + SUM( DISTINCT - 76 ) * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT - + COUNT ( * ) * - CAST ( NULL AS REAL ) / + SUM ( DISTINCT - 76 ) * 4
----
NULL

query I rowsort
SELECT - - 62 + + 46 + + 47
----
155

query II rowsort
SELECT ALL 35 AS col0, 63
----
35
63

query II rowsort
SELECT ALL + + ( + - 19 ) + + 77, + 69 * - 28 * - - 55 + + 34 AS col2
----
58
-106226

query I rowsort
SELECT DISTINCT + COALESCE ( CASE - 71 WHEN + 3 + + + 55 - + 93 / + NULLIF ( 12, - 51 + - 20 ) THEN NULL WHEN + 1 + - 7 THEN + 22 END, 35 * 76 ) * 83 AS col1
----
220780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4733
SELECT - 98 + + - ( COALESCE ( + + 35, 23 DIV - 94, - + 80 + + COUNT( * ) ) ) * 96 * + ( 60 * + 32 )
----
-6451298

skipif mysql # not compatible
query I rowsort label-4733
SELECT - 98 + + - ( COALESCE ( + + 35, 23 / - 94, - + 80 + + COUNT ( * ) ) ) * 96 * + ( 60 * + 32 )
----
-6451298

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT - COUNT( * ) * + MAX( + + ( + 14 ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4734
SELECT - COUNT ( * ) * + MAX ( + + ( + 14 ) ) AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4735
SELECT + CASE - 26 WHEN + CAST( NULL AS SIGNED ) THEN + MIN( 96 ) ELSE - 14 DIV - 55 + + - ( + 50 ) END AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4735
SELECT + CASE - 26 WHEN + CAST ( NULL AS INTEGER ) THEN + MIN ( 96 ) ELSE - 14 / - 55 + + - ( + 50 ) END AS col0
----
-50

query II rowsort
SELECT ALL + ( - - 42 ), 85 AS col0
----
42
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT - MIN( - + 7 ) + 50 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4737
SELECT - MIN ( - + 7 ) + 50 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT + ( - - CAST( 65 AS SIGNED ) ) * - 58 * - + SUM( 93 ) + 92 * - - 17 AS col1
----
352174

skipif mysql # not compatible
query I rowsort label-4738
SELECT + ( - - CAST ( 65 AS INTEGER ) ) * - 58 * - + SUM ( 93 ) + 92 * - - 17 AS col1
----
352174

query I rowsort
SELECT + 33 * + 76 * + 39
----
97812

query I rowsort
SELECT ALL + ( + 35 )
----
35

query I rowsort
SELECT DISTINCT + 11 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4742
SELECT CAST( - 57 AS SIGNED ) DIV 60 + + + 25, 24 col0
----
25
24

skipif mysql # not compatible
query II rowsort label-4742
SELECT CAST ( - 57 AS INTEGER ) / 60 + + + 25, 24 col0
----
25
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT 52 * + + CASE - 48 WHEN 84 * - 24 THEN + SUM( - 21 ) WHEN 62 * - 77 + 33 + 5 THEN NULL WHEN - 99 THEN - 25 * - 95 + + 44 ELSE NULL END + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT 52 * + + CASE - 48 WHEN 84 * - 24 THEN + SUM ( - 21 ) WHEN 62 * - 77 + 33 + 5 THEN NULL WHEN - 99 THEN - 25 * - 95 + + 44 ELSE NULL END + 15 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT + CAST( - 92 AS SIGNED ) * 69
----
-6348

skipif mysql # not compatible
query I rowsort label-4744
SELECT + CAST ( - 92 AS INTEGER ) * 69
----
-6348

query I rowsort
SELECT ALL + 61 * + 23
----
1403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4746
SELECT + CAST( - 47 AS SIGNED ) + + - COUNT( 9 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4746
SELECT + CAST ( - 47 AS INTEGER ) + + - COUNT ( 9 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT - ( - 28 ) * + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-4747
SELECT - ( - 28 ) * + COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT COUNT( * ) * - 27
----
-27

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT COUNT ( * ) * - 27
----
-27

query I rowsort
SELECT + COALESCE ( - 88, 20 ) col1
----
-88

query I rowsort
SELECT - 81 * + 99 * - 16 + - 12
----
128292

query I rowsort
SELECT ALL - + ( - 58 ) * - 62 * 60 + - 73
----
-215833

query I rowsort
SELECT + 55 * + 13
----
715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT DISTINCT - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 65 + - NULLIF ( 23, + 61 )
----
-88

query I rowsort
SELECT ALL 8 + 43
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL MIN( - + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL MIN ( - + 55 ) AS col2
----
-55

query I rowsort
SELECT ( + 35 ) * 60 col0
----
2100

query I rowsort
SELECT ( - COALESCE ( + + 84, + 84 ) ) + - 76
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT + COUNT( * ) + 34 * + + 64
----
2177

skipif mysql # not compatible
query I rowsort label-4759
SELECT + COUNT ( * ) + 34 * + + 64
----
2177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4760
SELECT ALL - CAST( + + 91 AS SIGNED ) + - + COUNT( 27 ) - - + 10 + - ( - 29 ) AS col2, + NULLIF ( + + 1, - 5 * 9 ) * SUM( - 32 DIV 94 + - 54 DIV 20 ) - 75 * + 4
----
-53
-302

skipif mysql # not compatible
query II rowsort label-4760
SELECT ALL - CAST ( + + 91 AS INTEGER ) + - + COUNT ( 27 ) - - + 10 + - ( - 29 ) AS col2, + NULLIF ( + + 1, - 5 * 9 ) * SUM ( - 32 / 94 + - 54 / 20 ) - 75 * + 4
----
-53
-302

query I rowsort
SELECT 25 * + + 34 AS col2
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - 27 * + + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-4762
SELECT - 27 * + + COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT DISTINCT + COUNT( * ) + + + 87 * + 0 * - - 25 * + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT + COUNT ( * ) + + + 87 * + 0 * - - 25 * + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT + 63 - - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT + 63 - - COUNT ( * )
----
64

query I rowsort
SELECT 94 * - 82
----
-7708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4766
SELECT CASE + ( CAST( + + COUNT( * ) AS SIGNED ) ) WHEN + COUNT( * ) THEN - 75 * - 71 + 47 + - + 65 ELSE NULL END
----
5307

skipif mysql # not compatible
query I rowsort label-4766
SELECT CASE + ( CAST ( + + COUNT ( * ) AS INTEGER ) ) WHEN + COUNT ( * ) THEN - 75 * - 71 + 47 + - + 65 ELSE NULL END
----
5307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4767
SELECT COUNT( * ) + - + 97 + - - 3 * - COUNT( * ) * - 92 * 49 + CAST( - 65 AS SIGNED ) + + 81 * 74
----
19357

skipif mysql # not compatible
query I rowsort label-4767
SELECT COUNT ( * ) + - + 97 + - - 3 * - COUNT ( * ) * - 92 * 49 + CAST ( - 65 AS INTEGER ) + + 81 * 74
----
19357

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + CASE - COUNT( * ) WHEN 22 THEN + 90 WHEN - 18 THEN NULL ELSE + + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4768
SELECT + CASE - COUNT ( * ) WHEN 22 THEN + 90 WHEN - 18 THEN NULL ELSE + + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4769
SELECT 73 + - + ( - - MIN( DISTINCT 70 ) ) * 63 AS col2, - 48 * + + COUNT( * )
----
-4337
-48

skipif mysql # not compatible
query II rowsort label-4769
SELECT 73 + - + ( - - MIN ( DISTINCT 70 ) ) * 63 AS col2, - 48 * + + COUNT ( * )
----
-4337
-48

query I rowsort
SELECT 82 + + 67 * + + 59 AS col2
----
4035

query I rowsort
SELECT DISTINCT - 47 * + 2
----
-94

query I rowsort
SELECT DISTINCT 10 col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL - 29 * COUNT( + 43 )
----
-29

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL - 29 * COUNT ( + 43 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL - ( MAX( DISTINCT + 4 ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL - ( MAX ( DISTINCT + 4 ) ) AS col1
----
-4

query I rowsort
SELECT DISTINCT + 84 * + 18 AS col0
----
1512

query I rowsort
SELECT ALL - 30 * + 13
----
-390

query I rowsort
SELECT + 27 col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT - 12 + - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT - 12 + - COUNT ( * )
----
-13

query I rowsort
SELECT ALL - ( 92 )
----
-92

query I rowsort
SELECT 78 - + 66 + + - 24 * - 10
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT 17 DIV + 15
----
1

skipif mysql # not compatible
query I rowsort label-4781
SELECT 17 / + 15
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT 88 * + - CAST( ( 46 ) AS SIGNED ) AS col1
----
-4048

skipif mysql # not compatible
query I rowsort label-4782
SELECT 88 * + - CAST ( ( 46 ) AS INTEGER ) AS col1
----
-4048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4783
SELECT DISTINCT - MIN( - 79 ) DIV + + 30
----
2

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT - MIN ( - 79 ) / + + 30
----
2

query I rowsort
SELECT ALL + 30 + 97 AS col2
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT ALL + 58 + - + CAST( NULL AS SIGNED ) * - 66 + 89 * - - 21 + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL + 58 + - + CAST ( NULL AS INTEGER ) * - 66 + 89 * - - 21 + - 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT DISTINCT CAST( + 53 AS SIGNED ) + - + COUNT( * ) * - 28 + + CAST( NULL AS SIGNED ) + 26 + + 16 * ( + NULLIF ( 21, + 15 * + ( - ( + 43 ) ) ) ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT CAST ( + 53 AS INTEGER ) + - + COUNT ( * ) * - 28 + + CAST ( NULL AS INTEGER ) + 26 + + 16 * ( + NULLIF ( 21, + 15 * + ( - ( + 43 ) ) ) ) - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4787
SELECT ALL - ( + COUNT( * ) ) + - - CAST( + 74 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL - ( + COUNT ( * ) ) + - - CAST ( + 74 AS INTEGER )
----
73

query I rowsort
SELECT ALL + 36 + - - ( - + 62 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL - 25 * - 12 * - 0 * + MIN( 97 )
----
0

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL - 25 * - 12 * - 0 * + MIN ( 97 )
----
0

query I rowsort
SELECT ALL - + 36 AS col2
----
-36

query I rowsort
SELECT + + COALESCE ( 22, + - 71 * + + 43 * - 5 + NULLIF ( + 88, - 1 ) + + 36 )
----
22

query I rowsort
SELECT + 19 + 11 * + 27
----
316

query I rowsort
SELECT 60 * + + 8 + - 33
----
447

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL 59 + + 18 + + COALESCE ( + - 82, 52 + + 84 - + 51, - 71 + + 4 * + - CASE + 51 WHEN + 7 THEN + COUNT( * ) * 80 WHEN - 5 + - 10 THEN NULL ELSE NULL END + 87 ) * COALESCE ( + MIN( - 41 ), - 97 ) AS col0
----
3439

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL 59 + + 18 + + COALESCE ( + - 82, 52 + + 84 - + 51, - 71 + + 4 * + - CASE + 51 WHEN + 7 THEN + COUNT ( * ) * 80 WHEN - 5 + - 10 THEN NULL ELSE NULL END + 87 ) * COALESCE ( + MIN ( - 41 ), - 97 ) AS col0
----
3439

query I rowsort
SELECT - 29 * - 83 col0
----
2407

query I rowsort
SELECT + - 91 AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4797
SELECT CASE 59 WHEN ( - + CAST( NULL AS SIGNED ) ) THEN + + SUM( 30 ) WHEN - 65 + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT CASE 59 WHEN ( - + CAST ( NULL AS INTEGER ) ) THEN + + SUM ( 30 ) WHEN - 65 + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 73 - - 16
----
89

query I rowsort
SELECT ALL - 15 - - 10 * - 57 AS col2
----
-585

query I rowsort
SELECT DISTINCT - 42 AS col2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT - ( 1 ) + 55 - 74 DIV 69 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4801
SELECT - ( 1 ) + 55 - 74 / 69 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4802
SELECT ALL ( + CASE - 50 WHEN 36 + COUNT( * ) + + CAST( NULL AS DECIMAL ) - + 77 * + 10 + + + 71 + ( CAST( NULL AS SIGNED ) ) + + 61 THEN - COUNT( * ) * 89 WHEN - COUNT( * ) THEN NULL WHEN - 46 THEN 43 * 64 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL ( + CASE - 50 WHEN 36 + COUNT ( * ) + + CAST ( NULL AS REAL ) - + 77 * + 10 + + + 71 + ( CAST ( NULL AS INTEGER ) ) + + 61 THEN - COUNT ( * ) * 89 WHEN - COUNT ( * ) THEN NULL WHEN - 46 THEN 43 * 64 END ) AS col2
----
NULL

query I rowsort
SELECT ALL - 59 - + 30 - + 82 AS col1
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4804
SELECT + MIN( DISTINCT - 31 ) * 55 DIV - 75 + + - 31 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4804
SELECT + MIN ( DISTINCT - 31 ) * 55 / - 75 + + - 31 AS col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4805
SELECT ALL 61 DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL 61 / 65 AS col1
----
0

query I rowsort
SELECT DISTINCT - ( - 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT 9 + + - COUNT( * ) col2
----
8

skipif mysql # not compatible
query I rowsort label-4807
SELECT 9 + + - COUNT ( * ) col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT - COUNT( * ) + 53
----
52

skipif mysql # not compatible
query I rowsort label-4808
SELECT - COUNT ( * ) + 53
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4809
SELECT ALL ( + 81 ) - - 26, CASE + 38 WHEN + 8 THEN NULL ELSE - + COUNT( * ) END * - 12 AS col1
----
107
12

skipif mysql # not compatible
query II rowsort label-4809
SELECT ALL ( + 81 ) - - 26, CASE + 38 WHEN + 8 THEN NULL ELSE - + COUNT ( * ) END * - 12 AS col1
----
107
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4810
SELECT - CAST( NULL AS SIGNED ) * + CASE 39 WHEN - 15 THEN - 15 END + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT - CAST ( NULL AS INTEGER ) * + CASE 39 WHEN - 15 THEN - 15 END + - 46
----
NULL

query I rowsort
SELECT 56 * - 98 AS col1
----
-5488

query I rowsort
SELECT ALL 39 * + - 88 AS col2
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT - SUM( 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4813
SELECT - SUM ( 2 ) AS col2
----
-2

query I rowsort
SELECT 82 * + + 7 col1
----
574

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL 3 * + + 37 * + 11 * + COUNT( * )
----
1221

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL 3 * + + 37 * + 11 * + COUNT ( * )
----
1221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4816
SELECT 88 - 90 + - CAST( - 7 AS SIGNED ), + COUNT( * ) AS col0
----
5
1

skipif mysql # not compatible
query II rowsort label-4816
SELECT 88 - 90 + - CAST ( - 7 AS INTEGER ), + COUNT ( * ) AS col0
----
5
1

query I rowsort
SELECT CASE WHEN NOT NULL NOT IN ( + 58, 59 * + 76 + ( 24 ) - + - 85 ) THEN - + 15 - 60 - + 61 ELSE 52 * + 56 END + 93
----
3005

query I rowsort
SELECT 7 * + + 17
----
119

query I rowsort
SELECT ALL 73 + - ( 51 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT - CASE COUNT( - 66 ) WHEN 15 + - NULLIF ( - + 44, - 96 ) - 30 * AVG ( DISTINCT + 67 ) + - - 54 * + 5 THEN 88 * ( + COUNT( * ) ) + + 97 / + 8 ELSE NULL END / 83 - SUM( - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT - CASE COUNT ( - 66 ) WHEN 15 + - NULLIF ( - + 44, - 96 ) - 30 * AVG ( DISTINCT + 67 ) + - - 54 * + 5 THEN 88 * ( + COUNT ( * ) ) + + 97 / + 8 ELSE NULL END / 83 - SUM ( - 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4821
SELECT ALL - COUNT( * ) AS col1, - 29 AS col2
----
-1
-29

skipif mysql # not compatible
query II rowsort label-4821
SELECT ALL - COUNT ( * ) AS col1, - 29 AS col2
----
-1
-29

query I rowsort
SELECT ALL - 95 * + 75 + 45 col2
----
-7080

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL + SUM( DISTINCT - 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL + SUM ( DISTINCT - 38 ) AS col1
----
-38

query I rowsort
SELECT CASE - 24 WHEN + 67 THEN NULL ELSE 66 END
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4825
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 3 * - 36 - + 25 + - ( - NULLIF ( - - 40, + 78 ) ) + - 35 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL + 66 * - - 44 + + COUNT( DISTINCT + - 31 ) - + - 17
----
2922

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + 66 * - - 44 + + COUNT ( DISTINCT + - 31 ) - + - 17
----
2922

query I rowsort
SELECT - + 99 * - + 13
----
1287

query I rowsort
SELECT DISTINCT + + 52 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT - - 24 * - + 39 * - + COUNT( * )
----
936

skipif mysql # not compatible
query I rowsort label-4830
SELECT - - 24 * - + 39 * - + COUNT ( * )
----
936

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4831
SELECT ALL + + 66, - COUNT( * ) DIV 14 AS col0
----
66
0

skipif mysql # not compatible
query II rowsort label-4831
SELECT ALL + + 66, - COUNT ( * ) / 14 AS col0
----
66
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT ALL + + COUNT( * ) DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL + + COUNT ( * ) / + + 72
----
0

query I rowsort
SELECT + - 54 AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4834
SELECT ALL ( - 46 ) * - 32 / + CAST( NULL AS SIGNED ) * 54 - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL ( - 46 ) * - 32 / + CAST ( NULL AS INTEGER ) * 54 - - 47
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4835
SELECT ALL + - 32 col0, - ( SUM( + 95 ) ) AS col2
----
-32
-95

skipif mysql # not compatible
query II rowsort label-4835
SELECT ALL + - 32 col0, - ( SUM ( + 95 ) ) AS col2
----
-32
-95

query I rowsort
SELECT + + 31 AS col0
----
31

query II rowsort
SELECT DISTINCT 59, ( + - 8 ) AS col2
----
59
-8

query II rowsort
SELECT - COALESCE ( + 97, + + 34, + ( - 61 ) ) * + - 25, 17 col2
----
2425
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT - + COUNT( * ) - ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4839
SELECT - + COUNT ( * ) - ( - COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4840
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) / - + 75 * 52 * + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) / - + 75 * 52 * + 64 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 47 * + 28 AS col0
----
1316

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4842
SELECT ALL 92 DIV - 18, 43 DIV MIN( ALL - 32 ) AS col0
----
-5
-1

skipif mysql # not compatible
query II rowsort label-4842
SELECT ALL 92 / - 18, 43 / MIN ( ALL - 32 ) AS col0
----
-5
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4843
SELECT ALL ( COALESCE ( - - 94, + COUNT( * ) * - + 66 DIV - + 32 + 1 + + + 33 + - 3 ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL ( COALESCE ( - - 94, + COUNT ( * ) * - + 66 / - + 32 + 1 + + + 33 + - 3 ) ) AS col1
----
94

query I rowsort
SELECT - COALESCE ( + 79, 96 ) AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT 97 + + - CASE + - 69 WHEN - + 80 * + SUM( + 46 ) + - CAST( NULL AS DECIMAL ) DIV + 90 * + COUNT( * ) + + 91 + - 31 * - + COALESCE ( + 13, + COUNT( * ) + + CAST( NULL AS SIGNED ) * 21 ) * + 72 THEN + 59 ELSE CAST( ( + NULLIF ( - 96, ( - 99 ) + 65 ) ) AS SIGNED ) + 14 DIV - 34 END * + COUNT( * )
----
193

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT 97 + + - CASE + - 69 WHEN - + 80 * + SUM ( + 46 ) + - CAST ( NULL AS REAL ) / + 90 * + COUNT ( * ) + + 91 + - 31 * - + COALESCE ( + 13, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 21 ) * + 72 THEN + 59 ELSE CAST ( ( + NULLIF ( - 96, ( - 99 ) + 65 ) ) AS INTEGER ) + 14 / - 34 END * + COUNT ( * )
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL 32 + + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL 32 + + + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ALL 50 + MIN( + 48 )
----
98

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL 50 + MIN ( + 48 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4848
SELECT - COALESCE ( - + 41, COALESCE ( + - NULLIF ( + + 91, - COUNT( * ) ), - 75 ) DIV - 22, + 36 * + - COUNT( * ), + 71 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-4848
SELECT - COALESCE ( - + 41, COALESCE ( + - NULLIF ( + + 91, - COUNT ( * ) ), - 75 ) / - 22, + 36 * + - COUNT ( * ), + 71 ) col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT + CAST( NULL AS SIGNED ) / + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT + CAST ( NULL AS INTEGER ) / + 4
----
NULL

query I rowsort
SELECT ALL COALESCE ( 60, 75 ) + + 60
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT CAST( + 58 AS SIGNED ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4851
SELECT CAST ( + 58 AS INTEGER ) AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4852
SELECT DISTINCT 31 * - COUNT( * ) AS col1, + 33 * + ( - CAST( - - COUNT( * ) AS SIGNED ) ) col0
----
-31
-33

skipif mysql # not compatible
query II rowsort label-4852
SELECT DISTINCT 31 * - COUNT ( * ) AS col1, + 33 * + ( - CAST ( - - COUNT ( * ) AS INTEGER ) ) col0
----
-31
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT + 78 * COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4853
SELECT + 78 * COUNT ( * ) AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT + - CAST( NULL AS SIGNED ) - + 72 / + 51 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT + - CAST ( NULL AS INTEGER ) - + 72 / + 51 * + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT ALL + + 67 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL + + 67 / + 46
----
1

query I rowsort
SELECT - 59 * 57 - - + 31 - + + 64
----
-3396

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4857
SELECT ALL + + CAST( + 19 AS SIGNED ) col0, ( + + 66 )
----
19
66

skipif mysql # not compatible
query II rowsort label-4857
SELECT ALL + + CAST ( + 19 AS INTEGER ) col0, ( + + 66 )
----
19
66

query I rowsort
SELECT + ( + 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL + - SUM( ALL + ( + 49 ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + - SUM ( ALL + ( + 49 ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-4860
SELECT ALL COUNT( * ) * + - 23, - 63 AS col1
----
-23
-63

skipif mysql # not compatible
query II rowsort label-4860
SELECT ALL COUNT ( * ) * + - 23, - 63 AS col1
----
-23
-63

query II rowsort
SELECT DISTINCT + 65 * + 10 col2, 75 * 93 AS col1
----
650
6975

query I rowsort
SELECT + + 46 AS col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4863
SELECT + - 26 DIV - COUNT( * ) AS col1, + 71
----
26
71

skipif mysql # not compatible
query II rowsort label-4863
SELECT + - 26 / - COUNT ( * ) AS col1, + 71
----
26
71

query I rowsort
SELECT - + ( + - 95 ) * - + ( 99 ) AS col1
----
-9405

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT DISTINCT + SUM( ALL + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT + SUM ( ALL + 86 )
----
86

query II rowsort
SELECT - - 88 * + 16 AS col2, - 54
----
1408
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-4867
SELECT ALL + ( + - 83 ) DIV - 86 AS col2, + 62 AS col0
----
0
62

skipif mysql # not compatible
query II rowsort label-4867
SELECT ALL + ( + - 83 ) / - 86 AS col2, + 62 AS col0
----
0
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4868
SELECT - - 77 + - MAX( DISTINCT + CAST( + 29 AS SIGNED ) )
----
48

skipif mysql # not compatible
query I rowsort label-4868
SELECT - - 77 + - MAX ( DISTINCT + CAST ( + 29 AS INTEGER ) )
----
48

query I rowsort
SELECT ALL + CASE - 8 WHEN 46 THEN - 36 WHEN 14 THEN NULL WHEN 6 + + 40 THEN 71 WHEN 11 + + - 7 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + + 70, 20 ) * + 82
----
-5740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4871
SELECT + 4 * + COUNT( * ) * + 17 + + + 46 DIV - ( 10 ) + + + 58 col0
----
122

skipif mysql # not compatible
query I rowsort label-4871
SELECT + 4 * + COUNT ( * ) * + 17 + + + 46 / - ( 10 ) + + + 58 col0
----
122

query I rowsort
SELECT ALL 70 * - + 0 * 77 + - + 42 + 35 * + + 60 col2
----
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL 47 * + + 51 * + + 73 * + COUNT( * ) * - 6 + - 88 + + 83
----
-1049891

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL 47 * + + 51 * + + 73 * + COUNT ( * ) * - 6 + - 88 + + 83
----
-1049891

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL - COUNT( * ) * + 25 + - COUNT( * ) + + 14
----
-12

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - COUNT ( * ) * + 25 + - COUNT ( * ) + + 14
----
-12

query I rowsort
SELECT DISTINCT ( 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - COUNT( DISTINCT - + 31 ) * 19 * - MIN( - - 66 )
----
1254

skipif mysql # not compatible
query I rowsort label-4876
SELECT - COUNT ( DISTINCT - + 31 ) * 19 * - MIN ( - - 66 )
----
1254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4877
SELECT - ( - COUNT( * ) ) * + NULLIF ( - MAX( + - CAST( NULL AS SIGNED ) ), + 46 + 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT - ( - COUNT ( * ) ) * + NULLIF ( - MAX ( + - CAST ( NULL AS INTEGER ) ), + 46 + 86 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4878
SELECT ALL CAST( NULL AS SIGNED ) col2, 34 DIV 29 * + COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4878
SELECT ALL CAST ( NULL AS INTEGER ) col2, 34 / 29 * + COUNT ( * ) col1
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4879
SELECT DISTINCT + 16 * 50 DIV + CAST( - 45 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + 16 * 50 / + CAST ( - 45 AS INTEGER )
----
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4880
SELECT 26 AS col2, - 21 DIV + CAST( COALESCE ( + CASE 66 WHEN - - 13 + + 17 THEN + 58 + 66 END, 35 ) AS SIGNED ) AS col0
----
26
0

skipif mysql # not compatible
query II rowsort label-4880
SELECT 26 AS col2, - 21 / + CAST ( COALESCE ( + CASE 66 WHEN - - 13 + + 17 THEN + 58 + 66 END, 35 ) AS INTEGER ) AS col0
----
26
0

query I rowsort
SELECT - ( - + 10 )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4882
SELECT ALL + 98 + + + SUM( + - 43 ) + - - 33, + 72 AS col0
----
88
72

skipif mysql # not compatible
query II rowsort label-4882
SELECT ALL + 98 + + + SUM ( + - 43 ) + - - 33, + 72 AS col0
----
88
72

query I rowsort
SELECT - ( + + 72 ) - - + NULLIF ( + 12, + 99 )
----
-60

query I rowsort
SELECT DISTINCT + 26 + + 93
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT DISTINCT CASE WHEN NOT NULL IS NOT NULL THEN + ( + + 97 ) END + CAST( NULL AS SIGNED ) / 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT CASE WHEN NOT NULL IS NOT NULL THEN + ( + + 97 ) END + CAST ( NULL AS INTEGER ) / 13
----
NULL

query I rowsort
SELECT DISTINCT 44 + - 8
----
36

query II rowsort
SELECT ALL 77 AS col0, 41 * - 11 * - 91 AS col0
----
77
41041

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT DISTINCT ( + NULLIF ( - 93, + AVG ( DISTINCT - + 9 ) ) ) DIV + 5
----
-18

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT ( + NULLIF ( - 93, + AVG ( DISTINCT - + 9 ) ) ) / + 5
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT ALL COUNT( DISTINCT 63 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL COUNT ( DISTINCT 63 ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 23 - + 21
----
2

query I rowsort
SELECT DISTINCT 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT SUM( + 89 ) + + - 7
----
82

skipif mysql # not compatible
query I rowsort label-4892
SELECT SUM ( + 89 ) + + - 7
----
82

query I rowsort
SELECT ( 66 ) - - 10 AS col2
----
76

query I rowsort
SELECT ALL ( - COALESCE ( - + 42, - + 75 ) ) - + 88
----
-46

query II rowsort
SELECT ALL 42 AS col1, - 44 * + 6 AS col2
----
42
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4896
SELECT 63 DIV COUNT( * ) * 67 * - 34 * - 52 + 61 + 56
----
7462845

skipif mysql # not compatible
query I rowsort label-4896
SELECT 63 / COUNT ( * ) * 67 * - 34 * - 52 + 61 + 56
----
7462845

query I rowsort
SELECT 68 * + 87
----
5916

query I rowsort
SELECT + 55 * - + 79 col2
----
-4345

query I rowsort
SELECT ALL 25 * - - 8 AS col2
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT 99 + + 91 / + ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT 99 + + 91 / + ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT - 32 * - 49 + + 2 DIV + 91 col0
----
1568

skipif mysql # not compatible
query I rowsort label-4901
SELECT - 32 * - 49 + + 2 / + 91 col0
----
1568

query I rowsort
SELECT ALL 48 * - + 12 - + 77 + 66 AS col2
----
-587

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT - 85 * + COUNT( * ) + - COALESCE ( - - 33, - - ( CASE WHEN NOT ( NOT 72 IN ( 94 * + 86 + - + 48 ) ) THEN - 72 WHEN ( NULL ) NOT IN ( 41 + 32 ) THEN NULL END ), 93 )
----
-118

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT - 85 * + COUNT ( * ) + - COALESCE ( - - 33, - - ( CASE WHEN NOT ( NOT 72 IN ( 94 * + 86 + - + 48 ) ) THEN - 72 WHEN ( NULL ) NOT IN ( 41 + 32 ) THEN NULL END ), 93 )
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT ALL 92 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL 92 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4905
SELECT + MAX( + + ( 42 ) ), NULLIF ( + - 62, COUNT( * ) * + MAX( ( - 67 ) ) + - ( 26 ) * - + 2 ) AS col2
----
42
-62

skipif mysql # not compatible
query II rowsort label-4905
SELECT + MAX ( + + ( 42 ) ), NULLIF ( + - 62, COUNT ( * ) * + MAX ( ( - 67 ) ) + - ( 26 ) * - + 2 ) AS col2
----
42
-62

query I rowsort
SELECT DISTINCT - + 70
----
-70

query II rowsort
SELECT DISTINCT - 97, 24 * - 7 * + 38 AS col0
----
-97
-6384

query I rowsort
SELECT ALL - + 14
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT + + COUNT( DISTINCT 30 )
----
1

skipif mysql # not compatible
query I rowsort label-4909
SELECT + + COUNT ( DISTINCT 30 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ( + 88 ) + + - COUNT( * ) + + 72 * 19 AS col0
----
1455

skipif mysql # not compatible
query I rowsort label-4910
SELECT ( + 88 ) + + - COUNT ( * ) + + 72 * 19 AS col0
----
1455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4911
SELECT ALL - CAST( + - MIN( ALL 34 ) AS SIGNED ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL - CAST ( + - MIN ( ALL 34 ) AS INTEGER ) AS col1
----
34

query I rowsort
SELECT + + 2 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT 17 * 7 + + - COUNT( * ) + 70 - - - 98 * - 48 + - - 72 * 68 * - ( + 91 ) * + - 19 + 98 * 56
----
8475564

skipif mysql # not compatible
query I rowsort label-4913
SELECT 17 * 7 + + - COUNT ( * ) + 70 - - - 98 * - 48 + - - 72 * 68 * - ( + 91 ) * + - 19 + 98 * 56
----
8475564

query I rowsort
SELECT - 69 * + 39 + 29 + - 78 AS col1
----
-2740

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL CASE - 28 WHEN - - 94 + + 65 - + 65 + COUNT( * ) / + ( - 34 ) + - - 22 THEN + + 2 WHEN + 32 THEN NULL END + - - 13 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL CASE - 28 WHEN - - 94 + + 65 - + 65 + COUNT ( * ) / + ( - 34 ) + - - 22 THEN + + 2 WHEN + 32 THEN NULL END + - - 13 + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT - 0 AS col1, + 5 AS col2
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + - 47 * COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + - 47 * COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4918
SELECT + ( - 67 ) DIV 6 DIV - MAX( - 31 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4918
SELECT + ( - 67 ) / 6 / - MAX ( - 31 ) AS col2
----
0

query I rowsort
SELECT ALL + 9 + 10
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT ALL 21 + COUNT( * ) - - COALESCE ( + 38, - + 91 ) * - 36 + 92 + - - ( - ( - - 93 ) )
----
-1347

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL 21 + COUNT ( * ) - - COALESCE ( + 38, - + 91 ) * - 36 + 92 + - - ( - ( - - 93 ) )
----
-1347

query I rowsort
SELECT + - 17 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL - - 35 + - ( COUNT( * ) ) - 49 * + ( + + 44 ) + 46 - + CASE + + 98 WHEN + COUNT( * ) THEN - - 48 * 47 * 96 WHEN - CASE + SUM( 89 ) WHEN 61 THEN + 7 WHEN 38 + COUNT( * ) THEN + 70 * - 55 ELSE + ( 55 ) + + 4 END THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - - 35 + - ( COUNT ( * ) ) - 49 * + ( + + 44 ) + 46 - + CASE + + 98 WHEN + COUNT ( * ) THEN - - 48 * 47 * 96 WHEN - CASE + SUM ( 89 ) WHEN 61 THEN + 7 WHEN 38 + COUNT ( * ) THEN + 70 * - 55 ELSE + ( 55 ) + + 4 END THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4923
SELECT CAST( - MAX( ALL 70 ) AS SIGNED ) * - 71, - CAST( NULL AS SIGNED ) + 9 col0
----
4970
NULL

skipif mysql # not compatible
query II rowsort label-4923
SELECT CAST ( - MAX ( ALL 70 ) AS INTEGER ) * - 71, - CAST ( NULL AS INTEGER ) + 9 col0
----
4970
NULL

query I rowsort
SELECT ALL 80 * + 14 AS col0
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL + COUNT( * ) + + 60 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + COUNT ( * ) + + 60 AS col0
----
61

query I rowsort
SELECT 88 + ( + 59 ) AS col2
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4927
SELECT 97 + + CAST( - - 34 AS SIGNED )
----
131

skipif mysql # not compatible
query I rowsort label-4927
SELECT 97 + + CAST ( - - 34 AS INTEGER )
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT ALL - 40 DIV - COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL - 40 / - COUNT ( * ) AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4929
SELECT ALL - 67 DIV + + CASE + - 99 WHEN ( - 89 ) + 34 + + 48 + - - ( + CAST( - 81 AS SIGNED ) ) THEN ( - 33 ) WHEN SUM( 0 ) THEN NULL ELSE 30 END AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - 67 / + + CASE + - 99 WHEN ( - 89 ) + 34 + + 48 + - - ( + CAST ( - 81 AS INTEGER ) ) THEN ( - 33 ) WHEN SUM ( 0 ) THEN NULL ELSE 30 END AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT ALL + CAST( - ( + AVG ( ALL + 1 ) ) AS SIGNED ) * 77 + + 12 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL + CAST ( - ( + AVG ( ALL + 1 ) ) AS INTEGER ) * 77 + + 12 AS col0
----
-65

query II rowsort
SELECT 23 + - 2 + 54 - + - 28 AS col0, + 68
----
103
68

query II rowsort
SELECT DISTINCT + 95 - + - 14, ( + 30 ) col2
----
109
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT COUNT( * ) - + 92
----
-91

skipif mysql # not compatible
query I rowsort label-4933
SELECT COUNT ( * ) - + 92
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4934
SELECT ALL + COUNT( + 91 ) * + + ( + + COUNT( + CAST( - 35 AS SIGNED ) ) ) * + 3 AS col1, 87 * + + 85 col0
----
3
7395

skipif mysql # not compatible
query II rowsort label-4934
SELECT ALL + COUNT ( + 91 ) * + + ( + + COUNT ( + CAST ( - 35 AS INTEGER ) ) ) * + 3 AS col1, 87 * + + 85 col0
----
3
7395

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT COUNT( * ) + + 82
----
83

skipif mysql # not compatible
query I rowsort label-4935
SELECT COUNT ( * ) + + 82
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4936
SELECT ALL + CASE 34 WHEN 70 * + + 50 - + 64 * + NULLIF ( - COUNT( * ), - 40 * 46 ) THEN - - CAST( NULL AS SIGNED ) ELSE 92 - - 67 END * - + MAX( DISTINCT + 12 )
----
-1908

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + CASE 34 WHEN 70 * + + 50 - + 64 * + NULLIF ( - COUNT ( * ), - 40 * 46 ) THEN - - CAST ( NULL AS INTEGER ) ELSE 92 - - 67 END * - + MAX ( DISTINCT + 12 )
----
-1908

query I rowsort
SELECT 13 * - + 48
----
-624

query I rowsort
SELECT 25 * + 70 AS col1
----
1750

query II rowsort
SELECT ALL + 48 * 35 AS col2, 55 AS col1
----
1680
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL + 26 - + 47 + - COUNT( * ) * - 5 * COUNT( * ) + 35 * 34 AS col1
----
1174

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL + 26 - + 47 + - COUNT ( * ) * - 5 * COUNT ( * ) + 35 * 34 AS col1
----
1174

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT COUNT( ALL + - 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4941
SELECT COUNT ( ALL + - 78 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - - 80 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT + 20 * - - COUNT( * ) * + + 9 AS col0
----
180

skipif mysql # not compatible
query I rowsort label-4943
SELECT + 20 * - - COUNT ( * ) * + + 9 AS col0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 81 col2
----
-81

query I rowsort
SELECT 28 col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4947
SELECT 29 * - 91 AS col0, + NULLIF ( + - 58, + 44 * - + 82 ) DIV - 25 + + SUM( ALL 52 ) + + - 40 + - COUNT( * ) * + ( + 64 )
----
-2639
-50

skipif mysql # not compatible
query II rowsort label-4947
SELECT 29 * - 91 AS col0, + NULLIF ( + - 58, + 44 * - + 82 ) / - 25 + + SUM ( ALL 52 ) + + - 40 + - COUNT ( * ) * + ( + 64 )
----
-2639
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL ( - CASE WHEN ( NULL ) IS NOT NULL OR NOT ( NOT + 56 IS NOT NULL ) THEN SUM( - 80 ) END ) * CASE 85 WHEN AVG ( + 8 ) + + 0 THEN NULL WHEN - SUM( DISTINCT 60 ) THEN 19 WHEN - COUNT( * ) THEN NULL ELSE + CASE - ( + 55 ) WHEN 2 THEN 6 * 94 ELSE NULL END - - 48 END - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL ( - CASE WHEN ( NULL ) IS NOT NULL OR NOT ( NOT + 56 IS NOT NULL ) THEN SUM ( - 80 ) END ) * CASE 85 WHEN AVG ( + 8 ) + + 0 THEN NULL WHEN - SUM ( DISTINCT 60 ) THEN 19 WHEN - COUNT ( * ) THEN NULL ELSE + CASE - ( + 55 ) WHEN 2 THEN 6 * 94 ELSE NULL END - - 48 END - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT - 95 - MIN( 81 ) col2
----
-176

skipif mysql # not compatible
query I rowsort label-4949
SELECT - 95 - MIN ( 81 ) col2
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4950
SELECT ALL 20 * - MIN( ALL - + 57 ) * - + 7 + - MIN( ALL + CAST( NULL AS DECIMAL ) ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL 20 * - MIN ( ALL - + 57 ) * - + 7 + - MIN ( ALL + CAST ( NULL AS REAL ) ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 10 * - - 28 * + + 15 - 21 + + 6 + - 41 - + + 99 + + 76 * - - 67 * - 17
----
-90919

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT DISTINCT + COUNT( * ) + - 36 + + COUNT( ALL 10 ) * 8 * - 87
----
-731

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + COUNT ( * ) + - 36 + + COUNT ( ALL 10 ) * 8 * - 87
----
-731

query I rowsort
SELECT DISTINCT 10 * - 86
----
-860

query I rowsort
SELECT + - 19 AS col0
----
-19

query I rowsort
SELECT - 2 * + - 80 - - - 33 AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT COUNT( DISTINCT - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-4956
SELECT COUNT ( DISTINCT - 96 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4957
SELECT + NULLIF ( - 86, ( + + 82 ) + + 48 + - MIN( + - CAST( NULL AS DECIMAL ) ) ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-4957
SELECT + NULLIF ( - 86, ( + + 82 ) + + 48 + - MIN ( + - CAST ( NULL AS REAL ) ) ) AS col1
----
-86

query I rowsort
SELECT DISTINCT 74 + + 10 * - 46 + + 13
----
-373

query I rowsort
SELECT ALL 33 + + - 15 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT + CASE + 97 WHEN 93 THEN 81 WHEN - + 23 / - COUNT( * ) + - AVG ( + - CAST( NULL AS SIGNED ) ) + - 23 / + COUNT( * ) + + + CAST( NULL AS SIGNED ) + 92 * + 8 + + AVG ( 21 ) + MIN( - 60 ) * 6 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT + CASE + 97 WHEN 93 THEN 81 WHEN - + 23 / - COUNT ( * ) + - AVG ( + - CAST ( NULL AS INTEGER ) ) + - 23 / + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + 92 * + 8 + + AVG ( 21 ) + MIN ( - 60 ) * 6 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 9 + 21
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT - CAST( NULL AS SIGNED ) * + 41 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT - CAST ( NULL AS INTEGER ) * + 41 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT SUM( - - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT SUM ( - - 10 ) AS col0
----
10

query I rowsort
SELECT + 97 + + - 5
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT 2 AS col1, + COUNT( * ) AS col1
----
2
1

skipif mysql # not compatible
query II rowsort label-4965
SELECT 2 AS col1, + COUNT ( * ) AS col1
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT - COUNT( DISTINCT + 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-4966
SELECT - COUNT ( DISTINCT + 71 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT - 37 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT - 37 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 55 * - 91 AS col2
----
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL + 81 - + + COUNT( * ) + 67 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL + 81 - + + COUNT ( * ) + 67 AS col0
----
147

query I rowsort
SELECT + 43 + - - 11 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT - NULLIF ( + 63, COALESCE ( - + 89, + - ( + COUNT( * ) ), - - 19 ) ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-4971
SELECT - NULLIF ( + 63, COALESCE ( - + 89, + - ( + COUNT ( * ) ), - - 19 ) ) col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT ALL - 9 DIV + + 11 * + - 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - 9 / + + 11 * + - 30 AS col0
----
0

query I rowsort
SELECT - 19 + + - 19 + - - 42 * + - 32
----
-1382

query I rowsort
SELECT - - COALESCE ( + 63, + + 76, + COALESCE ( + 2, + - 45 + - 39 + + - 76, - 75 ) )
----
63

query I rowsort
SELECT + 43 + - 55 AS col1
----
-12

query I rowsort
SELECT - 13 - - 40 AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4977
SELECT - CAST( - - ( - 14 ) AS SIGNED ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4977
SELECT - CAST ( - - ( - 14 ) AS INTEGER ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4978
SELECT + 57 + - COUNT( * ) + - 58 col2, 35 AS col2
----
-2
35

skipif mysql # not compatible
query II rowsort label-4978
SELECT + 57 + - COUNT ( * ) + - 58 col2, 35 AS col2
----
-2
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT - NULLIF ( + - 75, COALESCE ( 15, + - 0 ) * - COUNT( + 14 ) + - 25 ) + - 74 * - 15 * - COUNT( * ) + - 97
----
-1132

skipif mysql # not compatible
query I rowsort label-4979
SELECT - NULLIF ( + - 75, COALESCE ( 15, + - 0 ) * - COUNT ( + 14 ) + - 25 ) + - 74 * - 15 * - COUNT ( * ) + - 97
----
-1132

query I rowsort
SELECT DISTINCT - 3 + - + 65 + 42 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ALL + - 68 + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL + - 68 + COUNT ( * )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT - + ( - + 96 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT - + ( - + 96 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + - NULLIF ( + 5, + 13 ) AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4984
SELECT 15 DIV - NULLIF ( COUNT( * ), 27 ) + + 61 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4984
SELECT 15 / - NULLIF ( COUNT ( * ), 27 ) + + 61 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL 80 * 67 + + SUM( + 7 ) col0
----
5367

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL 80 * 67 + + SUM ( + 7 ) col0
----
5367

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4986
SELECT + - 54, - CAST( - 95 AS SIGNED ) col1
----
-54
95

skipif mysql # not compatible
query II rowsort label-4986
SELECT + - 54, - CAST ( - 95 AS INTEGER ) col1
----
-54
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT + CAST( NULLIF ( + 84, + 25 + 87 ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-4987
SELECT + CAST ( NULLIF ( + 84, + 25 + 87 ) AS INTEGER )
----
84

query I rowsort
SELECT - 43 + + 61 AS col1
----
18

query I rowsort
SELECT ALL + - 17 AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4990
SELECT - 86 DIV - MAX( ALL + 4 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-4990
SELECT - 86 / - MAX ( ALL + 4 ) col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - + COUNT( * ) * - - 13 col1
----
-13

skipif mysql # not compatible
query I rowsort label-4991
SELECT - + COUNT ( * ) * - - 13 col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4992
SELECT 66 col0, CASE 39 WHEN - 1 / - 47 - + 74 THEN MAX( DISTINCT - 31 ) * 67 END AS col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-4992
SELECT 66 col0, CASE 39 WHEN - 1 / - 47 - + 74 THEN MAX ( DISTINCT - 31 ) * 67 END AS col1
----
66
NULL

query I rowsort
SELECT ALL 47 * + 60 + 51 * - + 93 * - - 99
----
-466737

query I rowsort
SELECT DISTINCT 92 * - 80
----
-7360

query I rowsort
SELECT DISTINCT + 67 * + 62
----
4154

query I rowsort
SELECT ALL 84 * + 67 - + 58 AS col2
----
5570

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL + 92 * ( + SUM( DISTINCT + - 93 ) ) - 16 * - 50 + + - 47 AS col1
----
-7803

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL + 92 * ( + SUM ( DISTINCT + - 93 ) ) - 16 * - 50 + + - 47 AS col1
----
-7803

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT + 85 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-4998
SELECT + 85 / - 60
----
-1

query I rowsort
SELECT - ( - - COALESCE ( 0, - - CASE 63 WHEN 41 THEN + - 92 END ) ) * - 8 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5000
SELECT - 56 - - CASE - 70 WHEN + 61 + 31 + + COUNT( * ) * 64 THEN - 20 WHEN + + COUNT( + 22 ) * - 34 - + 0 THEN - 80 WHEN 25 + - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT - 56 - - CASE - 70 WHEN + 61 + 31 + + COUNT ( * ) * 64 THEN - 20 WHEN + + COUNT ( + 22 ) * - 34 - + 0 THEN - 80 WHEN 25 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5001
SELECT COUNT( * ), CASE + 15 WHEN - 74 + 76 THEN NULL ELSE + COUNT( * ) + - 56 END + - - 59 AS col2
----
1
4

skipif mysql # not compatible
query II rowsort label-5001
SELECT COUNT ( * ), CASE + 15 WHEN - 74 + 76 THEN NULL ELSE + COUNT ( * ) + - 56 END + - - 59 AS col2
----
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT SUM( + - 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5002
SELECT SUM ( + - 32 ) AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5003
SELECT - CAST( NULL AS SIGNED ) AS col2, + 30 * 82 * 62 * + MAX( ALL + - 28 ) AS col0
----
NULL
-4270560

skipif mysql # not compatible
query II rowsort label-5003
SELECT - CAST ( NULL AS INTEGER ) AS col2, + 30 * 82 * 62 * + MAX ( ALL + - 28 ) AS col0
----
NULL
-4270560

query II rowsort
SELECT + 26 * - 6, + 70 col1
----
-156
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT + 2 - - 31 AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5007
SELECT COUNT( + - COALESCE ( - 71, - + 18 ) ), 11 * 33 * - COALESCE ( + - ( - 13 ), + + ( 36 ) + - + SUM( 40 ) ) AS col2
----
1
-4719

skipif mysql # not compatible
query II rowsort label-5007
SELECT COUNT ( + - COALESCE ( - 71, - + 18 ) ), 11 * 33 * - COALESCE ( + - ( - 13 ), + + ( 36 ) + - + SUM ( 40 ) ) AS col2
----
1
-4719

query II rowsort
SELECT ALL 87 AS col0, 20 * + 57
----
87
1140

query I rowsort
SELECT + 95 * - 16 AS col1
----
-1520

query I rowsort
SELECT ALL 7 * 62 AS col1
----
434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5011
SELECT - CAST( - 98 AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5011
SELECT - CAST ( - 98 AS INTEGER ) AS col0
----
98

query I rowsort
SELECT - - 54 + - + 0 + + + 36
----
90

query I rowsort
SELECT ALL + NULLIF ( NULLIF ( 5, + 71 ), + 23 ) + + 98
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT ALL - 74 + 39 + - 11 * - COUNT( * ) * - 17 * - + CAST( + 70 AS SIGNED ) + 5 AS col1
----
13060

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL - 74 + 39 + - 11 * - COUNT ( * ) * - 17 * - + CAST ( + 70 AS INTEGER ) + 5 AS col1
----
13060

query II rowsort
SELECT 89, + 11 * - 60 AS col2
----
89
-660

onlyif mysql # aggregate syntax: 
query II rowsort label-5016
SELECT - COUNT( * ) AS col1, 1 + 74
----
-1
75

skipif mysql # not compatible
query II rowsort label-5016
SELECT - COUNT ( * ) AS col1, 1 + 74
----
-1
75

query I rowsort
SELECT ALL - 4 * - 81
----
324

query I rowsort
SELECT + + 93 * 93 * 96
----
830304

query I rowsort
SELECT ALL 60 + - 60 AS col0
----
0

query II rowsort
SELECT + 68 AS col1, 8
----
68
8

query I rowsort
SELECT ALL + + 41 + 44
----
85

query I rowsort
SELECT - 13 * 8 AS col0
----
-104

query I rowsort
SELECT - + 52 * - 68 AS col2
----
3536

query II rowsort
SELECT 62 AS col0, - 58 + 3
----
62
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5025
SELECT ALL 61 DIV 77 + + 12 - - 64 AS col0, + 67 * NULLIF ( + - 67, - 12 + ( + MIN( ALL 40 ) ) ) * 97 + - 31 + + + 37 + - 16
----
76
-435443

skipif mysql # not compatible
query II rowsort label-5025
SELECT ALL 61 / 77 + + 12 - - 64 AS col0, + 67 * NULLIF ( + - 67, - 12 + ( + MIN ( ALL 40 ) ) ) * 97 + - 31 + + + 37 + - 16
----
76
-435443

query I rowsort
SELECT DISTINCT - - 36 * + + 48
----
1728

query I rowsort
SELECT DISTINCT 72 * - 71 * - 32 AS col0
----
163584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5028
SELECT ALL - CAST( + 45 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL - CAST ( + 45 AS INTEGER ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL - COUNT( DISTINCT - 11 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL - COUNT ( DISTINCT - 11 ) AS col2
----
-1

query II rowsort
SELECT 1 + + + 69 AS col1, 75 AS col0
----
70
75

query I rowsort
SELECT 7 * 93 AS col2
----
651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT DISTINCT - CASE + CAST( + - 18 AS SIGNED ) WHEN + - MIN( DISTINCT + + 1 ) THEN 89 * + 49 ELSE - 57 END
----
57

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT - CASE + CAST ( + - 18 AS INTEGER ) WHEN + - MIN ( DISTINCT + + 1 ) THEN 89 * + 49 ELSE - 57 END
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL - ( + COUNT( * ) ) - + COUNT( * ) * COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL - ( + COUNT ( * ) ) - + COUNT ( * ) * COUNT ( * )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT 97 * - - AVG ( DISTINCT - - ( - 93 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT 97 * - - AVG ( DISTINCT - - ( - 93 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT COUNT( * ) * + 68 * + + COUNT( * ) * + 46 AS col1
----
3128

skipif mysql # not compatible
query I rowsort label-5035
SELECT COUNT ( * ) * + 68 * + + COUNT ( * ) * + 46 AS col1
----
3128

onlyif mysql # DIV for integer division: 
query II rowsort label-5036
SELECT ALL + 18 DIV - 78 col0, 43
----
0
43

skipif mysql # not compatible
query II rowsort label-5036
SELECT ALL + 18 / - 78 col0, 43
----
0
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL + COUNT( * ) * - 68 col1
----
-68

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + COUNT ( * ) * - 68 col1
----
-68

query I rowsort
SELECT 22 * + 98 * - 22
----
-47432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5039
SELECT DISTINCT + COUNT( * ) DIV - COALESCE ( - + 26, - 19 DIV + CASE + + 19 WHEN + MIN( 40 ) * + 28 THEN 53 + + + 31 + + + 40 - + 57 * - - 16 WHEN + 55 * SUM( DISTINCT CAST( NULL AS SIGNED ) ) THEN NULL ELSE 48 + - AVG ( DISTINCT - 71 ) * + 48 END )
----
0

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT + COUNT ( * ) / - COALESCE ( - + 26, - 19 / + CASE + + 19 WHEN + MIN ( 40 ) * + 28 THEN 53 + + + 31 + + + 40 - + 57 * - - 16 WHEN + 55 * SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 48 + - AVG ( DISTINCT - 71 ) * + 48 END )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5040
SELECT DISTINCT 72 + + COUNT( * ) DIV - - 65 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT 72 + + COUNT ( * ) / - - 65 AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5041
SELECT COUNT( * ) + + 92 + - - 31 + 16 + + 32 * + 84 * - - 80 + COUNT( * ) * - CAST( + 40 AS SIGNED ) * - - 84 * 93 - - 9 DIV - + 69 col1
----
-97300

skipif mysql # not compatible
query I rowsort label-5041
SELECT COUNT ( * ) + + 92 + - - 31 + 16 + + 32 * + 84 * - - 80 + COUNT ( * ) * - CAST ( + 40 AS INTEGER ) * - - 84 * 93 - - 9 / - + 69 col1
----
-97300

query I rowsort
SELECT ALL + ( - + 5 ) * + 78 col1
----
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5043
SELECT ALL 7 + - NULLIF ( - COUNT( * ), - 48 + + - CAST( - 94 AS SIGNED ) / - - 45 + + 24 ) + + 52 + - 49 * + 13 * - - 14 * 56
----
-499348

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL 7 + - NULLIF ( - COUNT ( * ), - 48 + + - CAST ( - 94 AS INTEGER ) / - - 45 + + 24 ) + + 52 + - 49 * + 13 * - - 14 * 56
----
-499348

query I rowsort
SELECT ALL - ( + 47 ) * - 17 AS col0
----
799

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT 22 + - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-5045
SELECT 22 + - COUNT ( * )
----
21

query I rowsort
SELECT 25 * 5
----
125

query I rowsort
SELECT - - ( - 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT NULLIF ( + 2, - - COUNT( + 22 ) ) * + 87
----
174

skipif mysql # not compatible
query I rowsort label-5048
SELECT NULLIF ( + 2, - - COUNT ( + 22 ) ) * + 87
----
174

query I rowsort
SELECT ALL 92 + 95 + - 2
----
185

query II rowsort
SELECT 68 + - + 28 AS col0, 66 * - 61
----
40
-4026

query I rowsort
SELECT ( 46 ) + + 27 AS col2
----
73

query I rowsort
SELECT 37 - + 59
----
-22

query I rowsort
SELECT - ( 10 )
----
-10

query I rowsort
SELECT + 38 + 20 AS col1
----
58

query I rowsort
SELECT 17 + + ( + 33 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ALL 61 - + - 82 + - COUNT( * ) + ( 96 ) + - 64
----
174

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL 61 - + - 82 + - COUNT ( * ) + ( 96 ) + - 64
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL - COUNT( 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL - COUNT ( 55 ) AS col0
----
-1

query I rowsort
SELECT 17 * - - 17 AS col1
----
289

onlyif mysql # DIV for integer division: 
query I rowsort label-5059
SELECT ALL 50 DIV 1 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL 50 / 1 AS col0
----
50

query I rowsort
SELECT 26 + + 68 AS col1
----
94

query I rowsort
SELECT COALESCE ( 16, + + 93, + 80 + 93 * 76 ) * - + 75 AS col1
----
-1200

query I rowsort
SELECT 42 * + 48
----
2016

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5063
SELECT ALL COALESCE ( - + 55, - 85 * - 99, - 97 + - - 38 ) * - - COALESCE ( 22, - + CAST( NULL AS SIGNED ) * + 11, + + CASE + 38 WHEN CAST( NULL AS DECIMAL ) + - + 29 + + 80 THEN - 56 WHEN - 8 THEN NULL ELSE NULL END * CAST( - 7 AS SIGNED ) * + 27 )
----
-1210

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL COALESCE ( - + 55, - 85 * - 99, - 97 + - - 38 ) * - - COALESCE ( 22, - + CAST ( NULL AS INTEGER ) * + 11, + + CASE + 38 WHEN CAST ( NULL AS REAL ) + - + 29 + + 80 THEN - 56 WHEN - 8 THEN NULL ELSE NULL END * CAST ( - 7 AS INTEGER ) * + 27 )
----
-1210

query I rowsort
SELECT 32 + + 74
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5065
SELECT DISTINCT + 4 + MAX( 0 ) DIV + + 50
----
4

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT + 4 + MAX ( 0 ) / + + 50
----
4

query II rowsort
SELECT ALL - 6 AS col0, + 25
----
-6
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5067
SELECT 18, CASE - + 57 WHEN - + COUNT( * ) THEN + - 6 + + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * 21 END * - 54 * - 35 * - 22 * - COUNT( * ) AS col2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-5067
SELECT 18, CASE - + 57 WHEN - + COUNT ( * ) THEN + - 6 + + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 21 END * - 54 * - 35 * - 22 * - COUNT ( * ) AS col2
----
18
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5068
SELECT ALL - 77 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - 77 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT + 82 AS col2, 29 AS col2
----
82
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5070
SELECT CAST( NULL AS DECIMAL ) * + 48 * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT CAST ( NULL AS REAL ) * + 48 * + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT COUNT( * ) - - - 96
----
-95

skipif mysql # not compatible
query I rowsort label-5071
SELECT COUNT ( * ) - - - 96
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5072
SELECT CASE + - 97 WHEN CASE WHEN NOT - 66 > - 47 + + + 69 THEN - 26 END THEN + 75 + SUM( DISTINCT + 63 ) WHEN 61 / COALESCE ( - - 53, - - MIN( ALL - 32 ) ) THEN ( + MAX( ALL - CAST( NULL AS SIGNED ) ) ) * - 56 ELSE - COUNT( * ) END * + 94 + 89
----
-5

skipif mysql # not compatible
query I rowsort label-5072
SELECT CASE + - 97 WHEN CASE WHEN NOT - 66 > - 47 + + + 69 THEN - 26 END THEN + 75 + SUM ( DISTINCT + 63 ) WHEN 61 / COALESCE ( - - 53, - - MIN ( ALL - 32 ) ) THEN ( + MAX ( ALL - CAST ( NULL AS INTEGER ) ) ) * - 56 ELSE - COUNT ( * ) END * + 94 + 89
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5073
SELECT CASE - - ( + COUNT( * ) ) WHEN CAST( NULL AS SIGNED ) + + - 51 + - - 29 * ( 71 ) * - 60 * + - 28 THEN + - 93 WHEN + + 37 - ( - 77 ) - + - COUNT( * ) THEN NULL ELSE NULL END + + SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT CASE - - ( + COUNT ( * ) ) WHEN CAST ( NULL AS INTEGER ) + + - 51 + - - 29 * ( 71 ) * - 60 * + - 28 THEN + - 93 WHEN + + 37 - ( - 77 ) - + - COUNT ( * ) THEN NULL ELSE NULL END + + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL 68 AS col1, + 93 col1
----
68
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5075
SELECT + 53 * + 63 + + - 52 DIV + - NULLIF ( 74, 44 ) * - 10
----
3339

skipif mysql # not compatible
query I rowsort label-5075
SELECT + 53 * + 63 + + - 52 / + - NULLIF ( 74, 44 ) * - 10
----
3339

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT + + 45 + + - MAX( ALL 86 )
----
-41

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT + + 45 + + - MAX ( ALL 86 )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5077
SELECT - 29 AS col1, + COUNT( * ) DIV - 7 DIV - + COUNT( * ) AS col0
----
-29
0

skipif mysql # not compatible
query II rowsort label-5077
SELECT - 29 AS col1, + COUNT ( * ) / - 7 / - + COUNT ( * ) AS col0
----
-29
0

query II rowsort
SELECT DISTINCT + ( + 33 ) + + + 75 AS col2, - 49 col0
----
108
-49

query II rowsort
SELECT ALL ( + - 20 ) * + 45 AS col2, + 58 AS col1
----
-900
58

query I rowsort
SELECT ALL - ( - - 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT + 86 * - COUNT( * ) + + + 24 + - - 2 col0
----
-60

skipif mysql # not compatible
query I rowsort label-5081
SELECT + 86 * - COUNT ( * ) + + + 24 + - - 2 col0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT + 52 AS col2, COUNT( * ) + + 10
----
52
11

skipif mysql # not compatible
query II rowsort label-5082
SELECT + 52 AS col2, COUNT ( * ) + + 10
----
52
11

query I rowsort
SELECT - 95 + + 66 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ALL - + 57 - COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL - + 57 - COUNT ( * ) AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT - NULLIF ( + 51, + CAST( NULL AS SIGNED ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5085
SELECT - NULLIF ( + 51, + CAST ( NULL AS INTEGER ) ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT 52 + + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-5086
SELECT 52 + + COUNT ( * )
----
53

query I rowsort
SELECT 39 * - 92
----
-3588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5088
SELECT 17 AS col1, MAX( ALL CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-5088
SELECT 17 AS col1, MAX ( ALL CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col2
----
17
NULL

query I rowsort
SELECT - 66 * - 30 AS col0
----
1980

query II rowsort
SELECT - 37, 50 AS col0
----
-37
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL COALESCE ( - + COUNT( * ), - 68, - COUNT( - 83 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL COALESCE ( - + COUNT ( * ), - 68, - COUNT ( - 83 ) ) AS col1
----
-1

query I rowsort
SELECT ALL ( 88 )
----
88

query I rowsort
SELECT ALL 33 * - 31 AS col0
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL + SUM( 46 )
----
46

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + SUM ( 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + NULLIF ( + 65, COUNT( * ) - + 68 )
----
65

skipif mysql # not compatible
query I rowsort label-5095
SELECT + NULLIF ( + 65, COUNT ( * ) - + 68 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5096
SELECT + NULLIF ( 87, + 72 + + 98 / ( + + 62 ) * CASE 9 WHEN - + 74 * + 21 THEN + - 91 * - CAST( NULL AS DECIMAL ) + + 77 + - 11 * - - CASE + ( + + AVG ( DISTINCT 43 ) ) WHEN + 7 * - COUNT( * ) THEN ( 47 ) ELSE - 21 END END + + COUNT( * ) * - 42 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5096
SELECT + NULLIF ( 87, + 72 + + 98 / ( + + 62 ) * CASE 9 WHEN - + 74 * + 21 THEN + - 91 * - CAST ( NULL AS REAL ) + + 77 + - 11 * - - CASE + ( + + AVG ( DISTINCT 43 ) ) WHEN + 7 * - COUNT ( * ) THEN ( 47 ) ELSE - 21 END END + + COUNT ( * ) * - 42 ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5097
SELECT CASE - 74 WHEN - COUNT( * ) THEN + - CAST( + - 55 AS SIGNED ) WHEN ( CAST( + ( - 29 ) AS SIGNED ) ) + + 57 THEN 63 ELSE ( - COUNT( * ) ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5097
SELECT CASE - 74 WHEN - COUNT ( * ) THEN + - CAST ( + - 55 AS INTEGER ) WHEN ( CAST ( + ( - 29 ) AS INTEGER ) ) + + 57 THEN 63 ELSE ( - COUNT ( * ) ) END AS col0
----
-1

query I rowsort
SELECT DISTINCT 62 * 60 AS col0
----
3720

query I rowsort
SELECT ALL 8 * + 41 * - 94
----
-30832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5100
SELECT + 20 DIV + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5100
SELECT + 20 / + COUNT ( * ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT + 79 + COALESCE ( 65, - 8 - + 42 ) * + + COUNT( * ) + - 28 * - 81
----
2412

skipif mysql # not compatible
query I rowsort label-5101
SELECT + 79 + COALESCE ( 65, - 8 - + 42 ) * + + COUNT ( * ) + - 28 * - 81
----
2412

query I rowsort
SELECT CASE + 27 WHEN + 20 THEN NULL WHEN 49 THEN 72 ELSE 10 * - 7 + - 29 END AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5103
SELECT ALL - 89 * + COUNT( * ) / - 83 + + - CAST( NULL AS SIGNED ) AS col2, - 97 AS col0
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-5103
SELECT ALL - 89 * + COUNT ( * ) / - 83 + + - CAST ( NULL AS INTEGER ) AS col2, - 97 AS col0
----
NULL
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT ALL + ( + AVG ( DISTINCT - + CAST( - - CAST( - + 54 AS SIGNED ) AS SIGNED ) ) ) * - 1 + - CAST( NULL AS SIGNED ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + ( + AVG ( DISTINCT - + CAST ( - - CAST ( - + 54 AS INTEGER ) AS INTEGER ) ) ) * - 1 + - CAST ( NULL AS INTEGER ) * - 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT + 84 DIV 32 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5105
SELECT + 84 / 32 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5106
SELECT ALL + MIN( 91 ), 52 AS col0
----
91
52

skipif mysql # not compatible
query II rowsort label-5106
SELECT ALL + MIN ( 91 ), 52 AS col0
----
91
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5107
SELECT - CASE - 63 WHEN 91 THEN - CASE + COUNT( * ) WHEN - 39 * 78 / - + 44 * - 15 - - ( + NULLIF ( - 51, - 40 ) ) + + 10 + 33 THEN + CASE - + 16 WHEN - 75 * 98 THEN + COUNT( * ) / - 44 END * - 57 + CASE + 97 WHEN 11 * - 44 THEN 86 - + MAX( DISTINCT - 14 ) END END + + 92 * NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( + 59 ) / - 59 ) END * 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT - CASE - 63 WHEN 91 THEN - CASE + COUNT ( * ) WHEN - 39 * 78 / - + 44 * - 15 - - ( + NULLIF ( - 51, - 40 ) ) + + 10 + 33 THEN + CASE - + 16 WHEN - 75 * 98 THEN + COUNT ( * ) / - 44 END * - 57 + CASE + 97 WHEN 11 * - 44 THEN 86 - + MAX ( DISTINCT - 14 ) END END + + 92 * NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( + 59 ) / - 59 ) END * 21 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT - CAST( NULL AS SIGNED ) + - COALESCE ( + COUNT( * ), 43 ) + 44 + 55 + 98 / 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT - CAST ( NULL AS INTEGER ) + - COALESCE ( + COUNT ( * ), 43 ) + 44 + 55 + 98 / 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5109
SELECT DISTINCT + ( + + 71 ) * COUNT( * ) + - - CAST( NULL AS SIGNED ) * - - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT + ( + + 71 ) * COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * - - 24 AS col2
----
NULL

query I rowsort
SELECT - 51 * NULLIF ( - + 68, - + 69 ) + + 72 AS col1
----
3540

onlyif mysql # DIV for integer division: 
query I rowsort label-5111
SELECT DISTINCT ( + 46 ) * - 3 + 64 DIV ( - 1 )
----
-202

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT ( + 46 ) * - 3 + 64 / ( - 1 )
----
-202

query I rowsort
SELECT ALL + 54 AS col2
----
54

query I rowsort
SELECT DISTINCT 41 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT + 67 - MAX( ALL - 93 )
----
160

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + 67 - MAX ( ALL - 93 )
----
160

query I rowsort
SELECT - + ( 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-5116
SELECT + 10 + 54 + + 40 - NULLIF ( + COUNT( * ), + COUNT( * ) ) / - 2, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5116
SELECT + 10 + 54 + + 40 - NULLIF ( + COUNT ( * ), + COUNT ( * ) ) / - 2, - COUNT ( * ) AS col0
----
NULL
-1

query I rowsort
SELECT DISTINCT + 34 - + + ( + 87 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5118
SELECT + COALESCE ( + NULLIF ( + - 45, - AVG ( - - 61 ) * - + 20 + - SUM( ALL + 52 ) ), + COUNT( * ), + - CASE - MIN( DISTINCT - - 55 ) WHEN + CASE - + 62 WHEN - 84 THEN NULL ELSE + 50 END THEN + 43 WHEN - 79 THEN NULL END ) + 32 * NULLIF ( COUNT( * ), - 35 * - CAST( NULL AS SIGNED ) )
----
-13

skipif mysql # not compatible
query I rowsort label-5118
SELECT + COALESCE ( + NULLIF ( + - 45, - AVG ( - - 61 ) * - + 20 + - SUM ( ALL + 52 ) ), + COUNT ( * ), + - CASE - MIN ( DISTINCT - - 55 ) WHEN + CASE - + 62 WHEN - 84 THEN NULL ELSE + 50 END THEN + 43 WHEN - 79 THEN NULL END ) + 32 * NULLIF ( COUNT ( * ), - 35 * - CAST ( NULL AS INTEGER ) )
----
-13

query I rowsort
SELECT - - 79 + + 37 AS col1
----
116

query I rowsort
SELECT DISTINCT + 74 - COALESCE ( - - ( - + 48 ), + + 35, - + 1 + + 54 + + + 99 + 60 + 74 )
----
122

query I rowsort
SELECT - + 4 + + 44 col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT DISTINCT - AVG ( ALL + 2 ) / - CASE - - 92 WHEN + 70 THEN + - COALESCE ( + - 74, + 56 ) WHEN 41 * + CASE WHEN ( - 22 ) = + 49 THEN + MIN( - + 57 ) * - - 50 WHEN NOT SUM( + 75 ) IS NULL THEN 38 END * + 59 + 5 THEN + 15 END + + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT - AVG ( ALL + 2 ) / - CASE - - 92 WHEN + 70 THEN + - COALESCE ( + - 74, + 56 ) WHEN 41 * + CASE WHEN ( - 22 ) = + 49 THEN + MIN ( - + 57 ) * - - 50 WHEN NOT SUM ( + 75 ) IS NULL THEN 38 END * + 59 + 5 THEN + 15 END + + 88 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5123
SELECT - + CAST( + COALESCE ( + - 12, NULLIF ( + 16, - CAST( NULL AS SIGNED ) ), 33 ) AS SIGNED ) * + - 77 + CASE WHEN NOT + 71 >= - COALESCE ( - 92, - + 86 * - 61 / - + 96 * - - 26 ) * 8 * + 41 + - ( + 45 ) THEN - COUNT( * ) + + 55 * + COUNT( * ) WHEN NOT ( NULL ) NOT IN ( - 82 ) THEN 8 END
----
-870

skipif mysql # not compatible
query I rowsort label-5123
SELECT - + CAST ( + COALESCE ( + - 12, NULLIF ( + 16, - CAST ( NULL AS INTEGER ) ), 33 ) AS INTEGER ) * + - 77 + CASE WHEN NOT + 71 >= - COALESCE ( - 92, - + 86 * - 61 / - + 96 * - - 26 ) * 8 * + 41 + - ( + 45 ) THEN - COUNT ( * ) + + 55 * + COUNT ( * ) WHEN NOT ( NULL ) NOT IN ( - 82 ) THEN 8 END
----
-870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5124
SELECT ALL - 49 * - - AVG ( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL - 49 * - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5125
SELECT DISTINCT COALESCE ( 49, + CAST( NULL AS SIGNED ) + + ( + + 4 ), - NULLIF ( - 46, + SUM( + 91 ) ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT COALESCE ( 49, + CAST ( NULL AS INTEGER ) + + ( + + 4 ), - NULLIF ( - 46, + SUM ( + 91 ) ) ) AS col0
----
49

query I rowsort
SELECT - - 80 * + + 66 * - 20 * - - 81 + - 25
----
-8553625

query I rowsort
SELECT - 40 + 77 * - 48
----
-3736

query I rowsort
SELECT - COALESCE ( + 4, - 94 ) + - 30 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL + - CASE 17 WHEN 4 THEN 17 WHEN - 93 * - + MAX( - + 84 ) THEN - 98 WHEN - 83 THEN NULL ELSE 48 END * 22
----
-1056

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL + - CASE 17 WHEN 4 THEN 17 WHEN - 93 * - + MAX ( - + 84 ) THEN - 98 WHEN - 83 THEN NULL ELSE 48 END * 22
----
-1056

query I rowsort
SELECT ALL ( 74 )
----
74

query I rowsort
SELECT + 39 + 34
----
73

query I rowsort
SELECT - 9 * - + 89 AS col1
----
801

query I rowsort
SELECT + 15 + + 89
----
104

query I rowsort
SELECT ALL 21 + - 90 AS col1
----
-69

query I rowsort
SELECT ALL - 49 * - - 16 * 24 AS col1
----
-18816

query I rowsort
SELECT - 74 * + - 2 * - 48 + - 81
----
-7185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5137
SELECT DISTINCT - 95 DIV + + COUNT( * ) + + 6 * + 85
----
415

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT - 95 / + + COUNT ( * ) + + 6 * + 85
----
415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5138
SELECT ALL + ( CAST( ( + MAX( ALL 97 ) ) AS SIGNED ) ) DIV + 78 + 4 * - COUNT( * ) + + + ( - 67 ) + NULLIF ( 22, - 26 * - 44 )
----
-48

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + ( CAST ( ( + MAX ( ALL 97 ) ) AS INTEGER ) ) / + 78 + 4 * - COUNT ( * ) + + + ( - 67 ) + NULLIF ( 22, - 26 * - 44 )
----
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-5139
SELECT DISTINCT - 79 DIV 99 + 44 col0, 14 AS col0
----
44
14

skipif mysql # not compatible
query II rowsort label-5139
SELECT DISTINCT - 79 / 99 + 44 col0, 14 AS col0
----
44
14

query I rowsort
SELECT + 49 + + 2
----
51

query I rowsort
SELECT ALL 55 * - - 41
----
2255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT CAST( + 4 AS SIGNED ) col0
----
4

skipif mysql # not compatible
query I rowsort label-5142
SELECT CAST ( + 4 AS INTEGER ) col0
----
4

query I rowsort
SELECT + 36 * - - COALESCE ( 97, 24, 25 ) + - - 35 + 9 AS col2
----
3536

onlyif mysql # aggregate syntax: 
query II rowsort label-5144
SELECT + CASE + 23 WHEN - + 57 THEN + 20 ELSE - 24 END AS col2, COUNT( * ) AS col2
----
-24
1

skipif mysql # not compatible
query II rowsort label-5144
SELECT + CASE + 23 WHEN - + 57 THEN + 20 ELSE - 24 END AS col2, COUNT ( * ) AS col2
----
-24
1

query I rowsort
SELECT ( - 86 ) AS col1
----
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5146
SELECT ALL 54 / 11 + 5 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL 54 / 11 + 5 - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 13 * CASE + + 31 WHEN ( + AVG ( - + ( + 83 ) ) ) + 47 THEN - + 54 + 50 ELSE - + 26 END
----
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ALL - 87 * + - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL - 87 * + - COUNT ( * ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT 15 * + 31 + COALESCE ( + - CAST( NULL AS SIGNED ), 66, 89 ) AS col2
----
531

skipif mysql # not compatible
query I rowsort label-5149
SELECT 15 * + 31 + COALESCE ( + - CAST ( NULL AS INTEGER ), 66, 89 ) AS col2
----
531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5150
SELECT ALL + COUNT( * ), + CAST( NULL AS SIGNED ) * - 54 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5150
SELECT ALL + COUNT ( * ), + CAST ( NULL AS INTEGER ) * - 54 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT + ( - COUNT( * ) ) + + 61 * - + 90
----
-5491

skipif mysql # not compatible
query I rowsort label-5151
SELECT + ( - COUNT ( * ) ) + + 61 * - + 90
----
-5491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5152
SELECT ALL 72 DIV - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL 72 / - COUNT ( * )
----
-72

query I rowsort
SELECT + ( - + 85 ) * - + ( + ( + 4 ) ) * + 61
----
20740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5154
SELECT ALL - COALESCE ( - 67, + - CAST( NULL AS SIGNED ) - - 4 ) DIV + - 87 * - - CASE + + COALESCE ( - CAST( NULL AS SIGNED ), + + 18 ) WHEN + - 9 THEN NULL ELSE - COUNT( * ) END
----
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - COALESCE ( - 67, + - CAST ( NULL AS INTEGER ) - - 4 ) / + - 87 * - - CASE + + COALESCE ( - CAST ( NULL AS INTEGER ), + + 18 ) WHEN + - 9 THEN NULL ELSE - COUNT ( * ) END
----
0

query I rowsort
SELECT + 85 - 17 AS col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT + 64, COUNT( * ) AS col0
----
64
1

skipif mysql # not compatible
query II rowsort label-5156
SELECT + 64, COUNT ( * ) AS col0
----
64
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5157
SELECT ALL 38 DIV 10
----
3

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL 38 / 10
----
3

query I rowsort
SELECT + - 0 * 27 AS col0
----
0

query I rowsort
SELECT - - ( - 88 ) + + - ( + + 75 )
----
-163

query I rowsort
SELECT + 91 + + 2 col0
----
93

query II rowsort
SELECT ALL 26 AS col0, + COALESCE ( + + 8, - 45 )
----
26
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - 57 * - - 84 + - - COUNT( * ) * + 23 * + CASE + 28 WHEN - 33 * 71 THEN - - COUNT( * ) / COALESCE ( + 18, + 91 ) END * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT - 57 * - - 84 + - - COUNT ( * ) * + 23 * + CASE + 28 WHEN - 33 * 71 THEN - - COUNT ( * ) / COALESCE ( + 18, + 91 ) END * - 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT ALL 27 * - 98 * + ( + - COALESCE ( 28, - - 3 ) ) + - CAST( NULL AS SIGNED ) + + ( 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL 27 * - 98 * + ( + - COALESCE ( 28, - - 3 ) ) + - CAST ( NULL AS INTEGER ) + + ( 16 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5164
SELECT - NULLIF ( + COALESCE ( 59, - - 70 * 42 ), + 98 - + - 43 ) + 46, + CASE + + 51 WHEN - - 15 THEN NULL WHEN - MAX( + - 4 ) - - + 91 + 24 + 68 * - COUNT( * ) * - 29 * - 70 THEN - COUNT( * ) + + 7 * + 74 END AS col1
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-5164
SELECT - NULLIF ( + COALESCE ( 59, - - 70 * 42 ), + 98 - + - 43 ) + 46, + CASE + + 51 WHEN - - 15 THEN NULL WHEN - MAX ( + - 4 ) - - + 91 + 24 + 68 * - COUNT ( * ) * - 29 * - 70 THEN - COUNT ( * ) + + 7 * + 74 END AS col1
----
-13
NULL

query I rowsort
SELECT - 24 * - + 32 AS col2
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT + 93 + - - COUNT( DISTINCT 75 )
----
94

skipif mysql # not compatible
query I rowsort label-5166
SELECT + 93 + - - COUNT ( DISTINCT 75 )
----
94

query I rowsort
SELECT 45 * 47 AS col2
----
2115

query I rowsort
SELECT 16 * - 28 col0
----
-448

query II rowsort
SELECT ALL 48 AS col0, ( + - 10 ) AS col1
----
48
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-5170
SELECT 35 DIV - + 6, 89 AS col2
----
-5
89

skipif mysql # not compatible
query II rowsort label-5170
SELECT 35 / - + 6, 89 AS col2
----
-5
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5171
SELECT 26 AS col0, 70 * + 40 * + + NULLIF ( + NULLIF ( - 56, + ( - + 0 ) / ( - + COUNT( * ) ) + - MAX( ALL + 10 ) ), 26 )
----
26
-156800

skipif mysql # not compatible
query II rowsort label-5171
SELECT 26 AS col0, 70 * + 40 * + + NULLIF ( + NULLIF ( - 56, + ( - + 0 ) / ( - + COUNT ( * ) ) + - MAX ( ALL + 10 ) ), 26 )
----
26
-156800

query II rowsort
SELECT - 10, 26 AS col2
----
-10
26

query I rowsort
SELECT 16 + + COALESCE ( 70, + 63 + + 43 ) + + ( - 44 ) * + + ( 94 )
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT 25 + COUNT( * ) - + 78 + + COUNT( 32 ) * 73
----
21

skipif mysql # not compatible
query I rowsort label-5174
SELECT 25 + COUNT ( * ) - + 78 + + COUNT ( 32 ) * 73
----
21

query I rowsort
SELECT 32 * - 78 AS col0
----
-2496

query I rowsort
SELECT 64 * - + 97 * - 53 + - NULLIF ( + 22, - 64 )
----
329002

query I rowsort
SELECT 70 * 24
----
1680

onlyif mysql # aggregate syntax: 
query II rowsort label-5178
SELECT 58 AS col1, COUNT( * ) + + 81
----
58
82

skipif mysql # not compatible
query II rowsort label-5178
SELECT 58 AS col1, COUNT ( * ) + + 81
----
58
82

query I rowsort
SELECT ALL + 28 - - 18 + - 0 AS col1
----
46

query I rowsort
SELECT + 94 * - 31 * 32 - + 78 AS col2
----
-93326

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL - CASE - COUNT( * ) WHEN - CASE - + 27 WHEN + 28 + + + ( + 57 ) * - 45 * + 98 THEN - 80 * + 88 * + - COUNT( * ) ELSE NULL END * - - 68 THEN - 97 + - - 44 + - 98 / - - ( 42 ) / - 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - CASE - COUNT ( * ) WHEN - CASE - + 27 WHEN + 28 + + + ( + 57 ) * - 45 * + 98 THEN - 80 * + 88 * + - COUNT ( * ) ELSE NULL END * - - 68 THEN - 97 + - - 44 + - 98 / - - ( 42 ) / - 72 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT DISTINCT - ( + - COUNT( * ) ) * 66 * + + 44
----
2904

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT - ( + - COUNT ( * ) ) * 66 * + + 44
----
2904

query II rowsort
SELECT + 36 AS col1, 64 AS col2
----
36
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5184
SELECT DISTINCT - COUNT( * ), CASE + 9 WHEN + 31 THEN NULL ELSE 62 END + - 74 * + 86 AS col0
----
-1
-6302

skipif mysql # not compatible
query II rowsort label-5184
SELECT DISTINCT - COUNT ( * ), CASE + 9 WHEN + 31 THEN NULL ELSE 62 END + - 74 * + 86 AS col0
----
-1
-6302

query I rowsort
SELECT ALL + 29 - - 72 AS col1
----
101

query I rowsort
SELECT DISTINCT - 47 col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5187
SELECT + CAST( NULL AS SIGNED ) * 84 * CASE - 67 WHEN + - 95 THEN + 37 * - 67 ELSE NULL END * COUNT( * ) + - - 53 + + COUNT( * ) * + 89 AS col2, + CASE + NULLIF ( - 47, + 85 ) WHEN CASE 11 WHEN - + CASE 79 WHEN + 46 THEN - 64 END THEN + 32 END THEN + 99 WHEN + 64 + + 91 * + 88 THEN COUNT( * ) * CAST( 25 AS SIGNED ) END * + 46
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5187
SELECT + CAST ( NULL AS INTEGER ) * 84 * CASE - 67 WHEN + - 95 THEN + 37 * - 67 ELSE NULL END * COUNT ( * ) + - - 53 + + COUNT ( * ) * + 89 AS col2, + CASE + NULLIF ( - 47, + 85 ) WHEN CASE 11 WHEN - + CASE 79 WHEN + 46 THEN - 64 END THEN + 32 END THEN + 99 WHEN + 64 + + 91 * + 88 THEN COUNT ( * ) * CAST ( 25 AS INTEGER ) END * + 46
----
NULL
NULL

query II rowsort
SELECT ALL - + 9, + 35 AS col0
----
-9
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5189
SELECT + 84 * 15 + - ( - - 77 ) - + 99 * - - CAST( NULL AS SIGNED ) * 10 * + + COUNT( - COALESCE ( + - 80, + - 96 + + 26 * - 66 - + 41 + - + 12 + 93 ) ) + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT + 84 * 15 + - ( - - 77 ) - + 99 * - - CAST ( NULL AS INTEGER ) * 10 * + + COUNT ( - COALESCE ( + - 80, + - 96 + + 26 * - 66 - + 41 + - + 12 + 93 ) ) + + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5190
SELECT + - CAST( + NULLIF ( + + 97, - NULLIF ( + 94, + 6 ) * - SUM( DISTINCT 37 ) / + + 49 ) AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-5190
SELECT + - CAST ( + NULLIF ( + + 97, - NULLIF ( + 94, + 6 ) * - SUM ( DISTINCT 37 ) / + + 49 ) AS INTEGER )
----
-97

query II rowsort
SELECT + 6 * + - 56 AS col2, 59 * + 31 + - 24 AS col0
----
-336
1805

query I rowsort
SELECT + 75 * 77 AS col2
----
5775

onlyif mysql # aggregate syntax: 
query II rowsort label-5193
SELECT ALL - + COUNT( * ) AS col1, + 78 col0
----
-1
78

skipif mysql # not compatible
query II rowsort label-5193
SELECT ALL - + COUNT ( * ) AS col1, + 78 col0
----
-1
78

query I rowsort
SELECT - 92 * - 34 + - 56 AS col2
----
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL - - SUM( ALL 45 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL - - SUM ( ALL 45 ) col0
----
45

query I rowsort
SELECT DISTINCT + + 21 * + - 39 * + 63 * 2 * + 74 * + 12
----
-91636272

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5197
SELECT + - 65 * 91 / COUNT( * ) * 13 * - + CAST( NULL AS DECIMAL ) + 58 + - 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT + - 65 * 91 / COUNT ( * ) * 13 * - + CAST ( NULL AS REAL ) + 58 + - 22 AS col1
----
NULL

query I rowsort
SELECT ALL - - 72 AS col0
----
72

query I rowsort
SELECT - COALESCE ( + 25, - + 47 * + 38 + - + 25 ) * 15
----
-375

query I rowsort
SELECT ALL 11 + + COALESCE ( - 7, - 81 ) * - 85
----
606

query I rowsort
SELECT 17 + + - 19 + + ( + 82 ) AS col0
----
80

query II rowsort
SELECT - 44, - 52 AS col0
----
-44
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT + NULLIF ( - 63, - 12 ) + 88 + + 1 + + 93 * + - COUNT( * ) * + 65 * 46
----
-278044

skipif mysql # not compatible
query I rowsort label-5203
SELECT + NULLIF ( - 63, - 12 ) + 88 + + 1 + + 93 * + - COUNT ( * ) * + 65 * 46
----
-278044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5204
SELECT CAST( NULL AS SIGNED ) * - COUNT( + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( + 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5205
SELECT + 82 + - 20, - 38 * - 64 * - MAX( DISTINCT - - 57 ) AS col2
----
62
-138624

skipif mysql # not compatible
query II rowsort label-5205
SELECT + 82 + - 20, - 38 * - 64 * - MAX ( DISTINCT - - 57 ) AS col2
----
62
-138624

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT + 91 * SUM( + 59 ) AS col0
----
5369

skipif mysql # not compatible
query I rowsort label-5206
SELECT + 91 * SUM ( + 59 ) AS col0
----
5369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5207
SELECT ALL CASE - 49 WHEN 48 THEN + 93 + 93 ELSE NULL END + - + 16 + + 5 + + - 30 * - - 18 * - CASE + 80 WHEN + - 62 + - 7 THEN - + MIN( ALL 89 ) * + 50 * - - 84 * + + 17 * + 20 * - + COALESCE ( - MIN( 24 ), COUNT( * ) + - 77 / 21 ) + 64 * - 74 + - 97 / 56 ELSE + CAST( NULL AS SIGNED ) END / - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL CASE - 49 WHEN 48 THEN + 93 + 93 ELSE NULL END + - + 16 + + 5 + + - 30 * - - 18 * - CASE + 80 WHEN + - 62 + - 7 THEN - + MIN ( ALL 89 ) * + 50 * - - 84 * + + 17 * + 20 * - + COALESCE ( - MIN ( 24 ), COUNT ( * ) + - 77 / 21 ) + 64 * - 74 + - 97 / 56 ELSE + CAST ( NULL AS INTEGER ) END / - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT - 31 + + - 49 + + COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-5208
SELECT - 31 + + - 49 + + COUNT ( * ) AS col0
----
-79

query I rowsort
SELECT 86 + + + 5 + 93 AS col1
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT DISTINCT COUNT( * ) + + SUM( + 87 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT COUNT ( * ) + + SUM ( + 87 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5211
SELECT COALESCE ( CASE - 16 WHEN COUNT( * ) + + + 53 + - ( - - COUNT( * ) ) THEN NULL ELSE + SUM( DISTINCT 25 ) END, + CAST( + + 61 AS SIGNED ) + ( 55 ) * - CAST( NULL AS SIGNED ) ) + 95, 49 AS col1
----
120
49

skipif mysql # not compatible
query II rowsort label-5211
SELECT COALESCE ( CASE - 16 WHEN COUNT ( * ) + + + 53 + - ( - - COUNT ( * ) ) THEN NULL ELSE + SUM ( DISTINCT 25 ) END, + CAST ( + + 61 AS INTEGER ) + ( 55 ) * - CAST ( NULL AS INTEGER ) ) + 95, 49 AS col1
----
120
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5212
SELECT COUNT( * ) * + 33, 79 DIV + + 63 + - 40 AS col1
----
33
-39

skipif mysql # not compatible
query II rowsort label-5212
SELECT COUNT ( * ) * + 33, 79 / + + 63 + - 40 AS col1
----
33
-39

query I rowsort
SELECT ALL + 60 - + - COALESCE ( 12, - 95 - + - 28 + + 74 )
----
72

query I rowsort
SELECT ( 62 ) * - + 47
----
-2914

query I rowsort
SELECT 51 + 14 + - ( 16 ) col1
----
49

query II rowsort
SELECT 67 * + 72, + 83 AS col1
----
4824
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5217
SELECT DISTINCT + 42 DIV 70 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT + 42 / 70 * - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5218
SELECT 79 * COUNT( * ), 50 * + 89 * + ( + 58 ) * COUNT( * ) AS col0
----
79
258100

skipif mysql # not compatible
query II rowsort label-5218
SELECT 79 * COUNT ( * ), 50 * + 89 * + ( + 58 ) * COUNT ( * ) AS col0
----
79
258100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5219
SELECT 86 DIV + 74 col0, - ( + COUNT( * ) ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-5219
SELECT 86 / + 74 col0, - ( + COUNT ( * ) ) AS col0
----
1
-1

query I rowsort
SELECT ALL + 24 * + + 74 col1
----
1776

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT + 37 + - 40 + - 24 * COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-5221
SELECT + 37 + - 40 + - 24 * COUNT ( * ) AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT DISTINCT - 47 * NULLIF ( + 94, CAST( NULL AS SIGNED ) * - 19 / + ( + 15 ) )
----
-4418

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT - 47 * NULLIF ( + 94, CAST ( NULL AS INTEGER ) * - 19 / + ( + 15 ) )
----
-4418

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT - ( - + 23 ) DIV + 15 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5223
SELECT - ( - + 23 ) / + 15 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL + COALESCE ( - 85, + COUNT( * ) * + - 57 + - 81 + + + 44 ) * - + 27 * - + 48
----
-110160

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL + COALESCE ( - 85, + COUNT ( * ) * + - 57 + - 81 + + + 44 ) * - + 27 * - + 48
----
-110160

query I rowsort
SELECT DISTINCT + 34 AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5226
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - 64 col2, 95 - - - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5226
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 64 col2, 95 - - - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5227
SELECT DISTINCT - + CASE - + 63 WHEN + + CAST( - COUNT( ALL 93 ) AS SIGNED ) + - COUNT( * ) THEN - + 78 WHEN 72 * + 54 THEN NULL ELSE + CAST( 56 AS SIGNED ) END * - 65 + + 43
----
3683

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - + CASE - + 63 WHEN + + CAST ( - COUNT ( ALL 93 ) AS INTEGER ) + - COUNT ( * ) THEN - + 78 WHEN 72 * + 54 THEN NULL ELSE + CAST ( 56 AS INTEGER ) END * - 65 + + 43
----
3683

query I rowsort
SELECT - 30 * + 18 AS col0
----
-540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5229
SELECT ALL 68 * 46 + 98 + - COUNT( * ) + + 91 + SUM( ALL + - 84 ) DIV - - 41 + + 72 AS col0
----
3386

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL 68 * 46 + 98 + - COUNT ( * ) + + 91 + SUM ( ALL + - 84 ) / - - 41 + + 72 AS col0
----
3386

query I rowsort
SELECT DISTINCT + - 5 AS col2
----
-5

query I rowsort
SELECT - + ( COALESCE ( - ( 27 ), - - 63 ) ) * + 47
----
1269

query I rowsort
SELECT - - 73 - 8 * - - 68 AS col2
----
-471

query I rowsort
SELECT ALL + + 23 AS col0
----
23

query I rowsort
SELECT + 76 + - 28 * + 86
----
-2332

query I rowsort
SELECT ALL 50 + - - 36 AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5236
SELECT + - 15 DIV - - COUNT( * ) + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-5236
SELECT + - 15 / - - COUNT ( * ) + - COUNT ( * )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5237
SELECT ALL + 10 + - 4 + + NULLIF ( + 68, 35 - + - 38 * + + SUM( + 9 ) ) * + SUM( ALL - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + 10 + - 4 + + NULLIF ( + 68, 35 - + - 38 * + + SUM ( + 9 ) ) * + SUM ( ALL - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( - 6 )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT - 68 DIV + COALESCE ( + + 82, - 65 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT - 68 / + COALESCE ( + + 82, - 65 ) AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5240
SELECT + 38 - - 10 + CAST( NULL AS DECIMAL ) * + 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT + 38 - - 10 + CAST ( NULL AS REAL ) * + 80 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT - MIN( ALL 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-5241
SELECT - MIN ( ALL 43 )
----
-43

query I rowsort
SELECT DISTINCT 26 * + + 73
----
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - COALESCE ( - + 81, - MAX( ALL + + 84 ) + + ( + 30 ), 32 * 69 )
----
81

skipif mysql # not compatible
query I rowsort label-5243
SELECT - COALESCE ( - + 81, - MAX ( ALL + + 84 ) + + ( + 30 ), 32 * 69 )
----
81

query II rowsort
SELECT ALL 21 AS col2, 30 AS col1
----
21
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL MIN( ALL + - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL MIN ( ALL + - 19 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT + ( - - 18 ) * 91 DIV - 96 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5246
SELECT + ( - - 18 ) * 91 / - 96 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT DISTINCT 90 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT 90 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT + 54 + - 75 * + COUNT( - - 54 ) * 1 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5248
SELECT + 54 + - 75 * + COUNT ( - - 54 ) * 1 AS col0
----
-21

query I rowsort
SELECT ALL 25 * 84 * + 39 AS col2
----
81900

query I rowsort
SELECT + NULLIF ( 64, - - 94 ) + 74
----
138

query II rowsort
SELECT + 87 AS col0, 59 AS col2
----
87
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5252
SELECT ALL + 26 DIV + + 75
----
0

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL + 26 / + + 75
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5253
SELECT + - CAST( NULL AS DECIMAL ) * CASE + ( - 14 ) WHEN - + 56 * 54 - - CASE 2 WHEN - 30 + - 29 + - 54 * + MAX( 93 ) + COUNT( * ) + + + 8 * - CAST( - 7 AS DECIMAL ) * - 53 * NULLIF ( + ( - - 87 ), - 75 + - 19 * 75 ) * + 54 THEN + 52 WHEN - 96 + 41 THEN 58 END + 39 / 83 THEN 65 * + COALESCE ( - 39, 85, 50 - 2 ) WHEN + 72 THEN NULL ELSE + COUNT( * ) * COALESCE ( COUNT( * ), 86 ) END + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT + - CAST ( NULL AS REAL ) * CASE + ( - 14 ) WHEN - + 56 * 54 - - CASE 2 WHEN - 30 + - 29 + - 54 * + MAX ( 93 ) + COUNT ( * ) + + + 8 * - CAST ( - 7 AS REAL ) * - 53 * NULLIF ( + ( - - 87 ), - 75 + - 19 * 75 ) * + 54 THEN + 52 WHEN - 96 + 41 THEN 58 END + 39 / 83 THEN 65 * + COALESCE ( - 39, 85, 50 - 2 ) WHEN + 72 THEN NULL ELSE + COUNT ( * ) * COALESCE ( COUNT ( * ), 86 ) END + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT DISTINCT 79 * - 90 * + + 55 * - COUNT( * ) + - + 95 AS col1
----
390955

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT 79 * - 90 * + + 55 * - COUNT ( * ) + - + 95 AS col1
----
390955

query II rowsort
SELECT ALL + + 71 AS col2, + ( 49 )
----
71
49

onlyif mysql # aggregate syntax: 
query III rowsort label-5256
SELECT + + ( - SUM( DISTINCT + 0 ) ) AS col2, 78, - 65 col0
----
0
78
-65

skipif mysql # not compatible
query III rowsort label-5256
SELECT + + ( - SUM ( DISTINCT + 0 ) ) AS col2, 78, - 65 col0
----
0
78
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT - + 88 + + NULLIF ( + - 31, + 5 + NULLIF ( + 22, - 60 * - + AVG ( + 48 ) + - 73 * COALESCE ( - 36, - + COALESCE ( - + 18, 5 ) + COUNT( * ) ) ) + + 91 )
----
-119

skipif mysql # not compatible
query I rowsort label-5257
SELECT - + 88 + + NULLIF ( + - 31, + 5 + NULLIF ( + 22, - 60 * - + AVG ( + 48 ) + - 73 * COALESCE ( - 36, - + COALESCE ( - + 18, 5 ) + COUNT ( * ) ) ) + + 91 )
----
-119

query I rowsort
SELECT ALL - 77 * 86
----
-6622

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT + 63 DIV + ( 23 )
----
2

skipif mysql # not compatible
query I rowsort label-5259
SELECT + 63 / + ( 23 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT + + 28 * - 6 - 42 + + 73 + + 73 * + 25 + + 9 + 29 + - + COUNT( * ) * - 39 AS col2
----
1765

skipif mysql # not compatible
query I rowsort label-5260
SELECT + + 28 * - 6 - 42 + + 73 + + 73 * + 25 + + 9 + 29 + - + COUNT ( * ) * - 39 AS col2
----
1765

query I rowsort
SELECT + 77 * - + 6 AS col2
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT COUNT( * ) * 69 - - 97 AS col2
----
166

skipif mysql # not compatible
query I rowsort label-5262
SELECT COUNT ( * ) * 69 - - 97 AS col2
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT 34, COUNT( * ) AS col1
----
34
1

skipif mysql # not compatible
query II rowsort label-5263
SELECT 34, COUNT ( * ) AS col1
----
34
1

query I rowsort
SELECT ALL + COALESCE ( + - 29, + 13 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT DISTINCT + + COALESCE ( - 32, + 87 + + 90, + 57 ) * COUNT( * ) * - + 14 + + - 28 - - 19
----
439

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT + + COALESCE ( - 32, + 87 + + 90, + 57 ) * COUNT ( * ) * - + 14 + + - 28 - - 19
----
439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5266
SELECT - - NULLIF ( - + 27, MAX( DISTINCT + - 30 ) * 83 ) * + 22 + + 56 - + + 95 / - 96 + 59 * 0 * - CAST( - COUNT( * ) AS SIGNED ) * - 62 + - CAST( NULL AS SIGNED ) / + 20 + + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT - - NULLIF ( - + 27, MAX ( DISTINCT + - 30 ) * 83 ) * + 22 + + 56 - + + 95 / - 96 + 59 * 0 * - CAST ( - COUNT ( * ) AS INTEGER ) * - 62 + - CAST ( NULL AS INTEGER ) / + 20 + + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5267
SELECT ALL + 28, + CASE + 48 WHEN + ( + 84 ) THEN + 34 / + 71 + 35 WHEN 19 THEN NULL ELSE COUNT( * ) * - 80 + 78 END AS col1
----
28
-2

skipif mysql # not compatible
query II rowsort label-5267
SELECT ALL + 28, + CASE + 48 WHEN + ( + 84 ) THEN + 34 / + 71 + 35 WHEN 19 THEN NULL ELSE COUNT ( * ) * - 80 + 78 END AS col1
----
28
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT SUM( DISTINCT + 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5268
SELECT SUM ( DISTINCT + 76 ) AS col2
----
76

query I rowsort
SELECT ALL ( - - 86 )
----
86

query I rowsort
SELECT - 68 + - + 27 - + 70 AS col0
----
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5271
SELECT - 74 - COALESCE ( + 0, + 3 DIV - + COUNT( * ) DIV - + 92 ) + - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5271
SELECT - 74 - COALESCE ( + 0, + 3 / - + COUNT ( * ) / - + 92 ) + - COUNT ( * ) AS col2
----
-75

query I rowsort
SELECT - 44 + ( 25 ) AS col2
----
-19

query I rowsort
SELECT - 97 * + 92
----
-8924

query I rowsort
SELECT DISTINCT ( - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT - MAX( ALL + 28 ) + + 82
----
54

skipif mysql # not compatible
query I rowsort label-5275
SELECT - MAX ( ALL + 28 ) + + 82
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT + 67 + + - 94 * COUNT( * ) * + - 49
----
4673

skipif mysql # not compatible
query I rowsort label-5276
SELECT + 67 + + - 94 * COUNT ( * ) * + - 49
----
4673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5277
SELECT + ( - CASE + 21 WHEN + 47 THEN COALESCE ( + 41, - COUNT( * ) * - 27 ) * 32 DIV + + AVG ( + 75 ) * - 38 WHEN COUNT( * ) + + + 82 THEN NULL ELSE - 39 * - - 36 + + ( COUNT( * ) ) END ) + - 85
----
1318

skipif mysql # not compatible
query I rowsort label-5277
SELECT + ( - CASE + 21 WHEN + 47 THEN COALESCE ( + 41, - COUNT ( * ) * - 27 ) * 32 / + + AVG ( + 75 ) * - 38 WHEN COUNT ( * ) + + + 82 THEN NULL ELSE - 39 * - - 36 + + ( COUNT ( * ) ) END ) + - 85
----
1318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5278
SELECT - 31 * - + 4, CAST( 29 AS SIGNED ) * + COUNT( * ) AS col0
----
124
29

skipif mysql # not compatible
query II rowsort label-5278
SELECT - 31 * - + 4, CAST ( 29 AS INTEGER ) * + COUNT ( * ) AS col0
----
124
29

query I rowsort
SELECT 95 + - 34
----
61

query I rowsort
SELECT ALL - 7 + 37 AS col1
----
30

query I rowsort
SELECT DISTINCT + 52 + - 75
----
-23

query I rowsort
SELECT ALL + 97 + - ( + 72 ) * - + 55 AS col0
----
4057

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT ALL - 86 + + 23 * + + CAST( + - 95 AS SIGNED ) AS col0
----
-2271

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL - 86 + + 23 * + + CAST ( + - 95 AS INTEGER ) AS col0
----
-2271

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT ( - - MAX( ALL 23 ) )
----
23

skipif mysql # not compatible
query I rowsort label-5284
SELECT ( - - MAX ( ALL 23 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL - - ( + SUM( ALL 26 ) )
----
26

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - - ( + SUM ( ALL 26 ) )
----
26

query I rowsort
SELECT ALL 82 + + ( - 58 ) col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT + 3 + - 46 + 24 + 10 + + 32 * - - ( ( + 10 ) ) * AVG ( ALL 70 ) + CASE COUNT( * ) WHEN + 61 + - 66 * + 24 / + - 26 THEN - 14 END * + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT + 3 + - 46 + 24 + 10 + + 32 * - - ( ( + 10 ) ) * AVG ( ALL 70 ) + CASE COUNT ( * ) WHEN + 61 + - 66 * + 24 / + - 26 THEN - 14 END * + + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT COUNT( DISTINCT - - 18 ) * + 32 col0
----
32

skipif mysql # not compatible
query I rowsort label-5288
SELECT COUNT ( DISTINCT - - 18 ) * + 32 col0
----
32

query I rowsort
SELECT - 10 + - 71 * - + 31 * - + 1 AS col1
----
-2211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5290
SELECT ALL + CAST( NULL AS SIGNED ) - + COUNT( + + 94 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( + + 94 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT DISTINCT - COALESCE ( COUNT( * ), - COUNT( * ) + - CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT - COALESCE ( COUNT ( * ), - COUNT ( * ) + - CAST ( NULL AS INTEGER ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT ALL 94 DIV + 57
----
1

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL 94 / + 57
----
1

query I rowsort
SELECT + + 17 AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5294
SELECT 33 + + COUNT( * ) * 48 * 85 * 22 / 30 * - CASE - + 43 WHEN + CAST( - COUNT( + 48 ) AS DECIMAL ) THEN NULL WHEN + - ( COUNT( * ) ) / - + COUNT( * ) THEN 29 + - 89 WHEN + 65 + 33 THEN + 51 WHEN - SUM( DISTINCT - 41 ) THEN NULL END - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT 33 + + COUNT ( * ) * 48 * 85 * 22 / 30 * - CASE - + 43 WHEN + CAST ( - COUNT ( + 48 ) AS REAL ) THEN NULL WHEN + - ( COUNT ( * ) ) / - + COUNT ( * ) THEN 29 + - 89 WHEN + 65 + 33 THEN + 51 WHEN - SUM ( DISTINCT - 41 ) THEN NULL END - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT COUNT( * ) * - 2 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5295
SELECT COUNT ( * ) * - 2 AS col2
----
-2

query I rowsort
SELECT ALL + 73 * 99 col0
----
7227

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT 44 DIV + - 70
----
0

skipif mysql # not compatible
query I rowsort label-5297
SELECT 44 / + - 70
----
0

query I rowsort
SELECT DISTINCT 62 * - + 28 col1
----
-1736

query I rowsort
SELECT ALL NULLIF ( - + 39, + 60 ) * - ( 42 )
----
1638

query I rowsort
SELECT 79 * - 75 AS col1
----
-5925

onlyif mysql # aggregate syntax: 
query II rowsort label-5301
SELECT 13 AS col0, COUNT( * )
----
13
1

skipif mysql # not compatible
query II rowsort label-5301
SELECT 13 AS col0, COUNT ( * )
----
13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT 69 * COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5302
SELECT 69 * COUNT ( * ) AS col2
----
69

query I rowsort
SELECT 76 - - - 88 col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5304
SELECT DISTINCT - 93 * 89 * 21 * SUM( ALL + 20 ) AS col1, COUNT( * ) - 25
----
-3476340
-24

skipif mysql # not compatible
query II rowsort label-5304
SELECT DISTINCT - 93 * 89 * 21 * SUM ( ALL + 20 ) AS col1, COUNT ( * ) - 25
----
-3476340
-24

query I rowsort
SELECT ALL + COALESCE ( 73, 76, + 79 ) + + ( - 37 ) + - - 61 AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5306
SELECT - 85 AS col0, - COUNT( * )
----
-85
-1

skipif mysql # not compatible
query II rowsort label-5306
SELECT - 85 AS col0, - COUNT ( * )
----
-85
-1

query I rowsort
SELECT ALL + 66 + 41
----
107

query I rowsort
SELECT ALL - 11 * - - 92
----
-1012

query I rowsort
SELECT 95 * - 25
----
-2375

onlyif mysql # aggregate syntax: 
query II rowsort label-5310
SELECT DISTINCT - - NULLIF ( 35, - - 25 ) * + MIN( ALL - 34 ) AS col1, + NULLIF ( + - 97, - + 26 + - 77 - + 94 * + 91 )
----
-1190
-97

skipif mysql # not compatible
query II rowsort label-5310
SELECT DISTINCT - - NULLIF ( 35, - - 25 ) * + MIN ( ALL - 34 ) AS col1, + NULLIF ( + - 97, - + 26 + - 77 - + 94 * + 91 )
----
-1190
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL + 40 + - - ( + - 1 ) - + ( - - 67 ) + - 90 * 83 - - COUNT( * ) * + - 5 AS col0
----
-7503

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + 40 + - - ( + - 1 ) - + ( - - 67 ) + - 90 * 83 - - COUNT ( * ) * + - 5 AS col0
----
-7503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5312
SELECT CASE + ( 19 ) WHEN - CAST( NULLIF ( + 15, - 19 - 61 ) AS SIGNED ) THEN - 82 ELSE - - 24 * + 80 - ( ( - MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) ) ) * - + 68 * - 26 / + 83 + - 12 - + + COUNT( * ) - + 11 * + 54 * - 85 * - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT CASE + ( 19 ) WHEN - CAST ( NULLIF ( + 15, - 19 - 61 ) AS INTEGER ) THEN - 82 ELSE - - 24 * + 80 - ( ( - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) ) * - + 68 * - 26 / + 83 + - 12 - + + COUNT ( * ) - + 11 * + 54 * - 85 * - 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5313
SELECT - 46, - COUNT( * ) col1
----
-46
-1

skipif mysql # not compatible
query II rowsort label-5313
SELECT - 46, - COUNT ( * ) col1
----
-46
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT COUNT( * ) + - 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5314
SELECT COUNT ( * ) + - 1 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT + 50 + + COUNT( * ) + + - 36 * + 34 + - 7 * + + 8 * COUNT( * )
----
-1229

skipif mysql # not compatible
query I rowsort label-5315
SELECT + 50 + + COUNT ( * ) + + - 36 * + 34 + - 7 * + + 8 * COUNT ( * )
----
-1229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5316
SELECT - + 5 * 81 DIV + + 34 + 47 * - ( + + CAST( + 51 AS SIGNED ) ) * - 80 * + - 37 + + 93, + COALESCE ( - + COALESCE ( - 24, - + 96 ), + + 65 ) + + MAX( DISTINCT - 42 ) AS col1
----
-7095038
-18

skipif mysql # not compatible
query II rowsort label-5316
SELECT - + 5 * 81 / + + 34 + 47 * - ( + + CAST ( + 51 AS INTEGER ) ) * - 80 * + - 37 + + 93, + COALESCE ( - + COALESCE ( - 24, - + 96 ), + + 65 ) + + MAX ( DISTINCT - 42 ) AS col1
----
-7095038
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5317
SELECT + COUNT( * ) DIV 92 + + + COUNT( * ) * - 33
----
-33

skipif mysql # not compatible
query I rowsort label-5317
SELECT + COUNT ( * ) / 92 + + + COUNT ( * ) * - 33
----
-33

query I rowsort
SELECT ALL 12 * - 86
----
-1032

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT ALL - 25 - + SUM( + - 69 ) * - - 7 AS col0
----
458

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL - 25 - + SUM ( + - 69 ) * - - 7 AS col0
----
458

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT + 65 * COUNT( * ) - + - 60 + COALESCE ( + + COALESCE ( - - COUNT( * ), - 95 * + - COALESCE ( 81, + 72, - + 31 + - - ( + 17 ) ) DIV + + 74 + - + 12 DIV 98 * + 65 + - COALESCE ( + - 97, - 74 + + 41, + + 96 ) ), + 9, - 56 ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-5320
SELECT + 65 * COUNT ( * ) - + - 60 + COALESCE ( + + COALESCE ( - - COUNT ( * ), - 95 * + - COALESCE ( 81, + 72, - + 31 + - - ( + 17 ) ) / + + 74 + - + 12 / 98 * + 65 + - COALESCE ( + - 97, - 74 + + 41, + + 96 ) ), + 9, - 56 ) AS col0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5321
SELECT - 99 + - 60 * + ( CAST( + AVG ( ALL + 42 ) AS SIGNED ) ) AS col2
----
-2619

skipif mysql # not compatible
query I rowsort label-5321
SELECT - 99 + - 60 * + ( CAST ( + AVG ( ALL + 42 ) AS INTEGER ) ) AS col2
----
-2619

query I rowsort
SELECT DISTINCT - + 73 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL 82 * + - 72 + + - 86 * - - 69 - - - MAX( DISTINCT + - 69 ) AS col2
----
-11769

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL 82 * + - 72 + + - 86 * - - 69 - - - MAX ( DISTINCT + - 69 ) AS col2
----
-11769

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5324
SELECT MIN( DISTINCT + + 92 ) * + 20 DIV - + 1 AS col1
----
-1840

skipif mysql # not compatible
query I rowsort label-5324
SELECT MIN ( DISTINCT + + 92 ) * + 20 / - + 1 AS col1
----
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT - CASE WHEN NOT - 80 IS NOT NULL THEN - - COUNT( * ) ELSE NULL END / + SUM( DISTINCT + 29 ) + 75 + - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT - CASE WHEN NOT - 80 IS NOT NULL THEN - - COUNT ( * ) ELSE NULL END / + SUM ( DISTINCT + 29 ) + 75 + - - 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5326
SELECT + SUM( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT + 90 * MIN( ALL - - 61 ) * + - 83 + - - ( - 80 ) AS col2
----
-455750

skipif mysql # not compatible
query I rowsort label-5327
SELECT + 90 * MIN ( ALL - - 61 ) * + - 83 + - - ( - 80 ) AS col2
----
-455750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5328
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, - 82 * + 85 * + + 4 * + + 95
----
NULL
-2648600

skipif mysql # not compatible
query II rowsort label-5328
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, - 82 * + 85 * + + 4 * + + 95
----
NULL
-2648600

query I rowsort
SELECT 78 * + 86 col0
----
6708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5330
SELECT MAX( ALL - 37 ) * + - CASE - 2 WHEN - AVG ( ALL 93 ) + - 33 THEN + + 35 + - 5 + 95 - 17 WHEN COALESCE ( + - MAX( DISTINCT - + 39 ), + + 67 ) THEN NULL ELSE + - ( + 5 ) END + + COALESCE ( CASE - 48 WHEN - CAST( + 25 AS SIGNED ) THEN NULL WHEN - - ( 56 ) THEN + 83 * - - 17 WHEN 6 + - 4 THEN NULL ELSE ( + 33 ) + CAST( NULL AS SIGNED ) END, 21 ) AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-5330
SELECT MAX ( ALL - 37 ) * + - CASE - 2 WHEN - AVG ( ALL 93 ) + - 33 THEN + + 35 + - 5 + 95 - 17 WHEN COALESCE ( + - MAX ( DISTINCT - + 39 ), + + 67 ) THEN NULL ELSE + - ( + 5 ) END + + COALESCE ( CASE - 48 WHEN - CAST ( + 25 AS INTEGER ) THEN NULL WHEN - - ( 56 ) THEN + 83 * - - 17 WHEN 6 + - 4 THEN NULL ELSE ( + 33 ) + CAST ( NULL AS INTEGER ) END, 21 ) AS col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT DISTINCT COUNT( * ) * - - 68 * - - 89 * - 17
----
-102884

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT COUNT ( * ) * - - 68 * - - 89 * - 17
----
-102884

onlyif mysql # aggregate syntax: 
query III rowsort label-5332
SELECT 75 AS col0, + 19 col2, + - COUNT( * ) AS col0
----
75
19
-1

skipif mysql # not compatible
query III rowsort label-5332
SELECT 75 AS col0, + 19 col2, + - COUNT ( * ) AS col0
----
75
19
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5333
SELECT DISTINCT - 93, 17 - 34 * + 31 * + NULLIF ( - CAST( 33 AS SIGNED ), + - COUNT( * ) * + + CAST( 93 AS DECIMAL ) + 61 * + + COUNT( * ) ) + 17 + 94 DIV - COUNT( - - 48 ) - - 0 AS col1
----
-93
34722

skipif mysql # not compatible
query II rowsort label-5333
SELECT DISTINCT - 93, 17 - 34 * + 31 * + NULLIF ( - CAST ( 33 AS INTEGER ), + - COUNT ( * ) * + + CAST ( 93 AS REAL ) + 61 * + + COUNT ( * ) ) + 17 + 94 / - COUNT ( - - 48 ) - - 0 AS col1
----
-93
34722

query I rowsort
SELECT DISTINCT + 96 * + ( 58 )
----
5568

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT DISTINCT 32 DIV - 27 col1
----
-1

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT 32 / - 27 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT - MIN( - - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5336
SELECT - MIN ( - - 77 ) AS col2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5337
SELECT ( + - 99 ) DIV - 43 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5337
SELECT ( + - 99 ) / - 43 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5338
SELECT 86 - + COUNT( * ) col2, + 51 + + + COUNT( * ) col1
----
85
52

skipif mysql # not compatible
query II rowsort label-5338
SELECT 86 - + COUNT ( * ) col2, + 51 + + + COUNT ( * ) col1
----
85
52

query I rowsort
SELECT DISTINCT 67 * + + 60 AS col0
----
4020

query I rowsort
SELECT + 31 + + 37
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5341
SELECT ALL + 79 * + COUNT( * ) AS col0, - 51
----
79
-51

skipif mysql # not compatible
query II rowsort label-5341
SELECT ALL + 79 * + COUNT ( * ) AS col0, - 51
----
79
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5342
SELECT + NULLIF ( + 26, - COUNT( * ) ) / + 9 * CAST( NULL AS SIGNED ) + + 10 + - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT + NULLIF ( + 26, - COUNT ( * ) ) / + 9 * CAST ( NULL AS INTEGER ) + + 10 + - + 15
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5343
SELECT - 13 DIV 67 AS col1, 41 DIV 66 * + - 8 * + - 15
----
0
0

skipif mysql # not compatible
query II rowsort label-5343
SELECT - 13 / 67 AS col1, 41 / 66 * + - 8 * + - 15
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5344
SELECT ALL - NULLIF ( + + 56, - CASE - COUNT( * ) WHEN - 84 * + CAST( NULL AS DECIMAL ) THEN NULL WHEN - 99 THEN - + 94 + ( 91 ) END ) + + MIN( DISTINCT - 79 ) - - 57 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL - NULLIF ( + + 56, - CASE - COUNT ( * ) WHEN - 84 * + CAST ( NULL AS REAL ) THEN NULL WHEN - 99 THEN - + 94 + ( 91 ) END ) + + MIN ( DISTINCT - 79 ) - - 57 AS col1
----
-78

query I rowsort
SELECT + 1 + + 43
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5346
SELECT DISTINCT 25 + - COALESCE ( - + 62, - AVG ( ALL + ( - + 59 ) ) DIV + COUNT( - 66 ), - 98 * + COALESCE ( + COUNT( * ), - 83 + + 18 * - 78, + 26 * - 3 * + + 98 ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT 25 + - COALESCE ( - + 62, - AVG ( ALL + ( - + 59 ) ) / + COUNT ( - 66 ), - 98 * + COALESCE ( + COUNT ( * ), - 83 + + 18 * - 78, + 26 * - 3 * + + 98 ) ) AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5347
SELECT ALL + ( + 96 ) + 91 + - 61 AS col2, - ( - + 7 ) * - 29 - - CAST( - 74 AS SIGNED )
----
126
-277

skipif mysql # not compatible
query II rowsort label-5347
SELECT ALL + ( + 96 ) + 91 + - 61 AS col2, - ( - + 7 ) * - 29 - - CAST ( - 74 AS INTEGER )
----
126
-277

query I rowsort
SELECT ALL COALESCE ( + - 23, - 28 * 82 * + + 39, 17 ) col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT - 54 + - COUNT( * ) + - + 34 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-5349
SELECT - 54 + - COUNT ( * ) + - + 34 AS col1
----
-89

query I rowsort
SELECT ALL - 7 + - 60 * + 53 * + 68
----
-216247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5351
SELECT DISTINCT + - 47 + - COUNT( * ) / + CAST( + - 27 AS SIGNED ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT + - 47 + - COUNT ( * ) / + CAST ( + - 27 AS INTEGER ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT DISTINCT - 37 + + 10 * + ( - 27 ) + COUNT( * )
----
-306

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT - 37 + + 10 * + ( - 27 ) + COUNT ( * )
----
-306

onlyif mysql # aggregate syntax: 
query II rowsort label-5353
SELECT - MAX( - 78 ), COUNT( * ) AS col0
----
78
1

skipif mysql # not compatible
query II rowsort label-5353
SELECT - MAX ( - 78 ), COUNT ( * ) AS col0
----
78
1

query I rowsort
SELECT - + 9 + 96
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT - 43 * - + COUNT( * ) - NULLIF ( + - 53, - + 86 )
----
96

skipif mysql # not compatible
query I rowsort label-5355
SELECT - 43 * - + COUNT ( * ) - NULLIF ( + - 53, - + 86 )
----
96

query I rowsort
SELECT - - 34 + - ( 34 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT DISTINCT + 76 - + - ( 45 ) + - 93 * COUNT( * ) * - - 17 + + 1 col1
----
-1459

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT + 76 - + - ( 45 ) + - 93 * COUNT ( * ) * - - 17 + + 1 col1
----
-1459

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT ALL + COUNT( * ) * - 50
----
-50

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + COUNT ( * ) * - 50
----
-50

query II rowsort
SELECT DISTINCT - 3, - 29 col2
----
-3
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT + - 92 * COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT + - 92 * COUNT ( * ) AS col1
----
-92

query I rowsort
SELECT ALL + + ( + NULLIF ( - 62, 6 * - 7 ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT COUNT( + + 20 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5362
SELECT COUNT ( + + 20 ) AS col1
----
1

query II rowsort
SELECT ALL + 65 AS col1, + 67 col2
----
65
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5364
SELECT ALL + CASE - 6 WHEN + 59 + - NULLIF ( 63, + 9 + + + 77 ) + - COUNT( * ) - - + 91 - 38 THEN NULL ELSE - CASE - + 96 WHEN + CAST( NULL AS SIGNED ) THEN + 35 ELSE NULL END END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL + CASE - 6 WHEN + 59 + - NULLIF ( 63, + 9 + + + 77 ) + - COUNT ( * ) - - + 91 - 38 THEN NULL ELSE - CASE - + 96 WHEN + CAST ( NULL AS INTEGER ) THEN + 35 ELSE NULL END END * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT - COUNT( * ) + - 22
----
-23

skipif mysql # not compatible
query I rowsort label-5365
SELECT - COUNT ( * ) + - 22
----
-23

query I rowsort
SELECT DISTINCT + 42 col1
----
42

query I rowsort
SELECT + ( 2 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT - COUNT( * ) AS col1, 24 + - - ( - - 16 ) col1
----
-1
40

skipif mysql # not compatible
query II rowsort label-5368
SELECT - COUNT ( * ) AS col1, 24 + - - ( - - 16 ) col1
----
-1
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT + ( - 96 ) * + - 38 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT + ( - 96 ) * + - 38 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5370
SELECT ALL COUNT( * ) DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL COUNT ( * ) / + 21
----
0

query I rowsort
SELECT DISTINCT + 21 AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5372
SELECT 1 * - - 28 + 60 * - CASE 38 WHEN ( - CAST( NULL AS SIGNED ) ) THEN - + 75 + - CAST( NULL AS DECIMAL ) END * + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT 1 * - - 28 + 60 * - CASE 38 WHEN ( - CAST ( NULL AS INTEGER ) ) THEN - + 75 + - CAST ( NULL AS REAL ) END * + 95 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5373
SELECT ALL + CAST( NULL AS SIGNED ) / + + ( - - 40 ) * - ( - 99 ) * ( + + 25 ) * + COUNT( ALL - - 61 ) + + 91 * - + 98 + - 19 + AVG ( ALL - 19 ) + + 0 * + + 30 * - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + CAST ( NULL AS INTEGER ) / + + ( - - 40 ) * - ( - 99 ) * ( + + 25 ) * + COUNT ( ALL - - 61 ) + + 91 * - + 98 + - 19 + AVG ( ALL - 19 ) + + 0 * + + 30 * - + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL + 10 * 82 + + CASE COUNT( * ) WHEN 46 * 81 * 30 + + COUNT( * ) THEN - + COALESCE ( - MIN( + - 91 ), + 14 + + 65 + - 90 ) + 11 WHEN + COUNT( * ) THEN 83 ELSE - 0 * 28 END - + 53 + - 81 * + - 31 * - 94 + + SUM( + + 74 ) * - 1
----
-235258

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + 10 * 82 + + CASE COUNT ( * ) WHEN 46 * 81 * 30 + + COUNT ( * ) THEN - + COALESCE ( - MIN ( + - 91 ), + 14 + + 65 + - 90 ) + 11 WHEN + COUNT ( * ) THEN 83 ELSE - 0 * 28 END - + 53 + - 81 * + - 31 * - 94 + + SUM ( + + 74 ) * - 1
----
-235258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5375
SELECT + SUM( DISTINCT + 37 ) * + 97 + 82 + - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT + SUM ( DISTINCT + 37 ) * + 97 + 82 + - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL 83 * + 34 + + 50 + NULLIF ( + 72, - ( - COUNT( * ) ) / - COUNT( * ) )
----
2944

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL 83 * + 34 + + 50 + NULLIF ( + 72, - ( - COUNT ( * ) ) / - COUNT ( * ) )
----
2944

query I rowsort
SELECT ALL 51 * + + 32 * + 2 + 40
----
3304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT NULLIF ( 85, - CAST( NULL AS SIGNED ) * + NULLIF ( + 56, + 85 ) + + 22 + + 3 )
----
85

skipif mysql # not compatible
query I rowsort label-5378
SELECT NULLIF ( 85, - CAST ( NULL AS INTEGER ) * + NULLIF ( + 56, + 85 ) + + 22 + + 3 )
----
85

query I rowsort
SELECT + COALESCE ( 68, 43 ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT NULLIF ( + CAST( - - 73 AS SIGNED ), 33 + NULLIF ( - 78, 44 * - + 38 * + - 95 ) ) col0
----
73

skipif mysql # not compatible
query I rowsort label-5380
SELECT NULLIF ( + CAST ( - - 73 AS INTEGER ), 33 + NULLIF ( - 78, 44 * - + 38 * + - 95 ) ) col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5381
SELECT ALL 26 * ( + 9 ) col0, 20 * ( 62 ) - - - COUNT( DISTINCT - 75 ) + + COUNT( * ) DIV 16 * + ( - 17 ) + - COUNT( * )
----
234
1238

skipif mysql # not compatible
query II rowsort label-5381
SELECT ALL 26 * ( + 9 ) col0, 20 * ( 62 ) - - - COUNT ( DISTINCT - 75 ) + + COUNT ( * ) / 16 * + ( - 17 ) + - COUNT ( * )
----
234
1238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT - COUNT( * ) * - - CAST( 59 AS SIGNED ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5382
SELECT - COUNT ( * ) * - - CAST ( 59 AS INTEGER ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT + 20 * - 90 * - ( COUNT( * ) ) + + COUNT( * )
----
1801

skipif mysql # not compatible
query I rowsort label-5383
SELECT + 20 * - 90 * - ( COUNT ( * ) ) + + COUNT ( * )
----
1801

query I rowsort
SELECT DISTINCT + 37 col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5385
SELECT ALL 38 * 21 + + - 58 + + ( - 67 ) - + - CASE + 84 WHEN + + 67 / + - 21 + - 60 + + + 91 THEN - + 18 WHEN + + COUNT( * ) THEN + 97 END + - CAST( NULL AS SIGNED ) * + + ( ( + ( 31 ) ) ) + + - 99 * + - NULLIF ( + + COALESCE ( + 16, + + COALESCE ( 54, + COUNT( * ) * ( CASE COUNT( * ) WHEN 3 THEN - 60 * 78 + 65 WHEN 27 * 51 THEN NULL END ) + ( + 54 ) + + 17, - 82 ) + - MAX( ALL 36 ), + 54 ), ( 46 ) ) * - 70 + + AVG ( DISTINCT NULLIF ( - 41, + 72 * + 82 ) + ( - ( + 88 ) ) * CAST( NULL AS SIGNED ) ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL 38 * 21 + + - 58 + + ( - 67 ) - + - CASE + 84 WHEN + + 67 / + - 21 + - 60 + + + 91 THEN - + 18 WHEN + + COUNT ( * ) THEN + 97 END + - CAST ( NULL AS INTEGER ) * + + ( ( + ( 31 ) ) ) + + - 99 * + - NULLIF ( + + COALESCE ( + 16, + + COALESCE ( 54, + COUNT ( * ) * ( CASE COUNT ( * ) WHEN 3 THEN - 60 * 78 + 65 WHEN 27 * 51 THEN NULL END ) + ( + 54 ) + + 17, - 82 ) + - MAX ( ALL 36 ), + 54 ), ( 46 ) ) * - 70 + + AVG ( DISTINCT NULLIF ( - 41, + 72 * + 82 ) + ( - ( + 88 ) ) * CAST ( NULL AS INTEGER ) ) * 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5386
SELECT + ( - CASE + CASE - 97 WHEN - ( 98 ) * - 54 THEN 48 * COALESCE ( + CASE + + 94 WHEN 23 THEN + 37 * + 10 END, + 66 * ( + 99 ) - 16, - CAST( NULL AS SIGNED ) ) - 76 WHEN + 24 + 2 - - CAST( NULL AS SIGNED ) THEN + 19 END WHEN + 93 * - ( 1 ) * 68 THEN COUNT( * ) WHEN - 78 * - 0 THEN NULL ELSE 19 * 39 END ) * 83 AS col2
----
-61503

skipif mysql # not compatible
query I rowsort label-5386
SELECT + ( - CASE + CASE - 97 WHEN - ( 98 ) * - 54 THEN 48 * COALESCE ( + CASE + + 94 WHEN 23 THEN + 37 * + 10 END, + 66 * ( + 99 ) - 16, - CAST ( NULL AS INTEGER ) ) - 76 WHEN + 24 + 2 - - CAST ( NULL AS INTEGER ) THEN + 19 END WHEN + 93 * - ( 1 ) * 68 THEN COUNT ( * ) WHEN - 78 * - 0 THEN NULL ELSE 19 * 39 END ) * 83 AS col2
----
-61503

query II rowsort
SELECT + 60 - 31 AS col1, - 25 * 2 + - - 63 AS col1
----
29
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5388
SELECT MAX( DISTINCT + + 65 ), COALESCE ( 18, + 3 - - 65 ) * + 24 - - 92 - + + COUNT( ALL - 69 ) + + - 8 - - CAST( NULL AS SIGNED ) AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-5388
SELECT MAX ( DISTINCT + + 65 ), COALESCE ( 18, + 3 - - 65 ) * + 24 - - 92 - + + COUNT ( ALL - 69 ) + + - 8 - - CAST ( NULL AS INTEGER ) AS col0
----
65
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5389
SELECT ALL SUM( + - 31 ) * - 54 * - COALESCE ( + + COUNT( * ), + 53 - + - SUM( 13 ) ) * + + 64 + CAST( NULL AS SIGNED ) + + 52 + + + 45 + - 94 col0, 52 AS col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-5389
SELECT ALL SUM ( + - 31 ) * - 54 * - COALESCE ( + + COUNT ( * ), + 53 - + - SUM ( 13 ) ) * + + 64 + CAST ( NULL AS INTEGER ) + + 52 + + + 45 + - 94 col0, 52 AS col0
----
NULL
52

query II rowsort
SELECT ALL NULLIF ( + + 26, + COALESCE ( - 46, - 65 ) * 68 + + + 92 * + - 20 - - - 71 ) * + 87 AS col1, - 86 AS col2
----
2262
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT COUNT( - 78 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5391
SELECT COUNT ( - 78 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5392
SELECT ALL SUM( ALL + + 45 ) + COUNT( * ) DIV - 38 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL SUM ( ALL + + 45 ) + COUNT ( * ) / - 38 AS col0
----
45

query I rowsort
SELECT + 71 * + 99 AS col1
----
7029

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT - - 55 * + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-5394
SELECT - - 55 * + COUNT ( * ) AS col0
----
55

query I rowsort
SELECT ALL - 49 * + - 19 + - 7
----
924

query I rowsort
SELECT + 27 * 20
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT ALL 71 * + + 7 * COUNT( - + NULLIF ( 0, 14 * - - 30 ) )
----
497

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL 71 * + + 7 * COUNT ( - + NULLIF ( 0, 14 * - - 30 ) )
----
497

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT + 41 - 64 * - NULLIF ( MAX( + 81 ), - + 70 ) * - 34 * - COUNT( * ) + 48
----
176345

skipif mysql # not compatible
query I rowsort label-5398
SELECT + 41 - 64 * - NULLIF ( MAX ( + 81 ), - + 70 ) * - 34 * - COUNT ( * ) + 48
----
176345

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT DISTINCT ( 63 ) * + COUNT( * ) - + + 25
----
38

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT ( 63 ) * + COUNT ( * ) - + + 25
----
38

query I rowsort
SELECT ALL - 97 * + - 34
----
3298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT - - ( - 56 ) * - 98 * ( + + CAST( NULL AS SIGNED ) ) / - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT - - ( - 56 ) * - 98 * ( + + CAST ( NULL AS INTEGER ) ) / - 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT - COUNT( * ) - - COUNT( * ) * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5402
SELECT - COUNT ( * ) - - COUNT ( * ) * + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT + NULLIF ( 67, - 10 ) * + + COUNT( 61 )
----
67

skipif mysql # not compatible
query I rowsort label-5403
SELECT + NULLIF ( 67, - 10 ) * + + COUNT ( 61 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5404
SELECT + CAST( NULL AS SIGNED ) + + CASE - + 91 WHEN 54 / - + COUNT( * ) * - 22 * - - 12 * 81 THEN + 28 * + 71 + ( + - 10 ) * - CAST( NULL AS DECIMAL ) * + + 10 END + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT + CAST ( NULL AS INTEGER ) + + CASE - + 91 WHEN 54 / - + COUNT ( * ) * - 22 * - - 12 * 81 THEN + 28 * + 71 + ( + - 10 ) * - CAST ( NULL AS REAL ) * + + 10 END + - 42
----
NULL

query I rowsort
SELECT ALL + - 15 * + 20
----
-300

query I rowsort
SELECT ALL + NULLIF ( + 87, - - 58 / 15 + 88 + + + 83 - - + 99 * - + 57 )
----
87

query I rowsort
SELECT DISTINCT + - 44
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5408
SELECT 1 DIV COUNT( DISTINCT 61 ) + ( - ( + 98 ) ) + ( - + 93 ) + - 87
----
-277

skipif mysql # not compatible
query I rowsort label-5408
SELECT 1 / COUNT ( DISTINCT 61 ) + ( - ( + 98 ) ) + ( - + 93 ) + - 87
----
-277

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL + MAX( ALL 73 )
----
73

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + MAX ( ALL 73 )
----
73

query II rowsort
SELECT + - COALESCE ( + 34, + 61 * 61 + - + 58 ), 40 col2
----
-34
40

query I rowsort
SELECT ALL + COALESCE ( 51, - 5 ) * - - 99
----
5049

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT - ( 58 ) DIV - - NULLIF ( + 39, + + CASE WHEN 80 IS NULL THEN 69 ELSE NULL END )
----
-1

skipif mysql # not compatible
query I rowsort label-5412
SELECT - ( 58 ) / - - NULLIF ( + 39, + + CASE WHEN 80 IS NULL THEN 69 ELSE NULL END )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5413
SELECT ALL - COUNT( * ) AS col2, 93 * 82
----
-1
7626

skipif mysql # not compatible
query II rowsort label-5413
SELECT ALL - COUNT ( * ) AS col2, 93 * 82
----
-1
7626

query I rowsort
SELECT 54 * + 55 AS col1
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT DISTINCT + 24 + + COUNT( - 97 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT + 24 + + COUNT ( - 97 ) AS col2
----
25

query I rowsort
SELECT ALL + 6 + - - 32
----
38

query I rowsort
SELECT 79 * - 24 AS col2
----
-1896

query I rowsort
SELECT DISTINCT + 25 + 99
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-5419
SELECT ALL - 59 col0, COUNT( * )
----
-59
1

skipif mysql # not compatible
query II rowsort label-5419
SELECT ALL - 59 col0, COUNT ( * )
----
-59
1

query I rowsort
SELECT ALL + 7 + + 96
----
103

query I rowsort
SELECT ALL - 52 + + 87 col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT 75 + - COUNT( * ) + NULLIF ( ( - 62 ), - - 48 ) * + - 26 * - - 86 + + 33
----
138739

skipif mysql # not compatible
query I rowsort label-5422
SELECT 75 + - COUNT ( * ) + NULLIF ( ( - 62 ), - - 48 ) * + - 26 * - - 86 + + 33
----
138739

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT 71 * 78 - - - 59 * - 30 + + - COUNT( * ) + 78
----
7385

skipif mysql # not compatible
query I rowsort label-5423
SELECT 71 * 78 - - - 59 * - 30 + + - COUNT ( * ) + 78
----
7385

query I rowsort
SELECT ALL + 80 * 47
----
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT 85 + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-5425
SELECT 85 + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT NULLIF ( - NULLIF ( + COUNT( ( + - 36 ) ), - 75 * 51 * - - 2 ), + + 99 - COUNT( * ) ) - ( - - MIN( + + 15 ) ) * - 38
----
569

skipif mysql # not compatible
query I rowsort label-5426
SELECT NULLIF ( - NULLIF ( + COUNT ( ( + - 36 ) ), - 75 * 51 * - - 2 ), + + 99 - COUNT ( * ) ) - ( - - MIN ( + + 15 ) ) * - 38
----
569

onlyif mysql # aggregate syntax: 
query II rowsort label-5427
SELECT - COUNT( * ), MIN( 75 ) + + 77 AS col2
----
-1
152

skipif mysql # not compatible
query II rowsort label-5427
SELECT - COUNT ( * ), MIN ( 75 ) + + 77 AS col2
----
-1
152

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT ALL COUNT( DISTINCT 98 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL COUNT ( DISTINCT 98 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT NULLIF ( 65, - 10 - + - 83 + COALESCE ( + 40, + COUNT( * ) ) * 50 * + 83 ) + + + 87 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-5429
SELECT NULLIF ( 65, - 10 - + - 83 + COALESCE ( + 40, + COUNT ( * ) ) * 50 * + 83 ) + + + 87 AS col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL - ( + - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - ( + - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 59 * 59 + - 63
----
3418

query I rowsort
SELECT ALL 42 col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5433
SELECT + 52 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT + 52 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT 74 + ( COUNT( ALL - 9 ) ) * 66 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-5435
SELECT 74 + ( COUNT ( ALL - 9 ) ) * 66 AS col1
----
140

query II rowsort
SELECT DISTINCT 49, 88 AS col1
----
49
88

query I rowsort
SELECT - 79 * + 72
----
-5688

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT ALL COALESCE ( 36, + - 2 ) DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL COALESCE ( 36, + - 2 ) / + 63
----
0

query I rowsort
SELECT 51 + - 95 * 18 * - + 67 AS col0
----
114621

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT DISTINCT - 44 * COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT - 44 * COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5441
SELECT ALL 66, MAX( ALL + - 55 ) * - - MIN( ALL + 52 ) AS col0
----
66
-2860

skipif mysql # not compatible
query II rowsort label-5441
SELECT ALL 66, MAX ( ALL + - 55 ) * - - MIN ( ALL + 52 ) AS col0
----
66
-2860

query II rowsort
SELECT - 77 AS col1, + 67
----
-77
67

query I rowsort
SELECT - ( + + 72 )
----
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5444
SELECT ALL - CAST( NULL AS DECIMAL ) * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - CAST ( NULL AS REAL ) * - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL + 41 + + - 9 * - + COUNT( + 98 )
----
50

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL + 41 + + - 9 * - + COUNT ( + 98 )
----
50

query I rowsort
SELECT DISTINCT 33 + 68 AS col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5447
SELECT - 77 * - CAST( NULL AS DECIMAL ) * + SUM( - + 46 ) + + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT - 77 * - CAST ( NULL AS REAL ) * + SUM ( - + 46 ) + + 81 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 47 + ( + 72 ) AS col0, 98 AS col0
----
119
98

query I rowsort
SELECT ALL 51 + + - 2 + + 36 * 0 + + 15
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT ( - CAST( NULL AS SIGNED ) ) - - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT ( - CAST ( NULL AS INTEGER ) ) - - 59 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5451
SELECT CAST( ( + 15 ) AS SIGNED ) * + 91 AS col1, + 83 AS col2
----
1365
83

skipif mysql # not compatible
query II rowsort label-5451
SELECT CAST ( ( + 15 ) AS INTEGER ) * + 91 AS col1, + 83 AS col2
----
1365
83

query I rowsort
SELECT DISTINCT - COALESCE ( 43, NULLIF ( + 81, - + 46 + + + 29 ), - 14 * + 86 + 71 ) AS col0
----
-43

query I rowsort
SELECT ALL - 83 + + 6
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL + COUNT( * ) + + ( + 49 ) * + ( - - 84 )
----
4117

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL + COUNT ( * ) + + ( + 49 ) * + ( - - 84 )
----
4117

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT + 11 DIV 17 + + 55 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-5455
SELECT + 11 / 17 + + 55 AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5456
SELECT DISTINCT 8 + 85 + - 46 DIV 79
----
93

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT 8 + 85 + - 46 / 79
----
93

query I rowsort
SELECT DISTINCT - 66 * - 22
----
1452

query I rowsort
SELECT 79 + 90
----
169

query I rowsort
SELECT ALL - 48 * 25
----
-1200

query I rowsort
SELECT DISTINCT - 62 AS col1
----
-62

query I rowsort
SELECT 4 * + 98
----
392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT DISTINCT + CASE + CAST( NULL AS SIGNED ) WHEN - 77 THEN NULL ELSE - - 21 END - 1
----
20

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT + CASE + CAST ( NULL AS INTEGER ) WHEN - 77 THEN NULL ELSE - - 21 END - 1
----
20

query I rowsort
SELECT DISTINCT 70 col1
----
70

query I rowsort
SELECT 96 * 50
----
4800

onlyif mysql # DIV for integer division: 
query I rowsort label-5465
SELECT ALL - 55 DIV 4 DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL - 55 / 4 / 33
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5466
SELECT DISTINCT - + 86 / - + CAST( NULL AS SIGNED ) - + CASE + 50 WHEN 85 + + 26 THEN NULL ELSE COUNT( * ) * - 33 + + SUM( - 61 ) + + ( - 60 ) END + - + 60 / COALESCE ( - + 57, - + NULLIF ( - - 19, ( + 70 ) ), 15 ) * + MAX( - + 81 ) * 33 + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT - + 86 / - + CAST ( NULL AS INTEGER ) - + CASE + 50 WHEN 85 + + 26 THEN NULL ELSE COUNT ( * ) * - 33 + + SUM ( - 61 ) + + ( - 60 ) END + - + 60 / COALESCE ( - + 57, - + NULLIF ( - - 19, ( + 70 ) ), 15 ) * + MAX ( - + 81 ) * 33 + - 90
----
NULL

query I rowsort
SELECT DISTINCT - - 73 * + + 60 + - 90
----
4290

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + 16 * + COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5468
SELECT + 16 * + COUNT ( * ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5469
SELECT ALL + - NULLIF ( SUM( DISTINCT - 32 ), + ( 58 ) ) + + COUNT( * ) - 87 - 82 * 42 DIV + - COUNT( * ) AS col1
----
3390

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL + - NULLIF ( SUM ( DISTINCT - 32 ), + ( 58 ) ) + + COUNT ( * ) - 87 - 82 * 42 / + - COUNT ( * ) AS col1
----
3390

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT 99 - MIN( DISTINCT - 93 ) AS col2
----
192

skipif mysql # not compatible
query I rowsort label-5470
SELECT 99 - MIN ( DISTINCT - 93 ) AS col2
----
192

query I rowsort
SELECT DISTINCT + 12 + - - 30 - + 1 * + 53 * - 69 col2
----
3699

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL COUNT( ALL - 42 ) + - 39 col1
----
-38

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL COUNT ( ALL - 42 ) + - 39 col1
----
-38

query I rowsort
SELECT + 84 col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5474
SELECT 37 DIV - + 23 + - - 20 - - SUM( ALL 28 ) * - 1
----
-9

skipif mysql # not compatible
query I rowsort label-5474
SELECT 37 / - + 23 + - - 20 - - SUM ( ALL 28 ) * - 1
----
-9

query I rowsort
SELECT - 19 + + 57 - 34 * + 15
----
-472

query I rowsort
SELECT - 68 col1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT ALL + 88 DIV - COALESCE ( + 48, 0 * - 38 * - - 73 + 17 * - + ( - 2 ) + + 37 * + ( - 8 ), 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + 88 / - COALESCE ( + 48, 0 * - 38 * - - 73 + 17 * - + ( - 2 ) + + 37 * + ( - 8 ), 0 )
----
-1

query I rowsort
SELECT - COALESCE ( - + 76, - 36 * + - 93 + + 87 ) + + 18
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5479
SELECT + CAST( NULL AS SIGNED ) - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT + CAST ( NULL AS INTEGER ) - + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT - SUM( 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5480
SELECT - SUM ( 39 ) AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5481
SELECT ALL 83 * - + 70 + - 55 * - + COUNT( * ) + + 17 DIV - + SUM( ALL + 37 ) AS col2
----
-5755

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL 83 * - + 70 + - 55 * - + COUNT ( * ) + + 17 / - + SUM ( ALL + 37 ) AS col2
----
-5755

onlyif mysql # DIV for integer division: 
query I rowsort label-5482
SELECT ALL - 79 DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL - 79 / 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ( + - 71 ) * + 13 + + + 63 * + - COUNT( * )
----
-986

skipif mysql # not compatible
query I rowsort label-5483
SELECT ( + - 71 ) * + 13 + + + 63 * + - COUNT ( * )
----
-986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5484
SELECT DISTINCT 50 * + + 58 * + CASE + 13 WHEN + 77 THEN + CAST( NULL AS SIGNED ) ELSE - 56 END * - - ( 90 ) AS col0
----
-14616000

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT 50 * + + 58 * + CASE + 13 WHEN + 77 THEN + CAST ( NULL AS INTEGER ) ELSE - 56 END * - - ( 90 ) AS col0
----
-14616000

query I rowsort
SELECT ALL 67 * - + 41 * 90 AS col2
----
-247230

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT ALL COUNT( * ) * - 3 * + 47 * ( - 25 ) - - 50 * - 99
----
-1425

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL COUNT ( * ) * - 3 * + 47 * ( - 25 ) - - 50 * - 99
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + SUM( 87 )
----
87

skipif mysql # not compatible
query I rowsort label-5487
SELECT + SUM ( 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT COALESCE ( - 11, - 21 - - - COUNT( * ), - - 72 )
----
-11

skipif mysql # not compatible
query I rowsort label-5488
SELECT COALESCE ( - 11, - 21 - - - COUNT ( * ), - - 72 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5489
SELECT + MIN( DISTINCT + 59 ) * + NULLIF ( + 49, - 17 * ( 72 ) + ( + ( + 39 ) ) ) + - + COALESCE ( + - 30, - + 60 * + 26 + + COUNT( * ) + 87, NULLIF ( - CASE - 31 WHEN - + 38 THEN CAST( NULL AS SIGNED ) - + 40 + + - MAX( + - 67 ) - + + 60 * + SUM( - 48 ) DIV + 63 - - 36 * - 48 DIV - 13 + + 53 END, - COUNT( * ) * CAST( NULL AS SIGNED ) ) )
----
2921

skipif mysql # not compatible
query I rowsort label-5489
SELECT + MIN ( DISTINCT + 59 ) * + NULLIF ( + 49, - 17 * ( 72 ) + ( + ( + 39 ) ) ) + - + COALESCE ( + - 30, - + 60 * + 26 + + COUNT ( * ) + 87, NULLIF ( - CASE - 31 WHEN - + 38 THEN CAST ( NULL AS INTEGER ) - + 40 + + - MAX ( + - 67 ) - + + 60 * + SUM ( - 48 ) / + 63 - - 36 * - 48 / - 13 + + 53 END, - COUNT ( * ) * CAST ( NULL AS INTEGER ) ) )
----
2921

query I rowsort
SELECT COALESCE ( - 94, 76 ) col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT DISTINCT + 70 * - 55 - + 46 + - 11 * - + CASE ( - - COUNT( * ) ) WHEN + COUNT( * ) THEN NULL WHEN 63 + 33 * - COUNT( * ) THEN NULL ELSE - 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT + 70 * - 55 - + 46 + - 11 * - + CASE ( - - COUNT ( * ) ) WHEN + COUNT ( * ) THEN NULL WHEN 63 + 33 * - COUNT ( * ) THEN NULL ELSE - 64 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5492
SELECT - 69 DIV 60 * + 50 * 98 + + - 6 AS col0, + 9
----
-4906
9

skipif mysql # not compatible
query II rowsort label-5492
SELECT - 69 / 60 * + 50 * 98 + + - 6 AS col0, + 9
----
-4906
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT + 13 - + - COUNT( * ) + - 36
----
-22

skipif mysql # not compatible
query I rowsort label-5493
SELECT + 13 - + - COUNT ( * ) + - 36
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-5494
SELECT ALL - ( + + ( + COUNT( * ) ) ) * - 6 * + - 40, + COUNT( * ) AS col0
----
-240
1

skipif mysql # not compatible
query II rowsort label-5494
SELECT ALL - ( + + ( + COUNT ( * ) ) ) * - 6 * + - 40, + COUNT ( * ) AS col0
----
-240
1

query I rowsort
SELECT - 89 + + ( + + 21 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL + MIN( ALL - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL + MIN ( ALL - 85 ) AS col1
----
-85

query I rowsort
SELECT ALL 95 * + COALESCE ( + 34, - 53 ) AS col0
----
3230

query I rowsort
SELECT DISTINCT + + 99 AS col1
----
99

query I rowsort
SELECT ALL - 10 * + + 87 + + 88 AS col2
----
-782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT + + CAST( NULL AS SIGNED ) + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT + + CAST ( NULL AS INTEGER ) + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT + - COUNT( * ) + - + 82
----
-83

skipif mysql # not compatible
query I rowsort label-5501
SELECT + - COUNT ( * ) + - + 82
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5502
SELECT - - COALESCE ( + 31, - COUNT( * ) * + + 78 + - 60 ) - + + 23 DIV + 42
----
31

skipif mysql # not compatible
query I rowsort label-5502
SELECT - - COALESCE ( + 31, - COUNT ( * ) * + + 78 + - 60 ) - + + 23 / + 42
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT - + 55 DIV + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT - + 55 / + 67 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5504
SELECT ALL + + 83 + + CAST( NULL AS DECIMAL ) + + ( - + 7 ) + + - ( 6 ) * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + + 83 + + CAST ( NULL AS REAL ) + + ( - + 7 ) + + - ( 6 ) * - 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5505
SELECT CAST( 47 AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5505
SELECT CAST ( 47 AS INTEGER ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL 84 + + COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL 84 + + COUNT ( * ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5507
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 8 + - - 44, - 1 + - + 78 - + - 25 * - 16 * - - 9 * - - 29 AS col2
----
NULL
-104479

skipif mysql # not compatible
query II rowsort label-5507
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 8 + - - 44, - 1 + - + 78 - + - 25 * - 16 * - - 9 * - - 29 AS col2
----
NULL
-104479

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT ALL + COUNT( * ) + - 14 + + 10 * 63
----
617

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + COUNT ( * ) + - 14 + + 10 * 63
----
617

query I rowsort
SELECT - - ( 31 ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5510
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + 33 + 43 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL - + 28 * + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - + 28 * + COUNT ( * ) AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT + + CAST( NULL AS SIGNED ) + + - 46 + + ( 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT + + CAST ( NULL AS INTEGER ) + + - 46 + + ( 41 )
----
NULL

query I rowsort
SELECT ALL - - 3 * - + ( + + 93 )
----
-279

query I rowsort
SELECT ALL + 20 - + 33
----
-13

query I rowsort
SELECT DISTINCT - 65 * + 87 AS col0
----
-5655

query I rowsort
SELECT ALL - 93 * 66
----
-6138

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT - 75 * - - 14 * + COUNT( ALL + 16 )
----
-1050

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - 75 * - - 14 * + COUNT ( ALL + 16 )
----
-1050

query I rowsort
SELECT ALL + 20 - - - 1 col2
----
19

query I rowsort
SELECT DISTINCT ( + 60 ) AS col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5521
SELECT ALL COUNT( * ) DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL COUNT ( * ) / 73
----
0

query I rowsort
SELECT + 55 * + 11 AS col0
----
605

query II rowsort
SELECT - 26 - 14 * 85 + 63 + - + 27 - + 53, - 44 AS col0
----
-1233
-44

query I rowsort
SELECT + ( - - 75 ) col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5525
SELECT DISTINCT MAX( ALL + 96 ) DIV 88 - + 65 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT MAX ( ALL + 96 ) / 88 - + 65 AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5526
SELECT CAST( 38 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-5526
SELECT CAST ( 38 AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL COUNT( * ) * - 86 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL COUNT ( * ) * - 86 AS col1
----
-86

query I rowsort
SELECT + 25 + - 70
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5529
SELECT + CAST( NULL AS SIGNED ) col0, COUNT( 39 ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5529
SELECT + CAST ( NULL AS INTEGER ) col0, COUNT ( 39 ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT + NULLIF ( + - 80, - + MIN( + 15 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-5530
SELECT + NULLIF ( + - 80, - + MIN ( + 15 ) )
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5531
SELECT DISTINCT + 31 DIV + 9 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT + 31 / + 9 AS col0
----
3

query II rowsort
SELECT DISTINCT + 46, 24 AS col0
----
46
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5533
SELECT + + 44 DIV + + MAX( - + 10 )
----
-4

skipif mysql # not compatible
query I rowsort label-5533
SELECT + + 44 / + + MAX ( - + 10 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL - - 3 * + 15 + + COUNT( * ) + + 89 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - - 3 * + 15 + + COUNT ( * ) + + 89 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT + 58 * + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5535
SELECT + 58 * + COUNT ( * ) AS col0
----
58

query I rowsort
SELECT + 27 + 92 + 8 AS col2
----
127

query I rowsort
SELECT + 71 * - 25 + 1
----
-1774

query I rowsort
SELECT ALL - 51 * - + 9 * 23 + - 75 AS col1
----
10482

query I rowsort
SELECT ALL + - 15 AS col0
----
-15

query II rowsort
SELECT 14, + 47 + + 80 AS col2
----
14
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5541
SELECT - 54 + + 53 - ( 31 ) * + CAST( + 18 AS SIGNED ) + + 82 * + + COALESCE ( 84, 88 * - ( - 74 ) ) * 15 AS col2
----
102761

skipif mysql # not compatible
query I rowsort label-5541
SELECT - 54 + + 53 - ( 31 ) * + CAST ( + 18 AS INTEGER ) + + 82 * + + COALESCE ( 84, 88 * - ( - 74 ) ) * 15 AS col2
----
102761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5542
SELECT ALL - COALESCE ( 72, COUNT( * ) * - 16 + - CASE + CAST( NULL AS SIGNED ) WHEN - 69 * - ( ( - - 10 ) ) THEN - 49 WHEN - COUNT( * ) + CAST( 45 AS DECIMAL ) + + NULLIF ( + + COUNT( * ), - 31 ) - + 44 * + 66 THEN NULL END ) * + COALESCE ( + 65, - 67 * 29 + 39 ) * - 23 + CAST( NULL AS DECIMAL ) + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL - COALESCE ( 72, COUNT ( * ) * - 16 + - CASE + CAST ( NULL AS INTEGER ) WHEN - 69 * - ( ( - - 10 ) ) THEN - 49 WHEN - COUNT ( * ) + CAST ( 45 AS REAL ) + + NULLIF ( + + COUNT ( * ), - 31 ) - + 44 * + 66 THEN NULL END ) * + COALESCE ( + 65, - 67 * 29 + 39 ) * - 23 + CAST ( NULL AS REAL ) + 76
----
NULL

query I rowsort
SELECT + + 92 * 7 * - 91 + - 5 * - 12 * 6 AS col0
----
-58244

query II rowsort
SELECT ALL + 80 AS col0, 31
----
80
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT - + MAX( + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-5545
SELECT - + MAX ( + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5546
SELECT DISTINCT - 56, - MAX( - 28 ) * NULLIF ( + 56, SUM( + + 53 ) ) + 81 AS col2
----
-56
1649

skipif mysql # not compatible
query II rowsort label-5546
SELECT DISTINCT - 56, - MAX ( - 28 ) * NULLIF ( + 56, SUM ( + + 53 ) ) + 81 AS col2
----
-56
1649

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL 55 * - MIN( DISTINCT 3 ) + - - 22 + - ( - 75 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL 55 * - MIN ( DISTINCT 3 ) + - - 22 + - ( - 75 ) AS col1
----
-68

query II rowsort
SELECT + 29 AS col1, 85 * - ( - 25 ) AS col2
----
29
2125

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT DISTINCT 13 * COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT 13 * COUNT ( * ) AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5550
SELECT 8 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT 8 + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 70 * + + 35
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT ALL + SUM( + 15 ) + - COUNT( * ) * + 67 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL + SUM ( + 15 ) + - COUNT ( * ) * + 67 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT 38 * + 93 + + - COUNT( * )
----
3533

skipif mysql # not compatible
query I rowsort label-5553
SELECT 38 * + 93 + + - COUNT ( * )
----
3533

onlyif mysql # aggregate syntax: 
query II rowsort label-5554
SELECT + 80 AS col2, 54 * - - COUNT( * ) AS col1
----
80
54

skipif mysql # not compatible
query II rowsort label-5554
SELECT + 80 AS col2, 54 * - - COUNT ( * ) AS col1
----
80
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT - 28 * - COUNT( * ) * - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-5555
SELECT - 28 * - COUNT ( * ) * - - COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT 33 - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT 33 - COUNT ( * )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT 89 - - + 34 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT 89 - - + 34 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 88 - 12 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL + COUNT( ALL 75 ) - - COALESCE ( SUM( ALL + 66 ), 59 ) * 60
----
3961

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + COUNT ( ALL 75 ) - - COALESCE ( SUM ( ALL + 66 ), 59 ) * 60
----
3961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5560
SELECT COUNT( * ) / + + CASE + + SUM( DISTINCT + 71 ) WHEN 2 * CASE 27 WHEN 56 THEN + + 7 WHEN + - CAST( + 83 AS SIGNED ) THEN NULL ELSE + 92 - + 11 * CAST( NULL AS SIGNED ) - - 17 END + - + 10 - - - 19 THEN + - MAX( ALL - + 19 ) END * 25 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT COUNT ( * ) / + + CASE + + SUM ( DISTINCT + 71 ) WHEN 2 * CASE 27 WHEN 56 THEN + + 7 WHEN + - CAST ( + 83 AS INTEGER ) THEN NULL ELSE + 92 - + 11 * CAST ( NULL AS INTEGER ) - - 17 END + - + 10 - - - 19 THEN + - MAX ( ALL - + 19 ) END * 25 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 79 + - 14
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT 24 - + 13 + + 32 DIV 51
----
11

skipif mysql # not compatible
query I rowsort label-5562
SELECT 24 - + 13 + + 32 / 51
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT COUNT( * ) - - 88 * COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-5563
SELECT COUNT ( * ) - - 88 * COUNT ( * )
----
89

query I rowsort
SELECT ALL - 49 col0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5565
SELECT - SUM( DISTINCT + 85 ) DIV + 95 + - 5
----
-5

skipif mysql # not compatible
query I rowsort label-5565
SELECT - SUM ( DISTINCT + 85 ) / + 95 + - 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT COUNT( * ) * + 36
----
36

skipif mysql # not compatible
query I rowsort label-5566
SELECT COUNT ( * ) * + 36
----
36

query II rowsort
SELECT 10 + - 80 AS col1, 62 * + 91 * - - 99 * + - 98 AS col1
----
-70
-54738684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5568
SELECT - + 11 * + 72 + + 72 + - + 18 * + 5 * - COUNT( * ) + - CAST( + CAST( - 26 AS SIGNED ) AS SIGNED ) AS col0
----
-604

skipif mysql # not compatible
query I rowsort label-5568
SELECT - + 11 * + 72 + + 72 + - + 18 * + 5 * - COUNT ( * ) + - CAST ( + CAST ( - 26 AS INTEGER ) AS INTEGER ) AS col0
----
-604

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT + MAX( ALL + - 5 ), - MIN( DISTINCT + + 74 ) * - NULLIF ( + 71, 23 ) AS col1
----
-5
5254

skipif mysql # not compatible
query II rowsort label-5569
SELECT + MAX ( ALL + - 5 ), - MIN ( DISTINCT + + 74 ) * - NULLIF ( + 71, 23 ) AS col1
----
-5
5254

onlyif mysql # aggregate syntax: 
query II rowsort label-5570
SELECT ALL - 27 + - - 8 + COUNT( * ), + 29 col0
----
-18
29

skipif mysql # not compatible
query II rowsort label-5570
SELECT ALL - 27 + - - 8 + COUNT ( * ), + 29 col0
----
-18
29

query I rowsort
SELECT + 5 + 97 AS col1
----
102

query II rowsort
SELECT ALL - 83 * 80, - 65 AS col1
----
-6640
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - MIN( ALL 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - MIN ( ALL 20 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5574
SELECT ALL 88 + + - 29, - ( + CAST( - MAX( DISTINCT - + 64 ) AS SIGNED ) ) AS col0
----
59
-64

skipif mysql # not compatible
query II rowsort label-5574
SELECT ALL 88 + + - 29, - ( + CAST ( - MAX ( DISTINCT - + 64 ) AS INTEGER ) ) AS col0
----
59
-64

query I rowsort
SELECT - 72 + + - 92
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT + - 31 * - - COUNT( * ) - 65 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5576
SELECT + - 31 * - - COUNT ( * ) - 65 AS col0
----
-96

query I rowsort
SELECT DISTINCT - + 11 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5578
SELECT - ( CAST( - 90 AS SIGNED ) ) + + CAST( NULL AS SIGNED ) * + 99 AS col1, 1 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5578
SELECT - ( CAST ( - 90 AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) * + 99 AS col1, 1 AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT - 55 + 26 AS col0, + 65 - + ( + ( + 54 ) ) * - - COALESCE ( - - 37, CASE COUNT( * ) WHEN + COALESCE ( - COUNT( * ), + + 22 + 23 ) THEN 72 * + COUNT( * ) ELSE - 75 END * - + ( + 33 ) ) * + 41 AS col2
----
-29
-81853

skipif mysql # not compatible
query II rowsort label-5579
SELECT - 55 + 26 AS col0, + 65 - + ( + ( + 54 ) ) * - - COALESCE ( - - 37, CASE COUNT ( * ) WHEN + COALESCE ( - COUNT ( * ), + + 22 + 23 ) THEN 72 * + COUNT ( * ) ELSE - 75 END * - + ( + 33 ) ) * + 41 AS col2
----
-29
-81853

onlyif mysql # DIV for integer division: 
query I rowsort label-5580
SELECT ALL + 0 - + 97 - + - 75 DIV - - 71
----
-96

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL + 0 - + 97 - + - 75 / - - 71
----
-96

query I rowsort
SELECT + - 2 * + 76 + - 96 AS col0
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + SUM( + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5582
SELECT + SUM ( + 41 ) AS col2
----
41

query I rowsort
SELECT ALL + ( 16 )
----
16

query I rowsort
SELECT + 21 + - 96 + 59 AS col1
----
-16

query I rowsort
SELECT ALL + 58 col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT MAX( + 6 ) + ( + - COUNT( DISTINCT + - 35 ) ) + 64 * + 6 / - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT MAX ( + 6 ) + ( + - COUNT ( DISTINCT + - 35 ) ) + 64 * + 6 / - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 51
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5587
SELECT ALL 41, ( + + 83 ) * + + CAST( NULL AS SIGNED ) col2
----
41
NULL

skipif mysql # not compatible
query II rowsort label-5587
SELECT ALL 41, ( + + 83 ) * + + CAST ( NULL AS INTEGER ) col2
----
41
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5588
SELECT 65, 68 DIV - - 43 AS col0
----
65
1

skipif mysql # not compatible
query II rowsort label-5588
SELECT 65, 68 / - - 43 AS col0
----
65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL COUNT( * ) * 30
----
30

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL COUNT ( * ) * 30
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5590
SELECT ALL NULLIF ( 59, + AVG ( DISTINCT 80 ) / - CAST( NULL AS SIGNED ) - + + 51 - - 88 * - + 49 * - 3 ) * - 68 * 42 AS col0, - 65
----
-168504
-65

skipif mysql # not compatible
query II rowsort label-5590
SELECT ALL NULLIF ( 59, + AVG ( DISTINCT 80 ) / - CAST ( NULL AS INTEGER ) - + + 51 - - 88 * - + 49 * - 3 ) * - 68 * 42 AS col0, - 65
----
-168504
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT - COUNT( + 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-5591
SELECT - COUNT ( + 5 )
----
-1

query I rowsort
SELECT 24 + + 19 AS col0
----
43

query II rowsort
SELECT 21 AS col2, - COALESCE ( + 27, + + 72 + + ( + 70 ), + 16, + 36 ) AS col1
----
21
-27

query II rowsort
SELECT DISTINCT 55 AS col2, 42 AS col0
----
55
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5595
SELECT - COUNT( * ), + 27 AS col2
----
-1
27

skipif mysql # not compatible
query II rowsort label-5595
SELECT - COUNT ( * ), + 27 AS col2
----
-1
27

query I rowsort
SELECT ALL + COALESCE ( + 37, - 9 ) + - 99 + 17
----
-45

query II rowsort
SELECT 2 AS col2, - 73 + + - 21 AS col1
----
2
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT 30 + - 6 + 95 + - - COUNT( * ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-5598
SELECT 30 + - 6 + 95 + - - COUNT ( * ) AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL - CASE + COUNT( * ) WHEN - COALESCE ( 45, + 34 ) / 24 * + MAX( + 2 ) + 16 + 18 - 71 * + 7 THEN NULL WHEN + 41 THEN + 80 ELSE - 24 END + + 46
----
70

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL - CASE + COUNT ( * ) WHEN - COALESCE ( 45, + 34 ) / 24 * + MAX ( + 2 ) + 16 + 18 - 71 * + 7 THEN NULL WHEN + 41 THEN + 80 ELSE - 24 END + + 46
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT SUM( + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-5600
SELECT SUM ( + 82 )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT 86 DIV + 86 + - ( + COUNT( * ) ) - + 47 * - 2 * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-5601
SELECT 86 / + 86 + - ( + COUNT ( * ) ) - + 47 * - 2 * - COUNT ( * )
----
-94

query I rowsort
SELECT ALL + 95 * - 90 * - + 19 AS col0
----
162450

query I rowsort
SELECT 40 + + ( ( + + ( - - 17 ) ) ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5604
SELECT ALL + 35 * - 56 / + 46 * + + 27 + 76 * - COUNT( * ) + - 18 * - CAST( NULL AS DECIMAL ) + + - 29 / 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL + 35 * - 56 / + 46 * + + 27 + 76 * - COUNT ( * ) + - 18 * - CAST ( NULL AS REAL ) + + - 29 / 65 AS col0
----
NULL

query I rowsort
SELECT + + COALESCE ( 35, - 23, - + 99 )
----
35

query II rowsort
SELECT ALL - 30, + 36 AS col1
----
-30
36

query I rowsort
SELECT DISTINCT - 14 * - 50 + - 89 AS col2
----
611

query I rowsort
SELECT ALL + 87 * + 86 * 52 AS col0
----
389064

query I rowsort
SELECT DISTINCT - ( 80 ) * + 7 AS col1
----
-560

onlyif mysql # DIV for integer division: 
query II rowsort label-5610
SELECT + + 53, 50 * 17 DIV + - 7 AS col2
----
53
-121

skipif mysql # not compatible
query II rowsort label-5610
SELECT + + 53, 50 * 17 / + - 7 AS col2
----
53
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT - COUNT( * ) * 63
----
-63

skipif mysql # not compatible
query I rowsort label-5611
SELECT - COUNT ( * ) * 63
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5612
SELECT DISTINCT + 56 * CAST( NULL AS SIGNED ) / - - COUNT( * ) * ( 74 ) * - + CAST( NULL AS SIGNED ) + + 12 - - + AVG ( - + 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT + 56 * CAST ( NULL AS INTEGER ) / - - COUNT ( * ) * ( 74 ) * - + CAST ( NULL AS INTEGER ) + + 12 - - + AVG ( - + 26 ) AS col1
----
NULL

query I rowsort
SELECT - 60 + - 61 AS col0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT + - COUNT( ALL + 42 ) * - 65 + + - 74 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5614
SELECT + - COUNT ( ALL + 42 ) * - 65 + + - 74 AS col0
----
-9

query I rowsort
SELECT + 44 - - 29
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5616
SELECT ALL - - 22 DIV - 3 + - - 5 col1
----
-2

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL - - 22 / - 3 + - - 5 col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT - + CAST( - 13 AS SIGNED ) * 62 AS col0
----
806

skipif mysql # not compatible
query I rowsort label-5617
SELECT - + CAST ( - 13 AS INTEGER ) * 62 AS col0
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL - 55 * - - COUNT( * ) + - COUNT( * ) * - 48 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL - 55 * - - COUNT ( * ) + - COUNT ( * ) * - 48 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5619
SELECT DISTINCT + - 62, MIN( DISTINCT + 84 ) col1
----
-62
84

skipif mysql # not compatible
query II rowsort label-5619
SELECT DISTINCT + - 62, MIN ( DISTINCT + 84 ) col1
----
-62
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5620
SELECT ALL + + 36 AS col2, + 95 + + + CAST( NULL AS SIGNED ) * - COUNT( * ) * + 60 + - - 5 / - 59
----
36
NULL

skipif mysql # not compatible
query II rowsort label-5620
SELECT ALL + + 36 AS col2, + 95 + + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 60 + - - 5 / - 59
----
36
NULL

query I rowsort
SELECT ALL - - 30 * 59
----
1770

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT DISTINCT NULLIF ( COUNT( * ), - - 8 )
----
1

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT NULLIF ( COUNT ( * ), - - 8 )
----
1

query I rowsort
SELECT ALL + 1 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5624
SELECT DISTINCT - + CAST( - 5 AS SIGNED ) * 62 * 14 + 22
----
4362

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT - + CAST ( - 5 AS INTEGER ) * 62 * 14 + 22
----
4362

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT DISTINCT + COALESCE ( - 76, - 33 * 68 * ( - + 10 ), - ( - 6 ) DIV 67 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT + COALESCE ( - 76, - 33 * 68 * ( - + 10 ), - ( - 6 ) / 67 ) AS col0
----
-76

query I rowsort
SELECT + 15 * - 48
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT 62 * - MAX( ( + ( - 81 ) ) ) + - 22 AS col1
----
5000

skipif mysql # not compatible
query I rowsort label-5627
SELECT 62 * - MAX ( ( + ( - 81 ) ) ) + - 22 AS col1
----
5000

query I rowsort
SELECT - NULLIF ( - 42, + 7 ) AS col0
----
42

query I rowsort
SELECT DISTINCT 48 col1
----
48

query I rowsort
SELECT DISTINCT ( 85 ) + + + 63 AS col1
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 84 * - - 34 * 34
----
97104

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL COUNT( ALL 74 )
----
1

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL COUNT ( ALL 74 )
----
1

query I rowsort
SELECT - ( 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT + 17 + - COALESCE ( - + SUM( ALL - 7 ), + 88 * + CASE + 16 WHEN - - MIN( DISTINCT 77 ) THEN NULL ELSE + MIN( ALL - + 32 ) + COUNT( * ) + - COALESCE ( - 6, 59 ) END ) - 82
----
-72

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT + 17 + - COALESCE ( - + SUM ( ALL - 7 ), + 88 * + CASE + 16 WHEN - - MIN ( DISTINCT 77 ) THEN NULL ELSE + MIN ( ALL - + 32 ) + COUNT ( * ) + - COALESCE ( - 6, 59 ) END ) - 82
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5636
SELECT + 13 + ( - - 61 ) + - 37 * + - SUM( DISTINCT + 61 ) + 20 + + 99 * CAST( NULL AS SIGNED ) - - 47 - 98 + + COUNT( * ) * 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT + 13 + ( - - 61 ) + - 37 * + - SUM ( DISTINCT + 61 ) + 20 + + 99 * CAST ( NULL AS INTEGER ) - - 47 - 98 + + COUNT ( * ) * 37 AS col2
----
NULL

query I rowsort
SELECT + 89 + + 94
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5638
SELECT - 95 - + + CAST( NULL AS SIGNED ) - + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT - 95 - + + CAST ( NULL AS INTEGER ) - + 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5639
SELECT DISTINCT COUNT( ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT COUNT ( ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5640
SELECT ( + COUNT( * ) ), - 53 * - 5 + - CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5640
SELECT ( + COUNT ( * ) ), - 53 * - 5 + - CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5641
SELECT + 66 * + - CAST( - + 73 AS SIGNED ) + - + CAST( NULL AS SIGNED ) + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT + 66 * + - CAST ( - + 73 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) + - 32
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5642
SELECT ALL - 11 DIV COUNT( * ) * + - 16
----
176

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - 11 / COUNT ( * ) * + - 16
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5643
SELECT DISTINCT + MAX( + CAST( NULL AS SIGNED ) ) / - ( + 6 ) + 65 * + 7 - + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + MAX ( + CAST ( NULL AS INTEGER ) ) / - ( + 6 ) + 65 * + 7 - + + 73
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5644
SELECT DISTINCT - - 99 * - 14 - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT - - 99 * - 14 - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 31 * + 43
----
1333

query I rowsort
SELECT - - 55 * + - 99
----
-5445

onlyif mysql # aggregate syntax: 
query II rowsort label-5647
SELECT - - 80 * + ( - + 72 ) + 42 AS col0, + COUNT( * ) AS col2
----
-5718
1

skipif mysql # not compatible
query II rowsort label-5647
SELECT - - 80 * + ( - + 72 ) + 42 AS col0, + COUNT ( * ) AS col2
----
-5718
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5648
SELECT + + COUNT( - 99 ) * - 98 + + 73 DIV - 78
----
-98

skipif mysql # not compatible
query I rowsort label-5648
SELECT + + COUNT ( - 99 ) * - 98 + + 73 / - 78
----
-98

query I rowsort
SELECT ALL + - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL + - CASE 68 WHEN - 41 * + COUNT( * ) + + + COUNT( * ) THEN 64 * - 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL + - CASE 68 WHEN - 41 * + COUNT ( * ) + + + COUNT ( * ) THEN 64 * - 10 ELSE NULL END
----
NULL

query I rowsort
SELECT - 90 + + 72 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT DISTINCT - - COALESCE ( + 30, - - 43 + 68, COUNT( * ) ) * + ( + 15 ) * - COUNT( * ) * - 70 + + + COUNT( * ) * - 98 * + COUNT( DISTINCT - 66 )
----
31402

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT - - COALESCE ( + 30, - - 43 + 68, COUNT ( * ) ) * + ( + 15 ) * - COUNT ( * ) * - 70 + + + COUNT ( * ) * - 98 * + COUNT ( DISTINCT - 66 )
----
31402

query I rowsort
SELECT 54 * + + ( + 93 ) + 14
----
5036

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - - 43 + + COUNT( * ) * - 25
----
18

skipif mysql # not compatible
query I rowsort label-5654
SELECT - - 43 + + COUNT ( * ) * - 25
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT + + CASE + COALESCE ( + 54, + + 95 ) WHEN + + ( + COALESCE ( 65, - + 14, + COUNT( * ) ) ) THEN + COUNT( * ) WHEN + 64 + + 52 THEN NULL WHEN NULLIF ( ( + COUNT( * ) ), 82 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT + + CASE + COALESCE ( + 54, + + 95 ) WHEN + + ( + COALESCE ( 65, - + 14, + COUNT ( * ) ) ) THEN + COUNT ( * ) WHEN + 64 + + 52 THEN NULL WHEN NULLIF ( ( + COUNT ( * ) ), 82 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT - + CASE + + COUNT( * ) WHEN + 11 + 19 THEN + - 99 END + + - 18 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT - + CASE + + COUNT ( * ) WHEN + 11 + 19 THEN + - 99 END + + - 18 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5658
SELECT - - 62 + + 55 DIV ( - 86 ) + + COALESCE ( 73, + 32, + - COUNT( * ) + + 80 )
----
135

skipif mysql # not compatible
query I rowsort label-5658
SELECT - - 62 + + 55 / ( - 86 ) + + COALESCE ( 73, + 32, + - COUNT ( * ) + + 80 )
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-5659
SELECT ALL + ( COALESCE ( NULLIF ( + COUNT( * ), 86 * - 55 ), + 52, - 24 * + COUNT( * ) + 97 * + 56 ) ) AS col0, - ( - + 63 )
----
1
63

skipif mysql # not compatible
query II rowsort label-5659
SELECT ALL + ( COALESCE ( NULLIF ( + COUNT ( * ), 86 * - 55 ), + 52, - 24 * + COUNT ( * ) + 97 * + 56 ) ) AS col0, - ( - + 63 )
----
1
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5660
SELECT - COUNT( * ) * + + NULLIF ( - 79, - 32 + - 73 ) DIV - 89 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5660
SELECT - COUNT ( * ) * + + NULLIF ( - 79, - 32 + - 73 ) / - 89 * - COUNT ( * )
----
0

query I rowsort
SELECT + 9 + + 60 + - 16 col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5662
SELECT COUNT( * ) col0, + 96
----
1
96

skipif mysql # not compatible
query II rowsort label-5662
SELECT COUNT ( * ) col0, + 96
----
1
96

query I rowsort
SELECT ALL + 17 * 33 + - ( 58 )
----
503

onlyif mysql # aggregate syntax: 
query II rowsort label-5664
SELECT ALL 12 * - - ( + 66 ) + + COUNT( 61 ), 32 col2
----
793
32

skipif mysql # not compatible
query II rowsort label-5664
SELECT ALL 12 * - - ( + 66 ) + + COUNT ( 61 ), 32 col2
----
793
32

query I rowsort
SELECT - 73 + - 86 AS col1
----
-159

query I rowsort
SELECT ALL 43 + 86
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT - 49 + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-5667
SELECT - 49 + COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL - COUNT( * ) + 39
----
38

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - COUNT ( * ) + 39
----
38

query II rowsort
SELECT ALL 58 AS col1, + 33 AS col2
----
58
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT ALL + 67 + - + NULLIF ( + 95, - COALESCE ( + COUNT( * ), + 26 ) / CAST( + 97 AS SIGNED ) ) * + + 26 AS col1
----
-2403

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + 67 + - + NULLIF ( + 95, - COALESCE ( + COUNT ( * ), + 26 ) / CAST ( + 97 AS INTEGER ) ) * + + 26 AS col1
----
-2403

query I rowsort
SELECT - 37 * - 17 AS col2
----
629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5672
SELECT - ( - CAST( - + COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5672
SELECT - ( - CAST ( - + COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + 19 + - - ( - - COUNT( DISTINCT - - 93 ) ) + + 84 + 63 * 49
----
3191

skipif mysql # not compatible
query I rowsort label-5673
SELECT + 19 + - - ( - - COUNT ( DISTINCT - - 93 ) ) + + 84 + 63 * 49
----
3191

onlyif mysql # aggregate syntax: 
query II rowsort label-5674
SELECT ALL 69 AS col2, MAX( + 44 )
----
69
44

skipif mysql # not compatible
query II rowsort label-5674
SELECT ALL 69 AS col2, MAX ( + 44 )
----
69
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT - 89 DIV 18
----
-4

skipif mysql # not compatible
query I rowsort label-5675
SELECT - 89 / 18
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT - 7 * - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-5676
SELECT - 7 * - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL 77 - - + MAX( DISTINCT + 78 )
----
155

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL 77 - - + MAX ( DISTINCT + 78 )
----
155

query II rowsort
SELECT DISTINCT 34 AS col0, NULLIF ( 27, - 77 ) AS col2
----
34
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT ALL 93 * - 11 * COUNT( * ) AS col1
----
-1023

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL 93 * - 11 * COUNT ( * ) AS col1
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT SUM( ALL 53 ) * + 56
----
2968

skipif mysql # not compatible
query I rowsort label-5680
SELECT SUM ( ALL 53 ) * + 56
----
2968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5681
SELECT ALL + 70 - - + CASE - 85 WHEN - NULLIF ( 76, + 30 ) THEN + - COALESCE ( - ( + 98 ), - COUNT( * ) + - 71 / + 45 ) WHEN - CAST( COALESCE ( 93, 18 + ( + 51 ) + COUNT( * ) * + + 73 + + - 91, - + COUNT( * ) ) AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + 70 - - + CASE - 85 WHEN - NULLIF ( 76, + 30 ) THEN + - COALESCE ( - ( + 98 ), - COUNT ( * ) + - 71 / + 45 ) WHEN - CAST ( COALESCE ( 93, 18 + ( + 51 ) + COUNT ( * ) * + + 73 + + - 91, - + COUNT ( * ) ) AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT ALL - MIN( ALL + 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL - MIN ( ALL + 65 ) AS col2
----
-65

query I rowsort
SELECT + 15 - + + 24 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5684
SELECT + 70, - COUNT( * ) col1
----
70
-1

skipif mysql # not compatible
query II rowsort label-5684
SELECT + 70, - COUNT ( * ) col1
----
70
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5685
SELECT 15 * - 46 * - COUNT( * ) * - + 54 + CAST( NULL AS SIGNED ) + - + COALESCE ( - + 40, 9, + 71 ) - + CAST( + 32 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT 15 * - 46 * - COUNT ( * ) * - + 54 + CAST ( NULL AS INTEGER ) + - + COALESCE ( - + 40, 9, + 71 ) - + CAST ( + 32 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 98 * 63 AS col2
----
6174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT ALL 68 * + CAST( - COUNT( ALL + 65 ) AS SIGNED ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL 68 * + CAST ( - COUNT ( ALL + 65 ) AS INTEGER ) AS col1
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5688
SELECT - COUNT( * ) * - 87 DIV 72 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5688
SELECT - COUNT ( * ) * - 87 / 72 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5689
SELECT + 13 / - 72 + + - ( + - COALESCE ( - 89, - 76 * 41 + 92, + + ( 71 ) * + 89 ) ) + - 57 * - + CASE - 64 WHEN + ( - 84 ) THEN - 40 ELSE + - CAST( NULL AS SIGNED ) END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT + 13 / - 72 + + - ( + - COALESCE ( - 89, - 76 * 41 + 92, + + ( 71 ) * + 89 ) ) + - 57 * - + CASE - 64 WHEN + ( - 84 ) THEN - 40 ELSE + - CAST ( NULL AS INTEGER ) END * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5690
SELECT - MIN( 41 ) DIV 26 - 0 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5690
SELECT - MIN ( 41 ) / 26 - 0 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL 35 * + SUM( 86 ) AS col1
----
3010

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL 35 * + SUM ( 86 ) AS col1
----
3010

query II rowsort
SELECT DISTINCT - - 39 AS col1, 45 * + 15
----
39
675

query I rowsort
SELECT + ( + 90 ) col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5694
SELECT ALL - CAST( NULL AS SIGNED ) + - + COUNT( * ) - - + 21 / + 65 + + 98 + - COUNT( * ) / + 42 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) - - + 21 / + 65 + + 98 + - COUNT ( * ) / + 42 + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 37 * + 16
----
-592

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT ALL + 11 + + COALESCE ( + COUNT( * ), - 98 )
----
12

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL + 11 + + COALESCE ( + COUNT ( * ), - 98 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT SUM( ALL + + CAST( NULL AS SIGNED ) ) * - - ( - + 34 ) * 30 + 85 + - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT SUM ( ALL + + CAST ( NULL AS INTEGER ) ) * - - ( - + 34 ) * 30 + 85 + - + 29
----
NULL

query II rowsort
SELECT DISTINCT - ( 86 ) AS col0, - 68 AS col0
----
-86
-68

query I rowsort
SELECT DISTINCT 20 + - 38
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT 23 * + COUNT( * ) * 30
----
690

skipif mysql # not compatible
query I rowsort label-5700
SELECT 23 * + COUNT ( * ) * 30
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT 4 + + - 66 + NULLIF ( COUNT( * ), - 10 ) * - 17 + - - 22
----
-57

skipif mysql # not compatible
query I rowsort label-5701
SELECT 4 + + - 66 + NULLIF ( COUNT ( * ), - 10 ) * - 17 + - - 22
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT DISTINCT 6 AS col0, COUNT( * ) AS col1
----
6
1

skipif mysql # not compatible
query II rowsort label-5702
SELECT DISTINCT 6 AS col0, COUNT ( * ) AS col1
----
6
1

query II rowsort
SELECT ALL 58 AS col2, 91 AS col2
----
58
91

query I rowsort
SELECT 49 * - 29 AS col1
----
-1421

query I rowsort
SELECT ALL - 0 - - 81
----
81

query I rowsort
SELECT 32 + + 7 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT ALL + 36 - MIN( ALL + 27 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL + 36 - MIN ( ALL + 27 ) AS col1
----
9

query I rowsort
SELECT 39 * - + 10 AS col0
----
-390

query I rowsort
SELECT ALL + 27 * + + 55
----
1485

query I rowsort
SELECT DISTINCT + 55 - + 61
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5711
SELECT ALL 30 * 38 DIV - + 13
----
-87

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL 30 * 38 / - + 13
----
-87

query II rowsort
SELECT DISTINCT 32 AS col1, - 31 AS col1
----
32
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ( + 45 ) + + 71 - + NULLIF ( - NULLIF ( MAX( DISTINCT - 23 ), + ( - + 47 ) * + + 8 ), - 10 - + 26 ) * + COUNT( * ) * 91
----
-1977

skipif mysql # not compatible
query I rowsort label-5713
SELECT ( + 45 ) + + 71 - + NULLIF ( - NULLIF ( MAX ( DISTINCT - 23 ), + ( - + 47 ) * + + 8 ), - 10 - + 26 ) * + COUNT ( * ) * 91
----
-1977

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT 74 + - CAST( - NULLIF ( 62, + + 95 + 64 ) AS SIGNED ) + + 1 + + 12 * + 58 * + - 19 * + ( + 8 ) * 46
----
-4866295

skipif mysql # not compatible
query I rowsort label-5714
SELECT 74 + - CAST ( - NULLIF ( 62, + + 95 + 64 ) AS INTEGER ) + + 1 + + 12 * + 58 * + - 19 * + ( + 8 ) * 46
----
-4866295

query II rowsort
SELECT 64 - + - 52, 90 AS col2
----
116
90

query I rowsort
SELECT DISTINCT ( - 92 ) AS col1
----
-92

query II rowsort
SELECT ALL - 53 AS col0, ( - - 78 ) AS col2
----
-53
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT 97 * 4 * + 32 + + 42 - - COUNT( * ) * MIN( ALL + 84 ) col1, + 14 * + 97 + - 55
----
12542
1303

skipif mysql # not compatible
query II rowsort label-5718
SELECT 97 * 4 * + 32 + + 42 - - COUNT ( * ) * MIN ( ALL + 84 ) col1, + 14 * + 97 + - 55
----
12542
1303

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT ALL - - 86 * + COUNT( ALL - 97 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL - - 86 * + COUNT ( ALL - 97 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5720
SELECT + 99, - ( - 80 ) * + COUNT( * ) + - 56 + - + 68 AS col1
----
99
-44

skipif mysql # not compatible
query II rowsort label-5720
SELECT + 99, - ( - 80 ) * + COUNT ( * ) + - 56 + - + 68 AS col1
----
99
-44

query I rowsort
SELECT ALL - + 89 AS col1
----
-89

query II rowsort
SELECT DISTINCT - - 28 AS col0, + 25 - - 91 AS col2
----
28
116

onlyif mysql # aggregate syntax: 
query III rowsort label-5723
SELECT ALL - ( - 69 ) AS col1, - SUM( - 58 ) AS col1, 86 * + 70 + + + 67 * + 48 AS col0
----
69
58
9236

skipif mysql # not compatible
query III rowsort label-5723
SELECT ALL - ( - 69 ) AS col1, - SUM ( - 58 ) AS col1, 86 * + 70 + + + 67 * + 48 AS col0
----
69
58
9236

query I rowsort
SELECT + 72 * + 44 AS col2
----
3168

query II rowsort
SELECT DISTINCT - 94 AS col1, + 71 AS col2
----
-94
71

query I rowsort
SELECT 53 + - 29 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5727
SELECT + CAST( 5 AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5727
SELECT + CAST ( 5 AS INTEGER ) AS col1
----
5

query I rowsort
SELECT + - 42 * - 53 + + - 88 AS col0
----
2138

query I rowsort
SELECT 43 * + 16 AS col0
----
688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5730
SELECT - 14 * SUM( ALL + ( - 11 ) ) * + 20 + + 84 + + - 87 + + 56 + - - 78 DIV - 4 AS col0
----
3114

skipif mysql # not compatible
query I rowsort label-5730
SELECT - 14 * SUM ( ALL + ( - 11 ) ) * + 20 + + 84 + + - 87 + + 56 + - - 78 / - 4 AS col0
----
3114

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL + COUNT( * ) + + - 83 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL + COUNT ( * ) + + - 83 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL - 71 + 62 + - + 24 * - SUM( ALL + - 53 ) * + 4 AS col2
----
-5097

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL - 71 + 62 + - + 24 * - SUM ( ALL + - 53 ) * + 4 AS col2
----
-5097

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT COUNT( * ) + - + MAX( - + 96 ) * - - 75 AS col2
----
7201

skipif mysql # not compatible
query I rowsort label-5733
SELECT COUNT ( * ) + - + MAX ( - + 96 ) * - - 75 AS col2
----
7201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT ALL AVG ( DISTINCT + 86 ) + + - COALESCE ( - - 68, - + 15 ) + - 68 / ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL AVG ( DISTINCT + 86 ) + + - COALESCE ( - - 68, - + 15 ) + - 68 / ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5735
SELECT COUNT( * ) + + 3 * - 94, 58 AS col0
----
-281
58

skipif mysql # not compatible
query II rowsort label-5735
SELECT COUNT ( * ) + + 3 * - 94, 58 AS col0
----
-281
58

query I rowsort
SELECT ALL 79 + + 92 AS col2
----
171

query II rowsort
SELECT ALL + ( - 67 ) + + - 64, + 11 * + 71 AS col1
----
-131
781

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5738
SELECT 40 * COUNT( * ) + CAST( NULL AS SIGNED ) / COUNT( DISTINCT 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT 40 * COUNT ( * ) + CAST ( NULL AS INTEGER ) / COUNT ( DISTINCT 1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT 13 DIV 78 * ( + 97 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5739
SELECT 13 / 78 * ( + 97 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5740
SELECT 49 + COUNT( * ) AS col2, + 95 + - 39 AS col2
----
50
56

skipif mysql # not compatible
query II rowsort label-5740
SELECT 49 + COUNT ( * ) AS col2, + 95 + - 39 AS col2
----
50
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5741
SELECT 58 + - 84 + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5741
SELECT 58 + - 84 + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5742
SELECT ALL + 68 - 4, MIN( - 62 ) + + + 26 AS col0
----
64
-36

skipif mysql # not compatible
query II rowsort label-5742
SELECT ALL + 68 - 4, MIN ( - 62 ) + + + 26 AS col0
----
64
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT - MAX( - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5743
SELECT - MAX ( - 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5744
SELECT 39 + CAST( - 0 AS SIGNED ) * COALESCE ( ( - COUNT( * ) ), - 13, + 14 * - - 90 * - 44 + + 14 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5744
SELECT 39 + CAST ( - 0 AS INTEGER ) * COALESCE ( ( - COUNT ( * ) ), - 13, + 14 * - - 90 * - 44 + + 14 ) AS col2
----
39

query I rowsort
SELECT ALL + 41 * - - 9 AS col1
----
369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5746
SELECT 48 + - AVG ( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT 48 + - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL ( - 50 ) * + + 1 AS col2
----
-50

query I rowsort
SELECT - 36 + + 86 * 14
----
1168

query I rowsort
SELECT - ( - 19 ) * - 58
----
-1102

query I rowsort
SELECT DISTINCT ( + - 84 )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-5751
SELECT ALL - ( + 20 ), - COUNT( * ) AS col2
----
-20
-1

skipif mysql # not compatible
query II rowsort label-5751
SELECT ALL - ( + 20 ), - COUNT ( * ) AS col2
----
-20
-1

query I rowsort
SELECT - - NULLIF ( + 21, 16 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT - CAST( + ( + 47 ) AS SIGNED ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-5753
SELECT - CAST ( + ( + 47 ) AS INTEGER ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT DISTINCT - + COUNT( * ) * - - 88
----
-88

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT - + COUNT ( * ) * - - 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL + COUNT( * ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL + COUNT ( * ) + + 24
----
25

query I rowsort
SELECT - 13 - + 81 * - - 18 * + 82 * - 83
----
9923135

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT + - 52 * + 60 + - CASE - - 90 WHEN - - 93 THEN - 63 - 36 ELSE + 56 + + MIN( 65 ) END * + 66 * + - 15 - - 62 + - ( - 95 ) col1
----
116827

skipif mysql # not compatible
query I rowsort label-5757
SELECT + - 52 * + 60 + - CASE - - 90 WHEN - - 93 THEN - 63 - 36 ELSE + 56 + + MIN ( 65 ) END * + 66 * + - 15 - - 62 + - ( - 95 ) col1
----
116827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5758
SELECT - NULLIF ( + CAST( - - COALESCE ( COUNT( * ), - 77 + + 3 - - - 29 * CASE + ( 5 ) WHEN - 0 + - 98 THEN MIN( DISTINCT - + 46 ) ELSE - + 47 END + + NULLIF ( - 65, - 27 * - 81 * 15 + 77 + - - 15 + - 49 / + - 12 * + 32 ) ) AS SIGNED ), + 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-5758
SELECT - NULLIF ( + CAST ( - - COALESCE ( COUNT ( * ), - 77 + + 3 - - - 29 * CASE + ( 5 ) WHEN - 0 + - 98 THEN MIN ( DISTINCT - + 46 ) ELSE - + 47 END + + NULLIF ( - 65, - 27 * - 81 * 15 + 77 + - - 15 + - 49 / + - 12 * + 32 ) ) AS INTEGER ), + 48 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT DISTINCT - + COUNT( * ) * 19 * - 62 * 12 * - ( + - 27 ) * - 50 + 39 AS col0
----
-19083561

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT - + COUNT ( * ) * 19 * - 62 * 12 * - ( + - 27 ) * - 50 + 39 AS col0
----
-19083561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT + - CASE - CAST( 22 AS SIGNED ) WHEN + 20 - 86 + 66 THEN + 61 + 88 ELSE 28 END AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-5760
SELECT + - CASE - CAST ( 22 AS INTEGER ) WHEN + 20 - 86 + 66 THEN + 61 + 88 ELSE 28 END AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5761
SELECT - 72 * - 98 - + 73 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT - 72 * - 98 - + 73 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5762
SELECT ALL - 37 * + + COUNT( * ) + - CAST( - 26 AS SIGNED ) + 21
----
10

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - 37 * + + COUNT ( * ) + - CAST ( - 26 AS INTEGER ) + 21
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL + MAX( 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL + MAX ( 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT + SUM( + + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT + SUM ( + + 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT + COUNT( * ) * + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-5765
SELECT + COUNT ( * ) * + - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT NULLIF ( + - 30, COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-5766
SELECT NULLIF ( + - 30, COUNT ( * ) )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5767
SELECT CASE - 90 WHEN CASE 55 WHEN + - COALESCE ( - - CAST( + 40 AS SIGNED ), - + 41 ) * + - 35 - - - 70 + - 43 THEN - 95 WHEN + CAST( NULL AS SIGNED ) THEN + 7 * + 87 * + + SUM( ALL - + 34 ) + + 97 + - + 51 ELSE NULL END THEN NULL WHEN + 13 THEN - - 50 * 80 WHEN + 43 * - - 49 + + - 1 * + - COUNT( * ) * + NULLIF ( - 37, 22 + - + ( 41 ) + - MAX( + + 44 ) ) THEN - 68 + - + 45 + - 89 ELSE NULL END AS col1, 29 DIV + 82 * - 92
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5767
SELECT CASE - 90 WHEN CASE 55 WHEN + - COALESCE ( - - CAST ( + 40 AS INTEGER ), - + 41 ) * + - 35 - - - 70 + - 43 THEN - 95 WHEN + CAST ( NULL AS INTEGER ) THEN + 7 * + 87 * + + SUM ( ALL - + 34 ) + + 97 + - + 51 ELSE NULL END THEN NULL WHEN + 13 THEN - - 50 * 80 WHEN + 43 * - - 49 + + - 1 * + - COUNT ( * ) * + NULLIF ( - 37, 22 + - + ( 41 ) + - MAX ( + + 44 ) ) THEN - 68 + - + 45 + - 89 ELSE NULL END AS col1, 29 / + 82 * - 92
----
NULL
0

query I rowsort
SELECT + ( + - 48 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT ALL + CASE - COUNT( * ) WHEN + 83 THEN + 60 * - CASE + + 77 WHEN + 28 THEN - - 37 * - - 21 - - 90 + + 38 + + - ( + ( - + ( 23 ) ) ) WHEN - + 86 THEN NULL WHEN COUNT( * ) THEN NULL WHEN - 66 + - - CAST( NULL AS SIGNED ) + - - 77 THEN NULL ELSE NULL END + ( 24 ) * + 33 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL + CASE - COUNT ( * ) WHEN + 83 THEN + 60 * - CASE + + 77 WHEN + 28 THEN - - 37 * - - 21 - - 90 + + 38 + + - ( + ( - + ( 23 ) ) ) WHEN - + 86 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - 66 + - - CAST ( NULL AS INTEGER ) + - - 77 THEN NULL ELSE NULL END + ( 24 ) * + 33 WHEN COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 54 * - - 9
----
-486

query I rowsort
SELECT + 43 * + + 36 * 53
----
82044

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT + NULLIF ( + 83, + + COUNT( * ) )
----
83

skipif mysql # not compatible
query I rowsort label-5772
SELECT + NULLIF ( + 83, + + COUNT ( * ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT SUM( ALL - + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-5773
SELECT SUM ( ALL - + 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT SUM( DISTINCT NULLIF ( 10, 41 - 59 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5774
SELECT SUM ( DISTINCT NULLIF ( 10, 41 - 59 ) ) AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5775
SELECT + 30 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-5775
SELECT + 30 / - 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5776
SELECT - CAST( - - AVG ( 16 ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-5776
SELECT - CAST ( - - AVG ( 16 ) AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT + COUNT( * ) + + 71 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5777
SELECT + COUNT ( * ) + + 71 AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5778
SELECT - - COUNT( * ) * + 97 DIV - 76 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5778
SELECT - - COUNT ( * ) * + 97 / - 76 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT ALL - COUNT( * ) * 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL - COUNT ( * ) * 68 AS col1
----
-68

query I rowsort
SELECT + + 53 + 2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5781
SELECT ALL + CAST( NULL AS SIGNED ) + + NULLIF ( + 41, + 29 ) + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL + CAST ( NULL AS INTEGER ) + + NULLIF ( + 41, + 29 ) + 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5782
SELECT DISTINCT - 89 DIV - - 76 + + 95 + 13 * - 92 - + + 37 AS col2
----
-1139

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT - 89 / - - 76 + + 95 + 13 * - 92 - + + 37 AS col2
----
-1139

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL + COUNT( * ) * - 64
----
-64

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL + COUNT ( * ) * - 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ALL - + COUNT( * ) + + + 29
----
28

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - + COUNT ( * ) + + + 29
----
28

query I rowsort
SELECT + 31 + + NULLIF ( + 41, + + 32 ) AS col2
----
72

query I rowsort
SELECT DISTINCT + 98 * - - 88 * - 15 AS col1
----
-129360

query I rowsort
SELECT - 45 + 30 * 63 AS col2
----
1845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5788
SELECT ALL NULLIF ( + AVG ( - 80 ), - 52 + + COALESCE ( + 75, + - MAX( DISTINCT - + 88 ) ) + 32 * - 52 ) + + COUNT( - - 20 ) + - 7 * - + COUNT( * ) * - 24 * - - COALESCE ( + COUNT( * ), + + 25 - - - 76 / + COUNT( * ) * + 33 * - + 72 ) * - 82 + - + 87 / - 68 * CAST( NULL AS SIGNED ) * 82 * 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL NULLIF ( + AVG ( - 80 ), - 52 + + COALESCE ( + 75, + - MAX ( DISTINCT - + 88 ) ) + 32 * - 52 ) + + COUNT ( - - 20 ) + - 7 * - + COUNT ( * ) * - 24 * - - COALESCE ( + COUNT ( * ), + + 25 - - - 76 / + COUNT ( * ) * + 33 * - + 72 ) * - 82 + - + 87 / - 68 * CAST ( NULL AS INTEGER ) * 82 * 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT + + 1 + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5789
SELECT + + 1 + + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5790
SELECT DISTINCT - 32 + 37 + + COUNT( * ) + + + COUNT( * ) DIV + - 19 * - 94 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT - 32 + 37 + + COUNT ( * ) + + + COUNT ( * ) / + - 19 * - 94 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT - COUNT( - 71 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5791
SELECT - COUNT ( - 71 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT - + COUNT( * ) + - 20 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5792
SELECT - + COUNT ( * ) + - 20 AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5793
SELECT DISTINCT COUNT( * ), - 60 DIV COUNT( * ) * ( - COUNT( * ) ) AS col2
----
1
60

skipif mysql # not compatible
query II rowsort label-5793
SELECT DISTINCT COUNT ( * ), - 60 / COUNT ( * ) * ( - COUNT ( * ) ) AS col2
----
1
60

query I rowsort
SELECT ALL + 24 + - 48
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT - 56 DIV + 10
----
-5

skipif mysql # not compatible
query I rowsort label-5795
SELECT - 56 / + 10
----
-5

query I rowsort
SELECT - 38 + 23
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT - 89 * - 56 + - 6 + + 15 DIV + 89
----
4978

skipif mysql # not compatible
query I rowsort label-5797
SELECT - 89 * - 56 + - 6 + + 15 / + 89
----
4978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5798
SELECT 77 DIV - - COUNT( * ) + - + 10 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5798
SELECT 77 / - - COUNT ( * ) + - + 10 AS col1
----
67

query I rowsort
SELECT + COALESCE ( 11, + 15 )
----
11

query I rowsort
SELECT DISTINCT + NULLIF ( 70, + 11 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT DISTINCT + MAX( 4 )
----
4

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT + MAX ( 4 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5802
SELECT ALL 55 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL 55 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - 92 ) AS col0
----
92

query I rowsort
SELECT 77 * + 82 AS col0
----
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ( + 63 ) + + MIN( + - 82 ) * 41 - - + 5 + - 86 AS col1
----
-3380

skipif mysql # not compatible
query I rowsort label-5805
SELECT ( + 63 ) + + MIN ( + - 82 ) * 41 - - + 5 + - 86 AS col1
----
-3380

query I rowsort
SELECT DISTINCT 47 * + 35
----
1645

onlyif mysql # aggregate syntax: 
query II rowsort label-5807
SELECT 67 * + - COUNT( * ), 56 AS col0
----
-67
56

skipif mysql # not compatible
query II rowsort label-5807
SELECT 67 * + - COUNT ( * ), 56 AS col0
----
-67
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5808
SELECT ALL 32 + + 48 DIV SUM( ALL 53 )
----
32

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL 32 + + 48 / SUM ( ALL 53 )
----
32

query I rowsort
SELECT ALL - 82 col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT + ( MAX( 68 ) )
----
68

skipif mysql # not compatible
query I rowsort label-5810
SELECT + ( MAX ( 68 ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT - MAX( ALL - - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-5811
SELECT - MAX ( ALL - - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5812
SELECT ALL - 36 + + 28, + 49 * - MAX( DISTINCT - 41 ) AS col2
----
-8
2009

skipif mysql # not compatible
query II rowsort label-5812
SELECT ALL - 36 + + 28, + 49 * - MAX ( DISTINCT - 41 ) AS col2
----
-8
2009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5813
SELECT - 91 + + - CASE - - 90 WHEN + 21 THEN - 35 + - + SUM( ALL 93 ) - 52 + - 23 * CAST( NULL AS SIGNED ) * + + COUNT( * ) * 98 WHEN 94 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5813
SELECT - 91 + + - CASE - - 90 WHEN + 21 THEN - 35 + - + SUM ( ALL 93 ) - 52 + - 23 * CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * 98 WHEN 94 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5814
SELECT CAST( NULL AS DECIMAL ) / + COUNT( ALL ( NULLIF ( - 66, + 74 / - 85 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT CAST ( NULL AS REAL ) / + COUNT ( ALL ( NULLIF ( - 66, + 74 / - 85 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5815
SELECT + 65 * - - ( MAX( - - 95 ) ), - 40 AS col0
----
6175
-40

skipif mysql # not compatible
query II rowsort label-5815
SELECT + 65 * - - ( MAX ( - - 95 ) ), - 40 AS col0
----
6175
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5816
SELECT ALL 35 DIV 35 DIV - - MAX( + + 78 ) AS col0, - 12 AS col0
----
0
-12

skipif mysql # not compatible
query II rowsort label-5816
SELECT ALL 35 / 35 / - - MAX ( + + 78 ) AS col0, - 12 AS col0
----
0
-12

onlyif mysql # aggregate syntax: 
query III rowsort label-5817
SELECT + 9 * - 48 col0, + COUNT( * ) + 94 + + 83 AS col0, 67
----
-432
178
67

skipif mysql # not compatible
query III rowsort label-5817
SELECT + 9 * - 48 col0, + COUNT ( * ) + 94 + + 83 AS col0, 67
----
-432
178
67

query I rowsort
SELECT 10 + ( + 82 ) * - 57 + - 47
----
-4711

query I rowsort
SELECT ALL 62 - + 11 - - 81
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5820
SELECT + COALESCE ( - 23, - 93, - CAST( NULL AS SIGNED ), + + ( - + 9 ) ) + CASE - + 44 WHEN + + 85 * 95 - - 84 + 16 / - 25 THEN - NULLIF ( - 52, + SUM( DISTINCT 72 ) ) END col2, + 81
----
NULL
81

skipif mysql # not compatible
query II rowsort label-5820
SELECT + COALESCE ( - 23, - 93, - CAST ( NULL AS INTEGER ), + + ( - + 9 ) ) + CASE - + 44 WHEN + + 85 * 95 - - 84 + 16 / - 25 THEN - NULLIF ( - 52, + SUM ( DISTINCT 72 ) ) END col2, + 81
----
NULL
81

query I rowsort
SELECT 20 + + + 80 + - + 64 * - 99 * + - 21
----
-132956

query II rowsort
SELECT ALL - 92 * - 9 * - 38 * + 39, + 8 col1
----
-1227096
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5823
SELECT CAST( - 97 AS SIGNED ) - + + CAST( - 6 AS SIGNED ) * - 79 AS col1
----
-571

skipif mysql # not compatible
query I rowsort label-5823
SELECT CAST ( - 97 AS INTEGER ) - + + CAST ( - 6 AS INTEGER ) * - 79 AS col1
----
-571

query II rowsort
SELECT 20 AS col0, - 57 AS col2
----
20
-57

query I rowsort
SELECT 58 + 12 - ( + 38 ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5826
SELECT COUNT( * ) * + 69 * + 2 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT COUNT ( * ) * + 69 * + 2 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT ALL - 9 DIV + 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - 9 / + 29 AS col0
----
0

query II rowsort
SELECT + 45, - 65 AS col1
----
45
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL - MIN( ALL - + 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL - MIN ( ALL - + 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT DISTINCT + 91 * + COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT + 91 * + COUNT ( * ) AS col1
----
91

query I rowsort
SELECT 52 - - 39 AS col1
----
91

query I rowsort
SELECT ALL + 82 * + 0 AS col2
----
0

query I rowsort
SELECT 58 * - 3
----
-174

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5834
SELECT ALL + COUNT( * ) DIV + + ( - - 53 ) AS col0, + 63 DIV 77
----
0
0

skipif mysql # not compatible
query II rowsort label-5834
SELECT ALL + COUNT ( * ) / + + ( - - 53 ) AS col0, + 63 / 77
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT - COUNT( * ) * - + ( - - NULLIF ( - COUNT( * ), + CASE + + COUNT( + 83 ) WHEN - 97 THEN NULL ELSE - 57 END * - 54 * - 9 * + - 8 + + + 52 - - 47 * + 18 * - + 25 ) ) - + 61 + + 72 + + - 85 * 43 + 22 AS col2
----
-3623

skipif mysql # not compatible
query I rowsort label-5835
SELECT - COUNT ( * ) * - + ( - - NULLIF ( - COUNT ( * ), + CASE + + COUNT ( + 83 ) WHEN - 97 THEN NULL ELSE - 57 END * - 54 * - 9 * + - 8 + + + 52 - - 47 * + 18 * - + 25 ) ) - + 61 + + 72 + + - 85 * 43 + 22 AS col2
----
-3623

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT 77 DIV - + 39
----
-1

skipif mysql # not compatible
query I rowsort label-5836
SELECT 77 / - + 39
----
-1

query I rowsort
SELECT 83 * 63 AS col2
----
5229

onlyif mysql # aggregate syntax: 
query II rowsort label-5838
SELECT ALL - 22 AS col0, + 52 - COUNT( DISTINCT + 11 ) + 67 * 26
----
-22
1793

skipif mysql # not compatible
query II rowsort label-5838
SELECT ALL - 22 AS col0, + 52 - COUNT ( DISTINCT + 11 ) + 67 * 26
----
-22
1793

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5839
SELECT DISTINCT + 65 + CAST( + COUNT( * ) AS DECIMAL ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT + 65 + CAST ( + COUNT ( * ) AS REAL ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5840
SELECT ALL + 47 + - CAST( - 52 AS SIGNED ) col0
----
99

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL + 47 + - CAST ( - 52 AS INTEGER ) col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5841
SELECT ALL - COALESCE ( - + 18, - - NULLIF ( 44, + - NULLIF ( - + 82, + SUM( + 30 ) * + + 93 ) * + 74 * + 46 ), MIN( DISTINCT 92 ) * 35 * + - 40 DIV - 62 )
----
18

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL - COALESCE ( - + 18, - - NULLIF ( 44, + - NULLIF ( - + 82, + SUM ( + 30 ) * + + 93 ) * + 74 * + 46 ), MIN ( DISTINCT 92 ) * 35 * + - 40 / - 62 )
----
18

query I rowsort
SELECT DISTINCT 35 + 34 AS col2
----
69

query I rowsort
SELECT 97 + - + 63
----
34

query I rowsort
SELECT - - ( + - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT - COUNT( DISTINCT 52 ) + ( COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5845
SELECT - COUNT ( DISTINCT 52 ) + ( COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT - MAX( DISTINCT - + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5846
SELECT - MAX ( DISTINCT - + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT 35 + + NULLIF ( + - 14, SUM( + 16 ) * - + 83 * + 45 + CASE - 60 WHEN + CASE + - 59 WHEN 70 THEN NULL WHEN 62 * - - 96 THEN NULL WHEN - - 3 THEN + ( + + 83 ) + - - COUNT( * ) * + ( - 49 ) * + ( + 98 ) END THEN - + COUNT( * ) * - 8 + - 26 * + 67 + 3 + + - 96 - + 12 ELSE NULL END )
----
21

skipif mysql # not compatible
query I rowsort label-5847
SELECT 35 + + NULLIF ( + - 14, SUM ( + 16 ) * - + 83 * + 45 + CASE - 60 WHEN + CASE + - 59 WHEN 70 THEN NULL WHEN 62 * - - 96 THEN NULL WHEN - - 3 THEN + ( + + 83 ) + - - COUNT ( * ) * + ( - 49 ) * + ( + 98 ) END THEN - + COUNT ( * ) * - 8 + - 26 * + 67 + 3 + + - 96 - + 12 ELSE NULL END )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT - 63 * COUNT( DISTINCT - - 41 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-5848
SELECT - 63 * COUNT ( DISTINCT - - 41 ) AS col0
----
-63

query I rowsort
SELECT DISTINCT + 82 * + + 75 + + 45 * 14 * + + 72 AS col0
----
51510

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL + COUNT( * ) - - + SUM( 85 ) * + ( - COUNT( * ) ) + + 68
----
-16

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL + COUNT ( * ) - - + SUM ( 85 ) * + ( - COUNT ( * ) ) + + 68
----
-16

query I rowsort
SELECT ALL - ( - 66 ) col1
----
66

query I rowsort
SELECT DISTINCT + ( 16 ) * - 16
----
-256

query I rowsort
SELECT + 29 + 35 + 69 * + 51 AS col1
----
3583

query I rowsort
SELECT - + 89
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT ( ( 7 ) ) + 74 * - ( - - COUNT( * ) ) - + 88 + - 67 * + - 3 col0
----
46

skipif mysql # not compatible
query I rowsort label-5855
SELECT ( ( 7 ) ) + 74 * - ( - - COUNT ( * ) ) - + 88 + - 67 * + - 3 col0
----
46

query I rowsort
SELECT ALL + 63 - - 79
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-5857
SELECT - 3 AS col2, COUNT( * ) AS col2
----
-3
1

skipif mysql # not compatible
query II rowsort label-5857
SELECT - 3 AS col2, COUNT ( * ) AS col2
----
-3
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5858
SELECT - 96 DIV - 67 + - 11 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-5858
SELECT - 96 / - 67 + - 11 AS col0
----
-10

query I rowsort
SELECT - ( + 48 ) * + 57 AS col2
----
-2736

onlyif mysql # aggregate syntax: 
query II rowsort label-5860
SELECT - 79 + 6 + COUNT( * ), - COUNT( * ) col1
----
-72
-1

skipif mysql # not compatible
query II rowsort label-5860
SELECT - 79 + 6 + COUNT ( * ), - COUNT ( * ) col1
----
-72
-1

query II rowsort
SELECT DISTINCT 35 AS col0, - 11
----
35
-11

query I rowsort
SELECT ALL 79 * + + 19 col1
----
1501

query I rowsort
SELECT ALL 38 * 15 * + 60
----
34200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5864
SELECT + 68 DIV + - 1 + - 27 - + COUNT( * ) * - - 63 AS col2
----
-158

skipif mysql # not compatible
query I rowsort label-5864
SELECT + 68 / + - 1 + - 27 - + COUNT ( * ) * - - 63 AS col2
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT + CASE - + 13 WHEN + 24 * + + 17 * + MIN( 11 ) / + 43 * + ( + 90 ) + + - 24 + + - 82 THEN NULL WHEN - 11 THEN NULL ELSE + - 60 END AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-5865
SELECT + CASE - + 13 WHEN + 24 * + + 17 * + MIN ( 11 ) / + 43 * + ( + 90 ) + + - 24 + + - 82 THEN NULL WHEN - 11 THEN NULL ELSE + - 60 END AS col2
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5866
SELECT ALL - 33 * + 58 * - 65 + COALESCE ( 8, - + 95, CASE - - 17 WHEN - CAST( NULL AS DECIMAL ) * 89 THEN 70 WHEN 9 THEN NULL END ) + + 2 AS col1
----
124420

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL - 33 * + 58 * - 65 + COALESCE ( 8, - + 95, CASE - - 17 WHEN - CAST ( NULL AS REAL ) * 89 THEN 70 WHEN 9 THEN NULL END ) + + 2 AS col1
----
124420

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT + COUNT( * ) * - 26 * + 28
----
-728

skipif mysql # not compatible
query I rowsort label-5867
SELECT + COUNT ( * ) * - 26 * + 28
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT + 25 + - COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5868
SELECT + 25 + - COUNT ( * ) AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT + 49 DIV 42 * + + ( + 67 ) - 73 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5869
SELECT + 49 / 42 * + + ( + 67 ) - 73 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT 14 * 52 + - ( SUM( - 39 ) ) * - 27
----
-325

skipif mysql # not compatible
query I rowsort label-5870
SELECT 14 * 52 + - ( SUM ( - 39 ) ) * - 27
----
-325

query I rowsort
SELECT - 7 - ( - 49 ) * + + 96 AS col0
----
4697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5872
SELECT + COUNT( * ) DIV - 32 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5872
SELECT + COUNT ( * ) / - 32 + COUNT ( * )
----
1

query I rowsort
SELECT - ( 91 ) * - 40 AS col1
----
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL 80 * - + ( - + COUNT( * ) ) + + + 97 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL 80 * - + ( - + COUNT ( * ) ) + + + 97 AS col1
----
177

query I rowsort
SELECT DISTINCT + 44 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT DISTINCT COUNT( * ) * - 88 + 33 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT COUNT ( * ) * - 88 + 33 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL + COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5878
SELECT ALL 17 * - - 97 + - - 67 - - 10 AS col1, CAST( CAST( + COALESCE ( - 79, - 63, 37 ) AS SIGNED ) AS SIGNED ) * - CASE 68 WHEN + 48 + + 67 THEN - - 92 + + + 0 END + - 92 + COUNT( * ) + 73 / 23 AS col1
----
1726
NULL

skipif mysql # not compatible
query II rowsort label-5878
SELECT ALL 17 * - - 97 + - - 67 - - 10 AS col1, CAST ( CAST ( + COALESCE ( - 79, - 63, 37 ) AS INTEGER ) AS INTEGER ) * - CASE 68 WHEN + 48 + + 67 THEN - - 92 + + + 0 END + - 92 + COUNT ( * ) + 73 / 23 AS col1
----
1726
NULL

query I rowsort
SELECT + 50 * - 45 AS col2
----
-2250

query I rowsort
SELECT ALL + + ( + 75 ) * - 19
----
-1425

query I rowsort
SELECT + + 58 AS col1
----
58

query I rowsort
SELECT - + 4 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT - + COUNT( * ) * + 28
----
-28

skipif mysql # not compatible
query I rowsort label-5883
SELECT - + COUNT ( * ) * + 28
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT ALL + NULLIF ( + 53, + 31 * COUNT( * ) * ( + + 72 ) ) * - - 2 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL + NULLIF ( + 53, + 31 * COUNT ( * ) * ( + + 72 ) ) * - - 2 AS col0
----
106

query II rowsort
SELECT ALL + 37, 99 AS col1
----
37
99

query I rowsort
SELECT - - 47 * 47
----
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT DISTINCT + SUM( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT + SUM ( 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT - COUNT( + 64 ) * + 4 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5888
SELECT - COUNT ( + 64 ) * + 4 AS col2
----
-4

query I rowsort
SELECT - 80 - + 2 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-5890
SELECT - 20 AS col1, SUM( ALL + + 87 )
----
-20
87

skipif mysql # not compatible
query II rowsort label-5890
SELECT - 20 AS col1, SUM ( ALL + + 87 )
----
-20
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5891
SELECT ALL COALESCE ( + ( - + CAST( NULL AS SIGNED ) ), - MIN( 92 ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL COALESCE ( + ( - + CAST ( NULL AS INTEGER ) ), - MIN ( 92 ) ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5892
SELECT 71, + COALESCE ( - 44, + + COUNT( * ) ) * - + 75 AS col0
----
71
3300

skipif mysql # not compatible
query II rowsort label-5892
SELECT 71, + COALESCE ( - 44, + + COUNT ( * ) ) * - + 75 AS col0
----
71
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT + COUNT( ALL - 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5893
SELECT + COUNT ( ALL - 20 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5894
SELECT - + 21 * COALESCE ( + + CAST( 19 AS SIGNED ), - 11 * + 91 + + 41 + - 96 * + COUNT( * ) * + 56 * - 2 + - - 55 ) * - 81 AS col2
----
32319

skipif mysql # not compatible
query I rowsort label-5894
SELECT - + 21 * COALESCE ( + + CAST ( 19 AS INTEGER ), - 11 * + 91 + + 41 + - 96 * + COUNT ( * ) * + 56 * - 2 + - - 55 ) * - 81 AS col2
----
32319

query I rowsort
SELECT + - 15 * 25 + + 58 AS col0
----
-317

query II rowsort
SELECT ALL + 86, 40 * + - 90 * - ( 35 ) AS col2
----
86
126000

query I rowsort
SELECT ALL 38 * + - 30 * 34 AS col0
----
-38760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5898
SELECT DISTINCT + NULLIF ( - 45, - 33 ) * 23 * + 9 + + - COUNT( + 41 ) DIV + 79
----
-9315

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT + NULLIF ( - 45, - 33 ) * 23 * + 9 + + - COUNT ( + 41 ) / + 79
----
-9315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5899
SELECT DISTINCT 90 + - - SUM( ALL - ( + CAST( 97 AS SIGNED ) ) ) * COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT 90 + - - SUM ( ALL - ( + CAST ( 97 AS INTEGER ) ) ) * COUNT ( * )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT ALL CAST( + 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL CAST ( + 1 AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT + ( - - 53 ) DIV - 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT + ( - - 53 ) / - 69 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5902
SELECT - COUNT( * ) * + 27 AS col2, 62
----
-27
62

skipif mysql # not compatible
query II rowsort label-5902
SELECT - COUNT ( * ) * + 27 AS col2, 62
----
-27
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT - 84 + - - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5903
SELECT - 84 + - - COUNT ( * ) AS col0
----
-83

query I rowsort
SELECT + ( - + ( - - 23 ) ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5905
SELECT ALL COUNT( * ) / + - 91 * - 41 * + 57 + - - SUM( + CAST( - 15 AS SIGNED ) ) - COUNT( * ) - + CASE 71 WHEN - ( + COUNT( - ( - 12 ) ) ) + + 81 + 97 THEN - ( - 31 ) + - 5 * ( + + SUM( + 98 ) ) + + COALESCE ( + COUNT( 41 ), - CASE - - CAST( 47 AS SIGNED ) WHEN + + COUNT( * ) THEN NULL WHEN - 60 THEN NULL WHEN + - ( + - COUNT( * ) ) THEN CAST( - 65 AS SIGNED ) ELSE + 19 END - + + 52 ) END * + + 70 / + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL COUNT ( * ) / + - 91 * - 41 * + 57 + - - SUM ( + CAST ( - 15 AS INTEGER ) ) - COUNT ( * ) - + CASE 71 WHEN - ( + COUNT ( - ( - 12 ) ) ) + + 81 + 97 THEN - ( - 31 ) + - 5 * ( + + SUM ( + 98 ) ) + + COALESCE ( + COUNT ( 41 ), - CASE - - CAST ( 47 AS INTEGER ) WHEN + + COUNT ( * ) THEN NULL WHEN - 60 THEN NULL WHEN + - ( + - COUNT ( * ) ) THEN CAST ( - 65 AS INTEGER ) ELSE + 19 END - + + 52 ) END * + + 70 / + + 75
----
NULL

query I rowsort
SELECT ALL 42 * - COALESCE ( 11, - 23 ) * 53
----
-24486

onlyif mysql # aggregate syntax: 
query II rowsort label-5907
SELECT ALL COUNT( * ) * - 81, 86 AS col2
----
-81
86

skipif mysql # not compatible
query II rowsort label-5907
SELECT ALL COUNT ( * ) * - 81, 86 AS col2
----
-81
86

query I rowsort
SELECT ( - 72 ) AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5909
SELECT + 56 * - 5 DIV + + COUNT( * ) - - 10 AS col1
----
-270

skipif mysql # not compatible
query I rowsort label-5909
SELECT + 56 * - 5 / + + COUNT ( * ) - - 10 AS col1
----
-270

query I rowsort
SELECT + COALESCE ( - 91, - 19, 99 * + 16 * - 53 * 23 )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5911
SELECT ( - COUNT( * ) ), 54 AS col1
----
-1
54

skipif mysql # not compatible
query II rowsort label-5911
SELECT ( - COUNT ( * ) ), 54 AS col1
----
-1
54

query I rowsort
SELECT DISTINCT + 98 AS col0
----
98

query I rowsort
SELECT DISTINCT + 66 * + 57 AS col0
----
3762

query I rowsort
SELECT - - 10 * 98
----
980

query I rowsort
SELECT ALL - 5 * + - 24
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT - + 59 * - 18 + + - MIN( ALL 61 ) + - COUNT( * )
----
1000

skipif mysql # not compatible
query I rowsort label-5916
SELECT - + 59 * - 18 + + - MIN ( ALL 61 ) + - COUNT ( * )
----
1000

query I rowsort
SELECT - + ( + 45 ) + - 89 * - 38 * + 40 AS col1
----
135235

onlyif mysql # aggregate syntax: 
query II rowsort label-5918
SELECT ( + COUNT( * ) ) col0, 51 AS col0
----
1
51

skipif mysql # not compatible
query II rowsort label-5918
SELECT ( + COUNT ( * ) ) col0, 51 AS col0
----
1
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT 48 DIV - - ( + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-5919
SELECT 48 / - - ( + 36 )
----
1

query I rowsort
SELECT 58 * 87 AS col2
----
5046

onlyif mysql # DIV for integer division: 
query I rowsort label-5921
SELECT ALL - 50 + 16 DIV - 87 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL - 50 + 16 / - 87 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-5922
SELECT 38 + - 8 + COUNT( * ) AS col0, 10 AS col0
----
31
10

skipif mysql # not compatible
query II rowsort label-5922
SELECT 38 + - 8 + COUNT ( * ) AS col0, 10 AS col0
----
31
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5923
SELECT - 93, COUNT( * ) + 25 AS col0
----
-93
26

skipif mysql # not compatible
query II rowsort label-5923
SELECT - 93, COUNT ( * ) + 25 AS col0
----
-93
26

query I rowsort
SELECT 48 * 57 AS col2
----
2736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5925
SELECT DISTINCT + 78 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT + 78 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL - 60 + + ( + MAX( + 35 ) ) * - + 1
----
-95

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL - 60 + + ( + MAX ( + 35 ) ) * - + 1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ALL - 87 * MAX( DISTINCT 95 )
----
-8265

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL - 87 * MAX ( DISTINCT 95 )
----
-8265

onlyif mysql # DIV for integer division: 
query I rowsort label-5928
SELECT DISTINCT + 33 + - 91 + 28 DIV + - 82
----
-58

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT + 33 + - 91 + 28 / + - 82
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT + 53 * - 44 + + 7 + - - COUNT( * ) * 82
----
-2243

skipif mysql # not compatible
query I rowsort label-5929
SELECT + 53 * - 44 + + 7 + - - COUNT ( * ) * 82
----
-2243

query I rowsort
SELECT ALL + 15 + 78 * + 55 AS col2
----
4305

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT ALL - 61 * + COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL - 61 * + COUNT ( * ) AS col1
----
-61

query I rowsort
SELECT 63 + - 23 col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT ALL - ( CAST( - - 67 AS SIGNED ) )
----
-67

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL - ( CAST ( - - 67 AS INTEGER ) )
----
-67

query I rowsort
SELECT + 90 * - 51 + 37
----
-4553

query I rowsort
SELECT 11 * + + 34
----
374

query I rowsort
SELECT 18 - - 96 * ( - 3 )
----
-270

query I rowsort
SELECT ALL 0 - 57 + 64 AS col1
----
7

query II rowsort
SELECT + 64, - 13 * + 73 AS col2
----
64
-949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5939
SELECT + + COUNT( * ) DIV + - 72 + + 32 * CAST( COUNT( * ) AS SIGNED ) + + 0 + - 60
----
-28

skipif mysql # not compatible
query I rowsort label-5939
SELECT + + COUNT ( * ) / + - 72 + + 32 * CAST ( COUNT ( * ) AS INTEGER ) + + 0 + - 60
----
-28

query I rowsort
SELECT - 60 * - 54
----
3240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5941
SELECT ALL - 17 / + - CAST( NULL AS SIGNED ) + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL - 17 / + - CAST ( NULL AS INTEGER ) + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5942
SELECT - + 34 * + + 12 + - - 52 * COUNT( * ) DIV - COUNT( * ) col2
----
-460

skipif mysql # not compatible
query I rowsort label-5942
SELECT - + 34 * + + 12 + - - 52 * COUNT ( * ) / - COUNT ( * ) col2
----
-460

query I rowsort
SELECT - 26 * + + 68 - + 57
----
-1825

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT - CASE - - 66 WHEN - 49 + - COUNT( DISTINCT + + 47 ) THEN + COUNT( * ) ELSE - + 63 END AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5944
SELECT - CASE - - 66 WHEN - 49 + - COUNT ( DISTINCT + + 47 ) THEN + COUNT ( * ) ELSE - + 63 END AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5945
SELECT DISTINCT - - CAST( + 74 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT - - CAST ( + 74 AS INTEGER ) AS col2
----
74

query I rowsort
SELECT ALL - 76 * + + ( 29 ) * + 8 + + 3 AS col1
----
-17629

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5947
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL - - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + - 20 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT DISTINCT MAX( - 53 ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT MAX ( - 53 ) col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5950
SELECT DISTINCT + 93 + + 41 + + + MAX( 37 ) + + CASE - CASE ( 66 ) WHEN + 99 THEN 55 / + 23 + COALESCE ( - + 7, + - 35, + 12 - + + 51 ) - + 67 + 73 * + 87 * - 66 * - + 88 + - 71 WHEN - - 30 * + CAST( + - 6 AS SIGNED ) * + + 32 + - - 44 * - 16 + - ( - + 97 ) - - 48 THEN 75 ELSE NULL END WHEN 79 THEN + NULLIF ( 44, - COUNT( + CASE - 17 WHEN - + 50 THEN - 60 WHEN - 7 THEN - 21 + + 92 + 25 / 35 * 86 WHEN 66 + - 5 THEN NULL END ) ) ELSE NULL END / + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT + 93 + + 41 + + + MAX ( 37 ) + + CASE - CASE ( 66 ) WHEN + 99 THEN 55 / + 23 + COALESCE ( - + 7, + - 35, + 12 - + + 51 ) - + 67 + 73 * + 87 * - 66 * - + 88 + - 71 WHEN - - 30 * + CAST ( + - 6 AS INTEGER ) * + + 32 + - - 44 * - 16 + - ( - + 97 ) - - 48 THEN 75 ELSE NULL END WHEN 79 THEN + NULLIF ( 44, - COUNT ( + CASE - 17 WHEN - + 50 THEN - 60 WHEN - 7 THEN - 21 + + 92 + 25 / 35 * 86 WHEN 66 + - 5 THEN NULL END ) ) ELSE NULL END / + 69 AS col2
----
NULL

query I rowsort
SELECT ALL - 60 + + ( - - 6 ) + - NULLIF ( + - 37, ( + + 57 ) * + 1 ) AS col1
----
-17

query I rowsort
SELECT 59 * 93
----
5487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL + 49 + + CAST( + 45 AS SIGNED ) + NULLIF ( - 12, 55 - 35 ) * - + 1 * 97 AS col0
----
1258

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL + 49 + + CAST ( + 45 AS INTEGER ) + NULLIF ( - 12, 55 - 35 ) * - + 1 * 97 AS col0
----
1258

query I rowsort
SELECT - 80 col1
----
-80

query I rowsort
SELECT ALL 79 + 3 * + 98 AS col0
----
373

onlyif mysql # aggregate syntax: 
query II rowsort label-5956
SELECT COUNT( * ) - + - 86 col0, + 99
----
87
99

skipif mysql # not compatible
query II rowsort label-5956
SELECT COUNT ( * ) - + - 86 col0, + 99
----
87
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT DISTINCT - 46 + - + 64 + - ( - + 32 ) + + COUNT( * ) - 96 AS col1
----
-173

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT - 46 + - + 64 + - ( - + 32 ) + + COUNT ( * ) - 96 AS col1
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT - MIN( DISTINCT 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5958
SELECT - MIN ( DISTINCT 17 ) AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT DISTINCT 78 + - CASE ( - + ( COUNT( ALL - ( - - 98 ) ) ) ) WHEN ( + 60 ) THEN + ( + - COUNT( * ) ) * 68 + CAST( NULL AS SIGNED ) * - 6 + 23 ELSE NULL END + + 69 * 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT 78 + - CASE ( - + ( COUNT ( ALL - ( - - 98 ) ) ) ) WHEN ( + 60 ) THEN + ( + - COUNT ( * ) ) * 68 + CAST ( NULL AS INTEGER ) * - 6 + 23 ELSE NULL END + + 69 * 94 col1
----
NULL

query I rowsort
SELECT 83 + + 68
----
151

query I rowsort
SELECT 86 - ( - - 88 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT 67 * - + 52 / - CASE 69 WHEN COUNT( * ) / + 73 THEN - + 35 * + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT 67 * - + 52 / - CASE 69 WHEN COUNT ( * ) / + 73 THEN - + 35 * + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5963
SELECT - 36 DIV - 7 + - 71 * + 87 AS col2, NULLIF ( + + 11, - 96 )
----
-6172
11

skipif mysql # not compatible
query II rowsort label-5963
SELECT - 36 / - 7 + - 71 * + 87 AS col2, NULLIF ( + + 11, - 96 )
----
-6172
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT ALL - COUNT( * ) * 84
----
-84

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL - COUNT ( * ) * 84
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT ALL - + MIN( - 35 ), 50 AS col1
----
35
50

skipif mysql # not compatible
query II rowsort label-5965
SELECT ALL - + MIN ( - 35 ), 50 AS col1
----
35
50

query I rowsort
SELECT - 57 * + - 76
----
4332

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5967
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL - + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 0 * + - ( ( + 67 ) ) * + 9 AS col1
----
0

query I rowsort
SELECT + - 58 * - 73 - - 83
----
4317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5970
SELECT + COUNT( * ) DIV + CAST( + - 71 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5970
SELECT + COUNT ( * ) / + CAST ( + - 71 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5971
SELECT COALESCE ( 12, - - 16 ) * - - COUNT( * ) col0, SUM( DISTINCT + 51 )
----
12
51

skipif mysql # not compatible
query II rowsort label-5971
SELECT COALESCE ( 12, - - 16 ) * - - COUNT ( * ) col0, SUM ( DISTINCT + 51 )
----
12
51

query I rowsort
SELECT ALL - - CASE 96 WHEN - 64 THEN NULL ELSE + 3 * 93 END
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5973
SELECT CAST( - + 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-5973
SELECT CAST ( - + 57 AS INTEGER )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT DISTINCT + NULLIF ( - 21, + + NULLIF ( 98, CAST( NULL AS SIGNED ) + - - 33 + - - CAST( NULL AS SIGNED ) * - - 35 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT + NULLIF ( - 21, + + NULLIF ( 98, CAST ( NULL AS INTEGER ) + - - 33 + - - CAST ( NULL AS INTEGER ) * - - 35 ) )
----
-21

query I rowsort
SELECT ALL + - 58 + + 34 * 74
----
2458

query I rowsort
SELECT ALL + 64 + + 13
----
77

query I rowsort
SELECT ALL + ( 95 )
----
95

query I rowsort
SELECT + - 84 - + 66 + + CASE - + 27 WHEN 86 THEN - + ( 22 ) END * + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT DISTINCT 75 + ( + COUNT( * ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT 75 + ( + COUNT ( * ) ) AS col0
----
76

query I rowsort
SELECT ALL 79 + + ( - 8 ) + - 9
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5981
SELECT - CAST( NULL AS SIGNED ) * - 43 + + 17, 87 * - 4 AS col1
----
NULL
-348

skipif mysql # not compatible
query II rowsort label-5981
SELECT - CAST ( NULL AS INTEGER ) * - 43 + + 17, 87 * - 4 AS col1
----
NULL
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT - MIN( 16 ) col2
----
-16

skipif mysql # not compatible
query I rowsort label-5982
SELECT - MIN ( 16 ) col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT ALL - CAST( + 7 AS SIGNED ) * ( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - CAST ( + 7 AS INTEGER ) * ( - 0 )
----
0

query II rowsort
SELECT ALL 94, 43 col2
----
94
43

query I rowsort
SELECT ALL 25 - - 48 col0
----
73

query I rowsort
SELECT - COALESCE ( + 69, 16 * + 22 - + 6 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5987
SELECT + 7 + - NULLIF ( + 80, + 32 * - 13 - + CAST( + CAST( + 93 AS DECIMAL ) AS SIGNED ) ) AS col0, COUNT( + 7 ) AS col0
----
-73
1

skipif mysql # not compatible
query II rowsort label-5987
SELECT + 7 + - NULLIF ( + 80, + 32 * - 13 - + CAST ( + CAST ( + 93 AS REAL ) AS INTEGER ) ) AS col0, COUNT ( + 7 ) AS col0
----
-73
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5988
SELECT - COALESCE ( - 29, + + CAST( NULL AS SIGNED ) * 89 + - + 22 + + 80 + 27 DIV COUNT( * ) ) col2
----
29

skipif mysql # not compatible
query I rowsort label-5988
SELECT - COALESCE ( - 29, + + CAST ( NULL AS INTEGER ) * 89 + - + 22 + + 80 + 27 / COUNT ( * ) ) col2
----
29

query I rowsort
SELECT + 1 * - - ( + + 62 ) AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5990
SELECT - COALESCE ( 62, COUNT( * ) * 17 DIV + 16 ) AS col2, ( - COALESCE ( + 91, CASE + 41 WHEN + 68 * + 64 THEN - + 75 WHEN - CASE + + 47 WHEN + + 33 THEN NULL WHEN 60 DIV - 12 + 57 THEN 28 ELSE - CAST( NULL AS SIGNED ) + - 32 DIV + 16 END * - - 70 * + 43 DIV ( + - 96 ) THEN NULL WHEN - MAX( ALL + 36 ) THEN NULL ELSE - 93 END * - + COALESCE ( + CASE 94 WHEN COALESCE ( + 26, + COUNT( + CAST( 57 AS DECIMAL ) ) ) * 78 + + 79 + + 51 * + MIN( DISTINCT - 13 ) THEN NULL ELSE - - COUNT( 19 ) * - 74 END, CASE + 74 WHEN - ( + CAST( - AVG ( + 9 ) AS SIGNED ) ) THEN NULL WHEN + ( 47 ) + + 10 * COUNT( * ) THEN ( 92 ) + 66 END - ( 4 ) ) - - 57, 71 * + 64 + NULLIF ( ( + 54 ), + ( 4 ) * - 86 ) * MIN( DISTINCT + 66 ) ) ) AS col0
----
-62
-91

skipif mysql # not compatible
query II rowsort label-5990
SELECT - COALESCE ( 62, COUNT ( * ) * 17 / + 16 ) AS col2, ( - COALESCE ( + 91, CASE + 41 WHEN + 68 * + 64 THEN - + 75 WHEN - CASE + + 47 WHEN + + 33 THEN NULL WHEN 60 / - 12 + 57 THEN 28 ELSE - CAST ( NULL AS INTEGER ) + - 32 / + 16 END * - - 70 * + 43 / ( + - 96 ) THEN NULL WHEN - MAX ( ALL + 36 ) THEN NULL ELSE - 93 END * - + COALESCE ( + CASE 94 WHEN COALESCE ( + 26, + COUNT ( + CAST ( 57 AS REAL ) ) ) * 78 + + 79 + + 51 * + MIN ( DISTINCT - 13 ) THEN NULL ELSE - - COUNT ( 19 ) * - 74 END, CASE + 74 WHEN - ( + CAST ( - AVG ( + 9 ) AS INTEGER ) ) THEN NULL WHEN + ( 47 ) + + 10 * COUNT ( * ) THEN ( 92 ) + 66 END - ( 4 ) ) - - 57, 71 * + 64 + NULLIF ( ( + 54 ), + ( 4 ) * - 86 ) * MIN ( DISTINCT + 66 ) ) ) AS col0
----
-62
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT + ( COUNT( * ) ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-5991
SELECT + ( COUNT ( * ) ) * - 71
----
-71

query I rowsort
SELECT ALL 71 * + 97 col2
----
6887

query I rowsort
SELECT ALL COALESCE ( + 66, + - 30 * + + 28 )
----
66

query I rowsort
SELECT + 59 + + 16 col2
----
75

query I rowsort
SELECT DISTINCT 65 * - + 65
----
-4225

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT + 95 * - ( - COUNT( ALL - COALESCE ( - + 87, + 33 ) ) ) AS col2, + 34 + + CASE + - 39 WHEN + + ( - + 59 ) THEN NULL ELSE - 98 END + + - 95 AS col2
----
95
-159

skipif mysql # not compatible
query II rowsort label-5996
SELECT + 95 * - ( - COUNT ( ALL - COALESCE ( - + 87, + 33 ) ) ) AS col2, + 34 + + CASE + - 39 WHEN + + ( - + 59 ) THEN NULL ELSE - 98 END + + - 95 AS col2
----
95
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL - 61 * MIN( DISTINCT 45 ) + + 67 * + - ( 40 ) + 2
----
-5423

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL - 61 * MIN ( DISTINCT 45 ) + + 67 * + - ( 40 ) + 2
----
-5423

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT + COUNT( * ) + + 68 - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-5998
SELECT + COUNT ( * ) + + 68 - COUNT ( * )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5999
SELECT - 78 DIV + 18
----
-4

skipif mysql # not compatible
query I rowsort label-5999
SELECT - 78 / + 18
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6000
SELECT - - 23 - + NULLIF ( 98, + COUNT( * ) * 22 ) * + COALESCE ( + 15, 48 ) col1, 34 - - 67 * + + MAX( - - 15 ) * - + COALESCE ( - 56, - 49 ) * + + 88 * - 11 - CASE + 38 WHEN + 71 * + 47 THEN + 13 - - 25 WHEN + ( + 76 ) THEN NULL END AS col1
----
-1447
NULL

skipif mysql # not compatible
query II rowsort label-6000
SELECT - - 23 - + NULLIF ( 98, + COUNT ( * ) * 22 ) * + COALESCE ( + 15, 48 ) col1, 34 - - 67 * + + MAX ( - - 15 ) * - + COALESCE ( - 56, - 49 ) * + + 88 * - 11 - CASE + 38 WHEN + 71 * + 47 THEN + 13 - - 25 WHEN + ( + 76 ) THEN NULL END AS col1
----
-1447
NULL

query I rowsort
SELECT - 14 * - - 20 + + 32 * 13
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT + 6 * + 50 + + 34 * + MIN( - ( + 12 ) ) + - 76 AS col0
----
-184

skipif mysql # not compatible
query I rowsort label-6002
SELECT + 6 * + 50 + + 34 * + MIN ( - ( + 12 ) ) + - 76 AS col0
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT ALL + 25 * + + 20 + ( - 37 ) - - 12 * - 81 + COUNT( * ) col1
----
-508

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL + 25 * + + 20 + ( - 37 ) - - 12 * - 81 + COUNT ( * ) col1
----
-508

query I rowsort
SELECT DISTINCT - 89 * + 19 + - 46
----
-1737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6005
SELECT ALL - - 62 * + + 12 + - CAST( + + COUNT( * ) AS SIGNED ) AS col0
----
743

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL - - 62 * + + 12 + - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0
----
743

query I rowsort
SELECT - 33 * 41 AS col0
----
-1353

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT - COUNT( * ) * - CASE - 4 WHEN - - 97 / - 7 * COUNT( * ) + - 29 + + + 86 / + 5 * 28 + 44 THEN + 17 / 29 * + - ( - 20 ) WHEN - 15 * + 23 * + NULLIF ( - 18, - - 31 ) * - 9 / + 93 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT - COUNT ( * ) * - CASE - 4 WHEN - - 97 / - 7 * COUNT ( * ) + - 29 + + + 86 / + 5 * 28 + 44 THEN + 17 / 29 * + - ( - 20 ) WHEN - 15 * + 23 * + NULLIF ( - 18, - - 31 ) * - 9 / + 93 THEN NULL END
----
NULL

query I rowsort
SELECT COALESCE ( - 37, - 89 )
----
-37

query I rowsort
SELECT + - 47 + 48 AS col0
----
1

query I rowsort
SELECT + - 21 AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6011
SELECT DISTINCT - 19 * COALESCE ( - 36, ( - 74 ) + + 8 DIV + 62 + 84, + COUNT( * ) * + COUNT( * ) + - - 35 ) * - + ( - + 81 ) - 50 * - COUNT( * )
----
55454

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT - 19 * COALESCE ( - 36, ( - 74 ) + + 8 / + 62 + 84, + COUNT ( * ) * + COUNT ( * ) + - - 35 ) * - + ( - + 81 ) - 50 * - COUNT ( * )
----
55454

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL COUNT( * ) * 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL COUNT ( * ) * 33 AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6013
SELECT - ( - + NULLIF ( + 81, - 37 * CAST( 92 AS SIGNED ) + - 89 + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) * + NULLIF ( - 81, + - 94 ) ) ) DIV - 5 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6013
SELECT - ( - + NULLIF ( + 81, - 37 * CAST ( 92 AS INTEGER ) + - 89 + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * + NULLIF ( - 81, + - 94 ) ) ) / - 5 AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6014
SELECT ALL + 28 DIV 23 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL + 28 / 23 AS col2
----
1

query II rowsort
SELECT - 46 AS col0, 62 AS col1
----
-46
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT MIN( ALL 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6016
SELECT MIN ( ALL 87 ) AS col0
----
87

query I rowsort
SELECT ALL - 2 * 57 * + 89
----
-10146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6018
SELECT + 1 DIV SUM( - 29 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6018
SELECT + 1 / SUM ( - 29 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT - 13 * + COALESCE ( - - COUNT( 54 ), 67 )
----
-13

skipif mysql # not compatible
query I rowsort label-6019
SELECT - 13 * + COALESCE ( - - COUNT ( 54 ), 67 )
----
-13

query I rowsort
SELECT + 77 * + + ( + 71 ) AS col1
----
5467

query I rowsort
SELECT ALL 83 * + 37
----
3071

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6022
SELECT 46 col2, 82 * CAST( - + 73 AS SIGNED )
----
46
-5986

skipif mysql # not compatible
query II rowsort label-6022
SELECT 46 col2, 82 * CAST ( - + 73 AS INTEGER )
----
46
-5986

query I rowsort
SELECT ALL + 39 * + + ( + 24 )
----
936

query I rowsort
SELECT + 59 + - 19 AS col1
----
40

query I rowsort
SELECT + 94 - + - 24 AS col2
----
118

query I rowsort
SELECT ALL - 38 + + 85 AS col1
----
47

query I rowsort
SELECT + - 33 * + 84 AS col2
----
-2772

onlyif mysql # aggregate syntax: 
query II rowsort label-6028
SELECT - + SUM( DISTINCT - + 99 ) AS col1, - 61 col1
----
99
-61

skipif mysql # not compatible
query II rowsort label-6028
SELECT - + SUM ( DISTINCT - + 99 ) AS col1, - 61 col1
----
99
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6029
SELECT + - 83 DIV - - MIN( ALL - 16 )
----
5

skipif mysql # not compatible
query I rowsort label-6029
SELECT + - 83 / - - MIN ( ALL - 16 )
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6030
SELECT + ( 18 ) DIV 2 DIV + 11 + + - CAST( - 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-6030
SELECT + ( 18 ) / 2 / + 11 + + - CAST ( - 87 AS INTEGER )
----
87

query II rowsort
SELECT + + 72, - 32 AS col2
----
72
-32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6032
SELECT DISTINCT - 16, CAST( + 12 AS SIGNED ) DIV - - 23 AS col0
----
-16
0

skipif mysql # not compatible
query II rowsort label-6032
SELECT DISTINCT - 16, CAST ( + 12 AS INTEGER ) / - - 23 AS col0
----
-16
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT - 51 * 93 + - 78 + COUNT( - + 64 ) AS col1
----
-4820

skipif mysql # not compatible
query I rowsort label-6033
SELECT - 51 * 93 + - 78 + COUNT ( - + 64 ) AS col1
----
-4820

query I rowsort
SELECT DISTINCT - + 30 AS col1
----
-30

query I rowsort
SELECT + 4 - 31
----
-27

query I rowsort
SELECT + 87 * + 1 + + 4
----
91

query II rowsort
SELECT + - 57 AS col0, 20 AS col1
----
-57
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT COUNT( * ) + - + ( - 76 )
----
77

skipif mysql # not compatible
query I rowsort label-6038
SELECT COUNT ( * ) + - + ( - 76 )
----
77

query II rowsort
SELECT ALL - + 70 col1, - 62 * 42 * + 56
----
-70
-145824

onlyif mysql # aggregate syntax: 
query II rowsort label-6040
SELECT + 30, 49 * - 43 * COUNT( * ) AS col1
----
30
-2107

skipif mysql # not compatible
query II rowsort label-6040
SELECT + 30, 49 * - 43 * COUNT ( * ) AS col1
----
30
-2107

query I rowsort
SELECT DISTINCT - - 93 AS col0
----
93

query I rowsort
SELECT ALL + 33 - + 26
----
7

query I rowsort
SELECT 33 * 34 - - ( + 52 )
----
1174

query II rowsort
SELECT DISTINCT + 42 * - 14 * 53 col0, 82
----
-31164
82

query I rowsort
SELECT DISTINCT - 19 col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT 93 * NULLIF ( ( + COUNT( * ) ), + - 47 / - MAX( ALL + 93 ) - - + 55 )
----
93

skipif mysql # not compatible
query I rowsort label-6046
SELECT 93 * NULLIF ( ( + COUNT ( * ) ), + - 47 / - MAX ( ALL + 93 ) - - + 55 )
----
93

query I rowsort
SELECT ( - - ( - 99 ) ) * + + 23 + - ( - 12 ) col1
----
-2265

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT 76 + NULLIF ( COALESCE ( - 19, - - 7, - + 6 ), - NULLIF ( - 23, - - 1 ) ) * + - COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-6048
SELECT 76 + NULLIF ( COALESCE ( - 19, - - 7, - + 6 ), - NULLIF ( - 23, - - 1 ) ) * + - COUNT ( * ) AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6049
SELECT 83 * + CAST( + ( - ( + + 94 ) ) AS SIGNED ) * + + COUNT( * ) * + 21
----
-163842

skipif mysql # not compatible
query I rowsort label-6049
SELECT 83 * + CAST ( + ( - ( + + 94 ) ) AS INTEGER ) * + + COUNT ( * ) * + 21
----
-163842

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT ALL - 71 DIV 23 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL - 71 / 23 AS col0
----
-3

query I rowsort
SELECT DISTINCT + 43 + + + 91 * + 55 AS col1
----
5048

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT DISTINCT + 26 + + - CASE - COUNT( * ) WHEN + - 56 + + + 7 * - - 5 THEN - - 8 ELSE - + 5 END
----
31

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT + 26 + + - CASE - COUNT ( * ) WHEN + - 56 + + + 7 * - - 5 THEN - - 8 ELSE - + 5 END
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6053
SELECT 27 DIV 1 * - + 84
----
-2268

skipif mysql # not compatible
query I rowsort label-6053
SELECT 27 / 1 * - + 84
----
-2268

query I rowsort
SELECT DISTINCT - 53 * + 6
----
-318

onlyif mysql # DIV for integer division: 
query II rowsort label-6055
SELECT + 86 + - 13 AS col1, + 57 DIV 66 * - 80 AS col2
----
73
0

skipif mysql # not compatible
query II rowsort label-6055
SELECT + 86 + - 13 AS col1, + 57 / 66 * - 80 AS col2
----
73
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT COUNT( * ) * - 21
----
-21

skipif mysql # not compatible
query I rowsort label-6056
SELECT COUNT ( * ) * - 21
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6057
SELECT ALL + 48 + + 70 - + 82 DIV COALESCE ( + NULLIF ( CASE - 53 WHEN + 33 + 61 THEN + - 72 * + AVG ( DISTINCT 5 ) + 43 * 78 END, - + 10 + 77 * + COUNT( * ) ), - 41 + ( + 15 ) + - MIN( - ( 23 ) ) * + 45 + - - 40 ) * + ( 29 ) + + + COALESCE ( + COUNT( * ), - COUNT( ALL - + 68 ) ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL + 48 + + 70 - + 82 / COALESCE ( + NULLIF ( CASE - 53 WHEN + 33 + 61 THEN + - 72 * + AVG ( DISTINCT 5 ) + 43 * 78 END, - + 10 + 77 * + COUNT ( * ) ), - 41 + ( + 15 ) + - MIN ( - ( 23 ) ) * + 45 + - - 40 ) * + ( 29 ) + + + COALESCE ( + COUNT ( * ), - COUNT ( ALL - + 68 ) ) AS col0
----
119

query I rowsort
SELECT ALL ( + - 9 ) + 90
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT COUNT( * ) + + 4
----
5

skipif mysql # not compatible
query I rowsort label-6059
SELECT COUNT ( * ) + + 4
----
5

query I rowsort
SELECT DISTINCT + + 14 * + 18
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT DISTINCT + 99 + - NULLIF ( 25, - 9 + - - 30 ) + - + 33 * + 27 * - MIN( - - 7 ) AS col2
----
6311

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT + 99 + - NULLIF ( 25, - 9 + - - 30 ) + - + 33 * + 27 * - MIN ( - - 7 ) AS col2
----
6311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6062
SELECT 2 * - COUNT( * ) * + COUNT( * ) DIV + 7 + - 83 * COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-6062
SELECT 2 * - COUNT ( * ) * + COUNT ( * ) / + 7 + - 83 * COUNT ( * ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL - SUM( DISTINCT - - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL - SUM ( DISTINCT - - 55 ) AS col1
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6064
SELECT ALL + 66 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL + 66 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - + 96 )
----
-96

query I rowsort
SELECT + - 79 col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT + COUNT( * ) + - 84 * - + 53 + + 42 AS col2
----
4495

skipif mysql # not compatible
query I rowsort label-6067
SELECT + COUNT ( * ) + - 84 * - + 53 + + 42 AS col2
----
4495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6068
SELECT + CASE ( 96 ) WHEN + CAST( NULL AS SIGNED ) THEN + 78 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6068
SELECT + CASE ( 96 ) WHEN + CAST ( NULL AS INTEGER ) THEN + 78 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6069
SELECT 10 * + COUNT( * ) - + + 27 + 34 + MIN( DISTINCT 21 ) + 74, + 48 AS col1
----
112
48

skipif mysql # not compatible
query II rowsort label-6069
SELECT 10 * + COUNT ( * ) - + + 27 + 34 + MIN ( DISTINCT 21 ) + 74, + 48 AS col1
----
112
48

query I rowsort
SELECT DISTINCT + 72 - - 83 * - - 10 + 91 + 48
----
1041

query I rowsort
SELECT - 42 * + 68
----
-2856

query I rowsort
SELECT - 51 + + 54 AS col0
----
3

query I rowsort
SELECT ALL - 39 * 39 * + 34
----
-51714

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT DISTINCT + 22 * CASE 46 WHEN + + 41 THEN - + 10 * 85 + + COUNT( * ) + - 98 ELSE NULL END * - 24 / - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT + 22 * CASE 46 WHEN + + 41 THEN - + 10 * 85 + + COUNT ( * ) + - 98 ELSE NULL END * - 24 / - 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT ALL - NULLIF ( + - 70, + + COUNT( + - 94 ) / 68 )
----
70

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL - NULLIF ( + - 70, + + COUNT ( + - 94 ) / 68 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT 38 * - 0 DIV 11 + + 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6076
SELECT 38 * - 0 / 11 + + 40 AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT 57 DIV NULLIF ( + 25, + + 80 )
----
2

skipif mysql # not compatible
query I rowsort label-6077
SELECT 57 / NULLIF ( + 25, + + 80 )
----
2

query I rowsort
SELECT 71 col0
----
71

query I rowsort
SELECT 2 * 79
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-6080
SELECT 5 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-6080
SELECT 5 / - 71
----
0

query I rowsort
SELECT 12 + 16 + + 76
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6082
SELECT COUNT( + + NULLIF ( - + 69, - 67 * + 86 + - 46 ) ) DIV 41 * + - 47
----
0

skipif mysql # not compatible
query I rowsort label-6082
SELECT COUNT ( + + NULLIF ( - + 69, - 67 * + 86 + - 46 ) ) / 41 * + - 47
----
0

query I rowsort
SELECT ALL - 21 AS col0
----
-21

query II rowsort
SELECT DISTINCT - 24, - 97 AS col1
----
-24
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT ALL SUM( + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL SUM ( + 90 )
----
90

query II rowsort
SELECT 1 AS col0, 9 + - - 14 * - - 80 col2
----
1
1129

query I rowsort
SELECT DISTINCT 65 + - 88 * + 77 * + + 88 AS col2
----
-596223

onlyif mysql # aggregate syntax: 
query II rowsort label-6088
SELECT DISTINCT 42 + + 48 + - COUNT( * ) * - 22, 33 AS col0
----
112
33

skipif mysql # not compatible
query II rowsort label-6088
SELECT DISTINCT 42 + + 48 + - COUNT ( * ) * - 22, 33 AS col0
----
112
33

query I rowsort
SELECT ALL + 39 + + 12
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - COUNT( 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-6090
SELECT - COUNT ( 59 )
----
-1

query I rowsort
SELECT 1 - + 48 + + 80 AS col0
----
33

query I rowsort
SELECT 11 - 79 + + + 99 * - + 73
----
-7295

query I rowsort
SELECT DISTINCT + - 79 + + - 82
----
-161

query II rowsort
SELECT ALL + 22 col1, + 77
----
22
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL + MAX( DISTINCT + 90 ) + + NULLIF ( + - 24, - COUNT( * ) / COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL + MAX ( DISTINCT + 90 ) + + NULLIF ( + - 24, - COUNT ( * ) / COUNT ( * ) )
----
66

query II rowsort
SELECT DISTINCT - 84 AS col0, 5 AS col2
----
-84
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6097
SELECT DISTINCT + + ( 93 ) + CAST( NULL AS SIGNED ) + 83 + - - MIN( - 82 ) * + 26 * - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT + + ( 93 ) + CAST ( NULL AS INTEGER ) + 83 + - - MIN ( - 82 ) * + 26 * - + 73
----
NULL

query I rowsort
SELECT - ( 56 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6099
SELECT ALL - 95 - + 57 DIV SUM( ALL + 97 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL - 95 - + 57 / SUM ( ALL + 97 ) AS col1
----
-95

query I rowsort
SELECT ALL + + 37 - 44 + + - 79 col0
----
-86

query I rowsort
SELECT - - ( + - 86 )
----
-86

query I rowsort
SELECT - 86 * - 51 AS col0
----
4386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6103
SELECT + - ( 81 ) * - 20 + COUNT( DISTINCT - 14 ) DIV 28 + 67 * + + 45 AS col1
----
4635

skipif mysql # not compatible
query I rowsort label-6103
SELECT + - ( 81 ) * - 20 + COUNT ( DISTINCT - 14 ) / 28 + 67 * + + 45 AS col1
----
4635

query I rowsort
SELECT ALL + 45 * 15
----
675

onlyif mysql # aggregate syntax: 
query II rowsort label-6105
SELECT ( ( + + 7 ) ) AS col1, + 29 * COUNT( * ) * + 37 AS col1
----
7
1073

skipif mysql # not compatible
query II rowsort label-6105
SELECT ( ( + + 7 ) ) AS col1, + 29 * COUNT ( * ) * + 37 AS col1
----
7
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT + 69 + COALESCE ( - - CASE + 36 WHEN 55 THEN + 6 + + + 72 ELSE + COALESCE ( - 54, - 83 * 43 - 70 + + COUNT( * ), + 5 ) END, - 56 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6106
SELECT + 69 + COALESCE ( - - CASE + 36 WHEN 55 THEN + 6 + + + 72 ELSE + COALESCE ( - 54, - 83 * 43 - 70 + + COUNT ( * ), + 5 ) END, - 56 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT DISTINCT - - SUM( DISTINCT + + 61 ) * 23
----
1403

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT - - SUM ( DISTINCT + + 61 ) * 23
----
1403

query I rowsort
SELECT + - ( + - 96 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT ALL - 10 * + 16 * + COUNT( * )
----
-160

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL - 10 * + 16 * + COUNT ( * )
----
-160

onlyif mysql # aggregate syntax: 
query II rowsort label-6110
SELECT DISTINCT + - COUNT( * ) col1, - 85 AS col1
----
-1
-85

skipif mysql # not compatible
query II rowsort label-6110
SELECT DISTINCT + - COUNT ( * ) col1, - 85 AS col1
----
-1
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL + ( - SUM( + + 84 ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL + ( - SUM ( + + 84 ) ) AS col1
----
-84

query I rowsort
SELECT - 79 * + + 70 AS col2
----
-5530

query I rowsort
SELECT + CASE + 83 WHEN - + 37 THEN - 17 ELSE - 39 * - 62 * + - 36 + - - 92 - - COALESCE ( + 68, + + ( + 26 ) ) END AS col0
----
-86888

query I rowsort
SELECT ALL + 41 AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6115
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN 2 * 48 THEN + 10 + - 90 + + 43 / - 41 * 2 * - ( - + 85 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN 2 * 48 THEN + 10 + - 90 + + 43 / - 41 * 2 * - ( - + 85 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6116
SELECT + COUNT( DISTINCT 75 ) AS col2, + 15 AS col0
----
1
15

skipif mysql # not compatible
query II rowsort label-6116
SELECT + COUNT ( DISTINCT 75 ) AS col2, + 15 AS col0
----
1
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6117
SELECT + COUNT( * ) + - 15 + + MIN( ALL + CASE + CAST( - 85 AS SIGNED ) WHEN ( + 13 ) THEN NULL WHEN + + 47 * 61 THEN + CAST( NULL AS SIGNED ) ELSE - 73 + ( 65 ) END ) + 18 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6117
SELECT + COUNT ( * ) + - 15 + + MIN ( ALL + CASE + CAST ( - 85 AS INTEGER ) WHEN ( + 13 ) THEN NULL WHEN + + 47 * 61 THEN + CAST ( NULL AS INTEGER ) ELSE - 73 + ( 65 ) END ) + 18 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6118
SELECT ALL - 98 DIV - 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL - 98 / - 51 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6119
SELECT - MIN( DISTINCT - 20 ) * 42 DIV 33 - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-6119
SELECT - MIN ( DISTINCT - 20 ) * 42 / 33 - COUNT ( * )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT + 36 DIV - 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6120
SELECT + 36 / - 54 AS col2
----
0

query I rowsort
SELECT - 89 * - + 52 AS col1
----
4628

query I rowsort
SELECT - 65 - - 37
----
-28

query I rowsort
SELECT + 35 + 93 col2
----
128

query I rowsort
SELECT ALL - 10 * - NULLIF ( 50, - + 52 ) AS col0
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT NULLIF ( - + COUNT( * ), 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-6125
SELECT NULLIF ( - + COUNT ( * ), 20 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6126
SELECT DISTINCT COUNT( - - 67 ) - - - 57 DIV + - CAST( + ( + - 30 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT COUNT ( - - 67 ) - - - 57 / + - CAST ( + ( + - 30 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6127
SELECT - - 71 + - - CAST( + + ( - 45 ) AS SIGNED ), SUM( - 18 ) AS col2
----
26
-18

skipif mysql # not compatible
query II rowsort label-6127
SELECT - - 71 + - - CAST ( + + ( - 45 ) AS INTEGER ), SUM ( - 18 ) AS col2
----
26
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT ALL - 66 - - - 32 DIV NULLIF ( - 4, - 84 - + 92 ) * 7 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL - 66 - - - 32 / NULLIF ( - 4, - 84 - + 92 ) * 7 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT + 61 * + - ( + + 30 ) * - - COUNT( - 82 ) + 16
----
-1814

skipif mysql # not compatible
query I rowsort label-6129
SELECT + 61 * + - ( + + 30 ) * - - COUNT ( - 82 ) + 16
----
-1814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT + 70 + - - 48 + - 32 - - 25 + - CAST( NULL AS SIGNED ) * - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT + 70 + - - 48 + - 32 - - 25 + - CAST ( NULL AS INTEGER ) * - - 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6131
SELECT - 58 * + COUNT( * ) AS col2, - CAST( - ( + 12 ) AS SIGNED )
----
-58
12

skipif mysql # not compatible
query II rowsort label-6131
SELECT - 58 * + COUNT ( * ) AS col2, - CAST ( - ( + 12 ) AS INTEGER )
----
-58
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6132
SELECT ALL - CAST( - COALESCE ( + CAST( NULL AS SIGNED ), + + 42 DIV COALESCE ( + 70, + - 83 ), - 15 * + + 93 + - + 42 + - COUNT( - CAST( NULL AS SIGNED ) ) - ( - COUNT( * ) ) + + 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL - CAST ( - COALESCE ( + CAST ( NULL AS INTEGER ), + + 42 / COALESCE ( + 70, + - 83 ), - 15 * + + 93 + - + 42 + - COUNT ( - CAST ( NULL AS INTEGER ) ) - ( - COUNT ( * ) ) + + 0 ) AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT 76 * + + 63
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT - COUNT( * ) + - 24 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6134
SELECT - COUNT ( * ) + - 24 AS col2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-6135
SELECT - + 44 DIV + 8 col0
----
-5

skipif mysql # not compatible
query I rowsort label-6135
SELECT - + 44 / + 8 col0
----
-5

query I rowsort
SELECT ALL + + 96 * 8 * 58 AS col0
----
44544

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT - MIN( ALL + 15 ) + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-6137
SELECT - MIN ( ALL + 15 ) + - COUNT ( * )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6138
SELECT - 60 + 56 col0, CAST( - 81 AS SIGNED ) - - MIN( - ( 38 ) ) + + 56 + + + 23 * + COUNT( * ) AS col2
----
-4
-40

skipif mysql # not compatible
query II rowsort label-6138
SELECT - 60 + 56 col0, CAST ( - 81 AS INTEGER ) - - MIN ( - ( 38 ) ) + + 56 + + + 23 * + COUNT ( * ) AS col2
----
-4
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6139
SELECT - 61 * 76 * + NULLIF ( + 62, + CAST( NULL AS SIGNED ) ) AS col0, 96 DIV + - COUNT( * )
----
-287432
-96

skipif mysql # not compatible
query II rowsort label-6139
SELECT - 61 * 76 * + NULLIF ( + 62, + CAST ( NULL AS INTEGER ) ) AS col0, 96 / + - COUNT ( * )
----
-287432
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6140
SELECT + 79 + + - 69 - + + CASE + ( - 26 ) WHEN COUNT( * ) THEN NULL WHEN + 7 THEN - + COUNT( * ) END, 73 AS col2
----
NULL
73

skipif mysql # not compatible
query II rowsort label-6140
SELECT + 79 + + - 69 - + + CASE + ( - 26 ) WHEN COUNT ( * ) THEN NULL WHEN + 7 THEN - + COUNT ( * ) END, 73 AS col2
----
NULL
73

query I rowsort
SELECT DISTINCT + ( - - 71 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6142
SELECT DISTINCT NULLIF ( NULLIF ( - - 76, 39 ), + 23 * - - 29 DIV - 33 ) DIV + 38 + - 7 * + 53 + - 78 * - 86 * + + 10 * COUNT( * )
----
66711

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT NULLIF ( NULLIF ( - - 76, 39 ), + 23 * - - 29 / - 33 ) / + 38 + - 7 * + 53 + - 78 * - 86 * + + 10 * COUNT ( * )
----
66711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT ALL - 45 DIV + - 94 * 84 + COUNT( * ) * + 57
----
57

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL - 45 / + - 94 * 84 + COUNT ( * ) * + 57
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6144
SELECT ALL 18 DIV + + 65 + + NULLIF ( + 11, + + 43 ) * - COUNT( * ) AS col1, + 90
----
-11
90

skipif mysql # not compatible
query II rowsort label-6144
SELECT ALL 18 / + + 65 + + NULLIF ( + 11, + + 43 ) * - COUNT ( * ) AS col1, + 90
----
-11
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT DISTINCT + COUNT( DISTINCT + COALESCE ( + + 9, + - 90 * + ( - + 57 ), 74 * + 51 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT + COUNT ( DISTINCT + COALESCE ( + + 9, + - 90 * + ( - + 57 ), 74 * + 51 ) )
----
1

query I rowsort
SELECT ( + + 33 )
----
33

query I rowsort
SELECT - 12 * 67 + + 53 AS col2
----
-751

query I rowsort
SELECT + ( 57 )
----
57

query I rowsort
SELECT + ( - 88 )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT ALL CASE + 61 WHEN 26 THEN - + 66 ELSE NULL END / + + 93 * CAST( - 93 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL CASE + 61 WHEN 26 THEN - + 66 ELSE NULL END / + + 93 * CAST ( - 93 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT 11 * - COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6151
SELECT 11 * - COUNT ( * ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6152
SELECT COALESCE ( 19, + COUNT( * ) * - + 31 DIV - 42 - + CAST( 23 AS SIGNED ) DIV + 20 * CASE - 66 WHEN + + 91 THEN NULL WHEN + ( + 24 ) THEN - + 56 WHEN - 96 THEN + 44 + 12 - + 74 + + 38 END * + 17 * MIN( - 49 ) + COUNT( + 72 ) + COUNT( * ) + - 88 * 11 * + MAX( 76 ) * 28 - + + CAST( NULL AS SIGNED ) + + + CASE - 13 WHEN + 67 THEN 1 ELSE NULL END + + 93 ) + - - NULLIF ( - 74, - + 88 * - 31 * + - 2 * - 11 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6152
SELECT COALESCE ( 19, + COUNT ( * ) * - + 31 / - 42 - + CAST ( 23 AS INTEGER ) / + 20 * CASE - 66 WHEN + + 91 THEN NULL WHEN + ( + 24 ) THEN - + 56 WHEN - 96 THEN + 44 + 12 - + 74 + + 38 END * + 17 * MIN ( - 49 ) + COUNT ( + 72 ) + COUNT ( * ) + - 88 * 11 * + MAX ( 76 ) * 28 - + + CAST ( NULL AS INTEGER ) + + + CASE - 13 WHEN + 67 THEN 1 ELSE NULL END + + 93 ) + - - NULLIF ( - 74, - + 88 * - 31 * + - 2 * - 11 ) AS col1
----
-55

query II rowsort
SELECT 47 AS col0, + 68 AS col2
----
47
68

query I rowsort
SELECT DISTINCT ( - 73 ) * + 85
----
-6205

query I rowsort
SELECT DISTINCT ( - 41 ) * + 58 AS col0
----
-2378

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT DISTINCT 40 DIV - ( - 52 )
----
0

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT 40 / - ( - 52 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT ( SUM( ALL + 36 ) ) - + 81 col1
----
-45

skipif mysql # not compatible
query I rowsort label-6157
SELECT ( SUM ( ALL + 36 ) ) - + 81 col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT ( + 89 ) * - MIN( ALL 23 ) AS col0
----
-2047

skipif mysql # not compatible
query I rowsort label-6158
SELECT ( + 89 ) * - MIN ( ALL 23 ) AS col0
----
-2047

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT MAX( DISTINCT + 12 ) * - 4
----
-48

skipif mysql # not compatible
query I rowsort label-6159
SELECT MAX ( DISTINCT + 12 ) * - 4
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6160
SELECT DISTINCT + COUNT( DISTINCT + 4 ) * CASE - NULLIF ( 29, + 6 ) * 50 + 6 / 61 WHEN + 49 * 32 THEN NULL WHEN + 70 THEN - 35 WHEN - 42 * CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT + COUNT ( DISTINCT + 4 ) * CASE - NULLIF ( 29, + 6 ) * 50 + 6 / 61 WHEN + 49 * 32 THEN NULL WHEN + 70 THEN - 35 WHEN - 42 * CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ( 86 ) - 25 * + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6161
SELECT ( 86 ) - 25 * + COUNT ( * ) AS col2
----
61

query I rowsort
SELECT 86 * 5
----
430

query I rowsort
SELECT DISTINCT 32 * + 10 AS col2
----
320

query I rowsort
SELECT ALL 91 + - 65
----
26

query I rowsort
SELECT DISTINCT 50 + - 2 AS col0
----
48

query I rowsort
SELECT ( 69 ) * - 25 col2
----
-1725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT DISTINCT 96 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT 96 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT ALL - CASE 35 WHEN + 71 THEN NULL WHEN 39 * + 30 THEN 52 * CAST( - NULLIF ( - COUNT( * ), 84 * 79 + ( 4 + - 63 ) * 98 ) * 52 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL - CASE 35 WHEN + 71 THEN NULL WHEN 39 * + 30 THEN 52 * CAST ( - NULLIF ( - COUNT ( * ), 84 * 79 + ( 4 + - 63 ) * 98 ) * 52 AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - 63 AS col1
----
-63

query I rowsort
SELECT DISTINCT 90 + + 23 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT ALL - CASE 77 WHEN 64 THEN - 27 - 81 WHEN - 14 THEN 71 * + COUNT( * ) - ( 56 ) * - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL - CASE 77 WHEN 64 THEN - 27 - 81 WHEN - 14 THEN 71 * + COUNT ( * ) - ( 56 ) * - 27 END
----
NULL

query I rowsort
SELECT + 26 * + 2 + 82 AS col1
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT 21 DIV + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6173
SELECT 21 / + 28 AS col1
----
0

query I rowsort
SELECT + 64 * - 76 + 3 * - 3
----
-4873

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT DISTINCT + 35 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + 35 / - 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT 11 + 1 * MIN( 4 * 21 )
----
95

skipif mysql # not compatible
query I rowsort label-6176
SELECT 11 + 1 * MIN ( 4 * 21 )
----
95

query I rowsort
SELECT ALL - ( 48 ) * - 1
----
48

query I rowsort
SELECT 17 * + 38
----
646

query I rowsort
SELECT DISTINCT - NULLIF ( 8, 98 ) * - 2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT ALL + 81 - - NULLIF ( 86, + SUM( DISTINCT 36 ) ) * 47
----
4123

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL + 81 - - NULLIF ( 86, + SUM ( DISTINCT 36 ) ) * 47
----
4123

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT DISTINCT - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT - ( + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6182
SELECT DISTINCT + CASE - CAST( NULL AS DECIMAL ) WHEN 18 THEN 57 WHEN 59 THEN NULL END - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT + CASE - CAST ( NULL AS REAL ) WHEN 18 THEN 57 WHEN 59 THEN NULL END - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 32 * + 13 + - 5 AS col1
----
-421

query I rowsort
SELECT ALL + 45 * 46 AS col0
----
2070

query I rowsort
SELECT 17 * 92 AS col2
----
1564

query I rowsort
SELECT DISTINCT - 51 col0
----
-51

query I rowsort
SELECT ALL - + ( 38 ) AS col0
----
-38

query I rowsort
SELECT ALL - COALESCE ( 49, - ( + 61 ), - 83 + + 50 ) AS col0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6189
SELECT - - 14 * 8 + COUNT( * ) DIV + 83 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-6189
SELECT - - 14 * 8 + COUNT ( * ) / + 83 AS col0
----
112

query I rowsort
SELECT 0 * 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT COUNT( * ) + 60 * - 2 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-6191
SELECT COUNT ( * ) + 60 * - 2 AS col0
----
-119

query I rowsort
SELECT - 25 * 80 - + ( 40 ) AS col0
----
-2040

onlyif mysql # DIV for integer division: 
query I rowsort label-6193
SELECT 79 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-6193
SELECT 79 / + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL COUNT( * ) * - 56 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL COUNT ( * ) * - 56 AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6195
SELECT - COALESCE ( 80, 94, - CAST( NULL AS SIGNED ) + 70 * 88, + 40 + 81 * + 76 )
----
-80

skipif mysql # not compatible
query I rowsort label-6195
SELECT - COALESCE ( 80, 94, - CAST ( NULL AS INTEGER ) + 70 * 88, + 40 + 81 * + 76 )
----
-80

query I rowsort
SELECT 71 + 28 AS col2
----
99

query I rowsort
SELECT ALL 76 * 82 AS col0
----
6232

onlyif mysql # DIV for integer division: 
query I rowsort label-6198
SELECT 59 DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6198
SELECT 59 / 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT COUNT( * ) * 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6199
SELECT COUNT ( * ) * 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT ALL + COUNT( * ) + 22
----
23

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL + COUNT ( * ) + 22
----
23

query I rowsort
SELECT 48 * 34 AS col2
----
1632

query I rowsort
SELECT + 68 + 31 AS col0
----
99

query I rowsort
SELECT 82 + 27 * 77 AS col0
----
2161

query I rowsort
SELECT - 51 * 30
----
-1530

query I rowsort
SELECT DISTINCT 21 + - 29
----
-8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6206
SELECT 28 + 80 DIV CAST( + 11 * - 31 AS SIGNED ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6206
SELECT 28 + 80 / CAST ( + 11 * - 31 AS INTEGER ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT ALL SUM( - 63 ) + + 51 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL SUM ( - 63 ) + + 51 AS col2
----
-12

query I rowsort
SELECT ALL 38 + - 34 AS col2
----
4

query I rowsort
SELECT 2 + - 77
----
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6210
SELECT 48 DIV - 48 + CAST( 60 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-6210
SELECT 48 / - 48 + CAST ( 60 AS INTEGER )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL - 29 * COALESCE ( COUNT( * ), 4 + COUNT( DISTINCT - 99 ) * 98 ) + 43 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL - 29 * COALESCE ( COUNT ( * ), 4 + COUNT ( DISTINCT - 99 ) * 98 ) + 43 AS col2
----
14

query I rowsort
SELECT CASE - 90 WHEN 89 THEN + 63 WHEN - 44 THEN + CASE + 97 WHEN + 58 / COALESCE ( + ( 43 ) / + 57, - 49, + 87 ) THEN + 80 * 12 WHEN - 46 THEN + 44 / + 69 END / - 24 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6213
SELECT + COUNT( ALL + COALESCE ( CAST( NULL AS SIGNED ), 81 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6213
SELECT + COUNT ( ALL + COALESCE ( CAST ( NULL AS INTEGER ), 81 ) )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6214
SELECT 30 + CAST( NULL AS DECIMAL ) + 53 * - 66 * + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT 30 + CAST ( NULL AS REAL ) + 53 * - 66 * + 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT ALL ( + COUNT( * ) ) * + 7
----
7

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL ( + COUNT ( * ) ) * + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT - SUM( + 19 ) + + COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-6216
SELECT - SUM ( + 19 ) + + COUNT ( * ) AS col1
----
-18

query I rowsort
SELECT DISTINCT ( + 99 ) * + 32 AS col2
----
3168

query I rowsort
SELECT - 66 + - 34 + 59
----
-41

query I rowsort
SELECT DISTINCT + 53 AS col2
----
53

query I rowsort
SELECT CASE 26 WHEN - 21 / - 98 THEN NULL WHEN ( 65 ) THEN - 17 END AS col2
----
NULL

query I rowsort
SELECT - 30 + + - 9
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT 49 * - + 5 + ( - COUNT( * ) ) * 84
----
-329

skipif mysql # not compatible
query I rowsort label-6222
SELECT 49 * - + 5 + ( - COUNT ( * ) ) * 84
----
-329

query I rowsort
SELECT - 23 * 15 * 56
----
-19320

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL + COUNT( DISTINCT 44 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + COUNT ( DISTINCT 44 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6225
SELECT + 94 * COALESCE ( + 81, CAST( NULL AS SIGNED ) * ( + 80 * 73 ) ) AS col2
----
7614

skipif mysql # not compatible
query I rowsort label-6225
SELECT + 94 * COALESCE ( + 81, CAST ( NULL AS INTEGER ) * ( + 80 * 73 ) ) AS col2
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT MIN( + + 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-6226
SELECT MIN ( + + 44 ) AS col0
----
44

query I rowsort
SELECT + - 68 AS col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6228
SELECT - COALESCE ( 20, - 37 - COALESCE ( - COUNT( * ), 37 DIV - ( + 61 ) ) ) + 55 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6228
SELECT - COALESCE ( 20, - 37 - COALESCE ( - COUNT ( * ), 37 / - ( + 61 ) ) ) + 55 AS col2
----
35

query I rowsort
SELECT - 50 * + - 21 col2
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT - 55 * COUNT( * ) * 72 AS col0
----
-3960

skipif mysql # not compatible
query I rowsort label-6230
SELECT - 55 * COUNT ( * ) * 72 AS col0
----
-3960

query I rowsort
SELECT DISTINCT + ( + 12 )
----
12

query I rowsort
SELECT ALL - 95 + - 31 * 97
----
-3102

query I rowsort
SELECT DISTINCT + + 42 AS col2
----
42

query I rowsort
SELECT ALL + 26 * - 11
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT DISTINCT - + COUNT( * ) + - ( - 33 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6235
SELECT DISTINCT - + COUNT ( * ) + - ( - 33 ) AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6236
SELECT - - 40 + - + SUM( ALL 0 ) DIV 12
----
40

skipif mysql # not compatible
query I rowsort label-6236
SELECT - - 40 + - + SUM ( ALL 0 ) / 12
----
40

query I rowsort
SELECT ALL + 35 + + + 84
----
119

query I rowsort
SELECT ALL - 77 + ( + ( 75 ) )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6239
SELECT - 53 * + COALESCE ( NULLIF ( 21, 86 ), CAST( - 58 AS SIGNED ) ) + + ( + 76 ) AS col0
----
-1037

skipif mysql # not compatible
query I rowsort label-6239
SELECT - 53 * + COALESCE ( NULLIF ( 21, 86 ), CAST ( - 58 AS INTEGER ) ) + + ( + 76 ) AS col0
----
-1037

query I rowsort
SELECT - - 96 - - + 41 AS col0
----
137

query I rowsort
SELECT ALL - + 10 * 50 - ( 57 )
----
-557

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT - - COUNT( + 54 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6242
SELECT - - COUNT ( + 54 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT ALL + COUNT( * ) + - + 23
----
-22

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL + COUNT ( * ) + - + 23
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6244
SELECT DISTINCT + MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT ALL + 19 + + 73 + + ( - COUNT( * ) + 70 ) AS col0
----
161

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL + 19 + + 73 + + ( - COUNT ( * ) + 70 ) AS col0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT DISTINCT ( MAX( DISTINCT 64 ) )
----
64

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT ( MAX ( DISTINCT 64 ) )
----
64

query I rowsort
SELECT + 79 - NULLIF ( - 74, - 20 )
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT DISTINCT - 34 * - COUNT( + 6 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT - 34 * - COUNT ( + 6 ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT ALL CAST( 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL CAST ( 43 AS INTEGER )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6250
SELECT - CAST( NULL AS SIGNED ) - - - 86 * 96 + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT - CAST ( NULL AS INTEGER ) - - - 86 * 96 + + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT - COUNT( ALL 14 ) * - 97
----
97

skipif mysql # not compatible
query I rowsort label-6251
SELECT - COUNT ( ALL 14 ) * - 97
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6252
SELECT + 90 DIV - 75
----
-1

skipif mysql # not compatible
query I rowsort label-6252
SELECT + 90 / - 75
----
-1

query II rowsort
SELECT DISTINCT 40 AS col1, + ( + 14 ) * 59 col1
----
40
826

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6254
SELECT ALL COUNT( * ) DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL COUNT ( * ) / - 48
----
0

query I rowsort
SELECT + 36 * - 15 AS col0
----
-540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6256
SELECT DISTINCT - 75 DIV + + COUNT( * ) - 30 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT - 75 / + + COUNT ( * ) - 30 AS col2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT DISTINCT + CASE 85 WHEN 11 THEN - 43 WHEN 46 * COUNT( ALL + 97 ) THEN + COUNT( * ) WHEN - 42 THEN AVG ( ALL 8 ) WHEN + ( 79 ) THEN - 26 + + 52 / 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT + CASE 85 WHEN 11 THEN - 43 WHEN 46 * COUNT ( ALL + 97 ) THEN + COUNT ( * ) WHEN - 42 THEN AVG ( ALL 8 ) WHEN + ( 79 ) THEN - 26 + + 52 / 48 END AS col0
----
NULL

query I rowsort
SELECT + ( 30 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-6259
SELECT ALL + 72, + COUNT( * ) col1
----
72
1

skipif mysql # not compatible
query II rowsort label-6259
SELECT ALL + 72, + COUNT ( * ) col1
----
72
1

query I rowsort
SELECT DISTINCT + 78 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6261
SELECT CAST( AVG ( DISTINCT - + 60 ) AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6261
SELECT CAST ( AVG ( DISTINCT - + 60 ) AS INTEGER ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT 90 * - + COUNT( DISTINCT + 30 ) * - 50 + 18
----
4518

skipif mysql # not compatible
query I rowsort label-6262
SELECT 90 * - + COUNT ( DISTINCT + 30 ) * - 50 + 18
----
4518

query I rowsort
SELECT ( - 0 ) AS col0
----
0

query I rowsort
SELECT ALL 88 * - CASE - 55 WHEN 78 THEN 11 ELSE 79 * 37 END
----
-257224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6265
SELECT + CAST( - 96 AS SIGNED ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6265
SELECT + CAST ( - 96 AS INTEGER ) AS col2
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6266
SELECT - 23 DIV NULLIF ( - 59, - COUNT( * ) * ( + 90 ) + 21 ) + 38
----
38

skipif mysql # not compatible
query I rowsort label-6266
SELECT - 23 / NULLIF ( - 59, - COUNT ( * ) * ( + 90 ) + 21 ) + 38
----
38

query I rowsort
SELECT + ( 52 ) * + - 45 * + 22 - 16 * - 82
----
-50168

query II rowsort
SELECT ALL + 7 AS col0, 60 + + 75 col1
----
7
135

query I rowsort
SELECT ALL 41 * - + 1 AS col2
----
-41

query I rowsort
SELECT + 25 + + 72
----
97

query I rowsort
SELECT + + 10 * + 12
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6272
SELECT + - SUM( ALL + 35 ) * - 82 + CASE + 15 WHEN - CAST( NULL AS SIGNED ) * - 1 + - 34 THEN NULL ELSE - MIN( DISTINCT + 72 ) + - 30 END + + SUM( DISTINCT + 57 ) AS col0
----
2825

skipif mysql # not compatible
query I rowsort label-6272
SELECT + - SUM ( ALL + 35 ) * - 82 + CASE + 15 WHEN - CAST ( NULL AS INTEGER ) * - 1 + - 34 THEN NULL ELSE - MIN ( DISTINCT + 72 ) + - 30 END + + SUM ( DISTINCT + 57 ) AS col0
----
2825

query I rowsort
SELECT ALL - 34 * - 11 + + 14
----
388

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT DISTINCT 13 * + 67 - + + MIN( - NULLIF ( 93, ( 2 ) ) )
----
964

skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT 13 * + 67 - + + MIN ( - NULLIF ( 93, ( 2 ) ) )
----
964

query I rowsort
SELECT ALL ( + + 48 ) * + 45 + 90 * + 65
----
8010

query I rowsort
SELECT ALL + + 31 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT ALL + 40 * - 66 + - COUNT( 64 ) + 23 * 60 + 4
----
-1257

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL + 40 * - 66 + - COUNT ( 64 ) + 23 * 60 + 4
----
-1257

query II rowsort
SELECT DISTINCT + 14 AS col0, - 95 AS col2
----
14
-95

query I rowsort
SELECT + 75 * - - 64 + 26 AS col1
----
4826

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL + COUNT( + 71 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL + COUNT ( + 71 ) AS col1
----
1

query I rowsort
SELECT - - ( - + 92 ) col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6282
SELECT + 55 + + NULLIF ( 63, ( 57 ) ) - - ( - CAST( NULL AS SIGNED ) ) * - MIN( DISTINCT 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT + 55 + + NULLIF ( 63, ( 57 ) ) - - ( - CAST ( NULL AS INTEGER ) ) * - MIN ( DISTINCT 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL - COUNT( * ) * - ( 21 ) + 48
----
69

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - COUNT ( * ) * - ( 21 ) + 48
----
69

query I rowsort
SELECT + COALESCE ( - 79, ( + 40 ) ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT COUNT( * ) * ( 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT COUNT ( * ) * ( 82 ) AS col0
----
82

query I rowsort
SELECT - 86 - - 86
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6287
SELECT ALL 57, COUNT( * ) DIV + - COUNT( * ) AS col1
----
57
-1

skipif mysql # not compatible
query II rowsort label-6287
SELECT ALL 57, COUNT ( * ) / + - COUNT ( * ) AS col1
----
57
-1

query I rowsort
SELECT DISTINCT - - 16 * - 26
----
-416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6289
SELECT ALL + - CASE - 25 WHEN + + MIN( ALL - 39 ) + 94 THEN NULL WHEN - 38 THEN 48 + 48 ELSE + 96 * + 99 + - 58 END - + 89 DIV 70
----
-9447

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL + - CASE - 25 WHEN + + MIN ( ALL - 39 ) + 94 THEN NULL WHEN - 38 THEN 48 + 48 ELSE + 96 * + 99 + - 58 END - + 89 / 70
----
-9447

onlyif mysql # aggregate syntax: 
query II rowsort label-6290
SELECT ALL ( 59 ), - COUNT( * ) AS col0
----
59
-1

skipif mysql # not compatible
query II rowsort label-6290
SELECT ALL ( 59 ), - COUNT ( * ) AS col0
----
59
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT - 8 + - - 96 + - SUM( - - NULLIF ( 19, 46 ) ) col0
----
69

skipif mysql # not compatible
query I rowsort label-6291
SELECT - 8 + - - 96 + - SUM ( - - NULLIF ( 19, 46 ) ) col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT COUNT( * ) - - 4 col2
----
5

skipif mysql # not compatible
query I rowsort label-6292
SELECT COUNT ( * ) - - 4 col2
----
5

query I rowsort
SELECT DISTINCT 84 col2
----
84

query I rowsort
SELECT 20 + - - 85 + + + ( - 64 ) AS col0
----
41

query I rowsort
SELECT 30 * 59
----
1770

query I rowsort
SELECT 36 + + 20 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT DISTINCT 42 * - + MIN( DISTINCT ( ( + 22 ) ) )
----
-924

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT 42 * - + MIN ( DISTINCT ( ( + 22 ) ) )
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT DISTINCT + COUNT( * ) * - + COUNT( 74 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( 74 ) AS col0
----
-1

query I rowsort
SELECT 20 * + 60 * - - 26 * + 27 AS col1
----
842400

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT + 20 DIV - 63 + + ( 5 ) * 6 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6300
SELECT + 20 / - 63 + + ( 5 ) * 6 AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6301
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) * 82 + + 79
----
-3

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) * 82 + + 79
----
-3

query I rowsort
SELECT DISTINCT - ( + 30 )
----
-30

query I rowsort
SELECT 71 + - 43 * + 22 AS col1
----
-875

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT COUNT( * ) * 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6304
SELECT COUNT ( * ) * 44 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT DISTINCT - 32 * 20 DIV + 29 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT - 32 * 20 / + 29 AS col2
----
-22

query II rowsort
SELECT + ( 78 ) col0, 95 * 7 * 94 + + 34
----
78
62544

query I rowsort
SELECT ALL + 1 + - 51
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT ALL 85 * + 98 * - + CAST( 10 AS SIGNED )
----
-83300

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL 85 * + 98 * - + CAST ( 10 AS INTEGER )
----
-83300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT ALL 29 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL 29 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 23 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT ALL COUNT( * ) + + 78
----
79

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL COUNT ( * ) + + 78
----
79

query I rowsort
SELECT - 12 - + ( - 32 )
----
20

query I rowsort
SELECT ALL - ( 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT 57 * COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-6314
SELECT 57 * COUNT ( * )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6315
SELECT ALL - COUNT( * ) * CASE 48 WHEN 52 - - 40 THEN NULL WHEN + 58 + + 99 * 27 THEN 1 * + COALESCE ( + 83 * 68, CAST( NULL AS SIGNED ) + 60 * + COUNT( * ) ) ELSE 87 END
----
-87

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL - COUNT ( * ) * CASE 48 WHEN 52 - - 40 THEN NULL WHEN + 58 + + 99 * 27 THEN 1 * + COALESCE ( + 83 * 68, CAST ( NULL AS INTEGER ) + 60 * + COUNT ( * ) ) ELSE 87 END
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-6316
SELECT DISTINCT - - COUNT( DISTINCT - 86 ) AS col0, + 36 col0
----
1
36

skipif mysql # not compatible
query II rowsort label-6316
SELECT DISTINCT - - COUNT ( DISTINCT - 86 ) AS col0, + 36 col0
----
1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT ALL + 74 + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL + 74 + COUNT ( * ) AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6318
SELECT DISTINCT ( - - NULLIF ( - 21, - 13 ) ) * SUM( DISTINCT - CAST( NULL AS SIGNED ) * 99 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT ( - - NULLIF ( - 21, - 13 ) ) * SUM ( DISTINCT - CAST ( NULL AS INTEGER ) * 99 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 87 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT 57 + - 60 DIV + 60
----
56

skipif mysql # not compatible
query I rowsort label-6320
SELECT 57 + - 60 / + 60
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT DISTINCT NULLIF ( + 12, + + COUNT( * ) ) col1
----
12

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT NULLIF ( + 12, + + COUNT ( * ) ) col1
----
12

query I rowsort
SELECT COALESCE ( - + ( + 87 ), 26 * 56, 38 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL 72 - - + 30 + - 12 + - 26 * + CASE AVG ( DISTINCT 86 ) * 10 WHEN - 10 THEN - 16 + - COUNT( * ) WHEN 92 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL 72 - - + 30 + - 12 + - 26 * + CASE AVG ( DISTINCT 86 ) * 10 WHEN - 10 THEN - 16 + - COUNT ( * ) WHEN 92 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT DISTINCT - ( - 32 ) DIV + - 13 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT - ( - 32 ) / + - 13 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL + SUM( ALL + 73 ) * + + 90
----
6570

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL + SUM ( ALL + 73 ) * + + 90
----
6570

query I rowsort
SELECT DISTINCT CASE - + ( + - 80 ) WHEN - 15 + - + 90 THEN NULL WHEN 31 THEN + 1 WHEN + 20 * - 5 + - 17 THEN 1 END / - 56 AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - - 13, - + 51 * + 67 ) * + 93
----
-1209

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT 30 DIV - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT 30 / - 63 AS col0
----
0

query I rowsort
SELECT ALL ( - + 74 ) * + 71 * - 87 + - 66
----
457032

onlyif mysql # aggregate syntax: 
query II rowsort label-6330
SELECT DISTINCT MAX( ALL - 98 ) * + 11, - MIN( + ( 54 ) ) + 66 AS col1
----
-1078
12

skipif mysql # not compatible
query II rowsort label-6330
SELECT DISTINCT MAX ( ALL - 98 ) * + 11, - MIN ( + ( 54 ) ) + 66 AS col1
----
-1078
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6331
SELECT DISTINCT 96 AS col2, ( + COUNT( * ) ) * - 20 * + 89 * - 14 AS col2
----
96
24920

skipif mysql # not compatible
query II rowsort label-6331
SELECT DISTINCT 96 AS col2, ( + COUNT ( * ) ) * - 20 * + 89 * - 14 AS col2
----
96
24920

query I rowsort
SELECT ALL - 17 * - - 14
----
-238

query I rowsort
SELECT 26 - + 71 + + 92 AS col1
----
47

query II rowsort
SELECT DISTINCT 4 AS col2, + 47 * - ( - COALESCE ( + + 55, 79 ) ) AS col2
----
4
2585

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT ALL + 91 + - ( - 68 ) + - COUNT( * ) col1
----
158

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL + 91 + - ( - 68 ) + - COUNT ( * ) col1
----
158

query I rowsort
SELECT DISTINCT + 73 + + 51
----
124

query I rowsort
SELECT ALL - 18 + - - 66 + - - 46 - - 39
----
133

query I rowsort
SELECT 55 * 83
----
4565

query I rowsort
SELECT + 27 * + - 78 - + 62 + - + 60
----
-2228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6340
SELECT DISTINCT - CASE + 4 WHEN + ( + + AVG ( 15 ) ) + 14 THEN CAST( NULL AS SIGNED ) WHEN - ( ( + SUM( DISTINCT + 63 ) ) ) / NULLIF ( - 87, 68 * + 70 ) THEN 41 ELSE + 23 - CAST( NULL AS SIGNED ) * + 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT - CASE + 4 WHEN + ( + + AVG ( 15 ) ) + 14 THEN CAST ( NULL AS INTEGER ) WHEN - ( ( + SUM ( DISTINCT + 63 ) ) ) / NULLIF ( - 87, 68 * + 70 ) THEN 41 ELSE + 23 - CAST ( NULL AS INTEGER ) * + 91 END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 46 * + - 47 * - - 99 AS col2, + COALESCE ( - 51, - 96 * 9 + 88 * 74 )
----
-214038
-51

query II rowsort
SELECT ALL - + 69, 14 AS col2
----
-69
14

query I rowsort
SELECT - 43 * 36 - 99 + + 16
----
-1631

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT ALL - COUNT( * ) * - 75 * + + 23 + COUNT( * )
----
1726

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL - COUNT ( * ) * - 75 * + + 23 + COUNT ( * )
----
1726

onlyif mysql # aggregate syntax: 
query II rowsort label-6345
SELECT + 1 AS col2, 35 * - - COUNT( * ) col1
----
1
35

skipif mysql # not compatible
query II rowsort label-6345
SELECT + 1 AS col2, 35 * - - COUNT ( * ) col1
----
1
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6346
SELECT CAST( - 60 AS SIGNED ) * - 17 + + + 70 + + - COALESCE ( - 12, COUNT( * ) * + 94 ) + + 30 * COALESCE ( COALESCE ( - CASE 36 WHEN + CASE NULLIF ( 45, 86 ) WHEN 66 / 3 THEN SUM( + 49 ) * + 85 WHEN CAST( NULL AS DECIMAL ) THEN + 19 / 72 + COUNT( * ) * CAST( 41 * CAST( NULL AS SIGNED ) AS SIGNED ) END - - 93 THEN MAX( - 18 ) + 99 WHEN - 95 THEN 80 ELSE MIN( ALL CAST( 27 AS SIGNED ) ) END, - ( 69 ) ), - 44, COUNT( * ) + 91, NULLIF ( - ( 92 ), ( + 79 ) + 43 ) ) AS col0
----
292

skipif mysql # not compatible
query I rowsort label-6346
SELECT CAST ( - 60 AS INTEGER ) * - 17 + + + 70 + + - COALESCE ( - 12, COUNT ( * ) * + 94 ) + + 30 * COALESCE ( COALESCE ( - CASE 36 WHEN + CASE NULLIF ( 45, 86 ) WHEN 66 / 3 THEN SUM ( + 49 ) * + 85 WHEN CAST ( NULL AS REAL ) THEN + 19 / 72 + COUNT ( * ) * CAST ( 41 * CAST ( NULL AS INTEGER ) AS INTEGER ) END - - 93 THEN MAX ( - 18 ) + 99 WHEN - 95 THEN 80 ELSE MIN ( ALL CAST ( 27 AS INTEGER ) ) END, - ( 69 ) ), - 44, COUNT ( * ) + 91, NULLIF ( - ( 92 ), ( + 79 ) + 43 ) ) AS col0
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT + MAX( DISTINCT 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6347
SELECT + MAX ( DISTINCT 10 ) AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6348
SELECT ALL - 24 * - - CAST( NULL AS SIGNED ) + - MIN( + - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL - 24 * - - CAST ( NULL AS INTEGER ) + - MIN ( + - 37 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6349
SELECT + 95 DIV + 17 DIV COUNT( * ) - + - 61 + - COUNT( * ) + + ( 99 - - 39 * + COUNT( * ) ) * ( 2 )
----
341

skipif mysql # not compatible
query I rowsort label-6349
SELECT + 95 / + 17 / COUNT ( * ) - + - 61 + - COUNT ( * ) + + ( 99 - - 39 * + COUNT ( * ) ) * ( 2 )
----
341

query I rowsort
SELECT - + ( - 92 ) * + - 10 - - 15
----
-905

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT 71 + 64 + + ( + COUNT( * ) ) + - + 81 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6351
SELECT 71 + 64 + + ( + COUNT ( * ) ) + - + 81 AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6352
SELECT ALL 99 * ( + CAST( + 46 AS SIGNED ) ) - - 32 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL 99 * ( + CAST ( + 46 AS INTEGER ) ) - - 32 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6353
SELECT DISTINCT - COUNT( * ) AS col2, - COUNT( * ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6353
SELECT DISTINCT - COUNT ( * ) AS col2, - COUNT ( * ) AS col2
----
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6354
SELECT ALL - - COUNT( * ) AS col0, - 18 col0
----
1
-18

skipif mysql # not compatible
query II rowsort label-6354
SELECT ALL - - COUNT ( * ) AS col0, - 18 col0
----
1
-18

query I rowsort
SELECT ALL 76 - + ( 43 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT - 46 * 4 - + COUNT( * ) + - + 6
----
-191

skipif mysql # not compatible
query I rowsort label-6356
SELECT - 46 * 4 - + COUNT ( * ) + - + 6
----
-191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6357
SELECT ALL - COUNT( * ) DIV + - 71
----
0

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL - COUNT ( * ) / + - 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT DISTINCT - - 61 - + 76 + - 59 * 92 + + 65 + + MIN( ALL + 16 ) AS col2
----
-5362

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT - - 61 - + 76 + - 59 * 92 + + 65 + + MIN ( ALL + 16 ) AS col2
----
-5362

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT + - COUNT( DISTINCT + 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-6359
SELECT + - COUNT ( DISTINCT + 12 )
----
-1

query I rowsort
SELECT - + 82 * 85
----
-6970

query I rowsort
SELECT + + 77 * 3
----
231

query II rowsort
SELECT + + 5, - ( + - 32 ) AS col2
----
5
32

query II rowsort
SELECT 60 AS col2, 24
----
60
24

query I rowsort
SELECT ALL + 30 * + - 8 AS col2
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6365
SELECT + 37 * - CASE 27 WHEN + 12 * + 67 * - - NULLIF ( 21, ( + 26 ) * CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 40 + + 96 THEN + SUM( ALL - 73 ) * 33 - + 57 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT + 37 * - CASE 27 WHEN + 12 * + 67 * - - NULLIF ( 21, ( + 26 ) * CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 40 + + 96 THEN + SUM ( ALL - 73 ) * 33 - + 57 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( 23, 22 ) * - 97
----
-2231

query I rowsort
SELECT DISTINCT 83 col2
----
83

query I rowsort
SELECT DISTINCT ( + 72 ) * 29 AS col0
----
2088

query II rowsort
SELECT ALL 91 AS col2, 18
----
91
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6370
SELECT ALL 42 AS col1, - 72 + + SUM( DISTINCT + 78 ) AS col0
----
42
6

skipif mysql # not compatible
query II rowsort label-6370
SELECT ALL 42 AS col1, - 72 + + SUM ( DISTINCT + 78 ) AS col0
----
42
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6371
SELECT DISTINCT 94 AS col0, + 0 + CAST( - COUNT( ALL + 73 ) AS SIGNED ) AS col1
----
94
-1

skipif mysql # not compatible
query II rowsort label-6371
SELECT DISTINCT 94 AS col0, + 0 + CAST ( - COUNT ( ALL + 73 ) AS INTEGER ) AS col1
----
94
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6372
SELECT + 95 + + 3 DIV + 39 * 53 AS col0, - 12 AS col2
----
95
-12

skipif mysql # not compatible
query II rowsort label-6372
SELECT + 95 + + 3 / + 39 * 53 AS col0, - 12 AS col2
----
95
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT - MAX( ALL 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-6373
SELECT - MAX ( ALL 71 )
----
-71

query II rowsort
SELECT 3 AS col2, + 14 AS col0
----
3
14

query I rowsort
SELECT ALL 65 + + - 8 * - + 30 + 39 AS col0
----
344

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT + 71 + + 63 + - - 52 - + + ( COALESCE ( - 92, - 63 ) ) + + 84 * + CASE - 38 WHEN + 44 * 83 - + COUNT( * ) * + 75 THEN - 89 WHEN - 45 + ( COALESCE ( + AVG ( ALL + 3 ), 82 * + 91 ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT + 71 + + 63 + - - 52 - + + ( COALESCE ( - 92, - 63 ) ) + + 84 * + CASE - 38 WHEN + 44 * 83 - + COUNT ( * ) * + 75 THEN - 89 WHEN - 45 + ( COALESCE ( + AVG ( ALL + 3 ), 82 * + 91 ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT - 77 - - COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6377
SELECT - 77 - - COUNT ( * ) AS col1
----
-76

query I rowsort
SELECT ALL + 86 + 76
----
162

query II rowsort
SELECT ALL - 32 * + 57, 93 AS col0
----
-1824
93

query I rowsort
SELECT ALL 29 + - 28
----
1

query I rowsort
SELECT + 41 + 41 * - + 14
----
-533

query I rowsort
SELECT ALL + 60 + 81 AS col0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT - NULLIF ( - 47, COUNT( * ) ) + + + 11
----
58

skipif mysql # not compatible
query I rowsort label-6383
SELECT - NULLIF ( - 47, COUNT ( * ) ) + + + 11
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6384
SELECT 76, 51 * + + 90 - COUNT( + - 53 ) + + ( 61 ) AS col2
----
76
4650

skipif mysql # not compatible
query II rowsort label-6384
SELECT 76, 51 * + + 90 - COUNT ( + - 53 ) + + ( 61 ) AS col2
----
76
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL - ( - + 77 ) + - MAX( + COALESCE ( - 44, + + 91 + NULLIF ( - 53 + 69, 90 ) ) ) + - 21 * + 41
----
-740

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL - ( - + 77 ) + - MAX ( + COALESCE ( - 44, + + 91 + NULLIF ( - 53 + 69, 90 ) ) ) + - 21 * + 41
----
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT DISTINCT 2 * + COUNT( * ) * + + 12 * MIN( - 12 ) * - - 57 * MIN( 47 * 45 ) + 78 * 33 AS col1
----
-34717266

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT 2 * + COUNT ( * ) * + + 12 * MIN ( - 12 ) * - - 57 * MIN ( 47 * 45 ) + 78 * 33 AS col1
----
-34717266

query I rowsort
SELECT - + 99 + 63
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6388
SELECT + + MIN( - - 68 ) * - COALESCE ( NULLIF ( - 30, 56 * - 50 ), 18 - - 55 * + 96 ) + + CASE - 39 + NULLIF ( COUNT( * ) + 80 DIV - 83, + COUNT( * ) ) WHEN 32 + 65 THEN 94 * + 34 - 11 DIV - CASE 75 * 4 + 41 WHEN - 39 DIV COALESCE ( 65, + 48 * + 93 + 23, CASE - CAST( NULL AS SIGNED ) WHEN - 97 THEN ( 59 ) END ) THEN + 79 ELSE 23 * 39 END ELSE + 94 END
----
2134

skipif mysql # not compatible
query I rowsort label-6388
SELECT + + MIN ( - - 68 ) * - COALESCE ( NULLIF ( - 30, 56 * - 50 ), 18 - - 55 * + 96 ) + + CASE - 39 + NULLIF ( COUNT ( * ) + 80 / - 83, + COUNT ( * ) ) WHEN 32 + 65 THEN 94 * + 34 - 11 / - CASE 75 * 4 + 41 WHEN - 39 / COALESCE ( 65, + 48 * + 93 + 23, CASE - CAST ( NULL AS INTEGER ) WHEN - 97 THEN ( 59 ) END ) THEN + 79 ELSE 23 * 39 END ELSE + 94 END
----
2134

query I rowsort
SELECT + + 91 AS col1
----
91

onlyif mysql # aggregate syntax: 
query III rowsort label-6390
SELECT + + 94 AS col0, COUNT( * ), 96 AS col2
----
94
1
96

skipif mysql # not compatible
query III rowsort label-6390
SELECT + + 94 AS col0, COUNT ( * ), 96 AS col2
----
94
1
96

query II rowsort
SELECT - 64 + + - 24 AS col2, 42 AS col0
----
-88
42

query I rowsort
SELECT DISTINCT + + 42 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL - 91 * - ( + + 28 ) - - - 90 + MIN( - 27 ) + COUNT( * )
----
2432

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL - 91 * - ( + + 28 ) - - - 90 + MIN ( - 27 ) + COUNT ( * )
----
2432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6394
SELECT - 17 * COUNT( * ) * - - CAST( - + COUNT( * ) AS SIGNED ) col2
----
17

skipif mysql # not compatible
query I rowsort label-6394
SELECT - 17 * COUNT ( * ) * - - CAST ( - + COUNT ( * ) AS INTEGER ) col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6395
SELECT ALL + - 91 AS col2, 50 - + + ( SUM( - 79 ) ) + COUNT( * ) * - 83 * COUNT( * ) AS col1
----
-91
46

skipif mysql # not compatible
query II rowsort label-6395
SELECT ALL + - 91 AS col2, 50 - + + ( SUM ( - 79 ) ) + COUNT ( * ) * - 83 * COUNT ( * ) AS col1
----
-91
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6396
SELECT - - 72 DIV - 97 * COUNT( * ) + 39 - + 86
----
-47

skipif mysql # not compatible
query I rowsort label-6396
SELECT - - 72 / - 97 * COUNT ( * ) + 39 - + 86
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT ALL - 66 DIV + 4
----
-16

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL - 66 / + 4
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-6398
SELECT + 53 AS col2, 54 + COUNT( * )
----
53
55

skipif mysql # not compatible
query II rowsort label-6398
SELECT + 53 AS col2, 54 + COUNT ( * )
----
53
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6399
SELECT + + COUNT( * ) col0, MIN( ALL + 61 ) * + 65 col0
----
1
3965

skipif mysql # not compatible
query II rowsort label-6399
SELECT + + COUNT ( * ) col0, MIN ( ALL + 61 ) * + 65 col0
----
1
3965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6400
SELECT + - CAST( 78 AS SIGNED ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-6400
SELECT + - CAST ( 78 AS INTEGER ) AS col2
----
-78

query II rowsort
SELECT + - 55 AS col0, + 23
----
-55
23

query II rowsort
SELECT ALL - - 59 * - 24 AS col2, - NULLIF ( - ( + 82 ), + + 71 ) + 99 AS col0
----
-1416
181

query I rowsort
SELECT ALL + ( + - 1 ) col1
----
-1

query II rowsort
SELECT + 87 AS col2, - 71
----
87
-71

query I rowsort
SELECT NULLIF ( + ( + 99 ), - 5 / + 34 ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6406
SELECT - 37 * - CAST( - 82 AS SIGNED )
----
-3034

skipif mysql # not compatible
query I rowsort label-6406
SELECT - 37 * - CAST ( - 82 AS INTEGER )
----
-3034

query II rowsort
SELECT ALL + - 77 col0, 86
----
-77
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT - NULLIF ( + 98, + - 14 - - 33 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT - NULLIF ( + 98, + - 14 - - 33 ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL + CASE - ( - 48 ) WHEN 50 + 34 * + 81 THEN - COUNT( * ) WHEN 3 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL + CASE - ( - 48 ) WHEN 50 + 34 * + 81 THEN - COUNT ( * ) WHEN 3 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6410
SELECT COALESCE ( 65, + + CAST( - + MAX( ALL + - 90 ) AS SIGNED ), - - CASE 33 WHEN ( + 68 ) / + 82 THEN - COUNT( * ) END )
----
65

skipif mysql # not compatible
query I rowsort label-6410
SELECT COALESCE ( 65, + + CAST ( - + MAX ( ALL + - 90 ) AS INTEGER ), - - CASE 33 WHEN ( + 68 ) / + 82 THEN - COUNT ( * ) END )
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6411
SELECT ALL - CAST( - - 25 AS SIGNED ) DIV - ( 56 )
----
0

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - CAST ( - - 25 AS INTEGER ) / - ( 56 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6412
SELECT - 2 DIV + ( 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6412
SELECT - 2 / + ( 82 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6413
SELECT + 7 + + - 55 DIV + 69
----
7

skipif mysql # not compatible
query I rowsort label-6413
SELECT + 7 + + - 55 / + 69
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT ALL CAST( 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL CAST ( 70 AS INTEGER )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6415
SELECT + CASE - 78 WHEN + 19 THEN + - 93 ELSE 51 DIV - 42 + SUM( + ( 12 ) ) END * + ( 96 ) AS col0
----
1056

skipif mysql # not compatible
query I rowsort label-6415
SELECT + CASE - 78 WHEN + 19 THEN + - 93 ELSE 51 / - 42 + SUM ( + ( 12 ) ) END * + ( 96 ) AS col0
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT ALL + 67 * + - 0 * - + 7 + - SUM( - 75 ) + 79 * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL + 67 * + - 0 * - + 7 + - SUM ( - 75 ) + 79 * - COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6417
SELECT - MAX( DISTINCT + + 48 ) AS col0, - 94 AS col0
----
-48
-94

skipif mysql # not compatible
query II rowsort label-6417
SELECT - MAX ( DISTINCT + + 48 ) AS col0, - 94 AS col0
----
-48
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-6418
SELECT - ( COUNT( * ) ), - 73 + + 56 AS col2
----
-1
-17

skipif mysql # not compatible
query II rowsort label-6418
SELECT - ( COUNT ( * ) ), - 73 + + 56 AS col2
----
-1
-17

query I rowsort
SELECT ALL 66 + 77
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL 59 + MAX( ALL + + 43 ) * 77 AS col2
----
3370

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL 59 + MAX ( ALL + + 43 ) * 77 AS col2
----
3370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6421
SELECT DISTINCT - ( CAST( + 99 AS SIGNED ) ) * + 33 AS col2
----
-3267

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT - ( CAST ( + 99 AS INTEGER ) ) * + 33 AS col2
----
-3267

query III rowsort
SELECT ALL + 27 + 31 AS col0, - 72 AS col1, 87 AS col1
----
58
-72
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6423
SELECT DISTINCT - CAST( + AVG ( DISTINCT + 98 ) AS SIGNED ) + - 56 + 83 * - - 78
----
6320

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT - CAST ( + AVG ( DISTINCT + 98 ) AS INTEGER ) + - 56 + 83 * - - 78
----
6320

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT DISTINCT MAX( DISTINCT + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT MAX ( DISTINCT + 16 )
----
16

query I rowsort
SELECT ALL 12 + - 84
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT ALL 23 + + SUM( ALL 22 ) + COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL 23 + + SUM ( ALL 22 ) + COUNT ( * ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT - MIN( DISTINCT 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6427
SELECT - MIN ( DISTINCT 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT + COUNT( * ) - + - ( - 67 ) + + 44 - - CASE + 27 WHEN - COUNT( ALL + 57 ) THEN + ( + COUNT( + 99 ) ) WHEN 23 * ( - 75 ) THEN NULL ELSE 97 END
----
75

skipif mysql # not compatible
query I rowsort label-6428
SELECT + COUNT ( * ) - + - ( - 67 ) + + 44 - - CASE + 27 WHEN - COUNT ( ALL + 57 ) THEN + ( + COUNT ( + 99 ) ) WHEN 23 * ( - 75 ) THEN NULL ELSE 97 END
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT - COALESCE ( - + COALESCE ( - COUNT( * ), - ( + 88 ) ), + 64 + - - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-6429
SELECT - COALESCE ( - + COALESCE ( - COUNT ( * ), - ( + 88 ) ), + 64 + - - 0 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT + 82 - - MIN( - 85 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6430
SELECT + 82 - - MIN ( - 85 ) AS col1
----
-3

query II rowsort
SELECT + 34 * 66 AS col1, + 19
----
2244
19

query I rowsort
SELECT - 53 * - + 61 AS col1
----
3233

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT DISTINCT 70 DIV - 29 - - - 29 col0
----
-31

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT 70 / - 29 - - - 29 col0
----
-31

query I rowsort
SELECT + 19 * 81 col0
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT ALL + + CASE - - ( + + 21 ) WHEN - + 5 * COUNT( * ) THEN + 7 + - + 63 WHEN - 96 + 39 * 23 THEN NULL WHEN 2 THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL + + CASE - - ( + + 21 ) WHEN - + 5 * COUNT ( * ) THEN + 7 + - + 63 WHEN - 96 + 39 * 23 THEN NULL WHEN 2 THEN COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6436
SELECT ALL + 37 * + + CAST( + 88 AS SIGNED ) AS col0
----
3256

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL + 37 * + + CAST ( + 88 AS INTEGER ) AS col0
----
3256

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT + 49 * - 39 * + 56 * + + 80 - + - 61 + + - ( MIN( ALL 37 ) )
----
-8561256

skipif mysql # not compatible
query I rowsort label-6437
SELECT + 49 * - 39 * + 56 * + + 80 - + - 61 + + - ( MIN ( ALL 37 ) )
----
-8561256

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT CASE - COUNT( * ) WHEN 4 - + - SUM( - - 7 ) * + + COUNT( * ) THEN - - 16 * 83 + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT CASE - COUNT ( * ) WHEN 4 - + - SUM ( - - 7 ) * + + COUNT ( * ) THEN - - 16 * 83 + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT - 81 * COUNT( * ) * - MIN( 41 ) * - - 72
----
239112

skipif mysql # not compatible
query I rowsort label-6439
SELECT - 81 * COUNT ( * ) * - MIN ( 41 ) * - - 72
----
239112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT - 51 * + CAST( + - 10 AS SIGNED )
----
510

skipif mysql # not compatible
query I rowsort label-6440
SELECT - 51 * + CAST ( + - 10 AS INTEGER )
----
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6441
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) + - + NULLIF ( 11, - 71 ) + AVG ( ALL - 35 ) * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6441
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - + NULLIF ( 11, - 71 ) + AVG ( ALL - 35 ) * + 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6442
SELECT 70 * + - 2 * + CAST( - - 77 AS SIGNED ) * MIN( 95 )
----
-1024100

skipif mysql # not compatible
query I rowsort label-6442
SELECT 70 * + - 2 * + CAST ( - - 77 AS INTEGER ) * MIN ( 95 )
----
-1024100

query I rowsort
SELECT - 8 + + 72
----
64

query I rowsort
SELECT + ( + 61 ) * - - 3 * - 87 * + 21 AS col0
----
-334341

query I rowsort
SELECT DISTINCT - ( - 53 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL - 58 + + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL - 58 + + COUNT ( * )
----
-57

query I rowsort
SELECT ALL + 4 + + 22
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6448
SELECT DISTINCT - CASE 59 WHEN + + COALESCE ( - 9, + 47, + - 60 ) THEN + 28 * - ( + 6 ) + NULLIF ( COUNT( * ) + + NULLIF ( + 0, + CAST( - 24 AS SIGNED ) ), + 94 ) WHEN ( 61 ) * - 90 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT - CASE 59 WHEN + + COALESCE ( - 9, + 47, + - 60 ) THEN + 28 * - ( + 6 ) + NULLIF ( COUNT ( * ) + + NULLIF ( + 0, + CAST ( - 24 AS INTEGER ) ), + 94 ) WHEN ( 61 ) * - 90 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT ALL - CAST( - CAST( - 0 AS SIGNED ) AS SIGNED ) + - 25
----
-25

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - CAST ( - CAST ( - 0 AS INTEGER ) AS INTEGER ) + - 25
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6450
SELECT ALL + NULLIF ( - - 85, 81 * - 6 + + 89 + - 80 * + - 32 ) + + COUNT( * ) DIV - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL + NULLIF ( - - 85, 81 * - 6 + + 89 + - 80 * + - 32 ) + + COUNT ( * ) / - COUNT ( * )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6451
SELECT 39 * CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-6451
SELECT 39 * CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-39

query I rowsort
SELECT 75 * ( + 18 )
----
1350

query II rowsort
SELECT - 42, + 38 + 84 * + 27 col1
----
-42
2306

query I rowsort
SELECT ALL - CASE - - 32 WHEN - 21 THEN + - 84 WHEN - 3 THEN 11 ELSE NULL END + - 58 AS col2
----
NULL

query II rowsort
SELECT 28 AS col0, + 25 * + NULLIF ( + 69, - + 82 ) - + 47 + 98 AS col1
----
28
1776

query II rowsort
SELECT ALL 98 AS col2, + 19 * + + 2 + 78 * - 5 + 27 + ( 49 )
----
98
-276

query I rowsort
SELECT 65 * - 83 AS col1
----
-5395

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT ALL 12 DIV - + 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL 12 / - + 13 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT 71 + - COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6459
SELECT 71 + - COUNT ( * ) AS col2
----
70

query I rowsort
SELECT DISTINCT 29 * - 9
----
-261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6461
SELECT 55 * + + COALESCE ( - 69, 20 + COALESCE ( + 6, - + 99 ) * - + 96 DIV + COUNT( * ) )
----
-3795

skipif mysql # not compatible
query I rowsort label-6461
SELECT 55 * + + COALESCE ( - 69, 20 + COALESCE ( + 6, - + 99 ) * - + 96 / + COUNT ( * ) )
----
-3795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6462
SELECT 61 + - ( CAST( + COALESCE ( - 49, 6 ) AS SIGNED ) ) * - CAST( - - COUNT( * ) AS SIGNED ) + + 23 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6462
SELECT 61 + - ( CAST ( + COALESCE ( - 49, 6 ) AS INTEGER ) ) * - CAST ( - - COUNT ( * ) AS INTEGER ) + + 23 AS col1
----
35

query I rowsort
SELECT 64 * + 65
----
4160

query I rowsort
SELECT DISTINCT + 60 * + 87 AS col2
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL MAX( + ( - 22 ) ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL MAX ( + ( - 22 ) ) col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ( 69 ) + + COUNT( * ) + - SUM( + ( + 15 ) ) * - 47
----
775

skipif mysql # not compatible
query I rowsort label-6466
SELECT ( 69 ) + + COUNT ( * ) + - SUM ( + ( + 15 ) ) * - 47
----
775

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6467
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-6467
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 41
----
NULL
41

query I rowsort
SELECT ALL - 27 * + 61 col1
----
-1647

query I rowsort
SELECT + 90 * 79
----
7110

query I rowsort
SELECT - 56 * - 87 * + 83
----
404376

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT 46 + + COALESCE ( + 5, + 15 * - 4, - 58 DIV + 80 )
----
51

skipif mysql # not compatible
query I rowsort label-6471
SELECT 46 + + COALESCE ( + 5, + 15 * - 4, - 58 / + 80 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT - + COALESCE ( + COUNT( * ), 7 + 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-6472
SELECT - + COALESCE ( + COUNT ( * ), 7 + 25 )
----
-1

query I rowsort
SELECT DISTINCT ( + - 60 )
----
-60

query I rowsort
SELECT 39 * - + 23
----
-897

query I rowsort
SELECT ( + + 62 ) * 55 + - - 83 AS col0
----
3493

query I rowsort
SELECT + 62 + + 71 + + COALESCE ( 62, - 86 + + ( + 27 ), - 76 - - 74 * - 64 ) + 23 AS col0
----
218

query I rowsort
SELECT DISTINCT 71 + - + 87 + + 0 * - - 0 * - - 4
----
-16

query I rowsort
SELECT ALL + 14 + + + 58 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT DISTINCT + MIN( ( - NULLIF ( - 63, - 10 ) ) ) * - - 85 AS col0
----
5355

skipif mysql # not compatible
query I rowsort label-6479
SELECT DISTINCT + MIN ( ( - NULLIF ( - 63, - 10 ) ) ) * - - 85 AS col0
----
5355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6480
SELECT ALL MAX( 39 ) * ( CAST( NULL AS SIGNED ) ) * + 0 + + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL MAX ( 39 ) * ( CAST ( NULL AS INTEGER ) ) * + 0 + + 15 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 67 + + 2
----
69

query I rowsort
SELECT DISTINCT - 90 * + 42 + NULLIF ( + 69, - 67 * 94 ) AS col2
----
-3711

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT ( + COUNT( * ) ) * - 4 + 67
----
63

skipif mysql # not compatible
query I rowsort label-6483
SELECT ( + COUNT ( * ) ) * - 4 + 67
----
63

query I rowsort
SELECT 36 * - - 39 AS col1
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT - 56 * - COUNT( + - 45 ) - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-6485
SELECT - 56 * - COUNT ( + - 45 ) - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL - NULLIF ( 71, + SUM( ALL + - 61 ) + + + 36 )
----
-71

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - NULLIF ( 71, + SUM ( ALL + - 61 ) + + + 36 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT COUNT( * ) * 38
----
38

skipif mysql # not compatible
query I rowsort label-6487
SELECT COUNT ( * ) * 38
----
38

query I rowsort
SELECT DISTINCT - ( + - ( - ( - 68 ) ) )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT ALL + 73 - - + COALESCE ( + 93, + + 53 ) DIV + - 90
----
72

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL + 73 - - + COALESCE ( + 93, + + 53 ) / + - 90
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6490
SELECT 74 - + CAST( NULL AS SIGNED ) + + - 42 * + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT 74 - + CAST ( NULL AS INTEGER ) + + - 42 * + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT - MIN( ALL 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-6491
SELECT - MIN ( ALL 85 ) AS col0
----
-85

query I rowsort
SELECT ALL + 28 * + 49
----
1372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6493
SELECT 64 * - CAST( + 1 AS SIGNED ) * + 56
----
-3584

skipif mysql # not compatible
query I rowsort label-6493
SELECT 64 * - CAST ( + 1 AS INTEGER ) * + 56
----
-3584

query I rowsort
SELECT 0 * 65 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6495
SELECT 6 + - - NULLIF ( + 51, 96 * - - CAST( NULL AS SIGNED ) + 40 - 71 )
----
57

skipif mysql # not compatible
query I rowsort label-6495
SELECT 6 + - - NULLIF ( + 51, 96 * - - CAST ( NULL AS INTEGER ) + 40 - 71 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT ALL + 11 * + + MAX( + 86 ) * - 2
----
-1892

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL + 11 * + + MAX ( + 86 ) * - 2
----
-1892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6497
SELECT - 87 * + CAST( 93 AS SIGNED ) AS col0
----
-8091

skipif mysql # not compatible
query I rowsort label-6497
SELECT - 87 * + CAST ( 93 AS INTEGER ) AS col0
----
-8091

query I rowsort
SELECT ALL + 28 col1
----
28

query I rowsort
SELECT - 40 * + + 1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT - + 73 - - ( MAX( ALL + 2 ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-6500
SELECT - + 73 - - ( MAX ( ALL + 2 ) ) AS col2
----
-71

query I rowsort
SELECT - 54 * 66 AS col0
----
-3564

query I rowsort
SELECT + + 10 * - ( - - 17 ) AS col1
----
-170

onlyif mysql # DIV for integer division: 
query II rowsort label-6503
SELECT ALL - - 65 + + 94, 9 DIV + 21 AS col1
----
159
0

skipif mysql # not compatible
query II rowsort label-6503
SELECT ALL - - 65 + + 94, 9 / + 21 AS col1
----
159
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT - - MIN( 69 ) - + + 57
----
12

skipif mysql # not compatible
query I rowsort label-6504
SELECT - - MIN ( 69 ) - + + 57
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT - NULLIF ( + ( - + 91 ), - + 8 + 52 - + NULLIF ( - + CASE 28 WHEN + 87 + + COUNT( * ) THEN - COUNT( * ) WHEN 2 THEN NULL END, 53 * MIN( 83 ) ) * - 71 )
----
91

skipif mysql # not compatible
query I rowsort label-6505
SELECT - NULLIF ( + ( - + 91 ), - + 8 + 52 - + NULLIF ( - + CASE 28 WHEN + 87 + + COUNT ( * ) THEN - COUNT ( * ) WHEN 2 THEN NULL END, 53 * MIN ( 83 ) ) * - 71 )
----
91

query I rowsort
SELECT - + ( - 50 ) col0
----
50

query I rowsort
SELECT ALL + 55 * + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6508
SELECT - - COUNT( * ) * - + 25, - 13 col1
----
-25
-13

skipif mysql # not compatible
query II rowsort label-6508
SELECT - - COUNT ( * ) * - + 25, - 13 col1
----
-25
-13

query II rowsort
SELECT ALL + COALESCE ( + 4, - 38 ) + - 4, 32 AS col0
----
0
32

query I rowsort
SELECT DISTINCT - 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6511
SELECT - - ( + COUNT( * ) ) DIV - 81 - - + 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6511
SELECT - - ( + COUNT ( * ) ) / - 81 - - + 67 AS col2
----
67

query I rowsort
SELECT + 2 * + + 33 + + 29 AS col0
----
95

query I rowsort
SELECT + 40 + + 61 + + 8
----
109

query I rowsort
SELECT + + 97 col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT ALL - 51 * - 76 * + + COALESCE ( 93, + MIN( DISTINCT 74 ) * + + ( + - ( - COUNT( * ) ) ) ) * + 77 + + 95
----
27756131

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL - 51 * - 76 * + + COALESCE ( 93, + MIN ( DISTINCT 74 ) * + + ( + - ( - COUNT ( * ) ) ) ) * + 77 + + 95
----
27756131

query I rowsort
SELECT + 31 + ( + 3 ) * + 67
----
232

onlyif mysql # aggregate syntax: 
query II rowsort label-6517
SELECT DISTINCT 1 * COUNT( * ) * + COUNT( * ), + ( + + 77 ) AS col1
----
1
77

skipif mysql # not compatible
query II rowsort label-6517
SELECT DISTINCT 1 * COUNT ( * ) * + COUNT ( * ), + ( + + 77 ) AS col1
----
1
77

query I rowsort
SELECT - 89 * - - 31 + - - 90 AS col0
----
-2669

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT ALL - 74 * + + SUM( ALL - 82 ) - + + 98 + - 17
----
5953

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL - 74 * + + SUM ( ALL - 82 ) - + + 98 + - 17
----
5953

query I rowsort
SELECT DISTINCT 36 * + + 9
----
324

query I rowsort
SELECT DISTINCT 66 * 52 AS col1
----
3432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6522
SELECT + CASE - - 21 WHEN - 68 + 13 THEN NULL WHEN - COUNT( * ) THEN - + 62 WHEN + ( CAST( + 23 AS SIGNED ) ) + - + 2 THEN 45 END * + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-6522
SELECT + CASE - - 21 WHEN - 68 + 13 THEN NULL WHEN - COUNT ( * ) THEN - + 62 WHEN + ( CAST ( + 23 AS INTEGER ) ) + - + 2 THEN 45 END * + COUNT ( * )
----
45

query I rowsort
SELECT DISTINCT 0 * + + 39
----
0

query I rowsort
SELECT + 65 * 9 col1
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT MIN( DISTINCT + 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6525
SELECT MIN ( DISTINCT + 16 ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6526
SELECT + COUNT( 31 ) + + - MIN( + 47 ) DIV + + 38 + - + 76 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6526
SELECT + COUNT ( 31 ) + + - MIN ( + 47 ) / + + 38 + - + 76 AS col1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6527
SELECT + 41 DIV 10 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6527
SELECT + 41 / 10 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6528
SELECT COUNT( * ) * + ( 42 ) + + ( - + COUNT( * ) ) col2, - 55 AS col1
----
41
-55

skipif mysql # not compatible
query II rowsort label-6528
SELECT COUNT ( * ) * + ( 42 ) + + ( - + COUNT ( * ) ) col2, - 55 AS col1
----
41
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT MIN( ALL - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-6529
SELECT MIN ( ALL - 63 )
----
-63

query I rowsort
SELECT - ( + 4 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT ALL MIN( - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL MIN ( - 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + 72 * CASE - + 36 WHEN COUNT( * ) + - - 59 THEN NULL WHEN + - 63 * - + 65 THEN NULL WHEN 42 - 40 THEN + 47 * + 23 + 42 WHEN 1 THEN ( + 97 ) - 49 END / - 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT + 72 * CASE - + 36 WHEN COUNT ( * ) + - - 59 THEN NULL WHEN + - 63 * - + 65 THEN NULL WHEN 42 - 40 THEN + 47 * + 23 + 42 WHEN 1 THEN ( + 97 ) - 49 END / - 65 col1
----
NULL

query II rowsort
SELECT - + 53 AS col2, - 71 AS col0
----
-53
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT DISTINCT 59 DIV + 11 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT 59 / + 11 AS col2
----
5

query I rowsort
SELECT ALL + 8 + 27 AS col0
----
35

query I rowsort
SELECT + 34 + - NULLIF ( + 9, - 71 ) AS col0
----
25

query I rowsort
SELECT - - 39 * 25 + + - 69 + - 71 AS col2
----
835

query I rowsort
SELECT + 47 + - - ( 42 ) col2
----
89

query I rowsort
SELECT - NULLIF ( + 3, 1 ) - + 51 AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6540
SELECT DISTINCT + - 0 * - 16 * 33 + 66 / CASE 16 WHEN + CAST( NULL AS SIGNED ) THEN - 92 WHEN 9 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT + - 0 * - 16 * 33 + 66 / CASE 16 WHEN + CAST ( NULL AS INTEGER ) THEN - 92 WHEN 9 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL - 58 + ( + - 47 ) + + NULLIF ( 27, 13 / + - SUM( - - ( - 40 ) ) ) * ( 89 ) + - 42
----
2256

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL - 58 + ( + - 47 ) + + NULLIF ( 27, 13 / + - SUM ( - - ( - 40 ) ) ) * ( 89 ) + - 42
----
2256

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT + 61 + - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-6542
SELECT + 61 + - - COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT ALL 30 + SUM( ALL - ( 21 ) )
----
9

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL 30 + SUM ( ALL - ( 21 ) )
----
9

query I rowsort
SELECT ALL + + 25 + - - 63
----
88

query II rowsort
SELECT - CASE - 55 WHEN + 75 THEN + - 87 ELSE - 18 END AS col1, - 73
----
18
-73

query I rowsort
SELECT ALL - 92 + 13 AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6547
SELECT - - CAST( - 98 AS SIGNED ) + + COUNT( * ) * + - 81 DIV 54 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6547
SELECT - - CAST ( - 98 AS INTEGER ) + + COUNT ( * ) * + - 81 / 54 AS col2
----
-99

query I rowsort
SELECT DISTINCT CASE 30 WHEN - 12 THEN + 52 END
----
NULL

query I rowsort
SELECT + - 1 * + 32 + + 92 col1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6550
SELECT DISTINCT - 90 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT - 90 / 97 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6551
SELECT ALL + - COUNT( * ) + CAST( NULL AS SIGNED ) + - 15 AS col1, 6 AS col2
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6551
SELECT ALL + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - 15 AS col1, 6 AS col2
----
NULL
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT SUM( DISTINCT + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-6552
SELECT SUM ( DISTINCT + 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT COUNT( DISTINCT - + 54 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6553
SELECT COUNT ( DISTINCT - + 54 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6554
SELECT - + 62 + 75 * - 79 + - + 26 - + - 53 - + ( MIN( ALL - 56 ) ) * - 12 - + COUNT( * ) * 58 * 48 * - NULLIF ( - 11 DIV - 58, 94 * + 21 ) col0
----
-6632

skipif mysql # not compatible
query I rowsort label-6554
SELECT - + 62 + 75 * - 79 + - + 26 - + - 53 - + ( MIN ( ALL - 56 ) ) * - 12 - + COUNT ( * ) * 58 * 48 * - NULLIF ( - 11 / - 58, 94 * + 21 ) col0
----
-6632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6555
SELECT - 77 DIV - - 45 + - - 15 DIV + MAX( ALL 58 ) + + 16 col1
----
15

skipif mysql # not compatible
query I rowsort label-6555
SELECT - 77 / - - 45 + - - 15 / + MAX ( ALL 58 ) + + 16 col1
----
15

query I rowsort
SELECT + 46 * 17 + + 50 AS col2
----
832

query I rowsort
SELECT ALL - 40 * 62
----
-2480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6558
SELECT - 31 * CAST( + ( + 70 ) AS SIGNED ) * - 74 AS col0
----
160580

skipif mysql # not compatible
query I rowsort label-6558
SELECT - 31 * CAST ( + ( + 70 ) AS INTEGER ) * - 74 AS col0
----
160580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6559
SELECT - COALESCE ( + - 19, 97, 69 ) * + 98 * + 48, 3 + 51 + + 85 + 53 * - + 97 DIV COUNT( * ) AS col1
----
89376
-5002

skipif mysql # not compatible
query II rowsort label-6559
SELECT - COALESCE ( + - 19, 97, 69 ) * + 98 * + 48, 3 + 51 + + 85 + 53 * - + 97 / COUNT ( * ) AS col1
----
89376
-5002

query II rowsort
SELECT DISTINCT + 28 * 77, 71 AS col2
----
2156
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT - COUNT( * ) - - 53 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6561
SELECT - COUNT ( * ) - - 53 AS col0
----
52

query I rowsort
SELECT + ( + 53 ) AS col1
----
53

query II rowsort
SELECT ALL + 35 AS col2, - 74
----
35
-74

query I rowsort
SELECT ( - 30 ) AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6565
SELECT 47 * - 25 - + 30 - + - ( + + COUNT( * ) ) DIV + SUM( - 99 ) * + + 9
----
-1205

skipif mysql # not compatible
query I rowsort label-6565
SELECT 47 * - 25 - + 30 - + - ( + + COUNT ( * ) ) / + SUM ( - 99 ) * + + 9
----
-1205

query I rowsort
SELECT + 35 * + 60
----
2100

query I rowsort
SELECT DISTINCT 47 * + + 77 * + 57
----
206283

query I rowsort
SELECT + ( 1 ) AS col0
----
1

query I rowsort
SELECT ALL + ( - 90 ) AS col1
----
-90

query II rowsort
SELECT ALL 82 * 15 AS col1, - 36
----
1230
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL 99 * 46 * MAX( - 46 )
----
-209484

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL 99 * 46 * MAX ( - 46 )
----
-209484

query I rowsort
SELECT 5 + + CASE + - ( - 1 ) WHEN 80 + - + 37 THEN NULL WHEN + + 45 * 41 THEN + 32 ELSE 25 END AS col0
----
30

query I rowsort
SELECT DISTINCT 11 * - + 6
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT ALL NULLIF ( - + 92, 55 ) + COUNT( * ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL NULLIF ( - + 92, 55 ) + COUNT ( * ) col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL + 79 * + COUNT( * ) + - 33 col0
----
46

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL + 79 * + COUNT ( * ) + - 33 col0
----
46

query II rowsort
SELECT + 83 AS col0, + 13
----
83
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6577
SELECT 86 * MIN( 32 ) + - CAST( NULL AS SIGNED ) + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT 86 * MIN ( 32 ) + - CAST ( NULL AS INTEGER ) + 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT 32 * - 32 - SUM( ALL + ( 89 ) )
----
-1113

skipif mysql # not compatible
query I rowsort label-6578
SELECT 32 * - 32 - SUM ( ALL + ( 89 ) )
----
-1113

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6579
SELECT ALL + 77 + 45 - + COUNT( * ) + - + 42 * - 55 * - CAST( NULL AS DECIMAL ) AS col1, MAX( ALL + 2 )
----
NULL
2

skipif mysql # not compatible
query II rowsort label-6579
SELECT ALL + 77 + 45 - + COUNT ( * ) + - + 42 * - 55 * - CAST ( NULL AS REAL ) AS col1, MAX ( ALL + 2 )
----
NULL
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT DISTINCT 93 + COUNT( * ) + - - 2
----
96

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT 93 + COUNT ( * ) + - - 2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT DISTINCT MIN( - ( + 73 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT MIN ( - ( + 73 ) )
----
-73

query I rowsort
SELECT 55 * - + 72 AS col1
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL + MAX( 27 )
----
27

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + MAX ( 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT MIN( + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-6584
SELECT MIN ( + 27 )
----
27

query I rowsort
SELECT ALL 64 + + - 11 * + - 77 + + + 4
----
915

query II rowsort
SELECT NULLIF ( 98, - - 15 / 6 ) AS col0, 59 + + - 31 AS col2
----
98
28

query I rowsort
SELECT ALL 78 + - + ( - + 45 )
----
123

query I rowsort
SELECT 80 - + 30 + - 17 * 88
----
-1446

query I rowsort
SELECT ALL - 11 * - 31
----
341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6590
SELECT ALL - COUNT( * ) - - 85 - 28 + + + ( + 1 ) + + 12 * - + COUNT( * ) * + COUNT( * ) + + + SUM( ALL - 80 ) DIV 86 * COUNT( * ) + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL - COUNT ( * ) - - 85 - 28 + + + ( + 1 ) + + 12 * - + COUNT ( * ) * + COUNT ( * ) + + + SUM ( ALL - 80 ) / 86 * COUNT ( * ) + COUNT ( * ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT + COUNT( ALL + + 40 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6591
SELECT + COUNT ( ALL + + 40 ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6592
SELECT DISTINCT + 44, COUNT( * ) DIV + - 60 * 79 AS col1
----
44
0

skipif mysql # not compatible
query II rowsort label-6592
SELECT DISTINCT + 44, COUNT ( * ) / + - 60 * 79 AS col1
----
44
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6593
SELECT ALL + 41 - - 58 DIV + 81
----
41

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL + 41 - - 58 / + 81
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL 90 * CASE WHEN NOT NULL NOT IN ( 11, 8, 56, + 47 ) THEN + MIN( 59 ) END * + + 26 * 51 * + CASE + COUNT( * ) WHEN + ( - 28 ) / - 83 THEN 78 WHEN 46 * COALESCE ( SUM( + 65 ) * + 66, + 45 ) + ( + 11 + - ( + COUNT( * ) ) ) THEN NULL END + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL 90 * CASE WHEN NOT NULL NOT IN ( 11, 8, 56, + 47 ) THEN + MIN ( 59 ) END * + + 26 * 51 * + CASE + COUNT ( * ) WHEN + ( - 28 ) / - 83 THEN 78 WHEN 46 * COALESCE ( SUM ( + 65 ) * + 66, + 45 ) + ( + 11 + - ( + COUNT ( * ) ) ) THEN NULL END + 43 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6595
SELECT 41 DIV + + 97 - - 98 + - COALESCE ( 80, - 99 DIV - 87, - + 22 DIV CASE 3 WHEN + NULLIF ( + 52, 16 ) THEN 95 * 7 + - AVG ( DISTINCT - 44 ) WHEN + 49 THEN 42 + 74 END * + 35 )
----
18

skipif mysql # not compatible
query I rowsort label-6595
SELECT 41 / + + 97 - - 98 + - COALESCE ( 80, - 99 / - 87, - + 22 / CASE 3 WHEN + NULLIF ( + 52, 16 ) THEN 95 * 7 + - AVG ( DISTINCT - 44 ) WHEN + 49 THEN 42 + 74 END * + 35 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT - 81 * + - COUNT( * ) + + + 60 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-6596
SELECT - 81 * + - COUNT ( * ) + + + 60 AS col2
----
141

query I rowsort
SELECT ALL + 41 - 73 + + 67
----
35

query I rowsort
SELECT + 83 col0
----
83

query I rowsort
SELECT 84 + ( CASE + - 27 WHEN - + ( - 30 ) - + 85 * - 98 THEN + - ( 56 ) WHEN + + 9 THEN - 60 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6600
SELECT 55 DIV - - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-6600
SELECT 55 / - - COUNT ( * )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6601
SELECT ALL - 69 DIV 63
----
-1

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL - 69 / 63
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6602
SELECT + COUNT( * ) DIV + 56 + + SUM( ( + + ( + 99 ) ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6602
SELECT + COUNT ( * ) / + 56 + + SUM ( ( + + ( + 99 ) ) ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6603
SELECT 74 + + 16, COUNT( * ) col0
----
90
1

skipif mysql # not compatible
query II rowsort label-6603
SELECT 74 + + 16, COUNT ( * ) col0
----
90
1

query I rowsort
SELECT ALL - 79 * + 61 AS col1
----
-4819

query I rowsort
SELECT + 57 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT ALL COUNT( * ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT 73 * + COUNT( * ) * + 92 * + - 54
----
-362664

skipif mysql # not compatible
query I rowsort label-6607
SELECT 73 * + COUNT ( * ) * + 92 * + - 54
----
-362664

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT 9 + + COUNT( * ) + COUNT( ALL 65 ) + 16 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6608
SELECT 9 + + COUNT ( * ) + COUNT ( ALL 65 ) + 16 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6609
SELECT 15 * - - CAST( + 53 AS SIGNED ), + 56 AS col1
----
795
56

skipif mysql # not compatible
query II rowsort label-6609
SELECT 15 * - - CAST ( + 53 AS INTEGER ), + 56 AS col1
----
795
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT COUNT( * ) + - - 20
----
21

skipif mysql # not compatible
query I rowsort label-6610
SELECT COUNT ( * ) + - - 20
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6611
SELECT DISTINCT - + COALESCE ( + - 33, - COALESCE ( + - 99, ( + ( + 70 ) ) DIV - 16 + 75 + + 77 + 18 + 15 * 60 ) )
----
33

skipif mysql # not compatible
query I rowsort label-6611
SELECT DISTINCT - + COALESCE ( + - 33, - COALESCE ( + - 99, ( + ( + 70 ) ) / - 16 + 75 + + 77 + 18 + 15 * 60 ) )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6612
SELECT ALL + - COUNT( * ) + - 73, + 0 AS col2
----
-74
0

skipif mysql # not compatible
query II rowsort label-6612
SELECT ALL + - COUNT ( * ) + - 73, + 0 AS col2
----
-74
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT + COUNT( * ) + + ( - - 1 ) - + + 49 * ( + ( + 54 ) ) col0
----
-2644

skipif mysql # not compatible
query I rowsort label-6613
SELECT + COUNT ( * ) + + ( - - 1 ) - + + 49 * ( + ( + 54 ) ) col0
----
-2644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6614
SELECT DISTINCT - ( - 72 ) + - ( + 91 ) - - + CAST( NULL AS SIGNED ) + + + 41 * + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT - ( - 72 ) + - ( + 91 ) - - + CAST ( NULL AS INTEGER ) + + + 41 * + 80 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - COALESCE ( - 69, - + 50 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT ALL - CASE - 35 WHEN 43 THEN - COUNT( * ) + - - CASE 94 WHEN + - 35 THEN NULL ELSE - + COALESCE ( - + 86, + MIN( ALL 8 ), - 15 + + 33 ) / - AVG ( DISTINCT - 20 + 93 ) END WHEN ( 43 ) THEN NULL WHEN ( + MIN( 83 ) ) THEN 35 + + 85 END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL - CASE - 35 WHEN 43 THEN - COUNT ( * ) + - - CASE 94 WHEN + - 35 THEN NULL ELSE - + COALESCE ( - + 86, + MIN ( ALL 8 ), - 15 + + 33 ) / - AVG ( DISTINCT - 20 + 93 ) END WHEN ( 43 ) THEN NULL WHEN ( + MIN ( 83 ) ) THEN 35 + + 85 END * 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6617
SELECT CAST( CASE + COUNT( * ) WHEN - 19 THEN CAST( + 64 AS SIGNED ) END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT CAST ( CASE + COUNT ( * ) WHEN - 19 THEN CAST ( + 64 AS INTEGER ) END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6618
SELECT ALL - 56 DIV + - ( - + 98 ) + - 10 + + - CASE + 2 WHEN + 74 + - 88 THEN + ( - - 51 ) WHEN + COUNT( * ) THEN + + COALESCE ( MIN( ALL - 32 ), 20 DIV 30 - + 36 DIV - 77, - ( 34 ) + - 65 * - 57 ) * 76 WHEN COUNT( * ) + 8 * + 50 THEN COUNT( * ) * - 46 ELSE 76 * CASE NULLIF ( 85, - 63 ) WHEN 4 THEN - 77 WHEN + ( + 85 ) THEN ( COUNT( 6 ) ) * 29 END END AS col2
----
-2214

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL - 56 / + - ( - + 98 ) + - 10 + + - CASE + 2 WHEN + 74 + - 88 THEN + ( - - 51 ) WHEN + COUNT ( * ) THEN + + COALESCE ( MIN ( ALL - 32 ), 20 / 30 - + 36 / - 77, - ( 34 ) + - 65 * - 57 ) * 76 WHEN COUNT ( * ) + 8 * + 50 THEN COUNT ( * ) * - 46 ELSE 76 * CASE NULLIF ( 85, - 63 ) WHEN 4 THEN - 77 WHEN + ( + 85 ) THEN ( COUNT ( 6 ) ) * 29 END END AS col2
----
-2214

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT DISTINCT + + COUNT( * ) + + 12 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT + + COUNT ( * ) + + 12 AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6620
SELECT - - ( - ( + - 97 ) ) AS col1, COUNT( * ) DIV - - 84 - - CASE + AVG ( DISTINCT - - 69 ) WHEN 68 THEN NULL WHEN + SUM( - 22 ) THEN NULL WHEN + COUNT( NULLIF ( 25, - 54 ) ) * 50 THEN NULL ELSE - 94 END * - MIN( - 41 ) AS col1
----
97
-3854

skipif mysql # not compatible
query II rowsort label-6620
SELECT - - ( - ( + - 97 ) ) AS col1, COUNT ( * ) / - - 84 - - CASE + AVG ( DISTINCT - - 69 ) WHEN 68 THEN NULL WHEN + SUM ( - 22 ) THEN NULL WHEN + COUNT ( NULLIF ( 25, - 54 ) ) * 50 THEN NULL ELSE - 94 END * - MIN ( - 41 ) AS col1
----
97
-3854

query I rowsort
SELECT ALL 9 * + 66 * 19 AS col0
----
11286

query I rowsort
SELECT ALL 49 - + - 47 * ( + 9 )
----
472

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT NULLIF ( - - 32, - 30 / 54 + 86 + + - 83 + - - COUNT( * ) + - COUNT( - 78 ) )
----
32

skipif mysql # not compatible
query I rowsort label-6623
SELECT NULLIF ( - - 32, - 30 / 54 + 86 + + - 83 + - - COUNT ( * ) + - COUNT ( - 78 ) )
----
32

query II rowsort
SELECT + 32 + 2 + + ( 19 ) - - 31 * - + 27 * - 51, + 39 + - 28 AS col1
----
42740
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT + COUNT( * ) - - 71 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6625
SELECT + COUNT ( * ) - - 71 AS col2
----
72

query I rowsort
SELECT CASE - 20 WHEN + 66 * 89 THEN + + 73 + - 78 * + + 44 WHEN + 38 * - 66 THEN NULL WHEN + + 91 * + - NULLIF ( - 11, 86 ) * - 97 THEN 24 END + 44
----
NULL

query II rowsort
SELECT - 23, - 52 AS col1
----
-23
-52

query I rowsort
SELECT 74 + - + 80 - + 28 * 90 col1
----
-2526

query I rowsort
SELECT 45 * + + 3 AS col1
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT CAST( + 66 AS SIGNED ) + + 75 + + ( - 9 ) * + NULLIF ( - - 47, - 31 * + 7 + + 97 + COUNT( ALL 38 ) * - - 41 ) col1
----
-282

skipif mysql # not compatible
query I rowsort label-6630
SELECT CAST ( + 66 AS INTEGER ) + + 75 + + ( - 9 ) * + NULLIF ( - - 47, - 31 * + 7 + + 97 + COUNT ( ALL 38 ) * - - 41 ) col1
----
-282

query I rowsort
SELECT - 81 col1
----
-81

query I rowsort
SELECT 93 * 75 * + 23
----
160425

query I rowsort
SELECT ALL 36 * - ( + - 1 ) col1
----
36

query II rowsort
SELECT ALL - NULLIF ( - 37, + - 43 / - 30 + 1 + 74 ), 35 AS col0
----
37
35

query I rowsort
SELECT + CASE - 11 WHEN - 78 THEN NULL WHEN - 15 + + 76 * ( + ( - 63 ) ) THEN NULL ELSE + - 25 END
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT + COALESCE ( CASE WHEN NULL NOT IN ( + COUNT( * ), 95 ) THEN - - COUNT( * ) * - 71 + + COUNT( * ) + + 23 END, + 27 * MAX( + - 77 ) * + 87 + - 6 * - 99 + 93 )
----
-180186

skipif mysql # not compatible
query I rowsort label-6636
SELECT + COALESCE ( CASE WHEN NULL NOT IN ( + COUNT ( * ), 95 ) THEN - - COUNT ( * ) * - 71 + + COUNT ( * ) + + 23 END, + 27 * MAX ( + - 77 ) * + 87 + - 6 * - 99 + 93 )
----
-180186

query I rowsort
SELECT DISTINCT - 44 * + - NULLIF ( 82, - - 2 ) + + + 61 AS col0
----
3669

query I rowsort
SELECT DISTINCT 57 * - 66 * + - 15 + - 51 + + 90 * + 65 * + 67
----
448329

query I rowsort
SELECT - 64 * - 28 AS col2
----
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT - 82 + SUM( + 11 ) * - COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6640
SELECT - 82 + SUM ( + 11 ) * - COUNT ( * ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT ALL - 34 * - COUNT( * ) + - - 71 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL - 34 * - COUNT ( * ) + - - 71 AS col0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6642
SELECT - ( + ( - ( 0 ) ) ) - - - 67 DIV + + CASE + - 92 WHEN 82 THEN NULL ELSE + 91 + + + CAST( - COUNT( * ) AS SIGNED ) END - - 76 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6642
SELECT - ( + ( - ( 0 ) ) ) - - - 67 / + + CASE + - 92 WHEN 82 THEN NULL ELSE + 91 + + + CAST ( - COUNT ( * ) AS INTEGER ) END - - 76 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT SUM( ALL + - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-6643
SELECT SUM ( ALL + - 4 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6644
SELECT + 48 * - 57 + - ( CASE - - ( + - 19 ) WHEN - CAST( - 34 AS SIGNED ) THEN COALESCE ( - - 50, - + 73, - 35 ) * 31 END ) - 33 * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6644
SELECT + 48 * - 57 + - ( CASE - - ( + - 19 ) WHEN - CAST ( - 34 AS INTEGER ) THEN COALESCE ( - - 50, - + 73, - 35 ) * 31 END ) - 33 * 3
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6645
SELECT ALL - MAX( ALL + 18 ) * 60, 7 * - MIN( DISTINCT COALESCE ( 28, - - 65, + 44 ) ) * CASE - ( ( 97 ) ) WHEN ( ( 48 ) ) THEN NULL ELSE - 95 END AS col0
----
-1080
18620

skipif mysql # not compatible
query II rowsort label-6645
SELECT ALL - MAX ( ALL + 18 ) * 60, 7 * - MIN ( DISTINCT COALESCE ( 28, - - 65, + 44 ) ) * CASE - ( ( 97 ) ) WHEN ( ( 48 ) ) THEN NULL ELSE - 95 END AS col0
----
-1080
18620

query I rowsort
SELECT ALL + - 80 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - CASE + 12 WHEN + + 23 + + + ( 28 ) THEN - 78 ELSE + - 13 * ( ( 64 ) ) END - - COUNT( * ) + - 18 * MIN( 27 ) * + 50 AS col1
----
-23467

skipif mysql # not compatible
query I rowsort label-6647
SELECT - CASE + 12 WHEN + + 23 + + + ( 28 ) THEN - 78 ELSE + - 13 * ( ( 64 ) ) END - - COUNT ( * ) + - 18 * MIN ( 27 ) * + 50 AS col1
----
-23467

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT - COALESCE ( + 12, SUM( ALL - 98 ) ) * - + 88
----
1056

skipif mysql # not compatible
query I rowsort label-6648
SELECT - COALESCE ( + 12, SUM ( ALL - 98 ) ) * - + 88
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT - MAX( DISTINCT - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-6649
SELECT - MAX ( DISTINCT - 24 )
----
24

query I rowsort
SELECT + + ( - 94 ) + - 11 - - 20 * 15
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT - ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6651
SELECT - ( + + COUNT ( * ) )
----
-1

query II rowsort
SELECT DISTINCT + 35 AS col2, 61
----
35
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL MIN( + 48 ) - - 52 - + - 99 * 53 * + COUNT( * ) AS col0
----
5347

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL MIN ( + 48 ) - - 52 - + - 99 * 53 * + COUNT ( * ) AS col0
----
5347

onlyif mysql # DIV for integer division: 
query I rowsort label-6654
SELECT ALL + ( - 37 ) DIV + + 98 + + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL + ( - 37 ) / + + 98 + + 23 AS col0
----
23

query I rowsort
SELECT - + 89 * + + 87 AS col1
----
-7743

onlyif mysql # DIV for integer division: 
query I rowsort label-6656
SELECT - 66 DIV - + 10
----
6

skipif mysql # not compatible
query I rowsort label-6656
SELECT - 66 / - + 10
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT DISTINCT - 62 * - MAX( ALL - CASE + 83 WHEN 27 THEN 43 WHEN + + 72 THEN + - 55 - 9 END ) * 58 + - MIN( ALL - 68 ) - - 40 + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT - 62 * - MAX ( ALL - CASE + 83 WHEN 27 THEN 43 WHEN + + 72 THEN + - 55 - 9 END ) * 58 + - MIN ( ALL - 68 ) - - 40 + + 83
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT DISTINCT + - 97 DIV + 82 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT + - 97 / + 82 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT - 23 + - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-6659
SELECT - 23 + - COUNT ( * ) AS col0
----
-24

query I rowsort
SELECT ALL ( - 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6661
SELECT DISTINCT 2 * + COUNT( * ), - 10 + - 53 AS col1
----
2
-63

skipif mysql # not compatible
query II rowsort label-6661
SELECT DISTINCT 2 * + COUNT ( * ), - 10 + - 53 AS col1
----
2
-63

query I rowsort
SELECT - 66 - - 73 * + 55
----
3949

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6663
SELECT - NULLIF ( - COUNT( * ), 52 ) DIV 91 + + 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6663
SELECT - NULLIF ( - COUNT ( * ), 52 ) / 91 + + 88 AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6664
SELECT + CAST( NULL AS DECIMAL ) / + SUM( 55 ) * 69 * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT + CAST ( NULL AS REAL ) / + SUM ( 55 ) * 69 * + 5
----
NULL

query I rowsort
SELECT ALL 37 + + + 86 * + + 30 AS col1
----
2617

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT - NULLIF ( + - 42, + 35 * + MAX( DISTINCT - 88 ) * - + 65 * + 41 ) + 79 * + 8 * - NULLIF ( + 16, - 63 ) AS col2
----
-10070

skipif mysql # not compatible
query I rowsort label-6666
SELECT - NULLIF ( + - 42, + 35 * + MAX ( DISTINCT - 88 ) * - + 65 * + 41 ) + 79 * + 8 * - NULLIF ( + 16, - 63 ) AS col2
----
-10070

query I rowsort
SELECT - ( + + 49 ) AS col0
----
-49

query I rowsort
SELECT + 7 * + 58
----
406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6669
SELECT DISTINCT - 6 + 90 + + 35 + - 6 * - 56 DIV COUNT( * ) + + 24 DIV - + 5
----
451

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT - 6 + 90 + + 35 + - 6 * - 56 / COUNT ( * ) + + 24 / - + 5
----
451

query I rowsort
SELECT ALL + 51 + + 98 col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT + MAX( 32 ) * + - 30 AS col2
----
-960

skipif mysql # not compatible
query I rowsort label-6671
SELECT + MAX ( 32 ) * + - 30 AS col2
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT ALL 83 + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL 83 + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT + COALESCE ( - + 98, + + NULLIF ( + + 78, - - 25 ) ) * - + 35 + + 56 * + 93 * - COUNT( - 22 ) col2
----
-1778

skipif mysql # not compatible
query I rowsort label-6673
SELECT + COALESCE ( - + 98, + + NULLIF ( + + 78, - - 25 ) ) * - + 35 + + 56 * + 93 * - COUNT ( - 22 ) col2
----
-1778

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT + 65 + - - MIN( DISTINCT - 31 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6674
SELECT + 65 + - - MIN ( DISTINCT - 31 ) AS col2
----
34

query I rowsort
SELECT + ( - 75 ) AS col2
----
-75

query I rowsort
SELECT ( + - 27 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6677
SELECT ALL - ( + + ( - 25 ) ) DIV COUNT( * ) + - - 11 * + + 74 * - 59 + - ( - 23 ) + - + 60
----
-48038

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - ( + + ( - 25 ) ) / COUNT ( * ) + - - 11 * + + 74 * - 59 + - ( - 23 ) + - + 60
----
-48038

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT + ( - MAX( ALL - 60 ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6678
SELECT + ( - MAX ( ALL - 60 ) ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT ALL NULLIF ( - 57, + + 54 ) * - MAX( DISTINCT + 21 )
----
1197

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL NULLIF ( - 57, + + 54 ) * - MAX ( DISTINCT + 21 )
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL 81 * + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL 81 * + COUNT ( * )
----
81

query I rowsort
SELECT DISTINCT + + 60 AS col2
----
60

query I rowsort
SELECT ALL + + 35 * + 73 - + 5 AS col2
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT - - 28 * + COUNT( DISTINCT - 57 ) + - - ( 9 ) + 32 * 76 * - 55 * + + 95 * - 46 AS col2
----
584531237

skipif mysql # not compatible
query I rowsort label-6683
SELECT - - 28 * + COUNT ( DISTINCT - 57 ) + - - ( 9 ) + 32 * 76 * - 55 * + + 95 * - 46 AS col2
----
584531237

onlyif mysql # aggregate syntax: 
query II rowsort label-6684
SELECT - 52 + 28, NULLIF ( - COUNT( * ), - - 38 * - 49 + - 30 - - - 62 ) AS col0
----
-24
-1

skipif mysql # not compatible
query II rowsort label-6684
SELECT - 52 + 28, NULLIF ( - COUNT ( * ), - - 38 * - 49 + - 30 - - - 62 ) AS col0
----
-24
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6685
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6686
SELECT + - 84 DIV 94 AS col2, + 55
----
0
55

skipif mysql # not compatible
query II rowsort label-6686
SELECT + - 84 / 94 AS col2, + 55
----
0
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6687
SELECT - - CAST( + NULLIF ( + 42, COUNT( DISTINCT - 96 ) ) AS SIGNED ) * 88 * + 74 * - 60 + - COALESCE ( + + 51, COUNT( * ) * + 19 ) * - 92 AS col2
----
-16405548

skipif mysql # not compatible
query I rowsort label-6687
SELECT - - CAST ( + NULLIF ( + 42, COUNT ( DISTINCT - 96 ) ) AS INTEGER ) * 88 * + 74 * - 60 + - COALESCE ( + + 51, COUNT ( * ) * + 19 ) * - 92 AS col2
----
-16405548

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + COUNT( * ) + COUNT( + 31 ) * + 49
----
50

skipif mysql # not compatible
query I rowsort label-6688
SELECT + COUNT ( * ) + COUNT ( + 31 ) * + 49
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT + + 10 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT + + 10 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 19 col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6691
SELECT ALL + 24 * - 73 * - 84 * + ( + 64 ) + 95 + - 5 * 73 DIV + - COUNT( * ) col0, + 53
----
9419212
53

skipif mysql # not compatible
query II rowsort label-6691
SELECT ALL + 24 * - 73 * - 84 * + ( + 64 ) + 95 + - 5 * 73 / + - COUNT ( * ) col0, + 53
----
9419212
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6692
SELECT ALL MAX( 79 ) AS col1, - COUNT( * ) DIV COUNT( * ) + + COALESCE ( - NULLIF ( + - CASE - 13 WHEN + 77 * + 39 THEN NULL WHEN 18 + + COUNT( * ) + + 42 * + 59 * - CAST( NULL AS SIGNED ) + 32 * - 80 THEN + 35 DIV - 82 ELSE 36 END, + 36 ), 69 ) - - ( 60 + 49 ) * 80
----
79
8755

skipif mysql # not compatible
query II rowsort label-6692
SELECT ALL MAX ( 79 ) AS col1, - COUNT ( * ) / COUNT ( * ) + + COALESCE ( - NULLIF ( + - CASE - 13 WHEN + 77 * + 39 THEN NULL WHEN 18 + + COUNT ( * ) + + 42 * + 59 * - CAST ( NULL AS INTEGER ) + 32 * - 80 THEN + 35 / - 82 ELSE 36 END, + 36 ), 69 ) - - ( 60 + 49 ) * 80
----
79
8755

query I rowsort
SELECT - 54 * - 96 AS col1
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT - - COUNT( * ) + + CASE + + 29 WHEN - - 14 + + COUNT( * ) THEN ( + + AVG ( ALL - - 13 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT - - COUNT ( * ) + + CASE + + 29 WHEN - - 14 + + COUNT ( * ) THEN ( + + AVG ( ALL - - 13 ) ) END AS col1
----
NULL

query I rowsort
SELECT - + 52 + 42 AS col2
----
-10

query I rowsort
SELECT - - 83 * + 28 + 47
----
2371

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6697
SELECT - MIN( - 95 ) + - ( + - 66 ) + + 79 + + 48 DIV - + 23 + + COUNT( * ) AS col0
----
239

skipif mysql # not compatible
query I rowsort label-6697
SELECT - MIN ( - 95 ) + - ( + - 66 ) + + 79 + + 48 / - + 23 + + COUNT ( * ) AS col0
----
239

query I rowsort
SELECT - 31 + 30 * 1
----
-1

query I rowsort
SELECT + 49 + 32 AS col1
----
81

query I rowsort
SELECT ALL + 92 * - 27
----
-2484

query I rowsort
SELECT DISTINCT - 37 + - + 97 + - 25 AS col2
----
-159

query I rowsort
SELECT ALL + 47 + 18
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT - COUNT( - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-6703
SELECT - COUNT ( - 72 )
----
-1

query II rowsort
SELECT 32, 75 AS col0
----
32
75

query I rowsort
SELECT ALL - 19 + 70 AS col2
----
51

query II rowsort
SELECT DISTINCT 36 AS col2, 32 col0
----
36
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT COUNT( DISTINCT - 81 ) + + 40 * - 83
----
-3319

skipif mysql # not compatible
query I rowsort label-6707
SELECT COUNT ( DISTINCT - 81 ) + + 40 * - 83
----
-3319

onlyif mysql # aggregate syntax: 
query II rowsort label-6708
SELECT ALL 41, + 54 * - + COALESCE ( 5, + + CASE - - 88 WHEN - - 71 THEN NULL WHEN SUM( ALL - 7 ) * + ( - - 8 ) THEN + SUM( DISTINCT ( - + 2 ) ) END ) col2
----
41
-270

skipif mysql # not compatible
query II rowsort label-6708
SELECT ALL 41, + 54 * - + COALESCE ( 5, + + CASE - - 88 WHEN - - 71 THEN NULL WHEN SUM ( ALL - 7 ) * + ( - - 8 ) THEN + SUM ( DISTINCT ( - + 2 ) ) END ) col2
----
41
-270

query I rowsort
SELECT 9 + - + 76
----
-67

query II rowsort
SELECT 27 AS col2, 47
----
27
47

query I rowsort
SELECT ( + 8 ) + - + 35
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL + 20 + + ( + 58 ) / CASE - 8 WHEN - + 96 / - + COUNT( - 81 ) * + 96 + - + 52 - + 54 / - 47 THEN - 42 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL + 20 + + ( + 58 ) / CASE - 8 WHEN - + 96 / - + COUNT ( - 81 ) * + 96 + - + 52 - + 54 / - 47 THEN - 42 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT MIN( ALL + 16 ) * COUNT( * ) * - ( + + 14 ) col2
----
-224

skipif mysql # not compatible
query I rowsort label-6713
SELECT MIN ( ALL + 16 ) * COUNT ( * ) * - ( + + 14 ) col2
----
-224

query I rowsort
SELECT 25 * - - 91
----
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT - COUNT( * ) * + + 83 * - - 65 AS col2
----
-5395

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT - COUNT ( * ) * + + 83 * - - 65 AS col2
----
-5395

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT DISTINCT + 75 * - COUNT( + - 50 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT + 75 * - COUNT ( + - 50 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT 15 * - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-6717
SELECT 15 * - COUNT ( * )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT DISTINCT 34 DIV + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT 34 / + 68 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6719
SELECT COUNT( * ) * + NULLIF ( - COUNT( * ), CAST( + 60 AS SIGNED ) + + CASE + - 91 WHEN + + 17 THEN + + 39 * - MAX( - 48 ) * - 17 END + - 2 * 91 + - 91 + 10 * COALESCE ( 34, - 27 * + 46 + - 95 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6719
SELECT COUNT ( * ) * + NULLIF ( - COUNT ( * ), CAST ( + 60 AS INTEGER ) + + CASE + - 91 WHEN + + 17 THEN + + 39 * - MAX ( - 48 ) * - 17 END + - 2 * 91 + - 91 + 10 * COALESCE ( 34, - 27 * + 46 + - 95 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6720
SELECT ALL - + 53 AS col1, - COUNT( * ) AS col0
----
-53
-1

skipif mysql # not compatible
query II rowsort label-6720
SELECT ALL - + 53 AS col1, - COUNT ( * ) AS col0
----
-53
-1

query II rowsort
SELECT DISTINCT - 16 AS col2, + 91 * + - 36 + - 8 AS col0
----
-16
-3284

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT + - ( + ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6722
SELECT + - ( + ( + COUNT ( * ) ) )
----
-1

query I rowsort
SELECT + + ( - 25 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT + COUNT( - 95 ) * + 67 + + + SUM( DISTINCT - 3 ) * + + 30 * + 78 * 45 AS col0
----
-315833

skipif mysql # not compatible
query I rowsort label-6724
SELECT + COUNT ( - 95 ) * + 67 + + + SUM ( DISTINCT - 3 ) * + + 30 * + 78 * 45 AS col0
----
-315833

onlyif mysql # aggregate syntax: 
query II rowsort label-6725
SELECT ALL - + NULLIF ( + 70, + 34 ) AS col2, COUNT( * )
----
-70
1

skipif mysql # not compatible
query II rowsort label-6725
SELECT ALL - + NULLIF ( + 70, + 34 ) AS col2, COUNT ( * )
----
-70
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6726
SELECT - - COUNT( * ) * - 52 - + NULLIF ( - 76, + 41 * - 91 - CAST( NULL AS SIGNED ) ) * - 81 AS col0
----
-6208

skipif mysql # not compatible
query I rowsort label-6726
SELECT - - COUNT ( * ) * - 52 - + NULLIF ( - 76, + 41 * - 91 - CAST ( NULL AS INTEGER ) ) * - 81 AS col0
----
-6208

query I rowsort
SELECT ALL 42 * - 44 col0
----
-1848

query I rowsort
SELECT 1 * 62 * + 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6729
SELECT ALL + COUNT( * ) DIV - + NULLIF ( - 68, - + 93 * - COUNT( * ) * - 87 ) + + 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + COUNT ( * ) / - + NULLIF ( - 68, - + 93 * - COUNT ( * ) * - 87 ) + + 48 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT + CASE 97 WHEN CASE - 86 WHEN 44 + 0 THEN + ( - 96 ) + - + 40 + + 60 * 77 WHEN - 20 * - 1 + + 71 + - 0 THEN - COUNT( * ) ELSE 78 END / + 40 THEN NULL ELSE ( - 69 ) END
----
-69

skipif mysql # not compatible
query I rowsort label-6730
SELECT + CASE 97 WHEN CASE - 86 WHEN 44 + 0 THEN + ( - 96 ) + - + 40 + + 60 * 77 WHEN - 20 * - 1 + + 71 + - 0 THEN - COUNT ( * ) ELSE 78 END / + 40 THEN NULL ELSE ( - 69 ) END
----
-69

query I rowsort
SELECT ALL 99 * - ( + 21 ) col2
----
-2079

query I rowsort
SELECT ALL - + ( - 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6733
SELECT ALL - + CAST( MAX( + - 62 ) AS SIGNED ) col1
----
62

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL - + CAST ( MAX ( + - 62 ) AS INTEGER ) col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT + MAX( DISTINCT + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6734
SELECT + MAX ( DISTINCT + 47 ) AS col0
----
47

query II rowsort
SELECT ALL - 83, 7 AS col1
----
-83
7

query I rowsort
SELECT + + 26 col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT ( - 62 ) DIV + + 16
----
-3

skipif mysql # not compatible
query I rowsort label-6737
SELECT ( - 62 ) / + + 16
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT - 75 DIV 34 + + + 31
----
29

skipif mysql # not compatible
query I rowsort label-6738
SELECT - 75 / 34 + + + 31
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT 3 * COUNT( + - 8 ) - + 95 * - 38 * 10 + + 56 col2
----
36159

skipif mysql # not compatible
query I rowsort label-6739
SELECT 3 * COUNT ( + - 8 ) - + 95 * - 38 * 10 + + 56 col2
----
36159

query II rowsort
SELECT 62 * - ( - + 49 ) AS col0, 3 AS col2
----
3038
3

query II rowsort
SELECT DISTINCT 68, 52 AS col0
----
68
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6742
SELECT ALL - 24 DIV + 29 * - + 28 * - 94 * + - 80
----
0

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - 24 / + 29 * - + 28 * - 94 * + - 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6743
SELECT 74 DIV NULLIF ( + 65, - 67 * 56 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6743
SELECT 74 / NULLIF ( + 65, - 67 * 56 ) AS col0
----
1

query I rowsort
SELECT ALL 25 + - 20 AS col2
----
5

query I rowsort
SELECT DISTINCT - 6 + + 95
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT ALL + 51 + + + 92 * 59 + - CAST( COUNT( * ) AS SIGNED )
----
5478

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL + 51 + + + 92 * 59 + - CAST ( COUNT ( * ) AS INTEGER )
----
5478

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT 90 - + + COUNT( * ) + - 6 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6747
SELECT 90 - + + COUNT ( * ) + - 6 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT DISTINCT + COUNT( * ) + - - SUM( DISTINCT + 31 )
----
32

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT + COUNT ( * ) + - - SUM ( DISTINCT + 31 )
----
32

query I rowsort
SELECT ALL + 61 * + - 78 AS col0
----
-4758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6750
SELECT CAST( + COUNT( * ) AS SIGNED ) + + - 79 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-6750
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + + - 79 AS col2
----
-78

query I rowsort
SELECT ALL - 88 + + 32
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT 89 + - 93 + + ( + + ( - - COUNT( * ) ) ) + - 67 - ( CASE + 82 WHEN + 34 * - - 20 * - 1 + - + ( + SUM( - 85 ) ) + 26 THEN NULL ELSE 84 END ) * 48 AS col0
----
-4102

skipif mysql # not compatible
query I rowsort label-6752
SELECT 89 + - 93 + + ( + + ( - - COUNT ( * ) ) ) + - 67 - ( CASE + 82 WHEN + 34 * - - 20 * - 1 + - + ( + SUM ( - 85 ) ) + 26 THEN NULL ELSE 84 END ) * 48 AS col0
----
-4102

query I rowsort
SELECT 99 + 6 col0
----
105

query II rowsort
SELECT 23 AS col0, 25 col2
----
23
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT 18 + 49 - + COUNT( * ) * 50
----
17

skipif mysql # not compatible
query I rowsort label-6755
SELECT 18 + 49 - + COUNT ( * ) * 50
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6756
SELECT ALL - CAST( - COALESCE ( + 18, 56 - - - 67 * ( + COUNT( * ) ), AVG ( - + 20 ) ) AS SIGNED ) - + COUNT( * ) * + + MIN( 76 ) * MIN( 24 )
----
-1806

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - CAST ( - COALESCE ( + 18, 56 - - - 67 * ( + COUNT ( * ) ), AVG ( - + 20 ) ) AS INTEGER ) - + COUNT ( * ) * + + MIN ( 76 ) * MIN ( 24 )
----
-1806

query II rowsort
SELECT ALL 63 AS col2, 1 * + 75 AS col2
----
63
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6758
SELECT 34 - - 74 DIV + 53 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6758
SELECT 34 - - 74 / + 53 AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6759
SELECT DISTINCT - SUM( + 45 ) DIV 16 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT - SUM ( + 45 ) / 16 AS col1
----
-2

query I rowsort
SELECT 59 + - 10
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT - AVG ( + 52 ) / - 48 + + + COUNT( * ) + - + CASE + 3 WHEN + + MIN( ALL + 70 ) THEN - 85 ELSE NULL END * - - COALESCE ( - - ( 30 ), + - MAX( - 44 ), - 8 ) * - 56 + 2 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT - AVG ( + 52 ) / - 48 + + + COUNT ( * ) + - + CASE + 3 WHEN + + MIN ( ALL + 70 ) THEN - 85 ELSE NULL END * - - COALESCE ( - - ( 30 ), + - MAX ( - 44 ), - 8 ) * - 56 + 2 col0
----
NULL

query I rowsort
SELECT + 53 * 66 * + 69 + - - 1
----
241363

query I rowsort
SELECT - + 91 * + - ( + ( + - 82 ) ) + COALESCE ( - 19, + 51 ) + + - 7 AS col1
----
-7488

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT 39 + + 86 * SUM( + - 56 )
----
-4777

skipif mysql # not compatible
query I rowsort label-6764
SELECT 39 + + 86 * SUM ( + - 56 )
----
-4777

query I rowsort
SELECT ALL - + 26 AS col0
----
-26

query I rowsort
SELECT 69 * + 84 AS col1
----
5796

query I rowsort
SELECT DISTINCT - 46 * 11
----
-506

query I rowsort
SELECT ALL + 88 * - + 22
----
-1936

query I rowsort
SELECT ALL - - 49 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6770
SELECT ALL + 7 DIV + + 90
----
0

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL + 7 / + + 90
----
0

query I rowsort
SELECT 39 * + 37 AS col1
----
1443

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL 15 + + + 32 + + COUNT( * ) + + 20
----
68

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL 15 + + + 32 + + COUNT ( * ) + + 20
----
68

query I rowsort
SELECT ALL - + 56 AS col2
----
-56

query I rowsort
SELECT ALL + - ( 7 ) + - + 94
----
-101

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6775
SELECT ALL 7 + - COUNT( DISTINCT 21 ) - - CAST( NULL AS DECIMAL ) + - MAX( ALL + 34 ) / + 49 / - CASE WHEN NOT NULLIF ( - 26, 50 ) BETWEEN 99 AND NULL THEN NULL WHEN NOT NULL NOT BETWEEN 20 + + 87 + - COUNT( * ) AND NULL THEN + 7 + - 94 * + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL 7 + - COUNT ( DISTINCT 21 ) - - CAST ( NULL AS REAL ) + - MAX ( ALL + 34 ) / + 49 / - CASE WHEN NOT NULLIF ( - 26, 50 ) BETWEEN 99 AND NULL THEN NULL WHEN NOT NULL NOT BETWEEN 20 + + 87 + - COUNT ( * ) AND NULL THEN + 7 + - 94 * + 28 END
----
NULL

query I rowsort
SELECT + 13 + 43 AS col0
----
56

query I rowsort
SELECT DISTINCT 19 * - 2 col0
----
-38

query I rowsort
SELECT + 66 + - 82 AS col2
----
-16

query I rowsort
SELECT ALL 71 - + 82
----
-11

query I rowsort
SELECT + 77 * + + 74 col0
----
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT - 42 + + - 64 + + COUNT( * )
----
-105

skipif mysql # not compatible
query I rowsort label-6781
SELECT - 42 + + - 64 + + COUNT ( * )
----
-105

query I rowsort
SELECT DISTINCT 6 - + 86 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT + COUNT( * ) * - 82 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-6783
SELECT + COUNT ( * ) * - 82 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT - 18 * + COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-6784
SELECT - 18 * + COUNT ( * ) AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT DISTINCT 70 DIV 46 col1
----
1

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT 70 / 46 col1
----
1

query I rowsort
SELECT + 82 * 24 AS col2
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT DISTINCT 99 * COUNT( * ) * + 67
----
6633

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT 99 * COUNT ( * ) * + 67
----
6633

onlyif mysql # aggregate syntax: 
query II rowsort label-6788
SELECT ALL SUM( DISTINCT - - 39 ) AS col2, - 52 * - ( + COUNT( * ) ) * 19 AS col1
----
39
988

skipif mysql # not compatible
query II rowsort label-6788
SELECT ALL SUM ( DISTINCT - - 39 ) AS col2, - 52 * - ( + COUNT ( * ) ) * 19 AS col1
----
39
988

query I rowsort
SELECT + 22 * - 52 * 17 AS col2
----
-19448

query I rowsort
SELECT - + 66 * + - 92 AS col2
----
6072

query I rowsort
SELECT - ( + 90 )
----
-90

query I rowsort
SELECT DISTINCT + + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT - + NULLIF ( - ( - 97 ), + 99 * - + 30 ) * + MIN( + + 6 ) + + + 83
----
-499

skipif mysql # not compatible
query I rowsort label-6793
SELECT - + NULLIF ( - ( - 97 ), + 99 * - + 30 ) * + MIN ( + + 6 ) + + + 83
----
-499

query I rowsort
SELECT ALL + - NULLIF ( 45, + + 27 )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT DISTINCT + + 66 * 17 + - 3 + - 94 DIV + 23 + + 52 * + 58
----
4131

skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT + + 66 * 17 + - 3 + - 94 / + 23 + + 52 * + 58
----
4131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6796
SELECT 62 * + 53 + CAST( NULL AS SIGNED ) + ( + COUNT( * ) ) * + COALESCE ( 92, + NULLIF ( + CAST( - COALESCE ( + 5, - - COUNT( * ) / + 59 ) AS SIGNED ), + COUNT( * ) + 97 + - 77 + 95 * + ( + 87 + 3 ) ), - 98, - 30 * + 64 ) + SUM( DISTINCT - ( 29 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT 62 * + 53 + CAST ( NULL AS INTEGER ) + ( + COUNT ( * ) ) * + COALESCE ( 92, + NULLIF ( + CAST ( - COALESCE ( + 5, - - COUNT ( * ) / + 59 ) AS INTEGER ), + COUNT ( * ) + 97 + - 77 + 95 * + ( + 87 + 3 ) ), - 98, - 30 * + 64 ) + SUM ( DISTINCT - ( 29 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + + - ( - COUNT( * ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + + - ( - COUNT ( * ) ) AS col0
----
2

query I rowsort
SELECT + + COALESCE ( - 48, + - 10 ) col0
----
-48

query I rowsort
SELECT + - ( - 88 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6800
SELECT ALL + - 12 * - COALESCE ( - ( - 22 ), CAST( - 2 AS SIGNED ) + COUNT( * ) ) * + - 64
----
-16896

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL + - 12 * - COALESCE ( - ( - 22 ), CAST ( - 2 AS INTEGER ) + COUNT ( * ) ) * + - 64
----
-16896

onlyif mysql # aggregate syntax: 
query II rowsort label-6801
SELECT DISTINCT 62 * - 80 * - 92 + + + 22 - + + COUNT( * ), 88 + + + 36 - - 16 AS col0
----
456341
140

skipif mysql # not compatible
query II rowsort label-6801
SELECT DISTINCT 62 * - 80 * - 92 + + + 22 - + + COUNT ( * ), 88 + + + 36 - - 16 AS col0
----
456341
140

query I rowsort
SELECT NULLIF ( - 67, + + 56 - - - 63 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL - 60 * CASE - COUNT( * ) WHEN COUNT( * ) - + COUNT( * ) + - COUNT( * ) * + 11 * 10 THEN + COUNT( * ) + - - 24 WHEN + MIN( - 57 ) + + COUNT( 24 ) + + - MIN( DISTINCT 48 ) THEN 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - 60 * CASE - COUNT ( * ) WHEN COUNT ( * ) - + COUNT ( * ) + - COUNT ( * ) * + 11 * 10 THEN + COUNT ( * ) + - - 24 WHEN + MIN ( - 57 ) + + COUNT ( 24 ) + + - MIN ( DISTINCT 48 ) THEN 27 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6805
SELECT CASE + COUNT( * ) WHEN - CAST( NULL AS DECIMAL ) THEN - COUNT( * ) WHEN 26 THEN + + 87 / - 1 ELSE COUNT( * ) * 87 END AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6805
SELECT CASE + COUNT ( * ) WHEN - CAST ( NULL AS REAL ) THEN - COUNT ( * ) WHEN 26 THEN + + 87 / - 1 ELSE COUNT ( * ) * 87 END AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT CASE + 76 WHEN + - CAST( + 92 AS SIGNED ) THEN - + 83 * - 69 WHEN - - 40 THEN COUNT( 61 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT CASE + 76 WHEN + - CAST ( + 92 AS INTEGER ) THEN - + 83 * - 69 WHEN - - 40 THEN COUNT ( 61 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL ( + 93 ) * + + 47 * - + COUNT( * ) - - 95
----
-4276

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL ( + 93 ) * + + 47 * - + COUNT ( * ) - - 95
----
-4276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6808
SELECT + NULLIF ( + - MIN( ALL + 43 ), - - CASE CAST( + + 87 AS DECIMAL ) WHEN + ( + 41 ) THEN NULL WHEN + 36 - - 50 * + + 3 THEN - CAST( NULL AS SIGNED ) * + 59 * - - COUNT( * ) + + COUNT( * ) + - COUNT( * ) * - + 95 + ( NULLIF ( + 10, 14 ) ) WHEN 62 * - 88 THEN + ( 55 ) END ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6808
SELECT + NULLIF ( + - MIN ( ALL + 43 ), - - CASE CAST ( + + 87 AS REAL ) WHEN + ( + 41 ) THEN NULL WHEN + 36 - - 50 * + + 3 THEN - CAST ( NULL AS INTEGER ) * + 59 * - - COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) * - + 95 + ( NULLIF ( + 10, 14 ) ) WHEN 62 * - 88 THEN + ( 55 ) END ) AS col1
----
-43

query I rowsort
SELECT - 54 * + 59 AS col2
----
-3186

query I rowsort
SELECT - ( 75 ) col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL COUNT( * ) - - 45 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL COUNT ( * ) - - 45 AS col0
----
46

query I rowsort
SELECT DISTINCT - 16 * 36
----
-576

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT + 0 - - + 34 * 54 AS col0, + COUNT( * ) + - - 70 + 51
----
1836
122

skipif mysql # not compatible
query II rowsort label-6813
SELECT + 0 - - + 34 * 54 AS col0, + COUNT ( * ) + - - 70 + 51
----
1836
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT + 59 * + COUNT( + 88 )
----
59

skipif mysql # not compatible
query I rowsort label-6814
SELECT + 59 * + COUNT ( + 88 )
----
59

query I rowsort
SELECT - ( 81 ) AS col0
----
-81

query I rowsort
SELECT + 46 + 80 + + - 9 * + 43 * - - 72
----
-27738

query II rowsort
SELECT DISTINCT 58 AS col1, + 44
----
58
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT + 23 * NULLIF ( COUNT( * ), + 64 + COUNT( * ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6818
SELECT + 23 * NULLIF ( COUNT ( * ), + 64 + COUNT ( * ) ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT + COUNT( * ) * + + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-6819
SELECT + COUNT ( * ) * + + 51 AS col2
----
51

query I rowsort
SELECT + 40 + + 56 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6821
SELECT 99 AS col2, - 5 * + + MAX( ALL - 3 ) * COUNT( * ) * + COUNT( * ) * MIN( ALL - - 41 ) + + 74 + + - 68 + 68 - + - CAST( - 21 AS SIGNED ) * - 82
----
99
2411

skipif mysql # not compatible
query II rowsort label-6821
SELECT 99 AS col2, - 5 * + + MAX ( ALL - 3 ) * COUNT ( * ) * + COUNT ( * ) * MIN ( ALL - - 41 ) + + 74 + + - 68 + 68 - + - CAST ( - 21 AS INTEGER ) * - 82
----
99
2411

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT ALL COUNT( DISTINCT + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL COUNT ( DISTINCT + 89 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6823
SELECT + + COUNT( * ) + - COUNT( DISTINCT - 11 ) * 46 DIV + + 63
----
1

skipif mysql # not compatible
query I rowsort label-6823
SELECT + + COUNT ( * ) + - COUNT ( DISTINCT - 11 ) * 46 / + + 63
----
1

query I rowsort
SELECT + 64 * - 55 AS col2
----
-3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6825
SELECT + - 51 + + COUNT( * ) * + + MIN( - CASE + - 54 WHEN + 39 THEN + 58 WHEN 4 * + CAST( + COALESCE ( + - 65, - ( + 91 ) ) AS SIGNED ) THEN + 97 * 44 * - 17 * + 25 ELSE - - 21 END ) * 36 AS col1
----
-807

skipif mysql # not compatible
query I rowsort label-6825
SELECT + - 51 + + COUNT ( * ) * + + MIN ( - CASE + - 54 WHEN + 39 THEN + 58 WHEN 4 * + CAST ( + COALESCE ( + - 65, - ( + 91 ) ) AS INTEGER ) THEN + 97 * 44 * - 17 * + 25 ELSE - - 21 END ) * 36 AS col1
----
-807

query I rowsort
SELECT ALL + - 65 * + 78 AS col2
----
-5070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6827
SELECT ALL CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) * - 94 / - 6 + + 35 + MAX( - 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) * - 94 / - 6 + + 35 + MAX ( - 27 ) AS col2
----
NULL

query I rowsort
SELECT - - 99 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6829
SELECT ALL - 49 + 80 * + - CAST( - COUNT( * ) AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL - 49 + 80 * + - CAST ( - COUNT ( * ) AS INTEGER )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT 35 AS col2, COUNT( * ) * + ( 64 )
----
35
64

skipif mysql # not compatible
query II rowsort label-6830
SELECT 35 AS col2, COUNT ( * ) * + ( 64 )
----
35
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ( + - MIN( ALL + 58 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-6831
SELECT ( + - MIN ( ALL + 58 ) )
----
-58

query II rowsort
SELECT + + 76, + 16 AS col0
----
76
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT - - 10 + 37 DIV + 94 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6833
SELECT - - 10 + 37 / + 94 AS col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6834
SELECT ALL 85 DIV + 96 + + + 75 col1, CASE 27 WHEN COUNT( * ) + + 93 + + 30 + 36 * - 87 + + 70 * + - 83 THEN + + 11 ELSE + COUNT( * ) END * - + 73 + MIN( ALL 72 )
----
75
-1

skipif mysql # not compatible
query II rowsort label-6834
SELECT ALL 85 / + 96 + + + 75 col1, CASE 27 WHEN COUNT ( * ) + + 93 + + 30 + 36 * - 87 + + 70 * + - 83 THEN + + 11 ELSE + COUNT ( * ) END * - + 73 + MIN ( ALL 72 )
----
75
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT + CAST( 66 AS SIGNED ) col1
----
66

skipif mysql # not compatible
query I rowsort label-6835
SELECT + CAST ( 66 AS INTEGER ) col1
----
66

query I rowsort
SELECT + 6 * + + 58 + 11
----
359

query I rowsort
SELECT + - ( - 12 ) + 39 * + 39 * + ( 58 )
----
88230

query II rowsort
SELECT DISTINCT - 76 AS col1, ( - + 0 )
----
-76
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT ALL - - MIN( ALL - 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL - - MIN ( ALL - 0 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6840
SELECT - ( - + 15 ) * 53 * - - 22 * + - 79 + - + CAST( NULL AS SIGNED ) * - - 54 / - + 68 * - + COALESCE ( 95, - + CAST( - 32 AS SIGNED ), - COUNT( * ) ) * - 99 + - NULLIF ( - 80, + - 77 / 14 * + 30 ) - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT - ( - + 15 ) * 53 * - - 22 * + - 79 + - + CAST ( NULL AS INTEGER ) * - - 54 / - + 68 * - + COALESCE ( 95, - + CAST ( - 32 AS INTEGER ), - COUNT ( * ) ) * - 99 + - NULLIF ( - 80, + - 77 / 14 * + 30 ) - 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT ALL + + CASE + 91 WHEN + + 75 * + 11 THEN NULL ELSE - COUNT( * ) END * - + 82 * 2 AS col0
----
164

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL + + CASE + 91 WHEN + + 75 * + 11 THEN NULL ELSE - COUNT ( * ) END * - + 82 * 2 AS col0
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-6842
SELECT + NULLIF ( - - 90, - MAX( ALL - + 98 ) ) AS col2, 36
----
90
36

skipif mysql # not compatible
query II rowsort label-6842
SELECT + NULLIF ( - - 90, - MAX ( ALL - + 98 ) ) AS col2, 36
----
90
36

query I rowsort
SELECT DISTINCT + 62 - + - 59 col0
----
121

onlyif mysql # DIV for integer division: 
query II rowsort label-6844
SELECT ALL + 2 DIV + - 39, + 94 AS col1
----
0
94

skipif mysql # not compatible
query II rowsort label-6844
SELECT ALL + 2 / + - 39, + 94 AS col1
----
0
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6845
SELECT 83 * COUNT( * ) DIV - 26 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6845
SELECT 83 * COUNT ( * ) / - 26 AS col2
----
-3

query I rowsort
SELECT 19 * - 88
----
-1672

query II rowsort
SELECT 89 + + 40, + 35 + + 88 AS col0
----
129
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT ALL + COUNT( * ) * - 12 * - 85
----
1020

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL + COUNT ( * ) * - 12 * - 85
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT - 27 * COUNT( * ) + - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-6849
SELECT - 27 * COUNT ( * ) + - COUNT ( * )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6850
SELECT ALL - CAST( - - 64 AS SIGNED ) AS col1, ( + 53 ) AS col0
----
-64
53

skipif mysql # not compatible
query II rowsort label-6850
SELECT ALL - CAST ( - - 64 AS INTEGER ) AS col1, ( + 53 ) AS col0
----
-64
53

query I rowsort
SELECT 24 + - + 96 + - + 47 AS col2
----
-119

query I rowsort
SELECT COALESCE ( - + 4, - 75 * - 28, + 80 ) + 32 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT 43 + - + 16 + - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-6853
SELECT 43 + - + 16 + - COUNT ( * )
----
26

query I rowsort
SELECT DISTINCT 1 AS col1
----
1

query I rowsort
SELECT 53 + + 42 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL ( + - COUNT( * ) ) + 27 + - 58 * - 95 + + - 24
----
5512

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL ( + - COUNT ( * ) ) + 27 + - 58 * - 95 + + - 24
----
5512

query I rowsort
SELECT DISTINCT 70 + 52 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT DISTINCT + SUM( ALL - 24 ) + 41
----
17

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT + SUM ( ALL - 24 ) + 41
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6859
SELECT DISTINCT 97 * + 40 + - COUNT( 84 ) + 12, 4 DIV - - 50 AS col0
----
3891
0

skipif mysql # not compatible
query II rowsort label-6859
SELECT DISTINCT 97 * + 40 + - COUNT ( 84 ) + 12, 4 / - - 50 AS col0
----
3891
0

query I rowsort
SELECT 37 * - - 96 AS col1
----
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT + ( COUNT( DISTINCT + 95 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6861
SELECT + ( COUNT ( DISTINCT + 95 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT 54 + + - 77 * - 75
----
5829

onlyif mysql # DIV for integer division: 
query I rowsort label-6863
SELECT NULLIF ( - - 33, + 65 + - 28 DIV - + 22 - - + 6 DIV - - 91 ) DIV 27 * 17 col2
----
17

skipif mysql # not compatible
query I rowsort label-6863
SELECT NULLIF ( - - 33, + 65 + - 28 / - + 22 - - + 6 / - - 91 ) / 27 * 17 col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT + NULLIF ( NULLIF ( 66, + NULLIF ( - 49, 12 ) + - 79 + - - 0 ), + + COUNT( * ) + - - 77 ) * - 95 - - + 81
----
-6189

skipif mysql # not compatible
query I rowsort label-6864
SELECT + NULLIF ( NULLIF ( 66, + NULLIF ( - 49, 12 ) + - 79 + - - 0 ), + + COUNT ( * ) + - - 77 ) * - 95 - - + 81
----
-6189

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6865
SELECT - NULLIF ( CAST( NULL AS DECIMAL ), + - 99 * NULLIF ( - - 48, - COUNT( * ) ) ) * + - 14 * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6865
SELECT - NULLIF ( CAST ( NULL AS REAL ), + - 99 * NULLIF ( - - 48, - COUNT ( * ) ) ) * + - 14 * + 36
----
NULL

query I rowsort
SELECT 93 - + COALESCE ( - 30, 63 + 11 ) + + 3 + + 81 * - 12 + - 86 AS col0
----
-932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6867
SELECT ALL 39 + SUM( + CAST( + - 47 AS SIGNED ) ) * - MAX( ALL - 85 )
----
-3956

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL 39 + SUM ( + CAST ( + - 47 AS INTEGER ) ) * - MAX ( ALL - 85 )
----
-3956

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL - MAX( DISTINCT + + ( - 51 ) )
----
51

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - MAX ( DISTINCT + + ( - 51 ) )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6869
SELECT ALL - + CASE - + COALESCE ( + + COUNT( * ), - + 34, - 75 / + CAST( + 77 AS SIGNED ) * - 78 + - 52 * 29 + 7 ) WHEN + 31 + + 20 THEN + SUM( - + 69 ) WHEN - 63 * + - 40 + 95 - - - 99 THEN 70 * 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL - + CASE - + COALESCE ( + + COUNT ( * ), - + 34, - 75 / + CAST ( + 77 AS INTEGER ) * - 78 + - 52 * 29 + 7 ) WHEN + 31 + + 20 THEN + SUM ( - + 69 ) WHEN - 63 * + - 40 + 95 - - - 99 THEN 70 * 36 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6870
SELECT ALL 66 DIV 10
----
6

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL 66 / 10
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT 62 * - MAX( ALL 35 )
----
-2170

skipif mysql # not compatible
query I rowsort label-6871
SELECT 62 * - MAX ( ALL 35 )
----
-2170

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT + CASE - - 60 WHEN + - ( + 8 ) / + + COUNT( * ) + - + 15 THEN + 53 ELSE 65 END AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6872
SELECT + CASE - - 60 WHEN + - ( + 8 ) / + + COUNT ( * ) + - + 15 THEN + 53 ELSE 65 END AS col2
----
65

query I rowsort
SELECT 93 + 92 AS col2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT DISTINCT 84 - + - COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT 84 - + - COUNT ( * ) AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6875
SELECT ALL - CAST( ( + 59 ) AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL - CAST ( ( + 59 ) AS INTEGER ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT - 28 + + COUNT( * ) col0, NULLIF ( 15, 7 / + ( - 31 ) + - 49 ) AS col0
----
-27
15

skipif mysql # not compatible
query II rowsort label-6876
SELECT - 28 + + COUNT ( * ) col0, NULLIF ( 15, 7 / + ( - 31 ) + - 49 ) AS col0
----
-27
15

query II rowsort
SELECT + 17 AS col1, 1 col2
----
17
1

query I rowsort
SELECT 28 * + 12 col0
----
336

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6879
SELECT 7 * + 11 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT 7 * + 11 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6880
SELECT ALL - 38 AS col1, - CAST( 45 AS SIGNED ) * - + 13 AS col1
----
-38
585

skipif mysql # not compatible
query II rowsort label-6880
SELECT ALL - 38 AS col1, - CAST ( 45 AS INTEGER ) * - + 13 AS col1
----
-38
585

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL - CASE WHEN NOT + COUNT( * ) IS NOT NULL THEN + + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL - CASE WHEN NOT + COUNT ( * ) IS NOT NULL THEN + + 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT 18 * - ( - COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-6882
SELECT 18 * - ( - COUNT ( * ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT ALL - COUNT( DISTINCT 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL - COUNT ( DISTINCT 56 )
----
-1

query I rowsort
SELECT 37 - - + 7
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT CAST( NULL AS SIGNED ) * + - 49 * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT CAST ( NULL AS INTEGER ) * + - 49 * 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6886
SELECT 43 * + CAST( + 63 AS SIGNED )
----
2709

skipif mysql # not compatible
query I rowsort label-6886
SELECT 43 * + CAST ( + 63 AS INTEGER )
----
2709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6887
SELECT 33 * CAST( MIN( ALL 9 ) AS SIGNED ) AS col1
----
297

skipif mysql # not compatible
query I rowsort label-6887
SELECT 33 * CAST ( MIN ( ALL 9 ) AS INTEGER ) AS col1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT ALL - 26 * - 97 * + COUNT( * ) AS col1
----
2522

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL - 26 * - 97 * + COUNT ( * ) AS col1
----
2522

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT DISTINCT - COUNT( + 51 ) + + ( + 88 )
----
87

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT - COUNT ( + 51 ) + + ( + 88 )
----
87

query I rowsort
SELECT - 12 col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + + - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT DISTINCT + 71 + + - COUNT( * ) + 89
----
159

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT + 71 + + - COUNT ( * ) + 89
----
159

query I rowsort
SELECT ( - 56 ) + + NULLIF ( - 47, - 57 + - 83 )
----
-103

query I rowsort
SELECT 82 * - ( - 33 )
----
2706

query I rowsort
SELECT ALL + - 93 + + + 1 AS col1
----
-92

query I rowsort
SELECT + 17 + - 96 col0
----
-79

query II rowsort
SELECT + 62 col2, - 48 AS col2
----
62
-48

query I rowsort
SELECT DISTINCT + COALESCE ( 23, + 31 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT ALL + - ( + + 81 ) + + NULLIF ( + 17, + 57 + - - 71 * - - COUNT( * ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL + - ( + + 81 ) + + NULLIF ( + 17, + 57 + - - 71 * - - COUNT ( * ) ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT 8 + 16 + 38 * - COUNT( * ) * 40 + + 44
----
-1452

skipif mysql # not compatible
query I rowsort label-6900
SELECT 8 + 16 + 38 * - COUNT ( * ) * 40 + + 44
----
-1452

query II rowsort
SELECT - 85, 10 AS col1
----
-85
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT - - COUNT( * ) + - 53 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-6902
SELECT - - COUNT ( * ) + - 53 AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6903
SELECT ALL + COUNT( * ) - - - COUNT( * ) + ( 98 ) DIV - COUNT( * ) DIV COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL + COUNT ( * ) - - - COUNT ( * ) + ( 98 ) / - COUNT ( * ) / COUNT ( * )
----
-98

query I rowsort
SELECT - - ( + 23 ) * + + 44 AS col0
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT DISTINCT COUNT( * ) * 38 * - COUNT( * ) + - 4 - + 81 - - ( + 15 ) AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT COUNT ( * ) * 38 * - COUNT ( * ) + - 4 - + 81 - - ( + 15 ) AS col0
----
-108

query I rowsort
SELECT - ( + 34 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT - COUNT( * ) * - 89 * + + 40 * - COUNT( * )
----
-3560

skipif mysql # not compatible
query I rowsort label-6907
SELECT - COUNT ( * ) * - 89 * + + 40 * - COUNT ( * )
----
-3560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6908
SELECT + 12 * - - COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT + 12 * - - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 17 + + 53 * - 12 col1
----
-619

query I rowsort
SELECT DISTINCT + ( + 56 ) col2
----
56

query II rowsort
SELECT DISTINCT + 41 AS col1, 80 AS col0
----
41
80

query II rowsort
SELECT ALL + 47 AS col2, 35 AS col1
----
47
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6913
SELECT + 83 DIV 15
----
5

skipif mysql # not compatible
query I rowsort label-6913
SELECT + 83 / 15
----
5

query I rowsort
SELECT ALL 95 * 93
----
8835

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT DISTINCT 7 DIV - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT 7 / - 76 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6916
SELECT + COALESCE ( - + 58, - - 21, - 46 ) DIV ( + - NULLIF ( + 65, COALESCE ( - + 50, - 45 DIV + 90 + + 24 ) * + - 92 * + + 80 * - 52 + + COUNT( * ) ) ) - - 16 + 53
----
69

skipif mysql # not compatible
query I rowsort label-6916
SELECT + COALESCE ( - + 58, - - 21, - 46 ) / ( + - NULLIF ( + 65, COALESCE ( - + 50, - 45 / + 90 + + 24 ) * + - 92 * + + 80 * - 52 + + COUNT ( * ) ) ) - - 16 + 53
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6917
SELECT - 31 * + - SUM( + 71 ) + 1 AS col0, 1
----
2202
1

skipif mysql # not compatible
query II rowsort label-6917
SELECT - 31 * + - SUM ( + 71 ) + 1 AS col0, 1
----
2202
1

query I rowsort
SELECT + NULLIF ( 84, 36 ) AS col2
----
84

query I rowsort
SELECT ALL 42 * + 81 AS col2
----
3402

query I rowsort
SELECT + ( 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT - NULLIF ( - ( - + COUNT( * ) ), 27 * + - MAX( DISTINCT + 78 ) + + 1 ) * + SUM( + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-6921
SELECT - NULLIF ( - ( - + COUNT ( * ) ), 27 * + - MAX ( DISTINCT + 78 ) + + 1 ) * + SUM ( + 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL - COUNT( + + 85 ) * - NULLIF ( - - 11, + MAX( + 70 ) - + + 95 ) + + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL - COUNT ( + + 85 ) * - NULLIF ( - - 11, + MAX ( + 70 ) - + + 95 ) + + + COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT + 41 + + COUNT( * ) + + 48
----
90

skipif mysql # not compatible
query I rowsort label-6923
SELECT + 41 + + COUNT ( * ) + + 48
----
90

query I rowsort
SELECT + NULLIF ( - - 38, 74 + 16 * + + 15 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT DISTINCT + 45 * 67 + - - MAX( + - 27 ) - 75
----
2913

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT + 45 * 67 + - - MAX ( + - 27 ) - 75
----
2913

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT DISTINCT 99 * + 49 * COUNT( * ) * - 58 + - + NULLIF ( COALESCE ( + + ( - COUNT( * ) ), - 75 + - 61 ), + - 2 ) AS col1
----
-281357

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT 99 * + 49 * COUNT ( * ) * - 58 + - + NULLIF ( COALESCE ( + + ( - COUNT ( * ) ), - 75 + - 61 ), + - 2 ) AS col1
----
-281357

query II rowsort
SELECT ALL + 8 AS col2, 23 * + + 25 + 83 AS col2
----
8
658

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT + 93 + SUM( 86 )
----
179

skipif mysql # not compatible
query I rowsort label-6928
SELECT + 93 + SUM ( 86 )
----
179

query II rowsort
SELECT DISTINCT 60 col1, - 31 AS col1
----
60
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT - NULLIF ( + + 77, COUNT( * ) + - 65 )
----
-77

skipif mysql # not compatible
query I rowsort label-6930
SELECT - NULLIF ( + + 77, COUNT ( * ) + - 65 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT - 58 + - 61 + + - CASE - 42 WHEN - + 58 / + 86 * SUM( DISTINCT - - 62 ) THEN NULL WHEN 11 * 7 * - - 47 + SUM( + 24 ) + - 67 THEN NULL ELSE + 36 END * - + 52 + + - ( - 2 ) + 73 * - - ( - - 91 ) - 74 AS col2
----
8324

skipif mysql # not compatible
query I rowsort label-6931
SELECT - 58 + - 61 + + - CASE - 42 WHEN - + 58 / + 86 * SUM ( DISTINCT - - 62 ) THEN NULL WHEN 11 * 7 * - - 47 + SUM ( + 24 ) + - 67 THEN NULL ELSE + 36 END * - + 52 + + - ( - 2 ) + 73 * - - ( - - 91 ) - 74 AS col2
----
8324

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT + + MIN( 4 ) * + 26 + 67 + + - NULLIF ( + 77, - ( 18 ) ) * + 52 * - 64 + - + 50
----
256377

skipif mysql # not compatible
query I rowsort label-6932
SELECT + + MIN ( 4 ) * + 26 + 67 + + - NULLIF ( + 77, - ( 18 ) ) * + 52 * - 64 + - + 50
----
256377

query II rowsort
SELECT 23 AS col0, 17 * + 79 * - 21 * - 73 AS col2
----
23
2058819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6934
SELECT + + CAST( NULL AS SIGNED ) * - 13 / - 70 * - 71 * - COUNT( 54 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT + + CAST ( NULL AS INTEGER ) * - 13 / - 70 * - 71 * - COUNT ( 54 ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT - + 28 AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6936
SELECT - + ( + - 11 ) * + 71 + - + ( - COALESCE ( + + 73, - 87 * - ( - - COALESCE ( - COUNT( * ), + 46 * 3 * - - 83 * ( - COUNT( * ) ), + 0 DIV - 69 + - - COALESCE ( + 16, + + ( + SUM( 32 ) ) DIV 8, - 69 + 60 ) DIV + 1 ) ) * COUNT( * ) + MAX( ALL + 88 ), - 62 ) ) col2
----
854

skipif mysql # not compatible
query I rowsort label-6936
SELECT - + ( + - 11 ) * + 71 + - + ( - COALESCE ( + + 73, - 87 * - ( - - COALESCE ( - COUNT ( * ), + 46 * 3 * - - 83 * ( - COUNT ( * ) ), + 0 / - 69 + - - COALESCE ( + 16, + + ( + SUM ( 32 ) ) / 8, - 69 + 60 ) / + 1 ) ) * COUNT ( * ) + MAX ( ALL + 88 ), - 62 ) ) col2
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL - ( + 92 ) * - - SUM( + COALESCE ( - 96, + + 54 ) ) * 2 * + 9 * 1 * + 19 * + MAX( ALL - 42 )
----
-126862848

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL - ( + 92 ) * - - SUM ( + COALESCE ( - 96, + + 54 ) ) * 2 * + 9 * 1 * + 19 * + MAX ( ALL - 42 )
----
-126862848

onlyif mysql # aggregate syntax: 
query II rowsort label-6938
SELECT + MAX( DISTINCT + + 7 ), 31 AS col0
----
7
31

skipif mysql # not compatible
query II rowsort label-6938
SELECT + MAX ( DISTINCT + + 7 ), 31 AS col0
----
7
31

query I rowsort
SELECT ALL + 57 * - - 2 * - - 21 AS col1
----
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT - SUM( DISTINCT + 21 ) * 51
----
-1071

skipif mysql # not compatible
query I rowsort label-6940
SELECT - SUM ( DISTINCT + 21 ) * 51
----
-1071

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ALL + - MIN( DISTINCT + 18 ) * + + 11 + - 85 AS col1
----
-283

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL + - MIN ( DISTINCT + 18 ) * + + 11 + - 85 AS col1
----
-283

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6942
SELECT + CASE - 7 WHEN + + 65 * 88 * ( COUNT( * ) ) THEN + 96 * COALESCE ( 82, - 37 + CASE 98 WHEN - 39 * + - 37 + - + 93 THEN NULL WHEN + + 74 THEN 83 ELSE NULL END ) + - - CAST( NULL AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6942
SELECT + CASE - 7 WHEN + + 65 * 88 * ( COUNT ( * ) ) THEN + 96 * COALESCE ( 82, - 37 + CASE 98 WHEN - 39 * + - 37 + - + 93 THEN NULL WHEN + + 74 THEN 83 ELSE NULL END ) + - - CAST ( NULL AS REAL ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6943
SELECT - - CAST( + 0 AS SIGNED ) * ( - 68 ) * - + AVG ( ALL - CAST( NULL AS SIGNED ) ) + CASE - COALESCE ( - + 45, CAST( NULL AS SIGNED ) + + 17, + COUNT( * ) * - 30 * + 33 ) WHEN - - 33 - + 67 + + 69 THEN - 45 * 82 WHEN - 70 * - - MIN( - 56 ) + - ( - 94 - - 68 ) THEN NULL END * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT - - CAST ( + 0 AS INTEGER ) * ( - 68 ) * - + AVG ( ALL - CAST ( NULL AS INTEGER ) ) + CASE - COALESCE ( - + 45, CAST ( NULL AS INTEGER ) + + 17, + COUNT ( * ) * - 30 * + 33 ) WHEN - - 33 - + 67 + + 69 THEN - 45 * 82 WHEN - 70 * - - MIN ( - 56 ) + - ( - 94 - - 68 ) THEN NULL END * 94
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-6944
SELECT - 42 AS col0, + 85 + - 51 - + NULLIF ( + 8, + 50 ) DIV + 21 AS col1, - 88
----
-42
34
-88

skipif mysql # not compatible
query III rowsort label-6944
SELECT - 42 AS col0, + 85 + - 51 - + NULLIF ( + 8, + 50 ) / + 21 AS col1, - 88
----
-42
34
-88

query I rowsort
SELECT - + 5 * - + 92
----
460

onlyif mysql # aggregate syntax: 
query II rowsort label-6946
SELECT - 49 AS col2, COUNT( * ) AS col1
----
-49
1

skipif mysql # not compatible
query II rowsort label-6946
SELECT - 49 AS col2, COUNT ( * ) AS col1
----
-49
1

query I rowsort
SELECT ALL - + 98 * - 42
----
4116

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6948
SELECT - 7 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6948
SELECT - 7 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL + COALESCE ( - MIN( 71 ), - COUNT( * ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL + COALESCE ( - MIN ( 71 ), - COUNT ( * ) ) AS col0
----
-71

query I rowsort
SELECT ALL 54 * 49
----
2646

query I rowsort
SELECT - 71 * - 61 * - - 72 AS col2
----
311832

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT - 27 * - COUNT( * ) - + 33 - - 82 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6952
SELECT - 27 * - COUNT ( * ) - + 33 - - 82 AS col2
----
76

query I rowsort
SELECT + ( - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT - 41 * + + SUM( + - 37 )
----
1517

skipif mysql # not compatible
query I rowsort label-6954
SELECT - 41 * + + SUM ( + - 37 )
----
1517

query I rowsort
SELECT - 0 + - - 69 + 69
----
138

query I rowsort
SELECT ALL + ( + 80 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT ALL 88 DIV - 73
----
-1

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL 88 / - 73
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6958
SELECT DISTINCT + CAST( COUNT( 83 ) AS SIGNED ) * - 26 + - 4, 27 AS col2
----
-30
27

skipif mysql # not compatible
query II rowsort label-6958
SELECT DISTINCT + CAST ( COUNT ( 83 ) AS INTEGER ) * - 26 + - 4, 27 AS col2
----
-30
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6959
SELECT DISTINCT + CASE - 74 WHEN + COALESCE ( - MAX( - ( CAST( - 73 AS SIGNED ) ) ), + + 0, 2 ) * + SUM( ALL + 17 ) * 75 * + MAX( 32 ) THEN NULL WHEN 43 THEN 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT + CASE - 74 WHEN + COALESCE ( - MAX ( - ( CAST ( - 73 AS INTEGER ) ) ), + + 0, 2 ) * + SUM ( ALL + 17 ) * 75 * + MAX ( 32 ) THEN NULL WHEN 43 THEN 23 END AS col1
----
NULL

query I rowsort
SELECT + ( + 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT + COUNT( * ) * 91
----
91

skipif mysql # not compatible
query I rowsort label-6961
SELECT + COUNT ( * ) * 91
----
91

query I rowsort
SELECT ( 83 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT + MAX( DISTINCT + 82 ) / + CASE + + COUNT( * ) WHEN + + ( 97 ) THEN + 22 WHEN 4 THEN - COALESCE ( - 86, - NULLIF ( + - 82, - 11 * 44 * + COUNT( * ) + MIN( ALL 84 ) - - 5 + - - 7 - - 40 * - 94 * + NULLIF ( + 63, 5 - + 67 ) ) + NULLIF ( 65 - 88, 56 ) * - 41 ) WHEN 29 * - AVG ( 15 ) + 51 THEN - 45 END / + 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT + MAX ( DISTINCT + 82 ) / + CASE + + COUNT ( * ) WHEN + + ( 97 ) THEN + 22 WHEN 4 THEN - COALESCE ( - 86, - NULLIF ( + - 82, - 11 * 44 * + COUNT ( * ) + MIN ( ALL 84 ) - - 5 + - - 7 - - 40 * - 94 * + NULLIF ( + 63, 5 - + 67 ) ) + NULLIF ( 65 - 88, 56 ) * - 41 ) WHEN 29 * - AVG ( 15 ) + 51 THEN - 45 END / + 81 col2
----
NULL

query I rowsort
SELECT + NULLIF ( - - 90, - + 75 ) AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6965
SELECT CASE - - ( + MIN( ALL - ( + - 57 ) ) ) WHEN + COUNT( * ) THEN COUNT( * ) - - 36 END, + COUNT( * ) DIV - 55 * - - SUM( ALL - + 71 ) col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6965
SELECT CASE - - ( + MIN ( ALL - ( + - 57 ) ) ) WHEN + COUNT ( * ) THEN COUNT ( * ) - - 36 END, + COUNT ( * ) / - 55 * - - SUM ( ALL - + 71 ) col2
----
NULL
0

query I rowsort
SELECT + 18 * 2 + - 53 + - + 69 - + 98
----
-184

query I rowsort
SELECT ALL ( + NULLIF ( - 84, - - 79 ) ) - - 72 + 44 AS col0
----
32

query I rowsort
SELECT DISTINCT - 28 - + 14 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT DISTINCT SUM( 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT SUM ( 53 ) AS col1
----
53

query I rowsort
SELECT 71 + + + 4
----
75

query I rowsort
SELECT + 72 - + 89
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT ALL - 45 DIV + 69 * + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL - 45 / + 69 * + 40 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT + ( + - 34 ) + + - COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6973
SELECT + ( + - 34 ) + + - COUNT ( * ) AS col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6974
SELECT DISTINCT + 1 DIV - + NULLIF ( + - 36, - - SUM( ALL + ( + 44 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT + 1 / - + NULLIF ( + - 36, - - SUM ( ALL + ( + 44 ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6975
SELECT DISTINCT 17 + - + CASE + 19 WHEN + + 32 THEN + 26 DIV - 80 WHEN 67 THEN NULL ELSE + 52 * 51 END AS col0
----
-2635

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT 17 + - + CASE + 19 WHEN + + 32 THEN + 26 / - 80 WHEN 67 THEN NULL ELSE + 52 * 51 END AS col0
----
-2635

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL 21 / + + 89 * + CASE + 81 WHEN + + COUNT( * ) * 52 + + + 92 + + + 84 THEN + COUNT( * ) WHEN - 61 + 54 THEN NULL WHEN ( + - MAX( + CASE - 55 WHEN + 10 THEN - - 10 + - 4 * - 11 / + 19 + - + 31 / + - 71 END ) ) - - 43 THEN - 1 END * - COUNT( DISTINCT 13 ) + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL 21 / + + 89 * + CASE + 81 WHEN + + COUNT ( * ) * 52 + + + 92 + + + 84 THEN + COUNT ( * ) WHEN - 61 + 54 THEN NULL WHEN ( + - MAX ( + CASE - 55 WHEN + 10 THEN - - 10 + - 4 * - 11 / + 19 + - + 31 / + - 71 END ) ) - - 43 THEN - 1 END * - COUNT ( DISTINCT 13 ) + + 20 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6977
SELECT 86 + + - SUM( DISTINCT 34 ) + + 2 + - 93 * - CAST( NULL AS SIGNED ) + - SUM( + 10 ), 58 AS col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-6977
SELECT 86 + + - SUM ( DISTINCT 34 ) + + 2 + - 93 * - CAST ( NULL AS INTEGER ) + - SUM ( + 10 ), 58 AS col2
----
NULL
58

query I rowsort
SELECT ALL 35 + 43 AS col1
----
78

query I rowsort
SELECT DISTINCT + 51 * - 37
----
-1887

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL + NULLIF ( + + 65, + 63 ) + + + 1 + - NULLIF ( - - ( 19 ), - CASE COUNT( * ) WHEN + 50 THEN + - 82 ELSE NULL END ) + - 69 + - + 90 * 90 col1
----
-8122

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + NULLIF ( + + 65, + 63 ) + + + 1 + - NULLIF ( - - ( 19 ), - CASE COUNT ( * ) WHEN + 50 THEN + - 82 ELSE NULL END ) + - 69 + - + 90 * 90 col1
----
-8122

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL + COUNT( * ) * + + 63 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL + COUNT ( * ) * + + 63 AS col0
----
63

query I rowsort
SELECT 44 * - 30 AS col2
----
-1320

onlyif mysql # aggregate syntax: 
query II rowsort label-6983
SELECT 40 AS col1, + 30 + - - 91 + + COUNT( * ) AS col2
----
40
122

skipif mysql # not compatible
query II rowsort label-6983
SELECT 40 AS col1, + 30 + - - 91 + + COUNT ( * ) AS col2
----
40
122

query I rowsort
SELECT - 23 * 63 + - - 81 * + + 28
----
819

query I rowsort
SELECT DISTINCT - ( - 13 )
----
13

query I rowsort
SELECT ALL + ( + 0 ) + 4
----
4

query II rowsort
SELECT ALL + 67 + - + 7 + 0, + 58 AS col0
----
60
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL - SUM( - + 51 ) col1
----
51

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL - SUM ( - + 51 ) col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT 59 - - 98 * + COUNT( * ) AS col0
----
157

skipif mysql # not compatible
query I rowsort label-6989
SELECT 59 - - 98 * + COUNT ( * ) AS col0
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6990
SELECT DISTINCT + 22 * COUNT( * ) DIV 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT + 22 * COUNT ( * ) / 26 AS col0
----
0

query II rowsort
SELECT + 55 AS col2, - 39 AS col2
----
55
-39

query I rowsort
SELECT ALL + 5 * - 10
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT 49 + 77 + - - 69 + - ( - COUNT( * ) ) * + 10 * - 93 + - 67 + + ( NULLIF ( - 73, + COUNT( * ) + - 52 + + 33 - + COUNT( * ) ) ) AS col1
----
-875

skipif mysql # not compatible
query I rowsort label-6993
SELECT 49 + 77 + - - 69 + - ( - COUNT ( * ) ) * + 10 * - 93 + - 67 + + ( NULLIF ( - 73, + COUNT ( * ) + - 52 + + 33 - + COUNT ( * ) ) ) AS col1
----
-875

query II rowsort
SELECT 58 + + 43 + - 50 AS col2, + 24 AS col0
----
51
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT + CAST( NULLIF ( 8, 0 + 29 ) AS SIGNED ) * 56 * - + ( - - 86 ) col1
----
-38528

skipif mysql # not compatible
query I rowsort label-6995
SELECT + CAST ( NULLIF ( 8, 0 + 29 ) AS INTEGER ) * 56 * - + ( - - 86 ) col1
----
-38528

onlyif mysql # aggregate syntax: 
query II rowsort label-6996
SELECT + 70 AS col0, - CASE + - 91 WHEN + 86 THEN - 66 ELSE NULL END - + + COUNT( * ) AS col2
----
70
NULL

skipif mysql # not compatible
query II rowsort label-6996
SELECT + 70 AS col0, - CASE + - 91 WHEN + 86 THEN - 66 ELSE NULL END - + + COUNT ( * ) AS col2
----
70
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6997
SELECT ALL - COALESCE ( + + 8, + MIN( + - CAST( NULL AS SIGNED ) ) )
----
-8

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL - COALESCE ( + + 8, + MIN ( + - CAST ( NULL AS INTEGER ) ) )
----
-8

query II rowsort
SELECT ALL 82 AS col0, + 75
----
82
75

query I rowsort
SELECT 83 + 43
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7000
SELECT - COALESCE ( 67, + + NULLIF ( - CAST( + 34 AS SIGNED ), 74 / 94 - 53 * 55 ), + COUNT( DISTINCT - 47 ) ) * 20 + - + ( - 16 ), 3 AS col0
----
-1324
3

skipif mysql # not compatible
query II rowsort label-7000
SELECT - COALESCE ( 67, + + NULLIF ( - CAST ( + 34 AS INTEGER ), 74 / 94 - 53 * 55 ), + COUNT ( DISTINCT - 47 ) ) * 20 + - + ( - 16 ), 3 AS col0
----
-1324
3

query I rowsort
SELECT ALL COALESCE ( + 3, - 76 ) * 95 * - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT DISTINCT + COUNT( * ) * + - 3 + - 0
----
-3

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT + COUNT ( * ) * + - 3 + - 0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT + COUNT( * ) * - 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-7003
SELECT + COUNT ( * ) * - 89 AS col0
----
-89

query I rowsort
SELECT 75 + COALESCE ( + 35, - 75 + 60 * 80 ) AS col2
----
110

query I rowsort
SELECT ALL 62 * - + 80 + + - 84 - - - 21
----
-5065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7006
SELECT ALL CASE 16 WHEN + 80 * - 28 + + 11 * - 82 * + COUNT( * ) THEN NULL WHEN 13 * - 68 THEN + 46 + 58 + + COUNT( ALL - 3 ) + - 39 + 31 * + + 69 * - 44 END + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL CASE 16 WHEN + 80 * - 28 + + 11 * - 82 * + COUNT ( * ) THEN NULL WHEN 13 * - 68 THEN + 46 + 58 + + COUNT ( ALL - 3 ) + - 39 + 31 * + + 69 * - 44 END + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 10 * + 72
----
720

query I rowsort
SELECT 54 * 44
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ALL + COUNT( * ) + + ( - MAX( - 42 ) ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL + COUNT ( * ) + + ( - MAX ( - 42 ) ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT ALL + 22 * MAX( ALL - - ( + + 81 ) ) AS col1
----
1782

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + 22 * MAX ( ALL - - ( + + 81 ) ) AS col1
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT COUNT( * ) * COALESCE ( 96, + - 76 + 65 + - COUNT( + 30 ) )
----
96

skipif mysql # not compatible
query I rowsort label-7011
SELECT COUNT ( * ) * COALESCE ( 96, + - 76 + 65 + - COUNT ( + 30 ) )
----
96

query I rowsort
SELECT ( + 76 ) * 63
----
4788

query I rowsort
SELECT ALL NULLIF ( 47, - 81 ) + 8 AS col0
----
55

query I rowsort
SELECT ALL 19 + 11 + - 53
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT DISTINCT ( - 2 ) DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT ( - 2 ) / + 10
----
0

query I rowsort
SELECT DISTINCT 48 + + 38 * 17
----
694

query I rowsort
SELECT ALL + 8 * 26
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL 83 + + COUNT( ALL - ( 67 ) )
----
84

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL 83 + + COUNT ( ALL - ( 67 ) )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT DISTINCT ( + 71 ) / + - 53 * 49 * 91 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT ( + 71 ) / + - 53 * 49 * 91 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7020
SELECT 53 * - 9 / CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7020
SELECT 53 * - 9 / CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7021
SELECT ALL CAST( 17 AS SIGNED ) * - - 54 AS col2
----
918

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL CAST ( 17 AS INTEGER ) * - - 54 AS col2
----
918

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT DISTINCT - NULLIF ( 64, + 83 * + 43 + - COUNT( * ) / + + COUNT( * ) ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT - NULLIF ( 64, + 83 * + 43 + - COUNT ( * ) / + + COUNT ( * ) ) col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7023
SELECT DISTINCT 24 * ( 60 ) - - - COUNT( * ) AS col1, + COALESCE ( ( - 29 ), + - COUNT( * ) ) AS col1
----
1439
-29

skipif mysql # not compatible
query II rowsort label-7023
SELECT DISTINCT 24 * ( 60 ) - - - COUNT ( * ) AS col1, + COALESCE ( ( - 29 ), + - COUNT ( * ) ) AS col1
----
1439
-29

query I rowsort
SELECT ALL 99 * + + ( - 96 ) * ( - 78 ) - + - 10 AS col1
----
741322

query I rowsort
SELECT CASE - 20 WHEN 46 THEN NULL ELSE - 39 * - - 28 END * - 55 * - 85 AS col0
----
-5105100

query I rowsort
SELECT DISTINCT + COALESCE ( - - 52, - + 9, + + ( + + 3 ) )
----
52

query I rowsort
SELECT ALL + 41 col0
----
41

query I rowsort
SELECT DISTINCT + - 69
----
-69

query I rowsort
SELECT ALL + 39 * + 76 * - - 85 + 76
----
252016

onlyif mysql # aggregate syntax: 
query II rowsort label-7030
SELECT + + CASE ( 22 ) WHEN 66 THEN NULL WHEN + COUNT( * ) * 71 THEN - 51 END, 53 col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-7030
SELECT + + CASE ( 22 ) WHEN 66 THEN NULL WHEN + COUNT ( * ) * 71 THEN - 51 END, 53 col2
----
NULL
53

query I rowsort
SELECT ALL + ( - + 68 )
----
-68

query I rowsort
SELECT DISTINCT + - 92
----
-92

query I rowsort
SELECT - - 0 * 5 - - 26 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT - - 89 * + CASE - COUNT( * ) WHEN - - 79 THEN NULL WHEN 36 THEN + - COUNT( * ) * 88 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT - - 89 * + CASE - COUNT ( * ) WHEN - - 79 THEN NULL WHEN 36 THEN + - COUNT ( * ) * 88 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7035
SELECT CAST( + + 25 AS SIGNED ) * + CAST( NULL AS SIGNED ) - + 61 / - 28 + - - 57 + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7035
SELECT CAST ( + + 25 AS INTEGER ) * + CAST ( NULL AS INTEGER ) - + 61 / - 28 + - - 57 + + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT DISTINCT + MAX( DISTINCT 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT + MAX ( DISTINCT 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7037
SELECT - 7 - - + COUNT( * ) AS col0, - 52
----
-6
-52

skipif mysql # not compatible
query II rowsort label-7037
SELECT - 7 - - + COUNT ( * ) AS col0, - 52
----
-6
-52

query II rowsort
SELECT ALL + + 75 * 65 AS col2, - 83 col2
----
4875
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7039
SELECT - - 48 + + - COUNT( * ) DIV - + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-7039
SELECT - - 48 + + - COUNT ( * ) / - + COUNT ( * )
----
49

query I rowsort
SELECT DISTINCT + 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT - - 13 + COUNT( * ) + - COUNT( * ) col1
----
13

skipif mysql # not compatible
query I rowsort label-7041
SELECT - - 13 + COUNT ( * ) + - COUNT ( * ) col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT + 70 - - + MAX( 21 )
----
91

skipif mysql # not compatible
query I rowsort label-7042
SELECT + 70 - - + MAX ( 21 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7043
SELECT ALL 39 + + COUNT( * ) - + 33 - ( 1 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL 39 + + COUNT ( * ) - + 33 - ( 1 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 9 * + 51 - - 82
----
-377

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT + COUNT( * ) * - 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7045
SELECT + COUNT ( * ) * - 31 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT - 25 + + + COUNT( * ) col1
----
-24

skipif mysql # not compatible
query I rowsort label-7046
SELECT - 25 + + + COUNT ( * ) col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7047
SELECT ALL ( - NULLIF ( 29, + 55 / - 88 ) ) * CAST( NULL AS SIGNED ) / + - ( - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL ( - NULLIF ( 29, + 55 / - 88 ) ) * CAST ( NULL AS INTEGER ) / + - ( - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7048
SELECT DISTINCT + COUNT( + CAST( NULL AS SIGNED ) ) + - + 31 col1
----
-31

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT + COUNT ( + CAST ( NULL AS INTEGER ) ) + - + 31 col1
----
-31

query I rowsort
SELECT ALL ( + - 71 ) col0
----
-71

query I rowsort
SELECT ALL 71 * - 6 AS col2
----
-426

query I rowsort
SELECT + 77 + + ( - 89 ) * - 15
----
1412

query I rowsort
SELECT DISTINCT ( - 31 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7053
SELECT ALL ( COUNT( * ) ) * CASE + CAST( NULL AS SIGNED ) WHEN - - 13 * - + NULLIF ( - + CAST( NULL AS SIGNED ), + + 24 ) / 11 + - + CASE + COUNT( * ) WHEN - 83 + - 53 - - 90 * + 43 THEN NULL WHEN + - 82 * - 39 * + + 47 * - COUNT( * ) - + 27 THEN - 47 ELSE NULL END + + CAST( NULL AS SIGNED ) THEN 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL ( COUNT ( * ) ) * CASE + CAST ( NULL AS INTEGER ) WHEN - - 13 * - + NULLIF ( - + CAST ( NULL AS INTEGER ), + + 24 ) / 11 + - + CASE + COUNT ( * ) WHEN - 83 + - 53 - - 90 * + 43 THEN NULL WHEN + - 82 * - 39 * + + 47 * - COUNT ( * ) - + 27 THEN - 47 ELSE NULL END + + CAST ( NULL AS INTEGER ) THEN 40 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT DISTINCT MAX( + 90 ) col2
----
90

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT MAX ( + 90 ) col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7055
SELECT ALL CAST( NULL AS SIGNED ) * + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL CAST ( NULL AS INTEGER ) * + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT SUM( - 76 ) - - ( 57 )
----
-19

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT SUM ( - 76 ) - - ( 57 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7057
SELECT - ( - ( + 84 ) ) AS col0, - COUNT( * ) + - 46 AS col1
----
84
-47

skipif mysql # not compatible
query II rowsort label-7057
SELECT - ( - ( + 84 ) ) AS col0, - COUNT ( * ) + - 46 AS col1
----
84
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT + COUNT( * ) + - + 91 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-7058
SELECT + COUNT ( * ) + - + 91 AS col0
----
-90

query I rowsort
SELECT DISTINCT + 10 col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7060
SELECT + 14 * + CASE 84 WHEN - ( + + 92 ) THEN COUNT( * ) / + COUNT( + + ( - 79 ) ) ELSE NULL END + + 26, 68 AS col2
----
NULL
68

skipif mysql # not compatible
query II rowsort label-7060
SELECT + 14 * + CASE 84 WHEN - ( + + 92 ) THEN COUNT ( * ) / + COUNT ( + + ( - 79 ) ) ELSE NULL END + + 26, 68 AS col2
----
NULL
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7061
SELECT + COALESCE ( + COALESCE ( NULLIF ( + 10, - CAST( + - 36 AS SIGNED ) + COUNT( * ) * - 56 ), + 46 DIV - + SUM( DISTINCT 61 ) ), + - 5, 77 ) * - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-7061
SELECT + COALESCE ( + COALESCE ( NULLIF ( + 10, - CAST ( + - 36 AS INTEGER ) + COUNT ( * ) * - 56 ), + 46 / - + SUM ( DISTINCT 61 ) ), + - 5, 77 ) * - COUNT ( * ) AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT ALL 23 DIV + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL 23 / + 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT + 76 * - 94 + 93 * COUNT( * ) + 23 AS col0
----
-7028

skipif mysql # not compatible
query I rowsort label-7063
SELECT + 76 * - 94 + 93 * COUNT ( * ) + 23 AS col0
----
-7028

onlyif mysql # DIV for integer division: 
query I rowsort label-7064
SELECT ALL 69 DIV + 98 * - - 20
----
0

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL 69 / + 98 * - - 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL 87 * - - 81 * - COUNT( * ) AS col1
----
-7047

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL 87 * - - 81 * - COUNT ( * ) AS col1
----
-7047

query I rowsort
SELECT + NULLIF ( - 86, - CASE WHEN NOT - 25 <= + - ( + 57 ) THEN - - 79 WHEN 13 * 72 IS NOT NULL THEN - + 12 * - - 30 + - + 57 + + 83 - - 20 * - 2 - - + 16 WHEN 93 NOT IN ( + + 43 / + 98 ) THEN 98 ELSE 14 + - 42 END ) AS col1
----
-86

query I rowsort
SELECT DISTINCT 81 * - - 56 AS col1
----
4536

query I rowsort
SELECT 13 * - 8 + + 23 + - + 75 col0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT + + COUNT( * ) + + 78 + - + 94 + - 28 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-7069
SELECT + + COUNT ( * ) + + 78 + - + 94 + - 28 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7070
SELECT + + 69 AS col0, + COUNT( * )
----
69
1

skipif mysql # not compatible
query II rowsort label-7070
SELECT + + 69 AS col0, + COUNT ( * )
----
69
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7071
SELECT ALL - COUNT( * ) * - + MIN( - - CAST( 29 AS SIGNED ) ) + + COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL - COUNT ( * ) * - + MIN ( - - CAST ( 29 AS INTEGER ) ) + + COUNT ( * ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ALL + + COUNT( DISTINCT - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL + + COUNT ( DISTINCT - 89 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7073
SELECT - 56 * COUNT( * ) / + 16 + - COUNT( * ) + - 81 + + 35 / + 61 / - - ( CAST( - 52 AS SIGNED ) ) - - - ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT - 56 * COUNT ( * ) / + 16 + - COUNT ( * ) + - 81 + + 35 / + 61 / - - ( CAST ( - 52 AS INTEGER ) ) - - - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 83 AS col0
----
-83

query I rowsort
SELECT - 27 + - + 45 * + + 95 * + COALESCE ( - - 15, + 88, - 55 )
----
-64152

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT COUNT( + NULLIF ( - 63, 71 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7076
SELECT COUNT ( + NULLIF ( - 63, 71 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7077
SELECT + 71 * + CASE - - 37 WHEN + 24 * 17 + 89 + - 97 * COALESCE ( + 55, + 38 * - 24 * + 60 * + 87 + AVG ( DISTINCT - + 42 ) / - 21, + ( + 42 ) ) * + - COUNT( ALL CAST( NULL AS SIGNED ) ) THEN - + 67 ELSE + COUNT( * ) + - COUNT( * ) END, CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7077
SELECT + 71 * + CASE - - 37 WHEN + 24 * 17 + 89 + - 97 * COALESCE ( + 55, + 38 * - 24 * + 60 * + 87 + AVG ( DISTINCT - + 42 ) / - 21, + ( + 42 ) ) * + - COUNT ( ALL CAST ( NULL AS INTEGER ) ) THEN - + 67 ELSE + COUNT ( * ) + - COUNT ( * ) END, CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

query I rowsort
SELECT - 40 + - - 25 AS col2
----
-15

query I rowsort
SELECT ALL + 6 * + 85
----
510

query I rowsort
SELECT - 54 + NULLIF ( - 51, - 91 )
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-7081
SELECT ALL - 86 * - 88 + - 8 * + 31 + - - 56 + + 45 DIV ( + - 52 ) AS col1
----
7376

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL - 86 * - 88 + - 8 * + 31 + - - 56 + + 45 / ( + - 52 ) AS col1
----
7376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7082
SELECT DISTINCT - 73 * + 24 + - CASE 17 WHEN 0 THEN NULLIF ( 28, - 18 ) ELSE - + 22 - 86 END + + CAST( + - 75 AS SIGNED ) + + 38 + 52 AS col2
----
-1629

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT - 73 * + 24 + - CASE 17 WHEN 0 THEN NULLIF ( 28, - 18 ) ELSE - + 22 - 86 END + + CAST ( + - 75 AS INTEGER ) + + 38 + 52 AS col2
----
-1629

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT - - 50 * - CASE + 94 WHEN - 39 THEN NULL ELSE - 98 * + COUNT( ALL - + 21 ) + - 32 END * + COUNT( * )
----
6500

skipif mysql # not compatible
query I rowsort label-7083
SELECT - - 50 * - CASE + 94 WHEN - 39 THEN NULL ELSE - 98 * + COUNT ( ALL - + 21 ) + - 32 END * + COUNT ( * )
----
6500

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT DISTINCT - - 47 * 66 - - SUM( + + 44 ) col0
----
3146

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT - - 47 * 66 - - SUM ( + + 44 ) col0
----
3146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7085
SELECT ALL CAST( + - 91 AS SIGNED ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL CAST ( + - 91 AS INTEGER ) AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7086
SELECT ALL + 81 - - 10 + - 1 + 1 + MAX( 50 ) * 7 * - + 95 + - + CAST( NULL AS SIGNED ) + + - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL + 81 - - 10 + - 1 + 1 + MAX ( 50 ) * 7 * - + 95 + - + CAST ( NULL AS INTEGER ) + + - 29 AS col0
----
NULL

query II rowsort
SELECT - 17, 15 AS col2
----
-17
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT - 42 - - + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-7088
SELECT - 42 - - + COUNT ( * )
----
-41

query I rowsort
SELECT - 59 * 60 AS col0
----
-3540

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT ALL + 18 - + 95 + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL + 18 - + 95 + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL 23 * + COUNT( * ) col2
----
23

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL 23 * + COUNT ( * ) col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT 59 * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-7092
SELECT 59 * COUNT ( * )
----
59

query II rowsort
SELECT DISTINCT 46, + 0 AS col0
----
46
0

query I rowsort
SELECT 71 - - 0 * + 84 + + 62 - - NULLIF ( - 27, - 15 )
----
106

query II rowsort
SELECT DISTINCT - 1 * - + 52 AS col2, + 72 AS col1
----
52
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT ALL - COALESCE ( - 34, 47, + - 78, CASE - 93 WHEN - 57 + 32 * - COUNT( * ) THEN NULL WHEN - 96 THEN - 8 END )
----
34

skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL - COALESCE ( - 34, 47, + - 78, CASE - 93 WHEN - 57 + 32 * - COUNT ( * ) THEN NULL WHEN - 96 THEN - 8 END )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT 67, COUNT( * ) AS col2
----
67
1

skipif mysql # not compatible
query II rowsort label-7097
SELECT 67, COUNT ( * ) AS col2
----
67
1

query I rowsort
SELECT - 34 * - ( + + ( - 91 ) ) - - CASE - 22 WHEN - 87 * 89 THEN + 21 ELSE NULL END * - 16 * + - 61 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 63 AS col2, + 41 AS col2
----
-63
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT ALL + 87 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + 87 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 95 col0, - 83 * + 64 * + 51 AS col1
----
-95
-270912

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT ALL 28 + + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL 28 + + COUNT ( * ) AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7103
SELECT DISTINCT + ( + - 36 ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT + ( + - 36 ) / + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT DISTINCT - MIN( + 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT - MIN ( + 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT - ( 2 ) + - 99 - + + 88 + COUNT( ALL + 29 ) * - 86 col1
----
-275

skipif mysql # not compatible
query I rowsort label-7105
SELECT - ( 2 ) + - 99 - + + 88 + COUNT ( ALL + 29 ) * - 86 col1
----
-275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT ALL + CAST( NULL AS SIGNED ) + 49 + + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL + CAST ( NULL AS INTEGER ) + 49 + + + 75
----
NULL

query I rowsort
SELECT ALL 99 * - 85 AS col2
----
-8415

query I rowsort
SELECT + 38 * - 51 + + 16 * + 92 AS col0
----
-466

onlyif mysql # aggregate syntax: 
query II rowsort label-7109
SELECT ALL - - 12, + COUNT( + 18 ) AS col0
----
12
1

skipif mysql # not compatible
query II rowsort label-7109
SELECT ALL - - 12, + COUNT ( + 18 ) AS col0
----
12
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT + COUNT( DISTINCT + NULLIF ( - 8, + 76 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7110
SELECT + COUNT ( DISTINCT + NULLIF ( - 8, + 76 ) ) AS col2
----
1

query I rowsort
SELECT ALL + 85 - - 29 AS col2
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7112
SELECT - CAST( NULL AS SIGNED ) * 86 - - COUNT( * ) * + COUNT( * ) * 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT - CAST ( NULL AS INTEGER ) * 86 - - COUNT ( * ) * + COUNT ( * ) * 22 AS col0
----
NULL

query I rowsort
SELECT 60 * + + 59 AS col2
----
3540

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7114
SELECT ALL + ( + + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL + ( + + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT ALL + 49 - + + MIN( ALL - 55 ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL + 49 - + + MIN ( ALL - 55 ) AS col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7116
SELECT ( + - CAST( NULL AS SIGNED ) ) + + 83, 6 * - + 19 AS col0
----
NULL
-114

skipif mysql # not compatible
query II rowsort label-7116
SELECT ( + - CAST ( NULL AS INTEGER ) ) + + 83, 6 * - + 19 AS col0
----
NULL
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT 36 + + - 61 + - CASE - 98 WHEN + - 36 + 20 + - - MAX( 87 ) * + MIN( + - 82 ) THEN NULL ELSE - + 77 END AS col1
----
52

skipif mysql # not compatible
query I rowsort label-7117
SELECT 36 + + - 61 + - CASE - 98 WHEN + - 36 + 20 + - - MAX ( 87 ) * + MIN ( + - 82 ) THEN NULL ELSE - + 77 END AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT 72 - + 19 + + ( + + MIN( ALL + + 89 ) ) + - 0
----
142

skipif mysql # not compatible
query I rowsort label-7118
SELECT 72 - + 19 + + ( + + MIN ( ALL + + 89 ) ) + - 0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7119
SELECT COUNT ( * ) * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT 78 * + MIN( - CASE - - 32 WHEN + 14 THEN NULL WHEN - + NULLIF ( - 56, + 61 + - - 43 ) THEN NULL ELSE + 90 * - COALESCE ( - 78, + - 7 ) END ) AS col2
----
-547560

skipif mysql # not compatible
query I rowsort label-7120
SELECT 78 * + MIN ( - CASE - - 32 WHEN + 14 THEN NULL WHEN - + NULLIF ( - 56, + 61 + - - 43 ) THEN NULL ELSE + 90 * - COALESCE ( - 78, + - 7 ) END ) AS col2
----
-547560

onlyif mysql # aggregate syntax: 
query II rowsort label-7121
SELECT DISTINCT - 77 * 14 AS col2, - NULLIF ( + ( + - COUNT( * ) ), 9 ) AS col1
----
-1078
1

skipif mysql # not compatible
query II rowsort label-7121
SELECT DISTINCT - 77 * 14 AS col2, - NULLIF ( + ( + - COUNT ( * ) ), 9 ) AS col1
----
-1078
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT 52 + + ( - - COUNT( * ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7122
SELECT 52 + + ( - - COUNT ( * ) ) AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT 62 + - CAST( 29 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-7123
SELECT 62 + - CAST ( 29 AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT 68 * SUM( DISTINCT - 64 ) * + - CASE + - 13 WHEN 41 * + 11 / + MIN( DISTINCT + 57 ) THEN - - 61 END * - - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7124
SELECT 68 * SUM ( DISTINCT - 64 ) * + - CASE + - 13 WHEN 41 * + 11 / + MIN ( DISTINCT + 57 ) THEN - - 61 END * - - 57
----
NULL

query II rowsort
SELECT DISTINCT - 78 + 53, + 22 AS col1
----
-25
22

query II rowsort
SELECT 58 + + 3 AS col1, - 92 * ( - 34 )
----
61
3128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7127
SELECT DISTINCT + 42 + + COUNT( * ) DIV ( + - 47 )
----
42

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT + 42 + + COUNT ( * ) / ( + - 47 )
----
42

query I rowsort
SELECT 68 + - 88
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT COUNT( * ) + - 70 - 79 * - 57
----
4434

skipif mysql # not compatible
query I rowsort label-7129
SELECT COUNT ( * ) + - 70 - 79 * - 57
----
4434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT - CAST( 63 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-7130
SELECT - CAST ( 63 AS INTEGER ) AS col2
----
-63

query I rowsort
SELECT ALL + - ( - 46 ) + - 55 + - 91
----
-100

query I rowsort
SELECT + - 6 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT - 64 * - 1 + + COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7133
SELECT - 64 * - 1 + + COUNT ( * ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT + MIN( 33 ) * - 20 + NULLIF ( - 70, COALESCE ( - COUNT( * ), + 6, + 20 / + ( + + 40 ) * 3 + + 32 ) )
----
-730

skipif mysql # not compatible
query I rowsort label-7134
SELECT + MIN ( 33 ) * - 20 + NULLIF ( - 70, COALESCE ( - COUNT ( * ), + 6, + 20 / + ( + + 40 ) * 3 + + 32 ) )
----
-730

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT ALL + + 94 DIV 96 * 31 * 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL + + 94 / 96 * 31 * 32 AS col2
----
0

query I rowsort
SELECT ( - + 66 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7137
SELECT DISTINCT + + ( + 59 ) + + 82 AS col1, COUNT( * ) * + + 38 col0
----
141
38

skipif mysql # not compatible
query II rowsort label-7137
SELECT DISTINCT + + ( + 59 ) + + 82 AS col1, COUNT ( * ) * + + 38 col0
----
141
38

query I rowsort
SELECT DISTINCT - - 56 * + - 44
----
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT - 77 * - 27 + + COUNT( * ) + + 40 + COUNT( * ) + ( + - 14 )
----
2107

skipif mysql # not compatible
query I rowsort label-7139
SELECT - 77 * - 27 + + COUNT ( * ) + + 40 + COUNT ( * ) + ( + - 14 )
----
2107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7140
SELECT ALL - COUNT( CAST( - 34 AS SIGNED ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL - COUNT ( CAST ( - 34 AS INTEGER ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT SUM( + - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-7141
SELECT SUM ( + - 53 ) AS col2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7142
SELECT ALL - 23 * + CAST( - NULLIF ( + COUNT( * ), - 50 ) AS SIGNED ) AS col2, 16 * ( 24 )
----
23
384

skipif mysql # not compatible
query II rowsort label-7142
SELECT ALL - 23 * + CAST ( - NULLIF ( + COUNT ( * ), - 50 ) AS INTEGER ) AS col2, 16 * ( 24 )
----
23
384

query I rowsort
SELECT + + ( + 4 )
----
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7144
SELECT ALL - ( ( - COALESCE ( + - 73, + - CAST( NULL AS SIGNED ), 45 ) ) ) DIV 49 AS col1, - 70
----
-1
-70

skipif mysql # not compatible
query II rowsort label-7144
SELECT ALL - ( ( - COALESCE ( + - 73, + - CAST ( NULL AS INTEGER ), 45 ) ) ) / 49 AS col1, - 70
----
-1
-70

query I rowsort
SELECT 62 + + 56 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT - MIN( 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-7146
SELECT - MIN ( 92 ) AS col1
----
-92

query I rowsort
SELECT - 0 + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT + CASE - 42 WHEN + - 56 THEN 80 * - 46 * - 9 + + + 90 * + + 12 - + 79 + - 71 + COUNT( * ) * 98 * + 78 + + 90 + + - MAX( 56 ) + + 7 END * + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT + CASE - 42 WHEN + - 56 THEN 80 * - 46 * - 9 + + + 90 * + + 12 - + 79 + - 71 + COUNT ( * ) * 98 * + 78 + + 90 + + - MAX ( 56 ) + + 7 END * + 36 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7149
SELECT ALL + 18 DIV + + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL + 18 / + + 55 AS col0
----
0

query I rowsort
SELECT - COALESCE ( - 45, ( + 21 ) ) col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT DISTINCT 5 + + COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT 5 + + COUNT ( * ) AS col1
----
6

query I rowsort
SELECT - CASE - 79 WHEN 5 THEN + - 37 + + 19 * - - 19 ELSE - - ( + ( - - 62 ) ) + - CASE - NULLIF ( - 9, + 35 ) WHEN 79 * 3 - + 33 THEN NULL WHEN - 37 THEN NULL ELSE + - 45 END + + 89 END
----
-196

query I rowsort
SELECT - 52 + - 15
----
-67

query I rowsort
SELECT DISTINCT + 47 + - 4 AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7155
SELECT - COALESCE ( CASE - COUNT( * ) WHEN + - 33 + - - MIN( ALL + 17 ) + + ( + 92 ) + 19 * - 13 THEN 91 - - - COALESCE ( + CAST( NULL AS SIGNED ), + + 93 ) END, + - SUM( 66 ) )
----
66

skipif mysql # not compatible
query I rowsort label-7155
SELECT - COALESCE ( CASE - COUNT ( * ) WHEN + - 33 + - - MIN ( ALL + 17 ) + + ( + 92 ) + 19 * - 13 THEN 91 - - - COALESCE ( + CAST ( NULL AS INTEGER ), + + 93 ) END, + - SUM ( 66 ) )
----
66

query I rowsort
SELECT ALL - 83 + 68 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-7157
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( * ) - + 75 * - 50 AS col0
----
1
3751

skipif mysql # not compatible
query II rowsort label-7157
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) - + 75 * - 50 AS col0
----
1
3751

onlyif mysql # aggregate syntax: 
query II rowsort label-7158
SELECT - 48 - ( + + 44 ) * COUNT( * ) AS col1, 9 AS col1
----
-92
9

skipif mysql # not compatible
query II rowsort label-7158
SELECT - 48 - ( + + 44 ) * COUNT ( * ) AS col1, 9 AS col1
----
-92
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7159
SELECT DISTINCT COUNT( * ) * - 76 + 18 + + 71 - + 19 + - + 20 DIV + - CASE - 14 WHEN + 52 THEN NULL ELSE 42 + + 38 END * - - 47 + + 62 + + + MAX( DISTINCT + 63 )
----
119

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT COUNT ( * ) * - 76 + 18 + + 71 - + 19 + - + 20 / + - CASE - 14 WHEN + 52 THEN NULL ELSE 42 + + 38 END * - - 47 + + 62 + + + MAX ( DISTINCT + 63 )
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7160
SELECT ALL + 59 + 63 + 72, COUNT( * ) DIV - SUM( - 30 ) + 14 + 92 + 7 AS col2
----
194
113

skipif mysql # not compatible
query II rowsort label-7160
SELECT ALL + 59 + 63 + 72, COUNT ( * ) / - SUM ( - 30 ) + 14 + 92 + 7 AS col2
----
194
113

onlyif mysql # aggregate syntax: 
query II rowsort label-7161
SELECT ALL + - 66 + 94 * + + 45 AS col1, MAX( DISTINCT + - 28 )
----
4164
-28

skipif mysql # not compatible
query II rowsort label-7161
SELECT ALL + - 66 + 94 * + + 45 AS col1, MAX ( DISTINCT + - 28 )
----
4164
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7162
SELECT DISTINCT 13 AS col2, ( - 30 ) - - - 34, + - 13 + + 89 + - + ( COUNT( * ) ) DIV + COUNT( * ) + + 19 AS col1
----
13
-64
94

skipif mysql # not compatible
query III rowsort label-7162
SELECT DISTINCT 13 AS col2, ( - 30 ) - - - 34, + - 13 + + 89 + - + ( COUNT ( * ) ) / + COUNT ( * ) + + 19 AS col1
----
13
-64
94

query II rowsort
SELECT + + 74 AS col2, 17
----
74
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7164
SELECT ALL + + 67, - 39 * + + COUNT( * ) AS col1
----
67
-39

skipif mysql # not compatible
query II rowsort label-7164
SELECT ALL + + 67, - 39 * + + COUNT ( * ) AS col1
----
67
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7165
SELECT ALL + + 41 DIV - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL + + 41 / - 6 AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT - 64 DIV + 30
----
-2

skipif mysql # not compatible
query I rowsort label-7166
SELECT - 64 / + 30
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7167
SELECT ALL + 74 DIV + 71 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL + 74 / + 71 AS col0
----
1

query I rowsort
SELECT DISTINCT + + 41 * - 27 AS col0
----
-1107

query I rowsort
SELECT ALL 17 * + + 81 AS col1
----
1377

onlyif mysql # aggregate syntax: 
query II rowsort label-7170
SELECT ALL + 90 col2, COUNT( ALL - 27 ) * - + COUNT( * ) + + 73 - 99 * - 41
----
90
4131

skipif mysql # not compatible
query II rowsort label-7170
SELECT ALL + 90 col2, COUNT ( ALL - 27 ) * - + COUNT ( * ) + + 73 - 99 * - 41
----
90
4131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7171
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

query II rowsort
SELECT + + 23, + 95 + - 61 + 44 AS col0
----
23
78

query I rowsort
SELECT - - 28 + - - ( + NULLIF ( 5, + - 69 ) )
----
33

query I rowsort
SELECT CASE 46 WHEN + 56 THEN 67 * 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT + COALESCE ( - COUNT( * ), - 11 ) * 38
----
-38

skipif mysql # not compatible
query I rowsort label-7175
SELECT + COALESCE ( - COUNT ( * ), - 11 ) * 38
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7176
SELECT + 48 * - COUNT( * ) - + CAST( + ( 14 ) AS SIGNED ) - + 9 + + 50 + - 96 * - 14 + + + 17 * COUNT( * ) AS col0
----
1340

skipif mysql # not compatible
query I rowsort label-7176
SELECT + 48 * - COUNT ( * ) - + CAST ( + ( 14 ) AS INTEGER ) - + 9 + + 50 + - 96 * - 14 + + + 17 * COUNT ( * ) AS col0
----
1340

query I rowsort
SELECT ALL + ( + 4 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7178
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 62 + CAST( + 97 AS SIGNED ) AS col1, 17 + + + COALESCE ( - 90, - - 90 + + 63 - CAST( NULL AS SIGNED ) ) * + 27
----
NULL
-2413

skipif mysql # not compatible
query II rowsort label-7178
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 62 + CAST ( + 97 AS INTEGER ) AS col1, 17 + + + COALESCE ( - 90, - - 90 + + 63 - CAST ( NULL AS INTEGER ) ) * + 27
----
NULL
-2413

query I rowsort
SELECT ALL 48 * + 9 + 29
----
461

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT + ( 92 ) + + 38 + + - CASE - 6 WHEN 55 THEN + - COUNT( * ) END * - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT + ( 92 ) + + 38 + + - CASE - 6 WHEN 55 THEN + - COUNT ( * ) END * - + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT COUNT( DISTINCT + 8 )
----
1

skipif mysql # not compatible
query I rowsort label-7181
SELECT COUNT ( DISTINCT + 8 )
----
1

query I rowsort
SELECT + 41 + 33 col1
----
74

query II rowsort
SELECT - ( - 64 ), - ( - 14 ) + + 0 AS col2
----
64
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT - COALESCE ( ( - COUNT( + + 1 ) ), + 46 ) + 41 + + 89 * + - 32 * - 55
----
156682

skipif mysql # not compatible
query I rowsort label-7184
SELECT - COALESCE ( ( - COUNT ( + + 1 ) ), + 46 ) + 41 + + 89 * + - 32 * - 55
----
156682

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT - COALESCE ( + 32, + + 85 - + - ( + 14 ) + COUNT( * ) * + 62 * 38 ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-7185
SELECT - COALESCE ( + 32, + + 85 - + - ( + 14 ) + COUNT ( * ) * + 62 * 38 ) col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT + 87 + + 43 + COUNT( * ) + + 76
----
207

skipif mysql # not compatible
query I rowsort label-7186
SELECT + 87 + + 43 + COUNT ( * ) + + 76
----
207

query I rowsort
SELECT ALL 93 + 33 * + 71 AS col1
----
2436

query I rowsort
SELECT + 99 + + 22 col0
----
121

query I rowsort
SELECT DISTINCT 63 * - 69 AS col0
----
-4347

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT 22 + - - COUNT( * ) + 97
----
120

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT 22 + - - COUNT ( * ) + 97
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL SUM( ALL + 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL SUM ( ALL + 44 ) AS col1
----
44

query I rowsort
SELECT + 68 * + 77
----
5236

query I rowsort
SELECT - + 43 AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7194
SELECT - SUM( - 59 ) + + - CASE + 90 WHEN 34 THEN NULL WHEN + 45 * + 17 * + 84 * 98 + + + COUNT( * ) - - - 6 + + 74 - + COALESCE ( - ( + - 95 ), - + 64 DIV + 69 * - + 19 + - 76 + - - COUNT( * ) + + + 17 - COUNT( * ) ) THEN 51 ELSE + NULLIF ( + 64, 97 * + + MAX( DISTINCT 58 ) ) * + 74 END + - NULLIF ( - 73 + 51 * + 94, 85 ) DIV NULLIF ( + 16 * 62 + + MAX( NULLIF ( + 4, CASE WHEN 84 IS NULL THEN 74 ELSE - 56 * 98 END * 14 + - 69 * 88 ) ) * - COUNT( * ), + COUNT( * ) DIV - AVG ( ALL 16 ) ) DIV 94
----
-4677

skipif mysql # not compatible
query I rowsort label-7194
SELECT - SUM ( - 59 ) + + - CASE + 90 WHEN 34 THEN NULL WHEN + 45 * + 17 * + 84 * 98 + + + COUNT ( * ) - - - 6 + + 74 - + COALESCE ( - ( + - 95 ), - + 64 / + 69 * - + 19 + - 76 + - - COUNT ( * ) + + + 17 - COUNT ( * ) ) THEN 51 ELSE + NULLIF ( + 64, 97 * + + MAX ( DISTINCT 58 ) ) * + 74 END + - NULLIF ( - 73 + 51 * + 94, 85 ) / NULLIF ( + 16 * 62 + + MAX ( NULLIF ( + 4, CASE WHEN 84 IS NULL THEN 74 ELSE - 56 * 98 END * 14 + - 69 * 88 ) ) * - COUNT ( * ), + COUNT ( * ) / - AVG ( ALL 16 ) ) / 94
----
-4677

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT - 96 + - 68 + - 19 * COUNT( * ) - + 81 AS col0
----
-264

skipif mysql # not compatible
query I rowsort label-7195
SELECT - 96 + - 68 + - 19 * COUNT ( * ) - + 81 AS col0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT + COUNT( * ) * - + 53 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-7196
SELECT + COUNT ( * ) * - + 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT - COUNT( * ) * + 9 + + 1 * + 10
----
1

skipif mysql # not compatible
query I rowsort label-7197
SELECT - COUNT ( * ) * + 9 + + 1 * + 10
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT DISTINCT 23 * + 49 + 63 - + NULLIF ( + 78, + + MIN( ALL + 28 ) + + + 23 ) * + 80 AS col2
----
-5050

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT 23 * + 49 + 63 - + NULLIF ( + 78, + + MIN ( ALL + 28 ) + + + 23 ) * + 80 AS col2
----
-5050

query I rowsort
SELECT ALL + + 27 AS col2
----
27

query I rowsort
SELECT ALL + ( 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT ALL + - SUM( - 39 ) col0
----
39

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL + - SUM ( - 39 ) col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7202
SELECT DISTINCT 96 DIV - + 14 + - 65 * 76 + + 72 + + - MIN( - 43 ) * + 45 * + 24 AS col1
----
41566

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT 96 / - + 14 + - 65 * 76 + + 72 + + - MIN ( - 43 ) * + 45 * + 24 AS col1
----
41566

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-7203
SELECT 6 AS col1, - 88 * 39 col0, - CASE 77 WHEN 61 THEN NULL WHEN 35 THEN CAST( NULL AS DECIMAL ) WHEN 2 * - - 33 THEN - 99 END + 38 + + 29 + COUNT( * ) * + + 76 * 96 AS col0
----
6
-3432
NULL

skipif mysql # not compatible
query III rowsort label-7203
SELECT 6 AS col1, - 88 * 39 col0, - CASE 77 WHEN 61 THEN NULL WHEN 35 THEN CAST ( NULL AS REAL ) WHEN 2 * - - 33 THEN - 99 END + 38 + + 29 + COUNT ( * ) * + + 76 * 96 AS col0
----
6
-3432
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7204
SELECT 46 DIV - 78 * SUM( 85 ) * + 54 * - + MAX( + - 3 ) + + 8 * + 73 AS col0
----
584

skipif mysql # not compatible
query I rowsort label-7204
SELECT 46 / - 78 * SUM ( 85 ) * + 54 * - + MAX ( + - 3 ) + + 8 * + 73 AS col0
----
584

query I rowsort
SELECT 81 + - + 6 AS col0
----
75

query I rowsort
SELECT 52 + - + 7
----
45

query I rowsort
SELECT DISTINCT - 18 * 53
----
-954

query I rowsort
SELECT + 81 * + + 2 * - 94 + - 93 AS col0
----
-15321

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL - 0 * - - 63 * - - NULLIF ( - 83, 87 * - COUNT( * ) * + 15 + 52 + - + 55 * + + 84 + 89 ) * + 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL - 0 * - - 63 * - - NULLIF ( - 83, 87 * - COUNT ( * ) * + 15 + 52 + - + 55 * + + 84 + 89 ) * + 52 AS col1
----
0

query I rowsort
SELECT ALL - 28 + + + 12
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ALL MAX( + 48 ) + - 8
----
40

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL MAX ( + 48 ) + - 8
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT MIN( ALL - 33 ) + - ( - COUNT( DISTINCT 18 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-7212
SELECT MIN ( ALL - 33 ) + - ( - COUNT ( DISTINCT 18 ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT DISTINCT + 46 + COUNT( * ) * - - 13 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7213
SELECT DISTINCT + 46 + COUNT ( * ) * - - 13 AS col2
----
59

query I rowsort
SELECT DISTINCT - 83 + - 31 col1
----
-114

query I rowsort
SELECT ALL + 28 + 72
----
100

query I rowsort
SELECT DISTINCT 4 * - 20 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7217
SELECT - 58, + COUNT( * ) * + CAST( NULL AS DECIMAL ) col2
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-7217
SELECT - 58, + COUNT ( * ) * + CAST ( NULL AS REAL ) col2
----
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT 81 * + 26 * - + 4 + - COUNT( * ) AS col1
----
-8425

skipif mysql # not compatible
query I rowsort label-7218
SELECT 81 * + 26 * - + 4 + - COUNT ( * ) AS col1
----
-8425

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT 83 + SUM( DISTINCT + - 78 )
----
5

skipif mysql # not compatible
query I rowsort label-7219
SELECT 83 + SUM ( DISTINCT + - 78 )
----
5

query I rowsort
SELECT - ( - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT + COUNT( DISTINCT + 11 ) + + 58 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7221
SELECT + COUNT ( DISTINCT + 11 ) + + 58 AS col2
----
59

query I rowsort
SELECT DISTINCT + 76 * - + 77 AS col1
----
-5852

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT ALL + 18 - + - 81 + + - 11 + 55 DIV - - 66 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL + 18 - + - 81 + + - 11 + 55 / - - 66 AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7224
SELECT ( - SUM( + + 47 ) ) DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-7224
SELECT ( - SUM ( + + 47 ) ) / - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT + 89 * COALESCE ( + 49, + + 24 ) * + 34 + - - 6 - + CASE - - 89 WHEN + + COUNT( * ) THEN NULL WHEN + + 26 THEN COUNT( * ) WHEN + 62 THEN ( + 24 ) * - - 42 + - + 8 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT + 89 * COALESCE ( + 49, + + 24 ) * + 34 + - - 6 - + CASE - - 89 WHEN + + COUNT ( * ) THEN NULL WHEN + + 26 THEN COUNT ( * ) WHEN + 62 THEN ( + 24 ) * - - 42 + - + 8 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT + 33 - COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7226
SELECT + 33 - COUNT ( * ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7227
SELECT ALL + ( - SUM( DISTINCT 51 ) ) AS col0, + 89
----
-51
89

skipif mysql # not compatible
query II rowsort label-7227
SELECT ALL + ( - SUM ( DISTINCT 51 ) ) AS col0, + 89
----
-51
89

query I rowsort
SELECT DISTINCT - COALESCE ( + 60, + 30, + 13 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7229
SELECT CAST( - COUNT( * ) AS SIGNED ) - + + 51
----
-52

skipif mysql # not compatible
query I rowsort label-7229
SELECT CAST ( - COUNT ( * ) AS INTEGER ) - + + 51
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7230
SELECT - 55 * 36 * - - 49 + + 49 * + - CASE - 67 WHEN + 15 THEN + + 47 DIV - 54 - 99 DIV 78 + 58 WHEN + - 31 THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE + + COUNT( * ) END + 67
----
-97002

skipif mysql # not compatible
query I rowsort label-7230
SELECT - 55 * 36 * - - 49 + + 49 * + - CASE - 67 WHEN + 15 THEN + + 47 / - 54 - 99 / 78 + 58 WHEN + - 31 THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE + + COUNT ( * ) END + 67
----
-97002

query I rowsort
SELECT ALL 65 col0
----
65

query I rowsort
SELECT 29 * + + 11 AS col1
----
319

query I rowsort
SELECT DISTINCT - CASE ( + + 75 ) WHEN + 53 THEN 89 / 96 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7234
SELECT ( - 69 ) * 32 DIV - + 98 * - COUNT( ALL - + 37 ), 39 AS col0
----
-22
39

skipif mysql # not compatible
query II rowsort label-7234
SELECT ( - 69 ) * 32 / - + 98 * - COUNT ( ALL - + 37 ), 39 AS col0
----
-22
39

query I rowsort
SELECT + 5 * - 13 * 38
----
-2470

query I rowsort
SELECT ALL - 32 + - 84 AS col1
----
-116

query I rowsort
SELECT 62 * + 77
----
4774

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT ALL 95 + + CASE + - 25 WHEN - 44 + + 50 * 14 THEN + 67 - - CASE + 74 WHEN + MIN( ALL + - 34 ) * + + 47 + - + 98 / COUNT( * ) * + 51 THEN - + 55 * - 84 ELSE - 13 END + 85 * + 24 * 49 WHEN 30 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL 95 + + CASE + - 25 WHEN - 44 + + 50 * 14 THEN + 67 - - CASE + 74 WHEN + MIN ( ALL + - 34 ) * + + 47 + - + 98 / COUNT ( * ) * + 51 THEN - + 55 * - 84 ELSE - 13 END + 85 * + 24 * 49 WHEN 30 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7239
SELECT ALL - 1 AS col1, + COUNT( * ) * - 43 col2
----
-1
-43

skipif mysql # not compatible
query II rowsort label-7239
SELECT ALL - 1 AS col1, + COUNT ( * ) * - 43 col2
----
-1
-43

query II rowsort
SELECT + 67 AS col0, 45
----
67
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL + MIN( - + 49 ) + + ( - SUM( + 64 ) ) - + COUNT( DISTINCT - 21 ) + + - 58
----
-172

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL + MIN ( - + 49 ) + + ( - SUM ( + 64 ) ) - + COUNT ( DISTINCT - 21 ) + + - 58
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-7242
SELECT DISTINCT - COUNT( * ) col0, COUNT( ALL + 90 ) * 20
----
-1
20

skipif mysql # not compatible
query II rowsort label-7242
SELECT DISTINCT - COUNT ( * ) col0, COUNT ( ALL + 90 ) * 20
----
-1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL 47 + - COUNT( * ) + - + 18
----
28

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL 47 + - COUNT ( * ) + - + 18
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7244
SELECT ALL - COUNT( * ), + 29 AS col2
----
-1
29

skipif mysql # not compatible
query II rowsort label-7244
SELECT ALL - COUNT ( * ), + 29 AS col2
----
-1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT ( + 90 ) + MAX( + 62 ) + + 79 AS col0
----
231

skipif mysql # not compatible
query I rowsort label-7245
SELECT ( + 90 ) + MAX ( + 62 ) + + 79 AS col0
----
231

query I rowsort
SELECT ALL + 60 + 63 - + 22 + + - 70 * + 56 AS col2
----
-3819

query II rowsort
SELECT 91 AS col0, 73 AS col0
----
91
73

query I rowsort
SELECT 69 * + + 74 + + 42 * - 7
----
4812

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT 6 DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-7249
SELECT 6 / 13
----
0

query I rowsort
SELECT ALL - 97 - ( - 24 ) * + 81 * 6 AS col0
----
11567

query I rowsort
SELECT DISTINCT 46 - + 78 AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT ALL - CAST( + 56 AS SIGNED ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL - CAST ( + 56 AS INTEGER ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT ALL - 97 - + COUNT( - + 34 )
----
-98

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL - 97 - + COUNT ( - + 34 )
----
-98

query I rowsort
SELECT 3 * - - 63 col1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT 6 + - 1 + + - 26 * + 58 * + MIN( - + 94 ) - 1 AS col2
----
141756

skipif mysql # not compatible
query I rowsort label-7255
SELECT 6 + - 1 + + - 26 * + 58 * + MIN ( - + 94 ) - 1 AS col2
----
141756

query I rowsort
SELECT 12 * + - 67 AS col0
----
-804

query I rowsort
SELECT 86 + + 36 AS col0
----
122

query II rowsort
SELECT 22 - + ( - + 96 ) * - + 65, 0 AS col0
----
-6218
0

query I rowsort
SELECT ALL - - 72 * - 78 * + 60
----
-336960

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL - - 47 * 23 + - 56 + + CASE - - 4 WHEN 98 THEN NULL ELSE + - 34 * - MIN( - - 39 ) + 74 * 20 END AS col2
----
3831

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL - - 47 * 23 + - 56 + + CASE - - 4 WHEN 98 THEN NULL ELSE + - 34 * - MIN ( - - 39 ) + 74 * 20 END AS col2
----
3831

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7261
SELECT + CAST( - 97 AS SIGNED ) * 53 DIV + 45 AS col0, 74
----
-114
74

skipif mysql # not compatible
query II rowsort label-7261
SELECT + CAST ( - 97 AS INTEGER ) * 53 / + 45 AS col0, 74
----
-114
74

query I rowsort
SELECT 6 col1
----
6

query I rowsort
SELECT 75 + + + 7 AS col0
----
82

query II rowsort
SELECT ALL + 62 AS col1, 27 + 41
----
62
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7265
SELECT - 31 + - ( - + COUNT( * ) ) - - 22 DIV - 2
----
-41

skipif mysql # not compatible
query I rowsort label-7265
SELECT - 31 + - ( - + COUNT ( * ) ) - - 22 / - 2
----
-41

query I rowsort
SELECT DISTINCT ( - + 92 )
----
-92

query I rowsort
SELECT 67 + - 77 AS col1
----
-10

query I rowsort
SELECT ALL 83 * 35 * + 61 AS col2
----
177205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7269
SELECT ALL + 42, - COUNT( * ) - - 40 * - 87 + - CAST( - 25 AS SIGNED ) * + - 28 AS col2
----
42
-4181

skipif mysql # not compatible
query II rowsort label-7269
SELECT ALL + 42, - COUNT ( * ) - - 40 * - 87 + - CAST ( - 25 AS INTEGER ) * + - 28 AS col2
----
42
-4181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7270
SELECT ALL + + 92 + - 81 + + 53 * MAX( - + 26 ) * + 61 - + 81 * SUM( + 90 ) * 20 DIV - + 73 + 82 * 71
----
-76228

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + + 92 + - 81 + + 53 * MAX ( - + 26 ) * + 61 - + 81 * SUM ( + 90 ) * 20 / - + 73 + 82 * 71
----
-76228

query I rowsort
SELECT 47 * + 33 * 33 + - 78 * + 23
----
49389

query II rowsort
SELECT ALL - 46 * - 54 AS col1, - 64 AS col2
----
2484
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7273
SELECT - - 23, - 2 + + - ( - 23 ) + - - 77 + + 89 + + ( ( 30 ) ) * 40 - - NULLIF ( + MIN( DISTINCT + 9 ), - 5 * - 7 ) AS col0
----
23
1396

skipif mysql # not compatible
query II rowsort label-7273
SELECT - - 23, - 2 + + - ( - 23 ) + - - 77 + + 89 + + ( ( 30 ) ) * 40 - - NULLIF ( + MIN ( DISTINCT + 9 ), - 5 * - 7 ) AS col0
----
23
1396

query I rowsort
SELECT ALL 72 + - 77 * + - 75
----
5847

query I rowsort
SELECT 49 * + + 85 - ( - 24 ) + - 91
----
4098

query I rowsort
SELECT DISTINCT - 10 * - ( + + 63 ) + - 52 + + - 48 + - + 19
----
511

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7277
SELECT + SUM( - + 37 ) DIV 70 + - 96 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-7277
SELECT + SUM ( - + 37 ) / 70 + - 96 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT DISTINCT 61 * ( 48 ) * + - 55 + + ( + - COUNT( * ) ) AS col0
----
-161041

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT 61 * ( 48 ) * + - 55 + + ( + - COUNT ( * ) ) AS col0
----
-161041

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7279
SELECT + 66 + - 18 AS col0, CAST( NULL AS SIGNED ) / + 36
----
48
NULL

skipif mysql # not compatible
query II rowsort label-7279
SELECT + 66 + - 18 AS col0, CAST ( NULL AS INTEGER ) / + 36
----
48
NULL

query I rowsort
SELECT ALL 67 * - - 5 + 26 - 51 * - + 17
----
1228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7281
SELECT ALL COUNT( * ) DIV - 19 col1
----
0

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL COUNT ( * ) / - 19 col1
----
0

query I rowsort
SELECT + ( - + 83 ) + + ( + 84 ) AS col2
----
1

query I rowsort
SELECT + COALESCE ( + - 11, - 1 ) col1
----
-11

query I rowsort
SELECT ALL 4 * - + 76 - + 48 AS col2
----
-352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7285
SELECT - 98 / + ( 14 ) * + CAST( NULL AS SIGNED ) + 46 * 21 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7285
SELECT - 98 / + ( 14 ) * + CAST ( NULL AS INTEGER ) + 46 * 21 * + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT CASE WHEN NOT + 97 IS NULL THEN - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-7286
SELECT CASE WHEN NOT + 97 IS NULL THEN - COUNT ( * ) END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT + COALESCE ( + 91, + ( MAX( CASE 36 WHEN + 94 * + + 95 * - + CAST( NULL AS SIGNED ) * - + 40 THEN NULL WHEN + - 0 - - 48 + + 10 * - 65 + + ( + ( - + 80 ) ) THEN - - 38 WHEN - + 16 THEN NULL ELSE NULL END ) ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7287
SELECT + COALESCE ( + 91, + ( MAX ( CASE 36 WHEN + 94 * + + 95 * - + CAST ( NULL AS INTEGER ) * - + 40 THEN NULL WHEN + - 0 - - 48 + + 10 * - 65 + + ( + ( - + 80 ) ) THEN - - 38 WHEN - + 16 THEN NULL ELSE NULL END ) ) ) AS col1
----
91

query I rowsort
SELECT - 88 + + - 64
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT + COUNT( * ) * - - 86 * + 23 col1
----
1978

skipif mysql # not compatible
query I rowsort label-7289
SELECT + COUNT ( * ) * - - 86 * + 23 col1
----
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL + CASE - + 74 WHEN + ( + ( - 1 ) ) THEN + - 28 * 8 * - - 64 + - 16 WHEN MIN( DISTINCT + + ( + 52 ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + CASE - + 74 WHEN + ( + ( - 1 ) ) THEN + - 28 * 8 * - - 64 + - 16 WHEN MIN ( DISTINCT + + ( + 52 ) ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - + 30, 74 ) * - ( + 39 ) - 51 - 23 - - 1 * - 6 AS col2
----
1090

query I rowsort
SELECT + 69 * NULLIF ( + 37, - 8 ) col1
----
2553

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT DISTINCT + COUNT( ALL 85 )
----
1

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT + COUNT ( ALL 85 )
----
1

query I rowsort
SELECT ( + 40 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT DISTINCT + 18 / - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT + 18 / - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7296
SELECT DISTINCT COALESCE ( 35, - 97 * - 1 DIV - + 24 + - - 94, - + COUNT( * ) - MAX( + 95 ) ) col0
----
35

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT COALESCE ( 35, - 97 * - 1 / - + 24 + - - 94, - + COUNT ( * ) - MAX ( + 95 ) ) col0
----
35

query I rowsort
SELECT ALL - - 44 + 77 AS col1
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-7298
SELECT ALL - COUNT( * ) * + NULLIF ( 33, - 58 ) - - 76 + - - 73 + MIN( DISTINCT - 48 ) * + + CASE 50 WHEN - ( - COUNT( * ) ) + + - COUNT( * ) + + ( + - 39 ) - + - 28 THEN - + COUNT( * ) / + 7 * - ( + 86 ) + COUNT( * ) WHEN - 74 * 98 THEN + 18 * 40 END AS col0, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-7298
SELECT ALL - COUNT ( * ) * + NULLIF ( 33, - 58 ) - - 76 + - - 73 + MIN ( DISTINCT - 48 ) * + + CASE 50 WHEN - ( - COUNT ( * ) ) + + - COUNT ( * ) + + ( + - 39 ) - + - 28 THEN - + COUNT ( * ) / + 7 * - ( + 86 ) + COUNT ( * ) WHEN - 74 * 98 THEN + 18 * 40 END AS col0, 43
----
NULL
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT - - 5 * CAST( + 30 AS SIGNED ) AS col2
----
150

skipif mysql # not compatible
query I rowsort label-7299
SELECT - - 5 * CAST ( + 30 AS INTEGER ) AS col2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT DISTINCT - ( - + COUNT( * ) ) + - COUNT( * ) * + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT - ( - + COUNT ( * ) ) + - COUNT ( * ) * + COUNT ( * ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7301
SELECT ALL - COALESCE ( COUNT( * ), + 50, + + 53 * - 27 + - + COALESCE ( - 47, + + 31, + 99 ) + 12 DIV - + ( - - 70 ) * + 23 - CAST( NULL AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL - COALESCE ( COUNT ( * ), + 50, + + 53 * - 27 + - + COALESCE ( - 47, + + 31, + 99 ) + 12 / - + ( - - 70 ) * + 23 - CAST ( NULL AS INTEGER ) ) AS col0
----
-1

query II rowsort
SELECT - + ( - + 10 ) AS col1, 15
----
10
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7303
SELECT + 77 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT + 77 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7304
SELECT + - CASE - 50 WHEN - COUNT( + 79 ) THEN - 82 END + - + CAST( 12 AS SIGNED ) col0, 33
----
NULL
33

skipif mysql # not compatible
query II rowsort label-7304
SELECT + - CASE - 50 WHEN - COUNT ( + 79 ) THEN - 82 END + - + CAST ( 12 AS INTEGER ) col0, 33
----
NULL
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT - 90 * - COUNT( + 89 )
----
90

skipif mysql # not compatible
query I rowsort label-7305
SELECT - 90 * - COUNT ( + 89 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT - MAX( - 79 ) + COUNT( * ) * - 67
----
12

skipif mysql # not compatible
query I rowsort label-7306
SELECT - MAX ( - 79 ) + COUNT ( * ) * - 67
----
12

query I rowsort
SELECT DISTINCT - + 2 + - + 95 col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT DISTINCT - 17 * - 70 * COUNT( * ) - + 21 AS col0
----
1169

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT - 17 * - 70 * COUNT ( * ) - + 21 AS col0
----
1169

query I rowsort
SELECT DISTINCT ( 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL - + COALESCE ( 14, - + 74, - 70 + + COUNT( * ) ) + - - 8 * + - 31
----
-262

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL - + COALESCE ( 14, - + 74, - 70 + + COUNT ( * ) ) + - - 8 * + - 31
----
-262

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT - + 78 * COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-7311
SELECT - + 78 * COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT DISTINCT - ( - 6 ) + + - 48 + - 86 + + COUNT( + 90 ) AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT - ( - 6 ) + + - 48 + - 86 + + COUNT ( + 90 ) AS col1
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7313
SELECT DISTINCT + - MAX( DISTINCT + 56 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT + - MAX ( DISTINCT + 56 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7314
SELECT ALL + ( - COALESCE ( + + 98, + 17 * + COALESCE ( + - 61, + + COUNT( * ), + - 63 ) * + 16 ) ) * - COUNT( * ) col0, + 54 DIV ( 11 ) * MIN( ALL 32 ) AS col2
----
98
128

skipif mysql # not compatible
query II rowsort label-7314
SELECT ALL + ( - COALESCE ( + + 98, + 17 * + COALESCE ( + - 61, + + COUNT ( * ), + - 63 ) * + 16 ) ) * - COUNT ( * ) col0, + 54 / ( 11 ) * MIN ( ALL 32 ) AS col2
----
98
128

query I rowsort
SELECT - + ( + 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7316
SELECT + 69 * + 25 + - 42 AS col1, - MIN( ALL - ( - 98 ) ) * - + ( - 20 ) + - ( 56 ) AS col2
----
1683
-2016

skipif mysql # not compatible
query II rowsort label-7316
SELECT + 69 * + 25 + - 42 AS col1, - MIN ( ALL - ( - 98 ) ) * - + ( - 20 ) + - ( 56 ) AS col2
----
1683
-2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7317
SELECT + ( + - CAST( NULL AS SIGNED ) ) * - 64 / COUNT( * ) + - 80 * - COUNT( ALL - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT + ( + - CAST ( NULL AS INTEGER ) ) * - 64 / COUNT ( * ) + - 80 * - COUNT ( ALL - 23 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7318
SELECT ALL COUNT( * ) DIV + 28 - 84
----
-84

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL COUNT ( * ) / + 28 - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT DISTINCT 59 * + COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT 59 * + COUNT ( * ) AS col1
----
59

query I rowsort
SELECT - ( 67 ) * - 69 * + - 57 + 5 - + 96 * - - 47 + 58 AS col0
----
-267960

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT + COUNT( 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7321
SELECT + COUNT ( 22 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT ALL 69 DIV + + 11 - - 44 - - - 25
----
25

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL 69 / + + 11 - - 44 - - - 25
----
25

query I rowsort
SELECT ( - + 86 )
----
-86

query I rowsort
SELECT ALL + 67 col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7325
SELECT ALL ( - 18 ) DIV 79 * + - 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL ( - 18 ) / 79 * + - 11 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT + 52 * + COALESCE ( 74, - COALESCE ( - + 6, - COUNT( * ) ), - 30 )
----
3848

skipif mysql # not compatible
query I rowsort label-7326
SELECT + 52 * + COALESCE ( 74, - COALESCE ( - + 6, - COUNT ( * ) ), - 30 )
----
3848

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT + 70 DIV - + 61
----
-1

skipif mysql # not compatible
query I rowsort label-7327
SELECT + 70 / - + 61
----
-1

query I rowsort
SELECT + ( + 91 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT 34 * + 47 - + 36 * - COUNT( * )
----
1634

skipif mysql # not compatible
query I rowsort label-7329
SELECT 34 * + 47 - + 36 * - COUNT ( * )
----
1634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7330
SELECT + 5 DIV + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7330
SELECT + 5 / + COUNT ( * )
----
5

query I rowsort
SELECT ( + 32 )
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-7332
SELECT ALL + 70 col0, 18 DIV + + 2 + - + 89 AS col1
----
70
-80

skipif mysql # not compatible
query II rowsort label-7332
SELECT ALL + 70 col0, 18 / + + 2 + - + 89 AS col1
----
70
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7333
SELECT - COUNT( * ) * COUNT( CAST( + 60 AS SIGNED ) ) + + SUM( + 42 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7333
SELECT - COUNT ( * ) * COUNT ( CAST ( + 60 AS INTEGER ) ) + + SUM ( + 42 ) AS col2
----
41

query I rowsort
SELECT ( + 17 ) AS col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT - 49 * + + 2 * 84 + - 41 DIV - + 58 AS col1
----
-8232

skipif mysql # not compatible
query I rowsort label-7335
SELECT - 49 * + + 2 * 84 + - 41 / - + 58 AS col1
----
-8232

query II rowsort
SELECT + 16 * + 0 * + - 60, - COALESCE ( ( + 11 ), 31 ) AS col2
----
0
-11

query II rowsort
SELECT DISTINCT + - 60 AS col1, - 51
----
-60
-51

query I rowsort
SELECT + + ( + 60 ) + + 92
----
152

query I rowsort
SELECT ALL + 39 * - - 30 AS col2
----
1170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7340
SELECT CAST( + 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-7340
SELECT CAST ( + 15 AS INTEGER )
----
15

query I rowsort
SELECT DISTINCT + - 83 * 96 + + 21 + + - 73 AS col1
----
-8020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7342
SELECT ALL - + 17 * 77 * - 6 + 84 * - COUNT( DISTINCT 28 ) + - - MAX( CASE - 77 WHEN + 63 THEN CAST( NULL AS SIGNED ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL - + 17 * 77 * - 6 + 84 * - COUNT ( DISTINCT 28 ) + - - MAX ( CASE - 77 WHEN + 63 THEN CAST ( NULL AS INTEGER ) END ) AS col1
----
NULL

query I rowsort
SELECT + + 90 * 68 col0
----
6120

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7344
SELECT - CAST( NULL AS DECIMAL ) + + 0 * + ( CAST( NULL AS SIGNED ) ) * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7344
SELECT - CAST ( NULL AS REAL ) + + 0 * + ( CAST ( NULL AS INTEGER ) ) * - 65
----
NULL

query I rowsort
SELECT 27 + 63 + 36 + + - 26 AS col2
----
100

query II rowsort
SELECT ALL 56 AS col0, 69 * + 80 AS col1
----
56
5520

onlyif mysql # aggregate syntax: 
query II rowsort label-7347
SELECT 41 AS col2, 11 + COALESCE ( 59, MIN( 21 ) ) * + + 33 AS col0
----
41
1958

skipif mysql # not compatible
query II rowsort label-7347
SELECT 41 AS col2, 11 + COALESCE ( 59, MIN ( 21 ) ) * + + 33 AS col0
----
41
1958

query I rowsort
SELECT DISTINCT + 87 + + 86
----
173

query I rowsort
SELECT - 2 * 25 AS col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7350
SELECT ALL + 13 DIV - 93 + - - 60 + 12
----
72

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + 13 / - 93 + - - 60 + 12
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7351
SELECT ALL - + 25 + + CASE + 12 WHEN - + 82 + COUNT( * ) THEN NULL WHEN - NULLIF ( - CASE + 95 WHEN + - 24 THEN NULL WHEN + + CASE - 0 WHEN - MIN( - 24 ) + - - 79 + - + 37 * - 41 THEN + 51 ELSE - ( COUNT( * ) ) END THEN + 15 DIV + - 36 ELSE - 87 END, 56 ) THEN NULL ELSE - - NULLIF ( COUNT( * ), + + ( COUNT( * ) ) + 14 ) END DIV + ( 28 )
----
-25

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL - + 25 + + CASE + 12 WHEN - + 82 + COUNT ( * ) THEN NULL WHEN - NULLIF ( - CASE + 95 WHEN + - 24 THEN NULL WHEN + + CASE - 0 WHEN - MIN ( - 24 ) + - - 79 + - + 37 * - 41 THEN + 51 ELSE - ( COUNT ( * ) ) END THEN + 15 / + - 36 ELSE - 87 END, 56 ) THEN NULL ELSE - - NULLIF ( COUNT ( * ), + + ( COUNT ( * ) ) + 14 ) END / + ( 28 )
----
-25

query I rowsort
SELECT DISTINCT 96 col1
----
96

query I rowsort
SELECT 53 + 53
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7354
SELECT ALL + 63 * + COUNT( * ) * + 56, 18 + CAST( NULL AS SIGNED ) / COUNT( DISTINCT 17 ) + - 48 + + - 86 AS col1
----
3528
NULL

skipif mysql # not compatible
query II rowsort label-7354
SELECT ALL + 63 * + COUNT ( * ) * + 56, 18 + CAST ( NULL AS INTEGER ) / COUNT ( DISTINCT 17 ) + - 48 + + - 86 AS col1
----
3528
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT + COUNT( - 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7355
SELECT + COUNT ( - 77 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7356
SELECT ALL 7 DIV + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL 7 / + COUNT ( * )
----
7

query I rowsort
SELECT ALL + 94 - - - 83 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7358
SELECT 17 + CAST( NULL AS SIGNED ) + 22 * + SUM( 53 ) * + + 61 + ( - + 39 ) + + + 46 * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7358
SELECT 17 + CAST ( NULL AS INTEGER ) + 22 * + SUM ( 53 ) * + + 61 + ( - + 39 ) + + + 46 * 79
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7359
SELECT 91 DIV 47 * - - 14 * + 58 AS col2, - 93 * + - 60
----
812
5580

skipif mysql # not compatible
query II rowsort label-7359
SELECT 91 / 47 * - - 14 * + 58 AS col2, - 93 * + - 60
----
812
5580

query I rowsort
SELECT ALL - 73 * 15
----
-1095

onlyif mysql # DIV for integer division: 
query I rowsort label-7361
SELECT 62 + 30 + + - 86 DIV - 93 + + + 62
----
154

skipif mysql # not compatible
query I rowsort label-7361
SELECT 62 + 30 + + - 86 / - 93 + + + 62
----
154

query II rowsort
SELECT ALL + 10 * 19 col0, - 4 + - 71
----
190
-75

query I rowsort
SELECT 90 * - - 94 AS col2
----
8460

query I rowsort
SELECT ALL + 10 * - 16 col2
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7365
SELECT DISTINCT - CAST( - 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT - CAST ( - 89 AS INTEGER )
----
89

query I rowsort
SELECT DISTINCT - ( ( + 5 ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT COUNT( * ) + - COUNT( * ) + + + 33 + + + 21
----
54

skipif mysql # not compatible
query I rowsort label-7367
SELECT COUNT ( * ) + - COUNT ( * ) + + + 33 + + + 21
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7368
SELECT ALL + MIN( + - 95 ) DIV + 95
----
-1

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL + MIN ( + - 95 ) / + 95
----
-1

query I rowsort
SELECT 39 * 10 + + - 92
----
298

query I rowsort
SELECT ALL + ( + 60 ) * + NULLIF ( + + ( + CASE 27 WHEN + 7 * + - 35 THEN + 68 * 43 + - 6 * - 56 / - 52 END ), 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT 5 * - CASE - - 77 WHEN - COUNT( * ) THEN + 8 + - SUM( + - 41 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT 5 * - CASE - - 77 WHEN - COUNT ( * ) THEN + 8 + - SUM ( + - 41 ) END
----
NULL

query I rowsort
SELECT DISTINCT 39 + + + 96
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7373
SELECT ALL - COUNT( * ) * + 18 DIV + 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL - COUNT ( * ) * + 18 / + 69 col1
----
0

query I rowsort
SELECT DISTINCT + 32 + + 24 AS col2
----
56

query I rowsort
SELECT ALL - NULLIF ( + + 79, - - 17 )
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7376
SELECT ( + + 38 ) * + 98 * - CAST( NULL AS DECIMAL ) + - NULLIF ( - 1, + 24 * + - 95 ) + - + 72 * - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7376
SELECT ( + + 38 ) * + 98 * - CAST ( NULL AS REAL ) + - NULLIF ( - 1, + 24 * + - 95 ) + - + 72 * - - 85
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7377
SELECT ALL + - ( + - 68 ) + 66 DIV - COUNT( * ) AS col1, COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-7377
SELECT ALL + - ( + - 68 ) + 66 / - COUNT ( * ) AS col1, COUNT ( * )
----
2
1

query I rowsort
SELECT 50 * + 15
----
750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7379
SELECT ALL + CAST( NULL AS SIGNED ) / 1, - ( + 83 ) AS col2
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-7379
SELECT ALL + CAST ( NULL AS INTEGER ) / 1, - ( + 83 ) AS col2
----
NULL
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7380
SELECT - NULLIF ( + + COUNT( * ), - CAST( NULL AS DECIMAL ) * - ( + 47 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7380
SELECT - NULLIF ( + + COUNT ( * ), - CAST ( NULL AS REAL ) * - ( + 47 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7381
SELECT ALL + 58 + COUNT( * ) + 53 + + + 45 AS col2, - ( + 7 ) * + 37 + + + 3 + + 38 - - + 5 * 47
----
157
17

skipif mysql # not compatible
query II rowsort label-7381
SELECT ALL + 58 + COUNT ( * ) + 53 + + + 45 AS col2, - ( + 7 ) * + 37 + + + 3 + + 38 - - + 5 * 47
----
157
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT SUM( 13 )
----
13

skipif mysql # not compatible
query I rowsort label-7382
SELECT SUM ( 13 )
----
13

query I rowsort
SELECT ALL - 84 + - 82 + - 10 AS col0
----
-176

query I rowsort
SELECT + 99 * + - 18
----
-1782

query I rowsort
SELECT DISTINCT - 50 AS col1
----
-50

query I rowsort
SELECT ALL - 9 col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7387
SELECT DISTINCT ( 50 ), + COUNT( * ) AS col0
----
50
1

skipif mysql # not compatible
query II rowsort label-7387
SELECT DISTINCT ( 50 ), + COUNT ( * ) AS col0
----
50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT - COALESCE ( + COUNT( * ), - + 36 + + - 97 + + 81 * - 85 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7388
SELECT - COALESCE ( + COUNT ( * ), - + 36 + + - 97 + + 81 * - 85 ) AS col0
----
-1

query I rowsort
SELECT ALL 96 - + + 89
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7390
SELECT + COUNT( ALL + 56 ) col1, COUNT( * ) * + + 73 DIV 2
----
1
36

skipif mysql # not compatible
query II rowsort label-7390
SELECT + COUNT ( ALL + 56 ) col1, COUNT ( * ) * + + 73 / 2
----
1
36

query I rowsort
SELECT 1 + + - 4 * 19
----
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7392
SELECT 91 DIV + CAST( 37 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-7392
SELECT 91 / + CAST ( 37 AS INTEGER )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7393
SELECT 7 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT 7 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7394
SELECT DISTINCT - SUM( ALL - ( 40 ) ) DIV 62 * - 95 + - 11 + + 45
----
34

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT - SUM ( ALL - ( 40 ) ) / 62 * - 95 + - 11 + + 45
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT 90 + + COUNT( ALL - 24 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7395
SELECT 90 + + COUNT ( ALL - 24 ) AS col1
----
91

query I rowsort
SELECT 97 * - + 75 AS col2
----
-7275

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT ALL 83 DIV - - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL 83 / - - 97 AS col1
----
0

query I rowsort
SELECT DISTINCT - 24 * + + 95 AS col2
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL + CASE - + 18 WHEN 66 + + - 8 THEN + 77 * - 15 / - COUNT( * ) * 71 + - 57 WHEN 93 * + - 20 + - - COUNT( * ) + - 44 - + + 14 * + 28 + - COUNT( * ) THEN NULL ELSE NULL END * + 55 * + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL + CASE - + 18 WHEN 66 + + - 8 THEN + 77 * - 15 / - COUNT ( * ) * 71 + - 57 WHEN 93 * + - 20 + - - COUNT ( * ) + - 44 - + + 14 * + 28 + - COUNT ( * ) THEN NULL ELSE NULL END * + 55 * + 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7400
SELECT DISTINCT 77, MIN( ALL 57 ) * 18 + - - 27 + MAX( 15 ) col1
----
77
1068

skipif mysql # not compatible
query II rowsort label-7400
SELECT DISTINCT 77, MIN ( ALL 57 ) * 18 + - - 27 + MAX ( 15 ) col1
----
77
1068

query I rowsort
SELECT 86 * 38
----
3268

query I rowsort
SELECT 22 * - ( + + 91 ) AS col0
----
-2002

query I rowsort
SELECT ALL + 79 * 53 AS col0
----
4187

query I rowsort
SELECT ALL - 61 * + - 35 + + - 3 AS col2
----
2132

query I rowsort
SELECT 71 * + 58 - + 15 AS col0
----
4103

onlyif mysql # aggregate syntax: 
query II rowsort label-7406
SELECT COUNT( * ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7406
SELECT COUNT ( * ) AS col0, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL + ( + - 17 ) * + ( 44 ) + - 98 - + COUNT( * ) + 6
----
-841

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + ( + - 17 ) * + ( 44 ) + - 98 - + COUNT ( * ) + 6
----
-841

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT 21 - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-7408
SELECT 21 - COUNT ( * )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7409
SELECT DISTINCT - CAST( + COUNT( + 2 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT - CAST ( + COUNT ( + 2 ) AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7410
SELECT ALL + 61 * + 10 / 38 + CAST( NULL AS SIGNED ) * - 70 col2, 74 + - 69 AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-7410
SELECT ALL + 61 * + 10 / 38 + CAST ( NULL AS INTEGER ) * - 70 col2, 74 + - 69 AS col2
----
NULL
5

query I rowsort
SELECT 40 * - 73
----
-2920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7412
SELECT ALL 12 * 57 + SUM( ALL 58 ) * - + ( - 56 ) + - + 49 DIV 48
----
3931

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL 12 * 57 + SUM ( ALL 58 ) * - + ( - 56 ) + - + 49 / 48
----
3931

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT + + COUNT( + ( - 20 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7413
SELECT + + COUNT ( + ( - 20 ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT - + 48 + + CASE - 3 WHEN - + 24 * + - 86 / COALESCE ( - - NULLIF ( - COUNT( * ), COUNT( * ) ), - + 75 ) THEN - - 23 + - 44 ELSE 36 * 81 END AS col2
----
2868

skipif mysql # not compatible
query I rowsort label-7414
SELECT - + 48 + + CASE - 3 WHEN - + 24 * + - 86 / COALESCE ( - - NULLIF ( - COUNT ( * ), COUNT ( * ) ), - + 75 ) THEN - - 23 + - 44 ELSE 36 * 81 END AS col2
----
2868

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7415
SELECT 73 * 48 * + + 68 / CAST( + + CASE + 60 WHEN - - COUNT( * ) THEN 96 + + + 90 + - 96 - + + COALESCE ( + 90, + - 21 ) + + COUNT( + - 26 ) WHEN - 98 * - 40 THEN - 59 ELSE NULL END AS DECIMAL ) / + 76 - - CASE + + ( 30 ) WHEN + 34 THEN - AVG ( - + 8 ) WHEN + 67 + ( + 20 ) / + - 16 THEN NULL WHEN - - 7 THEN NULL END + 23 * 39 * - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT 73 * 48 * + + 68 / CAST ( + + CASE + 60 WHEN - - COUNT ( * ) THEN 96 + + + 90 + - 96 - + + COALESCE ( + 90, + - 21 ) + + COUNT ( + - 26 ) WHEN - 98 * - 40 THEN - 59 ELSE NULL END AS REAL ) / + 76 - - CASE + + ( 30 ) WHEN + 34 THEN - AVG ( - + 8 ) WHEN + 67 + ( + 20 ) / + - 16 THEN NULL WHEN - - 7 THEN NULL END + 23 * 39 * - - 23
----
NULL

query I rowsort
SELECT - + CASE + 77 WHEN + - 32 THEN - ( + + 99 ) WHEN - 0 THEN NULL END * - 80 * - 79 * - + 43 + + + 84 AS col1
----
NULL

query I rowsort
SELECT + ( + 16 )
----
16

query I rowsort
SELECT ALL + 87 + 1 AS col2
----
88

query I rowsort
SELECT - + 22 * 86 + - 95
----
-1987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7420
SELECT ALL - + 54 * + COUNT( * ) * + CAST( NULL AS SIGNED ) / + - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL - + 54 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) / + - 30 AS col1
----
NULL

query I rowsort
SELECT ALL + - 23 AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7422
SELECT DISTINCT - 85 * - 82 - 10 DIV - 1 + + CAST( 45 AS SIGNED ) + NULLIF ( + 43, + 25 * - CAST( NULL AS SIGNED ) + 15 ) AS col1
----
7068

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT - 85 * - 82 - 10 / - 1 + + CAST ( 45 AS INTEGER ) + NULLIF ( + 43, + 25 * - CAST ( NULL AS INTEGER ) + 15 ) AS col1
----
7068

query I rowsort
SELECT ALL + 27 - - 17
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT + MAX( - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7424
SELECT + MAX ( - 49 ) AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7425
SELECT - COUNT( * ) + + - 37 * - - 99 AS col2, - CAST( NULL AS SIGNED ) + + 18 AS col1
----
-3664
NULL

skipif mysql # not compatible
query II rowsort label-7425
SELECT - COUNT ( * ) + + - 37 * - - 99 AS col2, - CAST ( NULL AS INTEGER ) + + 18 AS col1
----
-3664
NULL

query I rowsort
SELECT ALL 50 - - - 81
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7427
SELECT ALL NULLIF ( + + ( - - 29 ), - + CAST( NULL AS SIGNED ) + + 64 + - 39 + + - CAST( NULL AS SIGNED ) * + 26 )
----
29

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL NULLIF ( + + ( - - 29 ), - + CAST ( NULL AS INTEGER ) + + 64 + - 39 + + - CAST ( NULL AS INTEGER ) * + 26 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT - SUM( DISTINCT + 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7428
SELECT - SUM ( DISTINCT + 60 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT + 49 * + 72 + + - COUNT( * ) - COUNT( * )
----
3526

skipif mysql # not compatible
query I rowsort label-7429
SELECT + 49 * + 72 + + - COUNT ( * ) - COUNT ( * )
----
3526

query I rowsort
SELECT - ( 96 )
----
-96

query I rowsort
SELECT + - 91 + - 50
----
-141

query I rowsort
SELECT + + 17 + - + 13
----
4

query I rowsort
SELECT ALL + ( + 14 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT - CAST( NULL AS SIGNED ) * + - 88 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT - CAST ( NULL AS INTEGER ) * + - 88 + 30
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 47, - + 0 - + ( ( 55 ) ) ) AS col0
----
-47

query I rowsort
SELECT 57 col2
----
57

query I rowsort
SELECT ALL ( - 95 ) col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL 42 * - - SUM( - 58 ) * - SUM( - 65 )
----
-158340

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL 42 * - - SUM ( - 58 ) * - SUM ( - 65 )
----
-158340

query I rowsort
SELECT + 53 * 44 AS col2
----
2332

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT ALL COUNT( + - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL COUNT ( + - 57 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7441
SELECT + 47 - - 49 * + - COALESCE ( + - 74, - - CASE - COUNT( - 88 ) WHEN 91 THEN NULL WHEN CAST( - 52 AS SIGNED ) THEN NULL ELSE + 15 END )
----
3673

skipif mysql # not compatible
query I rowsort label-7441
SELECT + 47 - - 49 * + - COALESCE ( + - 74, - - CASE - COUNT ( - 88 ) WHEN 91 THEN NULL WHEN CAST ( - 52 AS INTEGER ) THEN NULL ELSE + 15 END )
----
3673

query I rowsort
SELECT + 17 * + 99 AS col2
----
1683

query I rowsort
SELECT + 23 * - 54 * 12 AS col2
----
-14904

query I rowsort
SELECT ALL 29 + + 55 AS col2
----
84

query II rowsort
SELECT 65 AS col1, 35
----
65
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT ALL ( + 93 ) + + MIN( + 57 ) + + NULLIF ( + - ( 93 ), + 81 ) * - 61 AS col1
----
5823

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL ( + 93 ) + + MIN ( + 57 ) + + NULLIF ( + - ( 93 ), + 81 ) * - 61 AS col1
----
5823

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL MAX( ALL - 37 ) + - 16 + 83
----
30

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL MAX ( ALL - 37 ) + - 16 + 83
----
30

query I rowsort
SELECT - NULLIF ( 10, - 41 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT DISTINCT COALESCE ( 68, - COUNT( * ), + 69 ) + ( ( + 9 ) )
----
77

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT COALESCE ( 68, - COUNT ( * ), + 69 ) + ( ( + 9 ) )
----
77

query I rowsort
SELECT + 46 - - 11 AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7451
SELECT ALL + CASE - 24 WHEN 21 - + 16 THEN - 4 * MAX( DISTINCT 85 ) * + 65 * + - 81 / - SUM( ALL + - 77 ) / 72 + + 7 / + 78 / 54 + - - NULLIF ( - - 14, CAST( NULL AS SIGNED ) + CAST( - 57 AS SIGNED ) ) * COUNT( * ) + - 16 * + 45 ELSE 41 END AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL + CASE - 24 WHEN 21 - + 16 THEN - 4 * MAX ( DISTINCT 85 ) * + 65 * + - 81 / - SUM ( ALL + - 77 ) / 72 + + 7 / + 78 / 54 + - - NULLIF ( - - 14, CAST ( NULL AS INTEGER ) + CAST ( - 57 AS INTEGER ) ) * COUNT ( * ) + - 16 * + 45 ELSE 41 END AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT - 43 DIV + 13 + + 22 + + 81 + - 45
----
55

skipif mysql # not compatible
query I rowsort label-7452
SELECT - 43 / + 13 + + 22 + + 81 + - 45
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7453
SELECT ALL + COUNT( * ) DIV + 28 + COALESCE ( NULLIF ( + 51, 82 + + COUNT( * ) ), + 89 DIV + 3 + + 76 * + MAX( 98 ) * 37, + - CASE - 64 WHEN + - MIN( ALL - 4 ) THEN NULL ELSE 37 END, - - 6 * - 54 + 29 * - - 14 DIV - 98 * - ( 55 ) * + 80 ) * CAST( + - 97 AS SIGNED ) AS col1
----
-4947

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL + COUNT ( * ) / + 28 + COALESCE ( NULLIF ( + 51, 82 + + COUNT ( * ) ), + 89 / + 3 + + 76 * + MAX ( 98 ) * 37, + - CASE - 64 WHEN + - MIN ( ALL - 4 ) THEN NULL ELSE 37 END, - - 6 * - 54 + 29 * - - 14 / - 98 * - ( 55 ) * + 80 ) * CAST ( + - 97 AS INTEGER ) AS col1
----
-4947

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7454
SELECT ALL COUNT( * ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL COUNT ( * ) / - 82
----
0

query I rowsort
SELECT ( + 4 ) AS col1
----
4

query I rowsort
SELECT - 57 + - + 97 * 13 AS col2
----
-1318

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT DISTINCT CASE + 88 WHEN - + 64 THEN 29 WHEN + COUNT( + - 63 ) THEN NULL ELSE NULL END * 32 - + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT CASE + 88 WHEN - + 64 THEN 29 WHEN + COUNT ( + - 63 ) THEN NULL ELSE NULL END * 32 - + 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + 27 * + MIN( + 88 )
----
2376

skipif mysql # not compatible
query I rowsort label-7458
SELECT + 27 * + MIN ( + 88 )
----
2376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7459
SELECT + ( + 57 ) * - 51 + + COUNT( * ) DIV 31 * + 55
----
-2907

skipif mysql # not compatible
query I rowsort label-7459
SELECT + ( + 57 ) * - 51 + + COUNT ( * ) / 31 * + 55
----
-2907

onlyif mysql # aggregate syntax: 
query II rowsort label-7460
SELECT 86, - COALESCE ( - MAX( ALL + + 40 ), - ( - 53 ) + - SUM( DISTINCT - 20 ) * 4 * 30 ) + + 31 + COUNT( * ) * - COUNT( * ) AS col0
----
86
70

skipif mysql # not compatible
query II rowsort label-7460
SELECT 86, - COALESCE ( - MAX ( ALL + + 40 ), - ( - 53 ) + - SUM ( DISTINCT - 20 ) * 4 * 30 ) + + 31 + COUNT ( * ) * - COUNT ( * ) AS col0
----
86
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7461
SELECT + 89 * + + NULLIF ( + - COUNT( * ), ( + COUNT( * ) ) ) * + 98 + 90 DIV COUNT( * )
----
-8632

skipif mysql # not compatible
query I rowsort label-7461
SELECT + 89 * + + NULLIF ( + - COUNT ( * ), ( + COUNT ( * ) ) ) * + 98 + 90 / COUNT ( * )
----
-8632

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7462
SELECT ALL + CAST( NULL AS DECIMAL ) * + - 26 - 70 * + 62 + CASE WHEN NULL NOT IN ( 58 ) THEN ( - 43 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL + CAST ( NULL AS REAL ) * + - 26 - 70 * + 62 + CASE WHEN NULL NOT IN ( 58 ) THEN ( - 43 ) END col2
----
NULL

query I rowsort
SELECT ( 26 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT - NULLIF ( + CAST( - 34 AS SIGNED ), - + 77 ) + 95 + 48 + - 91 - - ( + - 45 )
----
41

skipif mysql # not compatible
query I rowsort label-7464
SELECT - NULLIF ( + CAST ( - 34 AS INTEGER ), - + 77 ) + 95 + 48 + - 91 - - ( + - 45 )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7465
SELECT ALL 93 * + 85 + MIN( 17 ) - + 79 DIV MIN( ALL + 77 ) - + 32 - + 49
----
7840

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL 93 * + 85 + MIN ( 17 ) - + 79 / MIN ( ALL + 77 ) - + 32 - + 49
----
7840

query I rowsort
SELECT + ( - 93 ) * + + 17 * - + 27 col0
----
42687

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7467
SELECT + - 82 AS col0, + 92 + - 43 * - - COUNT( * ) DIV - + 45 + + 22
----
-82
114

skipif mysql # not compatible
query II rowsort label-7467
SELECT + - 82 AS col0, + 92 + - 43 * - - COUNT ( * ) / - + 45 + + 22
----
-82
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT DISTINCT - 89 * - COALESCE ( + 45, + CAST( NULL AS SIGNED ) + + 11 ) AS col1
----
4005

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT - 89 * - COALESCE ( + 45, + CAST ( NULL AS INTEGER ) + + 11 ) AS col1
----
4005

query I rowsort
SELECT ALL + - 12 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT + + COUNT( ALL + 63 )
----
1

skipif mysql # not compatible
query I rowsort label-7470
SELECT + + COUNT ( ALL + 63 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7471
SELECT - - CAST( NULL AS DECIMAL ) * - ( + 80 ) + - + 53 * - 58 * + - 74 * - + 96 / - + COALESCE ( - 51, 62 + + 28, - - 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT - - CAST ( NULL AS REAL ) * - ( + 80 ) + - + 53 * - 58 * + - 74 * - + 96 / - + COALESCE ( - 51, 62 + + 28, - - 22 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7472
SELECT - COUNT( * ), - MAX( - 99 ) DIV NULLIF ( - 17, + 55 * 59 + ( 80 ) + - 57 + NULLIF ( - 40, + - 53 + ( - 5 ) * + 91 - 96 ) * - NULLIF ( + - 2, + + COUNT( * ) ) + 71 * + 22 ) + - - COUNT( * ) AS col1
----
-1
-4

skipif mysql # not compatible
query II rowsort label-7472
SELECT - COUNT ( * ), - MAX ( - 99 ) / NULLIF ( - 17, + 55 * 59 + ( 80 ) + - 57 + NULLIF ( - 40, + - 53 + ( - 5 ) * + 91 - 96 ) * - NULLIF ( + - 2, + + COUNT ( * ) ) + 71 * + 22 ) + - - COUNT ( * ) AS col1
----
-1
-4

query I rowsort
SELECT - ( - + 72 ) AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7474
SELECT ALL + CAST( 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + CAST ( 29 AS INTEGER )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT + CAST( 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7475
SELECT + CAST ( 4 AS INTEGER ) AS col1
----
4

query I rowsort
SELECT + + ( - 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ALL - 40 * COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL - 40 * COUNT ( * )
----
-40

query II rowsort
SELECT + 43 AS col0, 97 * - - 46
----
43
4462

query I rowsort
SELECT ALL + - 1 * 19 + 74 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT DISTINCT - 32 * 76 * + COUNT( 46 ) + - + 60 - - 40
----
-2452

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT - 32 * 76 * + COUNT ( 46 ) + - + 60 - - 40
----
-2452

onlyif mysql # aggregate syntax: 
query II rowsort label-7481
SELECT - 36 * - 33, - COUNT( * ) AS col2
----
1188
-1

skipif mysql # not compatible
query II rowsort label-7481
SELECT - 36 * - 33, - COUNT ( * ) AS col2
----
1188
-1

query I rowsort
SELECT ALL + 51 * + + 49
----
2499

query I rowsort
SELECT DISTINCT - 97 * - 68
----
6596

query I rowsort
SELECT - 24 + + - 51 * + ( 94 )
----
-4818

query I rowsort
SELECT + 6 - 2 * + + 87
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7486
SELECT - ( - + 88 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT - ( - + 88 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 7 + - 46 AS col2
----
-39

query I rowsort
SELECT + 0 * - 49 AS col0
----
0

query I rowsort
SELECT ALL ( 12 ) + 10 + 95
----
117

query I rowsort
SELECT ALL ( - + 90 ) + - 63 AS col0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7491
SELECT DISTINCT + COALESCE ( - - 56, + CAST( NULL AS SIGNED ) + + 37 + 72 ) + 2
----
58

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT + COALESCE ( - - 56, + CAST ( NULL AS INTEGER ) + + 37 + 72 ) + 2
----
58

query I rowsort
SELECT DISTINCT 75 + 69
----
144

query I rowsort
SELECT DISTINCT - ( 92 ) * + - 43 * - 50 AS col1
----
-197800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7494
SELECT ALL 52 + + + 9 - + + MIN( ALL 47 ) * + CAST( NULL AS SIGNED ) + 93 - - 96 * + + 42 + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL 52 + + + 9 - + + MIN ( ALL 47 ) * + CAST ( NULL AS INTEGER ) + 93 - - 96 * + + 42 + + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT 15 * + 50 * + MIN( ALL 54 ) AS col2
----
40500

skipif mysql # not compatible
query I rowsort label-7495
SELECT 15 * + 50 * + MIN ( ALL 54 ) AS col2
----
40500

onlyif mysql # aggregate syntax: 
query II rowsort label-7496
SELECT ALL COUNT( * ) * COUNT( * ) AS col1, 71
----
1
71

skipif mysql # not compatible
query II rowsort label-7496
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1, 71
----
1
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT ALL MAX( + 43 ) - 83 - - COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL MAX ( + 43 ) - 83 - - COUNT ( * ) AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7498
SELECT ALL - - ( + - CAST( - - NULLIF ( - 42, - 87 + - 58 * ( + - 26 ) ) AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL - - ( + - CAST ( - - NULLIF ( - 42, - 87 + - 58 * ( + - 26 ) ) AS INTEGER ) )
----
42

query I rowsort
SELECT + - 48 AS col0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7500
SELECT - 45 DIV 11 - - 37
----
33

skipif mysql # not compatible
query I rowsort label-7500
SELECT - 45 / 11 - - 37
----
33

query I rowsort
SELECT DISTINCT - + 78
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7502
SELECT + CAST( + 82 AS SIGNED ) - - + MIN( + + 67 ) - 33 + + 19
----
135

skipif mysql # not compatible
query I rowsort label-7502
SELECT + CAST ( + 82 AS INTEGER ) - - + MIN ( + + 67 ) - 33 + + 19
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT 58 * + - COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-7503
SELECT 58 * + - COUNT ( * ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT DISTINCT 44 DIV - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT 44 / - 50 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT 4 * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-7505
SELECT 4 * + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT + 93 * COUNT( * ) - 3 * - 88 AS col0
----
357

skipif mysql # not compatible
query I rowsort label-7506
SELECT + 93 * COUNT ( * ) - 3 * - 88 AS col0
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL + COUNT( * ) * - - COUNT( DISTINCT - 63 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL + COUNT ( * ) * - - COUNT ( DISTINCT - 63 ) AS col1
----
1

query I rowsort
SELECT 97 - - - 25
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7509
SELECT ALL 85 * - 87 * - 81 + - 36 + + COUNT( * ) * - - 81 * + - COUNT( * ) AS col2, 90 * 82 * + 81
----
598878
597780

skipif mysql # not compatible
query II rowsort label-7509
SELECT ALL 85 * - 87 * - 81 + - 36 + + COUNT ( * ) * - - 81 * + - COUNT ( * ) AS col2, 90 * 82 * + 81
----
598878
597780

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT 84 * - COALESCE ( - ( + 10 ), + 40, + + SUM( + 65 ) * + + 42 ) / + - 87 + - CASE COUNT( * ) WHEN - 37 THEN 91 * - + COUNT( * ) + + 86 * + AVG ( DISTINCT + 8 ) * + COALESCE ( + COUNT( * ), - 53 * - 33 ) END - + 7 + 35 * + 29 * ( - 9 ) * - 85 + + MAX( ALL - 82 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT 84 * - COALESCE ( - ( + 10 ), + 40, + + SUM ( + 65 ) * + + 42 ) / + - 87 + - CASE COUNT ( * ) WHEN - 37 THEN 91 * - + COUNT ( * ) + + 86 * + AVG ( DISTINCT + 8 ) * + COALESCE ( + COUNT ( * ), - 53 * - 33 ) END - + 7 + 35 * + 29 * ( - 9 ) * - 85 + + MAX ( ALL - 82 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT COUNT( * ) * - ( 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-7511
SELECT COUNT ( * ) * - ( 42 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7512
SELECT - COUNT( * ) * + + 25 + CASE + 21 WHEN + CAST( 45 AS SIGNED ) THEN 5 END * + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT - COUNT ( * ) * + + 25 + CASE + 21 WHEN + CAST ( 45 AS INTEGER ) THEN 5 END * + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT COUNT( DISTINCT + - 11 ) + - 77
----
-76

skipif mysql # not compatible
query I rowsort label-7513
SELECT COUNT ( DISTINCT + - 11 ) + - 77
----
-76

query I rowsort
SELECT ALL + 84 * - 49
----
-4116

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7515
SELECT CAST( NULL AS DECIMAL ) * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT CAST ( NULL AS REAL ) * - 7
----
NULL

query I rowsort
SELECT + 95 + - + 52 col0
----
43

query I rowsort
SELECT DISTINCT - - 69 AS col1
----
69

query II rowsort
SELECT - 57 AS col2, COALESCE ( ( - + 68 ), + 5 ) + 8 col0
----
-57
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-7519
SELECT + 36 * + COUNT( * ) + 2 AS col1, + 22
----
38
22

skipif mysql # not compatible
query II rowsort label-7519
SELECT + 36 * + COUNT ( * ) + 2 AS col1, + 22
----
38
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT DISTINCT + COUNT( * ) + + - 89 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT + COUNT ( * ) + + - 89 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ( COUNT( * ) ) * + - ( - - COUNT( + 84 ) ) * - 24 + 74 * - 49
----
-3602

skipif mysql # not compatible
query I rowsort label-7521
SELECT ( COUNT ( * ) ) * + - ( - - COUNT ( + 84 ) ) * - 24 + 74 * - 49
----
-3602

query I rowsort
SELECT 35 + - 41 * 4 AS col0
----
-129

query I rowsort
SELECT ALL + ( - 83 ) + + - 81 col1
----
-164

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7524
SELECT 44 + + 47 + CAST( - 72 AS DECIMAL ) * - AVG ( ALL 62 ) / COUNT( * ) * + CASE 30 WHEN + 43 THEN + NULLIF ( + - CASE 14 WHEN 9 THEN - COUNT( * ) * + 15 - + 98 + + 64 - - COUNT( * ) ELSE - + 16 - 73 * - + COUNT( * ) END, + 80 ) * + - 79 + - 56 - 68 * 51 * + 68 END + 37 - + 49 + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT 44 + + 47 + CAST ( - 72 AS REAL ) * - AVG ( ALL 62 ) / COUNT ( * ) * + CASE 30 WHEN + 43 THEN + NULLIF ( + - CASE 14 WHEN 9 THEN - COUNT ( * ) * + 15 - + 98 + + 64 - - COUNT ( * ) ELSE - + 16 - 73 * - + COUNT ( * ) END, + 80 ) * + - 79 + - 56 - 68 * 51 * + 68 END + 37 - + 49 + - 49
----
NULL

query I rowsort
SELECT 22 + + - 66
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL + COUNT( * ) * - + 17 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL + COUNT ( * ) * - + 17 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-7527
SELECT DISTINCT 31 AS col1, 18 * 65 + - + MAX( ALL + 96 ) + 31 + + 4
----
31
1109

skipif mysql # not compatible
query II rowsort label-7527
SELECT DISTINCT 31 AS col1, 18 * 65 + - + MAX ( ALL + 96 ) + 31 + + 4
----
31
1109

query II rowsort
SELECT DISTINCT + ( + 94 ) * + 31 + 88 AS col0, 32 * + 95 * + + 38 * - + 95 AS col1
----
3002
-10974400

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL - COUNT( * ) * 41
----
-41

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL - COUNT ( * ) * 41
----
-41

query I rowsort
SELECT 11 + + 45 col1
----
56

query I rowsort
SELECT 21 + 25 + + 91 + 77
----
214

query I rowsort
SELECT 66 + - - 5 + + 60 AS col0
----
131

query I rowsort
SELECT 40 * - - 20
----
800

query I rowsort
SELECT 76 * + - 88
----
-6688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT CAST( NULL AS SIGNED ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT CAST ( NULL AS INTEGER ) + - 50
----
NULL

query I rowsort
SELECT + 27 * + 70 AS col0
----
1890

query I rowsort
SELECT + 36 + + - ( - 81 ) AS col1
----
117

query I rowsort
SELECT ALL - + 11
----
-11

query II rowsort
SELECT ALL - 83 AS col0, 12 + + 64 * + 38
----
-83
2444

query I rowsort
SELECT 42 * - 94 AS col2
----
-3948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7541
SELECT SUM( - 74 ) + 36 DIV + 63 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-7541
SELECT SUM ( - 74 ) + 36 / + 63 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT - 6 * - 68 * + SUM( - 52 ) AS col0
----
-21216

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT - 6 * - 68 * + SUM ( - 52 ) AS col0
----
-21216

onlyif mysql # aggregate syntax: 
query II rowsort label-7543
SELECT DISTINCT - - 74, - MAX( 82 ) AS col0
----
74
-82

skipif mysql # not compatible
query II rowsort label-7543
SELECT DISTINCT - - 74, - MAX ( 82 ) AS col0
----
74
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT 11 + - CASE + 16 WHEN AVG ( - + 9 ) * + - SUM( + + 91 ) THEN - 1 + + 89 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT 11 + - CASE + 16 WHEN AVG ( - + 9 ) * + - SUM ( + + 91 ) THEN - 1 + + 89 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 46 * - CASE + 65 WHEN + 35 THEN - - 91 + - 76 WHEN - 76 THEN - - 96 * - 42 + + - 61 END + + 83 col2, - 59 AS col0
----
NULL
-59

query I rowsort
SELECT + 66 * 12 * + + 81 AS col2
----
64152

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7547
SELECT DISTINCT - + 40 AS col2, - 62 * + MAX( + 83 ) + + + 38 DIV 29 - 35
----
-40
-5180

skipif mysql # not compatible
query II rowsort label-7547
SELECT DISTINCT - + 40 AS col2, - 62 * + MAX ( + 83 ) + + + 38 / 29 - 35
----
-40
-5180

query I rowsort
SELECT DISTINCT + 91 + - 65
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL ( 0 ) + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL ( 0 ) + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT DISTINCT + 74 * + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT + 74 * + COUNT ( * ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT ALL 63 + - 78 * + COUNT( DISTINCT - 10 ) * + 74
----
-5709

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL 63 + - 78 * + COUNT ( DISTINCT - 10 ) * + 74
----
-5709

onlyif mysql # DIV for integer division: 
query I rowsort label-7552
SELECT 99 DIV + ( + 11 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7552
SELECT 99 / + ( + 11 ) AS col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT 35 DIV - 15
----
-2

skipif mysql # not compatible
query I rowsort label-7553
SELECT 35 / - 15
----
-2

query I rowsort
SELECT 6 * + + 39
----
234

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT ALL SUM( DISTINCT 63 ) + + 36 * + 92 AS col2, - COUNT( * ) * 93 - - 33 * MIN( DISTINCT + 97 ) + - 80
----
3375
3028

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL SUM ( DISTINCT 63 ) + + 36 * + 92 AS col2, - COUNT ( * ) * 93 - - 33 * MIN ( DISTINCT + 97 ) + - 80
----
3375
3028

query I rowsort
SELECT DISTINCT 18 + + 17 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL - SUM( DISTINCT + 50 ) + - 34 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL - SUM ( DISTINCT + 50 ) + - 34 AS col0
----
-84

query I rowsort
SELECT 25 - + 75 + COALESCE ( - 80, + + ( + - 14 ), + ( + 47 ) ) * + 62
----
-5010

query I rowsort
SELECT ALL 5 - + 81 - + 44 AS col1
----
-120

query I rowsort
SELECT - ( + CASE - 1 WHEN - 10 THEN 37 * - 80 + + 97 END ) + - 30 AS col2
----
NULL

query I rowsort
SELECT - - 65 + ( - + 70 )
----
-5

query I rowsort
SELECT ALL 31 col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7563
SELECT ALL + SUM( - 90 ), 97 AS col0
----
-90
97

skipif mysql # not compatible
query II rowsort label-7563
SELECT ALL + SUM ( - 90 ), 97 AS col0
----
-90
97

query I rowsort
SELECT ALL 93 col0
----
93

query I rowsort
SELECT - 48 * - + 36 AS col2
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT ALL - 69 * - MIN( ALL + + 31 ) * - ( - + 78 )
----
166842

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL - 69 * - MIN ( ALL + + 31 ) * - ( - + 78 )
----
166842

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT - + 88 + - 55 + + 52 + 43 + - 91 * - ( - - CASE COUNT( * ) WHEN + 13 + - 6 THEN + COUNT( * ) END ) * + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT - + 88 + - 55 + + 52 + 43 + - 91 * - ( - - CASE COUNT ( * ) WHEN + 13 + - 6 THEN + COUNT ( * ) END ) * + + 69
----
NULL

query I rowsort
SELECT - 88 col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - - COUNT( * ) * COUNT( ( + 67 ) ) - + 61 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7569
SELECT - - COUNT ( * ) * COUNT ( ( + 67 ) ) - + 61 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - + 39 * - COUNT( * ) + - 91
----
-52

skipif mysql # not compatible
query I rowsort label-7570
SELECT - + 39 * - COUNT ( * ) + - 91
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7571
SELECT - COALESCE ( - MAX( DISTINCT + 95 ), - 35 DIV 76 * - 81 )
----
95

skipif mysql # not compatible
query I rowsort label-7571
SELECT - COALESCE ( - MAX ( DISTINCT + 95 ), - 35 / 76 * - 81 )
----
95

query I rowsort
SELECT - 50 + + 30
----
-20

query I rowsort
SELECT ALL + + ( - 92 ) AS col1
----
-92

query I rowsort
SELECT DISTINCT - 40 * 70 + + - 74
----
-2874

query I rowsort
SELECT - + 87 + - 41
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7576
SELECT ALL - - 14 * + COUNT( * ) AS col0, 60 DIV - + 83 * + 90
----
14
0

skipif mysql # not compatible
query II rowsort label-7576
SELECT ALL - - 14 * + COUNT ( * ) AS col0, 60 / - + 83 * + 90
----
14
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 65 * + 16 + 52
----
1092

onlyif mysql # DIV for integer division: 
query I rowsort label-7579
SELECT + 83 - + 26 DIV ( + 80 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7579
SELECT + 83 - + 26 / ( + 80 ) AS col0
----
83

query I rowsort
SELECT CASE + 99 WHEN 31 THEN - 81 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 57 * 21 + - + 62
----
1135

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL - COUNT( * ) * 88
----
-88

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL - COUNT ( * ) * 88
----
-88

query I rowsort
SELECT + 47 + 90
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT SUM( + - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-7584
SELECT SUM ( + - 83 )
----
-83

query I rowsort
SELECT DISTINCT + ( + - 92 )
----
-92

query I rowsort
SELECT ALL 35 * - 63
----
-2205

onlyif mysql # aggregate syntax: 
query II rowsort label-7587
SELECT + 41 * - COALESCE ( - + COUNT( * ), + 82 * - MIN( DISTINCT - + 19 ) * + 65 + 0 * 56 * + 63 ), 69 AS col2
----
41
69

skipif mysql # not compatible
query II rowsort label-7587
SELECT + 41 * - COALESCE ( - + COUNT ( * ), + 82 * - MIN ( DISTINCT - + 19 ) * + 65 + 0 * 56 * + 63 ), 69 AS col2
----
41
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT DISTINCT + 47 * + ( COUNT( DISTINCT 32 ) ) - + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT + 47 * + ( COUNT ( DISTINCT 32 ) ) - + COUNT ( * )
----
46

query I rowsort
SELECT - 89 * - + 93 + + 31
----
8308

query II rowsort
SELECT + ( 20 ) + + 95, 41 AS col2
----
115
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT + MIN( 98 ) * NULLIF ( + 1, + 43 + - 71 ) + - 77
----
21

skipif mysql # not compatible
query I rowsort label-7591
SELECT + MIN ( 98 ) * NULLIF ( + 1, + 43 + - 71 ) + - 77
----
21

query I rowsort
SELECT ALL 93 * - 12
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL MIN( + 75 ) * - 28 * + 71 AS col1
----
-149100

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL MIN ( + 75 ) * - 28 * + 71 AS col1
----
-149100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7594
SELECT ALL CASE + 51 WHEN - CAST( NULL AS SIGNED ) + ( + - 5 ) - + + 12 * + + 1 THEN SUM( 56 ) WHEN - MIN( ALL + 83 ) + - 95 + - 59 THEN NULL END, - ( - CAST( - 19 AS SIGNED ) ) * + 67 - + - CAST( + + 14 AS SIGNED ) AS col1
----
NULL
-1259

skipif mysql # not compatible
query II rowsort label-7594
SELECT ALL CASE + 51 WHEN - CAST ( NULL AS INTEGER ) + ( + - 5 ) - + + 12 * + + 1 THEN SUM ( 56 ) WHEN - MIN ( ALL + 83 ) + - 95 + - 59 THEN NULL END, - ( - CAST ( - 19 AS INTEGER ) ) * + 67 - + - CAST ( + + 14 AS INTEGER ) AS col1
----
NULL
-1259

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT + 51 + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-7595
SELECT + 51 + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT ALL 57 * + COUNT( * ) * + COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL 57 * + COUNT ( * ) * + COUNT ( * ) AS col2
----
57

query I rowsort
SELECT ALL NULLIF ( 81, - 57 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT - SUM( 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-7598
SELECT - SUM ( 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT + + CASE + 48 WHEN - 57 THEN + SUM( DISTINCT 43 ) WHEN + MAX( ALL 42 ) THEN - 40 + 27 - COUNT( * ) END + + MIN( - 5 ) * + 10 + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT + + CASE + 48 WHEN - 57 THEN + SUM ( DISTINCT 43 ) WHEN + MAX ( ALL 42 ) THEN - 40 + 27 - COUNT ( * ) END + + MIN ( - 5 ) * + 10 + - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT + + ( - MIN( DISTINCT + ( + 91 ) ) ) - + - 15 - + + 8
----
-84

skipif mysql # not compatible
query I rowsort label-7600
SELECT + + ( - MIN ( DISTINCT + ( + 91 ) ) ) - + - 15 - + + 8
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT - 55 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT - 55 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT - - MIN( DISTINCT - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-7602
SELECT - - MIN ( DISTINCT - 55 )
----
-55

query I rowsort
SELECT ALL + ( - 8 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7604
SELECT + CASE WHEN NOT COUNT( * ) IS NOT NULL THEN NULL WHEN 95 IS NOT NULL THEN + 70 + + 10 DIV + - 81 END
----
70

skipif mysql # not compatible
query I rowsort label-7604
SELECT + CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN NULL WHEN 95 IS NOT NULL THEN + 70 + + 10 / + - 81 END
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT - 68 + - NULLIF ( - CASE - 97 WHEN - - 35 THEN 93 END, - 90 + + COUNT( * ) * MIN( ALL + 65 ) * - 80 * + - 4 + 40 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT - 68 + - NULLIF ( - CASE - 97 WHEN - - 35 THEN 93 END, - 90 + + COUNT ( * ) * MIN ( ALL + 65 ) * - 80 * + - 4 + 40 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT ALL - + SUM( DISTINCT + + 68 ) + + 71
----
3

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL - + SUM ( DISTINCT + + 68 ) + + 71
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT - 34 + + COUNT( * ) * - 38 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7607
SELECT - 34 + + COUNT ( * ) * - 38 AS col2
----
-72

query II rowsort
SELECT ALL + + 74 AS col2, + 91 AS col1
----
74
91

query I rowsort
SELECT - + 2 + - + 35 AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7610
SELECT ALL - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) / - 53 / - + CASE 86 WHEN + + 90 THEN NULL WHEN + 58 THEN NULL ELSE + 50 * + - 44 + - COUNT( * ) * COALESCE ( NULLIF ( - + MAX( + 29 ), - + COUNT( * ) ), - 5 ) - + 93 - CAST( NULL AS SIGNED ) + - + MIN( - + 98 ) + + 57 + - 34 / - 78 END + + MAX( ALL + + 39 ) * + + 55 + 24 + + - ( + + 82 ) / 50 * + + 9 * 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / - 53 / - + CASE 86 WHEN + + 90 THEN NULL WHEN + 58 THEN NULL ELSE + 50 * + - 44 + - COUNT ( * ) * COALESCE ( NULLIF ( - + MAX ( + 29 ), - + COUNT ( * ) ), - 5 ) - + 93 - CAST ( NULL AS INTEGER ) + - + MIN ( - + 98 ) + + 57 + - 34 / - 78 END + + MAX ( ALL + + 39 ) * + + 55 + 24 + + - ( + + 82 ) / 50 * + + 9 * 2 AS col2
----
NULL

query I rowsort
SELECT + + 59 col1
----
59

query II rowsort
SELECT + 40 AS col2, 39
----
40
39

query I rowsort
SELECT - + 10 + + - 47
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7614
SELECT + - COUNT( * ) AS col2, 51 + - CAST( + 9 AS SIGNED ) AS col2
----
-1
42

skipif mysql # not compatible
query II rowsort label-7614
SELECT + - COUNT ( * ) AS col2, 51 + - CAST ( + 9 AS INTEGER ) AS col2
----
-1
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7615
SELECT + + 41 DIV + + ( - - 63 ) + - - 62 + - 34 DIV - 34 + - 6
----
57

skipif mysql # not compatible
query I rowsort label-7615
SELECT + + 41 / + + ( - - 63 ) + - - 62 + - 34 / - 34 + - 6
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT COALESCE ( - 2, + + 34, 98 * 10 ) * + + CASE + + 73 WHEN - ( COUNT( * ) ) THEN + CASE - 82 WHEN - - 84 * - 93 THEN 78 / - - COUNT( * ) ELSE - 66 END END + COUNT( + 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT COALESCE ( - 2, + + 34, 98 * 10 ) * + + CASE + + 73 WHEN - ( COUNT ( * ) ) THEN + CASE - 82 WHEN - - 84 * - 93 THEN 78 / - - COUNT ( * ) ELSE - 66 END END + COUNT ( + 38 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7617
SELECT - + ( 59 ) DIV - 36 + 11 + 83 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7617
SELECT - + ( 59 ) / - 36 + 11 + 83 AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7618
SELECT - + 91 * 49 + - 77 + + 26 DIV + 84 DIV - COUNT( * ) AS col2
----
-4536

skipif mysql # not compatible
query I rowsort label-7618
SELECT - + 91 * 49 + - 77 + + 26 / + 84 / - COUNT ( * ) AS col2
----
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL + SUM( ALL - ( - 69 ) )
----
69

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL + SUM ( ALL - ( - 69 ) )
----
69

query II rowsort
SELECT + 9, 59 * + 23 + - 6 AS col2
----
9
1351

query I rowsort
SELECT ALL - ( + 96 ) * + + 51
----
-4896

query I rowsort
SELECT 62 * + - 32 - - 73 col0
----
-1911

query I rowsort
SELECT 50 * 98
----
4900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7624
SELECT ALL - 90 * - 72, + CAST( + 44 AS SIGNED ) AS col1
----
6480
44

skipif mysql # not compatible
query II rowsort label-7624
SELECT ALL - 90 * - 72, + CAST ( + 44 AS INTEGER ) AS col1
----
6480
44

query II rowsort
SELECT + 75 col2, 5 AS col1
----
75
5

query II rowsort
SELECT ALL 85, 27 AS col1
----
85
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7627
SELECT MIN( ALL + + 89 ) - + 24 - - 73 * + ( 37 ) * CASE CASE + - 6 WHEN + CAST( NULL AS SIGNED ) THEN CASE + 42 WHEN - + 43 / + - CASE + COUNT( * ) WHEN - 19 THEN - 75 * 46 END * + + 32 + - 12 + + 50 + + ( 76 ) * - + 6 + - 27 + - 69 THEN 37 + + - COUNT( * ) * + 21 ELSE + COUNT( ALL + 7 ) * - - AVG ( ALL 71 ) * 45 + + + 41 END * + + 43 WHEN + - 71 THEN NULL ELSE NULL END WHEN + + 11 + + 26 THEN + 80 END * + 71 + 77 / - NULLIF ( - 85 * 38, + 94 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7627
SELECT MIN ( ALL + + 89 ) - + 24 - - 73 * + ( 37 ) * CASE CASE + - 6 WHEN + CAST ( NULL AS INTEGER ) THEN CASE + 42 WHEN - + 43 / + - CASE + COUNT ( * ) WHEN - 19 THEN - 75 * 46 END * + + 32 + - 12 + + 50 + + ( 76 ) * - + 6 + - 27 + - 69 THEN 37 + + - COUNT ( * ) * + 21 ELSE + COUNT ( ALL + 7 ) * - - AVG ( ALL 71 ) * 45 + + + 41 END * + + 43 WHEN + - 71 THEN NULL ELSE NULL END WHEN + + 11 + + 26 THEN + 80 END * + 71 + 77 / - NULLIF ( - 85 * 38, + 94 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7628
SELECT ALL 87 AS col1, + COUNT( 41 ) AS col2
----
87
1

skipif mysql # not compatible
query II rowsort label-7628
SELECT ALL 87 AS col1, + COUNT ( 41 ) AS col2
----
87
1

query I rowsort
SELECT DISTINCT - 72 * + 82
----
-5904

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7630
SELECT ALL 45 DIV 72 AS col2, MIN( - 72 )
----
0
-72

skipif mysql # not compatible
query II rowsort label-7630
SELECT ALL 45 / 72 AS col2, MIN ( - 72 )
----
0
-72

query I rowsort
SELECT 66 * + 61 AS col1
----
4026

query I rowsort
SELECT 49 + + 73 AS col1
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7633
SELECT - ( + ( + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT - ( + ( + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT - 39 + - + CASE - 53 WHEN - 93 * 88 + + SUM( + 77 ) THEN NULL WHEN 85 - - - 2 THEN - - 67 END - + ( + 66 ) * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT - 39 + - + CASE - 53 WHEN - 93 * 88 + + SUM ( + 77 ) THEN NULL WHEN 85 - - - 2 THEN - - 67 END - + ( + 66 ) * + 60
----
NULL

query II rowsort
SELECT 27 * + 36 AS col2, 34 * + - 64 AS col0
----
972
-2176

query I rowsort
SELECT ALL 22 + 95 AS col1
----
117

query II rowsort
SELECT + 5 * - - 5, CASE 8 WHEN 8 THEN 47 END AS col0
----
25
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7638
SELECT DISTINCT 67 + + 16 DIV - 82
----
67

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT 67 + + 16 / - 82
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7639
SELECT - MIN( + + 83 ) + + 50 + + + 28 AS col0, + 72
----
-5
72

skipif mysql # not compatible
query II rowsort label-7639
SELECT - MIN ( + + 83 ) + + 50 + + + 28 AS col0, + 72
----
-5
72

query I rowsort
SELECT - 55 * - 24
----
1320

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT 76 + + + 52 DIV 4 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7641
SELECT 76 + + + 52 / 4 AS col0
----
89

query I rowsort
SELECT ALL 52 - 36 * + + ( - - ( + + 6 ) ) col2
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT 79 * 25 - + + SUM( 43 ) + - 49 col2
----
1883

skipif mysql # not compatible
query I rowsort label-7643
SELECT 79 * 25 - + + SUM ( 43 ) + - 49 col2
----
1883

onlyif mysql # aggregate syntax: 
query II rowsort label-7644
SELECT DISTINCT - COUNT( ALL - + 46 ), ( - 60 ) + - 44 AS col0
----
-1
-104

skipif mysql # not compatible
query II rowsort label-7644
SELECT DISTINCT - COUNT ( ALL - + 46 ), ( - 60 ) + - 44 AS col0
----
-1
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-7645
SELECT - - 38 DIV + 46 + 40 - 15 DIV - 25 - 92 * + 31 AS col0
----
-2812

skipif mysql # not compatible
query I rowsort label-7645
SELECT - - 38 / + 46 + 40 - 15 / - 25 - 92 * + 31 AS col0
----
-2812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT NULLIF ( - 90, + + CAST( NULL AS SIGNED ) ) + 33 + - - 39 + 27 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7646
SELECT NULLIF ( - 90, + + CAST ( NULL AS INTEGER ) ) + 33 + - - 39 + 27 AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7647
SELECT 66 * + + SUM( ALL - 7 ) * CAST( NULL AS SIGNED ) + - NULLIF ( + 80, - 22 / - 51 + - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT 66 * + + SUM ( ALL - 7 ) * CAST ( NULL AS INTEGER ) + - NULLIF ( + 80, - 22 / - 51 + - 53 )
----
NULL

query I rowsort
SELECT 44 * + 66 AS col0
----
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT NULLIF ( + MAX( ALL + 36 ), + MIN( DISTINCT - ( + ( + 78 ) ) ) ) + + 5
----
41

skipif mysql # not compatible
query I rowsort label-7649
SELECT NULLIF ( + MAX ( ALL + 36 ), + MIN ( DISTINCT - ( + ( + 78 ) ) ) ) + + 5
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT + 19 * + COUNT( * ) - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7650
SELECT + 19 * + COUNT ( * ) - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL - MAX( ALL - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL - MAX ( ALL - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT 60 - - COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7652
SELECT 60 - - COUNT ( * ) AS col2
----
61

query I rowsort
SELECT 69 + - - 23 * - 31
----
-644

query I rowsort
SELECT ALL - COALESCE ( 48, - 14 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL - COUNT( DISTINCT - - 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - COUNT ( DISTINCT - - 74 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT COUNT( * ) * - 48 + + - 52 * - 6 AS col1
----
264

skipif mysql # not compatible
query I rowsort label-7656
SELECT COUNT ( * ) * - 48 + + - 52 * - 6 AS col1
----
264

query I rowsort
SELECT DISTINCT - 41 + ( + 79 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT 69 + - 93 - SUM( ALL + 91 )
----
-115

skipif mysql # not compatible
query I rowsort label-7658
SELECT 69 + - 93 - SUM ( ALL + 91 )
----
-115

query I rowsort
SELECT ALL - 68 + - + ( - - 91 ) * + - 7 col2
----
569

query I rowsort
SELECT DISTINCT - ( 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT 59 * - + COALESCE ( - 66, + - COUNT( * ) ) * - ( - NULLIF ( - + 47, - ( - - 83 ) / + 83 ) ) * + 92 + + 49 + - MIN( DISTINCT - 45 ) + - - NULLIF ( + 87, MIN( 17 ) / + 97 / - 22 - - COUNT( * ) * - - 92 + - 65 - - + 47 ) AS col2
----
-16837475

skipif mysql # not compatible
query I rowsort label-7661
SELECT 59 * - + COALESCE ( - 66, + - COUNT ( * ) ) * - ( - NULLIF ( - + 47, - ( - - 83 ) / + 83 ) ) * + 92 + + 49 + - MIN ( DISTINCT - 45 ) + - - NULLIF ( + 87, MIN ( 17 ) / + 97 / - 22 - - COUNT ( * ) * - - 92 + - 65 - - + 47 ) AS col2
----
-16837475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT 94 + + 25 * - 99 + CAST( - 36 AS SIGNED ) + + + 69 * - 38 - - - COALESCE ( 99, - + 93 - + CAST( ( AVG ( ALL 28 ) ) AS SIGNED ) + 39 + COALESCE ( - 28, - + 38 ) )
----
-5138

skipif mysql # not compatible
query I rowsort label-7662
SELECT 94 + + 25 * - 99 + CAST ( - 36 AS INTEGER ) + + + 69 * - 38 - - - COALESCE ( 99, - + 93 - + CAST ( ( AVG ( ALL 28 ) ) AS INTEGER ) + 39 + COALESCE ( - 28, - + 38 ) )
----
-5138

query I rowsort
SELECT + 37 * + 1 * - 25 AS col1
----
-925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7664
SELECT ALL + 90 + - - 42 * - + MIN( 64 ) + - + 47 DIV 65 AS col0
----
-2598

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL + 90 + - - 42 * - + MIN ( 64 ) + - + 47 / 65 AS col0
----
-2598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7665
SELECT DISTINCT + - COUNT( * ) + - 77 + - 4 DIV - 86
----
-78

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT + - COUNT ( * ) + - 77 + - 4 / - 86
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7666
SELECT + CAST( + COUNT( * ) AS SIGNED ) * CASE 16 WHEN - - ( 3 ) + - MAX( DISTINCT - + 60 ) THEN + COUNT( * ) + + 52 ELSE + ( + COUNT( DISTINCT + 31 ) ) END * - 37 + 72 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7666
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * CASE 16 WHEN - - ( 3 ) + - MAX ( DISTINCT - + 60 ) THEN + COUNT ( * ) + + 52 ELSE + ( + COUNT ( DISTINCT + 31 ) ) END * - 37 + 72 AS col2
----
35

query I rowsort
SELECT + 3 + + 36
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT - COALESCE ( + ( 83 ), - COUNT( * ) ) + - 9
----
-92

skipif mysql # not compatible
query I rowsort label-7668
SELECT - COALESCE ( + ( 83 ), - COUNT ( * ) ) + - 9
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7669
SELECT + 60 * - CASE COUNT( - 20 ) WHEN - 68 * + + COALESCE ( + 92, + - COUNT( DISTINCT + ( + 65 ) ) ) - + + 8 / + + 90 THEN 81 WHEN MIN( ALL - CASE + CASE 10 WHEN 73 THEN NULL WHEN 99 THEN NULL WHEN - 90 * 71 * - 32 THEN + ( + 27 ) END WHEN + 27 THEN NULL ELSE - 69 * CAST( NULL AS SIGNED ) + + + 64 END ) THEN - COUNT( * ) * + 56 + COALESCE ( - 11, 86 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT + 60 * - CASE COUNT ( - 20 ) WHEN - 68 * + + COALESCE ( + 92, + - COUNT ( DISTINCT + ( + 65 ) ) ) - + + 8 / + + 90 THEN 81 WHEN MIN ( ALL - CASE + CASE 10 WHEN 73 THEN NULL WHEN 99 THEN NULL WHEN - 90 * 71 * - 32 THEN + ( + 27 ) END WHEN + 27 THEN NULL ELSE - 69 * CAST ( NULL AS INTEGER ) + + + 64 END ) THEN - COUNT ( * ) * + 56 + COALESCE ( - 11, 86 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT - CASE + - 24 WHEN 57 THEN - - ( COUNT( * ) ) WHEN + 17 * + + 17 THEN NULL END + - + 89 * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT - CASE + - 24 WHEN 57 THEN - - ( COUNT ( * ) ) WHEN + 17 * + + 17 THEN NULL END + - + 89 * 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT COUNT( * ) + - COALESCE ( + - 49, + 78 )
----
50

skipif mysql # not compatible
query I rowsort label-7671
SELECT COUNT ( * ) + - COALESCE ( + - 49, + 78 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7672
SELECT DISTINCT - 46 DIV + - 68 * 61 + + 49
----
49

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT - 46 / + - 68 * 61 + + 49
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7673
SELECT 3 * - 26 col1, + MIN( - 65 ) col1
----
-78
-65

skipif mysql # not compatible
query II rowsort label-7673
SELECT 3 * - 26 col1, + MIN ( - 65 ) col1
----
-78
-65

query I rowsort
SELECT 91 * - 75
----
-6825

query I rowsort
SELECT + 33 + + 64 + - 73 + + 25 * - 25
----
-601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7676
SELECT ALL COALESCE ( ( + 9 ), - 82 ) * - 93 DIV + - COUNT( * ) + + 8 * + 58
----
1301

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL COALESCE ( ( + 9 ), - 82 ) * - 93 / + - COUNT ( * ) + + 8 * + 58
----
1301

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT DISTINCT COUNT( * ) * + 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT COUNT ( * ) * + 34 AS col0
----
34

query I rowsort
SELECT + 18 + + 38 AS col1
----
56

query II rowsort
SELECT ALL + 89 AS col1, + ( 70 ) - - - 9
----
89
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT + MAX( ALL + 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7680
SELECT + MAX ( ALL + 5 ) AS col0
----
5

query I rowsort
SELECT + 6 * 36
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7682
SELECT CASE 50 WHEN + + ( ( COUNT( * ) ) ) + MAX( DISTINCT + - 64 ) THEN NULL WHEN + - 66 THEN NULL WHEN + + 31 + + CASE + NULLIF ( 63, - 30 / - + 19 * - NULLIF ( + 44, + + 25 - ( ( - 20 ) ) * - 51 ) ) WHEN + - 9 THEN - - 82 WHEN CAST( + + 46 AS SIGNED ) + + 40 THEN + MAX( 18 ) * + 7 * CASE - + 96 WHEN 18 THEN - COUNT( * ) WHEN - CASE + 74 WHEN + - ( - - 82 ) THEN + - 31 ELSE NULL END THEN NULL ELSE NULL END * 50 + + 73 - + - COUNT( ALL - 15 ) + 40 * + AVG ( ALL 0 - 57 ) ELSE NULL END * + CASE COUNT( * ) WHEN + COUNT( * ) * 85 THEN NULL WHEN 7 + - 28 THEN 49 * SUM( ALL 42 ) END THEN NULL WHEN + 64 THEN - 83 * - 46 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT CASE 50 WHEN + + ( ( COUNT ( * ) ) ) + MAX ( DISTINCT + - 64 ) THEN NULL WHEN + - 66 THEN NULL WHEN + + 31 + + CASE + NULLIF ( 63, - 30 / - + 19 * - NULLIF ( + 44, + + 25 - ( ( - 20 ) ) * - 51 ) ) WHEN + - 9 THEN - - 82 WHEN CAST ( + + 46 AS INTEGER ) + + 40 THEN + MAX ( 18 ) * + 7 * CASE - + 96 WHEN 18 THEN - COUNT ( * ) WHEN - CASE + 74 WHEN + - ( - - 82 ) THEN + - 31 ELSE NULL END THEN NULL ELSE NULL END * 50 + + 73 - + - COUNT ( ALL - 15 ) + 40 * + AVG ( ALL 0 - 57 ) ELSE NULL END * + CASE COUNT ( * ) WHEN + COUNT ( * ) * 85 THEN NULL WHEN 7 + - 28 THEN 49 * SUM ( ALL 42 ) END THEN NULL WHEN + 64 THEN - 83 * - 46 END AS col0
----
NULL

query II rowsort
SELECT ALL + 5 col0, 24
----
5
24

query I rowsort
SELECT CASE 33 WHEN + + 22 THEN + + COALESCE ( - ( + 6 ), 78 * + 18 ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT + ( - 9 ) * - CAST( NULL AS SIGNED ) + - + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT + ( - 9 ) * - CAST ( NULL AS INTEGER ) + - + 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT + COUNT( * ) - 69
----
-68

skipif mysql # not compatible
query I rowsort label-7686
SELECT + COUNT ( * ) - 69
----
-68

query I rowsort
SELECT ALL 34 * - 94
----
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT NULLIF ( - 13, 80 ) * + ( + 67 ) - - COUNT( * ) - + 27
----
-897

skipif mysql # not compatible
query I rowsort label-7688
SELECT NULLIF ( - 13, 80 ) * + ( + 67 ) - - COUNT ( * ) - + 27
----
-897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT + COALESCE ( - 91, 83 * - 13 * - 98 - + - CASE 59 WHEN 41 + + 43 / - CASE 54 WHEN 38 THEN - + COALESCE ( + + 31, 65 * - 8 * 88 - - 25 + - COUNT( * ) * + - 3 * - 31 * 40 ) ELSE 25 END + SUM( DISTINCT - + 45 ) THEN COUNT( * ) WHEN - - 29 + - CAST( NULL AS SIGNED ) THEN NULL END * - 45 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-7689
SELECT + COALESCE ( - 91, 83 * - 13 * - 98 - + - CASE 59 WHEN 41 + + 43 / - CASE 54 WHEN 38 THEN - + COALESCE ( + + 31, 65 * - 8 * 88 - - 25 + - COUNT ( * ) * + - 3 * - 31 * 40 ) ELSE 25 END + SUM ( DISTINCT - + 45 ) THEN COUNT ( * ) WHEN - - 29 + - CAST ( NULL AS INTEGER ) THEN NULL END * - 45 ) AS col2
----
-91

query I rowsort
SELECT - 98 + - - 71 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ALL 70 * + + 10 * - - CASE - 69 WHEN - 80 + - + 49 THEN NULL WHEN + + 34 / - + COUNT( * ) THEN NULL ELSE - 86 + MAX( ALL NULLIF ( 19, - 65 + - + ( 47 ) * 98 * 92 ) ) END + - 59 * + 39
----
-49201

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL 70 * + + 10 * - - CASE - 69 WHEN - 80 + - + 49 THEN NULL WHEN + + 34 / - + COUNT ( * ) THEN NULL ELSE - 86 + MAX ( ALL NULLIF ( 19, - 65 + - + ( 47 ) * 98 * 92 ) ) END + - 59 * + 39
----
-49201

query I rowsort
SELECT ALL + + 34 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT DISTINCT COUNT( * ) + 17 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT COUNT ( * ) + 17 AS col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT ALL - - 60 DIV - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL - - 60 / - 86 AS col1
----
0

query I rowsort
SELECT DISTINCT + + 98 + 36 + + 50 + + - 3
----
181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7696
SELECT ALL 61 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL 61 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT DISTINCT + - COUNT( * ) - - 31 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT + - COUNT ( * ) - - 31 AS col1
----
30

query I rowsort
SELECT DISTINCT - ( 94 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL MAX( ALL 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL MAX ( ALL 59 ) AS col2
----
59

query I rowsort
SELECT - 58 + + 80 * - 83
----
-6698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7701
SELECT - 28 * - 19 * + + 11 AS col2, + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col2
----
5852
1
NULL

skipif mysql # not compatible
query III rowsort label-7701
SELECT - 28 * - 19 * + + 11 AS col2, + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col2
----
5852
1
NULL

query II rowsort
SELECT 81 AS col0, - 60 * - 23 AS col2
----
81
1380

onlyif mysql # aggregate syntax: 
query II rowsort label-7703
SELECT DISTINCT + - 56 - + ( + 68 ) AS col2, - 92 + + 52 * + CASE - COUNT( * ) WHEN - - ( 64 ) + - 12 THEN NULL WHEN SUM( ALL + 2 ) THEN NULL WHEN + 92 * + COALESCE ( - - NULLIF ( - + 13, - 54 * + 73 + - - 46 + AVG ( + - 99 ) ), + 91 ) THEN - - 8 ELSE NULL END AS col0
----
-124
NULL

skipif mysql # not compatible
query II rowsort label-7703
SELECT DISTINCT + - 56 - + ( + 68 ) AS col2, - 92 + + 52 * + CASE - COUNT ( * ) WHEN - - ( 64 ) + - 12 THEN NULL WHEN SUM ( ALL + 2 ) THEN NULL WHEN + 92 * + COALESCE ( - - NULLIF ( - + 13, - 54 * + 73 + - - 46 + AVG ( + - 99 ) ), + 91 ) THEN - - 8 ELSE NULL END AS col0
----
-124
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL + 84 - + - COUNT( * ) + 70
----
155

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL + 84 - + - COUNT ( * ) + 70
----
155

query I rowsort
SELECT - + 79 * - 98 * - ( + + 45 )
----
-348390

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT SUM( ALL + 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT SUM ( ALL + 92 ) AS col0
----
92

query I rowsort
SELECT DISTINCT + ( + - 11 ) - + + 8 * - ( - + 30 ) + 1 + + - 23 * 35 + - 39 + + 6
----
-1088

query I rowsort
SELECT - 30 * ( - - 44 ) AS col1
----
-1320

query I rowsort
SELECT DISTINCT NULLIF ( 9, - COALESCE ( 70, - - 37 * - 6 + 83 ) / 60 + - 19 * + 24 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT - CASE 19 WHEN + 98 * 9 * - - 40 - - 74 + - + 4 - + 57 * + - COUNT( * ) + - - COUNT( * ) + 86 THEN NULL ELSE - 69 * - + 41 * - + 58 END
----
164082

skipif mysql # not compatible
query I rowsort label-7710
SELECT - CASE 19 WHEN + 98 * 9 * - - 40 - - 74 + - + 4 - + 57 * + - COUNT ( * ) + - - COUNT ( * ) + 86 THEN NULL ELSE - 69 * - + 41 * - + 58 END
----
164082

onlyif mysql # DIV for integer division: 
query I rowsort label-7711
SELECT + 77 DIV - 92 * + 96
----
0

skipif mysql # not compatible
query I rowsort label-7711
SELECT + 77 / - 92 * + 96
----
0

query I rowsort
SELECT - 89 + + ( + 45 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT + 94 * + - COUNT( - 69 )
----
-94

skipif mysql # not compatible
query I rowsort label-7713
SELECT + 94 * + - COUNT ( - 69 )
----
-94

query I rowsort
SELECT ALL 0 * + 94 * - - 41 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7715
SELECT - 73 DIV + + 14 + + 87
----
82

skipif mysql # not compatible
query I rowsort label-7715
SELECT - 73 / + + 14 + + 87
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7716
SELECT - 41 DIV + ( + 37 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7716
SELECT - 41 / + ( + 37 ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7717
SELECT ALL - COUNT( * ) DIV + ( + + 53 ) + - 31 AS col0, + 90 * + - 24 AS col1
----
-31
-2160

skipif mysql # not compatible
query II rowsort label-7717
SELECT ALL - COUNT ( * ) / + ( + + 53 ) + - 31 AS col0, + 90 * + - 24 AS col1
----
-31
-2160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT + NULLIF ( - 25, - ( 59 ) + + - MIN( ALL + + 47 ) ) + COUNT( * ) DIV + NULLIF ( + - 45, + - COUNT( * ) * - 72 + 66 - - - 58 + + 16 + COUNT( * ) ) - + 71 * - 59 + - - 75 * + - 20 DIV + COUNT( * ) AS col1
----
2664

skipif mysql # not compatible
query I rowsort label-7718
SELECT + NULLIF ( - 25, - ( 59 ) + + - MIN ( ALL + + 47 ) ) + COUNT ( * ) / + NULLIF ( + - 45, + - COUNT ( * ) * - 72 + 66 - - - 58 + + 16 + COUNT ( * ) ) - + 71 * - 59 + - - 75 * + - 20 / + COUNT ( * ) AS col1
----
2664

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT ALL - 11 DIV + 7 + + 51 + + 26 + - 66 DIV - - 98 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL - 11 / + 7 + + 51 + + 26 + - 66 / - - 98 AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7720
SELECT 41 * COALESCE ( - + 17, + 64 ) + + + ( - CASE 64 WHEN - - 42 THEN - 1 WHEN + 89 - + - ( - CAST( NULL AS SIGNED ) ) THEN NULL END ) AS col0, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7720
SELECT 41 * COALESCE ( - + 17, + 64 ) + + + ( - CASE 64 WHEN - - 42 THEN - 1 WHEN + 89 - + - ( - CAST ( NULL AS INTEGER ) ) THEN NULL END ) AS col0, - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT 68 DIV + - 6 + + 8 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7721
SELECT 68 / + - 6 + + 8 AS col1
----
-3

query I rowsort
SELECT + ( + 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7723
SELECT ALL COUNT( * ) DIV COUNT( * ) + - ( + 1 ), - 32 AS col2
----
0
-32

skipif mysql # not compatible
query II rowsort label-7723
SELECT ALL COUNT ( * ) / COUNT ( * ) + - ( + 1 ), - 32 AS col2
----
0
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7724
SELECT COALESCE ( - 31, MAX( DISTINCT 36 ) ) * - SUM( - CASE CAST( NULL AS SIGNED ) WHEN 70 THEN NULL ELSE + 94 END ) + - + MIN( ALL - 37 ) DIV 71 * + MAX( + + 48 ) + - - 74 AS col1
----
-2840

skipif mysql # not compatible
query I rowsort label-7724
SELECT COALESCE ( - 31, MAX ( DISTINCT 36 ) ) * - SUM ( - CASE CAST ( NULL AS INTEGER ) WHEN 70 THEN NULL ELSE + 94 END ) + - + MIN ( ALL - 37 ) / 71 * + MAX ( + + 48 ) + - - 74 AS col1
----
-2840

query I rowsort
SELECT ALL + 30 col2
----
30

query I rowsort
SELECT ( 47 )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7727
SELECT ( 15 ) AS col1, 28 + COUNT( * )
----
15
29

skipif mysql # not compatible
query II rowsort label-7727
SELECT ( 15 ) AS col1, 28 + COUNT ( * )
----
15
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7728
SELECT + 57 + - 34 + 22 DIV - 85 - 99 * - 86 + - 15 * + - 77
----
9692

skipif mysql # not compatible
query I rowsort label-7728
SELECT + 57 + - 34 + 22 / - 85 - 99 * - 86 + - 15 * + - 77
----
9692

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT + ( - MIN( DISTINCT - + 38 ) ) * - 57 AS col0
----
-2166

skipif mysql # not compatible
query I rowsort label-7729
SELECT + ( - MIN ( DISTINCT - + 38 ) ) * - 57 AS col0
----
-2166

query I rowsort
SELECT ALL 6 * 64
----
384

query I rowsort
SELECT DISTINCT + - 50 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT + NULLIF ( + ( + COUNT( * ) ), + 15 * + - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-7732
SELECT + NULLIF ( + ( + COUNT ( * ) ), + 15 * + - 31 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7733
SELECT + + 74 DIV - + 69
----
-1

skipif mysql # not compatible
query I rowsort label-7733
SELECT + + 74 / - + 69
----
-1

query I rowsort
SELECT - + 69 * - 5 + + ( + + 76 ) col0
----
421

onlyif mysql # aggregate syntax: 
query II rowsort label-7735
SELECT + - MAX( DISTINCT + 85 ) + 80 + - 59 AS col1, - 99
----
-64
-99

skipif mysql # not compatible
query II rowsort label-7735
SELECT + - MAX ( DISTINCT + 85 ) + 80 + - 59 AS col1, - 99
----
-64
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7736
SELECT DISTINCT + COUNT( * ) * + 18 + - 99 + - 4 + NULLIF ( 80, - 4 + + 0 * + - COUNT( * ) * + 81 + + 56 ) * CAST( 88 AS SIGNED ) * + NULLIF ( 30, + 92 ) DIV 15
----
13995

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT + COUNT ( * ) * + 18 + - 99 + - 4 + NULLIF ( 80, - 4 + + 0 * + - COUNT ( * ) * + 81 + + 56 ) * CAST ( 88 AS INTEGER ) * + NULLIF ( 30, + 92 ) / 15
----
13995

onlyif mysql # DIV for integer division: 
query I rowsort label-7737
SELECT + 79 DIV + 45
----
1

skipif mysql # not compatible
query I rowsort label-7737
SELECT + 79 / + 45
----
1

query I rowsort
SELECT + 88 + - 44
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-7739
SELECT CASE 18 WHEN + 33 THEN 9 WHEN COUNT( * ) THEN NULL END + - ( - + 2 ) AS col0, - MIN( DISTINCT 68 )
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-7739
SELECT CASE 18 WHEN + 33 THEN 9 WHEN COUNT ( * ) THEN NULL END + - ( - + 2 ) AS col0, - MIN ( DISTINCT 68 )
----
NULL
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT ALL 75 DIV + - 2 + - 52 - - 55 DIV + - 66 - + 96 AS col1
----
-185

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL 75 / + - 2 + - 52 - - 55 / + - 66 - + 96 AS col1
----
-185

query I rowsort
SELECT + NULLIF ( - 97, 92 * 2 + AVG ( DISTINCT 24 ) ) + + 88 * 70 AS col0
----
6063

query I rowsort
SELECT - 37 + - - 93
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT - - MIN( DISTINCT + - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-7743
SELECT - - MIN ( DISTINCT + - 70 )
----
-70

query I rowsort
SELECT 60 + + 85 + - 93 + - 9 * - 21 * - 12 + - - 26
----
-2190

onlyif mysql # DIV for integer division: 
query I rowsort label-7745
SELECT ALL - ( 47 ) * 13 DIV + 99 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL - ( 47 ) * 13 / + 99 AS col2
----
-6

query I rowsort
SELECT 34 * - 15 AS col2
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT 69 + + COUNT( * ) * + 80 AS col0
----
149

skipif mysql # not compatible
query I rowsort label-7747
SELECT 69 + + COUNT ( * ) * + 80 AS col0
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7748
SELECT DISTINCT COUNT( * ) + 30 + COUNT( * ) DIV 32 * + 9 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT COUNT ( * ) + 30 + COUNT ( * ) / 32 * + 9 AS col0
----
31

query I rowsort
SELECT ALL + 72 + - 74 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7750
SELECT ALL + CASE - AVG ( DISTINCT + 49 ) WHEN - 15 THEN 95 WHEN - 5 * - + CAST( NULL AS SIGNED ) THEN + 77 + + 98 * + NULLIF ( - 84, - CASE 0 WHEN + COUNT( * ) THEN - - 85 * 77 WHEN 79 THEN + - ( ( - - 32 ) ) WHEN - 79 THEN NULL END ) END + - 91 + + - 66 * - - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL + CASE - AVG ( DISTINCT + 49 ) WHEN - 15 THEN 95 WHEN - 5 * - + CAST ( NULL AS INTEGER ) THEN + 77 + + 98 * + NULLIF ( - 84, - CASE 0 WHEN + COUNT ( * ) THEN - - 85 * 77 WHEN 79 THEN + - ( ( - - 32 ) ) WHEN - 79 THEN NULL END ) END + - 91 + + - 66 * - - 73
----
NULL

query I rowsort
SELECT ALL - 45 * 54 * - + 32
----
77760

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT 59 * COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-7752
SELECT 59 * COUNT ( * ) AS col1
----
59

query II rowsort
SELECT ALL - 9 + + 98 + + - 61 + - 81 * + 18 AS col2, - 33 * + 0 * - 15 AS col2
----
-1430
0

query I rowsort
SELECT 49 * + + 20
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT 36 * + COUNT( * ) * + + 18 + + 65 + + + 8 * + + 97 + + 5 * + + 74 * + 98 AS col2
----
37749

skipif mysql # not compatible
query I rowsort label-7755
SELECT 36 * + COUNT ( * ) * + + 18 + + 65 + + + 8 * + + 97 + + 5 * + + 74 * + 98 AS col2
----
37749

query I rowsort
SELECT + ( - 45 ) * - NULLIF ( + 18, - + 43 + + - 88 + 19 * - 64 ) + - - 76 - - 17 AS col2
----
903

onlyif mysql # aggregate syntax: 
query II rowsort label-7757
SELECT ALL + 37 + + SUM( - - ( 70 ) ) - - 29 AS col2, 11
----
136
11

skipif mysql # not compatible
query II rowsort label-7757
SELECT ALL + 37 + + SUM ( - - ( 70 ) ) - - 29 AS col2, 11
----
136
11

query I rowsort
SELECT DISTINCT + 55 - + - 64 AS col1
----
119

query I rowsort
SELECT DISTINCT 81 * + - 56 AS col0
----
-4536

query I rowsort
SELECT ALL NULLIF ( 54, - 57 ) * 26 col0
----
1404

query I rowsort
SELECT DISTINCT - 83 * 2
----
-166

query I rowsort
SELECT DISTINCT ( - 9 ) - ( + 53 ) + + 65 - + + 61 * - 29 * 89 col2
----
157444

query I rowsort
SELECT DISTINCT + 19 * 6 AS col1
----
114

query I rowsort
SELECT ALL + - 76 * + 9 col2
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL - - COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL - - COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT + ( - - COUNT( * ) ) - + + 31 + - + 0
----
-30

skipif mysql # not compatible
query I rowsort label-7766
SELECT + ( - - COUNT ( * ) ) - + + 31 + - + 0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT 96 * + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7767
SELECT 96 * + COUNT ( * ) AS col1
----
96

query I rowsort
SELECT 40 + - 17 + - - 83
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT ALL - NULLIF ( + MIN( DISTINCT + 51 ), - - 9 )
----
-51

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL - NULLIF ( + MIN ( DISTINCT + 51 ), - - 9 )
----
-51

query I rowsort
SELECT DISTINCT - 48 col2
----
-48

query I rowsort
SELECT ALL - 65 + 30
----
-35

query I rowsort
SELECT ALL - 7 * 42 AS col0
----
-294

query I rowsort
SELECT 99 * + - 15 col1
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT - COUNT( * ) * - 33
----
33

skipif mysql # not compatible
query I rowsort label-7774
SELECT - COUNT ( * ) * - 33
----
33

query I rowsort
SELECT - - 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT 4 - + COUNT( * ) col0
----
3

skipif mysql # not compatible
query I rowsort label-7776
SELECT 4 - + COUNT ( * ) col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7777
SELECT DISTINCT + 83 + - + NULLIF ( - 26, - - 46 ) - ( + + COUNT( * ) ) / - CAST( NULL AS SIGNED ) + - - 75 + - - 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT + 83 + - + NULLIF ( - 26, - - 46 ) - ( + + COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) + - - 75 + - - 48 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT DISTINCT MAX( ALL - + 40 ) * - + 27
----
1080

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT MAX ( ALL - + 40 ) * - + 27
----
1080

query I rowsort
SELECT ALL - 40 + ( + ( + - 10 ) ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL 65 + - 87 * 87 + - 13 + - COUNT( * )
----
-7518

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL 65 + - 87 * 87 + - 13 + - COUNT ( * )
----
-7518

query I rowsort
SELECT ALL 17 + + 7 * + ( - - 74 )
----
535

query I rowsort
SELECT 40 + + 70 + 22
----
132

query II rowsort
SELECT - 16 AS col0, 75 * - 59
----
-16
-4425

query I rowsort
SELECT 59 + - 19 * + - 18 AS col2
----
401

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT 94 * - + COUNT( * ) * + 73 * + 7 AS col2, 4 AS col0
----
-48034
4

skipif mysql # not compatible
query II rowsort label-7785
SELECT 94 * - + COUNT ( * ) * + 73 * + 7 AS col2, 4 AS col0
----
-48034
4

query I rowsort
SELECT DISTINCT 8 * - 20 - 57
----
-217

onlyif mysql # aggregate syntax: 
query II rowsort label-7787
SELECT ALL - COUNT( * ) col2, - 3
----
-1
-3

skipif mysql # not compatible
query II rowsort label-7787
SELECT ALL - COUNT ( * ) col2, - 3
----
-1
-3

query I rowsort
SELECT 84 + - + 23 AS col1
----
61

query I rowsort
SELECT ALL 51 * - 79
----
-4029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7790
SELECT DISTINCT - NULLIF ( + 49, + CAST( NULL AS SIGNED ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT - NULLIF ( + 49, + CAST ( NULL AS INTEGER ) ) AS col2
----
-49

query II rowsort
SELECT DISTINCT - 96 * 82 AS col1, 39
----
-7872
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT DISTINCT - COUNT( DISTINCT 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT - COUNT ( DISTINCT 87 )
----
-1

query I rowsort
SELECT 15 * - 42 + + ( - - 46 ) AS col0
----
-584

onlyif mysql # DIV for integer division: 
query I rowsort label-7794
SELECT 42 DIV - 2 + + 5 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7794
SELECT 42 / - 2 + + 5 AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7795
SELECT - CAST( NULL AS SIGNED ) + + AVG ( + - 78 ) - - 76 * + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT - CAST ( NULL AS INTEGER ) + + AVG ( + - 78 ) - - 76 * + 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - MIN( DISTINCT + 84 ) + - - 76
----
-8

skipif mysql # not compatible
query I rowsort label-7796
SELECT - MIN ( DISTINCT + 84 ) + - - 76
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7797
SELECT DISTINCT + + 49 * 71 * - CAST( NULL AS DECIMAL ) - - COUNT( * ) col2, - ( COUNT( * ) ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7797
SELECT DISTINCT + + 49 * 71 * - CAST ( NULL AS REAL ) - - COUNT ( * ) col2, - ( COUNT ( * ) ) AS col2
----
NULL
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7798
SELECT DISTINCT + 19 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT + 19 / 98
----
0

query I rowsort
SELECT ALL + 97 * + 54 AS col0
----
5238

query I rowsort
SELECT ALL + - 82 * + - 64 AS col2
----
5248

query I rowsort
SELECT DISTINCT + + 35
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7802
SELECT DISTINCT + 69 + - + COUNT( CAST( NULL AS SIGNED ) )
----
69

skipif mysql # not compatible
query I rowsort label-7802
SELECT DISTINCT + 69 + - + COUNT ( CAST ( NULL AS INTEGER ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT + 83 * + 80 + + 50 * 89 * + + COUNT( * ) * + + 39 AS col2
----
180190

skipif mysql # not compatible
query I rowsort label-7803
SELECT + 83 * + 80 + + 50 * 89 * + + COUNT ( * ) * + + 39 AS col2
----
180190

query II rowsort
SELECT + 10 AS col2, ( - 7 ) AS col1
----
10
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7805
SELECT DISTINCT + COUNT( * ) + COUNT( * ), 9 DIV 98 * - ( 30 ) AS col2
----
2
0

skipif mysql # not compatible
query II rowsort label-7805
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ), 9 / 98 * - ( 30 ) AS col2
----
2
0

query II rowsort
SELECT ALL - 70 AS col2, 73 AS col0
----
-70
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT - 50 + 11 * + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-7807
SELECT - 50 + 11 * + COUNT ( * )
----
-39

query I rowsort
SELECT + 24 + + 17 - 95 - - 64 col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT MAX( DISTINCT + 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7809
SELECT MAX ( DISTINCT + 28 ) AS col0
----
28

query I rowsort
SELECT ALL + 54 + 50 + + 63
----
167

query II rowsort
SELECT DISTINCT 71 * - - 60, - 4 AS col0
----
4260
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT + 36 + + + COUNT( * ) - + CASE + 84 WHEN + 2 / - 50 - CASE - 59 WHEN COUNT( * ) THEN + 20 ELSE NULL END THEN + 46 * - - COUNT( * ) - - - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT + 36 + + + COUNT ( * ) - + CASE + 84 WHEN + 2 / - 50 - CASE - 59 WHEN COUNT ( * ) THEN + 20 ELSE NULL END THEN + 46 * - - COUNT ( * ) - - - 78 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7813
SELECT ALL 41 + - ( COALESCE ( - + 71, - + 86 * - 88 + - - CAST( 90 AS SIGNED ) ) ) + 46 AS col1
----
158

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL 41 + - ( COALESCE ( - + 71, - + 86 * - 88 + - - CAST ( 90 AS INTEGER ) ) ) + 46 AS col1
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT ALL 6 * + MIN( - + 50 )
----
-300

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL 6 * + MIN ( - + 50 )
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT + COUNT( * ) + 70
----
71

skipif mysql # not compatible
query I rowsort label-7815
SELECT + COUNT ( * ) + 70
----
71

query I rowsort
SELECT ALL 18 * - 14 * + + 63 * 9 AS col0
----
-142884

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT + ( 61 ) * + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-7817
SELECT + ( 61 ) * + COUNT ( * )
----
61

query II rowsort
SELECT ALL 70 * - 13 AS col2, + 70 AS col0
----
-910
70

query I rowsort
SELECT ALL 34 * + 55
----
1870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7820
SELECT ALL + COUNT( * ) DIV - 36 * + + CAST( ( + 91 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL + COUNT ( * ) / - 36 * + + CAST ( ( + 91 ) AS INTEGER ) AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7821
SELECT - ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT - ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7822
SELECT ALL COUNT( * ) DIV 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL COUNT ( * ) / 72 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7823
SELECT ALL COUNT( * ) DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL COUNT ( * ) / 39 AS col0
----
0

query I rowsort
SELECT + COALESCE ( + + 18, + 75 - - - 83 + 64 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT + NULLIF ( - 33, ( + + 38 ) * + 17 ) * + - NULLIF ( ( - + ( 0 ) ), + MAX( DISTINCT + 84 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7825
SELECT + NULLIF ( - 33, ( + + 38 ) * + 17 ) * + - NULLIF ( ( - + ( 0 ) ), + MAX ( DISTINCT + 84 ) )
----
0

query I rowsort
SELECT ( 55 )
----
55

query I rowsort
SELECT + - 12 * + - 60 * 35 AS col2
----
25200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT ALL + - 47 * 78 + - 83 / - 91 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL + - 47 * 78 + - 83 / - 91 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7829
SELECT + + 95 - MAX( DISTINCT 28 ), 62 * - 9 * + 12 - - 7 * - + SUM( DISTINCT - - 64 ) * + 33 AS col0
----
67
-21480

skipif mysql # not compatible
query II rowsort label-7829
SELECT + + 95 - MAX ( DISTINCT 28 ), 62 * - 9 * + 12 - - 7 * - + SUM ( DISTINCT - - 64 ) * + 33 AS col0
----
67
-21480

query I rowsort
SELECT ALL 1 * - + 23 col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT + NULLIF ( - + SUM( ALL + - 31 ), 31 * - ( + 87 ) )
----
31

skipif mysql # not compatible
query I rowsort label-7831
SELECT + NULLIF ( - + SUM ( ALL + - 31 ), 31 * - ( + 87 ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT DISTINCT + 57 * + + COUNT( * ) * + ( + COUNT( 64 ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT + 57 * + + COUNT ( * ) * + ( + COUNT ( 64 ) ) AS col0
----
57

query I rowsort
SELECT DISTINCT + 48 * - + 4 + - 77
----
-269

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL + NULLIF ( + 99, - 65 ) * + - 73 * + + COALESCE ( 5, + COUNT( * ) ) + 27 AS col2
----
-36108

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL + NULLIF ( + 99, - 65 ) * + - 73 * + + COALESCE ( 5, + COUNT ( * ) ) + 27 AS col2
----
-36108

query I rowsort
SELECT - 59 * 94 + + 40
----
-5506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT ALL + + CAST( + ( 58 ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL + + CAST ( + ( 58 ) AS INTEGER )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7837
SELECT - - ( - 77 ) * - ( + - NULLIF ( - 62, + 89 / + + ( 5 ) + - 79 - + CAST( + COUNT( * ) AS SIGNED ) * + + CASE + 39 WHEN + 47 THEN 21 END ) ) + + COUNT( * )
----
4775

skipif mysql # not compatible
query I rowsort label-7837
SELECT - - ( - 77 ) * - ( + - NULLIF ( - 62, + 89 / + + ( 5 ) + - 79 - + CAST ( + COUNT ( * ) AS INTEGER ) * + + CASE + 39 WHEN + 47 THEN 21 END ) ) + + COUNT ( * )
----
4775

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT + + MAX( ALL + - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-7838
SELECT + + MAX ( ALL + - 50 ) AS col2
----
-50

query I rowsort
SELECT - + 63 + + + 81 AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - - COALESCE ( - 79, 84 ) * + + 74 AS col2
----
-5846

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT ALL + - 62 DIV + 1
----
-62

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + - 62 / + 1
----
-62

query I rowsort
SELECT DISTINCT + + 35 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT ALL - - 42 * - + 89 + - COUNT( * ) + COUNT( * ) + + 27 AS col0
----
-3711

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - - 42 * - + 89 + - COUNT ( * ) + COUNT ( * ) + + 27 AS col0
----
-3711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7845
SELECT ALL - 51 * 49 DIV 81 + - MIN( + ( + 21 ) ) + + 77
----
26

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL - 51 * 49 / 81 + - MIN ( + ( + 21 ) ) + + 77
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT - COUNT( * ) AS col1, + COUNT( * ) + - 12 + - 46
----
-1
-57

skipif mysql # not compatible
query II rowsort label-7846
SELECT - COUNT ( * ) AS col1, + COUNT ( * ) + - 12 + - 46
----
-1
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7847
SELECT - 24 DIV COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7847
SELECT - 24 / COUNT ( * ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT MIN( DISTINCT + + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-7848
SELECT MIN ( DISTINCT + + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT ALL + 13 * - + 82 * - COUNT( * ) AS col0
----
1066

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL + 13 * - + 82 * - COUNT ( * ) AS col0
----
1066

onlyif mysql # aggregate syntax: 
query II rowsort label-7850
SELECT + NULLIF ( + 38, - COUNT( * ) * + 83 * - 60 ) * + 23 AS col1, 5
----
874
5

skipif mysql # not compatible
query II rowsort label-7850
SELECT + NULLIF ( + 38, - COUNT ( * ) * + 83 * - 60 ) * + 23 AS col1, 5
----
874
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7851
SELECT - 11 AS col2, - COUNT( * ) AS col1
----
-11
-1

skipif mysql # not compatible
query II rowsort label-7851
SELECT - 11 AS col2, - COUNT ( * ) AS col1
----
-11
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT - SUM( DISTINCT - 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7852
SELECT - SUM ( DISTINCT - 70 ) AS col0
----
70

query II rowsort
SELECT ALL 68, 37 AS col1
----
68
37

query II rowsort
SELECT DISTINCT 25 AS col1, 9
----
25
9

query I rowsort
SELECT + 16 - - + 10 col0
----
26

query I rowsort
SELECT + 75 * - 80
----
-6000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7857
SELECT - CAST( + - NULLIF ( 0, + COUNT( * ) + - - 76 ) AS SIGNED ) + ( SUM( + 65 ) ) + - ( 90 ) + - 27 DIV + 2
----
-38

skipif mysql # not compatible
query I rowsort label-7857
SELECT - CAST ( + - NULLIF ( 0, + COUNT ( * ) + - - 76 ) AS INTEGER ) + ( SUM ( + 65 ) ) + - ( 90 ) + - 27 / + 2
----
-38

query I rowsort
SELECT - ( - - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT DISTINCT + COALESCE ( + 5, - COUNT( * ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT + COALESCE ( + 5, - COUNT ( * ) ) AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT 24 DIV - + ( - 15 ) + 61
----
62

skipif mysql # not compatible
query I rowsort label-7860
SELECT 24 / - + ( - 15 ) + 61
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL CASE 2 WHEN + COUNT( * ) THEN NULL WHEN 45 THEN 33 * - + COUNT( * ) + - - 99 END * 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL CASE 2 WHEN + COUNT ( * ) THEN NULL WHEN 45 THEN 33 * - + COUNT ( * ) + - - 99 END * 22 AS col0
----
NULL

query I rowsort
SELECT ALL + 61 + + 62 AS col0
----
123

query I rowsort
SELECT DISTINCT + 2 + ( + ( - + 73 ) ) + - + 71 + + + 76 * + + 66
----
4874

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL 73 + + 76 + COUNT( * ) * - 86
----
63

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL 73 + + 76 + COUNT ( * ) * - 86
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7865
SELECT 75 * - 46 + 44 DIV + - 43
----
-3451

skipif mysql # not compatible
query I rowsort label-7865
SELECT 75 * - 46 + 44 / + - 43
----
-3451

onlyif mysql # aggregate syntax: 
query II rowsort label-7866
SELECT ALL COUNT( * ) + - MAX( ALL - 34 ) AS col2, ( 52 ) AS col2
----
35
52

skipif mysql # not compatible
query II rowsort label-7866
SELECT ALL COUNT ( * ) + - MAX ( ALL - 34 ) AS col2, ( 52 ) AS col2
----
35
52

query I rowsort
SELECT + ( - 33 ) col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL - MAX( ALL 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL - MAX ( ALL 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT NULLIF ( - 73, 95 ) * + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-7869
SELECT NULLIF ( - 73, 95 ) * + COUNT ( * )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-7870
SELECT + 9 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-7870
SELECT + 9 / 70
----
0

query II rowsort
SELECT + - 94 col1, - 90
----
-94
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-7872
SELECT DISTINCT 57 + 94 / + COUNT( * ) * + CASE - 6 WHEN - + COUNT( * ) THEN + + ( 80 ) END, 38 AS col2
----
NULL
38

skipif mysql # not compatible
query II rowsort label-7872
SELECT DISTINCT 57 + 94 / + COUNT ( * ) * + CASE - 6 WHEN - + COUNT ( * ) THEN + + ( 80 ) END, 38 AS col2
----
NULL
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL - - COUNT( * ) + COALESCE ( - - 31, - - 28, + 85 * - + ( - + COUNT( - NULLIF ( - + 26, + 42 * - 43 * + 39 ) ) ) * - + 26 * - 33 - 6 + - + 33, - COUNT( * ) * + + 36 + 13 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL - - COUNT ( * ) + COALESCE ( - - 31, - - 28, + 85 * - + ( - + COUNT ( - NULLIF ( - + 26, + 42 * - 43 * + 39 ) ) ) * - + 26 * - 33 - 6 + - + 33, - COUNT ( * ) * + + 36 + 13 ) AS col2
----
32

query I rowsort
SELECT DISTINCT + 95 * - + ( + + 24 ) * - 49 AS col0
----
111720

query I rowsort
SELECT DISTINCT - 84 * - + 64 AS col0
----
5376

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL + 51 * 74 + + 39 + SUM( - 19 ) + - 87 * 66 col1
----
-1948

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL + 51 * 74 + + 39 + SUM ( - 19 ) + - 87 * 66 col1
----
-1948

query I rowsort
SELECT ALL 42 - + 56 * - 40 AS col2
----
2282

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT 46 * + COUNT( * ) * - - 13 - - + 3
----
601

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT 46 * + COUNT ( * ) * - - 13 - - + 3
----
601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT CAST( NULL AS SIGNED ) * + + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT CAST ( NULL AS INTEGER ) * + + 71 AS col0
----
NULL

query I rowsort
SELECT 79 * - 77 AS col0
----
-6083

query I rowsort
SELECT ALL - ( + + COALESCE ( 2, - 66 ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT 45 * - + MAX( DISTINCT ( 52 ) ) + + - CASE 65 WHEN 76 THEN NULL WHEN - + 35 THEN NULL WHEN - - 58 THEN 69 END - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT 45 * - + MAX ( DISTINCT ( 52 ) ) + + - CASE 65 WHEN 76 THEN NULL WHEN - + 35 THEN NULL WHEN - - 58 THEN 69 END - 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7883
SELECT 85 - 1, + COUNT( * ) * + - 34 AS col2
----
84
-34

skipif mysql # not compatible
query II rowsort label-7883
SELECT 85 - 1, + COUNT ( * ) * + - 34 AS col2
----
84
-34

query I rowsort
SELECT 98 + - 63 * 0 AS col1
----
98

query I rowsort
SELECT 69 * - + 78 * + 67
----
-360594

query I rowsort
SELECT 75 + 44 col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT DISTINCT - COUNT( * ) * + - 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT - COUNT ( * ) * + - 80 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL - 19 * - COUNT( DISTINCT + + 90 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL - 19 * - COUNT ( DISTINCT + + 90 ) col1
----
19

query II rowsort
SELECT ALL - 46 * - 58 AS col2, + 95 + 24 AS col2
----
2668
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT 68 * + COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-7890
SELECT 68 * + COUNT ( * ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT COUNT( * ) + 57
----
58

skipif mysql # not compatible
query I rowsort label-7891
SELECT COUNT ( * ) + 57
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7892
SELECT 19 + + CAST( NULL AS DECIMAL ) * - 13 * + 23 + - - 77 / + 98 * + 54 * MAX( + 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7892
SELECT 19 + + CAST ( NULL AS REAL ) * - 13 * + 23 + - - 77 / + 98 * + 54 * MAX ( + 80 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT 94 * - COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-7893
SELECT 94 * - COUNT ( * ) AS col1
----
-94

query I rowsort
SELECT DISTINCT 46 col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 26
----
NULL

query I rowsort
SELECT ALL + - ( + - 49 ) + 93
----
142

query II rowsort
SELECT DISTINCT 62 + - 73 col2, + 59 + - + 35
----
-11
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT - 79 * + ( - + COUNT( * ) ) - + + 32 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7898
SELECT - 79 * + ( - + COUNT ( * ) ) - + + 32 AS col1
----
47

query I rowsort
SELECT ALL 19 * + 20
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT DISTINCT - 91 + 55 - SUM( 28 )
----
-64

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT - 91 + 55 - SUM ( 28 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT + 16 + 42 + - + 92 + - + 82 * - COUNT( * ) * + 59 + + - COUNT( * ) + + - 10 * - + 2 AS col0
----
4823

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT + 16 + 42 + - + 92 + - + 82 * - COUNT ( * ) * + 59 + + - COUNT ( * ) + + - 10 * - + 2 AS col0
----
4823

query I rowsort
SELECT ALL 46 + + - 44 * 26 AS col1
----
-1098

query I rowsort
SELECT 66 * - 20 * 41 * + - 71 * + + 18 + - + 23
----
69165337

query I rowsort
SELECT ALL - - 90 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7905
SELECT - 29 - + 0 DIV - ( + 87 ) DIV - COALESCE ( + - 38, - + 86 DIV - - 8 + - - 74 * + ( - ( - 58 ) ) + + 59 + - - 57 + 88 * CAST( NULL AS SIGNED ) ) + 28 + 80
----
79

skipif mysql # not compatible
query I rowsort label-7905
SELECT - 29 - + 0 / - ( + 87 ) / - COALESCE ( + - 38, - + 86 / - - 8 + - - 74 * + ( - ( - 58 ) ) + + 59 + - - 57 + 88 * CAST ( NULL AS INTEGER ) ) + 28 + 80
----
79

query II rowsort
SELECT DISTINCT + 55 - - - 33 AS col2, 12 AS col2
----
22
12

query I rowsort
SELECT ALL - + 13 col0
----
-13

query I rowsort
SELECT DISTINCT - - 87
----
87

query I rowsort
SELECT 68 * ( 86 ) col1
----
5848

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT 27 - 72 * - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-7910
SELECT 27 - 72 * - COUNT ( * )
----
99

query I rowsort
SELECT DISTINCT 6 * + - 22
----
-132

query I rowsort
SELECT 78 * - 82
----
-6396

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT ALL - 50 * - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL - 50 * - COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT 68 * - SUM( ALL + 31 )
----
-2108

skipif mysql # not compatible
query I rowsort label-7914
SELECT 68 * - SUM ( ALL + 31 )
----
-2108

query I rowsort
SELECT 4 * + 51
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT ALL 5 * - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL 5 * - COUNT ( * )
----
-5

query I rowsort
SELECT 74 - 68 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT - SUM( DISTINCT + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-7918
SELECT - SUM ( DISTINCT + 33 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7919
SELECT 15 AS col0, CAST( NULL AS SIGNED ) AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-7919
SELECT 15 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
15
NULL

query II rowsort
SELECT ALL 75, - 93 col2
----
75
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7921
SELECT DISTINCT - 33 + MAX( ALL 89 ) - - 95 DIV - - 81 * - COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT - 33 + MAX ( ALL 89 ) - - 95 / - - 81 * - COUNT ( * ) AS col0
----
55

query I rowsort
SELECT 29 * + - 43 AS col2
----
-1247

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL - COALESCE ( - 33, COUNT( * ) ) + + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - COALESCE ( - 33, COUNT ( * ) ) + + COUNT ( * ) AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7924
SELECT COUNT( * ) - 37 + - 58 * + 39 * + AVG ( + - 86 ) * + - 20 - 17 + - + 4 + + CASE - - 89 WHEN ( 34 ) + - 97 / - 59 THEN NULL WHEN COALESCE ( MAX( DISTINCT - 68 ), - + ( - 88 ) - - + 98 ) THEN - 50 + - 38 * + 31 END * - + 35 - + - 84 + + CAST( 83 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT COUNT ( * ) - 37 + - 58 * + 39 * + AVG ( + - 86 ) * + - 20 - 17 + - + 4 + + CASE - - 89 WHEN ( 34 ) + - 97 / - 59 THEN NULL WHEN COALESCE ( MAX ( DISTINCT - 68 ), - + ( - 88 ) - - + 98 ) THEN - 50 + - 38 * + 31 END * - + 35 - + - 84 + + CAST ( 83 AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - 85 ) + + 60 * 42 AS col2
----
2605

query I rowsort
SELECT DISTINCT 4 + 44 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT COUNT( ALL 67 )
----
1

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT COUNT ( ALL 67 )
----
1

query I rowsort
SELECT - 33 * + 86 AS col1
----
-2838

query I rowsort
SELECT ALL - 16 + + - 81
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT - 9 * + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-7930
SELECT - 9 * + COUNT ( * )
----
-9

query I rowsort
SELECT - 97 + 47
----
-50

query I rowsort
SELECT - 3 - 42
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL - NULLIF ( ( 20 ), 37 / 42 - 18 ) * COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL - NULLIF ( ( 20 ), 37 / 42 - 18 ) * COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT - 79 - - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-7934
SELECT - 79 - - COUNT ( * )
----
-78

query I rowsort
SELECT ALL COALESCE ( 64, ( 16 ), 20 ) AS col0
----
64

query I rowsort
SELECT - 49 + 98 col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7937
SELECT ALL + ( - MIN( DISTINCT CAST( 68 AS SIGNED ) ) ) - - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL + ( - MIN ( DISTINCT CAST ( 68 AS INTEGER ) ) ) - - 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT NULLIF ( 21, ( 68 ) * + COUNT( * ) + 79 )
----
21

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT NULLIF ( 21, ( 68 ) * + COUNT ( * ) + 79 )
----
21

query I rowsort
SELECT DISTINCT + ( 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7940
SELECT - COUNT( * ) + 85 DIV - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-7940
SELECT - COUNT ( * ) + 85 / - COUNT ( * )
----
-86

query I rowsort
SELECT DISTINCT + 92 col2
----
92

query I rowsort
SELECT - 7 * - 80
----
560

query I rowsort
SELECT + 13 * 3 AS col0
----
39

query I rowsort
SELECT COALESCE ( ( + 96 ), 98 ) AS col0
----
96

query I rowsort
SELECT ALL - 63 * 38
----
-2394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7946
SELECT NULLIF ( - CAST( NULL AS SIGNED ), ( NULLIF ( - 56, + MAX( 6 ) ) ) * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), ( NULLIF ( - 56, + MAX ( 6 ) ) ) * - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT + COUNT( - 30 ) + 58 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7947
SELECT + COUNT ( - 30 ) + 58 AS col0
----
59

query I rowsort
SELECT ALL 71 * - 47 AS col0
----
-3337

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT + SUM( DISTINCT + 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7949
SELECT + SUM ( DISTINCT + 48 ) AS col0
----
48

query I rowsort
SELECT ALL + 40 col1
----
40

query I rowsort
SELECT DISTINCT + 46 * 22
----
1012

query I rowsort
SELECT DISTINCT + 26 AS col1
----
26

query I rowsort
SELECT ALL 31 * 58 + + 79 AS col1
----
1877

query I rowsort
SELECT + 44 * 53 + - 59 * 4 AS col0
----
2096

query I rowsort
SELECT - 70 - 94
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT + ( COUNT( DISTINCT 74 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7956
SELECT + ( COUNT ( DISTINCT 74 ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT CAST( NULL AS SIGNED ) * 80 + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT CAST ( NULL AS INTEGER ) * 80 + - 61
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT DISTINCT + AVG ( DISTINCT - 69 ) * - 21 + + 64 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT + AVG ( DISTINCT - 69 ) * - 21 + + 64 * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL CASE ( - 0 ) WHEN 32 THEN 68 ELSE + 22 * + 71 - - ( - 60 ) * + 94 END * + 2 AS col0
----
-8156

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT + ( 47 ) DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT + ( 47 ) / + 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT + 69 DIV 21
----
3

skipif mysql # not compatible
query I rowsort label-7961
SELECT + 69 / 21
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT - NULLIF ( - 55, - COUNT( * ) * COALESCE ( + 63, - 21 ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7962
SELECT - NULLIF ( - 55, - COUNT ( * ) * COALESCE ( + 63, - 21 ) ) AS col0
----
55

query I rowsort
SELECT ALL 45 + 82 * 2
----
209

query I rowsort
SELECT ALL 51 + - 88
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7965
SELECT + 57 + - COALESCE ( - ( - ( 97 ) ), - 29, + 78 - - 2, 82 ) DIV + 76 col1
----
56

skipif mysql # not compatible
query I rowsort label-7965
SELECT + 57 + - COALESCE ( - ( - ( 97 ) ), - 29, + 78 - - 2, 82 ) / + 76 col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT 63 + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT 63 + COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL COUNT( 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL COUNT ( 35 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7968
SELECT ALL COALESCE ( - 15, 68 DIV + SUM( + 26 DIV NULLIF ( + 35, - 59 ) ) + COUNT( - 78 ), MAX( ALL 5 ) * COUNT( * ) ) + - 30
----
-45

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL COALESCE ( - 15, 68 / + SUM ( + 26 / NULLIF ( + 35, - 59 ) ) + COUNT ( - 78 ), MAX ( ALL 5 ) * COUNT ( * ) ) + - 30
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7969
SELECT ALL 98 * CAST( 74 AS SIGNED ) AS col1
----
7252

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL 98 * CAST ( 74 AS INTEGER ) AS col1
----
7252

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT + COUNT( * ) * - 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-7970
SELECT + COUNT ( * ) * - 35 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL SUM( DISTINCT 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL SUM ( DISTINCT 39 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT - - MIN( ALL + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7972
SELECT - - MIN ( ALL + 54 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7973
SELECT - + 71 + COUNT( * ) DIV + 75 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7973
SELECT - + 71 + COUNT ( * ) / + 75 AS col0
----
-71

query I rowsort
SELECT - + 26 AS col0
----
-26

query I rowsort
SELECT - - 96 + + 28 AS col0
----
124

query I rowsort
SELECT ALL + 91 - - 89 col0
----
180

query I rowsort
SELECT - + 21 + + 2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7978
SELECT DISTINCT + 57 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT + 57 / 50
----
1

query I rowsort
SELECT + - 52 * 18 AS col1
----
-936

query I rowsort
SELECT ALL ( + 20 ) AS col0
----
20

query I rowsort
SELECT ALL + - 20 * + 20
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT DISTINCT + COUNT( * ) * + 12
----
12

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT + COUNT ( * ) * + 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT - CASE ( NULLIF ( + 12, 23 ) ) WHEN COUNT( * ) THEN 14 WHEN 43 THEN + ( 43 ) END / 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT - CASE ( NULLIF ( + 12, 23 ) ) WHEN COUNT ( * ) THEN 14 WHEN 43 THEN + ( 43 ) END / 87 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7984
SELECT - ( 30 ) DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7984
SELECT - ( 30 ) / 77 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT + 64 * MIN( - 6 + - 27 * + NULLIF ( + 61, 88 ) ) col1
----
-105792

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT + 64 * MIN ( - 6 + - 27 * + NULLIF ( + 61, 88 ) ) col1
----
-105792

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ( + COUNT( * ) ) * + 47 - - 86 col1
----
133

skipif mysql # not compatible
query I rowsort label-7986
SELECT ( + COUNT ( * ) ) * + 47 - - 86 col1
----
133

query I rowsort
SELECT - - 94 * 34
----
3196

query I rowsort
SELECT DISTINCT - + 91 * 28 AS col0
----
-2548

onlyif mysql # DIV for integer division: 
query I rowsort label-7989
SELECT - - 9 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7989
SELECT - - 9 / 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - - ( - 87 ) * + MIN( + 15 * - 25 ) AS col0
----
32625

skipif mysql # not compatible
query I rowsort label-7990
SELECT - - ( - 87 ) * + MIN ( + 15 * - 25 ) AS col0
----
32625

query I rowsort
SELECT ALL - 45 * 42 AS col0
----
-1890

query I rowsort
SELECT - + 34 * 77
----
-2618

query I rowsort
SELECT DISTINCT - ( + 24 ) * - 18
----
432

query I rowsort
SELECT ALL + ( + 11 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7995
SELECT ALL - MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) / + 80 + ( + NULLIF ( - 61, 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) / + 80 + ( + NULLIF ( - 61, 65 ) )
----
NULL

query I rowsort
SELECT 96 * 91 * 96 - 92 AS col2
----
838564

onlyif mysql # DIV for integer division: 
query I rowsort label-7997
SELECT ALL 53 DIV + 94 + 45 * - 32 col1
----
-1440

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL 53 / + 94 + 45 * - 32 col1
----
-1440

query I rowsort
SELECT + NULLIF ( + - 53, 14 )
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7999
SELECT ALL 59 DIV - + 43 + + 8
----
7

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL 59 / - + 43 + + 8
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT ALL 27 DIV - 97 + + 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL 27 / - 97 + + 85 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT + ( + - 95 ) * + COUNT( * ) + - 60 AS col2
----
-155

skipif mysql # not compatible
query I rowsort label-8001
SELECT + ( + - 95 ) * + COUNT ( * ) + - 60 AS col2
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT + 93 + - - 91 * COUNT( * ) AS col0
----
184

skipif mysql # not compatible
query I rowsort label-8002
SELECT + 93 + - - 91 * COUNT ( * ) AS col0
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT + 50 * + 9 * - 48 + ( COUNT( * ) - + 10 ) AS col0
----
-21609

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT + 50 * + 9 * - 48 + ( COUNT ( * ) - + 10 ) AS col0
----
-21609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8004
SELECT DISTINCT - 83 * COALESCE ( - COUNT( * ), + 82 DIV 55, 9 ) + - 86 DIV 76
----
82

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT - 83 * COALESCE ( - COUNT ( * ), + 82 / 55, 9 ) + - 86 / 76
----
82

query I rowsort
SELECT ALL + 33 + 3
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT COUNT( * ) * + 45
----
45

skipif mysql # not compatible
query I rowsort label-8006
SELECT COUNT ( * ) * + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT DISTINCT + COUNT( * ) + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT + COUNT ( * ) + - 72
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT - COUNT( * ) * + COUNT( * ) + - 7 * + ( - 36 ) AS col1
----
251

skipif mysql # not compatible
query I rowsort label-8008
SELECT - COUNT ( * ) * + COUNT ( * ) + - 7 * + ( - 36 ) AS col1
----
251

query I rowsort
SELECT ALL + 89 + + 75 * 98 col2
----
7439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8010
SELECT 9 + 65 DIV - MIN( ALL 51 * 75 )
----
9

skipif mysql # not compatible
query I rowsort label-8010
SELECT 9 + 65 / - MIN ( ALL 51 * 75 )
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8011
SELECT CAST( NULL AS DECIMAL ) * + - 52 * 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT CAST ( NULL AS REAL ) * + - 52 * 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8012
SELECT + COUNT( * ) DIV 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8012
SELECT + COUNT ( * ) / 25 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL 85 - - + COUNT( ALL - 67 )
----
86

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL 85 - - + COUNT ( ALL - 67 )
----
86

query I rowsort
SELECT ALL ( 82 ) col2
----
82

query I rowsort
SELECT DISTINCT 95 * 23 col0
----
2185

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT DISTINCT - - COUNT( * ) - COUNT( * ) + + 91 * + 38
----
3458

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT - - COUNT ( * ) - COUNT ( * ) + + 91 * + 38
----
3458

query I rowsort
SELECT - 82 - + + 8 * 97 col2
----
-858

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT 64 + - + 66 DIV + 45
----
63

skipif mysql # not compatible
query I rowsort label-8018
SELECT 64 + - + 66 / + 45
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT DISTINCT - MIN( - 44 ) * - 35
----
-1540

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT - MIN ( - 44 ) * - 35
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT + COUNT( * ) + + - COUNT( * ) + 25 * 16 AS col1
----
400

skipif mysql # not compatible
query I rowsort label-8020
SELECT + COUNT ( * ) + + - COUNT ( * ) + 25 * 16 AS col1
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - MIN( 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-8021
SELECT - MIN ( 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT - COUNT( * ) * ( 62 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8022
SELECT - COUNT ( * ) * ( 62 ) AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8023
SELECT ALL + 35 * - NULLIF ( CAST( 65 AS SIGNED ), - 69 ) AS col0
----
-2275

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL + 35 * - NULLIF ( CAST ( 65 AS INTEGER ), - 69 ) AS col0
----
-2275

query I rowsort
SELECT ( - + 56 ) + 80 col1
----
24

query I rowsort
SELECT + 32 - + 95
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8026
SELECT NULLIF ( - - 97, COALESCE ( 85, + ( COUNT( * ) ), 43 * 31 ) / ( 17 ) + - 43 / + 85 ) - CASE + 64 WHEN - COUNT( * ) THEN 14 WHEN - NULLIF ( - 81, COALESCE ( CAST( - 53 AS DECIMAL ), - 27, 50 ) ) * - 8 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT NULLIF ( - - 97, COALESCE ( 85, + ( COUNT ( * ) ), 43 * 31 ) / ( 17 ) + - 43 / + 85 ) - CASE + 64 WHEN - COUNT ( * ) THEN 14 WHEN - NULLIF ( - 81, COALESCE ( CAST ( - 53 AS REAL ), - 27, 50 ) ) * - 8 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8027
SELECT CAST( NULL AS DECIMAL ) + + + 41 + 84 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT CAST ( NULL AS REAL ) + + + 41 + 84 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL ( + - COUNT ( * ) )
----
-1

query I rowsort
SELECT - + 66 col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL - + COUNT( * ) + + - MAX( 0 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL - + COUNT ( * ) + + - MAX ( 0 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8031
SELECT - 5 DIV + + 53 + 60 col0
----
60

skipif mysql # not compatible
query I rowsort label-8031
SELECT - 5 / + + 53 + 60 col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT DISTINCT COUNT( * ) + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT COUNT ( * ) + - 96
----
-95

query I rowsort
SELECT ALL 88 + - 47
----
41

query I rowsort
SELECT ALL - 1 + - 98 AS col1
----
-99

query I rowsort
SELECT 78 * + 30 * 24
----
56160

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT ALL - COUNT( ALL + 36 ) * MAX( 8 ) + + 3 * ( - 68 ) AS col0
----
-212

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL - COUNT ( ALL + 36 ) * MAX ( 8 ) + + 3 * ( - 68 ) AS col0
----
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ALL - MIN( + 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL - MIN ( + 45 ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8038
SELECT DISTINCT - 61, - CASE + 60 WHEN COUNT( * ) THEN CAST( NULL AS SIGNED ) / - 62 - 8 / + ( + 17 * 51 + COALESCE ( 59 + + 64, + 95 * 24 ) ) END * 41 AS col0
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-8038
SELECT DISTINCT - 61, - CASE + 60 WHEN COUNT ( * ) THEN CAST ( NULL AS INTEGER ) / - 62 - 8 / + ( + 17 * 51 + COALESCE ( 59 + + 64, + 95 * 24 ) ) END * 41 AS col0
----
-61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT + NULLIF ( 32, COUNT( * ) + 1 ) + 23 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT + NULLIF ( 32, COUNT ( * ) + 1 ) + 23 AS col1
----
55

query I rowsort
SELECT ALL + 2 + + - 32
----
-30

query II rowsort
SELECT DISTINCT - 80 AS col1, 60
----
-80
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT 3 * + - CAST( + - 25 AS SIGNED ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8042
SELECT 3 * + - CAST ( + - 25 AS INTEGER ) AS col2
----
75

query II rowsort
SELECT 39 AS col0, 98 col1
----
39
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL - SUM( 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - SUM ( 71 ) AS col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8045
SELECT 19 + - + 58 DIV - - 41
----
18

skipif mysql # not compatible
query I rowsort label-8045
SELECT 19 + - + 58 / - - 41
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8046
SELECT CASE - 44 WHEN - COUNT( * ) THEN NULL WHEN - 90 - COUNT( * ) THEN + 58 * + CAST( NULL AS SIGNED ) END * CAST( + 65 + 95 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT CASE - 44 WHEN - COUNT ( * ) THEN NULL WHEN - 90 - COUNT ( * ) THEN + 58 * + CAST ( NULL AS INTEGER ) END * CAST ( + 65 + 95 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL + COUNT( DISTINCT + 86 ) * 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL + COUNT ( DISTINCT + 86 ) * 23 AS col0
----
23

query I rowsort
SELECT 28 * - - 71 col0
----
1988

query I rowsort
SELECT 40 + - 81 + 55 * 22
----
1169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8050
SELECT DISTINCT + 63 * 29 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT + 63 * 29 * - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL MIN( DISTINCT 53 )
----
53

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL MIN ( DISTINCT 53 )
----
53

query I rowsort
SELECT + ( - - 44 ) + - 90
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT ALL + - COUNT( * ) - 21
----
-22

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL + - COUNT ( * ) - 21
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT DISTINCT + CAST( 78 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT + CAST ( 78 AS INTEGER )
----
78

query II rowsort
SELECT DISTINCT 70, + COALESCE ( + 44, 61 ) + 9 col1
----
70
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT ALL CAST( + COALESCE ( 97, 59 * + 3, + 82 + COALESCE ( + 76, 0 / 78 - 67 ) ) AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL CAST ( + COALESCE ( 97, 59 * + 3, + 82 + COALESCE ( + 76, 0 / 78 - 67 ) ) AS INTEGER )
----
97

query I rowsort
SELECT DISTINCT - 37 col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8058
SELECT + 7 * + 75 DIV + 24 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8058
SELECT + 7 * + 75 / + 24 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8059
SELECT - + NULLIF ( + CAST( NULL AS SIGNED ), + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT - + NULLIF ( + CAST ( NULL AS INTEGER ), + 20 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT - COUNT( * ) + COUNT( 18 ) - 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8060
SELECT - COUNT ( * ) + COUNT ( 18 ) - 24 AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8061
SELECT ALL ( - 99 ) DIV 90 * 69 + COUNT( * ) * + 30 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL ( - 99 ) / 90 * 69 + COUNT ( * ) * + 30 AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT - 74 DIV 31 + - + 53
----
-55

skipif mysql # not compatible
query I rowsort label-8062
SELECT - 74 / 31 + - + 53
----
-55

query I rowsort
SELECT ALL ( + + 30 ) * - 95 * ( - 89 ) + + 75
----
253725

query II rowsort
SELECT + 82, 18 col0
----
82
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8065
SELECT ALL - + COALESCE ( - 44, - COALESCE ( ( + 69 ), 58 ), + 21 ) DIV - 29
----
-1

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL - + COALESCE ( - 44, - COALESCE ( ( + 69 ), 58 ), + 21 ) / - 29
----
-1

query I rowsort
SELECT ALL 26 + + + 94 + 90 AS col0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT - COALESCE ( + COUNT( - + 72 ), 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-8067
SELECT - COALESCE ( + COUNT ( - + 72 ), 77 )
----
-1

query I rowsort
SELECT ALL + 6 * - 1 + + 34 * 91
----
3088

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT DISTINCT CASE 71 WHEN - - ( - 32 ) + 35 THEN - 64 WHEN + 87 + + 85 * - 21 THEN NULL END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT CASE 71 WHEN - - ( - 32 ) + 35 THEN - 64 WHEN + 87 + + 85 * - 21 THEN NULL END + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 29 * + - 28 + + 36
----
-776

query I rowsort
SELECT + 23 * + + 0 + + 34 + - 54
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT + MIN( DISTINCT + 50 ) - + 41 * - 34
----
1444

skipif mysql # not compatible
query I rowsort label-8072
SELECT + MIN ( DISTINCT + 50 ) - + 41 * - 34
----
1444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8073
SELECT COALESCE ( + + ( - - 29 ), 2 * 37, 80 ) / - 53 - MAX( ALL + CAST( NULL AS SIGNED ) + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT COALESCE ( + + ( - - 29 ), 2 * 37, 80 ) / - 53 - MAX ( ALL + CAST ( NULL AS INTEGER ) + 31 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT CASE + 86 WHEN - 55 + - 37 THEN 81 / + 42 + 93 WHEN + 74 * - COUNT( * ) THEN + 7 + + AVG ( 10 ) / - 89 WHEN + 58 THEN - MAX( 26 ) - - 80 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT CASE + 86 WHEN - 55 + - 37 THEN 81 / + 42 + 93 WHEN + 74 * - COUNT ( * ) THEN + 7 + + AVG ( 10 ) / - 89 WHEN + 58 THEN - MAX ( 26 ) - - 80 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 23 * - - 56 * - 51
----
-65688

query I rowsort
SELECT ALL - 29 * - 94 + - 84 AS col1
----
2642

query I rowsort
SELECT ALL - 79 * 62 + + CASE + 92 WHEN - 0 THEN - ( - 13 ) + 3 END * - 98 AS col0
----
NULL

query I rowsort
SELECT 34 * + + 14 * - 30 - - 69 AS col2
----
-14211

query I rowsort
SELECT ALL - 61 * - - 64 AS col2
----
-3904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8080
SELECT DISTINCT - 35 * - + 43 * - COUNT( * ) DIV - - NULLIF ( COUNT( * ), - 10 + + 4 DIV 18 ) - - 13
----
-1492

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT - 35 * - + 43 * - COUNT ( * ) / - - NULLIF ( COUNT ( * ), - 10 + + 4 / 18 ) - - 13
----
-1492

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL + CASE - 65 WHEN - + 56 THEN NULL WHEN COUNT( * ) * 27 THEN 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL + CASE - 65 WHEN - + 56 THEN NULL WHEN COUNT ( * ) * 27 THEN 47 END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 14, 73 ) * - 84 - 62 AS col2
----
-1238

query I rowsort
SELECT + 81 * 97 * - 60 AS col0
----
-471420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8084
SELECT - 87 * - - 61 * + ( 37 ) DIV COUNT( 59 + 9 ) AS col2
----
-196359

skipif mysql # not compatible
query I rowsort label-8084
SELECT - 87 * - - 61 * + ( 37 ) / COUNT ( 59 + 9 ) AS col2
----
-196359

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT MAX( ( 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8085
SELECT MAX ( ( 1 ) )
----
1

query I rowsort
SELECT + CASE + 20 WHEN - 7 THEN NULL ELSE + + 5 END
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT - CASE 42 WHEN - + 60 + - COUNT( * ) THEN NULL ELSE COUNT( * ) END + 42 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8087
SELECT - CASE 42 WHEN - + 60 + - COUNT ( * ) THEN NULL ELSE COUNT ( * ) END + 42 AS col2
----
41

query I rowsort
SELECT 71 * ( - - 50 ) - + 66 AS col1
----
3484

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT + 51 * - MIN( ALL - 78 )
----
3978

skipif mysql # not compatible
query I rowsort label-8089
SELECT + 51 * - MIN ( ALL - 78 )
----
3978

query I rowsort
SELECT ALL 30 * + + 46 - + ( NULLIF ( 41, + 30 + - 44 ) ) AS col0
----
1339

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT - COUNT( * ) * 76 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-8091
SELECT - COUNT ( * ) * 76 AS col0
----
-76

query I rowsort
SELECT ALL ( 68 ) * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL + + MIN( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL + + MIN ( 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT - 1 * + MAX( - 78 ) - 28 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8094
SELECT - 1 * + MAX ( - 78 ) - 28 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT + COUNT( DISTINCT - ( + 26 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8095
SELECT + COUNT ( DISTINCT - ( + 26 ) ) AS col2
----
1

query I rowsort
SELECT - 31 + 61 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT ALL - ( ( - + CASE - 40 WHEN 7 * ( 64 ) THEN - 86 END ) ) * - MAX( DISTINCT + 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - ( ( - + CASE - 40 WHEN 7 * ( 64 ) THEN - 86 END ) ) * - MAX ( DISTINCT + 50 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8098
SELECT - 44 + 42 AS col0, CAST( NULL AS SIGNED )
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-8098
SELECT - 44 + 42 AS col0, CAST ( NULL AS INTEGER )
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT - NULLIF ( 11, - CASE + 74 WHEN 81 * 80 THEN NULL WHEN - ( 85 ) THEN - SUM( ALL 14 ) * 20 END * COUNT( * ) + 2 ) * 8 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-8099
SELECT - NULLIF ( 11, - CASE + 74 WHEN 81 * 80 THEN NULL WHEN - ( 85 ) THEN - SUM ( ALL 14 ) * 20 END * COUNT ( * ) + 2 ) * 8 AS col1
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8100
SELECT DISTINCT - COUNT( 4 ) + ( 92 ) + + 79 DIV - 65 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT - COUNT ( 4 ) + ( 92 ) + + 79 / - 65 AS col1
----
90

query I rowsort
SELECT ALL + ( + 66 ) + + 13 + - 38 AS col2
----
41

query I rowsort
SELECT - - 21 - - 15
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT DISTINCT + NULLIF ( ( + - 89 ), - + COUNT( 76 ) + ( - 20 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT + NULLIF ( ( + - 89 ), - + COUNT ( 76 ) + ( - 20 ) )
----
-89

query I rowsort
SELECT ALL - + 42 + - 78
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8105
SELECT ALL + - COUNT( * ) + + COUNT( * ) + + 51 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL + - COUNT ( * ) + + COUNT ( * ) + + 51 / 98
----
0

query I rowsort
SELECT + ( - + 77 ) AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8107
SELECT ALL - ( + ( - + COUNT( * ) ) ) + + 13 DIV COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL - ( + ( - + COUNT ( * ) ) ) + + 13 / COUNT ( * )
----
14

query I rowsort
SELECT - 47 + 48 + + 58 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8109
SELECT + 16 * - 93 * + CAST( + - 54 AS SIGNED ) + 76
----
80428

skipif mysql # not compatible
query I rowsort label-8109
SELECT + 16 * - 93 * + CAST ( + - 54 AS INTEGER ) + 76
----
80428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8110
SELECT - CASE - + 16 WHEN - + COUNT( + 29 ) THEN ( CASE 48 WHEN CAST( 72 AS SIGNED ) THEN - 1 ELSE NULL END ) + COUNT( * ) * 37 WHEN CASE WHEN - NULLIF ( COUNT( * ), 23 ) BETWEEN ( 29 ) AND NULL THEN NULL ELSE 78 END THEN NULL WHEN + 25 THEN NULL END + + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT - CASE - + 16 WHEN - + COUNT ( + 29 ) THEN ( CASE 48 WHEN CAST ( 72 AS INTEGER ) THEN - 1 ELSE NULL END ) + COUNT ( * ) * 37 WHEN CASE WHEN - NULLIF ( COUNT ( * ), 23 ) BETWEEN ( 29 ) AND NULL THEN NULL ELSE 78 END THEN NULL WHEN + 25 THEN NULL END + + 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8111
SELECT + 30 - + 86, - ( + COUNT( * ) ) + + 52 * + 22 AS col2
----
-56
1143

skipif mysql # not compatible
query II rowsort label-8111
SELECT + 30 - + 86, - ( + COUNT ( * ) ) + + 52 * + 22 AS col2
----
-56
1143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8112
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 53 - 26 AS col0
----
27

query I rowsort
SELECT - 23 + + - 75 + 40 * 77 AS col2
----
2982

query I rowsort
SELECT ALL 35 - + - 58 AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8116
SELECT + 17 + SUM( DISTINCT - 65 ), 43 AS col2
----
-48
43

skipif mysql # not compatible
query II rowsort label-8116
SELECT + 17 + SUM ( DISTINCT - 65 ), 43 AS col2
----
-48
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8117
SELECT + CASE - + COUNT( * ) WHEN 24 THEN NULL WHEN + + 26 * 70 * + ( NULLIF ( + SUM( ALL 16 ), 10 + CASE WHEN NOT - 21 IS NULL THEN + COUNT( * ) END * MIN( ALL + CAST( NULL AS SIGNED ) * + 67 ) ) ) - COUNT( * ) * + 1 THEN + 70 + - 27 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT + CASE - + COUNT ( * ) WHEN 24 THEN NULL WHEN + + 26 * 70 * + ( NULLIF ( + SUM ( ALL 16 ), 10 + CASE WHEN NOT - 21 IS NULL THEN + COUNT ( * ) END * MIN ( ALL + CAST ( NULL AS INTEGER ) * + 67 ) ) ) - COUNT ( * ) * + 1 THEN + 70 + - 27 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8118
SELECT DISTINCT + ( MAX( DISTINCT + 28 ) ), 95 AS col1
----
28
95

skipif mysql # not compatible
query II rowsort label-8118
SELECT DISTINCT + ( MAX ( DISTINCT + 28 ) ), 95 AS col1
----
28
95

query I rowsort
SELECT - CASE - + 90 WHEN - 30 THEN - + 36 * + 22 + 19 END * + 86 + 56 AS col1
----
NULL

query I rowsort
SELECT ( + 72 )
----
72

query I rowsort
SELECT + 63 * 18 AS col0
----
1134

query I rowsort
SELECT + 75 + - - 22 AS col2
----
97

query I rowsort
SELECT + NULLIF ( - + 89, + + 86 ) + + 2 AS col0
----
-87

query I rowsort
SELECT DISTINCT - ( - NULLIF ( - 72, - 50 + NULLIF ( - 83, 11 ) ) ) * 61 AS col0
----
-4392

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL + SUM( DISTINCT + + 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL + SUM ( DISTINCT + + 69 ) AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8126
SELECT ALL + 73, 95 DIV 34 + - CASE 3 WHEN - 62 - 26 * CASE WHEN NOT - 41 * 67 IS NOT NULL THEN 1 + + 20 ELSE 70 END THEN - CASE WHEN NOT NULL NOT IN ( 63 ) THEN - 46 DIV CASE 16 * 40 WHEN 39 - ( - 31 - 16 * - COUNT( * ) ) THEN - ( 77 ) END ELSE + 13 END WHEN 52 THEN + COUNT( * ) * - ( + NULLIF ( + 88, + 27 + - 96 ) ) + - ( - 44 ) ELSE 17 * 26 END + COUNT( * ) AS col1
----
73
-439

skipif mysql # not compatible
query II rowsort label-8126
SELECT ALL + 73, 95 / 34 + - CASE 3 WHEN - 62 - 26 * CASE WHEN NOT - 41 * 67 IS NOT NULL THEN 1 + + 20 ELSE 70 END THEN - CASE WHEN NOT NULL NOT IN ( 63 ) THEN - 46 / CASE 16 * 40 WHEN 39 - ( - 31 - 16 * - COUNT ( * ) ) THEN - ( 77 ) END ELSE + 13 END WHEN 52 THEN + COUNT ( * ) * - ( + NULLIF ( + 88, + 27 + - 96 ) ) + - ( - 44 ) ELSE 17 * 26 END + COUNT ( * ) AS col1
----
73
-439

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT 94 * - 23 + + 24 + - 24 + - + ( + MIN( 15 ) ) * + 13 AS col1
----
-2357

skipif mysql # not compatible
query I rowsort label-8127
SELECT 94 * - 23 + + 24 + - 24 + - + ( + MIN ( 15 ) ) * + 13 AS col1
----
-2357

query I rowsort
SELECT ( - - 83 )
----
83

query I rowsort
SELECT ALL + NULLIF ( + + 4, ( + + 25 ) ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT + 14 * 28 * MIN( ALL + - 60 ) + + 33 * COUNT( * ) AS col1
----
-23487

skipif mysql # not compatible
query I rowsort label-8130
SELECT + 14 * 28 * MIN ( ALL + - 60 ) + + 33 * COUNT ( * ) AS col1
----
-23487

query I rowsort
SELECT ( + - 36 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8132
SELECT + CASE - CASE + 11 WHEN - MAX( 95 ) * NULLIF ( - 26, - 8 + 23 * + 67 ) THEN - 20 * CAST( 96 * COUNT( * ) AS DECIMAL ) ELSE 67 END WHEN CAST( 74 AS SIGNED ) - MAX( DISTINCT NULLIF ( ( 3 ), 39 ) ) THEN 19 * ( 72 ) WHEN 89 THEN - 25 + 36 END / 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT + CASE - CASE + 11 WHEN - MAX ( 95 ) * NULLIF ( - 26, - 8 + 23 * + 67 ) THEN - 20 * CAST ( 96 * COUNT ( * ) AS REAL ) ELSE 67 END WHEN CAST ( 74 AS INTEGER ) - MAX ( DISTINCT NULLIF ( ( 3 ), 39 ) ) THEN 19 * ( 72 ) WHEN 89 THEN - 25 + 36 END / 31 AS col0
----
NULL

query I rowsort
SELECT + 62 * - 36
----
-2232

onlyif mysql # aggregate syntax: 
query II rowsort label-8134
SELECT + 1 + + - COUNT( * ) * COUNT( * ) AS col2, + 85 AS col1
----
0
85

skipif mysql # not compatible
query II rowsort label-8134
SELECT + 1 + + - COUNT ( * ) * COUNT ( * ) AS col2, + 85 AS col1
----
0
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL 82 * 23 + - 44 - 0 + + COUNT( * ) + SUM( DISTINCT - 32 ) AS col1
----
1811

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL 82 * 23 + - 44 - 0 + + COUNT ( * ) + SUM ( DISTINCT - 32 ) AS col1
----
1811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT - 74 * - - 91 / - - CAST( NULL AS SIGNED ) * - + 80 + - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT - 74 * - - 91 / - - CAST ( NULL AS INTEGER ) * - + 80 + - 24 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT - + CAST( NULL AS SIGNED ) + + 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8137
SELECT - + CAST ( NULL AS INTEGER ) + + 83 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8138
SELECT ALL + 64 * + COUNT( * ) * - + 8 + - + 40 * + NULLIF ( - 65, - CAST( MAX( + 24 ) AS DECIMAL ) + 46 ) AS col2
----
2088

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL + 64 * + COUNT ( * ) * - + 8 + - + 40 * + NULLIF ( - 65, - CAST ( MAX ( + 24 ) AS REAL ) + 46 ) AS col2
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT DISTINCT COUNT( * ) * 53
----
53

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT COUNT ( * ) * 53
----
53

query I rowsort
SELECT + ( - 34 ) + 69 * + - 0 col2
----
-34

query I rowsort
SELECT ALL - 87 * 21
----
-1827

query I rowsort
SELECT + ( + ( + 14 ) )
----
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8143
SELECT DISTINCT + 6 * - 41 + + COALESCE ( - 53, + CAST( 49 AS SIGNED ) DIV + 86, 86 * + 36 ) + 21 col2
----
-278

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT + 6 * - 41 + + COALESCE ( - 53, + CAST ( 49 AS INTEGER ) / + 86, 86 * + 36 ) + 21 col2
----
-278

query II rowsort
SELECT + 67 AS col2, - 99 + + 4 AS col2
----
67
-95

query I rowsort
SELECT + 45 * 77
----
3465

query II rowsort
SELECT ALL 57, 39 * - - 39 AS col0
----
57
1521

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8147
SELECT ALL + + NULLIF ( + + 92, + + ( ( - + CAST( + 74 AS DECIMAL ) ) ) + 31 ) - 82 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL + + NULLIF ( + + 92, + + ( ( - + CAST ( + 74 AS REAL ) ) ) + 31 ) - 82 AS col0
----
10

query I rowsort
SELECT - + 20 AS col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL - 70 - - 43 * - 52 * - CAST( + 26 AS SIGNED )
----
58066

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - 70 - - 43 * - 52 * - CAST ( + 26 AS INTEGER )
----
58066

query II rowsort
SELECT DISTINCT 5 AS col1, + 17
----
5
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8151
SELECT 93 * 93 * - - COUNT( - + CAST( 69 AS SIGNED ) ) AS col0
----
8649

skipif mysql # not compatible
query I rowsort label-8151
SELECT 93 * 93 * - - COUNT ( - + CAST ( 69 AS INTEGER ) ) AS col0
----
8649

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8152
SELECT 29 * MAX( + + ( 85 ) ) DIV 25 * - - 18
----
1764

skipif mysql # not compatible
query I rowsort label-8152
SELECT 29 * MAX ( + + ( 85 ) ) / 25 * - - 18
----
1764

query I rowsort
SELECT 3 - + + 99 * 26
----
-2571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8154
SELECT ALL 14 col2, COUNT( * ) AS col0, - CAST( - - 70 AS SIGNED ) + + 88 AS col2
----
14
1
18

skipif mysql # not compatible
query III rowsort label-8154
SELECT ALL 14 col2, COUNT ( * ) AS col0, - CAST ( - - 70 AS INTEGER ) + + 88 AS col2
----
14
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT COUNT( * ) / + - ( COUNT( * ) ) * + - ( + - CASE + - 85 WHEN + ( 61 ) THEN 29 + 45 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT COUNT ( * ) / + - ( COUNT ( * ) ) * + - ( + - CASE + - 85 WHEN + ( 61 ) THEN 29 + 45 ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT 19 * + - 29 * - + 36 AS col0
----
19836

query II rowsort
SELECT ALL - 93, 81 AS col1
----
-93
81

query I rowsort
SELECT 28 * - - 7
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT ALL 22 * NULLIF ( COUNT( * ), - + 67 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL 22 * NULLIF ( COUNT ( * ), - + 67 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT ALL 39 * - - AVG ( ALL 68 ) * - 85 + + CASE + 98 WHEN + ( 19 ) THEN + 53 WHEN - 99 THEN NULL ELSE NULL END - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL 39 * - - AVG ( ALL 68 ) * - 85 + + CASE + 98 WHEN + ( 19 ) THEN + 53 WHEN - 99 THEN NULL ELSE NULL END - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8161
SELECT DISTINCT + COUNT( * ) DIV + 78 DIV - CAST( + 37 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT + COUNT ( * ) / + 78 / - CAST ( + 37 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT ALL 15 * 69 * - 20 AS col0
----
-20700

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT DISTINCT 33 * - MIN( ALL - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT 33 * - MIN ( ALL - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT DISTINCT - CASE + 1 WHEN + ( + - 41 ) THEN + 24 * - COUNT( * ) + COUNT( - 87 ) END * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT - CASE + 1 WHEN + ( + - 41 ) THEN + 24 * - COUNT ( * ) + COUNT ( - 87 ) END * + 36
----
NULL

query I rowsort
SELECT DISTINCT - + NULLIF ( 48, + COALESCE ( + 54, + + 37 ) ) AS col0
----
-48

query I rowsort
SELECT ALL - 51 + + - 58 * 62 AS col2
----
-3647

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8167
SELECT - 71 * - 78 + + CASE - ( - + ( - CAST( NULL AS DECIMAL ) ) ) WHEN 83 * NULLIF ( + 43, - 92 ) THEN NULL ELSE + NULLIF ( + 27, + 24 ) END AS col0
----
5565

skipif mysql # not compatible
query I rowsort label-8167
SELECT - 71 * - 78 + + CASE - ( - + ( - CAST ( NULL AS REAL ) ) ) WHEN 83 * NULLIF ( + 43, - 92 ) THEN NULL ELSE + NULLIF ( + 27, + 24 ) END AS col0
----
5565

onlyif mysql # aggregate syntax: 
query II rowsort label-8168
SELECT + 44 col1, + COUNT( * )
----
44
1

skipif mysql # not compatible
query II rowsort label-8168
SELECT + 44 col1, + COUNT ( * )
----
44
1

query II rowsort
SELECT + 78, - COALESCE ( - 59, 7 + + - 55, - 79 ) AS col1
----
78
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8170
SELECT DISTINCT CASE + + 86 WHEN + COUNT( * ) * - 58 + + 99 - CASE 10 WHEN + COUNT( * ) THEN NULL ELSE + 78 END * + COUNT( * ) THEN 56 * + 39 WHEN - CASE CASE 9 WHEN CASE + 72 WHEN 42 + 39 * + 20 THEN + COUNT( * ) END + 46 THEN NULL WHEN - CAST( + 77 AS SIGNED ) THEN + ( 25 ) WHEN + ( 52 ) + - 23 THEN CAST( NULL AS DECIMAL ) * COALESCE ( 74 * + 21, + 11 ) WHEN 91 * + 51 THEN NULL END WHEN AVG ( + 25 ) * + NULLIF ( - 70, CAST( NULL AS SIGNED ) + COUNT( * ) * 37 ) + 25 THEN COUNT( * ) WHEN + 72 THEN NULL ELSE NULL END THEN NULL ELSE 9 END + 33 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT CASE + + 86 WHEN + COUNT ( * ) * - 58 + + 99 - CASE 10 WHEN + COUNT ( * ) THEN NULL ELSE + 78 END * + COUNT ( * ) THEN 56 * + 39 WHEN - CASE CASE 9 WHEN CASE + 72 WHEN 42 + 39 * + 20 THEN + COUNT ( * ) END + 46 THEN NULL WHEN - CAST ( + 77 AS INTEGER ) THEN + ( 25 ) WHEN + ( 52 ) + - 23 THEN CAST ( NULL AS REAL ) * COALESCE ( 74 * + 21, + 11 ) WHEN 91 * + 51 THEN NULL END WHEN AVG ( + 25 ) * + NULLIF ( - 70, CAST ( NULL AS INTEGER ) + COUNT ( * ) * 37 ) + 25 THEN COUNT ( * ) WHEN + 72 THEN NULL ELSE NULL END THEN NULL ELSE 9 END + 33 AS col1
----
42

query II rowsort
SELECT ALL - 66 AS col2, 63 AS col0
----
-66
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL + CASE + 84 WHEN COUNT( * ) / 93 THEN - + 49 * + 38 ELSE NULL END + - AVG ( + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + CASE + 84 WHEN COUNT ( * ) / 93 THEN - + 49 * + 38 ELSE NULL END + - AVG ( + 73 )
----
NULL

query I rowsort
SELECT ALL + 27 + + 26 * 63 AS col1
----
1665

query I rowsort
SELECT DISTINCT - + 75 AS col0
----
-75

query I rowsort
SELECT ALL 19 + 47 * + ( + + 3 ) * - + 13 - + - 61 + 14 * - 16
----
-1977

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL MAX( DISTINCT 63 ) * + 29 AS col0
----
1827

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL MAX ( DISTINCT 63 ) * + 29 AS col0
----
1827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8177
SELECT 33 DIV - - MIN( - 87 )
----
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT 33 / - - MIN ( - 87 )
----
0

query I rowsort
SELECT + 42 * - 6 - - 70
----
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8179
SELECT DISTINCT + 8 DIV - COALESCE ( 20, + ( - - COUNT( * ) ) * 12 * - 11 ) * + 17
----
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT + 8 / - COALESCE ( 20, + ( - - COUNT ( * ) ) * 12 * - 11 ) * + 17
----
0

query I rowsort
SELECT 66 + - ( - ( 17 ) ) AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT - NULLIF ( - COALESCE ( + COUNT( * ), - 91, + - 79 * - - 53 + CASE COUNT( * ) WHEN + 20 THEN 83 + 85 DIV 51 WHEN + 5 DIV COUNT( * ) THEN NULL WHEN 80 THEN 76 * 82 + 78 ELSE - COUNT( * ) END ), + 11 * - 87 + + 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8181
SELECT - NULLIF ( - COALESCE ( + COUNT ( * ), - 91, + - 79 * - - 53 + CASE COUNT ( * ) WHEN + 20 THEN 83 + 85 / 51 WHEN + 5 / COUNT ( * ) THEN NULL WHEN 80 THEN 76 * 82 + 78 ELSE - COUNT ( * ) END ), + 11 * - 87 + + 47 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT ( CASE + 42 WHEN - 33 THEN - COALESCE ( + 12, + 79 / - 74 + CAST( 6 + 61 / 63 AS SIGNED ) ) END ) + - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT ( CASE + 42 WHEN - 33 THEN - COALESCE ( + 12, + 79 / - 74 + CAST ( 6 + 61 / 63 AS INTEGER ) ) END ) + - 69 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT + 42 + - 29 + + 71 DIV - - 37 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8183
SELECT + 42 + - 29 + + 71 / - - 37 AS col1
----
14

query I rowsort
SELECT - + 89 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-8185
SELECT ALL COUNT( * ) * - 55 AS col0, + 94 * 43 + - + 14
----
-55
4028

skipif mysql # not compatible
query II rowsort label-8185
SELECT ALL COUNT ( * ) * - 55 AS col0, + 94 * 43 + - + 14
----
-55
4028

query I rowsort
SELECT 35 - - 20 AS col2
----
55

query I rowsort
SELECT NULLIF ( 88, 68 ) + 71 + + + 14 col0
----
173

query I rowsort
SELECT ALL 23 - - - CASE - - 67 WHEN + - 69 THEN NULL WHEN + + NULLIF ( - 69, - + 82 ) THEN 94 END
----
NULL

query I rowsort
SELECT ALL 57 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ( + - MIN( DISTINCT - 3 ) ) + 23
----
26

skipif mysql # not compatible
query I rowsort label-8190
SELECT ( + - MIN ( DISTINCT - 3 ) ) + 23
----
26

query I rowsort
SELECT 57 - + + 0 + - 64 + - 24
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8192
SELECT DISTINCT + 21 * + ( CAST( NULL AS DECIMAL ) ) * + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT + 21 * + ( CAST ( NULL AS REAL ) ) * + 29 AS col1
----
NULL

query I rowsort
SELECT ALL 18 * 69 + + 26 AS col0
----
1268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT ALL + 40 * 90 * + CAST( 17 AS SIGNED ) * + 72 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL + 40 * 90 * + CAST ( 17 AS INTEGER ) * + 72 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT NULLIF ( - 78, 91 * 74 ) * + + 54 * + 30 + - 75
----
-126435

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT DISTINCT + NULLIF ( + MAX( - 88 ), - ( + 75 ) ) * 69 + - + 20 * - 42 AS col1
----
-5232

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT + NULLIF ( + MAX ( - 88 ), - ( + 75 ) ) * 69 + - + 20 * - 42 AS col1
----
-5232

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT ALL - ( - 18 ) * + - 45 + + COALESCE ( + SUM( DISTINCT 21 ), 75 * + 68 + - 88, + 19 ) - - 98 AS col0
----
-691

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL - ( - 18 ) * + - 45 + + COALESCE ( + SUM ( DISTINCT 21 ), 75 * + 68 + - 88, + 19 ) - - 98 AS col0
----
-691

query I rowsort
SELECT 32 + + 41 + 52 + - COALESCE ( + 16, - 98 * - 29 )
----
109

query I rowsort
SELECT + + 76 col0
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-8200
SELECT ALL + - 27 DIV 67 AS col2, CASE 46 WHEN 52 * 94 THEN - 86 ELSE NULL END * - 88 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8200
SELECT ALL + - 27 / 67 AS col2, CASE 46 WHEN 52 * 94 THEN - 86 ELSE NULL END * - 88 AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT DISTINCT - ( + NULLIF ( - COUNT( + + 75 ), - 73 * - - ( - 8 ) / MAX( DISTINCT + COALESCE ( + 51, 46 + 66 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT - ( + NULLIF ( - COUNT ( + + 75 ), - 73 * - - ( - 8 ) / MAX ( DISTINCT + COALESCE ( + 51, 46 + 66 ) ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8202
SELECT DISTINCT COALESCE ( 45, + CAST( 5 AS SIGNED ) ) * + 88 + + + 49 + CASE 35 WHEN - NULLIF ( 86, + 30 ) * 93 THEN + 2 WHEN + 72 * + ( + SUM( ALL - 64 ) ) THEN - 18 WHEN - COUNT( * ) * + COUNT( * ) THEN NULL END / + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT COALESCE ( 45, + CAST ( 5 AS INTEGER ) ) * + 88 + + + 49 + CASE 35 WHEN - NULLIF ( 86, + 30 ) * 93 THEN + 2 WHEN + 72 * + ( + SUM ( ALL - 64 ) ) THEN - 18 WHEN - COUNT ( * ) * + COUNT ( * ) THEN NULL END / + 59 AS col0
----
NULL

query I rowsort
SELECT + - 84 * + - 64 + - + 25 + + - 99 AS col1
----
5252

query I rowsort
SELECT DISTINCT + + 98 + + 76 + ( - 89 ) AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT ALL - - 35 DIV + + 17
----
2

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL - - 35 / + + 17
----
2

query I rowsort
SELECT + + 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT COUNT( * ) + + - 48 * + 27 * 97 AS col0
----
-125711

skipif mysql # not compatible
query I rowsort label-8207
SELECT COUNT ( * ) + + - 48 * + 27 * 97 AS col0
----
-125711

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL + + 23 * 94 * - COUNT( * ) * 89
----
-192418

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL + + 23 * 94 * - COUNT ( * ) * 89
----
-192418

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT + 14 * - - COUNT( * ) - MIN( ALL + 30 ) + 76 * + + 98 + + 43 AS col2
----
7475

skipif mysql # not compatible
query I rowsort label-8209
SELECT + 14 * - - COUNT ( * ) - MIN ( ALL + 30 ) + 76 * + + 98 + + 43 AS col2
----
7475

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT + - ( + MAX( - 21 ) )
----
21

skipif mysql # not compatible
query I rowsort label-8210
SELECT + - ( + MAX ( - 21 ) )
----
21

query I rowsort
SELECT DISTINCT - 46 * + 28
----
-1288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8212
SELECT DISTINCT COUNT( + CAST( NULL AS DECIMAL ) ) - - - CASE + COUNT( + - COALESCE ( - - 93, CAST( 10 AS SIGNED ) ) ) WHEN 22 THEN COUNT( - 76 ) WHEN - MIN( + ( 75 ) ) / - 91 THEN 96 ELSE + 41 END AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT COUNT ( + CAST ( NULL AS REAL ) ) - - - CASE + COUNT ( + - COALESCE ( - - 93, CAST ( 10 AS INTEGER ) ) ) WHEN 22 THEN COUNT ( - 76 ) WHEN - MIN ( + ( 75 ) ) / - 91 THEN 96 ELSE + 41 END AS col2
----
-41

query I rowsort
SELECT ALL 66 - - 59 AS col1
----
125

query I rowsort
SELECT DISTINCT + 45 col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT + 54 * + - COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8215
SELECT + 54 * + - COUNT ( * ) AS col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8216
SELECT + - MAX( ALL + 56 ) + 80 + + 70 - - ( 77 ) + + 67 DIV 79 AS col0
----
171

skipif mysql # not compatible
query I rowsort label-8216
SELECT + - MAX ( ALL + 56 ) + 80 + + 70 - - ( 77 ) + + 67 / 79 AS col0
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8217
SELECT ALL ( - CAST( + - 98 AS SIGNED ) ) DIV - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL ( - CAST ( + - 98 AS INTEGER ) ) / - COUNT ( * )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8218
SELECT 86, - CAST( NULL AS SIGNED ) + 61 AS col0
----
86
NULL

skipif mysql # not compatible
query II rowsort label-8218
SELECT 86, - CAST ( NULL AS INTEGER ) + 61 AS col0
----
86
NULL

query I rowsort
SELECT - CASE - 52 WHEN - - 30 + + - 14 + + 32 * 42 + + 40 THEN NULL ELSE + + 56 END AS col2
----
-56

query I rowsort
SELECT + 64 + - - 91 AS col0
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8221
SELECT + 34 * - - ( - COUNT( * ) ) AS col2, + 33 / - - 7 + - 9 * - 2 * ( - CAST( NULL AS SIGNED ) ) / 96 AS col1
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-8221
SELECT + 34 * - - ( - COUNT ( * ) ) AS col2, + 33 / - - 7 + - 9 * - 2 * ( - CAST ( NULL AS INTEGER ) ) / 96 AS col1
----
-34
NULL

query I rowsort
SELECT - 40 + + 86 col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8223
SELECT DISTINCT 64 + + 56 DIV - - 17
----
67

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT 64 + + 56 / - - 17
----
67

query I rowsort
SELECT DISTINCT 75 * 22
----
1650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8225
SELECT + 4 * CASE 37 WHEN + + 89 THEN NULL WHEN + 53 * + - 65 * - 67 + + - CAST( MAX( ALL + 78 ) AS SIGNED ) + MIN( DISTINCT - 99 ) * COUNT( * ) + 66 THEN - NULLIF ( 62, - 42 ) ELSE NULL END * + CAST( - 14 * + 19 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT + 4 * CASE 37 WHEN + + 89 THEN NULL WHEN + 53 * + - 65 * - 67 + + - CAST ( MAX ( ALL + 78 ) AS INTEGER ) + MIN ( DISTINCT - 99 ) * COUNT ( * ) + 66 THEN - NULLIF ( 62, - 42 ) ELSE NULL END * + CAST ( - 14 * + 19 AS REAL )
----
NULL

query II rowsort
SELECT ALL 21 AS col2, + 15 + + NULLIF ( + 19, - - 72 + - - 80 ) - + 58
----
21
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8227
SELECT 66 AS col0, 10 + - - 64 + + 80 + - NULLIF ( - - 94, CASE - + 65 WHEN COUNT( * ) THEN 18 * 62 WHEN MIN( DISTINCT + ( 90 ) ) * + AVG ( 1 ) THEN + COUNT( * ) / - COUNT( * ) END ) * COUNT( * ) AS col2
----
66
60

skipif mysql # not compatible
query II rowsort label-8227
SELECT 66 AS col0, 10 + - - 64 + + 80 + - NULLIF ( - - 94, CASE - + 65 WHEN COUNT ( * ) THEN 18 * 62 WHEN MIN ( DISTINCT + ( 90 ) ) * + AVG ( 1 ) THEN + COUNT ( * ) / - COUNT ( * ) END ) * COUNT ( * ) AS col2
----
66
60

query I rowsort
SELECT - 77 col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8229
SELECT ALL CAST( NULL AS SIGNED ) + + + 53 * COUNT( * ) AS col1, 51 + + 13 - - + ( + 55 ) * - 65 AS col2
----
NULL
-3511

skipif mysql # not compatible
query II rowsort label-8229
SELECT ALL CAST ( NULL AS INTEGER ) + + + 53 * COUNT ( * ) AS col1, 51 + + 13 - - + ( + 55 ) * - 65 AS col2
----
NULL
-3511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8230
SELECT ALL 63 + - COALESCE ( + CAST( + + 18 AS SIGNED ), 13 ) + 0 DIV SUM( 18 ) + + NULLIF ( + SUM( 80 ), 44 )
----
125

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL 63 + - COALESCE ( + CAST ( + + 18 AS INTEGER ), 13 ) + 0 / SUM ( 18 ) + + NULLIF ( + SUM ( 80 ), 44 )
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8231
SELECT ALL + COALESCE ( + 12, - + COALESCE ( MAX( + 75 ), 0, + 62 DIV - AVG ( - 51 ) + - 82 ) DIV 85 - - COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + COALESCE ( + 12, - + COALESCE ( MAX ( + 75 ), 0, + 62 / - AVG ( - 51 ) + - 82 ) / 85 - - COUNT ( * ) )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT + 51 * - 53 * - 94 + + + CAST( NULL AS SIGNED ) * - 87 / MIN( ALL - 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT + 51 * - 53 * - 94 + + + CAST ( NULL AS INTEGER ) * - 87 / MIN ( ALL - 58 ) AS col1
----
NULL

query II rowsort
SELECT - 29, 87 col0
----
-29
87

query II rowsort
SELECT DISTINCT 46 * + + 9 + 58, 7 AS col2
----
472
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL + SUM( DISTINCT - 45 ) * COUNT( * ) * + - 6 - - 37 col2
----
307

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + SUM ( DISTINCT - 45 ) * COUNT ( * ) * + - 6 - - 37 col2
----
307

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL + 51 * + 37 + - SUM( 13 ) * + 32 * 0
----
1887

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL + 51 * + 37 + - SUM ( 13 ) * + 32 * 0
----
1887

query I rowsort
SELECT ALL + 83 col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8238
SELECT DISTINCT - + COUNT( * ) * CASE + - 94 WHEN 96 THEN NULL WHEN - MAX( ALL + 91 ) THEN + - COUNT( * ) WHEN COUNT( - 33 ) + 7 * AVG ( - 69 * - 8 + - 93 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) + - 40 * 72 END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT - + COUNT ( * ) * CASE + - 94 WHEN 96 THEN NULL WHEN - MAX ( ALL + 91 ) THEN + - COUNT ( * ) WHEN COUNT ( - 33 ) + 7 * AVG ( - 69 * - 8 + - 93 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) + - 40 * 72 END * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT + 16 DIV - 50 * - 51 - + + ( - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-8239
SELECT + 16 / - 50 * - 51 - + + ( - 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT + - NULLIF ( - - 71, - + 33 ) * - MAX( DISTINCT 46 ) * 49 * + COUNT( * ) + + 55 AS col0
----
160089

skipif mysql # not compatible
query I rowsort label-8240
SELECT + - NULLIF ( - - 71, - + 33 ) * - MAX ( DISTINCT 46 ) * 49 * + COUNT ( * ) + + 55 AS col0
----
160089

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL - 8 * + COUNT( * ) * + - 11
----
88

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - 8 * + COUNT ( * ) * + - 11
----
88

query I rowsort
SELECT DISTINCT + + 32 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT 69 * MAX( 42 ) * - 48 + - + 26 + - + NULLIF ( - 58, 59 + 78 * - 58 ) * 71 AS col0
----
-135012

skipif mysql # not compatible
query I rowsort label-8243
SELECT 69 * MAX ( 42 ) * - 48 + - + 26 + - + NULLIF ( - 58, 59 + 78 * - 58 ) * 71 AS col0
----
-135012

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT - 72 * - + MIN( + 57 ) * - COUNT( * ) * + COUNT( * ) AS col0
----
-4104

skipif mysql # not compatible
query I rowsort label-8244
SELECT - 72 * - + MIN ( + 57 ) * - COUNT ( * ) * + COUNT ( * ) AS col0
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - COUNT( * ) * + 24 + - COUNT( * ) * - + COALESCE ( - - SUM( 55 ), + COALESCE ( + + 33, 37 ), + 12 ) - + 21 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8245
SELECT - COUNT ( * ) * + 24 + - COUNT ( * ) * - + COALESCE ( - - SUM ( 55 ), + COALESCE ( + + 33, 37 ), + 12 ) - + 21 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT MIN( 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8246
SELECT MIN ( 55 ) AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT ALL + - CAST( - 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL + - CAST ( - 76 AS INTEGER )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8248
SELECT DISTINCT - - 58 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT - - 58 / 80
----
0

query I rowsort
SELECT ALL + + 64 col1
----
64

query II rowsort
SELECT - 37 * + + NULLIF ( - + 53, + 90 * - 81 ) + - 39, - 75 AS col2
----
1922
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8251
SELECT DISTINCT - 65 / + CAST( NULL AS DECIMAL ) + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT - 65 / + CAST ( NULL AS REAL ) + + 94
----
NULL

query I rowsort
SELECT + - 78 * 97 + - - 56
----
-7510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT + CAST( - - 29 AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8253
SELECT + CAST ( - - 29 AS INTEGER ) AS col0
----
29

query I rowsort
SELECT - - ( 10 ) AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8255
SELECT ALL ( + 83 ) AS col2, CAST( NULL AS SIGNED ) + + - 53
----
83
NULL

skipif mysql # not compatible
query II rowsort label-8255
SELECT ALL ( + 83 ) AS col2, CAST ( NULL AS INTEGER ) + + - 53
----
83
NULL

query I rowsort
SELECT - 82 + + 83
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8257
SELECT - NULLIF ( - + CAST( 22 AS SIGNED ), + 72 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8257
SELECT - NULLIF ( - + CAST ( 22 AS INTEGER ), + 72 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT + COUNT( * ) * - 34 * + 53
----
-1802

skipif mysql # not compatible
query I rowsort label-8258
SELECT + COUNT ( * ) * - 34 * + 53
----
-1802

query I rowsort
SELECT - 58 + - 36 AS col2
----
-94

query I rowsort
SELECT ALL + ( - 57 ) * 95 * + 6
----
-32490

query I rowsort
SELECT - 35 + + 88 AS col1
----
53

query I rowsort
SELECT ALL + 12 + 89
----
101

query I rowsort
SELECT - 11 * - 44
----
484

query I rowsort
SELECT ALL 23 + - - 21 - - 21
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8265
SELECT ALL 99 + + AVG ( DISTINCT - ( + + CAST( NULL AS SIGNED ) ) ) * 6 + 72 * 38 * + - 84 + + + COUNT( * ) - + 19 * - 78 * + MAX( ALL 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL 99 + + AVG ( DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) ) * 6 + 72 * 38 * + - 84 + + + COUNT ( * ) - + 19 * - 78 * + MAX ( ALL 41 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT DISTINCT + 67 + + - CAST( NULL AS SIGNED ) - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT + 67 + + - CAST ( NULL AS INTEGER ) - 82 AS col2
----
NULL

query I rowsort
SELECT ALL 63 + 10 + - 52
----
21

query I rowsort
SELECT - 69 + + + 71 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8269
SELECT - CAST( + 32 AS SIGNED ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-8269
SELECT - CAST ( + 32 AS INTEGER ) col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT + 45 + ( ( + COUNT( * ) ) )
----
46

skipif mysql # not compatible
query I rowsort label-8270
SELECT + 45 + ( ( + COUNT ( * ) ) )
----
46

query I rowsort
SELECT + 51 - + 54
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8272
SELECT ALL 56 * + - SUM( + + 13 ) * + 27 * + - 22, 37 AS col1
----
432432
37

skipif mysql # not compatible
query II rowsort label-8272
SELECT ALL 56 * + - SUM ( + + 13 ) * + 27 * + - 22, 37 AS col1
----
432432
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8273
SELECT ALL + 49 + 97 + - + 37 - - - ( + 86 ) + CAST( - NULLIF ( - ( + 97 ), COUNT( * ) / 74 ) AS SIGNED )
----
120

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL + 49 + 97 + - + 37 - - - ( + 86 ) + CAST ( - NULLIF ( - ( + 97 ), COUNT ( * ) / 74 ) AS INTEGER )
----
120

query I rowsort
SELECT - ( - 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT DISTINCT MAX( ALL 80 )
----
80

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT MAX ( ALL 80 )
----
80

query I rowsort
SELECT ALL 9 - 26 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT ALL - 3 * SUM( - 85 ) * 33 * + - 30 * + - 98
----
24740100

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL - 3 * SUM ( - 85 ) * 33 * + - 30 * + - 98
----
24740100

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT + + 34 + - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8278
SELECT + + 34 + - COUNT ( * ) AS col2
----
33

query I rowsort
SELECT DISTINCT + + 80 AS col1
----
80

query I rowsort
SELECT + - NULLIF ( - 37, + ( 56 ) ) * + - 17 * + CASE + - 92 WHEN + 69 * 35 + 59 THEN 81 END + - 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8281
SELECT + 59 DIV + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8281
SELECT + 59 / + COUNT ( * ) AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8282
SELECT ALL + - COALESCE ( ( - + COUNT( - 21 ) ), - 69 + 3 + 72 + - NULLIF ( - COUNT( * ), COALESCE ( + ( + 48 ), - 27 + + 77 / + 83, 7 ) + - CAST( NULL AS SIGNED ) ) * - 50, + SUM( ALL - 89 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + - COALESCE ( ( - + COUNT ( - 21 ) ), - 69 + 3 + 72 + - NULLIF ( - COUNT ( * ), COALESCE ( + ( + 48 ), - 27 + + 77 / + 83, 7 ) + - CAST ( NULL AS INTEGER ) ) * - 50, + SUM ( ALL - 89 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8283
SELECT 31 * COALESCE ( + 87, COUNT( * ) DIV + - 75 * + SUM( - 93 ) ) + COUNT( ALL - 79 ) AS col0
----
2698

skipif mysql # not compatible
query I rowsort label-8283
SELECT 31 * COALESCE ( + 87, COUNT ( * ) / + - 75 * + SUM ( - 93 ) ) + COUNT ( ALL - 79 ) AS col0
----
2698

query I rowsort
SELECT ALL - - 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT COUNT( * ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-8285
SELECT COUNT ( * ) * - 28
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL - + CASE + + 14 WHEN - 56 THEN NULL ELSE - COUNT( * ) * + NULLIF ( - - ( - 77 ), ( - 37 ) + - 31 ) * 77 - 24 * CASE 80 * 88 WHEN 66 THEN NULL ELSE CASE - 16 WHEN 8 THEN 77 * - 30 ELSE NULL END * - 51 END END * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - + CASE + + 14 WHEN - 56 THEN NULL ELSE - COUNT ( * ) * + NULLIF ( - - ( - 77 ), ( - 37 ) + - 31 ) * 77 - 24 * CASE 80 * 88 WHEN 66 THEN NULL ELSE CASE - 16 WHEN 8 THEN 77 * - 30 ELSE NULL END * - 51 END END * 61
----
NULL

query I rowsort
SELECT ALL - + 53
----
-53

query I rowsort
SELECT - - 45 * + + 90 + 69 + + + 32 + + + 96 * - 40 AS col1
----
311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8289
SELECT DISTINCT - + COALESCE ( + 87, + - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) ) AS col2, - 34 - MAX( ALL + 15 )
----
-87
-49

skipif mysql # not compatible
query II rowsort label-8289
SELECT DISTINCT - + COALESCE ( + 87, + - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) ) AS col2, - 34 - MAX ( ALL + 15 )
----
-87
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT ALL ( + COUNT( + 19 ) ) * + + 49
----
49

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL ( + COUNT ( + 19 ) ) * + + 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT 79 + + 71 - + 82 + + COUNT( * ) * - ( + 56 ) * + 16 col2
----
-828

skipif mysql # not compatible
query I rowsort label-8291
SELECT 79 + + 71 - + 82 + + COUNT ( * ) * - ( + 56 ) * + 16 col2
----
-828

query I rowsort
SELECT DISTINCT - - 13 * + 34 + 26 * 17 + - 15
----
869

query I rowsort
SELECT 48 + - + 14 + - 59
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT ALL - ( + CAST( 67 AS SIGNED ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL - ( + CAST ( 67 AS INTEGER ) ) AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8295
SELECT DISTINCT - CAST( 42 AS SIGNED ) + + + COALESCE ( - ( 13 ), + 9 * + COUNT( * ) + - 14 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT - CAST ( 42 AS INTEGER ) + + + COALESCE ( - ( 13 ), + 9 * + COUNT ( * ) + - 14 ) AS col0
----
-55

query I rowsort
SELECT DISTINCT - ( + - 0 ) + - - 86 col0
----
86

query I rowsort
SELECT ALL + 80 + + + 58 AS col2
----
138

query I rowsort
SELECT 38 * 23
----
874

query II rowsort
SELECT - 4, - 96 col0
----
-4
-96

query I rowsort
SELECT DISTINCT + 62 + - 62 * - - 75 * 37 AS col0
----
-171988

query I rowsort
SELECT ALL 75 * - 64
----
-4800

onlyif mysql # DIV for integer division: 
query I rowsort label-8302
SELECT 57 DIV - - 32 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8302
SELECT 57 / - - 32 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT ALL + CAST( + - 68 AS SIGNED ) + 61 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL + CAST ( + - 68 AS INTEGER ) + 61 AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8304
SELECT 37 * + - CAST( - COUNT( + ( + ( + 15 ) ) ) AS SIGNED ) col1
----
37

skipif mysql # not compatible
query I rowsort label-8304
SELECT 37 * + - CAST ( - COUNT ( + ( + ( + 15 ) ) ) AS INTEGER ) col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL - 8 * - 57 * + - COUNT( * ) * - COUNT( - 10 ) AS col1
----
456

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL - 8 * - 57 * + - COUNT ( * ) * - COUNT ( - 10 ) AS col1
----
456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8306
SELECT MIN( DISTINCT + 4 ) + - - CAST( - 98 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-8306
SELECT MIN ( DISTINCT + 4 ) + - - CAST ( - 98 AS INTEGER )
----
-94

query I rowsort
SELECT ALL - 90 * + 41
----
-3690

query I rowsort
SELECT ALL - 18 - - 45 AS col2
----
27

query I rowsort
SELECT DISTINCT 79 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL COUNT( * ) - + - 80
----
81

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL COUNT ( * ) - + - 80
----
81

query II rowsort
SELECT ALL 37, + 75 + - + 42 + 21 AS col0
----
37
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8312
SELECT ALL COUNT( * ) DIV - 76 col0
----
0

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL COUNT ( * ) / - 76 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT - ( 12 ) + + - 77 / - - COALESCE ( + COUNT( * ), - COUNT( * ) ) + + CASE 95 WHEN 69 / - 17 THEN + 84 + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT - ( 12 ) + + - 77 / - - COALESCE ( + COUNT ( * ), - COUNT ( * ) ) + + CASE 95 WHEN 69 / - 17 THEN + 84 + 23 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT + CAST( NULL AS SIGNED ) * - - 29 - 49 * - 54 * CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT + CAST ( NULL AS INTEGER ) * - - 29 - 49 * - 54 * CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8315
SELECT CAST( - 31 AS SIGNED ) * - 2 + MAX( DISTINCT - ( + 12 ) )
----
50

skipif mysql # not compatible
query I rowsort label-8315
SELECT CAST ( - 31 AS INTEGER ) * - 2 + MAX ( DISTINCT - ( + 12 ) )
----
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8316
SELECT 28 DIV + 31 + - 80 * CAST( - ( + 56 ) AS SIGNED ) col1
----
4480

skipif mysql # not compatible
query I rowsort label-8316
SELECT 28 / + 31 + - 80 * CAST ( - ( + 56 ) AS INTEGER ) col1
----
4480

query I rowsort
SELECT DISTINCT - - 19
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8318
SELECT + CAST( + 40 AS SIGNED ) DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-8318
SELECT + CAST ( + 40 AS INTEGER ) / 74
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8319
SELECT ALL - + COUNT( * ) AS col0, COALESCE ( 85, + COUNT( * ) * - 68 + 2 ) * - 48 + - 96
----
-1
-4176

skipif mysql # not compatible
query II rowsort label-8319
SELECT ALL - + COUNT ( * ) AS col0, COALESCE ( 85, + COUNT ( * ) * - 68 + 2 ) * - 48 + - 96
----
-1
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT DISTINCT - MIN( 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT - MIN ( 0 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT DISTINCT + ( CASE - 69 WHEN - 97 / NULLIF ( + COUNT( * ), + - 96 + - 4 * 29 ) + - - 96 * 85 THEN + 24 + 15 END ) * - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT + ( CASE - 69 WHEN - 97 / NULLIF ( + COUNT ( * ), + - 96 + - 4 * 29 ) + - - 96 * 85 THEN + 24 + 15 END ) * - 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT 2 / MIN( DISTINCT + 51 ) / + CASE - 19 WHEN + 50 THEN + ( COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8322
SELECT 2 / MIN ( DISTINCT + 51 ) / + CASE - 19 WHEN + 50 THEN + ( COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8323
SELECT ALL - - COUNT( * ), 50 AS col2
----
1
50

skipif mysql # not compatible
query II rowsort label-8323
SELECT ALL - - COUNT ( * ), 50 AS col2
----
1
50

query I rowsort
SELECT - + 26 * + ( + 87 ) + + 22
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT + MIN( ALL + + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-8325
SELECT + MIN ( ALL + + 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT + 9 * - COUNT( * ) * + + 79 * - 8
----
5688

skipif mysql # not compatible
query I rowsort label-8326
SELECT + 9 * - COUNT ( * ) * + + 79 * - 8
----
5688

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL COUNT( * ) + 60 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL COUNT ( * ) + 60 AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-8328
SELECT 83 AS col0, NULLIF ( - COUNT( * ), 15 * 47 / - 66 + - 71 ) + + + 20
----
83
19

skipif mysql # not compatible
query II rowsort label-8328
SELECT 83 AS col0, NULLIF ( - COUNT ( * ), 15 * 47 / - 66 + - 71 ) + + + 20
----
83
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT + MAX( - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-8329
SELECT + MAX ( - 1 )
----
-1

query II rowsort
SELECT 91, - 70 AS col0
----
91
-70

query I rowsort
SELECT DISTINCT + 76 * + 21
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT ALL 87 + - ( COUNT( * ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL 87 + - ( COUNT ( * ) ) AS col2
----
86

query I rowsort
SELECT COALESCE ( - ( + 25 ), + ( + + 24 ) ) + + 72 - + - 59 AS col1
----
106

query II rowsort
SELECT DISTINCT 64, + 18 * ( + ( - 0 ) ) AS col1
----
64
0

query II rowsort
SELECT 26, + 6 AS col2
----
26
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ( COUNT( * ) ) + + 94 * - 65 + + 42 * - - 29 * + + 16 * + 92 * + 57 AS col0
----
102188963

skipif mysql # not compatible
query I rowsort label-8336
SELECT ( COUNT ( * ) ) + + 94 * - 65 + + 42 * - - 29 * + + 16 * + 92 * + 57 AS col0
----
102188963

query I rowsort
SELECT ALL + 49 - 37 + 35
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8338
SELECT 63 * - CASE - 63 WHEN 53 * + + CASE - + 3 WHEN - - 54 / + ( 51 ) + + NULLIF ( COUNT( * ), 3 + - 63 ) + 23 THEN + 59 * COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN 74 * COUNT( * ) ELSE NULL END * + COUNT( * ) THEN NULL ELSE 76 * - 51 END * - 15
----
-3662820

skipif mysql # not compatible
query I rowsort label-8338
SELECT 63 * - CASE - 63 WHEN 53 * + + CASE - + 3 WHEN - - 54 / + ( 51 ) + + NULLIF ( COUNT ( * ), 3 + - 63 ) + 23 THEN + 59 * COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN 74 * COUNT ( * ) ELSE NULL END * + COUNT ( * ) THEN NULL ELSE 76 * - 51 END * - 15
----
-3662820

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT 72 + + 5 + + 21 - - 44 + 42 + + COUNT( * )
----
185

skipif mysql # not compatible
query I rowsort label-8339
SELECT 72 + + 5 + + 21 - - 44 + 42 + + COUNT ( * )
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT 82 + 82 - + 34 DIV 58 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-8340
SELECT 82 + 82 - + 34 / 58 AS col2
----
164

query I rowsort
SELECT ALL + 14 * - 1 * - 69
----
966

query I rowsort
SELECT 91 + + 54 + - 61 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT SUM( DISTINCT + NULLIF ( + + 99, - 17 ) ) * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-8343
SELECT SUM ( DISTINCT + NULLIF ( + + 99, - 17 ) ) * COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT 98 * - SUM( DISTINCT + 48 )
----
-4704

skipif mysql # not compatible
query I rowsort label-8344
SELECT 98 * - SUM ( DISTINCT + 48 )
----
-4704

query I rowsort
SELECT - + 42 + + 10
----
-32

query I rowsort
SELECT - - 31 + - - 32 AS col0
----
63

query I rowsort
SELECT ALL - - COALESCE ( - 18, - - 55 + + - 51 + + + 16 * - 23 * - 30 ) * - 44 col0
----
792

query I rowsort
SELECT + + 51 + + + 32 * 0
----
51

query I rowsort
SELECT - 64 * 83
----
-5312

query I rowsort
SELECT - NULLIF ( 37, 75 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT DISTINCT + COUNT( * ) * 77 * - - 17 - - + SUM( ALL + 79 )
----
1388

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT + COUNT ( * ) * 77 * - - 17 - - + SUM ( ALL + 79 )
----
1388

query I rowsort
SELECT - 91 + - CASE 30 WHEN - 82 THEN - 63 ELSE - + 30 + + + 57 END
----
-118

query II rowsort
SELECT DISTINCT + 53 AS col0, 20
----
53
20

query II rowsort
SELECT 75 AS col2, 92
----
75
92

query I rowsort
SELECT - - 94 * 60 + + 39 AS col1
----
5679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8356
SELECT ALL + - 30 * + - ( + SUM( DISTINCT - 97 ) ) + + COUNT( * ) * + COUNT( * ) + - - 89 / + + 50 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + - 30 * + - ( + SUM ( DISTINCT - 97 ) ) + + COUNT ( * ) * + COUNT ( * ) + - - 89 / + + 50 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8357
SELECT DISTINCT + - 92 AS col1, 3 * + SUM( - + 84 ) AS col2, 60 DIV + 41
----
-92
-252
1

skipif mysql # not compatible
query III rowsort label-8357
SELECT DISTINCT + - 92 AS col1, 3 * + SUM ( - + 84 ) AS col2, 60 / + 41
----
-92
-252
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8358
SELECT - 80 + COUNT( * ) + 75 - - 94 + 10 * 15, - 95 AS col0
----
240
-95

skipif mysql # not compatible
query II rowsort label-8358
SELECT - 80 + COUNT ( * ) + 75 - - 94 + 10 * 15, - 95 AS col0
----
240
-95

query II rowsort
SELECT + + 94, 53 AS col0
----
94
53

query III rowsort
SELECT ALL + 99, - ( - 42 ) * + + 90 AS col0, 74 - 52 + + 76 col1
----
99
3780
98

query I rowsort
SELECT ALL + - 76 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL - ( - - 65 ) * - COUNT( * ) * + COUNT( * ) + - + 73 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL - ( - - 65 ) * - COUNT ( * ) * + COUNT ( * ) + - + 73 AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8363
SELECT + 82 + - COUNT( * ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT + 82 + - COUNT ( * ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT - 93 * + COUNT( * ) col2
----
-93

skipif mysql # not compatible
query I rowsort label-8364
SELECT - 93 * + COUNT ( * ) col2
----
-93

query I rowsort
SELECT + 75 + 12
----
87

query I rowsort
SELECT + ( + 61 )
----
61

query I rowsort
SELECT - ( - 69 ) AS col1
----
69

query I rowsort
SELECT DISTINCT + 45 * - + ( - + 47 )
----
2115

query I rowsort
SELECT - ( - 21 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8370
SELECT COUNT( DISTINCT + 83 ) AS col1, - COALESCE ( + - MAX( - CAST( 59 AS SIGNED ) ), + 74, - + 2 ) + - + CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8370
SELECT COUNT ( DISTINCT + 83 ) AS col1, - COALESCE ( + - MAX ( - CAST ( 59 AS INTEGER ) ), + 74, - + 2 ) + - + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8371
SELECT - CAST( + 38 AS SIGNED ) * - COALESCE ( - - 3, 63 DIV + 16 * + 69 * - + 88 * + ( - COUNT( * ) ) + + - 36 )
----
114

skipif mysql # not compatible
query I rowsort label-8371
SELECT - CAST ( + 38 AS INTEGER ) * - COALESCE ( - - 3, 63 / + 16 * + 69 * - + 88 * + ( - COUNT ( * ) ) + + - 36 )
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8372
SELECT DISTINCT MIN( + 15 ) * + + ( + 90 ) * + COALESCE ( 94, + NULLIF ( + + 91, 10 + + ( 4 ) ) * - NULLIF ( + COUNT( * ), - 24 + - 71 ) * CAST( NULL AS SIGNED ), + 21 ) AS col1
----
126900

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT MIN ( + 15 ) * + + ( + 90 ) * + COALESCE ( 94, + NULLIF ( + + 91, 10 + + ( 4 ) ) * - NULLIF ( + COUNT ( * ), - 24 + - 71 ) * CAST ( NULL AS INTEGER ), + 21 ) AS col1
----
126900

query I rowsort
SELECT - ( + + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT DISTINCT - CASE 53 WHEN + COUNT( * ) THEN COUNT( * ) + + 76 ELSE - 59 END AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT - CASE 53 WHEN + COUNT ( * ) THEN COUNT ( * ) + + 76 ELSE - 59 END AS col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8375
SELECT ALL COUNT( * ) + + 60, + 98 AS col2
----
61
98

skipif mysql # not compatible
query II rowsort label-8375
SELECT ALL COUNT ( * ) + + 60, + 98 AS col2
----
61
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL - - 49 * 62 * + - COUNT( * ) AS col0
----
-3038

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL - - 49 * 62 * + - COUNT ( * ) AS col0
----
-3038

query I rowsort
SELECT ALL + + 86 + - 23
----
63

query I rowsort
SELECT - + 8 AS col1
----
-8

query I rowsort
SELECT - + 70 * - - ( ( + 67 ) ) * + 35 - + - 61
----
-164089

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL - 48 + SUM( - - 8 ) + - 37 - - + ( - 64 ) - COUNT( * ) + + + 16 * + 77 AS col1
----
1090

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - 48 + SUM ( - - 8 ) + - 37 - - + ( - 64 ) - COUNT ( * ) + + + 16 * + 77 AS col1
----
1090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8381
SELECT - COUNT( ALL + + 78 ) + - + 25 * 53 DIV + 7 AS col0
----
-190

skipif mysql # not compatible
query I rowsort label-8381
SELECT - COUNT ( ALL + + 78 ) + - + 25 * 53 / + 7 AS col0
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT - 64 * + - 53 * + 51 * + + MAX( - 57 ) AS col2
----
-9860544

skipif mysql # not compatible
query I rowsort label-8382
SELECT - 64 * + - 53 * + 51 * + + MAX ( - 57 ) AS col2
----
-9860544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8383
SELECT ALL - 89 DIV + ( + 22 ) + - + COUNT( * ) * - + MIN( ALL - 51 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL - 89 / + ( + 22 ) + - + COUNT ( * ) * - + MIN ( ALL - 51 ) AS col0
----
-55

query I rowsort
SELECT ALL + + 77 * - 53
----
-4081

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8385
SELECT CAST( - CAST( 6 AS SIGNED ) AS SIGNED ), 93 AS col2
----
-6
93

skipif mysql # not compatible
query II rowsort label-8385
SELECT CAST ( - CAST ( 6 AS INTEGER ) AS INTEGER ), 93 AS col2
----
-6
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8386
SELECT + 64 DIV - 57 + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT + 64 / - 57 + + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8387
SELECT CAST( NULL AS SIGNED ) col2, + 28
----
NULL
28

skipif mysql # not compatible
query II rowsort label-8387
SELECT CAST ( NULL AS INTEGER ) col2, + 28
----
NULL
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT + MIN( ALL - 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8388
SELECT + MIN ( ALL - 57 ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8389
SELECT DISTINCT + CAST( SUM( 76 ) AS SIGNED ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT + CAST ( SUM ( 76 ) AS INTEGER ) AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8390
SELECT CAST( NULL AS SIGNED ) AS col2, 47 AS col0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-8390
SELECT CAST ( NULL AS INTEGER ) AS col2, 47 AS col0
----
NULL
47

query I rowsort
SELECT + 34 * - 75 col2
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT + COALESCE ( 6, 35 * - 92 + - COUNT( * ), + - 23 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT + COALESCE ( 6, 35 * - 92 + - COUNT ( * ), + - 23 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8393
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) / 48 - - 57 AS col0, 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-8393
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) / 48 - - 57 AS col0, 87 AS col2
----
NULL
87

query II rowsort
SELECT DISTINCT + 89 col2, 64 * + 41 * - + 37 col2
----
89
-97088

query I rowsort
SELECT - 98 * + 17
----
-1666

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT DISTINCT + COALESCE ( - 40, + COUNT( ALL 47 ) + + - 10 + + 15 )
----
-40

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT + COALESCE ( - 40, + COUNT ( ALL 47 ) + + - 10 + + 15 )
----
-40

query I rowsort
SELECT ( + + 23 )
----
23

query I rowsort
SELECT ALL + 86 * + 33
----
2838

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT - COUNT( * ) * - - 63
----
-63

skipif mysql # not compatible
query I rowsort label-8399
SELECT - COUNT ( * ) * - - 63
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8400
SELECT - 63 * + MAX( 71 ) DIV + + COUNT( * ) + - 34 col2
----
-4507

skipif mysql # not compatible
query I rowsort label-8400
SELECT - 63 * + MAX ( 71 ) / + + COUNT ( * ) + - 34 col2
----
-4507

query I rowsort
SELECT DISTINCT - 33 AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8402
SELECT - NULLIF ( + 50, + - 93 ) * - COUNT( * ) * + 74 * + + 69 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT - NULLIF ( + 50, + - 93 ) * - COUNT ( * ) * + 74 * + + 69 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT 11 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-8403
SELECT 11 / - 37
----
0

query I rowsort
SELECT 81 + 70
----
151

onlyif mysql # DIV for integer division: 
query II rowsort label-8405
SELECT DISTINCT - 82, 5 DIV - + 44 AS col0
----
-82
0

skipif mysql # not compatible
query II rowsort label-8405
SELECT DISTINCT - 82, 5 / - + 44 AS col0
----
-82
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8406
SELECT - ( COUNT( DISTINCT 11 ) ), CAST( - 66 AS SIGNED ) + - 12 AS col2
----
-1
-78

skipif mysql # not compatible
query II rowsort label-8406
SELECT - ( COUNT ( DISTINCT 11 ) ), CAST ( - 66 AS INTEGER ) + - 12 AS col2
----
-1
-78

query II rowsort
SELECT 49 AS col1, 80 * + + 0 - + + 77 AS col0
----
49
-77

query I rowsort
SELECT DISTINCT 24 + - - 4
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT ALL 38, - COUNT( DISTINCT 29 ) * - - 73 + - 45 col2
----
38
-118

skipif mysql # not compatible
query II rowsort label-8409
SELECT ALL 38, - COUNT ( DISTINCT 29 ) * - - 73 + - 45 col2
----
38
-118

query I rowsort
SELECT ALL + 79 + - 32
----
47

query I rowsort
SELECT ALL 42 + 46 + 22 * + 67 + - 79 col0
----
1483

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8412
SELECT - COUNT( * ) AS col1, SUM( + 91 ) * ( + 96 ) DIV + 68 DIV + COUNT( * ) - 9 * - COALESCE ( + - COUNT( + 73 ), + - SUM( 61 ) DIV + 91 ) + COALESCE ( COUNT( * ), CASE WHEN NOT + 7 >= 10 DIV 45 + 10 THEN + 94 + + 7 ELSE - COALESCE ( 30, 2, 35 * COUNT( * ) ) END ) AS col0
----
-1
120

skipif mysql # not compatible
query II rowsort label-8412
SELECT - COUNT ( * ) AS col1, SUM ( + 91 ) * ( + 96 ) / + 68 / + COUNT ( * ) - 9 * - COALESCE ( + - COUNT ( + 73 ), + - SUM ( 61 ) / + 91 ) + COALESCE ( COUNT ( * ), CASE WHEN NOT + 7 >= 10 / 45 + 10 THEN + 94 + + 7 ELSE - COALESCE ( 30, 2, 35 * COUNT ( * ) ) END ) AS col0
----
-1
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8413
SELECT + 86 + + COUNT( * ) * + CAST( + 64 AS SIGNED ) + - ( + - COUNT( * ) ) + + 97 AS col0
----
248

skipif mysql # not compatible
query I rowsort label-8413
SELECT + 86 + + COUNT ( * ) * + CAST ( + 64 AS INTEGER ) + - ( + - COUNT ( * ) ) + + 97 AS col0
----
248

query II rowsort
SELECT - + 54 AS col0, + 92
----
-54
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL + SUM( ALL - - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL + SUM ( ALL - - 27 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8416
SELECT - NULLIF ( - COUNT( * ), + 47 / 13 - + - MAX( - + 12 ) + NULLIF ( + 50, - 70 ) + - 35 * + COUNT( * ) ) * CAST( + 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-8416
SELECT - NULLIF ( - COUNT ( * ), + 47 / 13 - + - MAX ( - + 12 ) + NULLIF ( + 50, - 70 ) + - 35 * + COUNT ( * ) ) * CAST ( + 89 AS INTEGER )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8417
SELECT MAX( ALL + ( - + 58 ) ) AS col1, + 37 + - 58 AS col2
----
-58
-21

skipif mysql # not compatible
query II rowsort label-8417
SELECT MAX ( ALL + ( - + 58 ) ) AS col1, + 37 + - 58 AS col2
----
-58
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8418
SELECT DISTINCT - ( - 47 ) + - + 98 + - + COUNT( * ) * + NULLIF ( - 17, - CAST( NULL AS SIGNED ) )
----
-34

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT - ( - 47 ) + - + 98 + - + COUNT ( * ) * + NULLIF ( - 17, - CAST ( NULL AS INTEGER ) )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-8419
SELECT 79 * - - 4 + + - 94, COUNT( * ) + - 99 AS col1
----
222
-98

skipif mysql # not compatible
query II rowsort label-8419
SELECT 79 * - - 4 + + - 94, COUNT ( * ) + - 99 AS col1
----
222
-98

query I rowsort
SELECT - 7 col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT + 2 DIV + - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8421
SELECT + 2 / + - 61 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT ALL 72 DIV + + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL 72 / + + 90 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8423
SELECT - MAX( + + 41 ) / - SUM( DISTINCT + 53 ) * + + 86 + - 74 + - + ( 54 ) + - 65 + - 6 * - + 84 * - - CAST( NULL AS SIGNED ) * + 46 * + CAST( COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT - MAX ( + + 41 ) / - SUM ( DISTINCT + 53 ) * + + 86 + - 74 + - + ( 54 ) + - 65 + - 6 * - + 84 * - - CAST ( NULL AS INTEGER ) * + 46 * + CAST ( COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8424
SELECT COUNT( * ) DIV - 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8424
SELECT COUNT ( * ) / - 18 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8425
SELECT 76 DIV + 87 * - - 80
----
0

skipif mysql # not compatible
query I rowsort label-8425
SELECT 76 / + 87 * - - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT NULLIF ( COALESCE ( - - COUNT( * ), - + 49 ), + - 59 ) + + 57 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8426
SELECT NULLIF ( COALESCE ( - - COUNT ( * ), - + 49 ), + - 59 ) + + 57 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL - 63 * - 78 * COUNT( * ) * + 70 * + 19 * + 43
----
281031660

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL - 63 * - 78 * COUNT ( * ) * + 70 * + 19 * + 43
----
281031660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT ALL - NULLIF ( + - CASE 27 WHEN + - CASE WHEN - ( + - 78 ) IN ( - + 7 ) THEN CASE + + 14 WHEN 12 + - COALESCE ( + COUNT( * ), + ( 13 ) * - 30 ) THEN ( - 9 ) * ( 54 / - COUNT( * ) + 78 * - ( + 81 / + CAST( NULL AS SIGNED ) ) ) - - ( - 69 + CAST( - 62 AS SIGNED ) * 15 ) ELSE NULL END * 0 WHEN NOT ( CAST( NULL AS SIGNED ) * 43 + 5 * - 19 ) IN ( + 7 + - 98 ) THEN 72 ELSE NULL END - 33 THEN - NULLIF ( 13, - NULLIF ( 67, 99 + 60 ) ) - - CAST( NULL AS SIGNED ) * 79 WHEN - 64 THEN NULL ELSE + 5 + - COUNT( * ) END, 84 )
----
4

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL - NULLIF ( + - CASE 27 WHEN + - CASE WHEN - ( + - 78 ) IN ( - + 7 ) THEN CASE + + 14 WHEN 12 + - COALESCE ( + COUNT ( * ), + ( 13 ) * - 30 ) THEN ( - 9 ) * ( 54 / - COUNT ( * ) + 78 * - ( + 81 / + CAST ( NULL AS INTEGER ) ) ) - - ( - 69 + CAST ( - 62 AS INTEGER ) * 15 ) ELSE NULL END * 0 WHEN NOT ( CAST ( NULL AS INTEGER ) * 43 + 5 * - 19 ) IN ( + 7 + - 98 ) THEN 72 ELSE NULL END - 33 THEN - NULLIF ( 13, - NULLIF ( 67, 99 + 60 ) ) - - CAST ( NULL AS INTEGER ) * 79 WHEN - 64 THEN NULL ELSE + 5 + - COUNT ( * ) END, 84 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT 76 * - + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-8429
SELECT 76 * - + COUNT ( * )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8430
SELECT CAST( + + ( + 21 ) AS SIGNED ) * + - 34 * ( - CASE + + 5 WHEN - 33 THEN - 93 * - + 74 + + + 47 * 35 WHEN + 20 / + 78 - + COUNT( * ) THEN NULLIF ( + 62, - 47 ) ELSE + 29 * + 37 END ) * + COUNT( * ) + CAST( - 19 AS SIGNED ) AS col1
----
766103

skipif mysql # not compatible
query I rowsort label-8430
SELECT CAST ( + + ( + 21 ) AS INTEGER ) * + - 34 * ( - CASE + + 5 WHEN - 33 THEN - 93 * - + 74 + + + 47 * 35 WHEN + 20 / + 78 - + COUNT ( * ) THEN NULLIF ( + 62, - 47 ) ELSE + 29 * + 37 END ) * + COUNT ( * ) + CAST ( - 19 AS INTEGER ) AS col1
----
766103

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL - COALESCE ( 66, - NULLIF ( SUM( - 6 ), - + ( - NULLIF ( - 40, NULLIF ( - 60, - 79 ) ) ) + 76 * + 4 ) - 33 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - COALESCE ( 66, - NULLIF ( SUM ( - 6 ), - + ( - NULLIF ( - 40, NULLIF ( - 60, - 79 ) ) ) + 76 * + 4 ) - 33 ) AS col0
----
-66

query II rowsort
SELECT 92 + + 79 AS col1, - COALESCE ( + 16, 63 ) AS col0
----
171
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT 1 * - CASE + 64 WHEN 24 * - + 16 - - 92 + - - AVG ( + + 81 ) THEN + COUNT( * ) + + 44 * - + 97 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT 1 * - CASE + 64 WHEN 24 * - + 16 - - 92 + - - AVG ( + + 81 ) THEN + COUNT ( * ) + + 44 * - + 97 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8434
SELECT DISTINCT - ( + CAST( + - CASE 76 WHEN + - 98 THEN NULL ELSE ( + 86 ) * + - COALESCE ( + SUM( DISTINCT - - ( + 45 ) ), - - CAST( NULL AS SIGNED ) ) END AS SIGNED ) ), + 16 AS col0
----
-3870
16

skipif mysql # not compatible
query II rowsort label-8434
SELECT DISTINCT - ( + CAST ( + - CASE 76 WHEN + - 98 THEN NULL ELSE ( + 86 ) * + - COALESCE ( + SUM ( DISTINCT - - ( + 45 ) ), - - CAST ( NULL AS INTEGER ) ) END AS INTEGER ) ), + 16 AS col0
----
-3870
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT - MIN( - ( 85 ) ) * 43 + + - 94
----
3561

skipif mysql # not compatible
query I rowsort label-8435
SELECT - MIN ( - ( 85 ) ) * 43 + + - 94
----
3561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8436
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8437
SELECT 91 DIV ( - - MAX( + - 66 ) ) AS col2, + 7 + + + 57
----
-1
64

skipif mysql # not compatible
query II rowsort label-8437
SELECT 91 / ( - - MAX ( + - 66 ) ) AS col2, + 7 + + + 57
----
-1
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8438
SELECT ALL - 28 + + COUNT( * ) / 80 * - + CAST( NULL AS DECIMAL ) * - 1 * - COUNT( * ) + + 77 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL - 28 + + COUNT ( * ) / 80 * - + CAST ( NULL AS REAL ) * - 1 * - COUNT ( * ) + + 77 * 12
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8439
SELECT DISTINCT 38 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT 38 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT 46 * - 24 + - - 93 - + COUNT( * ) + - 31 * - 9 col1
----
-733

skipif mysql # not compatible
query I rowsort label-8440
SELECT 46 * - 24 + - - 93 - + COUNT ( * ) + - 31 * - 9 col1
----
-733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8441
SELECT + CAST( NULL AS SIGNED ) - + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT + CAST ( NULL AS INTEGER ) - + 87 AS col0
----
NULL

query I rowsort
SELECT ALL 54 + - - 93 AS col0
----
147

query I rowsort
SELECT + ( 57 ) * + + 71 - + 31 AS col1
----
4016

query I rowsort
SELECT ALL + + 23 + + 57
----
80

query I rowsort
SELECT ALL 3 - + 36 col0
----
-33

query I rowsort
SELECT 94 - 53 AS col1
----
41

query I rowsort
SELECT - + 40 AS col0
----
-40

query I rowsort
SELECT 74 * 54 * + 92
----
367632

query I rowsort
SELECT + 9 * - 72
----
-648

query I rowsort
SELECT ALL 92 col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT + 53 + - - MAX( ALL + + 14 )
----
67

skipif mysql # not compatible
query I rowsort label-8451
SELECT + 53 + - - MAX ( ALL + + 14 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT - MIN( - - CASE 1 WHEN - 75 - - - 66 THEN 64 WHEN + COALESCE ( + ( 33 ), + 81 ) + + - 14 + 73 / COALESCE ( 28, + + 5 ) THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT - MIN ( - - CASE 1 WHEN - 75 - - - 66 THEN 64 WHEN + COALESCE ( + ( 33 ), + 81 ) + + - 14 + 73 / COALESCE ( 28, + + 5 ) THEN NULL ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8453
SELECT 83 + - CASE - + 34 WHEN - COUNT( * ) THEN - 78 WHEN + 27 THEN NULL WHEN + - 28 THEN NULL END + - 49, 35 + 69 AS col2
----
NULL
104

skipif mysql # not compatible
query II rowsort label-8453
SELECT 83 + - CASE - + 34 WHEN - COUNT ( * ) THEN - 78 WHEN + 27 THEN NULL WHEN + - 28 THEN NULL END + - 49, 35 + 69 AS col2
----
NULL
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT MAX( DISTINCT 39 ) * + 60
----
2340

skipif mysql # not compatible
query I rowsort label-8454
SELECT MAX ( DISTINCT 39 ) * + 60
----
2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8455
SELECT + COALESCE ( 42, + COALESCE ( - - 56, 81 + + 6, + - NULLIF ( - MIN( + - 87 ), 53 - 55 DIV - 79 + ( + 25 ) * + MAX( 58 ) * 24 ) * - COUNT( * ) ) * 83 ) * - 5 + 14 DIV - 49
----
-210

skipif mysql # not compatible
query I rowsort label-8455
SELECT + COALESCE ( 42, + COALESCE ( - - 56, 81 + + 6, + - NULLIF ( - MIN ( + - 87 ), 53 - 55 / - 79 + ( + 25 ) * + MAX ( 58 ) * 24 ) * - COUNT ( * ) ) * 83 ) * - 5 + 14 / - 49
----
-210

query I rowsort
SELECT + 11 col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL CASE + + MAX( ALL - + 92 ) WHEN - 64 * 80 THEN NULL WHEN - AVG ( + + 55 ) THEN + 20 + - - COUNT( DISTINCT 0 ) ELSE 75 END * - COUNT( * ) + + COALESCE ( - 23, 2 )
----
-98

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL CASE + + MAX ( ALL - + 92 ) WHEN - 64 * 80 THEN NULL WHEN - AVG ( + + 55 ) THEN + 20 + - - COUNT ( DISTINCT 0 ) ELSE 75 END * - COUNT ( * ) + + COALESCE ( - 23, 2 )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8458
SELECT COALESCE ( + 50, + + 48 * + - 70 + 65 ) DIV 85 - - COUNT( * ) + + - 27 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8458
SELECT COALESCE ( + 50, + + 48 * + - 70 + 65 ) / 85 - - COUNT ( * ) + + - 27 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT SUM( ALL + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-8459
SELECT SUM ( ALL + 40 )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8460
SELECT - 45 DIV + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8460
SELECT - 45 / + 88 AS col0
----
0

query I rowsort
SELECT - 63 * 49 AS col2
----
-3087

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8462
SELECT + 33 * + - 80 DIV NULLIF ( CASE + - CAST( 24 AS SIGNED ) WHEN - + ( + 48 ) * - + 39 * + 27 THEN ( 21 ) ELSE + 82 + - 2 END, + + 0 )
----
-33

skipif mysql # not compatible
query I rowsort label-8462
SELECT + 33 * + - 80 / NULLIF ( CASE + - CAST ( 24 AS INTEGER ) WHEN - + ( + 48 ) * - + 39 * + 27 THEN ( 21 ) ELSE + 82 + - 2 END, + + 0 )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8463
SELECT ALL + 17 * 95 + - COUNT( * ) + + 21 * 20, MIN( DISTINCT - + 1 ) * 49 - - - 78 + - 47 + - 19 * 83 AS col2
----
2034
-1751

skipif mysql # not compatible
query II rowsort label-8463
SELECT ALL + 17 * 95 + - COUNT ( * ) + + 21 * 20, MIN ( DISTINCT - + 1 ) * 49 - - - 78 + - 47 + - 19 * 83 AS col2
----
2034
-1751

query I rowsort
SELECT - 3 - - 95
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8465
SELECT ALL 53 * 90 + - + 45 DIV - - 85
----
4770

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL 53 * 90 + - + 45 / - - 85
----
4770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8466
SELECT ALL + COALESCE ( - COUNT( * ), - 8 + - 39 DIV + 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL + COALESCE ( - COUNT ( * ), - 8 + - 39 / + 72 )
----
-1

query I rowsort
SELECT + - 1 AS col2
----
-1

query I rowsort
SELECT ALL - 52 + + 21
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8469
SELECT 59 AS col2, ( - MAX( + 29 ) )
----
59
-29

skipif mysql # not compatible
query II rowsort label-8469
SELECT 59 AS col2, ( - MAX ( + 29 ) )
----
59
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8470
SELECT - - 72 + + 7 + - COALESCE ( 93, - ( + NULLIF ( + - 84, + MAX( DISTINCT - 82 ) ) ) DIV - - 88 ) + - + 4 DIV - 48 * + - COUNT( * ) * + 42 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8470
SELECT - - 72 + + 7 + - COALESCE ( 93, - ( + NULLIF ( + - 84, + MAX ( DISTINCT - 82 ) ) ) / - - 88 ) + - + 4 / - 48 * + - COUNT ( * ) * + 42 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8471
SELECT - + 97 + - CAST( NULL AS DECIMAL ) * + MIN( + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT - + 97 + - CAST ( NULL AS REAL ) * + MIN ( + 81 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8472
SELECT DISTINCT + 58 - COUNT( * ) + + COALESCE ( - 69, - 17 DIV + 49 + + SUM( 75 ) + 80, + + MAX( DISTINCT - 93 ) ) * 20 + - 76 AS col0
----
-1399

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT + 58 - COUNT ( * ) + + COALESCE ( - 69, - 17 / + 49 + + SUM ( 75 ) + 80, + + MAX ( DISTINCT - 93 ) ) * 20 + - 76 AS col0
----
-1399

query I rowsort
SELECT ALL 88 * - 65
----
-5720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8474
SELECT - CASE - - 40 WHEN - 48 * + 76 * - 64 + - + 35 * - + ( COALESCE ( + 83, - ( + CAST( NULL AS DECIMAL ) ) ) ) - + 84 THEN NULL WHEN 55 * - - CAST( + 83 AS SIGNED ) THEN 41 * - COUNT( * ) END + COUNT( - 29 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT - CASE - - 40 WHEN - 48 * + 76 * - 64 + - + 35 * - + ( COALESCE ( + 83, - ( + CAST ( NULL AS REAL ) ) ) ) - + 84 THEN NULL WHEN 55 * - - CAST ( + 83 AS INTEGER ) THEN 41 * - COUNT ( * ) END + COUNT ( - 29 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT - + AVG ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT - + AVG ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - + 58 * + 79
----
-4582

onlyif mysql # aggregate syntax: 
query II rowsort label-8477
SELECT ALL 97 AS col2, COUNT( * ) * - 54
----
97
-54

skipif mysql # not compatible
query II rowsort label-8477
SELECT ALL 97 AS col2, COUNT ( * ) * - 54
----
97
-54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8478
SELECT - - 70 DIV - CAST( - 72 AS SIGNED ) AS col0, + 47 col2
----
0
47

skipif mysql # not compatible
query II rowsort label-8478
SELECT - - 70 / - CAST ( - 72 AS INTEGER ) AS col0, + 47 col2
----
0
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT + + 90 * + + COUNT( - 99 ) * - ( + 63 ) AS col0
----
-5670

skipif mysql # not compatible
query I rowsort label-8479
SELECT + + 90 * + + COUNT ( - 99 ) * - ( + 63 ) AS col0
----
-5670

query I rowsort
SELECT - - 20 * 50
----
1000

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8481
SELECT - COALESCE ( - + 12, + 29 * + 76 + + 72 - + 52, + COALESCE ( - 78, + 93 DIV + + 54 + + 36 ) * + 97 * + - CASE + NULLIF ( 90, - + 68 * 59 + 51 ) WHEN 25 * - 7 + - 72 THEN - 38 * - ( 89 * 54 ) END ) DIV ( - 63 * + 9 - CAST( - 51 - CAST( - 98 AS SIGNED ) AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8481
SELECT - COALESCE ( - + 12, + 29 * + 76 + + 72 - + 52, + COALESCE ( - 78, + 93 / + + 54 + + 36 ) * + 97 * + - CASE + NULLIF ( 90, - + 68 * 59 + 51 ) WHEN 25 * - 7 + - 72 THEN - 38 * - ( 89 * 54 ) END ) / ( - 63 * + 9 - CAST ( - 51 - CAST ( - 98 AS INTEGER ) AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT DISTINCT ( - - 10 ) AS col1
----
10

query I rowsort
SELECT 61 col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT ALL CAST( 32 AS SIGNED ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL CAST ( 32 AS INTEGER ) AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8485
SELECT 69 AS col2, + CAST( - MIN( + 26 ) AS SIGNED ) AS col1
----
69
-26

skipif mysql # not compatible
query II rowsort label-8485
SELECT 69 AS col2, + CAST ( - MIN ( + 26 ) AS INTEGER ) AS col1
----
69
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT + MIN( ALL - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-8486
SELECT + MIN ( ALL - 30 )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT ALL 63 DIV + 37 + + 21 col2
----
22

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL 63 / + 37 + + 21 col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8488
SELECT + ( + COUNT( * ) ), - 17 * + CASE + 44 WHEN 7 THEN - 13 * + 34 / - 73 END + 95 col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8488
SELECT + ( + COUNT ( * ) ), - 17 * + CASE + 44 WHEN 7 THEN - 13 * + 34 / - 73 END + 95 col1
----
1
NULL

query I rowsort
SELECT ( - - 90 ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT + CAST( 90 AS SIGNED ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8490
SELECT + CAST ( 90 AS INTEGER ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8491
SELECT ALL CAST( NULL AS DECIMAL ) / - COUNT( * ) + + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL CAST ( NULL AS REAL ) / - COUNT ( * ) + + 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8492
SELECT ( 9 ) AS col1, - COUNT( * ) AS col1
----
9
-1

skipif mysql # not compatible
query II rowsort label-8492
SELECT ( 9 ) AS col1, - COUNT ( * ) AS col1
----
9
-1

query I rowsort
SELECT ALL - 22 * - 40 + 48 AS col0
----
928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT + 27 + - 46 + CAST( NULL AS SIGNED ) / + - MAX( + - 13 ) * + - SUM( + 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT + 27 + - 46 + CAST ( NULL AS INTEGER ) / + - MAX ( + - 13 ) * + - SUM ( + 33 ) AS col2
----
NULL

query I rowsort
SELECT ( 17 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT 65 DIV - 36 + - + 98
----
-99

skipif mysql # not compatible
query I rowsort label-8496
SELECT 65 / - 36 + - + 98
----
-99

query I rowsort
SELECT ( + 96 ) AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8498
SELECT + 56 + - 12 + 36 / 84 + - SUM( ALL ( - - ( - 77 ) ) ) + - COUNT( ALL CAST( - 43 AS SIGNED ) ) * + + 83 * + - CAST( NULL AS SIGNED ) * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT + 56 + - 12 + 36 / 84 + - SUM ( ALL ( - - ( - 77 ) ) ) + - COUNT ( ALL CAST ( - 43 AS INTEGER ) ) * + + 83 * + - CAST ( NULL AS INTEGER ) * - 27
----
NULL

query I rowsort
SELECT - 48 * - 48 col1
----
2304

query I rowsort
SELECT - 62 + - 74 AS col0
----
-136

query I rowsort
SELECT ALL + + 48 * - + ( - 7 ) AS col0
----
336

onlyif mysql # DIV for integer division: 
query I rowsort label-8502
SELECT ALL 75 DIV - 13
----
-5

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL 75 / - 13
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8503
SELECT COUNT( * ) AS col1, + 1
----
1
1

skipif mysql # not compatible
query II rowsort label-8503
SELECT COUNT ( * ) AS col1, + 1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL + - 35 * - 18 * COUNT( * ) AS col1
----
630

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL + - 35 * - 18 * COUNT ( * ) AS col1
----
630

query I rowsort
SELECT + + 35 * + 74
----
2590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8506
SELECT ALL - COUNT( * ) * 94 + + - 50 - + 33 + - - CAST( NULL AS SIGNED ) * - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL - COUNT ( * ) * 94 + + - 50 - + 33 + - - CAST ( NULL AS INTEGER ) * - 36 AS col1
----
NULL

query I rowsort
SELECT - + 31
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8508
SELECT 61 AS col2, + COUNT( * ) + - - 24 * + 15 + - 69 AS col0
----
61
292

skipif mysql # not compatible
query II rowsort label-8508
SELECT 61 AS col2, + COUNT ( * ) + - - 24 * + 15 + - 69 AS col0
----
61
292

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT + - ( + 9 ) * - - 50 * - - 56 + - 58 + - 44 + + 7 + - 34 * - MIN( ALL + - 1 ) * + 30 AS col1
----
-26315

skipif mysql # not compatible
query I rowsort label-8509
SELECT + - ( + 9 ) * - - 50 * - - 56 + - 58 + - 44 + + 7 + - 34 * - MIN ( ALL + - 1 ) * + 30 AS col1
----
-26315

onlyif mysql # aggregate syntax: 
query II rowsort label-8510
SELECT ALL 53 AS col1, COUNT( - + 43 ) AS col0
----
53
1

skipif mysql # not compatible
query II rowsort label-8510
SELECT ALL 53 AS col1, COUNT ( - + 43 ) AS col0
----
53
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT - + ( + 53 ) * - + 94 + ( + 33 ) + - SUM( - + 39 )
----
5054

skipif mysql # not compatible
query I rowsort label-8511
SELECT - + ( + 53 ) * - + 94 + ( + 33 ) + - SUM ( - + 39 )
----
5054

query I rowsort
SELECT - 22 - + NULLIF ( - 47, + + COALESCE ( - - 80, - 26 ) + 55 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8513
SELECT - COUNT( * ) * CASE COUNT( * ) WHEN + + 83 THEN + CAST( + 6 AS SIGNED ) * + AVG ( 26 ) + 20 * COUNT( * ) WHEN + - 36 THEN NULL END AS col0, + 52
----
NULL
52

skipif mysql # not compatible
query II rowsort label-8513
SELECT - COUNT ( * ) * CASE COUNT ( * ) WHEN + + 83 THEN + CAST ( + 6 AS INTEGER ) * + AVG ( 26 ) + 20 * COUNT ( * ) WHEN + - 36 THEN NULL END AS col0, + 52
----
NULL
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8514
SELECT - 49 * + 75 + 51 + 31 + + 32 * - - 51 * 73 * CAST( + 73 AS SIGNED ) + - + 48 col0
----
8693287

skipif mysql # not compatible
query I rowsort label-8514
SELECT - 49 * + 75 + 51 + 31 + + 32 * - - 51 * 73 * CAST ( + 73 AS INTEGER ) + - + 48 col0
----
8693287

onlyif mysql # aggregate syntax: 
query II rowsort label-8515
SELECT - COUNT( * ) AS col1, 89
----
-1
89

skipif mysql # not compatible
query II rowsort label-8515
SELECT - COUNT ( * ) AS col1, 89
----
-1
89

query I rowsort
SELECT DISTINCT + 13 * ( - 14 )
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT ALL + 41 + + COUNT( DISTINCT + + 51 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL + 41 + + COUNT ( DISTINCT + + 51 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT 66 + - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-8518
SELECT 66 + - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8519
SELECT 11 * + 20 DIV + NULLIF ( COUNT( * ), - 97 + + 27 * + + 93 DIV 48 ) col0
----
220

skipif mysql # not compatible
query I rowsort label-8519
SELECT 11 * + 20 / + NULLIF ( COUNT ( * ), - 97 + + 27 * + + 93 / 48 ) col0
----
220

onlyif mysql # aggregate syntax: 
query II rowsort label-8520
SELECT ALL + 41 + 46 col2, ( + COUNT( + 17 ) ) AS col2
----
87
1

skipif mysql # not compatible
query II rowsort label-8520
SELECT ALL + 41 + 46 col2, ( + COUNT ( + 17 ) ) AS col2
----
87
1

query II rowsort
SELECT ALL 80 + - 99 AS col0, + 58
----
-19
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT - 64 * - MAX( - 91 ) + - 30 col2
----
-5854

skipif mysql # not compatible
query I rowsort label-8522
SELECT - 64 * - MAX ( - 91 ) + - 30 col2
----
-5854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8523
SELECT ALL + CASE + - ( - MIN( ALL - 7 ) ) WHEN - - 51 * - 31 / - ( + 1 ) + ( + - ( - 8 ) ) * - 91 * 25 / + 81 THEN + + CAST( NULL AS SIGNED ) END + + - 76 + - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + CASE + - ( - MIN ( ALL - 7 ) ) WHEN - - 51 * - 31 / - ( + 1 ) + ( + - ( - 8 ) ) * - 91 * 25 / + 81 THEN + + CAST ( NULL AS INTEGER ) END + + - 76 + - - 56
----
NULL

query I rowsort
SELECT 97 - + 10 * + 35 AS col1
----
-253

query II rowsort
SELECT 31 + - + 24 AS col2, 70 + + - 51
----
7
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8526
SELECT + 46 * - 62 * + 77 * + + 92 - + - 63 - + + 24 + + COUNT( * ) DIV + 75
----
-20203529

skipif mysql # not compatible
query I rowsort label-8526
SELECT + 46 * - 62 * + 77 * + + 92 - + - 63 - + + 24 + + COUNT ( * ) / + 75
----
-20203529

onlyif mysql # aggregate syntax: 
query II rowsort label-8527
SELECT + SUM( DISTINCT 95 ), - 55 AS col2
----
95
-55

skipif mysql # not compatible
query II rowsort label-8527
SELECT + SUM ( DISTINCT 95 ), - 55 AS col2
----
95
-55

query I rowsort
SELECT 23 * 34 AS col2
----
782

query I rowsort
SELECT DISTINCT ( + 60 ) * 76 col1
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL - COALESCE ( + 14, + COUNT( * ), - + 26 * - - 12 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL - COALESCE ( + 14, + COUNT ( * ), - + 26 * - - 12 ) AS col1
----
-14

query I rowsort
SELECT DISTINCT - - 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT COUNT( * ) * - 98 * - 44
----
4312

skipif mysql # not compatible
query I rowsort label-8532
SELECT COUNT ( * ) * - 98 * - 44
----
4312

query I rowsort
SELECT - 39 + + 9 AS col1
----
-30

query I rowsort
SELECT 79 + 47 AS col0
----
126

query I rowsort
SELECT + + 23 AS col2
----
23

query II rowsort
SELECT 38 * + + 92 AS col0, + 25
----
3496
25

query I rowsort
SELECT - 6 + 46
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8538
SELECT + COUNT( * ) * + 93 * + 49 + - - MAX( 22 ) DIV - 68 - 56 + + + 88
----
4589

skipif mysql # not compatible
query I rowsort label-8538
SELECT + COUNT ( * ) * + 93 * + 49 + - - MAX ( 22 ) / - 68 - 56 + + + 88
----
4589

query I rowsort
SELECT 72 + 12
----
84

query I rowsort
SELECT 49 + - + 31 - 96 * + + 5 * 24 * + 79
----
-910062

query II rowsort
SELECT ALL - 24 + + 53 AS col2, + 55
----
29
55

query I rowsort
SELECT 82 * + - 16 AS col2
----
-1312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8543
SELECT DISTINCT 99 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT 99 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 58 + + ( + 58 ) AS col2
----
116

query II rowsort
SELECT 95 + - 92 + ( + 8 ) AS col2, 30 col2
----
11
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8546
SELECT DISTINCT 46, + COUNT( * ) DIV - 78 * - 79 AS col2
----
46
0

skipif mysql # not compatible
query II rowsort label-8546
SELECT DISTINCT 46, + COUNT ( * ) / - 78 * - 79 AS col2
----
46
0

query I rowsort
SELECT 11 + 27
----
38

query II rowsort
SELECT 0 AS col0, + ( 15 ) AS col1
----
0
15

query I rowsort
SELECT ALL 98 + - - NULLIF ( + + ( + + 80 ), + - 89 + - + 50 ) AS col2
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8550
SELECT ALL + COALESCE ( - 1, 97, - CASE COUNT( * ) WHEN 72 THEN NULL ELSE - + 57 * + 73 END DIV 78 + - 96 + - 93 ) + 53 col1
----
52

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL + COALESCE ( - 1, 97, - CASE COUNT ( * ) WHEN 72 THEN NULL ELSE - + 57 * + 73 END / 78 + - 96 + - 93 ) + 53 col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT DISTINCT + 28 - - 8 + - SUM( 44 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT + 28 - - 8 + - SUM ( 44 ) AS col2
----
-8

query II rowsort
SELECT 94, 9 AS col1
----
94
9

query I rowsort
SELECT 17 + 76
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8554
SELECT ALL - CASE - - 98 WHEN CAST( NULL AS SIGNED ) THEN ( + + 98 ) * + - 88 * - - 50 * + - 68 + - 59 - + 82 + 54 * + 99 END * 12 + - + NULLIF ( - - 44, - - COUNT( * ) ) + - 15 / CASE 58 WHEN + MAX( DISTINCT + 16 ) * 9 THEN 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL - CASE - - 98 WHEN CAST ( NULL AS INTEGER ) THEN ( + + 98 ) * + - 88 * - - 50 * + - 68 + - 59 - + 82 + 54 * + 99 END * 12 + - + NULLIF ( - - 44, - - COUNT ( * ) ) + - 15 / CASE 58 WHEN + MAX ( DISTINCT + 16 ) * 9 THEN 4 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL + 10 - + 18 + + MAX( DISTINCT 81 ) col1
----
73

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + 10 - + 18 + + MAX ( DISTINCT 81 ) col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8556
SELECT COUNT( * ) AS col1, - 27 AS col2
----
1
-27

skipif mysql # not compatible
query II rowsort label-8556
SELECT COUNT ( * ) AS col1, - 27 AS col2
----
1
-27

query I rowsort
SELECT 0 * + NULLIF ( 53, - 48 )
----
0

query I rowsort
SELECT 36 * NULLIF ( - 8, - 86 + + 74 ) AS col1
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT 2 DIV + + 63 + - 43 + - 55 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8559
SELECT 2 / + + 63 + - 43 + - 55 AS col1
----
-98

query II rowsort
SELECT ALL - + 13 AS col1, 84 + - 68 * - 44 * + 95 - 73 + - 54 * + 48 AS col1
----
-13
281659

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8561
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, + NULLIF ( 13, - 18 - + 62 ) * - 15 + CAST( NULL AS SIGNED ) + + 21 * 40 * + 44 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8561
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + NULLIF ( 13, - 18 - + 62 ) * - 15 + CAST ( NULL AS INTEGER ) + + 21 * 40 * + 44 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT 93 * + 57 + + SUM( DISTINCT + 32 ) * + 91
----
8213

skipif mysql # not compatible
query I rowsort label-8562
SELECT 93 * + 57 + + SUM ( DISTINCT + 32 ) * + 91
----
8213

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT - SUM( ALL - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT - SUM ( ALL - 16 )
----
16

query II rowsort
SELECT 90 AS col1, - 91 + ( + 89 )
----
90
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT 15 + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-8565
SELECT 15 + + COUNT ( * )
----
16

query I rowsort
SELECT 17 * + 69 + + 68 + 3
----
1244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8567
SELECT + CASE - + 22 WHEN + 3 * - - 13 + - + 60 + - + COUNT( * ) + + 86 - - 47 * MAX( + 58 ) * + 49 + + + 98 * ( + - ( + - 51 ) ) / CAST( + COUNT( * ) AS DECIMAL ) + - 44 * NULLIF ( - 72, 32 * CAST( + 2 AS SIGNED ) + + CAST( + COUNT( * ) AS SIGNED ) ) THEN + CASE 86 WHEN COUNT( * ) / - CAST( 30 AS DECIMAL ) THEN - 96 + 33 ELSE + 42 END / - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT + CASE - + 22 WHEN + 3 * - - 13 + - + 60 + - + COUNT ( * ) + + 86 - - 47 * MAX ( + 58 ) * + 49 + + + 98 * ( + - ( + - 51 ) ) / CAST ( + COUNT ( * ) AS REAL ) + - 44 * NULLIF ( - 72, 32 * CAST ( + 2 AS INTEGER ) + + CAST ( + COUNT ( * ) AS INTEGER ) ) THEN + CASE 86 WHEN COUNT ( * ) / - CAST ( 30 AS REAL ) THEN - 96 + 33 ELSE + 42 END / - 3 END
----
NULL

query I rowsort
SELECT DISTINCT + 46 * + 14 AS col0
----
644

query I rowsort
SELECT ALL - + 20 AS col1
----
-20

query I rowsort
SELECT + 26 col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8571
SELECT + CASE + - 51 WHEN CAST( NULL AS SIGNED ) THEN - SUM( + 66 ) - - 27 ELSE NULL END * + 45 + 70 + 74 + + - 72 * - + 78 * 38 + + ( - 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT + CASE + - 51 WHEN CAST ( NULL AS INTEGER ) THEN - SUM ( + 66 ) - - 27 ELSE NULL END * + 45 + 70 + 74 + + - 72 * - + 78 * 38 + + ( - 68 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT + COUNT( * ) * + 63 + - 68
----
-5

skipif mysql # not compatible
query I rowsort label-8572
SELECT + COUNT ( * ) * + 63 + - 68
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8573
SELECT DISTINCT - 86 * - 45 + + 13 AS col0, + NULLIF ( COUNT( * ), 54 ) * 94
----
3883
94

skipif mysql # not compatible
query II rowsort label-8573
SELECT DISTINCT - 86 * - 45 + + 13 AS col0, + NULLIF ( COUNT ( * ), 54 ) * 94
----
3883
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8574
SELECT ALL + 27 + 25 DIV 67 - - 83 + 71 * + COUNT( * ) * + + 70
----
5080

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL + 27 + 25 / 67 - - 83 + 71 * + COUNT ( * ) * + + 70
----
5080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8575
SELECT ALL 9 + + COUNT( * ) + 72 + 19 + CAST( NULL AS SIGNED ) * - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL 9 + + COUNT ( * ) + 72 + 19 + CAST ( NULL AS INTEGER ) * - 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8576
SELECT + 61, COUNT( * ) * 38 col2
----
61
38

skipif mysql # not compatible
query II rowsort label-8576
SELECT + 61, COUNT ( * ) * 38 col2
----
61
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL COUNT( * ) + + - 89 + 72 * - 79
----
-5776

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL COUNT ( * ) + + - 89 + 72 * - 79
----
-5776

query II rowsort
SELECT + 83 col2, 55 * - 32 AS col0
----
83
-1760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8579
SELECT + COUNT( * ) DIV - 45 * + 81
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT + COUNT ( * ) / - 45 * + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT + 41 - MIN( ALL - + 67 )
----
108

skipif mysql # not compatible
query I rowsort label-8580
SELECT + 41 - MIN ( ALL - + 67 )
----
108

query I rowsort
SELECT + 46 * + 47 * - 32 AS col2
----
-69184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8582
SELECT ALL 52 DIV + - NULLIF ( 99, CAST( NULL AS SIGNED ) * COUNT( * ) * - 66 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL 52 / + - NULLIF ( 99, CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 66 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL COUNT( * ) + - + SUM( - 27 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL COUNT ( * ) + - + SUM ( - 27 ) AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8584
SELECT + CAST( NULL AS SIGNED ) - + CASE 72 WHEN - + 40 * - 76 THEN + 18 WHEN - 44 * CASE 5 WHEN - 93 THEN NULL ELSE - ( 10 ) END + - COUNT( 84 ) + + 68 THEN 55 ELSE - - ( - COUNT( * ) ) / + - ( - COUNT( * ) ) END / - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT + CAST ( NULL AS INTEGER ) - + CASE 72 WHEN - + 40 * - 76 THEN + 18 WHEN - 44 * CASE 5 WHEN - 93 THEN NULL ELSE - ( 10 ) END + - COUNT ( 84 ) + + 68 THEN 55 ELSE - - ( - COUNT ( * ) ) / + - ( - COUNT ( * ) ) END / - 63
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8585
SELECT ALL 16 DIV - + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL 16 / - + 77 AS col0
----
0

query I rowsort
SELECT ALL 75 + - - 62
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT DISTINCT 10 - 28 * - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT 10 - 28 * - COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT - COUNT( ALL + 52 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8588
SELECT - COUNT ( ALL + 52 ) AS col0
----
-1

query I rowsort
SELECT - ( - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT - 39 - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-8590
SELECT - 39 - COUNT ( * )
----
-40

query II rowsort
SELECT ALL 45 - - 11 AS col0, - 62 AS col0
----
56
-62

query I rowsort
SELECT + 51 * - 91 AS col1
----
-4641

query I rowsort
SELECT + 27 + - 20 * - 59 AS col0
----
1207

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL SUM( - + ( 24 ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL SUM ( - + ( 24 ) ) AS col1
----
-24

query I rowsort
SELECT + 3 + - 80 + 51 + 36
----
10

query I rowsort
SELECT - 9 * + 66 AS col0
----
-594

query I rowsort
SELECT + 21 * 4
----
84

query I rowsort
SELECT DISTINCT + + 46 AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8599
SELECT - 85 DIV - 52
----
1

skipif mysql # not compatible
query I rowsort label-8599
SELECT - 85 / - 52
----
1

query I rowsort
SELECT ALL - + 28 * - 84 + + - 6 * + 55 * + 0
----
2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8601
SELECT ALL - NULLIF ( + NULLIF ( + - 94, + 29 DIV - + COALESCE ( + 82, 57 ) + + ( + CASE - + 68 WHEN 26 THEN + ( - - CAST( - SUM( DISTINCT 89 ) AS SIGNED ) ) + COUNT( * ) + - 92 - - 56 DIV - CAST( NULL AS SIGNED ) * 74 END ) ), + MAX( + ( + 13 ) ) ) DIV - 83 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL - NULLIF ( + NULLIF ( + - 94, + 29 / - + COALESCE ( + 82, 57 ) + + ( + CASE - + 68 WHEN 26 THEN + ( - - CAST ( - SUM ( DISTINCT 89 ) AS INTEGER ) ) + COUNT ( * ) + - 92 - - 56 / - CAST ( NULL AS INTEGER ) * 74 END ) ), + MAX ( + ( + 13 ) ) ) / - 83 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8602
SELECT - - 24 DIV + COUNT( * ) - + 31 - + COUNT( * ) * - + 96 * 14 * - - ( - COUNT( * ) ) AS col1
----
-1351

skipif mysql # not compatible
query I rowsort label-8602
SELECT - - 24 / + COUNT ( * ) - + 31 - + COUNT ( * ) * - + 96 * 14 * - - ( - COUNT ( * ) ) AS col1
----
-1351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8603
SELECT + CAST( + COUNT( * ) AS SIGNED ) DIV + 46 * 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8603
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) / + 46 * 76 AS col0
----
0

query I rowsort
SELECT - - 87 + + 39 col2
----
126

query I rowsort
SELECT - + 23 * - 70
----
1610

query I rowsort
SELECT + 40 * + 15 + - 20 AS col0
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT ALL - 48 * - MAX( 89 )
----
4272

skipif mysql # not compatible
query I rowsort label-8607
SELECT ALL - 48 * - MAX ( 89 )
----
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT DISTINCT + + 11 * - COUNT( * ) + - + CASE + CASE - 42 WHEN - - ( - + 41 ) THEN - - 97 - - COUNT( * ) WHEN - ( COUNT( * ) ) + 86 + - 90 THEN - NULLIF ( 4, - - 52 ) ELSE NULL END WHEN - - COUNT( * ) THEN 82 * - - 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT + + 11 * - COUNT ( * ) + - + CASE + CASE - 42 WHEN - - ( - + 41 ) THEN - - 97 - - COUNT ( * ) WHEN - ( COUNT ( * ) ) + 86 + - 90 THEN - NULLIF ( 4, - - 52 ) ELSE NULL END WHEN - - COUNT ( * ) THEN 82 * - - 80 END
----
NULL

query I rowsort
SELECT ALL + + 46 * - 51 + + 82 * - + 59 * - 13
----
60548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8610
SELECT DISTINCT - + 80 * + 96 + 4 + COALESCE ( + 34, 20 * + 27 + + CAST( + 24 AS SIGNED ) * - 23 * - + 67, 0 DIV + 79 ) * - - 40 + - 11 AS col1, 97 + + - 46 + - - CASE - + COUNT( * ) WHEN 64 THEN - COUNT( * ) * + 71 + 12 WHEN 44 THEN NULL WHEN 82 + 48 THEN + 36 END
----
-6327
NULL

skipif mysql # not compatible
query II rowsort label-8610
SELECT DISTINCT - + 80 * + 96 + 4 + COALESCE ( + 34, 20 * + 27 + + CAST ( + 24 AS INTEGER ) * - 23 * - + 67, 0 / + 79 ) * - - 40 + - 11 AS col1, 97 + + - 46 + - - CASE - + COUNT ( * ) WHEN 64 THEN - COUNT ( * ) * + 71 + 12 WHEN 44 THEN NULL WHEN 82 + 48 THEN + 36 END
----
-6327
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT + + MAX( 28 )
----
28

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT + + MAX ( 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT - 24 - - - 12 * - 89 - + COUNT( * ) + + 16
----
1059

skipif mysql # not compatible
query I rowsort label-8612
SELECT - 24 - - - 12 * - 89 - + COUNT ( * ) + + 16
----
1059

query I rowsort
SELECT + - ( - 49 ) col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-8614
SELECT + CASE COUNT( * ) WHEN + NULLIF ( - + 75, + CASE WHEN NULL < 98 THEN + COUNT( * ) ELSE NULL END * + 46 + - 28 ) + + 3 THEN NULL WHEN - + 90 * - ( + - 32 ) * 72 THEN 14 ELSE - - 1 END, 12 AS col2
----
1
12

skipif mysql # not compatible
query II rowsort label-8614
SELECT + CASE COUNT ( * ) WHEN + NULLIF ( - + 75, + CASE WHEN NULL < 98 THEN + COUNT ( * ) ELSE NULL END * + 46 + - 28 ) + + 3 THEN NULL WHEN - + 90 * - ( + - 32 ) * 72 THEN 14 ELSE - - 1 END, 12 AS col2
----
1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT - + 10 + - 40 + - 68 * + COUNT( ALL 97 ) * - 6 AS col2
----
358

skipif mysql # not compatible
query I rowsort label-8615
SELECT - + 10 + - 40 + - 68 * + COUNT ( ALL 97 ) * - 6 AS col2
----
358

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT MAX( - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-8616
SELECT MAX ( - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT ALL - 82 * - 55 * COUNT( * )
----
4510

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL - 82 * - 55 * COUNT ( * )
----
4510

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT - COUNT( * ) + 16 * + + 51
----
815

skipif mysql # not compatible
query I rowsort label-8618
SELECT - COUNT ( * ) + 16 * + + 51
----
815

query I rowsort
SELECT + 23 - - + 77 col0
----
100

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8620
SELECT DISTINCT ( - CAST( - - ( - - CAST( NULL AS SIGNED ) ) AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT ( - CAST ( - - ( - - CAST ( NULL AS INTEGER ) ) AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT DISTINCT - 0 * COUNT( + + 13 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT - 0 * COUNT ( + + 13 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8622
SELECT ALL ( ( + 73 ) ), - COUNT( * ) AS col1
----
73
-1

skipif mysql # not compatible
query II rowsort label-8622
SELECT ALL ( ( + 73 ) ), - COUNT ( * ) AS col1
----
73
-1

query II rowsort
SELECT ALL 51 AS col1, + 26 + - + 87
----
51
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT DISTINCT CAST( - - 47 AS SIGNED ) col1
----
47

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT CAST ( - - 47 AS INTEGER ) col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT - COUNT( - 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-8625
SELECT - COUNT ( - 43 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8626
SELECT + 39 + - + COUNT( * ) - COUNT( * ) * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT + 39 + - + COUNT ( * ) - COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 57 * + - 83
----
-4731

query I rowsort
SELECT + 45 + - 69 AS col2
----
-24

query II rowsort
SELECT 57 AS col2, - 38 AS col2
----
57
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT + 21 + - 11 + 39, - COUNT( * ) col1
----
49
-1

skipif mysql # not compatible
query II rowsort label-8630
SELECT + 21 + - 11 + 39, - COUNT ( * ) col1
----
49
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8631
SELECT ALL + 38 DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL + 38 / - 44
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT ALL 91 * 69 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL 91 * 69 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 97 * + 83 AS col2
----
8051

query II rowsort
SELECT ALL 28 AS col1, ( - 85 ) AS col2
----
28
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT - CAST( + + 31 AS SIGNED ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-8635
SELECT - CAST ( + + 31 AS INTEGER ) col0
----
-31

query I rowsort
SELECT ALL CASE + 20 WHEN ( 47 ) THEN - + 10 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8637
SELECT + MAX( DISTINCT + 46 ) + - 80, - ( - COUNT( * ) ) AS col2
----
-34
1

skipif mysql # not compatible
query II rowsort label-8637
SELECT + MAX ( DISTINCT + 46 ) + - 80, - ( - COUNT ( * ) ) AS col2
----
-34
1

query I rowsort
SELECT DISTINCT - ( + - 27 ) AS col2
----
27

query I rowsort
SELECT + - 7 * + 71
----
-497

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT + - COALESCE ( + 16, + 91 ) + MIN( - 5 )
----
-21

skipif mysql # not compatible
query I rowsort label-8640
SELECT + - COALESCE ( + 16, + 91 ) + MIN ( - 5 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT + MIN( - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-8641
SELECT + MIN ( - 42 )
----
-42

query II rowsort
SELECT - 66 AS col0, + COALESCE ( + 4, 66 ) AS col1
----
-66
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT - - 63 * - + 81 * + 20 + + ( 42 ) DIV 40 * 84
----
-101976

skipif mysql # not compatible
query I rowsort label-8643
SELECT - - 63 * - + 81 * + 20 + + ( 42 ) / 40 * 84
----
-101976

query I rowsort
SELECT + 59 * + 22
----
1298

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT + - SUM( - 94 ) * - 84 + 80 + + 69 * + ( + 77 )
----
-2503

skipif mysql # not compatible
query I rowsort label-8645
SELECT + - SUM ( - 94 ) * - 84 + 80 + + 69 * + ( + 77 )
----
-2503

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8646
SELECT DISTINCT MIN( DISTINCT - 89 ) DIV + + ( - 95 ) + + 27 + - ( + - COUNT( ALL - + 77 ) ) DIV - 36 + 41 * + 41 AS col1
----
1708

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT MIN ( DISTINCT - 89 ) / + + ( - 95 ) + + 27 + - ( + - COUNT ( ALL - + 77 ) ) / - 36 + 41 * + 41 AS col1
----
1708

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL - 91 / - 43 + ( + - 1 ) - 56 * - 32 * + 71 * + - 58 * - NULLIF ( + 40, 10 * 0 - ( - + COUNT( * ) ) + + + ( SUM( ALL 39 ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL - 91 / - 43 + ( + - 1 ) - 56 * - 32 * + 71 * + - 58 * - NULLIF ( + 40, 10 * 0 - ( - + COUNT ( * ) ) + + + ( SUM ( ALL 39 ) ) ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8648
SELECT ALL + 97 DIV COUNT( * ) - - COALESCE ( COUNT( ALL + 28 ), + 83 ) AS col2, + 38
----
98
38

skipif mysql # not compatible
query II rowsort label-8648
SELECT ALL + 97 / COUNT ( * ) - - COALESCE ( COUNT ( ALL + 28 ), + 83 ) AS col2, + 38
----
98
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT + MAX( + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT + MAX ( + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT - ( + NULLIF ( COUNT( DISTINCT - NULLIF ( + + 7, + 46 ) ), + 12 + + 66 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT - ( + NULLIF ( COUNT ( DISTINCT - NULLIF ( + + 7, + 46 ) ), + 12 + + 66 ) )
----
-1

query I rowsort
SELECT ALL - 5 + + 13 AS col0
----
8

query I rowsort
SELECT ALL + NULLIF ( + - 10, - - 94 ) * 47 * 8 col1
----
-3760

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ( 36 ) + + COUNT( ALL + 57 ) + 23 * + 29 AS col1
----
704

skipif mysql # not compatible
query I rowsort label-8653
SELECT ( 36 ) + + COUNT ( ALL + 57 ) + 23 * + 29 AS col1
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT 34 * - + COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8654
SELECT 34 * - + COUNT ( * ) AS col2
----
-34

query II rowsort
SELECT + ( ( 7 ) ) AS col1, 2 AS col2
----
7
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8656
SELECT - COALESCE ( - 55, - 57 DIV 59 - - + 54 + - + NULLIF ( - CASE - 17 WHEN + 41 THEN - COUNT( * ) END, - 30 ), 44 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8656
SELECT - COALESCE ( - 55, - 57 / 59 - - + 54 + - + NULLIF ( - CASE - 17 WHEN + 41 THEN - COUNT ( * ) END, - 30 ), 44 ) AS col2
----
55

query I rowsort
SELECT ALL - 45 + 4
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8658
SELECT + CAST( + + 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-8658
SELECT + CAST ( + + 42 AS INTEGER )
----
42

query I rowsort
SELECT DISTINCT - 85 AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8660
SELECT DISTINCT 41 * + CAST( - ( - 43 ) AS SIGNED ) AS col0
----
1763

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT 41 * + CAST ( - ( - 43 ) AS INTEGER ) AS col0
----
1763

query I rowsort
SELECT ALL 99 * - 67 AS col2
----
-6633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8662
SELECT DISTINCT + COUNT( * ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT + COUNT ( * ) / + 92
----
0

query I rowsort
SELECT 95 * + 32
----
3040

query I rowsort
SELECT ALL - COALESCE ( - 46, + 22 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL - CASE + COUNT( * ) WHEN - - COUNT( * ) + 86 THEN + + 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - CASE + COUNT ( * ) WHEN - - COUNT ( * ) + 86 THEN + + 13 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT 81 * - SUM( + 93 ) * + + 58
----
-436914

skipif mysql # not compatible
query I rowsort label-8666
SELECT 81 * - SUM ( + 93 ) * + + 58
----
-436914

query II rowsort
SELECT 48 AS col2, - ( - 87 ) + + 18
----
48
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8668
SELECT ALL 57 AS col2, + 26 DIV 1 + COUNT( * )
----
57
27

skipif mysql # not compatible
query II rowsort label-8668
SELECT ALL 57 AS col2, + 26 / 1 + COUNT ( * )
----
57
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT 0 - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8669
SELECT 0 - - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT COUNT( * ) * + 70
----
70

skipif mysql # not compatible
query I rowsort label-8670
SELECT COUNT ( * ) * + 70
----
70

query I rowsort
SELECT 7 * 31
----
217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8672
SELECT 52 * + NULLIF ( - CAST( NULL AS SIGNED ), - - 40 ) - - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT 52 * + NULLIF ( - CAST ( NULL AS INTEGER ), - - 40 ) - - - 71
----
NULL

query I rowsort
SELECT ALL 15 AS col1
----
15

query II rowsort
SELECT ALL 17 AS col2, 93 AS col1
----
17
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8675
SELECT ALL + CASE - + NULLIF ( - 75, - 93 * + 71 + COUNT( * ) + + 84 + + 72 / NULLIF ( + NULLIF ( MIN( ALL + 98 ), + 53 ), + 82 ) ) WHEN 78 * + 57 THEN COALESCE ( + 74, - 35 + + 37 ) * - 97 / - 7 WHEN ( CAST( NULL AS SIGNED ) ) THEN NULL END * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL + CASE - + NULLIF ( - 75, - 93 * + 71 + COUNT ( * ) + + 84 + + 72 / NULLIF ( + NULLIF ( MIN ( ALL + 98 ), + 53 ), + 82 ) ) WHEN 78 * + 57 THEN COALESCE ( + 74, - 35 + + 37 ) * - 97 / - 7 WHEN ( CAST ( NULL AS INTEGER ) ) THEN NULL END * + 9
----
NULL

query II rowsort
SELECT ALL 72 AS col2, 78 AS col0
----
72
78

query I rowsort
SELECT DISTINCT + 34 * 32
----
1088

query II rowsort
SELECT ALL 26 col2, 13
----
26
13

query II rowsort
SELECT 53, 68 AS col1
----
53
68

query I rowsort
SELECT COALESCE ( + 96, - 52 ) - + + 87 * - - 69 col0
----
-5907

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL + ( + MAX( - 81 ) ) + - 51
----
-132

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL + ( + MAX ( - 81 ) ) + - 51
----
-132

query I rowsort
SELECT ALL 60 + - 18 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8683
SELECT - COUNT( * ) + COUNT( * ) - - CAST( NULL AS SIGNED ) * + 89 + + + 91 / - AVG ( 22 ) * + 46 * - - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT - COUNT ( * ) + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * + 89 + + + 91 / - AVG ( 22 ) * + 46 * - - 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL - + 65 + + 93 * + + CASE + 44 WHEN + MIN( 82 ) THEN + + 93 WHEN + ( AVG ( 39 ) ) THEN + 39 * + COUNT( - 41 ) + 50 WHEN - ( + + CASE - 57 WHEN + 53 + + 82 + + ( + ( + COUNT( ALL 25 ) ) ) THEN NULLIF ( 7, - 12 ) END ) / ( COUNT( * ) * + 80 + 18 * + 32 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL - + 65 + + 93 * + + CASE + 44 WHEN + MIN ( 82 ) THEN + + 93 WHEN + ( AVG ( 39 ) ) THEN + 39 * + COUNT ( - 41 ) + 50 WHEN - ( + + CASE - 57 WHEN + 53 + + 82 + + ( + ( + COUNT ( ALL 25 ) ) ) THEN NULLIF ( 7, - 12 ) END ) / ( COUNT ( * ) * + 80 + 18 * + 32 ) THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL - 9 + 62 + + 12 + + 27 + 78 * - 70 * 26 + - COUNT( * )
----
-141869

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL - 9 + 62 + + 12 + + 27 + 78 * - 70 * 26 + - COUNT ( * )
----
-141869

onlyif mysql # DIV for integer division: 
query I rowsort label-8686
SELECT 23 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8686
SELECT 23 / - 84 AS col2
----
0

query I rowsort
SELECT DISTINCT 49 + + - 11 - + 6 * - 56
----
374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8688
SELECT + ( + NULLIF ( CAST( NULL AS SIGNED ), 27 * - - CAST( 43 AS SIGNED ) ) ) / 53 + - CASE COUNT( * ) WHEN - 72 THEN NULL WHEN + 51 + + ( - CAST( NULL AS DECIMAL ) ) THEN + SUM( DISTINCT - 85 ) + 24 END * 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8688
SELECT + ( + NULLIF ( CAST ( NULL AS INTEGER ), 27 * - - CAST ( 43 AS INTEGER ) ) ) / 53 + - CASE COUNT ( * ) WHEN - 72 THEN NULL WHEN + 51 + + ( - CAST ( NULL AS REAL ) ) THEN + SUM ( DISTINCT - 85 ) + 24 END * 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8689
SELECT ALL - + 67 AS col2, + COUNT( * ) AS col0
----
-67
1

skipif mysql # not compatible
query II rowsort label-8689
SELECT ALL - + 67 AS col2, + COUNT ( * ) AS col0
----
-67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL 76 + - COUNT( * ) * 7 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL 76 + - COUNT ( * ) * 7 AS col0
----
69

query II rowsort
SELECT + 79 AS col2, 82
----
79
82

query I rowsort
SELECT 48 + + + 98 * + - 19 AS col0
----
-1814

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT 92 * ( 22 ) * - COALESCE ( - 80, + MAX( DISTINCT - 54 ) ) + CASE WHEN ( NULL ) IN ( - ( + 6 ) ) THEN 44 * + 21 * + + 27 END + - COALESCE ( - COALESCE ( + AVG ( ALL + 88 ), - 35, - 69, 41 + + 58 ), + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT 92 * ( 22 ) * - COALESCE ( - 80, + MAX ( DISTINCT - 54 ) ) + CASE WHEN ( NULL ) IN ( - ( + 6 ) ) THEN 44 * + 21 * + + 27 END + - COALESCE ( - COALESCE ( + AVG ( ALL + 88 ), - 35, - 69, 41 + + 58 ), + 29 )
----
NULL

query I rowsort
SELECT DISTINCT - + 98 AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8695
SELECT + ( MAX( ALL 92 ) ) * - 2 + + 10 * 59, - CAST( NULL AS SIGNED ) / + 12 AS col0
----
406
NULL

skipif mysql # not compatible
query II rowsort label-8695
SELECT + ( MAX ( ALL 92 ) ) * - 2 + + 10 * 59, - CAST ( NULL AS INTEGER ) / + 12 AS col0
----
406
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT 60 - + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT 60 - + COUNT ( * )
----
59

query I rowsort
SELECT ALL - 65 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT 10 + - + COUNT( * ) * 75 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-8698
SELECT 10 + - + COUNT ( * ) * 75 AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT NULLIF ( - 62, CAST( NULL AS SIGNED ) + - 90 + - 80 + 60 ) * - ( 99 ) + - - NULLIF ( + - 29, 61 - + - 55 + + + CAST( + 91 AS SIGNED ) )
----
6109

skipif mysql # not compatible
query I rowsort label-8699
SELECT NULLIF ( - 62, CAST ( NULL AS INTEGER ) + - 90 + - 80 + 60 ) * - ( 99 ) + - - NULLIF ( + - 29, 61 - + - 55 + + + CAST ( + 91 AS INTEGER ) )
----
6109

query I rowsort
SELECT ALL - 20 * 63 AS col2
----
-1260

query I rowsort
SELECT 0 + 30
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8702
SELECT ALL - COUNT( * ) * + + COUNT( * ) DIV - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) / - + COUNT ( * )
----
1

query I rowsort
SELECT 56 * + 89 + - 74 * 52
----
1136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8704
SELECT DISTINCT COUNT( * ) * - 29 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT COUNT ( * ) * - 29 / - 54
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8705
SELECT DISTINCT - 75 + + - ( - NULLIF ( COUNT( * ), + - 94 ) ) AS col2, + 20 * 92
----
-74
1840

skipif mysql # not compatible
query II rowsort label-8705
SELECT DISTINCT - 75 + + - ( - NULLIF ( COUNT ( * ), + - 94 ) ) AS col2, + 20 * 92
----
-74
1840

query I rowsort
SELECT 35 + - 27 * 72
----
-1909

query I rowsort
SELECT 9 * + 86 AS col1
----
774

query I rowsort
SELECT 45 + - NULLIF ( - - 69, - + 76 ) + - - 39 * + 14 * 83 + + + 34
----
45328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8709
SELECT DISTINCT - ( - - 12 ) + + + 32 + 89 * - COALESCE ( - - 83, + 42, + + 12 ) - - CAST( + 31 AS SIGNED )
----
-7336

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT - ( - - 12 ) + + + 32 + 89 * - COALESCE ( - - 83, + 42, + + 12 ) - - CAST ( + 31 AS INTEGER )
----
-7336

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ALL + COUNT( * ) + - COUNT( * ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - 10 col1
----
-10

query I rowsort
SELECT ALL + + 42 * - - 98
----
4116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8713
SELECT ALL + ( - - 66 ) + + - CASE + - 54 WHEN - 21 THEN - - COUNT( * ) + - 71 * - 85 * + 84 WHEN 59 THEN NULL ELSE NULL END AS col1, - CASE WHEN - COUNT( * ) <= SUM( 87 ) THEN - 51 * + - 28 ELSE - + 96 - + + COALESCE ( + 67, - 45 ) * 84 * + 7 END - + 93 DIV 39
----
NULL
-1430

skipif mysql # not compatible
query II rowsort label-8713
SELECT ALL + ( - - 66 ) + + - CASE + - 54 WHEN - 21 THEN - - COUNT ( * ) + - 71 * - 85 * + 84 WHEN 59 THEN NULL ELSE NULL END AS col1, - CASE WHEN - COUNT ( * ) <= SUM ( 87 ) THEN - 51 * + - 28 ELSE - + 96 - + + COALESCE ( + 67, - 45 ) * 84 * + 7 END - + 93 / 39
----
NULL
-1430

query I rowsort
SELECT - - 75 * - - 69 AS col2
----
5175

onlyif mysql # aggregate syntax: 
query II rowsort label-8715
SELECT ALL - 69 * + 73 AS col1, - COUNT( * )
----
-5037
-1

skipif mysql # not compatible
query II rowsort label-8715
SELECT ALL - 69 * + 73 AS col1, - COUNT ( * )
----
-5037
-1

query I rowsort
SELECT - 77 + + 24
----
-53

query I rowsort
SELECT - ( + 51 ) AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8718
SELECT DISTINCT CASE COUNT( ALL + + 40 ) WHEN NULLIF ( 12, + 40 * 4 * - 88 ) - - - 81 + - + 89 * - - COUNT( * ) THEN NULL WHEN - - SUM( 24 ) THEN NULL WHEN 34 THEN + - 13 * CAST( + ( 37 ) AS SIGNED ) + - 1 - CAST( NULL AS DECIMAL ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT CASE COUNT ( ALL + + 40 ) WHEN NULLIF ( 12, + 40 * 4 * - 88 ) - - - 81 + - + 89 * - - COUNT ( * ) THEN NULL WHEN - - SUM ( 24 ) THEN NULL WHEN 34 THEN + - 13 * CAST ( + ( 37 ) AS INTEGER ) + - 1 - CAST ( NULL AS REAL ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL - COALESCE ( 29, CASE COALESCE ( + COUNT( * ), 38 ) WHEN + 97 * + 31 + + CASE 89 WHEN + 51 + + 12 * + 87 THEN + 36 END + - + 71 + - 78 * + 90 THEN + - 40 - + CASE + 79 WHEN + + 72 THEN + + 25 WHEN 89 + + CASE 85 WHEN COUNT( DISTINCT + ( - ( 27 ) ) ) - 99 THEN - COUNT( * ) * COUNT( * ) WHEN 11 THEN NULL ELSE NULL END / + MAX( DISTINCT - 28 ) THEN NULL END * - 84 ELSE NULL END )
----
-29

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL - COALESCE ( 29, CASE COALESCE ( + COUNT ( * ), 38 ) WHEN + 97 * + 31 + + CASE 89 WHEN + 51 + + 12 * + 87 THEN + 36 END + - + 71 + - 78 * + 90 THEN + - 40 - + CASE + 79 WHEN + + 72 THEN + + 25 WHEN 89 + + CASE 85 WHEN COUNT ( DISTINCT + ( - ( 27 ) ) ) - 99 THEN - COUNT ( * ) * COUNT ( * ) WHEN 11 THEN NULL ELSE NULL END / + MAX ( DISTINCT - 28 ) THEN NULL END * - 84 ELSE NULL END )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT - 48 - - - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8720
SELECT - 48 - - - COUNT ( * ) AS col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8721
SELECT ALL - + 58 DIV + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL - + 58 / + COUNT ( * )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 69 - - ( 85 ) * - - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 69 - - ( 85 ) * - - 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8723
SELECT DISTINCT - COUNT( * ) DIV - 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT - COUNT ( * ) / - 27 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT - + COUNT( * ) * + 98 + COALESCE ( + 2, + - 96, 15 ) * + 32 + 40 + - 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8724
SELECT - + COUNT ( * ) * + 98 + COALESCE ( + 2, + - 96, 15 ) * + 32 + 40 + - 6 AS col2
----
0

query I rowsort
SELECT ALL + - 63 AS col1
----
-63

query II rowsort
SELECT DISTINCT + 43, 19 AS col2
----
43
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8727
SELECT - SUM( ALL 15 ) DIV - + 52
----
0

skipif mysql # not compatible
query I rowsort label-8727
SELECT - SUM ( ALL 15 ) / - + 52
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8728
SELECT - CAST( NULL AS SIGNED ) * + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8728
SELECT - CAST ( NULL AS INTEGER ) * + 21
----
NULL

query I rowsort
SELECT ALL COALESCE ( + CASE + - 72 WHEN - 43 + + - 23 * - 5 THEN + 18 END, 59 ) * - 86 - 19 * + 29 AS col1
----
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT COALESCE ( + 10, - + 35 - SUM( 78 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8730
SELECT COALESCE ( + 10, - + 35 - SUM ( 78 ) ) AS col2
----
10

query I rowsort
SELECT + 58 * + - 54
----
-3132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8732
SELECT CASE - NULLIF ( + COUNT( * ), - + 32 ) WHEN + + 54 THEN - 48 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT CASE - NULLIF ( + COUNT ( * ), - + 32 ) WHEN + + 54 THEN - 48 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 34 + 39 AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8734
SELECT ALL + 71, + 10 * + CAST( NULL AS SIGNED ) AS col2
----
71
NULL

skipif mysql # not compatible
query II rowsort label-8734
SELECT ALL + 71, + 10 * + CAST ( NULL AS INTEGER ) AS col2
----
71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL + COUNT( - + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL + COUNT ( - + 77 )
----
1

query I rowsort
SELECT ALL 10 * + - 25
----
-250

query I rowsort
SELECT + 22 * - - 85
----
1870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8738
SELECT MIN( ( + 45 ) ), - CAST( NULL AS SIGNED ) col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-8738
SELECT MIN ( ( + 45 ) ), - CAST ( NULL AS INTEGER ) col0
----
45
NULL

query I rowsort
SELECT + 57 * + 20 AS col0
----
1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8740
SELECT ALL ( + CASE - 58 WHEN - - ( 68 ) * + - COALESCE ( - CASE - 97 WHEN - SUM( DISTINCT + 34 ) + 22 * - + CAST( - 3 AS SIGNED ) + + - 80 THEN + ( ( - 93 ) ) ELSE NULL END, - 63 ) + + 31 THEN 59 * 31 / COALESCE ( 73, MIN( 75 ) ) WHEN + 66 * + 7 THEN - NULLIF ( + 0, 69 * 83 ) + - COUNT( * ) / 50 ELSE NULL END ) * COUNT( * ) + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL ( + CASE - 58 WHEN - - ( 68 ) * + - COALESCE ( - CASE - 97 WHEN - SUM ( DISTINCT + 34 ) + 22 * - + CAST ( - 3 AS INTEGER ) + + - 80 THEN + ( ( - 93 ) ) ELSE NULL END, - 63 ) + + 31 THEN 59 * 31 / COALESCE ( 73, MIN ( 75 ) ) WHEN + 66 * + 7 THEN - NULLIF ( + 0, 69 * 83 ) + - COUNT ( * ) / 50 ELSE NULL END ) * COUNT ( * ) + - 36
----
NULL

query I rowsort
SELECT + ( + - 91 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8742
SELECT ALL - 27 * CAST( - 77 AS SIGNED ) + - 3 DIV 35 AS col2
----
2079

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL - 27 * CAST ( - 77 AS INTEGER ) + - 3 / 35 AS col2
----
2079

query I rowsort
SELECT + 45 + - 40 + - + 96 col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8744
SELECT SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL 32 + + 48 * + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL 32 + + 48 * + + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT + 14 - + COUNT( * ) * - + 80 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8746
SELECT + 14 - + COUNT ( * ) * - + 80 AS col1
----
94

query II rowsort
SELECT 16 AS col1, + COALESCE ( 34, 19, 72 ) + + 79
----
16
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8748
SELECT DISTINCT ( - + 33 ) + + ( + - 85 ) - + COALESCE ( - 21, + + ( MIN( DISTINCT - + 44 ) ), - + CAST( + 65 AS DECIMAL ) * - 59 + 59 * - - COUNT( * ) ) + 75 + 20 / 74 * + 89 / + CAST( NULL AS SIGNED ) * - COUNT( - 20 ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT ( - + 33 ) + + ( + - 85 ) - + COALESCE ( - 21, + + ( MIN ( DISTINCT - + 44 ) ), - + CAST ( + 65 AS REAL ) * - 59 + 59 * - - COUNT ( * ) ) + 75 + 20 / 74 * + 89 / + CAST ( NULL AS INTEGER ) * - COUNT ( - 20 ) * 20
----
NULL

query II rowsort
SELECT - 56 AS col2, + 83 + + 71 AS col1
----
-56
154

query I rowsort
SELECT DISTINCT - + 77 + 3 AS col1
----
-74

query I rowsort
SELECT DISTINCT - 31 * + + 95 * 40 AS col1
----
-117800

query I rowsort
SELECT ALL 8 * + 98 AS col1
----
784

query I rowsort
SELECT ALL - 9 - - 88 + - 74 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT - CASE MAX( DISTINCT - 12 ) WHEN - MAX( DISTINCT 39 ) THEN NULL WHEN ( 44 ) * - - 23 THEN - + 51 END - - 65 * MIN( ALL + - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT - CASE MAX ( DISTINCT - 12 ) WHEN - MAX ( DISTINCT 39 ) THEN NULL WHEN ( 44 ) * - - 23 THEN - + 51 END - - 65 * MIN ( ALL + - 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT DISTINCT - 82 - COUNT( * ) + - - ( - - 15 ) * + ( + - 28 ) * + 46 AS col2
----
-19403

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT - 82 - COUNT ( * ) + - - ( - - 15 ) * + ( + - 28 ) * + 46 AS col2
----
-19403

query I rowsort
SELECT - - 52 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL + MIN( 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL + MIN ( 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT - COUNT( ALL + - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-8758
SELECT - COUNT ( ALL + - 37 )
----
-1

query I rowsort
SELECT - - 68 + 22
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT - - 63 * COUNT( * ) * - - MIN( + 18 ) col0
----
1134

skipif mysql # not compatible
query I rowsort label-8760
SELECT - - 63 * COUNT ( * ) * - - MIN ( + 18 ) col0
----
1134

query II rowsort
SELECT - + 78 AS col1, - 53 AS col2
----
-78
-53

query I rowsort
SELECT DISTINCT - 13 * + + 72
----
-936

query I rowsort
SELECT - 68 * - 65 AS col0
----
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT ALL - + COUNT( * ) * + 27 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL - + COUNT ( * ) * + 27 AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8765
SELECT CAST( + - ( SUM( ALL + CASE - 5 WHEN 37 + 77 / 62 * - 22 THEN - 14 ELSE - 17 END ) ) AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-8765
SELECT CAST ( + - ( SUM ( ALL + CASE - 5 WHEN 37 + 77 / 62 * - 22 THEN - 14 ELSE - 17 END ) ) AS INTEGER )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8766
SELECT + - 27 DIV + - COUNT( * ) + - 19 AS col2, 88 AS col0
----
8
88

skipif mysql # not compatible
query II rowsort label-8766
SELECT + - 27 / + - COUNT ( * ) + - 19 AS col2, 88 AS col0
----
8
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8767
SELECT ALL + MIN( 4 ) AS col0, - 90 - 82 AS col2
----
4
-172

skipif mysql # not compatible
query II rowsort label-8767
SELECT ALL + MIN ( 4 ) AS col0, - 90 - 82 AS col2
----
4
-172

query I rowsort
SELECT - 28 + + 78
----
50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8769
SELECT ALL - CAST( + - 13 AS DECIMAL ) / + ( + 40 ) / + 16 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL - CAST ( + - 13 AS REAL ) / + ( + 40 ) / + 16 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - - ( + 46 ) )
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8771
SELECT - CAST( NULL AS DECIMAL ) / - - 80 * 62 + + + 99 + + 92 + + 29 / + + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT - CAST ( NULL AS REAL ) / - - 80 * 62 + + + 99 + + 92 + + 29 / + + 27 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8772
SELECT ALL + 94 DIV - 19 + + + 69
----
65

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL + 94 / - 19 + + + 69
----
65

query I rowsort
SELECT + NULLIF ( + + 24, + 79 )
----
24

query I rowsort
SELECT ALL + 33 * + + 13 + + 16 - + 9
----
436

query I rowsort
SELECT + 74 + + 38 AS col2
----
112

query I rowsort
SELECT DISTINCT + 6 AS col2
----
6

query I rowsort
SELECT - 45 * - + 1 col2
----
45

query I rowsort
SELECT + 51 + 31 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL + 17 * + COUNT( * ) * 4 + + 12 + 90 AS col0
----
170

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL + 17 * + COUNT ( * ) * 4 + + 12 + 90 AS col0
----
170

query II rowsort
SELECT ( - + 92 ), - 13 AS col0
----
-92
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8781
SELECT + 60 * - 43 + + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT + 60 * - 43 + + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT - 85 * - COUNT( * ) + + 7
----
92

skipif mysql # not compatible
query I rowsort label-8782
SELECT - 85 * - COUNT ( * ) + + 7
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8783
SELECT + CAST( - 86 AS SIGNED ), 76 + 98 * - 62 col0
----
-86
-6000

skipif mysql # not compatible
query II rowsort label-8783
SELECT + CAST ( - 86 AS INTEGER ), 76 + 98 * - 62 col0
----
-86
-6000

query I rowsort
SELECT + 3 + 78 + 45
----
126

query I rowsort
SELECT + 15 + + + 90 * - - 45 + - 90 + 54
----
4029

query I rowsort
SELECT CASE + + COALESCE ( - + 62, - 4 * + 64 * 36 + 13 ) WHEN 58 THEN - 23 + - 52 ELSE + 74 END
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8787
SELECT DISTINCT COUNT( ALL 18 ) * + 95 + 68 * - MIN( + + 87 ) * - COUNT( * ) * - 90 * - 15 AS col2, - 24 DIV - 54
----
7986695
0

skipif mysql # not compatible
query II rowsort label-8787
SELECT DISTINCT COUNT ( ALL 18 ) * + 95 + 68 * - MIN ( + + 87 ) * - COUNT ( * ) * - 90 * - 15 AS col2, - 24 / - 54
----
7986695
0

query I rowsort
SELECT DISTINCT - COALESCE ( 1, 91 ) * - 51 * 20 AS col2
----
1020

query II rowsort
SELECT ALL 79 - + + 71 AS col2, + 20 + + 80 * - 69 * 50
----
8
-275980

query I rowsort
SELECT 98 * - 83
----
-8134

query I rowsort
SELECT - 36 + - 62 + 32
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8792
SELECT - - MIN( + CAST( - 97 AS SIGNED ) )
----
-97

skipif mysql # not compatible
query I rowsort label-8792
SELECT - - MIN ( + CAST ( - 97 AS INTEGER ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT 36 + + 44 + + + 80 - + + 82 * + 53 * - 30 + ( + + ( 13 ) ) * - + COUNT( * )
----
130527

skipif mysql # not compatible
query I rowsort label-8793
SELECT 36 + + 44 + + + 80 - + + 82 * + 53 * - 30 + ( + + ( 13 ) ) * - + COUNT ( * )
----
130527

query I rowsort
SELECT ALL - 78 - 44 * + 9 * 5 + - + 78 + 7 + - - 43
----
-2086

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8795
SELECT - COUNT( * ) + 34 * - CAST( - + 32 AS SIGNED )
----
1087

skipif mysql # not compatible
query I rowsort label-8795
SELECT - COUNT ( * ) + 34 * - CAST ( - + 32 AS INTEGER )
----
1087

query I rowsort
SELECT - 86 * + + 26 * - 52
----
116272

query I rowsort
SELECT ALL 56 * + 27 * + 55
----
83160

onlyif mysql # DIV for integer division: 
query II rowsort label-8798
SELECT - 25 + 40 * + - 32 + 54 + - COALESCE ( 62, 94, 89 * + - 6 ) DIV + 81 * + - 73 * - 99 DIV - 19 + - + 27 AS col1, 17 + + 96 AS col2
----
-1278
113

skipif mysql # not compatible
query II rowsort label-8798
SELECT - 25 + 40 * + - 32 + 54 + - COALESCE ( 62, 94, 89 * + - 6 ) / + 81 * + - 73 * - 99 / - 19 + - + 27 AS col1, 17 + + 96 AS col2
----
-1278
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8799
SELECT ALL 95 * + + SUM( DISTINCT + 20 ) * - - CAST( + CAST( + - COUNT( * ) AS DECIMAL ) AS SIGNED ) AS col0
----
-1900

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL 95 * + + SUM ( DISTINCT + 20 ) * - - CAST ( + CAST ( + - COUNT ( * ) AS REAL ) AS INTEGER ) AS col0
----
-1900

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT DISTINCT + 59 * 52 + 46 DIV + 26 AS col2
----
3069

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + 59 * 52 + 46 / + 26 AS col2
----
3069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8801
SELECT ALL MAX( DISTINCT - + 13 ), - CASE 85 WHEN 8 THEN NULL WHEN + 48 THEN + 42 WHEN - + 59 THEN NULL ELSE - COUNT( * ) + 3 END - + 27 / - - COUNT( * ) + + - 29 + 42 * + - 34 + + - CAST( NULL AS SIGNED ) AS col1
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-8801
SELECT ALL MAX ( DISTINCT - + 13 ), - CASE 85 WHEN 8 THEN NULL WHEN + 48 THEN + 42 WHEN - + 59 THEN NULL ELSE - COUNT ( * ) + 3 END - + 27 / - - COUNT ( * ) + + - 29 + 42 * + - 34 + + - CAST ( NULL AS INTEGER ) AS col1
----
-13
NULL

query I rowsort
SELECT ALL - 26 * - 3 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL ( - NULLIF ( ( COUNT( * ) ), + + 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL ( - NULLIF ( ( COUNT ( * ) ), + + 44 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8804
SELECT + COUNT( * ) DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8804
SELECT + COUNT ( * ) / - 98 AS col0
----
0

query I rowsort
SELECT + 2 * - + 3 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL - 85 + + - 15 + + 12 * + MIN( - 72 )
----
-964

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL - 85 + + - 15 + + 12 * + MIN ( - 72 )
----
-964

query I rowsort
SELECT 51 * - 20 + - - NULLIF ( - - 2, + 75 * - + 35 ) * + 38 AS col2
----
-944

query II rowsort
SELECT + 85, + 33 col2
----
85
33

query I rowsort
SELECT ALL - ( + 25 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT DISTINCT - CAST( 74 AS SIGNED ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT - CAST ( 74 AS INTEGER ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL + MIN( ALL 33 ) + + CAST( + + COUNT( * ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + MIN ( ALL 33 ) + + CAST ( + + COUNT ( * ) AS INTEGER )
----
34

query I rowsort
SELECT DISTINCT - 6 AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8813
SELECT NULLIF ( - - 41, 8 * - 65 * 35 ) DIV + MAX( ALL - + 9 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8813
SELECT NULLIF ( - - 41, 8 * - 65 * 35 ) / + MAX ( ALL - + 9 ) AS col2
----
-4

query II rowsort
SELECT DISTINCT - 96 AS col1, 75 col0
----
-96
75

query I rowsort
SELECT 35 * 26 * + + 29
----
26390

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT MAX( ALL - - 37 ) * 18
----
666

skipif mysql # not compatible
query I rowsort label-8816
SELECT MAX ( ALL - - 37 ) * 18
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL - 89 - - + MIN( + 12 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL - 89 - - + MIN ( + 12 ) AS col0
----
-77

query I rowsort
SELECT ALL 79 - 83
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT COUNT( DISTINCT + 91 ) * - 69 - - 83 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8819
SELECT COUNT ( DISTINCT + 91 ) * - 69 - - 83 AS col2
----
14

query I rowsort
SELECT DISTINCT 97 * 72 AS col0
----
6984

query I rowsort
SELECT DISTINCT + 44 - - 39
----
83

query I rowsort
SELECT ALL + 82 - 84 * 96
----
-7982

onlyif mysql # aggregate syntax: 
query II rowsort label-8823
SELECT - COALESCE ( 92, 11 * - + 34, + 95 + + 71 ) * 34 - 97 AS col2, COUNT( * ) AS col0
----
-3225
1

skipif mysql # not compatible
query II rowsort label-8823
SELECT - COALESCE ( 92, 11 * - + 34, + 95 + + 71 ) * 34 - 97 AS col2, COUNT ( * ) AS col0
----
-3225
1

query I rowsort
SELECT 92 - - 37
----
129

query I rowsort
SELECT ALL 26 * - + 95 AS col1
----
-2470

query I rowsort
SELECT - 1 + 3 + 70
----
72

query I rowsort
SELECT ALL + 46 * + 67 + - 38 * - 57
----
5248

query II rowsort
SELECT DISTINCT 20, 20 AS col2
----
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT - 59 * - - COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8829
SELECT - 59 * - - COUNT ( * ) AS col2
----
-59

query I rowsort
SELECT DISTINCT ( + - 62 ) + + 96
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT ALL ( - - MIN( - - 11 ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL ( - - MIN ( - - 11 ) ) AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT DISTINCT - 47 / - CASE + 91 WHEN 1 THEN NULL WHEN - 81 THEN 11 END * 27 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT - 47 / - CASE + 91 WHEN 1 THEN NULL WHEN - 81 THEN 11 END * 27 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT DISTINCT - MIN( ALL + 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT - MIN ( ALL + 49 ) AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT CASE - NULLIF ( 9, - + 86 ) WHEN + 85 THEN + - 31 * + 12 * + 62 END * - 48 + + - 92 * + ( CAST( NULL AS SIGNED ) ) + + + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT CASE - NULLIF ( 9, - + 86 ) WHEN + 85 THEN + - 31 * + 12 * + 62 END * - 48 + + - 92 * + ( CAST ( NULL AS INTEGER ) ) + + + 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8835
SELECT - COALESCE ( 98, 72 * COUNT( 88 ) ) AS col0, - 7 - 16 + + + MIN( ALL - NULLIF ( + 49, + 82 ) ) AS col0
----
-98
-72

skipif mysql # not compatible
query II rowsort label-8835
SELECT - COALESCE ( 98, 72 * COUNT ( 88 ) ) AS col0, - 7 - 16 + + + MIN ( ALL - NULLIF ( + 49, + 82 ) ) AS col0
----
-98
-72

query II rowsort
SELECT ALL 84 col1, - 66 - + 98
----
84
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT - MAX( ALL - 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8837
SELECT - MAX ( ALL - 13 ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT CAST( NULL AS SIGNED ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8838
SELECT CAST ( NULL AS INTEGER ) - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL ( + 52 ) * + 67 + + + 31 * + NULLIF ( 23, - COUNT( * ) ) AS col0
----
4197

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL ( + 52 ) * + 67 + + + 31 * + NULLIF ( 23, - COUNT ( * ) ) AS col0
----
4197

query I rowsort
SELECT ALL + 78 * - 87 * 70 + + ( - + 14 ) AS col2
----
-475034

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT + 52 AS col0, COUNT( * ) * + - 64
----
52
-64

skipif mysql # not compatible
query II rowsort label-8841
SELECT + 52 AS col0, COUNT ( * ) * + - 64
----
52
-64

query I rowsort
SELECT NULLIF ( + 70, + 8 ) + COALESCE ( - 64, - 56 ) + - + 82 + CASE + COALESCE ( - 49, 19 / - + 80 + - 44 * 81, - 73 ) WHEN - + 81 THEN AVG ( DISTINCT - 50 ) WHEN - 23 THEN NULL WHEN 74 THEN + 82 * 96 END * + 6 / + 17 * 77
----
NULL

query I rowsort
SELECT 29 * - + 0 * ( - - 42 ) * - 9
----
0

query I rowsort
SELECT 35 + - 42
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT 57 DIV + 72 - 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8845
SELECT 57 / + 72 - 14 AS col2
----
-14

query I rowsort
SELECT - 52 * + 55 + 22 + - 81
----
-2919

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8847
SELECT - COUNT( * ) * 18 DIV + - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8847
SELECT - COUNT ( * ) * 18 / + - 56 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8848
SELECT MIN( 72 ) DIV + 57 + COALESCE ( + + 9, + 47, - 18 DIV + 30 - - 50 ) DIV MIN( ALL + 43 ) + - 10 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8848
SELECT MIN ( 72 ) / + 57 + COALESCE ( + + 9, + 47, - 18 / + 30 - - 50 ) / MIN ( ALL + 43 ) + - 10 AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8849
SELECT ALL CAST( 10 AS SIGNED ) * + NULLIF ( COUNT( * ), + ( + ( + 21 ) ) ) - - - 6 + - 96, 36 + 7 * - COUNT( * ) + + 62 * - - ( - COUNT( * ) ) AS col0
----
-92
-33

skipif mysql # not compatible
query II rowsort label-8849
SELECT ALL CAST ( 10 AS INTEGER ) * + NULLIF ( COUNT ( * ), + ( + ( + 21 ) ) ) - - - 6 + - 96, 36 + 7 * - COUNT ( * ) + + 62 * - - ( - COUNT ( * ) ) AS col0
----
-92
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8850
SELECT - CASE COUNT( * ) WHEN + + SUM( DISTINCT + 2 ) THEN - 10 WHEN + + 52 THEN - 96 DIV + 57 ELSE + - 74 + 28 * COUNT( ALL + - 68 ) END + NULLIF ( + ( + + 2 ), + - COALESCE ( + + 3, 89 * + 50 * - 84 + - 0, - 18 * COUNT( DISTINCT + 74 ), - 23 + - + 5 ) ) * 40 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-8850
SELECT - CASE COUNT ( * ) WHEN + + SUM ( DISTINCT + 2 ) THEN - 10 WHEN + + 52 THEN - 96 / + 57 ELSE + - 74 + 28 * COUNT ( ALL + - 68 ) END + NULLIF ( + ( + + 2 ), + - COALESCE ( + + 3, 89 * + 50 * - 84 + - 0, - 18 * COUNT ( DISTINCT + 74 ), - 23 + - + 5 ) ) * 40 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL + 58 * 62 * + COUNT( * ) * + 88 * + + COUNT( * )
----
316448

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL + 58 * 62 * + COUNT ( * ) * + 88 * + + COUNT ( * )
----
316448

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT + NULLIF ( - 94, - 43 * MAX( DISTINCT 62 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-8852
SELECT + NULLIF ( - 94, - 43 * MAX ( DISTINCT 62 ) )
----
-94

query I rowsort
SELECT - 38 + - 14
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT + COALESCE ( - 68, + - COUNT( * ) ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8854
SELECT + COALESCE ( - 68, + - COUNT ( * ) ) AS col2
----
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-8855
SELECT + 8 AS col2, - 34 DIV 14 AS col2
----
8
-2

skipif mysql # not compatible
query II rowsort label-8855
SELECT + 8 AS col2, - 34 / 14 AS col2
----
8
-2

query II rowsort
SELECT DISTINCT + + 97 col2, 28
----
97
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8857
SELECT - COUNT( * ) AS col0, 5
----
-1
5

skipif mysql # not compatible
query II rowsort label-8857
SELECT - COUNT ( * ) AS col0, 5
----
-1
5

query I rowsort
SELECT - + 25 * - + 14 * + 36
----
12600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8859
SELECT ALL + - COALESCE ( ( + 62 ), + 4 + 69 * + 65 DIV 94 + 23, MAX( - 50 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL + - COALESCE ( ( + 62 ), + 4 + 69 * + 65 / 94 + 23, MAX ( - 50 ) )
----
-62

query I rowsort
SELECT - 85 + + - 38 AS col0
----
-123

query I rowsort
SELECT 50 * 57 + - + 11 AS col2
----
2839

query I rowsort
SELECT DISTINCT + 66 AS col2
----
66

query II rowsort
SELECT ALL 93, - 50 AS col0
----
93
-50

query II rowsort
SELECT ALL + 43 AS col0, - ( 78 )
----
43
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT DISTINCT - 37 * - COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT - 37 * - COUNT ( * ) AS col1
----
37

query I rowsort
SELECT ALL 60 + - 18
----
42

query II rowsort
SELECT ALL + 20 + - 71 AS col2, 35 AS col2
----
-51
35

query I rowsort
SELECT - ( + 78 ) + + + 73 + - 41 * 11 AS col2
----
-456

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT ALL - - 24 DIV + 86 * + 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - - 24 / + 86 * + 52 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT - 74 DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8870
SELECT - 74 / 89 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT - 43 DIV - + 24 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8871
SELECT - 43 / - + 24 AS col0
----
1

query II rowsort
SELECT + 48 + + 13, - 2 * + 55 AS col0
----
61
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT + MAX( ( - + 75 ) ) * + 25
----
-1875

skipif mysql # not compatible
query I rowsort label-8873
SELECT + MAX ( ( - + 75 ) ) * + 25
----
-1875

query I rowsort
SELECT - COALESCE ( - + 33, 26 )
----
33

query I rowsort
SELECT ALL - 43 + + 69 AS col1
----
26

query I rowsort
SELECT - - 38 + + 26 AS col1
----
64

query I rowsort
SELECT DISTINCT NULLIF ( + 24, + 83 ) + 30 * - 71 + 57 * - 55 AS col1
----
-5241

query I rowsort
SELECT DISTINCT 63 + + - ( + + 21 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8879
SELECT DISTINCT COUNT( * ) AS col2, 18 * SUM( - 68 )
----
1
-1224

skipif mysql # not compatible
query II rowsort label-8879
SELECT DISTINCT COUNT ( * ) AS col2, 18 * SUM ( - 68 )
----
1
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT DISTINCT - 43 + - - ( + + COUNT( - 77 ) ) + MAX( + 51 )
----
9

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT - 43 + - - ( + + COUNT ( - 77 ) ) + MAX ( + 51 )
----
9

query I rowsort
SELECT DISTINCT 28 + 82 col0
----
110

query I rowsort
SELECT + 52 + - - 20 AS col0
----
72

query I rowsort
SELECT + COALESCE ( + + 89, + - 80 ) + - - 93
----
182

query I rowsort
SELECT + 39 * 68 AS col0
----
2652

query I rowsort
SELECT - ( + - 69 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8886
SELECT ALL - ( + - 94 ) DIV - - COALESCE ( + - 4, 77 + + - 67 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL - ( + - 94 ) / - - COALESCE ( + - 4, 77 + + - 67 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8887
SELECT DISTINCT + CASE 56 WHEN + - 44 THEN - 97 WHEN + + 21 + 75 + COUNT( * ) THEN NULL END AS col2, 58 AS col1
----
NULL
58

skipif mysql # not compatible
query II rowsort label-8887
SELECT DISTINCT + CASE 56 WHEN + - 44 THEN - 97 WHEN + + 21 + 75 + COUNT ( * ) THEN NULL END AS col2, 58 AS col1
----
NULL
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8888
SELECT ALL 4 DIV - 59 - + - 98 * + + 80 + 43 + - 36 * - COALESCE ( - + 18, 33, - COUNT( * ) )
----
7235

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL 4 / - 59 - + - 98 * + + 80 + 43 + - 36 * - COALESCE ( - + 18, 33, - COUNT ( * ) )
----
7235

query I rowsort
SELECT DISTINCT 15 * - 56
----
-840

query I rowsort
SELECT ALL + 90 col0
----
90

query II rowsort
SELECT DISTINCT 33 * 94 AS col2, - 27 AS col2
----
3102
-27

query I rowsort
SELECT + 44 * + - ( - 98 )
----
4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8893
SELECT + ( + CAST( ( - 54 ) AS SIGNED ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8893
SELECT + ( + CAST ( ( - 54 ) AS INTEGER ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8894
SELECT ALL 41 * + COUNT( * ) * + COUNT( * ) * 55 DIV - 11 - - 26 + - 71 AS col0
----
-250

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL 41 * + COUNT ( * ) * + COUNT ( * ) * 55 / - 11 - - 26 + - 71 AS col0
----
-250

query I rowsort
SELECT ( - 34 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8896
SELECT + MAX( DISTINCT 97 ) * - 73 + - CAST( - 79 AS SIGNED ) * + 88
----
-129

skipif mysql # not compatible
query I rowsort label-8896
SELECT + MAX ( DISTINCT 97 ) * - 73 + - CAST ( - 79 AS INTEGER ) * + 88
----
-129

query I rowsort
SELECT + 8 * - - 85 * 67 AS col2
----
45560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8898
SELECT - 14 * + 4, - CASE + - 28 WHEN - CAST( NULL AS SIGNED ) - + + 28 * + AVG ( ALL - 58 ) + + 12 THEN + - 42 WHEN CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) THEN - - 2 * + ( + 17 ) + 32 + 2 + 75 + - COUNT( DISTINCT ( + + 7 ) ) * + + 37 DIV + 76 * CASE + CAST( - 98 AS SIGNED ) WHEN + + 6 + 9 THEN NULL WHEN 79 THEN NULL ELSE 53 END * 23 ELSE 96 * + 41 END AS col1
----
-56
-3936

skipif mysql # not compatible
query II rowsort label-8898
SELECT - 14 * + 4, - CASE + - 28 WHEN - CAST ( NULL AS INTEGER ) - + + 28 * + AVG ( ALL - 58 ) + + 12 THEN + - 42 WHEN CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) THEN - - 2 * + ( + 17 ) + 32 + 2 + 75 + - COUNT ( DISTINCT ( + + 7 ) ) * + + 37 / + 76 * CASE + CAST ( - 98 AS INTEGER ) WHEN + + 6 + 9 THEN NULL WHEN 79 THEN NULL ELSE 53 END * 23 ELSE 96 * + 41 END AS col1
----
-56
-3936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8899
SELECT ALL 20 DIV + ( - 78 ) * + + ( + MAX( - 46 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL 20 / + ( - 78 ) * + + ( + MAX ( - 46 ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8900
SELECT 63 * - 68 * + 51 - + + ( + ( 21 ) ) + 25 - + 18 * 34 + + 41 DIV - + 27
----
-219093

skipif mysql # not compatible
query I rowsort label-8900
SELECT 63 * - 68 * + 51 - + + ( + ( 21 ) ) + 25 - + 18 * 34 + + 41 / - + 27
----
-219093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8901
SELECT - COUNT( * ) DIV + 6
----
0

skipif mysql # not compatible
query I rowsort label-8901
SELECT - COUNT ( * ) / + 6
----
0

query II rowsort
SELECT - 30 * + 33, 62 AS col0
----
-990
62

query I rowsort
SELECT ALL + 32 col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8904
SELECT ALL + CAST( + - MAX( ALL - 94 ) AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL + CAST ( + - MAX ( ALL - 94 ) AS INTEGER )
----
94

query I rowsort
SELECT + 78 * + 17 + - - 87
----
1413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8906
SELECT DISTINCT + - COALESCE ( 67, - + 98 + 81 + + 44 DIV COUNT( * ) + + ( - NULLIF ( + CAST( NULL AS SIGNED ), + + 82 + NULLIF ( - + 19, + COALESCE ( - 81, ( - + 81 ) + 14 ) ) DIV 76 ) ), 11 + + 92 )
----
-67

skipif mysql # not compatible
query I rowsort label-8906
SELECT DISTINCT + - COALESCE ( 67, - + 98 + 81 + + 44 / COUNT ( * ) + + ( - NULLIF ( + CAST ( NULL AS INTEGER ), + + 82 + NULLIF ( - + 19, + COALESCE ( - 81, ( - + 81 ) + 14 ) ) / 76 ) ), 11 + + 92 )
----
-67

query I rowsort
SELECT ALL + - 22 col0
----
-22

query I rowsort
SELECT DISTINCT + 41 * 16
----
656

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8909
SELECT + + ( - CAST( NULL AS SIGNED ) ) * 13 * + ( 95 ) AS col0, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8909
SELECT + + ( - CAST ( NULL AS INTEGER ) ) * 13 * + ( 95 ) AS col0, 43
----
NULL
43

query II rowsort
SELECT ALL 97 * + NULLIF ( + 39, - + 42 ) + 28 AS col2, 62 AS col1
----
3811
62

query I rowsort
SELECT DISTINCT + + 70 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8912
SELECT DISTINCT CAST( NULL AS SIGNED ) * SUM( - 68 ) + + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT CAST ( NULL AS INTEGER ) * SUM ( - 68 ) + + 42 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8913
SELECT - CAST( NULL AS SIGNED ) * - MAX( ALL 92 ) + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT - CAST ( NULL AS INTEGER ) * - MAX ( ALL 92 ) + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8914
SELECT ALL - 53 * - 85 + 21 - + + 13 * - - 93 + 85 * 9 + + 57 + + 69 + + COUNT( * ) AS col1, - 38 AS col1
----
4209
-38

skipif mysql # not compatible
query II rowsort label-8914
SELECT ALL - 53 * - 85 + 21 - + + 13 * - - 93 + 85 * 9 + + 57 + + 69 + + COUNT ( * ) AS col1, - 38 AS col1
----
4209
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT + + 83 + + CAST( - 98 AS SIGNED ) + + 82 + + + COUNT( ALL + + ( + 51 ) )
----
68

skipif mysql # not compatible
query I rowsort label-8915
SELECT + + 83 + + CAST ( - 98 AS INTEGER ) + + 82 + + + COUNT ( ALL + + ( + 51 ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL ( 8 ) * - - COUNT( 50 ) + + 4 + COUNT( * ) + + ( + 55 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL ( 8 ) * - - COUNT ( 50 ) + + 4 + COUNT ( * ) + + ( + 55 ) AS col2
----
68

query I rowsort
SELECT COALESCE ( + 73, + 73 - - - ( + - 15 ) ) AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8918
SELECT ALL + 6 + + + 22 DIV - + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL + 6 + + + 22 / - + COUNT ( * )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT - NULLIF ( ( + 79 ), - - 21 ) * + NULLIF ( ( CAST( NULL AS SIGNED ) ), - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT - NULLIF ( ( + 79 ), - - 21 ) * + NULLIF ( ( CAST ( NULL AS INTEGER ) ), - 99 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8920
SELECT - + 26 DIV - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT - + 26 / - 63 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT DISTINCT - ( COUNT( * ) ) - + 60 * 31 AS col0
----
-1861

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT - ( COUNT ( * ) ) - + 60 * 31 AS col0
----
-1861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 91
----
NULL

query I rowsort
SELECT - 22 * - 55
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT - COALESCE ( + + 95, 43 + - COUNT( * ), COUNT( * ) )
----
-95

skipif mysql # not compatible
query I rowsort label-8924
SELECT - COALESCE ( + + 95, 43 + - COUNT ( * ), COUNT ( * ) )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL - COUNT( * ) * + - 55
----
55

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL - COUNT ( * ) * + - 55
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8926
SELECT - 40 - + 82 + MIN( ALL - 83 ) + 55 / + + 26 / + CASE 99 WHEN NULLIF ( - 23, - 58 ) + - + 22 + - 58 * - + CAST( NULL AS SIGNED ) THEN - 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT - 40 - + 82 + MIN ( ALL - 83 ) + 55 / + + 26 / + CASE 99 WHEN NULLIF ( - 23, - 58 ) + - + 22 + - 58 * - + CAST ( NULL AS INTEGER ) THEN - 40 ELSE NULL END
----
NULL

query I rowsort
SELECT - 98 * 25 AS col2
----
-2450

query II rowsort
SELECT - 75 + - 8 * - 65 col2, COALESCE ( 69, 5 )
----
445
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT DISTINCT + MIN( ALL + 15 ) * - 57
----
-855

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT + MIN ( ALL + 15 ) * - 57
----
-855

query I rowsort
SELECT ALL - ( 66 ) * + 33
----
-2178

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT 60 - + + 14 DIV 27 * + ( 30 )
----
60

skipif mysql # not compatible
query I rowsort label-8931
SELECT 60 - + + 14 / 27 * + ( 30 )
----
60

query I rowsort
SELECT DISTINCT 8 col1
----
8

query I rowsort
SELECT ALL - ( - ( COALESCE ( - 83, + - ( 62 ) ) ) ) col0
----
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-8934
SELECT 4 DIV + 75 * 82 + - 52 - + 80 * + - 90 + 50 DIV + 33, ( - + 5 ) AS col2
----
7149
-5

skipif mysql # not compatible
query II rowsort label-8934
SELECT 4 / + 75 * 82 + - 52 - + 80 * + - 90 + 50 / + 33, ( - + 5 ) AS col2
----
7149
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8935
SELECT + 16 AS col1, SUM( DISTINCT + 21 ) * - 54 col2
----
16
-1134

skipif mysql # not compatible
query II rowsort label-8935
SELECT + 16 AS col1, SUM ( DISTINCT + 21 ) * - 54 col2
----
16
-1134

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8936
SELECT 95 DIV - - 21 + ( - 3 ) - - 2 * 92 AS col0, + 56 - - 0 + + - CAST( - 69 AS SIGNED ) + 1 AS col2
----
185
126

skipif mysql # not compatible
query II rowsort label-8936
SELECT 95 / - - 21 + ( - 3 ) - - 2 * 92 AS col0, + 56 - - 0 + + - CAST ( - 69 AS INTEGER ) + 1 AS col2
----
185
126

query I rowsort
SELECT DISTINCT - 21 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT MAX( - 11 ) + + SUM( + 87 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8938
SELECT MAX ( - 11 ) + + SUM ( + 87 ) AS col0
----
76

query I rowsort
SELECT 99 * - CASE 36 WHEN - ( - + 92 ) + + 82 THEN + - 20 ELSE - 90 END AS col0
----
8910

query I rowsort
SELECT 68 * - - 26 + - 13 - 52 * - 24
----
3003

query I rowsort
SELECT ALL 14 * - 56
----
-784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8942
SELECT ALL 50 + + - 55 * - 5 DIV - - ( - + ( + COUNT( ALL - + 70 ) ) ) AS col2
----
-225

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL 50 + + - 55 * - 5 / - - ( - + ( + COUNT ( ALL - + 70 ) ) ) AS col2
----
-225

query I rowsort
SELECT ALL 20 + + 33
----
53

query I rowsort
SELECT ALL ( - - 10 ) + - 71 * + ( - - NULLIF ( - 41, - 97 + - 55 + 0 ) ) * - 42 + 39 + - 92
----
-122305

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT + 3 + 97 * COUNT( - 27 ) * + + COUNT( * ) - + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-8945
SELECT + 3 + 97 * COUNT ( - 27 ) * + + COUNT ( * ) - + COUNT ( * )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8946
SELECT + CAST( NULL AS SIGNED ) AS col2, - 64 * + MIN( 61 ) col2
----
NULL
-3904

skipif mysql # not compatible
query II rowsort label-8946
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 64 * + MIN ( 61 ) col2
----
NULL
-3904

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT 16 DIV + 91 col1
----
0

skipif mysql # not compatible
query I rowsort label-8947
SELECT 16 / + 91 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8948
SELECT 98 * + - 83 + + + CAST( - 62 AS SIGNED ), - COUNT( * ) * + 26 col0
----
-8196
-26

skipif mysql # not compatible
query II rowsort label-8948
SELECT 98 * + - 83 + + + CAST ( - 62 AS INTEGER ), - COUNT ( * ) * + 26 col0
----
-8196
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ( + COUNT( * ) ) * - 62 + - MAX( + ( + 59 ) ) AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-8949
SELECT ( + COUNT ( * ) ) * - 62 + - MAX ( + ( + 59 ) ) AS col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT DISTINCT - - SUM( 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT - - SUM ( 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8951
SELECT ALL - 18 + COUNT( * ) DIV + 25
----
-18

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL - 18 + COUNT ( * ) / + 25
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT DISTINCT 4 DIV - 13
----
0

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT 4 / - 13
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT ( + - 8 ) DIV + 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT ( + - 8 ) / + 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT ALL 22 * COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL 22 * COUNT ( * )
----
22

query II rowsort
SELECT 35, - 1 + 3 AS col0
----
35
2

query I rowsort
SELECT DISTINCT - - 62
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8957
SELECT 8 * NULLIF ( + 22, - COUNT( * ) ) DIV - 48 - + 43 + + - 7 + + 37 - - ( + + 40 ) - - NULLIF ( 41, - 0 ) * + CAST( - 76 AS SIGNED ) AS col1
----
-3092

skipif mysql # not compatible
query I rowsort label-8957
SELECT 8 * NULLIF ( + 22, - COUNT ( * ) ) / - 48 - + 43 + + - 7 + + 37 - - ( + + 40 ) - - NULLIF ( 41, - 0 ) * + CAST ( - 76 AS INTEGER ) AS col1
----
-3092

query I rowsort
SELECT ALL + 91 * + 77 + 70 AS col1
----
7077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT DISTINCT CAST( NULL AS SIGNED ) * 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8960
SELECT COUNT( * ) * - 23 DIV + 81 * 36
----
0

skipif mysql # not compatible
query I rowsort label-8960
SELECT COUNT ( * ) * - 23 / + 81 * 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT 64 * - NULLIF ( - 20, - COUNT( * ) ) col2
----
1280

skipif mysql # not compatible
query I rowsort label-8961
SELECT 64 * - NULLIF ( - 20, - COUNT ( * ) ) col2
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT COUNT( * ) + - 13
----
-12

skipif mysql # not compatible
query I rowsort label-8962
SELECT COUNT ( * ) + - 13
----
-12

query I rowsort
SELECT DISTINCT - 25 - + 41
----
-66

query I rowsort
SELECT 54 * + + 47 AS col2
----
2538

query I rowsort
SELECT 61 + + 51 * + 0 AS col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8966
SELECT ALL + 8 DIV - - 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL + 8 / - - 21 AS col0
----
0

query I rowsort
SELECT ( - - 68 ) * - 39 * - 16 AS col2
----
42432

query I rowsort
SELECT 54 * 89 AS col2
----
4806

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT ALL - 36 + - COALESCE ( - COUNT( * ), - + 85 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL - 36 + - COALESCE ( - COUNT ( * ), - + 85 ) AS col2
----
-35

query I rowsort
SELECT DISTINCT + 81 * - 55
----
-4455

query I rowsort
SELECT DISTINCT - 27 * - 50 AS col2
----
1350

onlyif mysql # aggregate syntax: 
query II rowsort label-8972
SELECT 70 * 10 AS col0, + SUM( + 50 ) * - MIN( - 55 ) AS col2
----
700
2750

skipif mysql # not compatible
query II rowsort label-8972
SELECT 70 * 10 AS col0, + SUM ( + 50 ) * - MIN ( - 55 ) AS col2
----
700
2750

query I rowsort
SELECT ALL - ( 30 ) AS col1
----
-30

query I rowsort
SELECT 79 * + - 3 AS col0
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8975
SELECT ALL - 36 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - 36 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 82 + + 97, 4 * - 89 AS col2
----
179
-356

query I rowsort
SELECT + - 5 AS col2
----
-5

query II rowsort
SELECT ALL + 83 + 68 col0, 14 AS col1
----
151
14

query I rowsort
SELECT DISTINCT - - 8
----
8

query I rowsort
SELECT + 18 * + 15 AS col1
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL - COALESCE ( 28, - MAX( + - 60 ) - + 26 * + 98 + - COUNT( DISTINCT + + 0 ) * - 89, - 62 )
----
-28

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL - COALESCE ( 28, - MAX ( + - 60 ) - + 26 * + 98 + - COUNT ( DISTINCT + + 0 ) * - 89, - 62 )
----
-28

query I rowsort
SELECT ALL 84 + + 86
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + 21 * - COUNT( * ) * 61 - + 67
----
-1348

skipif mysql # not compatible
query I rowsort label-8983
SELECT + 21 * - COUNT ( * ) * 61 - + 67
----
-1348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT 5 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT 5 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8985
SELECT DISTINCT + 20 + + - 39 - + ( + SUM( 5 ) ) + CAST( + 25 AS SIGNED ) / + 0 * + + CAST( NULL AS SIGNED ) / 17 * CASE - COUNT( 89 ) WHEN MAX( ALL NULLIF ( + + 2, - - 13 ) ) + - + 41 THEN + 6 WHEN + 43 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT + 20 + + - 39 - + ( + SUM ( 5 ) ) + CAST ( + 25 AS INTEGER ) / + 0 * + + CAST ( NULL AS INTEGER ) / 17 * CASE - COUNT ( 89 ) WHEN MAX ( ALL NULLIF ( + + 2, - - 13 ) ) + - + 41 THEN + 6 WHEN + 43 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8986
SELECT + MAX( DISTINCT 89 ), 43 AS col0
----
89
43

skipif mysql # not compatible
query II rowsort label-8986
SELECT + MAX ( DISTINCT 89 ), 43 AS col0
----
89
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8987
SELECT DISTINCT + 39 - - - COALESCE ( - - ( 49 ), CASE - SUM( ALL - 12 ) WHEN + 96 * 92 DIV + 80 THEN NULL WHEN - 64 THEN NULL ELSE + 3 END ) DIV 65 DIV - 95 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT + 39 - - - COALESCE ( - - ( 49 ), CASE - SUM ( ALL - 12 ) WHEN + 96 * 92 / + 80 THEN NULL WHEN - 64 THEN NULL ELSE + 3 END ) / 65 / - 95 AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8988
SELECT 84 * + + CASE - 96 WHEN - COUNT( * ) THEN NULL WHEN + 77 + - + 56 + - 76 + + ( + + 64 ) + + 5 + - - CAST( NULL AS SIGNED ) THEN + - 86 * + 50 - ( - 77 ) + + NULLIF ( + 76, COUNT( * ) * 46 * - 32 + - 26 ) * + 63 ELSE NULL END * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT 84 * + + CASE - 96 WHEN - COUNT ( * ) THEN NULL WHEN + 77 + - + 56 + - 76 + + ( + + 64 ) + + 5 + - - CAST ( NULL AS INTEGER ) THEN + - 86 * + 50 - ( - 77 ) + + NULLIF ( + 76, COUNT ( * ) * 46 * - 32 + - 26 ) * + 63 ELSE NULL END * 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL - COUNT( * ) - - + 13 + + MAX( 89 ) * 26 AS col0
----
2326

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL - COUNT ( * ) - - + 13 + + MAX ( 89 ) * 26 AS col0
----
2326

query I rowsort
SELECT ALL - ( - + 41 )
----
41

query I rowsort
SELECT DISTINCT + ( + 96 ) * + 96 col1
----
9216

query I rowsort
SELECT - - 87 * + 54 - - + 94
----
4792

query I rowsort
SELECT 64 * - 44 AS col2
----
-2816

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT - 26 * NULLIF ( + - COUNT( * ), - + MIN( ALL - - COALESCE ( - 6, + + 54 ) ) ) * + 35 + 58
----
968

skipif mysql # not compatible
query I rowsort label-8994
SELECT - 26 * NULLIF ( + - COUNT ( * ), - + MIN ( ALL - - COALESCE ( - 6, + + 54 ) ) ) * + 35 + 58
----
968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8995
SELECT CAST( + 88 AS SIGNED ) DIV - + 1 AS col0, 48 + + COUNT( * )
----
-88
49

skipif mysql # not compatible
query II rowsort label-8995
SELECT CAST ( + 88 AS INTEGER ) / - + 1 AS col0, 48 + + COUNT ( * )
----
-88
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT ALL 11 DIV - 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL 11 / - 51 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8997
SELECT COUNT( * ) * - ( + - ( - 92 ) ) DIV - - 73 + + 84 * + MAX( + 58 ) AS col2
----
4871

skipif mysql # not compatible
query I rowsort label-8997
SELECT COUNT ( * ) * - ( + - ( - 92 ) ) / - - 73 + + 84 * + MAX ( + 58 ) AS col2
----
4871

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL - 12 * - COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - 12 * - COUNT ( * ) AS col0
----
12

query I rowsort
SELECT + 57 * 19 AS col0
----
1083

query I rowsort
SELECT + 21 + + 24 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT 86 * - COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT 86 * - COUNT ( * ) AS col2
----
-86

query I rowsort
SELECT ALL 45 + 65
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL 3 * + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL 3 * + COUNT ( * ) AS col1
----
3

query I rowsort
SELECT - NULLIF ( + 35, + 30 + - 81 * - 94 ) * + 81
----
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT - COALESCE ( + 45, - 62, SUM( ALL - 63 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-9005
SELECT - COALESCE ( + 45, - 62, SUM ( ALL - 63 ) )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL - COUNT( * ) + 94 + - - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL - COUNT ( * ) + 94 + - - COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9007
SELECT ALL 9 + + - 53 + - 34 + + - SUM( ALL 19 ) DIV - 77 * + 64 + - + 61 - + 28 * 83 AS col1, + 13 + - 83 col2
----
-2463
-70

skipif mysql # not compatible
query II rowsort label-9007
SELECT ALL 9 + + - 53 + - 34 + + - SUM ( ALL 19 ) / - 77 * + 64 + - + 61 - + 28 * 83 AS col1, + 13 + - 83 col2
----
-2463
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL MIN( DISTINCT - 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL MIN ( DISTINCT - 25 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL - COUNT( * ) + - 63 * - - 82 col1
----
-5167

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL - COUNT ( * ) + - 63 * - - 82 col1
----
-5167

query I rowsort
SELECT - 73 - - + 66
----
-7

query II rowsort
SELECT 14 AS col0, + 15 + + 77 AS col0
----
14
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL MAX( + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL MAX ( + 27 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT + 82 DIV ( 93 ) DIV + 5 + 57 - - + 76 + - 89 + + 67 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-9013
SELECT + 82 / ( 93 ) / + 5 + 57 - - + 76 + - 89 + + 67 AS col2
----
111

query I rowsort
SELECT - 71 - + + 65 AS col1
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-9015
SELECT DISTINCT + - 40 DIV + 11 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT + - 40 / + 11 AS col0
----
-3

query I rowsort
SELECT ALL 77 * + 79 * - 46 + - - 14
----
-279804

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9017
SELECT + 69 DIV ( CAST( 97 AS SIGNED ) ) + + - 72 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-9017
SELECT + 69 / ( CAST ( 97 AS INTEGER ) ) + + - 72 AS col0
----
-72

query II rowsort
SELECT ALL - - 2 * + - 57 - + - 62, - 37 * + - 99 * - 41 AS col2
----
-52
-150183

query I rowsort
SELECT ALL 85 * - 74 - + 6 * 6
----
-6326

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT 21 * COUNT( * ) + - 13 * + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-9020
SELECT 21 * COUNT ( * ) + - 13 * + + COUNT ( * )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9021
SELECT ALL + 4 * 64 + + - 76 * CAST( - - 54 AS SIGNED ) - SUM( DISTINCT - COALESCE ( - - 93, 38 + - 91, + - 68 ) ) * 14
----
-2546

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL + 4 * 64 + + - 76 * CAST ( - - 54 AS INTEGER ) - SUM ( DISTINCT - COALESCE ( - - 93, 38 + - 91, + - 68 ) ) * 14
----
-2546

query I rowsort
SELECT + + ( ( - + 99 ) )
----
-99

query II rowsort
SELECT ALL + 96, - 33 col1
----
96
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-9024
SELECT - + 40 DIV + 41 * - 34 DIV + 23 + - ( 40 ) + + + ( - 70 ) * - 26 + + 14 DIV - 2
----
1773

skipif mysql # not compatible
query I rowsort label-9024
SELECT - + 40 / + 41 * - 34 / + 23 + - ( 40 ) + + + ( - 70 ) * - 26 + + 14 / - 2
----
1773

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL + SUM( ALL - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL + SUM ( ALL - 50 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT + CAST( 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-9026
SELECT + CAST ( 7 AS INTEGER )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT - COUNT( * ) + + 92 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9027
SELECT - COUNT ( * ) + + 92 AS col2
----
91

query I rowsort
SELECT DISTINCT + + 80
----
80

query I rowsort
SELECT - 31 * 92 + - 44 + + 0 - 38 col0
----
-2934

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT COALESCE ( + + 37, + 62 * - - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-9030
SELECT COALESCE ( + + 37, + 62 * - - COUNT ( * ) )
----
37

query I rowsort
SELECT ALL + + 7 col2
----
7

query I rowsort
SELECT ( - 30 )
----
-30

query I rowsort
SELECT ALL + ( + 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT - SUM( DISTINCT - - ( - 5 ) ) * + 64
----
320

skipif mysql # not compatible
query I rowsort label-9034
SELECT - SUM ( DISTINCT - - ( - 5 ) ) * + 64
----
320

query I rowsort
SELECT DISTINCT 5 * - - 40 AS col0
----
200

query I rowsort
SELECT ALL ( + ( 2 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT - CASE - + MAX( - ( 89 ) ) WHEN - - 60 THEN AVG ( DISTINCT 11 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT - CASE - + MAX ( - ( 89 ) ) WHEN - - 60 THEN AVG ( DISTINCT 11 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT + 38 * 40 + + 39 + - COUNT( * ) * + 78
----
1481

skipif mysql # not compatible
query I rowsort label-9038
SELECT + 38 * 40 + + 39 + - COUNT ( * ) * + 78
----
1481

query II rowsort
SELECT DISTINCT 69 * + + 70 AS col0, 47 * + 86 + - 90
----
4830
3952

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT - 33 * - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9040
SELECT - 33 * - COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9041
SELECT - COUNT( * ) AS col1, + 55 AS col0
----
-1
55

skipif mysql # not compatible
query II rowsort label-9041
SELECT - COUNT ( * ) AS col1, + 55 AS col0
----
-1
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9042
SELECT + 15 DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-9042
SELECT + 15 / - 18
----
0

query I rowsort
SELECT + 27 + 71 AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT ALL + 36 + - 11 DIV + 86
----
36

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL + 36 + - 11 / + 86
----
36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9045
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 2 DIV - + 72
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9045
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 2 / - + 72
----
NULL
0

query I rowsort
SELECT ALL 91 + + + 94 AS col1
----
185

query I rowsort
SELECT + ( - 69 ) + + 52 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9048
SELECT - CAST( NULL AS SIGNED ) AS col2, 7 AS col1
----
NULL
7

skipif mysql # not compatible
query II rowsort label-9048
SELECT - CAST ( NULL AS INTEGER ) AS col2, 7 AS col1
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT - CASE + 59 WHEN + + NULLIF ( + - 58, + 65 + - COUNT( * ) ) - + 86 - - + 33 THEN - 15 WHEN 28 + + ( - 77 ) + - + 56 * - + 45 THEN - - 65 * - 26 * - - NULLIF ( 46, 70 * - + 92 * - + 38 * - 77 * - COUNT( * ) + - MAX( + + 13 ) * + COUNT( * ) * 48 ) * + + MAX( ALL 75 ) * 8 - + - 27 WHEN + 41 - + COUNT( ALL 55 ) THEN + 56 * 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT - CASE + 59 WHEN + + NULLIF ( + - 58, + 65 + - COUNT ( * ) ) - + 86 - - + 33 THEN - 15 WHEN 28 + + ( - 77 ) + - + 56 * - + 45 THEN - - 65 * - 26 * - - NULLIF ( 46, 70 * - + 92 * - + 38 * - 77 * - COUNT ( * ) + - MAX ( + + 13 ) * + COUNT ( * ) * 48 ) * + + MAX ( ALL 75 ) * 8 - + - 27 WHEN + 41 - + COUNT ( ALL 55 ) THEN + 56 * 82 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT + 69 + + CAST( NULL AS SIGNED ) + - 27 * 13 + - 23 * - - 0 - - + NULLIF ( - 39, - 13 * - - 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT + 69 + + CAST ( NULL AS INTEGER ) + - 27 * 13 + - 23 * - - 0 - - + NULLIF ( - 39, - 13 * - - 74 ) AS col1
----
NULL

query I rowsort
SELECT + - 75 * 59 + - - 58 + 87 * + 26
----
-2105

query I rowsort
SELECT DISTINCT + 64 * 51 AS col0
----
3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9053
SELECT - CASE 0 WHEN - AVG ( - CAST( + 40 AS SIGNED ) ) THEN NULL WHEN + 27 * - 20 THEN NULL ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9053
SELECT - CASE 0 WHEN - AVG ( - CAST ( + 40 AS INTEGER ) ) THEN NULL WHEN + 27 * - 20 THEN NULL ELSE COUNT ( * ) END
----
-1

query II rowsort
SELECT DISTINCT 7 col0, - 5
----
7
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9055
SELECT ALL + - 44 DIV + + 73 * COALESCE ( - COUNT( * ), 24 * + COUNT( * ) + + - 70 - + 55 - - ( NULLIF ( + 65, + COUNT( * ) ) ) + - - 84 * 40 DIV - - ( + 53 ) DIV - ( - 94 ) * + ( COUNT( * ) ) DIV - 64 ) * 37 * - + 81 + - 35 - SUM( - 22 ) - 48 + 68 * + 64 * - + 28
----
-121917

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + - 44 / + + 73 * COALESCE ( - COUNT ( * ), 24 * + COUNT ( * ) + + - 70 - + 55 - - ( NULLIF ( + 65, + COUNT ( * ) ) ) + - - 84 * 40 / - - ( + 53 ) / - ( - 94 ) * + ( COUNT ( * ) ) / - 64 ) * 37 * - + 81 + - 35 - SUM ( - 22 ) - 48 + 68 * + 64 * - + 28
----
-121917

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9056
SELECT DISTINCT + 93 col0, NULLIF ( + 27, 14 * + CASE + 19 WHEN 56 + 89 - + MAX( DISTINCT CAST( NULL AS DECIMAL ) ) * + 94 THEN - + 42 + + 84 END / 12 / 85 + 72 + - + 74 ) AS col0
----
93
27

skipif mysql # not compatible
query II rowsort label-9056
SELECT DISTINCT + 93 col0, NULLIF ( + 27, 14 * + CASE + 19 WHEN 56 + 89 - + MAX ( DISTINCT CAST ( NULL AS REAL ) ) * + 94 THEN - + 42 + + 84 END / 12 / 85 + 72 + - + 74 ) AS col0
----
93
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9057
SELECT ALL + 80, + 4 * + COUNT( * ) * + COUNT( * ) AS col2
----
80
4

skipif mysql # not compatible
query II rowsort label-9057
SELECT ALL + 80, + 4 * + COUNT ( * ) * + COUNT ( * ) AS col2
----
80
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT + 29 * NULLIF ( - CASE - + 35 WHEN + 34 * MIN( ALL - 89 ) - 66 THEN + COUNT( * ) END, - - 71 + + - 17 * - 17 + COALESCE ( + ( 48 ), + 90 * + 98 - 66 / + + 5 * - COUNT( ALL - + 3 ) + - 61 + + - 70 * + 15 * - - 45 * 18 + - MIN( + - 99 ) * 35, + 95 * + 64 * + ( 56 ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT + 29 * NULLIF ( - CASE - + 35 WHEN + 34 * MIN ( ALL - 89 ) - 66 THEN + COUNT ( * ) END, - - 71 + + - 17 * - 17 + COALESCE ( + ( 48 ), + 90 * + 98 - 66 / + + 5 * - COUNT ( ALL - + 3 ) + - 61 + + - 70 * + 15 * - - 45 * 18 + - MIN ( + - 99 ) * 35, + 95 * + 64 * + ( 56 ) ) ) col2
----
NULL

query II rowsort
SELECT 42 col0, - 60
----
42
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9060
SELECT ALL - - 70 * - CAST( 89 AS SIGNED ) * - 99 * 41 AS col0
----
25287570

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL - - 70 * - CAST ( 89 AS INTEGER ) * - 99 * 41 AS col0
----
25287570

onlyif mysql # DIV for integer division: 
query II rowsort label-9061
SELECT + + 98 DIV + - 80, 88 - + 19 AS col1
----
-1
69

skipif mysql # not compatible
query II rowsort label-9061
SELECT + + 98 / + - 80, 88 - + 19 AS col1
----
-1
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT - - 93 DIV + 90 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9062
SELECT - - 93 / + 90 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT - + 49 * + ( + + 88 ) * - 98 + + + MAX( DISTINCT - 14 ) - + 22 - + 29
----
422511

skipif mysql # not compatible
query I rowsort label-9063
SELECT - + 49 * + ( + + 88 ) * - 98 + + + MAX ( DISTINCT - 14 ) - + 22 - + 29
----
422511

query I rowsort
SELECT - ( - 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9065
SELECT CAST( NULL AS SIGNED ) * - - 50 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT CAST ( NULL AS INTEGER ) * - - 50 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL - COUNT( * ) * + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL - COUNT ( * ) * + + COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT - + 39 AS col1
----
-39

query I rowsort
SELECT CASE + 37 WHEN + 23 * 62 * - - 84 / - + 38 + AVG ( + + 9 ) THEN - + 40 - - + 6 + + - ( + + 35 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9069
SELECT ALL - 73, CASE + NULLIF ( - 1, - 94 ) WHEN - + 11 + SUM( ALL - + 21 ) THEN - 45 ELSE NULL END AS col0
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-9069
SELECT ALL - 73, CASE + NULLIF ( - 1, - 94 ) WHEN - + 11 + SUM ( ALL - + 21 ) THEN - 45 ELSE NULL END AS col0
----
-73
NULL

query I rowsort
SELECT ALL + ( + 21 ) * + 4 + + 98 col1
----
182

query I rowsort
SELECT 38 + - 47 + - 36 * - 76
----
2727

query I rowsort
SELECT + 34 * - 92 * + - 55 * 92 - + 64 AS col2
----
15827616

query II rowsort
SELECT ALL - ( + + 16 ) AS col0, - 63
----
-16
-63

query I rowsort
SELECT ALL - 40 + 50 * - 10 + + 32 AS col1
----
-508

query I rowsort
SELECT 63 + + 79 * + + 68 + + 36 * + 82
----
8387

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL - COUNT( 53 ) * - - 64 * + 50
----
-3200

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL - COUNT ( 53 ) * - - 64 * + 50
----
-3200

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT 70 * - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-9077
SELECT 70 * - COUNT ( * )
----
-70

query I rowsort
SELECT 73 + COALESCE ( 26, + 31, - + 55 * + 91 - - 22 ) - + 78 * - ( + 91 )
----
7197

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL + 50 + - - MIN( 90 ) * - 68
----
-6070

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL + 50 + - - MIN ( 90 ) * - 68
----
-6070

query I rowsort
SELECT - 56 col0
----
-56

query I rowsort
SELECT ALL 50 * - ( 72 ) * 56 * + 91 col1
----
-18345600

query I rowsort
SELECT ALL - 77 * 43 * + CASE + NULLIF ( - 67, + 50 ) WHEN - + 56 THEN - 25 WHEN + - 94 * 21 + + 40 THEN + 50 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT DISTINCT + 23 + + SUM( - ( 96 ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT + 23 + + SUM ( - ( 96 ) ) AS col2
----
-73

query I rowsort
SELECT ALL + 5 - - 29
----
34

query I rowsort
SELECT ALL - 50 * 18
----
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT 85 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT 85 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL ( + 91 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9088
SELECT ALL + MAX( DISTINCT + 80 ) DIV + - 55
----
-1

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL + MAX ( DISTINCT + 80 ) / + - 55
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT MIN( ALL - 47 ) * - - 84 AS col1
----
-3948

skipif mysql # not compatible
query I rowsort label-9089
SELECT MIN ( ALL - 47 ) * - - 84 AS col1
----
-3948

query I rowsort
SELECT - 47 * + 75
----
-3525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9091
SELECT + 26 * 13 - - COUNT( * ) + - + 25 + CAST( NULL AS SIGNED ) * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT + 26 * 13 - - COUNT ( * ) + - + 25 + CAST ( NULL AS INTEGER ) * + 49
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9092
SELECT - 22 DIV 52 + 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9092
SELECT - 22 / 52 + 61 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT + 27 * + + 13 + COUNT( * ) + - - 87
----
439

skipif mysql # not compatible
query I rowsort label-9093
SELECT + 27 * + + 13 + COUNT ( * ) + - - 87
----
439

query I rowsort
SELECT ALL + 58 * 12 * 24
----
16704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9095
SELECT - COUNT( * ) * - + 93 DIV + 6 + + - COUNT( ALL + 31 ) + - COUNT( * ) * + 95
----
-81

skipif mysql # not compatible
query I rowsort label-9095
SELECT - COUNT ( * ) * - + 93 / + 6 + + - COUNT ( ALL + 31 ) + - COUNT ( * ) * + 95
----
-81

query I rowsort
SELECT DISTINCT + 14 * + 35 AS col1
----
490

query I rowsort
SELECT DISTINCT + 56 + - 30 - - + 81 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT 38 * MAX( 52 )
----
1976

skipif mysql # not compatible
query I rowsort label-9098
SELECT 38 * MAX ( 52 )
----
1976

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9099
SELECT 73 + - - 50 - - NULLIF ( + 79, + - ( + 70 ) - 36 + + 55 ) * 97 + + ( NULLIF ( 26, - - CAST( NULL AS SIGNED ) ) ) AS col1, + ( - 43 )
----
7812
-43

skipif mysql # not compatible
query II rowsort label-9099
SELECT 73 + - - 50 - - NULLIF ( + 79, + - ( + 70 ) - 36 + + 55 ) * 97 + + ( NULLIF ( 26, - - CAST ( NULL AS INTEGER ) ) ) AS col1, + ( - 43 )
----
7812
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9100
SELECT ALL - 54 + + CAST( - CASE NULLIF ( + 50, CAST( NULL AS SIGNED ) ) WHEN 23 THEN + + 57 WHEN 45 THEN NULL END AS SIGNED ) * ( 68 ) - - + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL - 54 + + CAST ( - CASE NULLIF ( + 50, CAST ( NULL AS INTEGER ) ) WHEN 23 THEN + + 57 WHEN 45 THEN NULL END AS INTEGER ) * ( 68 ) - - + 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9101
SELECT COUNT( + 61 ) * - 35 AS col2, + COUNT( * ) + 74
----
-35
75

skipif mysql # not compatible
query II rowsort label-9101
SELECT COUNT ( + 61 ) * - 35 AS col2, + COUNT ( * ) + 74
----
-35
75

query I rowsort
SELECT ALL CASE 90 WHEN 51 * - + 79 THEN + 86 WHEN - 10 + + - NULLIF ( 5, - 84 ) THEN NULL END / + - 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT 73 * + CASE + 0 WHEN + 92 THEN NULL ELSE - COUNT( * ) * - 26 - - 6 END
----
2336

skipif mysql # not compatible
query I rowsort label-9103
SELECT 73 * + CASE + 0 WHEN + 92 THEN NULL ELSE - COUNT ( * ) * - 26 - - 6 END
----
2336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9104
SELECT ALL + MAX( + ( - 50 ) ) * - ( + ( + CASE - + CAST( NULL AS SIGNED ) WHEN NULLIF ( + 53, + COUNT( * ) + - COALESCE ( + - COALESCE ( - 76, + 71 - + - 76 ), - MIN( 93 ) / + 4 ) ) + - 87 / + 14 / + 55 THEN + + 1 - - 9 WHEN + + 56 THEN NULL ELSE NULL END ) ) - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + MAX ( + ( - 50 ) ) * - ( + ( + CASE - + CAST ( NULL AS INTEGER ) WHEN NULLIF ( + 53, + COUNT ( * ) + - COALESCE ( + - COALESCE ( - 76, + 71 - + - 76 ), - MIN ( 93 ) / + 4 ) ) + - 87 / + 14 / + 55 THEN + + 1 - - 9 WHEN + + 56 THEN NULL ELSE NULL END ) ) - + - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 15 AS col1, + 41 * + 50 * + - CASE - - 84 WHEN + 85 THEN NULL WHEN + 0 THEN - ( + + 21 ) END
----
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL + 18 + + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL + 18 + + COUNT ( * ) AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9107
SELECT 89 * + CASE + ( 65 ) WHEN + 65 + + - NULLIF ( + 45, + + 35 + - - CASE WHEN NOT NULL NOT BETWEEN NULL AND ( NULL ) THEN - 60 ELSE NULL END ) - MIN( + 63 ) * + 6 + + + 28 THEN + CASE - 12 WHEN + + CAST( 99 AS SIGNED ) THEN - COUNT( * ) ELSE MIN( + 50 ) + - 27 END * - - 93 * + - 54 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT 89 * + CASE + ( 65 ) WHEN + 65 + + - NULLIF ( + 45, + + 35 + - - CASE WHEN NOT NULL NOT BETWEEN NULL AND ( NULL ) THEN - 60 ELSE NULL END ) - MIN ( + 63 ) * + 6 + + + 28 THEN + CASE - 12 WHEN + + CAST ( 99 AS INTEGER ) THEN - COUNT ( * ) ELSE MIN ( + 50 ) + - 27 END * - - 93 * + - 54 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9108
SELECT DISTINCT + 36 - - 93 * - CAST( - 52 AS SIGNED ) AS col1
----
4872

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT + 36 - - 93 * - CAST ( - 52 AS INTEGER ) AS col1
----
4872

query I rowsort
SELECT 9 * + 83 + 87 + - 49 AS col2
----
785

query II rowsort
SELECT 30 AS col1, - 70 + - 56 AS col2
----
30
-126

query II rowsort
SELECT DISTINCT 16, + 2 AS col2
----
16
2

query I rowsort
SELECT 88 * - + 67
----
-5896

onlyif mysql # aggregate syntax: 
query II rowsort label-9113
SELECT ALL COUNT( * ) AS col0, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-9113
SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT 98 - + - COALESCE ( + + COUNT( * ), 56, 5, + 44 ) * + + 11
----
109

skipif mysql # not compatible
query I rowsort label-9114
SELECT 98 - + - COALESCE ( + + COUNT ( * ), 56, 5, + 44 ) * + + 11
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT + + MIN( ALL ( 29 ) ) - 7 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT + + MIN ( ALL ( 29 ) ) - 7 AS col0
----
22

query I rowsort
SELECT ALL - + 95 * - 92 AS col1
----
8740

query I rowsort
SELECT - 18 * - 77 + + 38 + + 74 AS col1
----
1498

query I rowsort
SELECT DISTINCT 66 * - - 93 + + + 61 * + 77 * 44
----
212806

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ( + - 39 ) + - CASE 74 WHEN ( - + COALESCE ( + 19, + 8, MIN( - 18 ) ) ) THEN + + 86 + - - 40 * + 74 * - 63 END * - - 80 + - COUNT( * ) * - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT ( + - 39 ) + - CASE 74 WHEN ( - + COALESCE ( + 19, + 8, MIN ( - 18 ) ) ) THEN + + 86 + - - 40 * + 74 * - 63 END * - - 80 + - COUNT ( * ) * - - 30
----
NULL

query I rowsort
SELECT + 84 * 2
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9121
SELECT MIN( + 25 ) + - 4 DIV 27 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9121
SELECT MIN ( + 25 ) + - 4 / 27 AS col2
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9122
SELECT ALL AVG ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL AVG ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 53 * 21
----
1113

onlyif mysql # DIV for integer division: 
query I rowsort label-9124
SELECT - - 98 DIV 89
----
1

skipif mysql # not compatible
query I rowsort label-9124
SELECT - - 98 / 89
----
1

query I rowsort
SELECT - 20 * + NULLIF ( 3, - 0 ) AS col1
----
-60

query I rowsort
SELECT ( - 4 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9127
SELECT + 47 DIV 14
----
3

skipif mysql # not compatible
query I rowsort label-9127
SELECT + 47 / 14
----
3

query I rowsort
SELECT DISTINCT + - 91 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9129
SELECT DISTINCT 78 * 30 + 99 AS col2, + COUNT( * ) AS col2
----
2439
1

skipif mysql # not compatible
query II rowsort label-9129
SELECT DISTINCT 78 * 30 + 99 AS col2, + COUNT ( * ) AS col2
----
2439
1

query I rowsort
SELECT ALL + NULLIF ( + 94, 0 + - - 71 ) AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT + CAST( 18 AS SIGNED ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9131
SELECT + CAST ( 18 AS INTEGER ) AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9132
SELECT DISTINCT 39 * 79 * 96 + + CAST( - 93 AS SIGNED ) AS col1
----
295683

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT 39 * 79 * 96 + + CAST ( - 93 AS INTEGER ) AS col1
----
295683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9133
SELECT 49 * 86 - MAX( DISTINCT + ( 92 ) ) + - 55 * + 34 DIV - COUNT( * ) + + MIN( ALL 69 ) AS col1
----
6061

skipif mysql # not compatible
query I rowsort label-9133
SELECT 49 * 86 - MAX ( DISTINCT + ( 92 ) ) + - 55 * + 34 / - COUNT ( * ) + + MIN ( ALL 69 ) AS col1
----
6061

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9134
SELECT CASE + CAST( NULL AS SIGNED ) WHEN + 24 / - + ( + + ( + 70 ) ) THEN NULL ELSE - CAST( NULL AS SIGNED ) * - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN + 24 / - + ( + + ( + 70 ) ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) * - 43 END
----
NULL

query I rowsort
SELECT + CASE WHEN NOT - 9 IS NOT NULL THEN - 6 * - 52 - + ( + 65 ) * - + 52 END
----
NULL

query II rowsort
SELECT DISTINCT 51 * - - 62 col2, 66 * - 39 + - - 44 + + 90 * - - 81
----
3162
4760

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT + MAX( - 36 ) - 82 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-9137
SELECT + MAX ( - 36 ) - 82 AS col1
----
-118

query I rowsort
SELECT ALL 51 * 38 - + 60 AS col0
----
1878

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT COUNT( DISTINCT - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-9139
SELECT COUNT ( DISTINCT - 50 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT + COUNT( DISTINCT - - 71 ) * - - 25 - - 14
----
39

skipif mysql # not compatible
query I rowsort label-9140
SELECT + COUNT ( DISTINCT - - 71 ) * - - 25 - - 14
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT + SUM( - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-9141
SELECT + SUM ( - 69 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9142
SELECT MIN( 96 ), ( + 75 ) AS col2
----
96
75

skipif mysql # not compatible
query II rowsort label-9142
SELECT MIN ( 96 ), ( + 75 ) AS col2
----
96
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT 23 * - COUNT( - 53 ) * + - 32 - COUNT( * ) * NULLIF ( - + 5, - 10 ) AS col2
----
741

skipif mysql # not compatible
query I rowsort label-9143
SELECT 23 * - COUNT ( - 53 ) * + - 32 - COUNT ( * ) * NULLIF ( - + 5, - 10 ) AS col2
----
741

query I rowsort
SELECT - 3 * - - 44 * - 77 AS col2
----
10164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9145
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) * + + 8 + ( + + ( + 64 ) ) - + 14 AS col2, - MIN( ALL - 59 ) + + ( - CAST( - 98 AS SIGNED ) )
----
NULL
157

skipif mysql # not compatible
query II rowsort label-9145
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + + 8 + ( + + ( + 64 ) ) - + 14 AS col2, - MIN ( ALL - 59 ) + + ( - CAST ( - 98 AS INTEGER ) )
----
NULL
157

query I rowsort
SELECT + 49 + + 17 + ( + 91 ) * - 61 AS col2
----
-5485

query I rowsort
SELECT + 67 * + 56 AS col2
----
3752

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT ALL MIN( DISTINCT + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL MIN ( DISTINCT + 91 ) AS col1
----
91

query I rowsort
SELECT - - 63 * + 48 * 72 AS col0
----
217728

query I rowsort
SELECT DISTINCT 94 * + 10
----
940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT ALL CAST( 62 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL CAST ( 62 AS INTEGER ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT + ( - - COUNT( DISTINCT + 68 ) ) + - + 54 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9152
SELECT + ( - - COUNT ( DISTINCT + 68 ) ) + - + 54 AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9153
SELECT - - 13 + + 48 DIV - COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9153
SELECT - - 13 + + 48 / - COUNT ( * ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + 82 * 75 * + ( - COUNT( * ) ) + - + COUNT( - - 88 ) * - 47 * 56 AS col1
----
-3518

skipif mysql # not compatible
query I rowsort label-9154
SELECT + 82 * 75 * + ( - COUNT ( * ) ) + - + COUNT ( - - 88 ) * - 47 * 56 AS col1
----
-3518

query I rowsort
SELECT - 52 * + - 76
----
3952

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT + COUNT( 92 ) - + 50 - - 71
----
22

skipif mysql # not compatible
query I rowsort label-9156
SELECT + COUNT ( 92 ) - + 50 - - 71
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9157
SELECT DISTINCT + COUNT( * ) + 76, 98 - + SUM( DISTINCT - + 82 ) + - 36 AS col1
----
77
144

skipif mysql # not compatible
query II rowsort label-9157
SELECT DISTINCT + COUNT ( * ) + 76, 98 - + SUM ( DISTINCT - + 82 ) + - 36 AS col1
----
77
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT DISTINCT + 97 + - CASE WHEN 61 = + COUNT( * ) THEN 46 ELSE NULL END + + + 51 + + COALESCE ( - COALESCE ( - COUNT( * ), - 73 ), + 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT + 97 + - CASE WHEN 61 = + COUNT ( * ) THEN 46 ELSE NULL END + + + 51 + + COALESCE ( - COALESCE ( - COUNT ( * ), - 73 ), + 69 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT - ( - COUNT( * ) ) - + COUNT( * ) + - + SUM( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-9159
SELECT - ( - COUNT ( * ) ) - + COUNT ( * ) + - + SUM ( - 38 )
----
38

query I rowsort
SELECT ALL + 64 * - + 36 + - 52 AS col1
----
-2356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9161
SELECT - 98 + ( + CAST( COUNT( * ) AS SIGNED ) ) + + 87 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9161
SELECT - 98 + ( + CAST ( COUNT ( * ) AS INTEGER ) ) + + 87 AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT ALL 84 DIV - 10 + - 1 * - 64 + + 77 + - 64
----
69

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL 84 / - 10 + - 1 * - 64 + + 77 + - 64
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9163
SELECT + - CAST( NULL AS SIGNED ) * + 41 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT + - CAST ( NULL AS INTEGER ) * + 41 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT CAST( + 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-9164
SELECT CAST ( + 43 AS INTEGER )
----
43

query I rowsort
SELECT - 87 + + 44 AS col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9166
SELECT ALL + 34 col2, CAST( - + 47 AS SIGNED )
----
34
-47

skipif mysql # not compatible
query II rowsort label-9166
SELECT ALL + 34 col2, CAST ( - + 47 AS INTEGER )
----
34
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + ( - COUNT( * ) ) * + 73 * - + COUNT( * ) - COUNT( * ) * + + SUM( ALL - 3 ) + - 58
----
18

skipif mysql # not compatible
query I rowsort label-9167
SELECT + ( - COUNT ( * ) ) * + 73 * - + COUNT ( * ) - COUNT ( * ) * + + SUM ( ALL - 3 ) + - 58
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9168
SELECT - ( - 67 ) * - COUNT( * ) AS col2, + 20 + 77 * - 52 AS col1
----
-67
-3984

skipif mysql # not compatible
query II rowsort label-9168
SELECT - ( - 67 ) * - COUNT ( * ) AS col2, + 20 + 77 * - 52 AS col1
----
-67
-3984

onlyif mysql # aggregate syntax: 
query II rowsort label-9169
SELECT ALL + COUNT( * ), 50 AS col1
----
1
50

skipif mysql # not compatible
query II rowsort label-9169
SELECT ALL + COUNT ( * ), 50 AS col1
----
1
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT DISTINCT 47 DIV - - 71 - + - 93 * 70 AS col1
----
6510

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT 47 / - - 71 - + - 93 * 70 AS col1
----
6510

onlyif mysql # DIV for integer division: 
query I rowsort label-9171
SELECT ALL + 18 DIV - 37 * + 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL + 18 / - 37 * + 11 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9172
SELECT + COUNT( * ) AS col0, NULLIF ( 16, + 56 )
----
1
16

skipif mysql # not compatible
query II rowsort label-9172
SELECT + COUNT ( * ) AS col0, NULLIF ( 16, + 56 )
----
1
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9173
SELECT + 9 + - CASE - 31 WHEN - - 8 THEN - - 88 WHEN + + COUNT( - 35 ) * - COUNT( * ) - - 28 THEN + - 45 WHEN - CASE + 57 WHEN 68 - - COUNT( * ) * + + CASE - 60 WHEN - 75 + AVG ( ALL 90 ) THEN + 59 WHEN - 68 + + - 46 + - 79 THEN NULL END + 26 + ( - - 23 ) / + 1 THEN NULLIF ( + 20, - 98 ) + - ( 53 ) WHEN COUNT( * ) + + 56 THEN + COUNT( * ) / + CAST( NULL AS DECIMAL ) + COUNT( * ) END THEN NULL ELSE ( ( - CASE + 23 WHEN + COUNT( * ) THEN + MIN( 0 ) END ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT + 9 + - CASE - 31 WHEN - - 8 THEN - - 88 WHEN + + COUNT ( - 35 ) * - COUNT ( * ) - - 28 THEN + - 45 WHEN - CASE + 57 WHEN 68 - - COUNT ( * ) * + + CASE - 60 WHEN - 75 + AVG ( ALL 90 ) THEN + 59 WHEN - 68 + + - 46 + - 79 THEN NULL END + 26 + ( - - 23 ) / + 1 THEN NULLIF ( + 20, - 98 ) + - ( 53 ) WHEN COUNT ( * ) + + 56 THEN + COUNT ( * ) / + CAST ( NULL AS REAL ) + COUNT ( * ) END THEN NULL ELSE ( ( - CASE + 23 WHEN + COUNT ( * ) THEN + MIN ( 0 ) END ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9174
SELECT - COUNT( * ) * 19 * + + 92 col1, + 54 AS col0
----
-1748
54

skipif mysql # not compatible
query II rowsort label-9174
SELECT - COUNT ( * ) * 19 * + + 92 col1, + 54 AS col0
----
-1748
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ( - + CASE - SUM( + 1 ) WHEN + - 23 THEN NULL ELSE - + 34 * - 8 END )
----
-272

skipif mysql # not compatible
query I rowsort label-9175
SELECT ( - + CASE - SUM ( + 1 ) WHEN + - 23 THEN NULL ELSE - + 34 * - 8 END )
----
-272

onlyif mysql # aggregate syntax: 
query II rowsort label-9176
SELECT ALL + 53 AS col1, COUNT( * ) - + 85 + - 42
----
53
-126

skipif mysql # not compatible
query II rowsort label-9176
SELECT ALL + 53 AS col1, COUNT ( * ) - + 85 + - 42
----
53
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT + COALESCE ( - 55, COUNT( * ) * 96 - - 46 )
----
-55

skipif mysql # not compatible
query I rowsort label-9177
SELECT + COALESCE ( - 55, COUNT ( * ) * 96 - - 46 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT + COUNT( * ) * + COALESCE ( 88, 86 ) col1
----
88

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT + COUNT ( * ) * + COALESCE ( 88, 86 ) col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9179
SELECT + 43 DIV - 38 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9179
SELECT + 43 / - 38 AS col0
----
-1

query II rowsort
SELECT DISTINCT + + 81 * 0 + + 1 + 84 - 89, - 70 AS col2
----
-4
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT + + 26 + ( + COUNT( * ) ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9181
SELECT + + 26 + ( + COUNT ( * ) ) AS col2
----
27

query I rowsort
SELECT ALL - 20 + 35
----
15

query I rowsort
SELECT 22 + - 26
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT COUNT( DISTINCT + NULLIF ( + 58, - ( + - 23 ) ) ) - + MAX( ALL + 30 )
----
-29

skipif mysql # not compatible
query I rowsort label-9184
SELECT COUNT ( DISTINCT + NULLIF ( + 58, - ( + - 23 ) ) ) - + MAX ( ALL + 30 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL 72 + + SUM( + 98 ) + - - 91
----
261

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL 72 + + SUM ( + 98 ) + - - 91
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9186
SELECT ALL - - COALESCE ( 58, + + 58 * - MIN( ALL + + 21 ) * - 81 + ( + NULLIF ( + - 56, + 6 ) ) + - 5 + COUNT( * ) - + 69 * - 23 + - + COUNT( * ) DIV - - ( + - ( 15 ) ) * CASE + NULLIF ( - MIN( DISTINCT 1 ), - 91 + + - 96 ) WHEN + 21 + - 67 + + COALESCE ( - COUNT( * ), - - 76 + + + 1, 59 ) THEN - + 80 ELSE NULL END DIV + - 18 + COUNT( * ) + COUNT( * ) ) * CAST( 81 AS SIGNED )
----
4698

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL - - COALESCE ( 58, + + 58 * - MIN ( ALL + + 21 ) * - 81 + ( + NULLIF ( + - 56, + 6 ) ) + - 5 + COUNT ( * ) - + 69 * - 23 + - + COUNT ( * ) / - - ( + - ( 15 ) ) * CASE + NULLIF ( - MIN ( DISTINCT 1 ), - 91 + + - 96 ) WHEN + 21 + - 67 + + COALESCE ( - COUNT ( * ), - - 76 + + + 1, 59 ) THEN - + 80 ELSE NULL END / + - 18 + COUNT ( * ) + COUNT ( * ) ) * CAST ( 81 AS INTEGER )
----
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT SUM( ALL + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-9187
SELECT SUM ( ALL + 35 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT ALL + - NULLIF ( - 76, + - ( + CAST( NULL AS SIGNED ) ) ) + + - 22 * + CASE + 68 WHEN - COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN 33 ELSE 59 * COUNT( * ) END * 40 * - - COUNT( 37 ) + + 48
----
-51796

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL + - NULLIF ( - 76, + - ( + CAST ( NULL AS INTEGER ) ) ) + + - 22 * + CASE + 68 WHEN - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN 33 ELSE 59 * COUNT ( * ) END * 40 * - - COUNT ( 37 ) + + 48
----
-51796

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT 91 + 23 + - + COUNT( * ) * - + ( - 49 ) AS col0, + 75 AS col1
----
65
75

skipif mysql # not compatible
query II rowsort label-9189
SELECT 91 + 23 + - + COUNT ( * ) * - + ( - 49 ) AS col0, + 75 AS col1
----
65
75

query I rowsort
SELECT - 38 + + 6 AS col1
----
-32

query I rowsort
SELECT DISTINCT + 77 + + 5 AS col0
----
82

query I rowsort
SELECT - + 85 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT + MAX( ALL - - 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9193
SELECT + MAX ( ALL - - 20 ) AS col1
----
20

query I rowsort
SELECT - ( - 41 )
----
41

query I rowsort
SELECT 62 * 34 AS col0
----
2108

query II rowsort
SELECT ALL 69 - + 0 col1, - 17 AS col0
----
69
-17

query II rowsort
SELECT 14, 53 AS col0
----
14
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9198
SELECT ALL + 22 - CASE + - 59 WHEN CASE 32 WHEN + ( + 55 ) THEN NULL WHEN - 68 * - CAST( + + 84 AS SIGNED ) THEN NULL ELSE + 75 END + - + ( - + AVG ( + 75 ) ) + + + SUM( - + 51 ) * + 43 + + + 33 / - 87 - - - 34 + - 83 THEN + + 45 + - + COUNT( * ) ELSE 0 END AS col0, 59 AS col0
----
22
59

skipif mysql # not compatible
query II rowsort label-9198
SELECT ALL + 22 - CASE + - 59 WHEN CASE 32 WHEN + ( + 55 ) THEN NULL WHEN - 68 * - CAST ( + + 84 AS INTEGER ) THEN NULL ELSE + 75 END + - + ( - + AVG ( + 75 ) ) + + + SUM ( - + 51 ) * + 43 + + + 33 / - 87 - - - 34 + - 83 THEN + + 45 + - + COUNT ( * ) ELSE 0 END AS col0, 59 AS col0
----
22
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT ALL + 50 DIV 24
----
2

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL + 50 / 24
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT MAX( ALL - 42 ) + 76 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9200
SELECT MAX ( ALL - 42 ) + 76 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL + COUNT( * ) * - 89 col1
----
-89

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + COUNT ( * ) * - 89 col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT 73 + + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9202
SELECT 73 + + COUNT ( * ) AS col1
----
74

query I rowsort
SELECT 79 * + 9 * - 24 AS col2
----
-17064

query I rowsort
SELECT NULLIF ( ( + 22 ), - 92 ) * + 60 + - - ( + + 74 ) AS col2
----
1394

query II rowsort
SELECT ALL - 69 AS col0, 15 + + CASE 49 WHEN - + ( 17 ) THEN - 58 END AS col1
----
-69
NULL

query I rowsort
SELECT 4 * + 70 * + 75 AS col1
----
21000

query I rowsort
SELECT 7 + 17 * - + 83
----
-1404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT 14 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT 14 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9209
SELECT ALL 38 DIV - - COALESCE ( + CAST( NULL AS SIGNED ), + 48 * + 47 + + 17 * 52 * - 5, - COUNT( * ) * ( + CASE + - 44 WHEN + 38 + + ( - + 96 ) THEN 90 - + + COUNT( * ) END ) + ( + 13 ) - - + 7 - - 38 + - 83 - + - 16 + - MIN( DISTINCT + - 25 ) * 2 + + 28 DIV - 35 - - - 19 ), - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-9209
SELECT ALL 38 / - - COALESCE ( + CAST ( NULL AS INTEGER ), + 48 * + 47 + + 17 * 52 * - 5, - COUNT ( * ) * ( + CASE + - 44 WHEN + 38 + + ( - + 96 ) THEN 90 - + + COUNT ( * ) END ) + ( + 13 ) - - + 7 - - 38 + - 83 - + - 16 + - MIN ( DISTINCT + - 25 ) * 2 + + 28 / - 35 - - - 19 ), - COUNT ( * ) AS col2
----
0
-1

query I rowsort
SELECT 97 + + 31 + + + 7 + - 78 AS col2
----
57

query I rowsort
SELECT 4 * 65 AS col0
----
260

query I rowsort
SELECT NULLIF ( 99, + 8 ) * 93 AS col0
----
9207

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT DISTINCT + COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT + COUNT ( * ) + COUNT ( * )
----
2

query II rowsort
SELECT + 0, 40 AS col1
----
0
40

query I rowsort
SELECT DISTINCT - 22 + - - 13 - 8 * - + 75
----
591

query I rowsort
SELECT - + 82 col2
----
-82

query I rowsort
SELECT ALL + 31 + - - 53 AS col0
----
84

query I rowsort
SELECT ALL 39 + - 73
----
-34

query I rowsort
SELECT ALL 44 + 10
----
54

query II rowsort
SELECT ALL 84, 68 col0
----
84
68

query I rowsort
SELECT - ( - - 18 ) col1
----
-18

query I rowsort
SELECT ALL + 48 - + 75 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT - 89 + COUNT( * ) * - 83 + + + 42 AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-9223
SELECT - 89 + COUNT ( * ) * - 83 + + + 42 AS col2
----
-130

query I rowsort
SELECT + 94 * 76 AS col2
----
7144

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT + 63 * COUNT( * ) col0
----
63

skipif mysql # not compatible
query I rowsort label-9225
SELECT + 63 * COUNT ( * ) col0
----
63

query I rowsort
SELECT - 3 + - 59
----
-62

query II rowsort
SELECT ALL + 21 AS col2, 40 AS col1
----
21
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9228
SELECT DISTINCT + MIN( 38 ) DIV COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT + MIN ( 38 ) / COUNT ( * ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9229
SELECT 83 + COUNT( * ) AS col2, - SUM( DISTINCT - 93 )
----
84
93

skipif mysql # not compatible
query II rowsort label-9229
SELECT 83 + COUNT ( * ) AS col2, - SUM ( DISTINCT - 93 )
----
84
93

query I rowsort
SELECT 89 - - + 57
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-9231
SELECT DISTINCT 63 * 40, - MIN( + 85 ) * 87 AS col1
----
2520
-7395

skipif mysql # not compatible
query II rowsort label-9231
SELECT DISTINCT 63 * 40, - MIN ( + 85 ) * 87 AS col1
----
2520
-7395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT CAST( + - 25 AS SIGNED ) + - 52
----
-77

skipif mysql # not compatible
query I rowsort label-9232
SELECT CAST ( + - 25 AS INTEGER ) + - 52
----
-77

query I rowsort
SELECT ( + - 51 ) * - + 42
----
2142

query II rowsort
SELECT 73 * + 64 AS col0, 35 col1
----
4672
35

query I rowsort
SELECT 8 + - 39 AS col0
----
-31

query I rowsort
SELECT 24 * + 22
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT MIN( + 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9237
SELECT MIN ( + 4 ) AS col1
----
4

query II rowsort
SELECT 14 * + 2 AS col0, - 83 col0
----
28
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL - CASE - 73 WHEN SUM( - 7 ) THEN - CASE COUNT( * ) WHEN 63 THEN - MIN( 2 ) * - COUNT( * ) * + 49 + + 26 WHEN 4 THEN NULL WHEN 44 THEN NULL ELSE - 88 + + + 66 + - 33 * + + COUNT( * ) / - 44 / 11 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - CASE - 73 WHEN SUM ( - 7 ) THEN - CASE COUNT ( * ) WHEN 63 THEN - MIN ( 2 ) * - COUNT ( * ) * + 49 + + 26 WHEN 4 THEN NULL WHEN 44 THEN NULL ELSE - 88 + + + 66 + - 33 * + + COUNT ( * ) / - 44 / 11 END END
----
NULL

query II rowsort
SELECT 97 * CASE + 96 WHEN ( + 74 ) THEN + 12 - - 69 ELSE NULL END, ( - - 41 ) AS col1
----
NULL
41

query I rowsort
SELECT 33 + - - 84 - + - 20 AS col1
----
137

query I rowsort
SELECT 39 * + 71
----
2769

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT COUNT( * ) * - 87 + 7 + - 2 + + - 32
----
-114

skipif mysql # not compatible
query I rowsort label-9243
SELECT COUNT ( * ) * - 87 + 7 + - 2 + + - 32
----
-114

query I rowsort
SELECT DISTINCT - - 28 + - 30 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT - 71 + + SUM( - - 39 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9245
SELECT - 71 + + SUM ( - - 39 ) AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9246
SELECT - SUM( DISTINCT + ( - 75 ) ) DIV - + NULLIF ( - - 91, - COUNT( * ) * + 62 ) * + - 18
----
0

skipif mysql # not compatible
query I rowsort label-9246
SELECT - SUM ( DISTINCT + ( - 75 ) ) / - + NULLIF ( - - 91, - COUNT ( * ) * + 62 ) * + - 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ALL - - 77 + + MAX( DISTINCT - - 12 )
----
89

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL - - 77 + + MAX ( DISTINCT - - 12 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9248
SELECT DISTINCT 33 * - COALESCE ( + 58, + COUNT( * ) + CAST( NULL AS SIGNED ) ) col2
----
-1914

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT 33 * - COALESCE ( + 58, + COUNT ( * ) + CAST ( NULL AS INTEGER ) ) col2
----
-1914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9249
SELECT DISTINCT - - 2 DIV - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT - - 2 / - COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT - COUNT( * ) - + - 42 + 12
----
53

skipif mysql # not compatible
query I rowsort label-9250
SELECT - COUNT ( * ) - + - 42 + 12
----
53

query I rowsort
SELECT - + 99 * + - 69 + + - 94
----
6737

onlyif mysql # DIV for integer division: 
query II rowsort label-9252
SELECT + - 83 + + COALESCE ( - + 41, 7 * + 14 * - 40 DIV ( 51 ), + 15 ) + 20, - ( - 28 ) AS col0
----
-104
28

skipif mysql # not compatible
query II rowsort label-9252
SELECT + - 83 + + COALESCE ( - + 41, 7 * + 14 * - 40 / ( 51 ), + 15 ) + 20, - ( - 28 ) AS col0
----
-104
28

query I rowsort
SELECT ALL + ( - 2 ) - + - 7
----
5

query I rowsort
SELECT - - COALESCE ( + 81, - + 68 * 69, ( - - 68 ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT + COUNT( * ) + + 41 col0
----
42

skipif mysql # not compatible
query I rowsort label-9255
SELECT + COUNT ( * ) + + 41 col0
----
42

query II rowsort
SELECT DISTINCT + 83 - + 78, - 95 AS col0
----
5
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT + + 97 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT + + 97 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9258
SELECT ALL - 32 * + + 11 / CASE 51 WHEN - CASE + + COUNT( * ) WHEN + + 90 + - + 96 THEN + COUNT( * ) - - 37 * - 9 + - 58 + - ( - NULLIF ( + 12, + - COUNT( * ) * - + 1 / CAST( + 91 AS DECIMAL ) ) ) END * + 8 * 10 - COUNT( * ) THEN - 22 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - 32 * + + 11 / CASE 51 WHEN - CASE + + COUNT ( * ) WHEN + + 90 + - + 96 THEN + COUNT ( * ) - - 37 * - 9 + - 58 + - ( - NULLIF ( + 12, + - COUNT ( * ) * - + 1 / CAST ( + 91 AS REAL ) ) ) END * + 8 * 10 - COUNT ( * ) THEN - 22 END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 76, - ( + - 93 ) AS col2
----
76
93

query II rowsort
SELECT 42 AS col0, + 97 * - 34 AS col0
----
42
-3298

query II rowsort
SELECT + 86 * + 17 * - 74 AS col0, 46 AS col1
----
-108188
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9262
SELECT DISTINCT 10 DIV + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT 10 / + + COUNT ( * )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9263
SELECT ALL ( - MAX( - COALESCE ( - 21, - ( + CAST( NULL AS SIGNED ) ) + - + 72 ) ) ) + - COUNT( * ) AS col1, ( + 14 ) AS col2
----
-22
14

skipif mysql # not compatible
query II rowsort label-9263
SELECT ALL ( - MAX ( - COALESCE ( - 21, - ( + CAST ( NULL AS INTEGER ) ) + - + 72 ) ) ) + - COUNT ( * ) AS col1, ( + 14 ) AS col2
----
-22
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL SUM( DISTINCT + ( + 96 ) ) * - 64 col0
----
-6144

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL SUM ( DISTINCT + ( + 96 ) ) * - 64 col0
----
-6144

query I rowsort
SELECT ( + - 25 ) AS col0
----
-25

query I rowsort
SELECT DISTINCT 74 * + - 66
----
-4884

query I rowsort
SELECT ( - - 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL - CASE COUNT( * ) WHEN + 84 THEN + 93 * - - COUNT( * ) * + + 57 WHEN 79 - 73 * - 45 THEN NULL END / - 98 + COUNT( * ) + - 50 * - 86 * + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL - CASE COUNT ( * ) WHEN + 84 THEN + 93 * - - COUNT ( * ) * + + 57 WHEN 79 - 73 * - 45 THEN NULL END / - 98 + COUNT ( * ) + - 50 * - 86 * + - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT + NULLIF ( 24, + NULLIF ( NULLIF ( + 19, - ( + + 5 ) ), - ( - MAX( ALL - 53 ) ) / + - 56 * + COUNT( * ) ) ) + - 97 * + + COUNT( * ) * + ( - COUNT( * ) ) + 37 - + NULLIF ( 96, + 52 * + + 76 * - COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-9269
SELECT + NULLIF ( 24, + NULLIF ( NULLIF ( + 19, - ( + + 5 ) ), - ( - MAX ( ALL - 53 ) ) / + - 56 * + COUNT ( * ) ) ) + - 97 * + + COUNT ( * ) * + ( - COUNT ( * ) ) + 37 - + NULLIF ( 96, + 52 * + + 76 * - COUNT ( * ) )
----
62

query I rowsort
SELECT + 20 * + 77
----
1540

query I rowsort
SELECT - 96 * 28 col2
----
-2688

query I rowsort
SELECT ALL - 39 * - 55 + + + 48
----
2193

query I rowsort
SELECT ( 16 ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT - CAST( NULL AS SIGNED ) * 90 - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT - CAST ( NULL AS INTEGER ) * 90 - + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT ALL + COUNT( 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL + COUNT ( 80 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9276
SELECT 34 DIV 23 + + 89
----
90

skipif mysql # not compatible
query I rowsort label-9276
SELECT 34 / 23 + + 89
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT ALL + 78 * + 95 + - - 71 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + 78 * + 95 + - - 71 + + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + + 99 AS col2, + 30 + 57
----
99
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT MAX( DISTINCT - - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-9279
SELECT MAX ( DISTINCT - - 4 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9280
SELECT - + 3 * 9 DIV - 64 + 51 + + COALESCE ( - 83, COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-9280
SELECT - + 3 * 9 / - 64 + 51 + + COALESCE ( - 83, COUNT ( * ) )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9281
SELECT + + 41 * - 15 - + 92 + 65 DIV + + 30 + - - 3
----
-702

skipif mysql # not compatible
query I rowsort label-9281
SELECT + + 41 * - 15 - + 92 + 65 / + + 30 + - - 3
----
-702

query I rowsort
SELECT - + 53 - - 22 AS col1
----
-31

query II rowsort
SELECT + 49 * - 92 * - 37 AS col1, + 9 AS col1
----
166796
9

query I rowsort
SELECT - 18 * 56 col2
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT - NULLIF ( - 24, COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-9285
SELECT - NULLIF ( - 24, COUNT ( * ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT + + ( COUNT( * ) ) * - + COUNT( 7 ) + 25 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9286
SELECT + + ( COUNT ( * ) ) * - + COUNT ( 7 ) + 25 AS col1
----
24

query I rowsort
SELECT ALL 45 * + ( + 80 )
----
3600

query I rowsort
SELECT - - 76 * ( + 50 ) * + - COALESCE ( - - 91, 10 + + - 26 - 48 * 66 )
----
-345800

query II rowsort
SELECT DISTINCT - 89 AS col0, - 99
----
-89
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9290
SELECT - - 27 DIV - 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9290
SELECT - - 27 / - 50 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9291
SELECT - ( - 88 ) + - COALESCE ( - 36, - - 87, + - 21 * + 5 - + 94 DIV - 18 + + COUNT( * ) + NULLIF ( - + 64, + NULLIF ( - 89, - 90 ) ) )
----
124

skipif mysql # not compatible
query I rowsort label-9291
SELECT - ( - 88 ) + - COALESCE ( - 36, - - 87, + - 21 * + 5 - + 94 / - 18 + + COUNT ( * ) + NULLIF ( - + 64, + NULLIF ( - 89, - 90 ) ) )
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9292
SELECT ALL + + 33 DIV + - 15 + - + 95 + - ( 64 ) * COALESCE ( + - ( - - 56 ), - + COUNT( * ) )
----
3487

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + + 33 / + - 15 + - + 95 + - ( 64 ) * COALESCE ( + - ( - - 56 ), - + COUNT ( * ) )
----
3487

query I rowsort
SELECT - 65 + - + 53 AS col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT - CASE + COUNT( ALL + 11 ) WHEN - 82 THEN + - 87 * + 92 WHEN ( - 45 ) * + COUNT( * ) * 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9294
SELECT - CASE + COUNT ( ALL + 11 ) WHEN - 82 THEN + - 87 * + 92 WHEN ( - 45 ) * + COUNT ( * ) * 78 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT - CAST( - 89 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT - CAST ( - 89 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT - CASE - 7 WHEN - - 90 THEN NULL WHEN + MIN( ALL + 26 ) THEN + - 33 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT - CASE - 7 WHEN - - 90 THEN NULL WHEN + MIN ( ALL + 26 ) THEN + - 33 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 65, + + 5 ) + - + 40 * 65 * + 97 * 19 AS col2
----
-4791865

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9298
SELECT ALL - 28 + + + 93 + ( + SUM( - + 82 ) ) DIV - - 63 + - + 56 * - + 45 - + 53 DIV 39 * 91 * + 96
----
-6152

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL - 28 + + + 93 + ( + SUM ( - + 82 ) ) / - - 63 + - + 56 * - + 45 - + 53 / 39 * 91 * + 96
----
-6152

query I rowsort
SELECT ALL ( - 25 )
----
-25

query I rowsort
SELECT - 51 + - - 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9301
SELECT ALL CAST( + SUM( + 99 ) AS SIGNED ) + 71 * - - 34 AS col1
----
2513

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL CAST ( + SUM ( + 99 ) AS INTEGER ) + 71 * - - 34 AS col1
----
2513

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9302
SELECT ALL - 1 + + CAST( + 0 AS SIGNED ) * - + 15 DIV + - 43 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - 1 + + CAST ( + 0 AS INTEGER ) * - + 15 / + - 43 AS col0
----
-1

query II rowsort
SELECT + 44 + + 80, 57 AS col1
----
124
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9304
SELECT 7 DIV - + MIN( DISTINCT 63 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9304
SELECT 7 / - + MIN ( DISTINCT 63 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9305
SELECT COUNT( * ) + + ( + 81 ) + + 30 * + 30 + - 79 + - 41 DIV 66 AS col1
----
903

skipif mysql # not compatible
query I rowsort label-9305
SELECT COUNT ( * ) + + ( + 81 ) + + 30 * + 30 + - 79 + - 41 / 66 AS col1
----
903

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT 13 * MAX( ALL 1 )
----
13

skipif mysql # not compatible
query I rowsort label-9306
SELECT 13 * MAX ( ALL 1 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9307
SELECT COUNT( * ) DIV + 32 * 37 + + + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9307
SELECT COUNT ( * ) / + 32 * 37 + + + 70 AS col0
----
70

query I rowsort
SELECT ALL ( - + 39 ) * + 61
----
-2379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9309
SELECT 39 DIV + - 44 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9309
SELECT 39 / + - 44 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9310
SELECT ALL + CAST( NULL AS DECIMAL ) - - SUM( - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL + CAST ( NULL AS REAL ) - - SUM ( - 37 )
----
NULL

query II rowsort
SELECT DISTINCT + 54 * - 97 AS col2, + 79
----
-5238
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9312
SELECT ALL - 43 * - MAX( CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - 43 * - MAX ( CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9313
SELECT ALL 50 * + 59 DIV - COUNT( * )
----
-2950

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL 50 * + 59 / - COUNT ( * )
----
-2950

query I rowsort
SELECT - COALESCE ( 21, + - 71, + 74 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT + + 80 * MIN( NULLIF ( 84, - + ( + 53 ) ) ) + - 80
----
6640

skipif mysql # not compatible
query I rowsort label-9315
SELECT + + 80 * MIN ( NULLIF ( 84, - + ( + 53 ) ) ) + - 80
----
6640

onlyif mysql # aggregate syntax: 
query II rowsort label-9316
SELECT ALL - + SUM( DISTINCT 68 ) AS col0, 78 + - + COUNT( * )
----
-68
77

skipif mysql # not compatible
query II rowsort label-9316
SELECT ALL - + SUM ( DISTINCT 68 ) AS col0, 78 + - + COUNT ( * )
----
-68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT 6 * - COUNT( * ) * - 90
----
540

skipif mysql # not compatible
query I rowsort label-9317
SELECT 6 * - COUNT ( * ) * - 90
----
540

query I rowsort
SELECT ALL - 91 * + ( + 93 )
----
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT - 82 * MAX( ALL - 79 ) * - 85
----
-550630

skipif mysql # not compatible
query I rowsort label-9319
SELECT - 82 * MAX ( ALL - 79 ) * - 85
----
-550630

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT - + ( COUNT( + + 30 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT - + ( COUNT ( + + 30 ) ) AS col0
----
-1

query I rowsort
SELECT - 49 * - - 80 AS col0
----
-3920

query I rowsort
SELECT CASE + 42 WHEN - + 65 * 6 - + 98 THEN 61 END + - 27 * - 22 + - - 35 AS col1
----
NULL

query I rowsort
SELECT - - 55 AS col1
----
55

query I rowsort
SELECT ALL 63 * 23 col0
----
1449

query I rowsort
SELECT 98 * - 2
----
-196

query I rowsort
SELECT DISTINCT 81 col0
----
81

query I rowsort
SELECT ALL 57 + - + 76 AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9328
SELECT ALL 87 AS col2, COUNT( * ) DIV + - 62 + + 87 + 23 DIV 34
----
87
87

skipif mysql # not compatible
query II rowsort label-9328
SELECT ALL 87 AS col2, COUNT ( * ) / + - 62 + + 87 + 23 / 34
----
87
87

query I rowsort
SELECT DISTINCT - ( - 76 ) + + - 74 - - 18 * - - 84
----
1514

query I rowsort
SELECT DISTINCT - COALESCE ( 12, + - 31, + + 82 + 97 ) + - 53 AS col0
----
-65

query I rowsort
SELECT ALL - 97 + - 8 AS col2
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9332
SELECT 43 DIV + - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9332
SELECT 43 / + - COUNT ( * ) AS col0
----
-43

query I rowsort
SELECT 13 * + 52 AS col1
----
676

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT 49 * COUNT( * ) * + COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9334
SELECT 49 * COUNT ( * ) * + COUNT ( * ) AS col1
----
49

query I rowsort
SELECT DISTINCT - 24 * 8 col0
----
-192

query I rowsort
SELECT ALL + ( - 87 ) + + 73 AS col0
----
-14

query I rowsort
SELECT 23 * - 53 AS col0
----
-1219

query I rowsort
SELECT ALL 58 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT + 52 - - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT + 52 - - COUNT ( * )
----
53

query II rowsort
SELECT ALL 13, 63 AS col0
----
13
63

query I rowsort
SELECT 48 * + 22 AS col1
----
1056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9342
SELECT DISTINCT + ( + 99 ) - - COALESCE ( - COUNT( DISTINCT + + 90 ), 47 ) * ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT + ( + 99 ) - - COALESCE ( - COUNT ( DISTINCT + + 90 ), 47 ) * ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9343
SELECT + - 4 * 39 * - + COALESCE ( - 12, + + 88 * + SUM( ALL 46 ) + - 2, + + 38 ) - + 46 - - + 73 DIV - + COUNT( * )
----
-1991

skipif mysql # not compatible
query I rowsort label-9343
SELECT + - 4 * 39 * - + COALESCE ( - 12, + + 88 * + SUM ( ALL 46 ) + - 2, + + 38 ) - + 46 - - + 73 / - + COUNT ( * )
----
-1991

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT - 40 * + COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9344
SELECT - 40 * + COUNT ( * ) AS col1
----
-40

query II rowsort
SELECT ALL - 8 AS col2, - 8
----
-8
-8

query I rowsort
SELECT ALL - - ( 45 ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT ALL + - 91 / + CAST( NULL AS SIGNED ) * 5 / - ( 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + - 91 / + CAST ( NULL AS INTEGER ) * 5 / - ( 72 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 49 * - 8 + 95
----
487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9349
SELECT DISTINCT - COUNT( * ) * - CAST( 53 AS SIGNED ) AS col2, 61 * - - SUM( ALL + 32 ) * - 45 col2
----
53
-87840

skipif mysql # not compatible
query II rowsort label-9349
SELECT DISTINCT - COUNT ( * ) * - CAST ( 53 AS INTEGER ) AS col2, 61 * - - SUM ( ALL + 32 ) * - 45 col2
----
53
-87840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9350
SELECT CAST( NULL AS SIGNED ) * + - 11 - - + 37 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT CAST ( NULL AS INTEGER ) * + - 11 - - + 37 / - COUNT ( * )
----
NULL

query I rowsort
SELECT + CASE - - 72 WHEN - 98 - - 3 / - 52 THEN - 34 - + 71 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT CAST( + + 23 AS SIGNED ) * + - 61 AS col1
----
-1403

skipif mysql # not compatible
query I rowsort label-9352
SELECT CAST ( + + 23 AS INTEGER ) * + - 61 AS col1
----
-1403

query I rowsort
SELECT ALL + 13 + 31 * - 78
----
-2405

query I rowsort
SELECT ALL - 55 + - - ( + 76 )
----
21

query II rowsort
SELECT + - 69 AS col2, - 28
----
-69
-28

query I rowsort
SELECT - 85 * - - 96 + - 53
----
-8213

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT DISTINCT 16 + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT 16 + COUNT ( * ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL - COUNT( * ) + + + 38 * - - 68 AS col0
----
2583

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL - COUNT ( * ) + + + 38 * - - 68 AS col0
----
2583

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT COUNT( * ) - + 92 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9359
SELECT COUNT ( * ) - + 92 AS col1
----
-91

query I rowsort
SELECT + 92 + - 50 * + 31 AS col1
----
-1458

query II rowsort
SELECT - 44, 63 col0
----
-44
63

query I rowsort
SELECT + 9 + + 92
----
101

query II rowsort
SELECT - 98 col2, 34
----
-98
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ALL + ( - 18 ) * 13 + - - 50 + + SUM( ALL - + 25 )
----
-209

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL + ( - 18 ) * 13 + - - 50 + + SUM ( ALL - + 25 )
----
-209

query I rowsort
SELECT + 85 + - + 82 AS col1
----
3

query I rowsort
SELECT ALL 91 * - - 38
----
3458

query I rowsort
SELECT DISTINCT 9 * + + 28
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-9368
SELECT DISTINCT 59 col1, COUNT( ALL + + 88 ) + - + 60 AS col2
----
59
-59

skipif mysql # not compatible
query II rowsort label-9368
SELECT DISTINCT 59 col1, COUNT ( ALL + + 88 ) + - + 60 AS col2
----
59
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9369
SELECT ALL 43 * 9 DIV + + 21
----
18

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL 43 * 9 / + + 21
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT DISTINCT COALESCE ( + - 37, + 76 * 77, - - CAST( + 84 AS SIGNED ) ) - - 91 + - 83 * + 0 * + + 24 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT COALESCE ( + - 37, + 76 * 77, - - CAST ( + 84 AS INTEGER ) ) - - 91 + - 83 * + 0 * + + 24 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT - COUNT( * ) + + NULLIF ( - - 26, - - COUNT( * ) + 31 - 46 )
----
25

skipif mysql # not compatible
query I rowsort label-9371
SELECT - COUNT ( * ) + + NULLIF ( - - 26, - - COUNT ( * ) + 31 - 46 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT - COUNT( * ) + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9372
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT - NULLIF ( - 72, + ( + ( + + 7 ) ) * COALESCE ( + + 63, 37, + 93 * 85 * + 93 / + 72 + COUNT( * ) ) * + 60 / + COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-9373
SELECT - NULLIF ( - 72, + ( + ( + + 7 ) ) * COALESCE ( + + 63, 37, + 93 * 85 * + 93 / + 72 + COUNT ( * ) ) * + 60 / + COUNT ( * ) )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9374
SELECT - 8 + - SUM( ALL - - CAST( - + 91 AS SIGNED ) )
----
83

skipif mysql # not compatible
query I rowsort label-9374
SELECT - 8 + - SUM ( ALL - - CAST ( - + 91 AS INTEGER ) )
----
83

query I rowsort
SELECT - + 41 + - 25 AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT - CAST( NULL AS SIGNED ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9376
SELECT - CAST ( NULL AS INTEGER ) * - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT - MAX( + 66 ) * + 36
----
-2376

skipif mysql # not compatible
query I rowsort label-9377
SELECT - MAX ( + 66 ) * + 36
----
-2376

query I rowsort
SELECT ALL - 60 * + 66 col2
----
-3960

query II rowsort
SELECT DISTINCT + 15 AS col2, 85
----
15
85

query I rowsort
SELECT DISTINCT + + 94
----
94

query I rowsort
SELECT - - 64 * + 22 - - 96
----
1504

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT - SUM( ALL + 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9382
SELECT - SUM ( ALL + 7 ) AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9383
SELECT - + COALESCE ( 76, - SUM( - 7 ) * + + 19 * 41 + + + COUNT( * ) + - 5 + - 29 * - 67 ) + CAST( + 59 AS SIGNED ) + - - 78 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9383
SELECT - + COALESCE ( 76, - SUM ( - 7 ) * + + 19 * 41 + + + COUNT ( * ) + - 5 + - 29 * - 67 ) + CAST ( + 59 AS INTEGER ) + - - 78 AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9384
SELECT DISTINCT 26 * + 5 + - COUNT( * ) * - + 93 * - ( 81 ) AS col0, 72 AS col0
----
-7403
72

skipif mysql # not compatible
query II rowsort label-9384
SELECT DISTINCT 26 * + 5 + - COUNT ( * ) * - + 93 * - ( 81 ) AS col0, 72 AS col0
----
-7403
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT - 30 * - + 33 + - + 38 - + - COUNT( * ) * 82
----
1034

skipif mysql # not compatible
query I rowsort label-9385
SELECT - 30 * - + 33 + - + 38 - + - COUNT ( * ) * 82
----
1034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9386
SELECT ALL 34 * - COUNT( * ) + - 32 - - + CASE + 33 WHEN - CAST( NULL AS SIGNED ) THEN 2 ELSE NULL END * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL 34 * - COUNT ( * ) + - 32 - - + CASE + 33 WHEN - CAST ( NULL AS INTEGER ) THEN 2 ELSE NULL END * 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9387
SELECT ALL COUNT( DISTINCT - + 28 ) * - COALESCE ( + + 17, 57, - 19 + + + ( - 88 ), + 56 ) DIV + 48 * + 16 + 79 col2
----
79

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL COUNT ( DISTINCT - + 28 ) * - COALESCE ( + + 17, 57, - 19 + + + ( - 88 ), + 56 ) / + 48 * + 16 + 79 col2
----
79

query I rowsort
SELECT DISTINCT + - ( + 94 ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9389
SELECT ALL 31 * + CAST( - + COUNT( * ) AS SIGNED ) * - 74 * 9 + - 54 DIV 80, COUNT( DISTINCT - CAST( - 70 AS SIGNED ) ) AS col0
----
20646
1

skipif mysql # not compatible
query II rowsort label-9389
SELECT ALL 31 * + CAST ( - + COUNT ( * ) AS INTEGER ) * - 74 * 9 + - 54 / 80, COUNT ( DISTINCT - CAST ( - 70 AS INTEGER ) ) AS col0
----
20646
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT + 45 + + + 84 - ( 90 ) * + + ( COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-9390
SELECT + 45 + + + 84 - ( 90 ) * + + ( COUNT ( * ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT 69 * - - ( - - CASE - - 71 WHEN + - 98 + + 44 * - 85 THEN - AVG ( ALL + 93 ) * NULLIF ( + - 67, COALESCE ( + 67, - 28 ) + + ( + 87 ) + + 48 ) ELSE NULL END ) + - 87 + - COUNT( * ) + + 75 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT 69 * - - ( - - CASE - - 71 WHEN + - 98 + + 44 * - 85 THEN - AVG ( ALL + 93 ) * NULLIF ( + - 67, COALESCE ( + 67, - 28 ) + + ( + 87 ) + + 48 ) ELSE NULL END ) + - 87 + - COUNT ( * ) + + 75 * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9392
SELECT COUNT( + ( 88 ) ) AS col1, 40 * MAX( DISTINCT 35 ) + - 73 - 46
----
1
1281

skipif mysql # not compatible
query II rowsort label-9392
SELECT COUNT ( + ( 88 ) ) AS col1, 40 * MAX ( DISTINCT 35 ) + - 73 - 46
----
1
1281

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT - 9 * COUNT( * ) * + - 2
----
18

skipif mysql # not compatible
query I rowsort label-9393
SELECT - 9 * COUNT ( * ) * + - 2
----
18

query I rowsort
SELECT + 74 * + 99
----
7326

query I rowsort
SELECT - NULLIF ( + - 67, - 71 / + 61 + - 2 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query III rowsort label-9396
SELECT + 44 * 32, 37 * - + COUNT( * ) + - - 36 AS col0, + 61 AS col1
----
1408
-1
61

skipif mysql # not compatible
query III rowsort label-9396
SELECT + 44 * 32, 37 * - + COUNT ( * ) + - - 36 AS col0, + 61 AS col1
----
1408
-1
61

query I rowsort
SELECT ALL + CASE - + 24 WHEN - - 23 THEN NULL WHEN - + 62 - + 34 + 54 THEN + + 38 ELSE 94 END * - - 10 AS col0
----
940

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT DISTINCT 3 - + - MIN( DISTINCT + 27 ) + + - 95
----
-65

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT 3 - + - MIN ( DISTINCT + 27 ) + + - 95
----
-65

query I rowsort
SELECT DISTINCT 57 col2
----
57

query I rowsort
SELECT ALL 63 col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9401
SELECT - CAST( + 26 AS SIGNED ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9401
SELECT - CAST ( + 26 AS INTEGER ) AS col0
----
-26

query I rowsort
SELECT + 78 * + + 40 * - - 1
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT ALL 90 * + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL 90 * + COUNT ( * )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9404
SELECT + 96 - + 63 + - 24 AS col2, SUM( - 58 ) * + CAST( NULL AS SIGNED ) / - 50 * + - 4 - - COUNT( * )
----
9
NULL

skipif mysql # not compatible
query II rowsort label-9404
SELECT + 96 - + 63 + - 24 AS col2, SUM ( - 58 ) * + CAST ( NULL AS INTEGER ) / - 50 * + - 4 - - COUNT ( * )
----
9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT - 55 * + CAST( + 83 AS SIGNED ) AS col2
----
-4565

skipif mysql # not compatible
query I rowsort label-9405
SELECT - 55 * + CAST ( + 83 AS INTEGER ) AS col2
----
-4565

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT DISTINCT + COUNT( * ) * 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT + COUNT ( * ) * 63 AS col1
----
63

query I rowsort
SELECT ALL 73 * - 28 * + + 14
----
-28616

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT - ( + - 48 ) + 31 * + ( + 8 ) * + COALESCE ( - 24, - COUNT( * ) ) * - 75
----
446448

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT - ( + - 48 ) + 31 * + ( + 8 ) * + COALESCE ( - 24, - COUNT ( * ) ) * - 75
----
446448

query I rowsort
SELECT ALL - 4 * - 96 AS col2
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL + NULLIF ( COUNT( * ), + + COUNT( 22 ) ) + - 16 + COUNT( * ) + + ( + + COUNT( * ) ) * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL + NULLIF ( COUNT ( * ), + + COUNT ( 22 ) ) + - 16 + COUNT ( * ) + + ( + + COUNT ( * ) ) * 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9411
SELECT DISTINCT 0 * - + ( - 97 ) - + 45 + + 87 + ( + 83 ) + + 49 DIV 14 * + COUNT( * ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT 0 * - + ( - 97 ) - + 45 + + 87 + ( + 83 ) + + 49 / 14 * + COUNT ( * ) AS col0
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9412
SELECT - COUNT( * ) DIV - - COUNT( * ) + - - 52
----
51

skipif mysql # not compatible
query I rowsort label-9412
SELECT - COUNT ( * ) / - - COUNT ( * ) + - - 52
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT + 7 * COUNT( * ) - + + ( + ( - - COUNT( * ) ) )
----
6

skipif mysql # not compatible
query I rowsort label-9413
SELECT + 7 * COUNT ( * ) - + + ( + ( - - COUNT ( * ) ) )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9414
SELECT + - CAST( - COUNT( * ) AS SIGNED ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9414
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) + + - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9415
SELECT DISTINCT 86 DIV + 41 + + 99
----
101

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT 86 / + 41 + + 99
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9416
SELECT ALL COUNT( * ) DIV 5 + - 38 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL COUNT ( * ) / 5 + - 38 AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9417
SELECT ( 76 ) AS col2, - ( + - CAST( NULL AS SIGNED ) ) AS col1
----
76
NULL

skipif mysql # not compatible
query II rowsort label-9417
SELECT ( 76 ) AS col2, - ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
76
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT 8 * - 15 + + CAST( + 97 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-9418
SELECT 8 * - 15 + + CAST ( + 97 AS INTEGER )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT ALL - + ( + COUNT( * ) ) * - 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL - + ( + COUNT ( * ) ) * - 83 AS col0
----
83

query I rowsort
SELECT + - NULLIF ( ( 41 ), 51 * - 18 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9421
SELECT DISTINCT - CAST( NULL AS SIGNED ) / MIN( DISTINCT NULLIF ( CAST( + 13 AS SIGNED ), - CAST( - + 41 AS SIGNED ) ) ) - - ( + 16 ) + 68 AS col2, + 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-9421
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / MIN ( DISTINCT NULLIF ( CAST ( + 13 AS INTEGER ), - CAST ( - + 41 AS INTEGER ) ) ) - - ( + 16 ) + 68 AS col2, + 5
----
NULL
5

query I rowsort
SELECT + + 83 AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9423
SELECT ALL - + 19 * 92, ( - ( COUNT( * ) ) ) * + - 71 AS col2
----
-1748
71

skipif mysql # not compatible
query II rowsort label-9423
SELECT ALL - + 19 * 92, ( - ( COUNT ( * ) ) ) * + - 71 AS col2
----
-1748
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9424
SELECT + CAST( - 54 AS SIGNED ) * CAST( NULL AS SIGNED ) + - COUNT( DISTINCT 35 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT + CAST ( - 54 AS INTEGER ) * CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT 35 ) AS col1
----
NULL

query I rowsort
SELECT ALL - CASE 60 WHEN - 70 THEN + 17 END
----
NULL

query I rowsort
SELECT DISTINCT - 56 * + ( + 67 ) AS col1
----
-3752

query I rowsort
SELECT 84 * - 84 + - 55
----
-7111

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT ALL - COALESCE ( 1, - 42 ) DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - COALESCE ( 1, - 42 ) / - 52
----
0

query II rowsort
SELECT - 42, - 3 AS col0
----
-42
-3

query II rowsort
SELECT ALL 94 AS col1, 89 * 89 + - + 4
----
94
7917

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT DISTINCT 91 * - + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT 91 * - + COUNT ( * )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9432
SELECT DISTINCT - 20 DIV - + 30 * 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT - 20 / - + 30 * 35 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT 52 * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9433
SELECT 52 * + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9434
SELECT ALL + 12 DIV - - ( + NULLIF ( - COUNT( * ), + 76 + 64 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL + 12 / - - ( + NULLIF ( - COUNT ( * ), + 76 + 64 ) ) AS col0
----
-12

query I rowsort
SELECT 23 + 58
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9436
SELECT MAX( 1 ) - - + 66 - - 53 + - + 87 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT MAX ( 1 ) - - + 66 - - 53 + - + 87 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - 5 col2, 38
----
-5
38

query I rowsort
SELECT 32 + - 90 AS col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT 42 DIV - 5 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9439
SELECT 42 / - 5 AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9440
SELECT CASE + + 97 WHEN - 2 THEN NULL WHEN + 90 THEN NULL ELSE - + 98 DIV + - 12 - - 25 + ( + 22 ) END * - COALESCE ( + 68, - - 99, - 96, ( - + 76 ) DIV 74 * - COUNT( * ) ) * + - 33 AS col0
----
123420

skipif mysql # not compatible
query I rowsort label-9440
SELECT CASE + + 97 WHEN - 2 THEN NULL WHEN + 90 THEN NULL ELSE - + 98 / + - 12 - - 25 + ( + 22 ) END * - COALESCE ( + 68, - - 99, - 96, ( - + 76 ) / 74 * - COUNT ( * ) ) * + - 33 AS col0
----
123420

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT 87 * - + MAX( + 62 ) * - 12 AS col0
----
64728

skipif mysql # not compatible
query I rowsort label-9441
SELECT 87 * - + MAX ( + 62 ) * - 12 AS col0
----
64728

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT + 94 + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT + 94 + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9443
SELECT ALL + 44 + MAX( ( 36 ) ) DIV + + COUNT( * ) + - 22 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL + 44 + MAX ( ( 36 ) ) / + + COUNT ( * ) + - 22 AS col0
----
58

query I rowsort
SELECT ( + + 5 ) + 23
----
28

query I rowsort
SELECT ALL + + 59 + 0 + - + 30 * + + 30
----
-841

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT DISTINCT - ( + 5 ) * - + COUNT( * ) * + 85 AS col0
----
425

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT - ( + 5 ) * - + COUNT ( * ) * + 85 AS col0
----
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9447
SELECT ALL + SUM( 59 ) + - 7 + + + ( - CAST( 14 AS SIGNED ) )
----
38

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL + SUM ( 59 ) + - 7 + + + ( - CAST ( 14 AS INTEGER ) )
----
38

query II rowsort
SELECT ALL 83, + 55 AS col1
----
83
55

query II rowsort
SELECT - 11, 78 AS col1
----
-11
78

query I rowsort
SELECT - 33 + + 4 * CASE WHEN NOT + 70 = NULL THEN NULL ELSE 61 END AS col2
----
211

query II rowsort
SELECT 96 + - 92 - - + 89 + + 10 * + 17 * - 39 AS col2, 89 AS col1
----
-6537
89

query I rowsort
SELECT - 94 col1
----
-94

query II rowsort
SELECT + 11 AS col0, 69 col2
----
11
69

query I rowsort
SELECT - 60 + + 78 + - 21
----
-3

query I rowsort
SELECT ALL - - ( + 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL - COUNT( * ) * + 51 * + 56 * + 40
----
-114240

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - COUNT ( * ) * + 51 * + 56 * + 40
----
-114240

query II rowsort
SELECT ALL - + 57 AS col1, 23 * 88 + + + 80 AS col0
----
-57
2104

query I rowsort
SELECT ALL + ( 76 ) + + - 87 AS col0
----
-11

query I rowsort
SELECT + ( - - 50 ) AS col1
----
50

query II rowsort
SELECT ALL - 42, - ( - + 17 ) AS col2
----
-42
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9461
SELECT 85 + + 35 * + CAST( - CAST( + 15 AS SIGNED ) AS SIGNED ) + + 92 AS col0, ( - 23 ) AS col1
----
-348
-23

skipif mysql # not compatible
query II rowsort label-9461
SELECT 85 + + 35 * + CAST ( - CAST ( + 15 AS INTEGER ) AS INTEGER ) + + 92 AS col0, ( - 23 ) AS col1
----
-348
-23

query I rowsort
SELECT + 13 col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9463
SELECT ALL - COUNT( + CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT ( - - 23 ) * + - 24
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT 43 * - MIN( 19 )
----
-817

skipif mysql # not compatible
query I rowsort label-9465
SELECT 43 * - MIN ( 19 )
----
-817

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL - CASE - - 49 WHEN - 97 THEN - 87 END - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL - CASE - - 49 WHEN - 97 THEN - 87 END - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9467
SELECT DISTINCT + 97 DIV 2 * 36 AS col2
----
1728

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT + 97 / 2 * 36 AS col2
----
1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9468
SELECT 6 * - MIN( DISTINCT + 81 ) + + 9 + 91 - COUNT( * ) DIV - 85 AS col1
----
-386

skipif mysql # not compatible
query I rowsort label-9468
SELECT 6 * - MIN ( DISTINCT + 81 ) + + 9 + 91 - COUNT ( * ) / - 85 AS col1
----
-386

query I rowsort
SELECT DISTINCT - 59 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT 33 + + CASE - + 99 WHEN 40 THEN - COALESCE ( - COUNT( * ), 68 * + - 3, + + 43 ) * - 1 WHEN 56 * + ( + 21 ) * + + COUNT( * ) + COUNT( * ) * + COUNT( * ) * + COALESCE ( - + 87, 75 ) / - 14 + + COUNT( * ) * 66 THEN + + 39 ELSE + 25 * 80 * + + 97 END
----
194033

skipif mysql # not compatible
query I rowsort label-9470
SELECT 33 + + CASE - + 99 WHEN 40 THEN - COALESCE ( - COUNT ( * ), 68 * + - 3, + + 43 ) * - 1 WHEN 56 * + ( + 21 ) * + + COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) * + COALESCE ( - + 87, 75 ) / - 14 + + COUNT ( * ) * 66 THEN + + 39 ELSE + 25 * 80 * + + 97 END
----
194033

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9471
SELECT ALL ( + 41 ) DIV 59 DIV - + COUNT( * ) * + + 81, + ( + - ( + 3 ) ) - + COUNT( * ) col1
----
0
-4

skipif mysql # not compatible
query II rowsort label-9471
SELECT ALL ( + 41 ) / 59 / - + COUNT ( * ) * + + 81, + ( + - ( + 3 ) ) - + COUNT ( * ) col1
----
0
-4

query I rowsort
SELECT ALL 27 - + 27 * - - 51
----
-1350

query I rowsort
SELECT ALL - 7 * + 10 AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9474
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT NULLIF ( + MAX( DISTINCT + 49 ), + 92 ) * - - COALESCE ( - + SUM( - + 69 ), - - 85 + - - ( 3 ) )
----
3381

skipif mysql # not compatible
query I rowsort label-9475
SELECT NULLIF ( + MAX ( DISTINCT + 49 ), + 92 ) * - - COALESCE ( - + SUM ( - + 69 ), - - 85 + - - ( 3 ) )
----
3381

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT 77 + 18 DIV 88 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9476
SELECT 77 + 18 / 88 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9477
SELECT DISTINCT - 62 + - CAST( NULL AS SIGNED ) - - 46 * + CASE - SUM( 99 ) WHEN + CASE + + 47 WHEN + 2 * - 53 THEN - + 97 - + ( + - 66 ) - 18 WHEN - 96 THEN NULL END THEN + 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT - 62 + - CAST ( NULL AS INTEGER ) - - 46 * + CASE - SUM ( 99 ) WHEN + CASE + + 47 WHEN + 2 * - 53 THEN - + 97 - + ( + - 66 ) - 18 WHEN - 96 THEN NULL END THEN + 6 END
----
NULL

query I rowsort
SELECT ALL - 17 + - + 73 AS col2
----
-90

query I rowsort
SELECT DISTINCT + 63 + - + 60
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9480
SELECT DISTINCT + 71 DIV - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT + 71 / - COUNT ( * ) AS col2
----
-71

query I rowsort
SELECT ALL - - 44 + - 14 AS col1
----
30

query I rowsort
SELECT DISTINCT + - CASE + ( 24 ) WHEN 88 THEN - + 71 * + 88 END + 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9483
SELECT 21 DIV - COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-9483
SELECT 21 / - COUNT ( * ) AS col2
----
-21

query I rowsort
SELECT ALL + 21 + - 2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT SUM( - - 52 ) * + SUM( DISTINCT - 57 ) col1
----
-2964

skipif mysql # not compatible
query I rowsort label-9485
SELECT SUM ( - - 52 ) * + SUM ( DISTINCT - 57 ) col1
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT - + SUM( DISTINCT + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-9486
SELECT - + SUM ( DISTINCT + 78 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9487
SELECT DISTINCT - NULLIF ( + 62, - 93 * + + CAST( + 5 AS SIGNED ) * - 59 / + ( + + 57 ) * MAX( + + 20 ) * + - COUNT( * ) + + 87 + - - 34 ) + - CASE - + 4 WHEN - - 10 THEN + - ( + - 88 ) END + ( + 61 ) / + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT - NULLIF ( + 62, - 93 * + + CAST ( + 5 AS INTEGER ) * - 59 / + ( + + 57 ) * MAX ( + + 20 ) * + - COUNT ( * ) + + 87 + - - 34 ) + - CASE - + 4 WHEN - - 10 THEN + - ( + - 88 ) END + ( + 61 ) / + + 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9488
SELECT ALL + + COUNT( * ) * 26 AS col0, 62 DIV + + 22 AS col0
----
26
2

skipif mysql # not compatible
query II rowsort label-9488
SELECT ALL + + COUNT ( * ) * 26 AS col0, 62 / + + 22 AS col0
----
26
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT 90 * SUM( DISTINCT - 69 ) + - 13
----
-6223

skipif mysql # not compatible
query I rowsort label-9489
SELECT 90 * SUM ( DISTINCT - 69 ) + - 13
----
-6223

query I rowsort
SELECT ALL + 86 - 3 * - 95 * + + 94 + - + 53 AS col1
----
26823

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT - 77 + MAX( 62 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-9491
SELECT - 77 + MAX ( 62 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT - 60 * - 93 * - COALESCE ( + 95, - MIN( + 40 ) ) - 23
----
-530123

skipif mysql # not compatible
query I rowsort label-9492
SELECT - 60 * - 93 * - COALESCE ( + 95, - MIN ( + 40 ) ) - 23
----
-530123

query II rowsort
SELECT - 91 + - - 77 * 84 * 70, + 77 * + 70 + - 73 col0
----
452669
5317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT DISTINCT + CAST( - COALESCE ( - - 90, + + 46 ) AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT + CAST ( - COALESCE ( - - 90, + + 46 ) AS INTEGER )
----
-90

query I rowsort
SELECT DISTINCT 16 * + 7
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT + COUNT( * ) + + 61 * - COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-9496
SELECT + COUNT ( * ) + + 61 * - COUNT ( * ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT + COUNT( * ) * + MIN( DISTINCT - - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-9497
SELECT + COUNT ( * ) * + MIN ( DISTINCT - - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT MAX( ALL 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9498
SELECT MAX ( ALL 94 )
----
94

query I rowsort
SELECT DISTINCT + 90 AS col2
----
90

query I rowsort
SELECT + ( - + 34 ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT + COUNT( * ) * 49
----
49

skipif mysql # not compatible
query I rowsort label-9501
SELECT + COUNT ( * ) * 49
----
49

query I rowsort
SELECT - ( - 27 ) * 2 + - 31 + + 1 AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT ALL 92 * 31 + + - CAST( - - 96 AS SIGNED ) * 1 AS col2
----
2756

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL 92 * 31 + + - CAST ( - - 96 AS INTEGER ) * 1 AS col2
----
2756

query II rowsort
SELECT ALL + 6 AS col1, ( - 92 ) + + 69
----
6
-23

query I rowsort
SELECT + 79 * + - 56
----
-4424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9506
SELECT + 50 AS col2, + 68 + - 67 + - - 44 * + CAST( NULL AS SIGNED ) + COALESCE ( 15, - 12 ) - + 81 * ( + 17 ) - + 36 * - 11 * - COUNT( * )
----
50
NULL

skipif mysql # not compatible
query II rowsort label-9506
SELECT + 50 AS col2, + 68 + - 67 + - - 44 * + CAST ( NULL AS INTEGER ) + COALESCE ( 15, - 12 ) - + 81 * ( + 17 ) - + 36 * - 11 * - COUNT ( * )
----
50
NULL

query I rowsort
SELECT + 97 - + 22
----
75

query I rowsort
SELECT + 73 + 32 col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT + COUNT( * ) * 17 * CASE + MIN( + - 21 ) WHEN + 48 THEN - 64 WHEN - 66 + + - 75 * - + 48 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT + COUNT ( * ) * 17 * CASE + MIN ( + - 21 ) WHEN + 48 THEN - 64 WHEN - 66 + + - 75 * - + 48 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 31 + + 80 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT SUM( ALL - 69 ) * - NULLIF ( + 26, - + 5 ) - + 71
----
1723

skipif mysql # not compatible
query I rowsort label-9511
SELECT SUM ( ALL - 69 ) * - NULLIF ( + 26, - + 5 ) - + 71
----
1723

query I rowsort
SELECT ALL 62 * 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9513
SELECT + - 36 + - 9 DIV - 36 * - ( - 99 )
----
-36

skipif mysql # not compatible
query I rowsort label-9513
SELECT + - 36 + - 9 / - 36 * - ( - 99 )
----
-36

query I rowsort
SELECT - - 31 - - - 51 + + + 18 * 57 AS col1
----
1006

query I rowsort
SELECT ALL + 25 * + + 8
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL + CAST( 44 AS SIGNED ) * 64 AS col2
----
2816

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL + CAST ( 44 AS INTEGER ) * 64 AS col2
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT - + MAX( ALL - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-9517
SELECT - + MAX ( ALL - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT - SUM( ALL 19 ) + 58
----
39

skipif mysql # not compatible
query I rowsort label-9518
SELECT - SUM ( ALL 19 ) + 58
----
39

query I rowsort
SELECT - 38 * + 68
----
-2584

query I rowsort
SELECT DISTINCT - 48 * + 24 AS col2
----
-1152

query I rowsort
SELECT ALL ( + 54 ) AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9522
SELECT - MAX( 13 ) + - ( - COUNT( * ) ) + - - ( - CAST( NULL AS SIGNED ) ) * + - CASE + 32 WHEN - + 65 THEN - - COUNT( * ) + 74 WHEN - 53 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT - MAX ( 13 ) + - ( - COUNT ( * ) ) + - - ( - CAST ( NULL AS INTEGER ) ) * + - CASE + 32 WHEN - + 65 THEN - - COUNT ( * ) + 74 WHEN - 53 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9523
SELECT ALL + - 4 DIV + + 26
----
0

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL + - 4 / + + 26
----
0

query I rowsort
SELECT DISTINCT - 33 col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT - + COALESCE ( + 50, + - 35 * + + 40, - COALESCE ( - + 59, + - COUNT( * ) * 4, + - CASE - 17 WHEN + 9 * + + 41 THEN NULL WHEN + 74 * + - CASE - COUNT( * ) WHEN + + NULLIF ( + COUNT( * ), - 70 ) THEN NULL WHEN - + NULLIF ( - 54, - - 76 + - ( - 56 ) * + ( COUNT( * ) ) / + COUNT( * ) ) THEN + 49 WHEN - 81 * + COUNT( * ) THEN NULL END + + + NULLIF ( - + SUM( - - 42 ), + + 6 ) THEN NULL ELSE - CAST( + 31 AS SIGNED ) END ) )
----
-50

skipif mysql # not compatible
query I rowsort label-9525
SELECT - + COALESCE ( + 50, + - 35 * + + 40, - COALESCE ( - + 59, + - COUNT ( * ) * 4, + - CASE - 17 WHEN + 9 * + + 41 THEN NULL WHEN + 74 * + - CASE - COUNT ( * ) WHEN + + NULLIF ( + COUNT ( * ), - 70 ) THEN NULL WHEN - + NULLIF ( - 54, - - 76 + - ( - 56 ) * + ( COUNT ( * ) ) / + COUNT ( * ) ) THEN + 49 WHEN - 81 * + COUNT ( * ) THEN NULL END + + + NULLIF ( - + SUM ( - - 42 ), + + 6 ) THEN NULL ELSE - CAST ( + 31 AS INTEGER ) END ) )
----
-50

query I rowsort
SELECT - + 54 + 44 AS col1
----
-10

query I rowsort
SELECT ALL - 49 * + 53 * 24 * - - 50
----
-3116400

query I rowsort
SELECT + - 79 + - 2
----
-81

query I rowsort
SELECT ALL + + 25 - + 15 AS col2
----
10

query I rowsort
SELECT ALL + - 37 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT ALL + MAX( DISTINCT 86 ) * 67
----
5762

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL + MAX ( DISTINCT 86 ) * 67
----
5762

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9532
SELECT DISTINCT - 97 * + COALESCE ( + + 34, - - 37 - + + 88 - + 92 + + + COUNT( * ) + 31 DIV + 33 DIV 59 ) * - 71 + ( SUM( ALL 29 ) ) AS col0, - 83 AS col1
----
234187
-83

skipif mysql # not compatible
query II rowsort label-9532
SELECT DISTINCT - 97 * + COALESCE ( + + 34, - - 37 - + + 88 - + 92 + + + COUNT ( * ) + 31 / + 33 / 59 ) * - 71 + ( SUM ( ALL 29 ) ) AS col0, - 83 AS col1
----
234187
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT - 22 * COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-9533
SELECT - 22 * COUNT ( * ) AS col2
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-9534
SELECT ALL 33 DIV - 88, - 18 col0
----
0
-18

skipif mysql # not compatible
query II rowsort label-9534
SELECT ALL 33 / - 88, - 18 col0
----
0
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-9535
SELECT + 39 DIV 91 AS col1, + ( 41 )
----
0
41

skipif mysql # not compatible
query II rowsort label-9535
SELECT + 39 / 91 AS col1, + ( 41 )
----
0
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT - 27 + - - 75 DIV 31 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-9536
SELECT - 27 + - - 75 / 31 AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9537
SELECT DISTINCT + CAST( 68 AS SIGNED ) AS col0, 75
----
68
75

skipif mysql # not compatible
query II rowsort label-9537
SELECT DISTINCT + CAST ( 68 AS INTEGER ) AS col0, 75
----
68
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT ( + + ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9538
SELECT ( + + ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + 9 + - + ( - 35 ) + - 69 AS col1
----
-25

query I rowsort
SELECT ( + + ( 16 ) ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9541
SELECT ALL + 6 col0, COUNT( * ) AS col2
----
6
1

skipif mysql # not compatible
query II rowsort label-9541
SELECT ALL + 6 col0, COUNT ( * ) AS col2
----
6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT + MIN( DISTINCT 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9542
SELECT + MIN ( DISTINCT 40 ) AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9543
SELECT + CAST( - 58 AS SIGNED ) * + - 44 * - 34 AS col1
----
-86768

skipif mysql # not compatible
query I rowsort label-9543
SELECT + CAST ( - 58 AS INTEGER ) * + - 44 * - 34 AS col1
----
-86768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT ALL CAST( NULL AS SIGNED ) * + 69 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL CAST ( NULL AS INTEGER ) * + 69 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 32 ) col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL 32 * - - ( + + 65 ) + COUNT( * ) - 28
----
2053

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL 32 * - - ( + + 65 ) + COUNT ( * ) - 28
----
2053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9547
SELECT + ( + MIN( 53 ) ) * - 0 * + 6 * + CAST( NULL AS SIGNED ) * 6 + ( - + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT + ( + MIN ( 53 ) ) * - 0 * + 6 * + CAST ( NULL AS INTEGER ) * 6 + ( - + 69 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9548
SELECT ALL - MAX( + COALESCE ( - + 6, - 76 * + 43 - - - 76 + - 52 ) ) DIV + + 86 - 51
----
-51

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL - MAX ( + COALESCE ( - + 6, - 76 * + 43 - - - 76 + - 52 ) ) / + + 86 - 51
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT DISTINCT 75 * - COUNT( * ) + + 99
----
24

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT 75 * - COUNT ( * ) + + 99
----
24

query I rowsort
SELECT + ( - 82 )
----
-82

query I rowsort
SELECT ALL 69 * 23 + - 17 * - 26 AS col1
----
2029

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9552
SELECT + CAST( NULL AS SIGNED ) AS col0, - 4
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-9552
SELECT + CAST ( NULL AS INTEGER ) AS col0, - 4
----
NULL
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9553
SELECT + 13 DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-9553
SELECT + 13 / + 54
----
0

query I rowsort
SELECT DISTINCT 12 * 98 + - NULLIF ( 89, + 77 ) AS col0
----
1087

query I rowsort
SELECT ALL + 31 col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT DISTINCT SUM( DISTINCT + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT SUM ( DISTINCT + 54 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9557
SELECT ALL 83 DIV - SUM( - 68 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL 83 / - SUM ( - 68 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9558
SELECT DISTINCT - 78, CAST( COUNT( * ) AS SIGNED ) * + + 20 DIV - + 25 * 54 + 91 AS col0
----
-78
91

skipif mysql # not compatible
query II rowsort label-9558
SELECT DISTINCT - 78, CAST ( COUNT ( * ) AS INTEGER ) * + + 20 / - + 25 * 54 + 91 AS col0
----
-78
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9559
SELECT - - 81 AS col1, - COUNT( * ) * - 50 AS col0
----
81
50

skipif mysql # not compatible
query II rowsort label-9559
SELECT - - 81 AS col1, - COUNT ( * ) * - 50 AS col0
----
81
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL 60 * + ( - 76 ) * - 85 - + - COUNT( * ) + COALESCE ( - NULLIF ( 42, - 91 ), - + 40 ) AS col0
----
387559

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL 60 * + ( - 76 ) * - 85 - + - COUNT ( * ) + COALESCE ( - NULLIF ( 42, - 91 ), - + 40 ) AS col0
----
387559

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9561
SELECT ALL COUNT( * ) DIV + 9
----
0

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL COUNT ( * ) / + 9
----
0

query I rowsort
SELECT ALL - 28 * - - 64 - + 22 AS col1
----
-1814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9563
SELECT DISTINCT + 27 DIV - CAST( + + 31 AS SIGNED ) * + + COUNT( * ) + - 97 - + 57, + 56 - - - 23 AS col2
----
-154
33

skipif mysql # not compatible
query II rowsort label-9563
SELECT DISTINCT + 27 / - CAST ( + + 31 AS INTEGER ) * + + COUNT ( * ) + - 97 - + 57, + 56 - - - 23 AS col2
----
-154
33

query I rowsort
SELECT - - 19
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9565
SELECT - 47 AS col2, COUNT( * ) * + 1
----
-47
1

skipif mysql # not compatible
query II rowsort label-9565
SELECT - 47 AS col2, COUNT ( * ) * + 1
----
-47
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT ALL 58 col2, + NULLIF ( - 49, 98 ) + - - SUM( ALL + - 52 ) AS col2
----
58
-101

skipif mysql # not compatible
query II rowsort label-9566
SELECT ALL 58 col2, + NULLIF ( - 49, 98 ) + - - SUM ( ALL + - 52 ) AS col2
----
58
-101

query I rowsort
SELECT ( 30 ) col0
----
30

query I rowsort
SELECT - 68 * + 85
----
-5780

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT NULLIF ( + COUNT( * ), 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9569
SELECT NULLIF ( + COUNT ( * ), 40 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT 29 - - + 15 AS col2, NULLIF ( CASE + 67 WHEN CASE - 55 WHEN 55 THEN NULL WHEN - 48 THEN - 54 WHEN + ( 24 ) / - + 19 * 27 + - + 15 THEN NULL END THEN - + 38 WHEN + - 53 + - + MIN( 29 ) + - 71 + - MIN( - - 55 ) / + 72 THEN NULL END, 26 ) AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-9570
SELECT 29 - - + 15 AS col2, NULLIF ( CASE + 67 WHEN CASE - 55 WHEN 55 THEN NULL WHEN - 48 THEN - 54 WHEN + ( 24 ) / - + 19 * 27 + - + 15 THEN NULL END THEN - + 38 WHEN + - 53 + - + MIN ( 29 ) + - 71 + - MIN ( - - 55 ) / + 72 THEN NULL END, 26 ) AS col1
----
44
NULL

query I rowsort
SELECT - 95 - - 97 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9572
SELECT DISTINCT + COUNT( * ) + - COALESCE ( 70, - 63 ) * - 29 + - + 21 AS col2, 8 AS col1
----
2010
8

skipif mysql # not compatible
query II rowsort label-9572
SELECT DISTINCT + COUNT ( * ) + - COALESCE ( 70, - 63 ) * - 29 + - + 21 AS col2, 8 AS col1
----
2010
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT - 66 * COUNT( 97 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - 66 * COUNT ( 97 ) AS col0
----
-66

query I rowsort
SELECT 46 * - - 35
----
1610

query I rowsort
SELECT ALL - 93 + 61 - + 3
----
-35

query I rowsort
SELECT ALL - ( - 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT 30 * - - COUNT( * ) + NULLIF ( - 78, + 37 ) - + + COALESCE ( - 97, + 81 + + 18 ) + 10
----
59

skipif mysql # not compatible
query I rowsort label-9577
SELECT 30 * - - COUNT ( * ) + NULLIF ( - 78, + 37 ) - + + COALESCE ( - 97, + 81 + + 18 ) + 10
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9578
SELECT 71 - + 36 * 24 * 29 DIV - + 35 col0
----
786

skipif mysql # not compatible
query I rowsort label-9578
SELECT 71 - + 36 * 24 * 29 / - + 35 col0
----
786

query I rowsort
SELECT ALL - 48 + - 80
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT ALL + 94 + - CAST( - 16 AS SIGNED ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL + 94 + - CAST ( - 16 AS INTEGER ) AS col0
----
110

query I rowsort
SELECT 58 * - 64 AS col0
----
-3712

query I rowsort
SELECT ALL - 49 + + 51 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT DISTINCT 79 DIV 11
----
7

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT 79 / 11
----
7

query I rowsort
SELECT + 15 * - 39 + - 1
----
-586

query I rowsort
SELECT DISTINCT - ( - + 62 ) AS col2
----
62

query I rowsort
SELECT + - 16 AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9587
SELECT ALL - + MAX( CAST( + 80 AS SIGNED ) )
----
-80

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL - + MAX ( CAST ( + 80 AS INTEGER ) )
----
-80

query I rowsort
SELECT + 37 - - 29 AS col2
----
66

query I rowsort
SELECT ALL - - ( - 70 ) AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9590
SELECT + 50 + - - ( CAST( - 71 AS SIGNED ) ) + + SUM( + 3 ) + + 69 - - + 67 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-9590
SELECT + 50 + - - ( CAST ( - 71 AS INTEGER ) ) + + SUM ( + 3 ) + + 69 - - + 67 AS col2
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9591
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS SIGNED ) / - 32 - + CASE + 92 WHEN 67 THEN - 88 + + + 17 WHEN - 91 * - NULLIF ( - 19, - - 18 + 31 * 68 * + 31 + + 38 * - - 41 + + 88 ) - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS INTEGER ) / - 32 - + CASE + 92 WHEN 67 THEN - 88 + + + 17 WHEN - 91 * - NULLIF ( - 19, - - 18 + 31 * 68 * + 31 + + 38 * - - 41 + + 88 ) - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT ALL - + COUNT( ALL - CASE + 42 WHEN - 43 * - 97 THEN NULL WHEN + 11 + + ( 54 ) THEN + + 24 * 17 + - - 49 ELSE - 74 / + 56 - - 73 + - 21 END ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL - + COUNT ( ALL - CASE + 42 WHEN - 43 * - 97 THEN NULL WHEN + 11 + + ( 54 ) THEN + + 24 * 17 + - - 49 ELSE - 74 / + 56 - - 73 + - 21 END ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT ALL CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9594
SELECT + 77 * 32 + + COUNT( * ) DIV - 83
----
2464

skipif mysql # not compatible
query I rowsort label-9594
SELECT + 77 * 32 + + COUNT ( * ) / - 83
----
2464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT + CAST( NULL AS SIGNED ) * - 85 - + - ( - 25 ) * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT + CAST ( NULL AS INTEGER ) * - 85 - + - ( - 25 ) * 90
----
NULL

query I rowsort
SELECT DISTINCT 56 * - 17 + - 28 + + 64 AS col2
----
-916

query I rowsort
SELECT 75 + + + 64 - - 73 AS col1
----
212

query I rowsort
SELECT - 0 - - 72 + - 91
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9599
SELECT COALESCE ( 95, MIN( - CAST( NULL AS SIGNED ) ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9599
SELECT COALESCE ( 95, MIN ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT + 66 + + 50 AS col2, COALESCE ( + NULLIF ( + + NULLIF ( + 43, 18 ), + 80 ), 51 * + 15 * - 86 * - + 6 + COUNT( * ) ) AS col1
----
116
43

skipif mysql # not compatible
query II rowsort label-9600
SELECT + 66 + + 50 AS col2, COALESCE ( + NULLIF ( + + NULLIF ( + 43, 18 ), + 80 ), 51 * + 15 * - 86 * - + 6 + COUNT ( * ) ) AS col1
----
116
43

query I rowsort
SELECT ALL - 8 + - 60 + + 68 + - 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT + + 95 * 53 + + NULLIF ( + 13, - - COUNT( - - 63 ) + - SUM( ALL 66 ) - - 46 ) AS col1
----
5048

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + + 95 * 53 + + NULLIF ( + 13, - - COUNT ( - - 63 ) + - SUM ( ALL 66 ) - - 46 ) AS col1
----
5048

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT + COUNT( * ) + + - ( + 30 )
----
-29

skipif mysql # not compatible
query I rowsort label-9603
SELECT + COUNT ( * ) + + - ( + 30 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT ALL + ( + 8 ) + SUM( DISTINCT - - 61 ) * - + 95 * - SUM( ALL - 10 ) - - + 93 * 54 * 33 * - 73
----
-12155940

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL + ( + 8 ) + SUM ( DISTINCT - - 61 ) * - + 95 * - SUM ( ALL - 10 ) - - + 93 * 54 * 33 * - 73
----
-12155940

query I rowsort
SELECT 24 * 90
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT 26 * + 52 * + - COUNT( * ) * - 21 AS col2
----
28392

skipif mysql # not compatible
query I rowsort label-9606
SELECT 26 * + 52 * + - COUNT ( * ) * - 21 AS col2
----
28392

query I rowsort
SELECT 61 + + 82 AS col2
----
143

query I rowsort
SELECT ALL 98 * - - 12 AS col0
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT 71 + - 65 + - 21 * - + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-9609
SELECT 71 + - 65 + - 21 * - + COUNT ( * ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - MIN( DISTINCT + 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-9610
SELECT - MIN ( DISTINCT + 67 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT DISTINCT + 16 + - COUNT( * ) * + 97 * - 76 AS col2
----
7388

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT + 16 + - COUNT ( * ) * + 97 * - 76 AS col2
----
7388

query I rowsort
SELECT ALL - ( - 93 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT 70 * 70 DIV + 94 col2
----
52

skipif mysql # not compatible
query I rowsort label-9613
SELECT 70 * 70 / + 94 col2
----
52

query I rowsort
SELECT 51 - 40 * 63 * - 39
----
98331

onlyif mysql # aggregate syntax: 
query II rowsort label-9615
SELECT + 1 AS col0, SUM( - 65 ) + + 76 + - 30 * + + 15 + - - 51
----
1
-388

skipif mysql # not compatible
query II rowsort label-9615
SELECT + 1 AS col0, SUM ( - 65 ) + + 76 + - 30 * + + 15 + - - 51
----
1
-388

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT 17 * - + COUNT( * ) + 74 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-9616
SELECT 17 * - + COUNT ( * ) + 74 AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9617
SELECT ALL + 27 DIV + COUNT( 61 )
----
27

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + 27 / + COUNT ( 61 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT MIN( DISTINCT 57 )
----
57

skipif mysql # not compatible
query I rowsort label-9618
SELECT MIN ( DISTINCT 57 )
----
57

query I rowsort
SELECT ALL + 18 * + 64 AS col1
----
1152

query II rowsort
SELECT + 12 AS col1, - 88 AS col0
----
12
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 15 - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 15 - - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT DISTINCT - NULLIF ( - COUNT( * ), - MAX( - + CASE - 99 WHEN - 93 THEN + 78 * + 37 * + 7 * - 58 - - 19 END ) * - 21 ) * + MIN( ALL 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - MAX ( - + CASE - 99 WHEN - 93 THEN + 78 * + 37 * + 7 * - 58 - - 19 END ) * - 21 ) * + MIN ( ALL 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ( - + SUM( + 90 ) ) - + 4 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9623
SELECT ( - + SUM ( + 90 ) ) - + 4 AS col0
----
-94

query I rowsort
SELECT ALL - 2 * + 72 * 11
----
-1584

query I rowsort
SELECT ALL + - 31 * + 70 + - - 89 AS col0
----
-2081

query I rowsort
SELECT - 61 * 70 AS col0
----
-4270

query I rowsort
SELECT - 70 + - 67 AS col1
----
-137

query II rowsort
SELECT DISTINCT + + 40, - 20 AS col2
----
40
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT + COUNT( * ) * 91 + 16 * - 1 * - - 95
----
-1429

skipif mysql # not compatible
query I rowsort label-9629
SELECT + COUNT ( * ) * 91 + 16 * - 1 * - - 95
----
-1429

query I rowsort
SELECT DISTINCT + 62 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - - 97 * + 55 * + + 24 * + - NULLIF ( - ( + 7 ), - - 53 * - COUNT( * ) ) * - ( 33 ) AS col2
----
-29577240

skipif mysql # not compatible
query I rowsort label-9631
SELECT - - 97 * + 55 * + + 24 * + - NULLIF ( - ( + 7 ), - - 53 * - COUNT ( * ) ) * - ( 33 ) AS col2
----
-29577240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT + + 92 * NULLIF ( + 17, - CAST( NULL AS SIGNED ) ) * 22 + + 44 * 20 + 79 AS col1
----
35367

skipif mysql # not compatible
query I rowsort label-9632
SELECT + + 92 * NULLIF ( + 17, - CAST ( NULL AS INTEGER ) ) * 22 + + 44 * 20 + 79 AS col1
----
35367

query I rowsort
SELECT ALL + 86 + 0 col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT - + CAST( - 89 AS SIGNED ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9634
SELECT - + CAST ( - 89 AS INTEGER ) AS col0
----
89

query II rowsort
SELECT 59 AS col0, - 51
----
59
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL NULLIF ( + 59, - + 64 / + 52 - + COUNT( + 43 ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL NULLIF ( + 59, - + 64 / + 52 - + COUNT ( + 43 ) ) AS col2
----
59

query I rowsort
SELECT ALL + 37 + + 81 col0
----
118

query II rowsort
SELECT - + 5 AS col2, + 54 * - - 44 AS col0
----
-5
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT - NULLIF ( COUNT( * ), - 5 ) - 92 * - + 32 * + - 64
----
-188417

skipif mysql # not compatible
query I rowsort label-9639
SELECT - NULLIF ( COUNT ( * ), - 5 ) - 92 * - + 32 * + - 64
----
-188417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT - 44 + + + CAST( - 93 AS SIGNED ) AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-9640
SELECT - 44 + + + CAST ( - 93 AS INTEGER ) AS col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT + - 65 * - 22 / + 26 * + + CASE 50 WHEN + - 40 THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT + - 65 * - 22 / + 26 * + + CASE 50 WHEN + - 40 THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT DISTINCT 16 + + + 87 + + 57 + - + 16 AS col1, 86
----
144
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9643
SELECT + ( COUNT( * ) ) DIV 85 + + - CAST( + 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-9643
SELECT + ( COUNT ( * ) ) / 85 + + - CAST ( + 62 AS INTEGER )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ALL 51 + COUNT( ALL - 47 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL 51 + COUNT ( ALL - 47 ) AS col2
----
52

query I rowsort
SELECT ALL ( - 85 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9646
SELECT DISTINCT CAST( - - CASE 20 WHEN + + 69 * COUNT( * ) / - NULLIF ( - - 43, 25 ) THEN - - 70 END AS SIGNED ) + + 74 - - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT CAST ( - - CASE 20 WHEN + + 69 * COUNT ( * ) / - NULLIF ( - - 43, 25 ) THEN - - 70 END AS INTEGER ) + + 74 - - 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT - COALESCE ( COUNT( * ), + - 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-9647
SELECT - COALESCE ( COUNT ( * ), + - 83 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9648
SELECT + ( ( - - 34 ) ) + 56 DIV - COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9648
SELECT + ( ( - - 34 ) ) + 56 / - COUNT ( * ) AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9649
SELECT ALL 15 - + ( CAST( NULL AS SIGNED ) ) + + - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL 15 - + ( CAST ( NULL AS INTEGER ) ) + + - 82 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT + ( + CAST( NULL AS SIGNED ) ) * 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT + ( + CAST ( NULL AS INTEGER ) ) * 87 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9651
SELECT + ( + CAST( NULL AS SIGNED ) ) + - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT + ( + CAST ( NULL AS INTEGER ) ) + - 70 AS col1
----
NULL

query II rowsort
SELECT ALL 69 * 50 - + 14 * - 8 AS col2, + 72
----
3562
72

query I rowsort
SELECT + ( + - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9654
SELECT DISTINCT 7 * - 69 AS col1, ( + COUNT( * ) ) AS col1
----
-483
1

skipif mysql # not compatible
query II rowsort label-9654
SELECT DISTINCT 7 * - 69 AS col1, ( + COUNT ( * ) ) AS col1
----
-483
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL + MAX( ALL 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL + MAX ( ALL 5 ) AS col2
----
5

query I rowsort
SELECT + 37 * - + 40 AS col1
----
-1480

query I rowsort
SELECT ALL + - 6 col2
----
-6

query I rowsort
SELECT + + 82 col0
----
82

query I rowsort
SELECT + + ( 68 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9660
SELECT ALL + + 22 * - + 42 + - + 43 DIV - 48 + - + 64 + + COUNT( * ) + + ( - - 80 ) * + COALESCE ( COUNT( * ), + COUNT( - 40 ) ) AS col2
----
-907

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL + + 22 * - + 42 + - + 43 / - 48 + - + 64 + + COUNT ( * ) + + ( - - 80 ) * + COALESCE ( COUNT ( * ), + COUNT ( - 40 ) ) AS col2
----
-907

query I rowsort
SELECT - 35 + - 20 AS col1
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9662
SELECT + ( - CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT + ( - CAST ( NULL AS REAL ) ) col1
----
NULL

query II rowsort
SELECT ALL + ( 33 ) col2, 18 + 84
----
33
102

query I rowsort
SELECT ALL - - 25 * + - 69 + - 58 + 88 * + 17
----
-287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT - CAST( NULL AS SIGNED ) + - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT - CAST ( NULL AS INTEGER ) + - - 61
----
NULL

query I rowsort
SELECT ALL + 0 * 88 + - - 50 col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9667
SELECT ALL - CASE + + CAST( NULL AS SIGNED ) WHEN + - ( + - AVG ( ALL 86 ) ) THEN + - CASE WHEN NOT + SUM( ALL 83 ) IS NULL THEN NULL ELSE 76 END WHEN 17 + + COUNT( * ) * + + 57 THEN + 20 ELSE NULL END * + 59 * + 58 + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL - CASE + + CAST ( NULL AS INTEGER ) WHEN + - ( + - AVG ( ALL 86 ) ) THEN + - CASE WHEN NOT + SUM ( ALL 83 ) IS NULL THEN NULL ELSE 76 END WHEN 17 + + COUNT ( * ) * + + 57 THEN + 20 ELSE NULL END * + 59 * + 58 + + 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT ALL 78 * - NULLIF ( + 48, ( + 29 ) ) * - 89 + - 45 + + 34 + - 5 + 63 DIV + - 38
----
333199

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL 78 * - NULLIF ( + 48, ( + 29 ) ) * - 89 + - 45 + + 34 + - 5 + 63 / + - 38
----
333199

query II rowsort
SELECT - - 75 + - 93 AS col1, 37
----
-18
37

query I rowsort
SELECT ALL - 63 AS col2
----
-63

query I rowsort
SELECT - + 0 + - 99 AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT + - 19 + + CAST( - 12 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-9672
SELECT + - 19 + + CAST ( - 12 AS INTEGER )
----
-31

query I rowsort
SELECT - COALESCE ( - 62, ( 22 ) * - - 29 + + 53 ) AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9674
SELECT - 57 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT - 57 + - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 24, 53 AS col2
----
24
53

query I rowsort
SELECT ALL 27 * - ( 9 ) AS col2
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL + MAX( ALL - 73 ) - + 37
----
-110

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL + MAX ( ALL - 73 ) - + 37
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL - 99 - + + MAX( + + 66 ) AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - 99 - + + MAX ( + + 66 ) AS col1
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9679
SELECT + CAST( NULL AS SIGNED ) * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT + CAST ( NULL AS INTEGER ) * + 46
----
NULL

query I rowsort
SELECT ALL + 26 * + - 47 col2
----
-1222

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT DISTINCT + 17 * - SUM( 89 ) * - 27
----
40851

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT + 17 * - SUM ( 89 ) * - 27
----
40851

query I rowsort
SELECT + 55 + + 51 AS col0
----
106

query I rowsort
SELECT + 73 * 5
----
365

onlyif mysql # DIV for integer division: 
query I rowsort label-9684
SELECT DISTINCT 96 DIV + - 20 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT 96 / + - 20 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9685
SELECT + CASE + COUNT( * ) WHEN + 76 + 52 THEN - + CAST( NULL AS SIGNED ) * ( 47 ) + + - 5 + + - SUM( - 64 ) ELSE + 6 END + + + 85 - 87 + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-9685
SELECT + CASE + COUNT ( * ) WHEN + 76 + 52 THEN - + CAST ( NULL AS INTEGER ) * ( 47 ) + + - 5 + + - SUM ( - 64 ) ELSE + 6 END + + + 85 - 87 + + COUNT ( * )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT 27 * - CAST( NULL AS SIGNED ) + 78 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT 27 * - CAST ( NULL AS INTEGER ) + 78 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT 85 - - COUNT( * ) col0
----
86

skipif mysql # not compatible
query I rowsort label-9687
SELECT 85 - - COUNT ( * ) col0
----
86

query I rowsort
SELECT ALL 95 * + 13
----
1235

onlyif mysql # DIV for integer division: 
query I rowsort label-9689
SELECT 92 DIV 60 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9689
SELECT 92 / 60 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT CAST( NULL AS SIGNED ) + + 32 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT CAST ( NULL AS INTEGER ) + + 32 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9691
SELECT DISTINCT COUNT( * ) + - CAST( 28 AS SIGNED ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT COUNT ( * ) + - CAST ( 28 AS INTEGER ) AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9692
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT CAST( NULL AS SIGNED ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT CAST ( NULL AS INTEGER ) * - 64
----
NULL

query I rowsort
SELECT DISTINCT + 47 + + 17 AS col0
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9695
SELECT ALL CAST( NULL AS DECIMAL ) + - 8 * 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL CAST ( NULL AS REAL ) + - 8 * 56 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ( 51 ) * - COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9696
SELECT ( 51 ) * - COUNT ( * ) AS col2
----
-51

query I rowsort
SELECT 52 + ( 93 + - 24 )
----
121

query I rowsort
SELECT DISTINCT 40 + 76
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT 71 + + COUNT( * ) * 36 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-9699
SELECT 71 + + COUNT ( * ) * 36 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL - 30 - MIN( ALL 9 )
----
-39

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL - 30 - MIN ( ALL 9 )
----
-39

query I rowsort
SELECT 42 * + 52
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT DISTINCT - 21 * - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT - 21 * - COUNT ( * )
----
21

query I rowsort
SELECT DISTINCT 4 - 59 * 40 AS col1
----
-2356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9704
SELECT DISTINCT + 57 * + CAST( - 79 AS SIGNED )
----
-4503

skipif mysql # not compatible
query I rowsort label-9704
SELECT DISTINCT + 57 * + CAST ( - 79 AS INTEGER )
----
-4503

query I rowsort
SELECT ALL - 3 * 92 AS col0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT DISTINCT + 48 - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT + 48 - COUNT ( * ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT DISTINCT + 58 * ( + CAST( + 25 AS SIGNED ) ) col0
----
1450

skipif mysql # not compatible
query I rowsort label-9707
SELECT DISTINCT + 58 * ( + CAST ( + 25 AS INTEGER ) ) col0
----
1450

query I rowsort
SELECT - 76
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT + 88 * NULLIF ( - COUNT( * ), 32 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT + 88 * NULLIF ( - COUNT ( * ), 32 ) AS col2
----
-88

query I rowsort
SELECT DISTINCT 80
----
80

query II rowsort
SELECT ALL 31 AS col0, 67 AS col2
----
31
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL + ( + + COUNT( * ) ) * + 43 + COALESCE ( 99, 88, 8 + + 21 - + 53 - 69 ) * + COUNT( + ( - - 86 ) )
----
142

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL + ( + + COUNT ( * ) ) * + 43 + COALESCE ( 99, 88, 8 + + 21 - + 53 - 69 ) * + COUNT ( + ( - - 86 ) )
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT CAST( NULL AS SIGNED ) * + CASE - 44 WHEN - AVG ( + - 51 ) THEN NULL ELSE + 66 / + + 47 END * - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT CAST ( NULL AS INTEGER ) * + CASE - 44 WHEN - AVG ( + - 51 ) THEN NULL ELSE + 66 / + + 47 END * - - 33
----
NULL

query I rowsort
SELECT ALL 87 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT DISTINCT ( + + 34 ) * + - COUNT( * ) + 30 * - COUNT( * ) * - 55 AS col0
----
1616

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT ( + + 34 ) * + - COUNT ( * ) + 30 * - COUNT ( * ) * - 55 AS col0
----
1616

query II rowsort
SELECT - 41, + 33 AS col2
----
-41
33

query I rowsort
SELECT ALL 43 AS col2
----
43

query I rowsort
SELECT ALL 95 AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT CAST( NULL AS SIGNED ) / - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT CAST ( NULL AS INTEGER ) / - 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9720
SELECT 93 AS col2, COUNT( * )
----
93
1

skipif mysql # not compatible
query II rowsort label-9720
SELECT 93 AS col2, COUNT ( * )
----
93
1

query I rowsort
SELECT - 1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9722
SELECT ALL CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 62 + - 23
----
39

query I rowsort
SELECT 61 + - 75
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT ALL - + 81 DIV - 76 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL - + 81 / - 76 AS col2
----
1

query I rowsort
SELECT ALL - + 19 AS col1
----
-19

query I rowsort
SELECT 9 * + 24 AS col1
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9728
SELECT ALL 59 + - 36 + CAST( - 79 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL 59 + - 36 + CAST ( - 79 AS INTEGER )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9729
SELECT + ( 29 ) * + CAST( COUNT( - 31 ) AS SIGNED ) * - 35 * 30 + + 8
----
-30442

skipif mysql # not compatible
query I rowsort label-9729
SELECT + ( 29 ) * + CAST ( COUNT ( - 31 ) AS INTEGER ) * - 35 * 30 + + 8
----
-30442

query I rowsort
SELECT + 75 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL - - 5 + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL - - 5 + + COUNT ( * )
----
6

query I rowsort
SELECT 89 * - + 66
----
-5874

query I rowsort
SELECT + 25 + - - 56 + 58
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT ALL + + 1 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL + + 1 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + - ( + 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT - MAX( DISTINCT 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-9736
SELECT - MAX ( DISTINCT 27 )
----
-27

query I rowsort
SELECT + 9 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT ALL + + 26 * + 8 * - - 72 * + COUNT( * ) * - 56 AS col1
----
-838656

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL + + 26 * + 8 * - - 72 * + COUNT ( * ) * - 56 AS col1
----
-838656

query I rowsort
SELECT ALL - 71 AS col1
----
-71

query I rowsort
SELECT + 32 AS col0
----
32

query I rowsort
SELECT ALL 44 + 13 AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9743
SELECT - 65 AS col0, COUNT( * )
----
-65
1

skipif mysql # not compatible
query II rowsort label-9743
SELECT - 65 AS col0, COUNT ( * )
----
-65
1

query I rowsort
SELECT DISTINCT - + 84 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-9745
SELECT ALL - 48 AS col2, + COUNT( * ) * - - 14 AS col2
----
-48
14

skipif mysql # not compatible
query II rowsort label-9745
SELECT ALL - 48 AS col2, + COUNT ( * ) * - - 14 AS col2
----
-48
14

query I rowsort
SELECT - 32 AS col1
----
-32

query I rowsort
SELECT ALL - 37 AS col0
----
-37

query I rowsort
SELECT + 51
----
51

query I rowsort
SELECT ALL + 64 - 63 * 45 AS col2
----
-2771

query I rowsort
SELECT 22 col0
----
22

query I rowsort
SELECT + 5 AS col1
----
5

query I rowsort
SELECT 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL - 1 - - + COALESCE ( + - COALESCE ( - 82, + + 59 ), - ( + COUNT( * ) ) * NULLIF ( + + 22, + MIN( DISTINCT + 42 ) * + 62 + - + 38 + + SUM( 84 ) ) )
----
81

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL - 1 - - + COALESCE ( + - COALESCE ( - 82, + + 59 ), - ( + COUNT ( * ) ) * NULLIF ( + + 22, + MIN ( DISTINCT + 42 ) * + 62 + - + 38 + + SUM ( 84 ) ) )
----
81

query I rowsort
SELECT 82 * + 36
----
2952

query I rowsort
SELECT 17 * - - 71 * - 36 * - - 87
----
-3780324

query I rowsort
SELECT DISTINCT 65 * - 68 AS col2
----
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT + 87 * + 23 - - 85 - + 59 * - COUNT( * ) col2
----
2145

skipif mysql # not compatible
query I rowsort label-9757
SELECT + 87 * + 23 - - 85 - + 59 * - COUNT ( * ) col2
----
2145

query I rowsort
SELECT 73 AS col1
----
73

query I rowsort
SELECT ALL 64 AS col0
----
64

query I rowsort
SELECT 1 - - 88 col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9761
SELECT 36 DIV + 27
----
1

skipif mysql # not compatible
query I rowsort label-9761
SELECT 36 / + 27
----
1

query I rowsort
SELECT DISTINCT 69
----
69

query I rowsort
SELECT 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL ( + 76 ) - + + NULLIF ( COUNT( * ), - 24 ) + + COUNT( * ) + + 11 * - 99
----
-1013

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL ( + 76 ) - + + NULLIF ( COUNT ( * ), - 24 ) + + COUNT ( * ) + + 11 * - 99
----
-1013

query I rowsort
SELECT 59 AS col1
----
59

query I rowsort
SELECT ALL + 29 * ( 88 )
----
2552

query I rowsort
SELECT ALL 82
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT ( + - COUNT( * ) ) - + COALESCE ( + 31, - COUNT( DISTINCT + 29 ) ) + COUNT( * ) DIV + + 68
----
-32

skipif mysql # not compatible
query I rowsort label-9768
SELECT ( + - COUNT ( * ) ) - + COALESCE ( + 31, - COUNT ( DISTINCT + 29 ) ) + COUNT ( * ) / + + 68
----
-32

query I rowsort
SELECT ALL 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT COUNT( * ) * + 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9770
SELECT COUNT ( * ) * + 87 AS col0
----
87

query I rowsort
SELECT - 86
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT COUNT( * ) - + 19 col1
----
-18

skipif mysql # not compatible
query I rowsort label-9772
SELECT COUNT ( * ) - + 19 col1
----
-18

query I rowsort
SELECT ALL 38 AS col2
----
38

query I rowsort
SELECT - 39
----
-39

query I rowsort
SELECT 89
----
89

query I rowsort
SELECT ALL 41 AS col0
----
41

query I rowsort
SELECT 97 AS col0
----
97

query I rowsort
SELECT ALL 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ( - + 62 ) * - COUNT( * ) * 53 * 90
----
295740

skipif mysql # not compatible
query I rowsort label-9779
SELECT ( - + 62 ) * - COUNT ( * ) * 53 * 90
----
295740

query I rowsort
SELECT ALL 49 AS col0
----
49

query I rowsort
SELECT DISTINCT + 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL 3 * + 46 * + 30 + + + COUNT( * ) + + - 50 col0
----
4091

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL 3 * + 46 * + 30 + + + COUNT ( * ) + + - 50 col0
----
4091

query I rowsort
SELECT + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL 43 + 51 + - + COUNT( * ) * + 47
----
47

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL 43 + 51 + - + COUNT ( * ) * + 47
----
47

query I rowsort
SELECT - - 24 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL + - 66 + COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL + - 66 + COUNT ( * ) AS col1
----
-65

query I rowsort
SELECT - - CASE + 4 WHEN 6 THEN - + NULLIF ( + 2, - + 29 * - + 27 ) WHEN 61 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT DISTINCT + ( - 20 ) + - COALESCE ( - - 0, 5, 98 DIV - 54 + + + 40 + + 5 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT + ( - 20 ) + - COALESCE ( - - 0, 5, 98 / - 54 + + + 40 + + 5 ) AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9789
SELECT ALL + 61 * - + NULLIF ( - + NULLIF ( 28, NULLIF ( - - 78, - 29 ) ), + + CASE + 96 WHEN ( - 88 ) THEN - COUNT( * ) / + 82 ELSE + - COUNT( * ) END ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL + 61 * - + NULLIF ( - + NULLIF ( 28, NULLIF ( - - 78, - 29 ) ), + + CASE + 96 WHEN ( - 88 ) THEN - COUNT ( * ) / + 82 ELSE + - COUNT ( * ) END ) + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 72
----
72

query I rowsort
SELECT - 65
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9792
SELECT + COUNT( 71 ) * - + 23 DIV + COUNT( * ) + - SUM( 70 )
----
-93

skipif mysql # not compatible
query I rowsort label-9792
SELECT + COUNT ( 71 ) * - + 23 / + COUNT ( * ) + - SUM ( 70 )
----
-93

query I rowsort
SELECT + 67 * 70 AS col1
----
4690

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9794
SELECT - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT ( + 3 ) * - - NULLIF ( + 86, - 31 ) + - 7 - + COUNT( * ) + + - 82 * 34
----
-2538

skipif mysql # not compatible
query I rowsort label-9796
SELECT ( + 3 ) * - - NULLIF ( + 86, - 31 ) + - 7 - + COUNT ( * ) + + - 82 * 34
----
-2538

query I rowsort
SELECT DISTINCT - ( - + 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL 73 * + 46 + + 8 + - 98 * + 37 - - + COUNT( * ) AS col1
----
-259

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL 73 * + 46 + + 8 + - 98 * + 37 - - + COUNT ( * ) AS col1
----
-259

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9799
SELECT ALL - 46 * ( - 88 ) * - CASE - 65 WHEN COUNT( * ) * + - 83 THEN - 97 ELSE NULL END + - COALESCE ( + 35, + 39 * - COUNT( DISTINCT + 94 ) / - COUNT( * ), + 29, + - AVG ( ALL CAST( NULL AS DECIMAL ) ) ) AS col2, - 54 + + CASE - 57 WHEN - + 31 + - 20 + + + 47 - - 95 THEN 93 * + 67 END * 31 * + 81
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9799
SELECT ALL - 46 * ( - 88 ) * - CASE - 65 WHEN COUNT ( * ) * + - 83 THEN - 97 ELSE NULL END + - COALESCE ( + 35, + 39 * - COUNT ( DISTINCT + 94 ) / - COUNT ( * ), + 29, + - AVG ( ALL CAST ( NULL AS REAL ) ) ) AS col2, - 54 + + CASE - 57 WHEN - + 31 + - 20 + + + 47 - - 95 THEN 93 * + 67 END * 31 * + 81
----
NULL
NULL

query I rowsort
SELECT + 38 AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9801
SELECT ALL 72 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL 72 / 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT DISTINCT ( - 43 ) * - CASE - - 40 WHEN + + 46 THEN - 34 * 1 * 76 + - - 48 END / + 7 + - + COUNT( * ) * + 34 - + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT ( - 43 ) * - CASE - - 40 WHEN + + 46 THEN - 34 * 1 * 76 + - - 48 END / + 7 + - + COUNT ( * ) * + 34 - + 54
----
NULL

query I rowsort
SELECT ALL + 54 * - 65 AS col2
----
-3510

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL + COUNT( * ) * - 52 - - COUNT( * ) - - 66 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL + COUNT ( * ) * - 52 - - COUNT ( * ) - - 66 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9805
SELECT ALL - - CAST( NULL AS SIGNED ) * + NULLIF ( + + ( + 66 ), 75 * - 70 * - ( + ( + 20 ) ) ) + + 15 + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL - - CAST ( NULL AS INTEGER ) * + NULLIF ( + + ( + 66 ), 75 * - 70 * - ( + ( + 20 ) ) ) + + 15 + - 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9806
SELECT + 52, - COALESCE ( - COUNT( * ), 96, - - 88 DIV + NULLIF ( + 29, 66 ) ) * + MIN( + 85 ) AS col0
----
52
85

skipif mysql # not compatible
query II rowsort label-9806
SELECT + 52, - COALESCE ( - COUNT ( * ), 96, - - 88 / + NULLIF ( + 29, 66 ) ) * + MIN ( + 85 ) AS col0
----
52
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT - SUM( ALL - + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT - SUM ( ALL - + 29 )
----
29

query I rowsort
SELECT ALL - 6 * 48 AS col1
----
-288

query I rowsort
SELECT 91 + + 93
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT 27 * - COUNT( * ) * 73 AS col2
----
-1971

skipif mysql # not compatible
query I rowsort label-9810
SELECT 27 * - COUNT ( * ) * 73 AS col2
----
-1971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9811
SELECT ALL - CASE + 65 WHEN - 88 + - 20 + 95 * + CAST( NULL AS SIGNED ) * - + MIN( + 81 ) * 47 / - 1 THEN NULL WHEN + + 67 / - 46 + + COUNT( * ) THEN + 65 + - + 68 - - ( CAST( MAX( + 2 ) AS SIGNED ) ) + 7 + ( 45 ) / + 13 / + CASE 14 WHEN 61 THEN - 47 * 78 * 13 + COUNT( * ) + 60 WHEN + - CASE 94 WHEN 2 * 97 * 48 THEN - 85 ELSE - + 90 * - COUNT( * ) * + 52 END * - 42 THEN COUNT( * ) + + + 83 * - 83 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL - CASE + 65 WHEN - 88 + - 20 + 95 * + CAST ( NULL AS INTEGER ) * - + MIN ( + 81 ) * 47 / - 1 THEN NULL WHEN + + 67 / - 46 + + COUNT ( * ) THEN + 65 + - + 68 - - ( CAST ( MAX ( + 2 ) AS INTEGER ) ) + 7 + ( 45 ) / + 13 / + CASE 14 WHEN 61 THEN - 47 * 78 * 13 + COUNT ( * ) + 60 WHEN + - CASE 94 WHEN 2 * 97 * 48 THEN - 85 ELSE - + 90 * - COUNT ( * ) * + 52 END * - 42 THEN COUNT ( * ) + + + 83 * - 83 END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT - 21 * + - ( + 56 ) + + - COUNT( * ) + 81 * - 79 * + 30
----
-190795

skipif mysql # not compatible
query I rowsort label-9812
SELECT - 21 * + - ( + 56 ) + + - COUNT ( * ) + 81 * - 79 * + 30
----
-190795

query I rowsort
SELECT ALL + CASE - + 70 WHEN - 9 * + - 76 / 52 THEN NULL WHEN - - 46 * + COALESCE ( 4, - 78, - ( - 23 ) ) THEN - 51 END
----
NULL

query I rowsort
SELECT + 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT + COUNT ( * )
----
1

query I rowsort
SELECT ALL + 81 AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT - 99 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT - 99 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 31 AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9819
SELECT ALL + CASE + ( - 74 ) WHEN - + 86 + + + 24 + + COUNT( + - 37 ) THEN NULL WHEN - 65 + 45 DIV + 4 THEN + 92 ELSE - 16 DIV 81 * - 32 END col1
----
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL + CASE + ( - 74 ) WHEN - + 86 + + + 24 + + COUNT ( + - 37 ) THEN NULL WHEN - 65 + 45 / + 4 THEN + 92 ELSE - 16 / 81 * - 32 END col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ALL 74 col2
----
74

query I rowsort
SELECT ALL 46 * - 65 AS col1
----
-2990

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT - 52 + - 78 + + COALESCE ( + 22, - - 33 DIV + 93 ) col2
----
-108

skipif mysql # not compatible
query I rowsort label-9823
SELECT - 52 + - 78 + + COALESCE ( + 22, - - 33 / + 93 ) col2
----
-108

query I rowsort
SELECT ALL COALESCE ( 21, - - 70 - 56, - 48 + 45 * + - 76 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9825
SELECT - 63 DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9825
SELECT - 63 / - 68 AS col0
----
0

query I rowsort
SELECT + 69 * - - 43 * + - 58
----
-172086

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT - 82 * 35 * + MIN( + 46 ) + 5 * - COUNT( * ) + + 75 * 21 + + COUNT( * ) AS col2
----
-130449

skipif mysql # not compatible
query I rowsort label-9827
SELECT - 82 * 35 * + MIN ( + 46 ) + 5 * - COUNT ( * ) + + 75 * 21 + + COUNT ( * ) AS col2
----
-130449

query I rowsort
SELECT 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT - MIN( - - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-9829
SELECT - MIN ( - - 90 )
----
-90

query I rowsort
SELECT ALL - 44 + + 70
----
26

query I rowsort
SELECT 31
----
31

query I rowsort
SELECT 66
----
66

query II rowsort
SELECT - 33 + - 20 * - - 81 AS col2, 52
----
-1653
52

query I rowsort
SELECT - 92
----
-92

query I rowsort
SELECT ALL 4 * - 14
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT - COUNT( * ) + - + COUNT( 96 )
----
-2

skipif mysql # not compatible
query I rowsort label-9836
SELECT - COUNT ( * ) + - + COUNT ( 96 )
----
-2

query I rowsort
SELECT ALL 80 + 86 AS col0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9838
SELECT - COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL + COUNT( * ) + - COUNT( * ) + + 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + + 35 AS col2
----
35

query II rowsort
SELECT DISTINCT + - 97 + - COALESCE ( - 54, 65, - 51 ) AS col2, 74 + - 55 AS col2
----
-43
19

query I rowsort
SELECT ALL - 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT + 80 + + + 64 - + NULLIF ( - 87, 60 ) - - - COUNT( * ) * 2 AS col1
----
229

skipif mysql # not compatible
query I rowsort label-9842
SELECT + 80 + + + 64 - + NULLIF ( - 87, 60 ) - - - COUNT ( * ) * 2 AS col1
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + - MIN( + - 56 ) * - - 49 + + 13 col2
----
2757

skipif mysql # not compatible
query I rowsort label-9843
SELECT + - MIN ( + - 56 ) * - - 49 + + 13 col2
----
2757

query III rowsort
SELECT ALL 48 AS col1, + 35 + - 81, - 82 AS col2
----
48
-46
-82

query I rowsort
SELECT - + 26
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT + + CAST( NULL AS SIGNED ) * + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT + + CAST ( NULL AS INTEGER ) * + - 41
----
NULL

query I rowsort
SELECT - 9 AS col1
----
-9

query I rowsort
SELECT - 21
----
-21

query I rowsort
SELECT ALL 32 col1
----
32

query I rowsort
SELECT + 51 - - ( + - CASE 77 WHEN + 18 THEN - 9 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT - 71 AS col1
----
-71

query I rowsort
SELECT - 93
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT + 64 - + COUNT( * ) * 27
----
37

skipif mysql # not compatible
query I rowsort label-9853
SELECT + 64 - + COUNT ( * ) * 27
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL 4 * - 12 + COALESCE ( - MIN( - 23 ), + - 24 ) * + 6 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL 4 * - 12 + COALESCE ( - MIN ( - 23 ), + - 24 ) * + 6 AS col1
----
90

query I rowsort
SELECT + + 95 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT ALL + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL + COUNT ( * )
----
1

query I rowsort
SELECT + - ( 80 ) AS col2
----
-80

query I rowsort
SELECT ALL + 28
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9859
SELECT + + 45 DIV 68 DIV - 49 * - 84 + 65 AS col0, - COALESCE ( + 42, - COUNT( * ) * + - MAX( DISTINCT - 19 ) DIV 70 DIV + COUNT( * ) + 89 + - - MIN( DISTINCT + 5 ) ) * + 2 + 25
----
65
-59

skipif mysql # not compatible
query II rowsort label-9859
SELECT + + 45 / 68 / - 49 * - 84 + 65 AS col0, - COALESCE ( + 42, - COUNT ( * ) * + - MAX ( DISTINCT - 19 ) / 70 / + COUNT ( * ) + 89 + - - MIN ( DISTINCT + 5 ) ) * + 2 + 25
----
65
-59

query I rowsort
SELECT DISTINCT + - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ALL + + COALESCE ( COUNT( * ), - 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL + + COALESCE ( COUNT ( * ), - 19 ) AS col1
----
1

query I rowsort
SELECT + 10 + + - 6 * + 45 * + 16 + + 13 col2
----
-4297

query I rowsort
SELECT ALL + 77 AS col1
----
77

query I rowsort
SELECT + 17
----
17

query I rowsort
SELECT + 23 + 66
----
89

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9866
SELECT + - 51 AS col0, - CAST( NULL AS SIGNED ) * - 53 + + CAST( - 63 AS DECIMAL ) AS col0
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-9866
SELECT + - 51 AS col0, - CAST ( NULL AS INTEGER ) * - 53 + + CAST ( - 63 AS REAL ) AS col0
----
-51
NULL

query I rowsort
SELECT - 37 * 74
----
-2738

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL + - NULLIF ( + 17, 88 - - 17 + + + 95 / COALESCE ( - - COALESCE ( + 14, + 22 ), - 13, 33 ) * 45 * + COUNT( * ) * 31 )
----
-17

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + - NULLIF ( + 17, 88 - - 17 + + + 95 / COALESCE ( - - COALESCE ( + 14, + 22 ), - 13, 33 ) * 45 * + COUNT ( * ) * 31 )
----
-17

query I rowsort
SELECT + 0 AS col1
----
0

query I rowsort
SELECT - 54 * + 29 + - 97 AS col2
----
-1663

query I rowsort
SELECT ( - 9 ) AS col2
----
-9

query I rowsort
SELECT ALL + 72
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9873
SELECT ALL + ( + 98 ) DIV 83
----
1

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL + ( + 98 ) / 83
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT + 82 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT + 82 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 46 col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9876
SELECT CASE 75 WHEN - - 41 THEN 43 END AS col1, COUNT( * ) + - ( + CAST( NULL AS SIGNED ) ) / 87
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9876
SELECT CASE 75 WHEN - - 41 THEN 43 END AS col1, COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) / 87
----
NULL
NULL

query I rowsort
SELECT ALL + 91 col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9878
SELECT + 16, 50 * + - ( SUM( + 22 ) ) col2
----
16
-1100

skipif mysql # not compatible
query II rowsort label-9878
SELECT + 16, 50 * + - ( SUM ( + 22 ) ) col2
----
16
-1100

query I rowsort
SELECT ALL + 62 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT ALL 91 * + COUNT( * ) + + MAX( 87 ) + COUNT( * ) AS col0
----
179

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL 91 * + COUNT ( * ) + + MAX ( 87 ) + COUNT ( * ) AS col0
----
179

query I rowsort
SELECT - 52 * - - 15
----
-780

query II rowsort
SELECT + 22 * 66, - 91 AS col0
----
1452
-91

query I rowsort
SELECT NULLIF ( + 99, 41 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 79 AS col0
----
79

query I rowsort
SELECT ALL - 47 * 80 * - 50 + 69 + + + 97 + 20
----
188186

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - SUM( - 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9887
SELECT - SUM ( - 56 ) AS col0
----
56

query I rowsort
SELECT - 92 + - 99 AS col0
----
-191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9890
SELECT COUNT ( * )
----
1

query I rowsort
SELECT ALL + 70 * 52 + + 56 AS col2
----
3696

query I rowsort
SELECT DISTINCT + 67 + + 94 + - - 97
----
258

query I rowsort
SELECT ALL - 13 + 5
----
-8

query I rowsort
SELECT ALL ( - - 62 ) col1
----
62

query I rowsort
SELECT 27
----
27

query II rowsort
SELECT - - 38 AS col0, 93 + - 75 col0
----
38
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9897
SELECT DISTINCT - COUNT( * ) + + - 44 * - - 13 - - NULLIF ( 96, + ( CAST( NULL AS SIGNED ) ) / 54 ) - - 97 + 84 * 48 + + 62 * - 20 * + + 33 - 3 AS col2
----
-37271

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT - COUNT ( * ) + + - 44 * - - 13 - - NULLIF ( 96, + ( CAST ( NULL AS INTEGER ) ) / 54 ) - - 97 + 84 * 48 + + 62 * - 20 * + + 33 - 3 AS col2
----
-37271

query I rowsort
SELECT - 22 * 26
----
-572

query I rowsort
SELECT - 35 + 61 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9900
SELECT - COUNT ( * )
----
-1

query I rowsort
SELECT - 49
----
-49

query I rowsort
SELECT - 49 + 42 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL + 79 * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL + 79 * COUNT ( * )
----
79

query I rowsort
SELECT ALL - 9 - + 72 AS col2
----
-81

query I rowsort
SELECT + ( + - 86 ) AS col1
----
-86

query I rowsort
SELECT ALL - 97
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9907
SELECT + 83, + SUM( - - 41 ) * COALESCE ( - + 8, - 87, - 55 * + - 14 ) col2
----
83
-328

skipif mysql # not compatible
query II rowsort label-9907
SELECT + 83, + SUM ( - - 41 ) * COALESCE ( - + 8, - 87, - 55 * + - 14 ) col2
----
83
-328

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9908
SELECT ALL + 18 * - 49 + - + ( COUNT( * ) ) * - 59 * - COUNT( * ) + - 28 * 73 + + COUNT( * ) DIV - COUNT( * ) + 8, + 94 + + 79 AS col1
----
-2978
173

skipif mysql # not compatible
query II rowsort label-9908
SELECT ALL + 18 * - 49 + - + ( COUNT ( * ) ) * - 59 * - COUNT ( * ) + - 28 * 73 + + COUNT ( * ) / - COUNT ( * ) + 8, + 94 + + 79 AS col1
----
-2978
173

query I rowsort
SELECT - - 87 AS col2
----
87

query I rowsort
SELECT + 98 + 70 AS col0
----
168

query I rowsort
SELECT - 73 AS col0
----
-73

query I rowsort
SELECT + 84
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9913
SELECT - - 21 + 84 + + 75 * + NULLIF ( COUNT( * ), 78 ), 11 col0
----
180
11

skipif mysql # not compatible
query II rowsort label-9913
SELECT - - 21 + 84 + + 75 * + NULLIF ( COUNT ( * ), 78 ), 11 col0
----
180
11

query I rowsort
SELECT 44
----
44

query I rowsort
SELECT 82 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9916
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL - 72
----
-72

query I rowsort
SELECT ALL - 75 AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT 10 + + 47 + - 27 + - ( - - 94 ) * + - 58 + + 1 * 77 DIV NULLIF ( 48, - 86 ) AS col0
----
5483

skipif mysql # not compatible
query I rowsort label-9919
SELECT 10 + + 47 + - 27 + - ( - - 94 ) * + - 58 + + 1 * 77 / NULLIF ( 48, - 86 ) AS col0
----
5483

query I rowsort
SELECT ALL - 46 AS col2
----
-46

query I rowsort
SELECT DISTINCT - 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT COUNT( * ) * - 9 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9922
SELECT COUNT ( * ) * - 9 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT ALL SUM( + 76 ) * 93 AS col0
----
7068

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL SUM ( + 76 ) * 93 AS col0
----
7068

query I rowsort
SELECT ALL - 65
----
-65

query I rowsort
SELECT + 13
----
13

query I rowsort
SELECT + 16
----
16

query I rowsort
SELECT + 71 AS col2
----
71

query I rowsort
SELECT 0
----
0

query I rowsort
SELECT 5
----
5

query I rowsort
SELECT + 77 AS col1
----
77

query I rowsort
SELECT DISTINCT 40 + - + 42 + 17 + + COALESCE ( - 60, - 20 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL - COUNT ( * )
----
-1

query I rowsort
SELECT + 82
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-9934
SELECT COUNT( * ) + - 6 AS col1, 22 AS col1
----
-5
22

skipif mysql # not compatible
query II rowsort label-9934
SELECT COUNT ( * ) + - 6 AS col1, 22 AS col1
----
-5
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9935
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 93 AS col0
----
NULL

query I rowsort
SELECT 94 AS col1
----
94

query I rowsort
SELECT ALL + 81 + + + 90 AS col1
----
171

query I rowsort
SELECT DISTINCT 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT COUNT( * ) * + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9939
SELECT COUNT ( * ) * + ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT - 47
----
-47

query I rowsort
SELECT 13
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9942
SELECT 9 * SUM( 80 ) + + + ( CASE 84 WHEN + - 14 THEN - 25 + - 45 + - 86 * 24 WHEN + COUNT( * ) THEN NULL END ) AS col2, COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9942
SELECT 9 * SUM ( 80 ) + + + ( CASE 84 WHEN + - 14 THEN - 25 + - 45 + - 86 * 24 WHEN + COUNT ( * ) THEN NULL END ) AS col2, COUNT ( * ) col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT 53 * + - 32 * - + MIN( + 45 ) AS col2
----
76320

skipif mysql # not compatible
query I rowsort label-9943
SELECT 53 * + - 32 * - + MIN ( + 45 ) AS col2
----
76320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9944
SELECT + COUNT( * ) * + COUNT( * ) DIV ( + 26 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9944
SELECT + COUNT ( * ) * + COUNT ( * ) / ( + 26 ) AS col2
----
0

query I rowsort
SELECT ( + + 5 ) * - 67
----
-335

query I rowsort
SELECT - 28 + + 55 + - 97 * - 32 AS col2
----
3131

query I rowsort
SELECT DISTINCT 98 * + + 3 * + 10 + 67
----
3007

query I rowsort
SELECT - - 32
----
32

query I rowsort
SELECT DISTINCT 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT COUNT ( * )
----
1

query I rowsort
SELECT ALL + 66 AS col2
----
66

query I rowsort
SELECT ALL 45 col0
----
45

query I rowsort
SELECT - 56
----
-56

query I rowsort
SELECT ALL - 68
----
-68

query I rowsort
SELECT DISTINCT 84 AS col0
----
84

query I rowsort
SELECT - 6 col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9957
SELECT 1 + CASE + - 99 WHEN + COALESCE ( + - ( - + 16 ), + COUNT( * ) ) THEN NULL WHEN - 60 * - COUNT( * ) THEN 70 * - COUNT( * ) ELSE NULL END * + CAST( NULL AS SIGNED ) / - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT 1 + CASE + - 99 WHEN + COALESCE ( + - ( - + 16 ), + COUNT ( * ) ) THEN NULL WHEN - 60 * - COUNT ( * ) THEN 70 * - COUNT ( * ) ELSE NULL END * + CAST ( NULL AS INTEGER ) / - 44 AS col1
----
NULL

query I rowsort
SELECT ALL 68 col0
----
68

query I rowsort
SELECT - CASE - + 63 WHEN + AVG ( + 68 ) THEN NULL WHEN 36 + - - 55 * - 28 + + 39 THEN - - 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT - MIN( 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-9960
SELECT - MIN ( 81 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT 50 - SUM( DISTINCT 3 ) + + 48
----
95

skipif mysql # not compatible
query I rowsort label-9962
SELECT 50 - SUM ( DISTINCT 3 ) + + 48
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9963
SELECT + COUNT( * ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-9963
SELECT + COUNT ( * ) / + 59
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9964
SELECT ALL + - 0 * - 77 DIV - 63 AS col0, + 13 AS col2
----
0
13

skipif mysql # not compatible
query II rowsort label-9964
SELECT ALL + - 0 * - 77 / - 63 AS col0, + 13 AS col2
----
0
13

query I rowsort
SELECT ALL + 83
----
83

query I rowsort
SELECT - - 27 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9967
SELECT ALL 71 + + CAST( + 28 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL 71 + + CAST ( + 28 AS INTEGER )
----
99

query I rowsort
SELECT 47 AS col0
----
47

query I rowsort
SELECT ALL + 84 * 45 * 39 AS col0
----
147420

query I rowsort
SELECT 0 * 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT COUNT( * ) + - 96
----
-95

skipif mysql # not compatible
query I rowsort label-9971
SELECT COUNT ( * ) + - 96
----
-95

query I rowsort
SELECT + 11
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT 45 DIV 72 DIV + + 1 * + + 60 DIV - + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9973
SELECT 45 / 72 / + + 1 * + + 60 / - + 55 AS col2
----
0

query I rowsort
SELECT 34 AS col0
----
34

query I rowsort
SELECT + 66 AS col2
----
66

query I rowsort
SELECT 26 * + 80
----
2080

onlyif mysql # aggregate syntax: 
query II rowsort label-9977
SELECT 77, COUNT( * ) - 53 AS col2
----
77
-52

skipif mysql # not compatible
query II rowsort label-9977
SELECT 77, COUNT ( * ) - 53 AS col2
----
77
-52

query I rowsort
SELECT ALL - 0 col0
----
0

query I rowsort
SELECT ALL - ( 4 ) + 33
----
29

query I rowsort
SELECT 53
----
53

query II rowsort
SELECT + 77, + 57 AS col2
----
77
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT ALL 81 + - + COUNT( - 57 ) col0
----
80

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL 81 + - + COUNT ( - 57 ) col0
----
80

query I rowsort
SELECT + 80 col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL - CAST( - 37 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - CAST ( - 37 AS INTEGER )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL 57 + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL 57 + COUNT ( * )
----
58

query II rowsort
SELECT + 35 AS col1, - 2
----
35
-2

query II rowsort
SELECT ALL - 32 AS col2, 38
----
-32
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT COUNT( * ) + 61
----
62

skipif mysql # not compatible
query I rowsort label-9988
SELECT COUNT ( * ) + 61
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9989
SELECT ( - COUNT( * ) ) * COUNT( * ) AS col0, 43 * + 37
----
-1
1591

skipif mysql # not compatible
query II rowsort label-9989
SELECT ( - COUNT ( * ) ) * COUNT ( * ) AS col0, 43 * + 37
----
-1
1591

query I rowsort
SELECT 85
----
85

query I rowsort
SELECT ALL 21 - 39 * 84
----
-3255

query I rowsort
SELECT 90
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9993
SELECT + 4 - - SUM( + + 9 ), - 11 AS col1
----
13
-11

skipif mysql # not compatible
query II rowsort label-9993
SELECT + 4 - - SUM ( + + 9 ), - 11 AS col1
----
13
-11

query I rowsort
SELECT 68 * - 26
----
-1768

query I rowsort
SELECT ALL 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT 55 * + MIN( + + 46 )
----
2530

skipif mysql # not compatible
query I rowsort label-9996
SELECT 55 * + MIN ( + + 46 )
----
2530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9997
SELECT DISTINCT CAST( - COALESCE ( COUNT( * ), 97 / - COUNT( * ) ) AS SIGNED ) * + - COUNT( + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT CAST ( - COALESCE ( COUNT ( * ), 97 / - COUNT ( * ) ) AS INTEGER ) * + - COUNT ( + 55 )
----
1

query I rowsort
SELECT ALL 87 - - + 34
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9999
SELECT + COUNT ( * )
----
1

