sqllogictest
Artifact Content
Not logged in

Artifact b2bf897b2329744ddc900dbd3e959855864258dd:


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