hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL + + ( + 60 ) - - - ( COUNT( * ) ) * - + 91 col0
----
151

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL + + ( + 60 ) - - - ( COUNT ( * ) ) * - + 91 col0
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1
SELECT DISTINCT + MIN( DISTINCT - 72 ) DIV 63
----
-1

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT + MIN ( DISTINCT - 72 ) / 63
----
-1

query I rowsort
SELECT - 83 + + 24
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT - 0 DIV + + 90
----
0

skipif mysql # not compatible
query I rowsort label-3
SELECT - 0 / + + 90
----
0

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

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

query I rowsort
SELECT - 47 * - 19
----
893

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT + SUM( DISTINCT + NULLIF ( - 31, + 81 - 23 ) ) + + ( - 55 )
----
-86

skipif mysql # not compatible
query I rowsort label-6
SELECT + SUM ( DISTINCT + NULLIF ( - 31, + 81 - 23 ) ) + + ( - 55 )
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT ALL COALESCE ( - 82, + 44 + ( - 75 ) DIV + 14 * + 73, - 39 * + 2, + - 55 )
----
-82

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL COALESCE ( - 82, + 44 + ( - 75 ) / + 14 * + 73, - 39 * + 2, + - 55 )
----
-82

query I rowsort
SELECT + 34 + + 38 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT - MAX( ALL + 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9
SELECT - MAX ( ALL + 89 ) AS col1
----
-89

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

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

query I rowsort
SELECT - 81 - ( + 31 )
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-12
SELECT DISTINCT ( CAST( 82 AS SIGNED ) ) + 63 * + 14 + + + 97 AS col1
----
1061

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT ( CAST ( 82 AS INTEGER ) ) + 63 * + 14 + + + 97 AS col1
----
1061

query I rowsort
SELECT - 57 - + + 49 AS col0
----
-106

query II rowsort
SELECT 81 AS col1, - 37 + - 51 AS col2
----
81
-88

query I rowsort
SELECT + 74 * + 78 AS col1
----
5772

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT + CASE - + 96 WHEN - 83 + - 57 THEN 25 + COUNT( * ) * SUM( 94 ) ELSE + - 20 + 31 + + 76 * + 40 * + 63 END + - 64 AS col2
----
191467

skipif mysql # not compatible
query I rowsort label-16
SELECT + CASE - + 96 WHEN - 83 + - 57 THEN 25 + COUNT ( * ) * SUM ( 94 ) ELSE + - 20 + 31 + + 76 * + 40 * + 63 END + - 64 AS col2
----
191467

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT DISTINCT + 39 + 30 * + COUNT( * ) * - MAX( + ( + 21 ) )
----
-591

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT + 39 + 30 * + COUNT ( * ) * - MAX ( + ( + 21 ) )
----
-591

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

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL + 98 * 98 + COUNT ( * ) AS col1
----
9605

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT + 48 * - MIN( ALL - CASE - 34 WHEN - - ( - 76 ) THEN NULL ELSE 70 END ) AS col2
----
3360

skipif mysql # not compatible
query I rowsort label-19
SELECT + 48 * - MIN ( ALL - CASE - 34 WHEN - - ( - 76 ) THEN NULL ELSE 70 END ) AS col2
----
3360

query I rowsort
SELECT ALL + - NULLIF ( - 63, + - 13 + - + 74 + AVG ( DISTINCT 0 ) ) AS col1
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-21
SELECT ALL - 19 * - 76 * 33 + 15 DIV - + ( - 82 ) col1, 46 AS col0
----
47652
46

skipif mysql # not compatible
query II rowsort label-21
SELECT ALL - 19 * - 76 * 33 + 15 / - + ( - 82 ) col1, 46 AS col0
----
47652
46

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-23
SELECT ALL - 69 * - 28 * + 26 * + ( - AVG ( - 69 ) ) + + 73 + + COUNT( 85 ) - - + 17 / + + 82 + + - 15 + + NULLIF ( + 71, CAST( - 62 AS SIGNED ) ) * 95 + COALESCE ( + 25, - + 23 + - COUNT( * ) ) - CASE 66 WHEN - + 18 + - COUNT( * ) THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN - COUNT( * ) END + + 16 + - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL - 69 * - 28 * + 26 * + ( - AVG ( - 69 ) ) + + 73 + + COUNT ( 85 ) - - + 17 / + + 82 + + - 15 + + NULLIF ( + 71, CAST ( - 62 AS INTEGER ) ) * 95 + COALESCE ( + 25, - + 23 + - COUNT ( * ) ) - CASE 66 WHEN - + 18 + - COUNT ( * ) THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) END + + 16 + - 81 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-24
SELECT + + 44 DIV 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-24
SELECT + + 44 / 59 AS col0
----
0

query I rowsort
SELECT DISTINCT 94 * 7 + - - 26 AS col2
----
684

query II rowsort
SELECT ALL + 31 AS col2, + 51 col1
----
31
51

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT - 11 + COUNT( * ) * 1 + - - 42 col1
----
32

skipif mysql # not compatible
query I rowsort label-27
SELECT - 11 + COUNT ( * ) * 1 + - - 42 col1
----
32

query I rowsort
SELECT + 50 * - 79
----
-3950

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

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT DISTINCT - 97 * 79 - + 36 * - COUNT( * ) + - - 72
----
-7555

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT - 97 * 79 - + 36 * - COUNT ( * ) + - - 72
----
-7555

onlyif mysql # aggregate syntax: 
query II rowsort label-31
SELECT ALL - 54 * - - 46 * - COUNT( * ) * - - 23 - + 60, + 33 AS col2
----
57072
33

skipif mysql # not compatible
query II rowsort label-31
SELECT ALL - 54 * - - 46 * - COUNT ( * ) * - - 23 - + 60, + 33 AS col2
----
57072
33

query II rowsort
SELECT 44, + 52 AS col1
----
44
52

query I rowsort
SELECT ALL - 89 * + + 15 + - - 52 - 22 AS col0
----
-1305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-34
SELECT - + 37 * + 23 * 29 DIV + COUNT( * )
----
-24679

skipif mysql # not compatible
query I rowsort label-34
SELECT - + 37 * + 23 * 29 / + COUNT ( * )
----
-24679

query I rowsort
SELECT DISTINCT + 31 * - 68
----
-2108

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT SUM( DISTINCT + ( - 63 ) ) * + 30 * - 13 + 98 - + - COUNT( * ) AS col0
----
24669

skipif mysql # not compatible
query I rowsort label-36
SELECT SUM ( DISTINCT + ( - 63 ) ) * + 30 * - 13 + 98 - + - COUNT ( * ) AS col0
----
24669

query I rowsort
SELECT + NULLIF ( + 96, 21 + - + COALESCE ( ( - - 8 ), - 21 ) ) col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - - 4 * + - SUM( - 51 ) + + 21 AS col1
----
225

skipif mysql # not compatible
query I rowsort label-38
SELECT - - 4 * + - SUM ( - 51 ) + + 21 AS col1
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-39
SELECT + CAST( + + 71 AS SIGNED ) + 60 + + NULLIF ( - + 91, 3 ) + 95 * + 81 - - + ( - 28 )
----
7707

skipif mysql # not compatible
query I rowsort label-39
SELECT + CAST ( + + 71 AS INTEGER ) + 60 + + NULLIF ( - + 91, 3 ) + 95 * + 81 - - + ( - 28 )
----
7707

query I rowsort
SELECT + 88 * 26 * - 91 * - NULLIF ( + + 24, 80 + + ( + 69 ) ) AS col0
----
4996992

query I rowsort
SELECT - 23 * 54
----
-1242

query I rowsort
SELECT ALL COALESCE ( - - 72, - - 52 * + COALESCE ( + 52, + + 1 ) + - + 66 ) * 29 col0
----
2088

onlyif mysql # aggregate syntax: 
query II rowsort label-43
SELECT DISTINCT COUNT( * ) AS col2, + 0 * - - 97 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-43
SELECT DISTINCT COUNT ( * ) AS col2, + 0 * - - 97 AS col2
----
1
0

query I rowsort
SELECT ALL - 70 + - 6 AS col1
----
-76

query I rowsort
SELECT - 17 - - 39 AS col0
----
22

query I rowsort
SELECT - 93 + - 92
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-47
SELECT - CAST( NULL AS SIGNED ) AS col1, - 77 AS col0
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-47
SELECT - CAST ( NULL AS INTEGER ) AS col1, - 77 AS col0
----
NULL
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT - 11 DIV + - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-48
SELECT - 11 / + - 57 AS col2
----
0

query I rowsort
SELECT - 81 + + 84 - + + 4
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT - MIN( DISTINCT + - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-50
SELECT - MIN ( DISTINCT + - 45 ) AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-51
SELECT - 64, - 57 * - - 60 DIV COUNT( * ) AS col2
----
-64
-3420

skipif mysql # not compatible
query II rowsort label-51
SELECT - 64, - 57 * - - 60 / COUNT ( * ) AS col2
----
-64
-3420

query I rowsort
SELECT - 57 + - + 14 * - 30 AS col0
----
363

query I rowsort
SELECT + 63 - 74 + 65
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-54
SELECT ALL - 98 * - CAST( + 76 AS SIGNED ) AS col1
----
7448

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL - 98 * - CAST ( + 76 AS INTEGER ) AS col1
----
7448

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT + 81 DIV + 24
----
3

skipif mysql # not compatible
query I rowsort label-55
SELECT + 81 / + 24
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-56
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 32
----
NULL
32

skipif mysql # not compatible
query II rowsort label-56
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 32
----
NULL
32

query I rowsort
SELECT - 37 + + - 93
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL + 70 * - 45 * - COUNT( * ) + 75 * + 54
----
7200

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL + 70 * - 45 * - COUNT ( * ) + 75 * + 54
----
7200

query I rowsort
SELECT - NULLIF ( - 48, - + 68 + + 63 + - 9 )
----
48

query I rowsort
SELECT DISTINCT + 48 + + + 99 * + 59 AS col1
----
5889

query I rowsort
SELECT - - 15 * + 47 AS col1
----
705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-62
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 37 + - CASE + 70 WHEN + 80 THEN COUNT( * ) / + + NULLIF ( + 30, + ( - + 5 ) + + + 35 / + 93 ) - + COUNT( * ) + - 1 WHEN NULLIF ( + - 32, + 46 ) THEN NULL ELSE NULL END - + - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 37 + - CASE + 70 WHEN + 80 THEN COUNT ( * ) / + + NULLIF ( + 30, + ( - + 5 ) + + + 35 / + 93 ) - + COUNT ( * ) + - 1 WHEN NULLIF ( + - 32, + 46 ) THEN NULL ELSE NULL END - + - 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT - 26 + NULLIF ( - - 14, - COUNT( * ) * 16 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-63
SELECT - 26 + NULLIF ( - - 14, - COUNT ( * ) * 16 ) AS col2
----
-12

query I rowsort
SELECT + 39 * 58
----
2262

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-65
SELECT ALL CAST( + - 50 AS DECIMAL ) * - 42 + + CAST( NULL AS SIGNED ) AS col1, 97 AS col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-65
SELECT ALL CAST ( + - 50 AS REAL ) * - 42 + + CAST ( NULL AS INTEGER ) AS col1, 97 AS col0
----
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT DISTINCT - 27 DIV - 31 * 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT - 27 / - 31 * 12 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT DISTINCT + + NULLIF ( MIN( + + 9 ), + 82 )
----
9

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT + + NULLIF ( MIN ( + + 9 ), + 82 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-68
SELECT ALL - ( - + NULLIF ( + + 74, + 62 ) ) AS col1, - SUM( ALL 94 ) * - - 88 - + + COALESCE ( - - 18, + 99 * - 24 + - - 28 + - 67, - COUNT( ALL - - 75 ) * - CASE + - 81 WHEN + - 66 THEN 71 * - 95 * + + CASE 26 WHEN - 83 THEN + 23 END - - + 22 + CAST( - SUM( ALL 53 ) AS SIGNED ) * - CAST( + 32 AS SIGNED ) + 29 WHEN CASE 54 WHEN - 88 * - 86 THEN + 78 * CAST( NULL AS SIGNED ) END THEN NULL WHEN + 74 / ( CAST( NULL AS SIGNED ) ) + 25 THEN NULL END ) * 93 AS col1
----
74
-9946

skipif mysql # not compatible
query II rowsort label-68
SELECT ALL - ( - + NULLIF ( + + 74, + 62 ) ) AS col1, - SUM ( ALL 94 ) * - - 88 - + + COALESCE ( - - 18, + 99 * - 24 + - - 28 + - 67, - COUNT ( ALL - - 75 ) * - CASE + - 81 WHEN + - 66 THEN 71 * - 95 * + + CASE 26 WHEN - 83 THEN + 23 END - - + 22 + CAST ( - SUM ( ALL 53 ) AS INTEGER ) * - CAST ( + 32 AS INTEGER ) + 29 WHEN CASE 54 WHEN - 88 * - 86 THEN + 78 * CAST ( NULL AS INTEGER ) END THEN NULL WHEN + 74 / ( CAST ( NULL AS INTEGER ) ) + 25 THEN NULL END ) * 93 AS col1
----
74
-9946

query I rowsort
SELECT + - 28 * + + 14 + - - 55
----
-337

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

skipif mysql # not compatible
query I rowsort label-70
SELECT 4 + - - COUNT ( * ) / 72 + - 82 AS col2
----
-78

query I rowsort
SELECT 7 * - 20 AS col0
----
-140

query I rowsort
SELECT - 11 + + ( + 10 ) AS col1
----
-1

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-74
SELECT - 27 * + - 60 + - + CAST( NULL AS DECIMAL ) - + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-74
SELECT - 27 * + - 60 + - + CAST ( NULL AS REAL ) - + - 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT 14 DIV + 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-75
SELECT 14 / + 77 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-76
SELECT ALL COUNT( * ) DIV - COALESCE ( - + MAX( DISTINCT + CAST( 57 AS SIGNED ) ), - 41 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL COUNT ( * ) / - COALESCE ( - + MAX ( DISTINCT + CAST ( 57 AS INTEGER ) ), - 41 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-77
SELECT ALL 47 DIV - 90 * - ( - 75 )
----
0

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL 47 / - 90 * - ( - 75 )
----
0

query I rowsort
SELECT - 64 * + 73 * + 34 * + 34 * + 32 + - 96 col2
----
-172826720

query I rowsort
SELECT ALL + 29 * - 32
----
-928

query I rowsort
SELECT 49 * + 47 AS col2
----
2303

query I rowsort
SELECT ALL 75 + - 81 + + + 66 * + 4 AS col2
----
258

onlyif mysql # DIV for integer division: 
query I rowsort label-82
SELECT DISTINCT COALESCE ( - 75, 14 DIV + 83 + 16 + + 53 + - 49 ) + - - ( + 58 )
----
-17

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT COALESCE ( - 75, 14 / + 83 + 16 + + 53 + - 49 ) + - - ( + 58 )
----
-17

query I rowsort
SELECT 65 + 2 + - + 96 + 73
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-84
SELECT 39 * + CAST( NULL AS SIGNED ) AS col0, COALESCE ( 6, - 52 ) + + 77
----
NULL
83

skipif mysql # not compatible
query II rowsort label-84
SELECT 39 * + CAST ( NULL AS INTEGER ) AS col0, COALESCE ( 6, - 52 ) + + 77
----
NULL
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-85
SELECT 74 + 54 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT 74 + 54 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ALL + 39 + - COUNT( * ) - + ( - NULLIF ( + 13, + 87 ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL + 39 + - COUNT ( * ) - + ( - NULLIF ( + 13, + 87 ) ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT 70 + - COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-87
SELECT 70 + - COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT - MAX( ALL - 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-88
SELECT - MAX ( ALL - 41 ) AS col0
----
41

query I rowsort
SELECT + 66 + - 56 col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-90
SELECT DISTINCT - + 27 * 71 AS col1, + CAST( NULL AS SIGNED ) AS col0
----
-1917
NULL

skipif mysql # not compatible
query II rowsort label-90
SELECT DISTINCT - + 27 * 71 AS col1, + CAST ( NULL AS INTEGER ) AS col0
----
-1917
NULL

query I rowsort
SELECT - + NULLIF ( + 79, ( 59 ) ) AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-92
SELECT DISTINCT + - 60 - - CASE 96 WHEN + 1 THEN NULL WHEN + 10 * CAST( 25 AS SIGNED ) THEN + 77 * + 45 DIV + 76 ELSE - + COUNT( * ) * - 76 + - 92 + - 18 END col0
----
-94

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT + - 60 - - CASE 96 WHEN + 1 THEN NULL WHEN + 10 * CAST ( 25 AS INTEGER ) THEN + 77 * + 45 / + 76 ELSE - + COUNT ( * ) * - 76 + - 92 + - 18 END col0
----
-94

query I rowsort
SELECT ALL - + 97 * 96
----
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT ALL - COUNT( + - 39 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL - COUNT ( + - 39 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT 42 * - - ( - COUNT( * ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-95
SELECT 42 * - - ( - COUNT ( * ) ) AS col2
----
-42

query I rowsort
SELECT 22 * 72 * - 13 AS col0
----
-20592

onlyif mysql # aggregate syntax: 
query II rowsort label-97
SELECT + COUNT( * ) * - 90 AS col0, 3 * + 76
----
-90
228

skipif mysql # not compatible
query II rowsort label-97
SELECT + COUNT ( * ) * - 90 AS col0, 3 * + 76
----
-90
228

query I rowsort
SELECT ALL - 42 + - 73 AS col0
----
-115

query I rowsort
SELECT 30 * - 68 AS col2
----
-2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-100
SELECT COUNT( * ) DIV - - MAX( ALL - 19 ), - 16 AS col0
----
0
-16

skipif mysql # not compatible
query II rowsort label-100
SELECT COUNT ( * ) / - - MAX ( ALL - 19 ), - 16 AS col0
----
0
-16

query I rowsort
SELECT 29 + 11 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT - 41 * - - COUNT( * ) + + + COUNT( + 97 ) + CASE - 10 WHEN + 70 * 52 * - + 61 THEN - 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-102
SELECT - 41 * - - COUNT ( * ) + + + COUNT ( + 97 ) + CASE - 10 WHEN + 70 * 52 * - + 61 THEN - 65 END
----
NULL

query I rowsort
SELECT ALL 22 + + 10
----
32

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

skipif mysql # not compatible
query I rowsort label-104
SELECT ( 63 ) + - COUNT ( * ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT DISTINCT - COUNT( ALL + - 97 ) * + + 71 * + 27 AS col2
----
-1917

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT - COUNT ( ALL + - 97 ) * + + 71 * + 27 AS col2
----
-1917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-106
SELECT ALL 86 - - 97 + - + ( + + 69 ) + 29 * - - 63 * - - CASE 82 WHEN 65 + COUNT( * ) THEN - - 34 + + 76 WHEN + CAST( NULL AS SIGNED ) THEN + 29 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL 86 - - 97 + - + ( + + 69 ) + 29 * - - 63 * - - CASE 82 WHEN 65 + COUNT ( * ) THEN - - 34 + + 76 WHEN + CAST ( NULL AS INTEGER ) THEN + 29 END AS col2
----
NULL

query I rowsort
SELECT 45 * + ( - 57 ) * - - 9
----
-23085

query II rowsort
SELECT 97, ( - 45 ) AS col1
----
97
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT CASE - ( 31 ) WHEN 60 * - - 58 THEN NULL WHEN - 22 * + 11 * COUNT( * ) THEN NULL ELSE + 6 END + - 32 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-109
SELECT CASE - ( 31 ) WHEN 60 * - - 58 THEN NULL WHEN - 22 * + 11 * COUNT ( * ) THEN NULL ELSE + 6 END + - 32 AS col1
----
-26

query I rowsort
SELECT - + CASE - + 60 WHEN + 39 THEN NULL WHEN - COALESCE ( 85, + 70 ) THEN - 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT COUNT( DISTINCT - - 78 ) + ( - - 39 )
----
40

skipif mysql # not compatible
query I rowsort label-111
SELECT COUNT ( DISTINCT - - 78 ) + ( - - 39 )
----
40

query I rowsort
SELECT 9 - - - 62 * - 63
----
3915

query II rowsort
SELECT 96 * + - 89 * + + 72 AS col1, + 73
----
-615168
73

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT DISTINCT CASE - SUM( DISTINCT + 89 ) WHEN 5 THEN + 67 ELSE NULL END * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT CASE - SUM ( DISTINCT + 89 ) WHEN 5 THEN + 67 ELSE NULL END * - 83
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT 88 DIV - 34 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-115
SELECT 88 / - 34 AS col2
----
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-117
SELECT DISTINCT - COUNT( * ) col0, + CAST( NULL AS SIGNED ) * 57 + COUNT( * )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-117
SELECT DISTINCT - COUNT ( * ) col0, + CAST ( NULL AS INTEGER ) * 57 + COUNT ( * )
----
-1
NULL

query II rowsort
SELECT ALL 4, 98 * + 49 AS col1
----
4
4802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-119
SELECT + SUM( DISTINCT 6 ) / + 65 / - + COALESCE ( 39, + + 38, - 58 ) * + - CAST( NULL AS SIGNED ) * CASE COUNT( + ( - + 89 ) ) WHEN - 38 * + + 86 + + - 81 THEN - 53 END * + 42 + 10, CAST( NULL AS DECIMAL ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-119
SELECT + SUM ( DISTINCT 6 ) / + 65 / - + COALESCE ( 39, + + 38, - 58 ) * + - CAST ( NULL AS INTEGER ) * CASE COUNT ( + ( - + 89 ) ) WHEN - 38 * + + 86 + + - 81 THEN - 53 END * + 42 + 10, CAST ( NULL AS REAL ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-120
SELECT - + 49 - - 82 + 92 + MIN( ALL - 86 ) - 13 AS col2, + 44 * 14 AS col0
----
26
616

skipif mysql # not compatible
query II rowsort label-120
SELECT - + 49 - - 82 + 92 + MIN ( ALL - 86 ) - 13 AS col2, + 44 * 14 AS col0
----
26
616

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

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT + COUNT ( * ) / 15 * + 0 AS col0
----
0

query I rowsort
SELECT - + 5 + - 89
----
-94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT DISTINCT 2 * - + 17 + - 5 * 71 DIV - 81
----
-30

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT 2 * - + 17 + - 5 * 71 / - 81
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT + COUNT( DISTINCT - 54 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-125
SELECT + COUNT ( DISTINCT - 54 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-126
SELECT ALL + 50 * - - COUNT( * ) * + 24 AS col1, + 76 * + + MAX( - 80 ) AS col0, 84 * + COUNT( * ) AS col1
----
1200
-6080
84

skipif mysql # not compatible
query III rowsort label-126
SELECT ALL + 50 * - - COUNT ( * ) * + 24 AS col1, + 76 * + + MAX ( - 80 ) AS col0, 84 * + COUNT ( * ) AS col1
----
1200
-6080
84

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT + COUNT( * ) * 98 + ( + + 84 ) AS col1
----
182

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT + COUNT ( * ) * 98 + ( + + 84 ) AS col1
----
182

query I rowsort
SELECT - 94 + + 48 + - 32
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL - 84 * - ( + 87 ) * + 5 + + COUNT( * ) + ( + COALESCE ( - - 45, - + 34 ) )
----
36586

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - 84 * - ( + 87 ) * + 5 + + COUNT ( * ) + ( + COALESCE ( - - 45, - + 34 ) )
----
36586

onlyif mysql # aggregate syntax: 
query II rowsort label-130
SELECT NULLIF ( + 55, + - 83 / - 83 ) AS col1, 34 * + NULLIF ( - 36, 97 / - 44 + + - COUNT( * ) * + + MAX( DISTINCT - 47 ) + AVG ( + 32 ) * + 10 - + - 15 )
----
55
-1224

skipif mysql # not compatible
query II rowsort label-130
SELECT NULLIF ( + 55, + - 83 / - 83 ) AS col1, 34 * + NULLIF ( - 36, 97 / - 44 + + - COUNT ( * ) * + + MAX ( DISTINCT - 47 ) + AVG ( + 32 ) * + 10 - + - 15 )
----
55
-1224

query I rowsort
SELECT - 58 * + + ( - 95 ) AS col1
----
5510

query I rowsort
SELECT DISTINCT + COALESCE ( + 98, - 35 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT ALL 93 * + 26 * COUNT( * ) + + 21 * + 34 AS col0
----
3132

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL 93 * + 26 * COUNT ( * ) + + 21 * + 34 AS col0
----
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT - COUNT( * ) * - 14 * - COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-134
SELECT - COUNT ( * ) * - 14 * - COUNT ( * ) AS col0
----
-14

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

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

query I rowsort
SELECT ALL ( 10 ) * - 84 - + - 49 AS col1
----
-791

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

skipif mysql # not compatible
query I rowsort label-137
SELECT - MIN ( - - 16 ) * + COUNT ( * ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT MAX( DISTINCT - - 50 ) AS col1, + NULLIF ( + ( + 78 ), - - 41 * - ( - 28 ) + AVG ( + 47 ) ) * + - 41 * COALESCE ( - 97, + 7 + - COUNT( * ), + ( - 25 ) + + 30 ) AS col2
----
50
310206

skipif mysql # not compatible
query II rowsort label-138
SELECT MAX ( DISTINCT - - 50 ) AS col1, + NULLIF ( + ( + 78 ), - - 41 * - ( - 28 ) + AVG ( + 47 ) ) * + - 41 * COALESCE ( - 97, + 7 + - COUNT ( * ), + ( - 25 ) + + 30 ) AS col2
----
50
310206

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-139
SELECT - 86 + + - 42 - 94 + 76 DIV + 93 * + COUNT( * ) * 16 + + 10 * + - 88 + - 25, - NULLIF ( + 91, 3 ) AS col1
----
-1127
-91

skipif mysql # not compatible
query II rowsort label-139
SELECT - 86 + + - 42 - 94 + 76 / + 93 * + COUNT ( * ) * 16 + + 10 * + - 88 + - 25, - NULLIF ( + 91, 3 ) AS col1
----
-1127
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT - SUM( 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-140
SELECT - SUM ( 99 ) AS col0
----
-99

query I rowsort
SELECT + + NULLIF ( 25, + 65 ) * + - 10
----
-250

query I rowsort
SELECT + 48 * - 66
----
-3168

query II rowsort
SELECT ALL ( - 22 ), - 32 AS col0
----
-22
-32

query I rowsort
SELECT + 92 * 69 * COALESCE ( - - 32, + 12 ) * + + 13 AS col1
----
2640768

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

query I rowsort
SELECT ALL 45 * - 59 + - 28 col2
----
-2683

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT + 14 + + COUNT( * ) + 91 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-147
SELECT + 14 + + COUNT ( * ) + 91 AS col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-148
SELECT DISTINCT - 39 DIV - CAST( - COALESCE ( + 34, + - 63 * 36 * + 23 - - COUNT( * ), - - 93 * + 87 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT - 39 / - CAST ( - COALESCE ( + 34, + - 63 * 36 * + 23 - - COUNT ( * ), - - 93 * + 87 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-149
SELECT + + 70 + + CAST( - + 88 AS SIGNED ) + + 59 * ( 83 )
----
4879

skipif mysql # not compatible
query I rowsort label-149
SELECT + + 70 + + CAST ( - + 88 AS INTEGER ) + + 59 * ( 83 )
----
4879

query II rowsort
SELECT + + ( 56 ) - + ( - 55 ) AS col0, - 74 AS col2
----
111
-74

query I rowsort
SELECT ALL + 15 * + 7 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-152
SELECT + + 9 * - COALESCE ( + COALESCE ( + - 39, - 70 * - 36 + - 90 * CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) + 7 * - 5 * 44 * - 31 * + 1 * MAX( - 10 ) * CAST( NULL AS SIGNED ) + - 21 * 55 * - 29 * + 37 * + COALESCE ( 94, + NULLIF ( COUNT( * ), 96 ), + 40, + 91 * + CASE - 54 WHEN + 5 + + + COUNT( * ) THEN NULL WHEN COALESCE ( + NULLIF ( - 15, 24 * 76 ), + 4 * + 72 ) + + 84 THEN NULL WHEN COUNT( * ) + - 44 THEN + 7 END - 29 DIV 81 ) ), + 54, + NULLIF ( 72, + 39 + SUM( ALL NULLIF ( 66, - 37 ) ) ) * 77 ) AS col1
----
351

skipif mysql # not compatible
query I rowsort label-152
SELECT + + 9 * - COALESCE ( + COALESCE ( + - 39, - 70 * - 36 + - 90 * CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) + 7 * - 5 * 44 * - 31 * + 1 * MAX ( - 10 ) * CAST ( NULL AS INTEGER ) + - 21 * 55 * - 29 * + 37 * + COALESCE ( 94, + NULLIF ( COUNT ( * ), 96 ), + 40, + 91 * + CASE - 54 WHEN + 5 + + + COUNT ( * ) THEN NULL WHEN COALESCE ( + NULLIF ( - 15, 24 * 76 ), + 4 * + 72 ) + + 84 THEN NULL WHEN COUNT ( * ) + - 44 THEN + 7 END - 29 / 81 ) ), + 54, + NULLIF ( 72, + 39 + SUM ( ALL NULLIF ( 66, - 37 ) ) ) * 77 ) AS col1
----
351

query I rowsort
SELECT - 64 + - COALESCE ( ( + 81 ), + 58 )
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL COUNT( * ) + 75
----
76

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL COUNT ( * ) + 75
----
76

query I rowsort
SELECT ALL 91 + - 63 - + 40 AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-156
SELECT DISTINCT - ( - 96 ) + - CASE + CAST( NULL AS SIGNED ) WHEN - 8 * 5 THEN NULL WHEN 61 THEN - 24 WHEN + 6 + - + 46 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT - ( - 96 ) + - CASE + CAST ( NULL AS INTEGER ) WHEN - 8 * 5 THEN NULL WHEN 61 THEN - 24 WHEN + 6 + - + 46 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 7 / + CASE + + 90 WHEN 65 THEN - 61 + - 64 * - + 44 END * - 18 + + + 57 + + + 10 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT - - 93 DIV 36
----
2

skipif mysql # not compatible
query I rowsort label-158
SELECT - - 93 / 36
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-159
SELECT - 77 DIV - + 19 - 5 * + - 68 + - 33, - 70 * + 70 AS col0
----
311
-4900

skipif mysql # not compatible
query II rowsort label-159
SELECT - 77 / - + 19 - 5 * + - 68 + - 33, - 70 * + 70 AS col0
----
311
-4900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-160
SELECT + 34, 71 + + ( ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-160
SELECT + 34, 71 + + ( ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
34
NULL

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

skipif mysql # not compatible
query I rowsort label-161
SELECT CAST ( ( - COUNT ( * ) ) AS INTEGER )
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-163
SELECT DISTINCT + 53 * - 56 DIV + + ( - 8 )
----
371

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT + 53 * - 56 / + + ( - 8 )
----
371

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT - NULLIF ( - 26, 67 * ( - + 84 ) ) * + 14 - + 89 * + 15 + + - COUNT( * ) AS col0
----
-972

skipif mysql # not compatible
query I rowsort label-164
SELECT - NULLIF ( - 26, 67 * ( - + 84 ) ) * + 14 - + 89 * + 15 + + - COUNT ( * ) AS col0
----
-972

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT ALL + COALESCE ( + - 64, 7 DIV 35 + - 51 + + 25 * - - 54 + - 47, + 35 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL + COALESCE ( + - 64, 7 / 35 + - 51 + + 25 * - - 54 + - 47, + 35 ) AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT ( - COALESCE ( 41, 64 DIV + + 51, + 56, - 15 * + 72 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-166
SELECT ( - COALESCE ( 41, 64 / + + 51, + 56, - 15 * + 72 ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT COUNT( * ) * - 51 + 16
----
-35

skipif mysql # not compatible
query I rowsort label-167
SELECT COUNT ( * ) * - 51 + 16
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-168
SELECT ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-169
SELECT + COUNT ( ALL - 54 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT - MIN( DISTINCT - 57 ) + + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-170
SELECT - MIN ( DISTINCT - 57 ) + + COUNT ( * )
----
58

query I rowsort
SELECT - ( + 21 ) * - COALESCE ( 73, - 45 ) AS col0
----
1533

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-172
SELECT CASE + 81 WHEN + - 18 * + - 63 DIV 96 * - ( 38 ) + + NULLIF ( - 79, 55 + - COUNT( * ) * + - COUNT( * ) ) THEN 34 ELSE NULL END AS col2, 30 DIV - 87 * 10 DIV 50 * - - 7
----
NULL
0

skipif mysql # not compatible
query II rowsort label-172
SELECT CASE + 81 WHEN + - 18 * + - 63 / 96 * - ( 38 ) + + NULLIF ( - 79, 55 + - COUNT ( * ) * + - COUNT ( * ) ) THEN 34 ELSE NULL END AS col2, 30 / - 87 * 10 / 50 * - - 7
----
NULL
0

query I rowsort
SELECT ALL + 45 * + 67 AS col1
----
3015

query I rowsort
SELECT - ( + + ( 72 ) ) * 83
----
-5976

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT DISTINCT + MIN( - + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT + MIN ( - + 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT ALL CASE + 59 WHEN - - COUNT( + 47 ) * + 38 + + 69 + + - 32 THEN - 3 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL CASE + 59 WHEN - - COUNT ( + 47 ) * + 38 + + 69 + + - 32 THEN - 3 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 33 + - - 96 AS col1
----
129

query I rowsort
SELECT - ( 53 ) + + 25 * - 37 AS col2
----
-978

onlyif mysql # aggregate syntax: 
query II rowsort label-179
SELECT + 12 * + - ( - 71 ) col1, + 51 + - COUNT( * ) * + - 95 * 94 - + 28 * + + 94 * + - NULLIF ( + - 80, + - 98 * + 48 )
----
852
-201579

skipif mysql # not compatible
query II rowsort label-179
SELECT + 12 * + - ( - 71 ) col1, + 51 + - COUNT ( * ) * + - 95 * 94 - + 28 * + + 94 * + - NULLIF ( + - 80, + - 98 * + 48 )
----
852
-201579

query I rowsort
SELECT 17 + 8
----
25

query I rowsort
SELECT - - COALESCE ( + ( 37 ), - - 57 ) col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT ALL - + 78 + 70 * + - 89 + + 41 + + + COUNT( * ) AS col2
----
-6266

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL - + 78 + 70 * + - 89 + + 41 + + + COUNT ( * ) AS col2
----
-6266

query II rowsort
SELECT - - 35 AS col0, 62
----
35
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-184
SELECT - MAX( ALL + 13 ) DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-184
SELECT - MAX ( ALL + 13 ) / - 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT DISTINCT NULLIF ( - - 81, - COALESCE ( - 62, + MIN( ALL - 10 ) + - + ( 73 ) ) - + 78 ) + + 97 * ( + 43 ) AS col2
----
4252

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT NULLIF ( - - 81, - COALESCE ( - 62, + MIN ( ALL - 10 ) + - + ( 73 ) ) - + 78 ) + + 97 * ( + 43 ) AS col2
----
4252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-186
SELECT ALL + CASE 74 WHEN - - 99 THEN NULL WHEN - ( - + 75 ) - + 14 THEN + 35 ELSE + CASE - + 5 WHEN - 19 * - 6 THEN NULL WHEN - + 41 THEN - 59 ELSE 57 * 93 END * - - COUNT( * ) END + - 75 + MIN( + ( + + CAST( - 37 AS SIGNED ) ) ) * + 48 * + 32 AS col1, 33
----
-51606
33

skipif mysql # not compatible
query II rowsort label-186
SELECT ALL + CASE 74 WHEN - - 99 THEN NULL WHEN - ( - + 75 ) - + 14 THEN + 35 ELSE + CASE - + 5 WHEN - 19 * - 6 THEN NULL WHEN - + 41 THEN - 59 ELSE 57 * 93 END * - - COUNT ( * ) END + - 75 + MIN ( + ( + + CAST ( - 37 AS INTEGER ) ) ) * + 48 * + 32 AS col1, 33
----
-51606
33

query I rowsort
SELECT ALL 36 + - 78
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-188
SELECT ALL 62, 45 DIV - COUNT( * ) + 69 + + 14 AS col0
----
62
38

skipif mysql # not compatible
query II rowsort label-188
SELECT ALL 62, 45 / - COUNT ( * ) + 69 + + 14 AS col0
----
62
38

onlyif mysql # DIV for integer division: 
query I rowsort label-189
SELECT DISTINCT + - 36 + + 34 - - - 31 DIV + 67
----
-2

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT + - 36 + + 34 - - - 31 / + 67
----
-2

query I rowsort
SELECT + 28 * + + 56
----
1568

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT ALL + 34 DIV 13 * 58 col1
----
116

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL + 34 / 13 * 58 col1
----
116

query I rowsort
SELECT 84 + + - 53 AS col1
----
31

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

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

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

query I rowsort
SELECT - 95 + - + 68 AS col0
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-196
SELECT CAST( - + 4 AS SIGNED ) - - CASE + 15 WHEN + 10 - + 90 * + + 21 * 57 - + ( CAST( + + 46 AS SIGNED ) ) THEN NULL WHEN - - NULLIF ( 80, + 91 ) * - COUNT( * ) - + 71 THEN 16 DIV 97 ELSE + 75 END AS col0, 80 AS col2
----
71
80

skipif mysql # not compatible
query II rowsort label-196
SELECT CAST ( - + 4 AS INTEGER ) - - CASE + 15 WHEN + 10 - + 90 * + + 21 * 57 - + ( CAST ( + + 46 AS INTEGER ) ) THEN NULL WHEN - - NULLIF ( 80, + 91 ) * - COUNT ( * ) - + 71 THEN 16 / 97 ELSE + 75 END AS col0, 80 AS col2
----
71
80

query II rowsort
SELECT - 32 AS col2, - 32 AS col1
----
-32
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-198
SELECT ALL 70 - + 14 AS col0, - 59 + + + COUNT( * ) * - - 56 * - + 74 AS col2
----
56
-4203

skipif mysql # not compatible
query II rowsort label-198
SELECT ALL 70 - + 14 AS col0, - 59 + + + COUNT ( * ) * - - 56 * - + 74 AS col2
----
56
-4203

query I rowsort
SELECT ( 65 ) + - 91
----
-26

query I rowsort
SELECT ALL ( + + 69 ) * + 11 AS col0
----
759

query I rowsort
SELECT ( - - ( - NULLIF ( - + 62, - 47 ) ) ) + 84 * 60 col0
----
5102

onlyif mysql # aggregate syntax: 
query II rowsort label-202
SELECT DISTINCT - COUNT( * ) col0, COUNT( * ) + + + 98 + - 51 + + + COUNT( * ) * COALESCE ( - 51, + + ( 60 ), 37 )
----
-1
-3

skipif mysql # not compatible
query II rowsort label-202
SELECT DISTINCT - COUNT ( * ) col0, COUNT ( * ) + + + 98 + - 51 + + + COUNT ( * ) * COALESCE ( - 51, + + ( 60 ), 37 )
----
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT DISTINCT CAST( 63 AS SIGNED ) * + ( + 80 ) AS col1
----
5040

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT CAST ( 63 AS INTEGER ) * + ( + 80 ) AS col1
----
5040

query II rowsort
SELECT ALL - 90, - 24 AS col0
----
-90
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT 12 * + + ( + COUNT( * ) ) + + - 82
----
-70

skipif mysql # not compatible
query I rowsort label-205
SELECT 12 * + + ( + COUNT ( * ) ) + + - 82
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-206
SELECT ALL - 19 AS col0, MAX( ( - - CAST( NULL AS DECIMAL ) ) ) * - 78 AS col1
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-206
SELECT ALL - 19 AS col0, MAX ( ( - - CAST ( NULL AS REAL ) ) ) * - 78 AS col1
----
-19
NULL

query I rowsort
SELECT 90 + + + CASE - 33 WHEN - 37 THEN NULL ELSE + 44 END * 97 * - 42 AS col2
----
-179166

query II rowsort
SELECT + 66 AS col0, 14 AS col2
----
66
14

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-210
SELECT ALL 27 DIV SUM( 49 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL 27 / SUM ( 49 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 4 * + - 86 AS col0
----
344

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

skipif mysql # not compatible
query II rowsort label-212
SELECT ALL - COUNT ( * ), 38 AS col1
----
-1
38

query I rowsort
SELECT ALL - 50 + + NULLIF ( - + 73, - - 35 )
----
-123

query I rowsort
SELECT + 87 * + ( + 53 ) AS col1
----
4611

query I rowsort
SELECT ALL + NULLIF ( 73, 17 * - 8 ) + + 14 AS col2
----
87

query III rowsort
SELECT 20 AS col2, + COALESCE ( + 94, - + 53 ), + 86 col1
----
20
94
86

onlyif mysql # aggregate syntax: 
query II rowsort label-217
SELECT - - 50 AS col1, MIN( + - 15 ) AS col1
----
50
-15

skipif mysql # not compatible
query II rowsort label-217
SELECT - - 50 AS col1, MIN ( + - 15 ) AS col1
----
50
-15

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

skipif mysql # not compatible
query I rowsort label-218
SELECT - 67 * - COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT - COUNT( DISTINCT - - 81 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-219
SELECT - COUNT ( DISTINCT - - 81 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT ALL - NULLIF ( + 17, 80 / + COUNT( - ( - 79 ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL - NULLIF ( + 17, 80 / + COUNT ( - ( - 79 ) ) )
----
-17

query I rowsort
SELECT ALL + + 84 + 84 AS col2
----
168

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-223
SELECT - - 11, + COUNT( * ) * + + 2 * + 12 * 0 - - AVG ( + CAST( NULL AS SIGNED ) ) + + COUNT( * ) col0
----
11
NULL

skipif mysql # not compatible
query II rowsort label-223
SELECT - - 11, + COUNT ( * ) * + + 2 * + 12 * 0 - - AVG ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) col0
----
11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT ALL - 71 * + - MIN( - 50 )
----
-3550

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL - 71 * + - MIN ( - 50 )
----
-3550

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

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

query I rowsort
SELECT - 83 + + 99
----
16

query I rowsort
SELECT - + 45 col0
----
-45

query I rowsort
SELECT ALL 71 - - 17
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL - SUM( - 72 ) * + 47 AS col2
----
3384

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL - SUM ( - 72 ) * + 47 AS col2
----
3384

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL + COUNT( * ) - - 88
----
89

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL + COUNT ( * ) - - 88
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-232
SELECT CASE ( + + 83 ) WHEN + 72 THEN + 4 WHEN - 13 * - + 58 + - NULLIF ( - - 87, COALESCE ( - 85, - 42 * - - 36 + + MAX( - 8 ) - + 47 + + 1, - 46 * + COUNT( * ) - + + 80 * 87 ) + NULLIF ( - + 69, - + 66 ) * - 44 ) * + 16 - 43 * + MIN( ALL - CAST( - 57 AS SIGNED ) ) * 76 THEN + - COUNT( * ) * + 72 * - 80 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT CASE ( + + 83 ) WHEN + 72 THEN + 4 WHEN - 13 * - + 58 + - NULLIF ( - - 87, COALESCE ( - 85, - 42 * - - 36 + + MAX ( - 8 ) - + 47 + + 1, - 46 * + COUNT ( * ) - + + 80 * 87 ) + NULLIF ( - + 69, - + 66 ) * - 44 ) * + 16 - 43 * + MIN ( ALL - CAST ( - 57 AS INTEGER ) ) * 76 THEN + - COUNT ( * ) * + 72 * - 80 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT ALL 17 * 89 AS col0, + COALESCE ( 31, COALESCE ( 4, + COUNT( * ) ) ) * + + 0 + 59 + + - 45 AS col1
----
1513
14

skipif mysql # not compatible
query II rowsort label-233
SELECT ALL 17 * 89 AS col0, + COALESCE ( 31, COALESCE ( 4, + COUNT ( * ) ) ) * + + 0 + 59 + + - 45 AS col1
----
1513
14

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

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

query I rowsort
SELECT 93 * 50 * 43 AS col2
----
199950

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT + SUM( + 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-236
SELECT + SUM ( + 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL 61 * - + 82 + + COUNT( * ) * + - 70 + + 48
----
-5024

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL 61 * - + 82 + + COUNT ( * ) * + - 70 + + 48
----
-5024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-238
SELECT + 98 * + CAST( - 53 AS SIGNED )
----
-5194

skipif mysql # not compatible
query I rowsort label-238
SELECT + 98 * + CAST ( - 53 AS INTEGER )
----
-5194

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

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

query I rowsort
SELECT ALL + CASE + 62 WHEN + 36 - - + 58 * - 50 THEN NULL ELSE - 62 END
----
-62

query I rowsort
SELECT DISTINCT + CASE 42 WHEN + 92 THEN + 71 END * + 48 + - 41 * + 6 * - 69 + + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT - 15 * - 48 + + + 84 + - ( - COUNT( * ) ) + - 63 + - 66 - + COUNT( * ) + - 68 + - 33 AS col0
----
574

skipif mysql # not compatible
query I rowsort label-242
SELECT - 15 * - 48 + + + 84 + - ( - COUNT ( * ) ) + - 63 + - 66 - + COUNT ( * ) + - 68 + - 33 AS col0
----
574

query I rowsort
SELECT ALL 68 + + 27 + + 27 + + + 11
----
133

query I rowsort
SELECT + 38 + - + 49
----
-11

query I rowsort
SELECT - 19 * - 98 - - 3
----
1865

onlyif mysql # aggregate syntax: 
query II rowsort label-246
SELECT - + 33 - + 12, + MAX( DISTINCT + ( 51 ) ) * + 0 col1
----
-45
0

skipif mysql # not compatible
query II rowsort label-246
SELECT - + 33 - + 12, + MAX ( DISTINCT + ( 51 ) ) * + 0 col1
----
-45
0

onlyif mysql # DIV for integer division: 
query II rowsort label-247
SELECT ALL - 16 DIV - 20, - ( + - 92 ) AS col1
----
0
92

skipif mysql # not compatible
query II rowsort label-247
SELECT ALL - 16 / - 20, - ( + - 92 ) AS col1
----
0
92

query I rowsort
SELECT ALL - 58 + - - 15 * + 55
----
767

query I rowsort
SELECT DISTINCT 39 + + 91 AS col1
----
130

query I rowsort
SELECT ALL - + 11 * + 50 - 68
----
-618

onlyif mysql # DIV for integer division: 
query I rowsort label-251
SELECT ALL + 78 + 12 - + 10 DIV NULLIF ( - 55, - + 29 + + 85 + - COALESCE ( - 85, - + 19, 89 ) )
----
90

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + 78 + 12 - + 10 / NULLIF ( - 55, - + 29 + + 85 + - COALESCE ( - 85, - + 19, 89 ) )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-252
SELECT - + 97 + COALESCE ( - - 31, 81 - - 86 ) * + + 66 + - + MIN( ALL + 14 ) AS col0, COALESCE ( - 6, - 61, - ( SUM( ALL - 26 ) ) ) * - + 58 * + ( - + COALESCE ( 54, 78 * + CASE + - 10 WHEN - 17 THEN 90 + 86 ELSE NULL END ) ) col0
----
1935
-18792

skipif mysql # not compatible
query II rowsort label-252
SELECT - + 97 + COALESCE ( - - 31, 81 - - 86 ) * + + 66 + - + MIN ( ALL + 14 ) AS col0, COALESCE ( - 6, - 61, - ( SUM ( ALL - 26 ) ) ) * - + 58 * + ( - + COALESCE ( 54, 78 * + CASE + - 10 WHEN - 17 THEN 90 + 86 ELSE NULL END ) ) col0
----
1935
-18792

query II rowsort
SELECT ALL 80 * - 47, 49 AS col2
----
-3760
49

onlyif mysql # DIV for integer division: 
query I rowsort label-254
SELECT + 54 DIV 71 DIV + - 62
----
0

skipif mysql # not compatible
query I rowsort label-254
SELECT + 54 / 71 / + - 62
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT DISTINCT COUNT( ALL + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT COUNT ( ALL + 35 )
----
1

query I rowsort
SELECT ALL - 48 * 46 AS col0
----
-2208

query I rowsort
SELECT - 29 - - 25 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-259
SELECT DISTINCT COUNT( * ) AS col1, 66 AS col2
----
1
66

skipif mysql # not compatible
query II rowsort label-259
SELECT DISTINCT COUNT ( * ) AS col1, 66 AS col2
----
1
66

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

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

query I rowsort
SELECT ALL - 49 * - 92
----
4508

onlyif mysql # aggregate syntax: 
query II rowsort label-262
SELECT - 93 + - 10 - - 12, + MIN( - 33 ) + + ( - 53 ) col2
----
-91
-86

skipif mysql # not compatible
query II rowsort label-262
SELECT - 93 + - 10 - - 12, + MIN ( - 33 ) + + ( - 53 ) col2
----
-91
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT - CASE 86 WHEN - 55 * + 96 * - 83 * + + 2 * + - 22 / 15 * + COUNT( * ) * - 51 THEN + SUM( - - 95 ) + - COALESCE ( - 91, 25 ) / + - 86 * + COUNT( * ) * + 15 ELSE NULL END + + ( + - 72 ) + + SUM( 93 ) + - - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT - CASE 86 WHEN - 55 * + 96 * - 83 * + + 2 * + - 22 / 15 * + COUNT ( * ) * - 51 THEN + SUM ( - - 95 ) + - COALESCE ( - 91, 25 ) / + - 86 * + COUNT ( * ) * + 15 ELSE NULL END + + ( + - 72 ) + + SUM ( 93 ) + - - 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT - COUNT( * ) + + 30 * 20 * + 47
----
28199

skipif mysql # not compatible
query I rowsort label-264
SELECT - COUNT ( * ) + + 30 * 20 * + 47
----
28199

query I rowsort
SELECT + 82 * + 54 * - 74 - 57
----
-327729

query I rowsort
SELECT ( - 78 ) col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-267
SELECT ALL 88 DIV 46 * - 37 + - 49 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL 88 / 46 * - 37 + - 49 AS col0
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT + 19 * + 23 * 59 * - + 49 * + 60 + - 18 + - COUNT( * ) AS col2
----
-75802039

skipif mysql # not compatible
query I rowsort label-269
SELECT + 19 * + 23 * 59 * - + 49 * + 60 + - 18 + - COUNT ( * ) AS col2
----
-75802039

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-270
SELECT ALL 32 DIV COUNT( * ) * + 47 + + 69 AS col0
----
1573

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL 32 / COUNT ( * ) * + 47 + + 69 AS col0
----
1573

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

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

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

query I rowsort
SELECT + 68 + ( + + 12 )
----
80

query I rowsort
SELECT + 85 * + 50 * - + 54
----
-229500

query I rowsort
SELECT - + 42 * - + 48 AS col2
----
2016

query I rowsort
SELECT ALL - 31 * + 73
----
-2263

onlyif mysql # aggregate syntax: 
query II rowsort label-277
SELECT - 92 * 46 + - COUNT( * ) + + 4 * + ( + + 25 ), - 2 AS col1
----
-4133
-2

skipif mysql # not compatible
query II rowsort label-277
SELECT - 92 * 46 + - COUNT ( * ) + + 4 * + ( + + 25 ), - 2 AS col1
----
-4133
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-278
SELECT ALL - 41 * + + COUNT( * ) DIV - - COUNT( * ) + 9 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - 41 * + + COUNT ( * ) / - - COUNT ( * ) + 9 AS col2
----
-32

query I rowsort
SELECT DISTINCT + 41 * + 52 - + - 70
----
2202

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT - 25 * - COUNT( * ) - + - 79 * + - 72 - - 87
----
-5576

skipif mysql # not compatible
query I rowsort label-282
SELECT - 25 * - COUNT ( * ) - + - 79 * + - 72 - - 87
----
-5576

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ALL + SUM( - 8 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL + SUM ( - 8 ) col1
----
-8

query I rowsort
SELECT + + 41 - + 36 + 58
----
63

query I rowsort
SELECT + - 66 - 69
----
-135

query I rowsort
SELECT + + 60 * 24 AS col0
----
1440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-287
SELECT ALL + AVG ( DISTINCT - 8 ) / 73 - - CAST( NULL AS DECIMAL ) * + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL + AVG ( DISTINCT - 8 ) / 73 - - CAST ( NULL AS REAL ) * + + 43
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-288
SELECT + + COALESCE ( - 60, + + CAST( + - 15 AS SIGNED ) DIV 89 + - 65 - + ( 44 ) * - MAX( DISTINCT - - 35 ) DIV - 35 * - 80, 11 ) * - 27 * - + CAST( + 26 AS SIGNED ) AS col0
----
-42120

skipif mysql # not compatible
query I rowsort label-288
SELECT + + COALESCE ( - 60, + + CAST ( + - 15 AS INTEGER ) / 89 + - 65 - + ( 44 ) * - MAX ( DISTINCT - - 35 ) / - 35 * - 80, 11 ) * - 27 * - + CAST ( + 26 AS INTEGER ) AS col0
----
-42120

query I rowsort
SELECT - 31 + + - 67 * 97
----
-6530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-290
SELECT + ( + + 2 ) DIV - MAX( DISTINCT - - 60 ) * 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-290
SELECT + ( + + 2 ) / - MAX ( DISTINCT - - 60 ) * 17 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT ALL 58 DIV - 44
----
-1

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL 58 / - 44
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-292
SELECT + 88 - + CAST( - COUNT( * ) AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-292
SELECT + 88 - + CAST ( - COUNT ( * ) AS INTEGER )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-293
SELECT - ( 4 ) DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-293
SELECT - ( 4 ) / 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT - COUNT( + 47 ) + - 60 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-294
SELECT - COUNT ( + 47 ) + - 60 AS col2
----
-61

query I rowsort
SELECT DISTINCT NULLIF ( + 76, + 75 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT ALL ( MAX( - 43 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL ( MAX ( - 43 ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT DISTINCT - SUM( DISTINCT - ( 81 ) ) + - 62 - + 7 + + - 73 * MIN( DISTINCT - 50 ) * - - 76
----
277412

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT - SUM ( DISTINCT - ( 81 ) ) + - 62 - + 7 + + - 73 * MIN ( DISTINCT - 50 ) * - - 76
----
277412

query I rowsort
SELECT ALL + 18 + ( - 13 ) + + - NULLIF ( + - 71, + 21 ) AS col0
----
76

query I rowsort
SELECT ALL 4 + 83
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT DISTINCT - 73 + - COUNT( * ) - + 3 + - 84 + + 92 * + 83 * - - 87 AS col0
----
664171

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT - 73 + - COUNT ( * ) - + 3 + - 84 + + 92 * + 83 * - - 87 AS col0
----
664171

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT ALL + COUNT( * ) + - ( NULLIF ( SUM( DISTINCT + 62 ), - COUNT( DISTINCT + 30 ) ) )
----
-61

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL + COUNT ( * ) + - ( NULLIF ( SUM ( DISTINCT + 62 ), - COUNT ( DISTINCT + 30 ) ) )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-302
SELECT + 78 * + CAST( 20 AS SIGNED ) - - + ( - 63 ) * - 21
----
2883

skipif mysql # not compatible
query I rowsort label-302
SELECT + 78 * + CAST ( 20 AS INTEGER ) - - + ( - 63 ) * - 21
----
2883

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ALL - SUM( ALL + 93 ) + + COUNT( * ) * + - 83
----
-176

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL - SUM ( ALL + 93 ) + + COUNT ( * ) * + - 83
----
-176

query I rowsort
SELECT 89 - - + ( - - 18 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT COUNT( * ) * - CASE + + COUNT( * ) WHEN COUNT( * ) THEN - 26 + + 58 WHEN - + 43 THEN 77 ELSE NULL END * + 20
----
-640

skipif mysql # not compatible
query I rowsort label-305
SELECT COUNT ( * ) * - CASE + + COUNT ( * ) WHEN COUNT ( * ) THEN - 26 + + 58 WHEN - + 43 THEN 77 ELSE NULL END * + 20
----
-640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT - 48 * + COUNT( * ) - - - 98 AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-307
SELECT - 48 * + COUNT ( * ) - - - 98 AS col2
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT - 56 - + + COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-308
SELECT - 56 - + + COUNT ( * ) AS col0
----
-57

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-311
SELECT - - NULLIF ( + 56, - COALESCE ( + 47, + + COUNT( * ) * + COUNT( * ) ) * + COALESCE ( - - 92, + 19, + 18 ) / + 58 + + CASE + - 39 WHEN ( - + MIN( ALL + + 39 ) ) * + 8 + - 22 * 33 THEN 69 ELSE NULL END * 58 + + ( + + 69 ) + 72 ) * + 3 * + + SUM( + 81 ) / CAST( NULL AS SIGNED ) + + - 89 * - 11 + + CASE + 81 WHEN - - 82 THEN NULL WHEN - - CASE + 78 WHEN + CASE - 28 WHEN - ( - ( + 57 ) ) + CASE + 49 WHEN 92 THEN ( - 48 ) WHEN 71 THEN 73 - + COUNT( * ) WHEN - 92 / - 90 THEN - 32 END THEN - 58 END THEN + 64 + - COALESCE ( + 81, + 17, - CASE COUNT( - ( + 18 ) ) WHEN - 61 * 39 + + 21 * 12 THEN NULL WHEN - COUNT( * ) THEN - ( 47 ) ELSE NULL END + COUNT( * ) ) WHEN 55 * ( + 51 ) + - 47 * 72 THEN NULL ELSE 44 END THEN + 78 * - ( 32 ) + - 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT - - NULLIF ( + 56, - COALESCE ( + 47, + + COUNT ( * ) * + COUNT ( * ) ) * + COALESCE ( - - 92, + 19, + 18 ) / + 58 + + CASE + - 39 WHEN ( - + MIN ( ALL + + 39 ) ) * + 8 + - 22 * 33 THEN 69 ELSE NULL END * 58 + + ( + + 69 ) + 72 ) * + 3 * + + SUM ( + 81 ) / CAST ( NULL AS INTEGER ) + + - 89 * - 11 + + CASE + 81 WHEN - - 82 THEN NULL WHEN - - CASE + 78 WHEN + CASE - 28 WHEN - ( - ( + 57 ) ) + CASE + 49 WHEN 92 THEN ( - 48 ) WHEN 71 THEN 73 - + COUNT ( * ) WHEN - 92 / - 90 THEN - 32 END THEN - 58 END THEN + 64 + - COALESCE ( + 81, + 17, - CASE COUNT ( - ( + 18 ) ) WHEN - 61 * 39 + + 21 * 12 THEN NULL WHEN - COUNT ( * ) THEN - ( 47 ) ELSE NULL END + COUNT ( * ) ) WHEN 55 * ( + 51 ) + - 47 * 72 THEN NULL ELSE 44 END THEN + 78 * - ( 32 ) + - 25 ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( + ( + + ( - 2 ) ), + 45 ) * 21 AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-313
SELECT ALL - - CASE + + COUNT( * ) WHEN 41 * + 56 / + - 3 + CASE 1 WHEN + 52 THEN NULL WHEN + 41 + + CAST( - 38 AS DECIMAL ) THEN + 77 + + - 88 * + 3 + - + COUNT( * ) ELSE NULL END + 92 * + 41 THEN + COUNT( * ) WHEN 61 THEN - 43 * - 61 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL - - CASE + + COUNT ( * ) WHEN 41 * + 56 / + - 3 + CASE 1 WHEN + 52 THEN NULL WHEN + 41 + + CAST ( - 38 AS REAL ) THEN + 77 + + - 88 * + 3 + - + COUNT ( * ) ELSE NULL END + 92 * + 41 THEN + COUNT ( * ) WHEN 61 THEN - 43 * - 61 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT + 36 + - 51 DIV 39
----
35

skipif mysql # not compatible
query I rowsort label-314
SELECT + 36 + - 51 / 39
----
35

query I rowsort
SELECT NULLIF ( + 11, + - 50 * + 15 - - + 82 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT DISTINCT - ( - - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 82 * - 18 AS col1
----
-1476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-318
SELECT DISTINCT + - COUNT( * ) * - 20 DIV + MIN( ALL - 93 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT + - COUNT ( * ) * - 20 / + MIN ( ALL - 93 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-319
SELECT DISTINCT - COUNT( * ) * - SUM( ALL - 62 ) DIV + 80, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-319
SELECT DISTINCT - COUNT ( * ) * - SUM ( ALL - 62 ) / + 80, + COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT ALL 47 + - + 22 - 96
----
-71

query I rowsort
SELECT ALL 64 + COALESCE ( - ( + 63 ), + 12 ) + + 73 * - 39 + - 33
----
-2879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-322
SELECT ALL 11 + CAST( - COUNT( * ) AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL 11 + CAST ( - COUNT ( * ) AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-323
SELECT DISTINCT 44, + COUNT( * ) * + + COUNT( * ) AS col2
----
44
1

skipif mysql # not compatible
query II rowsort label-323
SELECT DISTINCT 44, + COUNT ( * ) * + + COUNT ( * ) AS col2
----
44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT DISTINCT 63 + + COUNT( + + 56 ) - + - 67 + - - 51
----
182

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT 63 + + COUNT ( + + 56 ) - + - 67 + - - 51
----
182

query I rowsort
SELECT 93 * - - 32
----
2976

query I rowsort
SELECT 99 + + 19
----
118

query I rowsort
SELECT 70 + - 79
----
-9

query I rowsort
SELECT CASE WHEN NOT - 47 IS NOT NULL THEN + 7 END + 9 * + - 11 - + 74 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT 15 - - - 46 + - 21 * - ( + 24 ) + - SUM( DISTINCT - + 76 ) + - - 4 * + - 41 * 67 AS col2
----
-10439

skipif mysql # not compatible
query I rowsort label-329
SELECT 15 - - - 46 + - 21 * - ( + 24 ) + - SUM ( DISTINCT - + 76 ) + - - 4 * + - 41 * 67 AS col2
----
-10439

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT 89 + COUNT( * ) - + 48
----
42

skipif mysql # not compatible
query I rowsort label-330
SELECT 89 + COUNT ( * ) - + 48
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ( COUNT( - + 44 ) ) + + + 30 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-331
SELECT ( COUNT ( - + 44 ) ) + + + 30 AS col2
----
31

query I rowsort
SELECT ALL 38 * 65 * + 16 AS col2
----
39520

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT DISTINCT 97 - + - 10 + + COUNT( * )
----
108

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT 97 - + - 10 + + COUNT ( * )
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-334
SELECT + 27 + 35 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-334
SELECT + 27 + 35 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 32 * - 39 + 48 * + - 26
----
-2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-336
SELECT ALL - - COALESCE ( - 29, + 33 DIV - - 33 * CAST( - + 60 AS SIGNED ) + + - COUNT( * ) * 18 ) AS col0, 97
----
-29
97

skipif mysql # not compatible
query II rowsort label-336
SELECT ALL - - COALESCE ( - 29, + 33 / - - 33 * CAST ( - + 60 AS INTEGER ) + + - COUNT ( * ) * 18 ) AS col0, 97
----
-29
97

query II rowsort
SELECT DISTINCT - - 19, - COALESCE ( 82, - 9 + 46 + + + 99 ) AS col0
----
19
-82

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

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

query I rowsort
SELECT DISTINCT + + 62 * 29
----
1798

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT COALESCE ( - ( ( + ( - 67 ) ) ), MAX( + 17 ) ) * + 11 + - + 76 AS col1
----
661

skipif mysql # not compatible
query I rowsort label-340
SELECT COALESCE ( - ( ( + ( - 67 ) ) ), MAX ( + 17 ) ) * + 11 + - + 76 AS col1
----
661

query I rowsort
SELECT 32 + 86 AS col2
----
118

query I rowsort
SELECT ALL 4 * 32 AS col1
----
128

query II rowsort
SELECT DISTINCT - 93, 35 AS col1
----
-93
35

query I rowsort
SELECT ALL - 27 * + 22 AS col0
----
-594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-345
SELECT DISTINCT - 83 AS col0, 35 * - 15, CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
-83
-525
1

skipif mysql # not compatible
query III rowsort label-345
SELECT DISTINCT - 83 AS col0, 35 * - 15, CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
-83
-525
1

query II rowsort
SELECT ALL - 70, + 54 * 43 AS col2
----
-70
2322

query I rowsort
SELECT DISTINCT - - 35
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-348
SELECT ALL + 72 DIV + 12
----
6

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL + 72 / + 12
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-349
SELECT DISTINCT - - COUNT( * ) + - 1 + + MIN( - 98 ) - 99 + 17 * + CAST( - 63 AS SIGNED ) * + 4
----
-4481

skipif mysql # not compatible
query I rowsort label-349
SELECT DISTINCT - - COUNT ( * ) + - 1 + + MIN ( - 98 ) - 99 + 17 * + CAST ( - 63 AS INTEGER ) * + 4
----
-4481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-350
SELECT DISTINCT - COUNT( * ) DIV + + 20 * - + 89
----
0

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT - COUNT ( * ) / + + 20 * - + 89
----
0

query II rowsort
SELECT 54, 94 * - 81 + + + 82 col2
----
54
-7532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-352
SELECT DISTINCT AVG ( DISTINCT - CAST( ( + 59 ) AS SIGNED ) ) + + - CAST( NULL AS SIGNED ) + 80 * - ( + - 47 ) + - 62 * - 9 + - 65 * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT AVG ( DISTINCT - CAST ( ( + 59 ) AS INTEGER ) ) + + - CAST ( NULL AS INTEGER ) + 80 * - ( + - 47 ) + - 62 * - 9 + - 65 * 25 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-353
SELECT ALL COUNT( * ), CASE - - CAST( NULL AS SIGNED ) WHEN 43 / + 4 THEN NULL ELSE - 47 + - 99 * 56 + 99 END AS col2
----
1
-5492

skipif mysql # not compatible
query II rowsort label-353
SELECT ALL COUNT ( * ), CASE - - CAST ( NULL AS INTEGER ) WHEN 43 / + 4 THEN NULL ELSE - 47 + - 99 * 56 + 99 END AS col2
----
1
-5492

query I rowsort
SELECT DISTINCT - 72 + - 20 * 30 - - 6 * - 0 AS col1
----
-672

query I rowsort
SELECT DISTINCT + 18 + + + NULLIF ( - ( + 73 ), + - 4 )
----
-55

query I rowsort
SELECT - 81 * - + 55 AS col0
----
4455

query I rowsort
SELECT + 63 + - 11
----
52

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

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

query II rowsort
SELECT DISTINCT ( 46 ) col2, + 73 + - + NULLIF ( 10, + 99 ) + - 36 + 74 * 18 AS col1
----
46
1359

query I rowsort
SELECT ALL ( + 16 ) col2
----
16

query I rowsort
SELECT + 85 * 38 col0
----
3230

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT ALL COUNT( ALL 72 ) - + CASE + + 51 WHEN - COUNT( * ) THEN + + NULLIF ( - 97, - 82 * - CASE - SUM( - - 81 ) WHEN - 56 / - ( - 8 ) THEN - 9 ELSE COUNT( * ) - - - 86 END * + + 63 ) * COUNT( * ) + + ( - + 79 ) * - 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL COUNT ( ALL 72 ) - + CASE + + 51 WHEN - COUNT ( * ) THEN + + NULLIF ( - 97, - 82 * - CASE - SUM ( - - 81 ) WHEN - 56 / - ( - 8 ) THEN - 9 ELSE COUNT ( * ) - - - 86 END * + + 63 ) * COUNT ( * ) + + ( - + 79 ) * - 44 END
----
NULL

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

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

query I rowsort
SELECT + 91 - - 92
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-365
SELECT ALL + - 35 AS col2, - CASE + 39 WHEN + - 41 + + SUM( DISTINCT 78 ) + - 60 + 95 + + COUNT( * ) THEN + 46 ELSE NULL END * + - 17 + + + MIN( ALL - 99 ) AS col0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-365
SELECT ALL + - 35 AS col2, - CASE + 39 WHEN + - 41 + + SUM ( DISTINCT 78 ) + - 60 + 95 + + COUNT ( * ) THEN + 46 ELSE NULL END * + - 17 + + + MIN ( ALL - 99 ) AS col0
----
-35
NULL

query I rowsort
SELECT + 5 + 17 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT + NULLIF ( - COUNT( * ), - 42 / 17 * + 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-367
SELECT + NULLIF ( - COUNT ( * ), - 42 / 17 * + 63 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-368
SELECT ALL + + CAST( - 55 AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL + + CAST ( - 55 AS INTEGER ) AS col1
----
-55

query II rowsort
SELECT DISTINCT + 77 AS col2, - 41 AS col1
----
77
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-370
SELECT ALL - 49 * + - 86 + - ( CAST( - 47 AS SIGNED ) ) + + + 0 AS col0, - COUNT( * ) + + - MAX( ALL + 31 ) + 5 * + MIN( + - 32 )
----
4261
-192

skipif mysql # not compatible
query II rowsort label-370
SELECT ALL - 49 * + - 86 + - ( CAST ( - 47 AS INTEGER ) ) + + + 0 AS col0, - COUNT ( * ) + + - MAX ( ALL + 31 ) + 5 * + MIN ( + - 32 )
----
4261
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-371
SELECT DISTINCT - NULLIF ( + 99, ( - 30 ) ) * - - 38 * - + COUNT( * ) + + CAST( NULL AS SIGNED ) + + AVG ( + + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT - NULLIF ( + 99, ( - 30 ) ) * - - 38 * - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + AVG ( + + 23 )
----
NULL

query I rowsort
SELECT ALL 92 * - 0 + + 55 + + 83 - - - 46 + + 84 AS col0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL + + MIN( ( 48 ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL + + MIN ( ( 48 ) ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT + COUNT( * ) + - MIN( 59 ) + + 29 - - + 72
----
43

skipif mysql # not compatible
query I rowsort label-374
SELECT + COUNT ( * ) + - MIN ( 59 ) + + 29 - - + 72
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-375
SELECT + 26 * ( - CAST( - 92 AS SIGNED ) ) * 29 - + 71
----
69297

skipif mysql # not compatible
query I rowsort label-375
SELECT + 26 * ( - CAST ( - 92 AS INTEGER ) ) * 29 - + 71
----
69297

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT + 48 * - MIN( + ( - 7 ) ) + + + 31 AS col0
----
367

skipif mysql # not compatible
query I rowsort label-376
SELECT + 48 * - MIN ( + ( - 7 ) ) + + + 31 AS col0
----
367

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT ALL 73 * - 0 + ( + 68 ) + + - 39 DIV + - NULLIF ( - ( + 64 ), 67 * + + 19 ) * 76 + + 83
----
151

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL 73 * - 0 + ( + 68 ) + + - 39 / + - NULLIF ( - ( + 64 ), 67 * + + 19 ) * 76 + + 83
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT - MAX( ALL - 16 ) * + 14 + ( + - COUNT( * ) )
----
223

skipif mysql # not compatible
query I rowsort label-378
SELECT - MAX ( ALL - 16 ) * + 14 + ( + - COUNT ( * ) )
----
223

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-380
SELECT - 52 + + COUNT( * ) + - 40 - + 46 + + 12 - + COALESCE ( 61, + 31 + + 85 DIV 77 * + 8 * - 0, + 51 ) * - 21
----
1156

skipif mysql # not compatible
query I rowsort label-380
SELECT - 52 + + COUNT ( * ) + - 40 - + 46 + + 12 - + COALESCE ( 61, + 31 + + 85 / 77 * + 8 * - 0, + 51 ) * - 21
----
1156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-381
SELECT - MAX( + 51 ) * SUM( - + 36 ) + CASE - - 22 WHEN - - 16 + 38 + - ( - 55 ) * COUNT( * ) THEN NULL WHEN + 72 + + 13 THEN NULL WHEN - 81 + - - 78 THEN - CAST( ( 83 ) AS SIGNED ) + 76 ELSE - + 89 * + - 68 * - - 13 + - 65 END + - MIN( ALL - 34 ) + - 9 * - 11 * 68 + + 77 AS col0
----
87290

skipif mysql # not compatible
query I rowsort label-381
SELECT - MAX ( + 51 ) * SUM ( - + 36 ) + CASE - - 22 WHEN - - 16 + 38 + - ( - 55 ) * COUNT ( * ) THEN NULL WHEN + 72 + + 13 THEN NULL WHEN - 81 + - - 78 THEN - CAST ( ( 83 ) AS INTEGER ) + 76 ELSE - + 89 * + - 68 * - - 13 + - 65 END + - MIN ( ALL - 34 ) + - 9 * - 11 * 68 + + 77 AS col0
----
87290

query I rowsort
SELECT - 69 * - 95 AS col2
----
6555

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT - MAX( DISTINCT - + 80 ) + - 45
----
35

skipif mysql # not compatible
query I rowsort label-383
SELECT - MAX ( DISTINCT - + 80 ) + - 45
----
35

query III rowsort
SELECT ALL ( + + 82 ) AS col0, NULLIF ( - + 96, + - 43 ), - + ( 37 ) AS col0
----
82
-96
-37

query I rowsort
SELECT - NULLIF ( 4, - 19 * + 29 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT - ( + 42 ) * 67 * + COUNT( * ) + - + 42 + - COALESCE ( + + 90, + - 26 )
----
-2946

skipif mysql # not compatible
query I rowsort label-386
SELECT - ( + 42 ) * 67 * + COUNT ( * ) + - + 42 + - COALESCE ( + + 90, + - 26 )
----
-2946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-387
SELECT DISTINCT - SUM( ALL 32 ) * + - CASE + + AVG ( DISTINCT - ( - 75 ) ) WHEN + ( - ( 28 ) ) * + 94 + + - 42 * 5 THEN + 24 * + ( + - 75 ) + 11 / + CAST( 1 AS SIGNED ) * - - COUNT( 12 ) * - 96 - - - ( - 61 ) + CAST( NULL AS SIGNED ) + - 60 * - 93 * 74 * 95 * 47 ELSE - + 79 / 3 - + COUNT( * ) * 91 * - CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT - SUM ( ALL 32 ) * + - CASE + + AVG ( DISTINCT - ( - 75 ) ) WHEN + ( - ( 28 ) ) * + 94 + + - 42 * 5 THEN + 24 * + ( + - 75 ) + 11 / + CAST ( 1 AS INTEGER ) * - - COUNT ( 12 ) * - 96 - - - ( - 61 ) + CAST ( NULL AS INTEGER ) + - 60 * - 93 * 74 * 95 * 47 ELSE - + 79 / 3 - + COUNT ( * ) * 91 * - CAST ( NULL AS REAL ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-388
SELECT ALL CAST( 73 AS SIGNED ) AS col2, 78 * - COUNT( * ) AS col1
----
73
-78

skipif mysql # not compatible
query II rowsort label-388
SELECT ALL CAST ( 73 AS INTEGER ) AS col2, 78 * - COUNT ( * ) AS col1
----
73
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT + 79 + - COUNT( * ), - 20 AS col2
----
78
-20

skipif mysql # not compatible
query II rowsort label-389
SELECT + 79 + - COUNT ( * ), - 20 AS col2
----
78
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT - + 32 + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-390
SELECT - + 32 + COUNT ( * )
----
-31

query I rowsort
SELECT - + 49 col1
----
-49

query I rowsort
SELECT - - ( 43 ) + - 47 * - - ( + 11 ) - + - 66 + - ( - + 92 ) + + 14 * - - 16 AS col0
----
-92

query I rowsort
SELECT + - 52 - + + 51 col0
----
-103

query II rowsort
SELECT + 50 * + 93 AS col0, 62 AS col2
----
4650
62

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT + + MIN( - 39 ) - - - 27 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-395
SELECT + + MIN ( - 39 ) - - - 27 AS col1
----
-66

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-397
SELECT + + 33 DIV + CAST( + 58 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-397
SELECT + + 33 / + CAST ( + 58 AS INTEGER )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-398
SELECT ALL - - CAST( NULL AS DECIMAL ) / - 46 + + + ( - 0 ) - + 21 AS col0, 72 * 34 * - 83
----
NULL
-203184

skipif mysql # not compatible
query II rowsort label-398
SELECT ALL - - CAST ( NULL AS REAL ) / - 46 + + + ( - 0 ) - + 21 AS col0, 72 * 34 * - 83
----
NULL
-203184

query I rowsort
SELECT DISTINCT 64 * 5 AS col1
----
320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-400
SELECT ALL + COUNT( * ) DIV - 19 * + COALESCE ( + 10, 46 ) + + 95 + + 42 AS col0
----
137

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL + COUNT ( * ) / - 19 * + COALESCE ( + 10, 46 ) + + 95 + + 42 AS col0
----
137

query I rowsort
SELECT + 74 * + 13 + ( + + 65 )
----
1027

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT ALL + 16 DIV + 35 * 10 + + 18 + + 35 + + 69 DIV - 50 - - 86
----
138

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL + 16 / + 35 * 10 + + 18 + + 35 + + 69 / - 50 - - 86
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT DISTINCT COUNT( * ) * - NULLIF ( - - 20, - + 93 ) * 19
----
-380

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT COUNT ( * ) * - NULLIF ( - - 20, - + 93 ) * 19
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT DISTINCT - 45 * - ( CASE + - 91 WHEN - ( - + 37 ) / - COALESCE ( + 10, + + 66 * - 27 + 30 + + SUM( DISTINCT + 91 ), - - 43 ) * 33 + 21 * - 35 THEN 53 + + - 39 - + 98 * - 52 - 60 * + 11 WHEN + + NULLIF ( + 43, + 64 ) / - COUNT( * ) THEN MAX( - - 60 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT - 45 * - ( CASE + - 91 WHEN - ( - + 37 ) / - COALESCE ( + 10, + + 66 * - 27 + 30 + + SUM ( DISTINCT + 91 ), - - 43 ) * 33 + 21 * - 35 THEN 53 + + - 39 - + 98 * - 52 - 60 * + 11 WHEN + + NULLIF ( + 43, + 64 ) / - COUNT ( * ) THEN MAX ( - - 60 ) ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL CASE + 88 WHEN + 10 THEN NULL WHEN + ( + + 71 ) THEN + 91 ELSE NULL END + - 79
----
NULL

query I rowsort
SELECT DISTINCT 47 + + - 48 AS col0
----
-1

query II rowsort
SELECT ALL - 57 AS col2, ( - + ( - - 86 ) )
----
-57
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT 99 + - - ( - + COUNT( 47 ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-408
SELECT 99 + - - ( - + COUNT ( 47 ) ) AS col0
----
98

query II rowsort
SELECT + 89, 85 AS col0
----
89
85

onlyif mysql # aggregate syntax: 
query II rowsort label-410
SELECT 73 AS col0, COUNT( * )
----
73
1

skipif mysql # not compatible
query II rowsort label-410
SELECT 73 AS col0, COUNT ( * )
----
73
1

query I rowsort
SELECT ALL 34 * - 42
----
-1428

query I rowsort
SELECT 18 * 57
----
1026

query II rowsort
SELECT 87, - 7 * - 58 AS col2
----
87
406

onlyif mysql # aggregate syntax: 
query II rowsort label-414
SELECT 73 * + 16 - + + ( - 72 ) + - + 37 + + 83 + + 33 * - + COUNT( * ) AS col0, - 26 AS col1
----
1253
-26

skipif mysql # not compatible
query II rowsort label-414
SELECT 73 * + 16 - + + ( - 72 ) + - + 37 + + 83 + + 33 * - + COUNT ( * ) AS col0, - 26 AS col1
----
1253
-26

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

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

query I rowsort
SELECT 8 * 20 * - + NULLIF ( 69, + 97 * + 77 ) AS col1
----
-11040

onlyif mysql # aggregate syntax: 
query II rowsort label-417
SELECT ALL 59 AS col1, - ( + NULLIF ( + - ( + 65 ), - + 8 - + + 13 ) ) * + COUNT( * )
----
59
65

skipif mysql # not compatible
query II rowsort label-417
SELECT ALL 59 AS col1, - ( + NULLIF ( + - ( + 65 ), - + 8 - + + 13 ) ) * + COUNT ( * )
----
59
65

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-419
SELECT 24 + - COALESCE ( 78, + COUNT( * ) ) + + CASE CAST( NULL AS SIGNED ) WHEN + 64 + 11 - - + 67 THEN NULL WHEN - - COUNT( * ) THEN - - COUNT( * ) * + COUNT( - 72 ) * + 61 * + + 84 * - 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-419
SELECT 24 + - COALESCE ( 78, + COUNT ( * ) ) + + CASE CAST ( NULL AS INTEGER ) WHEN + 64 + 11 - - + 67 THEN NULL WHEN - - COUNT ( * ) THEN - - COUNT ( * ) * + COUNT ( - 72 ) * + 61 * + + 84 * - 88 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-420
SELECT ( - - 28 ) * - ( - 68 ) * - 44 * + SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-420
SELECT ( - - 28 ) * - ( - 68 ) * - 44 * + SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 33 * + - 30 AS col1
----
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-422
SELECT - 71, - 1 * - 94 * - COUNT( * ) col2
----
-71
-94

skipif mysql # not compatible
query II rowsort label-422
SELECT - 71, - 1 * - 94 * - COUNT ( * ) col2
----
-71
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-423
SELECT 8 * - SUM( 65 ), + 22 + 24 AS col0
----
-520
46

skipif mysql # not compatible
query II rowsort label-423
SELECT 8 * - SUM ( 65 ), + 22 + 24 AS col0
----
-520
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-424
SELECT CAST( NULL AS SIGNED ) / 24
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT CAST ( NULL AS INTEGER ) / 24
----
NULL

query I rowsort
SELECT + 73 * - 61 AS col1
----
-4453

query I rowsort
SELECT 38 + 79
----
117

query I rowsort
SELECT ALL + 0 * ( - 13 )
----
0

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

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

query I rowsort
SELECT 40 * - + 43 AS col1
----
-1720

query I rowsort
SELECT ALL - + 26 + 35 - + 78 + + 33 - - + 52 col1
----
16

query I rowsort
SELECT DISTINCT - 9 + - 69 AS col1
----
-78

query I rowsort
SELECT ALL 53 + - - ( + - ( - - 78 ) )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-433
SELECT + 23 * - + NULLIF ( 82, + - COUNT( * ) ) AS col0, + 84 AS col2
----
-1886
84

skipif mysql # not compatible
query II rowsort label-433
SELECT + 23 * - + NULLIF ( 82, + - COUNT ( * ) ) AS col0, + 84 AS col2
----
-1886
84

query I rowsort
SELECT ALL - 65 + + 38 + 48 + - 28 col2
----
-7

query I rowsort
SELECT DISTINCT + - 1 + - + 76 * 54 AS col2
----
-4105

query I rowsort
SELECT DISTINCT - - 15 AS col1
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT + 89 - + COUNT( + + 37 )
----
88

skipif mysql # not compatible
query I rowsort label-438
SELECT + 89 - + COUNT ( + + 37 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-439
SELECT - CASE + + 82 WHEN - 76 THEN NULL WHEN - 29 THEN + 23 + - COUNT( * ) + - CAST( MIN( COALESCE ( - + ( + + 96 ), - 69 ) ) AS SIGNED ) * - 35 * 55 - + 17 * - 90 - 72 WHEN 75 + + + SUM( ALL - 79 ) + + COALESCE ( 32, - 16 * - - ( - ( 86 ) ) * - 48 - 51 ) THEN ( + 26 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT - CASE + + 82 WHEN - 76 THEN NULL WHEN - 29 THEN + 23 + - COUNT ( * ) + - CAST ( MIN ( COALESCE ( - + ( + + 96 ), - 69 ) ) AS INTEGER ) * - 35 * 55 - + 17 * - 90 - 72 WHEN 75 + + + SUM ( ALL - 79 ) + + COALESCE ( 32, - 16 * - - ( - ( 86 ) ) * - 48 - 51 ) THEN ( + 26 ) END
----
NULL

query I rowsort
SELECT + 54 * + 66 + - ( + 82 ) col1
----
3482

query I rowsort
SELECT + 67 * + - 7 + - - ( - ( 10 ) )
----
-479

query I rowsort
SELECT 66 * 68
----
4488

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-443
SELECT + 80 AS col2, COALESCE ( + - 68, - 97 DIV + SUM( 74 ) + - 66 ) + 47 AS col1
----
80
-21

skipif mysql # not compatible
query II rowsort label-443
SELECT + 80 AS col2, COALESCE ( + - 68, - 97 / + SUM ( 74 ) + - 66 ) + 47 AS col1
----
80
-21

query II rowsort
SELECT ALL - 25, 16 AS col0
----
-25
16

query I rowsort
SELECT ALL 69 - + 45 + 69 * - + 74
----
-5082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-446
SELECT 69 DIV + ( - COALESCE ( - 76, 58 DIV - COUNT( * ) - - + ( - 71 ) + + 94 + - - 71, 25 + + 78 - - 84 + - 3 DIV - 60 * - 75 ) ) - ( - - CAST( - 61 AS SIGNED ) ) + 69 * + + 32 * + + 28 * 50 AS col2
----
3091261

skipif mysql # not compatible
query I rowsort label-446
SELECT 69 / + ( - COALESCE ( - 76, 58 / - COUNT ( * ) - - + ( - 71 ) + + 94 + - - 71, 25 + + 78 - - 84 + - 3 / - 60 * - 75 ) ) - ( - - CAST ( - 61 AS INTEGER ) ) + 69 * + + 32 * + + 28 * 50 AS col2
----
3091261

query I rowsort
SELECT ALL + 68 - + ( - 76 ) * + 67 * 50
----
254668

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT 64 * - - COUNT( * ) * 39 AS col2
----
2496

skipif mysql # not compatible
query I rowsort label-448
SELECT 64 * - - COUNT ( * ) * 39 AS col2
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT DISTINCT MIN( - - 19 ) * COUNT( * ) + 71 + ( 34 )
----
124

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT MIN ( - - 19 ) * COUNT ( * ) + 71 + ( 34 )
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL COUNT( * ) * 91 * NULLIF ( - 94, 5 * - - 49 ) AS col2
----
-8554

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL COUNT ( * ) * 91 * NULLIF ( - 94, 5 * - - 49 ) AS col2
----
-8554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT CASE + - COUNT( * ) WHEN 47 THEN NULL WHEN - - ( - 55 ) * + COALESCE ( - CAST( NULL AS SIGNED ), - 23 * - + 97 + 27 ) * + 99 + + - 30 + - CASE + + 48 WHEN 13 THEN + - 31 / - CASE - 5 WHEN - 24 THEN - 45 * COUNT( * ) / + - 22 ELSE NULL END END THEN + CAST( + 82 AS SIGNED ) + - 5 ELSE - - 75 END + - - COUNT( DISTINCT - 73 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-451
SELECT CASE + - COUNT ( * ) WHEN 47 THEN NULL WHEN - - ( - 55 ) * + COALESCE ( - CAST ( NULL AS INTEGER ), - 23 * - + 97 + 27 ) * + 99 + + - 30 + - CASE + + 48 WHEN 13 THEN + - 31 / - CASE - 5 WHEN - 24 THEN - 45 * COUNT ( * ) / + - 22 ELSE NULL END END THEN + CAST ( + 82 AS INTEGER ) + - 5 ELSE - - 75 END + - - COUNT ( DISTINCT - 73 ) AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-452
SELECT CAST( NULL AS SIGNED ) / - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-452
SELECT CAST ( NULL AS INTEGER ) / - 51
----
NULL

query I rowsort
SELECT 92 + - - 70 AS col1
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-454
SELECT COUNT( * ) - + 36 AS col1, 59 * 88 AS col2
----
-35
5192

skipif mysql # not compatible
query II rowsort label-454
SELECT COUNT ( * ) - + 36 AS col1, 59 * 88 AS col2
----
-35
5192

query II rowsort
SELECT DISTINCT + 50 * + + 21, 90 AS col0
----
1050
90

onlyif mysql # aggregate syntax: 
query II rowsort label-456
SELECT - MAX( + + 91 ) AS col1, 3 * + 87 AS col1
----
-91
261

skipif mysql # not compatible
query II rowsort label-456
SELECT - MAX ( + + 91 ) AS col1, 3 * + 87 AS col1
----
-91
261

query I rowsort
SELECT 27 + - 68 + + - 43 AS col0
----
-84

query I rowsort
SELECT 43 * + ( + - 79 ) AS col1
----
-3397

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT COALESCE ( + 9, + - COUNT( * ) * + 21 * - COUNT( * ) + + + 72 - - 94, - 86 + - 41 * - - 13 * COUNT( * ) * - 92 ) + + 72 col0
----
81

skipif mysql # not compatible
query I rowsort label-459
SELECT COALESCE ( + 9, + - COUNT ( * ) * + 21 * - COUNT ( * ) + + + 72 - - 94, - 86 + - 41 * - - 13 * COUNT ( * ) * - 92 ) + + 72 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT DISTINCT ( - ( 16 ) ) * + COUNT( * ) * - CASE 74 WHEN + ( 37 ) THEN NULL ELSE + + 99 END + - - COUNT( * )
----
1585

skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT ( - ( 16 ) ) * + COUNT ( * ) * - CASE 74 WHEN + ( 37 ) THEN NULL ELSE + + 99 END + - - COUNT ( * )
----
1585

query I rowsort
SELECT ALL + 71 * - 42 AS col2
----
-2982

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

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

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

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

query I rowsort
SELECT ALL - 80 + 15
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT + 94 + - 81 * - COUNT( * ) AS col2
----
175

skipif mysql # not compatible
query I rowsort label-465
SELECT + 94 + - 81 * - COUNT ( * ) AS col2
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL - COUNT( * ) * + 88 + - COUNT( * ) - + 72 * - COUNT( * ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - COUNT ( * ) * + 88 + - COUNT ( * ) - + 72 * - COUNT ( * ) col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT NULLIF ( 68, - - 75 * - 83 + + COUNT( * ) + 52 + - 30 ) + + 3 col0
----
71

skipif mysql # not compatible
query I rowsort label-467
SELECT NULLIF ( 68, - - 75 * - 83 + + COUNT ( * ) + 52 + - 30 ) + + 3 col0
----
71

query II rowsort
SELECT + 21 + - + 9 AS col0, - 61 AS col1
----
12
-61

query I rowsort
SELECT ALL - 19 + 51 AS col2
----
32

query I rowsort
SELECT - 60 + 58
----
-2

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

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

query I rowsort
SELECT ALL - + 11 + - 51
----
-62

query I rowsort
SELECT 11 + 95
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT - NULLIF ( ( + 64 ), + 18 ) - + 86 DIV + 4 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-474
SELECT - NULLIF ( ( + 64 ), + 18 ) - + 86 / + 4 AS col0
----
-85

query I rowsort
SELECT - 87 + + 1
----
-86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-476
SELECT - 57 + + CAST( - - 73 AS SIGNED ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT - 57 + + CAST ( - - 73 AS INTEGER ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + - 98 + - 18 + + 83 * 50 + - 89 * + 63 col0
----
-1573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-478
SELECT ALL - + COUNT( * ) * - - 20 * + 43 + CAST( NULLIF ( - 70, 91 / - + 5 ) AS SIGNED ) AS col2
----
-930

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL - + COUNT ( * ) * - - 20 * + 43 + CAST ( NULLIF ( - 70, 91 / - + 5 ) AS INTEGER ) AS col2
----
-930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-479
SELECT DISTINCT + CAST( + 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT + CAST ( + 87 AS INTEGER )
----
87

query I rowsort
SELECT ALL + - 23 * - 36 + - ( 87 ) AS col0
----
741

query I rowsort
SELECT + - 43 * - 30 * + 0 * - + ( + 3 ) * + 13 + 76 + + + 31
----
107

query I rowsort
SELECT ALL + + 93 AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-483
SELECT 23 DIV 80 + 3 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-483
SELECT 23 / 80 + 3 AS col0
----
3

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

query I rowsort
SELECT COALESCE ( + 94, - 89 )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-486
SELECT - ( - COALESCE ( - 98, - 57, MIN( ALL - + 53 ) * + - COUNT( * ) ) ) * - 22 AS col2, 68 AS col2
----
2156
68

skipif mysql # not compatible
query II rowsort label-486
SELECT - ( - COALESCE ( - 98, - 57, MIN ( ALL - + 53 ) * + - COUNT ( * ) ) ) * - 22 AS col2, 68 AS col2
----
2156
68

query I rowsort
SELECT - 70 * 46
----
-3220

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT CASE + - 45 WHEN COUNT( * ) THEN NULL ELSE + 75 END
----
75

skipif mysql # not compatible
query I rowsort label-488
SELECT CASE + - 45 WHEN COUNT ( * ) THEN NULL ELSE + 75 END
----
75

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

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

query I rowsort
SELECT - 35 * 27 + - - 8 * + + 50 AS col1
----
-545

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - - NULLIF ( - - ( + 96 ), - + 18 / - + CAST( NULL AS SIGNED ) ) * 91 * 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - - NULLIF ( - - ( + 96 ), - + 18 / - + CAST ( NULL AS INTEGER ) ) * 91 * 5 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-494
SELECT DISTINCT + CASE - 18 WHEN - COUNT( * ) + - - 89 THEN + + 81 WHEN CAST( 54 AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT + CASE - 18 WHEN - COUNT ( * ) + - - 89 THEN + + 81 WHEN CAST ( 54 AS INTEGER ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT + MAX( ALL - ( NULLIF ( ( 93 ), + - ( 88 ) ) ) ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-495
SELECT + MAX ( ALL - ( NULLIF ( ( 93 ), + - ( 88 ) ) ) ) AS col1
----
-93

query I rowsort
SELECT ALL 45 * + 56 col2
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-497
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), 91 ) AS col1, 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-497
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), 91 ) AS col1, 91
----
NULL
91

query I rowsort
SELECT - 68 * - 26 AS col2
----
1768

query I rowsort
SELECT - 27 - - 38
----
11

query I rowsort
SELECT ALL ( + 12 ) * + 89 AS col1
----
1068

query I rowsort
SELECT - 44 * - 29 AS col1
----
1276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-502
SELECT ALL 32 + + CAST( NULL AS SIGNED ) * + 8 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL 32 + + CAST ( NULL AS INTEGER ) * + 8 * - 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-503
SELECT CAST( + + COUNT( DISTINCT 83 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-503
SELECT CAST ( + + COUNT ( DISTINCT 83 ) AS INTEGER )
----
1

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

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 16
----
NULL

query I rowsort
SELECT DISTINCT - 82 + 76 AS col2
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT + CASE - 68 WHEN + 34 THEN - - 65 * + 44 + COALESCE ( + 1, + MIN( 18 ) ) END * + 67 * + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT + CASE - 68 WHEN + 34 THEN - - 65 * + 44 + COALESCE ( + 1, + MIN ( 18 ) ) END * + 67 * + + 96
----
NULL

query I rowsort
SELECT ALL ( + 64 ) * 69 AS col2
----
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT - - SUM( + 56 ) + + 8
----
64

skipif mysql # not compatible
query I rowsort label-509
SELECT - - SUM ( + 56 ) + + 8
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL + + 71 - CASE - COUNT( * ) WHEN 26 THEN 88 * + - COUNT( * ) + - 59 + - 20 WHEN + 85 * 98 THEN NULL WHEN - 36 / 16 * + AVG ( ALL + CASE 20 WHEN - ( - 59 ) THEN + + 56 WHEN 60 THEN - ( + 45 ) WHEN + 36 THEN - 41 ELSE - 63 END ) + - + ( 88 ) THEN - - 84 / + + 96 / - + 24 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + + 71 - CASE - COUNT ( * ) WHEN 26 THEN 88 * + - COUNT ( * ) + - 59 + - 20 WHEN + 85 * 98 THEN NULL WHEN - 36 / 16 * + AVG ( ALL + CASE 20 WHEN - ( - 59 ) THEN + + 56 WHEN 60 THEN - ( + 45 ) WHEN + 36 THEN - 41 ELSE - 63 END ) + - + ( 88 ) THEN - - 84 / + + 96 / - + 24 ELSE NULL END AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-512
SELECT DISTINCT 86, - 85 * CAST( NULL AS SIGNED ) + - - 44 * - 21 AS col0
----
86
NULL

skipif mysql # not compatible
query II rowsort label-512
SELECT DISTINCT 86, - 85 * CAST ( NULL AS INTEGER ) + - - 44 * - 21 AS col0
----
86
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-513
SELECT + 7 DIV SUM( ALL + 19 ) * - - 43 - + 74 * - 27 + - COUNT( * ) AS col1
----
1997

skipif mysql # not compatible
query I rowsort label-513
SELECT + 7 / SUM ( ALL + 19 ) * - - 43 - + 74 * - 27 + - COUNT ( * ) AS col1
----
1997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT ALL MAX( ALL + 92 ) * + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL MAX ( ALL + 92 ) * + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-515
SELECT ALL - COALESCE ( + 76, + CAST( NULL AS SIGNED ), + - 32 )
----
-76

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL - COALESCE ( + 76, + CAST ( NULL AS INTEGER ), + - 32 )
----
-76

query I rowsort
SELECT DISTINCT + 5 * 97 + + - 61 + - 99 - + 97 + - 3 + + 32
----
257

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT - + SUM( NULLIF ( 22, - + 6 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-517
SELECT - + SUM ( NULLIF ( 22, - + 6 ) )
----
-22

query II rowsort
SELECT + 65 + - ( + - 90 ) AS col1, - 31
----
155
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-519
SELECT + ( + 40 ) + + - 65 + CAST( NULL AS SIGNED ) + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT + ( + 40 ) + + - 65 + CAST ( NULL AS INTEGER ) + - 54
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT ALL - 14 DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL - 14 / 82 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-521
SELECT CAST( NULL AS SIGNED ), COUNT( * ) DIV ( + 6 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-521
SELECT CAST ( NULL AS INTEGER ), COUNT ( * ) / ( + 6 ) AS col2
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-522
SELECT - COUNT( * ) DIV + + 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-522
SELECT - COUNT ( * ) / + + 77 col1
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-524
SELECT 42 DIV + + MAX( ALL CAST( 16 AS SIGNED ) ) - 21 col2
----
-19

skipif mysql # not compatible
query I rowsort label-524
SELECT 42 / + + MAX ( ALL CAST ( 16 AS INTEGER ) ) - 21 col2
----
-19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-526
SELECT DISTINCT - NULLIF ( - 66, + + 73 * + 2 ) DIV - ( + 36 ) + 7 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT - NULLIF ( - 66, + + 73 * + 2 ) / - ( + 36 ) + 7 AS col0
----
6

query I rowsort
SELECT - 81 * - 36 * - 19 AS col2
----
-55404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-528
SELECT ALL - 94 * - - MAX( - 41 ) * 56 + COUNT( * ) + - + CAST( NULL AS SIGNED ) * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - 94 * - - MAX ( - 41 ) * 56 + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 24 * - + 39
----
936

query I rowsort
SELECT - 45 * + 8 AS col2
----
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-531
SELECT - 3 + 49 AS col2, + 32 + + 44 - + 82 - - COUNT( DISTINCT - 46 ) + + 87
----
46
82

skipif mysql # not compatible
query II rowsort label-531
SELECT - 3 + 49 AS col2, + 32 + + 44 - + 82 - - COUNT ( DISTINCT - 46 ) + + 87
----
46
82

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT ALL - COALESCE ( + + 68, - - NULLIF ( + + 21, COUNT( + + 21 ) ) * - 58 * - ( + ( - COUNT( * ) ) ) - - 10 + + 84 ) * 61 + 19 + 93 * + 37 + 4 + + 33 + 4 - + 84 / CASE + ( - 90 ) WHEN + 78 THEN 92 ELSE NULL END * - ( + 77 ) + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT ALL - COALESCE ( + + 68, - - NULLIF ( + + 21, COUNT ( + + 21 ) ) * - 58 * - ( + ( - COUNT ( * ) ) ) - - 10 + + 84 ) * 61 + 19 + 93 * + 37 + 4 + + 33 + 4 - + 84 / CASE + ( - 90 ) WHEN + 78 THEN 92 ELSE NULL END * - ( + 77 ) + + 71
----
NULL

query I rowsort
SELECT COALESCE ( 95, - - 40, + 52 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-534
SELECT ALL CAST( - - 37 AS SIGNED ) * - 77 - 41 + 34 + + 78 * 9 AS col0
----
-2154

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL CAST ( - - 37 AS INTEGER ) * - 77 - 41 + 34 + + 78 * 9 AS col0
----
-2154

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT + COUNT( * ), 99 + + 46 AS col0
----
1
145

skipif mysql # not compatible
query II rowsort label-535
SELECT + COUNT ( * ), 99 + + 46 AS col0
----
1
145

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT DISTINCT - 22 * + MIN( ALL 65 ) * 34 col1
----
-48620

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT - 22 * + MIN ( ALL 65 ) * 34 col1
----
-48620

query I rowsort
SELECT - - 72 + + - 25
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-538
SELECT - 74 AS col1, - CAST( - - 3 AS SIGNED )
----
-74
-3

skipif mysql # not compatible
query II rowsort label-538
SELECT - 74 AS col1, - CAST ( - - 3 AS INTEGER )
----
-74
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-539
SELECT + COUNT( * ) AS col0, + 58
----
1
58

skipif mysql # not compatible
query II rowsort label-539
SELECT + COUNT ( * ) AS col0, + 58
----
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT ALL - NULLIF ( MAX( + 5 ), 52 ) * - 94 AS col2
----
470

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL - NULLIF ( MAX ( + 5 ), 52 ) * - 94 AS col2
----
470

query II rowsort
SELECT - ( - 56 ) AS col2, - 20
----
56
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-542
SELECT CAST( NULL AS SIGNED ) + + COALESCE ( 19, - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-542
SELECT CAST ( NULL AS INTEGER ) + + COALESCE ( 19, - 80 )
----
NULL

query I rowsort
SELECT 72 + 77 AS col0
----
149

query I rowsort
SELECT DISTINCT - 26 * 95 AS col0
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT - 92 + COUNT( DISTINCT + 36 )
----
-91

skipif mysql # not compatible
query I rowsort label-545
SELECT - 92 + COUNT ( DISTINCT + 36 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT MIN( ALL 97 ) * + + 31 * - 15 AS col0
----
-45105

skipif mysql # not compatible
query I rowsort label-546
SELECT MIN ( ALL 97 ) * + + 31 * - 15 AS col0
----
-45105

query II rowsort
SELECT - 70 AS col2, + 68
----
-70
68

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT COUNT( * ) + - + 57
----
-56

skipif mysql # not compatible
query I rowsort label-548
SELECT COUNT ( * ) + - + 57
----
-56

query I rowsort
SELECT + COALESCE ( + 87, + + NULLIF ( 82, + 75 * + - 93 / - 3 ) )
----
87

query I rowsort
SELECT - 32 + - 39
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT + ( - + ( + COUNT( * ) ) ) + - 61 + NULLIF ( - 61, - CASE 85 WHEN - 72 THEN - - 61 * + 1 + 80 END * - 22 ) AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-551
SELECT + ( - + ( + COUNT ( * ) ) ) + - 61 + NULLIF ( - 61, - CASE 85 WHEN - 72 THEN - - 61 * + 1 + 80 END * - 22 ) AS col0
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-552
SELECT ALL + 10 * 80 - - + 36 - - 66 + - + 84 + - 84 * ( + NULLIF ( + 56, COUNT( * ) * + - 78 - - - CAST( + + 40 AS SIGNED ) ) ) * + - 0 + + + 53 * - COALESCE ( 77, 42, - + COALESCE ( - AVG ( + 48 ), CASE - - 46 WHEN + + 23 * - 34 THEN NULL WHEN - 81 + ( + + 5 ) * + 20 - + ( - COUNT( * ) ) * - - ( COUNT( * ) ) THEN NULL ELSE - MIN( 43 ) * - MAX( DISTINCT + 6 ) DIV - 40 + - 85 - + COUNT( * ) END, - 11 ) DIV - 8 * - 87 + 54 ) col2
----
-3263

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL + 10 * 80 - - + 36 - - 66 + - + 84 + - 84 * ( + NULLIF ( + 56, COUNT ( * ) * + - 78 - - - CAST ( + + 40 AS INTEGER ) ) ) * + - 0 + + + 53 * - COALESCE ( 77, 42, - + COALESCE ( - AVG ( + 48 ), CASE - - 46 WHEN + + 23 * - 34 THEN NULL WHEN - 81 + ( + + 5 ) * + 20 - + ( - COUNT ( * ) ) * - - ( COUNT ( * ) ) THEN NULL ELSE - MIN ( 43 ) * - MAX ( DISTINCT + 6 ) / - 40 + - 85 - + COUNT ( * ) END, - 11 ) / - 8 * - 87 + 54 ) col2
----
-3263

query I rowsort
SELECT DISTINCT 70 * - 61
----
-4270

query I rowsort
SELECT 2 * + - 31 * 22 AS col1
----
-1364

query I rowsort
SELECT ALL 5 * + ( 45 )
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL COUNT( - 42 ) + 87 * + - 94 * + 84 + + + 62 + 44 + COUNT( * ) + - 17 AS col1
----
-686861

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL COUNT ( - 42 ) + 87 * + - 94 * + 84 + + + 62 + 44 + COUNT ( * ) + - 17 AS col1
----
-686861

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT - 27 * MIN( + 93 ) * - ( + 27 ) + 45 col1
----
67842

skipif mysql # not compatible
query I rowsort label-557
SELECT - 27 * MIN ( + 93 ) * - ( + 27 ) + 45 col1
----
67842

query I rowsort
SELECT ALL 69 + 54
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL ( COUNT( 82 ) ) + + 26
----
27

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL ( COUNT ( 82 ) ) + + 26
----
27

query I rowsort
SELECT 53 * - 45 AS col2
----
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL + COUNT( 0 ) / + - CASE 13 WHEN + 44 THEN + + COUNT( * ) ELSE NULL END * 26 + + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + COUNT ( 0 ) / + - CASE 13 WHEN + 44 THEN + + COUNT ( * ) ELSE NULL END * 26 + + 49 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-562
SELECT DISTINCT + CASE 56 WHEN - + AVG ( CAST( NULL AS SIGNED ) ) - - - 13 + + COUNT( * ) THEN NULL WHEN - + ( - - COUNT( * ) ) THEN 73 ELSE - 56 END + - + COALESCE ( + 8, - 38 ) AS col0, 1 + - - COUNT( * )
----
-64
2

skipif mysql # not compatible
query II rowsort label-562
SELECT DISTINCT + CASE 56 WHEN - + AVG ( CAST ( NULL AS INTEGER ) ) - - - 13 + + COUNT ( * ) THEN NULL WHEN - + ( - - COUNT ( * ) ) THEN 73 ELSE - 56 END + - + COALESCE ( + 8, - 38 ) AS col0, 1 + - - COUNT ( * )
----
-64
2

query I rowsort
SELECT DISTINCT - 65 col2
----
-65

query I rowsort
SELECT DISTINCT - 2 + 99
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL + 47 + + 31 + - + 81 + - NULLIF ( NULLIF ( - COUNT( * ), 1 ), + 42 ) * + 3 * + ( - 2 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL + 47 + + 31 + - + 81 + - NULLIF ( NULLIF ( - COUNT ( * ), 1 ), + 42 ) * + 3 * + ( - 2 ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-566
SELECT + + 95 * - 82 * + 24 + - 22 DIV + 83 + COUNT( + + 27 ) AS col0
----
-186959

skipif mysql # not compatible
query I rowsort label-566
SELECT + + 95 * - 82 * + 24 + - 22 / + 83 + COUNT ( + + 27 ) AS col0
----
-186959

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-567
SELECT ALL - 48 - - CAST( NULL AS SIGNED ), - 9 * - ( - + 82 ) AS col0
----
NULL
-738

skipif mysql # not compatible
query II rowsort label-567
SELECT ALL - 48 - - CAST ( NULL AS INTEGER ), - 9 * - ( - + 82 ) AS col0
----
NULL
-738

query I rowsort
SELECT 86 * 8
----
688

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL - COUNT( * ) * - + COUNT( * ) + 20
----
21

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) + 20
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-570
SELECT + 21 * + 51 - - + CAST( - COALESCE ( + - CAST( ( 69 ) AS DECIMAL ), + + COUNT( * ) * - - 41 - + + COUNT( * ), - 71, - 22 + + + 57 ) AS SIGNED ) col2
----
1140

skipif mysql # not compatible
query I rowsort label-570
SELECT + 21 * + 51 - - + CAST ( - COALESCE ( + - CAST ( ( 69 ) AS REAL ), + + COUNT ( * ) * - - 41 - + + COUNT ( * ), - 71, - 22 + + + 57 ) AS INTEGER ) col2
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT - SUM( 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-571
SELECT - SUM ( 8 ) AS col1
----
-8

query II rowsort
SELECT ALL - 88 - - 31 AS col0, 20 * - 70 - - 62
----
-57
-1338

onlyif mysql # aggregate syntax: 
query II rowsort label-573
SELECT 9 * + CASE - 44 WHEN - ( + 60 ) + - 38 THEN + COUNT( * ) END * + COUNT( * ) * + MIN( + - 70 ) - - + MIN( - - 3 ) * - + 99, - COALESCE ( - 72, COUNT( * ) * 79 - 30, 6 ) + - - CASE - - 77 WHEN + - 91 THEN 62 END + + 22 * + 19 * - + 47 col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-573
SELECT 9 * + CASE - 44 WHEN - ( + 60 ) + - 38 THEN + COUNT ( * ) END * + COUNT ( * ) * + MIN ( + - 70 ) - - + MIN ( - - 3 ) * - + 99, - COALESCE ( - 72, COUNT ( * ) * 79 - 30, 6 ) + - - CASE - - 77 WHEN + - 91 THEN 62 END + + 22 * + 19 * - + 47 col0
----
NULL
NULL

query I rowsort
SELECT ALL + - 29 - - + 69 + 85
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-575
SELECT DISTINCT - 49 DIV + 18
----
-2

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT - 49 / + 18
----
-2

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-577
SELECT - 81 / - 54 * + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-577
SELECT - 81 / - 54 * + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + CASE - 32 WHEN - + 65 THEN COALESCE ( 85, + 12 + + 50 ) * 87 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-579
SELECT ALL + + 99 DIV 50 AS col0, + 84
----
1
84

skipif mysql # not compatible
query II rowsort label-579
SELECT ALL + + 99 / 50 AS col0, + 84
----
1
84

onlyif mysql # DIV for integer division: 
query II rowsort label-580
SELECT + 17 DIV - 37 AS col2, 74
----
0
74

skipif mysql # not compatible
query II rowsort label-580
SELECT + 17 / - 37 AS col2, 74
----
0
74

query I rowsort
SELECT ALL + + NULLIF ( + 51, - - 31 ) * + 25 * 26 * + 96 * - 20 - + ( - ( ( - 31 ) ) ) + - 69 AS col1
----
-63648100

query I rowsort
SELECT DISTINCT + 23 + + 3 * - - 77 * - 15 AS col2
----
-3442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-583
SELECT - 83 DIV - ( - - COUNT( * ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-583
SELECT - 83 / - ( - - COUNT ( * ) ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-584
SELECT ALL COALESCE ( 75, - 5 * + 33 * - + 57 + 82 + - COUNT( * ) ) + + 19, 88 * - 2 AS col0
----
94
-176

skipif mysql # not compatible
query II rowsort label-584
SELECT ALL COALESCE ( 75, - 5 * + 33 * - + 57 + 82 + - COUNT ( * ) ) + + 19, 88 * - 2 AS col0
----
94
-176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-585
SELECT DISTINCT ( 96 ) + + 42 AS col0, - 58 * + - COUNT( * ) DIV 99 AS col1
----
138
0

skipif mysql # not compatible
query II rowsort label-585
SELECT DISTINCT ( 96 ) + + 42 AS col0, - 58 * + - COUNT ( * ) / 99 AS col1
----
138
0

onlyif mysql # DIV for integer division: 
query II rowsort label-586
SELECT DISTINCT + 96 + + 67 DIV - 31 AS col1, 77 AS col1
----
94
77

skipif mysql # not compatible
query II rowsort label-586
SELECT DISTINCT + 96 + + 67 / - 31 AS col1, 77 AS col1
----
94
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-587
SELECT ALL CAST( - 40 AS SIGNED ) + - 67 * + 89
----
-6003

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL CAST ( - 40 AS INTEGER ) + - 67 * + 89
----
-6003

onlyif mysql # aggregate syntax: 
query II rowsort label-588
SELECT DISTINCT 37 AS col1, COUNT( * ) * ( - COALESCE ( - 56, - - 98, + COUNT( * ) + 18 ) ) + - NULLIF ( - 65, + 6 ) * - 44 * COUNT( * ) * + 33 AS col2
----
37
-94324

skipif mysql # not compatible
query II rowsort label-588
SELECT DISTINCT 37 AS col1, COUNT ( * ) * ( - COALESCE ( - 56, - - 98, + COUNT ( * ) + 18 ) ) + - NULLIF ( - 65, + 6 ) * - 44 * COUNT ( * ) * + 33 AS col2
----
37
-94324

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT 1 + + - MAX( + 21 )
----
-20

skipif mysql # not compatible
query I rowsort label-589
SELECT 1 + + - MAX ( + 21 )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-590
SELECT COUNT( * ) * - 99 DIV + + 27 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-590
SELECT COUNT ( * ) * - 99 / + + 27 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT + MIN( + ( - 53 ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-591
SELECT + MIN ( + ( - 53 ) ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT ALL - CASE 56 WHEN + COUNT( + 94 ) THEN NULL WHEN - COUNT( * ) * - 26 + - 16 THEN ( 13 ) ELSE NULL END * - COUNT( * ) / 9 + - - 99 - + 17 + - SUM( + 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL - CASE 56 WHEN + COUNT ( + 94 ) THEN NULL WHEN - COUNT ( * ) * - 26 + - 16 THEN ( 13 ) ELSE NULL END * - COUNT ( * ) / 9 + - - 99 - + 17 + - SUM ( + 16 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT - 3 * - ( - 65 ) * COUNT( * ) + + COUNT( * ) + - 93
----
-287

skipif mysql # not compatible
query I rowsort label-593
SELECT - 3 * - ( - 65 ) * COUNT ( * ) + + COUNT ( * ) + - 93
----
-287

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT MIN( - 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-594
SELECT MIN ( - 70 ) AS col1
----
-70

query I rowsort
SELECT DISTINCT 51 * - - 70
----
3570

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT - COUNT( * ) * 56 - - - 69
----
-125

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT - COUNT ( * ) * 56 - - - 69
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT ALL - COUNT( * ) AS col2, 99 AS col1
----
-1
99

skipif mysql # not compatible
query II rowsort label-597
SELECT ALL - COUNT ( * ) AS col2, 99 AS col1
----
-1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT + MIN( ALL COALESCE ( - 31, 39 ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-598
SELECT + MIN ( ALL COALESCE ( - 31, 39 ) ) AS col0
----
-31

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

skipif mysql # not compatible
query II rowsort label-599
SELECT + COUNT ( * ), - 60 col1
----
1
-60

query I rowsort
SELECT + 65 * + + 50 + - + 81
----
3169

query I rowsort
SELECT ( + 95 ) * 78
----
7410

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT + - 97 + + 26 DIV - + 76 * 16 + - 2 * - 78 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-602
SELECT + - 97 + + 26 / - + 76 * 16 + - 2 * - 78 AS col0
----
59

query II rowsort
SELECT + 36, 26 AS col0
----
36
26

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT ALL + - 77 DIV - 39
----
1

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL + - 77 / - 39
----
1

query I rowsort
SELECT + 38 * - 84 AS col1
----
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT ALL + - MAX( DISTINCT - 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL + - MAX ( DISTINCT - 75 ) AS col2
----
75

query I rowsort
SELECT ALL - - 64 * + - 99
----
-6336

query I rowsort
SELECT - - 40 * - 13
----
-520

query I rowsort
SELECT - + 82 + 72 col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT - COALESCE ( + 3, + 9 * + 96, + 88 + + MIN( ALL - + 13 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-610
SELECT - COALESCE ( + 3, + 9 * + 96, + 88 + + MIN ( ALL - + 13 ) )
----
-3

query I rowsort
SELECT ALL - - ( - 68 ) + - ( 78 )
----
-146

query I rowsort
SELECT + COALESCE ( + 81, - 62, + 13 + + 43 ) + - - 16
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT - 10 - COUNT( * ) * MAX( - ( ( + 0 ) ) ) - - 44 + 63
----
97

skipif mysql # not compatible
query I rowsort label-613
SELECT - 10 - COUNT ( * ) * MAX ( - ( ( + 0 ) ) ) - - 44 + 63
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT - 54 + + ( - + COUNT( * ) ) + + + 66
----
11

skipif mysql # not compatible
query I rowsort label-614
SELECT - 54 + + ( - + COUNT ( * ) ) + + + 66
----
11

query I rowsort
SELECT ALL + 93 + - 27 * - + 16
----
525

query I rowsort
SELECT ALL + 24 + 9 + 59 AS col2
----
92

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

query II rowsort
SELECT - + 19 AS col2, + 98 * + 74 col2
----
-19
7252

query I rowsort
SELECT ALL + ( + 89 ) + + 34
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-620
SELECT - 88 + - 60 - + - ( 92 ) + - 40 DIV COUNT( * ) + - 99 * 40 AS col0
----
-4056

skipif mysql # not compatible
query I rowsort label-620
SELECT - 88 + - 60 - + - ( 92 ) + - 40 / COUNT ( * ) + - 99 * 40 AS col0
----
-4056

query I rowsort
SELECT ALL + COALESCE ( + 68, 79 ) + - 90 AS col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-622
SELECT - 64 + - COUNT( * ) DIV - 76 + + 29, 42 DIV 47 * + 10 AS col0
----
-35
0

skipif mysql # not compatible
query II rowsort label-622
SELECT - 64 + - COUNT ( * ) / - 76 + + 29, 42 / 47 * + 10 AS col0
----
-35
0

query I rowsort
SELECT ALL - NULLIF ( 70, - 93 ) + - ( - 24 ) * + 29
----
626

onlyif mysql # DIV for integer division: 
query I rowsort label-624
SELECT DISTINCT + 92 DIV - - 95
----
0

skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT + 92 / - - 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT DISTINCT COALESCE ( - 24, 58 DIV - 72 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT COALESCE ( - 24, 58 / - 72 ) AS col0
----
-24

query I rowsort
SELECT - 52 * + 37 col1
----
-1924

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT DISTINCT + CASE + COUNT( * ) WHEN + MAX( - 9 ) * 2 THEN - 28 * + 68 + - COUNT( * ) - 22 END * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + MAX ( - 9 ) * 2 THEN - 28 * + 68 + - COUNT ( * ) - 22 END * + 65
----
NULL

query I rowsort
SELECT DISTINCT + ( + NULLIF ( - 81, 56 + + - 13 ) ) + 97 * 20 col2
----
1859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT DISTINCT - COALESCE ( - 26, 58 + - 26, - CAST( NULL AS SIGNED ) ) + - + MIN( DISTINCT 91 ) - + CAST( COUNT( - 58 ) AS SIGNED ) * + - 33 - 45
----
-77

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT - COALESCE ( - 26, 58 + - 26, - CAST ( NULL AS INTEGER ) ) + - + MIN ( DISTINCT 91 ) - + CAST ( COUNT ( - 58 ) AS INTEGER ) * + - 33 - 45
----
-77

query I rowsort
SELECT ALL + 47 + - 10 * + - ( + 83 ) * + 99
----
82217

onlyif mysql # aggregate syntax: 
query II rowsort label-631
SELECT DISTINCT + 75 * - 40, + COUNT( * ) AS col0
----
-3000
1

skipif mysql # not compatible
query II rowsort label-631
SELECT DISTINCT + 75 * - 40, + COUNT ( * ) AS col0
----
-3000
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-632
SELECT ALL 68 DIV - 87 AS col0, - COUNT( * ) + 36
----
0
35

skipif mysql # not compatible
query II rowsort label-632
SELECT ALL 68 / - 87 AS col0, - COUNT ( * ) + 36
----
0
35

query I rowsort
SELECT ( 97 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-634
SELECT + MIN( + 77 ) AS col1, 44 AS col0
----
77
44

skipif mysql # not compatible
query II rowsort label-634
SELECT + MIN ( + 77 ) AS col1, 44 AS col0
----
77
44

query I rowsort
SELECT + - 10 * + 75 AS col1
----
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT DISTINCT - COUNT( + 49 ) * 74 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT - COUNT ( + 49 ) * 74 AS col2
----
-74

query I rowsort
SELECT ALL + ( 44 ) col2
----
44

query I rowsort
SELECT ALL + - 96 AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-639
SELECT + - MIN( + - 30 ) * + 91 + + - 30 - - - 46 * + CASE - 22 WHEN - + COUNT( * ) THEN NULL WHEN + - ( + + 62 ) THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN 31 END AS col1, - 88 - - COUNT( * )
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-639
SELECT + - MIN ( + - 30 ) * + 91 + + - 30 - - - 46 * + CASE - 22 WHEN - + COUNT ( * ) THEN NULL WHEN + - ( + + 62 ) THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN 31 END AS col1, - 88 - - COUNT ( * )
----
NULL
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL - ( - 49 ) * - COUNT( ALL + 62 )
----
-49

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL - ( - 49 ) * - COUNT ( ALL + 62 )
----
-49

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

query II rowsort
SELECT + ( 97 ) + 92 + - 22 AS col2, - 29 AS col1
----
167
-29

query I rowsort
SELECT + COALESCE ( + 26, + 95, + 80 ) AS col0
----
26

query I rowsort
SELECT DISTINCT 3 * 39 + + 55
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL - - 51 * - - 7 * 57 * 79 + + 10 + + ( - + COUNT( * ) )
----
1607580

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL - - 51 * - - 7 * 57 * 79 + + 10 + + ( - + COUNT ( * ) )
----
1607580

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL + MIN( + 77 ) * - COUNT( * ) + + + 7
----
-70

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL + MIN ( + 77 ) * - COUNT ( * ) + + + 7
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-647
SELECT + 74 DIV - + 52
----
-1

skipif mysql # not compatible
query I rowsort label-647
SELECT + 74 / - + 52
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL + 85 * - COUNT( + 26 ) * 22 + + 27
----
-1843

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL + 85 * - COUNT ( + 26 ) * 22 + + 27
----
-1843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-649
SELECT - 64 * - CAST( NULL AS SIGNED ) / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT - 64 * - CAST ( NULL AS INTEGER ) / 48
----
NULL

query I rowsort
SELECT ALL 46 + 86 + 11 + + 79 col2
----
222

query I rowsort
SELECT ALL + 88 * + 95 AS col0
----
8360

query I rowsort
SELECT + 28 * + - 25 AS col0
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT - NULLIF ( - + COUNT( * ), + COUNT( * ) ) * + 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-653
SELECT - NULLIF ( - + COUNT ( * ), + COUNT ( * ) ) * + 77 AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-654
SELECT ALL - 15 - 90 + + + 78 * + 35 * - + CAST( + 74 AS SIGNED ) * + - 64
----
12929175

skipif mysql # not compatible
query I rowsort label-654
SELECT ALL - 15 - 90 + + + 78 * + 35 * - + CAST ( + 74 AS INTEGER ) * + - 64
----
12929175

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-656
SELECT ALL ( + 96 ) * - 41 DIV + COUNT( * ) + + + 23 + 59 + - 8 + - 10 * 2 * + 70 * 17
----
-27662

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL ( + 96 ) * - 41 / + COUNT ( * ) + + + 23 + 59 + - 8 + - 10 * 2 * + 70 * 17
----
-27662

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

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT COUNT ( * ) - - 83 + COUNT ( * ) AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-658
SELECT DISTINCT CAST( - - CASE - 12 WHEN + SUM( - ( - NULLIF ( + 0, + + 54 ) ) ) - 32 THEN NULL WHEN + 75 THEN - CASE - - 35 WHEN - 97 + - 54 DIV - 44 * + + 2 * + + 90 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - + 92 END ELSE - - 50 * COALESCE ( COUNT( * ), - - 97 * + 30 DIV - 33 * - 69, - + 58 ) * - 21 * 91 + - - 1 + 54 + + MIN( DISTINCT + - 90 ) + - - 57 DIV 73 END AS SIGNED )
----
-95585

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT CAST ( - - CASE - 12 WHEN + SUM ( - ( - NULLIF ( + 0, + + 54 ) ) ) - 32 THEN NULL WHEN + 75 THEN - CASE - - 35 WHEN - 97 + - 54 / - 44 * + + 2 * + + 90 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - + 92 END ELSE - - 50 * COALESCE ( COUNT ( * ), - - 97 * + 30 / - 33 * - 69, - + 58 ) * - 21 * 91 + - - 1 + 54 + + MIN ( DISTINCT + - 90 ) + - - 57 / 73 END AS INTEGER )
----
-95585

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

query I rowsort
SELECT + 45 + - 64
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT + 62 * ( COUNT( DISTINCT + - 60 ) )
----
62

skipif mysql # not compatible
query I rowsort label-661
SELECT + 62 * ( COUNT ( DISTINCT + - 60 ) )
----
62

query I rowsort
SELECT - 68 * + - 47 AS col1
----
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-663
SELECT DISTINCT - 43 DIV + COALESCE ( + - CAST( NULL AS SIGNED ), + - 55 * + ( + COUNT( * ) ) * + + 25 ) * - MIN( DISTINCT - 98 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT - 43 / + COALESCE ( + - CAST ( NULL AS INTEGER ), + - 55 * + ( + COUNT ( * ) ) * + + 25 ) * - MIN ( DISTINCT - 98 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-664
SELECT - 45 DIV + 74 DIV 55 * 53 * + COUNT( * ) * - 70 + - 29 * + - 40, - NULLIF ( 59, 32 ) col0
----
1160
-59

skipif mysql # not compatible
query II rowsort label-664
SELECT - 45 / + 74 / 55 * 53 * + COUNT ( * ) * - 70 + - 29 * + - 40, - NULLIF ( 59, 32 ) col0
----
1160
-59

query I rowsort
SELECT 81 * 90 AS col2
----
7290

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT ALL - 26 * COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL - 26 * COUNT ( * ) AS col0
----
-26

query I rowsort
SELECT 52 + - + ( + + 39 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-668
SELECT ALL - 17 * + COUNT( + + 69 ) * 93 * + - 78, - 82 * 11 AS col0
----
123318
-902

skipif mysql # not compatible
query II rowsort label-668
SELECT ALL - 17 * + COUNT ( + + 69 ) * 93 * + - 78, - 82 * 11 AS col0
----
123318
-902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-669
SELECT 58 * - SUM( ALL - + 38 ) * + CAST( NULL AS SIGNED ) * + 97 AS col0, + 85 + 74 AS col1
----
NULL
159

skipif mysql # not compatible
query II rowsort label-669
SELECT 58 * - SUM ( ALL - + 38 ) * + CAST ( NULL AS INTEGER ) * + 97 AS col0, + 85 + 74 AS col1
----
NULL
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-670
SELECT DISTINCT - COUNT( * ) DIV - 7 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT - COUNT ( * ) / - 7 AS col2
----
0

query I rowsort
SELECT 68 * 21
----
1428

query I rowsort
SELECT DISTINCT + 72 * ( + 64 )
----
4608

query I rowsort
SELECT ALL - ( - 25 )
----
25

query I rowsort
SELECT 58 * - 95 AS col2
----
-5510

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

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

query I rowsort
SELECT ALL - 81 + 93
----
12

query I rowsort
SELECT ALL + 27 + 30
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT MIN( DISTINCT + 37 ) * 14 AS col1
----
518

skipif mysql # not compatible
query I rowsort label-678
SELECT MIN ( DISTINCT + 37 ) * 14 AS col1
----
518

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT 86 + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-679
SELECT 86 + COUNT ( * ) AS col0
----
87

query I rowsort
SELECT ALL + 82 + - 9 * + 67
----
-521

query I rowsort
SELECT DISTINCT - 9 * 14 AS col1
----
-126

query I rowsort
SELECT 21 + 63
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT ALL 53 * - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL 53 * - COUNT ( * )
----
-53

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

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

query I rowsort
SELECT 11 * 2 AS col1
----
22

query I rowsort
SELECT 47 * NULLIF ( + 85 * 9, 61 ) AS col0
----
35955

query I rowsort
SELECT 19 * - 61 + 55 AS col1
----
-1104

query I rowsort
SELECT 53 - - 56
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT NULLIF ( - 2, COALESCE ( 8, COALESCE ( - 0, COUNT( * ) ) * - 83 ) ) + 56
----
54

skipif mysql # not compatible
query I rowsort label-689
SELECT NULLIF ( - 2, COALESCE ( 8, COALESCE ( - 0, COUNT ( * ) ) * - 83 ) ) + 56
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT ALL 75 DIV 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL 75 / 61 AS col2
----
1

query I rowsort
SELECT ALL 93 * 92
----
8556

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

skipif mysql # not compatible
query I rowsort label-692
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) / NULLIF ( 55 - + COUNT ( * ) * - COUNT ( * ), 62 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-693
SELECT DISTINCT COUNT( * ) DIV MIN( ALL - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT COUNT ( * ) / MIN ( ALL - 76 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-694
SELECT ALL COUNT( * ) DIV 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL COUNT ( * ) / 40 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT COUNT( * ) * 59 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-695
SELECT COUNT ( * ) * 59 AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-696
SELECT CASE + 47 WHEN CAST( 8 AS SIGNED ) * 68 THEN 3 - - 12 WHEN + 49 + 86 THEN 98 * CAST( CAST( COALESCE ( 29, 93 * 91 ) AS SIGNED ) * - 96 AS SIGNED ) ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-696
SELECT CASE + 47 WHEN CAST ( 8 AS INTEGER ) * 68 THEN 3 - - 12 WHEN + 49 + 86 THEN 98 * CAST ( CAST ( COALESCE ( 29, 93 * 91 ) AS INTEGER ) * - 96 AS INTEGER ) ELSE NULL END + + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT 36 * 9
----
324

query I rowsort
SELECT 71 + 15 AS col0
----
86

query I rowsort
SELECT ALL 33 * + 85 col0
----
2805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-701
SELECT 78 * CAST( - 24 AS SIGNED )
----
-1872

skipif mysql # not compatible
query I rowsort label-701
SELECT 78 * CAST ( - 24 AS INTEGER )
----
-1872

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT ALL 97 * + CASE + SUM( 10 ) WHEN 30 THEN - ( + 75 ) WHEN + 43 + - COUNT( * ) * + 22 THEN NULL ELSE 64 END
----
6208

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL 97 * + CASE + SUM ( 10 ) WHEN 30 THEN - ( + 75 ) WHEN + 43 + - COUNT ( * ) * + 22 THEN NULL ELSE 64 END
----
6208

query I rowsort
SELECT DISTINCT - 12 + - 99 * 73
----
-7239

query I rowsort
SELECT DISTINCT 32 * 58 AS col0
----
1856

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

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL - - 82 + 23 / - COUNT ( * ) AS col1
----
59

query I rowsort
SELECT + + 76
----
76

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

query I rowsort
SELECT 7 * 56
----
392

query I rowsort
SELECT + + CASE - ( - 32 ) WHEN 10 * 18 THEN - ( 55 ) * - 55 + + 58 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT MIN( DISTINCT + 60 ) * 75
----
4500

skipif mysql # not compatible
query I rowsort label-711
SELECT MIN ( DISTINCT + 60 ) * 75
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL - - 90 + COALESCE ( 28 + + 10, COUNT( * ) * - 78 ) * + 43
----
1724

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL - - 90 + COALESCE ( 28 + + 10, COUNT ( * ) * - 78 ) * + 43
----
1724

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT - SUM( ALL + 92 ) + 62 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-713
SELECT - SUM ( ALL + 92 ) + 62 AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT 48 DIV 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-714
SELECT 48 / 84 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-715
SELECT ALL - CAST( NULL AS SIGNED ) + 9 * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL - CAST ( NULL AS INTEGER ) + 9 * + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT DISTINCT - MIN( ALL + 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT - MIN ( ALL + 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-717
SELECT ALL - + 65 + MAX( 45 - + 19 ) DIV 74 col2
----
-65

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL - + 65 + MAX ( 45 - + 19 ) / 74 col2
----
-65

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

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL - + COUNT ( * ) + + ( + 93 ) AS col1
----
92

query I rowsort
SELECT COALESCE ( 98, - 6 ) AS col2
----
98

query I rowsort
SELECT ALL - + 86 * 30 col1
----
-2580

query I rowsort
SELECT + 43 + 90
----
133

query I rowsort
SELECT - 47 * - 31 AS col0
----
1457

query I rowsort
SELECT ALL + - 73 - - 44 * - 14 AS col2
----
-689

query I rowsort
SELECT - 9 * + 73
----
-657

query I rowsort
SELECT DISTINCT - - 48 col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT CASE - 63 WHEN - 16 THEN 51 WHEN - 84 THEN NULL ELSE + COUNT( * ) + COUNT( * ) END + - 20 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-726
SELECT CASE - 63 WHEN - 16 THEN 51 WHEN - 84 THEN NULL ELSE + COUNT ( * ) + COUNT ( * ) END + - 20 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT DISTINCT + COUNT( * ) - + + 92 + - 94
----
-185

skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT + COUNT ( * ) - + + 92 + - 94
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-728
SELECT ALL + COALESCE ( + 1, 72, - COUNT( * ) + + 87 DIV 77 ) - + ( + 76 - - 21 * + 19 )
----
-474

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL + COALESCE ( + 1, 72, - COUNT ( * ) + + 87 / 77 ) - + ( + 76 - - 21 * + 19 )
----
-474

query I rowsort
SELECT DISTINCT 34 * 42 * 58 AS col2
----
82824

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL 52 - 12 - NULLIF ( + SUM( DISTINCT 66 ) - 79 * 85, + 9 * 32 ) AS col1
----
6689

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL 52 - 12 - NULLIF ( + SUM ( DISTINCT 66 ) - 79 * 85, + 9 * 32 ) AS col1
----
6689

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT 46 * + - CASE 9 WHEN - 92 * - 15 THEN NULL WHEN + 7 / - 42 THEN COUNT( * ) / 16 WHEN ( - 12 ) + + 94 THEN + ( - 15 ) / + 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT 46 * + - CASE 9 WHEN - 92 * - 15 THEN NULL WHEN + 7 / - 42 THEN COUNT ( * ) / 16 WHEN ( - 12 ) + + 94 THEN + ( - 15 ) / + 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT ALL - CASE + 92 WHEN COUNT( * ) THEN - 23 WHEN MIN( - 89 ) THEN NULLIF ( COUNT( DISTINCT + 12 ), - 84 + + 90 ) ELSE + 80 - COUNT( * ) END * - 76
----
6004

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL - CASE + 92 WHEN COUNT ( * ) THEN - 23 WHEN MIN ( - 89 ) THEN NULLIF ( COUNT ( DISTINCT + 12 ), - 84 + + 90 ) ELSE + 80 - COUNT ( * ) END * - 76
----
6004

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT - MIN( ALL 62 ) - 81 AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-733
SELECT - MIN ( ALL 62 ) - 81 AS col1
----
-143

query I rowsort
SELECT - 22 * + 30 AS col0
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT + COUNT( * ) * + MAX( 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-735
SELECT + COUNT ( * ) * + MAX ( 60 ) AS col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-736
SELECT - 39 - 27 DIV + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-736
SELECT - 39 - 27 / + COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT + SUM( - 10 ) * 98 AS col1
----
-980

skipif mysql # not compatible
query I rowsort label-737
SELECT + SUM ( - 10 ) * 98 AS col1
----
-980

query I rowsort
SELECT DISTINCT NULLIF ( ( 29 ), 85 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT 21 + - 31 * COUNT( * ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT 21 + - 31 * COUNT ( * ) col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT ALL 79 + + CAST( - ( 96 ) AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL 79 + + CAST ( - ( 96 ) AS INTEGER )
----
-17

query I rowsort
SELECT + 85 - - 42 * - 31 AS col2
----
-1217

query I rowsort
SELECT ALL 50 + + + 60 + - 87 * 73
----
-6241

query I rowsort
SELECT + ( - 2 ) - 84 * + 27
----
-2270

query I rowsort
SELECT + + 4 + 97 + + ( 60 - 35 )
----
126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT ALL + MAX( + - 0 ) + - 96 * 62 AS col0
----
-5952

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL + MAX ( + - 0 ) + - 96 * 62 AS col0
----
-5952

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT ALL + SUM( ALL CASE - 90 WHEN 48 THEN 94 * - 34 + ( - 37 ) * ( 13 ) END ) * - ( 51 * - COUNT( * ) ) + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL + SUM ( ALL CASE - 90 WHEN 48 THEN 94 * - 34 + ( - 37 ) * ( 13 ) END ) * - ( 51 * - COUNT ( * ) ) + 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT DISTINCT + CASE + 22 WHEN 50 THEN 22 + + 29 WHEN - COALESCE ( 74, 66 * + COUNT( * ) + 78 * + 6 ) THEN COUNT( * ) + 27 * COALESCE ( + 13, 75, 28 ) ELSE NULL END * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT + CASE + 22 WHEN 50 THEN 22 + + 29 WHEN - COALESCE ( 74, 66 * + COUNT ( * ) + 78 * + 6 ) THEN COUNT ( * ) + 27 * COALESCE ( + 13, 75, 28 ) ELSE NULL END * 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT ALL + COALESCE ( - + 57, 46 - + 2 ) * + SUM( 36 ) + 75 AS col0
----
-1977

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL + COALESCE ( - + 57, 46 - + 2 ) * + SUM ( 36 ) + 75 AS col0
----
-1977

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT + - 71 * + - MIN( ALL - 89 )
----
-6319

skipif mysql # not compatible
query I rowsort label-751
SELECT + - 71 * + - MIN ( ALL - 89 )
----
-6319

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

query I rowsort
SELECT - + 96 + + 52 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT MAX( ALL + 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-754
SELECT MAX ( ALL + 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT - - 37 * 34 + 7 * - COUNT( * ) AS col2
----
1251

skipif mysql # not compatible
query I rowsort label-755
SELECT - - 37 * 34 + 7 * - COUNT ( * ) AS col2
----
1251

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL - 79 * 19 * 2 - + 85 - COUNT( * )
----
-3088

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL - 79 * 19 * 2 - + 85 - COUNT ( * )
----
-3088

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-757
SELECT - 54 * 87 + - SUM( ALL CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT - 54 * 87 + - SUM ( ALL CAST ( NULL AS REAL ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-758
SELECT DISTINCT + MAX( CAST( NULL AS SIGNED ) ) * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT + MAX ( CAST ( NULL AS INTEGER ) ) * - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT ALL + + 71 * - + 17 * - 64 + + MAX( ALL - 38 ) AS col2
----
77210

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL + + 71 * - + 17 * - 64 + + MAX ( ALL - 38 ) AS col2
----
77210

query I rowsort
SELECT ALL + 20 * - ( + + 50 )
----
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT - 99 - + + COUNT( * )
----
-100

skipif mysql # not compatible
query I rowsort label-761
SELECT - 99 - + + COUNT ( * )
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-762
SELECT - SUM( DISTINCT + + ( + + 47 ) ) DIV NULLIF ( 22, + COUNT( * ) + COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-762
SELECT - SUM ( DISTINCT + + ( + + 47 ) ) / NULLIF ( 22, + COUNT ( * ) + COUNT ( * ) )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-763
SELECT ALL + COALESCE ( + CAST( - + 37 AS SIGNED ), + COUNT( * ) ) * + COUNT( - 91 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL + COALESCE ( + CAST ( - + 37 AS INTEGER ), + COUNT ( * ) ) * + COUNT ( - 91 ) AS col1
----
-37

query I rowsort
SELECT DISTINCT - 75 * 35 col0
----
-2625

query I rowsort
SELECT - 63 + 88 AS col1
----
25

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT - ( - 98 ) DIV - NULLIF ( - 39, - 11 )
----
2

skipif mysql # not compatible
query I rowsort label-767
SELECT - ( - 98 ) / - NULLIF ( - 39, - 11 )
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-769
SELECT - CAST( NULL AS SIGNED ) - - + 65 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT - CAST ( NULL AS INTEGER ) - - + 65 + 84
----
NULL

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

query I rowsort
SELECT ALL ( - - 4 ) AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-772
SELECT 94 * - 58 + + + 50 + 95 * + CAST( 6 AS SIGNED )
----
-4832

skipif mysql # not compatible
query I rowsort label-772
SELECT 94 * - 58 + + + 50 + 95 * + CAST ( 6 AS INTEGER )
----
-4832

query I rowsort
SELECT ALL - 57 + - + 31
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-774
SELECT ALL CAST( + 78 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL CAST ( + 78 AS INTEGER )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT - ( + 67 ) + COUNT( 26 ) + MIN( DISTINCT 46 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-775
SELECT - ( + 67 ) + COUNT ( 26 ) + MIN ( DISTINCT 46 ) AS col0
----
-20

query I rowsort
SELECT ALL 80 + - 73 - 11 * + 30
----
-323

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

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT + 13 + + COUNT ( * ) AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-778
SELECT + ( CAST( NULL AS SIGNED ) ) + - - 42 + + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT + ( CAST ( NULL AS INTEGER ) ) + - - 42 + + 94 AS col1
----
NULL

query I rowsort
SELECT ALL + 95 + 91
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT + 13 + NULLIF ( - 59, 79 * MAX( - CAST( + 78 AS SIGNED ) ) ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-780
SELECT + 13 + NULLIF ( - 59, 79 * MAX ( - CAST ( + 78 AS INTEGER ) ) ) AS col0
----
-46

query II rowsort
SELECT - 12 AS col0, 35 col1
----
-12
35

query II rowsort
SELECT ALL 35 AS col2, + 68 col0
----
35
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-783
SELECT - 66 DIV - + ( + + 83 ) - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-783
SELECT - 66 / - + ( + + 83 ) - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT ALL + + 7 + + 41 + - - 5 * + CAST( + COUNT( * ) AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL + + 7 + + 41 + - - 5 * + CAST ( + COUNT ( * ) AS INTEGER )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-785
SELECT + 13 col0, AVG ( + CAST( NULL AS SIGNED ) ) * + SUM( ALL 50 / 91 ) + 23
----
13
NULL

skipif mysql # not compatible
query II rowsort label-785
SELECT + 13 col0, AVG ( + CAST ( NULL AS INTEGER ) ) * + SUM ( ALL 50 / 91 ) + 23
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT ALL - 81 + - 95 + - COUNT( * )
----
-177

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL - 81 + - 95 + - COUNT ( * )
----
-177

query II rowsort
SELECT - - 31 AS col2, 75
----
31
75

query I rowsort
SELECT ALL + 6 - - - 12 col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT + + 0 * - 80 + + ( + SUM( DISTINCT 22 ) )
----
22

skipif mysql # not compatible
query I rowsort label-789
SELECT + + 0 * - 80 + + ( + SUM ( DISTINCT 22 ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT ALL 41 * + COUNT( - 32 ) + 22 * 45 AS col0
----
1031

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL 41 * + COUNT ( - 32 ) + 22 * 45 AS col0
----
1031

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-791
SELECT DISTINCT 81 DIV + CAST( 30 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT 81 / + CAST ( 30 AS INTEGER )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT ALL - - 57 DIV + 2 - 89 + + 23
----
-38

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL - - 57 / + 2 - 89 + + 23
----
-38

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

skipif mysql # not compatible
query I rowsort label-793
SELECT + 69 / 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT + 38 * + 24 * - - COALESCE ( + SUM( DISTINCT + 54 ), + 40 + ( + 34 ), 80, 31 )
----
49248

skipif mysql # not compatible
query I rowsort label-794
SELECT + 38 * + 24 * - - COALESCE ( + SUM ( DISTINCT + 54 ), + 40 + ( + 34 ), 80, 31 )
----
49248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-795
SELECT - + 61 * 97 * - 53 - CASE - ( + 14 ) - - 6 WHEN COUNT( * ) THEN - 60 * - 78 WHEN CAST( - 7 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-795
SELECT - + 61 * 97 * - 53 - CASE - ( + 14 ) - - 6 WHEN COUNT ( * ) THEN - 60 * - 78 WHEN CAST ( - 7 AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT + 52 * - + 59
----
-3068

query I rowsort
SELECT ALL ( + + 9 ) * - - 5 - 70 * - 95
----
6695

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-798
SELECT ALL + + COUNT( * ) DIV - ( + + 50 ) - 19 * + 34 AS col1
----
-646

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL + + COUNT ( * ) / - ( + + 50 ) - 19 * + 34 AS col1
----
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT + SUM( - + 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-799
SELECT + SUM ( - + 68 ) AS col1
----
-68

query I rowsort
SELECT + - 99 * - 78
----
7722

query I rowsort
SELECT + 76 + + - 83
----
-7

query I rowsort
SELECT + 86 * - 74 - - 30 AS col1
----
-6334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-803
SELECT NULLIF ( + ( - 98 ), - CAST( - COUNT( 77 ) AS SIGNED ) * 52 ) * + ( MAX( DISTINCT 10 ) ) AS col0
----
-980

skipif mysql # not compatible
query I rowsort label-803
SELECT NULLIF ( + ( - 98 ), - CAST ( - COUNT ( 77 ) AS INTEGER ) * 52 ) * + ( MAX ( DISTINCT 10 ) ) AS col0
----
-980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-804
SELECT 62 * + MIN( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT 62 * + MIN ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT - ( - ( - 91 ) ) * + 25 + SUM( + 66 ) AS col2
----
-2209

skipif mysql # not compatible
query I rowsort label-805
SELECT - ( - ( - 91 ) ) * + 25 + SUM ( + 66 ) AS col2
----
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT ALL + 98 + + + 16 + + SUM( DISTINCT - 27 )
----
87

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL + 98 + + + 16 + + SUM ( DISTINCT - 27 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-807
SELECT CAST( - 65 AS SIGNED ) * - COALESCE ( - CAST( NULL AS SIGNED ), 11, + ( COUNT( * ) ) + - COUNT( * ) DIV - 4, + 60 * - 92 + - 67 ) + 80 DIV 98 AS col2
----
715

skipif mysql # not compatible
query I rowsort label-807
SELECT CAST ( - 65 AS INTEGER ) * - COALESCE ( - CAST ( NULL AS INTEGER ), 11, + ( COUNT ( * ) ) + - COUNT ( * ) / - 4, + 60 * - 92 + - 67 ) + 80 / 98 AS col2
----
715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-808
SELECT ALL CAST( NULL AS SIGNED ) + + CASE WHEN NOT 22 >= 79 + + 76 THEN MIN( - 62 ) END * - NULLIF ( 59, + AVG ( ALL 10 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL CAST ( NULL AS INTEGER ) + + CASE WHEN NOT 22 >= 79 + + 76 THEN MIN ( - 62 ) END * - NULLIF ( 59, + AVG ( ALL 10 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT ALL - 26 + - 51 + + 26 * - - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) - + CAST( - ( 94 ) + + 54 / + 80 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL - 26 + - 51 + + 26 * - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) - + CAST ( - ( 94 ) + + 54 / + 80 AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL + 71 * + 89 AS col2, ( + 68 )
----
6319
68

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

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

query II rowsort
SELECT ALL + 26 + 42 AS col0, 59 AS col0
----
68
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-813
SELECT 96 DIV + COUNT( * ), + COUNT( * ) AS col2
----
96
1

skipif mysql # not compatible
query II rowsort label-813
SELECT 96 / + COUNT ( * ), + COUNT ( * ) AS col2
----
96
1

query I rowsort
SELECT 67 - - 40 AS col1
----
107

query I rowsort
SELECT 77 - + 25
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-816
SELECT 15 * + COUNT( * ), 93 AS col1
----
15
93

skipif mysql # not compatible
query II rowsort label-816
SELECT 15 * + COUNT ( * ), 93 AS col1
----
15
93

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT 8 + 18 * + ( + COUNT( * ) ) + + CASE 84 WHEN ( + 0 ) / - 1 THEN 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT 8 + 18 * + ( + COUNT ( * ) ) + + CASE 84 WHEN ( + 0 ) / - 1 THEN 67 END
----
NULL

query I rowsort
SELECT ALL - 90 - 56 * - - 93 AS col1
----
-5298

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-820
SELECT 84 * - COALESCE ( 99, - COUNT( * ), 31 ) * CASE - 64 WHEN + CAST( NULL AS SIGNED ) * 90 THEN 64 - ( ( 15 ) + - CAST( - 37 AS SIGNED ) * - COUNT( * ) ) WHEN 59 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-820
SELECT 84 * - COALESCE ( 99, - COUNT ( * ), 31 ) * CASE - 64 WHEN + CAST ( NULL AS INTEGER ) * 90 THEN 64 - ( ( 15 ) + - CAST ( - 37 AS INTEGER ) * - COUNT ( * ) ) WHEN 59 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT 33 + + 73
----
106

query I rowsort
SELECT 77 - - 21 + - 87 col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT ALL + 49 - + COUNT( * ) * - ( - + 10 )
----
39

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL + 49 - + COUNT ( * ) * - ( - + 10 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT + 9 * + ( + 13 ) + - ( - 93 ) + - 38 * COUNT( * ) col2
----
172

skipif mysql # not compatible
query I rowsort label-824
SELECT + 9 * + ( + 13 ) + - ( - 93 ) + - 38 * COUNT ( * ) col2
----
172

query I rowsort
SELECT 56 + - - 59 + - 92 * 27 + - 4 * + 61
----
-2613

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT + 36 * + - MIN( 64 )
----
-2304

skipif mysql # not compatible
query I rowsort label-826
SELECT + 36 * + - MIN ( 64 )
----
-2304

query I rowsort
SELECT - 8 * + 39 + + 39 AS col1
----
-273

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

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT DISTINCT - MAX( - 73 ) * + 61 AS col0
----
4453

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT - MAX ( - 73 ) * + 61 AS col0
----
4453

query I rowsort
SELECT ALL - NULLIF ( ( + 66 ), - 71 * 21 - - 18 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT ALL 40 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL 40 / - 94
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT 62 DIV - + 29
----
-2

skipif mysql # not compatible
query I rowsort label-832
SELECT 62 / - + 29
----
-2

query I rowsort
SELECT DISTINCT 75 * - - ( ( + 83 ) )
----
6225

query I rowsort
SELECT ALL 34 + + 32 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT - SUM( + + 15 ) * - 50 * + 91 + + 69
----
68319

skipif mysql # not compatible
query I rowsort label-835
SELECT - SUM ( + + 15 ) * - 50 * + 91 + + 69
----
68319

onlyif mysql # aggregate syntax: 
query II rowsort label-836
SELECT + 30 AS col1, + COALESCE ( 12, + COUNT( * ), - 2 )
----
30
12

skipif mysql # not compatible
query II rowsort label-836
SELECT + 30 AS col1, + COALESCE ( 12, + COUNT ( * ), - 2 )
----
30
12

onlyif mysql # DIV for integer division: 
query I rowsort label-837
SELECT 30 DIV - ( + 40 ) + - 95
----
-95

skipif mysql # not compatible
query I rowsort label-837
SELECT 30 / - ( + 40 ) + - 95
----
-95

query I rowsort
SELECT DISTINCT 28 + + 86
----
114

query I rowsort
SELECT DISTINCT 33 + - 41 AS col0
----
-8

query II rowsort
SELECT DISTINCT - 48 AS col2, - 42
----
-48
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-841
SELECT ALL - CASE 46 WHEN + + 23 * 6 + + + COUNT( 18 ) THEN NULL ELSE 68 * CAST( NULL AS SIGNED ) + 33 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL - CASE 46 WHEN + + 23 * 6 + + + COUNT ( 18 ) THEN NULL ELSE 68 * CAST ( NULL AS INTEGER ) + 33 END AS col0
----
NULL

query I rowsort
SELECT ALL 68 + - 0 * + 72 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT MIN( DISTINCT - + 52 ) + - + 96 - + COALESCE ( 67, - 21 + + 87 )
----
-215

skipif mysql # not compatible
query I rowsort label-843
SELECT MIN ( DISTINCT - + 52 ) + - + 96 - + COALESCE ( 67, - 21 + + 87 )
----
-215

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

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT 12 - - - 68 - - + 25 + - - 62 * 34 DIV 74
----
-3

skipif mysql # not compatible
query I rowsort label-845
SELECT 12 - - - 68 - - + 25 + - - 62 * 34 / 74
----
-3

query I rowsort
SELECT ALL + 95 - + + 53 AS col2
----
42

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

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

query I rowsort
SELECT DISTINCT - 11 * + - 19 * 13 col2
----
2717

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT - 84 + + COUNT( + 9 ) * 18 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-849
SELECT - 84 + + COUNT ( + 9 ) * 18 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL - + NULLIF ( + - 35, NULLIF ( - + COUNT( * ), - + 89 ) ) - 53
----
-18

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL - + NULLIF ( + - 35, NULLIF ( - + COUNT ( * ), - + 89 ) ) - 53
----
-18

query I rowsort
SELECT 91 + + 74
----
165

query I rowsort
SELECT + 7 * - 88 AS col2
----
-616

query I rowsort
SELECT DISTINCT ( - 79 ) AS col0
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-854
SELECT - - 71 AS col1, 34 DIV - NULLIF ( + - 9, + 57 + 91 DIV ( 21 + 77 ) ) - - 20
----
71
23

skipif mysql # not compatible
query II rowsort label-854
SELECT - - 71 AS col1, 34 / - NULLIF ( + - 9, + 57 + 91 / ( 21 + 77 ) ) - - 20
----
71
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-855
SELECT DISTINCT - COUNT( * ), - 32 DIV + 92 * - 74 + COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-855
SELECT DISTINCT - COUNT ( * ), - 32 / + 92 * - 74 + COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT DISTINCT + 46 + - 80 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT DISTINCT ( - COUNT( DISTINCT 32 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT ( - COUNT ( DISTINCT 32 ) ) AS col2
----
-1

query II rowsort
SELECT ALL + + 83, - 21 * - 39 AS col1
----
83
819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-859
SELECT ALL AVG ( ALL 43 ) * - CASE WHEN NULL <> ( 38 ) THEN - SUM( ALL 88 ) WHEN - 48 BETWEEN ( 35 ) AND - CAST( NULL AS SIGNED ) * + 92 THEN 13 - + 75 ELSE NULL END + - 4 * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL AVG ( ALL 43 ) * - CASE WHEN NULL <> ( 38 ) THEN - SUM ( ALL 88 ) WHEN - 48 BETWEEN ( 35 ) AND - CAST ( NULL AS INTEGER ) * + 92 THEN 13 - + 75 ELSE NULL END + - 4 * 55
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-860
SELECT ALL MAX( ALL 5 ) * + 0 DIV - 73 + COUNT( * ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL MAX ( ALL 5 ) * + 0 / - 73 + COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT + 76 AS col0, CASE + - 11 WHEN + 85 THEN - ( 45 ) WHEN COALESCE ( - 4, ( COUNT( * ) ) ) THEN NULL ELSE + 90 END
----
76
90

skipif mysql # not compatible
query II rowsort label-861
SELECT + 76 AS col0, CASE + - 11 WHEN + 85 THEN - ( 45 ) WHEN COALESCE ( - 4, ( COUNT ( * ) ) ) THEN NULL ELSE + 90 END
----
76
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-862
SELECT COUNT( * ) DIV + 25 - - 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-862
SELECT COUNT ( * ) / + 25 - - 38 AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-863
SELECT DISTINCT 22 DIV + SUM( + 46 )
----
0

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT 22 / + SUM ( + 46 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-864
SELECT DISTINCT 77 * 20 + COUNT( * ) * - COUNT( * ) col1, + CASE 5 WHEN 49 + + 95 * + 7 THEN COUNT( + 33 ) * CASE + AVG ( - 2 ) WHEN 80 - - 52 * 80 THEN NULL WHEN + NULLIF ( + 2, + 93 ) / 40 THEN 71 + CASE - CASE 14 WHEN + COUNT( * ) * - ( CASE COUNT( * ) WHEN 97 + - 91 / 3 THEN NULL WHEN CAST( + AVG ( DISTINCT 98 ) AS SIGNED ) * 69 + - ( + SUM( - 45 ) ) THEN + 81 END ) - + 18 * - NULLIF ( 10, + 24 ) THEN NULL ELSE - COUNT( * ) + CAST( 21 AS DECIMAL ) END WHEN - 65 THEN 55 + 38 ELSE + 71 END ELSE NULL END WHEN + 24 * 20 THEN NULL END * + 78 col2
----
1539
NULL

skipif mysql # not compatible
query II rowsort label-864
SELECT DISTINCT 77 * 20 + COUNT ( * ) * - COUNT ( * ) col1, + CASE 5 WHEN 49 + + 95 * + 7 THEN COUNT ( + 33 ) * CASE + AVG ( - 2 ) WHEN 80 - - 52 * 80 THEN NULL WHEN + NULLIF ( + 2, + 93 ) / 40 THEN 71 + CASE - CASE 14 WHEN + COUNT ( * ) * - ( CASE COUNT ( * ) WHEN 97 + - 91 / 3 THEN NULL WHEN CAST ( + AVG ( DISTINCT 98 ) AS INTEGER ) * 69 + - ( + SUM ( - 45 ) ) THEN + 81 END ) - + 18 * - NULLIF ( 10, + 24 ) THEN NULL ELSE - COUNT ( * ) + CAST ( 21 AS REAL ) END WHEN - 65 THEN 55 + 38 ELSE + 71 END ELSE NULL END WHEN + 24 * 20 THEN NULL END * + 78 col2
----
1539
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-865
SELECT COUNT( * ) AS col2, SUM( ALL 92 )
----
1
92

skipif mysql # not compatible
query II rowsort label-865
SELECT COUNT ( * ) AS col2, SUM ( ALL 92 )
----
1
92

query I rowsort
SELECT - ( - 42 ) * ( 67 )
----
2814

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT - COUNT( * ) * 16 * + 81 * - - 24
----
-31104

skipif mysql # not compatible
query I rowsort label-867
SELECT - COUNT ( * ) * 16 * + 81 * - - 24
----
-31104

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT + 15 * + MIN( ALL - 25 )
----
-375

skipif mysql # not compatible
query I rowsort label-868
SELECT + 15 * + MIN ( ALL - 25 )
----
-375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-869
SELECT ALL 21 * CAST( - MAX( 39 ) AS SIGNED )
----
-819

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL 21 * CAST ( - MAX ( 39 ) AS INTEGER )
----
-819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-870
SELECT DISTINCT ( COUNT( * ) ) * + 96 + 99 - + 23 + 20 DIV - 39 * - 88
----
172

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT ( COUNT ( * ) ) * + 96 + 99 - + 23 + 20 / - 39 * - 88
----
172

query I rowsort
SELECT ( - 25 ) * - 15 * + 58 * - + 1 + 1 AS col2
----
-21749

query I rowsort
SELECT ALL - 53 * 7 - 47 col0
----
-418

query II rowsort
SELECT ALL + 61 AS col2, - 49 + - 85
----
61
-134

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

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

query I rowsort
SELECT + 55 * 67
----
3685

query II rowsort
SELECT 63 AS col2, - 99 AS col0
----
63
-99

query I rowsort
SELECT ALL + 82 * + 33 AS col1
----
2706

onlyif mysql # aggregate syntax: 
query II rowsort label-878
SELECT - COUNT( * ) AS col0, 80 + - 13 AS col1
----
-1
67

skipif mysql # not compatible
query II rowsort label-878
SELECT - COUNT ( * ) AS col0, 80 + - 13 AS col1
----
-1
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-879
SELECT + + 44 * - COUNT( * ) + + ( 12 ) + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT + + 44 * - COUNT ( * ) + + ( 12 ) + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - CASE + ( + 50 ) WHEN - ( - 3 ) THEN + + 49 / - 37 ELSE NULL END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT + COUNT( * ) - - 77 + + 27 + + - 21 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-883
SELECT + COUNT ( * ) - - 77 + + 27 + + - 21 AS col1
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT + COUNT( * ) + - - 98 + - ( - 75 ) + - 78
----
96

skipif mysql # not compatible
query I rowsort label-885
SELECT + COUNT ( * ) + - - 98 + - ( - 75 ) + - 78
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT ALL 88 * - - COUNT( * ) - 52 * - + 75
----
3988

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL 88 * - - COUNT ( * ) - 52 * - + 75
----
3988

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT + 57 DIV - 21 col2
----
-2

skipif mysql # not compatible
query I rowsort label-887
SELECT + 57 / - 21 col2
----
-2

query I rowsort
SELECT ALL 32 + - ( - - 85 ) AS col2
----
-53

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

skipif mysql # not compatible
query II rowsort label-889
SELECT - - COUNT ( * ) AS col0, 37 AS col1
----
1
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-890
SELECT + MAX( DISTINCT - 37 ) DIV MAX( + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-890
SELECT + MAX ( DISTINCT - 37 ) / MAX ( + 66 )
----
0

query I rowsort
SELECT ALL + 17 + - - 54
----
71

query I rowsort
SELECT - - NULLIF ( - - 21, + + 10 ) - 27 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT + + 42 + - 72 + CASE - 91 WHEN + NULLIF ( - 37, + COUNT( * ) + 76 ) + ( 86 ) THEN NULL ELSE COUNT( * ) END + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-893
SELECT + + 42 + - 72 + CASE - 91 WHEN + NULLIF ( - 37, + COUNT ( * ) + 76 ) + ( 86 ) THEN NULL ELSE COUNT ( * ) END + - COUNT ( * )
----
-30

query III rowsort
SELECT - 94 AS col0, 2 * - 29 - - 32 AS col0, - 0
----
-94
-26
0

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT + - 67 DIV - - 10 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-895
SELECT + - 67 / - - 10 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT - - 62 + - - 51 * + + MIN( - - 79 ) * + - ( - + ( ( + 78 ) ) )
----
314324

skipif mysql # not compatible
query I rowsort label-896
SELECT - - 62 + - - 51 * + + MIN ( - - 79 ) * + - ( - + ( ( + 78 ) ) )
----
314324

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-897
SELECT + - 51 * CASE - CAST( NULL AS DECIMAL ) WHEN - - 81 * + 11 + 76 * + 47 THEN NULL ELSE NULLIF ( + 3, 75 + 65 ) END + 45
----
-108

skipif mysql # not compatible
query I rowsort label-897
SELECT + - 51 * CASE - CAST ( NULL AS REAL ) WHEN - - 81 * + 11 + 76 * + 47 THEN NULL ELSE NULLIF ( + 3, 75 + 65 ) END + 45
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-898
SELECT ALL - - CAST( - 27 AS SIGNED ) + + 42
----
15

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL - - CAST ( - 27 AS INTEGER ) + + 42
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-899
SELECT + CAST( 40 AS SIGNED ) + + MAX( + 28 ) + - - CAST( 2 AS SIGNED ) * 13
----
94

skipif mysql # not compatible
query I rowsort label-899
SELECT + CAST ( 40 AS INTEGER ) + + MAX ( + 28 ) + - - CAST ( 2 AS INTEGER ) * 13
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-900
SELECT ALL + 39 DIV 65 AS col2, 13
----
0
13

skipif mysql # not compatible
query II rowsort label-900
SELECT ALL + 39 / 65 AS col2, 13
----
0
13

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-902
SELECT ALL 29 DIV + 94 + - - 48 col2, MAX( DISTINCT - CAST( + ( - 3 ) AS SIGNED ) ) AS col0
----
48
3

skipif mysql # not compatible
query II rowsort label-902
SELECT ALL 29 / + 94 + - - 48 col2, MAX ( DISTINCT - CAST ( + ( - 3 ) AS INTEGER ) ) AS col0
----
48
3

onlyif mysql # aggregate syntax: 
query II rowsort label-903
SELECT ALL - SUM( DISTINCT + 55 ) * - + 83 * + + 57 + - 55 AS col0, SUM( - 8 )
----
260150
-8

skipif mysql # not compatible
query II rowsort label-903
SELECT ALL - SUM ( DISTINCT + 55 ) * - + 83 * + + 57 + - 55 AS col0, SUM ( - 8 )
----
260150
-8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-905
SELECT - COUNT( * ) + - 1, - 12 AS col0
----
-2
-12

skipif mysql # not compatible
query II rowsort label-905
SELECT - COUNT ( * ) + - 1, - 12 AS col0
----
-2
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT ALL - 67 * COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL - 67 * COUNT ( * ) AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT + 35 * + CAST( 94 AS SIGNED ) + 22 + - MIN( ( - 60 ) ) * - 14 * COALESCE ( 42 * + 27 - ( - 62 ), 53 - - 57 )
----
-1001328

skipif mysql # not compatible
query I rowsort label-907
SELECT + 35 * + CAST ( 94 AS INTEGER ) + 22 + - MIN ( ( - 60 ) ) * - 14 * COALESCE ( 42 * + 27 - ( - 62 ), 53 - - 57 )
----
-1001328

query I rowsort
SELECT + 91 * - 7 * + 66 AS col1
----
-42042

query I rowsort
SELECT ALL + 68 * + - 44 * + 40
----
-119680

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( - 48, - + ( 1 ) ) AS col2
----
-48

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

skipif mysql # not compatible
query I rowsort label-912
SELECT - - CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) / + 79
----
NULL

query I rowsort
SELECT + 66 + + 0 * 93 AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-914
SELECT ALL + 62 DIV - CAST( - 57 AS SIGNED ) + + + 56
----
57

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL + 62 / - CAST ( - 57 AS INTEGER ) + + + 56
----
57

query I rowsort
SELECT - 6 + 44 * NULLIF ( + 25, - + 94 + - 4 + - 73 + 98 * + 65 * AVG ( DISTINCT 15 * - 27 ) ) * + 84 col2
----
92394

onlyif mysql # aggregate syntax: 
query II rowsort label-916
SELECT - + 98 * + COUNT( * ), + COALESCE ( - 67, SUM( + 29 ), - + 86 ) * 87 col1
----
-98
-5829

skipif mysql # not compatible
query II rowsort label-916
SELECT - + 98 * + COUNT ( * ), + COALESCE ( - 67, SUM ( + 29 ), - + 86 ) * 87 col1
----
-98
-5829

query I rowsort
SELECT + 76 * ( - 16 ) * + + 56 + - 8 + + 15 + NULLIF ( - ( - NULLIF ( 12, - 31 / 51 - 15 ) ), 79 ) * + 52
----
-67465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-918
SELECT + 89 - 62 + - ( COALESCE ( - 44, + 2 ) ) + - 13 + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * - 46 * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT + 89 - 62 + - ( COALESCE ( - 44, + 2 ) ) + - 13 + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 46 * - 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT DISTINCT - SUM( + - COALESCE ( - - CAST( - 67 AS SIGNED ), 0 ) ) * COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT - SUM ( + - COALESCE ( - - CAST ( - 67 AS INTEGER ), 0 ) ) * COUNT ( * ) AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-920
SELECT DISTINCT - + 95 * COUNT( * ) + - - 8 + 99 * + + 30 + + CAST( 74 AS SIGNED ) AS col0
----
2957

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT - + 95 * COUNT ( * ) + - - 8 + 99 * + + 30 + + CAST ( 74 AS INTEGER ) AS col0
----
2957

query I rowsort
SELECT ALL 77 * 27 * - 27
----
-56133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT + NULLIF ( + + MIN( ALL - 47 ), 72 ) * - 14 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT + NULLIF ( + + MIN ( ALL - 47 ), 72 ) * - 14 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT ALL + 72 * - 89 * COUNT( + - 73 ) + - + 66 + - 80 AS col2
----
-6554

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL + 72 * - 89 * COUNT ( + - 73 ) + - + 66 + - 80 AS col2
----
-6554

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT - 37 * - 77 * + + 31 + COUNT( * )
----
88320

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT - 37 * - 77 * + + 31 + COUNT ( * )
----
88320

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT + + 41 + 89 * - COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-925
SELECT + + 41 + 89 * - COUNT ( * ) AS col1
----
-48

query I rowsort
SELECT - - 8 AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-927
SELECT DISTINCT MIN( ALL + - 77 ) + COUNT( * ) * - COUNT( * ) + + CAST( 23 AS SIGNED ) + + 51 + COUNT( * ) * 92
----
88

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT MIN ( ALL + - 77 ) + COUNT ( * ) * - COUNT ( * ) + + CAST ( 23 AS INTEGER ) + + 51 + COUNT ( * ) * 92
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-928
SELECT ALL ( - 71 ) + - CAST( - COUNT( * ) AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL ( - 71 ) + - CAST ( - COUNT ( * ) AS INTEGER )
----
-70

query I rowsort
SELECT 57 * 1
----
57

query I rowsort
SELECT 0 + 68 + 94
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ( - - 91 ) + + 68 * - 63 + 72 + - - MIN( + 20 )
----
-4101

skipif mysql # not compatible
query I rowsort label-931
SELECT ( - - 91 ) + + 68 * - 63 + 72 + - - MIN ( + 20 )
----
-4101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-932
SELECT DISTINCT + 83 + CAST( - - 90 AS SIGNED ) + 57 + + COALESCE ( - + 17, + 6 ) * + COUNT( * ) AS col0
----
213

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT + 83 + CAST ( - - 90 AS INTEGER ) + 57 + + COALESCE ( - + 17, + 6 ) * + COUNT ( * ) AS col0
----
213

query II rowsort
SELECT ALL - 25 + + 37 col1, + 98 AS col1
----
12
98

query I rowsort
SELECT DISTINCT 46 * - 45 col0
----
-2070

query II rowsort
SELECT ALL 58 + - 67 * - 14 AS col2, 91 AS col0
----
996
91

query I rowsort
SELECT DISTINCT 17 + - 53 + + ( - 2 )
----
-38

query I rowsort
SELECT ALL - 80 - - - 51 AS col0
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-938
SELECT DISTINCT 10 * + - CAST( + 71 AS SIGNED ) AS col0, COALESCE ( + CAST( NULL AS SIGNED ), 44 * - + 13 * COUNT( * ) - CAST( NULL AS SIGNED ) ) * - 2 + 36 AS col1
----
-710
NULL

skipif mysql # not compatible
query II rowsort label-938
SELECT DISTINCT 10 * + - CAST ( + 71 AS INTEGER ) AS col0, COALESCE ( + CAST ( NULL AS INTEGER ), 44 * - + 13 * COUNT ( * ) - CAST ( NULL AS INTEGER ) ) * - 2 + 36 AS col1
----
-710
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-939
SELECT 90 DIV 22 * - + 81 AS col0, + 32
----
-324
32

skipif mysql # not compatible
query II rowsort label-939
SELECT 90 / 22 * - + 81 AS col0, + 32
----
-324
32

query I rowsort
SELECT ( + - 84 ) * 4 + + 53 col2
----
-283

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-941
SELECT + COUNT( * ) DIV 41 + - 66 col1, + CASE 57 WHEN - COALESCE ( 91, - 75 - - COUNT( * ) DIV 48 ) THEN NULLIF ( + 64, + MAX( DISTINCT 93 ) + ( - 0 ) ) DIV 3 + 45 END
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-941
SELECT + COUNT ( * ) / 41 + - 66 col1, + CASE 57 WHEN - COALESCE ( 91, - 75 - - COUNT ( * ) / 48 ) THEN NULLIF ( + 64, + MAX ( DISTINCT 93 ) + ( - 0 ) ) / 3 + 45 END
----
-66
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-942
SELECT ALL 4 - + 19 + 58 + - 40 * - 31 * - 72, + 43 * - COALESCE ( 95, 60 DIV + 56 + 91 ) AS col2
----
-89237
-4085

skipif mysql # not compatible
query II rowsort label-942
SELECT ALL 4 - + 19 + 58 + - 40 * - 31 * - 72, + 43 * - COALESCE ( 95, 60 / + 56 + 91 ) AS col2
----
-89237
-4085

query I rowsort
SELECT + ( 86 ) * - + 15 - + - 88 * + + 25 AS col2
----
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-944
SELECT ALL + COALESCE ( - - 11, CAST( - AVG ( + + 93 ) AS SIGNED ), - 72 ) DIV + ( + SUM( ALL + 65 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL + COALESCE ( - - 11, CAST ( - AVG ( + + 93 ) AS INTEGER ), - 72 ) / + ( + SUM ( ALL + 65 ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-945
SELECT DISTINCT - 91 DIV - 22
----
4

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT - 91 / - 22
----
4

query I rowsort
SELECT 12 + 77
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL - MAX( - 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL - MAX ( - 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ALL - - 33 + 51 * 82 * 97 * 10 / + - 38 + + + 29 + + CASE - 89 WHEN 67 THEN - NULLIF ( - COUNT( * ), - 36 - + 8 ) ELSE NULL END * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - - 33 + 51 * 82 * 97 * 10 / + - 38 + + + 29 + + CASE - 89 WHEN 67 THEN - NULLIF ( - COUNT ( * ), - 36 - + 8 ) ELSE NULL END * + 48
----
NULL

query II rowsort
SELECT + 99 col0, 42
----
99
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-950
SELECT + 3 * CAST( + 76 AS SIGNED ) * 77 + 58
----
17614

skipif mysql # not compatible
query I rowsort label-950
SELECT + 3 * CAST ( + 76 AS INTEGER ) * 77 + 58
----
17614

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT - + 33 * + - COUNT( * ) + + - 34 + 51 - - - 11 + - 68 * + 71 AS col0
----
-4789

skipif mysql # not compatible
query I rowsort label-951
SELECT - + 33 * + - COUNT ( * ) + + - 34 + 51 - - - 11 + - 68 * + 71 AS col0
----
-4789

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT + - 20 * - COUNT( + - 51 )
----
20

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT + - 20 * - COUNT ( + - 51 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL - NULLIF ( COUNT( * ), 15 * 82 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - NULLIF ( COUNT ( * ), 15 * 82 ) AS col0
----
-1

query II rowsort
SELECT ALL - 30 + + ( - 34 ) AS col2, - 64
----
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT ALL + - COUNT( * ) + + 40 - - 64 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL + - COUNT ( * ) + + 40 - - 64 AS col1
----
103

query II rowsort
SELECT NULLIF ( - 75, + 58 ) AS col0, + 62
----
-75
62

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-959
SELECT 92 * - + 66 + + 71 / + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-959
SELECT 92 * - + 66 + + 71 / + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 15 + - 45 AS col1
----
-60

query I rowsort
SELECT 25 + + + 18
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT ALL - 23 * - + 9 DIV 85 DIV 69 * - - ( + + 71 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL - 23 * - + 9 / 85 / 69 * - - ( + + 71 ) AS col0
----
0

query II rowsort
SELECT ALL - 65 * - - ( - + 49 ) AS col1, - 52 AS col2
----
3185
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT ALL + - 73 - - ( - NULLIF ( + - ( - 54 ), + CASE + 20 WHEN - + 17 THEN NULL WHEN CASE + COALESCE ( + NULLIF ( 6, - 83 + + 43 ), 19, COALESCE ( + 55, - 59 * + 14 ) - - 96 / 50 ) WHEN + 94 THEN NULL ELSE 91 * 69 END THEN NULL WHEN - 37 - - NULLIF ( 88 + + 59, + 52 ) THEN 85 + - 24 END * + COUNT( * ) ) ) col0
----
-127

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL + - 73 - - ( - NULLIF ( + - ( - 54 ), + CASE + 20 WHEN - + 17 THEN NULL WHEN CASE + COALESCE ( + NULLIF ( 6, - 83 + + 43 ), 19, COALESCE ( + 55, - 59 * + 14 ) - - 96 / 50 ) WHEN + 94 THEN NULL ELSE 91 * 69 END THEN NULL WHEN - 37 - - NULLIF ( 88 + + 59, + 52 ) THEN 85 + - 24 END * + COUNT ( * ) ) ) col0
----
-127

query I rowsort
SELECT - + 17 col1
----
-17

query I rowsort
SELECT ALL - 74 - - 35 AS col0
----
-39

query I rowsort
SELECT 55 + 33
----
88

query I rowsort
SELECT ( - 20 ) + 10 * - 27
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ( - 3 ) * + 98 + + CASE - 80 WHEN - COUNT( * ) * - 55 + 46 THEN 9 WHEN ( - COUNT( * ) ) THEN 41 WHEN + 36 * + ( - ( COUNT( * ) ) ) THEN NULL WHEN 82 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-969
SELECT ( - 3 ) * + 98 + + CASE - 80 WHEN - COUNT ( * ) * - 55 + 46 THEN 9 WHEN ( - COUNT ( * ) ) THEN 41 WHEN + 36 * + ( - ( COUNT ( * ) ) ) THEN NULL WHEN 82 THEN NULL END col1
----
NULL

query I rowsort
SELECT 80 + - 17 + + 59 + - - 55 * + - ( 8 ) - + 41 * + 15 AS col0
----
-933

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT ( - ( - MIN( - + 35 ) ) ) * CASE - COUNT( ALL 3 ) WHEN - + MIN( ( + 92 ) ) + SUM( DISTINCT - CASE + 15 WHEN + CASE 92 WHEN 97 * + 43 + + COALESCE ( 37 + + 18, 98 ) THEN + 96 END THEN + 79 + - 82 ELSE - 67 / NULLIF ( + 69, 2 ) END ) THEN + 24 END + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT ( - ( - MIN ( - + 35 ) ) ) * CASE - COUNT ( ALL 3 ) WHEN - + MIN ( ( + 92 ) ) + SUM ( DISTINCT - CASE + 15 WHEN + CASE 92 WHEN 97 * + 43 + + COALESCE ( 37 + + 18, 98 ) THEN + 96 END THEN + 79 + - 82 ELSE - 67 / NULLIF ( + 69, 2 ) END ) THEN + 24 END + - 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-972
SELECT DISTINCT COUNT( * ) DIV 68 * - 49
----
0

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT COUNT ( * ) / 68 * - 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT 15 + 72 + - COUNT( * ) col2
----
86

skipif mysql # not compatible
query I rowsort label-973
SELECT 15 + 72 + - COUNT ( * ) col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT 42 * - MIN( DISTINCT - 5 ) * 77 + COALESCE ( - 0, + 17 ) col0
----
16170

skipif mysql # not compatible
query I rowsort label-974
SELECT 42 * - MIN ( DISTINCT - 5 ) * 77 + COALESCE ( - 0, + 17 ) col0
----
16170

query I rowsort
SELECT 43 * - - 64 * 21 - 93 AS col1
----
57699

query I rowsort
SELECT DISTINCT - - 55 + - 50 - - 32 AS col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-977
SELECT ALL + 1 + - 86 + + + 95 - MIN( 7 ) DIV - 44 * COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL + 1 + - 86 + + + 95 - MIN ( 7 ) / - 44 * COUNT ( * ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT 91 + - COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-978
SELECT 91 + - COUNT ( * ) AS col2
----
90

query II rowsort
SELECT DISTINCT - 77 + 76, 14 col0
----
-1
14

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

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

query I rowsort
SELECT + - 38 + + 36
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-982
SELECT - - ( + COUNT( * ) ) * 97 DIV CASE + 28 WHEN - 15 + - + 48 * + 84 THEN NULL ELSE COUNT( 60 ) + 14 END * - 44 - ( + 64 ) AS col2
----
-328

skipif mysql # not compatible
query I rowsort label-982
SELECT - - ( + COUNT ( * ) ) * 97 / CASE + 28 WHEN - 15 + - + 48 * + 84 THEN NULL ELSE COUNT ( 60 ) + 14 END * - 44 - ( + 64 ) AS col2
----
-328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-983
SELECT DISTINCT + 27 * 41 DIV - ( + SUM( + 1 ) ) AS col0
----
-1107

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT + 27 * 41 / - ( + SUM ( + 1 ) ) AS col0
----
-1107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-984
SELECT + 29 * 6 + COALESCE ( - 39, - + ( - - 69 ), 59 ) - - 85 / + MIN( ALL + 10 ) + + ( - 16 + - CAST( NULL AS SIGNED ) * COALESCE ( 21, 61, + 61 * - 36 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-984
SELECT + 29 * 6 + COALESCE ( - 39, - + ( - - 69 ), 59 ) - - 85 / + MIN ( ALL + 10 ) + + ( - 16 + - CAST ( NULL AS INTEGER ) * COALESCE ( 21, 61, + 61 * - 36 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - COUNT( * ) * - + ( + 81 ) * - + 86 AS col1
----
-6966

skipif mysql # not compatible
query I rowsort label-985
SELECT - COUNT ( * ) * - + ( + 81 ) * - + 86 AS col1
----
-6966

query I rowsort
SELECT DISTINCT - - 8 * + - 77
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT - 53 + - CASE SUM( DISTINCT 22 ) WHEN 63 THEN - ( + + COUNT( * ) ) + ( - 35 ) + 70 * - 68 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT - 53 + - CASE SUM ( DISTINCT 22 ) WHEN 63 THEN - ( + + COUNT ( * ) ) + ( - 35 ) + 70 * - 68 END col0
----
NULL

query I rowsort
SELECT - 58 * - 1 + 85 * NULLIF ( - 65, 42 ) AS col2
----
-5467

query I rowsort
SELECT - 58 * 85
----
-4930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-990
SELECT DISTINCT NULLIF ( COUNT( - 5 ), + CAST( NULL AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT NULLIF ( COUNT ( - 5 ), + CAST ( NULL AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT - 93 * - + 87 AS col0
----
8091

query II rowsort
SELECT - 99 + - NULLIF ( - 19, - 13 ) + + - 96, 96 + 20 AS col2
----
-176
116

onlyif mysql # aggregate syntax: 
query II rowsort label-993
SELECT DISTINCT - SUM( DISTINCT - + 97 ) * - 82 + + ( - - 71 ), 4 AS col0
----
-7883
4

skipif mysql # not compatible
query II rowsort label-993
SELECT DISTINCT - SUM ( DISTINCT - + 97 ) * - 82 + + ( - - 71 ), 4 AS col0
----
-7883
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-994
SELECT ALL - 18 DIV - CAST( 74 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL - 18 / - CAST ( 74 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT CASE - 76 WHEN - 82 THEN 43 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-996
SELECT ALL - 9 * ( - 26 ) * - CAST( 97 AS SIGNED ) col1, 92 AS col1, + 19
----
-22698
92
19

skipif mysql # not compatible
query III rowsort label-996
SELECT ALL - 9 * ( - 26 ) * - CAST ( 97 AS INTEGER ) col1, 92 AS col1, + 19
----
-22698
92
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-997
SELECT DISTINCT 41 AS col2, + MIN( + CASE - ( + 15 ) WHEN 11 THEN NULL ELSE 27 DIV - + ( + + 83 ) * - 14 END ) AS col0
----
41
0

skipif mysql # not compatible
query II rowsort label-997
SELECT DISTINCT 41 AS col2, + MIN ( + CASE - ( + 15 ) WHEN 11 THEN NULL ELSE 27 / - + ( + + 83 ) * - 14 END ) AS col0
----
41
0

query I rowsort
SELECT DISTINCT - 91 + + + 4 + - 78 + 10
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT 9 * - 99 + - - 63 * 2 * - COUNT( * ) * + COUNT( * ) + - 27 AS col0
----
-1044

skipif mysql # not compatible
query I rowsort label-999
SELECT 9 * - 99 + - - 63 * 2 * - COUNT ( * ) * + COUNT ( * ) + - 27 AS col0
----
-1044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1000
SELECT DISTINCT + ( - - 84 ) DIV + COUNT( ALL 99 ) + - COUNT( * ) * - COUNT( * ) + + 71 * - - 12 AS col2
----
937

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT + ( - - 84 ) / + COUNT ( ALL 99 ) + - COUNT ( * ) * - COUNT ( * ) + + 71 * - - 12 AS col2
----
937

query I rowsort
SELECT + 26 * + 42 AS col0
----
1092

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

query I rowsort
SELECT DISTINCT 28 * - - NULLIF ( + 51, - 38 ) + + 29
----
1457

query I rowsort
SELECT + 90 * + 84
----
7560

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1006
SELECT ALL + - 98 * - ( + CAST( 33 AS SIGNED ) ) + + - 4 + 43
----
3273

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL + - 98 * - ( + CAST ( 33 AS INTEGER ) ) + + - 4 + 43
----
3273

query I rowsort
SELECT ALL - 17 * - 16 + + 41 + + + 53 AS col0
----
366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1008
SELECT ALL 82 / 39 * CAST( NULL AS SIGNED ) * + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL 82 / 39 * CAST ( NULL AS INTEGER ) * + 25 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - + 33 * - 14 + - 52 + + 1 * 99 AS col2, - 12 * 20
----
509
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT - COUNT( + + 37 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1010
SELECT - COUNT ( + + 37 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1011
SELECT ALL - COUNT( * ) * + 0 - + CAST( ( - - COALESCE ( CAST( NULL AS SIGNED ), - + 40 * + - 17, - COUNT( * ) ) ) AS SIGNED ) + + + 89 * - 28
----
-3172

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL - COUNT ( * ) * + 0 - + CAST ( ( - - COALESCE ( CAST ( NULL AS INTEGER ), - + 40 * + - 17, - COUNT ( * ) ) ) AS INTEGER ) + + + 89 * - 28
----
-3172

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1013
SELECT ALL - + CAST( NULL AS SIGNED ) * - 88 - 13 AS col1, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-1013
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 88 - 13 AS col1, 10
----
NULL
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1014
SELECT ALL - 29 * 1 + - 11 - + 66 + + - COUNT( * ) / - 7 * + CAST( NULL AS SIGNED ) + + + COUNT( * ) + - + 18 + ( ( - 16 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - 29 * 1 + - 11 - + 66 + + - COUNT ( * ) / - 7 * + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + - + 18 + ( ( - 16 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + ( - 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-1016
SELECT ALL + 30 * COUNT( * ) * + + COUNT( - 50 ) - + 13 AS col2, - 38
----
17
-38

skipif mysql # not compatible
query II rowsort label-1016
SELECT ALL + 30 * COUNT ( * ) * + + COUNT ( - 50 ) - + 13 AS col2, - 38
----
17
-38

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

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

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

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

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

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

query I rowsort
SELECT - ( - 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT - 74 * + - 44 - + ( - COUNT( * ) ) AS col0
----
3257

skipif mysql # not compatible
query I rowsort label-1021
SELECT - 74 * + - 44 - + ( - COUNT ( * ) ) AS col0
----
3257

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

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

query I rowsort
SELECT ALL 93 * 0 AS col0
----
0

query I rowsort
SELECT - ( 18 ) + 94
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT - COUNT( * ) + - 97 + + 30 - 71 + + + 84 * + 2
----
29

skipif mysql # not compatible
query I rowsort label-1025
SELECT - COUNT ( * ) + - 97 + + 30 - 71 + + + 84 * + 2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT ALL - CASE - 98 WHEN - + 77 THEN COUNT( * ) END + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL - CASE - 98 WHEN - + 77 THEN COUNT ( * ) END + + 91
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1027
SELECT 95 AS col0, CASE 25 WHEN - COUNT( * ) THEN - - 68 ELSE - 26 * - COUNT( * ) END
----
95
26

skipif mysql # not compatible
query II rowsort label-1027
SELECT 95 AS col0, CASE 25 WHEN - COUNT ( * ) THEN - - 68 ELSE - 26 * - COUNT ( * ) END
----
95
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1028
SELECT + COUNT( * ) * + + CASE + 6 WHEN + + 40 / - 25 + - - 11 + + + 11 + - 89 - + - 82 * + 61 + - 66 - 29 * + 2 THEN 19 WHEN 7 + - 44 THEN 42 / - 73 ELSE 69 * + 85 + SUM( CASE 78 WHEN 26 + 20 THEN NULL WHEN + 98 * CAST( 34 AS DECIMAL ) THEN - 85 / - 3 END ) / - COALESCE ( - 88, 28 + + 18 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1028
SELECT + COUNT ( * ) * + + CASE + 6 WHEN + + 40 / - 25 + - - 11 + + + 11 + - 89 - + - 82 * + 61 + - 66 - 29 * + 2 THEN 19 WHEN 7 + - 44 THEN 42 / - 73 ELSE 69 * + 85 + SUM ( CASE 78 WHEN 26 + 20 THEN NULL WHEN + 98 * CAST ( 34 AS REAL ) THEN - 85 / - 3 END ) / - COALESCE ( - 88, 28 + + 18 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1029
SELECT - 9 + 25 - + + 64 + - - 17 * - + ( - + 86 ), + COUNT( ALL - - 63 ) AS col2
----
1414
1

skipif mysql # not compatible
query II rowsort label-1029
SELECT - 9 + 25 - + + 64 + - - 17 * - + ( - + 86 ), + COUNT ( ALL - - 63 ) AS col2
----
1414
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ALL - 87 + 14 + + + 32 + + COUNT( ALL + 72 ) * + 78 * - 43 * + 87 AS col2
----
-291839

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL - 87 + 14 + + + 32 + + COUNT ( ALL + 72 ) * + 78 * - 43 * + 87 AS col2
----
-291839

query I rowsort
SELECT DISTINCT ( 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT - SUM( DISTINCT - 3 ) + COUNT( * ) + 45 * + + 63 * + 38 + - 27 * - - NULLIF ( - - 81, + 74 ) + + 64 + COUNT( * )
----
105612

skipif mysql # not compatible
query I rowsort label-1032
SELECT - SUM ( DISTINCT - 3 ) + COUNT ( * ) + 45 * + + 63 * + 38 + - 27 * - - NULLIF ( - - 81, + 74 ) + + 64 + COUNT ( * )
----
105612

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

query I rowsort
SELECT - 73 + + 36 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-1035
SELECT DISTINCT COALESCE ( COUNT( * ), - + COUNT( DISTINCT 58 ) * 50, - 83 ) AS col1, + 50 AS col1
----
1
50

skipif mysql # not compatible
query II rowsort label-1035
SELECT DISTINCT COALESCE ( COUNT ( * ), - + COUNT ( DISTINCT 58 ) * 50, - 83 ) AS col1, + 50 AS col1
----
1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT 60 * + 70 * + COUNT( * ) + - + COUNT( * ) + 32
----
4231

skipif mysql # not compatible
query I rowsort label-1036
SELECT 60 * + 70 * + COUNT ( * ) + - + COUNT ( * ) + 32
----
4231

query II rowsort
SELECT ALL - ( + + ( + - 27 ) ) * + + 97, - ( + 63 ) * - - 59 AS col2
----
2619
-3717

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT + COUNT( * ), 90 AS col0
----
1
90

skipif mysql # not compatible
query II rowsort label-1038
SELECT + COUNT ( * ), 90 AS col0
----
1
90

query II rowsort
SELECT ALL + 66 AS col0, - 50 col1
----
66
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT ALL + 60 + + 48 + 77 * CAST( 18 AS SIGNED )
----
1494

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL + 60 + + 48 + 77 * CAST ( 18 AS INTEGER )
----
1494

query I rowsort
SELECT 21 + + 82
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1042
SELECT ALL - CASE + CAST( + 53 AS SIGNED ) WHEN - 28 THEN NULL ELSE + + 16 + - + 87 * + + 47 * + 80 END * + - 93 * + 4 + COUNT( * ) AS col1
----
-121682687

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - CASE + CAST ( + 53 AS INTEGER ) WHEN - 28 THEN NULL ELSE + + 16 + - + 87 * + + 47 * + 80 END * + - 93 * + 4 + COUNT ( * ) AS col1
----
-121682687

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1044
SELECT DISTINCT - + 98 AS col1, ( ( 54 ) ) - + - 43 + - CAST( + - NULLIF ( 17, + 89 * 53 * - - 62 ) AS SIGNED ) DIV CAST( 92 * 35 AS SIGNED ) AS col0
----
-98
97

skipif mysql # not compatible
query II rowsort label-1044
SELECT DISTINCT - + 98 AS col1, ( ( 54 ) ) - + - 43 + - CAST ( + - NULLIF ( 17, + 89 * 53 * - - 62 ) AS INTEGER ) / CAST ( 92 * 35 AS INTEGER ) AS col0
----
-98
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT - + COUNT( * ) * - 92 + + NULLIF ( + 12, + ( + ( 35 ) ) ) + 17 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-1045
SELECT - + COUNT ( * ) * - 92 + + NULLIF ( + 12, + ( + ( 35 ) ) ) + 17 AS col2
----
121

query I rowsort
SELECT 0 * - + 69 + - + 23
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1047
SELECT ALL - - NULLIF ( MIN( ALL - ( 97 ) ), + 96 + CAST( NULL AS DECIMAL ) )
----
-97

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL - - NULLIF ( MIN ( ALL - ( 97 ) ), + 96 + CAST ( NULL AS REAL ) )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1048
SELECT - 50 / + - 11 + + - MIN( + 67 ) * 32 + - + SUM( - 45 ) + 36 * - CAST( NULL AS SIGNED ) + - - ( 23 ) * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT - 50 / + - 11 + + - MIN ( + 67 ) * 32 + - + SUM ( - 45 ) + 36 * - CAST ( NULL AS INTEGER ) + - - ( 23 ) * 57 AS col0
----
NULL

query I rowsort
SELECT ALL - + 42 - - 80
----
38

query I rowsort
SELECT - 99 + + 6
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-1051
SELECT ALL - + COUNT( * ), 32 AS col0
----
-1
32

skipif mysql # not compatible
query II rowsort label-1051
SELECT ALL - + COUNT ( * ), 32 AS col0
----
-1
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1052
SELECT ALL COALESCE ( 91, - 14 ) * + + 59 * 47 * - 14 AS col1, CAST( - - 91 AS SIGNED ) AS col2
----
-3532802
91

skipif mysql # not compatible
query II rowsort label-1052
SELECT ALL COALESCE ( 91, - 14 ) * + + 59 * 47 * - 14 AS col1, CAST ( - - 91 AS INTEGER ) AS col2
----
-3532802
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1053
SELECT + 13 * + + NULLIF ( - 84, + MIN( ALL - 18 ) ) - - 25 + - 46 DIV - 31 AS col2
----
-1066

skipif mysql # not compatible
query I rowsort label-1053
SELECT + 13 * + + NULLIF ( - 84, + MIN ( ALL - 18 ) ) - - 25 + - 46 / - 31 AS col2
----
-1066

query II rowsort
SELECT + 22 + - 44 AS col0, + 97
----
-22
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1055
SELECT 84, - COUNT( * ) + + - 44 + - 8 AS col0
----
84
-53

skipif mysql # not compatible
query II rowsort label-1055
SELECT 84, - COUNT ( * ) + + - 44 + - 8 AS col0
----
84
-53

query I rowsort
SELECT ALL + 17 * - 39
----
-663

query I rowsort
SELECT - 49 + + - 8
----
-57

query I rowsort
SELECT + - COALESCE ( + 58, - 67 ) AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1059
SELECT - CASE 81 WHEN - CAST( 39 AS SIGNED ) THEN NULL WHEN + - SUM( - 42 ) THEN - 87 * - 74 - + COUNT( * ) + - 50 + - MIN( DISTINCT - NULLIF ( 22, ( 66 ) ) ) * 98 ELSE NULL END + 40 * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT - CASE 81 WHEN - CAST ( 39 AS INTEGER ) THEN NULL WHEN + - SUM ( - 42 ) THEN - 87 * - 74 - + COUNT ( * ) + - 50 + - MIN ( DISTINCT - NULLIF ( 22, ( 66 ) ) ) * 98 ELSE NULL END + 40 * 69
----
NULL

query II rowsort
SELECT - 82 AS col2, 47
----
-82
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT ( - 86 ) DIV + + 74 + - 6 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1061
SELECT ( - 86 ) / + + 74 + - 6 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ALL 93 * 74 * SUM( + 24 ) AS col1
----
165168

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL 93 * 74 * SUM ( + 24 ) AS col1
----
165168

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT DISTINCT 52 * - - CASE - + CASE + 88 WHEN + 45 THEN - 2 * + 68 - - COUNT( * ) END WHEN + - COUNT( * ) THEN NULL WHEN + 42 THEN 85 END / - ( 29 ) / + ( - 99 - - 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT 52 * - - CASE - + CASE + 88 WHEN + 45 THEN - 2 * + 68 - - COUNT ( * ) END WHEN + - COUNT ( * ) THEN NULL WHEN + 42 THEN 85 END / - ( 29 ) / + ( - 99 - - 20 )
----
NULL

query II rowsort
SELECT DISTINCT 10 + - - 52, 34 * + 75 + - 27 AS col2
----
62
2523

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT ( 26 ) DIV + + 99 + + 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1065
SELECT ( 26 ) / + + 99 + + 20 AS col2
----
20

query I rowsort
SELECT ALL 45 + 93 - 14 * + 5
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1067
SELECT DISTINCT 4 + + + COUNT( * ) AS col0, 77 * - 90 - - + 54 AS col0
----
5
-6876

skipif mysql # not compatible
query II rowsort label-1067
SELECT DISTINCT 4 + + + COUNT ( * ) AS col0, 77 * - 90 - - + 54 AS col0
----
5
-6876

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT COUNT( * ) + - + 88 + 61 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-1068
SELECT COUNT ( * ) + - + 88 + 61 AS col1
----
-26

query I rowsort
SELECT 25 + 96 AS col1
----
121

query I rowsort
SELECT DISTINCT ( - - 68 ) + - - 93 - + 66 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT DISTINCT - 73 + + 8 + - 10 + + 77 + 12 DIV 87
----
2

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT - 73 + + 8 + - 10 + + 77 + 12 / 87
----
2

query I rowsort
SELECT COALESCE ( - - ( - 76 ), 97 ) * - 24 * - + 31 AS col2
----
-56544

query I rowsort
SELECT ALL 32 + + 45 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT DISTINCT CASE - 43 WHEN + COUNT( * ) * - 22 THEN NULL WHEN - CASE - 41 WHEN + - 71 THEN - NULLIF ( - - 78, + - COALESCE ( + 98, - 8 * 48 ) ) WHEN + 74 THEN NULL ELSE + MIN( DISTINCT 64 ) / - 44 + 67 END + 95 THEN + MIN( - 8 ) WHEN 23 + - 68 THEN NULL ELSE + 63 * - 25 END + - 91 * + ( - CAST( 23 AS SIGNED ) + + SUM( DISTINCT - 15 + - 81 ) ) AS col2
----
9254

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT CASE - 43 WHEN + COUNT ( * ) * - 22 THEN NULL WHEN - CASE - 41 WHEN + - 71 THEN - NULLIF ( - - 78, + - COALESCE ( + 98, - 8 * 48 ) ) WHEN + 74 THEN NULL ELSE + MIN ( DISTINCT 64 ) / - 44 + 67 END + 95 THEN + MIN ( - 8 ) WHEN 23 + - 68 THEN NULL ELSE + 63 * - 25 END + - 91 * + ( - CAST ( 23 AS INTEGER ) + + SUM ( DISTINCT - 15 + - 81 ) ) AS col2
----
9254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1075
SELECT + ( + + COUNT( * ) ) * + 62 DIV 3
----
20

skipif mysql # not compatible
query I rowsort label-1075
SELECT + ( + + COUNT ( * ) ) * + 62 / 3
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT - 31 * - ( MAX( - 3 ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1076
SELECT - 31 * - ( MAX ( - 3 ) ) AS col2
----
-93

query I rowsort
SELECT DISTINCT - - 5 AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1078
SELECT ALL - + CAST( + 47 AS SIGNED ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL - + CAST ( + 47 AS INTEGER ) AS col0
----
-47

query I rowsort
SELECT ALL + 7 * 1
----
7

query I rowsort
SELECT DISTINCT + + ( + 10 ) * + 53 * + 33
----
17490

query I rowsort
SELECT ALL + 55 + + 5 col2
----
60

query I rowsort
SELECT DISTINCT ( + - 29 ) + + 92 + - 89 + 34 * + 3 AS col0
----
76

query I rowsort
SELECT DISTINCT - 77 + + 15 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1084
SELECT ALL + 22 + - - COUNT( * ) * - 16, COUNT( * ) AS col0
----
6
1

skipif mysql # not compatible
query II rowsort label-1084
SELECT ALL + 22 + - - COUNT ( * ) * - 16, COUNT ( * ) AS col0
----
6
1

query II rowsort
SELECT + 67 AS col0, 26 AS col1
----
67
26

query I rowsort
SELECT ALL - 59 + 30 AS col2
----
-29

query I rowsort
SELECT DISTINCT + 4 + - 73
----
-69

query I rowsort
SELECT 80 + + 50 AS col0
----
130

query I rowsort
SELECT ALL + 86 + 84
----
170

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1091
SELECT 96 * 35 * + CAST( - COALESCE ( 70, + 32 ) AS SIGNED ) + + + ( + 30 ) + - COUNT( * ) * - + ( + + 17 ) * CASE COUNT( * ) WHEN - CAST( COUNT( * ) AS SIGNED ) * 11 THEN + 64 * 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1091
SELECT 96 * 35 * + CAST ( - COALESCE ( 70, + 32 ) AS INTEGER ) + + + ( + 30 ) + - COUNT ( * ) * - + ( + + 17 ) * CASE COUNT ( * ) WHEN - CAST ( COUNT ( * ) AS INTEGER ) * 11 THEN + 64 * 25 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1092
SELECT - 33 AS col1, + COALESCE ( - 53, - - COUNT( * ) ) + NULLIF ( + 31, - NULLIF ( - COALESCE ( + 19, + + 38 * - 23 + - - 4, - SUM( + ( 26 ) ) - ( 38 ) ), 84 / - 87 ) ) AS col2
----
-33
-22

skipif mysql # not compatible
query II rowsort label-1092
SELECT - 33 AS col1, + COALESCE ( - 53, - - COUNT ( * ) ) + NULLIF ( + 31, - NULLIF ( - COALESCE ( + 19, + + 38 * - 23 + - - 4, - SUM ( + ( 26 ) ) - ( 38 ) ), 84 / - 87 ) ) AS col2
----
-33
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-1093
SELECT DISTINCT 35 AS col2, - COUNT( * ) * + 4
----
35
-4

skipif mysql # not compatible
query II rowsort label-1093
SELECT DISTINCT 35 AS col2, - COUNT ( * ) * + 4
----
35
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT COALESCE ( + - 55, - - 59 ) + + - COUNT( * ) * + 2 * + COUNT( * ) - 56 col1
----
-113

skipif mysql # not compatible
query I rowsort label-1094
SELECT COALESCE ( + - 55, - - 59 ) + + - COUNT ( * ) * + 2 * + COUNT ( * ) - 56 col1
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1095
SELECT ALL 44 col2, 94 + + 36 + - CAST( 71 AS SIGNED ) + + 84 AS col2
----
44
143

skipif mysql # not compatible
query II rowsort label-1095
SELECT ALL 44 col2, 94 + + 36 + - CAST ( 71 AS INTEGER ) + + 84 AS col2
----
44
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT + COUNT( - 39 ) * - 78
----
-78

skipif mysql # not compatible
query I rowsort label-1096
SELECT + COUNT ( - 39 ) * - 78
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1097
SELECT DISTINCT 79 DIV + 97 * + ( + 51 )
----
0

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT 79 / + 97 * + ( + 51 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1098
SELECT ALL 54 AS col0, ( + 67 ) * CAST( NULL AS SIGNED ) * + CAST( - 58 AS SIGNED ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-1098
SELECT ALL 54 AS col0, ( + 67 ) * CAST ( NULL AS INTEGER ) * + CAST ( - 58 AS INTEGER ) AS col2
----
54
NULL

query I rowsort
SELECT + 14 + ( 76 )
----
90

query I rowsort
SELECT + 20 + 29 + - + 60
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT ALL 26 DIV + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL 26 / + 98 AS col1
----
0

query I rowsort
SELECT DISTINCT 60 col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1103
SELECT + - COUNT( DISTINCT - 89 ) * - - 99 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT + - COUNT ( DISTINCT - 89 ) * - - 99 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( + 42 ) AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1105
SELECT + + 96 + - 52 * + + CAST( - 72 AS SIGNED ) * - 99
----
-370560

skipif mysql # not compatible
query I rowsort label-1105
SELECT + + 96 + - 52 * + + CAST ( - 72 AS INTEGER ) * - 99
----
-370560

query II rowsort
SELECT DISTINCT 81 AS col0, 70
----
81
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT ALL + ( 3 ) * + 98 * + COUNT( * ) * - - 78
----
22932

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL + ( 3 ) * + 98 * + COUNT ( * ) * - - 78
----
22932

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT + 68 * - COUNT( 5 ) - + 62
----
-130

skipif mysql # not compatible
query I rowsort label-1108
SELECT + 68 * - COUNT ( 5 ) - + 62
----
-130

query I rowsort
SELECT ALL 37 * + 86 AS col0
----
3182

query II rowsort
SELECT ALL + + NULLIF ( + ( + 72 ), - 29 ), + 32 AS col0
----
72
32

query I rowsort
SELECT DISTINCT + ( - + 52 ) AS col0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT - 95 DIV - - 12
----
-7

skipif mysql # not compatible
query I rowsort label-1112
SELECT - 95 / - - 12
----
-7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1114
SELECT - 10, COUNT( 9 ) AS col0
----
-10
1

skipif mysql # not compatible
query II rowsort label-1114
SELECT - 10, COUNT ( 9 ) AS col0
----
-10
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1115
SELECT ALL - CAST( NULL AS DECIMAL ) * 65 * + ( 63 ) + - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL - CAST ( NULL AS REAL ) * 65 * + ( 63 ) + - 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT + CASE WHEN NOT + 7 <= - - 38 * - 10 THEN NULL WHEN - 26 IS NOT NULL THEN 7 / MIN( - 22 ) + - - 60 + + + 7 + + 35 ELSE + 74 END * + 61 + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT + CASE WHEN NOT + 7 <= - - 38 * - 10 THEN NULL WHEN - 26 IS NOT NULL THEN 7 / MIN ( - 22 ) + - - 60 + + + 7 + + 35 ELSE + 74 END * + 61 + 13
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1117
SELECT DISTINCT - COUNT( * ) * + 25 + - COUNT( * ) AS col0, 28 + COALESCE ( + + 41, MAX( DISTINCT 67 ) ) DIV - 89 + 8 DIV 55
----
-26
28

skipif mysql # not compatible
query II rowsort label-1117
SELECT DISTINCT - COUNT ( * ) * + 25 + - COUNT ( * ) AS col0, 28 + COALESCE ( + + 41, MAX ( DISTINCT 67 ) ) / - 89 + 8 / 55
----
-26
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL - + 24 * COUNT( * ) * - 95 * + 89 + SUM( DISTINCT - 90 ) AS col2
----
202830

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL - + 24 * COUNT ( * ) * - 95 * + 89 + SUM ( DISTINCT - 90 ) AS col2
----
202830

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT - 97 + + CASE + + 98 WHEN 59 + 29 THEN + 34 * - ( 23 ) * + 4 + - COUNT( ALL + 41 ) + + + 20 + COUNT( * ) * 24 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1119
SELECT - 97 + + CASE + + 98 WHEN 59 + 29 THEN + 34 * - ( 23 ) * + 4 + - COUNT ( ALL + 41 ) + + + 20 + COUNT ( * ) * 24 END col2
----
NULL

query II rowsort
SELECT + 45 AS col0, + 97
----
45
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT - 58 + + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-1121
SELECT - 58 + + COUNT ( * ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT 91 * - + MIN( 77 ) + ( - 60 ) AS col1
----
-7067

skipif mysql # not compatible
query I rowsort label-1122
SELECT 91 * - + MIN ( 77 ) + ( - 60 ) AS col1
----
-7067

query I rowsort
SELECT ALL + NULLIF ( + 31, - - AVG ( DISTINCT - 96 ) ) * + 89
----
2759

query I rowsort
SELECT - 10 + + - 56 + 84
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1126
SELECT ALL CAST( 46 AS SIGNED ) AS col1, 39 + COALESCE ( - - ( + 88 ), + CASE + 62 WHEN + CAST( - - COUNT( * ) AS DECIMAL ) THEN + ( + + 90 ) WHEN + CAST( - 83 AS SIGNED ) THEN NULL END DIV + 24 ) + + 33 * - COUNT( * ) * CAST( 18 AS SIGNED )
----
46
-467

skipif mysql # not compatible
query II rowsort label-1126
SELECT ALL CAST ( 46 AS INTEGER ) AS col1, 39 + COALESCE ( - - ( + 88 ), + CASE + 62 WHEN + CAST ( - - COUNT ( * ) AS REAL ) THEN + ( + + 90 ) WHEN + CAST ( - 83 AS INTEGER ) THEN NULL END / + 24 ) + + 33 * - COUNT ( * ) * CAST ( 18 AS INTEGER )
----
46
-467

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT DISTINCT CASE + 86 WHEN + 25 THEN - - 29 + - ( - 2 ) WHEN - ( + COUNT( * ) ) * 56 + + 58 * + + 35 * - 68 THEN - 79 * + 39 ELSE + 70 + ( - 55 ) END
----
15

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT CASE + 86 WHEN + 25 THEN - - 29 + - ( - 2 ) WHEN - ( + COUNT ( * ) ) * 56 + + 58 * + + 35 * - 68 THEN - 79 * + 39 ELSE + 70 + ( - 55 ) END
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - MAX( + - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-1128
SELECT - MAX ( + - 88 )
----
88

query I rowsort
SELECT ALL 38 * - 38
----
-1444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1130
SELECT ALL ( + CASE + COUNT( 26 ) WHEN 95 * - 63 + + CASE - 20 WHEN 27 * 33 * - + 76 THEN - 46 + + 89 - - 73 / - 46 * CAST( 8 * - 67 + + 39 AS SIGNED ) ELSE - 73 END THEN NULL WHEN 33 + 75 THEN 34 + + COUNT( * ) END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL ( + CASE + COUNT ( 26 ) WHEN 95 * - 63 + + CASE - 20 WHEN 27 * 33 * - + 76 THEN - 46 + + 89 - - 73 / - 46 * CAST ( 8 * - 67 + + 39 AS INTEGER ) ELSE - 73 END THEN NULL WHEN 33 + 75 THEN 34 + + COUNT ( * ) END ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL ( - COALESCE ( 98, - COUNT( * ) * - - 15, + 55 ) ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL ( - COALESCE ( 98, - COUNT ( * ) * - - 15, + 55 ) ) col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1132
SELECT - CASE - CAST( 83 AS SIGNED ) WHEN + 49 THEN NULL WHEN - AVG ( + + COALESCE ( - 85, - - 12 ) ) THEN NULL ELSE - 31 - + - 49 * 77 - + 4 DIV + 10 END
----
-3742

skipif mysql # not compatible
query I rowsort label-1132
SELECT - CASE - CAST ( 83 AS INTEGER ) WHEN + 49 THEN NULL WHEN - AVG ( + + COALESCE ( - 85, - - 12 ) ) THEN NULL ELSE - 31 - + - 49 * 77 - + 4 / + 10 END
----
-3742

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1133
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 96, + ( - - AVG ( - CAST( NULL AS SIGNED ) ) ) + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1133
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 96, + ( - - AVG ( - CAST ( NULL AS INTEGER ) ) ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1134
SELECT DISTINCT CAST( + 37 AS SIGNED ) AS col2, 47 AS col1
----
37
47

skipif mysql # not compatible
query II rowsort label-1134
SELECT DISTINCT CAST ( + 37 AS INTEGER ) AS col2, 47 AS col1
----
37
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ALL 2 * COUNT( 15 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL 2 * COUNT ( 15 ) AS col0
----
2

query II rowsort
SELECT - 8 * + 48 col2, + 59
----
-384
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1137
SELECT + 14 * + - 51 DIV 51 DIV - 81 * - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1137
SELECT + 14 * + - 51 / 51 / - 81 * - 69 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1138
SELECT DISTINCT - 62 * - CAST( NULL AS DECIMAL ) * 17 * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - 62 * - CAST ( NULL AS REAL ) * 17 * 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1139
SELECT + CAST( 38 AS SIGNED ) * - 6
----
-228

skipif mysql # not compatible
query I rowsort label-1139
SELECT + CAST ( 38 AS INTEGER ) * - 6
----
-228

query II rowsort
SELECT ALL - 29 * + 72 AS col0, 83 AS col1
----
-2088
83

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1142
SELECT ALL 9 DIV + - ( 49 ) + + 23 AS col1, + 2 col0
----
23
2

skipif mysql # not compatible
query II rowsort label-1142
SELECT ALL 9 / + - ( 49 ) + + 23 AS col1, + 2 col0
----
23
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1143
SELECT - - 74 / + COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT - - 74 / + COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1144
SELECT + - 68 + - 31 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1144
SELECT + - 68 + - 31 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1146
SELECT ALL + NULLIF ( CASE ( 23 ) WHEN 24 THEN + 78 ELSE - - COUNT( * ) END, 61 * 50 DIV 39 DIV - - CASE - 65 WHEN 61 THEN + 32 + COUNT( ALL + 77 ) END ) DIV 85 + + 7 * COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL + NULLIF ( CASE ( 23 ) WHEN 24 THEN + 78 ELSE - - COUNT ( * ) END, 61 * 50 / 39 / - - CASE - 65 WHEN 61 THEN + 32 + COUNT ( ALL + 77 ) END ) / 85 + + 7 * COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1147
SELECT + 68 * COUNT( * ), - 3 col2
----
68
-3

skipif mysql # not compatible
query II rowsort label-1147
SELECT + 68 * COUNT ( * ), - 3 col2
----
68
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1148
SELECT DISTINCT + + CASE - 21 WHEN + - 47 + + + CASE - COUNT( - 15 ) WHEN + - 71 THEN NULLIF ( - 49, - - 49 ) * - 26 + + 7 END + + 36 / + NULLIF ( 80, + ( CASE + 49 WHEN + CASE 20 WHEN - 95 THEN NULL WHEN + 25 THEN + 78 * - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) * - 2 THEN NULL ELSE NULL END + - 1 THEN AVG ( ALL 18 ) WHEN - 28 THEN NULL END ) * - 89 + 90 ) THEN 77 ELSE - 49 * 58 END
----
-2842

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT + + CASE - 21 WHEN + - 47 + + + CASE - COUNT ( - 15 ) WHEN + - 71 THEN NULLIF ( - 49, - - 49 ) * - 26 + + 7 END + + 36 / + NULLIF ( 80, + ( CASE + 49 WHEN + CASE 20 WHEN - 95 THEN NULL WHEN + 25 THEN + 78 * - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) * - 2 THEN NULL ELSE NULL END + - 1 THEN AVG ( ALL 18 ) WHEN - 28 THEN NULL END ) * - 89 + 90 ) THEN 77 ELSE - 49 * 58 END
----
-2842

query I rowsort
SELECT + - 67 * - 38 AS col0
----
2546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1150
SELECT DISTINCT - CAST( + 82 AS SIGNED ) * - MAX( DISTINCT 60 ) * - COUNT( * ) * + + 94
----
-462480

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT - CAST ( + 82 AS INTEGER ) * - MAX ( DISTINCT 60 ) * - COUNT ( * ) * + + 94
----
-462480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT DISTINCT + MIN( - COALESCE ( - CASE + + 73 WHEN + + 93 THEN NULL WHEN + - 1 THEN 40 END, - - 84 ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT + MIN ( - COALESCE ( - CASE + + 73 WHEN + + 93 THEN NULL WHEN + - 1 THEN 40 END, - - 84 ) ) AS col1
----
-84

query I rowsort
SELECT ( + + 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1155
SELECT ( + COUNT( ALL + 37 ) ), 77 + + - 79 AS col2
----
1
-2

skipif mysql # not compatible
query II rowsort label-1155
SELECT ( + COUNT ( ALL + 37 ) ), 77 + + - 79 AS col2
----
1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1156
SELECT DISTINCT + CASE + + SUM( - 70 ) WHEN - + 1 * - 85 THEN NULL WHEN - 37 + - 32 + - - 61 - + 73 * - - 11 THEN + 94 * - COUNT( * ) * - + 15 / + NULLIF ( + ( - AVG ( + 67 ) ), ( 78 ) * + 29 + - CAST( 97 AS SIGNED ) / - 14 ) * COUNT( * ) + 60 * 78 ELSE 11 END AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT + CASE + + SUM ( - 70 ) WHEN - + 1 * - 85 THEN NULL WHEN - 37 + - 32 + - - 61 - + 73 * - - 11 THEN + 94 * - COUNT ( * ) * - + 15 / + NULLIF ( + ( - AVG ( + 67 ) ), ( 78 ) * + 29 + - CAST ( 97 AS INTEGER ) / - 14 ) * COUNT ( * ) + 60 * 78 ELSE 11 END AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ( + MIN( DISTINCT 34 ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1157
SELECT ( + MIN ( DISTINCT 34 ) ) AS col0
----
34

query I rowsort
SELECT ALL + 69 * + 12 - ( + - 96 ) AS col2
----
924

query I rowsort
SELECT ALL - ( - 64 )
----
64

query I rowsort
SELECT DISTINCT - 14 * - - 51 AS col1
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT DISTINCT - SUM( DISTINCT - 94 ) col0
----
94

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT - SUM ( DISTINCT - 94 ) col0
----
94

query I rowsort
SELECT ALL - 97 * + 7 AS col2
----
-679

query I rowsort
SELECT 70 * + 78 + + - 54 * + + 39 AS col2
----
3354

query I rowsort
SELECT - 7 * - 61 + - 3
----
424

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT 40 + - 28 DIV + 9 + 28 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1165
SELECT 40 + - 28 / + 9 + 28 AS col2
----
65

query I rowsort
SELECT DISTINCT - 52 * - 73
----
3796

query I rowsort
SELECT ALL 62 col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1168
SELECT + 49 AS col0, + COUNT( * ) + - - COUNT( * ) - COUNT( * ) + - + COUNT( * ) AS col2
----
49
0

skipif mysql # not compatible
query II rowsort label-1168
SELECT + 49 AS col0, + COUNT ( * ) + - - COUNT ( * ) - COUNT ( * ) + - + COUNT ( * ) AS col2
----
49
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1171
SELECT ALL CASE 46 WHEN + 40 THEN + + COUNT( - 95 ) END, 31 - + 86 AS col1
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-1171
SELECT ALL CASE 46 WHEN + 40 THEN + + COUNT ( - 95 ) END, 31 - + 86 AS col1
----
NULL
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT DISTINCT - - 57 + 67 + + 24 DIV 66 * - - 22 * + 57 - - 47 * - 21 * + 18 - + 34 + 87 AS col0
----
-17589

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT - - 57 + 67 + + 24 / 66 * - - 22 * + 57 - - 47 * - 21 * + 18 - + 34 + 87 AS col0
----
-17589

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1173
SELECT + COUNT( * ) * ( - 50 ) DIV ( 83 ) AS col2, 12 + + + SUM( ALL 89 ) AS col0
----
0
101

skipif mysql # not compatible
query II rowsort label-1173
SELECT + COUNT ( * ) * ( - 50 ) / ( 83 ) AS col2, 12 + + + SUM ( ALL 89 ) AS col0
----
0
101

query I rowsort
SELECT 90 + ( 53 ) + + 74
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT DISTINCT - COUNT( * ) + NULLIF ( + 62, - MIN( + 88 ) + 66 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT - COUNT ( * ) + NULLIF ( + 62, - MIN ( + 88 ) + 66 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT ALL + + COUNT( * ) + - 98 * + 35
----
-3429

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL + + COUNT ( * ) + - 98 * + 35
----
-3429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT DISTINCT - + 82 * - - CAST( + + 60 AS SIGNED ) AS col2
----
-4920

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT - + 82 * - - CAST ( + + 60 AS INTEGER ) AS col2
----
-4920

query I rowsort
SELECT - 39 + - 3 AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1179
SELECT ALL + + 53 + - ( 45 ), ( + MIN( ALL + 2 ) ) + + 65 DIV - MIN( - 24 ) AS col2
----
8
4

skipif mysql # not compatible
query II rowsort label-1179
SELECT ALL + + 53 + - ( 45 ), ( + MIN ( ALL + 2 ) ) + + 65 / - MIN ( - 24 ) AS col2
----
8
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1180
SELECT + COUNT( * ), CASE + AVG ( DISTINCT + 24 ) WHEN - 59 * + + CAST( NULL AS SIGNED ) THEN SUM( - - 5 ) WHEN - 99 + + 7 THEN NULL END / + 60 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1180
SELECT + COUNT ( * ), CASE + AVG ( DISTINCT + 24 ) WHEN - 59 * + + CAST ( NULL AS INTEGER ) THEN SUM ( - - 5 ) WHEN - 99 + + 7 THEN NULL END / + 60 AS col0
----
1
NULL

query I rowsort
SELECT ALL - 76 + + 92
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1182
SELECT - CAST( NULL AS DECIMAL ) * 44 * - 88 * - 81 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT - CAST ( NULL AS REAL ) * 44 * - 88 * - 81 - - COUNT ( * )
----
NULL

query I rowsort
SELECT + 32 + 81
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1184
SELECT ALL 72 + - 34 + - NULLIF ( MIN( DISTINCT + ( - 23 ) ), - + CAST( NULL AS SIGNED ) * COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL 72 + - 34 + - NULLIF ( MIN ( DISTINCT + ( - 23 ) ), - + CAST ( NULL AS INTEGER ) * COUNT ( * ) )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1185
SELECT CAST( NULLIF ( 48, - 74 ) AS SIGNED ) * - 40 * + 19, 21 AS col0
----
-36480
21

skipif mysql # not compatible
query II rowsort label-1185
SELECT CAST ( NULLIF ( 48, - 74 ) AS INTEGER ) * - 40 * + 19, 21 AS col0
----
-36480
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL COUNT( * ) - + 3 + - 21
----
-23

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL COUNT ( * ) - + 3 + - 21
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT + 36 * MIN( ALL + 88 ) + + 93 * + COUNT( * ) + + 59 AS col1
----
3320

skipif mysql # not compatible
query I rowsort label-1187
SELECT + 36 * MIN ( ALL + 88 ) + + 93 * + COUNT ( * ) + + 59 AS col1
----
3320

query II rowsort
SELECT 88, - 22 AS col0
----
88
-22

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1190
SELECT DISTINCT 10 * + 84, - 96 - - COUNT( * ) AS col1, - + COUNT( * ) AS col1
----
840
-95
-1

skipif mysql # not compatible
query III rowsort label-1190
SELECT DISTINCT 10 * + 84, - 96 - - COUNT ( * ) AS col1, - + COUNT ( * ) AS col1
----
840
-95
-1

query II rowsort
SELECT DISTINCT - 47, 0 AS col1
----
-47
0

query I rowsort
SELECT DISTINCT 28 * 21 AS col1
----
588

query I rowsort
SELECT 24 + + + 7 + - 55 + + NULLIF ( - + 59, - 48 )
----
-83

query I rowsort
SELECT ALL 63 * 56 AS col0
----
3528

query I rowsort
SELECT 31 * + - 59
----
-1829

query I rowsort
SELECT DISTINCT 74 * - 5 * 13 AS col0
----
-4810

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT COUNT( * ) * ( CASE + + 54 WHEN + ( 39 ) + - COUNT( * ) + - + 19 / + - 44 THEN 94 ELSE NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1197
SELECT COUNT ( * ) * ( CASE + + 54 WHEN + ( 39 ) + - COUNT ( * ) + - + 19 / + - 44 THEN 94 ELSE NULL END ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1198
SELECT ALL COUNT( * ) * 53 / + CAST( NULL AS SIGNED ) / + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL COUNT ( * ) * 53 / + CAST ( NULL AS INTEGER ) / + + 52
----
NULL

query II rowsort
SELECT DISTINCT - 82 AS col2, + 74 AS col1
----
-82
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT 59 + - SUM( DISTINCT - 39 )
----
98

skipif mysql # not compatible
query I rowsort label-1200
SELECT 59 + - SUM ( DISTINCT - 39 )
----
98

query II rowsort
SELECT 9 AS col2, + COALESCE ( 84, - 93 * + + 99 + 82 ) AS col1
----
9
84

query I rowsort
SELECT DISTINCT - NULLIF ( 58, - 99 ) AS col0
----
-58

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

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL + 93 / - 14 * - COUNT ( * ) AS col1
----
6

query II rowsort
SELECT ALL 5 AS col1, + 24 AS col2
----
5
24

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT DISTINCT 57 AS col0, 61 * + COUNT( * ) AS col0
----
57
61

skipif mysql # not compatible
query II rowsort label-1205
SELECT DISTINCT 57 AS col0, 61 * + COUNT ( * ) AS col0
----
57
61

query I rowsort
SELECT ( 21 ) * + 53 - + + 49
----
1064

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

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

query I rowsort
SELECT ALL + 54 + + 88
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1209
SELECT COUNT( * ) DIV + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT COUNT ( * ) / + 57 AS col1
----
0

query I rowsort
SELECT 59 * + - ( - - 70 )
----
-4130

onlyif mysql # aggregate syntax: 
query II rowsort label-1211
SELECT ALL + - 93 + MAX( - + COALESCE ( - 2, 20 ) ) * 67, COUNT( * ) AS col2
----
41
1

skipif mysql # not compatible
query II rowsort label-1211
SELECT ALL + - 93 + MAX ( - + COALESCE ( - 2, 20 ) ) * 67, COUNT ( * ) AS col2
----
41
1

query I rowsort
SELECT 5 * + + 90
----
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1213
SELECT + 28 AS col2, 97 + 17 + - 99 * - AVG ( DISTINCT 51 ) * MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) / 89
----
28
NULL

skipif mysql # not compatible
query II rowsort label-1213
SELECT + 28 AS col2, 97 + 17 + - 99 * - AVG ( DISTINCT 51 ) * MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) / 89
----
28
NULL

query II rowsort
SELECT 46, - 34 col0
----
46
-34

query I rowsort
SELECT DISTINCT + ( 88 ) + 5 + 71 + - + 42 AS col1
----
122

query II rowsort
SELECT DISTINCT - 85 + 6 col0, ( - 87 )
----
-79
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT - - COALESCE ( + 41, + - SUM( 47 ) * 6 )
----
41

skipif mysql # not compatible
query I rowsort label-1217
SELECT - - COALESCE ( + 41, + - SUM ( 47 ) * 6 )
----
41

query I rowsort
SELECT ALL + 47 + - 62
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT - 78 + + - 35 * + SUM( + ( + 96 ) ) AS col0
----
-3438

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT - 78 + + - 35 * + SUM ( + ( + 96 ) ) AS col0
----
-3438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1220
SELECT ( + 25 ) * COUNT( - - 25 ) + + + 21 + COALESCE ( 57, + 48 * - CAST( NULL AS SIGNED ) - 55 ) DIV - + 12 + - 7 * + MIN( - 6 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1220
SELECT ( + 25 ) * COUNT ( - - 25 ) + + + 21 + COALESCE ( 57, + 48 * - CAST ( NULL AS INTEGER ) - 55 ) / - + 12 + - 7 * + MIN ( - 6 ) AS col1
----
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT DISTINCT + COALESCE ( - - 48, - - ( - 93 ) ) - + - NULLIF ( + - COUNT( + 95 ), 33 )
----
47

skipif mysql # not compatible
query I rowsort label-1222
SELECT DISTINCT + COALESCE ( - - 48, - - ( - 93 ) ) - + - NULLIF ( + - COUNT ( + 95 ), 33 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1223
SELECT 87 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1223
SELECT 87 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT ALL + ( + 63 ) * + COALESCE ( + + NULLIF ( - + 74, 74 - 28 ), - + COUNT( * ) + ( + 69 ), + MAX( ALL + - 89 ) )
----
-4662

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL + ( + 63 ) * + COALESCE ( + + NULLIF ( - + 74, 74 - 28 ), - + COUNT ( * ) + ( + 69 ), + MAX ( ALL + - 89 ) )
----
-4662

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT COALESCE ( - 4, - COUNT( * ), - - 34 )
----
-4

skipif mysql # not compatible
query I rowsort label-1225
SELECT COALESCE ( - 4, - COUNT ( * ), - - 34 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT 82 * - 69 / + AVG ( ALL NULLIF ( ( 13 ), + ( - 8 ) + - 22 ) ) - - 73 * + + CASE - + ( + + 99 ) WHEN - 99 THEN NULL WHEN 96 * + 77 * + - CASE 69 WHEN + 77 - + 0 THEN MAX( NULLIF ( - 52, - 69 + + ( + 80 + 23 ) ) ) * 99 END * + 73 THEN - COUNT( - 30 ) * 85 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT 82 * - 69 / + AVG ( ALL NULLIF ( ( 13 ), + ( - 8 ) + - 22 ) ) - - 73 * + + CASE - + ( + + 99 ) WHEN - 99 THEN NULL WHEN 96 * + 77 * + - CASE 69 WHEN + 77 - + 0 THEN MAX ( NULLIF ( - 52, - 69 + + ( + 80 + 23 ) ) ) * 99 END * + 73 THEN - COUNT ( - 30 ) * 85 END AS col2
----
NULL

query I rowsort
SELECT - 51 * + 35
----
-1785

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

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

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

query I rowsort
SELECT - 92 * 82 AS col2
----
-7544

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT 97 * - - COUNT( DISTINCT + 66 ) - - - 48
----
49

skipif mysql # not compatible
query I rowsort label-1231
SELECT 97 * - - COUNT ( DISTINCT + 66 ) - - - 48
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1232
SELECT + ( + 78 ) DIV 66 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1232
SELECT + ( + 78 ) / 66 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1233
SELECT DISTINCT 30 * 60 DIV 80 + MAX( ALL - 80 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT 30 * 60 / 80 + MAX ( ALL - 80 ) AS col0
----
-58

query II rowsort
SELECT ALL 73 * + 26 AS col1, 34
----
1898
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT MIN( DISTINCT 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-1235
SELECT MIN ( DISTINCT 60 ) AS col0
----
60

query I rowsort
SELECT ALL 5 * 64 + + ( 80 ) AS col1
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT + COALESCE ( + 20, + - SUM( ALL + 63 ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1237
SELECT + COALESCE ( + 20, + - SUM ( ALL + 63 ) ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT + COUNT( * ) * + 99 col0
----
99

skipif mysql # not compatible
query I rowsort label-1238
SELECT + COUNT ( * ) * + 99 col0
----
99

query I rowsort
SELECT - 25 + - + 38 + - - 22 * 61 AS col0
----
1279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1240
SELECT ALL 15 + + + 19 * + MAX( ALL + + 92 ) + - + COALESCE ( + COUNT( * ), COALESCE ( + + 30, - 11 * + + 39 ) * - + CAST( - 19 AS SIGNED ), - 35 - + + COUNT( * ) )
----
1762

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL 15 + + + 19 * + MAX ( ALL + + 92 ) + - + COALESCE ( + COUNT ( * ), COALESCE ( + + 30, - 11 * + + 39 ) * - + CAST ( - 19 AS INTEGER ), - 35 - + + COUNT ( * ) )
----
1762

query I rowsort
SELECT - NULLIF ( - 94, + 7 )
----
94

query I rowsort
SELECT + 89 + - - 92 AS col0
----
181

query I rowsort
SELECT + CASE ( + + 24 ) WHEN + + 31 THEN - + 27 * 64 WHEN + 23 THEN + 65 END * + + 34 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1244
SELECT ALL NULLIF ( + + CAST( + 44 AS SIGNED ), + AVG ( - CASE - CAST( NULL AS DECIMAL ) WHEN + + 21 THEN + 91 END ) - 52 + 95 * + + 58 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL NULLIF ( + + CAST ( + 44 AS INTEGER ), + AVG ( - CASE - CAST ( NULL AS REAL ) WHEN + + 21 THEN + 91 END ) - 52 + 95 * + + 58 ) AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1245
SELECT ALL - 42 + - - 88 + - 43 DIV + 98 * 21 * + COALESCE ( + 75, - COUNT( * ) ) * - + 16 + COUNT( - 14 ) + - 92 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL - 42 + - - 88 + - 43 / + 98 * 21 * + COALESCE ( + 75, - COUNT ( * ) ) * - + 16 + COUNT ( - 14 ) + - 92 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1246
SELECT + + 62 + + COUNT( * ) + + ( 39 ) + + CAST( - + 35 AS SIGNED ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-1246
SELECT + + 62 + + COUNT ( * ) + + ( 39 ) + + CAST ( - + 35 AS INTEGER ) AS col2
----
67

query I rowsort
SELECT DISTINCT + - 15 * - + 37 * + + 37 col2
----
20535

onlyif mysql # DIV for integer division: 
query I rowsort label-1248
SELECT + 92 DIV - 19 - 90
----
-94

skipif mysql # not compatible
query I rowsort label-1248
SELECT + 92 / - 19 - 90
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT - 62 + - 54 DIV 66
----
-62

skipif mysql # not compatible
query I rowsort label-1249
SELECT - 62 + - 54 / 66
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1250
SELECT + 1 * + - 64 col2, 96 - + COUNT( * )
----
-64
95

skipif mysql # not compatible
query II rowsort label-1250
SELECT + 1 * + - 64 col2, 96 - + COUNT ( * )
----
-64
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL NULLIF ( - COUNT( * ), + 97 * 5 * - 73 + + ( - 0 ) ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL NULLIF ( - COUNT ( * ), + 97 * 5 * - 73 + + ( - 0 ) ) * - COUNT ( * ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1252
SELECT + - 35 DIV + - 39 AS col2, 65
----
0
65

skipif mysql # not compatible
query II rowsort label-1252
SELECT + - 35 / + - 39 AS col2, 65
----
0
65

query I rowsort
SELECT ALL - COALESCE ( - 99, - 37, 24 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1254
SELECT + + COUNT( * ) + 94 col0, + COUNT( * ) AS col2
----
95
1

skipif mysql # not compatible
query II rowsort label-1254
SELECT + + COUNT ( * ) + 94 col0, + COUNT ( * ) AS col2
----
95
1

query I rowsort
SELECT + + 60 * - 93 + - 10 AS col1
----
-5590

query I rowsort
SELECT ALL - 55 * - 50 + + 13
----
2763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1257
SELECT DISTINCT NULLIF ( + 10, - - 84 - - + 81 / - CAST( NULL AS SIGNED ) )
----
10

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT NULLIF ( + 10, - - 84 - - + 81 / - CAST ( NULL AS INTEGER ) )
----
10

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1261
SELECT - 28 * - 61 / + CAST( NULL AS SIGNED ) AS col1, COALESCE ( - 16, + + CAST( 29 AS SIGNED ) )
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-1261
SELECT - 28 * - 61 / + CAST ( NULL AS INTEGER ) AS col1, COALESCE ( - 16, + + CAST ( 29 AS INTEGER ) )
----
NULL
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT 1 DIV - 94 + 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-1262
SELECT 1 / - 94 + 35 AS col2
----
35

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

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL + CAST ( NULL AS INTEGER ) / + - 27
----
NULL

query I rowsort
SELECT - 92 * + 60
----
-5520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT ALL MAX( + 23 ) DIV - ( + 20 ) + + + 47 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL MAX ( + 23 ) / - ( + 20 ) + + + 47 AS col2
----
46

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1267
SELECT - CASE + 98 WHEN + MIN( + CAST( NULL AS SIGNED ) ) THEN - 77 * - + 40 * + 39 END + + - 83 * SUM( DISTINCT - 91 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT - CASE + 98 WHEN + MIN ( + CAST ( NULL AS INTEGER ) ) THEN - 77 * - + 40 * + 39 END + + - 83 * SUM ( DISTINCT - 91 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1268
SELECT ALL NULLIF ( - NULLIF ( COUNT( * ), - + 29 ), + CAST( 59 AS DECIMAL ) ) * + + MAX( ALL - 69 ) + + 18 * - 67 + + - 82 + MAX( + 72 ) + - - 39 + + 44
----
-1064

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL NULLIF ( - NULLIF ( COUNT ( * ), - + 29 ), + CAST ( 59 AS REAL ) ) * + + MAX ( ALL - 69 ) + + 18 * - 67 + + - 82 + MAX ( + 72 ) + - - 39 + + 44
----
-1064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT DISTINCT + CAST( + 37 AS SIGNED ) * + 6
----
222

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT + CAST ( + 37 AS INTEGER ) * + 6
----
222

query I rowsort
SELECT ALL - 44 * - 29 + 63 + + ( + 10 )
----
1349

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - SUM( + 35 ) + 80 + + 24 * - ( - 45 ) col2
----
1125

skipif mysql # not compatible
query I rowsort label-1271
SELECT - SUM ( + 35 ) + 80 + + 24 * - ( - 45 ) col2
----
1125

query II rowsort
SELECT DISTINCT + 36 col2, 41
----
36
41

query I rowsort
SELECT - 26 * 55
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT 3 * - - CASE - 22 WHEN + 2 THEN + 69 * - 82 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1274
SELECT 3 * - - CASE - 22 WHEN + 2 THEN + 69 * - 82 END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1275
SELECT ALL + 10, ( COUNT( * ) ) - - ( + 57 ) + - 86 - COUNT( * ) * + - CAST( NULLIF ( 68, + NULLIF ( 33, 39 ) ) AS DECIMAL ) * + COUNT( * ) * + 92 / - - 95 * 10 * 43 * 62 * - CASE + 51 WHEN + 14 THEN NULL WHEN + 84 + COUNT( - 7 ) THEN - 85 END AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-1275
SELECT ALL + 10, ( COUNT ( * ) ) - - ( + 57 ) + - 86 - COUNT ( * ) * + - CAST ( NULLIF ( 68, + NULLIF ( 33, 39 ) ) AS REAL ) * + COUNT ( * ) * + 92 / - - 95 * 10 * 43 * 62 * - CASE + 51 WHEN + 14 THEN NULL WHEN + 84 + COUNT ( - 7 ) THEN - 85 END AS col2
----
10
NULL

query I rowsort
SELECT - 2 * - 16
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1277
SELECT + 57 * + NULLIF ( ( - 22 ), - ( + - CAST( NULL AS SIGNED ) ) / - 78 ) + - + 57 - 15
----
-1326

skipif mysql # not compatible
query I rowsort label-1277
SELECT + 57 * + NULLIF ( ( - 22 ), - ( + - CAST ( NULL AS INTEGER ) ) / - 78 ) + - + 57 - 15
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT COALESCE ( + 22, 42 + - COUNT( * ), - 9 )
----
22

skipif mysql # not compatible
query I rowsort label-1278
SELECT COALESCE ( + 22, 42 + - COUNT ( * ), - 9 )
----
22

query I rowsort
SELECT - - 41 * + 88 AS col0
----
3608

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT + MAX( - 33 ) * - COUNT( * ) col2
----
33

skipif mysql # not compatible
query I rowsort label-1280
SELECT + MAX ( - 33 ) * - COUNT ( * ) col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1281
SELECT DISTINCT 22 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT 22 / + 25
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1282
SELECT ALL 38 * 40 + + 16 AS col2, CAST( NULL AS SIGNED ) - - 41 * + CAST( - 63 AS DECIMAL ) * - CASE + - COUNT( * ) WHEN - 13 * + 36 THEN + 95 + - 51 + 30 + + 21 + 37 * - 22 * - - 52 * + 24 * COUNT( * ) END * 11 + - 98 AS col2
----
1536
NULL

skipif mysql # not compatible
query II rowsort label-1282
SELECT ALL 38 * 40 + + 16 AS col2, CAST ( NULL AS INTEGER ) - - 41 * + CAST ( - 63 AS REAL ) * - CASE + - COUNT ( * ) WHEN - 13 * + 36 THEN + 95 + - 51 + 30 + + 21 + 37 * - 22 * - - 52 * + 24 * COUNT ( * ) END * 11 + - 98 AS col2
----
1536
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT ALL COUNT( * ) * CAST( 40 AS SIGNED ) + - - 78 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL COUNT ( * ) * CAST ( 40 AS INTEGER ) + - - 78 AS col2
----
118

query I rowsort
SELECT DISTINCT + 22 * - + 16 AS col0
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT - SUM( ALL 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT - SUM ( ALL 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT - CASE - 24 WHEN - COUNT( * ) THEN - - MAX( ALL + ( + + 20 ) ) WHEN - - 39 THEN - - 66 / - - 63 + + + 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1286
SELECT - CASE - 24 WHEN - COUNT ( * ) THEN - - MAX ( ALL + ( + + 20 ) ) WHEN - - 39 THEN - - 66 / - - 63 + + + 85 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 44 - - - 75 AS col2
----
-119

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1288
SELECT + - CAST( NULL AS SIGNED ) * + + 0 * - 22 + + 62 AS col0, CAST( NULL AS DECIMAL ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1288
SELECT + - CAST ( NULL AS INTEGER ) * + + 0 * - 22 + + 62 AS col0, CAST ( NULL AS REAL ) AS col1
----
NULL
NULL

query II rowsort
SELECT 62 AS col2, 7 AS col1
----
62
7

query I rowsort
SELECT + - 89 - + + 57
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1291
SELECT ALL - 13 AS col2, ( COALESCE ( 61, SUM( ALL + + ( - - 62 ) ) * - COUNT( CAST( - + 99 AS SIGNED ) ) ) ) * COALESCE ( - 4, - NULLIF ( 16, + 4 ) + + + CASE 81 WHEN - 89 * + COUNT( * ) THEN NULL WHEN + 16 + + 19 * + 25 THEN NULL WHEN 46 + - 84 * 2 THEN 21 * COUNT( * ) ELSE + 26 END ) * - COUNT( * ) + ( + 7 ) * - 38 AS col1
----
-13
-22

skipif mysql # not compatible
query II rowsort label-1291
SELECT ALL - 13 AS col2, ( COALESCE ( 61, SUM ( ALL + + ( - - 62 ) ) * - COUNT ( CAST ( - + 99 AS INTEGER ) ) ) ) * COALESCE ( - 4, - NULLIF ( 16, + 4 ) + + + CASE 81 WHEN - 89 * + COUNT ( * ) THEN NULL WHEN + 16 + + 19 * + 25 THEN NULL WHEN 46 + - 84 * 2 THEN 21 * COUNT ( * ) ELSE + 26 END ) * - COUNT ( * ) + ( + 7 ) * - 38 AS col1
----
-13
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT - 35 * - 12 * + - MAX( + 44 ) AS col1
----
-18480

skipif mysql # not compatible
query I rowsort label-1292
SELECT - 35 * - 12 * + - MAX ( + 44 ) AS col1
----
-18480

query II rowsort
SELECT ALL + 90, 80 AS col0
----
90
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1294
SELECT 34 / - COALESCE ( + CAST( NULL AS SIGNED ), 64 * 27 + + CASE - + COUNT( * ) WHEN - + SUM( DISTINCT 81 ) THEN 77 ELSE NULL END ) / - + 43 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT 34 / - COALESCE ( + CAST ( NULL AS INTEGER ), 64 * 27 + + CASE - + COUNT ( * ) WHEN - + SUM ( DISTINCT 81 ) THEN 77 ELSE NULL END ) / - + 43 + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 5 * 30
----
150

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1296
SELECT DISTINCT 51 DIV + 66, CAST( + + 23 AS SIGNED ) * + + 0
----
0
0

skipif mysql # not compatible
query II rowsort label-1296
SELECT DISTINCT 51 / + 66, CAST ( + + 23 AS INTEGER ) * + + 0
----
0
0

query II rowsort
SELECT 50 + + 12 + - ( + 46 ) AS col0, - 71 - + 62 * - - 3 + - - 29 + + 98
----
16
-130

query I rowsort
SELECT ALL 86 * + 70 * + 34 AS col0
----
204680

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT 24 DIV - + 38
----
0

skipif mysql # not compatible
query I rowsort label-1299
SELECT 24 / - + 38
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1300
SELECT 60 DIV - + 6 col1, 24 AS col2
----
-10
24

skipif mysql # not compatible
query II rowsort label-1300
SELECT 60 / - + 6 col1, 24 AS col2
----
-10
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT ALL 4 + + AVG ( + ( NULLIF ( - 70, - 14 ) ) ) + - CASE - - 5 WHEN + 3 * - + 13 - + CASE - 2 WHEN + 43 * + + 39 THEN - + ( - + COUNT( * ) ) * + 2 WHEN + 60 THEN NULL ELSE + 90 + 59 END * 79 THEN NULL WHEN + COALESCE ( 74, - COUNT( * ), MAX( DISTINCT - 38 ), + 33 ) THEN + ( 26 ) * 54 ELSE NULL END - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL 4 + + AVG ( + ( NULLIF ( - 70, - 14 ) ) ) + - CASE - - 5 WHEN + 3 * - + 13 - + CASE - 2 WHEN + 43 * + + 39 THEN - + ( - + COUNT ( * ) ) * + 2 WHEN + 60 THEN NULL ELSE + 90 + 59 END * 79 THEN NULL WHEN + COALESCE ( 74, - COUNT ( * ), MAX ( DISTINCT - 38 ), + 33 ) THEN + ( 26 ) * 54 ELSE NULL END - 79
----
NULL

query I rowsort
SELECT 30 * 44 AS col2
----
1320

onlyif mysql # aggregate syntax: 
query II rowsort label-1303
SELECT 69 * - + 9 AS col2, SUM( DISTINCT - 53 ) + + 57 + COUNT( 7 ) + - ( + 33 ) * 66
----
-621
-2173

skipif mysql # not compatible
query II rowsort label-1303
SELECT 69 * - + 9 AS col2, SUM ( DISTINCT - 53 ) + + 57 + COUNT ( 7 ) + - ( + 33 ) * 66
----
-621
-2173

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT DISTINCT - 52 + + 25 DIV + - 47 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT - 52 + + 25 / + - 47 AS col0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1305
SELECT DISTINCT ( 27 ) + - 54 + 27 DIV 92 + + + 54 * + 7
----
351

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT ( 27 ) + - 54 + 27 / 92 + + + 54 * + 7
----
351

query I rowsort
SELECT ALL - 34 + + + 70 * + 67
----
4656

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT DISTINCT - 25 + - + 57 / - CASE + COUNT( * ) WHEN + 1 THEN NULL WHEN 96 * 55 - 51 THEN 68 WHEN + 81 * - + 73 + + 80 * 8 - COALESCE ( - 65, CASE + 65 WHEN 97 THEN NULL WHEN + 89 * - COALESCE ( - 59, - 98 ) THEN NULL WHEN ( 46 ) THEN NULL ELSE + 26 END ) THEN + 78 ELSE NULL END - + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT - 25 + - + 57 / - CASE + COUNT ( * ) WHEN + 1 THEN NULL WHEN 96 * 55 - 51 THEN 68 WHEN + 81 * - + 73 + + 80 * 8 - COALESCE ( - 65, CASE + 65 WHEN 97 THEN NULL WHEN + 89 * - COALESCE ( - 59, - 98 ) THEN NULL WHEN ( 46 ) THEN NULL ELSE + 26 END ) THEN + 78 ELSE NULL END - + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT DISTINCT COUNT( * ) + 10 col0
----
11

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT COUNT ( * ) + 10 col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1310
SELECT 7 * + ( 31 ) + - - 42 + + + 23 + 28 * + CASE - NULLIF ( + - 0, + ( - CAST( NULL AS DECIMAL ) ) ) WHEN + 7 THEN - 50 ELSE - 90 * COUNT( * ) * + + COUNT( * ) * 32 END + - - COALESCE ( 64, COUNT( * ) ) * - COALESCE ( COUNT( * ), - 15 DIV - 37, 96 )
----
-80422

skipif mysql # not compatible
query I rowsort label-1310
SELECT 7 * + ( 31 ) + - - 42 + + + 23 + 28 * + CASE - NULLIF ( + - 0, + ( - CAST ( NULL AS REAL ) ) ) WHEN + 7 THEN - 50 ELSE - 90 * COUNT ( * ) * + + COUNT ( * ) * 32 END + - - COALESCE ( 64, COUNT ( * ) ) * - COALESCE ( COUNT ( * ), - 15 / - 37, 96 )
----
-80422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1311
SELECT ALL - 34 + - COUNT( * ) + 69 DIV - ( - - 19 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL - 34 + - COUNT ( * ) + 69 / - ( - - 19 ) AS col0
----
-38

query I rowsort
SELECT 55 * - 46 AS col2
----
-2530

query I rowsort
SELECT ALL + 8 + + + 50 + 85 AS col2
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1314
SELECT 65 - + + 79 + + 29 DIV + 73 * + MAX( DISTINCT - 62 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1314
SELECT 65 - + + 79 + + 29 / + 73 * + MAX ( DISTINCT - 62 ) AS col2
----
-14

query I rowsort
SELECT ALL - 0 * + + 86 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1316
SELECT 44 - 71 DIV - 89 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1316
SELECT 44 - 71 / - 89 AS col2
----
44

query II rowsort
SELECT ALL - - 73 * - - 52, 28 col0
----
3796
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1318
SELECT ALL + 9 - - 58 DIV + 15 - + ( COUNT( * ) ) * - 73 + 50 * - COUNT( * ) * + + 4 * ( 52 )
----
-10315

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL + 9 - - 58 / + 15 - + ( COUNT ( * ) ) * - 73 + 50 * - COUNT ( * ) * + + 4 * ( 52 )
----
-10315

query I rowsort
SELECT DISTINCT - + 42 AS col2
----
-42

query I rowsort
SELECT DISTINCT + + ( - 55 ) - + 95 AS col0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT 13 - COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1321
SELECT 13 - COUNT ( * ) AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT ( ( + + 44 ) ) - + - 97 DIV - 50 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1322
SELECT ( ( + + 44 ) ) - + - 97 / - 50 AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1323
SELECT - 83 DIV + - 49 - - 19
----
20

skipif mysql # not compatible
query I rowsort label-1323
SELECT - 83 / + - 49 - - 19
----
20

query I rowsort
SELECT 90 * + + 42 AS col0
----
3780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1325
SELECT DISTINCT - 57 DIV + + ( - MAX( + + 79 ) ) - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT - 57 / + + ( - MAX ( + + 79 ) ) - + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1326
SELECT 92 + + 55 DIV + 82 * - COUNT( * ) col0, + CAST( + + ( - 67 ) AS SIGNED ) - + - 89
----
92
22

skipif mysql # not compatible
query II rowsort label-1326
SELECT 92 + + 55 / + 82 * - COUNT ( * ) col0, + CAST ( + + ( - 67 ) AS INTEGER ) - + - 89
----
92
22

query II rowsort
SELECT - 66 * - NULLIF ( + COALESCE ( - + 5, 49 ), + 39 * 1 ) AS col1, + 65
----
-330
65

query I rowsort
SELECT 38 + + 88 col1
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-1329
SELECT - NULLIF ( + 68, - - 35 * + - 82 ) + - - 45 + + 62 * COUNT( * ) col0, - 76
----
39
-76

skipif mysql # not compatible
query II rowsort label-1329
SELECT - NULLIF ( + 68, - - 35 * + - 82 ) + - - 45 + + 62 * COUNT ( * ) col0, - 76
----
39
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1330
SELECT ALL + NULLIF ( - + SUM( - - CAST( + ( + 31 ) AS SIGNED ) ), + 23 ) * - - 3 * - - 88 AS col1
----
-8184

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL + NULLIF ( - + SUM ( - - CAST ( + ( + 31 ) AS INTEGER ) ), + 23 ) * - - 3 * - - 88 AS col1
----
-8184

query I rowsort
SELECT + 33 * 56 * 33 AS col0
----
60984

onlyif mysql # aggregate syntax: 
query II rowsort label-1332
SELECT DISTINCT - 16 * + + 0 AS col0, 26 - 64 * - - CASE + + 38 WHEN + 66 THEN + + 11 WHEN ( 85 ) * 3 - - + COUNT( * ) THEN NULL END * + + 61 + - + NULLIF ( - + ( + - 56 ), 0 ) * - 13 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1332
SELECT DISTINCT - 16 * + + 0 AS col0, 26 - 64 * - - CASE + + 38 WHEN + 66 THEN + + 11 WHEN ( 85 ) * 3 - - + COUNT ( * ) THEN NULL END * + + 61 + - + NULLIF ( - + ( + - 56 ), 0 ) * - 13 AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1333
SELECT ( MIN( ALL + - 30 ) ) + - + COUNT( * ) - + + 32 * + + 77 - + MIN( ALL 38 ) * - 2, COUNT( - 43 ) * MIN( ALL - 60 ) AS col2
----
-2419
-60

skipif mysql # not compatible
query II rowsort label-1333
SELECT ( MIN ( ALL + - 30 ) ) + - + COUNT ( * ) - + + 32 * + + 77 - + MIN ( ALL 38 ) * - 2, COUNT ( - 43 ) * MIN ( ALL - 60 ) AS col2
----
-2419
-60

query I rowsort
SELECT 44 + + + ( + - 7 ) AS col1
----
37

query I rowsort
SELECT ALL 10 * - 45
----
-450

query I rowsort
SELECT 15 * + 49
----
735

query I rowsort
SELECT 50 * + 38 AS col2
----
1900

query I rowsort
SELECT ALL ( + + 46 ) + + - ( 46 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT ALL 63 + MAX( - NULLIF ( + 5, + - 23 ) )
----
58

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL 63 + MAX ( - NULLIF ( + 5, + - 23 ) )
----
58

query II rowsort
SELECT 40 + 28 * 95, 52 * + 14 AS col0
----
2700
728

onlyif mysql # aggregate syntax: 
query II rowsort label-1341
SELECT DISTINCT 28 AS col0, + 25 + - 82 + COUNT( * ) AS col1
----
28
-56

skipif mysql # not compatible
query II rowsort label-1341
SELECT DISTINCT 28 AS col0, + 25 + - 82 + COUNT ( * ) AS col1
----
28
-56

query I rowsort
SELECT ALL ( - ( + - 95 ) ) + 9
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1343
SELECT ALL 33 DIV 45 * - 69 * - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL 33 / 45 * - 69 * - COUNT ( * ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT ALL 87 * + + 18 + + + CAST( - 33 AS SIGNED ) * + 41 * - - 71 AS col0
----
-94497

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL 87 * + + 18 + + + CAST ( - 33 AS INTEGER ) * + 41 * - - 71 AS col0
----
-94497

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1345
SELECT DISTINCT 62 DIV - COUNT( * ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT 62 / - COUNT ( * ) AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1346
SELECT NULLIF ( - + 22, ( + 64 ) + + 4 ) + + 10 - - 26 * + COALESCE ( + MIN( DISTINCT + 15 ), + 90 * + 63 + + + COUNT( * ) ) * + - 60 * - 35 / CAST( NULL AS SIGNED ) + 95 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1346
SELECT NULLIF ( - + 22, ( + 64 ) + + 4 ) + + 10 - - 26 * + COALESCE ( + MIN ( DISTINCT + 15 ), + 90 * + 63 + + + COUNT ( * ) ) * + - 60 * - 35 / CAST ( NULL AS INTEGER ) + 95 col2
----
NULL

query I rowsort
SELECT + 6 * + 87 + 33 + - - 90 * - - 18 - + 23 * - 29 AS col2
----
2842

query I rowsort
SELECT DISTINCT 18 * 81 + + - 71 + + 20 AS col0
----
1407

query I rowsort
SELECT ALL 97 * + 5 AS col1
----
485

query I rowsort
SELECT DISTINCT 32 * - 10 AS col0
----
-320

query I rowsort
SELECT ALL 90 * - 12 col2
----
-1080

query I rowsort
SELECT ( - - 71 ) * + 8 + + 71 + + 71
----
710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1353
SELECT + NULLIF ( + 73, + 22 + - 71 ) / CAST( NULL AS SIGNED ) + COUNT( * ) + COALESCE ( - 87, + COUNT( * ), - + NULLIF ( - CAST( 92 AS DECIMAL ), + - MAX( DISTINCT 52 ) + + 32 ) + - 45 + + 93 * 3 * - 89 / - 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1353
SELECT + NULLIF ( + 73, + 22 + - 71 ) / CAST ( NULL AS INTEGER ) + COUNT ( * ) + COALESCE ( - 87, + COUNT ( * ), - + NULLIF ( - CAST ( 92 AS REAL ), + - MAX ( DISTINCT 52 ) + + 32 ) + - 45 + + 93 * 3 * - 89 / - 38 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1354
SELECT DISTINCT - CASE 14 WHEN + - CAST( NULL AS SIGNED ) * + 57 * + CASE COUNT( * ) WHEN + SUM( ALL - 48 ) THEN CAST( + 39 AS DECIMAL ) / + + COUNT( * ) + + 59 - - 66 WHEN + CAST( + 10 AS SIGNED ) + - + 5 * 55 + + 25 / + - 22 * + + MIN( 41 ) THEN NULL END - COUNT( * ) THEN NULL ELSE + 87 * - 97 END AS col2
----
8439

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT - CASE 14 WHEN + - CAST ( NULL AS INTEGER ) * + 57 * + CASE COUNT ( * ) WHEN + SUM ( ALL - 48 ) THEN CAST ( + 39 AS REAL ) / + + COUNT ( * ) + + 59 - - 66 WHEN + CAST ( + 10 AS INTEGER ) + - + 5 * 55 + + 25 / + - 22 * + + MIN ( 41 ) THEN NULL END - COUNT ( * ) THEN NULL ELSE + 87 * - 97 END AS col2
----
8439

onlyif mysql # aggregate syntax: 
query II rowsort label-1355
SELECT - COUNT( * ), - ( + 5 ) - 36 + + + COALESCE ( + - 73, - 31 ) AS col1
----
-1
-114

skipif mysql # not compatible
query II rowsort label-1355
SELECT - COUNT ( * ), - ( + 5 ) - 36 + + + COALESCE ( + - 73, - 31 ) AS col1
----
-1
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT + 62 * - COUNT( * ) + + 41 col1
----
-21

skipif mysql # not compatible
query I rowsort label-1356
SELECT + 62 * - COUNT ( * ) + + 41 col1
----
-21

query I rowsort
SELECT 69 * + - 72
----
-4968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1358
SELECT - 75 * - + 76 * + - 58 + - + ( - 17 ) + + 66 + CAST( NULL AS SIGNED ) * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1358
SELECT - 75 * - + 76 * + - 58 + - + ( - 17 ) + + 66 + CAST ( NULL AS INTEGER ) * - 99
----
NULL

query I rowsort
SELECT - 72 * - 82
----
5904

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT ALL - - 79 * - - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - - 79 * - - COUNT ( * )
----
79

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

query I rowsort
SELECT 5 * - 28 + 17
----
-123

query I rowsort
SELECT ALL + - 55 AS col1
----
-55

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1365
SELECT - 58 * + CASE + COUNT( * ) WHEN - + 11 THEN NULL ELSE + COUNT( * ) + + - COUNT( * ) END + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1365
SELECT - 58 * + CASE + COUNT ( * ) WHEN - + 11 THEN NULL ELSE + COUNT ( * ) + + - COUNT ( * ) END + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 73 * - 60
----
-4380

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT DISTINCT - + 53 + + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT - + 53 + + COUNT ( * )
----
-52

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1369
SELECT DISTINCT - - 24 + - MAX( - 61 ) AS col2, COUNT( * ) - - 11 DIV - 52 AS col2
----
85
1

skipif mysql # not compatible
query II rowsort label-1369
SELECT DISTINCT - - 24 + - MAX ( - 61 ) AS col2, COUNT ( * ) - - 11 / - 52 AS col2
----
85
1

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

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

query I rowsort
SELECT ALL - 6 + - ( ( - 25 ) ) AS col0
----
19

query I rowsort
SELECT - 69 - + + 27 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL SUM( DISTINCT - - 50 ) col1
----
50

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL SUM ( DISTINCT - - 50 ) col1
----
50

query I rowsort
SELECT - 45 - + 81
----
-126

query I rowsort
SELECT DISTINCT 16 + - - 15 AS col1
----
31

query II rowsort
SELECT 39 AS col2, 88 * - 73 * - 59 AS col0
----
39
379016

query I rowsort
SELECT ALL + 52 + - 6 * + 92 * 62 AS col0
----
-34172

onlyif mysql # aggregate syntax: 
query II rowsort label-1378
SELECT DISTINCT 92 * - COUNT( * ), + 14 AS col0
----
-92
14

skipif mysql # not compatible
query II rowsort label-1378
SELECT DISTINCT 92 * - COUNT ( * ), + 14 AS col0
----
-92
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT ALL 9 + - ( - - CASE - + COUNT( * ) WHEN + 71 - 65 / + - 70 THEN NULL WHEN + - 90 / - 8 THEN - 26 WHEN - 18 + - - 6 * 47 THEN - 42 END ) * - + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL 9 + - ( - - CASE - + COUNT ( * ) WHEN + 71 - 65 / + - 70 THEN NULL WHEN + - 90 / - 8 THEN - 26 WHEN - 18 + - - 6 * 47 THEN - 42 END ) * - + 8
----
NULL

query I rowsort
SELECT ALL - 80 * 80 col1
----
-6400

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL ( MIN( ALL - - 53 ) )
----
53

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL ( MIN ( ALL - - 53 ) )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-1382
SELECT ALL 15 - - COALESCE ( + 69, + 80 ) AS col0, - 85 * + COALESCE ( - COUNT( * ), 80 ) + - 12 - ( + MAX( + - ( - 64 ) ) ) AS col1
----
84
9

skipif mysql # not compatible
query II rowsort label-1382
SELECT ALL 15 - - COALESCE ( + 69, + 80 ) AS col0, - 85 * + COALESCE ( - COUNT ( * ), 80 ) + - 12 - ( + MAX ( + - ( - 64 ) ) ) AS col1
----
84
9

query II rowsort
SELECT 39, 55 AS col0
----
39
55

query II rowsort
SELECT ALL 44, - 55 + - 67 AS col0
----
44
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-1385
SELECT DISTINCT - 62 * + 92 AS col1, + COALESCE ( 12, + MIN( - ( + 22 ) ) ) + - 77 + 96 AS col1
----
-5704
31

skipif mysql # not compatible
query II rowsort label-1385
SELECT DISTINCT - 62 * + 92 AS col1, + COALESCE ( 12, + MIN ( - ( + 22 ) ) ) + - 77 + 96 AS col1
----
-5704
31

query II rowsort
SELECT DISTINCT + 45 AS col2, 90 * - - 64 * - 57 + - - 83
----
45
-328237

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT ALL + COALESCE ( - 65, 70, + 10 * - - 95 + + 97 + - COALESCE ( + 71, - - 91 * 56 * - 38 * - + 7 DIV 79 * - 14 DIV - - 59 - - 78 + + NULLIF ( + 9, + 15 + - - 79 * + ( - 93 ) ) + 87 ) * 3 )
----
-65

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + COALESCE ( - 65, 70, + 10 * - - 95 + + 97 + - COALESCE ( + 71, - - 91 * 56 * - 38 * - + 7 / 79 * - 14 / - - 59 - - 78 + + NULLIF ( + 9, + 15 + - - 79 * + ( - 93 ) ) + 87 ) * 3 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT DISTINCT 63 * - 52 - - + COUNT( * ) col0
----
-3275

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT 63 * - 52 - - + COUNT ( * ) col0
----
-3275

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

query I rowsort
SELECT + - 29 * 89 - + 65 AS col2
----
-2646

onlyif mysql # DIV for integer division: 
query I rowsort label-1391
SELECT ALL 59 DIV 13 * + + 40
----
160

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL 59 / 13 * + + 40
----
160

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

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

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

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT + 90 * + COUNT ( + - 43 ) AS col1
----
90

query II rowsort
SELECT ALL + 40 AS col1, - 96 * + + 50 AS col0
----
40
-4800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1395
SELECT + 15 AS col0, ( + CAST( + 28 AS SIGNED ) ) + + 58
----
15
86

skipif mysql # not compatible
query II rowsort label-1395
SELECT + 15 AS col0, ( + CAST ( + 28 AS INTEGER ) ) + + 58
----
15
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1397
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1398
SELECT + + 52 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1398
SELECT + + 52 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 4
----
4

query I rowsort
SELECT DISTINCT 44 * + 20 + 51 + 98 * 38 * - - 64
----
239267

query I rowsort
SELECT ALL + + NULLIF ( + 27, + 12 )
----
27

query I rowsort
SELECT - 55 * - - 36 + 11
----
-1969

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1403
SELECT DISTINCT + COALESCE ( ( - - 75 ), COUNT( * ) * + 53 - + + 65, NULLIF ( - 12, + 66 ) + - 65, 41 DIV - 83 - + - ( 53 ) ) * + - 31 AS col0
----
-2325

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT + COALESCE ( ( - - 75 ), COUNT ( * ) * + 53 - + + 65, NULLIF ( - 12, + 66 ) + - 65, 41 / - 83 - + - ( 53 ) ) * + - 31 AS col0
----
-2325

query I rowsort
SELECT + - 27 * + 43 * NULLIF ( - 2, - + 49 )
----
2322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1405
SELECT ALL - 40 * + 35 * + NULLIF ( - 29, - - ( 66 ) * + CAST( NULL AS SIGNED ) * + + 21 ) + + 36 - - + MIN( DISTINCT + - 92 ) * + - NULLIF ( + 17, + 62 ) * + - 7
----
29688

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL - 40 * + 35 * + NULLIF ( - 29, - - ( 66 ) * + CAST ( NULL AS INTEGER ) * + + 21 ) + + 36 - - + MIN ( DISTINCT + - 92 ) * + - NULLIF ( + 17, + 62 ) * + - 7
----
29688

query I rowsort
SELECT ALL + - ( 81 ) * - + 61 + + 94 + 16 col2
----
5051

query I rowsort
SELECT + 58 + - 80 AS col2
----
-22

query I rowsort
SELECT - 28 - - + ( ( - + 57 ) )
----
-85

query I rowsort
SELECT - - CASE - 72 WHEN + 90 THEN NULL ELSE - 53 * + NULLIF ( - 80, 0 ) END
----
4240

query I rowsort
SELECT + 69 + + - AVG ( 36 ) * - 47 * - + CASE - 87 WHEN - 53 THEN NULL WHEN - 3 THEN - - 89 END / - 99
----
NULL

query I rowsort
SELECT ALL NULLIF ( 13, - 14 - - + 4 * + 30 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT 93 + + 40 + + ( + COUNT( * ) ) + - 23 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT 93 + + 40 + + ( + COUNT ( * ) ) + - 23 AS col2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1413
SELECT ALL + 47 * + MIN( DISTINCT 76 ) * - CAST( + CAST( 53 AS SIGNED ) AS SIGNED ) * + - COUNT( * ) - + + 49 AS col2, - 86 - + 9
----
189267
-95

skipif mysql # not compatible
query II rowsort label-1413
SELECT ALL + 47 * + MIN ( DISTINCT 76 ) * - CAST ( + CAST ( 53 AS INTEGER ) AS INTEGER ) * + - COUNT ( * ) - + + 49 AS col2, - 86 - + 9
----
189267
-95

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

query I rowsort
SELECT - 22 + + 62 * 30 + 58
----
1896

query I rowsort
SELECT ALL 27 + + 86 + - 18 AS col1
----
95

query I rowsort
SELECT DISTINCT ( + + ( 23 ) ) * + 70 AS col1
----
1610

query I rowsort
SELECT ALL + 20 - + - 18 + + + 39
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1419
SELECT - 92 + - MAX( - COALESCE ( - + 93, 85, CASE - 57 WHEN - 49 THEN - CAST( 36 AS SIGNED ) WHEN - 22 THEN NULL ELSE NULL END ) ) + - 86
----
-271

skipif mysql # not compatible
query I rowsort label-1419
SELECT - 92 + - MAX ( - COALESCE ( - + 93, 85, CASE - 57 WHEN - 49 THEN - CAST ( 36 AS INTEGER ) WHEN - 22 THEN NULL ELSE NULL END ) ) + - 86
----
-271

query I rowsort
SELECT ALL ( 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL + 21 - + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL + 21 - + COUNT ( * )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1422
SELECT - CAST( + - ( - 39 ) AS SIGNED ) * - 51 + - 96 col1
----
1893

skipif mysql # not compatible
query I rowsort label-1422
SELECT - CAST ( + - ( - 39 ) AS INTEGER ) * - 51 + - 96 col1
----
1893

query I rowsort
SELECT - ( ( - 68 ) ) + + ( + 53 ) * - 95 - + 0
----
-4967

query I rowsort
SELECT - 56 * + 37 AS col0
----
-2072

query I rowsort
SELECT ALL + 85 * + - 3
----
-255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1426
SELECT - CAST( NULL AS SIGNED ) + - COALESCE ( + COUNT( * ), - - 14 * + + 40, MIN( ALL ( + + 57 ) ) * - 83 * - CAST( NULL AS SIGNED ) * - CASE + + 18 WHEN 37 + - + 42 / - 11 / - 26 THEN COUNT( * ) + + 87 WHEN 80 / + 76 THEN NULL END ) * + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT - CAST ( NULL AS INTEGER ) + - COALESCE ( + COUNT ( * ), - - 14 * + + 40, MIN ( ALL ( + + 57 ) ) * - 83 * - CAST ( NULL AS INTEGER ) * - CASE + + 18 WHEN 37 + - + 42 / - 11 / - 26 THEN COUNT ( * ) + + 87 WHEN 80 / + 76 THEN NULL END ) * + - 32
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1427
SELECT ALL 61 * - + 22 DIV COUNT( * )
----
-1342

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL 61 * - + 22 / COUNT ( * )
----
-1342

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1429
SELECT ALL COUNT( * ) * 97 AS col2, - 44 + + 81
----
97
37

skipif mysql # not compatible
query II rowsort label-1429
SELECT ALL COUNT ( * ) * 97 AS col2, - 44 + + 81
----
97
37

query I rowsort
SELECT + NULLIF ( + 76, 95 * 65 / 87 ) AS col1
----
76

query I rowsort
SELECT DISTINCT + - NULLIF ( + + 42, - 50 ) * + 28
----
-1176

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1432
SELECT NULLIF ( 7, + CAST( NULL AS DECIMAL ) + + + COUNT( DISTINCT + 67 ) - + - 32 * - - 74 )
----
7

skipif mysql # not compatible
query I rowsort label-1432
SELECT NULLIF ( 7, + CAST ( NULL AS REAL ) + + + COUNT ( DISTINCT + 67 ) - + - 32 * - - 74 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT + - ( + - COUNT( * ) ) + COUNT( * ) - 98 * + - 34 - + 92 + - 51
----
3191

skipif mysql # not compatible
query I rowsort label-1433
SELECT + - ( + - COUNT ( * ) ) + COUNT ( * ) - 98 * + - 34 - + 92 + - 51
----
3191

query I rowsort
SELECT - + 55 + + 52 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT + - CASE + 75 WHEN - - 25 THEN 2 / - + 53 / - + 79 * + 20 - MAX( DISTINCT + + 72 ) WHEN 85 THEN - 84 + - 14 WHEN + COALESCE ( - COUNT( * ), - 32 ) - + - 77 * + 20 THEN - - COUNT( + 36 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT + - CASE + 75 WHEN - - 25 THEN 2 / - + 53 / - + 79 * + 20 - MAX ( DISTINCT + + 72 ) WHEN 85 THEN - 84 + - 14 WHEN + COALESCE ( - COUNT ( * ), - 32 ) - + - 77 * + 20 THEN - - COUNT ( + 36 ) END col0
----
NULL

query I rowsort
SELECT + + 92 + + - 60
----
32

query I rowsort
SELECT DISTINCT - 85 col0
----
-85

query I rowsort
SELECT ALL + 11 + - 68 + - 8 * - + 76
----
551

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - 3 / + CASE - COALESCE ( - - 57, + 72 * + 23 * - ( + 72 ) ) WHEN + ( - 84 ) * + 29 + - 19 THEN NULL WHEN COUNT( * ) THEN COUNT( * ) * - 31 END + - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT - 3 / + CASE - COALESCE ( - - 57, + 72 * + 23 * - ( + 72 ) ) WHEN + ( - 84 ) * + 29 + - 19 THEN NULL WHEN COUNT ( * ) THEN COUNT ( * ) * - 31 END + - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 76 + - 80 AS col0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-1441
SELECT ALL COUNT( * ) + - - 85 AS col0, + COUNT( * ) AS col1
----
86
1

skipif mysql # not compatible
query II rowsort label-1441
SELECT ALL COUNT ( * ) + - - 85 AS col0, + COUNT ( * ) AS col1
----
86
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1442
SELECT ALL 29 + - ( - - 12 ), - COUNT( * ) AS col2
----
17
-1

skipif mysql # not compatible
query II rowsort label-1442
SELECT ALL 29 + - ( - - 12 ), - COUNT ( * ) AS col2
----
17
-1

query I rowsort
SELECT 67 + - 48 * + + 48 * + 93 col2
----
-214205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1444
SELECT ALL 73 + 41 + + 89 AS col1, + CASE 92 WHEN - 82 * + COALESCE ( + - CAST( NULL AS SIGNED ), + ( + + 17 ) ) * + COUNT( * ) + - 25 + - ( + 24 ) / + 56 * 91 - + 63 + - 63 * - 97 - - 32 + + 14 + + NULLIF ( - 27, - 87 * - 45 ) THEN 29 ELSE NULL END AS col0
----
203
NULL

skipif mysql # not compatible
query II rowsort label-1444
SELECT ALL 73 + 41 + + 89 AS col1, + CASE 92 WHEN - 82 * + COALESCE ( + - CAST ( NULL AS INTEGER ), + ( + + 17 ) ) * + COUNT ( * ) + - 25 + - ( + 24 ) / + 56 * 91 - + 63 + - 63 * - 97 - - 32 + + 14 + + NULLIF ( - 27, - 87 * - 45 ) THEN 29 ELSE NULL END AS col0
----
203
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT COALESCE ( 27, 79 ) DIV 91 - - - 71
----
-71

skipif mysql # not compatible
query I rowsort label-1446
SELECT COALESCE ( 27, 79 ) / 91 - - - 71
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1447
SELECT 47 * + ( + CAST( 67 AS SIGNED ) )
----
3149

skipif mysql # not compatible
query I rowsort label-1447
SELECT 47 * + ( + CAST ( 67 AS INTEGER ) )
----
3149

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT COUNT( * ) + 48 AS col0, + 41 AS col1
----
49
41

skipif mysql # not compatible
query II rowsort label-1449
SELECT COUNT ( * ) + 48 AS col0, + 41 AS col1
----
49
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1450
SELECT + + CAST( + COUNT( * ) AS SIGNED ) AS col2, MAX( ALL + 67 ) col0
----
1
67

skipif mysql # not compatible
query II rowsort label-1450
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2, MAX ( ALL + 67 ) col0
----
1
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1451
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) + - MIN( ALL CAST( NULL AS SIGNED ) ) + - 78, - CAST( NULL AS SIGNED ) + - 46 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1451
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) ) + - MIN ( ALL CAST ( NULL AS INTEGER ) ) + - 78, - CAST ( NULL AS INTEGER ) + - 46 AS col0
----
NULL
NULL

query II rowsort
SELECT - 10 col1, 77 * + + 21 col1
----
-10
1617

query I rowsort
SELECT DISTINCT 75 + + + 34 AS col1
----
109

query I rowsort
SELECT ALL 34 + - 41
----
-7

query II rowsort
SELECT ALL ( - - 23 ) * - 31 AS col0, + 41 AS col0
----
-713
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT 89 * 93 * 9 - - ( - - COUNT( * ) ) + SUM( - 25 ) AS col0
----
74469

skipif mysql # not compatible
query I rowsort label-1456
SELECT 89 * 93 * 9 - - ( - - COUNT ( * ) ) + SUM ( - 25 ) AS col0
----
74469

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1457
SELECT CAST( - 13 AS SIGNED ) * + 24 * ( 41 ) * + 90 AS col0, 54 DIV 45 * 38
----
-1151280
38

skipif mysql # not compatible
query II rowsort label-1457
SELECT CAST ( - 13 AS INTEGER ) * + 24 * ( 41 ) * + 90 AS col0, 54 / 45 * 38
----
-1151280
38

query I rowsort
SELECT 85 + - NULLIF ( + 33, 72 - 14 * + 88 ) AS col2
----
52

query I rowsort
SELECT ALL + 17 * 51
----
867

query II rowsort
SELECT DISTINCT 88, + 79 + - - 60 AS col2
----
88
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT 94 * MIN( + 74 ) AS col2
----
6956

skipif mysql # not compatible
query I rowsort label-1461
SELECT 94 * MIN ( + 74 ) AS col2
----
6956

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ALL COUNT( * ) * - 93
----
-93

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL COUNT ( * ) * - 93
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-1463
SELECT COUNT( - - 75 ) + - + COUNT( * ) AS col2, - 11
----
0
-11

skipif mysql # not compatible
query II rowsort label-1463
SELECT COUNT ( - - 75 ) + - + COUNT ( * ) AS col2, - 11
----
0
-11

query I rowsort
SELECT DISTINCT - 99 * + ( + 39 )
----
-3861

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1466
SELECT 84 DIV + COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1466
SELECT 84 / + COUNT ( * ) AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1467
SELECT 34 * + COUNT( ALL + 38 ) * CAST( NULL AS SIGNED ) + MAX( ALL + + 26 ) * + 18 + ( 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT 34 * + COUNT ( ALL + 38 ) * CAST ( NULL AS INTEGER ) + MAX ( ALL + + 26 ) * + 18 + ( 73 ) AS col0
----
NULL

query II rowsort
SELECT + 77 AS col1, + 32 AS col2
----
77
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT 13 * - 53 * NULLIF ( - ( 94 ), + + 77 + COUNT( * ) ) * 79 col0
----
5116514

skipif mysql # not compatible
query I rowsort label-1469
SELECT 13 * - 53 * NULLIF ( - ( 94 ), + + 77 + COUNT ( * ) ) * 79 col0
----
5116514

query I rowsort
SELECT ALL - 29 + - 56 col1
----
-85

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

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

query I rowsort
SELECT ALL - 91 * - 85
----
7735

onlyif mysql # DIV for integer division: 
query II rowsort label-1473
SELECT ALL - 80 + + 88 + 43 DIV - 23, + 42 AS col2
----
7
42

skipif mysql # not compatible
query II rowsort label-1473
SELECT ALL - 80 + + 88 + 43 / - 23, + 42 AS col2
----
7
42

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT - 84 * + CASE + 98 WHEN + 87 THEN NULL ELSE + 3 END + + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT - 84 * + CASE + 98 WHEN + 87 THEN NULL ELSE + 3 END + + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT 82 * + 82 + + + COUNT( * )
----
6725

skipif mysql # not compatible
query I rowsort label-1476
SELECT 82 * + 82 + + + COUNT ( * )
----
6725

query I rowsort
SELECT ALL + 89 + + 46 AS col0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT + 97 DIV - 33 + - 32 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-1478
SELECT + 97 / - 33 + - 32 AS col0
----
-34

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

query I rowsort
SELECT ALL - + 80 + + + 90 - - 94
----
104

query I rowsort
SELECT DISTINCT - 3 col0
----
-3

query I rowsort
SELECT DISTINCT - 86 + - 37
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL + + 88 - COALESCE ( - 65, - NULLIF ( - + 8, 0 * - + 83 - 77 ) + + + 10 - + + ( + COUNT( * ) ) ) - ( NULLIF ( + 38, NULLIF ( 71, - 13 ) / + - 72 ) )
----
115

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL + + 88 - COALESCE ( - 65, - NULLIF ( - + 8, 0 * - + 83 - 77 ) + + + 10 - + + ( + COUNT ( * ) ) ) - ( NULLIF ( + 38, NULLIF ( 71, - 13 ) / + - 72 ) )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT - MAX( 34 ) * - 16 * - 51
----
-27744

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT - MAX ( 34 ) * - 16 * - 51
----
-27744

query I rowsort
SELECT ALL + 73 - 6
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT 59 * + 37 * + CASE + 37 WHEN - - COUNT( * ) THEN COUNT( * ) WHEN + 74 + - COUNT( * ) + 7 THEN NULL WHEN 99 * 57 * - 86 + - 57 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT 59 * + 37 * + CASE + 37 WHEN - - COUNT ( * ) THEN COUNT ( * ) WHEN + 74 + - COUNT ( * ) + 7 THEN NULL WHEN 99 * 57 * - 86 + - 57 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT 33 + - + ( - 85 ) + - MAX( DISTINCT 99 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1487
SELECT 33 + - + ( - 85 ) + - MAX ( DISTINCT 99 ) AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1488
SELECT + 78 * 25 DIV - 87 - 47 + ( 6 ) + - + 28 * + + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-1488
SELECT + 78 * 25 / - 87 - 47 + ( 6 ) + - + 28 * + + COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT SUM( ALL + + 12 ) * - - 75 + + 74 - 81 + 1 + - ( - 39 ) + - 20 + - + 74 * - 73 * - 95 * - 31
----
15909803

skipif mysql # not compatible
query I rowsort label-1489
SELECT SUM ( ALL + + 12 ) * - - 75 + + 74 - 81 + 1 + - ( - 39 ) + - 20 + - + 74 * - 73 * - 95 * - 31
----
15909803

query I rowsort
SELECT 78 - - - 70 * 13
----
-832

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT ALL 98 DIV 3
----
32

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL 98 / 3
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1492
SELECT 49 * - CAST( + 95 AS SIGNED ) * + 7 * + + 19
----
-619115

skipif mysql # not compatible
query I rowsort label-1492
SELECT 49 * - CAST ( + 95 AS INTEGER ) * + 7 * + + 19
----
-619115

query I rowsort
SELECT DISTINCT 33 * + 24
----
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1494
SELECT COALESCE ( ( + COUNT( * ) ), + - ( + 44 ) ) * + CASE COUNT( * ) WHEN + + 47 * - 98 - + + CAST( ( 50 ) AS SIGNED ) THEN + 59 ELSE NULL END + 36, 80 col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-1494
SELECT COALESCE ( ( + COUNT ( * ) ), + - ( + 44 ) ) * + CASE COUNT ( * ) WHEN + + 47 * - 98 - + + CAST ( ( 50 ) AS INTEGER ) THEN + 59 ELSE NULL END + 36, 80 col1
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT ALL CASE - 2 WHEN + 17 * 82 THEN NULL WHEN - 29 * + + 19 * + COUNT( * ) * 55 THEN + 71 ELSE - 86 END AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL CASE - 2 WHEN + 17 * 82 THEN NULL WHEN - 29 * + + 19 * + COUNT ( * ) * 55 THEN + 71 ELSE - 86 END AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT DISTINCT 97 * 49 * + CASE + 9 WHEN - COUNT( * ) * - 80 THEN NULL WHEN + ( + COUNT( * ) ) + - 9 THEN NULL ELSE MAX( ALL 95 ) END
----
451535

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT 97 * 49 * + CASE + 9 WHEN - COUNT ( * ) * - 80 THEN NULL WHEN + ( + COUNT ( * ) ) + - 9 THEN NULL ELSE MAX ( ALL 95 ) END
----
451535

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1497
SELECT MAX( - 77 ) DIV SUM( DISTINCT 6 ) col0, 95 + - COUNT( * ) * 73 * + 82 + + + 86 + + + 11
----
-12
-5794

skipif mysql # not compatible
query II rowsort label-1497
SELECT MAX ( - 77 ) / SUM ( DISTINCT 6 ) col0, 95 + - COUNT ( * ) * 73 * + 82 + + + 86 + + + 11
----
-12
-5794

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL MAX( DISTINCT + - 97 ) * + 42
----
-4074

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL MAX ( DISTINCT + - 97 ) * + 42
----
-4074

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

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

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

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

query I rowsort
SELECT 22 + + 55
----
77

query I rowsort
SELECT - 72 * 45 * 85 AS col2
----
-275400

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL 78 + + 9 * + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL 78 + + 9 * + COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT + - 39 + MAX( - 61 ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-1504
SELECT + - 39 + MAX ( - 61 ) AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT DISTINCT - ( + COUNT( ALL + - 99 ) ) + - 17 + + 25
----
7

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT - ( + COUNT ( ALL + - 99 ) ) + - 17 + + 25
----
7

query I rowsort
SELECT + + 64 + 16 + 89 + - + 13 AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT DISTINCT + CASE 11 WHEN - 54 + + 76 THEN NULL WHEN SUM( DISTINCT + 76 ) THEN 13 + + - 63 + - 20 * ( - 95 ) * + 31 WHEN + + MIN( - + 68 ) * + 75 * - - 26 * + 86 + 4 + ( + 58 ) + - CASE + + 28 WHEN + - 69 THEN + COUNT( * ) * 0 + - 36 * CASE ( - 71 ) WHEN - 62 THEN - 61 WHEN 21 THEN + 69 WHEN - 31 * COUNT( * ) - + 20 * 76 THEN NULL END WHEN + 13 * + 87 THEN NULL WHEN ( - 41 ) THEN NULL END * 44 THEN 69 END + + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT + CASE 11 WHEN - 54 + + 76 THEN NULL WHEN SUM ( DISTINCT + 76 ) THEN 13 + + - 63 + - 20 * ( - 95 ) * + 31 WHEN + + MIN ( - + 68 ) * + 75 * - - 26 * + 86 + 4 + ( + 58 ) + - CASE + + 28 WHEN + - 69 THEN + COUNT ( * ) * 0 + - 36 * CASE ( - 71 ) WHEN - 62 THEN - 61 WHEN 21 THEN + 69 WHEN - 31 * COUNT ( * ) - + 20 * 76 THEN NULL END WHEN + 13 * + 87 THEN NULL WHEN ( - 41 ) THEN NULL END * 44 THEN 69 END + + 23 AS col0
----
NULL

query I rowsort
SELECT ALL - - ( 79 ) + + 61
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT - SUM( ALL + CASE 65 WHEN + + 58 THEN + 29 / - + 33 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT - SUM ( ALL + CASE 65 WHEN + + 58 THEN + 29 / - + 33 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1510
SELECT DISTINCT - 51 + - 39 DIV - + 19
----
-49

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - 51 + - 39 / - + 19
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1511
SELECT + 36 DIV NULLIF ( - SUM( 58 ), + + CAST( 15 AS DECIMAL ) ) + 76 + - NULLIF ( + 23, COUNT( * ) ) + + 52 - + - 79 * + NULLIF ( 20, - - 82 DIV + 73 - + - 67 ) AS col0
----
1685

skipif mysql # not compatible
query I rowsort label-1511
SELECT + 36 / NULLIF ( - SUM ( 58 ), + + CAST ( 15 AS REAL ) ) + 76 + - NULLIF ( + 23, COUNT ( * ) ) + + 52 - + - 79 * + NULLIF ( 20, - - 82 / + 73 - + - 67 ) AS col0
----
1685

query I rowsort
SELECT ALL - - 74 * + 60 * 90 * - 40 + + - 51
----
-15984051

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT - - 91 * - 46 - NULLIF ( + 49, + 21 * 89 * + + 48 + - - 30 * - - 42 ) + - - COUNT( * ) - + + 66 + + 94 + + 82 col2
----
-4124

skipif mysql # not compatible
query I rowsort label-1513
SELECT - - 91 * - 46 - NULLIF ( + 49, + 21 * 89 * + + 48 + - - 30 * - - 42 ) + - - COUNT ( * ) - + + 66 + + 94 + + 82 col2
----
-4124

query I rowsort
SELECT - 61 * + - 36 + + 55 AS col2
----
2251

onlyif mysql # aggregate syntax: 
query II rowsort label-1515
SELECT ALL + SUM( DISTINCT + 57 ), 42 * + 48 AS col1
----
57
2016

skipif mysql # not compatible
query II rowsort label-1515
SELECT ALL + SUM ( DISTINCT + 57 ), 42 * + 48 AS col1
----
57
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT - COUNT( * ) * + - COALESCE ( + + 67, 66 - - 35 ) * - - 39 + - COALESCE ( - 82, + + 81 ) * + 15 + - COUNT( * ) col0
----
3842

skipif mysql # not compatible
query I rowsort label-1516
SELECT - COUNT ( * ) * + - COALESCE ( + + 67, 66 - - 35 ) * - - 39 + - COALESCE ( - 82, + + 81 ) * + 15 + - COUNT ( * ) col0
----
3842

query I rowsort
SELECT ALL + - 91 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT - - CASE - - 0 WHEN COUNT( ALL 11 ) THEN ( + + 40 ) WHEN 96 + + + 94 * - 50 * + + ( 63 ) THEN - + 37 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT - - CASE - - 0 WHEN COUNT ( ALL 11 ) THEN ( + + 40 ) WHEN 96 + + + 94 * - 50 * + + ( 63 ) THEN - + 37 END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT COALESCE ( CASE 6 WHEN + 72 THEN NULL WHEN 83 * + 10 + ( + + 17 ) THEN - 34 END, + COUNT( * ) * + + 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1519
SELECT COALESCE ( CASE 6 WHEN + 72 THEN NULL WHEN 83 * + 10 + ( + + 17 ) THEN - 34 END, + COUNT ( * ) * + + 4 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT COALESCE ( COUNT( DISTINCT + - 16 ), + + 96 + 33, - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-1520
SELECT COALESCE ( COUNT ( DISTINCT + - 16 ), + + 96 + 33, - 58 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT - 80 * - COUNT( * ) * - + 36 AS col2
----
-2880

skipif mysql # not compatible
query I rowsort label-1522
SELECT - 80 * - COUNT ( * ) * - + 36 AS col2
----
-2880

query I rowsort
SELECT + 86 * + - 73
----
-6278

query I rowsort
SELECT DISTINCT - 16 * - 3
----
48

query III rowsort
SELECT + 26 AS col1, 1 + + 60 AS col1, + - 35
----
26
61
-35

query I rowsort
SELECT - 50 * + + ( + 40 ) AS col0
----
-2000

query I rowsort
SELECT DISTINCT - 17 * - 53 * + + 83
----
74783

query I rowsort
SELECT ( + 16 ) * - ( + 15 ) - 63 * + ( - + 1 ) * 60
----
3540

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT MAX( + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-1529
SELECT MAX ( + 50 )
----
50

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

skipif mysql # not compatible
query I rowsort label-1530
SELECT - COUNT ( * ) * - - 35
----
-35

query I rowsort
SELECT + 20 + - + 24
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT ALL CAST( - + NULLIF ( - + 70, + + 58 ) AS SIGNED ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL CAST ( - + NULLIF ( - + 70, + + 58 ) AS INTEGER ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT DISTINCT 43 DIV + 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT 43 / + 59 AS col0
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT ALL MIN( DISTINCT + 4 ) + + 78 + - 40 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL MIN ( DISTINCT + 4 ) + + 78 + - 40 AS col1
----
42

query I rowsort
SELECT - 84 * + 32 AS col2
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT DISTINCT + COUNT( 5 ) + + 67 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT + COUNT ( 5 ) + + 67 AS col2
----
68

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

query I rowsort
SELECT + 60 * + + 81 AS col2
----
4860

query I rowsort
SELECT + + 35 - - 3
----
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1543
SELECT ALL + COUNT( * ) + - - 95 / + 24 + + - 18 - + + 93 * 48 * + - CAST( NULL AS SIGNED ) + - 78 * + 44 * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL + COUNT ( * ) + - - 95 / + 24 + + - 18 - + + 93 * 48 * + - CAST ( NULL AS INTEGER ) + - 78 * + 44 * 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT - 82 * COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-1544
SELECT - 82 * COUNT ( * ) AS col2
----
-82

query I rowsort
SELECT DISTINCT 21 * + NULLIF ( + NULLIF ( + ( + 60 ), - + 45 + + 78 ), AVG ( DISTINCT - 11 ) * + 2 * - + 83 )
----
1260

query I rowsort
SELECT + 70 - + 33 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT MIN( ALL - 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1547
SELECT MIN ( ALL - 46 ) AS col1
----
-46

query I rowsort
SELECT ALL + + NULLIF ( + + 40, + 0 + 64 ) AS col1
----
40

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

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

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

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

query II rowsort
SELECT DISTINCT + 19, + 77 + 47 AS col1
----
19
124

query I rowsort
SELECT ALL - + 50 * - 4
----
200

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1554
SELECT 56 * CASE + + 99 WHEN + + SUM( + 25 ) THEN 6 - - 65 ELSE ( CAST( NULL AS SIGNED ) ) * + 31 * + 78 + + 97 END + + COUNT( * ) + + - 53 + + SUM( DISTINCT - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1554
SELECT 56 * CASE + + 99 WHEN + + SUM ( + 25 ) THEN 6 - - 65 ELSE ( CAST ( NULL AS INTEGER ) ) * + 31 * + 78 + + 97 END + + COUNT ( * ) + + - 53 + + SUM ( DISTINCT - 1 )
----
NULL

query I rowsort
SELECT ALL 51 * NULLIF ( - 66, - 80 ) * - 54 * - 87 + + 7 AS col2
----
-15813461

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT + 37 * + - 84 * - 9 * - ( 95 ) + - 57 + COUNT( * ) AS col1
----
-2657396

skipif mysql # not compatible
query I rowsort label-1556
SELECT + 37 * + - 84 * - 9 * - ( 95 ) + - 57 + COUNT ( * ) AS col1
----
-2657396

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT + SUM( + 24 ) + 97 + + 60 AS col1
----
181

skipif mysql # not compatible
query I rowsort label-1558
SELECT + SUM ( + 24 ) + 97 + + 60 AS col1
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT - ( 85 ) DIV 28 + - - 69 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1559
SELECT - ( 85 ) / 28 + - - 69 AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT + 57 + - ( + 97 ) DIV - 70 + 33
----
91

skipif mysql # not compatible
query I rowsort label-1560
SELECT + 57 + - ( + 97 ) / - 70 + 33
----
91

query I rowsort
SELECT + 81 * - 14 * - 69 + - 2 AS col0
----
78244

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT ALL + 58 DIV 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL + 58 / 90 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1563
SELECT + CASE - - 41 WHEN + CAST( NULL AS SIGNED ) + + COALESCE ( + MAX( ALL + 8 ), CAST( NULL AS SIGNED ) + - 19 / + - 48 ) * - 81 * + 99 + + 49 THEN NULL WHEN CAST( - 0 AS SIGNED ) * - 24 THEN - NULLIF ( - 65, + ( - ( 75 ) ) - + - COUNT( * ) + 29 ) * - 39 END + + - 25 - + - 53 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1563
SELECT + CASE - - 41 WHEN + CAST ( NULL AS INTEGER ) + + COALESCE ( + MAX ( ALL + 8 ), CAST ( NULL AS INTEGER ) + - 19 / + - 48 ) * - 81 * + 99 + + 49 THEN NULL WHEN CAST ( - 0 AS INTEGER ) * - 24 THEN - NULLIF ( - 65, + ( - ( 75 ) ) - + - COUNT ( * ) + 29 ) * - 39 END + + - 25 - + - 53 col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1564
SELECT + 38 col1, 79 + - - MAX( ALL - 96 ) AS col2, 71 * - - 73 AS col0
----
38
-17
5183

skipif mysql # not compatible
query III rowsort label-1564
SELECT + 38 col1, 79 + - - MAX ( ALL - 96 ) AS col2, 71 * - - 73 AS col0
----
38
-17
5183

query I rowsort
SELECT 19 * - - 71
----
1349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1566
SELECT DISTINCT - 86 + - - COUNT( * ) + 93 - - - 37 DIV 66 + - + 64 DIV + 30 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT - 86 + - - COUNT ( * ) + 93 - - - 37 / 66 + - + 64 / + 30 AS col2
----
6

query I rowsort
SELECT ALL - 95 * + ( + - 68 ) AS col1
----
6460

query I rowsort
SELECT 12 + - + 31
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1569
SELECT ALL + - CAST( + 11 AS SIGNED ) + + COUNT( * ) DIV 11 * + 82 - - - 98
----
-109

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL + - CAST ( + 11 AS INTEGER ) + + COUNT ( * ) / 11 * + 82 - - - 98
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT 98 + - COUNT( * ) * - 99 * - 9 col0
----
-793

skipif mysql # not compatible
query I rowsort label-1570
SELECT 98 + - COUNT ( * ) * - 99 * - 9 col0
----
-793

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1572
SELECT ALL + 1, + COUNT( - 63 ) + 73 AS col0
----
1
74

skipif mysql # not compatible
query II rowsort label-1572
SELECT ALL + 1, + COUNT ( - 63 ) + 73 AS col0
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT + COUNT( DISTINCT 20 ) + + 53
----
54

skipif mysql # not compatible
query I rowsort label-1573
SELECT + COUNT ( DISTINCT 20 ) + + 53
----
54

query I rowsort
SELECT - 54 + + 69
----
15

query I rowsort
SELECT + NULLIF ( - 41, - 49 + + 89 * + CASE - - 79 WHEN - 62 THEN + 29 END ) AS col0
----
-41

query I rowsort
SELECT - - NULLIF ( - 6, 11 + - 18 ) AS col2
----
-6

query I rowsort
SELECT 67 + + 75 AS col2
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-1578
SELECT + 20 DIV - - 68
----
0

skipif mysql # not compatible
query I rowsort label-1578
SELECT + 20 / - - 68
----
0

query I rowsort
SELECT DISTINCT 69 - + 29
----
40

query I rowsort
SELECT DISTINCT + 7 * 19 AS col2
----
133

query I rowsort
SELECT 6 * + 10 AS col1
----
60

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1583
SELECT DISTINCT - + CAST( NULL AS DECIMAL ), + 76 AS col2
----
NULL
76

skipif mysql # not compatible
query II rowsort label-1583
SELECT DISTINCT - + CAST ( NULL AS REAL ), + 76 AS col2
----
NULL
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1584
SELECT ( + - 20 ) DIV - 60 + + - 73 * 75 col0
----
-5475

skipif mysql # not compatible
query I rowsort label-1584
SELECT ( + - 20 ) / - 60 + + - 73 * 75 col0
----
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT + COUNT( * ) * + - 29 + - ( MAX( ALL - 77 ) ) + - + SUM( - - 87 )
----
-39

skipif mysql # not compatible
query I rowsort label-1585
SELECT + COUNT ( * ) * + - 29 + - ( MAX ( ALL - 77 ) ) + - + SUM ( - - 87 )
----
-39

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

skipif mysql # not compatible
query I rowsort label-1586
SELECT + 93 + + - 76 + + 18 * COUNT ( * ) AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT ALL - + CAST( - 68 AS SIGNED ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL - + CAST ( - 68 AS INTEGER ) AS col1
----
68

query II rowsort
SELECT + 21 AS col2, - 51
----
21
-51

query I rowsort
SELECT DISTINCT 80 + 30 AS col2
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1590
SELECT ALL SUM( + - 24 ) + + - CAST( - AVG ( - - 0 ) AS SIGNED ) * + 40 * + + 79 - - 25 - - SUM( + 98 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL SUM ( + - 24 ) + + - CAST ( - AVG ( - - 0 ) AS INTEGER ) * + 40 * + + 79 - - 25 - - SUM ( + 98 ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT DISTINCT COALESCE ( - - 23, 73 + + - 48 + 48 * NULLIF ( 17, + - COALESCE ( 5, + 88 + + 0 ) * + - 56 ) ) + + - 14 * MIN( + + ( - ( CAST( + - 65 AS SIGNED ) ) ) ) * + 2 AS col1
----
-1797

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT COALESCE ( - - 23, 73 + + - 48 + 48 * NULLIF ( 17, + - COALESCE ( 5, + 88 + + 0 ) * + - 56 ) ) + + - 14 * MIN ( + + ( - ( CAST ( + - 65 AS INTEGER ) ) ) ) * + 2 AS col1
----
-1797

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL 61 + + - 80 + + COALESCE ( - - 53, - 50 * 48 + - ( 75 ) + + 10 + + 27 * + + SUM( + 28 ) + - + 69, + - 32 * - - COUNT( * ) - - COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL 61 + + - 80 + + COALESCE ( - - 53, - 50 * 48 + - ( 75 ) + + 10 + + 27 * + + SUM ( + 28 ) + - + 69, + - 32 * - - COUNT ( * ) - - COUNT ( * ) )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1593
SELECT CAST( NULL AS SIGNED ) * ( - NULLIF ( + 59, 36 ) ) * + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1593
SELECT CAST ( NULL AS INTEGER ) * ( - NULLIF ( + 59, 36 ) ) * + 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL - MAX( ALL + ( - 45 ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL - MAX ( ALL + ( - 45 ) ) AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 89 * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 89 * 61
----
NULL

query I rowsort
SELECT DISTINCT 51 col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1597
SELECT DISTINCT - CAST( + 98 AS SIGNED ) * - COUNT( * ) + + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT - CAST ( + 98 AS INTEGER ) * - COUNT ( * ) + + - COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT + 69 + 3 - + + 26 + COUNT( * ) * - 46 * 72
----
-3266

skipif mysql # not compatible
query I rowsort label-1598
SELECT + 69 + 3 - + + 26 + COUNT ( * ) * - 46 * 72
----
-3266

onlyif mysql # aggregate syntax: 
query II rowsort label-1599
SELECT - - MAX( DISTINCT - 20 ), 35 AS col0
----
-20
35

skipif mysql # not compatible
query II rowsort label-1599
SELECT - - MAX ( DISTINCT - 20 ), 35 AS col0
----
-20
35

query II rowsort
SELECT 3 + + 28 AS col2, 0
----
31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT - NULLIF ( 68, - - 18 + + - 41 + + COUNT( * ) + 32 - + 17 + 2 + 23 )
----
-68

skipif mysql # not compatible
query I rowsort label-1601
SELECT - NULLIF ( 68, - - 18 + + - 41 + + COUNT ( * ) + 32 - + 17 + 2 + 23 )
----
-68

query I rowsort
SELECT ALL + 72 - + + 38 col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1603
SELECT 5 * + - ( - - 0 ) + + 97 + CAST( NULL AS DECIMAL ) + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT 5 * + - ( - - 0 ) + + 97 + CAST ( NULL AS REAL ) + - - COUNT ( * ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT 51 - + + COUNT( * ) + 67
----
117

skipif mysql # not compatible
query I rowsort label-1605
SELECT 51 - + + COUNT ( * ) + 67
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1606
SELECT DISTINCT - 28 * + 82 AS col2, 75 - + COUNT( * )
----
-2296
74

skipif mysql # not compatible
query II rowsort label-1606
SELECT DISTINCT - 28 * + 82 AS col2, 75 - + COUNT ( * )
----
-2296
74

query I rowsort
SELECT - 18 + + 22 AS col0
----
4

query I rowsort
SELECT - 27 * 8
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT ALL ( - - SUM( - 77 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL ( - - SUM ( - 77 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT ALL - CASE - 81 WHEN - MAX( 36 ) * + 13 THEN + - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL - CASE - 81 WHEN - MAX ( 36 ) * + 13 THEN + - 11 END
----
NULL

query II rowsort
SELECT + 94 * + 12 + + NULLIF ( - 42, - 12 ) + + + 68 * + 78 AS col0, - 87 AS col2
----
6390
-87

query I rowsort
SELECT - + CASE + 63 WHEN ( + 94 ) THEN + + 22 + 27 + - + 4 * 47 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1613
SELECT - NULLIF ( + CASE CASE - 68 WHEN + 65 * - COUNT( + 70 ) THEN - + 62 * + 99 + - MIN( ALL + 45 ) ELSE - 63 END WHEN 70 * + - 51 + + 13 THEN NULL WHEN - - COUNT( * ) THEN + - 93 / + - 81 * 76 + - 70 + - 93 * + 49 * - 0 / + 80 END, - 0 ) - - - 82 + - CAST( - COALESCE ( COUNT( * ), - 64 + - 96 * 45, 28 - 47 ) AS SIGNED ) + 84 * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT - NULLIF ( + CASE CASE - 68 WHEN + 65 * - COUNT ( + 70 ) THEN - + 62 * + 99 + - MIN ( ALL + 45 ) ELSE - 63 END WHEN 70 * + - 51 + + 13 THEN NULL WHEN - - COUNT ( * ) THEN + - 93 / + - 81 * 76 + - 70 + - 93 * + 49 * - 0 / + 80 END, - 0 ) - - - 82 + - CAST ( - COALESCE ( COUNT ( * ), - 64 + - 96 * 45, 28 - 47 ) AS INTEGER ) + 84 * + 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT 31 * - 94 + COUNT( * ) AS col1
----
-2913

skipif mysql # not compatible
query I rowsort label-1614
SELECT 31 * - 94 + COUNT ( * ) AS col1
----
-2913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1615
SELECT DISTINCT - 63 * COUNT( * ) + - 82 * 69 DIV + 94 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT - 63 * COUNT ( * ) + - 82 * 69 / + 94 AS col0
----
-123

query I rowsort
SELECT ALL 24 * - - 39 + + 26 AS col1
----
962

query II rowsort
SELECT + 56 AS col1, 75 + - 97 AS col1
----
56
-22

query I rowsort
SELECT ALL 49 * - + 61 + 38
----
-2951

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1619
SELECT 87 DIV - ( + + 30 ) AS col1, COUNT( * ) AS col1
----
-2
1

skipif mysql # not compatible
query II rowsort label-1619
SELECT 87 / - ( + + 30 ) AS col1, COUNT ( * ) AS col1
----
-2
1

query I rowsort
SELECT ALL - 39 * ( 32 ) * - 86 + ( + 35 )
----
107363

query II rowsort
SELECT + ( + + 50 ) * ( - 80 ) + - 9 + 57 AS col0, 4 + + 73 * + ( + 11 ) * + - 40 + - 30
----
-3952
-32146

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT SUM( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-1622
SELECT SUM ( - 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT MAX( + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-1623
SELECT MAX ( + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT - ( + 18 ) + + 16 * - + NULLIF ( + + ( + COUNT( DISTINCT - 11 ) ), - + 36 )
----
-34

skipif mysql # not compatible
query I rowsort label-1624
SELECT - ( + 18 ) + + 16 * - + NULLIF ( + + ( + COUNT ( DISTINCT - 11 ) ), - + 36 )
----
-34

query I rowsort
SELECT ALL + 12 * NULLIF ( - 68, + + 90 ) + - 90 AS col2
----
-906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1626
SELECT + 23 DIV + 91 * CAST( 39 AS SIGNED ) + - 13 + + ( COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-1626
SELECT + 23 / + 91 * CAST ( 39 AS INTEGER ) + - 13 + + ( COUNT ( * ) )
----
-12

query I rowsort
SELECT ALL + 95 * - 6
----
-570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1628
SELECT ALL ( 91 ) * + + ( - - ( - COALESCE ( - - 90, - CASE 38 WHEN - 61 * + 82 + - + 32 THEN NULL WHEN + - 86 * - CAST( NULL AS SIGNED ) THEN NULL WHEN - 70 DIV - 4 + - CAST( + + 32 AS SIGNED ) * 12 THEN NULL ELSE - 42 DIV + 9 + + MIN( DISTINCT + 6 ) END, - COUNT( DISTINCT + 79 ), + + 86 * COUNT( - 1 ) ) ) ) * + + 40 + - 49 AS col2
----
-327649

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL ( 91 ) * + + ( - - ( - COALESCE ( - - 90, - CASE 38 WHEN - 61 * + 82 + - + 32 THEN NULL WHEN + - 86 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 70 / - 4 + - CAST ( + + 32 AS INTEGER ) * 12 THEN NULL ELSE - 42 / + 9 + + MIN ( DISTINCT + 6 ) END, - COUNT ( DISTINCT + 79 ), + + 86 * COUNT ( - 1 ) ) ) ) * + + 40 + - 49 AS col2
----
-327649

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1629
SELECT - 35 * - COUNT( * ) + - 46 AS col0, 62 * 64 + 66, - 11 DIV - 11 col1
----
-11
4034
1

skipif mysql # not compatible
query III rowsort label-1629
SELECT - 35 * - COUNT ( * ) + - 46 AS col0, 62 * 64 + 66, - 11 / - 11 col1
----
-11
4034
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1630
SELECT ALL 47 * - COUNT( * ) - - 1 AS col0, - 26
----
-46
-26

skipif mysql # not compatible
query II rowsort label-1630
SELECT ALL 47 * - COUNT ( * ) - - 1 AS col0, - 26
----
-46
-26

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

skipif mysql # not compatible
query I rowsort label-1631
SELECT COUNT ( - 84 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT 41 * 90 * 59 + - COUNT( DISTINCT + - 92 )
----
217709

skipif mysql # not compatible
query I rowsort label-1632
SELECT 41 * 90 * 59 + - COUNT ( DISTINCT + - 92 )
----
217709

query I rowsort
SELECT + 84 + 78
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1634
SELECT + 90 + - COUNT( * ) * 98 DIV 13 col0
----
83

skipif mysql # not compatible
query I rowsort label-1634
SELECT + 90 + - COUNT ( * ) * 98 / 13 col0
----
83

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1636
SELECT + 66 + - CAST( + + 82 AS SIGNED ) AS col1, 42 + 34 AS col0
----
-16
76

skipif mysql # not compatible
query II rowsort label-1636
SELECT + 66 + - CAST ( + + 82 AS INTEGER ) AS col1, 42 + 34 AS col0
----
-16
76

query II rowsort
SELECT + 42 AS col2, + 62 + + 46 AS col2
----
42
108

query I rowsort
SELECT + 27 * - 56 - - ( + + 62 ) * - + 84 + - 93 * + 15
----
-8115

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT + ( ( + 3 ) ) DIV - 67 + 54 * - 97 + 66 AS col1
----
-5172

skipif mysql # not compatible
query I rowsort label-1639
SELECT + ( ( + 3 ) ) / - 67 + 54 * - 97 + 66 AS col1
----
-5172

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

query I rowsort
SELECT CASE - 84 WHEN - 0 THEN + 41 / 17 WHEN + ( 48 ) THEN + + 22 * + - 25 * 58 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT ALL + ( COALESCE ( + + ( + 10 ), + 44 - 70, + MAX( 11 ) * - - 32 ) )
----
10

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL + ( COALESCE ( + + ( + 10 ), + 44 - 70, + MAX ( 11 ) * - - 32 ) )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1643
SELECT ALL - COALESCE ( ( - COUNT( * ) ), + - 50, + - NULLIF ( + - CAST( NULL AS SIGNED ), 89 ) ) * + 45 + + + MIN( - - 65 ) AS col2
----
110

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL - COALESCE ( ( - COUNT ( * ) ), + - 50, + - NULLIF ( + - CAST ( NULL AS INTEGER ), 89 ) ) * + 45 + + + MIN ( - - 65 ) AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL - MIN( ALL 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL - MIN ( ALL 85 )
----
-85

query I rowsort
SELECT - + 55 * 17 AS col1
----
-935

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT + 64 + + MAX( ALL - - 82 )
----
146

skipif mysql # not compatible
query I rowsort label-1647
SELECT + 64 + + MAX ( ALL - - 82 )
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT - CAST( NULL AS SIGNED ) - + MAX( 13 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT - CAST ( NULL AS INTEGER ) - + MAX ( 13 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT - 48 * - - MAX( DISTINCT - 34 )
----
1632

skipif mysql # not compatible
query I rowsort label-1649
SELECT - 48 * - - MAX ( DISTINCT - 34 )
----
1632

query I rowsort
SELECT ALL - + 1 * + 78 * - 70 AS col1
----
5460

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

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

query I rowsort
SELECT + - 77 + + 4 AS col0
----
-73

query I rowsort
SELECT DISTINCT + 66 * - 63 AS col0
----
-4158

query II rowsort
SELECT DISTINCT 79 + - 6 * - 63 AS col1, + NULLIF ( 79, - 61 - 9 * 97 ) * 47 col0
----
457
3713

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1655
SELECT ALL + 33 + COUNT( * ) * + 23 AS col1, MIN( DISTINCT 40 ) DIV + ( 62 ) * + 60 AS col1
----
56
0

skipif mysql # not compatible
query II rowsort label-1655
SELECT ALL + 33 + COUNT ( * ) * + 23 AS col1, MIN ( DISTINCT 40 ) / + ( 62 ) * + 60 AS col1
----
56
0

query II rowsort
SELECT ALL - 4, + NULLIF ( 95, 60 ) AS col0
----
-4
95

query I rowsort
SELECT - COALESCE ( - 47, - 48, 53 * - 44 + + 35 + 20 + + NULLIF ( - + NULLIF ( - 90, + 48 ), - 25 ) + - + 81 ) + - - 6 + + + 3 * + 0 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL NULLIF ( + 32, - + COUNT( * ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL NULLIF ( + 32, - + COUNT ( * ) ) AS col1
----
32

query I rowsort
SELECT + 98 * - 33
----
-3234

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1660
SELECT DISTINCT 63 DIV + 78 * CAST( - + 44 AS SIGNED ) + - 12
----
-12

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT 63 / + 78 * CAST ( - + 44 AS INTEGER ) + - 12
----
-12

query I rowsort
SELECT - 56 + + - 45
----
-101

query I rowsort
SELECT - 68 * 59
----
-4012

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1663
SELECT DISTINCT NULLIF ( 46, 99 ) DIV + 49 - - - 88 * - - ( COUNT( * ) ) - - 55 + + 34 * + CAST( - 78 AS SIGNED ) * 48 * COUNT( * ) * - 87
----
11074719

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT NULLIF ( 46, 99 ) / + 49 - - - 88 * - - ( COUNT ( * ) ) - - 55 + + 34 * + CAST ( - 78 AS INTEGER ) * 48 * COUNT ( * ) * - 87
----
11074719

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT ALL - 9 * + - 45 * COUNT( * ) AS col2
----
405

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL - 9 * + - 45 * COUNT ( * ) AS col2
----
405

onlyif mysql # aggregate syntax: 
query II rowsort label-1665
SELECT DISTINCT ( + COUNT( * ) ) * + SUM( ALL - 97 ) AS col0, + COUNT( + 98 )
----
-97
1

skipif mysql # not compatible
query II rowsort label-1665
SELECT DISTINCT ( + COUNT ( * ) ) * + SUM ( ALL - 97 ) AS col0, + COUNT ( + 98 )
----
-97
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT ALL - SUM( + 48 ) * + 43 - - 91, + 65 AS col2
----
-1973
65

skipif mysql # not compatible
query II rowsort label-1667
SELECT ALL - SUM ( + 48 ) * + 43 - - 91, + 65 AS col2
----
-1973
65

query I rowsort
SELECT ( - 13 ) AS col1
----
-13

query I rowsort
SELECT ALL + 64 * 24
----
1536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1670
SELECT ALL - COALESCE ( 85, - CASE WHEN NOT NULL IS NOT NULL THEN 91 WHEN NOT ( + 94 + + ( 90 ) ) NOT BETWEEN + 40 * - 97 AND - 7 + 14 THEN - + 43 + + CASE - + 80 WHEN + 44 * + - 23 THEN - 12 ELSE NULL END END, - MAX( DISTINCT - CAST( - 70 AS SIGNED ) ) ) * + - NULLIF ( - 68, COUNT( * ) * - COUNT( * ) + 18 ) * + + MIN( - 28 )
----
161840

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL - COALESCE ( 85, - CASE WHEN NOT NULL IS NOT NULL THEN 91 WHEN NOT ( + 94 + + ( 90 ) ) NOT BETWEEN + 40 * - 97 AND - 7 + 14 THEN - + 43 + + CASE - + 80 WHEN + 44 * + - 23 THEN - 12 ELSE NULL END END, - MAX ( DISTINCT - CAST ( - 70 AS INTEGER ) ) ) * + - NULLIF ( - 68, COUNT ( * ) * - COUNT ( * ) + 18 ) * + + MIN ( - 28 )
----
161840

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT + 90 DIV 98 * - 38
----
0

skipif mysql # not compatible
query I rowsort label-1672
SELECT + 90 / 98 * - 38
----
0

query I rowsort
SELECT - 2 * - 96 AS col0
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1674
SELECT ( + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1674
SELECT ( + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1675
SELECT + CASE + 27 WHEN - - 5 + - 38 + - 17 - + + 76 THEN NULL WHEN + 92 THEN + - 58 + - - 76 END AS col1, MIN( ALL + 50 )
----
NULL
50

skipif mysql # not compatible
query II rowsort label-1675
SELECT + CASE + 27 WHEN - - 5 + - 38 + - 17 - + + 76 THEN NULL WHEN + 92 THEN + - 58 + - - 76 END AS col1, MIN ( ALL + 50 )
----
NULL
50

query I rowsort
SELECT ALL + 75 * + 83 - + - 38
----
6263

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT CASE + CASE - 64 WHEN + COUNT( 6 ) * - - 38 / - COUNT( * ) * + 56 + + 53 - - 8 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + 73 END WHEN + + 66 + - + 15 + - - 12 + + 20 THEN - - 54 WHEN - 79 * + - 5 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT CASE + CASE - 64 WHEN + COUNT ( 6 ) * - - 38 / - COUNT ( * ) * + 56 + + 53 - - 8 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + 73 END WHEN + + 66 + - + 15 + - - 12 + + 20 THEN - - 54 WHEN - 79 * + - 5 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1679
SELECT - 60 - - COUNT( * ) AS col2, 16 * + 88 AS col2
----
-59
1408

skipif mysql # not compatible
query II rowsort label-1679
SELECT - 60 - - COUNT ( * ) AS col2, 16 * + 88 AS col2
----
-59
1408

query I rowsort
SELECT + - 33 * - + 65
----
2145

query I rowsort
SELECT DISTINCT 22 * - 35 + COALESCE ( - 47, + - 61 ) + + 75 * + 35 AS col1
----
1808

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT 89 * - ( - + ( - ( COUNT( * ) ) ) ) * 10 + - - 51 * - 93 + - 58
----
-5691

skipif mysql # not compatible
query I rowsort label-1682
SELECT 89 * - ( - + ( - ( COUNT ( * ) ) ) ) * 10 + - - 51 * - 93 + - 58
----
-5691

query I rowsort
SELECT ALL 79 * + 66
----
5214

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT - COALESCE ( 65, + - CASE - 25 WHEN - + 46 + + + MAX( - 55 ) + - 80 * + 69 * 53 * - 70 + - 27 - + 52 THEN - 79 END, + - 85 ) * - 59 AS col1
----
3835

skipif mysql # not compatible
query I rowsort label-1684
SELECT - COALESCE ( 65, + - CASE - 25 WHEN - + 46 + + + MAX ( - 55 ) + - 80 * + 69 * 53 * - 70 + - 27 - + 52 THEN - 79 END, + - 85 ) * - 59 AS col1
----
3835

query I rowsort
SELECT - + 14 + + 90 AS col0
----
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT + 32 + - 78 + MIN( 84 ) + + 81 * + 32 + 19 * - COUNT( * )
----
2611

skipif mysql # not compatible
query I rowsort label-1687
SELECT + 32 + - 78 + MIN ( 84 ) + + 81 * + 32 + 19 * - COUNT ( * )
----
2611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1688
SELECT DISTINCT 62 * - + 12 - + 90 + + 11 * + 61 + + COUNT( * ) + MIN( DISTINCT 98 ) * + COALESCE ( + 91, + + 14 + - - 69 DIV CAST( NULL AS SIGNED ) ) AS col1
----
8756

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT 62 * - + 12 - + 90 + + 11 * + 61 + + COUNT ( * ) + MIN ( DISTINCT 98 ) * + COALESCE ( + 91, + + 14 + - - 69 / CAST ( NULL AS INTEGER ) ) AS col1
----
8756

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT ALL 6 * 81 DIV - 45
----
-10

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL 6 * 81 / - 45
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1690
SELECT + + 18 DIV - + 50, 36 - COUNT( * ) col0
----
0
35

skipif mysql # not compatible
query II rowsort label-1690
SELECT + + 18 / - + 50, 36 - COUNT ( * ) col0
----
0
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT - MAX( ALL + + COALESCE ( - 58, 1 + - 69 ) )
----
58

skipif mysql # not compatible
query I rowsort label-1691
SELECT - MAX ( ALL + + COALESCE ( - 58, 1 + - 69 ) )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT + COALESCE ( + - COUNT( * ), COUNT( * ) + 84 + + CAST( NULL AS SIGNED ) * + + 96 * + + COUNT( * ) * - 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-1692
SELECT + COALESCE ( + - COUNT ( * ), COUNT ( * ) + 84 + + CAST ( NULL AS INTEGER ) * + + 96 * + + COUNT ( * ) * - 20 )
----
-1

query I rowsort
SELECT DISTINCT - 26 + 88
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1694
SELECT + + 57 DIV + COUNT( DISTINCT + 88 )
----
57

skipif mysql # not compatible
query I rowsort label-1694
SELECT + + 57 / + COUNT ( DISTINCT + 88 )
----
57

query I rowsort
SELECT DISTINCT 51 + 65 * + + 37
----
2456

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT + + NULLIF ( 72, 11 ) * + + 96 * + + SUM( - 66 ) + 37 col0
----
-456155

skipif mysql # not compatible
query I rowsort label-1696
SELECT + + NULLIF ( 72, 11 ) * + + 96 * + + SUM ( - 66 ) + 37 col0
----
-456155

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1697
SELECT - 4 DIV - 32 * - + 28 AS col0, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-1697
SELECT - 4 / - 32 * - + 28 AS col0, COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT ( - 30 ) - + 48 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ALL - 41 * + COALESCE ( 28, + - 19 * + MAX( ALL 5 ) - + + MAX( DISTINCT 10 ) * 86, - 58 * 90 + - COUNT( * ) ) AS col0
----
-1148

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL - 41 * + COALESCE ( 28, + - 19 * + MAX ( ALL 5 ) - + + MAX ( DISTINCT 10 ) * 86, - 58 * 90 + - COUNT ( * ) ) AS col0
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL 50 - + + ( - 85 ) * - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL 50 - + + ( - 85 ) * - COUNT ( * )
----
-35

query II rowsort
SELECT DISTINCT - 80 AS col1, + 53 * - - 45
----
-80
2385

query I rowsort
SELECT ALL + 68 - + + 76 AS col2
----
-8

query II rowsort
SELECT + 30, 13 AS col1
----
30
13

query I rowsort
SELECT 93 + 68 col1
----
161

query I rowsort
SELECT 28 * + 53
----
1484

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

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

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

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

query II rowsort
SELECT 95 AS col0, - 69
----
95
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT 78 DIV 75 + 68
----
69

skipif mysql # not compatible
query I rowsort label-1709
SELECT 78 / 75 + 68
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL - SUM( 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL - SUM ( 76 )
----
-76

query I rowsort
SELECT 18 * + 33 AS col0
----
594

query I rowsort
SELECT 54 * - 22
----
-1188

query I rowsort
SELECT 28 + + 19 col2
----
47

query II rowsort
SELECT ALL - 99 AS col0, - 11
----
-99
-11

query I rowsort
SELECT ALL + 78 * - 96 * 28
----
-209664

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT 37 + - - 48 + MAX( 83 ) AS col2
----
168

skipif mysql # not compatible
query I rowsort label-1716
SELECT 37 + - - 48 + MAX ( 83 ) AS col2
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT ALL + - 35 DIV - + 48
----
0

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL + - 35 / - + 48
----
0

query I rowsort
SELECT 88 * + - 14
----
-1232

query I rowsort
SELECT - 56 * 98 * + 17 + - + ( + + 82 ) * - 20 AS col2
----
-91656

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT + COUNT( * ) * - - MIN( + 27 ) + ( 97 ) * + 64 AS col1
----
6235

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT + COUNT ( * ) * - - MIN ( + 27 ) + ( 97 ) * + 64 AS col1
----
6235

query II rowsort
SELECT ALL - 78 AS col2, - 25
----
-78
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT + 46 * ( + SUM( + 61 ) )
----
2806

skipif mysql # not compatible
query I rowsort label-1722
SELECT + 46 * ( + SUM ( + 61 ) )
----
2806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1723
SELECT CASE - - COUNT( * ) WHEN + CASE + 69 WHEN + + 57 * - - 7 THEN NULL ELSE 23 END + CASE - 20 WHEN + - COUNT( * ) / 60 THEN NULL ELSE ( - + 65 ) END + - 5 THEN - 57 WHEN + 73 THEN + 75 + + 75 / - CASE - - 34 WHEN + 29 / + CAST( NULL AS SIGNED ) / 95 - - CAST( - 68 AS SIGNED ) * + + CAST( 61 AS SIGNED ) THEN 48 / 87 + 30 END WHEN + 82 THEN NULL END * + ( - COUNT( * ) + ( 91 + ( + NULLIF ( 85, 87 ) ) ) * 42 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT CASE - - COUNT ( * ) WHEN + CASE + 69 WHEN + + 57 * - - 7 THEN NULL ELSE 23 END + CASE - 20 WHEN + - COUNT ( * ) / 60 THEN NULL ELSE ( - + 65 ) END + - 5 THEN - 57 WHEN + 73 THEN + 75 + + 75 / - CASE - - 34 WHEN + 29 / + CAST ( NULL AS INTEGER ) / 95 - - CAST ( - 68 AS INTEGER ) * + + CAST ( 61 AS INTEGER ) THEN 48 / 87 + 30 END WHEN + 82 THEN NULL END * + ( - COUNT ( * ) + ( 91 + ( + NULLIF ( 85, 87 ) ) ) * 42 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1724
SELECT - COALESCE ( CAST( NULL AS DECIMAL ), + - 28 * 74 * + + 11 ) + - + CASE + 27 WHEN + - 3 * 64 * + 75 + + 51 + 44 * COUNT( * ) * 37 THEN NULL ELSE + - COUNT( * ) END * - - COUNT( * ) * + 94 - CASE - 22 WHEN + + 66 THEN + 72 * + 81 WHEN - 22 THEN NULL ELSE + COUNT( * ) END / - 60 AS col2, - 59 AS col0
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-1724
SELECT - COALESCE ( CAST ( NULL AS REAL ), + - 28 * 74 * + + 11 ) + - + CASE + 27 WHEN + - 3 * 64 * + 75 + + 51 + 44 * COUNT ( * ) * 37 THEN NULL ELSE + - COUNT ( * ) END * - - COUNT ( * ) * + 94 - CASE - 22 WHEN + + 66 THEN + 72 * + 81 WHEN - 22 THEN NULL ELSE + COUNT ( * ) END / - 60 AS col2, - 59 AS col0
----
NULL
-59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT + ( + MIN( + 90 ) ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1726
SELECT + ( + MIN ( + 90 ) ) AS col1
----
90

query I rowsort
SELECT 89 * - 23 + - ( 22 ) AS col1
----
-2069

query I rowsort
SELECT DISTINCT + 30 + 40
----
70

query I rowsort
SELECT 36 * + + 18 AS col0
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT DISTINCT - + COUNT( * ) + 36
----
35

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT - + COUNT ( * ) + 36
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1731
SELECT CASE + 77 WHEN 34 THEN NULL ELSE + CASE + COUNT( ALL - ( - CAST( + 20 AS DECIMAL ) ) ) WHEN - 93 THEN - 27 WHEN + 87 THEN MIN( DISTINCT + + 28 ) ELSE NULL END END * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT CASE + 77 WHEN 34 THEN NULL ELSE + CASE + COUNT ( ALL - ( - CAST ( + 20 AS REAL ) ) ) WHEN - 93 THEN - 27 WHEN + 87 THEN MIN ( DISTINCT + + 28 ) ELSE NULL END END * - 93
----
NULL

query II rowsort
SELECT ALL ( - 79 ) * - 78 AS col2, 64 AS col1
----
6162
64

query I rowsort
SELECT 16 + + 87 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT + MAX( DISTINCT - NULLIF ( + 57, 59 ) ) + + 71
----
14

skipif mysql # not compatible
query I rowsort label-1734
SELECT + MAX ( DISTINCT - NULLIF ( + 57, 59 ) ) + + 71
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-1735
SELECT DISTINCT + 14 + 7 * 22 AS col0, - SUM( - 29 ) + + 13 - COUNT( * ) col2
----
168
41

skipif mysql # not compatible
query II rowsort label-1735
SELECT DISTINCT + 14 + 7 * 22 AS col0, - SUM ( - 29 ) + + 13 - COUNT ( * ) col2
----
168
41

query II rowsort
SELECT - 7 AS col2, ( 76 ) + + NULLIF ( + 14, 70 ) * + + 32 * + 30 * - 29 - - 98 * 18
----
-7
-387920

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT ALL 64 AS col2, 68 + - SUM( DISTINCT 62 ) + - 13 * + 24 AS col1
----
64
-306

skipif mysql # not compatible
query II rowsort label-1737
SELECT ALL 64 AS col2, 68 + - SUM ( DISTINCT 62 ) + - 13 * + 24 AS col1
----
64
-306

query I rowsort
SELECT ALL + 36 - + - 26 + - 0 AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1739
SELECT ALL 32 - MAX( + 15 ) + CASE - COALESCE ( - 41, - - 79 ) WHEN - COUNT( * ) * + 64 DIV + 86 THEN NULL WHEN + - CASE + COUNT( * ) WHEN 31 + + 82 * AVG ( ALL + 85 ) + - - 56 THEN NULL WHEN 3 THEN - + COUNT( * ) END * + + 75 THEN + SUM( 49 ) * + - 39 ELSE - 99 * - 62 END - + + 65 AS col0, - 97 DIV - 91 AS col0
----
6090
1

skipif mysql # not compatible
query II rowsort label-1739
SELECT ALL 32 - MAX ( + 15 ) + CASE - COALESCE ( - 41, - - 79 ) WHEN - COUNT ( * ) * + 64 / + 86 THEN NULL WHEN + - CASE + COUNT ( * ) WHEN 31 + + 82 * AVG ( ALL + 85 ) + - - 56 THEN NULL WHEN 3 THEN - + COUNT ( * ) END * + + 75 THEN + SUM ( 49 ) * + - 39 ELSE - 99 * - 62 END - + + 65 AS col0, - 97 / - 91 AS col0
----
6090
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1740
SELECT ALL ( - + 50 ) DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL ( - + 50 ) / 58
----
0

query I rowsort
SELECT ( 98 ) * 16 AS col0
----
1568

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1742
SELECT ALL 74 AS col1, + CAST( NULL AS SIGNED ) / + ( - 31 ) * + ( - - 33 ) AS col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL 74 AS col1, + CAST ( NULL AS INTEGER ) / + ( - 31 ) * + ( - - 33 ) AS col1
----
74
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1743
SELECT DISTINCT ( - 15 ) DIV + SUM( DISTINCT + 28 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT ( - 15 ) / + SUM ( DISTINCT + 28 ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1744
SELECT 47 + + 49 + - - ( COUNT( * ) ) * - CAST( NULLIF ( + + CAST( NULL AS SIGNED ), 83 - 92 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT 47 + + 49 + - - ( COUNT ( * ) ) * - CAST ( NULLIF ( + + CAST ( NULL AS INTEGER ), 83 - 92 ) AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1745
SELECT COUNT ( - 86 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT COUNT( * ) * 48 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-1746
SELECT COUNT ( * ) * 48 AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1747
SELECT 57 + - COUNT( * ) - 33 DIV + + COUNT( * ) + SUM( DISTINCT - - 74 ) * 73 + - - 84 AS col2
----
5509

skipif mysql # not compatible
query I rowsort label-1747
SELECT 57 + - COUNT ( * ) - 33 / + + COUNT ( * ) + SUM ( DISTINCT - - 74 ) * 73 + - - 84 AS col2
----
5509

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT + MAX( - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-1748
SELECT + MAX ( - 90 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT NULLIF ( + ( + CAST( NULL AS SIGNED ) ), - AVG ( DISTINCT - 29 ) ) * + 63 * - + ( 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT NULLIF ( + ( + CAST ( NULL AS INTEGER ) ), - AVG ( DISTINCT - 29 ) ) * + 63 * - + ( 61 )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL 38 + - COUNT( * ) + - NULLIF ( - 57, + 44 + + 26 + + + 0 )
----
94

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL 38 + - COUNT ( * ) + - NULLIF ( - 57, + 44 + + 26 + + + 0 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT 48 * ( - 85 ) - + 57 + CASE - - 79 WHEN 70 / + + COUNT( * ) + - 9 THEN + ( 47 ) ELSE NULL END * 84 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1753
SELECT 48 * ( - 85 ) - + 57 + CASE - - 79 WHEN 70 / + + COUNT ( * ) + - 9 THEN + ( 47 ) ELSE NULL END * 84 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT - NULLIF ( + - 53, + MIN( - - 6 ) )
----
53

skipif mysql # not compatible
query I rowsort label-1754
SELECT - NULLIF ( + - 53, + MIN ( - - 6 ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT MAX( ALL - 97 ) * 37 AS col2
----
-3589

skipif mysql # not compatible
query I rowsort label-1755
SELECT MAX ( ALL - 97 ) * 37 AS col2
----
-3589

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT ALL - + SUM( + 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL - + SUM ( + 64 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-1757
SELECT MAX( ALL - + 55 ) AS col2, + 85
----
-55
85

skipif mysql # not compatible
query II rowsort label-1757
SELECT MAX ( ALL - + 55 ) AS col2, + 85
----
-55
85

query I rowsort
SELECT DISTINCT - - ( 48 ) + + 46 + + + 23 AS col0
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1759
SELECT DISTINCT + + 82 + - - 71 + COUNT( * ) * + 21 DIV COUNT( * ) + 18 col1
----
192

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT + + 82 + - - 71 + COUNT ( * ) * + 21 / COUNT ( * ) + 18 col1
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-1760
SELECT - 85 DIV - - 34 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1760
SELECT - 85 / - - 34 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1761
SELECT - COUNT( * ) AS col0, 13
----
-1
13

skipif mysql # not compatible
query II rowsort label-1761
SELECT - COUNT ( * ) AS col0, 13
----
-1
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT - 44 * + 92 + + - 26 + - 66 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT - 44 * + 92 + + - 26 + - 66 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT - 30 + - + 34 + - 15
----
-79

query I rowsort
SELECT - 4 + NULLIF ( + 9, + 81 ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1767
SELECT ALL MIN( + CAST( 96 AS SIGNED ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL MIN ( + CAST ( 96 AS INTEGER ) ) AS col2
----
96

query I rowsort
SELECT DISTINCT ( - + 9 ) * 48
----
-432

query I rowsort
SELECT - 9 - 3 + 30
----
18

query I rowsort
SELECT - 71 col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1771
SELECT ALL + CAST( NULL AS SIGNED ) * + 55 * 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL + CAST ( NULL AS INTEGER ) * + 55 * 88 AS col0
----
NULL

query I rowsort
SELECT - 79 - - 44 - - - 53 + - + 18 AS col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT - 55 - COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-1773
SELECT - 55 - COUNT ( * ) AS col1
----
-56

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

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + COUNT ( * ) * NULLIF ( COUNT ( * ), 1 / CAST ( + ( COUNT ( * ) ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1775
SELECT ALL COALESCE ( - 15, NULLIF ( - COUNT( * ), + 23 - - CAST( NULL AS SIGNED ) + + - 99 * - 91 + + COUNT( * ) - + + 43 ) ) AS col0, - 83 AS col0
----
-15
-83

skipif mysql # not compatible
query II rowsort label-1775
SELECT ALL COALESCE ( - 15, NULLIF ( - COUNT ( * ), + 23 - - CAST ( NULL AS INTEGER ) + + - 99 * - 91 + + COUNT ( * ) - + + 43 ) ) AS col0, - 83 AS col0
----
-15
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-1776
SELECT + 31 - + - 84 AS col0, - NULLIF ( - MAX( + + 22 ), + 25 ) * COALESCE ( + - COUNT( * ), - - COUNT( * ) ) + 81 AS col2
----
115
59

skipif mysql # not compatible
query II rowsort label-1776
SELECT + 31 - + - 84 AS col0, - NULLIF ( - MAX ( + + 22 ), + 25 ) * COALESCE ( + - COUNT ( * ), - - COUNT ( * ) ) + 81 AS col2
----
115
59

query I rowsort
SELECT ALL + 67 * - 4 * 38 + + 65 AS col0
----
-10119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1778
SELECT - 95 + + - 50 + + 50 + + 5 * SUM( DISTINCT + + 0 ) + - COUNT( * ) DIV + 87 * + - 42
----
-95

skipif mysql # not compatible
query I rowsort label-1778
SELECT - 95 + + - 50 + + 50 + + 5 * SUM ( DISTINCT + + 0 ) + - COUNT ( * ) / + 87 * + - 42
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT + 86 DIV - + 16 - - + 11
----
6

skipif mysql # not compatible
query I rowsort label-1779
SELECT + 86 / - + 16 - - + 11
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT + NULLIF ( - + 77, - CASE + 41 WHEN + 51 THEN NULL WHEN - 49 THEN + COUNT( * ) + 15 - + 78 - + - MAX( DISTINCT + - 52 ) * 35 ELSE 4 + + 2 END ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-1780
SELECT + NULLIF ( - + 77, - CASE + 41 WHEN + 51 THEN NULL WHEN - 49 THEN + COUNT ( * ) + 15 - + 78 - + - MAX ( DISTINCT + - 52 ) * 35 ELSE 4 + + 2 END ) col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT 2 * + 93 + + - COUNT( * ) + - 33 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-1781
SELECT 2 * + 93 + + - COUNT ( * ) + - 33 AS col1
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT ALL 45 DIV + + 74
----
0

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL 45 / + + 74
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1783
SELECT - - 71 DIV + + 30 + + + 17 AS col1, 2 + - 72 + + + 63 * + - 47 + + 47 * ( + + ( + COUNT( * ) ) ) - ( - - 17 ) * - ( - 76 )
----
19
-4276

skipif mysql # not compatible
query II rowsort label-1783
SELECT - - 71 / + + 30 + + + 17 AS col1, 2 + - 72 + + + 63 * + - 47 + + 47 * ( + + ( + COUNT ( * ) ) ) - ( - - 17 ) * - ( - 76 )
----
19
-4276

query I rowsort
SELECT + + 22 * - + 1 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL + MIN( 47 ) * - 88 + - + 81 + COUNT( * ) + 55
----
-4161

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL + MIN ( 47 ) * - 88 + - + 81 + COUNT ( * ) + 55
----
-4161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1786
SELECT + 42 + - + MAX( ALL + 70 ) + CASE + 26 WHEN + - 19 THEN - - ( + 84 ) * + - COALESCE ( + 44, + 16 + - + 85 + - CASE - 14 WHEN - 39 * + + CASE + 8 WHEN - 31 THEN ( + 55 ) END THEN - 74 ELSE - ( 70 ) + CAST( NULL AS SIGNED ) * + 25 + + 9 END + CAST( NULL AS SIGNED ) * + + 17 * 88 ) WHEN - - 2 THEN NULL ELSE - 51 END - 69 + 20 col2
----
-128

skipif mysql # not compatible
query I rowsort label-1786
SELECT + 42 + - + MAX ( ALL + 70 ) + CASE + 26 WHEN + - 19 THEN - - ( + 84 ) * + - COALESCE ( + 44, + 16 + - + 85 + - CASE - 14 WHEN - 39 * + + CASE + 8 WHEN - 31 THEN ( + 55 ) END THEN - 74 ELSE - ( 70 ) + CAST ( NULL AS INTEGER ) * + 25 + + 9 END + CAST ( NULL AS INTEGER ) * + + 17 * 88 ) WHEN - - 2 THEN NULL ELSE - 51 END - 69 + 20 col2
----
-128

query I rowsort
SELECT DISTINCT + - 16 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1788
SELECT ALL + CAST( NULLIF ( 31, + 75 * + NULLIF ( + - 56, + 1 + + NULLIF ( 99, - 90 ) + - COUNT( * ) + + - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) * + - 76 col2
----
-2356

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL + CAST ( NULLIF ( 31, + 75 * + NULLIF ( + - 56, + 1 + + NULLIF ( 99, - 90 ) + - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) * + - 76 col2
----
-2356

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1789
SELECT DISTINCT + 39 * + - ( + 50 ) * + COUNT( * ) + - 80 AS col1, COUNT( * ) * 99 + 26 DIV 74 AS col2
----
-2030
99

skipif mysql # not compatible
query II rowsort label-1789
SELECT DISTINCT + 39 * + - ( + 50 ) * + COUNT ( * ) + - 80 AS col1, COUNT ( * ) * 99 + 26 / 74 AS col2
----
-2030
99

query II rowsort
SELECT - - 95 * + - 56 AS col1, - 0 * - 95
----
-5320
0

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

query II rowsort
SELECT ALL - 82 * + ( 24 ) AS col1, 17 col1
----
-1968
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1793
SELECT ALL 27 DIV 29 * - COUNT( * ) DIV MIN( DISTINCT - 60 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL 27 / 29 * - COUNT ( * ) / MIN ( DISTINCT - 60 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT + ( 67 ) + + COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1794
SELECT + ( 67 ) + + COUNT ( * ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT + 68 - - COUNT( DISTINCT 90 ) * - + ( 93 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-1795
SELECT + 68 - - COUNT ( DISTINCT 90 ) * - + ( 93 ) AS col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT - 74 DIV 54 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1796
SELECT - 74 / 54 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1797
SELECT + 86 + 42 + 32 * + 4 + + COUNT( ALL - - 37 ) + - + COUNT( * ) + + 15 * + 0 AS col0, 33 AS col2
----
256
33

skipif mysql # not compatible
query II rowsort label-1797
SELECT + 86 + 42 + 32 * + 4 + + COUNT ( ALL - - 37 ) + - + COUNT ( * ) + + 15 * + 0 AS col0, 33 AS col2
----
256
33

query I rowsort
SELECT ALL + NULLIF ( - 45, 7 ) * 32
----
-1440

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT DISTINCT ( - - COALESCE ( - 35, - + 14 DIV 97, 12 ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT ( - - COALESCE ( - 35, - + 14 / 97, 12 ) ) AS col2
----
-35

query I rowsort
SELECT DISTINCT COALESCE ( - 86, + 77, 71 + + 62 ) col1
----
-86

query I rowsort
SELECT ALL + 19 * 16 * 23 * - - 63
----
440496

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT DISTINCT + NULLIF ( - 90, - 6 ) + - + 65 DIV 18 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT + NULLIF ( - 90, - 6 ) + - + 65 / 18 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL - 47 + - 18 - - COUNT( * ) * + - 25 + - 63 + - 48 * 28 * + 38
----
-51225

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL - 47 + - 18 - - COUNT ( * ) * + - 25 + - 63 + - 48 * 28 * + 38
----
-51225

query I rowsort
SELECT - 96 * 84 AS col0
----
-8064

query I rowsort
SELECT - ( 80 ) + + + 25 - + + 81
----
-136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT + MIN( + + 84 ) + + 20 / - + 25 + 93 + + - CASE 14 WHEN - COUNT( * ) THEN - 98 / - - 30 + + 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT + MIN ( + + 84 ) + + 20 / - + 25 + 93 + + - CASE 14 WHEN - COUNT ( * ) THEN - 98 / - - 30 + + 2 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL - SUM( DISTINCT - 41 ) * CASE - 87 WHEN - - AVG ( ALL + 30 ) / + 16 / 15 THEN NULL WHEN - + 30 THEN + - 92 + + + 87 + - - 30 * - + 39 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL - SUM ( DISTINCT - 41 ) * CASE - 87 WHEN - - AVG ( ALL + 30 ) / + 16 / 15 THEN NULL WHEN - + 30 THEN + - 92 + + + 87 + - - 30 * - + 39 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1809
SELECT DISTINCT 3 DIV + 93 + - - 49 + - COUNT( + + 41 ) * 47
----
2

skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT 3 / + 93 + - - 49 + - COUNT ( + + 41 ) * 47
----
2

query I rowsort
SELECT - + 40 * + 5 * - 60
----
12000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT + + COALESCE ( - + 77, CAST( - - 72 AS SIGNED ) )
----
-77

skipif mysql # not compatible
query I rowsort label-1811
SELECT + + COALESCE ( - + 77, CAST ( - - 72 AS INTEGER ) )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1812
SELECT ALL + SUM( 54 ) DIV + 89 + - 45 * + ( - 91 )
----
4095

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + SUM ( 54 ) / + 89 + - 45 * + ( - 91 )
----
4095

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT + + 90 DIV - 18 + + 7 * 41
----
282

skipif mysql # not compatible
query I rowsort label-1813
SELECT + + 90 / - 18 + + 7 * 41
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT ALL 61 DIV - - 81 - CASE 69 WHEN - 41 * 79 THEN + - 56 ELSE - 26 - + ( - 26 ) + - + 58 END
----
58

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL 61 / - - 81 - CASE 69 WHEN - 41 * 79 THEN + - 56 ELSE - 26 - + ( - 26 ) + - + 58 END
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1815
SELECT 81 DIV - - COUNT( ALL 93 )
----
81

skipif mysql # not compatible
query I rowsort label-1815
SELECT 81 / - - COUNT ( ALL 93 )
----
81

query I rowsort
SELECT - 15 * - 94
----
1410

query II rowsort
SELECT + 41 AS col2, - 52 + - + ( - - 62 ) AS col1
----
41
-114

query I rowsort
SELECT - 89 * + 40 AS col1
----
-3560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1819
SELECT DISTINCT ( - + 10 ) DIV COUNT( * ), - 26 AS col0
----
-10
-26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT 60 DIV 59 + 91 + - 34
----
58

skipif mysql # not compatible
query I rowsort label-1821
SELECT 60 / 59 + 91 + - 34
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT ALL - 58 DIV + + 12 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - 58 / + + 12 AS col2
----
-4

query I rowsort
SELECT ALL - 63 col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT + CASE 42 WHEN 70 THEN 83 ELSE 48 END * + 18 - - COUNT( * ) * - 38
----
826

skipif mysql # not compatible
query I rowsort label-1824
SELECT + CASE 42 WHEN 70 THEN 83 ELSE 48 END * + 18 - - COUNT ( * ) * - 38
----
826

onlyif mysql # DIV for integer division: 
query I rowsort label-1825
SELECT DISTINCT 30 DIV 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT 30 / 36 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1826
SELECT ALL - + 9, - COUNT( * ) AS col0
----
-9
-1

skipif mysql # not compatible
query II rowsort label-1826
SELECT ALL - + 9, - COUNT ( * ) AS col0
----
-9
-1

query I rowsort
SELECT DISTINCT + 44 * 90 * + 51
----
201960

query I rowsort
SELECT 22 * + 76
----
1672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1829
SELECT 38 + 61 / + - 69 * - 52 * - CAST( NULL AS SIGNED ) - + - ( + 79 ) * - 34 * + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1829
SELECT 38 + 61 / + - 69 * - 52 * - CAST ( NULL AS INTEGER ) - + - ( + 79 ) * - 34 * + 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1830
SELECT 23 * 54 - - ( - 93 ) AS col0, + 41 * + COUNT( * )
----
1149
41

skipif mysql # not compatible
query II rowsort label-1830
SELECT 23 * 54 - - ( - 93 ) AS col0, + 41 * + COUNT ( * )
----
1149
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT 12 * + + CASE - 35 WHEN + 37 THEN ( - + 25 ) * SUM( ALL - 75 ) - + 37 + - 6 ELSE 56 END
----
672

skipif mysql # not compatible
query I rowsort label-1831
SELECT 12 * + + CASE - 35 WHEN + 37 THEN ( - + 25 ) * SUM ( ALL - 75 ) - + 37 + - 6 ELSE 56 END
----
672

query I rowsort
SELECT 48 + - 35
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT ALL COUNT( * ) + + 71 + 39 * + + 83
----
3309

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL COUNT ( * ) + + 71 + 39 * + + 83
----
3309

query I rowsort
SELECT DISTINCT - 60 + - 68 AS col1
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL 38 + + - 1 + - COALESCE ( 71, ( - COUNT( * ) ) + - COUNT( * ), + 88 ) + 31 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL 38 + + - 1 + - COALESCE ( 71, ( - COUNT ( * ) ) + - COUNT ( * ), + 88 ) + 31 AS col2
----
-3

query I rowsort
SELECT DISTINCT - 33 + - 17
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT SUM( ALL + 27 ) + 32
----
59

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT SUM ( ALL + 27 ) + 32
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1838
SELECT COUNT( * ) + + 96, 7 AS col0
----
97
7

skipif mysql # not compatible
query II rowsort label-1838
SELECT COUNT ( * ) + + 96, 7 AS col0
----
97
7

query I rowsort
SELECT 63 * 21 AS col0
----
1323

query I rowsort
SELECT DISTINCT + 70 * + + 81 AS col1
----
5670

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT 53 - - 4 - + 97 * + COUNT( * ) + + 71 * - 74 col0
----
-5294

skipif mysql # not compatible
query I rowsort label-1842
SELECT 53 - - 4 - + 97 * + COUNT ( * ) + + 71 * - 74 col0
----
-5294

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1843
SELECT DISTINCT CASE + 26 WHEN - 84 + - 60 THEN CAST( NULL AS DECIMAL ) WHEN + 24 THEN CASE WHEN NOT + 83 = - + 6 THEN NULL ELSE 32 + - + 96 - + NULLIF ( 12, + 51 + - 84 ) END * 8 ELSE NULL END * + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT CASE + 26 WHEN - 84 + - 60 THEN CAST ( NULL AS REAL ) WHEN + 24 THEN CASE WHEN NOT + 83 = - + 6 THEN NULL ELSE 32 + - + 96 - + NULLIF ( 12, + 51 + - 84 ) END * 8 ELSE NULL END * + - 55
----
NULL

query I rowsort
SELECT ( + - 94 ) - + + 53 AS col1
----
-147

query I rowsort
SELECT DISTINCT - 67 col2
----
-67

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1847
SELECT ALL - COALESCE ( + 72, + 98 + - + 69 DIV + 93 + + NULLIF ( - 98, + NULLIF ( - + COUNT( * ), - 66 * 92 - - COUNT( DISTINCT + 68 ) + - - 68 + - 92 DIV + - 84 + + 36 * + NULLIF ( - 4, - - 80 ) ) ) + - + 51 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL - COALESCE ( + 72, + 98 + - + 69 / + 93 + + NULLIF ( - 98, + NULLIF ( - + COUNT ( * ), - 66 * 92 - - COUNT ( DISTINCT + 68 ) + - - 68 + - 92 / + - 84 + + 36 * + NULLIF ( - 4, - - 80 ) ) ) + - + 51 ) AS col0
----
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT 49 - + 36 + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-1849
SELECT 49 - + 36 + + COUNT ( * )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1850
SELECT ALL - + ( 93 ) AS col1, CASE 48 WHEN - MIN( ALL CAST( NULL AS SIGNED ) ) THEN NULL WHEN 20 THEN 75 ELSE NULL END col2
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-1850
SELECT ALL - + ( 93 ) AS col1, CASE 48 WHEN - MIN ( ALL CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 20 THEN 75 ELSE NULL END col2
----
-93
NULL

query I rowsort
SELECT + 38 * - 58 * + 90 + + 21 * 13 * - 21
----
-204093

query II rowsort
SELECT + 13 * - + 14 AS col1, 68 AS col0
----
-182
68

query I rowsort
SELECT 98 + - - 7 AS col0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1854
SELECT - 42 * + 26 * COUNT( * ) / + 48 + + NULLIF ( - + ( - ( - + 84 ) ), - + 61 ) - + 59 + + - CAST( + COUNT( * ) AS SIGNED ) * - - NULLIF ( 16, + + 11 * 67 * + CASE + 74 WHEN + MIN( - 89 ) / 89 THEN NULL WHEN + + 18 * - 24 THEN + COALESCE ( + 14, - + NULLIF ( 24, + COUNT( * ) - + 11 + + 45 ) * - 66 + + CASE - 63 WHEN 50 THEN NULL ELSE 93 END, + COUNT( * ), 38 + 15 * 52 ) ELSE NULL END ) / CAST( NULL AS SIGNED ) + - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT - 42 * + 26 * COUNT ( * ) / + 48 + + NULLIF ( - + ( - ( - + 84 ) ), - + 61 ) - + 59 + + - CAST ( + COUNT ( * ) AS INTEGER ) * - - NULLIF ( 16, + + 11 * 67 * + CASE + 74 WHEN + MIN ( - 89 ) / 89 THEN NULL WHEN + + 18 * - 24 THEN + COALESCE ( + 14, - + NULLIF ( 24, + COUNT ( * ) - + 11 + + 45 ) * - 66 + + CASE - 63 WHEN 50 THEN NULL ELSE 93 END, + COUNT ( * ), 38 + 15 * 52 ) ELSE NULL END ) / CAST ( NULL AS INTEGER ) + - 47 AS col2
----
NULL

query II rowsort
SELECT ALL - + ( + 62 ), + 88 + - - 96 AS col1
----
-62
184

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL - 29 * + 55 + SUM( ALL - 6 ) + + 99 - + + 55 * - - 91 + 66 * - 47
----
-9609

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL - 29 * + 55 + SUM ( ALL - 6 ) + + 99 - + + 55 * - - 91 + 66 * - 47
----
-9609

query I rowsort
SELECT ALL - - ( - - 33 ) AS col2
----
33

query I rowsort
SELECT DISTINCT - + 98 col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL - 63 * + - MAX( + + 83 ) AS col2
----
5229

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - 63 * + - MAX ( + + 83 ) AS col2
----
5229

query I rowsort
SELECT DISTINCT - NULLIF ( - 85, - 47 ) AS col1
----
85

query II rowsort
SELECT 30, - 20 AS col1
----
30
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-1862
SELECT ALL - 67 AS col0, + 16 DIV - + 83
----
-67
0

skipif mysql # not compatible
query II rowsort label-1862
SELECT ALL - 67 AS col0, + 16 / - + 83
----
-67
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT 3 + + 69 DIV - - CASE - 12 WHEN + + 31 THEN NULL WHEN - AVG ( + + 46 ) THEN - 13 ELSE 57 + + - 52 + + 86 END * 34 * + - 27 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1863
SELECT 3 + + 69 / - - CASE - 12 WHEN + + 31 THEN NULL WHEN - AVG ( + + 46 ) THEN - 13 ELSE 57 + + - 52 + + 86 END * 34 * + - 27 AS col2
----
3

query I rowsort
SELECT 6 * 10
----
60

query I rowsort
SELECT ALL 26 * 60
----
1560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT NULLIF ( - 14, - - 36 * - CAST( - + 30 AS SIGNED ) ) + + 65 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1866
SELECT NULLIF ( - 14, - - 36 * - CAST ( - + 30 AS INTEGER ) ) + + 65 AS col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1867
SELECT ALL NULLIF ( 32, + 41 * - 14 ) + COUNT( * ) AS col2, + MAX( ALL - 52 ) DIV - 33 AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-1867
SELECT ALL NULLIF ( 32, + 41 * - 14 ) + COUNT ( * ) AS col2, + MAX ( ALL - 52 ) / - 33 AS col0
----
33
1

query I rowsort
SELECT DISTINCT 61 + - - 80 AS col1
----
141

query I rowsort
SELECT ALL 20 + - 76 AS col0
----
-56

query I rowsort
SELECT DISTINCT 32 * + 52 col2
----
1664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT CAST( - 30 AS SIGNED ) - ( 86 ) - - MAX( DISTINCT + 28 ) * + 2 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1871
SELECT CAST ( - 30 AS INTEGER ) - ( 86 ) - - MAX ( DISTINCT + 28 ) * + 2 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT SUM( DISTINCT - - 53 ) + - - 14
----
67

skipif mysql # not compatible
query I rowsort label-1872
SELECT SUM ( DISTINCT - - 53 ) + - - 14
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT - MIN( - 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1873
SELECT - MIN ( - 80 ) AS col0
----
80

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

skipif mysql # not compatible
query I rowsort label-1874
SELECT 82 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1875
SELECT ALL 60 - - 74 DIV 76
----
60

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL 60 - - 74 / 76
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT ( - 78 ) + - + COUNT( * ) * - 94 * + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-1876
SELECT ( - 78 ) + - + COUNT ( * ) * - 94 * + + COUNT ( * )
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT MIN( ALL + 59 ) + + CASE + - 19 WHEN - - ( + MIN( + - 50 ) ) - - COUNT( - + 93 ) THEN 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT MIN ( ALL + 59 ) + + CASE + - 19 WHEN - - ( + MIN ( + - 50 ) ) - - COUNT ( - + 93 ) THEN 12 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT DISTINCT + 12 DIV 69 col0
----
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT + 12 / 69 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL MIN( DISTINCT 23 ) - - 73 + + 27 col1
----
123

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL MIN ( DISTINCT 23 ) - - 73 + + 27 col1
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT - 22 + + 94 DIV - 94 col1
----
-23

skipif mysql # not compatible
query I rowsort label-1881
SELECT - 22 + + 94 / - 94 col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1882
SELECT DISTINCT + 51 DIV + COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + 51 / + COUNT ( * ) AS col2
----
51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1884
SELECT - 49 * + COALESCE ( - 32, - + 3 + + 76, + ( 86 ) + 98 - 38 + + - COALESCE ( 4, - + 33 ) - - ( 99 ) * - COUNT( * ) + 40 DIV + 8 * + 28 + - COALESCE ( - + COALESCE ( + 80, - COUNT( * ) * - COUNT( * ) ), - 47 + + 77 ) + - 52 * + CAST( - 82 AS SIGNED ) * - - 62 + + ( + - 76 ) ) AS col2
----
1568

skipif mysql # not compatible
query I rowsort label-1884
SELECT - 49 * + COALESCE ( - 32, - + 3 + + 76, + ( 86 ) + 98 - 38 + + - COALESCE ( 4, - + 33 ) - - ( 99 ) * - COUNT ( * ) + 40 / + 8 * + 28 + - COALESCE ( - + COALESCE ( + 80, - COUNT ( * ) * - COUNT ( * ) ), - 47 + + 77 ) + - 52 * + CAST ( - 82 AS INTEGER ) * - - 62 + + ( + - 76 ) ) AS col2
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL COUNT( * ) * 23 col1
----
23

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL COUNT ( * ) * 23 col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT - + COUNT( * ) + + 76 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1886
SELECT - + COUNT ( * ) + + 76 AS col0
----
75

query II rowsort
SELECT + ( + ( 55 ) ), 47 AS col0
----
55
47

query I rowsort
SELECT - - 33 + + - 80 AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1889
SELECT ALL + 36 DIV + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + 36 / + COUNT ( * ) AS col2
----
36

query I rowsort
SELECT ALL + - 68 AS col1
----
-68

query I rowsort
SELECT - + 55 * - 80 * + 97 * 52
----
22193600

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT + 18 DIV - + ( - 72 ) - - ( - - 1 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1893
SELECT + 18 / - + ( - 72 ) - - ( - - 1 ) col2
----
1

query I rowsort
SELECT - + 95 * + 53 AS col1
----
-5035

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT - - 37 + COUNT( * ) + COUNT( * ) - COUNT( + + 47 ) + - 89
----
-51

skipif mysql # not compatible
query I rowsort label-1895
SELECT - - 37 + COUNT ( * ) + COUNT ( * ) - COUNT ( + + 47 ) + - 89
----
-51

query II rowsort
SELECT + 1, 85 + 90 * + - 15 * - COALESCE ( - - COALESCE ( + - 5, + 28 - - - 64 * 33 * - + 50 ), + 81 ) + 75 - + 78 AS col1
----
1
-6668

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT NULLIF ( COUNT( * ), + NULLIF ( 90, - 53 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1897
SELECT NULLIF ( COUNT ( * ), + NULLIF ( 90, - 53 ) ) AS col1
----
1

query I rowsort
SELECT + 27 * + 15
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT ALL - CASE - MAX( - 76 ) WHEN 88 + 15 * - 43 - + 96 THEN + 38 WHEN - 37 + + 14 / 68 THEN - - 95 END * 76 + 59 + + NULLIF ( COUNT( * ), + ( + 58 ) ) + + + 20 * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL - CASE - MAX ( - 76 ) WHEN 88 + 15 * - 43 - + 96 THEN + 38 WHEN - 37 + + 14 / 68 THEN - - 95 END * 76 + 59 + + NULLIF ( COUNT ( * ), + ( + 58 ) ) + + + 20 * + COUNT ( * ) col0
----
NULL

query II rowsort
SELECT DISTINCT + 89 AS col0, 61 + - 60
----
89
1

query I rowsort
SELECT DISTINCT - 23 * - 34 + - 44 * + 12 AS col0
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT + COUNT( * ) * - ( 75 ) + + 96 * - + 55 AS col2
----
-5355

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT + COUNT ( * ) * - ( 75 ) + + 96 * - + 55 AS col2
----
-5355

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1903
SELECT ALL + 2, + 71 DIV + COUNT( * ) + 14 * 78 AS col1
----
2
1163

skipif mysql # not compatible
query II rowsort label-1903
SELECT ALL + 2, + 71 / + COUNT ( * ) + 14 * 78 AS col1
----
2
1163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1904
SELECT DISTINCT COUNT( * ) * - 76 + + MIN( ALL CAST( + 8 AS SIGNED ) ) * - 6 DIV - + ( - - COUNT( * ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT COUNT ( * ) * - 76 + + MIN ( ALL CAST ( + 8 AS INTEGER ) ) * - 6 / - + ( - - COUNT ( * ) ) AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT - 91 - + 81 + + ( 74 ) * - CAST( NULL AS SIGNED ) * + + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT - 91 - + 81 + + ( 74 ) * - CAST ( NULL AS INTEGER ) * + + 53 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1906
SELECT + MIN ( - - 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT MAX( DISTINCT 15 )
----
15

skipif mysql # not compatible
query I rowsort label-1907
SELECT MAX ( DISTINCT 15 )
----
15

query I rowsort
SELECT + CASE + + 16 WHEN - - 41 - + 4 + + 45 THEN NULL WHEN + CASE - + 98 WHEN 72 * - 94 THEN + 20 / + - 52 WHEN + 33 THEN + 8 END * + 61 + 7 / - - 15 THEN NULL WHEN + - 12 THEN - 36 END * + - 29 AS col2
----
NULL

query II rowsort
SELECT - 80, + 81 * - 39 + 62 AS col1
----
-80
-3097

query I rowsort
SELECT DISTINCT + 15 - + 7 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT - COALESCE ( + 8, + + 85 + + COUNT( * ) * COUNT( * ), 0 * COUNT( * ) + - CASE - - 20 WHEN + 82 THEN NULL WHEN + 31 THEN NULL ELSE ( 80 ) END )
----
-8

skipif mysql # not compatible
query I rowsort label-1911
SELECT - COALESCE ( + 8, + + 85 + + COUNT ( * ) * COUNT ( * ), 0 * COUNT ( * ) + - CASE - - 20 WHEN + 82 THEN NULL WHEN + 31 THEN NULL ELSE ( 80 ) END )
----
-8

query I rowsort
SELECT DISTINCT ( - + 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT DISTINCT + COALESCE ( - SUM( ALL + 69 ), - ( + 14 ) ) - + + 11 * 31 - + 6
----
-416

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT + COALESCE ( - SUM ( ALL + 69 ), - ( + 14 ) ) - + + 11 * 31 - + 6
----
-416

query I rowsort
SELECT ALL 13 * - 49 AS col1
----
-637

query I rowsort
SELECT ALL ( 38 )
----
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT - 50 * SUM( - + 74 )
----
3700

skipif mysql # not compatible
query I rowsort label-1917
SELECT - 50 * SUM ( - + 74 )
----
3700

onlyif mysql # aggregate syntax: 
query II rowsort label-1918
SELECT + - 28 * + + 8 * - + 31 * - 20 AS col2, COUNT( * ) AS col1
----
-138880
1

skipif mysql # not compatible
query II rowsort label-1918
SELECT + - 28 * + + 8 * - + 31 * - 20 AS col2, COUNT ( * ) AS col1
----
-138880
1

query I rowsort
SELECT - + 17 + 12
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-1920
SELECT - - 20 AS col1, 75 DIV 33 * + ( 51 )
----
20
102

skipif mysql # not compatible
query II rowsort label-1920
SELECT - - 20 AS col1, 75 / 33 * + ( 51 )
----
20
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT + + SUM( + 55 ) * - - 56
----
3080

skipif mysql # not compatible
query I rowsort label-1921
SELECT + + SUM ( + 55 ) * - - 56
----
3080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1922
SELECT + ( - - 86 ) - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1922
SELECT + ( - - 86 ) - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
87

query II rowsort
SELECT ALL 21, + 93 + - 16 * 69 * 65 + + 43 AS col1
----
21
-71624

query I rowsort
SELECT ALL 52 + + 12 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT + NULLIF ( - 36, 96 + + COUNT( * ) ) + 87 * + - 17
----
-1515

skipif mysql # not compatible
query I rowsort label-1925
SELECT + NULLIF ( - 36, 96 + + COUNT ( * ) ) + 87 * + - 17
----
-1515

onlyif mysql # aggregate syntax: 
query II rowsort label-1926
SELECT DISTINCT - 17 AS col1, + 61 + + 7 * + + COUNT( * ) AS col2
----
-17
68

skipif mysql # not compatible
query II rowsort label-1926
SELECT DISTINCT - 17 AS col1, + 61 + + 7 * + + COUNT ( * ) AS col2
----
-17
68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1929
SELECT ALL + SUM( DISTINCT ( 50 ) ) DIV + 39 + - 42 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL + SUM ( DISTINCT ( 50 ) ) / + 39 + - 42 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1930
SELECT + 91 DIV + 15 + - 92 - - 1 * + 6 * NULLIF ( SUM( DISTINCT + + ( - 19 ) ), - + 87 + + - 70 ) + - 60 AS col0
----
-260

skipif mysql # not compatible
query I rowsort label-1930
SELECT + 91 / + 15 + - 92 - - 1 * + 6 * NULLIF ( SUM ( DISTINCT + + ( - 19 ) ), - + 87 + + - 70 ) + - 60 AS col0
----
-260

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

query II rowsort
SELECT 36, 74 AS col0
----
36
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT + + CAST( NULL AS SIGNED ) * MIN( DISTINCT - NULLIF ( + + 77, - + 86 - - - 22 ) ) + + - CAST( + 58 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1933
SELECT + + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - NULLIF ( + + 77, - + 86 - - - 22 ) ) + + - CAST ( + 58 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 39 * - - 62 AS col1
----
2418

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1935
SELECT DISTINCT + MAX( + + 75 ) DIV - - MIN( - + 76 ) + - 7 - + MIN( DISTINCT - 83 ) AS col1, + 14
----
76
14

skipif mysql # not compatible
query II rowsort label-1935
SELECT DISTINCT + MAX ( + + 75 ) / - - MIN ( - + 76 ) + - 7 - + MIN ( DISTINCT - 83 ) AS col1, + 14
----
76
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT MIN( DISTINCT 67 ) * + COUNT( * ) + 94 + - - 92 * 3
----
437

skipif mysql # not compatible
query I rowsort label-1937
SELECT MIN ( DISTINCT 67 ) * + COUNT ( * ) + 94 + - - 92 * 3
----
437

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL + 62 / - CASE + - 43 WHEN + - ( - ( + + 22 ) ) + AVG ( + 12 ) - - 77 * - - 22 THEN NULLIF ( 51, + 43 * + 28 ) WHEN + - AVG ( - 33 ) + - 38 * + 57 * + 50 THEN NULL WHEN - + ( + + 3 ) THEN - 7 - 16 END + 74 * - 89 * - COUNT( ALL + + 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL + 62 / - CASE + - 43 WHEN + - ( - ( + + 22 ) ) + AVG ( + 12 ) - - 77 * - - 22 THEN NULLIF ( 51, + 43 * + 28 ) WHEN + - AVG ( - 33 ) + - 38 * + 57 * + 50 THEN NULL WHEN - + ( + + 3 ) THEN - 7 - 16 END + 74 * - 89 * - COUNT ( ALL + + 67 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1940
SELECT + 48 * 17 + + COALESCE ( - 52, + CASE + 47 WHEN - COUNT( * ) DIV - 85 THEN 42 + ( + 82 ) DIV - 47 END, - - 8 + 65 * + 64 + 71 DIV - SUM( ALL + 54 ) * + + COUNT( * ) ) col2
----
764

skipif mysql # not compatible
query I rowsort label-1940
SELECT + 48 * 17 + + COALESCE ( - 52, + CASE + 47 WHEN - COUNT ( * ) / - 85 THEN 42 + ( + 82 ) / - 47 END, - - 8 + 65 * + 64 + 71 / - SUM ( ALL + 54 ) * + + COUNT ( * ) ) col2
----
764

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

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + COUNT ( DISTINCT + + 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1942
SELECT + 97 + - + 74, - 99 - - 46 - + 52 - COUNT( DISTINCT - 30 ) DIV ( - 59 ) AS col2
----
23
-105

skipif mysql # not compatible
query II rowsort label-1942
SELECT + 97 + - + 74, - 99 - - 46 - + 52 - COUNT ( DISTINCT - 30 ) / ( - 59 ) AS col2
----
23
-105

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1944
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( - 59 ) - 42 - - 5 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( - 59 ) - 42 - - 5 + + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + NULLIF ( - 23, - + 38 ) AS col1, + 18
----
-23
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1946
SELECT COALESCE ( - + SUM( DISTINCT 73 ), 45 * CAST( 2 AS SIGNED ) + + 33 + + 62 + - 26 + - - 33 * - 32 * + + 78 * + - 66 * 2, + 54 * 93 + - COALESCE ( + COUNT( * ), + + 79 + + - COUNT( * ) + - COUNT( * ) * - + 56 ) + - + ( + 73 ) - - - CAST( NULL AS SIGNED ) * + + 11 + + - 25 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-1946
SELECT COALESCE ( - + SUM ( DISTINCT 73 ), 45 * CAST ( 2 AS INTEGER ) + + 33 + + 62 + - 26 + - - 33 * - 32 * + + 78 * + - 66 * 2, + 54 * 93 + - COALESCE ( + COUNT ( * ), + + 79 + + - COUNT ( * ) + - COUNT ( * ) * - + 56 ) + - + ( + 73 ) - - - CAST ( NULL AS INTEGER ) * + + 11 + + - 25 ) AS col0
----
-73

query I rowsort
SELECT DISTINCT + 11 * - 88
----
-968

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT DISTINCT + CASE 70 WHEN - 34 THEN - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT + CASE 70 WHEN - 34 THEN - - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT DISTINCT COALESCE ( - COUNT( + 8 ), - 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT COALESCE ( - COUNT ( + 8 ), - 60 )
----
-1

query I rowsort
SELECT ALL + 30 * 60
----
1800

query I rowsort
SELECT - ( - - 62 ) + + + 61
----
-1

query I rowsort
SELECT DISTINCT + 12 * 49 * - + 32 * 10 * + - 8 AS col1
----
1505280

onlyif mysql # aggregate syntax: 
query II rowsort label-1953
SELECT 52 + 0 + - 82 + - + 80 - - 11 AS col2, + COUNT( * ) AS col1
----
-99
1

skipif mysql # not compatible
query II rowsort label-1953
SELECT 52 + 0 + - 82 + - + 80 - - 11 AS col2, + COUNT ( * ) AS col1
----
-99
1

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

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

query I rowsort
SELECT - 43 + - 47 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT 55 + - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-1956
SELECT 55 + - - COUNT ( * )
----
56

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

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

query II rowsort
SELECT - 26 + + 15, 63 - + - 3 AS col0
----
-11
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1959
SELECT 4 DIV + NULLIF ( + 90, - COUNT( * ) * - - NULLIF ( - 53, + 47 + + MIN( ALL + 57 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1959
SELECT 4 / + NULLIF ( + 90, - COUNT ( * ) * - - NULLIF ( - 53, + 47 + + MIN ( ALL + 57 ) ) ) AS col2
----
0

query II rowsort
SELECT - 40 + 10 AS col1, 11 + + - 16 AS col1
----
-30
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1961
SELECT DISTINCT + 69 DIV + NULLIF ( COALESCE ( + + CAST( + 80 AS SIGNED ), - 64 ), - 53 ) * + + 13 + + + 54
----
54

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT + 69 / + NULLIF ( COALESCE ( + + CAST ( + 80 AS INTEGER ), - 64 ), - 53 ) * + + 13 + + + 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT ALL + 11 + 28 + + 67 * + - 98 + - 56 * - - COUNT( * )
----
-6583

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + 11 + 28 + + 67 * + - 98 + - 56 * - - COUNT ( * )
----
-6583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1963
SELECT + CAST( - + AVG ( + + COALESCE ( + NULLIF ( + 29, + 13 / 47 * - 87 ), - 28 ) ) AS SIGNED ) + MIN( + 75 ) * 49, - 53 AS col0
----
3646
-53

skipif mysql # not compatible
query II rowsort label-1963
SELECT + CAST ( - + AVG ( + + COALESCE ( + NULLIF ( + 29, + 13 / 47 * - 87 ), - 28 ) ) AS INTEGER ) + MIN ( + 75 ) * 49, - 53 AS col0
----
3646
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1964
SELECT ALL - 41 DIV + 71 AS col1, 51 * - - ( + COUNT( * ) ) * + 62 AS col0
----
0
3162

skipif mysql # not compatible
query II rowsort label-1964
SELECT ALL - 41 / + 71 AS col1, 51 * - - ( + COUNT ( * ) ) * + 62 AS col0
----
0
3162

query I rowsort
SELECT DISTINCT - - 97 + - 72 + + 65 AS col1
----
90

query I rowsort
SELECT ALL + 50 + - 41
----
9

query I rowsort
SELECT ALL + 75 + - - 47 + - - 4 AS col1
----
126

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

query I rowsort
SELECT 52 * + - 32
----
-1664

query I rowsort
SELECT ALL 26 + + ( - 55 ) AS col0
----
-29

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT + NULLIF ( + 67, + 14 ) * - CASE WHEN NOT - 55 IS NULL THEN NULL ELSE ( + 16 ) END * + 49 - + SUM( ALL - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT + NULLIF ( + 67, + 14 ) * - CASE WHEN NOT - 55 IS NULL THEN NULL ELSE ( + 16 ) END * + 49 - + SUM ( ALL - 10 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT 45 - MIN( + 66 ) - - 69 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT 45 - MIN ( + 66 ) - - 69 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT ALL 74 - - COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL 74 - - COUNT ( * ) AS col2
----
75

query I rowsort
SELECT 57 * + - 36 * + 92
----
-188784

query II rowsort
SELECT ALL - 2 AS col1, + 35 AS col2
----
-2
35

query I rowsort
SELECT + ( + 93 ) * 53 + - 64 + + 58 * 4
----
5097

query I rowsort
SELECT ALL 44 * - - 98
----
4312

query I rowsort
SELECT 47 * + 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1981
SELECT COALESCE ( + ( + 63 ), + 53, + 59 * + COALESCE ( + 6, - MAX( DISTINCT 63 ), + SUM( - CAST( NULL AS SIGNED ) ) DIV ( 60 ) ) ) * + + MIN( DISTINCT - - 20 ) + 41 AS col1, + 2
----
1301
2

skipif mysql # not compatible
query II rowsort label-1981
SELECT COALESCE ( + ( + 63 ), + 53, + 59 * + COALESCE ( + 6, - MAX ( DISTINCT 63 ), + SUM ( - CAST ( NULL AS INTEGER ) ) / ( 60 ) ) ) * + + MIN ( DISTINCT - - 20 ) + 41 AS col1, + 2
----
1301
2

query I rowsort
SELECT DISTINCT 73 - + - 31 AS col2
----
104

query II rowsort
SELECT 89 AS col2, - 12 * + - 34 col2
----
89
408

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

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 34 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 67 * - 39
----
-2613

query I rowsort
SELECT 75 - - 20 + - 56 * - 13 * - - 94 col2
----
68527

query I rowsort
SELECT ALL - ( - 32 )
----
32

query I rowsort
SELECT 82 * + + ( - 42 ) * - 90 AS col2
----
309960

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1990
SELECT ALL 98, 58 * + CAST( NULL AS DECIMAL ) + 26 AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-1990
SELECT ALL 98, 58 * + CAST ( NULL AS REAL ) + 26 AS col1
----
98
NULL

query I rowsort
SELECT - 41 * 20 col0
----
-820

query I rowsort
SELECT - - 31 * + 15 - + - NULLIF ( - + ( - 49 ), 50 ) * - 37
----
-1348

onlyif mysql # DIV for integer division: 
query II rowsort label-1993
SELECT ALL - 40 + 54 DIV 53, 60 AS col1
----
-39
60

skipif mysql # not compatible
query II rowsort label-1993
SELECT ALL - 40 + 54 / 53, 60 AS col1
----
-39
60

query I rowsort
SELECT COALESCE ( - - 51, 50 ) * - 44
----
-2244

query I rowsort
SELECT ALL ( + + COALESCE ( - 32, + - 15 * 73 ) ) + + 92 AS col1
----
60

query I rowsort
SELECT ALL - ( 98 ) AS col2
----
-98

query I rowsort
SELECT DISTINCT - 12 + + + 95 AS col1
----
83

query I rowsort
SELECT ALL + 48 + 38
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1999
SELECT 41 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-1999
SELECT 41 / 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT ALL - + ( COUNT( * ) ) + + NULLIF ( 40, + 28 ) * 66 AS col1
----
2639

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL - + ( COUNT ( * ) ) + + NULLIF ( 40, + 28 ) * 66 AS col1
----
2639

query I rowsort
SELECT 29 + - + ( 10 )
----
19

query I rowsort
SELECT + 80 * + 41 * + 75 AS col1
----
246000

query II rowsort
SELECT 47, - 52 * - 90 col2
----
47
4680

query I rowsort
SELECT ALL + + 7 + - - 22 * + - 61 AS col1
----
-1335

query I rowsort
SELECT + 98 * - 27 AS col0
----
-2646

query I rowsort
SELECT ALL - 63 * + 72 + 12 AS col0
----
-4524

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2007
SELECT + 7 + + 25 + + - 33 * - 9 AS col2, + CAST( NULL AS SIGNED ) AS col1
----
329
NULL

skipif mysql # not compatible
query II rowsort label-2007
SELECT + 7 + + 25 + + - 33 * - 9 AS col2, + CAST ( NULL AS INTEGER ) AS col1
----
329
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL - ( - + 65 ) - ( - MIN( - CASE - + 46 WHEN 62 * 10 THEN - 2 * COALESCE ( - 94, 14 + + ( 83 ) ) ELSE NULL END ) ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL - ( - + 65 ) - ( - MIN ( - CASE - + 46 WHEN 62 * 10 THEN - 2 * COALESCE ( - 94, 14 + + ( 83 ) ) ELSE NULL END ) ) * 61
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2009
SELECT DISTINCT + COUNT( * ) AS col0, 43 AS col0
----
1
43

skipif mysql # not compatible
query II rowsort label-2009
SELECT DISTINCT + COUNT ( * ) AS col0, 43 AS col0
----
1
43

query I rowsort
SELECT ALL 4 * + 86 * - 24
----
-8256

query I rowsort
SELECT ALL + ( 39 ) * + 60 + + ( + - 48 )
----
2292

query I rowsort
SELECT 66 - 92 * - + 89 - 22 AS col0
----
8232

query I rowsort
SELECT ALL 68 * 32 AS col0
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT + 52 * 59 + 25 + 43 * - COUNT( * ) + - + 95 - + 54 * MAX( - - 93 ) AS col2
----
-2067

skipif mysql # not compatible
query I rowsort label-2014
SELECT + 52 * 59 + 25 + 43 * - COUNT ( * ) + - + 95 - + 54 * MAX ( - - 93 ) AS col2
----
-2067

onlyif mysql # aggregate syntax: 
query II rowsort label-2015
SELECT ALL - 38 * + 44 AS col1, - ( + COUNT( * ) ) + 5 + + 27
----
-1672
31

skipif mysql # not compatible
query II rowsort label-2015
SELECT ALL - 38 * + 44 AS col1, - ( + COUNT ( * ) ) + 5 + + 27
----
-1672
31

query I rowsort
SELECT DISTINCT - ( - 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT ALL - COUNT( * ) * - 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - COUNT ( * ) * - 34 AS col0
----
34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2019
SELECT + CASE WHEN NOT 71 IS NOT NULL THEN MIN( + 37 ) - - CAST( 98 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT + CASE WHEN NOT 71 IS NOT NULL THEN MIN ( + 37 ) - - CAST ( 98 AS INTEGER ) END
----
NULL

query II rowsort
SELECT + CASE WHEN 40 IS NOT NULL THEN NULL ELSE - 79 END + - + 62 - - 23 * 54 / ( 72 ) AS col0, - 98 + 73 + 58
----
NULL
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2021
SELECT ALL 54 * + 30 AS col1, COUNT( * ) + + 59
----
1620
60

skipif mysql # not compatible
query II rowsort label-2021
SELECT ALL 54 * + 30 AS col1, COUNT ( * ) + + 59
----
1620
60

query I rowsort
SELECT + 66 * + 65
----
4290

query I rowsort
SELECT + 25 + + 62 AS col0
----
87

query I rowsort
SELECT ALL 78 + 22 col0
----
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2025
SELECT ALL + 74 * + + 72 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL + 74 * + + 72 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT + COUNT( * ) * - - 40 + - COUNT( * ) + 42 * 60 + + + 9 AS col2
----
2568

skipif mysql # not compatible
query I rowsort label-2026
SELECT + COUNT ( * ) * - - 40 + - COUNT ( * ) + 42 * 60 + + + 9 AS col2
----
2568

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ALL COUNT( * ) * + + 33 + - + 86
----
-53

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL COUNT ( * ) * + + 33 + - + 86
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT DISTINCT + COUNT( * ) + COUNT( * ) + 8
----
10

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) + 8
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT ALL 45 + + 6 - 13 * - COUNT( * ) * + 61 AS col0
----
844

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL 45 + + 6 - 13 * - COUNT ( * ) * + 61 AS col0
----
844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2030
SELECT + 88 + - + CAST( - 78 AS SIGNED )
----
166

skipif mysql # not compatible
query I rowsort label-2030
SELECT + 88 + - + CAST ( - 78 AS INTEGER )
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-2031
SELECT + - 3 DIV 56 * + 36
----
0

skipif mysql # not compatible
query I rowsort label-2031
SELECT + - 3 / 56 * + 36
----
0

query I rowsort
SELECT + + 28 * - 73 * - + 98 AS col2
----
200312

query I rowsort
SELECT - + 22 + 44 + - 69 * + + 28 - + + 35 * - 41 AS col2
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL - 67 - - COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL - 67 - - COUNT ( * ) AS col0
----
-66

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

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

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

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

query I rowsort
SELECT DISTINCT ( + ( 98 ) ) AS col0
----
98

query I rowsort
SELECT ALL - 7 * + 27 + - 53
----
-242

query I rowsort
SELECT - + 96 * + - 32 * + - 84 * - + 79 + 52 + - - 21 - - 25 * + 26 * + 0
----
20385865

query I rowsort
SELECT - - CASE + 76 WHEN - + 71 THEN - 30 WHEN + + ( - 57 ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2041
SELECT ALL CASE + 34 WHEN - 29 THEN - COALESCE ( - 56, + - 33 + + + 1 ) - + 69 + + 60 WHEN + 54 / + 95 * 61 + 88 THEN 8 * - - 58 + + 65 END AS col0, CAST( 7 AS SIGNED ) col2, - 99 col1
----
NULL
7
-99

skipif mysql # not compatible
query III rowsort label-2041
SELECT ALL CASE + 34 WHEN - 29 THEN - COALESCE ( - 56, + - 33 + + + 1 ) - + 69 + + 60 WHEN + 54 / + 95 * 61 + 88 THEN 8 * - - 58 + + 65 END AS col0, CAST ( 7 AS INTEGER ) col2, - 99 col1
----
NULL
7
-99

query I rowsort
SELECT - 74 * + - 24 AS col1
----
1776

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

skipif mysql # not compatible
query I rowsort label-2043
SELECT - COUNT ( * ) * 79
----
-79

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

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL + 70 / + + COUNT ( * )
----
70

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

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

query I rowsort
SELECT DISTINCT + 52 * - ( - + 52 )
----
2704

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

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT + 80 / + ( + COUNT ( * ) ) col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT ALL + 71 DIV 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL + 71 / 99 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT - ( 20 ) DIV - - ( + 59 )
----
0

skipif mysql # not compatible
query I rowsort label-2049
SELECT - ( 20 ) / - - ( + 59 )
----
0

query III rowsort
SELECT ALL 41 * - 59 + + 30 + - 1 * 73 AS col0, ( - + 24 ) + 70, + 37 * - ( - - 24 ) AS col2
----
-2462
46
-888

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

query I rowsort
SELECT - 84 * + - ( + 62 )
----
5208

query I rowsort
SELECT + CASE - ( 24 ) WHEN - 27 THEN - - 61 WHEN + 79 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2054
SELECT - COUNT( * ) + + ( - 67 ), 82 AS col1
----
-68
82

skipif mysql # not compatible
query II rowsort label-2054
SELECT - COUNT ( * ) + + ( - 67 ), 82 AS col1
----
-68
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT + NULLIF ( + COUNT( * ), + + 59 + - + 38 + - + MIN( DISTINCT + 29 ) * + + 94 + + CAST( - 85 AS SIGNED ) * - + CAST( + NULLIF ( ( - 73 ), - 96 * - 51 * - 35 ) AS SIGNED ) - - 62 * + 18 + + + COUNT( ALL + 29 ) / - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-2055
SELECT + NULLIF ( + COUNT ( * ), + + 59 + - + 38 + - + MIN ( DISTINCT + 29 ) * + + 94 + + CAST ( - 85 AS INTEGER ) * - + CAST ( + NULLIF ( ( - 73 ), - 96 * - 51 * - 35 ) AS INTEGER ) - - 62 * + 18 + + + COUNT ( ALL + 29 ) / - 63 )
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT DISTINCT ( - + COUNT( * ) ) * + + 49 + 16
----
-33

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT ( - + COUNT ( * ) ) * + + 49 + 16
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2059
SELECT - 36 * + 78 + + CASE CAST( NULL AS SIGNED ) WHEN - - 58 THEN NULL ELSE CASE - COUNT( * ) WHEN + + ( + MIN( DISTINCT 59 ) ) THEN + 5 WHEN COUNT( * ) * CAST( NULL AS SIGNED ) * - - 97 THEN NULL ELSE NULL END END * + SUM( ALL + - 62 ) * + - SUM( + + 2 ) / + 22 * - 2 - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT - 36 * + 78 + + CASE CAST ( NULL AS INTEGER ) WHEN - - 58 THEN NULL ELSE CASE - COUNT ( * ) WHEN + + ( + MIN ( DISTINCT 59 ) ) THEN + 5 WHEN COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - 97 THEN NULL ELSE NULL END END * + SUM ( ALL + - 62 ) * + - SUM ( + + 2 ) / + 22 * - 2 - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2060
SELECT + NULLIF ( - COUNT( * ), - CAST( 69 AS SIGNED ) + + 17 * + 39 + COUNT( * ) - + 35 * 46 + + - 74 + COUNT( * ) + + - 91 + + 60 * - + COALESCE ( - 45, - 44 / - 1 ) * 2 + - 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-2060
SELECT + NULLIF ( - COUNT ( * ), - CAST ( 69 AS INTEGER ) + + 17 * + 39 + COUNT ( * ) - + 35 * 46 + + - 74 + COUNT ( * ) + + - 91 + + 60 * - + COALESCE ( - 45, - 44 / - 1 ) * 2 + - 53 )
----
-1

query I rowsort
SELECT ALL - 65 * + 50 + - 18 * + 74 + - - 76 AS col2
----
-4506

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT ALL - 29 * + - MAX( 65 ) + - COUNT( * )
----
1884

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - 29 * + - MAX ( 65 ) + - COUNT ( * )
----
1884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2063
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2064
SELECT + CASE - - 60 WHEN - AVG ( - - 80 ) THEN + 52 END AS col1, ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2064
SELECT + CASE - - 60 WHEN - AVG ( - - 80 ) THEN + 52 END AS col1, ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT - - 73 * 68 DIV + 22 + + 92 * - 44 + - - 59 * - 47 AS col1
----
-6596

skipif mysql # not compatible
query I rowsort label-2065
SELECT - - 73 * 68 / + 22 + + 92 * - 44 + - - 59 * - 47 AS col1
----
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL - MAX( DISTINCT - 17 ) / CASE + 83 WHEN + + 52 THEN 37 * - 14 END + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL - MAX ( DISTINCT - 17 ) / CASE + 83 WHEN + + 52 THEN 37 * - 14 END + + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + MIN( - 69 ) * - 34 + - 3 AS col1
----
2343

skipif mysql # not compatible
query I rowsort label-2067
SELECT + MIN ( - 69 ) * - 34 + - 3 AS col1
----
2343

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT - MIN( 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-2069
SELECT - MIN ( 80 )
----
-80

query I rowsort
SELECT ALL + + 27 * - 98 * 76 - 95 AS col2
----
-201191

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT + 53 * 83 + + + COUNT( * )
----
4400

skipif mysql # not compatible
query I rowsort label-2071
SELECT + 53 * 83 + + + COUNT ( * )
----
4400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2072
SELECT + 62 DIV - - COUNT( DISTINCT 37 )
----
62

skipif mysql # not compatible
query I rowsort label-2072
SELECT + 62 / - - COUNT ( DISTINCT 37 )
----
62

query I rowsort
SELECT DISTINCT + ( + - 8 ) col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2074
SELECT DISTINCT - 69 * + COUNT( * ) * - 80, + 40 * 37 AS col1
----
5520
1480

skipif mysql # not compatible
query II rowsort label-2074
SELECT DISTINCT - 69 * + COUNT ( * ) * - 80, + 40 * 37 AS col1
----
5520
1480

query II rowsort
SELECT DISTINCT 47 AS col0, 49 + - 18 + - 66 * - 16 * + 19
----
47
20095

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2076
SELECT ALL - CASE - + CAST( NULL AS DECIMAL ) WHEN - 47 * - 81 + + COUNT( * ) * NULLIF ( 62, + + 98 - 31 * - 50 ) + COUNT( * ) * + - 22 / + + COUNT( * ) THEN + 33 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - CASE - + CAST ( NULL AS REAL ) WHEN - 47 * - 81 + + COUNT ( * ) * NULLIF ( 62, + + 98 - 31 * - 50 ) + COUNT ( * ) * + - 22 / + + COUNT ( * ) THEN + 33 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT 63 * + + MAX( ALL + - ( 39 ) ) + - + ( - 3 ) AS col2
----
-2454

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT 63 * + + MAX ( ALL + - ( 39 ) ) + - + ( - 3 ) AS col2
----
-2454

query I rowsort
SELECT + COALESCE ( + 52, ( + + 24 ) + - 17 ) AS col2
----
52

query I rowsort
SELECT + - 55 + + 25 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT + + 50 - + + CAST( - 22 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-2080
SELECT + + 50 - + + CAST ( - 22 AS INTEGER )
----
72

query I rowsort
SELECT + + 81 + + 10 * - CASE - 56 WHEN + 21 * + 65 + - 11 - - 14 + + 50 * 82 + + - 36 THEN + - 73 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2082
SELECT + 33 + - + 77 + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT + 33 + - + 77 + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - 5
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2083
SELECT ALL CASE - - 89 WHEN - + CAST( NULL AS SIGNED ) THEN + 7 + - 79 WHEN + 22 / - ( COALESCE ( - - 14, 60 ) ) - - - 75 / 90 THEN - 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL CASE - - 89 WHEN - + CAST ( NULL AS INTEGER ) THEN + 7 + - 79 WHEN + 22 / - ( COALESCE ( - - 14, 60 ) ) - - - 75 / 90 THEN - 5 END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT ALL NULLIF ( 91, CAST( NULL AS SIGNED ) )
----
91

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL NULLIF ( 91, CAST ( NULL AS INTEGER ) )
----
91

query I rowsort
SELECT + 27 + + 4 AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-2087
SELECT ALL 8 AS col1, COUNT( * ) * 72
----
8
72

skipif mysql # not compatible
query II rowsort label-2087
SELECT ALL 8 AS col1, COUNT ( * ) * 72
----
8
72

query I rowsort
SELECT DISTINCT ( - 5 ) col1
----
-5

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

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

query I rowsort
SELECT ALL + 66 * - - 57
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT 75 + - 1 * - - 91 * + + 84 + + - 97 + 30 - - 87 * MAX( - + 73 ) * - + 5 * - 25 * + + 11
----
-8740261

skipif mysql # not compatible
query I rowsort label-2091
SELECT 75 + - 1 * - - 91 * + + 84 + + - 97 + 30 - - 87 * MAX ( - + 73 ) * - + 5 * - 25 * + + 11
----
-8740261

query I rowsort
SELECT ALL 85 + + 76 + + - 30 AS col2
----
131

query I rowsort
SELECT DISTINCT 44 * - ( + 30 )
----
-1320

query I rowsort
SELECT 85 + + + 61 AS col1
----
146

query I rowsort
SELECT ( + 98 ) + - - NULLIF ( - 4, - 30 )
----
94

query I rowsort
SELECT ALL + 66 * - 61 AS col2
----
-4026

query I rowsort
SELECT 1 - + 16
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2098
SELECT 0, COUNT( * ) DIV + 80
----
0
0

skipif mysql # not compatible
query II rowsort label-2098
SELECT 0, COUNT ( * ) / + 80
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT 75 * - 53 AS col1, MAX( - + 88 )
----
-3975
-88

skipif mysql # not compatible
query II rowsort label-2099
SELECT 75 * - 53 AS col1, MAX ( - + 88 )
----
-3975
-88

query I rowsort
SELECT - 6 * - 68 + - 37 - + + 46 AS col1
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL + 40 + SUM( - 76 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + 40 + SUM ( - 76 ) AS col0
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-2102
SELECT + 84 AS col0, - 30 * - ( + ( + - COALESCE ( 75, + + ( + 14 ) DIV + 91, - 17 ) ) ) + + + 25 + + - 67 AS col1
----
84
-2292

skipif mysql # not compatible
query II rowsort label-2102
SELECT + 84 AS col0, - 30 * - ( + ( + - COALESCE ( 75, + + ( + 14 ) / + 91, - 17 ) ) ) + + + 25 + + - 67 AS col1
----
84
-2292

onlyif mysql # aggregate syntax: 
query II rowsort label-2103
SELECT ALL - COUNT( * ), + ( - ( - 3 ) ) * - + ( + - COUNT( * ) ) + - 35 AS col0
----
-1
-32

skipif mysql # not compatible
query II rowsort label-2103
SELECT ALL - COUNT ( * ), + ( - ( - 3 ) ) * - + ( + - COUNT ( * ) ) + - 35 AS col0
----
-1
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL - 76 + + COUNT( * ) + + 94 * 46 * + + 58 + - + ( 52 ) * + 20
----
249677

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL - 76 + + COUNT ( * ) + + 94 * 46 * + + 58 + - + ( 52 ) * + 20
----
249677

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

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT + COUNT ( * ) / + + 72
----
0

query II rowsort
SELECT 97 * 75 AS col0, ( - 66 ) AS col0
----
7275
-66

query I rowsort
SELECT DISTINCT - 95 + - 48
----
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2108
SELECT DISTINCT CAST( + 78 AS SIGNED ) + - COUNT( * ) * - 36 * - 63 * + 93
----
-210846

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT CAST ( + 78 AS INTEGER ) + - COUNT ( * ) * - 36 * - 63 * + 93
----
-210846

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT DISTINCT - 25 DIV - 10
----
2

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT - 25 / - 10
----
2

query II rowsort
SELECT + ( 41 ) * - 63 + + 81 col2, 81 AS col2
----
-2502
81

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

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

query I rowsort
SELECT ( + 28 ) * - 92
----
-2576

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL - - COUNT( ALL - + 17 ) * + 42
----
42

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL - - COUNT ( ALL - + 17 ) * + 42
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2114
SELECT - CAST( NULL AS DECIMAL ) + 5 + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT - CAST ( NULL AS REAL ) + 5 + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT DISTINCT - + CASE COUNT( ( 6 ) ) WHEN COUNT( * ) THEN + - ( - - 97 ) + + ( - 19 ) + - 64 WHEN - 47 * - COUNT( DISTINCT - ( + 58 ) ) THEN NULL WHEN COUNT( * ) THEN NULL END
----
180

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT - + CASE COUNT ( ( 6 ) ) WHEN COUNT ( * ) THEN + - ( - - 97 ) + + ( - 19 ) + - 64 WHEN - 47 * - COUNT ( DISTINCT - ( + 58 ) ) THEN NULL WHEN COUNT ( * ) THEN NULL END
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2116
SELECT ALL + - 75 * + COUNT( * ) * + CAST( NULL AS SIGNED ) * 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL + - 75 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 54 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 59 * + 31 AS col0
----
-1829

onlyif mysql # aggregate syntax: 
query II rowsort label-2118
SELECT - 51 * - COALESCE ( + 39, - COUNT( * ), - - MAX( ALL - - 51 ) ) AS col2, 68
----
1989
68

skipif mysql # not compatible
query II rowsort label-2118
SELECT - 51 * - COALESCE ( + 39, - COUNT ( * ), - - MAX ( ALL - - 51 ) ) AS col2, 68
----
1989
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2119
SELECT ALL + + 9 * + - 88 + 77 DIV 47 * + CAST( + - AVG ( + 71 ) AS SIGNED ) AS col2
----
-863

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL + + 9 * + - 88 + 77 / 47 * + CAST ( + - AVG ( + 71 ) AS INTEGER ) AS col2
----
-863

onlyif mysql # aggregate syntax: 
query II rowsort label-2120
SELECT ALL - COUNT( * ) AS col0, + ( 64 ) + + - 35 AS col2
----
-1
29

skipif mysql # not compatible
query II rowsort label-2120
SELECT ALL - COUNT ( * ) AS col0, + ( 64 ) + + - 35 AS col2
----
-1
29

query I rowsort
SELECT ALL + + 83 * - + ( - 92 ) AS col1
----
7636

query I rowsort
SELECT 96 + 94 * - 94
----
-8740

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2123
SELECT ALL + COUNT( * ), + 27 DIV - 88 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-2123
SELECT ALL + COUNT ( * ), + 27 / - 88 AS col1
----
1
0

query I rowsort
SELECT ALL + + 33 - - 62
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT ( - 45 ) + 65 - - - 40 DIV 65
----
20

skipif mysql # not compatible
query I rowsort label-2125
SELECT ( - 45 ) + 65 - - - 40 / 65
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2126
SELECT 73 + + COUNT( * ) DIV 7 * - 32 + + 10 DIV - MIN( + 17 ) + - - MIN( 87 ) + + 58 * - + 0 + - COUNT( * ) + + - 0
----
159

skipif mysql # not compatible
query I rowsort label-2126
SELECT 73 + + COUNT ( * ) / 7 * - 32 + + 10 / - MIN ( + 17 ) + - - MIN ( 87 ) + + 58 * - + 0 + - COUNT ( * ) + + - 0
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2127
SELECT DISTINCT + MIN( + 12 ) DIV + + 91 col0
----
0

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT + MIN ( + 12 ) / + + 91 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT 21 * - MIN( - 50 ) AS col0
----
1050

skipif mysql # not compatible
query I rowsort label-2128
SELECT 21 * - MIN ( - 50 ) AS col0
----
1050

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2129
SELECT ALL 92 * + 78 col2, + CAST( 59 AS SIGNED )
----
7176
59

skipif mysql # not compatible
query II rowsort label-2129
SELECT ALL 92 * + 78 col2, + CAST ( 59 AS INTEGER )
----
7176
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2130
SELECT ALL - 43 + 6 AS col0, - COUNT( * ) DIV - - 44 * - - COUNT( * ) AS col1
----
-37
0

skipif mysql # not compatible
query II rowsort label-2130
SELECT ALL - 43 + 6 AS col0, - COUNT ( * ) / - - 44 * - - COUNT ( * ) AS col1
----
-37
0

query II rowsort
SELECT DISTINCT 80 * - - 40 AS col2, 55 * + 0 AS col0
----
3200
0

query I rowsort
SELECT ALL 97 + - 59
----
38

query II rowsort
SELECT 66 * + 93 AS col2, + 28 + + - 46 + - - 15
----
6138
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2134
SELECT ALL 74 + 25 + + CAST( NULL AS SIGNED ) + - 84 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL 74 + 25 + + CAST ( NULL AS INTEGER ) + - 84 * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 32 + + 62 AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2136
SELECT DISTINCT 3 + + 7 + + 74 + - 51 + - 65 DIV - 11 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT 3 + + 7 + + 74 + - 51 + - 65 / - 11 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT 56 * - MAX( DISTINCT + - 64 ) AS col2
----
3584

skipif mysql # not compatible
query I rowsort label-2137
SELECT 56 * - MAX ( DISTINCT + - 64 ) AS col2
----
3584

query II rowsort
SELECT 91 * + 62 AS col0, 15 AS col2
----
5642
15

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2140
SELECT CASE 45 WHEN - 30 + - COALESCE ( 91, - - CAST( NULL AS SIGNED ) ) THEN NULL WHEN 64 * 12 * + COUNT( * ) * + - NULLIF ( + 39, - 28 * + MIN( + 77 ) * 49 ) / + COUNT( * ) THEN - MAX( ALL - + 6 ) + + + 88 END * + COALESCE ( - ( + COUNT( * ) ), + 32 ) * - + 65 + 16 / - - 74 + NULLIF ( + NULLIF ( + 85, - 87 ), + 35 / 86 - + - 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT CASE 45 WHEN - 30 + - COALESCE ( 91, - - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 64 * 12 * + COUNT ( * ) * + - NULLIF ( + 39, - 28 * + MIN ( + 77 ) * 49 ) / + COUNT ( * ) THEN - MAX ( ALL - + 6 ) + + + 88 END * + COALESCE ( - ( + COUNT ( * ) ), + 32 ) * - + 65 + 16 / - - 74 + NULLIF ( + NULLIF ( + 85, - 87 ), + 35 / 86 - + - 65 ) AS col0
----
NULL

query I rowsort
SELECT ALL 31 + - + 32 AS col0
----
-1

query I rowsort
SELECT ALL 2 + 77
----
79

query I rowsort
SELECT ( - 68 ) * + + 67
----
-4556

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL - CASE + NULLIF ( 79, + + 90 ) WHEN + 12 THEN 60 * + - 70 / - 91 / - 32 WHEN 73 + - - 70 + + 6 THEN CASE - 70 WHEN - 83 - - 24 THEN - 84 WHEN 99 THEN + 12 ELSE + 35 END + - - NULLIF ( - 72, + 28 + 91 ) END + + MAX( DISTINCT + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - CASE + NULLIF ( 79, + + 90 ) WHEN + 12 THEN 60 * + - 70 / - 91 / - 32 WHEN 73 + - - 70 + + 6 THEN CASE - 70 WHEN - 83 - - 24 THEN - 84 WHEN 99 THEN + 12 ELSE + 35 END + - - NULLIF ( - 72, + 28 + 91 ) END + + MAX ( DISTINCT + 13 )
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 51, - 29 + - 70 * + + 65 * - + 90 - - ( COALESCE ( 49, - - 37 * + - 5 + + 52 * + 49 * 61 + + 99 ) ) ) * + 41 AS col1
----
2091

query I rowsort
SELECT 10 * + NULLIF ( - + ( 25 ), + + 38 - - 27 ) AS col1
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL MIN( DISTINCT 21 ) - 69 + + - ( - + 72 )
----
24

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL MIN ( DISTINCT 21 ) - 69 + + - ( - + 72 )
----
24

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

query I rowsort
SELECT DISTINCT - - 86 * 69 col1
----
5934

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2150
SELECT 8 * + COUNT( * ) + 93 * 82 DIV - 92 AS col0, 65 * - 28
----
-74
-1820

skipif mysql # not compatible
query II rowsort label-2150
SELECT 8 * + COUNT ( * ) + 93 * 82 / - 92 AS col0, 65 * - 28
----
-74
-1820

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2152
SELECT COUNT( * ) * - 40 * - NULLIF ( + - 30, - - ( - + CAST( + 51 AS SIGNED ) ) ) + COUNT( + ( - + ( 19 ) ) ) * + NULLIF ( NULLIF ( + - 43, - + COUNT( * ) ), + COUNT( * ) * + 16 * - - 79 + COUNT( * ) / - - SUM( ALL - NULLIF ( + CASE - 87 WHEN 85 * + 41 THEN - 75 * 71 ELSE NULL END, + CASE + 88 WHEN - 79 / + 68 THEN + - 34 END ) ) + + + 8 ) + + 42 + - MAX( + + 92 ) * + 7
----
-1845

skipif mysql # not compatible
query I rowsort label-2152
SELECT COUNT ( * ) * - 40 * - NULLIF ( + - 30, - - ( - + CAST ( + 51 AS INTEGER ) ) ) + COUNT ( + ( - + ( 19 ) ) ) * + NULLIF ( NULLIF ( + - 43, - + COUNT ( * ) ), + COUNT ( * ) * + 16 * - - 79 + COUNT ( * ) / - - SUM ( ALL - NULLIF ( + CASE - 87 WHEN 85 * + 41 THEN - 75 * 71 ELSE NULL END, + CASE + 88 WHEN - 79 / + 68 THEN + - 34 END ) ) + + + 8 ) + + 42 + - MAX ( + + 92 ) * + 7
----
-1845

query I rowsort
SELECT DISTINCT - - 56
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2154
SELECT 88 DIV 51 - COUNT( * ) + + COALESCE ( - + 36, + 11 * COUNT( * ) * + 75 ) * + + 63
----
-2268

skipif mysql # not compatible
query I rowsort label-2154
SELECT 88 / 51 - COUNT ( * ) + + COALESCE ( - + 36, + 11 * COUNT ( * ) * + 75 ) * + + 63
----
-2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2155
SELECT ALL - CASE + - 54 WHEN + 61 * + COALESCE ( - CAST( NULL AS SIGNED ), MIN( ALL 66 ) * - 38 ) THEN + - 26 * - 35 + + 28 WHEN + COUNT( * ) + + 90 THEN + 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL - CASE + - 54 WHEN + 61 * + COALESCE ( - CAST ( NULL AS INTEGER ), MIN ( ALL 66 ) * - 38 ) THEN + - 26 * - 35 + + 28 WHEN + COUNT ( * ) + + 90 THEN + 46 END
----
NULL

query I rowsort
SELECT + + 64 col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT ALL - 36 DIV + 65 - 8 * 37 AS col2
----
-296

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - 36 / + 65 - 8 * 37 AS col2
----
-296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2158
SELECT 11 DIV - - ( + - COUNT( - 9 ) ) + 97 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2158
SELECT 11 / - - ( + - COUNT ( - 9 ) ) + 97 AS col1
----
86

query I rowsort
SELECT 98 * 73 AS col2
----
7154

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT 57 * + 75 + + - 24 / + 34 + + NULLIF ( ( CASE + COUNT( DISTINCT + 50 ) WHEN - ( - MAX( + 57 ) ) THEN NULL WHEN + - AVG ( - + 86 ) * - + 12 * 97 THEN + 86 ELSE NULL END ), - 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT 57 * + 75 + + - 24 / + 34 + + NULLIF ( ( CASE + COUNT ( DISTINCT + 50 ) WHEN - ( - MAX ( + 57 ) ) THEN NULL WHEN + - AVG ( - + 86 ) * - + 12 * 97 THEN + 86 ELSE NULL END ), - 9 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 28 * - - 35
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL SUM( DISTINCT - 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL SUM ( DISTINCT - 71 ) AS col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT ALL + 84 + 90 DIV 14
----
90

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL + 84 + 90 / 14
----
90

query II rowsort
SELECT DISTINCT - 25 + - 5 AS col0, + 22
----
-30
22

query I rowsort
SELECT ALL 98 + + 62 col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT DISTINCT MIN( ALL + 68 ) + - 82 col2
----
-14

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT MIN ( ALL + 68 ) + - 82 col2
----
-14

query I rowsort
SELECT ALL - 84 * - - 13
----
-1092

query I rowsort
SELECT - 80 * - 15 * + 93
----
111600

query I rowsort
SELECT - 91 + - - 51
----
-40

query I rowsort
SELECT ALL + 12 + 68 AS col1
----
80

query I rowsort
SELECT ALL NULLIF ( + 11, - 14 * - + 18 )
----
11

query I rowsort
SELECT - 44 + - - 76 + 85 * - - 73
----
6237

query II rowsort
SELECT + 50 * + + ( + + 5 ), 49 * - + 46 AS col2
----
250
-2254

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT ALL 55 DIV + 44
----
1

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL 55 / + 44
----
1

query I rowsort
SELECT - CASE - - 71 WHEN - - 69 + - 67 + + - COALESCE ( 40, + 78 - 18 + 13 + AVG ( - - 27 ) * - 7 + + 26 ) + - 53 * 16 THEN + + 98 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL COUNT( * ) + 96 * + COUNT( * ) col0
----
97

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL COUNT ( * ) + 96 * + COUNT ( * ) col0
----
97

query I rowsort
SELECT DISTINCT 90 * 10
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT DISTINCT + 94 + + 86 * COUNT( * ) AS col1
----
180

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT + 94 + + 86 * COUNT ( * ) AS col1
----
180

query I rowsort
SELECT ALL 25 * + 54 AS col2
----
1350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2180
SELECT DISTINCT - 31 - 26 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT - 31 - 26 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT DISTINCT 54 * CAST( NULL AS SIGNED ) * 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT 54 * CAST ( NULL AS INTEGER ) * 98 AS col1
----
NULL

query I rowsort
SELECT + 66 + 98
----
164

query I rowsort
SELECT + 84 * 36
----
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2184
SELECT - CAST( - + NULLIF ( - 26, + ( + + 11 ) ) AS SIGNED ) * COUNT( DISTINCT - 22 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2184
SELECT - CAST ( - + NULLIF ( - 26, + ( + + 11 ) ) AS INTEGER ) * COUNT ( DISTINCT - 22 ) AS col1
----
-26

query I rowsort
SELECT + 60 * - 33 AS col2
----
-1980

query I rowsort
SELECT ( - 34 ) AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2187
SELECT + + ( + 41 ) * 92, 57 * + SUM( - + NULLIF ( + + 80, - 93 + 56 * + + COALESCE ( 27, + CAST( NULL AS SIGNED ) ) ) ) + + - CAST( NULL AS SIGNED ) AS col2
----
3772
NULL

skipif mysql # not compatible
query II rowsort label-2187
SELECT + + ( + 41 ) * 92, 57 * + SUM ( - + NULLIF ( + + 80, - 93 + 56 * + + COALESCE ( 27, + CAST ( NULL AS INTEGER ) ) ) ) + + - CAST ( NULL AS INTEGER ) AS col2
----
3772
NULL

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

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

query I rowsort
SELECT - 42 * + 29 * 80 * 77 + + 12
----
-7502868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2190
SELECT ALL - 73 * COUNT( * ) * 10 - 85 + 15 + - 98 DIV - 75
----
-799

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL - 73 * COUNT ( * ) * 10 - 85 + 15 + - 98 / - 75
----
-799

query I rowsort
SELECT + - 95 * - CASE - - 90 WHEN - - 2 THEN NULL ELSE + + 88 END AS col1
----
8360

query II rowsort
SELECT DISTINCT + 84 col2, + 49 * + 37
----
84
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL - + MIN( ( - + 92 ) ) * 95 * + 85 AS col1
----
742900

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - + MIN ( ( - + 92 ) ) * 95 * + 85 AS col1
----
742900

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2194
SELECT + 42 * 5 DIV - - 70 AS col1, CAST( + 72 AS SIGNED ) + CAST( + + 36 AS SIGNED ) AS col2
----
3
108

skipif mysql # not compatible
query II rowsort label-2194
SELECT + 42 * 5 / - - 70 AS col1, CAST ( + 72 AS INTEGER ) + CAST ( + + 36 AS INTEGER ) AS col2
----
3
108

query II rowsort
SELECT 27 AS col1, + 81 * + 88 * 95
----
27
677160

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + + MIN( ALL 94 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-2196
SELECT + + MIN ( ALL 94 ) col1
----
94

query I rowsort
SELECT + + 68 + - 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT - + CASE 14 WHEN - 29 * COUNT( * ) + - 42 THEN - - 90 END * 44 + - + 41 + + 68 * - - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2198
SELECT - + CASE 14 WHEN - 29 * COUNT ( * ) + - 42 THEN - - 90 END * 44 + - + 41 + + 68 * - - 69
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-2199
SELECT ALL + 15 col1, 23 * - 40 * - 52 AS col2, 30 DIV 32 DIV - + 63
----
15
47840
0

skipif mysql # not compatible
query III rowsort label-2199
SELECT ALL + 15 col1, 23 * - 40 * - 52 AS col2, 30 / 32 / - + 63
----
15
47840
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2201
SELECT ALL + 72 * - 61 + - MAX( ALL + 74 ) + + 27 - + + COUNT( * ) + - 35 * - - 72 DIV 24 * + + 15
----
-6015

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL + 72 * - 61 + - MAX ( ALL + 74 ) + + 27 - + + COUNT ( * ) + - 35 * - - 72 / 24 * + + 15
----
-6015

query I rowsort
SELECT 2 * 40 + 1
----
81

query II rowsort
SELECT DISTINCT - 57 * 5 + 21 col2, + 82 + - 42 AS col2
----
-264
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2204
SELECT ALL SUM( + 10 ) * CAST( + 70 AS SIGNED ) + + + 16 + - ( - + 1 ) AS col1
----
717

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL SUM ( + 10 ) * CAST ( + 70 AS INTEGER ) + + + 16 + - ( - + 1 ) AS col1
----
717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2205
SELECT DISTINCT + + CASE 8 WHEN + 29 THEN NULL WHEN - 27 * + COUNT( - - CAST( + 4 AS SIGNED ) ) THEN - NULLIF ( + 2, + 56 * - 10 ) + + 97 + 70 END AS col0, + 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-2205
SELECT DISTINCT + + CASE 8 WHEN + 29 THEN NULL WHEN - 27 * + COUNT ( - - CAST ( + 4 AS INTEGER ) ) THEN - NULLIF ( + 2, + 56 * - 10 ) + + 97 + 70 END AS col0, + 45
----
NULL
45

query I rowsort
SELECT DISTINCT + 25 + - 19 AS col2
----
6

query I rowsort
SELECT - 50 + 25 + 71 * 8
----
543

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL + 7 + - 91 + 16 * - + 47 + 75 + COUNT( * ) * - 83 * SUM( + + 4 ) * - 74
----
23807

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL + 7 + - 91 + 16 * - + 47 + 75 + COUNT ( * ) * - 83 * SUM ( + + 4 ) * - 74
----
23807

query I rowsort
SELECT ALL - 53 * + 12 AS col2
----
-636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2210
SELECT - 26 + + CAST( SUM( - 51 ) AS SIGNED ) DIV 71 + + 91
----
65

skipif mysql # not compatible
query I rowsort label-2210
SELECT - 26 + + CAST ( SUM ( - 51 ) AS INTEGER ) / 71 + + 91
----
65

query II rowsort
SELECT DISTINCT ( 98 ), + 35 * + + 55 AS col1
----
98
1925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT ALL CAST( - 34 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL CAST ( - 34 AS INTEGER ) AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT ALL CASE 11 WHEN - - NULLIF ( - 78, - 49 + 69 * 58 * + 7 ) THEN NULL ELSE - ( + AVG ( + CAST( NULL AS SIGNED ) ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL CASE 11 WHEN - - NULLIF ( - 78, - 49 + 69 * 58 * + 7 ) THEN NULL ELSE - ( + AVG ( + CAST ( NULL AS INTEGER ) ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT DISTINCT + COUNT( 66 ) - - 91 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT + COUNT ( 66 ) - - 91 AS col0
----
92

query II rowsort
SELECT DISTINCT ( + 85 ), 37 AS col2
----
85
37

query I rowsort
SELECT - ( 66 ) - 45 + - ( 43 ) AS col2
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT DISTINCT + 63 - - COALESCE ( NULLIF ( - 28, - 94 * 42 * + 36 ), - 22 * + ( + CAST( NULL AS SIGNED ) ) ) + 27 * 28 * + 93
----
70343

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT + 63 - - COALESCE ( NULLIF ( - 28, - 94 * 42 * + 36 ), - 22 * + ( + CAST ( NULL AS INTEGER ) ) ) + 27 * 28 * + 93
----
70343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2218
SELECT - CASE AVG ( + - 44 ) WHEN + 10 / 85 * + CAST( COALESCE ( - - 79, + + 60, CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN + 57 + - 72 * + ( - 89 ) WHEN - + 97 THEN + - 64 + ( 52 ) * - ( - 83 ) + - 14 * + 74 * + CAST( + COALESCE ( 23, + COUNT( * ) ) AS SIGNED ) + + - 84 * + 64 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2218
SELECT - CASE AVG ( + - 44 ) WHEN + 10 / 85 * + CAST ( COALESCE ( - - 79, + + 60, CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN + 57 + - 72 * + ( - 89 ) WHEN - + 97 THEN + - 64 + ( 52 ) * - ( - 83 ) + - 14 * + 74 * + CAST ( + COALESCE ( 23, + COUNT ( * ) ) AS INTEGER ) + + - 84 * + 64 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 91 * - + ( + COALESCE ( + 70, + 73, - ( - 13 ) - 7 ) ) AS col1
----
6370

query I rowsort
SELECT ALL ( + 95 ) col2
----
95

query I rowsort
SELECT - CASE - - 78 WHEN - 25 THEN NULL WHEN - 74 / - 79 THEN - 29 + + 29 END / - + 29
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + COUNT ( * ) / - 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT 33 * + - 84 * + 42 + CASE - - 47 WHEN + 67 + 23 THEN NULL WHEN - 10 THEN NULL ELSE - + COALESCE ( + 50, 48 ) END * - + 82 + - - 86 + + MAX( DISTINCT - 75 ) * - ( + + NULLIF ( + SUM( + 84 ), - CAST( - + 64 AS SIGNED ) + 45 ) ) * + 96 + - 62 + 47 AS col1
----
492547

skipif mysql # not compatible
query I rowsort label-2223
SELECT 33 * + - 84 * + 42 + CASE - - 47 WHEN + 67 + 23 THEN NULL WHEN - 10 THEN NULL ELSE - + COALESCE ( + 50, 48 ) END * - + 82 + - - 86 + + MAX ( DISTINCT - 75 ) * - ( + + NULLIF ( + SUM ( + 84 ), - CAST ( - + 64 AS INTEGER ) + 45 ) ) * + 96 + - 62 + 47 AS col1
----
492547

query I rowsort
SELECT + + 58 * + 97
----
5626

query I rowsort
SELECT + - 83 * + + 82
----
-6806

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT - + 18 DIV + 97 + 79 col2
----
79

skipif mysql # not compatible
query I rowsort label-2227
SELECT - + 18 / + 97 + 79 col2
----
79

query II rowsort
SELECT + ( - 65 ) AS col1, 15 * + 83 * + 68
----
-65
84660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2229
SELECT - - CAST( SUM( + 0 ) AS SIGNED ) DIV - 55 * + 51 DIV - + 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT - - CAST ( SUM ( + 0 ) AS INTEGER ) / - 55 * + 51 / - + 5 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2230
SELECT + 62 + - 69 DIV 88
----
62

skipif mysql # not compatible
query I rowsort label-2230
SELECT + 62 + - 69 / 88
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2231
SELECT DISTINCT - ( - - CAST( + - CASE - + 41 WHEN + 0 THEN NULL ELSE + 48 END AS SIGNED ) ) DIV - 93 + + 48 + - - 82 DIV + + 20 + + SUM( - - 24 ) - - 75 - - 26 - - 53 * - 5 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT - ( - - CAST ( + - CASE - + 41 WHEN + 0 THEN NULL ELSE + 48 END AS INTEGER ) ) / - 93 + + 48 + - - 82 / + + 20 + + SUM ( - - 24 ) - - 75 - - 26 - - 53 * - 5 AS col2
----
-88

query I rowsort
SELECT ALL + + NULLIF ( + 5, 17 )
----
5

query I rowsort
SELECT + 6 * + 34 AS col1
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL 59 + - ( + 47 ) + - 82 + - - 22 + - SUM( DISTINCT + - 79 ) * + + 79 * - - 78 + NULLIF ( + 59, COUNT( * ) ) * COUNT( * ) * 96
----
492414

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL 59 + - ( + 47 ) + - 82 + - - 22 + - SUM ( DISTINCT + - 79 ) * + + 79 * - - 78 + NULLIF ( + 59, COUNT ( * ) ) * COUNT ( * ) * 96
----
492414

query I rowsort
SELECT ALL - - COALESCE ( + 43, + 63 ) AS col1
----
43

query I rowsort
SELECT 50 * 82
----
4100

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

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

query I rowsort
SELECT ALL + 76 + + + 42 AS col1
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2239
SELECT + - CASE + 69 WHEN - COUNT( * ) THEN SUM( ALL 82 ) + + 75 + + - COUNT( * ) + CASE + - 92 WHEN - 20 THEN + CAST( COUNT( + + 82 ) AS SIGNED ) WHEN - 16 THEN NULL END * - 48 * + - 98 * - 17 + 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT + - CASE + 69 WHEN - COUNT ( * ) THEN SUM ( ALL 82 ) + + 75 + + - COUNT ( * ) + CASE + - 92 WHEN - 20 THEN + CAST ( COUNT ( + + 82 ) AS INTEGER ) WHEN - 16 THEN NULL END * - 48 * + - 98 * - 17 + 60 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 80 * + 98
----
7840

query II rowsort
SELECT + 1 AS col2, 51
----
1
51

query I rowsort
SELECT ALL 56 - 49 + + 52
----
59

query I rowsort
SELECT ALL 26 * 33
----
858

query II rowsort
SELECT 88, 32 + 17 * - 0 * - + 87 AS col0
----
88
32

query I rowsort
SELECT 91 - 76
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2246
SELECT ALL + 76 DIV + 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL + 76 / + 54 AS col2
----
1

query I rowsort
SELECT 81 + - 39
----
42

query I rowsort
SELECT 20 * - 15 col2
----
-300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT ALL + 86 / + - CASE + + COUNT( ALL - 66 ) WHEN - COUNT( * ) - - 65 * - + 14 / + 30 THEN NULL WHEN - CAST( NULL AS SIGNED ) * - - MIN( DISTINCT - - 36 ) THEN - - 31 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL + 86 / + - CASE + + COUNT ( ALL - 66 ) WHEN - COUNT ( * ) - - 65 * - + 14 / + 30 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * - - MIN ( DISTINCT - - 36 ) THEN - - 31 END AS col2
----
NULL

query I rowsort
SELECT ( - 4 ) + + + 76 AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT 35 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT 35 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT ALL - COUNT( * ) * CASE + NULLIF ( + + 38, + 45 ) WHEN - 47 THEN - 97 - 42 WHEN - COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL - COUNT ( * ) * CASE + NULLIF ( + + 38, + 45 ) WHEN - 47 THEN - 97 - 42 WHEN - COUNT ( * ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 6 * - 62
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT 9 + + COUNT( DISTINCT - 3 )
----
10

skipif mysql # not compatible
query I rowsort label-2254
SELECT 9 + + COUNT ( DISTINCT - 3 )
----
10

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

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

query I rowsort
SELECT + 1 + + - 5 AS col1
----
-4

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

skipif mysql # not compatible
query I rowsort label-2257
SELECT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT - - ( 72 ) + - + 75 + + + CASE COUNT( * ) WHEN - + 90 THEN 16 * + MIN( DISTINCT - 45 ) + + - MIN( 29 ) + ( + - 68 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT - - ( 72 ) + - + 75 + + + CASE COUNT ( * ) WHEN - + 90 THEN 16 * + MIN ( DISTINCT - 45 ) + + - MIN ( 29 ) + ( + - 68 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT COUNT( DISTINCT 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2259
SELECT COUNT ( DISTINCT 76 ) AS col1
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-2261
SELECT MIN ( + 63 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2262
SELECT ALL + 57 DIV - + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + 57 / - + 68 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT - 60 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-2263
SELECT - 60 / + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT DISTINCT + + 49 + - COUNT( * ) * - - 90 * + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT + + 49 + - COUNT ( * ) * - - 90 * + + COUNT ( * )
----
-41

query I rowsort
SELECT ALL 47 + 20
----
67

query I rowsort
SELECT DISTINCT - - 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT 66 + 41 + - + 92 * COALESCE ( - 82, - 41 ) * - COUNT( * ) * 5
----
-37613

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT 66 + 41 + - + 92 * COALESCE ( - 82, - 41 ) * - COUNT ( * ) * 5
----
-37613

query I rowsort
SELECT ALL - 5 + + - 68
----
-73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + MIN( ALL - + 19 ) * 75 AS col0
----
-1425

skipif mysql # not compatible
query I rowsort label-2270
SELECT + MIN ( ALL - + 19 ) * 75 AS col0
----
-1425

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2273
SELECT 80 * - 52 * + CAST( + 37 AS SIGNED ) * + 18 + - COUNT( * )
----
-2770561

skipif mysql # not compatible
query I rowsort label-2273
SELECT 80 * - 52 * + CAST ( + 37 AS INTEGER ) * + 18 + - COUNT ( * )
----
-2770561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2274
SELECT CAST( NULL AS SIGNED ) / - NULLIF ( + 62, 49 ) / 18 / NULLIF ( + + COUNT( * ), - 2 * - - 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT CAST ( NULL AS INTEGER ) / - NULLIF ( + 62, 49 ) / 18 / NULLIF ( + + COUNT ( * ), - 2 * - - 29 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT + 73 * + - 88 * - - COUNT( * ) * - + 25 + - - 95 + + 29 - ( + - 25 )
----
160749

skipif mysql # not compatible
query I rowsort label-2276
SELECT + 73 * + - 88 * - - COUNT ( * ) * - + 25 + - - 95 + + 29 - ( + - 25 )
----
160749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2277
SELECT COALESCE ( - 53, SUM( DISTINCT + + CASE 81 WHEN - + CAST( 91 AS SIGNED ) THEN + - 4 ELSE NULL END ) ) + - - ( - 50 ) + + - MIN( ALL + 22 ) * 40
----
-983

skipif mysql # not compatible
query I rowsort label-2277
SELECT COALESCE ( - 53, SUM ( DISTINCT + + CASE 81 WHEN - + CAST ( 91 AS INTEGER ) THEN + - 4 ELSE NULL END ) ) + - - ( - 50 ) + + - MIN ( ALL + 22 ) * 40
----
-983

query II rowsort
SELECT - 68 col0, + 47 + + ( + - 16 )
----
-68
31

onlyif mysql # aggregate syntax: 
query II rowsort label-2279
SELECT - COUNT( * ), - MIN( ALL - 99 ) AS col0
----
-1
99

skipif mysql # not compatible
query II rowsort label-2279
SELECT - COUNT ( * ), - MIN ( ALL - 99 ) AS col0
----
-1
99

query II rowsort
SELECT - 22 AS col0, ( 80 )
----
-22
80

query I rowsort
SELECT 26 + 55 + + 46 * + 77 col1
----
3623

query II rowsort
SELECT ALL 24 AS col1, + 0 * - - NULLIF ( 12, 82 / 77 * - + 58 ) * - - 83
----
24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT - 35 * - 48 + + - COUNT( * )
----
1679

skipif mysql # not compatible
query I rowsort label-2283
SELECT - 35 * - 48 + + - COUNT ( * )
----
1679

query II rowsort
SELECT DISTINCT 81 AS col2, 9 + - - 30 col2
----
81
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2285
SELECT ALL 33 AS col1, CAST( NULL AS SIGNED ) * + ( - 76 ) col0
----
33
NULL

skipif mysql # not compatible
query II rowsort label-2285
SELECT ALL 33 AS col1, CAST ( NULL AS INTEGER ) * + ( - 76 ) col0
----
33
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT ALL 35 AS col2, - 35 - COUNT( * ) + 93 - + - 72
----
35
129

skipif mysql # not compatible
query II rowsort label-2286
SELECT ALL 35 AS col2, - 35 - COUNT ( * ) + 93 - + - 72
----
35
129

onlyif mysql # aggregate syntax: 
query II rowsort label-2287
SELECT - MAX( + ( - ( + + 47 ) ) ), + ( - 69 ) AS col2
----
47
-69

skipif mysql # not compatible
query II rowsort label-2287
SELECT - MAX ( + ( - ( + + 47 ) ) ), + ( - 69 ) AS col2
----
47
-69

query I rowsort
SELECT + 99 * - - 73 AS col0
----
7227

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT 41 - - COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2289
SELECT 41 - - COUNT ( * ) AS col2
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-2290
SELECT + 61 AS col0, 51 DIV - - 66 AS col2
----
61
0

skipif mysql # not compatible
query II rowsort label-2290
SELECT + 61 AS col0, 51 / - - 66 AS col2
----
61
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT - 52 - - MIN( DISTINCT CAST( NULL AS SIGNED ) ) + CASE + 0 WHEN 30 THEN - COUNT( ( CASE - 88 WHEN + 3 * 24 / + 16 THEN NULL WHEN + CASE 73 WHEN 69 THEN NULL ELSE + 46 + 73 END / 65 THEN 33 ELSE NULL END ) ) * + - NULLIF ( + 47, 77 ) WHEN - 86 THEN NULL ELSE NULL END * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT - 52 - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + CASE + 0 WHEN 30 THEN - COUNT ( ( CASE - 88 WHEN + 3 * 24 / + 16 THEN NULL WHEN + CASE 73 WHEN 69 THEN NULL ELSE + 46 + 73 END / 65 THEN 33 ELSE NULL END ) ) * + - NULLIF ( + 47, 77 ) WHEN - 86 THEN NULL ELSE NULL END * - + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + 75 AS col2, 21 * - 80 col0
----
75
-1680

query I rowsort
SELECT - COALESCE ( + 64, + 10 * - 30 + + 96 ) * + + 65 AS col1
----
-4160

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

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

query II rowsort
SELECT 80 * - - 16 + - 26 * + - 46 col2, 86 * 60 * + 53 * 81
----
2476
22151880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2296
SELECT ALL + 11 + CAST( ( COUNT( * ) ) AS SIGNED ) * 80
----
91

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + 11 + CAST ( ( COUNT ( * ) ) AS INTEGER ) * 80
----
91

query I rowsort
SELECT ALL 59 * + ( - - COALESCE ( - - 42, + - 49, + + 58 ) ) * 27 * 73 + + 59 + - - ( - - 1 )
----
4884198

query I rowsort
SELECT DISTINCT - 67 * - + 66
----
4422

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT DISTINCT 17 * + + 85 * + - 17 * 26 + - 29 - + 1 * COUNT( DISTINCT - + 87 )
----
-638720

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT 17 * + + 85 * + - 17 * 26 + - 29 - + 1 * COUNT ( DISTINCT - + 87 )
----
-638720

query II rowsort
SELECT ALL + NULLIF ( 60, - 65 + - 6 ) * + 88 - - - 97, 85 AS col0
----
5183
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2301
SELECT - 51 * + CASE + COALESCE ( - + 9, - 85 * + COUNT( * ) + + 99 * 76, + COUNT( ALL - 47 ) ) WHEN + ( - 1 ) * - 49 THEN - 4 * 63 * - - COUNT( * ) WHEN - COUNT( * ) THEN + - 49 WHEN - + CAST( NULL AS DECIMAL ) * 77 * 16 THEN NULL END * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT - 51 * + CASE + COALESCE ( - + 9, - 85 * + COUNT ( * ) + + 99 * 76, + COUNT ( ALL - 47 ) ) WHEN + ( - 1 ) * - 49 THEN - 4 * 63 * - - COUNT ( * ) WHEN - COUNT ( * ) THEN + - 49 WHEN - + CAST ( NULL AS REAL ) * 77 * 16 THEN NULL END * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL + MAX( DISTINCT - + 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL + MAX ( DISTINCT - + 70 ) AS col0
----
-70

query I rowsort
SELECT + CASE 77 WHEN 94 + 99 THEN + 93 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + 51 * + 17 + + 24 * + 69 AS col1
----
789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2305
SELECT COALESCE ( - SUM( DISTINCT 68 ), - 94 + + MAX( DISTINCT - 90 ), + 54 ) DIV - - 85 + + 53 * - SUM( ALL - - 38 ) * + + 37 * - 42 + - ( - 77 ) + + COUNT( + CAST( NULL AS SIGNED ) ) + 76 - 90
----
3129819

skipif mysql # not compatible
query I rowsort label-2305
SELECT COALESCE ( - SUM ( DISTINCT 68 ), - 94 + + MAX ( DISTINCT - 90 ), + 54 ) / - - 85 + + 53 * - SUM ( ALL - - 38 ) * + + 37 * - 42 + - ( - 77 ) + + COUNT ( + CAST ( NULL AS INTEGER ) ) + 76 - 90
----
3129819

query I rowsort
SELECT DISTINCT 26 * - 68
----
-1768

onlyif mysql # aggregate syntax: 
query II rowsort label-2307
SELECT - 79 - - 45 AS col2, - SUM( - 58 ) AS col1
----
-34
58

skipif mysql # not compatible
query II rowsort label-2307
SELECT - 79 - - 45 AS col2, - SUM ( - 58 ) AS col1
----
-34
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - COALESCE ( + 87, + 38, - 53 ) * - - 71 + - COUNT( * )
----
-6178

skipif mysql # not compatible
query I rowsort label-2308
SELECT - COALESCE ( + 87, + 38, - 53 ) * - - 71 + - COUNT ( * )
----
-6178

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT SUM( + 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-2309
SELECT SUM ( + 39 ) AS col1
----
39

query II rowsort
SELECT DISTINCT + ( 99 ) AS col0, - 36
----
99
-36

query I rowsort
SELECT - 31 * ( 48 ) AS col2
----
-1488

query I rowsort
SELECT - 25 - + 81 * 2
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + 1 - - CASE - COUNT( * ) WHEN - + 14 / 33 - - COUNT( * ) THEN - COUNT( * ) WHEN + 33 / + 8 + ( + COUNT( ALL 33 ) ) THEN - + 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT + 1 - - CASE - COUNT ( * ) WHEN - + 14 / 33 - - COUNT ( * ) THEN - COUNT ( * ) WHEN + 33 / + 8 + ( + COUNT ( ALL 33 ) ) THEN - + 23 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT - NULLIF ( + CASE - 38 WHEN + COUNT( * ) * - 1 THEN NULL WHEN + COUNT( * ) - 67 THEN 26 / + - 0 + + 42 END, 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT - NULLIF ( + CASE - 38 WHEN + COUNT ( * ) * - 1 THEN NULL WHEN + COUNT ( * ) - 67 THEN 26 / + - 0 + + 42 END, 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2315
SELECT + COUNT( * ) + + + 0, 55 AS col0
----
1
55

skipif mysql # not compatible
query II rowsort label-2315
SELECT + COUNT ( * ) + + + 0, 55 AS col0
----
1
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2316
SELECT + + 96 - - CAST( NULL AS DECIMAL ) + + + 21 / 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT + + 96 - - CAST ( NULL AS REAL ) + + + 21 / 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL + COUNT( 12 ) * - 84
----
-84

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + COUNT ( 12 ) * - 84
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2318
SELECT ALL MIN( ALL + + 37 ) AS col2, 93 DIV - ( + 34 ) AS col2
----
37
-2

skipif mysql # not compatible
query II rowsort label-2318
SELECT ALL MIN ( ALL + + 37 ) AS col2, 93 / - ( + 34 ) AS col2
----
37
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2319
SELECT + 50 + + 3 + 26 + - 80 + COALESCE ( 90, + + 78 + COALESCE ( + - 3, + - 43 * + 4 * - COUNT( * ) * - 81 + - COUNT( * ) + 97 * 17 ) + - + ( + 27 ) + 29 * + 18, + - 51 ) DIV 4 + - COUNT( * ) + + 67 * - 19 * 91 AS col0
----
-115823

skipif mysql # not compatible
query I rowsort label-2319
SELECT + 50 + + 3 + 26 + - 80 + COALESCE ( 90, + + 78 + COALESCE ( + - 3, + - 43 * + 4 * - COUNT ( * ) * - 81 + - COUNT ( * ) + 97 * 17 ) + - + ( + 27 ) + 29 * + 18, + - 51 ) / 4 + - COUNT ( * ) + + 67 * - 19 * 91 AS col0
----
-115823

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2320
SELECT - NULLIF ( 78, - - 48 * - CAST( NULL AS DECIMAL ) + + - ( 51 ) * + 60 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2320
SELECT - NULLIF ( 78, - - 48 * - CAST ( NULL AS REAL ) + + - ( 51 ) * + 60 ) AS col2
----
-78

query I rowsort
SELECT ALL + 40 + + - 6 AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2322
SELECT + + ( - 90 ) * MIN( DISTINCT + + 78 ) + + COUNT( * ) AS col1, 44
----
-7019
44

skipif mysql # not compatible
query II rowsort label-2322
SELECT + + ( - 90 ) * MIN ( DISTINCT + + 78 ) + + COUNT ( * ) AS col1, 44
----
-7019
44

query I rowsort
SELECT ALL 42 * - ( - - 50 ) AS col0
----
-2100

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

skipif mysql # not compatible
query I rowsort label-2324
SELECT + - 60 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2325
SELECT ALL - - 32 DIV + MAX( - + 85 ) - - 33
----
33

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL - - 32 / + MAX ( - + 85 ) - - 33
----
33

query II rowsort
SELECT + ( + ( + - 10 ) ) + - 63 - - 1 AS col2, + 43
----
-72
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL 69 - + MIN( ALL + 17 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL 69 - + MIN ( ALL + 17 ) AS col2
----
52

query I rowsort
SELECT + 13 + + 75 + + - 27 AS col1
----
61

query I rowsort
SELECT + + 83 + - 91 + + 19 * + 94
----
1778

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT + 66 DIV 51 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2330
SELECT + 66 / 51 AS col0
----
1

query I rowsort
SELECT ALL - 14 * 12 AS col2
----
-168

query I rowsort
SELECT + - ( ( 70 ) ) * - 33
----
2310

query I rowsort
SELECT + - NULLIF ( 11, 97 ) AS col2
----
-11

query I rowsort
SELECT DISTINCT - + 90 * + 20 + - 23 * - 39 AS col1
----
-903

query I rowsort
SELECT ALL + 22 * - 56
----
-1232

query I rowsort
SELECT ALL - 64 * 77 AS col2
----
-4928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2337
SELECT + - 59 DIV SUM( - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT + - 59 / SUM ( - 85 )
----
0

query I rowsort
SELECT ALL 71 * - 13
----
-923

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT + MAX( + + 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT + MAX ( + + 52 ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2340
SELECT ALL + CAST( + ( + 58 ) AS SIGNED ) AS col2, 63 col2
----
58
63

skipif mysql # not compatible
query II rowsort label-2340
SELECT ALL + CAST ( + ( + 58 ) AS INTEGER ) AS col2, 63 col2
----
58
63

query I rowsort
SELECT - 91 + + 94
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ( COALESCE ( 21, - COUNT( * ) * + 29 - + 38 ) )
----
21

skipif mysql # not compatible
query I rowsort label-2342
SELECT ( COALESCE ( 21, - COUNT ( * ) * + 29 - + 38 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + 65 * COUNT( * ) + + 82
----
147

skipif mysql # not compatible
query I rowsort label-2343
SELECT + 65 * COUNT ( * ) + + 82
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2344
SELECT ( - COALESCE ( 66, + 7 * + + CAST( + - MIN( ALL - + 81 ) AS SIGNED ) ) )
----
-66

skipif mysql # not compatible
query I rowsort label-2344
SELECT ( - COALESCE ( 66, + 7 * + + CAST ( + - MIN ( ALL - + 81 ) AS INTEGER ) ) )
----
-66

query I rowsort
SELECT - 44 * 83
----
-3652

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ( - MIN( ALL - 93 ) )
----
93

skipif mysql # not compatible
query I rowsort label-2347
SELECT ( - MIN ( ALL - 93 ) )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2348
SELECT - 90 * + 54 + MIN( DISTINCT - - 63 ) + + - MAX( DISTINCT + - 58 ) / ( COUNT( * ) ) + + CAST( NULL AS SIGNED ) + CASE + 20 WHEN - 21 - - 72 THEN 64 ELSE + - 55 END * - - 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT - 90 * + 54 + MIN ( DISTINCT - - 63 ) + + - MAX ( DISTINCT + - 58 ) / ( COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) + CASE + 20 WHEN - 21 - - 72 THEN 64 ELSE + - 55 END * - - 77 col0
----
NULL

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

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

query I rowsort
SELECT ALL - 77 * 7 + - 66
----
-605

query I rowsort
SELECT 18 * 68 + + 66
----
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT NULLIF ( + 94, + - SUM( + 31 ) + + - COUNT( * ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2352
SELECT NULLIF ( + 94, + - SUM ( + 31 ) + + - COUNT ( * ) ) AS col1
----
94

query I rowsort
SELECT ALL 20 * - - 0 * 62 + + 12 * + 41 AS col0
----
492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2354
SELECT - 78 + - 59 + - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2354
SELECT - 78 + - 59 + - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - MAX( - 68 ) + + 8 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2355
SELECT - MAX ( - 68 ) + + 8 AS col1
----
76

query II rowsort
SELECT - 87, 72 col1
----
-87
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2357
SELECT COALESCE ( 66, - SUM( - 79 ) * - 3 * - - 14 * + 74 + + 76 ), - 68 - 93 AS col1
----
66
-161

skipif mysql # not compatible
query II rowsort label-2357
SELECT COALESCE ( 66, - SUM ( - 79 ) * - 3 * - - 14 * + 74 + + 76 ), - 68 - 93 AS col1
----
66
-161

query I rowsort
SELECT DISTINCT + ( - + 71 ) * 39
----
-2769

query I rowsort
SELECT ALL - 1 * + - 3 + + 80
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2360
SELECT - 42 DIV + - 57
----
0

skipif mysql # not compatible
query I rowsort label-2360
SELECT - 42 / + - 57
----
0

query I rowsort
SELECT + 48 + - - 38 * - 21 col2
----
-750

query I rowsort
SELECT - + 55 * + 74
----
-4070

query I rowsort
SELECT + 63 * 98 * + 96 * + 51 * 30 + + 52
----
906837172

query I rowsort
SELECT ALL + 80 * + 55 + - ( + - 92 ) + - 89
----
4403

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL 87 + + COUNT( * ) * - 21 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL 87 + + COUNT ( * ) * - 21 AS col2
----
66

query I rowsort
SELECT - 56 * + 40
----
-2240

query II rowsort
SELECT - 97 AS col2, + 17 AS col0
----
-97
17

query I rowsort
SELECT + 36 - + 59 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-2369
SELECT + 6 * + ( - 34 ) AS col2, - COUNT( * ) + + 31 + COUNT( * ) + + + 6
----
-204
37

skipif mysql # not compatible
query II rowsort label-2369
SELECT + 6 * + ( - 34 ) AS col2, - COUNT ( * ) + + 31 + COUNT ( * ) + + + 6
----
-204
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2370
SELECT ALL SUM( DISTINCT - ( - 36 ) ) AS col0, MAX( ALL + 45 ) + + 77
----
36
122

skipif mysql # not compatible
query II rowsort label-2370
SELECT ALL SUM ( DISTINCT - ( - 36 ) ) AS col0, MAX ( ALL + 45 ) + + 77
----
36
122

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2371
SELECT COALESCE ( 5, COUNT( * ) - - 56 / + 27 * + + 84 ) - CAST( NULL AS DECIMAL ) + - + 28 / - + COUNT( + + 77 ) * - - ( + + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT COALESCE ( 5, COUNT ( * ) - - 56 / + 27 * + + 84 ) - CAST ( NULL AS REAL ) + - + 28 / - + COUNT ( + + 77 ) * - - ( + + 66 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT - CAST( - 15 AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2372
SELECT - CAST ( - 15 AS INTEGER ) AS col1
----
15

query I rowsort
SELECT - COALESCE ( - 92, + + 94 )
----
92

query I rowsort
SELECT ALL 3 * + + 61 AS col0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL - - 71 * COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL - - 71 * COUNT ( * ) AS col2
----
71

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2377
SELECT DISTINCT - COUNT( * ) AS col1, 44 DIV NULLIF ( + - 11, + ( - 46 ) + + 17 - - COUNT( * ) )
----
-1
-4

skipif mysql # not compatible
query II rowsort label-2377
SELECT DISTINCT - COUNT ( * ) AS col1, 44 / NULLIF ( + - 11, + ( - 46 ) + + 17 - - COUNT ( * ) )
----
-1
-4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2379
SELECT + 61 * + COUNT( * ) + 25 + + 65 + - + CAST( + ( 41 ) AS SIGNED ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-2379
SELECT + 61 * + COUNT ( * ) + 25 + + 65 + - + CAST ( + ( 41 ) AS INTEGER ) AS col0
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2380
SELECT ALL MIN( DISTINCT + 89 ) DIV - 73
----
-1

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL MIN ( DISTINCT + 89 ) / - 73
----
-1

query I rowsort
SELECT 94 + - 81 AS col2
----
13

query II rowsort
SELECT 22 * - 1 + - 82 * + 82 AS col1, 95 AS col2
----
-6746
95

query II rowsort
SELECT DISTINCT 44 + - + 56, 14 AS col0
----
-12
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2384
SELECT ALL NULLIF ( COALESCE ( + NULLIF ( 5, + COUNT( * ) ), + 49 DIV - + 17 * + - 83 * - - COUNT( * ) * + + 26 * + 26 * + COUNT( * ) ), - 60 + 64 DIV - - 88 ) * - + 85 AS col2
----
-425

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL NULLIF ( COALESCE ( + NULLIF ( 5, + COUNT ( * ) ), + 49 / - + 17 * + - 83 * - - COUNT ( * ) * + + 26 * + 26 * + COUNT ( * ) ), - 60 + 64 / - - 88 ) * - + 85 AS col2
----
-425

onlyif mysql # aggregate syntax: 
query II rowsort label-2385
SELECT ALL COUNT( * ) + 86, + 59 AS col2
----
87
59

skipif mysql # not compatible
query II rowsort label-2385
SELECT ALL COUNT ( * ) + 86, + 59 AS col2
----
87
59

query I rowsort
SELECT ALL - ( 59 ) + - 99 * - - 14 + 89
----
-1356

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2388
SELECT ALL - COALESCE ( - CAST( NULL AS SIGNED ), 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL - COALESCE ( - CAST ( NULL AS INTEGER ), 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT 15 - - + 25 + + + 7 - + 31 + - 32 * 54 * COUNT( * ) AS col0
----
-1712

skipif mysql # not compatible
query I rowsort label-2389
SELECT 15 - - + 25 + + + 7 - + 31 + - 32 * 54 * COUNT ( * ) AS col0
----
-1712

query II rowsort
SELECT 70 * + 27 AS col1, + 18 col0
----
1890
18

query I rowsort
SELECT ALL - 24 - + 70 + + - 74 AS col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT 41 * 3 * + MIN( DISTINCT - 7 )
----
-861

skipif mysql # not compatible
query I rowsort label-2392
SELECT 41 * 3 * + MIN ( DISTINCT - 7 )
----
-861

query I rowsort
SELECT DISTINCT - + 97 AS col2
----
-97

query I rowsort
SELECT - 45 * 65 AS col2
----
-2925

query I rowsort
SELECT ALL + 24 * + 85 AS col1
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT ALL - CASE - COUNT( * ) WHEN ( + ( ( - 42 ) ) ) THEN NULL WHEN + ( + COUNT( 44 ) ) THEN COUNT( ALL - + 30 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL - CASE - COUNT ( * ) WHEN ( + ( ( - 42 ) ) ) THEN NULL WHEN + ( + COUNT ( 44 ) ) THEN COUNT ( ALL - + 30 ) END AS col2
----
NULL

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

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

query I rowsort
SELECT + 12 * + - 46
----
-552

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2400
SELECT 86 DIV + + 73 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2400
SELECT 86 / + + 73 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT - NULLIF ( 78, + ( - MIN( DISTINCT + 54 ) ) )
----
-78

skipif mysql # not compatible
query I rowsort label-2401
SELECT - NULLIF ( 78, + ( - MIN ( DISTINCT + 54 ) ) )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT + 34 + - CAST( NULL AS SIGNED ) * - 42 - + 23 - CASE + + 23 WHEN MIN( ALL - 4 ) THEN - 86 WHEN - 41 THEN NULL END * + + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT + 34 + - CAST ( NULL AS INTEGER ) * - 42 - + 23 - CASE + + 23 WHEN MIN ( ALL - 4 ) THEN - 86 WHEN - 41 THEN NULL END * + + 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT - 4 - - COUNT( * ) * + 68 * + COUNT( ALL - 8 ) + - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT - 4 - - COUNT ( * ) * + 68 * + COUNT ( ALL - 8 ) + - 64 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT - ( 56 ) - 5 + - ( - + 59 ) - + - COUNT( * ) + + - 45 * + + 90
----
-4051

skipif mysql # not compatible
query I rowsort label-2404
SELECT - ( 56 ) - 5 + - ( - + 59 ) - + - COUNT ( * ) + + - 45 * + + 90
----
-4051

onlyif mysql # DIV for integer division: 
query I rowsort label-2405
SELECT 65 DIV + 81 * 48
----
0

skipif mysql # not compatible
query I rowsort label-2405
SELECT 65 / + 81 * 48
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2406
SELECT ALL + 86 * 51 DIV COALESCE ( - 35, - - 79 * + 32 * + - COUNT( * ) + 57, - 0 * - 22 ) * - 97 + + NULLIF ( + - 69, + 75 ) AS col1
----
12056

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + 86 * 51 / COALESCE ( - 35, - - 79 * + 32 * + - COUNT ( * ) + 57, - 0 * - 22 ) * - 97 + + NULLIF ( + - 69, + 75 ) AS col1
----
12056

query I rowsort
SELECT ALL - 28 * - - 27 AS col2
----
-756

query I rowsort
SELECT ALL ( 20 ) AS col2
----
20

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

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

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

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

query I rowsort
SELECT - + ( NULLIF ( + 44, - + 86 * + + 15 / - 59 * + 85 ) ) AS col1
----
-44

query I rowsort
SELECT ALL - ( + 99 ) + - - 14 * - ( + 52 ) AS col1
----
-827

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT MIN( ALL ( 13 ) ) + - 29 * - 76 AS col2
----
2217

skipif mysql # not compatible
query I rowsort label-2413
SELECT MIN ( ALL ( 13 ) ) + - 29 * - 76 AS col2
----
2217

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - 85, - 73 ) * + 8 + - 97
----
-777

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2417
SELECT ALL + 39 * - + CAST( NULL AS SIGNED ) / 24 + - - ( + 93 ), - 66 AS col1
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-2417
SELECT ALL + 39 * - + CAST ( NULL AS INTEGER ) / 24 + - - ( + 93 ), - 66 AS col1
----
NULL
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2418
SELECT - 82 DIV - - 30 + + COUNT( * ), 46 + - 80 * - - ( - - NULLIF ( - 49, + 7 * - + ( CAST( NULL AS SIGNED ) ) DIV + + NULLIF ( + NULLIF ( + 8, - 99 ), 80 ) + - 60 ) ) AS col1
----
-1
3966

skipif mysql # not compatible
query II rowsort label-2418
SELECT - 82 / - - 30 + + COUNT ( * ), 46 + - 80 * - - ( - - NULLIF ( - 49, + 7 * - + ( CAST ( NULL AS INTEGER ) ) / + + NULLIF ( + NULLIF ( + 8, - 99 ), 80 ) + - 60 ) ) AS col1
----
-1
3966

query I rowsort
SELECT 35 + - 7
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT + MIN( DISTINCT - - 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2420
SELECT + MIN ( DISTINCT - - 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT MAX( - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-2421
SELECT MAX ( - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT 25 + + NULLIF ( - 37, - 47 + - MAX( ALL - + 32 ) + - 86 )
----
-12

skipif mysql # not compatible
query I rowsort label-2422
SELECT 25 + + NULLIF ( - 37, - 47 + - MAX ( ALL - + 32 ) + - 86 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2423
SELECT + 80 * 47 + CAST( - COALESCE ( 44, - 26 / - 89 + + COUNT( ALL + 99 + - 65 ) ) - MAX( DISTINCT 23 ) AS SIGNED )
----
3693

skipif mysql # not compatible
query I rowsort label-2423
SELECT + 80 * 47 + CAST ( - COALESCE ( 44, - 26 / - 89 + + COUNT ( ALL + 99 + - 65 ) ) - MAX ( DISTINCT 23 ) AS INTEGER )
----
3693

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2424
SELECT ALL CASE COUNT( * ) WHEN - 15 THEN - CAST( 74 AS DECIMAL ) - - 33 WHEN 60 THEN 30 + 16 / 8 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL CASE COUNT ( * ) WHEN - 15 THEN - CAST ( 74 AS REAL ) - - 33 WHEN 60 THEN 30 + 16 / 8 END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2425
SELECT + SUM( DISTINCT ( - 1 ) ) + - 25 * + COALESCE ( - 22 * 7 - ( + 57 + COUNT( * ) ) * COUNT( * ), 50 DIV COUNT( * ) + 37 )
----
5299

skipif mysql # not compatible
query I rowsort label-2425
SELECT + SUM ( DISTINCT ( - 1 ) ) + - 25 * + COALESCE ( - 22 * 7 - ( + 57 + COUNT ( * ) ) * COUNT ( * ), 50 / COUNT ( * ) + 37 )
----
5299

query I rowsort
SELECT DISTINCT 88 * 52
----
4576

query I rowsort
SELECT - NULLIF ( 0, 41 ) * - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT - ( - 1 ) + CASE 27 WHEN 49 * COUNT( * ) THEN NULL ELSE - SUM( - COALESCE ( + 91, ( 43 ) ) ) END
----
92

skipif mysql # not compatible
query I rowsort label-2428
SELECT - ( - 1 ) + CASE 27 WHEN 49 * COUNT ( * ) THEN NULL ELSE - SUM ( - COALESCE ( + 91, ( 43 ) ) ) END
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL MAX( CASE - 65 WHEN 55 * 25 THEN NULL ELSE 38 + 30 END ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL MAX ( CASE - 65 WHEN 55 * 25 THEN NULL ELSE 38 + 30 END ) AS col0
----
68

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

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

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT MIN ( DISTINCT 75 )
----
75

query I rowsort
SELECT DISTINCT + 58 * - ( + 2 * 15 ) col1
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL - COUNT( * ) + - 81 * 53 AS col1
----
-4294

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - COUNT ( * ) + - 81 * 53 AS col1
----
-4294

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT DISTINCT + 49 * ( - COUNT( * ) ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT + 49 * ( - COUNT ( * ) ) col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT DISTINCT 39 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT 39 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 51 * 72 AS col1
----
-3672

query I rowsort
SELECT ALL - 4 + + 98 AS col0
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT ALL CASE 42 WHEN COUNT( * ) / 37 THEN + MIN( + 51 ) * 98 + COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL CASE 42 WHEN COUNT ( * ) / 37 THEN + MIN ( + 51 ) * 98 + COUNT ( * ) ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT - COUNT( * ) + 5 * CASE - 25 * 67 + + 20 WHEN 48 THEN NULL ELSE - 44 END AS col0
----
-221

skipif mysql # not compatible
query I rowsort label-2440
SELECT - COUNT ( * ) + 5 * CASE - 25 * 67 + + 20 WHEN 48 THEN NULL ELSE - 44 END AS col0
----
-221

query I rowsort
SELECT DISTINCT ( 92 ) col1
----
92

query I rowsort
SELECT ALL + 59 + 10 * 58 AS col1
----
639

query I rowsort
SELECT DISTINCT + 86 + 99
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT - 2 DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT - 2 / - 93 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT - 78 DIV 95 - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2445
SELECT - 78 / 95 - 19 AS col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT DISTINCT - 14 DIV + ( 84 * 25 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT - 14 / + ( 84 * 25 ) AS col0
----
0

query I rowsort
SELECT - 37 - 33 * 72 AS col1
----
-2413

query I rowsort
SELECT ( 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL - 35 * + MAX( ALL - ( - 72 ) ) - 11
----
-2531

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL - 35 * + MAX ( ALL - ( - 72 ) ) - 11
----
-2531

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT - 15 DIV 34 + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2450
SELECT - 15 / 34 + 25 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT + COALESCE ( ( 95 ), - COUNT( * ) * + 89 + 98 ) + + 41
----
136

skipif mysql # not compatible
query I rowsort label-2451
SELECT + COALESCE ( ( 95 ), - COUNT ( * ) * + 89 + 98 ) + + 41
----
136

query I rowsort
SELECT DISTINCT + 2 * 23 - + 49
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + COALESCE ( - MAX( - 93 ), - 47 )
----
93

skipif mysql # not compatible
query I rowsort label-2453
SELECT + COALESCE ( - MAX ( - 93 ), - 47 )
----
93

query I rowsort
SELECT ALL 7 * + 39 AS col1
----
273

query I rowsort
SELECT DISTINCT + 24 * 79
----
1896

query I rowsort
SELECT + 76 * - 90 + + 40
----
-6800

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL + COALESCE ( + COUNT( * ), + CASE + 64 WHEN 32 THEN ( - 18 ) WHEN - ( + 48 ) THEN 3 ELSE NULL END ) * + 43
----
43

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL + COALESCE ( + COUNT ( * ), + CASE + 64 WHEN 32 THEN ( - 18 ) WHEN - ( + 48 ) THEN 3 ELSE NULL END ) * + 43
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT - 76 - 42 * - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-2459
SELECT - 76 - 42 * - COUNT ( * )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT + + COALESCE ( CAST( NULL AS SIGNED ), 64 )
----
64

skipif mysql # not compatible
query I rowsort label-2460
SELECT + + COALESCE ( CAST ( NULL AS INTEGER ), 64 )
----
64

query I rowsort
SELECT + 63 * + 79
----
4977

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT 41 * - 90 + - CASE - ( ( 19 ) ) WHEN 72 THEN - 41 + COUNT( * ) WHEN 56 THEN ( NULLIF ( COALESCE ( 71, 70 * - COUNT( * ), 27 ), - 4 ) ) + 66 END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT 41 * - 90 + - CASE - ( ( 19 ) ) WHEN 72 THEN - 41 + COUNT ( * ) WHEN 56 THEN ( NULLIF ( COALESCE ( 71, 70 * - COUNT ( * ), 27 ), - 4 ) ) + 66 END * - COUNT ( * ) AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT ALL + 30 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL + 30 / + 50
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT + - 92 DIV + 61 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2466
SELECT + - 92 / + 61 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + COUNT( * ) - 22 * - COUNT( * ) col2
----
23

skipif mysql # not compatible
query I rowsort label-2467
SELECT + COUNT ( * ) - 22 * - COUNT ( * ) col2
----
23

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2468
SELECT ALL CAST( NULL AS SIGNED ) / + CAST( + COALESCE ( 88, 67 ) * + 24 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL CAST ( NULL AS INTEGER ) / + CAST ( + COALESCE ( 88, 67 ) * + 24 AS REAL )
----
NULL

query I rowsort
SELECT + 52 + 36
----
88

query I rowsort
SELECT DISTINCT - 36 * 96 AS col1
----
-3456

query I rowsort
SELECT + 79 * - 35
----
-2765

query I rowsort
SELECT ALL 49 + 37
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + COUNT( * ) + + 4 * SUM( DISTINCT + 77 ) col1
----
309

skipif mysql # not compatible
query I rowsort label-2473
SELECT + COUNT ( * ) + + 4 * SUM ( DISTINCT + 77 ) col1
----
309

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT - - 59 - - COALESCE ( 42, + 90 DIV 81 + + 15 * - 94 ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-2474
SELECT - - 59 - - COALESCE ( 42, + 90 / 81 + + 15 * - 94 ) AS col2
----
101

query I rowsort
SELECT - COALESCE ( - 37, 92 + - 19, + 33 )
----
37

query I rowsort
SELECT ALL + 84 + - 78
----
6

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

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

query I rowsort
SELECT ALL - ( + 86 ) + 65 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT + 85 + + CASE - 37 WHEN + 94 * - 84 - SUM( + 27 + + 12 ) THEN + SUM( ALL - 2 ) + - 69 WHEN 36 + - 93 THEN 27 + 10 END * - SUM( DISTINCT 85 / - 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT + 85 + + CASE - 37 WHEN + 94 * - 84 - SUM ( + 27 + + 12 ) THEN + SUM ( ALL - 2 ) + - 69 WHEN 36 + - 93 THEN 27 + 10 END * - SUM ( DISTINCT 85 / - 72 ) AS col2
----
NULL

query I rowsort
SELECT - 61 + + + 49
----
-12

query I rowsort
SELECT ALL - 0 * 22 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2482
SELECT DISTINCT 85 DIV - 24 * - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT 85 / - 24 * - COUNT ( * )
----
3

query I rowsort
SELECT + 26 * - 30
----
-780

query I rowsort
SELECT - 31 * - 97 AS col0
----
3007

query I rowsort
SELECT 64 + + - 81 col2
----
-17

query I rowsort
SELECT - 85 * - 82 + 78
----
7048

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL - MAX( DISTINCT 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - MAX ( DISTINCT 69 )
----
-69

query I rowsort
SELECT ALL - ( - - ( NULLIF ( + 55, - ( + 67 ) ) ) ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT 54 * + - MAX( + 94 ) * COUNT( * ) AS col1
----
-5076

skipif mysql # not compatible
query I rowsort label-2489
SELECT 54 * + - MAX ( + 94 ) * COUNT ( * ) AS col1
----
-5076

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ALL - CASE + 30 WHEN 0 + ( COUNT( * ) ) * - 96 THEN COUNT( * ) ELSE 7 END
----
-7

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL - CASE + 30 WHEN 0 + ( COUNT ( * ) ) * - 96 THEN COUNT ( * ) ELSE 7 END
----
-7

query I rowsort
SELECT 60 + - ( - 78 ) * 54
----
4272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2492
SELECT ALL - 38 DIV MAX( 60 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL - 38 / MAX ( 60 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT 70 + ( MAX( DISTINCT 60 ) ) AS col0
----
130

skipif mysql # not compatible
query I rowsort label-2493
SELECT 70 + ( MAX ( DISTINCT 60 ) ) AS col0
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-2494
SELECT ALL - 65 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL - 65 / + 80
----
0

query I rowsort
SELECT 44 * + 89 AS col2
----
3916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT + - 77 * + 62 + + CAST( - ( - COUNT( * ) ) AS SIGNED ) + + COUNT( * )
----
-4772

skipif mysql # not compatible
query I rowsort label-2496
SELECT + - 77 * + 62 + + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) + + COUNT ( * )
----
-4772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2497
SELECT + COUNT( * ) DIV + - 96 * CASE + 69 WHEN 43 THEN NULL WHEN 24 * + 18 + - 33 DIV 71 THEN - 3 WHEN - 41 THEN NULL ELSE COUNT( * ) * 79 - + COALESCE ( CASE - AVG ( DISTINCT ( + 60 ) ) WHEN + NULLIF ( + ( 74 ), 61 ) THEN - NULLIF ( MIN( DISTINCT - 38 ), 77 + COUNT( * ) ) END, + 40 - - 80 ) DIV 79 END - 44 * 71 + 5 AS col2
----
-3119

skipif mysql # not compatible
query I rowsort label-2497
SELECT + COUNT ( * ) / + - 96 * CASE + 69 WHEN 43 THEN NULL WHEN 24 * + 18 + - 33 / 71 THEN - 3 WHEN - 41 THEN NULL ELSE COUNT ( * ) * 79 - + COALESCE ( CASE - AVG ( DISTINCT ( + 60 ) ) WHEN + NULLIF ( + ( 74 ), 61 ) THEN - NULLIF ( MIN ( DISTINCT - 38 ), 77 + COUNT ( * ) ) END, + 40 - - 80 ) / 79 END - 44 * 71 + 5 AS col2
----
-3119

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT + - 6 * COUNT( * ) * CASE 33 WHEN 25 + + 59 THEN - COUNT( * ) ELSE + 39 * - 99 END + + 70
----
23236

skipif mysql # not compatible
query I rowsort label-2498
SELECT + - 6 * COUNT ( * ) * CASE 33 WHEN 25 + + 59 THEN - COUNT ( * ) ELSE + 39 * - 99 END + + 70
----
23236

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT ALL - COUNT( * ) * - + MIN( DISTINCT 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - COUNT ( * ) * - + MIN ( DISTINCT 15 ) AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2500
SELECT COUNT( * ) * 65 * CAST( 54 AS SIGNED ) + + 37
----
3547

skipif mysql # not compatible
query I rowsort label-2500
SELECT COUNT ( * ) * 65 * CAST ( 54 AS INTEGER ) + + 37
----
3547

query I rowsort
SELECT ALL - + ( + 80 ) + 22 AS col2
----
-58

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

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

query I rowsort
SELECT ALL 53 + 6
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL - + SUM( + + 77 ) * + MAX( 69 * - 11 ) AS col1
----
58443

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL - + SUM ( + + 77 ) * + MAX ( 69 * - 11 ) AS col1
----
58443

onlyif mysql # DIV for integer division: 
query I rowsort label-2505
SELECT + 45 * - - 85 + 61 DIV 88 col2
----
3825

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 45 * - - 85 + 61 / 88 col2
----
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL 80 + - MIN( 59 ) + + 25 * 15 AS col1
----
396

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL 80 + - MIN ( 59 ) + + 25 * 15 AS col1
----
396

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT + + COUNT( + 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2508
SELECT + + COUNT ( + 99 ) AS col1
----
1

query I rowsort
SELECT + 73 + + + 69 col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT - COUNT( 73 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2510
SELECT - COUNT ( 73 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT ALL + COALESCE ( + 37, 67 * COALESCE ( + 17, - 13, AVG ( 93 ) + - 57 ), - 8 DIV + 36 ) DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + COALESCE ( + 37, 67 * COALESCE ( + 17, - 13, AVG ( 93 ) + - 57 ), - 8 / + 36 ) / 63
----
0

query I rowsort
SELECT ALL - 14 + - + 81 * 61
----
-4955

query I rowsort
SELECT DISTINCT + 55 + - 17
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT DISTINCT COUNT( * ) * + ( + 55 ) * - 71 AS col1
----
-3905

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT COUNT ( * ) * + ( + 55 ) * - 71 AS col1
----
-3905

onlyif mysql # DIV for integer division: 
query I rowsort label-2515
SELECT ALL 50 DIV + 31
----
1

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL 50 / + 31
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT COUNT( * ) / - CASE - 33 WHEN + COUNT( * ) / - 21 THEN - 58 ELSE NULL END * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT COUNT ( * ) / - CASE - 33 WHEN + COUNT ( * ) / - 21 THEN - 58 ELSE NULL END * + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2517
SELECT DISTINCT COUNT( DISTINCT + 37 ) * + + 40 DIV 93 + 53 * 10 AS col1
----
530

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT COUNT ( DISTINCT + 37 ) * + + 40 / 93 + 53 * 10 AS col1
----
530

query I rowsort
SELECT 9 * - + 4
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT COUNT( * ) - + 19
----
-18

skipif mysql # not compatible
query I rowsort label-2519
SELECT COUNT ( * ) - + 19
----
-18

query II rowsort
SELECT 96 AS col0, - 92 * - 45 - + 1 AS col1
----
96
4139

query I rowsort
SELECT 28 + - 58 + 39
----
9

query I rowsort
SELECT 64 * 38 AS col2
----
2432

query I rowsort
SELECT 35 * - 29
----
-1015

query II rowsort
SELECT ALL 66 col2, + 92 * - 6 * 85 col0
----
66
-46920

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2525
SELECT DISTINCT 18 AS col1, + 19 + - CAST( NULL AS DECIMAL ) * + COALESCE ( - 2 * - 89 - + COUNT( * ) / - COUNT( DISTINCT 83 + 56 ), 47 )
----
18
NULL

skipif mysql # not compatible
query II rowsort label-2525
SELECT DISTINCT 18 AS col1, + 19 + - CAST ( NULL AS REAL ) * + COALESCE ( - 2 * - 89 - + COUNT ( * ) / - COUNT ( DISTINCT 83 + 56 ), 47 )
----
18
NULL

query I rowsort
SELECT 54 * - + 22 col2
----
-1188

onlyif mysql # aggregate syntax: 
query II rowsort label-2527
SELECT DISTINCT 75 AS col0, 14 * - - COUNT( * )
----
75
14

skipif mysql # not compatible
query II rowsort label-2527
SELECT DISTINCT 75 AS col0, 14 * - - COUNT ( * )
----
75
14

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

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - COALESCE ( + 41, + COUNT ( * ) )
----
-41

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

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

query II rowsort
SELECT - 60, - 3 AS col0
----
-60
-3

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

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

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - 14 + COUNT ( * ) / + - 77 col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT DISTINCT - COALESCE ( + 73, - 76 * + COUNT( * ) ) * 25 AS col2
----
-1825

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT - COALESCE ( + 73, - 76 * + COUNT ( * ) ) * 25 AS col2
----
-1825

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT DISTINCT + + COUNT( * ) + - 51 + - 87 * + 83 col1
----
-7271

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT + + COUNT ( * ) + - 51 + - 87 * + 83 col1
----
-7271

query II rowsort
SELECT ALL - 44 AS col0, - 79 AS col2
----
-44
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT 65 + + COUNT( * ) * - NULLIF ( COUNT( * ), + MAX( + 25 ) + - COUNT( ALL 13 ) ) * 23 + 63 col1
----
105

skipif mysql # not compatible
query I rowsort label-2536
SELECT 65 + + COUNT ( * ) * - NULLIF ( COUNT ( * ), + MAX ( + 25 ) + - COUNT ( ALL 13 ) ) * 23 + 63 col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT + COALESCE ( 76, - COUNT( DISTINCT ( - 66 ) ) * 12 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2537
SELECT + COALESCE ( 76, - COUNT ( DISTINCT ( - 66 ) ) * 12 ) AS col1
----
76

query I rowsort
SELECT + 87 + - 56
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT 23 * + COUNT( * ) + 62 - 99 * + 66 AS col0
----
-6449

skipif mysql # not compatible
query I rowsort label-2540
SELECT 23 * + COUNT ( * ) + 62 - 99 * + 66 AS col0
----
-6449

query I rowsort
SELECT - 70 * + 65
----
-4550

query I rowsort
SELECT 3 + 29 AS col2
----
32

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

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL + + 22 - + ( COUNT ( * ) ) AS col2
----
21

query I rowsort
SELECT NULLIF ( - 66, + - 54 * 94 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT + COUNT( * ) - - + MIN( - - 72 ) + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-2545
SELECT + COUNT ( * ) - - + MIN ( - - 72 ) + + COUNT ( * )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2546
SELECT DISTINCT - CASE - - COALESCE ( - - 25, 96 / + 11 ) WHEN CASE - 13 WHEN - 32 * 95 + 6 THEN - 77 END THEN NULL WHEN - CAST( 24 AS SIGNED ) THEN NULL WHEN - 0 * 46 + 14 THEN 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT - CASE - - COALESCE ( - - 25, 96 / + 11 ) WHEN CASE - 13 WHEN - 32 * 95 + 6 THEN - 77 END THEN NULL WHEN - CAST ( 24 AS INTEGER ) THEN NULL WHEN - 0 * 46 + 14 THEN 31 END
----
NULL

query I rowsort
SELECT DISTINCT - + 92 * + + 57 * + 45
----
-235980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT 9 + - - ( - - 8 ) * - + NULLIF ( - 50, 6 ) + CAST( 94 AS SIGNED ) AS col0
----
503

skipif mysql # not compatible
query I rowsort label-2548
SELECT 9 + - - ( - - 8 ) * - + NULLIF ( - 50, 6 ) + CAST ( 94 AS INTEGER ) AS col0
----
503

query I rowsort
SELECT 45 * - - ( - - 89 )
----
4005

query I rowsort
SELECT ( 33 ) + - 88 col2
----
-55

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

skipif mysql # not compatible
query I rowsort label-2551
SELECT 19 + - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2552
SELECT + COUNT ( * ) - + + 83 AS col1
----
-82

query I rowsort
SELECT - 20 * 51 col0
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT - 79 + + COUNT( * ) + - 32 + - NULLIF ( 99, + 13 ) + 88
----
-121

skipif mysql # not compatible
query I rowsort label-2554
SELECT - 79 + + COUNT ( * ) + - 32 + - NULLIF ( 99, + 13 ) + 88
----
-121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2555
SELECT DISTINCT CASE COALESCE ( + 10, - CAST( NULL AS DECIMAL ) ) WHEN 70 THEN + 90 WHEN COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT CASE COALESCE ( + 10, - CAST ( NULL AS REAL ) ) WHEN 70 THEN + 90 WHEN COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2556
SELECT ALL COALESCE ( - 18, - 61, - CAST( NULL AS SIGNED ) )
----
-18

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL COALESCE ( - 18, - 61, - CAST ( NULL AS INTEGER ) )
----
-18

query II rowsort
SELECT ALL 84 * - 35, + 84 * + + 76 * - ( + 68 ) AS col0
----
-2940
-434112

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

query I rowsort
SELECT ALL 30 * ( - + 58 )
----
-1740

query I rowsort
SELECT DISTINCT 89 * - + 55 * + ( - + 83 )
----
406285

query I rowsort
SELECT ALL 24 * - - 31 AS col2
----
744

query II rowsort
SELECT + 30 + 61 AS col2, + 26 - + - 89 + 44 * - 5
----
91
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT - COALESCE ( COALESCE ( + - COALESCE ( - + 29, 44, 66 ), - 62 ), - COALESCE ( ( CAST( NULL AS SIGNED ) ), 27 ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-2563
SELECT - COALESCE ( COALESCE ( + - COALESCE ( - + 29, 44, 66 ), - 62 ), - COALESCE ( ( CAST ( NULL AS INTEGER ) ), 27 ) ) AS col1
----
-29

query II rowsort
SELECT DISTINCT 53 * + 19 AS col1, - 11 + + - 7
----
1007
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2565
SELECT ALL - 26 * + COALESCE ( + COUNT( * ), - 86, + 42 * + 79, 8 DIV 96 ) * 11 + + 36
----
-250

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL - 26 * + COALESCE ( + COUNT ( * ), - 86, + 42 * + 79, 8 / 96 ) * 11 + + 36
----
-250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2566
SELECT CASE + 78 WHEN - - 19 THEN NULL ELSE 77 * MIN( ALL + 89 ) END DIV ( 16 ) + + ( 59 ) DIV - 70 AS col2
----
428

skipif mysql # not compatible
query I rowsort label-2566
SELECT CASE + 78 WHEN - - 19 THEN NULL ELSE 77 * MIN ( ALL + 89 ) END / ( 16 ) + + ( 59 ) / - 70 AS col2
----
428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2567
SELECT ALL + + COALESCE ( + 77, 26 DIV ( COUNT( - 82 ) ) + - ( MIN( ALL + 95 ) ) * 43 )
----
77

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL + + COALESCE ( + 77, 26 / ( COUNT ( - 82 ) ) + - ( MIN ( ALL + 95 ) ) * 43 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + + 88 + + 48 * - COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2568
SELECT + + 88 + + 48 * - COUNT ( * ) AS col0
----
40

query I rowsort
SELECT ALL ( 40 ) * - 26 + + - 42 + - ( 8 ) AS col0
----
-1090

query I rowsort
SELECT + 58 * + 13
----
754

query I rowsort
SELECT 21 * + 47 + + 72
----
1059

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL COUNT( * ) * + + 31 * - 94 * - 30 + - COUNT( * ) * 75
----
87345

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL COUNT ( * ) * + + 31 * - 94 * - 30 + - COUNT ( * ) * 75
----
87345

query II rowsort
SELECT DISTINCT - 30 * + - 14, - 98 AS col2
----
420
-98

query I rowsort
SELECT DISTINCT + + 77 col0
----
77

query I rowsort
SELECT ALL + CASE + 16 WHEN - ( 71 ) - 30 THEN 51 + 15 * - 20 END * + 45
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT - 86 * - ( + - 12 ) * - - 86 + 34 DIV - 12 + 2 AS col0
----
-88752

skipif mysql # not compatible
query I rowsort label-2576
SELECT - 86 * - ( + - 12 ) * - - 86 + 34 / - 12 + 2 AS col0
----
-88752

query I rowsort
SELECT DISTINCT + - 0 AS col2
----
0

query I rowsort
SELECT ALL + 67 * + 81 - - 52 - - - 28
----
5451

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2580
SELECT + 88 DIV COUNT( ALL + + 5 )
----
88

skipif mysql # not compatible
query I rowsort label-2580
SELECT + 88 / COUNT ( ALL + + 5 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2581
SELECT DISTINCT + CASE + 12 WHEN + + 67 THEN + + 99 WHEN - CAST( NULL AS SIGNED ) THEN NULL END / - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT + CASE + 12 WHEN + + 67 THEN + + 99 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END / - 34
----
NULL

query I rowsort
SELECT - 32 + - - 72 AS col2
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT DISTINCT SUM( ALL 10 )
----
10

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT SUM ( ALL 10 )
----
10

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

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

query I rowsort
SELECT ALL + 78 * + + 43 AS col1
----
3354

query I rowsort
SELECT DISTINCT ( 26 ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2588
SELECT ALL COALESCE ( CAST( + COUNT( * ) AS SIGNED ), + 62 DIV - 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL COALESCE ( CAST ( + COUNT ( * ) AS INTEGER ), + 62 / - 51 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2589
SELECT ALL 43 + - 47 * CAST( - 47 AS SIGNED )
----
2252

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL 43 + - 47 * CAST ( - 47 AS INTEGER )
----
2252

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT - CASE - 53 WHEN - 54 THEN COUNT( * ) ELSE NULL END * + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT - CASE - 53 WHEN - 54 THEN COUNT ( * ) ELSE NULL END * + - 87
----
NULL

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

query I rowsort
SELECT ALL - 6 + 29 * - 87 * + - 47 AS col0
----
118575

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT - COUNT( * ) - + 55 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2593
SELECT - COUNT ( * ) - + 55 AS col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT - NULLIF ( - 61, + ( - - 66 ) * + + 58 - 30 ) DIV - ( + NULLIF ( 13, - 70 * + 96 + - 15 ) + + 16 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2594
SELECT - NULLIF ( - 61, + ( - - 66 ) * + + 58 - 30 ) / - ( + NULLIF ( 13, - 70 * + 96 + - 15 ) + + 16 ) AS col1
----
-2

query I rowsort
SELECT - 89 + - 0 + - 11
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT - COALESCE ( + 24, - ( COUNT( * ) ) + + - 30 )
----
-24

skipif mysql # not compatible
query I rowsort label-2596
SELECT - COALESCE ( + 24, - ( COUNT ( * ) ) + + - 30 )
----
-24

query I rowsort
SELECT ALL - 7 + - + 97
----
-104

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

query I rowsort
SELECT DISTINCT - + 68 + - 12 * + 50 AS col1
----
-668

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT ALL 20 * - COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL 20 * - COUNT ( * ) AS col2
----
-20

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

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

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

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

query I rowsort
SELECT ALL 86 * - 8 AS col1
----
-688

query I rowsort
SELECT - + 56 * 26 + - - ( + + 92 )
----
-1364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2605
SELECT + ( - - 67 ) DIV - + MIN( - 40 ) + 56 + - 27 col0
----
30

skipif mysql # not compatible
query I rowsort label-2605
SELECT + ( - - 67 ) / - + MIN ( - 40 ) + 56 + - 27 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT + 30 * + 36 * - + 40 * - 94 - 93 + 28 * + COUNT( * )
----
4060735

skipif mysql # not compatible
query I rowsort label-2606
SELECT + 30 * + 36 * - + 40 * - 94 - 93 + 28 * + COUNT ( * )
----
4060735

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2607
SELECT ALL + + 51 * + - CAST( - 21 AS SIGNED ) AS col0, + 74 DIV + 89 - - NULLIF ( - 68, 95 * + 37 + - 69 )
----
1071
-68

skipif mysql # not compatible
query II rowsort label-2607
SELECT ALL + + 51 * + - CAST ( - 21 AS INTEGER ) AS col0, + 74 / + 89 - - NULLIF ( - 68, 95 * + 37 + - 69 )
----
1071
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2608
SELECT - + MIN( DISTINCT 16 ) DIV + 10 - + + 4
----
-5

skipif mysql # not compatible
query I rowsort label-2608
SELECT - + MIN ( DISTINCT 16 ) / + 10 - + + 4
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2609
SELECT ALL + + 66, + COALESCE ( + CASE + 40 WHEN + 43 + - 89 THEN 57 + + 57 * + 30 ELSE NULL END, 98 + + ( - 32 ) * COUNT( ALL + 32 * + 16 ), 8 + + 82, + 15 * ( COUNT( * ) ) )
----
66
66

skipif mysql # not compatible
query II rowsort label-2609
SELECT ALL + + 66, + COALESCE ( + CASE + 40 WHEN + 43 + - 89 THEN 57 + + 57 * + 30 ELSE NULL END, 98 + + ( - 32 ) * COUNT ( ALL + 32 * + 16 ), 8 + + 82, + 15 * ( COUNT ( * ) ) )
----
66
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT ALL + - 36 DIV - + 3 - - ( 24 ) - - ( 19 ) - + ( 54 ) * 68
----
-3617

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL + - 36 / - + 3 - - ( 24 ) - - ( 19 ) - + ( 54 ) * 68
----
-3617

query I rowsort
SELECT ALL 49 * 23 AS col1
----
1127

query II rowsort
SELECT ALL + + 93 col2, 9 + - 67
----
93
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT + CAST( + 73 AS SIGNED ) + 29
----
102

skipif mysql # not compatible
query I rowsort label-2613
SELECT + CAST ( + 73 AS INTEGER ) + 29
----
102

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

query I rowsort
SELECT ALL 16 * + + 81 + 48 col2
----
1344

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT 43 + 29 + 62 DIV 94 * + - 19 col2
----
72

skipif mysql # not compatible
query I rowsort label-2616
SELECT 43 + 29 + 62 / 94 * + - 19 col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2617
SELECT DISTINCT ( - 87 ) DIV - SUM( 78 ), + 76 AS col0
----
1
76

skipif mysql # not compatible
query II rowsort label-2617
SELECT DISTINCT ( - 87 ) / - SUM ( 78 ), + 76 AS col0
----
1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL CASE - 80 WHEN + 63 THEN + + 87 WHEN + ( + + 18 ) THEN - NULLIF ( COUNT( ( - 56 ) ), 43 * + 28 ) END + + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL CASE - 80 WHEN + 63 THEN + + 87 WHEN + ( + + 18 ) THEN - NULLIF ( COUNT ( ( - 56 ) ), 43 * + 28 ) END + + ( - COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT 20 * + 24 AS col0
----
480

query I rowsort
SELECT + 19 * 7 + + 59
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT NULLIF ( + 16, - 99 + - 98 * 43 / - COALESCE ( - 20, 37 * 99, 70 ) ) + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-2621
SELECT NULLIF ( + 16, - 99 + - 98 * 43 / - COALESCE ( - 20, 37 * 99, 70 ) ) + - COUNT ( * )
----
15

query I rowsort
SELECT ALL + 75 + + ( + + 96 ) * 64
----
6219

query I rowsort
SELECT ALL - 20 + - 65 AS col2
----
-85

query I rowsort
SELECT 53 + + 52 AS col2
----
105

query I rowsort
SELECT 63 + - 37
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2626
SELECT 98 + + 62 DIV + SUM( + - 69 ), 81 AS col1
----
98
81

skipif mysql # not compatible
query II rowsort label-2626
SELECT 98 + + 62 / + SUM ( + - 69 ), 81 AS col1
----
98
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2627
SELECT 9, CAST( NULL AS SIGNED ) AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-2627
SELECT 9, CAST ( NULL AS INTEGER ) AS col0
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL 71 + + + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL 71 + + + COUNT ( * )
----
72

query I rowsort
SELECT DISTINCT + 30 * - 89 * - + 63 AS col2
----
168210

query I rowsort
SELECT ALL + 57 + - 64 * ( 13 ) * + 99 + + 65 + NULLIF ( - 19, + ( - 61 ) * + 24 ) * + 34 AS col0
----
-82892

query I rowsort
SELECT ALL + 48 * 85
----
4080

query I rowsort
SELECT ALL - 93 + + - 67 + + 84 - - 1
----
-75

query I rowsort
SELECT DISTINCT + 24 * - ( + 0 ) - - - 59
----
-59

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

skipif mysql # not compatible
query I rowsort label-2634
SELECT - CAST ( NULL AS INTEGER ) * - 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2635
SELECT + 40 + - MAX( ALL + - 45 ) DIV + 77 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2635
SELECT + 40 + - MAX ( ALL + - 45 ) / + 77 AS col0
----
40

query I rowsort
SELECT DISTINCT - - 32 col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2637
SELECT + + CAST( + 53 AS SIGNED ) col0
----
53

skipif mysql # not compatible
query I rowsort label-2637
SELECT + + CAST ( + 53 AS INTEGER ) col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT - + 23 / + - CAST( NULL AS SIGNED ) + - COUNT( * ) + 12 + - - 63 * - + 72 * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT - + 23 / + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 12 + - - 63 * - + 72 * 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT DISTINCT + 39 - + + 82 + - - ( + - ( - MIN( DISTINCT - CASE + 37 WHEN + 86 THEN NULL WHEN 15 * + 31 THEN 73 ELSE NULL END ) ) ) + + 1 * - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT + 39 - + + 82 + - - ( + - ( - MIN ( DISTINCT - CASE + 37 WHEN + 86 THEN NULL WHEN 15 * + 31 THEN 73 ELSE NULL END ) ) ) + + 1 * - 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2640
SELECT ALL - MAX( - - 2 ) DIV + 50 * + 39
----
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL - MAX ( - - 2 ) / + 50 * + 39
----
0

query I rowsort
SELECT 32 + 42
----
74

query II rowsort
SELECT ALL - 91 AS col0, - 94 AS col2
----
-91
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2643
SELECT - - COUNT( * ) * + 52 + ( - + 81 ), ( + 36 ) AS col0
----
-29
36

skipif mysql # not compatible
query II rowsort label-2643
SELECT - - COUNT ( * ) * + 52 + ( - + 81 ), ( + 36 ) AS col0
----
-29
36

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT 81 DIV - - 88
----
0

skipif mysql # not compatible
query I rowsort label-2645
SELECT 81 / - - 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2646
SELECT + 30 DIV 71 * MAX( 17 ) DIV - 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2646
SELECT + 30 / 71 * MAX ( 17 ) / - 5 AS col2
----
0

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

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

query I rowsort
SELECT ( - 73 ) * + ( 15 )
----
-1095

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2649
SELECT DISTINCT + 5 * 96 col0, CAST( 87 AS SIGNED )
----
480
87

skipif mysql # not compatible
query II rowsort label-2649
SELECT DISTINCT + 5 * 96 col0, CAST ( 87 AS INTEGER )
----
480
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT DISTINCT + SUM( + - CASE + ( - 88 ) WHEN + 19 THEN 31 ELSE NULL END ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT + SUM ( + - CASE + ( - 88 ) WHEN + 19 THEN 31 ELSE NULL END ) * - 48
----
NULL

query II rowsort
SELECT ( - 62 ) * + + 62 AS col0, + 18
----
-3844
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL 67 + - - 27 + COUNT( ALL ( + 86 ) )
----
95

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL 67 + - - 27 + COUNT ( ALL ( + 86 ) )
----
95

query I rowsort
SELECT DISTINCT 2 + + 49 - 2 + + + 83
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT DISTINCT 73 + - - 63 AS col0, - COALESCE ( - 76, - COUNT( * ), 44 ) * + 94 - 74
----
136
7070

skipif mysql # not compatible
query II rowsort label-2654
SELECT DISTINCT 73 + - - 63 AS col0, - COALESCE ( - 76, - COUNT ( * ), 44 ) * + 94 - 74
----
136
7070

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

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

query I rowsort
SELECT ALL 8 + 29 * 94 AS col2
----
2734

query I rowsort
SELECT DISTINCT 66 + - 11
----
55

query I rowsort
SELECT 63 * + + 86
----
5418

query I rowsort
SELECT ALL 1 * 83
----
83

query I rowsort
SELECT ALL 13 * 61 AS col0
----
793

query I rowsort
SELECT ALL 72 + - 99 - + - 90 col1
----
63

query I rowsort
SELECT DISTINCT 30 + + 17 AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2663
SELECT ALL - MAX( - 29 ) + - 27 + + COUNT( * ) - - + 35 DIV SUM( - - 79 ) * 43
----
3

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - MAX ( - 29 ) + - 27 + + COUNT ( * ) - - + 35 / SUM ( - - 79 ) * 43
----
3

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

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

query I rowsort
SELECT ALL 65 * + 63
----
4095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT CAST( - + COALESCE ( - 46, + 60, - + 91 - - 34 ) AS SIGNED ) * - + 88 AS col1
----
-4048

skipif mysql # not compatible
query I rowsort label-2666
SELECT CAST ( - + COALESCE ( - 46, + 60, - + 91 - - 34 ) AS INTEGER ) * - + 88 AS col1
----
-4048

query II rowsort
SELECT + 98 * + - 14, - 64 AS col1
----
-1372
-64

query I rowsort
SELECT 75 + + - 64
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT DISTINCT CAST( + - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT CAST ( + - 46 AS INTEGER )
----
-46

query II rowsort
SELECT ALL - - 75 * + ( - 93 ) AS col1, COALESCE ( + 8, + 73 * 33 + 90 )
----
-6975
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT SUM( DISTINCT + + 92 ), + COALESCE ( 90, + + 58 ) - + 17 * - 20 AS col2
----
92
430

skipif mysql # not compatible
query II rowsort label-2671
SELECT SUM ( DISTINCT + + 92 ), + COALESCE ( 90, + + 58 ) - + 17 * - 20 AS col2
----
92
430

query I rowsort
SELECT DISTINCT + CASE 85 WHEN + 14 THEN NULL WHEN + 98 THEN NULL ELSE 10 END * 20 * - 65 - - 84 AS col0
----
-12916

query I rowsort
SELECT DISTINCT - 51 * - 36
----
1836

query I rowsort
SELECT 16 + - 16 * + 43
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT + 31 * + COALESCE ( - - 5, - + 89, + + SUM( + ( - 28 ) ) )
----
155

skipif mysql # not compatible
query I rowsort label-2675
SELECT + 31 * + COALESCE ( - - 5, - + 89, + + SUM ( + ( - 28 ) ) )
----
155

query I rowsort
SELECT NULLIF ( + ( + + 56 ), - 21 ) * - 55 AS col1
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL - + 83 * + 86 * - + COUNT( * ) AS col1
----
7138

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL - + 83 * + 86 * - + COUNT ( * ) AS col1
----
7138

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT 34 - - - 94 - - COUNT( * ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-2678
SELECT 34 - - - 94 - - COUNT ( * ) col2
----
-59

query II rowsort
SELECT + + ( + 99 ) AS col0, - 58 * ( + 60 ) * + 68 AS col1
----
99
-236640

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL - CASE + 30 WHEN - 64 * - 70 + - COUNT( * ) * 20 * + + 59 / - 7 + - 55 * - 1 THEN + 28 END * - COUNT( DISTINCT 60 + - 36 ) + 5 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL - CASE + 30 WHEN - 64 * - 70 + - COUNT ( * ) * 20 * + + 59 / - 7 + - 55 * - 1 THEN + 28 END * - COUNT ( DISTINCT 60 + - 36 ) + 5 * - 64
----
NULL

query I rowsort
SELECT ALL + - 11 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT NULLIF ( - ( - 48 ), - ( 8 ) * ( - 36 ) * + COUNT( * ) + + COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-2682
SELECT NULLIF ( - ( - 48 ), - ( 8 ) * ( - 36 ) * + COUNT ( * ) + + COUNT ( * ) )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2683
SELECT ALL 49 * + COUNT( * ) + - + CASE 94 WHEN - - SUM( + 33 ) THEN NULL WHEN + ( - + ( + COALESCE ( 30, + CAST( NULL AS SIGNED ), + 25 * COUNT( * ) + 16 ) ) ) * 22 THEN NULL WHEN + 25 THEN - 56 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL 49 * + COUNT ( * ) + - + CASE 94 WHEN - - SUM ( + 33 ) THEN NULL WHEN + ( - + ( + COALESCE ( 30, + CAST ( NULL AS INTEGER ), + 25 * COUNT ( * ) + 16 ) ) ) * 22 THEN NULL WHEN + 25 THEN - 56 ELSE NULL END col1
----
NULL

query I rowsort
SELECT - 73 * + - 17
----
1241

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

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

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

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

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

query I rowsort
SELECT ALL 86 * - 10 + - + 85 + 31 + + + 3 + - 12 * - ( + 45 ) * + 83
----
43909

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT + COUNT( * ) * NULLIF ( - - 83, - + 62 )
----
83

skipif mysql # not compatible
query I rowsort label-2689
SELECT + COUNT ( * ) * NULLIF ( - - 83, - + 62 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT 20 * 63 * - CASE + - CASE - 79 WHEN - 45 * - + 86 THEN + - 78 ELSE 0 END WHEN 91 / + 92 THEN NULL WHEN + COUNT( * ) * + 9 THEN NULL WHEN 44 THEN + ( - 70 ) * 28 ELSE NULL END + - 44 / - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT 20 * 63 * - CASE + - CASE - 79 WHEN - 45 * - + 86 THEN + - 78 ELSE 0 END WHEN 91 / + 92 THEN NULL WHEN + COUNT ( * ) * + 9 THEN NULL WHEN 44 THEN + ( - 70 ) * 28 ELSE NULL END + - 44 / - 49 AS col0
----
NULL

query I rowsort
SELECT + 19 - 63 AS col2
----
-44

query I rowsort
SELECT ALL 25 * - 96 AS col1
----
-2400

query I rowsort
SELECT ALL + 56 * + 89 + - + 13 * - 99 * 96 col2
----
128536

query I rowsort
SELECT - 66 + + 69
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT DISTINCT 98 * 55 * + 45 + - COUNT( * )
----
242549

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT 98 * 55 * + 45 + - COUNT ( * )
----
242549

query I rowsort
SELECT ALL - 48 * - + 71
----
3408

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT + ( + 66 ) + - 49 * + - SUM( - 71 ) * + COUNT( * ) + - ( + 37 ) AS col1
----
-3450

skipif mysql # not compatible
query I rowsort label-2697
SELECT + ( + 66 ) + - 49 * + - SUM ( - 71 ) * + COUNT ( * ) + - ( + 37 ) AS col1
----
-3450

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

query I rowsort
SELECT DISTINCT ( 4 ) AS col0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2700
SELECT DISTINCT 76, 4 / - - CAST( NULL AS DECIMAL ) AS col2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-2700
SELECT DISTINCT 76, 4 / - - CAST ( NULL AS REAL ) AS col2
----
76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT - 48 * + ( - + MAX( + - 17 ) ) AS col1
----
-816

skipif mysql # not compatible
query I rowsort label-2701
SELECT - 48 * + ( - + MAX ( + - 17 ) ) AS col1
----
-816

query I rowsort
SELECT - NULLIF ( - + 0, - - 91 * - - 0 / - 29 + - 28 - + - 91 ) AS col2
----
0

query I rowsort
SELECT - 72 * - 86 * 36 + 77 * 36 AS col2
----
225684

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2704
SELECT - 53 AS col1, - CAST( NULL AS SIGNED ) * - 18 AS col0
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-2704
SELECT - 53 AS col1, - CAST ( NULL AS INTEGER ) * - 18 AS col0
----
-53
NULL

query I rowsort
SELECT + 22 * - + 63
----
-1386

query II rowsort
SELECT ALL + 59 AS col0, 99 * + 76 * - 43
----
59
-323532

query II rowsort
SELECT DISTINCT - 10 AS col0, 60 * + 65 AS col0
----
-10
3900

query I rowsort
SELECT DISTINCT ( - 63 ) * + 72 * - - 16
----
-72576

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2709
SELECT + 85 DIV + + ( - 47 ) AS col0, - 79 * 14 + - 79 - COUNT( * )
----
-1
-1186

skipif mysql # not compatible
query II rowsort label-2709
SELECT + 85 / + + ( - 47 ) AS col0, - 79 * 14 + - 79 - COUNT ( * )
----
-1
-1186

onlyif mysql # aggregate syntax: 
query II rowsort label-2710
SELECT 96 AS col2, + ( - + 12 ) + + CASE + 54 WHEN + 19 + 35 THEN NULL WHEN + 33 + COUNT( * ) THEN NULL WHEN 21 * ( 44 ) THEN SUM( 98 ) END
----
96
NULL

skipif mysql # not compatible
query II rowsort label-2710
SELECT 96 AS col2, + ( - + 12 ) + + CASE + 54 WHEN + 19 + 35 THEN NULL WHEN + 33 + COUNT ( * ) THEN NULL WHEN 21 * ( 44 ) THEN SUM ( 98 ) END
----
96
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2711
SELECT + COALESCE ( - 72, - 13 ) + ( + - 44 ) * + COUNT( * ) AS col1, 8
----
-116
8

skipif mysql # not compatible
query II rowsort label-2711
SELECT + COALESCE ( - 72, - 13 ) + ( + - 44 ) * + COUNT ( * ) AS col1, 8
----
-116
8

query I rowsort
SELECT DISTINCT NULLIF ( 55, 51 )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT ALL 82 DIV + 69 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL 82 / + 69 AS col2
----
1

query I rowsort
SELECT ALL + 87 + + 5
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL COUNT( * ) + - 65 + - 54 * + - 33
----
1718

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL COUNT ( * ) + - 65 + - 54 * + - 33
----
1718

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2716
SELECT ALL 56 DIV 68 * + MAX( + + COALESCE ( - + 73, - 32, - + 69 ) ) + - 19 + + 75 * ( 83 * + 28 ) AS col2
----
174281

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL 56 / 68 * + MAX ( + + COALESCE ( - + 73, - 32, - + 69 ) ) + - 19 + + 75 * ( 83 * + 28 ) AS col2
----
174281

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2718
SELECT + 60 DIV + 55 + + 72 + + 36 * 78
----
2881

skipif mysql # not compatible
query I rowsort label-2718
SELECT + 60 / + 55 + + 72 + + 36 * 78
----
2881

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT ALL + 39 DIV + 8 + 43 col0
----
47

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + 39 / + 8 + 43 col0
----
47

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

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

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

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL COUNT ( * ) / + + 82 + COUNT ( * ) / + 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT + CAST( + 43 AS SIGNED ) col2
----
43

skipif mysql # not compatible
query I rowsort label-2722
SELECT + CAST ( + 43 AS INTEGER ) col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2723
SELECT - 14 * - 66 * + ( + 36 ) col1, - CAST( NULL AS SIGNED ) AS col1
----
33264
NULL

skipif mysql # not compatible
query II rowsort label-2723
SELECT - 14 * - 66 * + ( + 36 ) col1, - CAST ( NULL AS INTEGER ) AS col1
----
33264
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2724
SELECT + 44 * + + CAST( NULL AS SIGNED ) * 51 * - 91 + 61 col2, 77 * - 84 AS col1
----
NULL
-6468

skipif mysql # not compatible
query II rowsort label-2724
SELECT + 44 * + + CAST ( NULL AS INTEGER ) * 51 * - 91 + 61 col2, 77 * - 84 AS col1
----
NULL
-6468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT ALL + NULLIF ( - 66, + 86 ) * + CAST( NULL AS SIGNED ) + - + 49 * 27 + - 13 * - 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL + NULLIF ( - 66, + 86 ) * + CAST ( NULL AS INTEGER ) + - + 49 * 27 + - 13 * - 39 col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT ALL ( - - COALESCE ( 96, - + NULLIF ( - - 57, + - CASE - - 0 WHEN + 70 THEN + - 80 END ) * - 52, + 20 + + SUM( + 6 ) ) ) * - 46 - + 15 col1
----
-4431

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL ( - - COALESCE ( 96, - + NULLIF ( - - 57, + - CASE - - 0 WHEN + 70 THEN + - 80 END ) * - 52, + 20 + + SUM ( + 6 ) ) ) * - 46 - + 15 col1
----
-4431

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT DISTINCT - COUNT( * ) * + + 33 * 98 * - + 71 - + + ( - - 81 ) AS col2
----
229533

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT - COUNT ( * ) * + + 33 * 98 * - + 71 - + + ( - - 81 ) AS col2
----
229533

onlyif mysql # DIV for integer division: 
query II rowsort label-2729
SELECT ALL + 98 DIV + - 77 AS col2, 59 * + 96
----
-1
5664

skipif mysql # not compatible
query II rowsort label-2729
SELECT ALL + 98 / + - 77 AS col2, 59 * + 96
----
-1
5664

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2730
SELECT COALESCE ( - + CAST( ( - 26 ) AS SIGNED ), + 88 ) AS col2, ( - - 17 ) * - 87
----
26
-1479

skipif mysql # not compatible
query II rowsort label-2730
SELECT COALESCE ( - + CAST ( ( - 26 ) AS INTEGER ), + 88 ) AS col2, ( - - 17 ) * - 87
----
26
-1479

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2731
SELECT ALL COUNT( * ) * - + 94 DIV - + 85 - 85 * + 22 AS col1, - 20 DIV 25 * + 54 + - - 75
----
-1869
75

skipif mysql # not compatible
query II rowsort label-2731
SELECT ALL COUNT ( * ) * - + 94 / - + 85 - 85 * + 22 AS col1, - 20 / 25 * + 54 + - - 75
----
-1869
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT - COALESCE ( - 7, - + 96 ) DIV 16 + - - 92
----
92

skipif mysql # not compatible
query I rowsort label-2732
SELECT - COALESCE ( - 7, - + 96 ) / 16 + - - 92
----
92

query I rowsort
SELECT + NULLIF ( - 44, + 84 )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2734
SELECT 90 * 32 DIV + 56 - + - 6 + - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2734
SELECT 90 * 32 / + 56 - + - 6 + - COUNT ( * ) AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT COALESCE ( CAST( - + 6 AS SIGNED ), - COUNT( * ) * + - 59 )
----
-6

skipif mysql # not compatible
query I rowsort label-2735
SELECT COALESCE ( CAST ( - + 6 AS INTEGER ), - COUNT ( * ) * + - 59 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT - CASE 77 WHEN MIN( DISTINCT - 68 ) THEN - - 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT - CASE 77 WHEN MIN ( DISTINCT - 68 ) THEN - - 81 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2737
SELECT - CAST( NULL AS SIGNED ) * ( + 39 ) / 86 * COALESCE ( - - 22, 95 ) * + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT - CAST ( NULL AS INTEGER ) * ( + 39 ) / 86 * COALESCE ( - - 22, 95 ) * + 49 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2738
SELECT DISTINCT + - ( + + COALESCE ( 37, - ( + 6 ) ) ) * - 74 * + CAST( + 98 AS SIGNED ) AS col1
----
268324

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT + - ( + + COALESCE ( 37, - ( + 6 ) ) ) * - 74 * + CAST ( + 98 AS INTEGER ) AS col1
----
268324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2739
SELECT DISTINCT - COUNT( - + CAST( + + 31 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT - COUNT ( - + CAST ( + + 31 AS INTEGER ) ) AS col2
----
-1

query II rowsort
SELECT ALL 44 + + NULLIF ( - 91, 89 ) col0, - ( + 81 ) * - 47 + - 24 AS col1
----
-47
3783

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

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

query I rowsort
SELECT - 27 + + ( - 94 )
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT - - COUNT( 61 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2743
SELECT - - COUNT ( 61 ) col2
----
1

query I rowsort
SELECT ALL + COALESCE ( + 53, - 96 )
----
53

query I rowsort
SELECT DISTINCT 71 + - 75 * + 15
----
-1054

query I rowsort
SELECT ALL + 58 + 83 AS col1
----
141

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

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

query II rowsort
SELECT ALL + 77 + 51, + 91 AS col0
----
128
91

query I rowsort
SELECT DISTINCT - 8 + 48 AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT ALL CAST( 15 AS SIGNED ) + + + COUNT( * ) + - 31 - + 74 * 37 AS col2
----
-2753

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL CAST ( 15 AS INTEGER ) + + + COUNT ( * ) + - 31 - + 74 * 37 AS col2
----
-2753

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2752
SELECT ( - 98 ) * + 22, COUNT( * ) DIV - COUNT( * ) AS col1
----
-2156
-1

skipif mysql # not compatible
query II rowsort label-2752
SELECT ( - 98 ) * + 22, COUNT ( * ) / - COUNT ( * ) AS col1
----
-2156
-1

query I rowsort
SELECT 83 * 9 AS col2
----
747

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT 89 DIV 37 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2754
SELECT 89 / 37 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2755
SELECT DISTINCT COUNT( * ) DIV - - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT COUNT ( * ) / - - 64 AS col0
----
0

query I rowsort
SELECT DISTINCT 55 - - + 8 AS col0
----
63

query I rowsort
SELECT 79 - 28 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT DISTINCT + CASE 82 WHEN + 51 * + 6 + 72 - - - 49 THEN CAST( NULL AS SIGNED ) ELSE NULL END * - 40 * ( - 92 ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT + CASE 82 WHEN + 51 * + 6 + 72 - - - 49 THEN CAST ( NULL AS INTEGER ) ELSE NULL END * - 40 * ( - 92 ) * 97
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2759
SELECT 63 + + COUNT ( * ) AS col2
----
64

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

skipif mysql # not compatible
query I rowsort label-2760
SELECT COUNT ( * ) / 82 * + - COUNT ( * ) + - - 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT CASE - + ( + 77 ) WHEN 74 * - 47 / + 34 + 92 - + + COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN + 56 + 51 ELSE - 3 END * COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-2761
SELECT CASE - + ( + 77 ) WHEN 74 * - 47 / + 34 + 92 - + + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN + 56 + 51 ELSE - 3 END * COUNT ( * )
----
-3

query I rowsort
SELECT 14 * 14
----
196

query I rowsort
SELECT DISTINCT + 85 * - - 36 col1
----
3060

query I rowsort
SELECT 23 - + 5 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL - CASE - COUNT( * ) WHEN + + 36 THEN NULL WHEN 47 THEN 34 - - + 38 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL - CASE - COUNT ( * ) WHEN + + 36 THEN NULL WHEN 47 THEN 34 - - + 38 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 64 * + 70 * - 12 + - 29 col0
----
-53789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2767
SELECT ALL 83 * + COALESCE ( - COUNT( * ), 18 ) * - - ( + + CAST( NULL AS SIGNED ) ) * + - CAST( - 41 AS SIGNED ) AS col1, - 32
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-2767
SELECT ALL 83 * + COALESCE ( - COUNT ( * ), 18 ) * - - ( + + CAST ( NULL AS INTEGER ) ) * + - CAST ( - 41 AS INTEGER ) AS col1, - 32
----
NULL
-32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2768
SELECT 4 DIV - + CAST( - 39 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2768
SELECT 4 / - + CAST ( - 39 AS INTEGER ) col1
----
0

query I rowsort
SELECT 7 + - + 20 - + 39 * - ( - 20 ) * + 31 * 59 AS col2
----
-1426633

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL - SUM( DISTINCT 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - SUM ( DISTINCT 78 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT - COUNT( * ) + - COUNT( * ) + - 86 * + 14 AS col2
----
-1206

skipif mysql # not compatible
query I rowsort label-2771
SELECT - COUNT ( * ) + - COUNT ( * ) + - 86 * + 14 AS col2
----
-1206

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT DISTINCT + 64 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT + 64 / + 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2774
SELECT + MIN( ALL 19 ) * + COUNT( * ) DIV MIN( + 82 ) * - ( - 25 )
----
0

skipif mysql # not compatible
query I rowsort label-2774
SELECT + MIN ( ALL 19 ) * + COUNT ( * ) / MIN ( + 82 ) * - ( - 25 )
----
0

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

skipif mysql # not compatible
query I rowsort label-2775
SELECT - COUNT ( ALL + - 2 ) AS col0
----
-1

query II rowsort
SELECT 94 AS col1, 81 * 27
----
94
2187

query I rowsort
SELECT DISTINCT + 29 * 22 AS col2
----
638

query I rowsort
SELECT ALL - 70 * + 84 AS col1
----
-5880

query I rowsort
SELECT COALESCE ( - 29, 5 * - 31, + + 86 ) AS col1
----
-29

query I rowsort
SELECT ALL + + 97 * - 56 AS col0
----
-5432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2781
SELECT DISTINCT - + 34 + + - 26 + - 34 + - 34 + + COALESCE ( 93, COUNT( * ) + + 44 - 16, - AVG ( + 86 ) + 12 ) DIV 86 * + 55 * + 46
----
2402

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT - + 34 + + - 26 + - 34 + - 34 + + COALESCE ( 93, COUNT ( * ) + + 44 - 16, - AVG ( + 86 ) + 12 ) / 86 * + 55 * + 46
----
2402

query I rowsort
SELECT DISTINCT + 79 + + 57 AS col0
----
136

query I rowsort
SELECT ALL - - 84 + - ( - 97 ) AS col1
----
181

query I rowsort
SELECT ALL + + 22 + - 4
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT - MIN( ALL - 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2785
SELECT - MIN ( ALL - 63 ) AS col2
----
63

query I rowsort
SELECT - ( - 74 )
----
74

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL - COALESCE ( - + 12, - 65 + 17 * - COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL - COALESCE ( - + 12, - 65 + 17 * - COUNT ( * ) )
----
12

query I rowsort
SELECT 82 * - 97
----
-7954

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL - 98 * CASE - COUNT( * ) WHEN - 95 * - - 61 + 99 THEN NULL WHEN 87 THEN NULL ELSE + + 39 END
----
-3822

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - 98 * CASE - COUNT ( * ) WHEN - 95 * - - 61 + 99 THEN NULL WHEN 87 THEN NULL ELSE + + 39 END
----
-3822

query II rowsort
SELECT + 57 AS col1, + 44 * + 31 col2
----
57
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT CASE - COUNT( * ) WHEN + 8 THEN - - CASE - 47 WHEN + ( + 41 ) THEN + + COUNT( * ) * 40 + + + 87 + - 6 WHEN AVG ( DISTINCT 83 ) / 1 THEN NULL ELSE NULL END * COUNT( * ) END + 56 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT CASE - COUNT ( * ) WHEN + 8 THEN - - CASE - 47 WHEN + ( + 41 ) THEN + + COUNT ( * ) * 40 + + + 87 + - 6 WHEN AVG ( DISTINCT 83 ) / 1 THEN NULL ELSE NULL END * COUNT ( * ) END + 56 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2794
SELECT 72 * ( + 57 ) * + COUNT( * ) AS col1, COALESCE ( ( + 54 ), 52 * + 27 + 8 )
----
4104
54

skipif mysql # not compatible
query II rowsort label-2794
SELECT 72 * ( + 57 ) * + COUNT ( * ) AS col1, COALESCE ( ( + 54 ), 52 * + 27 + 8 )
----
4104
54

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

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

query I rowsort
SELECT 89 * + - 38 + + 78
----
-3304

query II rowsort
SELECT ALL - 53 col0, 80 + 88 AS col1
----
-53
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT SUM( ALL - + 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2798
SELECT SUM ( ALL - + 50 ) AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2799
SELECT - 98 * - 91 + - + MAX( + 42 ) - + 8 * + - 3 AS col2, CASE - 46 WHEN + - 6 THEN - CAST( 81 AS DECIMAL ) WHEN + 8 THEN NULL ELSE NULL END + + ( + 46 ) * 86
----
8900
NULL

skipif mysql # not compatible
query II rowsort label-2799
SELECT - 98 * - 91 + - + MAX ( + 42 ) - + 8 * + - 3 AS col2, CASE - 46 WHEN + - 6 THEN - CAST ( 81 AS REAL ) WHEN + 8 THEN NULL ELSE NULL END + + ( + 46 ) * 86
----
8900
NULL

query I rowsort
SELECT 98 * + - 60 AS col0
----
-5880

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT ALL 89 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL 89 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT MAX( + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2802
SELECT MAX ( + 1 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT DISTINCT 0 DIV - 45 * 78 * 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT 0 / - 45 * 78 * 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL COUNT( 40 ) + - 60 + + - 93 * 82
----
-7685

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL COUNT ( 40 ) + - 60 + + - 93 * 82
----
-7685

query I rowsort
SELECT DISTINCT + ( - + 56 ) * + 98
----
-5488

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT + ( NULLIF ( + - 31, - - COUNT( * ) + - NULLIF ( 79, - 36 ) * + - 40 ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2806
SELECT + ( NULLIF ( + - 31, - - COUNT ( * ) + - NULLIF ( 79, - 36 ) * + - 40 ) ) AS col1
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2807
SELECT ALL + MIN( ALL 56 ) + - 17 DIV + 53
----
56

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL + MIN ( ALL 56 ) + - 17 / + 53
----
56

query II rowsort
SELECT + 77 AS col1, 75
----
77
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2810
SELECT DISTINCT - 35 + - + CAST( - 16 AS SIGNED ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT - 35 + - + CAST ( - 16 AS INTEGER ) AS col2
----
-19

query II rowsort
SELECT 90, 88 * 97 AS col1
----
90
8536

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT + + ( + COUNT( * ) ) * + COALESCE ( - COALESCE ( 47, + 90 ), COUNT( * ), 46 + - 70 )
----
-47

skipif mysql # not compatible
query I rowsort label-2813
SELECT + + ( + COUNT ( * ) ) * + COALESCE ( - COALESCE ( 47, + 90 ), COUNT ( * ), 46 + - 70 )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT DISTINCT - MAX( ALL 75 ) + + COALESCE ( COUNT( * ), 60 * - + 43 DIV 74, + 72 * + 3 )
----
-74

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT - MAX ( ALL 75 ) + + COALESCE ( COUNT ( * ), 60 * - + 43 / 74, + 72 * + 3 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT - 32 * - 6 + - 88 - COUNT( * ) - 93
----
10

skipif mysql # not compatible
query I rowsort label-2815
SELECT - 32 * - 6 + - 88 - COUNT ( * ) - 93
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT ALL - ( + NULLIF ( 2, + - 56 ) ) DIV + + 52
----
0

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - ( + NULLIF ( 2, + - 56 ) ) / + + 52
----
0

query I rowsort
SELECT DISTINCT + 8 + 46 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT ALL COUNT( 43 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL COUNT ( 43 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2819
SELECT - 59 DIV + - ( + COUNT( * ) ) + + 56 - ( + 25 ) + - - 32 + + - ( - CAST( 33 AS SIGNED ) ) + COUNT( * ) + 48 * ( + COUNT( * ) + - NULLIF ( 48, 60 * COUNT( * ) ) )
----
-2100

skipif mysql # not compatible
query I rowsort label-2819
SELECT - 59 / + - ( + COUNT ( * ) ) + + 56 - ( + 25 ) + - - 32 + + - ( - CAST ( 33 AS INTEGER ) ) + COUNT ( * ) + 48 * ( + COUNT ( * ) + - NULLIF ( 48, 60 * COUNT ( * ) ) )
----
-2100

query I rowsort
SELECT ALL - 75 - - 33
----
-42

query I rowsort
SELECT - - 64 * - 75
----
-4800

query I rowsort
SELECT ALL - + 57 * - + 4 AS col2
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT - + 95 + 25 * + 65 - + CAST( 30 AS SIGNED ) AS col1
----
1500

skipif mysql # not compatible
query I rowsort label-2823
SELECT - + 95 + 25 * + 65 - + CAST ( 30 AS INTEGER ) AS col1
----
1500

query I rowsort
SELECT DISTINCT - 25 * 93 AS col0
----
-2325

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT - - 14 DIV + + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2825
SELECT - - 14 / + + 92 AS col1
----
0

query I rowsort
SELECT DISTINCT NULLIF ( + 53, + 35 * - ( 17 ) )
----
53

query I rowsort
SELECT ALL + 29 * - 95 AS col2
----
-2755

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT DISTINCT + 12 * SUM( DISTINCT + 28 ) AS col2
----
336

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT + 12 * SUM ( DISTINCT + 28 ) AS col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL NULLIF ( + 21, + COUNT( * ) + 49 / - 51 - + COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL NULLIF ( + 21, + COUNT ( * ) + 49 / - 51 - + COUNT ( * ) )
----
21

query II rowsort
SELECT - 31 * + - 95 AS col1, ( 98 ) AS col2
----
2945
98

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

skipif mysql # not compatible
query I rowsort label-2832
SELECT - 49 - + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT DISTINCT ( - MAX( ALL - 29 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT ( - MAX ( ALL - 29 ) ) AS col0
----
29

query I rowsort
SELECT ALL + NULLIF ( + 69, - 83 ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2835
SELECT + 7 * SUM( DISTINCT - 10 ) * 67 + NULLIF ( + + 22, + CASE + 20 WHEN + 5 THEN - 69 * - 53 - - SUM( - 80 ) + + 52 WHEN 63 * CAST( 48 / MAX( CAST( + 44 AS SIGNED ) ) AS SIGNED ) THEN NULL END ) - 99
----
-4767

skipif mysql # not compatible
query I rowsort label-2835
SELECT + 7 * SUM ( DISTINCT - 10 ) * 67 + NULLIF ( + + 22, + CASE + 20 WHEN + 5 THEN - 69 * - 53 - - SUM ( - 80 ) + + 52 WHEN 63 * CAST ( 48 / MAX ( CAST ( + 44 AS INTEGER ) ) AS INTEGER ) THEN NULL END ) - 99
----
-4767

query II rowsort
SELECT + 90 * 91, + 26 AS col0
----
8190
26

query I rowsort
SELECT 31 * + 56 + 77 * 21 AS col1
----
3353

query II rowsort
SELECT ( + 86 ) AS col2, 65
----
86
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2839
SELECT DISTINCT + ( - COUNT( - 23 ) ), - 30 + - 98 AS col1
----
-1
-128

skipif mysql # not compatible
query II rowsort label-2839
SELECT DISTINCT + ( - COUNT ( - 23 ) ), - 30 + - 98 AS col1
----
-1
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL - COUNT( * ) * - + 54 + - 20
----
34

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL - COUNT ( * ) * - + 54 + - 20
----
34

query I rowsort
SELECT ALL 12 * + 4 * + ( - 43 )
----
-2064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2842
SELECT - COUNT( * ) DIV - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT - COUNT ( * ) / - 85 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2843
SELECT + 24 * + 52 AS col1, COUNT( * ) + - 66 + + + 18
----
1248
-47

skipif mysql # not compatible
query II rowsort label-2843
SELECT + 24 * + 52 AS col1, COUNT ( * ) + - 66 + + + 18
----
1248
-47

query I rowsort
SELECT - - 75 + 2 + + 2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL - - 31 * + 80 + CASE + 90 WHEN - MIN( ALL + 59 ) THEN NULL ELSE MIN( DISTINCT 4 ) END AS col2
----
2484

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL - - 31 * + 80 + CASE + 90 WHEN - MIN ( ALL + 59 ) THEN NULL ELSE MIN ( DISTINCT 4 ) END AS col2
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL + 83 * - 57 + COUNT( * ) + + 60 * - - COUNT( * ) * - 42 AS col1
----
-7250

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + 83 * - 57 + COUNT ( * ) + + 60 * - - COUNT ( * ) * - 42 AS col1
----
-7250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT COUNT( * ) * 56 + - COUNT( * ) + 39 + - CAST( + 86 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-2847
SELECT COUNT ( * ) * 56 + - COUNT ( * ) + 39 + - CAST ( + 86 AS INTEGER )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2848
SELECT + COUNT( * ) - - CAST( NULL AS DECIMAL ) AS col0, 42 * + 48 * - 93 * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2848
SELECT + COUNT ( * ) - - CAST ( NULL AS REAL ) AS col0, 42 * + 48 * - 93 * + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2849
SELECT ALL 19 DIV - 93, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-2849
SELECT ALL 19 / - 93, COUNT ( * ) AS col1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT + SUM( ALL + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-2850
SELECT + SUM ( ALL + 71 )
----
71

query I rowsort
SELECT DISTINCT + COALESCE ( + 45, + 15, 40 * ( 96 ) ) col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT ALL - 4 * 73 + CAST( - + 69 AS SIGNED )
----
-361

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL - 4 * 73 + CAST ( - + 69 AS INTEGER )
----
-361

query I rowsort
SELECT DISTINCT 37 * + 3
----
111

query II rowsort
SELECT DISTINCT - - 46 * - + 84 + + 93, 38 AS col2
----
-3771
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL - MIN( ALL - 94 ) * - 34
----
-3196

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - MIN ( ALL - 94 ) * - 34
----
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + - 25 * - 11 + - COUNT( * ) + - ( 49 ) AS col2
----
225

skipif mysql # not compatible
query I rowsort label-2857
SELECT + - 25 * - 11 + - COUNT ( * ) + - ( 49 ) AS col2
----
225

query I rowsort
SELECT DISTINCT + 46 * - - 19 * - + 56 AS col1
----
-48944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT - - 35 + - NULLIF ( - CAST( NULL AS SIGNED ), - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT - - 35 + - NULLIF ( - CAST ( NULL AS INTEGER ), - 60 )
----
NULL

query I rowsort
SELECT ALL - 29 * + ( + 51 ) - 33
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT + MAX( - + ( + - 36 ) ) * - 10 * - + 76
----
27360

skipif mysql # not compatible
query I rowsort label-2861
SELECT + MAX ( - + ( + - 36 ) ) * - 10 * - + 76
----
27360

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT - 65 * SUM( + ( + - 7 ) )
----
455

skipif mysql # not compatible
query I rowsort label-2862
SELECT - 65 * SUM ( + ( + - 7 ) )
----
455

query I rowsort
SELECT + 5 + - 14
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2864
SELECT DISTINCT - CAST( - 66 AS SIGNED ) * COUNT( * ) DIV 34 * - 73 - + + MIN( DISTINCT - + 59 ) * - - COUNT( * ) * COUNT( DISTINCT - 19 ) AS col0, 89 * - 72 - 87 AS col0
----
-14
-6495

skipif mysql # not compatible
query II rowsort label-2864
SELECT DISTINCT - CAST ( - 66 AS INTEGER ) * COUNT ( * ) / 34 * - 73 - + + MIN ( DISTINCT - + 59 ) * - - COUNT ( * ) * COUNT ( DISTINCT - 19 ) AS col0, 89 * - 72 - 87 AS col0
----
-14
-6495

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT DISTINCT COUNT( * ), + 85 AS col2
----
1
85

skipif mysql # not compatible
query II rowsort label-2865
SELECT DISTINCT COUNT ( * ), + 85 AS col2
----
1
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2866
SELECT - CAST( - NULLIF ( 72, - 72 * 6 + 45 * + 18 * + CAST( NULL AS SIGNED ) - + COUNT( * ) * 64 ) AS SIGNED ) + 93
----
165

skipif mysql # not compatible
query I rowsort label-2866
SELECT - CAST ( - NULLIF ( 72, - 72 * 6 + 45 * + 18 * + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * 64 ) AS INTEGER ) + 93
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2867
SELECT - COALESCE ( + 14, - - 56 DIV - 89 DIV - 33 + + COUNT( * ) * - - NULLIF ( + 89, + + 82 ) + + - 26 * + 53 + + MIN( DISTINCT + + ( + COALESCE ( 14, - NULLIF ( + 7, - 69 DIV 67 - + 27 * - 68 ) * + CAST( NULL AS SIGNED ), 60 ) ) ) * - 37 ) * + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT - COALESCE ( + 14, - - 56 / - 89 / - 33 + + COUNT ( * ) * - - NULLIF ( + 89, + + 82 ) + + - 26 * + 53 + + MIN ( DISTINCT + + ( + COALESCE ( 14, - NULLIF ( + 7, - 69 / 67 - + 27 * - 68 ) * + CAST ( NULL AS INTEGER ), 60 ) ) ) * - 37 ) * + 0 AS col0
----
0

query I rowsort
SELECT + 25 + + - 50
----
-25

query II rowsort
SELECT - 7 + ( - + 88 ) AS col2, + 23
----
-95
23

query I rowsort
SELECT DISTINCT + 26 * + + 97
----
2522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT ALL - CASE COALESCE ( - 87, + ( - + NULLIF ( - 49, + COALESCE ( + - 65, CAST( - 81 AS SIGNED ), 63 + + - 51 * - 56, 17 ) + + MIN( ALL + ( ( ( 65 ) ) ) ) * + 24 ) ) ) WHEN + 74 + - CAST( NULL AS SIGNED ) THEN + 38 * 98 + 21 ELSE NULL END * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL - CASE COALESCE ( - 87, + ( - + NULLIF ( - 49, + COALESCE ( + - 65, CAST ( - 81 AS INTEGER ), 63 + + - 51 * - 56, 17 ) + + MIN ( ALL + ( ( ( 65 ) ) ) ) * + 24 ) ) ) WHEN + 74 + - CAST ( NULL AS INTEGER ) THEN + 38 * 98 + 21 ELSE NULL END * 12
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2873
SELECT - 65, 73 * COUNT( * ) col0
----
-65
73

skipif mysql # not compatible
query II rowsort label-2873
SELECT - 65, 73 * COUNT ( * ) col0
----
-65
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2874
SELECT ALL + CAST( + MAX( DISTINCT 44 ) AS SIGNED ) DIV 20 + + CASE 99 WHEN - 35 * + + CAST( + + CASE 9 WHEN + - 88 * - 41 + - ( 18 ) + 84 DIV 28 THEN NULL WHEN - COUNT( * ) THEN - 0 + 5 * - 8 WHEN - 92 + 30 THEN + 50 ELSE + 89 * 53 END AS SIGNED ) + 48 THEN NULL WHEN 87 * + 74 THEN NULL ELSE 18 * - 23 END + 17 * - 30
----
-922

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL + CAST ( + MAX ( DISTINCT 44 ) AS INTEGER ) / 20 + + CASE 99 WHEN - 35 * + + CAST ( + + CASE 9 WHEN + - 88 * - 41 + - ( 18 ) + 84 / 28 THEN NULL WHEN - COUNT ( * ) THEN - 0 + 5 * - 8 WHEN - 92 + 30 THEN + 50 ELSE + 89 * 53 END AS INTEGER ) + 48 THEN NULL WHEN 87 * + 74 THEN NULL ELSE 18 * - 23 END + 17 * - 30
----
-922

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT + COUNT( * ) * MAX( - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT + COUNT ( * ) * MAX ( - 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT - 48 + + + 3 / - + CASE - COALESCE ( + 61, ( - 6 ) + 6 * - 36 * + - 58 + - 38 ) WHEN + NULLIF ( 89, COUNT( * ) + 55 ) + 27 * 86 THEN ( + 14 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT - 48 + + + 3 / - + CASE - COALESCE ( + 61, ( - 6 ) + 6 * - 36 * + - 58 + - 38 ) WHEN + NULLIF ( 89, COUNT ( * ) + 55 ) + 27 * 86 THEN ( + 14 ) END col0
----
NULL

query II rowsort
SELECT + 76 AS col2, NULLIF ( + 53, + + 60 ) + 91 + - - 6 + - 40
----
76
110

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT 64 * - 53 + COALESCE ( - 64, 28, 79 * - 52 + + 71 * + + COUNT( * ), - - ( + 14 ) ) + + 18 * - - 9 + - 74 AS col1
----
-3368

skipif mysql # not compatible
query I rowsort label-2880
SELECT 64 * - 53 + COALESCE ( - 64, 28, 79 * - 52 + + 71 * + + COUNT ( * ), - - ( + 14 ) ) + + 18 * - - 9 + - 74 AS col1
----
-3368

onlyif mysql # aggregate syntax: 
query II rowsort label-2881
SELECT COUNT( * ) AS col1, - 19 * - + COUNT( * ) * 91
----
1
1729

skipif mysql # not compatible
query II rowsort label-2881
SELECT COUNT ( * ) AS col1, - 19 * - + COUNT ( * ) * 91
----
1
1729

query I rowsort
SELECT ALL - 85 * + 13 col2
----
-1105

onlyif mysql # aggregate syntax: 
query II rowsort label-2883
SELECT + + 53 col1, CASE - 34 WHEN + 88 THEN - + COUNT( * ) + 29 - + COUNT( * ) WHEN 57 / - 22 THEN NULL END AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-2883
SELECT + + 53 col1, CASE - 34 WHEN + 88 THEN - + COUNT ( * ) + 29 - + COUNT ( * ) WHEN 57 / - 22 THEN NULL END AS col1
----
53
NULL

query I rowsort
SELECT + ( + 14 ) * - + 28 AS col1
----
-392

query II rowsort
SELECT ALL - - 70 AS col0, - 53 AS col1
----
70
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2886
SELECT ALL + - 90 - + SUM( + - 51 ) AS col1, - 97 + - 84 + + - 8 + 68 + + + 15 + + + 22 + - 54 + + COALESCE ( - + 97, - 18, COUNT( * ) DIV - 43 ) DIV 26 * + 6 * - 0 * 77
----
-39
-138

skipif mysql # not compatible
query II rowsort label-2886
SELECT ALL + - 90 - + SUM ( + - 51 ) AS col1, - 97 + - 84 + + - 8 + 68 + + + 15 + + + 22 + - 54 + + COALESCE ( - + 97, - 18, COUNT ( * ) / - 43 ) / 26 * + 6 * - 0 * 77
----
-39
-138

query II rowsort
SELECT - ( 52 ) * + 59, 68 * + 21 + + + 72 AS col1
----
-3068
1500

query I rowsort
SELECT + 73 * 55 * + 62 - 96 + ( + 77 ) AS col1
----
248911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2889
SELECT DISTINCT + CASE COUNT( DISTINCT - 72 ) WHEN + CAST( - - COUNT( * ) AS SIGNED ) THEN - - MIN( 49 ) DIV - ( + + 11 ) + - 39 END * + + 63 * - 9 + 75
----
24456

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT + CASE COUNT ( DISTINCT - 72 ) WHEN + CAST ( - - COUNT ( * ) AS INTEGER ) THEN - - MIN ( 49 ) / - ( + + 11 ) + - 39 END * + + 63 * - 9 + 75
----
24456

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT ALL - - 10 AS col0, + NULLIF ( 28, 73 * + - ( - COUNT( * ) ) * + 52 ) + - 9
----
10
19

skipif mysql # not compatible
query II rowsort label-2890
SELECT ALL - - 10 AS col0, + NULLIF ( 28, 73 * + - ( - COUNT ( * ) ) * + 52 ) + - 9
----
10
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2891
SELECT 99 DIV - 38 - + - ( - + 4 ) + 8 + - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2891
SELECT 99 / - 38 - + - ( - + 4 ) + 8 + - + COUNT ( * )
----
1

query I rowsort
SELECT 86 * - NULLIF ( + 18, + + 52 + - - 74 + + - 90 + + 12 ) * + 52 * 13 + - 64
----
-1046512

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT - 94 - SUM( DISTINCT 22 )
----
-116

skipif mysql # not compatible
query I rowsort label-2893
SELECT - 94 - SUM ( DISTINCT 22 )
----
-116

query I rowsort
SELECT ALL - CASE ( + ( 15 ) ) WHEN + 31 THEN 96 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL SUM( ALL + 77 ) * - 79 + - + 2
----
-6085

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL SUM ( ALL + 77 ) * - 79 + - + 2
----
-6085

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

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL COUNT ( * ) + - 93 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT COUNT( * ) * - 35 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-2898
SELECT COUNT ( * ) * - 35 AS col2
----
-35

query I rowsort
SELECT ALL 20 + 22
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2900
SELECT DISTINCT 13 + - - 68 DIV - MIN( + 63 ) + 69, 75 AS col2
----
81
75

skipif mysql # not compatible
query II rowsort label-2900
SELECT DISTINCT 13 + - - 68 / - MIN ( + 63 ) + 69, 75 AS col2
----
81
75

query I rowsort
SELECT ALL 84 + + 25 * + 93
----
2409

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT ALL - CASE - 86 WHEN - 79 THEN + - 17 / 86 + - - ( 58 ) / 69 WHEN - - 76 THEN + - COUNT( * ) + + 22 * - COUNT( * ) END + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL - CASE - 86 WHEN - 79 THEN + - 17 / 86 + - - ( 58 ) / 69 WHEN - - 76 THEN + - COUNT ( * ) + + 22 * - COUNT ( * ) END + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL + 13 + + COUNT( ALL + 94 )
----
14

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL + 13 + + COUNT ( ALL + 94 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2905
SELECT 23 * COALESCE ( + 56, - COUNT( * ) DIV + + 92 * + 90 * - + 37 + 97 ) * - 27 AS col0
----
-34776

skipif mysql # not compatible
query I rowsort label-2905
SELECT 23 * COALESCE ( + 56, - COUNT ( * ) / + + 92 * + 90 * - + 37 + 97 ) * - 27 AS col0
----
-34776

query II rowsort
SELECT 26 + + 86 + - + 69 * 89 AS col1, + 70 + + 29 AS col2
----
-6029
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT 4 - - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-2908
SELECT 4 - - COUNT ( * )
----
5

query I rowsort
SELECT - 60 * - - 66 + - - 93
----
-3867

query I rowsort
SELECT 48 * 68 AS col1
----
3264

onlyif mysql # DIV for integer division: 
query I rowsort label-2911
SELECT 5 DIV - + 22 * 58 + - 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2911
SELECT 5 / - + 22 * 58 + - 75 AS col0
----
-75

query I rowsort
SELECT ALL + + 67 * + 49 * + + 42 + - + COALESCE ( - 22, + 50 )
----
137908

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT + 70 - - + COUNT( * ) - - - 19
----
52

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + 70 - - + COUNT ( * ) - - - 19
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT + + 92 - - 8 + + - COUNT( - ( + 59 ) ) - - + 46 * - - 54 * + - ( - - CASE - - 82 WHEN - 92 + 42 THEN - 56 END ) + + 56 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT + + 92 - - 8 + + - COUNT ( - ( + 59 ) ) - - + 46 * - - 54 * + - ( - - CASE - - 82 WHEN - 92 + 42 THEN - 56 END ) + + 56 col2
----
NULL

query I rowsort
SELECT ALL - + 58 AS col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2917
SELECT + - NULLIF ( + 11, - SUM( ALL 32 ) ) DIV + - 37 + 85 - 27 AS col1, CASE COUNT( * ) WHEN + - 33 DIV + COUNT( DISTINCT + 40 ) - - 35 THEN - 9 WHEN 58 DIV - 15 + + 81 THEN NULL END AS col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-2917
SELECT + - NULLIF ( + 11, - SUM ( ALL 32 ) ) / + - 37 + 85 - 27 AS col1, CASE COUNT ( * ) WHEN + - 33 / + COUNT ( DISTINCT + 40 ) - - 35 THEN - 9 WHEN 58 / - 15 + + 81 THEN NULL END AS col1
----
58
NULL

query I rowsort
SELECT 22 * - 9 AS col1
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT COUNT( * ) + 29 * NULLIF ( - - 54, - 37 + + - 60 )
----
1567

skipif mysql # not compatible
query I rowsort label-2919
SELECT COUNT ( * ) + 29 * NULLIF ( - - 54, - 37 + + - 60 )
----
1567

query I rowsort
SELECT + + 88 * 12 + - - 65
----
1121

query I rowsort
SELECT ALL - + 17 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT 1 * + - ( - + CAST( + 29 AS SIGNED ) ) AS col0
----
29

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

query I rowsort
SELECT + 91 + - + ( + - 14 ) col2
----
105

query I rowsort
SELECT DISTINCT - + ( + - 34 ) AS col0
----
34

query I rowsort
SELECT DISTINCT - - 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL 44 * 33 * - - COUNT( * ) + + COUNT( * ) AS col1
----
1453

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL 44 * 33 * - - COUNT ( * ) + + COUNT ( * ) AS col1
----
1453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2927
SELECT ALL + COUNT( * ) * - 47 - - 15 DIV - - 31 - + - 73 * 32 AS col0
----
2289

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL + COUNT ( * ) * - 47 - - 15 / - - 31 - + - 73 * 32 AS col0
----
2289

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT DISTINCT - ( COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT - ( COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT 40 + + + 15 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT DISTINCT + 3 * MAX( + 58 )
----
174

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT + 3 * MAX ( + 58 )
----
174

query I rowsort
SELECT ALL + 44 + + 34
----
78

query I rowsort
SELECT ALL 42 col2
----
42

query I rowsort
SELECT 88 + - - 2 col0
----
90

query I rowsort
SELECT DISTINCT - 99 + + 81 + - 61 * 87 + 53 * + 11 - - CASE - + 97 WHEN 94 - + 84 THEN + 3 - + 14 END
----
NULL

query II rowsort
SELECT - 98 col0, 96 - - + 64 AS col1
----
-98
160

query I rowsort
SELECT ALL + 35 + 55 col0
----
90

query II rowsort
SELECT ALL 25 + - + 91 + - - 30 col0, + 37 col1
----
-36
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2938
SELECT 17 * COUNT( DISTINCT - 6 ) DIV + + COUNT( * ) col0
----
17

skipif mysql # not compatible
query I rowsort label-2938
SELECT 17 * COUNT ( DISTINCT - 6 ) / + + COUNT ( * ) col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT ALL 37 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL 37 / - 49
----
0

query I rowsort
SELECT DISTINCT 59 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT - MAX( - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-2941
SELECT - MAX ( - 92 )
----
92

query I rowsort
SELECT - 36 + + 14 col2
----
-22

query I rowsort
SELECT + 12 + + - 29
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + 18 - - ( - COUNT( * ) ) - - COUNT( * ) + + + 27 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-2944
SELECT + 18 - - ( - COUNT ( * ) ) - - COUNT ( * ) + + + 27 AS col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2945
SELECT DISTINCT 22 AS col0, 25 * - NULLIF ( - MAX( ALL + 72 ), - NULLIF ( + COUNT( * ), - 45 + 12 ) ) + + + 58 * ( - - 8 ) * 54 * - 40 DIV - COALESCE ( - COUNT( * ), - 58 ) + + 6
----
22
-1000434

skipif mysql # not compatible
query II rowsort label-2945
SELECT DISTINCT 22 AS col0, 25 * - NULLIF ( - MAX ( ALL + 72 ), - NULLIF ( + COUNT ( * ), - 45 + 12 ) ) + + + 58 * ( - - 8 ) * 54 * - 40 / - COALESCE ( - COUNT ( * ), - 58 ) + + 6
----
22
-1000434

query I rowsort
SELECT ALL ( - - 30 ) * - 96 * 69 AS col0
----
-198720

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT + 88 + 4 DIV - + 60
----
88

skipif mysql # not compatible
query I rowsort label-2947
SELECT + 88 + 4 / - + 60
----
88

query I rowsort
SELECT ALL 76 - + + 0 col2
----
76

query I rowsort
SELECT + 82 + - - CASE + + ( - - 21 ) WHEN - - 8 * 39 THEN 88 END
----
NULL

query I rowsort
SELECT ALL + - 99 AS col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2951
SELECT - + 78 DIV - + 53 + 5 + - COUNT( * ) * - + 0 * - 25 DIV COALESCE ( 28, - COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-2951
SELECT - + 78 / - + 53 + 5 + - COUNT ( * ) * - + 0 * - 25 / COALESCE ( 28, - COUNT ( * ) )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2952
SELECT DISTINCT + + COUNT( * ), 15 AS col0
----
1
15

skipif mysql # not compatible
query II rowsort label-2952
SELECT DISTINCT + + COUNT ( * ), 15 AS col0
----
1
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + 82 + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-2953
SELECT + 82 + + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2954
SELECT + 26 * 24 * COUNT( * ) AS col0, - SUM( DISTINCT - 84 ) * 31 col1
----
624
2604

skipif mysql # not compatible
query II rowsort label-2954
SELECT + 26 * 24 * COUNT ( * ) AS col0, - SUM ( DISTINCT - 84 ) * 31 col1
----
624
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT + + SUM( - 17 ) * - COUNT( * ) + + 26 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2955
SELECT + + SUM ( - 17 ) * - COUNT ( * ) + + 26 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT + - NULLIF ( 14, + - COUNT( ALL + 66 ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2956
SELECT + - NULLIF ( 14, + - COUNT ( ALL + 66 ) ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT DISTINCT 83 * + + 12 + - 47 * - - MAX( - + 89 ) + + + 67 * + 57
----
8998

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT 83 * + + 12 + - 47 * - - MAX ( - + 89 ) + + + 67 * + 57
----
8998

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT + + 36 * - COUNT( * ) * 20
----
-720

skipif mysql # not compatible
query I rowsort label-2958
SELECT + + 36 * - COUNT ( * ) * 20
----
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT ALL ( + COUNT( * ) ) DIV - 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL ( + COUNT ( * ) ) / - 22 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2960
SELECT + ( - - 2 ) DIV + NULLIF ( + + 48, - - ( 57 ) ) + 15
----
15

skipif mysql # not compatible
query I rowsort label-2960
SELECT + ( - - 2 ) / + NULLIF ( + + 48, - - ( 57 ) ) + 15
----
15

query I rowsort
SELECT DISTINCT - 9 * - + 72
----
648

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2963
SELECT ALL + 60 AS col2, ( + 23 ) * COUNT( * ) AS col0
----
60
23

skipif mysql # not compatible
query II rowsort label-2963
SELECT ALL + 60 AS col2, ( + 23 ) * COUNT ( * ) AS col0
----
60
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2964
SELECT ALL 48 * CAST( - 59 AS SIGNED ) * - NULLIF ( - COALESCE ( + ( 34 ), - 22, - 78 DIV + - 82 ), + COUNT( * ) ) * + + 41 + + + 49 + + + 98 - + 89 * + 1 * - 0 + 58
----
-3947603

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL 48 * CAST ( - 59 AS INTEGER ) * - NULLIF ( - COALESCE ( + ( 34 ), - 22, - 78 / + - 82 ), + COUNT ( * ) ) * + + 41 + + + 49 + + + 98 - + 89 * + 1 * - 0 + 58
----
-3947603

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL - 65 * MIN( DISTINCT 19 )
----
-1235

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL - 65 * MIN ( DISTINCT 19 )
----
-1235

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT - COUNT( DISTINCT + 24 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2967
SELECT - COUNT ( DISTINCT + 24 ) AS col2
----
-1

query II rowsort
SELECT DISTINCT + 12 * + 58 + - 91 AS col2, 72
----
605
72

query I rowsort
SELECT ALL + 76 * 98 * - 38 + - 64 * + 43 AS col2
----
-285776

query I rowsort
SELECT - - 46 * - 62
----
-2852

query I rowsort
SELECT + 85 * + - 33 - - 41 + - 57 + - 2
----
-2823

query II rowsort
SELECT + 85, + 3 AS col1
----
85
3

query I rowsort
SELECT ALL + ( - + 32 ) AS col2
----
-32

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

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

query II rowsort
SELECT DISTINCT 35 * - 5 + + 87 * - 76 AS col2, 73 * + 46 * - 38
----
-6787
-127604

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT ALL CASE + 77 WHEN COUNT( * ) THEN 17 WHEN + + CASE 65 WHEN + 63 + 91 THEN - 37 END / + 2 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL CASE + 77 WHEN COUNT ( * ) THEN 17 WHEN + + CASE 65 WHEN + 63 + 91 THEN - 37 END / + 2 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 49 + NULLIF ( - 4, + AVG ( 4 ) + - 60 ) + + 73 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT - 31 - + + NULLIF ( - + ( + COUNT( * ) ), + - NULLIF ( COALESCE ( + CAST( MIN( 84 ) AS SIGNED ), + 81, 64 * - - ( - 6 ) * + COUNT( DISTINCT CAST( - 65 AS SIGNED ) ) * 11 + + ( COUNT( * ) + + 38 ) * 65 - 2 ), + 38 * 23 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-2978
SELECT - 31 - + + NULLIF ( - + ( + COUNT ( * ) ), + - NULLIF ( COALESCE ( + CAST ( MIN ( 84 ) AS INTEGER ), + 81, 64 * - - ( - 6 ) * + COUNT ( DISTINCT CAST ( - 65 AS INTEGER ) ) * 11 + + ( COUNT ( * ) + + 38 ) * 65 - 2 ), + 38 * 23 ) )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2979
SELECT ALL 52 AS col1, + 58 * + + COUNT( * ) * - COALESCE ( + 60, - + 91 * + CAST( + - MAX( ALL + 58 ) AS SIGNED ) - + ( - COUNT( * ) ) ) * 78 AS col1
----
52
-271440

skipif mysql # not compatible
query II rowsort label-2979
SELECT ALL 52 AS col1, + 58 * + + COUNT ( * ) * - COALESCE ( + 60, - + 91 * + CAST ( + - MAX ( ALL + 58 ) AS INTEGER ) - + ( - COUNT ( * ) ) ) * 78 AS col1
----
52
-271440

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT - MAX( - - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-2980
SELECT - MAX ( - - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT DISTINCT + COUNT( ALL 75 ) + - 19 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + COUNT ( ALL 75 ) + - 19 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL + ( + COUNT( * ) ) - - 18 + + 74
----
93

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL + ( + COUNT ( * ) ) - - 18 + + 74
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT - 71 + NULLIF ( + + 77, + ( COALESCE ( - - ( - - 20 ), + + COUNT( * ) - + - 2, - 39 * SUM( - COALESCE ( + 59, 88 ) ) ) ) * - + 6 + 42 ) + 99 * - 33 * - 12
----
39210

skipif mysql # not compatible
query I rowsort label-2983
SELECT - 71 + NULLIF ( + + 77, + ( COALESCE ( - - ( - - 20 ), + + COUNT ( * ) - + - 2, - 39 * SUM ( - COALESCE ( + 59, 88 ) ) ) ) * - + 6 + 42 ) + 99 * - 33 * - 12
----
39210

query I rowsort
SELECT + 77 * + 74
----
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL - NULLIF ( - + COUNT( * ), 6 ) * - - NULLIF ( + - SUM( + 95 ), 45 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL - NULLIF ( - + COUNT ( * ), 6 ) * - - NULLIF ( + - SUM ( + 95 ), 45 ) AS col0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2986
SELECT ALL + AVG ( DISTINCT - + 1 ) - + CASE + 63 WHEN 20 THEN + 63 * - 90 / + - 9 - - - CAST( NULL AS SIGNED ) - + CAST( + 54 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + AVG ( DISTINCT - + 1 ) - + CASE + 63 WHEN 20 THEN + 63 * - 90 / + - 9 - - - CAST ( NULL AS INTEGER ) - + CAST ( + 54 AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT DISTINCT 18 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT 18 / + 46
----
0

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

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

query I rowsort
SELECT + 41 * + 16 AS col1
----
656

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT ALL COUNT( * ) AS col2, 52 * + - 7
----
1
-364

skipif mysql # not compatible
query II rowsort label-2992
SELECT ALL COUNT ( * ) AS col2, 52 * + - 7
----
1
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT - 19 - + 70 + + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-2993
SELECT - 19 - + 70 + + COUNT ( * ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT - - 57 * - COUNT( * ) * + + 60 + + 60 AS col2
----
-3360

skipif mysql # not compatible
query I rowsort label-2994
SELECT - - 57 * - COUNT ( * ) * + + 60 + + 60 AS col2
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT + - ( + 15 ) * + 7 + - ( - 61 ) * + COUNT( * ) + - - 49
----
5

skipif mysql # not compatible
query I rowsort label-2995
SELECT + - ( + 15 ) * + 7 + - ( - 61 ) * + COUNT ( * ) + - - 49
----
5

query I rowsort
SELECT DISTINCT CASE - + 65 WHEN - 20 * 94 THEN NULL WHEN 90 THEN NULL ELSE - + 63 END * + + 69 AS col1
----
-4347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2997
SELECT + COUNT( * ) / + SUM( + + CAST( NULL AS SIGNED ) ) + - 61 * + 97 * + - MAX( ALL + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT + COUNT ( * ) / + SUM ( + + CAST ( NULL AS INTEGER ) ) + - 61 * + 97 * + - MAX ( ALL + 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT + COUNT( + 89 ) * + + 85 * 53 + + COUNT( * )
----
4506

skipif mysql # not compatible
query I rowsort label-2998
SELECT + COUNT ( + 89 ) * + + 85 * 53 + + COUNT ( * )
----
4506

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL + COALESCE ( + COALESCE ( - COUNT( * ), - 49 + 63, - 54 ), - 26 + - 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL + COALESCE ( + COALESCE ( - COUNT ( * ), - 49 + 63, - 54 ), - 26 + - 78 )
----
-1

query I rowsort
SELECT + - 99 - 3 AS col0
----
-102

query I rowsort
SELECT DISTINCT + + 22 col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + + 30 + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3002
SELECT + + 30 + COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3003
SELECT + 12 * - - 91 * - + 77 - 80 + - - 85 + - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT + 12 * - - 91 * - + 77 - 80 + - - 85 + - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3004
SELECT ALL 4 DIV + 70 + NULLIF ( 58, + 74 ) - + 87 + - NULLIF ( + + 37, + + 68 + - 39 ) - - - ( - 54 ) * - 93 col1
----
-5088

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL 4 / + 70 + NULLIF ( 58, + 74 ) - + 87 + - NULLIF ( + + 37, + + 68 + - 39 ) - - - ( - 54 ) * - 93 col1
----
-5088

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT ALL + 22 DIV + 28 + + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL + 22 / + 28 + + 62 AS col0
----
62

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

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

query I rowsort
SELECT ALL 2 * - - ( + - 18 ) + + 40 AS col2
----
4

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

skipif mysql # not compatible
query I rowsort label-3008
SELECT - COUNT ( ALL + 61 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3009
SELECT DISTINCT 26 DIV COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT 26 / COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT + 38 + 46 + + + COUNT( DISTINCT 27 )
----
85

skipif mysql # not compatible
query I rowsort label-3010
SELECT + 38 + 46 + + + COUNT ( DISTINCT 27 )
----
85

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3012
SELECT + 55 * + 12 DIV - COUNT( * )
----
-660

skipif mysql # not compatible
query I rowsort label-3012
SELECT + 55 * + 12 / - COUNT ( * )
----
-660

query I rowsort
SELECT ALL 61 * - 2
----
-122

query I rowsort
SELECT DISTINCT 96 * - 16 * - + ( - - 45 )
----
69120

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT ( - + COALESCE ( ( + 26 ), COUNT( DISTINCT + 43 ), 96 + + 78 * + 91 * + 32 - - 46 ) ) - - ( 40 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT ( - + COALESCE ( ( + 26 ), COUNT ( DISTINCT + 43 ), 96 + + 78 * + 91 * + 32 - - 46 ) ) - - ( 40 ) AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3016
SELECT ALL COUNT( * ) - - ( - ( + - 44 ) ) + + COUNT( * ) DIV - 14 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL COUNT ( * ) - - ( - ( + - 44 ) ) + + COUNT ( * ) / - 14 AS col2
----
45

query I rowsort
SELECT 33 * 85 AS col0
----
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT COUNT( - 94 ) * - 48 + + 89 * + 69 * 48
----
294720

skipif mysql # not compatible
query I rowsort label-3018
SELECT COUNT ( - 94 ) * - 48 + + 89 * + 69 * 48
----
294720

query I rowsort
SELECT ALL - ( - - 30 ) - - 53 * + 49 AS col1
----
2567

query II rowsort
SELECT 7 * + - 81 col1, + 49
----
-567
49

query I rowsort
SELECT 13 + 83 AS col1
----
96

query I rowsort
SELECT 23 + 87 AS col2
----
110

query I rowsort
SELECT ALL 54 - + CASE - 53 WHEN - 54 THEN COALESCE ( 17, + + 63 + + - 22 + - 0 ) + - 87 WHEN + 61 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 32 * - - 91 AS col1
----
2912

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3025
SELECT ALL - 73 * + 15 AS col0, 13 * - - COUNT( * ) DIV 46 * - + 6 col1
----
-1095
0

skipif mysql # not compatible
query II rowsort label-3025
SELECT ALL - 73 * + 15 AS col0, 13 * - - COUNT ( * ) / 46 * - + 6 col1
----
-1095
0

query I rowsort
SELECT DISTINCT - 64 * - 11 * + + 97
----
68288

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT 48 + COUNT( * ) * + 34
----
82

skipif mysql # not compatible
query I rowsort label-3027
SELECT 48 + COUNT ( * ) * + 34
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-3028
SELECT 51 * COUNT( * ), 59 + - COUNT( ALL + COALESCE ( + + 32, 72 + + + 89 * - 5 ) ) AS col0
----
51
58

skipif mysql # not compatible
query II rowsort label-3028
SELECT 51 * COUNT ( * ), 59 + - COUNT ( ALL + COALESCE ( + + 32, 72 + + + 89 * - 5 ) ) AS col0
----
51
58

query I rowsort
SELECT 58 + 84 + 43 col0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) * + - 90 * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) * + - 90 * + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT 97 + COUNT( DISTINCT + 77 ) * COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-3031
SELECT 97 + COUNT ( DISTINCT + 77 ) * COUNT ( * )
----
98

query I rowsort
SELECT 30 + - 74
----
-44

query I rowsort
SELECT + 87 + + 20 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT - - 6 + + COALESCE ( - COALESCE ( 59, 79 ), - 79 + - NULLIF ( + COUNT( * ), 24 ) * 67 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT - - 6 + + COALESCE ( - COALESCE ( 59, 79 ), - 79 + - NULLIF ( + COUNT ( * ), 24 ) * 67 ) AS col1
----
-53

query I rowsort
SELECT ALL + ( + 23 ) col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3036
SELECT ALL - 9 + + - COUNT( * ) - + - 92 AS col1, + 31 AS col1
----
82
31

skipif mysql # not compatible
query II rowsort label-3036
SELECT ALL - 9 + + - COUNT ( * ) - + - 92 AS col1, + 31 AS col1
----
82
31

query I rowsort
SELECT DISTINCT + 81 + 95
----
176

query I rowsort
SELECT 45 + + + 56 * + - 14 AS col2
----
-739

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ALL + + 64 + COUNT( DISTINCT - + 79 ) * - - 11
----
75

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL + + 64 + COUNT ( DISTINCT - + 79 ) * - - 11
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3040
SELECT - 20 * 41 * - COUNT( * ) * - CAST( - 16 AS SIGNED ) AS col1
----
13120

skipif mysql # not compatible
query I rowsort label-3040
SELECT - 20 * 41 * - COUNT ( * ) * - CAST ( - 16 AS INTEGER ) AS col1
----
13120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT DISTINCT + CASE + + ( 92 ) WHEN + 87 * 9 THEN 61 WHEN - - 49 + COUNT( * ) + + COUNT( * ) + 21 THEN + 22 + - - 74 + + - ( + 84 ) + + + AVG ( ALL + 92 ) * - - 98 END * + ( 89 + - NULLIF ( + COUNT( * ) + NULLIF ( ( 6 ), 73 + 4 ), + 21 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT + CASE + + ( 92 ) WHEN + 87 * 9 THEN 61 WHEN - - 49 + COUNT ( * ) + + COUNT ( * ) + 21 THEN + 22 + - - 74 + + - ( + 84 ) + + + AVG ( ALL + 92 ) * - - 98 END * + ( 89 + - NULLIF ( + COUNT ( * ) + NULLIF ( ( 6 ), 73 + 4 ), + 21 ) ) AS col0
----
NULL

query II rowsort
SELECT ALL 90 * + 64 AS col0, 32 * + - 81 AS col0
----
5760
-2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT - 60 * + 33 * 32 - - - CAST( 26 AS SIGNED )
----
-63386

skipif mysql # not compatible
query I rowsort label-3044
SELECT - 60 * + 33 * 32 - - - CAST ( 26 AS INTEGER )
----
-63386

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT DISTINCT - - SUM( DISTINCT + 23 ) * + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT - - SUM ( DISTINCT + 23 ) * + COUNT ( * ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3047
SELECT ALL ( 31 ) - + 25 + + 56 + + CASE + COUNT( DISTINCT + + 22 ) WHEN - + 10 THEN NULL WHEN + + 50 + COALESCE ( + CAST( NULL AS SIGNED ), + COUNT( * ) ) THEN - 6 / - 42 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL ( 31 ) - + 25 + + 56 + + CASE + COUNT ( DISTINCT + + 22 ) WHEN - + 10 THEN NULL WHEN + + 50 + COALESCE ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) ) THEN - 6 / - 42 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 75, - 23 AS col0
----
-75
-23

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

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT - SUM ( - 8 )
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-3050
SELECT 43, ( + 95 ) DIV 5 - + 96 AS col0
----
43
-77

skipif mysql # not compatible
query II rowsort label-3050
SELECT 43, ( + 95 ) / 5 - + 96 AS col0
----
43
-77

query II rowsort
SELECT DISTINCT - 65 col1, 54 * 36 AS col1
----
-65
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT 50 * + ( 49 ) * + 47 + - NULLIF ( - 66, 73 * - 7 - - 87 ) + - - COUNT( - 31 ) * 8 - - 81 + - COUNT( * )
----
115304

skipif mysql # not compatible
query I rowsort label-3052
SELECT 50 * + ( 49 ) * + 47 + - NULLIF ( - 66, 73 * - 7 - - 87 ) + - - COUNT ( - 31 ) * 8 - - 81 + - COUNT ( * )
----
115304

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT NULLIF ( + + 79, - + ( COUNT( * ) ) ) * - - 91 AS col2
----
7189

skipif mysql # not compatible
query I rowsort label-3053
SELECT NULLIF ( + + 79, - + ( COUNT ( * ) ) ) * - - 91 AS col2
----
7189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3054
SELECT ALL COUNT( * ) DIV + + ( + COALESCE ( + 49, - CAST( 51 AS SIGNED ) + 22 DIV 26 + 49 * + - 13 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL COUNT ( * ) / + + ( + COALESCE ( + 49, - CAST ( 51 AS INTEGER ) + 22 / 26 + 49 * + - 13 ) )
----
0

query I rowsort
SELECT 16 - + 12 * + 39
----
-452

query I rowsort
SELECT ALL ( 9 ) * - + 73 AS col0
----
-657

query I rowsort
SELECT ALL - 87 * + 1
----
-87

query I rowsort
SELECT 42 * 87 AS col1
----
3654

query I rowsort
SELECT + 94 * + 86 - + 24
----
8060

onlyif mysql # DIV for integer division: 
query II rowsort label-3060
SELECT NULLIF ( - - 17, - 78 ) DIV + 87 AS col2, 57
----
0
57

skipif mysql # not compatible
query II rowsort label-3060
SELECT NULLIF ( - - 17, - 78 ) / + 87 AS col2, 57
----
0
57

query I rowsort
SELECT 58 * 8
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT ( MAX( DISTINCT - - 56 ) ) * - 92 AS col1
----
-5152

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT ( MAX ( DISTINCT - - 56 ) ) * - 92 AS col1
----
-5152

query I rowsort
SELECT ALL 0 * - 48
----
0

query I rowsort
SELECT 32 * + 40
----
1280

query I rowsort
SELECT 67 * 1
----
67

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

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

query I rowsort
SELECT - CASE + 71 WHEN + 23 * - 80 * + - 15 + - 67 + - 23 * + 80 + + + 39 THEN - 0 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3068
SELECT - MIN ( DISTINCT - - 3 )
----
-3

query I rowsort
SELECT ALL 75 * - 91 AS col2
----
-6825

query I rowsort
SELECT 45 * 47
----
2115

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL - 13 + + 19 + 97 * - + 1 * + 80 + - 34 * - COUNT( * )
----
-7720

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL - 13 + + 19 + 97 * - + 1 * + 80 + - 34 * - COUNT ( * )
----
-7720

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT + COUNT( 84 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3072
SELECT + COUNT ( 84 ) AS col1
----
1

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

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

query I rowsort
SELECT ALL - ( + ( + 17 ) ) * + 14
----
-238

query II rowsort
SELECT DISTINCT + 9 AS col2, - 68 col2
----
9
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT - MIN( - - 53 ) * + 32 * - + 47 + - COUNT( * )
----
79711

skipif mysql # not compatible
query I rowsort label-3076
SELECT - MIN ( - - 53 ) * + 32 * - + 47 + - COUNT ( * )
----
79711

query I rowsort
SELECT ALL + - 12 + - NULLIF ( - 36, + - 40 * 99 ) col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3078
SELECT - 95 + - CASE + 3 WHEN + ( - 36 ) * + - 1 * + 52 + + COUNT( * ) + + 81 THEN NULL ELSE + - 92 + - - 37 END * - ( + + 0 ) AS col1, - 86 AS col2
----
-95
-86

skipif mysql # not compatible
query II rowsort label-3078
SELECT - 95 + - CASE + 3 WHEN + ( - 36 ) * + - 1 * + 52 + + COUNT ( * ) + + 81 THEN NULL ELSE + - 92 + - - 37 END * - ( + + 0 ) AS col1, - 86 AS col2
----
-95
-86

query I rowsort
SELECT ALL - 77 + - 90 col1
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT 1 + 26 + COUNT( * ) * - 9 + + + 51 + - - SUM( DISTINCT - + 44 )
----
25

skipif mysql # not compatible
query I rowsort label-3080
SELECT 1 + 26 + COUNT ( * ) * - 9 + + + 51 + - - SUM ( DISTINCT - + 44 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT + COUNT( * ) + + - 54 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-3081
SELECT + COUNT ( * ) + + - 54 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT + 86 * + SUM( ALL 99 ) AS col1
----
8514

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT + 86 * + SUM ( ALL 99 ) AS col1
----
8514

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT ALL + + 70 * + 43 * - + 0 / + CAST( NULL AS SIGNED ) * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL + + 70 * + 43 * - + 0 / + CAST ( NULL AS INTEGER ) * + 19
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3085
SELECT + 53 DIV CASE 23 WHEN - 24 + + 53 + + + COALESCE ( 19, - + COUNT( * ) ) * 91 THEN NULL WHEN - - 45 THEN NULL ELSE + COUNT( * ) END + - 68 + + MAX( + + 68 ) + + + 55 + - + 96 + + + 34 * + 24 * 91
----
74268

skipif mysql # not compatible
query I rowsort label-3085
SELECT + 53 / CASE 23 WHEN - 24 + + 53 + + + COALESCE ( 19, - + COUNT ( * ) ) * 91 THEN NULL WHEN - - 45 THEN NULL ELSE + COUNT ( * ) END + - 68 + + MAX ( + + 68 ) + + + 55 + - + 96 + + + 34 * + 24 * 91
----
74268

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT ALL + - 40 * - SUM( ALL - - 84 ) - + 14
----
3346

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL + - 40 * - SUM ( ALL - - 84 ) - + 14
----
3346

query I rowsort
SELECT DISTINCT + 25 * - 90
----
-2250

onlyif mysql # aggregate syntax: 
query II rowsort label-3088
SELECT ALL - + 28 AS col1, 65 * COUNT( * ) AS col2
----
-28
65

skipif mysql # not compatible
query II rowsort label-3088
SELECT ALL - + 28 AS col1, 65 * COUNT ( * ) AS col2
----
-28
65

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

skipif mysql # not compatible
query I rowsort label-3089
SELECT - 67 - - 71 + - + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT ALL 11 DIV + + 93
----
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL 11 / + + 93
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3092
SELECT - + CASE AVG ( ALL + + 48 ) WHEN 30 + + 54 THEN - 2 + - 21 ELSE NULL END * + 80 - - 92 + - ( - - 3 ) * 35 * + 85 + - 79 + + 24 + COALESCE ( + ( + COALESCE ( + CAST( - 33 AS SIGNED ), + 42 ) ), 98 ) * + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3092
SELECT - + CASE AVG ( ALL + + 48 ) WHEN 30 + + 54 THEN - 2 + - 21 ELSE NULL END * + 80 - - 92 + - ( - - 3 ) * 35 * + 85 + - 79 + + 24 + COALESCE ( + ( + COALESCE ( + CAST ( - 33 AS INTEGER ), + 42 ) ), 98 ) * + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT 54 * - COUNT( * ) + - 73
----
-127

skipif mysql # not compatible
query I rowsort label-3093
SELECT 54 * - COUNT ( * ) + - 73
----
-127

query I rowsort
SELECT ALL - 80 * + + 94 - - NULLIF ( - 94, + + 76 / + COALESCE ( + + 73, 53 * - 85 + 72 ) )
----
-7614

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3096
SELECT - 79 * CAST( NULL AS SIGNED ) AS col2, 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3096
SELECT - 79 * CAST ( NULL AS INTEGER ) AS col2, 68
----
NULL
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3097
SELECT + COUNT( - CAST( + 16 AS SIGNED ) ) + 31 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3097
SELECT + COUNT ( - CAST ( + 16 AS INTEGER ) ) + 31 AS col1
----
32

query I rowsort
SELECT - 96 + 75 AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3099
SELECT + COUNT( * ) DIV + + 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3099
SELECT + COUNT ( * ) / + + 5 AS col1
----
0

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

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

query I rowsort
SELECT + 78 - - 30
----
108

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3103
SELECT 91 * - COUNT( - - 18 ) * 19 + - MAX( + - 75 ) - CAST( NULL AS SIGNED ) * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT 91 * - COUNT ( - - 18 ) * 19 + - MAX ( + - 75 ) - CAST ( NULL AS INTEGER ) * - 81
----
NULL

query I rowsort
SELECT DISTINCT 19 * + 82
----
1558

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT MIN( + 58 ) col2
----
58

skipif mysql # not compatible
query I rowsort label-3105
SELECT MIN ( + 58 ) col2
----
58

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

skipif mysql # not compatible
query I rowsort label-3106
SELECT MIN ( + 31 )
----
31

query I rowsort
SELECT DISTINCT + CASE 72 WHEN - 15 THEN - 11 ELSE NULL END * + + 9 * + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT + COALESCE ( - 18, + + 72 + + ( + 51 ) + MIN( + 98 ), - + 91 + - + 68 ) * - 57 AS col1
----
1026

skipif mysql # not compatible
query I rowsort label-3108
SELECT + COALESCE ( - 18, + + 72 + + ( + 51 ) + MIN ( + 98 ), - + 91 + - + 68 ) * - 57 AS col1
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT ALL 18 + 1 * COUNT( DISTINCT ( 11 ) ) + + + 32 + + - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL 18 + 1 * COUNT ( DISTINCT ( 11 ) ) + + + 32 + + - COUNT ( * ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT MAX( - CASE - - 60 WHEN - + 35 THEN + 42 WHEN - 82 / COALESCE ( + - 54, - 47 / - 13 ) + + 62 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT MAX ( - CASE - - 60 WHEN - + 35 THEN + 42 WHEN - 82 / COALESCE ( + - 54, - 47 / - 13 ) + + 62 THEN NULL END )
----
NULL

query I rowsort
SELECT - COALESCE ( + 84, 84 )
----
-84

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3114
SELECT DISTINCT - 1 + - COUNT( * ) + - 54 DIV - NULLIF ( - - 15, - ( + COUNT( * ) ) ) + - + 19 + 84 * SUM( - 11 )
----
-942

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT - 1 + - COUNT ( * ) + - 54 / - NULLIF ( - - 15, - ( + COUNT ( * ) ) ) + - + 19 + 84 * SUM ( - 11 )
----
-942

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT DISTINCT 38 + MIN( ALL + 8 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT 38 + MIN ( ALL + 8 ) AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), 16 + 93 + 32 * + + 49 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), 16 + 93 + 32 * + + 49 ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 25 * - 82, 59 AS col0
----
2050
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3118
SELECT DISTINCT + 14 + + - ( + CAST( - CASE 62 WHEN AVG ( 41 ) * + COALESCE ( + MAX( DISTINCT + ( + 35 ) ), COUNT( * ) + + 79 ) + + 61 * + CAST( 98 AS SIGNED ) THEN 67 * - - 43 + + + 87 + 47 / COUNT( * ) WHEN 27 + 34 / NULLIF ( - ( - COUNT( * ) ) / COUNT( * ), - 97 + + 16 ) THEN NULL END AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT + 14 + + - ( + CAST ( - CASE 62 WHEN AVG ( 41 ) * + COALESCE ( + MAX ( DISTINCT + ( + 35 ) ), COUNT ( * ) + + 79 ) + + 61 * + CAST ( 98 AS INTEGER ) THEN 67 * - - 43 + + + 87 + 47 / COUNT ( * ) WHEN 27 + 34 / NULLIF ( - ( - COUNT ( * ) ) / COUNT ( * ), - 97 + + 16 ) THEN NULL END AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - ( + 32 ) ) AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT DISTINCT - 81 + 30 * + CAST( 72 AS SIGNED ) * + 55 + 51 * + 84 * - + 37 AS col0
----
-39789

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT - 81 + 30 * + CAST ( 72 AS INTEGER ) * + 55 + 51 * + 84 * - + 37 AS col0
----
-39789

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + + COUNT( * ) + SUM( - - 54 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3121
SELECT + + COUNT ( * ) + SUM ( - - 54 ) AS col2
----
55

query I rowsort
SELECT ALL - 32 + + - 11 * 46 + - - ( 9 ) AS col1
----
-529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT + - 26 DIV - - COUNT( * ) + 18 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3123
SELECT + - 26 / - - COUNT ( * ) + 18 AS col0
----
-8

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

query I rowsort
SELECT - 85 + - 7 * 84 + + + 98
----
-575

query II rowsort
SELECT DISTINCT - ( - 86 ), - 30 + - 86 * 81 col2
----
86
-6996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT DISTINCT + ( - 36 ) * + - 6 * CASE - 14 WHEN + 65 * 25 THEN 22 END * 11 * + + CAST( 76 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT + ( - 36 ) * + - 6 * CASE - 14 WHEN + 65 * 25 THEN 22 END * 11 * + + CAST ( 76 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3128
SELECT ALL - 44 DIV 93 * 78 - - COUNT( * ) * + 98 + - 29 + 47 DIV + COUNT( * ) col2
----
116

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL - 44 / 93 * 78 - - COUNT ( * ) * + 98 + - 29 + 47 / + COUNT ( * ) col2
----
116

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

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

query I rowsort
SELECT DISTINCT + 77 * + 41
----
3157

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

query I rowsort
SELECT - 90 * - 34 * + 5
----
15300

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL + SUM( ALL 52 )
----
52

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + SUM ( ALL 52 )
----
52

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT ALL - 14 DIV - + COALESCE ( + + 38, + + 66 * - ( + - 85 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL - 14 / - + COALESCE ( + + 38, + + 66 * - ( + - 85 ) ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-3137
SELECT + MIN ( + 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3138
SELECT ALL + MAX( DISTINCT CASE + - CAST( NULL AS SIGNED ) WHEN - 60 THEN - 64 WHEN + 4 THEN + 16 * - 58 + + 89 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + MAX ( DISTINCT CASE + - CAST ( NULL AS INTEGER ) WHEN - 60 THEN - 64 WHEN + 4 THEN + 16 * - 58 + + 89 END )
----
NULL

query I rowsort
SELECT - 30 * + CASE WHEN 80 = + + 0 * - + 77 THEN + - 66 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3140
SELECT + 86 * + - CAST( NULL AS SIGNED ) + + SUM( DISTINCT 40 )
----
NULL

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

query I rowsort
SELECT - 95 * + + 82
----
-7790

onlyif mysql # DIV for integer division: 
query II rowsort label-3142
SELECT NULLIF ( - - 57, 27 ) AS col0, 59 + - - 81 DIV 81 AS col1
----
57
60

skipif mysql # not compatible
query II rowsort label-3142
SELECT NULLIF ( - - 57, 27 ) AS col0, 59 + - - 81 / 81 AS col1
----
57
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL 4 * 2 + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL 4 * 2 + + COUNT ( * )
----
9

query II rowsort
SELECT - 85 * - + 17 - + + 89, 14 AS col2
----
1356
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3145
SELECT - COUNT( * ) * - AVG ( ALL - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT - COUNT ( * ) * - AVG ( ALL - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3146
SELECT ALL + 50 * 52 + - 11 col0, - COALESCE ( + ( - COALESCE ( COUNT( * ), - 94 * ( COALESCE ( + - COUNT( * ), - COUNT( * ) ) ) + + - 57 * - 90, - ( - 83 ) * - 27 + + 56 * + + 40 * 96 * + 2 ) ), 7, - 17 * + 65 ) AS col0
----
2589
1

skipif mysql # not compatible
query II rowsort label-3146
SELECT ALL + 50 * 52 + - 11 col0, - COALESCE ( + ( - COALESCE ( COUNT ( * ), - 94 * ( COALESCE ( + - COUNT ( * ), - COUNT ( * ) ) ) + + - 57 * - 90, - ( - 83 ) * - 27 + + 56 * + + 40 * 96 * + 2 ) ), 7, - 17 * + 65 ) AS col0
----
2589
1

query I rowsort
SELECT ALL 47 * 67
----
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT COALESCE ( + 49, + ( + - COUNT( * ) ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3148
SELECT COALESCE ( + 49, + ( + - COUNT ( * ) ) ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3149
SELECT ALL COUNT( * ) * + 76 + - 1, 5 * + 0 * 76 * 26 + + 41 AS col0
----
75
41

skipif mysql # not compatible
query II rowsort label-3149
SELECT ALL COUNT ( * ) * + 76 + - 1, 5 * + 0 * 76 * 26 + + 41 AS col0
----
75
41

query I rowsort
SELECT DISTINCT + 85 * 45
----
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL SUM( ALL - 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL SUM ( ALL - 59 ) AS col0
----
-59

query II rowsort
SELECT ALL + ( - + 3 ) * - - 48 + - 11 * + 13 AS col0, 46
----
-287
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3153
SELECT - ( ( + 64 ) ), 70 + - COUNT( * ) DIV - 94 AS col1
----
-64
70

skipif mysql # not compatible
query II rowsort label-3153
SELECT - ( ( + 64 ) ), 70 + - COUNT ( * ) / - 94 AS col1
----
-64
70

query I rowsort
SELECT + - 83 - + 38 AS col2
----
-121

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

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

query I rowsort
SELECT + - 91 * + 18 AS col0
----
-1638

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3158
SELECT ALL MAX( DISTINCT - 91 ) * 21 AS col1, - 98
----
-1911
-98

skipif mysql # not compatible
query II rowsort label-3158
SELECT ALL MAX ( DISTINCT - 91 ) * 21 AS col1, - 98
----
-1911
-98

query I rowsort
SELECT 23 * 1 AS col0
----
23

query I rowsort
SELECT ( - 13 ) - 96
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-3161
SELECT DISTINCT + 9 DIV + 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT + 9 / + 53 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3162
SELECT - 54 DIV - 23 col2
----
2

skipif mysql # not compatible
query I rowsort label-3162
SELECT - 54 / - 23 col2
----
2

query I rowsort
SELECT ALL + 76 * 41
----
3116

query I rowsort
SELECT COALESCE ( - + 17, + 78, 40, + 53 ) + + ( + 90 ) + - + 86
----
-13

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT CASE + COUNT( ALL - ( - - 11 ) ) WHEN - - ( 70 ) * + CAST( NULL AS SIGNED ) + - COALESCE ( + - 66, + CAST( NULL AS SIGNED ) ) THEN + 8 + - + ( AVG ( + 99 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT CASE + COUNT ( ALL - ( - - 11 ) ) WHEN - - ( 70 ) * + CAST ( NULL AS INTEGER ) + - COALESCE ( + - 66, + CAST ( NULL AS INTEGER ) ) THEN + 8 + - + ( AVG ( + 99 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3167
SELECT 89, COUNT( * ) * + 63 AS col0
----
89
63

skipif mysql # not compatible
query II rowsort label-3167
SELECT 89, COUNT ( * ) * + 63 AS col0
----
89
63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3168
SELECT ALL + 36, - CAST( 89 AS DECIMAL ) * - + CAST( NULL AS SIGNED ) * - - 78 + + 53 + 52 AS col2
----
36
NULL

skipif mysql # not compatible
query II rowsort label-3168
SELECT ALL + 36, - CAST ( 89 AS REAL ) * - + CAST ( NULL AS INTEGER ) * - - 78 + + 53 + 52 AS col2
----
36
NULL

query I rowsort
SELECT 91 * - ( - 69 ) + + 55 AS col1
----
6334

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT COUNT( * ) + ( + 31 )
----
32

skipif mysql # not compatible
query I rowsort label-3170
SELECT COUNT ( * ) + ( + 31 )
----
32

query II rowsort
SELECT ALL - 6, - 81 + + 94 AS col0
----
-6
13

query I rowsort
SELECT NULLIF ( 46, 70 ) + - 70 AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT ALL + 28 + - - NULLIF ( + + CAST( 74 AS SIGNED ), 26 + 26 ) * 25 AS col1
----
1878

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL + 28 + - - NULLIF ( + + CAST ( 74 AS INTEGER ), 26 + 26 ) * 25 AS col1
----
1878

query I rowsort
SELECT 91 * + 87 + + 23
----
7940

query II rowsort
SELECT DISTINCT - 90 AS col0, 27 AS col1
----
-90
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3176
SELECT DISTINCT 42 + - COALESCE ( 54, - 7 + - COALESCE ( + + 13, - COUNT( * ) ) * + 4 / + 62, 16, - + 67 ) + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT 42 + - COALESCE ( 54, - 7 + - COALESCE ( + + 13, - COUNT ( * ) ) * + 4 / + 62, 16, - + 67 ) + + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 70 + - ( - 68 ) * - + 84 col0
----
-5642

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

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL - 28 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT 41 + - - 75 DIV + 50
----
42

skipif mysql # not compatible
query I rowsort label-3179
SELECT 41 + - - 75 / + 50
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT + 19 * - 53 + - - NULLIF ( COUNT( * ), 70 ) AS col0
----
-1006

skipif mysql # not compatible
query I rowsort label-3180
SELECT + 19 * - 53 + - - NULLIF ( COUNT ( * ), 70 ) AS col0
----
-1006

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT ( 99 ) + COUNT( * ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT ( 99 ) + COUNT ( * ) AS col2
----
100

query I rowsort
SELECT ALL 41 + 19
----
60

query II rowsort
SELECT + 23 AS col1, 0 * 69 AS col1
----
23
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL + 29 + - COUNT( * ) + - + 11 * + + 13 * - 70
----
10038

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL + 29 + - COUNT ( * ) + - + 11 * + + 13 * - 70
----
10038

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3185
SELECT 20 AS col2, + 81 DIV COALESCE ( COUNT( * ), - CASE + 23 WHEN + - 95 + - + MIN( DISTINCT - + 34 ) THEN - 74 WHEN + 26 THEN NULL ELSE NULL END ) col0
----
20
81

skipif mysql # not compatible
query II rowsort label-3185
SELECT 20 AS col2, + 81 / COALESCE ( COUNT ( * ), - CASE + 23 WHEN + - 95 + - + MIN ( DISTINCT - + 34 ) THEN - 74 WHEN + 26 THEN NULL ELSE NULL END ) col0
----
20
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3186
SELECT + CASE ( 81 ) WHEN - + COUNT( * ) THEN 57 WHEN 17 + + CAST( NULL AS DECIMAL ) THEN + 7 + SUM( - 49 ) + + COALESCE ( + + NULLIF ( + ( 98 ), - ( - ( + 95 ) ) * + - ( - + 51 ) * ( COALESCE ( + 28, + 82, 77 + CASE MAX( 4 ) WHEN 69 * + AVG ( + 68 * 50 ) THEN + 34 + MIN( + CASE + 4 WHEN + ( 36 ) THEN NULL ELSE - ( 81 ) + 50 END ) ELSE NULL END ) ) * 13 ), 99 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3186
SELECT + CASE ( 81 ) WHEN - + COUNT ( * ) THEN 57 WHEN 17 + + CAST ( NULL AS REAL ) THEN + 7 + SUM ( - 49 ) + + COALESCE ( + + NULLIF ( + ( 98 ), - ( - ( + 95 ) ) * + - ( - + 51 ) * ( COALESCE ( + 28, + 82, 77 + CASE MAX ( 4 ) WHEN 69 * + AVG ( + 68 * 50 ) THEN + 34 + MIN ( + CASE + 4 WHEN + ( 36 ) THEN NULL ELSE - ( 81 ) + 50 END ) ELSE NULL END ) ) * 13 ), 99 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - - 55 - + 19 AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT 69 DIV - - 69 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3188
SELECT 69 / - - 69 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-3189
SELECT - 44 * + 26 * + COUNT ( * ) AS col2
----
-1144

query I rowsort
SELECT 99 + 24 col1
----
123

query I rowsort
SELECT - 88 * + - 61
----
5368

query II rowsort
SELECT ALL + 40 * - ( + ( - 31 ) ) AS col0, + 70 AS col1
----
1240
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT + 97 + - - MAX( ALL - + 90 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3193
SELECT + 97 + - - MAX ( ALL - + 90 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT ALL - CASE + COUNT( * ) WHEN 15 THEN + 5 + + 50 WHEN - 12 * + 80 THEN 89 ELSE - 31 END AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL - CASE + COUNT ( * ) WHEN 15 THEN + 5 + + 50 WHEN - 12 * + 80 THEN 89 ELSE - 31 END AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3195
SELECT ALL + - CASE + 64 WHEN - + COUNT( * ) * ( ( - + 79 ) ) + + - 33 THEN + 64 * - CAST( + + 70 AS SIGNED ) WHEN + 72 + + ( 35 ) * - - 89 * - 23 + - - MIN( DISTINCT + ( - + 5 ) ) + + 62 * - 84 DIV + 21 * - 75 - 12 THEN NULL ELSE + ( - NULLIF ( - 88, + 83 ) ) END - COALESCE ( 31, - 73 * + 81, + COALESCE ( 43, - 95, NULLIF ( 78, 67 ) ) ) DIV + 76
----
-88

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL + - CASE + 64 WHEN - + COUNT ( * ) * ( ( - + 79 ) ) + + - 33 THEN + 64 * - CAST ( + + 70 AS INTEGER ) WHEN + 72 + + ( 35 ) * - - 89 * - 23 + - - MIN ( DISTINCT + ( - + 5 ) ) + + 62 * - 84 / + 21 * - 75 - 12 THEN NULL ELSE + ( - NULLIF ( - 88, + 83 ) ) END - COALESCE ( 31, - 73 * + 81, + COALESCE ( 43, - 95, NULLIF ( 78, 67 ) ) ) / + 76
----
-88

query I rowsort
SELECT - ( - 62 ) AS col1
----
62

query I rowsort
SELECT + 20 + 16
----
36

query II rowsort
SELECT DISTINCT - 66 AS col1, 16
----
-66
16

query I rowsort
SELECT 68 + - 96 AS col2
----
-28

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

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

query I rowsort
SELECT - 47 + ( - 68 ) * - 18
----
1177

query II rowsort
SELECT ALL 48 AS col1, 33
----
48
33

query I rowsort
SELECT 17 * - + 73
----
-1241

query I rowsort
SELECT - CASE - 94 WHEN 28 THEN + + 34 END + 72 * 37 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3205
SELECT COALESCE ( + 86, 85 * 90 * + 51 * - 46 ) AS col2, - 20 + + + 28 + - CAST( - - CAST( + CASE + 55 WHEN - 2 + - + 52 + - COUNT( * ) + + 94 / - ( 2 ) THEN MIN( - ( - 31 ) ) - 47 WHEN ( - 11 ) THEN NULL WHEN 11 THEN - 63 END AS SIGNED ) AS SIGNED ) * + 35
----
86
NULL

skipif mysql # not compatible
query II rowsort label-3205
SELECT COALESCE ( + 86, 85 * 90 * + 51 * - 46 ) AS col2, - 20 + + + 28 + - CAST ( - - CAST ( + CASE + 55 WHEN - 2 + - + 52 + - COUNT ( * ) + + 94 / - ( 2 ) THEN MIN ( - ( - 31 ) ) - 47 WHEN ( - 11 ) THEN NULL WHEN 11 THEN - 63 END AS INTEGER ) AS INTEGER ) * + 35
----
86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL + ( - NULLIF ( + 41, NULLIF ( + ( + + 81 ), - COUNT( * ) * 87 + + COUNT( * ) ) + + 18 + ( + COUNT( * ) ) / + COUNT( * ) * - 22 * 50 + - MIN( DISTINCT - 98 ) * - 78 ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + ( - NULLIF ( + 41, NULLIF ( + ( + + 81 ), - COUNT ( * ) * 87 + + COUNT ( * ) ) + + 18 + ( + COUNT ( * ) ) / + COUNT ( * ) * - 22 * 50 + - MIN ( DISTINCT - 98 ) * - 78 ) ) AS col1
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3207
SELECT ALL 44 DIV 87 * + MAX( + 3 )
----
0

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL 44 / 87 * + MAX ( + 3 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3208
SELECT 26 * COUNT( * ) AS col2, 89 AS col2
----
26
89

skipif mysql # not compatible
query II rowsort label-3208
SELECT 26 * COUNT ( * ) AS col2, 89 AS col2
----
26
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3209
SELECT DISTINCT SUM( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3210
SELECT DISTINCT 78 + + 93, - MIN( DISTINCT - - 15 ) + ( - ( + 60 ) ) col0
----
171
-75

skipif mysql # not compatible
query II rowsort label-3210
SELECT DISTINCT 78 + + 93, - MIN ( DISTINCT - - 15 ) + ( - ( + 60 ) ) col0
----
171
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3211
SELECT DISTINCT 96 * + 95 DIV COUNT( * ) AS col0
----
9120

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT 96 * + 95 / COUNT ( * ) AS col0
----
9120

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

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

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

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

query I rowsort
SELECT ALL - 12 col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3215
SELECT DISTINCT - 12 * - 88 + + + 35 AS col1, + COALESCE ( 1, + 47 * + + 1 DIV 54 - + 0 * + + MAX( 4 ) ) + + 44
----
1091
45

skipif mysql # not compatible
query II rowsort label-3215
SELECT DISTINCT - 12 * - 88 + + + 35 AS col1, + COALESCE ( 1, + 47 * + + 1 / 54 - + 0 * + + MAX ( 4 ) ) + + 44
----
1091
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT SUM( DISTINCT + 33 ) col2
----
33

skipif mysql # not compatible
query I rowsort label-3216
SELECT SUM ( DISTINCT + 33 ) col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3217
SELECT ALL - 97 - + + ( - - 75 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL - 97 - + + ( - - 75 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3218
SELECT CASE 80 WHEN + - 21 + + - 56 THEN CASE - - 84 WHEN 54 + + ( + - COALESCE ( ( - 24 ), COUNT( * ) ) ) * + 32 THEN + 30 + 1 + - 8 / + + MAX( ALL - + 42 ) * - + ( AVG ( + + CAST( + 65 AS SIGNED ) ) ) * 17 - ( 85 ) * - COUNT( * ) WHEN - 84 THEN NULL ELSE NULL END END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT CASE 80 WHEN + - 21 + + - 56 THEN CASE - - 84 WHEN 54 + + ( + - COALESCE ( ( - 24 ), COUNT ( * ) ) ) * + 32 THEN + 30 + 1 + - 8 / + + MAX ( ALL - + 42 ) * - + ( AVG ( + + CAST ( + 65 AS INTEGER ) ) ) * 17 - ( 85 ) * - COUNT ( * ) WHEN - 84 THEN NULL ELSE NULL END END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3219
SELECT SUM( ALL 45 ) AS col0, ( + COUNT( * ) ) * + 88 AS col1
----
45
88

skipif mysql # not compatible
query II rowsort label-3219
SELECT SUM ( ALL 45 ) AS col0, ( + COUNT ( * ) ) * + 88 AS col1
----
45
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT SUM( ALL 94 )
----
94

skipif mysql # not compatible
query I rowsort label-3220
SELECT SUM ( ALL 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL MAX( - - 13 ) - + - 5
----
18

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL MAX ( - - 13 ) - + - 5
----
18

query I rowsort
SELECT - ( + + 18 ) * - 62 AS col1
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT + COUNT( * ) * COALESCE ( - + 34, - - 28 ) - + 88 + + 53 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3223
SELECT + COUNT ( * ) * COALESCE ( - + 34, - - 28 ) - + 88 + + 53 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT SUM( ALL + 81 ) + - 97 * - + 1 * + 10 col0
----
1051

skipif mysql # not compatible
query I rowsort label-3224
SELECT SUM ( ALL + 81 ) + - 97 * - + 1 * + 10 col0
----
1051

onlyif mysql # aggregate syntax: 
query II rowsort label-3225
SELECT ALL - + ( 47 ) AS col1, + COUNT( * ) * + 81
----
-47
81

skipif mysql # not compatible
query II rowsort label-3225
SELECT ALL - + ( 47 ) AS col1, + COUNT ( * ) * + 81
----
-47
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT DISTINCT CASE - + MIN( + 4 ) WHEN + 4 THEN - + 68 ELSE + 89 * 91 + - 12 END * + 96 AS col0
----
776352

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT CASE - + MIN ( + 4 ) WHEN + 4 THEN - + 68 ELSE + 89 * 91 + - 12 END * + 96 AS col0
----
776352

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT ALL + 59 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL + 59 / - 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3229
SELECT - 75 DIV - + 20
----
3

skipif mysql # not compatible
query I rowsort label-3229
SELECT - 75 / - + 20
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3230
SELECT - 45 DIV + 22
----
-2

skipif mysql # not compatible
query I rowsort label-3230
SELECT - 45 / + 22
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3231
SELECT - + 37 * + 7 AS col1, SUM( + 89 ) * + 97 - - 96 + - MIN( + 17 )
----
-259
8712

skipif mysql # not compatible
query II rowsort label-3231
SELECT - + 37 * + 7 AS col1, SUM ( + 89 ) * + 97 - - 96 + - MIN ( + 17 )
----
-259
8712

query I rowsort
SELECT DISTINCT 63 + + 10
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3233
SELECT - + 88 DIV - 68
----
1

skipif mysql # not compatible
query I rowsort label-3233
SELECT - + 88 / - 68
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT SUM( ALL + 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT SUM ( ALL + 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT ALL 37 + + NULLIF ( + ( - COUNT( * ) ), + CASE - + 65 WHEN - 49 THEN COUNT( DISTINCT - 4 ) WHEN + + 21 THEN - 67 * + COUNT( * ) END )
----
36

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL 37 + + NULLIF ( + ( - COUNT ( * ) ), + CASE - + 65 WHEN - 49 THEN COUNT ( DISTINCT - 4 ) WHEN + + 21 THEN - 67 * + COUNT ( * ) END )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3236
SELECT - 43 - + + SUM( ALL - 11 ) AS col2, - 22 AS col1
----
-32
-22

skipif mysql # not compatible
query II rowsort label-3236
SELECT - 43 - + + SUM ( ALL - 11 ) AS col2, - 22 AS col1
----
-32
-22

query I rowsort
SELECT - 14 + + - 76 AS col2
----
-90

query I rowsort
SELECT - 90 + + 52 AS col2
----
-38

query I rowsort
SELECT + 96 * - 73 AS col2
----
-7008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3240
SELECT - 7 + 34 * COALESCE ( COUNT( * ), + - 85, + 74 - - 52, - COUNT( ALL - - 56 ) DIV + 58 ) + 54
----
81

skipif mysql # not compatible
query I rowsort label-3240
SELECT - 7 + 34 * COALESCE ( COUNT ( * ), + - 85, + 74 - - 52, - COUNT ( ALL - - 56 ) / + 58 ) + 54
----
81

query I rowsort
SELECT DISTINCT - 83 + + - 88
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL + 84 * 59 + CASE + + 70 WHEN - + 42 + + COUNT( * ) THEN + 89 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL + 84 * 59 + CASE + + 70 WHEN - + 42 + + COUNT ( * ) THEN + 89 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 36 + + 11 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL 4 * - 12 - 17 * ( 4 ) + 27 * COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL 4 * - 12 - 17 * ( 4 ) + 27 * COUNT ( * ) AS col1
----
-89

query I rowsort
SELECT + NULLIF ( + ( + 40 ), - 83 ) + + 85 + + - 56 - + 79 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3246
SELECT ALL 10 * - 65 - + 17 col2, MIN( - + 49 ) AS col0
----
-667
-49

skipif mysql # not compatible
query II rowsort label-3246
SELECT ALL 10 * - 65 - + 17 col2, MIN ( - + 49 ) AS col0
----
-667
-49

query I rowsort
SELECT + NULLIF ( - 63, + 3 * 88 - + 88 - + 6 ) + - - 58 + + 71 + 61 AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL COUNT( * ) * - 60
----
-60

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL COUNT ( * ) * - 60
----
-60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT 66 * 18 * - - COUNT( * ) + + + NULLIF ( - COUNT( * ), 7 )
----
1187

skipif mysql # not compatible
query I rowsort label-3250
SELECT 66 * 18 * - - COUNT ( * ) + + + NULLIF ( - COUNT ( * ), 7 )
----
1187

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3252
SELECT + 35 DIV 63 * - - 68 + - COALESCE ( 20, 5 * + + 57 - 53 * + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-3252
SELECT + 35 / 63 * - - 68 + - COALESCE ( 20, 5 * + + 57 - 53 * + COUNT ( * ) )
----
-20

query I rowsort
SELECT + 0 * + - 46 * 4
----
0

query I rowsort
SELECT + 58 + - 23
----
35

query I rowsort
SELECT + + 84 * + + 12 AS col2
----
1008

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT + 79 * + 32 + - + ( + ( 23 ) ) + NULLIF ( - COUNT( * ), + NULLIF ( NULLIF ( 59, 15 ), 85 * - + 83 + + 43 ) ) * 98
----
2407

skipif mysql # not compatible
query I rowsort label-3257
SELECT + 79 * + 32 + - + ( + ( 23 ) ) + NULLIF ( - COUNT ( * ), + NULLIF ( NULLIF ( 59, 15 ), 85 * - + 83 + + 43 ) ) * 98
----
2407

query II rowsort
SELECT ALL + 31, 30 col2
----
31
30

query II rowsort
SELECT 22 col1, 51 col2
----
22
51

onlyif mysql # DIV for integer division: 
query II rowsort label-3260
SELECT 59 AS col0, + 52 DIV 17 - + 39
----
59
-36

skipif mysql # not compatible
query II rowsort label-3260
SELECT 59 AS col0, + 52 / 17 - + 39
----
59
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3261
SELECT + - 21, + COUNT( * ) - + - 9 AS col2
----
-21
10

skipif mysql # not compatible
query II rowsort label-3261
SELECT + - 21, + COUNT ( * ) - + - 9 AS col2
----
-21
10

query I rowsort
SELECT + - 58 * - - 67 AS col2
----
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3263
SELECT + - 52 * + + 77 + 75 + - 45 - + MAX( DISTINCT + + 66 ) DIV - + 7 * + + COUNT( * ) AS col2, 26 * - 87 AS col1
----
-3965
-2262

skipif mysql # not compatible
query II rowsort label-3263
SELECT + - 52 * + + 77 + 75 + - 45 - + MAX ( DISTINCT + + 66 ) / - + 7 * + + COUNT ( * ) AS col2, 26 * - 87 AS col1
----
-3965
-2262

query I rowsort
SELECT - - ( 35 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3265
SELECT ( - SUM( + - 71 ) ) * + 74 + + 76 - - 91 / - 31 * - - CAST( 80 AS DECIMAL ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT ( - SUM ( + - 71 ) ) * + 74 + + 76 - - 91 / - 31 * - - CAST ( 80 AS REAL ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT MIN( + 51 ) col0
----
51

skipif mysql # not compatible
query I rowsort label-3266
SELECT MIN ( + 51 ) col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL + + ( + 13 ) * 39 * + MAX( 29 ) + + 58
----
14761

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL + + ( + 13 ) * 39 * + MAX ( 29 ) + + 58
----
14761

query I rowsort
SELECT - - 77 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT ALL - 6 + COUNT( + + 34 ) + 40 + - 5 - COUNT( * ) * NULLIF ( 6, - 93 ) + 47 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - 6 + COUNT ( + + 34 ) + 40 + - 5 - COUNT ( * ) * NULLIF ( 6, - 93 ) + 47 AS col2
----
71

query II rowsort
SELECT ALL 61 AS col0, 25 + + - COALESCE ( + 38, + 82 )
----
61
-13

query I rowsort
SELECT - - 25 + + 38 * - + 90 * - + 36 col1
----
123145

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3273
SELECT ALL 26 + 92 + 25 + - 5 * 20 AS col2, ( - - 63 ) * COUNT( * ) * - MAX( ALL + 72 )
----
43
-4536

skipif mysql # not compatible
query II rowsort label-3273
SELECT ALL 26 + 92 + 25 + - 5 * 20 AS col2, ( - - 63 ) * COUNT ( * ) * - MAX ( ALL + 72 )
----
43
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + 8 * + + 97 * + 17 * + NULLIF ( + 98, COUNT( - 96 ) ) AS col2
----
1292816

skipif mysql # not compatible
query I rowsort label-3274
SELECT + 8 * + + 97 * + 17 * + NULLIF ( + 98, COUNT ( - 96 ) ) AS col2
----
1292816

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT DISTINCT + 87 DIV - 64 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + 87 / - 64 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT - SUM( + + 29 ) + + + ( + ( + 45 ) )
----
16

skipif mysql # not compatible
query I rowsort label-3276
SELECT - SUM ( + + 29 ) + + + ( + ( + 45 ) )
----
16

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

skipif mysql # not compatible
query I rowsort label-3277
SELECT - CAST ( NULL AS INTEGER ) * 14 AS col0
----
NULL

query I rowsort
SELECT ALL + 69 * - + 61 AS col2
----
-4209

onlyif mysql # aggregate syntax: 
query II rowsort label-3279
SELECT ALL + 97 - + 43, + MAX( + 46 ) AS col2
----
54
46

skipif mysql # not compatible
query II rowsort label-3279
SELECT ALL + 97 - + 43, + MAX ( + 46 ) AS col2
----
54
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL NULLIF ( + MIN( DISTINCT + 5 ), + - 42 - + 73 + - 26 )
----
5

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL NULLIF ( + MIN ( DISTINCT + 5 ), + - 42 - + 73 + - 26 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3281
SELECT - COUNT( * ) * + 43 AS col0, - 5
----
-43
-5

skipif mysql # not compatible
query II rowsort label-3281
SELECT - COUNT ( * ) * + 43 AS col0, - 5
----
-43
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3282
SELECT + CASE - 25 WHEN - COUNT( * ) + + 9 THEN 20 * 77 - 68 * - + 13 WHEN - 15 THEN + 69 ELSE 21 + MIN( ALL - + 47 ) * - 98 END col0, - MAX( - 23 )
----
4627
23

skipif mysql # not compatible
query II rowsort label-3282
SELECT + CASE - 25 WHEN - COUNT ( * ) + + 9 THEN 20 * 77 - 68 * - + 13 WHEN - 15 THEN + 69 ELSE 21 + MIN ( ALL - + 47 ) * - 98 END col0, - MAX ( - 23 )
----
4627
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT + 93 DIV - 27 - + 62 + - 91
----
-156

skipif mysql # not compatible
query I rowsort label-3283
SELECT + 93 / - 27 - + 62 + - 91
----
-156

query I rowsort
SELECT DISTINCT - + 15 col1
----
-15

query I rowsort
SELECT 67 * + - 12 + + - 85
----
-889

onlyif mysql # aggregate syntax: 
query II rowsort label-3286
SELECT ALL MIN( + + 56 ) * 13 - + 28 AS col0, + 64 AS col1
----
700
64

skipif mysql # not compatible
query II rowsort label-3286
SELECT ALL MIN ( + + 56 ) * 13 - + 28 AS col0, + 64 AS col1
----
700
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT MIN( + NULLIF ( - 87, 70 ) ) * 60 * + - CAST( NULL AS SIGNED ) * + - ( COUNT( DISTINCT + 25 ) ) + NULLIF ( COUNT( * ), + + 91 * - 14 ) * 85 - + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT MIN ( + NULLIF ( - 87, 70 ) ) * 60 * + - CAST ( NULL AS INTEGER ) * + - ( COUNT ( DISTINCT + 25 ) ) + NULLIF ( COUNT ( * ), + + 91 * - 14 ) * 85 - + 88
----
NULL

query I rowsort
SELECT - NULLIF ( + 9, - 17 * + 20 ) AS col0
----
-9

query I rowsort
SELECT 46 + + 35
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3290
SELECT + CAST( NULL AS SIGNED ) / + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT + CAST ( NULL AS INTEGER ) / + + 6 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT + 0 DIV - 88 * - - 39
----
0

skipif mysql # not compatible
query I rowsort label-3291
SELECT + 0 / - 88 * - - 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT + 60 * + + 95 * + 35 * + 83 + - COUNT( * ) - + 41 * - NULLIF ( 0, 10 ) AS col1
----
16558499

skipif mysql # not compatible
query I rowsort label-3292
SELECT + 60 * + + 95 * + 35 * + 83 + - COUNT ( * ) - + 41 * - NULLIF ( 0, 10 ) AS col1
----
16558499

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL + + 64 + - - CASE + - 98 WHEN COUNT( * ) * 11 THEN + NULLIF ( MAX( - 7 ), + COUNT( * ) + - - 81 ) ELSE - COALESCE ( 43, + 7 ) END
----
21

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL + + 64 + - - CASE + - 98 WHEN COUNT ( * ) * 11 THEN + NULLIF ( MAX ( - 7 ), + COUNT ( * ) + - - 81 ) ELSE - COALESCE ( 43, + 7 ) END
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3294
SELECT DISTINCT - ( + NULLIF ( - 70, - 49 - MAX( DISTINCT - 0 ) + + + CAST( NULL AS SIGNED ) ) ) AS col1, + 21
----
70
21

skipif mysql # not compatible
query II rowsort label-3294
SELECT DISTINCT - ( + NULLIF ( - 70, - 49 - MAX ( DISTINCT - 0 ) + + + CAST ( NULL AS INTEGER ) ) ) AS col1, + 21
----
70
21

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

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL 23 / + - COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT DISTINCT - MAX( 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT - MAX ( 94 )
----
-94

query I rowsort
SELECT + 16 * - 5 AS col2
----
-80

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

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

query I rowsort
SELECT ALL 78 * 11
----
858

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ( NULLIF ( - 64, COUNT( * ) + - 87 * 94 - + 63 * - 89 ) ) - ( - + 44 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-3300
SELECT ( NULLIF ( - 64, COUNT ( * ) + - 87 * 94 - + 63 * - 89 ) ) - ( - + 44 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3301
SELECT 77 * - COUNT( * ) * COALESCE ( - - 27, + 15 ) AS col2, - 41 + + 67 * ( + 59 ) * + + 70 * + - 55 - + + 34 AS col0
----
-2079
-15219125

skipif mysql # not compatible
query II rowsort label-3301
SELECT 77 * - COUNT ( * ) * COALESCE ( - - 27, + 15 ) AS col2, - 41 + + 67 * ( + 59 ) * + + 70 * + - 55 - + + 34 AS col0
----
-2079
-15219125

query II rowsort
SELECT - 40 AS col0, + 57 * + 53 + + 33
----
-40
3054

query I rowsort
SELECT ALL 72 - + 66
----
6

query I rowsort
SELECT DISTINCT 77 * - 49 AS col2
----
-3773

query I rowsort
SELECT 80 * - 5 AS col1
----
-400

query I rowsort
SELECT 51 + + 81
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-3307
SELECT 57 DIV + 71 * 62
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT 57 / + 71 * 62
----
0

query I rowsort
SELECT 70 * - - 26 AS col0
----
1820

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

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - 39 / + COUNT ( * )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT 76 + - 87 + - 63 DIV - 84 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3310
SELECT 76 + - 87 + - 63 / - 84 AS col0
----
-11

query I rowsort
SELECT 86 + - 62 + 94 * + 52
----
4912

query I rowsort
SELECT ALL - CASE - + 35 WHEN + 30 / + - 73 * 43 THEN - + 19 ELSE - + 46 END col2
----
46

query I rowsort
SELECT 92 * - + 35
----
-3220

query I rowsort
SELECT 95 + - 36 + - 9 AS col1
----
50

query I rowsort
SELECT 81 * - + 40 AS col2
----
-3240

query I rowsort
SELECT ALL + - 17 + - 2 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ( ( + 35 ) ) + - 86 * + + COUNT( * ) + 75
----
24

skipif mysql # not compatible
query I rowsort label-3317
SELECT ( ( + 35 ) ) + - 86 * + + COUNT ( * ) + 75
----
24

query I rowsort
SELECT 99 * - 34 * + 1 - 30 + 73 * 77 AS col2
----
2225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3319
SELECT - NULLIF ( + + 44, 91 ) DIV 33 + + + SUM( DISTINCT + 35 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3319
SELECT - NULLIF ( + + 44, 91 ) / 33 + + + SUM ( DISTINCT + 35 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL + COALESCE ( + 42, + COUNT( * ) ) + - - 30
----
72

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL + COALESCE ( + 42, + COUNT ( * ) ) + - - 30
----
72

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

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

query II rowsort
SELECT + + 15 AS col1, 70 col0
----
15
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT ALL - 69 + - 62 DIV + COALESCE ( - 27, - 70 + + 14 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL - 69 + - 62 / + COALESCE ( - 27, - 70 + + 14 ) AS col0
----
-67

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

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

query I rowsort
SELECT DISTINCT - 36 + + 29 AS col1
----
-7

query I rowsort
SELECT 38 + 36 AS col0
----
74

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

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

query I rowsort
SELECT 71 * - - 12
----
852

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL 79 * - COUNT( * ) * + 14
----
-1106

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL 79 * - COUNT ( * ) * + 14
----
-1106

query I rowsort
SELECT 42 + 47 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL COUNT( - + ( - - ( + ( + NULLIF ( 22, 82 * 89 ) ) ) ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL COUNT ( - + ( - - ( + ( + NULLIF ( 22, 82 * 89 ) ) ) ) ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3332
SELECT DISTINCT 72 - - ( 69 ) DIV + 84 + - 25 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT 72 - - ( 69 ) / + 84 + - 25 AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 93 / 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 93 / 51 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT DISTINCT 66 DIV + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT 66 / + 92 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT NULLIF ( + - COUNT ( * ), COUNT ( * ) ) AS col0
----
-1

query II rowsort
SELECT 60 * - + 1 col0, 5 + + 55
----
-60
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3337
SELECT 96 + + ( 23 ) + COUNT( * ), COUNT( * ) AS col2
----
120
1

skipif mysql # not compatible
query II rowsort label-3337
SELECT 96 + + ( 23 ) + COUNT ( * ), COUNT ( * ) AS col2
----
120
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3338
SELECT - 6 AS col1, 57 * + - 68 + + - MAX( DISTINCT + + 1 )
----
-6
-3877

skipif mysql # not compatible
query II rowsort label-3338
SELECT - 6 AS col1, 57 * + - 68 + + - MAX ( DISTINCT + + 1 )
----
-6
-3877

query I rowsort
SELECT DISTINCT 24 * - - 97 AS col0
----
2328

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT ALL NULLIF ( - + 69, + + MIN( + ( + 8 ) ) )
----
-69

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL NULLIF ( - + 69, + + MIN ( + ( + 8 ) ) )
----
-69

query I rowsort
SELECT + 47 * + ( + 94 ) AS col0
----
4418

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL 59 * - COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL 59 * - COUNT ( * ) AS col1
----
-59

query I rowsort
SELECT ALL 29 + - + 61 AS col2
----
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-3344
SELECT + 99 DIV + + 87 AS col2, - 0
----
1
0

skipif mysql # not compatible
query II rowsort label-3344
SELECT + 99 / + + 87 AS col2, - 0
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3345
SELECT ALL - 8 + + CASE - AVG ( DISTINCT - - CAST( - - ( - + 87 ) AS SIGNED ) ) WHEN - 72 * - ( - + 99 ) - + CAST( NULL AS SIGNED ) + - 36 + 30 * + 93 + + 30 THEN - 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL - 8 + + CASE - AVG ( DISTINCT - - CAST ( - - ( - + 87 ) AS INTEGER ) ) WHEN - 72 * - ( - + 99 ) - + CAST ( NULL AS INTEGER ) + - 36 + 30 * + 93 + + 30 THEN - 1 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT - 32 AS col1, - COALESCE ( + - MAX( DISTINCT - + 81 ), + 17 * 79 ) + - + 76
----
-32
-157

skipif mysql # not compatible
query II rowsort label-3346
SELECT - 32 AS col1, - COALESCE ( + - MAX ( DISTINCT - + 81 ), + 17 * 79 ) + - + 76
----
-32
-157

query I rowsort
SELECT ALL 15 * 22
----
330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3348
SELECT - SUM( ALL + + ( + CAST( 45 AS SIGNED ) ) )
----
-45

skipif mysql # not compatible
query I rowsort label-3348
SELECT - SUM ( ALL + + ( + CAST ( 45 AS INTEGER ) ) )
----
-45

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

query II rowsort
SELECT 10 AS col1, 60
----
10
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3351
SELECT - 5, - 73 AS col0, 81 + + - CAST( + + 89 AS SIGNED ) AS col2
----
-5
-73
-8

skipif mysql # not compatible
query III rowsort label-3351
SELECT - 5, - 73 AS col0, 81 + + - CAST ( + + 89 AS INTEGER ) AS col2
----
-5
-73
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3352
SELECT + 68 DIV - - CASE 22 WHEN - 77 THEN 21 ELSE + - COUNT( * ) DIV + - COUNT( * ) END - - + 7 + + 79 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-3352
SELECT + 68 / - - CASE 22 WHEN - 77 THEN 21 ELSE + - COUNT ( * ) / + - COUNT ( * ) END - - + 7 + + 79 AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT SUM( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-3353
SELECT SUM ( 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT - 86 * + 68 - - - NULLIF ( - 52, - 86 * - - AVG ( + COALESCE ( 12, - - 88 ) ) * - AVG ( ALL 7 ) + + SUM( + ( COALESCE ( 18, + 83 ) ) ) / + - 4 ) + 38 AS col0
----
-5758

skipif mysql # not compatible
query I rowsort label-3354
SELECT - 86 * + 68 - - - NULLIF ( - 52, - 86 * - - AVG ( + COALESCE ( 12, - - 88 ) ) * - AVG ( ALL 7 ) + + SUM ( + ( COALESCE ( 18, + 83 ) ) ) / + - 4 ) + 38 AS col0
----
-5758

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT + 26 - + - 67 DIV 66 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3355
SELECT + 26 - + - 67 / 66 AS col2
----
27

query I rowsort
SELECT ALL + + 95 AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3357
SELECT + + COUNT( * ), + 43 + - - 1 DIV 96 * + 98 AS col0
----
1
43

skipif mysql # not compatible
query II rowsort label-3357
SELECT + + COUNT ( * ), + 43 + - - 1 / 96 * + 98 AS col0
----
1
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3358
SELECT + + 21 DIV + + COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3358
SELECT + + 21 / + + COUNT ( * ) AS col0
----
21

query I rowsort
SELECT ALL - - 76 * - 91
----
-6916

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT + COUNT( DISTINCT + + 18 ) * 48 * - COUNT( * ) + + - COALESCE ( 56, - 17 ) * + - 10 AS col1
----
512

skipif mysql # not compatible
query I rowsort label-3361
SELECT + COUNT ( DISTINCT + + 18 ) * 48 * - COUNT ( * ) + + - COALESCE ( 56, - 17 ) * + - 10 AS col1
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT - 89 - + ( - MIN( - + 88 ) )
----
-177

skipif mysql # not compatible
query I rowsort label-3362
SELECT - 89 - + ( - MIN ( - + 88 ) )
----
-177

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL - + MAX( DISTINCT + 87 ) * - - 73
----
-6351

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL - + MAX ( DISTINCT + 87 ) * - - 73
----
-6351

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT + - MIN( DISTINCT - 89 ) col1
----
89

skipif mysql # not compatible
query I rowsort label-3365
SELECT + - MIN ( DISTINCT - 89 ) col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT - COALESCE ( 78, 77 + - 57 * + 88 + COUNT( ALL 77 ) - - 11 * - 6 * - COUNT( 89 ) + - 36 + - + 59 ) + - 17
----
-95

skipif mysql # not compatible
query I rowsort label-3366
SELECT - COALESCE ( 78, 77 + - 57 * + 88 + COUNT ( ALL 77 ) - - 11 * - 6 * - COUNT ( 89 ) + - 36 + - + 59 ) + - 17
----
-95

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3368
SELECT ALL + CASE + + CASE - NULLIF ( + 98, - 53 ) WHEN 27 + ( MIN( ALL - - 20 ) ) + - 4 THEN NULL WHEN + 43 / + 91 THEN - - 17 + COALESCE ( + 79, - 93 ) * - COUNT( * ) WHEN + 96 THEN 61 WHEN - 81 + + + MIN( ALL - CAST( NULL AS SIGNED ) ) + - - 45 THEN + 79 ELSE + + 17 END WHEN MAX( ALL CAST( NULL AS SIGNED ) ) * 51 THEN NULL WHEN 90 + 55 THEN 3 ELSE 51 + + 34 * MIN( DISTINCT - 64 ) END AS col1
----
-2125

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + CASE + + CASE - NULLIF ( + 98, - 53 ) WHEN 27 + ( MIN ( ALL - - 20 ) ) + - 4 THEN NULL WHEN + 43 / + 91 THEN - - 17 + COALESCE ( + 79, - 93 ) * - COUNT ( * ) WHEN + 96 THEN 61 WHEN - 81 + + + MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - - 45 THEN + 79 ELSE + + 17 END WHEN MAX ( ALL CAST ( NULL AS INTEGER ) ) * 51 THEN NULL WHEN 90 + 55 THEN 3 ELSE 51 + + 34 * MIN ( DISTINCT - 64 ) END AS col1
----
-2125

onlyif mysql # aggregate syntax: 
query II rowsort label-3369
SELECT ALL 25 * 27 col0, - MAX( - - 51 ) col2
----
675
-51

skipif mysql # not compatible
query II rowsort label-3369
SELECT ALL 25 * 27 col0, - MAX ( - - 51 ) col2
----
675
-51

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

skipif mysql # not compatible
query I rowsort label-3370
SELECT - COUNT ( - 53 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3371
SELECT - COUNT( 3 ) + - COALESCE ( + + NULLIF ( - 97, - CAST( NULL AS SIGNED ) * + - 13 + + COALESCE ( + 94, 94 + - + 26 ) ), + 36 * - COUNT( * ) DIV - 66 * 92 - + 15 + + 9 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3371
SELECT - COUNT ( 3 ) + - COALESCE ( + + NULLIF ( - 97, - CAST ( NULL AS INTEGER ) * + - 13 + + COALESCE ( + 94, 94 + - + 26 ) ), + 36 * - COUNT ( * ) / - 66 * 92 - + 15 + + 9 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3372
SELECT ALL - 38 * - - 83 AS col0, COUNT( * )
----
-3154
1

skipif mysql # not compatible
query II rowsort label-3372
SELECT ALL - 38 * - - 83 AS col0, COUNT ( * )
----
-3154
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT - 54 * 32 * + 88 * - MAX( ALL + 2 ) AS col1
----
304128

skipif mysql # not compatible
query I rowsort label-3373
SELECT - 54 * 32 * + 88 * - MAX ( ALL + 2 ) AS col1
----
304128

query I rowsort
SELECT - 71 + - 3 + + + 54 + - 69
----
-89

query II rowsort
SELECT ALL + 48 * - 47 AS col0, + 43
----
-2256
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3376
SELECT DISTINCT - 93 + + 28 + 24 - ( + 11 ) * + - 94 * COUNT( * ) AS col2, 93
----
993
93

skipif mysql # not compatible
query II rowsort label-3376
SELECT DISTINCT - 93 + + 28 + 24 - ( + 11 ) * + - 94 * COUNT ( * ) AS col2, 93
----
993
93

query I rowsort
SELECT - 24 * - 93 AS col0
----
2232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3378
SELECT DISTINCT + COUNT( * ) + 34 - CAST( NULL AS SIGNED ), CASE + COUNT( * ) WHEN - + 54 * + - 17 + + 19 * - - 44 THEN NULL WHEN 37 - + 48 THEN 59 * 34 / 0 * - + 5 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3378
SELECT DISTINCT + COUNT ( * ) + 34 - CAST ( NULL AS INTEGER ), CASE + COUNT ( * ) WHEN - + 54 * + - 17 + + 19 * - - 44 THEN NULL WHEN 37 - + 48 THEN 59 * 34 / 0 * - + 5 END AS col2
----
NULL
NULL

query I rowsort
SELECT - CASE - - 70 WHEN + + 25 + - 0 / + - 48 + + 23 - + 63 THEN NULL ELSE 73 END AS col0
----
-73

query I rowsort
SELECT ALL COALESCE ( + 28, 2 ) + - 14 AS col1
----
14

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

skipif mysql # not compatible
query I rowsort label-3381
SELECT + 17 - - + ( + - COUNT ( * ) ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3382
SELECT ALL CAST( - + CAST( CASE + - 79 WHEN 98 THEN NULL WHEN - 50 THEN + 96 * 36 ELSE + + 15 / + + 30 + + CASE - ( - 43 ) WHEN - NULLIF ( 93, + MIN( + ( 15 ) ) ) * 58 THEN COUNT( * ) + 91 - - 70 + + + COUNT( * ) * + 48 END - 78 + 3 - + - 33 END AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL CAST ( - + CAST ( CASE + - 79 WHEN 98 THEN NULL WHEN - 50 THEN + 96 * 36 ELSE + + 15 / + + 30 + + CASE - ( - 43 ) WHEN - NULLIF ( 93, + MIN ( + ( 15 ) ) ) * 58 THEN COUNT ( * ) + 91 - - 70 + + + COUNT ( * ) * + 48 END - 78 + 3 - + - 33 END AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 88 + 35 + - 96
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT DISTINCT + 63 + + 60 + - NULLIF ( + ( 79 ), - COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT + 63 + + 60 + - NULLIF ( + ( 79 ), - COUNT ( * ) )
----
44

query I rowsort
SELECT ALL - 5 + + 58 AS col2
----
53

query II rowsort
SELECT + + 25 + - - 30 + 45 AS col0, + 34 * 77
----
100
2618

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL + COUNT( * ) * 43 * 75 AS col0
----
3225

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL + COUNT ( * ) * 43 * 75 AS col0
----
3225

query I rowsort
SELECT + - 50 + - - 86 * + 64 + - + ( 64 ) AS col0
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT + + 75 + + 30 * - COALESCE ( - + 19, + 92 * 68 - + SUM( ALL 49 ) )
----
645

skipif mysql # not compatible
query I rowsort label-3389
SELECT + + 75 + + 30 * - COALESCE ( - + 19, + 92 * 68 - + SUM ( ALL 49 ) )
----
645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3390
SELECT ALL - COUNT( * ) DIV 31 * - 85 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL - COUNT ( * ) / 31 * - 85 + COUNT ( * )
----
1

query I rowsort
SELECT + - 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT + + 3 * - COUNT( * ) + + + COUNT( * ) + 9 col2
----
7

skipif mysql # not compatible
query I rowsort label-3392
SELECT + + 3 * - COUNT ( * ) + + + COUNT ( * ) + 9 col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3393
SELECT + - 98 * 29 DIV 46 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-3393
SELECT + - 98 * 29 / 46 AS col2
----
-61

query I rowsort
SELECT DISTINCT + + 52 AS col2
----
52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3396
SELECT DISTINCT CAST( NULL AS SIGNED ) / 23 - + COUNT( * ) + 40 - - 21 * - + 65 + 23 + + ( + 18 ) * + - 72 / + COUNT( DISTINCT + 76 ) + - 85 / SUM( ( 7 ) ) * - ( 95 ) - - - 9 * - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 23 - + COUNT ( * ) + 40 - - 21 * - + 65 + 23 + + ( + 18 ) * + - 72 / + COUNT ( DISTINCT + 76 ) + - 85 / SUM ( ( 7 ) ) * - ( 95 ) - - - 9 * - + 15
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3397
SELECT ALL - COALESCE ( - 72, 54 DIV + 7 DIV - 92 - + COUNT( DISTINCT + 58 ) ) DIV - 31 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - COALESCE ( - 72, 54 / + 7 / - 92 - + COUNT ( DISTINCT + 58 ) ) / - 31 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + 48 + MIN( - 12 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3398
SELECT + 48 + MIN ( - 12 ) AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3399
SELECT ALL + CAST( + + 0 AS SIGNED ), 44 * + 95 AS col1
----
0
4180

skipif mysql # not compatible
query II rowsort label-3399
SELECT ALL + CAST ( + + 0 AS INTEGER ), 44 * + 95 AS col1
----
0
4180

query I rowsort
SELECT DISTINCT + 4 * + 0 * + 23
----
0

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

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

query I rowsort
SELECT DISTINCT + 3 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + 2 * + MIN( + ( + 54 ) )
----
108

skipif mysql # not compatible
query I rowsort label-3403
SELECT + 2 * + MIN ( + ( + 54 ) )
----
108

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3405
SELECT + ( + 39 ) * + 63 + CAST( NULL AS DECIMAL ) * 32 * - 74 * + + NULLIF ( - AVG ( ALL + + 97 ), 17 ) * - 32 * + COUNT( * ) * - 6 / 51 * 96 / - - 76 - + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT + ( + 39 ) * + 63 + CAST ( NULL AS REAL ) * 32 * - 74 * + + NULLIF ( - AVG ( ALL + + 97 ), 17 ) * - 32 * + COUNT ( * ) * - 6 / 51 * 96 / - - 76 - + + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT CASE - MAX( - 55 ) WHEN + + 79 * + + 42 + 16 THEN 41 * - AVG ( 92 ) + - + 31 WHEN + COUNT( DISTINCT + + 57 ) * - + COUNT( * ) * 5 + + 62 * 40 * COALESCE ( + COUNT( * ), + + 95 / - - 8, - - ( + + SUM( ALL - 58 ) ) - + + 97 ) * 21 + + 23 THEN + + ( + 47 ) + - ( - 93 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT CASE - MAX ( - 55 ) WHEN + + 79 * + + 42 + 16 THEN 41 * - AVG ( 92 ) + - + 31 WHEN + COUNT ( DISTINCT + + 57 ) * - + COUNT ( * ) * 5 + + 62 * 40 * COALESCE ( + COUNT ( * ), + + 95 / - - 8, - - ( + + SUM ( ALL - 58 ) ) - + + 97 ) * 21 + + 23 THEN + + ( + 47 ) + - ( - 93 ) END
----
NULL

query I rowsort
SELECT - 60 * + + 52
----
-3120

query I rowsort
SELECT 76 + + 12
----
88

query I rowsort
SELECT 79 - + - ( + COALESCE ( 17, - ( - 70 ) ) ) + 31 + 43 - - 64
----
234

query I rowsort
SELECT 86 + + 98 AS col2
----
184

query I rowsort
SELECT ALL 53 + 28 AS col2
----
81

query I rowsort
SELECT 95 * + ( + 64 ) AS col2
----
6080

query I rowsort
SELECT ALL + 7 + + 87 * + 63 AS col2
----
5488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3414
SELECT 11 + - + CASE - COUNT( * ) WHEN - COUNT( * ) * 30 THEN COUNT( * ) WHEN - + NULLIF ( - 98, + CAST( COUNT( * ) AS SIGNED ) / - COUNT( ALL - 85 ) + - 35 + - - AVG ( ( - 28 ) ) * ( - + CAST( 30 AS DECIMAL ) ) * - 64 * - 46 / - 92 * - - 25 ) THEN - - 16 * - + ( - 96 ) + - COUNT( * ) + + CASE 75 WHEN 67 * 1 THEN 26 + - 34 * 43 WHEN + 77 * - COUNT( * ) - COUNT( * ) THEN - 3 ELSE NULL END - 90 / + 12 WHEN ( 21 ) THEN NULL ELSE 77 + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT 11 + - + CASE - COUNT ( * ) WHEN - COUNT ( * ) * 30 THEN COUNT ( * ) WHEN - + NULLIF ( - 98, + CAST ( COUNT ( * ) AS INTEGER ) / - COUNT ( ALL - 85 ) + - 35 + - - AVG ( ( - 28 ) ) * ( - + CAST ( 30 AS REAL ) ) * - 64 * - 46 / - 92 * - - 25 ) THEN - - 16 * - + ( - 96 ) + - COUNT ( * ) + + CASE 75 WHEN 67 * 1 THEN 26 + - 34 * 43 WHEN + 77 * - COUNT ( * ) - COUNT ( * ) THEN - 3 ELSE NULL END - 90 / + 12 WHEN ( 21 ) THEN NULL ELSE 77 + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT 85 DIV + 3
----
28

skipif mysql # not compatible
query I rowsort label-3416
SELECT 85 / + 3
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT 21 + - - SUM( 90 ) * - + 28
----
-2499

skipif mysql # not compatible
query I rowsort label-3417
SELECT 21 + - - SUM ( 90 ) * - + 28
----
-2499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3418
SELECT 91 * - CASE + 5 WHEN + NULLIF ( + ( 91 ), - 61 * + + 12 + ( - 2 ) + - 15 ) THEN NULL WHEN 82 THEN - - 75 + 58 ELSE - + 6 + ( - + 32 ) DIV + - ( + COUNT( * ) ) END AS col0
----
-2366

skipif mysql # not compatible
query I rowsort label-3418
SELECT 91 * - CASE + 5 WHEN + NULLIF ( + ( 91 ), - 61 * + + 12 + ( - 2 ) + - 15 ) THEN NULL WHEN 82 THEN - - 75 + 58 ELSE - + 6 + ( - + 32 ) / + - ( + COUNT ( * ) ) END AS col0
----
-2366

query II rowsort
SELECT 30 + + 34 * + 25 col0, - 95
----
880
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT DISTINCT + + 35 + + COUNT( ALL 97 ) + - MIN( DISTINCT + 13 ) + - 38
----
-15

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT + + 35 + + COUNT ( ALL 97 ) + - MIN ( DISTINCT + 13 ) + - 38
----
-15

query II rowsort
SELECT - 95 AS col0, - 55 AS col0
----
-95
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3422
SELECT DISTINCT - COALESCE ( - 82, + 51, - - ( + - SUM( DISTINCT - 77 ) ) ) + + - CAST( + 65 AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT - COALESCE ( - 82, + 51, - - ( + - SUM ( DISTINCT - 77 ) ) ) + + - CAST ( + 65 AS INTEGER ) AS col1
----
17

query II rowsort
SELECT ALL + 31, - 70 AS col2
----
31
-70

query I rowsort
SELECT DISTINCT + - 43 * + 33 - + 6
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL 60 - + MIN( ALL + - 60 ) + - 48 - + 83
----
-11

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL 60 - + MIN ( ALL + - 60 ) + - 48 - + 83
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT 66 DIV 62
----
1

skipif mysql # not compatible
query I rowsort label-3426
SELECT 66 / 62
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT ALL CASE + CAST( NULL AS SIGNED ) WHEN + + 5 + + 54 THEN - 96 / - + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL CASE + CAST ( NULL AS INTEGER ) WHEN + + 5 + + 54 THEN - 96 / - + 52 END
----
NULL

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

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

query I rowsort
SELECT 13 * 37 col0
----
481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT + CASE + 70 WHEN + - 98 + 51 THEN - 2 WHEN + 63 / COALESCE ( - COUNT( * ), COUNT( * ) + - + CAST( - + 32 AS SIGNED ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT + CASE + 70 WHEN + - 98 + 51 THEN - 2 WHEN + 63 / COALESCE ( - COUNT ( * ), COUNT ( * ) + - + CAST ( - + 32 AS INTEGER ) ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT + + CASE - 23 WHEN - COUNT( * ) THEN - 6 + + 8 ELSE NULLIF ( + ( + COUNT( * ) ), + - 54 * 68 ) * - + 1 END col1
----
-1

skipif mysql # not compatible
query I rowsort label-3431
SELECT + + CASE - 23 WHEN - COUNT ( * ) THEN - 6 + + 8 ELSE NULLIF ( + ( + COUNT ( * ) ), + - 54 * 68 ) * - + 1 END col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3432
SELECT 36 * - - ( ( CASE - 97 WHEN + + 69 THEN + CAST( NULL AS SIGNED ) END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT 36 * - - ( ( CASE - 97 WHEN + + 69 THEN + CAST ( NULL AS INTEGER ) END ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT DISTINCT - COUNT( - CAST( NULL AS SIGNED ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT - COUNT ( - CAST ( NULL AS INTEGER ) ) col0
----
0

query I rowsort
SELECT ALL - 8 * + + 27
----
-216

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3436
SELECT DISTINCT - NULLIF ( - CAST( NULL AS SIGNED ), CAST( - 45 AS SIGNED ) + - - ( + - 93 ) - - - COUNT( * ) + - CAST( + 25 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - NULLIF ( - CAST ( NULL AS INTEGER ), CAST ( - 45 AS INTEGER ) + - - ( + - 93 ) - - - COUNT ( * ) + - CAST ( + 25 AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 75 * 31
----
2325

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3439
SELECT + CAST( + 32 AS SIGNED ) DIV - 48 * - 67 * + 38 - + - 88 * 53 * - 43 + CAST( + + ( + SUM( - 21 ) ) AS SIGNED )
----
-200573

skipif mysql # not compatible
query I rowsort label-3439
SELECT + CAST ( + 32 AS INTEGER ) / - 48 * - 67 * + 38 - + - 88 * 53 * - 43 + CAST ( + + ( + SUM ( - 21 ) ) AS INTEGER )
----
-200573

query I rowsort
SELECT ( - 72 ) * - 97 - - + 18 AS col0
----
7002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT ALL COUNT( * ) + - - 43 + - - 36 DIV - COUNT( + + 70 )
----
8

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL COUNT ( * ) + - - 43 + - - 36 / - COUNT ( + + 70 )
----
8

query I rowsort
SELECT DISTINCT 78 + - 42
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT DISTINCT COALESCE ( - 56, - COUNT( * ) + - + 19 ) + 24
----
-32

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT COALESCE ( - 56, - COUNT ( * ) + - + 19 ) + 24
----
-32

query II rowsort
SELECT ALL 12 + - - 69 AS col0, 98 AS col2
----
81
98

query I rowsort
SELECT ALL - 76 + - 17 + - + 47 col1
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT ALL + ( 74 ) + - CASE MIN( ALL - 65 ) WHEN + 99 THEN + + 64 + COUNT( * ) WHEN - ( + - ( + - 37 ) ) THEN 3 WHEN - + 78 THEN + 81 ELSE + 37 END AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL + ( 74 ) + - CASE MIN ( ALL - 65 ) WHEN + 99 THEN + + 64 + COUNT ( * ) WHEN - ( + - ( + - 37 ) ) THEN 3 WHEN - + 78 THEN + 81 ELSE + 37 END AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + 73 * - 47 * MAX( DISTINCT 19 ) + - 14 AS col1
----
-65203

skipif mysql # not compatible
query I rowsort label-3447
SELECT + 73 * - 47 * MAX ( DISTINCT 19 ) + - 14 AS col1
----
-65203

query I rowsort
SELECT ( + - 71 ) * 15 AS col0
----
-1065

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT DISTINCT COUNT( * ) * 69 * + COUNT( * ) * - + 20 * - + 47 AS col1
----
64860

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT COUNT ( * ) * 69 * + COUNT ( * ) * - + 20 * - + 47 AS col1
----
64860

query I rowsort
SELECT ALL 0 + + 54 AS col1
----
54

query I rowsort
SELECT ( + + 40 ) - + 37
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3452
SELECT DISTINCT COUNT( * ) * 51 AS col1, COUNT( * ) DIV - 30
----
51
0

skipif mysql # not compatible
query II rowsort label-3452
SELECT DISTINCT COUNT ( * ) * 51 AS col1, COUNT ( * ) / - 30
----
51
0

query I rowsort
SELECT ALL 64 - + + 20 + + 39
----
83

onlyif mysql # DIV for integer division: 
query II rowsort label-3454
SELECT 58 + + + 26 AS col1, 70 DIV 45 col1
----
84
1

skipif mysql # not compatible
query II rowsort label-3454
SELECT 58 + + + 26 AS col1, 70 / 45 col1
----
84
1

query I rowsort
SELECT ALL 62 - 53 + + 4 AS col1
----
13

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

query I rowsort
SELECT + 14 - 87 AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3458
SELECT 50 * 49 + + + 27 DIV + COUNT( * )
----
2477

skipif mysql # not compatible
query I rowsort label-3458
SELECT 50 * 49 + + + 27 / + COUNT ( * )
----
2477

query I rowsort
SELECT + 58 + - 79 * + 56
----
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT COUNT( * ) * + - 27 * COALESCE ( + 65, - + 83 * - 45 + + 55 ) col1
----
-1755

skipif mysql # not compatible
query I rowsort label-3460
SELECT COUNT ( * ) * + - 27 * COALESCE ( + 65, - + 83 * - 45 + + 55 ) col1
----
-1755

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT 61 + 82 DIV 32 + - 44
----
19

skipif mysql # not compatible
query I rowsort label-3462
SELECT 61 + 82 / 32 + - 44
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT DISTINCT - 59 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT - 59 / 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT ALL - + 98 * + ( CAST( + - 50 AS SIGNED ) ) AS col2
----
4900

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - + 98 * + ( CAST ( + - 50 AS INTEGER ) ) AS col2
----
4900

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

skipif mysql # not compatible
query I rowsort label-3465
SELECT + 30 / 35 - + + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT ALL - 10 * - - MIN( ALL + + 61 )
----
-610

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL - 10 * - - MIN ( ALL + + 61 )
----
-610

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT DISTINCT 79 DIV - 17 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT 79 / - 17 AS col0
----
-4

query II rowsort
SELECT + 88 * - 72 AS col1, - 68
----
-6336
-68

query I rowsort
SELECT CASE + 4 WHEN - 99 THEN NULL ELSE - - 73 END * 81 + + 68 AS col0
----
5981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT ALL - ( - CAST( 42 AS SIGNED ) ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL - ( - CAST ( 42 AS INTEGER ) ) AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT ALL COALESCE ( + COALESCE ( + + 4, - 0 - - + 8, + ( + + 75 ) * 41 * COALESCE ( - CASE + 14 WHEN 63 * - 72 THEN - - 46 END, + - 3 ), + CAST( + 8 AS SIGNED ) ), MAX( ALL + - 74 ) ) * 81 * + 54 + + 19 + - 72
----
17443

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL COALESCE ( + COALESCE ( + + 4, - 0 - - + 8, + ( + + 75 ) * 41 * COALESCE ( - CASE + 14 WHEN 63 * - 72 THEN - - 46 END, + - 3 ), + CAST ( + 8 AS INTEGER ) ), MAX ( ALL + - 74 ) ) * 81 * + 54 + + 19 + - 72
----
17443

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT - 72 + + - COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-3472
SELECT - 72 + + - COUNT ( * ) AS col1
----
-73

query I rowsort
SELECT DISTINCT 70 * - + 67 + - 57 AS col2
----
-4747

query I rowsort
SELECT ALL + ( + 59 ) AS col2
----
59

query I rowsort
SELECT DISTINCT + 44 * 85 * - + 30 + - 76 AS col2
----
-112276

onlyif mysql # aggregate syntax: 
query II rowsort label-3476
SELECT + COUNT( * ) AS col2, - COALESCE ( - + COALESCE ( + 64, - - 3 ), + 6, - 90 )
----
1
64

skipif mysql # not compatible
query II rowsort label-3476
SELECT + COUNT ( * ) AS col2, - COALESCE ( - + COALESCE ( + 64, - - 3 ), + 6, - 90 )
----
1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL + COALESCE ( - 18, + + 36 * + + 51 + 90 - - - COALESCE ( + + 19, - 76, + 67 ), SUM( - + 18 ) ) * - - 85 * - 94 + - 44 + + + 57 AS col0
----
143833

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL + COALESCE ( - 18, + + 36 * + + 51 + 90 - - - COALESCE ( + + 19, - 76, + 67 ), SUM ( - + 18 ) ) * - - 85 * - 94 + - 44 + + + 57 AS col0
----
143833

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT COUNT( + 56 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3478
SELECT COUNT ( + 56 ) AS col0
----
1

query I rowsort
SELECT ALL - 17 * - + 2 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT DISTINCT MIN( ALL + 41 ) * + 11 + - - 57 + - 89 + + 33
----
452

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT MIN ( ALL + 41 ) * + 11 + - - 57 + - 89 + + 33
----
452

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT MIN( + 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3481
SELECT MIN ( + 16 ) AS col0
----
16

query II rowsort
SELECT + 55 AS col0, 82 * - + 81
----
55
-6642

query I rowsort
SELECT + 94 + - 56 AS col0
----
38

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

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL COUNT ( * ) + 55 AS col1
----
56

query I rowsort
SELECT 17 * 42 + - 63
----
651

query I rowsort
SELECT 44 * + 70 + + NULLIF ( - 26, 11 - + - 20 ) + - - 95
----
3149

query I rowsort
SELECT DISTINCT NULLIF ( 28, - 84 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL + COUNT( * ) - AVG ( DISTINCT + CASE + - 72 WHEN - + NULLIF ( + 36, 23 + 88 + - 10 * - 92 * 35 * + 17 + + 69 ) + + - NULLIF ( + 9, 98 ) THEN + 83 + - 69 WHEN + 32 THEN + 48 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + COUNT ( * ) - AVG ( DISTINCT + CASE + - 72 WHEN - + NULLIF ( + 36, 23 + 88 + - 10 * - 92 * 35 * + 17 + + 69 ) + + - NULLIF ( + 9, 98 ) THEN + 83 + - 69 WHEN + 32 THEN + 48 END )
----
NULL

query II rowsort
SELECT DISTINCT 72 col0, + 4 + + - 70 AS col0
----
72
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT + 99 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT + 99 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + 0 ) + + 19 - + - 65 col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3492
SELECT ALL COUNT( - 43 ) * 19 DIV 8 + - 86 DIV 12 + NULLIF ( + - 25, + CASE 20 WHEN MAX( ALL - + 35 ) THEN NULL WHEN - COUNT( * ) * + 10 THEN + 28 * - 0 + + + MIN( + + 43 ) ELSE + ( + 11 ) END )
----
-30

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL COUNT ( - 43 ) * 19 / 8 + - 86 / 12 + NULLIF ( + - 25, + CASE 20 WHEN MAX ( ALL - + 35 ) THEN NULL WHEN - COUNT ( * ) * + 10 THEN + 28 * - 0 + + + MIN ( + + 43 ) ELSE + ( + 11 ) END )
----
-30

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

skipif mysql # not compatible
query I rowsort label-3493
SELECT + CAST ( - 26 AS INTEGER ) * + 70 AS col1
----
-1820

query I rowsort
SELECT DISTINCT - NULLIF ( - + 57, + + 19 )
----
57

query I rowsort
SELECT ALL + 30 * + 88 AS col1
----
2640

query I rowsort
SELECT ALL + 80 + - 17 AS col0
----
63

query II rowsort
SELECT DISTINCT + 70 AS col1, 22 - + + AVG ( ALL - - CASE + + 79 WHEN - 46 THEN NULL WHEN 58 THEN NULL WHEN 68 THEN + - 38 + 11 + + - 52 * - 25 ELSE NULL END ) AS col1
----
70
NULL

query I rowsort
SELECT ALL - 6 + - - 60
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3499
SELECT + + 0 + - COALESCE ( + 71, - 84 - + CAST( NULL AS SIGNED ), - + 76 * + COUNT( * ) * 59 ) * + COALESCE ( - 1, + 18 ) * + - CASE CAST( 14 AS SIGNED ) WHEN - 91 + - CAST( - AVG ( ALL + + CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN NULL WHEN + + 8 THEN - 74 + - 55 END + + - ( - 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT + + 0 + - COALESCE ( + 71, - 84 - + CAST ( NULL AS INTEGER ), - + 76 * + COUNT ( * ) * 59 ) * + COALESCE ( - 1, + 18 ) * + - CASE CAST ( 14 AS INTEGER ) WHEN - 91 + - CAST ( - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN NULL WHEN + + 8 THEN - 74 + - 55 END + + - ( - 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3500
SELECT - - 45, - COUNT( * ) + + 95 * 79 * - COALESCE ( - + 97, + - 22 ) + 67 AS col2
----
45
728051

skipif mysql # not compatible
query II rowsort label-3500
SELECT - - 45, - COUNT ( * ) + + 95 * 79 * - COALESCE ( - + 97, + - 22 ) + 67 AS col2
----
45
728051

query II rowsort
SELECT - 94, 45 AS col0
----
-94
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT + 86 * 39 + + MAX( + 90 ) AS col1
----
3444

skipif mysql # not compatible
query I rowsort label-3502
SELECT + 86 * 39 + + MAX ( + 90 ) AS col1
----
3444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT - 55 * CAST( + 38 AS SIGNED ) AS col0
----
-2090

skipif mysql # not compatible
query I rowsort label-3503
SELECT - 55 * CAST ( + 38 AS INTEGER ) AS col0
----
-2090

query I rowsort
SELECT DISTINCT + + 30 AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3505
SELECT CAST( NULL AS SIGNED ) col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3505
SELECT CAST ( NULL AS INTEGER ) col0, COUNT ( * )
----
NULL
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3507
SELECT ALL 41 DIV COALESCE ( + 88, + + 59 ) * 90 + + SUM( - NULLIF ( - 69, - + 76 ) )
----
69

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL 41 / COALESCE ( + 88, + + 59 ) * 90 + + SUM ( - NULLIF ( - 69, - + 76 ) )
----
69

query I rowsort
SELECT - 31 - - 98 AS col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT ALL 66 DIV - 99 + - 17 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL 66 / - 99 + - 17 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3510
SELECT DISTINCT + COUNT( * ) AS col2, 33 + - CASE 22 WHEN + 87 THEN + ( - + 40 ) END col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3510
SELECT DISTINCT + COUNT ( * ) AS col2, 33 + - CASE 22 WHEN + 87 THEN + ( - + 40 ) END col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3511
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) col1, - 66
----
1
-66

skipif mysql # not compatible
query II rowsort label-3511
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) col1, - 66
----
1
-66

query I rowsort
SELECT ( - 54 ) AS col1
----
-54

query I rowsort
SELECT ALL + 48 * - ( - - 61 ) AS col0
----
-2928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3514
SELECT ALL CAST( + ( + COUNT( + + 87 ) ) AS SIGNED ) * - CAST( - CAST( 71 AS SIGNED ) AS SIGNED ) + - COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL CAST ( + ( + COUNT ( + + 87 ) ) AS INTEGER ) * - CAST ( - CAST ( 71 AS INTEGER ) AS INTEGER ) + - COUNT ( * ) AS col0
----
70

query I rowsort
SELECT - 1 * + 5 * - + 13
----
65

query I rowsort
SELECT DISTINCT + ( - + 25 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ( + MIN( ALL + ( - 63 ) ) ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-3517
SELECT ( + MIN ( ALL + ( - 63 ) ) ) col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3518
SELECT + COUNT( * ), 51 + 36 col1
----
1
87

skipif mysql # not compatible
query II rowsort label-3518
SELECT + COUNT ( * ), 51 + 36 col1
----
1
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3519
SELECT - 53 - + 33 + COUNT( * ) DIV - - MIN( ALL + 51 ) - - 50 + + COALESCE ( 80, + + 4 )
----
44

skipif mysql # not compatible
query I rowsort label-3519
SELECT - 53 - + 33 + COUNT ( * ) / - - MIN ( ALL + 51 ) - - 50 + + COALESCE ( 80, + + 4 )
----
44

query I rowsort
SELECT ALL + 90 * + 3 - + ( + - 74 )
----
344

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT - 17 + + 2 * - - 24 + + COUNT( * ) + + 64
----
96

skipif mysql # not compatible
query I rowsort label-3521
SELECT - 17 + + 2 * - - 24 + + COUNT ( * ) + + 64
----
96

query I rowsort
SELECT COALESCE ( + - 75, + 30 ) AS col1
----
-75

query I rowsort
SELECT ALL 5 * + 0 AS col0
----
0

query I rowsort
SELECT ALL - 86 * 71 * 98
----
-598388

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT + + 88 AS col1, 86 * - + 85 * + + COUNT( * ) * - CASE + MAX( + 11 ) WHEN + CASE + 93 WHEN - ( + - 87 ) + 44 + 60 - - 30 * 45 * + AVG ( ALL + 54 ) * 40 * 3 * + 78 + - - 67 + - 45 + 33 * - + 75 + + COUNT( ALL - + 49 ) THEN - 82 + + + 30 END THEN - + 16 * + - 50 - - 31 * - 96 + + COALESCE ( + 7 + + 86, + 8 * 68, - 96 * 48 ) * + COALESCE ( COALESCE ( 39, COUNT( DISTINCT 54 ) * - 77, - 79 ), COUNT( * ) - - 19 * + 94 ) END + - 1 AS col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-3525
SELECT + + 88 AS col1, 86 * - + 85 * + + COUNT ( * ) * - CASE + MAX ( + 11 ) WHEN + CASE + 93 WHEN - ( + - 87 ) + 44 + 60 - - 30 * 45 * + AVG ( ALL + 54 ) * 40 * 3 * + 78 + - - 67 + - 45 + 33 * - + 75 + + COUNT ( ALL - + 49 ) THEN - 82 + + + 30 END THEN - + 16 * + - 50 - - 31 * - 96 + + COALESCE ( + 7 + + 86, + 8 * 68, - 96 * 48 ) * + COALESCE ( COALESCE ( 39, COUNT ( DISTINCT 54 ) * - 77, - 79 ), COUNT ( * ) - - 19 * + 94 ) END + - 1 AS col2
----
88
NULL

query I rowsort
SELECT - - 51 * 32 + + ( - + 34 ) + + + 95 AS col2
----
1693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3527
SELECT + COUNT( * ) DIV NULLIF ( + 87, - + 75 ) * - - 34
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT + COUNT ( * ) / NULLIF ( + 87, - + 75 ) * - - 34
----
0

query I rowsort
SELECT ALL - + 23 * + 30
----
-690

query I rowsort
SELECT - 40 + 2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT - - 14 - + SUM( - 67 ) * + 83 AS col2
----
5575

skipif mysql # not compatible
query I rowsort label-3530
SELECT - - 14 - + SUM ( - 67 ) * + 83 AS col2
----
5575

query I rowsort
SELECT - + ( + 25 ) + + 20 + - 18 * + 49 * - 81 + + 77 AS col2
----
71514

query I rowsort
SELECT - NULLIF ( + 92, - - 19 ) AS col1
----
-92

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

query I rowsort
SELECT DISTINCT - - 81 + - + 57
----
24

query II rowsort
SELECT ALL 16 AS col0, + 36 AS col1
----
16
36

query II rowsort
SELECT - 27, 18 AS col0
----
-27
18

query I rowsort
SELECT + 56 + 15 + + + ( - + 12 ) + + 4 * + 49
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL - NULLIF ( 94, + 95 * - - 60 ) + + + COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - NULLIF ( 94, + 95 * - - 60 ) + + + COUNT ( * ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT + 70 DIV - + 30
----
-2

skipif mysql # not compatible
query I rowsort label-3539
SELECT + 70 / - + 30
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3540
SELECT + - COUNT( * ) * + 92 DIV COUNT( * ) * + 48
----
-4416

skipif mysql # not compatible
query I rowsort label-3540
SELECT + - COUNT ( * ) * + 92 / COUNT ( * ) * + 48
----
-4416

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT ALL 37 + + - 54 DIV - 93 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL 37 + + - 54 / - 93 AS col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3542
SELECT 89 + + MIN( + - 90 ), - 44 AS col2
----
-1
-44

skipif mysql # not compatible
query II rowsort label-3542
SELECT 89 + + MIN ( + - 90 ), - 44 AS col2
----
-1
-44

query I rowsort
SELECT ALL - 89 + + 22 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3544
SELECT DISTINCT - CASE + ( - + CAST( NULL AS DECIMAL ) ) WHEN - 79 / - MIN( ALL 40 ) THEN NULL ELSE - 40 END AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - CASE + ( - + CAST ( NULL AS REAL ) ) WHEN - 79 / - MIN ( ALL 40 ) THEN NULL ELSE - 40 END AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL SUM( - 6 ) + + 73 * - - 0 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL SUM ( - 6 ) + + 73 * - - 0 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT 48 - MIN( 24 )
----
24

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT 48 - MIN ( 24 )
----
24

query I rowsort
SELECT + 55 * - - 79 + - 27 AS col2
----
4318

query I rowsort
SELECT 26 * - 15 + + 80 AS col0
----
-310

query II rowsort
SELECT DISTINCT - 72 * 66, 76 col1
----
-4752
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3550
SELECT ALL - ( + 50 ) AS col2, - 47 * CASE + 55 WHEN + + 18 + + - NULLIF ( + 84, 45 ) + - - NULLIF ( 57, + 23 + + CAST( NULL AS SIGNED ) ) + - 85 + + CAST( 83 AS SIGNED ) THEN - - 6 + - 43 END col2
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-3550
SELECT ALL - ( + 50 ) AS col2, - 47 * CASE + 55 WHEN + + 18 + + - NULLIF ( + 84, 45 ) + - - NULLIF ( 57, + 23 + + CAST ( NULL AS INTEGER ) ) + - 85 + + CAST ( 83 AS INTEGER ) THEN - - 6 + - 43 END col2
----
-50
NULL

query I rowsort
SELECT NULLIF ( + - 26, 82 ) * + - 81 * - 71 AS col1
----
-149526

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT SUM( DISTINCT + 21 ) * - 84
----
-1764

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT SUM ( DISTINCT + 21 ) * - 84
----
-1764

query I rowsort
SELECT 30 * - 66
----
-1980

query I rowsort
SELECT ALL + 54 * + 36 AS col2
----
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT - NULLIF ( - 27, + COUNT( * ) ) * - - 11 AS col2
----
297

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - NULLIF ( - 27, + COUNT ( * ) ) * - - 11 AS col2
----
297

query I rowsort
SELECT DISTINCT + 45 * + 78 * - - 65 AS col2
----
228150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3557
SELECT ALL - CASE - 64 WHEN - COUNT( * ) THEN + + 54 WHEN + 33 + + 77 * + 33 + + + COUNT( * ) THEN + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) WHEN - 73 THEN + 17 ELSE + 43 * - + 10 END AS col1
----
430

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL - CASE - 64 WHEN - COUNT ( * ) THEN + + 54 WHEN + 33 + + 77 * + 33 + + + COUNT ( * ) THEN + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) WHEN - 73 THEN + 17 ELSE + 43 * - + 10 END AS col1
----
430

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT + ( - + 22 ) DIV + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT + ( - + 22 ) / + 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + 94 + + + 42 + + COUNT( * ) + 59 + - 99 + 43 * + - 75 * 43 * - + ( - + 19 ) - + - ( - 18 ) * + + 45 * 36 + 27 + 15 AS col2
----
-2663846

skipif mysql # not compatible
query I rowsort label-3559
SELECT + 94 + + + 42 + + COUNT ( * ) + 59 + - 99 + 43 * + - 75 * 43 * - + ( - + 19 ) - + - ( - 18 ) * + + 45 * 36 + 27 + 15 AS col2
----
-2663846

query I rowsort
SELECT 36 * 44 - + 47
----
1537

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT 80 * - COUNT( * ) + 13 + 23
----
-44

skipif mysql # not compatible
query I rowsort label-3561
SELECT 80 * - COUNT ( * ) + 13 + 23
----
-44

query I rowsort
SELECT ALL - 74 + - 69 * - + 13 AS col2
----
823

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3564
SELECT DISTINCT + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + - 1 - 24 * - NULLIF ( + 40, 45 ), + 48 col0
----
NULL
48

skipif mysql # not compatible
query II rowsort label-3564
SELECT DISTINCT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 1 - 24 * - NULLIF ( + 40, 45 ), + 48 col0
----
NULL
48

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

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

query I rowsort
SELECT - 77 * + + 33 + - 9
----
-2550

query III rowsort
SELECT ALL + 87 * - - 93 AS col0, 53 AS col2, + + 70 AS col1
----
8091
53
70

query I rowsort
SELECT ALL NULLIF ( 26, - - 91 ) col2
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ALL + 93 - + NULLIF ( + ( - 31 ), COUNT( * ) ) AS col1
----
124

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL + 93 - + NULLIF ( + ( - 31 ), COUNT ( * ) ) AS col1
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3572
SELECT ( - - ( - 96 ) ) DIV 96 * - + 89 + + - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-3572
SELECT ( - - ( - 96 ) ) / 96 * - + 89 + + - COUNT ( * )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3573
SELECT COUNT( - 56 ) * - 48 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-3573
SELECT COUNT ( - 56 ) * - 48 / + 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3574
SELECT CAST( NULL AS DECIMAL ) + CAST( 31 AS SIGNED ) AS col1, - 1 + - 5 + + - 61 * + COUNT( * ) AS col0
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-3574
SELECT CAST ( NULL AS REAL ) + CAST ( 31 AS INTEGER ) AS col1, - 1 + - 5 + + - 61 * + COUNT ( * ) AS col0
----
NULL
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3575
SELECT DISTINCT NULLIF ( + COUNT( * ), - CAST( - 56 AS SIGNED ) ) * - - 87 col0
----
87

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT NULLIF ( + COUNT ( * ), - CAST ( - 56 AS INTEGER ) ) * - - 87 col0
----
87

query I rowsort
SELECT 95 * + - 10 AS col2
----
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT MIN( + - 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3577
SELECT MIN ( + - 7 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL 77 * - - NULLIF ( - + ( COUNT( * ) ), - - 37 * - 13 * + - 14 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL 77 * - - NULLIF ( - + ( COUNT ( * ) ), - - 37 * - 13 * + - 14 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL - MAX( - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL - MAX ( - 88 )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3580
SELECT - COUNT( * ) DIV + 69 - + 31 + + - COUNT( * ) + + 67 * - 76 + - 14
----
-5138

skipif mysql # not compatible
query I rowsort label-3580
SELECT - COUNT ( * ) / + 69 - + 31 + + - COUNT ( * ) + + 67 * - 76 + - 14
----
-5138

query I rowsort
SELECT DISTINCT 6 * + 83 AS col2
----
498

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT COUNT( * ) - 18
----
-17

skipif mysql # not compatible
query I rowsort label-3582
SELECT COUNT ( * ) - 18
----
-17

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3586
SELECT 49 - + COALESCE ( + 20, + COUNT( * ) * + 71, + 25 * CASE + - AVG ( DISTINCT - 51 ) WHEN + 31 + - + COUNT( * ) THEN - CASE 17 WHEN 88 THEN + 89 WHEN + - 6 + 33 THEN - CAST( NULL AS SIGNED ) - - - 14 + + MAX( + 72 ) END * + - 29 + - - CAST( NULL AS SIGNED ) * - 68 WHEN + 11 THEN + - 92 END - + NULLIF ( - ( 70 ), - - 43 * - 69 ) + - - 42 * - 87 * 18 ) + - 52
----
-23

skipif mysql # not compatible
query I rowsort label-3586
SELECT 49 - + COALESCE ( + 20, + COUNT ( * ) * + 71, + 25 * CASE + - AVG ( DISTINCT - 51 ) WHEN + 31 + - + COUNT ( * ) THEN - CASE 17 WHEN 88 THEN + 89 WHEN + - 6 + 33 THEN - CAST ( NULL AS INTEGER ) - - - 14 + + MAX ( + 72 ) END * + - 29 + - - CAST ( NULL AS INTEGER ) * - 68 WHEN + 11 THEN + - 92 END - + NULLIF ( - ( 70 ), - - 43 * - 69 ) + - - 42 * - 87 * 18 ) + - 52
----
-23

query I rowsort
SELECT ALL 87 + 88 col0
----
175

query I rowsort
SELECT ALL + + 31 + 87 AS col2
----
118

query I rowsort
SELECT - 31 * - 29 AS col2
----
899

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3591
SELECT ALL - - COUNT( * ), 77 * - 93 AS col0
----
1
-7161

skipif mysql # not compatible
query II rowsort label-3591
SELECT ALL - - COUNT ( * ), 77 * - 93 AS col0
----
1
-7161

onlyif mysql # aggregate syntax: 
query II rowsort label-3592
SELECT - ( + COUNT( * ) ) + - 28 col2, 1 + - COUNT( * ) * 73 + + - 30 * COUNT( * ) AS col2
----
-29
-102

skipif mysql # not compatible
query II rowsort label-3592
SELECT - ( + COUNT ( * ) ) + - 28 col2, 1 + - COUNT ( * ) * 73 + + - 30 * COUNT ( * ) AS col2
----
-29
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3593
SELECT - 58 DIV - CASE MIN( + 12 ) WHEN + 15 THEN NULL ELSE 94 * - - 11 END
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT - 58 / - CASE MIN ( + 12 ) WHEN + 15 THEN NULL ELSE 94 * - - 11 END
----
0

query I rowsort
SELECT ALL - 43 + 65 * - 63 AS col2
----
-4138

query I rowsort
SELECT ALL - + 43 + 77 col2
----
34

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

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

query I rowsort
SELECT DISTINCT - 51 * 11 * + 23 AS col1
----
-12903

query II rowsort
SELECT ALL - + 55 AS col0, 27 AS col0
----
-55
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT + COUNT( * ) + 13
----
14

skipif mysql # not compatible
query I rowsort label-3599
SELECT + COUNT ( * ) + 13
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT - + 7 * - - MIN( - + 14 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3600
SELECT - + 7 * - - MIN ( - + 14 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT ALL + COUNT( * ) + + 83 * ( - 81 )
----
-6722

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL + COUNT ( * ) + + 83 * ( - 81 )
----
-6722

query I rowsort
SELECT ALL - + 64 + - + 47 AS col2
----
-111

query I rowsort
SELECT - 61 + - 44 AS col2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ALL NULLIF ( - 3, 34 ) + + COALESCE ( - 30, - + 97 * COUNT( * ) + ( - 52 ) ) + - 96 * + 73 AS col0
----
-7041

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL NULLIF ( - 3, 34 ) + + COALESCE ( - 30, - + 97 * COUNT ( * ) + ( - 52 ) ) + - 96 * + 73 AS col0
----
-7041

query I rowsort
SELECT - 75 + + 33 + - 74
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL SUM( DISTINCT + 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL SUM ( DISTINCT + 16 ) AS col0
----
16

query I rowsort
SELECT DISTINCT + + 9 - 73 AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT - 2 + - CAST( NULL AS SIGNED ) / + 55 - - + 77 + - ( - 24 ) + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 2 + - CAST ( NULL AS INTEGER ) / + 55 - - + 77 + - ( - 24 ) + - 90
----
NULL

query I rowsort
SELECT ALL - 86 * + + 23 + + 70 AS col0
----
-1908

query I rowsort
SELECT ALL + 89 * + 46 * 9 col0
----
36846

query I rowsort
SELECT ALL NULLIF ( - 98, - + 81 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT - 78 + + COUNT( * ) * + 91 col2
----
13

skipif mysql # not compatible
query I rowsort label-3612
SELECT - 78 + + COUNT ( * ) * + 91 col2
----
13

query I rowsort
SELECT DISTINCT + 71 * - 21
----
-1491

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT DISTINCT COALESCE ( 3, - + COUNT( * ) + 68, - 50 )
----
3

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT COALESCE ( 3, - + COUNT ( * ) + 68, - 50 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT - CAST( 55 AS SIGNED ) * + 59
----
-3245

skipif mysql # not compatible
query I rowsort label-3615
SELECT - CAST ( 55 AS INTEGER ) * + 59
----
-3245

query I rowsort
SELECT + 72 * - - 71
----
5112

query I rowsort
SELECT ALL ( + 72 ) col2
----
72

query I rowsort
SELECT - 42 + - 72
----
-114

query I rowsort
SELECT DISTINCT + 72 * + 83 * 35 * + 26 * - 9 AS col0
----
-48943440

query I rowsort
SELECT DISTINCT NULLIF ( - COALESCE ( 34, + 8 ), + 80 * 18 )
----
-34

query II rowsort
SELECT - 36 * + - 2, - 64 AS col1
----
72
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT CASE 73 WHEN + COALESCE ( - 91, - 41 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT CASE 73 WHEN + COALESCE ( - 91, - 41 ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL COALESCE ( + COUNT( ALL - 68 ), + 34 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL COALESCE ( + COUNT ( ALL - 68 ), + 34 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT 91 * - 58 / NULLIF ( + 45, + ( 14 ) * - 1 + + NULLIF ( - - 53, + 66 ) ) * - CAST( NULL AS SIGNED ) + + 90 + - 16 * + - COUNT( * ) * - COUNT( + 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT 91 * - 58 / NULLIF ( + 45, + ( 14 ) * - 1 + + NULLIF ( - - 53, + 66 ) ) * - CAST ( NULL AS INTEGER ) + + 90 + - 16 * + - COUNT ( * ) * - COUNT ( + 67 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT - 76 * CAST( + 64 AS SIGNED )
----
-4864

skipif mysql # not compatible
query I rowsort label-3625
SELECT - 76 * CAST ( + 64 AS INTEGER )
----
-4864

query I rowsort
SELECT ALL 46 * 4 AS col1
----
184

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

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

skipif mysql # not compatible
query I rowsort label-3628
SELECT + 58 / 82
----
0

query II rowsort
SELECT ALL 14 * + CASE 66 WHEN - 18 THEN + 98 * + - 50 END + 61 * 22 + - - 40 * - + 59 AS col0, - 47 + - 30 AS col0
----
NULL
-77

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

query I rowsort
SELECT ALL + + 73 AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT ALL - CAST( NULL AS SIGNED ) * - CASE - + 97 WHEN ( + COUNT( * ) ) + + 32 THEN NULL ELSE + + 41 + + - 14 END + + 68 + - 68 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL - CAST ( NULL AS INTEGER ) * - CASE - + 97 WHEN ( + COUNT ( * ) ) + + 32 THEN NULL ELSE + + 41 + + - 14 END + + 68 + - 68 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT + + CAST( NULL AS SIGNED ) * COUNT( DISTINCT - - 70 ) * + + 96 + - 69 - - MIN( ( - 80 ) ) + - - ( - + MIN( - 34 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT + + CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - - 70 ) * + + 96 + - 69 - - MIN ( ( - 80 ) ) + - - ( - + MIN ( - 34 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT DISTINCT MIN( - - 59 ) * - + 78 + + 68 * ( - 7 ) - - + 21 + - - COUNT( * ) + 67 * - 47 + - 76 AS col1
----
-8281

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT MIN ( - - 59 ) * - + 78 + + 68 * ( - 7 ) - - + 21 + - - COUNT ( * ) + 67 * - 47 + - 76 AS col1
----
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + - MIN( DISTINCT - - 34 ) * + 96 * + - 0
----
0

skipif mysql # not compatible
query I rowsort label-3635
SELECT + - MIN ( DISTINCT - - 34 ) * + 96 * + - 0
----
0

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

query I rowsort
SELECT ALL 12 * 62 + - 41
----
703

query I rowsort
SELECT + + 25 * 64 col2
----
1600

query II rowsort
SELECT - 32 * - 56 - 7 - + 79 * - + 95 + + + 26 + + 93 * - 99 + + - 16 AS col0, - 88 AS col0
----
93
-88

query II rowsort
SELECT + 50 * + 74 AS col1, - 56 AS col1
----
3700
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - COALESCE ( 15, 85 + ( + 91 ) * + - 92 * 39 * - COUNT( + + 20 ) * 5 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3641
SELECT - COALESCE ( 15, 85 + ( + 91 ) * + - 92 * 39 * - COUNT ( + + 20 ) * 5 ) AS col0
----
-15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3643
SELECT - 95 DIV 44
----
-2

skipif mysql # not compatible
query I rowsort label-3643
SELECT - 95 / 44
----
-2

query I rowsort
SELECT + 49 * + 65
----
3185

query I rowsort
SELECT - 55 * - + 72
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - MAX( + + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-3646
SELECT - MAX ( + + 42 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3647
SELECT DISTINCT - ( - 42 ) DIV - - 42
----
1

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT - ( - 42 ) / - - 42
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT COALESCE ( + COUNT( * ), - + 57, + 57 * + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT COALESCE ( + COUNT ( * ), - + 57, + 57 * + 5 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3650
SELECT - 59 + + 61 + + COUNT( * ) DIV 47 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3650
SELECT - 59 + + 61 + + COUNT ( * ) / 47 AS col1
----
2

query I rowsort
SELECT - 82 * + 91
----
-7462

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

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 90
----
NULL

query I rowsort
SELECT DISTINCT - 14 * 61 AS col1
----
-854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3654
SELECT 69 / - CAST( NULL AS SIGNED ) / COUNT( + 3 ) * 6 - 20 + + 35 * 53 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT 69 / - CAST ( NULL AS INTEGER ) / COUNT ( + 3 ) * 6 - 20 + + 35 * 53 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3655
SELECT - 46 DIV + - COUNT( 53 )
----
46

skipif mysql # not compatible
query I rowsort label-3655
SELECT - 46 / + - COUNT ( 53 )
----
46

query I rowsort
SELECT + + 57 col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3657
SELECT CAST( NULL AS SIGNED ) AS col0, 86 * - + COUNT( 16 ) + CAST( 2 AS SIGNED ) + - ( - COUNT( * ) ) AS col2
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-3657
SELECT CAST ( NULL AS INTEGER ) AS col0, 86 * - + COUNT ( 16 ) + CAST ( 2 AS INTEGER ) + - ( - COUNT ( * ) ) AS col2
----
NULL
-83

query I rowsort
SELECT + + 34 col1
----
34

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

query I rowsort
SELECT DISTINCT 55 * 38
----
2090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3661
SELECT DISTINCT - + COUNT( * ) DIV + - 88 * COUNT( * ) * 85 + 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT - + COUNT ( * ) / + - 88 * COUNT ( * ) * 85 + 90 AS col2
----
90

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

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

query I rowsort
SELECT DISTINCT 35 * + 19 + 25
----
690

query I rowsort
SELECT 51 * + + 7 AS col1
----
357

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT COUNT( * ) + - 43
----
-42

skipif mysql # not compatible
query I rowsort label-3666
SELECT COUNT ( * ) + - 43
----
-42

query I rowsort
SELECT 98 * - 20
----
-1960

query I rowsort
SELECT 34 * 3
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT 5 + + - COALESCE ( - + 45, + COALESCE ( - 15, + 94 DIV - 5 ), 62 ) * + 57
----
2570

skipif mysql # not compatible
query I rowsort label-3669
SELECT 5 + + - COALESCE ( - + 45, + COALESCE ( - 15, + 94 / - 5 ), 62 ) * + 57
----
2570

query I rowsort
SELECT DISTINCT 54 * + ( - 64 ) * - 81 * - 23
----
-6438528

onlyif mysql # DIV for integer division: 
query II rowsort label-3671
SELECT ALL 79 AS col2, + 32 DIV - 45
----
79
0

skipif mysql # not compatible
query II rowsort label-3671
SELECT ALL 79 AS col2, + 32 / - 45
----
79
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ( + COUNT( * ) ) + - - 11 * ( - 88 ) AS col0
----
-967

skipif mysql # not compatible
query I rowsort label-3672
SELECT ( + COUNT ( * ) ) + - - 11 * ( - 88 ) AS col0
----
-967

onlyif mysql # aggregate syntax: 
query II rowsort label-3673
SELECT ALL 81 AS col0, COUNT( * ) AS col0
----
81
1

skipif mysql # not compatible
query II rowsort label-3673
SELECT ALL 81 AS col0, COUNT ( * ) AS col0
----
81
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3674
SELECT COUNT( * ) + + + 51 DIV + 6
----
9

skipif mysql # not compatible
query I rowsort label-3674
SELECT COUNT ( * ) + + + 51 / + 6
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT ALL - 99 * MAX( ALL + + 77 ) AS col0
----
-7623

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - 99 * MAX ( ALL + + 77 ) AS col0
----
-7623

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL ( + - 29 ) + + MIN( 1 ) * + 47
----
18

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL ( + - 29 ) + + MIN ( 1 ) * + 47
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT 39 + CASE 62 WHEN + 53 THEN + COUNT( * ) * - - 62 + - - 24 + - CAST( - 82 AS SIGNED ) - + - COUNT( 5 ) * + 58 WHEN + SUM( ALL - 35 ) THEN COUNT( - CAST( NULL AS SIGNED ) ) WHEN + - 40 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT 39 + CASE 62 WHEN + 53 THEN + COUNT ( * ) * - - 62 + - - 24 + - CAST ( - 82 AS INTEGER ) - + - COUNT ( 5 ) * + 58 WHEN + SUM ( ALL - 35 ) THEN COUNT ( - CAST ( NULL AS INTEGER ) ) WHEN + - 40 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT 49 + + COUNT( * ) + 67
----
117

skipif mysql # not compatible
query I rowsort label-3678
SELECT 49 + + COUNT ( * ) + 67
----
117

query I rowsort
SELECT 23 * - 71
----
-1633

query I rowsort
SELECT 59 + - + 42
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL - COALESCE ( - 88, + + COUNT( * ) * - + 34 ) + - 2 col2
----
86

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL - COALESCE ( - 88, + + COUNT ( * ) * - + 34 ) + - 2 col2
----
86

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

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL COUNT ( * ) + + + 87 AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT ALL + 64 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL + 64 / 45
----
1

query I rowsort
SELECT 48 + - - 48 AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT DISTINCT 64 col2, ( + MIN( 30 ) ) + + - 34 * - + 84
----
64
2886

skipif mysql # not compatible
query II rowsort label-3685
SELECT DISTINCT 64 col2, ( + MIN ( 30 ) ) + + - 34 * - + 84
----
64
2886

onlyif mysql # aggregate syntax: 
query II rowsort label-3686
SELECT 13 AS col0, 14 + + - CASE - 16 WHEN + 97 * - 51 THEN - - SUM( - 57 ) * - NULLIF ( - 86, 5 / - 86 + 3 + 4 ) + 36 END AS col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-3686
SELECT 13 AS col0, 14 + + - CASE - 16 WHEN + 97 * - 51 THEN - - SUM ( - 57 ) * - NULLIF ( - 86, 5 / - 86 + 3 + 4 ) + 36 END AS col2
----
13
NULL

query I rowsort
SELECT ALL + 37 + 81 + - + 92
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT 66 + - 80 + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3688
SELECT 66 + - 80 + COUNT ( * ) AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT 25 + + AVG ( DISTINCT + + 50 ) * - 80 * - 45 + 82 + + CAST( NULL AS SIGNED ) / 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT 25 + + AVG ( DISTINCT + + 50 ) * - 80 * - 45 + 82 + + CAST ( NULL AS INTEGER ) / 84
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3691
SELECT + 7 AS col0, 10 + - 27 - + + COUNT( * ) - + 71 AS col0
----
7
-89

skipif mysql # not compatible
query II rowsort label-3691
SELECT + 7 AS col0, 10 + - 27 - + + COUNT ( * ) - + 71 AS col0
----
7
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT + - COUNT( 8 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3692
SELECT + - COUNT ( 8 ) col1
----
-1

query I rowsort
SELECT + + COALESCE ( - + 66, - 26 ) AS col1
----
-66

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

query I rowsort
SELECT DISTINCT - 64 col1
----
-64

query I rowsort
SELECT DISTINCT - ( + 39 ) - - ( + ( + 85 ) ) AS col0
----
46

query I rowsort
SELECT - ( - 12 ) + - - 34 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3698
SELECT + - CAST( - 74 AS SIGNED ), - CAST( NULL AS SIGNED ) + + COALESCE ( MAX( + 54 ), - - 26 ) AS col0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-3698
SELECT + - CAST ( - 74 AS INTEGER ), - CAST ( NULL AS INTEGER ) + + COALESCE ( MAX ( + 54 ), - - 26 ) AS col0
----
74
NULL

query I rowsort
SELECT ALL - - 85 col2
----
85

query II rowsort
SELECT + 81 AS col2, + 48 * + + 29 AS col2
----
81
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT 68 * - CASE - 34 WHEN - ( 13 ) + - 77 THEN - MIN( ALL - + 17 ) WHEN 42 + 93 THEN NULL END / + 15 * + 92 + + 4 * + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT 68 * - CASE - 34 WHEN - ( 13 ) + - 77 THEN - MIN ( ALL - + 17 ) WHEN 42 + 93 THEN NULL END / + 15 * + 92 + + 4 * + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT + COUNT( DISTINCT + 86 ) + + + 26
----
27

skipif mysql # not compatible
query I rowsort label-3702
SELECT + COUNT ( DISTINCT + 86 ) + + + 26
----
27

query I rowsort
SELECT 97 + + ( + 2 )
----
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT NULLIF ( 71, - + 11 ) DIV 5 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT NULLIF ( 71, - + 11 ) / 5 / - 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3706
SELECT ALL + ( + - CAST( NULL AS SIGNED ) ) + + - 33 * + - 79 + 65 + + + 26 AS col0, + 20 + + + 31 AS col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-3706
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) + + - 33 * + - 79 + 65 + + + 26 AS col0, + 20 + + + 31 AS col2
----
NULL
51

query I rowsort
SELECT - 43 * + 94 col2
----
-4042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT ALL + + 60 / + 96 / + ( + - NULLIF ( - + CASE - 31 WHEN 33 + 27 THEN NULL WHEN - - 19 + + 29 THEN NULL ELSE + - NULLIF ( CAST( NULL AS SIGNED ), 34 ) * COUNT( + 74 ) END, + 55 * - COUNT( * ) * - MIN( + 50 ) - 62 * - 88 ) ) * - 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + + 60 / + 96 / + ( + - NULLIF ( - + CASE - 31 WHEN 33 + 27 THEN NULL WHEN - - 19 + + 29 THEN NULL ELSE + - NULLIF ( CAST ( NULL AS INTEGER ), 34 ) * COUNT ( + 74 ) END, + 55 * - COUNT ( * ) * - MIN ( + 50 ) - 62 * - 88 ) ) * - 82 col2
----
NULL

query I rowsort
SELECT ALL 13 * + 64 AS col0
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT DISTINCT ( - 11 ) + + COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT ( - 11 ) + + COUNT ( * ) AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3711
SELECT DISTINCT MIN( ALL - 86 ) AS col0, - CASE + 74 WHEN 23 THEN NULL ELSE - - COUNT( * ) * - ( - COUNT( * ) ) - 38 END DIV 26 col1
----
-86
1

skipif mysql # not compatible
query II rowsort label-3711
SELECT DISTINCT MIN ( ALL - 86 ) AS col0, - CASE + 74 WHEN 23 THEN NULL ELSE - - COUNT ( * ) * - ( - COUNT ( * ) ) - 38 END / 26 col1
----
-86
1

query I rowsort
SELECT DISTINCT - 58 * + + 35
----
-2030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3713
SELECT ALL CAST( NULL AS SIGNED ) + + NULLIF ( - 35, + 37 * + - 99 * - - 41 * ( + 13 ) * + MAX( DISTINCT - 49 ) / + + 37 + - COUNT( * ) * - 31 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL CAST ( NULL AS INTEGER ) + + NULLIF ( - 35, + 37 * + - 99 * - - 41 * ( + 13 ) * + MAX ( DISTINCT - 49 ) / + + 37 + - COUNT ( * ) * - 31 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT DISTINCT SUM( + - 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT SUM ( + - 60 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT DISTINCT COUNT( * ) + 72 + 46 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT COUNT ( * ) + 72 + 46 AS col0
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT ALL CAST( + 97 AS SIGNED ) + + 11
----
108

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL CAST ( + 97 AS INTEGER ) + + 11
----
108

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

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

query I rowsort
SELECT ALL 17 * - + 5 col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT DISTINCT COALESCE ( + - 14, 59 + - 67 ) DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT COALESCE ( + - 14, 59 + - 67 ) / - 48
----
0

query II rowsort
SELECT ALL 64 * - 67, 93 AS col1
----
-4288
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3721
SELECT COUNT( * ) + - - 57, - 32 AS col1
----
58
-32

skipif mysql # not compatible
query II rowsort label-3721
SELECT COUNT ( * ) + - - 57, - 32 AS col1
----
58
-32

query I rowsort
SELECT ( - 80 ) - - NULLIF ( + 69, - 45 ) col2
----
-11

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3725
SELECT + MIN( + 62 ) DIV + - 36 + - 13 * 15
----
-196

skipif mysql # not compatible
query I rowsort label-3725
SELECT + MIN ( + 62 ) / + - 36 + - 13 * 15
----
-196

query I rowsort
SELECT - 59 * + 2 AS col1
----
-118

query II rowsort
SELECT ALL + + ( + 6 ) AS col1, 19
----
6
19

query II rowsort
SELECT + 3 + - + 40, 79 AS col0
----
-37
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3729
SELECT DISTINCT + 10 DIV - 90 * - CASE + 79 WHEN + NULLIF ( 19, + COUNT( 27 ) - - 73 ) + + 29 THEN NULL WHEN + COALESCE ( 2, COUNT( * ) * - 54 + + 83 ) * - - 74 THEN 96 DIV + - AVG ( 68 ) ELSE - + 2 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT + 10 / - 90 * - CASE + 79 WHEN + NULLIF ( 19, + COUNT ( 27 ) - - 73 ) + + 29 THEN NULL WHEN + COALESCE ( 2, COUNT ( * ) * - 54 + + 83 ) * - - 74 THEN 96 / + - AVG ( 68 ) ELSE - + 2 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL + MIN( ALL - 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL + MIN ( ALL - 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3731
SELECT - COUNT( + 10 ), 86 AS col2
----
-1
86

skipif mysql # not compatible
query II rowsort label-3731
SELECT - COUNT ( + 10 ), 86 AS col2
----
-1
86

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT - - 13 * CAST( NULL AS SIGNED ) - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT - - 13 * CAST ( NULL AS INTEGER ) - 85 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT + - COALESCE ( 29, + + 60 * - - ( - 84 ) DIV - - COALESCE ( - - 63, - 22 ) + + 96 )
----
-29

skipif mysql # not compatible
query I rowsort label-3734
SELECT + - COALESCE ( 29, + + 60 * - - ( - 84 ) / - - COALESCE ( - - 63, - 22 ) + + 96 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT + + COUNT( * ) + + - 91
----
-90

skipif mysql # not compatible
query I rowsort label-3735
SELECT + + COUNT ( * ) + + - 91
----
-90

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

query I rowsort
SELECT - - 64 + - - 16 * + 54 AS col0
----
928

onlyif mysql # DIV for integer division: 
query II rowsort label-3738
SELECT + + 53 * 67 + - 87, 74 DIV + 7 AS col1
----
3464
10

skipif mysql # not compatible
query II rowsort label-3738
SELECT + + 53 * 67 + - 87, 74 / + 7 AS col1
----
3464
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3739
SELECT - CASE - COUNT( * ) WHEN + 94 THEN COUNT( DISTINCT 80 ) + 22 END * + COUNT( * ) AS col0, MIN( 88 ) AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-3739
SELECT - CASE - COUNT ( * ) WHEN + 94 THEN COUNT ( DISTINCT 80 ) + 22 END * + COUNT ( * ) AS col0, MIN ( 88 ) AS col0
----
NULL
88

query I rowsort
SELECT - NULLIF ( 61, 25 ) - - - 36
----
-97

query I rowsort
SELECT DISTINCT + 25 * 79 AS col1
----
1975

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT + - 77 * 6 + COUNT( * )
----
-461

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT + - 77 * 6 + COUNT ( * )
----
-461

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

skipif mysql # not compatible
query I rowsort label-3743
SELECT - 32 + - COUNT ( * ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ALL COUNT( * ) * + + 20 + + 45 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL COUNT ( * ) * + + 20 + + 45 AS col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3745
SELECT - COUNT( * ) * - 8 AS col0, + COUNT( * ) * + - ( - 94 ) + 53
----
8
147

skipif mysql # not compatible
query II rowsort label-3745
SELECT - COUNT ( * ) * - 8 AS col0, + COUNT ( * ) * + - ( - 94 ) + 53
----
8
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT ALL - + 12 * - 16 * + COUNT( * ) * 55 + 94 DIV COUNT( * ) + - - 65 + + ( 97 ) * - 82 AS col2
----
2765

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL - + 12 * - 16 * + COUNT ( * ) * 55 + 94 / COUNT ( * ) + - - 65 + + ( 97 ) * - 82 AS col2
----
2765

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT ALL + 88 AS col0, + COUNT( * ) col1
----
88
1

skipif mysql # not compatible
query II rowsort label-3747
SELECT ALL + 88 AS col0, + COUNT ( * ) col1
----
88
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3748
SELECT - 13 - + 39 DIV CAST( + 64 AS SIGNED ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-3748
SELECT - 13 - + 39 / CAST ( + 64 AS INTEGER ) AS col2
----
-13

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

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

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

query I rowsort
SELECT ALL + 89 * + - 83 + + + ( + + ( + - 74 ) ) + - - 50 AS col1
----
-7411

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT - 53 + - + SUM( + - 16 ) AS col2, 10 col2
----
-37
10

skipif mysql # not compatible
query II rowsort label-3752
SELECT - 53 + - + SUM ( + - 16 ) AS col2, 10 col2
----
-37
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3754
SELECT - 30 + + 28 + - ( 53 ) + + COUNT( 5 ) + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT - 30 + + 28 + - ( 53 ) + + COUNT ( 5 ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - 37 + - 98 AS col0
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3756
SELECT ALL + CAST( + - 39 AS SIGNED ) * 35 + + CAST( NULL AS SIGNED ) * - COALESCE ( + 5, - ( + + 2 ) + - 47 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL + CAST ( + - 39 AS INTEGER ) * 35 + + CAST ( NULL AS INTEGER ) * - COALESCE ( + 5, - ( + + 2 ) + - 47 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3757
SELECT - 42 * - + 11 + + 45 DIV - SUM( ALL 78 ) DIV ( + COUNT( * ) ) + - + COUNT( ALL NULLIF ( + + 24, + + 69 + - + 96 + + - ( + 28 ) + - 25 ) ) AS col2
----
461

skipif mysql # not compatible
query I rowsort label-3757
SELECT - 42 * - + 11 + + 45 / - SUM ( ALL 78 ) / ( + COUNT ( * ) ) + - + COUNT ( ALL NULLIF ( + + 24, + + 69 + - + 96 + + - ( + 28 ) + - 25 ) ) AS col2
----
461

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

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

query II rowsort
SELECT ALL 53, 25 * 24 AS col0
----
53
600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3760
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( ALL - 88 ) * 89 * - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( ALL - 88 ) * 89 * - 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT - COALESCE ( + COUNT( * ), - + 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-3761
SELECT - COALESCE ( + COUNT ( * ), - + 11 )
----
-1

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

query I rowsort
SELECT DISTINCT + 92 - + 13
----
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3764
SELECT + CASE COUNT( * ) WHEN 40 THEN CAST( - - 66 AS DECIMAL ) ELSE NULL END + 56 / - 57 + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT + CASE COUNT ( * ) WHEN 40 THEN CAST ( - - 66 AS REAL ) ELSE NULL END + 56 / - 57 + 42 AS col2
----
NULL

query II rowsort
SELECT - 8, 50 AS col1
----
-8
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT ALL 17 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL 17 / - 79
----
0

query II rowsort
SELECT DISTINCT - 47 AS col0, + 69
----
-47
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL NULLIF ( + - MAX( ALL - - 49 ), + 96 )
----
-49

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL NULLIF ( + - MAX ( ALL - - 49 ), + 96 )
----
-49

query I rowsort
SELECT DISTINCT 44 * - 27 * 97 * - 14
----
1613304

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT + + 43 DIV - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3770
SELECT + + 43 / - 78 AS col0
----
0

query II rowsort
SELECT + + 19 * + - 55 + - - 69, + 82 AS col2
----
-976
82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3773
SELECT + - 44 col0, SUM( ALL 93 )
----
-44
93

skipif mysql # not compatible
query II rowsort label-3773
SELECT + - 44 col0, SUM ( ALL 93 )
----
-44
93

query II rowsort
SELECT 28 AS col1, 50 + - 47 * + 7 AS col1
----
28
-279

onlyif mysql # DIV for integer division: 
query II rowsort label-3775
SELECT - 59 DIV + - 42 + - 37 AS col2, 65 + 44
----
-36
109

skipif mysql # not compatible
query II rowsort label-3775
SELECT - 59 / + - 42 + - 37 AS col2, 65 + 44
----
-36
109

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3776
SELECT + 16 * CAST( - COALESCE ( 62, + 34 * 97 - - 52 DIV + CASE 82 WHEN 30 THEN - 72 WHEN - 61 + + 1 THEN NULL ELSE - 41 END + ( + - 99 ), + 36 + + ( 74 ) * + 90 + - 17 ) AS SIGNED ) DIV - 89
----
11

skipif mysql # not compatible
query I rowsort label-3776
SELECT + 16 * CAST ( - COALESCE ( 62, + 34 * 97 - - 52 / + CASE 82 WHEN 30 THEN - 72 WHEN - 61 + + 1 THEN NULL ELSE - 41 END + ( + - 99 ), + 36 + + ( 74 ) * + 90 + - 17 ) AS INTEGER ) / - 89
----
11

query II rowsort
SELECT ALL + 26 AS col1, + 52 AS col2
----
26
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT DISTINCT ( + + 9 ) DIV + - 37 + 93 + + 76 + + 83 AS col2
----
252

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT ( + + 9 ) / + - 37 + 93 + + 76 + + 83 AS col2
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT DISTINCT - - 35 / - CAST( NULL AS SIGNED ) + + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT - - 35 / - CAST ( NULL AS INTEGER ) + + - 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3780
SELECT DISTINCT + COUNT( * ) DIV + - 85 + + - COALESCE ( - 85, CAST( NULL AS SIGNED ) * + 57, + 57 ) * - 43, + 12 * 36 - - - 17 * - 87 AS col1
----
-3655
1911

skipif mysql # not compatible
query II rowsort label-3780
SELECT DISTINCT + COUNT ( * ) / + - 85 + + - COALESCE ( - 85, CAST ( NULL AS INTEGER ) * + 57, + 57 ) * - 43, + 12 * 36 - - - 17 * - 87 AS col1
----
-3655
1911

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT DISTINCT + 95 * - + 81 + ( ( - 43 ) ), - 0 + + - 69 * - 55 * - ( - + CASE + 77 WHEN 21 * + - SUM( + + 54 ) / 32 - - + CASE - 86 WHEN + COUNT( * ) THEN + + 20 WHEN + 66 THEN NULL ELSE NULL END + - - COUNT( * ) * - 20 + - ( COUNT( * ) ) / - 97 + + 2 + + + 43 + + + 88 + - 34 + - 14 THEN + 54 ELSE NULL END ) * COUNT( * ) AS col1
----
-7738
NULL

skipif mysql # not compatible
query II rowsort label-3782
SELECT DISTINCT + 95 * - + 81 + ( ( - 43 ) ), - 0 + + - 69 * - 55 * - ( - + CASE + 77 WHEN 21 * + - SUM ( + + 54 ) / 32 - - + CASE - 86 WHEN + COUNT ( * ) THEN + + 20 WHEN + 66 THEN NULL ELSE NULL END + - - COUNT ( * ) * - 20 + - ( COUNT ( * ) ) / - 97 + + 2 + + + 43 + + + 88 + - 34 + - 14 THEN + 54 ELSE NULL END ) * COUNT ( * ) AS col1
----
-7738
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3783
SELECT + CAST( SUM( ALL - 62 ) AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-3783
SELECT + CAST ( SUM ( ALL - 62 ) AS INTEGER )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT DISTINCT + CAST( + - 66 AS SIGNED ) * - CAST( + - 50 AS SIGNED ) + - 99
----
-3399

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT + CAST ( + - 66 AS INTEGER ) * - CAST ( + - 50 AS INTEGER ) + - 99
----
-3399

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL - 95 * + - COUNT( * ) + + COUNT( * ) * - + ( - + 41 )
----
136

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - 95 * + - COUNT ( * ) + + COUNT ( * ) * - + ( - + 41 )
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3786
SELECT COALESCE ( 3, + 55, - 3 * COALESCE ( COUNT( * ), 96, + 44, + 96 ) + - 8 DIV 36 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3786
SELECT COALESCE ( 3, + 55, - 3 * COALESCE ( COUNT ( * ), 96, + 44, + 96 ) + - 8 / 36 ) AS col1
----
3

query I rowsort
SELECT ALL + 77 * - - 4
----
308

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

skipif mysql # not compatible
query I rowsort label-3788
SELECT - COUNT ( * ) * 8
----
-8

query II rowsort
SELECT DISTINCT + ( + 23 ), 70 AS col0
----
23
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3790
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * 41 * - ( - 8 ) AS col1
----
328

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * 41 * - ( - 8 ) AS col1
----
328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3791
SELECT ALL 94 * + CAST( + 71 AS SIGNED ) - + 38 + + NULLIF ( 23, + 57 * - - COUNT( * ) + - 56 ) AS col2
----
6659

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL 94 * + CAST ( + 71 AS INTEGER ) - + 38 + + NULLIF ( 23, + 57 * - - COUNT ( * ) + - 56 ) AS col2
----
6659

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3792
SELECT DISTINCT - 85 * 16 DIV + - 90 - + ( - MAX( - - 4 ) ) * - 32 * - + 56 AS col2
----
7183

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT - 85 * 16 / + - 90 - + ( - MAX ( - - 4 ) ) * - 32 * - + 56 AS col2
----
7183

query II rowsort
SELECT 90 * + - 65 AS col2, 44
----
-5850
44

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

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - 33 / - - COUNT ( * )
----
-33

query I rowsort
SELECT 64 - + + 70 AS col1
----
-6

query II rowsort
SELECT ALL - 15 * - 72, 67 + + - 39 AS col0
----
1080
28

query I rowsort
SELECT ALL - 27 * 65 AS col2
----
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT - MAX( + 70 ) * - 44 AS col1
----
3080

skipif mysql # not compatible
query I rowsort label-3798
SELECT - MAX ( + 70 ) * - 44 AS col1
----
3080

query I rowsort
SELECT DISTINCT - - 21 * + 22
----
462

query I rowsort
SELECT ALL + 52 * - 29 * + - COALESCE ( 11, 36 )
----
16588

query I rowsort
SELECT ALL + NULLIF ( - + 2, + 77 ) * - + ( - 49 ) * - 10 * - 4 + - 2
----
-3922

query I rowsort
SELECT ALL - 93 col2
----
-93

query I rowsort
SELECT 82 + - + 0
----
82

query I rowsort
SELECT 13 * + ( + + 8 ) AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT - - SUM( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-3805
SELECT - - SUM ( 57 )
----
57

query I rowsort
SELECT ALL + 0 + + - 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT ALL 17 + - - 32 + - COUNT( * ) + + - 90 * - 0 * 1 * + 42
----
48

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL 17 + - - 32 + - COUNT ( * ) + + - 90 * - 0 * 1 * + 42
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3808
SELECT + 96 * + CAST( 37 AS SIGNED ) * - COUNT( * ) DIV COUNT( * ) + + - SUM( ALL - + 81 ) * + + 99 AS col0
----
4467

skipif mysql # not compatible
query I rowsort label-3808
SELECT + 96 * + CAST ( 37 AS INTEGER ) * - COUNT ( * ) / COUNT ( * ) + + - SUM ( ALL - + 81 ) * + + 99 AS col0
----
4467

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT ALL + 39 + - SUM( 3 ) + - - 3 - - 98 AS col0
----
137

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + 39 + - SUM ( 3 ) + - - 3 - - 98 AS col0
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-3810
SELECT COALESCE ( + - 41, 63 * MAX( DISTINCT - 7 ) + 41 + 13 ) AS col0, - 73 * - 79
----
-41
5767

skipif mysql # not compatible
query II rowsort label-3810
SELECT COALESCE ( + - 41, 63 * MAX ( DISTINCT - 7 ) + 41 + 13 ) AS col0, - 73 * - 79
----
-41
5767

query II rowsort
SELECT DISTINCT - 48 * - 34 AS col2, + 60 * + ( - + 91 ) + - + ( + 82 ) + 35 AS col0
----
1632
-5507

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT 21 * - 79 + MIN( DISTINCT + - ( ( + - 60 ) ) ) AS col0
----
-1599

skipif mysql # not compatible
query I rowsort label-3812
SELECT 21 * - 79 + MIN ( DISTINCT + - ( ( + - 60 ) ) ) AS col0
----
-1599

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

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

query I rowsort
SELECT 33 * 13 AS col0
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL 19 * + + 42 * - + COUNT( + 38 ) AS col2
----
-798

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL 19 * + + 42 * - + COUNT ( + 38 ) AS col2
----
-798

query I rowsort
SELECT 9 * - 64 * 38 + - - ( 65 )
----
-21823

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT DISTINCT 42 DIV 9 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT 42 / 9 AS col2
----
4

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - 10 * COUNT ( * ) / 46 AS col0
----
0

query I rowsort
SELECT 74 - - 77 col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT COUNT( * ) + 18 * - - 69 * - + 4
----
-4967

skipif mysql # not compatible
query I rowsort label-3822
SELECT COUNT ( * ) + 18 * - - 69 * - + 4
----
-4967

query II rowsort
SELECT 82 AS col2, - 5 AS col0
----
82
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT 58 * 77 * CASE + + 72 WHEN 66 + CASE 2 WHEN - + AVG ( 7 ) + + 11 * - - COUNT( * ) THEN - 22 ELSE NULL END THEN + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3824
SELECT 58 * 77 * CASE + + 72 WHEN 66 + CASE 2 WHEN - + AVG ( 7 ) + + 11 * - - COUNT ( * ) THEN - 22 ELSE NULL END THEN + 97 END
----
NULL

query I rowsort
SELECT ALL - 47 * - + 72 AS col0
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT 64 + - - SUM( - 68 ) + - COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3826
SELECT 64 + - - SUM ( - 68 ) + - COUNT ( * ) AS col0
----
-5

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

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

query I rowsort
SELECT ( + 16 ) + 63
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3829
SELECT CAST( + AVG ( DISTINCT - 17 ) AS SIGNED ) * - - 72 / - - 1 + - + CASE 14 WHEN 45 + + + 8 + - + 52 THEN NULL WHEN + 84 * + 72 + - 36 THEN + 86 ELSE NULL END + - - 50, 97 AS col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-3829
SELECT CAST ( + AVG ( DISTINCT - 17 ) AS INTEGER ) * - - 72 / - - 1 + - + CASE 14 WHEN 45 + + + 8 + - + 52 THEN NULL WHEN + 84 * + 72 + - 36 THEN + 86 ELSE NULL END + - - 50, 97 AS col0
----
NULL
97

query I rowsort
SELECT 18 + 83 - + 49 + - + ( - 85 ) * + - 41 AS col2
----
-3433

query I rowsort
SELECT ALL + + 31 + + 75 AS col2
----
106

query I rowsort
SELECT 95 + - NULLIF ( + 19, - 7 * 78 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3833
SELECT - + MAX( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT - + MAX ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT + - COUNT( * ) + - SUM( 68 )
----
-69

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT + - COUNT ( * ) + - SUM ( 68 )
----
-69

query I rowsort
SELECT ALL - - 43 + - 61 AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3836
SELECT ( SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) * + COUNT( DISTINCT CAST( - 78 AS SIGNED ) ) + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT ( SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) * + COUNT ( DISTINCT CAST ( - 78 AS INTEGER ) ) + + 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT ALL + 60 DIV + ( + - 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + 60 / + ( + - 58 )
----
-1

query I rowsort
SELECT DISTINCT + 2 + - + 86 * 89 col0
----
-7652

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT - 38 + + - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - 38 + + - COUNT ( * )
----
-39

query I rowsort
SELECT ALL + - 31 * - - ( 3 ) * + 23
----
-2139

query I rowsort
SELECT DISTINCT - - 68 * 92 * + 55 + + - 53 AS col1
----
344027

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3842
SELECT CAST( 73 AS SIGNED ) DIV + 57
----
1

skipif mysql # not compatible
query I rowsort label-3842
SELECT CAST ( 73 AS INTEGER ) / + 57
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3843
SELECT ALL + - 51 + 76 - - 63 * COUNT( - CAST( NULL AS SIGNED ) ) + + 99 * + + COUNT( * ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL + - 51 + 76 - - 63 * COUNT ( - CAST ( NULL AS INTEGER ) ) + + 99 * + + COUNT ( * ) AS col0
----
124

query I rowsort
SELECT ALL - + 39 * - 44
----
1716

query I rowsort
SELECT - 30 * + 71 - + 18 - - + 17 - ( - - 29 ) + + 41 AS col2
----
-2119

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT - 34 * COALESCE ( 12, - 78 ) + - + 42 * + COUNT( * ) + 45 * - 36 * - 7 + 11 * - + COUNT( * ) AS col2
----
10879

skipif mysql # not compatible
query I rowsort label-3846
SELECT - 34 * COALESCE ( 12, - 78 ) + - + 42 * + COUNT ( * ) + 45 * - 36 * - 7 + 11 * - + COUNT ( * ) AS col2
----
10879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3847
SELECT + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) * - 63 * + 82 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3847
SELECT + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * - 63 * + 82 AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT 41 DIV + 54 * - 26 + + 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3848
SELECT 41 / + 54 * - 26 + + 77 AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3849
SELECT COUNT( * ) AS col2, 49 + + + 78 + COUNT( * ) DIV + - 21 + + 55
----
1
182

skipif mysql # not compatible
query II rowsort label-3849
SELECT COUNT ( * ) AS col2, 49 + + + 78 + COUNT ( * ) / + - 21 + + 55
----
1
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL - CASE - COUNT( * ) WHEN + 50 + + - 83 THEN + ( - 53 ) - + 40 * + + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL - CASE - COUNT ( * ) WHEN + 50 + + - 83 THEN + ( - 53 ) - + 40 * + + 16 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 71 col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3852
SELECT COUNT( * ) * + + 61 - + CAST( - 81 AS SIGNED ) + - - 12
----
154

skipif mysql # not compatible
query I rowsort label-3852
SELECT COUNT ( * ) * + + 61 - + CAST ( - 81 AS INTEGER ) + - - 12
----
154

query I rowsort
SELECT ALL 1 * - - 76 AS col2
----
76

query I rowsort
SELECT 14 * + 6 + + 78 AS col0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + MIN( DISTINCT + - 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3855
SELECT + MIN ( DISTINCT + - 97 ) AS col0
----
-97

query II rowsort
SELECT ALL - 29 AS col2, ( - 3 ) AS col2
----
-29
-3

query I rowsort
SELECT + 68 * 82 + - - 68
----
5644

query I rowsort
SELECT + 59 * - + 77 AS col1
----
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL 65 * - - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL 65 * - - COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT + SUM( DISTINCT - 44 ) + 36
----
-8

skipif mysql # not compatible
query I rowsort label-3860
SELECT + SUM ( DISTINCT - 44 ) + 36
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT COUNT( ALL + 34 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3861
SELECT COUNT ( ALL + 34 ) col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3862
SELECT ALL + 13, CAST( NULL AS DECIMAL ) AS col1
----
13
NULL

skipif mysql # not compatible
query II rowsort label-3862
SELECT ALL + 13, CAST ( NULL AS REAL ) AS col1
----
13
NULL

query I rowsort
SELECT DISTINCT 0 * 80 col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3864
SELECT ALL + 19 col0, 2 DIV + 68 * + - 93
----
19
0

skipif mysql # not compatible
query II rowsort label-3864
SELECT ALL + 19 col0, 2 / + 68 * + - 93
----
19
0

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

skipif mysql # not compatible
query I rowsort label-3865
SELECT + COUNT ( * ) / + - 7 AS col1
----
0

query I rowsort
SELECT + 86 * + ( 6 ) * - 66 + - 9 + + ( - 99 ) * + 92 - + 31 * - 20 + + 98 - ( 14 ) + 14 + 58
----
-42397

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT + SUM( + - 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3867
SELECT + SUM ( + - 24 ) AS col1
----
-24

query II rowsort
SELECT ALL - 88 * - - 27 AS col1, + 2 * + - 64
----
-2376
-128

query I rowsort
SELECT DISTINCT 64 + 18 AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3870
SELECT + CASE - ( + - 36 ) WHEN 57 THEN CAST( - 33 AS SIGNED ) + - + 33 WHEN + 74 + 26 + + + COUNT( * ) THEN NULL END * - - 6 * - MIN( DISTINCT + 38 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT + CASE - ( + - 36 ) WHEN 57 THEN CAST ( - 33 AS INTEGER ) + - + 33 WHEN + 74 + 26 + + + COUNT ( * ) THEN NULL END * - - 6 * - MIN ( DISTINCT + 38 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3871
SELECT ALL 99 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL 99 + + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 69 * - 70 AS col0
----
-4830

query I rowsort
SELECT + - 35 - - - 10
----
-45

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3875
SELECT 72, COUNT( * ) DIV - - 22 * COALESCE ( 50, - COUNT( * ) * + 39 * 7 ) + - + 18 + - NULLIF ( - 69, COALESCE ( - 45, + - 59 * - 73 ) ) col1
----
72
51

skipif mysql # not compatible
query II rowsort label-3875
SELECT 72, COUNT ( * ) / - - 22 * COALESCE ( 50, - COUNT ( * ) * + 39 * 7 ) + - + 18 + - NULLIF ( - 69, COALESCE ( - 45, + - 59 * - 73 ) ) col1
----
72
51

query I rowsort
SELECT + + 86 * 56 AS col2
----
4816

query I rowsort
SELECT - + 80 * + 74 + 13 * + - 24 AS col2
----
-6232

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL + COUNT( 39 ) + 99 + - 68 * + 98 AS col0
----
-6564

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL + COUNT ( 39 ) + 99 + - 68 * + 98 AS col0
----
-6564

query II rowsort
SELECT 16 AS col1, 45
----
16
45

query I rowsort
SELECT DISTINCT + 72 + - 61 - 1 AS col0
----
10

query I rowsort
SELECT DISTINCT ( + 40 ) * + 35 + - + 19
----
1381

query I rowsort
SELECT + - 59 + - 68 + + 37 AS col2
----
-90

query II rowsort
SELECT - - 89, - 62 AS col0
----
89
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT - - 4 DIV - COALESCE ( - ( - - 23 ), - 2 )
----
0

skipif mysql # not compatible
query I rowsort label-3884
SELECT - - 4 / - COALESCE ( - ( - - 23 ), - 2 )
----
0

query I rowsort
SELECT ALL + 98 - COALESCE ( 66, + 77 + - 71 + 24 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3886
SELECT DISTINCT + - 74 * - NULLIF ( 80, + 13 ) * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT + - 74 * - NULLIF ( 80, + 13 ) * + CAST ( NULL AS INTEGER ) col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT DISTINCT + ( - SUM( ALL + + 24 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT + ( - SUM ( ALL + + 24 ) )
----
-24

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3891
SELECT + SUM( ALL + 96 ) col2, 96
----
96
96

skipif mysql # not compatible
query II rowsort label-3891
SELECT + SUM ( ALL + 96 ) col2, 96
----
96
96

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

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

query I rowsort
SELECT - 47 * + 24 * 30 AS col0
----
-33840

query I rowsort
SELECT + 38 * 88 - 28 * - - 59 * - + 43
----
74380

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL 32 * - COUNT( * ) + + 21 col0
----
-11

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL 32 * - COUNT ( * ) + + 21 col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3896
SELECT ALL 57 * - 32 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL 57 * - 32 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3897
SELECT NULLIF ( 83, 48 * + CAST( NULL AS DECIMAL ) )
----
83

skipif mysql # not compatible
query I rowsort label-3897
SELECT NULLIF ( 83, 48 * + CAST ( NULL AS REAL ) )
----
83

query I rowsort
SELECT + ( 23 ) * 82 + 6
----
1892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3899
SELECT COUNT( * ) * + + CAST( + 70 AS SIGNED ) * - + 8 - - 33 + - COUNT( + + ( + + CAST( NULL AS SIGNED ) ) ) + - 92 DIV - 5 + + COUNT( * ) + + 40 * - COUNT( * ) + + - 48 + + + 4 DIV NULLIF ( + COUNT( * ), 24 ) + + - 24 * - + 25 - - 55 - - 17 DIV + 62 + 53 * - 43 AS col1
----
-2216

skipif mysql # not compatible
query I rowsort label-3899
SELECT COUNT ( * ) * + + CAST ( + 70 AS INTEGER ) * - + 8 - - 33 + - COUNT ( + + ( + + CAST ( NULL AS INTEGER ) ) ) + - 92 / - 5 + + COUNT ( * ) + + 40 * - COUNT ( * ) + + - 48 + + + 4 / NULLIF ( + COUNT ( * ), 24 ) + + - 24 * - + 25 - - 55 - - 17 / + 62 + 53 * - 43 AS col1
----
-2216

query I rowsort
SELECT - - 15 + - + 32 * - + 88 + - 63
----
2768

query I rowsort
SELECT - + 3 * - 8 + 3 + 4 col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3902
SELECT ALL - - 89 * + 57 DIV 1 + + 19
----
5092

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL - - 89 * + 57 / 1 + + 19
----
5092

query I rowsort
SELECT - 26 * - 43 - + 33
----
1085

query I rowsort
SELECT + 40 + + 22 + + + 54
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT ALL 60 * CASE - - 90 WHEN + CASE 52 WHEN - - 22 THEN NULL ELSE + - 90 / + 7 END * + - 9 THEN NULL WHEN + 99 THEN + 56 / - MAX( 64 ) END + ( - - 41 ) + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL 60 * CASE - - 90 WHEN + CASE 52 WHEN - - 22 THEN NULL ELSE + - 90 / + 7 END * + - 9 THEN NULL WHEN + 99 THEN + 56 / - MAX ( 64 ) END + ( - - 41 ) + 79 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 63 - - + 64 * 83 + ( 81 ) AS col2
----
5330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT + - COUNT( DISTINCT + - 44 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3909
SELECT + + CAST( - 33 AS SIGNED ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-3909
SELECT + + CAST ( - 33 AS INTEGER ) / 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3910
SELECT + ( - COUNT( * ) ) + + 67 * - - COALESCE ( + + ( + - CASE 26 WHEN + 85 THEN + 30 * 77 WHEN - 35 THEN ( + 35 ) ELSE NULL END ), + CAST( 27 AS SIGNED ) - COUNT( * ) + + 36 + 57, 23 * + 40 ) * 22 * 14 - 81 AS col1, 20 * + 35
----
2455602
700

skipif mysql # not compatible
query II rowsort label-3910
SELECT + ( - COUNT ( * ) ) + + 67 * - - COALESCE ( + + ( + - CASE 26 WHEN + 85 THEN + 30 * 77 WHEN - 35 THEN ( + 35 ) ELSE NULL END ), + CAST ( 27 AS INTEGER ) - COUNT ( * ) + + 36 + 57, 23 * + 40 ) * 22 * 14 - 81 AS col1, 20 * + 35
----
2455602
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT - COALESCE ( - 86, + CAST( NULL AS SIGNED ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3911
SELECT - COALESCE ( - 86, + CAST ( NULL AS INTEGER ) ) AS col2
----
86

query I rowsort
SELECT ALL 86 - CASE - + 64 WHEN - 38 THEN + + 75 + + 41 - 80 + - - 67 END + - - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT DISTINCT - MAX( DISTINCT 38 ) * - 66 AS col0
----
2508

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT - MAX ( DISTINCT 38 ) * - 66 AS col0
----
2508

query I rowsort
SELECT + 70 * - 47 + + 91 * + - 6
----
-3836

query I rowsort
SELECT ALL + 36 * - + 17 AS col1
----
-612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3916
SELECT + + COUNT( * ) + - 46 * - MIN( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT + + COUNT ( * ) + - 46 * - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3918
SELECT ALL ( + 61 ) * 85 DIV + 32 AS col1
----
162

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL ( + 61 ) * 85 / + 32 AS col1
----
162

query I rowsort
SELECT 32 - - 28 AS col2
----
60

query II rowsort
SELECT 6, 70 col2
----
6
70

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3921
SELECT DISTINCT - 10 AS col2, - CAST( NULL AS DECIMAL )
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-3921
SELECT DISTINCT - 10 AS col2, - CAST ( NULL AS REAL )
----
-10
NULL

query II rowsort
SELECT ( - 76 ) * + 93, + 82 col0
----
-7068
82

query I rowsort
SELECT + 35 * + 28 + + 77
----
1057

query I rowsort
SELECT ALL + 15 + - 98 col2
----
-83

query I rowsort
SELECT ALL + 88 + - - 73
----
161

query I rowsort
SELECT 74 + - + 34
----
40

query I rowsort
SELECT 83 * + - 23
----
-1909

onlyif mysql # DIV for integer division: 
query I rowsort label-3928
SELECT 64 DIV + - 62 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3928
SELECT 64 / + - 62 AS col2
----
-1

query II rowsort
SELECT 30 AS col1, 31 AS col2
----
30
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3930
SELECT 9 + 93 * SUM( DISTINCT - - 84 ) AS col0, - 35 * - 81 + + + CAST( NULL AS SIGNED ) + + 66 / + 6 AS col2
----
7821
NULL

skipif mysql # not compatible
query II rowsort label-3930
SELECT 9 + 93 * SUM ( DISTINCT - - 84 ) AS col0, - 35 * - 81 + + + CAST ( NULL AS INTEGER ) + + 66 / + 6 AS col2
----
7821
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL + COUNT( * ) + 94 col1
----
95

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL + COUNT ( * ) + 94 col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3932
SELECT 18 + COUNT( * ) * - 40 + 88 + + NULLIF ( + CAST( + 13 AS SIGNED ), 72 * 5 ) - + - COUNT( * ) + + - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3932
SELECT 18 + COUNT ( * ) * - 40 + 88 + + NULLIF ( + CAST ( + 13 AS INTEGER ), 72 * 5 ) - + - COUNT ( * ) + + - COUNT ( * )
----
79

query I rowsort
SELECT ALL - 53 + 35 * - 95 AS col1
----
-3378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3934
SELECT DISTINCT - 6 + - CAST( 70 AS SIGNED ) + + 85 + - 20 + COUNT( * ) * - 37 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT - 6 + - CAST ( 70 AS INTEGER ) + + 85 + - 20 + COUNT ( * ) * - 37 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - - CAST( NULL AS SIGNED ) + + - 2 - - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - - CAST ( NULL AS INTEGER ) + + - 2 - - - COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3936
SELECT + - MIN ( 93 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3937
SELECT 3 * + 83 * - - NULLIF ( + 15, + + 20 / + 92 + - - COUNT( ALL - - 97 ) / MAX( - 64 ) + + 72 * 59 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT 3 * + 83 * - - NULLIF ( + 15, + + 20 / + 92 + - - COUNT ( ALL - - 97 ) / MAX ( - 64 ) + + 72 * 59 ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3938
SELECT - + CAST( NULL AS SIGNED ) AS col2, COALESCE ( + ( - 5 ), COUNT( * ), + 63 * + COALESCE ( - 4, - - 65 DIV 12 ) * - ( + + 16 ) * + - 63 + 99, 83 ) AS col2
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-3938
SELECT - + CAST ( NULL AS INTEGER ) AS col2, COALESCE ( + ( - 5 ), COUNT ( * ), + 63 * + COALESCE ( - 4, - - 65 / 12 ) * - ( + + 16 ) * + - 63 + 99, 83 ) AS col2
----
NULL
-5

query I rowsort
SELECT - 4 - + 79 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3940
SELECT - + 49 AS col1, COUNT( * ) * + 12 - 46
----
-49
-34

skipif mysql # not compatible
query II rowsort label-3940
SELECT - + 49 AS col1, COUNT ( * ) * + 12 - 46
----
-49
-34

query I rowsort
SELECT COALESCE ( + 60, + 42 ) AS col2
----
60

query I rowsort
SELECT ALL + - 32 * + + 16
----
-512

query I rowsort
SELECT 82 * 88 AS col0
----
7216

query II rowsort
SELECT - 19 AS col1, - 48 * 49 + - + 92 AS col2
----
-19
-2444

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

skipif mysql # not compatible
query II rowsort label-3945
SELECT ALL COUNT ( * ) AS col1, - 51
----
1
-51

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT COUNT( * ) - + 43 col2
----
-42

skipif mysql # not compatible
query I rowsort label-3949
SELECT COUNT ( * ) - + 43 col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL + + MAX( + 64 ) * 89
----
5696

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL + + MAX ( + 64 ) * 89
----
5696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3951
SELECT + 81 * - 47 + COUNT( * ) DIV + 68
----
-3807

skipif mysql # not compatible
query I rowsort label-3951
SELECT + 81 * - 47 + COUNT ( * ) / + 68
----
-3807

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT 32 + + COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3952
SELECT 32 + + COUNT ( * ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3953
SELECT 42 + + COUNT( * ), + COUNT( * ) * 75 AS col1
----
43
75

skipif mysql # not compatible
query II rowsort label-3953
SELECT 42 + + COUNT ( * ), + COUNT ( * ) * 75 AS col1
----
43
75

query I rowsort
SELECT 77 - 29 + 66 + 65 AS col1
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT DISTINCT 47 + + + CAST( - 98 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT 47 + + + CAST ( - 98 AS INTEGER )
----
-51

query I rowsort
SELECT ALL 82 * ( + 82 ) * - 47 AS col2
----
-316028

query I rowsort
SELECT ALL + 84 + + NULLIF ( NULLIF ( 37, 1 ), - - 30 + + - AVG ( ALL + - 62 ) * + 67 ) + + 59
----
180

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

skipif mysql # not compatible
query I rowsort label-3958
SELECT MIN ( DISTINCT 75 )
----
75

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

skipif mysql # not compatible
query I rowsort label-3959
SELECT MIN ( DISTINCT 49 )
----
49

query I rowsort
SELECT 9 * - 44
----
-396

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

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

query I rowsort
SELECT 92 * + 57 AS col1
----
5244

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT DISTINCT - CASE + COUNT( * ) WHEN - 26 / + + ( - + 73 ) + + - 29 THEN - NULLIF ( + COUNT( * ), + - COUNT( DISTINCT + - 16 ) + 57 ) WHEN 20 + - NULLIF ( + - 60, - ( + - 75 ) ) * - 78 * + MIN( DISTINCT 23 ) * + + 55 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT - CASE + COUNT ( * ) WHEN - 26 / + + ( - + 73 ) + + - 29 THEN - NULLIF ( + COUNT ( * ), + - COUNT ( DISTINCT + - 16 ) + 57 ) WHEN 20 + - NULLIF ( + - 60, - ( + - 75 ) ) * - 78 * + MIN ( DISTINCT 23 ) * + + 55 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3965
SELECT - 45 / + 17 + + 96 + - - NULLIF ( - 45, - 63 ) * COUNT( * ) + + 64 * + - 6 * - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT - 45 / + 17 + + 96 + - - NULLIF ( - 45, - 63 ) * COUNT ( * ) + + 64 * + - 6 * - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 2 + + 97
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3967
SELECT ALL - 61 - - + MAX( ALL + CAST( 28 AS SIGNED ) ) AS col2, + 1 AS col0
----
-33
1

skipif mysql # not compatible
query II rowsort label-3967
SELECT ALL - 61 - - + MAX ( ALL + CAST ( 28 AS INTEGER ) ) AS col2, + 1 AS col0
----
-33
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3968
SELECT + CAST( NULL AS DECIMAL ) * - 34 + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT + CAST ( NULL AS REAL ) * - 34 + + 54
----
NULL

query I rowsort
SELECT + 94 * + 59 * + + 33 + + + 41
----
183059

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT DISTINCT COUNT( * ) * + + ( - 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT COUNT ( * ) * + + ( - 41 ) AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT NULLIF ( - 19, + 94 ) * - CAST( NULL AS SIGNED ) + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT NULLIF ( - 19, + 94 ) * - CAST ( NULL AS INTEGER ) + + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT - 65 + COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3972
SELECT - 65 + COUNT ( * ) AS col2
----
-64

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

query I rowsort
SELECT - + 54 + 39 + - + 48 AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3975
SELECT + COALESCE ( ( + 85 ), 30 + + 94 * + + 43 + CAST( - + 16 AS SIGNED ) ) + + 74 AS col2
----
159

skipif mysql # not compatible
query I rowsort label-3975
SELECT + COALESCE ( ( + 85 ), 30 + + 94 * + + 43 + CAST ( - + 16 AS INTEGER ) ) + + 74 AS col2
----
159

query I rowsort
SELECT DISTINCT - 5 * - 49 AS col0
----
245

query I rowsort
SELECT + 13 + 9 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL 36 + + 29 - NULLIF ( - - 28, CASE - - 97 WHEN - - 55 * - 62 * ( 94 ) + - 74 + + COUNT( * ) + - COALESCE ( 99, 64 * + CASE 38 WHEN - - 28 THEN - ( - ( + - 20 ) ) WHEN 9 THEN NULL END ) + + - CASE + 76 WHEN - 89 + + NULLIF ( + 16, 82 ) THEN + 26 WHEN - + 58 THEN NULL WHEN - 11 + - 79 THEN NULL ELSE - NULLIF ( - 91, + 63 ) END THEN - + 25 ELSE 12 END / 88 + 78 )
----
37

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL 36 + + 29 - NULLIF ( - - 28, CASE - - 97 WHEN - - 55 * - 62 * ( 94 ) + - 74 + + COUNT ( * ) + - COALESCE ( 99, 64 * + CASE 38 WHEN - - 28 THEN - ( - ( + - 20 ) ) WHEN 9 THEN NULL END ) + + - CASE + 76 WHEN - 89 + + NULLIF ( + 16, 82 ) THEN + 26 WHEN - + 58 THEN NULL WHEN - 11 + - 79 THEN NULL ELSE - NULLIF ( - 91, + 63 ) END THEN - + 25 ELSE 12 END / 88 + 78 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT ALL 95 + 91 - + - 39 - MAX( DISTINCT 61 ) AS col0
----
164

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL 95 + 91 - + - 39 - MAX ( DISTINCT 61 ) AS col0
----
164

query II rowsort
SELECT - ( - 13 ) + - 70 AS col2, + 62 AS col0
----
-57
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT - 77 * 40 DIV - + 91 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3981
SELECT - 77 * 40 / - + 91 AS col0
----
33

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

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

query I rowsort
SELECT + 47 * - - 0 col1
----
0

query I rowsort
SELECT + 23 * 1 AS col1
----
23

query II rowsort
SELECT ALL + 47, + 94 AS col0
----
47
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT DISTINCT 88 DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT 88 / + 60
----
1

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

query I rowsort
SELECT + ( - 35 ) + + 12
----
-23

query I rowsort
SELECT DISTINCT 31 * + 6 - 72 * 13
----
-750

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

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

query I rowsort
SELECT + 4 + 6 col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT - 30 * - + 44 - + + COUNT( * )
----
1319

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT - 30 * - + 44 - + + COUNT ( * )
----
1319

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL + - SUM( DISTINCT + 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL + - SUM ( DISTINCT + 3 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL + COUNT( DISTINCT COALESCE ( - - COALESCE ( 9, - + 10 * + 31, - 69 ), + ( + 16 ) * - 68 + - + 55, - 95 + 64 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL + COUNT ( DISTINCT COALESCE ( - - COALESCE ( 9, - + 10 * + 31, - 69 ), + ( + 16 ) * - 68 + - + 55, - 95 + 64 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT + 33 * + MIN( ALL 35 ) + + 74 + 57 + 32 / 67 - 93 + + - CASE - 62 WHEN + COUNT( 36 ) THEN NULLIF ( + - 47, + 69 ) END * 42 * - 14 + + SUM( - + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT + 33 * + MIN ( ALL 35 ) + + 74 + 57 + 32 / 67 - 93 + + - CASE - 62 WHEN + COUNT ( 36 ) THEN NULLIF ( + - 47, + 69 ) END * 42 * - 14 + + SUM ( - + 86 )
----
NULL

query II rowsort
SELECT + 30, + 49 AS col2
----
30
49

query I rowsort
SELECT DISTINCT + 65 * + 75
----
4875

query I rowsort
SELECT + + 95 + 17
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3999
SELECT + - 26 * + CASE + 98 WHEN - COALESCE ( + 6, + 20, - 75 * - 44 + - AVG ( ALL - 51 ) * + 52 ) THEN NULL ELSE + COALESCE ( + + 7, + - MAX( - - 47 ), 71 + + - 71 ) DIV - 8 + - 39 + + + COUNT( * ) END AS col2
----
988

skipif mysql # not compatible
query I rowsort label-3999
SELECT + - 26 * + CASE + 98 WHEN - COALESCE ( + 6, + 20, - 75 * - 44 + - AVG ( ALL - 51 ) * + 52 ) THEN NULL ELSE + COALESCE ( + + 7, + - MAX ( - - 47 ), 71 + + - 71 ) / - 8 + - 39 + + + COUNT ( * ) END AS col2
----
988

query I rowsort
SELECT - - COALESCE ( - - 92, 26 + - + 17, + + 75 + + 92 ) + - NULLIF ( 45, NULLIF ( 2, - COALESCE ( 64, - 11 + + 73 ) ) ) AS col2
----
47

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

skipif mysql # not compatible
query I rowsort label-4001
SELECT COUNT ( ALL - + 47 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL + COUNT( DISTINCT 16 )
----
1

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL + COUNT ( DISTINCT 16 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT + COUNT( * ) * + + 61 * - + 56 AS col0
----
-3416

skipif mysql # not compatible
query I rowsort label-4003
SELECT + COUNT ( * ) * + + 61 * - + 56 AS col0
----
-3416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4004
SELECT ALL - - SUM( ALL - + 91 ) * - 46 * 41 + + 8 + + 19 * 58 + + + 71 AS col2, COUNT( * ) + - - CAST( 46 AS SIGNED ) AS col1
----
172807
47

skipif mysql # not compatible
query II rowsort label-4004
SELECT ALL - - SUM ( ALL - + 91 ) * - 46 * 41 + + 8 + + 19 * 58 + + + 71 AS col2, COUNT ( * ) + - - CAST ( 46 AS INTEGER ) AS col1
----
172807
47

query I rowsort
SELECT + + 99 + + + 79 * 4
----
415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4006
SELECT - - CAST( COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4006
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4007
SELECT + - 83 / + 59 / - + 91 / + 58 * - CAST( NULL AS DECIMAL ) / - 34 * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT + - 83 / + 59 / - + 91 / + 58 * - CAST ( NULL AS REAL ) / - 34 * 12 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4008
SELECT + - 24 + - - NULLIF ( + 3, + + 12 + - COALESCE ( + + COUNT( * ), + - 45 + + + CAST( NULL AS SIGNED ) ) * - 79 )
----
-21

skipif mysql # not compatible
query I rowsort label-4008
SELECT + - 24 + - - NULLIF ( + 3, + + 12 + - COALESCE ( + + COUNT ( * ), + - 45 + + + CAST ( NULL AS INTEGER ) ) * - 79 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT - NULLIF ( + 36, + 35 + + COALESCE ( 86, + - COUNT( * ) + + 73 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-4009
SELECT - NULLIF ( + 36, + 35 + + COALESCE ( 86, + - COUNT ( * ) + + 73 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT COALESCE ( - 65, 13 * + 15 + - 48 + 10 * + COUNT( + 68 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-4010
SELECT COALESCE ( - 65, 13 * + 15 + - 48 + 10 * + COUNT ( + 68 ) )
----
-65

query I rowsort
SELECT - CASE CASE + 13 WHEN 17 * - 96 / - 68 * + - 13 THEN NULL WHEN - 28 THEN NULL ELSE + 49 END WHEN + 65 THEN 87 / - 93 + 42 END + 36 / 72 + + 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4012
SELECT ALL ( - 89 ) AS col1, SUM( + 42 ) * MIN( ALL - ( + - 56 ) ) + + CASE + 56 WHEN 87 THEN - 54 + + 70 WHEN 31 THEN NULL WHEN 67 THEN 41 * + 23 ELSE + 27 END + + 93 AS col2
----
-89
2472

skipif mysql # not compatible
query II rowsort label-4012
SELECT ALL ( - 89 ) AS col1, SUM ( + 42 ) * MIN ( ALL - ( + - 56 ) ) + + CASE + 56 WHEN 87 THEN - 54 + + 70 WHEN 31 THEN NULL WHEN 67 THEN 41 * + 23 ELSE + 27 END + + 93 AS col2
----
-89
2472

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

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - COUNT ( * ) + + - 73 AS col0
----
-74

query I rowsort
SELECT - 1 - - + 16 col2
----
15

query I rowsort
SELECT ALL 7 * + 20 AS col0
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT - ( + CAST( - + 64 AS SIGNED ) ) - + 37
----
27

skipif mysql # not compatible
query I rowsort label-4016
SELECT - ( + CAST ( - + 64 AS INTEGER ) ) - + 37
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4017
SELECT ALL CAST( CAST( - - SUM( ALL - 69 ) AS DECIMAL ) AS SIGNED ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL CAST ( CAST ( - - SUM ( ALL - 69 ) AS REAL ) AS INTEGER ) AS col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4018
SELECT 22 col2, + 41 + SUM( DISTINCT + 62 ) + - - 46 * + - 48 * - COUNT( * ) * - ( + + CAST( 35 AS SIGNED ) )
----
22
-77177

skipif mysql # not compatible
query II rowsort label-4018
SELECT 22 col2, + 41 + SUM ( DISTINCT + 62 ) + - - 46 * + - 48 * - COUNT ( * ) * - ( + + CAST ( 35 AS INTEGER ) )
----
22
-77177

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL CASE + - 70 WHEN - COUNT( * ) + + COUNT( * ) - - 53 / ( + 8 ) THEN 22 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL CASE + - 70 WHEN - COUNT ( * ) + + COUNT ( * ) - - 53 / ( + 8 ) THEN 22 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 2 + 42 * + 88
----
3694

query I rowsort
SELECT - ( + ( + 72 ) ) + - 48
----
-120

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

query II rowsort
SELECT 9 AS col2, 44
----
9
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL - 57 * - MIN( 85 ) col2
----
4845

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - 57 * - MIN ( 85 ) col2
----
4845

query I rowsort
SELECT - 87 + 7 col2
----
-80

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

query I rowsort
SELECT 39 * 16 + 44 AS col2
----
668

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT + 17 DIV 8 + - 54 + + 54 DIV + - 77
----
-52

skipif mysql # not compatible
query I rowsort label-4031
SELECT + 17 / 8 + - 54 + + 54 / + - 77
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT COALESCE ( 70, 13, - + COUNT( * ) * 7 + 83 )
----
70

skipif mysql # not compatible
query I rowsort label-4032
SELECT COALESCE ( 70, 13, - + COUNT ( * ) * 7 + 83 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT DISTINCT + 98 AS col0, COUNT( * ) * 91 AS col1
----
98
91

skipif mysql # not compatible
query II rowsort label-4033
SELECT DISTINCT + 98 AS col0, COUNT ( * ) * 91 AS col1
----
98
91

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-4037
SELECT + 29 * 37 + - - 50 DIV + + 26, 21 AS col1
----
1074
21

skipif mysql # not compatible
query II rowsort label-4037
SELECT + 29 * 37 + - - 50 / + + 26, 21 AS col1
----
1074
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT ALL + 9 + 72 + + 31 * - + CAST( - 4 AS SIGNED ) * - - 25 + - + 40 * + 40 + - - ( 61 ) col2
----
1642

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + 9 + 72 + + 31 * - + CAST ( - 4 AS INTEGER ) * - - 25 + - + 40 * + 40 + - - ( 61 ) col2
----
1642

query I rowsort
SELECT - 56 - ( + 41 ) - + 57 * - ( + 69 )
----
3836

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

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT DISTINCT + COUNT( * ) + + + 96
----
97

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT + COUNT ( * ) + + + 96
----
97

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

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL ( - - COUNT ( * ) ) + - + 13 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT - 23 + MAX( + - 90 ) AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-4044
SELECT - 23 + MAX ( + - 90 ) AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT ALL SUM( DISTINCT + + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL SUM ( DISTINCT + + 5 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4046
SELECT ALL 13 DIV + + NULLIF ( + 18, + + 88 * - - 70 * ( ( - + 54 ) ) + + 20 ) * + - 87 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL 13 / + + NULLIF ( + 18, + + 88 * - - 70 * ( ( - + 54 ) ) + + 20 ) * + - 87 + + COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT DISTINCT 25 + 24 DIV + 55 + - + 27
----
-2

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT 25 + 24 / + 55 + - + 27
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT DISTINCT + 43 * + MIN( DISTINCT - - 84 ) * - 52 col1
----
-187824

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT + 43 * + MIN ( DISTINCT - - 84 ) * - 52 col1
----
-187824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4049
SELECT ALL 60 - 89 * - CAST( NULL AS SIGNED ) * + MAX( ALL 64 ), 31 AS col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-4049
SELECT ALL 60 - 89 * - CAST ( NULL AS INTEGER ) * + MAX ( ALL 64 ), 31 AS col1
----
NULL
31

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4051
SELECT CAST( - NULLIF ( - 84, - + COUNT( - ( - - 72 ) ) * ( + 11 ) * + 76 + + 51 + - COUNT( + - 27 ) * + ( 79 ) * - + 64 ) AS SIGNED ) * - 28
----
-2352

skipif mysql # not compatible
query I rowsort label-4051
SELECT CAST ( - NULLIF ( - 84, - + COUNT ( - ( - - 72 ) ) * ( + 11 ) * + 76 + + 51 + - COUNT ( + - 27 ) * + ( 79 ) * - + 64 ) AS INTEGER ) * - 28
----
-2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4052
SELECT 18 * COUNT( * ), + COALESCE ( COUNT( * ), + + CAST( NULL AS SIGNED ) * + + 40 + - 83 DIV CASE - 46 WHEN - - 9 * 42 + - 79 + - + 14 THEN - - 23 * - 85 + + COUNT( * ) END ) AS col0
----
18
1

skipif mysql # not compatible
query II rowsort label-4052
SELECT 18 * COUNT ( * ), + COALESCE ( COUNT ( * ), + + CAST ( NULL AS INTEGER ) * + + 40 + - 83 / CASE - 46 WHEN - - 9 * 42 + - 79 + - + 14 THEN - - 23 * - 85 + + COUNT ( * ) END ) AS col0
----
18
1

query I rowsort
SELECT 21 + + 52
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL - 71 - + COALESCE ( COUNT( * ), - + 2, - + NULLIF ( + - 43, + 70 ) * + COUNT( DISTINCT - 59 ) ) - + 52 + + 71 + + COUNT( - 78 ) + 2
----
-50

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL - 71 - + COALESCE ( COUNT ( * ), - + 2, - + NULLIF ( + - 43, + 70 ) * + COUNT ( DISTINCT - 59 ) ) - + 52 + + 71 + + COUNT ( - 78 ) + 2
----
-50

query I rowsort
SELECT ALL 17 * - - 42
----
714

query I rowsort
SELECT ALL 0 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4057
SELECT 18 * + + ( - 75 ) * + MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT 18 * + + ( - 75 ) * + MIN ( DISTINCT - + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT 34 + - 48 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4059
SELECT - 55 * + COUNT( * ) + 10 AS col0, - COUNT( * ) AS col0
----
-45
-1

skipif mysql # not compatible
query II rowsort label-4059
SELECT - 55 * + COUNT ( * ) + 10 AS col0, - COUNT ( * ) AS col0
----
-45
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4060
SELECT - 24 + - CAST( NULL AS SIGNED ) * - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT - 24 + - CAST ( NULL AS INTEGER ) * - - 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4061
SELECT ALL - + 86 + - - CAST( CASE - 50 WHEN 81 THEN + SUM( ALL - 50 ) - COUNT( * ) * + COUNT( * ) / - 20 WHEN 14 * - 19 THEN NULL WHEN + COUNT( * ) THEN + 26 * + 53 WHEN 66 THEN 4 ELSE + 20 END AS SIGNED ) + - CASE + 79 WHEN - 2 THEN + NULLIF ( - + SUM( 8 ), + - 3 + - COUNT( * ) + + 98 ) * - - 73 * + 23 WHEN + 74 THEN - 84 * + ( - NULLIF ( - - 7, - + 83 ) ) + CAST( + - 76 AS SIGNED ) * 12 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL - + 86 + - - CAST ( CASE - 50 WHEN 81 THEN + SUM ( ALL - 50 ) - COUNT ( * ) * + COUNT ( * ) / - 20 WHEN 14 * - 19 THEN NULL WHEN + COUNT ( * ) THEN + 26 * + 53 WHEN 66 THEN 4 ELSE + 20 END AS INTEGER ) + - CASE + 79 WHEN - 2 THEN + NULLIF ( - + SUM ( 8 ), + - 3 + - COUNT ( * ) + + 98 ) * - - 73 * + 23 WHEN + 74 THEN - 84 * + ( - NULLIF ( - - 7, - + 83 ) ) + CAST ( + - 76 AS INTEGER ) * 12 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4062
SELECT ALL + + 23 * - CAST( - + ( - 65 ) AS SIGNED ) - 54 DIV 91
----
-1495

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + + 23 * - CAST ( - + ( - 65 ) AS INTEGER ) - 54 / 91
----
-1495

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

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

query I rowsort
SELECT + 91 * + 23 + + + 45
----
2138

query I rowsort
SELECT ALL - - 94 + + 25 + - 88 col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT - 57 * - COUNT( * ) * + + 77 + - + ( 95 )
----
4294

skipif mysql # not compatible
query I rowsort label-4066
SELECT - 57 * - COUNT ( * ) * + + 77 + - + ( 95 )
----
4294

query I rowsort
SELECT 72 * - 25 AS col0
----
-1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4068
SELECT 52 DIV + ( + + COUNT( * ) ) + + - 53 * - + 70 * + ( COUNT( * ) ) + + - ( - + 87 )
----
3849

skipif mysql # not compatible
query I rowsort label-4068
SELECT 52 / + ( + + COUNT ( * ) ) + + - 53 * - + 70 * + ( COUNT ( * ) ) + + - ( - + 87 )
----
3849

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

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + 88 / - COUNT ( * ) + - + ( ( - 44 ) ) / + - 89 AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT 21 DIV + - 32
----
0

skipif mysql # not compatible
query I rowsort label-4070
SELECT 21 / + - 32
----
0

query I rowsort
SELECT 64 + 89 + - 15 * ( - - 31 )
----
-312

query I rowsort
SELECT 10 * - + 32
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT 42 * - COUNT( * ) + 49 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT 42 * - COUNT ( * ) + 49 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL - COUNT( * ) * 41 * + 60 * + 13 AS col1
----
-31980

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - COUNT ( * ) * 41 * + 60 * + 13 AS col1
----
-31980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT ALL + 1 - 98 * + COUNT( * ) * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL + 1 - 98 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT ( - 50 ) * + - 6 * - - 68 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT ( - 50 ) * + - 6 * - - 68 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT MIN( 90 ) * + 38 * + + 66 * + NULLIF ( - 85, + 38 )
----
-19186200

skipif mysql # not compatible
query I rowsort label-4077
SELECT MIN ( 90 ) * + 38 * + + 66 * + NULLIF ( - 85, + 38 )
----
-19186200

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT 77 + - COALESCE ( - + 72, + 63 * - 5 + + COUNT( * ) )
----
149

skipif mysql # not compatible
query I rowsort label-4078
SELECT 77 + - COALESCE ( - + 72, + 63 * - 5 + + COUNT ( * ) )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - MAX( 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-4079
SELECT - MAX ( 86 )
----
-86

query II rowsort
SELECT ALL 86 AS col1, - 97 + + + 61 AS col2
----
86
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT ALL MAX( 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL MAX ( 59 ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4082
SELECT COUNT( * ) - ( + 66 ) * + - 56 * - CASE 55 WHEN - 79 * + 34 - + NULLIF ( - + COUNT( * ), + 81 + + 55 ) + COUNT( * ) + NULLIF ( + COUNT( DISTINCT - ( - 66 ) ), - 82 * + CAST( NULL AS SIGNED ) / + 80 - - 90 * + ( - + MAX( ALL + 94 ) ) * + 31 ) * + + 58 THEN + 51 + + 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT COUNT ( * ) - ( + 66 ) * + - 56 * - CASE 55 WHEN - 79 * + 34 - + NULLIF ( - + COUNT ( * ), + 81 + + 55 ) + COUNT ( * ) + NULLIF ( + COUNT ( DISTINCT - ( - 66 ) ), - 82 * + CAST ( NULL AS INTEGER ) / + 80 - - 90 * + ( - + MAX ( ALL + 94 ) ) * + 31 ) * + + 58 THEN + 51 + + 24 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4083
SELECT DISTINCT CAST( + 2 AS SIGNED ) * 28 AS col2, + 61, + ( + 72 ) AS col0
----
56
61
72

skipif mysql # not compatible
query III rowsort label-4083
SELECT DISTINCT CAST ( + 2 AS INTEGER ) * 28 AS col2, + 61, + ( + 72 ) AS col0
----
56
61
72

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

skipif mysql # not compatible
query I rowsort label-4084
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) / - NULLIF ( 99, 95 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4085
SELECT CAST( NULL AS DECIMAL ) * COALESCE ( + - 0, NULLIF ( + CASE + 41 WHEN + - 98 THEN NULL ELSE COUNT( * ) END, + 98 ), - ( 33 ) ) * - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4085
SELECT CAST ( NULL AS REAL ) * COALESCE ( + - 0, NULLIF ( + CASE + 41 WHEN + - 98 THEN NULL ELSE COUNT ( * ) END, + 98 ), - ( 33 ) ) * - 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4086
SELECT MIN( + + 0 ) + 58 - - + 26 DIV + + 32 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4086
SELECT MIN ( + + 0 ) + 58 - - + 26 / + + 32 AS col1
----
58

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

skipif mysql # not compatible
query II rowsort label-4087
SELECT - 55 AS col1, COUNT ( * ) col2
----
-55
1

query I rowsort
SELECT 1 + + 3
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT 8 / - 93 * CAST( NULL AS SIGNED ) * 8 * ( + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT 8 / - 93 * CAST ( NULL AS INTEGER ) * 8 * ( + 66 )
----
NULL

query I rowsort
SELECT COALESCE ( + 48, - 28 ) * 58
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT - - SUM( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-4091
SELECT - - SUM ( 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT DISTINCT COUNT( * ) + 55
----
56

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT COUNT ( * ) + 55
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT + SUM( DISTINCT - + 77 ) + CAST( NULL AS SIGNED ) * + 63 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT + SUM ( DISTINCT - + 77 ) + CAST ( NULL AS INTEGER ) * + 63 * - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 20, + 59 * - 4 * - - 52 AS col0
----
-20
-12272

query I rowsort
SELECT - 89 * 49 AS col1
----
-4361

query I rowsort
SELECT ALL 58 + + 38 - + 12 + - + 96
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT DISTINCT - 33 * 61 * - 99 + + 75 + - 63 DIV + ( + - 84 )
----
199362

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - 33 * 61 * - 99 + + 75 + - 63 / + ( + - 84 )
----
199362

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT MIN( ALL - - 25 ) * + 23 + + 88
----
663

skipif mysql # not compatible
query I rowsort label-4098
SELECT MIN ( ALL - - 25 ) * + 23 + + 88
----
663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4099
SELECT ALL - 68 * - 9 * + NULLIF ( + + COUNT( DISTINCT + 3 ), + ( 65 ) - - 7 ) + - 3 DIV + - 59
----
612

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL - 68 * - 9 * + NULLIF ( + + COUNT ( DISTINCT + 3 ), + ( 65 ) - - 7 ) + - 3 / + - 59
----
612

query II rowsort
SELECT - + ( + 65 ) + - 76 AS col0, 16
----
-141
16

query II rowsort
SELECT + + 81 AS col2, 53
----
81
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT + 95 DIV - 61 + - - 91 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT + 95 / - 61 + - - 91 / + 57
----
0

query I rowsort
SELECT ALL ( 84 ) * + 48 * - + 81 - 72 AS col1
----
-326664

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT - 27 * + 16 DIV - + 2 AS col1
----
216

skipif mysql # not compatible
query I rowsort label-4104
SELECT - 27 * + 16 / - + 2 AS col1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - 32 + - MIN( ALL + 62 ) - - - ( - - COUNT( * ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4105
SELECT - 32 + - MIN ( ALL + 62 ) - - - ( - - COUNT ( * ) ) AS col0
----
-95

query I rowsort
SELECT ALL + COALESCE ( + - 25, - + 31 * + - 54 * + 73 * ( + 89 ), - 77 * + - 53 + - + 54 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT COUNT( * ) * 34 + - - 24
----
58

skipif mysql # not compatible
query I rowsort label-4107
SELECT COUNT ( * ) * 34 + - - 24
----
58

query I rowsort
SELECT - ( 10 ) * - 34
----
340

query I rowsort
SELECT DISTINCT NULLIF ( - 90, - + 93 ) AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4110
SELECT 44 * + 33 * - 11 + + COALESCE ( - NULLIF ( + COUNT( ( - + 72 ) ), 80 ), - CAST( + CASE + - COUNT( * ) WHEN - 39 THEN NULL ELSE - SUM( DISTINCT + 78 ) * - 73 END AS SIGNED ) )
----
-15973

skipif mysql # not compatible
query I rowsort label-4110
SELECT 44 * + 33 * - 11 + + COALESCE ( - NULLIF ( + COUNT ( ( - + 72 ) ), 80 ), - CAST ( + CASE + - COUNT ( * ) WHEN - 39 THEN NULL ELSE - SUM ( DISTINCT + 78 ) * - 73 END AS INTEGER ) )
----
-15973

query II rowsort
SELECT ALL ( + - 94 ), 1 AS col0
----
-94
1

query I rowsort
SELECT DISTINCT ( - - ( - 14 ) ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT + 41 * - MIN( ALL 52 )
----
-2132

skipif mysql # not compatible
query I rowsort label-4113
SELECT + 41 * - MIN ( ALL 52 )
----
-2132

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

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

query I rowsort
SELECT + 34 + + 27 AS col0
----
61

query I rowsort
SELECT - 5 * - 98 col1
----
490

query II rowsort
SELECT + 11 + - 79, CASE + 17 WHEN 61 THEN - 23 * + 3 ELSE + - 22 * 38 END AS col2
----
-68
-836

query I rowsort
SELECT + 28 * 11 col0
----
308

query I rowsort
SELECT ALL 90 + - 8
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT + MIN( + 99 ) + 55 + 65 AS col2
----
219

skipif mysql # not compatible
query I rowsort label-4120
SELECT + MIN ( + 99 ) + 55 + 65 AS col2
----
219

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4121
SELECT DISTINCT - 65 + - 71 - 63 + + - 48 * + CAST( NULL AS DECIMAL ) + ( 52 ) + + 40 - + - ( - 41 ) + MAX( + - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT - 65 + - 71 - 63 + + - 48 * + CAST ( NULL AS REAL ) + ( 52 ) + + 40 - + - ( - 41 ) + MAX ( + - 69 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4122
SELECT + ( + COUNT ( * ) ) - + 20 - + + ( 18 ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT + - 16 DIV + 10
----
-1

skipif mysql # not compatible
query I rowsort label-4123
SELECT + - 16 / + 10
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT + - 10 + - + COALESCE ( 23, COUNT( * ) ) - - 68 * + 35 AS col2
----
2347

skipif mysql # not compatible
query I rowsort label-4124
SELECT + - 10 + - + COALESCE ( 23, COUNT ( * ) ) - - 68 * + 35 AS col2
----
2347

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - CASE + 62 WHEN - COUNT( * ) THEN - 42 WHEN + 77 THEN - 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4125
SELECT - CASE + 62 WHEN - COUNT ( * ) THEN - 42 WHEN + 77 THEN - 2 END
----
NULL

query I rowsort
SELECT - + 35 + - + 91 + + 93
----
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT + - 66 * - + COUNT( * ) + 0 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4128
SELECT + - 66 * - + COUNT ( * ) + 0 AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT ALL - 61 * ( 65 ) DIV + + 69 + + 97 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL - 61 * ( 65 ) / + + 69 + + 97 AS col1
----
40

query I rowsort
SELECT DISTINCT + 28 * - 74 AS col2
----
-2072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4131
SELECT ALL COUNT( * ) DIV - - ( - 94 ) - - 81
----
81

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL COUNT ( * ) / - - ( - 94 ) - - 81
----
81

query I rowsort
SELECT DISTINCT + + NULLIF ( + 92, + 2 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4133
SELECT - - 9 * COUNT( * ) * - 75 * - CAST( + - 4 AS SIGNED )
----
-2700

skipif mysql # not compatible
query I rowsort label-4133
SELECT - - 9 * COUNT ( * ) * - 75 * - CAST ( + - 4 AS INTEGER )
----
-2700

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

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

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

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

query I rowsort
SELECT ALL - 39 * + 68 AS col0
----
-2652

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL - NULLIF ( - + 82, + COUNT( * ) * MIN( 76 ) * + NULLIF ( + + 96, 5 * 43 ) ) * - 85 * + 83 AS col1
----
-578510

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - NULLIF ( - + 82, + COUNT ( * ) * MIN ( 76 ) * + NULLIF ( + + 96, 5 * 43 ) ) * - 85 * + 83 AS col1
----
-578510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT ALL + CAST( - 19 AS SIGNED ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL + CAST ( - 19 AS INTEGER ) col1
----
-19

query I rowsort
SELECT COALESCE ( - 80, - 33, 21 ) AS col1
----
-80

query II rowsort
SELECT ALL - 16 * - 7 + 26, + 69 * 63 AS col0
----
138
4347

query I rowsort
SELECT - 29 + + ( + + 63 )
----
34

query I rowsort
SELECT COALESCE ( - 29, - + 1 * + 28 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4145
SELECT COALESCE ( COALESCE ( + - 4, - CAST( + - 20 AS SIGNED ), - 37, NULLIF ( + 11, + AVG ( DISTINCT + + 24 ) + - 61 + + 40 * + - 57 ) ), - NULLIF ( + 71, + 43 * + - 27 * - COUNT( * ) + - + 34 / NULLIF ( 3, - 72 ) ) + + 80 + + SUM( - 8 ) ) col2, 40
----
-4
40

skipif mysql # not compatible
query II rowsort label-4145
SELECT COALESCE ( COALESCE ( + - 4, - CAST ( + - 20 AS INTEGER ), - 37, NULLIF ( + 11, + AVG ( DISTINCT + + 24 ) + - 61 + + 40 * + - 57 ) ), - NULLIF ( + 71, + 43 * + - 27 * - COUNT ( * ) + - + 34 / NULLIF ( 3, - 72 ) ) + + 80 + + SUM ( - 8 ) ) col2, 40
----
-4
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT - 5 + + SUM( NULLIF ( + - ( ( - 49 ) ), + 4 ) ) * - 75
----
-3680

skipif mysql # not compatible
query I rowsort label-4146
SELECT - 5 + + SUM ( NULLIF ( + - ( ( - 49 ) ), + 4 ) ) * - 75
----
-3680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4147
SELECT - 11 * COUNT( - + 91 ) DIV + 94 * - 44
----
0

skipif mysql # not compatible
query I rowsort label-4147
SELECT - 11 * COUNT ( - + 91 ) / + 94 * - 44
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT ALL - CAST( - 92 AS SIGNED ) * 95 * - 74 + + 26 + + SUM( DISTINCT + 2 ) * + 50 + + 35 AS col2
----
-646599

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL - CAST ( - 92 AS INTEGER ) * 95 * - 74 + + 26 + + SUM ( DISTINCT + 2 ) * + 50 + + 35 AS col2
----
-646599

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

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

query I rowsort
SELECT ALL + 50 + - 13 AS col2
----
37

query I rowsort
SELECT 46 + 62
----
108

query I rowsort
SELECT ALL 63 * + 1
----
63

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

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

query I rowsort
SELECT 23 * + 34
----
782

query I rowsort
SELECT 26 + - 61
----
-35

query I rowsort
SELECT 36 + + 87
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4157
SELECT 71 - + MAX( ALL + 39 + 54 DIV 39 ) col0
----
31

skipif mysql # not compatible
query I rowsort label-4157
SELECT 71 - + MAX ( ALL + 39 + 54 / 39 ) col0
----
31

query I rowsort
SELECT ( - 82 ) - - 70
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT DISTINCT - ( COUNT( * ) ) * 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT - ( COUNT ( * ) ) * 30 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT DISTINCT + COUNT( * ) - 82
----
-81

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT + COUNT ( * ) - 82
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4161
SELECT ALL - 69 - + 12 * COALESCE ( 62 * + CAST( + 59 AS SIGNED ), NULLIF ( SUM( - 35 ), ( 8 ) * + 89 ) DIV 56 - COALESCE ( - 27 + + 12, 82 ) ) AS col1
----
-43965

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL - 69 - + 12 * COALESCE ( 62 * + CAST ( + 59 AS INTEGER ), NULLIF ( SUM ( - 35 ), ( 8 ) * + 89 ) / 56 - COALESCE ( - 27 + + 12, 82 ) ) AS col1
----
-43965

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL CASE WHEN NOT NULL = ( NULL ) THEN NULL ELSE - NULLIF ( + 57, + 29 + + COUNT( - 54 ) * 23 ) END - 97
----
-154

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL CASE WHEN NOT NULL = ( NULL ) THEN NULL ELSE - NULLIF ( + 57, + 29 + + COUNT ( - 54 ) * 23 ) END - 97
----
-154

query I rowsort
SELECT ALL 49 * 98
----
4802

query I rowsort
SELECT + 90 * - 11 + - 55
----
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT SUM( ALL 57 ) - + 4 * + 1 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4165
SELECT SUM ( ALL 57 ) - + 4 * + 1 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4166
SELECT COUNT( * ) DIV - MAX( ALL 83 ) + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4166
SELECT COUNT ( * ) / - MAX ( ALL 83 ) + 25 AS col2
----
25

query I rowsort
SELECT ( - 87 ) * 67
----
-5829

query I rowsort
SELECT ALL 89 * + 11
----
979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4169
SELECT DISTINCT 60 * COALESCE ( - 45 * + NULLIF ( + NULLIF ( ( 49 ), + 34 + - 2 * - 97 ), + ( 96 ) ), + CAST( 48 AS SIGNED ), MIN( + 3 ) ) AS col1
----
-132300

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT 60 * COALESCE ( - 45 * + NULLIF ( + NULLIF ( ( 49 ), + 34 + - 2 * - 97 ), + ( 96 ) ), + CAST ( 48 AS INTEGER ), MIN ( + 3 ) ) AS col1
----
-132300

query I rowsort
SELECT ALL 95 * 88 AS col0
----
8360

query I rowsort
SELECT ALL 53 * - 77 AS col1
----
-4081

query I rowsort
SELECT 12 + - 51 * 26 AS col1
----
-1314

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

skipif mysql # not compatible
query I rowsort label-4173
SELECT CAST ( NULL AS INTEGER ) + 60
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4174
SELECT ALL COALESCE ( + 59, 69, 83 + 62 DIV - 79 ) + 95
----
154

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL COALESCE ( + 59, 69, 83 + 62 / - 79 ) + 95
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4175
SELECT 2 * CAST( + 32 AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4175
SELECT 2 * CAST ( + 32 AS INTEGER ) AS col2
----
64

query I rowsort
SELECT 37 + 52 AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4177
SELECT - 13 * COUNT( * ) + + COALESCE ( + 17 + ( SUM( - 6 ) + 26 ), 90, 81 + COALESCE ( + 71, 3 + CASE + 26 WHEN ( CAST( + 21 AS SIGNED ) ) + - MIN( ALL + 60 ) * 19 THEN NULL WHEN + 72 THEN + COALESCE ( - NULLIF ( 29, - CASE + CAST( NULL AS SIGNED ) WHEN - 17 + 77 THEN NULL ELSE 84 END * 4 + + 30 ), - 83 DIV 59 + 46, - COUNT( * ) * - 40 ) ELSE - 48 END, - ( - NULLIF ( + 55, + COUNT( CAST( NULL AS SIGNED ) ) * 19 + - 88 DIV 49 ) ) ) ) * 66
----
2429

skipif mysql # not compatible
query I rowsort label-4177
SELECT - 13 * COUNT ( * ) + + COALESCE ( + 17 + ( SUM ( - 6 ) + 26 ), 90, 81 + COALESCE ( + 71, 3 + CASE + 26 WHEN ( CAST ( + 21 AS INTEGER ) ) + - MIN ( ALL + 60 ) * 19 THEN NULL WHEN + 72 THEN + COALESCE ( - NULLIF ( 29, - CASE + CAST ( NULL AS INTEGER ) WHEN - 17 + 77 THEN NULL ELSE 84 END * 4 + + 30 ), - 83 / 59 + 46, - COUNT ( * ) * - 40 ) ELSE - 48 END, - ( - NULLIF ( + 55, + COUNT ( CAST ( NULL AS INTEGER ) ) * 19 + - 88 / 49 ) ) ) ) * 66
----
2429

query I rowsort
SELECT DISTINCT - ( ( + ( 94 ) ) ) * 96 AS col0
----
-9024

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT DISTINCT + COUNT( * ) + - 92 * 79 col2
----
-7267

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT + COUNT ( * ) + - 92 * 79 col2
----
-7267

query I rowsort
SELECT DISTINCT ( + 24 ) + - 42 AS col0
----
-18

query I rowsort
SELECT 81 * + 51 + + 38
----
4169

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT DISTINCT COALESCE ( - COUNT( * ), + 32 ) * 13
----
-13

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT COALESCE ( - COUNT ( * ), + 32 ) * 13
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT 46 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-4183
SELECT 46 / - 85
----
0

query I rowsort
SELECT ALL + + 47 * - 46 AS col2
----
-2162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4185
SELECT ALL - + MIN( ALL - NULLIF ( - CAST( NULL AS SIGNED ), - ( + ( - 49 ) ) + - 10 ) ) - - MIN( ALL 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - + MIN ( ALL - NULLIF ( - CAST ( NULL AS INTEGER ), - ( + ( - 49 ) ) + - 10 ) ) - - MIN ( ALL 41 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4186
SELECT - CAST( - NULLIF ( + 3, 92 / CAST( - 25 AS DECIMAL ) ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-4186
SELECT - CAST ( - NULLIF ( + 3, 92 / CAST ( - 25 AS REAL ) ) AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT - 8 + COUNT( DISTINCT + 16 - - 20 ) * 6
----
-2

skipif mysql # not compatible
query I rowsort label-4187
SELECT - 8 + COUNT ( DISTINCT + 16 - - 20 ) * 6
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT - MAX( DISTINCT - NULLIF ( 88, - 84 * - 45 ) )
----
88

skipif mysql # not compatible
query I rowsort label-4189
SELECT - MAX ( DISTINCT - NULLIF ( 88, - 84 * - 45 ) )
----
88

query I rowsort
SELECT 54 + NULLIF ( - COALESCE ( 31, ( 99 ) ), - 64 ) * 42 AS col2
----
-1248

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT DISTINCT + 72 DIV 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT + 72 / 51 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL NULLIF ( + 60, - ( COUNT( * ) ) )
----
60

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL NULLIF ( + 60, - ( COUNT ( * ) ) )
----
60

query I rowsort
SELECT DISTINCT - - 43 - 11 * + 65 AS col2
----
-672

query I rowsort
SELECT + 57 + 87 AS col2
----
144

query I rowsort
SELECT DISTINCT + 22 - + 20 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4196
SELECT DISTINCT + + 30 DIV COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT + + 30 / COUNT ( * ) AS col1
----
30

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

query I rowsort
SELECT - - 10 col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT DISTINCT - COUNT( * ) * 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT - COUNT ( * ) * 99 AS col2
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4200
SELECT - CAST( NULL AS DECIMAL ) + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT - CAST ( NULL AS REAL ) + 5 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 87 * + 63
----
5481

query I rowsort
SELECT 33 + - 18 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - MIN( + 67 ) * 8 AS col1
----
-536

skipif mysql # not compatible
query I rowsort label-4203
SELECT - MIN ( + 67 ) * 8 AS col1
----
-536

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL - MIN( 53 ) * 55 + - ( 91 ) AS col1
----
-3006

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL - MIN ( 53 ) * 55 + - ( 91 ) AS col1
----
-3006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT + COALESCE ( + 66, CAST( NULL AS SIGNED ), 8 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4205
SELECT + COALESCE ( + 66, CAST ( NULL AS INTEGER ), 8 ) AS col1
----
66

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL - 77 * SUM( ALL CASE 18 WHEN - 5 * 11 THEN NULL ELSE + 30 + 95 END ) + - 53 AS col1
----
-9678

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL - 77 * SUM ( ALL CASE 18 WHEN - 5 * 11 THEN NULL ELSE + 30 + 95 END ) + - 53 AS col1
----
-9678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4209
SELECT DISTINCT - ( + + 13 ) * + COUNT( * ) + - COUNT( * ) * CAST( 88 AS SIGNED )
----
-101

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT - ( + + 13 ) * + COUNT ( * ) + - COUNT ( * ) * CAST ( 88 AS INTEGER )
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT SUM( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-4210
SELECT SUM ( - 5 )
----
-5

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

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

query I rowsort
SELECT ( - + 79 ) * + 33
----
-2607

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT 11 * 33 DIV + 27
----
13

skipif mysql # not compatible
query I rowsort label-4213
SELECT 11 * 33 / + 27
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT MAX( - + 46 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4214
SELECT MAX ( - + 46 ) AS col0
----
-46

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

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

query I rowsort
SELECT - 72 * + - 27 - - 56
----
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL ( + - ( 5 ) ) * ( COUNT( * ) + - MAX( DISTINCT - 76 ) * 35 ) col2
----
-13305

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL ( + - ( 5 ) ) * ( COUNT ( * ) + - MAX ( DISTINCT - 76 ) * 35 ) col2
----
-13305

query I rowsort
SELECT + 75 * + ( 31 )
----
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT MIN( 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4219
SELECT MIN ( 85 ) AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT + CASE + 12 WHEN 13 * - 8 + + NULLIF ( CAST( NULL AS SIGNED ), - 55 + 85 / - 39 ) * + ( + 61 ) THEN 16 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT + CASE + 12 WHEN 13 * - 8 + + NULLIF ( CAST ( NULL AS INTEGER ), - 55 + 85 / - 39 ) * + ( + 61 ) THEN 16 END col1
----
NULL

query I rowsort
SELECT + 40 + - 76 - 16 * 76 AS col0
----
-1252

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT 23 * + 94 + 78 DIV + 37 AS col2
----
2164

skipif mysql # not compatible
query I rowsort label-4223
SELECT 23 * + 94 + 78 / + 37 AS col2
----
2164

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT + MAX( DISTINCT 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4224
SELECT + MAX ( DISTINCT 50 ) AS col1
----
50

query I rowsort
SELECT + + 54 * 69
----
3726

query I rowsort
SELECT ALL + ( - + 17 ) * - 23
----
391

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4227
SELECT 79 * 64 / CAST( NULL AS DECIMAL ) + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT 79 * 64 / CAST ( NULL AS REAL ) + + 15
----
NULL

query I rowsort
SELECT + + 4 + - 54 AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT ALL + CAST( ( + 5 ) AS SIGNED ) * 42 AS col1
----
210

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + CAST ( ( + 5 ) AS INTEGER ) * 42 AS col1
----
210

query I rowsort
SELECT - 55 * - 88 AS col2
----
4840

query I rowsort
SELECT + 13 + 25 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + - 27 * 37 + COUNT( * ) * - 18
----
-1017

skipif mysql # not compatible
query I rowsort label-4232
SELECT + - 27 * 37 + COUNT ( * ) * - 18
----
-1017

query I rowsort
SELECT - - NULLIF ( + - 17, 90 ) * ( + 51 ) AS col0
----
-867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4234
SELECT - CASE - - 59 WHEN 17 * CAST( 43 * 91 AS DECIMAL ) THEN 75 WHEN 49 THEN NULL WHEN - COUNT( * ) + 42 THEN NULL WHEN 74 * + 20 + 23 THEN 62 END - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT - CASE - - 59 WHEN 17 * CAST ( 43 * 91 AS REAL ) THEN 75 WHEN 49 THEN NULL WHEN - COUNT ( * ) + 42 THEN NULL WHEN 74 * + 20 + 23 THEN 62 END - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT - CASE 84 WHEN COUNT( * ) * 85 THEN MIN( - CASE 92 WHEN 1 THEN 51 * 25 ELSE - 42 * 62 END ) WHEN - 42 THEN 53 + + 37 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT - CASE 84 WHEN COUNT ( * ) * 85 THEN MIN ( - CASE 92 WHEN 1 THEN 51 * 25 ELSE - 42 * 62 END ) WHEN - 42 THEN 53 + + 37 END AS col1
----
NULL

query I rowsort
SELECT ALL - + ( + COALESCE ( + 62, 53 * + 95 ) ) + - COALESCE ( - 21, 78 ) AS col0
----
-41

query I rowsort
SELECT - 58 - + 58
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT - + ( + CASE + 6 WHEN NULLIF ( 9, 5 / + SUM( ALL - 13 ) + + CASE CASE 27 WHEN 6 THEN 8 END WHEN CASE 85 WHEN 48 THEN 52 + 35 ELSE NULL END THEN 58 * SUM( 34 ) + 80 * 35 WHEN - 77 THEN NULL END * + 66 ) / + 12 THEN NULL WHEN - ( 0 ) THEN NULL ELSE - 62 + + 51 * + 13 END ) AS col0
----
-601

skipif mysql # not compatible
query I rowsort label-4238
SELECT - + ( + CASE + 6 WHEN NULLIF ( 9, 5 / + SUM ( ALL - 13 ) + + CASE CASE 27 WHEN 6 THEN 8 END WHEN CASE 85 WHEN 48 THEN 52 + 35 ELSE NULL END THEN 58 * SUM ( 34 ) + 80 * 35 WHEN - 77 THEN NULL END * + 66 ) / + 12 THEN NULL WHEN - ( 0 ) THEN NULL ELSE - 62 + + 51 * + 13 END ) AS col0
----
-601

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

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

query I rowsort
SELECT DISTINCT - 39 + ( - 47 )
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL - CASE + + COUNT( - 29 ) WHEN - 87 + + 86 THEN NULL WHEN + 41 THEN - 29 ELSE 94 END * 91 AS col0
----
-8554

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL - CASE + + COUNT ( - 29 ) WHEN - 87 + + 86 THEN NULL WHEN + 41 THEN - 29 ELSE 94 END * 91 AS col0
----
-8554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT - 66 DIV SUM( + 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-4243
SELECT - 66 / SUM ( + 64 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT ALL - MAX( DISTINCT + 69 ) + - - CAST( + COUNT( - NULLIF ( + CAST( NULL AS SIGNED ), + 4 * 37 + 25 ) ) AS SIGNED ) * 74 col2
----
-69

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - MAX ( DISTINCT + 69 ) + - - CAST ( + COUNT ( - NULLIF ( + CAST ( NULL AS INTEGER ), + 4 * 37 + 25 ) ) AS INTEGER ) * 74 col2
----
-69

query I rowsort
SELECT ( - COALESCE ( - 3, + 20 - 13 * ( - 50 ), 61 * 50 - - COALESCE ( + ( 96 ), + 42 * + 79 ) ) )
----
3

query I rowsort
SELECT - 59 - - 86
----
27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT 17 DIV - 55 + + 83
----
83

skipif mysql # not compatible
query I rowsort label-4248
SELECT 17 / - 55 + + 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT 81 * - - ( - COUNT( * ) ) - - 75 col0
----
-6

skipif mysql # not compatible
query I rowsort label-4249
SELECT 81 * - - ( - COUNT ( * ) ) - - 75 col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - 6 + COUNT( * ) + - 11 * + ( ( SUM( DISTINCT 1 ) ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4250
SELECT - 6 + COUNT ( * ) + - 11 * + ( ( SUM ( DISTINCT 1 ) ) ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT + COUNT( * ) * 70 * + 51 AS col1
----
3570

skipif mysql # not compatible
query I rowsort label-4251
SELECT + COUNT ( * ) * 70 * + 51 AS col1
----
3570

query I rowsort
SELECT - 23 * 31 * - + 37 AS col2
----
26381

query I rowsort
SELECT DISTINCT + 8 * + 61 col0
----
488

query I rowsort
SELECT ALL + 17 * - + 81 + 34 * - 91
----
-4471

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT 81 * - 91 * 62 * 69 + COUNT( * ) col2
----
-31533137

skipif mysql # not compatible
query I rowsort label-4255
SELECT 81 * - 91 * 62 * 69 + COUNT ( * ) col2
----
-31533137

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL + COUNT( DISTINCT - COALESCE ( - + 45, + 97 + - 99 ) ) * - 18
----
-18

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + COUNT ( DISTINCT - COALESCE ( - + 45, + 97 + - 99 ) ) * - 18
----
-18

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4258
SELECT ALL + 11, COUNT( * ) AS col0
----
11
1

skipif mysql # not compatible
query II rowsort label-4258
SELECT ALL + 11, COUNT ( * ) AS col0
----
11
1

query I rowsort
SELECT + 52 + 86
----
138

query I rowsort
SELECT NULLIF ( + 62, - NULLIF ( + 86, 61 ) ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + COALESCE ( COUNT( * ), - COUNT( * ) + + COUNT( * ) * 62, - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-4261
SELECT + COALESCE ( COUNT ( * ), - COUNT ( * ) + + COUNT ( * ) * 62, - 48 )
----
1

query I rowsort
SELECT + 28 + + 2
----
30

query I rowsort
SELECT + 46 + ( - 44 ) + - ( + 93 ) * COALESCE ( 93, 33 )
----
-8647

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4264
SELECT ALL - COALESCE ( + - COUNT( * ), COUNT( * ), 33 ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL - COALESCE ( + - COUNT ( * ), COUNT ( * ), 33 ) / - COUNT ( * )
----
-1

query I rowsort
SELECT + 61 * - - 72 + + - 11 AS col0
----
4381

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT DISTINCT + - NULLIF ( + + COUNT( * ), + COUNT( * ) ) * + COUNT( * ) - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT + - NULLIF ( + + COUNT ( * ), + COUNT ( * ) ) * + COUNT ( * ) - - 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4268
SELECT ALL - 77 DIV - 66
----
1

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - 77 / - 66
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL + COUNT( * ) * - 41 * 79 * ( - 95 ) + SUM( + 3 - 11 ) col1
----
307697

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + COUNT ( * ) * - 41 * 79 * ( - 95 ) + SUM ( + 3 - 11 ) col1
----
307697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4270
SELECT DISTINCT + CASE COUNT( * ) WHEN - 15 DIV + 26 THEN NULL WHEN 75 + + COUNT( * ) * - 78 THEN + 60 ELSE + 26 * 92 - + CASE COUNT( * ) WHEN - 92 + - ( 28 ) THEN - 14 + - ( + 16 ) * + COALESCE ( 61 DIV - 98, 51, + 60 ) WHEN + COUNT( * ) THEN SUM( ALL 97 ) ELSE NULL END * 30 END
----
-518

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT + CASE COUNT ( * ) WHEN - 15 / + 26 THEN NULL WHEN 75 + + COUNT ( * ) * - 78 THEN + 60 ELSE + 26 * 92 - + CASE COUNT ( * ) WHEN - 92 + - ( 28 ) THEN - 14 + - ( + 16 ) * + COALESCE ( 61 / - 98, 51, + 60 ) WHEN + COUNT ( * ) THEN SUM ( ALL 97 ) ELSE NULL END * 30 END
----
-518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( - 67 ) / 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( - 67 ) / 26 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT + 39 DIV - 19 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4272
SELECT + 39 / - 19 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT DISTINCT - NULLIF ( - 65, + COUNT( * ) + - COUNT( * ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT - NULLIF ( - 65, + COUNT ( * ) + - COUNT ( * ) ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4274
SELECT + 9, NULLIF ( ( 36 ), COUNT( * ) ) AS col1
----
9
36

skipif mysql # not compatible
query II rowsort label-4274
SELECT + 9, NULLIF ( ( 36 ), COUNT ( * ) ) AS col1
----
9
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4275
SELECT + 53 * CASE - 11 WHEN 28 - + 23 * COALESCE ( COUNT( * ) * COUNT( * ), + 47 ) THEN NULL WHEN + CAST( + COALESCE ( 68, - 55, 20 + + 74 * 36 ) AS SIGNED ) + 95 * + 7 THEN 5 WHEN 52 THEN - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT + 53 * CASE - 11 WHEN 28 - + 23 * COALESCE ( COUNT ( * ) * COUNT ( * ), + 47 ) THEN NULL WHEN + CAST ( + COALESCE ( 68, - 55, 20 + + 74 * 36 ) AS INTEGER ) + 95 * + 7 THEN 5 WHEN 52 THEN - 58 END
----
NULL

query I rowsort
SELECT DISTINCT - ( + + NULLIF ( + 16, + 9 ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL CASE - - 54 WHEN COUNT( * ) THEN 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL CASE - - 54 WHEN COUNT ( * ) THEN 97 END
----
NULL

query I rowsort
SELECT + + 56 + - 86
----
-30

query I rowsort
SELECT + - 50 + 58
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4280
SELECT - COUNT( * ), - ( - + COUNT( * ) ) + - COUNT( * ) AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-4280
SELECT - COUNT ( * ), - ( - + COUNT ( * ) ) + - COUNT ( * ) AS col0
----
-1
0

query I rowsort
SELECT + - 81 * - 84 AS col1
----
6804

query I rowsort
SELECT ALL 59 + + - 6
----
53

query I rowsort
SELECT ALL 3 + - 23 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT + 42 + COUNT( ALL - 24 )
----
43

skipif mysql # not compatible
query I rowsort label-4284
SELECT + 42 + COUNT ( ALL - 24 )
----
43

query I rowsort
SELECT + NULLIF ( - 76, + - 66 ) AS col2
----
-76

query II rowsort
SELECT ALL - 52 AS col1, - 89 - + 77
----
-52
-166

query I rowsort
SELECT + 69 + + 58 AS col0
----
127

query I rowsort
SELECT ALL - 35 + - 39 AS col2
----
-74

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

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

query I rowsort
SELECT - 60 + + 34 - + 70 * - 55 AS col2
----
3824

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL CASE - AVG ( + 9 ) WHEN - ( 2 ) THEN MAX( DISTINCT 51 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL CASE - AVG ( + 9 ) WHEN - ( 2 ) THEN MAX ( DISTINCT 51 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4292
SELECT - CAST( - - 70 AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4292
SELECT - CAST ( - - 70 AS INTEGER ) AS col0
----
-70

query I rowsort
SELECT ALL - 49 + + 26 - - 82 + 31 - - 96 AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT + 24 * - MAX( DISTINCT + 6 ) AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-4294
SELECT + 24 * - MAX ( DISTINCT + 6 ) AS col2
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT 27 * 96 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT 27 * 96 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 30 * + + 98, 1 AS col2
----
2940
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT DISTINCT - MAX( ( + 75 ) ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT - MAX ( ( + 75 ) ) col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL 82 - - 47 + + + COUNT( * ) + + 12
----
142

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL 82 - - 47 + + + COUNT ( * ) + + 12
----
142

query I rowsort
SELECT DISTINCT - 4 * + + 2
----
-8

query I rowsort
SELECT NULLIF ( + 10, 98 ) - + - 3 + - 28 * 52 col2
----
-1443

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT ALL - MIN( 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL - MIN ( 47 )
----
-47

query I rowsort
SELECT ALL + 59 * + - ( + 71 )
----
-4189

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT DISTINCT - 41 * MIN( DISTINCT - + 90 )
----
3690

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT - 41 * MIN ( DISTINCT - + 90 )
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL - NULLIF ( - COALESCE ( COUNT( ALL + 58 ), - 37 ), 61 + 21 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL - NULLIF ( - COALESCE ( COUNT ( ALL + 58 ), - 37 ), 61 + 21 ) AS col1
----
1

query I rowsort
SELECT ALL - - 84 col2
----
84

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4307
SELECT + CASE + ( + CAST( NULL AS SIGNED ) ) WHEN - 22 + - 17 THEN 74 - 18 END * - COUNT( * ) + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT + CASE + ( + CAST ( NULL AS INTEGER ) ) WHEN - 22 + - 17 THEN 74 - 18 END * - COUNT ( * ) + - 62
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4308
SELECT + + ( + COUNT( * ) ), - 94 * + 66 AS col1
----
1
-6204

skipif mysql # not compatible
query II rowsort label-4308
SELECT + + ( + COUNT ( * ) ), - 94 * + 66 AS col1
----
1
-6204

query I rowsort
SELECT 19 + - + 53
----
-34

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT DISTINCT - - 10 + + + 62 * + 58 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT - - 10 + + + 62 * + 58 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + - 12 ) - 82 + + - 58 AS col2
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4313
SELECT DISTINCT 43 + - 45 * - + 11 + - CASE 0 WHEN 40 THEN CAST( NULL AS SIGNED ) * + 76 - - 36 ELSE 48 * - COUNT( * ) + 80 END + 50 DIV + 73 AS col2
----
506

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT 43 + - 45 * - + 11 + - CASE 0 WHEN 40 THEN CAST ( NULL AS INTEGER ) * + 76 - - 36 ELSE 48 * - COUNT ( * ) + 80 END + 50 / + 73 AS col2
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL COUNT( * ) + - ( - + ( 4 ) ) * 84 AS col1
----
337

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL COUNT ( * ) + - ( - + ( 4 ) ) * 84 AS col1
----
337

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

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT - - ( - 96 ) + 73 / + + COUNT ( * ) AS col2
----
-23

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

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

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT + 97 + + COUNT ( * ) AS col1
----
98

query I rowsort
SELECT DISTINCT - 39 + + + 72 * + 30
----
2121

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT COUNT( DISTINCT 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4319
SELECT COUNT ( DISTINCT 14 ) AS col1
----
1

query I rowsort
SELECT ALL 28 + + 6
----
34

query I rowsort
SELECT 67 * - + 0 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT CASE - 97 WHEN + 41 THEN + - 27 WHEN - ( 94 ) + - COALESCE ( 29, 34 + CAST( 68 AS SIGNED ) * + 34 ) THEN NULL END + ( 95 ) / - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT CASE - 97 WHEN + 41 THEN + - 27 WHEN - ( 94 ) + - COALESCE ( 29, 34 + CAST ( 68 AS INTEGER ) * + 34 ) THEN NULL END + ( 95 ) / - 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4323
SELECT + 11 * 54 AS col2, 84 * - + CASE WHEN NOT 92 NOT BETWEEN ( - 6 ) AND 41 * 42 + + 20 THEN NULL WHEN + 19 + 82 NOT IN ( COUNT( * ) ) THEN + COUNT( * ) END + 34
----
594
NULL

skipif mysql # not compatible
query II rowsort label-4323
SELECT + 11 * 54 AS col2, 84 * - + CASE WHEN NOT 92 NOT BETWEEN ( - 6 ) AND 41 * 42 + + 20 THEN NULL WHEN + 19 + 82 NOT IN ( COUNT ( * ) ) THEN + COUNT ( * ) END + 34
----
594
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT 37 * - CASE + 37 WHEN + 97 THEN NULL WHEN - 55 THEN NULL ELSE COUNT( * ) END
----
-37

skipif mysql # not compatible
query I rowsort label-4324
SELECT 37 * - CASE + 37 WHEN + 97 THEN NULL WHEN - 55 THEN NULL ELSE COUNT ( * ) END
----
-37

query I rowsort
SELECT ( 95 ) + - - 95 AS col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL NULLIF ( + - SUM( - 93 ), 40 ) - + - MIN( DISTINCT 96 ) * 22 AS col2
----
2205

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL NULLIF ( + - SUM ( - 93 ), 40 ) - + - MIN ( DISTINCT 96 ) * 22 AS col2
----
2205

query II rowsort
SELECT ALL 20 AS col0, - 84 AS col2
----
20
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT 27 - - + 21 + - 27 * + MIN( DISTINCT + 62 ) AS col2
----
-1626

skipif mysql # not compatible
query I rowsort label-4328
SELECT 27 - - + 21 + - 27 * + MIN ( DISTINCT + 62 ) AS col2
----
-1626

query II rowsort
SELECT DISTINCT 12 * 57 * - 29 AS col1, 6 + + 85 + + 84
----
-19836
175

query I rowsort
SELECT ALL 41 * - 47
----
-1927

query I rowsort
SELECT 17 + + - 56 col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL - MAX( DISTINCT 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL - MAX ( DISTINCT 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4333
SELECT - 97 DIV - 9 + - 75 + + 69 + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-4333
SELECT - 97 / - 9 + - 75 + + 69 + - COUNT ( * )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4334
SELECT + 9 * 43 - + 62 col1, 91 - CAST( NULL AS SIGNED )
----
325
NULL

skipif mysql # not compatible
query II rowsort label-4334
SELECT + 9 * 43 - + 62 col1, 91 - CAST ( NULL AS INTEGER )
----
325
NULL

query I rowsort
SELECT 65 * 90 AS col1
----
5850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4336
SELECT ALL 11 * SUM( DISTINCT - ( - - 24 ) ) DIV 19 * + COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL 11 * SUM ( DISTINCT - ( - - 24 ) ) / 19 * + COUNT ( * ) AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT 55 * 92 - CAST( + 16 AS SIGNED )
----
5044

skipif mysql # not compatible
query I rowsort label-4337
SELECT 55 * 92 - CAST ( + 16 AS INTEGER )
----
5044

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

skipif mysql # not compatible
query I rowsort label-4338
SELECT CAST ( NULL AS INTEGER ) + + 13 AS col0
----
NULL

query I rowsort
SELECT 52 + 31 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4340
SELECT DISTINCT 64 + CAST( - 74 AS SIGNED ) + 69 + + CASE + COUNT( - 34 ) WHEN 98 THEN + AVG ( ALL 92 ) END * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT 64 + CAST ( - 74 AS INTEGER ) + 69 + + CASE + COUNT ( - 34 ) WHEN 98 THEN + AVG ( ALL 92 ) END * 17
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT ( 35 ) + 42, + COUNT( * ) AS col2
----
77
1

skipif mysql # not compatible
query II rowsort label-4341
SELECT ( 35 ) + 42, + COUNT ( * ) AS col2
----
77
1

query I rowsort
SELECT + NULLIF ( + 56, 39 + 37 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT ALL + 94 DIV + 77 col0
----
1

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL + 94 / + 77 col0
----
1

query I rowsort
SELECT - 35 + + - 41 AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT - 74 * - CAST( NULL AS SIGNED ) * - + 43 * - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT - 74 * - CAST ( NULL AS INTEGER ) * - + 43 * - 88 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 3 + - 68 AS col2
----
-71

query I rowsort
SELECT ALL - + 58 + 10
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4348
SELECT DISTINCT - + COUNT( * ) + + - CAST( 98 AS SIGNED ) AS col0, + 45 + - + 59 DIV 35 col2
----
-99
44

skipif mysql # not compatible
query II rowsort label-4348
SELECT DISTINCT - + COUNT ( * ) + + - CAST ( 98 AS INTEGER ) AS col0, + 45 + - + 59 / 35 col2
----
-99
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT + CAST( NULL AS SIGNED ) + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT + CAST ( NULL AS INTEGER ) + - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL - COALESCE ( + 98, COUNT( * ) ) + - - 15
----
-83

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL - COALESCE ( + 98, COUNT ( * ) ) + - - 15
----
-83

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

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

query I rowsort
SELECT 82 - 9 * 90
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT - 65 * 57 + + 55 * 83 + - 30 * + COUNT( * )
----
830

skipif mysql # not compatible
query I rowsort label-4353
SELECT - 65 * 57 + + 55 * 83 + - 30 * + COUNT ( * )
----
830

query I rowsort
SELECT DISTINCT - ( + + 85 ) AS col0
----
-85

query I rowsort
SELECT ( - ( - 15 ) )
----
15

query I rowsort
SELECT ALL CASE - - 34 WHEN 69 * 63 THEN NULL WHEN 78 + - ( ( + 50 ) ) THEN 34 * + 83 END - - 13 AS col1
----
NULL

query I rowsort
SELECT - 83 * - - 97 AS col1
----
-8051

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT DISTINCT COUNT( * ) AS col0, 16 AS col2
----
1
16

skipif mysql # not compatible
query II rowsort label-4358
SELECT DISTINCT COUNT ( * ) AS col0, 16 AS col2
----
1
16

query I rowsort
SELECT DISTINCT + 49 - - 43
----
92

query I rowsort
SELECT + 77 + + 38 + + - 2
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT ALL COALESCE ( 18, - 60, + CAST( - 43 AS SIGNED ), + 96 * 26 )
----
18

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL COALESCE ( 18, - 60, + CAST ( - 43 AS INTEGER ), + 96 * 26 )
----
18

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

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

query I rowsort
SELECT DISTINCT - 77 * 27 AS col1
----
-2079

query I rowsort
SELECT - 23 * - 97
----
2231

query II rowsort
SELECT DISTINCT 38, 33 + 11 AS col1
----
38
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + 93 * - - 77 * - COUNT( * )
----
-7161

skipif mysql # not compatible
query I rowsort label-4366
SELECT + 93 * - - 77 * - COUNT ( * )
----
-7161

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL COALESCE ( - 51, - 54 + + 92 * COUNT( * ), + COUNT( * ) * + 71 )
----
-51

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL COALESCE ( - 51, - 54 + + 92 * COUNT ( * ), + COUNT ( * ) * + 71 )
----
-51

query II rowsort
SELECT DISTINCT 95, + 75 * + 34 + + 59 + 85 AS col1
----
95
2694

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

query I rowsort
SELECT DISTINCT - 48 * - + 98 + - 95
----
4609

query II rowsort
SELECT ALL + 97 col1, + 42 * 41
----
97
1722

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL CASE - 71 WHEN - COUNT( * ) THEN - 98 WHEN 87 THEN + 66 - + 89 WHEN + MAX( ALL + 45 ) THEN NULL END * 7 + - 90 * COUNT( + ( - 48 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL CASE - 71 WHEN - COUNT ( * ) THEN - 98 WHEN 87 THEN + 66 - + 89 WHEN + MAX ( ALL + 45 ) THEN NULL END * 7 + - 90 * COUNT ( + ( - 48 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 98 * - COALESCE ( + - 66, + ( + - 54 ) ) + 14 col2
----
6482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4374
SELECT - 98 / - 83 * - - CAST( NULL AS SIGNED ) - - 34 * + - SUM( - + 63 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT - 98 / - 83 * - - CAST ( NULL AS INTEGER ) - - 34 * + - SUM ( - + 63 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + 50 - - - 16 + - 12 * - COUNT( * ) + - COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4375
SELECT + 50 - - - 16 + - 12 * - COUNT ( * ) + - COUNT ( * ) AS col2
----
45

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4377
SELECT ALL - 27 * COUNT( ALL - CAST( + 34 AS SIGNED ) ) + + + 9 * 62 - 1 * - 53 AS col1
----
584

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL - 27 * COUNT ( ALL - CAST ( + 34 AS INTEGER ) ) + + + 9 * 62 - 1 * - 53 AS col1
----
584

query I rowsort
SELECT + + ( 68 ) * + 97
----
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT + + COALESCE ( 3, + 16 + MAX( DISTINCT - 81 ) + + - 10 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + + COALESCE ( 3, + 16 + MAX ( DISTINCT - 81 ) + + - 10 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4380
SELECT ALL + 69 AS col1, + 58 * - + COUNT( * ) AS col0
----
69
-58

skipif mysql # not compatible
query II rowsort label-4380
SELECT ALL + 69 AS col1, + 58 * - + COUNT ( * ) AS col0
----
69
-58

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

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + - 43 / + - 55 * COUNT ( * )
----
0

query I rowsort
SELECT + + 44 - - 47 * 32
----
1548

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

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

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT 92 / 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT 58 * 46 * - - 7 + + 52 + 81 + - COUNT( * )
----
18808

skipif mysql # not compatible
query I rowsort label-4385
SELECT 58 * 46 * - - 7 + + 52 + 81 + - COUNT ( * )
----
18808

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL 10 * + 59 * - COUNT( * ) col2
----
-590

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL 10 * + 59 * - COUNT ( * ) col2
----
-590

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4387
SELECT + CASE 87 WHEN - 22 DIV + COUNT( * ) + + 10 THEN NULL WHEN - 25 * 41 THEN - 92 DIV + 46 WHEN CAST( NULL AS DECIMAL ) - 44 THEN 93 + - 90 ELSE COUNT( * ) END + - 70 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-4387
SELECT + CASE 87 WHEN - 22 / + COUNT ( * ) + + 10 THEN NULL WHEN - 25 * 41 THEN - 92 / + 46 WHEN CAST ( NULL AS REAL ) - 44 THEN 93 + - 90 ELSE COUNT ( * ) END + - 70 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT 59, 99 + + ( + COUNT( * ) ) col1
----
59
100

skipif mysql # not compatible
query II rowsort label-4388
SELECT 59, 99 + + ( + COUNT ( * ) ) col1
----
59
100

query I rowsort
SELECT - 62 - 5 + + 36
----
-31

query II rowsort
SELECT 65 AS col2, + 44 AS col2
----
65
44

query I rowsort
SELECT ALL ( - 67 ) AS col2
----
-67

query I rowsort
SELECT DISTINCT + 65 * - - 85 + - - 19
----
5544

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4394
SELECT DISTINCT ( COUNT( * ) ) AS col0, + 48 * + CAST( NULL AS SIGNED ) + - - 74 + 54 / - 78 * 76
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4394
SELECT DISTINCT ( COUNT ( * ) ) AS col0, + 48 * + CAST ( NULL AS INTEGER ) + - - 74 + 54 / - 78 * 76
----
1
NULL

query I rowsort
SELECT - 36 + - 59
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL - COUNT( * ) - 60 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - COUNT ( * ) - 60 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL COALESCE ( CASE CASE 74 WHEN COUNT( ALL - 2 ) THEN NULL WHEN 69 * AVG ( 87 ) + 78 * ( 68 ) THEN + COUNT( 76 ) ELSE NULL END WHEN 23 + + 3 THEN NULL WHEN 42 * 69 THEN + 47 ELSE NULL END, 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL COALESCE ( CASE CASE 74 WHEN COUNT ( ALL - 2 ) THEN NULL WHEN 69 * AVG ( 87 ) + 78 * ( 68 ) THEN + COUNT ( 76 ) ELSE NULL END WHEN 23 + + 3 THEN NULL WHEN 42 * 69 THEN + 47 ELSE NULL END, 81 ) AS col0
----
81

query I rowsort
SELECT + 65 + + 5 + - + 13
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT - 24 DIV 3 DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-4399
SELECT - 24 / 3 / + 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT - COUNT( * ) * - 13 * - 4 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4400
SELECT - COUNT ( * ) * - 13 * - 4 AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4401
SELECT - 41 + + 65 * NULLIF ( 9, + - MIN( DISTINCT - CAST( + 62 AS SIGNED ) ) * 21 + COUNT( * ) / + 48 ) col1
----
544

skipif mysql # not compatible
query I rowsort label-4401
SELECT - 41 + + 65 * NULLIF ( 9, + - MIN ( DISTINCT - CAST ( + 62 AS INTEGER ) ) * 21 + COUNT ( * ) / + 48 ) col1
----
544

query I rowsort
SELECT ALL ( + - 88 ) AS col2
----
-88

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

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

query I rowsort
SELECT ALL 81 + + - 37 AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4405
SELECT - 87 - - CAST( NULL AS SIGNED ) + 3 + + CAST( + + COUNT( DISTINCT + 34 ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT - 87 - - CAST ( NULL AS INTEGER ) + 3 + + CAST ( + + COUNT ( DISTINCT + 34 ) AS REAL ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL + 1 * - + 29 * - 72 * - COUNT( * ) AS col0
----
-2088

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL + 1 * - + 29 * - 72 * - COUNT ( * ) AS col0
----
-2088

query I rowsort
SELECT - ( + 77 ) + 96 * - 40 AS col2
----
-3917

onlyif mysql # aggregate syntax: 
query II rowsort label-4409
SELECT DISTINCT - 83 + COUNT( * ), - 92 col2
----
-82
-92

skipif mysql # not compatible
query II rowsort label-4409
SELECT DISTINCT - 83 + COUNT ( * ), - 92 col2
----
-82
-92

query I rowsort
SELECT - 51 + + 1 + + 20 + - 91 * 69 * + 98 * - + 39 + - 87 * + 3
----
23998047

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4411
SELECT + COALESCE ( - - 53, - COALESCE ( - + 78, 72 - 96 + + + CAST( NULL AS SIGNED ) - - 15 ) * 92 + 38 DIV + 16 ) col2
----
53

skipif mysql # not compatible
query I rowsort label-4411
SELECT + COALESCE ( - - 53, - COALESCE ( - + 78, 72 - 96 + + + CAST ( NULL AS INTEGER ) - - 15 ) * 92 + 38 / + 16 ) col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4412
SELECT ALL 38 DIV + + 82 + + + 18 - + 96 - + 40 + + CAST( - 18 AS SIGNED ) DIV - 31 DIV COUNT( * )
----
-118

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL 38 / + + 82 + + + 18 - + 96 - + 40 + + CAST ( - 18 AS INTEGER ) / - 31 / COUNT ( * )
----
-118

query I rowsort
SELECT + 62 * - - 9 - - 0 AS col2
----
558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4414
SELECT - - COUNT( * ) + COALESCE ( - - 50, 97 * 35 DIV + 95 + + 81 + - 28 )
----
51

skipif mysql # not compatible
query I rowsort label-4414
SELECT - - COUNT ( * ) + COALESCE ( - - 50, 97 * 35 / + 95 + + 81 + - 28 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4415
SELECT DISTINCT + - 50 * ( CASE + AVG ( ALL 7 ) WHEN - CAST( NULL AS SIGNED ) + + + COUNT( * ) * COALESCE ( CAST( NULL AS SIGNED ) + COUNT( * ) / - 44, + 30 + - 95, 49 ) THEN CAST( + 90 AS DECIMAL ) ELSE NULL END ) * - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT + - 50 * ( CASE + AVG ( ALL 7 ) WHEN - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * COALESCE ( CAST ( NULL AS INTEGER ) + COUNT ( * ) / - 44, + 30 + - 95, 49 ) THEN CAST ( + 90 AS REAL ) ELSE NULL END ) * - 26 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT DISTINCT + - CAST( + - 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT + - CAST ( + - 91 AS INTEGER )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT - 37 / - 60 + - 14 + + + 68 - 81 - - - 88 * + CASE 5 WHEN 98 THEN - SUM( ALL + 36 ) * 73 + 25 WHEN 30 THEN 46 WHEN - 53 THEN 67 ELSE NULL END - - 77 + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - 37 / - 60 + - 14 + + + 68 - 81 - - - 88 * + CASE 5 WHEN 98 THEN - SUM ( ALL + 36 ) * 73 + 25 WHEN 30 THEN 46 WHEN - 53 THEN 67 ELSE NULL END - - 77 + 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT ALL + NULLIF ( + - 72, + 44 - 3 + - + AVG ( + 39 ) * - NULLIF ( - 78, 31 DIV - 91 ) * ( 0 * + 94 ) + ( SUM( ALL + 65 ) + - 18 * 3 ) * - 10 ) DIV 98 + - 80
----
-80

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + NULLIF ( + - 72, + 44 - 3 + - + AVG ( + 39 ) * - NULLIF ( - 78, 31 / - 91 ) * ( 0 * + 94 ) + ( SUM ( ALL + 65 ) + - 18 * 3 ) * - 10 ) / 98 + - 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL + - MIN( DISTINCT - 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + - MIN ( DISTINCT - 99 ) AS col1
----
99

query I rowsort
SELECT ALL + - 36 AS col2
----
-36

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

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

query I rowsort
SELECT - ( - ( 50 ) ) * 45
----
2250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4423
SELECT + - 82 * + - 29 DIV COUNT( * ) + + 47
----
2425

skipif mysql # not compatible
query I rowsort label-4423
SELECT + - 82 * + - 29 / COUNT ( * ) + + 47
----
2425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4424
SELECT DISTINCT + + 35 DIV + 13 - + 56 DIV 16 * - COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT + + 35 / + 13 - + 56 / 16 * - COUNT ( * ) AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4425
SELECT + ( + ( + COUNT( * ) ) ) * 91 * + - 83 + - ( - - SUM( 74 ) ) + + COUNT( * ) DIV + 86
----
-7627

skipif mysql # not compatible
query I rowsort label-4425
SELECT + ( + ( + COUNT ( * ) ) ) * 91 * + - 83 + - ( - - SUM ( 74 ) ) + + COUNT ( * ) / + 86
----
-7627

query I rowsort
SELECT - 7 * + 47 + + 99 AS col2
----
-230

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

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

query I rowsort
SELECT ALL 56 * 7 + - 71
----
321

onlyif mysql # aggregate syntax: 
query II rowsort label-4429
SELECT ALL - SUM( ALL 99 ) AS col1, - 12 * - 90
----
-99
1080

skipif mysql # not compatible
query II rowsort label-4429
SELECT ALL - SUM ( ALL 99 ) AS col1, - 12 * - 90
----
-99
1080

onlyif mysql # DIV for integer division: 
query II rowsort label-4430
SELECT ALL - 77 DIV + 9 + - 81 AS col2, - 50
----
-89
-50

skipif mysql # not compatible
query II rowsort label-4430
SELECT ALL - 77 / + 9 + - 81 AS col2, - 50
----
-89
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT DISTINCT - 86 DIV + 13
----
-6

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT - 86 / + 13
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT DISTINCT 1 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT 1 / 85 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT ALL 18 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL 18 / 53 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT 20 - COUNT( - - 14 )
----
19

skipif mysql # not compatible
query I rowsort label-4434
SELECT 20 - COUNT ( - - 14 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4435
SELECT 56 DIV 35
----
1

skipif mysql # not compatible
query I rowsort label-4435
SELECT 56 / 35
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT NULLIF ( + 62, + 78 ) - + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4436
SELECT NULLIF ( + 62, + 78 ) - + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT + 14 * + 35 * + 86 * + - COUNT( * ) AS col1
----
-42140

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT + 14 * + 35 * + 86 * + - COUNT ( * ) AS col1
----
-42140

query I rowsort
SELECT ALL - 59 + + - 91
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT ALL + 96 + 51 + + - CASE - 82 WHEN + 19 + + CAST( COUNT( * ) AS SIGNED ) + - NULLIF ( - 50, - 76 ) * 33 THEN + 1 WHEN 74 * 88 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL + 96 + 51 + + - CASE - 82 WHEN + 19 + + CAST ( COUNT ( * ) AS INTEGER ) + - NULLIF ( - 50, - 76 ) * 33 THEN + 1 WHEN 74 * 88 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 11 + - 79
----
-68

query II rowsort
SELECT ALL + 97 + - 26 + + 24 - + 9 * + 91 * 43 AS col1, - 25 * - 55 + - ( NULLIF ( + 99, 91 ) )
----
-35122
1276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4442
SELECT DISTINCT - 79 + + - 38 + + 66 + 59 AS col1, CAST( NULL AS SIGNED ) AS col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-4442
SELECT DISTINCT - 79 + + - 38 + + 66 + 59 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
8
NULL

query II rowsort
SELECT ALL 5, - 39 + - 44 AS col2
----
5
-83

query II rowsort
SELECT - 6 AS col2, + 76 + - 72 AS col1
----
-6
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT 6 + - CASE 96 WHEN COUNT( * ) THEN NULL WHEN - 58 * 50 - 15 + 27 + 78 THEN - 0 WHEN - 44 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT 6 + - CASE 96 WHEN COUNT ( * ) THEN NULL WHEN - 58 * 50 - 15 + 27 + 78 THEN - 0 WHEN - 44 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 70 * 65
----
4550

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4448
SELECT ALL - 83 * + 20 * + CAST( - 79 AS SIGNED ) AS col2, 44 * - + 48 * + 12 AS col2
----
131140
-25344

skipif mysql # not compatible
query II rowsort label-4448
SELECT ALL - 83 * + 20 * + CAST ( - 79 AS INTEGER ) AS col2, 44 * - + 48 * + 12 AS col2
----
131140
-25344

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT - 68 DIV - - 2 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4449
SELECT - 68 / - - 2 AS col1
----
-34

query I rowsort
SELECT ALL - 72 - - 34
----
-38

query II rowsort
SELECT DISTINCT - - 10 * + 41 * - 13, 7 + + 85 AS col0
----
-5330
92

query II rowsort
SELECT 76, ( + - 82 ) AS col1
----
76
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT DISTINCT + CASE ( + ( COALESCE ( - + 73, + - 48 ) ) ) WHEN + CAST( NULL AS SIGNED ) * - 25 THEN NULL WHEN COALESCE ( - 49, 53, + 33 ) THEN NULL ELSE + 28 * + ( 2 ) END * + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT + CASE ( + ( COALESCE ( - + 73, + - 48 ) ) ) WHEN + CAST ( NULL AS INTEGER ) * - 25 THEN NULL WHEN COALESCE ( - 49, 53, + 33 ) THEN NULL ELSE + 28 * + ( 2 ) END * + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL - ( - COUNT( - - 87 ) ) * + MIN( + 93 ) - + 82 + - 49
----
-38

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL - ( - COUNT ( - - 87 ) ) * + MIN ( + 93 ) - + 82 + - 49
----
-38

query I rowsort
SELECT + 34 - - 32
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT + NULLIF ( 58, 74 ) DIV + 5 col2
----
11

skipif mysql # not compatible
query I rowsort label-4456
SELECT + NULLIF ( 58, 74 ) / + 5 col2
----
11

query II rowsort
SELECT 51 AS col1, - CASE + + 97 WHEN + 41 THEN - 39 / - 61 + - 47 END AS col1
----
51
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT CAST( - 85 AS SIGNED ) - - 36 - 55 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-4458
SELECT CAST ( - 85 AS INTEGER ) - - 36 - 55 AS col2
----
-104

query I rowsort
SELECT + 17 * 10
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT MIN( ALL ( + + 14 ) ), 18 * + + 49 * COUNT( * ) + COUNT( * ) AS col2
----
14
883

skipif mysql # not compatible
query II rowsort label-4460
SELECT MIN ( ALL ( + + 14 ) ), 18 * + + 49 * COUNT ( * ) + COUNT ( * ) AS col2
----
14
883

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4461
SELECT + 80 AS col1, + CAST( - ( - 45 ) AS SIGNED )
----
80
45

skipif mysql # not compatible
query II rowsort label-4461
SELECT + 80 AS col1, + CAST ( - ( - 45 ) AS INTEGER )
----
80
45

query I rowsort
SELECT ALL - - 45 col0
----
45

query II rowsort
SELECT ALL - 67, - 37 AS col0
----
-67
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT - 84 * + - CAST( NULL AS SIGNED ) * - 97 + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT - 84 * + - CAST ( NULL AS INTEGER ) * - 97 + 62 AS col0
----
NULL

query II rowsort
SELECT ALL - - 54 AS col2, + 92
----
54
92

query I rowsort
SELECT ALL - - 28
----
28

query II rowsort
SELECT ALL - - 67 AS col2, + ( 50 ) AS col1
----
67
50

query II rowsort
SELECT DISTINCT - + 76 AS col1, 16
----
-76
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4469
SELECT ALL 60 * 59 DIV + 72 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL 60 * 59 / + 72 AS col2
----
49

query I rowsort
SELECT 20 + - 84
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT 30 + + COALESCE ( + - 96, + + COUNT( * ) ) + - 11 + NULLIF ( 6, - - 60 * - MAX( 37 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-4471
SELECT 30 + + COALESCE ( + - 96, + + COUNT ( * ) ) + - 11 + NULLIF ( 6, - - 60 * - MAX ( 37 ) )
----
-71

query I rowsort
SELECT ALL 12 * + 71
----
852

query I rowsort
SELECT ( + 46 ) - - 6 * - 23 + + - 72
----
-164

query I rowsort
SELECT ALL 6 + - 26 AS col1
----
-20

query II rowsort
SELECT ALL 64 + + 77 AS col1, ( - 58 ) - + 31 * - 6 AS col1
----
141
128

query I rowsort
SELECT ALL 76 * - 78 * + 64
----
-379392

query I rowsort
SELECT 62 * - + 49
----
-3038

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ( - - 20 ) + 15 * - 31 + 86 + - AVG ( - 77 ) * + 16 / - CASE 19 WHEN 16 THEN 90 * AVG ( 44 ) WHEN - 38 + 41 THEN COUNT( * ) * - 61 + 14 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT ( - - 20 ) + 15 * - 31 + 86 + - AVG ( - 77 ) * + 16 / - CASE 19 WHEN 16 THEN 90 * AVG ( 44 ) WHEN - 38 + 41 THEN COUNT ( * ) * - 61 + 14 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4479
SELECT ALL 70 + - - 61, COUNT( * ) col0
----
131
1

skipif mysql # not compatible
query II rowsort label-4479
SELECT ALL 70 + - - 61, COUNT ( * ) col0
----
131
1

query I rowsort
SELECT ALL 46 + 35 * + 75 * 30 + + 61 AS col0
----
78857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT 52 + - CAST( + 83 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-4481
SELECT 52 + - CAST ( + 83 AS INTEGER )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT DISTINCT 63 DIV - - 11 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT 63 / - - 11 AS col0
----
5

query I rowsort
SELECT 97 * - ( + 20 ) AS col2
----
-1940

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT DISTINCT COUNT( * ) + 96
----
97

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT COUNT ( * ) + 96
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4485
SELECT ALL 98 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL 98 * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT 6 DIV + ( 85 )
----
0

skipif mysql # not compatible
query I rowsort label-4486
SELECT 6 / + ( 85 )
----
0

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

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

query I rowsort
SELECT ALL 26 * 16 * + 95 * - ( - + 94 ) col1
----
3714880

query I rowsort
SELECT 77 + + 74
----
151

query I rowsort
SELECT ALL - 26 * + 74 + 54 AS col2
----
-1870

onlyif mysql # aggregate syntax: 
query II rowsort label-4491
SELECT + 19 + COALESCE ( - + 74, + - 29 ), + MIN( DISTINCT - ( - 29 ) ) + 63 AS col0
----
-55
92

skipif mysql # not compatible
query II rowsort label-4491
SELECT + 19 + COALESCE ( - + 74, + - 29 ), + MIN ( DISTINCT - ( - 29 ) ) + 63 AS col0
----
-55
92

query I rowsort
SELECT + 93 * - - 35 AS col2
----
3255

query I rowsort
SELECT - 15 * + 34 - + - 25
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL + + CASE + COUNT( ALL - 59 ) WHEN - 89 THEN - 79 WHEN - - 31 - - 81 / + + 13 * + 8 + + 86 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL + + CASE + COUNT ( ALL - 59 ) WHEN - 89 THEN - 79 WHEN - - 31 - - 81 / + + 13 * + 8 + + 86 THEN COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT - 28 DIV - 17 + 1
----
2

skipif mysql # not compatible
query I rowsort label-4495
SELECT - 28 / - 17 + 1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT - 59 * 57 * + + COUNT( * ) + ( - + 79 )
----
-3442

skipif mysql # not compatible
query I rowsort label-4496
SELECT - 59 * 57 * + + COUNT ( * ) + ( - + 79 )
----
-3442

onlyif mysql # aggregate syntax: 
query II rowsort label-4497
SELECT ALL - - 32 * - ( + + 89 ) * - 6 AS col2, COUNT( * ) + + 19
----
17088
20

skipif mysql # not compatible
query II rowsort label-4497
SELECT ALL - - 32 * - ( + + 89 ) * - 6 AS col2, COUNT ( * ) + + 19
----
17088
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT - 36 * COUNT( * ) + - - 79 + 85 + - - CAST( NULL AS SIGNED ) + 55 + - 68 * + MAX( DISTINCT - 12 ) + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT - 36 * COUNT ( * ) + - - 79 + 85 + - - CAST ( NULL AS INTEGER ) + 55 + - 68 * + MAX ( DISTINCT - 12 ) + 34
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 16, - + 28 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL - + 98 * 4 + 86 + 57 * COUNT( * ) + - + 4 + - 56 + - CASE WHEN NULL IS NOT NULL THEN - COUNT( * ) END * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL - + 98 * 4 + 86 + 57 * COUNT ( * ) + - + 4 + - 56 + - CASE WHEN NULL IS NOT NULL THEN - COUNT ( * ) END * 45
----
NULL

query I rowsort
SELECT DISTINCT + + 90 * 5
----
450

onlyif mysql # aggregate syntax: 
query II rowsort label-4502
SELECT ALL - + COALESCE ( 61, - 26 ) * + 54 AS col1, + MIN( 15 ) AS col1
----
-3294
15

skipif mysql # not compatible
query II rowsort label-4502
SELECT ALL - + COALESCE ( 61, - 26 ) * + 54 AS col1, + MIN ( 15 ) AS col1
----
-3294
15

query I rowsort
SELECT + 15 * + 49 * + 0 + ( - + 82 ) * + 23
----
-1886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4504
SELECT ALL + NULLIF ( - + CASE + COALESCE ( - AVG ( - + 24 ), + 17 ) WHEN 32 THEN - + 69 * - CAST( NULL AS SIGNED ) * CASE 64 WHEN + 33 THEN NULL WHEN + 12 * + CAST( NULL AS SIGNED ) THEN COUNT( * ) ELSE 46 END + + 0 WHEN 37 + 46 THEN NULL END, + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL + NULLIF ( - + CASE + COALESCE ( - AVG ( - + 24 ), + 17 ) WHEN 32 THEN - + 69 * - CAST ( NULL AS INTEGER ) * CASE 64 WHEN + 33 THEN NULL WHEN + 12 * + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) ELSE 46 END + + 0 WHEN 37 + 46 THEN NULL END, + 95 )
----
NULL

query I rowsort
SELECT DISTINCT 96 * 15 + + + 25 + 67 * - + 93 * 66 AS col2
----
-409781

query I rowsort
SELECT - 77 * - + 45
----
3465

query I rowsort
SELECT ( - 24 ) * 31 * - - 68 + - 11 AS col0
----
-50603

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4509
SELECT ALL 70 * - COALESCE ( - COUNT( * ), 18 * + 69 - CAST( + ( ( 50 ) ) AS SIGNED ) ) + + 78 + - COUNT( * ) AS col0
----
147

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL 70 * - COALESCE ( - COUNT ( * ), 18 * + 69 - CAST ( + ( ( 50 ) ) AS INTEGER ) ) + + 78 + - COUNT ( * ) AS col0
----
147

query I rowsort
SELECT ALL 58 * + + 66
----
3828

query I rowsort
SELECT + 64 + 96
----
160

query I rowsort
SELECT ALL - 96 + + - 75 AS col2
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT COUNT( * ) AS col0, - 78 * - - 30 + + 9 * - COALESCE ( + 41, - - 20, + 14 - - 73 * - + COUNT( * ) ) * + 38
----
1
-16362

skipif mysql # not compatible
query II rowsort label-4513
SELECT COUNT ( * ) AS col0, - 78 * - - 30 + + 9 * - COALESCE ( + 41, - - 20, + 14 - - 73 * - + COUNT ( * ) ) * + 38
----
1
-16362

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

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

query I rowsort
SELECT ALL - 78 + - 9 - 27 + + 66 AS col1
----
-48

query I rowsort
SELECT - 11 - + - 9 + + 48 * ( 93 ) + - 33 * 43
----
3043

query I rowsort
SELECT ALL 22 * - - 96
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT + COUNT( * ) + + - COUNT( * ) * - NULLIF ( 2, + NULLIF ( 33, 85 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4518
SELECT + COUNT ( * ) + + - COUNT ( * ) * - NULLIF ( 2, + NULLIF ( 33, 85 ) ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT - SUM( 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4519
SELECT - SUM ( 79 ) AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT + 10 + COALESCE ( - CAST( 90 AS SIGNED ), - 93 ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-4520
SELECT + 10 + COALESCE ( - CAST ( 90 AS INTEGER ), - 93 ) col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL COUNT( * ) - - 94 + - + 40 * - MIN( DISTINCT + ( 99 ) ) * - NULLIF ( ( + NULLIF ( + 72, 0 ) ), 32 )
----
-285025

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL COUNT ( * ) - - 94 + - + 40 * - MIN ( DISTINCT + ( 99 ) ) * - NULLIF ( ( + NULLIF ( + 72, 0 ) ), 32 )
----
-285025

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

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

query III rowsort
SELECT ALL ( COALESCE ( 14, + ( + - 8 ) ) ) AS col0, + 38 AS col0, - + 70 + + 63
----
14
38
-7

query I rowsort
SELECT DISTINCT + 52 * 53
----
2756

query II rowsort
SELECT + + 77 - + 15 + + 17, + 94 - + 3 + + + 89 AS col2
----
79
180

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT ALL + 66 DIV - - 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + 66 / - - 64 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT - 89 DIV + - 66 + + 52 - 0 * + 12 col2
----
53

skipif mysql # not compatible
query I rowsort label-4527
SELECT - 89 / + - 66 + + 52 - 0 * + 12 col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4528
SELECT + + 17 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-4528
SELECT + + 17 / - 97
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT ALL CAST( NULL AS SIGNED ) / + 30 + + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL CAST ( NULL AS INTEGER ) / + 30 + + 56 AS col2
----
NULL

query I rowsort
SELECT + 16 * + ( + 67 ) * - 84 + + - 43 * + 43 col1
----
-91897

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT + MAX( - CASE - + 50 WHEN + 85 THEN + 88 * 80 + + 24 ELSE + 63 END ) * 15 AS col0
----
-945

skipif mysql # not compatible
query I rowsort label-4531
SELECT + MAX ( - CASE - + 50 WHEN + 85 THEN + 88 * 80 + + 24 ELSE + 63 END ) * 15 AS col0
----
-945

query II rowsort
SELECT ALL - 27 AS col0, - 74 AS col1
----
-27
-74

query I rowsort
SELECT DISTINCT + 72 * + 29
----
2088

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT DISTINCT - 81 * + COALESCE ( - - 73, COUNT( * ) ) + + + 72 + 57 - - + 52
----
-5732

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT - 81 * + COALESCE ( - - 73, COUNT ( * ) ) + + + 72 + 57 - - + 52
----
-5732

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + SUM( + 16 ) * - 89 AS col2
----
-1424

skipif mysql # not compatible
query I rowsort label-4537
SELECT + SUM ( + 16 ) * - 89 AS col2
----
-1424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4538
SELECT DISTINCT - 37 / - ( + - CAST( + 37 AS SIGNED ) ) + 51 + - CASE 46 WHEN - - 9 THEN + ( SUM( DISTINCT 33 ) ) ELSE NULL END / 76 * + 33 + COUNT( * ) * - 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - 37 / - ( + - CAST ( + 37 AS INTEGER ) ) + 51 + - CASE 46 WHEN - - 9 THEN + ( SUM ( DISTINCT 33 ) ) ELSE NULL END / 76 * + 33 + COUNT ( * ) * - 62 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4539
SELECT COALESCE ( + 46, - - 61 - - COALESCE ( CAST( COUNT( * ) AS SIGNED ), - COUNT( * ) * - 6 + + CASE 27 WHEN + 14 * CASE 6 WHEN + 43 THEN NULL WHEN 99 THEN NULL WHEN - COUNT( * ) THEN 65 DIV 88 END THEN 11 WHEN 6 * + 99 THEN NULL ELSE 96 END DIV COUNT( ALL - 70 ) ) + SUM( DISTINCT 96 + 18 ) * COUNT( * ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4539
SELECT COALESCE ( + 46, - - 61 - - COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), - COUNT ( * ) * - 6 + + CASE 27 WHEN + 14 * CASE 6 WHEN + 43 THEN NULL WHEN 99 THEN NULL WHEN - COUNT ( * ) THEN 65 / 88 END THEN 11 WHEN 6 * + 99 THEN NULL ELSE 96 END / COUNT ( ALL - 70 ) ) + SUM ( DISTINCT 96 + 18 ) * COUNT ( * ) ) AS col2
----
46

query I rowsort
SELECT + 32 - - 23 AS col2
----
55

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4542
SELECT - 17 * - 1 * - CAST( - 74 AS SIGNED ) + 61 + ( + 79 ) * 31 AS col0
----
3768

skipif mysql # not compatible
query I rowsort label-4542
SELECT - 17 * - 1 * - CAST ( - 74 AS INTEGER ) + 61 + ( + 79 ) * 31 AS col0
----
3768

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

skipif mysql # not compatible
query I rowsort label-4543
SELECT - SUM ( + + 44 )
----
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT - COUNT( * ) * 35 + - 68 + - 30 * 53 * + 65
----
-103453

skipif mysql # not compatible
query I rowsort label-4545
SELECT - COUNT ( * ) * 35 + - 68 + - 30 * 53 * + 65
----
-103453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4546
SELECT ALL ( MIN( ALL ( 59 ) ) ) * - CASE + CASE - MIN( ALL + + 32 ) WHEN 22 THEN + 58 END WHEN - 35 + ( 87 + 72 ) THEN 4 WHEN SUM( ALL + COALESCE ( - 71, 40 * - 24, 31 ) ) / COUNT( 62 ) THEN NULL END + - CAST( 81 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL ( MIN ( ALL ( 59 ) ) ) * - CASE + CASE - MIN ( ALL + + 32 ) WHEN 22 THEN + 58 END WHEN - 35 + ( 87 + 72 ) THEN 4 WHEN SUM ( ALL + COALESCE ( - 71, 40 * - 24, 31 ) ) / COUNT ( 62 ) THEN NULL END + - CAST ( 81 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT + CAST( + 96 AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4547
SELECT + CAST ( + 96 AS INTEGER ) AS col0
----
96

query I rowsort
SELECT ALL 66 * + - ( 66 ) + 9 AS col1
----
-4347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4549
SELECT SUM( - + 0 ) DIV 65 + 39 - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-4549
SELECT SUM ( - + 0 ) / 65 + 39 - COUNT ( * )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4550
SELECT ALL + 91 AS col0, CAST( NULL AS SIGNED ) + - + MAX( + 84 ) * - 98 * + 96 * 6 AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-4550
SELECT ALL + 91 AS col0, CAST ( NULL AS INTEGER ) + - + MAX ( + 84 ) * - 98 * + 96 * 6 AS col2
----
91
NULL

query II rowsort
SELECT DISTINCT + 45 * 86 + + 83 + + + 25 AS col1, 56 AS col1
----
3978
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4552
SELECT DISTINCT + 39, + COUNT( * ) * - + COALESCE ( + + 52, + - 7, ( + + 58 ) ) DIV + - 88 * + + 53 * - CAST( + 41 AS SIGNED ) AS col0
----
39
0

skipif mysql # not compatible
query II rowsort label-4552
SELECT DISTINCT + 39, + COUNT ( * ) * - + COALESCE ( + + 52, + - 7, ( + + 58 ) ) / + - 88 * + + 53 * - CAST ( + 41 AS INTEGER ) AS col0
----
39
0

query I rowsort
SELECT 46 * - 81 + - + 9 AS col2
----
-3735

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4554
SELECT + CAST( NULL AS SIGNED ) AS col0, + 90 * - 99 AS col0
----
NULL
-8910

skipif mysql # not compatible
query II rowsort label-4554
SELECT + CAST ( NULL AS INTEGER ) AS col0, + 90 * - 99 AS col0
----
NULL
-8910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT NULLIF ( - ( + + 17 ), - ( COUNT( * ) ) - - 74 / - + 88 + + ( - + CASE - COALESCE ( - 29, 11, 85 * - CASE 37 WHEN + 21 THEN + COUNT( * ) END, + 93 * + CASE 48 WHEN + 28 THEN NULL WHEN 45 THEN 67 * - 24 + - CAST( 35 AS SIGNED ) ELSE NULL END ) WHEN 12 / COUNT( * ) THEN 31 ELSE NULL END ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4555
SELECT NULLIF ( - ( + + 17 ), - ( COUNT ( * ) ) - - 74 / - + 88 + + ( - + CASE - COALESCE ( - 29, 11, 85 * - CASE 37 WHEN + 21 THEN + COUNT ( * ) END, + 93 * + CASE 48 WHEN + 28 THEN NULL WHEN 45 THEN 67 * - 24 + - CAST ( 35 AS INTEGER ) ELSE NULL END ) WHEN 12 / COUNT ( * ) THEN 31 ELSE NULL END ) ) AS col1
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4556
SELECT - NULLIF ( 58, + + 38 ) + - - 17 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT - NULLIF ( 58, + + 38 ) + - - 17 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4557
SELECT - CAST( NULL AS SIGNED ) * - - 76, 58 * 86 col2, + COUNT( * ) AS col2
----
NULL
4988
1

skipif mysql # not compatible
query III rowsort label-4557
SELECT - CAST ( NULL AS INTEGER ) * - - 76, 58 * 86 col2, + COUNT ( * ) AS col2
----
NULL
4988
1

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

query I rowsort
SELECT - 87 + + 95 AS col1
----
8

query I rowsort
SELECT - 93 - 42 AS col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT NULLIF ( 96, - + 48 / MAX( ALL + 93 ) / 91 * 90 * + 49 + 25 + 88 + + ( 22 ) * + 45 ) col2
----
96

skipif mysql # not compatible
query I rowsort label-4561
SELECT NULLIF ( 96, - + 48 / MAX ( ALL + 93 ) / 91 * 90 * + 49 + 25 + 88 + + ( 22 ) * + 45 ) col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT ALL + COUNT( * ) DIV + - COALESCE ( - - 82, 46, - - 18 + COUNT( * ) + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL + COUNT ( * ) / + - COALESCE ( - - 82, 46, - - 18 + COUNT ( * ) + 77 )
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT - 33 + + NULLIF ( CAST( NULL AS SIGNED ), - - CASE 28 WHEN - ( + 92 ) - - 64 THEN - 59 ELSE 51 + AVG ( DISTINCT + 63 ) END ) * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT - 33 + + NULLIF ( CAST ( NULL AS INTEGER ), - - CASE 28 WHEN - ( + 92 ) - - 64 THEN - 59 ELSE 51 + AVG ( DISTINCT + 63 ) END ) * 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT COUNT( * ) * 13 * 23 AS col0
----
299

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT COUNT ( * ) * 13 * 23 AS col0
----
299

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

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

query I rowsort
SELECT - 78 * - 82 + - 80 AS col1
----
6316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT + NULLIF ( + NULLIF ( - 7, + - 15 + + - 92 + - - CAST( NULL AS SIGNED ) ), + 97 ) * + - 21 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-4568
SELECT + NULLIF ( + NULLIF ( - 7, + - 15 + + - 92 + - - CAST ( NULL AS INTEGER ) ), + 97 ) * + - 21 AS col0
----
147

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

skipif mysql # not compatible
query I rowsort label-4569
SELECT - - COUNT ( * ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL MIN( 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL MIN ( 56 )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4571
SELECT + 14 + + NULLIF ( - MAX( 69 ), ( + 57 ) ) AS col1, + CASE - - COUNT( * ) WHEN + 42 THEN 91 WHEN - - 33 + 79 THEN + 18 ELSE 10 END + + 12
----
-55
22

skipif mysql # not compatible
query II rowsort label-4571
SELECT + 14 + + NULLIF ( - MAX ( 69 ), ( + 57 ) ) AS col1, + CASE - - COUNT ( * ) WHEN + 42 THEN 91 WHEN - - 33 + 79 THEN + 18 ELSE 10 END + + 12
----
-55
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT 83 * - - 87 * + - SUM( 1 ) AS col0
----
-7221

skipif mysql # not compatible
query I rowsort label-4572
SELECT 83 * - - 87 * + - SUM ( 1 ) AS col0
----
-7221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT ALL - 43 * - 33 + + - CAST( NULL AS SIGNED ) * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL - 43 * - 33 + + - CAST ( NULL AS INTEGER ) * - 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4574
SELECT ALL - COUNT( * ) col1, 74
----
-1
74

skipif mysql # not compatible
query II rowsort label-4574
SELECT ALL - COUNT ( * ) col1, 74
----
-1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT - - CASE + 29 WHEN + 3 THEN - COUNT( * ) WHEN + 28 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT - - CASE + 29 WHEN + 3 THEN - COUNT ( * ) WHEN + 28 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL - - CAST( - 15 AS SIGNED ) + - NULLIF ( - 10, + + 92 / - + 65 + - 43 - + - 95 ) - - 65
----
60

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - - CAST ( - 15 AS INTEGER ) + - NULLIF ( - 10, + + 92 / - + 65 + - 43 - + - 95 ) - - 65
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL + 99 * - - NULLIF ( - 26, - AVG ( DISTINCT 13 ) ) - - + COUNT( - CAST( NULL AS SIGNED ) )
----
-2574

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL + 99 * - - NULLIF ( - 26, - AVG ( DISTINCT 13 ) ) - - + COUNT ( - CAST ( NULL AS INTEGER ) )
----
-2574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT ALL 81 + + - 13 * 41 * COALESCE ( - 58, - 60, - ( + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) )
----
30995

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL 81 + + - 13 * 41 * COALESCE ( - 58, - 60, - ( + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) )
----
30995

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4579
SELECT 63 + - 3 * - + ( - + CASE - + CAST( NULL AS DECIMAL ) WHEN + CAST( - - ( - - 38 ) AS DECIMAL ) THEN NULL ELSE + 60 END )
----
-117

skipif mysql # not compatible
query I rowsort label-4579
SELECT 63 + - 3 * - + ( - + CASE - + CAST ( NULL AS REAL ) WHEN + CAST ( - - ( - - 38 ) AS REAL ) THEN NULL ELSE + 60 END )
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-4580
SELECT ALL ( + - 77 ) + + 65 * ( + COUNT( * ) ) * - 27, COUNT( ALL 76 ) * 84 + 13 AS col1
----
-1832
97

skipif mysql # not compatible
query II rowsort label-4580
SELECT ALL ( + - 77 ) + + 65 * ( + COUNT ( * ) ) * - 27, COUNT ( ALL 76 ) * 84 + 13 AS col1
----
-1832
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4581
SELECT - 64 + + + 9, 41 + - - COUNT( * ) AS col0
----
-55
42

skipif mysql # not compatible
query II rowsort label-4581
SELECT - 64 + + + 9, 41 + - - COUNT ( * ) AS col0
----
-55
42

query I rowsort
SELECT ALL 33 + 66 + - - 57 AS col1
----
156

query I rowsort
SELECT 96 + + - 75
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT - MIN( ALL + - 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT - MIN ( ALL + - 68 ) AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT ALL + 17 DIV 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL + 17 / 39 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4586
SELECT 53 DIV + COUNT( * ) + - ( 24 )
----
29

skipif mysql # not compatible
query I rowsort label-4586
SELECT 53 / + COUNT ( * ) + - ( 24 )
----
29

query II rowsort
SELECT 47 * - 93 * 85 + + 14 AS col2, + 89
----
-371521
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4588
SELECT NULLIF ( - 43, + COUNT( * ) ) DIV COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-4588
SELECT NULLIF ( - 43, + COUNT ( * ) ) / COUNT ( * )
----
-43

query I rowsort
SELECT ALL + 67 + - 95 + + - COALESCE ( - 55, - 95 ) + + - 2 * 37 * - NULLIF ( - 50, 4 ) AS col0
----
-3673

query I rowsort
SELECT 65 * + + 78 + + 86
----
5156

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT ALL 22 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL 22 / + 41
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4592
SELECT + COUNT( * ) * - COUNT( * ) * + COALESCE ( - - 59, + - CAST( NULL AS SIGNED ) + - COUNT( * ) ) + + 50 + - 98 DIV - + 21 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4592
SELECT + COUNT ( * ) * - COUNT ( * ) * + COALESCE ( - - 59, + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) + + 50 + - 98 / - + 21 AS col1
----
-5

query I rowsort
SELECT ALL 83 * - + 61 AS col1
----
-5063

query II rowsort
SELECT ALL 42 + - 38, 34 AS col0
----
4
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL 53 + NULLIF ( - 97, + MAX( - + ( ( 84 ) ) ) )
----
-44

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL 53 + NULLIF ( - 97, + MAX ( - + ( ( 84 ) ) ) )
----
-44

query I rowsort
SELECT ( ( 6 ) ) + 73 * - 23
----
-1673

query I rowsort
SELECT ALL 29 - - + 44 AS col0
----
73

query I rowsort
SELECT NULLIF ( 2, - 47 - + 76 ) * - 31
----
-62

query I rowsort
SELECT 69 * + + 47 + 16
----
3259

query I rowsort
SELECT DISTINCT 41 - + COALESCE ( 81, - 44, 37 + 98 + + 90 )
----
-40

query I rowsort
SELECT DISTINCT - NULLIF ( - 63, + ( - + ( - 59 ) ) * 99 + - 45 + 58 + - 28 + - 48 * + - 13 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4602
SELECT ALL - COUNT( ALL - - CAST( + + 40 AS SIGNED ) ) - - + 24 + 0
----
23

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL - COUNT ( ALL - - CAST ( + + 40 AS INTEGER ) ) - - + 24 + 0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4603
SELECT DISTINCT + 24 DIV + + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT + 24 / + + COUNT ( * )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT 90 DIV + 56
----
1

skipif mysql # not compatible
query I rowsort label-4604
SELECT 90 / + 56
----
1

query I rowsort
SELECT 96 + 6 * + 76 AS col1
----
552

query I rowsort
SELECT 6 + 59 - + 96 AS col2
----
-31

query I rowsort
SELECT ALL - 16 * 10 * + - ( - - 50 )
----
8000

onlyif mysql # DIV for integer division: 
query II rowsort label-4608
SELECT 80 DIV + 36 AS col1, - 51 + + 84 - - 12
----
2
45

skipif mysql # not compatible
query II rowsort label-4608
SELECT 80 / + 36 AS col1, - 51 + + 84 - - 12
----
2
45

query I rowsort
SELECT 15 * 66
----
990

query II rowsort
SELECT ALL - 7 * + 54, + 45 - - 27 AS col0
----
-378
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4611
SELECT + CAST( NULL AS SIGNED ) * - COUNT( ALL + + 14 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( ALL + + 14 ) * + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL + 64 * + 38 col2, + 90 col1
----
2432
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT ( - 53 ) DIV - - 29
----
-1

skipif mysql # not compatible
query I rowsort label-4613
SELECT ( - 53 ) / - - 29
----
-1

query II rowsort
SELECT ALL - + 0 + 67 AS col0, + 86
----
67
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT + 12 * COALESCE ( - 1, + MIN( + 49 ) + + - 0 * + 78 + + 45, + CASE - COUNT( * ) WHEN - 26 * 71 THEN 19 END * - 16, 12 * 98 )
----
-12

skipif mysql # not compatible
query I rowsort label-4615
SELECT + 12 * COALESCE ( - 1, + MIN ( + 49 ) + + - 0 * + 78 + + 45, + CASE - COUNT ( * ) WHEN - 26 * 71 THEN 19 END * - 16, 12 * 98 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT ALL + CAST( NULL AS SIGNED ) + ( - + 74 ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + CAST ( NULL AS INTEGER ) + ( - + 74 ) * + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT - 45 + - 81 + - SUM( + 34 ) AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - 45 + - 81 + - SUM ( + 34 ) AS col2
----
-160

query I rowsort
SELECT 77 * + 76 * ( + 23 ) AS col2
----
134596

query I rowsort
SELECT - NULLIF ( + 50, + 41 ) AS col1
----
-50

query II rowsort
SELECT ALL - 62 + + 7 AS col2, 78 col1
----
-55
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT + 71 + - + COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4621
SELECT + 71 + - + COUNT ( * ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4622
SELECT ALL + - COUNT( * ) * + + ( - + 28 ) AS col0, 91 AS col0
----
28
91

skipif mysql # not compatible
query II rowsort label-4622
SELECT ALL + - COUNT ( * ) * + + ( - + 28 ) AS col0, 91 AS col0
----
28
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4623
SELECT ( + CAST( - - COUNT( * ) AS SIGNED ) ) * - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4623
SELECT ( + CAST ( - - COUNT ( * ) AS INTEGER ) ) * - - COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT ALL - + 54 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL - + 54 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4625
SELECT 10 DIV - - 95 - 89 + + 38 * - 25 * COUNT( * ) + 74 + 4 * - 4 AS col0
----
-981

skipif mysql # not compatible
query I rowsort label-4625
SELECT 10 / - - 95 - 89 + + 38 * - 25 * COUNT ( * ) + 74 + 4 * - 4 AS col0
----
-981

query I rowsort
SELECT 81 * + 96 col0
----
7776

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4627
SELECT DISTINCT - 16, - CAST( - 51 AS SIGNED ) AS col2
----
-16
51

skipif mysql # not compatible
query II rowsort label-4627
SELECT DISTINCT - 16, - CAST ( - 51 AS INTEGER ) AS col2
----
-16
51

query I rowsort
SELECT 55 + + - 48
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT + COUNT( - 38 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4629
SELECT + COUNT ( - 38 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4630
SELECT ALL 82 DIV COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL 82 / COUNT ( * )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT 0 DIV - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4631
SELECT 0 / - 98 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4632
SELECT ALL 0 DIV + ( 55 ), 73 AS col0
----
0
73

skipif mysql # not compatible
query II rowsort label-4632
SELECT ALL 0 / + ( 55 ), 73 AS col0
----
0
73

query I rowsort
SELECT 71 * 13 * - + 42 col1
----
-38766

onlyif mysql # aggregate syntax: 
query II rowsort label-4634
SELECT ALL - 45 AS col0, - COUNT( * ) + + 55 - - - 42 AS col1
----
-45
12

skipif mysql # not compatible
query II rowsort label-4634
SELECT ALL - 45 AS col0, - COUNT ( * ) + + 55 - - - 42 AS col1
----
-45
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT CASE - - COUNT( * ) WHEN AVG ( DISTINCT + 90 ) + + + 51 + + 87 + + 19 * COALESCE ( 92, + - 13 * 62 + - 29, - + 79 ) THEN NULL ELSE MAX( - 16 ) END * COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-4635
SELECT CASE - - COUNT ( * ) WHEN AVG ( DISTINCT + 90 ) + + + 51 + + 87 + + 19 * COALESCE ( 92, + - 13 * 62 + - 29, - + 79 ) THEN NULL ELSE MAX ( - 16 ) END * COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT MAX( ALL + - 45 ) * - - 33 AS col1
----
-1485

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT MAX ( ALL + - 45 ) * - - 33 AS col1
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT ( - 24 ) - - + SUM( 62 )
----
38

skipif mysql # not compatible
query I rowsort label-4637
SELECT ( - 24 ) - - + SUM ( 62 )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4638
SELECT DISTINCT - 38 AS col1, COUNT( * ) * + + 26 AS col2
----
-38
26

skipif mysql # not compatible
query II rowsort label-4638
SELECT DISTINCT - 38 AS col1, COUNT ( * ) * + + 26 AS col2
----
-38
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4639
SELECT 20 * + 24 + + + ( - + 23 ) AS col0, SUM( - + ( + 76 ) ) + - - 71 AS col2
----
457
-5

skipif mysql # not compatible
query II rowsort label-4639
SELECT 20 * + 24 + + + ( - + 23 ) AS col0, SUM ( - + ( + 76 ) ) + - - 71 AS col2
----
457
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4640
SELECT + 44 AS col2, 90 + COUNT( * ) - + + 63
----
44
28

skipif mysql # not compatible
query II rowsort label-4640
SELECT + 44 AS col2, 90 + COUNT ( * ) - + + 63
----
44
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT MIN( 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4641
SELECT MIN ( 81 ) AS col1
----
81

query I rowsort
SELECT + NULLIF ( ( - - 48 ), + 77 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT + 16 * - SUM( DISTINCT + 93 ) * - COUNT( * ) col2
----
1488

skipif mysql # not compatible
query I rowsort label-4643
SELECT + 16 * - SUM ( DISTINCT + 93 ) * - COUNT ( * ) col2
----
1488

query I rowsort
SELECT - 21 * + 36 AS col2
----
-756

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT - 80 - 30 DIV - - 80 * + - 5 * + 85
----
-80

skipif mysql # not compatible
query I rowsort label-4645
SELECT - 80 - 30 / - - 80 * + - 5 * + 85
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL 52 + MIN( 41 )
----
93

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL 52 + MIN ( 41 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4647
SELECT ALL + 79, + COUNT( * ) * - 84 * - + 15 AS col2
----
79
1260

skipif mysql # not compatible
query II rowsort label-4647
SELECT ALL + 79, + COUNT ( * ) * - 84 * - + 15 AS col2
----
79
1260

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT DISTINCT 82 AS col1, + COUNT( * )
----
82
1

skipif mysql # not compatible
query II rowsort label-4648
SELECT DISTINCT 82 AS col1, + COUNT ( * )
----
82
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL - - 73 + 22 - - 61 + - + CASE WHEN - COALESCE ( - CASE - 10 WHEN - - 64 * + - 19 * + + 89 + - 8 + 18 / - 3 - - 37 THEN NULL WHEN 1 THEN - 35 + 84 / + 31 END, COALESCE ( + NULLIF ( COALESCE ( 27, - 65 * COUNT( - 86 ) ), - 52 ), - 3 ) ) IS NOT NULL THEN - 47 END
----
203

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - - 73 + 22 - - 61 + - + CASE WHEN - COALESCE ( - CASE - 10 WHEN - - 64 * + - 19 * + + 89 + - 8 + 18 / - 3 - - 37 THEN NULL WHEN 1 THEN - 35 + 84 / + 31 END, COALESCE ( + NULLIF ( COALESCE ( 27, - 65 * COUNT ( - 86 ) ), - 52 ), - 3 ) ) IS NOT NULL THEN - 47 END
----
203

query I rowsort
SELECT + - 21 * - - 16 - + 55 + 43 AS col2
----
-348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4651
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 52 + 21 + - NULLIF ( + 33, + 58 * 57 * - + COUNT( ALL + 28 ) + - 22 ) / 78 * - 96 * - - 31 * - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 52 + 21 + - NULLIF ( + 33, + 58 * 57 * - + COUNT ( ALL + 28 ) + - 22 ) / 78 * - 96 * - - 31 * - 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL + COUNT( * ) + + - 11 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + COUNT ( * ) + + - 11 AS col1
----
-10

query I rowsort
SELECT DISTINCT + + 60 + + 19 * - 74 col1
----
-1346

query I rowsort
SELECT + - 61 + + 25 * + - 26 * 81 * 17 - - 7 + - 28 + + 63 * - 1 AS col2
----
-895195

query I rowsort
SELECT - ( - 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - COUNT( - + 7 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4656
SELECT - COUNT ( - + 7 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL + - 93 + - - MAX( DISTINCT - 67 ) AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + - 93 + - - MAX ( DISTINCT - 67 ) AS col2
----
-160

query I rowsort
SELECT + ( - 93 ) + - - 99
----
6

query I rowsort
SELECT + 99 + + - 5 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT ALL - - 81 + + COUNT( * ) + - + 30
----
52

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL - - 81 + + COUNT ( * ) + - + 30
----
52

query I rowsort
SELECT - ( ( - - 46 ) ) + + + 67
----
21

query I rowsort
SELECT ALL 82 * 40
----
3280

onlyif mysql # DIV for integer division: 
query II rowsort label-4663
SELECT - 26 * - 54 DIV - - 9 + - - ( - 26 ) * 11 AS col1, + 4 AS col1
----
-130
4

skipif mysql # not compatible
query II rowsort label-4663
SELECT - 26 * - 54 / - - 9 + - - ( - 26 ) * 11 AS col1, + 4 AS col1
----
-130
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4664
SELECT ALL - - COUNT( * ) DIV 31 + + 86 * + 54 AS col0
----
4644

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL - - COUNT ( * ) / 31 + + 86 * + 54 AS col0
----
4644

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4665
SELECT - + 45 + + ( + COUNT( * ) ) DIV - COUNT( * ) AS col1, 13 col1
----
-46
13

skipif mysql # not compatible
query II rowsort label-4665
SELECT - + 45 + + ( + COUNT ( * ) ) / - COUNT ( * ) AS col1, 13 col1
----
-46
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT - - CASE - 7 WHEN - + 44 + + + 31 + + 26 + - - 92 * - NULLIF ( + 7, - CAST( - + CASE + 46 WHEN + 77 THEN NULL ELSE + 65 END AS SIGNED ) * + COUNT( * ) - 40 * COUNT( * ) ) / 78 + MIN( ( + 13 ) ) THEN - CASE COUNT( 68 ) WHEN CAST( NULL AS SIGNED ) THEN 10 + COUNT( 14 - 36 * + 53 ) END WHEN 7 * + 33 THEN NULL WHEN 52 THEN 55 + - COUNT( * ) ELSE NULL END + 56 * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT - - CASE - 7 WHEN - + 44 + + + 31 + + 26 + - - 92 * - NULLIF ( + 7, - CAST ( - + CASE + 46 WHEN + 77 THEN NULL ELSE + 65 END AS INTEGER ) * + COUNT ( * ) - 40 * COUNT ( * ) ) / 78 + MIN ( ( + 13 ) ) THEN - CASE COUNT ( 68 ) WHEN CAST ( NULL AS INTEGER ) THEN 10 + COUNT ( 14 - 36 * + 53 ) END WHEN 7 * + 33 THEN NULL WHEN 52 THEN 55 + - COUNT ( * ) ELSE NULL END + 56 * + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL - COUNT( DISTINCT + - 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL - COUNT ( DISTINCT + - 63 ) AS col2
----
-1

query II rowsort
SELECT - + 95 + - - CASE - 81 WHEN - 61 THEN NULL ELSE - - 89 END + - + 79, - 63 AS col0
----
-85
-63

query I rowsort
SELECT - 95 * 63 AS col0
----
-5985

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4670
SELECT - 0 + - COUNT( * ) DIV + 64 + - - 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4670
SELECT - 0 + - COUNT ( * ) / + 64 + - - 44 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT ALL NULLIF ( COUNT( * ), - 8 * + 57 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL NULLIF ( COUNT ( * ), - 8 * + 57 ) col2
----
1

query I rowsort
SELECT - 12 + 98 AS col1
----
86

query I rowsort
SELECT - 18 + - 51 AS col1
----
-69

query I rowsort
SELECT ( 89 ) AS col1
----
89

query I rowsort
SELECT - 23 * - 4 + - ( + 91 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4676
SELECT ALL + ( 5 ), + COUNT( * ) AS col2
----
5
1

skipif mysql # not compatible
query II rowsort label-4676
SELECT ALL + ( 5 ), + COUNT ( * ) AS col2
----
5
1

query I rowsort
SELECT DISTINCT - 24 * 55 * + 98
----
-129360

query I rowsort
SELECT ALL - 51 * 60 AS col0
----
-3060

query II rowsort
SELECT - 82 * + 95 AS col2, - 89
----
-7790
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4680
SELECT DISTINCT 94 * 18 DIV + 10 AS col1
----
169

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT 94 * 18 / + 10 AS col1
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT - 34 * - SUM( DISTINCT 35 ) col1
----
1190

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - 34 * - SUM ( DISTINCT 35 ) col1
----
1190

query II rowsort
SELECT ALL + ( - + 54 ) AS col2, - 20
----
-54
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4683
SELECT 52 DIV + 88 * - + 44 + - - 45
----
45

skipif mysql # not compatible
query I rowsort label-4683
SELECT 52 / + 88 * - + 44 + - - 45
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4684
SELECT ALL - 16 * + + MIN( - CAST( NULLIF ( - 78, 37 ) AS SIGNED ) )
----
-1248

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - 16 * + + MIN ( - CAST ( NULLIF ( - 78, 37 ) AS INTEGER ) )
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT + 52 * - NULLIF ( + - NULLIF ( - 27, COUNT( * ) ), 41 / + 88 + + 98 - - 64 / + 39 )
----
-1404

skipif mysql # not compatible
query I rowsort label-4685
SELECT + 52 * - NULLIF ( + - NULLIF ( - 27, COUNT ( * ) ), 41 / + 88 + + 98 - - 64 / + 39 )
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + 11 + - 50 * COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4686
SELECT + 11 + - 50 * COUNT ( * ) AS col1
----
-39

query I rowsort
SELECT CASE ( 81 ) WHEN - 11 THEN + 90 ELSE - 72 END
----
-72

query I rowsort
SELECT COALESCE ( - 33, + + 59 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT - 88 * COUNT( DISTINCT - 16 ) * + - ( - 79 ) - + 35 + + 90 + - CASE 42 WHEN - + COUNT( * ) THEN + - 78 - - AVG ( + 86 ) WHEN - COUNT( * ) THEN NULL END - + 41 / + CASE ( - 17 ) WHEN + 7 - + 80 THEN + 57 * + 73 + + 59 WHEN 30 + - 8 THEN NULL ELSE NULL END + 17 / + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT - 88 * COUNT ( DISTINCT - 16 ) * + - ( - 79 ) - + 35 + + 90 + - CASE 42 WHEN - + COUNT ( * ) THEN + - 78 - - AVG ( + 86 ) WHEN - COUNT ( * ) THEN NULL END - + 41 / + CASE ( - 17 ) WHEN + 7 - + 80 THEN + 57 * + 73 + + 59 WHEN 30 + - 8 THEN NULL ELSE NULL END + 17 / + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT CASE + ( 95 ) WHEN 16 + COUNT( ALL + 88 ) THEN NULL WHEN + 64 * - + 99 THEN - COUNT( * ) * + - 15 + + + 57 + - + CASE - ( 91 ) WHEN - 9 + AVG ( DISTINCT 6 ) * 25 THEN NULL ELSE + 47 + - 27 END + 48 / + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT CASE + ( 95 ) WHEN 16 + COUNT ( ALL + 88 ) THEN NULL WHEN + 64 * - + 99 THEN - COUNT ( * ) * + - 15 + + + 57 + - + CASE - ( 91 ) WHEN - 9 + AVG ( DISTINCT 6 ) * 25 THEN NULL ELSE + 47 + - 27 END + 48 / + COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 7 * + 58 - 29 + - 10 col1
----
367

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4692
SELECT ALL - ( + 97 ) * + 86 * 41 + - 61 AS col2, 35 DIV COUNT( * ) * 59 AS col1
----
-342083
2065

skipif mysql # not compatible
query II rowsort label-4692
SELECT ALL - ( + 97 ) * + 86 * 41 + - 61 AS col2, 35 / COUNT ( * ) * 59 AS col1
----
-342083
2065

onlyif mysql # aggregate syntax: 
query II rowsort label-4693
SELECT + MAX( DISTINCT - 42 ) AS col2, COUNT( * ) - + 34 AS col1
----
-42
-33

skipif mysql # not compatible
query II rowsort label-4693
SELECT + MAX ( DISTINCT - 42 ) AS col2, COUNT ( * ) - + 34 AS col1
----
-42
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT ALL + ( 58 ) AS col1, + 96 - + - COUNT( * ) + 28 * + 65 + - 58 + + 60 * ( - 78 ) AS col2
----
58
-2821

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL + ( 58 ) AS col1, + 96 - + - COUNT ( * ) + 28 * + 65 + - 58 + + 60 * ( - 78 ) AS col2
----
58
-2821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4695
SELECT + - 76 + - 13 + - COUNT( * ) + + 38 * 98 * - + 30 + - 49 - - 30 + + ( + 21 ) + 57 DIV 80 - + COALESCE ( - - 68, 12, + 30 * + 49 ) AS col1
----
-111876

skipif mysql # not compatible
query I rowsort label-4695
SELECT + - 76 + - 13 + - COUNT ( * ) + + 38 * 98 * - + 30 + - 49 - - 30 + + ( + 21 ) + 57 / 80 - + COALESCE ( - - 68, 12, + 30 * + 49 ) AS col1
----
-111876

onlyif mysql # aggregate syntax: 
query II rowsort label-4696
SELECT + ( 71 ) AS col0, MAX( + 42 ) AS col2
----
71
42

skipif mysql # not compatible
query II rowsort label-4696
SELECT + ( 71 ) AS col0, MAX ( + 42 ) AS col2
----
71
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL - + COUNT( * ) * + 49 * - + 88 + 39 * 79
----
7393

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL - + COUNT ( * ) * + 49 * - + 88 + 39 * 79
----
7393

query I rowsort
SELECT + 69 * 53 col0
----
3657

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT + MIN( DISTINCT - 3 ) - + - COUNT( - - 58 ) - 84 * - 61 col2
----
5122

skipif mysql # not compatible
query I rowsort label-4699
SELECT + MIN ( DISTINCT - 3 ) - + - COUNT ( - - 58 ) - 84 * - 61 col2
----
5122

query I rowsort
SELECT + - 35 + + 80 + - 17
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4701
SELECT DISTINCT - 92 * - 72 + MIN( DISTINCT - NULLIF ( + 95, - 29 ) ) + + - COUNT( * ) - + 37 + 40 - 74 DIV + + 5 col1
----
6517

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT - 92 * - 72 + MIN ( DISTINCT - NULLIF ( + 95, - 29 ) ) + + - COUNT ( * ) - + 37 + 40 - 74 / + + 5 col1
----
6517

query I rowsort
SELECT DISTINCT ( - - 31 ) - + 60 AS col0
----
-29

query I rowsort
SELECT DISTINCT - NULLIF ( + + 36, - ( - 87 ) * + + 81 * - 51 ) - - + ( - 91 ) AS col2
----
-127

query I rowsort
SELECT + - 16 * + 19 AS col2
----
-304

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT ALL - + ( 38 ) * 36 DIV + 78 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL - + ( 38 ) * 36 / + 78 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT + + 55 * 58 * + ( - 8 ) + 36 * 80 + + - COUNT( * ) + + 52
----
-22589

skipif mysql # not compatible
query I rowsort label-4706
SELECT + + 55 * 58 * + ( - 8 ) + 36 * 80 + + - COUNT ( * ) + + 52
----
-22589

query I rowsort
SELECT DISTINCT NULLIF ( + 97, - + 80 )
----
97

query I rowsort
SELECT ALL 24 * COALESCE ( + - 44, 24, + 65 + + 97 )
----
-1056

query I rowsort
SELECT ALL NULLIF ( + 43, - - 4 * + 94 ) AS col1
----
43

query I rowsort
SELECT + 6 * 22 AS col0
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-4711
SELECT ALL 71 * 89 DIV + COALESCE ( - 33, - 63 )
----
-191

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL 71 * 89 / + COALESCE ( - 33, - 63 )
----
-191

query II rowsort
SELECT DISTINCT 29 * - ( - + 80 ), 0 AS col2
----
2320
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT - 41 * + MIN( - 6 )
----
246

skipif mysql # not compatible
query I rowsort label-4713
SELECT - 41 * + MIN ( - 6 )
----
246

query I rowsort
SELECT ALL + ( 67 ) AS col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT ALL + CASE - 22 WHEN - 43 THEN + COALESCE ( + 35, - 76 ) + - 51 + - - 81 DIV - ( + 35 ) ELSE - 98 END + - 31 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL + CASE - 22 WHEN - 43 THEN + COALESCE ( + 35, - 76 ) + - 51 + - - 81 / - ( + 35 ) ELSE - 98 END + - 31 AS col2
----
-129

query I rowsort
SELECT 90 + 23 AS col0
----
113

query I rowsort
SELECT ALL - ( + 44 ) AS col2
----
-44

query II rowsort
SELECT 8 AS col0, - 41 + + + 19
----
8
-22

query I rowsort
SELECT ALL - ( - 87 ) * + 79 + + + NULLIF ( ( + 82 ), + + 26 )
----
6955

query II rowsort
SELECT ALL + 58 + + 51 * 7, 14 AS col1
----
415
14

query I rowsort
SELECT DISTINCT - 3 * - 46
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4722
SELECT ALL - ( + + 60 ) + + CAST( - 45 AS SIGNED ) DIV + 86, COUNT( * ) * 0 AS col1
----
-60
0

skipif mysql # not compatible
query II rowsort label-4722
SELECT ALL - ( + + 60 ) + + CAST ( - 45 AS INTEGER ) / + 86, COUNT ( * ) * 0 AS col1
----
-60
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL + SUM( + + 23 ) + + 46
----
69

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL + SUM ( + + 23 ) + + 46
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT 24 - - + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-4724
SELECT 24 - - + COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL + COUNT( DISTINCT - 39 ) * - + COALESCE ( + 51, 90 * CASE 87 WHEN 17 * + SUM( DISTINCT - + 85 ) THEN COUNT( * ) END ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL + COUNT ( DISTINCT - 39 ) * - + COALESCE ( + 51, 90 * CASE 87 WHEN 17 * + SUM ( DISTINCT - + 85 ) THEN COUNT ( * ) END ) AS col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4726
SELECT - - COUNT( * ) * - + 41 DIV 20 * - 33 * - - 75 + - 30 * CASE COUNT( * ) WHEN 82 THEN - 19 * - + 46 ELSE + + 18 END AS col1
----
4410

skipif mysql # not compatible
query I rowsort label-4726
SELECT - - COUNT ( * ) * - + 41 / 20 * - 33 * - - 75 + - 30 * CASE COUNT ( * ) WHEN 82 THEN - 19 * - + 46 ELSE + + 18 END AS col1
----
4410

query I rowsort
SELECT 86 * - 38 AS col2
----
-3268

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT + MAX( - 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4728
SELECT + MAX ( - 77 ) AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT ALL - CAST( - 10 AS SIGNED ) - 36 + 26
----
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - CAST ( - 10 AS INTEGER ) - 36 + 26
----
0

query I rowsort
SELECT ALL - + 98 AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT ALL + 0 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL + 0 / 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT ALL COUNT( * ) * 39
----
39

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL COUNT ( * ) * 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT + 50 - - COUNT( * ) * 18 + + 96 AS col1
----
164

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT + 50 - - COUNT ( * ) * 18 + + 96 AS col1
----
164

query I rowsort
SELECT DISTINCT 56 - + 54 AS col2
----
2

query I rowsort
SELECT 34 * + 59 AS col0
----
2006

query I rowsort
SELECT 65 + 30
----
95

query I rowsort
SELECT + 83 + 17
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT CASE + 18 WHEN - + COALESCE ( 55, CAST( NULL AS SIGNED ) * + CASE - 32 WHEN - + ( COUNT( * ) ) THEN 83 - + + 86 + + 63 + 79 + - COUNT( * ) * ( - 12 ) * + 34 / 49 ELSE NULL END ) THEN + 60 END - - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT CASE + 18 WHEN - + COALESCE ( 55, CAST ( NULL AS INTEGER ) * + CASE - 32 WHEN - + ( COUNT ( * ) ) THEN 83 - + + 86 + + 63 + 79 + - COUNT ( * ) * ( - 12 ) * + 34 / 49 ELSE NULL END ) THEN + 60 END - - 40 AS col2
----
NULL

query II rowsort
SELECT + 97 + + 96 * + - 9 col2, + 96 * 58 + - 44 AS col2
----
-767
5524

onlyif mysql # aggregate syntax: 
query II rowsort label-4740
SELECT 74 + + COUNT( * ) AS col2, - 62 AS col1
----
75
-62

skipif mysql # not compatible
query II rowsort label-4740
SELECT 74 + + COUNT ( * ) AS col2, - 62 AS col1
----
75
-62

query I rowsort
SELECT 81 + 52
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL COUNT( + 38 ) + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL COUNT ( + 38 ) + - 45
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT CASE - 45 WHEN + MAX( DISTINCT + + 54 ) * - 11 * + 82 THEN + 81 * - 0 WHEN - AVG ( ( + - NULLIF ( 21, + - 52 ) ) ) THEN NULL ELSE ( 51 ) * - 43 - ( + 45 ) * + 88 - + 70 END + + 87 * - COUNT( * ) col0
----
-6310

skipif mysql # not compatible
query I rowsort label-4743
SELECT CASE - 45 WHEN + MAX ( DISTINCT + + 54 ) * - 11 * + 82 THEN + 81 * - 0 WHEN - AVG ( ( + - NULLIF ( 21, + - 52 ) ) ) THEN NULL ELSE ( 51 ) * - 43 - ( + 45 ) * + 88 - + 70 END + + 87 * - COUNT ( * ) col0
----
-6310

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT DISTINCT SUM( + 93 ) * - 88 AS col0
----
-8184

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT SUM ( + 93 ) * - 88 AS col0
----
-8184

query I rowsort
SELECT DISTINCT 82 + + 18 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4746
SELECT CASE + 77 WHEN SUM( + - 39 ) * + 57 * + - 90 * - - 91 THEN - ( - COALESCE ( NULLIF ( - 40, - 70 / + 46 - + 65 * 76 - - COUNT( * ) + - 32 ), 22 + + CAST( NULL AS DECIMAL ) ) ) ELSE NULL END / - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT CASE + 77 WHEN SUM ( + - 39 ) * + 57 * + - 90 * - - 91 THEN - ( - COALESCE ( NULLIF ( - 40, - 70 / + 46 - + 65 * 76 - - COUNT ( * ) + - 32 ), 22 + + CAST ( NULL AS REAL ) ) ) ELSE NULL END / - 66 AS col2
----
NULL

query II rowsort
SELECT 99 AS col0, + 38
----
99
38

query I rowsort
SELECT 19 + + ( 4 ) * + 75 col2
----
319

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4749
SELECT ( - 60 ) DIV - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-4749
SELECT ( - 60 ) / - COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT COUNT( * ) * + - 80 * COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-4750
SELECT COUNT ( * ) * + - 80 * COUNT ( * )
----
-80

query II rowsort
SELECT ALL - CASE 76 WHEN - 35 / - 89 THEN 4 END + + 69 col1, - 23
----
NULL
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL 75 * SUM( + 54 ) AS col2
----
4050

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL 75 * SUM ( + 54 ) AS col2
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT ALL + COUNT( * ) + - 82 + 13
----
-68

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + COUNT ( * ) + - 82 + 13
----
-68

query I rowsort
SELECT DISTINCT 68 + + 36
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4755
SELECT 80 AS col1, + 12 + + + CASE - + COUNT( * ) WHEN + ( - CAST( NULL AS DECIMAL ) ) THEN + MIN( DISTINCT 67 ) + - 52 WHEN - - CAST( + COUNT( * ) AS SIGNED ) + - + ( + 5 ) + - 8 THEN 10 + - COUNT( * ) * COUNT( * ) END
----
80
NULL

skipif mysql # not compatible
query II rowsort label-4755
SELECT 80 AS col1, + 12 + + + CASE - + COUNT ( * ) WHEN + ( - CAST ( NULL AS REAL ) ) THEN + MIN ( DISTINCT 67 ) + - 52 WHEN - - CAST ( + COUNT ( * ) AS INTEGER ) + - + ( + 5 ) + - 8 THEN 10 + - COUNT ( * ) * COUNT ( * ) END
----
80
NULL

query I rowsort
SELECT + 79 col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL - 95 - - + 39 * - COALESCE ( 39, COUNT( * ), + MIN( - 21 ) ) col1
----
-1616

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL - 95 - - + 39 * - COALESCE ( 39, COUNT ( * ), + MIN ( - 21 ) ) col1
----
-1616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT ALL - + CAST( + 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL - + CAST ( + 68 AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4759
SELECT + 2, 8 DIV + COALESCE ( - SUM( DISTINCT 57 ), 23 + - 76 ) * + SUM( ALL - + 82 ) AS col0
----
2
0

skipif mysql # not compatible
query II rowsort label-4759
SELECT + 2, 8 / + COALESCE ( - SUM ( DISTINCT 57 ), 23 + - 76 ) * + SUM ( ALL - + 82 ) AS col0
----
2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT 35 * COUNT( + 9 ) + - - CAST( NULL AS SIGNED ) * - 87 * + - CAST( NULL AS SIGNED ) * - 45 * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT 35 * COUNT ( + 9 ) + - - CAST ( NULL AS INTEGER ) * - 87 * + - CAST ( NULL AS INTEGER ) * - 45 * - 51
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( - 28, 26 )
----
-28

query I rowsort
SELECT ALL + + 11 - + ( + 62 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT - 79 * - 82 * + COUNT( * ) * - + 62 * + + 75 AS col0
----
-30122700

skipif mysql # not compatible
query I rowsort label-4763
SELECT - 79 * - 82 * + COUNT ( * ) * - + 62 * + + 75 AS col0
----
-30122700

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL + COUNT( * ) * - 50 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL + COUNT ( * ) * - 50 AS col2
----
-50

query I rowsort
SELECT - 88 + - 37 AS col2
----
-125

query II rowsort
SELECT + 52 col0, 20 AS col1
----
52
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT COUNT( * ) + - MAX( ALL 35 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4767
SELECT COUNT ( * ) + - MAX ( ALL 35 ) AS col1
----
-34

query I rowsort
SELECT - 45 * - 6
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT MIN( - 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4769
SELECT MIN ( - 48 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT DISTINCT 81, + 65 + + COUNT( * ) * - 52 AS col1
----
81
13

skipif mysql # not compatible
query II rowsort label-4770
SELECT DISTINCT 81, + 65 + + COUNT ( * ) * - 52 AS col1
----
81
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4771
SELECT - 9 col2, 91 + - 22 + + + CAST( 68 AS SIGNED )
----
-9
137

skipif mysql # not compatible
query II rowsort label-4771
SELECT - 9 col2, 91 + - 22 + + + CAST ( 68 AS INTEGER )
----
-9
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4772
SELECT DISTINCT 31 AS col2, 16 DIV + - MIN( DISTINCT - 27 ) * - 5 + 12 col0
----
31
12

skipif mysql # not compatible
query II rowsort label-4772
SELECT DISTINCT 31 AS col2, 16 / + - MIN ( DISTINCT - 27 ) * - 5 + 12 col0
----
31
12

query I rowsort
SELECT 70 + 44
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT DISTINCT - 94 DIV + - 63
----
1

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT - 94 / + - 63
----
1

query I rowsort
SELECT ALL 36 * + 64 AS col0
----
2304

query II rowsort
SELECT ALL - 92 + + + 54, 0 col1
----
-38
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT 90 * - - ( CAST( - 95 AS SIGNED ) ) AS col1
----
-8550

skipif mysql # not compatible
query I rowsort label-4777
SELECT 90 * - - ( CAST ( - 95 AS INTEGER ) ) AS col1
----
-8550

query I rowsort
SELECT DISTINCT 71 * ( + - 26 ) col1
----
-1846

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL COUNT( * ) + ( + + 37 )
----
38

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL COUNT ( * ) + ( + + 37 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT ALL + 20 + - - COUNT( * ) * COUNT( * ) * 41 DIV - - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL + 20 + - - COUNT ( * ) * COUNT ( * ) * 41 / - - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query III rowsort label-4781
SELECT - 23 - + COUNT( * ) AS col1, 46 col0, 0
----
-24
46
0

skipif mysql # not compatible
query III rowsort label-4781
SELECT - 23 - + COUNT ( * ) AS col1, 46 col0, 0
----
-24
46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT - ( - COUNT( * ) ) * - 77 * + 38 AS col2
----
-2926

skipif mysql # not compatible
query I rowsort label-4782
SELECT - ( - COUNT ( * ) ) * - 77 * + 38 AS col2
----
-2926

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - MAX( + 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4783
SELECT - MAX ( + 48 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT DISTINCT + 3 * - - ( - - 17 ) * + 63 * - - SUM( + + 72 )
----
231336

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT + 3 * - - ( - - 17 ) * + 63 * - - SUM ( + + 72 )
----
231336

query I rowsort
SELECT ALL ( + + 31 ) + + + 24 AS col2
----
55

query II rowsort
SELECT + 69 * - 90 col0, - 92 - - + 31 * - + ( - - 6 )
----
-6210
-278

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4787
SELECT + COUNT( * ) DIV - - 62 AS col0, 29 AS col0
----
0
29

skipif mysql # not compatible
query II rowsort label-4787
SELECT + COUNT ( * ) / - - 62 AS col0, 29 AS col0
----
0
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4788
SELECT ALL - COUNT( * ) * + ( 60 ) * 20 - - 51 + + 23 + - 30 + + COALESCE ( + + 81, 39 ) * + CASE - + ( + 71 ) WHEN 11 / - 67 * CAST( + - 52 AS SIGNED ) + COALESCE ( 14, 17 / ( + 7 * + 86 ) ) THEN - 36 WHEN 98 * + CAST( NULL AS SIGNED ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - COUNT ( * ) * + ( 60 ) * 20 - - 51 + + 23 + - 30 + + COALESCE ( + + 81, 39 ) * + CASE - + ( + 71 ) WHEN 11 / - 67 * CAST ( + - 52 AS INTEGER ) + COALESCE ( 14, 17 / ( + 7 * + 86 ) ) THEN - 36 WHEN 98 * + CAST ( NULL AS INTEGER ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( - 4, - 45 ) AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT + - 44 + + COALESCE ( + 95, - + 85 * 4 ) + CAST( + 37 AS SIGNED ) + - + 67 - 84 * + 23
----
-1911

skipif mysql # not compatible
query I rowsort label-4790
SELECT + - 44 + + COALESCE ( + 95, - + 85 * 4 ) + CAST ( + 37 AS INTEGER ) + - + 67 - 84 * + 23
----
-1911

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT 39 DIV + - MAX( ALL + - 84 ) - + 13 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-4791
SELECT 39 / + - MAX ( ALL + - 84 ) - + 13 / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL 66 * COUNT( * ) * + - CASE ( + + 85 ) WHEN 71 THEN NULL WHEN + - 15 * COUNT( * ) + + - 81 THEN + 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL 66 * COUNT ( * ) * + - CASE ( + + 85 ) WHEN 71 THEN NULL WHEN + - 15 * COUNT ( * ) + + - 81 THEN + 70 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4793
SELECT - 76 * - ( - 66 ) * 25 + + COUNT( * ) + - + 35 * - - 28 * + - CASE + 81 WHEN - ( - CAST( NULL AS SIGNED ) ) THEN - 46 ELSE + + 8 END * - 52 * + + 26
----
-10725079

skipif mysql # not compatible
query I rowsort label-4793
SELECT - 76 * - ( - 66 ) * 25 + + COUNT ( * ) + - + 35 * - - 28 * + - CASE + 81 WHEN - ( - CAST ( NULL AS INTEGER ) ) THEN - 46 ELSE + + 8 END * - 52 * + + 26
----
-10725079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4794
SELECT ALL + - COALESCE ( - CASE - 23 WHEN + 52 THEN NULL ELSE COUNT( * ) END, + + 63 DIV - CAST( NULL AS SIGNED ) - - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL + - COALESCE ( - CASE - 23 WHEN + 52 THEN NULL ELSE COUNT ( * ) END, + + 63 / - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4795
SELECT DISTINCT - 5 * - COUNT( ALL - CAST( + - 8 AS SIGNED ) )
----
5

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - 5 * - COUNT ( ALL - CAST ( + - 8 AS INTEGER ) )
----
5

query I rowsort
SELECT ALL + - 93 col2
----
-93

query I rowsort
SELECT ALL 32 * + 2 + - 88 AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4798
SELECT + 76 + 61 + - MAX( - ( + - 73 ) ) - - + ( 96 ) * - COUNT( * ) * 54 * - 48 AS col0, CAST( + AVG ( ALL + ( - 52 ) ) AS SIGNED )
----
248896
-52

skipif mysql # not compatible
query II rowsort label-4798
SELECT + 76 + 61 + - MAX ( - ( + - 73 ) ) - - + ( 96 ) * - COUNT ( * ) * 54 * - 48 AS col0, CAST ( + AVG ( ALL + ( - 52 ) ) AS INTEGER )
----
248896
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-4799
SELECT + + 17 DIV - 82 + + + 32
----
32

skipif mysql # not compatible
query I rowsort label-4799
SELECT + + 17 / - 82 + + + 32
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4800
SELECT + + COUNT( DISTINCT + 96 ) + - 37 DIV + 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4800
SELECT + + COUNT ( DISTINCT + 96 ) + - 37 / + 19 AS col2
----
0

query I rowsort
SELECT ALL + - 96 col1
----
-96

query I rowsort
SELECT DISTINCT - 35 * - - 3 + 96 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4803
SELECT ALL 67 * - + 13 * - - NULLIF ( + 29, + - COUNT( * ) * - - 2 + + + 74 ) + - 16 * 45 + - 69 + + CAST( - COUNT( * ) AS SIGNED ) + + 60 * - - ( - 75 ) * + 65 AS col0
----
-318549

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL 67 * - + 13 * - - NULLIF ( + 29, + - COUNT ( * ) * - - 2 + + + 74 ) + - 16 * 45 + - 69 + + CAST ( - COUNT ( * ) AS INTEGER ) + + 60 * - - ( - 75 ) * + 65 AS col0
----
-318549

query I rowsort
SELECT DISTINCT + 49 * - 57 * + - 16 * 60
----
2681280

query I rowsort
SELECT DISTINCT ( - - 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL - 61 + + COUNT( 71 ) - - COUNT( * ) * + 99 * + 24 AS col1
----
2316

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - 61 + + COUNT ( 71 ) - - COUNT ( * ) * + 99 * + 24 AS col1
----
2316

query I rowsort
SELECT - 36 * 93
----
-3348

query I rowsort
SELECT ALL - 88 + + 4
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT ALL CASE 32 WHEN CAST( + 69 AS SIGNED ) * COUNT( * ) THEN - SUM( ( + 86 ) ) + - 66 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL CASE 32 WHEN CAST ( + 69 AS INTEGER ) * COUNT ( * ) THEN - SUM ( ( + 86 ) ) + - 66 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4810
SELECT - CAST( + - 56 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4810
SELECT - CAST ( + - 56 AS INTEGER ) AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4811
SELECT ALL ( CAST( - 41 AS SIGNED ) ) AS col0, - 87 AS col0
----
-41
-87

skipif mysql # not compatible
query II rowsort label-4811
SELECT ALL ( CAST ( - 41 AS INTEGER ) ) AS col0, - 87 AS col0
----
-41
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT - MAX( ALL 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4812
SELECT - MAX ( ALL 6 ) AS col2
----
-6

query I rowsort
SELECT ALL ( - + 27 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT - CAST( - NULLIF ( 35, - 58 ) AS SIGNED ) + + 4 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4814
SELECT - CAST ( - NULLIF ( 35, - 58 ) AS INTEGER ) + + 4 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT - MAX( ALL - COALESCE ( - 86, + ( + + 50 ) * 64 ) ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4815
SELECT - MAX ( ALL - COALESCE ( - 86, + ( + + 50 ) * 64 ) ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL + ( + 79 ) + + 29 * + COUNT( * )
----
108

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + ( + 79 ) + + 29 * + COUNT ( * )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT ALL - NULLIF ( + + 9, - 60 / - ( - 66 ) ) + - - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL - NULLIF ( + + 9, - 60 / - ( - 66 ) ) + - - COUNT ( * )
----
-8

query I rowsort
SELECT DISTINCT 81 * + 4
----
324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4819
SELECT ALL CAST( + AVG ( DISTINCT - + 71 ) AS SIGNED ) * 20 AS col2
----
-1420

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL CAST ( + AVG ( DISTINCT - + 71 ) AS INTEGER ) * 20 AS col2
----
-1420

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL COUNT( * ) * + 9
----
9

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL COUNT ( * ) * + 9
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT ALL - 26 - + 63 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - 26 - + 63 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT - 34 DIV + + 12 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4822
SELECT - 34 / + + 12 AS col2
----
-2

query I rowsort
SELECT + 39 * - - 42 col0
----
1638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4824
SELECT + COALESCE ( 82, - - 82, - - 47 + + + 80 ) * - 91 - - 68 + - + 49 / MAX( - - 44 ) / + CAST( NULL AS SIGNED ) + + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT + COALESCE ( 82, - - 82, - - 47 + + + 80 ) * - 91 - - 68 + - + 49 / MAX ( - - 44 ) / + CAST ( NULL AS INTEGER ) + + + 13
----
NULL

query I rowsort
SELECT ALL + 54 * + 58
----
3132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4826
SELECT ALL CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4827
SELECT - COUNT( * ), - 98 AS col1
----
-1
-98

skipif mysql # not compatible
query II rowsort label-4827
SELECT - COUNT ( * ), - 98 AS col1
----
-1
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - MAX( + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4828
SELECT - MAX ( + 1 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4829
SELECT DISTINCT + + 59, + 43 * - - CAST( - 54 AS SIGNED ) AS col1
----
59
-2322

skipif mysql # not compatible
query II rowsort label-4829
SELECT DISTINCT + + 59, + 43 * - - CAST ( - 54 AS INTEGER ) AS col1
----
59
-2322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL + 39 / + CAST( NULL AS SIGNED ) - 43 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + 39 / + CAST ( NULL AS INTEGER ) - 43 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4831
SELECT ALL - + 3 * COUNT( * ) - - - 62 AS col2, + 24 + COUNT( * ) - + 97 AS col0
----
-65
-72

skipif mysql # not compatible
query II rowsort label-4831
SELECT ALL - + 3 * COUNT ( * ) - - - 62 AS col2, + 24 + COUNT ( * ) - + 97 AS col0
----
-65
-72

query II rowsort
SELECT DISTINCT + - 26 AS col1, 81 AS col2
----
-26
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4833
SELECT + AVG ( + + 12 ) * - 89 + - COUNT( ALL - + 10 ) * COUNT( + 69 ) * 58 * + + CAST( NULL AS SIGNED ) * 98 + 3 + + 85 * - COALESCE ( 12, + + 3 + - ( - 47 ) * AVG ( ALL + 42 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT + AVG ( + + 12 ) * - 89 + - COUNT ( ALL - + 10 ) * COUNT ( + 69 ) * 58 * + + CAST ( NULL AS INTEGER ) * 98 + 3 + + 85 * - COALESCE ( 12, + + 3 + - ( - 47 ) * AVG ( ALL + 42 ) ) AS col2
----
NULL

query II rowsort
SELECT + 15 AS col1, - 87
----
15
-87

onlyif mysql # aggregate syntax: 
query III rowsort label-4835
SELECT DISTINCT + 12, - SUM( + - 42 ) * - 7 AS col1, - - COUNT( * ) col2
----
12
-294
1

skipif mysql # not compatible
query III rowsort label-4835
SELECT DISTINCT + 12, - SUM ( + - 42 ) * - 7 AS col1, - - COUNT ( * ) col2
----
12
-294
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4836
SELECT + 36 + - - CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT + 36 + - - CAST ( NULL AS REAL ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4837
SELECT + 49 AS col1, + CAST( + 27 AS SIGNED ) * - - 51 + - + 88 * - COUNT( * ) col1
----
49
1465

skipif mysql # not compatible
query II rowsort label-4837
SELECT + 49 AS col1, + CAST ( + 27 AS INTEGER ) * - - 51 + - + 88 * - COUNT ( * ) col1
----
49
1465

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT + + MIN( ALL COALESCE ( + + 93, + 80 / 74 - - 20 * + - 72 ) ) col0
----
93

skipif mysql # not compatible
query I rowsort label-4838
SELECT + + MIN ( ALL COALESCE ( + + 93, + 80 / 74 - - 20 * + - 72 ) ) col0
----
93

query I rowsort
SELECT + + 75 + - 57 AS col1
----
18

query I rowsort
SELECT ALL 93 * + 52
----
4836

query II rowsort
SELECT ALL 65 * - 88 + + 7 AS col1, - 95 * 50
----
-5713
-4750

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT - MIN( ALL - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4842
SELECT - MIN ( ALL - 32 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT ALL + 31 * + COUNT( * ) + + + 28 * + + 43 + + COUNT( DISTINCT - + 9 ) AS col1, 2 * - COUNT( * )
----
1236
-2

skipif mysql # not compatible
query II rowsort label-4843
SELECT ALL + 31 * + COUNT ( * ) + + + 28 * + + 43 + + COUNT ( DISTINCT - + 9 ) AS col1, 2 * - COUNT ( * )
----
1236
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4844
SELECT + - CAST( NULL AS SIGNED ) + - ( + COALESCE ( + 24, - + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT + - CAST ( NULL AS INTEGER ) + - ( + COALESCE ( + 24, - + COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT + 99 + - 61 - - NULLIF ( 70, 74 ) AS col1
----
108

query I rowsort
SELECT 80 * + 95
----
7600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4847
SELECT DISTINCT 53 + + 9 DIV COUNT( * ) * - 59 - + 13 DIV + 31
----
-478

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT 53 + + 9 / COUNT ( * ) * - 59 - + 13 / + 31
----
-478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4848
SELECT ALL - ( - COUNT( * ) ) - - - MIN( - CAST( NULL AS SIGNED ) ) * COUNT( * ) + - ( - 26 ) + - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - ( - COUNT ( * ) ) - - - MIN ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + - ( - 26 ) + - 0 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 39 * + 37
----
-1443

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL - COUNT( * ) * + ( + 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - COUNT ( * ) * + ( + 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL 52 - - - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL 52 - - - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT COUNT( * ) * - + ( + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-4852
SELECT COUNT ( * ) * - + ( + 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4853
SELECT COUNT( * ) - CAST( NULL AS SIGNED ) + - 36 * 63 * + + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT COUNT ( * ) - CAST ( NULL AS INTEGER ) + - 36 * 63 * + + 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT 50 * + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4854
SELECT 50 * + COUNT ( * ) AS col0
----
50

query I rowsort
SELECT 34 * + 49
----
1666

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT 40 DIV + 17
----
2

skipif mysql # not compatible
query I rowsort label-4856
SELECT 40 / + 17
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT ALL NULLIF ( + 96, - 57 + - + CASE + CAST( NULL AS SIGNED ) WHEN + - COUNT( * ) * 36 * - COUNT( * ) + 93 + 84 - - 0 THEN 96 + - + 90 WHEN ( + + 87 ) THEN NULL ELSE NULL END ) col2
----
96

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL NULLIF ( + 96, - 57 + - + CASE + CAST ( NULL AS INTEGER ) WHEN + - COUNT ( * ) * 36 * - COUNT ( * ) + 93 + 84 - - 0 THEN 96 + - + 90 WHEN ( + + 87 ) THEN NULL ELSE NULL END ) col2
----
96

query I rowsort
SELECT 75 - - ( - 77 ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-4859
SELECT ALL + 56 DIV + - 55 AS col2, - 60
----
-1
-60

skipif mysql # not compatible
query II rowsort label-4859
SELECT ALL + 56 / + - 55 AS col2, - 60
----
-1
-60

query I rowsort
SELECT ALL + ( - + 16 ) * + 57
----
-912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4861
SELECT DISTINCT + + 38 * COALESCE ( - 86, + 78, COUNT( * ) * + + 96 DIV 9 ) + - 50 AS col0
----
-3318

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + + 38 * COALESCE ( - 86, + 78, COUNT ( * ) * + + 96 / 9 ) + - 50 AS col0
----
-3318

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT - SUM( DISTINCT + 24 ) + + 96 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT - SUM ( DISTINCT + 24 ) + + 96 AS col0
----
72

query I rowsort
SELECT ALL - + 25 + - 69
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4864
SELECT - 17 * - CASE + COUNT( 54 ) WHEN + CAST( NULL AS DECIMAL ) * - - 38 THEN 19 WHEN + - 29 THEN + 8 + - CASE + 92 WHEN + - 57 THEN NULL ELSE COUNT( * ) * - 58 END ELSE NULL END + 43 * - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT - 17 * - CASE + COUNT ( 54 ) WHEN + CAST ( NULL AS REAL ) * - - 38 THEN 19 WHEN + - 29 THEN + 8 + - CASE + 92 WHEN + - 57 THEN NULL ELSE COUNT ( * ) * - 58 END ELSE NULL END + 43 * - 39 AS col1
----
NULL

query I rowsort
SELECT 45 - 82
----
-37

query I rowsort
SELECT + 34 * + 43 * + 75
----
109650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4867
SELECT + 29 * - + CASE - + 73 WHEN - + CASE - 14 WHEN - 11 THEN - COUNT( * ) + - - 30 / 68 * - 78 * - COALESCE ( + COUNT( * ), NULLIF ( - 60, - - COUNT( DISTINCT - 40 ) ) + - 87 ) ELSE NULL END + - + 59 THEN NULL WHEN - MAX( DISTINCT 85 ) THEN + CASE 92 WHEN 66 * ( 53 / CAST( NULL AS SIGNED ) ) THEN SUM( ALL + 23 ) END + - 74 WHEN ( COALESCE ( 7, - 64 + 20 ) ) THEN NULL ELSE NULL END * + MIN( ALL CAST( NULL AS DECIMAL ) / 63 ) + + ( + ( + 74 ) + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT + 29 * - + CASE - + 73 WHEN - + CASE - 14 WHEN - 11 THEN - COUNT ( * ) + - - 30 / 68 * - 78 * - COALESCE ( + COUNT ( * ), NULLIF ( - 60, - - COUNT ( DISTINCT - 40 ) ) + - 87 ) ELSE NULL END + - + 59 THEN NULL WHEN - MAX ( DISTINCT 85 ) THEN + CASE 92 WHEN 66 * ( 53 / CAST ( NULL AS INTEGER ) ) THEN SUM ( ALL + 23 ) END + - 74 WHEN ( COALESCE ( 7, - 64 + 20 ) ) THEN NULL ELSE NULL END * + MIN ( ALL CAST ( NULL AS REAL ) / 63 ) + + ( + ( + 74 ) + 67 )
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + ( 6 ), 75 )
----
-6

query I rowsort
SELECT + + ( + 40 ) AS col0
----
40

query I rowsort
SELECT ALL + - 96 + 97 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4871
SELECT ALL - 71 + - 33 AS col1, COUNT( * ) * - 11 AS col2
----
-104
-11

skipif mysql # not compatible
query II rowsort label-4871
SELECT ALL - 71 + - 33 AS col1, COUNT ( * ) * - 11 AS col2
----
-104
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT 55 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT 55 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT - + 83 + - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT - + 83 + - COUNT ( * )
----
-84

query I rowsort
SELECT ALL - - ( 87 ) AS col2
----
87

query I rowsort
SELECT 61 * - - 86 + + 90 col0
----
5336

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT COALESCE ( COUNT( * ), COUNT( * ) * - 32 ) * + 20 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4876
SELECT COALESCE ( COUNT ( * ), COUNT ( * ) * - 32 ) * + 20 AS col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4877
SELECT 57 col2, COUNT( * ) AS col1
----
57
1

skipif mysql # not compatible
query II rowsort label-4877
SELECT 57 col2, COUNT ( * ) AS col1
----
57
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT DISTINCT COUNT( * ) * + COUNT( - 13 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT COUNT ( * ) * + COUNT ( - 13 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT - COUNT( * ) * + 45 - + 99
----
-144

skipif mysql # not compatible
query I rowsort label-4879
SELECT - COUNT ( * ) * + 45 - + 99
----
-144

query I rowsort
SELECT ALL 11 * - + 73 AS col2
----
-803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT 5 + + + CASE + + 93 WHEN + + 41 THEN + 87 WHEN - 21 + 74 / NULLIF ( + 8, + - CAST( + - 36 AS SIGNED ) ) THEN NULL END + + 63 + - 37 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT 5 + + + CASE + + 93 WHEN + + 41 THEN + 87 WHEN - 21 + 74 / NULLIF ( + 8, + - CAST ( + - 36 AS INTEGER ) ) THEN NULL END + + 63 + - 37 col2
----
NULL

query II rowsort
SELECT COALESCE ( + 71, - + 6 * 33, 4, 66 - + 81 ) * + 67 col1, + 6
----
4757
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT CAST( NULL AS SIGNED ) * ( - + ( 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT CAST ( NULL AS INTEGER ) * ( - + ( 25 ) )
----
NULL

query I rowsort
SELECT 50 - + 8 AS col1
----
42

query I rowsort
SELECT 53 * + + 3 * - 54 AS col2
----
-8586

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT 24 + + + 86 DIV 49 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4886
SELECT 24 + + + 86 / 49 AS col0
----
25

query I rowsort
SELECT 60 - - 54 * 4 AS col2
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4888
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) + + - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) + + - 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT COUNT( * ) * - ( + - COUNT( * ) ) * - 53 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4889
SELECT COUNT ( * ) * - ( + - COUNT ( * ) ) * - 53 AS col2
----
-53

query I rowsort
SELECT DISTINCT + 91 * 21 AS col0
----
1911

query I rowsort
SELECT ALL - - ( - 46 ) + + 22 + - 52 * - 18 + + 13
----
925

query I rowsort
SELECT 44 + + 64 + + 94 AS col1
----
202

query I rowsort
SELECT - 73 * - 75
----
5475

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT 90 + + - ( COUNT( * ) ) + - 17 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4894
SELECT 90 + + - ( COUNT ( * ) ) + - 17 AS col1
----
72

query II rowsort
SELECT 52, NULLIF ( 63, + 34 ) AS col2
----
52
63

query I rowsort
SELECT DISTINCT + + 36 + - - COALESCE ( + 81, - 89 )
----
117

query I rowsort
SELECT ALL - + 73 + - + 15 AS col0
----
-88

query I rowsort
SELECT - - ( 40 ) AS col2
----
40

query I rowsort
SELECT - COALESCE ( 48, - ( 83 ) ) AS col2
----
-48

query I rowsort
SELECT ALL + ( 93 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT DISTINCT + 11 DIV - 53 * - + 5 * - + 20
----
0

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT + 11 / - 53 * - + 5 * - + 20
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4902
SELECT DISTINCT COUNT( * ) * + 31 + + 9 DIV + 63 + + ( - 54 )
----
-23

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT COUNT ( * ) * + 31 + + 9 / + 63 + + ( - 54 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT + + 38 * - + COUNT( * ) + 56 + + 79
----
97

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT + + 38 * - + COUNT ( * ) + 56 + + 79
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4904
SELECT DISTINCT + + 18 DIV 18
----
1

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + + 18 / 18
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / + + 28 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / + + 28 * 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT - 97 * - 79 - 10 * + + 32 - + COUNT( * ) * + NULLIF ( - 23, 13 )
----
7366

skipif mysql # not compatible
query I rowsort label-4906
SELECT - 97 * - 79 - 10 * + + 32 - + COUNT ( * ) * + NULLIF ( - 23, 13 )
----
7366

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT - 72 * - 4 + - 59 - - 24 + 51 * COUNT( * ) + 84 AS col1
----
388

skipif mysql # not compatible
query I rowsort label-4907
SELECT - 72 * - 4 + - 59 - - 24 + 51 * COUNT ( * ) + 84 AS col1
----
388

query I rowsort
SELECT DISTINCT - - 20 * 7 * - 96 + + 83 + + + 30 - + ( + 46 ) * 37
----
-15029

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4909
SELECT ALL + 64 AS col0, - 34 + + + ( 82 ) DIV + COUNT( * ) + + 69 col1
----
64
117

skipif mysql # not compatible
query II rowsort label-4909
SELECT ALL + 64 AS col0, - 34 + + + ( 82 ) / + COUNT ( * ) + + 69 col1
----
64
117

onlyif mysql # aggregate syntax: 
query II rowsort label-4910
SELECT + 2 col0, - COUNT( DISTINCT - 54 ) * - 95 + - 69
----
2
26

skipif mysql # not compatible
query II rowsort label-4910
SELECT + 2 col0, - COUNT ( DISTINCT - 54 ) * - 95 + - 69
----
2
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT DISTINCT + MIN( + 26 ) * COUNT( * ) col1
----
26

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT + MIN ( + 26 ) * COUNT ( * ) col1
----
26

query I rowsort
SELECT - 47 + - 16 - 95 - + 36 * 97 AS col0
----
-3650

query I rowsort
SELECT ALL + ( + + 27 )
----
27

query I rowsort
SELECT - ( 25 ) * - + 98
----
2450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT - 56 * 23 + - + CAST( + - 42 AS SIGNED )
----
-1246

skipif mysql # not compatible
query I rowsort label-4915
SELECT - 56 * 23 + - + CAST ( + - 42 AS INTEGER )
----
-1246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT DISTINCT ( + 46 ) / - - 9 / CAST( NULL AS SIGNED ) - + - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT ( + 46 ) / - - 9 / CAST ( NULL AS INTEGER ) - + - 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4917
SELECT + 76, - COUNT( * ) col1
----
76
-1

skipif mysql # not compatible
query II rowsort label-4917
SELECT + 76, - COUNT ( * ) col1
----
76
-1

query I rowsort
SELECT - 87 * + + 57 * + 90 AS col2
----
-446310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4919
SELECT + COUNT( * ) DIV 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4919
SELECT + COUNT ( * ) / 96 AS col0
----
0

query I rowsort
SELECT ALL 51 + - + 27
----
24

query I rowsort
SELECT ALL 27 + + 66
----
93

query I rowsort
SELECT DISTINCT 86 + 93 + + 10 + + + 40 + 5 AS col1
----
234

onlyif mysql # aggregate syntax: 
query II rowsort label-4923
SELECT ALL COUNT( * ), - 67 AS col0
----
1
-67

skipif mysql # not compatible
query II rowsort label-4923
SELECT ALL COUNT ( * ), - 67 AS col0
----
1
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4924
SELECT - COUNT( * ) DIV - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4924
SELECT - COUNT ( * ) / - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT + 9 * SUM( ALL - 86 )
----
-774

skipif mysql # not compatible
query I rowsort label-4925
SELECT + 9 * SUM ( ALL - 86 )
----
-774

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT + - COUNT( * ) - ( 80 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4926
SELECT + - COUNT ( * ) - ( 80 ) AS col1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4927
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + - 70 * 6 + + + 37
----
-383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT + + CAST( - 82 AS SIGNED ) - - + NULLIF ( ( + COUNT( * ) ), + 27 - + 84 )
----
-81

skipif mysql # not compatible
query I rowsort label-4929
SELECT + + CAST ( - 82 AS INTEGER ) - - + NULLIF ( ( + COUNT ( * ) ), + 27 - + 84 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - MAX( + + 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4930
SELECT - MAX ( + + 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4931
SELECT ALL ( COALESCE ( - + 77, - 35 DIV 55 + 89, - COUNT( * ) + MIN( DISTINCT + + 3 ) + 5 ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL ( COALESCE ( - + 77, - 35 / 55 + 89, - COUNT ( * ) + MIN ( DISTINCT + + 3 ) + 5 ) ) AS col2
----
-77

query I rowsort
SELECT + + 9 * + + 41
----
369

query I rowsort
SELECT ALL 77 + 67
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4934
SELECT DISTINCT + 82 * + 29 DIV + + COUNT( * ) - 24 AS col1
----
2354

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT + 82 * + 29 / + + COUNT ( * ) - 24 AS col1
----
2354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT ALL - 24 + - CAST( 70 AS SIGNED ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL - 24 + - CAST ( 70 AS INTEGER ) AS col1
----
-94

query I rowsort
SELECT + 29 - - 79
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL + + MAX( - 76 ) + - - 1 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL + + MAX ( - 76 ) + - - 1 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + 43 - - - NULLIF ( + 66, - 98 * MIN( 9 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-4938
SELECT + 43 - - - NULLIF ( + 66, - 98 * MIN ( 9 ) )
----
-23

query II rowsort
SELECT - 12 AS col0, 32 AS col0
----
-12
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT MAX( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-4940
SELECT MAX ( + 40 )
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-4941
SELECT DISTINCT - 21 * 48 * + 7 + 10, + 15 - - + 68 + - - 62 DIV - 37 AS col1
----
-7046
82

skipif mysql # not compatible
query II rowsort label-4941
SELECT DISTINCT - 21 * 48 * + 7 + 10, + 15 - - + 68 + - - 62 / - 37 AS col1
----
-7046
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4942
SELECT + CASE 19 WHEN - NULLIF ( - - CAST( - MIN( DISTINCT - - 41 ) AS SIGNED ), + CAST( NULL AS SIGNED ) ) THEN 8 ELSE 5 + + 64 END AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4942
SELECT + CASE 19 WHEN - NULLIF ( - - CAST ( - MIN ( DISTINCT - - 41 ) AS INTEGER ), + CAST ( NULL AS INTEGER ) ) THEN 8 ELSE 5 + + 64 END AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4943
SELECT + - 83 + + - 84 - 81 * + - 79 - + - 71 * - + 34, AVG ( ALL + + CAST( NULL AS SIGNED ) ) AS col2
----
3818
NULL

skipif mysql # not compatible
query II rowsort label-4943
SELECT + - 83 + + - 84 - 81 * + - 79 - + - 71 * - + 34, AVG ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2
----
3818
NULL

query I rowsort
SELECT - - 77 * 14 * + 61 * - 63 - - + 28
----
-4142726

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT - ( 12 ) - - MIN( ( - 1 ) ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4945
SELECT - ( 12 ) - - MIN ( ( - 1 ) ) AS col1
----
-13

query II rowsort
SELECT + 96 AS col1, 78 * - 77
----
96
-6006

query II rowsort
SELECT ALL + - 2 AS col1, - 90 AS col2
----
-2
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4948
SELECT ALL - CASE + 46 WHEN - 0 THEN NULL ELSE + 89 END DIV - - NULLIF ( + COALESCE ( - ( - 34 ), ( + - 51 ) * - COALESCE ( + + 1, - 73 ) + + + 18 * + CAST( + MIN( ALL 58 ) AS SIGNED ) ), + - 9 + - 90 )
----
-2

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL - CASE + 46 WHEN - 0 THEN NULL ELSE + 89 END / - - NULLIF ( + COALESCE ( - ( - 34 ), ( + - 51 ) * - COALESCE ( + + 1, - 73 ) + + + 18 * + CAST ( + MIN ( ALL 58 ) AS INTEGER ) ), + - 9 + - 90 )
----
-2

query I rowsort
SELECT DISTINCT - 80 * - 94
----
7520

query I rowsort
SELECT - 6 + ( 95 )
----
89

query I rowsort
SELECT + 17 * + - 84
----
-1428

query I rowsort
SELECT - 23 * + 90
----
-2070

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT ALL - 99 DIV + 44
----
-2

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL - 99 / + 44
----
-2

query I rowsort
SELECT + 93 * + 27 AS col2
----
2511

query I rowsort
SELECT NULLIF ( - 37, - - 93 )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4956
SELECT - 76 DIV COALESCE ( - CASE - - 40 WHEN + 2 THEN + 76 WHEN + 36 THEN NULL ELSE ( + CASE COUNT( * ) WHEN 52 * - + 79 * 3 - + 77 THEN + - 2 WHEN + 67 * + + 99 * - + 60 THEN - 7 ELSE NULL END ) END, + NULLIF ( - 32, - - 83 + 64 * - 12 ) )
----
2

skipif mysql # not compatible
query I rowsort label-4956
SELECT - 76 / COALESCE ( - CASE - - 40 WHEN + 2 THEN + 76 WHEN + 36 THEN NULL ELSE ( + CASE COUNT ( * ) WHEN 52 * - + 79 * 3 - + 77 THEN + - 2 WHEN + 67 * + + 99 * - + 60 THEN - 7 ELSE NULL END ) END, + NULLIF ( - 32, - - 83 + 64 * - 12 ) )
----
2

query I rowsort
SELECT - 87 + 44
----
-43

query I rowsort
SELECT - 63 * - - 30 col1
----
-1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4959
SELECT ALL 57 * CAST( COUNT( * ) AS SIGNED ) + + 23
----
80

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL 57 * CAST ( COUNT ( * ) AS INTEGER ) + + 23
----
80

query II rowsort
SELECT - 57 - + 16 col2, 27
----
-73
27

query I rowsort
SELECT ALL + 9 * + 5 * + 37 AS col1
----
1665

query I rowsort
SELECT + 76 * + + 72 * + + ( + 43 ) + - + 45 AS col2
----
235251

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL 94 * 62 * - COUNT( DISTINCT 98 ) * - 2 - - 65 * - 30 + + 63 * + 71 AS col2
----
14179

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL 94 * 62 * - COUNT ( DISTINCT 98 ) * - 2 - - 65 * - 30 + + 63 * + 71 AS col2
----
14179

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT COUNT( DISTINCT - + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-4964
SELECT COUNT ( DISTINCT - + 11 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4965
SELECT - 64 + - + CASE + 84 WHEN 46 + + 75 * + MIN( COALESCE ( - 36, - 78 * ( + 6 ) * + - ( - ( 37 ) ), + CAST( NULL AS SIGNED ) ) ) * - + 91 + 65 THEN + 11 / + COUNT( * ) * + COUNT( * ) ELSE NULL END - + ( - - 78 ) / 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT - 64 + - + CASE + 84 WHEN 46 + + 75 * + MIN ( COALESCE ( - 36, - 78 * ( + 6 ) * + - ( - ( 37 ) ), + CAST ( NULL AS INTEGER ) ) ) * - + 91 + 65 THEN + 11 / + COUNT ( * ) * + COUNT ( * ) ELSE NULL END - + ( - - 78 ) / 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4966
SELECT - 78 + - ( 44 ) + + COUNT( ALL - CAST( + 30 AS SIGNED ) )
----
-121

skipif mysql # not compatible
query I rowsort label-4966
SELECT - 78 + - ( 44 ) + + COUNT ( ALL - CAST ( + 30 AS INTEGER ) )
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT + COUNT( * ) - + ( + 59 )
----
-58

skipif mysql # not compatible
query I rowsort label-4967
SELECT + COUNT ( * ) - + ( + 59 )
----
-58

query I rowsort
SELECT ALL 21 * + 20
----
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4969
SELECT - 91 + 72 - + 1 + - - 11 - - COALESCE ( - - COALESCE ( 72, - ( - + 55 ) ), - + 30 * + 5 + - COUNT( DISTINCT - 68 ) + + + 93 + - 20 * + CAST( NULL AS SIGNED ) ) * - 56 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT - 91 + 72 - + 1 + - - 11 - - COALESCE ( - - COALESCE ( 72, - ( - + 55 ) ), - + 30 * + 5 + - COUNT ( DISTINCT - 68 ) + + + 93 + - 20 * + CAST ( NULL AS INTEGER ) ) * - 56 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT DISTINCT + 75 + + + ( COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT + 75 + + + ( COUNT ( * ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL + AVG ( ALL + + 48 ) + - 69 + CASE 10 WHEN COUNT( * ) THEN + 52 / 63 * 36 * - COUNT( * ) ELSE NULL END * + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL + AVG ( ALL + + 48 ) + - 69 + CASE 10 WHEN COUNT ( * ) THEN + 52 / 63 * 36 * - COUNT ( * ) ELSE NULL END * + 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT + + 47 + + 50 AS col2, + 22 * - + ( - MIN( ALL - + 21 ) ) AS col1
----
97
-462

skipif mysql # not compatible
query II rowsort label-4972
SELECT + + 47 + + 50 AS col2, + 22 * - + ( - MIN ( ALL - + 21 ) ) AS col1
----
97
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL - CAST( + 6 AS SIGNED ) * - 89
----
534

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - CAST ( + 6 AS INTEGER ) * - 89
----
534

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT + COUNT( * ) + - CASE COUNT( * ) WHEN 75 - + - 37 + - + 81 + - 45 * + COUNT( * ) THEN 29 + - COUNT( * ) ELSE + SUM( + 32 ) END AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4974
SELECT + COUNT ( * ) + - CASE COUNT ( * ) WHEN 75 - + - 37 + - + 81 + - 45 * + COUNT ( * ) THEN 29 + - COUNT ( * ) ELSE + SUM ( + 32 ) END AS col2
----
-31

query I rowsort
SELECT ( + 70 ) * + 52
----
3640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4976
SELECT - - ( - 5 ), + CAST( - 48 AS SIGNED ) * 50 * 98 AS col1
----
-5
-235200

skipif mysql # not compatible
query II rowsort label-4976
SELECT - - ( - 5 ), + CAST ( - 48 AS INTEGER ) * 50 * 98 AS col1
----
-5
-235200

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL - 92 - + 64 + - 42 + - + ( + + SUM( ALL + ( - + ( + + 29 ) ) ) )
----
-169

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - 92 - + 64 + - 42 + - + ( + + SUM ( ALL + ( - + ( + + 29 ) ) ) )
----
-169

onlyif mysql # DIV for integer division: 
query I rowsort label-4978
SELECT 99 DIV - 29 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4978
SELECT 99 / - 29 AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4979
SELECT ALL COUNT( * ) DIV + COALESCE ( + + 75, 25 * + COUNT( * ) DIV - 36, - 28 * - 24 DIV + 62 DIV - + 75 + - 5 ) DIV + 3
----
0

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL COUNT ( * ) / + COALESCE ( + + 75, 25 * + COUNT ( * ) / - 36, - 28 * - 24 / + 62 / - + 75 + - 5 ) / + 3
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4980
SELECT DISTINCT - ( + 74 ) AS col1, 78 + - - 61 + - MAX( ALL + CAST( NULL AS SIGNED ) ) - + 13
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-4980
SELECT DISTINCT - ( + 74 ) AS col1, 78 + - - 61 + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) - + 13
----
-74
NULL

query I rowsort
SELECT DISTINCT - - 95 col1
----
95

query I rowsort
SELECT ALL - ( + - 64 ) * - 86 - + 98 * 79 AS col0
----
-13246

query I rowsort
SELECT 67 * 65 + 14
----
4369

query I rowsort
SELECT ALL 88 * 82
----
7216

query I rowsort
SELECT 44 * 73 * + 51 * - + 26
----
-4259112

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT 15 + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4986
SELECT 15 + COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT - 10 * + 11 - + COUNT( * )
----
-111

skipif mysql # not compatible
query I rowsort label-4987
SELECT - 10 * + 11 - + COUNT ( * )
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT ALL - COUNT( 83 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL - COUNT ( 83 ) AS col0
----
-1

query II rowsort
SELECT ALL 52 * + ( 43 ), + 16 AS col2
----
2236
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4990
SELECT 34 DIV - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-4990
SELECT 34 / - COUNT ( * )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL - 68 + COUNT( ALL - + 75 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL - 68 + COUNT ( ALL - + 75 ) AS col1
----
-67

query II rowsort
SELECT 97 AS col2, 66 + - 42 * - 66 AS col1
----
97
2838

query I rowsort
SELECT DISTINCT - ( - + 1 ) AS col2
----
1

query II rowsort
SELECT 84 AS col2, - 48 AS col0
----
84
-48

query I rowsort
SELECT ALL + 5 + - 4 + + + 13 * + 81 col0
----
1054

query I rowsort
SELECT ALL - 50 + + + 83
----
33

query II rowsort
SELECT 92, 76 + + 23 AS col1
----
92
99

query I rowsort
SELECT 69 * + 41 + 74 AS col0
----
2903

query I rowsort
SELECT DISTINCT - 32 * + + 79 AS col0
----
-2528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT ALL + 78 * 30 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL + 78 * 30 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5001
SELECT 59 * - + ( + 91 ) * - CASE - 7 WHEN + 54 THEN + COUNT( * ) * - 62 WHEN 57 - + - 2 THEN - CAST( NULL AS DECIMAL ) * CASE 74 WHEN + + 9 THEN NULL WHEN ( + ( - AVG ( ALL + 68 ) ) ) * - MAX( 60 ) THEN 42 WHEN 65 THEN NULL END ELSE NULL END + - 70 * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT 59 * - + ( + 91 ) * - CASE - 7 WHEN + 54 THEN + COUNT ( * ) * - 62 WHEN 57 - + - 2 THEN - CAST ( NULL AS REAL ) * CASE 74 WHEN + + 9 THEN NULL WHEN ( + ( - AVG ( ALL + 68 ) ) ) * - MAX ( 60 ) THEN 42 WHEN 65 THEN NULL END ELSE NULL END + - 70 * 60
----
NULL

query I rowsort
SELECT 19 + - + 14 col0
----
5

query I rowsort
SELECT ALL 36 * + + 63
----
2268

onlyif mysql # aggregate syntax: 
query II rowsort label-5004
SELECT - + COUNT( * ) AS col1, 42 AS col2
----
-1
42

skipif mysql # not compatible
query II rowsort label-5004
SELECT - + COUNT ( * ) AS col1, 42 AS col2
----
-1
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT ALL + - 54 - - 91 + + 42 + - 86 DIV + 52 + - ( - 24 ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL + - 54 - - 91 + + 42 + - 86 / + 52 + - ( - 24 ) AS col2
----
102

query II rowsort
SELECT - 18 col2, 56
----
-18
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5007
SELECT DISTINCT + CASE - 11 WHEN CAST( + CASE + + 72 WHEN 22 THEN NULLIF ( + 84, 98 ) - - 22 * CASE + 88 WHEN + 20 THEN + 95 * 7 + 26 + 26 ELSE - ( + - 8 ) END WHEN - 73 + + NULLIF ( 10, + + 33 ) THEN NULL WHEN - COUNT( - 77 ) THEN - 10 / COUNT( * ) + + CAST( NULL AS SIGNED ) ELSE NULL END AS DECIMAL ) THEN 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT + CASE - 11 WHEN CAST ( + CASE + + 72 WHEN 22 THEN NULLIF ( + 84, 98 ) - - 22 * CASE + 88 WHEN + 20 THEN + 95 * 7 + 26 + 26 ELSE - ( + - 8 ) END WHEN - 73 + + NULLIF ( 10, + + 33 ) THEN NULL WHEN - COUNT ( - 77 ) THEN - 10 / COUNT ( * ) + + CAST ( NULL AS INTEGER ) ELSE NULL END AS REAL ) THEN 89 END AS col0
----
NULL

query I rowsort
SELECT 78 - - 8 AS col2
----
86

query II rowsort
SELECT - 34 * 37 + - 9 * - + 3, + 62 AS col0
----
-1231
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT 24 - - ( + - COUNT( * ) )
----
23

skipif mysql # not compatible
query I rowsort label-5010
SELECT 24 - - ( + - COUNT ( * ) )
----
23

query I rowsort
SELECT ALL - - 99 * + + 67
----
6633

query I rowsort
SELECT + 0 * + + 56
----
0

query I rowsort
SELECT DISTINCT 40 * - 75 * 36 * + 28 * - 25
----
75600000

query I rowsort
SELECT - - NULLIF ( 57, 69 ) AS col0
----
57

query I rowsort
SELECT 93 - - 17 AS col0
----
110

query I rowsort
SELECT DISTINCT - + 57 * - 10
----
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5017
SELECT COUNT( * ) + 49 AS col1, + COUNT( DISTINCT - ( 46 ) ) DIV 10
----
50
0

skipif mysql # not compatible
query II rowsort label-5017
SELECT COUNT ( * ) + 49 AS col1, + COUNT ( DISTINCT - ( 46 ) ) / 10
----
50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT COUNT( * ) / - CASE + 78 WHEN + 16 THEN + 55 - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT COUNT ( * ) / - CASE + 78 WHEN + 16 THEN + 55 - 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT 24 * + COUNT( - 50 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-5019
SELECT 24 * + COUNT ( - 50 ) col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5020
SELECT ALL + NULLIF ( + 16, - + CAST( NULL AS SIGNED ) ) * - + 73 + NULLIF ( 10, + - 71 )
----
-1158

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL + NULLIF ( + 16, - + CAST ( NULL AS INTEGER ) ) * - + 73 + NULLIF ( 10, + - 71 )
----
-1158

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT SUM( - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-5021
SELECT SUM ( - 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT DISTINCT 6 * + 69 + - - MAX( DISTINCT 15 )
----
429

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT 6 * + 69 + - - MAX ( DISTINCT 15 )
----
429

query I rowsort
SELECT ALL 74 * + 20 + - + 69 AS col2
----
1411

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT SUM( ALL + ( + 29 ) ) col2
----
29

skipif mysql # not compatible
query I rowsort label-5024
SELECT SUM ( ALL + ( + 29 ) ) col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5025
SELECT DISTINCT 81 + - 8 DIV 61 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT 81 + - 8 / 61 AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT MAX( ALL - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-5027
SELECT MAX ( ALL - 16 )
----
-16

query I rowsort
SELECT DISTINCT 33 * + - ( 57 ) AS col2
----
-1881

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT 52 * - - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-5029
SELECT 52 * - - COUNT ( * ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT SUM( 18 ) + 57 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5030
SELECT SUM ( 18 ) + 57 AS col1
----
75

query I rowsort
SELECT 94 * + - 17
----
-1598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5032
SELECT ALL + 74 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL + 74 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 73 * 93 + - 88 col1
----
6701

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT + 82 + ( COUNT( * ) ) + COUNT( * ) col1
----
84

skipif mysql # not compatible
query I rowsort label-5034
SELECT + 82 + ( COUNT ( * ) ) + COUNT ( * ) col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT DISTINCT + 94 DIV 74
----
1

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT + 94 / 74
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL MAX( + 19 ) - + 58 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL MAX ( + 19 ) - + 58 AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT + 40 * + + 74 + - - CAST( NULL AS SIGNED ) * 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT + 40 * + + 74 + - - CAST ( NULL AS INTEGER ) * 69 AS col2
----
NULL

query I rowsort
SELECT - 9 + 31 + + - CASE - - 9 WHEN + 97 THEN 1 ELSE NULL END * + + 55 / 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT + - 45 + - COALESCE ( + 98, 24 * - - 81 + - + 68 * COUNT( * ) * + - 58 + - 84 + 47 ) + - 11
----
-154

skipif mysql # not compatible
query I rowsort label-5039
SELECT + - 45 + - COALESCE ( + 98, 24 * - - 81 + - + 68 * COUNT ( * ) * + - 58 + - 84 + 47 ) + - 11
----
-154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5040
SELECT - 36 DIV - 55 * + - 66 DIV + + 94 DIV - 50 + - 90 - + + MIN( NULLIF ( 18, - + 75 ) ) AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-5040
SELECT - 36 / - 55 * + - 66 / + + 94 / - 50 + - 90 - + + MIN ( NULLIF ( 18, - + 75 ) ) AS col1
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-5041
SELECT ALL + 1 * - + 0, COUNT( * ) + - - 34 AS col2
----
0
35

skipif mysql # not compatible
query II rowsort label-5041
SELECT ALL + 1 * - + 0, COUNT ( * ) + - - 34 AS col2
----
0
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5042
SELECT ALL - MIN( - 30 ) DIV + ( - 8 ) + + 1 + + 37
----
35

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL - MIN ( - 30 ) / + ( - 8 ) + + 1 + + 37
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT COUNT( ALL + 29 )
----
1

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT COUNT ( ALL + 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL 68 * - COUNT( * ) * + - 81
----
5508

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL 68 * - COUNT ( * ) * + - 81
----
5508

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT - COUNT( * ) + - - 42 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5045
SELECT - COUNT ( * ) + - - 42 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5046
SELECT - 25 + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT - 25 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5047
SELECT - - 38 * 61 AS col2, - 42 - - CAST( NULL AS DECIMAL ) / + 64 + 5
----
2318
NULL

skipif mysql # not compatible
query II rowsort label-5047
SELECT - - 38 * 61 AS col2, - 42 - - CAST ( NULL AS REAL ) / + 64 + 5
----
2318
NULL

query I rowsort
SELECT ALL + 40 + + 76 col0
----
116

query I rowsort
SELECT - 88 + - + 12 col2
----
-100

query I rowsort
SELECT DISTINCT + 67 + - 34
----
33

query I rowsort
SELECT ( + ( - 86 ) )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5052
SELECT ALL + MAX( DISTINCT 15 ) DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + MAX ( DISTINCT 15 ) / - + 95
----
0

query I rowsort
SELECT ALL - 0 * - 13 + + 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT - 67 * CASE + ( - ( + - COALESCE ( - + 8, 81 ) ) ) WHEN + 37 THEN - - COUNT( * ) WHEN + COALESCE ( - 81, - - COUNT( * ) * + 39 ) THEN NULL END + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - 67 * CASE + ( - ( + - COALESCE ( - + 8, 81 ) ) ) WHEN + 37 THEN - - COUNT ( * ) WHEN + COALESCE ( - 81, - - COUNT ( * ) * + 39 ) THEN NULL END + 24 AS col0
----
NULL

query I rowsort
SELECT + 64 * - 88 * 42 + - 98
----
-236642

query I rowsort
SELECT ( - 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ( + + SUM( 90 ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5057
SELECT ( + + SUM ( 90 ) ) AS col2
----
90

query I rowsort
SELECT ALL + 14 col2
----
14

query I rowsort
SELECT ( + - 84 ) col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5060
SELECT + CAST( 8 AS SIGNED ) * 8 * + CASE - 23 WHEN + 34 / COUNT( * ) + + COUNT( * ) THEN - ( 14 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT + CAST ( 8 AS INTEGER ) * 8 * + CASE - 23 WHEN + 34 / COUNT ( * ) + + COUNT ( * ) THEN - ( 14 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT + MIN( DISTINCT + + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5061
SELECT + MIN ( DISTINCT + + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT 26 * - 37 - + COUNT( * ) + + 3 AS col0
----
-960

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT 26 * - 37 - + COUNT ( * ) + + 3 AS col0
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT + - ( - 17 ) + - 38 + - COUNT( * ) - 41 + - 67
----
-130

skipif mysql # not compatible
query I rowsort label-5063
SELECT + - ( - 17 ) + - 38 + - COUNT ( * ) - 41 + - 67
----
-130

query I rowsort
SELECT ALL + - 54 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT + - 10 * 67 * + - 98 * - - 92 * - COUNT( * ) col2
----
-6040720

skipif mysql # not compatible
query I rowsort label-5065
SELECT + - 10 * 67 * + - 98 * - - 92 * - COUNT ( * ) col2
----
-6040720

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL - 5 * - 29 - + 69 + - SUM( ALL - - ( - - 50 ) ) - + 61
----
-35

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL - 5 * - 29 - + 69 + - SUM ( ALL - - ( - - 50 ) ) - + 61
----
-35

query I rowsort
SELECT - 90 * + 19 + - 20 + - - 47
----
-1683

query I rowsort
SELECT DISTINCT - 61 * ( - 27 ) * 34 * + 50 * 77 AS col0
----
215592300

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT - - COUNT( + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-5069
SELECT - - COUNT ( + 77 )
----
1

query I rowsort
SELECT DISTINCT + ( 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT ALL + - COUNT( * ) + + 77 + 20 + - + MIN( - 17 ) * + 7 + - 39 + 21 * - 51
----
-895

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL + - COUNT ( * ) + + 77 + 20 + - + MIN ( - 17 ) * + 7 + - 39 + 21 * - 51
----
-895

query I rowsort
SELECT + + 83 * 37 AS col2
----
3071

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL CASE 92 WHEN - + 58 THEN 55 * - NULLIF ( 70, + 46 * + 77 + - ( 15 ) - - 0 + + + 63 * - COALESCE ( - + 42, + 69, - COUNT( DISTINCT + 50 ) ) ) WHEN - 93 * + 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL CASE 92 WHEN - + 58 THEN 55 * - NULLIF ( 70, + 46 * + 77 + - ( 15 ) - - 0 + + + 63 * - COALESCE ( - + 42, + 69, - COUNT ( DISTINCT + 50 ) ) ) WHEN - 93 * + 68 THEN NULL END
----
NULL

query I rowsort
SELECT + - 98 - 75
----
-173

onlyif mysql # DIV for integer division: 
query I rowsort label-5075
SELECT - + 34 DIV 2
----
-17

skipif mysql # not compatible
query I rowsort label-5075
SELECT - + 34 / 2
----
-17

query I rowsort
SELECT - 46 * 84 AS col1
----
-3864

onlyif mysql # aggregate syntax: 
query II rowsort label-5077
SELECT 97 AS col1, + SUM( DISTINCT - 85 ) AS col0
----
97
-85

skipif mysql # not compatible
query II rowsort label-5077
SELECT 97 AS col1, + SUM ( DISTINCT - 85 ) AS col0
----
97
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT DISTINCT SUM( ALL - 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT SUM ( ALL - 96 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL 29 + 2 - - - 63 + - MIN( DISTINCT + 3 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL 29 + 2 - - - 63 + - MIN ( DISTINCT + 3 ) AS col0
----
-35

query I rowsort
SELECT ALL ( + + 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT - 93 - - COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5081
SELECT - 93 - - COUNT ( * ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT + SUM( DISTINCT - 76 ) AS col1, 86
----
-76
86

skipif mysql # not compatible
query II rowsort label-5082
SELECT + SUM ( DISTINCT - 76 ) AS col1, 86
----
-76
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT ALL + COALESCE ( + 79, 64 DIV - 58 )
----
79

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + COALESCE ( + 79, 64 / - 58 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT - 57 + COUNT( * ) * 89
----
32

skipif mysql # not compatible
query I rowsort label-5084
SELECT - 57 + COUNT ( * ) * 89
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5085
SELECT + COUNT( * ) AS col0, SUM( ALL + 8 ) * 97
----
1
776

skipif mysql # not compatible
query II rowsort label-5085
SELECT + COUNT ( * ) AS col0, SUM ( ALL + 8 ) * 97
----
1
776

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL + 19 * - 41 * - - COUNT( * ) AS col0
----
-779

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL + 19 * - 41 * - - COUNT ( * ) AS col0
----
-779

query I rowsort
SELECT - ( COALESCE ( - - 56, + 80, - 73 ) ) * - 28 + + 70 AS col1
----
1638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5088
SELECT ALL + COALESCE ( - + CAST( NULL AS SIGNED ), - 40 + + + COUNT( * ) )
----
-39

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL + COALESCE ( - + CAST ( NULL AS INTEGER ), - 40 + + + COUNT ( * ) )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-5089
SELECT + 96 AS col2, COUNT( 90 ) AS col1
----
96
1

skipif mysql # not compatible
query II rowsort label-5089
SELECT + 96 AS col2, COUNT ( 90 ) AS col1
----
96
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5090
SELECT 97 + + 25 / - MIN( CAST( NULL AS DECIMAL ) ) col0, ( + 61 ) AS col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-5090
SELECT 97 + + 25 / - MIN ( CAST ( NULL AS REAL ) ) col0, ( + 61 ) AS col0
----
NULL
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5091
SELECT + ( + - 89 ) DIV + - 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5091
SELECT + ( + - 89 ) / + - 38 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5092
SELECT ( - 6 ) DIV 56 * COUNT( * ) - - 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5092
SELECT ( - 6 ) / 56 * COUNT ( * ) - - 50 AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT ALL - - ( - COALESCE ( + 34, - COALESCE ( 91, + - NULLIF ( - 41, - - 94 ) + - 27 DIV 93 ), - + 36 * + COALESCE ( 95, 52 DIV - 9 ) - + 54 * + 79 * + 18 * 51 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - - ( - COALESCE ( + 34, - COALESCE ( 91, + - NULLIF ( - 41, - - 94 ) + - 27 / 93 ), - + 36 * + COALESCE ( 95, 52 / - 9 ) - + 54 * + 79 * + 18 * 51 ) )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5094
SELECT - 59 * - CASE - - 43 WHEN 45 * 43 + + 93 + - 28 + - + 17 * - + 26 / + + COALESCE ( 36, - - 57 + 10, - + 89 / - - 1 / 10 * CASE + - 34 WHEN - 46 THEN NULL ELSE + ( - - COUNT( * ) ) + + - ( - ( - - 74 ) ) END ) - CAST( - 4 AS DECIMAL ) THEN 10 * + 67 + 79 ELSE 27 END + + 17 * 26 AS col0
----
2035

skipif mysql # not compatible
query I rowsort label-5094
SELECT - 59 * - CASE - - 43 WHEN 45 * 43 + + 93 + - 28 + - + 17 * - + 26 / + + COALESCE ( 36, - - 57 + 10, - + 89 / - - 1 / 10 * CASE + - 34 WHEN - 46 THEN NULL ELSE + ( - - COUNT ( * ) ) + + - ( - ( - - 74 ) ) END ) - CAST ( - 4 AS REAL ) THEN 10 * + 67 + 79 ELSE 27 END + + 17 * 26 AS col0
----
2035

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5095
SELECT - CAST( NULL AS SIGNED ) AS col1, - 61
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-5095
SELECT - CAST ( NULL AS INTEGER ) AS col1, - 61
----
NULL
-61

query I rowsort
SELECT - 5 * + + 85 AS col1
----
-425

onlyif mysql # aggregate syntax: 
query II rowsort label-5097
SELECT - COUNT( * ) + - 69 + + ( ( COUNT( * ) ) ) * + - CASE + COUNT( * ) WHEN + ( 94 ) THEN NULL ELSE - 98 * + 17 END AS col1, 33
----
1596
33

skipif mysql # not compatible
query II rowsort label-5097
SELECT - COUNT ( * ) + - 69 + + ( ( COUNT ( * ) ) ) * + - CASE + COUNT ( * ) WHEN + ( 94 ) THEN NULL ELSE - 98 * + 17 END AS col1, 33
----
1596
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL - COUNT( - 94 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL - COUNT ( - 94 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL ( CASE - - 34 WHEN + - 12 THEN + ( COUNT( * ) ) END ) / + - 2 * 63 + + ( - - 91 ) * + 24 / 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL ( CASE - - 34 WHEN + - 12 THEN + ( COUNT ( * ) ) END ) / + - 2 * 63 + + ( - - 91 ) * + 24 / 33 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT COUNT( * ) + - 33 * - 36 AS col1
----
1189

skipif mysql # not compatible
query I rowsort label-5100
SELECT COUNT ( * ) + - 33 * - 36 AS col1
----
1189

query I rowsort
SELECT ALL - 73 + + 90
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT 53 + + 4 * + 55 + COUNT( * ) AS col0, - 77
----
274
-77

skipif mysql # not compatible
query II rowsort label-5102
SELECT 53 + + 4 * + 55 + COUNT ( * ) AS col0, - 77
----
274
-77

query I rowsort
SELECT DISTINCT - NULLIF ( - - 88, + + 25 * + - 73 )
----
-88

query I rowsort
SELECT ALL + 93 + - + 7 + 16 AS col1
----
102

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5105
SELECT - + NULLIF ( SUM( 23 ), 86 ) col0, - NULLIF ( + 39, 9 * - 16 - - CAST( NULL AS DECIMAL ) - + 77 - + 77 + 34 + + SUM( - 13 ) + 90 )
----
-23
-39

skipif mysql # not compatible
query II rowsort label-5105
SELECT - + NULLIF ( SUM ( 23 ), 86 ) col0, - NULLIF ( + 39, 9 * - 16 - - CAST ( NULL AS REAL ) - + 77 - + 77 + 34 + + SUM ( - 13 ) + 90 )
----
-23
-39

query I rowsort
SELECT ( + + 97 ) + + + 88
----
185

query I rowsort
SELECT 78 + + + 11
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5108
SELECT ALL MIN( + - 25 ) + 87 DIV 18 + - 5
----
-26

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL MIN ( + - 25 ) + 87 / 18 + - 5
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT - 60 + + COUNT( * ) * - NULLIF ( + NULLIF ( + ( + 16 ), - - 94 ), NULLIF ( - - 3, - 40 + + 74 ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5109
SELECT - 60 + + COUNT ( * ) * - NULLIF ( + NULLIF ( + ( + 16 ), - - 94 ), NULLIF ( - - 3, - 40 + + 74 ) ) AS col0
----
-76

query II rowsort
SELECT 68 - + - 9 + + 92 - + 66 AS col2, - 66 AS col0
----
103
-66

query I rowsort
SELECT DISTINCT - + 58 + - 33 AS col1
----
-91

query I rowsort
SELECT ALL - 66 + 46 AS col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5113
SELECT DISTINCT 39 AS col0, CAST( 76 AS SIGNED ) AS col1
----
39
76

skipif mysql # not compatible
query II rowsort label-5113
SELECT DISTINCT 39 AS col0, CAST ( 76 AS INTEGER ) AS col1
----
39
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL COUNT( * ) + + 61 + - COUNT( * ) * - 38 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL COUNT ( * ) + + 61 + - COUNT ( * ) * - 38 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL 11 + COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL 11 + COUNT ( * ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5116
SELECT 53 + - - 82 col0, COUNT( * )
----
135
1

skipif mysql # not compatible
query II rowsort label-5116
SELECT 53 + - - 82 col0, COUNT ( * )
----
135
1

query I rowsort
SELECT 72 + - 11 * - 61 + + 31 col0
----
774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5118
SELECT 43 DIV + 83 * - + NULLIF ( + ( + 50 ), + + 98 DIV + - CASE 41 WHEN + - 80 THEN - COUNT( * ) END + - + 25 + + + ( - 9 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5118
SELECT 43 / + 83 * - + NULLIF ( + ( + 50 ), + + 98 / + - CASE 41 WHEN + - 80 THEN - COUNT ( * ) END + - + 25 + + + ( - 9 ) ) AS col0
----
0

query I rowsort
SELECT 78 * + 3
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT 68 * + - MIN( DISTINCT + - 82 ) AS col1
----
5576

skipif mysql # not compatible
query I rowsort label-5120
SELECT 68 * + - MIN ( DISTINCT + - 82 ) AS col1
----
5576

onlyif mysql # aggregate syntax: 
query II rowsort label-5121
SELECT DISTINCT 75 * 64 * - - COUNT( * ) AS col1, + 27 * - 8
----
4800
-216

skipif mysql # not compatible
query II rowsort label-5121
SELECT DISTINCT 75 * 64 * - - COUNT ( * ) AS col1, + 27 * - 8
----
4800
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL - ( - CASE - 42 WHEN - 10 / + - 32 THEN + 73 + - 47 * COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - ( - CASE - 42 WHEN - 10 / + - 32 THEN + 73 + - 47 * COUNT ( * ) END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5123
SELECT - COALESCE ( - - 61, - ( + + 40 ) ) / - ( - COUNT( * ) ) * COUNT( * ) + NULLIF ( CAST( NULL AS SIGNED ), - MIN( ALL - + CAST( NULL AS SIGNED ) ) + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT - COALESCE ( - - 61, - ( + + 40 ) ) / - ( - COUNT ( * ) ) * COUNT ( * ) + NULLIF ( CAST ( NULL AS INTEGER ), - MIN ( ALL - + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL - NULLIF ( 9, - ( + - 74 ) * + 92 * - 12 + + MAX( ALL + 11 ) + - 94 )
----
-9

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL - NULLIF ( 9, - ( + - 74 ) * + 92 * - 12 + + MAX ( ALL + 11 ) + - 94 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5125
SELECT DISTINCT - + ( + SUM( + 62 ) ), 60 + - + NULLIF ( 49, + 74 * + MIN( + 18 ) + - 99 ) * - 47 col0
----
-62
2363

skipif mysql # not compatible
query II rowsort label-5125
SELECT DISTINCT - + ( + SUM ( + 62 ) ), 60 + - + NULLIF ( 49, + 74 * + MIN ( + 18 ) + - 99 ) * - 47 col0
----
-62
2363

query I rowsort
SELECT ALL + - 36 + - 46
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL - 22 + + COUNT( 38 ) * - COUNT( - 1 ) * + 95 + 46 + 55 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL - 22 + + COUNT ( 38 ) * - COUNT ( - 1 ) * + 95 + 46 + 55 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT 68 * - + COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5128
SELECT 68 * - + COUNT ( * ) AS col1
----
-68

query II rowsort
SELECT ALL - 11 + - 1 AS col2, - 11 + - + 89 + + 98 + - 46 + + + 21
----
-12
-27

query II rowsort
SELECT ALL - NULLIF ( 20, + 7 ) AS col1, + 29 - + ( - 68 ) * 9
----
-20
641

onlyif mysql # DIV for integer division: 
query I rowsort label-5131
SELECT - 92 DIV + - COALESCE ( + 91, + 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5131
SELECT - 92 / + - COALESCE ( + 91, + 33 ) AS col0
----
1

query I rowsort
SELECT ALL - 61 + - - 30 + + 97
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5133
SELECT + ( - 48 ) * + CAST( NULL AS DECIMAL ) AS col2, + 11 + 39
----
NULL
50

skipif mysql # not compatible
query II rowsort label-5133
SELECT + ( - 48 ) * + CAST ( NULL AS REAL ) AS col2, + 11 + 39
----
NULL
50

query I rowsort
SELECT DISTINCT + + 18 * - + ( + 91 ) AS col0
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL - + 56 + - 68 + + CASE + 80 WHEN 1 THEN + 24 * + COUNT( * ) ELSE NULL END + + 43 + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - + 56 + - 68 + + CASE + 80 WHEN 1 THEN + 24 * + COUNT ( * ) ELSE NULL END + + 43 + + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5136
SELECT DISTINCT 6 DIV - + NULLIF ( + 6, + + COALESCE ( - - ( + MIN( - 58 ) ), - 1 ) * 6 + - ( + - CASE - 89 WHEN 40 THEN NULL WHEN 98 THEN NULLIF ( MIN( + 26 ), 1 * - 95 * + 87 + - + 42 ) ELSE + - CASE - + 42 WHEN - 97 THEN - NULLIF ( 90, 98 + + COUNT( - 27 + 23 ) ) + COUNT( * ) WHEN - 47 DIV 8 + + 31 * 84 THEN NULL WHEN 53 THEN NULL END END ) * 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT 6 / - + NULLIF ( + 6, + + COALESCE ( - - ( + MIN ( - 58 ) ), - 1 ) * 6 + - ( + - CASE - 89 WHEN 40 THEN NULL WHEN 98 THEN NULLIF ( MIN ( + 26 ), 1 * - 95 * + 87 + - + 42 ) ELSE + - CASE - + 42 WHEN - 97 THEN - NULLIF ( 90, 98 + + COUNT ( - 27 + 23 ) ) + COUNT ( * ) WHEN - 47 / 8 + + 31 * 84 THEN NULL WHEN 53 THEN NULL END END ) * 29 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5137
SELECT DISTINCT - 68 - - ( + - COUNT( * ) ) - - NULLIF ( - COUNT( * ), ( - 80 ) / + 2 / + CAST( NULL AS SIGNED ) / MIN( DISTINCT + CAST( NULL AS SIGNED ) ) )
----
-70

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT - 68 - - ( + - COUNT ( * ) ) - - NULLIF ( - COUNT ( * ), ( - 80 ) / + 2 / + CAST ( NULL AS INTEGER ) / MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5138
SELECT + 85 * + CAST( MIN( ALL + 86 ) AS SIGNED ) * ( + - ( + 84 ) ) + - 88 * + COUNT( * ) + + 88 - - + 51
----
-613989

skipif mysql # not compatible
query I rowsort label-5138
SELECT + 85 * + CAST ( MIN ( ALL + 86 ) AS INTEGER ) * ( + - ( + 84 ) ) + - 88 * + COUNT ( * ) + + 88 - - + 51
----
-613989

query I rowsort
SELECT DISTINCT 70 - - 35 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT 27 + - MAX( + 81 )
----
-54

skipif mysql # not compatible
query I rowsort label-5140
SELECT 27 + - MAX ( + 81 )
----
-54

query I rowsort
SELECT 34 * + 88 * + 88
----
263296

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT - SUM( ALL - - 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5142
SELECT - SUM ( ALL - - 52 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT 53 + + + COUNT( + + 92 ) * 0 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5143
SELECT 53 + + + COUNT ( + + 92 ) * 0 AS col1
----
53

query I rowsort
SELECT 88 * + + 29 AS col2
----
2552

query I rowsort
SELECT ALL 69 * + 96
----
6624

query I rowsort
SELECT 59 * + + 64
----
3776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5147
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT - SUM( ALL + 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5148
SELECT - SUM ( ALL + 77 ) AS col0
----
-77

query I rowsort
SELECT + 10 + - 76 * + 99
----
-7514

query I rowsort
SELECT ALL - 28 * + - 49 AS col0
----
1372

query II rowsort
SELECT DISTINCT 75, 73 * + - 37 AS col2
----
75
-2701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT ALL 34 * COUNT( * ) * + + COUNT( * ) * + + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL 34 * COUNT ( * ) * + + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5153
SELECT + MAX( - + 97 ) + - 93 + 4 DIV ( + COUNT( * ) ) DIV - 25 + 23 AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-5153
SELECT + MAX ( - + 97 ) + - 93 + 4 / ( + COUNT ( * ) ) / - 25 + 23 AS col1
----
-167

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5154
SELECT + 92 / - - 75 * + CAST( NULL AS SIGNED ) AS col1, + 18 - - 46
----
NULL
64

skipif mysql # not compatible
query II rowsort label-5154
SELECT + 92 / - - 75 * + CAST ( NULL AS INTEGER ) AS col1, + 18 - - 46
----
NULL
64

query I rowsort
SELECT + 98 * + ( - NULLIF ( + - 72, + 11 ) ) AS col1
----
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL 3 + + COUNT( * ) + + 92 * + 7 * + - 68 * + ( - + NULLIF ( + + 91, - - COUNT( * ) / - 80 ) )
----
3985076

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL 3 + + COUNT ( * ) + + 92 * + 7 * + - 68 * + ( - + NULLIF ( + + 91, - - COUNT ( * ) / - 80 ) )
----
3985076

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT + COUNT( DISTINCT + 45 )
----
1

skipif mysql # not compatible
query I rowsort label-5157
SELECT + COUNT ( DISTINCT + 45 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5158
SELECT COUNT( * ) * COUNT( * ) + 2, - 77 col1
----
3
-77

skipif mysql # not compatible
query II rowsort label-5158
SELECT COUNT ( * ) * COUNT ( * ) + 2, - 77 col1
----
3
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5159
SELECT ALL - COUNT( * ) * - COUNT( * ) * - - CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * - - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT + + 12 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-5160
SELECT + + 12 / + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT ALL + - COUNT( * ) * + + 48 + + NULLIF ( - 10, 97 ) + 35 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL + - COUNT ( * ) * + + 48 + + NULLIF ( - 10, 97 ) + 35 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT ALL COUNT( * ) * - - 65 + - - 7 + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL COUNT ( * ) * - - 65 + - - 7 + COUNT ( * ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT DISTINCT + + SUM( + 22 ) * - COUNT( * ) + 19 + + 49
----
46

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT + + SUM ( + 22 ) * - COUNT ( * ) + 19 + + 49
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5164
SELECT - 53 + ( CASE SUM( ( + + ( - ( CAST( + CAST( - ( + 93 ) AS SIGNED ) AS SIGNED ) ) ) ) ) WHEN - 23 THEN 36 + + ( - - 95 ) - + - 13 - - CAST( NULL AS SIGNED ) * + COALESCE ( 42, ( - + 63 ) ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT - 53 + ( CASE SUM ( ( + + ( - ( CAST ( + CAST ( - ( + 93 ) AS INTEGER ) AS INTEGER ) ) ) ) ) WHEN - 23 THEN 36 + + ( - - 95 ) - + - 13 - - CAST ( NULL AS INTEGER ) * + COALESCE ( 42, ( - + 63 ) ) ELSE NULL END )
----
NULL

query I rowsort
SELECT + 93 + - 43
----
50

query I rowsort
SELECT COALESCE ( 11, + 16 * - 52 * 63 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL + 2 * + COUNT( * ) * 44 + - COUNT( ALL ( 37 ) ) * 18 + + 89 * - - 6 * + COUNT( * ) AS col2
----
604

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL + 2 * + COUNT ( * ) * 44 + - COUNT ( ALL ( 37 ) ) * 18 + + 89 * - - 6 * + COUNT ( * ) AS col2
----
604

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - 0 * COUNT( + + 96 ) + - ( 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-5168
SELECT - 0 * COUNT ( + + 96 ) + - ( 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT + 12 * - 64 + + - COUNT( * )
----
-769

skipif mysql # not compatible
query I rowsort label-5169
SELECT + 12 * - 64 + + - COUNT ( * )
----
-769

query I rowsort
SELECT DISTINCT + - 7 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT ALL + 73 * + 75 + - 80 + + SUM( - + ( - + 57 ) ) + - 28 - ( - MIN( + 9 ) ) + - - ( + COUNT( * ) ) + - - 29 * NULLIF ( - - ( 41 ), + - 27 )
----
6623

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL + 73 * + 75 + - 80 + + SUM ( - + ( - + 57 ) ) + - 28 - ( - MIN ( + 9 ) ) + - - ( + COUNT ( * ) ) + - - 29 * NULLIF ( - - ( 41 ), + - 27 )
----
6623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5172
SELECT DISTINCT - COUNT( * ) * + 21 + + + COALESCE ( - ( - 34 ), NULLIF ( - + 63, - 26 * + 4 ), - + COUNT( * ) - + 9 DIV + COUNT( * ) * 54 ) + - 21 * + 26 * + ( + 55 ) - + ( + 36 ) * 12 AS col2
----
-30449

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT - COUNT ( * ) * + 21 + + + COALESCE ( - ( - 34 ), NULLIF ( - + 63, - 26 * + 4 ), - + COUNT ( * ) - + 9 / + COUNT ( * ) * 54 ) + - 21 * + 26 * + ( + 55 ) - + ( + 36 ) * 12 AS col2
----
-30449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5173
SELECT - CAST( CAST( - + 25 AS SIGNED ) AS SIGNED ) + + 96 * - + 85
----
-8135

skipif mysql # not compatible
query I rowsort label-5173
SELECT - CAST ( CAST ( - + 25 AS INTEGER ) AS INTEGER ) + + 96 * - + 85
----
-8135

onlyif mysql # aggregate syntax: 
query II rowsort label-5174
SELECT + COUNT( * ), - 14 * + - COUNT( * ) * + 77 AS col0
----
1
1078

skipif mysql # not compatible
query II rowsort label-5174
SELECT + COUNT ( * ), - 14 * + - COUNT ( * ) * + 77 AS col0
----
1
1078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5175
SELECT + NULLIF ( - ( + - 10 ), ( CAST( NULL AS SIGNED ) ) ) * 18 + + + 96 + 43 AS col0, COUNT( * )
----
319
1

skipif mysql # not compatible
query II rowsort label-5175
SELECT + NULLIF ( - ( + - 10 ), ( CAST ( NULL AS INTEGER ) ) ) * 18 + + + 96 + 43 AS col0, COUNT ( * )
----
319
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT ALL - + 53 * - - 77 / + + 91 / COUNT( * ) + - - 27 * + 68 * + - CASE - - 81 WHEN 51 * - 22 + CAST( 4 AS SIGNED ) * - 74 THEN COALESCE ( + 41, + + COALESCE ( CAST( NULL AS SIGNED ), + 33, - - 94 ) + + + 44 ) * + - 87 + - 20 ELSE NULL END - + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL - + 53 * - - 77 / + + 91 / COUNT ( * ) + - - 27 * + 68 * + - CASE - - 81 WHEN 51 * - 22 + CAST ( 4 AS INTEGER ) * - 74 THEN COALESCE ( + 41, + + COALESCE ( CAST ( NULL AS INTEGER ), + 33, - - 94 ) + + + 44 ) * + - 87 + - 20 ELSE NULL END - + - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT - MIN( - 49 ) + 37 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5177
SELECT - MIN ( - 49 ) + 37 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL - 7 * + 26 - - COUNT( * )
----
-181

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL - 7 * + 26 - - COUNT ( * )
----
-181

query I rowsort
SELECT + 6 * + 32 AS col2
----
192

query I rowsort
SELECT ALL NULLIF ( - 30, - 25 ) AS col1
----
-30

query I rowsort
SELECT DISTINCT + 5 - + 44 + - + ( - 2 ) * 31 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5182
SELECT + CASE + 70 WHEN - CAST( NULL AS SIGNED ) * + + COUNT( * ) + COUNT( * ) + + COUNT( * ) THEN + 96 WHEN + 68 THEN - 19 / - + 29 / - 40 + - COUNT( * ) END + - + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT + CASE + 70 WHEN - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) THEN + 96 WHEN + 68 THEN - 19 / - + 29 / - 40 + - COUNT ( * ) END + - + 85 AS col0
----
NULL

query I rowsort
SELECT ALL ( - 47 ) AS col1
----
-47

query II rowsort
SELECT ALL ( + + 49 ) AS col2, 60 col2
----
49
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5185
SELECT ALL COUNT( * ) DIV - + MIN( 49 )
----
0

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL COUNT ( * ) / - + MIN ( 49 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL CASE - - 78 WHEN COUNT( * ) * - 81 + + 13 THEN + 25 WHEN - 66 * + 50 + - 63 * - + 56 / + + 99 + + 12 - + COUNT( * ) THEN + + ( 63 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL CASE - - 78 WHEN COUNT ( * ) * - 81 + + 13 THEN + 25 WHEN - 66 * + 50 + - 63 * - + 56 / + + 99 + + 12 - + COUNT ( * ) THEN + + ( 63 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 4 + 95
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT - 16 * + COALESCE ( CAST( + + 89 AS SIGNED ), + + ( - ( + + 45 ) ) + + + 64 ) * + 99
----
-140976

skipif mysql # not compatible
query I rowsort label-5188
SELECT - 16 * + COALESCE ( CAST ( + + 89 AS INTEGER ), + + ( - ( + + 45 ) ) + + + 64 ) * + 99
----
-140976

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT + 22 * + COUNT( - + 54 )
----
22

skipif mysql # not compatible
query I rowsort label-5189
SELECT + 22 * + COUNT ( - + 54 )
----
22

query I rowsort
SELECT ALL - 97 + - 52
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5191
SELECT DISTINCT CAST( - COALESCE ( - + CAST( NULL AS SIGNED ), ( 61 ) ) AS SIGNED ) AS col0, 68 * - - 72 + + 64 AS col2
----
-61
4960

skipif mysql # not compatible
query II rowsort label-5191
SELECT DISTINCT CAST ( - COALESCE ( - + CAST ( NULL AS INTEGER ), ( 61 ) ) AS INTEGER ) AS col0, 68 * - - 72 + + 64 AS col2
----
-61
4960

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT - MIN( - 78 ) + + 65 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-5192
SELECT - MIN ( - 78 ) + + 65 AS col0
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-5193
SELECT - COUNT( + + 29 ), - 28 AS col0
----
-1
-28

skipif mysql # not compatible
query II rowsort label-5193
SELECT - COUNT ( + + 29 ), - 28 AS col0
----
-1
-28

query I rowsort
SELECT - ( + 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT - COUNT( DISTINCT - + 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-5195
SELECT - COUNT ( DISTINCT - + 60 )
----
-1

query I rowsort
SELECT ALL + 52 + + 31 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT ALL - 98 + + 4 * + ( + - COUNT( ALL 62 ) )
----
-102

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL - 98 + + 4 * + ( + - COUNT ( ALL 62 ) )
----
-102

query I rowsort
SELECT ALL 50 + + + 50
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT ALL 54 + 85 DIV + - 3 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL 54 + 85 / + - 3 AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5200
SELECT DISTINCT + - 5 DIV + 48 + 19
----
19

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT + - 5 / + 48 + 19
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5201
SELECT + 38 * - 8 - CASE + 7 WHEN ( + 68 ) + 48 THEN + 1 DIV - - ( COUNT( * ) ) * COALESCE ( - - 44, 84 * - 33 ) + + 1 + + COUNT( * ) + - 9 DIV - 99 * + 75 + + 14 ELSE + 35 * + 45 * - - 65 * + + COUNT( * ) END AS col1, + 87 + - 4
----
-102679
83

skipif mysql # not compatible
query II rowsort label-5201
SELECT + 38 * - 8 - CASE + 7 WHEN ( + 68 ) + 48 THEN + 1 / - - ( COUNT ( * ) ) * COALESCE ( - - 44, 84 * - 33 ) + + 1 + + COUNT ( * ) + - 9 / - 99 * + 75 + + 14 ELSE + 35 * + 45 * - - 65 * + + COUNT ( * ) END AS col1, + 87 + - 4
----
-102679
83

query I rowsort
SELECT - - 13 * - - 89 + + + 40 AS col1
----
1197

query I rowsort
SELECT CASE WHEN ( NOT - - 44 <= + ( - 4 ) ) THEN NULL ELSE - 46 / 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ( + CASE + - 34 WHEN + 78 * SUM( + - 58 ) THEN - 54 * + 12 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT ( + CASE + - 34 WHEN + 78 * SUM ( + - 58 ) THEN - 54 * + 12 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5205
SELECT + 83 + 93 AS col0, - CASE 7 WHEN + 3 THEN NULL WHEN ( - CAST( 79 AS DECIMAL ) ) * 70 * 64 THEN NULL ELSE - 84 END * 47
----
176
3948

skipif mysql # not compatible
query II rowsort label-5205
SELECT + 83 + 93 AS col0, - CASE 7 WHEN + 3 THEN NULL WHEN ( - CAST ( 79 AS REAL ) ) * 70 * 64 THEN NULL ELSE - 84 END * 47
----
176
3948

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT + COUNT( * ) * 24 - - - 79
----
-55

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT + COUNT ( * ) * 24 - - - 79
----
-55

query I rowsort
SELECT DISTINCT + + 5
----
5

query I rowsort
SELECT ALL + - 79 AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT + + 73 DIV + + 19
----
3

skipif mysql # not compatible
query I rowsort label-5209
SELECT + + 73 / + + 19
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT DISTINCT 28 * - + 58 + - COUNT( * )
----
-1625

skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT 28 * - + 58 + - COUNT ( * )
----
-1625

onlyif mysql # DIV for integer division: 
query I rowsort label-5211
SELECT + 67 DIV 30 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5211
SELECT + 67 / 30 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5212
SELECT DISTINCT COUNT( * ) * + 98 DIV 73 * - + 94 + - NULLIF ( - - 13, - 64 * + + 48 ) + 92
----
-15

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT COUNT ( * ) * + 98 / 73 * - + 94 + - NULLIF ( - - 13, - 64 * + + 48 ) + 92
----
-15

query I rowsort
SELECT ALL + + ( - 60 )
----
-60

query I rowsort
SELECT - 80 * + + 57 - - + 44 AS col1
----
-4516

query I rowsort
SELECT + + 54 * - 25 AS col0
----
-1350

query I rowsort
SELECT + + 92 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT COALESCE ( ( + 39 ), - 76 + - COALESCE ( + - ( + 66 ), + 86 ), - - MIN( ( + + 93 ) ) )
----
39

skipif mysql # not compatible
query I rowsort label-5217
SELECT COALESCE ( ( + 39 ), - 76 + - COALESCE ( + - ( + 66 ), + 86 ), - - MIN ( ( + + 93 ) ) )
----
39

query II rowsort
SELECT ALL + 17 col1, 30 AS col1
----
17
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT CASE 99 WHEN + 55 THEN NULL WHEN + COUNT( * ) + - 18 THEN - MIN( - ( - 74 ) ) ELSE 76 END AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5219
SELECT CASE 99 WHEN + 55 THEN NULL WHEN + COUNT ( * ) + - 18 THEN - MIN ( - ( - 74 ) ) ELSE 76 END AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT + COUNT( * ) * - - 74 * 29 AS col0
----
2146

skipif mysql # not compatible
query I rowsort label-5220
SELECT + COUNT ( * ) * - - 74 * 29 AS col0
----
2146

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL COUNT( - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL COUNT ( - 49 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5222
SELECT 92 * - + 56 - - 78, - 7 DIV - 37 AS col1
----
-5074
0

skipif mysql # not compatible
query II rowsort label-5222
SELECT 92 * - + 56 - - 78, - 7 / - 37 AS col1
----
-5074
0

query II rowsort
SELECT - 69 AS col2, 74 col2
----
-69
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL - COUNT( * ) + + 41
----
40

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL - COUNT ( * ) + + 41
----
40

query I rowsort
SELECT 7 * - - 40 AS col1
----
280

query II rowsort
SELECT 78 + + - 94 + + 88, - 77 + 99 - - 48 + + 98 AS col2
----
72
168

query I rowsort
SELECT ALL - 2 + - + 92 + - 6 AS col2
----
-100

query I rowsort
SELECT 87 + - 1 AS col1
----
86

query I rowsort
SELECT ALL 51 + - 67
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5230
SELECT 14, CAST( - 91 AS SIGNED ) + CASE - 51 WHEN + MAX( + 77 ) THEN - + COALESCE ( + 52, + + 16 + - 96 ) * - CASE + NULLIF ( - - ( - + 68 ), - + 26 ) WHEN - + COUNT( * ) THEN 5 WHEN 71 + - + 69 / - 17 THEN NULL ELSE NULL END WHEN - 41 THEN NULL ELSE - + 30 + 19 END + - 1 AS col0
----
14
-103

skipif mysql # not compatible
query II rowsort label-5230
SELECT 14, CAST ( - 91 AS INTEGER ) + CASE - 51 WHEN + MAX ( + 77 ) THEN - + COALESCE ( + 52, + + 16 + - 96 ) * - CASE + NULLIF ( - - ( - + 68 ), - + 26 ) WHEN - + COUNT ( * ) THEN 5 WHEN 71 + - + 69 / - 17 THEN NULL ELSE NULL END WHEN - 41 THEN NULL ELSE - + 30 + 19 END + - 1 AS col0
----
14
-103

query I rowsort
SELECT ALL + 66 + 20 AS col0
----
86

query I rowsort
SELECT ALL - 66 + - 22
----
-88

query I rowsort
SELECT DISTINCT + - CASE + 79 WHEN 74 + - - 47 THEN - ( - 33 ) END / + + 99 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 16 + + + 31
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT CAST( + 81 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-5235
SELECT CAST ( + 81 AS INTEGER )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + 88 + COALESCE ( + - MIN( 57 ), COUNT( * ), 99 + - 77 ) * + COUNT( * ) + - 5 * + + MIN( ALL + 97 ) * + + 1
----
-454

skipif mysql # not compatible
query I rowsort label-5236
SELECT + 88 + COALESCE ( + - MIN ( 57 ), COUNT ( * ), 99 + - 77 ) * + COUNT ( * ) + - 5 * + + MIN ( ALL + 97 ) * + + 1
----
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT DISTINCT + + 79 * + CASE 37 WHEN 91 * + + 54 - + ( - 15 ) * AVG ( + - 40 ) * - - COUNT( * ) + + 60 THEN NULL WHEN 13 THEN NULL WHEN - COUNT( * ) * - 0 - 25 * + MIN( - 43 ) + - SUM( ALL + + 41 ) - + 20 THEN + 67 ELSE NULL END * 99 * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + + 79 * + CASE 37 WHEN 91 * + + 54 - + ( - 15 ) * AVG ( + - 40 ) * - - COUNT ( * ) + + 60 THEN NULL WHEN 13 THEN NULL WHEN - COUNT ( * ) * - 0 - 25 * + MIN ( - 43 ) + - SUM ( ALL + + 41 ) - + 20 THEN + 67 ELSE NULL END * 99 * - 45
----
NULL

query I rowsort
SELECT - 70 * + 61 + 37 - + + 21 AS col0
----
-4254

query I rowsort
SELECT NULLIF ( - - 93, + 72 ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT DISTINCT - 83 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT - 83 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT - 38 * COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-5241
SELECT - 38 * COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT DISTINCT - - COALESCE ( + 57, CASE - + 30 WHEN - COUNT( * ) THEN + + COALESCE ( + - AVG ( 93 ), + - 41 DIV - 82 * + COUNT( * ) - + 76 ) * + 66 * + 11 DIV - - 24 * 57 + + COUNT( ALL 61 ) ELSE NULL END + - - 55 + - - 38 DIV 77 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT - - COALESCE ( + 57, CASE - + 30 WHEN - COUNT ( * ) THEN + + COALESCE ( + - AVG ( 93 ), + - 41 / - 82 * + COUNT ( * ) - + 76 ) * + 66 * + 11 / - - 24 * 57 + + COUNT ( ALL 61 ) ELSE NULL END + - - 55 + - - 38 / 77 ) AS col0
----
57

query I rowsort
SELECT DISTINCT - ( 22 )
----
-22

query II rowsort
SELECT 78 col1, - 70 AS col2
----
78
-70

query I rowsort
SELECT 1 + 14
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + 4 * + - 27 * + - NULLIF ( - SUM( ALL - NULLIF ( - 0, - + 98 * + 68 / + 23 ) ), - + 91 + - + COUNT( * ) + + 78 * 44 + + - 45 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT + 4 * + - 27 * + - NULLIF ( - SUM ( ALL - NULLIF ( - 0, - + 98 * + 68 / + 23 ) ), - + 91 + - + COUNT ( * ) + + 78 * 44 + + - 45 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT - 53 * - ( - 35 ) * + COUNT( * ) + + 91 AS col0
----
-1764

skipif mysql # not compatible
query I rowsort label-5247
SELECT - 53 * - ( - 35 ) * + COUNT ( * ) + + 91 AS col0
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT COUNT( ALL + - 14 ) - + + 28 + - 98 * COUNT( * ) * - 83
----
8107

skipif mysql # not compatible
query I rowsort label-5248
SELECT COUNT ( ALL + - 14 ) - + + 28 + - 98 * COUNT ( * ) * - 83
----
8107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5249
SELECT DISTINCT 53 DIV - 42 - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT 53 / - 42 - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5250
SELECT 92 DIV + - ( COUNT( 56 ) ) + - ( + 83 ) + 69
----
-106

skipif mysql # not compatible
query I rowsort label-5250
SELECT 92 / + - ( COUNT ( 56 ) ) + - ( + 83 ) + 69
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT ( 4 ) + 91 * - + ( + ( MIN( ALL - 60 ) ) )
----
5464

skipif mysql # not compatible
query I rowsort label-5251
SELECT ( 4 ) + 91 * - + ( + ( MIN ( ALL - 60 ) ) )
----
5464

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5252
SELECT DISTINCT 58 DIV + MAX( ( - 79 ) ) AS col2, - 33 + + 47 + - 15 DIV - 65 + + 6 * - 38 * 96 * - COUNT( * ) AS col2
----
0
21902

skipif mysql # not compatible
query II rowsort label-5252
SELECT DISTINCT 58 / + MAX ( ( - 79 ) ) AS col2, - 33 + + 47 + - 15 / - 65 + + 6 * - 38 * 96 * - COUNT ( * ) AS col2
----
0
21902

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL 17 + ( - + NULLIF ( - + COUNT( * ), + 90 ) )
----
18

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL 17 + ( - + NULLIF ( - + COUNT ( * ), + 90 ) )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5254
SELECT CASE - - COUNT( DISTINCT - - 43 ) WHEN + + 30 THEN NULL WHEN + + ( + 32 ) THEN + - 41 + - 71 WHEN - - 58 * 52 / 65 * + CAST( + + 95 AS SIGNED ) THEN + 84 * - 30 + + CAST( NULL AS SIGNED ) + 47 WHEN + 84 * - 84 THEN + - 41 END + + 96 + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT CASE - - COUNT ( DISTINCT - - 43 ) WHEN + + 30 THEN NULL WHEN + + ( + 32 ) THEN + - 41 + - 71 WHEN - - 58 * 52 / 65 * + CAST ( + + 95 AS INTEGER ) THEN + 84 * - 30 + + CAST ( NULL AS INTEGER ) + 47 WHEN + 84 * - 84 THEN + - 41 END + + 96 + 92
----
NULL

query II rowsort
SELECT + 8 AS col1, - 26
----
8
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT ALL 11 * + - NULLIF ( + - 60, + 3 ) AS col0, 17 + - COUNT( DISTINCT 48 )
----
660
16

skipif mysql # not compatible
query II rowsort label-5256
SELECT ALL 11 * + - NULLIF ( + - 60, + 3 ) AS col0, 17 + - COUNT ( DISTINCT 48 )
----
660
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT ( - COUNT( * ) ) + - + 83
----
-84

skipif mysql # not compatible
query I rowsort label-5257
SELECT ( - COUNT ( * ) ) + - + 83
----
-84

query I rowsort
SELECT ALL 87 + + + 82 + + 33
----
202

query I rowsort
SELECT DISTINCT 4 + + - 81 + + + 44 * ( + 15 ) AS col1
----
583

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL COUNT( * ) + - + CASE 61 WHEN 50 THEN + 58 / ( - 52 ) + + COUNT( * ) * - ( + - ( - 84 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL COUNT ( * ) + - + CASE 61 WHEN 50 THEN + 58 / ( - 52 ) + + COUNT ( * ) * - ( + - ( - 84 ) ) END AS col1
----
NULL

query I rowsort
SELECT ( + + 11 ) * - - 52
----
572

query I rowsort
SELECT ALL 51 + 76 * - 47 + - 82 + - 9 AS col1
----
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL - 98 + 51 + - 32 + + 82 + SUM( DISTINCT - 80 ) * + 26 * - + 86 AS col1
----
178883

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - 98 + 51 + - 32 + + 82 + SUM ( DISTINCT - 80 ) * + 26 * - + 86 AS col1
----
178883

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL COUNT( * ) + + + 48 * + COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL COUNT ( * ) + + + 48 * + COUNT ( * ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5265
SELECT 13 * - CAST( NULL AS SIGNED ) AS col2, COALESCE ( - 78, 0 + + - SUM( DISTINCT - + 59 ), 61 + 9, - + 3 + + + 30 )
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-5265
SELECT 13 * - CAST ( NULL AS INTEGER ) AS col2, COALESCE ( - 78, 0 + + - SUM ( DISTINCT - + 59 ), 61 + 9, - + 3 + + + 30 )
----
NULL
-78

query I rowsort
SELECT ALL + 25 * + 12 AS col0
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT DISTINCT COALESCE ( + - NULLIF ( + 60, + 96 ), - COUNT( * ) * COALESCE ( - 82, + 43 ) ) + 34
----
-26

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT COALESCE ( + - NULLIF ( + 60, + 96 ), - COUNT ( * ) * COALESCE ( - 82, + 43 ) ) + 34
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT + 20 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT + 20 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT - COUNT( 48 ) * 47 * 51 AS col0
----
-2397

skipif mysql # not compatible
query I rowsort label-5269
SELECT - COUNT ( 48 ) * 47 * 51 AS col0
----
-2397

query I rowsort
SELECT - 29 * + 29 * 85 - - - 24 + - 20
----
-71529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5271
SELECT ALL - + CAST( - 4 AS SIGNED ) * 95
----
380

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL - + CAST ( - 4 AS INTEGER ) * 95
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ( COUNT( ALL - + 94 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5272
SELECT ( COUNT ( ALL - + 94 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5273
SELECT 68 + - COUNT( * ) DIV + 76 * + - 66 * COUNT( * ) * 33 DIV + 31 + - 50
----
18

skipif mysql # not compatible
query I rowsort label-5273
SELECT 68 + - COUNT ( * ) / + 76 * + - 66 * COUNT ( * ) * 33 / + 31 + - 50
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL NULLIF ( + 15, - - 86 - + ( + 5 ) + + + 61 * - - CASE WHEN NOT 32 IS NOT NULL THEN + + 28 + - - COUNT( * ) END - + + ( + 86 ) * - - 56 / - COUNT( * ) + 69 * + 71 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL NULLIF ( + 15, - - 86 - + ( + 5 ) + + + 61 * - - CASE WHEN NOT 32 IS NOT NULL THEN + + 28 + - - COUNT ( * ) END - + + ( + 86 ) * - - 56 / - COUNT ( * ) + 69 * + 71 ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5275
SELECT ( - + 93 ) DIV - + 88 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5275
SELECT ( - + 93 ) / - + 88 AS col0
----
1

query I rowsort
SELECT 37 + - NULLIF ( - 43, - 45 ) + - 46 + + 98 + - 64
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT DISTINCT - 51 DIV - + 62 * 99 + + 79
----
79

skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT - 51 / - + 62 * 99 + + 79
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5278
SELECT 39 * + + 70 * + + COUNT( DISTINCT 70 ) AS col2, - 43 col1
----
2730
-43

skipif mysql # not compatible
query II rowsort label-5278
SELECT 39 * + + 70 * + + COUNT ( DISTINCT 70 ) AS col2, - 43 col1
----
2730
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT + - 74 * 55 + - CAST( 53 AS SIGNED ) AS col1
----
-4123

skipif mysql # not compatible
query I rowsort label-5279
SELECT + - 74 * 55 + - CAST ( 53 AS INTEGER ) AS col1
----
-4123

onlyif mysql # aggregate syntax: 
query II rowsort label-5280
SELECT ALL - + COUNT( * ), + 76 AS col0
----
-1
76

skipif mysql # not compatible
query II rowsort label-5280
SELECT ALL - + COUNT ( * ), + 76 AS col0
----
-1
76

query I rowsort
SELECT + - 29 AS col2
----
-29

query I rowsort
SELECT ALL + - 34 * - 87 * ( 4 ) col0
----
11832

query I rowsort
SELECT ALL - ( 75 ) AS col1
----
-75

query I rowsort
SELECT DISTINCT + 10 * - 33 AS col0
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL COUNT( * ) * + 59 * + 4 col0
----
236

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL COUNT ( * ) * + 59 * + 4 col0
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT - ( + COALESCE ( + + 45, 40 ) ) * - - 20 * - COUNT( * )
----
900

skipif mysql # not compatible
query I rowsort label-5286
SELECT - ( + COALESCE ( + + 45, 40 ) ) * - - 20 * - COUNT ( * )
----
900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5287
SELECT ALL 79 * + 60 + + + 85, - CAST( 71 AS SIGNED ) + - 30 AS col2
----
4825
-101

skipif mysql # not compatible
query II rowsort label-5287
SELECT ALL 79 * + 60 + + + 85, - CAST ( 71 AS INTEGER ) + - 30 AS col2
----
4825
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT ALL + 60 * + 72 + - + CAST( 49 AS SIGNED ) + + 97
----
4368

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL + 60 * + 72 + - + CAST ( 49 AS INTEGER ) + + 97
----
4368

onlyif mysql # aggregate syntax: 
query II rowsort label-5289
SELECT MIN( ALL - 12 ), + 62 AS col0
----
-12
62

skipif mysql # not compatible
query II rowsort label-5289
SELECT MIN ( ALL - 12 ), + 62 AS col0
----
-12
62

query I rowsort
SELECT ALL + 26 col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT - 76 DIV 11
----
-6

skipif mysql # not compatible
query I rowsort label-5291
SELECT - 76 / 11
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5292
SELECT ( - - 42 ) * - 56 * - - SUM( DISTINCT COALESCE ( + 38, - 6, 18 ) ) + - - COUNT( * ) DIV 39 - + - MAX( + - 35 ) AS col1
----
-89411

skipif mysql # not compatible
query I rowsort label-5292
SELECT ( - - 42 ) * - 56 * - - SUM ( DISTINCT COALESCE ( + 38, - 6, 18 ) ) + - - COUNT ( * ) / 39 - + - MAX ( + - 35 ) AS col1
----
-89411

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT ALL 35 * + - COUNT( + 21 ) * - 21 + + - 16
----
719

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL 35 * + - COUNT ( + 21 ) * - 21 + + - 16
----
719

onlyif mysql # DIV for integer division: 
query I rowsort label-5294
SELECT ALL 40 DIV + ( + 38 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL 40 / + ( + 38 ) col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5295
SELECT - 45 DIV 81, + 47 col0
----
0
47

skipif mysql # not compatible
query II rowsort label-5295
SELECT - 45 / 81, + 47 col0
----
0
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL 57 * COUNT( * ) * - + 3 * + 92 * - - 17 col2
----
-267444

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL 57 * COUNT ( * ) * - + 3 * + 92 * - - 17 col2
----
-267444

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT + COUNT( + 79 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5297
SELECT + COUNT ( + 79 ) col1
----
1

query II rowsort
SELECT DISTINCT ( - 27 ) AS col0, + 9 * - 91
----
-27
-819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT - CAST( - 80 AS SIGNED ) + 21 + - 4 * - 44
----
277

skipif mysql # not compatible
query I rowsort label-5299
SELECT - CAST ( - 80 AS INTEGER ) + 21 + - 4 * - 44
----
277

query I rowsort
SELECT + 91 * 52
----
4732

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT - COUNT( + 35 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5301
SELECT - COUNT ( + 35 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5302
SELECT + SUM( + + 1 ) + + + 14 AS col0, COUNT( * ) * - - ( + 82 ) + + - 39 + - + 22 * - 89 * - ( + 1 )
----
15
-1915

skipif mysql # not compatible
query II rowsort label-5302
SELECT + SUM ( + + 1 ) + + + 14 AS col0, COUNT ( * ) * - - ( + 82 ) + + - 39 + - + 22 * - 89 * - ( + 1 )
----
15
-1915

query I rowsort
SELECT DISTINCT ( + 93 ) * - 88 AS col0
----
-8184

query I rowsort
SELECT + 57 + + - 47 * - 9
----
480

query I rowsort
SELECT + + 38 * - 35 * 23 * 52
----
-1590680

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL NULLIF ( 99, + COUNT( * ) - + 91 )
----
99

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL NULLIF ( 99, + COUNT ( * ) - + 91 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT + + CAST( 74 AS SIGNED ) + + 14
----
88

skipif mysql # not compatible
query I rowsort label-5307
SELECT + + CAST ( 74 AS INTEGER ) + + 14
----
88

query I rowsort
SELECT ALL - + 86 - - 28 + 90 + - - 61
----
93

query I rowsort
SELECT + + 77 * - + 70 AS col1
----
-5390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5310
SELECT DISTINCT MIN( DISTINCT + NULLIF ( + + CAST( NULL AS SIGNED ), - 75 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT MIN ( DISTINCT + NULLIF ( + + CAST ( NULL AS INTEGER ), - 75 ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT ALL ( - - 69 ) DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL ( - - 69 ) / - 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT + 59 * + 5 - + CASE - 63 WHEN + 90 * + 56 THEN NULL WHEN - COUNT( * ) * 21 - + COUNT( * ) THEN 61 * + COUNT( * ) - - 31 + + - 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT + 59 * + 5 - + CASE - 63 WHEN + 90 * + 56 THEN NULL WHEN - COUNT ( * ) * 21 - + COUNT ( * ) THEN 61 * + COUNT ( * ) - - 31 + + - 92 ELSE NULL END
----
NULL

query II rowsort
SELECT - 29 * + 39, 53 col2
----
-1131
53

query I rowsort
SELECT - 34 + - + 81 AS col1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT + - COUNT( DISTINCT - 37 ) * - + 80 - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-5315
SELECT + - COUNT ( DISTINCT - 37 ) * - + 80 - COUNT ( * )
----
79

query II rowsort
SELECT ALL + ( + 22 ), - 9 AS col0
----
22
-9

query I rowsort
SELECT - ( + 8 ) AS col2
----
-8

query II rowsort
SELECT + 95 AS col0, 8 * + - 86 * - + 12
----
95
8256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5319
SELECT ALL - 16 * + 36 + - 79, 28 * + + CAST( CAST( MAX( DISTINCT 90 ) AS DECIMAL ) AS SIGNED ) + + - COUNT( * ) - + 78 col2
----
-655
2441

skipif mysql # not compatible
query II rowsort label-5319
SELECT ALL - 16 * + 36 + - 79, 28 * + + CAST ( CAST ( MAX ( DISTINCT 90 ) AS REAL ) AS INTEGER ) + + - COUNT ( * ) - + 78 col2
----
-655
2441

query I rowsort
SELECT ALL 50 * 86 + 88 AS col1
----
4388

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT ALL + 42 DIV 36 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL + 42 / 36 AS col0
----
1

query I rowsort
SELECT ( - - 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL CASE ( 48 ) WHEN - 10 * - + 32 THEN + 69 WHEN + ( + - 16 ) THEN NULL END * 74 * COUNT( * ) + 44 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL CASE ( 48 ) WHEN - 10 * - + 32 THEN + 69 WHEN + ( + - 16 ) THEN NULL END * 74 * COUNT ( * ) + 44 + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5324
SELECT - 75 - - 91 DIV - - 13 AS col0, + 32 col0
----
-68
32

skipif mysql # not compatible
query II rowsort label-5324
SELECT - 75 - - 91 / - - 13 AS col0, + 32 col0
----
-68
32

query I rowsort
SELECT ALL + ( - 64 ) AS col0
----
-64

query I rowsort
SELECT ALL - 43 * - 27
----
1161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5327
SELECT - 22 + + - 9 + - COALESCE ( - + 77, - CAST( NULL AS SIGNED ) ) + + 60 - 6 * 92 col1, - 78 AS col0
----
-446
-78

skipif mysql # not compatible
query II rowsort label-5327
SELECT - 22 + + - 9 + - COALESCE ( - + 77, - CAST ( NULL AS INTEGER ) ) + + 60 - 6 * 92 col1, - 78 AS col0
----
-446
-78

query II rowsort
SELECT ALL 99 * - + 78 + 3 AS col1, ( - 29 ) + + + 18 AS col2
----
-7719
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5329
SELECT - 39 * - - 0 * + 58 DIV 17 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5329
SELECT - 39 * - - 0 * + 58 / 17 * + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT ALL + NULLIF ( + COUNT( * ), + - 52 + - + 22 * + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL + NULLIF ( + COUNT ( * ), + - 52 + - + 22 * + 36 )
----
1

query II rowsort
SELECT ALL + NULLIF ( + 65, + 35 ) AS col2, 1 AS col1
----
65
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5332
SELECT ALL + 96 * + 10 - - - 49 + - 78, - CAST( NULL AS SIGNED ) + + 47 col1
----
833
NULL

skipif mysql # not compatible
query II rowsort label-5332
SELECT ALL + 96 * + 10 - - - 49 + - 78, - CAST ( NULL AS INTEGER ) + + 47 col1
----
833
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT - COUNT( * ) * + 63 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-5333
SELECT - COUNT ( * ) * + 63 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT COUNT( - + 67 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5334
SELECT COUNT ( - + 67 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT + 44 + + - COUNT( DISTINCT + 2 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5335
SELECT + 44 + + - COUNT ( DISTINCT + 2 ) AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT DISTINCT - 13 * NULLIF ( - 78, - 12 ) * - ( + CAST( + + CAST( 50 AS SIGNED ) AS SIGNED ) ) - + - 44
----
-50656

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT - 13 * NULLIF ( - 78, - 12 ) * - ( + CAST ( + + CAST ( 50 AS INTEGER ) AS INTEGER ) ) - + - 44
----
-50656

onlyif mysql # DIV for integer division: 
query II rowsort label-5337
SELECT DISTINCT ( 98 ) DIV - 89 AS col2, + 43 AS col2
----
-1
43

skipif mysql # not compatible
query II rowsort label-5337
SELECT DISTINCT ( 98 ) / - 89 AS col2, + 43 AS col2
----
-1
43

query I rowsort
SELECT DISTINCT + 28 * + + NULLIF ( + ( + 0 ), 56 * + 22 + + 89 + - + 34 * 73 - + 38 ) * + - 74 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5339
SELECT ALL + 17 DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL + 17 / + 32
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5340
SELECT + AVG ( - + 92 ) / + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT + AVG ( - + 92 ) / + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 21 * - NULLIF ( + + 97, - 98 ) AS col1
----
-2037

query I rowsort
SELECT - 35 * + 85 + + 77 col2
----
-2898

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5343
SELECT - - 89, + 13 - - 85 + CAST( NULL AS SIGNED ) * - NULLIF ( - + 75, 51 ) AS col0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-5343
SELECT - - 89, + 13 - - 85 + CAST ( NULL AS INTEGER ) * - NULLIF ( - + 75, 51 ) AS col0
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL 74 * + + MIN( ALL - 23 ) AS col0
----
-1702

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL 74 * + + MIN ( ALL - 23 ) AS col0
----
-1702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5345
SELECT - + COUNT( * ) DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT - + COUNT ( * ) / - 10
----
0

query I rowsort
SELECT CASE 30 WHEN 81 THEN - - 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + - 65 * + MAX( DISTINCT + + 2 ) * + - 56 - 34 AS col2
----
7246

skipif mysql # not compatible
query I rowsort label-5347
SELECT + - 65 * + MAX ( DISTINCT + + 2 ) * + - 56 - 34 AS col2
----
7246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL - 60 + + - MIN( + + CAST( + + 18 AS SIGNED ) ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL - 60 + + - MIN ( + + CAST ( + + 18 AS INTEGER ) ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT 99 + - + 48 * - NULLIF ( 38, + 20 * - MIN( ALL 34 ) )
----
1923

skipif mysql # not compatible
query I rowsort label-5349
SELECT 99 + - + 48 * - NULLIF ( 38, + 20 * - MIN ( ALL 34 ) )
----
1923

query I rowsort
SELECT DISTINCT 19 + 21 + + 26 * + 97
----
2562

query I rowsort
SELECT 46 * - - 54
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL + 41 + - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL + 41 + - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL 46 + + COUNT( * ) + - MIN( ALL + 45 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL 46 + + COUNT ( * ) + - MIN ( ALL + 45 ) col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + 58 * + ( + 59 ) + + MAX( ALL - COALESCE ( - 27, - 12 ) ) + + + ( 49 ) + - 84
----
3414

skipif mysql # not compatible
query I rowsort label-5354
SELECT + 58 * + ( + 59 ) + + MAX ( ALL - COALESCE ( - 27, - 12 ) ) + + + ( 49 ) + - 84
----
3414

query I rowsort
SELECT DISTINCT 29 * - 16 AS col1
----
-464

query I rowsort
SELECT ALL 64 * + 21
----
1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5357
SELECT SUM( - 5 ) DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-5357
SELECT SUM ( - 5 ) / - 54
----
0

query I rowsort
SELECT DISTINCT 81 * + 24
----
1944

query I rowsort
SELECT DISTINCT 93 * + + 76 * - 16 AS col2
----
-113088

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL - MAX( DISTINCT - 27 ) - + - 56 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL - MAX ( DISTINCT - 27 ) - + - 56 AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5361
SELECT ALL 28 * 78 / CAST( NULL AS SIGNED ) * + 80 AS col1, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5361
SELECT ALL 28 * 78 / CAST ( NULL AS INTEGER ) * + 80 AS col1, - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5362
SELECT DISTINCT 87 - + + 86 / + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT 87 - + + 86 / + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 16 * - - 4
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5364
SELECT ALL - COUNT( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL - COUNT ( CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5365
SELECT ( + 34 ) DIV + 36 * 85 DIV + 87 + + 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5365
SELECT ( + 34 ) / + 36 * 85 / + 87 + + 9 AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5366
SELECT DISTINCT + 94 DIV + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT + 94 / + COUNT ( * )
----
94

query II rowsort
SELECT 38 * + + 12 col2, 99
----
456
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT 12 - + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-5368
SELECT 12 - + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT DISTINCT - SUM( DISTINCT - 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - SUM ( DISTINCT - 60 ) AS col0
----
60

query II rowsort
SELECT 28 * + 46 AS col1, 40
----
1288
40

query I rowsort
SELECT DISTINCT - + 53 * - 97 AS col0
----
5141

query I rowsort
SELECT 81 * + 75 * + + 61
----
370575

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5373
SELECT ALL + + 3 * + CAST( NULL AS DECIMAL ) AS col2, 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-5373
SELECT ALL + + 3 * + CAST ( NULL AS REAL ) AS col2, 8
----
NULL
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5374
SELECT NULLIF ( 51, - + 81 ) + - - 48 - 84 DIV 95 col2
----
99

skipif mysql # not compatible
query I rowsort label-5374
SELECT NULLIF ( 51, - + 81 ) + - - 48 - 84 / 95 col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT + ( + 60 ) - - 34 - + COALESCE ( + 43, - - COUNT( * ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5375
SELECT + ( + 60 ) - - 34 - + COALESCE ( + 43, - - COUNT ( * ) ) AS col0
----
51

query I rowsort
SELECT + 32 + + 3 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT COUNT( * ) * COUNT( * ) * - 49 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5377
SELECT COUNT ( * ) * COUNT ( * ) * - 49 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL + - 27 + COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + - 27 + COUNT ( * ) AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5379
SELECT ALL - CAST( NULL AS SIGNED ) + + SUM( + CAST( NULL AS SIGNED ) ) + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - CAST ( NULL AS INTEGER ) + + SUM ( + CAST ( NULL AS INTEGER ) ) + - 25
----
NULL

query II rowsort
SELECT + 55 + - - 70 AS col1, 19 AS col0
----
125
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT DISTINCT + SUM( DISTINCT + + 3 ) + NULLIF ( - COUNT( * ), + - 40 * - MAX( - 2 ) * + - 64 + 14 + 57 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT + SUM ( DISTINCT + + 3 ) + NULLIF ( - COUNT ( * ), + - 40 * - MAX ( - 2 ) * + - 64 + 14 + 57 ) col0
----
2

query I rowsort
SELECT DISTINCT - - 98 + - + 92 + + + 31
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5383
SELECT ALL ( - CAST( - 14 AS SIGNED ) ) DIV ( + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL ( - CAST ( - 14 AS INTEGER ) ) / ( + 75 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL + 28 + + COUNT( * ) col2
----
29

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL + 28 + + COUNT ( * ) col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5385
SELECT DISTINCT + + 85 DIV - 94 + NULLIF ( + - ( + + 56 ), MIN( + 77 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT + + 85 / - 94 + NULLIF ( + - ( + + 56 ), MIN ( + 77 ) )
----
-56

query II rowsort
SELECT ALL + 48 + + 68 AS col0, - 62 + - + 92 col1
----
116
-154

query I rowsort
SELECT ALL ( - + 35 ) + - 30 AS col2
----
-65

query I rowsort
SELECT + 5 * - 50 AS col1
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL + MAX( + 82 ) * 44
----
3608

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL + MAX ( + 82 ) * 44
----
3608

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT + 14 DIV - 99 + ( - - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-5390
SELECT + 14 / - 99 + ( - - 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5391
SELECT - - ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT - - ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5392
SELECT ALL 97 + ( + 73 ) + - CAST( - 37 AS SIGNED ) * - SUM( ALL 81 ) - + ( 32 ) * + - 92 * + - 72 + - + COUNT( * ) - 7 * - 71 * 6
----
-211814

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL 97 + ( + 73 ) + - CAST ( - 37 AS INTEGER ) * - SUM ( ALL 81 ) - + ( 32 ) * + - 92 * + - 72 + - + COUNT ( * ) - 7 * - 71 * 6
----
-211814

query I rowsort
SELECT ALL - 29 + + 46 * + 60 AS col2
----
2731

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5394
SELECT CAST( NULL AS SIGNED ) * NULLIF ( - + 51, - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT CAST ( NULL AS INTEGER ) * NULLIF ( - + 51, - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT 81 * - 82 col2
----
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL + 70 * COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL + 70 * COUNT ( * ) AS col2
----
70

query I rowsort
SELECT DISTINCT 87 - + + 17 - + - 10 AS col1
----
80

query II rowsort
SELECT DISTINCT - 39, 36 AS col2
----
-39
36

query I rowsort
SELECT - 85 * - 88 - + 74 AS col2
----
7406

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT SUM( - + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-5400
SELECT SUM ( - + 73 ) AS col0
----
-73

query I rowsort
SELECT - ( + 44 ) * + 62 + + 18 AS col0
----
-2710

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT 7 * - 30 + + - COUNT( * )
----
-211

skipif mysql # not compatible
query I rowsort label-5402
SELECT 7 * - 30 + + - COUNT ( * )
----
-211

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT 48 - + + 88 * COUNT( ALL - - 93 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-5403
SELECT 48 - + + 88 * COUNT ( ALL - - 93 ) AS col1
----
-40

query I rowsort
SELECT ALL ( + + ( + 18 ) ) * 58
----
1044

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT ALL NULLIF ( + - COUNT( * ), - 32 ) * + 63
----
-63

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL NULLIF ( + - COUNT ( * ), - 32 ) * + 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT COUNT( * ) + - 0 col1
----
1

skipif mysql # not compatible
query I rowsort label-5406
SELECT COUNT ( * ) + - 0 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT ( 48 ) * - COUNT( * ) * COALESCE ( + 39, - MIN( DISTINCT - - 82 ) ) AS col2
----
-1872

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT ( 48 ) * - COUNT ( * ) * COALESCE ( + 39, - MIN ( DISTINCT - - 82 ) ) AS col2
----
-1872

onlyif mysql # aggregate syntax: 
query II rowsort label-5408
SELECT - + ( - - COUNT( * ) ) * 61 + 52 + + 79 AS col2, 41
----
70
41

skipif mysql # not compatible
query II rowsort label-5408
SELECT - + ( - - COUNT ( * ) ) * 61 + 52 + + 79 AS col2, 41
----
70
41

query I rowsort
SELECT ALL - + 29 col1
----
-29

query I rowsort
SELECT ( + + 55 )
----
55

query I rowsort
SELECT ( - - 10 ) AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) - + + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) - + + 81 AS col0
----
NULL

query I rowsort
SELECT + 86 + - 73 * + 48 col0
----
-3418

query I rowsort
SELECT 60 * - 85 col2
----
-5100

query I rowsort
SELECT DISTINCT - + 38 + - 30 col1
----
-68

query I rowsort
SELECT - - 38 + 1 - - - 50 * + - 45
----
2289

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT DISTINCT - 32 + - 64 * + - SUM( DISTINCT + 4 ) AS col0
----
224

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT - 32 + - 64 * + - SUM ( DISTINCT + 4 ) AS col0
----
224

query I rowsort
SELECT ALL + 99 + 58 + - + 14 + 27 AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL + 94 + ( - CASE + + 91 WHEN - - COUNT( * ) THEN 28 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL + 94 + ( - CASE + + 91 WHEN - - COUNT ( * ) THEN 28 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL - - 12 + + SUM( + 62 )
----
74

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL - - 12 + + SUM ( + 62 )
----
74

query I rowsort
SELECT + - 44 * 76 * + 78
----
-260832

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5422
SELECT - - 38 * + SUM( 48 ) AS col0, CAST( NULL AS DECIMAL ) * 0 / - 71
----
1824
NULL

skipif mysql # not compatible
query II rowsort label-5422
SELECT - - 38 * + SUM ( 48 ) AS col0, CAST ( NULL AS REAL ) * 0 / - 71
----
1824
NULL

query II rowsort
SELECT ALL - 96 AS col2, 94 AS col2
----
-96
94

query I rowsort
SELECT ALL - - NULLIF ( ( + 44 ), - + 55 * + 82 ) - - - 68 + + 56 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5425
SELECT - - COALESCE ( - + SUM( DISTINCT + + 56 ), - + 37 + - 15 + - + ( - - COUNT( * ) ) ) + + - 57 + - 67 + - 40 * COUNT( * ) DIV - 28 DIV - COUNT( * ) + + + 66 + - COUNT( * ) AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-5425
SELECT - - COALESCE ( - + SUM ( DISTINCT + + 56 ), - + 37 + - 15 + - + ( - - COUNT ( * ) ) ) + + - 57 + - 67 + - 40 * COUNT ( * ) / - 28 / - COUNT ( * ) + + + 66 + - COUNT ( * ) AS col1
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - 69 - - CASE - + COUNT( * ) WHEN CASE - ( 61 ) WHEN + 97 THEN NULL WHEN + 68 * + - ( + 45 ) THEN - + 83 END THEN 12 ELSE 95 END
----
26

skipif mysql # not compatible
query I rowsort label-5426
SELECT - 69 - - CASE - + COUNT ( * ) WHEN CASE - ( 61 ) WHEN + 97 THEN NULL WHEN + 68 * + - ( + 45 ) THEN - + 83 END THEN 12 ELSE 95 END
----
26

query I rowsort
SELECT ALL CASE - + 40 WHEN + 47 / - 91 THEN NULL WHEN 80 * 3 + + - 89 * 4 THEN + 89 END
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 62, + 24 )
----
-62

query I rowsort
SELECT ALL - 83 - - 66 * + + 10
----
577

query I rowsort
SELECT ALL 93 - + 95 * - - 20 AS col1
----
-1807

query I rowsort
SELECT - 99 * 74 AS col2
----
-7326

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT ALL - 11 DIV + 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL - 11 / + 44 AS col0
----
0

query I rowsort
SELECT - 16 + 4 col1
----
-12

query I rowsort
SELECT - 75 * + ( - + ( 5 ) )
----
375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5435
SELECT ALL + CASE 85 WHEN + + COALESCE ( - 34, + 37, 48 + 86 / - - COUNT( * ) / + 31 * - 64 + + - CAST( NULL AS SIGNED ) + - + 25 + 32 - - + 31 * - + ( + COUNT( * ) ) + 85 + - 94 * - 73 ) * + 6 + + + 89 * 68 THEN - + 35 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL + CASE 85 WHEN + + COALESCE ( - 34, + 37, 48 + 86 / - - COUNT ( * ) / + 31 * - 64 + + - CAST ( NULL AS INTEGER ) + - + 25 + 32 - - + 31 * - + ( + COUNT ( * ) ) + 85 + - 94 * - 73 ) * + 6 + + + 89 * 68 THEN - + 35 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 93 * - 9 * - + 1 AS col2
----
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL + CASE 40 WHEN + SUM( ALL - - 70 ) + - COUNT( * ) THEN + 0 WHEN + - COUNT( * ) + + 60 + - MIN( + - COALESCE ( - 77, + 95 ) ) + + 40 + 33 * + - 39 * 21 * - - 36 * - 45 * - 6 THEN - 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL + CASE 40 WHEN + SUM ( ALL - - 70 ) + - COUNT ( * ) THEN + 0 WHEN + - COUNT ( * ) + + 60 + - MIN ( + - COALESCE ( - 77, + 95 ) ) + + 40 + 33 * + - 39 * 21 * - - 36 * - 45 * - 6 THEN - 4 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5438
SELECT - 63 DIV - MIN( DISTINCT 40 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5438
SELECT - 63 / - MIN ( DISTINCT 40 ) AS col2
----
1

query I rowsort
SELECT + 69 * 44 col0
----
3036

query I rowsort
SELECT ALL - CASE 22 WHEN 40 THEN 56 END * 14
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - 50, - 92 ) * - 94
----
-4700

query I rowsort
SELECT - 39 * - - 28 * 18 AS col2
----
-19656

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT + COUNT( * ) * - COALESCE ( 44, 6 * 14 ) * - NULLIF ( 56, MAX( + 51 ) )
----
2464

skipif mysql # not compatible
query I rowsort label-5443
SELECT + COUNT ( * ) * - COALESCE ( 44, 6 * 14 ) * - NULLIF ( 56, MAX ( + 51 ) )
----
2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5444
SELECT - 68 DIV - SUM( - - 82 ) + + ( + COUNT( DISTINCT - 39 ) ) + - 45 * 91 * + 82
----
-335789

skipif mysql # not compatible
query I rowsort label-5444
SELECT - 68 / - SUM ( - - 82 ) + + ( + COUNT ( DISTINCT - 39 ) ) + - 45 * 91 * + 82
----
-335789

query II rowsort
SELECT DISTINCT + 89 AS col0, 15 + + 59 AS col1
----
89
74

query I rowsort
SELECT ALL + ( 92 ) * - - 14 * + 23 AS col0
----
29624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5447
SELECT ALL 93 * + 56 + + 31 DIV + COUNT( * )
----
5239

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL 93 * + 56 + + 31 / + COUNT ( * )
----
5239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5448
SELECT ALL + COALESCE ( - - 74, + COUNT( * ) * - CASE - + 83 WHEN + - 21 THEN NULL WHEN - 7 + + - COUNT( * ) * - - 3 DIV - 88 + + CAST( NULL AS DECIMAL ) DIV + 2 THEN - 21 + - CAST( 37 AS SIGNED ) * 73 * 36 + COALESCE ( - - NULLIF ( + - CAST( 93 AS SIGNED ), + - MAX( DISTINCT + 54 ) - COALESCE ( COUNT( * ), 76 * + 44 * - 86 - 18, - 94 ) ), + 62, + SUM( ( 87 ) ) ) WHEN 57 THEN - 47 + 53 ELSE + 59 END + 7 DIV - 11, 91 * - COUNT( * ) + - ( - 73 ), + 7 ) * - ( 73 ) + - ( + COUNT( * ) + + 91 ) AS col1
----
-5494

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL + COALESCE ( - - 74, + COUNT ( * ) * - CASE - + 83 WHEN + - 21 THEN NULL WHEN - 7 + + - COUNT ( * ) * - - 3 / - 88 + + CAST ( NULL AS REAL ) / + 2 THEN - 21 + - CAST ( 37 AS INTEGER ) * 73 * 36 + COALESCE ( - - NULLIF ( + - CAST ( 93 AS INTEGER ), + - MAX ( DISTINCT + 54 ) - COALESCE ( COUNT ( * ), 76 * + 44 * - 86 - 18, - 94 ) ), + 62, + SUM ( ( 87 ) ) ) WHEN 57 THEN - 47 + 53 ELSE + 59 END + 7 / - 11, 91 * - COUNT ( * ) + - ( - 73 ), + 7 ) * - ( 73 ) + - ( + COUNT ( * ) + + 91 ) AS col1
----
-5494

query I rowsort
SELECT ALL + 86 col2
----
86

query I rowsort
SELECT + 57 * - 75 + NULLIF ( - + 31, + - 85 )
----
-4306

query I rowsort
SELECT ALL + 18 * + + 9 + 78 + - - 71
----
311

query II rowsort
SELECT + - 82 AS col1, 89 * - 36
----
-82
-3204

query II rowsort
SELECT + + 41 AS col2, + CASE + 34 WHEN + + 59 THEN - 91 * - 83 * 32 + 0 WHEN - 19 THEN NULL END + - 42
----
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL - COUNT( * ) * + 76 + + + 81
----
5

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL - COUNT ( * ) * + 76 + + + 81
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT + 10 - + - 69 + - + 72 * + + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5455
SELECT + 10 - + - 69 + - + 72 * + + COUNT ( * ) AS col2
----
7

query II rowsort
SELECT + - ( - 89 ), 17 AS col2
----
89
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5457
SELECT - 11 col2, COUNT( * ) * - - 79 * + 14 col0
----
-11
1106

skipif mysql # not compatible
query II rowsort label-5457
SELECT - 11 col2, COUNT ( * ) * - - 79 * + 14 col0
----
-11
1106

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT + - 83 - + 32 + + + MIN( ALL + 32 ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-5458
SELECT + - 83 - + 32 + + + MIN ( ALL + 32 ) col0
----
-83

query I rowsort
SELECT - - 78 * 96 + - 80 AS col2
----
7408

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL + MAX( - 31 ) * + 24
----
-744

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL + MAX ( - 31 ) * + 24
----
-744

query I rowsort
SELECT ALL + - CASE - - 72 WHEN + 7 THEN ( + + 84 ) - + 36 + - - 7 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT DISTINCT 11 * 38 / + 90 * 95 + - + CASE WHEN NOT ( + COUNT( * ) BETWEEN 98 * ( + 81 ) + + + 83 AND - 35 ) THEN 22 / 75 * 81 + CAST( NULL AS SIGNED ) * + COALESCE ( + 11, 21 * + - 60 + + 27 ) + + - COUNT( * ) * - 14 ELSE 38 + + + 18 * 20 + - 82 + - + 10 - + 17 * - 46 * - CAST( NULL AS SIGNED ) * - CASE + COUNT( * ) WHEN 82 THEN + 10 ELSE 19 * + 62 END + 8 END + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT 11 * 38 / + 90 * 95 + - + CASE WHEN NOT ( + COUNT ( * ) BETWEEN 98 * ( + 81 ) + + + 83 AND - 35 ) THEN 22 / 75 * 81 + CAST ( NULL AS INTEGER ) * + COALESCE ( + 11, 21 * + - 60 + + 27 ) + + - COUNT ( * ) * - 14 ELSE 38 + + + 18 * 20 + - 82 + - + 10 - + 17 * - 46 * - CAST ( NULL AS INTEGER ) * - CASE + COUNT ( * ) WHEN 82 THEN + 10 ELSE 19 * + 62 END + 8 END + - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT ALL COUNT( * ) * + 48
----
48

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL COUNT ( * ) * + 48
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT ALL + CAST( - 72 AS SIGNED ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL + CAST ( - 72 AS INTEGER ) col2
----
-72

query I rowsort
SELECT + 73 - - - 29 AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5466
SELECT DISTINCT - COUNT( * ), + 21 col0
----
-1
21

skipif mysql # not compatible
query II rowsort label-5466
SELECT DISTINCT - COUNT ( * ), + 21 col0
----
-1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - 85 * - 67 * + + ( + 32 ) + - - 4 + 13 * - - COALESCE ( - 27, - MAX( ALL - 32 ) ) AS col0
----
181893

skipif mysql # not compatible
query I rowsort label-5467
SELECT - 85 * - 67 * + + ( + 32 ) + - - 4 + 13 * - - COALESCE ( - 27, - MAX ( ALL - 32 ) ) AS col0
----
181893

query I rowsort
SELECT + ( 49 ) * - 25
----
-1225

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT - - 51 * + COALESCE ( 8, 74 + + 6 + + 41 + + COUNT( * ) * ( + 1 ) - - 51 * 19 * + + 58 ) col1
----
408

skipif mysql # not compatible
query I rowsort label-5469
SELECT - - 51 * + COALESCE ( 8, 74 + + 6 + + 41 + + COUNT ( * ) * ( + 1 ) - - 51 * 19 * + + 58 ) col1
----
408

query I rowsort
SELECT + 40 * + 13 AS col2
----
520

onlyif mysql # DIV for integer division: 
query I rowsort label-5471
SELECT ALL - COALESCE ( - ( 94 ), + + ( + - ( 61 ) ) DIV - 16, - 33 DIV - - 66 * 36 - - 14 )
----
94

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - COALESCE ( - ( 94 ), + + ( + - ( 61 ) ) / - 16, - 33 / - - 66 * 36 - - 14 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT + + COUNT( * ) + + 62 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-5472
SELECT + + COUNT ( * ) + + 62 AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5473
SELECT + - 32 + COUNT( * ) AS col2, ( - + COUNT( * ) ) + 39
----
-31
38

skipif mysql # not compatible
query II rowsort label-5473
SELECT + - 32 + COUNT ( * ) AS col2, ( - + COUNT ( * ) ) + 39
----
-31
38

query I rowsort
SELECT ALL + 27 - - - 23 + 11 * - 95 + + 43 * 59 * 25
----
62384

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - 76 + - - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-5475
SELECT - 76 + - - COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT + 87 * - - CASE - 14 WHEN - 52 THEN NULL WHEN - 84 * + + 72 + + 87 THEN - - 52 * - COUNT( + 27 ) - + ( + + 20 ) * + 33 WHEN + - 11 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5476
SELECT + 87 * - - CASE - 14 WHEN - 52 THEN NULL WHEN - 84 * + + 72 + + 87 THEN - - 52 * - COUNT ( + 27 ) - + ( + + 20 ) * + 33 WHEN + - 11 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT ALL CASE - + 11 WHEN - CAST( - + 91 AS SIGNED ) * - COALESCE ( ( - 91 ), - - 60 + + - 1 * - COUNT( * ) / - - 39 + + 84, + - CAST( - - SUM( NULLIF ( 3, - 88 ) ) AS SIGNED ) / + + 25, 81 * - 94 + - + CAST( + + 71 AS SIGNED ) ) * 86 + - MIN( - 81 ) - 53 + + 93 + + - 17 THEN 79 WHEN + 8 * + 58 THEN 54 WHEN - 56 THEN - - 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL CASE - + 11 WHEN - CAST ( - + 91 AS INTEGER ) * - COALESCE ( ( - 91 ), - - 60 + + - 1 * - COUNT ( * ) / - - 39 + + 84, + - CAST ( - - SUM ( NULLIF ( 3, - 88 ) ) AS INTEGER ) / + + 25, 81 * - 94 + - + CAST ( + + 71 AS INTEGER ) ) * 86 + - MIN ( - 81 ) - 53 + + 93 + + - 17 THEN 79 WHEN + 8 * + 58 THEN 54 WHEN - 56 THEN - - 69 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL ( + - COALESCE ( + 93, + 90 * - - 76, + + ( + 42 ) ) ) AS col0, ( + - 73 ) AS col0
----
-93
-73

query I rowsort
SELECT DISTINCT ( 85 )
----
85

query I rowsort
SELECT ALL ( + 52 )
----
52

query II rowsort
SELECT ALL + ( - 71 ) AS col2, 1 AS col2
----
-71
1

query I rowsort
SELECT 8 * - 71 - + CASE 2 WHEN + - NULLIF ( - 25, - 83 ) THEN + - 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT + MIN( DISTINCT ( + 6 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5483
SELECT + MIN ( DISTINCT ( + 6 ) ) AS col1
----
6

query I rowsort
SELECT - 79 + 55 * - + 99
----
-5524

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT - 91 * COUNT( * ) * + 64 * + 61
----
-355264

skipif mysql # not compatible
query I rowsort label-5485
SELECT - 91 * COUNT ( * ) * + 64 * + 61
----
-355264

onlyif mysql # aggregate syntax: 
query II rowsort label-5486
SELECT + ( + 52 ) * - 96 - - + 14 + - 79 + - MIN( + 16 ), + 89 * 95 + - 22 AS col1
----
-5073
8433

skipif mysql # not compatible
query II rowsort label-5486
SELECT + ( + 52 ) * - 96 - - + 14 + - 79 + - MIN ( + 16 ), + 89 * 95 + - 22 AS col1
----
-5073
8433

query I rowsort
SELECT - + 0 * - + NULLIF ( + 6, - + AVG ( - 58 ) * - 53 ) + - - 22 * - 85 AS col1
----
-1870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT DISTINCT + + 83 * + + CAST( NULL AS SIGNED ) * - 28 + - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT + + 83 * + + CAST ( NULL AS INTEGER ) * - 28 + - 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL - - 21 + - 8 + + + COUNT( * ) * + - 11 - + - 18
----
20

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL - - 21 + - 8 + + + COUNT ( * ) * + - 11 - + - 18
----
20

query I rowsort
SELECT ALL - ( - 60 ) + + 10 + - 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT MAX( 32 ) + + 11 col1
----
43

skipif mysql # not compatible
query I rowsort label-5491
SELECT MAX ( 32 ) + + 11 col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL CASE - 74 WHEN - 86 * - - 64 + - ( + + NULLIF ( - - ( - - 17 ), ( + 4 ) ) ) THEN + - ( - + 79 ) + COUNT( * ) WHEN + 29 THEN 34 WHEN + 64 THEN - MAX( ALL + 2 ) WHEN - 75 + + 57 + - NULLIF ( - 8, ( + 77 ) + - MAX( - 0 ) / - 46 ) + + 12 + + - 57 THEN NULL ELSE NULL END + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL CASE - 74 WHEN - 86 * - - 64 + - ( + + NULLIF ( - - ( - - 17 ), ( + 4 ) ) ) THEN + - ( - + 79 ) + COUNT ( * ) WHEN + 29 THEN 34 WHEN + 64 THEN - MAX ( ALL + 2 ) WHEN - 75 + + 57 + - NULLIF ( - 8, ( + 77 ) + - MAX ( - 0 ) / - 46 ) + + 12 + + - 57 THEN NULL ELSE NULL END + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 74 - + 81
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT + - 79 - NULLIF ( + COUNT( * ), - COUNT( * ) * + COALESCE ( - 42, 24 ) * 46 + - - 73 + 92 ) + + + COUNT( * ) - - 44 * - 33 + + 93 + + - 35 * - 44 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + - 79 - NULLIF ( + COUNT ( * ), - COUNT ( * ) * + COALESCE ( - 42, 24 ) * 46 + - - 73 + 92 ) + + + COUNT ( * ) - - 44 * - 33 + + 93 + + - 35 * - 44 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL - NULLIF ( 91, 25 ) * + + 85 - 86 * + COUNT( * )
----
-7821

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL - NULLIF ( 91, 25 ) * + + 85 - 86 * + COUNT ( * )
----
-7821

query I rowsort
SELECT 69 + + 51
----
120

query I rowsort
SELECT ALL 90 * - - 17 * + - 62
----
-94860

query I rowsort
SELECT 15 * - 75 AS col2
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT ALL 30 * COUNT( * ) col0
----
30

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL 30 * COUNT ( * ) col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL 64 * - + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL 64 * - + COUNT ( * )
----
-64

query I rowsort
SELECT 87 * - - CASE 87 WHEN + 1 + + 86 - - NULLIF ( + 6, + 70 ) - - + 4 THEN - + 9 ELSE - ( 51 ) END
----
-4437

onlyif mysql # aggregate syntax: 
query II rowsort label-5502
SELECT DISTINCT 49 col2, 9 / - ( + 60 ) * - 68 + - ( + ( + CASE - + 34 WHEN - 65 THEN - 3 + + - 81 + + + COUNT( * ) END ) ) * 2 * + NULLIF ( - + COUNT( * ), - 2 ) * + 59 + + 13
----
49
NULL

skipif mysql # not compatible
query II rowsort label-5502
SELECT DISTINCT 49 col2, 9 / - ( + 60 ) * - 68 + - ( + ( + CASE - + 34 WHEN - 65 THEN - 3 + + - 81 + + + COUNT ( * ) END ) ) * 2 * + NULLIF ( - + COUNT ( * ), - 2 ) * + 59 + + 13
----
49
NULL

query II rowsort
SELECT ALL 0 AS col1, - 30
----
0
-30

query I rowsort
SELECT 96 * + 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5505
SELECT 32 + - 42 * 90 + - + CAST( NULL AS SIGNED ) + - 71 * + 88 AS col2, - 32 * + - 61
----
NULL
1952

skipif mysql # not compatible
query II rowsort label-5505
SELECT 32 + - 42 * 90 + - + CAST ( NULL AS INTEGER ) + - 71 * + 88 AS col2, - 32 * + - 61
----
NULL
1952

onlyif mysql # aggregate syntax: 
query II rowsort label-5506
SELECT DISTINCT 6 AS col0, - COUNT( * ) * - - 57 * + COALESCE ( - + MIN( - 30 ), + 90 )
----
6
-1710

skipif mysql # not compatible
query II rowsort label-5506
SELECT DISTINCT 6 AS col0, - COUNT ( * ) * - - 57 * + COALESCE ( - + MIN ( - 30 ), + 90 )
----
6
-1710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5507
SELECT ALL CASE - CASE - + 25 WHEN 68 THEN + CAST( + 45 AS SIGNED ) END WHEN 78 THEN 81 END + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL CASE - CASE - + 25 WHEN 68 THEN + CAST ( + 45 AS INTEGER ) END WHEN 78 THEN 81 END + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT SUM( + 45 ) + - ( - 52 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT SUM ( + 45 ) + - ( - 52 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT - MIN( DISTINCT 5 ) + + + ( + SUM( DISTINCT - - 56 ) )
----
51

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT - MIN ( DISTINCT 5 ) + + + ( + SUM ( DISTINCT - - 56 ) )
----
51

query II rowsort
SELECT ALL 67 AS col0, 32
----
67
32

query I rowsort
SELECT ALL - 58 + 92 + - 19 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5512
SELECT ALL - 49 + 65 + - + 64 + COUNT( + 15 ) DIV - 41 * + MAX( ALL + 94 ) * 80 * - + MAX( DISTINCT + - CAST( - - 6 AS SIGNED ) ) * + 46 * 19
----
-48

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - 49 + 65 + - + 64 + COUNT ( + 15 ) / - 41 * + MAX ( ALL + 94 ) * 80 * - + MAX ( DISTINCT + - CAST ( - - 6 AS INTEGER ) ) * + 46 * 19
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT 47 + + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5513
SELECT 47 + + - COUNT ( * )
----
46

query II rowsort
SELECT + 79, 58 + + 63 AS col0
----
79
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5515
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) / + COUNT( ALL - 62 ) * - + 62 * + CAST( NULL AS DECIMAL ) * + ( + + 23 ) + + 15 + + + 65 * 91 + + + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) / + COUNT ( ALL - 62 ) * - + 62 * + CAST ( NULL AS REAL ) * + ( + + 23 ) + + 15 + + + 65 * 91 + + + 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT - CASE + 24 WHEN + 38 THEN NULL WHEN + - COUNT( * ) + + 99 THEN NULL ELSE - 4 END
----
4

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT - CASE + 24 WHEN + 38 THEN NULL WHEN + - COUNT ( * ) + + 99 THEN NULL ELSE - 4 END
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5517
SELECT COUNT( * ) * - 77 * - 31 * - + COUNT( * ) / + MIN( - - 43 ) * + CASE - + ( + 48 ) WHEN + COALESCE ( NULLIF ( - 91, + 45 + - + 74 + 10 ), - MIN( + 5 ) * + + 68, 31 + 5 ) * - COUNT( * ) + 90 * - 53 THEN NULL ELSE - 5 * - 21 * - CAST( NULL AS SIGNED ) + + 97 END * 21 + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT COUNT ( * ) * - 77 * - 31 * - + COUNT ( * ) / + MIN ( - - 43 ) * + CASE - + ( + 48 ) WHEN + COALESCE ( NULLIF ( - 91, + 45 + - + 74 + 10 ), - MIN ( + 5 ) * + + 68, 31 + 5 ) * - COUNT ( * ) + 90 * - 53 THEN NULL ELSE - 5 * - 21 * - CAST ( NULL AS INTEGER ) + + 97 END * 21 + - 86
----
NULL

query I rowsort
SELECT ALL - ( - - 94 ) col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5519
SELECT DISTINCT - + 18 + 0 * + CAST( + SUM( - ( - 54 ) ) AS SIGNED ) * 63 + + 71 - + + 1 * - 35 DIV + ( + 48 ) col0
----
53

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT - + 18 + 0 * + CAST ( + SUM ( - ( - 54 ) ) AS INTEGER ) * 63 + + 71 - + + 1 * - 35 / + ( + 48 ) col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL - 56 - ( - MAX( - + 11 ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL - 56 - ( - MAX ( - + 11 ) ) AS col2
----
-67

query I rowsort
SELECT ALL - - 49 AS col1
----
49

query II rowsort
SELECT ALL - - 89 col0, 36 + + - ( - - 73 ) + - 63 AS col1
----
89
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5523
SELECT DISTINCT + - 18 * - COUNT( * ) + - - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, + 24 + 61 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-5523
SELECT DISTINCT + - 18 * - COUNT ( * ) + - - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + 24 + 61 AS col1
----
NULL
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT - NULLIF ( 95, 50 ) * + 40 AS col1, - COUNT( ALL 39 )
----
-3800
-1

skipif mysql # not compatible
query II rowsort label-5524
SELECT - NULLIF ( 95, 50 ) * + 40 AS col1, - COUNT ( ALL 39 )
----
-3800
-1

query I rowsort
SELECT ALL + 6 * - 27 AS col2
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5526
SELECT + 42 DIV + COUNT( 3 ) + COALESCE ( MAX( DISTINCT 84 ), + 35 )
----
126

skipif mysql # not compatible
query I rowsort label-5526
SELECT + 42 / + COUNT ( 3 ) + COALESCE ( MAX ( DISTINCT 84 ), + 35 )
----
126

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5527
SELECT ALL + 95 DIV + + CAST( - 57 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL + 95 / + + CAST ( - 57 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT + - COUNT( - 57 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5528
SELECT + - COUNT ( - 57 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + 99 * - - ( - 58 ) * - COUNT( * ) AS col2
----
5742

skipif mysql # not compatible
query I rowsort label-5529
SELECT + 99 * - - ( - 58 ) * - COUNT ( * ) AS col2
----
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT - COUNT( * ) - - - 82 * - - 91 * - + 61
----
455181

skipif mysql # not compatible
query I rowsort label-5530
SELECT - COUNT ( * ) - - - 82 * - - 91 * - + 61
----
455181

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT - 22 - + 18 + + + MIN( ALL - 45 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-5531
SELECT - 22 - + 18 + + + MIN ( ALL - 45 ) AS col0
----
-85

query I rowsort
SELECT ALL - - 91 col1
----
91

query I rowsort
SELECT DISTINCT + ( - 26 ) * 71 AS col2
----
-1846

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT + - 1 * + COUNT( * ) + + - 11
----
-12

skipif mysql # not compatible
query I rowsort label-5534
SELECT + - 1 * + COUNT ( * ) + + - 11
----
-12

query I rowsort
SELECT DISTINCT - - CASE + 63 WHEN 18 THEN 67 * + - 16 END AS col0
----
NULL

query I rowsort
SELECT NULLIF ( + 44, + 95 )
----
44

query I rowsort
SELECT ALL - 10 * + 46 AS col1
----
-460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT COUNT( * ) + 20 + + ( + - 16 ) * + - CASE - 74 WHEN + - 74 / - + 89 * - NULLIF ( - - ( - 93 ), - - 21 ) + - CASE - 60 WHEN SUM( - - 5 ) THEN - 75 / - 90 + - COUNT( * ) - + + 74 END + CAST( 40 AS SIGNED ) THEN - 28 WHEN SUM( DISTINCT + + 12 ) THEN NULL ELSE NULL END + 3 * 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT COUNT ( * ) + 20 + + ( + - 16 ) * + - CASE - 74 WHEN + - 74 / - + 89 * - NULLIF ( - - ( - 93 ), - - 21 ) + - CASE - 60 WHEN SUM ( - - 5 ) THEN - 75 / - 90 + - COUNT ( * ) - + + 74 END + CAST ( 40 AS INTEGER ) THEN - 28 WHEN SUM ( DISTINCT + + 12 ) THEN NULL ELSE NULL END + 3 * 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT + ( + - 12 ) - - 72 + - + COUNT( - + 58 )
----
59

skipif mysql # not compatible
query I rowsort label-5539
SELECT + ( + - 12 ) - - 72 + - + COUNT ( - + 58 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5540
SELECT MIN( - 70 ) * + CAST( 96 AS SIGNED ) + + 92 + 97
----
-6531

skipif mysql # not compatible
query I rowsort label-5540
SELECT MIN ( - 70 ) * + CAST ( 96 AS INTEGER ) + + 92 + 97
----
-6531

query I rowsort
SELECT 26 - - 56
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT COUNT( * ) * - 46 * 99 * - COUNT( + 56 )
----
4554

skipif mysql # not compatible
query I rowsort label-5542
SELECT COUNT ( * ) * - 46 * 99 * - COUNT ( + 56 )
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT ALL COUNT( - 28 ) + 66 col0
----
67

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL COUNT ( - 28 ) + 66 col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT NULLIF ( - - 3, - 29 + + 36 * COUNT( * ) ) + + MIN( ALL 89 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5544
SELECT NULLIF ( - - 3, - 29 + + 36 * COUNT ( * ) ) + + MIN ( ALL 89 ) AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5545
SELECT 16 + 42 AS col2, - CAST( + 42 AS SIGNED ) - - 61 AS col1
----
58
19

skipif mysql # not compatible
query II rowsort label-5545
SELECT 16 + 42 AS col2, - CAST ( + 42 AS INTEGER ) - - 61 AS col1
----
58
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL MIN( - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL MIN ( - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT - MIN( DISTINCT 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-5547
SELECT - MIN ( DISTINCT 63 )
----
-63

query I rowsort
SELECT ALL 98 + + 17
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5549
SELECT NULLIF ( 48, + + COUNT( * ) ) * + + MIN( - 10 ) + - 95 * CAST( - + COUNT( * ) AS SIGNED ) + 74 + + 56 * - 68
----
-4119

skipif mysql # not compatible
query I rowsort label-5549
SELECT NULLIF ( 48, + + COUNT ( * ) ) * + + MIN ( - 10 ) + - 95 * CAST ( - + COUNT ( * ) AS INTEGER ) + 74 + + 56 * - 68
----
-4119

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT ( - - NULLIF ( - 89, - COUNT( * ) ) ) + - 87 AS col0
----
-176

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT ( - - NULLIF ( - 89, - COUNT ( * ) ) ) + - 87 AS col0
----
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT 21 + - + 83 * + + NULLIF ( + + 55, CAST( NULL AS SIGNED ) ) + - 36 + ( - 69 )
----
-4649

skipif mysql # not compatible
query I rowsort label-5551
SELECT 21 + - + 83 * + + NULLIF ( + + 55, CAST ( NULL AS INTEGER ) ) + - 36 + ( - 69 )
----
-4649

query I rowsort
SELECT 57 * - 63 AS col2
----
-3591

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT + 44 + SUM( - - 48 ) + NULLIF ( + - NULLIF ( 43, - + 46 ), + + 25 * + + 74 ) + 76 + + 56
----
181

skipif mysql # not compatible
query I rowsort label-5553
SELECT + 44 + SUM ( - - 48 ) + NULLIF ( + - NULLIF ( 43, - + 46 ), + + 25 * + + 74 ) + 76 + + 56
----
181

query I rowsort
SELECT DISTINCT + 89 col1
----
89

query I rowsort
SELECT DISTINCT + - 38 AS col2
----
-38

query I rowsort
SELECT + + 35 + 34 AS col2
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-5557
SELECT + 45 DIV - 19 + + 43 - + + 14 + 55 + + 37 * 65 AS col0, 65 DIV + 72 AS col2
----
2487
0

skipif mysql # not compatible
query II rowsort label-5557
SELECT + 45 / - 19 + + 43 - + + 14 + 55 + + 37 * 65 AS col0, 65 / + 72 AS col2
----
2487
0

query I rowsort
SELECT ALL - 66 * + 70
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT - - MIN( ALL - + ( - 94 ) ) + 6
----
100

skipif mysql # not compatible
query I rowsort label-5559
SELECT - - MIN ( ALL - + ( - 94 ) ) + 6
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5560
SELECT NULLIF ( - COUNT( * ), + 85 / - - 34 - + 87 - - SUM( ALL + 64 ) * + NULLIF ( + ( + - CAST( NULL AS SIGNED ) ), COALESCE ( + 55, + 84 * - + 3 / 47 + - CAST( 63 AS SIGNED ), + 30 / 66 - + 90 + - 52 + 70 - - 67 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5560
SELECT NULLIF ( - COUNT ( * ), + 85 / - - 34 - + 87 - - SUM ( ALL + 64 ) * + NULLIF ( + ( + - CAST ( NULL AS INTEGER ) ), COALESCE ( + 55, + 84 * - + 3 / 47 + - CAST ( 63 AS INTEGER ), + 30 / 66 - + 90 + - 52 + 70 - - 67 ) ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5561
SELECT + - ( - CAST( - 85 AS SIGNED ) ) DIV + SUM( DISTINCT - 17 ) DIV - COUNT( * ) + - 81 + MIN( ALL + ( - 90 ) ) + + MAX( + - 76 )
----
-252

skipif mysql # not compatible
query I rowsort label-5561
SELECT + - ( - CAST ( - 85 AS INTEGER ) ) / + SUM ( DISTINCT - 17 ) / - COUNT ( * ) + - 81 + MIN ( ALL + ( - 90 ) ) + + MAX ( + - 76 )
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT ALL + + COALESCE ( - + 53, 26 DIV - 32 + + - 1 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL + + COALESCE ( - + 53, 26 / - 32 + + - 1 ) AS col1
----
-53

query I rowsort
SELECT - 19 + - 32 + - + 47 AS col2
----
-98

query I rowsort
SELECT - ( + - 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5565
SELECT - COUNT( * ) * - 19 DIV 38 * - 78 + + 66 + - 36 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5565
SELECT - COUNT ( * ) * - 19 / 38 * - 78 + + 66 + - 36 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT 53 * + + 30 + + 66 - 46 * + COUNT( * ) + + + 81 AS col2
----
1691

skipif mysql # not compatible
query I rowsort label-5566
SELECT 53 * + + 30 + + 66 - 46 * + COUNT ( * ) + + + 81 AS col2
----
1691

query II rowsort
SELECT + 90, - 44 * + ( ( + - 92 ) ) col2
----
90
4048

query I rowsort
SELECT ALL + 30 + + 96
----
126

query I rowsort
SELECT - 17 * - - 77
----
-1309

query I rowsort
SELECT ALL ( 37 )
----
37

query I rowsort
SELECT 85 * - - 14 + - 9 AS col0
----
1181

query I rowsort
SELECT DISTINCT - 48 + + 48 * + + 81 * - 12
----
-46704

query I rowsort
SELECT ALL ( - 66 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-5574
SELECT DISTINCT 22 + - 21 + + + COALESCE ( 49, + ( + 56 ) + - ( - NULLIF ( 59, COUNT( * ) ) ) ) AS col1, + 52 AS col1
----
50
52

skipif mysql # not compatible
query II rowsort label-5574
SELECT DISTINCT 22 + - 21 + + + COALESCE ( 49, + ( + 56 ) + - ( - NULLIF ( 59, COUNT ( * ) ) ) ) AS col1, + 52 AS col1
----
50
52

query I rowsort
SELECT - 57 - + ( - 17 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT + COUNT( ALL + 78 ) * + 30
----
30

skipif mysql # not compatible
query I rowsort label-5576
SELECT + COUNT ( ALL + 78 ) * + 30
----
30

query I rowsort
SELECT ALL ( - 72 )
----
-72

query I rowsort
SELECT DISTINCT ( 48 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5579
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-5579
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + 84
----
NULL
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5580
SELECT ALL 21 - 74 + - COUNT( ALL + ( - CAST( NULL AS SIGNED ) ) ) + + 83 DIV 94 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL 21 - 74 + - COUNT ( ALL + ( - CAST ( NULL AS INTEGER ) ) ) + + 83 / 94 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT - COUNT( * ) * - 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5581
SELECT - COUNT ( * ) * - 77 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT - MIN( 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-5582
SELECT - MIN ( 34 )
----
-34

query I rowsort
SELECT DISTINCT 56 - - 80
----
136

query I rowsort
SELECT DISTINCT ( 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT DISTINCT + 28 * + MIN( NULLIF ( + - 19, - + 27 ) ) AS col1
----
-532

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT + 28 * + MIN ( NULLIF ( + - 19, - + 27 ) ) AS col1
----
-532

query I rowsort
SELECT + 10 + 66 + 33 * 95 AS col2
----
3211

onlyif mysql # aggregate syntax: 
query III rowsort label-5587
SELECT DISTINCT + + 2 AS col2, + COUNT( * ) + - 85 col1, + ( - ( SUM( 16 ) ) )
----
2
-84
-16

skipif mysql # not compatible
query III rowsort label-5587
SELECT DISTINCT + + 2 AS col2, + COUNT ( * ) + - 85 col1, + ( - ( SUM ( 16 ) ) )
----
2
-84
-16

query II rowsort
SELECT + + NULLIF ( - + COALESCE ( - - 75, + + 25 ), 52 ), 44 AS col0
----
-75
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT + - COUNT( * ) * + 38 col0
----
-38

skipif mysql # not compatible
query I rowsort label-5589
SELECT + - COUNT ( * ) * + 38 col0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-5590
SELECT DISTINCT 69 DIV 54 + NULLIF ( - 24, + 82 * - 29 * 46 + 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT 69 / 54 + NULLIF ( - 24, + 82 * - 29 * 46 + 23 ) AS col0
----
-23

query I rowsort
SELECT ALL + ( 40 ) AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5592
SELECT + - 74 DIV + MAX( - + 75 ) AS col1, 72
----
0
72

skipif mysql # not compatible
query II rowsort label-5592
SELECT + - 74 / + MAX ( - + 75 ) AS col1, 72
----
0
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT ALL + + 99 DIV - - 29 + + 22 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL + + 99 / - - 29 + + 22 AS col2
----
25

query II rowsort
SELECT + + 0 AS col2, 69
----
0
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5595
SELECT 13 DIV + - 73 + - 68 + + + CAST( 86 AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5595
SELECT 13 / + - 73 + - 68 + + + CAST ( 86 AS INTEGER ) AS col1
----
18

query II rowsort
SELECT + + 59 AS col2, + 43
----
59
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5597
SELECT + + COUNT( * ) AS col2, - ( + 3 ) + COUNT( * ) DIV 7 - + + ( 53 ) AS col1
----
1
-56

skipif mysql # not compatible
query II rowsort label-5597
SELECT + + COUNT ( * ) AS col2, - ( + 3 ) + COUNT ( * ) / 7 - + + ( 53 ) AS col1
----
1
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT COUNT( DISTINCT 68 )
----
1

skipif mysql # not compatible
query I rowsort label-5598
SELECT COUNT ( DISTINCT 68 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5599
SELECT - 67 * CAST( NULL AS SIGNED ) + - + COUNT( * ) + - 16 - 95 * + - 58 * - COUNT( * ) * + 68 * - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT - 67 * CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - 16 - 95 * + - 58 * - COUNT ( * ) * + 68 * - - 21
----
NULL

query I rowsort
SELECT + - 22 - + 96 * 85 AS col2
----
-8182

query I rowsort
SELECT + ( 15 ) AS col2
----
15

query I rowsort
SELECT DISTINCT - 17 * ( - 95 ) + - 16
----
1599

query I rowsort
SELECT COALESCE ( - 70, - 47 ) col2
----
-70

query I rowsort
SELECT + 57 + 83 AS col2
----
140

query I rowsort
SELECT - 63 - - 74
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL - 99 - COUNT( ALL - - 90 ) + - - 97 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL - 99 - COUNT ( ALL - - 90 ) + - - 97 AS col0
----
-3

query I rowsort
SELECT 40 + + 44 AS col0
----
84

query II rowsort
SELECT 50 + - 29, - 60 AS col2
----
21
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5609
SELECT 19 AS col2, COUNT( * ) + - - 20 * + 4 AS col2
----
19
81

skipif mysql # not compatible
query II rowsort label-5609
SELECT 19 AS col2, COUNT ( * ) + - - 20 * + 4 AS col2
----
19
81

query I rowsort
SELECT ALL + 54 * - 49
----
-2646

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT 2 + 17 + + 50 - - COUNT( * ) * COALESCE ( SUM( + 52 ), - 36 )
----
121

skipif mysql # not compatible
query I rowsort label-5611
SELECT 2 + 17 + + 50 - - COUNT ( * ) * COALESCE ( SUM ( + 52 ), - 36 )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL + SUM( - - 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL + SUM ( - - 33 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ( + COALESCE ( + 57, + COUNT( * ) * - SUM( DISTINCT 44 ) + 40 ) ) * ( - 23 ) + + 9
----
-1302

skipif mysql # not compatible
query I rowsort label-5613
SELECT ( + COALESCE ( + 57, + COUNT ( * ) * - SUM ( DISTINCT 44 ) + 40 ) ) * ( - 23 ) + + 9
----
-1302

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT + 61 + - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-5614
SELECT + 61 + - COUNT ( * )
----
60

query I rowsort
SELECT DISTINCT - 16 * - 41 * - ( + 19 ) AS col0
----
-12464

query I rowsort
SELECT + 74 + - 98 * + COALESCE ( + - 3, - - NULLIF ( + 46, 41 * - - 88 + + + 70 ) ) + + 77 * + 23 AS col0
----
2139

query II rowsort
SELECT ALL - 83 * 5 + + ( + 32 ) - - + 43 * 72 col2, + 76 * 48 + ( 26 ) + 10 * 69
----
2713
4364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5618
SELECT ALL - 72 + + 27 + - - 39 DIV COUNT( * ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL - 72 + + 27 + - - 39 / COUNT ( * ) col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5619
SELECT DISTINCT - COUNT( * ) AS col1, 98 AS col2
----
-1
98

skipif mysql # not compatible
query II rowsort label-5619
SELECT DISTINCT - COUNT ( * ) AS col1, 98 AS col2
----
-1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT - 86 * - + 17 + ( + 82 ) * + COUNT( * ) + - COUNT( * ) col1
----
1543

skipif mysql # not compatible
query I rowsort label-5620
SELECT - 86 * - + 17 + ( + 82 ) * + COUNT ( * ) + - COUNT ( * ) col1
----
1543

query I rowsort
SELECT DISTINCT - 79 col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5622
SELECT ALL - CAST( NULL AS SIGNED ) + + 37, 63 AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-5622
SELECT ALL - CAST ( NULL AS INTEGER ) + + 37, 63 AS col0
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT 38 * - NULLIF ( + ( 26 ), + - COUNT( * ) * 47 )
----
-988

skipif mysql # not compatible
query I rowsort label-5623
SELECT 38 * - NULLIF ( + ( 26 ), + - COUNT ( * ) * 47 )
----
-988

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5624
SELECT + 98 DIV - COUNT( * ) + COALESCE ( - - 56, 73 + - + COUNT( * ) + ( - 26 ) + + 37 DIV + 93 + 2 * + 71 + 1 DIV - COUNT( * ) DIV + 50 + + 60 ) + - 75 * - 44 * + 37 AS col1, + 93
----
122058
93

skipif mysql # not compatible
query II rowsort label-5624
SELECT + 98 / - COUNT ( * ) + COALESCE ( - - 56, 73 + - + COUNT ( * ) + ( - 26 ) + + 37 / + 93 + 2 * + 71 + 1 / - COUNT ( * ) / + 50 + + 60 ) + - 75 * - 44 * + 37 AS col1, + 93
----
122058
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT DISTINCT + 90 + - + 22 + - - ( + NULLIF ( 45, - 14 * - + 69 + + COUNT( * ) ) ) * - 5 AS col2
----
-157

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT + 90 + - + 22 + - - ( + NULLIF ( 45, - 14 * - + 69 + + COUNT ( * ) ) ) * - 5 AS col2
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT ALL - 31 + COUNT( DISTINCT + 44 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL - 31 + COUNT ( DISTINCT + 44 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT + NULLIF ( + 43, 44 * + COALESCE ( - 84, 34, - ( + 41 ) ) + - + 99 + - 12 ) * - + 37 * COALESCE ( - ( - + COUNT( * ) ), - 69 ) + - 58 + + 66 * + 75
----
3301

skipif mysql # not compatible
query I rowsort label-5627
SELECT + NULLIF ( + 43, 44 * + COALESCE ( - 84, 34, - ( + 41 ) ) + - + 99 + - 12 ) * - + 37 * COALESCE ( - ( - + COUNT ( * ) ), - 69 ) + - 58 + + 66 * + 75
----
3301

onlyif mysql # DIV for integer division: 
query I rowsort label-5628
SELECT DISTINCT 30 DIV 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT 30 / 43 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5629
SELECT DISTINCT - 29 + + 98 + + 92 DIV + + 16
----
74

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT - 29 + + 98 + + 92 / + + 16
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT ALL + 7 DIV + 9
----
0

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL + 7 / + 9
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 77
----
NULL

query I rowsort
SELECT DISTINCT - 64 col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT DISTINCT 23 * + 73 * - - COUNT( * ) AS col0
----
1679

skipif mysql # not compatible
query I rowsort label-5633
SELECT DISTINCT 23 * + 73 * - - COUNT ( * ) AS col0
----
1679

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5634
SELECT ALL 81 - + - 56, + CAST( NULL AS SIGNED ) AS col1
----
137
NULL

skipif mysql # not compatible
query II rowsort label-5634
SELECT ALL 81 - + - 56, + CAST ( NULL AS INTEGER ) AS col1
----
137
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5635
SELECT - CAST( NULL AS SIGNED ) * - 48 + 83 AS col1, - 47
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-5635
SELECT - CAST ( NULL AS INTEGER ) * - 48 + 83 AS col1, - 47
----
NULL
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + 44 * ( - 60 ) + + COUNT( * ) col2
----
-2639

skipif mysql # not compatible
query I rowsort label-5636
SELECT + 44 * ( - 60 ) + + COUNT ( * ) col2
----
-2639

query I rowsort
SELECT 60 + + ( - + 18 )
----
42

query I rowsort
SELECT ALL 45 - + + 27 AS col2
----
18

query I rowsort
SELECT 31 * + 43
----
1333

query I rowsort
SELECT DISTINCT 92 * 67
----
6164

query I rowsort
SELECT 56 * 14
----
784

onlyif mysql # DIV for integer division: 
query II rowsort label-5642
SELECT 75 DIV - 15, 82 * + 22 AS col0
----
-5
1804

skipif mysql # not compatible
query II rowsort label-5642
SELECT 75 / - 15, 82 * + 22 AS col0
----
-5
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT 46 * + COUNT( + 2 )
----
46

skipif mysql # not compatible
query I rowsort label-5643
SELECT 46 * + COUNT ( + 2 )
----
46

query I rowsort
SELECT 82 + + + 2 + + 5
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5645
SELECT COUNT( * ) DIV COUNT( * ) + - + 14 col2
----
-13

skipif mysql # not compatible
query I rowsort label-5645
SELECT COUNT ( * ) / COUNT ( * ) + - + 14 col2
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-5646
SELECT + 6 DIV + 62 AS col0, + 75 * - 36
----
0
-2700

skipif mysql # not compatible
query II rowsort label-5646
SELECT + 6 / + 62 AS col0, + 75 * - 36
----
0
-2700

query I rowsort
SELECT ALL + - 42 + ( + 71 ) col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5648
SELECT ALL - 21 + CAST( NULL AS SIGNED ) * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL - 21 + CAST ( NULL AS INTEGER ) * - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT ALL - SUM( DISTINCT - + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - SUM ( DISTINCT - + 21 )
----
21

query I rowsort
SELECT 65 - + + 73 AS col2
----
-8

query I rowsort
SELECT + ( - 97 ) * 79 AS col0
----
-7663

onlyif mysql # DIV for integer division: 
query I rowsort label-5652
SELECT ALL + + 24 * - 27 * - + 57 + - - 64 - + 73 + + 72 + 71 DIV + 68 AS col0
----
37000

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL + + 24 * - 27 * - + 57 + - - 64 - + 73 + + 72 + 71 / + 68 AS col0
----
37000

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT - MAX( DISTINCT + 39 ) * + 68
----
-2652

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT - MAX ( DISTINCT + 39 ) * + 68
----
-2652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5654
SELECT DISTINCT - + CAST( + - 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT - + CAST ( + - 59 AS INTEGER )
----
59

query I rowsort
SELECT 41 * + ( - 45 )
----
-1845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT ALL - CAST( + 16 AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - CAST ( + 16 AS INTEGER ) AS col0
----
-16

query I rowsort
SELECT - 34 + + 1 * - 66 AS col1
----
-100

query II rowsort
SELECT ALL + 96, - 90 col1
----
96
-90

query I rowsort
SELECT - 28 + - - 26
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5660
SELECT ALL 98 DIV - ( - 72 )
----
1

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL 98 / - ( - 72 )
----
1

query I rowsort
SELECT + 14 * 10 + + 3 + ( - - NULLIF ( + 7, 71 ) )
----
150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5662
SELECT + COUNT( * ) * NULLIF ( - + CAST( NULL AS DECIMAL ), + + 15 + + - 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5662
SELECT + COUNT ( * ) * NULLIF ( - + CAST ( NULL AS REAL ), + + 15 + + - 58 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT DISTINCT + CASE + + 7 WHEN + 17 THEN + 39 WHEN AVG ( DISTINCT + 72 ) * 1 THEN NULL END / CAST( + - 36 AS SIGNED ) * 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT + CASE + + 7 WHEN + 17 THEN + 39 WHEN AVG ( DISTINCT + 72 ) * 1 THEN NULL END / CAST ( + - 36 AS INTEGER ) * 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL MAX( DISTINCT + 41 ) * - ( + 40 ) - 7 * - 31 AS col1
----
-1423

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL MAX ( DISTINCT + 41 ) * - ( + 40 ) - 7 * - 31 AS col1
----
-1423

onlyif mysql # aggregate syntax: 
query II rowsort label-5665
SELECT 74 col0, COUNT( * ) AS col0
----
74
1

skipif mysql # not compatible
query II rowsort label-5665
SELECT 74 col0, COUNT ( * ) AS col0
----
74
1

query I rowsort
SELECT 73 * - - 97 + COALESCE ( - 62, + 58 * - 59 )
----
7019

query I rowsort
SELECT + 50 - 56 AS col1
----
-6

query I rowsort
SELECT + 62 * + 65
----
4030

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT + 68 * - 99 * - - COUNT( * )
----
-6732

skipif mysql # not compatible
query I rowsort label-5669
SELECT + 68 * - 99 * - - COUNT ( * )
----
-6732

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT - SUM( 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-5670
SELECT - SUM ( 55 ) AS col0
----
-55

query I rowsort
SELECT - ( - 52 ) col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT + COUNT( * ) + 86
----
87

skipif mysql # not compatible
query I rowsort label-5672
SELECT + COUNT ( * ) + 86
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + COUNT( * ) * + 78 * - COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5673
SELECT + COUNT ( * ) * + 78 * - COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT DISTINCT + + 2 + 23 AS col2
----
25

query II rowsort
SELECT - - COALESCE ( - 54, 67 ), - 87 AS col1
----
-54
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-5676
SELECT ALL + MAX( DISTINCT - + 98 ) + 57 col2, + 24 * - 66 * + 92 - - 50 + 65 - 12 - + 68
----
-41
-145693

skipif mysql # not compatible
query II rowsort label-5676
SELECT ALL + MAX ( DISTINCT - + 98 ) + 57 col2, + 24 * - 66 * + 92 - - 50 + 65 - 12 - + 68
----
-41
-145693

query I rowsort
SELECT + + 75 + - - 31 + - - 98 * + ( - 16 ) AS col0
----
-1462

onlyif mysql # aggregate syntax: 
query II rowsort label-5678
SELECT - - 19 AS col1, + COUNT( * )
----
19
1

skipif mysql # not compatible
query II rowsort label-5678
SELECT - - 19 AS col1, + COUNT ( * )
----
19
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5679
SELECT ALL CASE AVG ( 89 ) WHEN + 56 THEN NULL ELSE - CAST( - - ( + 94 ) AS SIGNED ) END + + - 63 + - 77 * + ( - - 37 ) + + 0 AS col2
----
-3006

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL CASE AVG ( 89 ) WHEN + 56 THEN NULL ELSE - CAST ( - - ( + 94 ) AS INTEGER ) END + + - 63 + - 77 * + ( - - 37 ) + + 0 AS col2
----
-3006

query I rowsort
SELECT + 45 + + 34
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT - SUM( ALL + 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5681
SELECT - SUM ( ALL + 44 ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5682
SELECT + 63 * + - 55 + - + ( + COALESCE ( NULLIF ( 28, CAST( NULL AS DECIMAL ) ), 63 - AVG ( DISTINCT - - 44 ), + + ( - 38 ) ) ) DIV + + SUM( ALL - 76 ) AS col0, + 37
----
-3465
37

skipif mysql # not compatible
query II rowsort label-5682
SELECT + 63 * + - 55 + - + ( + COALESCE ( NULLIF ( 28, CAST ( NULL AS REAL ) ), 63 - AVG ( DISTINCT - - 44 ), + + ( - 38 ) ) ) / + + SUM ( ALL - 76 ) AS col0, + 37
----
-3465
37

query I rowsort
SELECT ALL + 40 * 80
----
3200

query I rowsort
SELECT + 72 + ( - 74 ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5685
SELECT - CAST( 0 AS SIGNED ) + - 53 + - 77 DIV 41 DIV COUNT( ALL - 2 ) + - + 17 * 10 col1
----
-224

skipif mysql # not compatible
query I rowsort label-5685
SELECT - CAST ( 0 AS INTEGER ) + - 53 + - 77 / 41 / COUNT ( ALL - 2 ) + - + 17 * 10 col1
----
-224

query I rowsort
SELECT - - 85 * + + 64
----
5440

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT - NULLIF ( - + MAX( DISTINCT - ( - - ( + ( 88 ) ) ) ), - 35 * - 78 ) + - COUNT( * ) - - - 29 + - CASE + 33 WHEN + COUNT( * ) - - 65 THEN 26 * - NULLIF ( 12, 94 ) * + + 68 - + - ( ( + - 61 ) ) * - 88 - + + 58 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT - NULLIF ( - + MAX ( DISTINCT - ( - - ( + ( 88 ) ) ) ), - 35 * - 78 ) + - COUNT ( * ) - - - 29 + - CASE + 33 WHEN + COUNT ( * ) - - 65 THEN 26 * - NULLIF ( 12, 94 ) * + + 68 - + - ( ( + - 61 ) ) * - 88 - + + 58 ELSE NULL END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5688
SELECT ( CAST( COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5688
SELECT ( CAST ( COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT ( 55 ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5690
SELECT 40 * + 55 + + CASE - 18 WHEN + SUM( + + 25 ) THEN 24 END * - CASE + + 33 WHEN + CASE 55 WHEN + - 72 THEN - 10 + + COUNT( * ) ELSE NULL END - + 51 THEN NULL ELSE CAST( + - 37 AS SIGNED ) * + - SUM( 65 ) * 42 + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) END, - COUNT( * ) + + ( + - 93 ) AS col2
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-5690
SELECT 40 * + 55 + + CASE - 18 WHEN + SUM ( + + 25 ) THEN 24 END * - CASE + + 33 WHEN + CASE 55 WHEN + - 72 THEN - 10 + + COUNT ( * ) ELSE NULL END - + 51 THEN NULL ELSE CAST ( + - 37 AS INTEGER ) * + - SUM ( 65 ) * 42 + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) END, - COUNT ( * ) + + ( + - 93 ) AS col2
----
NULL
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT DISTINCT + SUM( - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT + SUM ( - 91 )
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5692
SELECT - MAX( DISTINCT - 26 ) DIV - + ( - 6 ) AS col0, + 88 + + 5 DIV + 82
----
4
88

skipif mysql # not compatible
query II rowsort label-5692
SELECT - MAX ( DISTINCT - 26 ) / - + ( - 6 ) AS col0, + 88 + + 5 / + 82
----
4
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ALL + 95 * + COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL + 95 * + COUNT ( * ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT - COUNT( * ) * COUNT( * ) * + COUNT( 53 ) * - + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5694
SELECT - COUNT ( * ) * COUNT ( * ) * + COUNT ( 53 ) * - + 62 AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5695
SELECT ALL + 69 * - AVG ( + CASE + - 29 WHEN CAST( NULL AS SIGNED ) THEN + - 58 * ( - 32 ) + 21 + 2 + - 83 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + 69 * - AVG ( + CASE + - 29 WHEN CAST ( NULL AS INTEGER ) THEN + - 58 * ( - 32 ) + 21 + 2 + - 83 END )
----
NULL

query I rowsort
SELECT + 27 + 45 + 58 * - 51 AS col0
----
-2886

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT NULLIF ( CASE MAX( + 93 ) WHEN - 17 * + - 77 THEN - - MIN( - - 51 ) * + 96 + 19 * 37 * 42 ELSE - COUNT( * ) END, - - 18 + COUNT( * ) * 52 * 73 + CASE + - 86 WHEN + 77 + - 59 THEN NULL WHEN - 7 THEN - 99 + + + 3 WHEN + + 25 * - 62 + + + 34 THEN NULL WHEN - 77 + - 29 THEN NULL ELSE 23 + - - 22 END + + - ( - 19 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5697
SELECT NULLIF ( CASE MAX ( + 93 ) WHEN - 17 * + - 77 THEN - - MIN ( - - 51 ) * + 96 + 19 * 37 * 42 ELSE - COUNT ( * ) END, - - 18 + COUNT ( * ) * 52 * 73 + CASE + - 86 WHEN + 77 + - 59 THEN NULL WHEN - 7 THEN - 99 + + + 3 WHEN + + 25 * - 62 + + + 34 THEN NULL WHEN - 77 + - 29 THEN NULL ELSE 23 + - - 22 END + + - ( - 19 ) ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5698
SELECT - ( + 73 ) * - - 53 / - + 79 + - SUM( DISTINCT + 44 ) * - 3 - + 42 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT - ( + 73 ) * - - 53 / - + 79 + - SUM ( DISTINCT + 44 ) * - 3 - + 42 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - ( + 46 ) + 71
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT DISTINCT - 60 * 95 * + - COUNT( * ) * - + 37 + - + 75 AS col2
----
-210975

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT - 60 * 95 * + - COUNT ( * ) * - + 37 + - + 75 AS col2
----
-210975

query I rowsort
SELECT ALL + + 22 * - - 9 * 12 + 23 AS col0
----
2399

query II rowsort
SELECT ( + + 78 ) AS col1, 27 + - 78 * 44
----
78
-3405

onlyif mysql # DIV for integer division: 
query II rowsort label-5703
SELECT ALL + + 83 DIV 93 AS col2, 78 AS col1
----
0
78

skipif mysql # not compatible
query II rowsort label-5703
SELECT ALL + + 83 / 93 AS col2, 78 AS col1
----
0
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5704
SELECT DISTINCT - 76 * + CAST( NULL AS SIGNED ) + 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT - 76 * + CAST ( NULL AS INTEGER ) + 75 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5705
SELECT - 12 * - CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) + + ( + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT - 12 * - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + + ( + - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT - - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5706
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5707
SELECT + 77 + - 62 DIV - 96 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5707
SELECT + 77 + - 62 / - 96 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5708
SELECT + 90 + + COUNT( * ) - + - 0 DIV 88 DIV CASE + COALESCE ( - 85, + CAST( NULL AS SIGNED ) ) WHEN + + 93 THEN NULL WHEN + COUNT( * ) THEN + 31 ELSE + 16 + 66 + 54 END AS col2
----
91

skipif mysql # not compatible
query I rowsort label-5708
SELECT + 90 + + COUNT ( * ) - + - 0 / 88 / CASE + COALESCE ( - 85, + CAST ( NULL AS INTEGER ) ) WHEN + + 93 THEN NULL WHEN + COUNT ( * ) THEN + 31 ELSE + 16 + 66 + 54 END AS col2
----
91

query I rowsort
SELECT ALL - 44 * - 22 AS col1
----
968

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT DISTINCT + - 79 - + 80 + - COUNT( * )
----
-160

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT + - 79 - + 80 + - COUNT ( * )
----
-160

query I rowsort
SELECT ALL - ( + + 5 )
----
-5

query II rowsort
SELECT 70 * 35 * 99 AS col0, + 31
----
242550
31

query I rowsort
SELECT ALL 23 * + 2 col0
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5714
SELECT ALL CAST( NULL AS DECIMAL ) / - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL CAST ( NULL AS REAL ) / - 92
----
NULL

query I rowsort
SELECT DISTINCT + 54 * - 55 AS col0
----
-2970

query I rowsort
SELECT ALL - 0 * + 51
----
0

query I rowsort
SELECT 60 * - 14 col0
----
-840

query I rowsort
SELECT 69 * - 15 AS col2
----
-1035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5719
SELECT 76 - MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT 76 - MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT 9 * - 73 * - 20 + - + 88 - - 27 + COUNT( * ) * 40 AS col0
----
13119

skipif mysql # not compatible
query I rowsort label-5720
SELECT 9 * - 73 * - 20 + - + 88 - - 27 + COUNT ( * ) * 40 AS col0
----
13119

query I rowsort
SELECT 85 * + 84 AS col1
----
7140

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT 95 * COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5722
SELECT 95 * COUNT ( * ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ALL + 64 + - - COUNT( * ) col0
----
65

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL + 64 + - - COUNT ( * ) col0
----
65

query I rowsort
SELECT ALL - 10 + + 44
----
34

query I rowsort
SELECT 75 + + 67
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-5726
SELECT + 68 * + 62 + - + 40 + 1 * 99 DIV - ( + 10 )
----
4167

skipif mysql # not compatible
query I rowsort label-5726
SELECT + 68 * + 62 + - + 40 + 1 * 99 / - ( + 10 )
----
4167

query I rowsort
SELECT ALL + 38 * - - 63
----
2394

query I rowsort
SELECT ALL - NULLIF ( - - ( + - 57 ), - + 12 * - 51 * - 85 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT DISTINCT + COUNT( - 4 ) * 32 * 24 + + 18 AS col1
----
786

skipif mysql # not compatible
query I rowsort label-5729
SELECT DISTINCT + COUNT ( - 4 ) * 32 * 24 + + 18 AS col1
----
786

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5730
SELECT 82 + 56 + 24 * - CASE 77 WHEN + 69 THEN + + 83 - - 81 + - CAST( NULL AS SIGNED ) ELSE 11 DIV 73 + - 85 * NULLIF ( - NULLIF ( + 34, + 97 DIV + 54 + - + 89 ), - 52 ) + - 11 END * - - 52 - - 15
----
-3592839

skipif mysql # not compatible
query I rowsort label-5730
SELECT 82 + 56 + 24 * - CASE 77 WHEN + 69 THEN + + 83 - - 81 + - CAST ( NULL AS INTEGER ) ELSE 11 / 73 + - 85 * NULLIF ( - NULLIF ( + 34, + 97 / + 54 + - + 89 ), - 52 ) + - 11 END * - - 52 - - 15
----
-3592839

query I rowsort
SELECT - 52 + 36 col2
----
-16

query I rowsort
SELECT DISTINCT + 6 * - 39 AS col1
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-5733
SELECT 17 + + 17 + + - ( - - 11 ) DIV - 69
----
34

skipif mysql # not compatible
query I rowsort label-5733
SELECT 17 + + 17 + + - ( - - 11 ) / - 69
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5734
SELECT + 18 * + - 17 * - - MAX( ALL + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT + 18 * + - 17 * - - MAX ( ALL + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT ALL 90 AS col1, 71 AS col2
----
90
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT - ( - COUNT( DISTINCT + 85 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5736
SELECT - ( - COUNT ( DISTINCT + 85 ) )
----
1

query II rowsort
SELECT 98 AS col2, + 9 * + 31
----
98
279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5738
SELECT CASE - 28 WHEN MIN( ALL - CAST( NULL AS SIGNED ) ) THEN + 47 ELSE 77 + + CASE + + 86 WHEN 59 * + COUNT( * ) * 70 THEN - 32 WHEN 27 THEN ( + 27 ) END END + + + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT CASE - 28 WHEN MIN ( ALL - CAST ( NULL AS INTEGER ) ) THEN + 47 ELSE 77 + + CASE + + 86 WHEN 59 * + COUNT ( * ) * 70 THEN - 32 WHEN 27 THEN ( + 27 ) END END + + + 63 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5739
SELECT ALL + CAST( NULL AS SIGNED ) / - - 53 + - 60 + - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 53 + - 60 + - 75 AS col0
----
NULL

query II rowsort
SELECT - + 74 AS col2, 67
----
-74
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5741
SELECT DISTINCT - - COUNT( * ) DIV - 11 * - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT - - COUNT ( * ) / - 11 * - 70 AS col0
----
0

query I rowsort
SELECT DISTINCT + - 51 - - 73
----
22

query I rowsort
SELECT 7 + + - 87
----
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-5744
SELECT 66 + - - 14 DIV - - 60 AS col0, + 56
----
66
56

skipif mysql # not compatible
query II rowsort label-5744
SELECT 66 + - - 14 / - - 60 AS col0, + 56
----
66
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT - COUNT( * ) * + - 34 + + ( - - 98 ) - + - ( ( COUNT( * ) ) )
----
133

skipif mysql # not compatible
query I rowsort label-5745
SELECT - COUNT ( * ) * + - 34 + + ( - - 98 ) - + - ( ( COUNT ( * ) ) )
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5746
SELECT - 86 AS col2, - CASE - - 91 WHEN + 44 * - - CAST( - 18 AS SIGNED ) THEN NULL WHEN 17 / + 59 THEN + 29 ELSE NULL END * - - COUNT( * )
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-5746
SELECT - 86 AS col2, - CASE - - 91 WHEN + 44 * - - CAST ( - 18 AS INTEGER ) THEN NULL WHEN 17 / + 59 THEN + 29 ELSE NULL END * - - COUNT ( * )
----
-86
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5747
SELECT - NULLIF ( 97, - CAST( 39 AS SIGNED ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5747
SELECT - NULLIF ( 97, - CAST ( 39 AS INTEGER ) ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT 41 + + - CASE + 11 WHEN - 79 / - - 6 THEN - 58 * + SUM( ALL ( 76 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT 41 + + - CASE + 11 WHEN - 79 / - - 6 THEN - 58 * + SUM ( ALL ( 76 ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5749
SELECT ALL 38 AS col0, CAST( NULL AS SIGNED ) AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-5749
SELECT ALL 38 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
38
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5750
SELECT ALL + CAST( NULL AS DECIMAL ) * - 9 * - 57 / + MIN( ALL - 9 ) * - + 79 + + 15 + + + COUNT( * ) * + NULLIF ( 91, + ( + - ( + 72 ) ) * + 33 * + + 62 * + 93 * - + NULLIF ( 31, 11 * - ( - - ( 38 ) ) * - - COUNT( * ) ) * 1 / + COUNT( * ) + 85 + - 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL + CAST ( NULL AS REAL ) * - 9 * - 57 / + MIN ( ALL - 9 ) * - + 79 + + 15 + + + COUNT ( * ) * + NULLIF ( 91, + ( + - ( + 72 ) ) * + 33 * + + 62 * + 93 * - + NULLIF ( 31, 11 * - ( - - ( 38 ) ) * - - COUNT ( * ) ) * 1 / + COUNT ( * ) + 85 + - 36 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5751
SELECT CASE + + 90 WHEN - 41 THEN CASE 49 WHEN + 61 * + 10 * + 94 * - ( + 75 ) + + + 19 * COUNT( * ) THEN - ( - COUNT( * ) ) WHEN + 6 / + + 21 - - 17 + - + 14 / + 1 THEN NULL END END + + - COUNT( * ) * - - ( + + 75 ) / + + 31 + 39 + + 90 * + - 54 + - 14 / + COUNT( * ) + + 22 * + CAST( - 97 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT CASE + + 90 WHEN - 41 THEN CASE 49 WHEN + 61 * + 10 * + 94 * - ( + 75 ) + + + 19 * COUNT ( * ) THEN - ( - COUNT ( * ) ) WHEN + 6 / + + 21 - - 17 + - + 14 / + 1 THEN NULL END END + + - COUNT ( * ) * - - ( + + 75 ) / + + 31 + 39 + + 90 * + - 54 + - 14 / + COUNT ( * ) + + 22 * + CAST ( - 97 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL CASE 61 WHEN - - 99 THEN + + MAX( DISTINCT 30 ) + + 36 ELSE NULL END + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL CASE 61 WHEN - - 99 THEN + + MAX ( DISTINCT 30 ) + + 36 ELSE NULL END + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT MIN( DISTINCT - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-5753
SELECT MIN ( DISTINCT - 83 )
----
-83

query I rowsort
SELECT 40 * - - 94
----
3760

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5755
SELECT ALL - 11 AS col1, + CAST( NULL AS DECIMAL )
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-5755
SELECT ALL - 11 AS col1, + CAST ( NULL AS REAL )
----
-11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT MIN( DISTINCT + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-5756
SELECT MIN ( DISTINCT + 85 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT 59 DIV - 19
----
-3

skipif mysql # not compatible
query I rowsort label-5757
SELECT 59 / - 19
----
-3

query I rowsort
SELECT 95 + - - 59 AS col1
----
154

query I rowsort
SELECT 66 * COALESCE ( + 98, 40, - 49 + + 37 * - - 81 + + 18 * - 26 ) * - 10
----
-64680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5760
SELECT - 64 * - CAST( NULL AS SIGNED ) + - COALESCE ( + + 39, - 21 * + 28, - 2 + + + COALESCE ( 36, - COUNT( * ) + + 47 + - COUNT( * ), 22 ) + + 42 + - 0 ) - - 93 + - 71 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT - 64 * - CAST ( NULL AS INTEGER ) + - COALESCE ( + + 39, - 21 * + 28, - 2 + + + COALESCE ( 36, - COUNT ( * ) + + 47 + - COUNT ( * ), 22 ) + + 42 + - 0 ) - - 93 + - 71 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT + SUM( - ( + - ( + 91 ) ) )
----
91

skipif mysql # not compatible
query I rowsort label-5761
SELECT + SUM ( - ( + - ( + 91 ) ) )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT DISTINCT 80 DIV + 77 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT 80 / + 77 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT 85 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-5763
SELECT 85 / + 88
----
0

query I rowsort
SELECT ALL - 6 * 47
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT MAX( ALL 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5765
SELECT MAX ( ALL 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT DISTINCT 14 * SUM( ALL + 69 ) * COUNT( - - 61 )
----
966

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT 14 * SUM ( ALL + 69 ) * COUNT ( - - 61 )
----
966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5767
SELECT ALL 73 + + 33 + - + 41 - + COALESCE ( + - 68, COALESCE ( - - 55, + SUM( ALL + 3 ) * 64 + 65 ), 83 ) + - CAST( NULL AS SIGNED ) * - COALESCE ( 71, - 22 + + 38 / + 35 * - 41 * 67 ) + + CAST( NULL AS SIGNED ) + + 9 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL 73 + + 33 + - + 41 - + COALESCE ( + - 68, COALESCE ( - - 55, + SUM ( ALL + 3 ) * 64 + 65 ), 83 ) + - CAST ( NULL AS INTEGER ) * - COALESCE ( 71, - 22 + + 38 / + 35 * - 41 * 67 ) + + CAST ( NULL AS INTEGER ) + + 9 * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT - CASE - 5 WHEN 58 * - 11 THEN + - 88 + - COUNT( * ) WHEN + AVG ( ALL - 56 ) - 16 * + ( 90 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT - CASE - 5 WHEN 58 * - 11 THEN + - 88 + - COUNT ( * ) WHEN + AVG ( ALL - 56 ) - 16 * + ( 90 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5769
SELECT 75 DIV + SUM( - + 74 ) * + COUNT( * ) AS col1, 87 - 82 + - NULLIF ( + - 17, ( SUM( ALL - 99 ) ) ) + - ( - 19 ) + 88 AS col1
----
-1
129

skipif mysql # not compatible
query II rowsort label-5769
SELECT 75 / + SUM ( - + 74 ) * + COUNT ( * ) AS col1, 87 - 82 + - NULLIF ( + - 17, ( SUM ( ALL - 99 ) ) ) + - ( - 19 ) + 88 AS col1
----
-1
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5770
SELECT 10 DIV - + 72 * - - SUM( + + CAST( + - 56 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5770
SELECT 10 / - + 72 * - - SUM ( + + CAST ( + - 56 AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT + 50 * - 34
----
-1700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT + + CAST( + 2 AS SIGNED ) col0
----
2

skipif mysql # not compatible
query I rowsort label-5772
SELECT + + CAST ( + 2 AS INTEGER ) col0
----
2

query II rowsort
SELECT 57, - 89 AS col1
----
57
-89

query I rowsort
SELECT + 16 * 70
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT 22 * 91 + + 17 - - 32 + - COUNT( * ) AS col0
----
2050

skipif mysql # not compatible
query I rowsort label-5775
SELECT 22 * 91 + + 17 - - 32 + - COUNT ( * ) AS col0
----
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT DISTINCT - + ( 36 ) * - - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT - + ( 36 ) * - - COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT 42 * + - SUM( ALL - + 91 ) col0
----
3822

skipif mysql # not compatible
query I rowsort label-5777
SELECT 42 * + - SUM ( ALL - + 91 ) col0
----
3822

query I rowsort
SELECT + 96 + - - 91
----
187

query I rowsort
SELECT - + 81 + + 43 + - 86 AS col2
----
-124

query I rowsort
SELECT - - 12 * - 94
----
-1128

query I rowsort
SELECT - - ( 65 ) + - 96
----
-31

query I rowsort
SELECT - ( + - ( - 43 ) ) AS col0
----
-43

query II rowsort
SELECT 18, + ( 80 ) AS col1
----
18
80

query I rowsort
SELECT DISTINCT + + 7 + - + 21 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5785
SELECT DISTINCT - CASE - 51 WHEN - COALESCE ( CAST( NULL AS DECIMAL ), 15, + SUM( ALL + 69 ) ) + + 82 + + 81 * COUNT( * ) * + 4 * 12 THEN + 82 / + 53 WHEN - + 44 * 69 THEN - + 52 END + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT - CASE - 51 WHEN - COALESCE ( CAST ( NULL AS REAL ), 15, + SUM ( ALL + 69 ) ) + + 82 + + 81 * COUNT ( * ) * + 4 * 12 THEN + 82 / + 53 WHEN - + 44 * 69 THEN - + 52 END + 57
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT ALL - 36 DIV - - 57
----
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL - 36 / - - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL CASE - 42 WHEN 62 * + + COALESCE ( 84, - 3 / + - ( + + COUNT( * ) ) ) + + 81 / 76 THEN ( + SUM( 23 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL CASE - 42 WHEN 62 * + + COALESCE ( 84, - 3 / + - ( + + COUNT ( * ) ) ) + + 81 / 76 THEN ( + SUM ( 23 ) ) END AS col1
----
NULL

query I rowsort
SELECT + 51 * 29
----
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT - COUNT( 38 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5789
SELECT - COUNT ( 38 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT - COUNT( * ) - 63 col2
----
-64

skipif mysql # not compatible
query I rowsort label-5790
SELECT - COUNT ( * ) - 63 col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT + CASE + 16 WHEN + 65 / 77 * - 80 THEN 9 WHEN 91 + COUNT( * ) + - - 19 * - - ( 68 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT + CASE + 16 WHEN + 65 / 77 * - 80 THEN 9 WHEN 91 + COUNT ( * ) + - - 19 * - - ( 68 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ( + 88 )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5793
SELECT - 15 * - COUNT( * ) DIV - 69 * - - 19
----
0

skipif mysql # not compatible
query I rowsort label-5793
SELECT - 15 * - COUNT ( * ) / - 69 * - - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT - 65 * - + COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT - 65 * - + COUNT ( * ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT + COUNT( + + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-5795
SELECT + COUNT ( + + 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL COUNT( * ) * - COUNT( * ) + - 63 * - - 10
----
-631

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL COUNT ( * ) * - COUNT ( * ) + - 63 * - - 10
----
-631

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT DISTINCT COUNT( * ) * - 72 - + - 93
----
21

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT COUNT ( * ) * - 72 - + - 93
----
21

query I rowsort
SELECT + 59 * + 74 + - - 96 * + 94 col2
----
13390

query I rowsort
SELECT + 61 - + - ( - + 5 ) AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5800
SELECT 84 DIV + COUNT( * ) + - ( 11 ) + - + 67 + + 60 * + - 80
----
-4794

skipif mysql # not compatible
query I rowsort label-5800
SELECT 84 / + COUNT ( * ) + - ( 11 ) + - + 67 + + 60 * + - 80
----
-4794

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT + COUNT( * ) * - + 39
----
-39

skipif mysql # not compatible
query I rowsort label-5801
SELECT + COUNT ( * ) * - + 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT + 43 * - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-5802
SELECT + 43 * - COUNT ( * ) AS col0
----
-43

query I rowsort
SELECT ALL + ( + - 99 ) col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5804
SELECT + MIN( DISTINCT + + 84 ) + 27, 74 AS col1
----
111
74

skipif mysql # not compatible
query II rowsort label-5804
SELECT + MIN ( DISTINCT + + 84 ) + 27, 74 AS col1
----
111
74

query I rowsort
SELECT + 0 + + 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL COUNT( * ) * + - COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * COUNT ( * )
----
-1

query I rowsort
SELECT + + 51 * + - 40 AS col2
----
-2040

query I rowsort
SELECT DISTINCT + - 58
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5809
SELECT + + 1 DIV ( 69 ) * + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5809
SELECT + + 1 / ( 69 ) * + 98 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT + + CAST( + 19 AS SIGNED ) * 84 * - 38
----
-60648

skipif mysql # not compatible
query I rowsort label-5810
SELECT + + CAST ( + 19 AS INTEGER ) * 84 * - 38
----
-60648

query I rowsort
SELECT + NULLIF ( - 72, + 26 * - + 49 ) col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5812
SELECT + - COUNT( * ) + CAST( 22 AS SIGNED ) + - + 69 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5812
SELECT + - COUNT ( * ) + CAST ( 22 AS INTEGER ) + - + 69 AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5813
SELECT ALL - 21 * + 76 AS col2, - COALESCE ( CAST( + 35 AS SIGNED ), + + 7, MIN( DISTINCT - + 16 ) + COUNT( * ) )
----
-1596
-35

skipif mysql # not compatible
query II rowsort label-5813
SELECT ALL - 21 * + 76 AS col2, - COALESCE ( CAST ( + 35 AS INTEGER ), + + 7, MIN ( DISTINCT - + 16 ) + COUNT ( * ) )
----
-1596
-35

query I rowsort
SELECT - + 52 + 70 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5815
SELECT + CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) AS col2, - 45
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-5815
SELECT + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2, - 45
----
NULL
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5816
SELECT - MAX( + 40 ) DIV SUM( 74 ) + + 47 AS col1, - 25 AS col2
----
47
-25

skipif mysql # not compatible
query II rowsort label-5816
SELECT - MAX ( + 40 ) / SUM ( 74 ) + + 47 AS col1, - 25 AS col2
----
47
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL - COUNT( * ) * - 16 + - + 4
----
12

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL - COUNT ( * ) * - 16 + - + 4
----
12

query I rowsort
SELECT DISTINCT - 27 + - 57 - - ( 91 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL - 69 + + COUNT( * ) + 56 + - - 57 * COUNT( * ) * - + 49 AS col1
----
-2805

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL - 69 + + COUNT ( * ) + 56 + - - 57 * COUNT ( * ) * - + 49 AS col1
----
-2805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT ALL - - CAST( NULL AS SIGNED ) + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL - - CAST ( NULL AS INTEGER ) + 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT - ( - MAX( DISTINCT - ( - 90 ) ) ) - + 6
----
84

skipif mysql # not compatible
query I rowsort label-5821
SELECT - ( - MAX ( DISTINCT - ( - 90 ) ) ) - + 6
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL - 50 * + + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL - 50 * + + COUNT ( * )
----
-50

query I rowsort
SELECT + 46 + - + 65
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5824
SELECT - 98 AS col0, COALESCE ( + + 80, - 92 - - 74 * - - 73, + NULLIF ( 67, + - COALESCE ( + 55, 93 * SUM( ALL - - 63 ), + 85 ) * ( NULLIF ( 83, - - 15 + - 76 * + - 10 + + 31 * - + COUNT( * ) * + 6 * + COUNT( * ) * + 89 + + + 3 * - + 94 + + 7 + - + 27 ) ) ) * - 84 ) * - - 66 DIV - COUNT( * )
----
-98
-5280

skipif mysql # not compatible
query II rowsort label-5824
SELECT - 98 AS col0, COALESCE ( + + 80, - 92 - - 74 * - - 73, + NULLIF ( 67, + - COALESCE ( + 55, 93 * SUM ( ALL - - 63 ), + 85 ) * ( NULLIF ( 83, - - 15 + - 76 * + - 10 + + 31 * - + COUNT ( * ) * + 6 * + COUNT ( * ) * + 89 + + + 3 * - + 94 + + 7 + - + 27 ) ) ) * - 84 ) * - - 66 / - COUNT ( * )
----
-98
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT ALL - 78 + + - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL - 78 + + - COUNT ( * )
----
-79

query I rowsort
SELECT ALL 4 * - + 78
----
-312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5827
SELECT DISTINCT 63 + CASE CAST( + 22 AS SIGNED ) WHEN - 47 + - 41 THEN - - 49 END / + 46 * - + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT 63 + CASE CAST ( + 22 AS INTEGER ) WHEN - 47 + - 41 THEN - - 49 END / + 46 * - + 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT DISTINCT CAST( 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT CAST ( 19 AS INTEGER )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT DISTINCT + 33 * + MAX( + - 90 ) AS col0
----
-2970

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT + 33 * + MAX ( + - 90 ) AS col0
----
-2970

query I rowsort
SELECT - ( - 24 ) + - 26 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5831
SELECT ALL + ( + 34 ) DIV COUNT( DISTINCT + 94 ) * - + 8 - - 59 + + 74 + - 57, 57 + + - 8 + + ( 70 ) AS col0
----
-196
119

skipif mysql # not compatible
query II rowsort label-5831
SELECT ALL + ( + 34 ) / COUNT ( DISTINCT + 94 ) * - + 8 - - 59 + + 74 + - 57, 57 + + - 8 + + ( 70 ) AS col0
----
-196
119

query II rowsort
SELECT DISTINCT + COALESCE ( 21, 99 ) AS col2, 43 + - 34 AS col1
----
21
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT 79 DIV - 84 + - - 84 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5833
SELECT 79 / - 84 + - - 84 AS col2
----
84

query I rowsort
SELECT + 14 + 55 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL - 16 * + CASE 92 WHEN - + ( COUNT( * ) ) THEN 56 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - 16 * + CASE 92 WHEN - + ( COUNT ( * ) ) THEN 56 END AS col0
----
NULL

query II rowsort
SELECT - 26 * - - 74 * 51, + 97 * + + 68 AS col2
----
-98124
6596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5837
SELECT ALL + - NULLIF ( - 4, - MIN( DISTINCT - NULLIF ( - - CAST( NULL AS SIGNED ), 17 ) ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL + - NULLIF ( - 4, - MIN ( DISTINCT - NULLIF ( - - CAST ( NULL AS INTEGER ), 17 ) ) ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT DISTINCT + ( MIN( DISTINCT + 99 ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT + ( MIN ( DISTINCT + 99 ) ) AS col1
----
99

query II rowsort
SELECT ALL + 44, + 56 + + 49 * + 29 AS col0
----
44
1477

query I rowsort
SELECT ALL 29 * + 99 * + 13 + - 78
----
37245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5841
SELECT ALL - COUNT( * ) * - + 98 * - - 92 - - - CAST( NULL AS SIGNED ) + - SUM( - 9 ) * 64 * + + 95 + - COUNT( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL - COUNT ( * ) * - + 98 * - - 92 - - - CAST ( NULL AS INTEGER ) + - SUM ( - 9 ) * 64 * + + 95 + - COUNT ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT + - MIN( + - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT + - MIN ( + - 68 )
----
68

query I rowsort
SELECT + + NULLIF ( - - 42, - 80 )
----
42

query II rowsort
SELECT ALL + 36 AS col2, + 67
----
36
67

query I rowsort
SELECT ( - + 40 )
----
-40

query II rowsort
SELECT 85 col1, - 98
----
85
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5847
SELECT 13 * - CAST( 67 AS SIGNED ) AS col0, + 30
----
-871
30

skipif mysql # not compatible
query II rowsort label-5847
SELECT 13 * - CAST ( 67 AS INTEGER ) AS col0, + 30
----
-871
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT DISTINCT 13 + - MIN( - 98 ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT 13 + - MIN ( - 98 ) AS col1
----
111

query II rowsort
SELECT + 54, 6 AS col2
----
54
6

query I rowsort
SELECT - 61 * 58 col0
----
-3538

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5851
SELECT DISTINCT + ( - + 24 ) + + - 39 + 54 AS col0, - CAST( 88 AS SIGNED ) * + 97 + + 67
----
-9
-8469

skipif mysql # not compatible
query II rowsort label-5851
SELECT DISTINCT + ( - + 24 ) + + - 39 + 54 AS col0, - CAST ( 88 AS INTEGER ) * + 97 + + 67
----
-9
-8469

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL CASE - 98 WHEN + 33 THEN NULL WHEN + COUNT( * ) THEN - AVG ( DISTINCT - 79 ) ELSE - 26 * + - 23 END
----
598

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL CASE - 98 WHEN + 33 THEN NULL WHEN + COUNT ( * ) THEN - AVG ( DISTINCT - 79 ) ELSE - 26 * + - 23 END
----
598

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT - COUNT( + - 68 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5853
SELECT - COUNT ( + - 68 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5854
SELECT ALL - COUNT( * ) + 79 + 21 DIV - 31 * + + 9 + 55 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL - COUNT ( * ) + 79 + 21 / - 31 * + + 9 + 55 AS col1
----
133

query II rowsort
SELECT DISTINCT 21 AS col1, 41 AS col1
----
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT ALL 76 + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL 76 + + COUNT ( * )
----
77

query II rowsort
SELECT 5 + - + 7 - + 87 AS col2, + 33 col0
----
-89
33

query II rowsort
SELECT ALL 58 + + + 50, 29 AS col1
----
108
29

query I rowsort
SELECT DISTINCT 63 * - 10 AS col0
----
-630

onlyif mysql # DIV for integer division: 
query II rowsort label-5860
SELECT ALL 22 - + 22, ( CASE 3 WHEN - 49 THEN - 94 DIV 80 + + 39 + 33 ELSE + - 84 END ) - - 62 AS col2
----
0
-22

skipif mysql # not compatible
query II rowsort label-5860
SELECT ALL 22 - + 22, ( CASE 3 WHEN - 49 THEN - 94 / 80 + + 39 + 33 ELSE + - 84 END ) - - 62 AS col2
----
0
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ALL 57 - 87 * 68 + 50 * - MAX( 31 )
----
-7409

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL 57 - 87 * 68 + 50 * - MAX ( 31 )
----
-7409

query I rowsort
SELECT DISTINCT + 92 * - ( + + 54 )
----
-4968

query I rowsort
SELECT ( 85 ) * - 92
----
-7820

query I rowsort
SELECT 0 - + 38 + + + 99 * - - 56 col2
----
5506

onlyif mysql # DIV for integer division: 
query I rowsort label-5865
SELECT 36 DIV 5 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5865
SELECT 36 / 5 AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5866
SELECT DISTINCT COUNT( * ) * + 70, - 18 DIV - 67 AS col0
----
70
0

skipif mysql # not compatible
query II rowsort label-5866
SELECT DISTINCT COUNT ( * ) * + 70, - 18 / - 67 AS col0
----
70
0

query I rowsort
SELECT ALL - + 13 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ( 37 ) * - ( COUNT( * ) ) + - 87 + - 8 * - 33
----
140

skipif mysql # not compatible
query I rowsort label-5868
SELECT ( 37 ) * - ( COUNT ( * ) ) + - 87 + - 8 * - 33
----
140

query I rowsort
SELECT ALL - - 35 AS col2
----
35

query I rowsort
SELECT - 19 - + - 51
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT 81 DIV + + 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5871
SELECT 81 / + + 67 AS col1
----
1

query I rowsort
SELECT 71 * + 97 * - + 38 AS col1
----
-261706

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT - 46 DIV 16 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5873
SELECT - 46 / 16 AS col1
----
-2

query I rowsort
SELECT ALL - ( 63 ) AS col2
----
-63

query II rowsort
SELECT DISTINCT - - 13 + 5 AS col1, + 34
----
18
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT DISTINCT - 80 + + COUNT( * ) * + - 71
----
-151

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT - 80 + + COUNT ( * ) * + - 71
----
-151

query I rowsort
SELECT 75 * - - CASE - - ( - 32 ) WHEN + - 18 THEN NULL WHEN 25 THEN NULL WHEN 33 * - 36 * + + 10 THEN 61 END + + ( + 57 ) + + - 18 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 0 * 83 * + 3 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5879
SELECT ALL 65 + 61 + 5 * CAST( NULL AS SIGNED ) AS col1, + 20 AS col2
----
NULL
20

skipif mysql # not compatible
query II rowsort label-5879
SELECT ALL 65 + 61 + 5 * CAST ( NULL AS INTEGER ) AS col1, + 20 AS col2
----
NULL
20

query I rowsort
SELECT ALL + 78 * + - 81
----
-6318

query II rowsort
SELECT 89 + - + 79 AS col0, - 73 AS col0
----
10
-73

query I rowsort
SELECT DISTINCT - 86 + - + 28 AS col2
----
-114

query I rowsort
SELECT ALL - 78 - + 85
----
-163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5884
SELECT ALL COALESCE ( - 3, - - 37 * 37 + + + COALESCE ( + COUNT( * ), + + 22 ) + + 9 * - - COUNT( * ) * + - CAST( - - 73 AS SIGNED ) ) - + 28 * - - COUNT( * ) * + 32 AS col0
----
-899

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL COALESCE ( - 3, - - 37 * 37 + + + COALESCE ( + COUNT ( * ), + + 22 ) + + 9 * - - COUNT ( * ) * + - CAST ( - - 73 AS INTEGER ) ) - + 28 * - - COUNT ( * ) * + 32 AS col0
----
-899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5885
SELECT DISTINCT 16 DIV COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT 16 / COUNT ( * ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5886
SELECT COUNT( * ) - - 93 + - + ( + + 30 ) DIV + NULLIF ( - 67, + - COUNT( * ) DIV 72 * + - 9 ) * - + 10 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5886
SELECT COUNT ( * ) - - 93 + - + ( + + 30 ) / + NULLIF ( - 67, + - COUNT ( * ) / 72 * + - 9 ) * - + 10 AS col0
----
94

query I rowsort
SELECT ALL 51 * - + 5 AS col1
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT 75 + + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5888
SELECT 75 + + COUNT ( * ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT 10 - - COALESCE ( - COUNT( - 16 ), 11, - + 78, COUNT( * ) ) + + MAX( ALL 82 )
----
91

skipif mysql # not compatible
query I rowsort label-5889
SELECT 10 - - COALESCE ( - COUNT ( - 16 ), 11, - + 78, COUNT ( * ) ) + + MAX ( ALL 82 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT NULLIF ( - 3, + MIN( DISTINCT 62 ) * 60 ) * ( + 32 )
----
-96

skipif mysql # not compatible
query I rowsort label-5890
SELECT NULLIF ( - 3, + MIN ( DISTINCT 62 ) * 60 ) * ( + 32 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5891
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) + + 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + + 63 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT 29 * COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5892
SELECT 29 * COUNT ( * ) AS col2
----
29

query I rowsort
SELECT 0 + - 96 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ( + + COUNT( * ) ) + - - 48 * - 27
----
-1295

skipif mysql # not compatible
query I rowsort label-5894
SELECT ( + + COUNT ( * ) ) + - - 48 * - 27
----
-1295

query II rowsort
SELECT DISTINCT 81 AS col2, - 88 col0
----
81
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5896
SELECT CAST( NULL AS SIGNED ) * CAST( - 24 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT CAST ( NULL AS INTEGER ) * CAST ( - 24 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT - 46 * 89 + COUNT( * )
----
-4093

skipif mysql # not compatible
query I rowsort label-5897
SELECT - 46 * 89 + COUNT ( * )
----
-4093

query I rowsort
SELECT ALL - 60 * + 21 + - 25 AS col1
----
-1285

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT CASE 64 WHEN - 19 THEN + 3 WHEN 74 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT CASE 64 WHEN - 19 THEN + 3 WHEN 74 THEN COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5900
SELECT 53 DIV + 14 + 1 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5900
SELECT 53 / + 14 + 1 AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5901
SELECT CASE 93 WHEN + CAST( 76 AS DECIMAL ) THEN NULL WHEN 51 THEN NULL ELSE - 84 DIV - SUM( DISTINCT + 36 * 40 ) + 80 DIV + 30 END
----
2

skipif mysql # not compatible
query I rowsort label-5901
SELECT CASE 93 WHEN + CAST ( 76 AS REAL ) THEN NULL WHEN 51 THEN NULL ELSE - 84 / - SUM ( DISTINCT + 36 * 40 ) + 80 / + 30 END
----
2

query I rowsort
SELECT + 19 * 65
----
1235

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5903
SELECT CASE - CAST( + 62 AS DECIMAL ) WHEN + COUNT( * ) THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT CASE - CAST ( + 62 AS REAL ) WHEN + COUNT ( * ) THEN + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + 14, - 8 * - 68 )
----
14

query I rowsort
SELECT + 65 * + 23 + 31 AS col1
----
1526

query I rowsort
SELECT + CASE - ( - 49 ) WHEN - 18 THEN + 62 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 83 * 84 + + 67 AS col0
----
7039

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT - 89 * + CASE COUNT( * ) WHEN COUNT( * ) * + 18 THEN NULL ELSE + 63 END
----
-5607

skipif mysql # not compatible
query I rowsort label-5908
SELECT - 89 * + CASE COUNT ( * ) WHEN COUNT ( * ) * + 18 THEN NULL ELSE + 63 END
----
-5607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5909
SELECT ALL + 66 * COUNT( * ) + CASE + MAX( 11 ) - - 25 WHEN - COUNT( * ) THEN - CASE - COUNT( * ) WHEN 30 THEN NULL WHEN - ( CASE WHEN NOT ( - CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND - 83 * COUNT( * ) + 28 THEN NULL WHEN 42 BETWEEN 20 AND NULL THEN - 98 END ) THEN 41 ELSE + 50 + 12 END WHEN 44 THEN NULL WHEN 58 THEN ( 60 ) * + 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL + 66 * COUNT ( * ) + CASE + MAX ( 11 ) - - 25 WHEN - COUNT ( * ) THEN - CASE - COUNT ( * ) WHEN 30 THEN NULL WHEN - ( CASE WHEN NOT ( - CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND - 83 * COUNT ( * ) + 28 THEN NULL WHEN 42 BETWEEN 20 AND NULL THEN - 98 END ) THEN 41 ELSE + 50 + 12 END WHEN 44 THEN NULL WHEN 58 THEN ( 60 ) * + 28 ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( 31, 25 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT ALL + COALESCE ( - COUNT( 83 ), - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL + COALESCE ( - COUNT ( 83 ), - 72 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT COALESCE ( - 92, - COALESCE ( 50, + 49, - 70 + - 86 ), COUNT( * ) )
----
-92

skipif mysql # not compatible
query I rowsort label-5912
SELECT COALESCE ( - 92, - COALESCE ( 50, + 49, - 70 + - 86 ), COUNT ( * ) )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT ALL + COUNT( DISTINCT 48 )
----
1

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL + COUNT ( DISTINCT 48 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT ALL - 67 * 35 + - 11 DIV + 27
----
-2345

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL - 67 * 35 + - 11 / + 27
----
-2345

query I rowsort
SELECT - 59 * - 19
----
1121

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT + NULLIF ( - 30, 73 + COUNT( * ) * 14 )
----
-30

skipif mysql # not compatible
query I rowsort label-5916
SELECT + NULLIF ( - 30, 73 + COUNT ( * ) * 14 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT + COUNT( * ) * 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5917
SELECT + COUNT ( * ) * 14 AS col1
----
14

query I rowsort
SELECT + CASE WHEN NULL < + 12 THEN 10 + 11 WHEN 9 IS NOT NULL THEN 8 END * - 39 + 24
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT - 11 DIV NULLIF ( + 30, - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-5919
SELECT - 11 / NULLIF ( + 30, - 86 )
----
0

query I rowsort
SELECT ALL 70 * 57 - 72 AS col1
----
3918

query I rowsort
SELECT - 23 * + 85 AS col0
----
-1955

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT - COUNT( * ) * 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5922
SELECT - COUNT ( * ) * 34 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT DISTINCT 32 * + 93 - + NULLIF ( 2, + COUNT( * ) ) AS col1
----
2974

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT 32 * + 93 - + NULLIF ( 2, + COUNT ( * ) ) AS col1
----
2974

query I rowsort
SELECT ALL + 19 * 38 AS col0
----
722

query I rowsort
SELECT - ( 76 ) + 77
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT + NULLIF ( - 68, + COUNT( * ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT + NULLIF ( - 68, + COUNT ( * ) ) AS col1
----
-68

query I rowsort
SELECT ALL + 19 * - 5
----
-95

query I rowsort
SELECT 28 * 79 + 35 AS col1
----
2247

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT + 21 - + MIN( 32 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5929
SELECT + 21 - + MIN ( 32 ) AS col0
----
-11

query I rowsort
SELECT - 33 * + 1 AS col2
----
-33

query I rowsort
SELECT + 39 + ( 90 ) col0
----
129

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5932
SELECT ALL ( - COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL ( - COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5933
SELECT ALL 97 DIV - 68 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL 97 / - 68 AS col1
----
-1

query I rowsort
SELECT - 3 * 62
----
-186

query I rowsort
SELECT ALL ( - 38 ) AS col0
----
-38

query I rowsort
SELECT ALL ( - 76 ) AS col2
----
-76

query I rowsort
SELECT ALL 49 * 11 AS col2
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT DISTINCT NULLIF ( COUNT( * ), - 88 ) + 91 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT NULLIF ( COUNT ( * ), - 88 ) + 91 AS col2
----
92

query I rowsort
SELECT - - 49 + 4 col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5940
SELECT - + 74 DIV - 72 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5940
SELECT - + 74 / - 72 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT + + 68 DIV - 2 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5941
SELECT + + 68 / - 2 AS col2
----
-34

query I rowsort
SELECT + 40 * + 13 AS col0
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT MAX( ALL - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-5943
SELECT MAX ( ALL - 39 )
----
-39

query I rowsort
SELECT + - 93 * - 88
----
8184

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT DISTINCT - - 21 + + COALESCE ( 46, 33 DIV 22, + ( 55 ) )
----
67

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT - - 21 + + COALESCE ( 46, 33 / 22, + ( 55 ) )
----
67

query I rowsort
SELECT ALL + + 58 * + ( 50 )
----
2900

onlyif mysql # DIV for integer division: 
query I rowsort label-5947
SELECT ALL 88 DIV - 62 + + ( - 54 ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL 88 / - 62 + + ( - 54 ) col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT - + 16 * 63 - COUNT( * ) * + 14
----
-1022

skipif mysql # not compatible
query I rowsort label-5948
SELECT - + 16 * 63 - COUNT ( * ) * + 14
----
-1022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5949
SELECT ALL + 59 DIV + SUM( ALL - 13 ) + 74
----
70

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL + 59 / + SUM ( ALL - 13 ) + 74
----
70

query I rowsort
SELECT + 81 * 6
----
486

query I rowsort
SELECT + + ( - 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - 87 * + SUM( + 47 * + 85 ) + + 90 AS col2
----
-347475

skipif mysql # not compatible
query I rowsort label-5952
SELECT - 87 * + SUM ( + 47 * + 85 ) + + 90 AS col2
----
-347475

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT + COUNT( * ) * + COUNT( * ) + - COALESCE ( 81, - MIN( 22 ), 11 * - 33 - 9 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-5953
SELECT + COUNT ( * ) * + COUNT ( * ) + - COALESCE ( 81, - MIN ( 22 ), 11 * - 33 - 9 ) AS col2
----
-80

query I rowsort
SELECT - + 67 - - 98 AS col1
----
31

query I rowsort
SELECT ALL - ( 18 ) * + 56 AS col2
----
-1008

query I rowsort
SELECT + - 97 + + 11
----
-86

query I rowsort
SELECT + - 16 * - CASE - ( + 29 ) WHEN + 40 * 87 THEN NULL ELSE 76 + - 24 END - 5
----
827

query I rowsort
SELECT + 68 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT ALL 53 * COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL 53 * COUNT ( * )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT + + 86 * + CAST( NULL AS SIGNED ) + - ( + 14 - 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5960
SELECT + + 86 * + CAST ( NULL AS INTEGER ) + - ( + 14 - 18 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 29 * 81 - + 34 AS col0
----
2315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT DISTINCT 40 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT 40 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT - MAX( DISTINCT - 53 ) * 71 AS col2
----
3763

skipif mysql # not compatible
query I rowsort label-5963
SELECT - MAX ( DISTINCT - 53 ) * 71 AS col2
----
3763

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT ALL + NULLIF ( - + COUNT( * ), + 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL + NULLIF ( - + COUNT ( * ), + 50 ) AS col0
----
-1

query I rowsort
SELECT COALESCE ( - + ( 47 ), 71 + + 1, + 20 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT ALL - 61 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL - 61 / + 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5967
SELECT + COUNT( * ) DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-5967
SELECT + COUNT ( * ) / - 29
----
0

query I rowsort
SELECT - 39 * - + 32 * 25
----
31200

query I rowsort
SELECT - 9 * - 33 AS col2
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT - 15 * 16 DIV - 36
----
6

skipif mysql # not compatible
query I rowsort label-5970
SELECT - 15 * 16 / - 36
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT 52 * - 76 + - CAST( 63 AS SIGNED ) AS col2
----
-4015

skipif mysql # not compatible
query I rowsort label-5971
SELECT 52 * - 76 + - CAST ( 63 AS INTEGER ) AS col2
----
-4015

onlyif mysql # DIV for integer division: 
query I rowsort label-5972
SELECT ALL 92 DIV - 4
----
-23

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL 92 / - 4
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT - 3 + COUNT( * ) * 60 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5973
SELECT - 3 + COUNT ( * ) * 60 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5974
SELECT ALL NULLIF ( - + 67, 27 + - CAST( - 45 AS DECIMAL ) * COUNT( * ) )
----
-67

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL NULLIF ( - + 67, 27 + - CAST ( - 45 AS REAL ) * COUNT ( * ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT DISTINCT CASE + - 91 WHEN + 82 THEN NULL WHEN 53 + COUNT( - 52 ) * - 29 THEN 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT CASE + - 91 WHEN + 82 THEN NULL WHEN 53 + COUNT ( - 52 ) * - 29 THEN 14 END
----
NULL

query I rowsort
SELECT ALL + ( 84 ) * 72 + + 52 AS col0
----
6100

query I rowsort
SELECT DISTINCT 8 + + 98 - + 91 AS col1
----
15

query I rowsort
SELECT 0 + + ( 44 ) + 52 * - 61 col1
----
-3128

query I rowsort
SELECT 35 - + 35 * 81
----
-2800

query I rowsort
SELECT 9 + + + ( + 66 ) AS col0
----
75

query I rowsort
SELECT 45 + 69 + + 79 * + 74 AS col0
----
5960

query I rowsort
SELECT - 24 + - 15 + 81
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5983
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN 48 * COUNT( ALL 10 ) + ( 35 ) * - MIN( DISTINCT 39 + - 17 ) THEN NULL ELSE + COUNT( * ) * 46 END AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN 48 * COUNT ( ALL 10 ) + ( 35 ) * - MIN ( DISTINCT 39 + - 17 ) THEN NULL ELSE + COUNT ( * ) * 46 END AS col1
----
46

query I rowsort
SELECT ALL - 17 + 14
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5985
SELECT - 38 + - CAST( NULL AS SIGNED ) + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT - 38 + - CAST ( NULL AS INTEGER ) + + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT COUNT( * ) + + 3 col1
----
4

skipif mysql # not compatible
query I rowsort label-5986
SELECT COUNT ( * ) + + 3 col1
----
4

query I rowsort
SELECT + 65 + - + CASE 85 WHEN 62 + + 63 / - 94 THEN 85 * - 17 END
----
NULL

query I rowsort
SELECT ALL - 56 - 84 * 85
----
-7196

query I rowsort
SELECT + 74 * - 45 AS col0
----
-3330

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT DISTINCT ( - ( + 31 ) ) * + COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT ( - ( + 31 ) ) * + COUNT ( * ) AS col2
----
-31

query I rowsort
SELECT ALL - - 57 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5992
SELECT DISTINCT + CASE AVG ( ALL CAST( + 81 AS SIGNED ) ) WHEN 13 + + 43 THEN - COUNT( * ) + COUNT( 49 ) * 16 WHEN 64 THEN + NULLIF ( 20, - NULLIF ( + COALESCE ( + COUNT( * ), NULLIF ( - CAST( NULL AS SIGNED ), + 50 * 73 ) ), 35 * 79 ) ) * ( CAST( NULL AS SIGNED ) ) - 47 END * ( 7 * + ( COUNT( * ) * MIN( ALL + 72 ) ) + 8 * 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT + CASE AVG ( ALL CAST ( + 81 AS INTEGER ) ) WHEN 13 + + 43 THEN - COUNT ( * ) + COUNT ( 49 ) * 16 WHEN 64 THEN + NULLIF ( 20, - NULLIF ( + COALESCE ( + COUNT ( * ), NULLIF ( - CAST ( NULL AS INTEGER ), + 50 * 73 ) ), 35 * 79 ) ) * ( CAST ( NULL AS INTEGER ) ) - 47 END * ( 7 * + ( COUNT ( * ) * MIN ( ALL + 72 ) ) + 8 * 44 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT DISTINCT - - COUNT( * ) * 86 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT - - COUNT ( * ) * 86 AS col1
----
86

query I rowsort
SELECT ALL + - 51 * + 4 AS col0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT - 71 * - - COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT - 71 * - - COUNT ( * ) AS col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5996
SELECT DISTINCT 16 DIV - 3 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT 16 / - 3 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT DISTINCT - - COUNT( + 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT - - COUNT ( + 44 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - ( + 38 ) AS col2
----
-38

query I rowsort
SELECT ALL - + 64 col2
----
-64

query II rowsort
SELECT DISTINCT - 62, + 95 AS col2
----
-62
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT 65 DIV - 16 - - - 20 DIV + 46 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6001
SELECT 65 / - 16 - - - 20 / + 46 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6002
SELECT ALL - 39 AS col2, - 51 + - SUM( ALL 16 ) * - 51
----
-39
765

skipif mysql # not compatible
query II rowsort label-6002
SELECT ALL - 39 AS col2, - 51 + - SUM ( ALL 16 ) * - 51
----
-39
765

query I rowsort
SELECT 75 * + + 4
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT 86 * + COUNT( * ) col1
----
86

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT 86 * + COUNT ( * ) col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6005
SELECT DISTINCT NULLIF ( - - NULLIF ( 22, + 14 ), 81 ) + + CAST( CAST( MIN( - 70 ) AS SIGNED ) AS SIGNED ) col1
----
-48

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT NULLIF ( - - NULLIF ( 22, + 14 ), 81 ) + + CAST ( CAST ( MIN ( - 70 ) AS INTEGER ) AS INTEGER ) col1
----
-48

query I rowsort
SELECT 29 * + 7 * + - 40 AS col1
----
-8120

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ALL COUNT( * ) + COUNT( * ) * + + 69
----
70

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL COUNT ( * ) + COUNT ( * ) * + + 69
----
70

query I rowsort
SELECT ALL 80 + - 48
----
32

query I rowsort
SELECT 66 * 49 * - 32 - 29
----
-103517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6010
SELECT DISTINCT 51 + - - 43 - 19 + ( + COUNT( 11 ) ) DIV 55
----
75

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT 51 + - - 43 - 19 + ( + COUNT ( 11 ) ) / 55
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL - SUM( + - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL - SUM ( + - 93 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6012
SELECT COALESCE ( + 34, + 51, MIN( DISTINCT - 75 ) * - 94 ) DIV 21 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6012
SELECT COALESCE ( + 34, + 51, MIN ( DISTINCT - 75 ) * - 94 ) / 21 AS col2
----
1

query I rowsort
SELECT ALL 44 + 62 AS col2
----
106

query II rowsort
SELECT DISTINCT 65 AS col1, - 26 AS col2
----
65
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - 85 * - NULLIF ( + 7, + COUNT( * ) ) + COUNT( * ) * 3 AS col2
----
598

skipif mysql # not compatible
query I rowsort label-6015
SELECT - 85 * - NULLIF ( + 7, + COUNT ( * ) ) + COUNT ( * ) * 3 AS col2
----
598

onlyif mysql # DIV for integer division: 
query I rowsort label-6016
SELECT ( + 12 ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-6016
SELECT ( + 12 ) / 77
----
0

query I rowsort
SELECT 45 + - 73 + + - 10 + - 33
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6018
SELECT 48 - SUM( CAST( NULL AS SIGNED ) ) + - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT 48 - SUM ( CAST ( NULL AS INTEGER ) ) + - 26 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6019
SELECT CAST( NULL AS DECIMAL ) * CAST( - 95 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT CAST ( NULL AS REAL ) * CAST ( - 95 AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6020
SELECT ALL + CAST( NULL AS SIGNED ) + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL + CAST ( NULL AS INTEGER ) + - 23
----
NULL

query I rowsort
SELECT ALL - ( + - 84 ) * - 3
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6023
SELECT ALL + CAST( 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + CAST ( 85 AS INTEGER )
----
85

query I rowsort
SELECT DISTINCT - 27 - + + 73
----
-100

query I rowsort
SELECT - ( + - COALESCE ( - 12, 91 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT - COUNT( * ) + - 52
----
-53

skipif mysql # not compatible
query I rowsort label-6026
SELECT - COUNT ( * ) + - 52
----
-53

query I rowsort
SELECT - 72 * + 58
----
-4176

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT 20 + COALESCE ( 25, 12 DIV - 69, 90 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6028
SELECT 20 + COALESCE ( 25, 12 / - 69, 90 ) AS col0
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-6029
SELECT ALL 35, - 72 DIV - 21 AS col0
----
35
3

skipif mysql # not compatible
query II rowsort label-6029
SELECT ALL 35, - 72 / - 21 AS col0
----
35
3

query I rowsort
SELECT DISTINCT + COALESCE ( - - 16, - - 4 ) AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6031
SELECT + CAST( NULL AS SIGNED ) * - MAX( + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT + CAST ( NULL AS INTEGER ) * - MAX ( + 40 )
----
NULL

query I rowsort
SELECT + 52 - - - 38 AS col1
----
14

query I rowsort
SELECT 20 * + + 79
----
1580

query I rowsort
SELECT DISTINCT - - 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ALL - MIN( 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - MIN ( 91 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6036
SELECT CAST( + 52 AS SIGNED ) * - 99 + 60
----
-5088

skipif mysql # not compatible
query I rowsort label-6036
SELECT CAST ( + 52 AS INTEGER ) * - 99 + 60
----
-5088

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT - 1 - + MAX( ALL + 40 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6037
SELECT - 1 - + MAX ( ALL + 40 ) AS col2
----
-41

query I rowsort
SELECT ALL + 60 * 15 col1
----
900

query I rowsort
SELECT 69 * - ( - 16 ) + + 78 col0
----
1182

query I rowsort
SELECT 33 * ( 28 ) - + - 37
----
961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6041
SELECT DISTINCT CASE + CASE - - ( - 46 ) WHEN + 55 * - 35 - 64 * 52 THEN 55 * - COUNT( ALL + 89 ) WHEN + ( - 16 ) THEN + 60 + - 68 / + 35 WHEN - 66 THEN + CAST( NULL AS SIGNED ) END WHEN + COUNT( * ) * - CASE COUNT( * ) WHEN CAST( - 65 AS DECIMAL ) * 92 THEN - 74 * - 25 END THEN 76 * - COUNT( + 7 ) END * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT CASE + CASE - - ( - 46 ) WHEN + 55 * - 35 - 64 * 52 THEN 55 * - COUNT ( ALL + 89 ) WHEN + ( - 16 ) THEN + 60 + - 68 / + 35 WHEN - 66 THEN + CAST ( NULL AS INTEGER ) END WHEN + COUNT ( * ) * - CASE COUNT ( * ) WHEN CAST ( - 65 AS REAL ) * 92 THEN - 74 * - 25 END THEN 76 * - COUNT ( + 7 ) END * 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6042
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 88 + + + 74 - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 88 + + + 74 - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL - 26 * - COUNT( * ) + - 63 + + 65 * 0
----
-37

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - 26 * - COUNT ( * ) + - 63 + + 65 * 0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT + MAX( - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-6044
SELECT + MAX ( - 64 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6045
SELECT ALL + COUNT( 46 ) * - 8 * + 30 * CASE - COUNT( * ) * + 67 WHEN + 24 * - 53 THEN 26 * 71 + - CAST( NULL AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + 61 + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL + COUNT ( 46 ) * - 8 * + 30 * CASE - COUNT ( * ) * + 67 WHEN + 24 * - 53 THEN 26 * 71 + - CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + 61 + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL - COUNT( DISTINCT + + 5 ) * + 83 * - 19
----
1577

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL - COUNT ( DISTINCT + + 5 ) * + 83 * - 19
----
1577

query I rowsort
SELECT DISTINCT 50 * + NULLIF ( - 98, + 21 * + 98 ) + 20 AS col0
----
-4880

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT DISTINCT 19 * 72 + - 43 - - + COUNT( * ) * + ( - 17 + 29 * + COUNT( * ) )
----
1337

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT 19 * 72 + - 43 - - + COUNT ( * ) * + ( - 17 + 29 * + COUNT ( * ) )
----
1337

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT ALL 74 DIV - 32 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL 74 / - 32 AS col2
----
-2

query I rowsort
SELECT ALL - NULLIF ( - CASE WHEN 36 IS NOT NULL THEN 16 ELSE NULL END, + 93 + + 38 ) + 56
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6051
SELECT ALL COUNT( * ) + - - 26 + 68 DIV 3 DIV 17 col1
----
28

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL COUNT ( * ) + - - 26 + 68 / 3 / 17 col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + MAX( DISTINCT + + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-6052
SELECT + MAX ( DISTINCT + + 96 )
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6053
SELECT DISTINCT CASE 35 WHEN 73 * - ( 93 ) * 64 + + CAST( + 78 + 52 AS DECIMAL ) THEN - 65 END + - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT CASE 35 WHEN 73 * - ( 93 ) * 64 + + CAST ( + 78 + 52 AS REAL ) THEN - 65 END + - 44 AS col0
----
NULL

query I rowsort
SELECT - 44 + + 12 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT + COUNT( * ) + - 64
----
-63

skipif mysql # not compatible
query I rowsort label-6055
SELECT + COUNT ( * ) + - 64
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL 91 + COUNT( * ) - + 68 * - 67
----
4648

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL 91 + COUNT ( * ) - + 68 * - 67
----
4648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6057
SELECT + SUM( ALL 96 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT + SUM ( ALL 96 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT ALL ( - CASE + COUNT( * ) WHEN 35 * 47 THEN NULL ELSE - 31 END ) * + 67 AS col0
----
2077

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL ( - CASE + COUNT ( * ) WHEN 35 * 47 THEN NULL ELSE - 31 END ) * + 67 AS col0
----
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT + SUM( + ( 49 ) ) + + 51 col2
----
100

skipif mysql # not compatible
query I rowsort label-6059
SELECT + SUM ( + ( 49 ) ) + + 51 col2
----
100

query I rowsort
SELECT ALL 90 - - 50 * 52 * + 38 AS col1
----
98890

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT + 33 + + 29 + 84 + + - COUNT( * ) AS col2
----
145

skipif mysql # not compatible
query I rowsort label-6061
SELECT + 33 + + 29 + 84 + + - COUNT ( * ) AS col2
----
145

query I rowsort
SELECT DISTINCT + 56 - - + 99 AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT + CASE + MIN( ALL + 13 ) WHEN + 71 THEN + 70 + + MIN( 77 ) * - 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT + CASE + MIN ( ALL + 13 ) WHEN + 71 THEN + 70 + + MIN ( 77 ) * - 32 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6064
SELECT + 86 + - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT + 86 + - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT - - COALESCE ( 95, - 20 * + 92 ) + + 51 AS col0
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT - + 54 + - COALESCE ( + NULLIF ( + + 19, + 38 ), CAST( COUNT( * ) AS SIGNED ) * + 13 ) + COUNT( * ) * 86
----
13

skipif mysql # not compatible
query I rowsort label-6066
SELECT - + 54 + - COALESCE ( + NULLIF ( + + 19, + 38 ), CAST ( COUNT ( * ) AS INTEGER ) * + 13 ) + COUNT ( * ) * 86
----
13

query I rowsort
SELECT + - 85 * - 66 AS col2
----
5610

onlyif mysql # DIV for integer division: 
query I rowsort label-6068
SELECT - - ( - 61 ) + 0 - + - 20 * ( - 86 DIV 46 )
----
-81

skipif mysql # not compatible
query I rowsort label-6068
SELECT - - ( - 61 ) + 0 - + - 20 * ( - 86 / 46 )
----
-81

query I rowsort
SELECT + - 68 + + 66
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT - + MAX( 32 ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-6070
SELECT - + MAX ( 32 ) col2
----
-32

query II rowsort
SELECT + + 93 + 90 AS col2, - NULLIF ( + - 8, - 36 / - 52 ) * 46 AS col1
----
183
368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6072
SELECT ALL - 30 DIV - 56, CASE - + CASE COUNT( * ) WHEN ( CASE 91 WHEN 79 + + 65 THEN NULL WHEN COUNT( * ) + - 67 THEN - 8 + 62 WHEN - CAST( NULL AS SIGNED ) THEN - 14 + + MIN( 68 ) * + ( - 3 * COALESCE ( COUNT( DISTINCT - 92 ), COUNT( DISTINCT 12 ) + - 11 ) + 86 ) END ) * + 86 THEN NULL ELSE 7 * 15 END WHEN - COUNT( * ) THEN 35 WHEN + COALESCE ( 95, 69 + CAST( NULL AS SIGNED ) ) DIV 21 THEN 60 * - CAST( 78 AS SIGNED ) END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6072
SELECT ALL - 30 / - 56, CASE - + CASE COUNT ( * ) WHEN ( CASE 91 WHEN 79 + + 65 THEN NULL WHEN COUNT ( * ) + - 67 THEN - 8 + 62 WHEN - CAST ( NULL AS INTEGER ) THEN - 14 + + MIN ( 68 ) * + ( - 3 * COALESCE ( COUNT ( DISTINCT - 92 ), COUNT ( DISTINCT 12 ) + - 11 ) + 86 ) END ) * + 86 THEN NULL ELSE 7 * 15 END WHEN - COUNT ( * ) THEN 35 WHEN + COALESCE ( 95, 69 + CAST ( NULL AS INTEGER ) ) / 21 THEN 60 * - CAST ( 78 AS INTEGER ) END AS col1
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6073
SELECT - 49 + COALESCE ( + 56, + - 89 * - CAST( NULL AS SIGNED ), + 72 * NULLIF ( 94, - 30 ) + - 5, + 33 )
----
7

skipif mysql # not compatible
query I rowsort label-6073
SELECT - 49 + COALESCE ( + 56, + - 89 * - CAST ( NULL AS INTEGER ), + 72 * NULLIF ( 94, - 30 ) + - 5, + 33 )
----
7

query I rowsort
SELECT DISTINCT 92 col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6075
SELECT ALL + COUNT( * ) * + 13 - - - SUM( ALL + ( CAST( NULL AS SIGNED ) ) ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL + COUNT ( * ) * + 13 - - - SUM ( ALL + ( CAST ( NULL AS INTEGER ) ) ) + 6
----
NULL

query I rowsort
SELECT - + ( + 75 ) + - 51 + + 24 * 4 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6077
SELECT + + CAST( + COALESCE ( - + 49, - + 95 + 33 ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-6077
SELECT + + CAST ( + COALESCE ( - + 49, - + 95 + 33 ) AS INTEGER )
----
-49

query I rowsort
SELECT + 29 * - 90 * 18
----
-46980

query I rowsort
SELECT - 40 * + + 2 AS col0
----
-80

query I rowsort
SELECT DISTINCT - 65 * - 85 + - 13
----
5512

query I rowsort
SELECT ALL - 82 * - 76 + - - 90 AS col0
----
6322

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL CASE 82 WHEN - 52 THEN NULL WHEN - COUNT( * ) THEN + 1 * 13 END * 80 + COALESCE ( - 87, - CASE + 19 WHEN + ( - 18 ) THEN NULL WHEN + 7 * - CASE - 99 WHEN SUM( DISTINCT + 55 ) + - 62 * - 36 THEN - 52 WHEN + ( 85 ) + 81 THEN 9 ELSE NULL END THEN NULL ELSE COUNT( 36 ) END - + SUM( - 8 + 46 ) * COUNT( * ), 22 + + 93 / - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL CASE 82 WHEN - 52 THEN NULL WHEN - COUNT ( * ) THEN + 1 * 13 END * 80 + COALESCE ( - 87, - CASE + 19 WHEN + ( - 18 ) THEN NULL WHEN + 7 * - CASE - 99 WHEN SUM ( DISTINCT + 55 ) + - 62 * - 36 THEN - 52 WHEN + ( 85 ) + 81 THEN 9 ELSE NULL END THEN NULL ELSE COUNT ( 36 ) END - + SUM ( - 8 + 46 ) * COUNT ( * ), 22 + + 93 / - 94 )
----
NULL

query I rowsort
SELECT - 87 * 77 AS col0
----
-6699

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT - 39 DIV - + 61 * + 28
----
0

skipif mysql # not compatible
query I rowsort label-6084
SELECT - 39 / - + 61 * + 28
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6085
SELECT ALL - 55 * - 22 + + - COUNT( * ) + 51 + - - 14 DIV - 42 AS col2
----
1260

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL - 55 * - 22 + + - COUNT ( * ) + 51 + - - 14 / - 42 AS col2
----
1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6086
SELECT ALL - COUNT( * ) DIV + - 62
----
0

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL - COUNT ( * ) / + - 62
----
0

query I rowsort
SELECT - 27 - + 13 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT + MAX( - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-6088
SELECT + MAX ( - 61 ) AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6089
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - 3 + - 5 * - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6090
SELECT - 3 + - 5 * - COUNT ( * ) AS col0
----
2

query I rowsort
SELECT + 9 * 48 AS col2
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT - 21 * + 68 * CASE - + 48 WHEN CASE 0 WHEN COUNT( * ) THEN - 29 ELSE + 98 END * ( 85 ) THEN + ( + 60 ) WHEN 95 * - 27 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT - 21 * + 68 * CASE - + 48 WHEN CASE 0 WHEN COUNT ( * ) THEN - 29 ELSE + 98 END * ( 85 ) THEN + ( + 60 ) WHEN 95 * - 27 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 30 * - 64 + + 9 + - 21 * - 86 AS col2
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6094
SELECT ALL - AVG ( 36 ) * 38 / + AVG ( DISTINCT + + 82 ) + CASE SUM( ALL + 28 ) WHEN + 24 + + CASE + ( - 71 ) WHEN 68 THEN 84 WHEN CAST( 33 AS SIGNED ) * + 37 + + COUNT( * ) * 48 THEN 83 WHEN 92 * ( - 44 ) THEN NULL END THEN 98 + 17 * + 46 END * - MIN( 93 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - AVG ( 36 ) * 38 / + AVG ( DISTINCT + + 82 ) + CASE SUM ( ALL + 28 ) WHEN + 24 + + CASE + ( - 71 ) WHEN 68 THEN 84 WHEN CAST ( 33 AS INTEGER ) * + 37 + + COUNT ( * ) * 48 THEN 83 WHEN 92 * ( - 44 ) THEN NULL END THEN 98 + 17 * + 46 END * - MIN ( 93 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL + COUNT( * ) * NULLIF ( - COALESCE ( - + ( - - 85 ), 78 ), - 61 - 39 ) - 12
----
73

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL + COUNT ( * ) * NULLIF ( - COALESCE ( - + ( - - 85 ), 78 ), - 61 - 39 ) - 12
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6096
SELECT 40 * - - 73 - + 66 * - + 9 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT 40 * - - 73 - + 66 * - + 9 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT DISTINCT + COUNT( * ) * - 16 * 95
----
-1520

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT + COUNT ( * ) * - 16 * 95
----
-1520

onlyif mysql # aggregate syntax: 
query II rowsort label-6098
SELECT ALL + 80 AS col1, - 47 + - + 8 - ( - COUNT( DISTINCT 99 ) ) * + 30 col1
----
80
-25

skipif mysql # not compatible
query II rowsort label-6098
SELECT ALL + 80 AS col1, - 47 + - + 8 - ( - COUNT ( DISTINCT 99 ) ) * + 30 col1
----
80
-25

query I rowsort
SELECT ALL + NULLIF ( + 99, 91 ) * + 80 + + 78 AS col2
----
7998

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT SUM( DISTINCT - 82 ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-6100
SELECT SUM ( DISTINCT - 82 ) col1
----
-82

query II rowsort
SELECT ALL + 65 AS col2, - 36 + - 9 col1
----
65
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6102
SELECT - - COUNT( * ) AS col2, 78 AS col1
----
1
78

skipif mysql # not compatible
query II rowsort label-6102
SELECT - - COUNT ( * ) AS col2, 78 AS col1
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT + + COUNT( * ) * + 57 * + 55 + + - ( - 89 ) + 89
----
3313

skipif mysql # not compatible
query I rowsort label-6103
SELECT + + COUNT ( * ) * + 57 * + 55 + + - ( - 89 ) + 89
----
3313

query I rowsort
SELECT 25 * + 99 - 58
----
2417

query I rowsort
SELECT - ( + + ( 22 ) )
----
-22

query I rowsort
SELECT DISTINCT + 45 * - + 85 AS col0
----
-3825

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6107
SELECT + - 39 * - 36 - 92 AS col2, 1 - - 45 * - CAST( 66 AS SIGNED )
----
1312
-2969

skipif mysql # not compatible
query II rowsort label-6107
SELECT + - 39 * - 36 - 92 AS col2, 1 - - 45 * - CAST ( 66 AS INTEGER )
----
1312
-2969

onlyif mysql # aggregate syntax: 
query II rowsort label-6108
SELECT DISTINCT COUNT( * ), - ( - + 74 ) AS col1
----
1
74

skipif mysql # not compatible
query II rowsort label-6108
SELECT DISTINCT COUNT ( * ), - ( - + 74 ) AS col1
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT DISTINCT + COUNT( * ) * 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT + COUNT ( * ) * 40 AS col1
----
40

query I rowsort
SELECT DISTINCT 8 * + - 6 + - + 64
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT + COUNT( * ) * + ( + 99 ) * 98 AS col2
----
9702

skipif mysql # not compatible
query I rowsort label-6111
SELECT + COUNT ( * ) * + ( + 99 ) * 98 AS col2
----
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT ALL - COUNT( ALL + 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL - COUNT ( ALL + 52 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT - + ( - MIN( + + 3 ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6113
SELECT - + ( - MIN ( + + 3 ) ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT DISTINCT + 51 * 30 * + ( COUNT( * ) )
----
1530

skipif mysql # not compatible
query I rowsort label-6114
SELECT DISTINCT + 51 * 30 * + ( COUNT ( * ) )
----
1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6115
SELECT ALL - 93 + + + 57 DIV 85 AS col2, COUNT( * ) * + - 74
----
-93
-74

skipif mysql # not compatible
query II rowsort label-6115
SELECT ALL - 93 + + + 57 / 85 AS col2, COUNT ( * ) * + - 74
----
-93
-74

query I rowsort
SELECT + - 87 + 43
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT ALL + 18 + - 20 + + 28 - + + ( + 84 ) * 44 DIV - 11 AS col2
----
362

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + 18 + - 20 + + 28 - + + ( + 84 ) * 44 / - 11 AS col2
----
362

query I rowsort
SELECT + + 12 + + 46
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6119
SELECT - + CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT - + CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 1 + 96 AS col1
----
97

query II rowsort
SELECT - 99 AS col1, + 58 AS col0
----
-99
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT ALL MAX( ALL + 64 ) + - 0 + - - NULLIF ( - ( - 14 ), - CASE + 3 WHEN + 60 THEN NULLIF ( 64, - 70 ) WHEN + 81 * 79 THEN NULL END ) * 47
----
722

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL MAX ( ALL + 64 ) + - 0 + - - NULLIF ( - ( - 14 ), - CASE + 3 WHEN + 60 THEN NULLIF ( 64, - 70 ) WHEN + 81 * 79 THEN NULL END ) * 47
----
722

query I rowsort
SELECT + 36 - + 63
----
-27

query I rowsort
SELECT DISTINCT CASE 63 WHEN - - 89 THEN - 9 ELSE 42 END
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT DISTINCT COUNT( * ) + 45 * 73 * 51 - + 58 + - 27 AS col0
----
167451

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT COUNT ( * ) + 45 * 73 * 51 - + 58 + - 27 AS col0
----
167451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6126
SELECT ALL - CAST( - - 16 AS SIGNED ) * - NULLIF ( + 31, - COUNT( * ) * - MIN( ALL 27 ) ) + - 93 AS col2
----
403

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - CAST ( - - 16 AS INTEGER ) * - NULLIF ( + 31, - COUNT ( * ) * - MIN ( ALL 27 ) ) + - 93 AS col2
----
403

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT - 30 * - 34 * - ( + 2 ) * - MAX( DISTINCT 22 ) * - 17 + 86
----
-762874

skipif mysql # not compatible
query I rowsort label-6127
SELECT - 30 * - 34 * - ( + 2 ) * - MAX ( DISTINCT 22 ) * - 17 + 86
----
-762874

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT DISTINCT 28 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT 28 / 23
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6129
SELECT 43 DIV 63 DIV 90 + - 90 * - 29
----
2610

skipif mysql # not compatible
query I rowsort label-6129
SELECT 43 / 63 / 90 + - 90 * - 29
----
2610

query I rowsort
SELECT ALL - 64 col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6131
SELECT ALL ( - 78 ) * - 23 * AVG ( DISTINCT + 3 ) * - 88 + ( 89 - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL ( - 78 ) * - 23 * AVG ( DISTINCT + 3 ) * - 88 + ( 89 - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 67 * - + 21 + + - 44 + - 83
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT DISTINCT - COUNT( DISTINCT + 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT - COUNT ( DISTINCT + 61 )
----
-1

query I rowsort
SELECT 29 * + 50
----
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL 3 * ( + COUNT( * ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL 3 * ( + COUNT ( * ) ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6136
SELECT ALL - 99, COUNT( * ) AS col1
----
-99
1

skipif mysql # not compatible
query II rowsort label-6136
SELECT ALL - 99, COUNT ( * ) AS col1
----
-99
1

query I rowsort
SELECT DISTINCT 20 * - 25 * + 36 AS col2
----
-18000

query II rowsort
SELECT ALL - COALESCE ( + - 39, 76, 74 ) col2, 52
----
39
52

query II rowsort
SELECT 18 AS col2, - 68 + - 25
----
18
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT DISTINCT - COUNT( DISTINCT - - 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT - COUNT ( DISTINCT - - 81 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT DISTINCT - ( - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2
----
1

query II rowsort
SELECT DISTINCT - 63 * + - 38 * - - 28 * 43, 82 AS col0
----
2882376
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6143
SELECT + COUNT( * ) AS col0, - 72 * + COUNT( * ) AS col2
----
1
-72

skipif mysql # not compatible
query II rowsort label-6143
SELECT + COUNT ( * ) AS col0, - 72 * + COUNT ( * ) AS col2
----
1
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6144
SELECT COUNT( * ) DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-6144
SELECT COUNT ( * ) / 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT 26 + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6145
SELECT 26 + COUNT ( * ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT 69 * 33 * - COUNT( * )
----
-2277

skipif mysql # not compatible
query I rowsort label-6146
SELECT 69 * 33 * - COUNT ( * )
----
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT ALL - - 84 * + 88 + + + COUNT( * )
----
7393

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL - - 84 * + 88 + + + COUNT ( * )
----
7393

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT - 91 + - 84 + ( - COALESCE ( 72, - SUM( DISTINCT - 19 ) * + COUNT( * ) + - COUNT( * ) * 46, - 18 ) )
----
-247

skipif mysql # not compatible
query I rowsort label-6148
SELECT - 91 + - 84 + ( - COALESCE ( 72, - SUM ( DISTINCT - 19 ) * + COUNT ( * ) + - COUNT ( * ) * 46, - 18 ) )
----
-247

query II rowsort
SELECT + 64, ( + COALESCE ( + + 68, - 56 ) ) AS col1
----
64
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL - + COUNT( * ) * - ( - + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL - + COUNT ( * ) * - ( - + 91 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6151
SELECT ALL - - 9 + + NULLIF ( 28, CAST( NULL AS SIGNED ) ) * - - ( COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL - - 9 + + NULLIF ( 28, CAST ( NULL AS INTEGER ) ) * - - ( COUNT ( * ) )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6152
SELECT - 1 * - ( - 41 ) * 40 + - 68 + + CAST( + ( + 71 ) AS SIGNED ) + 56 * - 21
----
-2813

skipif mysql # not compatible
query I rowsort label-6152
SELECT - 1 * - ( - 41 ) * 40 + - 68 + + CAST ( + ( + 71 ) AS INTEGER ) + 56 * - 21
----
-2813

query I rowsort
SELECT ALL - - ( - 30 ) + + - 72
----
-102

query I rowsort
SELECT ALL + ( + 61 ) AS col2
----
61

query I rowsort
SELECT DISTINCT 93 col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6156
SELECT ALL - 91 + - + CASE - 41 WHEN - - 98 DIV 20 + COUNT( * ) * 66 THEN 58 * - COUNT( * ) ELSE + 11 DIV + 49 END + 55 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - 91 + - + CASE - 41 WHEN - - 98 / 20 + COUNT ( * ) * 66 THEN 58 * - COUNT ( * ) ELSE + 11 / + 49 END + 55 AS col2
----
-36

query I rowsort
SELECT - 41 + 64 AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6158
SELECT ALL - - 30 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - - 30 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 74 ) * 19 AS col0
----
-1406

query I rowsort
SELECT 18 + 37
----
55

query I rowsort
SELECT 64 + + 25
----
89

query II rowsort
SELECT ALL 37 + - - 95 AS col1, 81 + - 2 col1
----
132
79

query I rowsort
SELECT ALL - ( + - 14 ) AS col0
----
14

query I rowsort
SELECT ALL 64 + + 50 + - ( + 85 ) * - 47 AS col1
----
4109

onlyif mysql # aggregate syntax: 
query II rowsort label-6165
SELECT COUNT( * ) + - 44 AS col0, - 8
----
-43
-8

skipif mysql # not compatible
query II rowsort label-6165
SELECT COUNT ( * ) + - 44 AS col0, - 8
----
-43
-8

query I rowsort
SELECT ALL + + 25 + + + 14 col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6167
SELECT ALL 58 * 79 * 88 DIV - + 49
----
-8228

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL 58 * 79 * 88 / - + 49
----
-8228

query I rowsort
SELECT 13 + - 14 * - - ( 0 )
----
13

query I rowsort
SELECT ALL 69 + 39
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT DISTINCT 87 * - NULLIF ( 78, + 76 - - COUNT( * ) + COUNT( * ) * 42 * 77 ) AS col1
----
-6786

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT 87 * - NULLIF ( 78, + 76 - - COUNT ( * ) + COUNT ( * ) * 42 * 77 ) AS col1
----
-6786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6171
SELECT ALL CAST( + 22 AS SIGNED ) - - MAX( DISTINCT + 38 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL CAST ( + 22 AS INTEGER ) - - MAX ( DISTINCT + 38 ) AS col0
----
60

query I rowsort
SELECT ALL 22 * 14
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT COUNT( * ) + 43 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6173
SELECT COUNT ( * ) + 43 AS col2
----
44

query I rowsort
SELECT 10 * 85 AS col0
----
850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6175
SELECT ALL CAST( NULL AS SIGNED ) - + + COALESCE ( 65, + ( + - 38 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL CAST ( NULL AS INTEGER ) - + + COALESCE ( 65, + ( + - 38 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6176
SELECT COUNT( * ) DIV - + 26 * - 93
----
0

skipif mysql # not compatible
query I rowsort label-6176
SELECT COUNT ( * ) / - + 26 * - 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6177
SELECT ALL COALESCE ( 61, + - 30, - 91 * COUNT( * ) ) DIV + - NULLIF ( + COUNT( * ), + CASE 81 WHEN + 36 * CAST( COALESCE ( ( 85 ), MIN( ALL + 20 ), 24 + + 0 ) AS SIGNED ) THEN 49 WHEN 21 THEN - 56 ELSE NULL END * - 74 + + 97 ) + + 2 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL COALESCE ( 61, + - 30, - 91 * COUNT ( * ) ) / + - NULLIF ( + COUNT ( * ), + CASE 81 WHEN + 36 * CAST ( COALESCE ( ( 85 ), MIN ( ALL + 20 ), 24 + + 0 ) AS INTEGER ) THEN 49 WHEN 21 THEN - 56 ELSE NULL END * - 74 + + 97 ) + + 2 AS col1
----
-59

query I rowsort
SELECT ALL + 40 * + 31
----
1240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6179
SELECT ALL ( - - 62 ) / - - CAST( NULL AS SIGNED ) / CASE - 4 WHEN 62 * + - 68 + 91 THEN + 81 * MIN( 25 / 49 ) + 60 WHEN - 48 * COUNT( ALL 45 ) THEN - ( + 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL ( - - 62 ) / - - CAST ( NULL AS INTEGER ) / CASE - 4 WHEN 62 * + - 68 + 91 THEN + 81 * MIN ( 25 / 49 ) + 60 WHEN - 48 * COUNT ( ALL 45 ) THEN - ( + 1 ) END
----
NULL

query I rowsort
SELECT 77 * - 16 - - + 35 * - 12 col2
----
-1652

query II rowsort
SELECT 63 * 77, + 70 col1
----
4851
70

query I rowsort
SELECT NULLIF ( + 91, + 87 ) - + 87 col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + MIN( - 46 ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-6183
SELECT + MIN ( - 46 ) col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT + 65 * - - CASE - COALESCE ( - 13, + 93, COUNT( * ) ) WHEN - + 17 * 1 + - 16 THEN 22 WHEN 71 + - 39 THEN 54 * COUNT( * ) WHEN - 41 THEN NULL END * 69 + - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT + 65 * - - CASE - COALESCE ( - 13, + 93, COUNT ( * ) ) WHEN - + 17 * 1 + - 16 THEN 22 WHEN 71 + - 39 THEN 54 * COUNT ( * ) WHEN - 41 THEN NULL END * 69 + - 32 AS col0
----
NULL

query I rowsort
SELECT + + 86 col1
----
86

query I rowsort
SELECT ALL + 86 + - 18 AS col0
----
68

query I rowsort
SELECT - CASE - + 47 WHEN - - 80 THEN NULL ELSE - 77 END AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT DISTINCT + MIN( 99 ) + + 70 AS col2
----
169

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT + MIN ( 99 ) + + 70 AS col2
----
169

query I rowsort
SELECT ALL - + ( 68 ) col0
----
-68

query I rowsort
SELECT DISTINCT - - 81 AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6191
SELECT ALL + + 78 + + MIN( ALL + + 2 ) DIV - 27 * + 86 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL + + 78 + + MIN ( ALL + + 2 ) / - 27 * + 86 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT - COUNT( * ) * + 98 + + 13 * + - MAX( + - 12 )
----
58

skipif mysql # not compatible
query I rowsort label-6192
SELECT - COUNT ( * ) * + 98 + + 13 * + - MAX ( + - 12 )
----
58

query I rowsort
SELECT DISTINCT + 34 + - + 91 col2
----
-57

query I rowsort
SELECT ALL - 60 + - - 78
----
18

query I rowsort
SELECT DISTINCT NULLIF ( 0, + 49 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6196
SELECT + COUNT( * ) * + 69 AS col2, - COALESCE ( + 40, 51 ) + 74 + - + 27 * 77 AS col2
----
69
-2045

skipif mysql # not compatible
query II rowsort label-6196
SELECT + COUNT ( * ) * + 69 AS col2, - COALESCE ( + 40, 51 ) + 74 + - + 27 * 77 AS col2
----
69
-2045

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT DISTINCT + MIN( 46 ) + + 72
----
118

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT + MIN ( 46 ) + + 72
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT DISTINCT + CASE + + 67 WHEN 30 / - - 66 THEN - COUNT( * ) ELSE 63 * - 24 END + + COUNT( ALL + 8 ) AS col1
----
-1511

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT + CASE + + 67 WHEN 30 / - - 66 THEN - COUNT ( * ) ELSE 63 * - 24 END + + COUNT ( ALL + 8 ) AS col1
----
-1511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6199
SELECT - - CASE - 5 WHEN + - 10 THEN + CAST( - - 35 AS SIGNED ) * ( - + 3 ) * + 19 + + 72 WHEN ( 17 ) * 87 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6199
SELECT - - CASE - 5 WHEN + - 10 THEN + CAST ( - - 35 AS INTEGER ) * ( - + 3 ) * + 19 + + 72 WHEN ( 17 ) * 87 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 57 * - + 74 AS col2
----
4218

query I rowsort
SELECT + 16 * - 19 AS col2
----
-304

onlyif mysql # DIV for integer division: 
query I rowsort label-6202
SELECT ALL + 80 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL + 80 / 86
----
0

query I rowsort
SELECT - 28 + - 18 - - ( - 79 ) col0
----
-125

query I rowsort
SELECT - 4 + - 75
----
-79

query I rowsort
SELECT - 21 * + 60
----
-1260

query I rowsort
SELECT - 80 + - 27 AS col2
----
-107

query I rowsort
SELECT ALL 68 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL CASE WHEN NOT + 58 NOT IN ( NULLIF ( - - 36, 32 + + 40 ) ) THEN NULL ELSE COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL CASE WHEN NOT + 58 NOT IN ( NULLIF ( - - 36, 32 + + 40 ) ) THEN NULL ELSE COUNT ( * ) END AS col0
----
1

query I rowsort
SELECT + 91 * 64 col1
----
5824

query I rowsort
SELECT ALL ( ( - - 15 ) ) * - - 15 AS col2
----
225

query I rowsort
SELECT - 38 + + - 26
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + CASE - + COUNT( * ) WHEN - AVG ( DISTINCT + 5 ) THEN NULL WHEN 39 / + 21 + - 66 + + - 38 THEN NULL WHEN 54 THEN 37 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT + CASE - + COUNT ( * ) WHEN - AVG ( DISTINCT + 5 ) THEN NULL WHEN 39 / + 21 + - 66 + + - 38 THEN NULL WHEN 54 THEN 37 END AS col2
----
NULL

query I rowsort
SELECT - 55 * - 12 AS col0
----
660

query I rowsort
SELECT 81 * ( - 57 ) + - ( + + 79 )
----
-4696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6215
SELECT + CAST( NULL AS SIGNED ) * - MAX( ALL + + 20 ) + + + CAST( - 72 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT + CAST ( NULL AS INTEGER ) * - MAX ( ALL + + 20 ) + + + CAST ( - 72 AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT + MIN( + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-6216
SELECT + MIN ( + 59 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6217
SELECT + ( + 57 ) / + - 78 - CAST( NULL AS SIGNED ) + AVG ( + 60 ) / + + NULLIF ( 7, + 19 ) * + 1 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6217
SELECT + ( + 57 ) / + - 78 - CAST ( NULL AS INTEGER ) + AVG ( + 60 ) / + + NULLIF ( 7, + 19 ) * + 1 col0
----
NULL

query I rowsort
SELECT DISTINCT + - ( + 45 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL 30 * - COALESCE ( COUNT( + 29 ), - COUNT( * ) + - + 83 ) + - 86
----
-116

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL 30 * - COALESCE ( COUNT ( + 29 ), - COUNT ( * ) + - + 83 ) + - 86
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6220
SELECT ALL - COUNT( * ) * + CASE - 65 WHEN - 14 THEN + CAST( NULL AS SIGNED ) + + CASE ( 53 ) WHEN 71 * - 30 THEN NULL ELSE + 2 END ELSE NULL END + COUNT( * ) * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL - COUNT ( * ) * + CASE - 65 WHEN - 14 THEN + CAST ( NULL AS INTEGER ) + + CASE ( 53 ) WHEN 71 * - 30 THEN NULL ELSE + 2 END ELSE NULL END + COUNT ( * ) * + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT + - 52 + + COUNT( * ) * - 98 + + 46
----
-104

skipif mysql # not compatible
query I rowsort label-6221
SELECT + - 52 + + COUNT ( * ) * - 98 + + 46
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6222
SELECT DISTINCT + 8 * - 76 * - 55 / - COALESCE ( + CASE - COALESCE ( - - CAST( - 87 AS DECIMAL ), + 38, 13 ) WHEN ( + 87 ) THEN 35 + + NULLIF ( 33 + - COUNT( * ), - MAX( DISTINCT + 90 ) + - 39 * + 12 ) END, 17 * 83 ) * + 42 + + CASE + CASE + 67 WHEN CASE 63 WHEN + 95 THEN NULL ELSE ( COUNT( * ) ) * 40 + 79 * COALESCE ( - MAX( - 61 ) + - 72 * + 22, + 51 ) END THEN NULL WHEN 62 THEN 38 WHEN MIN( ( + 14 ) ) / CAST( NULL AS SIGNED ) THEN NULL ELSE 74 END WHEN - CASE 3 WHEN 73 THEN 4 - + COUNT( DISTINCT 44 ) END THEN - COUNT( - 60 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT + 8 * - 76 * - 55 / - COALESCE ( + CASE - COALESCE ( - - CAST ( - 87 AS REAL ), + 38, 13 ) WHEN ( + 87 ) THEN 35 + + NULLIF ( 33 + - COUNT ( * ), - MAX ( DISTINCT + 90 ) + - 39 * + 12 ) END, 17 * 83 ) * + 42 + + CASE + CASE + 67 WHEN CASE 63 WHEN + 95 THEN NULL ELSE ( COUNT ( * ) ) * 40 + 79 * COALESCE ( - MAX ( - 61 ) + - 72 * + 22, + 51 ) END THEN NULL WHEN 62 THEN 38 WHEN MIN ( ( + 14 ) ) / CAST ( NULL AS INTEGER ) THEN NULL ELSE 74 END WHEN - CASE 3 WHEN 73 THEN 4 - + COUNT ( DISTINCT 44 ) END THEN - COUNT ( - 60 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6223
SELECT + + 75 + - 1 + CAST( - + 78 AS SIGNED ) * - - COUNT( * ) + + 62, - 91 col1
----
58
-91

skipif mysql # not compatible
query II rowsort label-6223
SELECT + + 75 + - 1 + CAST ( - + 78 AS INTEGER ) * - - COUNT ( * ) + + 62, - 91 col1
----
58
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6224
SELECT - + 69 DIV 33 * 26 * 26 AS col2
----
-1352

skipif mysql # not compatible
query I rowsort label-6224
SELECT - + 69 / 33 * 26 * 26 AS col2
----
-1352

query I rowsort
SELECT DISTINCT + 64 * - 11 * + 47 + 65 AS col2
----
-33023

query I rowsort
SELECT ALL 97 * NULLIF ( + - 47, + - 21 / + 89 ) AS col1
----
-4559

query II rowsort
SELECT - - 94 * + ( + + 83 ), - 69 AS col1
----
7802
-69

query I rowsort
SELECT - 41 + - - 42 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6229
SELECT + - COALESCE ( - MIN( ALL + - 20 ), 30 + - - 86 + + 24 + + ( - + COALESCE ( 31, COUNT( * ), SUM( 78 ), 11 ) ) * + 64 DIV COUNT( * ), + CAST( NULL AS SIGNED ) )
----
-20

skipif mysql # not compatible
query I rowsort label-6229
SELECT + - COALESCE ( - MIN ( ALL + - 20 ), 30 + - - 86 + + 24 + + ( - + COALESCE ( 31, COUNT ( * ), SUM ( 78 ), 11 ) ) * + 64 / COUNT ( * ), + CAST ( NULL AS INTEGER ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL - 50 * - - ( + 63 ) + 14 + COUNT( * ) * 49 * 97
----
1617

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL - 50 * - - ( + 63 ) + 14 + COUNT ( * ) * 49 * 97
----
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT + 89 + + - COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6231
SELECT + 89 + + - COUNT ( * ) AS col0
----
88

query II rowsort
SELECT ALL - NULLIF ( + + 21, - 54 ), + 93 - 30 AS col1
----
-21
63

query I rowsort
SELECT ALL 72 - 56
----
16

query I rowsort
SELECT ALL - 48 - - 53 AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6235
SELECT - COALESCE ( - 47, CASE 53 WHEN + - 26 THEN - 49 + - 1 * + + MAX( DISTINCT - 24 ) WHEN 65 - COUNT( * ) * 83 THEN + 95 END DIV 73, + 41 DIV 80 + + ( - ( + ( - 48 ) ) ) ) + - 8 * - 37
----
343

skipif mysql # not compatible
query I rowsort label-6235
SELECT - COALESCE ( - 47, CASE 53 WHEN + - 26 THEN - 49 + - 1 * + + MAX ( DISTINCT - 24 ) WHEN 65 - COUNT ( * ) * 83 THEN + 95 END / 73, + 41 / 80 + + ( - ( + ( - 48 ) ) ) ) + - 8 * - 37
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT - + SUM( DISTINCT + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-6236
SELECT - + SUM ( DISTINCT + 97 )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6237
SELECT DISTINCT + ( + 75 ) DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT + ( + 75 ) / - 83 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6238
SELECT ALL COALESCE ( + 25, COUNT( * ) + COUNT( + 48 ) + 14 * - - 13 + + 17 * + 72 DIV - 49, 43 * + 16 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL COALESCE ( + 25, COUNT ( * ) + COUNT ( + 48 ) + 14 * - - 13 + + 17 * + 72 / - 49, 43 * + 16 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT - COUNT( * ) + 48 + 95 * - 84 + - + COUNT( * ) AS col0
----
-7934

skipif mysql # not compatible
query I rowsort label-6239
SELECT - COUNT ( * ) + 48 + 95 * - 84 + - + COUNT ( * ) AS col0
----
-7934

onlyif mysql # DIV for integer division: 
query I rowsort label-6240
SELECT - 22 DIV NULLIF ( - + 1, - + 83 * 94 + + 47 )
----
22

skipif mysql # not compatible
query I rowsort label-6240
SELECT - 22 / NULLIF ( - + 1, - + 83 * 94 + + 47 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6241
SELECT ALL CAST( MIN( 59 ) AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL CAST ( MIN ( 59 ) AS INTEGER )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT ALL CAST( + - AVG ( + 88 ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL CAST ( + - AVG ( + 88 ) AS INTEGER )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT ALL CAST( + 15 AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL CAST ( + 15 AS INTEGER ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT - MIN( + - 34 ) * + - 68 AS col1
----
-2312

skipif mysql # not compatible
query I rowsort label-6244
SELECT - MIN ( + - 34 ) * + - 68 AS col1
----
-2312

query II rowsort
SELECT DISTINCT ( - 41 ), 30 + + 65 col1
----
-41
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6246
SELECT DISTINCT - 31 DIV - 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT - 31 / - 47 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6247
SELECT ALL CAST( + 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL CAST ( + 86 AS INTEGER )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT - COUNT( * ) * COUNT( ALL + 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-6248
SELECT - COUNT ( * ) * COUNT ( ALL + 62 )
----
-1

query I rowsort
SELECT DISTINCT + + 36
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6250
SELECT DISTINCT 86 / - 45 + - 47 + 34 * CASE COUNT( * ) WHEN - NULLIF ( + 73, + + 0 + 71 ) + + SUM( + CAST( NULL AS SIGNED ) ) THEN 21 WHEN COUNT( DISTINCT 15 ) THEN NULL ELSE NULL END + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT 86 / - 45 + - 47 + 34 * CASE COUNT ( * ) WHEN - NULLIF ( + 73, + + 0 + 71 ) + + SUM ( + CAST ( NULL AS INTEGER ) ) THEN 21 WHEN COUNT ( DISTINCT 15 ) THEN NULL ELSE NULL END + 62 AS col0
----
NULL

query I rowsort
SELECT ALL 15 * - + 22
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT + MIN( DISTINCT - - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-6252
SELECT + MIN ( DISTINCT - - 49 )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6253
SELECT ALL 36 DIV + - COUNT( * ) + 3 DIV + 18 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL 36 / + - COUNT ( * ) + 3 / + 18 AS col2
----
-36

query I rowsort
SELECT 20 * + 6 + - 50 - 96 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT + + 40 * + COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-6255
SELECT + + 40 * + COUNT ( * ) col1
----
40

query I rowsort
SELECT - ( - ( - - 59 ) ) AS col1
----
59

query II rowsort
SELECT - - 60 * + 19 * + - 73 + - - 83, - 30 AS col1
----
-83137
-30

query II rowsort
SELECT - 19 * - + 47 + ( - 81 ) AS col1, + 97 AS col0
----
812
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT ALL + MAX( DISTINCT 6 ) * - 13 * - + 9 - - 88
----
790

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL + MAX ( DISTINCT 6 ) * - 13 * - + 9 - - 88
----
790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6260
SELECT - + 95 * 39 * - + 31 + + - 8 + - + 22 + - ( - + COUNT( * ) ) * + COUNT( * ) - COUNT( + 2 ) + + 49 * + MIN( DISTINCT - 85 ) - NULLIF ( + 29 - CASE + 17 WHEN + 18 - - CAST( 3 AS SIGNED ) THEN + 59 * 34 END, + 2 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT - + 95 * 39 * - + 31 + + - 8 + - + 22 + - ( - + COUNT ( * ) ) * + COUNT ( * ) - COUNT ( + 2 ) + + 49 * + MIN ( DISTINCT - 85 ) - NULLIF ( + 29 - CASE + 17 WHEN + 18 - - CAST ( 3 AS INTEGER ) THEN + 59 * 34 END, + 2 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6261
SELECT + + AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6261
SELECT + + AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL - COALESCE ( 8, SUM( ALL + 68 ) * + COALESCE ( 14, + SUM( + 21 ), COUNT( * ) ) )
----
-8

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL - COALESCE ( 8, SUM ( ALL + 68 ) * + COALESCE ( 14, + SUM ( + 21 ), COUNT ( * ) ) )
----
-8

query I rowsort
SELECT ALL 44 * 50 + + 91
----
2291

query I rowsort
SELECT 41 * + ( + 67 )
----
2747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6265
SELECT ALL - CAST( NULL AS SIGNED ) / - COUNT( * ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL - CAST ( NULL AS INTEGER ) / - COUNT ( * ) - - COUNT ( * )
----
NULL

query I rowsort
SELECT - ( + 5 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6267
SELECT ALL 6 - + - ( - COALESCE ( - 6, - 9 * - COALESCE ( + 2, COALESCE ( - - 55, 32 DIV COALESCE ( + COUNT( * ), + NULLIF ( - 94, + 31 - - 69 * 88 ) + 28 * - 20 ) ) ) + - CAST( NULL AS SIGNED ), 27 * + 64 ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL 6 - + - ( - COALESCE ( - 6, - 9 * - COALESCE ( + 2, COALESCE ( - - 55, 32 / COALESCE ( + COUNT ( * ), + NULLIF ( - 94, + 31 - - 69 * 88 ) + 28 * - 20 ) ) ) + - CAST ( NULL AS INTEGER ), 27 * + 64 ) ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT ALL - 58 * - MIN( ALL - 53 ) * - 13 + + 16 + - CASE + 64 WHEN - 39 + + + 35 + - 38 THEN CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL - 58 * - MIN ( ALL - 53 ) * - 13 + + 16 + - CASE + 64 WHEN - 39 + + + 35 + - 38 THEN CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT ( + 25 ) * + 62 + + 59 AS col0
----
1609

query I rowsort
SELECT ALL 84 col0
----
84

query II rowsort
SELECT ( - 8 ) - - - 72 - + + 10 * 94 AS col2, 63
----
-1020
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL NULLIF ( COUNT( * ), - SUM( DISTINCT + - 88 ) ) * COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL NULLIF ( COUNT ( * ), - SUM ( DISTINCT + - 88 ) ) * COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT COUNT( * ) + - - ( + 35 )
----
36

skipif mysql # not compatible
query I rowsort label-6273
SELECT COUNT ( * ) + - - ( + 35 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6274
SELECT 67 DIV + ( - + MIN( DISTINCT - ( 27 ) ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6274
SELECT 67 / + ( - + MIN ( DISTINCT - ( 27 ) ) ) AS col2
----
2

query I rowsort
SELECT 38 + + + 15 - - 92 * - 2
----
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT ALL - 45 DIV + 32
----
-1

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL - 45 / + 32
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6277
SELECT ALL 58, 41 DIV - 7 AS col1
----
58
-5

skipif mysql # not compatible
query II rowsort label-6277
SELECT ALL 58, 41 / - 7 AS col1
----
58
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6278
SELECT ALL 90 DIV + 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL 90 / + 48 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6279
SELECT 73 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT 73 + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - ( - 56 )
----
56

query I rowsort
SELECT ALL - 19 + + 69 col2
----
50

query II rowsort
SELECT + - 15 AS col2, + 17
----
-15
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6283
SELECT ALL + + 96 + + 48 DIV - 93 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + + 96 + + 48 / - 93 AS col1
----
96

query I rowsort
SELECT 75 * + ( 38 ) + - - 27
----
2877

query I rowsort
SELECT 95 * + 61 + 83 + + 51 AS col0
----
5929

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT DISTINCT - + MIN( - - 58 ) - 21, 85 AS col1
----
-79
85

skipif mysql # not compatible
query II rowsort label-6286
SELECT DISTINCT - + MIN ( - - 58 ) - 21, 85 AS col1
----
-79
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT DISTINCT + + COALESCE ( + + 22, - 30 + - 0 * + CASE 88 WHEN - 66 THEN COUNT( * ) ELSE NULL END ) * + 37 * - 46 AS col0
----
-37444

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT + + COALESCE ( + + 22, - 30 + - 0 * + CASE 88 WHEN - 66 THEN COUNT ( * ) ELSE NULL END ) * + 37 * - 46 AS col0
----
-37444

query II rowsort
SELECT 60 AS col2, 66 + + NULLIF ( - 54, 17 + - 16 )
----
60
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6289
SELECT - 12 * - 49 + - - 34 + - 34 + 31 - + - 34 + + - CASE - - 48 WHEN + ( 24 ) DIV CAST( NULL AS DECIMAL ) THEN NULL ELSE + 40 * + COUNT( * ) + MIN( 18 ) * COALESCE ( - 6 * - 14, 13 * + COUNT( * ), + ( 17 ), + 85 + + 30 DIV 36 ) END * 36 * 78 * + CAST( 67 AS SIGNED )
----
-291986419

skipif mysql # not compatible
query I rowsort label-6289
SELECT - 12 * - 49 + - - 34 + - 34 + 31 - + - 34 + + - CASE - - 48 WHEN + ( 24 ) / CAST ( NULL AS REAL ) THEN NULL ELSE + 40 * + COUNT ( * ) + MIN ( 18 ) * COALESCE ( - 6 * - 14, 13 * + COUNT ( * ), + ( 17 ), + 85 + + 30 / 36 ) END * 36 * 78 * + CAST ( 67 AS INTEGER )
----
-291986419

query I rowsort
SELECT ALL - 23 * - 61
----
1403

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT MAX( DISTINCT - 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6291
SELECT MAX ( DISTINCT - 30 ) AS col0
----
-30

query I rowsort
SELECT ALL - 12 * - 19 AS col0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT ALL + - COUNT( * ) - 9 - + - NULLIF ( + + 51, - ( + 19 ) * 37 ) * 88 + - + 61 + - 92 + - 33 * 75
----
1850

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL + - COUNT ( * ) - 9 - + - NULLIF ( + + 51, - ( + 19 ) * 37 ) * 88 + - + 61 + - 92 + - 33 * 75
----
1850

query I rowsort
SELECT + ( - - ( + + 42 ) )
----
42

query II rowsort
SELECT + - 48 * + 28 + + 4 col0, 90
----
-1340
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6296
SELECT + 42 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-6296
SELECT + 42 / - 73
----
0

query I rowsort
SELECT 56 * - 43 AS col0
----
-2408

query I rowsort
SELECT 43 + - 35 - + 67
----
-59

query I rowsort
SELECT + 87 * + 25 - ( + + 52 )
----
2123

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT CASE - 87 WHEN + COUNT( * ) THEN NULL ELSE + 12 + - 77 END
----
-65

skipif mysql # not compatible
query I rowsort label-6300
SELECT CASE - 87 WHEN + COUNT ( * ) THEN NULL ELSE + 12 + - 77 END
----
-65

query II rowsort
SELECT ALL - 76, 92 AS col2
----
-76
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6302
SELECT DISTINCT 10 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT 10 / + 34
----
0

query I rowsort
SELECT ALL 45 * 77
----
3465

query I rowsort
SELECT 48 + - 20 * + 43 AS col2
----
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT ALL MIN( DISTINCT + 88 ) + - - 38 * + MIN( DISTINCT 96 )
----
3736

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL MIN ( DISTINCT + 88 ) + - - 38 * + MIN ( DISTINCT 96 )
----
3736

query I rowsort
SELECT ( - 95 ) + - 58 * + + 61 - 17
----
-3650

query I rowsort
SELECT ALL 9 + + + 30
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT 38 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-6308
SELECT 38 / + 47
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6309
SELECT 47 * - 48 DIV COALESCE ( - + COUNT( * ), - 84 + 66, + 33 - 1 + + 68 * - 97 * - + 70 + 26 * 33, - 36, COALESCE ( COUNT( * ), 25 * 45 - + CAST( ( + COUNT( 81 ) ) AS SIGNED ) ) - ( 17 ) )
----
2256

skipif mysql # not compatible
query I rowsort label-6309
SELECT 47 * - 48 / COALESCE ( - + COUNT ( * ), - 84 + 66, + 33 - 1 + + 68 * - 97 * - + 70 + 26 * 33, - 36, COALESCE ( COUNT ( * ), 25 * 45 - + CAST ( ( + COUNT ( 81 ) ) AS INTEGER ) ) - ( 17 ) )
----
2256

query I rowsort
SELECT ALL 3 + + 2 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6311
SELECT - MIN( DISTINCT + CAST( - + ( + 7 ) AS SIGNED ) ), + 18 AS col1
----
7
18

skipif mysql # not compatible
query II rowsort label-6311
SELECT - MIN ( DISTINCT + CAST ( - + ( + 7 ) AS INTEGER ) ), + 18 AS col1
----
7
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT - SUM( DISTINCT - 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6312
SELECT - SUM ( DISTINCT - 86 ) AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6313
SELECT 91 AS col0, + 55 * - - NULLIF ( + 11, + 84 ) + + 21 * + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
91
626

skipif mysql # not compatible
query II rowsort label-6313
SELECT 91 AS col0, + 55 * - - NULLIF ( + 11, + 84 ) + + 21 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
91
626

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT - COALESCE ( + - 81, + + 18, + 32 * - + MAX( + 56 ) * 61 + - ( - - COUNT( * ) ) * 80 )
----
81

skipif mysql # not compatible
query I rowsort label-6314
SELECT - COALESCE ( + - 81, + + 18, + 32 * - + MAX ( + 56 ) * 61 + - ( - - COUNT ( * ) ) * 80 )
----
81

query I rowsort
SELECT 98 * + 87 AS col0
----
8526

onlyif mysql # aggregate syntax: 
query II rowsort label-6316
SELECT ALL 40 AS col0, ( MAX( 2 ) )
----
40
2

skipif mysql # not compatible
query II rowsort label-6316
SELECT ALL 40 AS col0, ( MAX ( 2 ) )
----
40
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6317
SELECT DISTINCT - 34 DIV - + 79
----
0

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT - 34 / - + 79
----
0

query I rowsort
SELECT - 33 * 87
----
-2871

onlyif mysql # aggregate syntax: 
query II rowsort label-6319
SELECT ALL + COUNT( * ) AS col1, 34
----
1
34

skipif mysql # not compatible
query II rowsort label-6319
SELECT ALL + COUNT ( * ) AS col1, 34
----
1
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6320
SELECT + - 94 * - 26 + - + CAST( - MIN( - 94 ) AS SIGNED ) - 96
----
2254

skipif mysql # not compatible
query I rowsort label-6320
SELECT + - 94 * - 26 + - + CAST ( - MIN ( - 94 ) AS INTEGER ) - 96
----
2254

onlyif mysql # aggregate syntax: 
query II rowsort label-6321
SELECT ALL + 43 AS col2, + 34 * 75 - COUNT( * )
----
43
2549

skipif mysql # not compatible
query II rowsort label-6321
SELECT ALL + 43 AS col2, + 34 * 75 - COUNT ( * )
----
43
2549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6322
SELECT 56 AS col1, CAST( COUNT( * ) AS SIGNED ) AS col0
----
56
1

skipif mysql # not compatible
query II rowsort label-6322
SELECT 56 AS col1, CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
56
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL + + ( - + MAX( + ( + - ( - + 10 ) ) ) ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL + + ( - + MAX ( + ( + - ( - + 10 ) ) ) ) AS col0
----
-10

query I rowsort
SELECT - + 46 * 58 AS col1
----
-2668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6325
SELECT DISTINCT + 24 * - CAST( 38 AS SIGNED ) - - + 46
----
-866

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT + 24 * - CAST ( 38 AS INTEGER ) - - + 46
----
-866

onlyif mysql # DIV for integer division: 
query I rowsort label-6326
SELECT + - 58 DIV + 98 + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6326
SELECT + - 58 / + 98 + 70 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT - 96 DIV + 22
----
-4

skipif mysql # not compatible
query I rowsort label-6327
SELECT - 96 / + 22
----
-4

query I rowsort
SELECT ALL + - ( ( + 81 ) ) AS col1
----
-81

query I rowsort
SELECT + 35 * + 75 * - 15 * - 80 col0
----
3150000

query I rowsort
SELECT - 59 * 10 + 68
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL + COUNT( - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + COUNT ( - 86 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL 76 * + 20 * + + 24 * - 19 * 40 + 55 + - - 62 + ( - COUNT( * ) ) * + 16 * 57
----
-27725595

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL 76 * + 20 * + + 24 * - 19 * 40 + 55 + - - 62 + ( - COUNT ( * ) ) * + 16 * 57
----
-27725595

query I rowsort
SELECT DISTINCT 49 * 87 + - 42 + - 9 * 48
----
3789

query I rowsort
SELECT DISTINCT + ( 48 )
----
48

query I rowsort
SELECT - 39 - + 99 AS col1
----
-138

query I rowsort
SELECT DISTINCT - NULLIF ( 6, 18 ) * - 88
----
528

query I rowsort
SELECT DISTINCT + 72 + 54 AS col2
----
126

query I rowsort
SELECT - 9 * + + 28
----
-252

query I rowsort
SELECT - 85 - - 58 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT + CASE - - ( + + 7 ) WHEN + COUNT( + - 41 ) + + MAX( + + 72 ) THEN - MAX( ALL + + 67 ) WHEN - ( + 52 ) THEN NULL END / - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT + CASE - - ( + + 7 ) WHEN + COUNT ( + - 41 ) + + MAX ( + + 72 ) THEN - MAX ( ALL + + 67 ) WHEN - ( + 52 ) THEN NULL END / - 61
----
NULL

query I rowsort
SELECT ALL + 18 + + 66 * + + 41
----
2724

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT DISTINCT SUM( + 24 ) * - + SUM( DISTINCT 29 ) col1
----
-696

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT SUM ( + 24 ) * - + SUM ( DISTINCT 29 ) col1
----
-696

query II rowsort
SELECT ALL 49 - 44 col2, + 97
----
5
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6344
SELECT - COALESCE ( 49, - - 55 * + COUNT( * ) - CASE + ( - - 35 ) WHEN 93 THEN NULL WHEN + - COUNT( * ) * 50 * + - CAST( + MIN( - ( - NULLIF ( - 8, 79 + + 69 ) ) ) AS SIGNED ) - 84 THEN + 46 ELSE 4 END, + 40 ) + 65
----
16

skipif mysql # not compatible
query I rowsort label-6344
SELECT - COALESCE ( 49, - - 55 * + COUNT ( * ) - CASE + ( - - 35 ) WHEN 93 THEN NULL WHEN + - COUNT ( * ) * 50 * + - CAST ( + MIN ( - ( - NULLIF ( - 8, 79 + + 69 ) ) ) AS INTEGER ) - 84 THEN + 46 ELSE 4 END, + 40 ) + 65
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6345
SELECT + ( - - CAST( - 5 AS SIGNED ) ) - 10 + - 76 - - CASE + ( - CASE COUNT( * ) WHEN - + 39 THEN + ( + 7 ) - - 55 * 67 WHEN + 24 THEN COUNT( + 45 ) / + 1 + - 52 ELSE NULL END ) WHEN + 12 * + 24 THEN NULL WHEN CASE - 26 WHEN + 7 * 88 THEN NULL WHEN + 8 - - ( NULLIF ( 43, - 93 ) ) * - 58 THEN 85 WHEN 53 + CAST( NULL AS SIGNED ) THEN + 16 END * ( - 70 ) + - CAST( 47 AS SIGNED ) THEN NULL WHEN - 39 THEN + 6 ELSE NULL END / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6345
SELECT + ( - - CAST ( - 5 AS INTEGER ) ) - 10 + - 76 - - CASE + ( - CASE COUNT ( * ) WHEN - + 39 THEN + ( + 7 ) - - 55 * 67 WHEN + 24 THEN COUNT ( + 45 ) / + 1 + - 52 ELSE NULL END ) WHEN + 12 * + 24 THEN NULL WHEN CASE - 26 WHEN + 7 * 88 THEN NULL WHEN + 8 - - ( NULLIF ( 43, - 93 ) ) * - 58 THEN 85 WHEN 53 + CAST ( NULL AS INTEGER ) THEN + 16 END * ( - 70 ) + - CAST ( 47 AS INTEGER ) THEN NULL WHEN - 39 THEN + 6 ELSE NULL END / - 13
----
NULL

query I rowsort
SELECT ALL 37 * - - 90
----
3330

query I rowsort
SELECT - 2 + 15 AS col0
----
13

query I rowsort
SELECT + 7 - - 70 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT + COUNT( * ) + + 99
----
100

skipif mysql # not compatible
query I rowsort label-6349
SELECT + COUNT ( * ) + + 99
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-6350
SELECT - + SUM( ALL + 49 ), 11 AS col1
----
-49
11

skipif mysql # not compatible
query II rowsort label-6350
SELECT - + SUM ( ALL + 49 ), 11 AS col1
----
-49
11

query I rowsort
SELECT ALL ( + + 50 ) col0
----
50

query I rowsort
SELECT + + 67 + + ( + + 22 ) + + + 94
----
183

query I rowsort
SELECT DISTINCT 9 * + 24
----
216

query I rowsort
SELECT ALL - 86 - + - 62
----
-24

query I rowsort
SELECT NULLIF ( - + ( 12 ), + 29 )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6356
SELECT - 45 DIV 12 * 72 + - 96 DIV - 39
----
-214

skipif mysql # not compatible
query I rowsort label-6356
SELECT - 45 / 12 * 72 + - 96 / - 39
----
-214

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT + ( NULLIF ( + COUNT( * ), - 49 - - 24 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT + ( NULLIF ( + COUNT ( * ), - 49 - - 24 ) )
----
1

query I rowsort
SELECT ALL + - 36 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT DISTINCT + - SUM( DISTINCT + ( - 72 ) )
----
72

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT + - SUM ( DISTINCT + ( - 72 ) )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6360
SELECT DISTINCT + CAST( - + 97 AS SIGNED ) AS col2, + COALESCE ( - 43, + + 57 )
----
-97
-43

skipif mysql # not compatible
query II rowsort label-6360
SELECT DISTINCT + CAST ( - + 97 AS INTEGER ) AS col2, + COALESCE ( - 43, + + 57 )
----
-97
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6361
SELECT - - 34 * - CAST( NULL AS DECIMAL ) AS col2, 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-6361
SELECT - - 34 * - CAST ( NULL AS REAL ) AS col2, 23
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL + ( + CASE - COUNT( * ) WHEN 18 THEN + 54 * - COUNT( * ) / + 28 - + + 61 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL + ( + CASE - COUNT ( * ) WHEN 18 THEN + 54 * - COUNT ( * ) / + 28 - + + 61 END ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT DISTINCT - 25 DIV - - 16 - + + 93 * 89 + + 46 AS col2
----
-8232

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT - 25 / - - 16 - + + 93 * 89 + + 46 AS col2
----
-8232

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT CASE - 30 WHEN 21 THEN + + CASE + + 35 WHEN + 27 THEN COUNT( - - 30 ) - 97 WHEN - - 14 THEN NULL END * + 93 WHEN + + 52 + 45 * 38 THEN 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6364
SELECT CASE - 30 WHEN 21 THEN + + CASE + + 35 WHEN + 27 THEN COUNT ( - - 30 ) - 97 WHEN - - 14 THEN NULL END * + 93 WHEN + + 52 + 45 * 38 THEN 80 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6365
SELECT ALL 36 * - - 88 - + - 40 - + MAX( 13 ) + + 79 + + 67 DIV 48 + COUNT( * ) * - + 71 - - - 44 AS col1
----
3160

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL 36 * - - 88 - + - 40 - + MAX ( 13 ) + + 79 + + 67 / 48 + COUNT ( * ) * - + 71 - - - 44 AS col1
----
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT + 69 * - + NULLIF ( + 85, - COALESCE ( 59, - COUNT( * ), - - 80 ) )
----
-5865

skipif mysql # not compatible
query I rowsort label-6366
SELECT + 69 * - + NULLIF ( + 85, - COALESCE ( 59, - COUNT ( * ), - - 80 ) )
----
-5865

query I rowsort
SELECT NULLIF ( - + NULLIF ( - 87, - 4 * + - 85 + + 4 * COALESCE ( + + 90, CASE + + AVG ( DISTINCT - ( + 44 ) ) WHEN - 60 - 87 THEN + 60 END ) * + CASE 67 WHEN 29 THEN 75 / 79 END ), 32 ) col1
----
87

query I rowsort
SELECT 86 * - ( + 5 ) - + 94 - - 71
----
-453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6369
SELECT ALL 82 * + 55 + CAST( + + 68 AS SIGNED ) col1
----
4578

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL 82 * + 55 + CAST ( + + 68 AS INTEGER ) col1
----
4578

query II rowsort
SELECT + 90, 93 * 85 AS col1
----
90
7905

onlyif mysql # aggregate syntax: 
query II rowsort label-6371
SELECT DISTINCT - 50 * COUNT( * ) + - COUNT( * ) col0, 90
----
-51
90

skipif mysql # not compatible
query II rowsort label-6371
SELECT DISTINCT - 50 * COUNT ( * ) + - COUNT ( * ) col0, 90
----
-51
90

query I rowsort
SELECT COALESCE ( - 42, - 43 + ( + + ( + 24 ) ) ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6373
SELECT ALL CASE CASE + + 57 WHEN - 90 + 73 * + 41 * 28 THEN - 97 WHEN 84 * - - 6 - 81 + - - 5 THEN NULL WHEN 53 * NULLIF ( 15, 77 * - 65 ) THEN + COUNT( 55 ) * + 46 END WHEN + ( - 35 ) + - 62 * + 81 THEN NULL WHEN + 38 / 84 + 16 * COALESCE ( 6, 83 * + COALESCE ( ( 66 ) * - CASE - 50 * 76 WHEN 8 THEN - COUNT( * ) * - ( + 30 ) WHEN 54 * ( + CASE + 56 WHEN COUNT( * ) * + 2 THEN NULL WHEN + 8 THEN - 36 * 50 ELSE NULL END ) THEN NULL ELSE NULL END, - CAST( NULL AS DECIMAL ) ), CASE 26 WHEN COUNT( * ) THEN - 92 END ) THEN + 86 + + 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL CASE CASE + + 57 WHEN - 90 + 73 * + 41 * 28 THEN - 97 WHEN 84 * - - 6 - 81 + - - 5 THEN NULL WHEN 53 * NULLIF ( 15, 77 * - 65 ) THEN + COUNT ( 55 ) * + 46 END WHEN + ( - 35 ) + - 62 * + 81 THEN NULL WHEN + 38 / 84 + 16 * COALESCE ( 6, 83 * + COALESCE ( ( 66 ) * - CASE - 50 * 76 WHEN 8 THEN - COUNT ( * ) * - ( + 30 ) WHEN 54 * ( + CASE + 56 WHEN COUNT ( * ) * + 2 THEN NULL WHEN + 8 THEN - 36 * 50 ELSE NULL END ) THEN NULL ELSE NULL END, - CAST ( NULL AS REAL ) ), CASE 26 WHEN COUNT ( * ) THEN - 92 END ) THEN + 86 + + 88 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT - CASE + 72 WHEN + SUM( - 23 ) THEN - + COUNT( * ) * - 77 END * + 15 * - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT - CASE + 72 WHEN + SUM ( - 23 ) THEN - + COUNT ( * ) * - 77 END * + 15 * - 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL ( CASE + 42 WHEN - 88 / + AVG ( + 33 ) - + ( - 31 ) - - NULLIF ( - - 27, + 98 ) THEN + + 55 + + + 58 WHEN 60 * ( + 67 ) + - 84 THEN + 80 WHEN - 97 * COUNT( * ) THEN + 67 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL ( CASE + 42 WHEN - 88 / + AVG ( + 33 ) - + ( - 31 ) - - NULLIF ( - - 27, + 98 ) THEN + + 55 + + + 58 WHEN 60 * ( + 67 ) + - 84 THEN + 80 WHEN - 97 * COUNT ( * ) THEN + 67 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT - 32 + 57 * 60 - + 67
----
3321

query I rowsort
SELECT - 90 * + ( 71 )
----
-6390

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6378
SELECT COUNT( * ) AS col1, + COALESCE ( - COALESCE ( - 66, + 73 + + 70 * MIN( + + 80 ) DIV - 74 * 36 * + - 38, - 51 ), - - 93, - COUNT( * ) DIV 2 ) + + COUNT( * ) DIV - 10 AS col2
----
1
66

skipif mysql # not compatible
query II rowsort label-6378
SELECT COUNT ( * ) AS col1, + COALESCE ( - COALESCE ( - 66, + 73 + + 70 * MIN ( + + 80 ) / - 74 * 36 * + - 38, - 51 ), - - 93, - COUNT ( * ) / 2 ) + + COUNT ( * ) / - 10 AS col2
----
1
66

query I rowsort
SELECT + 8 + - 73
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT ALL + 87 - - CASE - 89 WHEN - 10 + - COUNT( + 21 ) THEN 5 * - 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL + 87 - - CASE - 89 WHEN - 10 + - COUNT ( + 21 ) THEN 5 * - 69 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT + 84 + + 54 * + + 67 * + MAX( + 41 )
----
148422

skipif mysql # not compatible
query I rowsort label-6381
SELECT + 84 + + 54 * + + 67 * + MAX ( + 41 )
----
148422

query I rowsort
SELECT ALL + - 97 * - 2
----
194

query II rowsort
SELECT DISTINCT 8, - 30 AS col0
----
8
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6384
SELECT COUNT( * ) AS col0, + 81 AS col2
----
1
81

skipif mysql # not compatible
query II rowsort label-6384
SELECT COUNT ( * ) AS col0, + 81 AS col2
----
1
81

query I rowsort
SELECT 72 - + - 7 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT ALL SUM( - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL SUM ( - 81 )
----
-81

query II rowsort
SELECT - 98 AS col2, 79 AS col0
----
-98
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6388
SELECT - NULLIF ( COUNT( * ), - 36 ) AS col1, + 94
----
-1
94

skipif mysql # not compatible
query II rowsort label-6388
SELECT - NULLIF ( COUNT ( * ), - 36 ) AS col1, + 94
----
-1
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6389
SELECT + ( 44 ) DIV - - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6389
SELECT + ( 44 ) / - - 71 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6390
SELECT - SUM( ALL - 33 ) DIV 41 * - - 96
----
0

skipif mysql # not compatible
query I rowsort label-6390
SELECT - SUM ( ALL - 33 ) / 41 * - - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT DISTINCT + - 67 + + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT + - 67 + + COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT 3 * + 12 + - COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6392
SELECT 3 * + 12 + - COUNT ( * ) AS col2
----
35

query I rowsort
SELECT DISTINCT 55 + 33 * + 98 * 17 col0
----
55033

query I rowsort
SELECT DISTINCT 28 + 94 AS col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6395
SELECT CAST( 8 AS SIGNED ) * 34 + + COUNT( * ) - - 13
----
286

skipif mysql # not compatible
query I rowsort label-6395
SELECT CAST ( 8 AS INTEGER ) * 34 + + COUNT ( * ) - - 13
----
286

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6396
SELECT ( 62 ) * COUNT( * ) + + SUM( DISTINCT + 20 ) DIV + 78 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6396
SELECT ( 62 ) * COUNT ( * ) + + SUM ( DISTINCT + 20 ) / + 78 AS col1
----
62

query I rowsort
SELECT ALL 80 * - 27 AS col0
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT + 73 * + COUNT( * ) * - + 33
----
-2409

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT + 73 * + COUNT ( * ) * - + 33
----
-2409

query I rowsort
SELECT ALL - 55 - - 85
----
30

query I rowsort
SELECT ALL 20 * + ( 98 ) * + 78 AS col0
----
152880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6401
SELECT CASE COUNT( * ) WHEN + 46 THEN NULL WHEN - + COUNT( * ) DIV + 29 * - + 73 DIV + 3 + ( + 70 ) + - - 72 + - 44 THEN NULL ELSE - 97 * + 86 DIV + COUNT( - 91 ) + 10 END - 60 AS col2
----
-8392

skipif mysql # not compatible
query I rowsort label-6401
SELECT CASE COUNT ( * ) WHEN + 46 THEN NULL WHEN - + COUNT ( * ) / + 29 * - + 73 / + 3 + ( + 70 ) + - - 72 + - 44 THEN NULL ELSE - 97 * + 86 / + COUNT ( - 91 ) + 10 END - 60 AS col2
----
-8392

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT 98 * COUNT( * ) * + 60
----
5880

skipif mysql # not compatible
query I rowsort label-6402
SELECT 98 * COUNT ( * ) * + 60
----
5880

query I rowsort
SELECT 1 * - 89
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT 91 DIV - 69 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6404
SELECT 91 / - 69 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL - COUNT( * ) / CASE + 58 WHEN + - 40 THEN + 2 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL - COUNT ( * ) / CASE + 58 WHEN + - 40 THEN + 2 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6406
SELECT 7 - - CAST( - - COALESCE ( - 67, - + COUNT( * ), - SUM( + - 41 ) * - 0 ) AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6406
SELECT 7 - - CAST ( - - COALESCE ( - 67, - + COUNT ( * ), - SUM ( + - 41 ) * - 0 ) AS INTEGER ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6407
SELECT ALL + NULLIF ( - CAST( NULL AS DECIMAL ), 51 ) * + 19 / - - 27 * - 89 + - COUNT( - 61 ) + + + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL + NULLIF ( - CAST ( NULL AS REAL ), 51 ) * + 19 / - - 27 * - 89 + - COUNT ( - 61 ) + + + 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT COUNT( * ) * - 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-6408
SELECT COUNT ( * ) * - 54 AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6409
SELECT + SUM( - 93 ) + + ( - + 6 ) - + NULLIF ( - CASE + 38 WHEN - 19 + - 49 + COUNT( * ) + - 76 THEN NULL WHEN NULLIF ( + COUNT( * ), + 96 + ( CASE + 44 WHEN - 7 - + CAST( NULL AS SIGNED ) THEN - 58 / 87 + 58 WHEN + COUNT( DISTINCT 95 ) / + 47 THEN NULL WHEN COUNT( * ) * + ( 54 ) THEN NULL ELSE NULL END ) ) - 69 THEN NULL WHEN - ( 66 ) THEN CAST( 95 AS SIGNED ) END, AVG ( 17 ) ) / 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6409
SELECT + SUM ( - 93 ) + + ( - + 6 ) - + NULLIF ( - CASE + 38 WHEN - 19 + - 49 + COUNT ( * ) + - 76 THEN NULL WHEN NULLIF ( + COUNT ( * ), + 96 + ( CASE + 44 WHEN - 7 - + CAST ( NULL AS INTEGER ) THEN - 58 / 87 + 58 WHEN + COUNT ( DISTINCT 95 ) / + 47 THEN NULL WHEN COUNT ( * ) * + ( 54 ) THEN NULL ELSE NULL END ) ) - 69 THEN NULL WHEN - ( 66 ) THEN CAST ( 95 AS INTEGER ) END, AVG ( 17 ) ) / 97 AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( - 19, - 56 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT 0 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6411
SELECT 0 * - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL + 95 + - COUNT( * ) * + + 24
----
71

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL + 95 + - COUNT ( * ) * + + 24
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-6413
SELECT SUM( DISTINCT 5 ) + - COUNT( ALL + 86 ) AS col1, + 50
----
4
50

skipif mysql # not compatible
query II rowsort label-6413
SELECT SUM ( DISTINCT 5 ) + - COUNT ( ALL + 86 ) AS col1, + 50
----
4
50

query I rowsort
SELECT + 49 - - 6 * 4 AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6415
SELECT 18 * + - 52 col0, - COUNT( * ) AS col2
----
-936
-1

skipif mysql # not compatible
query II rowsort label-6415
SELECT 18 * + - 52 col0, - COUNT ( * ) AS col2
----
-936
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT + AVG ( DISTINCT + 63 ) + + NULLIF ( - COUNT( * ), - MAX( ( + 24 ) ) * - 2 ) - - CASE + 64 WHEN - 14 THEN + 66 WHEN - 7 THEN NULL WHEN 0 THEN 57 END + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT + AVG ( DISTINCT + 63 ) + + NULLIF ( - COUNT ( * ), - MAX ( ( + 24 ) ) * - 2 ) - - CASE + 64 WHEN - 14 THEN + 66 WHEN - 7 THEN NULL WHEN 0 THEN 57 END + + 44
----
NULL

query II rowsort
SELECT DISTINCT + 45 * - 19, 97 AS col2
----
-855
97

query I rowsort
SELECT - 76 * - 80 col2
----
6080

query I rowsort
SELECT DISTINCT ( - 88 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL SUM( DISTINCT - 96 ) + - 38 + + COUNT( * ) + + 18 AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL SUM ( DISTINCT - 96 ) + - 38 + + COUNT ( * ) + + 18 AS col0
----
-115

query I rowsort
SELECT - + 33 AS col0
----
-33

query I rowsort
SELECT ALL + 66 * + 26 + - 99 AS col0
----
1617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6423
SELECT + CAST( - COUNT( DISTINCT 4 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6423
SELECT + CAST ( - COUNT ( DISTINCT 4 ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT 66 + - - 19 col2
----
85

query I rowsort
SELECT 25 * - + 1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT COUNT( * ) * COUNT( + + ( + 76 ) ) * - 66 + 71 + + 44 * + COALESCE ( + - 22, 78, + 57 * 13 * - - MAX( 99 ) ) AS col2
----
-963

skipif mysql # not compatible
query I rowsort label-6426
SELECT COUNT ( * ) * COUNT ( + + ( + 76 ) ) * - 66 + 71 + + 44 * + COALESCE ( + - 22, 78, + 57 * 13 * - - MAX ( 99 ) ) AS col2
----
-963

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT SUM( DISTINCT 88 )
----
88

skipif mysql # not compatible
query I rowsort label-6427
SELECT SUM ( DISTINCT 88 )
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-6428
SELECT COALESCE ( + + 94, + + ( - 77 ) ) * - 2 * - 75 + - 14 + - 68 AS col1, - 37 * + ( - 29 ) DIV + - 1 AS col1
----
14018
-1073

skipif mysql # not compatible
query II rowsort label-6428
SELECT COALESCE ( + + 94, + + ( - 77 ) ) * - 2 * - 75 + - 14 + - 68 AS col1, - 37 * + ( - 29 ) / + - 1 AS col1
----
14018
-1073

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6429
SELECT 57 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6429
SELECT 57 * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6430
SELECT ALL - 28 AS col1, - COUNT( * )
----
-28
-1

skipif mysql # not compatible
query II rowsort label-6430
SELECT ALL - 28 AS col1, - COUNT ( * )
----
-28
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6431
SELECT DISTINCT + ( + ( + + 21 ) ) * NULLIF ( 69, - 99 ) - - CAST( NULL AS SIGNED ) + + ( 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT + ( + ( + + 21 ) ) * NULLIF ( 69, - 99 ) - - CAST ( NULL AS INTEGER ) + + ( 52 )
----
NULL

query I rowsort
SELECT ALL + 32 * - 10
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT CASE - + 4 WHEN ( + 47 ) + 35 THEN - 15 WHEN + + 57 + + 98 + - 92 * + 41 / 18 * 25 THEN NULL ELSE NULL END + 7 - - COUNT( * ) - SUM( ALL ( - 97 ) ) * - 1 * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6433
SELECT CASE - + 4 WHEN ( + 47 ) + 35 THEN - 15 WHEN + + 57 + + 98 + - 92 * + 41 / 18 * 25 THEN NULL ELSE NULL END + 7 - - COUNT ( * ) - SUM ( ALL ( - 97 ) ) * - 1 * - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT DISTINCT ( + - ( + 98 ) ) * 37 - 6 + - COUNT( * ) * + - 63 + - 15 * 11 + + 74 + - 90 * - NULLIF ( 87, + SUM( 62 ) ) * 40 + 0 * 57 AS col0
----
309540

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT ( + - ( + 98 ) ) * 37 - 6 + - COUNT ( * ) * + - 63 + - 15 * 11 + + 74 + - 90 * - NULLIF ( 87, + SUM ( 62 ) ) * 40 + 0 * 57 AS col0
----
309540

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT DISTINCT 86 * MIN( ALL - 21 )
----
-1806

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT 86 * MIN ( ALL - 21 )
----
-1806

query I rowsort
SELECT 23 * + 49 * + 58 + + 30 AS col2
----
65396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6437
SELECT CAST( - 77 AS SIGNED ) * + 68
----
-5236

skipif mysql # not compatible
query I rowsort label-6437
SELECT CAST ( - 77 AS INTEGER ) * + 68
----
-5236

query I rowsort
SELECT 63 + + 1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6439
SELECT COUNT( * ) * - ( - - 78 ) - - 72 + + - 8 * - - 74 + MAX( - 79 ), - CASE - 2 WHEN - 27 THEN - - MIN( + 48 ) * CASE - + COUNT( * ) WHEN 83 THEN 6 END + + COUNT( * ) + COUNT( ALL 47 ) WHEN + 94 - COUNT( * ) THEN 56 ELSE NULL END col1
----
-677
NULL

skipif mysql # not compatible
query II rowsort label-6439
SELECT COUNT ( * ) * - ( - - 78 ) - - 72 + + - 8 * - - 74 + MAX ( - 79 ), - CASE - 2 WHEN - 27 THEN - - MIN ( + 48 ) * CASE - + COUNT ( * ) WHEN 83 THEN 6 END + + COUNT ( * ) + COUNT ( ALL 47 ) WHEN + 94 - COUNT ( * ) THEN 56 ELSE NULL END col1
----
-677
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6440
SELECT MIN( - ( - 66 ) ) AS col2, + ( 78 ) AS col2
----
66
78

skipif mysql # not compatible
query II rowsort label-6440
SELECT MIN ( - ( - 66 ) ) AS col2, + ( 78 ) AS col2
----
66
78

query I rowsort
SELECT + 79 * 91
----
7189

query I rowsort
SELECT + 85 * - 94
----
-7990

query I rowsort
SELECT + 96 + + - 56
----
40

query I rowsort
SELECT DISTINCT 8 * + + 22
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6445
SELECT + CASE COUNT( * ) WHEN + + 70 THEN + 60 ELSE 71 END * + 42 + - + 10 - - 38 + - 33 DIV MIN( DISTINCT - 10 ) + - 30 - - CAST( COALESCE ( 83, 89 ) AS SIGNED ) AS col0
----
3066

skipif mysql # not compatible
query I rowsort label-6445
SELECT + CASE COUNT ( * ) WHEN + + 70 THEN + 60 ELSE 71 END * + 42 + - + 10 - - 38 + - 33 / MIN ( DISTINCT - 10 ) + - 30 - - CAST ( COALESCE ( 83, 89 ) AS INTEGER ) AS col0
----
3066

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT ALL 37 DIV - - 83 * + - 65
----
0

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL 37 / - - 83 * + - 65
----
0

query II rowsort
SELECT + 49 + + 38 * 70 AS col1, 14 AS col0
----
2709
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6448
SELECT ALL - COALESCE ( - + 23, + 87 DIV + - NULLIF ( 28, 27 ) ) * COUNT( * ) col0
----
23

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - COALESCE ( - + 23, + 87 / + - NULLIF ( 28, 27 ) ) * COUNT ( * ) col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL COUNT( + 90 )
----
1

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL COUNT ( + 90 )
----
1

query I rowsort
SELECT + - 4 + - 15
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-6451
SELECT - + 30 DIV + 21 + + 40 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6451
SELECT - + 30 / + 21 + + 40 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT - 33 + - COUNT( * ) + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-6452
SELECT - 33 + - COUNT ( * ) + + COUNT ( * )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6453
SELECT - 47 + - - 1 + 29 AS col0, 23 - CASE - - CAST( + + COUNT( * ) AS SIGNED ) WHEN + 31 + - 12 + + - 3 THEN 0 + + CAST( NULL AS SIGNED ) * 33 END
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-6453
SELECT - 47 + - - 1 + 29 AS col0, 23 - CASE - - CAST ( + + COUNT ( * ) AS INTEGER ) WHEN + 31 + - 12 + + - 3 THEN 0 + + CAST ( NULL AS INTEGER ) * 33 END
----
-17
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6454
SELECT - 60 + - - 65 + - + 68 AS col1, - MAX( - 29 ) AS col1
----
-63
29

skipif mysql # not compatible
query II rowsort label-6454
SELECT - 60 + - - 65 + - + 68 AS col1, - MAX ( - 29 ) AS col1
----
-63
29

query I rowsort
SELECT DISTINCT - 5 + + 41 AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6456
SELECT DISTINCT - + 4 DIV + 39 * COUNT( DISTINCT - - 14 ) * + 55 + + 15 DIV - COUNT( * ) + 24 * + 42
----
993

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT - + 4 / + 39 * COUNT ( DISTINCT - - 14 ) * + 55 + + 15 / - COUNT ( * ) + 24 * + 42
----
993

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL + + COUNT( * ) + ( - 66 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL + + COUNT ( * ) + ( - 66 ) AS col1
----
-65

query I rowsort
SELECT ALL + ( - 83 )
----
-83

query I rowsort
SELECT DISTINCT - + 67 * - + 81 AS col0
----
5427

query I rowsort
SELECT + - 17 - - 52
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6461
SELECT + MIN( ALL - + 44 ) - 87 DIV + 74 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-6461
SELECT + MIN ( ALL - + 44 ) - 87 / + 74 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT NULLIF ( - + MIN( - 11 ), 66 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6462
SELECT NULLIF ( - + MIN ( - 11 ), 66 ) AS col0
----
11

query I rowsort
SELECT - 76 * + - 22 + + 24 * 90
----
3832

query I rowsort
SELECT - 15 * - 51 AS col2
----
765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6465
SELECT + COUNT( * ) DIV + 4 + 10 + + SUM( - 38 ) * + 47 col1
----
-1776

skipif mysql # not compatible
query I rowsort label-6465
SELECT + COUNT ( * ) / + 4 + 10 + + SUM ( - 38 ) * + 47 col1
----
-1776

query II rowsort
SELECT DISTINCT - - 25 * ( - 13 ) AS col0, + 99
----
-325
99

query I rowsort
SELECT DISTINCT 16 * 18
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL + ( + - COALESCE ( - 76, + MIN( - - 24 ) ) )
----
76

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL + ( + - COALESCE ( - 76, + MIN ( - - 24 ) ) )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6469
SELECT COUNT( * ) DIV - MAX( + CAST( - - 84 AS SIGNED ) ) - 37 + - 59 * - - 16 * - 74
----
69819

skipif mysql # not compatible
query I rowsort label-6469
SELECT COUNT ( * ) / - MAX ( + CAST ( - - 84 AS INTEGER ) ) - 37 + - 59 * - - 16 * - 74
----
69819

query I rowsort
SELECT ALL - 0 * + 95 * - 61
----
0

query I rowsort
SELECT ( - 46 ) col1
----
-46

query I rowsort
SELECT ALL + ( 75 ) col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6473
SELECT - 9 DIV ( + 41 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6473
SELECT - 9 / ( + 41 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT - COUNT( * ) * 31 * 56 AS col0
----
-1736

skipif mysql # not compatible
query I rowsort label-6474
SELECT - COUNT ( * ) * 31 * 56 AS col0
----
-1736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6475
SELECT + 44 AS col0, - CAST( + 73 AS SIGNED ) AS col0
----
44
-73

skipif mysql # not compatible
query II rowsort label-6475
SELECT + 44 AS col0, - CAST ( + 73 AS INTEGER ) AS col0
----
44
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6476
SELECT DISTINCT - 55 DIV - MAX( 79 )
----
0

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT - 55 / - MAX ( 79 )
----
0

query II rowsort
SELECT + 98 AS col1, + 55
----
98
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT - 50 * - 81 + + COUNT( * )
----
4051

skipif mysql # not compatible
query I rowsort label-6478
SELECT - 50 * - 81 + + COUNT ( * )
----
4051

query I rowsort
SELECT + 85 * + - 92
----
-7820

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL MAX( ALL - + 78 ) * - - 4
----
-312

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL MAX ( ALL - + 78 ) * - - 4
----
-312

query I rowsort
SELECT COALESCE ( + 19, + 39 * + 50 + - 91 )
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-6482
SELECT DISTINCT + 56 DIV - + ( + - ( - - NULLIF ( - + 90, - ( - 36 ) + ( + COALESCE ( + + 93, 93 ) ) ) ) ) AS col2, 99 AS col0
----
0
99

skipif mysql # not compatible
query II rowsort label-6482
SELECT DISTINCT + 56 / - + ( + - ( - - NULLIF ( - + 90, - ( - 36 ) + ( + COALESCE ( + + 93, 93 ) ) ) ) ) AS col2, 99 AS col0
----
0
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6483
SELECT NULLIF ( + MAX( DISTINCT + 44 ), + 95 * + + 23 * - 91 * 20 - - + CAST( NULL AS DECIMAL ) - + - 62 * + MAX( DISTINCT + + 49 ) * + 94 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6483
SELECT NULLIF ( + MAX ( DISTINCT + 44 ), + 95 * + + 23 * - 91 * 20 - - + CAST ( NULL AS REAL ) - + - 62 * + MAX ( DISTINCT + + 49 ) * + 94 ) AS col1
----
44

query I rowsort
SELECT ALL + 38 * - 62
----
-2356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6485
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 86 * + 60 + + - 17 col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6485
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 86 * + 60 + + - 17 col2, + COUNT ( * )
----
NULL
1

query II rowsort
SELECT ALL + 81, + 21 * - 12 AS col1
----
81
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-6487
SELECT + 25 * 8 DIV - 95
----
-2

skipif mysql # not compatible
query I rowsort label-6487
SELECT + 25 * 8 / - 95
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT - 37 - + SUM( + 98 )
----
-135

skipif mysql # not compatible
query I rowsort label-6488
SELECT - 37 - + SUM ( + 98 )
----
-135

query II rowsort
SELECT ALL - 27 AS col1, - 21
----
-27
-21

query I rowsort
SELECT - 61 * + 78 + - 33
----
-4791

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT + 31 * + + SUM( - 25 ) AS col1
----
-775

skipif mysql # not compatible
query I rowsort label-6491
SELECT + 31 * + + SUM ( - 25 ) AS col1
----
-775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6492
SELECT ALL + CAST( 69 AS SIGNED ) * 60 + NULLIF ( + 61, 27 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL + CAST ( 69 AS INTEGER ) * 60 + NULLIF ( + 61, 27 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6493
SELECT - COUNT( * ) AS col0, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-6493
SELECT - COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT ALL - 12 + - 3
----
-15

query I rowsort
SELECT ALL COALESCE ( + 9, - + 28 + 26 ) * - 53 * + 19 + + 19 - 55 col1
----
-9099

onlyif mysql # DIV for integer division: 
query I rowsort label-6496
SELECT DISTINCT ( 88 ) DIV - + 73 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT ( 88 ) / - + 73 AS col0
----
-1

query II rowsort
SELECT ALL ( 31 ) AS col2, + 36 + + 58 AS col1
----
31
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6498
SELECT - COUNT( * ) AS col0, + 75 AS col2
----
-1
75

skipif mysql # not compatible
query II rowsort label-6498
SELECT - COUNT ( * ) AS col0, + 75 AS col2
----
-1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL 94 - + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL 94 - + COUNT ( * )
----
93

query I rowsort
SELECT + 33 * - 81
----
-2673

query II rowsort
SELECT + 90, 79 * - 66 AS col2
----
90
-5214

query I rowsort
SELECT + 47 - + 2 AS col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6503
SELECT 66, + 99 * - 62 - - + 56 * + COUNT( * ) * + - 96 AS col1
----
66
-11514

skipif mysql # not compatible
query II rowsort label-6503
SELECT 66, + 99 * - 62 - - + 56 * + COUNT ( * ) * + - 96 AS col1
----
66
-11514

query II rowsort
SELECT - 60 - - 84 AS col1, 63 col0
----
24
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT - - 75 * - COUNT( * ) - - NULLIF ( + 26, + + 32 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6505
SELECT - - 75 * - COUNT ( * ) - - NULLIF ( + 26, + + 32 ) AS col1
----
-49

query I rowsort
SELECT DISTINCT ( + 24 ) AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6507
SELECT ALL - NULLIF ( - 41, + 70 * + - 44 ) - - CAST( - 22 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL - NULLIF ( - 41, + 70 * + - 44 ) - - CAST ( - 22 AS INTEGER )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT + - 5 * COUNT( * ) + + 76 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6508
SELECT + - 5 * COUNT ( * ) + + 76 AS col2
----
71

query I rowsort
SELECT + + 30 + - 83 col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT ALL + 32 * MAX( - - 23 )
----
736

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL + 32 * MAX ( - - 23 )
----
736

query II rowsort
SELECT ALL - 68 * + 94 * 43 AS col0, + 51
----
-274856
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL - MIN( ALL + 92 ) * ( - - ( - 24 ) )
----
2208

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL - MIN ( ALL + 92 ) * ( - - ( - 24 ) )
----
2208

query I rowsort
SELECT 9 col0
----
9

query I rowsort
SELECT ALL 61 * + 55 AS col1
----
3355

query I rowsort
SELECT 7 + 94
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT 17 DIV + 7 col0
----
2

skipif mysql # not compatible
query I rowsort label-6516
SELECT 17 / + 7 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT DISTINCT - CASE + 39 WHEN - COUNT( * ) THEN 86 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT - CASE + 39 WHEN - COUNT ( * ) THEN 86 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT 97 + - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-6518
SELECT 97 + - COUNT ( * )
----
96

query I rowsort
SELECT 97 * - + 50 - 88 AS col1
----
-4938

onlyif mysql # DIV for integer division: 
query I rowsort label-6520
SELECT ALL + ( - 53 ) DIV + ( + 79 ) * - 91
----
0

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL + ( - 53 ) / + ( + 79 ) * - 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( * ) - 95 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) - 95 * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT - + 40 * + + COUNT( ALL 96 ) + + + 77 * COUNT( * ) * + + 79 AS col2
----
6043

skipif mysql # not compatible
query I rowsort label-6522
SELECT - + 40 * + + COUNT ( ALL 96 ) + + + 77 * COUNT ( * ) * + + 79 AS col2
----
6043

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL - + SUM( + ( + 6 ) ) - + + 63
----
-69

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL - + SUM ( + ( + 6 ) ) - + + 63
----
-69

query I rowsort
SELECT DISTINCT - 23 - - 91 + - 87 AS col2
----
-19

query I rowsort
SELECT ALL NULLIF ( 35, - 78 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6526
SELECT + 45 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT + 45 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6527
SELECT 10 * - + CAST( + 5 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-6527
SELECT 10 * - + CAST ( + 5 AS INTEGER )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6528
SELECT - CAST( NULL AS SIGNED ) + 88 AS col1, 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-6528
SELECT - CAST ( NULL AS INTEGER ) + 88 AS col1, 37
----
NULL
37

query I rowsort
SELECT DISTINCT - ( + - CASE + 9 WHEN 91 THEN + + 0 * - ( - 50 ) + + 98 WHEN 26 THEN NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6530
SELECT ALL 94 * + 20 / - + ( + + AVG ( ALL - CAST( NULL AS DECIMAL ) ) ) + + 77 * - + 50 + 12 + - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL 94 * + 20 / - + ( + + AVG ( ALL - CAST ( NULL AS REAL ) ) ) + + 77 * - + 50 + 12 + - 9 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6531
SELECT ( - 19 ) * - - 20 * - ( - + CAST( 21 AS SIGNED ) ) - - 14 AS col1
----
-7966

skipif mysql # not compatible
query I rowsort label-6531
SELECT ( - 19 ) * - - 20 * - ( - + CAST ( 21 AS INTEGER ) ) - - 14 AS col1
----
-7966

query II rowsort
SELECT - 84, 97 AS col2
----
-84
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6533
SELECT CAST( NULL AS SIGNED ) + + CAST( 21 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6533
SELECT CAST ( NULL AS INTEGER ) + + CAST ( 21 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT DISTINCT COUNT( * ) + - 7 + - 8 * 70 + + 75 AS col1
----
-491

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT COUNT ( * ) + - 7 + - 8 * 70 + + 75 AS col1
----
-491

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6535
SELECT ALL CASE + 8 WHEN + 74 THEN + 0 END + - COALESCE ( - - 10, + CAST( + - 31 AS DECIMAL ) + 98, - - 82 * - + 88 ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL CASE + 8 WHEN + 74 THEN + 0 END + - COALESCE ( - - 10, + CAST ( + - 31 AS REAL ) + 98, - - 82 * - + 88 ) * - - COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT - 59, 42 AS col0
----
-59
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT 10 DIV + 13 * + NULLIF ( + 65, - 97 + + + ( + 43 ) * - - 76 ) - + + 48
----
-48

skipif mysql # not compatible
query I rowsort label-6537
SELECT 10 / + 13 * + NULLIF ( + 65, - 97 + + + ( + 43 ) * - - 76 ) - + + 48
----
-48

query I rowsort
SELECT COALESCE ( + 19, + + 92 ) * - 3
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6539
SELECT ALL 55 + 37 + - + 85 * - 50 col1, 56 - COUNT( * ) + + 9
----
4342
64

skipif mysql # not compatible
query II rowsort label-6539
SELECT ALL 55 + 37 + - + 85 * - 50 col1, 56 - COUNT ( * ) + + 9
----
4342
64

query I rowsort
SELECT ALL 14 + - - 48
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT CASE + 53 WHEN + 80 THEN - ( 10 ) + - 57 + - 81 ELSE NULL END * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT CASE + 53 WHEN + 80 THEN - ( 10 ) + - 57 + - 81 ELSE NULL END * - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT 33 + + CAST( + 84 AS SIGNED ) AS col1
----
117

skipif mysql # not compatible
query I rowsort label-6542
SELECT 33 + + CAST ( + 84 AS INTEGER ) AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT COUNT( * ) * 86 + 17 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-6543
SELECT COUNT ( * ) * 86 + 17 AS col2
----
103

query I rowsort
SELECT ALL - 66 + + + 89
----
23

query II rowsort
SELECT 94 AS col2, 16
----
94
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6546
SELECT - 52 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6546
SELECT - 52 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 26 AS col0
----
26

query II rowsort
SELECT + 1 col0, + 84
----
1
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6549
SELECT ALL + 85 - - CAST( - NULLIF ( - 40, 6 ) AS SIGNED ) + - ( 94 ) * SUM( ALL + - 56 )
----
5389

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL + 85 - - CAST ( - NULLIF ( - 40, 6 ) AS INTEGER ) + - ( 94 ) * SUM ( ALL + - 56 )
----
5389

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT - MAX( ALL 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6550
SELECT - MAX ( ALL 48 ) AS col0
----
-48

query I rowsort
SELECT ( + 55 ) + - 26 AS col1
----
29

query I rowsort
SELECT + ( - 89 )
----
-89

query II rowsort
SELECT 69 * + 23 * 65 AS col0, + 66
----
103155
66

query I rowsort
SELECT - - 49 * + + ( - 26 ) - - + 22 + - 36 + + 85 * - 81
----
-8173

query I rowsort
SELECT - + 33 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT 48 * + + SUM( 54 ) * 39
----
101088

skipif mysql # not compatible
query I rowsort label-6556
SELECT 48 * + + SUM ( 54 ) * 39
----
101088

query I rowsort
SELECT 79 - 64 + + 87 * 86 * - 63
----
-471351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6558
SELECT DISTINCT - + 18 * - CASE - 97 WHEN + - 34 * + + COUNT( * ) THEN + 48 + - CASE + CASE - 58 WHEN - CAST( - - ( + COUNT( * ) ) AS SIGNED ) THEN + 89 ELSE NULL END WHEN - 25 THEN - 13 ELSE 70 END * + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT - + 18 * - CASE - 97 WHEN + - 34 * + + COUNT ( * ) THEN + 48 + - CASE + CASE - 58 WHEN - CAST ( - - ( + COUNT ( * ) ) AS INTEGER ) THEN + 89 ELSE NULL END WHEN - 25 THEN - 13 ELSE 70 END * + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT DISTINCT - COUNT( * ) * + 73 * + - 74
----
5402

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - COUNT ( * ) * + 73 * + - 74
----
5402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6560
SELECT - COUNT( * ) + + CAST( - - 68 AS SIGNED ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6560
SELECT - COUNT ( * ) + + CAST ( - - 68 AS INTEGER ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT ALL - - 51 * - 47 + SUM( DISTINCT - 68 )
----
-2465

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL - - 51 * - 47 + SUM ( DISTINCT - 68 )
----
-2465

query I rowsort
SELECT 5 + - + 25 AS col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-6563
SELECT - ( + 3 ) + + 49 DIV - 73 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6563
SELECT - ( + 3 ) + + 49 / - 73 AS col2
----
-3

query I rowsort
SELECT + 68 - - 41
----
109

query I rowsort
SELECT ALL + 69 + + 89
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL 68 + + + 49 * + 98 - + 60 + + 87 + + COUNT( ALL 82 ) * - 44 AS col0
----
4853

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL 68 + + + 49 * + 98 - + 60 + + 87 + + COUNT ( ALL 82 ) * - 44 AS col0
----
4853

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT + 9 + CASE + 2 WHEN 77 THEN - - COUNT( * ) * - 31 WHEN - 85 THEN NULL WHEN COUNT( * ) * - 66 * + 98 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6567
SELECT + 9 + CASE + 2 WHEN 77 THEN - - COUNT ( * ) * - 31 WHEN - 85 THEN NULL WHEN COUNT ( * ) * - 66 * + 98 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 79 + - 12 AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6569
SELECT DISTINCT CASE 41 WHEN ( - + 70 ) THEN NULL WHEN - + CASE COUNT( * ) WHEN CAST( + + 41 AS DECIMAL ) THEN NULL WHEN - COUNT( * ) THEN - 41 + + + 96 / - 34 WHEN - COUNT( CASE 34 WHEN + + 75 * + - CAST( 62 AS DECIMAL ) THEN 28 ELSE NULL END ) + 19 * 38 THEN 45 END * 16 THEN + 34 * 28 + 13 * - 96 WHEN 86 * - 25 THEN 61 END * 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT CASE 41 WHEN ( - + 70 ) THEN NULL WHEN - + CASE COUNT ( * ) WHEN CAST ( + + 41 AS REAL ) THEN NULL WHEN - COUNT ( * ) THEN - 41 + + + 96 / - 34 WHEN - COUNT ( CASE 34 WHEN + + 75 * + - CAST ( 62 AS REAL ) THEN 28 ELSE NULL END ) + 19 * 38 THEN 45 END * 16 THEN + 34 * 28 + 13 * - 96 WHEN 86 * - 25 THEN 61 END * 96 AS col2
----
NULL

query I rowsort
SELECT ALL 8 * ( 41 )
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT - 14 + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-6571
SELECT - 14 + COUNT ( * ) AS col1
----
-13

query I rowsort
SELECT - 18 * + 7 + + 56
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6573
SELECT CASE + 22 WHEN + CASE + 75 WHEN + - 5 THEN COUNT( * ) END THEN - + 3 + 20 + + - 82 * 25 WHEN - ( 60 ) THEN + - CAST( + 54 AS DECIMAL ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT CASE + 22 WHEN + CASE + 75 WHEN + - 5 THEN COUNT ( * ) END THEN - + 3 + 20 + + - 82 * 25 WHEN - ( 60 ) THEN + - CAST ( + 54 AS REAL ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 95 * + 27 - + - 19
----
-2546

query I rowsort
SELECT DISTINCT + ( + - 95 )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6576
SELECT ALL - COUNT( * ) * 61 DIV 59 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL - COUNT ( * ) * 61 / 59 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT 34 * + CASE - 50 WHEN + COUNT( * ) THEN NULL WHEN - 30 THEN + - 65 END * - + 46 + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT 34 * + CASE - 50 WHEN + COUNT ( * ) THEN NULL WHEN - 30 THEN + - 65 END * - + 46 + + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6578
SELECT CASE 54 WHEN + 64 + 17 THEN + COUNT( * ) + + + COUNT( * ) * + + 96 ELSE + - COUNT( * ) DIV + 96 - + 46 END
----
-46

skipif mysql # not compatible
query I rowsort label-6578
SELECT CASE 54 WHEN + 64 + 17 THEN + COUNT ( * ) + + + COUNT ( * ) * + + 96 ELSE + - COUNT ( * ) / + 96 - + 46 END
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL + MIN( + + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL + MIN ( + + 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + - CASE + - 17 WHEN + 34 THEN NULL WHEN 54 + - 86 THEN - + 31 ELSE NULL END + 81 * 78 * - MAX( - 48 ) * + 10 * - 40 / - 59 + + - 51 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT + - CASE + - 17 WHEN + 34 THEN NULL WHEN 54 + - 86 THEN - + 31 ELSE NULL END + 81 * 78 * - MAX ( - 48 ) * + 10 * - 40 / - 59 + + - 51 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6581
SELECT + + COUNT( * ) + - CASE + AVG ( - 9 ) WHEN 36 / + + 78 THEN 37 + - + 87 + - 95 WHEN - 12 * - COALESCE ( - 20, + ( - - 19 ), - 52 ) THEN NULL END, CAST( - + 13 AS SIGNED ) AS col2
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-6581
SELECT + + COUNT ( * ) + - CASE + AVG ( - 9 ) WHEN 36 / + + 78 THEN 37 + - + 87 + - 95 WHEN - 12 * - COALESCE ( - 20, + ( - - 19 ), - 52 ) THEN NULL END, CAST ( - + 13 AS INTEGER ) AS col2
----
NULL
-13

query I rowsort
SELECT DISTINCT + - 42 col1
----
-42

query I rowsort
SELECT + 74 * + 24 - + - 47
----
1823

query I rowsort
SELECT ALL + ( + 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + 87 * 1 + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-6585
SELECT + 87 * 1 + COUNT ( * )
----
88

query I rowsort
SELECT - - 95 * 83 AS col1
----
7885

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6587
SELECT - 13 + CAST( - + 44 AS SIGNED ) DIV - - 61 * + ( + 60 )
----
-13

skipif mysql # not compatible
query I rowsort label-6587
SELECT - 13 + CAST ( - + 44 AS INTEGER ) / - - 61 * + ( + 60 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6588
SELECT ALL + + ( - CAST( NULL AS SIGNED ) ) * + CAST( - + 30 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL + + ( - CAST ( NULL AS INTEGER ) ) * + CAST ( - + 30 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT + + 67 * - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6589
SELECT + + 67 * - COUNT ( * ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT - - COUNT( * ) + + 92 col1
----
93

skipif mysql # not compatible
query I rowsort label-6590
SELECT - - COUNT ( * ) + + 92 col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6591
SELECT + + 74 / CASE 0 WHEN + 84 * - - 7 + - 2 THEN NULL ELSE 77 * - + CAST( NULL AS SIGNED ) + - COUNT( * ) - + 15 + - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT + + 74 / CASE 0 WHEN + 84 * - - 7 + - 2 THEN NULL ELSE 77 * - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) - + 15 + - 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL + ( + MAX( ALL + + 10 ) ) + - 90 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL + ( + MAX ( ALL + + 10 ) ) + - 90 AS col1
----
-80

query I rowsort
SELECT - 63 * - 17
----
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL - COUNT( * ) + - + 9
----
-10

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL - COUNT ( * ) + - + 9
----
-10

query I rowsort
SELECT ALL + COALESCE ( + 33, NULLIF ( 3, + 19 ) ) * - + 57 col1
----
-1881

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT ALL - 83 + COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL - 83 + COUNT ( * ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT - 33 * COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-6597
SELECT - 33 * COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT - 50 + - - NULLIF ( ( COUNT( DISTINCT + 54 ) ), - 17 )
----
-49

skipif mysql # not compatible
query I rowsort label-6598
SELECT - 50 + - - NULLIF ( ( COUNT ( DISTINCT + 54 ) ), - 17 )
----
-49

query I rowsort
SELECT - 9 * + + 79
----
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT DISTINCT - MIN( 41 ) * + CASE MAX( + + 60 ) WHEN - + 66 THEN - NULLIF ( + 63, - 56 ) * + 36 * + 43 WHEN 34 THEN NULL WHEN 76 / - - 78 * + 81 + + COUNT( * ) + - 58 * 93 + - 32 + - ( 6 ) + 32 + 90 THEN NULL ELSE NULL END - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT - MIN ( 41 ) * + CASE MAX ( + + 60 ) WHEN - + 66 THEN - NULLIF ( + 63, - 56 ) * + 36 * + 43 WHEN 34 THEN NULL WHEN 76 / - - 78 * + 81 + + COUNT ( * ) + - 58 * 93 + - 32 + - ( 6 ) + 32 + 90 THEN NULL ELSE NULL END - 61
----
NULL

query I rowsort
SELECT ALL + 38 * 1 AS col0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6602
SELECT - 50 AS col1, + COUNT( * ) * - 98
----
-50
-98

skipif mysql # not compatible
query II rowsort label-6602
SELECT - 50 AS col1, + COUNT ( * ) * - 98
----
-50
-98

query I rowsort
SELECT - 73 - - + 86 AS col1
----
13

query II rowsort
SELECT + 79 * + 9 * - 24 AS col2, - 7
----
-17064
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6605
SELECT + 96 + 30 + + - 99 - + 22 + - - ( - 22 ) DIV - + MIN( ALL + + 35 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6605
SELECT + 96 + 30 + + - 99 - + 22 + - - ( - 22 ) / - + MIN ( ALL + + 35 ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6606
SELECT ALL CAST( - COUNT( 12 ) AS SIGNED ) AS col2, 85 + 43 AS col0
----
-1
128

skipif mysql # not compatible
query II rowsort label-6606
SELECT ALL CAST ( - COUNT ( 12 ) AS INTEGER ) AS col2, 85 + 43 AS col0
----
-1
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6607
SELECT DISTINCT 9 AS col0, + COUNT( * ) - - 50 DIV - 8
----
9
-5

skipif mysql # not compatible
query II rowsort label-6607
SELECT DISTINCT 9 AS col0, + COUNT ( * ) - - 50 / - 8
----
9
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT - 43 * COUNT( ALL + 54 )
----
-43

skipif mysql # not compatible
query I rowsort label-6608
SELECT - 43 * COUNT ( ALL + 54 )
----
-43

query I rowsort
SELECT ALL 54 * + 18
----
972

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT - + 79 * - - COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6610
SELECT - + 79 * - - COUNT ( * ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT + SUM( DISTINCT - 96 ) * 54
----
-5184

skipif mysql # not compatible
query I rowsort label-6611
SELECT + SUM ( DISTINCT - 96 ) * 54
----
-5184

onlyif mysql # aggregate syntax: 
query II rowsort label-6612
SELECT ALL - - 51 * ( - 59 ) AS col1, + COUNT( ALL 96 ) AS col2
----
-3009
1

skipif mysql # not compatible
query II rowsort label-6612
SELECT ALL - - 51 * ( - 59 ) AS col1, + COUNT ( ALL 96 ) AS col2
----
-3009
1

query II rowsort
SELECT + 13, 5 AS col2
----
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT DISTINCT + MIN( ALL - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT + MIN ( ALL - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT - COUNT( * ) * - 51
----
51

skipif mysql # not compatible
query I rowsort label-6615
SELECT - COUNT ( * ) * - 51
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6616
SELECT ALL + - 72, COUNT( + 71 ) AS col0
----
-72
1

skipif mysql # not compatible
query II rowsort label-6616
SELECT ALL + - 72, COUNT ( + 71 ) AS col0
----
-72
1

query I rowsort
SELECT ALL + 33 * + + 1 * - + 52
----
-1716

query I rowsort
SELECT DISTINCT - - 9 * 47
----
423

query I rowsort
SELECT DISTINCT + + 47 * + - 71
----
-3337

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT + - COUNT( * ) * - + 4 + - + 69 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-6620
SELECT + - COUNT ( * ) * - + 4 + - + 69 AS col0
----
-65

query I rowsort
SELECT ALL + + 38 col0
----
38

query I rowsort
SELECT DISTINCT + + 56 AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6623
SELECT ALL + CAST( + + 38 AS SIGNED ) * 94 + - COUNT( * )
----
3571

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL + CAST ( + + 38 AS INTEGER ) * 94 + - COUNT ( * )
----
3571

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL - ( + ( COUNT( + 60 ) ) ) * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL - ( + ( COUNT ( + 60 ) ) ) * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT - - MAX( 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6625
SELECT - - MAX ( 64 ) AS col1
----
64

query I rowsort
SELECT - - ( + 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT ALL 45 + COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL 45 + COUNT ( * ) AS col1
----
46

query I rowsort
SELECT DISTINCT 4 + ( + ( - 69 ) ) AS col2
----
-65

query I rowsort
SELECT ALL 63 * COALESCE ( + 71, - 55 * 61 ) AS col1
----
4473

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT ALL + 51 + - - COUNT( DISTINCT - 48 ) * + ( - ( - + 28 ) ) + 33
----
112

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + 51 + - - COUNT ( DISTINCT - 48 ) * + ( - ( - + 28 ) ) + 33
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6631
SELECT CAST( NULL AS SIGNED ) + - - 20 / - - 51 + + - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT CAST ( NULL AS INTEGER ) + - - 20 / - - 51 + + - 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL COUNT( * ) + - COUNT( * ) + + 95 * - 9
----
-855

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + 95 * - 9
----
-855

query I rowsort
SELECT DISTINCT 98 * 52 AS col1
----
5096

query II rowsort
SELECT 11 + - 69, - ( + 16 ) AS col1
----
-58
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6635
SELECT 82 * + 30 * - 15 * + 8 AS col0, - ( + CAST( - MAX( ALL + 88 ) AS SIGNED ) )
----
-295200
88

skipif mysql # not compatible
query II rowsort label-6635
SELECT 82 * + 30 * - 15 * + 8 AS col0, - ( + CAST ( - MAX ( ALL + 88 ) AS INTEGER ) )
----
-295200
88

query II rowsort
SELECT ALL 38 AS col1, 17 + - 65
----
38
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT COUNT( * ) + + - 40 * 75 * + 95 AS col0
----
-284999

skipif mysql # not compatible
query I rowsort label-6637
SELECT COUNT ( * ) + + - 40 * 75 * + 95 AS col0
----
-284999

query I rowsort
SELECT 36 - 19
----
17

query I rowsort
SELECT 46 + - 85 + + 47
----
8

query II rowsort
SELECT ALL 5 AS col0, 46 - + 18
----
5
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6641
SELECT ALL COUNT( * ) DIV + - 42 * + 30
----
0

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL COUNT ( * ) / + - 42 * + 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT 36 + - + MIN( ALL 31 )
----
5

skipif mysql # not compatible
query I rowsort label-6642
SELECT 36 + - + MIN ( ALL 31 )
----
5

query II rowsort
SELECT ALL 12 AS col0, + 61 AS col1
----
12
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6644
SELECT DISTINCT + ( - 88 ) * - + CAST( NULL AS SIGNED ) * + 79 AS col2, 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-6644
SELECT DISTINCT + ( - 88 ) * - + CAST ( NULL AS INTEGER ) * + 79 AS col2, 55
----
NULL
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT 51 DIV 9 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6645
SELECT 51 / 9 AS col0
----
5

query I rowsort
SELECT ALL + 44 * 39 AS col1
----
1716

onlyif mysql # DIV for integer division: 
query I rowsort label-6647
SELECT - 59 DIV - 26 + 93
----
95

skipif mysql # not compatible
query I rowsort label-6647
SELECT - 59 / - 26 + 93
----
95

query I rowsort
SELECT COALESCE ( - 94, - - 1 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT MIN( + - 11 ) * + 47 * 96 * 66 col1
----
-3275712

skipif mysql # not compatible
query I rowsort label-6649
SELECT MIN ( + - 11 ) * + 47 * 96 * 66 col1
----
-3275712

query I rowsort
SELECT - 28 * - + 71 + + + 22 AS col0
----
2010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT ALL - + ( - - CASE + + 15 WHEN CASE WHEN NOT + 56 < 29 + + - 27 THEN NULL ELSE 52 END + 53 + + + MAX( DISTINCT + 29 ) THEN - CAST( - 65 AS SIGNED ) WHEN - 16 THEN NULL WHEN - COUNT( * ) * - CAST( ( + 44 ) AS SIGNED ) THEN + 63 END ) * + + 99 / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL - + ( - - CASE + + 15 WHEN CASE WHEN NOT + 56 < 29 + + - 27 THEN NULL ELSE 52 END + 53 + + + MAX ( DISTINCT + 29 ) THEN - CAST ( - 65 AS INTEGER ) WHEN - 16 THEN NULL WHEN - COUNT ( * ) * - CAST ( ( + 44 ) AS INTEGER ) THEN + 63 END ) * + + 99 / 54
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6652
SELECT - NULLIF ( AVG ( DISTINCT CAST( NULL AS SIGNED ) ), + + 37 + + - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT - NULLIF ( AVG ( DISTINCT CAST ( NULL AS INTEGER ) ), + + 37 + + - 30 )
----
NULL

query II rowsort
SELECT ALL - NULLIF ( - 86, 13 * + 5 ) AS col2, 13
----
86
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT 31 + - CAST( - 74 AS SIGNED ) * + ( 55 ) * + + NULLIF ( 50, - - 27 + + + 62 )
----
203531

skipif mysql # not compatible
query I rowsort label-6654
SELECT 31 + - CAST ( - 74 AS INTEGER ) * + ( 55 ) * + + NULLIF ( 50, - - 27 + + + 62 )
----
203531

query II rowsort
SELECT DISTINCT - - 87 AS col2, - 23
----
87
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT - 53 * - SUM( - + 20 ) + - - 51 + 14 * COUNT( * ) AS col0
----
-995

skipif mysql # not compatible
query I rowsort label-6656
SELECT - 53 * - SUM ( - + 20 ) + - - 51 + 14 * COUNT ( * ) AS col0
----
-995

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT DISTINCT + COUNT( ALL + 27 ) + - + 71 * - + ( 46 )
----
3267

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT + COUNT ( ALL + 27 ) + - + 71 * - + ( 46 )
----
3267

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT - COUNT( * ) * 45 * NULLIF ( - 5, 76 ) + + + 21 AS col1
----
246

skipif mysql # not compatible
query I rowsort label-6658
SELECT - COUNT ( * ) * 45 * NULLIF ( - 5, 76 ) + + + 21 AS col1
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT + 11 + + CAST( + + 24 AS SIGNED ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6659
SELECT + 11 + + CAST ( + + 24 AS INTEGER ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT DISTINCT + 2 + - ( - 95 ) * + 24 * 86 + - COUNT( * )
----
196081

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT + 2 + - ( - 95 ) * + 24 * 86 + - COUNT ( * )
----
196081

query I rowsort
SELECT ALL 94 + - 98 * - 87 AS col0
----
8620

query I rowsort
SELECT ALL + - 40 * - 19
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ( NULLIF ( - COUNT( + 27 ), 15 ) ) * 9 col0
----
-9

skipif mysql # not compatible
query I rowsort label-6663
SELECT ( NULLIF ( - COUNT ( + 27 ), 15 ) ) * 9 col0
----
-9

query I rowsort
SELECT 91 * + 32
----
2912

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6665
SELECT CAST( NULL AS DECIMAL ) + - 90 + + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT CAST ( NULL AS REAL ) + - 90 + + + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT COUNT( * ) * - + 36 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6666
SELECT COUNT ( * ) * - + 36 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6667
SELECT DISTINCT COUNT( * ) * + 9 col0, 0 col0
----
9
0

skipif mysql # not compatible
query II rowsort label-6667
SELECT DISTINCT COUNT ( * ) * + 9 col0, 0 col0
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT COUNT( DISTINCT 58 )
----
1

skipif mysql # not compatible
query I rowsort label-6668
SELECT COUNT ( DISTINCT 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT 20 + + SUM( ( 94 ) ) + - - CASE 85 WHEN + 15 * - 3 + - 48 THEN - AVG ( - 89 ) * 24 * + + ( 61 ) WHEN - COUNT( * ) THEN NULL WHEN + 81 THEN NULL END + + + 79 * + - 22 / 72 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT 20 + + SUM ( ( 94 ) ) + - - CASE 85 WHEN + 15 * - 3 + - 48 THEN - AVG ( - 89 ) * 24 * + + ( 61 ) WHEN - COUNT ( * ) THEN NULL WHEN + 81 THEN NULL END + + + 79 * + - 22 / 72 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL NULLIF ( + 29, 31 + 7 * - COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL NULLIF ( + 29, 31 + 7 * - COUNT ( * ) )
----
29

query I rowsort
SELECT - COALESCE ( - + 71, - 86, - + 4 ) * 15 AS col1
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT ALL - 75 * 98 + + ( + NULLIF ( 23, - 46 + NULLIF ( COUNT( * ), + 2 ) * - 86 ) ) AS col1
----
-7327

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL - 75 * 98 + + ( + NULLIF ( 23, - 46 + NULLIF ( COUNT ( * ), + 2 ) * - 86 ) ) AS col1
----
-7327

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6673
SELECT + 85 * CAST( + 56 AS SIGNED )
----
4760

skipif mysql # not compatible
query I rowsort label-6673
SELECT + 85 * CAST ( + 56 AS INTEGER )
----
4760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT + + CAST( NULL AS SIGNED ) * AVG ( - 29 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT + + CAST ( NULL AS INTEGER ) * AVG ( - 29 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6675
SELECT - CAST( - - AVG ( ALL + + 49 ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-6675
SELECT - CAST ( - - AVG ( ALL + + 49 ) AS INTEGER )
----
-49

query I rowsort
SELECT DISTINCT - + 80 * + 63 * 93 - - 79
----
-468641

query I rowsort
SELECT + + 84 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6678
SELECT + CAST( NULLIF ( 19, 40 + + COUNT( * ) ) AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-6678
SELECT + CAST ( NULLIF ( 19, 40 + + COUNT ( * ) ) AS INTEGER )
----
19

query I rowsort
SELECT - 96 * - - 86 + - - 2 AS col2
----
-8254

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT DISTINCT 50 * - COUNT( * ) + 55 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT 50 * - COUNT ( * ) + 55 AS col1
----
5

query I rowsort
SELECT DISTINCT + 73 * + 71 AS col0
----
5183

query I rowsort
SELECT ALL + - 85 * + + 92 + + + 43 col1
----
-7777

query I rowsort
SELECT DISTINCT + + 27 col0
----
27

query I rowsort
SELECT ALL - 18 * + 26 + 34 + + 30
----
-404

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT DISTINCT + COALESCE ( + 92, - COUNT( * ), - 65 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT + COALESCE ( + 92, - COUNT ( * ), - 65 ) AS col0
----
92

query I rowsort
SELECT - 21 + - - 28
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6687
SELECT - CAST( - - 22 AS SIGNED ) + 54 AS col0, 66 AS col1
----
32
66

skipif mysql # not compatible
query II rowsort label-6687
SELECT - CAST ( - - 22 AS INTEGER ) + 54 AS col0, 66 AS col1
----
32
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + 3 - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6688
SELECT + 3 - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL + 79 * 66 * 79 * - 92 * - - COUNT( * ) AS col1
----
-37895352

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + 79 * 66 * 79 * - 92 * - - COUNT ( * ) AS col1
----
-37895352

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT 88 * + 77 * - 18 * + + MIN( + - 85 ) + + + 87 AS col0
----
10367367

skipif mysql # not compatible
query I rowsort label-6690
SELECT 88 * + 77 * - 18 * + + MIN ( + - 85 ) + + + 87 AS col0
----
10367367

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT MAX( - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-6691
SELECT MAX ( - 80 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6692
SELECT - 50 + CASE + + 56 WHEN + 84 THEN 56 WHEN 6 * + - COUNT( * ) THEN + CAST( - ( + - 70 ) AS SIGNED ) * - 75 ELSE NULL END + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT - 50 + CASE + + 56 WHEN + 84 THEN 56 WHEN 6 * + - COUNT ( * ) THEN + CAST ( - ( + - 70 ) AS INTEGER ) * - 75 ELSE NULL END + - 24
----
NULL

query I rowsort
SELECT ALL + 88 * 80 AS col1
----
7040

query I rowsort
SELECT DISTINCT - 34 - + 4
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6695
SELECT ALL + MIN( ALL + + 54 ) * 28 * + CAST( 44 AS SIGNED )
----
66528

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL + MIN ( ALL + + 54 ) * 28 * + CAST ( 44 AS INTEGER )
----
66528

query II rowsort
SELECT ALL 43 AS col0, 24
----
43
24

query I rowsort
SELECT - 44 + - 24
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL - COUNT( * ) * - 72
----
72

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL - COUNT ( * ) * - 72
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT DISTINCT CASE + + AVG ( 20 ) WHEN COALESCE ( + 9, - + 16 + + COUNT( * ) * + SUM( ALL + 34 ) ) THEN - ( + 33 ) * - ( + 46 ) + 53 WHEN + COALESCE ( - 90, - 96, + 91 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT CASE + + AVG ( 20 ) WHEN COALESCE ( + 9, - + 16 + + COUNT ( * ) * + SUM ( ALL + 34 ) ) THEN - ( + 33 ) * - ( + 46 ) + 53 WHEN + COALESCE ( - 90, - 96, + 91 ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6700
SELECT DISTINCT ( + COALESCE ( - 70, - + MAX( + + 77 ), 30 ) ) AS col1, - COUNT( * ) + + 46 * 22
----
-70
1011

skipif mysql # not compatible
query II rowsort label-6700
SELECT DISTINCT ( + COALESCE ( - 70, - + MAX ( + + 77 ), 30 ) ) AS col1, - COUNT ( * ) + + 46 * 22
----
-70
1011

onlyif mysql # DIV for integer division: 
query I rowsort label-6701
SELECT ALL 32 DIV 5 col0
----
6

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL 32 / 5 col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6702
SELECT + 37 DIV + 25
----
1

skipif mysql # not compatible
query I rowsort label-6702
SELECT + 37 / + 25
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT DISTINCT ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT ( + + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6704
SELECT 79, + COUNT( + - 50 ) AS col2
----
79
1

skipif mysql # not compatible
query II rowsort label-6704
SELECT 79, + COUNT ( + - 50 ) AS col2
----
79
1

query I rowsort
SELECT + 60 + 43
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT + 78 * + 37 * COUNT( * )
----
2886

skipif mysql # not compatible
query I rowsort label-6706
SELECT + 78 * + 37 * COUNT ( * )
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT DISTINCT 89 + - - COUNT( * ) col0
----
90

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT 89 + - - COUNT ( * ) col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6708
SELECT + 8 + - - MIN( DISTINCT CAST( NULL AS SIGNED ) ) * + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6708
SELECT + 8 + - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * + - 97
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6709
SELECT DISTINCT + 29 + CAST( + + 50 AS SIGNED ) AS col0, - 83
----
79
-83

skipif mysql # not compatible
query II rowsort label-6709
SELECT DISTINCT + 29 + CAST ( + + 50 AS INTEGER ) AS col0, - 83
----
79
-83

query I rowsort
SELECT ALL - 54 + + 87 col2
----
33

query I rowsort
SELECT + ( 98 )
----
98

query I rowsort
SELECT + 83 + + 74 * - 12 * + 26 + 33 AS col1
----
-22972

query I rowsort
SELECT + + 37 col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6714
SELECT ALL 65 DIV - 36 + + - 37 * COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL 65 / - 36 + + - 37 * COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT + COUNT( - 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6715
SELECT + COUNT ( - 44 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6716
SELECT ALL + - 93, 36 DIV + 96 AS col1
----
-93
0

skipif mysql # not compatible
query II rowsort label-6716
SELECT ALL + - 93, 36 / + 96 AS col1
----
-93
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6717
SELECT + 69 DIV + 4 + 14
----
31

skipif mysql # not compatible
query I rowsort label-6717
SELECT + 69 / + 4 + 14
----
31

query I rowsort
SELECT + 37 * - - 7
----
259

onlyif mysql # DIV for integer division: 
query I rowsort label-6719
SELECT ALL 7 DIV + + 36
----
0

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL 7 / + + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT - - COUNT( DISTINCT + 70 ) + + 3 + - 33 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6720
SELECT - - COUNT ( DISTINCT + 70 ) + + 3 + - 33 AS col1
----
-29

query I rowsort
SELECT ALL 73 * + 55 * + 73 - + 86 AS col0
----
293009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6722
SELECT ALL + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6723
SELECT + - 14 * + 2 / - CASE + CASE ( 49 ) WHEN + - 16 THEN NULL ELSE - + AVG ( DISTINCT + 56 ) * - COUNT( * ) END WHEN CAST( 82 AS SIGNED ) + - COUNT( * ) / + 74 THEN CAST( NULL AS SIGNED ) WHEN + - ( + + ( 51 ) ) THEN NULL END * - - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT + - 14 * + 2 / - CASE + CASE ( 49 ) WHEN + - 16 THEN NULL ELSE - + AVG ( DISTINCT + 56 ) * - COUNT ( * ) END WHEN CAST ( 82 AS INTEGER ) + - COUNT ( * ) / + 74 THEN CAST ( NULL AS INTEGER ) WHEN + - ( + + ( 51 ) ) THEN NULL END * - - 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT - - COUNT( * ) * - 55 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6724
SELECT - - COUNT ( * ) * - 55 AS col0
----
-55

query I rowsort
SELECT ( - ( 76 ) ) col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6726
SELECT - 63 * 1 AS col0, 40 * - + NULLIF ( 88, - CAST( NULL AS SIGNED ) ) * + 83 * + CAST( NULL AS DECIMAL )
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-6726
SELECT - 63 * 1 AS col0, 40 * - + NULLIF ( 88, - CAST ( NULL AS INTEGER ) ) * + 83 * + CAST ( NULL AS REAL )
----
-63
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6727
SELECT ALL + CASE - 23 WHEN COUNT( * ) THEN + + COUNT( * ) ELSE - 14 + 23 * + COALESCE ( + 23, 31 - + - ( 44 ) ) * - COALESCE ( + COUNT( * ), - COUNT( * ) * + - 21 - - - CASE ( COUNT( ALL + - 93 ) ) WHEN 62 * + + ( 10 ) * - 70 + 76 * 77 - + 62 / CASE 56 WHEN 69 * - 25 THEN + COALESCE ( - 69, - 88 ) * + 39 ELSE - 38 END THEN + COUNT( * ) + + ( 76 ) ELSE - CAST( NULL AS SIGNED ) END + - 54 + 78 ) END * 81 AS col0
----
-43983

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL + CASE - 23 WHEN COUNT ( * ) THEN + + COUNT ( * ) ELSE - 14 + 23 * + COALESCE ( + 23, 31 - + - ( 44 ) ) * - COALESCE ( + COUNT ( * ), - COUNT ( * ) * + - 21 - - - CASE ( COUNT ( ALL + - 93 ) ) WHEN 62 * + + ( 10 ) * - 70 + 76 * 77 - + 62 / CASE 56 WHEN 69 * - 25 THEN + COALESCE ( - 69, - 88 ) * + 39 ELSE - 38 END THEN + COUNT ( * ) + + ( 76 ) ELSE - CAST ( NULL AS INTEGER ) END + - 54 + 78 ) END * 81 AS col0
----
-43983

query I rowsort
SELECT ( 87 ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6729
SELECT - 30 * + 21 + - 38 + + COUNT( * ) + - CAST( NULL AS SIGNED ) + 71 + 51 * - COUNT( DISTINCT + + 50 ) * 77 + + 65 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT - 30 * + 21 + - 38 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + 71 + 51 * - COUNT ( DISTINCT + + 50 ) * 77 + + 65 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6730
SELECT - 92 * COUNT( * ) AS col0, + 45
----
-92
45

skipif mysql # not compatible
query II rowsort label-6730
SELECT - 92 * COUNT ( * ) AS col0, + 45
----
-92
45

query I rowsort
SELECT DISTINCT + ( 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6732
SELECT - 27 * CAST( NULL AS SIGNED ) * + 94 * - 84 AS col1, CASE + 45 WHEN + 42 * - + 81 THEN - - COALESCE ( - + 84, - - 95 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6732
SELECT - 27 * CAST ( NULL AS INTEGER ) * + 94 * - 84 AS col1, CASE + 45 WHEN + 42 * - + 81 THEN - - COALESCE ( - + 84, - - 95 ) END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL COALESCE ( COUNT( * ), + + MIN( ALL + 83 ) ) * 63
----
63

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL COALESCE ( COUNT ( * ), + + MIN ( ALL + 83 ) ) * 63
----
63

query I rowsort
SELECT NULLIF ( + 30, - 15 ) AS col0
----
30

query I rowsort
SELECT ALL ( - 33 ) AS col0
----
-33

query I rowsort
SELECT - 4 * + 33 - + 12 + - 27 AS col1
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT - MIN( ALL + 84 ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-6737
SELECT - MIN ( ALL + 84 ) col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6738
SELECT ALL CAST( 87 AS SIGNED ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL CAST ( 87 AS INTEGER ) AS col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT - COALESCE ( 54, 55 DIV + 40 )
----
-54

skipif mysql # not compatible
query I rowsort label-6739
SELECT - COALESCE ( 54, 55 / + 40 )
----
-54

query I rowsort
SELECT DISTINCT - 13 + + AVG ( + CASE - 90 WHEN + + 31 * + 98 THEN NULL WHEN + 50 THEN - 70 ELSE NULL END ) col2
----
NULL

query I rowsort
SELECT ALL + 58 + ( - - 7 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT - MIN( ALL + 90 ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-6742
SELECT - MIN ( ALL + 90 ) col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT ALL ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL ( - - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL - 31 + + 2 * - 73 + - 80
----
-257

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT - 1 + + 10 + 82 * COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-6745
SELECT - 1 + + 10 + 82 * COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT DISTINCT - + COUNT( * ) + ( + + 75 ) + - + 44 * - 28 - - 91 + + 26 AS col1
----
1423

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT - + COUNT ( * ) + ( + + 75 ) + - + 44 * - 28 - - 91 + + 26 AS col1
----
1423

query I rowsort
SELECT ALL + + 38 + + + 38 * + - ( + - 42 ) + 61 AS col1
----
1695

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT + - 30 DIV + - 11
----
2

skipif mysql # not compatible
query I rowsort label-6748
SELECT + - 30 / + - 11
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT ALL - COUNT( * ) + - + 59 + + 31
----
-29

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL - COUNT ( * ) + - + 59 + + 31
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6750
SELECT ALL - + 25 DIV + MAX( DISTINCT + 34 )
----
0

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL - + 25 / + MAX ( DISTINCT + 34 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6751
SELECT - 67 DIV COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6751
SELECT - 67 / COUNT ( * ) AS col2
----
-67

query I rowsort
SELECT ALL + ( + ( + NULLIF ( - NULLIF ( - 62, 79 ), + 48 ) ) )
----
62

query I rowsort
SELECT + ( + - ( ( + 99 ) ) ) AS col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT ALL - CAST( - - 28 AS SIGNED ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL - CAST ( - - 28 AS INTEGER ) AS col2
----
-28

query I rowsort
SELECT ALL - 23 * - 73 + - 39
----
1640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6756
SELECT - CASE + + 79 WHEN - COALESCE ( - ( - + 12 ), - 24 ) * COUNT( * ) / 98 THEN - ( + 99 ) + 81 + SUM( DISTINCT + 87 ) - + 10 WHEN + 57 THEN NULL END - NULLIF ( - 58, COUNT( * ) * ( - - ( - CAST( 72 AS SIGNED ) ) ) + 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT - CASE + + 79 WHEN - COALESCE ( - ( - + 12 ), - 24 ) * COUNT ( * ) / 98 THEN - ( + 99 ) + 81 + SUM ( DISTINCT + 87 ) - + 10 WHEN + 57 THEN NULL END - NULLIF ( - 58, COUNT ( * ) * ( - - ( - CAST ( 72 AS INTEGER ) ) ) + 45 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT DISTINCT + 90 * COUNT( * ) + + - 56
----
34

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT + 90 * COUNT ( * ) + + - 56
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6758
SELECT - SUM( DISTINCT 29 ) * - - 11 * - - ( - COALESCE ( - 43, + + COUNT( * ), + + 87 ) ) - - 51 AS col0, - 22 + - - 33 AS col1
----
-13666
11

skipif mysql # not compatible
query II rowsort label-6758
SELECT - SUM ( DISTINCT 29 ) * - - 11 * - - ( - COALESCE ( - 43, + + COUNT ( * ), + + 87 ) ) - - 51 AS col0, - 22 + - - 33 AS col1
----
-13666
11

query I rowsort
SELECT ALL - - 41 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6760
SELECT + 21, MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1
----
21
NULL

skipif mysql # not compatible
query II rowsort label-6760
SELECT + 21, MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1
----
21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT ALL - SUM( DISTINCT ( + 44 ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL - SUM ( DISTINCT ( + 44 ) ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT 20 DIV + 32 * 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6762
SELECT 20 / + 32 * 22 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL - NULLIF ( + COALESCE ( + + 84, + 47 + - MIN( ALL 48 ) ), 88 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL - NULLIF ( + COALESCE ( + + 84, + 47 + - MIN ( ALL 48 ) ), 88 ) AS col2
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT 10 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-6764
SELECT 10 / + 84
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6765
SELECT 45 * + + CAST( NULL AS DECIMAL ) * 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT 45 * + + CAST ( NULL AS REAL ) * 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT COUNT( * ) + - 53
----
-52

skipif mysql # not compatible
query I rowsort label-6766
SELECT COUNT ( * ) + - 53
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT DISTINCT COUNT( * ) * 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT COUNT ( * ) * 30 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6768
SELECT CAST( NULL AS SIGNED ) + - COUNT( ALL + 47 ) AS col1, - 41
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-6768
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( ALL + 47 ) AS col1, - 41
----
NULL
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT 71 * - + MIN( - 91 )
----
6461

skipif mysql # not compatible
query I rowsort label-6769
SELECT 71 * - + MIN ( - 91 )
----
6461

query II rowsort
SELECT 45 + + 31 * 44 AS col2, 17
----
1409
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6771
SELECT ALL - 26 + + + CASE + COALESCE ( - 1, - + 45 * ( 91 ) * - + COUNT( * ), + 94 * 24 * 6 ) WHEN + COUNT( * ) + + COUNT( * ) THEN NULL WHEN - 9 THEN - 77 END - + ( COUNT( 95 ) ) * - + CASE - + COUNT( * ) WHEN + 95 THEN NULL WHEN + + CAST( - + ( 1 ) AS DECIMAL ) + + 38 / - 86 THEN - 47 * + 90 ELSE 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL - 26 + + + CASE + COALESCE ( - 1, - + 45 * ( 91 ) * - + COUNT ( * ), + 94 * 24 * 6 ) WHEN + COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN - 9 THEN - 77 END - + ( COUNT ( 95 ) ) * - + CASE - + COUNT ( * ) WHEN + 95 THEN NULL WHEN + + CAST ( - + ( 1 ) AS REAL ) + + 38 / - 86 THEN - 47 * + 90 ELSE 10 END
----
NULL

query I rowsort
SELECT ALL 60 * + + 29 AS col0
----
1740

query I rowsort
SELECT DISTINCT 78 + - - 58 col1
----
136

query I rowsort
SELECT ALL - 99 + - - 81
----
-18

query I rowsort
SELECT 70 + - 69
----
1

query I rowsort
SELECT ALL - 27 + + 24
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT DISTINCT + SUM( ALL ( - 13 ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT + SUM ( ALL ( - 13 ) ) AS col0
----
-13

query I rowsort
SELECT 67 + - 23
----
44

query I rowsort
SELECT - 56 * - 54 col2
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT + MAX( DISTINCT - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-6780
SELECT + MAX ( DISTINCT - 51 )
----
-51

query II rowsort
SELECT 86 AS col1, 81 * + - 90
----
86
-7290

query I rowsort
SELECT DISTINCT - - 73 - 39
----
34

query II rowsort
SELECT - + 77 AS col1, 53
----
-77
53

onlyif mysql # aggregate syntax: 
query II rowsort label-6784
SELECT ALL + COUNT( * ), 22 AS col0
----
1
22

skipif mysql # not compatible
query II rowsort label-6784
SELECT ALL + COUNT ( * ), 22 AS col0
----
1
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6785
SELECT ( + - 87 ) * 86 DIV - + 70 + + ( - COUNT( * ) ) + - - 29 + + COALESCE ( - 98, 1 ) AS col0, - 93
----
36
-93

skipif mysql # not compatible
query II rowsort label-6785
SELECT ( + - 87 ) * 86 / - + 70 + + ( - COUNT ( * ) ) + - - 29 + + COALESCE ( - 98, 1 ) AS col0, - 93
----
36
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6786
SELECT 54 - + CAST( NULL AS SIGNED ) + + MIN( DISTINCT + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6786
SELECT 54 - + CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT + 71 )
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 14 ) - + 69 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT DISTINCT - CASE + 64 WHEN - + 38 * COUNT( * ) THEN - 47 WHEN - 22 THEN - 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT - CASE + 64 WHEN - + 38 * COUNT ( * ) THEN - 47 WHEN - 22 THEN - 77 ELSE NULL END
----
NULL

query I rowsort
SELECT 3 * - - 75
----
225

query I rowsort
SELECT - 28 * 60 AS col0
----
-1680

query I rowsort
SELECT 33 + - 15
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6792
SELECT - CAST( NULL AS SIGNED ) * + MAX( DISTINCT + 17 ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT - CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT + 17 ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6793
SELECT + SUM( 65 ) * - + COUNT( * ) * + ( + 14 ) - + + 93 * - CAST( NULL AS SIGNED ) + - - 73 + - 80 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT + SUM ( 65 ) * - + COUNT ( * ) * + ( + 14 ) - + + 93 * - CAST ( NULL AS INTEGER ) + - - 73 + - 80 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6794
SELECT ALL + 70 DIV ( + COUNT( * ) ) AS col0, - 3
----
70
-3

skipif mysql # not compatible
query II rowsort label-6794
SELECT ALL + 70 / ( + COUNT ( * ) ) AS col0, - 3
----
70
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT SUM( - 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6795
SELECT SUM ( - 48 ) AS col1
----
-48

query I rowsort
SELECT ALL - ( + 78 ) col0
----
-78

query I rowsort
SELECT ALL - ( - 61 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6798
SELECT ALL 15 * - ( + 70 ) + - COUNT( * ) * - + 51 + - - 10 AS col1, + SUM( DISTINCT 10 ) DIV + 70
----
-989
0

skipif mysql # not compatible
query II rowsort label-6798
SELECT ALL 15 * - ( + 70 ) + - COUNT ( * ) * - + 51 + - - 10 AS col1, + SUM ( DISTINCT 10 ) / + 70
----
-989
0

query I rowsort
SELECT 36 + 58 col2
----
94

query I rowsort
SELECT ALL 27 + + 86
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT - COUNT( * ) * - + COUNT( * ) + + COUNT( DISTINCT - - 16 ) * - 29 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6801
SELECT - COUNT ( * ) * - + COUNT ( * ) + + COUNT ( DISTINCT - - 16 ) * - 29 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT COUNT( ALL - 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6802
SELECT COUNT ( ALL - 34 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL MAX( ALL - + 44 ) + - 19
----
-63

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL MAX ( ALL - + 44 ) + - 19
----
-63

query I rowsort
SELECT 26 * + - ( - + 44 )
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT COUNT( ALL - ( - - 78 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6805
SELECT COUNT ( ALL - ( - - 78 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT COUNT( 20 )
----
1

skipif mysql # not compatible
query I rowsort label-6806
SELECT COUNT ( 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT COUNT( 3 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6807
SELECT COUNT ( 3 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6808
SELECT + COUNT( * ), + 96 AS col2
----
1
96

skipif mysql # not compatible
query II rowsort label-6808
SELECT + COUNT ( * ), + 96 AS col2
----
1
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6809
SELECT DISTINCT CASE - CAST( - + 56 AS SIGNED ) WHEN + 74 THEN COALESCE ( + ( + 25 ), 99 ) * + 26 - 0 END + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT CASE - CAST ( - + 56 AS INTEGER ) WHEN + 74 THEN COALESCE ( + ( + 25 ), 99 ) * + 26 - 0 END + + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL + 68 * - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL + 68 * - COUNT ( * )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6811
SELECT ALL 13 + CAST( NULL AS DECIMAL ) + CAST( + 20 AS SIGNED ) * + + 94 * - NULLIF ( - - CASE COUNT( * ) WHEN 61 THEN NULL WHEN + 45 / + 29 * + + 76 + + 91 THEN + 26 END, - 95 ) * 64 * - - 68 + 80 / + ( + 37 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL 13 + CAST ( NULL AS REAL ) + CAST ( + 20 AS INTEGER ) * + + 94 * - NULLIF ( - - CASE COUNT ( * ) WHEN 61 THEN NULL WHEN + 45 / + 29 * + + 76 + + 91 THEN + 26 END, - 95 ) * 64 * - - 68 + 80 / + ( + 37 ) AS col2
----
NULL

query I rowsort
SELECT + 19 * + + 20
----
380

query I rowsort
SELECT DISTINCT 31 * + 88 AS col1
----
2728

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT + + 3 DIV + - COALESCE ( 3, + 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-6814
SELECT + + 3 / + - COALESCE ( 3, + 40 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT - - 97 DIV - + 19
----
-5

skipif mysql # not compatible
query I rowsort label-6815
SELECT - - 97 / - + 19
----
-5

query I rowsort
SELECT + 49 * + 89 - - 67
----
4428

query I rowsort
SELECT - NULLIF ( + 2, + 34 * + 33 * + 87 / + 19 ) col1
----
-2

query I rowsort
SELECT - + 23 * + 62
----
-1426

query II rowsort
SELECT DISTINCT + 64 * 13 AS col2, 34
----
832
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6820
SELECT ALL CAST( NULL AS SIGNED ) * 23 * - 86 * + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL CAST ( NULL AS INTEGER ) * 23 * - 86 * + - 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL ( - + COUNT( ALL + ( - + 82 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL ( - + COUNT ( ALL + ( - + 82 ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6822
SELECT - 29 AS col2, COUNT( * ) AS col2
----
-29
1

skipif mysql # not compatible
query II rowsort label-6822
SELECT - 29 AS col2, COUNT ( * ) AS col2
----
-29
1

query II rowsort
SELECT DISTINCT + 73 * + 23 col0, - 4
----
1679
-4

query II rowsort
SELECT DISTINCT + CASE - 0 WHEN + 4 THEN 56 ELSE NULL END, - 49 AS col1
----
NULL
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL COUNT( DISTINCT + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL COUNT ( DISTINCT + 19 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ( + - COALESCE ( + + 1, COALESCE ( - 0, 32 ) + + COUNT( * ) - + - MAX( ALL + 56 ) + 26 + + - 63 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6826
SELECT ( + - COALESCE ( + + 1, COALESCE ( - 0, 32 ) + + COUNT ( * ) - + - MAX ( ALL + 56 ) + 26 + + - 63 ) ) AS col1
----
-1

query I rowsort
SELECT - - 96 * + 62 + - 42
----
5910

query II rowsort
SELECT ALL + 5 col0, 11 AS col1
----
5
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6829
SELECT + + NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) * + - 90 + - 27 ) + - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6829
SELECT + + NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) * + - 90 + - 27 ) + - 89 AS col1
----
NULL

query I rowsort
SELECT - + 94 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT - COUNT( * ) + - + 59 + 52 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6831
SELECT - COUNT ( * ) + - + 59 + 52 AS col0
----
-8

query II rowsort
SELECT DISTINCT + 81, 80 AS col1
----
81
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL + 41 * 8 * + 51 * + - MIN( DISTINCT 56 )
----
-936768

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL + 41 * 8 * + 51 * + - MIN ( DISTINCT 56 )
----
-936768

onlyif mysql # aggregate syntax: 
query II rowsort label-6834
SELECT DISTINCT - ( + 74 ), COUNT( * ) * 64 + - ( + 25 ) + 51 AS col0
----
-74
90

skipif mysql # not compatible
query II rowsort label-6834
SELECT DISTINCT - ( + 74 ), COUNT ( * ) * 64 + - ( + 25 ) + 51 AS col0
----
-74
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6835
SELECT ALL - COUNT( * ) + - 78 + COUNT( * ) + COUNT( * ) * COUNT( - 98 ) DIV + 98 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL - COUNT ( * ) + - 78 + COUNT ( * ) + COUNT ( * ) * COUNT ( - 98 ) / + 98 AS col2
----
-78

query I rowsort
SELECT DISTINCT + 62 col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6837
SELECT ALL + 34 * 87 DIV + 89
----
33

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + 34 * 87 / + 89
----
33

query I rowsort
SELECT - 21 * + + 88 AS col0
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT DISTINCT COUNT( DISTINCT + 17 ) * - + 65 + - - 48 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT COUNT ( DISTINCT + 17 ) * - + 65 + - - 48 AS col1
----
-17

query I rowsort
SELECT ( 73 )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6841
SELECT - 9 - - 48 - + - 93 - - - CAST( NULL AS SIGNED ) * + + 91 * NULLIF ( - + 23, + CASE - MAX( + 72 ) WHEN - - 50 * - NULLIF ( 41, + ( + 53 ) * - - 88 * 36 * NULLIF ( + 28, - 3 - - 1 * 19 * 58 ) ) + + 22 + - 48 THEN NULL WHEN + 16 / + ( 9 ) * 29 THEN COUNT( * ) WHEN 95 THEN CAST( NULL AS SIGNED ) ELSE NULL END ) + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT - 9 - - 48 - + - 93 - - - CAST ( NULL AS INTEGER ) * + + 91 * NULLIF ( - + 23, + CASE - MAX ( + 72 ) WHEN - - 50 * - NULLIF ( 41, + ( + 53 ) * - - 88 * 36 * NULLIF ( + 28, - 3 - - 1 * 19 * 58 ) ) + + 22 + - 48 THEN NULL WHEN + 16 / + ( 9 ) * 29 THEN COUNT ( * ) WHEN 95 THEN CAST ( NULL AS INTEGER ) ELSE NULL END ) + + 85
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6842
SELECT ( + 59 ) col2, 90 * - 67 + + MIN( + - 36 )
----
59
-6066

skipif mysql # not compatible
query II rowsort label-6842
SELECT ( + 59 ) col2, 90 * - 67 + + MIN ( + - 36 )
----
59
-6066

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT + SUM( + - 63 ) * - MIN( + - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-6843
SELECT + SUM ( + - 63 ) * - MIN ( + - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ALL 23 * + - COUNT( * ) + - 32
----
-55

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL 23 * + - COUNT ( * ) + - 32
----
-55

query I rowsort
SELECT ALL 32 * + 99 * - ( 87 )
----
-275616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6846
SELECT COALESCE ( CAST( 7 AS SIGNED ), - 6 - - COUNT( * ) + + 45 + - - 14 + + 57 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6846
SELECT COALESCE ( CAST ( 7 AS INTEGER ), - 6 - - COUNT ( * ) + + 45 + - - 14 + + 57 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT DISTINCT - COUNT( * ) * + - 39 + - NULLIF ( + - 57, ( + - COUNT( * ) ) ) * + 62 - + + 24 + - COALESCE ( 87, 82 + - - 31 - 40 * + 44, - 78 ) * - - ( - + 44 ) + - - 57 + - 61 * 7 AS col2
----
7007

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT - COUNT ( * ) * + - 39 + - NULLIF ( + - 57, ( + - COUNT ( * ) ) ) * + 62 - + + 24 + - COALESCE ( 87, 82 + - - 31 - 40 * + 44, - 78 ) * - - ( - + 44 ) + - - 57 + - 61 * 7 AS col2
----
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT ALL 25 * - - 55 * - NULLIF ( 89, 27 + - - COUNT( * ) ) AS col2
----
-122375

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL 25 * - - 55 * - NULLIF ( 89, 27 + - - COUNT ( * ) ) AS col2
----
-122375

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT + COUNT( * ) - - + COUNT( * ) AS col1, 21 * 51 AS col2
----
2
1071

skipif mysql # not compatible
query II rowsort label-6849
SELECT + COUNT ( * ) - - + COUNT ( * ) AS col1, 21 * 51 AS col2
----
2
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT ALL - 89 * - + CASE 77 WHEN - + 98 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + MIN( + 93 ) ELSE NULL END * - ( 45 ) + + + 98 - + 26 * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL - 89 * - + CASE 77 WHEN - + 98 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + MIN ( + 93 ) ELSE NULL END * - ( 45 ) + + + 98 - + 26 * + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT NULLIF ( 7, + + 4 + 69 + + COUNT( + - 38 ) * - + 64 * - COUNT( * ) - - 81 )
----
7

skipif mysql # not compatible
query I rowsort label-6851
SELECT NULLIF ( 7, + + 4 + 69 + + COUNT ( + - 38 ) * - + 64 * - COUNT ( * ) - - 81 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6852
SELECT + COALESCE ( + 94, - 37 * + 73 - - 98 + - + MAX( + CAST( + + 44 AS SIGNED ) ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-6852
SELECT + COALESCE ( + 94, - 37 * + 73 - - 98 + - + MAX ( + CAST ( + + 44 AS INTEGER ) ) ) AS col2
----
94

query I rowsort
SELECT ALL 90 * 60 AS col0
----
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT - SUM( ALL 87 ) + 50 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-6854
SELECT - SUM ( ALL 87 ) + 50 AS col1
----
-37

query I rowsort
SELECT + NULLIF ( - 92, 43 * 53 + 59 ) * + 96 AS col2
----
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT COALESCE ( + 69, + - 76 + - 93 + 36 ) * - - 41 + + NULLIF ( 34, - 25 * - 4 + - NULLIF ( - + ( 89 ), - MAX( DISTINCT + 86 ) ) + 33 * + 91 ) + + 13 * + 11 AS col1
----
3006

skipif mysql # not compatible
query I rowsort label-6856
SELECT COALESCE ( + 69, + - 76 + - 93 + 36 ) * - - 41 + + NULLIF ( 34, - 25 * - 4 + - NULLIF ( - + ( 89 ), - MAX ( DISTINCT + 86 ) ) + 33 * + 91 ) + + 13 * + 11 AS col1
----
3006

query I rowsort
SELECT + 77 - + 13
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT + - 97 * - - 41 + + + NULLIF ( - 15, + - ( + 46 ) - - - 58 ) + 79 + ( + + COUNT( * ) ) AS col0
----
-3912

skipif mysql # not compatible
query I rowsort label-6858
SELECT + - 97 * - - 41 + + + NULLIF ( - 15, + - ( + 46 ) - - - 58 ) + 79 + ( + + COUNT ( * ) ) AS col0
----
-3912

query I rowsort
SELECT + 47 * + 53
----
2491

query I rowsort
SELECT + 52 + - 16 * 55 - 76 + + - 84 + - - 54 - - 66 AS col1
----
-868

query I rowsort
SELECT DISTINCT - 96 * - 93 + + 64 - - + 43
----
9035

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT - NULLIF ( + 31, - 30 * - - COUNT( * ) + - 43 ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-6862
SELECT - NULLIF ( + 31, - 30 * - - COUNT ( * ) + - 43 ) col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL - COUNT( * ) * - + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL - COUNT ( * ) * - + 23 AS col0
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-6864
SELECT + + 25 DIV 93 * - + 57 AS col1, - 26 AS col0
----
0
-26

skipif mysql # not compatible
query II rowsort label-6864
SELECT + + 25 / 93 * - + 57 AS col1, - 26 AS col0
----
0
-26

query I rowsort
SELECT + 50 + + 42 - - 44 AS col1
----
136

query I rowsort
SELECT ALL 94 * 20
----
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT + 63 * COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6867
SELECT + 63 * COUNT ( * ) AS col0
----
63

query I rowsort
SELECT ALL 46 + + 24 + + - 5 * - 52
----
330

query I rowsort
SELECT ALL 51 + + 87 - + - 8 AS col0
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-6870
SELECT DISTINCT - MIN( - - 79 ) AS col2, - 62 - + - 39 * + 31 col1
----
-79
1147

skipif mysql # not compatible
query II rowsort label-6870
SELECT DISTINCT - MIN ( - - 79 ) AS col2, - 62 - + - 39 * + 31 col1
----
-79
1147

onlyif mysql # aggregate syntax: 
query II rowsort label-6871
SELECT DISTINCT + 67 + + 58, + COUNT( * ) + 60 AS col1
----
125
61

skipif mysql # not compatible
query II rowsort label-6871
SELECT DISTINCT + 67 + + 58, + COUNT ( * ) + 60 AS col1
----
125
61

query I rowsort
SELECT - 80 * + + 74
----
-5920

query II rowsort
SELECT 77 AS col0, - 33
----
77
-33

query I rowsort
SELECT + 9 + + 45 AS col0
----
54

query I rowsort
SELECT + 86 + - 97 AS col0
----
-11

query I rowsort
SELECT - 91 - + 98
----
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6877
SELECT ALL + 3 * - MIN( ALL - 83 ), - MAX( 60 ) DIV + 56 AS col2
----
249
-1

skipif mysql # not compatible
query II rowsort label-6877
SELECT ALL + 3 * - MIN ( ALL - 83 ), - MAX ( 60 ) / + 56 AS col2
----
249
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT - COUNT( * ) * + 26 * 64 * - COUNT( * ) + + 4
----
1668

skipif mysql # not compatible
query I rowsort label-6878
SELECT - COUNT ( * ) * + 26 * 64 * - COUNT ( * ) + + 4
----
1668

query II rowsort
SELECT - ( + 50 ) + + + 54 AS col0, - 50 col1
----
4
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6880
SELECT SUM( ALL + - 83 ) * - 88 * + - 75 + - CAST( - - 9 AS SIGNED ) * 8 + - 31 + 95
----
-547808

skipif mysql # not compatible
query I rowsort label-6880
SELECT SUM ( ALL + - 83 ) * - 88 * + - 75 + - CAST ( - - 9 AS INTEGER ) * 8 + - 31 + 95
----
-547808

query I rowsort
SELECT DISTINCT + 86 * 41 AS col0
----
3526

query I rowsort
SELECT 44 * - - 11 AS col0
----
484

onlyif mysql # DIV for integer division: 
query I rowsort label-6883
SELECT 51 DIV - + 63 * + + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6883
SELECT 51 / - + 63 * + + 91 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT 86 DIV - 61 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6884
SELECT 86 / - 61 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT DISTINCT - 50 DIV - - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT - 50 / - - 65 AS col0
----
0

query I rowsort
SELECT 70 * 42 AS col2
----
2940

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT 5 + + + 45 - + + 86 + 39 + COUNT( * ) - + 79 * - NULLIF ( - 50, + - MAX( DISTINCT - + 18 ) ) * MIN( + + 21 ) + ( - 23 )
----
-82969

skipif mysql # not compatible
query I rowsort label-6887
SELECT 5 + + + 45 - + + 86 + 39 + COUNT ( * ) - + 79 * - NULLIF ( - 50, + - MAX ( DISTINCT - + 18 ) ) * MIN ( + + 21 ) + ( - 23 )
----
-82969

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6888
SELECT 76 DIV + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-6888
SELECT 76 / + + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6889
SELECT DISTINCT - 48 DIV + 62 + 94 + + 76 + + - COUNT( * ) + - + 18 * MAX( DISTINCT + 17 ) * - 79 + - + MAX( DISTINCT 57 ) + + COUNT( * ) AS col0
----
24287

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT - 48 / + 62 + 94 + + 76 + + - COUNT ( * ) + - + 18 * MAX ( DISTINCT + 17 ) * - 79 + - + MAX ( DISTINCT 57 ) + + COUNT ( * ) AS col0
----
24287

query I rowsort
SELECT DISTINCT + + 87 * + 30 AS col2
----
2610

onlyif mysql # aggregate syntax: 
query II rowsort label-6891
SELECT COUNT( * ), + ( + 77 ) AS col2
----
1
77

skipif mysql # not compatible
query II rowsort label-6891
SELECT COUNT ( * ), + ( + 77 ) AS col2
----
1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT DISTINCT ( COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT ( COUNT ( * ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT ALL - SUM( ALL + CASE + 74 WHEN - - 88 * - 81 * 66 THEN NULL WHEN - 6 THEN NULL WHEN + + 97 THEN NULL ELSE 88 * + 68 END )
----
-5984

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL - SUM ( ALL + CASE + 74 WHEN - - 88 * - 81 * 66 THEN NULL WHEN - 6 THEN NULL WHEN + + 97 THEN NULL ELSE 88 * + 68 END )
----
-5984

query I rowsort
SELECT ALL - 4 + 93
----
89

query II rowsort
SELECT 60, + 58 + - 9 AS col2
----
60
49

query II rowsort
SELECT ALL 10 AS col0, 38 AS col2
----
10
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT - 84 + + - 42 - - COALESCE ( SUM( DISTINCT - 31 ), - 2 ) * + 21 + ( - - 60 ) + + 28
----
-689

skipif mysql # not compatible
query I rowsort label-6897
SELECT - 84 + + - 42 - - COALESCE ( SUM ( DISTINCT - 31 ), - 2 ) * + 21 + ( - - 60 ) + + 28
----
-689

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT COUNT( + - 87 ) - + 31 + - - 71 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6898
SELECT COUNT ( + - 87 ) - + 31 + - - 71 AS col0
----
41

query I rowsort
SELECT ALL ( + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT ALL MIN( 86 ) + - 17 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL MIN ( 86 ) + - 17 AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6901
SELECT 16 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-6901
SELECT 16 / - 43
----
0

query I rowsort
SELECT DISTINCT 21 * + - 75
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL 56 * - MIN( DISTINCT + 85 ) AS col2
----
-4760

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL 56 * - MIN ( DISTINCT + 85 ) AS col2
----
-4760

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT DISTINCT 15 * SUM( ALL + 33 ) AS col2
----
495

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT 15 * SUM ( ALL + 33 ) AS col2
----
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6905
SELECT ALL ( - 94 ) - + 50 + - 38 * ( 96 ) DIV 87 * - ( - - MAX( DISTINCT + 47 ) ) * - + 52
----
-100348

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL ( - 94 ) - + 50 + - 38 * ( 96 ) / 87 * - ( - - MAX ( DISTINCT + 47 ) ) * - + 52
----
-100348

query I rowsort
SELECT ALL 9 - + 57 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6907
SELECT DISTINCT + 81 - + COUNT( * ) * + 60 * + COUNT( * ) AS col2, - 58 col1
----
21
-58

skipif mysql # not compatible
query II rowsort label-6907
SELECT DISTINCT + 81 - + COUNT ( * ) * + 60 * + COUNT ( * ) AS col2, - 58 col1
----
21
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT ( + + 85 ) - + SUM( DISTINCT - + 65 )
----
150

skipif mysql # not compatible
query I rowsort label-6908
SELECT ( + + 85 ) - + SUM ( DISTINCT - + 65 )
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6909
SELECT NULLIF ( + 40, + 62 + - CAST( + + 11 AS SIGNED ) + 90 + 23 + 84 ) * - + COUNT( * ) + - 41 + + 9 * - + ( + 45 ) AS col1
----
-486

skipif mysql # not compatible
query I rowsort label-6909
SELECT NULLIF ( + 40, + 62 + - CAST ( + + 11 AS INTEGER ) + 90 + 23 + 84 ) * - + COUNT ( * ) + - 41 + + 9 * - + ( + 45 ) AS col1
----
-486

query I rowsort
SELECT ALL - 64 * + + 19
----
-1216

query I rowsort
SELECT DISTINCT - 55 * 33
----
-1815

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT + SUM( DISTINCT - 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-6912
SELECT + SUM ( DISTINCT - 94 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT ALL - 37 * + + COUNT( * ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL - 37 * + + COUNT ( * ) col1
----
-37

query I rowsort
SELECT 86 - + 22
----
64

query I rowsort
SELECT DISTINCT + - 34 + - + 92
----
-126

query I rowsort
SELECT ALL - 69 * - + 75 + + 71 AS col2
----
5246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6917
SELECT - 65 DIV + NULLIF ( + COUNT( * ), + 33 * + ( - - MAX( ALL + 39 ) ) + - COUNT( * ) * + COALESCE ( + 91, 7 * + + COUNT( * ) - - - 14, 39 * COALESCE ( - - 14, - COUNT( * ) * - COUNT( * ) DIV + - 64, + 5 ) * + 78 + - ( - 45 ) + CAST( - - 43 AS SIGNED ) + 98 + - 58 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-6917
SELECT - 65 / + NULLIF ( + COUNT ( * ), + 33 * + ( - - MAX ( ALL + 39 ) ) + - COUNT ( * ) * + COALESCE ( + 91, 7 * + + COUNT ( * ) - - - 14, 39 * COALESCE ( - - 14, - COUNT ( * ) * - COUNT ( * ) / + - 64, + 5 ) * + 78 + - ( - 45 ) + CAST ( - - 43 AS INTEGER ) + 98 + - 58 ) )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-6918
SELECT 13 - - 84, - COUNT( * ) - + 73 AS col1
----
97
-74

skipif mysql # not compatible
query II rowsort label-6918
SELECT 13 - - 84, - COUNT ( * ) - + 73 AS col1
----
97
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6919
SELECT ALL - COUNT( * ) DIV + - 31, - 86 AS col0
----
0
-86

skipif mysql # not compatible
query II rowsort label-6919
SELECT ALL - COUNT ( * ) / + - 31, - 86 AS col0
----
0
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6920
SELECT + + NULLIF ( 82, COALESCE ( - - CAST( + ( + 39 ) AS DECIMAL ), - 44 ) + - - 35 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6920
SELECT + + NULLIF ( 82, COALESCE ( - - CAST ( + ( + 39 ) AS REAL ), - 44 ) + - - 35 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT DISTINCT + COUNT( * ) + + - 77 * - 20 col0
----
1541

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT + COUNT ( * ) + + - 77 * - 20 col0
----
1541

onlyif mysql # DIV for integer division: 
query I rowsort label-6922
SELECT ALL - - 80 DIV 32 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL - - 80 / 32 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT DISTINCT + + 17 + - - COUNT( * ) * + - 16 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT + + 17 + - - COUNT ( * ) * + - 16 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT - 72 + - + 66 + - ( - 11 ) * COUNT( * ) AS col2
----
-127

skipif mysql # not compatible
query I rowsort label-6924
SELECT - 72 + - + 66 + - ( - 11 ) * COUNT ( * ) AS col2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT DISTINCT - - 67 + 33 - NULLIF ( ( 72 ), COALESCE ( + + COUNT( * ), + + COALESCE ( - 91, ( + 22 ) ), - - 94 ) )
----
28

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - - 67 + 33 - NULLIF ( ( 72 ), COALESCE ( + + COUNT ( * ), + + COALESCE ( - 91, ( + 22 ) ), - - 94 ) )
----
28

query I rowsort
SELECT - 39 * 8 AS col0
----
-312

onlyif mysql # DIV for integer division: 
query II rowsort label-6927
SELECT 66 AS col2, + ( + + 40 ) DIV 48 * + + 91 DIV 76
----
66
0

skipif mysql # not compatible
query II rowsort label-6927
SELECT 66 AS col2, + ( + + 40 ) / 48 * + + 91 / 76
----
66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT ALL SUM( DISTINCT - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL SUM ( DISTINCT - 99 )
----
-99

query I rowsort
SELECT DISTINCT 74 - - 57 AS col0
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6930
SELECT ALL 9 - COALESCE ( - + COALESCE ( - 34, - COUNT( * ) * - + 64, + + 45 ), - ( + COUNT( * ) ) DIV + - 87 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL 9 - COALESCE ( - + COALESCE ( - 34, - COUNT ( * ) * - + 64, + + 45 ), - ( + COUNT ( * ) ) / + - 87 ) col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6931
SELECT DISTINCT COALESCE ( - - COALESCE ( + 81, 18 * - 37 + + 80 + - 12 - - 0 + + 99 ), + 18 + 63 + - 45 DIV + 37, + - COUNT( * ) * - + 23 + + 40, - + 98 * + 98 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT COALESCE ( - - COALESCE ( + 81, 18 * - 37 + + 80 + - 12 - - 0 + + 99 ), + 18 + 63 + - 45 / + 37, + - COUNT ( * ) * - + 23 + + 40, - + 98 * + 98 ) AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6932
SELECT + 91 DIV - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-6932
SELECT + 91 / - COUNT ( * )
----
-91

query I rowsort
SELECT ALL 3 * - 64 AS col2
----
-192

query I rowsort
SELECT + 8 + + 15 AS col2
----
23

query I rowsort
SELECT ALL 73 - + 66
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT - 55 DIV 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6936
SELECT - 55 / 51 AS col2
----
-1

query I rowsort
SELECT ALL 67 * 30
----
2010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6938
SELECT + AVG ( ALL - 26 ) + - SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT + AVG ( ALL - 26 ) + - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL 43 * + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL 43 * + COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6940
SELECT + COUNT( * ) AS col2, 23 col0
----
1
23

skipif mysql # not compatible
query II rowsort label-6940
SELECT + COUNT ( * ) AS col2, 23 col0
----
1
23

query I rowsort
SELECT ALL 60 * - 13 AS col2
----
-780

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT + COALESCE ( 73, 9 * + 37 * + 94 * 24 ) DIV - 50 + - + 67 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6942
SELECT + COALESCE ( 73, 9 * + 37 * + 94 * 24 ) / - 50 + - + 67 AS col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6943
SELECT + COUNT( * ) DIV + + 84 + + 8
----
8

skipif mysql # not compatible
query I rowsort label-6943
SELECT + COUNT ( * ) / + + 84 + + 8
----
8

query I rowsort
SELECT ALL 48 * 77 AS col1
----
3696

query I rowsort
SELECT DISTINCT 72 * - 30 + - 23 AS col1
----
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT + COUNT( * ) + - 93 - + 23 + + 19 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-6946
SELECT + COUNT ( * ) + - 93 - + 23 + + 19 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + MIN( DISTINCT 8 )
----
8

skipif mysql # not compatible
query I rowsort label-6947
SELECT + MIN ( DISTINCT 8 )
----
8

query I rowsort
SELECT + - 92 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-6949
SELECT + + COUNT( * ) AS col1, - 0 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-6949
SELECT + + COUNT ( * ) AS col1, - 0 AS col0
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6950
SELECT ALL + CASE + - 83 WHEN 77 * + 79 THEN - 25 * - 98 * + - CASE - AVG ( 44 ) WHEN - + 39 - + MAX( DISTINCT 42 ) THEN - + 77 - - 7 END / CAST( - + SUM( ALL 84 ) AS SIGNED ) * - COUNT( * ) + 77 + - 93 + + - 29 + + 71 * + - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL + CASE + - 83 WHEN 77 * + 79 THEN - 25 * - 98 * + - CASE - AVG ( 44 ) WHEN - + 39 - + MAX ( DISTINCT 42 ) THEN - + 77 - - 7 END / CAST ( - + SUM ( ALL 84 ) AS INTEGER ) * - COUNT ( * ) + 77 + - 93 + + - 29 + + 71 * + - 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6951
SELECT - + 54 * - - 56 * - + 26 * 68 + + - 88, 62 * - + CASE - 4 WHEN + COUNT( * ) + 23 THEN + 2 WHEN - + 96 THEN - - 88 END col1
----
5346344
NULL

skipif mysql # not compatible
query II rowsort label-6951
SELECT - + 54 * - - 56 * - + 26 * 68 + + - 88, 62 * - + CASE - 4 WHEN + COUNT ( * ) + 23 THEN + 2 WHEN - + 96 THEN - - 88 END col1
----
5346344
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * 45 + + 54 + + 35 + 8 + - - 69 * + 95 / - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * 45 + + 54 + + 35 + 8 + - - 69 * + 95 / - 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6953
SELECT DISTINCT - 24 * - - 0 DIV COUNT( - + 66 ) * + + ( - COALESCE ( 44, + ( - 16 ), 32 DIV - 25 ) ) + - 42 - 97
----
-139

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT - 24 * - - 0 / COUNT ( - + 66 ) * + + ( - COALESCE ( 44, + ( - 16 ), 32 / - 25 ) ) + - 42 - 97
----
-139

query II rowsort
SELECT DISTINCT + 97 * - + 44 + - 30 + + 55 * - 62 AS col0, 78 + - 55 AS col0
----
-7708
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6955
SELECT - NULLIF ( + + 79, + + CAST( NULL AS SIGNED ) ) * - 45 + + + 99 AS col1
----
3654

skipif mysql # not compatible
query I rowsort label-6955
SELECT - NULLIF ( + + 79, + + CAST ( NULL AS INTEGER ) ) * - 45 + + + 99 AS col1
----
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT DISTINCT - MAX( DISTINCT + 34 ) * - 12 AS col0
----
408

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT - MAX ( DISTINCT + 34 ) * - 12 AS col0
----
408

query I rowsort
SELECT DISTINCT + 63 * 25 AS col0
----
1575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6958
SELECT - - MAX( DISTINCT + 32 ) * - + 49 - + - CAST( - 43 AS SIGNED ) AS col0
----
-1611

skipif mysql # not compatible
query I rowsort label-6958
SELECT - - MAX ( DISTINCT + 32 ) * - + 49 - + - CAST ( - 43 AS INTEGER ) AS col0
----
-1611

query I rowsort
SELECT - + 36 * - 23
----
828

query I rowsort
SELECT ALL + 44 - + 0 + + 65 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT - COUNT( * ) * + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6961
SELECT - COUNT ( * ) * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT ALL COUNT( + ( 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL COUNT ( + ( 37 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT - 15 * + 63 * - CAST( - 1 AS SIGNED )
----
-945

skipif mysql # not compatible
query I rowsort label-6963
SELECT - 15 * + 63 * - CAST ( - 1 AS INTEGER )
----
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT ALL COALESCE ( + COUNT( * ), + 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL COALESCE ( + COUNT ( * ), + 44 ) AS col0
----
1

query I rowsort
SELECT ALL - 72 * + 96 AS col1
----
-6912

query I rowsort
SELECT - 33 + 71 - - 85 + - 42 * + 49 AS col0
----
-1935

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT DISTINCT COALESCE ( + + 74, + + 66 + - - MAX( 31 ) + - 28 + ( 81 ) * 35 + + 31 * + 67 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT COALESCE ( + + 74, + + 66 + - - MAX ( 31 ) + - 28 + ( 81 ) * 35 + + 31 * + 67 ) AS col1
----
74

query I rowsort
SELECT ALL - 81 * - ( 80 )
----
6480

query I rowsort
SELECT - 79 * ( - - 35 )
----
-2765

query II rowsort
SELECT 14, + 57 AS col1
----
14
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT - COUNT( ALL - + 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-6971
SELECT - COUNT ( ALL - + 40 )
----
-1

query I rowsort
SELECT ALL ( + + 55 ) AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6973
SELECT DISTINCT - 54 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT - 54 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT - COALESCE ( CASE - + COUNT( * ) WHEN + - 2 THEN NULL WHEN + 80 - + + 11 THEN - 4 * + 14 + + 66 END, + ( + CASE 62 WHEN 8 + + 25 - 66 + - COUNT( * ) THEN + 2 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT - COALESCE ( CASE - + COUNT ( * ) WHEN + - 2 THEN NULL WHEN + 80 - + + 11 THEN - 4 * + 14 + + 66 END, + ( + CASE 62 WHEN 8 + + 25 - 66 + - COUNT ( * ) THEN + 2 END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT - COUNT( * ) * - 76 * + + ( - + 90 ) * - ( - - 72 ) * 67 AS col0
----
32996160

skipif mysql # not compatible
query I rowsort label-6975
SELECT - COUNT ( * ) * - 76 * + + ( - + 90 ) * - ( - - 72 ) * 67 AS col0
----
32996160

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT - COUNT( + 86 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6976
SELECT - COUNT ( + 86 ) AS col0
----
-1

query I rowsort
SELECT ALL ( 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL COUNT( * ) + - ( 12 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL COUNT ( * ) + - ( 12 ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6979
SELECT ALL + 37 + ( 50 ) * - 84 - - COUNT( - 1 ) - + + 57 + - 69 - + + CASE + - 92 WHEN - COUNT( * ) * + 6 - + - 97 THEN NULL WHEN 97 + - + CAST( - COALESCE ( - - 39, CAST( + - 12 AS DECIMAL ) * - 62 + ( + - 62 ) ) AS SIGNED ) THEN NULL ELSE - - 16 + - 28 * 55 * - ( + 52 ) END + - - 86 + + + 32 * 45 * 96 * 92 col0
----
12633782

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL + 37 + ( 50 ) * - 84 - - COUNT ( - 1 ) - + + 57 + - 69 - + + CASE + - 92 WHEN - COUNT ( * ) * + 6 - + - 97 THEN NULL WHEN 97 + - + CAST ( - COALESCE ( - - 39, CAST ( + - 12 AS REAL ) * - 62 + ( + - 62 ) ) AS INTEGER ) THEN NULL ELSE - - 16 + - 28 * 55 * - ( + 52 ) END + - - 86 + + + 32 * 45 * 96 * 92 col0
----
12633782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6980
SELECT CAST( NULL AS SIGNED ) AS col2, 5 AS col0
----
NULL
5

skipif mysql # not compatible
query II rowsort label-6980
SELECT CAST ( NULL AS INTEGER ) AS col2, 5 AS col0
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT + NULLIF ( + COUNT( * ), + 83 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6981
SELECT + NULLIF ( + COUNT ( * ), + 83 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6982
SELECT ALL 74 / 4 + - MAX( - - 10 ) + - CAST( NULL AS DECIMAL ) + - 85 - 15 + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL 74 / 4 + - MAX ( - - 10 ) + - CAST ( NULL AS REAL ) + - 85 - 15 + 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6983
SELECT DISTINCT 17 * - 40 DIV + + COUNT( * ) + + COUNT( * ) + + - 13 + COUNT( * ) * + ( - 5 ) AS col2
----
-697

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT 17 * - 40 / + + COUNT ( * ) + + COUNT ( * ) + + - 13 + COUNT ( * ) * + ( - 5 ) AS col2
----
-697

query I rowsort
SELECT NULLIF ( + 40, - 61 * - 49 ) col0
----
40

query I rowsort
SELECT + 14 * + 69 + - 11 col2
----
955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6986
SELECT ALL + 42 AS col2, - 77 * - CAST( NULL AS SIGNED ) + + 80 + - COUNT( * )
----
42
NULL

skipif mysql # not compatible
query II rowsort label-6986
SELECT ALL + 42 AS col2, - 77 * - CAST ( NULL AS INTEGER ) + + 80 + - COUNT ( * )
----
42
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6987
SELECT ALL CAST( NULL AS SIGNED ) * + MIN( - - 88 ) - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL CAST ( NULL AS INTEGER ) * + MIN ( - - 88 ) - 56 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6988
SELECT - - 64 * - ( - 79 ) * + MAX( + + 34 ) - + - 52 + + + 75 * + COALESCE ( + - 79, - 35 ) + 71 DIV + COUNT( * ) + + + COUNT( * ) * - + CAST( - - CASE COUNT( * ) WHEN + ( - CAST( NULL AS SIGNED ) ) * + 86 * - 48 THEN 7 * - 55 * + 29 ELSE 13 END AS SIGNED ) * - 74 AS col2
----
167064

skipif mysql # not compatible
query I rowsort label-6988
SELECT - - 64 * - ( - 79 ) * + MAX ( + + 34 ) - + - 52 + + + 75 * + COALESCE ( + - 79, - 35 ) + 71 / + COUNT ( * ) + + + COUNT ( * ) * - + CAST ( - - CASE COUNT ( * ) WHEN + ( - CAST ( NULL AS INTEGER ) ) * + 86 * - 48 THEN 7 * - 55 * + 29 ELSE 13 END AS INTEGER ) * - 74 AS col2
----
167064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6989
SELECT - COUNT( * ) * + 16 + 49 DIV 78 * + MAX( - ( - 59 ) ) + - + 3 * - 41 * 71 * + 86 AS col0
----
751022

skipif mysql # not compatible
query I rowsort label-6989
SELECT - COUNT ( * ) * + 16 + 49 / 78 * + MAX ( - ( - 59 ) ) + - + 3 * - 41 * 71 * + 86 AS col0
----
751022

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT ALL + 99 * + AVG ( 27 ) + + 90 - 46 * - CAST( NULL AS SIGNED ) + + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL + 99 * + AVG ( 27 ) + + 90 - 46 * - CAST ( NULL AS INTEGER ) + + + 49
----
NULL

query I rowsort
SELECT + - 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-6992
SELECT + 51 col0, MIN( DISTINCT 57 )
----
51
57

skipif mysql # not compatible
query II rowsort label-6992
SELECT + 51 col0, MIN ( DISTINCT 57 )
----
51
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT - 41 * COUNT( * ) + - 81 + - 92 AS col1
----
-214

skipif mysql # not compatible
query I rowsort label-6993
SELECT - 41 * COUNT ( * ) + - 81 + - 92 AS col1
----
-214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6994
SELECT + 34 + - 60 + COUNT( * ) DIV - ( - 92 )
----
-26

skipif mysql # not compatible
query I rowsort label-6994
SELECT + 34 + - 60 + COUNT ( * ) / - ( - 92 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL 37 * COUNT( * ) - + 64 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL 37 * COUNT ( * ) - + 64 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6996
SELECT + SUM( CAST( - 47 AS SIGNED ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6996
SELECT + SUM ( CAST ( - 47 AS INTEGER ) ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT + COUNT( * ) + 27 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6997
SELECT + COUNT ( * ) + 27 AS col0
----
28

query II rowsort
SELECT ALL + 40 * - 87 AS col2, 95
----
-3480
95

query I rowsort
SELECT DISTINCT ( - ( + 86 ) ) * - - 40 - + 6 AS col0
----
-3446

query II rowsort
SELECT ALL 74 * + 58, 44 AS col1
----
4292
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7001
SELECT ( - COUNT( * ) ) DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-7001
SELECT ( - COUNT ( * ) ) / - 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7002
SELECT 80 * + + CAST( + - COUNT( + + 30 ) AS SIGNED ) * - + CASE - NULLIF ( + 81, + - 54 ) WHEN + 54 THEN NULL WHEN - - COUNT( * ) THEN - CAST( NULL AS SIGNED ) * - 62 WHEN + 90 THEN - 62 ELSE NULL END * - + COUNT( * ) * + + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7002
SELECT 80 * + + CAST ( + - COUNT ( + + 30 ) AS INTEGER ) * - + CASE - NULLIF ( + 81, + - 54 ) WHEN + 54 THEN NULL WHEN - - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) * - 62 WHEN + 90 THEN - 62 ELSE NULL END * - + COUNT ( * ) * + + 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT SUM( ( - 37 ) ) + - 21 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7003
SELECT SUM ( ( - 37 ) ) + - 21 AS col2
----
-58

query I rowsort
SELECT 99 + - 58 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7005
SELECT ALL + 5 + + ( + 85 ) - - CASE WHEN NOT ( NULL ) BETWEEN 24 AND + + CAST( NULL AS SIGNED ) THEN COUNT( + - 60 ) END * + - 53 * + 84 + - - CAST( NULL AS SIGNED ) + AVG ( - 57 ) - + COUNT( * ) + + - 92 - - 88 / - + 74 * - + 91 * - ( + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL + 5 + + ( + 85 ) - - CASE WHEN NOT ( NULL ) BETWEEN 24 AND + + CAST ( NULL AS INTEGER ) THEN COUNT ( + - 60 ) END * + - 53 * + 84 + - - CAST ( NULL AS INTEGER ) + AVG ( - 57 ) - + COUNT ( * ) + + - 92 - - 88 / - + 74 * - + 91 * - ( + 24 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT DISTINCT 90 + - - 81, - 60 * + + COUNT( * ) AS col0
----
171
-60

skipif mysql # not compatible
query II rowsort label-7006
SELECT DISTINCT 90 + - - 81, - 60 * + + COUNT ( * ) AS col0
----
171
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL + 78 + MAX( 65 )
----
143

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL + 78 + MAX ( 65 )
----
143

query I rowsort
SELECT 95 + - ( + - 41 ) + 1 AS col2
----
137

query II rowsort
SELECT ALL - 5 + + 47 col1, 60 + + 52
----
42
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7010
SELECT DISTINCT + 33 * - COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT + 33 * - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT 21 - 92 + + - COUNT( * ) + 96 col0
----
24

skipif mysql # not compatible
query I rowsort label-7011
SELECT 21 - 92 + + - COUNT ( * ) + 96 col0
----
24

query I rowsort
SELECT - ( + 37 ) + + 19 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL + 90 + - 91 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL + 90 + - 91 * COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT + 79 * 69 * + 78 + + + 33 AS col1
----
425211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7015
SELECT + - CASE + - 0 WHEN - COALESCE ( 62, COUNT( * ) ) * + 21 + CAST( NULL AS SIGNED ) * 23 * + 68 THEN + + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7015
SELECT + - CASE + - 0 WHEN - COALESCE ( 62, COUNT ( * ) ) * + 21 + CAST ( NULL AS INTEGER ) * 23 * + 68 THEN + + 23 END
----
NULL

query I rowsort
SELECT ALL + 46 * - 88 * + 78 AS col0
----
-315744

query I rowsort
SELECT DISTINCT - 88 + 81 + 10 + + 1 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT + COUNT( * ) + + 22 * - 15
----
-329

skipif mysql # not compatible
query I rowsort label-7018
SELECT + COUNT ( * ) + + 22 * - 15
----
-329

query I rowsort
SELECT + + 47 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7020
SELECT - - CAST( NULL AS SIGNED ) * 9 + ( + 98 ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7020
SELECT - - CAST ( NULL AS INTEGER ) * 9 + ( + 98 ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7021
SELECT DISTINCT + + 60 DIV - + 5 + + + COALESCE ( + 73, - 34 + + - 30, 84 ) AS col0, + 10 + - 14 + + 83 - - ( - + 51 ) AS col2
----
61
28

skipif mysql # not compatible
query II rowsort label-7021
SELECT DISTINCT + + 60 / - + 5 + + + COALESCE ( + 73, - 34 + + - 30, 84 ) AS col0, + 10 + - 14 + + 83 - - ( - + 51 ) AS col2
----
61
28

query I rowsort
SELECT + - 67 col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7023
SELECT ALL 35 * 28 DIV - 27 col2
----
-36

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL 35 * 28 / - 27 col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7024
SELECT ALL + 14 * + - COUNT( * ) + - 27 AS col0, - 71
----
-41
-71

skipif mysql # not compatible
query II rowsort label-7024
SELECT ALL + 14 * + - COUNT ( * ) + - 27 AS col0, - 71
----
-41
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT NULLIF ( 24, + - 95 + - COUNT( + + 25 ) ) * - 12
----
-288

skipif mysql # not compatible
query I rowsort label-7025
SELECT NULLIF ( 24, + - 95 + - COUNT ( + + 25 ) ) * - 12
----
-288

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7026
SELECT 47 * MAX( + + 45 ) * - - COALESCE ( + 96, 24 + + COUNT( * ) DIV + 27 * + 68 * + 38 * - 14 * - + 75 ), 2 AS col2
----
203040
2

skipif mysql # not compatible
query II rowsort label-7026
SELECT 47 * MAX ( + + 45 ) * - - COALESCE ( + 96, 24 + + COUNT ( * ) / + 27 * + 68 * + 38 * - 14 * - + 75 ), 2 AS col2
----
203040
2

query I rowsort
SELECT ALL - - 18 * 11 * + 9
----
1782

onlyif mysql # aggregate syntax: 
query II rowsort label-7028
SELECT 77, ( - - 15 ) - + ( 86 ) + - COUNT( * ) + + 28 * + COUNT( * ) AS col2
----
77
-44

skipif mysql # not compatible
query II rowsort label-7028
SELECT 77, ( - - 15 ) - + ( 86 ) + - COUNT ( * ) + + 28 * + COUNT ( * ) AS col2
----
77
-44

query II rowsort
SELECT + 20, - 75 AS col0
----
20
-75

query II rowsort
SELECT - 76 col0, - 64
----
-76
-64

query I rowsort
SELECT 64 - 11
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7032
SELECT 69, - 18 + COUNT( * ) + ( - 73 ) DIV - 66 + 9 AS col1
----
69
-7

skipif mysql # not compatible
query II rowsort label-7032
SELECT 69, - 18 + COUNT ( * ) + ( - 73 ) / - 66 + 9 AS col1
----
69
-7

query I rowsort
SELECT ALL NULLIF ( 2, 71 ) + - 0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT DISTINCT 49 + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT 49 + COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7035
SELECT - 52 AS col0, SUM( DISTINCT + 9 ) * 62 AS col1
----
-52
558

skipif mysql # not compatible
query II rowsort label-7035
SELECT - 52 AS col0, SUM ( DISTINCT + 9 ) * 62 AS col1
----
-52
558

query II rowsort
SELECT ALL 54 AS col1, - 34 * + 97 AS col0
----
54
-3298

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT DISTINCT 36 + MAX( - 14 ) + + 87 + ( + 38 ) * 40
----
1629

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT 36 + MAX ( - 14 ) + + 87 + ( + 38 ) * 40
----
1629

query II rowsort
SELECT 93 AS col2, + 77 AS col1
----
93
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT ALL - 86 DIV + - 81
----
1

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL - 86 / + - 81
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT COUNT( * ) * + + 52 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-7040
SELECT COUNT ( * ) * + + 52 AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7041
SELECT ALL - - 38 DIV + COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - - 38 / + COUNT ( * ) AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT 67 DIV + 10
----
6

skipif mysql # not compatible
query I rowsort label-7042
SELECT 67 / + 10
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7043
SELECT DISTINCT - COUNT( * ) - + 6 DIV - 28 - + - 89 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT - COUNT ( * ) - + 6 / - 28 - + - 89 AS col2
----
88

query I rowsort
SELECT - 49 * - 74 + - 39 * + 31
----
2417

query I rowsort
SELECT 15 * - + 53
----
-795

query I rowsort
SELECT 46 - + 87 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT - 67 * + COUNT( 77 ) - - ( - 14 )
----
-81

skipif mysql # not compatible
query I rowsort label-7047
SELECT - 67 * + COUNT ( 77 ) - - ( - 14 )
----
-81

query I rowsort
SELECT ALL + 34 * + 39 AS col0
----
1326

query I rowsort
SELECT - + 27 * - + 39 + + + 28 AS col1
----
1081

onlyif mysql # aggregate syntax: 
query II rowsort label-7050
SELECT COUNT( * ) * 9 * - 27, 0 * + ( + 21 ) AS col0
----
-243
0

skipif mysql # not compatible
query II rowsort label-7050
SELECT COUNT ( * ) * 9 * - 27, 0 * + ( + 21 ) AS col0
----
-243
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7051
SELECT + COUNT( * ) AS col1, - 77
----
1
-77

skipif mysql # not compatible
query II rowsort label-7051
SELECT + COUNT ( * ) AS col1, - 77
----
1
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7052
SELECT ALL 45 * + COUNT( * ) * CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) - + CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL 45 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) - + CAST ( NULL AS REAL ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT CAST( NULL AS SIGNED ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT CAST ( NULL AS INTEGER ) * 11
----
NULL

query II rowsort
SELECT ALL + + 56 col2, - 94 + 24 AS col1
----
56
-70

query I rowsort
SELECT - 25 - + 24 * + 47 col1
----
-1153

query I rowsort
SELECT - 48 * - 80 * + 75
----
288000

query I rowsort
SELECT - 92 + - ( + + 18 ) + 16 AS col1
----
-94

query I rowsort
SELECT ALL + ( 79 ) AS col2
----
79

query I rowsort
SELECT ALL 32 * - - ( - 15 ) * 85 + + 11
----
-40789

onlyif mysql # DIV for integer division: 
query I rowsort label-7060
SELECT - 74 DIV + - 14
----
5

skipif mysql # not compatible
query I rowsort label-7060
SELECT - 74 / + - 14
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7061
SELECT + 51 * - CAST( 59 AS SIGNED ) DIV - + 58 + + - 87 + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-7061
SELECT + 51 * - CAST ( 59 AS INTEGER ) / - + 58 + + - 87 + - COUNT ( * )
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7062
SELECT + CAST( NULL AS DECIMAL ) - - - 28 * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7062
SELECT + CAST ( NULL AS REAL ) - - - 28 * + 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT DISTINCT 3 + - - 23 * 66 DIV - 8 AS col2
----
-186

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT 3 + - - 23 * 66 / - 8 AS col2
----
-186

query I rowsort
SELECT - 9 + + 40 * + 99
----
3951

onlyif mysql # aggregate syntax: 
query II rowsort label-7065
SELECT ALL - 23 + 36, - ( 4 ) * - + COUNT( * ) + 16 AS col0
----
13
20

skipif mysql # not compatible
query II rowsort label-7065
SELECT ALL - 23 + 36, - ( 4 ) * - + COUNT ( * ) + 16 AS col0
----
13
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT MAX( ALL - 54 ) * + 67 AS col2
----
-3618

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT MAX ( ALL - 54 ) * + 67 AS col2
----
-3618

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7067
SELECT ALL CASE - ( 37 ) WHEN + 50 THEN + - 78 + - - ( - ( - + 34 ) ) + - 16 * + CAST( - COUNT( * ) AS DECIMAL ) WHEN - 60 * 79 / 46 THEN NULL END + + 56 * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL CASE - ( 37 ) WHEN + 50 THEN + - 78 + - - ( - ( - + 34 ) ) + - 16 * + CAST ( - COUNT ( * ) AS REAL ) WHEN - 60 * 79 / 46 THEN NULL END + + 56 * - 69
----
NULL

query I rowsort
SELECT ALL + 50 * - 99 col2
----
-4950

query I rowsort
SELECT ALL ( - ( + 13 ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT DISTINCT COUNT( * ) * - 72 col1
----
-72

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT COUNT ( * ) * - 72 col1
----
-72

query I rowsort
SELECT ALL 2 + + 31 * + 80
----
2482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7072
SELECT - CAST( + 36 AS SIGNED ) + 35
----
-1

skipif mysql # not compatible
query I rowsort label-7072
SELECT - CAST ( + 36 AS INTEGER ) + 35
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT - COUNT( - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-7073
SELECT - COUNT ( - 63 )
----
-1

query I rowsort
SELECT + 19 * + ( - 14 ) AS col2
----
-266

query I rowsort
SELECT + 36 + + - 0 * - + 18 - - - 41 + - + 39 * - ( + 55 ) AS col1
----
2140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7076
SELECT DISTINCT 1 - CASE - 62 WHEN COUNT( * ) THEN - CASE + + 79 WHEN - 20 THEN - 27 DIV AVG ( + 17 ) + - + 58 WHEN - + 39 THEN NULL WHEN + 72 + - - 52 THEN - MIN( - 71 ) * - 63 + + CAST( NULL AS SIGNED ) - + - 64 + 90 ELSE 24 END * - - 33 + 0 ELSE - 60 + + 70 + + + 5 - COALESCE ( + - 4, - - 55 ) END * + COUNT( * ) - + CAST( - - 24 AS SIGNED ) DIV - CASE - 92 WHEN 40 THEN - SUM( ( - 88 ) ) * 19 ELSE + 15 END AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT 1 - CASE - 62 WHEN COUNT ( * ) THEN - CASE + + 79 WHEN - 20 THEN - 27 / AVG ( + 17 ) + - + 58 WHEN - + 39 THEN NULL WHEN + 72 + - - 52 THEN - MIN ( - 71 ) * - 63 + + CAST ( NULL AS INTEGER ) - + - 64 + 90 ELSE 24 END * - - 33 + 0 ELSE - 60 + + 70 + + + 5 - COALESCE ( + - 4, - - 55 ) END * + COUNT ( * ) - + CAST ( - - 24 AS INTEGER ) / - CASE - 92 WHEN 40 THEN - SUM ( ( - 88 ) ) * 19 ELSE + 15 END AS col2
----
-17

query I rowsort
SELECT DISTINCT 65 * - - 11
----
715

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT DISTINCT COUNT( DISTINCT + + 48 ) - 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT COUNT ( DISTINCT + + 48 ) - 78 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT + ( - MIN( ALL - 7 ) ) + 65 - 47 AS col1, + 90 * - COUNT( * ) + - + 62
----
25
-152

skipif mysql # not compatible
query II rowsort label-7079
SELECT + ( - MIN ( ALL - 7 ) ) + 65 - 47 AS col1, + 90 * - COUNT ( * ) + - + 62
----
25
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7080
SELECT DISTINCT - SUM( DISTINCT + 61 ) * + - CAST( ( + - 89 ) AS SIGNED ) AS col2
----
-5429

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT - SUM ( DISTINCT + 61 ) * + - CAST ( ( + - 89 ) AS INTEGER ) AS col2
----
-5429

query II rowsort
SELECT + 51 * - 67 AS col1, - 35 + 88 col2
----
-3417
53

query I rowsort
SELECT - ( + 49 ) * - + 73 * + 96 + + 61 + 75 + - ( + 15 ) + 97 AS col0
----
343610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7083
SELECT DISTINCT - + SUM( ALL + 83 ) DIV 77 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT - + SUM ( ALL + 83 ) / 77 AS col2
----
-1

query I rowsort
SELECT ALL + - ( + + 32 )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7085
SELECT + 22 DIV + - ( + ( 22 ) ) + + + 34 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7085
SELECT + 22 / + - ( + ( 22 ) ) + + + 34 AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT ALL 84 DIV + ( + 4 )
----
21

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL 84 / + ( + 4 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7087
SELECT - COUNT( * ) + + 60, 30 AS col1
----
59
30

skipif mysql # not compatible
query II rowsort label-7087
SELECT - COUNT ( * ) + + 60, 30 AS col1
----
59
30

query I rowsort
SELECT DISTINCT + - 97 col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT + ( - COUNT( * ) ) * - 37 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7089
SELECT + ( - COUNT ( * ) ) * - 37 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7090
SELECT ALL - 7 * + 43 - + 99 * - 14 * NULLIF ( - COUNT( * ), - - CASE 86 WHEN + 47 * - 15 / - + 94 THEN + - 26 + - ( 35 ) ELSE NULL END / - 69 + + - ( - COUNT( * ) ) + + 13 ) + + 20 * + NULLIF ( + 70, CAST( + - ( + 39 ) AS SIGNED ) ) + + 22 * - + ( 58 )
----
-1563

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL - 7 * + 43 - + 99 * - 14 * NULLIF ( - COUNT ( * ), - - CASE 86 WHEN + 47 * - 15 / - + 94 THEN + - 26 + - ( 35 ) ELSE NULL END / - 69 + + - ( - COUNT ( * ) ) + + 13 ) + + 20 * + NULLIF ( + 70, CAST ( + - ( + 39 ) AS INTEGER ) ) + + 22 * - + ( 58 )
----
-1563

query I rowsort
SELECT + ( + 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT + MIN( DISTINCT - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-7092
SELECT + MIN ( DISTINCT - 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7093
SELECT + + 85 * - 83 + + 94 + - 43 * + 37 - - 34 + - - COUNT( * ) - + + 42 - - - COALESCE ( + 96, + + COUNT( * ), CASE - 27 WHEN - + CAST( - 93 AS SIGNED ) + 84 THEN NULL WHEN - NULLIF ( + + COALESCE ( 94, 98 * - 99 ), + 70 ) * 1 THEN 72 * - + 52 END DIV - 21 * + 20 - + + 42 ) * + - 38 * - 90 AS col2
----
-336879

skipif mysql # not compatible
query I rowsort label-7093
SELECT + + 85 * - 83 + + 94 + - 43 * + 37 - - 34 + - - COUNT ( * ) - + + 42 - - - COALESCE ( + 96, + + COUNT ( * ), CASE - 27 WHEN - + CAST ( - 93 AS INTEGER ) + 84 THEN NULL WHEN - NULLIF ( + + COALESCE ( 94, 98 * - 99 ), + 70 ) * 1 THEN 72 * - + 52 END / - 21 * + 20 - + + 42 ) * + - 38 * - 90 AS col2
----
-336879

query I rowsort
SELECT ( 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT DISTINCT 41 * - 89 + COUNT( * ) * + 2 AS col1
----
-3647

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT 41 * - 89 + COUNT ( * ) * + 2 AS col1
----
-3647

query I rowsort
SELECT DISTINCT + ( + 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT ALL + 38 * + 34 + - COUNT( * )
----
1291

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + 38 * + 34 + - COUNT ( * )
----
1291

query I rowsort
SELECT - 3 * - - 60 AS col0
----
-180

query I rowsort
SELECT ALL - 18 * 46 col1
----
-828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7100
SELECT DISTINCT + COALESCE ( + 56, + 74 + ( + CASE - 75 WHEN - + COUNT( * ) THEN + 45 WHEN 90 * + + CAST( NULL AS SIGNED ) + - ( + + 15 ) / ( 42 ) THEN NULL ELSE + - COUNT( * ) END ) + - - COUNT( DISTINCT 99 ) )
----
56

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT + COALESCE ( + 56, + 74 + ( + CASE - 75 WHEN - + COUNT ( * ) THEN + 45 WHEN 90 * + + CAST ( NULL AS INTEGER ) + - ( + + 15 ) / ( 42 ) THEN NULL ELSE + - COUNT ( * ) END ) + - - COUNT ( DISTINCT 99 ) )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7101
SELECT COALESCE ( + - COUNT( DISTINCT - 62 ), - 64 DIV + - 95 + - + 87 + - 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7101
SELECT COALESCE ( + - COUNT ( DISTINCT - 62 ), - 64 / + - 95 + - + 87 + - 79 ) AS col1
----
-1

query I rowsort
SELECT COALESCE ( + 91, - 26, 25 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT COALESCE ( COUNT( * ), + 60, CASE 60 WHEN - CASE + 18 WHEN 82 + + 67 THEN NULL WHEN + - 2 THEN NULL ELSE - ( - 73 ) END THEN NULL WHEN - 95 THEN NULL WHEN - ( 79 ) THEN NULL ELSE + 85 END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7103
SELECT COALESCE ( COUNT ( * ), + 60, CASE 60 WHEN - CASE + 18 WHEN 82 + + 67 THEN NULL WHEN + - 2 THEN NULL ELSE - ( - 73 ) END THEN NULL WHEN - 95 THEN NULL WHEN - ( 79 ) THEN NULL ELSE + 85 END ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL + ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + ( + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT - MIN( DISTINCT 34 ) * - 35 col1
----
1190

skipif mysql # not compatible
query I rowsort label-7105
SELECT - MIN ( DISTINCT 34 ) * - 35 col1
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT NULLIF ( 99, MIN( DISTINCT + 44 ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7106
SELECT NULLIF ( 99, MIN ( DISTINCT + 44 ) ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7107
SELECT - CAST( NULL AS DECIMAL ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT - CAST ( NULL AS REAL ) - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7108
SELECT ALL CAST( + 62 AS SIGNED ) col0
----
62

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL CAST ( + 62 AS INTEGER ) col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT + MIN( + + 78 ) + - - 6
----
84

skipif mysql # not compatible
query I rowsort label-7109
SELECT + MIN ( + + 78 ) + - - 6
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT ALL + 56 * + ( + COUNT( + - 21 ) )
----
56

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL + 56 * + ( + COUNT ( + - 21 ) )
----
56

query I rowsort
SELECT - 37 * 86
----
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL COUNT( * ) * 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL COUNT ( * ) * 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7113
SELECT ALL 59 AS col0, + 34 - - COUNT( * ) * - - 0 * + - 17 AS col1
----
59
34

skipif mysql # not compatible
query II rowsort label-7113
SELECT ALL 59 AS col0, + 34 - - COUNT ( * ) * - - 0 * + - 17 AS col1
----
59
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7114
SELECT - 89 DIV - - 46 * - COUNT( + 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7114
SELECT - 89 / - - 46 * - COUNT ( + 85 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT ALL + CASE - 97 WHEN ( + 62 ) THEN + + 13 + + 31 ELSE NULL END * - - COUNT( * ) + - COUNT( * ) + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL + CASE - 97 WHEN ( + 62 ) THEN + + 13 + + 31 ELSE NULL END * - - COUNT ( * ) + - COUNT ( * ) + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT DISTINCT - COUNT( * ) * 7
----
-7

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT - COUNT ( * ) * 7
----
-7

query I rowsort
SELECT - + 29 + + - 54 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT + + 23 * - + 62 * - COUNT( * ) * - 97 * + 34
----
-4702948

skipif mysql # not compatible
query I rowsort label-7118
SELECT + + 23 * - + 62 * - COUNT ( * ) * - 97 * + 34
----
-4702948

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7119
SELECT DISTINCT 9 AS col1, + CAST( NULL AS SIGNED ) * 45 AS col1, + - CAST( + - 20 AS SIGNED ) AS col2
----
9
NULL
20

skipif mysql # not compatible
query III rowsort label-7119
SELECT DISTINCT 9 AS col1, + CAST ( NULL AS INTEGER ) * 45 AS col1, + - CAST ( + - 20 AS INTEGER ) AS col2
----
9
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT DISTINCT + COUNT( * ) * - - MIN( - 8 ) * 51 AS col2
----
-408

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT + COUNT ( * ) * - - MIN ( - 8 ) * 51 AS col2
----
-408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7121
SELECT + 51 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7121
SELECT + 51 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL + COUNT( DISTINCT + 13 ) + + 22
----
23

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + COUNT ( DISTINCT + 13 ) + + 22
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT - CAST( - 47 AS SIGNED ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7123
SELECT - CAST ( - 47 AS INTEGER ) AS col0
----
47

query I rowsort
SELECT ALL - + 18
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7125
SELECT + + 81 DIV - 98 - - 94 DIV - ( COUNT( * ) ) * + - COUNT( * ) + + - 4 col0
----
90

skipif mysql # not compatible
query I rowsort label-7125
SELECT + + 81 / - 98 - - 94 / - ( COUNT ( * ) ) * + - COUNT ( * ) + + - 4 col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7126
SELECT ALL 57 + - MAX( DISTINCT + 0 ), + 54 * + 9 DIV + COUNT( * ) AS col2
----
57
486

skipif mysql # not compatible
query II rowsort label-7126
SELECT ALL 57 + - MAX ( DISTINCT + 0 ), + 54 * + 9 / + COUNT ( * ) AS col2
----
57
486

query I rowsort
SELECT 73 + ( - 12 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ALL 21 + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL 21 + + COUNT ( * )
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7129
SELECT ALL + 50 * - - CAST( NULL AS DECIMAL ) * 52 * + 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL + 50 * - - CAST ( NULL AS REAL ) * 52 * + 15 col1
----
NULL

query I rowsort
SELECT DISTINCT 26 + + 98
----
124

query II rowsort
SELECT + 29, 25 AS col2
----
29
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7132
SELECT 8 + + - 9 * 84 - + CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
-747

skipif mysql # not compatible
query I rowsort label-7132
SELECT 8 + + - 9 * 84 - + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
-747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT ALL SUM( ALL - CAST( NULL AS SIGNED ) ) - 86 + - - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL SUM ( ALL - CAST ( NULL AS INTEGER ) ) - 86 + - - 85 AS col2
----
NULL

query I rowsort
SELECT ( + + 57 ) + + 14
----
71

query II rowsort
SELECT 15 * + 28 AS col2, + ( + + 42 ) AS col1
----
420
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7136
SELECT COUNT( ALL 84 ) * - 69 * - COUNT( * ) / + 88 + + + 77 + - 29 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7136
SELECT COUNT ( ALL 84 ) * - 69 * - COUNT ( * ) / + 88 + + + 77 + - 29 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 24 * 70 * + 68
----
114240

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL - MAX( + 98 ) * - SUM( DISTINCT + 77 )
----
7546

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL - MAX ( + 98 ) * - SUM ( DISTINCT + 77 )
----
7546

query I rowsort
SELECT + 4 * - 7 + + 44 * - 71 AS col2
----
-3152

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT ALL COUNT( * ) - - ( 24 )
----
25

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL COUNT ( * ) - - ( 24 )
----
25

query II rowsort
SELECT + 95, - 9 AS col2
----
95
-9

query I rowsort
SELECT DISTINCT - ( + 83 ) AS col1
----
-83

query I rowsort
SELECT ALL - 61 - + ( + 16 )
----
-77

query I rowsort
SELECT 14 * 72
----
1008

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7145
SELECT ALL 19 * + 80 col1, - NULLIF ( - 52, + CAST( NULL AS SIGNED ) ) * - 98 AS col1
----
1520
-5096

skipif mysql # not compatible
query II rowsort label-7145
SELECT ALL 19 * + 80 col1, - NULLIF ( - 52, + CAST ( NULL AS INTEGER ) ) * - 98 AS col1
----
1520
-5096

query I rowsort
SELECT 24 + + 27 + - + 60 * - 10 AS col0
----
651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7147
SELECT ALL 6 AS col2, 93 * CAST( + - MAX( + 63 ) AS SIGNED )
----
6
-5859

skipif mysql # not compatible
query II rowsort label-7147
SELECT ALL 6 AS col2, 93 * CAST ( + - MAX ( + 63 ) AS INTEGER )
----
6
-5859

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT 33 + 66 * - - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-7148
SELECT 33 + 66 * - - COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT ( + COUNT( * ) ) * - - 46
----
46

skipif mysql # not compatible
query I rowsort label-7149
SELECT ( + COUNT ( * ) ) * - - 46
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7150
SELECT 39 * + + 68 * - 2 * COUNT( * ) AS col2, 39 / - CAST( NULL AS SIGNED ) AS col2
----
-5304
NULL

skipif mysql # not compatible
query II rowsort label-7150
SELECT 39 * + + 68 * - 2 * COUNT ( * ) AS col2, 39 / - CAST ( NULL AS INTEGER ) AS col2
----
-5304
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7151
SELECT ALL CAST( 5 AS SIGNED ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL CAST ( 5 AS INTEGER ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT COUNT( ALL + 54 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7152
SELECT COUNT ( ALL + 54 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT - 29 + + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-7153
SELECT - 29 + + COUNT ( * ) AS col0
----
-28

query II rowsort
SELECT - 20 AS col1, 92 AS col1
----
-20
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7155
SELECT ALL - CAST( + 41 AS SIGNED ) + + - MIN( 97 )
----
-138

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL - CAST ( + 41 AS INTEGER ) + + - MIN ( 97 )
----
-138

query I rowsort
SELECT ALL + + 76 * 34 * - 73 col1
----
-188632

query II rowsort
SELECT ( - + 93 ) AS col2, - 44
----
-93
-44

query II rowsort
SELECT + COALESCE ( + + ( + 64 ), 41, - ( 40 ) ) AS col1, - 31 * - COALESCE ( - + 11, + + ( + 44 ), + 38 ) col2
----
64
-341

query II rowsort
SELECT ALL - 6 + 46, + 53 + + 9 AS col1
----
40
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7160
SELECT + 92 + - - ( - MAX( ALL + 42 ) ) + - - 32 + COUNT( * ) AS col2, COUNT( * ) - + 67 + 81 * - - 60
----
83
4794

skipif mysql # not compatible
query II rowsort label-7160
SELECT + 92 + - - ( - MAX ( ALL + 42 ) ) + - - 32 + COUNT ( * ) AS col2, COUNT ( * ) - + 67 + 81 * - - 60
----
83
4794

query I rowsort
SELECT 60 + + NULLIF ( + 96, - + 63 )
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT - 45 * COUNT( * ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-7162
SELECT - 45 * COUNT ( * ) col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7163
SELECT DISTINCT + 34 AS col0, ( 60 ) + + 78 + + COUNT( * ) * 19 + + 3 * - 28 + 65 DIV - 23
----
34
71

skipif mysql # not compatible
query II rowsort label-7163
SELECT DISTINCT + 34 AS col0, ( 60 ) + + 78 + + COUNT ( * ) * 19 + + 3 * - 28 + 65 / - 23
----
34
71

onlyif mysql # DIV for integer division: 
query II rowsort label-7164
SELECT - 27, + 68 DIV 97 AS col0
----
-27
0

skipif mysql # not compatible
query II rowsort label-7164
SELECT - 27, + 68 / 97 AS col0
----
-27
0

query II rowsort
SELECT + 61 AS col1, + 33 - - + 54 AS col2
----
61
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7166
SELECT DISTINCT - CAST( - + 94 AS SIGNED ) AS col0, - 18 col0
----
94
-18

skipif mysql # not compatible
query II rowsort label-7166
SELECT DISTINCT - CAST ( - + 94 AS INTEGER ) AS col0, - 18 col0
----
94
-18

query I rowsort
SELECT ALL - 79 + + + 71 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7168
SELECT + 94 * + + 79 + MIN( + 85 ) + - - 49 * - COUNT( + - 84 ) / - CAST( NULL AS SIGNED ) * - 63 * - COUNT( * ) + - 1, - 64 AS col2
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-7168
SELECT + 94 * + + 79 + MIN ( + 85 ) + - - 49 * - COUNT ( + - 84 ) / - CAST ( NULL AS INTEGER ) * - 63 * - COUNT ( * ) + - 1, - 64 AS col2
----
NULL
-64

query II rowsort
SELECT ALL - 59 AS col2, - ( - 55 )
----
-59
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL CASE + - COUNT( * ) WHEN - 58 + + 77 THEN NULL WHEN - 53 THEN 86 + - 65 END * + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL CASE + - COUNT ( * ) WHEN - 58 + + 77 THEN NULL WHEN - 53 THEN 86 + - 65 END * + - 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7171
SELECT ALL 85 - MAX( ALL 58 ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL 85 - MAX ( ALL 58 ) + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT DISTINCT COUNT( * ) * + 11
----
11

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT COUNT ( * ) * + 11
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7173
SELECT MAX( ALL - 38 ) AS col0, 94 AS col0
----
-38
94

skipif mysql # not compatible
query II rowsort label-7173
SELECT MAX ( ALL - 38 ) AS col0, 94 AS col0
----
-38
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7174
SELECT DISTINCT SUM( - 82 ) * 18 * 35 DIV - COALESCE ( 31, + + 49 ) AS col0
----
1666

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT SUM ( - 82 ) * 18 * 35 / - COALESCE ( 31, + + 49 ) AS col0
----
1666

query I rowsort
SELECT ( - - 95 ) * 49 AS col1
----
4655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7176
SELECT CAST( NULL AS SIGNED ) / + - ( 23 ) / + - AVG ( - - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT CAST ( NULL AS INTEGER ) / + - ( 23 ) / + - AVG ( - - 68 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7177
SELECT DISTINCT + COUNT( * ) DIV - COALESCE ( - 73, + 57 ) * + - SUM( - 39 ) * + COUNT( - + 17 ) * 19 + - 46 + + + 93 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT + COUNT ( * ) / - COALESCE ( - 73, + 57 ) * + - SUM ( - 39 ) * + COUNT ( - + 17 ) * 19 + - 46 + + + 93 AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT ALL 72 DIV 23 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL 72 / 23 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT + MAX( ALL - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7179
SELECT + MAX ( ALL - 33 ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7180
SELECT - CAST( NULL AS SIGNED ) - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT - CAST ( NULL AS INTEGER ) - 42
----
NULL

query II rowsort
SELECT 28 + 24, - NULLIF ( + 95, - 14 * 22 ) AS col0
----
52
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT ALL SUM( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL SUM ( 2 )
----
2

query II rowsort
SELECT + + 96 * + NULLIF ( - COALESCE ( 62, - 3 ), 52 + - 51 + 22 / - 71 ) - - - 27 AS col2, - 74
----
-5979
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT ALL + - ( 77 ) + + + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + - ( 77 ) + + + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT DISTINCT + 57 + - 36 * + + 73 + + MIN( ( + 83 ) ) col0
----
-2488

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT + 57 + - 36 * + + 73 + + MIN ( ( + 83 ) ) col0
----
-2488

query I rowsort
SELECT - 76 * - 99
----
7524

onlyif mysql # aggregate syntax: 
query II rowsort label-7187
SELECT ALL + 24 + 51 AS col1, MIN( + 6 ) * - COALESCE ( + ( - 53 ), - 5 + + 52 ) + - - 85 AS col1
----
75
403

skipif mysql # not compatible
query II rowsort label-7187
SELECT ALL + 24 + 51 AS col1, MIN ( + 6 ) * - COALESCE ( + ( - 53 ), - 5 + + 52 ) + - - 85 AS col1
----
75
403

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT - - 69 * COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7188
SELECT - - 69 * COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT - - 63 * COUNT( * ) col0
----
63

skipif mysql # not compatible
query I rowsort label-7189
SELECT - - 63 * COUNT ( * ) col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT - ( - MAX( DISTINCT + 60 ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7190
SELECT - ( - MAX ( DISTINCT + 60 ) ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL - - 31 - COUNT( 26 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL - - 31 - COUNT ( 26 ) AS col0
----
30

query I rowsort
SELECT - ( 13 ) - 87
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-7193
SELECT - + ( 49 ), COUNT( * ) AS col2
----
-49
1

skipif mysql # not compatible
query II rowsort label-7193
SELECT - + ( 49 ), COUNT ( * ) AS col2
----
-49
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT DISTINCT - COUNT( DISTINCT - - 76 ) * + - 61
----
61

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT - COUNT ( DISTINCT - - 76 ) * + - 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT - 74 + - CASE + COUNT( * ) WHEN 43 THEN NULL ELSE + COUNT( * ) END AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7195
SELECT - 74 + - CASE + COUNT ( * ) WHEN 43 THEN NULL ELSE + COUNT ( * ) END AS col2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT - 14 col0, + ( - 7 ) + COUNT( * )
----
-14
-6

skipif mysql # not compatible
query II rowsort label-7196
SELECT - 14 col0, + ( - 7 ) + COUNT ( * )
----
-14
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7197
SELECT - 91 DIV 83 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7197
SELECT - 91 / 83 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT + COUNT( * ) * + COUNT( * ) + 98 + - 31 * - MIN( DISTINCT - 89 ) AS col0
----
-2660

skipif mysql # not compatible
query I rowsort label-7198
SELECT + COUNT ( * ) * + COUNT ( * ) + 98 + - 31 * - MIN ( DISTINCT - 89 ) AS col0
----
-2660

query I rowsort
SELECT + 73 * - 24 AS col2
----
-1752

query I rowsort
SELECT DISTINCT + ( + - 22 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7201
SELECT ALL + CAST( - 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL + CAST ( - 68 AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT - 37 * SUM( - 87 )
----
3219

skipif mysql # not compatible
query I rowsort label-7202
SELECT - 37 * SUM ( - 87 )
----
3219

query I rowsort
SELECT DISTINCT + ( + 50 ) AS col1
----
50

query II rowsort
SELECT ALL + 79, - NULLIF ( - 52, + + 68 ) AS col1
----
79
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT NULLIF ( - - COUNT( * ), - - NULLIF ( + 93, - - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7205
SELECT NULLIF ( - - COUNT ( * ), - - NULLIF ( + 93, - - COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7206
SELECT ALL + CAST( + 37 AS SIGNED ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + CAST ( + 37 AS INTEGER ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT + MAX( - 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT + MAX ( - 53 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL + CASE WHEN ( NULL ) <> NULL THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL + CASE WHEN ( NULL ) <> NULL THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT NULLIF ( + 34, + 69 * - 63 / + - COUNT( * ) * - + COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-7209
SELECT NULLIF ( + 34, + 69 * - 63 / + - COUNT ( * ) * - + COUNT ( * ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT + NULLIF ( + ( + + COUNT( * ) ), - + 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7210
SELECT + NULLIF ( + ( + + COUNT ( * ) ), - + 90 ) AS col1
----
1

query I rowsort
SELECT + 42 + - + 87
----
-45

onlyif mysql # aggregate syntax: 
query III rowsort label-7212
SELECT + NULLIF ( + - COALESCE ( - 13, + 79 * - MIN( + + COALESCE ( - 32, + - 27 ) ) - - - 91 - + 51 ), 15 ) AS col2, - ( + 30 ) * - 84 - + 83 * - COUNT( * ), - + 99 * + - 93 + + - 71 + 93 + ( + + 21 ) AS col1
----
13
2603
9250

skipif mysql # not compatible
query III rowsort label-7212
SELECT + NULLIF ( + - COALESCE ( - 13, + 79 * - MIN ( + + COALESCE ( - 32, + - 27 ) ) - - - 91 - + 51 ), 15 ) AS col2, - ( + 30 ) * - 84 - + 83 * - COUNT ( * ), - + 99 * + - 93 + + - 71 + 93 + ( + + 21 ) AS col1
----
13
2603
9250

query I rowsort
SELECT ALL 66 * + 51 AS col0
----
3366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7214
SELECT - 52 * 9 + - 33 * - MAX( DISTINCT CAST( NULL AS SIGNED ) ) - 51 + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT - 52 * 9 + - 33 * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) - 51 + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT + MAX( + ( - 13 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-7215
SELECT + MAX ( + ( - 13 ) )
----
-13

query II rowsort
SELECT 71 * + 94 + + + 4, ( - 26 ) col0
----
6678
-26

query I rowsort
SELECT + ( 85 ) AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7218
SELECT ALL COUNT( - 62 ) * + + 71 + + ( - 44 ) + - + CAST( NULL AS SIGNED ) AS col2, 51 col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-7218
SELECT ALL COUNT ( - 62 ) * + + 71 + + ( - 44 ) + - + CAST ( NULL AS INTEGER ) AS col2, 51 col2
----
NULL
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7219
SELECT DISTINCT + MAX( DISTINCT + ( 44 ) ) DIV - ( 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT + MAX ( DISTINCT + ( 44 ) ) / - ( 40 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7220
SELECT ALL + 20 * + 74 + + 31 * ( 83 ) DIV COUNT( * ) * + 96 + 55 * COUNT( * ) DIV - 70 AS col2
----
248488

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL + 20 * + 74 + + 31 * ( 83 ) / COUNT ( * ) * + 96 + 55 * COUNT ( * ) / - 70 AS col2
----
248488

onlyif mysql # aggregate syntax: 
query II rowsort label-7221
SELECT - + 7 col0, COUNT( * )
----
-7
1

skipif mysql # not compatible
query II rowsort label-7221
SELECT - + 7 col0, COUNT ( * )
----
-7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL COUNT( * ) * + + 29 + + ( - 68 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL COUNT ( * ) * + + 29 + + ( - 68 ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7223
SELECT ( - + CAST( - COALESCE ( + COUNT( * ), - - 62, - - 44 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7223
SELECT ( - + CAST ( - COALESCE ( + COUNT ( * ), - - 62, - - 44 ) AS INTEGER ) )
----
1

query I rowsort
SELECT - + 97 col1
----
-97

query I rowsort
SELECT - - COALESCE ( - 88, + 43 + + + 51 ) * + - ( - 30 ) + 16
----
-2624

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT + NULLIF ( + 38, COUNT( * ) * - - 33 - + + 93 ) * - NULLIF ( + 38, + 93 * 66 ) * 19
----
-27436

skipif mysql # not compatible
query I rowsort label-7226
SELECT + NULLIF ( + 38, COUNT ( * ) * - - 33 - + + 93 ) * - NULLIF ( + 38, + 93 * 66 ) * 19
----
-27436

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL + COALESCE ( + COUNT( * ), - 78 ) * + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL + COALESCE ( + COUNT ( * ), - 78 ) * + ( + COUNT ( * ) )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7228
SELECT + + 98 + + 43 + + 28 DIV 35, 79 * + 0 AS col0
----
141
0

skipif mysql # not compatible
query II rowsort label-7228
SELECT + + 98 + + 43 + + 28 / 35, 79 * + 0 AS col0
----
141
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7229
SELECT + - COUNT( * ) + + 7 + - 48 + 4 DIV + - 5 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7229
SELECT + - COUNT ( * ) + + 7 + - 48 + 4 / + - 5 AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7230
SELECT ALL SUM( DISTINCT - CAST( 78 AS SIGNED ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL SUM ( DISTINCT - CAST ( 78 AS INTEGER ) ) AS col1
----
-78

query I rowsort
SELECT + 63 + - 57
----
6

query II rowsort
SELECT DISTINCT - NULLIF ( + + 77, - 46 ) AS col1, - 77
----
-77
-77

query I rowsort
SELECT - 90 + 61
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT + COUNT( * ) * - 80
----
-80

skipif mysql # not compatible
query I rowsort label-7234
SELECT + COUNT ( * ) * - 80
----
-80

query I rowsort
SELECT - 56 + + 9 col1
----
-47

query II rowsort
SELECT - 74 * + - 82, NULLIF ( 95, - 81 ) col1
----
6068
95

query II rowsort
SELECT DISTINCT ( + + 26 ) AS col0, ( + 33 )
----
26
33

query I rowsort
SELECT - 9 * + 7 AS col0
----
-63

query I rowsort
SELECT ALL - 28 * ( 61 ) AS col2
----
-1708

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT - 38 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-7240
SELECT - 38 / - 45
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( - NULLIF ( + 31, - 47 ), - + 35 * 21, - 0 ) * - 15
----
-465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7242
SELECT ALL - CAST( NULL AS SIGNED ) * - 1 * + - NULLIF ( - - 47, 13 * 19 * 57 + - - 88 * + + 18 * + COUNT( * ) + - + CAST( NULL AS SIGNED ) * - 31 ) * - + COUNT( * ) + + 35 * - COALESCE ( - + 14, - 61 ) * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL - CAST ( NULL AS INTEGER ) * - 1 * + - NULLIF ( - - 47, 13 * 19 * 57 + - - 88 * + + 18 * + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * - 31 ) * - + COUNT ( * ) + + 35 * - COALESCE ( - + 14, - 61 ) * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL - ( - NULLIF ( NULLIF ( - 17, + MAX( DISTINCT - 95 ) + + COUNT( - + 92 ) ), + 63 + - 82 * - 13 ) ) * - + 61 * 1
----
1037

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL - ( - NULLIF ( NULLIF ( - 17, + MAX ( DISTINCT - 95 ) + + COUNT ( - + 92 ) ), + 63 + - 82 * - 13 ) ) * - + 61 * 1
----
1037

query II rowsort
SELECT DISTINCT - 11 * 26 * - ( 73 ), 82 * 21 AS col2
----
20878
1722

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7245
SELECT DISTINCT + COUNT( * ) DIV - 77 + - + COALESCE ( - 91, + COUNT( * ), COUNT( * ), + 70 )
----
91

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT + COUNT ( * ) / - 77 + - + COALESCE ( - 91, + COUNT ( * ), COUNT ( * ), + 70 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT DISTINCT + COUNT( + + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT + COUNT ( + + 91 )
----
1

query I rowsort
SELECT ALL + 66 + - 43 AS col0
----
23

query I rowsort
SELECT ALL - ( + + 99 ) + 66
----
-33

query I rowsort
SELECT ALL + 68 * - 15 AS col0
----
-1020

query I rowsort
SELECT ALL - - 5 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT + COUNT( * ) * ( 79 ) + - 94 col2
----
-15

skipif mysql # not compatible
query I rowsort label-7251
SELECT + COUNT ( * ) * ( 79 ) + - 94 col2
----
-15

query I rowsort
SELECT 35 * 28 AS col1
----
980

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7253
SELECT - - COUNT( * ) * - 4 + - 6 - - 85, - 44 DIV - - 20 AS col1
----
75
-2

skipif mysql # not compatible
query II rowsort label-7253
SELECT - - COUNT ( * ) * - 4 + - 6 - - 85, - 44 / - - 20 AS col1
----
75
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT DISTINCT + SUM( + 81 ) col1
----
81

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT + SUM ( + 81 ) col1
----
81

query I rowsort
SELECT DISTINCT - + 98 * - + 3
----
294

query I rowsort
SELECT 37 * - 85 + - 18 AS col1
----
-3163

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT ALL - 92 DIV - + 89
----
1

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL - 92 / - + 89
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT - ( - CASE 23 WHEN 35 + SUM( 54 ) THEN - 42 WHEN + 13 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7258
SELECT - ( - CASE 23 WHEN 35 + SUM ( 54 ) THEN - 42 WHEN + 13 THEN NULL ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 81 - 59
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT + SUM( + - 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7260
SELECT + SUM ( + - 13 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT - - COALESCE ( + + 25, + + ( 53 ) * - - COUNT( DISTINCT 30 ) * 89 * 36 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7261
SELECT - - COALESCE ( + + 25, + + ( 53 ) * - - COUNT ( DISTINCT 30 ) * 89 * 36 ) AS col2
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-7262
SELECT 16 * 11 + ( 91 ) AS col1, 89 DIV + 13
----
267
6

skipif mysql # not compatible
query II rowsort label-7262
SELECT 16 * 11 + ( 91 ) AS col1, 89 / + 13
----
267
6

query I rowsort
SELECT + 88 * - 40 + + - 71 AS col1
----
-3591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7264
SELECT ALL - 31 / - MAX( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL - 31 / - MAX ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 27 - - + 15
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7266
SELECT ALL 9 DIV - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL 9 / - 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7267
SELECT ALL 91 * - MIN( + - 62 ) * 71 + 27 AS col1, + ( - SUM( ALL - 28 ) )
----
400609
28

skipif mysql # not compatible
query II rowsort label-7267
SELECT ALL 91 * - MIN ( + - 62 ) * 71 + 27 AS col1, + ( - SUM ( ALL - 28 ) )
----
400609
28

query I rowsort
SELECT 14 - - - 73 AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7269
SELECT ALL + CAST( - 71 AS SIGNED ) + - - 60 AS col1, + 87
----
-11
87

skipif mysql # not compatible
query II rowsort label-7269
SELECT ALL + CAST ( - 71 AS INTEGER ) + - - 60 AS col1, + 87
----
-11
87

query I rowsort
SELECT ALL 55 * 24 col0
----
1320

query I rowsort
SELECT 98 + - - 77 AS col1
----
175

query I rowsort
SELECT 33 * + 2
----
66

query I rowsort
SELECT DISTINCT 90 + + - ( 29 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT ALL ( + - COUNT( * ) ) + - CASE - 36 WHEN - COUNT( * ) THEN NULL WHEN 34 THEN + - 10 * + 76 ELSE NULL END + 16 * + - 25 + + + 93 * + ( + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL ( + - COUNT ( * ) ) + - CASE - 36 WHEN - COUNT ( * ) THEN NULL WHEN 34 THEN + - 10 * + 76 ELSE NULL END + 16 * + - 25 + + + 93 * + ( + 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT DISTINCT MAX( ALL 53 ) + + 66
----
119

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT MAX ( ALL 53 ) + + 66
----
119

query I rowsort
SELECT DISTINCT + 80 * NULLIF ( - 79, - ( - - 43 ) * + - ( - 87 ) ) AS col1
----
-6320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7277
SELECT ALL + 62 * - 64 DIV + COUNT( * )
----
-3968

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL + 62 * - 64 / + COUNT ( * )
----
-3968

query I rowsort
SELECT ALL - 8 + - 56 AS col0
----
-64

query I rowsort
SELECT + + ( ( - - 95 ) ) AS col0
----
95

query I rowsort
SELECT + ( COALESCE ( - 52, 49 ) ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7281
SELECT + 34 * - COALESCE ( - - 14, - COUNT( * ) + + 84, 81 ) * CAST( NULL AS SIGNED ) + 23 + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7281
SELECT + 34 * - COALESCE ( - - 14, - COUNT ( * ) + + 84, 81 ) * CAST ( NULL AS INTEGER ) + 23 + - 29
----
NULL

query I rowsort
SELECT 90 * - + 56 AS col2
----
-5040

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7283
SELECT - 42 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT - 42 * CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - + 38 - - 54
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT SUM( 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7285
SELECT SUM ( 62 ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7286
SELECT 83 DIV 21 + - 70 AS col0, - 64 + + CASE 60 WHEN - CAST( NULL AS SIGNED ) THEN + 53 END AS col1
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-7286
SELECT 83 / 21 + - 70 AS col0, - 64 + + CASE 60 WHEN - CAST ( NULL AS INTEGER ) THEN + 53 END AS col1
----
-67
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT ALL + 87 DIV CASE - 81 WHEN - 40 THEN NULL ELSE + 53 END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL + 87 / CASE - 81 WHEN - 40 THEN NULL ELSE + 53 END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL - + SUM( + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL - + SUM ( + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-7289
SELECT ALL - + 62 AS col2, + COUNT( * ) * - + CASE 24 WHEN + 6 THEN + + 98 + - + 16 WHEN + 76 THEN - - 48 ELSE NULL END - 55 AS col2
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-7289
SELECT ALL - + 62 AS col2, + COUNT ( * ) * - + CASE 24 WHEN + 6 THEN + + 98 + - + 16 WHEN + 76 THEN - - 48 ELSE NULL END - 55 AS col2
----
-62
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7290
SELECT DISTINCT - 85 - + 56 + - NULLIF ( - COUNT( * ), + - 22 ) + - - 17 DIV NULLIF ( + 13, - 89 + - + CAST( NULL AS SIGNED ) ) * + - CAST( - ( + 89 ) AS SIGNED ) - + 44 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT - 85 - + 56 + - NULLIF ( - COUNT ( * ), + - 22 ) + - - 17 / NULLIF ( + 13, - 89 + - + CAST ( NULL AS INTEGER ) ) * + - CAST ( - ( + 89 ) AS INTEGER ) - + 44 AS col0
----
-95

query I rowsort
SELECT ALL - ( + - 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7292
SELECT 52 * + MAX( ALL - - 37 ), + 48 AS col2
----
1924
48

skipif mysql # not compatible
query II rowsort label-7292
SELECT 52 * + MAX ( ALL - - 37 ), + 48 AS col2
----
1924
48

query I rowsort
SELECT - - 29 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7294
SELECT 55 * CAST( NULL AS SIGNED ) + + + 53 / + + 39 + COUNT( * ) col2, + 65 AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-7294
SELECT 55 * CAST ( NULL AS INTEGER ) + + + 53 / + + 39 + COUNT ( * ) col2, + 65 AS col1
----
NULL
65

query II rowsort
SELECT - 85 * + - 42 * 9 AS col1, 16 AS col0
----
32130
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7296
SELECT 62 + COALESCE ( + 3, 65 - + + ( + 85 ), - CAST( NULL AS SIGNED ) ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT 62 + COALESCE ( + 3, 65 - + + ( + 85 ), - CAST ( NULL AS INTEGER ) ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT DISTINCT + MAX( ALL 18 ) * 48 * - 48 col1
----
-41472

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT + MAX ( ALL 18 ) * 48 * - 48 col1
----
-41472

query I rowsort
SELECT DISTINCT + 58 * + 79 col0
----
4582

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7299
SELECT COUNT( * ) DIV + CASE + 41 WHEN 83 THEN NULL ELSE - + 10 + - 65 END AS col1, 38 DIV - 83 * + ( - 97 )
----
0
0

skipif mysql # not compatible
query II rowsort label-7299
SELECT COUNT ( * ) / + CASE + 41 WHEN 83 THEN NULL ELSE - + 10 + - 65 END AS col1, 38 / - 83 * + ( - 97 )
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7300
SELECT ALL NULLIF ( + ( + - CASE - 93 WHEN - 72 - + CASE + 97 WHEN - ( + SUM( + - COALESCE ( 22, NULLIF ( 93, - 25 ) ) ) ) THEN NULL ELSE - 63 + + - ( AVG ( 78 ) ) END + + 99 * + 24 + CAST( NULL AS SIGNED ) THEN + 73 END ), - CAST( NULL AS SIGNED ) + - 76 + - 94 ) + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL NULLIF ( + ( + - CASE - 93 WHEN - 72 - + CASE + 97 WHEN - ( + SUM ( + - COALESCE ( 22, NULLIF ( 93, - 25 ) ) ) ) THEN NULL ELSE - 63 + + - ( AVG ( 78 ) ) END + + 99 * + 24 + CAST ( NULL AS INTEGER ) THEN + 73 END ), - CAST ( NULL AS INTEGER ) + - 76 + - 94 ) + 76
----
NULL

query I rowsort
SELECT DISTINCT + 29 * - 9 AS col0
----
-261

query I rowsort
SELECT ALL 85 + - 27 AS col1
----
58

query I rowsort
SELECT 24 + - - 28
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT 98 DIV + + 45
----
2

skipif mysql # not compatible
query I rowsort label-7304
SELECT 98 / + + 45
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT COUNT( * ) * + - 48
----
-48

skipif mysql # not compatible
query I rowsort label-7305
SELECT COUNT ( * ) * + - 48
----
-48

query I rowsort
SELECT DISTINCT ( - + 92 ) + + - 30
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * + 85 * - ( 12 ) * 97 * - + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + 85 * - ( 12 ) * 97 * - + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT ALL COUNT( * ) * 35 * 70 AS col2
----
2450

skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL COUNT ( * ) * 35 * 70 AS col2
----
2450

query I rowsort
SELECT + 7 * - + 65
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL COUNT( * ) + - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL COUNT ( * ) + - - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL MAX( - 3 ) * + COUNT( * ) * - 22 + + 54 - - 67 AS col2
----
187

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL MAX ( - 3 ) * + COUNT ( * ) * - 22 + + 54 - - 67 AS col2
----
187

onlyif mysql # aggregate syntax: 
query II rowsort label-7312
SELECT ALL + 84, - ( COUNT( + + 96 ) ) AS col1
----
84
-1

skipif mysql # not compatible
query II rowsort label-7312
SELECT ALL + 84, - ( COUNT ( + + 96 ) ) AS col1
----
84
-1

query II rowsort
SELECT ALL + 23 col2, 49 AS col2
----
23
49

query I rowsort
SELECT DISTINCT 0 * - 48 * 29 * 5 * + 40 * 57 * ( + 76 ) AS col0
----
0

query I rowsort
SELECT + - 59 col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7316
SELECT - 90 DIV - 87 - - COUNT( * ) DIV + 59 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7316
SELECT - 90 / - 87 - - COUNT ( * ) / + 59 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7317
SELECT - 40 * + ( + + CASE - + 17 WHEN 68 THEN - 26 WHEN - 80 - 98 + - NULLIF ( + ( + 83 ), COALESCE ( + 34, COALESCE ( + + 73, - 29 ) ) + + - 28 + CASE + 47 WHEN + + 47 THEN - CAST( - - 79 AS SIGNED ) WHEN - + AVG ( ALL + 59 ) * 15 THEN NULL WHEN - 75 THEN NULL END + + + NULLIF ( + 45, - COALESCE ( - + 10, + ( + 15 ), + 57 ) ) + + 63 ) THEN - 89 DIV 61 ELSE + COALESCE ( - 27, 22, 26 ) END ) + + - 67
----
1013

skipif mysql # not compatible
query I rowsort label-7317
SELECT - 40 * + ( + + CASE - + 17 WHEN 68 THEN - 26 WHEN - 80 - 98 + - NULLIF ( + ( + 83 ), COALESCE ( + 34, COALESCE ( + + 73, - 29 ) ) + + - 28 + CASE + 47 WHEN + + 47 THEN - CAST ( - - 79 AS INTEGER ) WHEN - + AVG ( ALL + 59 ) * 15 THEN NULL WHEN - 75 THEN NULL END + + + NULLIF ( + 45, - COALESCE ( - + 10, + ( + 15 ), + 57 ) ) + + 63 ) THEN - 89 / 61 ELSE + COALESCE ( - 27, 22, 26 ) END ) + + - 67
----
1013

query I rowsort
SELECT ALL + NULLIF ( - 23, + 91 )
----
-23

query I rowsort
SELECT - COALESCE ( 73, - 0 ) AS col2
----
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7320
SELECT + + 36 * - - CAST( NULL AS DECIMAL ) AS col1, - 76 col2
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-7320
SELECT + + 36 * - - CAST ( NULL AS REAL ) AS col1, - 76 col2
----
NULL
-76

query I rowsort
SELECT 45 * + 55 + - + 81 AS col2
----
2394

query I rowsort
SELECT + ( 48 ) col0
----
48

query I rowsort
SELECT + 73 * + + ( - ( + - 36 ) )
----
2628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7324
SELECT - COALESCE ( - + CAST( NULL AS SIGNED ), SUM( - COALESCE ( ( 17 ), + + 7, 83 ) ) * + - 82 + + - COUNT( - - 94 ), - 23 ) * - - 39
----
-54327

skipif mysql # not compatible
query I rowsort label-7324
SELECT - COALESCE ( - + CAST ( NULL AS INTEGER ), SUM ( - COALESCE ( ( 17 ), + + 7, 83 ) ) * + - 82 + + - COUNT ( - - 94 ), - 23 ) * - - 39
----
-54327

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7325
SELECT ALL + 64 * - 20 - 84 DIV - COUNT( * ) AS col0, - 71 - - 71 + + 49 AS col2
----
-1196
49

skipif mysql # not compatible
query II rowsort label-7325
SELECT ALL + 64 * - 20 - 84 / - COUNT ( * ) AS col0, - 71 - - 71 + + 49 AS col2
----
-1196
49

query I rowsort
SELECT + 87 * 31 AS col0
----
2697

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT + - COUNT( DISTINCT + 58 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7327
SELECT + - COUNT ( DISTINCT + 58 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7328
SELECT - - 9 * - + ( - 8 ) * - 10 + - 80 + - CAST( - 40 AS SIGNED ) + + 64
----
-696

skipif mysql # not compatible
query I rowsort label-7328
SELECT - - 9 * - + ( - 8 ) * - 10 + - 80 + - CAST ( - 40 AS INTEGER ) + + 64
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT - - ( - MIN( + 59 ) ) + + ( 51 ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-7329
SELECT - - ( - MIN ( + 59 ) ) + + ( 51 ) col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7330
SELECT - + 34 * COUNT( * ) DIV + + 23 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7330
SELECT - + 34 * COUNT ( * ) / + + 23 AS col2
----
-1

query I rowsort
SELECT ALL + 29 + - 53 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT - 91 * - COALESCE ( + + 61, - - 33 ) * - SUM( ALL + 23 )
----
-127673

skipif mysql # not compatible
query I rowsort label-7332
SELECT - 91 * - COALESCE ( + + 61, - - 33 ) * - SUM ( ALL + 23 )
----
-127673

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7333
SELECT - 50 + CAST( NULL AS DECIMAL ), 38 AS col0
----
NULL
38

skipif mysql # not compatible
query II rowsort label-7333
SELECT - 50 + CAST ( NULL AS REAL ), 38 AS col0
----
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT DISTINCT + 24 + - 86 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT + 24 + - 86 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7335
SELECT ALL - CASE 33 WHEN + + 14 THEN COUNT( ALL ( + 44 ) ) - 37 + - 87 * + 73 + - + 68 * - 14 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL - CASE 33 WHEN + + 14 THEN COUNT ( ALL ( + 44 ) ) - 37 + - 87 * + 73 + - + 68 * - 14 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + 68 AS col2
----
NULL

query I rowsort
SELECT - 79 - - 84 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT - 55 - COUNT( - + 54 ) * + 83 AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-7337
SELECT - 55 - COUNT ( - + 54 ) * + 83 AS col2
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7338
SELECT ALL CAST( NULL AS SIGNED ) * - 41 AS col1, COUNT( * ) - - 89 + - 11 * - + CAST( + 63 AS SIGNED ) AS col0
----
NULL
783

skipif mysql # not compatible
query II rowsort label-7338
SELECT ALL CAST ( NULL AS INTEGER ) * - 41 AS col1, COUNT ( * ) - - 89 + - 11 * - + CAST ( + 63 AS INTEGER ) AS col0
----
NULL
783

query II rowsort
SELECT ALL + 7 + 43 AS col2, 31 * 77
----
50
2387

query I rowsort
SELECT ALL 95 + - 96
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT - 1 - MAX( - - 49 ) + - - 46 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7341
SELECT - 1 - MAX ( - - 49 ) + - - 46 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT + ( + 98 ) - - + SUM( 16 )
----
114

skipif mysql # not compatible
query I rowsort label-7342
SELECT + ( + 98 ) - - + SUM ( 16 )
----
114

query I rowsort
SELECT - 48 + + ( + + 19 )
----
-29

query I rowsort
SELECT - 65 + + 7 * 40
----
215

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7345
SELECT ALL - ( + 96 ) DIV COALESCE ( + - COUNT( * ), + 8 ) AS col0, + 52 * + 59 * + 26
----
96
79768

skipif mysql # not compatible
query II rowsort label-7345
SELECT ALL - ( + 96 ) / COALESCE ( + - COUNT ( * ), + 8 ) AS col0, + 52 * + 59 * + 26
----
96
79768

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7346
SELECT + SUM( DISTINCT CAST( NULL AS DECIMAL ) ) / - 42 + - + COUNT( ALL - 14 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT + SUM ( DISTINCT CAST ( NULL AS REAL ) ) / - 42 + - + COUNT ( ALL - 14 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + MIN( ALL - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-7347
SELECT + MIN ( ALL - 75 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7348
SELECT + 91 DIV + - COUNT( * ) + + 27
----
-64

skipif mysql # not compatible
query I rowsort label-7348
SELECT + 91 / + - COUNT ( * ) + + 27
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT + 4 + 20 * COUNT( * ) - - 16
----
40

skipif mysql # not compatible
query I rowsort label-7349
SELECT + 4 + 20 * COUNT ( * ) - - 16
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT 15 * + - 87 * + ( - 38 ) + COUNT( * )
----
49591

skipif mysql # not compatible
query I rowsort label-7350
SELECT 15 * + - 87 * + ( - 38 ) + COUNT ( * )
----
49591

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT DISTINCT + COUNT( ALL - 90 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT + COUNT ( ALL - 90 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7352
SELECT ALL ( + ( - 80 ) ) * + ( + NULLIF ( - 81, + - 91 + + 22 + + ( + MIN( DISTINCT + 44 ) ) * - - 33 ) ) AS col1, ( + ( - + 2 ) ) AS col1
----
6480
-2

skipif mysql # not compatible
query II rowsort label-7352
SELECT ALL ( + ( - 80 ) ) * + ( + NULLIF ( - 81, + - 91 + + 22 + + ( + MIN ( DISTINCT + 44 ) ) * - - 33 ) ) AS col1, ( + ( - + 2 ) ) AS col1
----
6480
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT - COUNT( ALL + 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-7353
SELECT - COUNT ( ALL + 20 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7354
SELECT DISTINCT 49 * 75 + 47 DIV + 87 + 8
----
3683

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT 49 * 75 + 47 / + 87 + 8
----
3683

query I rowsort
SELECT + - 63 * + 26 AS col2
----
-1638

query I rowsort
SELECT DISTINCT - 58 * + + 6 + - + ( + + 31 ) + + - 48 + - 85 * + 52 AS col2
----
-4847

query I rowsort
SELECT ALL + - 13 * - + 69 * - + 30 + - - 44
----
-26866

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT ALL 4 DIV - 7
----
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL 4 / - 7
----
0

query I rowsort
SELECT DISTINCT - 65 * 58 + 76 AS col0
----
-3694

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7360
SELECT - CAST( + 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-7360
SELECT - CAST ( + 70 AS INTEGER )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT + 55 + - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-7361
SELECT + 55 + - - COUNT ( * )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7362
SELECT CAST( NULL AS SIGNED ) + - - 74 + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT CAST ( NULL AS INTEGER ) + - - 74 + + 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7363
SELECT ALL NULLIF ( + - 4, - 55 + + + 76 - - CASE + + 54 WHEN - 16 DIV 23 - 12 + - 13 DIV - 79 + - + 93 THEN NULL WHEN + - ( + 88 ) * + 10 + 5 * 94 THEN + 82 END ) + + + ( + - 82 ) DIV 57 * + 35 - - SUM( ALL + - 93 ) + 85 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL NULLIF ( + - 4, - 55 + + + 76 - - CASE + + 54 WHEN - 16 / 23 - 12 + - 13 / - 79 + - + 93 THEN NULL WHEN + - ( + 88 ) * + 10 + 5 * 94 THEN + 82 END ) + + + ( + - 82 ) / 57 * + 35 - - SUM ( ALL + - 93 ) + 85 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL - 39 - NULLIF ( CASE - 82 WHEN COUNT( * ) * - 67 + + 28 THEN NULL ELSE + 91 END, - 55 ) + - 51 * 13 * - 84 AS col2
----
55562

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL - 39 - NULLIF ( CASE - 82 WHEN COUNT ( * ) * - 67 + + 28 THEN NULL ELSE + 91 END, - 55 ) + - 51 * 13 * - 84 AS col2
----
55562

query I rowsort
SELECT 39 + + 36
----
75

query I rowsort
SELECT 49 + + 21 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7367
SELECT ALL 39 AS col0, - MAX( + + 28 ) * 40 + + 25 - CAST( NULL AS SIGNED ) AS col1
----
39
NULL

skipif mysql # not compatible
query II rowsort label-7367
SELECT ALL 39 AS col0, - MAX ( + + 28 ) * 40 + + 25 - CAST ( NULL AS INTEGER ) AS col1
----
39
NULL

query I rowsort
SELECT 58 + + 8 * - 99 AS col1
----
-734

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT 39 * - COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7369
SELECT 39 * - COUNT ( * ) AS col0
----
-39

query I rowsort
SELECT 84 + - + 58
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT 87 * COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-7371
SELECT 87 * COUNT ( * )
----
87

query I rowsort
SELECT ALL - 49 * + - 10 col2
----
490

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT ALL - 76 DIV + + 11
----
-6

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL - 76 / + + 11
----
-6

query I rowsort
SELECT DISTINCT - 58 * - - 65 AS col2
----
-3770

query I rowsort
SELECT DISTINCT - + 64 * + 35 AS col0
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT - 46 * + + COUNT( * ) + + - 52 * - + 70
----
3594

skipif mysql # not compatible
query I rowsort label-7376
SELECT - 46 * + + COUNT ( * ) + + - 52 * - + 70
----
3594

query I rowsort
SELECT - 16 * - + 67 * 31
----
33232

query II rowsort
SELECT ALL - 47 AS col1, 34 AS col1
----
-47
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT + + MIN( ALL - 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-7379
SELECT + + MIN ( ALL - 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-7380
SELECT + CASE - ( + - 31 ) WHEN + ( 72 ) THEN - CASE - - 46 WHEN + - 17 + COUNT( * ) THEN - + COUNT( * ) WHEN - - 96 THEN - MIN( ALL 30 ) ELSE SUM( - 1 ) / 44 END + - 32 * + - 27 ELSE + + 27 * 0 + COUNT( - 63 ) + - + 90 END AS col0, COUNT( * ) AS col2
----
-89
1

skipif mysql # not compatible
query II rowsort label-7380
SELECT + CASE - ( + - 31 ) WHEN + ( 72 ) THEN - CASE - - 46 WHEN + - 17 + COUNT ( * ) THEN - + COUNT ( * ) WHEN - - 96 THEN - MIN ( ALL 30 ) ELSE SUM ( - 1 ) / 44 END + - 32 * + - 27 ELSE + + 27 * 0 + COUNT ( - 63 ) + - + 90 END AS col0, COUNT ( * ) AS col2
----
-89
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7381
SELECT CAST( NULL AS DECIMAL ) - + + 68 * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT CAST ( NULL AS REAL ) - + + 68 * - 88
----
NULL

query I rowsort
SELECT ALL - - 47 + 51 AS col0
----
98

query I rowsort
SELECT ALL 35 + - - 14 AS col2
----
49

query I rowsort
SELECT ALL - ( 51 ) AS col0
----
-51

query I rowsort
SELECT - 30 * + 14 + - + 64 + - - 28 col0
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT SUM( ALL 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7386
SELECT SUM ( ALL 1 ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7387
SELECT ALL COALESCE ( - 69, + 48 * 96 + + + 96, 94 ) + + 81, CAST( NULL AS DECIMAL ) col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-7387
SELECT ALL COALESCE ( - 69, + 48 * 96 + + + 96, 94 ) + + 81, CAST ( NULL AS REAL ) col1
----
12
NULL

query I rowsort
SELECT ALL 79 * - - 91
----
7189

query I rowsort
SELECT 42 * - ( - 31 ) AS col2
----
1302

query I rowsort
SELECT ALL 28 col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7391
SELECT 49 DIV 10
----
4

skipif mysql # not compatible
query I rowsort label-7391
SELECT 49 / 10
----
4

query I rowsort
SELECT DISTINCT - 35 * - - 3
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7393
SELECT DISTINCT COUNT( * ) DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT COUNT ( * ) / - 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT ALL CAST( 38 AS SIGNED ) - + - 95
----
133

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL CAST ( 38 AS INTEGER ) - + - 95
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT 32 * ( - - COUNT( * ) ) col2
----
32

skipif mysql # not compatible
query I rowsort label-7395
SELECT 32 * ( - - COUNT ( * ) ) col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT COUNT( * ) - + 42
----
-41

skipif mysql # not compatible
query I rowsort label-7396
SELECT COUNT ( * ) - + 42
----
-41

query I rowsort
SELECT DISTINCT 78 * - 78
----
-6084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7398
SELECT CAST( NULL AS SIGNED ) - 61, - 28 * + ( + COUNT( * ) ) - COUNT( * ) + COUNT( * ) + - COUNT( * ) col0
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-7398
SELECT CAST ( NULL AS INTEGER ) - 61, - 28 * + ( + COUNT ( * ) ) - COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) col0
----
NULL
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7399
SELECT 87 DIV - 48
----
-1

skipif mysql # not compatible
query I rowsort label-7399
SELECT 87 / - 48
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7400
SELECT CASE + 94 WHEN + 77 * ( + MIN( + 7 ) ) THEN + COUNT( * ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN COUNT( * ) + + 72 / COUNT( * ) + 24 THEN NULL WHEN - + 89 THEN NULL ELSE NULL END + - 34 + NULLIF ( 21, + - 44 ) / - + 56 * + ( - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT CASE + 94 WHEN + 77 * ( + MIN ( + 7 ) ) THEN + COUNT ( * ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN COUNT ( * ) + + 72 / COUNT ( * ) + 24 THEN NULL WHEN - + 89 THEN NULL ELSE NULL END + - 34 + NULLIF ( 21, + - 44 ) / - + 56 * + ( - 77 )
----
NULL

query I rowsort
SELECT ALL NULLIF ( - + 60, + 37 ) * + 99
----
-5940

onlyif mysql # aggregate syntax: 
query II rowsort label-7402
SELECT DISTINCT 83 * + COUNT( * ), 43 col2
----
83
43

skipif mysql # not compatible
query II rowsort label-7402
SELECT DISTINCT 83 * + COUNT ( * ), 43 col2
----
83
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT 42 * - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT 42 * - COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-7404
SELECT DISTINCT + 90 / NULLIF ( + COUNT( * ), COUNT( * ) ) / + + 29 AS col2, COALESCE ( + 71, 36 * 80 * COUNT( * ) + 71, - 37 ) + - 94 * + 45 + + 81 AS col1
----
NULL
-4078

skipif mysql # not compatible
query II rowsort label-7404
SELECT DISTINCT + 90 / NULLIF ( + COUNT ( * ), COUNT ( * ) ) / + + 29 AS col2, COALESCE ( + 71, 36 * 80 * COUNT ( * ) + 71, - 37 ) + - 94 * + 45 + + 81 AS col1
----
NULL
-4078

query I rowsort
SELECT DISTINCT ( + - 3 ) AS col0
----
-3

query I rowsort
SELECT 83 + + 93 AS col0
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT + 86 - + CAST( NULL AS SIGNED ) / COUNT( - 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT + 86 - + CAST ( NULL AS INTEGER ) / COUNT ( - 17 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL - MIN( DISTINCT - 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL - MIN ( DISTINCT - 22 ) AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7409
SELECT - - NULLIF ( - 98, AVG ( - + CAST( - 47 AS SIGNED ) ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-7409
SELECT - - NULLIF ( - 98, AVG ( - + CAST ( - 47 AS INTEGER ) ) ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT - MAX( + 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-7410
SELECT - MAX ( + 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT 59 + - + 43 * + COUNT( * ) col1
----
16

skipif mysql # not compatible
query I rowsort label-7411
SELECT 59 + - + 43 * + COUNT ( * ) col1
----
16

query I rowsort
SELECT DISTINCT + 47 col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7413
SELECT 13 * 30 DIV + COUNT( * ) + - - 14 + - - 17 * + 21 AS col2
----
761

skipif mysql # not compatible
query I rowsort label-7413
SELECT 13 * 30 / + COUNT ( * ) + - - 14 + - - 17 * + 21 AS col2
----
761

query I rowsort
SELECT ALL + - 89 * 71 + - 79
----
-6398

onlyif mysql # DIV for integer division: 
query I rowsort label-7415
SELECT + + 36 DIV - 28 + 43 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7415
SELECT + + 36 / - 28 + 43 AS col2
----
42

query I rowsort
SELECT DISTINCT - 74 * - 44
----
3256

query I rowsort
SELECT DISTINCT 82 * 38 + + 93 + - + 4
----
3205

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT ALL + 14 * - COUNT( * ) + + + ( - COUNT( ALL + - 85 ) ) + - + ( - ( + - 20 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL + 14 * - COUNT ( * ) + + + ( - COUNT ( ALL + - 85 ) ) + - + ( - ( + - 20 ) )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7419
SELECT CASE + 29 WHEN - CAST( + COUNT( * ) AS SIGNED ) THEN - 11 WHEN + 5 THEN + 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT CASE + 29 WHEN - CAST ( + COUNT ( * ) AS INTEGER ) THEN - 11 WHEN + 5 THEN + 39 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL + 64 * + 8 * + 81 * - 41 + - COALESCE ( - ( + 41 ), + - 91 + COUNT( - - 33 ) - - ( + + 13 ), 76 ) AS col2
----
-1700311

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL + 64 * + 8 * + 81 * - 41 + - COALESCE ( - ( + 41 ), + - 91 + COUNT ( - - 33 ) - - ( + + 13 ), 76 ) AS col2
----
-1700311

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT + 2 + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7421
SELECT + 2 + - COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + + 4 * + + 60 + 44
----
284

query I rowsort
SELECT + 30 + - 81
----
-51

query I rowsort
SELECT DISTINCT - + 4 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT + COUNT( * ) * - 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-7425
SELECT + COUNT ( * ) * - 34 AS col2
----
-34

query I rowsort
SELECT - 32 + ( + - 84 )
----
-116

query I rowsort
SELECT - 91 * - 49 * + 5 col1
----
22295

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7428
SELECT DISTINCT + COUNT( ALL + 51 ) DIV + NULLIF ( + ( + 46 ), - NULLIF ( - 7, 19 ) + - 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT + COUNT ( ALL + 51 ) / + NULLIF ( + ( + 46 ), - NULLIF ( - 7, 19 ) + - 94 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT + COUNT( ALL + - 92 ) * - SUM( DISTINCT 35 ) * - - 24 AS col0
----
-840

skipif mysql # not compatible
query I rowsort label-7429
SELECT + COUNT ( ALL + - 92 ) * - SUM ( DISTINCT 35 ) * - - 24 AS col0
----
-840

onlyif mysql # DIV for integer division: 
query II rowsort label-7430
SELECT ALL + ( - 72 ) DIV 18 + 29 + - 52 AS col2, 90
----
-27
90

skipif mysql # not compatible
query II rowsort label-7430
SELECT ALL + ( - 72 ) / 18 + 29 + - 52 AS col2, 90
----
-27
90

query I rowsort
SELECT + 61 * - 80 AS col2
----
-4880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7432
SELECT ALL 84 * - CASE - + SUM( + 2 ) WHEN + - ( + - 18 ) * + CAST( NULL AS SIGNED ) THEN COUNT( * ) * 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL 84 * - CASE - + SUM ( + 2 ) WHEN + - ( + - 18 ) * + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT - SUM( ALL 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-7433
SELECT - SUM ( ALL 74 ) AS col2
----
-74

query I rowsort
SELECT - 25 * + 62 * + 25
----
-38750

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT + COUNT( * ) * - 90 col2
----
-90

skipif mysql # not compatible
query I rowsort label-7435
SELECT + COUNT ( * ) * - 90 col2
----
-90

query I rowsort
SELECT + 42 + 18 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT + COUNT( * ) - - CASE - 13 WHEN - NULLIF ( + + 59, - 27 ) THEN + 24 END * - 73 * + + SUM( + 89 ) + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT + COUNT ( * ) - - CASE - 13 WHEN - NULLIF ( + + 59, - 27 ) THEN + 24 END * - 73 * + + SUM ( + 89 ) + 34 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( 75, - 83 / + 63 ) + + 56 AS col0
----
131

query I rowsort
SELECT DISTINCT ( - 18 )
----
-18

query II rowsort
SELECT 75, - 30 * 61 * - 1 AS col2
----
75
1830

query I rowsort
SELECT DISTINCT 36 + 99 AS col2
----
135

query I rowsort
SELECT + + 8 * + 85
----
680

query I rowsort
SELECT + + ( 66 ) + 26 + 39
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL COUNT( * ) + + COUNT( * ) + 84 * + - 88 * + MIN( ALL + 53 ) * + 60 AS col2
----
-23506558

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL COUNT ( * ) + + COUNT ( * ) + 84 * + - 88 * + MIN ( ALL + 53 ) * + 60 AS col2
----
-23506558

query I rowsort
SELECT ALL COALESCE ( 22, + + ( - 67 ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT + 84 + - CASE + 54 WHEN - COUNT( DISTINCT 18 ) - + + 47 + - 62 - COUNT( * ) * 96 * - 61 THEN ( - 85 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT + 84 + - CASE + 54 WHEN - COUNT ( DISTINCT 18 ) - + + 47 + - 62 - COUNT ( * ) * 96 * - 61 THEN ( - 85 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7447
SELECT - CAST( + 78 AS SIGNED ) DIV 95 + + 10
----
10

skipif mysql # not compatible
query I rowsort label-7447
SELECT - CAST ( + 78 AS INTEGER ) / 95 + + 10
----
10

query I rowsort
SELECT - 7 + + 65 + 39 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT - MAX( DISTINCT 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7449
SELECT - MAX ( DISTINCT 25 ) AS col0
----
-25

query II rowsort
SELECT ALL 77, - ( + - 27 ) AS col0
----
77
27

query I rowsort
SELECT - ( 0 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 45 * - 91 * + 16 AS col1
----
-65520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7453
SELECT + - CAST( + MIN( + ( - 57 ) ) AS SIGNED ) * + 14
----
798

skipif mysql # not compatible
query I rowsort label-7453
SELECT + - CAST ( + MIN ( + ( - 57 ) ) AS INTEGER ) * + 14
----
798

onlyif mysql # DIV for integer division: 
query I rowsort label-7454
SELECT DISTINCT + + 46 DIV - - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT + + 46 / - - 54 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7455
SELECT DISTINCT - + 26 DIV + - ( + CASE 12 WHEN - - MIN( ALL - - CASE 23 WHEN + 26 THEN - CAST( + 92 AS SIGNED ) ELSE NULL END ) THEN NULL WHEN - 39 + + 75 + 82 * 43 THEN - COUNT( * ) ELSE - 47 END ) + SUM( ALL + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT - + 26 / + - ( + CASE 12 WHEN - - MIN ( ALL - - CASE 23 WHEN + 26 THEN - CAST ( + 92 AS INTEGER ) ELSE NULL END ) THEN NULL WHEN - 39 + + 75 + 82 * 43 THEN - COUNT ( * ) ELSE - 47 END ) + SUM ( ALL + 48 )
----
48

query I rowsort
SELECT CASE - 29 WHEN + 75 THEN NULL ELSE + - 17 END AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT DISTINCT + + SUM( - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT + + SUM ( - 10 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7458
SELECT ALL + 52 * - + 12 DIV + COUNT( * ) AS col2
----
-624

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL + 52 * - + 12 / + COUNT ( * ) AS col2
----
-624

query I rowsort
SELECT - 9 * - 54 * - 46 AS col0
----
-22356

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL COUNT( * ) * + 54 * 15 * + 49 * - 68
----
-2698920

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL COUNT ( * ) * + 54 * 15 * + 49 * - 68
----
-2698920

query II rowsort
SELECT + 72 col0, 41 * 4 - - 47 AS col1
----
72
211

query I rowsort
SELECT NULLIF ( + - 65, 49 )
----
-65

query I rowsort
SELECT NULLIF ( + 74, - 25 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7464
SELECT - COUNT( * ) DIV - 65 * - + 46 col1
----
0

skipif mysql # not compatible
query I rowsort label-7464
SELECT - COUNT ( * ) / - 65 * - + 46 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT ALL + ( - COALESCE ( - + SUM( ALL + 41 ), + + 67 ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL + ( - COALESCE ( - + SUM ( ALL + 41 ), + + 67 ) ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT - COUNT( * ) * + - 70 * - - 24 AS col0
----
1680

skipif mysql # not compatible
query I rowsort label-7466
SELECT - COUNT ( * ) * + - 70 * - - 24 AS col0
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + COUNT( * ) * - + 23 * + 54 * + + 3 col2
----
-3726

skipif mysql # not compatible
query I rowsort label-7467
SELECT + COUNT ( * ) * - + 23 * + 54 * + + 3 col2
----
-3726

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL COUNT( DISTINCT - - 86 ) * - 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL COUNT ( DISTINCT - - 86 ) * - 3 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL 88 * + 72 + 16 * - COUNT( * )
----
6320

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL 88 * + 72 + 16 * - COUNT ( * )
----
6320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7470
SELECT - COUNT( * ) col2, - CAST( + - 27 AS SIGNED )
----
-1
27

skipif mysql # not compatible
query II rowsort label-7470
SELECT - COUNT ( * ) col2, - CAST ( + - 27 AS INTEGER )
----
-1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL 6 * + + 16 + + + ( - - COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL 6 * + + 16 + + + ( - - COUNT ( * ) )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT ALL CAST( - + 75 AS SIGNED ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL CAST ( - + 75 AS INTEGER ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7473
SELECT COUNT( * ), + 0 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-7473
SELECT COUNT ( * ), + 0 AS col1
----
1
0

query I rowsort
SELECT DISTINCT - - 82 + + - 54 * 89 * + 88
----
-422846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7475
SELECT ALL + - 53 * - CAST( + 12 AS SIGNED ) * + COALESCE ( 71, + 16, - 16 + COUNT( * ) )
----
45156

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL + - 53 * - CAST ( + 12 AS INTEGER ) * + COALESCE ( 71, + 16, - 16 + COUNT ( * ) )
----
45156

query I rowsort
SELECT ALL - ( - 45 ) + 74
----
119

query II rowsort
SELECT - 44, 68 + 91 * - 92 AS col2
----
-44
-8304

query II rowsort
SELECT DISTINCT 55 AS col0, 3
----
55
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7479
SELECT ALL - + 40 + COUNT( * ) + - 45 * 44 * 81 * - 73 - 97 - COALESCE ( - 7, CAST( NULL AS SIGNED ) ) AS col0
----
11707611

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL - + 40 + COUNT ( * ) + - 45 * 44 * 81 * - 73 - 97 - COALESCE ( - 7, CAST ( NULL AS INTEGER ) ) AS col0
----
11707611

query I rowsort
SELECT DISTINCT + + 77 + 96
----
173

query I rowsort
SELECT - - 81 AS col0
----
81

query I rowsort
SELECT ALL 1 + - 1
----
0

query I rowsort
SELECT DISTINCT 59 * + 40 col0
----
2360

onlyif mysql # aggregate syntax: 
query II rowsort label-7484
SELECT DISTINCT - COUNT( * ) AS col0, + 23 + 17 * + 88
----
-1
1519

skipif mysql # not compatible
query II rowsort label-7484
SELECT DISTINCT - COUNT ( * ) AS col0, + 23 + 17 * + 88
----
-1
1519

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT MAX( ALL - + 93 ) + 56 col2
----
-37

skipif mysql # not compatible
query I rowsort label-7485
SELECT MAX ( ALL - + 93 ) + 56 col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT + 7 * - 7 + - COUNT( DISTINCT 19 ) * + SUM( + 39 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7486
SELECT + 7 * - 7 + - COUNT ( DISTINCT 19 ) * + SUM ( + 39 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT 95 * - + NULLIF ( - 10, + 34 ) + 78 + COUNT( * )
----
1029

skipif mysql # not compatible
query I rowsort label-7487
SELECT 95 * - + NULLIF ( - 10, + 34 ) + 78 + COUNT ( * )
----
1029

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT 81 - COUNT( * ) col1
----
80

skipif mysql # not compatible
query I rowsort label-7488
SELECT 81 - COUNT ( * ) col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7489
SELECT + 69 DIV + 87 + 7 - + - 56 + - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7489
SELECT + 69 / + 87 + 7 - + - 56 + - COUNT ( * ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT ALL - CAST( + + 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL - CAST ( + + 86 AS INTEGER )
----
-86

query I rowsort
SELECT - 74 * 94
----
-6956

query I rowsort
SELECT ALL 43 * - 27 * - 84
----
97524

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL - COUNT( * ) * - - COALESCE ( CASE 73 WHEN 2 THEN NULL WHEN - COUNT( * ) THEN - 31 + - + ( 12 ) END, + - COUNT( * ) ) + - - 13 - - 46 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL - COUNT ( * ) * - - COALESCE ( CASE 73 WHEN 2 THEN NULL WHEN - COUNT ( * ) THEN - 31 + - + ( 12 ) END, + - COUNT ( * ) ) + - - 13 - - 46 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT 32 - 75 + + COUNT( + - 54 )
----
-42

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT 32 - 75 + + COUNT ( + - 54 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7495
SELECT ALL - 93 DIV + COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - 93 / + COUNT ( * ) AS col2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT AVG ( CAST( NULL AS SIGNED ) ) * 41 * + 74 + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT AVG ( CAST ( NULL AS INTEGER ) ) * 41 * + 74 + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT 23 / + - 63 * CASE - - 64 WHEN - 53 THEN + - MIN( DISTINCT + 23 ) * + 32 + - - COALESCE ( - - NULLIF ( 7, - 46 ), 56 ) + + + 66 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT 23 / + - 63 * CASE - - 64 WHEN - 53 THEN + - MIN ( DISTINCT + 23 ) * + 32 + - - COALESCE ( - - NULLIF ( 7, - 46 ), 56 ) + + + 66 END col2
----
NULL

query I rowsort
SELECT NULLIF ( + 17, + 9 ) * + 22
----
374

query I rowsort
SELECT 68 * + + 44 AS col1
----
2992

query II rowsort
SELECT 71 + + 48 AS col1, - 18 col1
----
119
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7501
SELECT + 96 * CAST( - + 86 AS SIGNED ) + - 69 - 20 - SUM( DISTINCT - 26 ) - 51 * - 40
----
-6279

skipif mysql # not compatible
query I rowsort label-7501
SELECT + 96 * CAST ( - + 86 AS INTEGER ) + - 69 - 20 - SUM ( DISTINCT - 26 ) - 51 * - 40
----
-6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7502
SELECT ALL CAST( NULL AS SIGNED ) + + 40 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL CAST ( NULL AS INTEGER ) + + 40 col1
----
NULL

query I rowsort
SELECT ALL - 32 col1
----
-32

query I rowsort
SELECT DISTINCT + 4 + - 28 * 54
----
-1508

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL + MAX( - 35 ) + + 75 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL + MAX ( - 35 ) + + 75 AS col0
----
40

query I rowsort
SELECT 83 + - - 8 * - 40
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-7507
SELECT DISTINCT + 4 + - 30 DIV + 85 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT + 4 + - 30 / + 85 AS col0
----
4

query I rowsort
SELECT 2 + - 89 + + + 95 AS col0
----
8

query I rowsort
SELECT ALL - 86 + + 40 * 90 AS col0
----
3514

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT COUNT( DISTINCT - 23 ) * + 15 + 81 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7510
SELECT COUNT ( DISTINCT - 23 ) * + 15 + 81 AS col2
----
96

query I rowsort
SELECT + 6 + - 19
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7512
SELECT - + CAST( NULL AS SIGNED ) * + 26 - - NULLIF ( - 21, + - 95 + - COALESCE ( - 26, + - MIN( ALL - 71 ) ) + + 46 ), 64 - + + COUNT( * ) AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-7512
SELECT - + CAST ( NULL AS INTEGER ) * + 26 - - NULLIF ( - 21, + - 95 + - COALESCE ( - 26, + - MIN ( ALL - 71 ) ) + + 46 ), 64 - + + COUNT ( * ) AS col0
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL + COUNT( 13 )
----
1

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL + COUNT ( 13 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT - COUNT( * ) * - 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7514
SELECT - COUNT ( * ) * - 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL SUM( + 24 ) * - 21 + 52 - - - 6 + - 42 col1
----
-500

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL SUM ( + 24 ) * - 21 + 52 - - - 6 + - 42 col1
----
-500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7516
SELECT - 55 + - 18 + COUNT( * ) * + 12 - 46 AS col1, 2 DIV COUNT( * )
----
-107
2

skipif mysql # not compatible
query II rowsort label-7516
SELECT - 55 + - 18 + COUNT ( * ) * + 12 - 46 AS col1, 2 / COUNT ( * )
----
-107
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT DISTINCT - SUM( DISTINCT + 44 ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT - SUM ( DISTINCT + 44 ) col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-7518
SELECT - 71 * - CASE - COUNT( * ) WHEN 56 THEN - SUM( + 84 ) + + 6 WHEN - - 57 THEN NULL END + SUM( ALL - + 58 ), - COUNT( * ) * + - 26 col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-7518
SELECT - 71 * - CASE - COUNT ( * ) WHEN 56 THEN - SUM ( + 84 ) + + 6 WHEN - - 57 THEN NULL END + SUM ( ALL - + 58 ), - COUNT ( * ) * + - 26 col0
----
NULL
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT MIN( DISTINCT - - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-7519
SELECT MIN ( DISTINCT - - 72 )
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-7520
SELECT + 81 DIV - 66 + + - 66 AS col1, 44 AS col0
----
-67
44

skipif mysql # not compatible
query II rowsort label-7520
SELECT + 81 / - 66 + + - 66 AS col1, 44 AS col0
----
-67
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT 68 * + - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-7521
SELECT 68 * + - COUNT ( * )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7522
SELECT - 80 DIV + ( + 16 ) - + - 15 col1
----
10

skipif mysql # not compatible
query I rowsort label-7522
SELECT - 80 / + ( + 16 ) - + - 15 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT 52 - - MAX( ALL 91 ) AS col0
----
143

skipif mysql # not compatible
query I rowsort label-7523
SELECT 52 - - MAX ( ALL 91 ) AS col0
----
143

query I rowsort
SELECT ALL 14 * - 97
----
-1358

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT 58 DIV - 17 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7525
SELECT 58 / - 17 AS col2
----
-3

query I rowsort
SELECT ALL 25 + + 25
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7527
SELECT ALL CAST( + - 81 AS SIGNED ) + - 18 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL CAST ( + - 81 AS INTEGER ) + - 18 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT SUM( DISTINCT - - 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7528
SELECT SUM ( DISTINCT - - 39 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL COUNT( * ) + 20 col2
----
21

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL COUNT ( * ) + 20 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT DISTINCT 19 * SUM( ALL 64 ) * ( - 53 ) * + - COUNT( * ) + - 59 AS col1
----
64389

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT 19 * SUM ( ALL 64 ) * ( - 53 ) * + - COUNT ( * ) + - 59 AS col1
----
64389

query II rowsort
SELECT ALL - 13 AS col2, 51
----
-13
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7532
SELECT + COUNT( * ) DIV 30 - 86 + - 8 + + + 17 DIV 84 col2, 24 - - 30 + COUNT( * ) AS col1
----
-94
55

skipif mysql # not compatible
query II rowsort label-7532
SELECT + COUNT ( * ) / 30 - 86 + - 8 + + + 17 / 84 col2, 24 - - 30 + COUNT ( * ) AS col1
----
-94
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7533
SELECT ALL 71 + - + 88 - + 52 + - 94 * + 86 * + 69 DIV COUNT( * )
----
-557865

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL 71 + - + 88 - + 52 + - 94 * + 86 * + 69 / COUNT ( * )
----
-557865

query II rowsort
SELECT 75, 17 AS col1
----
75
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + SUM( + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-7535
SELECT + SUM ( + 16 )
----
16

query I rowsort
SELECT 83 * 21 * + + 97
----
169071

query I rowsort
SELECT 3 * 82 col2
----
246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7538
SELECT DISTINCT - CASE COUNT( * ) WHEN + 12 / COUNT( * ) * + + 68 * + 38 THEN + + 66 * + - CAST( + 34 AS SIGNED ) + - CAST( NULL AS SIGNED ) END * 89 * - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT - CASE COUNT ( * ) WHEN + 12 / COUNT ( * ) * + + 68 * + 38 THEN + + 66 * + - CAST ( + 34 AS INTEGER ) + - CAST ( NULL AS INTEGER ) END * 89 * - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7539
SELECT - + COUNT( * ), 4 * + - 9 + MIN( - 95 ) AS col0
----
-1
-131

skipif mysql # not compatible
query II rowsort label-7539
SELECT - + COUNT ( * ), 4 * + - 9 + MIN ( - 95 ) AS col0
----
-1
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT MIN( + 23 ) * - CASE WHEN NOT + 98 IS NOT NULL THEN - 2 END * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT MIN ( + 23 ) * - CASE WHEN NOT + 98 IS NOT NULL THEN - 2 END * - 93
----
NULL

query I rowsort
SELECT ALL - - 85 * 58 AS col0
----
4930

query I rowsort
SELECT ( + CASE - 11 WHEN 95 THEN NULL WHEN - - 1 THEN NULL ELSE - 65 - + 70 END ) + + 80 AS col2
----
-55

query I rowsort
SELECT - + 95 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ALL - 8 * + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - 8 * + - COUNT ( * )
----
8

query I rowsort
SELECT 82 * - 56 AS col2
----
-4592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7546
SELECT - COALESCE ( - - 72, 48 * COUNT( * ) + + 75 - - COUNT( * ) DIV - 32 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7546
SELECT - COALESCE ( - - 72, 48 * COUNT ( * ) + + 75 - - COUNT ( * ) / - 32 ) AS col2
----
-72

query I rowsort
SELECT + 6 + 54 AS col1
----
60

query I rowsort
SELECT - - ( - ( - + 5 ) ) * 44 - 25 AS col2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT DISTINCT MIN( ALL 79 )
----
79

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT MIN ( ALL 79 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7550
SELECT ALL - + CAST( - - 8 AS SIGNED ) * - 8 + + 29
----
93

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL - + CAST ( - - 8 AS INTEGER ) * - 8 + + 29
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7551
SELECT - + CASE + NULLIF ( 40, + 55 ) WHEN + 51 * 70 * - CAST( NULL AS SIGNED ) * - 76 THEN NULL WHEN - + 13 THEN + 38 * - + COUNT( * ) + - COALESCE ( + + 57, + 63 ) * + 80 END - + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT - + CASE + NULLIF ( 40, + 55 ) WHEN + 51 * 70 * - CAST ( NULL AS INTEGER ) * - 76 THEN NULL WHEN - + 13 THEN + 38 * - + COUNT ( * ) + - COALESCE ( + + 57, + 63 ) * + 80 END - + 21 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7552
SELECT ALL - - 68 DIV + + 23
----
2

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL - - 68 / + + 23
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7553
SELECT ALL + MAX( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL + MAX ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT - - 1 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7554
SELECT - - 1 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 43 * 24
----
-1032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7556
SELECT - + CAST( NULL AS SIGNED ) + + - MAX( ALL - + 64 ) / - 37 + + CAST( - 37 AS SIGNED ) col0, 40 col1
----
NULL
40

skipif mysql # not compatible
query II rowsort label-7556
SELECT - + CAST ( NULL AS INTEGER ) + + - MAX ( ALL - + 64 ) / - 37 + + CAST ( - 37 AS INTEGER ) col0, 40 col1
----
NULL
40

query I rowsort
SELECT ALL + - 93 * + 80 + 42
----
-7398

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT + 14 + + COUNT( * ) * 57 * + + 38
----
2180

skipif mysql # not compatible
query I rowsort label-7558
SELECT + 14 + + COUNT ( * ) * 57 * + + 38
----
2180

query I rowsort
SELECT ALL - 30 + + + 73
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT - 26 + + SUM( DISTINCT - 7 )
----
-33

skipif mysql # not compatible
query I rowsort label-7560
SELECT - 26 + + SUM ( DISTINCT - 7 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT + 14 DIV + - 53 + + + 47
----
47

skipif mysql # not compatible
query I rowsort label-7561
SELECT + 14 / + - 53 + + + 47
----
47

query I rowsort
SELECT DISTINCT 7 * ( NULLIF ( 93, - - 0 ) ) + - 3 * - ( - + 20 ) + - 33 AS col2
----
558

query I rowsort
SELECT - 79 + + 78
----
-1

query I rowsort
SELECT DISTINCT + NULLIF ( - 72, + 90 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL 51 * NULLIF ( 84, + + COUNT( * ) ) + - 55 - + - 50 AS col2
----
4279

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL 51 * NULLIF ( 84, + + COUNT ( * ) ) + - 55 - + - 50 AS col2
----
4279

query II rowsort
SELECT ALL + ( 33 ), + 91 AS col0
----
33
91

query I rowsort
SELECT DISTINCT 44 * + 84 + ( - 25 ) AS col2
----
3671

query I rowsort
SELECT - 43 * + 87 col2
----
-3741

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT DISTINCT ( - 8 ) * - ( - 57 ) * NULLIF ( - - 14, COALESCE ( 26, + + 43 ) * 18 * ( 78 ) ) + 32 + + 67 * MAX( DISTINCT 86 ) + + 17 + + 89
----
-484

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT ( - 8 ) * - ( - 57 ) * NULLIF ( - - 14, COALESCE ( 26, + + 43 ) * 18 * ( 78 ) ) + 32 + + 67 * MAX ( DISTINCT 86 ) + + 17 + + 89
----
-484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT ALL 88 * 36 + 21 + - + 6 + NULLIF ( + - CAST( NULL AS SIGNED ), + 46 + + + 78 ) * - CAST( NULL AS SIGNED ) * + 37 * - 0 * 44 * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL 88 * 36 + 21 + - + 6 + NULLIF ( + - CAST ( NULL AS INTEGER ), + 46 + + + 78 ) * - CAST ( NULL AS INTEGER ) * + 37 * - 0 * 44 * - 73
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7571
SELECT ALL 94 * + 91 + - CAST( 80 AS SIGNED ) * - 67
----
13914

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL 94 * + 91 + - CAST ( 80 AS INTEGER ) * - 67
----
13914

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT - COUNT( * ) * - 97 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7572
SELECT - COUNT ( * ) * - 97 AS col2
----
97

query I rowsort
SELECT + 18 * - 64 col0
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT + COUNT( * ) + - 52 + + 0 col0
----
-51

skipif mysql # not compatible
query I rowsort label-7574
SELECT + COUNT ( * ) + - 52 + + 0 col0
----
-51

query I rowsort
SELECT + 50 * + - 88 + + + 65 AS col2
----
-4335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7576
SELECT ALL + 8 * COUNT( * ) * 92 DIV + - 43 - - NULLIF ( - - CASE - + 78 WHEN 69 THEN NULL ELSE 43 END, - ( + 62 ) )
----
26

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL + 8 * COUNT ( * ) * 92 / + - 43 - - NULLIF ( - - CASE - + 78 WHEN 69 THEN NULL ELSE 43 END, - ( + 62 ) )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7577
SELECT ALL + 29 * - 89 * - CAST( + 15 AS SIGNED ) / + - 61 - - CASE - + 5 WHEN + COUNT( ALL CAST( NULL AS SIGNED ) ) THEN + + 65 WHEN 57 - 59 THEN NULL ELSE - - CASE - - 48 WHEN - 46 THEN + COUNT( * ) END + + ( - COALESCE ( 8, + 7 ) ) + + - 64 END / + COALESCE ( + - 97, - 11 / + - COUNT( * ) + ( - 62 ) + 82 / ( 67 ), + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + 29 * - 89 * - CAST ( + 15 AS INTEGER ) / + - 61 - - CASE - + 5 WHEN + COUNT ( ALL CAST ( NULL AS INTEGER ) ) THEN + + 65 WHEN 57 - 59 THEN NULL ELSE - - CASE - - 48 WHEN - 46 THEN + COUNT ( * ) END + + ( - COALESCE ( 8, + 7 ) ) + + - 64 END / + COALESCE ( + - 97, - 11 / + - COUNT ( * ) + ( - 62 ) + 82 / ( 67 ), + 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT + - 18 + - + COUNT( - + 38 ) + - 44 - 89 + + 5 * 26 * SUM( 78 ) + 39
----
10027

skipif mysql # not compatible
query I rowsort label-7578
SELECT + - 18 + - + COUNT ( - + 38 ) + - 44 - 89 + + 5 * 26 * SUM ( 78 ) + 39
----
10027

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7579
SELECT + - 59 DIV - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-7579
SELECT + - 59 / - COUNT ( * )
----
59

query I rowsort
SELECT + + 48 * 69 AS col0
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT + COUNT( * ) + + + 90
----
91

skipif mysql # not compatible
query I rowsort label-7581
SELECT + COUNT ( * ) + + + 90
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7582
SELECT + - CASE 58 WHEN - - CAST( - + 39 AS SIGNED ) * 39 * - MIN( 71 ) THEN NULL ELSE + 79 * - 64 END * + 2
----
10112

skipif mysql # not compatible
query I rowsort label-7582
SELECT + - CASE 58 WHEN - - CAST ( - + 39 AS INTEGER ) * 39 * - MIN ( 71 ) THEN NULL ELSE + 79 * - 64 END * + 2
----
10112

query I rowsort
SELECT - 60 * - + 75
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT + COUNT( * ) + - 10
----
-9

skipif mysql # not compatible
query I rowsort label-7584
SELECT + COUNT ( * ) + - 10
----
-9

query I rowsort
SELECT + - 16 + - 50 + - 84 col2
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT - - SUM( - 19 ) * COUNT( ALL - ( 65 ) ), NULLIF ( - 39, + 65 + + 46 ) AS col2
----
-19
-39

skipif mysql # not compatible
query II rowsort label-7586
SELECT - - SUM ( - 19 ) * COUNT ( ALL - ( 65 ) ), NULLIF ( - 39, + 65 + + 46 ) AS col2
----
-19
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT ALL - 52 * + + MAX( DISTINCT 41 ) * 90 * + + 99
----
-18996120

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - 52 * + + MAX ( DISTINCT 41 ) * 90 * + + 99
----
-18996120

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT - + 41 + - 14 + + 3 * - + COUNT( + - 23 ) * - + 10 + - + 98 * - + CASE + 46 WHEN + 56 THEN - 55 * 87 + 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT - + 41 + - 14 + + 3 * - + COUNT ( + - 23 ) * - + 10 + - + 98 * - + CASE + 46 WHEN + 56 THEN - 55 * 87 + 8 END AS col2
----
NULL

query I rowsort
SELECT ( + 13 ) AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7590
SELECT DISTINCT 32 + CASE - CASE - 16 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - 23 END WHEN + - 76 THEN - - COALESCE ( 46, - 5 ) + 52 WHEN SUM( - 85 ) * + 70 + 23 + - CAST( - COUNT( * ) AS SIGNED ) + - 11 / 11 * + ( + ( - - 21 ) ) * + - 75 * + + 90 + + 72 * - + 71 - - - 71 / + ( - + 98 ) - - 7 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT 32 + CASE - CASE - 16 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 23 END WHEN + - 76 THEN - - COALESCE ( 46, - 5 ) + 52 WHEN SUM ( - 85 ) * + 70 + 23 + - CAST ( - COUNT ( * ) AS INTEGER ) + - 11 / 11 * + ( + ( - - 21 ) ) * + - 75 * + + 90 + + 72 * - + 71 - - - 71 / + ( - + 98 ) - - 7 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7591
SELECT + COUNT( DISTINCT + 85 ) AS col2, MIN( ALL - 63 )
----
1
-63

skipif mysql # not compatible
query II rowsort label-7591
SELECT + COUNT ( DISTINCT + 85 ) AS col2, MIN ( ALL - 63 )
----
1
-63

query I rowsort
SELECT - 80 * + - 16 AS col1
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL CASE - + 32 WHEN + 7 THEN - 97 * + 48 * 52 + 16 WHEN 78 * COUNT( * ) THEN COUNT( * ) / 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL CASE - + 32 WHEN + 7 THEN - 97 * + 48 * 52 + 16 WHEN 78 * COUNT ( * ) THEN COUNT ( * ) / 96 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7594
SELECT ALL + 72 DIV + 20 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL + 72 / + 20 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT - MAX( + 13 ) / + 51 * + 11 + - CASE 95 WHEN + 36 * 45 THEN - MAX( ALL - 16 ) + COUNT( * ) * 65 WHEN + 60 * + NULLIF ( - 45, - CASE - ( - 15 ) WHEN - 9 THEN - 73 ELSE 32 END ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7595
SELECT - MAX ( + 13 ) / + 51 * + 11 + - CASE 95 WHEN + 36 * 45 THEN - MAX ( ALL - 16 ) + COUNT ( * ) * 65 WHEN + 60 * + NULLIF ( - 45, - CASE - ( - 15 ) WHEN - 9 THEN - 73 ELSE 32 END ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 13 col0
----
13

query I rowsort
SELECT DISTINCT + 45 * 63 col2
----
2835

query I rowsort
SELECT - ( + 68 ) * + - 5 * + 38 * - 17
----
-219640

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT + ( - 70 ) DIV - - 62 + - + 21 + - 16
----
-38

skipif mysql # not compatible
query I rowsort label-7599
SELECT + ( - 70 ) / - - 62 + - + 21 + - 16
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-7600
SELECT ALL 15 DIV + 53 * + + 35 + + 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL 15 / + 53 * + + 35 + + 15 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT + COUNT( * ) * - 21 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + COUNT ( * ) * - 21 AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7602
SELECT ALL + CAST( NULL AS SIGNED ) col2, - 71 AS col0
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-7602
SELECT ALL + CAST ( NULL AS INTEGER ) col2, - 71 AS col0
----
NULL
-71

query I rowsort
SELECT ALL - 0 * - 57
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7604
SELECT + COALESCE ( - 70, + 50 ) * - NULLIF ( + - 53, - 56 ) + - COUNT( * ) * + 3, - COUNT( * ) AS col0
----
-3713
-1

skipif mysql # not compatible
query II rowsort label-7604
SELECT + COALESCE ( - 70, + 50 ) * - NULLIF ( + - 53, - 56 ) + - COUNT ( * ) * + 3, - COUNT ( * ) AS col0
----
-3713
-1

query I rowsort
SELECT DISTINCT - 82 * + 96 * + + 82
----
-645504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7606
SELECT ALL + COUNT( * ) DIV 53 - - 58 - - 0 + - NULLIF ( 47, + 38 ) * + 64 - - 93
----
-2857

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL + COUNT ( * ) / 53 - - 58 - - 0 + - NULLIF ( 47, + 38 ) * + 64 - - 93
----
-2857

query I rowsort
SELECT ALL + COALESCE ( + + 60, 1 ) col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7608
SELECT + CASE 84 WHEN - ( 11 ) + NULLIF ( 24, 73 / 76 ) THEN + CAST( COALESCE ( - 88, - 85, + COUNT( * ) ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT + CASE 84 WHEN - ( 11 ) + NULLIF ( 24, 73 / 76 ) THEN + CAST ( COALESCE ( - 88, - 85, + COUNT ( * ) ) AS INTEGER ) END
----
NULL

query I rowsort
SELECT ( 52 ) col2
----
52

query I rowsort
SELECT 2 * 58
----
116

query I rowsort
SELECT NULLIF ( - 99, + 36 ) * - 62
----
6138

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT DISTINCT - CASE + 28 WHEN + 69 THEN NULL ELSE + 40 + COUNT( * ) * + CASE - 24 + + 40 WHEN + 77 * - 1 - 54 * + MIN( 26 ) THEN 42 * 47 + 80 * 5 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT - CASE + 28 WHEN + 69 THEN NULL ELSE + 40 + COUNT ( * ) * + CASE - 24 + + 40 WHEN + 77 * - 1 - 54 * + MIN ( 26 ) THEN 42 * 47 + 80 * 5 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT DISTINCT ( 10 ) * MIN( ALL - 27 )
----
-270

skipif mysql # not compatible
query I rowsort label-7613
SELECT DISTINCT ( 10 ) * MIN ( ALL - 27 )
----
-270

query I rowsort
SELECT DISTINCT + 20 * 80
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT - COUNT( * ) * 76 + 72 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7615
SELECT - COUNT ( * ) * 76 + 72 AS col0
----
-4

query I rowsort
SELECT ( - 95 ) * 73
----
-6935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT 26 + CASE + COUNT( * ) + COUNT( * ) WHEN 67 THEN NULL WHEN NULLIF ( COALESCE ( - NULLIF ( 15, - 88 ), - 48 * + 30 ), ( NULLIF ( SUM( DISTINCT + 98 ), - CAST( - ( + 4 ) AS SIGNED ) / - 80 ) ) / - 6 + 98 ) THEN 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7617
SELECT 26 + CASE + COUNT ( * ) + COUNT ( * ) WHEN 67 THEN NULL WHEN NULLIF ( COALESCE ( - NULLIF ( 15, - 88 ), - 48 * + 30 ), ( NULLIF ( SUM ( DISTINCT + 98 ), - CAST ( - ( + 4 ) AS INTEGER ) / - 80 ) ) / - 6 + 98 ) THEN 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL COUNT( * ) + + 13
----
14

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL COUNT ( * ) + + 13
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7619
SELECT 33 + CAST( NULL AS SIGNED ) * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT 33 + CAST ( NULL AS INTEGER ) * + 53
----
NULL

query I rowsort
SELECT ( - 66 ) + + 23 col0
----
-43

query I rowsort
SELECT ALL 97 + + 38
----
135

query I rowsort
SELECT ALL NULLIF ( 65, + 17 ) + ( + ( - 52 ) )
----
13

query I rowsort
SELECT 61 + - 60
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL 91 + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL 91 + - COUNT ( * )
----
90

query I rowsort
SELECT ALL 61 + 80
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ( COUNT( * ) ) - 25 * + 28
----
-699

skipif mysql # not compatible
query I rowsort label-7626
SELECT ( COUNT ( * ) ) - 25 * + 28
----
-699

query I rowsort
SELECT 51 + 98
----
149

query I rowsort
SELECT 96 + 81
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT ALL 31 - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL 31 - COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ( 38 ) * COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-7630
SELECT ( 38 ) * COUNT ( * )
----
38

query I rowsort
SELECT 3 * ( + 45 )
----
135

query I rowsort
SELECT 6 + ( ( + 77 ) ) AS col0
----
83

query I rowsort
SELECT 77 + - 33 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL 95 - MIN( + NULLIF ( + 11, - 17 ) + + 28 ) * + 3 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL 95 - MIN ( + NULLIF ( + 11, - 17 ) + + 28 ) * + 3 AS col0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-7635
SELECT 12 DIV + 24 col1
----
0

skipif mysql # not compatible
query I rowsort label-7635
SELECT 12 / + 24 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7636
SELECT DISTINCT - COALESCE ( MIN( 56 ), - COUNT( * ) + - COUNT( * ) ) DIV + 15 col0
----
-3

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT - COALESCE ( MIN ( 56 ), - COUNT ( * ) + - COUNT ( * ) ) / + 15 col0
----
-3

query I rowsort
SELECT ALL - COALESCE ( + 57, + 12 ) * ( - 72 ) col0
----
4104

onlyif mysql # DIV for integer division: 
query I rowsort label-7638
SELECT + 50 DIV 20
----
2

skipif mysql # not compatible
query I rowsort label-7638
SELECT + 50 / 20
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7639
SELECT 47 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-7639
SELECT 47 / 56
----
0

query I rowsort
SELECT + 59 + 99 AS col2
----
158

query I rowsort
SELECT + ( - 1 ) * 72 AS col0
----
-72

query I rowsort
SELECT ALL + - 66 * + 16
----
-1056

query I rowsort
SELECT ALL + 35 * ( - 68 * + 43 ) AS col1
----
-102340

query I rowsort
SELECT DISTINCT + 18 * 86
----
1548

query I rowsort
SELECT ALL - - 53 + - ( + 6 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7646
SELECT - CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7646
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT ALL + 85 + - 33 * - COUNT( * ) AS col1
----
118

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL + 85 + - 33 * - COUNT ( * ) AS col1
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7648
SELECT DISTINCT - 27 + CAST( 46 + COUNT( * ) AS SIGNED ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - 27 + CAST ( 46 + COUNT ( * ) AS INTEGER ) AS col2
----
20

query I rowsort
SELECT DISTINCT - + COALESCE ( NULLIF ( 80, 94 ), - 50 ) col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT + + NULLIF ( COUNT( * ), + ( COUNT( 15 ) ) ) + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT + + NULLIF ( COUNT ( * ), + ( COUNT ( 15 ) ) ) + 46
----
NULL

query I rowsort
SELECT 96 + - 15
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT DISTINCT + + 49 DIV 35
----
1

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT + + 49 / 35
----
1

query I rowsort
SELECT ALL - + 86 + - 27 * 5 col1
----
-221

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT - 58 + - MAX( DISTINCT 53 )
----
-111

skipif mysql # not compatible
query I rowsort label-7654
SELECT - 58 + - MAX ( DISTINCT 53 )
----
-111

query I rowsort
SELECT ALL - 70 * + 16
----
-1120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7656
SELECT CASE 36 WHEN COUNT( * ) THEN + 91 ELSE 74 END DIV ( 5 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7656
SELECT CASE 36 WHEN COUNT ( * ) THEN + 91 ELSE 74 END / ( 5 ) AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT ALL 55 + CAST( NULL AS SIGNED ) / + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL 55 + CAST ( NULL AS INTEGER ) / + 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7658
SELECT DISTINCT AVG ( + + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT AVG ( + + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL 55 - - 8 * + NULLIF ( - COUNT( * ), + 49 * - 12 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL 55 - - 8 * + NULLIF ( - COUNT ( * ), + 49 * - 12 ) AS col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7660
SELECT 67 DIV COUNT( 30 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7660
SELECT 67 / COUNT ( 30 ) AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7661
SELECT DISTINCT 49 DIV ( ( 63 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT 49 / ( ( 63 ) )
----
0

query I rowsort
SELECT ( + 83 ) * + 83
----
6889

query I rowsort
SELECT ALL - 37 - - 57
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7664
SELECT ALL CASE + 75 WHEN - CAST( NULL AS SIGNED ) * - 25 THEN NULL ELSE 54 END - + ( 14 )
----
40

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL CASE + 75 WHEN - CAST ( NULL AS INTEGER ) * - 25 THEN NULL ELSE 54 END - + ( 14 )
----
40

query I rowsort
SELECT ( - 54 ) * 60
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT CASE 6 WHEN COUNT( * ) + COUNT( * ) THEN NULL ELSE 66 * - 83 END + ( 81 ) * + COUNT( * ) AS col1
----
-5397

skipif mysql # not compatible
query I rowsort label-7666
SELECT CASE 6 WHEN COUNT ( * ) + COUNT ( * ) THEN NULL ELSE 66 * - 83 END + ( 81 ) * + COUNT ( * ) AS col1
----
-5397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7667
SELECT CASE - - 25 WHEN CASE 69 WHEN COUNT( - 8 ) THEN - COUNT( * ) - + 43 * - 90 WHEN 67 * + 5 + + CAST( - 31 + + 78 * - 19 AS SIGNED ) THEN NULL ELSE - COALESCE ( ( - 23 ), - 47 ) END + + 46 THEN - 47 * + 87 + + 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT CASE - - 25 WHEN CASE 69 WHEN COUNT ( - 8 ) THEN - COUNT ( * ) - + 43 * - 90 WHEN 67 * + 5 + + CAST ( - 31 + + 78 * - 19 AS INTEGER ) THEN NULL ELSE - COALESCE ( ( - 23 ), - 47 ) END + + 46 THEN - 47 * + 87 + + 68 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT + 53 + - 38 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT + 53 + - 38 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT NULLIF ( + - NULLIF ( 66, + MAX( DISTINCT 40 ) ), AVG ( ALL + 77 ) / - COALESCE ( + COUNT( * ), 5 ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-7669
SELECT NULLIF ( + - NULLIF ( 66, + MAX ( DISTINCT 40 ) ), AVG ( ALL + 77 ) / - COALESCE ( + COUNT ( * ), 5 ) ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT COALESCE ( 66, 6 + - COUNT( * ), + 36 * + 89 ) col2
----
66

skipif mysql # not compatible
query I rowsort label-7670
SELECT COALESCE ( 66, 6 + - COUNT ( * ), + 36 * + 89 ) col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7671
SELECT ALL - 26 DIV - 32 col2
----
0

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL - 26 / - 32 col2
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( 32, 77 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT DISTINCT - + COALESCE ( + 15, 97 * - 57 ) * SUM( 32 ) + CASE + COALESCE ( + 72, - 15 + + 84 ) + 79 / - COUNT( * ) WHEN + AVG ( 49 ) THEN + 96 END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT - + COALESCE ( + 15, 97 * - 57 ) * SUM ( 32 ) + CASE + COALESCE ( + 72, - 15 + + 84 ) + 79 / - COUNT ( * ) WHEN + AVG ( 49 ) THEN + 96 END * - 35
----
NULL

query I rowsort
SELECT DISTINCT + + 70 * + - 50 + 50 AS col2
----
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT + - 34 * 33 + + COUNT( * ) * 44
----
-1078

skipif mysql # not compatible
query I rowsort label-7675
SELECT + - 34 * 33 + + COUNT ( * ) * 44
----
-1078

query I rowsort
SELECT DISTINCT + - 71 * + - ( - ( + 2 ) ) + - ( - 81 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT ALL - + CASE MAX( DISTINCT + 47 ) WHEN CASE COUNT( * ) WHEN + 87 THEN - ( + 80 ) * 59 ELSE NULL END + 89 * 16 THEN - CASE + 81 WHEN 98 THEN ( 98 ) / - 10 ELSE NULL END ELSE 0 * + 93 END / CASE + 13 * + 20 WHEN 81 THEN AVG ( ALL 20 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL - + CASE MAX ( DISTINCT + 47 ) WHEN CASE COUNT ( * ) WHEN + 87 THEN - ( + 80 ) * 59 ELSE NULL END + 89 * 16 THEN - CASE + 81 WHEN 98 THEN ( 98 ) / - 10 ELSE NULL END ELSE 0 * + 93 END / CASE + 13 * + 20 WHEN 81 THEN AVG ( ALL 20 ) END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7678
SELECT - + 54 DIV 1 + - 47 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-7678
SELECT - + 54 / 1 + - 47 AS col1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT DISTINCT - COUNT( * ) * 39
----
-39

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT - COUNT ( * ) * 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL - COUNT( * ) * + - CASE + 42 WHEN + 44 * 8 + + 10 THEN COUNT( * ) END + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL - COUNT ( * ) * + - CASE + 42 WHEN + 44 * 8 + + 10 THEN COUNT ( * ) END + + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT - + 10 * - MIN( 94 ) + - 40 AS col1
----
900

skipif mysql # not compatible
query I rowsort label-7681
SELECT - + 10 * - MIN ( 94 ) + - 40 AS col1
----
900

query I rowsort
SELECT ALL + 4 * + - 66
----
-264

query I rowsort
SELECT DISTINCT + + 65 AS col0
----
65

query I rowsort
SELECT ALL + - 54 * + 63 * - 56 col0
----
190512

query I rowsort
SELECT - + 2 * + 96 AS col1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT DISTINCT NULLIF ( + - COUNT( * ), 10 * + 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT NULLIF ( + - COUNT ( * ), 10 * + 6 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL - COALESCE ( COUNT( 77 ), + 73 - 14, + 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - COALESCE ( COUNT ( 77 ), + 73 - 14, + 49 )
----
-1

query I rowsort
SELECT - 44 + + + 51 + - 50 AS col0
----
-43

query I rowsort
SELECT ALL - 68 - - 76 col0
----
8

query I rowsort
SELECT - 61 * 12
----
-732

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT - COUNT( * ) + + 77 * 19 AS col1
----
1462

skipif mysql # not compatible
query I rowsort label-7691
SELECT - COUNT ( * ) + + 77 * 19 AS col1
----
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT DISTINCT ( - - COALESCE ( + - 11, 5 * COUNT( * ) + 50 ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT ( - - COALESCE ( + - 11, 5 * COUNT ( * ) + 50 ) ) AS col2
----
-11

query I rowsort
SELECT ALL - 41 * + 83
----
-3403

query I rowsort
SELECT - 14 + 13
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + 20 * - COUNT( * ) * COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-7695
SELECT + 20 * - COUNT ( * ) * COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL CASE 21 WHEN ( ( 95 ) ) THEN NULL WHEN - COUNT( * ) THEN + 18 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL CASE 21 WHEN ( ( 95 ) ) THEN NULL WHEN - COUNT ( * ) THEN + 18 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7697
SELECT DISTINCT - 50 DIV 7 * 24 * - 7
----
1176

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT - 50 / 7 * 24 * - 7
----
1176

query I rowsort
SELECT ALL 60 * 27 AS col2
----
1620

query I rowsort
SELECT ALL - 41 * 8 * + 61
----
-20008

onlyif mysql # DIV for integer division: 
query I rowsort label-7700
SELECT - 84 DIV + - 73
----
1

skipif mysql # not compatible
query I rowsort label-7700
SELECT - 84 / + - 73
----
1

query I rowsort
SELECT - 42 + - 60
----
-102

query I rowsort
SELECT DISTINCT - 23 * 91 AS col0
----
-2093

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL + COUNT( + - 37 ) * + 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL + COUNT ( + - 37 ) * + 15 AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7704
SELECT - COUNT( * ) * + + 5 DIV - SUM( ALL + 97 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7704
SELECT - COUNT ( * ) * + + 5 / - SUM ( ALL + 97 ) col0
----
0

query I rowsort
SELECT + 36 + - 23 + 74 * - 11
----
-801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7706
SELECT - COUNT( * ) DIV - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7706
SELECT - COUNT ( * ) / - - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7707
SELECT + 53 DIV + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-7707
SELECT + 53 / + COUNT ( * )
----
53

query I rowsort
SELECT DISTINCT 59 + + ( 45 )
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7709
SELECT + COUNT( * ) * - - 24 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT + COUNT ( * ) * - - 24 / + 25
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7710
SELECT ALL SUM( + - 26 ) + - + CAST( - ( COUNT( * ) ) AS SIGNED ) - - 47 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL SUM ( + - 26 ) + - + CAST ( - ( COUNT ( * ) ) AS INTEGER ) - - 47 AS col2
----
22

query I rowsort
SELECT - 0 + + + 37 AS col2
----
37

query I rowsort
SELECT ALL ( - - 98 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7713
SELECT DISTINCT - COUNT( - 76 ) + + - COUNT( * ) DIV 61 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT - COUNT ( - 76 ) + + - COUNT ( * ) / 61 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT + - COALESCE ( + COUNT( + 19 ), 86 + 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT + - COALESCE ( + COUNT ( + 19 ), 86 + 55 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7715
SELECT DISTINCT - + 79 DIV 39 + - 90 + + 91 * COUNT( * ) * COUNT( ALL CASE + 61 WHEN - 61 THEN 78 * - 71 ELSE NULL END ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT - + 79 / 39 + - 90 + + 91 * COUNT ( * ) * COUNT ( ALL CASE + 61 WHEN - 61 THEN 78 * - 71 ELSE NULL END ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT DISTINCT 3 * - - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT 3 * - - COUNT ( * ) AS col0
----
3

query I rowsort
SELECT ALL + 69 * - CASE - - 99 WHEN + 87 * + 76 THEN + 47 * 44 + + 23 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT - 99 * - + 66 * - 61 + + MIN( DISTINCT - 85 ) * + 42
----
-402144

skipif mysql # not compatible
query I rowsort label-7718
SELECT - 99 * - + 66 * - 61 + + MIN ( DISTINCT - 85 ) * + 42
----
-402144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT + CAST( 16 AS SIGNED ) * + 52 AS col0
----
832

skipif mysql # not compatible
query I rowsort label-7719
SELECT + CAST ( 16 AS INTEGER ) * + 52 AS col0
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT + 28 * - 81 + - 79 * CASE + ( + AVG ( DISTINCT - 24 ) ) WHEN - 18 - - MAX( + 95 ) THEN NULL ELSE 73 END
----
-8035

skipif mysql # not compatible
query I rowsort label-7720
SELECT + 28 * - 81 + - 79 * CASE + ( + AVG ( DISTINCT - 24 ) ) WHEN - 18 - - MAX ( + 95 ) THEN NULL ELSE 73 END
----
-8035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7721
SELECT DISTINCT - COALESCE ( - 60, + - SUM( ALL 17 ) DIV - 91 ) * 5
----
300

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT - COALESCE ( - 60, + - SUM ( ALL 17 ) / - 91 ) * 5
----
300

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT ALL - + ( 86 ) DIV 51 + 4 * 5
----
19

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL - + ( 86 ) / 51 + 4 * 5
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7723
SELECT ALL 87 * ( + MAX( + 49 ) ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL 87 * ( + MAX ( + 49 ) ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 96 col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT + 75 * + + COUNT( * ) * 27 AS col0
----
2025

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT + 75 * + + COUNT ( * ) * 27 AS col0
----
2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7726
SELECT NULLIF ( + CAST( - MAX( - 92 ) AS SIGNED ), - 5 * ( 70 ) ) * + 91 + - 45
----
8327

skipif mysql # not compatible
query I rowsort label-7726
SELECT NULLIF ( + CAST ( - MAX ( - 92 ) AS INTEGER ), - 5 * ( 70 ) ) * + 91 + - 45
----
8327

query I rowsort
SELECT DISTINCT CASE - 45 WHEN + 20 * - 97 THEN - COALESCE ( 98, + 23 ) WHEN - 72 THEN - 99 + NULLIF ( 38, - COALESCE ( 31, + 30, - 39 * + 97 ) ) END * + 96 - - 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT ALL + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT + 10 * ( + COUNT( * ) ) * 64 + 23 AS col0
----
663

skipif mysql # not compatible
query I rowsort label-7729
SELECT + 10 * ( + COUNT ( * ) ) * 64 + 23 AS col0
----
663

query I rowsort
SELECT - - 98 * - COALESCE ( 74, 27 + 93 ) / - CASE 63 + - 39 * 83 WHEN 39 THEN - 24 * 39 WHEN 58 THEN NULL ELSE - 61 + + 11 END - CASE + 3 WHEN 89 THEN - 78 + ( - ( + 39 ) ) / + 81 WHEN + 73 THEN NULL ELSE NULL END * 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT - COUNT( * ) + + 74 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7731
SELECT - COUNT ( * ) + + 74 AS col1
----
73

query I rowsort
SELECT DISTINCT 73 * - 2 * - ( 40 ) AS col2
----
5840

query I rowsort
SELECT - 18 * + 19 * - 64 + - 19 AS col1
----
21869

query I rowsort
SELECT ALL + 9 * 22 AS col1
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT CASE - 68 WHEN + - 98 + + 61 THEN + 60 + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT CASE - 68 WHEN + - 98 + + 61 THEN + 60 + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT - 55 * - 6 + MAX( ALL + COALESCE ( - 99, + 61 ) ) - 25
----
206

skipif mysql # not compatible
query I rowsort label-7736
SELECT - 55 * - 6 + MAX ( ALL + COALESCE ( - 99, + 61 ) ) - 25
----
206

query I rowsort
SELECT DISTINCT + 0 * + - 7 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT DISTINCT 37 * + MAX( + 40 ) AS col2
----
1480

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT 37 * + MAX ( + 40 ) AS col2
----
1480

query I rowsort
SELECT ALL - 37 * - - 59
----
-2183

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7740
SELECT ALL CAST( - 37 AS SIGNED ) AS col1, + 71
----
-37
71

skipif mysql # not compatible
query II rowsort label-7740
SELECT ALL CAST ( - 37 AS INTEGER ) AS col1, + 71
----
-37
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT 31 * - + SUM( DISTINCT 28 ) AS col2
----
-868

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT 31 * - + SUM ( DISTINCT 28 ) AS col2
----
-868

query I rowsort
SELECT - 43 * + + 59 AS col1
----
-2537

query I rowsort
SELECT 95 * - 89 * - 81 AS col2
----
684855

query I rowsort
SELECT ALL - 10 + - + CASE WHEN NOT ( 4 ) IS NOT NULL THEN NULL ELSE 80 END AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7745
SELECT ALL + CAST( NULL AS SIGNED ) + + 70 AS col0, 76 AS col2
----
NULL
76

skipif mysql # not compatible
query II rowsort label-7745
SELECT ALL + CAST ( NULL AS INTEGER ) + + 70 AS col0, 76 AS col2
----
NULL
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT DISTINCT + 65 + - 61 DIV 58
----
64

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT + 65 + - 61 / 58
----
64

query I rowsort
SELECT ALL + 2 + - NULLIF ( + 30, + 4 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT COALESCE ( + 21, 51 * - + 57 - ( - 2 + + 57 * 29 ) * + SUM( + 66 * + 49 ), - 51 ) + + 30
----
51

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT COALESCE ( + 21, 51 * - + 57 - ( - 2 + + 57 * 29 ) * + SUM ( + 66 * + 49 ), - 51 ) + + 30
----
51

query I rowsort
SELECT ALL ( + 48 ) + + 44
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT ALL - CAST( NULL AS SIGNED ) + ( - 35 ) + - 99 / 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL - CAST ( NULL AS INTEGER ) + ( - 35 ) + - 99 / 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT 25 - + - 18 + - COUNT( 54 )
----
42

skipif mysql # not compatible
query I rowsort label-7751
SELECT 25 - + - 18 + - COUNT ( 54 )
----
42

query I rowsort
SELECT ALL + 98 * + 65 * 1
----
6370

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT - COUNT( * ) * 46 + - 33 - + 53 + 43
----
-89

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT - COUNT ( * ) * 46 + - 33 - + 53 + 43
----
-89

query I rowsort
SELECT 4 * + ( + 4 ) + + 97
----
113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7755
SELECT ALL 76 - + + CAST( NULL AS DECIMAL ) + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL 76 - + + CAST ( NULL AS REAL ) + - 77 AS col1
----
NULL

query I rowsort
SELECT ALL - + 85 col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7757
SELECT + + 6 * + 47 + - - 35 * 20 / + 9 + - CASE + 8 WHEN 86 * + 53 THEN + CAST( NULL AS SIGNED ) * - CAST( + 75 * + 40 AS DECIMAL ) + 85 END * + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT + + 6 * + 47 + - - 35 * 20 / + 9 + - CASE + 8 WHEN 86 * + 53 THEN + CAST ( NULL AS INTEGER ) * - CAST ( + 75 * + 40 AS REAL ) + 85 END * + 6 AS col2
----
NULL

query II rowsort
SELECT + ( 91 ) AS col0, - 13
----
91
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7759
SELECT ALL - CAST( - NULLIF ( 85, - 36 * CASE - 69 / + CAST( NULL AS SIGNED ) + 91 WHEN + COUNT( * ) + + 84 THEN NULL WHEN - 84 * 26 THEN NULL ELSE 43 END ) AS SIGNED ) col1
----
85

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL - CAST ( - NULLIF ( 85, - 36 * CASE - 69 / + CAST ( NULL AS INTEGER ) + 91 WHEN + COUNT ( * ) + + 84 THEN NULL WHEN - 84 * 26 THEN NULL ELSE 43 END ) AS INTEGER ) col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL - COUNT( * ) - + 11 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL - COUNT ( * ) - + 11 AS col2
----
-12

query I rowsort
SELECT 73 * - - 94 AS col2
----
6862

query I rowsort
SELECT ALL 21 * + 31
----
651

query I rowsort
SELECT DISTINCT - CASE - 89 WHEN COALESCE ( - 15, 1, 34 ) THEN 96 - - 16 END * 98 AS col0
----
NULL

query I rowsort
SELECT - 9 - 33
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT - COUNT( 93 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7765
SELECT - COUNT ( 93 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT + + SUM( ALL + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-7766
SELECT + + SUM ( ALL + 58 )
----
58

query I rowsort
SELECT ALL 96 * + 39
----
3744

query II rowsort
SELECT 79, 75 AS col1
----
79
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT ( - - 79 ) - + SUM( ALL - 50 ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-7769
SELECT ( - - 79 ) - + SUM ( ALL - 50 ) AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT ( 72 ) + - + MAX( 68 )
----
4

skipif mysql # not compatible
query I rowsort label-7770
SELECT ( 72 ) + - + MAX ( 68 )
----
4

query I rowsort
SELECT 31 * 11
----
341

onlyif mysql # DIV for integer division: 
query I rowsort label-7772
SELECT ALL COALESCE ( - 77, - 59, - 37 + + COALESCE ( 24, 91 ) ) + - ( + 49 ) DIV 56 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL COALESCE ( - 77, - 59, - 37 + + COALESCE ( 24, 91 ) ) + - ( + 49 ) / 56 AS col1
----
-77

query I rowsort
SELECT ( + CASE 4 WHEN + 41 * - + 44 THEN + 16 ELSE NULL END ) + + 87 * 95 AS col0
----
NULL

query I rowsort
SELECT 40 * + - 93 AS col1
----
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT COUNT( * ) + + - 26 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7775
SELECT COUNT ( * ) + + - 26 AS col2
----
-25

query I rowsort
SELECT ALL - 6 * - + 28 AS col1
----
168

query II rowsort
SELECT DISTINCT 43 AS col2, - 65
----
43
-65

query I rowsort
SELECT 30 + + - 32
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT ALL - 79 + + COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL - 79 + + COUNT ( * ) AS col0
----
-78

query I rowsort
SELECT ALL - 16 + + + 36
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT - - CASE + + COUNT( * ) WHEN + 96 * - CASE 93 WHEN - 75 * 59 THEN 89 * 95 WHEN + 22 THEN - SUM( - 86 ) + 60 * 37 ELSE NULL END THEN - SUM( 14 ) + - 64 WHEN 16 * 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT - - CASE + + COUNT ( * ) WHEN + 96 * - CASE 93 WHEN - 75 * 59 THEN 89 * 95 WHEN + 22 THEN - SUM ( - 86 ) + 60 * 37 ELSE NULL END THEN - SUM ( 14 ) + - 64 WHEN 16 * 47 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT 39 + - - 24 + COUNT( * ) * + 75 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-7782
SELECT 39 + - - 24 + COUNT ( * ) * + 75 AS col2
----
138

query I rowsort
SELECT DISTINCT ( - 92 ) col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL - - MAX( ALL + 19 ) - + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL - - MAX ( ALL + 19 ) - + - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT COUNT( * ) * 5 + - 63 AS col1, - 5 * + 99 + 66 * 21
----
-58
891

skipif mysql # not compatible
query II rowsort label-7785
SELECT COUNT ( * ) * 5 + - 63 AS col1, - 5 * + 99 + 66 * 21
----
-58
891

query II rowsort
SELECT ALL + - ( + 87 ) * 90 AS col0, 14 * - 77 AS col2
----
-7830
-1078

query I rowsort
SELECT DISTINCT + COALESCE ( + - 6, + 74 + + - 42 )
----
-6

query II rowsort
SELECT - + ( + + ( + 59 ) ) AS col0, 86 * - 23
----
-59
-1978

query I rowsort
SELECT DISTINCT + ( - - ( - 15 ) ) * ( - 12 )
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT ALL + 31 * 12 * COUNT( * ) - - 20 + + - 63
----
329

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL + 31 * 12 * COUNT ( * ) - - 20 + + - 63
----
329

query I rowsort
SELECT ALL + + 48 * 92 AS col0
----
4416

query II rowsort
SELECT ALL - - 49 AS col0, + 72 * + 43 AS col0
----
49
3096

query I rowsort
SELECT + 32 * + - 82
----
-2624

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7794
SELECT ALL - 8 AS col0, 40 + + 2 - MAX( + 96 ) + - COUNT( * ) * - 32 DIV 11
----
-8
-52

skipif mysql # not compatible
query II rowsort label-7794
SELECT ALL - 8 AS col0, 40 + + 2 - MAX ( + 96 ) + - COUNT ( * ) * - 32 / 11
----
-8
-52

query I rowsort
SELECT + ( - 10 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7796
SELECT CAST( + COALESCE ( - 75, + CAST( 77 AS SIGNED ) + 62 ) AS SIGNED ) + - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-7796
SELECT CAST ( + COALESCE ( - 75, + CAST ( 77 AS INTEGER ) + 62 ) AS INTEGER ) + - COUNT ( * )
----
-76

query II rowsort
SELECT DISTINCT - 85 AS col1, + 70 AS col0
----
-85
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7798
SELECT CAST( NULL AS SIGNED ) * + 46 * ( + 77 ) + + MAX( DISTINCT 24 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT CAST ( NULL AS INTEGER ) * + 46 * ( + 77 ) + + MAX ( DISTINCT 24 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7799
SELECT ALL - 22 AS col1, - CASE - + 92 WHEN 52 + - - 99 * + - MAX( - 5 ) THEN 26 ELSE + CAST( NULL AS SIGNED ) * - 14 END AS col1
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-7799
SELECT ALL - 22 AS col1, - CASE - + 92 WHEN 52 + - - 99 * + - MAX ( - 5 ) THEN 26 ELSE + CAST ( NULL AS INTEGER ) * - 14 END AS col1
----
-22
NULL

query I rowsort
SELECT ALL - COALESCE ( - 92, 26 ) AS col0
----
92

query I rowsort
SELECT - ( + ( - - NULLIF ( + + 97, ( - 71 ) ) ) ) * 50 + - 64 AS col0
----
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT DISTINCT - COALESCE ( - 2, 33, - 8 * + COUNT( * ) - + - 85 * - ( 82 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7802
SELECT DISTINCT - COALESCE ( - 2, 33, - 8 * + COUNT ( * ) - + - 85 * - ( 82 ) ) AS col1
----
2

query I rowsort
SELECT ALL - 82 + + + 20 + + + 77
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT SUM( - 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7804
SELECT SUM ( - 23 ) AS col2
----
-23

query I rowsort
SELECT ALL + ( - 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT - ( + 72 ) * ( + COUNT( * ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7806
SELECT - ( + 72 ) * ( + COUNT ( * ) ) AS col2
----
-72

query I rowsort
SELECT + 37 + + 23 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL COUNT( * ) + 19 + + 25
----
45

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL COUNT ( * ) + 19 + + 25
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT + CASE - 13 WHEN - - 26 THEN + - COUNT( * ) / + 8 WHEN + 78 THEN 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT + CASE - 13 WHEN - - 26 THEN + - COUNT ( * ) / + 8 WHEN + 78 THEN 24 END
----
NULL

query I rowsort
SELECT DISTINCT - 65 + + ( 10 )
----
-55

query II rowsort
SELECT ALL 81 AS col0, 14 AS col0
----
81
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7812
SELECT ALL 33 AS col2, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-7812
SELECT ALL 33 AS col2, COUNT ( * )
----
33
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7814
SELECT DISTINCT COALESCE ( 78, + SUM( + 63 ) ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT COALESCE ( 78, + SUM ( + 63 ) ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT - MAX( ALL ( + - 37 ) )
----
37

skipif mysql # not compatible
query I rowsort label-7815
SELECT - MAX ( ALL ( + - 37 ) )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL 65 + + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL 65 + + COUNT ( * ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7817
SELECT ALL 92 col1, CAST( - COUNT( * ) AS SIGNED ) - - - 46 + NULLIF ( 95, 4 / + ( + 90 ) ) * - 19 col1
----
92
-1852

skipif mysql # not compatible
query II rowsort label-7817
SELECT ALL 92 col1, CAST ( - COUNT ( * ) AS INTEGER ) - - - 46 + NULLIF ( 95, 4 / + ( + 90 ) ) * - 19 col1
----
92
-1852

onlyif mysql # aggregate syntax: 
query II rowsort label-7818
SELECT - MAX( - 16 ) AS col1, - ( - + COALESCE ( + 80, + + 30, + 76 ) ) * - 87 + 50 col2
----
16
-6910

skipif mysql # not compatible
query II rowsort label-7818
SELECT - MAX ( - 16 ) AS col1, - ( - + COALESCE ( + 80, + + 30, + 76 ) ) * - 87 + 50 col2
----
16
-6910

onlyif mysql # aggregate syntax: 
query II rowsort label-7819
SELECT ALL + 81 - + - MIN( - + ( - - 53 ) ) AS col2, + 77 AS col0
----
28
77

skipif mysql # not compatible
query II rowsort label-7819
SELECT ALL + 81 - + - MIN ( - + ( - - 53 ) ) AS col2, + 77 AS col0
----
28
77

query I rowsort
SELECT + - 70 * + + ( - + 22 )
----
1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7821
SELECT ALL - COUNT( * ) - + - 79 - 93 DIV - 48
----
79

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL - COUNT ( * ) - + - 79 - 93 / - 48
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7822
SELECT - 62 col2, + 51 + ( + NULLIF ( + 58, - SUM( DISTINCT - 94 ) ) )
----
-62
109

skipif mysql # not compatible
query II rowsort label-7822
SELECT - 62 col2, + 51 + ( + NULLIF ( + 58, - SUM ( DISTINCT - 94 ) ) )
----
-62
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL - COUNT( * ) * + ( - 93 ) + + + 52 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL - COUNT ( * ) * + ( - 93 ) + + + 52 AS col1
----
145

query II rowsort
SELECT DISTINCT 57, + 47 AS col0
----
57
47

query I rowsort
SELECT DISTINCT + 88 * - 9
----
-792

query I rowsort
SELECT + 41 * - - ( - 94 ) - + 9 * + - 73 AS col0
----
-3197

query I rowsort
SELECT ALL COALESCE ( + 30, 5 ) * - 12 AS col1
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT - + MAX( - 1 ) - + 79
----
-78

skipif mysql # not compatible
query I rowsort label-7828
SELECT - + MAX ( - 1 ) - + 79
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + - 74 * ( + + 37 ) + NULLIF ( + 57, + 10 * MAX( ALL - 17 - + 42 ) ) + - 78 * NULLIF ( 44 * 1, + 27 ) AS col1
----
-6113

skipif mysql # not compatible
query I rowsort label-7829
SELECT + - 74 * ( + + 37 ) + NULLIF ( + 57, + 10 * MAX ( ALL - 17 - + 42 ) ) + - 78 * NULLIF ( 44 * 1, + 27 ) AS col1
----
-6113

query II rowsort
SELECT DISTINCT - 31, + 0 + 12 AS col0
----
-31
12

query II rowsort
SELECT - 69, 3 AS col2
----
-69
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT - COUNT( * ) * - 95
----
95

skipif mysql # not compatible
query I rowsort label-7832
SELECT - COUNT ( * ) * - 95
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7833
SELECT - + MIN( ALL 34 ) + - 39 + 2 * - COALESCE ( 44, 52, - 19 * - 39 + 60 ) DIV 13
----
-79

skipif mysql # not compatible
query I rowsort label-7833
SELECT - + MIN ( ALL 34 ) + - 39 + 2 * - COALESCE ( 44, 52, - 19 * - 39 + 60 ) / 13
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT - + 51 * - + CAST( NULL AS SIGNED ) * COUNT( + COALESCE ( 36, - 83 ) ) * + 98 + - 14 * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT - + 51 * - + CAST ( NULL AS INTEGER ) * COUNT ( + COALESCE ( 36, - 83 ) ) * + 98 + - 14 * 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7835
SELECT DISTINCT + 0 AS col2, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-7835
SELECT DISTINCT + 0 AS col2, - COUNT ( * )
----
0
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7836
SELECT ALL + CASE + 30 WHEN + 65 THEN NULL WHEN + 96 + + CAST( - 19 AS SIGNED ) THEN ( CAST( NULL AS SIGNED ) ) + 95 * - COUNT( + ( 20 ) ) ELSE - 41 END * - COUNT( * ) + - SUM( 85 ) * + ( + 95 * - 1 ) AS col1
----
8116

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL + CASE + 30 WHEN + 65 THEN NULL WHEN + 96 + + CAST ( - 19 AS INTEGER ) THEN ( CAST ( NULL AS INTEGER ) ) + 95 * - COUNT ( + ( 20 ) ) ELSE - 41 END * - COUNT ( * ) + - SUM ( 85 ) * + ( + 95 * - 1 ) AS col1
----
8116

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT ALL + CASE - 54 WHEN + 42 THEN + 96 WHEN - + 97 THEN - COUNT( * ) * - - 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL + CASE - 54 WHEN + 42 THEN + 96 WHEN - + 97 THEN - COUNT ( * ) * - - 13 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7838
SELECT + CAST( - + ( 22 ) AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-7838
SELECT + CAST ( - + ( 22 ) AS INTEGER )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT - 31 / + ( - + CASE - 18 WHEN + 82 * COUNT( * ) + 16 + - NULLIF ( - SUM( 65 ) - + 40, + 33 * 24 ) - + SUM( 7 + + CAST( 93 + - 22 AS SIGNED ) ) THEN 43 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT - 31 / + ( - + CASE - 18 WHEN + 82 * COUNT ( * ) + 16 + - NULLIF ( - SUM ( 65 ) - + 40, + 33 * 24 ) - + SUM ( 7 + + CAST ( 93 + - 22 AS INTEGER ) ) THEN 43 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL - CAST( - + NULLIF ( - - 16, - COUNT( * ) + + 21 ) AS SIGNED ) * - 84 + - 10 + - 38 * + 27 * - 48 + - 26 AS col1
----
47868

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - CAST ( - + NULLIF ( - - 16, - COUNT ( * ) + + 21 ) AS INTEGER ) * - 84 + - 10 + - 38 * + 27 * - 48 + - 26 AS col1
----
47868

query I rowsort
SELECT - 13 * + 46 col0
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT CASE + 74 WHEN - - 38 THEN + - 14 WHEN + MIN( ALL + + 11 ) * 7 + + COUNT( * ) * 79 THEN NULL ELSE COUNT( * ) * 97 END
----
97

skipif mysql # not compatible
query I rowsort label-7842
SELECT CASE + 74 WHEN - - 38 THEN + - 14 WHEN + MIN ( ALL + + 11 ) * 7 + + COUNT ( * ) * 79 THEN NULL ELSE COUNT ( * ) * 97 END
----
97

query I rowsort
SELECT ALL 36 * 66 + 13 - + 97
----
2292

onlyif mysql # aggregate syntax: 
query II rowsort label-7844
SELECT DISTINCT + ( + - 80 ), ( COUNT( * ) ) + + 11 AS col0
----
-80
12

skipif mysql # not compatible
query II rowsort label-7844
SELECT DISTINCT + ( + - 80 ), ( COUNT ( * ) ) + + 11 AS col0
----
-80
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7845
SELECT ALL 61 * 63 * + + CAST( + - 89 AS SIGNED ) - - 79 col2
----
-341948

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL 61 * 63 * + + CAST ( + - 89 AS INTEGER ) - - 79 col2
----
-341948

query I rowsort
SELECT - 71 - + 16 * + 19
----
-375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7847
SELECT ALL + CAST( - ( - 25 ) AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL + CAST ( - ( - 25 ) AS INTEGER )
----
25

query I rowsort
SELECT - 67 * + 91 + + 12
----
-6085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7849
SELECT + COUNT( * ) - - CAST( 34 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7849
SELECT + COUNT ( * ) - - CAST ( 34 AS INTEGER ) AS col2
----
35

query I rowsort
SELECT - 18 + - 11 * 95 * - - 93 col1
----
-97203

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL - 45 * ( 85 ) - + - CASE - NULLIF ( + 13, + 10 * COUNT( * ) + + 48 ) WHEN - ( + 38 ) / + ( 46 ) THEN - 87 WHEN + COUNT( * ) THEN NULL ELSE NULL END + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL - 45 * ( 85 ) - + - CASE - NULLIF ( + 13, + 10 * COUNT ( * ) + + 48 ) WHEN - ( + 38 ) / + ( 46 ) THEN - 87 WHEN + COUNT ( * ) THEN NULL ELSE NULL END + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT - MAX( ALL - + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-7852
SELECT - MAX ( ALL - + 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT COUNT( ALL + COALESCE ( - + 11, + + 20, - 66 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7853
SELECT COUNT ( ALL + COALESCE ( - + 11, + + 20, - 66 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7854
SELECT - 11 + - 98 AS col0, COUNT( * ) * - 73 * - ( - COUNT( * ) ) * CAST( NULL AS SIGNED ) * - CAST( - 17 AS DECIMAL ) - - 61 * 12 + + MAX( ALL 27 + 19 )
----
-109
NULL

skipif mysql # not compatible
query II rowsort label-7854
SELECT - 11 + - 98 AS col0, COUNT ( * ) * - 73 * - ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) * - CAST ( - 17 AS REAL ) - - 61 * 12 + + MAX ( ALL 27 + 19 )
----
-109
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7855
SELECT DISTINCT COUNT( * ) * + 44 DIV - - CAST( 68 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT COUNT ( * ) * + 44 / - - CAST ( 68 AS INTEGER ) col1
----
0

query I rowsort
SELECT DISTINCT - + 31 * 33
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL + - COUNT( ALL 76 ) - - - 83 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + - COUNT ( ALL 76 ) - - - 83 AS col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7858
SELECT + 12 + SUM( DISTINCT 2 ) DIV COUNT( * ) * + - 29
----
-46

skipif mysql # not compatible
query I rowsort label-7858
SELECT + 12 + SUM ( DISTINCT 2 ) / COUNT ( * ) * + - 29
----
-46

query I rowsort
SELECT + - 64 * + ( - ( + - 91 ) ) + + 1
----
-5823

query I rowsort
SELECT ALL + COALESCE ( ( 11 ), - 34 * - 51, - 14 ) AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7861
SELECT - - CASE + 73 WHEN + 47 THEN NULL ELSE + - 75 END + + 47 * + 96 * + CAST( AVG ( ( + 84 ) ) AS SIGNED ) AS col1
----
378933

skipif mysql # not compatible
query I rowsort label-7861
SELECT - - CASE + 73 WHEN + 47 THEN NULL ELSE + - 75 END + + 47 * + 96 * + CAST ( AVG ( ( + 84 ) ) AS INTEGER ) AS col1
----
378933

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT - ( - CASE - ( + + 59 ) WHEN - + NULLIF ( SUM( ALL + + 62 ), + 34 + 42 ) THEN - 37 WHEN + 0 * 65 + 15 * + 42 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT - ( - CASE - ( + + 59 ) WHEN - + NULLIF ( SUM ( ALL + + 62 ), + 34 + 42 ) THEN - 37 WHEN + 0 * 65 + 15 * + 42 THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT + - 15 + 60 * - 38
----
-2295

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT - 87 * - 30 * CASE + + 62 WHEN + - COUNT( * ) THEN NULL WHEN 74 THEN + 97 END * - MIN( 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7864
SELECT - 87 * - 30 * CASE + + 62 WHEN + - COUNT ( * ) THEN NULL WHEN 74 THEN + 97 END * - MIN ( 7 )
----
NULL

query I rowsort
SELECT + + NULLIF ( 97, + 40 + - 66 + + - 58 ) + + + 99
----
196

query I rowsort
SELECT ALL NULLIF ( - 55, - 99 )
----
-55

query I rowsort
SELECT + 1 * ( 85 ) * - + 67 + 95 + + 2 * - - 40 * 95 * - 22 AS col1
----
-172800

onlyif mysql # aggregate syntax: 
query II rowsort label-7868
SELECT + - 65 + + 47, + COUNT( * ) col2
----
-18
1

skipif mysql # not compatible
query II rowsort label-7868
SELECT + - 65 + + 47, + COUNT ( * ) col2
----
-18
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT DISTINCT - CASE + 85 WHEN - 50 * CAST( NULL AS SIGNED ) THEN - + 36 WHEN + 58 THEN NULL ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT - CASE + 85 WHEN - 50 * CAST ( NULL AS INTEGER ) THEN - + 36 WHEN + 58 THEN NULL ELSE COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT + + 37 + - - COUNT( * ) * - - COALESCE ( + - 3, 29 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7870
SELECT + + 37 + - - COUNT ( * ) * - - COALESCE ( + - 3, 29 ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( 73 ) * 30
----
2190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT ALL + + CAST( - AVG ( + - 97 ) AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + + CAST ( - AVG ( + - 97 ) AS INTEGER ) AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7874
SELECT + - ( CAST( NULL AS SIGNED ) ) AS col2, 72 + - 30
----
NULL
42

skipif mysql # not compatible
query II rowsort label-7874
SELECT + - ( CAST ( NULL AS INTEGER ) ) AS col2, 72 + - 30
----
NULL
42

query I rowsort
SELECT 12 + + 11 AS col0
----
23

query I rowsort
SELECT 21 + + 96
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-7877
SELECT ALL - 60, COUNT( * ) + + 57 * + ( 19 ) AS col1
----
-60
1084

skipif mysql # not compatible
query II rowsort label-7877
SELECT ALL - 60, COUNT ( * ) + + 57 * + ( 19 ) AS col1
----
-60
1084

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT - SUM( - 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT - SUM ( - 58 ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7879
SELECT 46 DIV - COALESCE ( 30, - 51 + + CAST( - MIN( DISTINCT + CAST( - + 85 AS SIGNED ) ) AS SIGNED ) ) + + ( 8 + - SUM( 11 - 27 ) )
----
23

skipif mysql # not compatible
query I rowsort label-7879
SELECT 46 / - COALESCE ( 30, - 51 + + CAST ( - MIN ( DISTINCT + CAST ( - + 85 AS INTEGER ) ) AS INTEGER ) ) + + ( 8 + - SUM ( 11 - 27 ) )
----
23

query II rowsort
SELECT DISTINCT - 73, + 4 AS col1
----
-73
4

query I rowsort
SELECT ( + 56 ) + + - 95
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT ALL COUNT( * ) + + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL COUNT ( * ) + + - 17
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT ALL - CAST( NULL AS SIGNED ) - - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL - CAST ( NULL AS INTEGER ) - - + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT ALL - SUM( 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL - SUM ( 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT - COUNT( * ) * + + SUM( + 80 ) + 1 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-7885
SELECT - COUNT ( * ) * + + SUM ( + 80 ) + 1 AS col1
----
-79

query I rowsort
SELECT 40 * - 83 col2
----
-3320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7887
SELECT ALL - CAST( NULL AS SIGNED ) * + CAST( - - ( + 43 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL - CAST ( NULL AS INTEGER ) * + CAST ( - - ( + 43 ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT 57 * 85 + + COUNT( 94 ) * 55 * - 74 + 80 * + - ( 6 ) + 1 * + 2
----
297

skipif mysql # not compatible
query I rowsort label-7888
SELECT 57 * 85 + + COUNT ( 94 ) * 55 * - 74 + 80 * + - ( 6 ) + 1 * + 2
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-7889
SELECT 72 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-7889
SELECT 72 / 48
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT ALL + CAST( + 18 AS SIGNED ) * + 9
----
162

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL + CAST ( + 18 AS INTEGER ) * + 9
----
162

query II rowsort
SELECT DISTINCT - 84 AS col0, - 92 + + 18
----
-84
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7892
SELECT ALL + + COUNT( * ) DIV - - 99
----
0

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL + + COUNT ( * ) / - - 99
----
0

query I rowsort
SELECT - + NULLIF ( 0, - - 8 * + 93 / - 6 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7894
SELECT 93 AS col1, 12 * COUNT( * ) * - - 54 * + CAST( + + 90 AS SIGNED )
----
93
58320

skipif mysql # not compatible
query II rowsort label-7894
SELECT 93 AS col1, 12 * COUNT ( * ) * - - 54 * + CAST ( + + 90 AS INTEGER )
----
93
58320

query II rowsort
SELECT - 20 AS col0, + 88 AS col1
----
-20
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT + SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) * 3 / COUNT( DISTINCT - - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 3 / COUNT ( DISTINCT - - 44 )
----
NULL

query I rowsort
SELECT ALL - + 53 * + 63
----
-3339

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT - MAX( DISTINCT - + 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7898
SELECT - MAX ( DISTINCT - + 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT MIN( ALL - - 93 ) * - + ( + 78 ) - + - 41 AS col0
----
-7213

skipif mysql # not compatible
query I rowsort label-7899
SELECT MIN ( ALL - - 93 ) * - + ( + 78 ) - + - 41 AS col0
----
-7213

query I rowsort
SELECT DISTINCT - - 28 + - 21 + - 79 * - + ( + 30 ) AS col2
----
2377

query I rowsort
SELECT - NULLIF ( 52, - - 13 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-7902
SELECT ALL COUNT( * ) AS col1, - 99 AS col1
----
1
-99

skipif mysql # not compatible
query II rowsort label-7902
SELECT ALL COUNT ( * ) AS col1, - 99 AS col1
----
1
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ALL NULLIF ( + NULLIF ( + - 19, 80 + - 23 * - COUNT( * ) + - 1 ), - ( 56 ) ) + + 87
----
68

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL NULLIF ( + NULLIF ( + - 19, 80 + - 23 * - COUNT ( * ) + - 1 ), - ( 56 ) ) + + 87
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT - 12 - + 64 + - 3 - + 49 * - ( + + 38 ) * + MAX( DISTINCT - + ( 91 ) ) * + 38
----
-6438875

skipif mysql # not compatible
query I rowsort label-7904
SELECT - 12 - + 64 + - 3 - + 49 * - ( + + 38 ) * + MAX ( DISTINCT - + ( 91 ) ) * + 38
----
-6438875

query I rowsort
SELECT DISTINCT 61 + - + 86
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL - SUM( - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - SUM ( - 3 )
----
3

query I rowsort
SELECT ALL + - 49 + + 84
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7908
SELECT ALL - + 86 + + - COUNT( * ) + + 98 DIV 56 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL - + 86 + + - COUNT ( * ) + + 98 / 56 AS col2
----
-86

query I rowsort
SELECT + 92 + - 41 * - 74 + 31 AS col2
----
3157

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT - 71 + COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7910
SELECT - 71 + COUNT ( * ) AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7911
SELECT ALL COUNT( * ) DIV - 83 * COUNT( * ) * CAST( - 13 AS SIGNED ) AS col0, 58 AS col2
----
0
58

skipif mysql # not compatible
query II rowsort label-7911
SELECT ALL COUNT ( * ) / - 83 * COUNT ( * ) * CAST ( - 13 AS INTEGER ) AS col0, 58 AS col2
----
0
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7912
SELECT MIN( + + 23 ), + CAST( - AVG ( 18 ) AS SIGNED ) col2
----
23
-18

skipif mysql # not compatible
query II rowsort label-7912
SELECT MIN ( + + 23 ), + CAST ( - AVG ( 18 ) AS INTEGER ) col2
----
23
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7913
SELECT ALL COUNT( * ) DIV + 85 * + + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL COUNT ( * ) / + 85 * + + COUNT ( * ) col0
----
0

query I rowsort
SELECT ALL - 76 col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT COUNT( * ) + 89 * 23 AS col0
----
2048

skipif mysql # not compatible
query I rowsort label-7915
SELECT COUNT ( * ) + 89 * 23 AS col0
----
2048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT DISTINCT ( - + 61 ) - + - 31 + + - 79 / + CASE + + 39 WHEN + - 9 * - 14 * - + 96 THEN 88 WHEN + 20 * 15 + + 16 THEN NULL WHEN - CASE - AVG ( + 53 ) WHEN - 98 THEN + CAST( NULL AS SIGNED ) END THEN NULL ELSE NULL END / - COUNT( * ) + + 41 * 76 * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT ( - + 61 ) - + - 31 + + - 79 / + CASE + + 39 WHEN + - 9 * - 14 * - + 96 THEN 88 WHEN + 20 * 15 + + 16 THEN NULL WHEN - CASE - AVG ( + 53 ) WHEN - 98 THEN + CAST ( NULL AS INTEGER ) END THEN NULL ELSE NULL END / - COUNT ( * ) + + 41 * 76 * 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT DISTINCT NULLIF ( - COUNT( * ), 47 ) - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT NULLIF ( - COUNT ( * ), 47 ) - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT + MIN( + 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7918
SELECT + MIN ( + 45 ) AS col1
----
45

query I rowsort
SELECT 27 - + + 51
----
-24

query I rowsort
SELECT ( + 97 ) - 86
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7921
SELECT SUM( DISTINCT 12 ) * NULLIF ( - CASE - CAST( - 13 AS DECIMAL ) WHEN - - 66 * - - COUNT( * ) - 61 + ( + 31 ) * - 53 THEN 71 WHEN 74 THEN + 72 * - 48 END, 30 + 77 ) + 9 * + ( - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT SUM ( DISTINCT 12 ) * NULLIF ( - CASE - CAST ( - 13 AS REAL ) WHEN - - 66 * - - COUNT ( * ) - 61 + ( + 31 ) * - 53 THEN 71 WHEN 74 THEN + 72 * - 48 END, 30 + 77 ) + 9 * + ( - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( 10 ) AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7923
SELECT ALL + - 31 * + 93 * - CAST( - 68 AS SIGNED ) * + ( + + ( 9 ) ) col1, - 99 * 94
----
-1764396
-9306

skipif mysql # not compatible
query II rowsort label-7923
SELECT ALL + - 31 * + 93 * - CAST ( - 68 AS INTEGER ) * + ( + + ( 9 ) ) col1, - 99 * 94
----
-1764396
-9306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT + ( - 1 ) * CAST( 8 AS SIGNED ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7924
SELECT + ( - 1 ) * CAST ( 8 AS INTEGER ) AS col1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7925
SELECT DISTINCT - + CASE + + SUM( 55 ) WHEN 1 THEN - - 9 ELSE - 69 DIV + 38 * - COUNT( * ) END col0
----
-1

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT - + CASE + + SUM ( 55 ) WHEN 1 THEN - - 9 ELSE - 69 / + 38 * - COUNT ( * ) END col0
----
-1

query I rowsort
SELECT 78 * 45 * + ( - 40 ) + + + 52 + - - 99
----
-140249

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT - COUNT( * ) - - - 3
----
-4

skipif mysql # not compatible
query I rowsort label-7927
SELECT - COUNT ( * ) - - - 3
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7928
SELECT ALL + - 39 * - + 3 * + + 57 * CAST( NULL AS DECIMAL ) * - COUNT( * ) + + + 26 - ( + 51 ) + 89 / + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL + - 39 * - + 3 * + + 57 * CAST ( NULL AS REAL ) * - COUNT ( * ) + + + 26 - ( + 51 ) + 89 / + 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7929
SELECT + COUNT( * ) * - 13 + 14 + - CASE + 40 WHEN - + AVG ( DISTINCT - 59 ) * - COUNT( * ) * + ( 97 ) / COUNT( * ) + + 69 - + 13 THEN 5 WHEN - 94 + - NULLIF ( + 5 + 61, - 19 ) * 59 THEN NULL WHEN 70 * - 35 THEN NULL END + 86 * 82 / - CAST( 12 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT + COUNT ( * ) * - 13 + 14 + - CASE + 40 WHEN - + AVG ( DISTINCT - 59 ) * - COUNT ( * ) * + ( 97 ) / COUNT ( * ) + + 69 - + 13 THEN 5 WHEN - 94 + - NULLIF ( + 5 + 61, - 19 ) * 59 THEN NULL WHEN 70 * - 35 THEN NULL END + 86 * 82 / - CAST ( 12 AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 76 + + - 33 AS col1
----
43

query I rowsort
SELECT ALL - + 26 + - + ( + 55 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL + 43 + + CASE - - NULLIF ( - - 65, - COUNT( * ) + + SUM( 20 ) ) WHEN + 4 + + 60 THEN 60 WHEN 34 THEN + SUM( ALL 44 ) / - 19 WHEN - 33 * + 99 THEN 84 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL + 43 + + CASE - - NULLIF ( - - 65, - COUNT ( * ) + + SUM ( 20 ) ) WHEN + 4 + + 60 THEN 60 WHEN 34 THEN + SUM ( ALL 44 ) / - 19 WHEN - 33 * + 99 THEN 84 END AS col0
----
NULL

query I rowsort
SELECT 88 + 48 * + 20
----
1048

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT DISTINCT - - CASE - 35 WHEN - COUNT( * ) THEN NULL WHEN + - 54 THEN + + 68 WHEN + 14 * CASE - 94 WHEN - + 78 THEN ( MAX( ALL 53 ) ) ELSE NULL END + 80 * 85 THEN - 95 * + 42 END * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT - - CASE - 35 WHEN - COUNT ( * ) THEN NULL WHEN + - 54 THEN + + 68 WHEN + 14 * CASE - 94 WHEN - + 78 THEN ( MAX ( ALL 53 ) ) ELSE NULL END + 80 * 85 THEN - 95 * + 42 END * 52
----
NULL

query I rowsort
SELECT ALL + 82 + - + 73
----
9

query I rowsort
SELECT DISTINCT - - 84 + 41
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT - + CAST( + 82 AS SIGNED ) + 41
----
-41

skipif mysql # not compatible
query I rowsort label-7937
SELECT - + CAST ( + 82 AS INTEGER ) + 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT - 76 * - 66 + + 64 * 80 * + + 34 + - - COUNT( * )
----
179097

skipif mysql # not compatible
query I rowsort label-7938
SELECT - 76 * - 66 + + 64 * 80 * + + 34 + - - COUNT ( * )
----
179097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7939
SELECT - 46 + + 76 * - - COALESCE ( COUNT( * ), COUNT( ALL 8 ) * - 74 DIV - 25 - - + 43 - - 8 * CAST( NULL AS SIGNED ) )
----
30

skipif mysql # not compatible
query I rowsort label-7939
SELECT - 46 + + 76 * - - COALESCE ( COUNT ( * ), COUNT ( ALL 8 ) * - 74 / - 25 - - + 43 - - 8 * CAST ( NULL AS INTEGER ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT - 60 + - 63 + COUNT( * ) AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-7940
SELECT - 60 + - 63 + COUNT ( * ) AS col0
----
-122

query I rowsort
SELECT - ( + - 46 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7942
SELECT - MAX( ALL + 8 ) AS col2, 73 * - 34
----
-8
-2482

skipif mysql # not compatible
query II rowsort label-7942
SELECT - MAX ( ALL + 8 ) AS col2, 73 * - 34
----
-8
-2482

query I rowsort
SELECT - 2 + + 41 col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7944
SELECT DISTINCT + ( + CASE - COUNT( * ) WHEN + 59 THEN 98 * + + CAST( - 51 AS SIGNED ) ELSE - - 57 END ), 68 * + + 56 AS col1
----
57
3808

skipif mysql # not compatible
query II rowsort label-7944
SELECT DISTINCT + ( + CASE - COUNT ( * ) WHEN + 59 THEN 98 * + + CAST ( - 51 AS INTEGER ) ELSE - - 57 END ), 68 * + + 56 AS col1
----
57
3808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7945
SELECT + COUNT( * ) DIV - + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7945
SELECT + COUNT ( * ) / - + 48 AS col0
----
0

query I rowsort
SELECT - 19 * + + 8 AS col1
----
-152

query I rowsort
SELECT NULLIF ( - + 44, + + 1 ) AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7948
SELECT + COALESCE ( - 69, - - 21, - 61, - CAST( NULL AS SIGNED ), 93 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-7948
SELECT + COALESCE ( - 69, - - 21, - 61, - CAST ( NULL AS INTEGER ), 93 ) AS col1
----
-69

query I rowsort
SELECT - 12 + - + 61
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7950
SELECT + SUM( DISTINCT 7 ) DIV - - 64
----
0

skipif mysql # not compatible
query I rowsort label-7950
SELECT + SUM ( DISTINCT 7 ) / - - 64
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT ALL + CAST( 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL + CAST ( 13 AS INTEGER )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT DISTINCT 0 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT 0 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7953
SELECT ALL COUNT( * ) * 6 * 47 DIV 3 + 62 - + + 31 - + 98 * + COUNT( * ) + + 0 DIV 25 + 27 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL COUNT ( * ) * 6 * 47 / 3 + 62 - + + 31 - + 98 * + COUNT ( * ) + + 0 / 25 + 27 AS col2
----
54

query I rowsort
SELECT + 54 * + 66 + - 75 * - 90
----
10314

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT + CASE - + 85 WHEN + - 61 / - - COUNT( * ) * - 54 THEN 30 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT + CASE - + 85 WHEN + - 61 / - - COUNT ( * ) * - 54 THEN 30 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL + - MAX( ALL 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL + - MAX ( ALL 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT + COUNT( DISTINCT 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7957
SELECT + COUNT ( DISTINCT 12 ) AS col2
----
1

query I rowsort
SELECT - 95 * + - 50 + + 94 AS col1
----
4844

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL + COUNT( * ) * - 7 + - 97 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL + COUNT ( * ) * - 7 + - 97 AS col2
----
-104

query I rowsort
SELECT + ( - + 64 )
----
-64

query I rowsort
SELECT ALL 37 * - 81
----
-2997

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT DISTINCT 36 * + - COUNT( * ) - + 50 + + + 21
----
-65

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT 36 * + - COUNT ( * ) - + 50 + + + 21
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7963
SELECT ALL + 97 * - COUNT( * ) * - + 39 DIV 3 * + + 56 DIV - + COUNT( * )
----
-70616

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + 97 * - COUNT ( * ) * - + 39 / 3 * + + 56 / - + COUNT ( * )
----
-70616

query I rowsort
SELECT + 94 * - 28 col0
----
-2632

query I rowsort
SELECT ALL - 6 + 7 + - + ( - 93 ) AS col0
----
94

query I rowsort
SELECT + ( + 74 ) AS col2
----
74

query I rowsort
SELECT - + 28 AS col0
----
-28

query I rowsort
SELECT - COALESCE ( - - 65, + - 47, - 75 * - + NULLIF ( - 86, - 79 ), + 0 ) AS col0
----
-65

query II rowsort
SELECT 2 AS col1, CASE 65 WHEN + 26 THEN - + 18 END / 9 + 42
----
2
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7970
SELECT - + COALESCE ( + NULLIF ( + - 82, + 24 ), + - CAST( NULL AS SIGNED ) + - 1, + 75, - 51 + 4 + - 16 DIV 71 )
----
82

skipif mysql # not compatible
query I rowsort label-7970
SELECT - + COALESCE ( + NULLIF ( + - 82, + 24 ), + - CAST ( NULL AS INTEGER ) + - 1, + 75, - 51 + 4 + - 16 / 71 )
----
82

query I rowsort
SELECT ALL - ( - 30 ) AS col2
----
30

query I rowsort
SELECT + + 65 - + 87 AS col2
----
-22

query I rowsort
SELECT - 61 - 93 AS col0
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL MIN( DISTINCT - - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL MIN ( DISTINCT - - 45 )
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-7975
SELECT - 55 * - 6 AS col2, 23 DIV - 86 AS col2
----
330
0

skipif mysql # not compatible
query II rowsort label-7975
SELECT - 55 * - 6 AS col2, 23 / - 86 AS col2
----
330
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7976
SELECT DISTINCT - ( + - COUNT( * ) ) - 31 DIV - 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT - ( + - COUNT ( * ) ) - 31 / - 46 AS col0
----
1

query I rowsort
SELECT - 7 - 39 AS col1
----
-46

query II rowsort
SELECT DISTINCT ( + + 98 ), 13 col0
----
98
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7979
SELECT - 95 * + 53 AS col0, - 54 * NULLIF ( - - 52, + - MAX( 95 ) ) AS col1
----
-5035
-2808

skipif mysql # not compatible
query II rowsort label-7979
SELECT - 95 * + 53 AS col0, - 54 * NULLIF ( - - 52, + - MAX ( 95 ) ) AS col1
----
-5035
-2808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT - COALESCE ( 71, + 74 * - - 64 - + 42 ) * - 14 / - 23 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT - COALESCE ( 71, + 74 * - - 64 - + 42 ) * - 14 / - 23 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 25 * 88
----
2200

onlyif mysql # aggregate syntax: 
query II rowsort label-7982
SELECT ALL + 4 col1, 58 * - COUNT( * ) AS col0
----
4
-58

skipif mysql # not compatible
query II rowsort label-7982
SELECT ALL + 4 col1, 58 * - COUNT ( * ) AS col0
----
4
-58

query I rowsort
SELECT DISTINCT + 16 * + ( ( + 95 ) )
----
1520

query I rowsort
SELECT ALL + 98 * 95
----
9310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT ALL + 42 / - 35 + + + ( CAST( NULL AS SIGNED ) ) + + 9 + + + 93 - - CAST( NULL AS SIGNED ) + - - 60 / - 53 + - - 12 + - AVG ( ALL 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL + 42 / - 35 + + + ( CAST ( NULL AS INTEGER ) ) + + 9 + + + 93 - - CAST ( NULL AS INTEGER ) + - - 60 / - 53 + - - 12 + - AVG ( ALL 74 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7986
SELECT ALL 69 / 90 + - MAX( ALL + CAST( NULL AS SIGNED ) ) * + + MAX( - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL 69 / 90 + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) * + + MAX ( - 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7987
SELECT DISTINCT + COUNT( * ) col0, 87 * - 11 + 31
----
1
-926

skipif mysql # not compatible
query II rowsort label-7987
SELECT DISTINCT + COUNT ( * ) col0, 87 * - 11 + 31
----
1
-926

onlyif mysql # DIV for integer division: 
query I rowsort label-7988
SELECT ALL 62 DIV + 20 + - - 48
----
51

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL 62 / + 20 + - - 48
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT + CAST( NULL AS SIGNED ) * - + 6 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT + CAST ( NULL AS INTEGER ) * - + 6 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7990
SELECT DISTINCT + 13 DIV + 99 + CAST( 87 AS SIGNED ) DIV - + 21 + - + 23 * 45
----
-1039

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT + 13 / + 99 + CAST ( 87 AS INTEGER ) / - + 21 + - + 23 * 45
----
-1039

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7991
SELECT ALL + 77 DIV - - 61 + - + 71 * + COUNT( * ) * 55 AS col0
----
-3904

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL + 77 / - - 61 + - + 71 * + COUNT ( * ) * 55 AS col0
----
-3904

query I rowsort
SELECT - 38 - 30 col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT + - NULLIF ( 32, - 41 + - COUNT( DISTINCT + - 84 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-7993
SELECT + - NULLIF ( 32, - 41 + - COUNT ( DISTINCT + - 84 ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT + COUNT( * ) * + 36 - - ( - 81 ) + - 33 * + - COALESCE ( 11, + COUNT( * ) ) + + - 63
----
255

skipif mysql # not compatible
query I rowsort label-7994
SELECT + COUNT ( * ) * + 36 - - ( - 81 ) + - 33 * + - COALESCE ( 11, + COUNT ( * ) ) + + - 63
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT 91 * - 6 * + COUNT( * )
----
-546

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT 91 * - 6 * + COUNT ( * )
----
-546

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT ALL + + 4 AS col0, - COUNT( * ) * - 24 AS col2
----
4
24

skipif mysql # not compatible
query II rowsort label-7996
SELECT ALL + + 4 AS col0, - COUNT ( * ) * - 24 AS col2
----
4
24

query II rowsort
SELECT ALL 9 * + 16 + - + ( - 9 ) AS col0, + 78 * - + 18 AS col2
----
153
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT SUM( 51 ) + + 82
----
133

skipif mysql # not compatible
query I rowsort label-7998
SELECT SUM ( 51 ) + + 82
----
133

query II rowsort
SELECT DISTINCT - 30 col0, 56 - 15 * - 80 AS col0
----
-30
1256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8000
SELECT - 39, NULLIF ( 13, - - COALESCE ( + 38, + - 33 ) ) DIV - 97 + + NULLIF ( + 53, - COUNT( * ) * - + CASE + 60 WHEN 92 * CAST( NULL AS SIGNED ) + 25 DIV SUM( + CASE 75 WHEN + 58 - 20 * + ( + 25 ) THEN NULL ELSE + 16 END ) THEN NULL WHEN 16 THEN 8 WHEN + 66 THEN NULL END * COUNT( * ) + + 73 ) AS col2
----
-39
53

skipif mysql # not compatible
query II rowsort label-8000
SELECT - 39, NULLIF ( 13, - - COALESCE ( + 38, + - 33 ) ) / - 97 + + NULLIF ( + 53, - COUNT ( * ) * - + CASE + 60 WHEN 92 * CAST ( NULL AS INTEGER ) + 25 / SUM ( + CASE 75 WHEN + 58 - 20 * + ( + 25 ) THEN NULL ELSE + 16 END ) THEN NULL WHEN 16 THEN 8 WHEN + 66 THEN NULL END * COUNT ( * ) + + 73 ) AS col2
----
-39
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL + 35 - + - COUNT( * ) * - 62 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL + 35 - + - COUNT ( * ) * - 62 AS col1
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8002
SELECT ALL + ( - 82 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL + ( - 82 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT 51 + + - NULLIF ( + - 84, + 6 / - CASE - 4 WHEN + 81 / + 18 THEN - COUNT( * ) * - 23 * - - SUM( - 99 ) - + 20 END * + NULLIF ( - 17 / COUNT( * ) + 91, 46 + 71 ) - 80 )
----
135

skipif mysql # not compatible
query I rowsort label-8003
SELECT 51 + + - NULLIF ( + - 84, + 6 / - CASE - 4 WHEN + 81 / + 18 THEN - COUNT ( * ) * - 23 * - - SUM ( - 99 ) - + 20 END * + NULLIF ( - 17 / COUNT ( * ) + 91, 46 + 71 ) - 80 )
----
135

query I rowsort
SELECT + 15 - - 29 * + 95 AS col1
----
2770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8005
SELECT - MIN( - 16 ) * - CAST( 82 AS SIGNED )
----
-1312

skipif mysql # not compatible
query I rowsort label-8005
SELECT - MIN ( - 16 ) * - CAST ( 82 AS INTEGER )
----
-1312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT ALL CAST( + + 54 AS SIGNED ) - - + NULLIF ( - - 49, + + 0 + - 84 + 44 ) AS col0
----
103

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL CAST ( + + 54 AS INTEGER ) - - + NULLIF ( - - 49, + + 0 + - 84 + 44 ) AS col0
----
103

query I rowsort
SELECT 28 * + + ( + 77 ) + - 10
----
2146

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT - COUNT( DISTINCT 67 ) + NULLIF ( - + 32, + 72 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8008
SELECT - COUNT ( DISTINCT 67 ) + NULLIF ( - + 32, + 72 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT ALL + MAX( DISTINCT + 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL + MAX ( DISTINCT + 34 ) AS col1
----
34

query I rowsort
SELECT + 4 * + 95 * - 58 AS col2
----
-22040

query II rowsort
SELECT 66 + + + 22, - 83 * - 86 AS col2
----
88
7138

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT 40 / CASE WHEN 29 BETWEEN ( + + 81 + + + COALESCE ( - 12, - 37 / - 20 + - 7, - + 60 * 17 ) + + 69 * 85 ) AND 50 THEN - 34 + + 79 WHEN NOT ( - 77 + - 39 ) NOT BETWEEN - COUNT( * ) * 27 AND - COUNT( * ) THEN NULLIF ( 94, + CASE - 19 WHEN - COUNT( * ) THEN + 43 ELSE NULL END ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT 40 / CASE WHEN 29 BETWEEN ( + + 81 + + + COALESCE ( - 12, - 37 / - 20 + - 7, - + 60 * 17 ) + + 69 * 85 ) AND 50 THEN - 34 + + 79 WHEN NOT ( - 77 + - 39 ) NOT BETWEEN - COUNT ( * ) * 27 AND - COUNT ( * ) THEN NULLIF ( 94, + CASE - 19 WHEN - COUNT ( * ) THEN + 43 ELSE NULL END ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8013
SELECT ALL 37 DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL 37 / 63 AS col2
----
0

query I rowsort
SELECT 11 + - 57 * 12
----
-673

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8015
SELECT 50 + + - 51 + CAST( NULL AS SIGNED ) col1, NULLIF ( ( 50 ), 56 )
----
NULL
50

skipif mysql # not compatible
query II rowsort label-8015
SELECT 50 + + - 51 + CAST ( NULL AS INTEGER ) col1, NULLIF ( ( 50 ), 56 )
----
NULL
50

query I rowsort
SELECT 59 + - + 9 AS col0
----
50

query I rowsort
SELECT ALL 90 * + 64
----
5760

query I rowsort
SELECT DISTINCT 36 + + 14
----
50

query I rowsort
SELECT DISTINCT ( + + 40 ) + - + 10 + + 39 - - 67 + + + 48 AS col2
----
184

query I rowsort
SELECT 56 + + - 17
----
39

query I rowsort
SELECT DISTINCT 31 col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8022
SELECT 40 DIV + MAX( + + 23 ) - 2 + 80 + 33 DIV - 54 * + + COALESCE ( + ( - + 46 ), - CASE + 57 WHEN - 13 THEN 49 WHEN + 81 THEN - 24 + 79 * 26 END * 35 + - MAX( DISTINCT + ( + 13 ) ) * + COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-8022
SELECT 40 / + MAX ( + + 23 ) - 2 + 80 + 33 / - 54 * + + COALESCE ( + ( - + 46 ), - CASE + 57 WHEN - 13 THEN 49 WHEN + 81 THEN - 24 + 79 * 26 END * 35 + - MAX ( DISTINCT + ( + 13 ) ) * + COUNT ( * ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT DISTINCT - COALESCE ( - NULLIF ( + 72, ( - - 32 ) * - + ( + 47 ) * + COUNT( * ) ), 90 + - 75 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT - COALESCE ( - NULLIF ( + 72, ( - - 32 ) * - + ( + 47 ) * + COUNT ( * ) ), 90 + - 75 ) AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT ALL - 19 + + CAST( NULL AS SIGNED ) + + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL - 19 + + CAST ( NULL AS INTEGER ) + + + 93
----
NULL

query II rowsort
SELECT ALL + - 7 - 59 AS col0, - 95 AS col0
----
-66
-95

query I rowsort
SELECT 59 * - 31 + - 93
----
-1922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8027
SELECT ALL - CASE WHEN + 89 IS NULL THEN - 5 * - COUNT( * ) * - MAX( ALL 7 ) * - + 99 + + CAST( - 39 AS SIGNED ) + + ( - COUNT( ALL + 9 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL - CASE WHEN + 89 IS NULL THEN - 5 * - COUNT ( * ) * - MAX ( ALL 7 ) * - + 99 + + CAST ( - 39 AS INTEGER ) + + ( - COUNT ( ALL + 9 ) ) END
----
NULL

query I rowsort
SELECT DISTINCT - + ( + 1 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT - 12 + - + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-8029
SELECT - 12 + - + COUNT ( * )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8030
SELECT CASE + COALESCE ( + - ( + 45 ), - 20 + + MAX( - + COALESCE ( - - ( - + 33 ), + 60 ) ) ) WHEN + CAST( NULL AS SIGNED ) THEN + 91 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT CASE + COALESCE ( + - ( + 45 ), - 20 + + MAX ( - + COALESCE ( - - ( - + 33 ), + 60 ) ) ) WHEN + CAST ( NULL AS INTEGER ) THEN + 91 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 41, - 13 ) AS col0
----
-41

query I rowsort
SELECT + 88 * 98 * + 92
----
793408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8033
SELECT ALL - 63 * + 49, NULLIF ( + - 10, - + COUNT( * ) ) + - + CASE - + 76 WHEN + 26 THEN NULL ELSE - 67 DIV 77 - - + 6 END * - CAST( 63 AS SIGNED ) + 66 AS col0
----
-3087
434

skipif mysql # not compatible
query II rowsort label-8033
SELECT ALL - 63 * + 49, NULLIF ( + - 10, - + COUNT ( * ) ) + - + CASE - + 76 WHEN + 26 THEN NULL ELSE - 67 / 77 - - + 6 END * - CAST ( 63 AS INTEGER ) + 66 AS col0
----
-3087
434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8034
SELECT - 1 * - - 39 + + COUNT( + + 39 ) - + 37 * - - 4 + 64 + + SUM( - 95 ) * + - 25 + + CAST( NULL AS SIGNED ) * - 94 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT - 1 * - - 39 + + COUNT ( + + 39 ) - + 37 * - - 4 + 64 + + SUM ( - 95 ) * + - 25 + + CAST ( NULL AS INTEGER ) * - 94 * - COUNT ( * )
----
NULL

query I rowsort
SELECT 5 - + - 7
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT 11 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-8036
SELECT 11 / + 75
----
0

query I rowsort
SELECT 14 + - - 59
----
73

query I rowsort
SELECT 21 * + 76
----
1596

query I rowsort
SELECT 56 + + 56 + 98 * + 4 - 81
----
423

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT - MIN( ALL - COALESCE ( - - 90, + - 17 * + 37 + + 72 + - 69 + - 18, + 71 ) )
----
90

skipif mysql # not compatible
query I rowsort label-8040
SELECT - MIN ( ALL - COALESCE ( - - 90, + - 17 * + 37 + + 72 + - 69 + - 18, + 71 ) )
----
90

query I rowsort
SELECT 69 * - + 78 AS col0
----
-5382

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT 40 - + MIN( 19 ) + + 57 * 81 AS col2
----
4638

skipif mysql # not compatible
query I rowsort label-8042
SELECT 40 - + MIN ( 19 ) + + 57 * 81 AS col2
----
4638

query II rowsort
SELECT ALL 15, + 67 AS col0
----
15
67

query I rowsort
SELECT 46 * + 46
----
2116

query I rowsort
SELECT DISTINCT 95 + - ( - - 86 )
----
9

query II rowsort
SELECT 73 AS col2, 1
----
73
1

query I rowsort
SELECT DISTINCT 77 + - NULLIF ( 90, - 56 * + ( 1 ) * - 75 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8048
SELECT NULLIF ( - 81, 92 ) + - CAST( NULL AS SIGNED ) + - + ( + 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8048
SELECT NULLIF ( - 81, 92 ) + - CAST ( NULL AS INTEGER ) + - + ( + 35 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 41 + + 27 AS col0
----
68

query I rowsort
SELECT ALL 76 + - 31 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT - SUM( DISTINCT + 6 ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-8051
SELECT - SUM ( DISTINCT + 6 ) col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT COALESCE ( 32, ( 40 ) * COUNT( * ) + - + COUNT( * ) )
----
32

skipif mysql # not compatible
query I rowsort label-8052
SELECT COALESCE ( 32, ( 40 ) * COUNT ( * ) + - + COUNT ( * ) )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8053
SELECT DISTINCT COUNT( * ) * - - CASE - + 56 WHEN - 62 + - 37 THEN NULL WHEN - 95 THEN - COUNT( * ) / CAST( - - COALESCE ( - COALESCE ( 45, - 72 * COALESCE ( + ( - CAST( 88 AS SIGNED ) ), 51 + + 69 ), ( + 76 ) ), 86 + + 53 / 50, CAST( - 89 AS SIGNED ) ) AS SIGNED ) * 29 + CASE 98 WHEN + 34 THEN + 44 WHEN AVG ( DISTINCT 67 ) THEN NULL END END + 27 / 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT COUNT ( * ) * - - CASE - + 56 WHEN - 62 + - 37 THEN NULL WHEN - 95 THEN - COUNT ( * ) / CAST ( - - COALESCE ( - COALESCE ( 45, - 72 * COALESCE ( + ( - CAST ( 88 AS INTEGER ) ), 51 + + 69 ), ( + 76 ) ), 86 + + 53 / 50, CAST ( - 89 AS INTEGER ) ) AS INTEGER ) * 29 + CASE 98 WHEN + 34 THEN + 44 WHEN AVG ( DISTINCT 67 ) THEN NULL END END + 27 / 81
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8054
SELECT MIN( + + CAST( NULL AS SIGNED ) ) * - 90, COUNT( * ) + + 61 AS col0
----
NULL
62

skipif mysql # not compatible
query II rowsort label-8054
SELECT MIN ( + + CAST ( NULL AS INTEGER ) ) * - 90, COUNT ( * ) + + 61 AS col0
----
NULL
62

query I rowsort
SELECT ALL + 90 * 84 AS col2
----
7560

onlyif mysql # DIV for integer division: 
query I rowsort label-8056
SELECT ALL + 10 DIV + 6 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL + 10 / + 6 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT - + COUNT( * ) * + 86 * + + 70
----
-6020

skipif mysql # not compatible
query I rowsort label-8057
SELECT - + COUNT ( * ) * + 86 * + + 70
----
-6020

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8058
SELECT ALL + 98, - SUM( ALL - 32 ) DIV + 49 * 49 col1
----
98
0

skipif mysql # not compatible
query II rowsort label-8058
SELECT ALL + 98, - SUM ( ALL - 32 ) / + 49 * 49 col1
----
98
0

query I rowsort
SELECT + 13 + + - 6 AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8060
SELECT ALL - - MIN( ALL 50 ) * - 13 + + - COUNT( * ) - - 2 - + 12 AS col0, 1 AS col1
----
-661
1

skipif mysql # not compatible
query II rowsort label-8060
SELECT ALL - - MIN ( ALL 50 ) * - 13 + + - COUNT ( * ) - - 2 - + 12 AS col0, 1 AS col1
----
-661
1

query I rowsort
SELECT + 27 + + 90
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-8062
SELECT COUNT( * ) col1, ( + 32 ) AS col0
----
1
32

skipif mysql # not compatible
query II rowsort label-8062
SELECT COUNT ( * ) col1, ( + 32 ) AS col0
----
1
32

query II rowsort
SELECT - + 67 * - 96 + - + 17 col0, + 63 * ( + 87 )
----
6415
5481

query II rowsort
SELECT ALL + 1, 95 col1
----
1
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT DISTINCT - 14 * 29 * + 3 + 86 + - + 11 - - MAX( DISTINCT 35 ) * + + 3 + - NULLIF ( - CAST( NULL AS SIGNED ), + 64 * + + MIN( 25 ) + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT - 14 * 29 * + 3 + 86 + - + 11 - - MAX ( DISTINCT 35 ) * + + 3 + - NULLIF ( - CAST ( NULL AS INTEGER ), + 64 * + + MIN ( 25 ) + 82 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8066
SELECT - + 3 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT - + 3 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8067
SELECT COUNT( * ) AS col2, NULLIF ( - 6, 81 * - + 29 ) * + - ( + COALESCE ( + 31, + - MIN( DISTINCT + + 44 ) * + COUNT( * ) ) )
----
1
186

skipif mysql # not compatible
query II rowsort label-8067
SELECT COUNT ( * ) AS col2, NULLIF ( - 6, 81 * - + 29 ) * + - ( + COALESCE ( + 31, + - MIN ( DISTINCT + + 44 ) * + COUNT ( * ) ) )
----
1
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8068
SELECT DISTINCT - CASE + 54 WHEN ( - + 73 ) / + 85 * - 50 THEN NULL ELSE - COUNT( * ) - SUM( ALL - COALESCE ( + + 73, 23 ) ) + 95 END * - - CAST( NULL AS SIGNED ) * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT - CASE + 54 WHEN ( - + 73 ) / + 85 * - 50 THEN NULL ELSE - COUNT ( * ) - SUM ( ALL - COALESCE ( + + 73, 23 ) ) + 95 END * - - CAST ( NULL AS INTEGER ) * + 59
----
NULL

query I rowsort
SELECT - ( + 36 ) + - NULLIF ( - 80, 10 ) * - - 33 AS col1
----
2604

query I rowsort
SELECT - 26 * 88 AS col0
----
-2288

query I rowsort
SELECT + 84 + + 26 * 3
----
162

query I rowsort
SELECT DISTINCT ( - 66 ) AS col1
----
-66

query I rowsort
SELECT DISTINCT - 57 + + 77 AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8074
SELECT - 48 + - 95 * COALESCE ( + MIN( DISTINCT - CAST( - 47 AS SIGNED ) ), - 25, 8 * + 79 )
----
-4513

skipif mysql # not compatible
query I rowsort label-8074
SELECT - 48 + - 95 * COALESCE ( + MIN ( DISTINCT - CAST ( - 47 AS INTEGER ) ), - 25, 8 * + 79 )
----
-4513

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL - COALESCE ( + 16, 66 * - 6 + 62 * + 72 ) + + 20 * + 36 + SUM( + 4 )
----
708

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL - COALESCE ( + 16, 66 * - 6 + 62 * + 72 ) + + 20 * + 36 + SUM ( + 4 )
----
708

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT DISTINCT + 85 DIV + 51 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT + 85 / + 51 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT - COUNT( * ) + 11 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8077
SELECT - COUNT ( * ) + 11 AS col2
----
10

query I rowsort
SELECT - 30 + - 37 * - 21
----
747

query I rowsort
SELECT + 36 * 39
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT - CASE + 68 WHEN - 6 THEN + MIN( 44 ) * - 61 WHEN - - 50 + - 86 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT - CASE + 68 WHEN - 6 THEN + MIN ( 44 ) * - 61 WHEN - - 50 + - 86 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT ( - - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 95 - 54 + + 46 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-8083
SELECT + COUNT( * ) * 55 AS col1, 88 + 77 * 56
----
55
4400

skipif mysql # not compatible
query II rowsort label-8083
SELECT + COUNT ( * ) * 55 AS col1, 88 + 77 * 56
----
55
4400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8084
SELECT DISTINCT CAST( - 86 AS SIGNED ) AS col1, COUNT( * ) AS col2
----
-86
1

skipif mysql # not compatible
query II rowsort label-8084
SELECT DISTINCT CAST ( - 86 AS INTEGER ) AS col1, COUNT ( * ) AS col2
----
-86
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8085
SELECT ALL - SUM( ALL 17 ) AS col2, + 24 AS col2
----
-17
24

skipif mysql # not compatible
query II rowsort label-8085
SELECT ALL - SUM ( ALL 17 ) AS col2, + 24 AS col2
----
-17
24

query I rowsort
SELECT + + 42 + + + 8 AS col0
----
50

query II rowsort
SELECT ALL - 37 * + 54 - - 36 + - - 97, + 21 AS col1
----
-1865
21

query I rowsort
SELECT ALL + - 42 AS col0
----
-42

query II rowsort
SELECT + + 98 * + 53 * + 52 * - - 41 AS col2, + 82
----
11073608
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8090
SELECT + 34 + - CAST( - COALESCE ( COALESCE ( - ( 68 ), + 39 + - - COUNT( * ), + SUM( + 27 ) * + 22 * + 49 ), - 61 ) AS SIGNED ) + + 30 * 34 AS col0
----
986

skipif mysql # not compatible
query I rowsort label-8090
SELECT + 34 + - CAST ( - COALESCE ( COALESCE ( - ( 68 ), + 39 + - - COUNT ( * ), + SUM ( + 27 ) * + 22 * + 49 ), - 61 ) AS INTEGER ) + + 30 * 34 AS col0
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL 4 * - COUNT( * ) * + + 64 + 53
----
-203

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL 4 * - COUNT ( * ) * + + 64 + 53
----
-203

query I rowsort
SELECT DISTINCT + + ( + 39 )
----
39

query I rowsort
SELECT ALL + 43 * - - 68 * + 4 * - 80 - + 79 AS col2
----
-935759

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT + 61 * COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-8094
SELECT + 61 * COUNT ( * )
----
61

query I rowsort
SELECT + - 3 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8096
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8097
SELECT + - 71 * + ( - - NULLIF ( 4, + ( - 52 ) ) ) + 8 / + MIN( + 64 ) * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT + - 71 * + ( - - NULLIF ( 4, + ( - 52 ) ) ) + 8 / + MIN ( + 64 ) * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8098
SELECT ALL + 60 DIV + - COUNT( * ) col1, 97
----
-60
97

skipif mysql # not compatible
query II rowsort label-8098
SELECT ALL + 60 / + - COUNT ( * ) col1, 97
----
-60
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8099
SELECT + + COUNT( DISTINCT + 95 ) * + 56 + - 25 AS col0, 58
----
31
58

skipif mysql # not compatible
query II rowsort label-8099
SELECT + + COUNT ( DISTINCT + 95 ) * + 56 + - 25 AS col0, 58
----
31
58

query I rowsort
SELECT - 89 * + 31 + - + 83 AS col0
----
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT NULLIF ( - 58, - COUNT( * ) * ( + COUNT( * ) ) - - ( + + 72 ) - - 77 + + ( - 52 ) * + 9 + - + COUNT( * ) + - ( 26 ) * - 56 / 21 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-8101
SELECT NULLIF ( - 58, - COUNT ( * ) * ( + COUNT ( * ) ) - - ( + + 72 ) - - 77 + + ( - 52 ) * + 9 + - + COUNT ( * ) + - ( 26 ) * - 56 / 21 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL SUM( 91 ) * - + 81 * - 92 + + - 45 * - MIN( 74 )
----
681462

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL SUM ( 91 ) * - + 81 * - 92 + + - 45 * - MIN ( 74 )
----
681462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8103
SELECT - 49 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8103
SELECT - 49 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 71 * + 76
----
5396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8105
SELECT ALL 41 * + + 60 * - 67 + + - MAX( ALL + 82 ) DIV - + COUNT( * )
----
-164738

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL 41 * + + 60 * - 67 + + - MAX ( ALL + 82 ) / - + COUNT ( * )
----
-164738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT DISTINCT CAST( - 34 AS SIGNED ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT CAST ( - 34 AS INTEGER ) AS col0
----
-34

query I rowsort
SELECT + 13 + - 30
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8108
SELECT - NULLIF ( + - CASE CAST( NULL AS SIGNED ) WHEN - 58 THEN NULL ELSE + - 95 + - CASE - CAST( + COALESCE ( + - 63, - ( 92 ) * - 7 / MAX( - CASE 70 WHEN 98 THEN NULL WHEN - 91 THEN - 39 WHEN 71 THEN NULL END ) ) AS SIGNED ) WHEN - 80 THEN 90 END END, COUNT( * ) ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT - NULLIF ( + - CASE CAST ( NULL AS INTEGER ) WHEN - 58 THEN NULL ELSE + - 95 + - CASE - CAST ( + COALESCE ( + - 63, - ( 92 ) * - 7 / MAX ( - CASE 70 WHEN 98 THEN NULL WHEN - 91 THEN - 39 WHEN 71 THEN NULL END ) ) AS INTEGER ) WHEN - 80 THEN 90 END END, COUNT ( * ) ) * 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT SUM( + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8109
SELECT SUM ( + 95 ) AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT - 89 + + CAST( - NULLIF ( - 88, + + 53 * 72 ) AS SIGNED ) * 43 * - - 65 col0
----
245871

skipif mysql # not compatible
query I rowsort label-8110
SELECT - 89 + + CAST ( - NULLIF ( - 88, + + 53 * 72 ) AS INTEGER ) * 43 * - - 65 col0
----
245871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT DISTINCT CAST( NULLIF ( 30, + 51 + + - 36 ) AS SIGNED ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT CAST ( NULLIF ( 30, + 51 + + - 36 ) AS INTEGER ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT - 88 * - + 9 * MAX( DISTINCT + 15 )
----
11880

skipif mysql # not compatible
query I rowsort label-8112
SELECT - 88 * - + 9 * MAX ( DISTINCT + 15 )
----
11880

query II rowsort
SELECT 28, + 83 AS col0
----
28
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT 84 + COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8114
SELECT 84 + COUNT ( * ) AS col1
----
85

query I rowsort
SELECT ALL NULLIF ( 64, + 38 + + 59 ) * + - 53 AS col2
----
-3392

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT ALL + 36 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL + 36 / - 98
----
0

query I rowsort
SELECT DISTINCT + + 46 * + - 47 AS col2
----
-2162

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT 38 DIV 29
----
1

skipif mysql # not compatible
query I rowsort label-8118
SELECT 38 / 29
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT + 82 * - + CASE - 84 WHEN + 90 * 76 + - COUNT( + 71 ) - 48 THEN + - 3 WHEN 63 / COUNT( * ) * 72 THEN - SUM( DISTINCT + 55 ) END / - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT + 82 * - + CASE - 84 WHEN + 90 * 76 + - COUNT ( + 71 ) - 48 THEN + - 3 WHEN 63 / COUNT ( * ) * 72 THEN - SUM ( DISTINCT + 55 ) END / - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT CASE - COUNT( * ) WHEN + COUNT( * ) * + 17 + - 53 THEN + NULLIF ( - 73, 78 + - + 94 ) ELSE NULL END * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT CASE - COUNT ( * ) WHEN + COUNT ( * ) * + 17 + - 53 THEN + NULLIF ( - 73, 78 + - + 94 ) ELSE NULL END * - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT + CASE + COUNT( * ) WHEN - + 29 * - 58 / 51 THEN NULL ELSE + - 75 END - 72 * 88 * + ( - 89 ) AS col0
----
563829

skipif mysql # not compatible
query I rowsort label-8121
SELECT + CASE + COUNT ( * ) WHEN - + 29 * - 58 / 51 THEN NULL ELSE + - 75 END - 72 * 88 * + ( - 89 ) AS col0
----
563829

query I rowsort
SELECT ALL + - 33 * - 75
----
2475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8123
SELECT COUNT( * ) DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT COUNT ( * ) / + 96
----
0

query I rowsort
SELECT DISTINCT - ( 40 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8125
SELECT - COALESCE ( CAST( + - 88 AS SIGNED ), - 6 * - - 39 ) + - - 77 + - 43 DIV + 31 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-8125
SELECT - COALESCE ( CAST ( + - 88 AS INTEGER ), - 6 * - - 39 ) + - - 77 + - 43 / + 31 AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT ALL + - COALESCE ( + + 90, + + COUNT( * ) ) * + + 12
----
-1080

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL + - COALESCE ( + + 90, + + COUNT ( * ) ) * + + 12
----
-1080

query I rowsort
SELECT DISTINCT - ( + - 45 )
----
45

query I rowsort
SELECT 87 * + 49 AS col2
----
4263

onlyif mysql # DIV for integer division: 
query I rowsort label-8129
SELECT - + 30 DIV - - 2 + ( 20 ) * + 71 AS col2
----
1405

skipif mysql # not compatible
query I rowsort label-8129
SELECT - + 30 / - - 2 + ( 20 ) * + 71 AS col2
----
1405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8130
SELECT CAST( NULL AS SIGNED ) + - + NULLIF ( + CAST( NULL AS SIGNED ), 37 + 89 ) + - MAX( - - 30 ) * + 47 - AVG ( ALL 47 ) AS col2, + 83 + COUNT( * )
----
NULL
84

skipif mysql # not compatible
query II rowsort label-8130
SELECT CAST ( NULL AS INTEGER ) + - + NULLIF ( + CAST ( NULL AS INTEGER ), 37 + 89 ) + - MAX ( - - 30 ) * + 47 - AVG ( ALL 47 ) AS col2, + 83 + COUNT ( * )
----
NULL
84

query I rowsort
SELECT - - 15 * - + 76 + + + NULLIF ( - - 48, 22 )
----
-1092

query I rowsort
SELECT 10 * - - 71 AS col2
----
710

query II rowsort
SELECT ALL 78 + + 79 - + 71 AS col2, + 81
----
86
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT ALL COUNT( * ) + - - 39 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL COUNT ( * ) + - - 39 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8135
SELECT ALL CAST( NULL AS SIGNED ) * - - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL CAST ( NULL AS INTEGER ) * - - 87 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT - 37 * + 27 + - CAST( - CASE - + 0 WHEN - ( - + 98 ) * + CASE 19 WHEN - 71 THEN - + 17 WHEN + + 25 THEN + SUM( ALL + - 6 ) END THEN - - 84 WHEN + 73 THEN 89 + - 40 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT - 37 * + 27 + - CAST ( - CASE - + 0 WHEN - ( - + 98 ) * + CASE 19 WHEN - 71 THEN - + 17 WHEN + + 25 THEN + SUM ( ALL + - 6 ) END THEN - - 84 WHEN + 73 THEN 89 + - 40 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( + ( - + ( - 35 ) ), + NULLIF ( - + 34, - 4 ) * + - 50 ) + ( + 22 ) + 16 * 89
----
1481

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8138
SELECT 89 AS col1, + NULLIF ( - NULLIF ( + 79, - + 75 ), CAST( NULL AS DECIMAL ) / COUNT( * ) ) AS col1
----
89
-79

skipif mysql # not compatible
query II rowsort label-8138
SELECT 89 AS col1, + NULLIF ( - NULLIF ( + 79, - + 75 ), CAST ( NULL AS REAL ) / COUNT ( * ) ) AS col1
----
89
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8139
SELECT 12 * - - 79 * - + 66 + + 62 + CAST( + - NULLIF ( SUM( + - 21 ), 56 + - - 43 ) AS SIGNED ) + + - COALESCE ( + 42, + 10 DIV + COUNT( * ) + - COUNT( * ) - + + 41 + + CASE - COUNT( * ) WHEN MIN( DISTINCT 7 ) THEN - 37 * COUNT( * ) ELSE 40 END DIV + COALESCE ( + CASE WHEN COALESCE ( - 78, + CAST( NULL AS DECIMAL ) - 32, ( + COUNT( * ) ) ) IS NOT NULL THEN NULL ELSE CASE COUNT( * ) WHEN + 15 THEN - 72 + 11 END END, 8 DIV + 79 ) DIV 93 ) AS col0
----
-62527

skipif mysql # not compatible
query I rowsort label-8139
SELECT 12 * - - 79 * - + 66 + + 62 + CAST ( + - NULLIF ( SUM ( + - 21 ), 56 + - - 43 ) AS INTEGER ) + + - COALESCE ( + 42, + 10 / + COUNT ( * ) + - COUNT ( * ) - + + 41 + + CASE - COUNT ( * ) WHEN MIN ( DISTINCT 7 ) THEN - 37 * COUNT ( * ) ELSE 40 END / + COALESCE ( + CASE WHEN COALESCE ( - 78, + CAST ( NULL AS REAL ) - 32, ( + COUNT ( * ) ) ) IS NOT NULL THEN NULL ELSE CASE COUNT ( * ) WHEN + 15 THEN - 72 + 11 END END, 8 / + 79 ) / 93 ) AS col0
----
-62527

query I rowsort
SELECT 75 + - 67
----
8

query II rowsort
SELECT ALL - 10, - 10 + + 5 AS col0
----
-10
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8142
SELECT 46 * 98 * CAST( - 66 AS SIGNED ) AS col1, 80 * 11
----
-297528
880

skipif mysql # not compatible
query II rowsort label-8142
SELECT 46 * 98 * CAST ( - 66 AS INTEGER ) AS col1, 80 * 11
----
-297528
880

onlyif mysql # aggregate syntax: 
query II rowsort label-8143
SELECT 70 AS col1, - COALESCE ( + 26, + 63 + - 70 * - - COUNT( * ) * - + 92 + + - MIN( ALL - + ( - 98 ) ) + 12 * - 57 ) AS col2
----
70
-26

skipif mysql # not compatible
query II rowsort label-8143
SELECT 70 AS col1, - COALESCE ( + 26, + 63 + - 70 * - - COUNT ( * ) * - + 92 + + - MIN ( ALL - + ( - 98 ) ) + 12 * - 57 ) AS col2
----
70
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT DISTINCT 60 DIV + 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT 60 / + 35 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8145
SELECT ALL 89 DIV SUM( + 69 )
----
1

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL 89 / SUM ( + 69 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8146
SELECT COUNT( * ) * 45 DIV + 52 + + 45 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8146
SELECT COUNT ( * ) * 45 / + 52 + + 45 AS col1
----
45

query I rowsort
SELECT 93 + 16 AS col1
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT ALL 17 * + - CAST( + 65 AS SIGNED )
----
-1105

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL 17 * + - CAST ( + 65 AS INTEGER )
----
-1105

query I rowsort
SELECT 0 * ( - 78 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8150
SELECT CAST( + 74 AS SIGNED ) + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-8150
SELECT CAST ( + 74 AS INTEGER ) + + COUNT ( * )
----
75

query I rowsort
SELECT + 40 + - NULLIF ( 71, - 60 / + 59 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - 80 * + 95 - 25 + COUNT( * ) * - 94
----
-7719

skipif mysql # not compatible
query I rowsort label-8152
SELECT - 80 * + 95 - 25 + COUNT ( * ) * - 94
----
-7719

query I rowsort
SELECT 84 * 51
----
4284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8154
SELECT + 92 col2, 14 + - 3 - + COUNT( * ) + + - CAST( + CAST( - 84 AS SIGNED ) AS SIGNED ) AS col1
----
92
94

skipif mysql # not compatible
query II rowsort label-8154
SELECT + 92 col2, 14 + - 3 - + COUNT ( * ) + + - CAST ( + CAST ( - 84 AS INTEGER ) AS INTEGER ) AS col1
----
92
94

query I rowsort
SELECT 17 + - 95
----
-78

query I rowsort
SELECT DISTINCT + + 39 + + 2 * - + 43 col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8157
SELECT + 29 + - 65 + - 15 * + 47 * - MAX( DISTINCT - 60 ) * 45 + 69 + + + 86 DIV NULLIF ( + + 35, 67 ) + - NULLIF ( 71, + 94 DIV COUNT( * ) + + 93 ) AS col2
----
-1903536

skipif mysql # not compatible
query I rowsort label-8157
SELECT + 29 + - 65 + - 15 * + 47 * - MAX ( DISTINCT - 60 ) * 45 + 69 + + + 86 / NULLIF ( + + 35, 67 ) + - NULLIF ( 71, + 94 / COUNT ( * ) + + 93 ) AS col2
----
-1903536

query I rowsort
SELECT DISTINCT - + 26 + 98 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT 42 * - + 51 - + COUNT( ALL - 43 )
----
-2143

skipif mysql # not compatible
query I rowsort label-8159
SELECT 42 * - + 51 - + COUNT ( ALL - 43 )
----
-2143

query I rowsort
SELECT 86 + + 83 * - ( - + 8 )
----
750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8161
SELECT DISTINCT - CAST( 84 AS SIGNED ) * COUNT( * ) - - MIN( 30 ) + 78 + - 42 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT - CAST ( 84 AS INTEGER ) * COUNT ( * ) - - MIN ( 30 ) + 78 + - 42 AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8162
SELECT - CASE - 93 WHEN + + COUNT( * ) THEN COALESCE ( + + CAST( NULL AS DECIMAL ), + CAST( NULL AS DECIMAL ), - COALESCE ( + 89, - - 76 * - + 5 ) ) WHEN + - 77 - - 6 + - + 1 THEN 19 ELSE CAST( 95 AS SIGNED ) * ( 20 ) END * + CASE + NULLIF ( 25, 16 - + 8 * + CASE 95 WHEN - 18 THEN - 61 END ) WHEN 60 THEN NULL WHEN COUNT( * ) + - 5 * - 73 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT - CASE - 93 WHEN + + COUNT ( * ) THEN COALESCE ( + + CAST ( NULL AS REAL ), + CAST ( NULL AS REAL ), - COALESCE ( + 89, - - 76 * - + 5 ) ) WHEN + - 77 - - 6 + - + 1 THEN 19 ELSE CAST ( 95 AS INTEGER ) * ( 20 ) END * + CASE + NULLIF ( 25, 16 - + 8 * + CASE 95 WHEN - 18 THEN - 61 END ) WHEN 60 THEN NULL WHEN COUNT ( * ) + - 5 * - 73 THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT 32 + - 89 - + 55 AS col0
----
-112

query I rowsort
SELECT DISTINCT + 2 * + - 59
----
-118

query I rowsort
SELECT ALL + 47 * + 53 + - - 80
----
2571

query I rowsort
SELECT 65 * 38 + + 76 AS col2
----
2546

query I rowsort
SELECT DISTINCT - 33 * - + 9 * + 16 + - + 73 AS col2
----
4679

query I rowsort
SELECT ALL + - ( + 28 ) * + 56 * - + 3
----
4704

query I rowsort
SELECT DISTINCT + 41 * + 40 AS col1
----
1640

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT MIN( ALL - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8170
SELECT MIN ( ALL - 68 ) AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8171
SELECT MIN( ALL - 23 ) AS col0, + CAST( NULL AS SIGNED ) / 94 col2
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-8171
SELECT MIN ( ALL - 23 ) AS col0, + CAST ( NULL AS INTEGER ) / 94 col2
----
-23
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 55 * 67
----
3685

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT ALL - 54 DIV + 13 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL - 54 / + 13 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8175
SELECT DISTINCT COUNT( * ) - 81 - - 2, + CAST( NULL AS SIGNED ) AS col1
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-8175
SELECT DISTINCT COUNT ( * ) - 81 - - 2, + CAST ( NULL AS INTEGER ) AS col1
----
-78
NULL

query I rowsort
SELECT + 77 * + + ( + 24 ) * - + 72
----
-133056

query II rowsort
SELECT DISTINCT 83 * - 57 col2, 11
----
-4731
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT + 12 * + COUNT( * ) * - + 54 AS col1
----
-648

skipif mysql # not compatible
query I rowsort label-8178
SELECT + 12 * + COUNT ( * ) * - + 54 AS col1
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL 18 * COALESCE ( - MAX( ALL 16 ), 89 ) AS col0
----
-288

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL 18 * COALESCE ( - MAX ( ALL 16 ), 89 ) AS col0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT + 29 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8180
SELECT + 29 / 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8181
SELECT + 41 * - COUNT( * ) AS col0, + 32
----
-41
32

skipif mysql # not compatible
query II rowsort label-8181
SELECT + 41 * - COUNT ( * ) AS col0, + 32
----
-41
32

query I rowsort
SELECT - 50 * - - 40 + - - 13
----
-1987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8183
SELECT + MIN( + 30 ) DIV + - 42 * + - 1
----
0

skipif mysql # not compatible
query I rowsort label-8183
SELECT + MIN ( + 30 ) / + - 42 * + - 1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8184
SELECT - 99 DIV - COALESCE ( + 78, - 32 + + NULLIF ( 31, - 36 ) + - 91 + + 40 + 79 - + - 28 DIV + 32 * - + 66 )
----
1

skipif mysql # not compatible
query I rowsort label-8184
SELECT - 99 / - COALESCE ( + 78, - 32 + + NULLIF ( 31, - 36 ) + - 91 + + 40 + 79 - + - 28 / + 32 * - + 66 )
----
1

query I rowsort
SELECT ALL 5 + - 0 * + + 78 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL - MIN( ALL - + 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - MIN ( ALL - + 99 ) AS col0
----
99

query I rowsort
SELECT DISTINCT 52 + - 25
----
27

query I rowsort
SELECT + + 11 - - + ( 3 ) AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8189
SELECT DISTINCT 65 + 49 + COUNT( * ) * - 4 / - - 27 * + CASE + 53 WHEN - COUNT( + + ( - 22 ) ) THEN + MIN( 54 ) * + CAST( NULL AS SIGNED ) * + 80 + + CAST( - 67 AS SIGNED ) WHEN + - 32 / - 67 THEN + COUNT( * ) / + ( + MAX( + 91 ) ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT 65 + 49 + COUNT ( * ) * - 4 / - - 27 * + CASE + 53 WHEN - COUNT ( + + ( - 22 ) ) THEN + MIN ( 54 ) * + CAST ( NULL AS INTEGER ) * + 80 + + CAST ( - 67 AS INTEGER ) WHEN + - 32 / - 67 THEN + COUNT ( * ) / + ( + MAX ( + 91 ) ) END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL COUNT( + 73 ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL COUNT ( + 73 ) + + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT DISTINCT + - COUNT( * ) + 7 + + ( - - COUNT( ALL + + 70 ) ) * - + 19 + - 73 + - - NULLIF ( + 92, + SUM( DISTINCT + 62 ) * + AVG ( ALL + 98 ) - 65 )
----
6

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT + - COUNT ( * ) + 7 + + ( - - COUNT ( ALL + + 70 ) ) * - + 19 + - 73 + - - NULLIF ( + 92, + SUM ( DISTINCT + 62 ) * + AVG ( ALL + 98 ) - 65 )
----
6

query I rowsort
SELECT ALL - - 74 * - 34 * - 60 AS col2
----
150960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8193
SELECT DISTINCT + 6 + - 45 AS col0, + ( CASE - ( + COUNT( * ) ) WHEN - - 95 THEN 1 * - - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) - - CAST( NULL AS SIGNED ) END ) AS col1
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-8193
SELECT DISTINCT + 6 + - 45 AS col0, + ( CASE - ( + COUNT ( * ) ) WHEN - - 95 THEN 1 * - - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) - - CAST ( NULL AS INTEGER ) END ) AS col1
----
-39
NULL

query I rowsort
SELECT ALL + + 61 + - 45 AS col2
----
16

query I rowsort
SELECT + + 67 - - - 53 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8196
SELECT - - 92 DIV - + 89 AS col1, 66 * 86 * - 92 DIV COUNT( * ) * + MIN( - 95 )
----
-1
49608240

skipif mysql # not compatible
query II rowsort label-8196
SELECT - - 92 / - + 89 AS col1, 66 * 86 * - 92 / COUNT ( * ) * + MIN ( - 95 )
----
-1
49608240

query I rowsort
SELECT - + 34 + + 86
----
52

query I rowsort
SELECT ALL + + ( ( + 47 ) ) AS col2
----
47

query I rowsort
SELECT DISTINCT + + 78 AS col1
----
78

query I rowsort
SELECT ALL + 99 * - - 31 - - 65 AS col2
----
3134

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT - 52 - + NULLIF ( - 47, - ( - + ( - COUNT( * ) ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-8201
SELECT - 52 - + NULLIF ( - 47, - ( - + ( - COUNT ( * ) ) ) )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT - 29 DIV - 94 * - ( + 85 ) + + - 42
----
-42

skipif mysql # not compatible
query I rowsort label-8202
SELECT - 29 / - 94 * - ( + 85 ) + + - 42
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8203
SELECT - CAST( NULL AS SIGNED ) * 69 * 37 * ( + AVG ( DISTINCT 27 ) ) col0, 20 + - 75 * - + CAST( NULL AS SIGNED ) * - - MIN( DISTINCT ( 8 ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8203
SELECT - CAST ( NULL AS INTEGER ) * 69 * 37 * ( + AVG ( DISTINCT 27 ) ) col0, 20 + - 75 * - + CAST ( NULL AS INTEGER ) * - - MIN ( DISTINCT ( 8 ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL + 21 * + ( + 9 ) * COUNT( * ) AS col1
----
189

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL + 21 * + ( + 9 ) * COUNT ( * ) AS col1
----
189

query I rowsort
SELECT - 90 + + + 82 AS col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8206
SELECT - COUNT( * ) DIV + - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8206
SELECT - COUNT ( * ) / + - 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT CASE - 39 WHEN COUNT( * ) THEN NULL ELSE - 91 + - - MAX( - - 40 ) * + - 92 END AS col0
----
-3771

skipif mysql # not compatible
query I rowsort label-8207
SELECT CASE - 39 WHEN COUNT ( * ) THEN NULL ELSE - 91 + - - MAX ( - - 40 ) * + - 92 END AS col0
----
-3771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8208
SELECT ALL - 49 * - - MAX( + 42 ) / + + CASE - - CAST( NULL AS SIGNED ) WHEN - 90 THEN - 38 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL - 49 * - - MAX ( + 42 ) / + + CASE - - CAST ( NULL AS INTEGER ) WHEN - 90 THEN - 38 END AS col1
----
NULL

query I rowsort
SELECT - 84 + 79
----
-5

query I rowsort
SELECT ALL + 0 col1
----
0

query I rowsort
SELECT ALL + 22 * + 4 col0
----
88

query I rowsort
SELECT DISTINCT - 67 * + 99
----
-6633

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8213
SELECT ALL + 45 AS col0, - CAST( NULL AS DECIMAL )
----
45
NULL

skipif mysql # not compatible
query II rowsort label-8213
SELECT ALL + 45 AS col0, - CAST ( NULL AS REAL )
----
45
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8214
SELECT DISTINCT + COALESCE ( + 11, 76 DIV 53 DIV - ( 40 ) ) AS col2, 1 col1
----
11
1

skipif mysql # not compatible
query II rowsort label-8214
SELECT DISTINCT + COALESCE ( + 11, 76 / 53 / - ( 40 ) ) AS col2, 1 col1
----
11
1

query I rowsort
SELECT ALL - 49 * 37 AS col0
----
-1813

query I rowsort
SELECT - 53 * - - 39 col2
----
-2067

query I rowsort
SELECT ALL + ( 5 )
----
5

query I rowsort
SELECT - 18 * + + 70 AS col2
----
-1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8219
SELECT COUNT( * ) col0, 59 DIV + 90 DIV + 93 DIV 87 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-8219
SELECT COUNT ( * ) col0, 59 / + 90 / + 93 / 87 AS col2
----
1
0

query I rowsort
SELECT - ( - + 78 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8221
SELECT COUNT( * ), CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8221
SELECT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8222
SELECT ALL ( CAST( 82 AS SIGNED ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL ( CAST ( 82 AS INTEGER ) ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT DISTINCT 58 * - ( + - NULLIF ( - + 19, - ( + 87 ) + - MAX( ALL + 55 ) ) ) + + ( 47 )
----
-1055

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT 58 * - ( + - NULLIF ( - + 19, - ( + 87 ) + - MAX ( ALL + 55 ) ) ) + + ( 47 )
----
-1055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 36 + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 36 + - 46
----
NULL

query I rowsort
SELECT + - 65 + - 3 col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL + MAX( + 92 ) + 84 + + 52 AS col0
----
228

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + MAX ( + 92 ) + 84 + + 52 AS col0
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-8227
SELECT - 38, COUNT( * ) col1
----
-38
1

skipif mysql # not compatible
query II rowsort label-8227
SELECT - 38, COUNT ( * ) col1
----
-38
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT DISTINCT + 37 + - CAST( NULL AS SIGNED ) + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT + 37 + - CAST ( NULL AS INTEGER ) + + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT + 25 + CASE - NULLIF ( 42, + - NULLIF ( + + 49, + COALESCE ( - - SUM( + - ( + ( + + 67 ) ) ), + 84 * 32, - - 39 / 20 ) * - 43 ) ) WHEN 16 THEN + 26 - 43 END + COUNT( - 19 ) * ( 87 ) * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT + 25 + CASE - NULLIF ( 42, + - NULLIF ( + + 49, + COALESCE ( - - SUM ( + - ( + ( + + 67 ) ) ), + 84 * 32, - - 39 / 20 ) * - 43 ) ) WHEN 16 THEN + 26 - 43 END + COUNT ( - 19 ) * ( 87 ) * 58 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8230
SELECT - 61, + 68 + + - 18 * - 96 + - CASE - CAST( NULL AS SIGNED ) WHEN + CAST( + 87 AS SIGNED ) THEN AVG ( DISTINCT - - 63 ) + - + ( 95 ) ELSE NULL END AS col1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-8230
SELECT - 61, + 68 + + - 18 * - 96 + - CASE - CAST ( NULL AS INTEGER ) WHEN + CAST ( + 87 AS INTEGER ) THEN AVG ( DISTINCT - - 63 ) + - + ( 95 ) ELSE NULL END AS col1
----
-61
NULL

query I rowsort
SELECT DISTINCT + 77 + + 15 AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT ALL + 44 + - + MIN( ALL + ( 88 ) ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL + 44 + - + MIN ( ALL + ( 88 ) ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT + + 38 * - 14 + 4 * + - ( + + 9 ) + + MIN( DISTINCT - + 94 )
----
-662

skipif mysql # not compatible
query I rowsort label-8233
SELECT + + 38 * - 14 + 4 * + - ( + + 9 ) + + MIN ( DISTINCT - + 94 )
----
-662

query I rowsort
SELECT ALL + ( - 71 ) AS col0
----
-71

query I rowsort
SELECT ALL 70 - - 9
----
79

query I rowsort
SELECT ALL 44 * - 47 AS col1
----
-2068

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8237
SELECT + NULLIF ( COALESCE ( 93, - 86 * - - 15 * - ( + 64 ) + - 14 ), - 44 - - 48 ) + - 58 AS col1, 39 / CAST( NULL AS SIGNED ) AS col2
----
35
NULL

skipif mysql # not compatible
query II rowsort label-8237
SELECT + NULLIF ( COALESCE ( 93, - 86 * - - 15 * - ( + 64 ) + - 14 ), - 44 - - 48 ) + - 58 AS col1, 39 / CAST ( NULL AS INTEGER ) AS col2
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT - COUNT( * ) * + 72 * + 93
----
-6696

skipif mysql # not compatible
query I rowsort label-8238
SELECT - COUNT ( * ) * + 72 * + 93
----
-6696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8239
SELECT ALL 11 * + SUM( 87 ) * + 10 + + CAST( + 53 AS SIGNED ) AS col2
----
9623

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL 11 * + SUM ( 87 ) * + 10 + + CAST ( + 53 AS INTEGER ) AS col2
----
9623

query I rowsort
SELECT - + 81 + + - 52
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT + 75 * + 95 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT + 75 * + 95 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL + NULLIF ( + MIN( ALL + 34 ), + + COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL + NULLIF ( + MIN ( ALL + 34 ), + + COUNT ( * ) )
----
34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8243
SELECT + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT + COUNT( DISTINCT - 31 ) * + 37
----
37

skipif mysql # not compatible
query I rowsort label-8244
SELECT + COUNT ( DISTINCT - 31 ) * + 37
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT DISTINCT 7 * 89 DIV - 20
----
-31

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT 7 * 89 / - 20
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT 90 DIV - - 51
----
1

skipif mysql # not compatible
query I rowsort label-8246
SELECT 90 / - - 51
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8247
SELECT ALL + MIN( - 84 ) + + - 25 DIV + 11, 52 AS col0
----
-86
52

skipif mysql # not compatible
query II rowsort label-8247
SELECT ALL + MIN ( - 84 ) + + - 25 / + 11, 52 AS col0
----
-86
52

query I rowsort
SELECT ( - + 34 ) * - 52 AS col2
----
1768

query I rowsort
SELECT DISTINCT + 73 + + 28 AS col2
----
101

query I rowsort
SELECT ALL - COALESCE ( - COALESCE ( 38, + 62 ), + + 39 * + 90 ) + - 5
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8251
SELECT 93 / - - CASE + 6 WHEN - CAST( 70 AS SIGNED ) + 36 THEN 99 END AS col2, + 31 AS col2
----
NULL
31

skipif mysql # not compatible
query II rowsort label-8251
SELECT 93 / - - CASE + 6 WHEN - CAST ( 70 AS INTEGER ) + 36 THEN 99 END AS col2, + 31 AS col2
----
NULL
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8252
SELECT COUNT( * ) DIV + + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT COUNT ( * ) / + + 66 AS col2
----
0

query I rowsort
SELECT + 4 * + 66 - + - 8 col2
----
272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT ALL - CAST( - + ( + - COALESCE ( - 16, + 88 ) ) AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL - CAST ( - + ( + - COALESCE ( - 16, + 88 ) ) AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT DISTINCT + MIN( + 53 ) + 93 + - 79 * + + 51
----
-3883

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT + MIN ( + 53 ) + 93 + - 79 * + + 51
----
-3883

query I rowsort
SELECT ALL - 19 + - 73 + - 0 * 5
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL + 28 + MIN( + 88 ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL + 28 + MIN ( + 88 ) AS col2
----
116

query I rowsort
SELECT DISTINCT - + 49 + 16
----
-33

query I rowsort
SELECT DISTINCT - - 32 * + 50 + - 17 + - 47 * - 24 + - 1 + + 47 + - 97 AS col0
----
2660

query I rowsort
SELECT 30 * - - 20
----
600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8261
SELECT - 26 + - + 58 AS col1, 80 * + 26 DIV + COUNT( * ) + - ( SUM( + 51 ) ) * - - CAST( 45 AS SIGNED ) + - - 24
----
-84
-191

skipif mysql # not compatible
query II rowsort label-8261
SELECT - 26 + - + 58 AS col1, 80 * + 26 / + COUNT ( * ) + - ( SUM ( + 51 ) ) * - - CAST ( 45 AS INTEGER ) + - - 24
----
-84
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT ALL ( + SUM( ALL + + 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL ( + SUM ( ALL + + 88 ) )
----
88

query I rowsort
SELECT + NULLIF ( + + 16, - ( + 43 ) ) + - + 67 * - - 15 AS col0
----
-989

query I rowsort
SELECT CASE + 78 WHEN + 51 THEN - - 72 * + 45 * - 67 WHEN - 14 * + ( + ( AVG ( + 74 ) ) ) * + 13 THEN - - 26 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8265
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - ( - 8 ) * + COUNT( * ) * + - ( - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT - CAST ( NULL AS REAL ) + - ( - 8 ) * + COUNT ( * ) * + - ( - 0 )
----
NULL

query I rowsort
SELECT ALL + + COALESCE ( + 94, + + 60, + 4 ) + - 44
----
50

query I rowsort
SELECT - - ( + - 82 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT DISTINCT - 14 * - CASE 10 WHEN - COUNT( * ) THEN + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT - 14 * - CASE 10 WHEN - COUNT ( * ) THEN + 44 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT DISTINCT NULLIF ( 41, COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT NULLIF ( 41, COUNT ( * ) )
----
41

query I rowsort
SELECT DISTINCT - + 77 - 76
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8271
SELECT ALL + + NULLIF ( + - 79, - 78 / - 44 + 86 ) * - 37 + - CAST( - - COUNT( * ) AS SIGNED ) + + 98 + CAST( - 79 AS SIGNED )
----
2941

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL + + NULLIF ( + - 79, - 78 / - 44 + 86 ) * - 37 + - CAST ( - - COUNT ( * ) AS INTEGER ) + + 98 + CAST ( - 79 AS INTEGER )
----
2941

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT DISTINCT + SUM( DISTINCT + COALESCE ( - + 86, - 69 ) ) * + 2 AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT + SUM ( DISTINCT + COALESCE ( - + 86, - 69 ) ) * + 2 AS col0
----
-172

query I rowsort
SELECT ALL CASE + ( - 67 ) WHEN - 70 * - 70 / 55 THEN - 40 * - - NULLIF ( 20, ( + - 15 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ( - 46 ) - + SUM( - 47 ) + COALESCE ( + 34, - 43, - - ( - MAX( - - COALESCE ( - 27, 10 ) ) ) + 2 ) + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-8274
SELECT ( - 46 ) - + SUM ( - 47 ) + COALESCE ( + 34, - 43, - - ( - MAX ( - - COALESCE ( - 27, 10 ) ) ) + 2 ) + + COUNT ( * )
----
36

query I rowsort
SELECT - 56 + + 22 AS col2
----
-34

query II rowsort
SELECT + 25 * 61 AS col1, 25 * - + 69 AS col2
----
1525
-1725

query I rowsort
SELECT - COALESCE ( - 79, - 10 + + 95 )
----
79

query I rowsort
SELECT + ( - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT MIN( ALL - - 71 ) * - 12 * + 52 + - COUNT( * ) AS col0
----
-44305

skipif mysql # not compatible
query I rowsort label-8279
SELECT MIN ( ALL - - 71 ) * - 12 * + 52 + - COUNT ( * ) AS col0
----
-44305

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT ALL 25 DIV - 92 col2
----
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL 25 / - 92 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT 84 * CAST( NULL AS SIGNED ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT 84 * CAST ( NULL AS INTEGER ) * 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT CASE CAST( 9 AS SIGNED ) WHEN + 77 THEN NULL ELSE - + 15 * - 7 * NULLIF ( 96, 86 * 38 + CAST( - 66 AS SIGNED ) ) - - 64 END * - 65 + + CAST( NULL AS SIGNED ) - + ( - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT CASE CAST ( 9 AS INTEGER ) WHEN + 77 THEN NULL ELSE - + 15 * - 7 * NULLIF ( 96, 86 * 38 + CAST ( - 66 AS INTEGER ) ) - - 64 END * - 65 + + CAST ( NULL AS INTEGER ) - + ( - 67 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8283
SELECT ALL 19 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL 19 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 76 * + NULLIF ( 39, 27 ) + 62 + + 19
----
3045

query II rowsort
SELECT + 14, + 61 AS col2
----
14
61

query I rowsort
SELECT ALL 95 + 26 * + NULLIF ( 35, 49 )
----
1005

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT 86 * + + MIN( - 71 ) - + 6 AS col0
----
-6112

skipif mysql # not compatible
query I rowsort label-8287
SELECT 86 * + + MIN ( - 71 ) - + 6 AS col0
----
-6112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8288
SELECT ALL COUNT( - 51 ) + - - 41 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL COUNT ( - 51 ) + - - 41 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT 18 + 89 - + COUNT( * ) + + 68
----
174

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT 18 + 89 - + COUNT ( * ) + + 68
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT ALL + MAX( DISTINCT - 11 ) + 18 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL + MAX ( DISTINCT - 11 ) + 18 AS col2
----
7

query I rowsort
SELECT - 38 * - 22 + 7 * - 35
----
591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8292
SELECT ALL COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) + + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 70 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT 18 + + SUM( ALL + 72 ) col0
----
90

skipif mysql # not compatible
query I rowsort label-8293
SELECT 18 + + SUM ( ALL + 72 ) col0
----
90

query I rowsort
SELECT ALL ( - 89 ) + - 38
----
-127

query I rowsort
SELECT + 80 * 2 + 34 + + 1 AS col2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT - 46 * + COALESCE ( + CASE + 73 WHEN - 22 - 47 * - + 12 THEN - - 34 WHEN 71 * - 5 + 5 - - COUNT( * ) * - - 85 THEN - 24 END, - 34 + 59 ) * 79 + ( - 91 )
----
-90941

skipif mysql # not compatible
query I rowsort label-8296
SELECT - 46 * + COALESCE ( + CASE + 73 WHEN - 22 - 47 * - + 12 THEN - - 34 WHEN 71 * - 5 + 5 - - COUNT ( * ) * - - 85 THEN - 24 END, - 34 + 59 ) * 79 + ( - 91 )
----
-90941

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT - 74 DIV 82 * - 11
----
0

skipif mysql # not compatible
query I rowsort label-8297
SELECT - 74 / 82 * - 11
----
0

query I rowsort
SELECT ALL - 16 * + - 90 * - 82 * + 38
----
-4487040

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT - MIN( ALL - + ( 27 ) )
----
27

skipif mysql # not compatible
query I rowsort label-8299
SELECT - MIN ( ALL - + ( 27 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT ALL NULLIF ( COUNT( * ), - ( + - COUNT( DISTINCT + 22 ) ) * + + 3 + - 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL NULLIF ( COUNT ( * ), - ( + - COUNT ( DISTINCT + 22 ) ) * + + 3 + - 50 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT - + MIN( DISTINCT 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-8301
SELECT - + MIN ( DISTINCT 53 )
----
-53

query I rowsort
SELECT - 49 + 87 + + 51
----
89

query I rowsort
SELECT 55 + + + 97
----
152

query I rowsort
SELECT - + ( + + 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8305
SELECT - - SUM( - 41 ) + - CAST( - MIN( - CAST( NULL AS SIGNED ) ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8305
SELECT - - SUM ( - 41 ) + - CAST ( - MIN ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL COUNT( DISTINCT - 20 ) * + COUNT( * ) * 11 + - 38 * - + 88 AS col2
----
3355

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL COUNT ( DISTINCT - 20 ) * + COUNT ( * ) * 11 + - 38 * - + 88 AS col2
----
3355

query I rowsort
SELECT DISTINCT + 8 * + 50 * 65 AS col2
----
26000

query I rowsort
SELECT + 31 + - - 37
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT MIN( ALL + 43 ) * + ( 9 ) + 72
----
459

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT MIN ( ALL + 43 ) * + ( 9 ) + 72
----
459

query I rowsort
SELECT - 95 * + 54
----
-5130

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT COALESCE ( - - 69, + COUNT( * ), + ( - 84 ) + - 49 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-8311
SELECT COALESCE ( - - 69, + COUNT ( * ), + ( - 84 ) + - 49 ) AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8312
SELECT ALL 34 * 51 + - ( COUNT( * ) ) - - - COUNT( * ) * COUNT( * ) DIV + + 87 - COUNT( * ) + 87 * + 97 AS col1
----
10171

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL 34 * 51 + - ( COUNT ( * ) ) - - - COUNT ( * ) * COUNT ( * ) / + + 87 - COUNT ( * ) + 87 * + 97 AS col1
----
10171

query I rowsort
SELECT DISTINCT 3 * + 80 * - 99 + 23 AS col1
----
-23737

onlyif mysql # DIV for integer division: 
query II rowsort label-8314
SELECT ALL 41 DIV 76 AS col2, 34 AS col0
----
0
34

skipif mysql # not compatible
query II rowsort label-8314
SELECT ALL 41 / 76 AS col2, 34 AS col0
----
0
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT + 47 DIV + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8315
SELECT + 47 / + 61 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8316
SELECT ALL MAX( 57 ) * - MAX( + - CAST( + 58 AS SIGNED ) ) + - 10
----
3296

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL MAX ( 57 ) * - MAX ( + - CAST ( + 58 AS INTEGER ) ) + - 10
----
3296

onlyif mysql # DIV for integer division: 
query I rowsort label-8317
SELECT DISTINCT 70 DIV ( + 73 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT 70 / ( + 73 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8318
SELECT + NULLIF ( + - 81, CAST( - - NULLIF ( - - 6, - 1 ) AS SIGNED ) ), 76 AS col2
----
-81
76

skipif mysql # not compatible
query II rowsort label-8318
SELECT + NULLIF ( + - 81, CAST ( - - NULLIF ( - - 6, - 1 ) AS INTEGER ) ), 76 AS col2
----
-81
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8319
SELECT ALL + 63, - MIN( 73 ) col1
----
63
-73

skipif mysql # not compatible
query II rowsort label-8319
SELECT ALL + 63, - MIN ( 73 ) col1
----
63
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8320
SELECT - COUNT( * ) - 28 + + CASE - 52 WHEN COUNT( * ) + + 21 THEN - 51 - - COALESCE ( + + CAST( NULL AS SIGNED ), 75 * 79 + - COUNT( * ) + 66 + - - COUNT( * ) ) WHEN 57 / - NULLIF ( - 31, - COUNT( * ) ) THEN + + 88 + 80 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT - COUNT ( * ) - 28 + + CASE - 52 WHEN COUNT ( * ) + + 21 THEN - 51 - - COALESCE ( + + CAST ( NULL AS INTEGER ), 75 * 79 + - COUNT ( * ) + 66 + - - COUNT ( * ) ) WHEN 57 / - NULLIF ( - 31, - COUNT ( * ) ) THEN + + 88 + 80 END col2
----
NULL

query I rowsort
SELECT + 78 * - + 74
----
-5772

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT ALL 47 * - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL 47 * - - COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT + + MAX( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-8323
SELECT + + MAX ( - 88 )
----
-88

query I rowsort
SELECT DISTINCT + + 70 AS col2
----
70

query II rowsort
SELECT DISTINCT + 52, - 38 AS col1
----
52
-38

query I rowsort
SELECT ALL - 20 * + 22 AS col2
----
-440

onlyif mysql # aggregate syntax: 
query II rowsort label-8327
SELECT 64 AS col1, COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-8327
SELECT 64 AS col1, COUNT ( * )
----
64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL - 18 * COUNT( * ) - + 47 + - + 56 * 80 + + 1 - 50 AS col2
----
-4594

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - 18 * COUNT ( * ) - + 47 + - + 56 * 80 + + 1 - 50 AS col2
----
-4594

onlyif mysql # DIV for integer division: 
query I rowsort label-8329
SELECT ALL - - 39 DIV + - 44
----
0

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL - - 39 / + - 44
----
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8330
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, 11 DIV 63 + 95 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-8330
SELECT ALL + CAST ( NULL AS REAL ) AS col2, 11 / 63 + 95 AS col2
----
NULL
95

query I rowsort
SELECT + 24 + + + 94 + + 47 * - + 41 + 19
----
-1790

query II rowsort
SELECT - 13 col1, 7 AS col2
----
-13
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT + NULLIF ( + 95, - + AVG ( 96 ) - 23 - - 9 + 12 + - COALESCE ( NULLIF ( COUNT( - 40 ), + 32 - 67 ), - 8 ) + - + COUNT( * ) ) + 27
----
122

skipif mysql # not compatible
query I rowsort label-8333
SELECT + NULLIF ( + 95, - + AVG ( 96 ) - 23 - - 9 + 12 + - COALESCE ( NULLIF ( COUNT ( - 40 ), + 32 - 67 ), - 8 ) + - + COUNT ( * ) ) + 27
----
122

query I rowsort
SELECT - 7 - + 60
----
-67

query I rowsort
SELECT ALL - + 48 * + 45 AS col0
----
-2160

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT + 47 DIV - - 27 + + 31 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8336
SELECT + 47 / - - 27 + + 31 AS col2
----
32

query I rowsort
SELECT - + 93 + - + 18 AS col0
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-8338
SELECT + 14 AS col2, + 95 * - COUNT( * ) + 76
----
14
-19

skipif mysql # not compatible
query II rowsort label-8338
SELECT + 14 AS col2, + 95 * - COUNT ( * ) + 76
----
14
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8339
SELECT - + 72 AS col1, COUNT( DISTINCT 84 ) AS col2
----
-72
1

skipif mysql # not compatible
query II rowsort label-8339
SELECT - + 72 AS col1, COUNT ( DISTINCT 84 ) AS col2
----
-72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL + + 35 + + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL + + 35 + + COUNT ( * ) AS col1
----
36

query II rowsort
SELECT - 87, 40 + 67 AS col2
----
-87
107

query I rowsort
SELECT ALL + 44 * + 50 col0
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT - - COUNT( * ) * CASE 99 WHEN - 90 THEN - 9 * - 20 * 32 * + 55 * - 73 + + 90 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT - - COUNT ( * ) * CASE 99 WHEN - 90 THEN - 9 * - 20 * 32 * + 55 * - 73 + + 90 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8344
SELECT - - ( COUNT( + 10 ) ) + - 96 col0, + 4 AS col0
----
-95
4

skipif mysql # not compatible
query II rowsort label-8344
SELECT - - ( COUNT ( + 10 ) ) + - 96 col0, + 4 AS col0
----
-95
4

query I rowsort
SELECT ALL - 69 * + 31 AS col2
----
-2139

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT DISTINCT 62 * 24 * - COUNT( * ) AS col2
----
-1488

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT 62 * 24 * - COUNT ( * ) AS col2
----
-1488

query I rowsort
SELECT ALL + 22 + 63 + + 98
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8348
SELECT ALL - 31 DIV - 57 * - - CASE + COUNT( * ) WHEN + COUNT( * ) THEN - 8 END * + 75
----
0

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL - 31 / - 57 * - - CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN - 8 END * + 75
----
0

query I rowsort
SELECT ALL - 59 + + 44 + + + ( 90 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8350
SELECT DISTINCT CASE - ( COUNT( * ) ) WHEN - + 25 THEN NULL WHEN - + 11 * CAST( NULL AS DECIMAL ) THEN NULL ELSE - 23 END col1, + 31 * + + 50 - + 39 + + 15 AS col1
----
-23
1526

skipif mysql # not compatible
query II rowsort label-8350
SELECT DISTINCT CASE - ( COUNT ( * ) ) WHEN - + 25 THEN NULL WHEN - + 11 * CAST ( NULL AS REAL ) THEN NULL ELSE - 23 END col1, + 31 * + + 50 - + 39 + + 15 AS col1
----
-23
1526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8351
SELECT - 1 * - 68 * CAST( - 60 AS SIGNED ) AS col0
----
-4080

skipif mysql # not compatible
query I rowsort label-8351
SELECT - 1 * - 68 * CAST ( - 60 AS INTEGER ) AS col0
----
-4080

query I rowsort
SELECT - 7 * + 94 col0
----
-658

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8353
SELECT ALL - 86 + - - CASE - - ( + 69 ) WHEN + CASE - 21 WHEN + 87 * 65 THEN + - 10 / 96 END THEN NULL WHEN + 7 THEN + + 22 ELSE NULL END + + 9 + 0 * + 47 AS col2, CAST( - 60 AS SIGNED ) AS col1
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-8353
SELECT ALL - 86 + - - CASE - - ( + 69 ) WHEN + CASE - 21 WHEN + 87 * 65 THEN + - 10 / 96 END THEN NULL WHEN + 7 THEN + + 22 ELSE NULL END + + 9 + 0 * + 47 AS col2, CAST ( - 60 AS INTEGER ) AS col1
----
NULL
-60

query I rowsort
SELECT ALL ( - ( + 94 ) ) col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8355
SELECT DISTINCT CAST( + 94 AS SIGNED ), - MAX( - 12 ) AS col2
----
94
12

skipif mysql # not compatible
query II rowsort label-8355
SELECT DISTINCT CAST ( + 94 AS INTEGER ), - MAX ( - 12 ) AS col2
----
94
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8356
SELECT ALL - SUM( + 71 ) + + 84 + - 9 + COUNT( * ) + + - 9 DIV + MAX( - 26 )
----
5

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL - SUM ( + 71 ) + + 84 + - 9 + COUNT ( * ) + + - 9 / + MAX ( - 26 )
----
5

query II rowsort
SELECT - 71 - 47 - + 73 AS col2, - 90
----
-191
-90

query I rowsort
SELECT ALL - 69 * - - 79 col1
----
-5451

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT DISTINCT + CASE COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN + 48 - 26 * - 74 THEN - 13 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT + CASE COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN + 48 - 26 * - 74 THEN - 13 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL - 39 / NULLIF ( + 21, - 65 ) * + - 99 / + ( + - 46 ) * + - 52 * - COUNT( * ) + 60 + 42 + - + 71 * - COUNT( * ) * + NULLIF ( - 59, + - 10 ) * 41 - + - CASE - COUNT( * ) WHEN 51 THEN 17 WHEN + - 55 * ( 6 - + 34 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL - 39 / NULLIF ( + 21, - 65 ) * + - 99 / + ( + - 46 ) * + - 52 * - COUNT ( * ) + 60 + 42 + - + 71 * - COUNT ( * ) * + NULLIF ( - 59, + - 10 ) * 41 - + - CASE - COUNT ( * ) WHEN 51 THEN 17 WHEN + - 55 * ( 6 - + 34 ) THEN NULL END col2
----
NULL

query I rowsort
SELECT - 41 * - + 63 col2
----
2583

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT + MAX( - COALESCE ( + 32, ( 55 ) - 9 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-8362
SELECT + MAX ( - COALESCE ( + 32, ( 55 ) - 9 ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT - 42 * - 53 * + MAX( DISTINCT - 89 ) * - 84 - + + 36 + - ( - COUNT( * ) ) + - + 43 * COUNT( * ) AS col0
----
16641498

skipif mysql # not compatible
query I rowsort label-8363
SELECT - 42 * - 53 * + MAX ( DISTINCT - 89 ) * - 84 - + + 36 + - ( - COUNT ( * ) ) + - + 43 * COUNT ( * ) AS col0
----
16641498

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT - 88 + - ( COUNT( * ) ) * + - 21
----
-67

skipif mysql # not compatible
query I rowsort label-8364
SELECT - 88 + - ( COUNT ( * ) ) * + - 21
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8365
SELECT - 5 * + - COUNT( - - COALESCE ( - - CASE - - CASE - 96 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 4 END WHEN + 82 / + 11 * 36 THEN + + 77 ELSE NULL END, - 44 ) ) col2
----
5

skipif mysql # not compatible
query I rowsort label-8365
SELECT - 5 * + - COUNT ( - - COALESCE ( - - CASE - - CASE - 96 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 4 END WHEN + 82 / + 11 * 36 THEN + + 77 ELSE NULL END, - 44 ) ) col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT - 64 + ( MIN( - + 73 ) ) col2
----
-137

skipif mysql # not compatible
query I rowsort label-8366
SELECT - 64 + ( MIN ( - + 73 ) ) col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT + + COUNT( 56 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8367
SELECT + + COUNT ( 56 ) col0
----
1

query I rowsort
SELECT ALL + + 3 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8369
SELECT 80 * COUNT( * ) + + COUNT( * ) + - - 33 * + 24, 96 DIV + 46 AS col0
----
873
2

skipif mysql # not compatible
query II rowsort label-8369
SELECT 80 * COUNT ( * ) + + COUNT ( * ) + - - 33 * + 24, 96 / + 46 AS col0
----
873
2

query I rowsort
SELECT DISTINCT + - 21 col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-8371
SELECT ALL + - 8 DIV - + 47 + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL + - 8 / - + 47 + - 63
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT + 65 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-8372
SELECT + 65 / + 71
----
0

query I rowsort
SELECT + 69 + ( - + 4 ) col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT + - MAX( + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-8374
SELECT + - MAX ( + 19 )
----
-19

query I rowsort
SELECT + + NULLIF ( - - 31, 5 * - 62 ) AS col0
----
31

query I rowsort
SELECT DISTINCT + ( 53 ) + + - 74 + + 80
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8377
SELECT + CASE COUNT( * ) WHEN + 92 THEN NULL WHEN NULLIF ( 13, 52 + + 0 ) THEN - + CAST( NULL AS SIGNED ) ELSE CASE + 93 WHEN - - 18 THEN - 51 END + - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT + CASE COUNT ( * ) WHEN + 92 THEN NULL WHEN NULLIF ( 13, 52 + + 0 ) THEN - + CAST ( NULL AS INTEGER ) ELSE CASE + 93 WHEN - - 18 THEN - 51 END + - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 61, + 9 * - 2 + - 18 + + - 5 ) col2
----
-61

query II rowsort
SELECT DISTINCT + 14 + + 67 AS col2, - 70 * - 7 - - CASE - 68 WHEN + - 98 + + 61 THEN + 96 + 67 ELSE NULL END AS col1
----
81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT CAST( NULL AS SIGNED ) * 13 - 37 / ( - 32 ) * + - 14 + + + COUNT( * ) + + ( + 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT CAST ( NULL AS INTEGER ) * 13 - 37 / ( - 32 ) * + - 14 + + + COUNT ( * ) + + ( + 0 )
----
NULL

query I rowsort
SELECT ALL 50 + - 53
----
-3

query II rowsort
SELECT ALL 55 + - 81, NULLIF ( 37, 65 ) AS col2
----
-26
37

query I rowsort
SELECT ( - 4 ) + 31 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT COUNT( + 12 ) - - + 19 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8384
SELECT COUNT ( + 12 ) - - + 19 AS col2
----
20

query II rowsort
SELECT ALL 46, 2 AS col1
----
46
2

query I rowsort
SELECT 9 + + 62 AS col2
----
71

query II rowsort
SELECT - 1 col2, 25 col2
----
-1
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8388
SELECT ALL 89 + 75 DIV + - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL 89 + 75 / + - COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT ALL + COUNT( * ) * 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL + COUNT ( * ) * 47 AS col1
----
47

query I rowsort
SELECT DISTINCT 77 + - + 71 AS col0
----
6

query I rowsort
SELECT DISTINCT 95 * ( + + 60 ) AS col0
----
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT 71 * + + COUNT( * ) * 8 * - 11 AS col2
----
-6248

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT 71 * + + COUNT ( * ) * 8 * - 11 AS col2
----
-6248

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT ALL COUNT( * ) * 0 col0
----
0

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL COUNT ( * ) * 0 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT DISTINCT 88 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT 88 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8395
SELECT DISTINCT 26 AS col2, - 12 DIV 47
----
26
0

skipif mysql # not compatible
query II rowsort label-8395
SELECT DISTINCT 26 AS col2, - 12 / 47
----
26
0

query II rowsort
SELECT ALL 77 AS col1, + 44 AS col2
----
77
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8397
SELECT - 78, + ( + COUNT( * ) ) AS col2
----
-78
1

skipif mysql # not compatible
query II rowsort label-8397
SELECT - 78, + ( + COUNT ( * ) ) AS col2
----
-78
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8398
SELECT 44 + - 91 + + 59 + + 55 + - ( - - 26 ) * + - 82 * ( 12 ) + - 11 + - 53 AS col1, COUNT( * )
----
25587
1

skipif mysql # not compatible
query II rowsort label-8398
SELECT 44 + - 91 + + 59 + + 55 + - ( - - 26 ) * + - 82 * ( 12 ) + - 11 + - 53 AS col1, COUNT ( * )
----
25587
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT DISTINCT - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT 24 * + - CASE + + COUNT( * ) WHEN 86 THEN COUNT( * ) + + 87 + + - 15 WHEN SUM( - 61 ) + - COUNT( * ) + + - COUNT( * ) THEN - CASE + 56 WHEN 99 THEN 21 + - 79 * - + 85 * 85 - 4 ELSE + 65 * 50 END ELSE 3 + - - 29 END AS col2
----
-768

skipif mysql # not compatible
query I rowsort label-8400
SELECT 24 * + - CASE + + COUNT ( * ) WHEN 86 THEN COUNT ( * ) + + 87 + + - 15 WHEN SUM ( - 61 ) + - COUNT ( * ) + + - COUNT ( * ) THEN - CASE + 56 WHEN 99 THEN 21 + - 79 * - + 85 * 85 - 4 ELSE + 65 * 50 END ELSE 3 + - - 29 END AS col2
----
-768

onlyif mysql # aggregate syntax: 
query II rowsort label-8401
SELECT DISTINCT - 60 AS col0, 47 * + COUNT( * ) * 38 * - 18 AS col0
----
-60
-32148

skipif mysql # not compatible
query II rowsort label-8401
SELECT DISTINCT - 60 AS col0, 47 * + COUNT ( * ) * 38 * - 18 AS col0
----
-60
-32148

query I rowsort
SELECT DISTINCT - 11 * - - 46 AS col1
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT DISTINCT - + SUM( 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - + SUM ( 66 )
----
-66

query I rowsort
SELECT ALL - ( 77 ) * 69 * + + 78 AS col0
----
-414414

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT - 87 * + SUM( + - ( - + 75 ) )
----
-6525

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT - 87 * + SUM ( + - ( - + 75 ) )
----
-6525

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL - - NULLIF ( + NULLIF ( - 20, 98 ), COUNT( * ) * - 66 - + 10 )
----
-20

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - - NULLIF ( + NULLIF ( - 20, 98 ), COUNT ( * ) * - 66 - + 10 )
----
-20

query I rowsort
SELECT DISTINCT + - 6 * + - 71 * - 83 AS col0
----
-35358

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT MIN( DISTINCT - COALESCE ( + 21, CASE + 30 WHEN + NULLIF ( + - 32, 45 * + ( 13 ) ) THEN - 88 ELSE + 90 END + - 66 ) ) * - 55 * - + 87 * - 71 + + + 77
----
7134512

skipif mysql # not compatible
query I rowsort label-8408
SELECT MIN ( DISTINCT - COALESCE ( + 21, CASE + 30 WHEN + NULLIF ( + - 32, 45 * + ( 13 ) ) THEN - 88 ELSE + 90 END + - 66 ) ) * - 55 * - + 87 * - 71 + + + 77
----
7134512

query I rowsort
SELECT ALL + 37 * - 33
----
-1221

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + 2 * + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8410
SELECT + 2 * + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT - 85 + 72 AS col2
----
-13

query I rowsort
SELECT DISTINCT - 46 + + 10 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ALL + COUNT( 95 ) + - ( 57 ) + + 13 * - + 37 * - + 34 * - + 4 * - + 20 AS col0
----
1308264

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL + COUNT ( 95 ) + - ( 57 ) + + 13 * - + 37 * - + 34 * - + 4 * - + 20 AS col0
----
1308264

query II rowsort
SELECT + - 10, + 2 AS col2
----
-10
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL + 13 + + 13 + - 18 + - 25 + - 85 + + 28 + + COUNT( * ) * + ( + 22 ) * - + 98 * 42 * + COALESCE ( + 40, 86, - - 20 + + - COUNT( * ) * 5 + + 31 ) * COUNT( * ) + - 74 + - 55
----
-3622283

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL + 13 + + 13 + - 18 + - 25 + - 85 + + 28 + + COUNT ( * ) * + ( + 22 ) * - + 98 * 42 * + COALESCE ( + 40, 86, - - 20 + + - COUNT ( * ) * 5 + + 31 ) * COUNT ( * ) + - 74 + - 55
----
-3622283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8416
SELECT - NULLIF ( - 17, - 95 * COUNT( * ) * - MIN( DISTINCT - 21 ) * COUNT( DISTINCT - 2 ) * + COALESCE ( + CAST( NULL AS SIGNED ), + - 22 ) * - 73 + CAST( + COUNT( * ) AS SIGNED ) ) - + - 34 * - 10 AS col0
----
-323

skipif mysql # not compatible
query I rowsort label-8416
SELECT - NULLIF ( - 17, - 95 * COUNT ( * ) * - MIN ( DISTINCT - 21 ) * COUNT ( DISTINCT - 2 ) * + COALESCE ( + CAST ( NULL AS INTEGER ), + - 22 ) * - 73 + CAST ( + COUNT ( * ) AS INTEGER ) ) - + - 34 * - 10 AS col0
----
-323

query I rowsort
SELECT DISTINCT + 44 + 78
----
122

query I rowsort
SELECT DISTINCT - 85 + - 37 AS col2
----
-122

query I rowsort
SELECT ALL ( + 40 ) * + + 96 - + - ( - 63 ) + 12 AS col1
----
3789

query I rowsort
SELECT ALL + + 63 + 43 AS col1
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT ALL - AVG ( ALL + CAST( NULL AS SIGNED ) ) + - 70 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL - AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - 70 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8422
SELECT DISTINCT + 94 DIV - MIN( 82 ) AS col0, + 70 + - 48 AS col0
----
-1
22

skipif mysql # not compatible
query II rowsort label-8422
SELECT DISTINCT + 94 / - MIN ( 82 ) AS col0, + 70 + - 48 AS col0
----
-1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT + COUNT( * ) * + 56 * - 91
----
-5096

skipif mysql # not compatible
query I rowsort label-8423
SELECT + COUNT ( * ) * + 56 * - 91
----
-5096

onlyif mysql # aggregate syntax: 
query II rowsort label-8424
SELECT MAX( ALL - 48 ) + + 91, COUNT( DISTINCT - 12 ) AS col1
----
43
1

skipif mysql # not compatible
query II rowsort label-8424
SELECT MAX ( ALL - 48 ) + + 91, COUNT ( DISTINCT - 12 ) AS col1
----
43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT - + COALESCE ( + + 24, - COUNT( * ) + 3 )
----
-24

skipif mysql # not compatible
query I rowsort label-8425
SELECT - + COALESCE ( + + 24, - COUNT ( * ) + 3 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8426
SELECT ALL - CAST( + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT COUNT( * ) - - NULLIF ( - 23, - + 18 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8427
SELECT COUNT ( * ) - - NULLIF ( - 23, - + 18 ) AS col2
----
-22

query I rowsort
SELECT ALL 90 + - - 26 + 37 col1
----
153

query I rowsort
SELECT ALL ( - + 54 ) + - - COALESCE ( - + 31, - 93 + + + 16 * - + 5 - + - COALESCE ( - 5, - 99 ), 28 - - + 67 ) + - 50 AS col2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT COUNT( * ) + 94 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-8430
SELECT COUNT ( * ) + 94 AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8431
SELECT ALL 54 - - 48 - ( + NULLIF ( - - COALESCE ( - 68, + 62, 74, - + 2 ), + + COUNT( * ) ) ) * + + 32 + - CAST( - 32 AS SIGNED ) - - 75
----
2385

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL 54 - - 48 - ( + NULLIF ( - - COALESCE ( - 68, + 62, 74, - + 2 ), + + COUNT ( * ) ) ) * + + 32 + - CAST ( - 32 AS INTEGER ) - - 75
----
2385

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT COUNT( 56 ) * - NULLIF ( + COUNT( * ), + 91 ) + - - 13
----
12

skipif mysql # not compatible
query I rowsort label-8432
SELECT COUNT ( 56 ) * - NULLIF ( + COUNT ( * ), + 91 ) + - - 13
----
12

query I rowsort
SELECT ( - 98 ) * + + 90
----
-8820

query I rowsort
SELECT 47 + + 9
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL ( - COUNT( * ) ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL ( - COUNT ( * ) ) * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8436
SELECT ( + 51 ) - + - NULLIF ( - - COUNT( * ), + 78 ) AS col2, 13
----
52
13

skipif mysql # not compatible
query II rowsort label-8436
SELECT ( + 51 ) - + - NULLIF ( - - COUNT ( * ), + 78 ) AS col2, 13
----
52
13

query I rowsort
SELECT DISTINCT - 25 * - NULLIF ( 19, + 98 ) AS col0
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL - MIN( ALL + 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL - MIN ( ALL + 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT - MAX( 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-8439
SELECT - MAX ( 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT DISTINCT COUNT( * ) * 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT COUNT ( * ) * 14 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8441
SELECT + COUNT( * ) * CAST( NULL AS DECIMAL ) + + 42 - + AVG ( ALL + 26 ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT + COUNT ( * ) * CAST ( NULL AS REAL ) + + 42 - + AVG ( ALL + 26 ) - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 34 * - - 40 * + + 83 * + 71 + - 47 - 21 * - NULLIF ( + - 18, + 59 ) AS col2
----
-8014905

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT + 91 + + + SUM( + 69 )
----
160

skipif mysql # not compatible
query I rowsort label-8443
SELECT + 91 + + + SUM ( + 69 )
----
160

query I rowsort
SELECT + ( - 65 ) * 99 * + 79 - - CASE + - 79 WHEN - 82 THEN NULL WHEN + 68 THEN - ( + 75 ) END
----
NULL

query I rowsort
SELECT DISTINCT + + 48 AS col2
----
48

query I rowsort
SELECT ALL - - 58 * - 47 + - 12 * + 51 * 46 * - 8 AS col1
----
222490

query I rowsort
SELECT + 45 * - + 43 + 74
----
-1861

query I rowsort
SELECT ALL + - 28 * - 71 AS col0
----
1988

query I rowsort
SELECT ALL 49 * 5 + + + 7 AS col1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT - + 87 + - + 16 * + COUNT( * ) * + COUNT( * ) col0
----
-103

skipif mysql # not compatible
query I rowsort label-8450
SELECT - + 87 + - + 16 * + COUNT ( * ) * + COUNT ( * ) col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL + MAX( - 11 ) * - - 74 + + - 93 AS col1
----
-907

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL + MAX ( - 11 ) * - - 74 + + - 93 AS col1
----
-907

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT MAX( DISTINCT + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-8452
SELECT MAX ( DISTINCT + 8 )
----
8

query I rowsort
SELECT + 40 * + - ( + 86 ) + 67
----
-3373

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT - 69 * - + 40 + + CASE + ( - + 79 ) WHEN + 8 THEN + 74 - 56 * 6 * - 90 WHEN + COUNT( * ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT - 69 * - + 40 + + CASE + ( - + 79 ) WHEN + 8 THEN + 74 - 56 * 6 * - 90 WHEN + COUNT ( * ) THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT - 29 * - 57 + + 26 + 10 + COUNT( * ) + - 96 * - COUNT( * )
----
1786

skipif mysql # not compatible
query I rowsort label-8455
SELECT - 29 * - 57 + + 26 + 10 + COUNT ( * ) + - 96 * - COUNT ( * )
----
1786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT DISTINCT + CAST( + - 57 AS SIGNED ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT + CAST ( + - 57 AS INTEGER ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-8457
SELECT COUNT( * ), + 3 * 88 + + 30 * - - COALESCE ( - 34, + + COUNT( * ) ) AS col1
----
1
-756

skipif mysql # not compatible
query II rowsort label-8457
SELECT COUNT ( * ), + 3 * 88 + + 30 * - - COALESCE ( - 34, + + COUNT ( * ) ) AS col1
----
1
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT DISTINCT MAX( + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT MAX ( + 49 ) AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT ALL CAST( NULL AS SIGNED ) / 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL CAST ( NULL AS INTEGER ) / 28
----
NULL

query I rowsort
SELECT - 48 + - 11 + + 13 * - 11 AS col2
----
-202

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT DISTINCT NULLIF ( MIN( ALL + - 86 ), - NULLIF ( - - 82, 27 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT NULLIF ( MIN ( ALL + - 86 ), - NULLIF ( - - 82, 27 ) )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8462
SELECT ALL - COALESCE ( + 72, + - SUM( + 74 ), - 47 * - COUNT( * ) ) / - 25 * + - CAST( NULL AS SIGNED ), 3 * - 80 + + 64 AS col2
----
NULL
-176

skipif mysql # not compatible
query II rowsort label-8462
SELECT ALL - COALESCE ( + 72, + - SUM ( + 74 ), - 47 * - COUNT ( * ) ) / - 25 * + - CAST ( NULL AS INTEGER ), 3 * - 80 + + 64 AS col2
----
NULL
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT - 95 DIV + - 99
----
0

skipif mysql # not compatible
query I rowsort label-8463
SELECT - 95 / + - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT + 1 * + 41 * + COALESCE ( SUM( - 47 ), - + MIN( - ( + 78 ) ) + - + COUNT( * ) )
----
-1927

skipif mysql # not compatible
query I rowsort label-8464
SELECT + 1 * + 41 * + COALESCE ( SUM ( - 47 ), - + MIN ( - ( + 78 ) ) + - + COUNT ( * ) )
----
-1927

onlyif mysql # DIV for integer division: 
query I rowsort label-8465
SELECT ALL - 1 DIV + + 77 * + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL - 1 / + + 77 * + 52 AS col2
----
0

query I rowsort
SELECT - 12 + - 42 AS col0
----
-54

query I rowsort
SELECT + 18 + + 43
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8468
SELECT + 77 * + + COALESCE ( - 31, 31 * 10 + NULLIF ( 33, + 28 ) + 14 + - - 95 * - 69 * - 46, - 62 + + CAST( NULL AS SIGNED ) )
----
-2387

skipif mysql # not compatible
query I rowsort label-8468
SELECT + 77 * + + COALESCE ( - 31, 31 * 10 + NULLIF ( 33, + 28 ) + 14 + - - 95 * - 69 * - 46, - 62 + + CAST ( NULL AS INTEGER ) )
----
-2387

query I rowsort
SELECT ALL ( 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8470
SELECT ALL NULLIF ( - - COUNT( 89 ), + 93 ) * COUNT( * ) AS col2, + 1 DIV - + COUNT( * ) + + MAX( + 37 )
----
1
36

skipif mysql # not compatible
query II rowsort label-8470
SELECT ALL NULLIF ( - - COUNT ( 89 ), + 93 ) * COUNT ( * ) AS col2, + 1 / - + COUNT ( * ) + + MAX ( + 37 )
----
1
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT + 71 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT + 71 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT - 82 + 15 + + 11 * - - 27 + + 66 * - - SUM( DISTINCT + 45 )
----
3200

skipif mysql # not compatible
query I rowsort label-8472
SELECT - 82 + 15 + + 11 * - - 27 + + 66 * - - SUM ( DISTINCT + 45 )
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT COALESCE ( + COUNT( * ), + CASE - 22 WHEN + - 41 * - ( + NULLIF ( 36, + COUNT( * ) + - 77 + + + COUNT( DISTINCT + 93 ) / - MIN( + ( + 40 ) ) * - - 42 * - - 87 + - + CASE 54 WHEN 60 * + + 76 THEN - 36 END ) ) + - - 89 THEN + 60 * - 57 END ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT COALESCE ( + COUNT ( * ), + CASE - 22 WHEN + - 41 * - ( + NULLIF ( 36, + COUNT ( * ) + - 77 + + + COUNT ( DISTINCT + 93 ) / - MIN ( + ( + 40 ) ) * - - 42 * - - 87 + - + CASE 54 WHEN 60 * + + 76 THEN - 36 END ) ) + - - 89 THEN + 60 * - 57 END ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL + COUNT( * ) * + 75
----
75

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL + COUNT ( * ) * + 75
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT DISTINCT ( ( + CAST( 70 AS SIGNED ) ) )
----
70

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT ( ( + CAST ( 70 AS INTEGER ) ) )
----
70

query I rowsort
SELECT ALL ( 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT + NULLIF ( + 19, + ( + 55 ) ) * + + COUNT( * ) + - 23 * - 48 AS col1
----
1123

skipif mysql # not compatible
query I rowsort label-8477
SELECT + NULLIF ( + 19, + ( + 55 ) ) * + + COUNT ( * ) + - 23 * - 48 AS col1
----
1123

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT - CASE + 64 WHEN COUNT( * ) THEN - + 92 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT - CASE + 64 WHEN COUNT ( * ) THEN - + 92 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8479
SELECT ALL - CAST( NULL AS SIGNED ) + 69 + 31 AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8479
SELECT ALL - CAST ( NULL AS INTEGER ) + 69 + 31 AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT + 31 + + - 3 + + 57 * + ( - NULLIF ( + 73, 23 * SUM( - 16 ) ) )
----
-4133

skipif mysql # not compatible
query I rowsort label-8480
SELECT + 31 + + - 3 + + 57 * + ( - NULLIF ( + 73, 23 * SUM ( - 16 ) ) )
----
-4133

query I rowsort
SELECT ALL 5 + - 31
----
-26

query I rowsort
SELECT + 44 + + - 51 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT ALL - 8 / - CAST( NULL AS SIGNED ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - 8 / - CAST ( NULL AS INTEGER ) + + 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8484
SELECT + + 58 * + + 7 + + CASE 13 WHEN + + 23 THEN NULL ELSE + CASE + 38 WHEN 88 THEN - - ( COUNT( ALL + CAST( NULL AS DECIMAL ) ) ) END + 30 END + 37, + 88 * + COUNT( * ) + - + 60 AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-8484
SELECT + + 58 * + + 7 + + CASE 13 WHEN + + 23 THEN NULL ELSE + CASE + 38 WHEN 88 THEN - - ( COUNT ( ALL + CAST ( NULL AS REAL ) ) ) END + 30 END + 37, + 88 * + COUNT ( * ) + - + 60 AS col1
----
NULL
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8485
SELECT + + COUNT( * ) AS col1, COUNT( * ) * - 72 + + 2 AS col1
----
1
-70

skipif mysql # not compatible
query II rowsort label-8485
SELECT + + COUNT ( * ) AS col1, COUNT ( * ) * - 72 + + 2 AS col1
----
1
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8486
SELECT ALL + CASE - 45 WHEN 35 THEN 18 WHEN CAST( 93 AS DECIMAL ) * + + 24 + + + 42 THEN NULL ELSE NULL END AS col1, 87 * + 32 AS col1
----
NULL
2784

skipif mysql # not compatible
query II rowsort label-8486
SELECT ALL + CASE - 45 WHEN 35 THEN 18 WHEN CAST ( 93 AS REAL ) * + + 24 + + + 42 THEN NULL ELSE NULL END AS col1, 87 * + 32 AS col1
----
NULL
2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8487
SELECT DISTINCT 59 / 22 + + + 26 + - CAST( NULL AS SIGNED ) / - + 81 + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT 59 / 22 + + + 26 + - CAST ( NULL AS INTEGER ) / - + 81 + + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT + MAX( + ( + + 9 ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8488
SELECT + MAX ( + ( + + 9 ) ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8489
SELECT DISTINCT + + COUNT( * ) * 69 + + 3 col0, COUNT( * ) + + 45
----
72
46

skipif mysql # not compatible
query II rowsort label-8489
SELECT DISTINCT + + COUNT ( * ) * 69 + + 3 col0, COUNT ( * ) + + 45
----
72
46

query I rowsort
SELECT + 77 - 6 AS col2
----
71

query I rowsort
SELECT - 47 * - 50
----
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL + 36 * CASE COUNT( * ) WHEN 75 THEN 41 ELSE - 0 END * - COUNT( ALL - 73 )
----
0

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL + 36 * CASE COUNT ( * ) WHEN 75 THEN 41 ELSE - 0 END * - COUNT ( ALL - 73 )
----
0

query I rowsort
SELECT + 91 - + 54
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT - ( 67 ) * - COUNT( * ) * + COUNT( * ) col2
----
67

skipif mysql # not compatible
query I rowsort label-8494
SELECT - ( 67 ) * - COUNT ( * ) * + COUNT ( * ) col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT - + COUNT( * ) + - + COUNT( ALL - - 23 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8495
SELECT - + COUNT ( * ) + - + COUNT ( ALL - - 23 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL - + 21 * - COUNT( * ) + + COUNT( * ) - - 95
----
117

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - + 21 * - COUNT ( * ) + + COUNT ( * ) - - 95
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-8497
SELECT ALL + COUNT( * ) AS col0, - 13 * 56 * 92
----
1
-66976

skipif mysql # not compatible
query II rowsort label-8497
SELECT ALL + COUNT ( * ) AS col0, - 13 * 56 * 92
----
1
-66976

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT - 31 - + - 16 + - COALESCE ( - 77, + 78 DIV + 85 )
----
62

skipif mysql # not compatible
query I rowsort label-8498
SELECT - 31 - + - 16 + - COALESCE ( - 77, + 78 / + 85 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL + MIN( DISTINCT + + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + MIN ( DISTINCT + + 15 ) AS col2
----
15

query I rowsort
SELECT NULLIF ( + 76, + 92 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL 83 * 74 - CASE + - 73 WHEN + 81 THEN NULL WHEN - - 79 THEN - 31 + + COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL 83 * 74 - CASE + - 73 WHEN + 81 THEN NULL WHEN - - 79 THEN - 31 + + COUNT ( * ) ELSE NULL END col1
----
NULL

query II rowsort
SELECT DISTINCT + 51 AS col1, 44
----
51
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT DISTINCT - MAX( DISTINCT + ( - - 9 ) ) * + COUNT( ALL + 94 ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT - MAX ( DISTINCT + ( - - 9 ) ) * + COUNT ( ALL + 94 ) col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8504
SELECT DISTINCT - COALESCE ( - ( + 36 ), CAST( NULL AS SIGNED ) * - 26 * + 28 * + 27, - ( - COUNT( * ) ), - COUNT( * ) ) * - 84 * - 79 AS col0
----
238896

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT - COALESCE ( - ( + 36 ), CAST ( NULL AS INTEGER ) * - 26 * + 28 * + 27, - ( - COUNT ( * ) ), - COUNT ( * ) ) * - 84 * - 79 AS col0
----
238896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT + 71 + + CAST( CAST( + 13 AS SIGNED ) AS SIGNED ) col2
----
84

skipif mysql # not compatible
query I rowsort label-8505
SELECT + 71 + + CAST ( CAST ( + 13 AS INTEGER ) AS INTEGER ) col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8506
SELECT - 77 DIV COALESCE ( - + 18, - - NULLIF ( + - 71, 58 ), 68 DIV + + COUNT( * ) + + - COUNT( * ) ) * 61
----
244

skipif mysql # not compatible
query I rowsort label-8506
SELECT - 77 / COALESCE ( - + 18, - - NULLIF ( + - 71, 58 ), 68 / + + COUNT ( * ) + + - COUNT ( * ) ) * 61
----
244

query I rowsort
SELECT - 89 * - ( - 62 ) AS col2
----
-5518

query I rowsort
SELECT ALL ( 20 ) AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8509
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 34
----
NULL
34

skipif mysql # not compatible
query II rowsort label-8509
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 34
----
NULL
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT DISTINCT CAST( 53 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT CAST ( 53 AS INTEGER )
----
53

query II rowsort
SELECT DISTINCT ( - NULLIF ( + - 47, - - 82 ) ) col2, + ( + 39 ) * 90 - + 81 + - + 16 * + + 38
----
47
2821

query I rowsort
SELECT ALL ( + + 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8513
SELECT - 23 + - COUNT( * ), - 82 AS col2
----
-24
-82

skipif mysql # not compatible
query II rowsort label-8513
SELECT - 23 + - COUNT ( * ), - 82 AS col2
----
-24
-82

query I rowsort
SELECT 39 + 51 * - 62
----
-3123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8515
SELECT + COUNT( * ) DIV + 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8515
SELECT + COUNT ( * ) / + 59 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8516
SELECT ALL COUNT( * ) * + 49 DIV + ( - 65 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL COUNT ( * ) * + 49 / + ( - 65 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT - - SUM( DISTINCT 80 )
----
80

skipif mysql # not compatible
query I rowsort label-8517
SELECT - - SUM ( DISTINCT 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT + COUNT( DISTINCT + 30 ) + + 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8518
SELECT + COUNT ( DISTINCT + 30 ) + + 52 AS col2
----
53

query I rowsort
SELECT ALL + - ( + 87 ) + 92
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8520
SELECT ALL COUNT( * ) AS col2, COUNT( + + 63 )
----
1
1

skipif mysql # not compatible
query II rowsort label-8520
SELECT ALL COUNT ( * ) AS col2, COUNT ( + + 63 )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT 8 + + COUNT( * ) + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8521
SELECT 8 + + COUNT ( * ) + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL - COUNT( * ) + - + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-8523
SELECT - 0 AS col1, - 29 DIV - + 28 AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-8523
SELECT - 0 AS col1, - 29 / - + 28 AS col0
----
0
1

query I rowsort
SELECT DISTINCT - + 1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8525
SELECT ( + SUM( + 56 ) ) DIV - 51 + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8525
SELECT ( + SUM ( + 56 ) ) / - 51 + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - 77 * + 74 - + - 41 col2
----
-5657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8527
SELECT COUNT( * ) + - COUNT( ALL - 68 ) DIV 21 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8527
SELECT COUNT ( * ) + - COUNT ( ALL - 68 ) / 21 + COUNT ( * )
----
2

query I rowsort
SELECT ALL - 73 - 42 AS col1
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-8529
SELECT ALL - COUNT( * ) AS col2, - COALESCE ( + 21, - - 24, + 41 - - - 33, - 36 ) + + MAX( - 14 )
----
-1
-35

skipif mysql # not compatible
query II rowsort label-8529
SELECT ALL - COUNT ( * ) AS col2, - COALESCE ( + 21, - - 24, + 41 - - - 33, - 36 ) + + MAX ( - 14 )
----
-1
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8530
SELECT + 11 + 91 + - - CAST( - 15 AS SIGNED ) - COUNT( * ) + + COALESCE ( 0, + 28, 41 ) DIV - ( + 87 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-8530
SELECT + 11 + 91 + - - CAST ( - 15 AS INTEGER ) - COUNT ( * ) + + COALESCE ( 0, + 28, 41 ) / - ( + 87 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT ALL + COUNT( * ) * + 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + COUNT ( * ) * + 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8532
SELECT ALL 13 * 24, CASE - 53 WHEN + 3 + 32 * + + 65 THEN NULL ELSE + + COUNT( * ) + COUNT( + + 67 ) END * + COUNT( * ) AS col2
----
312
2

skipif mysql # not compatible
query II rowsort label-8532
SELECT ALL 13 * 24, CASE - 53 WHEN + 3 + 32 * + + 65 THEN NULL ELSE + + COUNT ( * ) + COUNT ( + + 67 ) END * + COUNT ( * ) AS col2
----
312
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT COUNT( * ) * 74
----
74

skipif mysql # not compatible
query I rowsort label-8533
SELECT COUNT ( * ) * 74
----
74

query I rowsort
SELECT ALL ( 50 ) * + + 3 - + - 3
----
153

query I rowsort
SELECT ( - + 17 ) + - 7 + + 34 AS col2
----
10

query I rowsort
SELECT 38 + 44 col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT 44 * - + COUNT( * ) * + 28 AS col2
----
-1232

skipif mysql # not compatible
query I rowsort label-8537
SELECT 44 * - + COUNT ( * ) * + 28 AS col2
----
-1232

onlyif mysql # aggregate syntax: 
query II rowsort label-8538
SELECT 18 * + - MIN( DISTINCT + - 38 ), + COUNT( * ) + + + 2 AS col1
----
684
3

skipif mysql # not compatible
query II rowsort label-8538
SELECT 18 * + - MIN ( DISTINCT + - 38 ), + COUNT ( * ) + + + 2 AS col1
----
684
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT 54 * - + ( - - ( + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT 54 * - + ( - - ( + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT ( + 17 ) + - 20
----
-3

query II rowsort
SELECT 44 + 92, - 77 AS col0
----
136
-77

query I rowsort
SELECT 69 + - - 67
----
136

query I rowsort
SELECT DISTINCT - 66 + + + 99 * + 71 * 73 + + - 69
----
512982

query I rowsort
SELECT 78 + + - 19 col1
----
59

query II rowsort
SELECT DISTINCT + 51 + - 61, 94 AS col1
----
-10
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT - COUNT( ALL + 22 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8546
SELECT - COUNT ( ALL + 22 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8547
SELECT DISTINCT - 77 + - - CASE + + 22 WHEN - - 10 * MAX( DISTINCT 15 ) * 78 * - 51 + - + 93 + - - CAST( - 2 AS SIGNED ) + + 55 - 17 - + COUNT( ALL - ( - 15 ) ) * - 99 * + 81 + CAST( NULL AS DECIMAL ) THEN - 35 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT - 77 + - - CASE + + 22 WHEN - - 10 * MAX ( DISTINCT 15 ) * 78 * - 51 + - + 93 + - - CAST ( - 2 AS INTEGER ) + + 55 - 17 - + COUNT ( ALL - ( - 15 ) ) * - 99 * + 81 + CAST ( NULL AS REAL ) THEN - 35 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT ALL + + 21 - - - MIN( ALL + 40 ) + + + 88 + - COUNT( * ) + - 44 * + 26 - - 70 * + 32
----
1164

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL + + 21 - - - MIN ( ALL + 40 ) + + + 88 + - COUNT ( * ) + - 44 * + 26 - - 70 * + 32
----
1164

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT MAX( DISTINCT - 46 ) * 25
----
-1150

skipif mysql # not compatible
query I rowsort label-8550
SELECT MAX ( DISTINCT - 46 ) * 25
----
-1150

query I rowsort
SELECT 99 + + 98
----
197

onlyif mysql # aggregate syntax: 
query II rowsort label-8552
SELECT + 43 + + COUNT( * ) + + + 38 AS col1, COUNT( * ) col2
----
82
1

skipif mysql # not compatible
query II rowsort label-8552
SELECT + 43 + + COUNT ( * ) + + + 38 AS col1, COUNT ( * ) col2
----
82
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT ALL - 70 * - - CAST( NULL AS SIGNED ) - + - NULLIF ( 98, 49 ) * - COALESCE ( + ( ( 81 ) ), + 4 + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - 70 * - - CAST ( NULL AS INTEGER ) - + - NULLIF ( 98, 49 ) * - COALESCE ( + ( ( 81 ) ), + 4 + 51 )
----
NULL

query I rowsort
SELECT DISTINCT - + 61 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL + 41 * 74 * + + COUNT( * ) + - + 12 - + - 98 + ( - 74 ) - 37 + 33 AS col1
----
3042

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + 41 * 74 * + + COUNT ( * ) + - + 12 - + - 98 + ( - 74 ) - 37 + 33 AS col1
----
3042

query I rowsort
SELECT DISTINCT - - 83 AS col2
----
83

query I rowsort
SELECT DISTINCT - - 0 * + 63 + + + ( 44 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8558
SELECT DISTINCT - - CASE 62 WHEN + - 26 THEN - + 88 WHEN COUNT( - - 49 ) THEN NULL ELSE COUNT( * ) * - CAST( - 61 AS SIGNED ) END AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT - - CASE 62 WHEN + - 26 THEN - + 88 WHEN COUNT ( - - 49 ) THEN NULL ELSE COUNT ( * ) * - CAST ( - 61 AS INTEGER ) END AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT 93 - - 79 + + - ( + 64 ) DIV 37
----
171

skipif mysql # not compatible
query I rowsort label-8559
SELECT 93 - - 79 + + - ( + 64 ) / 37
----
171

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8560
SELECT - 62 * + - COUNT( - 54 ) * 28 + + 40 + 47 / + 56 * + 13 + + CAST( NULL AS DECIMAL ) * 44 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT - 62 * + - COUNT ( - 54 ) * 28 + + 40 + 47 / + 56 * + 13 + + CAST ( NULL AS REAL ) * 44 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT COUNT( - - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-8561
SELECT COUNT ( - - 80 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT MIN( - + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-8562
SELECT MIN ( - + 62 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8563
SELECT DISTINCT CASE + 53 WHEN - 56 + - CAST( NULL AS SIGNED ) + 81 + COUNT( * ) THEN NULL WHEN - - 64 THEN 70 ELSE NULL END + + - SUM( - 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT CASE + 53 WHEN - 56 + - CAST ( NULL AS INTEGER ) + 81 + COUNT ( * ) THEN NULL WHEN - - 64 THEN 70 ELSE NULL END + + - SUM ( - 71 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT COUNT( * ) - + 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8564
SELECT COUNT ( * ) - + 1 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8565
SELECT NULLIF ( + + 13, - + ( + 39 ) + 74 * - 88 * - ( - CASE + 26 WHEN + COALESCE ( - - COUNT( * ), + 9 - + 27, + 54, + - 80 ) THEN NULL ELSE 73 END ) ) DIV - + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-8565
SELECT NULLIF ( + + 13, - + ( + 39 ) + 74 * - 88 * - ( - CASE + 26 WHEN + COALESCE ( - - COUNT ( * ), + 9 - + 27, + 54, + - 80 ) THEN NULL ELSE 73 END ) ) / - + COUNT ( * ) AS col1
----
-13

query I rowsort
SELECT 47 - + + 74 * ( - 69 ) * + + 54 * - - ( 71 ) * - COALESCE ( + - 28, - 96, + - 6 ) + + - 99 + - 10
----
548139250

query I rowsort
SELECT ALL 18 + 7
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT COUNT( * ) + + 32 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8568
SELECT COUNT ( * ) + + 32 AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8569
SELECT + 0 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8569
SELECT + 0 / + COUNT ( * )
----
0

query I rowsort
SELECT + 58 + 17
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8571
SELECT ALL 27, MAX( + 83 ) AS col2
----
27
83

skipif mysql # not compatible
query II rowsort label-8571
SELECT ALL 27, MAX ( + 83 ) AS col2
----
27
83

query I rowsort
SELECT - 82 * 47 AS col1
----
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT - ( - COUNT( * ) ) - - 49 + - 22 + - 40 col0
----
-12

skipif mysql # not compatible
query I rowsort label-8573
SELECT - ( - COUNT ( * ) ) - - 49 + - 22 + - 40 col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT ALL 46 / SUM( 4 ) * + AVG ( - ( + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL 46 / SUM ( 4 ) * + AVG ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 64 + 53 AS col0
----
117

query II rowsort
SELECT DISTINCT 87 AS col1, 74 AS col0
----
87
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8577
SELECT ALL 6 AS col0, + 37 * - ( + 74 ) - + + COUNT( * ) col0
----
6
-2739

skipif mysql # not compatible
query II rowsort label-8577
SELECT ALL 6 AS col0, + 37 * - ( + 74 ) - + + COUNT ( * ) col0
----
6
-2739

query I rowsort
SELECT ALL + - 82 - - + 33
----
-49

query I rowsort
SELECT ALL - - 19 * 93
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT ALL MAX( DISTINCT + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL MAX ( DISTINCT + 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT + - 92 + - - ( + COUNT( * ) ) * 43 * 66
----
2746

skipif mysql # not compatible
query I rowsort label-8581
SELECT + - 92 + - - ( + COUNT ( * ) ) * 43 * 66
----
2746

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT - - 87 * + 64 + - 27 * + + COUNT( * )
----
5541

skipif mysql # not compatible
query I rowsort label-8582
SELECT - - 87 * + 64 + - 27 * + + COUNT ( * )
----
5541

query I rowsort
SELECT + + 18 + + 60 + 50
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8584
SELECT ALL + - COALESCE ( + CAST( NULL AS SIGNED ), + - 79 ) * 87 * + COUNT( * ) + + NULLIF ( 81, - 15 ) - + MIN( DISTINCT - 0 )
----
6954

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL + - COALESCE ( + CAST ( NULL AS INTEGER ), + - 79 ) * 87 * + COUNT ( * ) + + NULLIF ( 81, - 15 ) - + MIN ( DISTINCT - 0 )
----
6954

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT + - COUNT( * ) + 33 + + + 85 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-8585
SELECT + - COUNT ( * ) + 33 + + + 85 AS col1
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8586
SELECT + 66 * COUNT( * ) + - 44 DIV + 60
----
66

skipif mysql # not compatible
query I rowsort label-8586
SELECT + 66 * COUNT ( * ) + - 44 / + 60
----
66

query II rowsort
SELECT - 52, - 20 * + 68 AS col1
----
-52
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT DISTINCT + COUNT( * ) * - 19 * + - COUNT( DISTINCT - + ( + - 45 ) ) * 55
----
1045

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT + COUNT ( * ) * - 19 * + - COUNT ( DISTINCT - + ( + - 45 ) ) * 55
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT - SUM( + 81 ) + - 9 + 8
----
-82

skipif mysql # not compatible
query I rowsort label-8589
SELECT - SUM ( + 81 ) + - 9 + 8
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL - 71 * 48 + + MAX( 79 ) + - 0 + + 16
----
-3313

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL - 71 * 48 + + MAX ( 79 ) + - 0 + + 16
----
-3313

query I rowsort
SELECT - - 85 * 46 AS col1
----
3910

query I rowsort
SELECT - - 30 * + + 6 + + 37 + 28 AS col1
----
245

query II rowsort
SELECT - + 52 * - - 93 - 58 AS col0, - 18 AS col2
----
-4894
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8594
SELECT 41 DIV 93 + ( + COUNT( * ) ) DIV + - 40 + + + 38 + - COUNT( * ) * + 28 * 24
----
-634

skipif mysql # not compatible
query I rowsort label-8594
SELECT 41 / 93 + ( + COUNT ( * ) ) / + - 40 + + + 38 + - COUNT ( * ) * + 28 * 24
----
-634

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT COUNT( * ) * 1 - - CASE - 91 WHEN - 47 THEN NULL WHEN - 51 THEN + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8595
SELECT COUNT ( * ) * 1 - - CASE - 91 WHEN - 47 THEN NULL WHEN - 51 THEN + 18 END
----
NULL

query I rowsort
SELECT - 90 * - 36
----
3240

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8597
SELECT - 48 + + 79 + + 26 + CAST( - 73 AS DECIMAL ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT - 48 + + 79 + + 26 + CAST ( - 73 AS REAL ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8598
SELECT - COALESCE ( - + 4, + - 35, + + 88 ) DIV 80 + 81 - + ( + + 78 ) - 62 * 40 - + + CAST( 14 AS SIGNED ) + + 57
----
-2434

skipif mysql # not compatible
query I rowsort label-8598
SELECT - COALESCE ( - + 4, + - 35, + + 88 ) / 80 + 81 - + ( + + 78 ) - 62 * 40 - + + CAST ( 14 AS INTEGER ) + + 57
----
-2434

query I rowsort
SELECT - 25 * - + 16
----
400

query I rowsort
SELECT ALL - 32 * - + 88 + - 31 AS col2
----
2785

query I rowsort
SELECT 47 * 43 + - 78 col1
----
1943

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL + MIN( 31 ) col0
----
31

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL + MIN ( 31 ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL 33 * - + COUNT( DISTINCT + - 25 ) * - 19 + + 9 + COUNT( * )
----
637

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL 33 * - + COUNT ( DISTINCT + - 25 ) * - 19 + + 9 + COUNT ( * )
----
637

query I rowsort
SELECT 83 * - 92 + + - 25 AS col0
----
-7661

query I rowsort
SELECT DISTINCT + ( 83 ) * - 22 * - - 13 + - 43 * + 57 * - 79
----
169891

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT DISTINCT - COUNT( * ) * - + NULLIF ( CASE + + NULLIF ( COUNT( * ), + 25 * + ( + - COUNT( DISTINCT - 34 ) ) * + + 90 ) WHEN + + COALESCE ( CASE - 47 WHEN + 80 * + - 27 THEN NULL ELSE + MIN( ALL - - 99 ) * - - 13 + 76 END, + + 20 * + - COUNT( * ) ) THEN 39 * + - 40 - - 67 WHEN 7 THEN + 86 END, 45 ) / + 62 + + 36 + COALESCE ( - SUM( ALL 59 ), 76 * 50 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT - COUNT ( * ) * - + NULLIF ( CASE + + NULLIF ( COUNT ( * ), + 25 * + ( + - COUNT ( DISTINCT - 34 ) ) * + + 90 ) WHEN + + COALESCE ( CASE - 47 WHEN + 80 * + - 27 THEN NULL ELSE + MIN ( ALL - - 99 ) * - - 13 + 76 END, + + 20 * + - COUNT ( * ) ) THEN 39 * + - 40 - - 67 WHEN 7 THEN + 86 END, 45 ) / + 62 + + 36 + COALESCE ( - SUM ( ALL 59 ), 76 * 50 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT + MIN( - 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8607
SELECT + MIN ( - 32 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL + 75 * ( - + COUNT( * ) ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + 75 * ( - + COUNT ( * ) ) AS col2
----
-75

query I rowsort
SELECT DISTINCT + ( - 38 )
----
-38

query I rowsort
SELECT 75 * 92 + - 23 col1
----
6877

query I rowsort
SELECT - 59 * + 93
----
-5487

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8612
SELECT COUNT( * ) * 76 DIV ( + NULLIF ( - 93, 91 ) ) + - + COUNT( * ) DIV + MAX( DISTINCT + 38 )
----
0

skipif mysql # not compatible
query I rowsort label-8612
SELECT COUNT ( * ) * 76 / ( + NULLIF ( - 93, 91 ) ) + - + COUNT ( * ) / + MAX ( DISTINCT + 38 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT NULLIF ( - + COUNT( * ), - + 15 + 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-8613
SELECT NULLIF ( - + COUNT ( * ), - + 15 + 37 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT ALL 25 * + 69 * - 38 * - - 0 - + + CAST( NULL AS SIGNED ) * + 7 + SUM( DISTINCT + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL 25 * + 69 * - 38 * - - 0 - + + CAST ( NULL AS INTEGER ) * + 7 + SUM ( DISTINCT + 65 )
----
NULL

query I rowsort
SELECT ALL + ( - + 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT - COALESCE ( - + CASE + + 77 WHEN + 4 - - 37 THEN 77 END, COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8616
SELECT - COALESCE ( - + CASE + + 77 WHEN + 4 - - 37 THEN 77 END, COUNT ( * ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT DISTINCT + - 13 DIV - - 89 + - ( - 7 ) + - 99
----
-92

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT + - 13 / - - 89 + - ( - 7 ) + - 99
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT + - COALESCE ( COUNT( * ), 30 + + 66 ) * - - 58 * + - 41 * + + 15 col0
----
35670

skipif mysql # not compatible
query I rowsort label-8618
SELECT + - COALESCE ( COUNT ( * ), 30 + + 66 ) * - - 58 * + - 41 * + + 15 col0
----
35670

query I rowsort
SELECT ALL 45 * 42 * 50 AS col2
----
94500

query I rowsort
SELECT DISTINCT + NULLIF ( + - 76, - 14 )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8621
SELECT + CAST( - 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-8621
SELECT + CAST ( - 34 AS INTEGER )
----
-34

query I rowsort
SELECT + 98 + 80 AS col2
----
178

query I rowsort
SELECT + 41 * + - 54 * + 69
----
-152766

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + ( COUNT( * ) ) + - 57 + - 62 * + 78
----
-4892

skipif mysql # not compatible
query I rowsort label-8624
SELECT + ( COUNT ( * ) ) + - 57 + - 62 * + 78
----
-4892

query I rowsort
SELECT + 55 * + + 12 AS col0
----
660

query I rowsort
SELECT + NULLIF ( - 71, - - 39 * - 90 - - 60 ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8627
SELECT DISTINCT - MAX( DISTINCT + CAST( + 43 AS SIGNED ) ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT - MAX ( DISTINCT + CAST ( + 43 AS INTEGER ) ) AS col2
----
-43

query I rowsort
SELECT ALL ( + 95 ) AS col2
----
95

query II rowsort
SELECT + - 31 * + 61 AS col0, 31 AS col1
----
-1891
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8630
SELECT - + CAST( + COUNT( * ) AS SIGNED ), + 40 AS col2
----
-1
40

skipif mysql # not compatible
query II rowsort label-8630
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ), + 40 AS col2
----
-1
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT DISTINCT ( - + NULLIF ( - 57, - COUNT( * ) ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT ( - + NULLIF ( - 57, - COUNT ( * ) ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT - - 81 * 46 * - COUNT( * )
----
-3726

skipif mysql # not compatible
query I rowsort label-8632
SELECT - - 81 * 46 * - COUNT ( * )
----
-3726

query I rowsort
SELECT - 27 + + 44 * + 98 AS col0
----
4285

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8634
SELECT ALL ( - CAST( + 83 AS SIGNED ) ) * - 31 AS col2, 2 * + - 81 col2
----
2573
-162

skipif mysql # not compatible
query II rowsort label-8634
SELECT ALL ( - CAST ( + 83 AS INTEGER ) ) * - 31 AS col2, 2 * + - 81 col2
----
2573
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT DISTINCT + 43 + - + CAST( NULL AS SIGNED ) - - - ( - 11 ) * 31 * + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT + 43 + - + CAST ( NULL AS INTEGER ) - - - ( - 11 ) * 31 * + 5 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8636
SELECT + CAST( NULL AS SIGNED ) AS col1, - MIN( - 41 ) AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8636
SELECT + CAST ( NULL AS INTEGER ) AS col1, - MIN ( - 41 ) AS col2
----
NULL
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8637
SELECT ALL - 88 DIV - + 46 + + - 60 AS col0, COUNT( ALL - 79 ) AS col0
----
-59
1

skipif mysql # not compatible
query II rowsort label-8637
SELECT ALL - 88 / - + 46 + + - 60 AS col0, COUNT ( ALL - 79 ) AS col0
----
-59
1

query I rowsort
SELECT + 42 * ( - COALESCE ( + 89, + 67, + 62 + + ( + 30 ) * 70, - NULLIF ( 54, + + 41 + 59 ) ) ) AS col1
----
-3738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT ALL + CAST( - 98 AS SIGNED ) + + + 86 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + CAST ( - 98 AS INTEGER ) + + + 86 AS col1
----
-12

query I rowsort
SELECT COALESCE ( - + 27, 33, - 97 ) - 52 + - 91
----
-170

query II rowsort
SELECT + 59 AS col0, 23
----
59
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL - COUNT( ALL - NULLIF ( - 4, + 24 * 63 * + 36 * - 24 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - COUNT ( ALL - NULLIF ( - 4, + 24 * 63 * + 36 * - 24 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8643
SELECT 89 * ( ( + + COUNT( ALL - 51 ) ) ) DIV COUNT( * ) * COUNT( * ) + - 18
----
71

skipif mysql # not compatible
query I rowsort label-8643
SELECT 89 * ( ( + + COUNT ( ALL - 51 ) ) ) / COUNT ( * ) * COUNT ( * ) + - 18
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT 72 DIV + - 39
----
-1

skipif mysql # not compatible
query I rowsort label-8644
SELECT 72 / + - 39
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT ALL - 16 DIV 6 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL - 16 / 6 AS col0
----
-2

query I rowsort
SELECT 43 * + - 74 AS col0
----
-3182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8647
SELECT 79 + + CASE - NULLIF ( - - ( 44 ), COUNT( * ) * SUM( - 60 ) ) WHEN + 96 THEN - 68 WHEN 20 THEN NULL ELSE NULL END - + CAST( NULL AS SIGNED ) * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT 79 + + CASE - NULLIF ( - - ( 44 ), COUNT ( * ) * SUM ( - 60 ) ) WHEN + 96 THEN - 68 WHEN 20 THEN NULL ELSE NULL END - + CAST ( NULL AS INTEGER ) * 50
----
NULL

query I rowsort
SELECT DISTINCT - 7 * + 50 * - COALESCE ( + 25, + NULLIF ( 14, - 36 ) * - - 23 + 43 ) AS col1
----
8750

query I rowsort
SELECT ALL + 44 * - 33 AS col2
----
-1452

query I rowsort
SELECT ALL - 89 - + 16
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT + 35 * - 8 * + 35 * + COUNT( * ) AS col0
----
-9800

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT + 35 * - 8 * + 35 * + COUNT ( * ) AS col0
----
-9800

query I rowsort
SELECT 72 - - 44 AS col0
----
116

query I rowsort
SELECT ALL + 44 * 55 col0
----
2420

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL - 90 - - - 48 + + 48 - 66 + - - 47 * + 50 * + - COUNT( * ) AS col0
----
-2506

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - 90 - - - 48 + + 48 - 66 + - - 47 * + 50 * + - COUNT ( * ) AS col0
----
-2506

query II rowsort
SELECT + 35 col0, - 31 AS col2
----
35
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8656
SELECT - COUNT( - - 71 ) * + 16, 67 col0
----
-16
67

skipif mysql # not compatible
query II rowsort label-8656
SELECT - COUNT ( - - 71 ) * + 16, 67 col0
----
-16
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8657
SELECT + SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT + SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - COALESCE ( + 25, + + 61 ) col2
----
25

query I rowsort
SELECT 67 - - 46
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + COUNT( * ) * CASE 34 WHEN - 59 + 52 / 99 THEN - COUNT( * ) WHEN + 44 THEN - COUNT( * ) ELSE + - 45 - CASE COUNT( * ) WHEN + + 64 THEN + - 28 + 42 * + 47 WHEN NULLIF ( + + 93, + 73 + - 54 + + + 33 * + - 3 ) THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT + COUNT ( * ) * CASE 34 WHEN - 59 + 52 / 99 THEN - COUNT ( * ) WHEN + 44 THEN - COUNT ( * ) ELSE + - 45 - CASE COUNT ( * ) WHEN + + 64 THEN + - 28 + 42 * + 47 WHEN NULLIF ( + + 93, + 73 + - 54 + + + 33 * + - 3 ) THEN NULL END END
----
NULL

query I rowsort
SELECT - ( 84 ) AS col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT DISTINCT - 88 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT - 88 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT COALESCE ( + 87, + - COUNT( * ) * + COALESCE ( + COUNT( * ), + + 1 ) + + - 16 ) + - 39 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8663
SELECT COALESCE ( + 87, + - COUNT ( * ) * + COALESCE ( + COUNT ( * ), + + 1 ) + + - 16 ) + - 39 AS col1
----
48

query I rowsort
SELECT ALL + 66 * + 23
----
1518

query I rowsort
SELECT 77 * + - ( + - 68 )
----
5236

query I rowsort
SELECT ALL - 55 + + 36 AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8667
SELECT - 28 + - + 82 + + 61 DIV COUNT( * ) * - 72
----
-4502

skipif mysql # not compatible
query I rowsort label-8667
SELECT - 28 + - + 82 + + 61 / COUNT ( * ) * - 72
----
-4502

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT COUNT( ALL + 66 ) - + 50 + - - 16 col0
----
-33

skipif mysql # not compatible
query I rowsort label-8668
SELECT COUNT ( ALL + 66 ) - + 50 + - - 16 col0
----
-33

query I rowsort
SELECT ALL 72 + - 66
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8670
SELECT + 11 * + + 62 + + - 32 * + CAST( 53 AS SIGNED ) AS col1
----
-1014

skipif mysql # not compatible
query I rowsort label-8670
SELECT + 11 * + + 62 + + - 32 * + CAST ( 53 AS INTEGER ) AS col1
----
-1014

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT ALL MIN( ALL + - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL MIN ( ALL + - 50 )
----
-50

query I rowsort
SELECT + 55 + - - 12
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT ALL + CAST( NULL AS SIGNED ) + + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL + CAST ( NULL AS INTEGER ) + + 21 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8674
SELECT ALL - 39 + - - CASE CAST( NULL AS SIGNED ) WHEN + 11 THEN NULL ELSE - 19 * + 31 + + 0 + 97 * - 22 + - 21 END * 84 AS col2
----
-230535

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL - 39 + - - CASE CAST ( NULL AS INTEGER ) WHEN + 11 THEN NULL ELSE - 19 * + 31 + + 0 + 97 * - 22 + - 21 END * 84 AS col2
----
-230535

query II rowsort
SELECT DISTINCT 38 AS col0, 77 + + 1 AS col1
----
38
78

query I rowsort
SELECT DISTINCT 66 + + 19
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-8677
SELECT ALL 44, 77 DIV 28 AS col2
----
44
2

skipif mysql # not compatible
query II rowsort label-8677
SELECT ALL 44, 77 / 28 AS col2
----
44
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8678
SELECT 20 DIV - 35 * + + NULLIF ( - - 10, - + 85 * - 66 + + - 83 * 70 ) + - + 4
----
-4

skipif mysql # not compatible
query I rowsort label-8678
SELECT 20 / - 35 * + + NULLIF ( - - 10, - + 85 * - 66 + + - 83 * 70 ) + - + 4
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8679
SELECT ALL 95 * - CASE CAST( - + 41 AS SIGNED ) WHEN COUNT( * ) + - 97 THEN - NULLIF ( - 25, - 92 + + - 77 ) + + - 29 WHEN + + 79 THEN NULL END / + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL 95 * - CASE CAST ( - + 41 AS INTEGER ) WHEN COUNT ( * ) + - 97 THEN - NULLIF ( - 25, - 92 + + - 77 ) + + - 29 WHEN + + 79 THEN NULL END / + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT + 55 * + 29 + - 38 + + 80 - CASE - MAX( - 15 ) WHEN - COUNT( * ) + - 14 THEN + 77 WHEN - + 54 THEN + 80 ELSE NULL END / + - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8680
SELECT + 55 * + 29 + - 38 + + 80 - CASE - MAX ( - 15 ) WHEN - COUNT ( * ) + - 14 THEN + 77 WHEN - + 54 THEN + 80 ELSE NULL END / + - 56 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT 53 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT 53 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8682
SELECT ALL - COUNT( * ), 35 AS col0
----
-1
35

skipif mysql # not compatible
query II rowsort label-8682
SELECT ALL - COUNT ( * ), 35 AS col0
----
-1
35

query I rowsort
SELECT + 92 * - 9 * - - 59 + 62 - - 81 + + + 31 * + + 96 * 51 - + + 56 + + 25
----
103036

query I rowsort
SELECT DISTINCT 94 * - COALESCE ( 47, - + 81 )
----
-4418

query II rowsort
SELECT DISTINCT - 4 AS col1, 32 + - + 8 + 9 + 3 AS col0
----
-4
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT 78 * - ( + COUNT( * ) ) * - 71 + MIN( + 92 ) - 92 - 9 AS col0
----
5529

skipif mysql # not compatible
query I rowsort label-8686
SELECT 78 * - ( + COUNT ( * ) ) * - 71 + MIN ( + 92 ) - 92 - 9 AS col0
----
5529

onlyif mysql # aggregate syntax: 
query II rowsort label-8687
SELECT + COUNT( * ) AS col1, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8687
SELECT + COUNT ( * ) AS col1, + COUNT ( * )
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8688
SELECT 97 DIV - 99 col1
----
0

skipif mysql # not compatible
query I rowsort label-8688
SELECT 97 / - 99 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT ALL - 86 DIV - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL - 86 / - COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT COUNT( * ) * + - 25 * + - 37 * - MIN( 41 ) + - + 24 * + 13 AS col0
----
-38237

skipif mysql # not compatible
query I rowsort label-8690
SELECT COUNT ( * ) * + - 25 * + - 37 * - MIN ( 41 ) + - + 24 * + 13 AS col0
----
-38237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8691
SELECT + - CAST( NULL AS SIGNED ) AS col2, 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-8691
SELECT + - CAST ( NULL AS INTEGER ) AS col2, 36
----
NULL
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8692
SELECT 22 DIV 64 * - 20
----
0

skipif mysql # not compatible
query I rowsort label-8692
SELECT 22 / 64 * - 20
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8693
SELECT ALL - ( - 88 ) DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL - ( - 88 ) / 91 AS col1
----
0

query I rowsort
SELECT 53 + + 82 AS col2
----
135

query I rowsort
SELECT - 46 + NULLIF ( + ( + 87 ), 70 - + 34 ) * - 21 + 29 * - 19
----
-2424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8696
SELECT ALL + - CAST( + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) + - 5 + + 74 + 65
----
135

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL + - CAST ( + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) + - 5 + + 74 + 65
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT MAX( + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT MAX ( + 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + 12 * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-8698
SELECT + 12 * COUNT ( * )
----
12

query I rowsort
SELECT DISTINCT ( + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL - MIN( ( 5 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - MIN ( ( 5 ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT - + NULLIF ( + COUNT( * ), - - 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-8701
SELECT - + NULLIF ( + COUNT ( * ), - - 98 )
----
-1

query I rowsort
SELECT + ( ( + 24 ) ) + - ( - 55 ) * - - 63
----
3489

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT + 67 * + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-8703
SELECT + 67 * + COUNT ( * )
----
67

query I rowsort
SELECT ALL 6 * - + 62
----
-372

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT - ( + + 77 ) DIV - 13 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8705
SELECT - ( + + 77 ) / - 13 AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8706
SELECT ALL - - COUNT( * ) + + + 10 DIV - 67
----
1

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL - - COUNT ( * ) + + + 10 / - 67
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT DISTINCT 48 * + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT 48 * + COUNT ( * )
----
48

query I rowsort
SELECT 18 - - 8
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8709
SELECT - 83 DIV + 25 col0
----
-3

skipif mysql # not compatible
query I rowsort label-8709
SELECT - 83 / + 25 col0
----
-3

query I rowsort
SELECT ALL 54 * + + 12 * + + 44
----
28512

onlyif mysql # DIV for integer division: 
query I rowsort label-8711
SELECT DISTINCT 12 * 44 DIV - 7 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT 12 * 44 / - 7 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT - CASE + - COUNT( * ) WHEN COALESCE ( - - 48, + 77 ) THEN NULL ELSE - - 37 END AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8712
SELECT - CASE + - COUNT ( * ) WHEN COALESCE ( - - 48, + 77 ) THEN NULL ELSE - - 37 END AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8713
SELECT + MIN( 58 ) DIV 75 DIV MAX( + - 14 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT + MIN ( 58 ) / 75 / MAX ( + - 14 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL + NULLIF ( - 30, + 63 * + 40 * - 28 + + COUNT( * ) + - 11 ) * + 38 * 48 + 36 AS col0
----
-54684

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL + NULLIF ( - 30, + 63 * + 40 * - 28 + + COUNT ( * ) + - 11 ) * + 38 * 48 + 36 AS col0
----
-54684

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT CASE + 67 WHEN + COUNT( ALL + + 79 ) THEN NULL WHEN - 3 THEN COALESCE ( 20, + COUNT( * ), + - 12, + COALESCE ( + - COUNT( DISTINCT + 79 ), + 86 ) ) / - + ( ( + - 23 ) ) + - 90 * + 99 + 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT CASE + 67 WHEN + COUNT ( ALL + + 79 ) THEN NULL WHEN - 3 THEN COALESCE ( 20, + COUNT ( * ), + - 12, + COALESCE ( + - COUNT ( DISTINCT + 79 ), + 86 ) ) / - + ( ( + - 23 ) ) + - 90 * + 99 + 68 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8716
SELECT ALL 0 / - + CASE + 25 WHEN - + COUNT( * ) THEN + 11 / + 81 * - + CAST( NULL AS SIGNED ) END AS col0, + CAST( + - 21 AS SIGNED )
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-8716
SELECT ALL 0 / - + CASE + 25 WHEN - + COUNT ( * ) THEN + 11 / + 81 * - + CAST ( NULL AS INTEGER ) END AS col0, + CAST ( + - 21 AS INTEGER )
----
NULL
-21

query I rowsort
SELECT + COALESCE ( 54, - 45 * ( - 74 ) + - 50 * + 6 * - + COALESCE ( + 80, + 7 * - 60 ) ) AS col2
----
54

query I rowsort
SELECT + 99 * + - 0
----
0

query I rowsort
SELECT + CASE - + 80 WHEN + 28 THEN - 71 ELSE + + 36 END + + 22
----
58

query I rowsort
SELECT + 63 * - 51 * - 44
----
141372

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8721
SELECT DISTINCT 43 * MIN( DISTINCT 67 ) * - 1 + + + CAST( NULL AS DECIMAL ) * + 19 / - MIN( ALL - 20 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT 43 * MIN ( DISTINCT 67 ) * - 1 + + + CAST ( NULL AS REAL ) * + 19 / - MIN ( ALL - 20 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 14 * 78 + 26 * 7 - - - 66 AS col2, - 81 + + 66
----
1208
-15

query I rowsort
SELECT + + 93 * - 41 * - 18
----
68634

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT DISTINCT 51 * + COUNT( + 64 ) + - + 48
----
3

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT 51 * + COUNT ( + 64 ) + - + 48
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT DISTINCT + + 16 * COUNT( * ) + + CAST( + + 69 AS SIGNED ) col2
----
85

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + + 16 * COUNT ( * ) + + CAST ( + + 69 AS INTEGER ) col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8726
SELECT + + MIN( + - 97 ), - COUNT( * ) * + COUNT( * ) DIV + 41 AS col1
----
-97
0

skipif mysql # not compatible
query II rowsort label-8726
SELECT + + MIN ( + - 97 ), - COUNT ( * ) * + COUNT ( * ) / + 41 AS col1
----
-97
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8727
SELECT ALL + SUM( DISTINCT - - COALESCE ( CAST( NULL AS SIGNED ), ( 80 ) ) ) * + + 59 + + 72 * - 90 AS col1
----
-1760

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL + SUM ( DISTINCT - - COALESCE ( CAST ( NULL AS INTEGER ), ( 80 ) ) ) * + + 59 + + 72 * - 90 AS col1
----
-1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8728
SELECT + + COALESCE ( - 64, CAST( + - COUNT( * ) AS SIGNED ) * + 6, - ( + 97 ) + + + 25 + + 99 * + - CASE CASE + - 10 WHEN - 26 THEN + - 13 WHEN - + 24 THEN - 1 ELSE NULL END WHEN 71 + + 11 THEN - - 7 * + 92 * + - 7 * 87 - 68 WHEN + ( - ( 14 ) ) + - + CAST( NULL AS SIGNED ) THEN NULL WHEN + ( + 84 ) THEN NULL ELSE NULL END DIV COUNT( * ) + + CAST( 99 AS SIGNED ) ) * 59
----
-3776

skipif mysql # not compatible
query I rowsort label-8728
SELECT + + COALESCE ( - 64, CAST ( + - COUNT ( * ) AS INTEGER ) * + 6, - ( + 97 ) + + + 25 + + 99 * + - CASE CASE + - 10 WHEN - 26 THEN + - 13 WHEN - + 24 THEN - 1 ELSE NULL END WHEN 71 + + 11 THEN - - 7 * + 92 * + - 7 * 87 - 68 WHEN + ( - ( 14 ) ) + - + CAST ( NULL AS INTEGER ) THEN NULL WHEN + ( + 84 ) THEN NULL ELSE NULL END / COUNT ( * ) + + CAST ( 99 AS INTEGER ) ) * 59
----
-3776

query II rowsort
SELECT + + 74 + - + 90 AS col0, + 15
----
-16
15

query I rowsort
SELECT + - 6 col0
----
-6

query I rowsort
SELECT + - 58 * + + 21 AS col2
----
-1218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8732
SELECT DISTINCT + - COALESCE ( 53, - 12 ) * 75 DIV 65 + + ( - ( COUNT( * ) ) ) * + 87 AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT + - COALESCE ( 53, - 12 ) * 75 / 65 + + ( - ( COUNT ( * ) ) ) * + 87 AS col1
----
-148

query I rowsort
SELECT COALESCE ( + - 2, 48 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8734
SELECT ALL + 72 + + ( CASE - - 30 WHEN - ( - ( + 26 ) ) * 34 THEN + + COUNT( * ) * + NULLIF ( 69, 26 ) + - + COUNT( * ) + 61 WHEN COALESCE ( + COALESCE ( + 70, - CASE 72 WHEN - COUNT( * ) THEN - 93 * + 28 WHEN 68 THEN + + 19 WHEN - + CASE + 63 WHEN 42 THEN - 72 + - + 52 ELSE + 29 END THEN + 23 + + 12 + - 40 * 56 ELSE NULL END, + CAST( 64 AS SIGNED ), - 28 ), - COALESCE ( + 4, 40 * 28 + 87 ), 90 * + 68 ) THEN CAST( 36 AS SIGNED ) ELSE - COUNT( * ) END ) + 22 * 10 * 51
----
11291

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL + 72 + + ( CASE - - 30 WHEN - ( - ( + 26 ) ) * 34 THEN + + COUNT ( * ) * + NULLIF ( 69, 26 ) + - + COUNT ( * ) + 61 WHEN COALESCE ( + COALESCE ( + 70, - CASE 72 WHEN - COUNT ( * ) THEN - 93 * + 28 WHEN 68 THEN + + 19 WHEN - + CASE + 63 WHEN 42 THEN - 72 + - + 52 ELSE + 29 END THEN + 23 + + 12 + - 40 * 56 ELSE NULL END, + CAST ( 64 AS INTEGER ), - 28 ), - COALESCE ( + 4, 40 * 28 + 87 ), 90 * + 68 ) THEN CAST ( 36 AS INTEGER ) ELSE - COUNT ( * ) END ) + 22 * 10 * 51
----
11291

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT + MIN( DISTINCT + 66 ) * - - COUNT( ALL - 80 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT + MIN ( DISTINCT + 66 ) * - - COUNT ( ALL - 80 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT DISTINCT + 44 + - MIN( ALL 14 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT + 44 + - MIN ( ALL 14 ) AS col2
----
30

query I rowsort
SELECT - 51 * + 63 col2
----
-3213

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT - MAX( - ( - 92 ) ) - + 99
----
-191

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT - MAX ( - ( - 92 ) ) - + 99
----
-191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8739
SELECT + + 31 + - + 73 DIV - COUNT( ALL ( 90 ) ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-8739
SELECT + + 31 + - + 73 / - COUNT ( ALL ( 90 ) ) AS col1
----
104

query I rowsort
SELECT - ( 94 ) col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT + 84 + ( + + 85 ) * + + NULLIF ( - + COUNT( ALL + ( - 76 ) ), - - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-8741
SELECT + 84 + ( + + 85 ) * + + NULLIF ( - + COUNT ( ALL + ( - 76 ) ), - - 57 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT - ( + 96 ) - 55 + 80 + - COALESCE ( 92, + COUNT( * ) + 43, - ( + - 3 ) ) * - COUNT( * ) * COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8742
SELECT - ( + 96 ) - 55 + 80 + - COALESCE ( 92, + COUNT ( * ) + 43, - ( + - 3 ) ) * - COUNT ( * ) * COUNT ( * ) AS col2
----
21

query I rowsort
SELECT - 48 * + 72
----
-3456

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT - 60 + 37 DIV - 63 * - ( + - 7 )
----
-60

skipif mysql # not compatible
query I rowsort label-8744
SELECT - 60 + 37 / - 63 * - ( + - 7 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8745
SELECT - NULLIF ( - CAST( - + SUM( ALL - - 95 ) AS SIGNED ), CAST( NULL AS SIGNED ) ) + - ( 33 ) * 97 * + 71
----
-227366

skipif mysql # not compatible
query I rowsort label-8745
SELECT - NULLIF ( - CAST ( - + SUM ( ALL - - 95 ) AS INTEGER ), CAST ( NULL AS INTEGER ) ) + - ( 33 ) * 97 * + 71
----
-227366

query I rowsort
SELECT ALL ( - - 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL ( - + NULLIF ( + MAX( ALL 4 ), - 72 ) ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL ( - + NULLIF ( + MAX ( ALL 4 ), - 72 ) ) col0
----
-4

query II rowsort
SELECT 15 AS col1, + 93
----
15
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8749
SELECT + ( NULLIF ( + COUNT( * ), - 37 * 13 + + 37 + + 44 ) ) DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-8749
SELECT + ( NULLIF ( + COUNT ( * ), - 37 * 13 + + 37 + + 44 ) ) / 94
----
0

query I rowsort
SELECT ALL + 85 * 48 * - + 97 AS col2
----
-395760

query II rowsort
SELECT + 21 col2, 30 * - - 41
----
21
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT - NULLIF ( + 10, + + 29 ) * 40 + COUNT( 74 ) + COUNT( * ) col2
----
-398

skipif mysql # not compatible
query I rowsort label-8752
SELECT - NULLIF ( + 10, + + 29 ) * 40 + COUNT ( 74 ) + COUNT ( * ) col2
----
-398

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8753
SELECT + 69 / - 54 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT + 69 / - 54 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8754
SELECT ALL - 20 DIV 6 + + 27 AS col1, 90 * + 87 + 63 * - + 41 AS col1
----
24
5247

skipif mysql # not compatible
query II rowsort label-8754
SELECT ALL - 20 / 6 + + 27 AS col1, 90 * + 87 + 63 * - + 41 AS col1
----
24
5247

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT DISTINCT ( 36 ) DIV - 98 + + + 8
----
8

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT ( 36 ) / - 98 + + + 8
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8756
SELECT ALL - COUNT( * ) DIV - 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL - COUNT ( * ) / - 16 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8757
SELECT + - 22 DIV + 75 - - CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8757
SELECT + - 22 / + 75 - - CAST ( COUNT ( * ) AS INTEGER )
----
1

query II rowsort
SELECT + 65 AS col0, 51 AS col1
----
65
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT CASE + 38 WHEN - 82 * + COUNT( * ) + + 73 THEN NULL ELSE 56 END
----
56

skipif mysql # not compatible
query I rowsort label-8759
SELECT CASE + 38 WHEN - 82 * + COUNT ( * ) + + 73 THEN NULL ELSE 56 END
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8760
SELECT - + 3 * - - NULLIF ( + 1, + CAST( 91 AS DECIMAL ) * - 19 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8760
SELECT - + 3 * - - NULLIF ( + 1, + CAST ( 91 AS REAL ) * - 19 ) AS col2
----
-3

query I rowsort
SELECT ( + 87 ) AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8762
SELECT - + COUNT( * ) * - 8 + + COUNT( DISTINCT - - CAST( + 35 AS SIGNED ) ) * + 4 AS col0, - COUNT( * ) * - + 30 AS col2
----
12
30

skipif mysql # not compatible
query II rowsort label-8762
SELECT - + COUNT ( * ) * - 8 + + COUNT ( DISTINCT - - CAST ( + 35 AS INTEGER ) ) * + 4 AS col0, - COUNT ( * ) * - + 30 AS col2
----
12
30

query I rowsort
SELECT + 64 * - COALESCE ( + 6, - - 87 ) + - 57 AS col1
----
-441

query I rowsort
SELECT DISTINCT + 23 * + 66 * + 57 + - 45
----
86481

query II rowsort
SELECT ALL + - 38, + 14 + - 22 AS col2
----
-38
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8766
SELECT ALL - - ( 99 ) * + 82 * + + 65 * ( + CASE + + 33 WHEN - + 93 / - + AVG ( - + 56 ) + 40 THEN + MIN( - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) ) * - + 97 * 6 + + 90 + - 68 * + COALESCE ( + MIN( ALL - + 2 ), 30 * + 50 ) ELSE NULL END ) + + - 85 + 55 * - 41 * + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL - - ( 99 ) * + 82 * + + 65 * ( + CASE + + 33 WHEN - + 93 / - + AVG ( - + 56 ) + 40 THEN + MIN ( - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) ) * - + 97 * 6 + + 90 + - 68 * + COALESCE ( + MIN ( ALL - + 2 ), 30 * + 50 ) ELSE NULL END ) + + - 85 + 55 * - 41 * + + 92
----
NULL

query I rowsort
SELECT ALL - 26 * 49 AS col0
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT + - 21 + ( COUNT( DISTINCT - 65 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8768
SELECT + - 21 + ( COUNT ( DISTINCT - 65 ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT + + 88 * - COUNT( 2 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8769
SELECT + + 88 * - COUNT ( 2 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT - + NULLIF ( COUNT( * ), COUNT( * ) + - COUNT( * ) ) * 99 * + 97 + - + COUNT( * )
----
-9604

skipif mysql # not compatible
query I rowsort label-8770
SELECT - + NULLIF ( COUNT ( * ), COUNT ( * ) + - COUNT ( * ) ) * 99 * + 97 + - + COUNT ( * )
----
-9604

query II rowsort
SELECT 66 * - 48 AS col2, 95
----
-3168
95

query I rowsort
SELECT 72 + + 90
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT ALL + 62 * + MIN( - 73 ) * ( + ( - 79 ) )
----
357554

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL + 62 * + MIN ( - 73 ) * ( + ( - 79 ) )
----
357554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8774
SELECT ALL 36 DIV + + CASE 55 WHEN 33 + 36 THEN - COUNT( * ) ELSE COUNT( * ) END AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL 36 / + + CASE 55 WHEN 33 + 36 THEN - COUNT ( * ) ELSE COUNT ( * ) END AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT ALL + 98 * - CAST( NULL AS SIGNED ) / + - 83 * - 81 / 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + 98 * - CAST ( NULL AS INTEGER ) / + - 83 * - 81 / 99 AS col0
----
NULL

query I rowsort
SELECT ALL + 89 * - 66 AS col2
----
-5874

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT 52 - + MIN( - - 85 )
----
-33

skipif mysql # not compatible
query I rowsort label-8777
SELECT 52 - + MIN ( - - 85 )
----
-33

query I rowsort
SELECT 91 * - 99
----
-9009

query I rowsort
SELECT ALL + 99 + + - 87
----
12

query I rowsort
SELECT ALL 28 + 88 * - 87 AS col0
----
-7628

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL - 0 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL - 0 + + COUNT ( * )
----
1

query I rowsort
SELECT ( 1 ) * 90 * + 75
----
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL 43 * - ( COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL 43 * - ( COUNT ( * ) )
----
-43

query I rowsort
SELECT ALL + 38 + - 15
----
23

query I rowsort
SELECT 0 + 23
----
23

query I rowsort
SELECT - 39 * 17
----
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT + - ( - - COUNT( + - 51 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8787
SELECT + - ( - - COUNT ( + - 51 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT ALL - 77 - - - 44 * CAST( 77 AS SIGNED ) + - 9
----
-3474

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL - 77 - - - 44 * CAST ( 77 AS INTEGER ) + - 9
----
-3474

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + 6 * - - CASE COUNT( * ) WHEN + 4 / + 7 * 8 THEN + 78 END - + 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT + 6 * - - CASE COUNT ( * ) WHEN + 4 / + 7 * 8 THEN + 78 END - + 42 col1
----
NULL

query I rowsort
SELECT ALL + 97 - 54
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8791
SELECT ALL + 86 * - 19 * + ( 78 ), CASE ( + + COUNT( * ) ) WHEN - MIN( - 99 ) * 2 THEN - 62 + - + 3 WHEN - SUM( - - 41 ) THEN NULL ELSE 61 DIV + + COUNT( * ) - - 14 END AS col2
----
-127452
75

skipif mysql # not compatible
query II rowsort label-8791
SELECT ALL + 86 * - 19 * + ( 78 ), CASE ( + + COUNT ( * ) ) WHEN - MIN ( - 99 ) * 2 THEN - 62 + - + 3 WHEN - SUM ( - - 41 ) THEN NULL ELSE 61 / + + COUNT ( * ) - - 14 END AS col2
----
-127452
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT COUNT( * ) + + 58
----
59

skipif mysql # not compatible
query I rowsort label-8792
SELECT COUNT ( * ) + + 58
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8793
SELECT ALL 72 DIV 16 * + SUM( ALL + 63 ) col0, 62
----
252
62

skipif mysql # not compatible
query II rowsort label-8793
SELECT ALL 72 / 16 * + SUM ( ALL + 63 ) col0, 62
----
252
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT 89 * 47 * + COUNT( * ) - - CASE - 34 WHEN + MAX( 65 ) * 54 THEN - + 14 / + 0 WHEN - 50 - + 77 THEN NULL ELSE NULL END - + 68 / 33 * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8794
SELECT 89 * 47 * + COUNT ( * ) - - CASE - 34 WHEN + MAX ( 65 ) * 54 THEN - + 14 / + 0 WHEN - 50 - + 77 THEN NULL ELSE NULL END - + 68 / 33 * - 60
----
NULL

query I rowsort
SELECT - 55 * ( - 91 ) AS col1
----
5005

query I rowsort
SELECT + + 79 AS col1
----
79

query I rowsort
SELECT ALL 31 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT DISTINCT 66 * - ( + COUNT( * ) ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT 66 * - ( + COUNT ( * ) ) col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT MAX( ALL - 33 ) - - 89 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8799
SELECT MAX ( ALL - 33 ) - - 89 AS col1
----
56

query I rowsort
SELECT ALL 95 * NULLIF ( 18, NULLIF ( 22, 54 / 68 + + 96 ) * 49 * + 79 - 30 ) AS col0
----
1710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8801
SELECT CAST( + + 66 AS SIGNED ) * - 9
----
-594

skipif mysql # not compatible
query I rowsort label-8801
SELECT CAST ( + + 66 AS INTEGER ) * - 9
----
-594

query I rowsort
SELECT DISTINCT 30 * + 48
----
1440

query I rowsort
SELECT ALL 89 + 6 + - ( - - 39 ) * - 50 + + 19 AS col0
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT COUNT( ALL - 68 ) + - - 25
----
26

skipif mysql # not compatible
query I rowsort label-8804
SELECT COUNT ( ALL - 68 ) + - - 25
----
26

query I rowsort
SELECT 62 + - 26
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-8806
SELECT 97 - + 2 DIV + 77 AS col1, 53 AS col2
----
97
53

skipif mysql # not compatible
query II rowsort label-8806
SELECT 97 - + 2 / + 77 AS col1, 53 AS col2
----
97
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT 7 - + + SUM( DISTINCT + 53 )
----
-46

skipif mysql # not compatible
query I rowsort label-8807
SELECT 7 - + + SUM ( DISTINCT + 53 )
----
-46

query II rowsort
SELECT 75 col1, + 80 * + - 59
----
75
-4720

query I rowsort
SELECT 81 + - 90 + - 87 - 34 - - + 26 + - + 2 * - + 86 AS col1
----
68

query I rowsort
SELECT DISTINCT 88 + 22 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT - COUNT( ALL - - 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-8811
SELECT - COUNT ( ALL - - 99 )
----
-1

query I rowsort
SELECT ( - NULLIF ( - 69, + 2 * + 60 * + 53 + - - 25 ) ) + 11
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8813
SELECT ALL COUNT( * ) AS col0, 79 * 52 * COUNT( * ) * - NULLIF ( + - 33, + 7 )
----
1
135564

skipif mysql # not compatible
query II rowsort label-8813
SELECT ALL COUNT ( * ) AS col0, 79 * 52 * COUNT ( * ) * - NULLIF ( + - 33, + 7 )
----
1
135564

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT - COUNT( ALL + 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-8814
SELECT - COUNT ( ALL + 73 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT 16 + - MIN( - 10 ) + 27
----
53

skipif mysql # not compatible
query I rowsort label-8815
SELECT 16 + - MIN ( - 10 ) + 27
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL 71 + COUNT( * ) + + 94 * - + 90
----
-8388

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL 71 + COUNT ( * ) + + 94 * - + 90
----
-8388

query I rowsort
SELECT 22 * - 90 col0
----
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT CAST( - CAST( 34 AS SIGNED ) AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-8818
SELECT CAST ( - CAST ( 34 AS INTEGER ) AS INTEGER )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT 73 * 17 + + COALESCE ( - - 87, - 8, + 16 * CASE WHEN NOT NULL NOT BETWEEN NULL AND NULL THEN ( + 13 ) WHEN CASE + 22 WHEN - ( + ( + 96 ) ) + 16 + 32 + 83 THEN NULL WHEN - - COUNT( DISTINCT - ( - - 57 ) ) + + - 3 * - 72 THEN NULL ELSE 39 END - + - ( + 85 ) - - + 6 * - 28 / 61 * + 46 + + 69 NOT BETWEEN ( + 68 ) AND COUNT( * ) / 64 * 39 THEN NULL END + + COUNT( * ) ) - ( + 15 ) col2
----
1313

skipif mysql # not compatible
query I rowsort label-8819
SELECT 73 * 17 + + COALESCE ( - - 87, - 8, + 16 * CASE WHEN NOT NULL NOT BETWEEN NULL AND NULL THEN ( + 13 ) WHEN CASE + 22 WHEN - ( + ( + 96 ) ) + 16 + 32 + 83 THEN NULL WHEN - - COUNT ( DISTINCT - ( - - 57 ) ) + + - 3 * - 72 THEN NULL ELSE 39 END - + - ( + 85 ) - - + 6 * - 28 / 61 * + 46 + + 69 NOT BETWEEN ( + 68 ) AND COUNT ( * ) / 64 * 39 THEN NULL END + + COUNT ( * ) ) - ( + 15 ) col2
----
1313

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT + + MIN( DISTINCT + + 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8820
SELECT + + MIN ( DISTINCT + + 43 ) AS col0
----
43

query I rowsort
SELECT ALL - + CASE NULLIF ( + + 6, + - 38 ) WHEN + + 21 THEN 96 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT DISTINCT + - MIN( DISTINCT - 40 ) * + + 22 - + 46
----
834

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT + - MIN ( DISTINCT - 40 ) * + + 22 - + 46
----
834

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL - MAX( - 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL - MAX ( - 99 ) AS col0
----
99

query I rowsort
SELECT + 4 * 3 col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT DISTINCT - + CAST( - + 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT - + CAST ( - + 43 AS INTEGER )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT ALL - + 15 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL - + 15 / 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8827
SELECT - COALESCE ( - + COUNT( * ), 15 + - + 49 - 8 - + 89 * - - 91 * + - 2 - + - SUM( 46 ) ) * MIN( + 33 ) / CAST( NULL AS SIGNED ), 43 AS col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8827
SELECT - COALESCE ( - + COUNT ( * ), 15 + - + 49 - 8 - + 89 * - - 91 * + - 2 - + - SUM ( 46 ) ) * MIN ( + 33 ) / CAST ( NULL AS INTEGER ), 43 AS col0
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT - - COUNT( * ) + - + 87 + + 99
----
13

skipif mysql # not compatible
query I rowsort label-8828
SELECT - - COUNT ( * ) + - + 87 + + 99
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL + MAX( ALL + 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL + MAX ( ALL + 2 ) AS col1
----
2

query I rowsort
SELECT + + CASE WHEN NOT NULL IS NULL THEN NULL ELSE ( - NULLIF ( - 4, ( - + 37 ) * + 63 / - + 50 ) ) END
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT - - 94 DIV + 7 - 95
----
-82

skipif mysql # not compatible
query I rowsort label-8831
SELECT - - 94 / + 7 - 95
----
-82

query II rowsort
SELECT ALL + - 46 col1, 25
----
-46
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL 25 + + + SUM( DISTINCT - 19 )
----
6

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL 25 + + + SUM ( DISTINCT - 19 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8834
SELECT DISTINCT 18 DIV - COALESCE ( - 69, - - 92 * - - 60 * + - COUNT( DISTINCT + NULLIF ( - 50, - + 15 * + - 66 * - + 26 ) ) DIV ( MIN( DISTINCT + 40 ) ) DIV + NULLIF ( 14, - COUNT( * ) * + COUNT( 76 ) + + - 10 ) - - SUM( + 60 ) + + 7, + ( - 30 ) ) * - + 39 col1, + 57 col0
----
0
57

skipif mysql # not compatible
query II rowsort label-8834
SELECT DISTINCT 18 / - COALESCE ( - 69, - - 92 * - - 60 * + - COUNT ( DISTINCT + NULLIF ( - 50, - + 15 * + - 66 * - + 26 ) ) / ( MIN ( DISTINCT + 40 ) ) / + NULLIF ( 14, - COUNT ( * ) * + COUNT ( 76 ) + + - 10 ) - - SUM ( + 60 ) + + 7, + ( - 30 ) ) * - + 39 col1, + 57 col0
----
0
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT DISTINCT - 44 + - 25 + COUNT( * ) * + 45 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT - 44 + - 25 + COUNT ( * ) * + 45 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8836
SELECT 61, COUNT( * ) * + ( - - 1 ) AS col1
----
61
1

skipif mysql # not compatible
query II rowsort label-8836
SELECT 61, COUNT ( * ) * + ( - - 1 ) AS col1
----
61
1

query II rowsort
SELECT 31 AS col2, - 27 AS col0
----
31
-27

query I rowsort
SELECT - 47 * - 2
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-8839
SELECT + 53 + + 11 DIV - 77 + + - 24, - 57 AS col1
----
29
-57

skipif mysql # not compatible
query II rowsort label-8839
SELECT + 53 + + 11 / - 77 + + - 24, - 57 AS col1
----
29
-57

query II rowsort
SELECT 47 AS col2, 54
----
47
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL COUNT( * ) + - 14 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL COUNT ( * ) + - 14 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT - COUNT( - 18 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8842
SELECT - COUNT ( - 18 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8843
SELECT ALL 11 + 51 + - COUNT( * ) + + COUNT( * ) DIV - + 94 + 23 * COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL 11 + 51 + - COUNT ( * ) + + COUNT ( * ) / - + 94 + 23 * COUNT ( * ) AS col0
----
84

query I rowsort
SELECT + 17 * 94
----
1598

query II rowsort
SELECT DISTINCT 20 AS col1, 90 * - ( + ( + - 90 ) ) AS col0
----
20
8100

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT DISTINCT 40 * + + SUM( DISTINCT - 99 )
----
-3960

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT 40 * + + SUM ( DISTINCT - 99 )
----
-3960

query II rowsort
SELECT 41, - 3 col1
----
41
-3

query I rowsort
SELECT ALL 75 - - + 84 + - 7 AS col2
----
152

query I rowsort
SELECT - 81 - + + ( + 25 )
----
-106

query I rowsort
SELECT + - 91 - + - 96
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT ALL + COALESCE ( + 99, CAST( NULL AS SIGNED ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL + COALESCE ( + 99, CAST ( NULL AS INTEGER ) ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8852
SELECT 89 AS col0, + 38 * + 69 - 76 * - 76 * - + CASE 46 WHEN - COUNT( * ) * COUNT( * ) * + 63 + 13 + - 50 + - - 15 + - + CAST( + 41 AS SIGNED ) THEN 72 + + + 62 + - 17 + 53 * 35 END AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-8852
SELECT 89 AS col0, + 38 * + 69 - 76 * - 76 * - + CASE 46 WHEN - COUNT ( * ) * COUNT ( * ) * + 63 + 13 + - 50 + - - 15 + - + CAST ( + 41 AS INTEGER ) THEN 72 + + + 62 + - 17 + 53 * 35 END AS col1
----
89
NULL

query I rowsort
SELECT ALL ( - 73 ) * + 4 col0
----
-292

query I rowsort
SELECT + 88 - - + 30 col0
----
118

query I rowsort
SELECT ALL + 39 * + 18 AS col1
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT + - COUNT( * ) * - 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8856
SELECT + - COUNT ( * ) * - 47 AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT DISTINCT + NULLIF ( - 66, 84 * + CASE + - COALESCE ( + 58, + 22, + 41 ) WHEN + - 18 + 58 THEN + - 52 + - 40 ELSE NULL END ) DIV 37 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT + NULLIF ( - 66, 84 * + CASE + - COALESCE ( + 58, + 22, + 41 ) WHEN + - 18 + 58 THEN + - 52 + - 40 ELSE NULL END ) / 37 AS col1
----
-1

query I rowsort
SELECT ALL - - 54 * + 62 AS col2
----
3348

query I rowsort
SELECT ( 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL - SUM( ALL + 64 ) * + - 66 AS col0
----
4224

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL - SUM ( ALL + 64 ) * + - 66 AS col0
----
4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8861
SELECT + - CASE + 53 WHEN + - 99 THEN NULL WHEN COUNT( + CAST( - 32 AS SIGNED ) ) - - 67 - 58 THEN + MAX( + + 33 ) + - 43 * - 24 * CAST( NULL AS SIGNED ) WHEN + + MIN( + 93 ) THEN NULL ELSE + 35 END + - 11
----
-46

skipif mysql # not compatible
query I rowsort label-8861
SELECT + - CASE + 53 WHEN + - 99 THEN NULL WHEN COUNT ( + CAST ( - 32 AS INTEGER ) ) - - 67 - 58 THEN + MAX ( + + 33 ) + - 43 * - 24 * CAST ( NULL AS INTEGER ) WHEN + + MIN ( + 93 ) THEN NULL ELSE + 35 END + - 11
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-8862
SELECT + - COUNT( * ), 80 - + MIN( ALL + 30 ) * - - COUNT( * ) AS col2
----
-1
50

skipif mysql # not compatible
query II rowsort label-8862
SELECT + - COUNT ( * ), 80 - + MIN ( ALL + 30 ) * - - COUNT ( * ) AS col2
----
-1
50

query I rowsort
SELECT - 79 * ( - 86 ) + 0
----
6794

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT - SUM( - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-8864
SELECT - SUM ( - 48 )
----
48

query I rowsort
SELECT ALL - 3 * - 18 col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT 92 / - CASE 80 WHEN - 30 THEN NULL WHEN - 20 THEN - + 51 ELSE NULL END - 21 / SUM( ALL - + 7 ) + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT 92 / - CASE 80 WHEN - 30 THEN NULL WHEN - 20 THEN - + 51 ELSE NULL END - 21 / SUM ( ALL - + 7 ) + 67 AS col2
----
NULL

query I rowsort
SELECT - - 34 - + - 60 * - 57 AS col2
----
-3386

query I rowsort
SELECT ALL - 23 * + + 44 * - - 9 * + - NULLIF ( 16, + 22 * 50 / + ( 39 ) ) * + - 36 * - + 91 - + 74 + - 74
----
477404780

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8869
SELECT + 14 AS col2, COUNT( * ) DIV 20 AS col2
----
14
0

skipif mysql # not compatible
query II rowsort label-8869
SELECT + 14 AS col2, COUNT ( * ) / 20 AS col2
----
14
0

query I rowsort
SELECT ALL 74 * 37 + + + 97
----
2835

query I rowsort
SELECT ALL + ( + - 91 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT COALESCE ( - 98, - 56 DIV - + 90 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-8872
SELECT COALESCE ( - 98, - 56 / - + 90 ) AS col0
----
-98

query II rowsort
SELECT ALL 75 * + 5 + - 97 AS col2, - 49
----
278
-49

query I rowsort
SELECT + NULLIF ( - 51, 85 ) * - + 82 + - 39 + 28
----
4171

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT + COUNT( ALL + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-8875
SELECT + COUNT ( ALL + 24 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8876
SELECT NULLIF ( + 21, + 22 ) AS col0, + 4 / - - COUNT( * ) * + CAST( NULL AS SIGNED )
----
21
NULL

skipif mysql # not compatible
query II rowsort label-8876
SELECT NULLIF ( + 21, + 22 ) AS col0, + 4 / - - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
21
NULL

query I rowsort
SELECT ALL - 40 * + + 63 AS col1
----
-2520

query I rowsort
SELECT COALESCE ( - + 44, + 85 ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8879
SELECT - 53 DIV - + 23 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8879
SELECT - 53 / - + 23 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8880
SELECT - 12 + - 55 + - 42 + CAST( - + 17 AS SIGNED ) + + 75 * + 94 * MIN( ALL - 3 )
----
-21276

skipif mysql # not compatible
query I rowsort label-8880
SELECT - 12 + - 55 + - 42 + CAST ( - + 17 AS INTEGER ) + + 75 * + 94 * MIN ( ALL - 3 )
----
-21276

query I rowsort
SELECT - 41 - - ( + 16 )
----
-25

query I rowsort
SELECT DISTINCT NULLIF ( - - 68, 5 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT ALL - SUM( DISTINCT + 40 ) - 85 AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL - SUM ( DISTINCT + 40 ) - 85 AS col1
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8884
SELECT + 87 DIV + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-8884
SELECT + 87 / + COUNT ( * )
----
87

query I rowsort
SELECT - 58 + - - 21 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT + 63 - - - COUNT( - 16 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8886
SELECT + 63 - - - COUNT ( - 16 ) AS col2
----
62

query I rowsort
SELECT - 34 + + 81 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT + COUNT( * ) - 84 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-8888
SELECT + COUNT ( * ) - 84 AS col0
----
-83

query I rowsort
SELECT ALL 89 * - 77 + - 56
----
-6909

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8890
SELECT - 59 + + 62 AS col0, 15 * 33 DIV + COUNT( * )
----
3
495

skipif mysql # not compatible
query II rowsort label-8890
SELECT - 59 + + 62 AS col0, 15 * 33 / + COUNT ( * )
----
3
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8891
SELECT 21 + - 71 + - COUNT( * ) DIV - + 33
----
-50

skipif mysql # not compatible
query I rowsort label-8891
SELECT 21 + - 71 + - COUNT ( * ) / - + 33
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8892
SELECT + 25 DIV - COUNT( + 7 ) + COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8892
SELECT + 25 / - COUNT ( + 7 ) + COUNT ( * ) AS col2
----
-24

query I rowsort
SELECT + 31 * 80 + + + 86
----
2566

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT 31 DIV - 20 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8894
SELECT 31 / - 20 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL COALESCE ( - 15, - COUNT( * ) ) + + 57 * - MIN( + - 41 ) * - - 5 * - - COUNT( * )
----
11670

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL COALESCE ( - 15, - COUNT ( * ) ) + + 57 * - MIN ( + - 41 ) * - - 5 * - - COUNT ( * )
----
11670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8896
SELECT DISTINCT CAST( CAST( - COALESCE ( - 17, 0 ) AS DECIMAL ) AS SIGNED ) + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT CAST ( CAST ( - COALESCE ( - 17, 0 ) AS REAL ) AS INTEGER ) + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT DISTINCT COUNT( 34 ) + 17
----
18

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT COUNT ( 34 ) + 17
----
18

query I rowsort
SELECT ALL 66 * - 88 AS col0
----
-5808

query I rowsort
SELECT DISTINCT 1 * + + 48
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8900
SELECT ALL COUNT( DISTINCT + 6 ) + - 60 DIV 16 DIV + - 19
----
1

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL COUNT ( DISTINCT + 6 ) + - 60 / 16 / + - 19
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8901
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 29 AS col1, 17 + + 19 AS col0
----
-29
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8903
SELECT - ( - CAST( NULL AS SIGNED ) ) * 49 * - - 94 - + + COALESCE ( + - COUNT( * ), - + ( - - CAST( NULL AS SIGNED ) ) ) - AVG ( ( + 68 ) ) AS col2, - 36 + - + COUNT( * ) DIV + - 18 + - 81
----
NULL
-117

skipif mysql # not compatible
query II rowsort label-8903
SELECT - ( - CAST ( NULL AS INTEGER ) ) * 49 * - - 94 - + + COALESCE ( + - COUNT ( * ), - + ( - - CAST ( NULL AS INTEGER ) ) ) - AVG ( ( + 68 ) ) AS col2, - 36 + - + COUNT ( * ) / + - 18 + - 81
----
NULL
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL - COUNT( - - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL - COUNT ( - - 57 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8905
SELECT 6 + - - 55 DIV 26 + 42 col0, 27
----
50
27

skipif mysql # not compatible
query II rowsort label-8905
SELECT 6 + - - 55 / 26 + 42 col0, 27
----
50
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT CASE 82 WHEN 89 + 23 THEN + + COALESCE ( + + 7, - ( + 67 ), + 73 * + 10 ) / 58 * - CAST( NULL AS SIGNED ) - - 8 END * 91 / - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT CASE 82 WHEN 89 + 23 THEN + + COALESCE ( + + 7, - ( + 67 ), + 73 * + 10 ) / 58 * - CAST ( NULL AS INTEGER ) - - 8 END * 91 / - 42 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8907
SELECT 80, - ( - 45 ) + + 10 DIV 86 * + 63 + + 69 AS col2
----
80
114

skipif mysql # not compatible
query II rowsort label-8907
SELECT 80, - ( - 45 ) + + 10 / 86 * + 63 + + 69 AS col2
----
80
114

query II rowsort
SELECT 85, - 74 AS col1
----
85
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8909
SELECT 0 * 79 + + COUNT( * ) + + + 94 DIV - - 11 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8909
SELECT 0 * 79 + + COUNT ( * ) + + + 94 / - - 11 AS col1
----
9

query I rowsort
SELECT 26 * + COALESCE ( - - 42, - + 33, + COALESCE ( + 75, - 40 - - + 9, 40 + - 84 ) ) AS col2
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT ALL + COUNT( * ) * + 29
----
29

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL + COUNT ( * ) * + 29
----
29

query I rowsort
SELECT 32 + + 89
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8913
SELECT DISTINCT + ( COUNT( * ) ) * - COUNT( - 6 ) DIV + 96 * 60, - 76 AS col2
----
0
-76

skipif mysql # not compatible
query II rowsort label-8913
SELECT DISTINCT + ( COUNT ( * ) ) * - COUNT ( - 6 ) / + 96 * 60, - 76 AS col2
----
0
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) ) - - CASE 68 WHEN + + 84 THEN NULL WHEN + 21 THEN - 16 + + - 61 - - 65 * + + 10 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) ) - - CASE 68 WHEN + + 84 THEN NULL WHEN + 21 THEN - 16 + + - 61 - - 65 * + + 10 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL - CASE + - COUNT( * ) WHEN AVG ( + - 16 ) THEN + SUM( + 17 ) WHEN 49 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL - CASE + - COUNT ( * ) WHEN AVG ( + - 16 ) THEN + SUM ( + 17 ) WHEN 49 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT ALL + - 0 DIV - + 25 + + 62
----
62

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL + - 0 / - + 25 + + 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ( - 6 ) * COUNT( + - 11 ) * - 28
----
168

skipif mysql # not compatible
query I rowsort label-8917
SELECT ( - 6 ) * COUNT ( + - 11 ) * - 28
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8918
SELECT 20 DIV - - 46 * + 20 + + - 99 DIV - MIN( 43 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8918
SELECT 20 / - - 46 * + 20 + + - 99 / - MIN ( 43 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT - - 36 AS col0, ( + 50 ) + COUNT( * ) - + + 52 * - - ( - 92 )
----
36
4835

skipif mysql # not compatible
query II rowsort label-8919
SELECT - - 36 AS col0, ( + 50 ) + COUNT ( * ) - + + 52 * - - ( - 92 )
----
36
4835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8920
SELECT - 23 - - 6 + COUNT( 55 ) * - - CAST( NULL AS SIGNED ) + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT - 23 - - 6 + COUNT ( 55 ) * - - CAST ( NULL AS INTEGER ) + + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8921
SELECT + ( + 95 ) DIV 22
----
4

skipif mysql # not compatible
query I rowsort label-8921
SELECT + ( + 95 ) / 22
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8922
SELECT ALL - - COALESCE ( - 33, 63 - + 15 + + 15 + CAST( NULL AS SIGNED ) + 67 * - + 65 ) + + 64 * COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL - - COALESCE ( - 33, 63 - + 15 + + 15 + CAST ( NULL AS INTEGER ) + 67 * - + 65 ) + + 64 * COUNT ( * ) AS col0
----
31

query I rowsort
SELECT 69 - - 43 AS col0
----
112

query II rowsort
SELECT - 76, 68 * - 93 + - + 82 * + - 32 AS col1
----
-76
-3700

query I rowsort
SELECT ALL + + 78 + - 31 AS col2
----
47

query I rowsort
SELECT ALL - CASE + 39 WHEN + - ( + 69 ) THEN 90 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT DISTINCT - 62 + - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT - 62 + - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8928
SELECT DISTINCT + - ( - 58 ) * - NULLIF ( 81, - - NULLIF ( + + 20, - ( 21 ) + + 81 ) ) - + 9 * - 91 + + 72 + COUNT( * ) - + 9 DIV - - 82
----
-3806

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT + - ( - 58 ) * - NULLIF ( 81, - - NULLIF ( + + 20, - ( 21 ) + + 81 ) ) - + 9 * - 91 + + 72 + COUNT ( * ) - + 9 / - - 82
----
-3806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8929
SELECT 18 + COUNT( * ) * ( - 37 ), + CAST( NULL AS SIGNED ) col1
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-8929
SELECT 18 + COUNT ( * ) * ( - 37 ), + CAST ( NULL AS INTEGER ) col1
----
-19
NULL

query I rowsort
SELECT DISTINCT 25 + 53 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT 49 * COUNT( ALL + - 10 ) * - 37 + + COUNT( * ) * + SUM( ALL + 44 ) AS col2
----
-1769

skipif mysql # not compatible
query I rowsort label-8931
SELECT 49 * COUNT ( ALL + - 10 ) * - 37 + + COUNT ( * ) * + SUM ( ALL + 44 ) AS col2
----
-1769

query I rowsort
SELECT DISTINCT 60 - + 16 + 92 * + + 91 AS col1
----
8416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT DISTINCT CASE - AVG ( + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) WHEN 96 THEN + 13 * - + 57 + + MIN( DISTINCT - 25 ) * 19 END / + + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT CASE - AVG ( + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) WHEN 96 THEN + 13 * - + 57 + + MIN ( DISTINCT - 25 ) * 19 END / + + 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8934
SELECT DISTINCT COUNT( * ) * + 85 AS col2, 30 AS col2
----
85
30

skipif mysql # not compatible
query II rowsort label-8934
SELECT DISTINCT COUNT ( * ) * + 85 AS col2, 30 AS col2
----
85
30

query I rowsort
SELECT ALL 59 - + 24 * - 56
----
1403

query I rowsort
SELECT DISTINCT 17 * + + 39
----
663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8937
SELECT + 47 * - ( + 50 ) + + SUM( DISTINCT - 54 ) + 29 DIV CAST( + 78 AS SIGNED ) + 28 + - 18
----
-2394

skipif mysql # not compatible
query I rowsort label-8937
SELECT + 47 * - ( + 50 ) + + SUM ( DISTINCT - 54 ) + 29 / CAST ( + 78 AS INTEGER ) + 28 + - 18
----
-2394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8938
SELECT 90 DIV + COUNT( ALL + - 94 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8938
SELECT 90 / + COUNT ( ALL + - 94 ) AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT 26 DIV ( 52 ) * - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8939
SELECT 26 / ( 52 ) * - 97 AS col1
----
0

query I rowsort
SELECT ALL 52 * - 27
----
-1404

query I rowsort
SELECT 96 + + + 81 + 92
----
269

query I rowsort
SELECT + NULLIF ( + - 96, - + 74 ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8943
SELECT 22 - 4, COUNT( * ) AS col0
----
18
1

skipif mysql # not compatible
query II rowsort label-8943
SELECT 22 - 4, COUNT ( * ) AS col0
----
18
1

query I rowsort
SELECT ( - 72 ) * - 85 AS col0
----
6120

onlyif mysql # aggregate syntax: 
query II rowsort label-8945
SELECT ALL COUNT( DISTINCT + 5 ), ( - 55 ) col1
----
1
-55

skipif mysql # not compatible
query II rowsort label-8945
SELECT ALL COUNT ( DISTINCT + 5 ), ( - 55 ) col1
----
1
-55

query I rowsort
SELECT - 8 * - + 80 * - 86 * - 54 + 32 col1
----
2972192

query I rowsort
SELECT - 54 + - + 40
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8948
SELECT + 94 + + CAST( + - 51 AS SIGNED ) col2
----
43

skipif mysql # not compatible
query I rowsort label-8948
SELECT + 94 + + CAST ( + - 51 AS INTEGER ) col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT + COUNT( ALL 73 ) * + ( COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8949
SELECT + COUNT ( ALL 73 ) * + ( COUNT ( * ) ) col1
----
1

query II rowsort
SELECT - 68 * + - 95 AS col0, CASE 70 WHEN 12 THEN + 84 END * 18
----
6460
NULL

query I rowsort
SELECT + - 2 + + - 38 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT - + CAST( + 61 AS SIGNED ) - 20 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-8952
SELECT - + CAST ( + 61 AS INTEGER ) - 20 AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8953
SELECT - + CAST( - MIN( DISTINCT + - 0 ) AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT - + CAST ( - MIN ( DISTINCT + - 0 ) AS INTEGER ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT + + COUNT( * ) + - 28 * + 2
----
-55

skipif mysql # not compatible
query I rowsort label-8954
SELECT + + COUNT ( * ) + - 28 * + 2
----
-55

query I rowsort
SELECT DISTINCT + 86 col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL + 47 + COUNT( * ) * + + 67
----
114

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL + 47 + COUNT ( * ) * + + 67
----
114

query I rowsort
SELECT - CASE - ( 85 ) WHEN + ( + ( + 22 ) ) * + 18 THEN NULL WHEN 65 - - + 37 THEN - 93 ELSE NULL END + 91
----
NULL

query I rowsort
SELECT ALL - 66 + - 0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8959
SELECT ALL - 55 * - - CAST( NULL AS SIGNED ), 52 col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-8959
SELECT ALL - 55 * - - CAST ( NULL AS INTEGER ), 52 col2
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT - MAX( ALL - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-8960
SELECT - MAX ( ALL - 93 )
----
93

query I rowsort
SELECT - + 95 * + 11 AS col1
----
-1045

query I rowsort
SELECT - - 25 * - + NULLIF ( 91, + 5 ) * - 76
----
172900

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT - - 67 * + COUNT( * ) + + 32
----
99

skipif mysql # not compatible
query I rowsort label-8963
SELECT - - 67 * + COUNT ( * ) + + 32
----
99

query I rowsort
SELECT ALL 81 * + 24 - - 8
----
1952

onlyif mysql # aggregate syntax: 
query II rowsort label-8965
SELECT ALL NULLIF ( - 68, - 50 ) * + - SUM( 3 ) AS col0, ( - COUNT( * ) )
----
204
-1

skipif mysql # not compatible
query II rowsort label-8965
SELECT ALL NULLIF ( - 68, - 50 ) * + - SUM ( 3 ) AS col0, ( - COUNT ( * ) )
----
204
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT DISTINCT + ( + NULLIF ( + + COUNT( ALL + 18 ), - - 63 + 0 + 64 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT + ( + NULLIF ( + + COUNT ( ALL + 18 ), - - 63 + 0 + 64 ) )
----
1

query I rowsort
SELECT 9 * + 10 + - 41
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8968
SELECT COALESCE ( 82, + 76 * + CAST( NULL AS SIGNED ) + ( + - 45 ) + - + 64 ) col0
----
82

skipif mysql # not compatible
query I rowsort label-8968
SELECT COALESCE ( 82, + 76 * + CAST ( NULL AS INTEGER ) + ( + - 45 ) + - + 64 ) col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8969
SELECT + 71 * + COALESCE ( + + 39, 29 * - + 20 * 37 + - - CAST( NULL AS SIGNED ) + + - 99 ) AS col2
----
2769

skipif mysql # not compatible
query I rowsort label-8969
SELECT + 71 * + COALESCE ( + + 39, 29 * - + 20 * 37 + - - CAST ( NULL AS INTEGER ) + + - 99 ) AS col2
----
2769

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8970
SELECT ALL - COUNT( * ) * + 77 DIV - MAX( + 53 )
----
1

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - COUNT ( * ) * + 77 / - MAX ( + 53 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT - 82 + + + COUNT( * ) * COUNT( * ) + + + 85 * - 22 * - ( + - 1 ) AS col0
----
-1951

skipif mysql # not compatible
query I rowsort label-8971
SELECT - 82 + + + COUNT ( * ) * COUNT ( * ) + + + 85 * - 22 * - ( + - 1 ) AS col0
----
-1951

query I rowsort
SELECT + NULLIF ( ( + - 91 ), + + 67 * + + COALESCE ( + 62, - + 52 - - 68 ) * - - 82 )
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8973
SELECT - 35 * COALESCE ( + + 43, + 23 + + 22, + + 45 ) * + 37 * 81 + + CASE + 61 WHEN 48 + + 41 DIV 40 THEN + - 55 * + COUNT( * ) - - ( ( + 76 ) ) WHEN - 21 THEN + 70 ELSE - NULLIF ( - MAX( ALL - ( + - CASE - + 92 WHEN 51 * 68 THEN NULL WHEN - 12 + - ( + - 8 ) THEN + - 45 ELSE - 53 END ) ), ( 71 ) * + - SUM( + 92 ) ) + - + 34 * COUNT( ALL ( - 6 ) ) DIV 52 END + 98 * 45 AS col2
----
-4506128

skipif mysql # not compatible
query I rowsort label-8973
SELECT - 35 * COALESCE ( + + 43, + 23 + + 22, + + 45 ) * + 37 * 81 + + CASE + 61 WHEN 48 + + 41 / 40 THEN + - 55 * + COUNT ( * ) - - ( ( + 76 ) ) WHEN - 21 THEN + 70 ELSE - NULLIF ( - MAX ( ALL - ( + - CASE - + 92 WHEN 51 * 68 THEN NULL WHEN - 12 + - ( + - 8 ) THEN + - 45 ELSE - 53 END ) ), ( 71 ) * + - SUM ( + 92 ) ) + - + 34 * COUNT ( ALL ( - 6 ) ) / 52 END + 98 * 45 AS col2
----
-4506128

query I rowsort
SELECT ALL - 10 * - + 91
----
910

query I rowsort
SELECT + 28 + - 44
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT + 5 + COUNT( - ( + 84 ) )
----
6

skipif mysql # not compatible
query I rowsort label-8976
SELECT + 5 + COUNT ( - ( + 84 ) )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8977
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT - COUNT( * ) * - ( - 52 ) + + 49 * COUNT( - + 27 )
----
-3

skipif mysql # not compatible
query I rowsort label-8978
SELECT - COUNT ( * ) * - ( - 52 ) + + 49 * COUNT ( - + 27 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8979
SELECT + 52 DIV - ( 88 ) * - 25 - - 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8979
SELECT + 52 / - ( 88 ) * - 25 - - 8 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL + 65 * MAX( DISTINCT - 78 ) * - 26 * - - 98 + - - COUNT( * ) + + + 18
----
12918379

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + 65 * MAX ( DISTINCT - 78 ) * - 26 * - - 98 + - - COUNT ( * ) + + + 18
----
12918379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8981
SELECT - 99 * - + COALESCE ( + 88, AVG ( + CAST( NULL AS SIGNED ) ) * + - 34 ) + - 89 - + - CASE 83 WHEN - AVG ( DISTINCT 57 ) THEN NULL WHEN + - 60 + - COUNT( * ) - - + 40 + - - 18 * + NULLIF ( - + CASE ( + + 11 ) WHEN 40 THEN 13 + - 20 / - 49 + - - 69 * - 55 WHEN - 66 * + ( + - COUNT( - 12 ) ) + + COUNT( * ) * + 31 + - COUNT( * ) THEN + 0 END, 18 - + 68 ) + - + 10 THEN - - 2 * 73 - - 37 / - 90 END * - 0 + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8981
SELECT - 99 * - + COALESCE ( + 88, AVG ( + CAST ( NULL AS INTEGER ) ) * + - 34 ) + - 89 - + - CASE 83 WHEN - AVG ( DISTINCT 57 ) THEN NULL WHEN + - 60 + - COUNT ( * ) - - + 40 + - - 18 * + NULLIF ( - + CASE ( + + 11 ) WHEN 40 THEN 13 + - 20 / - 49 + - - 69 * - 55 WHEN - 66 * + ( + - COUNT ( - 12 ) ) + + COUNT ( * ) * + 31 + - COUNT ( * ) THEN + 0 END, 18 - + 68 ) + - + 10 THEN - - 2 * 73 - - 37 / - 90 END * - 0 + + 37
----
NULL

query I rowsort
SELECT + - 31 * + 25 AS col0
----
-775

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + - COUNT( * ) + 53 col1
----
52

skipif mysql # not compatible
query I rowsort label-8983
SELECT + - COUNT ( * ) + 53 col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT - CAST( + 7 AS SIGNED ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-8984
SELECT - CAST ( + 7 AS INTEGER ) AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT ALL - + NULLIF ( + 97, - CAST( + 43 AS SIGNED ) * + NULLIF ( - 63, + 66 * + 32 ) + - 61 ) + - + 93 + 9 * - 41
----
-559

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL - + NULLIF ( + 97, - CAST ( + 43 AS INTEGER ) * + NULLIF ( - 63, + 66 * + 32 ) + - 61 ) + - + 93 + 9 * - 41
----
-559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8986
SELECT DISTINCT + CAST( - - 36 AS SIGNED ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT + CAST ( - - 36 AS INTEGER ) AS col0
----
36

query I rowsort
SELECT ALL 2 + + 19 AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8988
SELECT DISTINCT - 18 + - 51 + + 85 DIV - 74
----
-70

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT - 18 + - 51 + + 85 / - 74
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8989
SELECT ALL + - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + + 4 * - 15 * - 22 + - 87 AS col0
----
1233

query II rowsort
SELECT - 89 AS col1, 54 * + 74
----
-89
3996

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL NULLIF ( - 32, - + 36 * - - NULLIF ( + - 76, - + 47 / COUNT( * ) / - 10 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL NULLIF ( - 32, - + 36 * - - NULLIF ( + - 76, - + 47 / COUNT ( * ) / - 10 ) )
----
-32

query I rowsort
SELECT + - 29 - + + 40 col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL - + COUNT( * ) * - - 38
----
-38

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL - + COUNT ( * ) * - - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT + COUNT( * ) * + 44 * + 30 AS col1
----
1320

skipif mysql # not compatible
query I rowsort label-8995
SELECT + COUNT ( * ) * + 44 * + 30 AS col1
----
1320

query I rowsort
SELECT DISTINCT - + 86 * 86 col2
----
-7396

query I rowsort
SELECT ALL 89 * + ( - + 39 )
----
-3471

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL MIN( + 77 ) * - 4 AS col0
----
-308

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL MIN ( + 77 ) * - 4 AS col0
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT DISTINCT 42 * - + COALESCE ( - NULLIF ( - 70, + ( - - 3 ) ), - + MAX( + 34 ) * - 28 + COUNT( * ) )
----
-2940

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT 42 * - + COALESCE ( - NULLIF ( - 70, + ( - - 3 ) ), - + MAX ( + 34 ) * - 28 + COUNT ( * ) )
----
-2940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9000
SELECT 22 * 85 * - CAST( NULL AS SIGNED ) - - 21 + + - COUNT( * ) + - 78 - + 83 * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT 22 * 85 * - CAST ( NULL AS INTEGER ) - - 21 + + - COUNT ( * ) + - 78 - + 83 * + 12
----
NULL

query I rowsort
SELECT - 47 * + + 70
----
-3290

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9002
SELECT CAST( NULL AS SIGNED ) AS col0, - CAST( NULL AS SIGNED ) - - + 98
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9002
SELECT CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) - - + 98
----
NULL
NULL

query I rowsort
SELECT 41 * 19 + - 93
----
686

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT ALL + 50 DIV - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL + 50 / - 86 AS col0
----
0

query II rowsort
SELECT ALL + 45 AS col2, 67 AS col2
----
45
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9006
SELECT ALL - COUNT( * ) DIV - + 65 + COUNT( ALL + COALESCE ( + 39, - 29 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL - COUNT ( * ) / - + 65 + COUNT ( ALL + COALESCE ( + 39, - 29 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL - COUNT( ALL + 15 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL - COUNT ( ALL + 15 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT DISTINCT - ( 12 ) + + 71 * - MAX( - + ( - CASE 7 WHEN - 28 * + - 60 THEN - - 71 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT - ( 12 ) + + 71 * - MAX ( - + ( - CASE 7 WHEN - 28 * + - 60 THEN - - 71 ELSE NULL END ) )
----
NULL

query I rowsort
SELECT 35 + - ( 29 )
----
6

query I rowsort
SELECT DISTINCT + 33 + - 15 + + 38
----
56

query I rowsort
SELECT 12 + + 79 * + 33
----
2619

query II rowsort
SELECT + 77 AS col2, 78 + + 17
----
77
95

query I rowsort
SELECT ALL + COALESCE ( + 36, 42, 3 * + 64 ) + - - 74 AS col2
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9014
SELECT - NULLIF ( 21, + 0 ) * + - COUNT( * ) * + 65 + - COUNT( * ) * + 82 + 66 * CAST( + 44 AS SIGNED )
----
4187

skipif mysql # not compatible
query I rowsort label-9014
SELECT - NULLIF ( 21, + 0 ) * + - COUNT ( * ) * + 65 + - COUNT ( * ) * + 82 + 66 * CAST ( + 44 AS INTEGER )
----
4187

query I rowsort
SELECT 75 + - 35 * - + 47 AS col1
----
1720

query I rowsort
SELECT - 59 * + + 46 col0
----
-2714

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL - + 64 + + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL - + 64 + + COUNT ( * )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9018
SELECT - 3 + CAST( NULL AS SIGNED ) / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT - 3 + CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT - ( COUNT( * ) ) + + - 83 + + 91 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT - ( COUNT ( * ) ) + + - 83 + + 91 AS col2
----
7

query II rowsort
SELECT DISTINCT + COALESCE ( 19, 81, 41 - 63 * 37 ) AS col0, - COALESCE ( - + ( + + 41 ), - + 25 )
----
19
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT + 92 * - 6 + + COALESCE ( - + COUNT( * ), - - 9 ) AS col0
----
-553

skipif mysql # not compatible
query I rowsort label-9021
SELECT + 92 * - 6 + + COALESCE ( - + COUNT ( * ), - - 9 ) AS col0
----
-553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9022
SELECT + 92 + COALESCE ( - MIN( DISTINCT - 80 ), + + 33 DIV + 75 + 7 * NULLIF ( + 92, + 62 - - COUNT( * ) * ( - COUNT( * ) ) ) + + 39 + - + 21 * + 80 * + 54 DIV - 96 + + + 2 - + 54 - COUNT( * ) * - COUNT( * ) * - 1 * - - 93 * + 59 DIV COUNT( * ) ) + + 2 AS col2
----
174

skipif mysql # not compatible
query I rowsort label-9022
SELECT + 92 + COALESCE ( - MIN ( DISTINCT - 80 ), + + 33 / + 75 + 7 * NULLIF ( + 92, + 62 - - COUNT ( * ) * ( - COUNT ( * ) ) ) + + 39 + - + 21 * + 80 * + 54 / - 96 + + + 2 - + 54 - COUNT ( * ) * - COUNT ( * ) * - 1 * - - 93 * + 59 / COUNT ( * ) ) + + 2 AS col2
----
174

query I rowsort
SELECT 21 * - + 44 + - 8
----
-932

query I rowsort
SELECT - ( + 72 )
----
-72

query I rowsort
SELECT ( + 52 ) + + - 99
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9026
SELECT - 19 + 59 - + CASE + + ( 8 ) WHEN - 65 * + 79 - + + SUM( ALL 3 ) + + 46 - - CAST( NULL AS SIGNED ) THEN NULL WHEN ( - 41 ) * + ( - 87 ) THEN - 93 END * - - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT - 19 + 59 - + CASE + + ( 8 ) WHEN - 65 * + 79 - + + SUM ( ALL 3 ) + + 46 - - CAST ( NULL AS INTEGER ) THEN NULL WHEN ( - 41 ) * + ( - 87 ) THEN - 93 END * - - 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9027
SELECT 13 - - 70 + MIN( - 4 ) DIV + 89
----
83

skipif mysql # not compatible
query I rowsort label-9027
SELECT 13 - - 70 + MIN ( - 4 ) / + 89
----
83

query I rowsort
SELECT ALL 58 * + - 3 col1
----
-174

query I rowsort
SELECT 0 * + 32 + + + 73 AS col1
----
73

query II rowsort
SELECT ALL 79 AS col0, + 34 AS col2
----
79
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query III rowsort label-9031
SELECT DISTINCT + + 54 - 21 + - CASE - 48 WHEN ( - - 29 ) DIV + COALESCE ( CAST( 40 AS SIGNED ), - 48 * + 95, - ( - + 13 ) * - 52 ) - - ( - CAST( - ( + COUNT( * ) ) AS DECIMAL ) ) + + ( 68 ) THEN + ( + 60 ) END + 53 * - 69 AS col0, - 61 * 0 * - + 29 DIV CAST( - 76 AS SIGNED ) AS col1, - + 74
----
NULL
0
-74

skipif mysql # not compatible
query III rowsort label-9031
SELECT DISTINCT + + 54 - 21 + - CASE - 48 WHEN ( - - 29 ) / + COALESCE ( CAST ( 40 AS INTEGER ), - 48 * + 95, - ( - + 13 ) * - 52 ) - - ( - CAST ( - ( + COUNT ( * ) ) AS REAL ) ) + + ( 68 ) THEN + ( + 60 ) END + 53 * - 69 AS col0, - 61 * 0 * - + 29 / CAST ( - 76 AS INTEGER ) AS col1, - + 74
----
NULL
0
-74

query I rowsort
SELECT DISTINCT - 70 * - + 2 col1
----
140

query I rowsort
SELECT 0 + + 86 * 31
----
2666

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9034
SELECT COUNT( * ) * - - CAST( NULL AS DECIMAL ) * + + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT COUNT ( * ) * - - CAST ( NULL AS REAL ) * + + 13 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9035
SELECT CAST( NULL AS SIGNED ) + - + ( - - 55 ) * - 11 * 12 * - CASE + 20 WHEN + CAST( NULL AS SIGNED ) THEN + 84 WHEN + + AVG ( ALL + 82 ) * - + 66 * - + COUNT( * ) + + 49 * - 2 THEN ( - + 57 ) + - 55 END * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT CAST ( NULL AS INTEGER ) + - + ( - - 55 ) * - 11 * 12 * - CASE + 20 WHEN + CAST ( NULL AS INTEGER ) THEN + 84 WHEN + + AVG ( ALL + 82 ) * - + 66 * - + COUNT ( * ) + + 49 * - 2 THEN ( - + 57 ) + - 55 END * - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT DISTINCT SUM( ALL + - 95 ) * + 11
----
-1045

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT SUM ( ALL + - 95 ) * + 11
----
-1045

query I rowsort
SELECT ALL 0 + 31
----
31

query I rowsort
SELECT ALL + 46 + + 72 * + 2 AS col0
----
190

query I rowsort
SELECT 35 * + + 45 AS col2
----
1575

onlyif mysql # DIV for integer division: 
query II rowsort label-9040
SELECT DISTINCT + + 99 DIV + 64 AS col2, 24 * + + 24
----
1
576

skipif mysql # not compatible
query II rowsort label-9040
SELECT DISTINCT + + 99 / + 64 AS col2, 24 * + + 24
----
1
576

query I rowsort
SELECT + 23 + - + 60
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9042
SELECT + CASE + + 10 WHEN - 7 THEN + 10 * + 0 * 62 + + 77 WHEN COUNT( * ) THEN + - 82 END * 23 col0, - 53 - - 22 AS col0
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-9042
SELECT + CASE + + 10 WHEN - 7 THEN + 10 * + 0 * 62 + + 77 WHEN COUNT ( * ) THEN + - 82 END * 23 col0, - 53 - - 22 AS col0
----
NULL
-31

query I rowsort
SELECT DISTINCT - 35 - + - 47
----
12

query I rowsort
SELECT DISTINCT + 77 * 47 + 31
----
3650

query I rowsort
SELECT - ( + 88 ) + + 87
----
-1

query I rowsort
SELECT ALL + 32 * + - 27 col2
----
-864

query I rowsort
SELECT ALL - ( + COALESCE ( + - CASE - AVG ( + 7 ) WHEN + 79 THEN NULL WHEN + NULLIF ( + 41, 61 * - 73 + - 28 + 49 ) THEN + - 51 END, 81 ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL NULLIF ( - 87, - COUNT( * ) / - 13 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL NULLIF ( - 87, - COUNT ( * ) / - 13 ) AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT ALL CAST( - CAST( 93 AS SIGNED ) AS SIGNED ) * + 10
----
-930

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL CAST ( - CAST ( 93 AS INTEGER ) AS INTEGER ) * + 10
----
-930

query I rowsort
SELECT 38 * + 52 + + 87 + - 93
----
1970

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT 81 - - COUNT( * ) * + ( - 95 )
----
-14

skipif mysql # not compatible
query I rowsort label-9051
SELECT 81 - - COUNT ( * ) * + ( - 95 )
----
-14

query I rowsort
SELECT 0 + 9
----
9

query I rowsort
SELECT 6 * + 97 * + + 67 col1
----
38994

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT COALESCE ( - + 45, 73 * + 17 ) + - + ( - 16 ) + - CASE + COUNT( * ) WHEN + 5 THEN 78 * + 92 END / + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT COALESCE ( - + 45, 73 * + 17 ) + - + ( - 16 ) + - CASE + COUNT ( * ) WHEN + 5 THEN 78 * + 92 END / + 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9055
SELECT DISTINCT NULLIF ( - 70, + 20 / AVG ( - + 42 ) + + + 19 - 77 + 6 ), - COUNT( * ) + - 34 AS col1
----
-70
-35

skipif mysql # not compatible
query II rowsort label-9055
SELECT DISTINCT NULLIF ( - 70, + 20 / AVG ( - + 42 ) + + + 19 - 77 + 6 ), - COUNT ( * ) + - 34 AS col1
----
-70
-35

query I rowsort
SELECT + 88 - + - 48 + 77 AS col0
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-9057
SELECT ALL + ( + 67 ) * - 0 + 95 + ( - + COUNT( * ) ) AS col2, 23 AS col2
----
94
23

skipif mysql # not compatible
query II rowsort label-9057
SELECT ALL + ( + 67 ) * - 0 + 95 + ( - + COUNT ( * ) ) AS col2, 23 AS col2
----
94
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT DISTINCT + 93 * + CASE - 64 WHEN - - COUNT( * ) THEN 24 * + 55 END + + 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT + 93 * + CASE - 64 WHEN - - COUNT ( * ) THEN 24 * + 55 END + + 89 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT - 10 * + 71 + COUNT( * ) col2
----
-709

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT - 10 * + 71 + COUNT ( * ) col2
----
-709

query II rowsort
SELECT + 8, 13 AS col2
----
8
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9061
SELECT ALL - 77 * + + 36 + + 10 AS col1, 43 - + 9 - ( - 61 ) * NULLIF ( - 92, - COUNT( * ) * COUNT( * ) * - 43 * COUNT( ALL - ( - + 54 ) ) + + 38 + + 80 )
----
-2762
-5578

skipif mysql # not compatible
query II rowsort label-9061
SELECT ALL - 77 * + + 36 + + 10 AS col1, 43 - + 9 - ( - 61 ) * NULLIF ( - 92, - COUNT ( * ) * COUNT ( * ) * - 43 * COUNT ( ALL - ( - + 54 ) ) + + 38 + + 80 )
----
-2762
-5578

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT + 69 * + COUNT( + - 27 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9062
SELECT + 69 * + COUNT ( + - 27 ) AS col0
----
69

query I rowsort
SELECT + COALESCE ( 33, + - 51 ) AS col1
----
33

query II rowsort
SELECT ALL + 96, - 94 AS col2
----
96
-94

query I rowsort
SELECT + COALESCE ( 16, + 21 + 81 ) AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT - COALESCE ( 33, + 7 ) - + 32 + 5 DIV 59 + - 91 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-9066
SELECT - COALESCE ( 33, + 7 ) - + 32 + 5 / 59 + - 91 AS col0
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9067
SELECT DISTINCT ( - - COUNT( * ) ) DIV + + ( - + NULLIF ( - ( + 47 ), + + MAX( DISTINCT - - 79 ) ) ) * 69
----
0

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT ( - - COUNT ( * ) ) / + + ( - + NULLIF ( - ( + 47 ), + + MAX ( DISTINCT - - 79 ) ) ) * 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT ALL + + SUM( - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL + + SUM ( - 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL - ( - 92 ) * + - COALESCE ( 74, 77 * - 36 * + 87 * 33 * - + COUNT( * ) + 79 ) * + 14
----
-95312

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - ( - 92 ) * + - COALESCE ( 74, 77 * - 36 * + 87 * 33 * - + COUNT ( * ) + 79 ) * + 14
----
-95312

query II rowsort
SELECT 92 * + 66 + - NULLIF ( - 89, + ( - - 15 ) ), - 86 AS col1
----
6161
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT + 65 * 60 + - - COUNT( * )
----
3901

skipif mysql # not compatible
query I rowsort label-9071
SELECT + 65 * 60 + - - COUNT ( * )
----
3901

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT - COUNT( * ) * MIN( 22 ) * - 65
----
1430

skipif mysql # not compatible
query I rowsort label-9072
SELECT - COUNT ( * ) * MIN ( 22 ) * - 65
----
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT + + 15 * NULLIF ( COUNT( * ), + - COUNT( * ) ) + - - 75 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9073
SELECT + + 15 * NULLIF ( COUNT ( * ), + - COUNT ( * ) ) + - - 75 AS col0
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-9074
SELECT - + 11 DIV 97 DIV - + 34 AS col2, 68 AS col1
----
0
68

skipif mysql # not compatible
query II rowsort label-9074
SELECT - + 11 / 97 / - + 34 AS col2, 68 AS col1
----
0
68

query I rowsort
SELECT + - 42 + + 27
----
-15

query I rowsort
SELECT + + 67 + 77
----
144

query I rowsort
SELECT - 10 - - 32
----
22

query II rowsort
SELECT DISTINCT 24, 24
----
24
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9079
SELECT - 23 + ( 46 ), COUNT( - 63 ) AS col0
----
23
1

skipif mysql # not compatible
query II rowsort label-9079
SELECT - 23 + ( 46 ), COUNT ( - 63 ) AS col0
----
23
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) + - NULLIF ( - 43, - + 30 * 44 ) col2
----
42

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) + - NULLIF ( - 43, - + 30 * 44 ) col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT + MAX( DISTINCT - - 79 ) * + 46 * + 36
----
130824

skipif mysql # not compatible
query I rowsort label-9081
SELECT + MAX ( DISTINCT - - 79 ) * + 46 * + 36
----
130824

query I rowsort
SELECT - 50 + + 80
----
30

query I rowsort
SELECT ALL + + 50 * - + ( + 93 ) * 32 AS col2
----
-148800

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT - 64 + 30 * - COUNT( * ) * + 48 AS col2
----
-1504

skipif mysql # not compatible
query I rowsort label-9084
SELECT - 64 + 30 * - COUNT ( * ) * + 48 AS col2
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT - 42 + - SUM( ALL - 66 ) * + 98 AS col0
----
6426

skipif mysql # not compatible
query I rowsort label-9085
SELECT - 42 + - SUM ( ALL - 66 ) * + 98 AS col0
----
6426

query I rowsort
SELECT - 48 - - 21 * - - 11
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL COALESCE ( COUNT( * ), + - 86, - + COUNT( * ) * 34 )
----
1

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL COALESCE ( COUNT ( * ), + - 86, - + COUNT ( * ) * 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL + 64 + + + 27 * + 55 + COUNT( * ) AS col0
----
1550

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL + 64 + + + 27 * + 55 + COUNT ( * ) AS col0
----
1550

onlyif mysql # aggregate syntax: 
query II rowsort label-9089
SELECT - 18 + - + 59 AS col0, COUNT( * ) * + 35 AS col1
----
-77
35

skipif mysql # not compatible
query II rowsort label-9089
SELECT - 18 + - + 59 AS col0, COUNT ( * ) * + 35 AS col1
----
-77
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT - COUNT( * ) + + 81 * + + 61 * 0 * - + 12
----
-1

skipif mysql # not compatible
query I rowsort label-9090
SELECT - COUNT ( * ) + + 81 * + + 61 * 0 * - + 12
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT + COUNT( * ) + 3 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT + COUNT ( * ) + 3 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT ALL COALESCE ( - COUNT( * ), NULLIF ( + 36, COUNT( * ) ) - + 41 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL COALESCE ( - COUNT ( * ), NULLIF ( + 36, COUNT ( * ) ) - + 41 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9093
SELECT - 88 + + COALESCE ( + COUNT( * ), + - 10 ) AS col1, ( ( + 4 ) ) + - 72 AS col2
----
-87
-68

skipif mysql # not compatible
query II rowsort label-9093
SELECT - 88 + + COALESCE ( + COUNT ( * ), + - 10 ) AS col1, ( ( + 4 ) ) + - 72 AS col2
----
-87
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT DISTINCT + 46 + - 52 * 47 * - + 83 * + ( 63 ) * - + CAST( NULL AS SIGNED ) * - + 85 + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT + 46 + - 52 * 47 * - + 83 * + ( 63 ) * - + CAST ( NULL AS INTEGER ) * - + 85 + + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT - MIN( ALL - 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9095
SELECT - MIN ( ALL - 71 ) AS col1
----
71

query I rowsort
SELECT + 41 + + 12
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9097
SELECT ALL - COUNT( * ) + + 62 + + 77 DIV - - 59 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - COUNT ( * ) + + 62 + + 77 / - - 59 AS col2
----
62

query I rowsort
SELECT - 52 * - + 88
----
4576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT ALL CAST( 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL CAST ( 66 AS INTEGER )
----
66

query II rowsort
SELECT - 46 + COALESCE ( 48, + 96 * - 65, 73 ) + - - 14 AS col1, 59 * + - ( - 17 ) + 72
----
16
1075

onlyif mysql # DIV for integer division: 
query II rowsort label-9101
SELECT ALL 88 DIV 4 - ( + 4 ) AS col2, + 44 * - 62 AS col0
----
18
-2728

skipif mysql # not compatible
query II rowsort label-9101
SELECT ALL 88 / 4 - ( + 4 ) AS col2, + 44 * - 62 AS col0
----
18
-2728

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT + COALESCE ( + - 29, - 61 * + 43, + + 92 ) + + + COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9102
SELECT + COALESCE ( + - 29, - 61 * + 43, + + 92 ) + + + COUNT ( * ) AS col1
----
-28

query I rowsort
SELECT + COALESCE ( - 31, + - 39 )
----
-31

query I rowsort
SELECT + 96 * 91
----
8736

query I rowsort
SELECT ALL 66 * ( - 92 )
----
-6072

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT - 35 * + 34 * - ( + 37 ) + + COUNT( * ) AS col2
----
44031

skipif mysql # not compatible
query I rowsort label-9106
SELECT - 35 * + 34 * - ( + 37 ) + + COUNT ( * ) AS col2
----
44031

query I rowsort
SELECT - NULLIF ( + + 39, - 36 )
----
-39

query I rowsort
SELECT + - 40 + - 15 + + 99 - 72 * + 56 + + - 2 AS col2
----
-3990

query I rowsort
SELECT ALL + + 2 AS col2
----
2

query I rowsort
SELECT ALL + 27 * - 22 * + + 92 - - ( 87 )
----
-54561

onlyif mysql # DIV for integer division: 
query I rowsort label-9111
SELECT ALL 68 DIV + 80 * - 14
----
0

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL 68 / + 80 * - 14
----
0

query I rowsort
SELECT + + ( 3 ) AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9113
SELECT + 65 DIV - + 99
----
0

skipif mysql # not compatible
query I rowsort label-9113
SELECT + 65 / - + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT + 35 * - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-9114
SELECT + 35 * - + COUNT ( * )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT - + NULLIF ( 30, - + ( + ( + CAST( NULL AS SIGNED ) ) ) )
----
-30

skipif mysql # not compatible
query I rowsort label-9115
SELECT - + NULLIF ( 30, - + ( + ( + CAST ( NULL AS INTEGER ) ) ) )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT - 24 + + 39 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT - 24 + + 39 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9117
SELECT CAST( NULL AS SIGNED ) * + 73 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT CAST ( NULL AS INTEGER ) * + 73 col2
----
NULL

query I rowsort
SELECT ALL + 60 + - 19
----
41

query I rowsort
SELECT ALL 77 + - - 73 + + + 70 AS col2
----
220

query II rowsort
SELECT ALL 41 AS col1, 56
----
41
56

query I rowsort
SELECT 35 * + - 80
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL ( COUNT( + 7 ) ) + - 22 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL ( COUNT ( + 7 ) ) + - 22 AS col1
----
-21

query II rowsort
SELECT DISTINCT 46 AS col0, - ( - COALESCE ( + 55, + 6 ) )
----
46
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT COUNT( * ) + + 88
----
89

skipif mysql # not compatible
query I rowsort label-9124
SELECT COUNT ( * ) + + 88
----
89

query I rowsort
SELECT ALL - 33 * - - 11 * + 6 AS col0
----
-2178

query I rowsort
SELECT 25 + + 64 AS col2
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9127
SELECT 60 * 90 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT 60 * 90 * + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 34 + - + 21 col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9129
SELECT ALL COUNT( * ) - + 20 / - NULLIF ( - CASE 65 WHEN COUNT( * ) + + ( - ( + - 46 ) ) THEN - 4 + + 28 + + + 72 WHEN + - 40 THEN - 0 - - + 11 WHEN 50 + ( 96 ) THEN + 43 + ( - CAST( - 13 AS SIGNED ) ) WHEN - + 40 * - 65 * - 26 - - - 2 + - NULLIF ( + - 37, + - 36 ) + 10 + - - COUNT( * ) * 84 THEN NULL ELSE NULL END, 31 * + 95 + + 37 * 98 - - 60 ) * - - COUNT( * ) - + CAST( 6 AS SIGNED ) + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL COUNT ( * ) - + 20 / - NULLIF ( - CASE 65 WHEN COUNT ( * ) + + ( - ( + - 46 ) ) THEN - 4 + + 28 + + + 72 WHEN + - 40 THEN - 0 - - + 11 WHEN 50 + ( 96 ) THEN + 43 + ( - CAST ( - 13 AS INTEGER ) ) WHEN - + 40 * - 65 * - 26 - - - 2 + - NULLIF ( + - 37, + - 36 ) + 10 + - - COUNT ( * ) * 84 THEN NULL ELSE NULL END, 31 * + 95 + + 37 * 98 - - 60 ) * - - COUNT ( * ) - + CAST ( 6 AS INTEGER ) + - 33
----
NULL

query I rowsort
SELECT DISTINCT 70 * + 95 AS col0
----
6650

query I rowsort
SELECT 50 * + 34
----
1700

query I rowsort
SELECT ALL - 25 * 0 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9133
SELECT DISTINCT 45 DIV - + SUM( + 19 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT 45 / - + SUM ( + 19 ) col1
----
-2

query I rowsort
SELECT 40 * + + 75 AS col2
----
3000

query I rowsort
SELECT 65 * + + 34 AS col2
----
2210

query I rowsort
SELECT - ( - + 18 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT ALL - CAST( 32 AS SIGNED ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL - CAST ( 32 AS INTEGER ) col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9138
SELECT + 16 DIV + 98 col1
----
0

skipif mysql # not compatible
query I rowsort label-9138
SELECT + 16 / + 98 col1
----
0

query I rowsort
SELECT - COALESCE ( + + 1, - 8, - ( + 63 ) ) * - 39 AS col2
----
39

query I rowsort
SELECT ALL - + 71 * 66 + + 63
----
-4623

query I rowsort
SELECT DISTINCT - + COALESCE ( 78, 82 ) + + + 7
----
-71

query I rowsort
SELECT 13 * 68 * - - 12 + + ( + - 43 )
----
10565

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT ALL - 4 + 27 + + 17 + + ( 62 ) * + COUNT( * ) + + + 51
----
153

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL - 4 + 27 + + 17 + + ( 62 ) * + COUNT ( * ) + + + 51
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT + MIN( - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-9144
SELECT + MIN ( - 80 )
----
-80

query I rowsort
SELECT 85 + 69 * - 3
----
-122

query I rowsort
SELECT 16 + + - 60
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT DISTINCT 36 + CASE 7 WHEN + - 99 + + - 84 THEN - 4 ELSE NULL END - + COUNT( * ) - - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT DISTINCT 36 + CASE 7 WHEN + - 99 + + - 84 THEN - 4 ELSE NULL END - + COUNT ( * ) - - 4 AS col0
----
NULL

query I rowsort
SELECT ALL 84 col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT COUNT( * ) + 65 * - 68 AS col1
----
-4419

skipif mysql # not compatible
query I rowsort label-9149
SELECT COUNT ( * ) + 65 * - 68 AS col1
----
-4419

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT ALL 71 + + - MIN( + 25 )
----
46

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL 71 + + - MIN ( + 25 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9151
SELECT ALL 47 AS col2, 57 * 20 * - 81 * + COUNT( * )
----
47
-92340

skipif mysql # not compatible
query II rowsort label-9151
SELECT ALL 47 AS col2, 57 * 20 * - 81 * + COUNT ( * )
----
47
-92340

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT COUNT( * ) * 76 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-9152
SELECT COUNT ( * ) * 76 AS col2
----
76

query II rowsort
SELECT DISTINCT 55 AS col2, + ( + 53 ) AS col1
----
55
53

query I rowsort
SELECT COALESCE ( - - 47, + + 35, 97 * + 53 ) * + ( + 34 ) + + 50 col1
----
1648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9155
SELECT ALL + 57 * + ( - 3 ) * 67 + 48 DIV ( + MIN( 52 ) )
----
-11457

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + 57 * + ( - 3 ) * 67 + 48 / ( + MIN ( 52 ) )
----
-11457

query I rowsort
SELECT 69 + - 85 AS col0
----
-16

query II rowsort
SELECT 74 AS col0, - CASE - 13 WHEN 52 THEN + 22 ELSE + 60 END AS col2
----
74
-60

query II rowsort
SELECT - 72 col0, + 64 AS col2
----
-72
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9159
SELECT ALL 73, - CAST( NULL AS SIGNED ) + COALESCE ( + 12, + COUNT( * ) - - 83 + + 70 ) col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-9159
SELECT ALL 73, - CAST ( NULL AS INTEGER ) + COALESCE ( + 12, + COUNT ( * ) - - 83 + + 70 ) col2
----
73
NULL

query I rowsort
SELECT 85 * - 28
----
-2380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9161
SELECT ALL - 10 * + COUNT( 59 ) DIV 31 + - 55 * COALESCE ( ( SUM( - 67 ) ), - 5 ) AS col1
----
3685

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL - 10 * + COUNT ( 59 ) / 31 + - 55 * COALESCE ( ( SUM ( - 67 ) ), - 5 ) AS col1
----
3685

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT - COUNT( * ) + - + 24 col1
----
-25

skipif mysql # not compatible
query I rowsort label-9162
SELECT - COUNT ( * ) + - + 24 col1
----
-25

query I rowsort
SELECT ALL - - 84 AS col0
----
84

query I rowsort
SELECT 59 * + - 48 AS col2
----
-2832

query I rowsort
SELECT ALL 56 * 4 + + 70 AS col0
----
294

query I rowsort
SELECT + 76 + + 84 + 86
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9167
SELECT + CAST( NULL AS SIGNED ) * + 71 + - + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT + CAST ( NULL AS INTEGER ) * + 71 + - + 47 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9168
SELECT 14 DIV + 27 + + - 47 * - 80 + + + 46
----
3806

skipif mysql # not compatible
query I rowsort label-9168
SELECT 14 / + 27 + + - 47 * - 80 + + + 46
----
3806

query I rowsort
SELECT ALL + 88 * - + NULLIF ( - 97, 33 ) * + 2 * + 10 * - - 46 - + 79 + + 35 * + 24 AS col0
----
7853881

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT - 56 / + CASE - 76 WHEN COUNT( * ) * + 17 THEN - 11 WHEN ( - 23 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT - 56 / + CASE - 76 WHEN COUNT ( * ) * + 17 THEN - 11 WHEN ( - 23 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9171
SELECT - 26 + - + 4 AS col2, - 6 * + + MAX( ALL - 25 )
----
-30
150

skipif mysql # not compatible
query II rowsort label-9171
SELECT - 26 + - + 4 AS col2, - 6 * + + MAX ( ALL - 25 )
----
-30
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9172
SELECT DISTINCT + NULLIF ( - - 9, + 72 * + CAST( 79 AS SIGNED ) * + NULLIF ( - COALESCE ( + + ( - ( 71 ) ), + + 39 ), - ( 23 ) ) + + 89 * - - 85 * 1 * - - 9 * 0 ) * MAX( ALL + ( + 14 ) ) DIV - CAST( + 97 AS SIGNED ) - + 39 * 32 * COUNT( * ) * + - NULLIF ( + 97, + + 56 ) + COUNT( * ) AS col0
----
121056

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT + NULLIF ( - - 9, + 72 * + CAST ( 79 AS INTEGER ) * + NULLIF ( - COALESCE ( + + ( - ( 71 ) ), + + 39 ), - ( 23 ) ) + + 89 * - - 85 * 1 * - - 9 * 0 ) * MAX ( ALL + ( + 14 ) ) / - CAST ( + 97 AS INTEGER ) - + 39 * 32 * COUNT ( * ) * + - NULLIF ( + 97, + + 56 ) + COUNT ( * ) AS col0
----
121056

query I rowsort
SELECT 7 * + - 52
----
-364

query I rowsort
SELECT ALL + - 68 * + - 72 * + - 63
----
-308448

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT DISTINCT 88 * - 6 - + COUNT( * ) + + 48 AS col2
----
-481

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT 88 * - 6 - + COUNT ( * ) + + 48 AS col2
----
-481

onlyif mysql # DIV for integer division: 
query I rowsort label-9176
SELECT DISTINCT + - COALESCE ( - 71, + 60 DIV + 88 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT + - COALESCE ( - 71, + 60 / + 88 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT + + COUNT( * ) + + 96 + - 87
----
10

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT + + COUNT ( * ) + + 96 + - 87
----
10

query I rowsort
SELECT ALL - ( - 90 ) + + + 56
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9179
SELECT DISTINCT + CAST( + 80 AS SIGNED ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT + CAST ( + 80 AS INTEGER ) AS col1
----
80

query II rowsort
SELECT - 53 * - - 59, 79 + - 97 col2
----
-3127
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT DISTINCT AVG ( DISTINCT - - 78 ) - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT AVG ( DISTINCT - - 78 ) - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL 17 - 75 + - 49 * + 72 AS col1
----
-3586

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT - 23 * + - ( - CASE - 56 WHEN - 86 THEN + - COALESCE ( + 0, + 34, + - 90 * + 59 + + + 7 ) + + 23 + - COALESCE ( 68, - + COUNT( * ), + COUNT( * ) ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT - 23 * + - ( - CASE - 56 WHEN - 86 THEN + - COALESCE ( + 0, + 34, + - 90 * + 59 + + + 7 ) + + 23 + - COALESCE ( 68, - + COUNT ( * ), + COUNT ( * ) ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9184
SELECT - COALESCE ( + 64, 6 + - 28 + - + 48 DIV + + 77, 65 - COUNT( * ) ), + NULLIF ( + - 82, - - 42 ) col2
----
-64
-82

skipif mysql # not compatible
query II rowsort label-9184
SELECT - COALESCE ( + 64, 6 + - 28 + - + 48 / + + 77, 65 - COUNT ( * ) ), + NULLIF ( + - 82, - - 42 ) col2
----
-64
-82

query I rowsort
SELECT DISTINCT 16 * + 66
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT + COUNT( * ) + - - 4 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9186
SELECT + COUNT ( * ) + - - 4 AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT + ( - - ( + 95 ) ) DIV 75 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9187
SELECT + ( - - ( + 95 ) ) / 75 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT + 22 - COUNT( * ) - + + 65 * 69 + + 45 + - ( + - 34 ) AS col2
----
-4385

skipif mysql # not compatible
query I rowsort label-9188
SELECT + 22 - COUNT ( * ) - + + 65 * 69 + + 45 + - ( + - 34 ) AS col2
----
-4385

query I rowsort
SELECT DISTINCT + 53 + 20
----
73

query I rowsort
SELECT ALL - 78 + + 28
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9191
SELECT ALL + + COUNT( * ) + - 65 AS col2, - COALESCE ( + 71, + 77 ) + + 17 + - COUNT( * ) * + + 32 col1
----
-64
-86

skipif mysql # not compatible
query II rowsort label-9191
SELECT ALL + + COUNT ( * ) + - 65 AS col2, - COALESCE ( + 71, + 77 ) + + 17 + - COUNT ( * ) * + + 32 col1
----
-64
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + - 34 - - SUM( ALL - 56 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9192
SELECT + - 34 - - SUM ( ALL - 56 ) AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9193
SELECT ALL 35 DIV + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL 35 / + 62 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT DISTINCT - MIN( DISTINCT + 85 ) + - 29
----
-114

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT - MIN ( DISTINCT + 85 ) + - 29
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT + COALESCE ( - 28, COUNT( * ) ) * + + 0 - 13 * + COUNT( * ) + COUNT( * ) * + - ( - ( + COUNT( * ) ) ) + 7 * + 41 + 76
----
351

skipif mysql # not compatible
query I rowsort label-9195
SELECT + COALESCE ( - 28, COUNT ( * ) ) * + + 0 - 13 * + COUNT ( * ) + COUNT ( * ) * + - ( - ( + COUNT ( * ) ) ) + 7 * + 41 + 76
----
351

query I rowsort
SELECT DISTINCT + ( - - ( ( - 90 ) ) ) AS col0
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-9197
SELECT ALL 91 DIV 31 + - 88 AS col1, 40
----
-86
40

skipif mysql # not compatible
query II rowsort label-9197
SELECT ALL 91 / 31 + - 88 AS col1, 40
----
-86
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT 32 * + + 24 * NULLIF ( - 21, AVG ( + - 46 ) ) - - CAST( NULL AS SIGNED ) / 30 - + - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT 32 * + + 24 * NULLIF ( - 21, AVG ( + - 46 ) ) - - CAST ( NULL AS INTEGER ) / 30 - + - 59 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9199
SELECT ALL + - CAST( NULL AS SIGNED ) * - COUNT( * ) * + + 5 * + 79 / + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + + 5 * + 79 / + - 66
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT DISTINCT - 61 * COALESCE ( - 16, - COALESCE ( + 68, + 20 * - COUNT( * ) + - COUNT( * ) ) * - 24 * 54 * + 40, + + COUNT( ALL - 69 ) ) + - 40 * - COUNT( * ) * - + COUNT( * ) - + 2 AS col0, 1 + - + 1 AS col2
----
934
0

skipif mysql # not compatible
query II rowsort label-9200
SELECT DISTINCT - 61 * COALESCE ( - 16, - COALESCE ( + 68, + 20 * - COUNT ( * ) + - COUNT ( * ) ) * - 24 * 54 * + 40, + + COUNT ( ALL - 69 ) ) + - 40 * - COUNT ( * ) * - + COUNT ( * ) - + 2 AS col0, 1 + - + 1 AS col2
----
934
0

query I rowsort
SELECT DISTINCT + - 46 AS col1
----
-46

query I rowsort
SELECT ALL + - 40 * - + 31 - + 80
----
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL + + MIN( + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL + + MIN ( + 83 )
----
83

query I rowsort
SELECT DISTINCT + ( + 99 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9205
SELECT + 77 + - MIN( ALL - 63 ), + 57 * - 57 * - 76 AS col2
----
140
246924

skipif mysql # not compatible
query II rowsort label-9205
SELECT + 77 + - MIN ( ALL - 63 ), + 57 * - 57 * - 76 AS col2
----
140
246924

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT + 36 * - + 33 * - + SUM( + 77 )
----
91476

skipif mysql # not compatible
query I rowsort label-9206
SELECT + 36 * - + 33 * - + SUM ( + 77 )
----
91476

query I rowsort
SELECT COALESCE ( - 94, 65 + 17 ) AS col2
----
-94

query I rowsort
SELECT ALL + CASE 86 WHEN 83 THEN 61 / - 80 + - 9 + + 79 WHEN - 74 * + 67 THEN + 58 END
----
NULL

query I rowsort
SELECT - 30 + 35 AS col2
----
5

query I rowsort
SELECT 65 * - - 77 - - 14 - - 99 - + 2 AS col0
----
5116

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL + MIN( - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + MIN ( - 27 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT - COUNT( * ) + + 29 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9212
SELECT - COUNT ( * ) + + 29 AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9213
SELECT - COUNT( * ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-9213
SELECT - COUNT ( * ) / - 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT SUM( 60 ) * CAST( NULL AS SIGNED ) + - CAST( + 79 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT SUM ( 60 ) * CAST ( NULL AS INTEGER ) + - CAST ( + 79 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9215
SELECT ALL + 79 AS col0, - MIN( ALL - + 52 ) AS col2
----
79
52

skipif mysql # not compatible
query II rowsort label-9215
SELECT ALL + 79 AS col0, - MIN ( ALL - + 52 ) AS col2
----
79
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT DISTINCT + MIN( - + 95 ) * + 9 col2
----
-855

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + MIN ( - + 95 ) * + 9 col2
----
-855

query I rowsort
SELECT ALL COALESCE ( - ( - + 81 ), 14, + 42 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9218
SELECT ALL + COUNT( * ) * - 50 * - - 28, 83 AS col2
----
-1400
83

skipif mysql # not compatible
query II rowsort label-9218
SELECT ALL + COUNT ( * ) * - 50 * - - 28, 83 AS col2
----
-1400
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9219
SELECT COUNT( * ) AS col1, 94 AS col1
----
1
94

skipif mysql # not compatible
query II rowsort label-9219
SELECT COUNT ( * ) AS col1, 94 AS col1
----
1
94

query I rowsort
SELECT DISTINCT + 93 * + 86 AS col1
----
7998

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT + ( - 42 ) + - COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-9221
SELECT + ( - 42 ) + - COUNT ( * ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT DISTINCT - 21 + - + COUNT( DISTINCT + 67 )
----
-22

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT - 21 + - + COUNT ( DISTINCT + 67 )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-9223
SELECT - NULLIF ( - 84, 53 * + 60 + 9 / + - 23 ) * COUNT( ALL - 2 ) + 85 + 84 * + 89, 98 AS col1
----
7645
98

skipif mysql # not compatible
query II rowsort label-9223
SELECT - NULLIF ( - 84, 53 * + 60 + 9 / + - 23 ) * COUNT ( ALL - 2 ) + 85 + 84 * + 89, 98 AS col1
----
7645
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT DISTINCT + 94 + + - CAST( - ( + - ( + + 26 ) ) AS SIGNED ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT + 94 + + - CAST ( - ( + - ( + + 26 ) ) AS INTEGER ) AS col0
----
68

query I rowsort
SELECT ALL - 39 + + 78 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT DISTINCT ( - 42 ) + + COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT ( - 42 ) + + COUNT ( * ) AS col2
----
-41

query I rowsort
SELECT ALL 80 + - + 35 + - 75 * + + 51
----
-3780

query I rowsort
SELECT DISTINCT + - 1 * 48
----
-48

query I rowsort
SELECT ALL + 66 * + - 41 AS col2
----
-2706

query I rowsort
SELECT ALL 46 + + 69 AS col0
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9231
SELECT - + 3 - + - COUNT( * ) DIV 7
----
-3

skipif mysql # not compatible
query I rowsort label-9231
SELECT - + 3 - + - COUNT ( * ) / 7
----
-3

query I rowsort
SELECT + - 28 * + + 36 col2
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT COUNT( 88 ) * + CASE - - COUNT( * ) WHEN 29 THEN + 35 + - - MAX( ALL + 46 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT COUNT ( 88 ) * + CASE - - COUNT ( * ) WHEN 29 THEN + 35 + - - MAX ( ALL + 46 ) END AS col2
----
NULL

query I rowsort
SELECT - ( - 92 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9235
SELECT ALL - + 59 * + ( CAST( - 85 AS SIGNED ) ) + + COUNT( * ) * - CASE COUNT( * ) WHEN 73 THEN + SUM( DISTINCT - 75 ) WHEN + + CAST( NULL AS SIGNED ) * + 73 + - 10 THEN + COUNT( * ) * - 23 * - + 14 * - + 36 * + COALESCE ( - - 21, - 94 ) + + 29 END AS col1, CAST( 28 AS SIGNED ) AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-9235
SELECT ALL - + 59 * + ( CAST ( - 85 AS INTEGER ) ) + + COUNT ( * ) * - CASE COUNT ( * ) WHEN 73 THEN + SUM ( DISTINCT - 75 ) WHEN + + CAST ( NULL AS INTEGER ) * + 73 + - 10 THEN + COUNT ( * ) * - 23 * - + 14 * - + 36 * + COALESCE ( - - 21, - 94 ) + + 29 END AS col1, CAST ( 28 AS INTEGER ) AS col1
----
NULL
28

query I rowsort
SELECT ALL + - 97 - 52 + + 5 * - 38 + - 78 AS col0
----
-417

query II rowsort
SELECT 1, + 93 AS col1
----
1
93

query I rowsort
SELECT DISTINCT - 73 - 87
----
-160

query II rowsort
SELECT 37 * + CASE + 20 WHEN + 44 + - 58 THEN + ( 73 ) * - + 77 * + 40 ELSE NULL END - + ( 60 ) * + 52 * 78, - 22 AS col1
----
NULL
-22

query II rowsort
SELECT ALL - 80, + 92 AS col2
----
-80
92

query I rowsort
SELECT - 79 * - - 54
----
-4266

onlyif mysql # DIV for integer division: 
query I rowsort label-9242
SELECT DISTINCT - 23 DIV 7 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT - 23 / 7 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL - MIN( DISTINCT + 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - MIN ( DISTINCT + 24 ) AS col1
----
-24

query I rowsort
SELECT ALL - + 71 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT DISTINCT - 19 AS col0, - COUNT( * )
----
-19
-1

skipif mysql # not compatible
query II rowsort label-9245
SELECT DISTINCT - 19 AS col0, - COUNT ( * )
----
-19
-1

query I rowsort
SELECT 54 * 99 AS col2
----
5346

query I rowsort
SELECT 60 + - 55 AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9248
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 54 * - CAST( 73 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 54 * - CAST ( 73 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9249
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) * + 72 * + COUNT( DISTINCT 20 ) AS col0, - CASE 74 WHEN + - 73 THEN + MIN( ALL 20 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9249
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) * + 72 * + COUNT ( DISTINCT 20 ) AS col0, - CASE 74 WHEN + - 73 THEN + MIN ( ALL 20 ) END
----
NULL
NULL

query I rowsort
SELECT ALL - COALESCE ( + 19, 96 * + 82 + + 32, + - 7 )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT DISTINCT CAST( NULL AS SIGNED ) * 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT DISTINCT - ( + COUNT( + 54 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT - ( + COUNT ( + 54 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT ALL - MIN( ALL - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL - MIN ( ALL - 45 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT CAST( NULL AS SIGNED ) * 91 * + 30 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT CAST ( NULL AS INTEGER ) * 91 * + 30 col1
----
NULL

query I rowsort
SELECT 69 * - - 54 AS col2
----
3726

query I rowsort
SELECT ALL + 7 + - COALESCE ( + 45, - + 12 + + + ( + 74 ) * - 12 ) * + 16
----
-713

onlyif mysql # DIV for integer division: 
query I rowsort label-9257
SELECT 89 DIV 69
----
1

skipif mysql # not compatible
query I rowsort label-9257
SELECT 89 / 69
----
1

query I rowsort
SELECT 59 * - 8 col0
----
-472

query I rowsort
SELECT 95 * - 97 AS col2
----
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL - 35 * COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL - 35 * COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL + COUNT( DISTINCT - 19 ) + - 6
----
-5

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL + COUNT ( DISTINCT - 19 ) + - 6
----
-5

query I rowsort
SELECT DISTINCT - 26 + ( 11 ) + + 19 * + 32
----
593

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9263
SELECT 78 DIV + - 4 AS col2, - 71 DIV - COUNT( * ) AS col2
----
-19
71

skipif mysql # not compatible
query II rowsort label-9263
SELECT 78 / + - 4 AS col2, - 71 / - COUNT ( * ) AS col2
----
-19
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL - COUNT( * ) + + 77
----
76

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL - COUNT ( * ) + + 77
----
76

query I rowsort
SELECT 85 - - 38 * 34 AS col0
----
1377

query I rowsort
SELECT ALL - 35 * + 99 * - - 67
----
-232155

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT - MAX( ALL 2 ) + + 88 * - 89 * + ( - 27 ) * - 87 col2
----
-18397370

skipif mysql # not compatible
query I rowsort label-9267
SELECT - MAX ( ALL 2 ) + + 88 * - 89 * + ( - 27 ) * - 87 col2
----
-18397370

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT COUNT( * ) / CASE COUNT( * ) WHEN - + 38 - - 44 / + ( + 16 ) * + 9 + - 89 + + + 15 * + ( + 63 ) + - 36 / 53 THEN + 25 / - 9 ELSE NULL END * - - 55 + NULLIF ( COUNT( * ), + 28 ) - COUNT( * ) * MAX( 31 ) + + - AVG ( - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT COUNT ( * ) / CASE COUNT ( * ) WHEN - + 38 - - 44 / + ( + 16 ) * + 9 + - 89 + + + 15 * + ( + 63 ) + - 36 / 53 THEN + 25 / - 9 ELSE NULL END * - - 55 + NULLIF ( COUNT ( * ), + 28 ) - COUNT ( * ) * MAX ( 31 ) + + - AVG ( - 32 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9269
SELECT ALL - - 36 + 69 + + 88 DIV + + 57 - - + 23 + + + 65 AS col2
----
194

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL - - 36 + 69 + + 88 / + + 57 - - + 23 + + + 65 AS col2
----
194

query I rowsort
SELECT ALL + 37 + 8 * - 84
----
-635

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT COUNT( * ) + + 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9271
SELECT COUNT ( * ) + + 36 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT CAST( - ( 72 ) AS SIGNED ) + 68 * - CASE CASE + 96 WHEN + - 5 THEN - 35 WHEN - + 98 THEN NULL WHEN + + 99 / 7 THEN NULL ELSE NULL END WHEN + - 31 / - + SUM( DISTINCT 73 ) * - - 51 + + 78 + - 50 THEN 36 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT CAST ( - ( 72 ) AS INTEGER ) + 68 * - CASE CASE + 96 WHEN + - 5 THEN - 35 WHEN - + 98 THEN NULL WHEN + + 99 / 7 THEN NULL ELSE NULL END WHEN + - 31 / - + SUM ( DISTINCT 73 ) * - - 51 + + 78 + - 50 THEN 36 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9273
SELECT + 27 + - + CAST( + CAST( 13 AS DECIMAL ) AS SIGNED ) * 82 * 90
----
-95913

skipif mysql # not compatible
query I rowsort label-9273
SELECT + 27 + - + CAST ( + CAST ( 13 AS REAL ) AS INTEGER ) * 82 * 90
----
-95913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT ALL + + CAST( - + 72 AS SIGNED ) - - 23
----
-49

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + + CAST ( - + 72 AS INTEGER ) - - 23
----
-49

query I rowsort
SELECT DISTINCT ( - 67 ) AS col1
----
-67

query I rowsort
SELECT ALL 80 - + 93 * - 81
----
7613

query I rowsort
SELECT DISTINCT - ( + 31 ) * + 72
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL - 94 * - CASE + COUNT( * ) WHEN - 53 + 93 THEN + 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL - 94 * - CASE + COUNT ( * ) WHEN - 53 + 93 THEN + 92 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT ALL + 36 - - MIN( - + 39 ) * 31 * + 61
----
-73713

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL + 36 - - MIN ( - + 39 ) * 31 * + 61
----
-73713

query I rowsort
SELECT + ( + 12 ) AS col2
----
12

query I rowsort
SELECT - 36 / CASE WHEN NOT NULL IS NULL THEN 57 ELSE NULL END - + 43 + 32 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT CAST( NULL AS SIGNED ) / - CASE - 1 WHEN - 45 + - 51 + - 80 * + - 18 THEN NULL WHEN COUNT( * ) THEN NULL ELSE 58 * - COALESCE ( - + 9, + - ( - - 90 ), 50 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT CAST ( NULL AS INTEGER ) / - CASE - 1 WHEN - 45 + - 51 + - 80 * + - 18 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 58 * - COALESCE ( - + 9, + - ( - - 90 ), 50 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9283
SELECT 74 * + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT 74 * + + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 62 * 18
----
1116

query I rowsort
SELECT ALL - ( - - 9 )
----
-9

query I rowsort
SELECT DISTINCT + 29 * - - 37
----
1073

onlyif mysql # DIV for integer division: 
query I rowsort label-9287
SELECT ALL 94 DIV + 58
----
1

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL 94 / + 58
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9288
SELECT 2 * + ( - - 7 ) * 98 + - 41 DIV - 92 - + - 91
----
1463

skipif mysql # not compatible
query I rowsort label-9288
SELECT 2 * + ( - - 7 ) * 98 + - 41 / - 92 - + - 91
----
1463

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT DISTINCT 12 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT 12 / - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT DISTINCT COUNT( * ) + 97 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT COUNT ( * ) + 97 AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT 34 DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9291
SELECT 34 / 87 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT MIN( DISTINCT - 51 ) * + + 91
----
-4641

skipif mysql # not compatible
query I rowsort label-9292
SELECT MIN ( DISTINCT - 51 ) * + + 91
----
-4641

query II rowsort
SELECT 40 + 96 + - 62 AS col1, 38 * - 44 AS col1
----
74
-1672

query I rowsort
SELECT 85 - + 22
----
63

query II rowsort
SELECT DISTINCT - 21 AS col1, 89 AS col2
----
-21
89

query II rowsort
SELECT ALL 11 + - 82 - 27, + 71 * + 26 * + 73 col2
----
-98
134758

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT AVG ( ALL - 86 ) + 45 + COUNT( * ) * + + 55 * + SUM( ALL + CASE + 70 WHEN 10 THEN 89 WHEN - 6 THEN NULL END ) + + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT AVG ( ALL - 86 ) + 45 + COUNT ( * ) * + + 55 * + SUM ( ALL + CASE + 70 WHEN 10 THEN 89 WHEN - 6 THEN NULL END ) + + - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT + 26 * - 1 - - - 14 + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-9298
SELECT + 26 * - 1 - - - 14 + COUNT ( * )
----
-39

query I rowsort
SELECT ALL 87 * - 11
----
-957

query I rowsort
SELECT 69 + + 63 AS col0
----
132

query I rowsort
SELECT ALL 99 + 93 AS col1
----
192

query I rowsort
SELECT ALL 5 + + 54 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL + MIN( - 23 ) + - - 5 + + 42 - MAX( + + 81 )
----
-57

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL + MIN ( - 23 ) + - - 5 + + 42 - MAX ( + + 81 )
----
-57

query I rowsort
SELECT DISTINCT 68 col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT DISTINCT 10 + + - NULLIF ( - 19, ( + - 4 ) ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT 10 + + - NULLIF ( - 19, ( + - 4 ) ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9306
SELECT ALL COUNT( * ) + COUNT( * ) DIV + 12
----
1

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL COUNT ( * ) + COUNT ( * ) / + 12
----
1

query I rowsort
SELECT 13 + + 72
----
85

query I rowsort
SELECT 84 * 94
----
7896

query I rowsort
SELECT 20 * 6
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL MIN( DISTINCT 68 )
----
68

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL MIN ( DISTINCT 68 )
----
68

query I rowsort
SELECT - 9 + + NULLIF ( 92, + 0 * 82 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT SUM( + 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT SUM ( + 72 ) AS col0
----
72

query I rowsort
SELECT ALL - ( 62 ) - - 40 * 38
----
1458

query I rowsort
SELECT - 97 * 28
----
-2716

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT ALL 3 DIV 71 col1
----
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL 3 / 71 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT ALL - CAST( NULL AS SIGNED ) * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL - CAST ( NULL AS INTEGER ) * + 70
----
NULL

query I rowsort
SELECT - 67 * 51 AS col0
----
-3417

query I rowsort
SELECT ALL - 14 * + 65
----
-910

query I rowsort
SELECT - 37 * + 0 AS col0
----
0

query I rowsort
SELECT - 43 * 97 AS col2
----
-4171

query I rowsort
SELECT - 54 + 43 AS col2
----
-11

query I rowsort
SELECT - 13 - + 33
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9323
SELECT ALL CASE - 26 WHEN 83 + ( 65 ) THEN NULL WHEN 34 + + 11 THEN NULL ELSE 86 * CAST( - 82 AS SIGNED ) END AS col0
----
-7052

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL CASE - 26 WHEN 83 + ( 65 ) THEN NULL WHEN 34 + + 11 THEN NULL ELSE 86 * CAST ( - 82 AS INTEGER ) END AS col0
----
-7052

query I rowsort
SELECT - 31 + - 8 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT - COUNT( * ) - + 90 * - COUNT( * ) col1
----
89

skipif mysql # not compatible
query I rowsort label-9325
SELECT - COUNT ( * ) - + 90 * - COUNT ( * ) col1
----
89

query I rowsort
SELECT - 7 * 76
----
-532

query I rowsort
SELECT ALL + CASE + 17 WHEN + 7 THEN + 50 ELSE 51 END
----
51

query I rowsort
SELECT ALL + ( + 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL + CASE 69 WHEN - 77 THEN 91 WHEN + 93 THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL + CASE 69 WHEN - 77 THEN 91 WHEN + 93 THEN NULL ELSE - COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT - COUNT( * ) + - 71 * ( COUNT( * ) - - ( + CASE 31 WHEN CASE - 11 WHEN 61 THEN ( 79 ) + COUNT( * ) ELSE NULL END THEN 85 WHEN + ( - CASE 44 WHEN 12 THEN NULL WHEN 88 + MIN( DISTINCT + 46 ) THEN + ( - 92 ) END ) + 75 THEN 86 END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT - COUNT ( * ) + - 71 * ( COUNT ( * ) - - ( + CASE 31 WHEN CASE - 11 WHEN 61 THEN ( 79 ) + COUNT ( * ) ELSE NULL END THEN 85 WHEN + ( - CASE 44 WHEN 12 THEN NULL WHEN 88 + MIN ( DISTINCT + 46 ) THEN + ( - 92 ) END ) + 75 THEN 86 END ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL MIN( ALL 11 ) * - 7 + - 52 * - 60
----
3043

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL MIN ( ALL 11 ) * - 7 + - 52 * - 60
----
3043

query I rowsort
SELECT ALL + 81 * 12 + + 60
----
1032

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT + 4 * MAX( DISTINCT - 3 * + ( 78 ) ) + 87 * + 46
----
3066

skipif mysql # not compatible
query I rowsort label-9333
SELECT + 4 * MAX ( DISTINCT - 3 * + ( 78 ) ) + 87 * + 46
----
3066

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9334
SELECT ALL 16 * NULLIF ( + NULLIF ( + 3, 90 + 17 ) DIV 86, 93 * 39 ) + 28 * COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL 16 * NULLIF ( + NULLIF ( + 3, 90 + 17 ) / 86, 93 * 39 ) + 28 * COUNT ( * )
----
28

query I rowsort
SELECT ALL 85 * 88 + - 10 * + ( ( 3 ) * + 50 ) AS col2
----
5980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT NULLIF ( 54, 53 + CAST( + 60 AS SIGNED ) )
----
54

skipif mysql # not compatible
query I rowsort label-9336
SELECT NULLIF ( 54, 53 + CAST ( + 60 AS INTEGER ) )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9337
SELECT + COUNT( * ) DIV - ( - 32 * - 60 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9337
SELECT + COUNT ( * ) / - ( - 32 * - 60 ) AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9338
SELECT DISTINCT 97 * CAST( NULL AS DECIMAL ) + - 64 / 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT 97 * CAST ( NULL AS REAL ) + - 64 / 47 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9339
SELECT ALL + CAST( + 93 AS SIGNED ) * - COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL + CAST ( + 93 AS INTEGER ) * - COUNT ( * ) AS col0
----
-93

query I rowsort
SELECT ALL 72 * 6 + 57
----
489

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT + COUNT( * ) * + 75
----
75

skipif mysql # not compatible
query I rowsort label-9341
SELECT + COUNT ( * ) * + 75
----
75

query I rowsort
SELECT DISTINCT + 35 * - 95
----
-3325

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT + COALESCE ( - COUNT( * ), COUNT( * ) * - 26 ) * 39
----
-39

skipif mysql # not compatible
query I rowsort label-9343
SELECT + COALESCE ( - COUNT ( * ), COUNT ( * ) * - 26 ) * 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL + ( SUM( 7 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + ( SUM ( 7 ) ) AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9345
SELECT ALL COUNT( ALL 62 ) DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL COUNT ( ALL 62 ) / + COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT + ( 53 ) DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-9346
SELECT + ( 53 ) / 63
----
0

query I rowsort
SELECT ALL 9 * 45 + 41 * - 87
----
-3162

query I rowsort
SELECT ALL 15 * + ( 68 ) - + 51
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT COUNT( * ) * 55 - 59
----
-4

skipif mysql # not compatible
query I rowsort label-9349
SELECT COUNT ( * ) * 55 - 59
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT - COALESCE ( + 54, COUNT( + 69 ) ) * 2
----
-108

skipif mysql # not compatible
query I rowsort label-9350
SELECT - COALESCE ( + 54, COUNT ( + 69 ) ) * 2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT + COUNT( ALL + 48 ) - - ( - 82 ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-9351
SELECT + COUNT ( ALL + 48 ) - - ( - 82 ) col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT ALL + + COALESCE ( - 76, + 47, + 21 * + COUNT( DISTINCT 61 * + 23 ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL + + COALESCE ( - 76, + 47, + 21 * + COUNT ( DISTINCT 61 * + 23 ) ) AS col0
----
-76

query I rowsort
SELECT ALL ( 25 ) * 57 AS col0
----
1425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT + - COUNT( * ) * + CAST( 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-9354
SELECT + - COUNT ( * ) * + CAST ( 97 AS INTEGER )
----
-97

query I rowsort
SELECT DISTINCT 30 * - 51 AS col2
----
-1530

query I rowsort
SELECT - - ( - 43 ) col2
----
-43

query I rowsort
SELECT + - 49 - - 18
----
-31

query I rowsort
SELECT DISTINCT 97 * 31 AS col1
----
3007

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT - CASE - ( 22 ) WHEN 33 THEN NULLIF ( - COUNT( * ), - 26 ) WHEN - 35 + + NULLIF ( NULLIF ( 31, AVG ( 56 ) / - 2 ), 28 ) THEN - 13 / + 38 - + 78 WHEN 64 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT - CASE - ( 22 ) WHEN 33 THEN NULLIF ( - COUNT ( * ), - 26 ) WHEN - 35 + + NULLIF ( NULLIF ( 31, AVG ( 56 ) / - 2 ), 28 ) THEN - 13 / + 38 - + 78 WHEN 64 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 98 + + 87 AS col1
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT DISTINCT + COUNT( * ) + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT + COUNT ( * ) + - 76
----
-75

query I rowsort
SELECT + 12 + + ( + 44 ) col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9363
SELECT + + 22 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-9363
SELECT + + 22 / - 82
----
0

query I rowsort
SELECT DISTINCT + 11 + 42
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9365
SELECT DISTINCT + 84 + NULLIF ( CASE COUNT( DISTINCT 96 ) WHEN - ( - CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) THEN 4 / COUNT( * ) WHEN - NULLIF ( 69, + 26 ) * - 98 THEN 57 END, - NULLIF ( - 26, 48 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT + 84 + NULLIF ( CASE COUNT ( DISTINCT 96 ) WHEN - ( - CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) THEN 4 / COUNT ( * ) WHEN - NULLIF ( 69, + 26 ) * - 98 THEN 57 END, - NULLIF ( - 26, 48 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL COALESCE ( + 4, NULLIF ( 76, - 48 ), - COUNT( * ) * COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL COALESCE ( + 4, NULLIF ( 76, - 48 ), - COUNT ( * ) * COUNT ( * ) )
----
4

query I rowsort
SELECT - 53 * + 90
----
-4770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT + CAST( 52 AS SIGNED ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9368
SELECT + CAST ( 52 AS INTEGER ) AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9369
SELECT ALL 50 DIV + 53 + + 24
----
24

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL 50 / + 53 + + 24
----
24

query I rowsort
SELECT - 17 + + - 98
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT - COUNT( * ) * + - 88
----
88

skipif mysql # not compatible
query I rowsort label-9371
SELECT - COUNT ( * ) * + - 88
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT DISTINCT 93 DIV + 7 + 79
----
92

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT 93 / + 7 + 79
----
92

query I rowsort
SELECT DISTINCT 41 * - + 79
----
-3239

query I rowsort
SELECT ALL + COALESCE ( - 43, - 23, + 35 ) AS col2
----
-43

query I rowsort
SELECT ALL + NULLIF ( 86, + 48 * 3 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT + MIN( ALL - 13 ) * 38 + COUNT( * )
----
-493

skipif mysql # not compatible
query I rowsort label-9376
SELECT + MIN ( ALL - 13 ) * 38 + COUNT ( * )
----
-493

query I rowsort
SELECT - 57 * - 52 AS col0
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT 13 * - - SUM( + 86 ) + + 4
----
1122

skipif mysql # not compatible
query I rowsort label-9378
SELECT 13 * - - SUM ( + 86 ) + + 4
----
1122

query I rowsort
SELECT 20 - - 65 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT COALESCE ( + 46, COUNT( 51 ) + 76 ) * ( ( 14 ) * - 40 ) AS col0
----
-25760

skipif mysql # not compatible
query I rowsort label-9380
SELECT COALESCE ( + 46, COUNT ( 51 ) + 76 ) * ( ( 14 ) * - 40 ) AS col0
----
-25760

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL + ( - ( 13 ) ) * - NULLIF ( - 8 * COUNT( * ), 44 ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL + ( - ( 13 ) ) * - NULLIF ( - 8 * COUNT ( * ), 44 ) AS col1
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT 94 + + - 3 + - 41 DIV 77
----
91

skipif mysql # not compatible
query I rowsort label-9382
SELECT 94 + + - 3 + - 41 / 77
----
91

query I rowsort
SELECT ALL - + ( 2 ) AS col1
----
-2

query I rowsort
SELECT DISTINCT + 22 * 56
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT - COUNT( - + 58 ) * - 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9385
SELECT - COUNT ( - + 58 ) * - 21 AS col1
----
21

query I rowsort
SELECT - 29 + - ( 97 ) AS col1
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-9387
SELECT + 38 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-9387
SELECT + 38 / 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9388
SELECT ALL - 6 DIV 3 * COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - 6 / 3 * COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - MAX( ALL - 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-9389
SELECT - MAX ( ALL - 73 ) AS col1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT CAST( ( 97 ) AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9390
SELECT CAST ( ( 97 ) AS INTEGER ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ALL - + COUNT( * ) + 40 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL - + COUNT ( * ) + 40 AS col2
----
39

query I rowsort
SELECT ALL + 82 + + + 48
----
130

query I rowsort
SELECT ALL 58 + + 6
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT DISTINCT - MAX( + 57 ) + - 13 col0
----
-70

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT - MAX ( + 57 ) + - 13 col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL + SUM( ALL - + 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + SUM ( ALL - + 27 ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT NULLIF ( + CASE - 69 WHEN - 15 * 62 THEN MAX( + NULLIF ( 44, 61 + 7 ) ) * 77 ELSE NULL END, CASE 19 WHEN + 39 THEN - AVG ( - 49 ) * + ( - 92 ) ELSE - 49 * 97 END * + 2 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT NULLIF ( + CASE - 69 WHEN - 15 * 62 THEN MAX ( + NULLIF ( 44, 61 + 7 ) ) * 77 ELSE NULL END, CASE 19 WHEN + 39 THEN - AVG ( - 49 ) * + ( - 92 ) ELSE - 49 * 97 END * + 2 ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 80 + + COALESCE ( + COALESCE ( + 10, + 9 * - 72 ), - 60 ) AS col2
----
90

query I rowsort
SELECT ALL 15 * + ( 52 ) + - 12 AS col2
----
768

query I rowsort
SELECT 50 + - 64 AS col1
----
-14

query I rowsort
SELECT ( 8 ) - + - 2
----
10

query II rowsort
SELECT 84, - 34 AS col0
----
84
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL + 89 * - - NULLIF ( COUNT( * ), 56 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL + 89 * - - NULLIF ( COUNT ( * ), 56 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT DISTINCT 93 - + COUNT( * ) col0
----
92

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT 93 - + COUNT ( * ) col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9404
SELECT ALL + COUNT( * ) * - CASE 53 WHEN 32 + - 62 * + NULLIF ( - 56 * CASE + 90 WHEN MAX( ALL + 85 ) + + 82 THEN NULL ELSE 93 + 83 END + - 73 * + 11, + ( CAST( + 4 AS SIGNED ) ) ) THEN NULL ELSE - NULLIF ( + 94, NULLIF ( + MIN( DISTINCT 33 ), + COUNT( * ) ) ) * - 1 END AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL + COUNT ( * ) * - CASE 53 WHEN 32 + - 62 * + NULLIF ( - 56 * CASE + 90 WHEN MAX ( ALL + 85 ) + + 82 THEN NULL ELSE 93 + 83 END + - 73 * + 11, + ( CAST ( + 4 AS INTEGER ) ) ) THEN NULL ELSE - NULLIF ( + 94, NULLIF ( + MIN ( DISTINCT 33 ), + COUNT ( * ) ) ) * - 1 END AS col2
----
-94

query I rowsort
SELECT ALL 69 - + + 29 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT 69 * COUNT( DISTINCT - ( + 20 ) )
----
69

skipif mysql # not compatible
query I rowsort label-9406
SELECT 69 * COUNT ( DISTINCT - ( + 20 ) )
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9407
SELECT 17 DIV + 80 + - + 21 + + 29 * CAST( - 45 AS SIGNED ) AS col1
----
-1326

skipif mysql # not compatible
query I rowsort label-9407
SELECT 17 / + 80 + - + 21 + + 29 * CAST ( - 45 AS INTEGER ) AS col1
----
-1326

onlyif mysql # DIV for integer division: 
query I rowsort label-9408
SELECT 75 DIV - 49 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9408
SELECT 75 / - 49 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9409
SELECT 92 AS col2, - 1 + - CAST( 6 AS SIGNED )
----
92
-7

skipif mysql # not compatible
query II rowsort label-9409
SELECT 92 AS col2, - 1 + - CAST ( 6 AS INTEGER )
----
92
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9410
SELECT - 1 / + + 49 * + COUNT( * ) + - CAST( COALESCE ( - SUM( - 91 ), COUNT( * ) ) AS SIGNED ) / MAX( + 25 + NULLIF ( CAST( NULL AS DECIMAL ), 48 / 34 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT - 1 / + + 49 * + COUNT ( * ) + - CAST ( COALESCE ( - SUM ( - 91 ), COUNT ( * ) ) AS INTEGER ) / MAX ( + 25 + NULLIF ( CAST ( NULL AS REAL ), 48 / 34 ) )
----
NULL

query I rowsort
SELECT ALL - 45 - - 50 + 64
----
69

query I rowsort
SELECT NULLIF ( + - 82, + ( 61 ) )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9413
SELECT DISTINCT - COUNT( * ) AS col0, - CASE ( 17 ) WHEN + ( 70 ) THEN - 85 END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9413
SELECT DISTINCT - COUNT ( * ) AS col0, - CASE ( 17 ) WHEN + ( 70 ) THEN - 85 END
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9414
SELECT ALL + + 15 * - - CASE + - SUM( DISTINCT - 72 ) WHEN COUNT( ALL + COALESCE ( 14, 47 * + ( - CAST( NULL AS SIGNED ) ) + + 24 ) ) THEN NULL WHEN - 53 THEN 69 + - CASE - 47 WHEN - MAX( 51 ) * - ( - 36 ) THEN + MIN( ALL 74 ) * + 6 + + 89 WHEN - COALESCE ( CAST( NULL AS SIGNED ), AVG ( DISTINCT 71 ) ) * - 5 THEN 9 ELSE + COUNT( * ) * 26 END ELSE 16 END * 4 AS col0
----
960

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL + + 15 * - - CASE + - SUM ( DISTINCT - 72 ) WHEN COUNT ( ALL + COALESCE ( 14, 47 * + ( - CAST ( NULL AS INTEGER ) ) + + 24 ) ) THEN NULL WHEN - 53 THEN 69 + - CASE - 47 WHEN - MAX ( 51 ) * - ( - 36 ) THEN + MIN ( ALL 74 ) * + 6 + + 89 WHEN - COALESCE ( CAST ( NULL AS INTEGER ), AVG ( DISTINCT 71 ) ) * - 5 THEN 9 ELSE + COUNT ( * ) * 26 END ELSE 16 END * 4 AS col0
----
960

query I rowsort
SELECT DISTINCT + 10 + + - 71 * + - 62 * + 43
----
189296

query II rowsort
SELECT DISTINCT - 46 AS col2, 75
----
-46
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + COUNT( - - 77 ) - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9417
SELECT + COUNT ( - - 77 ) - + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT + 75 + - + 66 * + - SUM( + 57 ) * - 58
----
-218121

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT + 75 + - + 66 * + - SUM ( + 57 ) * - 58
----
-218121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9419
SELECT ALL - 17 + - 74 - 61 DIV COUNT( * ) AS col2
----
-152

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL - 17 + - 74 - 61 / COUNT ( * ) AS col2
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT DISTINCT + 95 + 99 DIV 48 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT + 95 + 99 / 48 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL COUNT( * ) + + 69 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL COUNT ( * ) + + 69 AS col1
----
70

query I rowsort
SELECT 74 - 54 - 38 col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - SUM( - 34 ) + + 81
----
115

skipif mysql # not compatible
query I rowsort label-9423
SELECT - SUM ( - 34 ) + + 81
----
115

query I rowsort
SELECT - 30 - + - 36 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT - ( + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9425
SELECT - ( + COUNT ( * ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT + MIN( 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-9426
SELECT + MIN ( 82 ) AS col0
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9427
SELECT - CAST( NULL AS DECIMAL ) AS col1, 17
----
NULL
17

skipif mysql # not compatible
query II rowsort label-9427
SELECT - CAST ( NULL AS REAL ) AS col1, 17
----
NULL
17

query I rowsort
SELECT 50 * 85 * + - 3 * - 48
----
612000

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT SUM( DISTINCT 38 ) + + COUNT( * ) * 88
----
126

skipif mysql # not compatible
query I rowsort label-9429
SELECT SUM ( DISTINCT 38 ) + + COUNT ( * ) * 88
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-9430
SELECT ALL 88 * 33, - COUNT( * ) col0
----
2904
-1

skipif mysql # not compatible
query II rowsort label-9430
SELECT ALL 88 * 33, - COUNT ( * ) col0
----
2904
-1

query I rowsort
SELECT ALL - 94 - - 86 + COALESCE ( - NULLIF ( 60, 90 ), + 41 * + 3, + 58 + 89 ) col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT DISTINCT COUNT( * ) * + 67 * 17 AS col1
----
1139

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT COUNT ( * ) * + 67 * 17 AS col1
----
1139

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL COALESCE ( - + CASE - ( - 89 ) WHEN - 50 THEN NULL WHEN + 49 THEN 93 + 56 * 94 ELSE - 80 END, - COUNT( * ) ) - + 1 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL COALESCE ( - + CASE - ( - 89 ) WHEN - 50 THEN NULL WHEN + 49 THEN 93 + 56 * 94 ELSE - 80 END, - COUNT ( * ) ) - + 1 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ( - ( - 3 ) ) * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9434
SELECT ( - ( - 3 ) ) * - COUNT ( * )
----
-3

query I rowsort
SELECT ALL 52 * 14 AS col0
----
728

query I rowsort
SELECT + 11 * + - 26 AS col0
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT + CASE 70 WHEN + 28 THEN - COUNT( * ) + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT + CASE 70 WHEN + 28 THEN - COUNT ( * ) + 93 END
----
NULL

query I rowsort
SELECT + ( 77 ) + - - 24 AS col2
----
101

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9439
SELECT ALL 75 DIV - - CAST( - 86 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL 75 / - - CAST ( - 86 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT + 80 * COUNT( DISTINCT + - 38 ) * COALESCE ( - CASE + 92 WHEN - 84 THEN NULL ELSE 88 * - 73 + + 29 * + COUNT( * ) END, 47 * - 81 ) * - 91 AS col0
----
-46555600

skipif mysql # not compatible
query I rowsort label-9440
SELECT + 80 * COUNT ( DISTINCT + - 38 ) * COALESCE ( - CASE + 92 WHEN - 84 THEN NULL ELSE 88 * - 73 + + 29 * + COUNT ( * ) END, 47 * - 81 ) * - 91 AS col0
----
-46555600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT 14 * + - CASE + + 46 WHEN - 96 * MAX( ALL 18 ) - - MAX( DISTINCT - 82 ) THEN - 27 WHEN 6 * 12 THEN + NULLIF ( - 0, - 46 * 48 + 22 * CAST( + ( - 27 ) AS SIGNED ) ) END - + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT 14 * + - CASE + + 46 WHEN - 96 * MAX ( ALL 18 ) - - MAX ( DISTINCT - 82 ) THEN - 27 WHEN 6 * 12 THEN + NULLIF ( - 0, - 46 * 48 + 22 * CAST ( + ( - 27 ) AS INTEGER ) ) END - + 1 AS col0
----
NULL

query I rowsort
SELECT + CASE + 9 WHEN - - 89 THEN 63 + + 93 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9443
SELECT + + CAST( + 7 AS SIGNED ) + - 40 + + + ( 70 ) * - 92 * + MIN( ALL 23 + 33 )
----
-360673

skipif mysql # not compatible
query I rowsort label-9443
SELECT + + CAST ( + 7 AS INTEGER ) + - 40 + + + ( 70 ) * - 92 * + MIN ( ALL 23 + 33 )
----
-360673

query I rowsort
SELECT + + 92 * - 97 + - 11 + 80 - + 28 * 8 * - 29
----
-2359

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT - - SUM( ALL 10 ) + + COUNT( * ) + + ( ( + 70 ) )
----
81

skipif mysql # not compatible
query I rowsort label-9445
SELECT - - SUM ( ALL 10 ) + + COUNT ( * ) + + ( ( + 70 ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT - MAX( - + 30 ) * - 83 + + 39 AS col1
----
-2451

skipif mysql # not compatible
query I rowsort label-9446
SELECT - MAX ( - + 30 ) * - 83 + + 39 AS col1
----
-2451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9447
SELECT ALL - - CAST( NULL AS SIGNED ) * + 32 + + 65 * - ( 15 ) + - 51 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 32 + + 65 * - ( 15 ) + - 51 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9448
SELECT + 75 * 74 DIV + 3 * + 30 DIV 30 + 99
----
1949

skipif mysql # not compatible
query I rowsort label-9448
SELECT + 75 * 74 / + 3 * + 30 / 30 + 99
----
1949

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT - 66 * - + COUNT( * ) - - - 74
----
-8

skipif mysql # not compatible
query I rowsort label-9449
SELECT - 66 * - + COUNT ( * ) - - - 74
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9450
SELECT DISTINCT - COUNT( * ) * + 58 - + 95 DIV - 58 + - 35 * - 78 AS col0
----
2673

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT - COUNT ( * ) * + 58 - + 95 / - 58 + - 35 * - 78 AS col0
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL - ( ( + ( + + ( - 4 ) ) ) ) * ( 52 * - 48 + - 16 ) + - COUNT( * ) * 27
----
-10075

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - ( ( + ( + + ( - 4 ) ) ) ) * ( 52 * - 48 + - 16 ) + - COUNT ( * ) * 27
----
-10075

query I rowsort
SELECT ALL + + ( + + 49 ) AS col0
----
49

query I rowsort
SELECT DISTINCT + + 75 AS col0
----
75

query I rowsort
SELECT - - 85 + - 70 AS col0
----
15

query I rowsort
SELECT - + 10 + - + ( 57 ) + 83
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL - + 3 + + ( CASE 24 WHEN - 25 + - 38 THEN 63 WHEN 94 THEN + 8 * 69 END ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - + 3 + + ( CASE 24 WHEN - 25 + - 38 THEN 63 WHEN 94 THEN + 8 * 69 END ) * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 72 - - 76
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT COUNT( - 7 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT COUNT ( - 7 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT - 94 * + - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9459
SELECT - 94 * + - COUNT ( * ) AS col2
----
94

query I rowsort
SELECT DISTINCT ( 75 ) AS col0
----
75

query I rowsort
SELECT DISTINCT - 7 * + 35 AS col1
----
-245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9462
SELECT ALL 83 AS col2, - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-9462
SELECT ALL 83 AS col2, - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
83
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9463
SELECT - COUNT( * ) DIV - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT - COUNT ( * ) / - 79 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( 73, + 93 * 33 + 83 + 2 )
----
73

query II rowsort
SELECT 47 AS col1, + 34
----
47
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL ( - NULLIF ( - COUNT( DISTINCT ( - + 75 ) ), ( - 92 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL ( - NULLIF ( - COUNT ( DISTINCT ( - + 75 ) ), ( - 92 ) ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT ALL - 63 DIV - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL - 63 / - 86 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9469
SELECT - COUNT( * ) DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT - COUNT ( * ) / 28
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9470
SELECT + 17 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-9470
SELECT + 17 / - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - COUNT( * ) + - - 66
----
65

skipif mysql # not compatible
query I rowsort label-9471
SELECT - COUNT ( * ) + - - 66
----
65

query I rowsort
SELECT - 87 - + 31 AS col2
----
-118

query I rowsort
SELECT + 93 * 18 AS col0
----
1674

onlyif mysql # aggregate syntax: 
query II rowsort label-9474
SELECT ALL 58 AS col1, NULLIF ( - 52, + + COUNT( * ) * + 26 * - 36 )
----
58
-52

skipif mysql # not compatible
query II rowsort label-9474
SELECT ALL 58 AS col1, NULLIF ( - 52, + + COUNT ( * ) * + 26 * - 36 )
----
58
-52

query I rowsort
SELECT DISTINCT 34 * - - 42
----
1428

query I rowsort
SELECT DISTINCT ( 2 )
----
2

query I rowsort
SELECT DISTINCT + NULLIF ( + 31, - 77 * - 12 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + 74 + - - CASE - 77 WHEN + - COUNT( - 36 ) * - 44 THEN + 2 + - 46 ELSE NULL END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT + 74 + - - CASE - 77 WHEN + - COUNT ( - 36 ) * - 44 THEN + 2 + - 46 ELSE NULL END + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9479
SELECT + CASE ( - CAST( 91 AS SIGNED ) ) WHEN - 42 THEN + 90 * AVG ( DISTINCT + 28 ) WHEN 19 * 73 THEN - ( + ( - CASE + 62 WHEN 77 THEN + 52 END ) ) + - MIN( 68 + + 18 ) WHEN + 58 THEN 96 + + COUNT( * ) WHEN - 26 / - 3 THEN NULL ELSE 51 END
----
51

skipif mysql # not compatible
query I rowsort label-9479
SELECT + CASE ( - CAST ( 91 AS INTEGER ) ) WHEN - 42 THEN + 90 * AVG ( DISTINCT + 28 ) WHEN 19 * 73 THEN - ( + ( - CASE + 62 WHEN 77 THEN + 52 END ) ) + - MIN ( 68 + + 18 ) WHEN + 58 THEN 96 + + COUNT ( * ) WHEN - 26 / - 3 THEN NULL ELSE 51 END
----
51

query I rowsort
SELECT ALL + ( - ( - + 55 ) ) AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT DISTINCT + ( - + 37 ) / + 65 + - 78 * + - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + ( - + 37 ) / + 65 + - 78 * + - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9482
SELECT ALL - - 57 DIV - 42 + + 8 + + + COUNT( * ) * - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL - - 57 / - 42 + + 8 + + + COUNT ( * ) * - COUNT ( * ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9483
SELECT DISTINCT + + 91 DIV + 80 + 35 + - 98 col0
----
-62

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT + + 91 / + 80 + 35 + - 98 col0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9484
SELECT 17, + 43 DIV 64 + - ( 93 ) - 1 DIV COUNT( * ) AS col2
----
17
-94

skipif mysql # not compatible
query II rowsort label-9484
SELECT 17, + 43 / 64 + - ( 93 ) - 1 / COUNT ( * ) AS col2
----
17
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9485
SELECT ALL + 13 * - 6 * + COUNT( * ) * + 54 * MAX( - 10 ) * - AVG ( DISTINCT + 80 * CAST( NULL AS SIGNED ) + - 84 * 91 ) + + CASE - 93 WHEN 93 THEN NULL WHEN + CAST( NULL AS DECIMAL ) + + 79 THEN 85 + COUNT( * ) END + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL + 13 * - 6 * + COUNT ( * ) * + 54 * MAX ( - 10 ) * - AVG ( DISTINCT + 80 * CAST ( NULL AS INTEGER ) + - 84 * 91 ) + + CASE - 93 WHEN 93 THEN NULL WHEN + CAST ( NULL AS REAL ) + + 79 THEN 85 + COUNT ( * ) END + 85 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9486
SELECT DISTINCT 5 * + MIN( ALL + - ( - 93 ) ) * + MIN( ALL 47 ) * - MAX( ALL - CAST( 31 AS SIGNED ) ) + - 15
----
677490

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT 5 * + MIN ( ALL + - ( - 93 ) ) * + MIN ( ALL 47 ) * - MAX ( ALL - CAST ( 31 AS INTEGER ) ) + - 15
----
677490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9487
SELECT ALL 43 * + 56 + + COUNT( * ) + + - 81 * + - CAST( NULL AS SIGNED ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL 43 * + 56 + + COUNT ( * ) + + - 81 * + - CAST ( NULL AS INTEGER ) + + 26
----
NULL

query I rowsort
SELECT + - ( + 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT COUNT( DISTINCT + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-9489
SELECT COUNT ( DISTINCT + 18 )
----
1

query I rowsort
SELECT ALL - NULLIF ( - 23, 30 ) * - 98 + + + 82 * - 29
----
-4632

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT + - 89 * - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9491
SELECT + - 89 * - COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL + 78 * 94 - + 76 + COUNT( * ) AS col2
----
7257

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL + 78 * 94 - + 76 + COUNT ( * ) AS col2
----
7257

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT - 68 * MAX( - - 17 ) + + ( - ( - 99 ) ) * - 54
----
-6502

skipif mysql # not compatible
query I rowsort label-9493
SELECT - 68 * MAX ( - - 17 ) + + ( - ( - 99 ) ) * - 54
----
-6502

query II rowsort
SELECT DISTINCT + 32 AS col1, 25
----
32
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT + MAX( DISTINCT 43 ) - + 50
----
-7

skipif mysql # not compatible
query I rowsort label-9495
SELECT + MAX ( DISTINCT 43 ) - + 50
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT + MIN( ALL + - 32 ) - + + 81 col1
----
-113

skipif mysql # not compatible
query I rowsort label-9496
SELECT + MIN ( ALL + - 32 ) - + + 81 col1
----
-113

query I rowsort
SELECT - - 48 * + 69
----
3312

query I rowsort
SELECT - ( + - 2 )
----
2

query I rowsort
SELECT DISTINCT - 32 * 38 AS col1
----
-1216

query I rowsort
SELECT - - ( + 9 )
----
9

query I rowsort
SELECT CASE - 99 WHEN - 94 * 21 + - 72 THEN NULL WHEN 99 THEN + 84 / 47 + 19 ELSE - 31 END
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9502
SELECT - 71 * + + MAX( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT - 71 * + + MAX ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT ALL CAST( - - 8 AS SIGNED ) col1
----
8

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL CAST ( - - 8 AS INTEGER ) col1
----
8

query I rowsort
SELECT - ( + ( - - 72 ) ) - 11 AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9505
SELECT COUNT( DISTINCT CAST( + 2 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9505
SELECT COUNT ( DISTINCT CAST ( + 2 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT + 17 + - 68 * + 7 * 69 * COUNT( * ) col0
----
-32827

skipif mysql # not compatible
query I rowsort label-9506
SELECT + 17 + - 68 * + 7 * 69 * COUNT ( * ) col0
----
-32827

query I rowsort
SELECT + 35 * - - NULLIF ( + 1, - + 1 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT 4 * + 51 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT 4 * + 51 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT 7 + + COUNT( * ) - - 38 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9509
SELECT 7 + + COUNT ( * ) - - 38 AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9510
SELECT 94 AS col2, - 88 + - 66 + COUNT( DISTINCT 22 ) * + 85 * 17
----
94
1291

skipif mysql # not compatible
query II rowsort label-9510
SELECT 94 AS col2, - 88 + - 66 + COUNT ( DISTINCT 22 ) * + 85 * 17
----
94
1291

query I rowsort
SELECT 88 + 4 AS col1
----
92

query I rowsort
SELECT 94 * - 82 * 85 AS col1
----
-655180

onlyif mysql # DIV for integer division: 
query I rowsort label-9513
SELECT ALL 11 DIV + 36 * + + 33
----
0

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL 11 / + 36 * + + 33
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9514
SELECT - 2, ( 22 ) DIV + 5 AS col2
----
-2
4

skipif mysql # not compatible
query II rowsort label-9514
SELECT - 2, ( 22 ) / + 5 AS col2
----
-2
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT 20 * + + 42 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT 20 * + + 42 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9516
SELECT DISTINCT 62 AS col1, + COUNT( * ) * - 93 AS col2
----
62
-93

skipif mysql # not compatible
query II rowsort label-9516
SELECT DISTINCT 62 AS col1, + COUNT ( * ) * - 93 AS col2
----
62
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9517
SELECT ALL - MIN( DISTINCT + 81 ) + 95 * CAST( 81 AS SIGNED )
----
7614

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - MIN ( DISTINCT + 81 ) + 95 * CAST ( 81 AS INTEGER )
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT 9 + - + 96 * + COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9518
SELECT 9 + - + 96 * + COUNT ( * ) AS col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9519
SELECT + CAST( - 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9519
SELECT + CAST ( - 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9520
SELECT ALL + 90 * + COUNT( * ) * - ( + 89 ) + NULLIF ( - - 9, 68 ) DIV 68 AS col0
----
-8010

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL + 90 * + COUNT ( * ) * - ( + 89 ) + NULLIF ( - - 9, 68 ) / 68 AS col0
----
-8010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT + 33 + + 51 + NULLIF ( + 19, CAST( NULL AS SIGNED ) + + 81 ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-9521
SELECT + 33 + + 51 + NULLIF ( + 19, CAST ( NULL AS INTEGER ) + + 81 ) AS col2
----
103

query I rowsort
SELECT ALL + 79 + + 18 * + - 34 AS col1
----
-533

query I rowsort
SELECT DISTINCT - - ( - 92 ) AS col1
----
-92

query I rowsort
SELECT ALL 86 + + 91 AS col1
----
177

query I rowsort
SELECT 93 * - 51 - + - 43 AS col2
----
-4700

query I rowsort
SELECT DISTINCT - - 25 col0
----
25

query II rowsort
SELECT ALL - - NULLIF ( + 98, - 17 + 67 ) AS col2, 36
----
98
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9528
SELECT - 82 + - 36 + + 23 DIV - 48 * 2
----
-118

skipif mysql # not compatible
query I rowsort label-9528
SELECT - 82 + - 36 + + 23 / - 48 * 2
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-9529
SELECT ALL - COUNT( * ) - - 96, 51 / - 89 + + + CASE + 68 WHEN COUNT( * ) THEN 52 WHEN COALESCE ( 91, + 11 ) THEN 71 ELSE NULL END AS col2
----
95
NULL

skipif mysql # not compatible
query II rowsort label-9529
SELECT ALL - COUNT ( * ) - - 96, 51 / - 89 + + + CASE + 68 WHEN COUNT ( * ) THEN 52 WHEN COALESCE ( 91, + 11 ) THEN 71 ELSE NULL END AS col2
----
95
NULL

query I rowsort
SELECT + 22 * - 31 AS col1
----
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT + 15 * + 94 + COUNT( * )
----
1411

skipif mysql # not compatible
query I rowsort label-9531
SELECT + 15 * + 94 + COUNT ( * )
----
1411

query I rowsort
SELECT - ( 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9533
SELECT + COUNT( * ) * - SUM( - 88 ) + + 99 + - NULLIF ( - 40, - 79 * COUNT( * ) ) DIV + 34
----
188

skipif mysql # not compatible
query I rowsort label-9533
SELECT + COUNT ( * ) * - SUM ( - 88 ) + + 99 + - NULLIF ( - 40, - 79 * COUNT ( * ) ) / + 34
----
188

query I rowsort
SELECT + 19 * + 62 - - 25 - + 52 AS col2
----
1151

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL - + ( + - MIN( ALL - + 26 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL - + ( + - MIN ( ALL - + 26 ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL - COALESCE ( + - 62, + - COUNT( * ) * + + 14 + COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL - COALESCE ( + - 62, + - COUNT ( * ) * + + 14 + COUNT ( * ) )
----
62

query II rowsort
SELECT DISTINCT - 11, 72 AS col0
----
-11
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT SUM( 31 ) * 78 AS col1
----
2418

skipif mysql # not compatible
query I rowsort label-9538
SELECT SUM ( 31 ) * 78 AS col1
----
2418

query I rowsort
SELECT ALL ( + - 15 ) * - 4 * + 10 * - - 27 + - 23 + - 60 * - 69
----
20317

onlyif mysql # DIV for integer division: 
query I rowsort label-9540
SELECT 29 DIV - - 16 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9540
SELECT 29 / - - 16 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9541
SELECT ( - 14 ) + + + COUNT( * ) * + COUNT( * ) * - 62 - 31 - 22 * 64 DIV + COUNT( * ) AS col0
----
-1515

skipif mysql # not compatible
query I rowsort label-9541
SELECT ( - 14 ) + + + COUNT ( * ) * + COUNT ( * ) * - 62 - 31 - 22 * 64 / + COUNT ( * ) AS col0
----
-1515

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT ALL 29 * - - 75 * + CASE + COALESCE ( + + 80, ( ( - 54 ) ) ) WHEN - 92 / + 98 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL 29 * - - 75 * + CASE + COALESCE ( + + 80, ( ( - 54 ) ) ) WHEN - 92 / + 98 THEN - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9543
SELECT CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN - COUNT( * ) - + - 50 + + NULLIF ( - 55, 86 * MAX( DISTINCT - 11 ) ) WHEN AVG ( 69 ) * + 96 THEN NULL ELSE NULL END / 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9543
SELECT CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) - + - 50 + + NULLIF ( - 55, 86 * MAX ( DISTINCT - 11 ) ) WHEN AVG ( 69 ) * + 96 THEN NULL ELSE NULL END / 73 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT CAST( NULL AS SIGNED ) / - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT CAST ( NULL AS INTEGER ) / - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT DISTINCT MIN( - 58 ) * + + 98 * - COUNT( * ) + + COUNT( + 75 ) AS col1
----
5685

skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT MIN ( - 58 ) * + + 98 * - COUNT ( * ) + + COUNT ( + 75 ) AS col1
----
5685

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL 23 * + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL 23 * + COUNT ( * ) AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT ( ( + 23 ) ) + - - CAST( + 6 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-9547
SELECT ( ( + 23 ) ) + - - CAST ( + 6 AS INTEGER ) AS col1
----
29

query I rowsort
SELECT DISTINCT ( 90 ) + + 1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT ALL - ( ( CAST( NULL AS SIGNED ) ) ) + AVG ( + 60 ) + + 54 * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL - ( ( CAST ( NULL AS INTEGER ) ) ) + AVG ( + 60 ) + + 54 * + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL + COUNT( * ) + - 56 col1
----
-55

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL + COUNT ( * ) + - 56 col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT 29 + 98 * - NULLIF ( - + 11, COUNT( * ) ) AS col2
----
1107

skipif mysql # not compatible
query I rowsort label-9551
SELECT 29 + 98 * - NULLIF ( - + 11, COUNT ( * ) ) AS col2
----
1107

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL MIN( ALL + 7 ) + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL MIN ( ALL + 7 ) + + COUNT ( * )
----
8

query I rowsort
SELECT 39 + + - 50
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL + 28 * - - 89 * MAX( DISTINCT + 6 ) AS col0
----
14952

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + 28 * - - 89 * MAX ( DISTINCT + 6 ) AS col0
----
14952

query I rowsort
SELECT 54 + 8 AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT ALL + CAST( - 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL + CAST ( - 69 AS INTEGER )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT DISTINCT + + COUNT( * ) * - 31 - - - 87 * + MIN( DISTINCT + - 3 )
----
230

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT + + COUNT ( * ) * - 31 - - - 87 * + MIN ( DISTINCT + - 3 )
----
230

query I rowsort
SELECT DISTINCT NULLIF ( + 10, CASE - - 66 WHEN + + 42 - 5 THEN 26 WHEN + 66 THEN NULL END ) AS col0
----
10

query I rowsort
SELECT ALL + + 63 - + 80
----
-17

query I rowsort
SELECT - 40 + + 12 AS col1
----
-28

query I rowsort
SELECT ALL - - 14 col2
----
14

query I rowsort
SELECT DISTINCT + 0 * 34 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9563
SELECT + 6 DIV + + SUM( 66 ) * + - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9563
SELECT + 6 / + + SUM ( 66 ) * + - 77 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT COUNT( * ) * - 21 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-9564
SELECT COUNT ( * ) * - 21 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT CASE SUM( + 46 ) WHEN + - COUNT( * ) THEN 96 * - 51 WHEN - + 31 THEN NULL WHEN 40 THEN + ( - 34 ) END * - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT CASE SUM ( + 46 ) WHEN + - COUNT ( * ) THEN 96 * - 51 WHEN - + 31 THEN NULL WHEN 40 THEN + ( - 34 ) END * - 96 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT DISTINCT - + ( CAST( NULL AS SIGNED ) ) * + ( 40 ) * 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) ) * + ( 40 ) * 32 AS col0
----
NULL

query I rowsort
SELECT 13 * + + 74 AS col0
----
962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT DISTINCT - CAST( + + 11 AS SIGNED ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT - CAST ( + + 11 AS INTEGER ) AS col0
----
-11

query I rowsort
SELECT + 22 * + - ( + 48 )
----
-1056

query I rowsort
SELECT 46 + 93
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT + 23 AS col2, 90 * - - CASE + - 63 WHEN COUNT( * ) THEN NULL WHEN 85 * + - 39 THEN 22 END
----
23
NULL

skipif mysql # not compatible
query II rowsort label-9571
SELECT + 23 AS col2, 90 * - - CASE + - 63 WHEN COUNT ( * ) THEN NULL WHEN 85 * + - 39 THEN 22 END
----
23
NULL

query I rowsort
SELECT + 0 * 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL 82 + - COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL 82 + - COUNT ( * ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT - SUM( DISTINCT + 23 ) + - ( + + 25 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9574
SELECT - SUM ( DISTINCT + 23 ) + - ( + + 25 ) AS col2
----
-48

query I rowsort
SELECT + 0 * ( - 25 ) + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT ALL SUM( + 68 ) + - CASE 67 WHEN + COUNT( 29 ) THEN NULL ELSE - + 96 END AS col2
----
164

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL SUM ( + 68 ) + - CASE 67 WHEN + COUNT ( 29 ) THEN NULL ELSE - + 96 END AS col2
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9578
SELECT DISTINCT 81 + - 15 - COUNT( * ) * + 14 * + + 12 + - 35 + + - 25 * 80 * 89 + - 12 * ( 14 ) DIV 95 AS col1
----
-178138

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT 81 + - 15 - COUNT ( * ) * + 14 * + + 12 + - 35 + + - 25 * 80 * 89 + - 12 * ( 14 ) / 95 AS col1
----
-178138

onlyif mysql # DIV for integer division: 
query I rowsort label-9579
SELECT + 52 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-9579
SELECT + 52 / + 77
----
0

query I rowsort
SELECT + 10 - + + 30 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT ALL COUNT( * ) + - NULLIF ( - - 63, 9 ) * - 1
----
64

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL COUNT ( * ) + - NULLIF ( - - 63, 9 ) * - 1
----
64

query I rowsort
SELECT ALL 10 * - 52
----
-520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9583
SELECT + 74 + 1 + + CAST( + SUM( ALL + 9 ) AS SIGNED ) * + 11
----
174

skipif mysql # not compatible
query I rowsort label-9583
SELECT + 74 + 1 + + CAST ( + SUM ( ALL + 9 ) AS INTEGER ) * + 11
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT + 15 * - NULLIF ( - - CAST( + 17 AS SIGNED ), + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT + 15 * - NULLIF ( - - CAST ( + 17 AS INTEGER ), + 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT - COUNT( + - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-9585
SELECT - COUNT ( + - 57 )
----
-1

query I rowsort
SELECT - + ( - - 2 )
----
-2

query I rowsort
SELECT DISTINCT + 71 - - - 10 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT + - 7 + - MAX( ALL - 71 ) * + + 70 + - - 53 + + + MAX( DISTINCT + NULLIF ( + + 2, + 6 ) )
----
5018

skipif mysql # not compatible
query I rowsort label-9588
SELECT + - 7 + - MAX ( ALL - 71 ) * + + 70 + - - 53 + + + MAX ( DISTINCT + NULLIF ( + + 2, + 6 ) )
----
5018

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT + + ( 68 ) * CASE COUNT( * ) WHEN ( + + NULLIF ( + - 51, 73 ) ) THEN + 9 ELSE ( - 76 ) + + 74 END * 63 + 97 AS col2
----
-8471

skipif mysql # not compatible
query I rowsort label-9589
SELECT + + ( 68 ) * CASE COUNT ( * ) WHEN ( + + NULLIF ( + - 51, 73 ) ) THEN + 9 ELSE ( - 76 ) + + 74 END * 63 + 97 AS col2
----
-8471

query I rowsort
SELECT + 4 + + + 28 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT + + SUM( DISTINCT ( + 95 ) )
----
95

skipif mysql # not compatible
query I rowsort label-9591
SELECT + + SUM ( DISTINCT ( + 95 ) )
----
95

query I rowsort
SELECT + 17 + + + 34 col2
----
51

query II rowsort
SELECT ALL + 2 col2, - 21
----
2
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT + - SUM( DISTINCT + 4 ) * 11 + 73 + + 46 + COUNT( * ) * - + 52
----
23

skipif mysql # not compatible
query I rowsort label-9594
SELECT + - SUM ( DISTINCT + 4 ) * 11 + 73 + + 46 + COUNT ( * ) * - + 52
----
23

query I rowsort
SELECT DISTINCT + 44 * + 11 col0
----
484

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT 0 / + - 65 + - + 97 * 3 + CASE 16 WHEN + COALESCE ( - 84, 27 ) * 43 THEN COUNT( * ) WHEN 11 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT 0 / + - 65 + - + 97 * 3 + CASE 16 WHEN + COALESCE ( - 84, 27 ) * 43 THEN COUNT ( * ) WHEN 11 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL - + MAX( + 16 ) * 28 * - COUNT( * ) AS col1
----
448

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL - + MAX ( + 16 ) * 28 * - COUNT ( * ) AS col1
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT - + COALESCE ( 53, - COUNT( * ) ) + + 44 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9598
SELECT - + COALESCE ( 53, - COUNT ( * ) ) + + 44 AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9599
SELECT DISTINCT + 17 AS col2, CAST( + + 42 AS SIGNED ) - + + 16 + 5 AS col1
----
17
31

skipif mysql # not compatible
query II rowsort label-9599
SELECT DISTINCT + 17 AS col2, CAST ( + + 42 AS INTEGER ) - + + 16 + 5 AS col1
----
17
31

query II rowsort
SELECT 51 * + 4 + - 48, + 50 AS col0
----
156
50

query I rowsort
SELECT ALL + 3 * + - 10 + - NULLIF ( + 36, + 23 ) col0
----
-66

query I rowsort
SELECT - ( 13 ) + 46 + + 41
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT - SUM( + 51 ) + - 80
----
-131

skipif mysql # not compatible
query I rowsort label-9603
SELECT - SUM ( + 51 ) + - 80
----
-131

query I rowsort
SELECT ALL + 87 * - - 81 * - 36 * 41 + + 55 + + 30 AS col2
----
-10401287

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT NULLIF ( - SUM( ALL + 93 ), - 73 ), - 56 AS col0
----
-93
-56

skipif mysql # not compatible
query II rowsort label-9605
SELECT NULLIF ( - SUM ( ALL + 93 ), - 73 ), - 56 AS col0
----
-93
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT ALL COUNT( * ) * - 48 + 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL COUNT ( * ) * - 48 + 24 AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT ALL CAST( + + 48 AS SIGNED ) * - + 72 AS col1
----
-3456

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL CAST ( + + 48 AS INTEGER ) * - + 72 AS col1
----
-3456

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL - CASE - + 85 WHEN + ( 63 ) + + - ( + 72 ) / - + NULLIF ( + + 61, + 31 ) THEN - COUNT( * ) + ( + 75 ) WHEN + 11 + 8 / 46 THEN NULL END * + ( 54 ) + + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL - CASE - + 85 WHEN + ( 63 ) + + - ( + 72 ) / - + NULLIF ( + + 61, + 31 ) THEN - COUNT ( * ) + ( + 75 ) WHEN + 11 + 8 / 46 THEN NULL END * + ( 54 ) + + 13 AS col0
----
NULL

query I rowsort
SELECT 36 * + + 2 + 86 + + 85 AS col0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL + MIN( - - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL + MIN ( - - 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT - COUNT( * ) + + NULLIF ( - COUNT( * ), 68 ) * 21
----
-22

skipif mysql # not compatible
query I rowsort label-9611
SELECT - COUNT ( * ) + + NULLIF ( - COUNT ( * ), 68 ) * 21
----
-22

query II rowsort
SELECT ALL - 28 * - 14 AS col0, - 41
----
392
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT MIN( + 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-9613
SELECT MIN ( + 80 ) AS col0
----
80

query I rowsort
SELECT - 16 + - 29 + - + 13 col0
----
-58

query I rowsort
SELECT ALL - NULLIF ( + 74, - - 62 ) * - + COALESCE ( + 64, CASE 25 WHEN + 87 THEN + 7 * 25 END, ( + 8 ) ) AS col0
----
4736

query I rowsort
SELECT DISTINCT ( ( - 95 ) )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9617
SELECT DISTINCT 4 - + 16 + + 53 DIV 36 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT 4 - + 16 + + 53 / 36 AS col2
----
-11

query II rowsort
SELECT + 44 * 42, 38 AS col2
----
1848
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT + COUNT( * ) + - - 36
----
37

skipif mysql # not compatible
query I rowsort label-9619
SELECT + COUNT ( * ) + - - 36
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT ALL MIN( ALL - 12 ) AS col0, - 57 AS col0
----
-12
-57

skipif mysql # not compatible
query II rowsort label-9620
SELECT ALL MIN ( ALL - 12 ) AS col0, - 57 AS col0
----
-12
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9621
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT + COUNT( * ) + - NULLIF ( 35, - 7 ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-9622
SELECT + COUNT ( * ) + - NULLIF ( 35, - 7 ) col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT ALL 18 * - CAST( NULL AS SIGNED ) * - - 92 * + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL 18 * - CAST ( NULL AS INTEGER ) * - - 92 * + - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT + ( - 81 ) * + COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9624
SELECT + ( - 81 ) * + COUNT ( * ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT DISTINCT 36 * + SUM( 86 )
----
3096

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT 36 * + SUM ( 86 )
----
3096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9626
SELECT DISTINCT - COUNT( - - 69 ) * 68 * 11 DIV + + COUNT( * ) AS col0
----
-748

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT - COUNT ( - - 69 ) * 68 * 11 / + + COUNT ( * ) AS col0
----
-748

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT + - 21 * COUNT( * ) * + - COUNT( - + ( - + 41 ) ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9627
SELECT + - 21 * COUNT ( * ) * + - COUNT ( - + ( - + 41 ) ) AS col0
----
21

query I rowsort
SELECT ALL - NULLIF ( 0, - 62 ) * + 24 + - + 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT 27 * + 15 * + - COUNT( * ) AS col1
----
-405

skipif mysql # not compatible
query I rowsort label-9629
SELECT 27 * + 15 * + - COUNT ( * ) AS col1
----
-405

query II rowsort
SELECT ALL 48 + + 36, 6 AS col2
----
84
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9631
SELECT ( - - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL - 31 * + - 47 AS col2
----
1457

query I rowsort
SELECT DISTINCT 12 + + 89 * 98
----
8734

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT DISTINCT - 13 * + CASE - - CASE + 60 WHEN - 76 * - 6 / - 25 THEN + 37 END WHEN + 31 * + COUNT( * ) + COUNT( * ) + - 79 THEN 80 + - 61 ELSE NULL END * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT - 13 * + CASE - - CASE + 60 WHEN - 76 * - 6 / - 25 THEN + 37 END WHEN + 31 * + COUNT ( * ) + COUNT ( * ) + - 79 THEN 80 + - 61 ELSE NULL END * 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9635
SELECT DISTINCT + ( - COUNT( * ) ) + + - 49 - - ( 6 ) + 81, 92 AS col0
----
37
92

skipif mysql # not compatible
query II rowsort label-9635
SELECT DISTINCT + ( - COUNT ( * ) ) + + - 49 - - ( 6 ) + 81, 92 AS col0
----
37
92

query I rowsort
SELECT ALL + 41 + + 59 * - 13
----
-726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9637
SELECT ALL - MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL - MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 99 * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT 32 DIV + 14
----
2

skipif mysql # not compatible
query I rowsort label-9639
SELECT 32 / + 14
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9640
SELECT COUNT( * ) * COUNT( ALL - ( + - CAST( NULL AS DECIMAL ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9640
SELECT COUNT ( * ) * COUNT ( ALL - ( + - CAST ( NULL AS REAL ) ) ) AS col0
----
0

query I rowsort
SELECT 39 * 29 AS col1
----
1131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9642
SELECT DISTINCT - 74, 2 + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-74
3

skipif mysql # not compatible
query II rowsort label-9642
SELECT DISTINCT - 74, 2 + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-74
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9643
SELECT 22 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9643
SELECT 22 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 29 * - 62 AS col0
----
-1798

query I rowsort
SELECT 78 * + - 33 * - 33 + 41
----
84983

query I rowsort
SELECT DISTINCT + 51 * 17 AS col2
----
867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 4 AS col0
----
NULL

query II rowsort
SELECT - 66 col1, + 36 AS col1
----
-66
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT 57 - + ( - COUNT( * ) )
----
58

skipif mysql # not compatible
query I rowsort label-9649
SELECT 57 - + ( - COUNT ( * ) )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9650
SELECT - 85, COUNT( * ) AS col0
----
-85
1

skipif mysql # not compatible
query II rowsort label-9650
SELECT - 85, COUNT ( * ) AS col0
----
-85
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT - MIN( + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9651
SELECT - MIN ( + 1 ) AS col0
----
-1

query I rowsort
SELECT - ( - 35 ) AS col0
----
35

query I rowsort
SELECT 93 * 67
----
6231

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL - SUM( - - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL - SUM ( - - 33 ) AS col1
----
-33

query I rowsort
SELECT ( + NULLIF ( 45, 22 + 84 ) ) * - 95
----
-4275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9656
SELECT ALL CASE - ( CAST( + + 77 AS DECIMAL ) ) WHEN - ( + COALESCE ( + 94, - 38 - 87 + - 80 * 36 ) ) * + 11 - - 42 * 55 THEN - 97 ELSE NULL END + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL CASE - ( CAST ( + + 77 AS REAL ) ) WHEN - ( + COALESCE ( + 94, - 38 - 87 + - 80 * 36 ) ) * + 11 - - 42 * 55 THEN - 97 ELSE NULL END + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 22 - + - 87
----
65

query II rowsort
SELECT - 49 * + - 0 + 35 AS col1, - 0 + + 40
----
35
40

query II rowsort
SELECT - - 98 AS col0, + 18 * 11
----
98
198

query I rowsort
SELECT ALL + 3 + - 63
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT + ( + - 18 ) - MAX( + - 79 )
----
61

skipif mysql # not compatible
query I rowsort label-9661
SELECT + ( + - 18 ) - MAX ( + - 79 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT ALL AVG ( ALL - + 39 ) * 95 / - + 59 + - CAST( NULL AS SIGNED ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL AVG ( ALL - + 39 ) * 95 / - + 59 + - CAST ( NULL AS INTEGER ) * - 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9663
SELECT ALL - + COUNT( * ) + CAST( NULL AS SIGNED ) * - 26 + - 75 * + ( - 92 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL - + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - 26 + - 75 * + ( - 92 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9664
SELECT - 88 DIV 14 + - + 9 * + - 52 * - - CASE - - 44 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 12 + - COUNT( * ) THEN NULL WHEN - 0 * + - COALESCE ( + 65, + COUNT( * ) ) + - COUNT( * ) * + ( 18 ) THEN NULL ELSE + 55 END
----
25734

skipif mysql # not compatible
query I rowsort label-9664
SELECT - 88 / 14 + - + 9 * + - 52 * - - CASE - - 44 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 12 + - COUNT ( * ) THEN NULL WHEN - 0 * + - COALESCE ( + 65, + COUNT ( * ) ) + - COUNT ( * ) * + ( 18 ) THEN NULL ELSE + 55 END
----
25734

query I rowsort
SELECT ALL ( + + 7 ) + + 19
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9666
SELECT - 25 * + 55 + CASE - - CAST( NULL AS SIGNED ) WHEN + 30 + + - 11 THEN - 84 + + 4 WHEN - 98 * - - 84 THEN - MAX( DISTINCT + 43 ) * 70 END + 40 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT - 25 * + 55 + CASE - - CAST ( NULL AS INTEGER ) WHEN + 30 + + - 11 THEN - 84 + + 4 WHEN - 98 * - - 84 THEN - MAX ( DISTINCT + 43 ) * 70 END + 40 / + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9667
SELECT CAST( NULL AS SIGNED ) + + COALESCE ( 95, + + MIN( - 24 ) * + + CAST( - 86 AS SIGNED ) + - 18 + ( - - 86 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT CAST ( NULL AS INTEGER ) + + COALESCE ( 95, + + MIN ( - 24 ) * + + CAST ( - 86 AS INTEGER ) + - 18 + ( - - 86 ) )
----
NULL

query II rowsort
SELECT 57 AS col1, 43
----
57
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9669
SELECT 92 AS col0, COUNT( * )
----
92
1

skipif mysql # not compatible
query II rowsort label-9669
SELECT 92 AS col0, COUNT ( * )
----
92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT COUNT( * ) * 17 + - + ( + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-9670
SELECT COUNT ( * ) * 17 + - + ( + 18 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9671
SELECT ALL - 77 AS col0, COUNT( DISTINCT COALESCE ( - + 42, - 65 ) ) DIV - 89 * + 1 AS col0
----
-77
0

skipif mysql # not compatible
query II rowsort label-9671
SELECT ALL - 77 AS col0, COUNT ( DISTINCT COALESCE ( - + 42, - 65 ) ) / - 89 * + 1 AS col0
----
-77
0

query I rowsort
SELECT 13 * + 16 AS col0
----
208

query I rowsort
SELECT 48 * 67
----
3216

query II rowsort
SELECT 73 AS col0, - ( - + 81 ) AS col2
----
73
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL - COUNT( - 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL - COUNT ( - 11 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT + MAX( ALL + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9676
SELECT + MAX ( ALL + 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT COALESCE ( - COUNT( * ), - COUNT( * ) + + 99 ) * - 2
----
2

skipif mysql # not compatible
query I rowsort label-9677
SELECT COALESCE ( - COUNT ( * ), - COUNT ( * ) + + 99 ) * - 2
----
2

query I rowsort
SELECT DISTINCT + 65 * 97
----
6305

query I rowsort
SELECT 64 * 52 AS col0
----
3328

query I rowsort
SELECT - - ( - - ( 41 ) ) col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9681
SELECT + 31 DIV 30 * - 32 col0
----
-32

skipif mysql # not compatible
query I rowsort label-9681
SELECT + 31 / 30 * - 32 col0
----
-32

query I rowsort
SELECT 49 + 50 AS col1
----
99

query II rowsort
SELECT ALL + ( - 87 ), - 60 + - 3 AS col1
----
-87
-63

query I rowsort
SELECT 95 * + + 33 AS col1
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL MIN( - - 28 ) + - - COUNT( * ) + + 6 * - 15 col1
----
-61

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL MIN ( - - 28 ) + - - COUNT ( * ) + + 6 * - 15 col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-9686
SELECT ALL COALESCE ( + - 28, - 7 DIV + 27 + 56 - - 62 )
----
-28

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL COALESCE ( + - 28, - 7 / + 27 + 56 - - 62 )
----
-28

query I rowsort
SELECT ALL - - 75 + + 11 AS col0
----
86

query I rowsort
SELECT - - 88 + + 28
----
116

query I rowsort
SELECT DISTINCT - + ( - + 77 ) + + 2 AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9690
SELECT ALL + - 45 + 2 + - 2 DIV + + 17 * - ( - 32 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL + - 45 + 2 + - 2 / + + 17 * - ( - 32 ) AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9691
SELECT - - CAST( NULL AS SIGNED ) * + + 91 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT - - CAST ( NULL AS INTEGER ) * + + 91 + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 33 * + + ( + + 57 )
----
1881

query II rowsort
SELECT DISTINCT + + 16 * - 31 AS col1, 64 - + 42 AS col1
----
-496
22

query I rowsort
SELECT ALL + 72 + - 24
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9695
SELECT 15 AS col0, COUNT( DISTINCT + 98 )
----
15
1

skipif mysql # not compatible
query II rowsort label-9695
SELECT 15 AS col0, COUNT ( DISTINCT + 98 )
----
15
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9696
SELECT ALL 66 + 37 + + NULLIF ( 66, + COUNT( * ) + NULLIF ( - - CASE + + COUNT( - 25 ) WHEN 94 THEN + + 60 END, 39 ) ) * CASE MAX( - CAST( NULL AS SIGNED ) ) WHEN COUNT( * ) * - COUNT( * ) THEN 57 WHEN + COALESCE ( - MIN( ALL 16 ), + CASE 35 WHEN 5 THEN NULL WHEN COUNT( * ) THEN + ( 98 ) * COALESCE ( - 40, + 37 ) ELSE NULL END * COUNT( * ) - ( MAX( ALL 97 ) + - COUNT( * ) ) / + SUM( ALL - 3 ), - ( + 85 ) ) THEN 20 ELSE NULL END * ( 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL 66 + 37 + + NULLIF ( 66, + COUNT ( * ) + NULLIF ( - - CASE + + COUNT ( - 25 ) WHEN 94 THEN + + 60 END, 39 ) ) * CASE MAX ( - CAST ( NULL AS INTEGER ) ) WHEN COUNT ( * ) * - COUNT ( * ) THEN 57 WHEN + COALESCE ( - MIN ( ALL 16 ), + CASE 35 WHEN 5 THEN NULL WHEN COUNT ( * ) THEN + ( 98 ) * COALESCE ( - 40, + 37 ) ELSE NULL END * COUNT ( * ) - ( MAX ( ALL 97 ) + - COUNT ( * ) ) / + SUM ( ALL - 3 ), - ( + 85 ) ) THEN 20 ELSE NULL END * ( 41 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT DISTINCT COALESCE ( MAX( 52 ), + - NULLIF ( + 62, COUNT( * ) ) + + COALESCE ( - 63, 4 * - 65 + - 71 + - + 91 ), - 75 + + 9 ) - 36 * 82
----
-2900

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT COALESCE ( MAX ( 52 ), + - NULLIF ( + 62, COUNT ( * ) ) + + COALESCE ( - 63, 4 * - 65 + - 71 + - + 91 ), - 75 + + 9 ) - 36 * 82
----
-2900

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9698
SELECT - 18 * - + CAST( - COALESCE ( - 3, 32 ) AS SIGNED ) col1, - 44 DIV 35 AS col2
----
54
-1

skipif mysql # not compatible
query II rowsort label-9698
SELECT - 18 * - + CAST ( - COALESCE ( - 3, 32 ) AS INTEGER ) col1, - 44 / 35 AS col2
----
54
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT - 35 DIV 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9699
SELECT - 35 / 59 AS col0
----
0

query II rowsort
SELECT - ( - 9 ) * - + COALESCE ( 49, + - 28 ) AS col0, + 10 + - + 77
----
-441
-67

query I rowsort
SELECT NULLIF ( - 24, + 99 ) col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT ALL - COUNT( * ) * ( + 19 ) - 40
----
-59

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL - COUNT ( * ) * ( + 19 ) - 40
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT - 82 * + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-9703
SELECT - 82 * + COUNT ( * )
----
-82

query I rowsort
SELECT COALESCE ( - 81, - 35 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9705
SELECT + COUNT( * ) DIV 28 AS col1, 91 AS col1
----
0
91

skipif mysql # not compatible
query II rowsort label-9705
SELECT + COUNT ( * ) / 28 AS col1, 91 AS col1
----
0
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9706
SELECT DISTINCT + 96 DIV COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT + 96 / COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT CASE - + 87 WHEN NULLIF ( + 54, COUNT( * ) ) + + - ( COUNT( * ) ) THEN - ( - 70 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT CASE - + 87 WHEN NULLIF ( + 54, COUNT ( * ) ) + + - ( COUNT ( * ) ) THEN - ( - 70 ) END
----
NULL

query I rowsort
SELECT + 45 - + 76 AS col2
----
-31

query I rowsort
SELECT - 57 * + + ( + + 0 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9710
SELECT + 86 + + 10 DIV 31
----
86

skipif mysql # not compatible
query I rowsort label-9710
SELECT + 86 + + 10 / 31
----
86

query I rowsort
SELECT DISTINCT + ( ( 21 ) ) col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL 31 * + + MAX( + - 19 ) + - 24 + - ( - - ( - 42 ) ) + 83 + - COUNT( * )
----
-489

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL 31 * + + MAX ( + - 19 ) + - 24 + - ( - - ( - 42 ) ) + 83 + - COUNT ( * )
----
-489

query I rowsort
SELECT ALL + 39 + - - 89 - + 36
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT + + 22 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-9714
SELECT + + 22 / + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + + 17 * - COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9715
SELECT + + 17 * - COUNT ( * ) AS col2
----
-17

query I rowsort
SELECT + ( 40 ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9717
SELECT - CASE - + 52 WHEN - 69 * - CASE 84 WHEN + 57 * - CAST( + 62 AS DECIMAL ) + - + CAST( NULL AS DECIMAL ) / - 39 THEN NULL WHEN + 46 THEN + ( + 75 ) + - CASE - 40 WHEN + 30 + 46 THEN 39 END END + + 38 THEN + 80 + 74 / - MIN( ALL - 55 * 29 ) WHEN ( + COUNT( * ) ) + 89 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT - CASE - + 52 WHEN - 69 * - CASE 84 WHEN + 57 * - CAST ( + 62 AS REAL ) + - + CAST ( NULL AS REAL ) / - 39 THEN NULL WHEN + 46 THEN + ( + 75 ) + - CASE - 40 WHEN + 30 + 46 THEN 39 END END + + 38 THEN + 80 + 74 / - MIN ( ALL - 55 * 29 ) WHEN ( + COUNT ( * ) ) + 89 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT + ( - 61 ) DIV + 37 + + + 95
----
94

skipif mysql # not compatible
query I rowsort label-9718
SELECT + ( - 61 ) / + 37 + + + 95
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL 54 + - + MIN( ALL 63 ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL 54 + - + MIN ( ALL 63 ) col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9720
SELECT - - COUNT( - 90 ), - 19 * + + COUNT( * ) AS col0
----
1
-19

skipif mysql # not compatible
query II rowsort label-9720
SELECT - - COUNT ( - 90 ), - 19 * + + COUNT ( * ) AS col0
----
1
-19

query I rowsort
SELECT ALL - 95 - + - 51
----
-44

query I rowsort
SELECT - COALESCE ( - 3, - 10 * + 79 + - 28 - 18 ) * + 97 * + 55 col1
----
16005

query I rowsort
SELECT + - 46 + + - 25
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT - CAST( + 88 AS SIGNED ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9724
SELECT - CAST ( + 88 AS INTEGER ) AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9725
SELECT 25 AS col1, + MIN( + + CAST( NULL AS SIGNED ) ) AS col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-9725
SELECT 25 AS col1, + MIN ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
25
NULL

query I rowsort
SELECT ALL + 9 * ( - 54 )
----
-486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9727
SELECT + 23 + - COALESCE ( - 89, 77 * 95 DIV - ( - MAX( - + 47 ) ) + - 22 ) + + - COUNT( * ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-9727
SELECT + 23 + - COALESCE ( - 89, 77 * 95 / - ( - MAX ( - + 47 ) ) + - 22 ) + + - COUNT ( * ) AS col0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-9728
SELECT - COUNT( * ), - 38 + 70 * + 95 + - 89 AS col2
----
-1
6523

skipif mysql # not compatible
query II rowsort label-9728
SELECT - COUNT ( * ), - 38 + 70 * + 95 + - 89 AS col2
----
-1
6523

query I rowsort
SELECT - 0 + 1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9730
SELECT - 5 - - 11 + 26 DIV - NULLIF ( + 77, - 31 * + + CAST( + CASE - + 82 WHEN - 99 - - 32 THEN 89 END AS SIGNED ) + 95 DIV 10 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9730
SELECT - 5 - - 11 + 26 / - NULLIF ( + 77, - 31 * + + CAST ( + CASE - + 82 WHEN - 99 - - 32 THEN 89 END AS INTEGER ) + 95 / 10 ) AS col1
----
6

query I rowsort
SELECT DISTINCT ( - 21 ) AS col0
----
-21

query I rowsort
SELECT ALL + ( + 35 ) * 50
----
1750

onlyif mysql # aggregate syntax: 
query II rowsort label-9733
SELECT - 76 + - - ( 19 ) AS col0, MIN( DISTINCT - 2 ) AS col2
----
-57
-2

skipif mysql # not compatible
query II rowsort label-9733
SELECT - 76 + - - ( 19 ) AS col0, MIN ( DISTINCT - 2 ) AS col2
----
-57
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL CASE + + 75 WHEN - + 34 * + COUNT( * ) + + 1 + - - 42 THEN - 72 END * 60 * - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL CASE + + 75 WHEN - + 34 * + COUNT ( * ) + + 1 + - - 42 THEN - 72 END * 60 * - + 99
----
NULL

query I rowsort
SELECT 83 * - 71 + + ( 88 )
----
-5805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9736
SELECT DISTINCT + 92 * - CAST( + NULLIF ( COUNT( * ), + + COUNT( * ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + 92 * - CAST ( + NULLIF ( COUNT ( * ), + + COUNT ( * ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT - COUNT( * ) * + 77 * + - 55
----
4235

skipif mysql # not compatible
query I rowsort label-9737
SELECT - COUNT ( * ) * + 77 * + - 55
----
4235

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9738
SELECT CAST( NULL AS SIGNED ), 75 + - 67 + + 15 + 61 col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-9738
SELECT CAST ( NULL AS INTEGER ), 75 + - 67 + + 15 + 61 col2
----
NULL
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9739
SELECT - 92 * + COUNT( ALL - + 19 ) AS col1, 91 + 30 * - - 31 * + - 34
----
-92
-31529

skipif mysql # not compatible
query II rowsort label-9739
SELECT - 92 * + COUNT ( ALL - + 19 ) AS col1, 91 + 30 * - - 31 * + - 34
----
-92
-31529

onlyif mysql # DIV for integer division: 
query I rowsort label-9740
SELECT - 98 + + 59 DIV CASE WHEN NULL IS NULL THEN + 20 END col0
----
-96

skipif mysql # not compatible
query I rowsort label-9740
SELECT - 98 + + 59 / CASE WHEN NULL IS NULL THEN + 20 END col0
----
-96

query II rowsort
SELECT DISTINCT + COALESCE ( 70, + - 19 ), 90 AS col2
----
70
90

query I rowsort
SELECT + 97 * + 36 + + 10 AS col0
----
3502

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT ALL 15 DIV 18 + + 70
----
70

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL 15 / 18 + + 70
----
70

query I rowsort
SELECT - 62 * - + 48 AS col1
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ALL + 65 * MAX( DISTINCT 14 ) + + - 53 + - 44 * + 35
----
-683

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL + 65 * MAX ( DISTINCT 14 ) + + - 53 + - 44 * + 35
----
-683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9746
SELECT DISTINCT 45 * + 15 DIV COUNT( * ) + + 20 AS col0
----
695

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT 45 * + 15 / COUNT ( * ) + + 20 AS col0
----
695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9747
SELECT ( + - 72 ) * - ( + 97 ) * - MIN( DISTINCT + + 5 ) - - CAST( 70 AS SIGNED ) + - COALESCE ( + COUNT( * ), + + CAST( - 96 AS SIGNED ) + - - 10, 22 + + 37 * - 26 ) + 89 + + 0
----
-34762

skipif mysql # not compatible
query I rowsort label-9747
SELECT ( + - 72 ) * - ( + 97 ) * - MIN ( DISTINCT + + 5 ) - - CAST ( 70 AS INTEGER ) + - COALESCE ( + COUNT ( * ), + + CAST ( - 96 AS INTEGER ) + - - 10, 22 + + 37 * - 26 ) + 89 + + 0
----
-34762

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT DISTINCT + CASE 83 WHEN - 87 THEN - - 97 END * + SUM( + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT + CASE 83 WHEN - 87 THEN - - 97 END * + SUM ( + 23 )
----
NULL

query II rowsort
SELECT 27 * 23 * + - 29 col2, 17 * - 63 col1
----
-18009
-1071

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9750
SELECT + CAST( NULL AS DECIMAL ) col2, 59 + + + 16 * 67 col1
----
NULL
1131

skipif mysql # not compatible
query II rowsort label-9750
SELECT + CAST ( NULL AS REAL ) col2, 59 + + + 16 * 67 col1
----
NULL
1131

query I rowsort
SELECT - - 4
----
4

query I rowsort
SELECT 35 + - 23 * - 96 AS col2
----
2243

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT - MAX( + 69 ) * + + 60 + + - 50 * 28 AS col2
----
-5540

skipif mysql # not compatible
query I rowsort label-9753
SELECT - MAX ( + 69 ) * + + 60 + + - 50 * 28 AS col2
----
-5540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT + CAST( - 98 AS SIGNED ) + + 23 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-9754
SELECT + CAST ( - 98 AS INTEGER ) + + 23 AS col1
----
-75

query II rowsort
SELECT ALL + 5 - 82 + - 25, + 54 AS col0
----
-102
54

query I rowsort
SELECT ALL - 47 - - 22
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9757
SELECT DISTINCT 39 AS col1, - CASE + 56 WHEN AVG ( 27 ) + - + 65 * - 28 * COALESCE ( 82, - 45 ) * + 33 * CAST( NULL AS SIGNED ) THEN - - 84 / MIN( + 65 + 31 ) WHEN - 87 THEN NULL ELSE NULL END + 30
----
39
NULL

skipif mysql # not compatible
query II rowsort label-9757
SELECT DISTINCT 39 AS col1, - CASE + 56 WHEN AVG ( 27 ) + - + 65 * - 28 * COALESCE ( 82, - 45 ) * + 33 * CAST ( NULL AS INTEGER ) THEN - - 84 / MIN ( + 65 + 31 ) WHEN - 87 THEN NULL ELSE NULL END + 30
----
39
NULL

query II rowsort
SELECT ALL + 66 * 24 * - 28 * + - 68, 49 AS col1
----
3015936
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ( COUNT( * ) ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-9759
SELECT ( COUNT ( * ) ) * 9
----
9

query I rowsort
SELECT 4 + + - 64
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9761
SELECT - 67, + CAST( - - MIN( DISTINCT - 0 ) AS SIGNED ) AS col2
----
-67
0

skipif mysql # not compatible
query II rowsort label-9761
SELECT - 67, + CAST ( - - MIN ( DISTINCT - 0 ) AS INTEGER ) AS col2
----
-67
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9762
SELECT - COUNT( * ) + 19 * + + CAST( NULL AS SIGNED ) AS col2, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9762
SELECT - COUNT ( * ) + 19 * + + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * )
----
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9763
SELECT CAST( 55 AS SIGNED ) / CAST( NULL AS DECIMAL ) * 94 * MAX( DISTINCT 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT CAST ( 55 AS INTEGER ) / CAST ( NULL AS REAL ) * 94 * MAX ( DISTINCT 55 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT - 62 * COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9764
SELECT - 62 * COUNT ( * ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT 96 + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9765
SELECT 96 + - COUNT ( * )
----
95

query II rowsort
SELECT 44 col2, 40 AS col1
----
44
40

query I rowsort
SELECT 48 + - - 69 + - 3 + 71 * - - 38 AS col2
----
2812

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL - 24 * - 71 * - - SUM( + 18 ) AS col0
----
30672

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - 24 * - 71 * - - SUM ( + 18 ) AS col0
----
30672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9769
SELECT COUNT( * ) DIV MIN( ALL 51 ) * - 73 DIV - 19 * - + 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9769
SELECT COUNT ( * ) / MIN ( ALL 51 ) * - 73 / - 19 * - + 48 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT DISTINCT MAX( ALL + 64 ) + ( + 37 )
----
101

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT MAX ( ALL + 64 ) + ( + 37 )
----
101

query I rowsort
SELECT DISTINCT - 34 + + 66
----
32

query II rowsort
SELECT DISTINCT 27 * - - 64, 89 * + + ( + 29 ) - 7 AS col1
----
1728
2574

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9773
SELECT 66 * NULLIF ( - - 31, + 24 DIV + 21 ) col1, 94 DIV + 90 + - - COUNT( * ) * - - 89 AS col2
----
2046
90

skipif mysql # not compatible
query II rowsort label-9773
SELECT 66 * NULLIF ( - - 31, + 24 / + 21 ) col1, 94 / + 90 + - - COUNT ( * ) * - - 89 AS col2
----
2046
90

query I rowsort
SELECT DISTINCT - NULLIF ( + 17, 89 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL - COUNT( * ) + 94 * - 81
----
-7615

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL - COUNT ( * ) + 94 * - 81
----
-7615

query I rowsort
SELECT ALL - ( - 0 )
----
0

query I rowsort
SELECT - 44 + - 76 * + 31 AS col2
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT + MIN( ALL + - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9778
SELECT + MIN ( ALL + - 10 ) AS col1
----
-10

query II rowsort
SELECT + + ( + - 33 ) * 38 + - + 72 col1, 28 AS col2
----
-1326
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9780
SELECT DISTINCT - - 9 DIV 6
----
1

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT - - 9 / 6
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT DISTINCT + - 96 * MIN( 25 ) - COUNT( ALL - + 22 ) AS col2
----
-2401

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT + - 96 * MIN ( 25 ) - COUNT ( ALL - + 22 ) AS col2
----
-2401

query I rowsort
SELECT - 93 * - 76
----
7068

query I rowsort
SELECT - 7 + - 48 * - 47
----
2249

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT - NULLIF ( + + CASE 32 WHEN + 16 THEN - 50 * - + COUNT( * ) END, + 2 ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT - NULLIF ( + + CASE 32 WHEN + 16 THEN - 50 * - + COUNT ( * ) END, + 2 ) * 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9785
SELECT 11 * 96 + + 9 * + - CASE - CAST( NULL AS SIGNED ) WHEN + + 76 THEN - 7 + + 54 + + - COUNT( * ) ELSE CAST( - - NULLIF ( - NULLIF ( + 34, + 23 * 54 + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) ), - 18 ) AS SIGNED ) + - 68 END AS col0
----
1974

skipif mysql # not compatible
query I rowsort label-9785
SELECT 11 * 96 + + 9 * + - CASE - CAST ( NULL AS INTEGER ) WHEN + + 76 THEN - 7 + + 54 + + - COUNT ( * ) ELSE CAST ( - - NULLIF ( - NULLIF ( + 34, + 23 * 54 + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) ), - 18 ) AS INTEGER ) + - 68 END AS col0
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL MIN( DISTINCT - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL MIN ( DISTINCT - 60 )
----
-60

query I rowsort
SELECT DISTINCT 82 * - 11
----
-902

query II rowsort
SELECT - 89, + 89 AS col2
----
-89
89

query II rowsort
SELECT 93 AS col0, + 48 AS col1
----
93
48

query I rowsort
SELECT 57 + + + 96 AS col1
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9791
SELECT ALL COUNT( * ) * - + 38 * 91 + - COUNT( * ) * - 7 + + CASE 30 WHEN + 59 - - + 81 THEN 83 ELSE 55 DIV COALESCE ( 91, + COUNT( * ) ) END col1
----
-3451

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL COUNT ( * ) * - + 38 * 91 + - COUNT ( * ) * - 7 + + CASE 30 WHEN + 59 - - + 81 THEN 83 ELSE 55 / COALESCE ( 91, + COUNT ( * ) ) END col1
----
-3451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9792
SELECT CASE 82 WHEN - - CAST( NULL AS SIGNED ) + - 92 THEN + + 46 * + COALESCE ( + + ( 75 ), + 93 ) * - SUM( ALL + + 40 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT CASE 82 WHEN - - CAST ( NULL AS INTEGER ) + - 92 THEN + + 46 * + COALESCE ( + + ( 75 ), + 93 ) * - SUM ( ALL + + 40 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 89 * + 48 + - - 53
----
4325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT ALL 1 * 44 + NULLIF ( - 31, + MIN( ALL - CAST( NULL AS SIGNED ) ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL 1 * 44 + NULLIF ( - 31, + MIN ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9795
SELECT + CASE - - 87 WHEN + SUM( ALL 17 ) - - - 1 THEN + 41 + COUNT( * ) * + 85 WHEN + 18 * - 41 + 53 THEN NULL ELSE NULL END * MAX( + 90 ), 95 * 79 * + 95 AS col0
----
NULL
712975

skipif mysql # not compatible
query II rowsort label-9795
SELECT + CASE - - 87 WHEN + SUM ( ALL 17 ) - - - 1 THEN + 41 + COUNT ( * ) * + 85 WHEN + 18 * - 41 + 53 THEN NULL ELSE NULL END * MAX ( + 90 ), 95 * 79 * + 95 AS col0
----
NULL
712975

onlyif mysql # aggregate syntax: 
query II rowsort label-9796
SELECT DISTINCT 76 * + 74 * 2 + - MAX( + 65 ) + - 12 + + 3 * 41 * + + 44 * COUNT( * ), 35 + + 29 AS col0
----
16583
64

skipif mysql # not compatible
query II rowsort label-9796
SELECT DISTINCT 76 * + 74 * 2 + - MAX ( + 65 ) + - 12 + + 3 * 41 * + + 44 * COUNT ( * ), 35 + + 29 AS col0
----
16583
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT CASE + 72 WHEN + 19 THEN + - 95 * + MAX( 9 ) + + MIN( ALL + 10 ) + - SUM( + COALESCE ( - 26, - 61 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT CASE + 72 WHEN + 19 THEN + - 95 * + MAX ( 9 ) + + MIN ( ALL + 10 ) + - SUM ( + COALESCE ( - 26, - 61 ) ) END
----
NULL

query I rowsort
SELECT - 61 + - - 0
----
-61

query I rowsort
SELECT + + 35 * - 33 AS col2
----
-1155

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT - + 29 * - + 53 * - + COUNT( * ) + + 5 * - 39 AS col1, 50 * + + 25 col0
----
-1732
1250

skipif mysql # not compatible
query II rowsort label-9800
SELECT - + 29 * - + 53 * - + COUNT ( * ) + + 5 * - 39 AS col1, 50 * + + 25 col0
----
-1732
1250

query I rowsort
SELECT - 75 + - + 7 AS col0
----
-82

query I rowsort
SELECT + - 60 * 23
----
-1380

query I rowsort
SELECT ALL + - 81 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT - COUNT( 47 ) * + 67
----
-67

skipif mysql # not compatible
query I rowsort label-9804
SELECT - COUNT ( 47 ) * + 67
----
-67

query I rowsort
SELECT ALL 20 * - 61 col0
----
-1220

query I rowsort
SELECT DISTINCT + + 99 col0
----
99

query I rowsort
SELECT + + 33 * 44 AS col0
----
1452

query I rowsort
SELECT NULLIF ( - - 75, 42 )
----
75

query II rowsort
SELECT ALL + 46 AS col2, ( 68 ) AS col2
----
46
68

query I rowsort
SELECT - COALESCE ( 37, - 18 + + 3 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT - - NULLIF ( - - ( COUNT( * ) ), + - 82 + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-9811
SELECT - - NULLIF ( - - ( COUNT ( * ) ), + - 82 + 59 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT ALL + 73 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL + 73 / 45
----
1

query I rowsort
SELECT - 53 + - + 15
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT DISTINCT + - 90 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT + - 90 / + 93
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT - 53 DIV - 52
----
1

skipif mysql # not compatible
query I rowsort label-9815
SELECT - 53 / - 52
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9816
SELECT ALL + MAX( 3 ) + - 57 DIV + COUNT( * ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + MAX ( 3 ) + - 57 / + COUNT ( * ) col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT DISTINCT - 96 + + - ( + + 84 ) * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT - 96 + + - ( + + 84 ) * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT ALL 41 + + CAST( 56 AS SIGNED ) col0
----
97

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL 41 + + CAST ( 56 AS INTEGER ) col0
----
97

query I rowsort
SELECT - 47 + - 88
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-9820
SELECT - 17 DIV + - 73
----
0

skipif mysql # not compatible
query I rowsort label-9820
SELECT - 17 / + - 73
----
0

query I rowsort
SELECT ALL ( - 91 ) col1
----
-91

query II rowsort
SELECT 22, ( 58 ) - 76 AS col2
----
22
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9823
SELECT + 99 + + 19 + - + 42 * SUM( - 65 ) * - MIN( - 77 ) AS col0, + SUM( - 80 ) col2
----
210328
-80

skipif mysql # not compatible
query II rowsort label-9823
SELECT + 99 + + 19 + - + 42 * SUM ( - 65 ) * - MIN ( - 77 ) AS col0, + SUM ( - 80 ) col2
----
210328
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9824
SELECT ALL 81 + 32 + + - COUNT( * ) DIV + - 90
----
113

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL 81 + 32 + + - COUNT ( * ) / + - 90
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9825
SELECT DISTINCT 4, + 83 + - 80 + 26 - + CASE 23 WHEN + + 75 * + 79 THEN - CAST( NULL AS SIGNED ) - + 44 ELSE - 73 * - 81 END * + 59 AS col0
----
4
-348838

skipif mysql # not compatible
query II rowsort label-9825
SELECT DISTINCT 4, + 83 + - 80 + 26 - + CASE 23 WHEN + + 75 * + 79 THEN - CAST ( NULL AS INTEGER ) - + 44 ELSE - 73 * - 81 END * + 59 AS col0
----
4
-348838

query I rowsort
SELECT ALL 39 * COALESCE ( - 32, - 12 * - 20 )
----
-1248

onlyif mysql # aggregate syntax: 
query II rowsort label-9827
SELECT + COUNT( * ) AS col1, 38 - - - NULLIF ( 73, - 35 ) * 73 * + 78 + + 23 AS col2
----
1
-415601

skipif mysql # not compatible
query II rowsort label-9827
SELECT + COUNT ( * ) AS col1, 38 - - - NULLIF ( 73, - 35 ) * 73 * + 78 + + 23 AS col2
----
1
-415601

query I rowsort
SELECT + ( 65 ) AS col1
----
65

query II rowsort
SELECT DISTINCT 74 * - 91 AS col1, - 21
----
-6734
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9830
SELECT CAST( NULL AS SIGNED ) AS col1, + 84 + - 15 AS col0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-9830
SELECT CAST ( NULL AS INTEGER ) AS col1, + 84 + - 15 AS col0
----
NULL
69

query I rowsort
SELECT + ( - - 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9832
SELECT 14 * + CAST( + 17 AS SIGNED ) * - CAST( NULL AS SIGNED ) - + ( + 10 ) / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT 14 * + CAST ( + 17 AS INTEGER ) * - CAST ( NULL AS INTEGER ) - + ( + 10 ) / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9833
SELECT ALL + 37 DIV 80 - + 85 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL + 37 / 80 - + 85 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT DISTINCT + - NULLIF ( - MIN( - 99 ), - 32 / - + 36 + + 6 * 94 ) * - - 42 * + - 42 * 27 AS col1
----
4715172

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT + - NULLIF ( - MIN ( - 99 ), - 32 / - + 36 + + 6 * 94 ) * - - 42 * + - 42 * 27 AS col1
----
4715172

onlyif mysql # aggregate syntax: 
query II rowsort label-9835
SELECT ALL + - 65, - COUNT( * ) AS col2
----
-65
-1

skipif mysql # not compatible
query II rowsort label-9835
SELECT ALL + - 65, - COUNT ( * ) AS col2
----
-65
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + 35 * - CASE - COUNT( * ) WHEN - 59 + + 60 + - 93 + 46 THEN 89 ELSE CASE 99 WHEN - 82 THEN NULL ELSE + + 88 END + 48 - 18 + + + COUNT( * ) END AS col2
----
-4165

skipif mysql # not compatible
query I rowsort label-9836
SELECT + 35 * - CASE - COUNT ( * ) WHEN - 59 + + 60 + - 93 + 46 THEN 89 ELSE CASE 99 WHEN - 82 THEN NULL ELSE + + 88 END + 48 - 18 + + + COUNT ( * ) END AS col2
----
-4165

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT 42 * + + COALESCE ( COUNT( * ), + - 38, - 64 * + + 72 + + - 16 ) + + ( - - ( - 85 ) ) + - 52 - + ( - + 50 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT 42 * + + COALESCE ( COUNT ( * ), + - 38, - 64 * + + 72 + + - 16 ) + + ( - - ( - 85 ) ) + - 52 - + ( - + 50 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9838
SELECT DISTINCT + + CASE + 11 WHEN - COUNT( * ) THEN - 0 WHEN COUNT( * ) THEN + 73 END, - 24 + + 65 * 50 AS col0
----
NULL
3226

skipif mysql # not compatible
query II rowsort label-9838
SELECT DISTINCT + + CASE + 11 WHEN - COUNT ( * ) THEN - 0 WHEN COUNT ( * ) THEN + 73 END, - 24 + + 65 * 50 AS col0
----
NULL
3226

query I rowsort
SELECT + + 58 * - 94 + + 80
----
-5372

query I rowsort
SELECT + - 73 - - 51
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9841
SELECT ALL - 68 DIV - - 23 + + - 74 * + - ( - ( + 27 ) ) - - 5 AS col1
----
-1995

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL - 68 / - - 23 + + - 74 * + - ( - ( + 27 ) ) - - 5 AS col1
----
-1995

query I rowsort
SELECT + - 62 / + - CASE + - 88 WHEN + 11 THEN NULL WHEN + 83 THEN NULL WHEN - 9 THEN - 91 + + + 60 + 48 + 27 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9843
SELECT - 21 DIV - + 69 * - + MAX( - 87 ) + - COUNT( DISTINCT + 35 ) + + + COUNT( * ) + - 40 * + COUNT( * ) * 81 * + + 77 AS col0
----
-249480

skipif mysql # not compatible
query I rowsort label-9843
SELECT - 21 / - + 69 * - + MAX ( - 87 ) + - COUNT ( DISTINCT + 35 ) + + + COUNT ( * ) + - 40 * + COUNT ( * ) * 81 * + + 77 AS col0
----
-249480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9844
SELECT + + 87 * + + COUNT( * ) DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-9844
SELECT + + 87 * + + COUNT ( * ) / 94
----
0

query I rowsort
SELECT - 84 * + - 82
----
6888

query II rowsort
SELECT ALL + - 54 col1, - 30 AS col1
----
-54
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT CAST( + 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-9847
SELECT CAST ( + 33 AS INTEGER )
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9848
SELECT ALL + 36 * 25 - + 2 + - 86 * + 44 * 59 - + 65 * - - 60 + 51 + - CAST( - 2 AS SIGNED ) AS col0, ( 63 ) DIV + 71 * + 35 + + 22
----
-226205
22

skipif mysql # not compatible
query II rowsort label-9848
SELECT ALL + 36 * 25 - + 2 + - 86 * + 44 * 59 - + 65 * - - 60 + 51 + - CAST ( - 2 AS INTEGER ) AS col0, ( 63 ) / + 71 * + 35 + + 22
----
-226205
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9849
SELECT ALL - SUM( - 46 ) * + 59 + + 36 AS col1, 82 + COUNT( * )
----
2750
83

skipif mysql # not compatible
query II rowsort label-9849
SELECT ALL - SUM ( - 46 ) * + 59 + + 36 AS col1, 82 + COUNT ( * )
----
2750
83

query I rowsort
SELECT - COALESCE ( 68, 25, 68 + 26 ) AS col1
----
-68

query I rowsort
SELECT ALL COALESCE ( + 81, + NULLIF ( ( + 84 ), + - 37 ) ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL 13 * - 96 + - - MIN( DISTINCT 36 ) AS col2
----
-1212

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL 13 * - 96 + - - MIN ( DISTINCT 36 ) AS col2
----
-1212

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9853
SELECT + COUNT( * ) - + CAST( NULL AS DECIMAL ) + + 50 + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT + COUNT ( * ) - + CAST ( NULL AS REAL ) + + 50 + 50 AS col2
----
NULL

query I rowsort
SELECT - 87 + - 49 col1
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT ALL CAST( 83 AS SIGNED ) + + ( - 8 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL CAST ( 83 AS INTEGER ) + + ( - 8 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT + COUNT( - + 20 ) * - 51 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT + COUNT ( - + 20 ) * - 51 AS col0
----
-51

query I rowsort
SELECT DISTINCT + 2 - + - 30 AS col2
----
32

query I rowsort
SELECT 76 * - 80 * + 92 AS col2
----
-559360

query I rowsort
SELECT 82 - - + ( CASE - CASE + - CASE - 57 WHEN - 14 THEN - - 22 * 97 WHEN + 20 / 9 / + 22 + + 82 THEN NULL ELSE + 42 END WHEN - 26 * 60 THEN 37 END WHEN + 17 THEN - AVG ( ALL - 95 ) * + 78 + - 66 WHEN + ( + 34 ) THEN + 71 / 94 + - 47 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL - 84 - 76 + - - 71 - - ( - CASE - 69 WHEN - COUNT( * ) THEN + - NULLIF ( COUNT( * ), + 24 ) WHEN COUNT( * ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - 84 - 76 + - - 71 - - ( - CASE - 69 WHEN - COUNT ( * ) THEN + - NULLIF ( COUNT ( * ), + 24 ) WHEN COUNT ( * ) THEN NULL END )
----
NULL

query I rowsort
SELECT 92 + + + 61
----
153

query I rowsort
SELECT 63 * + 55
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT 66 * - COUNT( * ) * - 30
----
1980

skipif mysql # not compatible
query I rowsort label-9863
SELECT 66 * - COUNT ( * ) * - 30
----
1980

query I rowsort
SELECT 72 + 39
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-9865
SELECT 8 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-9865
SELECT 8 / - 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT - 96 + CASE 91 WHEN - - 20 THEN NULL WHEN - COUNT( * ) + 4 THEN + - 76 - - 89 - 21 + + 61 / - 65 / 56 * - 10 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT - 96 + CASE 91 WHEN - - 20 THEN NULL WHEN - COUNT ( * ) + 4 THEN + - 76 - - 89 - 21 + + 61 / - 65 / 56 * - 10 END AS col1
----
NULL

query I rowsort
SELECT - 10 + 2 * + 68 col1
----
126

query I rowsort
SELECT + ( - 67 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT ALL - + ( + COALESCE ( + - NULLIF ( + - 95, 95 ), COUNT( * ) ) )
----
-95

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL - + ( + COALESCE ( + - NULLIF ( + - 95, 95 ), COUNT ( * ) ) )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT + + 90 * + COUNT( * ) * 57 * + NULLIF ( - 2, - + 61 ) AS col1
----
-10260

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT + + 90 * + COUNT ( * ) * 57 * + NULLIF ( - 2, - + 61 ) AS col1
----
-10260

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9871
SELECT + 59 + + COALESCE ( + + CAST( 18 AS SIGNED ), - 19 ), - 99 - - 37 DIV 5 + + 62 * - 8 * 60 AS col1
----
77
-29852

skipif mysql # not compatible
query II rowsort label-9871
SELECT + 59 + + COALESCE ( + + CAST ( 18 AS INTEGER ), - 19 ), - 99 - - 37 / 5 + + 62 * - 8 * 60 AS col1
----
77
-29852

query I rowsort
SELECT DISTINCT 38 + 2 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT - 26 * + + COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9873
SELECT - 26 * + + COUNT ( * ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT DISTINCT - + 48 + + MAX( - 54 ) * ( + ( - + ( - + 81 ) ) ) * - 55
----
240522

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT - + 48 + + MAX ( - 54 ) * ( + ( - + ( - + 81 ) ) ) * - 55
----
240522

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL + 87 + - ( + - 35 ) + - COUNT( - 55 ) * + COUNT( * ) - - NULLIF ( - - 33, + 40 )
----
154

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL + 87 + - ( + - 35 ) + - COUNT ( - 55 ) * + COUNT ( * ) - - NULLIF ( - - 33, + 40 )
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT 45 - - 52 - - NULLIF ( - 38, - 47 ) DIV + - 87 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9876
SELECT 45 - - 52 - - NULLIF ( - 38, - 47 ) / + - 87 AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT DISTINCT 71 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT 71 / - 86
----
0

query I rowsort
SELECT DISTINCT ( - 12 ) + - - 63
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9879
SELECT ALL 5 + - + 76 + CASE + CAST( 69 AS SIGNED ) WHEN 95 / - 98 * + - ( ( + 43 ) ) - 70 + 34 + 8 * 1 THEN - - 17 * - 77 WHEN + 35 THEN NULL END + - 85 * 93 * + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL 5 + - + 76 + CASE + CAST ( 69 AS INTEGER ) WHEN 95 / - 98 * + - ( ( + 43 ) ) - 70 + 34 + 8 * 1 THEN - - 17 * - 77 WHEN + 35 THEN NULL END + - 85 * 93 * + 30 AS col2
----
NULL

query I rowsort
SELECT ALL 64 + ( - 84 ) col2
----
-20

query I rowsort
SELECT 51 - CASE 49 WHEN + 67 / ( + ( 86 ) ) + - - 83 THEN - 26 WHEN + 60 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9882
SELECT ALL 31, + 92 DIV + - COUNT( * ) AS col0
----
31
-92

skipif mysql # not compatible
query II rowsort label-9882
SELECT ALL 31, + 92 / + - COUNT ( * ) AS col0
----
31
-92

onlyif mysql # aggregate syntax: 
query III rowsort label-9883
SELECT ALL 33 col2, - 12 + SUM( ALL + 50 ) AS col0, + 11 - + - 72
----
33
38
83

skipif mysql # not compatible
query III rowsort label-9883
SELECT ALL 33 col2, - 12 + SUM ( ALL + 50 ) AS col0, + 11 - + - 72
----
33
38
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT ALL CAST( NULL AS SIGNED ) - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL CAST ( NULL AS INTEGER ) - 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9885
SELECT DISTINCT 63 * + 59 * 72, + 63 + 22 + MAX( DISTINCT 57 ) DIV - COUNT( * ) + + 81 AS col0
----
267624
109

skipif mysql # not compatible
query II rowsort label-9885
SELECT DISTINCT 63 * + 59 * 72, + 63 + 22 + MAX ( DISTINCT 57 ) / - COUNT ( * ) + + 81 AS col0
----
267624
109

query I rowsort
SELECT 83 + + 22 + - 80 AS col0
----
25

query I rowsort
SELECT 86 * - - 77 AS col2
----
6622

query II rowsort
SELECT ALL 96, 86 AS col1
----
96
86

query I rowsort
SELECT 92 + 79
----
171

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9890
SELECT 90 col2, CAST( NULL AS DECIMAL ) + 63 AS col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-9890
SELECT 90 col2, CAST ( NULL AS REAL ) + 63 AS col1
----
90
NULL

query I rowsort
SELECT 11 * + - 87
----
-957

onlyif mysql # aggregate syntax: 
query II rowsort label-9892
SELECT - COUNT( * ) AS col1, + 98 AS col2
----
-1
98

skipif mysql # not compatible
query II rowsort label-9892
SELECT - COUNT ( * ) AS col1, + 98 AS col2
----
-1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT 68 / NULLIF ( - CASE + 59 WHEN + + COUNT( * ) THEN 89 END, - + 63 ) * - + 9 + + 90 + AVG ( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT 68 / NULLIF ( - CASE + 59 WHEN + + COUNT ( * ) THEN 89 END, - + 63 ) * - + 9 + + 90 + AVG ( 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT + COUNT( * ) * 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9894
SELECT + COUNT ( * ) * 58 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT - 70 * - COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9895
SELECT - 70 * - COUNT ( * ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT + COUNT( ALL + 99 )
----
1

skipif mysql # not compatible
query I rowsort label-9896
SELECT + COUNT ( ALL + 99 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9897
SELECT + 53 DIV + 37 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9897
SELECT + 53 / + 37 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9898
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) + + 10 * - 49 * - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + 10 * - 49 * - + 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9899
SELECT 42 - 57 + - ( + CAST( - 17 AS SIGNED ) ) * 48 DIV + - COALESCE ( + 80, 85 ) - + - 63 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9899
SELECT 42 - 57 + - ( + CAST ( - 17 AS INTEGER ) ) * 48 / + - COALESCE ( + 80, 85 ) - + - 63 AS col2
----
38

query I rowsort
SELECT ALL - + 50 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT CASE - - 20 WHEN - MIN( ALL + + 45 ) THEN NULL ELSE + 2 * + + COUNT( * ) END AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9901
SELECT CASE - - 20 WHEN - MIN ( ALL + + 45 ) THEN NULL ELSE + 2 * + + COUNT ( * ) END AS col1
----
2

query I rowsort
SELECT DISTINCT + + 88 * + + 30 + 9 + - + 12 * ( + 14 ) * + 2
----
2313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9903
SELECT ALL - - COUNT( * ) * + 40 + - - COALESCE ( + - 46, - 1 DIV + + CASE - + 63 WHEN + 22 THEN NULL WHEN 19 * - - MAX( 33 ) + ( - - 11 ) THEN + 4 + + COUNT( * ) - - 85 + + 40 * - 41 + + 41 * + COUNT( * ) END * - 69 - - 41 * 20 ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL - - COUNT ( * ) * + 40 + - - COALESCE ( + - 46, - 1 / + + CASE - + 63 WHEN + 22 THEN NULL WHEN 19 * - - MAX ( 33 ) + ( - - 11 ) THEN + 4 + + COUNT ( * ) - - 85 + + 40 * - 41 + + 41 * + COUNT ( * ) END * - 69 - - 41 * 20 ) col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT DISTINCT - COUNT( DISTINCT - 81 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT - COUNT ( DISTINCT - 81 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT DISTINCT + 63 * - - SUM( - 76 ) + + - COUNT( * )
----
-4789

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT + 63 * - - SUM ( - 76 ) + + - COUNT ( * )
----
-4789

query II rowsort
SELECT - CASE 19 WHEN + - 0 / - + 53 * 37 THEN 82 WHEN + - 27 THEN NULL END - - 41, + 42 AS col1
----
NULL
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9907
SELECT + COUNT( * ), 83 AS col2
----
1
83

skipif mysql # not compatible
query II rowsort label-9907
SELECT + COUNT ( * ), 83 AS col2
----
1
83

query II rowsort
SELECT - 16 AS col0, 55 AS col0
----
-16
55

query I rowsort
SELECT DISTINCT - 33 + + - 63 AS col1
----
-96

query I rowsort
SELECT ALL + 75 + 25 * + + 74 col1
----
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT + SUM( - 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9911
SELECT + SUM ( - 23 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT 41 + - 96 * + COUNT( * ) + 15 + 58 * - 26
----
-1548

skipif mysql # not compatible
query I rowsort label-9912
SELECT 41 + - 96 * + COUNT ( * ) + 15 + 58 * - 26
----
-1548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - - 60 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - - 60 col2
----
NULL

query I rowsort
SELECT ALL - ( - 15 ) AS col1
----
15

query I rowsort
SELECT ALL - 2 - - 6 AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT ALL 52 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL 52 / - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL COUNT( * ) - + + 42 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL COUNT ( * ) - + + 42 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT - COUNT( * ) + 21
----
20

skipif mysql # not compatible
query I rowsort label-9918
SELECT - COUNT ( * ) + 21
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - COUNT( - ( - + 45 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9919
SELECT - COUNT ( - ( - + 45 ) )
----
-1

query II rowsort
SELECT - 4 * + 90, 78 AS col0
----
-360
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9921
SELECT ALL 16 DIV + 67 * ( COUNT( * ) ) * 80
----
0

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL 16 / + 67 * ( COUNT ( * ) ) * 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9922
SELECT - SUM( DISTINCT - + CAST( 58 AS SIGNED ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9922
SELECT - SUM ( DISTINCT - + CAST ( 58 AS INTEGER ) ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT + AVG ( 73 ) / - CASE - 61 WHEN 62 * + COALESCE ( + MAX( + + 98 ), - + 87 * - + 87 - - ( - COUNT( * ) ) * 81 + + MIN( 90 ) * + - 40 - + - 81 + - - 53 * - 86, + 72 ) THEN - MAX( DISTINCT 61 ) ELSE NULL END - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT + AVG ( 73 ) / - CASE - 61 WHEN 62 * + COALESCE ( + MAX ( + + 98 ), - + 87 * - + 87 - - ( - COUNT ( * ) ) * 81 + + MIN ( 90 ) * + - 40 - + - 81 + - - 53 * - 86, + 72 ) THEN - MAX ( DISTINCT 61 ) ELSE NULL END - + 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9924
SELECT + 62 DIV + - 7 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-9924
SELECT + 62 / + - 7 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9925
SELECT ALL 80 / + + CAST( - CASE - + 84 WHEN + + 71 - 72 + + 26 * + 94 THEN - NULLIF ( - 43, + + 99 * + 5 * - + COUNT( * ) + 83 + - - SUM( + + CAST( NULL AS DECIMAL ) ) * - 48 ) WHEN + 20 / + - 37 - + CAST( + ( 35 ) AS SIGNED ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS SIGNED ) * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL 80 / + + CAST ( - CASE - + 84 WHEN + + 71 - 72 + + 26 * + 94 THEN - NULLIF ( - 43, + + 99 * + 5 * - + COUNT ( * ) + 83 + - - SUM ( + + CAST ( NULL AS REAL ) ) * - 48 ) WHEN + 20 / + - 37 - + CAST ( + ( 35 ) AS INTEGER ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS INTEGER ) * 14
----
NULL

query I rowsort
SELECT ALL 45 * + + 22
----
990

query I rowsort
SELECT + 50 + 52
----
102

query I rowsort
SELECT DISTINCT 74 * - ( + 91 ) AS col0
----
-6734

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT ALL SUM( + 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL SUM ( + 30 ) AS col2
----
30

query I rowsort
SELECT + 1 - + 20
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ALL 75 * + COUNT( * ) + + 45
----
120

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL 75 * + COUNT ( * ) + + 45
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT + ( 97 ) + - - ( + 4 ) + + 5 * + COALESCE ( - 85, + 82 DIV 76 + 53 * + 60 * + - 76 ) AS col2
----
-324

skipif mysql # not compatible
query I rowsort label-9932
SELECT + ( 97 ) + - - ( + 4 ) + + 5 * + COALESCE ( - 85, + 82 / 76 + 53 * + 60 * + - 76 ) AS col2
----
-324

query I rowsort
SELECT + 14 - 54 * - COALESCE ( - 26, 79 )
----
-1390

query I rowsort
SELECT DISTINCT - 39 + 43 AS col1
----
4

query I rowsort
SELECT - - 79 AS col2
----
79

query I rowsort
SELECT - + 11 * ( - 10 ) AS col0
----
110

query I rowsort
SELECT + - 0 + + 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT CASE - 92 WHEN + - 29 THEN ( + 95 ) * - + 73 + COUNT( * ) WHEN + 29 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT CASE - 92 WHEN + - 29 THEN ( + 95 ) * - + 73 + COUNT ( * ) WHEN + 29 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9939
SELECT DISTINCT SUM( DISTINCT CAST( NULL AS DECIMAL ) ) + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT SUM ( DISTINCT CAST ( NULL AS REAL ) ) + + 68
----
NULL

query I rowsort
SELECT DISTINCT + + 82 AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9941
SELECT DISTINCT MAX( DISTINCT - 45 ) DIV - 1 col0
----
45

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT MAX ( DISTINCT - 45 ) / - 1 col0
----
45

query I rowsort
SELECT ALL + - 0 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9943
SELECT + COUNT( * ) DIV 78 * - + 59 * - COUNT( * ) + - 9 + + 82 + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9943
SELECT + COUNT ( * ) / 78 * - + 59 * - COUNT ( * ) + - 9 + + 82 + COUNT ( * ) AS col2
----
74

query I rowsort
SELECT DISTINCT + - 80 * + 89 + + - 99
----
-7219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9945
SELECT - NULLIF ( + + COUNT( DISTINCT 50 ), + NULLIF ( + 80, - 66 ) - COALESCE ( + 32, + 33 * - CAST( NULL AS SIGNED ) * + 15 * COUNT( * ), + CAST( - 62 AS SIGNED ) + 17 - - + NULLIF ( + ( - 34 ), - 85 ) - 58 * COUNT( * ), - 47 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9945
SELECT - NULLIF ( + + COUNT ( DISTINCT 50 ), + NULLIF ( + 80, - 66 ) - COALESCE ( + 32, + 33 * - CAST ( NULL AS INTEGER ) * + 15 * COUNT ( * ), + CAST ( - 62 AS INTEGER ) + 17 - - + NULLIF ( + ( - 34 ), - 85 ) - 58 * COUNT ( * ), - 47 ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT + 39 * - - 17 * + 85 + + COUNT( * ) + - 9
----
56347

skipif mysql # not compatible
query I rowsort label-9946
SELECT + 39 * - - 17 * + 85 + + COUNT ( * ) + - 9
----
56347

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9947
SELECT - + 24 DIV + 36 AS col1, COUNT( 45 ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-9947
SELECT - + 24 / + 36 AS col1, COUNT ( 45 ) AS col1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9948
SELECT - + COUNT( * ) * - 65, CAST( NULL AS SIGNED ) AS col2
----
65
NULL

skipif mysql # not compatible
query II rowsort label-9948
SELECT - + COUNT ( * ) * - 65, CAST ( NULL AS INTEGER ) AS col2
----
65
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT ALL + - CAST( + 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL + - CAST ( + 42 AS INTEGER )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT - 13 * - - COALESCE ( 33, - 45 + - 22 * + - CASE - 12 WHEN - + 96 * - 26 + + - 89 + - 64 * - 5 THEN + - CAST( NULL AS SIGNED ) WHEN - ( 25 ) THEN NULL ELSE + 90 END + ( - 55 ) ) + - 69 + + - 2
----
-500

skipif mysql # not compatible
query I rowsort label-9950
SELECT - 13 * - - COALESCE ( 33, - 45 + - 22 * + - CASE - 12 WHEN - + 96 * - 26 + + - 89 + - 64 * - 5 THEN + - CAST ( NULL AS INTEGER ) WHEN - ( 25 ) THEN NULL ELSE + 90 END + ( - 55 ) ) + - 69 + + - 2
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL + COUNT( * ) * + - 83 - 94 AS col1
----
-177

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL + COUNT ( * ) * + - 83 - 94 AS col1
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9952
SELECT ALL + NULLIF ( - + 13, - - CAST( NULL AS SIGNED ) ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL + NULLIF ( - + 13, - - CAST ( NULL AS INTEGER ) ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL 19 * - 27 * COUNT( * ) - - 14 + - SUM( DISTINCT + 77 ) * + + NULLIF ( - SUM( ALL + 55 ), + 14 + - 22 + - 16 - + 34 + + + 35 ) * - - 43 AS col1
----
181606

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL 19 * - 27 * COUNT ( * ) - - 14 + - SUM ( DISTINCT + 77 ) * + + NULLIF ( - SUM ( ALL + 55 ), + 14 + - 22 + - 16 - + 34 + + + 35 ) * - - 43 AS col1
----
181606

query I rowsort
SELECT - 17 * + 15 * + + 39 * - ( 20 )
----
198900

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT + COUNT( DISTINCT - 45 )
----
1

skipif mysql # not compatible
query I rowsort label-9955
SELECT + COUNT ( DISTINCT - 45 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT COALESCE ( + ( 94 ), + + ( + - COUNT( * ) ) )
----
94

skipif mysql # not compatible
query I rowsort label-9956
SELECT COALESCE ( + ( 94 ), + + ( + - COUNT ( * ) ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT + 75 * 27 + + - COUNT( * )
----
2024

skipif mysql # not compatible
query I rowsort label-9957
SELECT + 75 * 27 + + - COUNT ( * )
----
2024

query I rowsort
SELECT ALL - 71 * + 52
----
-3692

query I rowsort
SELECT - 81 * 57 AS col1
----
-4617

onlyif mysql # DIV for integer division: 
query II rowsort label-9960
SELECT + 87 + - 45 DIV 73 AS col0, - 61 * - 61 AS col2
----
87
3721

skipif mysql # not compatible
query II rowsort label-9960
SELECT + 87 + - 45 / 73 AS col0, - 61 * - 61 AS col2
----
87
3721

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9961
SELECT DISTINCT - 53 * 24 DIV ( + - COUNT( * ) )
----
1272

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT - 53 * 24 / ( + - COUNT ( * ) )
----
1272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT DISTINCT + 54 * - CASE - 9 WHEN 72 - + 42 THEN 10 * + 74 + CAST( NULL AS SIGNED ) WHEN - 3 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT + 54 * - CASE - 9 WHEN 72 - + 42 THEN 10 * + 74 + CAST ( NULL AS INTEGER ) WHEN - 3 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT + 21 + + 80 + + 53 * - + COUNT( * ) * 18 * COUNT( * ) + + 67 AS col2
----
-786

skipif mysql # not compatible
query I rowsort label-9963
SELECT + 21 + + 80 + + 53 * - + COUNT ( * ) * 18 * COUNT ( * ) + + 67 AS col2
----
-786

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL - MAX( 68 ) + + 92 + - 90 * + 87 + + - MAX( DISTINCT - NULLIF ( + 52, - 0 * - + 29 + + + 97 + + 34 + + 41 ) ) + + COUNT( * )
----
-7753

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL - MAX ( 68 ) + + 92 + - 90 * + 87 + + - MAX ( DISTINCT - NULLIF ( + 52, - 0 * - + 29 + + + 97 + + 34 + + 41 ) ) + + COUNT ( * )
----
-7753

query I rowsort
SELECT - + 21 * - 38 * - 83
----
-66234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9966
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) + - + 77 * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - + 77 * 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9967
SELECT ALL - 51 DIV + ( + - COUNT( * ) ), 56 + 20 + 76 AS col2
----
51
152

skipif mysql # not compatible
query II rowsort label-9967
SELECT ALL - 51 / + ( + - COUNT ( * ) ), 56 + 20 + 76 AS col2
----
51
152

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT + - 40 DIV + - 3
----
13

skipif mysql # not compatible
query I rowsort label-9968
SELECT + - 40 / + - 3
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9969
SELECT DISTINCT NULLIF ( 37, - - 90 / - 5 + + + ( + 33 ) + - 1 * + MIN( - + 6 ) + + + 37 * - 75 ) * - CASE + 39 WHEN + - 90 - + 59 + + ( + CAST( - 15 AS SIGNED ) ) + - COUNT( * ) * + ( + 68 ) THEN - COUNT( * ) END + + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT NULLIF ( 37, - - 90 / - 5 + + + ( + 33 ) + - 1 * + MIN ( - + 6 ) + + + 37 * - 75 ) * - CASE + 39 WHEN + - 90 - + 59 + + ( + CAST ( - 15 AS INTEGER ) ) + - COUNT ( * ) * + ( + 68 ) THEN - COUNT ( * ) END + + 89 AS col0
----
NULL

query I rowsort
SELECT ALL + 60 + + + 71 - 6 + - - 48 * + COALESCE ( + + 74, 11 ) col2
----
3677

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9971
SELECT + 79 * + + 16 * + 30 * - 64 + 64 - 33 - COUNT( * ) DIV + COUNT( * ) AS col2
----
-2426850

skipif mysql # not compatible
query I rowsort label-9971
SELECT + 79 * + + 16 * + 30 * - 64 + 64 - 33 - COUNT ( * ) / + COUNT ( * ) AS col2
----
-2426850

query I rowsort
SELECT - - NULLIF ( - + 77, + 67 ) AS col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9973
SELECT ALL 75 * + - CAST( NULL AS SIGNED ) * + 2 + - + 5 + - 49, 27 AS col0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-9973
SELECT ALL 75 * + - CAST ( NULL AS INTEGER ) * + 2 + - + 5 + - 49, 27 AS col0
----
NULL
27

query I rowsort
SELECT + - 88 * + - 76
----
6688

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT + + COUNT( * ) + + ( - 17 )
----
-16

skipif mysql # not compatible
query I rowsort label-9975
SELECT + + COUNT ( * ) + + ( - 17 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL - COUNT( * ) + + ( + - COUNT( * ) ) * + 70 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL - COUNT ( * ) + + ( + - COUNT ( * ) ) * + 70 AS col1
----
-71

query I rowsort
SELECT ( - - 57 ) AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9978
SELECT ALL + 90 DIV - 75 - - + 47 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL + 90 / - 75 - - + 47 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT + + 28 * - + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-9979
SELECT + + 28 * - + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT + 95 - + COUNT( + 52 ) * + 17 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9980
SELECT + 95 - + COUNT ( + 52 ) * + 17 AS col1
----
78

query I rowsort
SELECT + 94 * - 77 - + 7
----
-7245

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9982
SELECT + 17 AS col1, + 69 AS col2, - 35 DIV - MIN( ALL 77 ) + - ( + 13 ) + + 48 AS col0
----
17
69
35

skipif mysql # not compatible
query III rowsort label-9982
SELECT + 17 AS col1, + 69 AS col2, - 35 / - MIN ( ALL 77 ) + - ( + 13 ) + + 48 AS col0
----
17
69
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT ALL 5 DIV - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL 5 / - 73 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9984
SELECT 76 DIV 32 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9984
SELECT 76 / 32 AS col0
----
2

query I rowsort
SELECT 86 - + 5 * - 4 AS col1
----
106

query II rowsort
SELECT + 28 AS col2, 94 * - + 95
----
28
-8930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9987
SELECT CAST( + 78 AS SIGNED ) / 80 * + + COUNT( * ) / - CASE + - 41 WHEN - 56 THEN + + 43 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT CAST ( + 78 AS INTEGER ) / 80 * + + COUNT ( * ) / - CASE + - 41 WHEN - 56 THEN + + 43 END col0
----
NULL

query I rowsort
SELECT 76 + + CASE + 65 WHEN - AVG ( DISTINCT + 95 ) THEN - 68 WHEN + 8 / 20 THEN + NULLIF ( 14, + 16 * + 91 * - 14 + + 12 + + - 70 ) - 26 END + - 49 + 40 + - + 2 * + 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9989
SELECT ALL - 47 AS col2, ( + + 15 ) DIV 38 + - COUNT( * ) + - 84 + - 89 - - - NULLIF ( - 42, + CAST( 93 AS SIGNED ) )
----
-47
-132

skipif mysql # not compatible
query II rowsort label-9989
SELECT ALL - 47 AS col2, ( + + 15 ) / 38 + - COUNT ( * ) + - 84 + - 89 - - - NULLIF ( - 42, + CAST ( 93 AS INTEGER ) )
----
-47
-132

query II rowsort
SELECT 6, - 48 AS col2
----
6
-48

query I rowsort
SELECT DISTINCT 81 * + + 78 AS col0
----
6318

query I rowsort
SELECT DISTINCT - 24 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - MAX( - 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - MAX ( - 74 ) AS col1
----
74

query I rowsort
SELECT ALL + 67 + 84 AS col0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT DISTINCT - COUNT( * ) + - 60
----
-61

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT - COUNT ( * ) + - 60
----
-61

query I rowsort
SELECT 82 + + - 37
----
45

query I rowsort
SELECT DISTINCT - 95 + 38
----
-57

query II rowsort
SELECT 91 + - - 90 AS col0, + 15
----
181
15

query I rowsort
SELECT 27 * + 20 col1
----
540

