sqllogictest
Artifact Content
Not logged in

Artifact 9ea9fa00c99dec88a4d814f5f009e9009599f0b7:


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