sqllogictest
Artifact Content
Not logged in

Artifact da0a5bea77f645b0427eddd722b9d29cae123905:


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 II rowsort label-0
SELECT 1 + + + 66 + + SUM( ALL + 20 ), - ( + + MIN( ALL 18 ) ) * - 1 + 43 AS col2
----
87
61

skipif mysql # not compatible
query II rowsort label-0
SELECT 1 + + + 66 + + SUM ( ALL + 20 ), - ( + + MIN ( ALL 18 ) ) * - 1 + 43 AS col2
----
87
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1
SELECT - MIN( DISTINCT - 33 ) * - 19 + - + 3 DIV - 39
----
-627

skipif mysql # not compatible
query I rowsort label-1
SELECT - MIN ( DISTINCT - 33 ) * - 19 + - + 3 / - 39
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL + COUNT( * ) + 62 + + 67 col0
----
130

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL + COUNT ( * ) + 62 + + 67 col0
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3
SELECT ALL - - 52 DIV - 89 AS col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-3
SELECT ALL - - 52 / - 89 AS col0, COUNT ( * )
----
0
1

query I rowsort
SELECT ( + - 22 ) + + 59
----
37

query I rowsort
SELECT 4 + + - 82 + + - 9
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-6
SELECT + COUNT( - 36 ) AS col0, - 79 + + 6 + - 83 AS col1
----
1
-156

skipif mysql # not compatible
query II rowsort label-6
SELECT + COUNT ( - 36 ) AS col0, - 79 + + 6 + - 83 AS col1
----
1
-156

query I rowsort
SELECT 11 * + 83 + - - 64 * 16
----
1937

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

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

query II rowsort
SELECT DISTINCT + 94 * 79 AS col0, 53 AS col1
----
7426
53

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT DISTINCT NULLIF ( CASE + COUNT( * ) WHEN + - 52 * - 14 THEN - 67 * 84 ELSE NULL END, + 51 ) * NULLIF ( + 93, ( - 83 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT NULLIF ( CASE + COUNT ( * ) WHEN + - 52 * - 14 THEN - 67 * 84 ELSE NULL END, + 51 ) * NULLIF ( + 93, ( - 83 ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT 6 + 25 + + 83 * + 3 + 67 * - COUNT( * ) AS col0
----
213

skipif mysql # not compatible
query I rowsort label-12
SELECT 6 + 25 + + 83 * + 3 + 67 * - COUNT ( * ) AS col0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT - CASE 12 WHEN + 18 THEN - - COUNT( * ) WHEN - 14 * + 91 THEN + + COUNT( * ) WHEN - 74 + 76 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-13
SELECT - CASE 12 WHEN + 18 THEN - - COUNT ( * ) WHEN - 14 * + 91 THEN + + COUNT ( * ) WHEN - 74 + 76 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 51 + + + 10 + 95 AS col2
----
156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-15
SELECT - 9 DIV COALESCE ( - + 68, 17, + 15 ) DIV + - 85 DIV - 2 + + 24 * + CAST( - 60 AS SIGNED )
----
-1440

skipif mysql # not compatible
query I rowsort label-15
SELECT - 9 / COALESCE ( - + 68, 17, + 15 ) / + - 85 / - 2 + + 24 * + CAST ( - 60 AS INTEGER )
----
-1440

query I rowsort
SELECT - 15 * COALESCE ( 48, + - 29 )
----
-720

query I rowsort
SELECT ( 59 ) col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT - - 25 + - + COUNT( * ) * + MIN( ALL + - ( - - 98 ) ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-18
SELECT - - 25 + - + COUNT ( * ) * + MIN ( ALL + - ( - - 98 ) ) AS col2
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-19
SELECT - + 50 + + COALESCE ( - - NULLIF ( 45, + CASE 98 WHEN - COUNT( * ) * 93 - NULLIF ( MIN( 90 ), 51 ) THEN NULL WHEN + 94 THEN 49 / + 71 - + CAST( 39 AS SIGNED ) WHEN + 90 * 10 THEN NULL WHEN - 84 * 65 THEN NULL END ), + ( + NULLIF ( 94, 53 ) ) + 24 * + 82 ) + 77 * - CAST( - 33 AS SIGNED ) AS col1
----
2536

skipif mysql # not compatible
query I rowsort label-19
SELECT - + 50 + + COALESCE ( - - NULLIF ( 45, + CASE 98 WHEN - COUNT ( * ) * 93 - NULLIF ( MIN ( 90 ), 51 ) THEN NULL WHEN + 94 THEN 49 / + 71 - + CAST ( 39 AS INTEGER ) WHEN + 90 * 10 THEN NULL WHEN - 84 * 65 THEN NULL END ), + ( + NULLIF ( 94, 53 ) ) + 24 * + 82 ) + 77 * - CAST ( - 33 AS INTEGER ) AS col1
----
2536

query I rowsort
SELECT ALL - 81 * 61 AS col2
----
-4941

query I rowsort
SELECT - 31 * - ( - 96 ) AS col0
----
-2976

query II rowsort
SELECT ALL + 70 + 12 - - + 11 + - 43 + + - 24 AS col2, + 58
----
26
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT ALL - + 13 + + CAST( NULL AS SIGNED ) - - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL - + 13 + + CAST ( NULL AS INTEGER ) - - + 94
----
NULL

query II rowsort
SELECT DISTINCT + + 50 + + 61 AS col0, + 78
----
111
78

query I rowsort
SELECT - 98 * - 81
----
7938

query I rowsort
SELECT + + ( - 25 ) + 62
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-27
SELECT ALL + - 0 + 17 DIV + - 80
----
0

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL + - 0 + 17 / + - 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-28
SELECT - + AVG ( - CAST( NULL AS SIGNED ) ) AS col2, + 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-28
SELECT - + AVG ( - CAST ( NULL AS INTEGER ) ) AS col2, + 76
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT + - COUNT( * ) + - - 89 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-29
SELECT + - COUNT ( * ) + - - 89 AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-30
SELECT - + 49 * - ( + AVG ( CAST( NULL AS SIGNED ) ) ) * - 76 * + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-30
SELECT - + 49 * - ( + AVG ( CAST ( NULL AS INTEGER ) ) ) * - 76 * + 45 AS col2
----
NULL

query II rowsort
SELECT ALL 8 * + - 42 + + 62 AS col2, - 58
----
-274
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-32
SELECT - 25 DIV + 7 - 4, 0 + - ( - 63 ) + - 58 AS col0
----
-7
5

skipif mysql # not compatible
query II rowsort label-32
SELECT - 25 / + 7 - 4, 0 + - ( - 63 ) + - 58 AS col0
----
-7
5

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT + 70 * - NULLIF ( + 73, - MAX( - 92 ) * + 90 * COUNT( * ) ) AS col2
----
-5110

skipif mysql # not compatible
query I rowsort label-33
SELECT + 70 * - NULLIF ( + 73, - MAX ( - 92 ) * + 90 * COUNT ( * ) ) AS col2
----
-5110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-34
SELECT + CASE CAST( NULL AS SIGNED ) WHEN - 11 THEN NULL WHEN - 78 THEN + - 70 ELSE - COALESCE ( + 18, SUM( - 5 ) ) END
----
-18

skipif mysql # not compatible
query I rowsort label-34
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN - 11 THEN NULL WHEN - 78 THEN + - 70 ELSE - COALESCE ( + 18, SUM ( - 5 ) ) END
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-35
SELECT - NULLIF ( - CAST( 53 AS SIGNED ), 12 + + 29 * - - 7 ) - - 24
----
77

skipif mysql # not compatible
query I rowsort label-35
SELECT - NULLIF ( - CAST ( 53 AS INTEGER ), 12 + + 29 * - - 7 ) - - 24
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT CASE - - COUNT( DISTINCT - 58 ) WHEN + 6 THEN COUNT( * ) * + 74 * + 42 * 56 - - 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT CASE - - COUNT ( DISTINCT - 58 ) WHEN + 6 THEN COUNT ( * ) * + 74 * + 42 * 56 - - 62 END AS col1
----
NULL

query I rowsort
SELECT + 23 * + 12
----
276

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT CASE + 32 WHEN 55 * - 58 - - - 52 + + 55 THEN + 67 WHEN NULLIF ( COUNT( * ), - 62 * 7 ) * - 39 + - 26 THEN NULL ELSE - 10 END
----
-10

skipif mysql # not compatible
query I rowsort label-39
SELECT CASE + 32 WHEN 55 * - 58 - - - 52 + + 55 THEN + 67 WHEN NULLIF ( COUNT ( * ), - 62 * 7 ) * - 39 + - 26 THEN NULL ELSE - 10 END
----
-10

query I rowsort
SELECT DISTINCT 26 * - - 95 * + - 86 - - 74 AS col1
----
-212346

query I rowsort
SELECT 44 * - 18 * + 48 - 50 AS col1
----
-38066

query I rowsort
SELECT ALL 82 * - 87
----
-7134

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT DISTINCT COUNT( * ) * + + COALESCE ( 61, - - 68, + COUNT( * ) - + 72 * + - 15 * + 56 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-43
SELECT DISTINCT COUNT ( * ) * + + COALESCE ( 61, - - 68, + COUNT ( * ) - + 72 * + - 15 * + 56 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT ALL + CASE - 50 WHEN + MIN( DISTINCT - 44 ) THEN NULL WHEN - 26 * - 79 / - 26 * - 88 THEN NULL WHEN NULLIF ( 11, COUNT( * ) ) THEN NULLIF ( COUNT( * ), 10 + + 57 ) / + 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + CASE - 50 WHEN + MIN ( DISTINCT - 44 ) THEN NULL WHEN - 26 * - 79 / - 26 * - 88 THEN NULL WHEN NULLIF ( 11, COUNT ( * ) ) THEN NULLIF ( COUNT ( * ), 10 + + 57 ) / + 69 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-45
SELECT ALL CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN - 57 ELSE - - 71 * + 22 END * + COUNT( * ) + + + 23 + - 15 * - 35
----
2110

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN - 57 ELSE - - 71 * + 22 END * + COUNT ( * ) + + + 23 + - 15 * - 35
----
2110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-46
SELECT 44 * + 49 + - 60 * COUNT( * ) DIV 56 AS col2
----
2155

skipif mysql # not compatible
query I rowsort label-46
SELECT 44 * + 49 + - 60 * COUNT ( * ) / 56 AS col2
----
2155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-47
SELECT + 46 DIV CASE CAST( COALESCE ( 18, + NULLIF ( - + ( - + 5 ), 29 ) * 30, - 35 * 24, COUNT( * ) + + 11 ) AS SIGNED ) WHEN - 13 THEN - COUNT( * ) ELSE - COUNT( * ) END col0
----
-46

skipif mysql # not compatible
query I rowsort label-47
SELECT + 46 / CASE CAST ( COALESCE ( 18, + NULLIF ( - + ( - + 5 ), 29 ) * 30, - 35 * 24, COUNT ( * ) + + 11 ) AS INTEGER ) WHEN - 13 THEN - COUNT ( * ) ELSE - COUNT ( * ) END col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-48
SELECT + NULLIF ( - MIN( - - CAST( NULL AS SIGNED ) ), + + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT + NULLIF ( - MIN ( - - CAST ( NULL AS INTEGER ) ), + + 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT + 16 + - 70 + + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-49
SELECT + 16 + - 70 + + COUNT ( * )
----
-53

query I rowsort
SELECT + 34 * + ( 65 ) AS col2
----
2210

query I rowsort
SELECT - 39 + 54
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT - COUNT( DISTINCT + 5 ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-52
SELECT - COUNT ( DISTINCT + 5 ) - + COUNT ( * )
----
-2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-54
SELECT DISTINCT COUNT( * ) col0, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-54
SELECT DISTINCT COUNT ( * ) col0, - COUNT ( * )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT ALL - 10 * - COUNT( * ) + COUNT( * ) AS col2
----
11

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-56
SELECT - ( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT - ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-57
SELECT ALL ( - 18 ) * + 41 * 61 * - 79 + + + 60 DIV - - 90 * 6
----
3556422

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL ( - 18 ) * + 41 * 61 * - 79 + + + 60 / - - 90 * 6
----
3556422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-58
SELECT - + CAST( 74 AS SIGNED ) * - SUM( 2 ) + - 48 - + 26 * + 71 * + 30
----
-55280

skipif mysql # not compatible
query I rowsort label-58
SELECT - + CAST ( 74 AS INTEGER ) * - SUM ( 2 ) + - 48 - + 26 * + 71 * + 30
----
-55280

query I rowsort
SELECT DISTINCT - 32 + 26
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT - - 21 + - ( + AVG ( DISTINCT - 0 ) ) + - 8 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-60
SELECT - - 21 + - ( + AVG ( DISTINCT - 0 ) ) + - 8 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT ALL - + 77 * - CAST( 19 AS SIGNED ) AS col1
----
1463

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL - + 77 * - CAST ( 19 AS INTEGER ) AS col1
----
1463

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-62
SELECT DISTINCT + - 15 + + + 42 DIV - COUNT( ALL + 62 )
----
-57

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT + - 15 + + + 42 / - COUNT ( ALL + 62 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT + + 94 - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-63
SELECT + + 94 - COUNT ( * )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-64
SELECT + - COALESCE ( 99, - + 47 + + + 77 ) + - + COALESCE ( - NULLIF ( + 8, CAST( NULL AS SIGNED ) * 96 ), + 90 + - COALESCE ( 87, 95 ), 3, - 93 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-64
SELECT + - COALESCE ( 99, - + 47 + + + 77 ) + - + COALESCE ( - NULLIF ( + 8, CAST ( NULL AS INTEGER ) * 96 ), + 90 + - COALESCE ( 87, 95 ), 3, - 93 ) AS col0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-65
SELECT - - COUNT( * ) DIV + - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-65
SELECT - - COUNT ( * ) / + - 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-66
SELECT - 56 + + MAX( ALL + 58 ) col1, 3
----
2
3

skipif mysql # not compatible
query II rowsort label-66
SELECT - 56 + + MAX ( ALL + 58 ) col1, 3
----
2
3

query II rowsort
SELECT ALL + 18, + ( - 91 ) col2
----
18
-91

query II rowsort
SELECT - 56, 36 AS col0
----
-56
36

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-70
SELECT - 18 - 19 * + 48, 42 + + + ( 65 ) DIV ( 57 ) AS col0
----
-930
43

skipif mysql # not compatible
query II rowsort label-70
SELECT - 18 - 19 * + 48, 42 + + + ( 65 ) / ( 57 ) AS col0
----
-930
43

query I rowsort
SELECT DISTINCT - 76 * - 11 * + 69
----
57684

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT - + 17 + + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-72
SELECT - + 17 + + COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-73
SELECT - + COUNT( * ) DIV + - 18 + - COUNT( * ) * - 88
----
88

skipif mysql # not compatible
query I rowsort label-73
SELECT - + COUNT ( * ) / + - 18 + - COUNT ( * ) * - 88
----
88

query I rowsort
SELECT - - 37 - + 39 * 43 + 70 AS col1
----
-1570

query I rowsort
SELECT ALL - 32 * - + 95 AS col0
----
3040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-76
SELECT + 66 DIV - + 50 + - + 67 + - MIN( + 30 )
----
-98

skipif mysql # not compatible
query I rowsort label-76
SELECT + 66 / - + 50 + - + 67 + - MIN ( + 30 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT - 79 * + + COUNT( * ) - + + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-77
SELECT - 79 * + + COUNT ( * ) - + + COUNT ( * )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-78
SELECT DISTINCT - COALESCE ( + 5, - + 75 * + + 55 * CAST( NULL AS SIGNED ) * - 31 ) * 17 * COUNT( DISTINCT - ( 61 ) ) * 29
----
-2465

skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT - COALESCE ( + 5, - + 75 * + + 55 * CAST ( NULL AS INTEGER ) * - 31 ) * 17 * COUNT ( DISTINCT - ( 61 ) ) * 29
----
-2465

query I rowsort
SELECT DISTINCT + ( 43 ) AS col0
----
43

query I rowsort
SELECT ALL - 39 * + 54 AS col1
----
-2106

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

skipif mysql # not compatible
query I rowsort label-81
SELECT - 16 * - + 82 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - 21 * - COALESCE ( + 82, - 5 ) AS col0, 10 AS col0
----
1722
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-83
SELECT + 70 * NULLIF ( + CASE 15 WHEN + COUNT( * ) THEN + - CAST( NULL AS SIGNED ) END, - CAST( + 52 AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT + 70 * NULLIF ( + CASE 15 WHEN + COUNT ( * ) THEN + - CAST ( NULL AS INTEGER ) END, - CAST ( + 52 AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 29 + - + 82 + + 26 * + + 32 AS col2
----
779

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-86
SELECT ALL COUNT( * ) DIV + ( + 78 ) * - + 10, 99 AS col0
----
0
99

skipif mysql # not compatible
query II rowsort label-86
SELECT ALL COUNT ( * ) / + ( + 78 ) * - + 10, 99 AS col0
----
0
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-87
SELECT 16 DIV 47 DIV - MAX( - 34 )
----
0

skipif mysql # not compatible
query I rowsort label-87
SELECT 16 / 47 / - MAX ( - 34 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-88
SELECT DISTINCT CASE 35 WHEN + 36 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - 91 DIV 4 + + 93 + + 44 + - 51 * 61 * 47 END * 9 AS col1
----
-1314918

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT CASE 35 WHEN + 36 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - 91 / 4 + + 93 + + 44 + - 51 * 61 * 47 END * 9 AS col1
----
-1314918

query I rowsort
SELECT DISTINCT 22 + - + 75 + + 8 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT ALL CASE - - 3 WHEN - 95 THEN + + 5 * - COUNT( - 36 ) + - 69 / + 24 * 90 * + 54 WHEN - AVG ( 51 ) + + COUNT( * ) THEN NULL END + - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL CASE - - 3 WHEN - 95 THEN + + 5 * - COUNT ( - 36 ) + - 69 / + 24 * 90 * + 54 WHEN - AVG ( 51 ) + + COUNT ( * ) THEN NULL END + - 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL 57 + - SUM( DISTINCT + 55 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL 57 + - SUM ( DISTINCT + 55 ) col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT DISTINCT COALESCE ( - + 61, - 21, + - 59 ) * + COUNT( DISTINCT - + 9 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT COALESCE ( - + 61, - 21, + - 59 ) * + COUNT ( DISTINCT - + 9 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT DISTINCT 86 + - - ( + NULLIF ( - ( - - 1 ), - MIN( - 74 ) ) )
----
85

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT 86 + - - ( + NULLIF ( - ( - - 1 ), - MIN ( - 74 ) ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT ALL SUM( ALL 0 ) + COUNT( ALL 93 ) * - 8 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL SUM ( ALL 0 ) + COUNT ( ALL 93 ) * - 8 AS col2
----
-8

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

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

query I rowsort
SELECT 27 + 61
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-97
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) + - - 58 + - 96 * + + ( - - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - - 58 + - 96 * + + ( - - 25 )
----
NULL

query I rowsort
SELECT ALL - 29 - - + 13
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-99
SELECT COUNT( * ) + CAST( - 94 AS SIGNED ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-99
SELECT COUNT ( * ) + CAST ( - 94 AS INTEGER ) AS col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-100
SELECT + 16 + - 24 AS col1, 24 / - AVG ( DISTINCT - + 34 ) * 20 * + CASE + 27 WHEN 24 THEN NULL WHEN + 51 * - COUNT( * ) THEN NULL WHEN - CAST( 69 AS SIGNED ) THEN NULLIF ( + 87, CAST( NULL AS SIGNED ) ) ELSE NULL END + 45 AS col1
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-100
SELECT + 16 + - 24 AS col1, 24 / - AVG ( DISTINCT - + 34 ) * 20 * + CASE + 27 WHEN 24 THEN NULL WHEN + 51 * - COUNT ( * ) THEN NULL WHEN - CAST ( 69 AS INTEGER ) THEN NULLIF ( + 87, CAST ( NULL AS INTEGER ) ) ELSE NULL END + 45 AS col1
----
-8
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-101
SELECT DISTINCT 4 - - + 72 - - 62 DIV + + 36, CAST( + 85 AS SIGNED ) * - 54 * + 76 AS col2
----
77
-348840

skipif mysql # not compatible
query II rowsort label-101
SELECT DISTINCT 4 - - + 72 - - 62 / + + 36, CAST ( + 85 AS INTEGER ) * - 54 * + 76 AS col2
----
77
-348840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-102
SELECT + 73 * + CAST( NULL AS SIGNED ) * + 62 * - - 87 AS col1, - COUNT( * ) * + + 29 AS col2
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-102
SELECT + 73 * + CAST ( NULL AS INTEGER ) * + 62 * - - 87 AS col1, - COUNT ( * ) * + + 29 AS col2
----
NULL
-29

query I rowsort
SELECT + 43 * + - 8 AS col0
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT - ( - COUNT( - 13 ) )
----
1

skipif mysql # not compatible
query I rowsort label-104
SELECT - ( - COUNT ( - 13 ) )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-105
SELECT 76 + - 75 - - 51 / 37 + - 54 * + 31 * 38 * 45 + + CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT 76 + - 75 - - 51 / 37 + - 54 * + 31 * 38 * 45 + + CAST ( + CAST ( NULL AS REAL ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT ALL MAX( 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL MAX ( 2 ) AS col2
----
2

query I rowsort
SELECT - 66 + 50 * 15
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - 9 * - 25 + + 76 + COUNT( * ) + - + 6 * 36
----
86

skipif mysql # not compatible
query I rowsort label-108
SELECT - 9 * - 25 + + 76 + COUNT ( * ) + - + 6 * 36
----
86

query II rowsort
SELECT ALL - 81 AS col1, + 53
----
-81
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-110
SELECT ALL + SUM( - 40 ) DIV 92 * - + 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL + SUM ( - 40 ) / 92 * - + 4 AS col0
----
0

query I rowsort
SELECT 10 - - 15
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-112
SELECT ALL - ( NULLIF ( COUNT( DISTINCT ( - 75 ) ), + SUM( DISTINCT - COALESCE ( - + CAST( 23 AS SIGNED ), NULLIF ( 33, 60 ) * - 84 ) ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL - ( NULLIF ( COUNT ( DISTINCT ( - 75 ) ), + SUM ( DISTINCT - COALESCE ( - + CAST ( 23 AS INTEGER ), NULLIF ( 33, 60 ) * - 84 ) ) ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-113
SELECT ALL - CAST( - 46 AS SIGNED ) + + + 9 + ( 80 ) * 62
----
5015

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL - CAST ( - 46 AS INTEGER ) + + + 9 + ( 80 ) * 62
----
5015

query I rowsort
SELECT 19 * + 56
----
1064

query I rowsort
SELECT DISTINCT - 72 + + + 20 + 96 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL + 17 + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL + 17 + COUNT ( * ) AS col0
----
18

query I rowsort
SELECT ALL - ( - 84 )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-118
SELECT - 42 DIV 61 - + 97 DIV - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-118
SELECT - 42 / 61 - + 97 / - COUNT ( * ) AS col2
----
97

query I rowsort
SELECT ALL 33 + - 20
----
13

query I rowsort
SELECT 54 - 40
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL - COUNT( * ) + - 35 * - 69
----
2414

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL - COUNT ( * ) + - 35 * - 69
----
2414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-122
SELECT DISTINCT 9 DIV COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT 9 / COUNT ( * ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT - - 14 * 62 - - 79 + + COUNT( * ) AS col1
----
948

skipif mysql # not compatible
query I rowsort label-123
SELECT - - 14 * 62 - - 79 + + COUNT ( * ) AS col1
----
948

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

query I rowsort
SELECT + 14 * + - CASE + 36 WHEN + - 19 THEN 23 ELSE + - 57 + 58 END - + 76
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT DISTINCT - 50 DIV + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT - 50 / + 74 AS col1
----
0

query I rowsort
SELECT + 55 + 3 AS col0
----
58

query I rowsort
SELECT - 25 - 97 + - COALESCE ( + 21, - 94 ) AS col2
----
-143

query I rowsort
SELECT ALL + 17 * - NULLIF ( - 69, - - 98 )
----
1173

query I rowsort
SELECT ALL 8 - + 37 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-131
SELECT - - 45 AS col0, 53 + + COUNT( ALL + + 28 ) + 63
----
45
117

skipif mysql # not compatible
query II rowsort label-131
SELECT - - 45 AS col0, 53 + + COUNT ( ALL + + 28 ) + 63
----
45
117

query I rowsort
SELECT + + 13 * + 23 + - 66 col0
----
233

query II rowsort
SELECT DISTINCT 97 AS col1, - 21 * - 70
----
97
1470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-134
SELECT 55 + CAST( NULL AS SIGNED ) * - 25 / 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT 55 + CAST ( NULL AS INTEGER ) * - 25 / 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-135
SELECT + CASE - 47 WHEN 67 * - 74 + - + 91 + - 29 THEN NULL WHEN + 57 THEN NULL ELSE + 11 END DIV + 12 - + 35 DIV - MIN( ALL + 9 * 60 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-135
SELECT + CASE - 47 WHEN 67 * - 74 + - + 91 + - 29 THEN NULL WHEN + 57 THEN NULL ELSE + 11 END / + 12 - + 35 / - MIN ( ALL + 9 * 60 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-136
SELECT CAST( NULL AS SIGNED ) / + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT CAST ( NULL AS INTEGER ) / + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-137
SELECT 1 + - CASE 70 WHEN 28 * - 5 * - + 66 / + + COUNT( * ) - - - CAST( NULL AS SIGNED ) + 12 THEN NULL ELSE + 93 END AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-137
SELECT 1 + - CASE 70 WHEN 28 * - 5 * - + 66 / + + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) + 12 THEN NULL ELSE + 93 END AS col1
----
-92

query I rowsort
SELECT DISTINCT + NULLIF ( + 79, + 9 )
----
79

query II rowsort
SELECT DISTINCT + 96, + 18 + - + 15 AS col1
----
96
3

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

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

query I rowsort
SELECT DISTINCT 24 + + - 79 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-142
SELECT DISTINCT COUNT( * ) * + - 0 AS col0, COUNT( * ) * 96
----
0
96

skipif mysql # not compatible
query II rowsort label-142
SELECT DISTINCT COUNT ( * ) * + - 0 AS col0, COUNT ( * ) * 96
----
0
96

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

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

query I rowsort
SELECT NULLIF ( - + ( 94 ), 45 / + ( + 28 ) + 59 ) + 80 + - 16 col1
----
-30

query I rowsort
SELECT DISTINCT CASE + 3 WHEN 60 THEN - 68 + 46 END * - 80
----
NULL

query I rowsort
SELECT ALL 11 + + - 94
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-147
SELECT 85 DIV + 5 + + 2 + - COUNT( - 97 )
----
18

skipif mysql # not compatible
query I rowsort label-147
SELECT 85 / + 5 + + 2 + - COUNT ( - 97 )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-148
SELECT 49 * 69 - + 61 + - COALESCE ( - 18, + 0 DIV + + ( 89 ) DIV - 54 * 14 * + 21 + 3 )
----
3338

skipif mysql # not compatible
query I rowsort label-148
SELECT 49 * 69 - + 61 + - COALESCE ( - 18, + 0 / + + ( 89 ) / - 54 * 14 * + 21 + 3 )
----
3338

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

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

query I rowsort
SELECT + 93 + + 64
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-151
SELECT + CAST( NULL AS SIGNED ) * - - ( 62 ) * - - 61 - + - 40 + 30 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-151
SELECT + CAST ( NULL AS INTEGER ) * - - ( 62 ) * - - 61 - + - 40 + 30 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-152
SELECT ALL - 44 * - MIN( ALL 64 ) + + COUNT( * ) + - - COUNT( * ) DIV - + 81 AS col0, 9 AS col0
----
2817
9

skipif mysql # not compatible
query II rowsort label-152
SELECT ALL - 44 * - MIN ( ALL 64 ) + + COUNT ( * ) + - - COUNT ( * ) / - + 81 AS col0, 9 AS col0
----
2817
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-153
SELECT + CASE + 0 WHEN + 72 * + 67 THEN - + CAST( NULL AS SIGNED ) - 12 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT + CASE + 0 WHEN + 72 * + 67 THEN - + CAST ( NULL AS INTEGER ) - 12 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-154
SELECT ALL ( + 5 ) * + 41 + - - COUNT( * ) AS col0, + 95 AS col2
----
206
95

skipif mysql # not compatible
query II rowsort label-154
SELECT ALL ( + 5 ) * + 41 + - - COUNT ( * ) AS col0, + 95 AS col2
----
206
95

query I rowsort
SELECT + 87 + - 18 AS col1
----
69

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

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

query I rowsort
SELECT DISTINCT - 50 * - + 34 + + + 7
----
1707

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT 22 DIV - - 23 + - 63 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-158
SELECT 22 / - - 23 + - 63 AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-159
SELECT ALL - CAST( NULL AS SIGNED ) * + 86 * + ( + - COUNT( + 63 ) ) + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL - CAST ( NULL AS INTEGER ) * + 86 * + ( + - COUNT ( + 63 ) ) + - 77 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-160
SELECT - 16 + - 75 + + + 33 * + - 36 * CASE - MAX( + CAST( NULL AS DECIMAL ) ) WHEN + + 38 THEN - + CAST( + AVG ( 1 ) AS SIGNED ) WHEN 34 / + 13 THEN NULL WHEN - 99 THEN NULL END * AVG ( - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT - 16 + - 75 + + + 33 * + - 36 * CASE - MAX ( + CAST ( NULL AS REAL ) ) WHEN + + 38 THEN - + CAST ( + AVG ( 1 ) AS INTEGER ) WHEN 34 / + 13 THEN NULL WHEN - 99 THEN NULL END * AVG ( - 72 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT + 27 DIV - + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-161
SELECT + 27 / - + 82 AS col2
----
0

query I rowsort
SELECT - 33 * - - 12 col2
----
-396

query I rowsort
SELECT ALL - 14 * - 42 AS col0
----
588

query I rowsort
SELECT + 45 + + 38 * 57 AS col2
----
2211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-165
SELECT - COALESCE ( + - COUNT( * ), + SUM( DISTINCT + 24 ) ) + - CAST( 18 AS SIGNED ) - 14 + - CAST( NULL AS SIGNED ) * - - COUNT( * ) * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-165
SELECT - COALESCE ( + - COUNT ( * ), + SUM ( DISTINCT + 24 ) ) + - CAST ( 18 AS INTEGER ) - 14 + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * 99
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-167
SELECT + 79, 74 * + CAST( + ( - 36 ) AS SIGNED ) AS col1
----
79
-2664

skipif mysql # not compatible
query II rowsort label-167
SELECT + 79, 74 * + CAST ( + ( - 36 ) AS INTEGER ) AS col1
----
79
-2664

query II rowsort
SELECT + 87 * - 70 * - - 52 + 55, 11 AS col1
----
-316625
11

query II rowsort
SELECT ALL + 11, - 2 AS col1
----
11
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-170
SELECT ALL + CAST( NULL AS SIGNED ) * - 75 / - 63 - + - 30 * - + 62 - + 76 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL + CAST ( NULL AS INTEGER ) * - 75 / - 63 - + - 30 * - + 62 - + 76 * - - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - + MIN( DISTINCT + 96 ) + 22 * 74 AS col2
----
1532

skipif mysql # not compatible
query I rowsort label-172
SELECT - + MIN ( DISTINCT + 96 ) + 22 * 74 AS col2
----
1532

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT + CASE - COUNT( * ) WHEN - CASE + - 60 WHEN - + 40 THEN - - ( + + 15 ) END THEN + 22 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT + CASE - COUNT ( * ) WHEN - CASE + - 60 WHEN - + 40 THEN - - ( + + 15 ) END THEN + 22 ELSE NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT - 70 AS col2, + MIN( DISTINCT + - 4 ) + + 62 AS col0
----
-70
58

skipif mysql # not compatible
query II rowsort label-175
SELECT - 70 AS col2, + MIN ( DISTINCT + - 4 ) + + 62 AS col0
----
-70
58

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT - 70 * 12 + - 87 + + - 78 * + ( + COUNT( * ) ) * + + 55 / - 61 + + + CASE WHEN + 87 IS NULL THEN + CASE 93 WHEN 70 THEN 9 * 19 - + 17 WHEN + 43 + + 1 THEN NULL END ELSE NULL END * 11 + + 70 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-176
SELECT - 70 * 12 + - 87 + + - 78 * + ( + COUNT ( * ) ) * + + 55 / - 61 + + + CASE WHEN + 87 IS NULL THEN + CASE 93 WHEN 70 THEN 9 * 19 - + 17 WHEN + 43 + + 1 THEN NULL END ELSE NULL END * 11 + + 70 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-177
SELECT - 64 * + MAX( + ( - 19 ) ) AS col1, + 5 AS col0
----
1216
5

skipif mysql # not compatible
query II rowsort label-177
SELECT - 64 * + MAX ( + ( - 19 ) ) AS col1, + 5 AS col0
----
1216
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-178
SELECT + - 50 + + 11 / CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-178
SELECT + - 50 + + 11 / CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-179
SELECT ALL + 44 * - CAST( 45 AS SIGNED ) * + 28
----
-55440

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL + 44 * - CAST ( 45 AS INTEGER ) * + 28
----
-55440

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

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

query I rowsort
SELECT ALL + NULLIF ( 58, + 27 ) col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-182
SELECT - - CAST( - COALESCE ( + 43, + - 35 + + ( + 84 ) ) AS SIGNED ) + SUM( + + 4 )
----
-39

skipif mysql # not compatible
query I rowsort label-182
SELECT - - CAST ( - COALESCE ( + 43, + - 35 + + ( + 84 ) ) AS INTEGER ) + SUM ( + + 4 )
----
-39

query II rowsort
SELECT DISTINCT 26 AS col1, + 58 * 45 AS col0
----
26
2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-184
SELECT ALL - COUNT( - CASE + + 63 WHEN - + 73 + 88 + + CAST( NULL AS DECIMAL ) THEN + + 1 ELSE - 42 END ) + - 72 + - 69 * + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL - COUNT ( - CASE + + 63 WHEN - + 73 + 88 + + CAST ( NULL AS REAL ) THEN + + 1 ELSE - 42 END ) + - 72 + - 69 * + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-185
SELECT - + 89 + + - COALESCE ( 78, - + COUNT( * ) + 37 ) + - NULLIF ( COUNT( * ), + 11 + - - CAST( NULL AS SIGNED ) + + 67 * - CAST( NULL AS SIGNED ) * 43 * 71 ) - - 8 * + 49 * 58 * COUNT( * )
----
22568

skipif mysql # not compatible
query I rowsort label-185
SELECT - + 89 + + - COALESCE ( 78, - + COUNT ( * ) + 37 ) + - NULLIF ( COUNT ( * ), + 11 + - - CAST ( NULL AS INTEGER ) + + 67 * - CAST ( NULL AS INTEGER ) * 43 * 71 ) - - 8 * + 49 * 58 * COUNT ( * )
----
22568

query I rowsort
SELECT ALL - + ( - 77 ) * - - 74 AS col2
----
5698

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

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

query I rowsort
SELECT DISTINCT 6 + + 59 AS col0
----
65

query I rowsort
SELECT ALL ( - 81 ) + + - 46 + + 98 AS col0
----
-29

query I rowsort
SELECT + 47 + 5 * - 48
----
-193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-191
SELECT - 17 * - CAST( NULL AS SIGNED ) * + 70 * + NULLIF ( - 25, + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-191
SELECT - 17 * - CAST ( NULL AS INTEGER ) * + 70 * + NULLIF ( - 25, + 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT + COUNT( * ) + + 15 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-192
SELECT + COUNT ( * ) + + 15 AS col0
----
16

query I rowsort
SELECT ALL 5 + 41 AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT DISTINCT - COUNT( * ) DIV + + 91 + + - 53 + - - 45 * 66 AS col2
----
2917

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT - COUNT ( * ) / + + 91 + + - 53 + - - 45 * 66 AS col2
----
2917

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT ALL + 23 DIV - + 34 * - 23 * - 55 + + 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + 23 / - + 34 * - 23 * - 55 + + 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL 34 * MAX( ALL 37 ) AS col2
----
1258

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL 34 * MAX ( ALL 37 ) AS col2
----
1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-197
SELECT CAST( + + 0 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-197
SELECT CAST ( + + 0 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT ALL 98 * + MAX( 74 ) AS col0
----
7252

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL 98 * + MAX ( 74 ) AS col0
----
7252

query I rowsort
SELECT + 4 + ( + 61 ) + 10 * + 31 * - ( 92 ) * - 67 - - 91 AS col0
----
1910996

query I rowsort
SELECT - 9 * + 33 * - 16 AS col2
----
4752

query I rowsort
SELECT + 21 * + 42
----
882

query I rowsort
SELECT + 46 * + 85 + + 24
----
3934

query I rowsort
SELECT ALL + 22 * - - ( - - 5 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT COUNT( * ) * 0 - 36 * 5 AS col0
----
-180

skipif mysql # not compatible
query I rowsort label-204
SELECT COUNT ( * ) * 0 - 36 * 5 AS col0
----
-180

query I rowsort
SELECT + + 36 - 75 AS col2
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT DISTINCT - 67 * + + MIN( DISTINCT + 83 ) AS col0
----
-5561

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT - 67 * + + MIN ( DISTINCT + 83 ) AS col0
----
-5561

query I rowsort
SELECT - 73 + + ( + 88 ) * + - 71
----
-6321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-209
SELECT ALL - 50 * + - 28, COUNT( * ) + - COUNT( * ) + 53 + COUNT( * ) + + 87 * - + COUNT( ALL - - CAST( NULL AS SIGNED ) ) * 28 + 98 AS col1
----
1400
152

skipif mysql # not compatible
query II rowsort label-209
SELECT ALL - 50 * + - 28, COUNT ( * ) + - COUNT ( * ) + 53 + COUNT ( * ) + + 87 * - + COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) * 28 + 98 AS col1
----
1400
152

onlyif mysql # DIV for integer division: 
query I rowsort label-210
SELECT - 82 DIV 1 * 40 AS col0
----
-3280

skipif mysql # not compatible
query I rowsort label-210
SELECT - 82 / 1 * 40 AS col0
----
-3280

query I rowsort
SELECT + 64 * - - 16 + 31 + - 99
----
956

query I rowsort
SELECT - 96 * + 95 * + 36 AS col1
----
-328320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT + 40 + - + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-214
SELECT + 40 + - + COUNT ( * ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT + 68 * + CASE WHEN 51 = NULL THEN NULL WHEN 25 <= NULL THEN + 60 + ( + - 45 ) ELSE NULL END / - + COUNT( * ) * - AVG ( DISTINCT 65 ) + 14 / 39 - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT + 68 * + CASE WHEN 51 = NULL THEN NULL WHEN 25 <= NULL THEN + 60 + ( + - 45 ) ELSE NULL END / - + COUNT ( * ) * - AVG ( DISTINCT 65 ) + 14 / 39 - 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-216
SELECT + + MIN( DISTINCT - 4 ) DIV + + 67 + - SUM( DISTINCT 18 ), - 10 AS col2
----
-18
-10

skipif mysql # not compatible
query II rowsort label-216
SELECT + + MIN ( DISTINCT - 4 ) / + + 67 + - SUM ( DISTINCT 18 ), - 10 AS col2
----
-18
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-217
SELECT - + 79 * + 49, - 91 * - 78 / - CAST( + + 4 AS SIGNED ) * + CASE + ( - - 20 ) WHEN - + 82 THEN - 6 * - 39 + - 5 * COUNT( * ) + ( 94 + 93 ) WHEN 18 THEN + CASE + 96 WHEN + 37 THEN NULL ELSE 96 END * 22 ELSE NULL END * 84 + - COUNT( * ) * 99 col0
----
-3871
NULL

skipif mysql # not compatible
query II rowsort label-217
SELECT - + 79 * + 49, - 91 * - 78 / - CAST ( + + 4 AS INTEGER ) * + CASE + ( - - 20 ) WHEN - + 82 THEN - 6 * - 39 + - 5 * COUNT ( * ) + ( 94 + 93 ) WHEN 18 THEN + CASE + 96 WHEN + 37 THEN NULL ELSE 96 END * 22 ELSE NULL END * 84 + - COUNT ( * ) * 99 col0
----
-3871
NULL

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

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

query I rowsort
SELECT + NULLIF ( 3, + - 7 )
----
3

query I rowsort
SELECT ALL - 33 * + 60 + - - 63
----
-1917

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

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT ALL + 68 * - COUNT( * ) + 62 * - + 50 * 37 AS col1
----
-114768

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL + 68 * - COUNT ( * ) + 62 * - + 50 * 37 AS col1
----
-114768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT - - 60 + - - 69 DIV + COUNT( * )
----
129

skipif mysql # not compatible
query I rowsort label-223
SELECT - - 60 + - - 69 / + COUNT ( * )
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-224
SELECT - MIN( ALL - 79 ) * - COALESCE ( + + 46, + - 94 + - 8, NULLIF ( + COUNT( * ), - 87 * ( + - 5 ) ) * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + CAST( NULL AS SIGNED ) + 73, + COUNT( * ) )
----
-3634

skipif mysql # not compatible
query I rowsort label-224
SELECT - MIN ( ALL - 79 ) * - COALESCE ( + + 46, + - 94 + - 8, NULLIF ( + COUNT ( * ), - 87 * ( + - 5 ) ) * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) + 73, + COUNT ( * ) )
----
-3634

query II rowsort
SELECT DISTINCT + 89 * 21 + - 15, 33 AS col1
----
1854
33

query I rowsort
SELECT ALL - 49 + NULLIF ( - 25, - NULLIF ( + 28, - 83 ) + - 12 + + 82 )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-227
SELECT 19 + + + COUNT( * ) * 22 + COUNT( * ) + 69 + + 39 DIV + NULLIF ( + 20, + 21 ) - + - 50 + 46 AS col0
----
208

skipif mysql # not compatible
query I rowsort label-227
SELECT 19 + + + COUNT ( * ) * 22 + COUNT ( * ) + 69 + + 39 / + NULLIF ( + 20, + 21 ) - + - 50 + 46 AS col0
----
208

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT DISTINCT + 4 + + ( COALESCE ( + + COUNT( 89 ), - 9 + - + ( - 32 ), - 90 ) )
----
5

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT + 4 + + ( COALESCE ( + + COUNT ( 89 ), - 9 + - + ( - 32 ), - 90 ) )
----
5

query II rowsort
SELECT ALL 80, 28 * - 20 AS col2
----
80
-560

onlyif mysql # DIV for integer division: 
query I rowsort label-231
SELECT ALL - 31 * 28 DIV - ( - 17 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL - 31 * 28 / - ( - 17 ) AS col0
----
-51

query II rowsort
SELECT DISTINCT 86, - 79 AS col1
----
86
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT ALL 52 - + - 42 + 20 * + COUNT( * ) AS col1
----
114

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL 52 - + - 42 + 20 * + COUNT ( * ) AS col1
----
114

query I rowsort
SELECT 61 * + + 79
----
4819

query I rowsort
SELECT ALL + 59 * 47
----
2773

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

skipif mysql # not compatible
query I rowsort label-236
SELECT ( + CAST ( NULL AS INTEGER ) ) * 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT COUNT( 74 ) * 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-237
SELECT COUNT ( 74 ) * 72 AS col1
----
72

query I rowsort
SELECT 44 + - 48
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-239
SELECT 23 * + + ( + COUNT( * ) ) - 94 AS col2, 29 * MIN( + + 70 )
----
-71
2030

skipif mysql # not compatible
query II rowsort label-239
SELECT 23 * + + ( + COUNT ( * ) ) - 94 AS col2, 29 * MIN ( + + 70 )
----
-71
2030

query II rowsort
SELECT ALL - 15, + 56 AS col2
----
-15
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-241
SELECT 54 + - COUNT( * ) DIV 30 - - 92 + - COUNT( * ) + - + 92 * ( 47 ) AS col2, 18
----
-4179
18

skipif mysql # not compatible
query II rowsort label-241
SELECT 54 + - COUNT ( * ) / 30 - - 92 + - COUNT ( * ) + - + 92 * ( 47 ) AS col2, 18
----
-4179
18

query II rowsort
SELECT 60 * + ( - 90 ) AS col0, - 63 col0
----
-5400
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT SUM( 31 ) + 84
----
115

skipif mysql # not compatible
query I rowsort label-243
SELECT SUM ( 31 ) + 84
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT ALL - - MAX( ALL + - ( 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - - MAX ( ALL + - ( 11 ) )
----
-11

query I rowsort
SELECT ALL 74 * - + 69 * 78 AS col0
----
-398268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-246
SELECT + 53 * - ( + COUNT( * ) ) DIV + - COUNT( * ) * - COUNT( * ) + + 39 + - + 88 + 15 * + - 51 + - 23 - + + 65 * - + 99 * + 85 col1
----
546085

skipif mysql # not compatible
query I rowsort label-246
SELECT + 53 * - ( + COUNT ( * ) ) / + - COUNT ( * ) * - COUNT ( * ) + + 39 + - + 88 + 15 * + - 51 + - 23 - + + 65 * - + 99 * + 85 col1
----
546085

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-247
SELECT + NULLIF ( + 68, + 63 DIV - - COUNT( * ) * + 22 ) DIV + COUNT( * ) + + 35
----
103

skipif mysql # not compatible
query I rowsort label-247
SELECT + NULLIF ( + 68, + 63 / - - COUNT ( * ) * + 22 ) / + COUNT ( * ) + + 35
----
103

query II rowsort
SELECT - 98, 64 AS col2
----
-98
64

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT + ( - NULLIF ( + 91, + COUNT( * ) * + - 69 ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-249
SELECT + ( - NULLIF ( + 91, + COUNT ( * ) * + - 69 ) ) AS col2
----
-91

query I rowsort
SELECT ALL - + 36 AS col0
----
-36

query I rowsort
SELECT ALL 41 * - 96
----
-3936

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT + 19 + - 28 DIV ( 45 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-252
SELECT + 19 + - 28 / ( 45 ) AS col2
----
19

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

query I rowsort
SELECT + 94 + - 13
----
81

query II rowsort
SELECT + 32 AS col0, 85 + - 79
----
32
6

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT MAX( ALL + + 1 ) * + + 11
----
11

skipif mysql # not compatible
query I rowsort label-256
SELECT MAX ( ALL + + 1 ) * + + 11
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-257
SELECT - 40 * - MAX( DISTINCT + COALESCE ( + 0, - 89 ) ) + - CASE ( COUNT( * ) ) WHEN - 0 THEN NULL WHEN + - COUNT( * ) THEN + 24 - + - SUM( DISTINCT + ( COALESCE ( 73, 76 - - CAST( NULL AS SIGNED ), NULLIF ( - 29, + 65 + 74 ), 63 ) ) ) END / 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT - 40 * - MAX ( DISTINCT + COALESCE ( + 0, - 89 ) ) + - CASE ( COUNT ( * ) ) WHEN - 0 THEN NULL WHEN + - COUNT ( * ) THEN + 24 - + - SUM ( DISTINCT + ( COALESCE ( 73, 76 - - CAST ( NULL AS INTEGER ), NULLIF ( - 29, + 65 + 74 ), 63 ) ) ) END / 80 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL 86 + - COUNT ( * ) AS col2
----
85

query I rowsort
SELECT DISTINCT - 17 + + 65
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL + - NULLIF ( + 66, + + 4 + + 96 / 17 * - - 72 ) + - COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + - NULLIF ( + 66, + + 4 + + 96 / 17 * - - 72 ) + - COUNT ( * ) AS col1
----
-67

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

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

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

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT + 61 + + NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT 70 + - 58 + - 75 AS col0
----
-63

query I rowsort
SELECT + 40 - + 66 col2
----
-26

query I rowsort
SELECT + 10 * 67
----
670

query I rowsort
SELECT - 8 * - 21 + + 81 AS col0
----
249

query I rowsort
SELECT DISTINCT + 17 + + - 65 AS col1
----
-48

query II rowsort
SELECT 55 + 8 col0, - 72 AS col1
----
63
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-269
SELECT DISTINCT - 44 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT - 44 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-270
SELECT DISTINCT 35 - + + 66 * 92 + - ( - - CAST( + MIN( DISTINCT - 53 ) AS SIGNED ) ) AS col2
----
-5984

skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT 35 - + + 66 * 92 + - ( - - CAST ( + MIN ( DISTINCT - 53 ) AS INTEGER ) ) AS col2
----
-5984

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT 45 + + - MIN( ALL - 53 ) * + 64 + 85 AS col0
----
3522

skipif mysql # not compatible
query I rowsort label-271
SELECT 45 + + - MIN ( ALL - 53 ) * + 64 + 85 AS col0
----
3522

query I rowsort
SELECT 54 * + + 91 * + ( - - 86 ) AS col1
----
422604

onlyif mysql # DIV for integer division: 
query I rowsort label-273
SELECT 89 + + COALESCE ( - + 5, 86 + + 59 + ( - 77 ) DIV - 27, - 63 ) + - NULLIF ( - 42, + AVG ( 46 ) - 8 ) DIV - 47
----
84

skipif mysql # not compatible
query I rowsort label-273
SELECT 89 + + COALESCE ( - + 5, 86 + + 59 + ( - 77 ) / - 27, - 63 ) + - NULLIF ( - 42, + AVG ( 46 ) - 8 ) / - 47
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-274
SELECT 60 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-274
SELECT 60 / + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT DISTINCT + 82 * - - SUM( ALL - - 88 ) AS col0
----
7216

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT + 82 * - - SUM ( ALL - - 88 ) AS col0
----
7216

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT ALL + 64 * + COUNT( 66 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL + 64 * + COUNT ( 66 ) AS col2
----
64

query II rowsort
SELECT DISTINCT + 73 * 17, 40 AS col0
----
1241
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-278
SELECT + 72 * - + CASE - + ( 98 ) WHEN - - 52 THEN 91 + + 23 ELSE + ( - + 33 ) / + CAST( NULL AS SIGNED ) END - + ( + 91 ) - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-278
SELECT + 72 * - + CASE - + ( 98 ) WHEN - - 52 THEN 91 + + 23 ELSE + ( - + 33 ) / + CAST ( NULL AS INTEGER ) END - + ( + 91 ) - 8 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-279
SELECT CASE 4 WHEN + + SUM( DISTINCT - 84 ) - + 9 THEN 66 * - + CAST( - 37 AS SIGNED ) + + + 66 * - + 2 + + - 58 + - COUNT( * ) END * + 22 / - - CAST( + 59 AS SIGNED ) * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT CASE 4 WHEN + + SUM ( DISTINCT - 84 ) - + 9 THEN 66 * - + CAST ( - 37 AS INTEGER ) + + + 66 * - + 2 + + - 58 + - COUNT ( * ) END * + 22 / - - CAST ( + 59 AS INTEGER ) * - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL 93 * 31 + - + MIN( ( + COALESCE ( + 12, + 99, + + 47 ) ) ) + - - 81 AS col2
----
2952

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL 93 * 31 + - + MIN ( ( + COALESCE ( + 12, + 99, + + 47 ) ) ) + - - 81 AS col2
----
2952

query I rowsort
SELECT 45 - + - 81 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT + COALESCE ( + - 87, - 76 ) + - MIN( + 59 ) * + 53 col0
----
-3214

skipif mysql # not compatible
query I rowsort label-282
SELECT + COALESCE ( + - 87, - 76 ) + - MIN ( + 59 ) * + 53 col0
----
-3214

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-284
SELECT DISTINCT + + 62 * + + COUNT( * ) + + CASE + 26 WHEN + 98 + AVG ( 87 ) + + ( 39 ) + MIN( ALL - + 80 ) * - + AVG ( ALL 78 ) * + - COUNT( * ) + 65 THEN MIN( DISTINCT 56 ) * - 59 WHEN - COALESCE ( 53, + 30, - 81, - CAST( NULL AS SIGNED ) ) * 68 THEN ( 87 ) END + COALESCE ( + 53, 20 ) * + ( - ( - MIN( - 1 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT + + 62 * + + COUNT ( * ) + + CASE + 26 WHEN + 98 + AVG ( 87 ) + + ( 39 ) + MIN ( ALL - + 80 ) * - + AVG ( ALL 78 ) * + - COUNT ( * ) + 65 THEN MIN ( DISTINCT 56 ) * - 59 WHEN - COALESCE ( 53, + 30, - 81, - CAST ( NULL AS INTEGER ) ) * 68 THEN ( 87 ) END + COALESCE ( + 53, 20 ) * + ( - ( - MIN ( - 1 ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-285
SELECT + 9 * + - 15 + 58 + - 38 * + 14 * - MAX( 54 ) + - - CAST( NULL AS SIGNED ) + + 35 col1, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-285
SELECT + 9 * + - 15 + 58 + - 38 * + 14 * - MAX ( 54 ) + - - CAST ( NULL AS INTEGER ) + + 35 col1, - COUNT ( * ) AS col2
----
NULL
-1

query I rowsort
SELECT - 91 * - - 57 + + 95 AS col2
----
-5092

query I rowsort
SELECT ALL + + 31 * - 8 + + - 0 + - + 90 * + + 22 AS col1
----
-2228

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT - SUM( + COALESCE ( - 31, + 29 ) ) * 0 - + ( - + 1 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-288
SELECT - SUM ( + COALESCE ( - 31, + 29 ) ) * 0 - + ( - + 1 ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT 44 * + - 39 * CASE - - ( + - 98 ) WHEN - - NULLIF ( 51, 67 / ( + 32 ) * + 96 + 15 - 95 * - COUNT( * ) ) * + 15 THEN - 78 ELSE 7 END
----
-12012

skipif mysql # not compatible
query I rowsort label-289
SELECT 44 * + - 39 * CASE - - ( + - 98 ) WHEN - - NULLIF ( 51, 67 / ( + 32 ) * + 96 + 15 - 95 * - COUNT ( * ) ) * + 15 THEN - 78 ELSE 7 END
----
-12012

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT MAX( - 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-291
SELECT MAX ( - 14 ) AS col2
----
-14

query I rowsort
SELECT - + 58 + 1
----
-57

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

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

query I rowsort
SELECT ALL 77 * - - 2 AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT ALL - COUNT( * ) - - + 45
----
44

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL - COUNT ( * ) - - + 45
----
44

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-297
SELECT ALL CASE + + 58 WHEN 35 + + + 57 THEN + 29 WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN - 4 * - 67 + 49 + 24 + - COUNT( * ) - + 30 * + 39 * - 33 * COUNT( * ) / 17 / + 27 THEN + 12 ELSE NULL END * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL CASE + + 58 WHEN 35 + + + 57 THEN + 29 WHEN CAST ( NULL AS REAL ) THEN NULL WHEN - 4 * - 67 + 49 + 24 + - COUNT ( * ) - + 30 * + 39 * - 33 * COUNT ( * ) / 17 / + 27 THEN + 12 ELSE NULL END * + 10
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-300
SELECT + NULLIF ( + 40, + 90 * + 46 * - - 79 + 13 * + - 50 ) * + - NULLIF ( + 93, 81 * - 47 * 69 * + 6 + - 21 DIV + 86 * 61 + CAST( NULL AS SIGNED ) ) + + 7 DIV 80 AS col0
----
-3720

skipif mysql # not compatible
query I rowsort label-300
SELECT + NULLIF ( + 40, + 90 * + 46 * - - 79 + 13 * + - 50 ) * + - NULLIF ( + 93, 81 * - 47 * 69 * + 6 + - 21 / + 86 * 61 + CAST ( NULL AS INTEGER ) ) + + 7 / 80 AS col0
----
-3720

query I rowsort
SELECT + 28 + 44 col2
----
72

query I rowsort
SELECT + 87 * - 73
----
-6351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-303
SELECT + 5 + + 55 + - CASE - COUNT( * ) WHEN + 83 * 43 + + 19 + + COUNT( * ) * + + 48 THEN NULL WHEN 74 + + 71 * + NULLIF ( - 21, - 59 * + - 49 - 44 ) * - CASE - 7 WHEN 72 * + ( 3 ) + - 73 THEN 38 WHEN + NULLIF ( - 52, + 7 - - 25 ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END + - COUNT( * ) THEN 30 WHEN ( 36 ) + - 31 THEN + 59 ELSE SUM( DISTINCT 85 ) * 52 END * + 72 col0
----
-318180

skipif mysql # not compatible
query I rowsort label-303
SELECT + 5 + + 55 + - CASE - COUNT ( * ) WHEN + 83 * 43 + + 19 + + COUNT ( * ) * + + 48 THEN NULL WHEN 74 + + 71 * + NULLIF ( - 21, - 59 * + - 49 - 44 ) * - CASE - 7 WHEN 72 * + ( 3 ) + - 73 THEN 38 WHEN + NULLIF ( - 52, + 7 - - 25 ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END + - COUNT ( * ) THEN 30 WHEN ( 36 ) + - 31 THEN + 59 ELSE SUM ( DISTINCT 85 ) * 52 END * + 72 col0
----
-318180

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-304
SELECT - CAST( + 19 AS SIGNED ) DIV + 8 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-304
SELECT - CAST ( + 19 AS INTEGER ) / + 8 AS col1
----
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-306
SELECT - CAST( - + MIN( DISTINCT - 77 ) AS SIGNED ) * - 6 AS col0
----
462

skipif mysql # not compatible
query I rowsort label-306
SELECT - CAST ( - + MIN ( DISTINCT - 77 ) AS INTEGER ) * - 6 AS col0
----
462

query I rowsort
SELECT + 57 * - 83 AS col2
----
-4731

query I rowsort
SELECT ALL - 96 * + 59
----
-5664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-309
SELECT ALL 80 * - CAST( + - 20 AS SIGNED ) AS col2
----
1600

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL 80 * - CAST ( + - 20 AS INTEGER ) AS col2
----
1600

onlyif mysql # DIV for integer division: 
query I rowsort label-310
SELECT - 51 + + 8 DIV - 82 - + 10 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-310
SELECT - 51 + + 8 / - 82 - + 10 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ALL CASE + + 59 WHEN + 88 + 78 + + + COUNT( * ) THEN - 35 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL CASE + + 59 WHEN + 88 + 78 + + + COUNT ( * ) THEN - 35 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-312
SELECT ALL 33 + - + 76 DIV - 77 * + 20 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL 33 + - + 76 / - 77 * + 20 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT - - 74 + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-313
SELECT - - 74 + + COUNT ( * )
----
75

query I rowsort
SELECT + 79 + ( - + 0 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT + 92 + - COUNT( * ) + + 64 + - 2 * + 19 * 27 * 3 col2
----
-2923

skipif mysql # not compatible
query I rowsort label-315
SELECT + 92 + - COUNT ( * ) + + 64 + - 2 * + 19 * 27 * 3 col2
----
-2923

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL + - CASE + 21 WHEN - 38 + + COUNT( * ) THEN 76 WHEN - + ( + 61 ) THEN 52 - 4 + 6 + - + COUNT( * ) + 31 END * 78 + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + - CASE + 21 WHEN - 38 + + COUNT ( * ) THEN 76 WHEN - + ( + 61 ) THEN 52 - 4 + 6 + - + COUNT ( * ) + 31 END * 78 + + 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-317
SELECT - - 22 + NULLIF ( CAST( ( 86 ) AS SIGNED ), + COUNT( * ) ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-317
SELECT - - 22 + NULLIF ( CAST ( ( 86 ) AS INTEGER ), + COUNT ( * ) ) AS col1
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-318
SELECT ALL + - 48 DIV - + 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL + - 48 / - + 69 col1
----
0

query I rowsort
SELECT - 69 * NULLIF ( 75, - 92 ) + - - 36 AS col0
----
-5139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-320
SELECT - SUM( DISTINCT + 0 ) * - CAST( - COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-320
SELECT - SUM ( DISTINCT + 0 ) * - CAST ( - COUNT ( * ) AS INTEGER )
----
0

query I rowsort
SELECT - 65 * + + 3
----
-195

query I rowsort
SELECT DISTINCT + 5 * - - 74 - - ( + 23 ) * + + 19 * + 36 AS col0
----
16102

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-324
SELECT - COUNT( * ) DIV 51 * 72 - 91
----
-91

skipif mysql # not compatible
query I rowsort label-324
SELECT - COUNT ( * ) / 51 * 72 - 91
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-325
SELECT - - 95 * - - 58 * COUNT( * ) - - CAST( - 67 AS SIGNED ) AS col0, + 85 * 77 AS col1
----
5443
6545

skipif mysql # not compatible
query II rowsort label-325
SELECT - - 95 * - - 58 * COUNT ( * ) - - CAST ( - 67 AS INTEGER ) AS col0, + 85 * 77 AS col1
----
5443
6545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-326
SELECT DISTINCT - CASE CAST( 6 AS DECIMAL ) WHEN ( + - 9 ) * - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) THEN COUNT( * ) END / + 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT - CASE CAST ( 6 AS REAL ) WHEN ( + - 9 ) * - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) THEN COUNT ( * ) END / + 64 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-327
SELECT ALL + 3, + COUNT( * ) + + 80 col1
----
3
81

skipif mysql # not compatible
query II rowsort label-327
SELECT ALL + 3, + COUNT ( * ) + + 80 col1
----
3
81

query I rowsort
SELECT NULLIF ( + 97, + - 67 + - + 77 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT + MIN( - COALESCE ( + 48, + - 78 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-329
SELECT + MIN ( - COALESCE ( + 48, + - 78 ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT ALL 35 * + + MAX( ALL + 57 )
----
1995

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL 35 * + + MAX ( ALL + 57 )
----
1995

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT + CASE + + 25 WHEN - - COALESCE ( - 82, + 65 + - 95 ) * - 89 THEN - 97 + + + COUNT( * ) + - 6 + + 11 * COUNT( * ) WHEN + COUNT( * ) THEN NULL END * - 62 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-333
SELECT + CASE + + 25 WHEN - - COALESCE ( - 82, + 65 + - 95 ) * - 89 THEN - 97 + + + COUNT ( * ) + - 6 + + 11 * COUNT ( * ) WHEN + COUNT ( * ) THEN NULL END * - 62 + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT - COUNT( * ) * - 44 * 3 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-334
SELECT - COUNT ( * ) * - 44 * 3 AS col1
----
132

query I rowsort
SELECT + ( 87 ) + + - 47 AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-336
SELECT - COALESCE ( - 73, - 4 + + + CAST( - - 78 AS SIGNED ) )
----
73

skipif mysql # not compatible
query I rowsort label-336
SELECT - COALESCE ( - 73, - 4 + + + CAST ( - - 78 AS INTEGER ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT + SUM( DISTINCT - ( - - ( + 66 ) ) ) + + 0 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-337
SELECT + SUM ( DISTINCT - ( - - ( + 66 ) ) ) + + 0 AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-338
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, MAX( ALL 9 )
----
NULL
9

skipif mysql # not compatible
query II rowsort label-338
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, MAX ( ALL 9 )
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT 98 + - 34 + + COALESCE ( + 91, - COUNT( * ) ) * + 89 * - 12 * - - 44 * + 5 + + 83 * + 26
----
-21379138

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT 98 + - 34 + + COALESCE ( + 91, - COUNT ( * ) ) * + 89 * - 12 * - - 44 * + 5 + + 83 * + 26
----
-21379138

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

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

query I rowsort
SELECT + 39 * + ( + 70 )
----
2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT + NULLIF ( ( - - CASE - 88 WHEN CASE - - 12 WHEN - 37 THEN + 56 ELSE + + AVG ( ALL + ( + 11 ) ) + - 74 * 13 END THEN + 25 * - COALESCE ( 84, 23 / - COALESCE ( - 26, ( - NULLIF ( + AVG ( + 70 ), 45 + + 91 ) ) + 20, 22 ) ) END ), + ( 9 ) ) * + CAST( 81 * + COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT + NULLIF ( ( - - CASE - 88 WHEN CASE - - 12 WHEN - 37 THEN + 56 ELSE + + AVG ( ALL + ( + 11 ) ) + - 74 * 13 END THEN + 25 * - COALESCE ( 84, 23 / - COALESCE ( - 26, ( - NULLIF ( + AVG ( + 70 ), 45 + + 91 ) ) + 20, 22 ) ) END ), + ( 9 ) ) * + CAST ( 81 * + COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT ALL NULLIF ( - 92, 96 * + 29 ) + - COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL NULLIF ( - 92, 96 * + 29 ) + - COUNT ( * ) AS col0
----
-93

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

skipif mysql # not compatible
query I rowsort label-344
SELECT - + COUNT ( * ) * 19 - + COUNT ( * ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-345
SELECT DISTINCT 25 + - 68 + - COUNT( * ) + + - CAST( NULL AS SIGNED ) - + AVG ( ALL + + NULLIF ( 25, COALESCE ( - 99, + 49 * + 29 * ( + 80 ) - - - 24 ) + - + 44 ) ) * - 88 * 39 / 7
----
NULL

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT 25 + - 68 + - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) - + AVG ( ALL + + NULLIF ( 25, COALESCE ( - 99, + 49 * + 29 * ( + 80 ) - - - 24 ) + - + 44 ) ) * - 88 * 39 / 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL - 32 + + SUM( DISTINCT + - 29 ) col0
----
-61

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - 32 + + SUM ( DISTINCT + - 29 ) col0
----
-61

onlyif mysql # aggregate syntax: 
query III rowsort label-347
SELECT ALL + 48 AS col0, COUNT( * ) * 47 + + 36, 41 col0
----
48
83
41

skipif mysql # not compatible
query III rowsort label-347
SELECT ALL + 48 AS col0, COUNT ( * ) * 47 + + 36, 41 col0
----
48
83
41

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT DISTINCT + 98 + 23 * COUNT( * ) AS col2
----
121

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT + 98 + 23 * COUNT ( * ) AS col2
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-349
SELECT ALL + 38 AS col1, COALESCE ( - COALESCE ( + + SUM( DISTINCT 96 ), - - 62 * - COALESCE ( 28, + CAST( 30 AS SIGNED ), + + 80 ) + + + COALESCE ( - 18, + COUNT( * ) ) ), - + 68 )
----
38
-96

skipif mysql # not compatible
query II rowsort label-349
SELECT ALL + 38 AS col1, COALESCE ( - COALESCE ( + + SUM ( DISTINCT 96 ), - - 62 * - COALESCE ( 28, + CAST ( 30 AS INTEGER ), + + 80 ) + + + COALESCE ( - 18, + COUNT ( * ) ) ), - + 68 )
----
38
-96

query II rowsort
SELECT 47, - 95 AS col0
----
47
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-351
SELECT COUNT( + 50 ) + + COUNT( * ) + 83 * + 80 DIV - COUNT( * ), - COUNT( * ) * 69 AS col1
----
-6638
-69

skipif mysql # not compatible
query II rowsort label-351
SELECT COUNT ( + 50 ) + + COUNT ( * ) + 83 * + 80 / - COUNT ( * ), - COUNT ( * ) * 69 AS col1
----
-6638
-69

query I rowsort
SELECT ALL - ( - 93 ) col0
----
93

query I rowsort
SELECT 41 * - - COALESCE ( + 35, 58 ) + - 5 + + 17 + 14 AS col1
----
1461

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-354
SELECT ALL + + COUNT( * ) - + 36, + 46 DIV - 42 AS col1
----
-35
-1

skipif mysql # not compatible
query II rowsort label-354
SELECT ALL + + COUNT ( * ) - + 36, + 46 / - 42 AS col1
----
-35
-1

query I rowsort
SELECT + 29 * - 13 col1
----
-377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-356
SELECT - COUNT( * ) DIV + CAST( ( 14 ) AS SIGNED ) - - 3
----
3

skipif mysql # not compatible
query I rowsort label-356
SELECT - COUNT ( * ) / + CAST ( ( 14 ) AS INTEGER ) - - 3
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-357
SELECT DISTINCT - - 79 DIV COUNT( ALL + 51 )
----
79

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT - - 79 / COUNT ( ALL + 51 )
----
79

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

query I rowsort
SELECT 54 * + 86 AS col0
----
4644

query I rowsort
SELECT DISTINCT - ( - 6 ) * + 4 + + + 85 + - 54 + + 62
----
117

query I rowsort
SELECT 38 + - 6 * + 85 - + 23
----
-495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-362
SELECT 44 * 28 AS col1, - 7 / + + 95 * 12 / COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col1
----
1232
NULL

skipif mysql # not compatible
query II rowsort label-362
SELECT 44 * 28 AS col1, - 7 / + + 95 * 12 / COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1
----
1232
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT 80 * COUNT( * ) * 2 * + - 6 col0
----
-960

skipif mysql # not compatible
query I rowsort label-363
SELECT 80 * COUNT ( * ) * 2 * + - 6 col0
----
-960

onlyif mysql # aggregate syntax: 
query II rowsort label-364
SELECT 54 * + 67, SUM( ALL - - 0 ) AS col1
----
3618
0

skipif mysql # not compatible
query II rowsort label-364
SELECT 54 * + 67, SUM ( ALL - - 0 ) AS col1
----
3618
0

query I rowsort
SELECT 70 * + - 42 AS col1
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT DISTINCT - 51 + + COUNT( * ) * + NULLIF ( - 99, 39 + 58 * - - COUNT( * ) + 77 ) * + 81 + + 3 - + + 37 + - 52 col1
----
-8156

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT - 51 + + COUNT ( * ) * + NULLIF ( - 99, 39 + 58 * - - COUNT ( * ) + 77 ) * + 81 + + 3 - + + 37 + - 52 col1
----
-8156

query I rowsort
SELECT ALL + 96 + - 55 + ( 32 )
----
73

query I rowsort
SELECT 60 + 60 * - 9 AS col2
----
-480

query II rowsort
SELECT ( - - 17 ) - - 55 col0, 41
----
72
41

query I rowsort
SELECT 79 + + - 90 + + CASE - 67 WHEN + + 32 THEN - 64 END / 9 * + 87 + - + 18 * + - 9 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT ALL COUNT( * ) + 17 * ( - ( + 82 ) ) AS col2
----
-1393

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL COUNT ( * ) + 17 * ( - ( + 82 ) ) AS col2
----
-1393

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL 80 - 44 + ( + - COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL 80 - 44 + ( + - COUNT ( * ) )
----
35

query I rowsort
SELECT DISTINCT COALESCE ( - 2, 4 ) AS col1
----
-2

query I rowsort
SELECT - NULLIF ( 14, + 69 ) col2
----
-14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT + SUM( + + 62 ) + + 71 + - COUNT( * ) * - 89 * - + 17 AS col2
----
-1380

skipif mysql # not compatible
query I rowsort label-377
SELECT + SUM ( + + 62 ) + + 71 + - COUNT ( * ) * - 89 * - + 17 AS col2
----
-1380

query I rowsort
SELECT 37 * ( - - 36 ) * 91 * + + 77
----
9333324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-379
SELECT 68 DIV COUNT( * ) - + + 44 + - 60 + 71
----
35

skipif mysql # not compatible
query I rowsort label-379
SELECT 68 / COUNT ( * ) - + + 44 + - 60 + 71
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT ALL 83 DIV + 62
----
1

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL 83 / + 62
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT ALL + 93 * + - 74 * + - COUNT( * ) AS col0
----
6882

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL + 93 * + - 74 * + - COUNT ( * ) AS col0
----
6882

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

skipif mysql # not compatible
query I rowsort label-382
SELECT MIN ( + + ( + 38 ) )
----
38

query II rowsort
SELECT DISTINCT + 82 * + - 50, 23 * + 1 * 85 col2
----
-4100
1955

query II rowsort
SELECT + ( + 48 ) AS col1, + 58
----
48
58

query I rowsort
SELECT 64 * - 10 col1
----
-640

query I rowsort
SELECT 35 + + + 97 col2
----
132

query II rowsort
SELECT 11 col2, - 80
----
11
-80

query I rowsort
SELECT - 4 * + 50 + + + 91 AS col2
----
-109

onlyif mysql # DIV for integer division: 
query II rowsort label-389
SELECT 54 * - - ( 12 ) AS col0, 20 DIV 56 * - + ( - - 21 ) * + ( 71 )
----
648
0

skipif mysql # not compatible
query II rowsort label-389
SELECT 54 * - - ( 12 ) AS col0, 20 / 56 * - + ( - - 21 ) * + ( 71 )
----
648
0

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL 88 + + 13 - - - 8 * + 98 + + MAX( DISTINCT - 13 )
----
-696

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL 88 + + 13 - - - 8 * + 98 + + MAX ( DISTINCT - 13 )
----
-696

onlyif mysql # DIV for integer division: 
query I rowsort label-391
SELECT ALL - COALESCE ( 24, + 95 DIV + - 62 )
----
-24

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL - COALESCE ( 24, + 95 / + - 62 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-392
SELECT ALL - 37 + 57 * COALESCE ( COUNT( * ), CAST( NULL AS SIGNED ), + - 6 + - CASE + 87 WHEN + NULLIF ( + 1, + + 20 ) THEN NULL WHEN - 76 * 99 THEN NULL ELSE + 23 END )
----
20

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL - 37 + 57 * COALESCE ( COUNT ( * ), CAST ( NULL AS INTEGER ), + - 6 + - CASE + 87 WHEN + NULLIF ( + 1, + + 20 ) THEN NULL WHEN - 76 * 99 THEN NULL ELSE + 23 END )
----
20

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-394
SELECT + 65 * + - 34 + + CASE - COUNT( * ) WHEN - 99 * - - COALESCE ( + CAST( NULL AS SIGNED ), 93, + 19 * + - CAST( - + 33 AS SIGNED ) - 18 + - + 75 * + 51 ) / - 42 THEN NULL WHEN + + 93 THEN + - CAST( - + 28 AS SIGNED ) * 24 WHEN 51 THEN + 47 * + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-394
SELECT + 65 * + - 34 + + CASE - COUNT ( * ) WHEN - 99 * - - COALESCE ( + CAST ( NULL AS INTEGER ), 93, + 19 * + - CAST ( - + 33 AS INTEGER ) - 18 + - + 75 * + 51 ) / - 42 THEN NULL WHEN + + 93 THEN + - CAST ( - + 28 AS INTEGER ) * 24 WHEN 51 THEN + 47 * + 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-395
SELECT 92, + 47 - + 88 + + + 0 + + COUNT( * ) * - 88 AS col0
----
92
-129

skipif mysql # not compatible
query II rowsort label-395
SELECT 92, + 47 - + 88 + + + 0 + + COUNT ( * ) * - 88 AS col0
----
92
-129

query I rowsort
SELECT ALL - 38 * - 47
----
1786

query II rowsort
SELECT 65 * 35 + + 59 AS col0, - 92 - - 72
----
2334
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-398
SELECT 35 AS col0, + 23 + - CAST( - 86 AS SIGNED )
----
35
109

skipif mysql # not compatible
query II rowsort label-398
SELECT 35 AS col0, + 23 + - CAST ( - 86 AS INTEGER )
----
35
109

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT DISTINCT - 20 + NULLIF ( - COUNT( * ), 15 * - - COALESCE ( + - 52, - ( - 74 ) ) ) + - 13 * - + 0
----
-21

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT - 20 + NULLIF ( - COUNT ( * ), 15 * - - COALESCE ( + - 52, - ( - 74 ) ) ) + - 13 * - + 0
----
-21

query I rowsort
SELECT ALL + 65 + + 27 AS col2
----
92

query I rowsort
SELECT ALL 74 * - 42 AS col2
----
-3108

query I rowsort
SELECT 95 * + - 77
----
-7315

query II rowsort
SELECT 21, 73 + 32 AS col0
----
21
105

query I rowsort
SELECT ALL - 75 * + 62 AS col1
----
-4650

onlyif mysql # DIV for integer division: 
query II rowsort label-405
SELECT ALL NULLIF ( 71, - + 91 ) DIV + - 86 AS col1, CASE + + 66 WHEN - 56 THEN + 16 END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-405
SELECT ALL NULLIF ( 71, - + 91 ) / + - 86 AS col1, CASE + + 66 WHEN - 56 THEN + 16 END
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-406
SELECT DISTINCT - 6, NULLIF ( 54, - COUNT( * ) * 35 * + - 87 ) AS col1
----
-6
54

skipif mysql # not compatible
query II rowsort label-406
SELECT DISTINCT - 6, NULLIF ( 54, - COUNT ( * ) * 35 * + - 87 ) AS col1
----
-6
54

query II rowsort
SELECT - COALESCE ( + + 26, + 47 ) AS col0, - 42
----
-26
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT - - COUNT( * ) - - - 65 + MAX( ALL 36 )
----
-28

skipif mysql # not compatible
query I rowsort label-408
SELECT - - COUNT ( * ) - - - 65 + MAX ( ALL 36 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT - 17 * + ( + - CASE COUNT( * ) WHEN 52 THEN + 3 ELSE NULL END ) / + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT - 17 * + ( + - CASE COUNT ( * ) WHEN 52 THEN + 3 ELSE NULL END ) / + 34
----
NULL

query II rowsort
SELECT - 97 AS col1, 34 * + 59
----
-97
2006

query II rowsort
SELECT ALL - - 54 - + - 90 - + - 24 AS col1, - 51 * + ( 43 ) col0
----
168
-2193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-412
SELECT - ( + 10 ) * - CAST( - 5 AS SIGNED ), 41 + 25 * + - COALESCE ( 17, + 58 * - + 89 * - ( + COUNT( * ) ) ) + + + CAST( NULL AS DECIMAL ) + + 41 * - - CASE + MIN( ALL + ( - CASE 63 WHEN 90 + - 73 THEN 52 WHEN 83 THEN - 98 * COALESCE ( - 89, 38, 4 - + NULLIF ( - 75, 76 ) ) END ) ) WHEN - 37 + - 30 * - COUNT( * ) THEN 53 ELSE NULL END * 36 * + ( + 43 ) AS col2
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-412
SELECT - ( + 10 ) * - CAST ( - 5 AS INTEGER ), 41 + 25 * + - COALESCE ( 17, + 58 * - + 89 * - ( + COUNT ( * ) ) ) + + + CAST ( NULL AS REAL ) + + 41 * - - CASE + MIN ( ALL + ( - CASE 63 WHEN 90 + - 73 THEN 52 WHEN 83 THEN - 98 * COALESCE ( - 89, 38, 4 - + NULLIF ( - 75, 76 ) ) END ) ) WHEN - 37 + - 30 * - COUNT ( * ) THEN 53 ELSE NULL END * 36 * + ( + 43 ) AS col2
----
-50
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-414
SELECT DISTINCT - COUNT( * ), 14 + - + MIN( 64 ) * - NULLIF ( + 16, + COALESCE ( + + 84, COUNT( * ), - + COUNT( * ) ) ) AS col1
----
-1
1038

skipif mysql # not compatible
query II rowsort label-414
SELECT DISTINCT - COUNT ( * ), 14 + - + MIN ( 64 ) * - NULLIF ( + 16, + COALESCE ( + + 84, COUNT ( * ), - + COUNT ( * ) ) ) AS col1
----
-1
1038

query I rowsort
SELECT DISTINCT + ( COALESCE ( - - 74, + + 97 * - 36 + + 37 ) )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-416
SELECT ALL 31 col2, CAST( + - 92 AS SIGNED ) * - 81
----
31
7452

skipif mysql # not compatible
query II rowsort label-416
SELECT ALL 31 col2, CAST ( + - 92 AS INTEGER ) * - 81
----
31
7452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-417
SELECT ALL - 49 * - - 10 + - 6 + CAST( NULLIF ( - 16, - - COUNT( * ) ) AS SIGNED ) AS col2
----
-512

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL - 49 * - - 10 + - 6 + CAST ( NULLIF ( - 16, - - COUNT ( * ) ) AS INTEGER ) AS col2
----
-512

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT ( + + 86 ) DIV 23 - - 61 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-418
SELECT ( + + 86 ) / 23 - - 61 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT CASE + 86 WHEN 56 + - 2 THEN NULL ELSE 65 + - 25 + + + COUNT( * ) END
----
41

skipif mysql # not compatible
query I rowsort label-419
SELECT CASE + 86 WHEN 56 + - 2 THEN NULL ELSE 65 + - 25 + + + COUNT ( * ) END
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-420
SELECT - 0 * + CAST( NULL AS SIGNED ) + 41 + + + 7, - COUNT( * ) + - 94 + 27 * - 5 * 16 col1
----
NULL
-2255

skipif mysql # not compatible
query II rowsort label-420
SELECT - 0 * + CAST ( NULL AS INTEGER ) + 41 + + + 7, - COUNT ( * ) + - 94 + 27 * - 5 * 16 col1
----
NULL
-2255

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT + CASE + COUNT( * ) WHEN + 59 - CASE + 35 WHEN - 48 THEN + NULLIF ( - - 26, - 14 * - 51 * + 19 + + 86 ) ELSE NULL END THEN - 14 ELSE NULL END * + - 29 - + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-421
SELECT + CASE + COUNT ( * ) WHEN + 59 - CASE + 35 WHEN - 48 THEN + NULLIF ( - - 26, - 14 * - 51 * + 19 + + 86 ) ELSE NULL END THEN - 14 ELSE NULL END * + - 29 - + + 84
----
NULL

query I rowsort
SELECT ALL 76 * ( + 25 )
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT ALL + COUNT( * ) * 71 * + - 17 * + 94 + + 68 AS col1
----
-113390

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL + COUNT ( * ) * 71 * + - 17 * + 94 + + 68 AS col1
----
-113390

query I rowsort
SELECT ALL - 55 * 56 + 23
----
-3057

query I rowsort
SELECT + 11 + - 26 + - 3 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT + SUM( DISTINCT 45 )
----
45

skipif mysql # not compatible
query I rowsort label-426
SELECT + SUM ( DISTINCT 45 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-427
SELECT + CASE + 0 WHEN ( - 0 ) * + + COUNT( * ) + - + 59 + - 60 / + - ( - + CASE + + COUNT( * ) WHEN 27 THEN 99 END ) THEN 69 WHEN 96 + - 39 + 7 * - + 37 THEN - + CAST( NULL AS SIGNED ) ELSE - 79 END
----
-79

skipif mysql # not compatible
query I rowsort label-427
SELECT + CASE + 0 WHEN ( - 0 ) * + + COUNT ( * ) + - + 59 + - 60 / + - ( - + CASE + + COUNT ( * ) WHEN 27 THEN 99 END ) THEN 69 WHEN 96 + - 39 + 7 * - + 37 THEN - + CAST ( NULL AS INTEGER ) ELSE - 79 END
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT - 56 * ( - MIN( + 69 ) ) * - 65 * - COUNT( * ) * - 82 - 72
----
-20595192

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT - 56 * ( - MIN ( + 69 ) ) * - 65 * - COUNT ( * ) * - 82 - 72
----
-20595192

onlyif mysql # aggregate syntax: 
query II rowsort label-429
SELECT COUNT( DISTINCT 28 ) AS col2, 80
----
1
80

skipif mysql # not compatible
query II rowsort label-429
SELECT COUNT ( DISTINCT 28 ) AS col2, 80
----
1
80

onlyif mysql # DIV for integer division: 
query II rowsort label-430
SELECT DISTINCT 17 * + 74 - 16 * + - 67 AS col2, 75 DIV 34
----
2330
2

skipif mysql # not compatible
query II rowsort label-430
SELECT DISTINCT 17 * + 74 - 16 * + - 67 AS col2, 75 / 34
----
2330
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT DISTINCT + 11 * - + COUNT( DISTINCT - ( 36 ) ) - - - 49 + - 11 * - + 63 + + 93 + 63
----
789

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + 11 * - + COUNT ( DISTINCT - ( 36 ) ) - - - 49 + - 11 * - + 63 + + 93 + 63
----
789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-433
SELECT ALL - 53 - - + CAST( NULL AS SIGNED ) - - 37 * - 49 + + 76 + + 23 * COALESCE ( - COUNT( ALL 47 ), - ( - SUM( + ( + - 75 ) ) ) ) / 18 / + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL - 53 - - + CAST ( NULL AS INTEGER ) - - 37 * - 49 + + 76 + + 23 * COALESCE ( - COUNT ( ALL 47 ), - ( - SUM ( + ( + - 75 ) ) ) ) / 18 / + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + + 95 * - 5 * + 29
----
-13775

onlyif mysql # aggregate syntax: 
query II rowsort label-435
SELECT + COUNT( * ) + - 95 AS col1, COUNT( ALL - 65 ) * - - ( + - 62 )
----
-94
-62

skipif mysql # not compatible
query II rowsort label-435
SELECT + COUNT ( * ) + - 95 AS col1, COUNT ( ALL - 65 ) * - - ( + - 62 )
----
-94
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT + COUNT( * ) + - + 82
----
-81

skipif mysql # not compatible
query I rowsort label-436
SELECT + COUNT ( * ) + - + 82
----
-81

query I rowsort
SELECT - 15 - 49 AS col0
----
-64

query I rowsort
SELECT + 59 + - 60 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT DISTINCT - 6 * - 17 + + COUNT( * ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT - 6 * - 17 + + COUNT ( * ) AS col1
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-440
SELECT - 86 DIV + + 62
----
-1

skipif mysql # not compatible
query I rowsort label-440
SELECT - 86 / + + 62
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-441
SELECT ALL + 68 DIV + 20 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL + 68 / + 20 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-442
SELECT ALL + SUM( ALL 27 ), 99 col1
----
27
99

skipif mysql # not compatible
query II rowsort label-442
SELECT ALL + SUM ( ALL 27 ), 99 col1
----
27
99

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT - + 87 + - - CASE + COUNT( * ) WHEN ( - 70 ) + 96 + 88 + - - COUNT( * ) * - 43 * + COUNT( * ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-443
SELECT - + 87 + - - CASE + COUNT ( * ) WHEN ( - 70 ) + 96 + 88 + - - COUNT ( * ) * - 43 * + COUNT ( * ) THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 18 * - - 50 + + 13 AS col2
----
-887

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT DISTINCT - ( + 8 ) + + + 82 + COUNT( * ) col1
----
75

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT - ( + 8 ) + + + 82 + COUNT ( * ) col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-446
SELECT - + COUNT( * ) + + NULLIF ( 44, - 21 * CASE - COUNT( * ) WHEN 57 + - COUNT( * ) THEN + 63 + + - COUNT( * ) / + ( + + 51 ) + + + 18 / 4 * + - COUNT( - CAST( CASE + 75 WHEN + 68 * 22 THEN + 86 * + 24 + 63 END AS SIGNED ) ) * 3 ELSE + 30 - 8 END ) + + 76 * COUNT( * ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-446
SELECT - + COUNT ( * ) + + NULLIF ( 44, - 21 * CASE - COUNT ( * ) WHEN 57 + - COUNT ( * ) THEN + 63 + + - COUNT ( * ) / + ( + + 51 ) + + + 18 / 4 * + - COUNT ( - CAST ( CASE + 75 WHEN + 68 * 22 THEN + 86 * + 24 + 63 END AS INTEGER ) ) * 3 ELSE + 30 - 8 END ) + + 76 * COUNT ( * ) AS col0
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT DISTINCT - 74 + - COUNT( * ) * - 16 + + 33 + - COALESCE ( - + 73, - 59 * + 42 ) + + 98 AS col2, 30 AS col2
----
146
30

skipif mysql # not compatible
query II rowsort label-447
SELECT DISTINCT - 74 + - COUNT ( * ) * - 16 + + 33 + - COALESCE ( - + 73, - 59 * + 42 ) + + 98 AS col2, 30 AS col2
----
146
30

query I rowsort
SELECT - - 10 * 53 * - 14 * + ( + 60 ) AS col0
----
-445200

onlyif mysql # aggregate syntax: 
query II rowsort label-449
SELECT NULLIF ( + - 75, 39 + - + COUNT( * ) ) AS col2, - ( + NULLIF ( 15, + COUNT( * ) * - - COUNT( * ) + - - 94 ) ) AS col1
----
-75
-15

skipif mysql # not compatible
query II rowsort label-449
SELECT NULLIF ( + - 75, 39 + - + COUNT ( * ) ) AS col2, - ( + NULLIF ( 15, + COUNT ( * ) * - - COUNT ( * ) + - - 94 ) ) AS col1
----
-75
-15

query I rowsort
SELECT DISTINCT + 55 * + 31 col0
----
1705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT ALL - COUNT( * ) / + 55 * - COUNT( * ) * - - COUNT( * ) + + CAST( NULL AS SIGNED ) * 96 - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL - COUNT ( * ) / + 55 * - COUNT ( * ) * - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 96 - 75 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT DISTINCT - 27 DIV - 99 + + 92 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT - 27 / - 99 + + 92 AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-453
SELECT ALL 64 DIV - 12 + 71 * + 43
----
3048

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL 64 / - 12 + 71 * + 43
----
3048

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-454
SELECT + ( - CASE + CAST( 74 AS SIGNED ) WHEN - 37 + - - CAST( - ( - 73 ) AS DECIMAL ) + + + 99 THEN - 42 ELSE 97 - - CAST( NULL AS DECIMAL ) END ) * + 68 * + - 25 / 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-454
SELECT + ( - CASE + CAST ( 74 AS INTEGER ) WHEN - 37 + - - CAST ( - ( - 73 ) AS REAL ) + + + 99 THEN - 42 ELSE 97 - - CAST ( NULL AS REAL ) END ) * + 68 * + - 25 / 16 AS col0
----
NULL

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

query I rowsort
SELECT - 99 - 67
----
-166

query I rowsort
SELECT - 16 + 57
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-458
SELECT - ( COUNT( * ) ) DIV + - ( COUNT( ALL + ( + 21 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-458
SELECT - ( COUNT ( * ) ) / + - ( COUNT ( ALL + ( + 21 ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT + 81 * COUNT( * ) col0
----
81

skipif mysql # not compatible
query I rowsort label-459
SELECT + 81 * COUNT ( * ) col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT + SUM( DISTINCT - 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-460
SELECT + SUM ( DISTINCT - 64 ) AS col2
----
-64

query II rowsort
SELECT ( - + ( + - 25 ) ) AS col1, - 27 * 32 AS col1
----
25
-864

query I rowsort
SELECT + COALESCE ( 7, + 98 )
----
7

query I rowsort
SELECT + 62 + + 80 AS col0
----
142

query I rowsort
SELECT DISTINCT 19 * - 81 - - 8
----
-1531

query I rowsort
SELECT DISTINCT 86 * + 8
----
688

onlyif mysql # aggregate syntax: 
query II rowsort label-466
SELECT DISTINCT MAX( ALL + 18 ) * - - CASE + 6 WHEN + ( - CASE + 60 WHEN - 97 + 25 * + + 44 THEN - 19 * 35 END ) * - - 83 * - - 2 THEN - 62 END AS col0, + 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-466
SELECT DISTINCT MAX ( ALL + 18 ) * - - CASE + 6 WHEN + ( - CASE + 60 WHEN - 97 + 25 * + + 44 THEN - 19 * 35 END ) * - - 83 * - - 2 THEN - 62 END AS col0, + 22
----
NULL
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-467
SELECT ALL - - 47, MAX( DISTINCT CAST( - 23 AS SIGNED ) ) * 41 AS col0
----
47
-943

skipif mysql # not compatible
query II rowsort label-467
SELECT ALL - - 47, MAX ( DISTINCT CAST ( - 23 AS INTEGER ) ) * 41 AS col0
----
47
-943

query I rowsort
SELECT + 13 + - - 89 + 37 * + - 59 + + + 33 + - 91 col0
----
-2139

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT - - SUM( DISTINCT 43 )
----
43

skipif mysql # not compatible
query I rowsort label-469
SELECT - - SUM ( DISTINCT 43 )
----
43

query I rowsort
SELECT DISTINCT + + 36 * 5 col0
----
180

query II rowsort
SELECT - 54 AS col2, + 60 AS col2
----
-54
60

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT DISTINCT + SUM( DISTINCT - 84 ) + + + 79
----
-5

skipif mysql # not compatible
query I rowsort label-472
SELECT DISTINCT + SUM ( DISTINCT - 84 ) + + + 79
----
-5

query II rowsort
SELECT - 46 - + + 24 + - 33, - 68 AS col2
----
-103
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-474
SELECT + ( 97 ) * + CASE - 19 WHEN + 44 * 63 + + 23 - + 73 THEN 94 ELSE + 59 * + CAST( 4 AS SIGNED ) END * - 95 + + 38 AS col0
----
-2174702

skipif mysql # not compatible
query I rowsort label-474
SELECT + ( 97 ) * + CASE - 19 WHEN + 44 * 63 + + 23 - + 73 THEN 94 ELSE + 59 * + CAST ( 4 AS INTEGER ) END * - 95 + + 38 AS col0
----
-2174702

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL + NULLIF ( + - 5, + + 73 ) + 40 + - 64 + - 48 * COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL + NULLIF ( + - 5, + + 73 ) + 40 + - 64 + - 48 * COUNT ( * ) AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-477
SELECT DISTINCT CAST( - 94 AS SIGNED ) + COALESCE ( + - COUNT( * ), + + COUNT( * ) * - 17, - 74 + + - COUNT( * ) )
----
-95

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT CAST ( - 94 AS INTEGER ) + COALESCE ( + - COUNT ( * ), + + COUNT ( * ) * - 17, - 74 + + - COUNT ( * ) )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-478
SELECT ALL + 50 + - + 57 AS col2, MAX( - 11 ) * 42 * - - 47 AS col1
----
-7
-21714

skipif mysql # not compatible
query II rowsort label-478
SELECT ALL + 50 + - + 57 AS col2, MAX ( - 11 ) * 42 * - - 47 AS col1
----
-7
-21714

query II rowsort
SELECT - 62 AS col1, 55 col0
----
-62
55

query I rowsort
SELECT DISTINCT + 69 + + 79 * + 68 AS col2
----
5441

query I rowsort
SELECT 53 * - 40 col1
----
-2120

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT + 41 DIV + 22 + + 8 + + + 42 * - - 20 AS col0
----
849

skipif mysql # not compatible
query I rowsort label-482
SELECT + 41 / + 22 + + 8 + + + 42 * - - 20 AS col0
----
849

query II rowsort
SELECT + 71 AS col1, - 25
----
71
-25

query II rowsort
SELECT 73 + 10 - - 44 - 43 * - + 0 * + + 42, + 92 AS col0
----
127
92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-485
SELECT 6 * + CAST( + CASE - 48 WHEN - 68 THEN NULL WHEN - 5 * - - 0 + - + 49 THEN AVG ( + 2 ) * 43 * 30 + + - COALESCE ( - + 49, + + 46 ) / - 27 WHEN - + COALESCE ( - - 19, - - 59 - CASE - 48 WHEN 55 THEN 19 ELSE NULL END / 81, 42 ) THEN + 49 - CAST( NULL AS SIGNED ) END AS DECIMAL ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-485
SELECT 6 * + CAST ( + CASE - 48 WHEN - 68 THEN NULL WHEN - 5 * - - 0 + - + 49 THEN AVG ( + 2 ) * 43 * 30 + + - COALESCE ( - + 49, + + 46 ) / - 27 WHEN - + COALESCE ( - - 19, - - 59 - CASE - 48 WHEN 55 THEN 19 ELSE NULL END / 81, 42 ) THEN + 49 - CAST ( NULL AS INTEGER ) END AS REAL ) + 35
----
NULL

query I rowsort
SELECT 88 * + - 10
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL + NULLIF ( + + ( + 64 ), - NULLIF ( 95, - - 38 * 38 + - ( 81 ) * - 33 ) ) * + + MIN( 13 )
----
832

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL + NULLIF ( + + ( + 64 ), - NULLIF ( 95, - - 38 * 38 + - ( 81 ) * - 33 ) ) * + + MIN ( 13 )
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT + 34 - + 0 + - + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT + 34 - + 0 + - + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-489
SELECT DISTINCT - 75 AS col0, - 91 * 74 + - 48 * - - COUNT( * ) AS col1
----
-75
-6782

skipif mysql # not compatible
query II rowsort label-489
SELECT DISTINCT - 75 AS col0, - 91 * 74 + - 48 * - - COUNT ( * ) AS col1
----
-75
-6782

query II rowsort
SELECT ALL + 7 * - ( + ( - 44 ) ) col2, + 52 + 35 + - 21 AS col0
----
308
66

query I rowsort
SELECT 94 - - + 89 AS col0
----
183

query I rowsort
SELECT 33 * - + ( + 3 ) AS col0
----
-99

query I rowsort
SELECT 4 * 59 AS col1
----
236

query I rowsort
SELECT COALESCE ( + + ( - 57 ), 87 )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-495
SELECT NULLIF ( - COUNT( * ), + - 20 ) DIV 80 DIV - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-495
SELECT NULLIF ( - COUNT ( * ), + - 20 ) / 80 / - 53 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-496
SELECT ALL CAST( ( - 56 ) AS SIGNED ) + + 48 DIV - ( - 49 )
----
-56

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL CAST ( ( - 56 ) AS INTEGER ) + + 48 / - ( - 49 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT 42 - + 85 + 82 - - 93 + - + 29 * - 12 + + SUM( DISTINCT - 4 )
----
476

skipif mysql # not compatible
query I rowsort label-497
SELECT 42 - + 85 + 82 - - 93 + - + 29 * - 12 + + SUM ( DISTINCT - 4 )
----
476

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT DISTINCT - + 30 DIV - ( - 43 )
----
0

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT - + 30 / - ( - 43 )
----
0

query I rowsort
SELECT 89 - + + 51
----
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT ALL + COUNT( * ) + 59 + + 4
----
64

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + COUNT ( * ) + 59 + + 4
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT 81 * + 92 + + COALESCE ( + 1, 80 + 58 ) - - COUNT( * )
----
7454

skipif mysql # not compatible
query I rowsort label-502
SELECT 81 * + 92 + + COALESCE ( + 1, 80 + 58 ) - - COUNT ( * )
----
7454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-503
SELECT ALL - 65 + - 68 * - COALESCE ( - COUNT( * ), + CAST( NULL AS SIGNED ) + ( - - 19 ) ) AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL - 65 + - 68 * - COALESCE ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) + ( - - 19 ) ) AS col2
----
-133

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-504
SELECT + 44 + + 80 + + 17 * - - 61 * - CASE 43 WHEN - 81 THEN + 27 + ( - + CAST( - 21 AS DECIMAL ) ) + - + 88 END * - 8 * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-504
SELECT + 44 + + 80 + + 17 * - - 61 * - CASE 43 WHEN - 81 THEN + 27 + ( - + CAST ( - 21 AS REAL ) ) + - + 88 END * - 8 * - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT 58 - + - MAX( - 70 )
----
-12

skipif mysql # not compatible
query I rowsort label-505
SELECT 58 - + - MAX ( - 70 )
----
-12

query I rowsort
SELECT + 27 * + 36 + - 40
----
932

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT - NULLIF ( + COUNT( * ), + 77 + - - COUNT( * ) + - 88 )
----
-1

skipif mysql # not compatible
query I rowsort label-507
SELECT - NULLIF ( + COUNT ( * ), + 77 + - - COUNT ( * ) + - 88 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ALL COUNT( * ) + 1 + - 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL COUNT ( * ) + 1 + - 2 AS col1
----
0

query I rowsort
SELECT 92 + - 80 * - 79 AS col0
----
6412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-510
SELECT ALL 94 * - NULLIF ( 59, + CASE + COUNT( * ) WHEN + 30 THEN - COUNT( 79 ) WHEN + COUNT( * ) THEN NULL ELSE + CAST( NULL AS SIGNED ) * + - 94 END * - 64 * - + 15 / - + 65 )
----
-5546

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL 94 * - NULLIF ( 59, + CASE + COUNT ( * ) WHEN + 30 THEN - COUNT ( 79 ) WHEN + COUNT ( * ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) * + - 94 END * - 64 * - + 15 / - + 65 )
----
-5546

onlyif mysql # aggregate syntax: 
query II rowsort label-511
SELECT - SUM( ALL + 59 ) AS col1, + 44
----
-59
44

skipif mysql # not compatible
query II rowsort label-511
SELECT - SUM ( ALL + 59 ) AS col1, + 44
----
-59
44

query I rowsort
SELECT DISTINCT - 92 * - 88
----
8096

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-514
SELECT CAST( + 61 AS SIGNED ) * + 79 AS col2
----
4819

skipif mysql # not compatible
query I rowsort label-514
SELECT CAST ( + 61 AS INTEGER ) * + 79 AS col2
----
4819

onlyif mysql # aggregate syntax: 
query II rowsort label-515
SELECT DISTINCT + ( + COUNT( * ) ) AS col1, 59 * + 89
----
1
5251

skipif mysql # not compatible
query II rowsort label-515
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1, 59 * + 89
----
1
5251

query II rowsort
SELECT - 39 * + 99 AS col2, 55 AS col2
----
-3861
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-517
SELECT ALL + CASE - 97 WHEN 71 + + 5 - - 42 + 11 + - - CAST( - 31 AS SIGNED ) / + - 80 + - 42 * + ( + COUNT( * ) ) THEN - - 50 * - 99 + - 84 WHEN - 7 * + 86 THEN NULL ELSE + + NULLIF ( + 35, - + 38 * + COUNT( * ) * - CASE 72 WHEN 31 * + 49 + 84 THEN + 44 * 63 ELSE NULL END ) END
----
35

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL + CASE - 97 WHEN 71 + + 5 - - 42 + 11 + - - CAST ( - 31 AS INTEGER ) / + - 80 + - 42 * + ( + COUNT ( * ) ) THEN - - 50 * - 99 + - 84 WHEN - 7 * + 86 THEN NULL ELSE + + NULLIF ( + 35, - + 38 * + COUNT ( * ) * - CASE 72 WHEN 31 * + 49 + 84 THEN + 44 * 63 ELSE NULL END ) END
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-518
SELECT + CAST( NULL AS DECIMAL ) * - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT + CAST ( NULL AS REAL ) * - 90 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-519
SELECT CAST( NULL AS DECIMAL ) * + 54 - 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT CAST ( NULL AS REAL ) * + 54 - 55 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT NULLIF ( 43, + CAST( - 94 AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-520
SELECT NULLIF ( 43, + CAST ( - 94 AS INTEGER ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT + 3 + 37 - - ( + + 26 ) * - + MAX( DISTINCT + 15 ) AS col1
----
-350

skipif mysql # not compatible
query I rowsort label-521
SELECT + 3 + 37 - - ( + + 26 ) * - + MAX ( DISTINCT + 15 ) AS col1
----
-350

query I rowsort
SELECT - 85 + + - 73
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-523
SELECT ALL - ( 57 ) * MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL - ( 57 ) * MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 90 * + 97 + - 43 AS col1
----
8687

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-525
SELECT DISTINCT + 83 * 26 + - CAST( + 88 AS SIGNED )
----
2070

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT + 83 * 26 + - CAST ( + 88 AS INTEGER )
----
2070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-526
SELECT ALL - 47 * 85 * + 26 + + - COUNT( * ) * - COUNT( * ) DIV 50
----
-103870

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL - 47 * 85 * + 26 + + - COUNT ( * ) * - COUNT ( * ) / 50
----
-103870

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

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

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

query I rowsort
SELECT - 84 + - 6 col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-530
SELECT COALESCE ( 4, - 58 + + CAST( NULL AS SIGNED ) + + + 74 + 26 * + + 25 * + + 17 DIV + COUNT( * ) * - - COUNT( * ) + - 96, 80 + - 30 + + 54 * 72 + - 59 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-530
SELECT COALESCE ( 4, - 58 + + CAST ( NULL AS INTEGER ) + + + 74 + 26 * + + 25 * + + 17 / + COUNT ( * ) * - - COUNT ( * ) + - 96, 80 + - 30 + + 54 * 72 + - 59 ) AS col2
----
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-532
SELECT DISTINCT + 87 + - 2 + - + 99 DIV - 76
----
86

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT + 87 + - 2 + - + 99 / - 76
----
86

query I rowsort
SELECT - 69 * + 12 AS col0
----
-828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-534
SELECT ALL - 84 DIV + - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL - 84 / + - COUNT ( * ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-535
SELECT + + MIN( ALL + + ( + - CAST( 6 AS SIGNED ) ) ) / 9 * - 70 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-535
SELECT + + MIN ( ALL + + ( + - CAST ( 6 AS INTEGER ) ) ) / 9 * - 70 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 62 * 77 + 73
----
4847

query I rowsort
SELECT ALL + 4 * - 48 * + ( 55 ) * + ( 68 ) AS col1
----
-718080

query I rowsort
SELECT - COALESCE ( - 40, - 18 + ( - 77 ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-539
SELECT - SUM( ALL - CAST( - 22 AS SIGNED ) ) * - 10 col2
----
220

skipif mysql # not compatible
query I rowsort label-539
SELECT - SUM ( ALL - CAST ( - 22 AS INTEGER ) ) * - 10 col2
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-540
SELECT - CASE WHEN + 88 NOT BETWEEN - 13 AND - CAST( - 77 AS SIGNED ) / 50 - - 89 + + 31 * + 65 THEN NULLIF ( - 49, + + 71 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT - CASE WHEN + 88 NOT BETWEEN - 13 AND - CAST ( - 77 AS INTEGER ) / 50 - - 89 + + 31 * + 65 THEN NULLIF ( - 49, + + 71 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-541
SELECT 46, - COALESCE ( 6, - 61 + + CAST( 68 AS SIGNED ) * - - ( 39 ) ) AS col1
----
46
-6

skipif mysql # not compatible
query II rowsort label-541
SELECT 46, - COALESCE ( 6, - 61 + + CAST ( 68 AS INTEGER ) * - - ( 39 ) ) AS col1
----
46
-6

query I rowsort
SELECT + 82 * - + 54 AS col2
----
-4428

query II rowsort
SELECT DISTINCT 17 AS col1, + 43 AS col2
----
17
43

query I rowsort
SELECT DISTINCT - 33 * - 34 col2
----
1122

query I rowsort
SELECT + 46 - - + 71 - - 37 * + 51 AS col1
----
2004

query I rowsort
SELECT - ( - NULLIF ( 82, - - 95 * + 93 ) ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-547
SELECT - COUNT( * ) AS col2, SUM( - 56 )
----
-1
-56

skipif mysql # not compatible
query II rowsort label-547
SELECT - COUNT ( * ) AS col2, SUM ( - 56 )
----
-1
-56

query I rowsort
SELECT + 16 * COALESCE ( + COALESCE ( + 55, - + 26 ), + - 71 * - 24 )
----
880

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-550
SELECT + CAST( - - SUM( + 54 ) AS SIGNED ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-550
SELECT + CAST ( - - SUM ( + 54 ) AS INTEGER ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT + CASE - 10 WHEN - - ( + 75 ) THEN MIN( 16 ) * + + NULLIF ( + 73, + 22 + - 51 ) - 94 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-551
SELECT + CASE - 10 WHEN - - ( + 75 ) THEN MIN ( 16 ) * + + NULLIF ( + 73, + 22 + - 51 ) - 94 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-552
SELECT + 62 + + + 37 + - 37 * - - COUNT( * ) * - CAST( 11 AS SIGNED ) AS col0
----
506

skipif mysql # not compatible
query I rowsort label-552
SELECT + 62 + + + 37 + - 37 * - - COUNT ( * ) * - CAST ( 11 AS INTEGER ) AS col0
----
506

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

skipif mysql # not compatible
query I rowsort label-553
SELECT + 80 / COUNT ( * )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-554
SELECT DISTINCT + 38 DIV - - 29 + - NULLIF ( + COALESCE ( + 41, - - COUNT( * ) * 54 ), - 8 DIV - 46 + + AVG ( ALL + 30 ) + - COUNT( * ) * - 46 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT + 38 / - - 29 + - NULLIF ( + COALESCE ( + 41, - - COUNT ( * ) * 54 ), - 8 / - 46 + + AVG ( ALL + 30 ) + - COUNT ( * ) * - 46 ) AS col1
----
-40

query I rowsort
SELECT DISTINCT 3 * + 93 AS col2
----
279

query I rowsort
SELECT + COALESCE ( - 92, 64 ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL - COUNT( DISTINCT + 26 ) * 73 + + 56
----
-17

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL - COUNT ( DISTINCT + 26 ) * 73 + + 56
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT DISTINCT + - 32 * - 51 + CASE - 51 WHEN - 88 * 32 + - 69 * + 89 + + + MIN( ALL + 8 ) * - + 69 * - 22 THEN 67 + + 62 + - 2 ELSE NULL END + + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT + - 32 * - 51 + CASE - 51 WHEN - 88 * 32 + - 69 * + 89 + + + MIN ( ALL + 8 ) * - + 69 * - 22 THEN 67 + + 62 + - 2 ELSE NULL END + + - 28
----
NULL

query I rowsort
SELECT ALL + 57 * 16 + - - 32
----
944

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-560
SELECT + - CAST( NULL AS SIGNED ), + 25 + + 55 AS col0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-560
SELECT + - CAST ( NULL AS INTEGER ), + 25 + + 55 AS col0
----
NULL
80

query II rowsort
SELECT + + 64 AS col1, - 93 * - 3 AS col2
----
64
279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-562
SELECT 43 * - - 94 + - MIN( 30 ) + + + 75 + + 87 * - MAX( ALL - 40 ) * COUNT( * ) + - - CAST( - + 83 AS SIGNED )
----
7484

skipif mysql # not compatible
query I rowsort label-562
SELECT 43 * - - 94 + - MIN ( 30 ) + + + 75 + + 87 * - MAX ( ALL - 40 ) * COUNT ( * ) + - - CAST ( - + 83 AS INTEGER )
----
7484

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT DISTINCT - + 50 * - CASE CASE + 98 WHEN - - MIN( DISTINCT 0 ) / 77 * - 29 THEN - 30 * - 84 WHEN - + 94 THEN NULL END WHEN - COALESCE ( - 84, + 81 + + 17, + 22 ) / + 22 * + COUNT( ALL ( + - 5 ) ) THEN + ( - 24 ) + SUM( - 24 ) WHEN + 57 * + 38 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT - + 50 * - CASE CASE + 98 WHEN - - MIN ( DISTINCT 0 ) / 77 * - 29 THEN - 30 * - 84 WHEN - + 94 THEN NULL END WHEN - COALESCE ( - 84, + 81 + + 17, + 22 ) / + 22 * + COUNT ( ALL ( + - 5 ) ) THEN + ( - 24 ) + SUM ( - 24 ) WHEN + 57 * + 38 THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + 73 AS col0, + 2 * + 72 AS col2
----
73
144

query I rowsort
SELECT DISTINCT - 55 * - + COALESCE ( 72, + 74 * - 31 ) + + - 36 * 64
----
1656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-566
SELECT ALL - - 8 * - - CAST( NULL AS SIGNED ) / - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL - - 8 * - - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-567
SELECT - - CAST( 89 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-567
SELECT - - CAST ( 89 AS INTEGER ) AS col1
----
89

query I rowsort
SELECT - 28 + - 77 col2
----
-105

query I rowsort
SELECT - 98 - - 62
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-570
SELECT DISTINCT 52 AS col2, MIN( + - 90 )
----
52
-90

skipif mysql # not compatible
query II rowsort label-570
SELECT DISTINCT 52 AS col2, MIN ( + - 90 )
----
52
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-571
SELECT ALL CAST( ( - CAST( + + 92 AS SIGNED ) ) AS SIGNED ) AS col1, + 21 col2
----
-92
21

skipif mysql # not compatible
query II rowsort label-571
SELECT ALL CAST ( ( - CAST ( + + 92 AS INTEGER ) ) AS INTEGER ) AS col1, + 21 col2
----
-92
21

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT - MIN( - + 66 ) + - 97
----
-31

skipif mysql # not compatible
query I rowsort label-572
SELECT - MIN ( - + 66 ) + - 97
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT - 52 + MIN( ALL - 14 ) + + - 81 * + - 51 AS col1
----
4065

skipif mysql # not compatible
query I rowsort label-573
SELECT - 52 + MIN ( ALL - 14 ) + + - 81 * + - 51 AS col1
----
4065

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

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

query II rowsort
SELECT 98 + - ( + 28 ) + + 41 AS col2, - 21 AS col0
----
111
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-577
SELECT COUNT( * ) + - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / + - 47 AS col1, + 93
----
NULL
93

skipif mysql # not compatible
query II rowsort label-577
SELECT COUNT ( * ) + - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / + - 47 AS col1, + 93
----
NULL
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-578
SELECT ALL + 57 * - CAST( NULL AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL + 57 * - CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 48 * 27 AS col2
----
1296

query I rowsort
SELECT ALL 98 * - 50 * - 11 AS col0
----
53900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT 4 + - - CAST( + 78 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-581
SELECT 4 + - - CAST ( + 78 AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT ALL MIN( ALL + 10 ) + - 56
----
-46

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL MIN ( ALL + 10 ) + - 56
----
-46

query I rowsort
SELECT ALL + 30 + + + 9 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-584
SELECT DISTINCT + ( + - 41 ) + + ( + COUNT( * ) ) AS col1, 90 DIV 96 AS col1
----
-40
0

skipif mysql # not compatible
query II rowsort label-584
SELECT DISTINCT + ( + - 41 ) + + ( + COUNT ( * ) ) AS col1, 90 / 96 AS col1
----
-40
0

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT DISTINCT 56 + + 55 + + COUNT( * )
----
112

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT 56 + + 55 + + COUNT ( * )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT - 44 * - - MAX( + + 46 ) + + SUM( ALL - + 99 )
----
-2123

skipif mysql # not compatible
query I rowsort label-586
SELECT - 44 * - - MAX ( + + 46 ) + + SUM ( ALL - + 99 )
----
-2123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-587
SELECT ALL CAST( NULL AS DECIMAL ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL CAST ( NULL AS REAL ) + - 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-588
SELECT COALESCE ( COUNT( * ), - 9 DIV - 59 * - 77 * + 59 * + 76 - - - 34 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-588
SELECT COALESCE ( COUNT ( * ), - 9 / - 59 * - 77 * + 59 * + 76 - - - 34 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-589
SELECT 74 + + 71 * + NULLIF ( - 21, - 59 * + - 49 - CASE - 55 WHEN + 25 THEN CAST( - 28 AS DECIMAL ) WHEN - - CAST( - 25 AS SIGNED ) THEN NULL END ) * + + 31 - + - 54 + + - 71 AS col2
----
-46164

skipif mysql # not compatible
query I rowsort label-589
SELECT 74 + + 71 * + NULLIF ( - 21, - 59 * + - 49 - CASE - 55 WHEN + 25 THEN CAST ( - 28 AS REAL ) WHEN - - CAST ( - 25 AS INTEGER ) THEN NULL END ) * + + 31 - + - 54 + + - 71 AS col2
----
-46164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-590
SELECT - + ( NULLIF ( + + 5, - 52 + + CASE + + ( - COUNT( * ) ) WHEN + - 9 THEN + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * + 92 END ) ) * - + 79 - + + 30
----
365

skipif mysql # not compatible
query I rowsort label-590
SELECT - + ( NULLIF ( + + 5, - 52 + + CASE + + ( - COUNT ( * ) ) WHEN + - 9 THEN + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 92 END ) ) * - + 79 - + + 30
----
365

query I rowsort
SELECT - 57 * + + 47
----
-2679

query I rowsort
SELECT ALL COALESCE ( + 25, - 40 ) * + - 38 - 80 + + 44 AS col1
----
-986

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-593
SELECT CAST( + - 77 AS SIGNED ), 80 AS col2
----
-77
80

skipif mysql # not compatible
query II rowsort label-593
SELECT CAST ( + - 77 AS INTEGER ), 80 AS col2
----
-77
80

query I rowsort
SELECT + ( 34 ) + + 27 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT - 61 - + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT - 61 - + + COUNT ( * )
----
-62

query I rowsort
SELECT ALL + 87 - + 98
----
-11

query I rowsort
SELECT + 24 * + ( - 12 ) + - 31
----
-319

query I rowsort
SELECT ALL + COALESCE ( 63, 35 * + 39, - 15, - 68 * + 29 + + 52 ) * - - COALESCE ( 41, 57 + - - 33 ) + - - 61 col1
----
2644

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT - 90 * + - CASE + - 41 WHEN 2 THEN NULL WHEN 19 THEN COUNT( ALL + 14 ) - 80 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-599
SELECT - 90 * + - CASE + - 41 WHEN 2 THEN NULL WHEN 19 THEN COUNT ( ALL + 14 ) - 80 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 35 + + + ( 79 ) + - + 9 * + 55 col2
----
-381

onlyif mysql # aggregate syntax: 
query II rowsort label-601
SELECT ALL COUNT( * ) - + CASE 92 WHEN - + 82 THEN + ( + + SUM( ALL + 27 ) ) ELSE NULL END + NULLIF ( + SUM( ALL + + 73 ), + 89 + - - 32 + + COALESCE ( + 34, + 76 * - 90 * - 61 - + + 74, - 54 ) ), + 29 AS col1
----
NULL
29

skipif mysql # not compatible
query II rowsort label-601
SELECT ALL COUNT ( * ) - + CASE 92 WHEN - + 82 THEN + ( + + SUM ( ALL + 27 ) ) ELSE NULL END + NULLIF ( + SUM ( ALL + + 73 ), + 89 + - - 32 + + COALESCE ( + 34, + 76 * - 90 * - 61 - + + 74, - 54 ) ), + 29 AS col1
----
NULL
29

onlyif mysql # DIV for integer division: 
query II rowsort label-602
SELECT - 87 DIV ( 65 ) * 83, 24 + 45 AS col1
----
-83
69

skipif mysql # not compatible
query II rowsort label-602
SELECT - 87 / ( 65 ) * 83, 24 + 45 AS col1
----
-83
69

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

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL + COUNT ( * ) / + - 75 * - ( - - 67 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT + 96 + - + CASE 74 WHEN 48 THEN - MAX( DISTINCT ( - - 74 ) ) WHEN + + 29 THEN - ( - 25 ) END / + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT + 96 + - + CASE 74 WHEN 48 THEN - MAX ( DISTINCT ( - - 74 ) ) WHEN + + 29 THEN - ( - 25 ) END / + 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-605
SELECT ALL + COALESCE ( + - ( - COALESCE ( 56, - COUNT( * ) * + 64 - 89 ) ), 28 DIV 41 + - ( - 46 ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + COALESCE ( + - ( - COALESCE ( 56, - COUNT ( * ) * + 64 - 89 ) ), 28 / 41 + - ( - 46 ) ) AS col2
----
56

query II rowsort
SELECT - 53 AS col1, - 95
----
-53
-95

query I rowsort
SELECT ALL + 61 + 45
----
106

query II rowsort
SELECT - 20, 36 AS col2
----
-20
36

query I rowsort
SELECT 88 - - ( 27 ) AS col0
----
115

query I rowsort
SELECT 27 * + 6
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT ALL + CASE - + MIN( DISTINCT - 55 ) WHEN + 11 THEN + 75 END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL + CASE - + MIN ( DISTINCT - 55 ) WHEN + 11 THEN + 75 END + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 98 - 74 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ALL - MIN( DISTINCT - 38 ) + - 29 + - - 83 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL - MIN ( DISTINCT - 38 ) + - 29 + - - 83 AS col2
----
92

query I rowsort
SELECT 7 + + 20 * 23 + + - 39 AS col0
----
428

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

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT 86 + - COUNT ( * ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL - 98 + - 82 + + COUNT( * ) * 53
----
-127

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL - 98 + - 82 + + COUNT ( * ) * 53
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT + NULLIF ( - - COALESCE ( - 87, + + COUNT( * ) ), - - 38 + - - COUNT( * ) ) + - 68 + + 29
----
-126

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT + NULLIF ( - - COALESCE ( - 87, + + COUNT ( * ) ), - - 38 + - - COUNT ( * ) ) + - 68 + + 29
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL 3 + CASE ( - 73 ) WHEN - 55 * 63 * + 67 + - 38 THEN COUNT( * ) END / - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL 3 + CASE ( - 73 ) WHEN - 55 * 63 * + 67 + - 38 THEN COUNT ( * ) END / - 89
----
NULL

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

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

query I rowsort
SELECT 52 * + 57 AS col0
----
2964

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-622
SELECT ALL + 41 * ( - 70 ) - - + 50 - - - 12 - + - 58 DIV - ( + 40 )
----
-2833

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL + 41 * ( - 70 ) - - + 50 - - - 12 - + - 58 / - ( + 40 )
----
-2833

query I rowsort
SELECT - 72 + - 54
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT 1 * CASE + COUNT( * ) WHEN - COUNT( * ) THEN - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT 1 * CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN - - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-625
SELECT - SUM( + ( + 38 ) ) * + 75 + + CASE 28 WHEN CASE 18 WHEN + 76 * COALESCE ( - MAX( + NULLIF ( 10, - 34 * + - 81 * - 93 ) ), - 99, + ( - COUNT( * ) ) ) THEN 15 + - 99 ELSE - CAST( NULL AS DECIMAL ) END / + 95 THEN + - 78 + + 18 - + COUNT( * ) ELSE 85 END
----
-2765

skipif mysql # not compatible
query I rowsort label-625
SELECT - SUM ( + ( + 38 ) ) * + 75 + + CASE 28 WHEN CASE 18 WHEN + 76 * COALESCE ( - MAX ( + NULLIF ( 10, - 34 * + - 81 * - 93 ) ), - 99, + ( - COUNT ( * ) ) ) THEN 15 + - 99 ELSE - CAST ( NULL AS REAL ) END / + 95 THEN + - 78 + + 18 - + COUNT ( * ) ELSE 85 END
----
-2765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-626
SELECT + 42 DIV 19 - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-626
SELECT + 42 / 19 - COUNT ( * ) col2
----
1

query I rowsort
SELECT ALL + + 17 * 6 AS col0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-628
SELECT DISTINCT + - CAST( - + 53 AS SIGNED ) * + + 89 AS col1, 21 AS col1
----
4717
21

skipif mysql # not compatible
query II rowsort label-628
SELECT DISTINCT + - CAST ( - + 53 AS INTEGER ) * + + 89 AS col1, 21 AS col1
----
4717
21

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT DISTINCT + - 62 * + 53 - + COUNT( * ) * + COUNT( * ) * - ( + 77 ) * + 58 + - + 19 * + + 51
----
211

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT + - 62 * + 53 - + COUNT ( * ) * + COUNT ( * ) * - ( + 77 ) * + 58 + - + 19 * + + 51
----
211

query I rowsort
SELECT 73 + + + 40
----
113

query I rowsort
SELECT DISTINCT - ( - 30 ) AS col2
----
30

query I rowsort
SELECT 50 * - 86 * - - 16 * + 14
----
-963200

onlyif mysql # DIV for integer division: 
query I rowsort label-633
SELECT ALL - 6 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL - 6 / 43
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-634
SELECT + 33 * + 48 + + COUNT( * ) + CAST( + 27 AS SIGNED ) + + - ( 12 ) + MIN( DISTINCT ( - + 70 ) ) * + + 23
----
-10

skipif mysql # not compatible
query I rowsort label-634
SELECT + 33 * + 48 + + COUNT ( * ) + CAST ( + 27 AS INTEGER ) + + - ( 12 ) + MIN ( DISTINCT ( - + 70 ) ) * + + 23
----
-10

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

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

query I rowsort
SELECT + 45 * + 24 * - 13 - 92 + - - 71 + + + 51
----
-14010

onlyif mysql # aggregate syntax: 
query II rowsort label-637
SELECT ALL - CASE + 23 WHEN + 22 * + COUNT( ALL + 66 ) - - 28 * + 79 * + 91 THEN NULL WHEN + 82 * AVG ( ALL 74 ) THEN - 79 WHEN + - COUNT( * ) * - + 89 * ( - ( - - 55 ) ) + + 99 THEN - 33 END * - 36 AS col2, 46 + 19 * 23 * + + 71
----
NULL
31073

skipif mysql # not compatible
query II rowsort label-637
SELECT ALL - CASE + 23 WHEN + 22 * + COUNT ( ALL + 66 ) - - 28 * + 79 * + 91 THEN NULL WHEN + 82 * AVG ( ALL 74 ) THEN - 79 WHEN + - COUNT ( * ) * - + 89 * ( - ( - - 55 ) ) + + 99 THEN - 33 END * - 36 AS col2, 46 + 19 * 23 * + + 71
----
NULL
31073

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-638
SELECT ALL + + COUNT( * ) DIV + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL + + COUNT ( * ) / + 98 AS col2
----
0

query I rowsort
SELECT DISTINCT 94 + + 30 * - + 60 AS col2
----
-1706

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL 17 + - COUNT( * ) - 70 + - 29
----
-83

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL 17 + - COUNT ( * ) - 70 + - 29
----
-83

query I rowsort
SELECT ALL 29 + + COALESCE ( 8, + - 59, - 22 )
----
37

query I rowsort
SELECT + 99 + 13 - + 12 AS col2
----
100

query I rowsort
SELECT + ( 35 ) + - 12 * - + 24
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL 81 + + MIN( ALL - - 87 ) col1
----
168

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL 81 + + MIN ( ALL - - 87 ) col1
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-645
SELECT + 87 + + 20 DIV + NULLIF ( + SUM( + + 49 ), - 56 ) * 93 + + + 10 * + 51
----
597

skipif mysql # not compatible
query I rowsort label-645
SELECT + 87 + + 20 / + NULLIF ( + SUM ( + + 49 ), - 56 ) * 93 + + + 10 * + 51
----
597

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

skipif mysql # not compatible
query I rowsort label-646
SELECT + 63 + + COUNT ( * ) AS col1
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-647
SELECT ALL 76 AS col0, 11 DIV + 19
----
76
0

skipif mysql # not compatible
query II rowsort label-647
SELECT ALL 76 AS col0, 11 / + 19
----
76
0

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT - CASE 53 WHEN - + 38 THEN - ( - - SUM( - - 28 ) ) - - + 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT - CASE 53 WHEN - + 38 THEN - ( - - SUM ( - - 28 ) ) - - + 63 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 45 + + 60
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT - CASE - 95 WHEN COUNT( * ) + 65 THEN + 56 - - - 66 + + 66 * + 70 WHEN COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-650
SELECT - CASE - 95 WHEN COUNT ( * ) + 65 THEN + 56 - - - 66 + + 66 * + 70 WHEN COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 80 + - 63 AS col1
----
17

query II rowsort
SELECT ALL 87 AS col1, 98 AS col2
----
87
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-653
SELECT ALL NULLIF ( NULLIF ( - COUNT( * ), 65 + COUNT( * ) + COALESCE ( - - 13, - 35 + - 33 + + 33, MAX( CAST( + CASE - 9 WHEN + 70 * 58 THEN 92 END AS SIGNED ) ) * + COUNT( * ) + + 72 + - 6 + - 92 ) * - + SUM( DISTINCT - + 40 ) + - 80 ), - CAST( ( - COUNT( * ) ) AS DECIMAL ) + 96 * 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL NULLIF ( NULLIF ( - COUNT ( * ), 65 + COUNT ( * ) + COALESCE ( - - 13, - 35 + - 33 + + 33, MAX ( CAST ( + CASE - 9 WHEN + 70 * 58 THEN 92 END AS INTEGER ) ) * + COUNT ( * ) + + 72 + - 6 + - 92 ) * - + SUM ( DISTINCT - + 40 ) + - 80 ), - CAST ( ( - COUNT ( * ) ) AS REAL ) + 96 * 2 )
----
-1

query I rowsort
SELECT - 9 + - ( - - 42 ) + + 61 + + - 98 AS col0
----
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT - NULLIF ( COUNT( * ), - - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-656
SELECT - NULLIF ( COUNT ( * ), - - 72 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT - CASE + - 55 WHEN + 8 * - - 29 - - 29 THEN - + ( COUNT( * ) ) ELSE - 4 END + + - COALESCE ( - ( + 71 ), + + 65 + - + 50 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-657
SELECT - CASE + - 55 WHEN + 8 * - - 29 - - 29 THEN - + ( COUNT ( * ) ) ELSE - 4 END + + - COALESCE ( - ( + 71 ), + + 65 + - + 50 ) AS col2
----
75

query I rowsort
SELECT + 97 * + - 48
----
-4656

query I rowsort
SELECT ALL + 22 * - 8
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL COUNT( DISTINCT - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL COUNT ( DISTINCT - 71 )
----
1

query I rowsort
SELECT - ( - - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT - COALESCE ( ( - 96 ), - 21 + 79, + CASE - - 86 WHEN - 44 + + + MAX( ALL + 45 ) THEN - COUNT( * ) ELSE NULL END + + COUNT( * ) - + + ( - 9 ) + - SUM( DISTINCT + 58 ) ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-662
SELECT - COALESCE ( ( - 96 ), - 21 + 79, + CASE - - 86 WHEN - 44 + + + MAX ( ALL + 45 ) THEN - COUNT ( * ) ELSE NULL END + + COUNT ( * ) - + + ( - 9 ) + - SUM ( DISTINCT + 58 ) ) AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-663
SELECT - - 67 + 43 + 53 * - CAST( + 71 AS SIGNED ) + + + CASE + - 24 WHEN + - 92 THEN - + 78 END, + 44 AS col1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-663
SELECT - - 67 + 43 + 53 * - CAST ( + 71 AS INTEGER ) + + + CASE + - 24 WHEN + - 92 THEN - + 78 END, + 44 AS col1
----
NULL
44

query I rowsort
SELECT - 79 * + 71 AS col1
----
-5609

onlyif mysql # DIV for integer division: 
query II rowsort label-665
SELECT - 91, - 47 DIV + 88 AS col1
----
-91
0

skipif mysql # not compatible
query II rowsort label-665
SELECT - 91, - 47 / + 88 AS col1
----
-91
0

query II rowsort
SELECT ALL + 37, 80 AS col1
----
37
80

query I rowsort
SELECT - + 90 + - 71 * + 56
----
-4066

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT - + NULLIF ( - 94, + 30 + 11 + + - 93 ) DIV - - 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-668
SELECT - + NULLIF ( - 94, + 30 + 11 + + - 93 ) / - - 50 AS col1
----
1

query I rowsort
SELECT ALL - + 1 * + + 6
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-670
SELECT - 81 + - COALESCE ( CAST( NULL AS SIGNED ), + + 81 + + 56 - + 50 DIV - 93, + - 83 ) + + 97 * - NULLIF ( - + 47, - COALESCE ( - 15, - + 94 * MIN( DISTINCT + 61 ) * - 84 ) ) * - 21 * - - 29 + - 68 + - + 27 col0
----
-2776744

skipif mysql # not compatible
query I rowsort label-670
SELECT - 81 + - COALESCE ( CAST ( NULL AS INTEGER ), + + 81 + + 56 - + 50 / - 93, + - 83 ) + + 97 * - NULLIF ( - + 47, - COALESCE ( - 15, - + 94 * MIN ( DISTINCT + 61 ) * - 84 ) ) * - 21 * - - 29 + - 68 + - + 27 col0
----
-2776744

query I rowsort
SELECT DISTINCT + - 89 * 83 * - 67 AS col1
----
494929

query II rowsort
SELECT DISTINCT + + 43, - 6 * - 38 * - 55 + + 77 AS col0
----
43
-12463

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT + - 42 * - COUNT( * ) * 18 + - - MAX( DISTINCT - + 17 ) + 6
----
745

skipif mysql # not compatible
query I rowsort label-673
SELECT + - 42 * - COUNT ( * ) * 18 + - - MAX ( DISTINCT - + 17 ) + 6
----
745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-674
SELECT DISTINCT - 77 * - + 7 + SUM( DISTINCT ( - + 51 ) ) + + 98 * + 50 * - 34 * - 10 * - CAST( 6 AS SIGNED ) * + + 30
----
-299879512

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT - 77 * - + 7 + SUM ( DISTINCT ( - + 51 ) ) + + 98 * + 50 * - 34 * - 10 * - CAST ( 6 AS INTEGER ) * + + 30
----
-299879512

query I rowsort
SELECT COALESCE ( 57, 4, + + 14 )
----
57

query I rowsort
SELECT + 33 * + 45
----
1485

query I rowsort
SELECT ALL 39 * 89
----
3471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-678
SELECT + COUNT( * ) * + - 93 AS col1, CAST( - COALESCE ( + 29, - COUNT( * ) ) AS SIGNED )
----
-93
-29

skipif mysql # not compatible
query II rowsort label-678
SELECT + COUNT ( * ) * + - 93 AS col1, CAST ( - COALESCE ( + 29, - COUNT ( * ) ) AS INTEGER )
----
-93
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-679
SELECT - NULLIF ( - 26, - COUNT( * ) ) AS col0, - 54
----
26
-54

skipif mysql # not compatible
query II rowsort label-679
SELECT - NULLIF ( - 26, - COUNT ( * ) ) AS col0, - 54
----
26
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-680
SELECT ALL COUNT( DISTINCT - + 79 ) - 28 + + 83 - - COUNT( * ) DIV - + NULLIF ( + 49, 93 * COUNT( * ) ) * - 73 + + ( - 89 ) - - 16 + 48 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL COUNT ( DISTINCT - + 79 ) - 28 + + 83 - - COUNT ( * ) / - + NULLIF ( + 49, 93 * COUNT ( * ) ) * - 73 + + ( - 89 ) - - 16 + 48 AS col0
----
31

query I rowsort
SELECT + 97 - - 0 * - 3 AS col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-682
SELECT + 3 * MAX( + + 74 ) DIV 6
----
37

skipif mysql # not compatible
query I rowsort label-682
SELECT + 3 * MAX ( + + 74 ) / 6
----
37

query I rowsort
SELECT + ( + ( + 11 ) ) * + - 34 - + - 83 * + + 95 AS col1
----
7511

query II rowsort
SELECT + 50 + - + 99, + 75 AS col1
----
-49
75

onlyif mysql # DIV for integer division: 
query I rowsort label-685
SELECT ALL 93 DIV + + 30 + - 36 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL 93 / + + 30 + - 36 AS col0
----
-33

query I rowsort
SELECT DISTINCT - 63 - + 15
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-687
SELECT ALL NULLIF ( - 68, COUNT( * ) + + + CAST( NULL AS SIGNED ) + + - COUNT( * ) ) AS col2, + 41 col2
----
-68
41

skipif mysql # not compatible
query II rowsort label-687
SELECT ALL NULLIF ( - 68, COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) ) AS col2, + 41 col2
----
-68
41

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT - - 61 - + 95 * + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-688
SELECT - - 61 - + 95 * + COUNT ( * )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-689
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-689
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) col2, COUNT ( * )
----
NULL
1

query I rowsort
SELECT + ( + 37 ) + - + 72
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-691
SELECT + 79 * + 1 * COALESCE ( - CAST( NULL AS SIGNED ), - ( - - NULLIF ( + 61, - CASE 40 WHEN + + 62 + CAST( + 6 AS SIGNED ) THEN NULL ELSE + - 64 END * + CAST( NULL AS DECIMAL ) + + - COUNT( * ) ) ) ) col1, 15 * 55
----
-4819
825

skipif mysql # not compatible
query II rowsort label-691
SELECT + 79 * + 1 * COALESCE ( - CAST ( NULL AS INTEGER ), - ( - - NULLIF ( + 61, - CASE 40 WHEN + + 62 + CAST ( + 6 AS INTEGER ) THEN NULL ELSE + - 64 END * + CAST ( NULL AS REAL ) + + - COUNT ( * ) ) ) ) col1, 15 * 55
----
-4819
825

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT + SUM( ALL - 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-692
SELECT + SUM ( ALL - 52 ) AS col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-693
SELECT ALL + 3 + - + 65 + + 28 * - 34 + + NULLIF ( + CAST( NULL AS SIGNED ), - - AVG ( ALL - 28 ) ) / - 95 * + - 81 AS col2, 2 AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-693
SELECT ALL + 3 + - + 65 + + 28 * - 34 + + NULLIF ( + CAST ( NULL AS INTEGER ), - - AVG ( ALL - 28 ) ) / - 95 * + - 81 AS col2, 2 AS col0
----
NULL
2

query I rowsort
SELECT ALL - 23 + 52 * - + 98 col1
----
-5119

query I rowsort
SELECT + 15 * - 21 + - 7 * 80
----
-875

query I rowsort
SELECT + 33 + + 31
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT - 42 DIV + 86 + + 68 + - 99 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-697
SELECT - 42 / + 86 + + 68 + - 99 AS col2
----
-31

query II rowsort
SELECT ALL + 29 + - 8 + - + 65, 2 AS col2
----
-44
2

query I rowsort
SELECT 88 + + 67
----
155

query I rowsort
SELECT 1 * - 86
----
-86

query I rowsort
SELECT 36 * - 75 AS col2
----
-2700

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

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

query I rowsort
SELECT ALL - 39 * ( + 36 ) AS col2
----
-1404

query I rowsort
SELECT 17 + 17
----
34

query I rowsort
SELECT 23 - - 69 * ( ( - + 76 ) ) AS col2
----
-5221

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT COUNT( * ) + + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-706
SELECT COUNT ( * ) + + - 19
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-707
SELECT ALL - CASE - 12 WHEN - COUNT( * ) * - CAST( NULL AS SIGNED ) THEN + 45 * - 4 + COUNT( * ) * - CASE - - 80 WHEN - - NULLIF ( + 56, - 53 ) THEN + 96 * - + 78 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL - CASE - 12 WHEN - COUNT ( * ) * - CAST ( NULL AS INTEGER ) THEN + 45 * - 4 + COUNT ( * ) * - CASE - - 80 WHEN - - NULLIF ( + 56, - 53 ) THEN + 96 * - + 78 END END
----
NULL

query I rowsort
SELECT DISTINCT - ( + 87 ) col2
----
-87

query I rowsort
SELECT 13 * - 43 * - 29
----
16211

query II rowsort
SELECT 19 AS col1, - 84 AS col2
----
19
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-711
SELECT 63, 77 + - MIN( ALL 12 ) * + + COUNT( * ) AS col0
----
63
65

skipif mysql # not compatible
query II rowsort label-711
SELECT 63, 77 + - MIN ( ALL 12 ) * + + COUNT ( * ) AS col0
----
63
65

query I rowsort
SELECT 32 + - - ( + ( - 59 ) ) * 95 AS col1
----
-5573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-713
SELECT 68 - ( + ( + NULLIF ( + CASE - 94 WHEN + CAST( NULL AS SIGNED ) THEN 76 END, - ( - 93 ) ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-713
SELECT 68 - ( + ( + NULLIF ( + CASE - 94 WHEN + CAST ( NULL AS INTEGER ) THEN 76 END, - ( - 93 ) ) ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT ALL - 4 DIV + + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL - 4 / + + 84 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT 58 DIV - 74 col0
----
0

skipif mysql # not compatible
query I rowsort label-715
SELECT 58 / - 74 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-716
SELECT ALL + 34 * + 95 / 89 / - 91 + + + 68 + - CASE 34 WHEN - - 84 * - - COUNT( * ) * + 80 * - COUNT( * ) THEN + ( - MAX( + - 49 ) ) * + COUNT( * ) WHEN + 51 * + 93 + + CAST( NULL AS SIGNED ) + 32 + - 61 * - + 93 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL + 34 * + 95 / 89 / - 91 + + + 68 + - CASE 34 WHEN - - 84 * - - COUNT ( * ) * + 80 * - COUNT ( * ) THEN + ( - MAX ( + - 49 ) ) * + COUNT ( * ) WHEN + 51 * + 93 + + CAST ( NULL AS INTEGER ) + 32 + - 61 * - + 93 THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL 42 AS col1, + 74 * - 80 * 4
----
42
-23680

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT 79 + + COUNT( * ) + - - 49 / CASE 1 WHEN COUNT( * ) + + ( + 99 ) THEN - 8 + COUNT( * ) + 47 ELSE NULL END * 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT 79 + + COUNT ( * ) + - - 49 / CASE 1 WHEN COUNT ( * ) + + ( + 99 ) THEN - 8 + COUNT ( * ) + 47 ELSE NULL END * 31 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT - 97 DIV - + 79
----
1

skipif mysql # not compatible
query I rowsort label-719
SELECT - 97 / - + 79
----
1

query II rowsort
SELECT ALL - 69 AS col1, 86 AS col0
----
-69
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-722
SELECT NULLIF ( 66, + COUNT( * ) ) AS col1, AVG ( DISTINCT - 52 ) + 33 - + COUNT( * ) * + - 91 + - - CAST( NULL AS SIGNED ) + - - CAST( NULL AS DECIMAL ) AS col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-722
SELECT NULLIF ( 66, + COUNT ( * ) ) AS col1, AVG ( DISTINCT - 52 ) + 33 - + COUNT ( * ) * + - 91 + - - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS REAL ) AS col1
----
66
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-723
SELECT ALL - NULLIF ( - - 21, + - 39 ) DIV - 37 * - - 5 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL - NULLIF ( - - 21, + - 39 ) / - 37 * - - 5 + + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-724
SELECT + CASE 82 WHEN + - COUNT( * ) THEN + 1 WHEN - 61 * 90 THEN NULL WHEN + + 26 * - 9 - + 60 THEN CAST( 74 AS SIGNED ) + + CAST( + + 14 AS SIGNED ) + - + 76 * - 82 * + 89 END + + COUNT( * ) * 58 - - 67, ( + 35 ) + - + 93 * - 60 col1
----
NULL
5615

skipif mysql # not compatible
query II rowsort label-724
SELECT + CASE 82 WHEN + - COUNT ( * ) THEN + 1 WHEN - 61 * 90 THEN NULL WHEN + + 26 * - 9 - + 60 THEN CAST ( 74 AS INTEGER ) + + CAST ( + + 14 AS INTEGER ) + - + 76 * - 82 * + 89 END + + COUNT ( * ) * 58 - - 67, ( + 35 ) + - + 93 * - 60 col1
----
NULL
5615

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT ALL COUNT( * ) + + 48
----
49

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL COUNT ( * ) + + 48
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-726
SELECT DISTINCT 11 + - 30 / - - CAST( NULL AS SIGNED ) * CAST( - 71 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT 11 + - 30 / - - CAST ( NULL AS INTEGER ) * CAST ( - 71 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 69 + 54 * + + 4 + 33
----
180

query I rowsort
SELECT - CASE WHEN NOT 57 = + 33 THEN - 59 ELSE NULL END AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ALL MAX( DISTINCT - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL MAX ( DISTINCT - 7 )
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT ALL - 77 * 54 * + 54 DIV + - 3 AS col1
----
74844

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL - 77 * 54 * + 54 / + - 3 AS col1
----
74844

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT DISTINCT 82 + + COUNT( * ) col0
----
83

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT 82 + + COUNT ( * ) col0
----
83

query I rowsort
SELECT ALL 96 + 91 * - - 76 * 51 * - CASE - 27 WHEN 1 * - - 99 THEN - - ( + 16 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 0 + + 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT 43 * COUNT( * ) * + COUNT( * ) - + + 93 * 23 * - + 34
----
72769

skipif mysql # not compatible
query I rowsort label-734
SELECT 43 * COUNT ( * ) * + COUNT ( * ) - + + 93 * 23 * - + 34
----
72769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-735
SELECT ALL + CASE WHEN NOT ( NOT - CASE - 79 WHEN + 79 THEN NULL WHEN - NULLIF ( 86, 23 ) + - - COUNT( * ) THEN + 22 END >= 25 ) THEN COALESCE ( + 56, - - 47 + - 59 + 45 + 84 + + - CAST( - - 18 AS SIGNED ) ) END - 0 / NULLIF ( + + 27, 43 * + 58 + 40 / + 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL + CASE WHEN NOT ( NOT - CASE - 79 WHEN + 79 THEN NULL WHEN - NULLIF ( 86, 23 ) + - - COUNT ( * ) THEN + 22 END >= 25 ) THEN COALESCE ( + 56, - - 47 + - 59 + 45 + 84 + + - CAST ( - - 18 AS INTEGER ) ) END - 0 / NULLIF ( + + 27, 43 * + 58 + 40 / + 73 ) AS col0
----
NULL

query I rowsort
SELECT 36 * - ( 2 )
----
-72

query I rowsort
SELECT ALL + 71 * + 44 AS col0
----
3124

onlyif mysql # DIV for integer division: 
query II rowsort label-738
SELECT ALL + 99 DIV - 4 AS col1, 77
----
-24
77

skipif mysql # not compatible
query II rowsort label-738
SELECT ALL + 99 / - 4 AS col1, 77
----
-24
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-739
SELECT CAST( NULL AS SIGNED ) / 46, + 66 * + 73 + + 45 AS col0
----
NULL
4863

skipif mysql # not compatible
query II rowsort label-739
SELECT CAST ( NULL AS INTEGER ) / 46, + 66 * + 73 + + 45 AS col0
----
NULL
4863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT 61 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT 61 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-741
SELECT + CAST( COALESCE ( - 6, 65, 79 ) AS SIGNED ) * - + 29 + + 28, 12 + - 44 - - - COUNT( * ) + + 10 * - 94 AS col0
----
202
-973

skipif mysql # not compatible
query II rowsort label-741
SELECT + CAST ( COALESCE ( - 6, 65, 79 ) AS INTEGER ) * - + 29 + + 28, 12 + - 44 - - - COUNT ( * ) + + 10 * - 94 AS col0
----
202
-973

query I rowsort
SELECT ALL - 8 * + + 10 * - + 64
----
5120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-743
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 85 AS col2, CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-743
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 85 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query II rowsort
SELECT 51 * 53, - 60 - COALESCE ( + 34, - 96 ) + - 84 AS col0
----
2703
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL MAX( + - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL MAX ( + - 93 )
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-746
SELECT ALL - 9 * + - 39, - 95 + + 66 DIV + 84 AS col2
----
351
-95

skipif mysql # not compatible
query II rowsort label-746
SELECT ALL - 9 * + - 39, - 95 + + 66 / + 84 AS col2
----
351
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-747
SELECT DISTINCT CASE CAST( - CAST( - 72 AS DECIMAL ) AS SIGNED ) WHEN 67 THEN NULL WHEN + 65 + - 55 THEN - CAST( NULL AS SIGNED ) / 78 * + COUNT( * ) ELSE + 38 * + + 7 + 10 - - CASE + 46 WHEN + 40 THEN + MAX( + 97 ) * 87 - 98 WHEN - - 91 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT CASE CAST ( - CAST ( - 72 AS REAL ) AS INTEGER ) WHEN 67 THEN NULL WHEN + 65 + - 55 THEN - CAST ( NULL AS INTEGER ) / 78 * + COUNT ( * ) ELSE + 38 * + + 7 + 10 - - CASE + 46 WHEN + 40 THEN + MAX ( + 97 ) * 87 - 98 WHEN - - 91 THEN NULL END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-748
SELECT ALL - MAX( - + CASE + + 69 WHEN + - CAST( + - 90 AS SIGNED ) * + 74 THEN + 51 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL - MAX ( - + CASE + + 69 WHEN + - CAST ( + - 90 AS INTEGER ) * + 74 THEN + 51 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT - SUM( ALL - 29 ) col1
----
29

skipif mysql # not compatible
query I rowsort label-749
SELECT - SUM ( ALL - 29 ) col1
----
29

query I rowsort
SELECT 94 * - 48 AS col2
----
-4512

query I rowsort
SELECT ALL + 39 + - COALESCE ( 68, ( 26 ) ) AS col1
----
-29

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

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

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

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

query I rowsort
SELECT + 38 + 3
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT 73 + - + 77 * - COUNT( * ) AS col0
----
150

skipif mysql # not compatible
query I rowsort label-757
SELECT 73 + - + 77 * - COUNT ( * ) AS col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-758
SELECT - + 9 + - + 64, + 52 - - NULLIF ( - + 31, + - 72 + + 0 + + 28 + ( - ( + - 2 ) ) * - + ( 19 ) ) - - - 78 + ( 13 ) * - + 29 + + 20 * - CAST( NULL AS SIGNED ) + - + 21 - + 42 * - - SUM( ALL - - 74 ) AS col0
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-758
SELECT - + 9 + - + 64, + 52 - - NULLIF ( - + 31, + - 72 + + 0 + + 28 + ( - ( + - 2 ) ) * - + ( 19 ) ) - - - 78 + ( 13 ) * - + 29 + + 20 * - CAST ( NULL AS INTEGER ) + - + 21 - + 42 * - - SUM ( ALL - - 74 ) AS col0
----
-73
NULL

query I rowsort
SELECT ALL - 98 + + 28 col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT + ( 91 ) - - + 44 * 53 * - 72 + + COUNT( * ) + 31 + - 1 AS col2
----
-167782

skipif mysql # not compatible
query I rowsort label-760
SELECT + ( 91 ) - - + 44 * 53 * - 72 + + COUNT ( * ) + 31 + - 1 AS col2
----
-167782

query II rowsort
SELECT ALL 85 + - + 61 AS col1, + 66 col2
----
24
66

query I rowsort
SELECT - ( - + 56 ) * - - 10 AS col2
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT + - 82 + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-763
SELECT + - 82 + COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + + MAX( ALL + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-764
SELECT + + MAX ( ALL + 99 )
----
99

query I rowsort
SELECT ALL + NULLIF ( - 3, + ( - - 39 ) + + 44 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT DISTINCT + 96 * - 61 - ( 79 ) - SUM( DISTINCT + - 71 ) + + 2 * - - 50 AS col0
----
-5764

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT + 96 * - 61 - ( 79 ) - SUM ( DISTINCT + - 71 ) + + 2 * - - 50 AS col0
----
-5764

query I rowsort
SELECT ALL 52 * - 9 AS col0
----
-468

query I rowsort
SELECT ALL - 63 * - 0 * + 2 - - + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT + CASE - 18 WHEN + 94 THEN NULL WHEN - 9 THEN + CASE + - 2 WHEN - - COUNT( * ) THEN NULL ELSE + 84 + - COUNT( + - 84 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT + CASE - 18 WHEN + 94 THEN NULL WHEN - 9 THEN + CASE + - 2 WHEN - - COUNT ( * ) THEN NULL ELSE + 84 + - COUNT ( + - 84 ) END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT + NULLIF ( + MIN( 89 ), + ( - MAX( ALL 39 ) ) )
----
89

skipif mysql # not compatible
query I rowsort label-770
SELECT + NULLIF ( + MIN ( 89 ), + ( - MAX ( ALL 39 ) ) )
----
89

query I rowsort
SELECT + 81 * - - 59 * 36
----
172044

query I rowsort
SELECT + 98 + - 73 * + + 26 AS col2
----
-1800

onlyif mysql # aggregate syntax: 
query III rowsort label-773
SELECT + NULLIF ( + 59, 80 / + + 19 * 52 * + + COUNT( * ) + - - 43 + - 41 + - 32 / - 46 ) col2, + COALESCE ( - 66, 91, + 84 + 91 + 4 ), 47 col1
----
59
-66
47

skipif mysql # not compatible
query III rowsort label-773
SELECT + NULLIF ( + 59, 80 / + + 19 * 52 * + + COUNT ( * ) + - - 43 + - 41 + - 32 / - 46 ) col2, + COALESCE ( - 66, 91, + 84 + 91 + 4 ), 47 col1
----
59
-66
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-774
SELECT NULLIF ( 84, - 54 * - MAX( + 40 ) + + COUNT( * ) * - CAST( NULL AS SIGNED ) ) col2
----
84

skipif mysql # not compatible
query I rowsort label-774
SELECT NULLIF ( 84, - 54 * - MAX ( + 40 ) + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) col2
----
84

query I rowsort
SELECT - NULLIF ( - - 43, + ( - - ( + 86 ) ) ) * 25 * - 76 col0
----
81700

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT + MIN( ALL - 19 ) + - 83
----
-102

skipif mysql # not compatible
query I rowsort label-776
SELECT + MIN ( ALL - 19 ) + - 83
----
-102

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

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * - ( 89 )
----
89

query I rowsort
SELECT + 44 + 55 AS col2
----
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT ALL ( + 46 ) * 2 + + - CAST( - MAX( DISTINCT + 0 ) AS SIGNED ) - 84 + 17 + COUNT( * ) * - 76
----
-51

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL ( + 46 ) * 2 + + - CAST ( - MAX ( DISTINCT + 0 ) AS INTEGER ) - 84 + 17 + COUNT ( * ) * - 76
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-781
SELECT ALL 58 * - 96 + + CAST( - COUNT( * ) AS SIGNED ) * - 40 * - + 12 AS col0
----
-6048

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL 58 * - 96 + + CAST ( - COUNT ( * ) AS INTEGER ) * - 40 * - + 12 AS col0
----
-6048

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

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

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

skipif mysql # not compatible
query I rowsort label-783
SELECT + 0 / + - 58 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT + + 62 + - MAX( DISTINCT + NULLIF ( + 23, + 0 * - 50 ) ) + 47 + + COUNT( DISTINCT - + 20 ) * 60 AS col2
----
146

skipif mysql # not compatible
query I rowsort label-784
SELECT + + 62 + - MAX ( DISTINCT + NULLIF ( + 23, + 0 * - 50 ) ) + 47 + + COUNT ( DISTINCT - + 20 ) * 60 AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + 93 + + 22 * 90 * + 55 * + MIN( DISTINCT - 85 ) AS col2
----
-9256407

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + 93 + + 22 * 90 * + 55 * + MIN ( DISTINCT - 85 ) AS col2
----
-9256407

query I rowsort
SELECT + - 87 + - - 15 * - 8 col0
----
-207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-787
SELECT - - SUM( 18 ) + + 15 DIV 52 * 79 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-787
SELECT - - SUM ( 18 ) + + 15 / 52 * 79 AS col2
----
18

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

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT - + 13 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-789
SELECT - + 13 / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT ALL - 2 + - ( + 56 ) + - 61 * + 55 * - COUNT( ALL - 64 )
----
3297

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL - 2 + - ( + 56 ) + - 61 * + 55 * - COUNT ( ALL - 64 )
----
3297

query I rowsort
SELECT ALL + + 80 + + 53 * + 75 + COALESCE ( - - 96, + 38 ) - - 25 - + 15
----
4161

query I rowsort
SELECT DISTINCT + ( + 98 ) AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT ALL COALESCE ( + 19, - 63 + - 19 DIV - - 91 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL COALESCE ( + 19, - 63 + - 19 / - - 91 ) AS col1
----
19

query II rowsort
SELECT DISTINCT 1 AS col0, 60
----
1
60

query II rowsort
SELECT - ( 23 ) + + 48 AS col2, 70 + + ( 30 ) col2
----
25
100

query I rowsort
SELECT + - 6 * + - 57
----
342

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT - 61 + - 4 DIV - 90
----
-61

skipif mysql # not compatible
query I rowsort label-797
SELECT - 61 + - 4 / - 90
----
-61

query I rowsort
SELECT DISTINCT + - 62 * - + 15 + + 97 AS col0
----
1027

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT DISTINCT - CASE + COUNT( * ) WHEN COALESCE ( NULLIF ( 69, - 18 / 23 ), + + 12, - 16 ) * 97 THEN NULL WHEN - COUNT( * ) THEN + - SUM( DISTINCT + + 75 ) * + - 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT - CASE + COUNT ( * ) WHEN COALESCE ( NULLIF ( 69, - 18 / 23 ), + + 12, - 16 ) * 97 THEN NULL WHEN - COUNT ( * ) THEN + - SUM ( DISTINCT + + 75 ) * + - 89 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-800
SELECT ALL 11 - COUNT( * ), 72 * + 64 AS col2, + 35 AS col2
----
10
4608
35

skipif mysql # not compatible
query III rowsort label-800
SELECT ALL 11 - COUNT ( * ), 72 * + 64 AS col2, + 35 AS col2
----
10
4608
35

query I rowsort
SELECT - 17 * 24 AS col1
----
-408

query I rowsort
SELECT ALL - 7 * - 9
----
63

query I rowsort
SELECT ALL 29 * + + 39
----
1131

query I rowsort
SELECT - 35 + - + 34 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-805
SELECT DISTINCT - 98 * + 99, COUNT( DISTINCT 58 ) AS col1
----
-9702
1

skipif mysql # not compatible
query II rowsort label-805
SELECT DISTINCT - 98 * + 99, COUNT ( DISTINCT 58 ) AS col1
----
-9702
1

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT COALESCE ( + + 26, NULLIF ( + + 34, + 28 ) ) * - 42 + + NULLIF ( + CASE - - 45 WHEN - COALESCE ( - - COALESCE ( 92, - + 1 ), 46 / - 60 + - - COUNT( * ) ) THEN - 2 + - 33 WHEN - + 64 * - - COUNT( - 33 ) THEN NULL ELSE 6 * + 55 * - 96 + + - 16 * + 19 + 9 - + + MIN( 70 ) * + - ( - - COUNT( * ) ) END, 56 / 9 - 65 * COUNT( ( 50 ) * + 28 ) )
----
-32997

skipif mysql # not compatible
query I rowsort label-806
SELECT COALESCE ( + + 26, NULLIF ( + + 34, + 28 ) ) * - 42 + + NULLIF ( + CASE - - 45 WHEN - COALESCE ( - - COALESCE ( 92, - + 1 ), 46 / - 60 + - - COUNT ( * ) ) THEN - 2 + - 33 WHEN - + 64 * - - COUNT ( - 33 ) THEN NULL ELSE 6 * + 55 * - 96 + + - 16 * + 19 + 9 - + + MIN ( 70 ) * + - ( - - COUNT ( * ) ) END, 56 / 9 - 65 * COUNT ( ( 50 ) * + 28 ) )
----
-32997

query I rowsort
SELECT - 57 * + 3 col0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT CAST( + 86 AS SIGNED ) col0
----
86

skipif mysql # not compatible
query I rowsort label-808
SELECT CAST ( + 86 AS INTEGER ) col0
----
86

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

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

query I rowsort
SELECT - 51 * 74
----
-3774

onlyif mysql # DIV for integer division: 
query II rowsort label-811
SELECT DISTINCT + 84 AS col0, 88 DIV - COALESCE ( + + 6, 42 * + 16 + 38 )
----
84
-14

skipif mysql # not compatible
query II rowsort label-811
SELECT DISTINCT + 84 AS col0, 88 / - COALESCE ( + + 6, 42 * + 16 + 38 )
----
84
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-812
SELECT ALL - 48 DIV + CAST( - - 3 AS SIGNED ) + - - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL - 48 / + CAST ( - - 3 AS INTEGER ) + - - COUNT ( * ) AS col1
----
-15

query II rowsort
SELECT DISTINCT + 29 col2, - 63 AS col2
----
29
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT ALL 55 DIV 1 + - 46 + 88
----
97

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL 55 / 1 + - 46 + 88
----
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT + ( 61 ) * - COUNT( * ) + 1 - + COUNT( * ) * - 39 + + COUNT( * ) - - COUNT( * ) * - 43 + + - 81
----
-144

skipif mysql # not compatible
query I rowsort label-816
SELECT + ( 61 ) * - COUNT ( * ) + 1 - + COUNT ( * ) * - 39 + + COUNT ( * ) - - COUNT ( * ) * - 43 + + - 81
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ( - MIN( ALL 13 ) ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-817
SELECT ( - MIN ( ALL 13 ) ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL 40 * - COUNT( * ) + + - 26 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL 40 * - COUNT ( * ) + + - 26 AS col2
----
-66

query II rowsort
SELECT DISTINCT 83, 17 AS col2
----
83
17

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT MAX( + + 2 ) * - 60 - - 5 + + ( ( + + 38 ) ) * - MAX( - 40 ) + - 81 - + 50 - + 88 AS col2
----
1186

skipif mysql # not compatible
query I rowsort label-820
SELECT MAX ( + + 2 ) * - 60 - - 5 + + ( ( + + 38 ) ) * - MAX ( - 40 ) + - 81 - + 50 - + 88 AS col2
----
1186

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT ALL + + ( + 96 ) + + + 44 + + 69 + - 1 * - MIN( + - 5 ) * + + 99 * + 24 * + 37 - - + MAX( ALL - CASE 85 WHEN + 16 THEN NULL WHEN ( - 79 ) THEN 1 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL + + ( + 96 ) + + + 44 + + 69 + - 1 * - MIN ( + - 5 ) * + + 99 * + 24 * + 37 - - + MAX ( ALL - CASE 85 WHEN + 16 THEN NULL WHEN ( - 79 ) THEN 1 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-822
SELECT + 0 + - - ( MAX( + 49 ) ) AS col1, - 60
----
49
-60

skipif mysql # not compatible
query II rowsort label-822
SELECT + 0 + - - ( MAX ( + 49 ) ) AS col1, - 60
----
49
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT ALL - 95 - 24 * + + COUNT( + + 58 )
----
-119

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL - 95 - 24 * + + COUNT ( + + 58 )
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT 10 * + + 27 * + COUNT( * )
----
270

skipif mysql # not compatible
query I rowsort label-824
SELECT 10 * + + 27 * + COUNT ( * )
----
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-825
SELECT DISTINCT COUNT( * ) DIV - - 94 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT COUNT ( * ) / - - 94 * COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT 13 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-826
SELECT 13 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-827
SELECT - + 56 AS col1, 5 * - 33 * - 39 AS col2, - 13 + 44 + COUNT( * ) AS col0
----
-56
6435
32

skipif mysql # not compatible
query III rowsort label-827
SELECT - + 56 AS col1, 5 * - 33 * - 39 AS col2, - 13 + 44 + COUNT ( * ) AS col0
----
-56
6435
32

query II rowsort
SELECT ALL - 0 AS col2, - 71 AS col0
----
0
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL - 46 * + 36 + - COUNT( * ) AS col2
----
-1657

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL - 46 * + 36 + - COUNT ( * ) AS col2
----
-1657

query II rowsort
SELECT 59 + - + 7 AS col0, 49
----
52
49

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT 2 DIV - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-831
SELECT 2 / - 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT ALL ( 63 ) * - NULLIF ( - 20, - NULLIF ( - 45, - COUNT( * ) ) ) * + 17 AS col1
----
21420

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL ( 63 ) * - NULLIF ( - 20, - NULLIF ( - 45, - COUNT ( * ) ) ) * + 17 AS col1
----
21420

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT CASE WHEN NOT 94 IS NOT NULL THEN + + COUNT( * ) * + + 86 * + 97 ELSE NULL END / - + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT CASE WHEN NOT 94 IS NOT NULL THEN + + COUNT ( * ) * + + 86 * + 97 ELSE NULL END / - + 19 AS col1
----
NULL

query I rowsort
SELECT 36 - + 62 - + 65 * - - 92 AS col1
----
-6006

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

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

query I rowsort
SELECT 7 * CASE 23 WHEN + 23 THEN + 27 * - + 60 ELSE NULL END AS col0
----
-11340

query II rowsort
SELECT 26 + + 85 AS col1, 77 + - + 31 AS col1
----
111
46

query I rowsort
SELECT 61 * - 17
----
-1037

query I rowsort
SELECT 32 * - 95 col1
----
-3040

query I rowsort
SELECT 35 + + 71
----
106

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

query II rowsort
SELECT ALL - 49 * - 16 AS col1, + 78 - + ( 98 ) AS col1
----
784
-20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-843
SELECT 51 DIV + CAST( - + ( + CAST( - + CAST( + 41 AS DECIMAL ) AS SIGNED ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-843
SELECT 51 / + CAST ( - + ( + CAST ( - + CAST ( + 41 AS REAL ) AS INTEGER ) ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT ALL - SUM( + 51 ) + + 94 + ( - 51 ) * + 35 AS col0
----
-1742

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL - SUM ( + 51 ) + + 94 + ( - 51 ) * + 35 AS col0
----
-1742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-845
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - ( 16 ) + 23 * - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( 16 ) + 23 * - 90 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 57 * 43, - 76 + - + 26 + + - 87 * + ( + 84 ) * + 39 col2
----
2451
-285114

query I rowsort
SELECT DISTINCT 74 + + 99 AS col1
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT 70 + 0 DIV - 76 + + + 97 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-848
SELECT 70 + 0 / - 76 + + + 97 AS col1
----
167

query II rowsort
SELECT ALL - 50 * - ( - 50 ), - 99 AS col2
----
-2500
-99

query I rowsort
SELECT 77 * + 67
----
5159

query I rowsort
SELECT 48 + + 67
----
115

query I rowsort
SELECT DISTINCT - 32 * + - 59 * + - 20
----
-37760

query I rowsort
SELECT ALL + 78 + + 60
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT MAX( ALL 4 ) * + + 3 + + ( - 74 ) - 72 * - + 69 * + 84 * 32
----
13353922

skipif mysql # not compatible
query I rowsort label-854
SELECT MAX ( ALL 4 ) * + + 3 + + ( - 74 ) - 72 * - + 69 * + 84 * 32
----
13353922

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-855
SELECT ALL COUNT( * ) DIV - 2 * - + 69 * 41
----
0

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL COUNT ( * ) / - 2 * - + 69 * 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT DISTINCT - + COUNT( * ) - + 31 * + 93
----
-2884

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT - + COUNT ( * ) - + 31 * + 93
----
-2884

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT DISTINCT 67 * + + 2 - 38 * - - COUNT( * ) * - - COUNT( ALL - 0 ) * 43 AS col2
----
-1500

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT 67 * + + 2 - 38 * - - COUNT ( * ) * - - COUNT ( ALL - 0 ) * 43 AS col2
----
-1500

query I rowsort
SELECT 5 * - 94 * + 43 * - - 92 + 31 col2
----
-1859289

query I rowsort
SELECT ALL - 99 - 9 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT - MIN( - 46 ) + + 38 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-860
SELECT - MIN ( - 46 ) + + 38 AS col2
----
84

query I rowsort
SELECT ALL 38 * - - 95 AS col2
----
3610

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT COUNT( * ) * - 53 * - 6 AS col2
----
318

skipif mysql # not compatible
query I rowsort label-862
SELECT COUNT ( * ) * - 53 * - 6 AS col2
----
318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-863
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-864
SELECT CAST( NULL AS SIGNED ) * 80 + + NULLIF ( + + 86, + COUNT( ALL - ( ( - + ( 51 ) ) ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-864
SELECT CAST ( NULL AS INTEGER ) * 80 + + NULLIF ( + + 86, + COUNT ( ALL - ( ( - + ( 51 ) ) ) ) ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-865
SELECT ALL - + 45 DIV + 83 * + + 4 + + - COUNT( * ) + + 89 + 51 + + - 50 - + + ( + 43 ) + 5 * COUNT( * ) DIV + 78 * SUM( DISTINCT - 95 )
----
46

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL - + 45 / + 83 * + + 4 + + - COUNT ( * ) + + 89 + 51 + + - 50 - + + ( + 43 ) + 5 * COUNT ( * ) / + 78 * SUM ( DISTINCT - 95 )
----
46

query I rowsort
SELECT 84 * - ( 91 ) AS col2
----
-7644

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

skipif mysql # not compatible
query I rowsort label-867
SELECT 27 * - COUNT ( * )
----
-27

query I rowsort
SELECT + 84 + 14
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-869
SELECT COALESCE ( - - 40, 24 * 33 * ( COUNT( * ) ) + - COUNT( * ) + - 51 + + + 28 * + 14 * 9 + + CAST( NULL AS SIGNED ) * - 18 * + - 62 + + 97 ) + - COALESCE ( 77, + ( - 9 ) ) - 55 * + 29 * 99 AS col0
----
-157942

skipif mysql # not compatible
query I rowsort label-869
SELECT COALESCE ( - - 40, 24 * 33 * ( COUNT ( * ) ) + - COUNT ( * ) + - 51 + + + 28 * + 14 * 9 + + CAST ( NULL AS INTEGER ) * - 18 * + - 62 + + 97 ) + - COALESCE ( 77, + ( - 9 ) ) - 55 * + 29 * 99 AS col0
----
-157942

query II rowsort
SELECT ALL 10, - 41 * - 84 col2
----
10
3444

query I rowsort
SELECT 42 * - - 66 AS col1
----
2772

query I rowsort
SELECT ALL 57 + - 46
----
11

query I rowsort
SELECT ALL + 18 * - - 97 AS col2
----
1746

query I rowsort
SELECT DISTINCT ( + - 88 ) + - 64 AS col1
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT ALL - 45 + - MAX( - ( 72 ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL - 45 + - MAX ( - ( 72 ) ) AS col1
----
27

query I rowsort
SELECT 67 + CASE 25 WHEN - 26 THEN 10 * - 76 - - - 91 ELSE NULL END col0
----
NULL

query I rowsort
SELECT 70 * + + 77
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT + MIN( DISTINCT - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-878
SELECT + MIN ( DISTINCT - 20 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-879
SELECT + COALESCE ( + 12, - 27 + - 95 ) * + - CAST( + + 10 AS SIGNED ) + - COUNT( * ) DIV + - 87 * 24 AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-879
SELECT + COALESCE ( + 12, - 27 + - 95 ) * + - CAST ( + + 10 AS INTEGER ) + - COUNT ( * ) / + - 87 * 24 AS col1
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-880
SELECT CASE + + 99 WHEN - 10 - - ( + MIN( DISTINCT 25 ) ) * - + CASE 62 WHEN + CASE - - 83 WHEN + + 60 THEN NULL ELSE CAST( NULL AS SIGNED ) + 1 * + 16 + ( + COALESCE ( + 43, + + SUM( DISTINCT 71 ) * + 95 + - 38 ) ) + + - 88 / + 38 END * - 8 THEN 69 ELSE NULL END * 74 THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-880
SELECT CASE + + 99 WHEN - 10 - - ( + MIN ( DISTINCT 25 ) ) * - + CASE 62 WHEN + CASE - - 83 WHEN + + 60 THEN NULL ELSE CAST ( NULL AS INTEGER ) + 1 * + 16 + ( + COALESCE ( + 43, + + SUM ( DISTINCT 71 ) * + 95 + - 38 ) ) + + - 88 / + 38 END * - 8 THEN 69 ELSE NULL END * 74 THEN NULL ELSE - COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL COUNT( * ) * + 57 + 34 + 55 + + ( + 78 )
----
224

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL COUNT ( * ) * + 57 + 34 + 55 + + ( + 78 )
----
224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-882
SELECT COALESCE ( + 37, CAST( NULL AS SIGNED ) ) AS col1, 80 * - 56
----
37
-4480

skipif mysql # not compatible
query II rowsort label-882
SELECT COALESCE ( + 37, CAST ( NULL AS INTEGER ) ) AS col1, 80 * - 56
----
37
-4480

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

skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT 21 * 93 + - ( + COUNT ( * ) ) * + 47 + + - 48
----
1858

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-884
SELECT DISTINCT CASE + 12 WHEN + 59 THEN NULL WHEN - NULLIF ( + 24, + - 22 ) THEN - 42 + 8 + + 95 END * - + 84 + + 7 + 42 * 86 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT CASE + 12 WHEN + 59 THEN NULL WHEN - NULLIF ( + 24, + - 22 ) THEN - 42 + 8 + + 95 END * - + 84 + + 7 + 42 * 86 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-885
SELECT DISTINCT + COUNT( * ) AS col1, - CAST( + - 94 AS SIGNED ) * + 88 AS col2
----
1
8272

skipif mysql # not compatible
query II rowsort label-885
SELECT DISTINCT + COUNT ( * ) AS col1, - CAST ( + - 94 AS INTEGER ) * + 88 AS col2
----
1
8272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-886
SELECT ALL + CAST( + 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL + CAST ( + 83 AS INTEGER )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT - 72 * - ( + 35 ) * + - COUNT( * ) + - 28
----
-2548

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT - 72 * - ( + 35 ) * + - COUNT ( * ) + - 28
----
-2548

query I rowsort
SELECT ALL + - 73 * + 74 col2
----
-5402

query I rowsort
SELECT DISTINCT + + 85 * - - 85 - 81 AS col2
----
7144

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT - 82 * + COUNT( * ) * + 90 + + + 43 AS col2
----
-7337

skipif mysql # not compatible
query I rowsort label-890
SELECT - 82 * + COUNT ( * ) * + 90 + + + 43 AS col2
----
-7337

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - ( 41 ) * - COUNT( * ) * + 52 * 9 + - 69 col2
----
19119

skipif mysql # not compatible
query I rowsort label-891
SELECT - ( 41 ) * - COUNT ( * ) * + 52 * 9 + - 69 col2
----
19119

query I rowsort
SELECT ALL + 79 * + 98 * - + 20 AS col0
----
-154840

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT - 20 * - 96 * + COUNT( + + 59 ) * + + COALESCE ( 39, + 49, 27 * + 15 + - + 10 ) - - 30 - 69 - + 13 * + 73 AS col0
----
73892

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT - 20 * - 96 * + COUNT ( + + 59 ) * + + COALESCE ( 39, + 49, 27 * + 15 + - + 10 ) - - 30 - 69 - + 13 * + 73 AS col0
----
73892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-894
SELECT ALL + CAST( + MIN( ALL - 25 ) AS SIGNED ), 26 * 19 AS col0
----
-25
494

skipif mysql # not compatible
query II rowsort label-894
SELECT ALL + CAST ( + MIN ( ALL - 25 ) AS INTEGER ), 26 * 19 AS col0
----
-25
494

query II rowsort
SELECT DISTINCT + 70 AS col1, - 77 + 2
----
70
-75

query I rowsort
SELECT - CASE - 91 WHEN - 55 * + + 81 THEN - 47 / 73 + + 36 WHEN + + 38 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + + 18, - - 89 + 12 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-898
SELECT ALL 9 AS col2, COUNT( * ) * - + 42 * - COUNT( * ) * - 50 AS col2
----
9
-2100

skipif mysql # not compatible
query II rowsort label-898
SELECT ALL 9 AS col2, COUNT ( * ) * - + 42 * - COUNT ( * ) * - 50 AS col2
----
9
-2100

query I rowsort
SELECT ALL 85 * - + 96 AS col1
----
-8160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-900
SELECT CAST( NULL AS SIGNED ) col2, + 81 AS col1
----
NULL
81

skipif mysql # not compatible
query II rowsort label-900
SELECT CAST ( NULL AS INTEGER ) col2, + 81 AS col1
----
NULL
81

query II rowsort
SELECT 44 AS col1, - 82 * + 31 * + 50 - - 32
----
44
-127068

query I rowsort
SELECT - ( + 23 ) + - + 65
----
-88

query II rowsort
SELECT - - 98, 33 AS col1
----
98
33

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ALL - SUM( DISTINCT - + ( ( + 47 ) ) ) + - - ( + + 76 )
----
123

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL - SUM ( DISTINCT - + ( ( + 47 ) ) ) + - - ( + + 76 )
----
123

query I rowsort
SELECT ALL 51 + 22 + - 79
----
-6

query I rowsort
SELECT - CASE + - 73 WHEN + + 31 * 52 THEN + 95 + + - 30 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-907
SELECT ALL 46 * COUNT( * ) * 19 * + ( - ( - - 44 ) ) * - 67 AS col1, - 2 * 20 AS col1
----
2576552
-40

skipif mysql # not compatible
query II rowsort label-907
SELECT ALL 46 * COUNT ( * ) * 19 * + ( - ( - - 44 ) ) * - 67 AS col1, - 2 * 20 AS col1
----
2576552
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-908
SELECT DISTINCT 5 + + CAST( - 35 AS SIGNED ) * + + 13 + 53, 84 + - + 81 col1
----
-397
3

skipif mysql # not compatible
query II rowsort label-908
SELECT DISTINCT 5 + + CAST ( - 35 AS INTEGER ) * + + 13 + 53, 84 + - + 81 col1
----
-397
3

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

skipif mysql # not compatible
query I rowsort label-909
SELECT + 11 + COUNT ( * ) * 28 / - 79 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-910
SELECT ALL - 22 + + COUNT( * ) DIV 83 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL - 22 + + COUNT ( * ) / 83 AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-911
SELECT ALL 98 + CASE - COUNT( * ) WHEN - SUM( CAST( NULL AS DECIMAL ) ) THEN - 30 ELSE 88 END AS col1
----
186

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL 98 + CASE - COUNT ( * ) WHEN - SUM ( CAST ( NULL AS REAL ) ) THEN - 30 ELSE 88 END AS col1
----
186

query I rowsort
SELECT + 80 + + 3 + 99
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT + COUNT( - 54 ) * - 69 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-913
SELECT + COUNT ( - 54 ) * - 69 AS col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT ALL 80 DIV 3 * + 89
----
2314

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL 80 / 3 * + 89
----
2314

query I rowsort
SELECT + 45 + 28
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT + COALESCE ( - 45, - + CAST( + + 68 AS SIGNED ) * - - CAST( - - 96 AS SIGNED ) )
----
-45

skipif mysql # not compatible
query I rowsort label-916
SELECT + COALESCE ( - 45, - + CAST ( + + 68 AS INTEGER ) * - - CAST ( - - 96 AS INTEGER ) )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-917
SELECT ALL 44 DIV 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL 44 / 83 AS col1
----
0

query II rowsort
SELECT + ( + - 72 ) AS col1, 28 * + 98 AS col2
----
-72
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT MIN( DISTINCT - 21 ) * - 21 - + 32
----
409

skipif mysql # not compatible
query I rowsort label-919
SELECT MIN ( DISTINCT - 21 ) * - 21 - + 32
----
409

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ALL COUNT( + 25 ) * + 9 + - SUM( ALL - - CASE - - 26 WHEN - + 13 * 76 THEN 4 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL COUNT ( + 25 ) * + 9 + - SUM ( ALL - - CASE - - 26 WHEN - + 13 * 76 THEN 4 END )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-923
SELECT + - CASE COUNT( * ) WHEN 24 * + NULLIF ( - + 90, COUNT( * ) - - + MAX( DISTINCT + 17 ) * + + 56 + - - 50 + - 27 - + 48 * COUNT( * ) * 85 + - 30 + + 57 - - - COUNT( * ) * - COUNT( * ) * - NULLIF ( - 73, + 66 ) + + 28 ) * - 7 + - 27 + - 72 THEN - 51 ELSE NULL END + + 80, ( - ( - 41 ) ) AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-923
SELECT + - CASE COUNT ( * ) WHEN 24 * + NULLIF ( - + 90, COUNT ( * ) - - + MAX ( DISTINCT + 17 ) * + + 56 + - - 50 + - 27 - + 48 * COUNT ( * ) * 85 + - 30 + + 57 - - - COUNT ( * ) * - COUNT ( * ) * - NULLIF ( - 73, + 66 ) + + 28 ) * - 7 + - 27 + - 72 THEN - 51 ELSE NULL END + + 80, ( - ( - 41 ) ) AS col1
----
NULL
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-924
SELECT CASE COUNT( DISTINCT + 92 ) WHEN + ( - 44 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + 67 ELSE - - 55 + + 84 END AS col0, 93
----
139
93

skipif mysql # not compatible
query II rowsort label-924
SELECT CASE COUNT ( DISTINCT + 92 ) WHEN + ( - 44 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + 67 ELSE - - 55 + + 84 END AS col0, 93
----
139
93

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT - + MAX( ALL - 31 ) - + + MIN( DISTINCT 73 ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-925
SELECT - + MAX ( ALL - 31 ) - + + MIN ( DISTINCT 73 ) col0
----
-42

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-927
SELECT - 37 * - + 53 - + COUNT( * ) + + 88 + - - 46 DIV 87
----
2048

skipif mysql # not compatible
query I rowsort label-927
SELECT - 37 * - + 53 - + COUNT ( * ) + + 88 + - - 46 / 87
----
2048

query I rowsort
SELECT - + 53 + + 63 + - 82 AS col2
----
-72

query I rowsort
SELECT - 16 * + 78 * - 87
----
108576

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-930
SELECT - COALESCE ( ( 37 ), 62 * SUM( ALL - 45 ) * - COUNT( * ), + 37 + - 39 + + - NULLIF ( - - ( 84 ), MIN( ALL - - CAST( NULL AS DECIMAL ) ) - - 43 ) * + + 9 ) + - 62 - + - 15 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-930
SELECT - COALESCE ( ( 37 ), 62 * SUM ( ALL - 45 ) * - COUNT ( * ), + 37 + - 39 + + - NULLIF ( - - ( 84 ), MIN ( ALL - - CAST ( NULL AS REAL ) ) - - 43 ) * + + 9 ) + - 62 - + - 15 AS col0
----
-84

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-932
SELECT + 83 * 36 * CASE 41 WHEN + 78 + - + 27 THEN NULL WHEN + CASE + 46 WHEN + 19 THEN + - CAST( NULL AS SIGNED ) * - 67 - COALESCE ( + - COUNT( * ), + 85, + 62 ) ELSE NULL END THEN NULL WHEN + 73 THEN - COUNT( * ) ELSE - 79 END - + 73 * ( - 91 ) * - + CAST( NULL AS SIGNED ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT + 83 * 36 * CASE 41 WHEN + 78 + - + 27 THEN NULL WHEN + CASE + 46 WHEN + 19 THEN + - CAST ( NULL AS INTEGER ) * - 67 - COALESCE ( + - COUNT ( * ), + 85, + 62 ) ELSE NULL END THEN NULL WHEN + 73 THEN - COUNT ( * ) ELSE - 79 END - + 73 * ( - 91 ) * - + CAST ( NULL AS INTEGER ) * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT - + COUNT( * ) + COUNT( ALL - COALESCE ( + - 99, 22 + - + NULLIF ( + - ( - 55 ), + 33 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-933
SELECT - + COUNT ( * ) + COUNT ( ALL - COALESCE ( + - 99, 22 + - + NULLIF ( + - ( - 55 ), + 33 ) ) )
----
0

query I rowsort
SELECT ALL + 79 * + 50 + - 34
----
3916

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-935
SELECT ALL + 72 * COUNT( DISTINCT + 30 ) DIV + - NULLIF ( 67, + + 96 ) + + 8
----
7

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL + 72 * COUNT ( DISTINCT + 30 ) / + - NULLIF ( 67, + + 96 ) + + 8
----
7

query I rowsort
SELECT - + 51 * - 16
----
816

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-938
SELECT DISTINCT 52 * 92 + - 40 AS col0, 77 + + - COUNT( * ) + + 92 col0
----
4744
168

skipif mysql # not compatible
query II rowsort label-938
SELECT DISTINCT 52 * 92 + - 40 AS col0, 77 + + - COUNT ( * ) + + 92 col0
----
4744
168

query I rowsort
SELECT - 5 * - - 58 * 45
----
-13050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-940
SELECT DISTINCT CAST( + 11 AS SIGNED ) col0
----
11

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT CAST ( + 11 AS INTEGER ) col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-941
SELECT DISTINCT + 45 + 59 + - 40 + CAST( NULL AS SIGNED ) * CASE 57 WHEN 17 - + 99 THEN + + 37 ELSE + 26 END, 81 AS col0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-941
SELECT DISTINCT + 45 + 59 + - 40 + CAST ( NULL AS INTEGER ) * CASE 57 WHEN 17 - + 99 THEN + + 37 ELSE + 26 END, 81 AS col0
----
NULL
81

query I rowsort
SELECT ALL - 91 + - 68
----
-159

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

query I rowsort
SELECT 61 - 14 * 69 * + 31 AS col1
----
-29885

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT SUM( ALL - NULLIF ( + + 79, - - 85 ) ) + - COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-945
SELECT SUM ( ALL - NULLIF ( + + 79, - - 85 ) ) + - COUNT ( * ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-946
SELECT - 30 AS col0, + MAX( - 55 ) col0
----
-30
-55

skipif mysql # not compatible
query II rowsort label-946
SELECT - 30 AS col0, + MAX ( - 55 ) col0
----
-30
-55

query I rowsort
SELECT ALL + 28 - 20
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-948
SELECT CASE + 11 WHEN - 45 THEN NULL WHEN ( 83 ) * - ( + + 52 ) + - CAST( NULL AS SIGNED ) - + 45 + - 90 * - COUNT( * ) THEN NULL ELSE + 10 + - 25 * + 9 END * + + 61 + - 21
----
-13136

skipif mysql # not compatible
query I rowsort label-948
SELECT CASE + 11 WHEN - 45 THEN NULL WHEN ( 83 ) * - ( + + 52 ) + - CAST ( NULL AS INTEGER ) - + 45 + - 90 * - COUNT ( * ) THEN NULL ELSE + 10 + - 25 * + 9 END * + + 61 + - 21
----
-13136

query I rowsort
SELECT ALL 85 - - 73
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-950
SELECT 66, ( - 55 ) + + + COUNT( * ) - + + COUNT( * ) AS col1
----
66
-55

skipif mysql # not compatible
query II rowsort label-950
SELECT 66, ( - 55 ) + + + COUNT ( * ) - + + COUNT ( * ) AS col1
----
66
-55

query II rowsort
SELECT ALL 40, 94 AS col1
----
40
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-952
SELECT COUNT( * ) + - CAST( - CASE + + 42 WHEN COALESCE ( + 5, + 97 ) THEN ( - 76 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-952
SELECT COUNT ( * ) + - CAST ( - CASE + + 42 WHEN COALESCE ( + 5, + 97 ) THEN ( - 76 ) END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-953
SELECT ( COALESCE ( - - 80, + COUNT( * ) + - 54 * - - ( + - 55 ) ) ) DIV 24, CAST( + 91 AS SIGNED ) AS col1
----
3
91

skipif mysql # not compatible
query II rowsort label-953
SELECT ( COALESCE ( - - 80, + COUNT ( * ) + - 54 * - - ( + - 55 ) ) ) / 24, CAST ( + 91 AS INTEGER ) AS col1
----
3
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-954
SELECT CASE 64 WHEN - 34 * - - ( + COALESCE ( - 45, + COALESCE ( - + 57, 54 ), 63 ) ) + + COUNT( * ) + + ( + - 18 ) THEN - + 95 WHEN CAST( NULL AS SIGNED ) THEN COUNT( * ) ELSE MIN( + 40 ) + - 93 END * + 21 + 87
----
-1026

skipif mysql # not compatible
query I rowsort label-954
SELECT CASE 64 WHEN - 34 * - - ( + COALESCE ( - 45, + COALESCE ( - + 57, 54 ), 63 ) ) + + COUNT ( * ) + + ( + - 18 ) THEN - + 95 WHEN CAST ( NULL AS INTEGER ) THEN COUNT ( * ) ELSE MIN ( + 40 ) + - 93 END * + 21 + 87
----
-1026

query I rowsort
SELECT - - 12 * + + 21 + + 32 AS col2
----
284

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

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT + 25 AS col2, + 83 * + ( - 28 ) * - + 31 * - CASE + - COALESCE ( + ( + 68 ), + + 43 ) WHEN 12 THEN - 3 * 94 * + COUNT( * ) * - 11 ELSE NULL END + - 77 AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-957
SELECT + 25 AS col2, + 83 * + ( - 28 ) * - + 31 * - CASE + - COALESCE ( + ( + 68 ), + + 43 ) WHEN 12 THEN - 3 * 94 * + COUNT ( * ) * - 11 ELSE NULL END + - 77 AS col1
----
25
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT + 34 / - 78 - - + CAST( NULL AS SIGNED ) - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT + 34 / - 78 - - + CAST ( NULL AS INTEGER ) - + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-959
SELECT 33 * + - SUM( CAST( NULL AS SIGNED ) ) AS col2, 60 * - 42 AS col2
----
NULL
-2520

skipif mysql # not compatible
query II rowsort label-959
SELECT 33 * + - SUM ( CAST ( NULL AS INTEGER ) ) AS col2, 60 * - 42 AS col2
----
NULL
-2520

query I rowsort
SELECT ALL - - ( 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT ALL COUNT( * ) * - - 17
----
17

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL COUNT ( * ) * - - 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ALL - - COUNT( * ) + - + 47 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL - - COUNT ( * ) + - + 47 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT + 37 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-963
SELECT + 37 / 97 AS col0
----
0

query I rowsort
SELECT ALL - 35 + 18 col0
----
-17

query I rowsort
SELECT + ( + - 30 ) * + + 85 AS col2
----
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL - MIN( + 13 ) + + + COUNT( * ) + + 30 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL - MIN ( + 13 ) + + + COUNT ( * ) + + 30 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT ALL SUM( + + 69 ) + - 86 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL SUM ( + + 69 ) + - 86 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT - ( + MIN( - - 31 ) ) * - + 75 AS col0
----
2325

skipif mysql # not compatible
query I rowsort label-968
SELECT - ( + MIN ( - - 31 ) ) * - + 75 AS col0
----
2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-969
SELECT ALL + MAX( + 23 ) + - + CAST( 70 AS SIGNED ) * - 96 col0
----
6743

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL + MAX ( + 23 ) + - + CAST ( 70 AS INTEGER ) * - 96 col0
----
6743

query II rowsort
SELECT 6, - 3 AS col1
----
6
-3

query I rowsort
SELECT ALL + 59 + 58 AS col0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT ALL 69 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL 69 / + 78
----
0

query I rowsort
SELECT DISTINCT + 77 + 61 AS col2
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-974
SELECT 42 * + COUNT( * ) DIV COALESCE ( + 64, - COUNT( * ), + NULLIF ( 23, 46 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-974
SELECT 42 * + COUNT ( * ) / COALESCE ( + 64, - COUNT ( * ), + NULLIF ( 23, 46 ) ) col1
----
0

query II rowsort
SELECT 25, COALESCE ( + 90, + 72 + 57 ) col1
----
25
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-976
SELECT - 60 col2, - 47 * 57 + - 13 + COUNT( * ) DIV - CAST( 33 AS SIGNED ) + SUM( ALL 60 ) * - MIN( DISTINCT 32 ) AS col0
----
-60
-4612

skipif mysql # not compatible
query II rowsort label-976
SELECT - 60 col2, - 47 * 57 + - 13 + COUNT ( * ) / - CAST ( 33 AS INTEGER ) + SUM ( ALL 60 ) * - MIN ( DISTINCT 32 ) AS col0
----
-60
-4612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-977
SELECT ALL + 59 - + COUNT( * ) - - 95 + 66 DIV - 81
----
153

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL + 59 - + COUNT ( * ) - - 95 + 66 / - 81
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-978
SELECT DISTINCT 68 * 29 * - 22 * - MAX( + ( 73 ) ) AS col1, 86 AS col1
----
3167032
86

skipif mysql # not compatible
query II rowsort label-978
SELECT DISTINCT 68 * 29 * - 22 * - MAX ( + ( 73 ) ) AS col1, 86 AS col1
----
3167032
86

onlyif mysql # aggregate syntax: 
query II rowsort label-979
SELECT DISTINCT 24, + COALESCE ( - MIN( + + 11 ), - 14 + - - 50, - MIN( 62 ) ) AS col1
----
24
-11

skipif mysql # not compatible
query II rowsort label-979
SELECT DISTINCT 24, + COALESCE ( - MIN ( + + 11 ), - 14 + - - 50, - MIN ( 62 ) ) AS col1
----
24
-11

query I rowsort
SELECT ALL - 60 - + - 56 AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-981
SELECT DISTINCT - 69 DIV COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT - 69 / COUNT ( * ) AS col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT 5 + + 58 + + MAX( 64 ) - SUM( 78 ) * + CAST( NULL AS SIGNED ) * MAX( DISTINCT ( - + 59 ) ) * + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-982
SELECT 5 + + 58 + + MAX ( 64 ) - SUM ( 78 ) * + CAST ( NULL AS INTEGER ) * MAX ( DISTINCT ( - + 59 ) ) * + + 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT 76 DIV - + 8
----
-9

skipif mysql # not compatible
query I rowsort label-983
SELECT 76 / - + 8
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT 11 * + COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-984
SELECT 11 * + COUNT ( * ) AS col0
----
11

query I rowsort
SELECT 85 * + + 11 AS col0
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT COALESCE ( + - COUNT( * ), - 52 ) * - - ( 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-986
SELECT COALESCE ( + - COUNT ( * ), - 52 ) * - - ( 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT - COALESCE ( - + 77, COUNT( * ), + 92 ) + 96
----
173

skipif mysql # not compatible
query I rowsort label-987
SELECT - COALESCE ( - + 77, COUNT ( * ), + 92 ) + 96
----
173

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

skipif mysql # not compatible
query II rowsort label-988
SELECT - COUNT ( * ), 70 AS col2
----
-1
70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-990
SELECT ALL 86 * + - 47 / - 17 + COUNT( * ) + 43 - + 95 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL 86 * + - 47 / - 17 + COUNT ( * ) + 43 - + 95 * + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-991
SELECT MIN ( DISTINCT - - 82 )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-992
SELECT 7 AS col2, 6 DIV + + COUNT( * ) + + COUNT( * ) AS col2
----
7
7

skipif mysql # not compatible
query II rowsort label-992
SELECT 7 AS col2, 6 / + + COUNT ( * ) + + COUNT ( * ) AS col2
----
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT - 60 + + COUNT( * ) * - 5 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-993
SELECT - 60 + + COUNT ( * ) * - 5 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT COUNT( - + 52 ) * + 94 + - - 63 AS col2
----
157

skipif mysql # not compatible
query I rowsort label-994
SELECT COUNT ( - + 52 ) * + 94 + - - 63 AS col2
----
157

query II rowsort
SELECT + COALESCE ( 42, - 92 ) - 16 AS col0, 64
----
26
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT - + 99 DIV 4 + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-996
SELECT - + 99 / 4 + COUNT ( * )
----
-23

query I rowsort
SELECT ALL + 4 + + - 45 * 1
----
-41

query II rowsort
SELECT DISTINCT - 55 AS col0, ( - 58 ) AS col0
----
-55
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT + 1 + - + ( + COALESCE ( + 1, - 82 * + + COUNT( * ) + - 69, + 28 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-999
SELECT + 1 + - + ( + COALESCE ( + 1, - 82 * + + COUNT ( * ) + - 69, + 28 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1000
SELECT DISTINCT 80 DIV + NULLIF ( - - MIN( DISTINCT + 30 ), 58 ) + 67
----
69

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT 80 / + NULLIF ( - - MIN ( DISTINCT + 30 ), 58 ) + 67
----
69

query I rowsort
SELECT DISTINCT - NULLIF ( 65, + 50 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT ALL 87 - - ( - + COUNT( * ) ) col0
----
86

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL 87 - - ( - + COUNT ( * ) ) col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1003
SELECT CASE - COUNT( * ) WHEN - 54 * ( - 92 ) + + 12 + - + 58 / + 31 THEN + 33 END * - 98 AS col2, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1003
SELECT CASE - COUNT ( * ) WHEN - 54 * ( - 92 ) + + 12 + - + 58 / + 31 THEN + 33 END * - 98 AS col2, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT - NULLIF ( 68, - - 28 + - COUNT( DISTINCT - 54 ) ) + ( - 8 ) + + 74
----
-2

skipif mysql # not compatible
query I rowsort label-1004
SELECT - NULLIF ( 68, - - 28 + - COUNT ( DISTINCT - 54 ) ) + ( - 8 ) + + 74
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT - SUM( - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-1005
SELECT - SUM ( - 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT - SUM( ALL - 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-1006
SELECT - SUM ( ALL - 33 ) AS col2
----
33

query I rowsort
SELECT ALL 27 - - - 67
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + 39 * + ( MAX( DISTINCT - ( + 17 ) ) ) AS col2
----
-663

skipif mysql # not compatible
query I rowsort label-1008
SELECT + 39 * + ( MAX ( DISTINCT - ( + 17 ) ) ) AS col2
----
-663

onlyif mysql # aggregate syntax: 
query II rowsort label-1009
SELECT ALL MIN( 14 ), 26 AS col2
----
14
26

skipif mysql # not compatible
query II rowsort label-1009
SELECT ALL MIN ( 14 ), 26 AS col2
----
14
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT DISTINCT - MIN( 5 ) * - SUM( - 7 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT - MIN ( 5 ) * - SUM ( - 7 ) AS col1
----
-35

query I rowsort
SELECT ALL - 56 * 81 * - - 68
----
-308448

query I rowsort
SELECT - 9 + 35 AS col1
----
26

query II rowsort
SELECT DISTINCT 15 * - + 65 col2, 6 AS col1
----
-975
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT ALL - MIN( 50 ) * - CASE - ( - 93 ) WHEN - + 72 THEN NULL WHEN 32 THEN + COUNT( * ) ELSE NULL END + + 53 * - 54 + + 25 / - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL - MIN ( 50 ) * - CASE - ( - 93 ) WHEN - + 72 THEN NULL WHEN 32 THEN + COUNT ( * ) ELSE NULL END + + 53 * - 54 + + 25 / - 91
----
NULL

query I rowsort
SELECT - 47 * + + 35 * - 79 * + 96
----
12475680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1017
SELECT ALL - 51 * + + COUNT( * ) DIV - - 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL - 51 * + + COUNT ( * ) / - - 82 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1018
SELECT - - 40 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-1018
SELECT - - 40 / - 42
----
0

query I rowsort
SELECT ALL + COALESCE ( - + 17, 98 )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1020
SELECT DISTINCT + - 97 / + - CAST( NULL AS SIGNED ) * + 77 AS col2, - 59
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-1020
SELECT DISTINCT + - 97 / + - CAST ( NULL AS INTEGER ) * + 77 AS col2, - 59
----
NULL
-59

query I rowsort
SELECT DISTINCT + 2 + 61 + + - 53 - + - 99 * - - 31
----
3079

onlyif mysql # DIV for integer division: 
query I rowsort label-1022
SELECT + ( 32 ) DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-1022
SELECT + ( 32 ) / + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL - + 73 * - COUNT( * ) * 24 + 68 col0
----
1820

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL - + 73 * - COUNT ( * ) * 24 + 68 col0
----
1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1024
SELECT - NULLIF ( 10, MAX( - - 68 ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1024
SELECT - NULLIF ( 10, MAX ( - - 68 ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1025
SELECT COUNT( - 40 ) AS col2, NULLIF ( - 75, + 55 ) - 93 col0
----
1
-168

skipif mysql # not compatible
query II rowsort label-1025
SELECT COUNT ( - 40 ) AS col2, NULLIF ( - 75, + 55 ) - 93 col0
----
1
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1026
SELECT + - 95 DIV - - COUNT( * ) + ( + 92 ) + - 18 + 66 * - 73 AS col0, 72 * - + 53 col2
----
-4839
-3816

skipif mysql # not compatible
query II rowsort label-1026
SELECT + - 95 / - - COUNT ( * ) + ( + 92 ) + - 18 + 66 * - 73 AS col0, 72 * - + 53 col2
----
-4839
-3816

query I rowsort
SELECT ALL - 31 * 44 - + - 78 + - 32
----
-1318

query I rowsort
SELECT DISTINCT - - 25 * + 79 AS col2
----
1975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1029
SELECT ALL - COUNT( * ) * COUNT( * ) * - CASE COUNT( * ) WHEN + - 36 * 5 - + 29 THEN NULL ELSE + 42 * + 53 END + + COALESCE ( - CASE ( 66 ) WHEN 62 + - + 67 * + 17 * - 86 * - COALESCE ( - 80, 41 ) THEN - - 21 WHEN 34 + - 76 THEN NULL WHEN + 84 / - 98 - - 74 THEN + 3 WHEN + MIN( DISTINCT + - 16 ) THEN + 24 ELSE NULL END, 7 ) + 55 / 69 - + CASE + 97 WHEN 90 * - - COUNT( * ) THEN NULL WHEN COUNT( * ) + + 33 THEN NULL WHEN 54 + ( + COUNT( * ) + AVG ( - 49 ) ) THEN NULLIF ( 4, 86 ) END * + CAST( 54 - + 38 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL - COUNT ( * ) * COUNT ( * ) * - CASE COUNT ( * ) WHEN + - 36 * 5 - + 29 THEN NULL ELSE + 42 * + 53 END + + COALESCE ( - CASE ( 66 ) WHEN 62 + - + 67 * + 17 * - 86 * - COALESCE ( - 80, 41 ) THEN - - 21 WHEN 34 + - 76 THEN NULL WHEN + 84 / - 98 - - 74 THEN + 3 WHEN + MIN ( DISTINCT + - 16 ) THEN + 24 ELSE NULL END, 7 ) + 55 / 69 - + CASE + 97 WHEN 90 * - - COUNT ( * ) THEN NULL WHEN COUNT ( * ) + + 33 THEN NULL WHEN 54 + ( + COUNT ( * ) + AVG ( - 49 ) ) THEN NULLIF ( 4, 86 ) END * + CAST ( 54 - + 38 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( - NULLIF ( 79, + 40 ) )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT DISTINCT + - 90 * 28 - - CAST( NULL AS SIGNED ) * ( - - ( + - 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT + - 90 * 28 - - CAST ( NULL AS INTEGER ) * ( - - ( + - 65 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1032
SELECT DISTINCT + NULLIF ( + MIN( ALL + - 49 ), - NULLIF ( 17, - CAST( - 29 AS SIGNED ) ) )
----
-49

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT + NULLIF ( + MIN ( ALL + - 49 ), - NULLIF ( 17, - CAST ( - 29 AS INTEGER ) ) )
----
-49

query II rowsort
SELECT + 46, 14 AS col2
----
46
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT + COALESCE ( - ( + ( - ( - CASE COUNT( * ) WHEN + - 53 + - + 95 THEN NULL WHEN + 28 THEN - CAST( NULL AS SIGNED ) END ) ) ), - + 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1034
SELECT + COALESCE ( - ( + ( - ( - CASE COUNT ( * ) WHEN + - 53 + - + 95 THEN NULL WHEN + 28 THEN - CAST ( NULL AS INTEGER ) END ) ) ), - + 15 ) AS col2
----
-15

query I rowsort
SELECT + COALESCE ( - 54, + 37 )
----
-54

query I rowsort
SELECT - 46 - - - 35 * - 30
----
1004

query II rowsort
SELECT ALL 34 * + - COALESCE ( - + 3, - 2 ) AS col1, 39 col2
----
102
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT + NULLIF ( - - 15, - 65 ) * + - 88 * + - COUNT( * ) * + + 35 + + 83 AS col1
----
46283

skipif mysql # not compatible
query I rowsort label-1038
SELECT + NULLIF ( - - 15, - 65 ) * + - 88 * + - COUNT ( * ) * + + 35 + + 83 AS col1
----
46283

query I rowsort
SELECT + 16 * - - 50
----
800

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1040
SELECT DISTINCT 27 * - + 49 * 81 col2, 27 * - NULLIF ( 56, + - 99 ) * + CAST( NULL AS DECIMAL )
----
-107163
NULL

skipif mysql # not compatible
query II rowsort label-1040
SELECT DISTINCT 27 * - + 49 * 81 col2, 27 * - NULLIF ( 56, + - 99 ) * + CAST ( NULL AS REAL )
----
-107163
NULL

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

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

query I rowsort
SELECT + 68 - - - 76
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1043
SELECT ALL 74 * - + CAST( 18 AS SIGNED ) AS col1, - CASE + + 26 WHEN + CAST( 5 AS SIGNED ) * + 59 + - 56 + - 63 - + - 74 * + 2 * + 14 + 38 THEN + - 34 ELSE NULL END * - COUNT( * ) AS col0, 17 AS col0
----
-1332
NULL
17

skipif mysql # not compatible
query III rowsort label-1043
SELECT ALL 74 * - + CAST ( 18 AS INTEGER ) AS col1, - CASE + + 26 WHEN + CAST ( 5 AS INTEGER ) * + 59 + - 56 + - 63 - + - 74 * + 2 * + 14 + 38 THEN + - 34 ELSE NULL END * - COUNT ( * ) AS col0, 17 AS col0
----
-1332
NULL
17

query I rowsort
SELECT + 86 * + 37 * + 16 AS col0
----
50912

query I rowsort
SELECT + 44 * - 33
----
-1452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1046
SELECT - CASE + 39 WHEN - COALESCE ( - 56, + 76 ) THEN 59 * - COUNT( * ) + 17 + - 79 WHEN 50 / - CASE - 8 WHEN + - 88 THEN COUNT( * ) END THEN NULL WHEN + - 82 THEN + - 38 * - - CAST( COALESCE ( SUM( + + 2 ), - 87 + 70 ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1046
SELECT - CASE + 39 WHEN - COALESCE ( - 56, + 76 ) THEN 59 * - COUNT ( * ) + 17 + - 79 WHEN 50 / - CASE - 8 WHEN + - 88 THEN COUNT ( * ) END THEN NULL WHEN + - 82 THEN + - 38 * - - CAST ( COALESCE ( SUM ( + + 2 ), - 87 + 70 ) AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1047
SELECT + 62 DIV + - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1047
SELECT + 62 / + - 96 AS col1
----
0

query I rowsort
SELECT ALL 26 + 86 * - + 30 AS col1
----
-2554

query I rowsort
SELECT + 50 * 36 AS col0
----
1800

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1050
SELECT + 8 + - 44 * - 22 + 7 DIV - + CAST( + - 29 AS SIGNED ) AS col1, + 50 AS col2
----
976
50

skipif mysql # not compatible
query II rowsort label-1050
SELECT + 8 + - 44 * - 22 + 7 / - + CAST ( + - 29 AS INTEGER ) AS col1, + 50 AS col2
----
976
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1051
SELECT NULLIF ( + SUM( + ( - 55 ) ), - 38 + CAST( - + CASE - 15 WHEN - 5 + + 40 + + 93 THEN NULL WHEN + 61 - + + COUNT( * ) * - 38 * - COUNT( * ) * + 22 + - 78 THEN + 70 END AS SIGNED ) * - 93 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-1051
SELECT NULLIF ( + SUM ( + ( - 55 ) ), - 38 + CAST ( - + CASE - 15 WHEN - 5 + + 40 + + 93 THEN NULL WHEN + 61 - + + COUNT ( * ) * - 38 * - COUNT ( * ) * + 22 + - 78 THEN + 70 END AS INTEGER ) * - 93 ) AS col2
----
-55

query II rowsort
SELECT - 80 + - + 99 - - + 93, + 72 AS col0
----
-86
72

query II rowsort
SELECT DISTINCT 72 AS col1, + 78 AS col2
----
72
78

query I rowsort
SELECT + - 17 - - - 80 col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1055
SELECT ALL + COUNT( * ) AS col1, - 11 * + ( + - 86 ) * - COUNT( * )
----
1
-946

skipif mysql # not compatible
query II rowsort label-1055
SELECT ALL + COUNT ( * ) AS col1, - 11 * + ( + - 86 ) * - COUNT ( * )
----
1
-946

query I rowsort
SELECT + + 84 * + 94
----
7896

query I rowsort
SELECT - + 79 * - 43 * 36
----
122292

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT + - 68 + - + COUNT( + + 41 )
----
-69

skipif mysql # not compatible
query I rowsort label-1058
SELECT + - 68 + - + COUNT ( + + 41 )
----
-69

query I rowsort
SELECT - 78 - 48
----
-126

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1061
SELECT - 49 * + 75 + - ( CAST( NULL AS SIGNED ) ) + + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1061
SELECT - 49 * + 75 + - ( CAST ( NULL AS INTEGER ) ) + + - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT 49 * + 90 * + - ( 89 ) * - + MIN( DISTINCT + 98 ) col0
----
38464020

skipif mysql # not compatible
query I rowsort label-1062
SELECT 49 * + 90 * + - ( 89 ) * - + MIN ( DISTINCT + 98 ) col0
----
38464020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1063
SELECT COALESCE ( + COUNT( * ), + - SUM( - 49 ) + 70 + 46 + - + COUNT( * ), 23 ) + - 77 * 18 DIV - 40
----
35

skipif mysql # not compatible
query I rowsort label-1063
SELECT COALESCE ( + COUNT ( * ), + - SUM ( - 49 ) + 70 + 46 + - + COUNT ( * ), 23 ) + - 77 * 18 / - 40
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1064
SELECT 64 * - - CAST( NULL AS SIGNED ) + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1064
SELECT 64 * - - CAST ( NULL AS INTEGER ) + 51
----
NULL

query I rowsort
SELECT 96 - 58
----
38

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

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

query I rowsort
SELECT DISTINCT + 83 * + + NULLIF ( - + 81, 11 ) AS col0
----
-6723

query I rowsort
SELECT 70 * - 81 * 2
----
-11340

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT - 53 * - 38 + - COUNT( DISTINCT + 23 ) - + + 93 AS col2
----
1920

skipif mysql # not compatible
query I rowsort label-1070
SELECT - 53 * - 38 + - COUNT ( DISTINCT + 23 ) - + + 93 AS col2
----
1920

query I rowsort
SELECT DISTINCT + CASE + 98 WHEN + + 54 THEN + + 12 END + - 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1072
SELECT MAX( - 57 ) * + 19 - 60 + - COUNT( * ) DIV - + 32 AS col2
----
-1143

skipif mysql # not compatible
query I rowsort label-1072
SELECT MAX ( - 57 ) * + 19 - 60 + - COUNT ( * ) / - + 32 AS col2
----
-1143

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT DISTINCT ( - - COUNT( - ( 46 ) ) ) * 37 col0
----
37

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT ( - - COUNT ( - ( 46 ) ) ) * 37 col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT ALL + NULLIF ( + - SUM( + 83 ), + 20 ) + 49
----
-34

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL + NULLIF ( + - SUM ( + 83 ), + 20 ) + 49
----
-34

query I rowsort
SELECT ALL 81 + + + 79 * - 55 + - - 99 + + 33
----
-4132

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT - - COALESCE ( 94, + COUNT( * ) * 32 + - - COUNT( * ), + 5 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-1076
SELECT - - COALESCE ( 94, + COUNT ( * ) * 32 + - - COUNT ( * ), + 5 ) col1
----
94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1078
SELECT 92 DIV + 93 * - + 37 + - 2 + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-1078
SELECT 92 / + 93 * - + 37 + - 2 + - COUNT ( * )
----
-3

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

query I rowsort
SELECT - 27 + 85 * + - 80 * 83 AS col1
----
-564427

query I rowsort
SELECT 72 - + 85 AS col1
----
-13

query I rowsort
SELECT DISTINCT + 50 * 84
----
4200

query I rowsort
SELECT DISTINCT 28 - + 5 AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1084
SELECT + 76 + + - 75 AS col0, ( 60 ) * - 18 - 19 * - 30 col2, + + ( + + CAST( ( + - CAST( + - 84 AS SIGNED ) ) AS SIGNED ) ) AS col1
----
1
-510
84

skipif mysql # not compatible
query III rowsort label-1084
SELECT + 76 + + - 75 AS col0, ( 60 ) * - 18 - 19 * - 30 col2, + + ( + + CAST ( ( + - CAST ( + - 84 AS INTEGER ) ) AS INTEGER ) ) AS col1
----
1
-510
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1085
SELECT DISTINCT - COUNT( * ) - + 17 / + CAST( NULL AS SIGNED ) * 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT - COUNT ( * ) - + 17 / + CAST ( NULL AS INTEGER ) * 54 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1086
SELECT COUNT( DISTINCT + + CAST( 50 AS SIGNED ) ) + + 40 col0
----
41

skipif mysql # not compatible
query I rowsort label-1086
SELECT COUNT ( DISTINCT + + CAST ( 50 AS INTEGER ) ) + + 40 col0
----
41

query I rowsort
SELECT DISTINCT 70 * + + 91
----
6370

query II rowsort
SELECT 80 * - NULLIF ( 12, + 87 ) * - 73 AS col1, + 71
----
70080
71

query I rowsort
SELECT ALL 5 * - 44 AS col1
----
-220

query II rowsort
SELECT + 3 AS col2, 11
----
3
11

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

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

query II rowsort
SELECT ALL - 34 AS col2, ( - 96 )
----
-34
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1093
SELECT 70 DIV - - COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1093
SELECT 70 / - - COUNT ( * ) AS col0
----
70

query I rowsort
SELECT 5 * + - 87
----
-435

query I rowsort
SELECT ALL + 70 + - - 39 * - 80 * - 90 AS col2
----
280870

query I rowsort
SELECT + 12 * + 94 - - 24 + - 7
----
1145

query II rowsort
SELECT + 69, 77 AS col0
----
69
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1098
SELECT 24 DIV SUM( 83 ) * - - 25 * - COUNT( * ) + 3
----
3

skipif mysql # not compatible
query I rowsort label-1098
SELECT 24 / SUM ( 83 ) * - - 25 * - COUNT ( * ) + 3
----
3

query I rowsort
SELECT 95 - 29
----
66

query I rowsort
SELECT 31 * - 3 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-1101
SELECT ALL - MIN( + 45 ) * 25 AS col1, 53 * ( 64 ) * + 71 AS col2
----
-1125
240832

skipif mysql # not compatible
query II rowsort label-1101
SELECT ALL - MIN ( + 45 ) * 25 AS col1, 53 * ( 64 ) * + 71 AS col2
----
-1125
240832

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

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT + COUNT ( * ) + + 54 AS col2
----
55

query I rowsort
SELECT DISTINCT + 52 + + 76
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT ALL CAST( + 67 AS SIGNED ) + - + 59 * + 15 AS col0
----
-818

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL CAST ( + 67 AS INTEGER ) + - + 59 * + 15 AS col0
----
-818

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT COUNT( * ) - - 81 * + 28 + + 53 col0
----
2322

skipif mysql # not compatible
query I rowsort label-1105
SELECT COUNT ( * ) - - 81 * + 28 + + 53 col0
----
2322

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT 40 - + + MIN( - + 28 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1106
SELECT 40 - + + MIN ( - + 28 ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1107
SELECT - - 48 AS col2, 87 + + CAST( NULL AS SIGNED ) AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1107
SELECT - - 48 AS col2, 87 + + CAST ( NULL AS INTEGER ) AS col0
----
48
NULL

query I rowsort
SELECT 17 * + + 95 + - + 45 + + 16
----
1586

query I rowsort
SELECT 38 * - 46
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT 40 + + + CASE - 20 WHEN 1 - - 44 THEN NULL WHEN - 43 + 3 THEN - 6 END + + - CASE 64 WHEN - SUM( - 97 ) / 35 THEN - + COALESCE ( - - 99, COUNT( * ) / - ( + 81 ) / 96 * + 75 - - 37 ) + - 86 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT 40 + + + CASE - 20 WHEN 1 - - 44 THEN NULL WHEN - 43 + 3 THEN - 6 END + + - CASE 64 WHEN - SUM ( - 97 ) / 35 THEN - + COALESCE ( - - 99, COUNT ( * ) / - ( + 81 ) / 96 * + 75 - - 37 ) + - 86 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1111
SELECT DISTINCT - 99 col1, + COUNT( * ) - 93 * + 36
----
-99
-3347

skipif mysql # not compatible
query II rowsort label-1111
SELECT DISTINCT - 99 col1, + COUNT ( * ) - 93 * + 36
----
-99
-3347

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT 86 + - + CASE + + 41 WHEN + COUNT( * ) + - 82 THEN + 33 WHEN - 36 * - COALESCE ( + 6, - - 13 ) * 48 + + 9 THEN 4 END + + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT 86 + - + CASE + + 41 WHEN + COUNT ( * ) + - 82 THEN + 33 WHEN - 36 * - COALESCE ( + 6, - - 13 ) * 48 + + 9 THEN 4 END + + 19 AS col0
----
NULL

query I rowsort
SELECT ALL + 40 * 43
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL + ( - CASE - 10 WHEN COUNT( * ) THEN NULL WHEN - 6 + + + 73 * 60 * 85 THEN NULL WHEN - ( - 22 ) * + COUNT( * ) THEN 60 END ) * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + ( - CASE - 10 WHEN COUNT ( * ) THEN NULL WHEN - 6 + + + 73 * 60 * 85 THEN NULL WHEN - ( - 22 ) * + COUNT ( * ) THEN 60 END ) * + 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1115
SELECT COALESCE ( MIN( 28 ), - - 23, + 56, + 76 * - 81 DIV - - COUNT( * ) + + NULLIF ( 29, + - 67 ) - 9 * - 91 + - 67 ) + 79 * - + COUNT( * ) DIV - 98 * 64 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1115
SELECT COALESCE ( MIN ( 28 ), - - 23, + 56, + 76 * - 81 / - - COUNT ( * ) + + NULLIF ( 29, + - 67 ) - 9 * - 91 + - 67 ) + 79 * - + COUNT ( * ) / - 98 * 64 AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1116
SELECT ALL - + AVG ( - - 61 ) * COUNT( * ) * + 53 * + CAST( NULL AS DECIMAL ) AS col0, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-1116
SELECT ALL - + AVG ( - - 61 ) * COUNT ( * ) * + 53 * + CAST ( NULL AS REAL ) AS col0, 41
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT 40 * + 92 + - - 45 + + COUNT( * )
----
3726

skipif mysql # not compatible
query I rowsort label-1117
SELECT 40 * + 92 + - - 45 + + COUNT ( * )
----
3726

query I rowsort
SELECT + - COALESCE ( + 92, + NULLIF ( - 35, + ( 64 ) + - + 6 ) + 47 + 48 ) + - + 67 + + - 9
----
-168

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

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

query I rowsort
SELECT + 40 + + - 42 AS col2
----
-2

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

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

query I rowsort
SELECT ALL + - 64 * + - 6 col1
----
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT + COUNT( * ) - + AVG ( - 93 ) + + 17 * + CAST( NULL AS SIGNED ) + - - 13 * - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT + COUNT ( * ) - + AVG ( - 93 ) + + 17 * + CAST ( NULL AS INTEGER ) + - - 13 * - + 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1124
SELECT CASE + 65 WHEN + 47 * + COUNT( * ) * - 53 + - - NULLIF ( - SUM( ALL + CAST( + 62 AS SIGNED ) ), + - 66 * + + 11 ) THEN - 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1124
SELECT CASE + 65 WHEN + 47 * + COUNT ( * ) * - 53 + - - NULLIF ( - SUM ( ALL + CAST ( + 62 AS INTEGER ) ), + - 66 * + + 11 ) THEN - 98 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1125
SELECT - 8 / - - ( + 95 ) * - ( COUNT( * ) ) * 73 * CAST( NULL AS SIGNED ) / - 97 + - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1125
SELECT - 8 / - - ( + 95 ) * - ( COUNT ( * ) ) * 73 * CAST ( NULL AS INTEGER ) / - 97 + - 1 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1126
SELECT + COUNT( * ) AS col0, CAST( NULL AS DECIMAL ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1126
SELECT + COUNT ( * ) AS col0, CAST ( NULL AS REAL ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT ALL + 16 * 73 / CASE ( + 1 ) WHEN COALESCE ( - 17, 78 * + + 80 ) + - + ( + 73 ) * - 3 THEN NULL WHEN - + 73 + - + 99 THEN - 18 * + + 56 * CASE + 41 WHEN + ( - 25 ) + - ( - - 91 ) + - - 95 * - 96 / 37 * 38 + - 17 THEN 41 END + - 96 END + - NULLIF ( - 89, - + 61 * NULLIF ( + + 81, 93 ) + - COUNT( * ) * + 39 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL + 16 * 73 / CASE ( + 1 ) WHEN COALESCE ( - 17, 78 * + + 80 ) + - + ( + 73 ) * - 3 THEN NULL WHEN - + 73 + - + 99 THEN - 18 * + + 56 * CASE + 41 WHEN + ( - 25 ) + - ( - - 91 ) + - - 95 * - 96 / 37 * 38 + - 17 THEN 41 END + - 96 END + - NULLIF ( - 89, - + 61 * NULLIF ( + + 81, 93 ) + - COUNT ( * ) * + 39 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1128
SELECT NULLIF ( + 21, + 62 * + COUNT( ALL - 95 ) ) * - 24 DIV MAX( ALL - + 41 ) DIV + 9 DIV - 66 DIV NULLIF ( + 12, + 20 ) + + 83
----
83

skipif mysql # not compatible
query I rowsort label-1128
SELECT NULLIF ( + 21, + 62 * + COUNT ( ALL - 95 ) ) * - 24 / MAX ( ALL - + 41 ) / + 9 / - 66 / NULLIF ( + 12, + 20 ) + + 83
----
83

query I rowsort
SELECT + 45 * - 50 + - 5
----
-2255

query I rowsort
SELECT + 9 + + 17 * - 21 + - - 78 AS col0
----
-270

onlyif mysql # aggregate syntax: 
query II rowsort label-1131
SELECT ALL 63 * - 42 * 63 + 89 - - ( - - 71 ) * - - MIN( DISTINCT 15 ) * + + 17 AS col1, - NULLIF ( + - 82, + 96 ) * - 49
----
-148504
-4018

skipif mysql # not compatible
query II rowsort label-1131
SELECT ALL 63 * - 42 * 63 + 89 - - ( - - 71 ) * - - MIN ( DISTINCT 15 ) * + + 17 AS col1, - NULLIF ( + - 82, + 96 ) * - 49
----
-148504
-4018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1132
SELECT ALL + COUNT( * ) * - + 26 + CAST( 59 AS SIGNED ) + - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL + COUNT ( * ) * - + 26 + CAST ( 59 AS INTEGER ) + - COUNT ( * )
----
32

query I rowsort
SELECT 39 * 21 + - 36 AS col1
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT COUNT( - 19 )
----
1

skipif mysql # not compatible
query I rowsort label-1134
SELECT COUNT ( - 19 )
----
1

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

query I rowsort
SELECT - + 41 * 27 + - 38
----
-1145

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

query I rowsort
SELECT ALL - + 33 * + + 29 * - - 82
----
-78474

query I rowsort
SELECT - + 5 * 45 * - 8
----
1800

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1140
SELECT ALL - + 16 * - 15 + 49 + - + 80 DIV - CAST( + 14 AS SIGNED ) AS col0
----
294

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL - + 16 * - 15 + 49 + - + 80 / - CAST ( + 14 AS INTEGER ) AS col0
----
294

query I rowsort
SELECT DISTINCT - 67 * - 71 + - 92 * - 51 AS col0
----
9449

query I rowsort
SELECT - 72 + - 65 AS col0
----
-137

query II rowsort
SELECT - 42 AS col1, 84 AS col2
----
-42
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT + + COUNT( * ) + + - 17 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1144
SELECT + + COUNT ( * ) + + - 17 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-1145
SELECT - 61 + - COUNT( * ) AS col1, 7 + - + 93 AS col0
----
-62
-86

skipif mysql # not compatible
query II rowsort label-1145
SELECT - 61 + - COUNT ( * ) AS col1, 7 + - + 93 AS col0
----
-62
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-1146
SELECT DISTINCT COUNT( * ) AS col0, 69 * - 64 AS col0
----
1
-4416

skipif mysql # not compatible
query II rowsort label-1146
SELECT DISTINCT COUNT ( * ) AS col0, 69 * - 64 AS col0
----
1
-4416

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1147
SELECT ALL - 24 + 51 AS col2, CAST( NULL AS DECIMAL )
----
27
NULL

skipif mysql # not compatible
query II rowsort label-1147
SELECT ALL - 24 + 51 AS col2, CAST ( NULL AS REAL )
----
27
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1149
SELECT + 45 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT + 45 / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 33 * + 53 * 8
----
-13992

onlyif mysql # DIV for integer division: 
query I rowsort label-1151
SELECT ALL 91 DIV + + 37 + - 27 col1
----
-25

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL 91 / + + 37 + - 27 col1
----
-25

query I rowsort
SELECT + NULLIF ( - + 10, - 29 ) col1
----
-10

query II rowsort
SELECT + 3 * - + 74 AS col1, + 38 * 69
----
-222
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ( + + ( - NULLIF ( 25, - COALESCE ( - 92, - - CASE + 4 WHEN + - 27 * + COUNT( * ) THEN + 4 - + MIN( ALL 56 ) WHEN COUNT( ( - 46 ) ) THEN NULL END, + - 86, - + 65 + - 1 + ( - 47 ) * - ( + 95 ) ) + + 1 ) ) ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-1154
SELECT ( + + ( - NULLIF ( 25, - COALESCE ( - 92, - - CASE + 4 WHEN + - 27 * + COUNT ( * ) THEN + 4 - + MIN ( ALL 56 ) WHEN COUNT ( ( - 46 ) ) THEN NULL END, + - 86, - + 65 + - 1 + ( - 47 ) * - ( + 95 ) ) + + 1 ) ) ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT 80 * - 14 + COUNT( * )
----
-1119

skipif mysql # not compatible
query I rowsort label-1155
SELECT 80 * - 14 + COUNT ( * )
----
-1119

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT + 67 * + + 4 AS col2, + 69 * + COUNT( * )
----
268
69

skipif mysql # not compatible
query II rowsort label-1156
SELECT + 67 * + + 4 AS col2, + 69 * + COUNT ( * )
----
268
69

query I rowsort
SELECT + 73 * 99
----
7227

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT + 43 - - COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1158
SELECT + 43 - - COUNT ( * ) AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1159
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) col0, MAX( - 25 ) AS col0
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-1159
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) col0, MAX ( - 25 ) AS col0
----
NULL
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT + 20 + + MIN( ALL ( 33 ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1160
SELECT + 20 + + MIN ( ALL ( 33 ) ) AS col2
----
53

query I rowsort
SELECT + 93 * + + 94 + 55
----
8797

query I rowsort
SELECT - 98 * 40 + ( - 19 )
----
-3939

query I rowsort
SELECT + + 51 * - 20
----
-1020

onlyif mysql # aggregate syntax: 
query II rowsort label-1164
SELECT + COUNT( * ) - - + 21 * COUNT( * ) AS col1, - 81
----
22
-81

skipif mysql # not compatible
query II rowsort label-1164
SELECT + COUNT ( * ) - - + 21 * COUNT ( * ) AS col1, - 81
----
22
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT - 47 - COUNT( * ) + + + 51
----
3

skipif mysql # not compatible
query I rowsort label-1165
SELECT - 47 - COUNT ( * ) + + + 51
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT + 56 DIV + + 90 + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1166
SELECT + 56 / + + 90 + 70 AS col0
----
70

query I rowsort
SELECT ( - 40 ) + - + 67 AS col0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT DISTINCT 79 + + 43 * CASE - 71 WHEN - + ( + 11 ) + + MIN( DISTINCT - - 44 ) THEN + ( - 19 ) + + - 88 + ( - - 42 ) WHEN + 49 THEN - 48 ELSE - - SUM( ALL + 80 ) + - 28 END AS col1
----
2315

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT 79 + + 43 * CASE - 71 WHEN - + ( + 11 ) + + MIN ( DISTINCT - - 44 ) THEN + ( - 19 ) + + - 88 + ( - - 42 ) WHEN + 49 THEN - 48 ELSE - - SUM ( ALL + 80 ) + - 28 END AS col1
----
2315

onlyif mysql # DIV for integer division: 
query I rowsort label-1169
SELECT ALL + 19 DIV 66 * + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL + 19 / 66 * + 93 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1170
SELECT - 23 DIV + NULLIF ( 10, - 11 ) + - 80 - COALESCE ( + + NULLIF ( - COUNT( * ), + AVG ( + + 20 ) ), - COUNT( * ) * + - 94, + 69 + - 56 * 57 ) + - + 77 * - 62 - + 54 + + ( - - ( + 61 ) ) + + + COUNT( * ) DIV + 78 * + 96 * 24 AS col1
----
4700

skipif mysql # not compatible
query I rowsort label-1170
SELECT - 23 / + NULLIF ( 10, - 11 ) + - 80 - COALESCE ( + + NULLIF ( - COUNT ( * ), + AVG ( + + 20 ) ), - COUNT ( * ) * + - 94, + 69 + - 56 * 57 ) + - + 77 * - 62 - + 54 + + ( - - ( + 61 ) ) + + + COUNT ( * ) / + 78 * + 96 * 24 AS col1
----
4700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1171
SELECT DISTINCT + CASE COUNT( * ) WHEN + 85 * + 58 / + 66 + - 22 / - 9 + + 45 THEN + + CAST( NULL AS SIGNED ) WHEN 88 THEN 62 * - + 28 + + 89 WHEN + 3 THEN + + COUNT( * ) + - CAST( + 74 AS DECIMAL ) ELSE NULL END + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT + CASE COUNT ( * ) WHEN + 85 * + 58 / + 66 + - 22 / - 9 + + 45 THEN + + CAST ( NULL AS INTEGER ) WHEN 88 THEN 62 * - + 28 + + 89 WHEN + 3 THEN + + COUNT ( * ) + - CAST ( + 74 AS REAL ) ELSE NULL END + + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT ALL COUNT( * ) + - - 27 + - + 90 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL COUNT ( * ) + - - 27 + - + 90 AS col1
----
-62

query II rowsort
SELECT DISTINCT - + 63 * + 44, 70 col1
----
-2772
70

query I rowsort
SELECT DISTINCT - 94 + + + 67 AS col1
----
-27

query I rowsort
SELECT - 63 + 16 AS col1
----
-47

query I rowsort
SELECT 28 + 56 AS col2
----
84

query I rowsort
SELECT 5 * + - 49 * - 21 AS col1
----
5145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1178
SELECT DISTINCT 1 AS col0, 0 * - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1178
SELECT DISTINCT 1 AS col0, 0 * - CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT 95 + + 66 + + 98 + + COUNT( * ) * 65 AS col1
----
324

skipif mysql # not compatible
query I rowsort label-1179
SELECT 95 + + 66 + + 98 + + COUNT ( * ) * 65 AS col1
----
324

query I rowsort
SELECT ALL + 38 + - 26 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1181
SELECT 5 + + 40 + - 53 AS col0, + COUNT( - - 19 )
----
-8
1

skipif mysql # not compatible
query II rowsort label-1181
SELECT 5 + + 40 + - 53 AS col0, + COUNT ( - - 19 )
----
-8
1

query I rowsort
SELECT ALL - 38 - + 62 col0
----
-100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT DISTINCT + 93 DIV + 84 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT + 93 / + 84 AS col2
----
1

query I rowsort
SELECT 11 + - 95 AS col2
----
-84

query I rowsort
SELECT 49 + + NULLIF ( 24, 38 ) AS col1
----
73

query I rowsort
SELECT 76 * + - 21 + 71 + + 37 + - 19 * + 78 - ( + NULLIF ( + 25, + 90 ) ) AS col1
----
-2995

query I rowsort
SELECT 56 * - - 88
----
4928

onlyif mysql # aggregate syntax: 
query II rowsort label-1189
SELECT ALL - 94, COUNT( * ) + 19 AS col1
----
-94
20

skipif mysql # not compatible
query II rowsort label-1189
SELECT ALL - 94, COUNT ( * ) + 19 AS col1
----
-94
20

query I rowsort
SELECT - 98 * - 73 + + + 57 + - 38 * + 69 AS col0
----
4589

query I rowsort
SELECT ALL + 76 * 92 col2
----
6992

query I rowsort
SELECT 39 + + 92 * + 91 * - 11 * 91 col0
----
-8380333

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1193
SELECT DISTINCT - + 56 col1, CAST( - + 42 AS SIGNED ) * + 15 AS col2
----
-56
-630

skipif mysql # not compatible
query II rowsort label-1193
SELECT DISTINCT - + 56 col1, CAST ( - + 42 AS INTEGER ) * + 15 AS col2
----
-56
-630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1194
SELECT ALL - COUNT( * ) * 18 + 86 DIV 51 - + 3
----
-20

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - COUNT ( * ) * 18 + 86 / 51 - + 3
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1195
SELECT + 58 * - CASE COUNT( + 89 ) WHEN CASE - 33 WHEN + + 62 THEN NULL ELSE + + 12 * + ( 1 ) + - - 90 - - 77 * - ( - 35 ) * + 94 END THEN - + 50 * 82 - 11 + - 43 * - + 16 + - + 83 ELSE NULL END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1195
SELECT + 58 * - CASE COUNT ( + 89 ) WHEN CASE - 33 WHEN + + 62 THEN NULL ELSE + + 12 * + ( 1 ) + - - 90 - - 77 * - ( - 35 ) * + 94 END THEN - + 50 * 82 - 11 + - 43 * - + 16 + - + 83 ELSE NULL END + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1196
SELECT COUNT( * ) * + 37 + 6 * 2 * - + 37 - + CASE - 99 WHEN - + 50 THEN ( 47 ) * + MIN( 82 ) WHEN - 73 THEN COUNT( * ) - + 68 WHEN + + ( - 90 ) THEN - 58 * + COUNT( * ) + 79 * - 79 + - - 13 / 36 ELSE NULL END, 45 AS col0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-1196
SELECT COUNT ( * ) * + 37 + 6 * 2 * - + 37 - + CASE - 99 WHEN - + 50 THEN ( 47 ) * + MIN ( 82 ) WHEN - 73 THEN COUNT ( * ) - + 68 WHEN + + ( - 90 ) THEN - 58 * + COUNT ( * ) + 79 * - 79 + - - 13 / 36 ELSE NULL END, 45 AS col0
----
NULL
45

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

skipif mysql # not compatible
query I rowsort label-1197
SELECT ( - COUNT ( * ) ) * - 48
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1198
SELECT + 70 * - + 20 + 25 + + - ( - 0 ) * + + 36 * - 69 + + - 25, 45 * 70 * - + SUM( - - 0 ) * + - 13 * COUNT( * ) AS col2
----
-1400
0

skipif mysql # not compatible
query II rowsort label-1198
SELECT + 70 * - + 20 + 25 + + - ( - 0 ) * + + 36 * - 69 + + - 25, 45 * 70 * - + SUM ( - - 0 ) * + - 13 * COUNT ( * ) AS col2
----
-1400
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT + 45 + - COUNT( * ) + 70 - + 43 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-1199
SELECT + 45 + - COUNT ( * ) + 70 - + 43 AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-1200
SELECT + 54 AS col1, - 8 + + - MAX( DISTINCT 69 ) * + 22 + + 7
----
54
-1519

skipif mysql # not compatible
query II rowsort label-1200
SELECT + 54 AS col1, - 8 + + - MAX ( DISTINCT 69 ) * + 22 + + 7
----
54
-1519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1201
SELECT ALL ( 88 ) * + 46 + + + ( 54 ) / CAST( NULL AS SIGNED ) * - MAX( ALL 83 ) * + 13 * - + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL ( 88 ) * + 46 + + + ( 54 ) / CAST ( NULL AS INTEGER ) * - MAX ( ALL 83 ) * + 13 * - + 70 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1202
SELECT 25 + 88 + CAST( NULL AS SIGNED ) + - ( CAST( - MAX( - 95 ) AS DECIMAL ) ) + 99 + - MIN( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT 25 + 88 + CAST ( NULL AS INTEGER ) + - ( CAST ( - MAX ( - 95 ) AS REAL ) ) + 99 + - MIN ( 91 )
----
NULL

query I rowsort
SELECT DISTINCT + + 32 + + 70
----
102

query I rowsort
SELECT DISTINCT - 90 * 94
----
-8460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1205
SELECT - COALESCE ( + 53, + CAST( 79 AS SIGNED ), + 99 ) * + + COUNT( * ) DIV + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-1205
SELECT - COALESCE ( + 53, + CAST ( 79 AS INTEGER ), + 99 ) * + + COUNT ( * ) / + COUNT ( * )
----
-53

query II rowsort
SELECT + 38 AS col2, 22
----
38
22

query I rowsort
SELECT ( 91 ) + + 84
----
175

query I rowsort
SELECT DISTINCT + 65 + 76 AS col2
----
141

query I rowsort
SELECT 41 + - ( - 57 ) * + 19
----
1124

query I rowsort
SELECT - COALESCE ( 77, + 25 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1211
SELECT ALL + 32 + COUNT( * ) + - 34 + + COUNT( * ) * - 78 * - COUNT( * ) * - CASE - 6 WHEN - 17 THEN NULL ELSE + ( - CAST( COUNT( * ) AS SIGNED ) ) * ( 98 ) + + - 18 - - AVG ( ALL + 72 ) + + COALESCE ( - CASE - 49 WHEN + 17 * + 21 + - MIN( ALL - 87 ) THEN + CAST( + 76 AS SIGNED ) ELSE NULL END, 4 * - - 50 + + - 84 + + 59 ) + + 77 END + - - COUNT( * ) - + 45 * - ( - COUNT( * ) ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL + 32 + COUNT ( * ) + - 34 + + COUNT ( * ) * - 78 * - COUNT ( * ) * - CASE - 6 WHEN - 17 THEN NULL ELSE + ( - CAST ( COUNT ( * ) AS INTEGER ) ) * ( 98 ) + + - 18 - - AVG ( ALL + 72 ) + + COALESCE ( - CASE - 49 WHEN + 17 * + 21 + - MIN ( ALL - 87 ) THEN + CAST ( + 76 AS INTEGER ) ELSE NULL END, 4 * - - 50 + + - 84 + + 59 ) + + 77 END + - - COUNT ( * ) - + 45 * - ( - COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1212
SELECT - CAST( ( + 67 ) AS SIGNED ), 2 AS col0
----
-67
2

skipif mysql # not compatible
query II rowsort label-1212
SELECT - CAST ( ( + 67 ) AS INTEGER ), 2 AS col0
----
-67
2

query I rowsort
SELECT ALL + 6 - + 26 + - + 9
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-1214
SELECT 14 * - + 51 col1, + 2 / - 65 * CASE - COUNT( * ) WHEN - ( + + 6 ) THEN + - COUNT( * ) - + COALESCE ( 15, - + 80, - - MIN( DISTINCT 43 ) - + 0 + 21 * - 75 - - 84 ) WHEN - - 8 * - 32 + - 73 THEN - + 4 END AS col0
----
-714
NULL

skipif mysql # not compatible
query II rowsort label-1214
SELECT 14 * - + 51 col1, + 2 / - 65 * CASE - COUNT ( * ) WHEN - ( + + 6 ) THEN + - COUNT ( * ) - + COALESCE ( 15, - + 80, - - MIN ( DISTINCT 43 ) - + 0 + 21 * - 75 - - 84 ) WHEN - - 8 * - 32 + - 73 THEN - + 4 END AS col0
----
-714
NULL

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

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

query I rowsort
SELECT DISTINCT + 89 * - + 21 AS col1
----
-1869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1217
SELECT ( + 24 ) * + + 76 DIV + COUNT( * ) - COUNT( * )
----
1823

skipif mysql # not compatible
query I rowsort label-1217
SELECT ( + 24 ) * + + 76 / + COUNT ( * ) - COUNT ( * )
----
1823

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

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

query I rowsort
SELECT DISTINCT - ( + 12 ) AS col2
----
-12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1221
SELECT 39 * - 41 * CAST( ( - + 73 ) AS SIGNED ) AS col2
----
116727

skipif mysql # not compatible
query I rowsort label-1221
SELECT 39 * - 41 * CAST ( ( - + 73 ) AS INTEGER ) AS col2
----
116727

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

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + 44 / + 1
----
44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT ALL + - 10 DIV - - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL + - 10 / - - 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT COUNT( * ) * 31 + - - 59 + + 38 * + 79 + - 79 + + + 36 - 62
----
2987

skipif mysql # not compatible
query I rowsort label-1225
SELECT COUNT ( * ) * 31 + - - 59 + + 38 * + 79 + - 79 + + + 36 - 62
----
2987

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT 97 * + 93 - - 2 + - - 99 * + COUNT( * ) AS col2
----
9122

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT 97 * + 93 - - 2 + - - 99 * + COUNT ( * ) AS col2
----
9122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT - 82 + CAST( - - 45 AS SIGNED ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-1227
SELECT - 82 + CAST ( - - 45 AS INTEGER ) AS col2
----
-37

query I rowsort
SELECT DISTINCT - + 67 * - 64
----
4288

query I rowsort
SELECT ALL - 97 + - - 54
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1230
SELECT ALL + COALESCE ( + COUNT( DISTINCT 47 ), + + 25 DIV - 51 DIV 42 )
----
1

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL + COALESCE ( + COUNT ( DISTINCT 47 ), + + 25 / - 51 / 42 )
----
1

query I rowsort
SELECT ALL + - 55 + + 32 AS col0
----
-23

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

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) + + 21 AS col1
----
NULL

query I rowsort
SELECT + - 42 - + - 89 + + - 38 * + 0 * + 44
----
47

query I rowsort
SELECT + + 67 + + + 23 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT - COUNT( DISTINCT 72 ) + + - 39 + 2 * - 63
----
-166

skipif mysql # not compatible
query I rowsort label-1235
SELECT - COUNT ( DISTINCT 72 ) + + - 39 + 2 * - 63
----
-166

query I rowsort
SELECT DISTINCT ( - 51 ) * + 73 + - + 46
----
-3769

query I rowsort
SELECT ALL ( NULLIF ( - - ( + 10 ), 40 / - 81 * 45 ) )
----
10

query I rowsort
SELECT ALL + 11 * + 99
----
1089

query I rowsort
SELECT + 63 * ( + 51 ) AS col2
----
3213

query I rowsort
SELECT - NULLIF ( - 42, 53 * - 68 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT + 39 + + - 75 - + + 7 * - + COALESCE ( - + 87, + 11 * - - COUNT( * ) ) * + 18 AS col1
----
-10998

skipif mysql # not compatible
query I rowsort label-1241
SELECT + 39 + + - 75 - + + 7 * - + COALESCE ( - + 87, + 11 * - - COUNT ( * ) ) * + 18 AS col1
----
-10998

query I rowsort
SELECT + 68 + + + CASE - - 84 WHEN 85 THEN + - 49 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT + 27 DIV + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1243
SELECT + 27 / + 75 AS col1
----
0

query I rowsort
SELECT + 33 * - 25 * 85 AS col2
----
-70125

query II rowsort
SELECT ALL 17 AS col1, 86
----
17
86

query II rowsort
SELECT - 50 - + - 60 * + 75 AS col0, 56
----
4450
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT + 97 + - 13 + COUNT( * ) * - + 45 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1248
SELECT + 97 + - 13 + COUNT ( * ) * - + 45 AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT ALL 3 DIV 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL 3 / 70 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1250
SELECT CAST( NULLIF ( - 74, 49 * 78 + - CAST( + - COUNT( * ) AS SIGNED ) - - ( - 57 ) - - 48 ) AS SIGNED ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-1250
SELECT CAST ( NULLIF ( - 74, 49 * 78 + - CAST ( + - COUNT ( * ) AS INTEGER ) - - ( - 57 ) - - 48 ) AS INTEGER ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT + MAX( DISTINCT + + 88 ) * + - 73
----
-6424

skipif mysql # not compatible
query I rowsort label-1251
SELECT + MAX ( DISTINCT + + 88 ) * + - 73
----
-6424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1252
SELECT + 2 * - ( + COUNT( * ) ) * + 26 + 60 + - + CAST( - MIN( + + 67 ) AS SIGNED ) * - - ( - - 49 ) + + - 14
----
3277

skipif mysql # not compatible
query I rowsort label-1252
SELECT + 2 * - ( + COUNT ( * ) ) * + 26 + 60 + - + CAST ( - MIN ( + + 67 ) AS INTEGER ) * - - ( - - 49 ) + + - 14
----
3277

query II rowsort
SELECT ALL + 0 AS col1, 44 AS col0
----
0
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT ALL + 83 * ( + - 5 ) - - COUNT( * ) * + - 37 + + 63 col1
----
-389

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL + 83 * ( + - 5 ) - - COUNT ( * ) * + - 37 + + 63 col1
----
-389

onlyif mysql # aggregate syntax: 
query II rowsort label-1255
SELECT + COALESCE ( + + 64, - MAX( - 86 ) ) * + 94 * + - 25, - 77 AS col2
----
-150400
-77

skipif mysql # not compatible
query II rowsort label-1255
SELECT + COALESCE ( + + 64, - MAX ( - 86 ) ) * + 94 * + - 25, - 77 AS col2
----
-150400
-77

query I rowsort
SELECT DISTINCT + ( + + 80 ) * + 92
----
7360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1257
SELECT ALL + AVG ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL + AVG ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL - 89 * 54 + - COUNT( * )
----
-4807

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL - 89 * 54 + - COUNT ( * )
----
-4807

onlyif mysql # aggregate syntax: 
query II rowsort label-1259
SELECT ALL COUNT( * ) * - + 19 + - 66 AS col1, - 61 - + 63 AS col0
----
-85
-124

skipif mysql # not compatible
query II rowsort label-1259
SELECT ALL COUNT ( * ) * - + 19 + - 66 AS col1, - 61 - + 63 AS col0
----
-85
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT DISTINCT ( + - 27 ) * + 6 + + CASE + + ( + 49 ) WHEN COUNT( * ) THEN NULL ELSE + + 55 + + + COUNT( DISTINCT - 57 ) END
----
-106

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT ( + - 27 ) * + 6 + + CASE + + ( + 49 ) WHEN COUNT ( * ) THEN NULL ELSE + + 55 + + + COUNT ( DISTINCT - 57 ) END
----
-106

query I rowsort
SELECT + 11 * - 89 + + 95
----
-884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1262
SELECT + - 34 col1, + NULLIF ( - 48, - - 73 * + 78 / + 9 + + - 69 + + COALESCE ( - 61, + COALESCE ( - 9, MIN( ALL + + 60 ) * 91 + 65, - CAST( + COUNT( * ) AS SIGNED ), + + 68 + + 67 ) - - 3 ) * 59 )
----
-34
-48

skipif mysql # not compatible
query II rowsort label-1262
SELECT + - 34 col1, + NULLIF ( - 48, - - 73 * + 78 / + 9 + + - 69 + + COALESCE ( - 61, + COALESCE ( - 9, MIN ( ALL + + 60 ) * 91 + 65, - CAST ( + COUNT ( * ) AS INTEGER ), + + 68 + + 67 ) - - 3 ) * 59 )
----
-34
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT - ( + 66 ) * - 28 + - - 56 + - + 36 * + 38, MIN( + + COALESCE ( 2, 68 + + 64 ) ) AS col1
----
536
2

skipif mysql # not compatible
query II rowsort label-1263
SELECT - ( + 66 ) * - 28 + - - 56 + - + 36 * + 38, MIN ( + + COALESCE ( 2, 68 + + 64 ) ) AS col1
----
536
2

query I rowsort
SELECT - + 79 * + + 74 + - 20 + 77 AS col1
----
-5789

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1265
SELECT ALL + 16 * CAST( NULL AS SIGNED ) - - - ( + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL + 16 * CAST ( NULL AS INTEGER ) - - - ( + 26 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT DISTINCT - + 48 * NULLIF ( 53, - + 53 * - - 30 * + 78 * + - COUNT( * ) )
----
-2544

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT - + 48 * NULLIF ( 53, - + 53 * - - 30 * + 78 * + - COUNT ( * ) )
----
-2544

onlyif mysql # aggregate syntax: 
query II rowsort label-1267
SELECT ALL SUM( ( 92 ) ) AS col1, - 32 AS col1
----
92
-32

skipif mysql # not compatible
query II rowsort label-1267
SELECT ALL SUM ( ( 92 ) ) AS col1, - 32 AS col1
----
92
-32

query I rowsort
SELECT - - 19 * 51 AS col1
----
969

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

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

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

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

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

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

query II rowsort
SELECT ALL 95 col0, 15 AS col1
----
95
15

query II rowsort
SELECT - 50 AS col0, - 53 col1
----
-50
-53

query I rowsort
SELECT + 81 + - 23 col0
----
58

query I rowsort
SELECT - NULLIF ( 55, 55 )
----
NULL

query II rowsort
SELECT ALL 61 AS col1, 43 AS col2
----
61
43

query II rowsort
SELECT 39 AS col2, + 68 AS col1
----
39
68

query I rowsort
SELECT - 3 - - 80
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1279
SELECT DISTINCT CAST( + 78 AS SIGNED ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1279
SELECT DISTINCT CAST ( + 78 AS INTEGER ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1280
SELECT DISTINCT 33 * 81 col0, COUNT( * ) * + COUNT( * ) + - 8 * COUNT( * ) AS col1
----
2673
-7

skipif mysql # not compatible
query II rowsort label-1280
SELECT DISTINCT 33 * 81 col0, COUNT ( * ) * + COUNT ( * ) + - 8 * COUNT ( * ) AS col1
----
2673
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT - CASE MAX( - 15 ) WHEN + 52 * - + 82 / 54 THEN NULL WHEN - - 2 THEN - + 84 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT - CASE MAX ( - 15 ) WHEN + 52 * - + 82 / 54 THEN NULL WHEN - - 2 THEN - + 84 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1282
SELECT ALL + 17 + - 56 DIV COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL + 17 + - 56 / COUNT ( * ) AS col0
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-1283
SELECT + 73 DIV + - 7 AS col0, - 88
----
-10
-88

skipif mysql # not compatible
query II rowsort label-1283
SELECT + 73 / + - 7 AS col0, - 88
----
-10
-88

query I rowsort
SELECT ALL 85 + 67 col1
----
152

query II rowsort
SELECT - 28 col0, 72 * - 36
----
-28
-2592

query I rowsort
SELECT DISTINCT 97 * 61
----
5917

query II rowsort
SELECT 77 AS col0, + 81 AS col1
----
77
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1288
SELECT MIN( ALL - 86 ) DIV - - 24 * COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-1288
SELECT MIN ( ALL - 86 ) / - - 24 * COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL 49 + - + SUM( ALL 80 ) + - 96 + - 52 AS col2
----
-179

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL 49 + - + SUM ( ALL 80 ) + - 96 + - 52 AS col2
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT 45 - - 11 * + SUM( DISTINCT + 67 ) + - COUNT( DISTINCT + 53 ) AS col0
----
781

skipif mysql # not compatible
query I rowsort label-1290
SELECT 45 - - 11 * + SUM ( DISTINCT + 67 ) + - COUNT ( DISTINCT + 53 ) AS col0
----
781

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL - COUNT( * ) + - - 85 * + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL - COUNT ( * ) + - - 85 * + COUNT ( * )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1293
SELECT ALL MAX( + 24 ) * + CASE + + 40 WHEN - - CASE - CAST( - CAST( - CAST( + 48 AS SIGNED ) AS SIGNED ) AS SIGNED ) WHEN - + 63 / 4 * + AVG ( ALL - 40 ) + - - COUNT( * ) THEN - + 46 * - 89 ELSE NULL END THEN 86 END * 71 * - 58 + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL MAX ( + 24 ) * + CASE + + 40 WHEN - - CASE - CAST ( - CAST ( - CAST ( + 48 AS INTEGER ) AS INTEGER ) AS INTEGER ) WHEN - + 63 / 4 * + AVG ( ALL - 40 ) + - - COUNT ( * ) THEN - + 46 * - 89 ELSE NULL END THEN 86 END * 71 * - 58 + - 5
----
NULL

query II rowsort
SELECT ALL - 49 col1, - COALESCE ( 91, + - 97 ) + + 33
----
-49
-58

query I rowsort
SELECT ALL - 61 + - COALESCE ( + 46, 36 * + ( 64 ) ) AS col0
----
-107

query I rowsort
SELECT DISTINCT + 2 + + + 60 AS col2
----
62

query II rowsort
SELECT + 73, 14 col2
----
73
14

query I rowsort
SELECT ALL + - 67 + - + 51 AS col2
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT 70 DIV + - 61
----
-1

skipif mysql # not compatible
query I rowsort label-1299
SELECT 70 / + - 61
----
-1

query II rowsort
SELECT ALL - 29 AS col0, + 36 AS col1
----
-29
36

query I rowsort
SELECT 5 * + 52 + - 13
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT - 0 * MIN( ALL + + 98 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT - 0 * MIN ( ALL + + 98 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1303
SELECT + + NULLIF ( CAST( NULL AS DECIMAL ), - - COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1303
SELECT + + NULLIF ( CAST ( NULL AS REAL ), - - COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT + 92 DIV - 67 - - ( 64 ) + 82 + - NULLIF ( + 42, + 86 + 98 DIV - + 23 ) + - + 13 * + + 93 * - 21 + - 98 AS col1
----
25394

skipif mysql # not compatible
query I rowsort label-1304
SELECT + 92 / - 67 - - ( 64 ) + 82 + - NULLIF ( + 42, + 86 + 98 / - + 23 ) + - + 13 * + + 93 * - 21 + - 98 AS col1
----
25394

onlyif mysql # aggregate syntax: 
query II rowsort label-1305
SELECT + COUNT( * ) AS col2, - ( CASE + 76 WHEN + 61 THEN NULL ELSE ( MAX( + 54 ) ) * - 56 + + 62 END ) AS col0
----
1
2962

skipif mysql # not compatible
query II rowsort label-1305
SELECT + COUNT ( * ) AS col2, - ( CASE + 76 WHEN + 61 THEN NULL ELSE ( MAX ( + 54 ) ) * - 56 + + 62 END ) AS col0
----
1
2962

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT ALL - 20 - MAX( DISTINCT - 39 )
----
19

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL - 20 - MAX ( DISTINCT - 39 )
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1308
SELECT + CAST( + - 99 AS SIGNED ) + + COUNT( * ) * + 57 DIV - COUNT( * ) AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-1308
SELECT + CAST ( + - 99 AS INTEGER ) + + COUNT ( * ) * + 57 / - COUNT ( * ) AS col2
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT ALL + 34 * - NULLIF ( - 79, 70 ) * + + 52 + + MAX( - 22 ) * - 90 + 75 * 87 AS col0
----
148177

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL + 34 * - NULLIF ( - 79, 70 ) * + + 52 + + MAX ( - 22 ) * - 90 + 75 * 87 AS col0
----
148177

query I rowsort
SELECT DISTINCT 45 * + 18
----
810

query II rowsort
SELECT ALL - 16 AS col1, - 10 + - 70 AS col2
----
-16
-80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1313
SELECT 18 * + 48 + + 17 DIV - 8
----
862

skipif mysql # not compatible
query I rowsort label-1313
SELECT 18 * + 48 + + 17 / - 8
----
862

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT MAX( + 80 ) + + 44
----
124

skipif mysql # not compatible
query I rowsort label-1314
SELECT MAX ( + 80 ) + + 44
----
124

query I rowsort
SELECT 34 + + 18 * - 72 * - 37 AS col1
----
47986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1316
SELECT COALESCE ( + SUM( + 39 ), + COUNT( * ) DIV - + 38 + - ( + 70 ) + + 2 * - COALESCE ( + 76, - 21 ) * + 69 * + 55 * - 62 - 10 + 26 DIV + SUM( ALL + - 53 ) ) DIV - + 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-1316
SELECT COALESCE ( + SUM ( + 39 ), + COUNT ( * ) / - + 38 + - ( + 70 ) + + 2 * - COALESCE ( + 76, - 21 ) * + 69 * + 55 * - 62 - 10 + 26 / + SUM ( ALL + - 53 ) ) / - + 77 col2
----
0

query I rowsort
SELECT 40 * + 45 col0
----
1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1318
SELECT ALL COUNT( * ) DIV + 84 * - 98 * + 23
----
0

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL COUNT ( * ) / + 84 * - 98 * + 23
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1319
SELECT ALL + 48 + + NULLIF ( + 70, 36 + + CAST( NULL AS SIGNED ) ) AS col2, + NULLIF ( - - 90, - + 18 ) AS col1, + 47 - + - 81 + - + 62 - 35 DIV 30 AS col0
----
118
90
65

skipif mysql # not compatible
query III rowsort label-1319
SELECT ALL + 48 + + NULLIF ( + 70, 36 + + CAST ( NULL AS INTEGER ) ) AS col2, + NULLIF ( - - 90, - + 18 ) AS col1, + 47 - + - 81 + - + 62 - 35 / 30 AS col0
----
118
90
65

query I rowsort
SELECT 39 * - + 42
----
-1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1321
SELECT ALL + COALESCE ( - - 93, + 49 * ( - 28 ), - 4 DIV + - COUNT( * ) + - - 95 ) + - 61 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL + COALESCE ( - - 93, + 49 * ( - 28 ), - 4 / + - COUNT ( * ) + - - 95 ) + - 61 AS col0
----
32

query I rowsort
SELECT 29 + - - 14 + - + 2 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT 65 * + + COUNT( * ) * - - 12
----
780

skipif mysql # not compatible
query I rowsort label-1323
SELECT 65 * + + COUNT ( * ) * - - 12
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT MAX( + 38 ) + 25 + + 24
----
87

skipif mysql # not compatible
query I rowsort label-1324
SELECT MAX ( + 38 ) + 25 + + 24
----
87

query I rowsort
SELECT 45 + - + 98 AS col2
----
-53

query I rowsort
SELECT 55 + + 50 + + - 4
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-1327
SELECT 90 - + COUNT( * ) AS col0, + 48
----
89
48

skipif mysql # not compatible
query II rowsort label-1327
SELECT 90 - + COUNT ( * ) AS col0, + 48
----
89
48

query I rowsort
SELECT DISTINCT 43 * 63 * + ( - 94 ) AS col0
----
-254646

query I rowsort
SELECT 15 + + 18 + - 73 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL + 64 + + + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL + 64 + + + COUNT ( * ) AS col2
----
65

query I rowsort
SELECT - COALESCE ( + 96, - 47 * 34 ) + + COALESCE ( + 23, - 9 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query III rowsort label-1332
SELECT ALL - - 23 + + 99 + + 69 * 43 * - - 12 AS col2, - 86 + + MIN( 92 ) AS col0, + 30
----
35726
6
30

skipif mysql # not compatible
query III rowsort label-1332
SELECT ALL - - 23 + + 99 + + 69 * 43 * - - 12 AS col2, - 86 + + MIN ( 92 ) AS col0, + 30
----
35726
6
30

query I rowsort
SELECT DISTINCT + 31 - 87 - 93
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT DISTINCT + 73 * - MIN( 77 ) * + ( 17 ) AS col2
----
-95557

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT + 73 * - MIN ( 77 ) * + ( 17 ) AS col2
----
-95557

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT + 98 + CASE - COUNT( ALL - CAST( NULL AS SIGNED ) ) WHEN COUNT( * ) THEN COALESCE ( + 25, - + 23 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT + 98 + CASE - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) WHEN COUNT ( * ) THEN COALESCE ( + 25, - + 23 ) ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1338
SELECT - CAST( 12 AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1338
SELECT - CAST ( 12 AS INTEGER ) AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1339
SELECT ALL MIN( 10 ) DIV 70 * + + 18 - - 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL MIN ( 10 ) / 70 * + + 18 - - 53 AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1340
SELECT ALL 48 DIV + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL 48 / + 59 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT DISTINCT - ( - + SUM( + + 11 ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT - ( - + SUM ( + + 11 ) ) AS col1
----
11

query II rowsort
SELECT ALL - 33 * + 91, 81 AS col2
----
-3003
81

query I rowsort
SELECT + 40 * - 14 AS col0
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT + MAX( + + 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1344
SELECT + MAX ( + + 1 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1345
SELECT 64 AS col2, COALESCE ( + + 66, - + 1 + COALESCE ( - 1, 30 * + - ( + + 24 ), - CASE - 20 WHEN - 31 / - + 91 + 95 + 55 + + ( - + 83 ) * 12 * COUNT( * ) / - + 27 / - - CAST( CAST( - - 73 AS DECIMAL ) AS SIGNED ) * - 81 THEN - 45 END + + 67 - 12 ) ) AS col0
----
64
66

skipif mysql # not compatible
query II rowsort label-1345
SELECT 64 AS col2, COALESCE ( + + 66, - + 1 + COALESCE ( - 1, 30 * + - ( + + 24 ), - CASE - 20 WHEN - 31 / - + 91 + 95 + 55 + + ( - + 83 ) * 12 * COUNT ( * ) / - + 27 / - - CAST ( CAST ( - - 73 AS REAL ) AS INTEGER ) * - 81 THEN - 45 END + + 67 - 12 ) ) AS col0
----
64
66

query II rowsort
SELECT DISTINCT ( - 99 ) + 73 AS col2, - 55 AS col1
----
-26
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT DISTINCT - COUNT( - ( 19 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT - COUNT ( - ( 19 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT DISTINCT SUM( ALL - 50 ) + + 48
----
-2

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT SUM ( ALL - 50 ) + + 48
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-1349
SELECT DISTINCT 27 + - COUNT( ALL 39 ), + 51 AS col2
----
26
51

skipif mysql # not compatible
query II rowsort label-1349
SELECT DISTINCT 27 + - COUNT ( ALL 39 ), + 51 AS col2
----
26
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1350
SELECT - CASE 3 WHEN - 94 THEN + CAST( NULL AS SIGNED ) * + NULLIF ( 18, + - 73 * + 67 ) + 61 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT - CASE 3 WHEN - 94 THEN + CAST ( NULL AS INTEGER ) * + NULLIF ( 18, + - 73 * + 67 ) + 61 END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 17 + - 36 * 73 AS col1, 24 AS col2
----
-2611
24

query II rowsort
SELECT 2, - 88 col2
----
2
-88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT - MAX( DISTINCT + + 89 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-1354
SELECT - MAX ( DISTINCT + + 89 ) AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-1355
SELECT - 44 + + 56 DIV 79 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1355
SELECT - 44 + + 56 / 79 AS col2
----
-44

query I rowsort
SELECT ALL - 54 + 0 AS col1
----
-54

query I rowsort
SELECT - NULLIF ( - 5, - 70 ) AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1358
SELECT + COUNT( * ) * + 51 DIV - 64 * + - 83
----
0

skipif mysql # not compatible
query I rowsort label-1358
SELECT + COUNT ( * ) * + 51 / - 64 * + - 83
----
0

query I rowsort
SELECT ALL - 27 * - 49
----
1323

query II rowsort
SELECT - 35 AS col1, - 92 - - 5 col1
----
-35
-87

query I rowsort
SELECT ALL 14 - - 49 - - 39
----
102

query I rowsort
SELECT ALL 72 * - 57 * 57
----
-233928

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1363
SELECT DISTINCT 40, - CAST( NULL AS SIGNED ) col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-1363
SELECT DISTINCT 40, - CAST ( NULL AS INTEGER ) col0
----
40
NULL

query I rowsort
SELECT ALL + - 75 - + + 82 * - + 85
----
6895

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

skipif mysql # not compatible
query I rowsort label-1365
SELECT - - 75 / - 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1366
SELECT - 57, - 33 * - ( + NULLIF ( - + CAST( NULL AS SIGNED ), 52 / - - MAX( + 16 ) ) ) AS col0
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-1366
SELECT - 57, - 33 * - ( + NULLIF ( - + CAST ( NULL AS INTEGER ), 52 / - - MAX ( + 16 ) ) ) AS col0
----
-57
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1367
SELECT + CAST( + ( 81 ) AS SIGNED ) AS col2, 26 + + COALESCE ( + + 58, + 81 + + - 65 + + 93 * 71 * 19 * + 39 * + - 55 * - 12 ), - 67 * + 8 AS col2
----
81
84
-536

skipif mysql # not compatible
query III rowsort label-1367
SELECT + CAST ( + ( 81 ) AS INTEGER ) AS col2, 26 + + COALESCE ( + + 58, + 81 + + - 65 + + 93 * 71 * 19 * + 39 * + - 55 * - 12 ), - 67 * + 8 AS col2
----
81
84
-536

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ALL - + 83 - + + COUNT( * ) + - + 17 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - + 83 - + + COUNT ( * ) + - + 17 AS col1
----
-101

query II rowsort
SELECT - - 40, 65 AS col1
----
40
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), + 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-1370
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), + 38 ) AS col1
----
-38

query I rowsort
SELECT + 91 * + 42
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT DISTINCT + - CASE + 27 WHEN - ( MIN( + - 75 ) ) / - COUNT( * ) * ( - - 52 ) - - COUNT( * ) - - 36 / + + 56 * - 24 * - 2 THEN 64 WHEN + + MIN( + 9 ) + ( - 76 ) + COUNT( * ) + - 15 + + 25 + - + ( - + 79 ) * 28 THEN NULL WHEN - + 88 THEN + 28 ELSE - 89 + + - 29 END
----
118

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT + - CASE + 27 WHEN - ( MIN ( + - 75 ) ) / - COUNT ( * ) * ( - - 52 ) - - COUNT ( * ) - - 36 / + + 56 * - 24 * - 2 THEN 64 WHEN + + MIN ( + 9 ) + ( - 76 ) + COUNT ( * ) + - 15 + + 25 + - + ( - + 79 ) * 28 THEN NULL WHEN - + 88 THEN + 28 ELSE - 89 + + - 29 END
----
118

query II rowsort
SELECT - 91, 69 * - 83 AS col0
----
-91
-5727

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT - + 6 * + SUM( 59 ) AS col2
----
-354

skipif mysql # not compatible
query I rowsort label-1374
SELECT - + 6 * + SUM ( 59 ) AS col2
----
-354

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

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

query I rowsort
SELECT + + 57 - - 59
----
116

query II rowsort
SELECT 88, + 66 * 83 * + COALESCE ( 56, - + 82 ) AS col0
----
88
306768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1378
SELECT ALL - - 13 * - CAST( NULL AS SIGNED ) * + 79 + - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL - - 13 * - CAST ( NULL AS INTEGER ) * + 79 + - - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT - 19 * + COUNT( * ) + - 8 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-1379
SELECT - 19 * + COUNT ( * ) + - 8 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT DISTINCT + COUNT( * ) * - + COUNT( - + 32 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( - + 32 ) + - COUNT ( * )
----
-2

query I rowsort
SELECT ALL + 10 * + 52 + 59
----
579

query II rowsort
SELECT DISTINCT 93 * + - 96 + 67 + 0 AS col0, - 90
----
-8861
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1383
SELECT DISTINCT - 11 * 32 * + - COUNT( + 72 ) + + 73 * - + 73 * + - COUNT( * ) AS col1, + 0
----
5681
0

skipif mysql # not compatible
query II rowsort label-1383
SELECT DISTINCT - 11 * 32 * + - COUNT ( + 72 ) + + 73 * - + 73 * + - COUNT ( * ) AS col1, + 0
----
5681
0

query I rowsort
SELECT - 45 * + - 62 * + 82
----
228780

query I rowsort
SELECT + 50 + 63
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1386
SELECT + 68 DIV - COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-1386
SELECT + 68 / - COUNT ( * ) AS col1
----
-68

query I rowsort
SELECT DISTINCT 38 - + 47 * + - 0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1388
SELECT ALL 14 * - 9 DIV COUNT( * )
----
-126

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL 14 * - 9 / COUNT ( * )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT ALL 73 - - + 79 + + COUNT( * ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL 73 - - + 79 + + COUNT ( * ) AS col0
----
153

query I rowsort
SELECT DISTINCT 31 * 79
----
2449

onlyif mysql # aggregate syntax: 
query II rowsort label-1391
SELECT ALL NULLIF ( - MIN( DISTINCT - ( + - ( - - 92 ) ) ), 21 * + + ( - + 85 ) * + COUNT( * ) ), 64 AS col0
----
-92
64

skipif mysql # not compatible
query II rowsort label-1391
SELECT ALL NULLIF ( - MIN ( DISTINCT - ( + - ( - - 92 ) ) ), 21 * + + ( - + 85 ) * + COUNT ( * ) ), 64 AS col0
----
-92
64

onlyif mysql # aggregate syntax: 
query II rowsort label-1392
SELECT ALL CASE + MIN( - - 99 ) WHEN - COUNT( * ) THEN NULLIF ( + 64, 29 ) END, 31 * - 7 AS col2
----
NULL
-217

skipif mysql # not compatible
query II rowsort label-1392
SELECT ALL CASE + MIN ( - - 99 ) WHEN - COUNT ( * ) THEN NULLIF ( + 64, 29 ) END, 31 * - 7 AS col2
----
NULL
-217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1393
SELECT - COALESCE ( ( COALESCE ( + - 36, + 46 * + - 20, - MAX( DISTINCT - 86 ) + 85 DIV - + 60 DIV - CAST( NULL AS SIGNED ) ) ), + 59 DIV - - 12 ) - + ( 22 ) + 22
----
36

skipif mysql # not compatible
query I rowsort label-1393
SELECT - COALESCE ( ( COALESCE ( + - 36, + 46 * + - 20, - MAX ( DISTINCT - 86 ) + 85 / - + 60 / - CAST ( NULL AS INTEGER ) ) ), + 59 / - - 12 ) - + ( 22 ) + 22
----
36

query I rowsort
SELECT - CASE + 39 WHEN - + COALESCE ( - + 87, 25 ) * + ( + 6 ) / + 72 + 25 THEN - - 65 END
----
NULL

query I rowsort
SELECT + 83 + 23 + - - 46 * - 36 AS col0
----
-1550

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT - CASE + ( + 15 ) WHEN + 31 + ( + COUNT( * ) ) + - ( 34 ) * + + 29 * - COUNT( * ) THEN 52 * - 34 WHEN 30 - + + COUNT( * ) THEN NULL END * + 2 + + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1396
SELECT - CASE + ( + 15 ) WHEN + 31 + ( + COUNT ( * ) ) + - ( 34 ) * + + 29 * - COUNT ( * ) THEN 52 * - 34 WHEN 30 - + + COUNT ( * ) THEN NULL END * + 2 + + 18 AS col1
----
NULL

query I rowsort
SELECT + - 27 + - - 56 + - 60
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL - - SUM( ALL 92 ) * - 13
----
-1196

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL - - SUM ( ALL 92 ) * - 13
----
-1196

query I rowsort
SELECT - + 52 + - 10
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT ALL - 46 * + MAX( ALL - ( 63 ) ) * 36 + + 83 + + - NULLIF ( - 37, - 89 ) * + + SUM( - - 1 ) + 56 AS col0
----
104504

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL - 46 * + MAX ( ALL - ( 63 ) ) * 36 + + 83 + + - NULLIF ( - 37, - 89 ) * + + SUM ( - - 1 ) + 56 AS col0
----
104504

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT DISTINCT 12 * - SUM( ALL - 32 )
----
384

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT 12 * - SUM ( ALL - 32 )
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT DISTINCT + + 51 * - MIN( ALL + - 5 )
----
255

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT + + 51 * - MIN ( ALL + - 5 )
----
255

query I rowsort
SELECT + - 91 * + - 83
----
7553

query I rowsort
SELECT CASE - + 9 WHEN - + AVG ( ALL 26 ) THEN + 88 + - ( - 1 ) WHEN - + 15 THEN NULL ELSE NULL END * 36 + - 31 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1405
SELECT - 85 / NULLIF ( - 24, + CASE - - 42 WHEN ( 33 ) THEN NULL ELSE - + CAST( + 5 AS SIGNED ) * + CASE 40 WHEN - - COUNT( * ) * COUNT( * ) * 44 + 4 THEN NULL WHEN + SUM( ALL - + 14 ) THEN - 84 WHEN 56 / 23 * - 69 THEN NULL ELSE - - COUNT( * ) END END ) / + CAST( NULL AS SIGNED ) + 23 AS col0, - NULLIF ( + - 5, - 85 / - 99 / + 12 ) * 66 * - 83 * COUNT( ALL 84 ) * + 90
----
NULL
-2465100

skipif mysql # not compatible
query II rowsort label-1405
SELECT - 85 / NULLIF ( - 24, + CASE - - 42 WHEN ( 33 ) THEN NULL ELSE - + CAST ( + 5 AS INTEGER ) * + CASE 40 WHEN - - COUNT ( * ) * COUNT ( * ) * 44 + 4 THEN NULL WHEN + SUM ( ALL - + 14 ) THEN - 84 WHEN 56 / 23 * - 69 THEN NULL ELSE - - COUNT ( * ) END END ) / + CAST ( NULL AS INTEGER ) + 23 AS col0, - NULLIF ( + - 5, - 85 / - 99 / + 12 ) * 66 * - 83 * COUNT ( ALL 84 ) * + 90
----
NULL
-2465100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1406
SELECT ALL - - COALESCE ( 12, + + NULLIF ( - 76, - 88 ) * + 4 * - 80, - + 76 ) DIV + - 75 + 52 * - COUNT( * ) + 76
----
24

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL - - COALESCE ( 12, + + NULLIF ( - 76, - 88 ) * + 4 * - 80, - + 76 ) / + - 75 + 52 * - COUNT ( * ) + 76
----
24

query I rowsort
SELECT - 96 + 6 * 92 AS col0
----
456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1408
SELECT ALL + + 37 DIV 75 - - 1 + + 46 + + 43 - 91 + + COUNT( * ) - + - 65 DIV 31 * + 12
----
24

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + + 37 / 75 - - 1 + + 46 + + 43 - 91 + + COUNT ( * ) - + - 65 / 31 * + 12
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1409
SELECT + COALESCE ( - 21, 75 + 28 * + COALESCE ( + - NULLIF ( - + ( 97 ), - CAST( 77 AS SIGNED ) ), + 48 ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1409
SELECT + COALESCE ( - 21, 75 + 28 * + COALESCE ( + - NULLIF ( - + ( 97 ), - CAST ( 77 AS INTEGER ) ), + 48 ) ) AS col2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1410
SELECT ALL - COUNT( * ) DIV 92 + + 18 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL - COUNT ( * ) / 92 + + 18 AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1411
SELECT ALL + COUNT( * ) DIV + 94 + + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + COUNT ( * ) / + 94 + + + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1412
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), + 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), + 34 ) AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1413
SELECT ALL + AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL + AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1414
SELECT ALL 69 + MIN( - 58 ) DIV 95 * + 64 * + COUNT( * ) - 11 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL 69 + MIN ( - 58 ) / 95 * + 64 * + COUNT ( * ) - 11 AS col0
----
58

query I rowsort
SELECT ALL - ( + + 79 ) * + + 61 AS col2
----
-4819

query I rowsort
SELECT ALL - 99 + + + 23
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT 39 * COALESCE ( 64, + COUNT( * ) + - COUNT( * ) ) * + - ( 36 ) AS col1
----
-89856

skipif mysql # not compatible
query I rowsort label-1417
SELECT 39 * COALESCE ( 64, + COUNT ( * ) + - COUNT ( * ) ) * + - ( 36 ) AS col1
----
-89856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1418
SELECT 55 + - COALESCE ( 10, + CAST( 84 AS SIGNED ) ) + 25 * - 50 + - + 47 * + + 77 col1
----
-4824

skipif mysql # not compatible
query I rowsort label-1418
SELECT 55 + - COALESCE ( 10, + CAST ( 84 AS INTEGER ) ) + 25 * - 50 + - + 47 * + + 77 col1
----
-4824

onlyif mysql # aggregate syntax: 
query II rowsort label-1419
SELECT DISTINCT + COUNT( ALL - + 13 ) - + 64 col1, 70
----
-63
70

skipif mysql # not compatible
query II rowsort label-1419
SELECT DISTINCT + COUNT ( ALL - + 13 ) - + 64 col1, 70
----
-63
70

query I rowsort
SELECT DISTINCT 20 - - 12
----
32

query I rowsort
SELECT ALL 55 - + + 3
----
52

query I rowsort
SELECT 83 * - 48
----
-3984

onlyif mysql # DIV for integer division: 
query I rowsort label-1423
SELECT ALL 67 DIV - 9 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL 67 / - 9 AS col2
----
-7

query I rowsort
SELECT 54 * - - 76 AS col0
----
4104

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT 90 + 18 DIV - 52 * + 14 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-1425
SELECT 90 + 18 / - 52 * + 14 AS col0
----
90

query I rowsort
SELECT ( - 90 ) + 93 AS col0
----
3

query I rowsort
SELECT ALL 19 * 49
----
931

onlyif mysql # DIV for integer division: 
query I rowsort label-1428
SELECT 73 DIV 19 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1428
SELECT 73 / 19 AS col1
----
3

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

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

query I rowsort
SELECT ALL - 92 * - 50
----
4600

query I rowsort
SELECT DISTINCT 59 * + ( - 33 ) col1
----
-1947

query I rowsort
SELECT 8 * - 62
----
-496

query I rowsort
SELECT ALL 77 + 1
----
78

query I rowsort
SELECT DISTINCT 12 + ( + 61 ) * 42 col2
----
2574

query I rowsort
SELECT 98 * 27
----
2646

query I rowsort
SELECT 34 * 38 AS col1
----
1292

query I rowsort
SELECT ALL 47 + 35
----
82

query I rowsort
SELECT DISTINCT 64 + + 11
----
75

query I rowsort
SELECT ( 40 ) - 70 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT DISTINCT - MIN( DISTINCT 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT - MIN ( DISTINCT 73 )
----
-73

query I rowsort
SELECT 24 - + 79 AS col1
----
-55

query I rowsort
SELECT ALL 11 + - 45 AS col0
----
-34

query I rowsort
SELECT DISTINCT - 85 + + 45 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT ALL + 30 + + NULLIF ( - ( ( 91 ) ), 35 * COUNT( * ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL + 30 + + NULLIF ( - ( ( 91 ) ), 35 * COUNT ( * ) ) AS col2
----
-61

query I rowsort
SELECT 49 * - 87 AS col1
----
-4263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1446
SELECT ALL CAST( NULL AS SIGNED ) * 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL CAST ( NULL AS INTEGER ) * 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT 59 - MAX( - 33 ) * + ( - 4 )
----
-73

skipif mysql # not compatible
query I rowsort label-1447
SELECT 59 - MAX ( - 33 ) * + ( - 4 )
----
-73

query I rowsort
SELECT - 29 * - 86 + 64
----
2558

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT 68 DIV 95 col2
----
0

skipif mysql # not compatible
query I rowsort label-1449
SELECT 68 / 95 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL + 67 - SUM( - 28 )
----
95

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL + 67 - SUM ( - 28 )
----
95

query I rowsort
SELECT NULLIF ( + 3, + 17 ) * 36 AS col0
----
108

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1453
SELECT 68 DIV + 78 + 60
----
60

skipif mysql # not compatible
query I rowsort label-1453
SELECT 68 / + 78 + 60
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1454
SELECT DISTINCT - 86 - NULLIF ( + CAST( - 41 AS SIGNED ), 68 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT - 86 - NULLIF ( + CAST ( - 41 AS INTEGER ), 68 ) AS col1
----
-45

query I rowsort
SELECT 74 * - 36 AS col0
----
-2664

query I rowsort
SELECT ALL - NULLIF ( 92, 54 ) AS col2
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT DISTINCT - 78 * SUM( - 75 ) AS col0
----
5850

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT - 78 * SUM ( - 75 ) AS col0
----
5850

query I rowsort
SELECT 93 + 12 AS col2
----
105

query I rowsort
SELECT ALL - 69 * 82 AS col1
----
-5658

query I rowsort
SELECT 64 * 25
----
1600

query I rowsort
SELECT 99 * + 59
----
5841

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT - 74 - - 60 * MAX( 57 )
----
3346

skipif mysql # not compatible
query I rowsort label-1463
SELECT - 74 - - 60 * MAX ( 57 )
----
3346

onlyif mysql # DIV for integer division: 
query I rowsort label-1464
SELECT + 49 DIV + 34 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1464
SELECT + 49 / + 34 AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL - CAST ( 9 AS INTEGER ) AS col2
----
-9

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

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL COUNT ( * ) / 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT - 15 DIV 22 col0
----
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT - 15 / 22 col0
----
0

query I rowsort
SELECT ALL + + 97 + 66 AS col2
----
163

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

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT - + ( COUNT ( * ) ) + + 69 AS col1
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT 64 + 38 * MIN( - ( - 36 ) ) AS col1
----
1432

skipif mysql # not compatible
query I rowsort label-1471
SELECT 64 + 38 * MIN ( - ( - 36 ) ) AS col1
----
1432

query I rowsort
SELECT ALL - + 84 + 20 * 5 AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1473
SELECT ALL COALESCE ( - COUNT( * ), + 63 ) DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL COALESCE ( - COUNT ( * ), + 63 ) / - 93
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1474
SELECT + 81 DIV - 19
----
-4

skipif mysql # not compatible
query I rowsort label-1474
SELECT + 81 / - 19
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT ( + NULLIF ( ( 22 ), 12 + - 7 ) ) DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT ( + NULLIF ( ( 22 ), 12 + - 7 ) ) / 68 AS col0
----
0

query I rowsort
SELECT + 90 + 59 * - 82
----
-4748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1477
SELECT DISTINCT 30 * COALESCE ( - CAST( ( - COUNT( ALL + 96 ) ) AS SIGNED ) * - COALESCE ( + 4, + COUNT( * ) + 74, COALESCE ( 19, + 32 ), + 76 ) - 36, 3 * 48, - 77 ) AS col0
----
-1200

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT 30 * COALESCE ( - CAST ( ( - COUNT ( ALL + 96 ) ) AS INTEGER ) * - COALESCE ( + 4, + COUNT ( * ) + 74, COALESCE ( 19, + 32 ), + 76 ) - 36, 3 * 48, - 77 ) AS col0
----
-1200

query I rowsort
SELECT - ( 34 ) + ( 38 + - 62 * 14 ) AS col2
----
-864

query I rowsort
SELECT - - ( 96 )
----
96

query I rowsort
SELECT ALL + ( ( - 0 ) ) + - 64
----
-64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1482
SELECT DISTINCT CASE 99 WHEN CAST( NULL AS DECIMAL ) THEN COALESCE ( ( + 12 ), - 1 - COUNT( * ), 94 + 89 * + 50, - CAST( NULL AS SIGNED ) + NULLIF ( 6, + COUNT( * ) ) ) - - 40 WHEN 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT CASE 99 WHEN CAST ( NULL AS REAL ) THEN COALESCE ( ( + 12 ), - 1 - COUNT ( * ), 94 + 89 * + 50, - CAST ( NULL AS INTEGER ) + NULLIF ( 6, + COUNT ( * ) ) ) - - 40 WHEN 58 THEN NULL END
----
NULL

query I rowsort
SELECT ALL ( - 10 ) + 87
----
77

query I rowsort
SELECT DISTINCT - 12 * - 94 AS col1
----
1128

query I rowsort
SELECT DISTINCT ( - 53 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT CASE + COUNT( * ) WHEN - 86 THEN 12 * COUNT( * ) WHEN ( 51 ) THEN NULL WHEN 2 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT CASE + COUNT ( * ) WHEN - 86 THEN 12 * COUNT ( * ) WHEN ( 51 ) THEN NULL WHEN 2 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT COUNT( * ) * - - 57 + - CASE 58 WHEN - 34 * 55 THEN NULL ELSE 99 * COUNT( * ) END
----
-42

skipif mysql # not compatible
query I rowsort label-1487
SELECT COUNT ( * ) * - - 57 + - CASE 58 WHEN - 34 * 55 THEN NULL ELSE 99 * COUNT ( * ) END
----
-42

query I rowsort
SELECT + 63 * + 77 AS col0
----
4851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1489
SELECT + 69 DIV - 9 + + COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1489
SELECT + 69 / - 9 + + COUNT ( * ) AS col1
----
-6

query I rowsort
SELECT CASE + 63 WHEN 8 THEN - 24 WHEN 16 THEN 35 WHEN + 73 THEN - 21 WHEN 42 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT ALL 10 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL 10 / + 17
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT + 15 DIV 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1492
SELECT + 15 / 23 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT + COALESCE ( + 82, + 91, COUNT( DISTINCT 55 ) + 77 * 16 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1493
SELECT + COALESCE ( + 82, + 91, COUNT ( DISTINCT 55 ) + 77 * 16 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT ALL + 85 * - + 7 - COUNT( * ) * + COALESCE ( 94, 34 * - 55 )
----
-689

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL + 85 * - + 7 - COUNT ( * ) * + COALESCE ( 94, 34 * - 55 )
----
-689

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT CASE + 42 WHEN - COALESCE ( 80, 35 + - 33 ) * 34 THEN NULL ELSE MAX( + 43 ) END
----
43

skipif mysql # not compatible
query I rowsort label-1496
SELECT CASE + 42 WHEN - COALESCE ( 80, 35 + - 33 ) * 34 THEN NULL ELSE MAX ( + 43 ) END
----
43

query I rowsort
SELECT ALL 91 * + 62 col1
----
5642

query I rowsort
SELECT DISTINCT + COALESCE ( + 45, 73 )
----
45

query I rowsort
SELECT DISTINCT 9 * + 65
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT + COALESCE ( 14, - MIN( 96 ) * ( + 23 * 8 ), + CASE MIN( DISTINCT 18 ) WHEN + 52 THEN 77 ELSE NULL END )
----
14

skipif mysql # not compatible
query I rowsort label-1500
SELECT + COALESCE ( 14, - MIN ( 96 ) * ( + 23 * 8 ), + CASE MIN ( DISTINCT 18 ) WHEN + 52 THEN 77 ELSE NULL END )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT SUM( ALL + - 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1501
SELECT SUM ( ALL + - 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1502
SELECT + NULLIF ( + 0, + COUNT( * ) ) DIV CASE 78 WHEN + 16 * - NULLIF ( + 22 DIV ( + 93 * - 50 ), 11 * 33 + - COALESCE ( COUNT( * ), + COUNT( * ) ) ) + 91 THEN - 12 * COUNT( * ) ELSE - 86 + COUNT( * ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1502
SELECT + NULLIF ( + 0, + COUNT ( * ) ) / CASE 78 WHEN + 16 * - NULLIF ( + 22 / ( + 93 * - 50 ), 11 * 33 + - COALESCE ( COUNT ( * ), + COUNT ( * ) ) ) + 91 THEN - 12 * COUNT ( * ) ELSE - 86 + COUNT ( * ) END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT + COUNT( 80 ) * 82 + - MIN( - 56 ) col1
----
138

skipif mysql # not compatible
query I rowsort label-1503
SELECT + COUNT ( 80 ) * 82 + - MIN ( - 56 ) col1
----
138

query I rowsort
SELECT + 26 * 74
----
1924

query I rowsort
SELECT ALL 17 * - + 85 + 42 AS col1
----
-1403

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - 72 + - - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-1506
SELECT - 72 + - - COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT 56 * - - COUNT( * ) + 0 - 63
----
-7

skipif mysql # not compatible
query I rowsort label-1507
SELECT 56 * - - COUNT ( * ) + 0 - 63
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT DISTINCT + CASE + 63 WHEN 36 + - 98 * - AVG ( ALL - 73 * + ( + 90 * ( 81 ) ) ) THEN COUNT( * ) + 40 * 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT + CASE + 63 WHEN 36 + - 98 * - AVG ( ALL - 73 * + ( + 90 * ( 81 ) ) ) THEN COUNT ( * ) + 40 * 91 END
----
NULL

query I rowsort
SELECT ALL + 88 * - 70 + + 80
----
-6080

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL + MIN( 19 ) + + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + MIN ( 19 ) + + COUNT ( * )
----
20

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

query I rowsort
SELECT + + 79 * - - 89
----
7031

query I rowsort
SELECT - + 73 + + 1 + - 86 AS col0
----
-158

query I rowsort
SELECT DISTINCT + 68 + + 53
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1516
SELECT ALL NULLIF ( + CAST( 43 AS SIGNED ), - COUNT( * ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL NULLIF ( + CAST ( 43 AS INTEGER ), - COUNT ( * ) ) AS col0
----
43

query I rowsort
SELECT DISTINCT + 51 + - 68 + - 61 AS col0
----
-78

query I rowsort
SELECT ALL + 18 + - 20 * 79 col0
----
-1562

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

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

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

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT + + COUNT ( * ) + 8 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT DISTINCT COALESCE ( + - 43, + 44 * - COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT COALESCE ( + - 43, + 44 * - COUNT ( * ) )
----
-43

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

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

query I rowsort
SELECT + - 13 * + 18
----
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1524
SELECT + + COUNT( - 74 ) / + CASE NULLIF ( + NULLIF ( + 57, 21 ), - 61 + + 28 ) * - ( NULLIF ( - ( 45 ), - COUNT( * ) ) ) WHEN + 33 * 36 + NULLIF ( - CAST( NULL AS SIGNED ), 29 * 1 ) THEN NULL WHEN - 26 THEN COUNT( * ) WHEN 6 THEN 56 + + 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1524
SELECT + + COUNT ( - 74 ) / + CASE NULLIF ( + NULLIF ( + 57, 21 ), - 61 + + 28 ) * - ( NULLIF ( - ( 45 ), - COUNT ( * ) ) ) WHEN + 33 * 36 + NULLIF ( - CAST ( NULL AS INTEGER ), 29 * 1 ) THEN NULL WHEN - 26 THEN COUNT ( * ) WHEN 6 THEN 56 + + 58 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 77 - - + 34 * 59
----
1929

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

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

query I rowsort
SELECT DISTINCT + 58 * - 45 AS col2
----
-2610

query I rowsort
SELECT - 39 * - - 70
----
-2730

query I rowsort
SELECT DISTINCT 51 * - + 30
----
-1530

query I rowsort
SELECT ALL 10 * 56 AS col2
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT - NULLIF ( - 24, + SUM( ALL 53 ) * 53 + 82 * 57 ) - 13 * + 36
----
-444

skipif mysql # not compatible
query I rowsort label-1531
SELECT - NULLIF ( - 24, + SUM ( ALL 53 ) * 53 + 82 * 57 ) - 13 * + 36
----
-444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT + CAST( NULL AS SIGNED ) / + + 38 * - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1532
SELECT + CAST ( NULL AS INTEGER ) / + + 38 * - - 96
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT + COUNT( * ) * - 18 - 8
----
-26

skipif mysql # not compatible
query I rowsort label-1534
SELECT + COUNT ( * ) * - 18 - 8
----
-26

query I rowsort
SELECT ALL 4 * + 19 * 64 * + 13
----
63232

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

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

query I rowsort
SELECT DISTINCT + 95 * + - 21 AS col0
----
-1995

query I rowsort
SELECT + COALESCE ( + ( + 31 ), 63 ) col0
----
31

query I rowsort
SELECT ALL 50 * + 42
----
2100

query II rowsort
SELECT ALL + 48 AS col1, 4
----
48
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT - MAX( + + 51 ) * - 25
----
1275

skipif mysql # not compatible
query I rowsort label-1541
SELECT - MAX ( + + 51 ) * - 25
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT + 38 - - + COUNT( * ) * + 97 * 76
----
7410

skipif mysql # not compatible
query I rowsort label-1542
SELECT + 38 - - + COUNT ( * ) * + 97 * 76
----
7410

query II rowsort
SELECT DISTINCT + 32, 29 AS col1
----
32
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1544
SELECT + 82 DIV + 30 + + - MAX( DISTINCT - 5 )
----
7

skipif mysql # not compatible
query I rowsort label-1544
SELECT + 82 / + 30 + + - MAX ( DISTINCT - 5 )
----
7

query I rowsort
SELECT - 95 * - ( - - 82 ) - 60 AS col1
----
7730

query I rowsort
SELECT + 32 * - 87 AS col0
----
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT ALL CAST( NULL AS SIGNED ) * + + 88 + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL CAST ( NULL AS INTEGER ) * + + 88 + 97 AS col2
----
NULL

query I rowsort
SELECT + 2 + + 84
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT DISTINCT COUNT( * ) * - 73 * + - COALESCE ( COUNT( * ), 68, + 91 * 46, - COUNT( * ) + + ( + COALESCE ( 7, 3, - COUNT( * ) ) ) * - 59 ) + 88 * 57
----
5089

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT COUNT ( * ) * - 73 * + - COALESCE ( COUNT ( * ), 68, + 91 * 46, - COUNT ( * ) + + ( + COALESCE ( 7, 3, - COUNT ( * ) ) ) * - 59 ) + 88 * 57
----
5089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1550
SELECT + CAST( - 88 AS SIGNED ) + - + CAST( - 16 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-1550
SELECT + CAST ( - 88 AS INTEGER ) + - + CAST ( - 16 AS INTEGER )
----
-72

query I rowsort
SELECT ALL CASE + 3 WHEN 68 + + 98 THEN 28 WHEN - 93 THEN NULL ELSE NULL END * 55 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1552
SELECT + CAST( - NULLIF ( + 7, + 35 ) AS SIGNED ) DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-1552
SELECT + CAST ( - NULLIF ( + 7, + 35 ) AS INTEGER ) / + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT ALL 82 * NULLIF ( 78, + 85 + 60 ) + + ( - MIN( 88 ) ) * + NULLIF ( + 3 * 19 + - 63 * + 56, 82 / 39 ) AS col1
----
311844

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL 82 * NULLIF ( 78, + 85 + 60 ) + + ( - MIN ( 88 ) ) * + NULLIF ( + 3 * 19 + - 63 * + 56, 82 / 39 ) AS col1
----
311844

query I rowsort
SELECT ALL - 98 * + - 21 + + 51
----
2109

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL - 34 * + - 56 * - CASE ( - 18 ) WHEN COUNT( * ) THEN 23 WHEN - MAX( DISTINCT 56 ) THEN NULL END + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL - 34 * + - 56 * - CASE ( - 18 ) WHEN COUNT ( * ) THEN 23 WHEN - MAX ( DISTINCT 56 ) THEN NULL END + - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT ALL - COUNT( * ) * 26
----
-26

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL - COUNT ( * ) * 26
----
-26

query I rowsort
SELECT + 36 + - - 74
----
110

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1558
SELECT - 6 DIV - CAST( 11 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1558
SELECT - 6 / - CAST ( 11 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT - + 44 + - 94 - - 82 * + MAX( - 83 + - 24 ) AS col0
----
-8912

skipif mysql # not compatible
query I rowsort label-1559
SELECT - + 44 + - 94 - - 82 * + MAX ( - 83 + - 24 ) AS col0
----
-8912

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + MIN( + 37 ) * 64
----
2368

skipif mysql # not compatible
query I rowsort label-1561
SELECT + MIN ( + 37 ) * 64
----
2368

query II rowsort
SELECT 31 AS col1, 44
----
31
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT ALL - + 30 DIV 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL - + 30 / 58 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1564
SELECT + + 42 + - 48 - + CAST( - ( COALESCE ( + COUNT( - COALESCE ( 18, + 66 * - 67, 59 * + 84 ) ), 0, MAX( DISTINCT 2 ) * + 8, COUNT( * ) ) ) AS SIGNED ) + - COUNT( * ) * 41
----
-46

skipif mysql # not compatible
query I rowsort label-1564
SELECT + + 42 + - 48 - + CAST ( - ( COALESCE ( + COUNT ( - COALESCE ( 18, + 66 * - 67, 59 * + 84 ) ), 0, MAX ( DISTINCT 2 ) * + 8, COUNT ( * ) ) ) AS INTEGER ) + - COUNT ( * ) * 41
----
-46

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

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

query II rowsort
SELECT DISTINCT + 98 AS col1, + 94
----
98
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL - MAX( DISTINCT 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL - MAX ( DISTINCT 44 ) AS col1
----
-44

query II rowsort
SELECT DISTINCT 84 AS col2, 68 col2
----
84
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT ALL + - 42 * SUM( ALL 84 )
----
-3528

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL + - 42 * SUM ( ALL 84 )
----
-3528

query I rowsort
SELECT 93 - 47 - - 13 + + 9 AS col0
----
68

query II rowsort
SELECT DISTINCT + 37 AS col0, 49 * + 20
----
37
980

query I rowsort
SELECT 96 + - - 45 AS col2
----
141

query I rowsort
SELECT ALL + 62 * + + 42
----
2604

query I rowsort
SELECT 85 + + 77
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1575
SELECT ALL + - 50 * - 76 * COALESCE ( 88, + 3 + CAST( - CAST( 62 AS SIGNED ) AS SIGNED ) ) * 7 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL + - 50 * - 76 * COALESCE ( 88, + 3 + CAST ( - CAST ( 62 AS INTEGER ) AS INTEGER ) ) * 7 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1576
SELECT COUNT( + 89 ) + - + 94 DIV - 24
----
4

skipif mysql # not compatible
query I rowsort label-1576
SELECT COUNT ( + 89 ) + - + 94 / - 24
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT 49 + - COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-1577
SELECT 49 + - COUNT ( * ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1578
SELECT 58 + + COUNT( * ), 24 + + + CASE + 10 WHEN + 58 * + 46 + 78 * 53 THEN - 60 * 28 END AS col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-1578
SELECT 58 + + COUNT ( * ), 24 + + + CASE + 10 WHEN + 58 * + 46 + 78 * 53 THEN - 60 * 28 END AS col1
----
59
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT 77 * - COUNT( * ) * + 0 * 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1580
SELECT 77 * - COUNT ( * ) * + 0 * 21 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT 84 + + + 91 * - - MIN( ALL + 81 ) + NULLIF ( 23, + COUNT( * ) + - 1 ) * - 41
----
6512

skipif mysql # not compatible
query I rowsort label-1581
SELECT 84 + + + 91 * - - MIN ( ALL + 81 ) + NULLIF ( 23, + COUNT ( * ) + - 1 ) * - 41
----
6512

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1582
SELECT DISTINCT - 19 DIV + + 32, - SUM( - 62 ) * 78 AS col0
----
0
4836

skipif mysql # not compatible
query II rowsort label-1582
SELECT DISTINCT - 19 / + + 32, - SUM ( - 62 ) * 78 AS col0
----
0
4836

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1583
SELECT 67 DIV CAST( + + 54 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1583
SELECT 67 / CAST ( + + 54 AS INTEGER ) AS col1
----
1

query I rowsort
SELECT 3 + - 62
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ALL MIN( - - 47 ) + - 21 + + 98 + 29 * ( 8 + 97 * 3 )
----
8795

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL MIN ( - - 47 ) + - 21 + + 98 + 29 * ( 8 + 97 * 3 )
----
8795

query I rowsort
SELECT DISTINCT 55 * - 35 AS col2
----
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT ALL COUNT( * ) * + 37 col2
----
37

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL COUNT ( * ) * + 37 col2
----
37

query I rowsort
SELECT DISTINCT + 65 + - - 60 + + - 34 + - 4
----
87

query I rowsort
SELECT ALL + 47 + 92 AS col1
----
139

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

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

query I rowsort
SELECT ALL + 53 + 4
----
57

query I rowsort
SELECT - 25 - - 86
----
61

query I rowsort
SELECT 28 * + NULLIF ( 53, + - 98 )
----
1484

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT ALL + 51 + - 29 DIV - - 9
----
48

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + 51 + - 29 / - - 9
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL 78 + + - 16 + COUNT( * ) * + - ( ( - ( 53 ) ) ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL 78 + + - 16 + COUNT ( * ) * + - ( ( - ( 53 ) ) ) AS col2
----
115

query I rowsort
SELECT + NULLIF ( - 50, 1 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT MIN( DISTINCT + 79 ) + - - 99 * - - COUNT( * ) * - 98 AS col0
----
-9623

skipif mysql # not compatible
query I rowsort label-1597
SELECT MIN ( DISTINCT + 79 ) + - - 99 * - - COUNT ( * ) * - 98 AS col0
----
-9623

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1598
SELECT - 19 * + - 72 + - 8 - + 66 + + 20 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT - 19 * + - 72 + - 8 - + 66 + + 20 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 1 * + 41 + + 11 AS col2
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1600
SELECT ALL CAST( NULL AS DECIMAL ) - + 61, 67 - - 95 AS col1
----
NULL
162

skipif mysql # not compatible
query II rowsort label-1600
SELECT ALL CAST ( NULL AS REAL ) - + 61, 67 - - 95 AS col1
----
NULL
162

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

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

query I rowsort
SELECT 31 * - 94
----
-2914

query I rowsort
SELECT 30 * - ( 43 ) + - 86
----
-1376

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT - 24 - - + 2 * - 9 * - - MIN( ALL 85 ) + + 52 AS col1
----
-1502

skipif mysql # not compatible
query I rowsort label-1605
SELECT - 24 - - + 2 * - 9 * - - MIN ( ALL 85 ) + + 52 AS col1
----
-1502

query I rowsort
SELECT 10 * + - 44
----
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1607
SELECT + 33 + + COALESCE ( + + ( 76 ), - 75 DIV ( - 40 * CAST( NULL AS SIGNED ) ), COUNT( * ) )
----
109

skipif mysql # not compatible
query I rowsort label-1607
SELECT + 33 + + COALESCE ( + + ( 76 ), - 75 / ( - 40 * CAST ( NULL AS INTEGER ) ), COUNT ( * ) )
----
109

query I rowsort
SELECT 56 * - ( 18 ) AS col0
----
-1008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1609
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) / - + 42 / + + COALESCE ( + 99, + 8 ) * ( + 28 + - 34 * 12 ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) / - + 42 / + + COALESCE ( + 99, + 8 ) * ( + 28 + - 34 * 12 ) + - 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1610
SELECT + 91 DIV 82
----
1

skipif mysql # not compatible
query I rowsort label-1610
SELECT + 91 / 82
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1611
SELECT ALL - 13 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - 13 / - 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1612
SELECT COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) * - 9 + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-1612
SELECT COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - 9 + - 97
----
-97

query II rowsort
SELECT DISTINCT 96, - NULLIF ( - 79, + - 19 ) + 15 - - ( 55 + - 21 ) AS col1
----
96
128

query I rowsort
SELECT ALL - 77 + - 65 + + 68 AS col1
----
-74

query I rowsort
SELECT ALL 27 + 7 AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1616
SELECT DISTINCT - 32 + - - 32 DIV NULLIF ( - + 46, + - COUNT( * ) ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT - 32 + - - 32 / NULLIF ( - + 46, + - COUNT ( * ) ) AS col1
----
-32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT 12 * + + 88 / - 64 * - CASE 31 WHEN + 49 THEN MIN( 97 ) * - 84 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT 12 * + + 88 / - 64 * - CASE 31 WHEN + 49 THEN MIN ( 97 ) * - 84 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1619
SELECT 83 - - - CAST( + AVG ( - 94 ) AS SIGNED ) AS col2
----
177

skipif mysql # not compatible
query I rowsort label-1619
SELECT 83 - - - CAST ( + AVG ( - 94 ) AS INTEGER ) AS col2
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-1620
SELECT ALL COUNT( * ) AS col0, + 4 AS col0
----
1
4

skipif mysql # not compatible
query II rowsort label-1620
SELECT ALL COUNT ( * ) AS col0, + 4 AS col0
----
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT ALL + COUNT( ALL ( + ( + ( - - 21 ) ) ) ) * - MAX( - 82 ) + 13 * COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + COUNT ( ALL ( + ( + ( - - 21 ) ) ) ) * - MAX ( - 82 ) + 13 * COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT + 86 * - ( + 98 ) - 42 + - + COUNT( * ) * - 22
----
-8448

skipif mysql # not compatible
query I rowsort label-1622
SELECT + 86 * - ( + 98 ) - 42 + - + COUNT ( * ) * - 22
----
-8448

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT 2 DIV + + 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-1623
SELECT 2 / + + 88 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT ALL + 72 * + 99 + + - ( - ( - 47 ) ) + + COUNT( * )
----
7082

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + 72 * + 99 + + - ( - ( - 47 ) ) + + COUNT ( * )
----
7082

query I rowsort
SELECT 83 + - 14
----
69

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

skipif mysql # not compatible
query I rowsort label-1626
SELECT - COUNT ( * ) / - 30 * + 83 - + COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT DISTINCT - 88 DIV + 69
----
-1

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT - 88 / + 69
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1628
SELECT 52 * - 99 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1628
SELECT 52 * - 99 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT SUM( 97 ) - - ( - 24 ) DIV + COUNT( * ) + 66 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-1629
SELECT SUM ( 97 ) - - ( - 24 ) / + COUNT ( * ) + 66 AS col0
----
139

query I rowsort
SELECT 84 * 89 + - 52 + - 60 * - 86 - + 17 AS col2
----
12567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1631
SELECT DISTINCT - MAX( - - 51 ) DIV - - ( + 87 )
----
0

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT - MAX ( - - 51 ) / - - ( + 87 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1632
SELECT ALL - - CAST( NULL AS SIGNED ) * - SUM( ALL - + ( - - 45 ) ) * + AVG ( DISTINCT 32 ) + COUNT( * ) + MAX( 33 ) - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL - - CAST ( NULL AS INTEGER ) * - SUM ( ALL - + ( - - 45 ) ) * + AVG ( DISTINCT 32 ) + COUNT ( * ) + MAX ( 33 ) - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT + ( ( - ( - CASE + 14 WHEN MAX( ALL 39 ) THEN NULL ELSE - MIN( ALL 60 ) * + 59 END ) ) )
----
-3540

skipif mysql # not compatible
query I rowsort label-1633
SELECT + ( ( - ( - CASE + 14 WHEN MAX ( ALL 39 ) THEN NULL ELSE - MIN ( ALL 60 ) * + 59 END ) ) )
----
-3540

query I rowsort
SELECT 77 + - + 55 + + 24
----
46

query I rowsort
SELECT ALL 85 * 21 * 24 * - 91 AS col2
----
-3898440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1636
SELECT DISTINCT - CAST( + 78 AS SIGNED ) * + 9
----
-702

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT - CAST ( + 78 AS INTEGER ) * + 9
----
-702

query I rowsort
SELECT - + 67 + - 68
----
-135

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

query II rowsort
SELECT + - 76, - 50 + - 26
----
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT + COUNT( * ) + 58 + - 12 + + ( 49 )
----
96

skipif mysql # not compatible
query I rowsort label-1640
SELECT + COUNT ( * ) + 58 + - 12 + + ( 49 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT - MAX( - - 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-1641
SELECT - MAX ( - - 35 ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1642
SELECT ALL + CAST( ( - + COUNT( * ) ) AS SIGNED ) AS col2, CAST( + 4 AS SIGNED ) + + 72 DIV - 7
----
-1
-6

skipif mysql # not compatible
query II rowsort label-1642
SELECT ALL + CAST ( ( - + COUNT ( * ) ) AS INTEGER ) AS col2, CAST ( + 4 AS INTEGER ) + + 72 / - 7
----
-1
-6

query I rowsort
SELECT - - 40 * + 78 * + 29 AS col2
----
90480

query I rowsort
SELECT + - 35 * + - 39 * + - 54
----
-73710

query I rowsort
SELECT + 71 + 98
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT + SUM( DISTINCT + 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1646
SELECT + SUM ( DISTINCT + 36 ) AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1647
SELECT + 69 + CAST( 33 AS SIGNED ) + + NULLIF ( - - 59, - + 56 ) + - 58
----
103

skipif mysql # not compatible
query I rowsort label-1647
SELECT + 69 + CAST ( 33 AS INTEGER ) + + NULLIF ( - - 59, - + 56 ) + - 58
----
103

query I rowsort
SELECT ALL 81 * + 41 AS col0
----
3321

query I rowsort
SELECT DISTINCT 92 * + ( + - 6 )
----
-552

query I rowsort
SELECT ALL 51 + - 33
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1651
SELECT + CAST( + 15 AS SIGNED ) - + 93 col2
----
-78

skipif mysql # not compatible
query I rowsort label-1651
SELECT + CAST ( + 15 AS INTEGER ) - + 93 col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT - COALESCE ( ( - NULLIF ( + 3, 48 - COUNT( * ) ) ), 3 * COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-1652
SELECT - COALESCE ( ( - NULLIF ( + 3, 48 - COUNT ( * ) ) ), 3 * COUNT ( * ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1653
SELECT + 33 + - COALESCE ( - CAST( NULL AS SIGNED ), - 90 ) * + 29 AS col0
----
2643

skipif mysql # not compatible
query I rowsort label-1653
SELECT + 33 + - COALESCE ( - CAST ( NULL AS INTEGER ), - 90 ) * + 29 AS col0
----
2643

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT + NULLIF ( - ( + + 45 ), + COUNT( * ) * + 91 ) + - 49
----
-94

skipif mysql # not compatible
query I rowsort label-1654
SELECT + NULLIF ( - ( + + 45 ), + COUNT ( * ) * + 91 ) + - 49
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1655
SELECT ALL 45 + - + CAST( MAX( + + 48 ) AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL 45 + - + CAST ( MAX ( + + 48 ) AS INTEGER )
----
-3

query I rowsort
SELECT + 9 * + 38 * - 88 AS col0
----
-30096

query I rowsort
SELECT + 15 + 96 * 22 - 51
----
2076

query I rowsort
SELECT ALL 21 + + 51 * - 78
----
-3957

query I rowsort
SELECT + 27 + - + 18 AS col2
----
9

query II rowsort
SELECT 4 AS col0, 70 AS col2
----
4
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT + 79 + + + COUNT( ALL - 22 )
----
80

skipif mysql # not compatible
query I rowsort label-1661
SELECT + 79 + + + COUNT ( ALL - 22 )
----
80

query I rowsort
SELECT ALL 85 + - 19 + + 16 + 41 * + 83
----
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT + 55 + + MIN( DISTINCT 10 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1663
SELECT + 55 + + MIN ( DISTINCT 10 ) AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT ALL + NULLIF ( - 92, COUNT( * ) ) + + CASE - 93 WHEN + 22 + 29 * 44 THEN 25 + - COUNT( * ) ELSE + 31 * 82 END + 40 DIV - 73 AS col0
----
2450

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL + NULLIF ( - 92, COUNT ( * ) ) + + CASE - 93 WHEN + 22 + 29 * 44 THEN 25 + - COUNT ( * ) ELSE + 31 * 82 END + 40 / - 73 AS col0
----
2450

onlyif mysql # aggregate syntax: 
query II rowsort label-1665
SELECT DISTINCT - 92 * - 14, + COUNT( * ) AS col0
----
1288
1

skipif mysql # not compatible
query II rowsort label-1665
SELECT DISTINCT - 92 * - 14, + COUNT ( * ) AS col0
----
1288
1

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

query I rowsort
SELECT - 49 + - 52 AS col1
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1668
SELECT - COALESCE ( + + 37, - COUNT( * ), CAST( NULL AS SIGNED ) )
----
-37

skipif mysql # not compatible
query I rowsort label-1668
SELECT - COALESCE ( + + 37, - COUNT ( * ), CAST ( NULL AS INTEGER ) )
----
-37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT - 1 + - 8 + + 25 + - 35 + + MAX( ALL - 69 ) * - 10 AS col2
----
671

skipif mysql # not compatible
query I rowsort label-1670
SELECT - 1 + - 8 + + 25 + - 35 + + MAX ( ALL - 69 ) * - 10 AS col2
----
671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1671
SELECT ALL - 42 DIV COUNT( * ) - + 23 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL - 42 / COUNT ( * ) - + 23 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT + 16 * + COUNT( * ) col2, - 32 - + MAX( DISTINCT + 95 ) + + 62 * - 64
----
16
-4095

skipif mysql # not compatible
query II rowsort label-1672
SELECT + 16 * + COUNT ( * ) col2, - 32 - + MAX ( DISTINCT + 95 ) + + 62 * - 64
----
16
-4095

query I rowsort
SELECT - 86 * + 21
----
-1806

query I rowsort
SELECT ALL - NULLIF ( - ( + 54 ), + + 46 ) * NULLIF ( + + ( - 35 ), 48 )
----
-1890

query I rowsort
SELECT DISTINCT + ( + 48 ) * - 83 * 1 + - - 62 + 93 * + 30 * - 14 AS col0
----
-42982

query II rowsort
SELECT ALL + 32 AS col1, - 50 + - 80
----
32
-130

query I rowsort
SELECT - - 6 * - 67 + - 49 col1
----
-451

query II rowsort
SELECT + - 91, + 2 AS col1
----
-91
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1679
SELECT ALL + COUNT( * ) * - COALESCE ( - - CASE + 80 WHEN - + 21 THEN CAST( NULL AS SIGNED ) WHEN - 55 THEN CASE NULLIF ( ( - COUNT( * ) ), + CASE + 48 WHEN - 95 THEN 52 / + 57 + 75 WHEN NULLIF ( + 83, + 46 ) * 56 THEN NULL ELSE NULL END * CAST( NULL AS SIGNED ) ) WHEN - COALESCE ( 85, 72 ) THEN NULL WHEN 5 * + ( + COUNT( * ) * NULLIF ( + 53 * 81, 59 ) ) THEN + COUNT( * ) END * 44 + + 87 ELSE NULL END, - 38 + NULLIF ( COALESCE ( + 69, + 88 * + 19 + + 32, + 17 ), 59 + - 86 ) * + 34 ) + + 15 * ( 25 * 45 ) - 15 * - 32 AS col2
----
15047

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL + COUNT ( * ) * - COALESCE ( - - CASE + 80 WHEN - + 21 THEN CAST ( NULL AS INTEGER ) WHEN - 55 THEN CASE NULLIF ( ( - COUNT ( * ) ), + CASE + 48 WHEN - 95 THEN 52 / + 57 + 75 WHEN NULLIF ( + 83, + 46 ) * 56 THEN NULL ELSE NULL END * CAST ( NULL AS INTEGER ) ) WHEN - COALESCE ( 85, 72 ) THEN NULL WHEN 5 * + ( + COUNT ( * ) * NULLIF ( + 53 * 81, 59 ) ) THEN + COUNT ( * ) END * 44 + + 87 ELSE NULL END, - 38 + NULLIF ( COALESCE ( + 69, + 88 * + 19 + + 32, + 17 ), 59 + - 86 ) * + 34 ) + + 15 * ( 25 * 45 ) - 15 * - 32 AS col2
----
15047

query II rowsort
SELECT 18 AS col0, 71 * 91 AS col0
----
18
6461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1681
SELECT ALL 48 * + 71 + + 11 - + 86 + 21 - + + CASE ( 30 ) WHEN + 14 THEN + 78 * - CAST( NULL AS SIGNED ) END * 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL 48 * + 71 + + 11 - + 86 + 21 - + + CASE ( 30 ) WHEN + 14 THEN + 78 * - CAST ( NULL AS INTEGER ) END * 72 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1682
SELECT COUNT( DISTINCT CAST( - 5 AS DECIMAL ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1682
SELECT COUNT ( DISTINCT CAST ( - 5 AS REAL ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT - - 41 * + - 27 * + SUM( + 68 ) * 36 + - 7 + + 32 + 0 - + 98
----
-2710009

skipif mysql # not compatible
query I rowsort label-1683
SELECT - - 41 * + - 27 * + SUM ( + 68 ) * 36 + - 7 + + 32 + 0 - + 98
----
-2710009

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + + 19 * 83 * + COUNT( * ) * - MAX( 42 ) + - - 10 + 1 AS col1
----
-66223

skipif mysql # not compatible
query I rowsort label-1684
SELECT + + 19 * 83 * + COUNT ( * ) * - MAX ( 42 ) + - - 10 + 1 AS col1
----
-66223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1685
SELECT - + COUNT( * ) + - CASE - 25 WHEN - - CAST( NULL AS SIGNED ) THEN - - 79 - + 51 ELSE 23 DIV 69 + 34 END + - 74 * + COUNT( * ) AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-1685
SELECT - + COUNT ( * ) + - CASE - 25 WHEN - - CAST ( NULL AS INTEGER ) THEN - - 79 - + 51 ELSE 23 / 69 + 34 END + - 74 * + COUNT ( * ) AS col0
----
-109

query I rowsort
SELECT 38 * 24 + + - 42
----
870

query I rowsort
SELECT ALL + + ( + - 99 ) * + 2 * - + 51 AS col2
----
10098

query I rowsort
SELECT - 55 * - - 89 col2
----
-4895

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT DISTINCT + 47 DIV + 18 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT + 47 / + 18 AS col2
----
2

query I rowsort
SELECT ALL - 83 * - 41 AS col2
----
3403

query I rowsort
SELECT DISTINCT + + COALESCE ( - 9, 51 )
----
-9

query I rowsort
SELECT ALL 43 * - 72 * ( 44 ) + 13 * 25 AS col2
----
-135899

query I rowsort
SELECT ALL 67 * - 35 + + 23
----
-2322

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT + SUM( DISTINCT - 74 ) + + COUNT( * ) * - 72
----
-146

skipif mysql # not compatible
query I rowsort label-1695
SELECT + SUM ( DISTINCT - 74 ) + + COUNT ( * ) * - 72
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT DISTINCT 42 * + COALESCE ( + MAX( ALL 86 ), - COUNT( * ) ) + + 51 + 42 AS col0
----
3705

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT 42 * + COALESCE ( + MAX ( ALL 86 ), - COUNT ( * ) ) + + 51 + 42 AS col0
----
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL COUNT( * ) * ( + 82 ) + 27 + COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL COUNT ( * ) * ( + 82 ) + 27 + COUNT ( * )
----
110

query II rowsort
SELECT + 15 * - + 33, - ( - 25 ) + + 82 + - - 84 AS col2
----
-495
191

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT - COUNT( * ) * - - MAX( 27 ) * 73
----
-1971

skipif mysql # not compatible
query I rowsort label-1699
SELECT - COUNT ( * ) * - - MAX ( 27 ) * 73
----
-1971

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL 97 + + + CASE - 65 WHEN - - 98 * + 69 + 21 THEN + SUM( - 3 ) WHEN - ( - 41 ) THEN - 17 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL 97 + + + CASE - 65 WHEN - - 98 * + 69 + 21 THEN + SUM ( - 3 ) WHEN - ( - 41 ) THEN - 17 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1701
SELECT ALL COUNT( - ( - 94 ) ) * - 28 + - + COUNT( * ) + NULLIF ( 60, + 53 ) * 83 DIV SUM( ALL - 88 )
----
-85

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL COUNT ( - ( - 94 ) ) * - 28 + - + COUNT ( * ) + NULLIF ( 60, + 53 ) * 83 / SUM ( ALL - 88 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT + CASE 98 WHEN 81 * - + NULLIF ( + 34, - - ( - - 5 ) ) THEN NULL WHEN - COUNT( * ) / + NULLIF ( - 17, 78 + COUNT( * ) * 87 ) THEN + 52 + - 38 END / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT + CASE 98 WHEN 81 * - + NULLIF ( + 34, - - ( - - 5 ) ) THEN NULL WHEN - COUNT ( * ) / + NULLIF ( - 17, 78 + COUNT ( * ) * 87 ) THEN + 52 + - 38 END / + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT ALL SUM( ALL + 27 ) * + 60 * + 36 * + 57 - + - COUNT( * )
----
3324241

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL SUM ( ALL + 27 ) * + 60 * + 36 * + 57 - + - COUNT ( * )
----
3324241

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1704
SELECT - NULLIF ( 5, - COUNT( + + 23 ) - 82 ), COALESCE ( + - 29, - 72 DIV 73, 41 * + 16 ) AS col1
----
-5
-29

skipif mysql # not compatible
query II rowsort label-1704
SELECT - NULLIF ( 5, - COUNT ( + + 23 ) - 82 ), COALESCE ( + - 29, - 72 / 73, 41 * + 16 ) AS col1
----
-5
-29

query I rowsort
SELECT ALL 67 - + + 27 AS col0
----
40

query II rowsort
SELECT - ( - - 88 ) AS col0, - 74 * - + 35
----
-88
2590

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

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * + 46 AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1708
SELECT - 20 + + - ( + COUNT( * ) ) DIV - MAX( 41 )
----
-20

skipif mysql # not compatible
query I rowsort label-1708
SELECT - 20 + + - ( + COUNT ( * ) ) / - MAX ( 41 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1709
SELECT - COALESCE ( - - COUNT( + - 81 ), - 87 * - 86 + - - CAST( NULL AS SIGNED ) + NULLIF ( - 12, - 52 * + 55 ), 39 * + 65 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1709
SELECT - COALESCE ( - - COUNT ( + - 81 ), - 87 * - 86 + - - CAST ( NULL AS INTEGER ) + NULLIF ( - 12, - 52 * + 55 ), 39 * + 65 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT + 96 * ( + - 98 ) * CAST( NULL AS SIGNED ) * - + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT + 96 * ( + - 98 ) * CAST ( NULL AS INTEGER ) * - + 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT DISTINCT SUM( + + NULLIF ( - 75, - 44 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT SUM ( + + NULLIF ( - 75, - 44 ) )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT ALL 84 * + - CAST( 75 AS SIGNED ) * 65
----
-409500

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL 84 * + - CAST ( 75 AS INTEGER ) * 65
----
-409500

onlyif mysql # DIV for integer division: 
query III rowsort label-1713
SELECT ALL 58 DIV + 80 AS col2, - 18 AS col2, - - 4
----
0
-18
4

skipif mysql # not compatible
query III rowsort label-1713
SELECT ALL 58 / + 80 AS col2, - 18 AS col2, - - 4
----
0
-18
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1714
SELECT + 37 DIV - 50 + 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1714
SELECT + 37 / - 50 + 68 AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1715
SELECT COALESCE ( - 83, 84, + COUNT( * ), 17 DIV - + 49 DIV SUM( ( + 99 ) ) DIV COUNT( * ) + 66 * 33 + 96 * 30 ) * + 39 col2
----
-3237

skipif mysql # not compatible
query I rowsort label-1715
SELECT COALESCE ( - 83, 84, + COUNT ( * ), 17 / - + 49 / SUM ( ( + 99 ) ) / COUNT ( * ) + 66 * 33 + 96 * 30 ) * + 39 col2
----
-3237

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1716
SELECT ALL - CASE + CASE - + AVG ( ALL - 32 ) WHEN + - 97 * - 50 + + - 21 * - 83 THEN NULL WHEN - ( + CAST( NULL AS DECIMAL ) ) * 57 THEN - 1 + - 80 ELSE + ( 87 ) END WHEN + 81 THEN 28 + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL - CASE + CASE - + AVG ( ALL - 32 ) WHEN + - 97 * - 50 + + - 21 * - 83 THEN NULL WHEN - ( + CAST ( NULL AS REAL ) ) * 57 THEN - 1 + - 80 ELSE + ( 87 ) END WHEN + 81 THEN 28 + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT - ( + + 71 ) * - - 91 - - 9 * - 23 + + ( + + COUNT( * ) ) col2
----
-6667

skipif mysql # not compatible
query I rowsort label-1717
SELECT - ( + + 71 ) * - - 91 - - 9 * - 23 + + ( + + COUNT ( * ) ) col2
----
-6667

query I rowsort
SELECT + 64 - 74
----
-10

query I rowsort
SELECT + 77 - + 98
----
-21

query I rowsort
SELECT 16 * - 36
----
-576

query I rowsort
SELECT DISTINCT + 46 * - 58 AS col1
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT + COUNT( - 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1722
SELECT + COUNT ( - 34 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1723
SELECT DISTINCT + 76 + ( - + 9 ) * 60 * - CASE - + 82 WHEN + COALESCE ( - 23, - 48 ) - 59 THEN 31 DIV - 43 END + - 74 * - MAX( DISTINCT - 5 )
----
-294

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + 76 + ( - + 9 ) * 60 * - CASE - + 82 WHEN + COALESCE ( - 23, - 48 ) - 59 THEN 31 / - 43 END + - 74 * - MAX ( DISTINCT - 5 )
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL NULLIF ( 14, + 5 ) * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL NULLIF ( 14, + 5 ) * + COUNT ( * )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1725
SELECT + 53 * 61 * - CAST( 69 AS SIGNED ) AS col2
----
-223077

skipif mysql # not compatible
query I rowsort label-1725
SELECT + 53 * 61 * - CAST ( 69 AS INTEGER ) AS col2
----
-223077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1726
SELECT COUNT( * ) * COALESCE ( + 22, 74 * + + ( + 28 ) DIV - 4 + 26 + ( ( 75 ) ) ) - + COUNT( * ) * 86 + - 86
----
-150

skipif mysql # not compatible
query I rowsort label-1726
SELECT COUNT ( * ) * COALESCE ( + 22, 74 * + + ( + 28 ) / - 4 + 26 + ( ( 75 ) ) ) - + COUNT ( * ) * 86 + - 86
----
-150

query II rowsort
SELECT DISTINCT 31 * + 30 AS col0, - 42 - + 3 * 29 * - + 95 AS col0
----
930
8223

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT + NULLIF ( + 69, - - 30 * + MAX( DISTINCT + 20 ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-1728
SELECT + NULLIF ( + 69, - - 30 * + MAX ( DISTINCT + 20 ) ) AS col2
----
69

query I rowsort
SELECT - 16 * - + 51 + - 89
----
727

query I rowsort
SELECT 62 * - - 76
----
4712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT MAX( + 61 ) + + 51 + - COALESCE ( - CAST( NULL AS SIGNED ), - 9 ) AS col2
----
121

skipif mysql # not compatible
query I rowsort label-1731
SELECT MAX ( + 61 ) + + 51 + - COALESCE ( - CAST ( NULL AS INTEGER ), - 9 ) AS col2
----
121

query I rowsort
SELECT 97 + - + 43
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT ALL + 91 DIV 42 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL + 91 / 42 AS col2
----
2

query II rowsort
SELECT DISTINCT - 35 AS col1, + 6
----
-35
6

query I rowsort
SELECT 74 + + 84
----
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1736
SELECT - 43 col0, 70 DIV 68 * + + SUM( + + 98 ) + - 79 + - COUNT( * ) - - + COUNT( * )
----
-43
19

skipif mysql # not compatible
query II rowsort label-1736
SELECT - 43 col0, 70 / 68 * + + SUM ( + + 98 ) + - 79 + - COUNT ( * ) - - + COUNT ( * )
----
-43
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1737
SELECT 82 * - - 98 + - + CAST( 84 AS SIGNED ) AS col1
----
7952

skipif mysql # not compatible
query I rowsort label-1737
SELECT 82 * - - 98 + - + CAST ( 84 AS INTEGER ) AS col1
----
7952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1738
SELECT ALL + 92 DIV - MIN( DISTINCT - + 42 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL + 92 / - MIN ( DISTINCT - + 42 ) AS col0
----
2

query I rowsort
SELECT 93 + + - 51 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT ALL + SUM( 7 ) * - 96 AS col1
----
-672

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + SUM ( 7 ) * - 96 AS col1
----
-672

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

skipif mysql # not compatible
query I rowsort label-1741
SELECT 2 + - 69 - + COUNT ( * ) AS col1
----
-68

query I rowsort
SELECT ALL + 19 * - 70
----
-1330

query I rowsort
SELECT 9 * - 81
----
-729

query II rowsort
SELECT 83 + ( + 48 ) AS col0, - ( - 73 ) col2
----
131
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT 18 + - 26 * - CAST( NULL AS SIGNED )
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1747
SELECT 11 * - ( + CAST( NULL AS SIGNED ) ) * 86 * - MIN( DISTINCT 85 ) + - ( - 40 ) * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT 11 * - ( + CAST ( NULL AS INTEGER ) ) * 86 * - MIN ( DISTINCT 85 ) + - ( - 40 ) * 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT COUNT( * ) + + - 32 - + COALESCE ( - 96, + 16, + 39 + + 71 )
----
65

skipif mysql # not compatible
query I rowsort label-1748
SELECT COUNT ( * ) + + - 32 - + COALESCE ( - 96, + 16, + 39 + + 71 )
----
65

query I rowsort
SELECT 27 + + 46 * - - 5 AS col0
----
257

query II rowsort
SELECT ALL + 85 * - - ( 98 ), - 93 AS col2
----
8330
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT + COALESCE ( 44, - 32 ) * - - 0 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-1751
SELECT + COALESCE ( 44, - 32 ) * - - 0 / + 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT ALL + - ( - 17 ) DIV 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL + - ( - 17 ) / 4 AS col1
----
4

query I rowsort
SELECT NULLIF ( ( - + 7 ), - 92 )
----
-7

query II rowsort
SELECT - 48, 98 * 43 col2
----
-48
4214

query I rowsort
SELECT 51 + + 83 - + 61 * 82 * + 89 col1
----
-445044

onlyif mysql # DIV for integer division: 
query I rowsort label-1756
SELECT + + 69 DIV 6 + 35 + + + 75
----
121

skipif mysql # not compatible
query I rowsort label-1756
SELECT + + 69 / 6 + 35 + + + 75
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1757
SELECT 28 DIV + 33 + + 0 AS col2, - 78 * - CASE + 2 WHEN + 45 THEN + + 89 * COUNT( * ) + - 66 ELSE NULL END * 22 - - 45
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1757
SELECT 28 / + 33 + + 0 AS col2, - 78 * - CASE + 2 WHEN + 45 THEN + + 89 * COUNT ( * ) + - 66 ELSE NULL END * 22 - - 45
----
0
NULL

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

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

query I rowsort
SELECT ALL - 16 + + + 61 + - 63 AS col2
----
-18

query I rowsort
SELECT DISTINCT + - 22 + + ( - 94 )
----
-116

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

query II rowsort
SELECT ALL - 10 col0, 5 AS col2
----
-10
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1763
SELECT + + 54 AS col1, CAST( - COUNT( * ) AS SIGNED ) + - 75 AS col1
----
54
-76

skipif mysql # not compatible
query II rowsort label-1763
SELECT + + 54 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) + - 75 AS col1
----
54
-76

query I rowsort
SELECT ALL 20 + - 99 - + 51 * + 74
----
-3853

query I rowsort
SELECT ALL - 98 + - 58 AS col2
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1766
SELECT + 13 DIV COALESCE ( - 31, 55 + + + SUM( ALL - 24 ) * + CAST( NULL AS SIGNED ) * + 29 ) - + 39 DIV 46 - + COUNT( * ) * 62 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-1766
SELECT + 13 / COALESCE ( - 31, 55 + + + SUM ( ALL - 24 ) * + CAST ( NULL AS INTEGER ) * + 29 ) - + 39 / 46 - + COUNT ( * ) * 62 AS col0
----
-62

query II rowsort
SELECT + + 92 AS col1, + ( 89 )
----
92
89

query I rowsort
SELECT ALL 22 + - 24 * + 97
----
-2306

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

skipif mysql # not compatible
query I rowsort label-1769
SELECT CAST ( - - 91 AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 27 * 90 AS col0
----
2430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1771
SELECT DISTINCT - ( NULLIF ( - - 27, + 26 / + 38 + + 55 + CAST( NULL AS SIGNED ) * + ( - 51 ) ) ) - - 51 * 59
----
2982

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT - ( NULLIF ( - - 27, + 26 / + 38 + + 55 + CAST ( NULL AS INTEGER ) * + ( - 51 ) ) ) - - 51 * 59
----
2982

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL COUNT( - + 45 ) * - 85
----
-85

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL COUNT ( - + 45 ) * - 85
----
-85

query I rowsort
SELECT 92 * 2
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1774
SELECT - CASE COUNT( * ) WHEN ( COUNT( * ) ) DIV + 60 - + - COUNT( - 16 ) THEN - 57 - + 28 WHEN - 42 THEN CASE + 62 WHEN 22 DIV - 98 + - 69 * - COUNT( * ) THEN - 86 WHEN + ( + 13 ) THEN NULL WHEN - 86 THEN + 88 * 82 WHEN 94 * + 28 + + COUNT( * ) THEN NULL ELSE + 81 * 49 + + 84 * - 70 END END AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1774
SELECT - CASE COUNT ( * ) WHEN ( COUNT ( * ) ) / + 60 - + - COUNT ( - 16 ) THEN - 57 - + 28 WHEN - 42 THEN CASE + 62 WHEN 22 / - 98 + - 69 * - COUNT ( * ) THEN - 86 WHEN + ( + 13 ) THEN NULL WHEN - 86 THEN + 88 * 82 WHEN 94 * + 28 + + COUNT ( * ) THEN NULL ELSE + 81 * 49 + + 84 * - 70 END END AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1775
SELECT - 73 DIV + 17 * - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-1775
SELECT - 73 / + 17 * - COUNT ( * )
----
4

query I rowsort
SELECT ALL - 16 * 89 AS col1
----
-1424

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1777
SELECT DISTINCT 13 / CAST( NULL AS SIGNED ), 84 AS col1
----
NULL
84

skipif mysql # not compatible
query II rowsort label-1777
SELECT DISTINCT 13 / CAST ( NULL AS INTEGER ), 84 AS col1
----
NULL
84

query I rowsort
SELECT - 84 * - 60 col0
----
5040

query II rowsort
SELECT - 43 * - 62 AS col0, + 8
----
2666
8

query I rowsort
SELECT DISTINCT + 71 * + 37 * 20
----
52540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1781
SELECT - CAST( NULL AS SIGNED ) * + - 43 + - ( - - 25 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT - CAST ( NULL AS INTEGER ) * + - 43 + - ( - - 25 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 62 + + 1
----
-61

query I rowsort
SELECT - - 6 * + 15 AS col0
----
90

query I rowsort
SELECT - 76 + + - 38
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1785
SELECT - MIN( ALL 67 ) AS col0, - 14 * - - CAST( - CAST( CASE 24 WHEN + 36 * 57 * 64 THEN COALESCE ( 39, COALESCE ( 94, 97 * + 39, + 26 / - ( - 1 ) ), + MAX( DISTINCT 99 ) * - 83 + - 8 ) END AS SIGNED ) AS SIGNED ) AS col1
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-1785
SELECT - MIN ( ALL 67 ) AS col0, - 14 * - - CAST ( - CAST ( CASE 24 WHEN + 36 * 57 * 64 THEN COALESCE ( 39, COALESCE ( 94, 97 * + 39, + 26 / - ( - 1 ) ), + MAX ( DISTINCT 99 ) * - 83 + - 8 ) END AS INTEGER ) AS INTEGER ) AS col1
----
-67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT - 90 + ( 21 ) * + COALESCE ( 23, COUNT( * ) * + + COALESCE ( - + 27, - + 27 ) ) + 39 * 55
----
2538

skipif mysql # not compatible
query I rowsort label-1786
SELECT - 90 + ( 21 ) * + COALESCE ( 23, COUNT ( * ) * + + COALESCE ( - + 27, - + 27 ) ) + 39 * 55
----
2538

query I rowsort
SELECT ALL + 62 + + 59
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL + MAX( 39 ) * CASE - - CASE - - 95 WHEN + - 56 THEN NULL ELSE COUNT( * ) * + ( 17 ) + COUNT( * ) END WHEN - 58 + 0 THEN 89 - + CASE 23 + + 51 WHEN + 23 THEN COALESCE ( + 80, + COUNT( + 74 ), 98 * + 28 ) WHEN 80 * COUNT( * ) THEN 7 * 17 ELSE - 84 END * - 47 END * + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL + MAX ( 39 ) * CASE - - CASE - - 95 WHEN + - 56 THEN NULL ELSE COUNT ( * ) * + ( 17 ) + COUNT ( * ) END WHEN - 58 + 0 THEN 89 - + CASE 23 + + 51 WHEN + 23 THEN COALESCE ( + 80, + COUNT ( + 74 ), 98 * + 28 ) WHEN 80 * COUNT ( * ) THEN 7 * 17 ELSE - 84 END * - 47 END * + 96 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL - 14 * NULLIF ( 92, - ( ( COUNT( * ) ) ) ) - + 63 + + 74 + - + 56 * COUNT( * ) AS col2
----
-1333

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL - 14 * NULLIF ( 92, - ( ( COUNT ( * ) ) ) ) - + 63 + + 74 + - + 56 * COUNT ( * ) AS col2
----
-1333

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1791
SELECT DISTINCT - 68 DIV 68 DIV - SUM( ALL + 48 ) + + - ( 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT - 68 / 68 / - SUM ( ALL + 48 ) + + - ( 97 ) AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1792
SELECT + CASE + 81 WHEN + MAX( DISTINCT - 12 ) THEN - + ( 50 ) END * + ( - COUNT( * ) ) + - 64 + ( SUM( 47 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT + CASE + 81 WHEN + MAX ( DISTINCT - 12 ) THEN - + ( 50 ) END * + ( - COUNT ( * ) ) + - 64 + ( SUM ( 47 ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 57 * - ( + + 25 ) - 74 * 41 AS col1
----
-1609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1794
SELECT + 86 * 62 * - 7 + COUNT( * ) col2, 25 / - CASE + 80 WHEN NULLIF ( + CAST( NULL AS SIGNED ), 82 ) THEN 72 WHEN 20 THEN NULL END
----
-37323
NULL

skipif mysql # not compatible
query II rowsort label-1794
SELECT + 86 * 62 * - 7 + COUNT ( * ) col2, 25 / - CASE + 80 WHEN NULLIF ( + CAST ( NULL AS INTEGER ), 82 ) THEN 72 WHEN 20 THEN NULL END
----
-37323
NULL

query I rowsort
SELECT + 75 - ( + - 53 ) * - 11 * + 35 col0
----
-20330

query II rowsort
SELECT ALL + ( - 47 ), - 84 AS col2
----
-47
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1797
SELECT ALL + ( + 44 ) * + - 47 - - CAST( NULL AS SIGNED ) * + - 48 + - - 58 + + + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + ( + 44 ) * + - 47 - - CAST ( NULL AS INTEGER ) * + - 48 + - - 58 + + + 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT ALL - SUM( 11 ) * NULLIF ( + + COALESCE ( + 50, + 57, - - 83 + + ( 97 ), + 14 + + 80 ), 42 ) * + 79 col2
----
-43450

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL - SUM ( 11 ) * NULLIF ( + + COALESCE ( + 50, + 57, - - 83 + + ( 97 ), + 14 + + 80 ), 42 ) * + 79 col2
----
-43450

query II rowsort
SELECT ALL + 51 AS col1, + 56
----
51
56

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

skipif mysql # not compatible
query I rowsort label-1800
SELECT + CAST ( 53 AS INTEGER ) + - - 24 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT CASE WHEN 54 IS NOT NULL THEN NULL ELSE + 68 * - + MIN( + ( 0 ) ) - COALESCE ( - - 94, - 64 ) + - 94 / 66 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT CASE WHEN 54 IS NOT NULL THEN NULL ELSE + 68 * - + MIN ( + ( 0 ) ) - COALESCE ( - - 94, - 64 ) + - 94 / 66 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1802
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) + - COALESCE ( 48, - ( 19 ) * + 73 * + + 91 * + 95 - + CASE 81 WHEN 95 THEN NULL ELSE MIN( 99 ) * ( 51 * - 89 ) END, CASE WHEN SUM( DISTINCT 55 ) <> 36 * + CAST( NULL AS SIGNED ) THEN 73 END + + 69 / + 61 ) + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - COALESCE ( 48, - ( 19 ) * + 73 * + + 91 * + 95 - + CASE 81 WHEN 95 THEN NULL ELSE MIN ( 99 ) * ( 51 * - 89 ) END, CASE WHEN SUM ( DISTINCT 55 ) <> 36 * + CAST ( NULL AS INTEGER ) THEN 73 END + + 69 / + 61 ) + 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1803
SELECT ALL 51 DIV 90 DIV + CAST( - - 40 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL 51 / 90 / + CAST ( - - 40 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1804
SELECT DISTINCT 80 DIV 41 * 64 * - 41 AS col2
----
-2624

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT 80 / 41 * 64 * - 41 AS col2
----
-2624

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT CASE + - 52 WHEN - 95 / - 50 THEN 57 + + 60 WHEN 77 THEN 39 * + 2 + - 16 + 4 ELSE COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1806
SELECT CASE + - 52 WHEN - 95 / - 50 THEN 57 + + 60 WHEN 77 THEN 39 * + 2 + - 16 + 4 ELSE COUNT ( * ) END AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1807
SELECT + COALESCE ( - + ( - MIN( DISTINCT 53 ) ), - + 22, 71 DIV 74 + + 50 + - 51 * + 18, - CASE COUNT( DISTINCT CAST( 13 AS SIGNED ) ) WHEN 34 - 87 THEN - 95 END ) + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-1807
SELECT + COALESCE ( - + ( - MIN ( DISTINCT 53 ) ), - + 22, 71 / 74 + + 50 + - 51 * + 18, - CASE COUNT ( DISTINCT CAST ( 13 AS INTEGER ) ) WHEN 34 - 87 THEN - 95 END ) + COUNT ( * ) AS col0
----
54

query I rowsort
SELECT + 97 * + 26
----
2522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1809
SELECT ALL 8 * + ( + COUNT( * ) ) * - 28 * + ( + - COALESCE ( + 36, - + 28 * - 24 DIV + 92 DIV 77 - 0 ) ) * - 93
----
-749952

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL 8 * + ( + COUNT ( * ) ) * - 28 * + ( + - COALESCE ( + 36, - + 28 * - 24 / + 92 / 77 - 0 ) ) * - 93
----
-749952

query I rowsort
SELECT + 14 + 25 + 22 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT - COALESCE ( 18, 1 * - - 48 ) * - 94 * 54 + COUNT( * ) + 43 * + + 68 AS col0
----
94293

skipif mysql # not compatible
query I rowsort label-1811
SELECT - COALESCE ( 18, 1 * - - 48 ) * - 94 * 54 + COUNT ( * ) + 43 * + + 68 AS col0
----
94293

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

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

query I rowsort
SELECT ALL 61 * 21 col0
----
1281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1814
SELECT + 67 + CAST( + 77 AS SIGNED ) + - 63 * - - CASE 48 WHEN + CAST( NULL AS SIGNED ) * - 21 + 91 + + + 98 * 86 THEN COUNT( * ) - CAST( 59 AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT + 67 + CAST ( + 77 AS INTEGER ) + - 63 * - - CASE 48 WHEN + CAST ( NULL AS INTEGER ) * - 21 + 91 + + + 98 * 86 THEN COUNT ( * ) - CAST ( 59 AS INTEGER ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 73 * - + 27 AS col0
----
-1971

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL CASE - MIN( DISTINCT - 0 ) WHEN + 81 THEN + + 58 * + + 21 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL CASE - MIN ( DISTINCT - 0 ) WHEN + 81 THEN + + 58 * + + 21 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT + 43 + - - COUNT( ALL + 26 ) + - 89 + - 78 * + 8
----
-669

skipif mysql # not compatible
query I rowsort label-1817
SELECT + 43 + - - COUNT ( ALL + 26 ) + - 89 + - 78 * + 8
----
-669

query I rowsort
SELECT ALL + 57 + - - 16
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1819
SELECT + MAX( ALL - 17 ) + - COUNT( * ) DIV + ( CAST( 10 AS SIGNED ) )
----
-17

skipif mysql # not compatible
query I rowsort label-1819
SELECT + MAX ( ALL - 17 ) + - COUNT ( * ) / + ( CAST ( 10 AS INTEGER ) )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1820
SELECT - 19 DIV - 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1820
SELECT - 19 / - 44 AS col0
----
0

query I rowsort
SELECT + 31 * + 79
----
2449

onlyif mysql # aggregate syntax: 
query II rowsort label-1822
SELECT - 37 + - 48 + + + COUNT( * ) * - 76 + 15 AS col0, ( + - 27 )
----
-146
-27

skipif mysql # not compatible
query II rowsort label-1822
SELECT - 37 + - 48 + + + COUNT ( * ) * - 76 + 15 AS col0, ( + - 27 )
----
-146
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT ALL MIN( DISTINCT 35 )
----
35

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL MIN ( DISTINCT 35 )
----
35

query I rowsort
SELECT - - 72 + + - 59
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT - + AVG ( DISTINCT - + NULLIF ( - - CAST( 98 AS SIGNED ), 47 ) ) + - - 95 * + 20 * - 96 * COUNT( * ) + CAST( CASE 90 WHEN + 68 * + 74 THEN 19 WHEN + 39 THEN - 48 END AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT - + AVG ( DISTINCT - + NULLIF ( - - CAST ( 98 AS INTEGER ), 47 ) ) + - - 95 * + 20 * - 96 * COUNT ( * ) + CAST ( CASE 90 WHEN + 68 * + 74 THEN 19 WHEN + 39 THEN - 48 END AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1826
SELECT ALL - - 9 + - + ( - + 12 ) + + 87 + - 41 + - 21 DIV + 75 * - - 37 * + 84 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL - - 9 + - + ( - + 12 ) + + 87 + - 41 + - 21 / + 75 * - - 37 * + 84 AS col2
----
67

query I rowsort
SELECT - 96 + - 50 + 2
----
-144

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

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL + - 34 * + - 2 * COUNT ( * ) AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT - ( + 37 ) DIV - 25 - + 46 + - + 39 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1829
SELECT - ( + 37 ) / - 25 - + 46 + - + 39 AS col2
----
-84

query I rowsort
SELECT DISTINCT + + 84 + + 78 AS col0
----
162

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - MAX( + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-1832
SELECT - MAX ( + 33 )
----
-33

query I rowsort
SELECT ALL - + 5 * - CASE + - 24 WHEN - 67 THEN + 20 WHEN - - 83 THEN NULL ELSE NULL END + + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT DISTINCT - - 55 * NULLIF ( - - 79, - NULLIF ( - + 18, - COALESCE ( + 14, + MIN( ALL - 80 ) ) * - + 26 + + 86 ) + + ( - 98 + 18 ) ) + + 2 * 80 AS col2
----
4505

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT - - 55 * NULLIF ( - - 79, - NULLIF ( - + 18, - COALESCE ( + 14, + MIN ( ALL - 80 ) ) * - + 26 + + 86 ) + + ( - 98 + 18 ) ) + + 2 * 80 AS col2
----
4505

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1835
SELECT - ( - - 76 ) DIV - COALESCE ( + 42, + 44 * + 14 ) + - CAST( 59 AS SIGNED ) + - 25 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-1835
SELECT - ( - - 76 ) / - COALESCE ( + 42, + 44 * + 14 ) + - CAST ( 59 AS INTEGER ) + - 25 AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1836
SELECT ALL 42 DIV - CASE 72 WHEN + + 55 THEN + - 51 - + - 23 - - - 15 WHEN 80 DIV - 70 THEN 1 ELSE 18 END - - 5 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL 42 / - CASE 72 WHEN + + 55 THEN + - 51 - + - 23 - - - 15 WHEN 80 / - 70 THEN 1 ELSE 18 END - - 5 AS col1
----
3

query I rowsort
SELECT - 26 * 10 AS col2
----
-260

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1838
SELECT ALL 32 DIV + 11 - - CAST( - 10 AS SIGNED ) * 97 AS col1
----
-968

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL 32 / + 11 - - CAST ( - 10 AS INTEGER ) * 97 AS col1
----
-968

onlyif mysql # DIV for integer division: 
query II rowsort label-1839
SELECT ALL + 73 col0, + 71 DIV NULLIF ( - 16, + 87 )
----
73
-4

skipif mysql # not compatible
query II rowsort label-1839
SELECT ALL + 73 col0, + 71 / NULLIF ( - 16, + 87 )
----
73
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT ALL - 60 DIV - + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL - 60 / - + 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT - COUNT( * ) * - 97 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1841
SELECT - COUNT ( * ) * - 97 AS col1
----
97

query I rowsort
SELECT + 51 + + + 55 + - 20
----
86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1843
SELECT + CASE + 83 WHEN - 13 + CAST( NULL AS SIGNED ) THEN 97 WHEN + COALESCE ( + + CAST( NULL AS DECIMAL ), - 8 ) * - 85 + + ( - 54 ) + 78 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1843
SELECT + CASE + 83 WHEN - 13 + CAST ( NULL AS INTEGER ) THEN 97 WHEN + COALESCE ( + + CAST ( NULL AS REAL ), - 8 ) * - 85 + + ( - 54 ) + 78 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1844
SELECT DISTINCT - COALESCE ( + 75, - + ( + - 39 ) * - MAX( - ( + - 42 ) ) + - CAST( + - 14 AS SIGNED ), 80 ) * + COALESCE ( 86, + MAX( ALL + 15 ) )
----
-6450

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT - COALESCE ( + 75, - + ( + - 39 ) * - MAX ( - ( + - 42 ) ) + - CAST ( + - 14 AS INTEGER ), 80 ) * + COALESCE ( 86, + MAX ( ALL + 15 ) )
----
-6450

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1846
SELECT - 97 DIV - + 27 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1846
SELECT - 97 / - + 27 AS col0
----
3

query II rowsort
SELECT 37 AS col2, 88
----
37
88

query I rowsort
SELECT DISTINCT + 43 + + 32
----
75

query II rowsort
SELECT ALL - 92 AS col2, + 62 AS col2
----
-92
62

query I rowsort
SELECT 37 * + 73 * ( - 82 )
----
-221482

query I rowsort
SELECT ALL 55 + + 31
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT COUNT( * ) / CASE 31 WHEN - 30 - + 79 THEN - - 78 * + + 46 WHEN + + ( - ( 68 ) ) THEN NULL ELSE 75 * + CASE 78 WHEN + 31 + 52 THEN - NULLIF ( COUNT( DISTINCT 12 ), + SUM( + 77 ) / 38 ) ELSE NULL END + + 74 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT COUNT ( * ) / CASE 31 WHEN - 30 - + 79 THEN - - 78 * + + 46 WHEN + + ( - ( 68 ) ) THEN NULL ELSE 75 * + CASE 78 WHEN + 31 + 52 THEN - NULLIF ( COUNT ( DISTINCT 12 ), + SUM ( + 77 ) / 38 ) ELSE NULL END + + 74 END AS col0
----
NULL

query II rowsort
SELECT 75 AS col0, + 40 + + - 99
----
75
-59

query II rowsort
SELECT - 26 col2, - 84 - + ( - 1 ) * 92 AS col0
----
-26
8

query I rowsort
SELECT 62 * 6
----
372

query II rowsort
SELECT 36 AS col0, + 94 - - + 30
----
36
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1857
SELECT DISTINCT + 93 + - 70 + - COUNT( 11 ) - + + 90 + + 72 DIV - COUNT( * ) + 38 + 69 * 55
----
3693

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT + 93 + - 70 + - COUNT ( 11 ) - + + 90 + + 72 / - COUNT ( * ) + 38 + 69 * 55
----
3693

query II rowsort
SELECT ALL 39 AS col2, + 38 AS col0
----
39
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL + CASE - 47 WHEN COUNT( * ) THEN + COUNT( ALL + 80 ) END + + 75 + + 26 * + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL + CASE - 47 WHEN COUNT ( * ) THEN + COUNT ( ALL + 80 ) END + + 75 + + 26 * + 64 AS col2
----
NULL

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

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

query II rowsort
SELECT - 0 AS col2, 50 AS col1
----
0
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1862
SELECT COUNT( * ) * COUNT( * ) + - - MIN( 64 ) DIV - 3
----
-20

skipif mysql # not compatible
query I rowsort label-1862
SELECT COUNT ( * ) * COUNT ( * ) + - - MIN ( 64 ) / - 3
----
-20

query I rowsort
SELECT ALL 86 * + - 16 AS col1
----
-1376

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1865
SELECT - ( + 77 ) AS col1, 40 DIV + 76 AS col0
----
-77
0

skipif mysql # not compatible
query II rowsort label-1865
SELECT - ( + 77 ) AS col1, 40 / + 76 AS col0
----
-77
0

query I rowsort
SELECT 55 + - ( ( 50 ) )
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1867
SELECT + 34 AS col2, - 67 + 76 + + - 93 + - 64 DIV - 93 + - 51 AS col2
----
34
-135

skipif mysql # not compatible
query II rowsort label-1867
SELECT + 34 AS col2, - 67 + 76 + + - 93 + - 64 / - 93 + - 51 AS col2
----
34
-135

query I rowsort
SELECT - 97 + 8 * - 47 * ( - 22 ) AS col2
----
8175

query II rowsort
SELECT DISTINCT + 90 AS col1, 24
----
90
24

query I rowsort
SELECT 78 + + 67 AS col0
----
145

query I rowsort
SELECT 89 * 94 + - 80 * + 87
----
1406

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT DISTINCT MAX( - + 84 ) * + + 89 + - COUNT( - 27 ) AS col1
----
-7477

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT MAX ( - + 84 ) * + + 89 + - COUNT ( - 27 ) AS col1
----
-7477

query I rowsort
SELECT ( + + 37 ) + 76 AS col0
----
113

query I rowsort
SELECT ALL + 28 * - 17 col1
----
-476

query I rowsort
SELECT 38 * - 42 + + - 57 AS col1
----
-1653

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT 22 - - - COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1876
SELECT 22 - - - COUNT ( * ) AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1877
SELECT MAX( ( + + CAST( NULL AS SIGNED ) ) ) * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT MAX ( ( + + CAST ( NULL AS INTEGER ) ) ) * - 27
----
NULL

query I rowsort
SELECT DISTINCT - 56 * - 92
----
5152

query I rowsort
SELECT ALL + ( - 52 ) + 2 AS col1
----
-50

query II rowsort
SELECT DISTINCT + 11 + + 32 AS col0, - 20 + + 3 * + - 2 AS col0
----
43
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1881
SELECT DISTINCT - CAST( - ( - 14 ) AS SIGNED ) + 37 * + 45 AS col2
----
1651

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT - CAST ( - ( - 14 ) AS INTEGER ) + 37 * + 45 AS col2
----
1651

onlyif mysql # aggregate syntax: 
query II rowsort label-1882
SELECT ALL 55 + 23, + NULLIF ( - - SUM( 86 ), - - COUNT( * ) + - MAX( ALL - 24 ) ) AS col0
----
78
86

skipif mysql # not compatible
query II rowsort label-1882
SELECT ALL 55 + 23, + NULLIF ( - - SUM ( 86 ), - - COUNT ( * ) + - MAX ( ALL - 24 ) ) AS col0
----
78
86

query I rowsort
SELECT 43 + - 69 AS col2
----
-26

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

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

query I rowsort
SELECT ALL + + 26 + + 48 * + 42
----
2042

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL 18 - + COUNT( * ) - 5
----
12

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL 18 - + COUNT ( * ) - 5
----
12

query I rowsort
SELECT - ( - - 5 ) + - 50 AS col1
----
-55

query I rowsort
SELECT - ( + 75 ) + - ( - 55 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT ALL 98 - + + CASE - CASE + - 46 WHEN + 44 / - 47 + + - COUNT( * ) THEN NULL ELSE - 19 END WHEN - + 51 THEN + 97 / + 10 - + 99 + - 5 WHEN + 80 THEN + ( 55 ) * 34 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL 98 - + + CASE - CASE + - 46 WHEN + 44 / - 47 + + - COUNT ( * ) THEN NULL ELSE - 19 END WHEN - + 51 THEN + 97 / + 10 - + 99 + - 5 WHEN + 80 THEN + ( 55 ) * 34 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1890
SELECT - COALESCE ( + 91, - - COUNT( * ) DIV 41 + 60 - COUNT( * ) ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-1890
SELECT - COALESCE ( + 91, - - COUNT ( * ) / 41 + 60 - COUNT ( * ) ) col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1891
SELECT 13 + - 28 + + 81 + - NULLIF ( - 72, - + ( - CAST( - + 92 AS SIGNED ) ) ) * 47 + + 59 DIV + 95
----
3450

skipif mysql # not compatible
query I rowsort label-1891
SELECT 13 + - 28 + + 81 + - NULLIF ( - 72, - + ( - CAST ( - + 92 AS INTEGER ) ) ) * 47 + + 59 / + 95
----
3450

onlyif mysql # aggregate syntax: 
query II rowsort label-1892
SELECT COUNT( * ) * + 66 AS col1, 36 * COUNT( * ) * - 5
----
66
-180

skipif mysql # not compatible
query II rowsort label-1892
SELECT COUNT ( * ) * + 66 AS col1, 36 * COUNT ( * ) * - 5
----
66
-180

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1894
SELECT DISTINCT 31 col2, 23 DIV + + COALESCE ( - - ( + 85 ), - + 91 * - 12 + - 43 * - ( - COUNT( * ) ), - - COUNT( * ) * - 87 )
----
31
0

skipif mysql # not compatible
query II rowsort label-1894
SELECT DISTINCT 31 col2, 23 / + + COALESCE ( - - ( + 85 ), - + 91 * - 12 + - 43 * - ( - COUNT ( * ) ), - - COUNT ( * ) * - 87 )
----
31
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1895
SELECT CASE + - COUNT( * ) WHEN - 25 THEN - 84 WHEN 10 THEN 4 * + + 76 ELSE COUNT( * ) END DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-1895
SELECT CASE + - COUNT ( * ) WHEN - 25 THEN - 84 WHEN 10 THEN 4 * + + 76 ELSE COUNT ( * ) END / + 87
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT CAST( NULL AS SIGNED ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT CAST ( NULL AS INTEGER ) * - 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1897
SELECT ALL + CAST( NULL AS SIGNED ) * + SUM( - 81 ) + - + 3 + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL + CAST ( NULL AS INTEGER ) * + SUM ( - 81 ) + - + 3 + 63
----
NULL

query II rowsort
SELECT DISTINCT + 65 * + 51 + 45 AS col1, 6 AS col2
----
3360
6

query II rowsort
SELECT ALL + 57 col2, - 16
----
57
-16

query I rowsort
SELECT + 26 * 12 AS col1
----
312

query I rowsort
SELECT ALL - 70 * - 23
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT ALL + 66 * - COUNT( * ) + - 79 * - 21 - + 29 + - - 47 * - 99
----
-3089

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL + 66 * - COUNT ( * ) + - 79 * - 21 - + 29 + - - 47 * - 99
----
-3089

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

skipif mysql # not compatible
query I rowsort label-1903
SELECT + 55 / - + 14
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT - 3 * - - 53 + MAX( + 36 ) - - + 85 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1904
SELECT - 3 * - - 53 + MAX ( + 36 ) - - + 85 AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1905
SELECT COALESCE ( + - 0, + 67 DIV 60 + - - 48, + 9 ) col2, - 98 + - CASE - - COUNT( * ) WHEN COUNT( * ) * - 19 + - - ( - MAX( + 69 ) ) THEN NULL WHEN 87 + + 47 THEN 34 + 57 ELSE NULL END col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1905
SELECT COALESCE ( + - 0, + 67 / 60 + - - 48, + 9 ) col2, - 98 + - CASE - - COUNT ( * ) WHEN COUNT ( * ) * - 19 + - - ( - MAX ( + 69 ) ) THEN NULL WHEN 87 + + 47 THEN 34 + 57 ELSE NULL END col0
----
0
NULL

query I rowsort
SELECT + 32 * - + 99 AS col2
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT DISTINCT - 50 * MIN( ALL - 63 ) + + 69
----
3219

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT - 50 * MIN ( ALL - 63 ) + + 69
----
3219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1908
SELECT + NULLIF ( COUNT( * ), + + 99 + - 77 / + + 98 / + 97 - + CAST( NULL AS SIGNED ) * 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1908
SELECT + NULLIF ( COUNT ( * ), + + 99 + - 77 / + + 98 / + 97 - + CAST ( NULL AS INTEGER ) * 27 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT 98 * + - COUNT( * ) * - + MIN( DISTINCT - - 13 ) + + - 61
----
1213

skipif mysql # not compatible
query I rowsort label-1909
SELECT 98 * + - COUNT ( * ) * - + MIN ( DISTINCT - - 13 ) + + - 61
----
1213

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT - CASE + 37 WHEN + 77 THEN - + COALESCE ( - NULLIF ( - 17, + COUNT( * ) ), + COUNT( * ) ) * + + 63 ELSE + 69 + ( + - 23 ) END * + + 59 + 90 AS col1
----
-2624

skipif mysql # not compatible
query I rowsort label-1910
SELECT - CASE + 37 WHEN + 77 THEN - + COALESCE ( - NULLIF ( - 17, + COUNT ( * ) ), + COUNT ( * ) ) * + + 63 ELSE + 69 + ( + - 23 ) END * + + 59 + 90 AS col1
----
-2624

query II rowsort
SELECT ALL + 17 AS col0, ( ( - - 81 ) ) AS col2
----
17
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1912
SELECT COUNT( * ), 48 * - 96 AS col2
----
1
-4608

skipif mysql # not compatible
query II rowsort label-1912
SELECT COUNT ( * ), 48 * - 96 AS col2
----
1
-4608

query II rowsort
SELECT ALL + 23 * - + 26 - - 82, - 42 AS col1
----
-516
-42

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

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

query I rowsort
SELECT ALL - 47 * + 86 + - - 22 - + 71
----
-4091

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT - 12, - COALESCE ( + ( 61 ), - MIN( DISTINCT + 44 ) ) AS col0
----
-12
-61

skipif mysql # not compatible
query II rowsort label-1916
SELECT - 12, - COALESCE ( + ( 61 ), - MIN ( DISTINCT + 44 ) ) AS col0
----
-12
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT - SUM( + - 53 ) * + 82 + 56 col0
----
4402

skipif mysql # not compatible
query I rowsort label-1917
SELECT - SUM ( + - 53 ) * + 82 + 56 col0
----
4402

query I rowsort
SELECT ALL + 52 - - 7
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT - CASE - 52 WHEN + - 49 THEN NULL ELSE + MIN( ALL + 70 ) END
----
-70

skipif mysql # not compatible
query I rowsort label-1919
SELECT - CASE - 52 WHEN + - 49 THEN NULL ELSE + MIN ( ALL + 70 ) END
----
-70

query I rowsort
SELECT - + 13 * 36 AS col2
----
-468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1921
SELECT + + 8 * CAST( SUM( ALL + 12 ) AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-1921
SELECT + + 8 * CAST ( SUM ( ALL + 12 ) AS INTEGER ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT - - CASE 92 WHEN + 92 / COALESCE ( + 74, - 28 * 16, + 70 ) + - + CASE - 68 WHEN - 43 THEN + ( + + 18 ) * + NULLIF ( COUNT( * ) + - ( 38 ), 52 ) END * - ( 53 ) THEN NULL WHEN + 74 * 16 THEN + 2 * 27 + 75 WHEN ( COUNT( 19 ) ) THEN + 50 / + 57 END - ( - 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT - - CASE 92 WHEN + 92 / COALESCE ( + 74, - 28 * 16, + 70 ) + - + CASE - 68 WHEN - 43 THEN + ( + + 18 ) * + NULLIF ( COUNT ( * ) + - ( 38 ), 52 ) END * - ( 53 ) THEN NULL WHEN + 74 * 16 THEN + 2 * 27 + 75 WHEN ( COUNT ( 19 ) ) THEN + 50 / + 57 END - ( - 5 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1923
SELECT ALL 32 DIV - CAST( - 13 AS SIGNED ) AS col1, 54 * 92 + + 60 AS col1
----
2
5028

skipif mysql # not compatible
query II rowsort label-1923
SELECT ALL 32 / - CAST ( - 13 AS INTEGER ) AS col1, 54 * 92 + + 60 AS col1
----
2
5028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1924
SELECT - NULLIF ( 19, - 92 - 44 DIV - - 26 + + 84 ) DIV + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-1924
SELECT - NULLIF ( 19, - 92 - 44 / - - 26 + + 84 ) / + COUNT ( * )
----
-19

query II rowsort
SELECT ALL 81 col1, 74 AS col1
----
81
74

query I rowsort
SELECT + + 81 * 75 col2
----
6075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1927
SELECT - CAST( 56 AS SIGNED ) + 49 + 50
----
43

skipif mysql # not compatible
query I rowsort label-1927
SELECT - CAST ( 56 AS INTEGER ) + 49 + 50
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1928
SELECT DISTINCT ( + 94 ) + - COALESCE ( - 41, COUNT( * ) - - CAST( + 89 AS SIGNED ) ) - 50 - - 57 DIV - COUNT( * ) + + 99 col0
----
127

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT ( + 94 ) + - COALESCE ( - 41, COUNT ( * ) - - CAST ( + 89 AS INTEGER ) ) - 50 - - 57 / - COUNT ( * ) + + 99 col0
----
127

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT ALL CAST( NULL AS SIGNED ) + + 49 + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL CAST ( NULL AS INTEGER ) + + 49 + 87 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1931
SELECT ALL + COUNT( * ) + + CAST( NULL AS DECIMAL ), 42 AS col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-1931
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS REAL ), 42 AS col2
----
NULL
42

query I rowsort
SELECT + 27 + + 37
----
64

query I rowsort
SELECT + NULLIF ( - 98, + 92 * - 23 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1934
SELECT + 38 * + 93 * - CAST( NULL AS SIGNED ) * - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT + 38 * + 93 * - CAST ( NULL AS INTEGER ) * - + 6
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1935
SELECT CAST( CAST( - + 56 AS SIGNED ) AS SIGNED ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1935
SELECT CAST ( CAST ( - + 56 AS INTEGER ) AS INTEGER ) AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1936
SELECT CAST( NULLIF ( + - 47, - + 51 ) AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-1936
SELECT CAST ( NULLIF ( + - 47, - + 51 ) AS INTEGER )
----
-47

query I rowsort
SELECT + 84 * ( 61 )
----
5124

query I rowsort
SELECT 30 * 3 - 91 * 84 + - + 88 + + 46 AS col1
----
-7596

query II rowsort
SELECT + ( + - 6 ) AS col2, + 71 * - 76 AS col2
----
-6
-5396

query I rowsort
SELECT + 37 + - - 97
----
134

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1941
SELECT DISTINCT - + 25 * + CAST( NULL AS DECIMAL ) * - 25 + - 41 + + AVG ( DISTINCT - 78 ) + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT - + 25 * + CAST ( NULL AS REAL ) * - 25 + - 41 + + AVG ( DISTINCT - 78 ) + - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT - - MAX( 66 ) * 43 - + 98 + - - 73
----
2813

skipif mysql # not compatible
query I rowsort label-1942
SELECT - - MAX ( 66 ) * 43 - + 98 + - - 73
----
2813

query I rowsort
SELECT + - 61 - - 78 AS col2
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-1944
SELECT - 74 DIV 55 - 42 + 32, 2 AS col0
----
-11
2

skipif mysql # not compatible
query II rowsort label-1944
SELECT - 74 / 55 - 42 + 32, 2 AS col0
----
-11
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT + - 92 + - 81 + - - SUM( - - 84 ) + + 11 * - 0 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1945
SELECT + - 92 + - 81 + - - SUM ( - - 84 ) + + 11 * - 0 AS col2
----
-89

query I rowsort
SELECT ALL + 81 * + - 67
----
-5427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT ALL + 23 * - + CAST( NULL AS SIGNED ) + 21 * + NULLIF ( + 26, + + CAST( + + 73 AS SIGNED ) ) / - + 27 + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL + 23 * - + CAST ( NULL AS INTEGER ) + 21 * + NULLIF ( + 26, + + CAST ( + + 73 AS INTEGER ) ) / - + 27 + 23
----
NULL

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

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

query I rowsort
SELECT + 36 + 80
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT DISTINCT + 79 * + 56 * MIN( ALL ( 26 ) ) + - 57 AS col2
----
114967

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT + 79 * + 56 * MIN ( ALL ( 26 ) ) + - 57 AS col2
----
114967

query I rowsort
SELECT ALL - 62 * - ( + + 40 ) AS col0
----
2480

query I rowsort
SELECT ALL - 7 * - 73 col1
----
511

query I rowsort
SELECT - 90 * + 69
----
-6210

query I rowsort
SELECT - - 10 + - 82 / - CASE 82 WHEN 92 THEN - 55 * + 41 END
----
NULL

query I rowsort
SELECT ALL ( 99 ) AS col2
----
99

query I rowsort
SELECT + 57 * + 70
----
3990

query I rowsort
SELECT DISTINCT - 13 + 22 - 30 * + 78 + - - 94 + + 83 + 20
----
-2134

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL - 80 + + 73 * + + COUNT( - + 60 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL - 80 + + 73 * + + COUNT ( - + 60 ) AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1959
SELECT 11 DIV - 37 col2
----
0

skipif mysql # not compatible
query I rowsort label-1959
SELECT 11 / - 37 col2
----
0

query I rowsort
SELECT 47 * 69
----
3243

query I rowsort
SELECT 21 * + 38 AS col1
----
798

query I rowsort
SELECT 56 * - 27
----
-1512

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1964
SELECT DISTINCT + ( + + COUNT( * ) ) DIV 39, NULLIF ( 99, - 24 ) AS col0
----
0
99

skipif mysql # not compatible
query II rowsort label-1964
SELECT DISTINCT + ( + + COUNT ( * ) ) / 39, NULLIF ( 99, - 24 ) AS col0
----
0
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1965
SELECT SUM( DISTINCT - ( + 23 ) ) DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-1965
SELECT SUM ( DISTINCT - ( + 23 ) ) / 60
----
0

query I rowsort
SELECT ALL 55 - + 52
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT COUNT( * ) * 83 - - - 74
----
9

skipif mysql # not compatible
query I rowsort label-1967
SELECT COUNT ( * ) * 83 - - - 74
----
9

query II rowsort
SELECT ALL - 82 AS col0, - 14 - - 84 col1
----
-82
70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1969
SELECT DISTINCT 90 - - + CASE - 97 WHEN 49 + + CAST( + + 75 AS SIGNED ) THEN NULL ELSE + 68 END + + 90 + 3 * - 76 * 21 * 19 + + 94 * 8 DIV 11 AS col2
----
-90656

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT 90 - - + CASE - 97 WHEN 49 + + CAST ( + + 75 AS INTEGER ) THEN NULL ELSE + 68 END + + 90 + 3 * - 76 * 21 * 19 + + 94 * 8 / 11 AS col2
----
-90656

query I rowsort
SELECT 71 * 46 col1
----
3266

query I rowsort
SELECT - 57 * + - 78 * - 17 + 23 - + 3
----
-75562

query II rowsort
SELECT 71 AS col1, + 97 AS col1
----
71
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT ALL - MIN( DISTINCT 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL - MIN ( DISTINCT 31 ) AS col2
----
-31

query I rowsort
SELECT 29 * 89
----
2581

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + COUNT( * ) * - 54 * + MIN( DISTINCT 42 ) + + + NULLIF ( + MIN( DISTINCT + + 99 ), + 68 + + - 11 * 21 / + - 82 * + - 22 + ( - + 92 ) * + - 8 * + 19 + + 56 ) * + 44
----
2088

skipif mysql # not compatible
query I rowsort label-1975
SELECT + COUNT ( * ) * - 54 * + MIN ( DISTINCT 42 ) + + + NULLIF ( + MIN ( DISTINCT + + 99 ), + 68 + + - 11 * 21 / + - 82 * + - 22 + ( - + 92 ) * + - 8 * + 19 + + 56 ) * + 44
----
2088

query II rowsort
SELECT ALL - - 64 AS col1, - 91 AS col1
----
64
-91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT DISTINCT 26 DIV - + 49 col0
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT 26 / - + 49 col0
----
0

query I rowsort
SELECT ALL - 0 + 40 * + 71
----
2840

onlyif mysql # DIV for integer division: 
query I rowsort label-1980
SELECT COALESCE ( + 79, + + 72 ) DIV + 78 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1980
SELECT COALESCE ( + 79, + + 72 ) / + 78 AS col2
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT ALL 53 * - MIN( ALL - ( - - 85 ) ) * 20 + + + 95 - + - 43 AS col0
----
90238

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL 53 * - MIN ( ALL - ( - - 85 ) ) * 20 + + + 95 - + - 43 AS col0
----
90238

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT CASE + 89 WHEN 56 * + 85 THEN NULL WHEN 45 - + 79 THEN - - 80 WHEN + COUNT( * ) * - - NULLIF ( ( + - 58 ), 64 ) - COALESCE ( COUNT( * ), - 33, 42 ) + - SUM( + ( 31 ) ) THEN + ( ( - 97 ) ) WHEN COUNT( * ) * - CASE - ( 47 ) WHEN + 2 THEN 61 * - 50 END THEN NULL ELSE NULL END * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT CASE + 89 WHEN 56 * + 85 THEN NULL WHEN 45 - + 79 THEN - - 80 WHEN + COUNT ( * ) * - - NULLIF ( ( + - 58 ), 64 ) - COALESCE ( COUNT ( * ), - 33, 42 ) + - SUM ( + ( 31 ) ) THEN + ( ( - 97 ) ) WHEN COUNT ( * ) * - CASE - ( 47 ) WHEN + 2 THEN 61 * - 50 END THEN NULL ELSE NULL END * 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT ALL + ( + - 33 ) * 90 + - 9 * - MAX( + - 10 ) AS col2
----
-3060

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL + ( + - 33 ) * 90 + - 9 * - MAX ( + - 10 ) AS col2
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT - 63 - ( - 76 ) * - COALESCE ( - 56, + 75, 81 + - 2 ) * - 40 * + + 30 * - 37 + SUM( - - 98 )
----
188966435

skipif mysql # not compatible
query I rowsort label-1985
SELECT - 63 - ( - 76 ) * - COALESCE ( - 56, + 75, 81 + - 2 ) * - 40 * + + 30 * - 37 + SUM ( - - 98 )
----
188966435

query II rowsort
SELECT ALL - 73 * + - 29 + 11 AS col1, 66
----
2128
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1987
SELECT 0 AS col0, + COUNT( * ) + - 52 col0
----
0
-51

skipif mysql # not compatible
query II rowsort label-1987
SELECT 0 AS col0, + COUNT ( * ) + - 52 col0
----
0
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1988
SELECT ALL 33 + CASE - CAST( NULL AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) - - 97 + - COUNT( * ) THEN NULLIF ( + 64, + 49 * 25 ) * + + ( 78 ) + - 95 WHEN + - 53 - - - 71 * - 4 THEN 90 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL 33 + CASE - CAST ( NULL AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) - - 97 + - COUNT ( * ) THEN NULLIF ( + 64, + 49 * 25 ) * + + ( 78 ) + - 95 WHEN + - 53 - - - 71 * - 4 THEN 90 END AS col0
----
NULL

query I rowsort
SELECT 47 - + 10 AS col1
----
37

query I rowsort
SELECT 56 - - 95
----
151

query II rowsort
SELECT - 99 AS col0, - COALESCE ( - 13, + - 95 ) AS col1
----
-99
13

query II rowsort
SELECT - 1, - 42 + - 72 - 7 AS col2
----
-1
-121

query I rowsort
SELECT ALL + 49 * 94 AS col2
----
4606

query I rowsort
SELECT 46 + 55 + - 8
----
93

query II rowsort
SELECT DISTINCT 8 AS col0, - 71
----
8
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1996
SELECT DISTINCT + CAST( + - 35 AS SIGNED ) * 34 DIV + 51 + - 38 * - 0 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT + CAST ( + - 35 AS INTEGER ) * 34 / + 51 + - 38 * - 0 AS col1
----
-23

query I rowsort
SELECT ALL - ( 60 ) * - 76 AS col1
----
4560

query I rowsort
SELECT ALL + 49 * + 26 AS col0
----
1274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1999
SELECT - 15 DIV + 63 + - COUNT( * ) - - 8 + 58 * COALESCE ( - + 5, + ( CASE + 33 WHEN + COUNT( * ) THEN - - 5 + + 95 END ) )
----
-283

skipif mysql # not compatible
query I rowsort label-1999
SELECT - 15 / + 63 + - COUNT ( * ) - - 8 + 58 * COALESCE ( - + 5, + ( CASE + 33 WHEN + COUNT ( * ) THEN - - 5 + + 95 END ) )
----
-283

query I rowsort
SELECT DISTINCT - COALESCE ( 93, + 16 )
----
-93

query I rowsort
SELECT 41 * + ( 43 ) * + 51 col1
----
89913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2002
SELECT ALL + COUNT( + 14 ) / + - CAST( NULL AS SIGNED ) * + + 76 * + ( - + 97 ) + - + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL + COUNT ( + 14 ) / + - CAST ( NULL AS INTEGER ) * + + 76 * + ( - + 97 ) + - + 8 AS col1
----
NULL

query I rowsort
SELECT 44 * 29 * - 22 * - ( 10 )
----
280720

query II rowsort
SELECT - 4 AS col0, 46
----
-4
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT DISTINCT ( 92 ) * + - 46 + + 40 + - CASE - - 69 WHEN + 26 THEN 78 + + 51 * 34 * 63 * - CASE - 96 WHEN - - 69 * - - 26 THEN NULL WHEN - 76 + ( ( - 21 ) + 99 ) THEN NULL ELSE + 47 END * - COUNT( * ) END * 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT ( 92 ) * + - 46 + + 40 + - CASE - - 69 WHEN + 26 THEN 78 + + 51 * 34 * 63 * - CASE - 96 WHEN - - 69 * - - 26 THEN NULL WHEN - 76 + ( ( - 21 ) + 99 ) THEN NULL ELSE + 47 END * - COUNT ( * ) END * 81 AS col2
----
NULL

query I rowsort
SELECT + ( 92 ) * + 14
----
1288

query I rowsort
SELECT ALL 12 * - 66 + + 54 + 23
----
-715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2009
SELECT - NULLIF ( + 1, - ( AVG ( 18 ) ) ) * - SUM( + - CAST( NULL AS SIGNED ) ) + - 93 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT - NULLIF ( + 1, - ( AVG ( 18 ) ) ) * - SUM ( + - CAST ( NULL AS INTEGER ) ) + - 93 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT - COUNT( * ) * - + ( + 93 ) - + 20 col0
----
73

skipif mysql # not compatible
query I rowsort label-2010
SELECT - COUNT ( * ) * - + ( + 93 ) - + 20 col0
----
73

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2013
SELECT - 11 + COALESCE ( + SUM( ALL 62 ), + CASE + CAST( NULL AS SIGNED ) WHEN - - 60 THEN 97 END * 72 )
----
51

skipif mysql # not compatible
query I rowsort label-2013
SELECT - 11 + COALESCE ( + SUM ( ALL 62 ), + CASE + CAST ( NULL AS INTEGER ) WHEN - - 60 THEN 97 END * 72 )
----
51

query I rowsort
SELECT - + 83 + + ( + 17 ) + - + 60 AS col1
----
-126

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

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

query I rowsort
SELECT ALL + 19 * 39 * - 46
----
-34086

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2017
SELECT - - 54 * COUNT( * ) * + 47 + + + COUNT( * ) DIV 75 - COALESCE ( 44, 79 ) + + 92 AS col2, 73
----
2586
73

skipif mysql # not compatible
query II rowsort label-2017
SELECT - - 54 * COUNT ( * ) * + 47 + + + COUNT ( * ) / 75 - COALESCE ( 44, 79 ) + + 92 AS col2, 73
----
2586
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL - 27 + + + 94 + + + 35 - - COUNT( * ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - 27 + + + 94 + + + 35 - - COUNT ( * ) AS col2
----
103

query I rowsort
SELECT ALL - 64 * + 58 * + 69 AS col1
----
-256128

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2020
SELECT + - CASE - - 47 WHEN - AVG ( DISTINCT 25 ) THEN NULL WHEN - 25 - - ( + CAST( NULL AS DECIMAL ) ) + - MIN( DISTINCT 46 ) THEN - - COALESCE ( - CAST( NULL AS DECIMAL ), 34 ) + + ( 47 ) / - COUNT( * ) END + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT + - CASE - - 47 WHEN - AVG ( DISTINCT 25 ) THEN NULL WHEN - 25 - - ( + CAST ( NULL AS REAL ) ) + - MIN ( DISTINCT 46 ) THEN - - COALESCE ( - CAST ( NULL AS REAL ), 34 ) + + ( 47 ) / - COUNT ( * ) END + - 73
----
NULL

query I rowsort
SELECT ALL + 53 - - + 51 * - - 14 * 25
----
17903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT - NULLIF ( + CAST( + COUNT( * ) AS SIGNED ), + 41 - - + ( + - 54 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2022
SELECT - NULLIF ( + CAST ( + COUNT ( * ) AS INTEGER ), + 41 - - + ( + - 54 ) )
----
-1

query II rowsort
SELECT + 15 * - 26 AS col0, - 78
----
-390
-78

query I rowsort
SELECT + 21 + - 31 + 18
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT + 9 * 46 * + COUNT( * ) AS col2
----
414

skipif mysql # not compatible
query I rowsort label-2025
SELECT + 9 * 46 * + COUNT ( * ) AS col2
----
414

query I rowsort
SELECT - 74 + 71
----
-3

query I rowsort
SELECT + 85 * 52
----
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT + COUNT( * ) - + 88 + + MAX( + 5 ) + - - 81 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2028
SELECT + COUNT ( * ) - + 88 + + MAX ( + 5 ) + - - 81 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - ( + 86 ) + + MIN( DISTINCT - 60 ) AS col0
----
-146

skipif mysql # not compatible
query I rowsort label-2029
SELECT - ( + 86 ) + + MIN ( DISTINCT - 60 ) AS col0
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL - 73 + + - 50 - - ( + 68 ) + + 3 * COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL - 73 + + - 50 - - ( + 68 ) + + 3 * COUNT ( * )
----
-52

query I rowsort
SELECT ALL + 18 * + 63
----
1134

onlyif mysql # DIV for integer division: 
query II rowsort label-2032
SELECT ( - 93 ), 77 DIV + 55 AS col0
----
-93
1

skipif mysql # not compatible
query II rowsort label-2032
SELECT ( - 93 ), 77 / + 55 AS col0
----
-93
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2033
SELECT DISTINCT + 9 DIV + 64 * - 24 * 85 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT + 9 / + 64 * - 24 * 85 + - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2034
SELECT + 93 * - 73 * - 91 * 40 - + 14, ( 64 ) * - 24 * - COUNT( * ) * + + 11 AS col0
----
24711946
16896

skipif mysql # not compatible
query II rowsort label-2034
SELECT + 93 * - 73 * - 91 * 40 - + 14, ( 64 ) * - 24 * - COUNT ( * ) * + + 11 AS col0
----
24711946
16896

onlyif mysql # DIV for integer division: 
query I rowsort label-2035
SELECT - 29 DIV + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2035
SELECT - 29 / + 79 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT ALL + + 52 * COUNT( * ) + COUNT( * ) col1
----
53

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + + 52 * COUNT ( * ) + COUNT ( * ) col1
----
53

query I rowsort
SELECT DISTINCT + NULLIF ( - 55, + 74 ) AS col0
----
-55

query II rowsort
SELECT - - 72 + 26, + 60 AS col1
----
98
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT DISTINCT + SUM( - + 43 ) * - COUNT( 96 ) * 98 * - + 51 + + SUM( 96 ) - 88 + - - 54 + - + 27 - - 90 AS col0
----
-214789

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT + SUM ( - + 43 ) * - COUNT ( 96 ) * 98 * - + 51 + + SUM ( 96 ) - 88 + - - 54 + - + 27 - - 90 AS col0
----
-214789

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT DISTINCT - 34 * - + 1 - 26 + + - 22 + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT - 34 * - + 1 - 26 + + - 22 + COUNT ( * )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2041
SELECT ALL CAST( - - 11 AS SIGNED ) * + MIN( 4 ) + 80 + - + CAST( NULL AS SIGNED ) + + 96 - - + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL CAST ( - - 11 AS INTEGER ) * + MIN ( 4 ) + 80 + - + CAST ( NULL AS INTEGER ) + + 96 - - + 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT - NULLIF ( + COUNT( * ), - 74 * + MIN( 72 ) ) + + + 18 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2042
SELECT - NULLIF ( + COUNT ( * ), - 74 * + MIN ( 72 ) ) + + + 18 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT MAX( DISTINCT + 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2043
SELECT MAX ( DISTINCT + 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT MAX( DISTINCT + 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2044
SELECT MAX ( DISTINCT + 85 ) AS col1
----
85

query I rowsort
SELECT - 68 * - 12
----
816

query I rowsort
SELECT - 90 * + 9 - + 73 AS col0
----
-883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2047
SELECT ALL + ( - NULLIF ( 74, CAST( + ( + - 36 ) AS SIGNED ) * - MIN( ALL - + ( - 96 ) ) + 75 ) ) * 57 + + + 26 * 13 + - - 53 - + SUM( ALL + 24 ) * - 91 * + 90 * 24 AS col1
----
4713613

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL + ( - NULLIF ( 74, CAST ( + ( + - 36 ) AS INTEGER ) * - MIN ( ALL - + ( - 96 ) ) + 75 ) ) * 57 + + + 26 * 13 + - - 53 - + SUM ( ALL + 24 ) * - 91 * + 90 * 24 AS col1
----
4713613

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL ( + MIN( DISTINCT - 28 ) ) col2
----
-28

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL ( + MIN ( DISTINCT - 28 ) ) col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT DISTINCT CAST( - - 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT CAST ( - - 55 AS INTEGER )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT ALL 32 DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL 32 / - 54 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT + 55 * - 15 * COUNT( * )
----
-825

skipif mysql # not compatible
query I rowsort label-2051
SELECT + 55 * - 15 * COUNT ( * )
----
-825

query I rowsort
SELECT - ( - - NULLIF ( - 56, + 82 ) )
----
56

query I rowsort
SELECT - 26 + - + 49 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT + COUNT( * ) * - 68 * 33 * - - ( + - 38 ) AS col1
----
85272

skipif mysql # not compatible
query I rowsort label-2054
SELECT + COUNT ( * ) * - 68 * 33 * - - ( + - 38 ) AS col1
----
85272

query I rowsort
SELECT + 8 - - 20 col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT - 20 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT - 20 / + 67
----
0

query I rowsort
SELECT + ( 59 ) - + ( + 11 ) AS col2
----
48

query II rowsort
SELECT + ( 42 ) * 5 AS col2, - 37 * + ( 98 )
----
210
-3626

query I rowsort
SELECT + 60 * - 25 * + 30
----
-45000

query I rowsort
SELECT ALL 66 + 94 * 13
----
1288

query I rowsort
SELECT - ( + ( + 43 ) ) col1
----
-43

query I rowsort
SELECT DISTINCT 36 + + 62 + - 51 * - 38 AS col0
----
2036

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT DISTINCT 95 + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT 95 + COUNT ( * )
----
96

query I rowsort
SELECT + ( + 72 ) * + 49 AS col0
----
3528

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT DISTINCT + 45 * - 82 * - 44 * COUNT( * ) AS col1
----
162360

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + 45 * - 82 * - 44 * COUNT ( * ) AS col1
----
162360

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL + COUNT( - 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL + COUNT ( - 77 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - - 15 col0
----
15

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

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

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

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT + COUNT ( * ) / + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT SUM( - 3 ) - 97 + + - 13 * + - 92 AS col1
----
1096

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT SUM ( - 3 ) - 97 + + - 13 * + - 92 AS col1
----
1096

query I rowsort
SELECT ALL - - ( - 40 ) * 20 col1
----
-800

query I rowsort
SELECT 52 + - + 62 AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2073
SELECT ALL 99 - SUM( DISTINCT 48 ) + 58 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL 99 - SUM ( DISTINCT 48 ) + 58 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 69 * 87 AS col0
----
6003

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT COUNT( * ) * - - COUNT( * ) - + 50 + + - 35 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2075
SELECT COUNT ( * ) * - - COUNT ( * ) - + 50 + + - 35 AS col2
----
-84

query I rowsort
SELECT - 57 * - 79 AS col1
----
4503

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2077
SELECT COALESCE ( - - 5, + 86 + - 4 DIV 37 + 8 DIV - 9 * + - 94 ) * - + ( + - 50 ) * + COUNT( * ) - COUNT( * ) AS col2
----
249

skipif mysql # not compatible
query I rowsort label-2077
SELECT COALESCE ( - - 5, + 86 + - 4 / 37 + 8 / - 9 * + - 94 ) * - + ( + - 50 ) * + COUNT ( * ) - COUNT ( * ) AS col2
----
249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT + MIN( + 22 ) * 83 + + 57 * CAST( + 52 AS SIGNED )
----
4790

skipif mysql # not compatible
query I rowsort label-2078
SELECT + MIN ( + 22 ) * 83 + + 57 * CAST ( + 52 AS INTEGER )
----
4790

query II rowsort
SELECT 27 * 31 AS col1, - 95 * + 25 AS col2
----
837
-2375

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT 30 * + + MAX( 93 )
----
2790

skipif mysql # not compatible
query I rowsort label-2080
SELECT 30 * + + MAX ( 93 )
----
2790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT 66 + + MIN( + ( COALESCE ( 40, 10 + 73 + - 93 + 33 ) ) ) + + NULLIF ( - CASE - 45 WHEN CASE + + ( CAST( NULL AS SIGNED ) ) WHEN 51 THEN + + ( - ( + + 3 ) ) + - COALESCE ( + MIN( DISTINCT + 16 ), 47 / ( - 31 ) ) ELSE + COUNT( * ) * - 7 END THEN + 82 ELSE NULL END, - 13 + AVG ( 58 + 69 ) ) * SUM( 61 * CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT 66 + + MIN ( + ( COALESCE ( 40, 10 + 73 + - 93 + 33 ) ) ) + + NULLIF ( - CASE - 45 WHEN CASE + + ( CAST ( NULL AS INTEGER ) ) WHEN 51 THEN + + ( - ( + + 3 ) ) + - COALESCE ( + MIN ( DISTINCT + 16 ), 47 / ( - 31 ) ) ELSE + COUNT ( * ) * - 7 END THEN + 82 ELSE NULL END, - 13 + AVG ( 58 + 69 ) ) * SUM ( 61 * CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2082
SELECT 37 + - 35 + + - 9 DIV + + CAST( + 7 AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2082
SELECT 37 + - 35 + + - 9 / + + CAST ( + 7 AS INTEGER ) col0
----
1

query I rowsort
SELECT 40 * 94 * - 3 AS col1
----
-11280

onlyif mysql # DIV for integer division: 
query I rowsort label-2084
SELECT DISTINCT - 35 DIV - + 14
----
2

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT - 35 / - + 14
----
2

query I rowsort
SELECT DISTINCT + 35 * + 47 AS col0
----
1645

query I rowsort
SELECT ALL + 45 * + + ( - 11 )
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL + 90 + - + 71 + - COUNT( * ) * - - COUNT( * ) * + MIN( ALL + + 10 ) * - + 37 * - 40
----
-14781

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + 90 + - + 71 + - COUNT ( * ) * - - COUNT ( * ) * + MIN ( ALL + + 10 ) * - + 37 * - 40
----
-14781

query I rowsort
SELECT DISTINCT - 36 * 77 AS col1
----
-2772

query I rowsort
SELECT 55 * + - ( + ( - - 28 ) )
----
-1540

query I rowsort
SELECT 91 + - 23 * - 76 - ( 42 )
----
1797

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2091
SELECT 97 * - 18 * - + CAST( + - 37 AS SIGNED ) AS col0, 58 + 63
----
-64602
121

skipif mysql # not compatible
query II rowsort label-2091
SELECT 97 * - 18 * - + CAST ( + - 37 AS INTEGER ) AS col0, 58 + 63
----
-64602
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2092
SELECT COUNT( * ) + - 97 * 33 + + CAST( NULL AS SIGNED ) AS col0, - 36 * + 33 * - + NULLIF ( + + 8, + - 38 ) col0
----
NULL
9504

skipif mysql # not compatible
query II rowsort label-2092
SELECT COUNT ( * ) + - 97 * 33 + + CAST ( NULL AS INTEGER ) AS col0, - 36 * + 33 * - + NULLIF ( + + 8, + - 38 ) col0
----
NULL
9504

query I rowsort
SELECT ALL - 27 + + 67 * + + 68
----
4529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2094
SELECT DISTINCT + 73 + + ( 44 ) * + 33 + + COUNT( * ) + - CAST( 81 AS SIGNED ) AS col2
----
1445

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT + 73 + + ( 44 ) * + 33 + + COUNT ( * ) + - CAST ( 81 AS INTEGER ) AS col2
----
1445

query II rowsort
SELECT 87 + - 49 AS col1, - 50 + - 76 AS col2
----
38
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2096
SELECT DISTINCT 78 + + CAST( + - COUNT( * ) AS SIGNED ) + - COUNT( * ) + - ( + + 82 ) * 27 + 47 col2
----
-2091

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT 78 + + CAST ( + - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) + - ( + + 82 ) * 27 + 47 col2
----
-2091

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2097
SELECT ALL - NULLIF ( + 49, + - 5 ) DIV - 80 * COALESCE ( + COUNT( * ), ( + 52 ) DIV - - 10 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL - NULLIF ( + 49, + - 5 ) / - 80 * COALESCE ( + COUNT ( * ), ( + 52 ) / - - 10 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT - NULLIF ( - 40, - COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-2098
SELECT - NULLIF ( - 40, - COUNT ( * ) )
----
40

query I rowsort
SELECT 96 + ( - - 47 )
----
143

query I rowsort
SELECT DISTINCT 4 + + 44 * + + 50
----
2204

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

query I rowsort
SELECT 98 * + + 25 AS col0
----
2450

query I rowsort
SELECT - 47 + 85 - - 10
----
48

query I rowsort
SELECT ALL + + 50 - + 85
----
-35

query I rowsort
SELECT DISTINCT - 48 * + + 72 * + - 27
----
93312

query I rowsort
SELECT DISTINCT + 90 - + + 34 col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2107
SELECT ALL 75 * 68 + + + CAST( - - 40 AS SIGNED ) AS col1, + 43 AS col1
----
5140
43

skipif mysql # not compatible
query II rowsort label-2107
SELECT ALL 75 * 68 + + + CAST ( - - 40 AS INTEGER ) AS col1, + 43 AS col1
----
5140
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT DISTINCT - - ( + - ( - ( + + CAST( + - 27 AS SIGNED ) ) ) ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - - ( + - ( - ( + + CAST ( + - 27 AS INTEGER ) ) ) ) AS col2
----
-27

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

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

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

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

query I rowsort
SELECT DISTINCT 20 - 3
----
17

query I rowsort
SELECT 40 * 33 col1
----
1320

query I rowsort
SELECT ALL - 21 * - 57 AS col0
----
1197

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT ALL 68 DIV 10
----
6

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL 68 / 10
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2115
SELECT DISTINCT - 3 * - 10 DIV - - 10 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT - 3 * - 10 / - - 10 AS col0
----
3

query I rowsort
SELECT ALL - ( 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT DISTINCT - SUM( ALL 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2117
SELECT DISTINCT - SUM ( ALL 70 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL 21 + - CASE + COUNT( * ) WHEN + 61 * - 42 / + ( - 5 ) + + ( + - 71 ) THEN - 64 * + 81 - + 39 + 48 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL 21 + - CASE + COUNT ( * ) WHEN + 61 * - 42 / + ( - 5 ) + + ( + - 71 ) THEN - 64 * + 81 - + 39 + 48 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT COUNT( * ) - + 76 + + SUM( + 31 ) + + NULLIF ( + SUM( DISTINCT 74 ), + 58 * - - COUNT( * ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2119
SELECT COUNT ( * ) - + 76 + + SUM ( + 31 ) + + NULLIF ( + SUM ( DISTINCT 74 ), + 58 * - - COUNT ( * ) ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT ALL 97 + COUNT( * ) + 32 + 65 * ( + 44 )
----
2990

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL 97 + COUNT ( * ) + 32 + 65 * ( + 44 )
----
2990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2121
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) * + - 7 + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + - 7 + - 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT + COALESCE ( 36, COUNT( * ) ) * + 80 + + - 48
----
2832

skipif mysql # not compatible
query I rowsort label-2122
SELECT + COALESCE ( 36, COUNT ( * ) ) * + 80 + + - 48
----
2832

query I rowsort
SELECT 65 * + 5
----
325

query I rowsort
SELECT ALL 61 + - + 61
----
0

query I rowsort
SELECT 81 - - 49 AS col1
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-2126
SELECT ALL 55 DIV + + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL 55 / + + 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT 90 + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-2127
SELECT 90 + + COUNT ( * )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2128
SELECT ALL - 87 * - + 23 * - + COUNT( * ), CAST( NULL AS SIGNED ) AS col0
----
-2001
NULL

skipif mysql # not compatible
query II rowsort label-2128
SELECT ALL - 87 * - + 23 * - + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0
----
-2001
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL + 60 + + COUNT( * ) + - ( 8 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL + 60 + + COUNT ( * ) + - ( 8 ) AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT CAST( + 83 AS SIGNED ) + - CASE 99 WHEN COUNT( * ) * + - 71 THEN - 32 / 79 WHEN + NULLIF ( 59, AVG ( ALL + 59 ) + - - 27 ) + 87 THEN - 56 END + ( COUNT( * ) ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT CAST ( + 83 AS INTEGER ) + - CASE 99 WHEN COUNT ( * ) * + - 71 THEN - 32 / 79 WHEN + NULLIF ( 59, AVG ( ALL + 59 ) + - - 27 ) + 87 THEN - 56 END + ( COUNT ( * ) ) / COUNT ( * )
----
NULL

query I rowsort
SELECT - 9 - + 59
----
-68

query I rowsort
SELECT - + 32 + + + 36 + - 57 AS col2
----
-53

query I rowsort
SELECT ALL + - 90 - 6
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2134
SELECT COALESCE ( CAST( - 21 AS SIGNED ), - + COUNT( * ), + + COALESCE ( + ( - 49 ), - COUNT( DISTINCT + 77 ), - 52, + 86 * + 59 * - 25 - - 69 ), - COUNT( * ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-2134
SELECT COALESCE ( CAST ( - 21 AS INTEGER ), - + COUNT ( * ), + + COALESCE ( + ( - 49 ), - COUNT ( DISTINCT + 77 ), - 52, + 86 * + 59 * - 25 - - 69 ), - COUNT ( * ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT DISTINCT + 94 - - + COUNT( * ) * - 43 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT + 94 - - + COUNT ( * ) * - 43 AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2136
SELECT - - COALESCE ( 52, 77 DIV + 99 )
----
52

skipif mysql # not compatible
query I rowsort label-2136
SELECT - - COALESCE ( 52, 77 / + 99 )
----
52

query II rowsort
SELECT 85, ( - - 58 ) AS col0
----
85
58

query I rowsort
SELECT - - 91 + COALESCE ( 35, - 85, + 22 * 33 ) - - 24
----
150

query I rowsort
SELECT - + 75 * - + 26 * COALESCE ( - 9, + 54 ) * - + 45 * - + 90
----
-71077500

onlyif mysql # aggregate syntax: 
query II rowsort label-2140
SELECT ALL 80 col2, 93 * COUNT( * ) AS col2
----
80
93

skipif mysql # not compatible
query II rowsort label-2140
SELECT ALL 80 col2, 93 * COUNT ( * ) AS col2
----
80
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT - 51 + + ( - 70 ) * - COALESCE ( - + ( - 75 ), - COUNT( * ) )
----
5199

skipif mysql # not compatible
query I rowsort label-2141
SELECT - 51 + + ( - 70 ) * - COALESCE ( - + ( - 75 ), - COUNT ( * ) )
----
5199

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT + 39 DIV + 23 col0
----
1

skipif mysql # not compatible
query I rowsort label-2143
SELECT + 39 / + 23 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - 2 * + + 79 + - COUNT( * ) + 97 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-2144
SELECT - 2 * + + 79 + - COUNT ( * ) + 97 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT + 48 * - COUNT( * ) + + 63 col0
----
15

skipif mysql # not compatible
query I rowsort label-2145
SELECT + 48 * - COUNT ( * ) + + 63 col0
----
15

query II rowsort
SELECT - 92 * 98 * 64, 40 + + + 7 - + 63 * + + 18 AS col2
----
-577024
-1087

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2147
SELECT - 2 DIV + COALESCE ( - 57, + 98 + - 83 ) * + 65 + 96 + + COUNT( + - 31 )
----
97

skipif mysql # not compatible
query I rowsort label-2147
SELECT - 2 / + COALESCE ( - 57, + 98 + - 83 ) * + 65 + 96 + + COUNT ( + - 31 )
----
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT DISTINCT + 70 * + 53 * - 5 + - NULLIF ( + 98, + 68 + + + 65 ) - + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT + 70 * + 53 * - 5 + - NULLIF ( + 98, + 68 + + + 65 ) - + - CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT ALL + 27 AS col2, ( + + 55 ) AS col0
----
27
55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT ALL 2 * 78 + - 75 * + CAST( + 78 AS SIGNED )
----
-5694

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL 2 * 78 + - 75 * + CAST ( + 78 AS INTEGER )
----
-5694

query I rowsort
SELECT - 15 * - 76 + + 47 AS col1
----
1187

query I rowsort
SELECT + ( + 84 ) - - - 68
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-2155
SELECT + COALESCE ( - 70, + - 76 + - 35, - + 63 + - + 80 * - 62 * - - 8 DIV - - 59 ) col2, - 38
----
-70
-38

skipif mysql # not compatible
query II rowsort label-2155
SELECT + COALESCE ( - 70, + - 76 + - 35, - + 63 + - + 80 * - 62 * - - 8 / - - 59 ) col2, - 38
----
-70
-38

query II rowsort
SELECT ALL + 20 AS col1, - 16 AS col2
----
20
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2157
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) + + 4 * COUNT( DISTINCT - 83 ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2158
SELECT ALL 45 * - CAST( NULL AS SIGNED ) + COUNT( * ) + 21 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL 45 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) + 21 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + COALESCE ( COALESCE ( + 63, - MAX( DISTINCT 33 ) ), 10 - + 53 )
----
63

skipif mysql # not compatible
query I rowsort label-2159
SELECT + COALESCE ( COALESCE ( + 63, - MAX ( DISTINCT 33 ) ), 10 - + 53 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL 64 * + 87 + MIN( ALL - - 73 )
----
5641

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL 64 * + 87 + MIN ( ALL - - 73 )
----
5641

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2161
SELECT ALL 14 DIV COALESCE ( COALESCE ( + + 68, + 9 * 47 + + + COUNT( * ) ), + COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL 14 / COALESCE ( COALESCE ( + + 68, + 9 * 47 + + + COUNT ( * ) ), + COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT SUM( ALL - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2162
SELECT SUM ( ALL - 3 ) AS col2
----
-3

query I rowsort
SELECT DISTINCT 49 * - 87
----
-4263

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL 7 + + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL 7 + + + COUNT ( * )
----
8

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

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

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

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

query I rowsort
SELECT + ( - 74 ) * - 20 + - + 10 - 44 * + 46
----
-554

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT + COALESCE ( - 91, ( + 4 ), + COUNT( * ) )
----
-91

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT + COALESCE ( - 91, ( + 4 ), + COUNT ( * ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT 25 - - CASE - ( - + ( 5 ) ) WHEN + + 80 * - - 25 + + - 13 THEN - - COALESCE ( + 65, 93 * COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT 25 - - CASE - ( - + ( 5 ) ) WHEN + + 80 * - - 25 + + - 13 THEN - - COALESCE ( + 65, 93 * COUNT ( * ) ) END
----
NULL

query II rowsort
SELECT ALL + 25, ( - 60 ) AS col2
----
25
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2171
SELECT - 41, 34 * - + ( CAST( + 1 AS SIGNED ) ) + + 88 AS col1
----
-41
54

skipif mysql # not compatible
query II rowsort label-2171
SELECT - 41, 34 * - + ( CAST ( + 1 AS INTEGER ) ) + + 88 AS col1
----
-41
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2172
SELECT ALL CAST( + CASE 71 WHEN - + 56 / - ( - - CASE + - COALESCE ( - 53, - 19 ) WHEN - + 47 - 95 THEN - - COUNT( * ) WHEN + 3 * - 99 THEN NULL ELSE - COUNT( * ) END ) + - 2 * - 8 THEN - - 94 / + + 70 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL CAST ( + CASE 71 WHEN - + 56 / - ( - - CASE + - COALESCE ( - 53, - 19 ) WHEN - + 47 - 95 THEN - - COUNT ( * ) WHEN + 3 * - 99 THEN NULL ELSE - COUNT ( * ) END ) + - 2 * - 8 THEN - - 94 / + + 70 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2173
SELECT 81 col0, - 29 + - COUNT( * ) * + + 9 AS col0
----
81
-38

skipif mysql # not compatible
query II rowsort label-2173
SELECT 81 col0, - 29 + - COUNT ( * ) * + + 9 AS col0
----
81
-38

query I rowsort
SELECT + 40 - 41
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2175
SELECT - COUNT( * ) * MAX( ALL 10 ) + - 75 * - 69 * - 95 / + - CAST( NULL AS DECIMAL ) col2, + 83
----
NULL
83

skipif mysql # not compatible
query II rowsort label-2175
SELECT - COUNT ( * ) * MAX ( ALL 10 ) + - 75 * - 69 * - 95 / + - CAST ( NULL AS REAL ) col2, + 83
----
NULL
83

query I rowsort
SELECT + 53 - 43 * 45
----
-1882

query I rowsort
SELECT - + 68 * - - ( - 34 ) AS col2
----
2312

query I rowsort
SELECT ALL + 57 + + 34
----
91

query I rowsort
SELECT DISTINCT + 46 * 46
----
2116

onlyif mysql # aggregate syntax: 
query II rowsort label-2180
SELECT 5 AS col2, MIN( DISTINCT - + 30 ) + CASE 52 WHEN + + 78 THEN + CASE + 67 WHEN 0 * 38 + + 66 THEN + 35 + + - 0 ELSE 11 END END + + 20 * 83 * + 76 AS col2
----
5
NULL

skipif mysql # not compatible
query II rowsort label-2180
SELECT 5 AS col2, MIN ( DISTINCT - + 30 ) + CASE 52 WHEN + + 78 THEN + CASE + 67 WHEN 0 * 38 + + 66 THEN + 35 + + - 0 ELSE 11 END END + + 20 * 83 * + 76 AS col2
----
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT + 99 / 50 - 69 + - 7 * + + 68 / + - 60 + - CAST( NULL AS SIGNED ) + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT + 99 / 50 - 69 + - 7 * + + 68 / + - 60 + - CAST ( NULL AS INTEGER ) + + 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT ALL - + ( 24 ) DIV 66 + + 23
----
23

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL - + ( 24 ) / 66 + + 23
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT DISTINCT 98 DIV 64 + - ( + - 79 ) + + - 9 * + 81 * + 61 * - + 6
----
266894

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT 98 / 64 + - ( + - 79 ) + + - 9 * + 81 * + 61 * - + 6
----
266894

query I rowsort
SELECT + ( 39 ) + - 64 AS col2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT DISTINCT 73 DIV - 32 + 51
----
49

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT 73 / - 32 + 51
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT DISTINCT 11 DIV 34 + + 35 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT 11 / 34 + + 35 AS col0
----
35

query I rowsort
SELECT - ( - 70 ) * - 63
----
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL + 86 * COUNT( * ) * + 45 AS col0
----
3870

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + 86 * COUNT ( * ) * + 45 AS col0
----
3870

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

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

query I rowsort
SELECT ALL - 68 * + 55
----
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT DISTINCT + 14 * + + 28 * - - ( + + COUNT( * ) ) * 74
----
29008

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT + 14 * + + 28 * - - ( + + COUNT ( * ) ) * 74
----
29008

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL 22 * - COUNT( * ) - + 43 - ( - 33 )
----
-32

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL 22 * - COUNT ( * ) - + 43 - ( - 33 )
----
-32

query I rowsort
SELECT + 53 * + 2 + + 13 AS col1
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2194
SELECT COUNT( CAST( NULL AS SIGNED ) ) * + 51 DIV + 35 * 13 + - 25 * CAST( - 12 AS SIGNED ) AS col0
----
300

skipif mysql # not compatible
query I rowsort label-2194
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) * + 51 / + 35 * 13 + - 25 * CAST ( - 12 AS INTEGER ) AS col0
----
300

query I rowsort
SELECT + 44 - 38 + 40
----
46

query I rowsort
SELECT ALL CASE + 86 WHEN - + 14 THEN - 70 END AS col1
----
NULL

query I rowsort
SELECT ALL 97 * + 18 * + - ( - + 27 )
----
47142

query I rowsort
SELECT - 67 * - 37
----
2479

query II rowsort
SELECT DISTINCT - 2 * + - 88 AS col0, + 2
----
176
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT COUNT( * ) + + - NULLIF ( - + CAST( NULL AS SIGNED ), - - 73 - + SUM( DISTINCT 4 ) ) * - CASE - 98 WHEN + NULLIF ( + - 3, - 14 + - 90 ) + - 86 THEN NULL WHEN 54 THEN NULL ELSE + - 19 + + 24 + + + COALESCE ( - - AVG ( ALL + 90 ), - 57 * + COUNT( * ) * - 78 + COUNT( * ) * 64 ) - + 30 * 54 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT COUNT ( * ) + + - NULLIF ( - + CAST ( NULL AS INTEGER ), - - 73 - + SUM ( DISTINCT 4 ) ) * - CASE - 98 WHEN + NULLIF ( + - 3, - 14 + - 90 ) + - 86 THEN NULL WHEN 54 THEN NULL ELSE + - 19 + + 24 + + + COALESCE ( - - AVG ( ALL + 90 ), - 57 * + COUNT ( * ) * - 78 + COUNT ( * ) * 64 ) - + 30 * 54 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2201
SELECT + COALESCE ( - 65, + ( + 37 ) * + CASE - + CAST( NULL AS SIGNED ) WHEN + 66 THEN + 73 - + ( + 55 ) * + COUNT( * ) - - CAST( NULL AS SIGNED ) WHEN - 67 THEN NULL END + + 81, - + 10 ) - - + 70 * + + 96
----
6655

skipif mysql # not compatible
query I rowsort label-2201
SELECT + COALESCE ( - 65, + ( + 37 ) * + CASE - + CAST ( NULL AS INTEGER ) WHEN + 66 THEN + 73 - + ( + 55 ) * + COUNT ( * ) - - CAST ( NULL AS INTEGER ) WHEN - 67 THEN NULL END + + 81, - + 10 ) - - + 70 * + + 96
----
6655

query I rowsort
SELECT ALL + ( - 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2203
SELECT + 51 + + COALESCE ( - 45, + ( + 85 ) DIV + 36 + + 42 + - SUM( DISTINCT + 83 ) + - + 2 + 41 - - COUNT( * ) + ( 31 ) + + 88 * + 99 DIV - 39 * - COUNT( * ), - 49 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-2203
SELECT + 51 + + COALESCE ( - 45, + ( + 85 ) / + 36 + + 42 + - SUM ( DISTINCT + 83 ) + - + 2 + 41 - - COUNT ( * ) + ( 31 ) + + 88 * + 99 / - 39 * - COUNT ( * ), - 49 ) col0
----
6

query I rowsort
SELECT 11 - + 22
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL - + 18 + + CASE - 87 WHEN - 72 + + + COUNT( * ) THEN NULL WHEN + + NULLIF ( + + 85, + + 46 - - 53 + COUNT( * ) ) THEN NULL ELSE + CASE + - 36 WHEN 10 * 88 THEN + 52 END * - 3 END * + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL - + 18 + + CASE - 87 WHEN - 72 + + + COUNT ( * ) THEN NULL WHEN + + NULLIF ( + + 85, + + 46 - - 53 + COUNT ( * ) ) THEN NULL ELSE + CASE + - 36 WHEN 10 * 88 THEN + 52 END * - 3 END * + 79 AS col1
----
NULL

query II rowsort
SELECT ALL + - 56 + - 35 AS col2, 89
----
-91
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT - 59 + - + 35 * COUNT( * ) * - ( 30 )
----
991

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT - 59 + - + 35 * COUNT ( * ) * - ( 30 )
----
991

query I rowsort
SELECT ALL + NULLIF ( + 15, + 56 ) + - 26 + - 6 + ( + 92 ) + + - 25 * + + NULLIF ( - 63, 62 ) * + 52 - + 12 + - - 99 AS col1
----
82062

onlyif mysql # aggregate syntax: 
query II rowsort label-2209
SELECT + COUNT( * ) + + + COUNT( * ) + + MAX( - 85 ) * + 18, COUNT( * ) col0
----
-1528
1

skipif mysql # not compatible
query II rowsort label-2209
SELECT + COUNT ( * ) + + + COUNT ( * ) + + MAX ( - 85 ) * + 18, COUNT ( * ) col0
----
-1528
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT 46 + - + NULLIF ( COUNT( * ), - 90 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2210
SELECT 46 + - + NULLIF ( COUNT ( * ), - 90 ) AS col2
----
45

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

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

query I rowsort
SELECT 91 * - + 87 * - 10 AS col0
----
79170

query I rowsort
SELECT ALL + 90 + + 39
----
129

query I rowsort
SELECT ALL - 27 + - - 3
----
-24

query II rowsort
SELECT DISTINCT - 7 AS col1, 63
----
-7
63

query II rowsort
SELECT ALL 38 * + 92 * 17 AS col0, - 58
----
59432
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT DISTINCT - 13 AS col2, 19 + + + 30 * MAX( - 37 ) - - 51 + - - 15 * - 46 + + - COUNT( * ) * + 76 * COUNT( * )
----
-13
-1806

skipif mysql # not compatible
query II rowsort label-2217
SELECT DISTINCT - 13 AS col2, 19 + + + 30 * MAX ( - 37 ) - - 51 + - - 15 * - 46 + + - COUNT ( * ) * + 76 * COUNT ( * )
----
-13
-1806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT DISTINCT - CAST( - + 64 AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT - CAST ( - + 64 AS INTEGER ) AS col2
----
64

query I rowsort
SELECT 64 * - + 11 AS col2
----
-704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2220
SELECT 0 * + COUNT( ALL + + ( + 59 ) ) + 52 * + COALESCE ( + 95, - COALESCE ( - 91, + CASE + ( + 17 ) WHEN 16 + - + CAST( - 75 AS DECIMAL ) THEN - 2 * + 76 * - 20 + - COUNT( * ) WHEN + 6 THEN NULL ELSE NULL END ) ) * - ( 65 ) - + 27 + + CAST( - COUNT( * ) AS SIGNED ) * ( ( - 31 ) ) AS col1
----
-321096

skipif mysql # not compatible
query I rowsort label-2220
SELECT 0 * + COUNT ( ALL + + ( + 59 ) ) + 52 * + COALESCE ( + 95, - COALESCE ( - 91, + CASE + ( + 17 ) WHEN 16 + - + CAST ( - 75 AS REAL ) THEN - 2 * + 76 * - 20 + - COUNT ( * ) WHEN + 6 THEN NULL ELSE NULL END ) ) * - ( 65 ) - + 27 + + CAST ( - COUNT ( * ) AS INTEGER ) * ( ( - 31 ) ) AS col1
----
-321096

query I rowsort
SELECT 28 * - 19 * - + 23 + - 86 * - 79 col2
----
19030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2222
SELECT 6 + - + 81 + - MIN( - 77 ), CASE 33 WHEN CASE - CAST( - 75 AS SIGNED ) WHEN 33 THEN NULL ELSE 39 * - 35 END THEN NULL ELSE - 26 * - + 1 + - - 81 + - 15 * + - 74 * + - 42 * - 61 * - 87 END AS col1
----
2
-247412233

skipif mysql # not compatible
query II rowsort label-2222
SELECT 6 + - + 81 + - MIN ( - 77 ), CASE 33 WHEN CASE - CAST ( - 75 AS INTEGER ) WHEN 33 THEN NULL ELSE 39 * - 35 END THEN NULL ELSE - 26 * - + 1 + - - 81 + - 15 * + - 74 * + - 42 * - 61 * - 87 END AS col1
----
2
-247412233

query I rowsort
SELECT - 87 * - + 29 * - 24 + - 5
----
-60557

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2224
SELECT ALL - COUNT( * ) DIV - - NULLIF ( - 42, 30 + - 2 * + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL - COUNT ( * ) / - - NULLIF ( - 42, 30 + - 2 * + 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT - CASE + 21 WHEN 30 THEN + 43 + - 94 + 61 WHEN - SUM( - 91 ) THEN + 65 + + 53 + + 64 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT - CASE + 21 WHEN 30 THEN + 43 + - 94 + 61 WHEN - SUM ( - 91 ) THEN + 65 + + 53 + + 64 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2226
SELECT DISTINCT - MAX( ALL - - 71 ) DIV 59 * 5
----
-5

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT - MAX ( ALL - - 71 ) / 59 * 5
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2227
SELECT ALL - + MIN( ALL ( + - 82 ) ) col0, ( 28 ) - - - COUNT( * ) AS col1
----
82
27

skipif mysql # not compatible
query II rowsort label-2227
SELECT ALL - + MIN ( ALL ( + - 82 ) ) col0, ( 28 ) - - - COUNT ( * ) AS col1
----
82
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT DISTINCT - - 54 * ( - COUNT( * ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT - - 54 * ( - COUNT ( * ) ) AS col0
----
-54

query I rowsort
SELECT + 64 * + - 46 * ( 67 ) + - 64 + 51 + - 39 AS col2
----
-197300

query II rowsort
SELECT 79 col2, 62 AS col0
----
79
62

query I rowsort
SELECT + 92 + 33 col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT DISTINCT 70 + 40 + - - COUNT( * ) * + - COUNT( * ) + 51 * 14 * + 0 * - COUNT( * ) * - - 90
----
109

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT 70 + 40 + - - COUNT ( * ) * + - COUNT ( * ) + 51 * 14 * + 0 * - COUNT ( * ) * - - 90
----
109

query I rowsort
SELECT ALL 97 * 40 AS col0
----
3880

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT + MAX( ALL + - 61 ) + ( + 68 )
----
7

skipif mysql # not compatible
query I rowsort label-2234
SELECT + MAX ( ALL + - 61 ) + ( + 68 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT DISTINCT - COUNT( * ) + + - 39 * 42 AS col0
----
-1639

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT - COUNT ( * ) + + - 39 * 42 AS col0
----
-1639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2236
SELECT + SUM( ALL - 70 ) + + + CAST( - 25 AS SIGNED ) + + - 13 col2
----
-108

skipif mysql # not compatible
query I rowsort label-2236
SELECT + SUM ( ALL - 70 ) + + + CAST ( - 25 AS INTEGER ) + + - 13 col2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL COUNT( - - 40 ) + - 27 col0
----
-26

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL COUNT ( - - 40 ) + - 27 col0
----
-26

query II rowsort
SELECT DISTINCT - 65 AS col0, - 33 AS col1
----
-65
-33

query I rowsort
SELECT + 33 * + - 58
----
-1914

query I rowsort
SELECT 39 - 1 AS col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2241
SELECT + COALESCE ( 85, + COUNT( * ) ), + 28 AS col2
----
85
28

skipif mysql # not compatible
query II rowsort label-2241
SELECT + COALESCE ( 85, + COUNT ( * ) ), + 28 AS col2
----
85
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL - COALESCE ( 64, - MAX( - 59 ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - COALESCE ( 64, - MAX ( - 59 ) ) AS col0
----
-64

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

skipif mysql # not compatible
query I rowsort label-2243
SELECT CAST ( NULL AS INTEGER ) * + 61
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2244
SELECT - - 16 AS col0, + 3 + - 16 * + + CAST( NULL AS SIGNED )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-2244
SELECT - - 16 AS col0, + 3 + - 16 * + + CAST ( NULL AS INTEGER )
----
16
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT 91 + - CAST( NULL AS SIGNED ) / 71 + + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT 91 + - CAST ( NULL AS INTEGER ) / 71 + + - 54
----
NULL

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

query I rowsort
SELECT DISTINCT 3 * + + 70 AS col0
----
210

query I rowsort
SELECT ALL 62 * 85
----
5270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT ( + 38 ) * + 52 * + COUNT( * ) * + + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT ( + 38 ) * + 52 * + COUNT ( * ) * + + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT 75 * + MIN( + 97 ) AS col0
----
7275

skipif mysql # not compatible
query I rowsort label-2250
SELECT 75 * + MIN ( + 97 ) AS col0
----
7275

query I rowsort
SELECT CASE + 45 WHEN 62 + - - 55 THEN + 3 + + 40 WHEN + 32 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT ALL COUNT( * ) * 21 - 10 + - 25 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL COUNT ( * ) * 21 - 10 + - 25 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2253
SELECT + AVG ( ALL + CAST( NULL AS SIGNED ) ) / - COUNT( * ) + + 31 * 48 + + + SUM( + 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) + + 31 * 48 + + + SUM ( + 54 ) AS col0
----
NULL

query I rowsort
SELECT - 2 * + 57 AS col1
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-2255
SELECT CASE + 14 WHEN 60 THEN NULL ELSE + - ( 57 ) - - 65 DIV + - 41 END AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-2255
SELECT CASE + 14 WHEN 60 THEN NULL ELSE + - ( 57 ) - - 65 / + - 41 END AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL + SUM( ALL - + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL + SUM ( ALL - + 43 )
----
-43

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

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

query I rowsort
SELECT ALL 48 * - 61 * - 29 * + 92 AS col2
----
7811904

query I rowsort
SELECT ALL + CASE - 67 WHEN - 44 THEN NULL WHEN + 7 THEN - 84 END col0
----
NULL

query I rowsort
SELECT - 12 * + + 58 AS col0
----
-696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) + - - 47 + - 32 + + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - - 47 + - 32 + + + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT + 68 * COUNT( * ) + + 77 + + CASE + 15 WHEN - + 50 * - 4 * - COUNT( * ) + - COUNT( - 96 ) THEN - + 36 END + + + NULLIF ( - 50, - - 57 / - NULLIF ( - ( AVG ( + 17 ) ), - 51 + - + 54 ) * 4 + - 19 ) + - - 63 + - 25 * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT + 68 * COUNT ( * ) + + 77 + + CASE + 15 WHEN - + 50 * - 4 * - COUNT ( * ) + - COUNT ( - 96 ) THEN - + 36 END + + + NULLIF ( - 50, - - 57 / - NULLIF ( - ( AVG ( + 17 ) ), - 51 + - + 54 ) * 4 + - 19 ) + - - 63 + - 25 * 9
----
NULL

query I rowsort
SELECT - 76 * + 21 + - 94
----
-1690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2264
SELECT - 80 * 52 + + COUNT( * ) + - - 46 DIV - 58 + 90
----
-4069

skipif mysql # not compatible
query I rowsort label-2264
SELECT - 80 * 52 + + COUNT ( * ) + - - 46 / - 58 + 90
----
-4069

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2265
SELECT DISTINCT - - 1 * - 63 DIV - + 35 * COUNT( + - 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT - - 1 * - 63 / - + 35 * COUNT ( + - 73 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT - - SUM( DISTINCT ( + + 88 ) ) - MAX( - 56 ) - + - 10 * 99 + - - 25 * 83 AS col1
----
3209

skipif mysql # not compatible
query I rowsort label-2266
SELECT - - SUM ( DISTINCT ( + + 88 ) ) - MAX ( - 56 ) - + - 10 * 99 + - - 25 * 83 AS col1
----
3209

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL CASE + + 99 WHEN 88 THEN ( + CASE - 71 WHEN + + 9 THEN - 60 + 28 + + 2 * - 32 END ) WHEN - ( - 81 ) + - COUNT( * ) THEN NULL WHEN - 34 THEN - 89 END + - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL CASE + + 99 WHEN 88 THEN ( + CASE - 71 WHEN + + 9 THEN - 60 + 28 + + 2 * - 32 END ) WHEN - ( - 81 ) + - COUNT ( * ) THEN NULL WHEN - 34 THEN - 89 END + - 7 AS col2
----
NULL

query I rowsort
SELECT - + 6 + 83 * - 77
----
-6397

query II rowsort
SELECT - ( - + 7 ), - 92 AS col2
----
7
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + + 15 * + - ( - MIN( ALL - ( - 49 ) ) ) AS col0
----
735

skipif mysql # not compatible
query I rowsort label-2270
SELECT + + 15 * + - ( - MIN ( ALL - ( - 49 ) ) ) AS col0
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT - + 45 + - SUM( DISTINCT + 95 )
----
-140

skipif mysql # not compatible
query I rowsort label-2271
SELECT - + 45 + - SUM ( DISTINCT + 95 )
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT - - 71 + - + COUNT( * ) + 31 * - ( + 66 )
----
-1976

skipif mysql # not compatible
query I rowsort label-2272
SELECT - - 71 + - + COUNT ( * ) + 31 * - ( + 66 )
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT + COALESCE ( - COUNT( * ), - - 24 ) - + 36 * + 63 col1
----
-2269

skipif mysql # not compatible
query I rowsort label-2273
SELECT + COALESCE ( - COUNT ( * ), - - 24 ) - + 36 * + 63 col1
----
-2269

onlyif mysql # aggregate syntax: 
query II rowsort label-2274
SELECT + MAX( + + 76 ) AS col0, + 8
----
76
8

skipif mysql # not compatible
query II rowsort label-2274
SELECT + MAX ( + + 76 ) AS col0, + 8
----
76
8

query I rowsort
SELECT - 58 * + 52 AS col2
----
-3016

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT DISTINCT 86 * - SUM( ( - - 60 ) ) AS col1
----
-5160

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT 86 * - SUM ( ( - - 60 ) ) AS col1
----
-5160

query I rowsort
SELECT DISTINCT 3 * 31 AS col0
----
93

query I rowsort
SELECT + 9 + 96 col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT DISTINCT 38 * SUM( - + 21 ) AS col0
----
-798

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT 38 * SUM ( - + 21 ) AS col0
----
-798

query II rowsort
SELECT 39 col2, - 99
----
39
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2281
SELECT - CASE - 54 WHEN + CAST( NULL AS DECIMAL ) + 38 + - 74 * - 22 THEN - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT - CASE - 54 WHEN + CAST ( NULL AS REAL ) + 38 + - 74 * - 22 THEN - 3 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2282
SELECT - ( - 72 ) + - - 50 DIV - + 81 + COUNT( * ), 19 AS col0
----
73
19

skipif mysql # not compatible
query II rowsort label-2282
SELECT - ( - 72 ) + - - 50 / - + 81 + COUNT ( * ), 19 AS col0
----
73
19

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

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

query I rowsort
SELECT + ( + - 82 ) col1
----
-82

query I rowsort
SELECT DISTINCT 2 * 46
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT CAST( + 11 AS SIGNED ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2286
SELECT CAST ( + 11 AS INTEGER ) AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2287
SELECT + COALESCE ( + 19, SUM( + + 12 ) * + 65 + - + 1, - - 23 ) DIV + + 75 + + 53 * 91 + - ( + COUNT( * ) )
----
4822

skipif mysql # not compatible
query I rowsort label-2287
SELECT + COALESCE ( + 19, SUM ( + + 12 ) * + 65 + - + 1, - - 23 ) / + + 75 + + 53 * 91 + - ( + COUNT ( * ) )
----
4822

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2288
SELECT ALL 49 * + 63 * 34, - 38 - + 97 DIV - COUNT( * ) AS col2
----
104958
59

skipif mysql # not compatible
query II rowsort label-2288
SELECT ALL 49 * + 63 * 34, - 38 - + 97 / - COUNT ( * ) AS col2
----
104958
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2289
SELECT DISTINCT CASE + 40 WHEN + + 36 + - 24 * + COUNT( * ) THEN + 43 * + + 69 + - COUNT( ALL 1 ) + - 74 - - 1 * - 43 ELSE - 60 - - 22 END / - + CAST( NULL AS DECIMAL ), 33 AS col1
----
NULL
33

skipif mysql # not compatible
query II rowsort label-2289
SELECT DISTINCT CASE + 40 WHEN + + 36 + - 24 * + COUNT ( * ) THEN + 43 * + + 69 + - COUNT ( ALL 1 ) + - 74 - - 1 * - 43 ELSE - 60 - - 22 END / - + CAST ( NULL AS REAL ), 33 AS col1
----
NULL
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT DISTINCT 28 DIV - + ( + + 50 ) + + - 12
----
-12

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT 28 / - + ( + + 50 ) + + - 12
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT DISTINCT + CAST( + - CASE - - CASE + AVG ( ALL - + 32 ) WHEN - 70 THEN NULL WHEN - COUNT( * ) THEN + 55 + + 82 + + 88 END WHEN - COUNT( * ) + + - MIN( - 78 ) * - CASE + + 12 WHEN - 8 THEN + 16 * + 44 * - 45 * - 48 * + + CASE - + SUM( - 51 ) WHEN COUNT( * ) + + 66 THEN 45 * - 45 END WHEN 53 THEN + 38 / 93 END THEN 5 WHEN + COUNT( * ) + - 0 * + 89 THEN NULL END AS SIGNED ) / 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT + CAST ( + - CASE - - CASE + AVG ( ALL - + 32 ) WHEN - 70 THEN NULL WHEN - COUNT ( * ) THEN + 55 + + 82 + + 88 END WHEN - COUNT ( * ) + + - MIN ( - 78 ) * - CASE + + 12 WHEN - 8 THEN + 16 * + 44 * - 45 * - 48 * + + CASE - + SUM ( - 51 ) WHEN COUNT ( * ) + + 66 THEN 45 * - 45 END WHEN 53 THEN + 38 / 93 END THEN 5 WHEN + COUNT ( * ) + - 0 * + 89 THEN NULL END AS INTEGER ) / 58
----
NULL

query I rowsort
SELECT + 13 + - 45 * + + 66
----
-2957

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + ( - 93 ) * - - MIN( 58 )
----
-5394

skipif mysql # not compatible
query I rowsort label-2293
SELECT + ( - 93 ) * - - MIN ( 58 )
----
-5394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2294
SELECT DISTINCT COALESCE ( + 83, - 67 ) DIV - + 65 + + - 13 + MIN( + 42 ) + - + 35 + + COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT COALESCE ( + 83, - 67 ) / - + 65 + + - 13 + MIN ( + 42 ) + - + 35 + + COUNT ( * ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL + 76 * COUNT( * ) + + 45
----
121

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL + 76 * COUNT ( * ) + + 45
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT 66 * 98 + + + 28 + - MIN( + 73 ) - 19 * 61 + - 12 + - 20 AS col1
----
5232

skipif mysql # not compatible
query I rowsort label-2296
SELECT 66 * 98 + + + 28 + - MIN ( + 73 ) - 19 * 61 + - 12 + - 20 AS col1
----
5232

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL + MAX( ALL - + 78 ) * - ( + 37 ) + 24 * + 27 AS col0
----
3534

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL + MAX ( ALL - + 78 ) * - ( + 37 ) + 24 * + 27 AS col0
----
3534

query I rowsort
SELECT DISTINCT - 16 * + + 78 + 83 AS col0
----
-1165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2299
SELECT ALL + 81 * + COUNT( * ) * - 37 + - 64 DIV 30
----
-2999

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL + 81 * + COUNT ( * ) * - 37 + - 64 / 30
----
-2999

query I rowsort
SELECT - 74 + ( - ( - 69 ) )
----
-5

query II rowsort
SELECT ALL + 73 * 24 + + 96, 56 * - 83 AS col1
----
1848
-4648

query II rowsort
SELECT ALL + 38 AS col2, + 86
----
38
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT ALL + 59 * + 28 - 35 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL + 59 * + 28 - 35 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT - - COUNT( * ) * CASE + 24 WHEN + NULLIF ( - ( - ( - COUNT( * ) ) ), 97 + - + 57 / - 73 ) THEN NULL WHEN + 59 THEN + 0 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT - - COUNT ( * ) * CASE + 24 WHEN + NULLIF ( - ( - ( - COUNT ( * ) ) ), 97 + - + 57 / - 73 ) THEN NULL WHEN + 59 THEN + 0 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 2, 69 AS col0
----
2
69

query II rowsort
SELECT - - 89 col2, ( - 53 ) AS col2
----
89
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2307
SELECT + COUNT( * ) * - 9 + 59 + CASE + + CAST( NULL AS SIGNED ) WHEN 53 THEN + 71 - + + 86 * + - ( 16 ) * 15 / - NULLIF ( - 56, - + 68 * 63 * 83 * - 60 + - - 86 + + - 73 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT + COUNT ( * ) * - 9 + 59 + CASE + + CAST ( NULL AS INTEGER ) WHEN 53 THEN + 71 - + + 86 * + - ( 16 ) * 15 / - NULLIF ( - 56, - + 68 * 63 * 83 * - 60 + - - 86 + + - 73 ) END
----
NULL

query I rowsort
SELECT - 76 * - + ( 68 ) * 85
----
439280

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT - 90 + + + 32 - COUNT( * ) * - 80 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2309
SELECT - 90 + + + 32 - COUNT ( * ) * - 80 AS col2
----
22

query I rowsort
SELECT - 3 + 67 + - + 83 * + 58 * + - 78 - - 63
----
375619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT ALL + CAST( 18 AS SIGNED ) * - 54 AS col0
----
-972

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + CAST ( 18 AS INTEGER ) * - 54 AS col0
----
-972

query I rowsort
SELECT DISTINCT + 86 - + + 31
----
55

query I rowsort
SELECT ALL - - 44 * - 82
----
-3608

query I rowsort
SELECT - 51 + + 2
----
-49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT - MAX( DISTINCT - 27 ) - + + 82
----
-55

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT - MAX ( DISTINCT - 27 ) - + + 82
----
-55

query II rowsort
SELECT DISTINCT 27, + 4 col1
----
27
4

query I rowsort
SELECT 65 * - + 46
----
-2990

query I rowsort
SELECT 0 * + 62 * ( + 55 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT ALL - 68 * CAST( NULL AS SIGNED ) * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL - 68 * CAST ( NULL AS INTEGER ) * - 88
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2321
SELECT 74 - - - 63 - + 85 * + - ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT 74 - - - 63 - + 85 * + - ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2322
SELECT COALESCE ( - - 79, - COALESCE ( 65, - 47, + COALESCE ( - - 56, - - ( - - 59 ) * 40 * COUNT( * ) DIV + - 21 * + + 96 + + 13 + SUM( ALL 31 ) + + + CASE - COUNT( * ) WHEN ( - 80 ) THEN NULL WHEN - - 38 THEN COUNT( * ) WHEN + - 88 THEN NULL END * 73 ) ) * + 45, - 26, NULLIF ( + ( + 8 ), + 69 + COUNT( * ) ) DIV + 98 ) + NULLIF ( + 40, + 40 * CAST( - CASE - 21 WHEN - 84 + + 32 THEN 64 - 26 END AS DECIMAL ) ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-2322
SELECT COALESCE ( - - 79, - COALESCE ( 65, - 47, + COALESCE ( - - 56, - - ( - - 59 ) * 40 * COUNT ( * ) / + - 21 * + + 96 + + 13 + SUM ( ALL 31 ) + + + CASE - COUNT ( * ) WHEN ( - 80 ) THEN NULL WHEN - - 38 THEN COUNT ( * ) WHEN + - 88 THEN NULL END * 73 ) ) * + 45, - 26, NULLIF ( + ( + 8 ), + 69 + COUNT ( * ) ) / + 98 ) + NULLIF ( + 40, + 40 * CAST ( - CASE - 21 WHEN - 84 + + 32 THEN 64 - 26 END AS REAL ) ) AS col0
----
119

query II rowsort
SELECT DISTINCT 91 AS col2, 8 * - 49
----
91
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT COUNT( * ) + - 21 * - - ( + ( - - COUNT( ALL 42 ) ) ) * 0
----
1

skipif mysql # not compatible
query I rowsort label-2324
SELECT COUNT ( * ) + - 21 * - - ( + ( - - COUNT ( ALL 42 ) ) ) * 0
----
1

query I rowsort
SELECT ALL + 33 + - 53 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT DISTINCT COALESCE ( + COUNT( * ), + 72, - 83 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT COALESCE ( + COUNT ( * ), + 72, - 83 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

query II rowsort
SELECT DISTINCT - 67, + 62 + - 12 + + 62 + + 76 AS col1
----
-67
188

query II rowsort
SELECT DISTINCT 54 + + 76 AS col1, - 57
----
130
-57

query I rowsort
SELECT ALL 89 + 29 AS col0
----
118

query II rowsort
SELECT 61, 72 AS col1
----
61
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2332
SELECT MIN( + 65 ) DIV + 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2332
SELECT MIN ( + 65 ) / + 46 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2333
SELECT - + 62 / 44 - + 22 + + + SUM( ALL + 26 ) * + 52 * - 70 * + + CAST( NULL AS DECIMAL ) * + 50, - NULLIF ( 25, CAST( + + 51 AS SIGNED ) ) AS col0
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-2333
SELECT - + 62 / 44 - + 22 + + + SUM ( ALL + 26 ) * + 52 * - 70 * + + CAST ( NULL AS REAL ) * + 50, - NULLIF ( 25, CAST ( + + 51 AS INTEGER ) ) AS col0
----
NULL
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2334
SELECT 65 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-2334
SELECT 65 / 43
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL 94 + - ( COUNT( ALL - 89 ) ) * - - 66
----
28

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL 94 + - ( COUNT ( ALL - 89 ) ) * - - 66
----
28

query I rowsort
SELECT DISTINCT - + ( 39 ) AS col1
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-2337
SELECT ALL 21 DIV 68 col2
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL 21 / 68 col2
----
0

query I rowsort
SELECT 45 + 94
----
139

query I rowsort
SELECT + 60 - + 29 AS col1
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL + COUNT( * ) * 97 - + 28
----
69

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL + COUNT ( * ) * 97 - + 28
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT DISTINCT - CASE CAST( NULL AS SIGNED ) WHEN + - 35 THEN - 47 * - 23 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN + - 35 THEN - 47 * - 23 END AS col2
----
NULL

query II rowsort
SELECT ALL - 81 AS col1, - 66 AS col1
----
-81
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT - + MAX( - 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2344
SELECT - + MAX ( - 91 ) AS col0
----
91

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

query II rowsort
SELECT ALL COALESCE ( 25, + - 74 ) * - 32, - 28 AS col0
----
-800
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT 60 + + 97 + COUNT( * ) * + + 91 AS col1
----
248

skipif mysql # not compatible
query I rowsort label-2347
SELECT 60 + + 97 + COUNT ( * ) * + + 91 AS col1
----
248

query I rowsort
SELECT DISTINCT + 24 * - 20 + + + 11 * - 82 col1
----
-1382

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT 94 + + 69 DIV + + 74 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-2349
SELECT 94 + + 69 / + + 74 AS col2
----
94

query I rowsort
SELECT 0 * + 34 AS col1
----
0

query I rowsort
SELECT ( 11 ) * + 11 AS col1
----
121

query I rowsort
SELECT 74 + 62 * + 32 + - 78 + + + CASE 22 WHEN - 94 THEN + + 21 * - + 68 + 22 + 61 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2353
SELECT CAST( 40 AS SIGNED ) + + + 30 - 83 - - 56 * + AVG ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT CAST ( 40 AS INTEGER ) + + + 30 - 83 - - 56 * + AVG ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 19 + - 23
----
-4

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2356
SELECT DISTINCT + ( 29 ) * CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT + ( 29 ) * CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2357
SELECT ALL - COUNT( * ) + 16 + + 46 AS col0, + 14 + 73 + - ( 5 ) * - 97 * + 99 + - - ( - 64 )
----
61
48038

skipif mysql # not compatible
query II rowsort label-2357
SELECT ALL - COUNT ( * ) + 16 + + 46 AS col0, + 14 + 73 + - ( 5 ) * - 97 * + 99 + - - ( - 64 )
----
61
48038

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

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

query II rowsort
SELECT DISTINCT 67 + + 71, 14 * - + 58 AS col0
----
138
-812

onlyif mysql # DIV for integer division: 
query I rowsort label-2360
SELECT ALL + 10 DIV 10 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL + 10 / 10 AS col1
----
1

query I rowsort
SELECT 15 * + 84
----
1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2362
SELECT 19 + + COUNT( * ) DIV + 98 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2362
SELECT 19 + + COUNT ( * ) / + 98 AS col0
----
19

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

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

query I rowsort
SELECT 25 * + 85
----
2125

query I rowsort
SELECT ALL - ( 44 ) + + - 54 + - 22
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT COUNT( + 98 ) * 48
----
48

skipif mysql # not compatible
query I rowsort label-2366
SELECT COUNT ( + 98 ) * 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL + 72 * + 23 + + - 75 * 57 * CASE 71 WHEN + MAX( + + 22 ) THEN - CASE + - 61 WHEN + ( + + 77 ) THEN + 23 ELSE NULL END * - 84 END + - - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL + 72 * + 23 + + - 75 * 57 * CASE 71 WHEN + MAX ( + + 22 ) THEN - CASE + - 61 WHEN + ( + + 77 ) THEN + 23 ELSE NULL END * - 84 END + - - 27 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2369
SELECT - + COUNT( * ) DIV 62 + + 66
----
66

skipif mysql # not compatible
query I rowsort label-2369
SELECT - + COUNT ( * ) / 62 + + 66
----
66

query I rowsort
SELECT ALL + + 25 * + + 44 - 83 * 97 + 31 * - 15 AS col2
----
-7416

query I rowsort
SELECT - 9 + COALESCE ( - 49, + 4 * - 81 - - - 93 ) * + 35 * - - 97 AS col1
----
-166364

query I rowsort
SELECT ALL - - ( - 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL 52 * - COUNT( * ) * - + COUNT( * ) + 61
----
113

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL 52 * - COUNT ( * ) * - + COUNT ( * ) + 61
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT MAX( + 45 ) + CASE - ( + 62 ) WHEN + - 26 THEN 2 / - ( + 16 ) + - + 74 + 79 + - - COUNT( * ) + - 1 END + - - 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT MAX ( + 45 ) + CASE - ( + 62 ) WHEN + - 26 THEN 2 / - ( + 16 ) + - + 74 + 79 + - - COUNT ( * ) + - 1 END + - - 55 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2375
SELECT 11 * CAST( - 47 AS SIGNED ) AS col2, 59 * 84 AS col0
----
-517
4956

skipif mysql # not compatible
query II rowsort label-2375
SELECT 11 * CAST ( - 47 AS INTEGER ) AS col2, 59 * 84 AS col0
----
-517
4956

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

skipif mysql # not compatible
query I rowsort label-2376
SELECT + 61 * COUNT ( * ) + + 89 AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL 28 - 86 - ( - 25 ) + - ( + COUNT( * ) ) * - COUNT( * ) * + + 77
----
44

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL 28 - 86 - ( - 25 ) + - ( + COUNT ( * ) ) * - COUNT ( * ) * + + 77
----
44

query I rowsort
SELECT DISTINCT - + 23 * - - 71 AS col0
----
-1633

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT DISTINCT - - MAX( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT - - MAX ( 65 )
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-2380
SELECT DISTINCT + 64 DIV 18 AS col2, 14 AS col0
----
3
14

skipif mysql # not compatible
query II rowsort label-2380
SELECT DISTINCT + 64 / 18 AS col2, 14 AS col0
----
3
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2381
SELECT DISTINCT 82 DIV 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT 82 / 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT - SUM( ALL - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-2382
SELECT - SUM ( ALL - 45 )
----
45

query I rowsort
SELECT + 50 * + 11 AS col2
----
550

query I rowsort
SELECT - NULLIF ( + 16, - + 4 + - - 71 )
----
-16

query II rowsort
SELECT ALL 29 AS col0, 40
----
29
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT DISTINCT 79 + 9 + - - MAX( DISTINCT + + 82 ) + + 90 + - - 77 AS col0
----
337

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT 79 + 9 + - - MAX ( DISTINCT + + 82 ) + + 90 + - - 77 AS col0
----
337

query I rowsort
SELECT ALL - 51 + + 75 AS col0
----
24

query II rowsort
SELECT - NULLIF ( - 85, + 27 ) AS col2, COALESCE ( + 14, + 2 )
----
85
14

query I rowsort
SELECT + 96 * - 24
----
-2304

onlyif mysql # aggregate syntax: 
query II rowsort label-2390
SELECT DISTINCT 46 AS col0, + SUM( DISTINCT - 38 ) * - + 25 * 19
----
46
18050

skipif mysql # not compatible
query II rowsort label-2390
SELECT DISTINCT 46 AS col0, + SUM ( DISTINCT - 38 ) * - + 25 * 19
----
46
18050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2391
SELECT ALL ( + COALESCE ( COUNT( * ), 5 ) ) + - CAST( - + 76 AS DECIMAL ) + - + CASE + 85 WHEN NULLIF ( + 2, - CAST( NULL AS SIGNED ) ) + - - 74 + COUNT( * ) THEN - 71 / - ( + 9 ) / + + COUNT( * ) + + - SUM( 99 ) + 26 + + 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL ( + COALESCE ( COUNT ( * ), 5 ) ) + - CAST ( - + 76 AS REAL ) + - + CASE + 85 WHEN NULLIF ( + 2, - CAST ( NULL AS INTEGER ) ) + - - 74 + COUNT ( * ) THEN - 71 / - ( + 9 ) / + + COUNT ( * ) + + - SUM ( 99 ) + 26 + + 25 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2392
SELECT ALL COUNT ( * ) col2, 62
----
1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL COUNT( - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL COUNT ( - 16 )
----
1

query I rowsort
SELECT - 30 * 91 AS col0
----
-2730

query I rowsort
SELECT ALL - 43 * 12 AS col1
----
-516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2396
SELECT - 48 DIV COALESCE ( - 88, + COUNT( * ), 87 * 30 ) * 17
----
0

skipif mysql # not compatible
query I rowsort label-2396
SELECT - 48 / COALESCE ( - 88, + COUNT ( * ), 87 * 30 ) * 17
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2398
SELECT DISTINCT - 25 * NULLIF ( - 19, - 56 ) * + CAST( NULL AS DECIMAL ) + - ( 16 ) + + 79 - - 4 * - 80 + - 95 col0, 58
----
NULL
58

skipif mysql # not compatible
query II rowsort label-2398
SELECT DISTINCT - 25 * NULLIF ( - 19, - 56 ) * + CAST ( NULL AS REAL ) + - ( 16 ) + + 79 - - 4 * - 80 + - 95 col0, 58
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT + ( SUM( DISTINCT + ( 37 ) ) ) col0
----
37

skipif mysql # not compatible
query I rowsort label-2399
SELECT + ( SUM ( DISTINCT + ( 37 ) ) ) col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL - + COUNT( * ) * - NULLIF ( + 1, - COUNT( * ) * + COUNT( * ) + - 39 + + 97 * + 43 * 89 - - 29 + + - 29 * + 97 * - 61 * - 54 / 86 * - - COUNT( * ) * 58 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL - + COUNT ( * ) * - NULLIF ( + 1, - COUNT ( * ) * + COUNT ( * ) + - 39 + + 97 * + 43 * 89 - - 29 + + - 29 * + 97 * - 61 * - 54 / 86 * - - COUNT ( * ) * 58 ) col1
----
1

query I rowsort
SELECT + + 37 - 32 col1
----
5

query I rowsort
SELECT ALL + ( + - 37 ) * 77 + + 73
----
-2776

query I rowsort
SELECT - 73 * - 38 AS col1
----
2774

query II rowsort
SELECT ALL + - 39, 33 AS col1
----
-39
33

query I rowsort
SELECT - + 21 - + 90 AS col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT + COALESCE ( 96, + - 9, - SUM( 12 ) * - 71 * - 44 - - 4 * + 2 + 91 + - COUNT( * ) * - - 87 )
----
96

skipif mysql # not compatible
query I rowsort label-2406
SELECT + COALESCE ( 96, + - 9, - SUM ( 12 ) * - 71 * - 44 - - 4 * + 2 + 91 + - COUNT ( * ) * - - 87 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT ALL + NULLIF ( COUNT( * ), + 87 ) * + 21 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL + NULLIF ( COUNT ( * ), + 87 ) * + 21 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT - - 60 + + 17 * - - 65 - + 54 + - - 64 - 12 * + - 64 + + COUNT( * ) + + 26 - + 43 AS col0
----
1927

skipif mysql # not compatible
query I rowsort label-2408
SELECT - - 60 + + 17 * - - 65 - + 54 + - - 64 - 12 * + - 64 + + COUNT ( * ) + + 26 - + 43 AS col0
----
1927

query I rowsort
SELECT + - CASE WHEN NOT NULL < - 99 THEN 1 * 21 + - 43 END * - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT + 59 - - + 2 + - COUNT( * ) * 88 + - 12 * - COUNT( ALL + + 66 )
----
-15

skipif mysql # not compatible
query I rowsort label-2410
SELECT + 59 - - + 2 + - COUNT ( * ) * 88 + - 12 * - COUNT ( ALL + + 66 )
----
-15

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT - 27 + + + NULLIF ( COUNT( * ), 64 )
----
-26

skipif mysql # not compatible
query I rowsort label-2413
SELECT - 27 + + + NULLIF ( COUNT ( * ), 64 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL - 10 * - SUM( ALL + - 39 )
----
-390

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL - 10 * - SUM ( ALL + - 39 )
----
-390

query I rowsort
SELECT ALL - 43 * 18 * - 0 + - - 70 - - 72 AS col1
----
142

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2416
SELECT + 20 + 44 + + SUM( DISTINCT CAST( NULL AS DECIMAL ) ) * 4 * + 44 * + NULLIF ( - 44, 61 - - + 39 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT + 20 + 44 + + SUM ( DISTINCT CAST ( NULL AS REAL ) ) * 4 * + 44 * + NULLIF ( - 44, 61 - - + 39 ) AS col0
----
NULL

query I rowsort
SELECT + 38 * + 2
----
76

query I rowsort
SELECT ALL ( - 87 ) + + 70 AS col0
----
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT - 61 DIV NULLIF ( + + 39, - 78 + 42 - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-2420
SELECT - 61 / NULLIF ( + + 39, - 78 + 42 - 66 )
----
-1

query II rowsort
SELECT + 66 * - + 80 AS col1, - 30 col2
----
-5280
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2422
SELECT ALL MIN( - 27 ) DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL MIN ( - 27 ) / - 30
----
0

query I rowsort
SELECT + 43 + + 39 AS col2
----
82

query I rowsort
SELECT - NULLIF ( - 4, - 42 ) col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2425
SELECT ALL ( - + 29 ) - + 44 DIV COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL ( - + 29 ) - + 44 / COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT + 48 + - - 32 + ( + CASE WHEN NOT 89 >= NULL THEN - 12 END ) * - - 46 + + 27, + COUNT( DISTINCT - 53 ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2426
SELECT + 48 + - - 32 + ( + CASE WHEN NOT 89 >= NULL THEN - 12 END ) * - - 46 + + 27, + COUNT ( DISTINCT - 53 ) AS col1
----
NULL
1

query I rowsort
SELECT + 7 * - 59 AS col0
----
-413

query I rowsort
SELECT ALL 30 * - - 16
----
480

query I rowsort
SELECT + 30 + 28 * 84
----
2382

onlyif mysql # aggregate syntax: 
query II rowsort label-2430
SELECT + - 8 * - COUNT( * ) col2, + COUNT( * ) + - + 14 AS col2
----
8
-13

skipif mysql # not compatible
query II rowsort label-2430
SELECT + - 8 * - COUNT ( * ) col2, + COUNT ( * ) + - + 14 AS col2
----
8
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT - COUNT( * ) * - 80 * + 57 * SUM( DISTINCT - 84 )
----
-383040

skipif mysql # not compatible
query I rowsort label-2431
SELECT - COUNT ( * ) * - 80 * + 57 * SUM ( DISTINCT - 84 )
----
-383040

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2432
SELECT - CAST( NULL AS DECIMAL ) - + - 21 * - 38 + 87 + + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT - CAST ( NULL AS REAL ) - + - 21 * - 38 + 87 + + - 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT + 57 + - NULLIF ( CAST( NULL AS SIGNED ), + 64 + + + 61 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT + 57 + - NULLIF ( CAST ( NULL AS INTEGER ), + 64 + + + 61 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT + 94 DIV + + 98 - + 81 - 15
----
-96

skipif mysql # not compatible
query I rowsort label-2434
SELECT + 94 / + + 98 - + 81 - 15
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT ( + - 48 ) * 54 / + + 92 + + CAST( NULL AS SIGNED ) + - ( + 16 ) - 77 * - 47 + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT ( + - 48 ) * 54 / + + 92 + + CAST ( NULL AS INTEGER ) + - ( + 16 ) - 77 * - 47 + - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL - - COUNT( * ) * MIN( DISTINCT + - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL - - COUNT ( * ) * MIN ( DISTINCT + - 26 )
----
-26

query I rowsort
SELECT + 7 + - + 31 AS col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2438
SELECT ALL 76 * - COUNT( * ) DIV + + 92 * + 32 AS col1, 36 AS col1
----
0
36

skipif mysql # not compatible
query II rowsort label-2438
SELECT ALL 76 * - COUNT ( * ) / + + 92 * + 32 AS col1, 36 AS col1
----
0
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT + + MIN( DISTINCT 32 ) * + 19 - + 54 col0
----
554

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT + + MIN ( DISTINCT 32 ) * + 19 - + 54 col0
----
554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2440
SELECT DISTINCT - + CAST( + 1 AS SIGNED ) * - 64 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT - + CAST ( + 1 AS INTEGER ) * - 64 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT - - 69 * + COUNT( * ) + + 53 + 36 * ( - 97 ) + + - 54
----
-3424

skipif mysql # not compatible
query I rowsort label-2441
SELECT - - 69 * + COUNT ( * ) + + 53 + 36 * ( - 97 ) + + - 54
----
-3424

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT - ( + COUNT( DISTINCT 27 ) ) * - - 61 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2442
SELECT - ( + COUNT ( DISTINCT 27 ) ) * - - 61 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT - 26 * - 64 + + COUNT( * ) + 35 * 40 + - 57
----
3008

skipif mysql # not compatible
query I rowsort label-2443
SELECT - 26 * - 64 + + COUNT ( * ) + 35 * 40 + - 57
----
3008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2444
SELECT + NULLIF ( + - 56, - COALESCE ( - + ( - 97 ), + ( CAST( + MIN( 98 ) AS SIGNED ) ), 10 ) * + - 52 + - 39 ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-2444
SELECT + NULLIF ( + - 56, - COALESCE ( - + ( - 97 ), + ( CAST ( + MIN ( 98 ) AS INTEGER ) ), 10 ) * + - 52 + - 39 ) col0
----
-56

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

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - 12 + - COUNT ( * ) AS col0
----
-13

query I rowsort
SELECT ALL + 51 + - 28
----
23

query I rowsort
SELECT 9 * 32 AS col0
----
288

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

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

query II rowsort
SELECT - 95, 31 AS col0
----
-95
31

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

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

query I rowsort
SELECT ALL 25 - + + NULLIF ( 54, 94 ) + ( + 72 ) * + - 91 AS col0
----
-6581

query I rowsort
SELECT 44 - + 87
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT MAX( ALL + 50 ) + 14 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2453
SELECT MAX ( ALL + 50 ) + 14 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2454
SELECT 34 DIV + COALESCE ( CAST( NULL AS SIGNED ), 12 * 10 * ( + - ( + COUNT( * ) ) ) * 89 + + - 21, - 47 * + 44 + + 18 + - - 36 )
----
0

skipif mysql # not compatible
query I rowsort label-2454
SELECT 34 / + COALESCE ( CAST ( NULL AS INTEGER ), 12 * 10 * ( + - ( + COUNT ( * ) ) ) * 89 + + - 21, - 47 * + 44 + + 18 + - - 36 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2455
SELECT + 11 + 32 + + - CAST( NULL AS DECIMAL ) + + - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT + 11 + 32 + + - CAST ( NULL AS REAL ) + + - 79 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2456
SELECT + 55 / + CASE + ( - 95 ) WHEN - 56 THEN + 58 * - 98 ELSE NULL END - 99 - CAST( NULL AS SIGNED ) * - COUNT( * ) + - 49 - - 43 * - + 5 AS col2, 40 AS col0
----
NULL
40

skipif mysql # not compatible
query II rowsort label-2456
SELECT + 55 / + CASE + ( - 95 ) WHEN - 56 THEN + 58 * - 98 ELSE NULL END - 99 - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 49 - - 43 * - + 5 AS col2, 40 AS col0
----
NULL
40

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2458
SELECT - - 4 AS col2, + 84 + COUNT( * ) DIV + SUM( + 65 )
----
4
84

skipif mysql # not compatible
query II rowsort label-2458
SELECT - - 4 AS col2, + 84 + COUNT ( * ) / + SUM ( + 65 )
----
4
84

query I rowsort
SELECT DISTINCT + 52 + - 44 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2460
SELECT ALL CAST( - + 78 AS SIGNED ) * + - 56
----
4368

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL CAST ( - + 78 AS INTEGER ) * + - 56
----
4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT - 4 * CAST( + + COUNT( * ) AS SIGNED ) - - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-2461
SELECT - 4 * CAST ( + + COUNT ( * ) AS INTEGER ) - - COUNT ( * )
----
-3

query I rowsort
SELECT + 44 - - 23 AS col0
----
67

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

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

query I rowsort
SELECT ALL CASE + + 47 WHEN - ( + AVG ( 18 ) ) THEN NULL ELSE + 18 END + + 74 AS col0
----
92

query I rowsort
SELECT + 71 * + ( - 55 )
----
-3905

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT COUNT( * ) * NULLIF ( - + 14, COUNT( * ) + + - 32 * - 69 ) + - + 94 AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-2466
SELECT COUNT ( * ) * NULLIF ( - + 14, COUNT ( * ) + + - 32 * - 69 ) + - + 94 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-2467
SELECT ALL + 58 + + 0 * - + 87 AS col2, MAX( DISTINCT - 89 ) AS col2
----
58
-89

skipif mysql # not compatible
query II rowsort label-2467
SELECT ALL + 58 + + 0 * - + 87 AS col2, MAX ( DISTINCT - 89 ) AS col2
----
58
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-2468
SELECT ALL - 83 + NULLIF ( - COUNT( * ), + COUNT( * ) + - - 43 ) - 35 * - ( - + 38 ) - - COALESCE ( - COUNT( * ), 78 * 2 ) * + 1 * + ( 79 ) AS col0, - 49
----
-1493
-49

skipif mysql # not compatible
query II rowsort label-2468
SELECT ALL - 83 + NULLIF ( - COUNT ( * ), + COUNT ( * ) + - - 43 ) - 35 * - ( - + 38 ) - - COALESCE ( - COUNT ( * ), 78 * 2 ) * + 1 * + ( 79 ) AS col0, - 49
----
-1493
-49

query I rowsort
SELECT - 93 - - + 3 + - + 54 - + - 57 + + - 88 * - - 74 + ( - + 75 ) + + 84
----
-6590

onlyif mysql # aggregate syntax: 
query II rowsort label-2470
SELECT 74, SUM( ALL - 85 ) AS col1
----
74
-85

skipif mysql # not compatible
query II rowsort label-2470
SELECT 74, SUM ( ALL - 85 ) AS col1
----
74
-85

query I rowsort
SELECT DISTINCT + 56 + - - 86 + + 1
----
143

query II rowsort
SELECT ALL - 83 AS col0, + 31 * + 1
----
-83
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL 3 + 63 + + - SUM( - 29 ) + - + 34 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL 3 + 63 + + - SUM ( - 29 ) + - + 34 AS col1
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL ( 20 ) * - COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL ( 20 ) * - COUNT ( * ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL - MIN( + 58 ) * - 72 * + 69 - - 95 * - COUNT( * ) - - - 12 AS col0
----
288037

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL - MIN ( + 58 ) * - 72 * + 69 - - 95 * - COUNT ( * ) - - - 12 AS col0
----
288037

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT COUNT( * ) + ( + + 17 ) + 40 * 86 + + - COUNT( * ) + + 6 + COUNT( * ) - + - 60 AS col1
----
3524

skipif mysql # not compatible
query I rowsort label-2477
SELECT COUNT ( * ) + ( + + 17 ) + 40 * 86 + + - COUNT ( * ) + + 6 + COUNT ( * ) - + - 60 AS col1
----
3524

query I rowsort
SELECT DISTINCT - CASE 53 WHEN - 29 THEN - COALESCE ( - 35, + - 59, + + CASE - 19 WHEN + 5 THEN 94 + - 61 ELSE NULL END / - + 75 ) + + 37 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT 54 - - - 71 - + COUNT( * ) * + + 67 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2479
SELECT 54 - - - 71 - + COUNT ( * ) * + + 67 AS col2
----
-84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL - MAX( DISTINCT CASE + 8 WHEN - 17 THEN - 80 / + 14 * 31 WHEN + 13 THEN - ( - 56 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL - MAX ( DISTINCT CASE + 8 WHEN - 17 THEN - 80 / + 14 * 31 WHEN + 13 THEN - ( - 56 ) END ) AS col2
----
NULL

query I rowsort
SELECT 34 * 56 AS col2
----
1904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2483
SELECT 44 + COUNT( * ) AS col1, + NULLIF ( - CAST( NULL AS SIGNED ), + 86 * + 66 + + COUNT( * ) + - MIN( + - 67 ) * 25 + - ( 48 ) ) * + - 22 * - + COALESCE ( + SUM( ALL + 15 ), + 86 ) * COALESCE ( 42, - 88 ) AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-2483
SELECT 44 + COUNT ( * ) AS col1, + NULLIF ( - CAST ( NULL AS INTEGER ), + 86 * + 66 + + COUNT ( * ) + - MIN ( + - 67 ) * 25 + - ( 48 ) ) * + - 22 * - + COALESCE ( + SUM ( ALL + 15 ), + 86 ) * COALESCE ( 42, - 88 ) AS col2
----
45
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT 53 + - 54 DIV + 57 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2484
SELECT 53 + - 54 / + 57 AS col1
----
53

query II rowsort
SELECT ALL 57 col0, 85 * + - 84 AS col1
----
57
-7140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2486
SELECT COALESCE ( 48, - + NULLIF ( + NULLIF ( - 44, - 44 ), - - 86 DIV + 95 + SUM( + + 15 ) ) ) * + - 54 DIV - - 18 AS col0, - 80
----
-144
-80

skipif mysql # not compatible
query II rowsort label-2486
SELECT COALESCE ( 48, - + NULLIF ( + NULLIF ( - 44, - 44 ), - - 86 / + 95 + SUM ( + + 15 ) ) ) * + - 54 / - - 18 AS col0, - 80
----
-144
-80

query I rowsort
SELECT 60 * - 29
----
-1740

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

skipif mysql # not compatible
query II rowsort label-2488
SELECT ALL COUNT ( * ), 68 AS col0
----
1
68

query I rowsort
SELECT 40 + - + 81 * 22
----
-1742

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT + 26 * - 3 * MAX( ALL + 3 )
----
-234

skipif mysql # not compatible
query I rowsort label-2490
SELECT + 26 * - 3 * MAX ( ALL + 3 )
----
-234

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL CASE 24 WHEN - - 32 THEN - 36 * + COUNT( * ) WHEN + AVG ( DISTINCT + ( + 21 ) ) THEN + - 80 * - + 75 - - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL CASE 24 WHEN - - 32 THEN - 36 * + COUNT ( * ) WHEN + AVG ( DISTINCT + ( + 21 ) ) THEN + - 80 * - + 75 - - 18 END
----
NULL

query I rowsort
SELECT ALL 92 + - 38
----
54

query I rowsort
SELECT DISTINCT + - 14 + 6 * + + 1 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT - COUNT( * ), 99 + - 24 AS col0
----
-1
75

skipif mysql # not compatible
query II rowsort label-2495
SELECT - COUNT ( * ), 99 + - 24 AS col0
----
-1
75

query I rowsort
SELECT - + 48 + - - 34
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT ALL - 79 + + 97 * - CAST( + 52 AS SIGNED )
----
-5123

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL - 79 + + 97 * - CAST ( + 52 AS INTEGER )
----
-5123

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - - MIN( - + 66 ) + + 45
----
-21

skipif mysql # not compatible
query I rowsort label-2498
SELECT - - MIN ( - + 66 ) + + 45
----
-21

query I rowsort
SELECT + + 9 * - - 92 - + 5
----
823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2500
SELECT - CASE - COUNT( * ) WHEN + 74 THEN NULL WHEN - 99 - + + NULLIF ( - 76, 32 + + + 93 * - + 33 * + COUNT( * ) ) THEN - + 71 END * 82 + + 41 + ( + NULLIF ( ( - ( + - CAST( NULL AS SIGNED ) ) ), - 78 ) ) * - - 78 + 31 + + - 80 + COUNT( * ) * - SUM( ALL - - 83 ) / - + CASE + + 17 WHEN + COUNT( * ) THEN + 96 WHEN - - 71 THEN NULL ELSE - 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT - CASE - COUNT ( * ) WHEN + 74 THEN NULL WHEN - 99 - + + NULLIF ( - 76, 32 + + + 93 * - + 33 * + COUNT ( * ) ) THEN - + 71 END * 82 + + 41 + ( + NULLIF ( ( - ( + - CAST ( NULL AS INTEGER ) ) ), - 78 ) ) * - - 78 + 31 + + - 80 + COUNT ( * ) * - SUM ( ALL - - 83 ) / - + CASE + + 17 WHEN + COUNT ( * ) THEN + 96 WHEN - - 71 THEN NULL ELSE - 3 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL + + COUNT( * ) * - 52 * + 77 + + 57 AS col1
----
-3947

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL + + COUNT ( * ) * - 52 * + 77 + + 57 AS col1
----
-3947

onlyif mysql # DIV for integer division: 
query I rowsort label-2503
SELECT DISTINCT - 76 DIV 64 * - 11
----
11

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT - 76 / 64 * - 11
----
11

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT DISTINCT + 3 * - 59 + - 49 + - 98 * 60 * + 60 * + 77 + - COUNT( + CAST( NULL AS SIGNED ) ) + - + MIN( ALL - ( + 99 ) ) AS col0
----
-27165727

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT + 3 * - 59 + - 49 + - 98 * 60 * + 60 * + 77 + - COUNT ( + CAST ( NULL AS INTEGER ) ) + - + MIN ( ALL - ( + 99 ) ) AS col0
----
-27165727

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL + 67 * COUNT( * ) + + 73 + - 46 + - 65 col2
----
29

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL + 67 * COUNT ( * ) + + 73 + - 46 + - 65 col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-2507
SELECT ALL + - COUNT( * ) col1, 75 * - 30
----
-1
-2250

skipif mysql # not compatible
query II rowsort label-2507
SELECT ALL + - COUNT ( * ) col1, 75 * - 30
----
-1
-2250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT + CAST( NULL AS SIGNED ) + 19 - - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT + CAST ( NULL AS INTEGER ) + 19 - - 3 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2509
SELECT - ( + CAST ( NULL AS INTEGER ) ) * - - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT CASE + COUNT( * ) WHEN - 44 + + 0 + + - 41 + + 24 + 42 / 20 + 16 THEN + + 77 + + 84 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT CASE + COUNT ( * ) WHEN - 44 + + 0 + + - 41 + + 24 + 42 / 20 + 16 THEN + + 77 + + 84 END col2
----
NULL

query I rowsort
SELECT + 79 * + 83
----
6557

query I rowsort
SELECT - 44 + + 47 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL - 68 * - 39 * - - 85 * 8 - - 56 + + COUNT( * ) col2
----
1803417

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - 68 * - 39 * - - 85 * 8 - - 56 + + COUNT ( * ) col2
----
1803417

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2514
SELECT CASE - - CAST( + + 67 AS DECIMAL ) WHEN 36 THEN + 89 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT CASE - - CAST ( + + 67 AS REAL ) WHEN 36 THEN + 89 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2515
SELECT + COUNT( * ) DIV - - CAST( - 78 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2515
SELECT + COUNT ( * ) / - - CAST ( - 78 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT ALL 43 * + 2 * + - 2
----
-172

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT + 1 DIV + - 43
----
0

skipif mysql # not compatible
query I rowsort label-2518
SELECT + 1 / + - 43
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2519
SELECT + 65 DIV - + 73, + 18 * - - 70 col0
----
0
1260

skipif mysql # not compatible
query II rowsort label-2519
SELECT + 65 / - + 73, + 18 * - - 70 col0
----
0
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT - 71 + - 23 - - + 27 DIV + 77 - 83 AS col2
----
-177

skipif mysql # not compatible
query I rowsort label-2520
SELECT - 71 + - 23 - - + 27 / + 77 - 83 AS col2
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL CASE NULLIF ( + - 21, + COUNT( * ) ) WHEN + 48 + - 17 + + - COUNT( * ) + 97 + + + 35 * + - 15 THEN NULL ELSE NULLIF ( - 96, - 60 + SUM( DISTINCT + - 39 ) ) + + - 5 END col0
----
-101

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL CASE NULLIF ( + - 21, + COUNT ( * ) ) WHEN + 48 + - 17 + + - COUNT ( * ) + 97 + + + 35 * + - 15 THEN NULL ELSE NULLIF ( - 96, - 60 + SUM ( DISTINCT + - 39 ) ) + + - 5 END col0
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2522
SELECT DISTINCT - CAST( - - 70 AS SIGNED ) AS col1, 67 * + 72
----
-70
4824

skipif mysql # not compatible
query II rowsort label-2522
SELECT DISTINCT - CAST ( - - 70 AS INTEGER ) AS col1, 67 * + 72
----
-70
4824

query I rowsort
SELECT - - 38 + + 27 AS col2
----
65

query II rowsort
SELECT ALL - 82 + - + 52 AS col0, - 89 AS col1
----
-134
-89

query I rowsort
SELECT + + 19 + 23 + - 96
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2526
SELECT - 96 + + 56 DIV - ( + 81 ) + - NULLIF ( 80, MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) ) AS col0
----
-176

skipif mysql # not compatible
query I rowsort label-2526
SELECT - 96 + + 56 / - ( + 81 ) + - NULLIF ( 80, MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2527
SELECT DISTINCT + 91 + + 50 + - - 24 - + - 93 * + + 62 * ( + + 65 ) AS col2, 62 DIV + - MAX( + 99 ) * CAST( + 95 AS SIGNED ) AS col2
----
374955
0

skipif mysql # not compatible
query II rowsort label-2527
SELECT DISTINCT + 91 + + 50 + - - 24 - + - 93 * + + 62 * ( + + 65 ) AS col2, 62 / + - MAX ( + 99 ) * CAST ( + 95 AS INTEGER ) AS col2
----
374955
0

query I rowsort
SELECT - 9 + + 43 + 38
----
72

query I rowsort
SELECT ALL - + 99 + - 51 AS col1
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT ALL - 47 * - 44 * - 1 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - 47 * - 44 * - 1 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT DISTINCT + 89 + + ( + NULLIF ( 65, 89 + + 87 ) ) + 89 DIV - 97 * + 9 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT + 89 + + ( + NULLIF ( 65, 89 + + 87 ) ) + 89 / - 97 * + 9 AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL - MIN( DISTINCT + ( - 34 ) ) * - 38 AS col0
----
-1292

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - MIN ( DISTINCT + ( - 34 ) ) * - 38 AS col0
----
-1292

query I rowsort
SELECT - + 75 - + 71
----
-146

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2534
SELECT ALL + + CASE - 95 WHEN - 40 THEN - - 54 + + - 50 * + + 36 WHEN 26 - + 3 + - COALESCE ( + 84, 37 * NULLIF ( + COALESCE ( CAST( NULL AS DECIMAL ), - + 95 * ( + 99 ) + ( 30 ) * + 88 + COUNT( * ) ), 75 ) ) - + + 3 * 98 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL + + CASE - 95 WHEN - 40 THEN - - 54 + + - 50 * + + 36 WHEN 26 - + 3 + - COALESCE ( + 84, 37 * NULLIF ( + COALESCE ( CAST ( NULL AS REAL ), - + 95 * ( + 99 ) + ( 30 ) * + 88 + COUNT ( * ) ), 75 ) ) - + + 3 * 98 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT - 42 - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-2535
SELECT - 42 - COUNT ( * )
----
-43

query I rowsort
SELECT + CASE - ( - 53 ) WHEN + 68 THEN + + 38 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 50 * + - 52 AS col0
----
-2600

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT 92 * 59 + - MIN( - + ( - 5 ) ) AS col0
----
5423

skipif mysql # not compatible
query I rowsort label-2538
SELECT 92 * 59 + - MIN ( - + ( - 5 ) ) AS col0
----
5423

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

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

query I rowsort
SELECT - 55 * 3 AS col1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT - 14 * - NULLIF ( + - 91, - - 7 + - - COUNT( * ) ) * 87 - 30 AS col1
----
-110868

skipif mysql # not compatible
query I rowsort label-2541
SELECT - 14 * - NULLIF ( + - 91, - - 7 + - - COUNT ( * ) ) * 87 - 30 AS col1
----
-110868

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2542
SELECT ALL - 29 DIV 3 * + CAST( 79 AS SIGNED )
----
-711

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - 29 / 3 * + CAST ( 79 AS INTEGER )
----
-711

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

query I rowsort
SELECT DISTINCT 43 * + 4
----
172

query I rowsort
SELECT ALL 2 * + 6
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT - 8 * 52 * - 46 + COUNT( * ) * 42 * 47
----
21110

skipif mysql # not compatible
query I rowsort label-2547
SELECT - 8 * 52 * - 46 + COUNT ( * ) * 42 * 47
----
21110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-2548
SELECT + CASE 87 WHEN 17 - - - NULLIF ( + COUNT( * ), 10 + 31 ) THEN + 20 ELSE NULL END - - 76 AS col0, 19 + - + 8, + + 26 - + 69 - - NULLIF ( - - 95, - + 39 ) / CAST( NULL AS DECIMAL ) AS col0
----
NULL
11
NULL

skipif mysql # not compatible
query III rowsort label-2548
SELECT + CASE 87 WHEN 17 - - - NULLIF ( + COUNT ( * ), 10 + 31 ) THEN + 20 ELSE NULL END - - 76 AS col0, 19 + - + 8, + + 26 - + 69 - - NULLIF ( - - 95, - + 39 ) / CAST ( NULL AS REAL ) AS col0
----
NULL
11
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2549
SELECT DISTINCT + 27 AS col2, COUNT( DISTINCT + 16 ) AS col0
----
27
1

skipif mysql # not compatible
query II rowsort label-2549
SELECT DISTINCT + 27 AS col2, COUNT ( DISTINCT + 16 ) AS col0
----
27
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2550
SELECT ALL 53 + - 65 * 12, CAST( NULL AS SIGNED ) AS col2
----
-727
NULL

skipif mysql # not compatible
query II rowsort label-2550
SELECT ALL 53 + - 65 * 12, CAST ( NULL AS INTEGER ) AS col2
----
-727
NULL

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

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT 65 + + COUNT ( * ) - - - 67 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ( - 97 ) + - COALESCE ( - COUNT( * ), + 94 * + + 79, - 16 * - 52 ) * 73 col1
----
-24

skipif mysql # not compatible
query I rowsort label-2552
SELECT ( - 97 ) + - COALESCE ( - COUNT ( * ), + 94 * + + 79, - 16 * - 52 ) * 73 col1
----
-24

query II rowsort
SELECT - 27, 74 col1
----
-27
74

query I rowsort
SELECT + 48 + 67
----
115

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

query I rowsort
SELECT - 97 + 12
----
-85

query I rowsort
SELECT - 71 * + 59
----
-4189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2558
SELECT 20 + - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2558
SELECT 20 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
19

query I rowsort
SELECT ALL 54 * + 60
----
3240

query I rowsort
SELECT + 37 * + + ( - - 1 )
----
37

query I rowsort
SELECT ALL NULLIF ( + 51, - 16 ) AS col0
----
51

query I rowsort
SELECT CASE + 22 WHEN + 22 THEN - + 87 WHEN - + 31 THEN NULL WHEN + 9 THEN - - 60 + 0 END col0
----
-87

query I rowsort
SELECT ALL - NULLIF ( 30, + + 95 + - 65 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT DISTINCT SUM( 92 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT SUM ( 92 ) col2
----
92

query I rowsort
SELECT - 13 + + 67
----
54

query I rowsort
SELECT 37 * 45 * + 58 col1
----
96570

onlyif mysql # DIV for integer division: 
query II rowsort label-2567
SELECT - + 81 AS col0, - 53 DIV - + ( - 51 ) + 37 + 14
----
-81
50

skipif mysql # not compatible
query II rowsort label-2567
SELECT - + 81 AS col0, - 53 / - + ( - 51 ) + 37 + 14
----
-81
50

query II rowsort
SELECT ALL + 25 AS col1, + 75 AS col1
----
25
75

query I rowsort
SELECT 68 + + - 50
----
18

query I rowsort
SELECT - 96 - - 35 AS col0
----
-61

query I rowsort
SELECT 58 - - 50
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT ALL - 34 * + COUNT( - - 75 ) DIV ( + - 82 )
----
0

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL - 34 * + COUNT ( - - 75 ) / ( + - 82 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2573
SELECT 25 DIV + 78 * - 3 * + - 22 AS col1, NULLIF ( - + CASE + 71 WHEN + - 71 THEN 80 ELSE 51 DIV + 97 * - COUNT( * ) END, - 75 ) AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-2573
SELECT 25 / + 78 * - 3 * + - 22 AS col1, NULLIF ( - + CASE + 71 WHEN + - 71 THEN 80 ELSE 51 / + 97 * - COUNT ( * ) END, - 75 ) AS col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT DISTINCT - ( + - 47 ) * MIN( + 72 )
----
3384

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT - ( + - 47 ) * MIN ( + 72 )
----
3384

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2577
SELECT 61 DIV + - 59 + + - 37 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2577
SELECT 61 / + - 59 + + - 37 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT DISTINCT - 16 * - COUNT( * ) * - 66 AS col0
----
-1056

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT - 16 * - COUNT ( * ) * - 66 AS col0
----
-1056

query I rowsort
SELECT 63 * - - 59
----
3717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2580
SELECT ALL - ( - + COUNT( * ) ) + + COALESCE ( 90, - - COUNT( * ) ) DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL - ( - + COUNT ( * ) ) + + COALESCE ( 90, - - COUNT ( * ) ) / - + 53
----
0

query I rowsort
SELECT DISTINCT + 71 + 70
----
141

onlyif mysql # DIV for integer division: 
query II rowsort label-2582
SELECT 53 DIV - 11, - 13 AS col0
----
-4
-13

skipif mysql # not compatible
query II rowsort label-2582
SELECT 53 / - 11, - 13 AS col0
----
-4
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2583
SELECT ALL + 99 + + + COUNT( * ) AS col0, COUNT( * ) AS col1
----
100
1

skipif mysql # not compatible
query II rowsort label-2583
SELECT ALL + 99 + + + COUNT ( * ) AS col0, COUNT ( * ) AS col1
----
100
1

query I rowsort
SELECT DISTINCT 54 + + - 95
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL 89 + SUM( DISTINCT + 88 ) AS col2
----
177

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL 89 + SUM ( DISTINCT + 88 ) AS col2
----
177

query I rowsort
SELECT + 28 * - 79 + + 79 AS col1
----
-2133

query I rowsort
SELECT DISTINCT + + 7 + - - 30 + + - 19
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT 47 * + COUNT( * ) + + + 74 + + 87 * 37 AS col0
----
3340

skipif mysql # not compatible
query I rowsort label-2588
SELECT 47 * + COUNT ( * ) + + + 74 + + 87 * 37 AS col0
----
3340

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2589
SELECT - COALESCE ( - 74, - ( + 53 ) DIV - 51 - - + CAST( NULL AS SIGNED ) + 56 )
----
74

skipif mysql # not compatible
query I rowsort label-2589
SELECT - COALESCE ( - 74, - ( + 53 ) / - 51 - - + CAST ( NULL AS INTEGER ) + 56 )
----
74

query I rowsort
SELECT 73 - - + 77 AS col1
----
150

query I rowsort
SELECT 6 * ( - + 27 ) + + + 72 + NULLIF ( + NULLIF ( - - 76, + + 74 + + 33 - + - 33 ), 26 + 99 ) AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2592
SELECT - CASE COALESCE ( - 61, - ( + 68 ) ) WHEN - + 17 * - MAX( ALL - + 88 ) THEN COALESCE ( + 31, - COUNT( - + 13 ) ) / - 50 - 94 / - 70 + ( + + CAST( 30 AS SIGNED ) ) + 77 - - 75 ELSE NULL END * 51 / - 95 + - COUNT( * ) - + 75 + NULLIF ( + 24, + ( - 17 ) * - 93 ) * + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT - CASE COALESCE ( - 61, - ( + 68 ) ) WHEN - + 17 * - MAX ( ALL - + 88 ) THEN COALESCE ( + 31, - COUNT ( - + 13 ) ) / - 50 - 94 / - 70 + ( + + CAST ( 30 AS INTEGER ) ) + 77 - - 75 ELSE NULL END * 51 / - 95 + - COUNT ( * ) - + 75 + NULLIF ( + 24, + ( - 17 ) * - 93 ) * + 21
----
NULL

query I rowsort
SELECT + NULLIF ( 46, - + 5 + + - 34 )
----
46

query I rowsort
SELECT 52 + + 25
----
77

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

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

query I rowsort
SELECT + 94 + - 72 * 5
----
-266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2597
SELECT COUNT( * ) DIV - COALESCE ( - - COALESCE ( - COUNT( * ), + 1 ), + 92 + - 7 DIV + 27, - - COUNT( * ), + - MIN( + + 20 ) + + - 51 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2597
SELECT COUNT ( * ) / - COALESCE ( - - COALESCE ( - COUNT ( * ), + 1 ), + 92 + - 7 / + 27, - - COUNT ( * ), + - MIN ( + + 20 ) + + - 51 ) AS col0
----
1

query I rowsort
SELECT + 38 * + 95 AS col1
----
3610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2599
SELECT ALL - 4 * + 16 + + 56 * - 81 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - 4 * + 16 + + 56 * - 81 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 28 * - 63 * 88 * - 57 AS col1
----
8848224

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT ALL + 9 * - COUNT( * ) * - - 11 + 90 + - SUM( ALL + + 34 ) * - - MIN( ALL + 50 ) col2
----
-1709

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL + 9 * - COUNT ( * ) * - - 11 + 90 + - SUM ( ALL + + 34 ) * - - MIN ( ALL + 50 ) col2
----
-1709

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT 24 - - 34 + + 55 DIV - - 72 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2603
SELECT 24 - - 34 + + 55 / - - 72 AS col1
----
58

query I rowsort
SELECT COALESCE ( - 83, - 21 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2605
SELECT - 56 * - CASE COUNT( * ) WHEN + 78 THEN - - 95 + - + 11 * + - NULLIF ( + - CAST( NULL AS SIGNED ), + - 61 + - 9 ) END + 27 + + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT - 56 * - CASE COUNT ( * ) WHEN + 78 THEN - - 95 + - + 11 * + - NULLIF ( + - CAST ( NULL AS INTEGER ), + - 61 + - 9 ) END + 27 + + 88 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2606
SELECT ALL - COALESCE ( + - COALESCE ( + - 41, - 6 * + CASE + 62 WHEN 58 THEN + 34 * - + CASE 16 WHEN + - 82 * CAST( - COUNT( * ) AS SIGNED ) - + 4 THEN - COALESCE ( - - COUNT( * ), - 56, + 43 ) END WHEN + 65 THEN + 28 END, 42 ), - 41 - + 6 + + 29, SUM( ALL + 25 ) + - 98 DIV 26 * + 55 * - - 99 ) AS col1, COUNT( * ) AS col0
----
-41
1

skipif mysql # not compatible
query II rowsort label-2606
SELECT ALL - COALESCE ( + - COALESCE ( + - 41, - 6 * + CASE + 62 WHEN 58 THEN + 34 * - + CASE 16 WHEN + - 82 * CAST ( - COUNT ( * ) AS INTEGER ) - + 4 THEN - COALESCE ( - - COUNT ( * ), - 56, + 43 ) END WHEN + 65 THEN + 28 END, 42 ), - 41 - + 6 + + 29, SUM ( ALL + 25 ) + - 98 / 26 * + 55 * - - 99 ) AS col1, COUNT ( * ) AS col0
----
-41
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2607
SELECT 67 * - - COUNT( * ) + + 45 DIV 25 * - + CAST( - 46 AS SIGNED ) + + 50 col2
----
163

skipif mysql # not compatible
query I rowsort label-2607
SELECT 67 * - - COUNT ( * ) + + 45 / 25 * - + CAST ( - 46 AS INTEGER ) + + 50 col2
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT + COALESCE ( + 72, + - 29 * + 53 * - - COUNT( * ) ) col0
----
72

skipif mysql # not compatible
query I rowsort label-2608
SELECT + COALESCE ( + 72, + - 29 * + 53 * - - COUNT ( * ) ) col0
----
72

query I rowsort
SELECT DISTINCT + 99 * - 27 * 97 + + ( - - ( + 72 ) )
----
-259209

query I rowsort
SELECT ALL 99 * 50 * - + 18 + 19 + - 80 + - - 69 - - 97 AS col1
----
-88995

query I rowsort
SELECT ALL 24 * - + NULLIF ( - 71, - + 1 )
----
1704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2612
SELECT + 24 * + CAST( NULL AS SIGNED ) + - NULLIF ( + 33, + - MAX( + ( + 87 ) ) ) + - AVG ( 8 ) * - - 29 + 97 AS col0, COUNT( * ) DIV - + 10
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2612
SELECT + 24 * + CAST ( NULL AS INTEGER ) + - NULLIF ( + 33, + - MAX ( + ( + 87 ) ) ) + - AVG ( 8 ) * - - 29 + 97 AS col0, COUNT ( * ) / - + 10
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT + MAX( + - 86 ) + 20 col1
----
-66

skipif mysql # not compatible
query I rowsort label-2613
SELECT + MAX ( + - 86 ) + 20 col1
----
-66

query I rowsort
SELECT - ( + 85 ) * - 34 AS col2
----
2890

query I rowsort
SELECT - - 6 + - 92
----
-86

query II rowsort
SELECT ALL + + 9 col1, 53 * - 79 AS col0
----
9
-4187

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT + + 66 * - + 89 + - + COUNT( * ) AS col2
----
-5875

skipif mysql # not compatible
query I rowsort label-2617
SELECT + + 66 * - + 89 + - + COUNT ( * ) AS col2
----
-5875

query I rowsort
SELECT - - 15 * + 56 AS col2
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT ALL + SUM( ALL + + 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL + SUM ( ALL + + 77 ) AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT ALL + 71 * CAST( NULL AS SIGNED ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL + 71 * CAST ( NULL AS INTEGER ) * + 20
----
NULL

query I rowsort
SELECT - 19 + + 88 + + 61 AS col0
----
130

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

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

query I rowsort
SELECT ALL 72 * - + 56 AS col2
----
-4032

query I rowsort
SELECT ALL - 68 * 61
----
-4148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT + CAST( NULL AS SIGNED ) * + 3 + - - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT + CAST ( NULL AS INTEGER ) * + 3 + - - 88 AS col2
----
NULL

query I rowsort
SELECT ALL + 19 * 26 AS col2
----
494

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT - - 13 + 90 - - COUNT( * ) + + 71
----
175

skipif mysql # not compatible
query I rowsort label-2627
SELECT - - 13 + 90 - - COUNT ( * ) + + 71
----
175

query II rowsort
SELECT - + 95 AS col0, - ( 63 ) AS col2
----
-95
-63

query I rowsort
SELECT + - 49 + 60 * - + 88 * + - 98 AS col2
----
517391

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2630
SELECT DISTINCT + + CAST( - 13 AS SIGNED ) * 26 AS col2, 18 - + 0 + + NULLIF ( - 45, - COALESCE ( + 76, - 81 + - + 92 ) ) AS col1
----
-338
-27

skipif mysql # not compatible
query II rowsort label-2630
SELECT DISTINCT + + CAST ( - 13 AS INTEGER ) * 26 AS col2, 18 - + 0 + + NULLIF ( - 45, - COALESCE ( + 76, - 81 + - + 92 ) ) AS col1
----
-338
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + COUNT( * ) + + + 70 col0
----
71

skipif mysql # not compatible
query I rowsort label-2631
SELECT + COUNT ( * ) + + + 70 col0
----
71

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT - 79 DIV - 45 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2633
SELECT - 79 / - 45 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT + MAX( DISTINCT - 83 ) + + 75 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2634
SELECT + MAX ( DISTINCT - 83 ) + + 75 AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2635
SELECT - 97 + 94 * 81 DIV - ( - 94 ) + - SUM( DISTINCT + ( - ( 83 ) ) )
----
67

skipif mysql # not compatible
query I rowsort label-2635
SELECT - 97 + 94 * 81 / - ( - 94 ) + - SUM ( DISTINCT + ( - ( 83 ) ) )
----
67

query II rowsort
SELECT + 73 + + CASE 44 WHEN 58 THEN ( + - 76 ) + - - 55 WHEN - 59 THEN + - 73 WHEN 22 THEN - 51 END / + 65 col0, 21
----
NULL
21

query I rowsort
SELECT + 79 - - + 66 * - 47 + - 8
----
-3031

query II rowsort
SELECT - ( + - 21 ), 5 AS col0
----
21
5

query I rowsort
SELECT ALL 43 * + + ( 63 )
----
2709

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT + COUNT( * ) + - + 43 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2640
SELECT + COUNT ( * ) + - + 43 AS col0
----
-42

query I rowsort
SELECT + ( 4 ) + + + 15 * - + 89 AS col2
----
-1331

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2642
SELECT ALL COUNT( * ) DIV SUM( + + 91 ) + 86 * NULLIF ( - + 33, 54 ) + - 50 + - 82, - 79 col0
----
-2970
-79

skipif mysql # not compatible
query II rowsort label-2642
SELECT ALL COUNT ( * ) / SUM ( + + 91 ) + 86 * NULLIF ( - + 33, 54 ) + - 50 + - 82, - 79 col0
----
-2970
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT CAST( - 78 AS SIGNED ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2643
SELECT CAST ( - 78 AS INTEGER ) AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2644
SELECT + 39 DIV - 50 * + - 41 + - + 43 AS col2, + COUNT( * ) - - 91 * + 71 * - - COUNT( + 41 ) * 49 + + COUNT( * ) AS col1
----
-43
316591

skipif mysql # not compatible
query II rowsort label-2644
SELECT + 39 / - 50 * + - 41 + - + 43 AS col2, + COUNT ( * ) - - 91 * + 71 * - - COUNT ( + 41 ) * 49 + + COUNT ( * ) AS col1
----
-43
316591

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT DISTINCT 89 DIV - - 19 + + 20 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT 89 / - - 19 + + 20 AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2646
SELECT ALL + COUNT( * ), 84 AS col0
----
1
84

skipif mysql # not compatible
query II rowsort label-2646
SELECT ALL + COUNT ( * ), 84 AS col0
----
1
84

query I rowsort
SELECT + COALESCE ( 63, + + 21 ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2648
SELECT ALL 64 / - 36 - + - CAST( NULL AS SIGNED ) / + 63 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL 64 / - 36 - + - CAST ( NULL AS INTEGER ) / + 63 * 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ( - + NULLIF ( - + COUNT( * ), + 27 + 43 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2649
SELECT ( - + NULLIF ( - + COUNT ( * ), + 27 + 43 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2650
SELECT ALL + COUNT( * ) AS col0, 32 * + ( + + COUNT( * ) ) * + 81 + + 47
----
1
2639

skipif mysql # not compatible
query II rowsort label-2650
SELECT ALL + COUNT ( * ) AS col0, 32 * + ( + + COUNT ( * ) ) * + 81 + + 47
----
1
2639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2651
SELECT SUM( DISTINCT 92 ) * 62 + 84 * CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT SUM ( DISTINCT 92 ) * 62 + 84 * CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2652
SELECT + 68 AS col1, 56 + - ( CASE + + COUNT( + NULLIF ( + - 86, + 33 ) ) WHEN - - 80 THEN NULL WHEN - COUNT( * ) THEN COUNT( * ) WHEN - 57 THEN NULL ELSE + 81 - + NULLIF ( - ( - COALESCE ( 70, COALESCE ( 65, + COUNT( * ), - 91 ), 27 ) ), 86 ) END )
----
68
45

skipif mysql # not compatible
query II rowsort label-2652
SELECT + 68 AS col1, 56 + - ( CASE + + COUNT ( + NULLIF ( + - 86, + 33 ) ) WHEN - - 80 THEN NULL WHEN - COUNT ( * ) THEN COUNT ( * ) WHEN - 57 THEN NULL ELSE + 81 - + NULLIF ( - ( - COALESCE ( 70, COALESCE ( 65, + COUNT ( * ), - 91 ), 27 ) ), 86 ) END )
----
68
45

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

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT + + NULLIF ( - 81, + COUNT ( * ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL - ( - 15 ) * + COUNT( * ) * + + 30 * - 35 - - COUNT( * )
----
-15749

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - ( - 15 ) * + COUNT ( * ) * + + 30 * - 35 - - COUNT ( * )
----
-15749

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT DISTINCT + - 27 * + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT + - 27 * + COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT 78 * + 95 + NULLIF ( - 64, 16 ) AS col1
----
7346

query II rowsort
SELECT DISTINCT + + 82 AS col1, 19
----
82
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT - + 89 * + + SUM( - + 35 ) * - 94 - + 86
----
-292896

skipif mysql # not compatible
query I rowsort label-2661
SELECT - + 89 * + + SUM ( - + 35 ) * - 94 - + 86
----
-292896

query I rowsort
SELECT + - COALESCE ( 0, + 42 * 94, 66 ) AS col0
----
0

query I rowsort
SELECT - 93 * - 75 AS col0
----
6975

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

skipif mysql # not compatible
query II rowsort label-2664
SELECT - CAST ( NULL AS REAL ) AS col1, CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT - - 76 * - - 15 - 67 AS col2
----
1073

query I rowsort
SELECT DISTINCT - 65 * - 1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2667
SELECT ALL + COUNT( * ) + + + CAST( + ( + ( - - ( + 23 ) ) ) AS SIGNED ) DIV CAST( + ( - 36 ) AS SIGNED ) * + COUNT( * ) * - SUM( - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL + COUNT ( * ) + + + CAST ( + ( + ( - - ( + 23 ) ) ) AS INTEGER ) / CAST ( + ( - 36 ) AS INTEGER ) * + COUNT ( * ) * - SUM ( - 75 )
----
1

query I rowsort
SELECT ALL + - 81 + - - 80 * 94
----
7439

onlyif mysql # DIV for integer division: 
query II rowsort label-2669
SELECT - 85 DIV 98 AS col1, - 41 AS col2
----
0
-41

skipif mysql # not compatible
query II rowsort label-2669
SELECT - 85 / 98 AS col1, - 41 AS col2
----
0
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2670
SELECT ALL + COALESCE ( + 36, + 38 * 56 - + + 20 + - 64 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - - 4, - 46 DIV - + COALESCE ( + ( + - 15 ), MAX( ALL - 1 ), - + COALESCE ( + 2, - CASE - 41 WHEN - 49 * ( + 25 ) THEN - - ( + 82 ) + - 87 ELSE + 99 + 93 + - 59 END, - 90 * ( - AVG ( - + 86 ) ) * - + COUNT( * ) ) + 75 DIV + COUNT( * ) ) + - 93 * - + 65 ) + 58 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL + COALESCE ( + 36, + 38 * 56 - + + 20 + - 64 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 4, - 46 / - + COALESCE ( + ( + - 15 ), MAX ( ALL - 1 ), - + COALESCE ( + 2, - CASE - 41 WHEN - 49 * ( + 25 ) THEN - - ( + 82 ) + - 87 ELSE + 99 + 93 + - 59 END, - 90 * ( - AVG ( - + 86 ) ) * - + COUNT ( * ) ) + 75 / + COUNT ( * ) ) + - 93 * - + 65 ) + 58 AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT - ( + 78 ) AS col1, 81 * - - COUNT( * )
----
-78
81

skipif mysql # not compatible
query II rowsort label-2671
SELECT - ( + 78 ) AS col1, 81 * - - COUNT ( * )
----
-78
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL 37 + + 23 + + + 60 * + 25 * + + COUNT( * )
----
1560

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL 37 + + 23 + + + 60 * + 25 * + + COUNT ( * )
----
1560

query II rowsort
SELECT ALL + 67 - 86 col2, 48
----
-19
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT 62 * COALESCE ( - COUNT( + 29 ), + 89 + + 94 - + 92 )
----
-62

skipif mysql # not compatible
query I rowsort label-2674
SELECT 62 * COALESCE ( - COUNT ( + 29 ), + 89 + + 94 - + 92 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT COUNT( * ) * 89 + - ( + + ( + 65 ) ) + - + 43 - - 79 col2
----
60

skipif mysql # not compatible
query I rowsort label-2675
SELECT COUNT ( * ) * 89 + - ( + + ( + 65 ) ) + - + 43 - - 79 col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2676
SELECT DISTINCT - 50 DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT - 50 / - + 96
----
0

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

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

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

query I rowsort
SELECT ALL + 93 * + 48
----
4464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2680
SELECT 32 - + ( + NULLIF ( - 69, 14 + - CAST( NULL AS SIGNED ) + + 54 - + 9 ) ) col1
----
101

skipif mysql # not compatible
query I rowsort label-2680
SELECT 32 - + ( + NULLIF ( - 69, 14 + - CAST ( NULL AS INTEGER ) + + 54 - + 9 ) ) col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT + 54 * - MIN( + 32 ) + - 67 * + 7 AS col0
----
-2197

skipif mysql # not compatible
query I rowsort label-2681
SELECT + 54 * - MIN ( + 32 ) + - 67 * + 7 AS col0
----
-2197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2682
SELECT 9 DIV 4 * - + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2682
SELECT 9 / 4 * - + COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT - 67 * - 65 + + 8 AS col2
----
4363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2684
SELECT 12 + - 7 + - 28 DIV + - 16 * + COUNT( * ) * COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2684
SELECT 12 + - 7 + - 28 / + - 16 * + COUNT ( * ) * COUNT ( * ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2685
SELECT 58 + - + 18 * - 17 + + 47 + - 64 + - 73 * COALESCE ( 39, - COUNT( * ) * + 98 - - + 36 * + 15 ) AS col2, 64 * - 91 * 83 AS col1
----
-2500
-483392

skipif mysql # not compatible
query II rowsort label-2685
SELECT 58 + - + 18 * - 17 + + 47 + - 64 + - 73 * COALESCE ( 39, - COUNT ( * ) * + 98 - - + 36 * + 15 ) AS col2, 64 * - 91 * 83 AS col1
----
-2500
-483392

query II rowsort
SELECT DISTINCT 12 + + - 34 AS col1, + 72
----
-22
72

query I rowsort
SELECT 48 - + - 86
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT - + CASE + - 69 WHEN + 63 * 20 + COUNT( * ) + + + 51 + 89 * - 57 THEN NULL ELSE 22 - + - 76 END col0
----
-98

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT - + CASE + - 69 WHEN + 63 * 20 + COUNT ( * ) + + + 51 + 89 * - 57 THEN NULL ELSE 22 - + - 76 END col0
----
-98

query I rowsort
SELECT ALL - 27 + + - 8 col2
----
-35

query I rowsort
SELECT NULLIF ( 3, 96 ) + - + 91 + - - 92
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2691
SELECT ALL - 36 * - + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

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

query I rowsort
SELECT 58 * - 44
----
-2552

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

query I rowsort
SELECT 34 + - 40 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT DISTINCT + 98 + - 28 + - - 47 * + 78 * - 21 * + - MIN( DISTINCT - 20 ) + 15
----
-1539635

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT + 98 + - 28 + - - 47 * + 78 * - 21 * + - MIN ( DISTINCT - 20 ) + 15
----
-1539635

query II rowsort
SELECT ALL 28 AS col1, - 1 * 15 + 50
----
28
35

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

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

query II rowsort
SELECT - 81 AS col1, - 57 col2
----
-81
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2699
SELECT DISTINCT - 53 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT - 53 / 88
----
0

query I rowsort
SELECT 72 * + - 23 col1
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT SUM( - + 80 ) + - 80 + 34 * - COUNT( * ) * + 36 + MIN( ALL + 23 )
----
-1361

skipif mysql # not compatible
query I rowsort label-2701
SELECT SUM ( - + 80 ) + - 80 + 34 * - COUNT ( * ) * + 36 + MIN ( ALL + 23 )
----
-1361

query I rowsort
SELECT 59 + + 74 + + - 45 - + - 82
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2703
SELECT COUNT( + 11 ) * - 20 DIV - 61 AS col0, + 71 - + 43 AS col0
----
0
28

skipif mysql # not compatible
query II rowsort label-2703
SELECT COUNT ( + 11 ) * - 20 / - 61 AS col0, + 71 - + 43 AS col0
----
0
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT + MIN( DISTINCT + 11 ) * - + 11 + + 83 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT + MIN ( DISTINCT + 11 ) * - + 11 + + 83 AS col2
----
-38

query I rowsort
SELECT 4 + + 32 AS col0
----
36

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

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

query I rowsort
SELECT 84 * - 20 AS col0
----
-1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT - 64 * + 67 DIV + - COALESCE ( - COUNT( * ), + 92 )
----
-4288

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT - 64 * + 67 / + - COALESCE ( - COUNT ( * ), + 92 )
----
-4288

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT + 86 * 63 + - + NULLIF ( COUNT( * ), 20 * CASE 4 WHEN + - 55 * - 55 - + - 94 THEN NULL WHEN - 89 / - - COUNT( * ) + ( - - 43 ) - + 94 + - ( - 56 ) + + - 43 * + 10 THEN - - 91 ELSE NULL END ) AS col0
----
5417

skipif mysql # not compatible
query I rowsort label-2709
SELECT + 86 * 63 + - + NULLIF ( COUNT ( * ), 20 * CASE 4 WHEN + - 55 * - 55 - + - 94 THEN NULL WHEN - 89 / - - COUNT ( * ) + ( - - 43 ) - + 94 + - ( - 56 ) + + - 43 * + 10 THEN - - 91 ELSE NULL END ) AS col0
----
5417

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

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL - COUNT ( * ) * + 88 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT DISTINCT - COALESCE ( - 89, - - 19, + ( + 36 ) * - - COUNT( * ) * - 2 + + 63 )
----
89

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT - COALESCE ( - 89, - - 19, + ( + 36 ) * - - COUNT ( * ) * - 2 + + 63 )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2712
SELECT COUNT( * ) + ( NULLIF ( - - COUNT( ALL 5 ), 5 ) ) DIV 40 DIV - - 66 AS col2, 22
----
1
22

skipif mysql # not compatible
query II rowsort label-2712
SELECT COUNT ( * ) + ( NULLIF ( - - COUNT ( ALL 5 ), 5 ) ) / 40 / - - 66 AS col2, 22
----
1
22

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( + 76, + 66 * 76 + 92 ) col1
----
-76

query I rowsort
SELECT 93 * - 66 AS col2
----
-6138

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL MAX( - 67 ) + - 39 * - + SUM( ALL - 9 ) + + - ( + 84 ) AS col1
----
-502

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL MAX ( - 67 ) + - 39 * - + SUM ( ALL - 9 ) + + - ( + 84 ) AS col1
----
-502

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT - - 23 * + MIN( - 48 ) * + - 48 + - - 3
----
52995

skipif mysql # not compatible
query I rowsort label-2717
SELECT - - 23 * + MIN ( - 48 ) * + - 48 + - - 3
----
52995

query I rowsort
SELECT + - ( - 90 ) col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT 73 * - COALESCE ( - 23, 64 DIV + 10 ) AS col1
----
1679

skipif mysql # not compatible
query I rowsort label-2719
SELECT 73 * - COALESCE ( - 23, 64 / + 10 ) AS col1
----
1679

query I rowsort
SELECT ALL - 20 + - + 41 + - - 37 + + - 41
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ALL + + COUNT( * ) + + 26
----
27

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + + COUNT ( * ) + + 26
----
27

query II rowsort
SELECT DISTINCT - - 23 AS col0, + 95 col2
----
23
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT COUNT( - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-2723
SELECT COUNT ( - 17 )
----
1

query I rowsort
SELECT ( 3 ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2725
SELECT 75 * - + MAX( + 54 ) * CAST( 48 AS SIGNED ) * 24 col0, + CAST( NULL AS SIGNED ) AS col0
----
-4665600
NULL

skipif mysql # not compatible
query II rowsort label-2725
SELECT 75 * - + MAX ( + 54 ) * CAST ( 48 AS INTEGER ) * 24 col0, + CAST ( NULL AS INTEGER ) AS col0
----
-4665600
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT 41 * + - COUNT( * ) + 51 - + - ( + + 36 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-2726
SELECT 41 * + - COUNT ( * ) + 51 - + - ( + + 36 ) AS col1
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-2727
SELECT + 22 AS col1, - 6 DIV 97 AS col0
----
22
0

skipif mysql # not compatible
query II rowsort label-2727
SELECT + 22 AS col1, - 6 / 97 AS col0
----
22
0

query I rowsort
SELECT - 56 + + 33 AS col1
----
-23

query I rowsort
SELECT DISTINCT 62 - 57 * + 56 + - 33 + 50 * ( 26 ) AS col0
----
-1863

query II rowsort
SELECT + 2 * + 98 AS col1, 41
----
196
41

query I rowsort
SELECT ALL - 40 * 38 * 12 AS col0
----
-18240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2732
SELECT DISTINCT 26 - - 47 + - 64 * - 27 * - 71 * - 36 * + + 12 + + 1 + + 74 AS col0, COUNT( * ) + + + 31 - ( - NULLIF ( - CAST( - COUNT( * ) AS SIGNED ), + 8 * + 35 * - - 33 ) ) / - - COUNT( * ) + + 31 + - COUNT( * ) + + 94 * - ( - CASE 81 WHEN + + 11 THEN + CASE 43 WHEN + COUNT( * ) / + 57 THEN + ( MAX( ALL - CAST( NULL AS SIGNED ) ) ) + + + SUM( 22 ) ELSE NULL END WHEN 50 THEN MAX( ALL + 13 ) * - 44 + - CAST( - 88 AS SIGNED ) END ) * - 89
----
53001364
NULL

skipif mysql # not compatible
query II rowsort label-2732
SELECT DISTINCT 26 - - 47 + - 64 * - 27 * - 71 * - 36 * + + 12 + + 1 + + 74 AS col0, COUNT ( * ) + + + 31 - ( - NULLIF ( - CAST ( - COUNT ( * ) AS INTEGER ), + 8 * + 35 * - - 33 ) ) / - - COUNT ( * ) + + 31 + - COUNT ( * ) + + 94 * - ( - CASE 81 WHEN + + 11 THEN + CASE 43 WHEN + COUNT ( * ) / + 57 THEN + ( MAX ( ALL - CAST ( NULL AS INTEGER ) ) ) + + + SUM ( 22 ) ELSE NULL END WHEN 50 THEN MAX ( ALL + 13 ) * - 44 + - CAST ( - 88 AS INTEGER ) END ) * - 89
----
53001364
NULL

query I rowsort
SELECT ALL 61 * ( + - 85 ) AS col0
----
-5185

query I rowsort
SELECT + 66 * 6
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT - CASE + 26 WHEN + 57 THEN NULL WHEN - COUNT( * ) - 62 + - ( + 98 ) * ( + 57 ) THEN - 68 ELSE 21 END
----
-21

skipif mysql # not compatible
query I rowsort label-2735
SELECT - CASE + 26 WHEN + 57 THEN NULL WHEN - COUNT ( * ) - 62 + - ( + 98 ) * ( + 57 ) THEN - 68 ELSE 21 END
----
-21

query I rowsort
SELECT - 25 * - - 64 * + + 91
----
-145600

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT + COUNT( * ) * + - MIN( ALL + 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-2737
SELECT + COUNT ( * ) * + - MIN ( ALL + 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT ALL MIN( 60 )
----
60

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL MIN ( 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT - 30 - - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-2739
SELECT - 30 - - COUNT ( * )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT ALL 12 DIV + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL 12 / + 28 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2741
SELECT DISTINCT + COUNT( * ) DIV + COALESCE ( 90, - - COUNT( DISTINCT - 75 ), MAX( - 37 ) ) + 54 + + 43 DIV 74, 78 AS col1
----
54
78

skipif mysql # not compatible
query II rowsort label-2741
SELECT DISTINCT + COUNT ( * ) / + COALESCE ( 90, - - COUNT ( DISTINCT - 75 ), MAX ( - 37 ) ) + 54 + + 43 / 74, 78 AS col1
----
54
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2742
SELECT + 14 DIV + 75, NULLIF ( 34, - MIN( + 69 ) ) AS col2
----
0
34

skipif mysql # not compatible
query II rowsort label-2742
SELECT + 14 / + 75, NULLIF ( 34, - MIN ( + 69 ) ) AS col2
----
0
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2743
SELECT - 83 DIV - COUNT( * ) + - 80 - - + 53 + + 3 + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-2743
SELECT - 83 / - COUNT ( * ) + - 80 - - + 53 + + 3 + - COUNT ( * )
----
58

query I rowsort
SELECT + + 21 + - 47 col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT + - CASE + ( - - 51 ) WHEN - 64 + - COUNT( * ) - - COUNT( * ) THEN - 19 * - 72 / - 0 * + 58 * + - 78 * - 62 - - COUNT( * ) * - COUNT( - 1 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT + - CASE + ( - - 51 ) WHEN - 64 + - COUNT ( * ) - - COUNT ( * ) THEN - 19 * - 72 / - 0 * + 58 * + - 78 * - 62 - - COUNT ( * ) * - COUNT ( - 1 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT ALL - + CAST( NULL AS SIGNED ) * + 28 * + + 46 + - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 28 * + + 46 + - 80 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2747
SELECT ALL - + 6 * 73 + - 58 DIV + 57 col2, 56 * - 58
----
-439
-3248

skipif mysql # not compatible
query II rowsort label-2747
SELECT ALL - + 6 * 73 + - 58 / + 57 col2, 56 * - 58
----
-439
-3248

query I rowsort
SELECT DISTINCT + 19 * + + 65 + - - 68 + 55
----
1358

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2749
SELECT ALL 3 * - - 36 * + + 54 DIV + COALESCE ( COUNT( * ), - 68 ) + COALESCE ( - 18, - - 75, - + 20 - - 62 - + - 47 * 88 * + 22 ) + 78 AS col2
----
5892

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL 3 * - - 36 * + + 54 / + COALESCE ( COUNT ( * ), - 68 ) + COALESCE ( - 18, - - 75, - + 20 - - 62 - + - 47 * 88 * + 22 ) + 78 AS col2
----
5892

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT - ( 43 ) + - CASE + + COALESCE ( - COUNT( * ), + ( + 70 ), - 14 ) WHEN 31 THEN - MAX( + 73 ) WHEN COALESCE ( - COUNT( * ), 24 * 82 - COUNT( 68 ) ) THEN 59 WHEN + - 11 THEN ( 44 ) END AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-2750
SELECT - ( 43 ) + - CASE + + COALESCE ( - COUNT ( * ), + ( + 70 ), - 14 ) WHEN 31 THEN - MAX ( + 73 ) WHEN COALESCE ( - COUNT ( * ), 24 * 82 - COUNT ( 68 ) ) THEN 59 WHEN + - 11 THEN ( 44 ) END AS col1
----
-102

query I rowsort
SELECT - - 45 + + 70
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2752
SELECT CASE - COUNT( - CAST( 59 AS SIGNED ) ) WHEN - + COALESCE ( + 26, - 43 - + 45 + - - 51 + 78, + CAST( + ( + 25 ) AS DECIMAL ) * - 63 + - + 89 * - 69, + - 14 + + 45 ) * 3 THEN - 21 + 17 * + COUNT( + 82 ) WHEN - + 81 * - 56 + + + 12 + + 35 + 32 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT CASE - COUNT ( - CAST ( 59 AS INTEGER ) ) WHEN - + COALESCE ( + 26, - 43 - + 45 + - - 51 + 78, + CAST ( + ( + 25 ) AS REAL ) * - 63 + - + 89 * - 69, + - 14 + + 45 ) * 3 THEN - 21 + 17 * + COUNT ( + 82 ) WHEN - + 81 * - 56 + + + 12 + + 35 + 32 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT - + 97 * + - 34 + + 1 + + 54 + + + ( - 94 ) * + COUNT( - 79 ) * + 65 * + - 64 * - 66 - + + ( - - NULLIF ( - COUNT( * ), COUNT( * ) ) ) + + 48 * - 78 + + - 87
----
-25809117

skipif mysql # not compatible
query I rowsort label-2753
SELECT - + 97 * + - 34 + + 1 + + 54 + + + ( - 94 ) * + COUNT ( - 79 ) * + 65 * + - 64 * - 66 - + + ( - - NULLIF ( - COUNT ( * ), COUNT ( * ) ) ) + + 48 * - 78 + + - 87
----
-25809117

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

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

query I rowsort
SELECT DISTINCT + 26 * 90 + + 95 AS col0
----
2435

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2756
SELECT ALL + CAST( 82 AS SIGNED ) * 1 AS col2, - 47 AS col0
----
82
-47

skipif mysql # not compatible
query II rowsort label-2756
SELECT ALL + CAST ( 82 AS INTEGER ) * 1 AS col2, - 47 AS col0
----
82
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT + CASE + 73 WHEN 93 + + 65 * + + ( + COUNT( + 34 ) ) THEN + 1 / 22 + - 61 * 58 + + MIN( DISTINCT 45 ) WHEN + - 74 * + + 48 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2757
SELECT + CASE + 73 WHEN 93 + + 65 * + + ( + COUNT ( + 34 ) ) THEN + 1 / 22 + - 61 * 58 + + MIN ( DISTINCT 45 ) WHEN + - 74 * + + 48 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 81 * 48 col2
----
-3888

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2760
SELECT + ( - COALESCE ( + 28, - 12 * - + ( - 61 ) + + - MAX( DISTINCT 72 ) - - 47 + - + CAST( NULL AS SIGNED ), COUNT( * ) ) ) + NULLIF ( 18, + - 23 * 69 ) + + CASE - 69 WHEN - ( + - 2 ) THEN + 98 END * - CASE COALESCE ( - COUNT( + 33 ), - COUNT( * ) - ( + 36 ) - 70 + 73 * - + 1, + 77 ) WHEN + 85 * - - 38 + + + 45 * + + CAST( NULL AS SIGNED ) THEN + + 70 / + NULLIF ( SUM( 19 ), 35 * 67 + 31 ) / + COUNT( * ) END * 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT + ( - COALESCE ( + 28, - 12 * - + ( - 61 ) + + - MAX ( DISTINCT 72 ) - - 47 + - + CAST ( NULL AS INTEGER ), COUNT ( * ) ) ) + NULLIF ( 18, + - 23 * 69 ) + + CASE - 69 WHEN - ( + - 2 ) THEN + 98 END * - CASE COALESCE ( - COUNT ( + 33 ), - COUNT ( * ) - ( + 36 ) - 70 + 73 * - + 1, + 77 ) WHEN + 85 * - - 38 + + + 45 * + + CAST ( NULL AS INTEGER ) THEN + + 70 / + NULLIF ( SUM ( 19 ), 35 * 67 + 31 ) / + COUNT ( * ) END * 70 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2761
SELECT + CAST( COUNT( * ) AS SIGNED ) * - 48 AS col1, 33
----
-48
33

skipif mysql # not compatible
query II rowsort label-2761
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * - 48 AS col1, 33
----
-48
33

query I rowsort
SELECT - 43 * - 23 col1
----
989

query I rowsort
SELECT + 60 + 76 + 60
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2764
SELECT + CAST( NULL AS SIGNED ) + SUM( - + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT + CAST ( NULL AS INTEGER ) + SUM ( - + 95 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL CAST ( + + 93 AS INTEGER ) AS col2
----
93

query II rowsort
SELECT DISTINCT 98, - 57 AS col0
----
98
-57

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

query I rowsort
SELECT ALL 71 * 91
----
6461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2769
SELECT + 83 + 56 + + 43 AS col2, - 55 * + COUNT( * ) * - SUM( ALL - 74 ) * - CAST( - 11 AS SIGNED ) - - 63
----
182
-44707

skipif mysql # not compatible
query II rowsort label-2769
SELECT + 83 + 56 + + 43 AS col2, - 55 * + COUNT ( * ) * - SUM ( ALL - 74 ) * - CAST ( - 11 AS INTEGER ) - - 63
----
182
-44707

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2770
SELECT 59 col2, CASE - 75 WHEN 56 THEN + 53 WHEN - - ( + CAST( + - 44 AS SIGNED ) ) * + + CAST( NULL AS SIGNED ) THEN ( - 20 ) * - - 19 * + 75 * + 43 END * - + 98 AS col2
----
59
NULL

skipif mysql # not compatible
query II rowsort label-2770
SELECT 59 col2, CASE - 75 WHEN 56 THEN + 53 WHEN - - ( + CAST ( + - 44 AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) THEN ( - 20 ) * - - 19 * + 75 * + 43 END * - + 98 AS col2
----
59
NULL

query I rowsort
SELECT ALL 65 + 92 * 74
----
6873

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT - ( - CASE 34 WHEN 73 THEN + 11 * + COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT - ( - CASE 34 WHEN 73 THEN + 11 * + COUNT ( * ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT CASE - 18 WHEN - 36 THEN NULL WHEN + + 88 - - + 6 THEN 44 WHEN + COUNT( * ) * - 28 + 58 * - 82 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT CASE - 18 WHEN - 36 THEN NULL WHEN + + 88 - - + 6 THEN 44 WHEN + COUNT ( * ) * - 28 + 58 * - 82 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2774
SELECT - 43 col1, COUNT( DISTINCT 20 ) AS col2
----
-43
1

skipif mysql # not compatible
query II rowsort label-2774
SELECT - 43 col1, COUNT ( DISTINCT 20 ) AS col2
----
-43
1

query I rowsort
SELECT - 90 + - 9
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2776
SELECT 71 AS col0, + 67 DIV + 67 * - - COUNT( * ) + + - 68
----
71
-67

skipif mysql # not compatible
query II rowsort label-2776
SELECT 71 AS col0, + 67 / + 67 * - - COUNT ( * ) + + - 68
----
71
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2777
SELECT ALL 4 + + + 92 + + + COUNT( * ) - 65 * 81 DIV COUNT( * ) * + ( - COUNT( * ) ) AS col1, 80 AS col2
----
5362
80

skipif mysql # not compatible
query II rowsort label-2777
SELECT ALL 4 + + + 92 + + + COUNT ( * ) - 65 * 81 / COUNT ( * ) * + ( - COUNT ( * ) ) AS col1, 80 AS col2
----
5362
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT + COALESCE ( - 15, + 32, + COUNT( * ) ) col0
----
-15

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT + COALESCE ( - 15, + 32, + COUNT ( * ) ) col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT DISTINCT - - ( - - 26 ) + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT - - ( - - 26 ) + + COUNT ( * )
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2780
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT CAST ( NULL AS REAL ) / - + 70 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT + - 49 * + - CAST( - - ( - - 83 ) AS SIGNED ) + + 29 AS col0
----
4096

skipif mysql # not compatible
query I rowsort label-2781
SELECT + - 49 * + - CAST ( - - ( - - 83 ) AS INTEGER ) + + 29 AS col0
----
4096

query I rowsort
SELECT + + 74 * + 21 AS col1
----
1554

onlyif mysql # aggregate syntax: 
query II rowsort label-2783
SELECT + 84 AS col1, + COUNT( * ) + 11 / + ( - 2 ) + 83 + + 63 - + MIN( DISTINCT - 92 ) * - CASE 70 WHEN + 56 - - - 7 + + - 39 * + - COUNT( ALL 29 ) THEN - 45 * + 3 * + 98 WHEN 25 THEN + 6 ELSE NULL END AS col1
----
84
NULL

skipif mysql # not compatible
query II rowsort label-2783
SELECT + 84 AS col1, + COUNT ( * ) + 11 / + ( - 2 ) + 83 + + 63 - + MIN ( DISTINCT - 92 ) * - CASE 70 WHEN + 56 - - - 7 + + - 39 * + - COUNT ( ALL 29 ) THEN - 45 * + 3 * + 98 WHEN 25 THEN + 6 ELSE NULL END AS col1
----
84
NULL

query II rowsort
SELECT ALL - 46 col0, - 47 * - ( - 71 ) * - 14 + + 89 + + 71
----
-46
46878

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL COUNT( * ) - + - 74 col1
----
75

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL COUNT ( * ) - + - 74 col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT DISTINCT + - NULLIF ( 65, + + 52 ) - - SUM( ALL 89 ) AS col2, - ( - 27 )
----
24
27

skipif mysql # not compatible
query II rowsort label-2786
SELECT DISTINCT + - NULLIF ( 65, + + 52 ) - - SUM ( ALL 89 ) AS col2, - ( - 27 )
----
24
27

query I rowsort
SELECT ALL - ( - - 1 )
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2789
SELECT + CAST( - + 72 AS SIGNED ) * - + CAST( NULL AS SIGNED ) + 20 + + COALESCE ( + - NULLIF ( 45, + COUNT( ALL - 90 ) + - 65 * + 44 ), + 33 + + + COALESCE ( - + 11, - COALESCE ( - MIN( + + CAST( - 2 AS SIGNED ) ), - 99, - + 77 / - 51 + - + 97 ) / - - 67 + - + SUM( + 46 ) * - 39 ) + + ( - + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT + CAST ( - + 72 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) + 20 + + COALESCE ( + - NULLIF ( 45, + COUNT ( ALL - 90 ) + - 65 * + 44 ), + 33 + + + COALESCE ( - + 11, - COALESCE ( - MIN ( + + CAST ( - 2 AS INTEGER ) ), - 99, - + 77 / - 51 + - + 97 ) / - - 67 + - + SUM ( + 46 ) * - 39 ) + + ( - + COUNT ( * ) ) )
----
NULL

query II rowsort
SELECT DISTINCT - NULLIF ( + 5, - 92 * 65 ) AS col1, - 82
----
-5
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2791
SELECT ALL - 23 AS col0, - CAST( NULL AS SIGNED ) AS col2
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-2791
SELECT ALL - 23 AS col0, - CAST ( NULL AS INTEGER ) AS col2
----
-23
NULL

query I rowsort
SELECT ALL - ( + 95 ) AS col2
----
-95

query I rowsort
SELECT 68 * + + 4 AS col2
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT 72 + + COUNT( * ) + ( 99 ) col0
----
172

skipif mysql # not compatible
query I rowsort label-2794
SELECT 72 + + COUNT ( * ) + ( 99 ) col0
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT ALL + 23 DIV 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL + 23 / 76 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2796
SELECT ALL COALESCE ( - SUM( - - ( + 28 ) ), + 35 * 17, + CAST( NULL AS SIGNED ) ) + 10 + + 32
----
14

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL COALESCE ( - SUM ( - - ( + 28 ) ), + 35 * 17, + CAST ( NULL AS INTEGER ) ) + 10 + + 32
----
14

query I rowsort
SELECT DISTINCT + 5 * - ( - 5 )
----
25

query I rowsort
SELECT DISTINCT ( + - ( - 7 ) ) + ( - 12 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL + MIN( DISTINCT - + 20 ) * 37 AS col2
----
-740

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL + MIN ( DISTINCT - + 20 ) * 37 AS col2
----
-740

query I rowsort
SELECT DISTINCT + 32 + - - ( - - NULLIF ( - 27, 80 + ( - 29 ) + + 52 ) )
----
5

query II rowsort
SELECT 31 AS col2, + 15
----
31
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT COUNT( * ) * + 90 * + 10 AS col1
----
900

skipif mysql # not compatible
query I rowsort label-2802
SELECT COUNT ( * ) * + 90 * + 10 AS col1
----
900

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT 3 DIV 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT 3 / 18 AS col0
----
0

query II rowsort
SELECT ALL - 20, 40 - + 64 + - - 32 * - 3 col0
----
-20
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT - NULLIF ( + 48, + + 41 * - - 56 * + 61 * + 46 - + 65 + 48 - - 69 * + - COUNT( * ) * 65 ) * + 75 * + + 88 * + ( + 74 ) AS col1
----
-23443200

skipif mysql # not compatible
query I rowsort label-2805
SELECT - NULLIF ( + 48, + + 41 * - - 56 * + 61 * + 46 - + 65 + 48 - - 69 * + - COUNT ( * ) * 65 ) * + 75 * + + 88 * + ( + 74 ) AS col1
----
-23443200

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT ALL - 44 + - + NULLIF ( - 32, - 23 / + + COUNT( * ) * - 60 + - + 98 * - ( - + 85 ) + + 47 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL - 44 + - + NULLIF ( - 32, - 23 / + + COUNT ( * ) * - 60 + - + 98 * - ( - + 85 ) + + 47 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT + COUNT( * ) - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2807
SELECT + COUNT ( * ) - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT ALL - CAST( - 24 AS SIGNED ) * - 46 AS col2
----
-1104

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL - CAST ( - 24 AS INTEGER ) * - 46 AS col2
----
-1104

query I rowsort
SELECT + 98 + 61 * + + 34 + - 43 + - 37 + - 70 * + 77
----
-3298

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT - + COALESCE ( - 46, + - 50 * - 69 DIV 12 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-2810
SELECT - + COALESCE ( - 46, + - 50 * - 69 / 12 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL + MAX( ALL - + 97 ) - + 56 + COUNT( 81 ) * - 57 + - 58 + - 53 * 57 * - + 75
----
226307

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + MAX ( ALL - + 97 ) - + 56 + COUNT ( 81 ) * - 57 + - 58 + - 53 * 57 * - + 75
----
226307

onlyif mysql # DIV for integer division: 
query II rowsort label-2812
SELECT 73 AS col0, COALESCE ( - 20, + 7 ) DIV - 91 AS col1
----
73
0

skipif mysql # not compatible
query II rowsort label-2812
SELECT 73 AS col0, COALESCE ( - 20, + 7 ) / - 91 AS col1
----
73
0

query I rowsort
SELECT ALL - 8 * COALESCE ( + 56, 40 + - 55 ) * + 74 - - 21
----
-33131

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - 36 * - CASE 50 WHEN 10 THEN 97 END + + 55 + - ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT - 36 * - CASE 50 WHEN 10 THEN 97 END + + 55 + - ( COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT 71 - 79
----
-8

query II rowsort
SELECT 54, 15 AS col0
----
54
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2817
SELECT ALL 18 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL 18 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 57 * + 98 AS col2, + ( 77 )
----
5586
77

query I rowsort
SELECT 27 * + 56
----
1512

query I rowsort
SELECT 88 * + - 43
----
-3784

query I rowsort
SELECT 91 + + + 4 AS col2
----
95

query I rowsort
SELECT ALL 38 * + - 44
----
-1672

onlyif mysql # DIV for integer division: 
query II rowsort label-2823
SELECT 98 DIV 9 AS col0, + 2
----
10
2

skipif mysql # not compatible
query II rowsort label-2823
SELECT 98 / 9 AS col0, + 2
----
10
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT 7 + - MIN( ALL - 9 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2825
SELECT 7 + - MIN ( ALL - 9 ) AS col0
----
16

query II rowsort
SELECT ALL + 18 * - 19 AS col2, + 69
----
-342
69

query II rowsort
SELECT DISTINCT 61 * 0 AS col0, 22 * - 26 AS col2
----
0
-572

query II rowsort
SELECT ALL - 45 + - ( ( - 66 ) ) * - + 94 AS col0, - 18
----
-6249
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2829
SELECT ALL AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + 53 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 53 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT DISTINCT - 64 + - 33 - + 61 * + COUNT( * ) AS col0
----
-158

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT - 64 + - 33 - + 61 * + COUNT ( * ) AS col0
----
-158

query I rowsort
SELECT 7 + - - 64 * - AVG ( + CASE - ( - - 98 ) WHEN + 37 THEN - 75 WHEN - - ( 40 ) THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2832
SELECT DISTINCT + 0 + + - COUNT( ALL - - 85 ) AS col0, + ( + 97 )
----
-1
97

skipif mysql # not compatible
query II rowsort label-2832
SELECT DISTINCT + 0 + + - COUNT ( ALL - - 85 ) AS col0, + ( + 97 )
----
-1
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT ALL - NULLIF ( 66, + 75 + - + 5 * - 81 ) + + 55 DIV + 59 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL - NULLIF ( 66, + 75 + - + 5 * - 81 ) + + 55 / + 59 AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT ( ( + + CAST( - - CASE + + 20 WHEN 40 * + + 0 * + 38 + + 31 THEN NULL WHEN - 39 THEN NULL ELSE 5 END AS SIGNED ) ) ) * - 92 + 82
----
-378

skipif mysql # not compatible
query I rowsort label-2834
SELECT ( ( + + CAST ( - - CASE + + 20 WHEN 40 * + + 0 * + 38 + + 31 THEN NULL WHEN - 39 THEN NULL ELSE 5 END AS INTEGER ) ) ) * - 92 + 82
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT 3 + - 55 * - COUNT( * ) * + - 68 AS col2
----
-3737

skipif mysql # not compatible
query I rowsort label-2835
SELECT 3 + - 55 * - COUNT ( * ) * + - 68 AS col2
----
-3737

query I rowsort
SELECT 38 - + 56
----
-18

query I rowsort
SELECT 42 * + ( 24 )
----
1008

query I rowsort
SELECT ALL - 56 * - 81 AS col2
----
4536

query II rowsort
SELECT 12 + - + 77, - 24 AS col2
----
-65
-24

query I rowsort
SELECT ALL - 83 + + + 65 + 70 AS col1
----
52

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

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

query I rowsort
SELECT + 30 * + COALESCE ( + 40, - 60 ) * - 92 * + + 98
----
-10819200

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2843
SELECT ALL - CAST( NULL AS DECIMAL ) * - - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - CAST ( NULL AS REAL ) * - - 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2844
SELECT - COALESCE ( + 85, - COUNT( * ) / + 57, - - 68 * - 53 - + 47 ) + - - CAST( NULL AS DECIMAL ) * + - 25 + + 1 + - + NULLIF ( - + 87, 6 ) + - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT - COALESCE ( + 85, - COUNT ( * ) / + 57, - - 68 * - 53 - + 47 ) + - - CAST ( NULL AS REAL ) * + - 25 + + 1 + - + NULLIF ( - + 87, 6 ) + - + 18
----
NULL

query I rowsort
SELECT DISTINCT - 71 * - NULLIF ( + - 23, 33 )
----
-1633

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

skipif mysql # not compatible
query I rowsort label-2846
SELECT - COUNT ( * ) / 4 + + 23 AS col2
----
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2848
SELECT ALL CASE 55 WHEN + ( - 50 ) THEN - COUNT( * ) * 37 END * CAST( - 5 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL CASE 55 WHEN + ( - 50 ) THEN - COUNT ( * ) * 37 END * CAST ( - 5 AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2849
SELECT + 36 / ( COUNT ( * ) ) - + 29 AS col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2850
SELECT + 20 * - + SUM( ALL + + 56 ) * - 67 * - + 33 + - 46 DIV 70
----
-2476320

skipif mysql # not compatible
query I rowsort label-2850
SELECT + 20 * - + SUM ( ALL + + 56 ) * - 67 * - + 33 + - 46 / 70
----
-2476320

query I rowsort
SELECT CASE WHEN NOT + 93 = + ( + 37 ) * - - 48 + - 63 - 70 THEN + 33 END
----
33

query I rowsort
SELECT ALL 61 * + - 94 + + 95 + - 32 * + + 61
----
-7591

query II rowsort
SELECT ALL 98 * - - 77 + + 63 AS col1, 38 * + - 53 AS col1
----
7609
-2014

query I rowsort
SELECT + COALESCE ( - ( - 8 ), - + 54, + 26 + + - 91 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT COUNT( DISTINCT - ( - - 14 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2855
SELECT COUNT ( DISTINCT - ( - - 14 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT - NULLIF ( - 64, 71 ) * - 18 - - + CASE 33 WHEN + CASE - - 89 WHEN + 12 THEN + + ( + SUM( ALL + ( + 75 ) ) ) + + ( 64 ) * 14 / - 9 WHEN 6 THEN NULL END THEN + + CASE 89 WHEN - 35 * + 84 / - + 72 + - 71 THEN NULL WHEN 11 * + 80 - - 88 THEN + 87 WHEN 24 * + + 29 THEN 72 * - - 16 ELSE 52 END - + - 8 / 16 END + - + 57 * + 45 + COUNT( ALL - NULLIF ( 56, - + 35 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT - NULLIF ( - 64, 71 ) * - 18 - - + CASE 33 WHEN + CASE - - 89 WHEN + 12 THEN + + ( + SUM ( ALL + ( + 75 ) ) ) + + ( 64 ) * 14 / - 9 WHEN 6 THEN NULL END THEN + + CASE 89 WHEN - 35 * + 84 / - + 72 + - 71 THEN NULL WHEN 11 * + 80 - - 88 THEN + 87 WHEN 24 * + + 29 THEN 72 * - - 16 ELSE 52 END - + - 8 / 16 END + - + 57 * + 45 + COUNT ( ALL - NULLIF ( 56, - + 35 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2857
SELECT ALL - 38 * - 0 + - + CAST( NULL AS DECIMAL ) AS col0, - 44 AS col1
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-2857
SELECT ALL - 38 * - 0 + - + CAST ( NULL AS REAL ) AS col0, - 44 AS col1
----
NULL
-44

query I rowsort
SELECT + 35 * 36 * + 36 + - ( + 49 ) * 25 col0
----
44135

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2859
SELECT + NULLIF ( + 64, - AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) / - 82 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2859
SELECT + NULLIF ( + 64, - AVG ( DISTINCT + CAST ( NULL AS REAL ) ) / - 82 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT - 12 * + SUM( DISTINCT - 5 ) * 26 + + COUNT( * )
----
1561

skipif mysql # not compatible
query I rowsort label-2860
SELECT - 12 * + SUM ( DISTINCT - 5 ) * 26 + + COUNT ( * )
----
1561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2861
SELECT ALL + COUNT( * ) - + COALESCE ( CAST( NULL AS SIGNED ), 60 ) AS col0, CASE + 7 WHEN - - 14 + - 74 + + + 73 + - + 8 THEN 81 * 5 END * - 21
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-2861
SELECT ALL + COUNT ( * ) - + COALESCE ( CAST ( NULL AS INTEGER ), 60 ) AS col0, CASE + 7 WHEN - - 14 + - 74 + + + 73 + - + 8 THEN 81 * 5 END * - 21
----
-59
NULL

query I rowsort
SELECT ALL 6 * + 95
----
570

query I rowsort
SELECT - 18 * - 30 AS col1
----
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2864
SELECT - + CAST( NULL AS SIGNED ) AS col0, COUNT( + 84 ) - - COALESCE ( - + 27, - - 64 * - + 57 + - 52 ) / CASE COALESCE ( 8, 96 / - 89 ) WHEN - COUNT( * ) * - MIN( ALL - - 51 ) + 22 * + - MIN( ALL - - 10 ) THEN + COUNT( * ) - - 27 WHEN + - 41 THEN 70 * - 92 + 61 + + - 37 + + 54 / + 40 END * - COUNT( * ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2864
SELECT - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( + 84 ) - - COALESCE ( - + 27, - - 64 * - + 57 + - 52 ) / CASE COALESCE ( 8, 96 / - 89 ) WHEN - COUNT ( * ) * - MIN ( ALL - - 51 ) + 22 * + - MIN ( ALL - - 10 ) THEN + COUNT ( * ) - - 27 WHEN + - 41 THEN 70 * - 92 + 61 + + - 37 + + 54 / + 40 END * - COUNT ( * ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT - ( - - 64 ) * COUNT( * ) * + 26 col0
----
-1664

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT - ( - - 64 ) * COUNT ( * ) * + 26 col0
----
-1664

query I rowsort
SELECT ALL 93 - + 17
----
76

query II rowsort
SELECT 21 AS col1, 30
----
21
30

query I rowsort
SELECT + + NULLIF ( 52, + - 68 ) - + 38
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT - NULLIF ( 71, + COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-2870
SELECT - NULLIF ( 71, + COUNT ( * ) )
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-2871
SELECT ALL + 23 AS col2, 87 DIV - ( - ( 12 ) ) AS col2
----
23
7

skipif mysql # not compatible
query II rowsort label-2871
SELECT ALL + 23 AS col2, 87 / - ( - ( 12 ) ) AS col2
----
23
7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2873
SELECT - + 37 * + - 13 + + COUNT( * ) * + 28 AS col0, 73 AS col2
----
509
73

skipif mysql # not compatible
query II rowsort label-2873
SELECT - + 37 * + - 13 + + COUNT ( * ) * + 28 AS col0, 73 AS col2
----
509
73

query II rowsort
SELECT - 39 - - ( - - 17 ) + - - 20 AS col1, + 63 AS col0
----
-2
63

query I rowsort
SELECT DISTINCT - ( + 16 ) * - 78 AS col2
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT DISTINCT - + 23 * + 71 + + 18 + COUNT( * ) - - + 63
----
-1551

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT - + 23 * + 71 + + 18 + COUNT ( * ) - - + 63
----
-1551

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

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

query I rowsort
SELECT - - COALESCE ( - 79, + 89 ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-2879
SELECT - 66 * + - COUNT( * ) + 67 AS col1, + 16 + COUNT( * )
----
133
17

skipif mysql # not compatible
query II rowsort label-2879
SELECT - 66 * + - COUNT ( * ) + 67 AS col1, + 16 + COUNT ( * )
----
133
17

query I rowsort
SELECT ALL + 65 * - 14
----
-910

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2882
SELECT ALL 97 DIV - ( + - 2 ) + + + 68
----
116

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL 97 / - ( + - 2 ) + + + 68
----
116

query I rowsort
SELECT + 70 * - 63 + + 69
----
-4341

query I rowsort
SELECT DISTINCT - 36 * + - 14 AS col0
----
504

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2885
SELECT CAST( CAST( 49 AS DECIMAL ) AS SIGNED ) DIV + + 48 + - 12
----
-11

skipif mysql # not compatible
query I rowsort label-2885
SELECT CAST ( CAST ( 49 AS REAL ) AS INTEGER ) / + + 48 + - 12
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT ALL - 21 DIV + + 35 + + 12 col2
----
12

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL - 21 / + + 35 + + 12 col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2887
SELECT + CAST( COUNT( * ) AS SIGNED ) + CASE - 2 WHEN - ( + ( - - 66 ) ) * + + 47 THEN + COUNT( * ) END AS col2, 67
----
NULL
67

skipif mysql # not compatible
query II rowsort label-2887
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + CASE - 2 WHEN - ( + ( - - 66 ) ) * + + 47 THEN + COUNT ( * ) END AS col2, 67
----
NULL
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ( + + NULLIF ( 34, MIN( - 12 ) * + 16 * - - 23 * + + 83 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2888
SELECT ( + + NULLIF ( 34, MIN ( - 12 ) * + 16 * - - 23 * + + 83 ) ) AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2889
SELECT ALL - 94 DIV - 64 + 14 + - COALESCE ( 53, + - CAST( NULL AS SIGNED ) ) * + 81 col2
----
-4278

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - 94 / - 64 + 14 + - COALESCE ( 53, + - CAST ( NULL AS INTEGER ) ) * + 81 col2
----
-4278

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT + ( + COUNT( + 92 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2891
SELECT + ( + COUNT ( + 92 ) ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT + 36 * + CASE AVG ( - - 40 ) WHEN - + 22 * + - 69 - + - 48 + 73 + - MIN( + 25 ) THEN NULL WHEN - 6 - 41 THEN NULL ELSE - 83 END AS col0
----
-2988

skipif mysql # not compatible
query I rowsort label-2893
SELECT + 36 * + CASE AVG ( - - 40 ) WHEN - + 22 * + - 69 - + - 48 + 73 + - MIN ( + 25 ) THEN NULL WHEN - 6 - 41 THEN NULL ELSE - 83 END AS col0
----
-2988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2894
SELECT ALL COUNT( * ) * + - 21 DIV - COUNT( - + 2 ) * 56 DIV - + MAX( + 55 ) DIV - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL COUNT ( * ) * + - 21 / - COUNT ( - + 2 ) * 56 / - + MAX ( + 55 ) / - 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT - MIN( + 53 ) * - 32 * - - 71 - - MIN( ALL - 79 ) AS col2
----
120337

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - MIN ( + 53 ) * - 32 * - - 71 - - MIN ( ALL - 79 ) AS col2
----
120337

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2896
SELECT ALL COUNT( * ) * - 74, 23 DIV 30 DIV + 48 * 67 AS col0
----
-74
0

skipif mysql # not compatible
query II rowsort label-2896
SELECT ALL COUNT ( * ) * - 74, 23 / 30 / + 48 * 67 AS col0
----
-74
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2898
SELECT + 53 DIV - 14
----
-3

skipif mysql # not compatible
query I rowsort label-2898
SELECT + 53 / - 14
----
-3

query I rowsort
SELECT + - 76 * 52
----
-3952

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT + ( + 94 ) * - - MIN( ALL + - 78 ) + + ( - 58 ) + - - 84 col0
----
-7306

skipif mysql # not compatible
query I rowsort label-2900
SELECT + ( + 94 ) * - - MIN ( ALL + - 78 ) + + ( - 58 ) + - - 84 col0
----
-7306

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT 46 DIV 12 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2901
SELECT 46 / 12 AS col0
----
3

query I rowsort
SELECT ALL - 21 * - 91 * + 47
----
89817

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT + 87 + + SUM( DISTINCT 94 ) + 34
----
215

skipif mysql # not compatible
query I rowsort label-2903
SELECT + 87 + + SUM ( DISTINCT 94 ) + 34
----
215

query I rowsort
SELECT 77 - ( + - 90 ) + - 62 + 83 + - - 13 + 41 + - 77 * 90 * - 70 AS col1
----
485342

query I rowsort
SELECT ALL - 30 * 72
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT + 37 + + MAX( ALL - - 55 ) + 56 + - 39 * 16 + - 56
----
-532

skipif mysql # not compatible
query I rowsort label-2906
SELECT + 37 + + MAX ( ALL - - 55 ) + 56 + - 39 * 16 + - 56
----
-532

query I rowsort
SELECT ALL - 69 * + 95 + - 33 + - 29
----
-6617

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT 94 + - MAX( DISTINCT - 20 ) + 97 AS col2
----
211

skipif mysql # not compatible
query I rowsort label-2908
SELECT 94 + - MAX ( DISTINCT - 20 ) + 97 AS col2
----
211

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT ALL + 19 + - COUNT( * ), + COUNT( * ) + + 34 col1
----
18
35

skipif mysql # not compatible
query II rowsort label-2909
SELECT ALL + 19 + - COUNT ( * ), + COUNT ( * ) + + 34 col1
----
18
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2910
SELECT + NULLIF ( 43, 70 ) * - 66 + + - COUNT( * ) - - CAST( NULL AS SIGNED ) + 28 + + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT + NULLIF ( 43, 70 ) * - 66 + + - COUNT ( * ) - - CAST ( NULL AS INTEGER ) + 28 + + 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT 25 + MIN( + + 20 )
----
45

skipif mysql # not compatible
query I rowsort label-2911
SELECT 25 + MIN ( + + 20 )
----
45

query I rowsort
SELECT ALL - + 58 + - - 14
----
-44

query I rowsort
SELECT ALL + 59 + + + 93 AS col2
----
152

query II rowsort
SELECT DISTINCT 15 AS col2, + 86 * - 4 AS col0
----
15
-344

query I rowsort
SELECT DISTINCT + 77 + - - 15 col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2916
SELECT ALL + NULLIF ( - 24, - - COUNT( * ) ) + + 61 + 26 AS col0, 6 - + - ( + + 1 ) + + 52 + COUNT( * ) * + - 43
----
63
16

skipif mysql # not compatible
query II rowsort label-2916
SELECT ALL + NULLIF ( - 24, - - COUNT ( * ) ) + + 61 + 26 AS col0, 6 - + - ( + + 1 ) + + 52 + COUNT ( * ) * + - 43
----
63
16

query I rowsort
SELECT 7 * + 76 * 73 AS col2
----
38836

onlyif mysql # aggregate syntax: 
query III rowsort label-2918
SELECT + 76, MAX( ALL - 44 ) AS col0, + - COUNT( * ) AS col2
----
76
-44
-1

skipif mysql # not compatible
query III rowsort label-2918
SELECT + 76, MAX ( ALL - 44 ) AS col0, + - COUNT ( * ) AS col2
----
76
-44
-1

query II rowsort
SELECT 16 * - ( - 37 ), 44 * 2 AS col0
----
592
88

query I rowsort
SELECT DISTINCT + 42 * 5 AS col0
----
210

query I rowsort
SELECT ALL + 33 - 31
----
2

query I rowsort
SELECT NULLIF ( 30, - + 77 ) * + - 66
----
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT ALL CAST( + 44 AS SIGNED ) - - + 6 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL CAST ( + 44 AS INTEGER ) - - + 6 AS col2
----
50

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2925
SELECT DISTINCT - 15 - - COUNT( * ) DIV + NULLIF ( + - COUNT( * ), + 97 DIV + - 76 * + 12 + ( + 92 ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT - 15 - - COUNT ( * ) / + NULLIF ( + - COUNT ( * ), + 97 / + - 76 * + 12 + ( + 92 ) ) AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT - CAST( - 2 AS SIGNED ) * 80 * - 93 * CASE - 14 WHEN + 72 THEN + 65 ELSE + 24 * 21 + + 52 END * - 75 + ( - COUNT( * ) )
----
620495999

skipif mysql # not compatible
query I rowsort label-2926
SELECT - CAST ( - 2 AS INTEGER ) * 80 * - 93 * CASE - 14 WHEN + 72 THEN + 65 ELSE + 24 * 21 + + 52 END * - 75 + ( - COUNT ( * ) )
----
620495999

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT - CASE - 87 WHEN + 82 * 77 THEN - MAX( DISTINCT + + 13 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT - CASE - 87 WHEN + 82 * 77 THEN - MAX ( DISTINCT + + 13 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT 22 * MIN( + 71 ) AS col0
----
1562

skipif mysql # not compatible
query I rowsort label-2928
SELECT 22 * MIN ( + 71 ) AS col0
----
1562

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT + 19 * COUNT( * ) - - 5 * + + CASE - CASE - - 36 WHEN + + 54 THEN + + COUNT( * ) ELSE ( 40 ) END WHEN + + 28 THEN NULL WHEN - 73 THEN 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT + 19 * COUNT ( * ) - - 5 * + + CASE - CASE - - 36 WHEN + + 54 THEN + + COUNT ( * ) ELSE ( 40 ) END WHEN + + 28 THEN NULL WHEN - 73 THEN 98 END AS col0
----
NULL

query I rowsort
SELECT ALL 88 * ( - + 57 )
----
-5016

query I rowsort
SELECT COALESCE ( 38, + + 42 - - 7, ( - ( + 56 ) ) + + 91 + + 3 * + 49 ) AS col0
----
38

query I rowsort
SELECT DISTINCT - 92 * 63 + - 47
----
-5843

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT DISTINCT - + MAX( 86 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - + MAX ( 86 ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT DISTINCT + COUNT( * ) + + MAX( + - 55 ), 21 AS col0
----
-54
21

skipif mysql # not compatible
query II rowsort label-2934
SELECT DISTINCT + COUNT ( * ) + + MAX ( + - 55 ), 21 AS col0
----
-54
21

query I rowsort
SELECT DISTINCT COALESCE ( 23, ( - 33 ) )
----
23

query I rowsort
SELECT ALL + 98 + - 29 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT - 74 - + ( - 51 ) + 78 - - COUNT( * ) * - 13 col2
----
42

skipif mysql # not compatible
query I rowsort label-2937
SELECT - 74 - + ( - 51 ) + 78 - - COUNT ( * ) * - 13 col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2938
SELECT 50 - + - ( - 19 ) * + - AVG ( ALL - - 43 ) * - 64 + - COUNT( * ) + - - 66 + - ( 86 ) + - AVG ( ALL - + 12 ) * - 15 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT 50 - + - ( - 19 ) * + - AVG ( ALL - - 43 ) * - 64 + - COUNT ( * ) + - - 66 + - ( 86 ) + - AVG ( ALL - + 12 ) * - 15 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2939
SELECT - 57 * 35 - + + 17 + + 14 + - 51 + 7 + - 70 * + COUNT( * ) DIV + + 81 col0
----
-2042

skipif mysql # not compatible
query I rowsort label-2939
SELECT - 57 * 35 - + + 17 + + 14 + - 51 + 7 + - 70 * + COUNT ( * ) / + + 81 col0
----
-2042

query I rowsort
SELECT ALL ( 19 ) + + 80 + - + 85
----
14

query I rowsort
SELECT ALL 84 + + ( - - 80 ) AS col2
----
164

query I rowsort
SELECT DISTINCT + - 43 * + 21 AS col1
----
-903

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL 98 * + SUM( + 86 ) * - + 6 col1
----
-50568

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL 98 * + SUM ( + 86 ) * - + 6 col1
----
-50568

query I rowsort
SELECT DISTINCT 38 + - + 51 col0
----
-13

query I rowsort
SELECT ALL 97 * + 75
----
7275

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

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL 73 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 19 col0, 44
----
-19
44

onlyif mysql # DIV for integer division: 
query II rowsort label-2948
SELECT DISTINCT 75 AS col1, + 67 DIV + 14
----
75
4

skipif mysql # not compatible
query II rowsort label-2948
SELECT DISTINCT 75 AS col1, + 67 / + 14
----
75
4

query I rowsort
SELECT 97 + 53 AS col1
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT - 23 DIV + 24 * - 46 + - 91 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-2950
SELECT - 23 / + 24 * - 46 + - 91 AS col2
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2951
SELECT ALL + 28 DIV + COUNT( * ) * + + COUNT( DISTINCT + 69 ) col1, 47 AS col2
----
28
47

skipif mysql # not compatible
query II rowsort label-2951
SELECT ALL + 28 / + COUNT ( * ) * + + COUNT ( DISTINCT + 69 ) col1, 47 AS col2
----
28
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT DISTINCT + NULLIF ( - 42, + CAST( + 19 AS SIGNED ) ) * - + 22 + 28
----
952

skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT + NULLIF ( - 42, + CAST ( + 19 AS INTEGER ) ) * - + 22 + 28
----
952

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT 32 + + COUNT( * ) * - 48 + - + MIN( 83 ) + 89
----
-10

skipif mysql # not compatible
query I rowsort label-2953
SELECT 32 + + COUNT ( * ) * - 48 + - + MIN ( 83 ) + 89
----
-10

query I rowsort
SELECT 38 * + + 95 * - 57
----
-205770

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2955
SELECT 2 * - ( MAX( DISTINCT + 96 ) ) + - + 43 * + 26, - 52 - + 62 * COUNT( * ) DIV - + 19 + - - 1 AS col2
----
-1310
-48

skipif mysql # not compatible
query II rowsort label-2955
SELECT 2 * - ( MAX ( DISTINCT + 96 ) ) + - + 43 * + 26, - 52 - + 62 * COUNT ( * ) / - + 19 + - - 1 AS col2
----
-1310
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2956
SELECT + CASE - 95 WHEN + COUNT( DISTINCT - + 44 ) * + 35 * COALESCE ( - - CAST( NULL AS SIGNED ), + - 73 * + 25 ) * 67 THEN 92 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT + CASE - 95 WHEN + COUNT ( DISTINCT - + 44 ) * + 35 * COALESCE ( - - CAST ( NULL AS INTEGER ), + - 73 * + 25 ) * 67 THEN 92 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL - SUM( ALL - - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL - SUM ( ALL - - 47 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2958
SELECT - 41 DIV - + 74
----
0

skipif mysql # not compatible
query I rowsort label-2958
SELECT - 41 / - + 74
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2959
SELECT - 47 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-2959
SELECT - 47 / - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT - + MAX( 51 ) + - - 3 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-2960
SELECT - + MAX ( 51 ) + - - 3 AS col2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2961
SELECT ALL - + 58 DIV + + 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL - + 58 / + + 66 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL - MAX( DISTINCT 27 ) * + 42 * - - 26 + - + 1 AS col1
----
-29485

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL - MAX ( DISTINCT 27 ) * + 42 * - - 26 + - + 1 AS col1
----
-29485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2964
SELECT ALL + 75, ( + CASE 59 WHEN CAST( NULL AS SIGNED ) / + - 73 THEN 39 * 51 END ) * + 9 + + COUNT( * ) + - - 25 / - + 92 * - 41 AS col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-2964
SELECT ALL + 75, ( + CASE 59 WHEN CAST ( NULL AS INTEGER ) / + - 73 THEN 39 * 51 END ) * + 9 + + COUNT ( * ) + - - 25 / - + 92 * - 41 AS col1
----
75
NULL

query I rowsort
SELECT ALL + 13 + + - 60 * - 93 AS col0
----
5593

query II rowsort
SELECT DISTINCT + 37 AS col2, + 85
----
37
85

query I rowsort
SELECT - 5 + + 58
----
53

query II rowsort
SELECT ALL + ( + 99 ) col1, 35 AS col1
----
99
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2969
SELECT + CAST( NULL AS SIGNED ) * + 91 * + + COUNT( * ) * - ( + - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT + CAST ( NULL AS INTEGER ) * + 91 * + + COUNT ( * ) * - ( + - 37 )
----
NULL

query I rowsort
SELECT ALL + 52 + - 70 col2
----
-18

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

skipif mysql # not compatible
query II rowsort label-2971
SELECT - 43, CAST ( NULL AS INTEGER ) AS col2
----
-43
NULL

query II rowsort
SELECT ALL - + 66 + 76 AS col1, + 1 AS col2
----
10
1

query I rowsort
SELECT + + 67 - - 90
----
157

query II rowsort
SELECT ALL - 67, 74 AS col2
----
-67
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2975
SELECT ALL - + 74 + COUNT( * ) AS col2, 61 * 24 col0
----
-73
1464

skipif mysql # not compatible
query II rowsort label-2975
SELECT ALL - + 74 + COUNT ( * ) AS col2, 61 * 24 col0
----
-73
1464

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT DISTINCT - + COALESCE ( - 28, + 9 ) + + 1 * - COUNT( ALL + 66 )
----
27

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT - + COALESCE ( - 28, + 9 ) + + 1 * - COUNT ( ALL + 66 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT + NULLIF ( - ( + - 91 ), - 4 ) + - MAX( + - 0 )
----
91

skipif mysql # not compatible
query I rowsort label-2977
SELECT + NULLIF ( - ( + - 91 ), - 4 ) + - MAX ( + - 0 )
----
91

query II rowsort
SELECT ALL + 31 AS col1, + ( + 24 ) AS col2
----
31
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT + 35 + + 67 * 78 DIV - - 72 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-2979
SELECT + 35 + + 67 * 78 / - - 72 AS col1
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT - 55 DIV - 84 * + 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2980
SELECT - 55 / - 84 * + 44 AS col0
----
0

query I rowsort
SELECT - ( + 36 ) col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2982
SELECT DISTINCT 31 DIV + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT 31 / + COUNT ( * ) AS col2
----
31

query I rowsort
SELECT DISTINCT 37 * - + 70 * + 66
----
-170940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2984
SELECT DISTINCT 48 - + - CAST( ( - - COUNT( * ) ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT 48 - + - CAST ( ( - - COUNT ( * ) ) AS INTEGER )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 63 * - CAST( 61 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 63 * - CAST ( 61 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( 50 ) * + 32 AS col0
----
1600

query II rowsort
SELECT ( 49 ), - ( 73 ) AS col2
----
49
-73

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2989
SELECT ( ( 97 ) ) AS col2, + 94 + + 68 * 61 * - ( MIN( DISTINCT - 42 ) )
----
97
174310

skipif mysql # not compatible
query II rowsort label-2989
SELECT ( ( 97 ) ) AS col2, + 94 + + 68 * 61 * - ( MIN ( DISTINCT - 42 ) )
----
97
174310

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2990
SELECT 70 DIV MIN( ALL + COALESCE ( - 55, - 90 DIV - 17 ) ) - + 46 AS col2, - 87 AS col2
----
-47
-87

skipif mysql # not compatible
query II rowsort label-2990
SELECT 70 / MIN ( ALL + COALESCE ( - 55, - 90 / - 17 ) ) - + 46 AS col2, - 87 AS col2
----
-47
-87

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

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

query I rowsort
SELECT DISTINCT - 26 * - + COALESCE ( 43, 55 ) + 98
----
1216

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT ALL 43 * + AVG ( DISTINCT - + 14 ) + + + 22 / + ( CASE 3 WHEN + 62 / + + NULLIF ( + 24, + + 97 * - - 14 / - ( 55 ) + + - 49 - - MIN( - + 10 ) ) THEN NULL WHEN COUNT( * ) THEN 61 ELSE NULL END ) + - 22 col0, - 68 AS col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-2994
SELECT ALL 43 * + AVG ( DISTINCT - + 14 ) + + + 22 / + ( CASE 3 WHEN + 62 / + + NULLIF ( + 24, + + 97 * - - 14 / - ( 55 ) + + - 49 - - MIN ( - + 10 ) ) THEN NULL WHEN COUNT ( * ) THEN 61 ELSE NULL END ) + - 22 col0, - 68 AS col2
----
NULL
-68

query I rowsort
SELECT + + 42 * - + 6 - - 14 + + 46 * - + 84 * + + 38 AS col1
----
-147070

onlyif mysql # aggregate syntax: 
query II rowsort label-2996
SELECT - 94 - 63, ( + - COUNT( * ) ) + 96 col0
----
-157
95

skipif mysql # not compatible
query II rowsort label-2996
SELECT - 94 - 63, ( + - COUNT ( * ) ) + 96 col0
----
-157
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL + 6 * + 95 * + + 74 * - + 34 + COUNT( * )
----
-1434119

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + 6 * + 95 * + + 74 * - + 34 + COUNT ( * )
----
-1434119

query I rowsort
SELECT 43 * - + ( + + 1 ) + 38
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2999
SELECT - + 38 * + 11, + MAX( DISTINCT - ( 5 ) ) AS col2
----
-418
-5

skipif mysql # not compatible
query II rowsort label-2999
SELECT - + 38 * + 11, + MAX ( DISTINCT - ( 5 ) ) AS col2
----
-418
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL - 12 * + + 91 * + + COALESCE ( - 2, + 30 * - NULLIF ( 99, - - COUNT( * ) ) * COUNT( ALL - + 83 ) * 7 - - 66, + - COUNT( * ) + - + 61 ) - + - ( - MAX( 76 ) ) - + 46
----
2062

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - 12 * + + 91 * + + COALESCE ( - 2, + 30 * - NULLIF ( 99, - - COUNT ( * ) ) * COUNT ( ALL - + 83 ) * 7 - - 66, + - COUNT ( * ) + - + 61 ) - + - ( - MAX ( 76 ) ) - + 46
----
2062

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT DISTINCT MIN( ALL 46 )
----
46

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT MIN ( ALL 46 )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3002
SELECT ALL - - 38 DIV COUNT( * ) - 73
----
-35

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - - 38 / COUNT ( * ) - 73
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3003
SELECT - 6 DIV - + 58 + - 33 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3003
SELECT - 6 / - + 58 + - 33 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT - 32 - + - SUM( - ( + 3 ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3004
SELECT - 32 - + - SUM ( - ( + 3 ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL - COUNT( * ) * - - 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL - COUNT ( * ) * - - 41 AS col2
----
-41

query I rowsort
SELECT - 8 + 63 AS col0
----
55

query I rowsort
SELECT - 84 * + + 48
----
-4032

query I rowsort
SELECT ALL - COALESCE ( - 0, 39 + - + 42 ) * - 81 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3009
SELECT DISTINCT CAST( + CAST( 54 AS DECIMAL ) AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT CAST ( + CAST ( 54 AS REAL ) AS INTEGER )
----
54

query I rowsort
SELECT ALL - 29 * ( - 92 ) * + + 55 + 75 * - - 65 + - 71 * - + 55 AS col0
----
155520

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3012
SELECT + 54 - 35 + 68 AS col2, 56 * - + COUNT( * )
----
87
-56

skipif mysql # not compatible
query II rowsort label-3012
SELECT + 54 - 35 + 68 AS col2, 56 * - + COUNT ( * )
----
87
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT 48 DIV - + 30 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3013
SELECT 48 / - + 30 AS col1
----
-1

query II rowsort
SELECT ALL 91 AS col1, + 3 + + - 52
----
91
-49

query I rowsort
SELECT 31 + - - 58
----
89

query I rowsort
SELECT ALL 30 * + + 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3017
SELECT 38 DIV 10 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3017
SELECT 38 / 10 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT ALL - 39 + + 22 DIV - ( - 4 )
----
-34

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - 39 + + 22 / - ( - 4 )
----
-34

query I rowsort
SELECT ALL + ( + - 35 ) + - 46 + + 85 AS col1
----
4

query I rowsort
SELECT ALL 82 + + + 23 - CASE - - 51 WHEN - ( 47 ) THEN + 62 END
----
NULL

query I rowsort
SELECT ALL 95 + + 89
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT 46 + + NULLIF ( 26, + 2 + + 39 ) - COUNT( * ) col0
----
71

skipif mysql # not compatible
query I rowsort label-3022
SELECT 46 + + NULLIF ( 26, + 2 + + 39 ) - COUNT ( * ) col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL COUNT( * ) * - 59 * - 73
----
4307

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL COUNT ( * ) * - 59 * - 73
----
4307

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT SUM( DISTINCT + + 81 ) * - ( - + 29 )
----
2349

skipif mysql # not compatible
query I rowsort label-3025
SELECT SUM ( DISTINCT + + 81 ) * - ( - + 29 )
----
2349

onlyif mysql # aggregate syntax: 
query II rowsort label-3026
SELECT DISTINCT + 86 + - 68 * - 26 AS col1, COUNT( * ) * - - 21
----
1854
21

skipif mysql # not compatible
query II rowsort label-3026
SELECT DISTINCT + 86 + - 68 * - 26 AS col1, COUNT ( * ) * - - 21
----
1854
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT + NULLIF ( + 44, 84 * 94 + + 15 * + COUNT( ALL 0 ) )
----
44

skipif mysql # not compatible
query I rowsort label-3027
SELECT + NULLIF ( + 44, 84 * 94 + + 15 * + COUNT ( ALL 0 ) )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3028
SELECT ALL - COUNT( * ) + + - 69 * - + 85 + + 54 DIV - 67 AS col0
----
5864

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - COUNT ( * ) + + - 69 * - + 85 + + 54 / - 67 AS col0
----
5864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3029
SELECT ALL - CASE - CAST( - CAST( - 70 AS SIGNED ) AS SIGNED ) WHEN + COUNT( ALL - 43 ) / - COUNT( * ) + ( CASE + - 68 WHEN 33 THEN NULL ELSE + - 17 + + 91 END ) THEN + ( - 26 ) + + 49 + 17 END + - 75 * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL - CASE - CAST ( - CAST ( - 70 AS INTEGER ) AS INTEGER ) WHEN + COUNT ( ALL - 43 ) / - COUNT ( * ) + ( CASE + - 68 WHEN 33 THEN NULL ELSE + - 17 + + 91 END ) THEN + ( - 26 ) + + 49 + 17 END + - 75 * - 62
----
NULL

query II rowsort
SELECT 56 + + + ( 54 ) AS col1, 54
----
110
54

query I rowsort
SELECT ALL 23 + + 42 * 47 AS col0
----
1997

query I rowsort
SELECT ALL + 92 - - NULLIF ( + 7, 84 + + + 83 ) AS col0
----
99

query I rowsort
SELECT ALL - 70 * + 99 AS col2
----
-6930

query I rowsort
SELECT ALL + 12 - 27 AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT + CAST( - 8 AS SIGNED ) * - + 85 + + 31 AS col1
----
711

skipif mysql # not compatible
query I rowsort label-3035
SELECT + CAST ( - 8 AS INTEGER ) * - + 85 + + 31 AS col1
----
711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT ALL - 9 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL - 9 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( - + 15 ) AS col0
----
-15

query I rowsort
SELECT + 70 + + 10 + 45
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-3039
SELECT 94 - CASE 58 WHEN 18 * + + 94 + - COUNT( DISTINCT 83 ) - 54 THEN NULL WHEN + 23 - 32 THEN NULL ELSE + 25 END, + 3 AS col0
----
69
3

skipif mysql # not compatible
query II rowsort label-3039
SELECT 94 - CASE 58 WHEN 18 * + + 94 + - COUNT ( DISTINCT 83 ) - 54 THEN NULL WHEN + 23 - 32 THEN NULL ELSE + 25 END, + 3 AS col0
----
69
3

query I rowsort
SELECT 6 + + CASE + 7 WHEN + 91 * 87 + + 2 * + + 30 * - - 18 + + - 28 THEN + 87 * ( + 79 ) END - - NULLIF ( - 17, - 34 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3041
SELECT ALL + CAST( 68 AS SIGNED ) DIV - 33 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + CAST ( 68 AS INTEGER ) / - 33 AS col1
----
-2

query I rowsort
SELECT 22 + + 50 + - 36 AS col0
----
36

query I rowsort
SELECT 25 * + 90
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT 32 + - 25 * + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-3044
SELECT 32 + - 25 * + - COUNT ( * )
----
57

query I rowsort
SELECT DISTINCT - 24 + + ( + 98 ) - 8
----
66

query I rowsort
SELECT 15 * + 70
----
1050

query I rowsort
SELECT 51 + - 85
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT ALL - COUNT( * ) + - - 34 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL - COUNT ( * ) + - - 34 AS col2
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-3049
SELECT ALL - 80 + + 84 AS col0, + 41 DIV - + 81 + + 30 * 22 + 97
----
4
757

skipif mysql # not compatible
query II rowsort label-3049
SELECT ALL - 80 + + 84 AS col0, + 41 / - + 81 + + 30 * 22 + 97
----
4
757

query I rowsort
SELECT 41 * - 40 AS col1
----
-1640

query I rowsort
SELECT ALL - 7 + 3 - - 90
----
86

query II rowsort
SELECT 66 * - 9 AS col2, - NULLIF ( - 66, 79 )
----
-594
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT + 30 DIV + + 12 + + 93 + 24 + + 20 DIV - 73 + - 58 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3053
SELECT + 30 / + + 12 + + 93 + 24 + + 20 / - 73 + - 58 AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3054
SELECT + COUNT( ALL - COALESCE ( + 41, + - 61 ) ) col2, - 27
----
1
-27

skipif mysql # not compatible
query II rowsort label-3054
SELECT + COUNT ( ALL - COALESCE ( + 41, + - 61 ) ) col2, - 27
----
1
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL + + SUM( + 41 ) + - 66 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL + + SUM ( + 41 ) + - 66 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3056
SELECT + - COALESCE ( + + CASE 61 WHEN + + COUNT( * ) * 43 THEN - 3 END, + + 36 * - - 70 * CASE + + ( - CAST( + + 22 AS SIGNED ) ) WHEN 72 THEN - SUM( ALL + NULLIF ( - ( + 5 ), - + 30 + + ( 66 ) ) ) / - - 19 + + - 8 END * 8 - + ( ( - COUNT( * ) ) ) + - 3 + 75 * - 33 * - CASE - AVG ( DISTINCT + 55 ) WHEN 88 / + 52 + 90 + + 41 + - 97 - + - 15 THEN COUNT( * ) WHEN + 80 - - CAST( NULL AS SIGNED ) * ( + - MAX( DISTINCT + - 62 ) ) * + + 86 + - 19 + - 82 + + 32 THEN - + 55 END ) * + NULLIF ( 44 * 78 + - MIN( 19 ), - COUNT( * ) * + 95 + + COUNT( * ) ) - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT + - COALESCE ( + + CASE 61 WHEN + + COUNT ( * ) * 43 THEN - 3 END, + + 36 * - - 70 * CASE + + ( - CAST ( + + 22 AS INTEGER ) ) WHEN 72 THEN - SUM ( ALL + NULLIF ( - ( + 5 ), - + 30 + + ( 66 ) ) ) / - - 19 + + - 8 END * 8 - + ( ( - COUNT ( * ) ) ) + - 3 + 75 * - 33 * - CASE - AVG ( DISTINCT + 55 ) WHEN 88 / + 52 + 90 + + 41 + - 97 - + - 15 THEN COUNT ( * ) WHEN + 80 - - CAST ( NULL AS INTEGER ) * ( + - MAX ( DISTINCT + - 62 ) ) * + + 86 + - 19 + - 82 + + 32 THEN - + 55 END ) * + NULLIF ( 44 * 78 + - MIN ( 19 ), - COUNT ( * ) * + 95 + + COUNT ( * ) ) - 31 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3057
SELECT - 85 * + + 22 + + + 65 + - CAST( NULL AS SIGNED ) / 57 + MAX( DISTINCT + 51 ) AS col1, - NULLIF ( + 64, - 55 )
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-3057
SELECT - 85 * + + 22 + + + 65 + - CAST ( NULL AS INTEGER ) / 57 + MAX ( DISTINCT + 51 ) AS col1, - NULLIF ( + 64, - 55 )
----
NULL
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT ALL 55 DIV - + 79 + + 69
----
69

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL 55 / - + 79 + + 69
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3059
SELECT NULLIF ( + 11, NULLIF ( COUNT( * ), + - ( - - 82 ) ) + - NULLIF ( - COUNT( * ), - MIN( DISTINCT CAST( NULL AS SIGNED ) ) ) + + 17 ) - + ( - + 84 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3059
SELECT NULLIF ( + 11, NULLIF ( COUNT ( * ), + - ( - - 82 ) ) + - NULLIF ( - COUNT ( * ), - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) + + 17 ) - + ( - + 84 ) AS col0
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL + 21 - + ( MAX( - NULLIF ( - + 89, + 77 ) ) )
----
-68

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL + 21 - + ( MAX ( - NULLIF ( - + 89, + 77 ) ) )
----
-68

query I rowsort
SELECT DISTINCT - + 17 AS col0
----
-17

query I rowsort
SELECT ALL + 99 * 13 AS col1
----
1287

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

skipif mysql # not compatible
query I rowsort label-3064
SELECT + - SUM ( + - 48 )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT DISTINCT 39 * - 60 DIV - 10
----
234

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT 39 * - 60 / - 10
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT + NULLIF ( SUM( DISTINCT 38 ), + 86 + - 48 ) * + - SUM( + 30 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT + NULLIF ( SUM ( DISTINCT 38 ), + 86 + - 48 ) * + - SUM ( + 30 ) AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - - ( + 28 ) AS col2
----
28

query I rowsort
SELECT 63 + - 17 + 48 + + 50 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT DISTINCT 25 + - COUNT( DISTINCT - - 74 ) + + 86 + + 51 * + 51
----
2711

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT 25 + - COUNT ( DISTINCT - - 74 ) + + 86 + + 51 * + 51
----
2711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3072
SELECT + 49 + COUNT( * ) + - 91 * - - COUNT( * ) DIV - - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-3072
SELECT + 49 + COUNT ( * ) + - 91 * - - COUNT ( * ) / - - COUNT ( * )
----
-41

query I rowsort
SELECT ALL 60 + - 32 - - 55
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3074
SELECT ALL ( - 19 ) * + 10 * - - CASE + 72 WHEN + 81 * - ( - 36 ) THEN - 67 + + + 31 ELSE COUNT( * ) * 31 + - + 23 DIV + 89 * - - 76 END * + - ( + 3 )
----
17670

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL ( - 19 ) * + 10 * - - CASE + 72 WHEN + 81 * - ( - 36 ) THEN - 67 + + + 31 ELSE COUNT ( * ) * 31 + - + 23 / + 89 * - - 76 END * + - ( + 3 )
----
17670

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT + 25 DIV - NULLIF ( 95, + - 52 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3075
SELECT + 25 / - NULLIF ( 95, + - 52 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT - COUNT( * ) * - CAST( + 90 AS SIGNED ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3076
SELECT - COUNT ( * ) * - CAST ( + 90 AS INTEGER ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3077
SELECT DISTINCT CAST( + NULLIF ( - - COALESCE ( + + CAST( NULL AS SIGNED ), - - COUNT( * ) ), - 36 ) AS SIGNED ) * - 66 col2
----
-66

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT CAST ( + NULLIF ( - - COALESCE ( + + CAST ( NULL AS INTEGER ), - - COUNT ( * ) ), - 36 ) AS INTEGER ) * - 66 col2
----
-66

query I rowsort
SELECT + 19 + + 64
----
83

query I rowsort
SELECT ALL + 39 + NULLIF ( 41, + 90 )
----
80

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

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

query I rowsort
SELECT ALL - 75 + + 85 * + 1
----
10

query II rowsort
SELECT ALL 47 AS col2, 94
----
47
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT + 76 * - 24 * + COUNT( * )
----
-1824

skipif mysql # not compatible
query I rowsort label-3083
SELECT + 76 * - 24 * + COUNT ( * )
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT + 35 + + MIN( + 60 ) * 38
----
2315

skipif mysql # not compatible
query I rowsort label-3084
SELECT + 35 + + MIN ( + 60 ) * 38
----
2315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3085
SELECT ALL + 76 + - + 66 DIV COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL + 76 + - + 66 / COUNT ( * ) AS col0
----
10

query I rowsort
SELECT - 17 + - 34 * 89
----
-3043

query I rowsort
SELECT - 29 + + 24 AS col2
----
-5

query I rowsort
SELECT ALL NULLIF ( 36, 49 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3089
SELECT - NULLIF ( 87, 13 * + 1 - - 14 ) + CAST( NULL AS SIGNED ) / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT - NULLIF ( 87, 13 * + 1 - - 14 ) + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3090
SELECT - 11 - NULLIF ( CAST( 90 AS SIGNED ), 65 + - SUM( ALL + 74 ) )
----
-101

skipif mysql # not compatible
query I rowsort label-3090
SELECT - 11 - NULLIF ( CAST ( 90 AS INTEGER ), 65 + - SUM ( ALL + 74 ) )
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT ( - 91 ) DIV - 52 + 85
----
86

skipif mysql # not compatible
query I rowsort label-3091
SELECT ( - 91 ) / - 52 + 85
----
86

query I rowsort
SELECT DISTINCT + 59 * 1 AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3093
SELECT ALL + 29 * + COUNT( * ) - COALESCE ( + 39, 74, 81, + CASE + 54 WHEN + 19 THEN 53 + + CASE - COUNT( * ) WHEN CAST( - 23 AS SIGNED ) THEN 64 ELSE NULL END * - 42 ELSE NULL END - - 6 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL + 29 * + COUNT ( * ) - COALESCE ( + 39, 74, 81, + CASE + 54 WHEN + 19 THEN 53 + + CASE - COUNT ( * ) WHEN CAST ( - 23 AS INTEGER ) THEN 64 ELSE NULL END * - 42 ELSE NULL END - - 6 ) AS col0
----
-10

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

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

query I rowsort
SELECT ALL + 41 * + 59
----
2419

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT NULLIF ( COALESCE ( - 67, - 26 + 71 * + 58 ), COUNT( * ) + 77 )
----
-67

skipif mysql # not compatible
query I rowsort label-3097
SELECT NULLIF ( COALESCE ( - 67, - 26 + 71 * + 58 ), COUNT ( * ) + 77 )
----
-67

query I rowsort
SELECT - 85 * 15 + - 66 AS col1
----
-1341

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

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

query I rowsort
SELECT + 45 * 54 AS col2
----
2430

query I rowsort
SELECT NULLIF ( - 20, + 23 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3102
SELECT ALL + CASE 79 WHEN 37 * - COUNT( * ) THEN COALESCE ( - COUNT( DISTINCT 50 ), - CAST( NULL AS SIGNED ) * 19 ) WHEN 51 * + COUNT( * ) THEN NULL WHEN 49 * - 43 + - 49 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + CASE 79 WHEN 37 * - COUNT ( * ) THEN COALESCE ( - COUNT ( DISTINCT 50 ), - CAST ( NULL AS INTEGER ) * 19 ) WHEN 51 * + COUNT ( * ) THEN NULL WHEN 49 * - 43 + - 49 THEN NULL END
----
NULL

query I rowsort
SELECT - 9 + - 44
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT DISTINCT - 96 DIV 31
----
-3

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT - 96 / 31
----
-3

query I rowsort
SELECT CASE + 35 WHEN 92 THEN - 61 WHEN 78 THEN NULL WHEN ( 89 ) THEN - 30 - ( + ( - 11 ) ) * + 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL + COUNT( * ) * 52 + + 81
----
133

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL + COUNT ( * ) * 52 + + 81
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT 6 * 88 + - ( + COUNT( * ) ) AS col1
----
527

skipif mysql # not compatible
query I rowsort label-3107
SELECT 6 * 88 + - ( + COUNT ( * ) ) AS col1
----
527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3108
SELECT ALL + 43 * COUNT( * ) + 49 DIV 57 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL + 43 * COUNT ( * ) + 49 / 57 AS col1
----
43

query I rowsort
SELECT + 55 + - 56
----
-1

query I rowsort
SELECT ALL + 93 * ( + 29 ) + 21 AS col0
----
2718

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT - 67 + MAX( - 15 + 25 )
----
-57

skipif mysql # not compatible
query I rowsort label-3111
SELECT - 67 + MAX ( - 15 + 25 )
----
-57

query I rowsort
SELECT DISTINCT ( + 60 ) * 71 AS col2
----
4260

query I rowsort
SELECT 6 * 54 + 26
----
350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL - MAX( ALL - 90 ) * + 0 + CASE 74 WHEN 71 + 47 THEN - COALESCE ( + 45, - 53 * + 28 + - COUNT( * ) * CASE 45 + 73 * + 92 WHEN SUM( 82 ) THEN 1 * + 57 + + CAST( ( + 0 ) AS SIGNED ) END, + 30 / + 86 ) + CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - MAX ( ALL - 90 ) * + 0 + CASE 74 WHEN 71 + 47 THEN - COALESCE ( + 45, - 53 * + 28 + - COUNT ( * ) * CASE 45 + 73 * + 92 WHEN SUM ( 82 ) THEN 1 * + 57 + + CAST ( ( + 0 ) AS INTEGER ) END, + 30 / + 86 ) + CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT + 19 + COALESCE ( - 76, COUNT( ALL 68 ) * - 91 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3115
SELECT + 19 + COALESCE ( - 76, COUNT ( ALL 68 ) * - 91 ) AS col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3116
SELECT + NULLIF ( + COALESCE ( - 40, - 33 ), - 25 DIV 38 ) + + 94 DIV COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-3116
SELECT + NULLIF ( + COALESCE ( - 40, - 33 ), - 25 / 38 ) + + 94 / COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT MAX( + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-3117
SELECT MAX ( + 85 )
----
85

query I rowsort
SELECT ALL 7 + - 60 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT MAX( - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-3119
SELECT MAX ( - 53 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT ALL CAST( + AVG ( ALL 91 ) AS SIGNED ) + - 70 col1
----
21

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL CAST ( + AVG ( ALL 91 ) AS INTEGER ) + - 70 col1
----
21

query I rowsort
SELECT DISTINCT 0 * 93
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT ALL 71 + CAST( 35 AS SIGNED ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL 71 + CAST ( 35 AS INTEGER ) AS col0
----
106

query I rowsort
SELECT ALL 47 - - 80 AS col2
----
127

query I rowsort
SELECT + 53 * 85 AS col0
----
4505

query I rowsort
SELECT + 59 * + 40
----
2360

query I rowsort
SELECT - ( 34 ) AS col1
----
-34

query I rowsort
SELECT ALL 99 * 34
----
3366

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

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

query I rowsort
SELECT ALL + 54 - 85
----
-31

query I rowsort
SELECT + + 43 * - 63 AS col1
----
-2709

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3131
SELECT ALL - COALESCE ( + MAX( 95 ), 83 * 75 + 10 * 88, SUM( 68 ) * + 98 + - 86, 18 * ( - 11 DIV - 81 ) )
----
-95

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - COALESCE ( + MAX ( 95 ), 83 * 75 + 10 * 88, SUM ( 68 ) * + 98 + - 86, 18 * ( - 11 / - 81 ) )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT - 34 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-3132
SELECT - 34 / + 76
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT ALL - ( + 57 ) DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - ( + 57 ) / + 70 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT - + 24 DIV + 39 + + 26 col0
----
26

skipif mysql # not compatible
query I rowsort label-3134
SELECT - + 24 / + 39 + + 26 col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3135
SELECT ALL - 38 DIV MAX( DISTINCT + NULLIF ( - 40, 57 ) * - 22 )
----
0

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL - 38 / MAX ( DISTINCT + NULLIF ( - 40, 57 ) * - 22 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3136
SELECT + 17 DIV + 50 - SUM( DISTINCT 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-3136
SELECT + 17 / + 50 - SUM ( DISTINCT 89 ) AS col2
----
-89

query I rowsort
SELECT - + ( + NULLIF ( 72, - 66 ) ) * + 35 AS col2
----
-2520

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

query I rowsort
SELECT - - 83 - - 1 col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3140
SELECT ALL + - CAST( NULL AS SIGNED ) * + NULLIF ( 5 * - 14 + - COUNT( * ), 96 - - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + - CAST ( NULL AS INTEGER ) * + NULLIF ( 5 * - 14 + - COUNT ( * ), 96 - - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT - - 92 * NULLIF ( - COUNT( * ), + 70 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3141
SELECT - - 92 * NULLIF ( - COUNT ( * ), + 70 ) AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3142
SELECT ALL + 23 DIV 57 + SUM( ALL - 66 - 12 * 51 ) AS col0
----
-678

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL + 23 / 57 + SUM ( ALL - 66 - 12 * 51 ) AS col0
----
-678

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT DISTINCT + 87 DIV - 11 + + 44
----
37

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT + 87 / - 11 + + 44
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3144
SELECT ALL + 58 DIV COUNT( * ) + 61 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + 58 / COUNT ( * ) + 61 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT - + 49 + + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT - + 49 + + COUNT ( * ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT COUNT( * ) * COUNT( * ) - - 37 * - 29 AS col1
----
-1072

skipif mysql # not compatible
query I rowsort label-3146
SELECT COUNT ( * ) * COUNT ( * ) - - 37 * - 29 AS col1
----
-1072

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL + COUNT( * ) + - 44 * MAX( - ( 49 ) + + 23 ) AS col2
----
1145

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL + COUNT ( * ) + - 44 * MAX ( - ( 49 ) + + 23 ) AS col2
----
1145

onlyif mysql # DIV for integer division: 
query I rowsort label-3148
SELECT 31 DIV + 7 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3148
SELECT 31 / + 7 AS col1
----
4

query I rowsort
SELECT ALL 7 + 47
----
54

query I rowsort
SELECT ALL 66 * 20
----
1320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3151
SELECT ALL - ( NULLIF ( ( - COUNT( * ) ), 13 - + 21 ) ) DIV - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL - ( NULLIF ( ( - COUNT ( * ) ), 13 - + 21 ) ) / - 86 AS col0
----
0

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

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

query I rowsort
SELECT ALL 60 * 88
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT CASE COUNT( * ) WHEN - 6 THEN 65 / 48 + - 52 / 72 END * 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT CASE COUNT ( * ) WHEN - 6 THEN 65 / 48 + - 52 / 72 END * 25 AS col0
----
NULL

query I rowsort
SELECT ALL + 76 - + + 69 col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT 40 + - COUNT( * ) col0
----
39

skipif mysql # not compatible
query I rowsort label-3156
SELECT 40 + - COUNT ( * ) col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT 47 - + CAST( CAST( + NULLIF ( 8, 8 * + 77 ) AS SIGNED ) AS SIGNED ) * 46
----
-321

skipif mysql # not compatible
query I rowsort label-3157
SELECT 47 - + CAST ( CAST ( + NULLIF ( 8, 8 * + 77 ) AS INTEGER ) AS INTEGER ) * 46
----
-321

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT MAX( 49 ) + - 44 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3159
SELECT MAX ( 49 ) + - 44 AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT CAST( 0 AS SIGNED ) * - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT CAST ( 0 AS INTEGER ) * - 48 AS col2
----
0

query I rowsort
SELECT DISTINCT - 58 * - 88
----
5104

onlyif mysql # DIV for integer division: 
query I rowsort label-3162
SELECT 75 + + 88 DIV 15 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3162
SELECT 75 + + 88 / 15 AS col1
----
80

query I rowsort
SELECT - 4 * - 69
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT 69 - - MIN( ALL + 89 )
----
158

skipif mysql # not compatible
query I rowsort label-3164
SELECT 69 - - MIN ( ALL + 89 )
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL - MIN( + - 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - MIN ( + - 89 ) AS col2
----
89

query I rowsort
SELECT ALL ( + 92 ) * + 18 AS col1
----
1656

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT 46 * 89 DIV + 62
----
66

skipif mysql # not compatible
query I rowsort label-3167
SELECT 46 * 89 / + 62
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT - COUNT( * ) + + + COUNT( 30 ) - 4 * + SUM( - 50 + + 84 ) AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-3168
SELECT - COUNT ( * ) + + + COUNT ( 30 ) - 4 * + SUM ( - 50 + + 84 ) AS col1
----
-136

query I rowsort
SELECT DISTINCT 19 * 97 AS col1
----
1843

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT 7 + 74 + 9 * + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-3170
SELECT 7 + 74 + 9 * + COUNT ( * )
----
90

query I rowsort
SELECT ALL - 93 * + 57 AS col0
----
-5301

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT + 98 + ( + ( + 66 ) ) DIV 26
----
100

skipif mysql # not compatible
query I rowsort label-3172
SELECT + 98 + ( + ( + 66 ) ) / 26
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT + COUNT( * ) + + 53 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3173
SELECT + COUNT ( * ) + + 53 AS col0
----
54

query I rowsort
SELECT ALL 90 + - + 28 * - 56
----
1658

query I rowsort
SELECT DISTINCT - + ( + 44 ) AS col0
----
-44

query I rowsort
SELECT DISTINCT - 99 + 46 + - 64 * 4 AS col2
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT MIN( DISTINCT - 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3177
SELECT MIN ( DISTINCT - 39 ) AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3178
SELECT + - CASE + 34 WHEN - COUNT( * ) + - 40 THEN - 71 WHEN 86 * - NULLIF ( - NULLIF ( 6, CASE CAST( NULL AS DECIMAL ) WHEN + 97 + - 84 * 19 THEN 68 * 9 + 0 END ), 13 * CASE - 48 / - 79 WHEN 98 THEN + COUNT( * ) + + 98 END ) THEN 67 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT + - CASE + 34 WHEN - COUNT ( * ) + - 40 THEN - 71 WHEN 86 * - NULLIF ( - NULLIF ( 6, CASE CAST ( NULL AS REAL ) WHEN + 97 + - 84 * 19 THEN 68 * 9 + 0 END ), 13 * CASE - 48 / - 79 WHEN 98 THEN + COUNT ( * ) + + 98 END ) THEN 67 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3179
SELECT + MIN( ALL + 34 ) DIV SUM( 3 + 25 * - 54 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT + MIN ( ALL + 34 ) / SUM ( 3 + 25 * - 54 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3180
SELECT ALL - COUNT( ALL + + 59 ) + - - CASE - 12 WHEN + AVG ( + 32 ) + + 70 * - CASE 95 WHEN 68 THEN - 52 ELSE CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + SUM( ALL - 30 / - 56 ) + 54 END THEN 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - COUNT ( ALL + + 59 ) + - - CASE - 12 WHEN + AVG ( + 32 ) + + 70 * - CASE 95 WHEN 68 THEN - 52 ELSE CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + SUM ( ALL - 30 / - 56 ) + 54 END THEN 75 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3181
SELECT 43 DIV - 6 + + - 59
----
-66

skipif mysql # not compatible
query I rowsort label-3181
SELECT 43 / - 6 + + - 59
----
-66

query II rowsort
SELECT 89 AS col2, - 14 * - 80 * + 88
----
89
98560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3183
SELECT ( ( 22 ) ) + ( - COUNT( * ) ) DIV ( 41 )
----
22

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

query I rowsort
SELECT 35 * - 63 AS col0
----
-2205

query I rowsort
SELECT ALL - 52 * 99
----
-5148

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT COUNT( * ) * - 77 + 55 + COUNT( * ) * 42
----
20

skipif mysql # not compatible
query I rowsort label-3186
SELECT COUNT ( * ) * - 77 + 55 + COUNT ( * ) * 42
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT ALL - COALESCE ( - - 33, - 77 * MIN( + 39 ) + + 66, - 79 )
----
-33

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL - COALESCE ( - - 33, - 77 * MIN ( + 39 ) + + 66, - 79 )
----
-33

query I rowsort
SELECT DISTINCT - 34 * - 5 * 31 * + 90 AS col1
----
474300

query I rowsort
SELECT DISTINCT 37 - 87
----
-50

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

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

query I rowsort
SELECT ALL - NULLIF ( - + 53, AVG ( DISTINCT - 41 ) )
----
53

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

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

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

query I rowsort
SELECT 50 * 17 * - 16 AS col1
----
-13600

query I rowsort
SELECT 85 + - 8
----
77

query I rowsort
SELECT 75 * + + 43 * + 86 AS col1
----
277350

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

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL - MAX ( ALL 24 )
----
-24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT ( 41 ) DIV + 37
----
1

skipif mysql # not compatible
query I rowsort label-3199
SELECT ( 41 ) / + 37
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT + 29 + + 14 + 32 + - CAST( 17 - + 26 * 89 AS SIGNED ) * 4 AS col0
----
9263

skipif mysql # not compatible
query I rowsort label-3200
SELECT + 29 + + 14 + 32 + - CAST ( 17 - + 26 * 89 AS INTEGER ) * 4 AS col0
----
9263

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

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

query I rowsort
SELECT 60 * 41
----
2460

query I rowsort
SELECT DISTINCT - - 8 * - 93
----
-744

query I rowsort
SELECT ALL + - 46 + 69
----
23

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

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

query I rowsort
SELECT NULLIF ( 88, - 47 / 19 )
----
88

query I rowsort
SELECT DISTINCT + 72 + 86 col0
----
158

query II rowsort
SELECT DISTINCT 21 col2, + ( - - 94 )
----
21
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ALL CASE + 1 WHEN 12 THEN NULL WHEN - 30 THEN 44 / + 32 ELSE + 79 END + + 86 / CASE + ( - 88 ) * - COUNT( * ) WHEN - 20 * COALESCE ( 16, 49 ) THEN 90 - - 19 WHEN 69 THEN + 24 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL CASE + 1 WHEN 12 THEN NULL WHEN - 30 THEN 44 / + 32 ELSE + 79 END + + 86 / CASE + ( - 88 ) * - COUNT ( * ) WHEN - 20 * COALESCE ( 16, 49 ) THEN 90 - - 19 WHEN 69 THEN + 24 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3211
SELECT - - COUNT( * ), 3 - + 57 + - 46 AS col0
----
1
-100

skipif mysql # not compatible
query II rowsort label-3211
SELECT - - COUNT ( * ), 3 - + 57 + - 46 AS col0
----
1
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL + CASE + 50 WHEN - COUNT( * ) THEN - 43 * MAX( - 33 ) WHEN 85 * - 52 THEN COALESCE ( 76, 84 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL + CASE + 50 WHEN - COUNT ( * ) THEN - 43 * MAX ( - 33 ) WHEN 85 * - 52 THEN COALESCE ( 76, 84 ) END
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3214
SELECT DISTINCT + - 19, 43 DIV + 40 AS col1
----
-19
1

skipif mysql # not compatible
query II rowsort label-3214
SELECT DISTINCT + - 19, 43 / + 40 AS col1
----
-19
1

query I rowsort
SELECT + + 15 * - NULLIF ( - 65, 34 ) col2
----
975

query I rowsort
SELECT ALL 38 * - 14 * - ( + COALESCE ( 75, 4 * - 54 ) )
----
39900

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT 40 DIV - - 80 + + - 22 - 51 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-3217
SELECT 40 / - - 80 + + - 22 - 51 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT + 79 - - - 80 AS col0, COUNT( DISTINCT - 15 ) * COUNT( - 55 * + 99 ) col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-3218
SELECT + 79 - - - 80 AS col0, COUNT ( DISTINCT - 15 ) * COUNT ( - 55 * + 99 ) col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT CASE 63 WHEN 84 THEN + 62 WHEN COUNT( * ) THEN NULL WHEN - 11 + - 17 THEN 90 * 35 + + COUNT( * ) * 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT CASE 63 WHEN 84 THEN + 62 WHEN COUNT ( * ) THEN NULL WHEN - 11 + - 17 THEN 90 * 35 + + COUNT ( * ) * 74 END
----
NULL

query I rowsort
SELECT ALL + 51 * - - 96 * - + 2 - 34 - 28 AS col1
----
-9854

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT CASE COUNT( * ) WHEN - 9 * COUNT( * ) + - 13 THEN 21 ELSE + 29 END
----
29

skipif mysql # not compatible
query I rowsort label-3221
SELECT CASE COUNT ( * ) WHEN - 9 * COUNT ( * ) + - 13 THEN 21 ELSE + 29 END
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL COUNT( * ) * + 32 - 32
----
0

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL COUNT ( * ) * + 32 - 32
----
0

query I rowsort
SELECT + COALESCE ( - NULLIF ( + 66, - - 62 ), 41 + + 17 ) * 67
----
-4422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3224
SELECT 94 DIV + COUNT( * ) - - 52 DIV - 23 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3224
SELECT 94 / + COUNT ( * ) - - 52 / - 23 AS col0
----
92

query I rowsort
SELECT + 54 - 73 col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( ALL - 9 ) * - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( ALL - 9 ) * - - 39
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT ALL 24 DIV - + 29
----
0

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL 24 / - + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - MIN( 63 ) * 91 AS col0
----
-5733

skipif mysql # not compatible
query I rowsort label-3228
SELECT - MIN ( 63 ) * 91 AS col0
----
-5733

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT + COALESCE ( - COUNT( - 33 ), 68 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3229
SELECT + COALESCE ( - COUNT ( - 33 ), 68 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3230
SELECT COUNT( DISTINCT + 76 ), - SUM( + + 37 ) AS col0
----
1
-37

skipif mysql # not compatible
query II rowsort label-3230
SELECT COUNT ( DISTINCT + 76 ), - SUM ( + + 37 ) AS col0
----
1
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT DISTINCT COALESCE ( COUNT( * ), - ( 97 ), + 28 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT COALESCE ( COUNT ( * ), - ( 97 ), + 28 ) col1
----
1

query I rowsort
SELECT + + 37 + + - 32
----
5

query II rowsort
SELECT - + 31 * 78, - 62 AS col2
----
-2418
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3234
SELECT + CAST( + COUNT( * ) AS SIGNED ) + - 25 col1
----
-24

skipif mysql # not compatible
query I rowsort label-3234
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + - 25 col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3235
SELECT - 66 + - - 69 * 25 + 71 + + 50 * COUNT( * ) DIV 85
----
1730

skipif mysql # not compatible
query I rowsort label-3235
SELECT - 66 + - - 69 * 25 + 71 + + 50 * COUNT ( * ) / 85
----
1730

query I rowsort
SELECT DISTINCT + 23 + + 32 + + 96 * + - 33
----
-3113

onlyif mysql # DIV for integer division: 
query I rowsort label-3237
SELECT ALL + 60 DIV + 81 + - 10
----
-10

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + 60 / + 81 + - 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT - + CASE + AVG ( DISTINCT - 94 ) WHEN - 80 THEN + ( 20 ) * 3 - 42 WHEN COUNT( * ) + 88 * + 46 THEN + 50 - - CASE WHEN NOT - 24 IS NULL THEN - 18 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT - + CASE + AVG ( DISTINCT - 94 ) WHEN - 80 THEN + ( 20 ) * 3 - 42 WHEN COUNT ( * ) + 88 * + 46 THEN + 50 - - CASE WHEN NOT - 24 IS NULL THEN - 18 END END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3239
SELECT - ( + CAST( NULL AS DECIMAL ) ) + + 38 - + + COALESCE ( + 70, - 16 * - 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT - ( + CAST ( NULL AS REAL ) ) + + 38 - + + COALESCE ( + 70, - 16 * - 12 ) AS col2
----
NULL

query I rowsort
SELECT - - 4 + - 36 + - 39 AS col1
----
-71

query I rowsort
SELECT - + 35 * - ( + - 82 )
----
-2870

query I rowsort
SELECT + + 80 + + 3 + + + 73 * 38 * 76 AS col1
----
210907

query I rowsort
SELECT ALL - + 38 - + + 19
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT - 96 + - + ( MAX( + - 79 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-3244
SELECT - 96 + - + ( MAX ( + - 79 ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT + 47 * - - 39 + + COUNT( * ) * 32 * 71 + ( - 61 ) AS col0
----
4044

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + 47 * - - 39 + + COUNT ( * ) * 32 * 71 + ( - 61 ) AS col0
----
4044

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

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

query II rowsort
SELECT DISTINCT + 12, 74 + + 92 col0
----
12
166

query I rowsort
SELECT + 86 * + 88 + - 81 + - 69 + 38 * + 22 AS col0
----
8254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3249
SELECT - COUNT( * ) * - + ( + COALESCE ( - 62, SUM( DISTINCT + 14 ) DIV 48, - 14 ) ) * + COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3249
SELECT - COUNT ( * ) * - + ( + COALESCE ( - 62, SUM ( DISTINCT + 14 ) / 48, - 14 ) ) * + COUNT ( * ) AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3250
SELECT ( + CASE + 27 WHEN - + 40 THEN + ( AVG ( + 92 ) ) * - CAST( 62 * 99 AS SIGNED ) - + NULLIF ( - 67, - 68 * 68 ) / 36 WHEN 75 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT ( + CASE + 27 WHEN - + 40 THEN + ( AVG ( + 92 ) ) * - CAST ( 62 * 99 AS INTEGER ) - + NULLIF ( - 67, - 68 * 68 ) / 36 WHEN 75 THEN NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ( - COALESCE ( 18, - COUNT( * ) * + 64 ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3251
SELECT ( - COALESCE ( 18, - COUNT ( * ) * + 64 ) ) AS col2
----
-18

query I rowsort
SELECT ALL 1 * - 95 * 90 * 70
----
-598500

onlyif mysql # DIV for integer division: 
query I rowsort label-3253
SELECT ALL + 17 DIV + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL + 17 / + 64 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT ( COUNT( * ) ) * - 93 / - CAST( - - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) + - CASE - 5 WHEN + 16 THEN - COUNT( * ) / 41 + + 28 / - 71 ELSE SUM( ALL + 47 ) + 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT ( COUNT ( * ) ) * - 93 / - CAST ( - - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - CASE - 5 WHEN + 16 THEN - COUNT ( * ) / 41 + + 28 / - 71 ELSE SUM ( ALL + 47 ) + 19 END AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT ALL + NULLIF ( 5, CAST( - 72 AS SIGNED ) * + 53 + - 57 ) * - 1 + + 52 * - 96 AS col0
----
-4997

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL + NULLIF ( 5, CAST ( - 72 AS INTEGER ) * + 53 + - 57 ) * - 1 + + 52 * - 96 AS col0
----
-4997

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3257
SELECT ( - - CAST( + 19 AS SIGNED ) ), - 58 + 48 + - 24 * - CAST( + 9 * - 4 AS SIGNED ) col0
----
19
-874

skipif mysql # not compatible
query II rowsort label-3257
SELECT ( - - CAST ( + 19 AS INTEGER ) ), - 58 + 48 + - 24 * - CAST ( + 9 * - 4 AS INTEGER ) col0
----
19
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT CASE 50 WHEN + + 0 THEN NULL ELSE - MAX( DISTINCT + 59 ) END AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3258
SELECT CASE 50 WHEN + + 0 THEN NULL ELSE - MAX ( DISTINCT + 59 ) END AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT + 53 + - + COALESCE ( + COUNT( * ), - - 64 * + ( - 10 ) )
----
52

skipif mysql # not compatible
query I rowsort label-3259
SELECT + 53 + - + COALESCE ( + COUNT ( * ), - - 64 * + ( - 10 ) )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3260
SELECT + 23 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-3260
SELECT + 23 / + 30
----
0

query I rowsort
SELECT + 37 * 8
----
296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT NULLIF ( + CAST( - 40 AS SIGNED ), + 51 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3262
SELECT NULLIF ( + CAST ( - 40 AS INTEGER ), + 51 ) AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3263
SELECT ALL + - 90 * + COUNT( * ) + - CAST( 38 AS SIGNED ) * - + 38 + - COUNT( * ) AS col1
----
1353

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL + - 90 * + COUNT ( * ) + - CAST ( 38 AS INTEGER ) * - + 38 + - COUNT ( * ) AS col1
----
1353

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

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

query II rowsort
SELECT ALL + 21 * + 21 + 44 AS col0, - ( 86 ) AS col0
----
485
-86

query I rowsort
SELECT - NULLIF ( - 31, + + 73 ) col1
----
31

query I rowsort
SELECT ALL - - 78 + - + 80 AS col1
----
-2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3269
SELECT ALL - 70 * + - CAST( NULL AS SIGNED ) * - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - 70 * + - CAST ( NULL AS INTEGER ) * - 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT DISTINCT - COUNT( * ) + 19
----
18

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT - COUNT ( * ) + 19
----
18

query II rowsort
SELECT - 67, - 21 + + 16 + - + 7 + - 8 AS col0
----
-67
-20

query I rowsort
SELECT + 50 * + + 17 AS col1
----
850

query I rowsort
SELECT ALL - COALESCE ( - 20, - 55 + 19 ) - CASE 22 WHEN + 14 THEN NULL WHEN 72 * 97 THEN 48 - 64 * + 50 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT DISTINCT - 54 DIV - 20 col2
----
2

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT - 54 / - 20 col2
----
2

query I rowsort
SELECT ALL - + 98 - 45
----
-143

query I rowsort
SELECT - 16 * NULLIF ( + 84, 76 ) col2
----
-1344

query II rowsort
SELECT ALL - 61 AS col2, 47 * COALESCE ( - - 99, ( 9 ) ) AS col0
----
-61
4653

query I rowsort
SELECT 60 * 26
----
1560

onlyif mysql # DIV for integer division: 
query I rowsort label-3279
SELECT DISTINCT - 3 DIV + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT - 3 / + 44 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT 34 + MIN( + 60 ) + + 36
----
130

skipif mysql # not compatible
query I rowsort label-3280
SELECT 34 + MIN ( + 60 ) + + 36
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3281
SELECT 41 DIV + 80, CASE 61 WHEN - 3 - + CAST( NULL AS SIGNED ) THEN COUNT( * ) ELSE NULL END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3281
SELECT 41 / + 80, CASE 61 WHEN - 3 - + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) ELSE NULL END AS col2
----
0
NULL

query I rowsort
SELECT ALL + 30 * CASE - 90 WHEN + - 22 THEN NULL WHEN - - 26 + 25 + 11 THEN 24 * NULLIF ( 70, 69 / - ( - 5 ) ) + + 63 END AS col1
----
NULL

query I rowsort
SELECT 50 * + 82 AS col0
----
4100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3284
SELECT 18 AS col2, MAX( ALL + 11 ) - + + CAST( NULL AS SIGNED ) col1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-3284
SELECT 18 AS col2, MAX ( ALL + 11 ) - + + CAST ( NULL AS INTEGER ) col1
----
18
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3285
SELECT COALESCE ( + 18, COUNT( * ), - + CAST( 71 AS SIGNED ) ) DIV 89 - + COUNT( 74 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3285
SELECT COALESCE ( + 18, COUNT ( * ), - + CAST ( 71 AS INTEGER ) ) / 89 - + COUNT ( 74 ) AS col0
----
-1

query I rowsort
SELECT 69 + + 60 * + 17 * 0 AS col1
----
69

query I rowsort
SELECT ALL + 31 * + 50 AS col0
----
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT COUNT( DISTINCT 84 ) * - 18 * + 48 * 6 col1
----
-5184

skipif mysql # not compatible
query I rowsort label-3288
SELECT COUNT ( DISTINCT 84 ) * - 18 * + 48 * 6 col1
----
-5184

query II rowsort
SELECT 43, 66 AS col0
----
43
66

query I rowsort
SELECT ALL - 58 + - 78
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3291
SELECT 48, ( + + 78 ) + 56 + - - CAST( + + 27 AS SIGNED ) * - 66 col2
----
48
-1648

skipif mysql # not compatible
query II rowsort label-3291
SELECT 48, ( + + 78 ) + 56 + - - CAST ( + + 27 AS INTEGER ) * - 66 col2
----
48
-1648

query II rowsort
SELECT + 91 AS col0, 31 * + + 38 + - 18 + 75
----
91
1235

query I rowsort
SELECT 65 * + 32
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT COALESCE ( - + COUNT( * ), - 61 ) * 19
----
-19

skipif mysql # not compatible
query I rowsort label-3294
SELECT COALESCE ( - + COUNT ( * ), - 61 ) * 19
----
-19

query I rowsort
SELECT 81 - 12 * + 57 + - + 95 AS col0
----
-698

query I rowsort
SELECT 91 * 15 * - 42 AS col0
----
-57330

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3298
SELECT DISTINCT - - 9 * + - 66 * - 46 - - - CAST( NULL AS SIGNED ) * + + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT - - 9 * + - 66 * - 46 - - - CAST ( NULL AS INTEGER ) * + + 8 AS col2
----
NULL

query II rowsort
SELECT ALL - - 45 AS col2, 70 AS col0
----
45
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT - 51 * + 61 * - COUNT( * ) + SUM( - 73 )
----
3038

skipif mysql # not compatible
query I rowsort label-3300
SELECT - 51 * + 61 * - COUNT ( * ) + SUM ( - 73 )
----
3038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT - ( ( + COUNT( * ) ) ) DIV + 8 * 33
----
0

skipif mysql # not compatible
query I rowsort label-3301
SELECT - ( ( + COUNT ( * ) ) ) / + 8 * 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT + 37 * - 85 * + COUNT( * ) * 87 + - + 22 * - 68 + 32
----
-272087

skipif mysql # not compatible
query I rowsort label-3302
SELECT + 37 * - 85 * + COUNT ( * ) * 87 + - + 22 * - 68 + 32
----
-272087

query I rowsort
SELECT 86 + - 75 + - 96
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT - NULLIF ( COUNT( * ), + COUNT( 82 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT - NULLIF ( COUNT ( * ), + COUNT ( 82 ) )
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT CASE - COALESCE ( + 89, - 42 ) WHEN - 54 + 57 + ( 31 + + 84 ) / + 24 THEN NULL WHEN 1 THEN NULL WHEN 91 THEN NULL ELSE 33 END
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3308
SELECT + 64 + + - COUNT( ALL - 63 ) + - 45 + + 57 * - ( + CAST( 65 AS SIGNED ) )
----
-3687

skipif mysql # not compatible
query I rowsort label-3308
SELECT + 64 + + - COUNT ( ALL - 63 ) + - 45 + + 57 * - ( + CAST ( 65 AS INTEGER ) )
----
-3687

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT 7 / CAST( + CASE + 95 WHEN 94 THEN + COUNT( * ) END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT 7 / CAST ( + CASE + 95 WHEN 94 THEN + COUNT ( * ) END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 78 + - - 46 * 46
----
2194

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT ALL + ( - 16 ) AS col0, - COUNT( * )
----
-16
-1

skipif mysql # not compatible
query II rowsort label-3311
SELECT ALL + ( - 16 ) AS col0, - COUNT ( * )
----
-16
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3312
SELECT DISTINCT 85 AS col2, - 37 * COUNT( * )
----
85
-37

skipif mysql # not compatible
query II rowsort label-3312
SELECT DISTINCT 85 AS col2, - 37 * COUNT ( * )
----
85
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3313
SELECT 56 + + MAX( - 15 ) DIV + COUNT( * ) AS col1, MAX( DISTINCT 83 ) + 38 AS col1
----
41
121

skipif mysql # not compatible
query II rowsort label-3313
SELECT 56 + + MAX ( - 15 ) / + COUNT ( * ) AS col1, MAX ( DISTINCT 83 ) + 38 AS col1
----
41
121

onlyif mysql # aggregate syntax: 
query II rowsort label-3314
SELECT ALL + 43, + MAX( ALL + 55 ) * - SUM( + ( - - 40 ) ) * + ( SUM( ALL 7 ) ) + 5 AS col0
----
43
-15395

skipif mysql # not compatible
query II rowsort label-3314
SELECT ALL + 43, + MAX ( ALL + 55 ) * - SUM ( + ( - - 40 ) ) * + ( SUM ( ALL 7 ) ) + 5 AS col0
----
43
-15395

query I rowsort
SELECT + 53 * - 84 AS col1
----
-4452

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT 86 * - CASE WHEN NOT + 48 NOT IN ( + 33 * 33 * - + ( 61 ) * SUM( + 62 ) + 51 * + 14 + + 20 ) THEN + 66 + - 0 * + ( COUNT( * ) - + 24 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT 86 * - CASE WHEN NOT + 48 NOT IN ( + 33 * 33 * - + ( 61 ) * SUM ( + 62 ) + 51 * + 14 + + 20 ) THEN + 66 + - 0 * + ( COUNT ( * ) - + 24 ) END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT - 72 + - + COUNT ( * ) AS col0
----
-73

query I rowsort
SELECT 69 * - + 38
----
-2622

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

skipif mysql # not compatible
query I rowsort label-3319
SELECT 76 / - + COUNT ( * )
----
-76

query I rowsort
SELECT DISTINCT 8 * + 58 + + 49 + - 26
----
487

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT + CASE 50 WHEN COUNT( * ) THEN + + 63 * + 35 + - CASE 53 WHEN 15 THEN 30 + + 13 WHEN - 84 + 79 THEN NULL WHEN + 80 * + 98 THEN + COUNT( * ) END * - 46 WHEN + SUM( 45 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT + CASE 50 WHEN COUNT ( * ) THEN + + 63 * + 35 + - CASE 53 WHEN 15 THEN 30 + + 13 WHEN - 84 + 79 THEN NULL WHEN + 80 * + 98 THEN + COUNT ( * ) END * - 46 WHEN + SUM ( 45 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT COUNT( * ) * - COALESCE ( - NULLIF ( 67, + 18 ), 93 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3322
SELECT COUNT ( * ) * - COALESCE ( - NULLIF ( 67, + 18 ), 93 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT + 2 * + 15 + - 38 + - - COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3323
SELECT + 2 * + 15 + - 38 + - - COUNT ( * ) AS col0
----
-7

query I rowsort
SELECT 85 * 13 AS col1
----
1105

query I rowsort
SELECT 91 + - 92 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT 55 * + 22 - - + 6 * - MAX( + 48 ) AS col1
----
922

skipif mysql # not compatible
query I rowsort label-3326
SELECT 55 * + 22 - - + 6 * - MAX ( + 48 ) AS col1
----
922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT 0 + CAST( NULL AS SIGNED ) + ( + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT 0 + CAST ( NULL AS INTEGER ) + ( + 64 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL - 78 * + 6 + + SUM( ALL + + 82 )
----
-386

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL - 78 * + 6 + + SUM ( ALL + + 82 )
----
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL + + 4 * + 12 * + + 35 - + + 56 - + ( 63 ) * + 70 * COALESCE ( - COUNT( * ), 3 ) AS col0
----
6034

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL + + 4 * + 12 * + + 35 - + + 56 - + ( 63 ) * + 70 * COALESCE ( - COUNT ( * ), 3 ) AS col0
----
6034

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT - 27 * + COUNT( * ) + + COUNT( * ) - 65
----
-91

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT - 27 * + COUNT ( * ) + + COUNT ( * ) - 65
----
-91

query I rowsort
SELECT - - NULLIF ( + - 56, + 74 ) + - - 25
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT - 35 * - CAST( 85 AS SIGNED ) * + 34
----
101150

skipif mysql # not compatible
query I rowsort label-3332
SELECT - 35 * - CAST ( 85 AS INTEGER ) * + 34
----
101150

query I rowsort
SELECT DISTINCT - COALESCE ( - 35, + ( + - 86 ) ) * + 75
----
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT + COALESCE ( - 88, + 59 * + - 17 - - COUNT( * ), - 50 ) + - 62
----
-150

skipif mysql # not compatible
query I rowsort label-3334
SELECT + COALESCE ( - 88, + 59 * + - 17 - - COUNT ( * ), - 50 ) + - 62
----
-150

query I rowsort
SELECT DISTINCT - + 90 * - 90
----
8100

query I rowsort
SELECT + 89 * - 15 + - 50 AS col0
----
-1385

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3337
SELECT - + COUNT( * ) DIV ( - 25 ) col1, + 40
----
0
40

skipif mysql # not compatible
query II rowsort label-3337
SELECT - + COUNT ( * ) / ( - 25 ) col1, + 40
----
0
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3338
SELECT MAX( - 75 ), AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-3338
SELECT MAX ( - 75 ), AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
-75
NULL

query I rowsort
SELECT - - 71 * + - 51
----
-3621

onlyif mysql # aggregate syntax: 
query II rowsort label-3340
SELECT + NULLIF ( 43, + 7 ) * + COUNT( * ) AS col0, 89 + + 44
----
43
133

skipif mysql # not compatible
query II rowsort label-3340
SELECT + NULLIF ( 43, + 7 ) * + COUNT ( * ) AS col0, 89 + + 44
----
43
133

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT ALL 25 DIV - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL 25 / - 44 AS col1
----
0

query I rowsort
SELECT ALL 84 + 85
----
169

query I rowsort
SELECT + 7 * - - 96 * 3 * - - 94 AS col0
----
189504

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3345
SELECT ALL 89 + + 4 * + 6, COUNT( * ) DIV 60 * - 5 + 18 AS col1
----
113
18

skipif mysql # not compatible
query II rowsort label-3345
SELECT ALL 89 + + 4 * + 6, COUNT ( * ) / 60 * - 5 + 18 AS col1
----
113
18

query I rowsort
SELECT ALL 54 + - 9 AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT ALL - SUM( ALL - 64 ) + - + 66, 52 AS col0
----
-2
52

skipif mysql # not compatible
query II rowsort label-3347
SELECT ALL - SUM ( ALL - 64 ) + - + 66, 52 AS col0
----
-2
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT 83 + - - SUM( 24 ) - - 32 * COUNT( * ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT 83 + - - SUM ( 24 ) - - 32 * COUNT ( * ) AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT + 54 + COUNT( * ) * - 84 * + 98 AS col2
----
-8178

skipif mysql # not compatible
query I rowsort label-3349
SELECT + 54 + COUNT ( * ) * - 84 * + 98 AS col2
----
-8178

query I rowsort
SELECT + 12 * + 30
----
360

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3352
SELECT CAST( NULL AS SIGNED ) / - 48 * + 21 + + NULLIF ( + 69, - 42 ) + + + 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT CAST ( NULL AS INTEGER ) / - 48 * + 21 + + NULLIF ( + 69, - 42 ) + + + 95 col0
----
NULL

query II rowsort
SELECT ALL + 75 AS col1, + 66 AS col1
----
75
66

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

skipif mysql # not compatible
query I rowsort label-3354
SELECT ( + SUM ( 18 ) )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT ALL + 43 DIV - NULLIF ( - 24, - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL + 43 / - NULLIF ( - 24, - 80 )
----
1

query I rowsort
SELECT - - 37 * + + 10 + + 1 + - 51 * + 56
----
-2485

query I rowsort
SELECT ALL + 26 * + 34
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT DISTINCT + 37 * MIN( 6 ) - - 19 AS col2
----
241

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT + 37 * MIN ( 6 ) - - 19 AS col2
----
241

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

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

query I rowsort
SELECT + - 77 * - + ( 31 )
----
2387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT + - CAST( + 88 AS SIGNED ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3361
SELECT + - CAST ( + 88 AS INTEGER ) AS col2
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-3362
SELECT ALL + - 3 AS col2, 32 DIV - ( + 87 )
----
-3
0

skipif mysql # not compatible
query II rowsort label-3362
SELECT ALL + - 3 AS col2, 32 / - ( + 87 )
----
-3
0

query I rowsort
SELECT ALL 7 * - 52 AS col2
----
-364

query I rowsort
SELECT - + 19 - 12 + 25 * + - 34 * + 32 AS col2
----
-27231

query II rowsort
SELECT - 69, 4 AS col1
----
-69
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT DISTINCT + MIN( ALL 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT + MIN ( ALL 62 ) AS col2
----
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT + COUNT( * ) * NULLIF ( - - ( - + COUNT( * ) ), - 38 ) + + + 34 + + 92
----
125

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + COUNT ( * ) * NULLIF ( - - ( - + COUNT ( * ) ), - 38 ) + + + 34 + + 92
----
125

query I rowsort
SELECT + 23 * + 53 * 77
----
93863

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3371
SELECT - MAX( - CAST( NULL AS SIGNED ) ) + 68 * - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3371
SELECT - MAX ( - CAST ( NULL AS INTEGER ) ) + 68 * - + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL + 72 + - COUNT( ALL + 36 ) * 3 - - ( 18 )
----
87

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL + 72 + - COUNT ( ALL + 36 ) * 3 - - ( 18 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL 31 + 22 * 86 * + ( - COUNT( * ) ) - - + 81 AS col1
----
-1780

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL 31 + 22 * 86 * + ( - COUNT ( * ) ) - - + 81 AS col1
----
-1780

query I rowsort
SELECT + 36 + + 65 col0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT + 13 + 57 DIV 60 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3375
SELECT + 13 + 57 / 60 AS col1
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-3376
SELECT + 89 + + 70, + 23 DIV - 74 * + + 6 AS col1
----
159
0

skipif mysql # not compatible
query II rowsort label-3376
SELECT + 89 + + 70, + 23 / - 74 * + + 6 AS col1
----
159
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT + COUNT( * ) + + 99 + + 36
----
136

skipif mysql # not compatible
query I rowsort label-3377
SELECT + COUNT ( * ) + + 99 + + 36
----
136

query II rowsort
SELECT + 53 * - 55 AS col1, 56
----
-2915
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 81 * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 81 * + 49
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT 28 DIV 64 - 52
----
-52

skipif mysql # not compatible
query I rowsort label-3380
SELECT 28 / 64 - 52
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT DISTINCT 70 - - 33, + COUNT( * ) + - 40 AS col0
----
103
-39

skipif mysql # not compatible
query II rowsort label-3381
SELECT DISTINCT 70 - - 33, + COUNT ( * ) + - 40 AS col0
----
103
-39

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

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - 86 * + ( - - COUNT ( * ) ) AS col0
----
-86

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT DISTINCT + 53 * - 56 + - 42 * + 69 + - CAST( 55 AS SIGNED )
----
-5921

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT + 53 * - 56 + - 42 * + 69 + - CAST ( 55 AS INTEGER )
----
-5921

query I rowsort
SELECT 82 * - + 1 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT 96 * + - CASE - + ( - + 78 ) WHEN + 69 + - + 41 THEN NULL ELSE 15 * - + 49 * - + 40 + 12 * ( 57 * 3 + 20 ) END + 32 * + MIN( 40 )
----
-3041152

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT 96 * + - CASE - + ( - + 78 ) WHEN + 69 + - + 41 THEN NULL ELSE 15 * - + 49 * - + 40 + 12 * ( 57 * 3 + 20 ) END + 32 * + MIN ( 40 )
----
-3041152

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT ALL + COUNT( * ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT 41 * - 69
----
-2829

onlyif mysql # DIV for integer division: 
query I rowsort label-3390
SELECT 84 + - 52 DIV 38
----
83

skipif mysql # not compatible
query I rowsort label-3390
SELECT 84 + - 52 / 38
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3391
SELECT - 8 DIV 24 - 86 * 69 + + 54
----
-5880

skipif mysql # not compatible
query I rowsort label-3391
SELECT - 8 / 24 - 86 * 69 + + 54
----
-5880

query I rowsort
SELECT 64 * 24 * + - 50
----
-76800

query I rowsort
SELECT DISTINCT + 85 + - ( - + 38 )
----
123

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

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

query II rowsort
SELECT - 74, - 73 AS col2
----
-74
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3396
SELECT ALL + NULLIF ( + 12, - - CAST( NULL AS SIGNED ) ) - + SUM( ALL - 63 ) + + + 54 DIV - - COUNT( * ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + NULLIF ( + 12, - - CAST ( NULL AS INTEGER ) ) - + SUM ( ALL - 63 ) + + + 54 / - - COUNT ( * ) AS col1
----
129

query I rowsort
SELECT 85 - - - 74
----
11

query I rowsort
SELECT 94 - + 92 + + 64 col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT COUNT( * ) * + + 81 * + 96
----
7776

skipif mysql # not compatible
query I rowsort label-3399
SELECT COUNT ( * ) * + + 81 * + 96
----
7776

query I rowsort
SELECT DISTINCT + COALESCE ( + 57, + COALESCE ( - + 3, - - 84 ) ) * - - 22
----
1254

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

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

query II rowsort
SELECT 57 AS col0, 69 AS col2
----
57
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL - NULLIF ( 70, 69 + + 62 * NULLIF ( NULLIF ( - COUNT( + 54 ), + ( 7 ) / 2 ), + ( - NULLIF ( - 20, - 22 ) ) - - 5 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL - NULLIF ( 70, 69 + + 62 * NULLIF ( NULLIF ( - COUNT ( + 54 ), + ( 7 ) / 2 ), + ( - NULLIF ( - 20, - 22 ) ) - - 5 ) )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT + - COALESCE ( - 51, COUNT( * ) DIV - 48 * COUNT( DISTINCT + 71 ) )
----
51

skipif mysql # not compatible
query I rowsort label-3404
SELECT + - COALESCE ( - 51, COUNT ( * ) / - 48 * COUNT ( DISTINCT + 71 ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT 38 * + 45 + 5 * + 79 * 8 * + 68 * - COUNT( * ) AS col0
----
-213170

skipif mysql # not compatible
query I rowsort label-3405
SELECT 38 * + 45 + 5 * + 79 * 8 * + 68 * - COUNT ( * ) AS col0
----
-213170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3406
SELECT + 6 + - 27 - - CAST( 58 AS SIGNED ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3406
SELECT + 6 + - 27 - - CAST ( 58 AS INTEGER ) AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT 30 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-3407
SELECT 30 / + 58
----
0

query I rowsort
SELECT ALL 68 + 64
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3409
SELECT - 81 * CASE CAST( NULL AS SIGNED ) WHEN - 24 THEN + 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT - 81 * CASE CAST ( NULL AS INTEGER ) WHEN - 24 THEN + 98 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3410
SELECT DISTINCT + 81 + + 62 + - - 72 AS col0, + CASE + CAST( - ( + 14 ) AS SIGNED ) WHEN + + CAST( NULL AS DECIMAL ) THEN COUNT( * ) END AS col0
----
215
NULL

skipif mysql # not compatible
query II rowsort label-3410
SELECT DISTINCT + 81 + + 62 + - - 72 AS col0, + CASE + CAST ( - ( + 14 ) AS INTEGER ) WHEN + + CAST ( NULL AS REAL ) THEN COUNT ( * ) END AS col0
----
215
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - 0 / - 54 + + 46 - - 85 - + - 54 * - COUNT( * ) * - NULLIF ( - CASE 82 WHEN + 73 * - COUNT( * ) + - 36 * + COUNT( * ) THEN + 50 + + 88 * + 41 WHEN 7 / 55 THEN NULL END, 90 ) / 99 - - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT - 0 / - 54 + + 46 - - 85 - + - 54 * - COUNT ( * ) * - NULLIF ( - CASE 82 WHEN + 73 * - COUNT ( * ) + - 36 * + COUNT ( * ) THEN + 50 + + 88 * + 41 WHEN 7 / 55 THEN NULL END, 90 ) / 99 - - 50 AS col1
----
NULL

query I rowsort
SELECT 99 * + 11
----
1089

query I rowsort
SELECT ALL - 48 + - 13 + - 12 + + 89 col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3414
SELECT AVG ( - 78 ) - 50 + - 98 + - + MIN( + 19 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT AVG ( - 78 ) - 50 + - 98 + - + MIN ( + 19 ) * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 66, + 24 AS col0
----
66
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3416
SELECT ALL 14 + + CASE - 27 WHEN - 28 THEN + CAST( NULL AS SIGNED ) END AS col1, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3416
SELECT ALL 14 + + CASE - 27 WHEN - 28 THEN + CAST ( NULL AS INTEGER ) END AS col1, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL + 72 + + 75 col0
----
147

query I rowsort
SELECT 8 * ( 14 ) + + 65 AS col1
----
177

query I rowsort
SELECT 95 - 62
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT CASE + 53 WHEN - + 25 THEN - 33 END + - CAST( 79 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT CASE + 53 WHEN - + 25 THEN - 33 END + - CAST ( 79 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT - 49 * NULLIF ( - COUNT( * ), - COUNT( * ) * + + 71 ) - + - 73 * - 99
----
-7178

skipif mysql # not compatible
query I rowsort label-3421
SELECT - 49 * NULLIF ( - COUNT ( * ), - COUNT ( * ) * + + 71 ) - + - 73 * - 99
----
-7178

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT - SUM( - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-3422
SELECT - SUM ( - 76 )
----
76

query II rowsort
SELECT 78, + 73 col0
----
78
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT 85 + + CASE + - 99 WHEN + COUNT( * ) + - COUNT( - 43 ) THEN + 81 + - AVG ( - 91 ) ELSE NULL END + - 9 * 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT 85 + + CASE + - 99 WHEN + COUNT ( * ) + - COUNT ( - 43 ) THEN + 81 + - AVG ( - 91 ) ELSE NULL END + - 9 * 12 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3425
SELECT DISTINCT 24 DIV 4 col0
----
6

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT 24 / 4 col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL + ( - MIN( DISTINCT - 13 ) ) * + + 13 - + ( - CASE - 85 WHEN - CASE - 65 WHEN - + 52 THEN NULL WHEN + 64 THEN - 84 ELSE NULL END THEN 98 WHEN + COUNT( DISTINCT 1 ) THEN NULL END ) + ( 87 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + ( - MIN ( DISTINCT - 13 ) ) * + + 13 - + ( - CASE - 85 WHEN - CASE - 65 WHEN - + 52 THEN NULL WHEN + 64 THEN - 84 ELSE NULL END THEN 98 WHEN + COUNT ( DISTINCT 1 ) THEN NULL END ) + ( 87 ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3427
SELECT ALL COUNT( * ) AS col2, NULLIF ( + 78, + - 11 ) AS col2
----
1
78

skipif mysql # not compatible
query II rowsort label-3427
SELECT ALL COUNT ( * ) AS col2, NULLIF ( + 78, + - 11 ) AS col2
----
1
78

query I rowsort
SELECT ALL 59 * 39 col2
----
2301

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT - 71 DIV 17
----
-4

skipif mysql # not compatible
query I rowsort label-3429
SELECT - 71 / 17
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3430
SELECT - 30 + - 62 + - 44 * 67 DIV + 13 + + 35 * 65 AS col0
----
1957

skipif mysql # not compatible
query I rowsort label-3430
SELECT - 30 + - 62 + - 44 * 67 / + 13 + + 35 * 65 AS col0
----
1957

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL COUNT( - 42 )
----
1

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL COUNT ( - 42 )
----
1

query II rowsort
SELECT - 47 * - - 9, + 25 col1
----
-423
25

query I rowsort
SELECT ALL CASE 78 WHEN + 2 THEN 22 END * 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT - COALESCE ( + 30, - NULLIF ( + 79, + 54 ) + - + COUNT( * ), - - 85 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3434
SELECT - COALESCE ( + 30, - NULLIF ( + 79, + 54 ) + - + COUNT ( * ), - - 85 ) AS col0
----
-30

query I rowsort
SELECT - 23 + - 89 AS col0
----
-112

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3437
SELECT DISTINCT COUNT( * ) AS col2, 46 / + - 24 / CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3437
SELECT DISTINCT COUNT ( * ) AS col2, 46 / + - 24 / CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3438
SELECT + 11 * + + 59 * + - ( - - CAST( - 51 AS SIGNED ) ) * + + COUNT( ALL + - ( NULLIF ( + 22, - 93 ) ) ) * - - 16 AS col0
----
529584

skipif mysql # not compatible
query I rowsort label-3438
SELECT + 11 * + + 59 * + - ( - - CAST ( - 51 AS INTEGER ) ) * + + COUNT ( ALL + - ( NULLIF ( + 22, - 93 ) ) ) * - - 16 AS col0
----
529584

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT 8 AS col0, - 49 - + + 71 + + COUNT( * ) col0
----
8
-119

skipif mysql # not compatible
query II rowsort label-3440
SELECT 8 AS col0, - 49 - + + 71 + + COUNT ( * ) col0
----
8
-119

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT - COALESCE ( - - 12, CASE + 60 WHEN - + COUNT( * ) + + + AVG ( - + 43 ) + - 77 THEN NULL WHEN - MIN( - - NULLIF ( 54, - ( + 63 ) + - 81 / ( 82 * 50 ) ) ) THEN + 92 * COUNT( * ) + 96 ELSE + 5 END ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT - COALESCE ( - - 12, CASE + 60 WHEN - + COUNT ( * ) + + + AVG ( - + 43 ) + - 77 THEN NULL WHEN - MIN ( - - NULLIF ( 54, - ( + 63 ) + - 81 / ( 82 * 50 ) ) ) THEN + 92 * COUNT ( * ) + 96 ELSE + 5 END ) AS col0
----
-12

query I rowsort
SELECT - 99 * + 78 * 34 + 76 AS col1
----
-262472

query I rowsort
SELECT ALL - ( ( 63 ) ) + + 33 AS col0
----
-30

query II rowsort
SELECT ALL 64, 23 + - 75 AS col1
----
64
-52

query II rowsort
SELECT - 87 AS col0, - 18
----
-87
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3447
SELECT + - 57 + 64 DIV + 89
----
-57

skipif mysql # not compatible
query I rowsort label-3447
SELECT + - 57 + 64 / + 89
----
-57

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

query II rowsort
SELECT DISTINCT + 42, - 55 AS col2
----
42
-55

query I rowsort
SELECT ALL + + 8 * - - 97 + - 25 + 22
----
773

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT - 97 * - COUNT( * ) + + 72
----
169

skipif mysql # not compatible
query I rowsort label-3451
SELECT - 97 * - COUNT ( * ) + + 72
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT DISTINCT 26 * - - 48 - + 79 + + + 89 + + CASE + 9 WHEN + + 72 - - 34 * + MIN( ALL + - 24 ) THEN 45 * 77 WHEN 46 * + 64 THEN NULL ELSE - ( - SUM( + 50 ) ) DIV 10 + 44 END + 23 * 90 AS col1
----
3377

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT 26 * - - 48 - + 79 + + + 89 + + CASE + 9 WHEN + + 72 - - 34 * + MIN ( ALL + - 24 ) THEN 45 * 77 WHEN 46 * + 64 THEN NULL ELSE - ( - SUM ( + 50 ) ) / 10 + 44 END + 23 * 90 AS col1
----
3377

query I rowsort
SELECT + 84 * + - 31 + + 79
----
-2525

query II rowsort
SELECT DISTINCT + + ( 88 ) AS col1, + 18 * - - 4 AS col0
----
88
72

query I rowsort
SELECT - NULLIF ( + - 79, 76 + - 54 + 28 ) AS col2
----
79

query I rowsort
SELECT + 13 + + 90 * + - 63 AS col2
----
-5657

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL 89 * + - 10 - - MIN( 11 )
----
-879

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL 89 * + - 10 - - MIN ( 11 )
----
-879

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT + SUM( DISTINCT + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-3458
SELECT + SUM ( DISTINCT + 25 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3459
SELECT - 82 * + CASE - 87 WHEN + + COUNT( * ) * - 76 + - 57 * - - CASE CAST( NULL AS SIGNED ) WHEN 8 * 23 THEN - 80 END / - + ( - 13 ) + - 9 * + 35 THEN COUNT( * ) * AVG ( DISTINCT 78 ) WHEN ( - COUNT( * ) ) THEN NULL ELSE NULL END + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT - 82 * + CASE - 87 WHEN + + COUNT ( * ) * - 76 + - 57 * - - CASE CAST ( NULL AS INTEGER ) WHEN 8 * 23 THEN - 80 END / - + ( - 13 ) + - 9 * + 35 THEN COUNT ( * ) * AVG ( DISTINCT 78 ) WHEN ( - COUNT ( * ) ) THEN NULL ELSE NULL END + + 70
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3460
SELECT SUM ( + 23 )
----
23

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT 18 * + MIN( + 60 ) AS col2
----
1080

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT 18 * + MIN ( + 60 ) AS col2
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-3464
SELECT - ( MAX( DISTINCT 66 ) ), 49 * + 2 AS col0
----
-66
98

skipif mysql # not compatible
query II rowsort label-3464
SELECT - ( MAX ( DISTINCT 66 ) ), 49 * + 2 AS col0
----
-66
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT + SUM( DISTINCT 40 ) * - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-3465
SELECT + SUM ( DISTINCT 40 ) * - - COUNT ( * )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT + CAST( NULL AS SIGNED ) - CASE - 30 WHEN + COUNT( * ) THEN + + 67 - CASE + 59 WHEN + 91 THEN 97 ELSE + AVG ( + 4 ) END + + 76 * 0 WHEN - 10 THEN NULL ELSE COUNT( * ) * - 65 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT + CAST ( NULL AS INTEGER ) - CASE - 30 WHEN + COUNT ( * ) THEN + + 67 - CASE + 59 WHEN + 91 THEN 97 ELSE + AVG ( + 4 ) END + + 76 * 0 WHEN - 10 THEN NULL ELSE COUNT ( * ) * - 65 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT + COUNT( * ) + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-3467
SELECT + COUNT ( * ) + - 93
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT - 17 DIV - 7 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3468
SELECT - 17 / - 7 AS col1
----
2

query II rowsort
SELECT + 88 - 15 col2, 98 * + 66
----
73
6468

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

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

query I rowsort
SELECT DISTINCT ( 41 ) + + 23 * + 60 + + ( 91 ) * - 16
----
-35

query I rowsort
SELECT DISTINCT + 16 + + ( + - 55 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL + + SUM( - - 90 ) + 55 + 70
----
215

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + + SUM ( - - 90 ) + 55 + 70
----
215

query I rowsort
SELECT DISTINCT 85 + - 4 AS col0
----
81

query I rowsort
SELECT + - 8 + 57 * - - ( - 73 )
----
-4169

query I rowsort
SELECT - - 3 - + - ( 81 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL - - 29 + 22 * - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL - - 29 + 22 * - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL + 22 + - COUNT( * ) + - 19 + - 33 * + 6 - 48 AS col0
----
-244

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + 22 + - COUNT ( * ) + - 19 + - 33 * + 6 - 48 AS col0
----
-244

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

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

query I rowsort
SELECT DISTINCT - + NULLIF ( - ( + + ( - + 32 ) ), + + 73 ) * - 65 col2
----
2080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3481
SELECT ALL 41 DIV - COUNT( * ) - + MAX( - 70 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL 41 / - COUNT ( * ) - + MAX ( - 70 ) AS col2
----
29

query I rowsort
SELECT - COALESCE ( - 55, + 4 * - - 54 ) col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3483
SELECT + + ( + - 96 ) DIV MAX( + - 72 ) + + 9 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3483
SELECT + + ( + - 96 ) / MAX ( + - 72 ) + + 9 AS col2
----
10

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

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

query I rowsort
SELECT ALL + 9 * + 28
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT - COUNT( * ) - + + 34 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3486
SELECT - COUNT ( * ) - + + 34 AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3487
SELECT + 4 AS col2, - 32 * + COALESCE ( - + 50, - 48 * 58 * - 46 ) + + - CASE - CAST( NULL AS SIGNED ) WHEN - 92 * - NULLIF ( + + 10, - 11 ) THEN NULL ELSE 19 + 73 * 56 END * 11 AS col0
----
4
-43577

skipif mysql # not compatible
query II rowsort label-3487
SELECT + 4 AS col2, - 32 * + COALESCE ( - + 50, - 48 * 58 * - 46 ) + + - CASE - CAST ( NULL AS INTEGER ) WHEN - 92 * - NULLIF ( + + 10, - 11 ) THEN NULL ELSE 19 + 73 * 56 END * 11 AS col0
----
4
-43577

query I rowsort
SELECT - 2 - + 83
----
-85

query I rowsort
SELECT ( - 74 ) col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT + COUNT( * ) * + COUNT( * ) * - 34 + 40 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3490
SELECT + COUNT ( * ) * + COUNT ( * ) * - 34 + 40 AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3491
SELECT + 16, - CASE WHEN MIN( + 73 ) NOT BETWEEN - COUNT( * ) + - - 13 - COUNT( * ) AND ( - + ( - + 77 ) DIV 99 + + 8 ) THEN 80 WHEN ( NULL ) IS NULL THEN NULL ELSE + 73 + - 47 END DIV 94 AS col2
----
16
0

skipif mysql # not compatible
query II rowsort label-3491
SELECT + 16, - CASE WHEN MIN ( + 73 ) NOT BETWEEN - COUNT ( * ) + - - 13 - COUNT ( * ) AND ( - + ( - + 77 ) / 99 + + 8 ) THEN 80 WHEN ( NULL ) IS NULL THEN NULL ELSE + 73 + - 47 END / 94 AS col2
----
16
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3492
SELECT ALL - 75 AS col0, 47 DIV 22 * + 62 + 26 * - 22 AS col1
----
-75
-448

skipif mysql # not compatible
query II rowsort label-3492
SELECT ALL - 75 AS col0, 47 / 22 * + 62 + 26 * - 22 AS col1
----
-75
-448

query I rowsort
SELECT 10 * + + 72
----
720

onlyif mysql # aggregate syntax: 
query II rowsort label-3494
SELECT COUNT( * ) * ( - 30 ) * + 54, + 57 AS col1
----
-1620
57

skipif mysql # not compatible
query II rowsort label-3494
SELECT COUNT ( * ) * ( - 30 ) * + 54, + 57 AS col1
----
-1620
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3495
SELECT 83 * - 45 + MIN( ALL - - 21 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT 83 * - 45 + MIN ( ALL - - 21 ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 29 - - + ( + 62 )
----
91

query I rowsort
SELECT 3 + + 30
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT - 2 * + + MAX( DISTINCT - 34 ) + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3498
SELECT - 2 * + + MAX ( DISTINCT - 34 ) + COUNT ( * ) AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3499
SELECT DISTINCT 65 * + + CAST( NULL AS SIGNED ) * 86 / - 68 * + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT 65 * + + CAST ( NULL AS INTEGER ) * 86 / - 68 * + 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT 48 * - - CASE - 98 WHEN COUNT( ALL - 41 ) THEN + NULLIF ( NULLIF ( - 89, 74 / - 78 ), - - COUNT( * ) * - 4 * - 7 ) + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT 48 * - - CASE - 98 WHEN COUNT ( ALL - 41 ) THEN + NULLIF ( NULLIF ( - 89, 74 / - 78 ), - - COUNT ( * ) * - 4 * - 7 ) + - COUNT ( * ) END
----
NULL

query II rowsort
SELECT - 40 AS col1, 62
----
-40
62

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

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

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

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

query I rowsort
SELECT ALL 52 + - 7 * + 56
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL - COUNT( - - 66 ) * 69 + + ( + 93 ) * - 36 col1
----
-3417

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - COUNT ( - - 66 ) * 69 + + ( + 93 ) * - 36 col1
----
-3417

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

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT COUNT ( * ) / + - 90 + + - 54 AS col0
----
-54

query I rowsort
SELECT - COALESCE ( + 84, + + 65, - 56 ) + - ( - 10 ) * + + ( - - 6 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT CAST( - 84 AS SIGNED ) * - 4 + - 75
----
261

skipif mysql # not compatible
query I rowsort label-3508
SELECT CAST ( - 84 AS INTEGER ) * - 4 + - 75
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT + COUNT( * ) + - + 18 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3509
SELECT + COUNT ( * ) + - + 18 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3510
SELECT - 33 AS col2, ( + NULLIF ( + - 79, - 33 + COUNT( * ) + - - COUNT( * ) ) )
----
-33
-79

skipif mysql # not compatible
query II rowsort label-3510
SELECT - 33 AS col2, ( + NULLIF ( + - 79, - 33 + COUNT ( * ) + - - COUNT ( * ) ) )
----
-33
-79

query I rowsort
SELECT 74 + - 21 AS col1
----
53

query I rowsort
SELECT - 75 * - NULLIF ( 13, - + 85 ) * - 58
----
-56550

query I rowsort
SELECT ALL - 60 * 29
----
-1740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT + 84 + + 7 + - + CAST( NULL AS SIGNED ) / + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT + 84 + + 7 + - + CAST ( NULL AS INTEGER ) / + 7
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 45, + 0 ) - + CASE - 83 WHEN 27 THEN 74 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3517
SELECT ALL - 69 - ( COUNT( * ) ) AS col0, + 58 * + ( - ( - CASE + 55 WHEN - 21 THEN - 80 END ) )
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-3517
SELECT ALL - 69 - ( COUNT ( * ) ) AS col0, + 58 * + ( - ( - CASE + 55 WHEN - 21 THEN - 80 END ) )
----
-70
NULL

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

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL ( + CAST ( - 42 AS INTEGER ) ) AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3519
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - NULLIF ( - COUNT( * ), - + 95 * - 18 * + 6 ) + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - NULLIF ( - COUNT ( * ), - + 95 * - 18 * + 6 ) + - 64
----
NULL

query I rowsort
SELECT ALL 3 - + 87 AS col0
----
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT + 13 * + 55 + + 88 + + 3 + COUNT( * )
----
807

skipif mysql # not compatible
query I rowsort label-3522
SELECT + 13 * + 55 + + 88 + + 3 + COUNT ( * )
----
807

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

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

query I rowsort
SELECT - 74 * - 86 - - 48 AS col1
----
6412

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT 94 + - 19, - MAX( 32 ) AS col1
----
75
-32

skipif mysql # not compatible
query II rowsort label-3525
SELECT 94 + - 19, - MAX ( 32 ) AS col1
----
75
-32

query I rowsort
SELECT 4 * + 18
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3527
SELECT 23 DIV - 75 * + - 61 col0
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT 23 / - 75 * + - 61 col0
----
0

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

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

query I rowsort
SELECT DISTINCT - ( 1 ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3530
SELECT DISTINCT - 6 + + ( 12 ) DIV 13 + + 3 + 41 DIV ( + + 48 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - 6 + + ( 12 ) / 13 + + 3 + 41 / ( + + 48 ) AS col2
----
-3

query I rowsort
SELECT 19 * - + 0 AS col2
----
0

query I rowsort
SELECT ALL + CASE + + 54 WHEN 92 THEN + 24 END * - 44 + + 36 / - - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL - CASE - COUNT( * ) WHEN - 52 * + 4 THEN + MAX( - 25 ) * ( - 40 ) + + - 1 + - 48 - 49 WHEN - 76 THEN NULL END + + 13 + - - NULLIF ( - 6, 94 ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL - CASE - COUNT ( * ) WHEN - 52 * + 4 THEN + MAX ( - 25 ) * ( - 40 ) + + - 1 + - 48 - 49 WHEN - 76 THEN NULL END + + 13 + - - NULLIF ( - 6, 94 ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 33 + + 29
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3535
SELECT DISTINCT - ( - - COALESCE ( 92, 60 ) ) + - CASE - + 10 WHEN + + CASE - 23 WHEN - COUNT( * ) THEN NULL WHEN - 61 THEN + - 24 * 3 + + + CAST( + 98 AS SIGNED ) + 58 WHEN 11 THEN NULL ELSE NULL END THEN COUNT( * ) ELSE 59 * - 79 END AS col1
----
4569

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT - ( - - COALESCE ( 92, 60 ) ) + - CASE - + 10 WHEN + + CASE - 23 WHEN - COUNT ( * ) THEN NULL WHEN - 61 THEN + - 24 * 3 + + + CAST ( + 98 AS INTEGER ) + 58 WHEN 11 THEN NULL ELSE NULL END THEN COUNT ( * ) ELSE 59 * - 79 END AS col1
----
4569

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL 52 + 95 + + 32 - + COUNT( DISTINCT + 53 ) col2
----
178

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL 52 + 95 + + 32 - + COUNT ( DISTINCT + 53 ) col2
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3537
SELECT ALL - 88 + + 2 DIV + COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL - 88 + + 2 / + COUNT ( * ) AS col0
----
-86

query I rowsort
SELECT DISTINCT + ( - 30 ) + + 26
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT - 23 + + ( - + 75 ) * + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 23 + + ( - + 75 ) * + - COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT NULLIF ( 43, - + 7 ) + - - 96 - - 73 + 88 * + MIN( DISTINCT + - 32 ) AS col2
----
-2604

skipif mysql # not compatible
query I rowsort label-3540
SELECT NULLIF ( 43, - + 7 ) + - - 96 - - 73 + 88 * + MIN ( DISTINCT + - 32 ) AS col2
----
-2604

query I rowsort
SELECT - 6 * + 5 * + 96 * - 66 + ( - 62 ) + ( CASE - 0 WHEN + + 43 * - 74 THEN NULL WHEN 55 THEN - ( + 21 ) END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3542
SELECT + ( + + 37 ) - - 28 + - 12 + 56 * + 92 + MIN( DISTINCT - ( - CAST( NULL AS SIGNED ) ) ) AS col2, 22 * 79
----
NULL
1738

skipif mysql # not compatible
query II rowsort label-3542
SELECT + ( + + 37 ) - - 28 + - 12 + 56 * + 92 + MIN ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) AS col2, 22 * 79
----
NULL
1738

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3543
SELECT DISTINCT - 31 * + 3 AS col0, - 65 DIV - + NULLIF ( + ( + CAST( - + 96 AS SIGNED ) ), + + NULLIF ( - + 24, NULLIF ( - - 24, + + 71 + + - 30 ) ) ) * 90
----
-93
0

skipif mysql # not compatible
query II rowsort label-3543
SELECT DISTINCT - 31 * + 3 AS col0, - 65 / - + NULLIF ( + ( + CAST ( - + 96 AS INTEGER ) ), + + NULLIF ( - + 24, NULLIF ( - - 24, + + 71 + + - 30 ) ) ) * 90
----
-93
0

query II rowsort
SELECT + 73 - - 62 AS col2, + 48 AS col0
----
135
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL + 20 - - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL + 20 - - COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT CASE - + COALESCE ( - - COUNT( * ), - 84, + 18 * + 98 * - 95 + 51 ) WHEN - 99 THEN SUM( + - 31 ) / + - 75 / 35 - - - SUM( + 2 ) ELSE - 99 * - 2 + CASE WHEN NULL IS NULL THEN - ( + 70 ) END END AS col1
----
128

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT CASE - + COALESCE ( - - COUNT ( * ), - 84, + 18 * + 98 * - 95 + 51 ) WHEN - 99 THEN SUM ( + - 31 ) / + - 75 / 35 - - - SUM ( + 2 ) ELSE - 99 * - 2 + CASE WHEN NULL IS NULL THEN - ( + 70 ) END END AS col1
----
128

query I rowsort
SELECT ALL COALESCE ( 6, 44 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - MAX( + + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-3548
SELECT - MAX ( + + 71 )
----
-71

query II rowsort
SELECT - 22 - + + ( 93 ) - - 50 AS col1, 27 AS col1
----
-65
27

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3550
SELECT + 75 * - - CAST( NULL AS DECIMAL ) * 4 + + 51 AS col2, 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3550
SELECT + 75 * - - CAST ( NULL AS REAL ) * 4 + + 51 AS col2, 90
----
NULL
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3551
SELECT ( + 53 ) * - + 22 - + + 78, COUNT( * ) AS col2
----
-1244
1

skipif mysql # not compatible
query II rowsort label-3551
SELECT ( + 53 ) * - + 22 - + + 78, COUNT ( * ) AS col2
----
-1244
1

query I rowsort
SELECT + 55 * 40
----
2200

query I rowsort
SELECT ALL 60 * - 94
----
-5640

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

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

query I rowsort
SELECT + 31 * - 30 AS col1
----
-930

query I rowsort
SELECT ALL 20 * - 47 + - 99
----
-1039

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

query I rowsort
SELECT - 1 * - 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + 12 - - 94 * - - COUNT( * ) * - 13
----
-1210

skipif mysql # not compatible
query I rowsort label-3559
SELECT + 12 - - 94 * - - COUNT ( * ) * - 13
----
-1210

query I rowsort
SELECT ALL + 65 * 6 + 80
----
470

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT + 89 + + 54 DIV - 32 - 73
----
15

skipif mysql # not compatible
query I rowsort label-3561
SELECT + 89 + + 54 / - 32 - 73
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3562
SELECT ALL + 55 AS col2, + COUNT( * ) - 20
----
55
-19

skipif mysql # not compatible
query II rowsort label-3562
SELECT ALL + 55 AS col2, + COUNT ( * ) - 20
----
55
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3563
SELECT - 94 * CAST( + 97 AS SIGNED ) + - 42 + + + 72 AS col2, - MIN( ALL - - 65 )
----
-9088
-65

skipif mysql # not compatible
query II rowsort label-3563
SELECT - 94 * CAST ( + 97 AS INTEGER ) + - 42 + + + 72 AS col2, - MIN ( ALL - - 65 )
----
-9088
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL + COALESCE ( CASE + + MIN( - 77 ) WHEN + 25 * + SUM( ALL 53 ) THEN - - 82 * COUNT( * ) * + - 72 WHEN 54 - 60 THEN NULL END, + 82 * 58 ) AS col1
----
4756

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL + COALESCE ( CASE + + MIN ( - 77 ) WHEN + 25 * + SUM ( ALL 53 ) THEN - - 82 * COUNT ( * ) * + - 72 WHEN 54 - 60 THEN NULL END, + 82 * 58 ) AS col1
----
4756

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

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

query I rowsort
SELECT DISTINCT + 29 * - 50 * 65 AS col0
----
-94250

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT DISTINCT + 55 * COUNT( * ) + + COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT + 55 * COUNT ( * ) + + COUNT ( * ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3569
SELECT ALL CAST( NULL AS SIGNED ) * + + MAX( DISTINCT + 43 ) AS col0, - ( 42 )
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-3569
SELECT ALL CAST ( NULL AS INTEGER ) * + + MAX ( DISTINCT + 43 ) AS col0, - ( 42 )
----
NULL
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-3570
SELECT - COUNT( * ) - - 66 + + - 9 AS col0, + 73
----
56
73

skipif mysql # not compatible
query II rowsort label-3570
SELECT - COUNT ( * ) - - 66 + + - 9 AS col0, + 73
----
56
73

query I rowsort
SELECT - 55 * 4 + + 39 * - 1 AS col1
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - + COUNT( * ) * + CASE + 0 WHEN - 34 - + 17 THEN 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT - + COUNT ( * ) * + CASE + 0 WHEN - 34 - + 17 THEN 47 END
----
NULL

query I rowsort
SELECT - + 99 * - 91
----
9009

query I rowsort
SELECT - - 30 + 15
----
45

query I rowsort
SELECT DISTINCT + 66 * - 6 * + ( + ( + 9 ) )
----
-3564

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3576
SELECT ALL - CAST( NULL AS SIGNED ) DIV + 21 - + 92 AS col1, + 0 * + 30 DIV 92
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3576
SELECT ALL - CAST ( NULL AS INTEGER ) / + 21 - + 92 AS col1, + 0 * + 30 / 92
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT - 66 * CAST( 82 AS SIGNED )
----
-5412

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 66 * CAST ( 82 AS INTEGER )
----
-5412

query I rowsort
SELECT - - 80 + - 26
----
54

query I rowsort
SELECT - - 78 + + - 57 + 95 + + 22 - + 95
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3580
SELECT - + 72 * - CASE + 49 WHEN + + 2 + - 12 - + 95 THEN NULL ELSE + - CAST( + 98 AS SIGNED ) END + + 98 * - - 11
----
-5978

skipif mysql # not compatible
query I rowsort label-3580
SELECT - + 72 * - CASE + 49 WHEN + + 2 + - 12 - + 95 THEN NULL ELSE + - CAST ( + 98 AS INTEGER ) END + + 98 * - - 11
----
-5978

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

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

query I rowsort
SELECT - + 3 * - - 14 * + 13 - - 93
----
-453

query I rowsort
SELECT + - 39 + 95 + - 58 col0
----
-2

query II rowsort
SELECT + 41 AS col2, + 51 col1
----
41
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3585
SELECT - + NULLIF ( + 43, 54 * COUNT( * ) - 17 ), - 97 AS col1
----
-43
-97

skipif mysql # not compatible
query II rowsort label-3585
SELECT - + NULLIF ( + 43, 54 * COUNT ( * ) - 17 ), - 97 AS col1
----
-43
-97

query I rowsort
SELECT - 68 + 1 + + 44
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + CASE - COUNT( * ) WHEN 71 THEN NULL WHEN 81 THEN MAX( + 23 ) ELSE 25 END AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3587
SELECT + CASE - COUNT ( * ) WHEN 71 THEN NULL WHEN 81 THEN MAX ( + 23 ) ELSE 25 END AS col1
----
25

query II rowsort
SELECT ALL 64 AS col2, - 8 - 27 * + ( - 56 )
----
64
1504

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL + CASE - + 24 WHEN + 83 * MIN( COALESCE ( + 73, - + 34 ) ) THEN + - 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL + CASE - + 24 WHEN + 83 * MIN ( COALESCE ( + 73, - + 34 ) ) THEN + - 99 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3590
SELECT CAST( NULL AS DECIMAL ), 18 * + - 16 AS col2
----
NULL
-288

skipif mysql # not compatible
query II rowsort label-3590
SELECT CAST ( NULL AS REAL ), 18 * + - 16 AS col2
----
NULL
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-3591
SELECT + 25 + COUNT( DISTINCT - 66 ) - + + 15 * + ( - 71 ) + + 78 + 30 + + + COUNT( * ) AS col2, + 93 - + + 44 col1
----
1200
49

skipif mysql # not compatible
query II rowsort label-3591
SELECT + 25 + COUNT ( DISTINCT - 66 ) - + + 15 * + ( - 71 ) + + 78 + 30 + + + COUNT ( * ) AS col2, + 93 - + + 44 col1
----
1200
49

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3593
SELECT CAST( NULL AS SIGNED ) AS col2, 74 * + - 26 * - + 34
----
NULL
65416

skipif mysql # not compatible
query II rowsort label-3593
SELECT CAST ( NULL AS INTEGER ) AS col2, 74 * + - 26 * - + 34
----
NULL
65416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3594
SELECT ALL + 21 DIV - - 87 + + + ( - COUNT( * ) ) * + 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + 21 / - - 87 + + + ( - COUNT ( * ) ) * + 41 AS col1
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3595
SELECT - NULLIF ( 29, + + 30 * - - 52 * + NULLIF ( - 31, COALESCE ( 59, 11 ) + + COUNT( * ) + 82 ) - + ( - + COUNT( * ) ) - - 80 ) DIV ( + 33 ) + 82
----
82

skipif mysql # not compatible
query I rowsort label-3595
SELECT - NULLIF ( 29, + + 30 * - - 52 * + NULLIF ( - 31, COALESCE ( 59, 11 ) + + COUNT ( * ) + 82 ) - + ( - + COUNT ( * ) ) - - 80 ) / ( + 33 ) + 82
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT ALL + 44 / + 13 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL + 44 / + 13 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 58 col1, - 28
----
58
-28

query I rowsort
SELECT ALL 35 * - 14 * + 81 AS col0
----
-39690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT DISTINCT - 61 * + + 89 * CAST( NULL AS SIGNED ) * 1 + - 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT - 61 * + + 89 * CAST ( NULL AS INTEGER ) * 1 + - 75 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT ALL CAST( 75 AS SIGNED ) * + 62 AS col2
----
4650

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL CAST ( 75 AS INTEGER ) * + 62 AS col2
----
4650

query I rowsort
SELECT + ( - 24 ) + - 69 col2
----
-93

query II rowsort
SELECT DISTINCT + 2 col2, + 37
----
2
37

query I rowsort
SELECT NULLIF ( + ( + 38 ), + + 16 * 30 + - COALESCE ( 97, + - 99 ) ) AS col1
----
38

query II rowsort
SELECT ALL + 70 AS col0, + 98
----
70
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT + 28 * - + 48 + + 23 + + 2 * - 99 DIV - + 88
----
-1319

skipif mysql # not compatible
query I rowsort label-3605
SELECT + 28 * - + 48 + + 23 + + 2 * - 99 / - + 88
----
-1319

query I rowsort
SELECT ALL 97 * - 35 * + 24 AS col0
----
-81480

query II rowsort
SELECT DISTINCT + + 2 AS col2, - 70 * + 73 * + NULLIF ( 84, + + ( 80 ) + + 58 * - 22 / - + 6 )
----
2
-429240

query II rowsort
SELECT DISTINCT + 88, + COALESCE ( COALESCE ( 43, - 62 * - + ( - NULLIF ( - 84, - + 76 + 93 ) ) ), - + 46 + + 34, - + 3 ) * + 65 + + 58 AS col0
----
88
2853

query II rowsort
SELECT DISTINCT + 65, 28 AS col1
----
65
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3610
SELECT - ( - CASE ( 84 ) WHEN COALESCE ( 33, + 92 ) + 20 + + - 85 * + 56 * + - COUNT( * ) * COUNT( + 20 ) * 49 * + + 84 THEN - 56 * - 48 WHEN 57 + CAST( + 18 AS SIGNED ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT - ( - CASE ( 84 ) WHEN COALESCE ( 33, + 92 ) + 20 + + - 85 * + 56 * + - COUNT ( * ) * COUNT ( + 20 ) * 49 * + + 84 THEN - 56 * - 48 WHEN 57 + CAST ( + 18 AS INTEGER ) THEN NULL END )
----
NULL

query I rowsort
SELECT DISTINCT - 54 * + - 49 * + - 82 * - 25 + + - NULLIF ( 12, - - 86 )
----
5424288

query I rowsort
SELECT + - 48 + + 87
----
39

query I rowsort
SELECT + 30 * 54
----
1620

query I rowsort
SELECT + 11 * - - 15 + + 93
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL COUNT( * ) * - 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL COUNT ( * ) * - 89 AS col0
----
-89

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

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

query I rowsort
SELECT ALL + 85 + + NULLIF ( + 44, + 48 ) AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL - 5 + - MAX( + + 6 )
----
-11

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - 5 + - MAX ( + + 6 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT 94 * 26 * COUNT( * )
----
2444

skipif mysql # not compatible
query I rowsort label-3619
SELECT 94 * 26 * COUNT ( * )
----
2444

query I rowsort
SELECT 29 * 71 AS col0
----
2059

query II rowsort
SELECT 33 - + 36 * + - 17 * + 39 * + - 36 + - + 25 + - + 78 AS col2, - 9
----
-859318
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3622
SELECT 39 DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3622
SELECT 39 / 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL + 19 + + + CASE - 11 WHEN - - 48 * 80 - 80 * - 1 * + 97 THEN + COUNT( * ) * 10 + - 86 * + MIN( 36 ) / - ( 84 ) + + 40 * - 14 WHEN + SUM( + 70 ) * + 33 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + 19 + + + CASE - 11 WHEN - - 48 * 80 - 80 * - 1 * + 97 THEN + COUNT ( * ) * 10 + - 86 * + MIN ( 36 ) / - ( 84 ) + + 40 * - 14 WHEN + SUM ( + 70 ) * + 33 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3624
SELECT ALL - CASE + + 92 WHEN - + CAST( NULL AS DECIMAL ) + SUM( 74 ) * - - 41 + 69 * + 92 * 53 THEN + MIN( DISTINCT 36 ) + - + COUNT( * ) END + - + 96 + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - CASE + + 92 WHEN - + CAST ( NULL AS REAL ) + SUM ( 74 ) * - - 41 + 69 * + 92 * 53 THEN + MIN ( DISTINCT 36 ) + - + COUNT ( * ) END + - + 96 + - 77
----
NULL

query I rowsort
SELECT DISTINCT - 47 * - 27
----
1269

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL - SUM( 14 ) * - 76 col2
----
1064

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - SUM ( 14 ) * - 76 col2
----
1064

query I rowsort
SELECT DISTINCT + 2 - + 40 + 13 * - 5
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT - 86 * - ( + COUNT( 74 ) ) + - 98 * + - CASE AVG ( + ( 3 ) ) WHEN - SUM( ALL + 39 ) * - ( ( + 93 ) ) + + - 97 - - MIN( - 82 ) THEN + 97 * 82 WHEN + 1 / 25 THEN - 54 + - 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT - 86 * - ( + COUNT ( 74 ) ) + - 98 * + - CASE AVG ( + ( 3 ) ) WHEN - SUM ( ALL + 39 ) * - ( ( + 93 ) ) + + - 97 - - MIN ( - 82 ) THEN + 97 * 82 WHEN + 1 / 25 THEN - 54 + - 83 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT 28 + - + 57 + - + 67 + + 78 DIV + ( + 31 )
----
-94

skipif mysql # not compatible
query I rowsort label-3629
SELECT 28 + - + 57 + - + 67 + + 78 / + ( + 31 )
----
-94

query I rowsort
SELECT 35 * 88 * - 18 AS col1
----
-55440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3631
SELECT COUNT( * ) + + - CASE + 61 WHEN + - ( 62 ) + + 54 + COALESCE ( + 71, COUNT( * ) / - - 47 * - - 68 * CAST( - 70 AS SIGNED ) / + AVG ( ALL + 19 ) * + 58 + + 44 + CASE + NULLIF ( 77, + 25 ) WHEN - 55 THEN ( 2 ) + + 7 / + 29 END - - 10, 86, CAST( NULL AS SIGNED ) ) THEN 43 / - 61 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT COUNT ( * ) + + - CASE + 61 WHEN + - ( 62 ) + + 54 + COALESCE ( + 71, COUNT ( * ) / - - 47 * - - 68 * CAST ( - 70 AS INTEGER ) / + AVG ( ALL + 19 ) * + 58 + + 44 + CASE + NULLIF ( 77, + 25 ) WHEN - 55 THEN ( 2 ) + + 7 / + 29 END - - 10, 86, CAST ( NULL AS INTEGER ) ) THEN 43 / - 61 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3632
SELECT 47 * + CAST( NULL AS SIGNED ), 62 * - COUNT( * ) AS col0
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-3632
SELECT 47 * + CAST ( NULL AS INTEGER ), 62 * - COUNT ( * ) AS col0
----
NULL
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT SUM( - 67 ) * 55 + - 21
----
-3706

skipif mysql # not compatible
query I rowsort label-3633
SELECT SUM ( - 67 ) * 55 + - 21
----
-3706

query I rowsort
SELECT ALL 87 * + - 89 * + 41
----
-317463

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT 74 + + ( SUM( + 89 ) )
----
163

skipif mysql # not compatible
query I rowsort label-3635
SELECT 74 + + ( SUM ( + 89 ) )
----
163

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT 52 * + 15 * - ( - + COUNT( * ) ) + 26 AS col0
----
806

skipif mysql # not compatible
query I rowsort label-3637
SELECT 52 * + 15 * - ( - + COUNT ( * ) ) + 26 AS col0
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL COUNT( * ) * 83 + - 99
----
-16

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL COUNT ( * ) * 83 + - 99
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3639
SELECT ( - - 52 ) + MIN( - 99 ) * + 65 + - 21 DIV 45
----
-6383

skipif mysql # not compatible
query I rowsort label-3639
SELECT ( - - 52 ) + MIN ( - 99 ) * + 65 + - 21 / 45
----
-6383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3640
SELECT 84 DIV 37 + + 69 * 15 + - COUNT( * ) DIV + + 91 AS col2
----
1037

skipif mysql # not compatible
query I rowsort label-3640
SELECT 84 / 37 + + 69 * 15 + - COUNT ( * ) / + + 91 AS col2
----
1037

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT - 84 DIV + 55
----
-1

skipif mysql # not compatible
query I rowsort label-3641
SELECT - 84 / + 55
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3642
SELECT - CAST( NULL AS SIGNED ) + 81 - + 15 * + 66 * 34 * 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3642
SELECT - CAST ( NULL AS INTEGER ) + 81 - + 15 * + 66 * 34 * 58 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3643
SELECT - 42 + - - 87 + + + CASE 73 WHEN + CAST( + 20 AS SIGNED ) / + COALESCE ( 3, - + COUNT( * ) + - 17 ) THEN NULL WHEN + - 65 * + 9 - - 8 THEN AVG ( ALL - 97 ) + + COUNT( * ) + - - 27 END * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT - 42 + - - 87 + + + CASE 73 WHEN + CAST ( + 20 AS INTEGER ) / + COALESCE ( 3, - + COUNT ( * ) + - 17 ) THEN NULL WHEN + - 65 * + 9 - - 8 THEN AVG ( ALL - 97 ) + + COUNT ( * ) + - - 27 END * 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT + ( 40 ) col1, 4 + - COUNT( * ) AS col1
----
40
3

skipif mysql # not compatible
query II rowsort label-3644
SELECT + ( 40 ) col1, 4 + - COUNT ( * ) AS col1
----
40
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3645
SELECT DISTINCT - 89 + - 55 * 60 DIV 96 - + MIN( ALL + 39 ) col2
----
-162

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT - 89 + - 55 * 60 / 96 - + MIN ( ALL + 39 ) col2
----
-162

query I rowsort
SELECT ALL + 31 + 74 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3647
SELECT - - CAST( + MAX( DISTINCT + 82 ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-3647
SELECT - - CAST ( + MAX ( DISTINCT + 82 ) AS INTEGER )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT DISTINCT - 9 + - CAST( NULL AS SIGNED ) / 54 * - - 87 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT - 9 + - CAST ( NULL AS INTEGER ) / 54 * - - 87 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + 38 ) * + 42 * - 47 * 38 + 53
----
-2850403

onlyif mysql # aggregate syntax: 
query II rowsort label-3650
SELECT 33 + + 40 AS col1, - COUNT( * ) + - 21
----
73
-22

skipif mysql # not compatible
query II rowsort label-3650
SELECT 33 + + 40 AS col1, - COUNT ( * ) + - 21
----
73
-22

query I rowsort
SELECT - 0 * + 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL - 87 + + NULLIF ( - 10, + 49 ) + - 15 + - - 95 * + + CASE + 19 WHEN - + 54 * - 52 * 22 * 47 THEN NULL ELSE + + ( - NULLIF ( - 92, ( 77 ) + - 64 ) ) END * + COUNT( * ) col1
----
8628

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - 87 + + NULLIF ( - 10, + 49 ) + - 15 + - - 95 * + + CASE + 19 WHEN - + 54 * - 52 * 22 * 47 THEN NULL ELSE + + ( - NULLIF ( - 92, ( 77 ) + - 64 ) ) END * + COUNT ( * ) col1
----
8628

query I rowsort
SELECT COALESCE ( - NULLIF ( ( - + ( - 34 ) ), + 66 ), + 66 + + 78 * - 98, + + 60 ) * - - 26 * 90
----
-79560

onlyif mysql # DIV for integer division: 
query I rowsort label-3654
SELECT COALESCE ( + 60, - - 22 DIV 54 ) + 45 - ( + - 59 ) * + - NULLIF ( 37, - 67 ) AS col1
----
-2078

skipif mysql # not compatible
query I rowsort label-3654
SELECT COALESCE ( + 60, - - 22 / 54 ) + 45 - ( + - 59 ) * + - NULLIF ( 37, - 67 ) AS col1
----
-2078

query II rowsort
SELECT ALL 10 AS col1, + 97 * ( - + 32 ) AS col0
----
10
-3104

query I rowsort
SELECT 29 + + + 67 AS col2
----
96

query I rowsort
SELECT 39 + - 28 + - ( + 69 ) AS col0
----
-58

query I rowsort
SELECT ALL + 88 - COALESCE ( - ( - ( - 17 ) ), - - 31 ) AS col2
----
105

query I rowsort
SELECT 54 + 28
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3660
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) * - 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 65 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT 64 + COUNT( * ) + 92 - + 56
----
101

skipif mysql # not compatible
query I rowsort label-3661
SELECT 64 + COUNT ( * ) + 92 - + 56
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-3662
SELECT + 31, - ( COALESCE ( - + 90, - + 68 + 53 ) ) + MIN( ALL ( - - 29 ) ) AS col2
----
31
119

skipif mysql # not compatible
query II rowsort label-3662
SELECT + 31, - ( COALESCE ( - + 90, - + 68 + 53 ) ) + MIN ( ALL ( - - 29 ) ) AS col2
----
31
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT DISTINCT COUNT( * ) * + - 73 * 25 - 84
----
-1909

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT COUNT ( * ) * + - 73 * 25 - 84
----
-1909

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT 48 DIV - 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3664
SELECT 48 / - 43 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3665
SELECT + ( 10 ) DIV + 43 * + 75 + 60 + - - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3665
SELECT + ( 10 ) / + 43 * + 75 + 60 + - - COUNT ( * ) AS col1
----
61

query I rowsort
SELECT ALL - 98 * - 75 AS col0
----
7350

onlyif mysql # aggregate syntax: 
query II rowsort label-3667
SELECT COUNT( * ), 85 + 52 AS col1
----
1
137

skipif mysql # not compatible
query II rowsort label-3667
SELECT COUNT ( * ), 85 + 52 AS col1
----
1
137

onlyif mysql # aggregate syntax: 
query II rowsort label-3668
SELECT ALL - ( ( 85 ) ) * - - 64, COUNT( * ) AS col1
----
-5440
1

skipif mysql # not compatible
query II rowsort label-3668
SELECT ALL - ( ( 85 ) ) * - - 64, COUNT ( * ) AS col1
----
-5440
1

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

query I rowsort
SELECT DISTINCT + 4 * + 0 AS col2
----
0

query I rowsort
SELECT ALL + - 61 * - 53 col1
----
3233

query I rowsort
SELECT - 85 * - + 3 AS col0
----
255

query II rowsort
SELECT DISTINCT + 54 + + 16 + + + 28, 7 AS col1
----
98
7

query I rowsort
SELECT 68 * 25 col0
----
1700

query II rowsort
SELECT DISTINCT + 71, 33 * 39 + + + COALESCE ( + - 18, + 13 ) + - - 42 AS col2
----
71
1311

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL + COUNT( DISTINCT + 2 ) + - 88
----
-87

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + COUNT ( DISTINCT + 2 ) + - 88
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3677
SELECT - - SUM( - - 57 ) * - 29, CAST( NULL AS SIGNED ) * - - 11 AS col2
----
-1653
NULL

skipif mysql # not compatible
query II rowsort label-3677
SELECT - - SUM ( - - 57 ) * - 29, CAST ( NULL AS INTEGER ) * - - 11 AS col2
----
-1653
NULL

query I rowsort
SELECT + 75 * 43
----
3225

query I rowsort
SELECT - CASE - AVG ( ALL - 51 ) WHEN - 0 * - 70 * - 37 + + 8 THEN + 67 ELSE + 80 * - + 7 END col2
----
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3680
SELECT DISTINCT + CASE + 93 WHEN CASE 88 WHEN COUNT( - 14 ) * + 39 THEN - 36 END THEN AVG ( ( + + CAST( + - 94 AS SIGNED ) ) ) * - CASE WHEN NULL NOT BETWEEN NULL AND 59 AND NOT 16 * - 30 NOT BETWEEN 17 + - 31 * - MIN( 60 ) AND + 90 + - 71 THEN 27 ELSE - 1 END WHEN - 78 THEN NULL WHEN + 47 THEN NULL ELSE NULL END + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + CASE + 93 WHEN CASE 88 WHEN COUNT ( - 14 ) * + 39 THEN - 36 END THEN AVG ( ( + + CAST ( + - 94 AS INTEGER ) ) ) * - CASE WHEN NULL NOT BETWEEN NULL AND 59 AND NOT 16 * - 30 NOT BETWEEN 17 + - 31 * - MIN ( 60 ) AND + 90 + - 71 THEN 27 ELSE - 1 END WHEN - 78 THEN NULL WHEN + 47 THEN NULL ELSE NULL END + 72
----
NULL

query II rowsort
SELECT ALL 59 * 83 + - 13 + - 57 AS col1, 42 + - + 52
----
4827
-10

query I rowsort
SELECT ALL 72 + ( + 75 ) * - 28 AS col0
----
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT + + COUNT( * ) * - - MIN( ALL - NULLIF ( 6, - 55 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-3683
SELECT + + COUNT ( * ) * - - MIN ( ALL - NULLIF ( 6, - 55 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + CASE 21 WHEN - + 20 + + + AVG ( + 19 ) + + - COUNT( * ) / - COALESCE ( - 49, + 89 * + COUNT( * ) + + 73 ) THEN - + 8 END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT + CASE 21 WHEN - + 20 + + + AVG ( + 19 ) + + - COUNT ( * ) / - COALESCE ( - 49, + 89 * + COUNT ( * ) + + 73 ) THEN - + 8 END * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 74 * 59 AS col0
----
4366

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT DISTINCT - NULLIF ( + 19, - COUNT( * ) + - 5 * + ( - 85 ) ) - - COUNT( * ) * + 66 * 39
----
2555

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT - NULLIF ( + 19, - COUNT ( * ) + - 5 * + ( - 85 ) ) - - COUNT ( * ) * + 66 * 39
----
2555

query I rowsort
SELECT + 25 + + 31 + - 18 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL 31 - - COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL 31 - - COUNT ( * ) AS col2
----
32

query I rowsort
SELECT ALL + 2 - - NULLIF ( - - 72, + + 14 ) AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3690
SELECT + COUNT( * ) * - - 67 DIV - - 33 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3690
SELECT + COUNT ( * ) * - - 67 / - - 33 AS col0
----
2

query I rowsort
SELECT + 89 + + - 80
----
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT ALL 77 * ( - 1 ) DIV NULLIF ( + 17, - 33 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL 77 * ( - 1 ) / NULLIF ( + 17, - 33 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT - CASE + COUNT( * ) WHEN - 24 / + 16 * + COUNT( * ) THEN + + 61 WHEN - + ( - 59 ) THEN NULLIF ( + ( 39 ), + - 4 ) ELSE NULL END * - 60 - COUNT( * ) + 25 + - 47 * + 63 * 18 * + - 78 / + COUNT( * ) + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT - CASE + COUNT ( * ) WHEN - 24 / + 16 * + COUNT ( * ) THEN + + 61 WHEN - + ( - 59 ) THEN NULLIF ( + ( 39 ), + - 4 ) ELSE NULL END * - 60 - COUNT ( * ) + 25 + - 47 * + 63 * 18 * + - 78 / + COUNT ( * ) + + 35
----
NULL

query I rowsort
SELECT - NULLIF ( + 93, + 17 ) AS col2
----
-93

query I rowsort
SELECT + NULLIF ( + 1, - 88 ) + NULLIF ( - 49, + 49 )
----
-48

query I rowsort
SELECT ALL + NULLIF ( - - 59, + + 33 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT - CAST( NULL AS SIGNED ) / - AVG ( - 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT - CAST ( NULL AS INTEGER ) / - AVG ( - 15 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT + 39 DIV - 94 + + 7 * - 88
----
-616

skipif mysql # not compatible
query I rowsort label-3699
SELECT + 39 / - 94 + + 7 * - 88
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT - - 5 * MIN( - + CASE 75 WHEN - - 93 THEN - 46 END ) * + 26 * 58 / - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT - - 5 * MIN ( - + CASE 75 WHEN - - 93 THEN - 46 END ) * + 26 * 58 / - + 21
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3701
SELECT + CAST( + 56 AS SIGNED ) + + ( 38 ), - 6 AS col1
----
94
-6

skipif mysql # not compatible
query II rowsort label-3701
SELECT + CAST ( + 56 AS INTEGER ) + + ( 38 ), - 6 AS col1
----
94
-6

query I rowsort
SELECT + - NULLIF ( 13, + 11 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT + NULLIF ( + 30, + 24 * + 49 + + 39 + + - 37 * + COUNT( * ) + - 73 )
----
30

skipif mysql # not compatible
query I rowsort label-3703
SELECT + NULLIF ( + 30, + 24 * + 49 + + 39 + + - 37 * + COUNT ( * ) + - 73 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT + - MAX( ALL 52 ) + - COALESCE ( + + 49, - + 81 + + 23 * 77, + 58 ) AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-3704
SELECT + - MAX ( ALL 52 ) + - COALESCE ( + + 49, - + 81 + + 23 * 77, + 58 ) AS col1
----
-101

query I rowsort
SELECT - - CASE 87 WHEN + 64 * - 68 * 18 * + 77 THEN AVG ( - 27 ) END / - ( 12 ) * + 10
----
NULL

query I rowsort
SELECT - + ( - + 13 ) + - 64 + - - 69 AS col0
----
18

query I rowsort
SELECT DISTINCT - + 95 * + 64 AS col1
----
-6080

onlyif mysql # DIV for integer division: 
query I rowsort label-3708
SELECT ALL - - 98 * - 13 * 63 * 50 DIV - 2 + - 27
----
2006523

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL - - 98 * - 13 * 63 * 50 / - 2 + - 27
----
2006523

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3709
SELECT + 37 * + 59 + - 72 + - - COUNT( * ) DIV - - COUNT( * )
----
2112

skipif mysql # not compatible
query I rowsort label-3709
SELECT + 37 * + 59 + - 72 + - - COUNT ( * ) / - - COUNT ( * )
----
2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT ALL CAST( NULL AS SIGNED ) * + 99 + - + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL CAST ( NULL AS INTEGER ) * + 99 + - + 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT + - SUM( - - 61 ) * + 33 * + 88
----
-177144

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT + - SUM ( - - 61 ) * + 33 * + 88
----
-177144

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT - 37 + + - SUM( DISTINCT - 14 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3712
SELECT - 37 + + - SUM ( DISTINCT - 14 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ALL - - 66 * - - 70 + - COUNT( + + 38 )
----
4619

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL - - 66 * - - 70 + - COUNT ( + + 38 )
----
4619

query I rowsort
SELECT ALL + + 16 * 15 + - 5 AS col0
----
235

query I rowsort
SELECT - + 43 * 32 * + + 7 AS col2
----
-9632

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT ALL + + ( - 58 ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL + + ( - 58 ) / - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT - 99 * COUNT( * ) + - + 84 + - 70
----
-253

skipif mysql # not compatible
query I rowsort label-3717
SELECT - 99 * COUNT ( * ) + - + 84 + - 70
----
-253

query I rowsort
SELECT ALL + 69 - - 34
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT ALL CAST( - 17 AS SIGNED ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL CAST ( - 17 AS INTEGER ) AS col2
----
-17

query I rowsort
SELECT ALL 13 - + 78 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + 19 * COUNT( * ) col0
----
19

skipif mysql # not compatible
query I rowsort label-3721
SELECT + 19 * COUNT ( * ) col0
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT - MAX( 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3723
SELECT - MAX ( 31 ) AS col0
----
-31

query I rowsort
SELECT ALL ( - 80 ) * 28
----
-2240

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT - 83 DIV + 25
----
-3

skipif mysql # not compatible
query I rowsort label-3725
SELECT - 83 / + 25
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT + 89 * + + CAST( 13 AS SIGNED )
----
1157

skipif mysql # not compatible
query I rowsort label-3726
SELECT + 89 * + + CAST ( 13 AS INTEGER )
----
1157

query I rowsort
SELECT - 0 + - - 84 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3728
SELECT + SUM( DISTINCT - - 43 ) * - + CAST( - + ( + COUNT( * ) ) AS DECIMAL ) / - 70 / MIN( DISTINCT - NULLIF ( - CAST( NULL AS DECIMAL ), 78 + - 69 * + 43 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT + SUM ( DISTINCT - - 43 ) * - + CAST ( - + ( + COUNT ( * ) ) AS REAL ) / - 70 / MIN ( DISTINCT - NULLIF ( - CAST ( NULL AS REAL ), 78 + - 69 * + 43 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT + SUM( + 90 ) + - MAX( ALL + ( - + CAST( NULL AS SIGNED ) ) ) * - ( - COUNT( * ) ) / + + 52 * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT + SUM ( + 90 ) + - MAX ( ALL + ( - + CAST ( NULL AS INTEGER ) ) ) * - ( - COUNT ( * ) ) / + + 52 * + 70
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3730
SELECT + 53 + - - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3730
SELECT + 53 + - - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT ALL 35 + - + CAST( NULL AS SIGNED ) + - 53 * - 62 * + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL 35 + - + CAST ( NULL AS INTEGER ) + - 53 * - 62 * + + 22
----
NULL

query I rowsort
SELECT + ( 91 ) + 20
----
111

query I rowsort
SELECT ALL 11 + + + 74 + - - 9 AS col1
----
94

query I rowsort
SELECT DISTINCT 70 + + - 1 - + 59
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT + ( + COUNT( * ) ) * + 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3735
SELECT + ( + COUNT ( * ) ) * + 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT ALL - CASE + 48 WHEN + CASE - + 11 WHEN - - 95 THEN NULL ELSE + COALESCE ( - + 77, + 86 * + 53, - ( 38 ) + - - COUNT( * ) ) END THEN NULL ELSE 29 * + 26 END
----
-754

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL - CASE + 48 WHEN + CASE - + 11 WHEN - - 95 THEN NULL ELSE + COALESCE ( - + 77, + 86 * + 53, - ( 38 ) + - - COUNT ( * ) ) END THEN NULL ELSE 29 * + 26 END
----
-754

query I rowsort
SELECT + + ( + NULLIF ( - - 71, ( + 25 ) ) ) AS col2
----
71

query I rowsort
SELECT ALL 25 + - + 51
----
-26

query I rowsort
SELECT - ( + 30 ) * + + 86
----
-2580

onlyif mysql # DIV for integer division: 
query I rowsort label-3740
SELECT ALL 64 + + - ( - + 43 ) + - - 31 DIV - 30 + - 21
----
85

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL 64 + + - ( - + 43 ) + - - 31 / - 30 + - 21
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT DISTINCT - 71 + - + MIN( - - 41 ) AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT - 71 + - + MIN ( - - 41 ) AS col0
----
-112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3742
SELECT ALL + 13 + + 43 / - 40 * CAST( NULL AS DECIMAL ) + + - 15 * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL + 13 + + 43 / - 40 * CAST ( NULL AS REAL ) + + - 15 * + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT ALL 91 + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL 91 + COUNT ( * ) AS col0
----
92

query I rowsort
SELECT + 30 * 98
----
2940

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT COUNT( * ) * + - 29 * MIN( + - 59 ) AS col2
----
1711

skipif mysql # not compatible
query I rowsort label-3745
SELECT COUNT ( * ) * + - 29 * MIN ( + - 59 ) AS col2
----
1711

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3748
SELECT 98 DIV + + 79
----
1

skipif mysql # not compatible
query I rowsort label-3748
SELECT 98 / + + 79
----
1

query I rowsort
SELECT ALL - 78 - + + NULLIF ( + 97, 51 + - 66 + - + 36 ) AS col2
----
-175

query I rowsort
SELECT - 97 * + - 94 AS col0
----
9118

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT DISTINCT - + 76 DIV - 37
----
2

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - + 76 / - 37
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3752
SELECT - 5 * + CAST( - - 99 AS SIGNED ) - COUNT( * ) + + - 68 * + + 5
----
-836

skipif mysql # not compatible
query I rowsort label-3752
SELECT - 5 * + CAST ( - - 99 AS INTEGER ) - COUNT ( * ) + + - 68 * + + 5
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT + SUM( 35 ) - - 22
----
57

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT + SUM ( 35 ) - - 22
----
57

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

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

query I rowsort
SELECT + 46 * - 18
----
-828

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3757
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3758
SELECT 22 + COUNT( * ) DIV + 88
----
22

skipif mysql # not compatible
query I rowsort label-3758
SELECT 22 + COUNT ( * ) / + 88
----
22

query I rowsort
SELECT ALL - 2 * - 0
----
0

query I rowsort
SELECT 29 * 82
----
2378

query I rowsort
SELECT 64 + + 51 + + 57
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-3762
SELECT 41 AS col2, + SUM( ALL - 96 )
----
41
-96

skipif mysql # not compatible
query II rowsort label-3762
SELECT 41 AS col2, + SUM ( ALL - 96 )
----
41
-96

query II rowsort
SELECT ALL 61, 85 AS col2
----
61
85

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

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

query II rowsort
SELECT ALL 18, + 41 AS col1
----
18
41

query I rowsort
SELECT 54 * - 79
----
-4266

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3767
SELECT 73 DIV ( COALESCE ( 87, - + MAX( - + 60 ) DIV COALESCE ( - 34, - + COUNT( * ) ) * 82 * + - 47 * + 11 + + 65 * - + MIN( + 53 ) ) ) * - + 69 AS col1, - 79 col0
----
0
-79

skipif mysql # not compatible
query II rowsort label-3767
SELECT 73 / ( COALESCE ( 87, - + MAX ( - + 60 ) / COALESCE ( - 34, - + COUNT ( * ) ) * 82 * + - 47 * + 11 + + 65 * - + MIN ( + 53 ) ) ) * - + 69 AS col1, - 79 col0
----
0
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL - 67 + - 22 * + COUNT( * ) - 4 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - 67 + - 22 * + COUNT ( * ) - 4 AS col0
----
-93

query II rowsort
SELECT - 85 AS col2, - 44 * + 38 AS col0
----
-85
-1672

query I rowsort
SELECT DISTINCT + 94 + + + 59 AS col2
----
153

query I rowsort
SELECT ALL - 40 * + ( - 5 )
----
200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT 63 DIV - - COUNT( ALL - 6 )
----
63

skipif mysql # not compatible
query I rowsort label-3772
SELECT 63 / - - COUNT ( ALL - 6 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT 98 DIV + - NULLIF ( - 8, ( + 54 ) )
----
12

skipif mysql # not compatible
query I rowsort label-3773
SELECT 98 / + - NULLIF ( - 8, ( + 54 ) )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3774
SELECT ALL SUM( ALL + - 37 ) * + ( + 72 ), 3 + - 42 + - + 0 + + ( 57 ) AS col0
----
-2664
18

skipif mysql # not compatible
query II rowsort label-3774
SELECT ALL SUM ( ALL + - 37 ) * + ( + 72 ), 3 + - 42 + - + 0 + + ( 57 ) AS col0
----
-2664
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT COUNT( * ) - 43
----
-42

skipif mysql # not compatible
query I rowsort label-3775
SELECT COUNT ( * ) - 43
----
-42

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT - 79 DIV + NULLIF ( - 12, + 16 DIV + 97 + 62 + + 14 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3777
SELECT - 79 / + NULLIF ( - 12, + 16 / + 97 + 62 + + 14 ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3778
SELECT ALL + NULLIF ( 53, - 81 * + 48 + - 81 * + + 10 DIV + + MIN( ALL ( - NULLIF ( - CAST( NULL AS SIGNED ), 70 ) ) ) - ( - + 30 ) ) + + - ( - 48 ) + 98 * + 71 DIV COUNT( * ) + + COUNT( * )
----
7060

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL + NULLIF ( 53, - 81 * + 48 + - 81 * + + 10 / + + MIN ( ALL ( - NULLIF ( - CAST ( NULL AS INTEGER ), 70 ) ) ) - ( - + 30 ) ) + + - ( - 48 ) + 98 * + 71 / COUNT ( * ) + + COUNT ( * )
----
7060

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT DISTINCT - 17 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT - 17 / + 77
----
0

query I rowsort
SELECT ALL - 42 + - ( 29 )
----
-71

query I rowsort
SELECT DISTINCT 80 - + - 48
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT + + CASE + 10 WHEN 55 THEN 36 + + 1 + 50 WHEN 83 THEN - 30 + + 6 ELSE NULL END AS col0, NULLIF ( + - COUNT( * ), + 14 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3782
SELECT + + CASE + 10 WHEN 55 THEN 36 + + 1 + 50 WHEN 83 THEN - 30 + + 6 ELSE NULL END AS col0, NULLIF ( + - COUNT ( * ), + 14 )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT CASE - 77 WHEN - ( ( + 72 ) ) * + 64 + - 61 + + + 69 THEN 26 * COUNT( * ) + - 54 * + + COUNT( * ) * - - 87 END / - - 3 * - - MAX( + 18 ) + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT CASE - 77 WHEN - ( ( + 72 ) ) * + 64 + - 61 + + + 69 THEN 26 * COUNT ( * ) + - 54 * + + COUNT ( * ) * - - 87 END / - - 3 * - - MAX ( + 18 ) + + 51 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3784
SELECT ALL - 64 AS col0, + COALESCE ( NULLIF ( - 84, - 82 ), + ( - 26 ) DIV + 29 ) * + 89 * ( 83 )
----
-64
-620508

skipif mysql # not compatible
query II rowsort label-3784
SELECT ALL - 64 AS col0, + COALESCE ( NULLIF ( - 84, - 82 ), + ( - 26 ) / + 29 ) * + 89 * ( 83 )
----
-64
-620508

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

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

query II rowsort
SELECT COALESCE ( + 70, - 64 ) + + 14 AS col1, 19 AS col0
----
84
19

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

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

query I rowsort
SELECT ALL 25 * + 0 * + 51
----
0

query I rowsort
SELECT - 95 + + 85 AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3790
SELECT ALL - 21 DIV + ( + 99 ) - + 87 * + 12 AS col2
----
-1044

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL - 21 / + ( + 99 ) - + 87 * + 12 AS col2
----
-1044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3791
SELECT - 78 * 47 + + COUNT( DISTINCT 99 ) * + 4 + - CASE ( + 3 ) WHEN 89 THEN - + 52 WHEN + COUNT( * ) THEN + - 37 - 50 * + 75 WHEN 25 + 40 THEN - SUM( ALL + - 17 ) * + 54 + - 69 ELSE + 17 DIV + 3 + + 87 END + 18 * 69
----
-2512

skipif mysql # not compatible
query I rowsort label-3791
SELECT - 78 * 47 + + COUNT ( DISTINCT 99 ) * + 4 + - CASE ( + 3 ) WHEN 89 THEN - + 52 WHEN + COUNT ( * ) THEN + - 37 - 50 * + 75 WHEN 25 + 40 THEN - SUM ( ALL + - 17 ) * + 54 + - 69 ELSE + 17 / + 3 + + 87 END + 18 * 69
----
-2512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3792
SELECT 77 * - 27 + + CAST( - 46 AS SIGNED ) * - 54 + 20 * + + 7 + 90 * - + ( + 2 ) AS col2
----
365

skipif mysql # not compatible
query I rowsort label-3792
SELECT 77 * - 27 + + CAST ( - 46 AS INTEGER ) * - 54 + 20 * + + 7 + 90 * - + ( + 2 ) AS col2
----
365

query I rowsort
SELECT ( - 43 ) * 97
----
-4171

query I rowsort
SELECT ALL - ( - - 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query III rowsort label-3795
SELECT 97, + 95 AS col2, + + 94 * MIN( + 77 ) + 76 AS col2
----
97
95
7314

skipif mysql # not compatible
query III rowsort label-3795
SELECT 97, + 95 AS col2, + + 94 * MIN ( + 77 ) + 76 AS col2
----
97
95
7314

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL - 98 + + 69 * + + 48 * COUNT( DISTINCT + - CASE 22 WHEN + 75 THEN - - 95 ELSE NULL END ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - 98 + + 69 * + + 48 * COUNT ( DISTINCT + - CASE 22 WHEN + 75 THEN - - 95 ELSE NULL END ) AS col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3797
SELECT ALL + 43 DIV COUNT( * ) AS col1, + 59 * + 75 + - MIN( 40 ) * 11 * - 60 AS col1
----
43
30825

skipif mysql # not compatible
query II rowsort label-3797
SELECT ALL + 43 / COUNT ( * ) AS col1, + 59 * + 75 + - MIN ( 40 ) * 11 * - 60 AS col1
----
43
30825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3798
SELECT ( CAST( NULL AS SIGNED ) ) * + MAX( - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT ( CAST ( NULL AS INTEGER ) ) * + MAX ( - 87 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT 64 * - 66 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT 64 * - 66 * + - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL MAX ( - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT - MIN( 69 ) + + 62
----
-7

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT - MIN ( 69 ) + + 62
----
-7

query I rowsort
SELECT ALL + 98 + - 57
----
41

query I rowsort
SELECT 54 + - 32 + + 25 * - 79 AS col1
----
-1953

query I rowsort
SELECT DISTINCT - 62 + - 91 + - 63 AS col1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL MAX( ALL - 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL MAX ( ALL - 33 ) AS col2
----
-33

query II rowsort
SELECT - 58 + + 7 AS col2, 75 AS col0
----
-51
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT - COUNT( ALL - - ( + - 61 ) ) + + 49 + + ( - - 65 ) + - 2 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-3808
SELECT - COUNT ( ALL - - ( + - 61 ) ) + + 49 + + ( - - 65 ) + - 2 AS col0
----
111

query I rowsort
SELECT - 67 * - 9 - - + 75
----
678

query I rowsort
SELECT ALL + 77 - 49
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT ALL SUM( + - 27 ) AS col0, - 33 AS col1
----
-27
-33

skipif mysql # not compatible
query II rowsort label-3811
SELECT ALL SUM ( + - 27 ) AS col0, - 33 AS col1
----
-27
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3812
SELECT DISTINCT CAST( NULL AS SIGNED ) * 35 AS col2, ( + 72 )
----
NULL
72

skipif mysql # not compatible
query II rowsort label-3812
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 35 AS col2, ( + 72 )
----
NULL
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3813
SELECT ALL 29 - - 73 - COALESCE ( + COALESCE ( 54, - + 75 ), - 52 * - COUNT( * ) DIV - 72 ) * + 67 * + - 79
----
285924

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL 29 - - 73 - COALESCE ( + COALESCE ( 54, - + 75 ), - 52 * - COUNT ( * ) / - 72 ) * + 67 * + - 79
----
285924

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - ( + ( 16 ) ) + + COALESCE ( 97, COUNT( * ), - + 23 * 96 + + 54 * + 93 ) col1
----
81

skipif mysql # not compatible
query I rowsort label-3814
SELECT - ( + ( 16 ) ) + + COALESCE ( 97, COUNT ( * ), - + 23 * 96 + + 54 * + 93 ) col1
----
81

query II rowsort
SELECT ALL + - 9 - + 77, - 86 col0
----
-86
-86

query I rowsort
SELECT - 70 * + 5 AS col1
----
-350

query I rowsort
SELECT DISTINCT - 11 * - + 78 + - 11 - - - 18 col1
----
829

query I rowsort
SELECT ALL - 92 * + 86 * - 76
----
601312

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT MIN( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT MIN ( 0 )
----
0

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

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL + 11 / - 90
----
0

query I rowsort
SELECT + + 6 * + + 85
----
510

query I rowsort
SELECT + - 31 * + ( 35 ) * 74 AS col1
----
-80290

onlyif mysql # aggregate syntax: 
query II rowsort label-3823
SELECT ALL + COUNT( + 91 ) AS col1, + 81 AS col1
----
1
81

skipif mysql # not compatible
query II rowsort label-3823
SELECT ALL + COUNT ( + 91 ) AS col1, + 81 AS col1
----
1
81

query I rowsort
SELECT DISTINCT + - 16 col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT - 66 * COALESCE ( 86, + 11 ) DIV + + 41
----
-138

skipif mysql # not compatible
query I rowsort label-3825
SELECT - 66 * COALESCE ( 86, + 11 ) / + + 41
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + COUNT( * ) * SUM( DISTINCT + 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3826
SELECT + COUNT ( * ) * SUM ( DISTINCT + 48 ) AS col1
----
48

query II rowsort
SELECT DISTINCT + 43 * - 85 + + + 39, + ( 56 ) + + 86 AS col0
----
-3616
142

query I rowsort
SELECT DISTINCT 42 * - 53 + - 85 AS col2
----
-2311

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT + COUNT( * ) + 12 - + + SUM( + 92 ) + 27
----
-52

skipif mysql # not compatible
query I rowsort label-3829
SELECT + COUNT ( * ) + 12 - + + SUM ( + 92 ) + 27
----
-52

query I rowsort
SELECT + 76 + - 57 AS col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT CAST( NULL AS SIGNED ) * + - 37 - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT CAST ( NULL AS INTEGER ) * + - 37 - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3832
SELECT MAX( DISTINCT + + ( + + 77 ) ) AS col2, 65 + + CAST( + 53 AS SIGNED ) * + 90
----
77
4835

skipif mysql # not compatible
query II rowsort label-3832
SELECT MAX ( DISTINCT + + ( + + 77 ) ) AS col2, 65 + + CAST ( + 53 AS INTEGER ) * + 90
----
77
4835

query I rowsort
SELECT DISTINCT 5 + - NULLIF ( + 10, - - 90 ) * 0
----
5

query I rowsort
SELECT + ( 44 ) * + 16
----
704

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT + ( 27 ) DIV 19
----
1

skipif mysql # not compatible
query I rowsort label-3835
SELECT + ( 27 ) / 19
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT DISTINCT 11 DIV 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT 11 / 32 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT + CAST( NULL AS SIGNED ) + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT + CAST ( NULL AS INTEGER ) + - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL + 77 * + CASE + - COUNT( * ) WHEN + NULLIF ( 76, - + 13 ) + - COUNT( * ) THEN 19 * + 80 - + - 98 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL + 77 * + CASE + - COUNT ( * ) WHEN + NULLIF ( 76, - + 13 ) + - COUNT ( * ) THEN 19 * + 80 - + - 98 END col2
----
NULL

query I rowsort
SELECT ALL 4 - - 49 * 21
----
1033

onlyif mysql # aggregate syntax: 
query II rowsort label-3840
SELECT + COUNT( * ) + - 0 + 69 AS col0, + 66 + + COUNT( * )
----
70
67

skipif mysql # not compatible
query II rowsort label-3840
SELECT + COUNT ( * ) + - 0 + 69 AS col0, + 66 + + COUNT ( * )
----
70
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT + COUNT( * ) * - + 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT + COUNT ( * ) * - + 22 AS col2
----
-22

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

skipif mysql # not compatible
query I rowsort label-3842
SELECT - COUNT ( * ) * - - 23
----
-23

query I rowsort
SELECT ALL + - ( + + 81 ) * + 16 + - - 23 * + 91
----
797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT - - NULLIF ( + 34, - + 65 / + CASE - SUM( 58 ) WHEN - 10 THEN + MAX( 43 ) + + 3 ELSE - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) END )
----
34

skipif mysql # not compatible
query I rowsort label-3844
SELECT - - NULLIF ( + 34, - + 65 / + CASE - SUM ( 58 ) WHEN - 10 THEN + MAX ( 43 ) + + 3 ELSE - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) END )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL - ( SUM( ALL - 2 ) )
----
2

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL - ( SUM ( ALL - 2 ) )
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT CASE + 69 WHEN 85 THEN - 67 - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT CASE + 69 WHEN 85 THEN - 67 - - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT - + COUNT( * ) * COALESCE ( + ( + 19 ), 41 + - + 23 ) * 47 + ( 39 ) + + - 68 - - COUNT( * ) * 84 AS col0
----
-838

skipif mysql # not compatible
query I rowsort label-3848
SELECT - + COUNT ( * ) * COALESCE ( + ( + 19 ), 41 + - + 23 ) * 47 + ( 39 ) + + - 68 - - COUNT ( * ) * 84 AS col0
----
-838

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT ALL + MAX( COALESCE ( + + COALESCE ( + 1, 76, + 34 ), 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL + MAX ( COALESCE ( + + COALESCE ( + 1, 76, + 34 ), 1 ) )
----
1

query I rowsort
SELECT DISTINCT + + ( - 30 ) AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT - CAST( NULL AS SIGNED ) * 47 * 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT - CAST ( NULL AS INTEGER ) * 47 * 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT + 10 * - NULLIF ( - COUNT( * ), - 15 ) - - 56 * 3 col2
----
178

skipif mysql # not compatible
query I rowsort label-3852
SELECT + 10 * - NULLIF ( - COUNT ( * ), - 15 ) - - 56 * 3 col2
----
178

query II rowsort
SELECT ALL + 5 * 53 * + 90 col0, 90 AS col2
----
23850
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3854
SELECT - - COUNT( * ) + COUNT( * ) + 49 * + 89 * - + 26 * MIN( ALL + - 78 ) - - COUNT( * ) AS col0, + 67 * + - COUNT( * ) + - CAST( NULL AS SIGNED ) + - 58 - NULLIF ( 85, + 46 ) + + - 57 * - - 39 / + - 16 + ( - + 17 ) * - ( + 83 )
----
8844111
NULL

skipif mysql # not compatible
query II rowsort label-3854
SELECT - - COUNT ( * ) + COUNT ( * ) + 49 * + 89 * - + 26 * MIN ( ALL + - 78 ) - - COUNT ( * ) AS col0, + 67 * + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 58 - NULLIF ( 85, + 46 ) + + - 57 * - - 39 / + - 16 + ( - + 17 ) * - ( + 83 )
----
8844111
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3855
SELECT - - MAX( + + 62 ) * - 0 col0, + 61 + 14 + - + 84 + + 44 AS col0
----
0
35

skipif mysql # not compatible
query II rowsort label-3855
SELECT - - MAX ( + + 62 ) * - 0 col0, + 61 + 14 + - + 84 + + 44 AS col0
----
0
35

query I rowsort
SELECT - 60 + - - 77 * + + 27 col1
----
2019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3857
SELECT ALL + COALESCE ( - + 35, + CAST( - COUNT( DISTINCT - + 74 ) AS SIGNED ) ) AS col2, + 40
----
-35
40

skipif mysql # not compatible
query II rowsort label-3857
SELECT ALL + COALESCE ( - + 35, + CAST ( - COUNT ( DISTINCT - + 74 ) AS INTEGER ) ) AS col2, + 40
----
-35
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3858
SELECT ALL 48 DIV 59 AS col0, - CAST( - + CASE + 26 WHEN - 34 + + 55 THEN + - 31 WHEN + CAST( NULL AS DECIMAL ) DIV - - COALESCE ( 25, 22, 18 ) DIV 2 * + 71 * - 12 + ( + 27 ) THEN NULL ELSE 50 END AS SIGNED ) + COUNT( * ) + 17 * + NULLIF ( - 49, - + 55 ) * + 79 AS col1
----
0
-65756

skipif mysql # not compatible
query II rowsort label-3858
SELECT ALL 48 / 59 AS col0, - CAST ( - + CASE + 26 WHEN - 34 + + 55 THEN + - 31 WHEN + CAST ( NULL AS REAL ) / - - COALESCE ( 25, 22, 18 ) / 2 * + 71 * - 12 + ( + 27 ) THEN NULL ELSE 50 END AS INTEGER ) + COUNT ( * ) + 17 * + NULLIF ( - 49, - + 55 ) * + 79 AS col1
----
0
-65756

onlyif mysql # DIV for integer division: 
query II rowsort label-3859
SELECT DISTINCT + 99 DIV + 49 + + - 42 + + 77 + - + 55 AS col0, 72 * - 30 col2
----
-18
-2160

skipif mysql # not compatible
query II rowsort label-3859
SELECT DISTINCT + 99 / + 49 + + - 42 + + 77 + - + 55 AS col0, 72 * - 30 col2
----
-18
-2160

query I rowsort
SELECT + 89 + + + 54 AS col0
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3861
SELECT DISTINCT COUNT( - 80 ) * + COUNT( * ) * + + 97 * - CASE + 71 WHEN COUNT( * ) THEN - + CAST( + 99 AS SIGNED ) + 65 - + 73 ELSE NULL END + + 63 - + + 14 + + 27 - + ( MIN( NULLIF ( 87, - 28 / - - 66 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT COUNT ( - 80 ) * + COUNT ( * ) * + + 97 * - CASE + 71 WHEN COUNT ( * ) THEN - + CAST ( + 99 AS INTEGER ) + 65 - + 73 ELSE NULL END + + 63 - + + 14 + + 27 - + ( MIN ( NULLIF ( 87, - 28 / - - 66 ) ) ) AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT 6 + - 62 AS col0
----
-56

query I rowsort
SELECT ALL 64 + 47 * + ( - 88 )
----
-4072

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT MIN( DISTINCT - + 75 ) * 43 + - 89
----
-3314

skipif mysql # not compatible
query I rowsort label-3866
SELECT MIN ( DISTINCT - + 75 ) * 43 + - 89
----
-3314

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

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL COUNT ( * ) - + 72 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ( 73 ) * - 45 + COUNT( * ) + + 73 * + + 7
----
-2773

skipif mysql # not compatible
query I rowsort label-3868
SELECT ( 73 ) * - 45 + COUNT ( * ) + + 73 * + + 7
----
-2773

query I rowsort
SELECT 82 - - 49
----
131

query I rowsort
SELECT + 81 + + 55
----
136

query I rowsort
SELECT 29 * + 73 * + 11 col0
----
23287

query I rowsort
SELECT 72 * - + 3
----
-216

onlyif mysql # DIV for integer division: 
query II rowsort label-3873
SELECT 52 + + 69 + - - 65 DIV 93, 21 AS col2
----
121
21

skipif mysql # not compatible
query II rowsort label-3873
SELECT 52 + + 69 + - - 65 / 93, 21 AS col2
----
121
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL ( COUNT( * ) ) / - COALESCE ( + - 72, - COALESCE ( 39, + 8 ), - 75 ) * + 52 + + MIN( ALL - ( + 62 ) ) * + - MIN( ALL + 49 ) * - + CASE - - 42 WHEN + + 96 THEN - ( + - 7 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL ( COUNT ( * ) ) / - COALESCE ( + - 72, - COALESCE ( 39, + 8 ), - 75 ) * + 52 + + MIN ( ALL - ( + 62 ) ) * + - MIN ( ALL + 49 ) * - + CASE - - 42 WHEN + + 96 THEN - ( + - 7 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT ALL + + 79 * SUM( - 7 )
----
-553

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL + + 79 * SUM ( - 7 )
----
-553

query I rowsort
SELECT ALL + 53 * + 59
----
3127

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT - MIN( - 6 ) col2
----
6

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT - MIN ( - 6 ) col2
----
6

query I rowsort
SELECT ALL - 9 * + 91
----
-819

query I rowsort
SELECT 77 * 63
----
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT COUNT( * ) + + 49 col1
----
50

skipif mysql # not compatible
query I rowsort label-3880
SELECT COUNT ( * ) + + 49 col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT DISTINCT + + ( 15 ) + - COUNT( * ) * + - 8 + + 9 col1
----
32

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT + + ( 15 ) + - COUNT ( * ) * + - 8 + + 9 col1
----
32

query I rowsort
SELECT ALL - 48 + + 87 + - NULLIF ( + + ( - 26 ), + - 47 ) * + 66 * - 50 AS col1
----
-85761

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT 0 * - - 11 + - - MAX( 91 ) * 98 * - + COUNT( * ) col2
----
-8918

skipif mysql # not compatible
query I rowsort label-3883
SELECT 0 * - - 11 + - - MAX ( 91 ) * 98 * - + COUNT ( * ) col2
----
-8918

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL NULLIF ( + 78, - COUNT( * ) + - 86 ) + 99 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL NULLIF ( + 78, - COUNT ( * ) + - 86 ) + 99 AS col1
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT ALL + 21 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL + 21 / 61
----
0

query I rowsort
SELECT ALL - 12 + + + 88 * 47 * 78
----
322596

query I rowsort
SELECT NULLIF ( - 92, - 68 ) - - - COALESCE ( 61, 87 ) col0
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-3888
SELECT ALL - COUNT( * ), 17 - - 2 AS col2
----
-1
19

skipif mysql # not compatible
query II rowsort label-3888
SELECT ALL - COUNT ( * ), 17 - - 2 AS col2
----
-1
19

query I rowsort
SELECT ALL - 21 * + + 62 AS col0
----
-1302

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3890
SELECT 57 DIV + ( - 2 ) * - COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3890
SELECT 57 / + ( - 2 ) * - COUNT ( * ) AS col1
----
28

query I rowsort
SELECT 92 * - 74
----
-6808

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT 63 * + SUM( DISTINCT + + COALESCE ( - ( - 4 ), + CASE - 94 WHEN 22 THEN + 0 ELSE 40 END * - 71 + + 66 ) )
----
252

skipif mysql # not compatible
query I rowsort label-3892
SELECT 63 * + SUM ( DISTINCT + + COALESCE ( - ( - 4 ), + CASE - 94 WHEN 22 THEN + 0 ELSE 40 END * - 71 + + 66 ) )
----
252

query I rowsort
SELECT DISTINCT - 3 * - 13 AS col1
----
39

query I rowsort
SELECT ALL + 49 - - 11
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL - 22 * + SUM( + 54 ) AS col2
----
-1188

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL - 22 * + SUM ( + 54 ) AS col2
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT COUNT( * ) * 81 - 46
----
35

skipif mysql # not compatible
query I rowsort label-3896
SELECT COUNT ( * ) * 81 - 46
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3897
SELECT ALL - CAST( + - MIN( - 11 ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - CAST ( + - MIN ( - 11 ) AS INTEGER )
----
-11

query I rowsort
SELECT ALL + 49 - + - 5 AS col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT DISTINCT 93 DIV - COALESCE ( - 28, - + 68 + 22 * + 23 * - 18, - 48 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT 93 / - COALESCE ( - 28, - + 68 + 22 * + 23 * - 18, - 48 ) col0
----
3

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

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL 11 / + COUNT ( * ) AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3901
SELECT 8 DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-3901
SELECT 8 / 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT COALESCE ( - MAX( + 54 ), + ( - - 56 ) + - + 79 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-3902
SELECT COALESCE ( - MAX ( + 54 ), + ( - - 56 ) + - + 79 ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT NULLIF ( - 51, + 8 * - - 35 + + COUNT( * ) ) + - 26 + + - 23 * 20 AS col2
----
-537

skipif mysql # not compatible
query I rowsort label-3903
SELECT NULLIF ( - 51, + 8 * - - 35 + + COUNT ( * ) ) + - 26 + + - 23 * 20 AS col2
----
-537

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT MIN( + ( 64 ) ) col2
----
64

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT MIN ( + ( 64 ) ) col2
----
64

query I rowsort
SELECT - 23 * - 98
----
2254

query II rowsort
SELECT ALL 97 col0, - 25 AS col1
----
97
-25

query I rowsort
SELECT DISTINCT 80 + 77 col0
----
157

query I rowsort
SELECT 36 + + + 36
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT ALL - 4 * MAX( + 55 ), 58 AS col1
----
-220
58

skipif mysql # not compatible
query II rowsort label-3909
SELECT ALL - 4 * MAX ( + 55 ), 58 AS col1
----
-220
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT ALL - 13 + - + 11 - + + 69 DIV COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - 13 + - + 11 - + + 69 / COUNT ( * ) AS col2
----
-93

query I rowsort
SELECT + 12 + + 43
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL + ( - COUNT( 40 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL + ( - COUNT ( 40 ) ) AS col2
----
-1

query I rowsort
SELECT 46 * 19 * - 86
----
-75164

query I rowsort
SELECT ALL 64 + - + ( + + 98 ) col1
----
-34

query I rowsort
SELECT ALL CASE - 86 WHEN - 8 THEN 11 ELSE + + 52 END + + 44 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT COUNT( * ) - SUM( ALL - 92 )
----
93

skipif mysql # not compatible
query I rowsort label-3916
SELECT COUNT ( * ) - SUM ( ALL - 92 )
----
93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3918
SELECT DISTINCT + 19 + - 99 DIV 43
----
17

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + 19 + - 99 / 43
----
17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3920
SELECT DISTINCT ( + - 38 ) DIV + 12 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT ( + - 38 ) / + 12 AS col2
----
-3

query I rowsort
SELECT DISTINCT 10 * 85 + + 76 AS col0
----
926

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT ALL 87 * - MAX( ALL + ( + + 5 ) ) + + + 82 AS col1
----
-353

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL 87 * - MAX ( ALL + ( + + 5 ) ) + + + 82 AS col1
----
-353

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT MAX( + COALESCE ( + 70, 74 * + ( + + 50 ) + + 47 ) ) * 81 * + + 7 + - + 65 AS col1
----
39625

skipif mysql # not compatible
query I rowsort label-3923
SELECT MAX ( + COALESCE ( + 70, 74 * + ( + + 50 ) + + 47 ) ) * 81 * + + 7 + - + 65 AS col1
----
39625

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT DISTINCT 36 * - CASE - + 42 WHEN 15 THEN + + 24 - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT 36 * - CASE - + 42 WHEN 15 THEN + + 24 - - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT 17 * + - COUNT( * ) + 46 + - 50 - ( - COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-3925
SELECT 17 * + - COUNT ( * ) + 46 + - 50 - ( - COUNT ( * ) )
----
-20

query I rowsort
SELECT 83 - - 98
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3927
SELECT + MAX( + 65 ) DIV 74 + - NULLIF ( - - 65, + 45 + - NULLIF ( + CAST( NULL AS SIGNED ), - - 32 * - CAST( NULL AS SIGNED ) * - ( AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) ) ) + + 22 + - - 89 * 20 ) - + 80 AS col0, 34 + + ( + COUNT( * ) ) AS col0
----
-145
35

skipif mysql # not compatible
query II rowsort label-3927
SELECT + MAX ( + 65 ) / 74 + - NULLIF ( - - 65, + 45 + - NULLIF ( + CAST ( NULL AS INTEGER ), - - 32 * - CAST ( NULL AS INTEGER ) * - ( AVG ( DISTINCT - CAST ( NULL AS REAL ) ) ) ) + + 22 + - - 89 * 20 ) - + 80 AS col0, 34 + + ( + COUNT ( * ) ) AS col0
----
-145
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + 11 * + + 23 * - + 31 - COUNT( * ) AS col2
----
-7844

skipif mysql # not compatible
query I rowsort label-3928
SELECT + 11 * + + 23 * - + 31 - COUNT ( * ) AS col2
----
-7844

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3929
SELECT ALL CAST( NULL AS SIGNED ) * - 98 / + 34 - + 82 AS col1, - 54 AS col2
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-3929
SELECT ALL CAST ( NULL AS INTEGER ) * - 98 / + 34 - + 82 AS col1, - 54 AS col2
----
NULL
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT + 53 + + 45 + - CAST( NULL AS SIGNED ) + - 15 + 28 * - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT + 53 + + 45 + - CAST ( NULL AS INTEGER ) + - 15 + 28 * - 7 AS col1
----
NULL

query II rowsort
SELECT + 10, 14 * - + ( 77 ) col2
----
10
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT + 71 * - + 36 * + COUNT( * )
----
-2556

skipif mysql # not compatible
query I rowsort label-3932
SELECT + 71 * - + 36 * + COUNT ( * )
----
-2556

query I rowsort
SELECT - 77 * + 23 AS col1
----
-1771

query I rowsort
SELECT DISTINCT 94 * 49 * 40
----
184240

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT 54 * - + ( + - 18 ) + CAST( 66 AS SIGNED ) + + 22 AS col1
----
1060

skipif mysql # not compatible
query I rowsort label-3936
SELECT 54 * - + ( + - 18 ) + CAST ( 66 AS INTEGER ) + + 22 AS col1
----
1060

query I rowsort
SELECT ALL 67 * 29 - - - 36 + + COALESCE ( 96, + - 37 )
----
2003

query II rowsort
SELECT DISTINCT + 30 AS col1, - 91 AS col2
----
30
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL - 96 * - MIN( - 14 ) - + 77 AS col1
----
-1421

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL - 96 * - MIN ( - 14 ) - + 77 AS col1
----
-1421

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT + COALESCE ( + 7, COUNT( - 99 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3940
SELECT + COALESCE ( + 7, COUNT ( - 99 ) ) AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3941
SELECT ALL + CASE - - 38 WHEN - CASE COUNT( * ) WHEN + 15 THEN NULL WHEN - 93 + + 28 + - 27 * - CASE + AVG ( 61 ) WHEN + 14 + + - MIN( DISTINCT + - 47 ) THEN + + 16 END + + 94 THEN - COUNT( * ) * ( - - 55 ) + + COALESCE ( - 98, - 90 * + - 82 ) ELSE NULL END THEN + - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL + CASE - - 38 WHEN - CASE COUNT ( * ) WHEN + 15 THEN NULL WHEN - 93 + + 28 + - 27 * - CASE + AVG ( 61 ) WHEN + 14 + + - MIN ( DISTINCT + - 47 ) THEN + + 16 END + + 94 THEN - COUNT ( * ) * ( - - 55 ) + + COALESCE ( - 98, - 90 * + - 82 ) ELSE NULL END THEN + - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT 91 * MAX( - 15 ) + + 69 + - + 94
----
-1390

skipif mysql # not compatible
query I rowsort label-3942
SELECT 91 * MAX ( - 15 ) + + 69 + - + 94
----
-1390

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL - MAX( DISTINCT 3 ) * - 99
----
297

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL - MAX ( DISTINCT 3 ) * - 99
----
297

query I rowsort
SELECT DISTINCT + + 38 * + - 39 AS col1
----
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL ( - COUNT( + COALESCE ( - - 73, 14 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL ( - COUNT ( + COALESCE ( - - 73, 14 ) ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3946
SELECT - + 97 + + 53 * - 15 DIV + ( COUNT( * ) ) AS col2
----
-892

skipif mysql # not compatible
query I rowsort label-3946
SELECT - + 97 + + 53 * - 15 / + ( COUNT ( * ) ) AS col2
----
-892

query I rowsort
SELECT - + 39 * 93 col0
----
-3627

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL + - 8 * - 22 - COUNT( * ) AS col0
----
175

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL + - 8 * - 22 - COUNT ( * ) AS col0
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3949
SELECT ALL + 11 + + - CASE - 91 WHEN - + COALESCE ( + + 82, 31 + - 91, 94 ) * - 96 * - 58 / - 94 THEN NULL WHEN + 46 THEN - CAST( + 18 AS SIGNED ) * - + 25 + - - CAST( COUNT( * ) AS SIGNED ) * - 65 * - 46 * + + 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + 11 + + - CASE - 91 WHEN - + COALESCE ( + + 82, 31 + - 91, 94 ) * - 96 * - 58 / - 94 THEN NULL WHEN + 46 THEN - CAST ( + 18 AS INTEGER ) * - + 25 + - - CAST ( COUNT ( * ) AS INTEGER ) * - 65 * - 46 * + + 88 END
----
NULL

query II rowsort
SELECT ALL + COALESCE ( 17, + 9 + - 1 * 30 + + + 53 ) AS col0, 65 + CASE - 71 WHEN 70 * - AVG ( DISTINCT - 5 ) + - 63 THEN + 61 END
----
17
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT - 65 AS col0, - ( - - CASE COUNT( * ) WHEN - 50 * CASE 8 WHEN + + 33 THEN + COUNT( * ) * + - 2 END THEN + COUNT( * ) * 72 * - 75 + - COUNT( 33 ) + - + 89 + - 53 * - 37 WHEN - ( - SUM( + 13 ) ) * - 27 THEN - 17 ELSE NULL END ) - + - 17 * 13
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-3951
SELECT - 65 AS col0, - ( - - CASE COUNT ( * ) WHEN - 50 * CASE 8 WHEN + + 33 THEN + COUNT ( * ) * + - 2 END THEN + COUNT ( * ) * 72 * - 75 + - COUNT ( 33 ) + - + 89 + - 53 * - 37 WHEN - ( - SUM ( + 13 ) ) * - 27 THEN - 17 ELSE NULL END ) - + - 17 * 13
----
-65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT - ( + COALESCE ( 76, + + COUNT( * ) + - ( + 82 ) ) ) + + COUNT( ALL + NULLIF ( 43, - 36 + + - CASE ( + 78 ) WHEN 67 THEN + 9 * + 34 ELSE NULL END * + 23 ) ) - + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-3952
SELECT - ( + COALESCE ( 76, + + COUNT ( * ) + - ( + 82 ) ) ) + + COUNT ( ALL + NULLIF ( 43, - 36 + + - CASE ( + 78 ) WHEN 67 THEN + 9 * + 34 ELSE NULL END * + 23 ) ) - + COUNT ( * )
----
-76

query II rowsort
SELECT + 15, - 91 AS col1
----
15
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT - MIN( DISTINCT + 4 ) + - + 84 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3954
SELECT - MIN ( DISTINCT + 4 ) + - + 84 AS col0
----
-88

query I rowsort
SELECT ALL + - 83 + + 45
----
-38

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

skipif mysql # not compatible
query I rowsort label-3956
SELECT - - MAX ( ALL - 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT + 93 + + 24 + - 64 + + 28 * COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3957
SELECT + 93 + + 24 + - 64 + + 28 * COUNT ( * ) AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3958
SELECT - - COUNT( ALL + + CAST( 72 AS SIGNED ) ) + CASE WHEN NOT - 37 NOT BETWEEN ( - COALESCE ( + CASE - - 96 WHEN - + 45 + COUNT( * ) - - COUNT( * ) * 20 * + + 98 THEN + 5 / - 91 + - - MIN( - 34 ) + + 49 / 24 WHEN 97 * - AVG ( DISTINCT + + 3 ) * - 57 THEN NULL ELSE NULL END, - - CAST( + 83 AS SIGNED ) + COUNT( * ), SUM( ALL 76 ) ) ) AND 87 THEN 32 * 85 ELSE 15 END + ( + 55 ) * 76 AS col2
----
6901

skipif mysql # not compatible
query I rowsort label-3958
SELECT - - COUNT ( ALL + + CAST ( 72 AS INTEGER ) ) + CASE WHEN NOT - 37 NOT BETWEEN ( - COALESCE ( + CASE - - 96 WHEN - + 45 + COUNT ( * ) - - COUNT ( * ) * 20 * + + 98 THEN + 5 / - 91 + - - MIN ( - 34 ) + + 49 / 24 WHEN 97 * - AVG ( DISTINCT + + 3 ) * - 57 THEN NULL ELSE NULL END, - - CAST ( + 83 AS INTEGER ) + COUNT ( * ), SUM ( ALL 76 ) ) ) AND 87 THEN 32 * 85 ELSE 15 END + ( + 55 ) * 76 AS col2
----
6901

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3959
SELECT ALL + CAST( NULL AS SIGNED ) + - 53 + + - CAST( NULL AS DECIMAL ) / + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL + CAST ( NULL AS INTEGER ) + - 53 + + - CAST ( NULL AS REAL ) / + 5 AS col2
----
NULL

query I rowsort
SELECT - + 96 + + 31 * 70
----
2074

query I rowsort
SELECT ALL + + 91 + - 28 + - 11 AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3962
SELECT ALL - COUNT( * ) * - 4 + - + CASE - 61 WHEN + 35 THEN - 40 END, + 52 AS col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-3962
SELECT ALL - COUNT ( * ) * - 4 + - + CASE - 61 WHEN + 35 THEN - 40 END, + 52 AS col0
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL 12 - - COALESCE ( 17, + - SUM( DISTINCT - - ( + 36 ) ) * + 98 ) col1
----
29

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL 12 - - COALESCE ( 17, + - SUM ( DISTINCT - - ( + 36 ) ) * + 98 ) col1
----
29

query II rowsort
SELECT - + 76 AS col0, ( - + 84 )
----
-76
-84

query I rowsort
SELECT ALL - 66 * 35
----
-2310

query I rowsort
SELECT DISTINCT + 66 - ( - + 10 ) * - + 20
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT - MIN( ALL - 31 ) col2
----
31

skipif mysql # not compatible
query I rowsort label-3967
SELECT - MIN ( ALL - 31 ) col2
----
31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3968
SELECT - 45 * + ( + 62 ) + - CAST( 84 AS SIGNED ) DIV - 52 AS col1
----
-2789

skipif mysql # not compatible
query I rowsort label-3968
SELECT - 45 * + ( + 62 ) + - CAST ( 84 AS INTEGER ) / - 52 AS col1
----
-2789

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3969
SELECT + MIN( DISTINCT - + 3 ) DIV 37 * + 5 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT + MIN ( DISTINCT - + 3 ) / 37 * + 5 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3970
SELECT DISTINCT + COALESCE ( + COUNT( * ), + - CAST( - 87 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + COALESCE ( + COUNT ( * ), + - CAST ( - 87 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT ALL COUNT( * ) * + + 60, - 67 AS col1
----
60
-67

skipif mysql # not compatible
query II rowsort label-3971
SELECT ALL COUNT ( * ) * + + 60, - 67 AS col1
----
60
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT ALL COUNT( * ) * 80 AS col2, 98 * - + 87 - NULLIF ( - 29, + - 91 + + 3 + - MAX( ALL + 88 ) ) AS col0
----
80
-8497

skipif mysql # not compatible
query II rowsort label-3972
SELECT ALL COUNT ( * ) * 80 AS col2, 98 * - + 87 - NULLIF ( - 29, + - 91 + + 3 + - MAX ( ALL + 88 ) ) AS col0
----
80
-8497

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT + ( - - 93 ) DIV 16
----
5

skipif mysql # not compatible
query I rowsort label-3973
SELECT + ( - - 93 ) / 16
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3974
SELECT DISTINCT 47 DIV - NULLIF ( COUNT( * ), 77 )
----
-47

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT 47 / - NULLIF ( COUNT ( * ), 77 )
----
-47

query I rowsort
SELECT ALL 11 * - ( + - 29 ) AS col0
----
319

query I rowsort
SELECT + 17 * - 48 AS col0
----
-816

query I rowsort
SELECT + ( + 65 ) - 6
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3978
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), + 95 * + 36 * + 99 * - - 95, + ( + - COUNT( * ) ) + + 7 + + + 92 - + + 54 * + - 23 DIV - CASE + 19 WHEN - 79 THEN NULL ELSE - - 72 END DIV - 43 )
----
32165100

skipif mysql # not compatible
query I rowsort label-3978
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), + 95 * + 36 * + 99 * - - 95, + ( + - COUNT ( * ) ) + + 7 + + + 92 - + + 54 * + - 23 / - CASE + 19 WHEN - 79 THEN NULL ELSE - - 72 END / - 43 )
----
32165100

onlyif mysql # aggregate syntax: 
query II rowsort label-3979
SELECT ( - COUNT( * ) ) AS col1, 66 * + + 94 AS col1
----
-1
6204

skipif mysql # not compatible
query II rowsort label-3979
SELECT ( - COUNT ( * ) ) AS col1, 66 * + + 94 AS col1
----
-1
6204

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL 76 * + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL 76 * + COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3981
SELECT - 87 + + COUNT( * ) + + - ( - 11 ) DIV + 23 + - 57 * - 5 * 62
----
17584

skipif mysql # not compatible
query I rowsort label-3981
SELECT - 87 + + COUNT ( * ) + + - ( - 11 ) / + 23 + - 57 * - 5 * 62
----
17584

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT ( - NULLIF ( + COUNT( * ), - + 72 * + COUNT( * ) ) ) AS col0, 48
----
-1
48

skipif mysql # not compatible
query II rowsort label-3982
SELECT ( - NULLIF ( + COUNT ( * ), - + 72 * + COUNT ( * ) ) ) AS col0, 48
----
-1
48

query I rowsort
SELECT ALL + 59 * - 73 + - - 83 AS col1
----
-4224

query I rowsort
SELECT + 34 - - + ( 41 )
----
75

query I rowsort
SELECT ALL 40 * + - 96 AS col1
----
-3840

query II rowsort
SELECT + 14 * + 97 col2, - 79 * 4 * - 20 AS col1
----
1358
6320

query I rowsort
SELECT + - 68 - - 77 * + 53 AS col2
----
4013

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

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

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

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - - 10 * + COUNT ( * ) / - 21 + 19
----
19

query I rowsort
SELECT + 80 * - + 99 * - + 20 * + ( + 16 )
----
2534400

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

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL + COUNT ( * ) * - + 94 AS col2
----
-94

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

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

query I rowsort
SELECT ALL + 61 * + 65
----
3965

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT - COALESCE ( + ( 40 ), - 64 + + - MAX( ALL 85 ) ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT - COALESCE ( + ( 40 ), - 64 + + - MAX ( ALL 85 ) ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3995
SELECT DISTINCT + COUNT( * ) - - - 83 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT + COUNT ( * ) - - - 83 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

query I rowsort
SELECT ALL - 70 * - + 67 AS col0
----
4690

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT 75 DIV + + 20 - + 37
----
-34

skipif mysql # not compatible
query I rowsort label-3999
SELECT 75 / + + 20 - + 37
----
-34

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

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

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

query I rowsort
SELECT 73 - - - 25 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT 76 * 14 * + COUNT( * ) AS col1
----
1064

skipif mysql # not compatible
query I rowsort label-4003
SELECT 76 * 14 * + COUNT ( * ) AS col1
----
1064

query I rowsort
SELECT ALL + 90 * + 65 col2
----
5850

query I rowsort
SELECT 82 - + 95 AS col2
----
-13

query I rowsort
SELECT 92 + 20 AS col1
----
112

query II rowsort
SELECT - 11 AS col1, - 75 + + 82 AS col2
----
-11
7

query I rowsort
SELECT 54 * + + 37 - + 19
----
1979

onlyif mysql # aggregate syntax: 
query II rowsort label-4009
SELECT + 22 AS col2, + 11 + - COUNT( * )
----
22
10

skipif mysql # not compatible
query II rowsort label-4009
SELECT + 22 AS col2, + 11 + - COUNT ( * )
----
22
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4010
SELECT 91 + - + CASE - - SUM( - 72 ) WHEN + 47 THEN NULL WHEN MIN( - 4 ) THEN COUNT( * ) WHEN 9 + + - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END + - + COUNT( * ) + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-4010
SELECT 91 + - + CASE - - SUM ( - 72 ) WHEN + 47 THEN NULL WHEN MIN ( - 4 ) THEN COUNT ( * ) WHEN 9 + + - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END + - + COUNT ( * ) + + 4
----
NULL

query I rowsort
SELECT ALL 69 + 32
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT ALL ( 28 ) + + 95 + + CASE + COUNT( * ) WHEN - + MIN( DISTINCT - ( - 1 ) ) THEN + + 41 WHEN COALESCE ( + 8, 64 ) / + + 50 THEN - 17 / - - NULLIF ( + CASE + + 11 WHEN + NULLIF ( - + COUNT( * ), + - 83 + + + COUNT( * ) - - 50 - - - ( 11 ) ) THEN + 29 ELSE NULL END, + 20 + - + 44 ) WHEN + ( + 46 ) - - ( CASE 33 WHEN + 88 THEN NULL WHEN MAX( - 75 ) THEN + 27 + - 91 ELSE - SUM( CAST( 50 AS SIGNED ) ) END + + 1 * ( + SUM( DISTINCT 89 ) ) ) THEN NULL END / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL ( 28 ) + + 95 + + CASE + COUNT ( * ) WHEN - + MIN ( DISTINCT - ( - 1 ) ) THEN + + 41 WHEN COALESCE ( + 8, 64 ) / + + 50 THEN - 17 / - - NULLIF ( + CASE + + 11 WHEN + NULLIF ( - + COUNT ( * ), + - 83 + + + COUNT ( * ) - - 50 - - - ( 11 ) ) THEN + 29 ELSE NULL END, + 20 + - + 44 ) WHEN + ( + 46 ) - - ( CASE 33 WHEN + 88 THEN NULL WHEN MAX ( - 75 ) THEN + 27 + - 91 ELSE - SUM ( CAST ( 50 AS INTEGER ) ) END + + 1 * ( + SUM ( DISTINCT 89 ) ) ) THEN NULL END / 48
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT ALL - CAST( + + 91 AS SIGNED ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - CAST ( + + 91 AS INTEGER ) AS col0
----
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4015
SELECT 28 * 80 + - - 22 + - 23 DIV - 20 AS col1
----
2263

skipif mysql # not compatible
query I rowsort label-4015
SELECT 28 * 80 + - - 22 + - 23 / - 20 AS col1
----
2263

query I rowsort
SELECT DISTINCT 46 * + 39 + + 2 * + 53 * - 26 - + 11 AS col2
----
-973

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT - COUNT( * ) + 48 + + 23 + 93 * - 8 AS col0
----
-674

skipif mysql # not compatible
query I rowsort label-4017
SELECT - COUNT ( * ) + 48 + + 23 + 93 * - 8 AS col0
----
-674

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL 86 + + NULLIF ( - 47, - COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL 86 + + NULLIF ( - 47, - COUNT ( * ) )
----
39

query I rowsort
SELECT + 64 + 5
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4020
SELECT + 39 + - 65 + 5 col1, COUNT( * ) AS col1
----
-21
1

skipif mysql # not compatible
query II rowsort label-4020
SELECT + 39 + - 65 + 5 col1, COUNT ( * ) AS col1
----
-21
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4021
SELECT - + 21 * - 39 + NULLIF ( + - 79, - CAST( - 37 AS SIGNED ) + + CAST( NULL AS DECIMAL ) ) col2
----
740

skipif mysql # not compatible
query I rowsort label-4021
SELECT - + 21 * - 39 + NULLIF ( + - 79, - CAST ( - 37 AS INTEGER ) + + CAST ( NULL AS REAL ) ) col2
----
740

query I rowsort
SELECT + ( + 90 ) * - NULLIF ( - + 11, 1 * - 55 * - 60 )
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - COUNT( * ) * 80 * - 68 + + 94 + - - 85 col2
----
5619

skipif mysql # not compatible
query I rowsort label-4023
SELECT - COUNT ( * ) * 80 * - 68 + + 94 + - - 85 col2
----
5619

query I rowsort
SELECT DISTINCT 26 * + - 31 AS col1
----
-806

query I rowsort
SELECT + + NULLIF ( 54, - COALESCE ( - 29, + - 40 + + 50 * - ( + 31 ) ) ) * 48 + - + 63
----
2529

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT MAX( DISTINCT 26 ) + + 73 * - 82 * + + 23
----
-137652

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT MAX ( DISTINCT 26 ) + + 73 * - 82 * + + 23
----
-137652

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT - ( 23 ) + - 94 + - - ( + COUNT( * ) ) AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-4027
SELECT - ( 23 ) + - 94 + - - ( + COUNT ( * ) ) AS col0
----
-116

query II rowsort
SELECT DISTINCT - 62 AS col0, + 50 * + - 61 AS col1
----
-62
-3050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4029
SELECT DISTINCT - COALESCE ( + 52, 6 * - + 85 + 35 + - 70 DIV - + 10 * + 35 - + 61 * NULLIF ( + - 87, + COUNT( * ) DIV COUNT( * ) ) * + 69, + + 20 ) * - + 70 * + 59 + - COUNT( * ) * - - 81 * + + 78
----
208442

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - COALESCE ( + 52, 6 * - + 85 + 35 + - 70 / - + 10 * + 35 - + 61 * NULLIF ( + - 87, + COUNT ( * ) / COUNT ( * ) ) * + 69, + + 20 ) * - + 70 * + 59 + - COUNT ( * ) * - - 81 * + + 78
----
208442

query I rowsort
SELECT - 32 * 8 + - + 91 + - 49 * - 48 AS col1
----
2005

query I rowsort
SELECT ALL 15 - - 30
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT + NULLIF ( + 41, - 91 / + CASE + + 84 WHEN + 38 * - 6 THEN 90 WHEN - AVG ( - 40 ) + - 22 * + - 4 THEN 27 ELSE - CASE WHEN NOT 71 <> NULL THEN + COUNT( * ) END END - + - 59 * - - 45 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4032
SELECT + NULLIF ( + 41, - 91 / + CASE + + 84 WHEN + 38 * - 6 THEN 90 WHEN - AVG ( - 40 ) + - 22 * + - 4 THEN 27 ELSE - CASE WHEN NOT 71 <> NULL THEN + COUNT ( * ) END END - + - 59 * - - 45 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT COALESCE ( SUM( ALL + NULLIF ( 42, COALESCE ( - 92, + 35 ) ) ), + + COALESCE ( + COALESCE ( 19, - 85 - - 4 + + 75 * - 57 ), - - 29 ) - - 94 + 64 - + 20 ) + + 77 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-4033
SELECT COALESCE ( SUM ( ALL + NULLIF ( 42, COALESCE ( - 92, + 35 ) ) ), + + COALESCE ( + COALESCE ( 19, - 85 - - 4 + + 75 * - 57 ), - - 29 ) - - 94 + 64 - + 20 ) + + 77 AS col0
----
119

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4034
SELECT DISTINCT ( + 74 ) - + 17 AS col2, CASE - 10 WHEN + 93 + + CASE + COALESCE ( + 88, 95, + + 90 ) WHEN + 65 / - 55 THEN NULL WHEN + CAST( + + 28 AS DECIMAL ) * + + MAX( + 57 ) THEN + - 71 * - 37 + 42 / + + 15 END + + 83 THEN + COUNT( * ) + - 25 * COUNT( * ) + - - 34 WHEN + COUNT( * ) THEN NULL ELSE 21 * ( - COUNT( - 95 ) * + CASE + 0 + 11 WHEN + 21 * COUNT( * ) + 54 THEN NULL WHEN + COUNT( * ) THEN 30 / - 7 ELSE NULL END ) END
----
57
NULL

skipif mysql # not compatible
query II rowsort label-4034
SELECT DISTINCT ( + 74 ) - + 17 AS col2, CASE - 10 WHEN + 93 + + CASE + COALESCE ( + 88, 95, + + 90 ) WHEN + 65 / - 55 THEN NULL WHEN + CAST ( + + 28 AS REAL ) * + + MAX ( + 57 ) THEN + - 71 * - 37 + 42 / + + 15 END + + 83 THEN + COUNT ( * ) + - 25 * COUNT ( * ) + - - 34 WHEN + COUNT ( * ) THEN NULL ELSE 21 * ( - COUNT ( - 95 ) * + CASE + 0 + 11 WHEN + 21 * COUNT ( * ) + 54 THEN NULL WHEN + COUNT ( * ) THEN 30 / - 7 ELSE NULL END ) END
----
57
NULL

query I rowsort
SELECT + 8 * + 53 + - 62 + 56
----
418

query I rowsort
SELECT 90 + - 43
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4037
SELECT - + CASE 5 WHEN - - CAST( - 56 AS SIGNED ) * + 30 THEN NULL WHEN + ( + + 21 ) THEN 41 END AS col1, 94 + - 35 AS col2
----
NULL
59

skipif mysql # not compatible
query II rowsort label-4037
SELECT - + CASE 5 WHEN - - CAST ( - 56 AS INTEGER ) * + 30 THEN NULL WHEN + ( + + 21 ) THEN 41 END AS col1, 94 + - 35 AS col2
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL + 58 * - NULLIF ( + + COUNT( * ), - + COALESCE ( + NULLIF ( + ( - ( 72 ) ), - - 63 / - 57 ), - - 23 ) * + - 31 ) * 61
----
-3538

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL + 58 * - NULLIF ( + + COUNT ( * ), - + COALESCE ( + NULLIF ( + ( - ( 72 ) ), - - 63 / - 57 ), - - 23 ) * + - 31 ) * 61
----
-3538

query II rowsort
SELECT DISTINCT 71 * + 65, 8 * + + 49 AS col1
----
4615
392

query I rowsort
SELECT 1 * - ( + - 12 ) col0
----
12

query I rowsort
SELECT DISTINCT + 4 * ( - 50 ) AS col2
----
-200

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

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

query I rowsort
SELECT 17 + - 8 + + - 72
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-4044
SELECT 91 DIV + + 45 AS col1, 34 AS col2
----
2
34

skipif mysql # not compatible
query II rowsort label-4044
SELECT 91 / + + 45 AS col1, 34 AS col2
----
2
34

query I rowsort
SELECT ALL + 37 * + - 49 + 94
----
-1719

query I rowsort
SELECT ALL - 87 * 98 + + + 71 col1
----
-8455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4047
SELECT DISTINCT + COUNT( * ) * 49 + 63 DIV + NULLIF ( + - 86, - - 72 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT + COUNT ( * ) * 49 + 63 / + NULLIF ( + - 86, - - 72 ) AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT ALL CAST( NULL AS SIGNED ) * + + 23 * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL CAST ( NULL AS INTEGER ) * + + 23 * - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT + ( + 83 ) - 37 - + COUNT( * ) + - 59 * - - 55 * - 50 + - - 84 + 27 AS col0
----
162406

skipif mysql # not compatible
query I rowsort label-4049
SELECT + ( + 83 ) - 37 - + COUNT ( * ) + - 59 * - - 55 * - 50 + - - 84 + 27 AS col0
----
162406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4050
SELECT 91 * 70 + - ( + 85 ) DIV 10 * + + MAX( DISTINCT + 76 ) * 48 + 41 * - + 6
----
-23060

skipif mysql # not compatible
query I rowsort label-4050
SELECT 91 * 70 + - ( + 85 ) / 10 * + + MAX ( DISTINCT + 76 ) * 48 + 41 * - + 6
----
-23060

query I rowsort
SELECT - 45 + + - 92 * + + 78
----
-7221

onlyif mysql # aggregate syntax: 
query II rowsort label-4052
SELECT + MAX( ALL - + 92 ) AS col0, + 56 AS col0
----
-92
56

skipif mysql # not compatible
query II rowsort label-4052
SELECT + MAX ( ALL - + 92 ) AS col0, + 56 AS col0
----
-92
56

query I rowsort
SELECT ALL ( - 74 ) - - - 69 AS col1
----
-143

query I rowsort
SELECT - 89 * 55
----
-4895

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4056
SELECT ALL - NULLIF ( CASE + - 11 WHEN + 6 THEN - NULLIF ( - - 67, COUNT( * ) ) * NULLIF ( + + 93, - 58 * + CAST( NULL AS SIGNED ) ) END, + + 89 - - NULLIF ( + 63, 87 ) ) * - + NULLIF ( + 7, 79 + 46 + COALESCE ( + CAST( NULL AS DECIMAL ), - - SUM( 93 ) ) * + ( + NULLIF ( - CAST( + 92 AS SIGNED ), AVG ( ALL - + 36 ) ) ) * CAST( 33 + - 48 AS SIGNED ) ) * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - NULLIF ( CASE + - 11 WHEN + 6 THEN - NULLIF ( - - 67, COUNT ( * ) ) * NULLIF ( + + 93, - 58 * + CAST ( NULL AS INTEGER ) ) END, + + 89 - - NULLIF ( + 63, 87 ) ) * - + NULLIF ( + 7, 79 + 46 + COALESCE ( + CAST ( NULL AS REAL ), - - SUM ( 93 ) ) * + ( + NULLIF ( - CAST ( + 92 AS INTEGER ), AVG ( ALL - + 36 ) ) ) * CAST ( 33 + - 48 AS INTEGER ) ) * - 51
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT - NULLIF ( + 84, ( + CAST( + 89 AS SIGNED ) ) ) * + 34 + - 55 + 98 * - - 1 + 72 AS col1
----
-2741

skipif mysql # not compatible
query I rowsort label-4058
SELECT - NULLIF ( + 84, ( + CAST ( + 89 AS INTEGER ) ) ) * + 34 + - 55 + 98 * - - 1 + 72 AS col1
----
-2741

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

query I rowsort
SELECT - - ( 46 ) + 10 AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT + - 84 DIV - ( - 13 )
----
-6

skipif mysql # not compatible
query I rowsort label-4061
SELECT + - 84 / - ( - 13 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4062
SELECT ALL + 78 * - 40 DIV + COUNT( * ) AS col2
----
-3120

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + 78 * - 40 / + COUNT ( * ) AS col2
----
-3120

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT - 92 * - 88 + + + 41 DIV + - 76 AS col1
----
8096

skipif mysql # not compatible
query I rowsort label-4063
SELECT - 92 * - 88 + + + 41 / + - 76 AS col1
----
8096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4064
SELECT + CASE - + 22 WHEN + 62 / CAST( NULL AS SIGNED ) + - + MIN( ALL - 53 ) THEN COUNT( DISTINCT + + 12 ) ELSE NULL END * - 36 * 58 * COUNT( * ) * - + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT + CASE - + 22 WHEN + 62 / CAST ( NULL AS INTEGER ) + - + MIN ( ALL - 53 ) THEN COUNT ( DISTINCT + + 12 ) ELSE NULL END * - 36 * 58 * COUNT ( * ) * - + 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4065
SELECT + + NULLIF ( - SUM( + - 62 ), - COUNT( * ) * - + 61 + - + 75 ) - - ( + NULLIF ( 29, - COUNT( * ) ) ) AS col1, 64 AS col1
----
91
64

skipif mysql # not compatible
query II rowsort label-4065
SELECT + + NULLIF ( - SUM ( + - 62 ), - COUNT ( * ) * - + 61 + - + 75 ) - - ( + NULLIF ( 29, - COUNT ( * ) ) ) AS col1, 64 AS col1
----
91
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4066
SELECT + 5 * - 11 AS col1, CAST( NULL AS SIGNED ) col2
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-4066
SELECT + 5 * - 11 AS col1, CAST ( NULL AS INTEGER ) col2
----
-55
NULL

query I rowsort
SELECT ALL 45 * - 48
----
-2160

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

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

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

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

query I rowsort
SELECT ALL 30 * + COALESCE ( - - 88, - - 57 * - - 57 ) AS col0
----
2640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4071
SELECT ALL 49 col1, - CAST( + + 6 AS SIGNED ) + + 92 + 6 AS col2
----
49
92

skipif mysql # not compatible
query II rowsort label-4071
SELECT ALL 49 col1, - CAST ( + + 6 AS INTEGER ) + + 92 + 6 AS col2
----
49
92

query II rowsort
SELECT 83 AS col1, - 29
----
83
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4073
SELECT + COUNT( * ) + - MIN( ALL 63 ) / + ( + CASE + + 68 WHEN - COALESCE ( + 80, - - SUM( ALL - - 74 ) ) / + 9 THEN + 45 WHEN 98 THEN - CAST( NULL AS SIGNED ) + 37 * 83 ELSE NULL END ) * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT + COUNT ( * ) + - MIN ( ALL 63 ) / + ( + CASE + + 68 WHEN - COALESCE ( + 80, - - SUM ( ALL - - 74 ) ) / + 9 THEN + 45 WHEN 98 THEN - CAST ( NULL AS INTEGER ) + 37 * 83 ELSE NULL END ) * - 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT - NULLIF ( + COUNT( DISTINCT 8 ), + + 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-4074
SELECT - NULLIF ( + COUNT ( DISTINCT 8 ), + + 26 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + CASE + 9 WHEN 20 THEN + 27 WHEN + CASE - 43 WHEN - - COUNT( * ) THEN 14 END * - 94 THEN NULL END + + 55 + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT + CASE + 9 WHEN 20 THEN + 27 WHEN + CASE - 43 WHEN - - COUNT ( * ) THEN 14 END * - 94 THEN NULL END + + 55 + + 92
----
NULL

query I rowsort
SELECT ALL 53 + - 49 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4078
SELECT + 58 - 42 * CAST( NULL AS SIGNED ) * 34 * - COUNT( * ) AS col2, 23 AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4078
SELECT + 58 - 42 * CAST ( NULL AS INTEGER ) * 34 * - COUNT ( * ) AS col2, 23 AS col0
----
NULL
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4079
SELECT ALL 64 DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL 64 / + 97 AS col1
----
0

query I rowsort
SELECT + 35 + - 2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT ALL COUNT( - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL COUNT ( - 71 )
----
1

query I rowsort
SELECT ALL 17 + - 55 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT + 92 * - + 45 * + - COUNT( * ) AS col1
----
4140

skipif mysql # not compatible
query I rowsort label-4083
SELECT + 92 * - + 45 * + - COUNT ( * ) AS col1
----
4140

query I rowsort
SELECT + 51 + - - 43 AS col0
----
94

query I rowsort
SELECT + 70 * 0 + 53 + + 46 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT - COUNT( * ) + ( + ( - - 53 ) ) + + + 35 + - 65
----
22

skipif mysql # not compatible
query I rowsort label-4086
SELECT - COUNT ( * ) + ( + ( - - 53 ) ) + + + 35 + - 65
----
22

query I rowsort
SELECT ALL 74 * + - 64 - ( 20 ) + - 39 AS col0
----
-4795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4088
SELECT DISTINCT + 40, CASE COALESCE ( - - 87, - 7, - 78, + 85 ) WHEN - - 27 * + 0 * COALESCE ( - 40, + 34 ) * - 52 THEN + 6 * + 66 + + 28 * - - SUM( DISTINCT CAST( - 47 AS SIGNED ) ) ELSE NULL END AS col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-4088
SELECT DISTINCT + 40, CASE COALESCE ( - - 87, - 7, - 78, + 85 ) WHEN - - 27 * + 0 * COALESCE ( - 40, + 34 ) * - 52 THEN + 6 * + 66 + + 28 * - - SUM ( DISTINCT CAST ( - 47 AS INTEGER ) ) ELSE NULL END AS col2
----
40
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT + COALESCE ( + - 39, + 48, - CASE - + 81 WHEN - CASE 35 WHEN - 6 THEN - COUNT( DISTINCT + 47 ) END + - 92 * - 86 THEN + - 15 WHEN 97 THEN NULL ELSE NULL END )
----
-39

skipif mysql # not compatible
query I rowsort label-4090
SELECT + COALESCE ( + - 39, + 48, - CASE - + 81 WHEN - CASE 35 WHEN - 6 THEN - COUNT ( DISTINCT + 47 ) END + - 92 * - 86 THEN + - 15 WHEN 97 THEN NULL ELSE NULL END )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4091
SELECT + - CAST( - 44 AS SIGNED ) DIV 41 * + MAX( ALL + 49 ) + - 56 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-4091
SELECT + - CAST ( - 44 AS INTEGER ) / 41 * + MAX ( ALL + 49 ) + - 56 AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4092
SELECT CASE 54 WHEN - 44 * + 55 + - + 75 + - + ( - 38 ) THEN - NULLIF ( + - 11, + - 9 + - + 90 * - - 87 ) + COUNT( * ) + 94 + CAST( NULL AS SIGNED ) + 28 - - 59 * + - 33 * - 44 * - + CASE 76 WHEN - 91 * - - 49 * + 89 THEN NULL WHEN - - COALESCE ( 69, - - 50 * - + AVG ( 46 ) ) * + 39 * - MAX( 14 ) + 57 THEN COUNT( * ) - 82 END * + ( 73 * 82 ) + + COALESCE ( 62, - 25 ) * 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT CASE 54 WHEN - 44 * + 55 + - + 75 + - + ( - 38 ) THEN - NULLIF ( + - 11, + - 9 + - + 90 * - - 87 ) + COUNT ( * ) + 94 + CAST ( NULL AS INTEGER ) + 28 - - 59 * + - 33 * - 44 * - + CASE 76 WHEN - 91 * - - 49 * + 89 THEN NULL WHEN - - COALESCE ( 69, - - 50 * - + AVG ( 46 ) ) * + 39 * - MAX ( 14 ) + 57 THEN COUNT ( * ) - 82 END * + ( 73 * 82 ) + + COALESCE ( 62, - 25 ) * 49 ELSE NULL END
----
NULL

query I rowsort
SELECT - 23 * + 41 AS col2
----
-943

query I rowsort
SELECT - 63 + - 10 * + + 73 AS col1
----
-793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT + - CAST( 60 AS SIGNED ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4095
SELECT + - CAST ( 60 AS INTEGER ) AS col0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4096
SELECT DISTINCT + 71, + 97 + + - CASE - + 67 WHEN - + 69 * - 12 + - + 79 THEN + CAST( NULL AS SIGNED ) * 75 + + 78 * 95 * + - 70 END col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-4096
SELECT DISTINCT + 71, + 97 + + - CASE - + 67 WHEN - + 69 * - 12 + - + 79 THEN + CAST ( NULL AS INTEGER ) * 75 + + 78 * 95 * + - 70 END col1
----
71
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4097
SELECT - 90 DIV - COUNT( * ) + + 64 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-4097
SELECT - 90 / - COUNT ( * ) + + 64 AS col2
----
154

query II rowsort
SELECT DISTINCT + 94 AS col2, 0 AS col1
----
94
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4099
SELECT ALL + 66 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + 66 / - 96
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4100
SELECT - - 61 + - 80 DIV MIN( + 88 ) * + SUM( DISTINCT - 73 ) + 38 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4100
SELECT - - 61 + - 80 / MIN ( + 88 ) * + SUM ( DISTINCT - 73 ) + 38 AS col2
----
99

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4102
SELECT MIN( - 47 ), - 7 col0
----
-47
-7

skipif mysql # not compatible
query II rowsort label-4102
SELECT MIN ( - 47 ), - 7 col0
----
-47
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT ALL - COUNT( * ) + - 13 AS col2, - COUNT( * ) * 23 * - 47 + - - 67
----
-14
1148

skipif mysql # not compatible
query II rowsort label-4103
SELECT ALL - COUNT ( * ) + - 13 AS col2, - COUNT ( * ) * 23 * - 47 + - - 67
----
-14
1148

onlyif mysql # aggregate syntax: 
query II rowsort label-4104
SELECT - COUNT( + + 48 ) / + + 33 + - 63 - + - ( 7 ) + - - 27 / - COUNT( * ) * - - CASE - 23 WHEN - 45 THEN - COUNT( * ) END, - 26 AS col2
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-4104
SELECT - COUNT ( + + 48 ) / + + 33 + - 63 - + - ( 7 ) + - - 27 / - COUNT ( * ) * - - CASE - 23 WHEN - 45 THEN - COUNT ( * ) END, - 26 AS col2
----
NULL
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT - NULLIF ( + + 81, - 85 + - CASE ( COALESCE ( 89, - 30 / + 81 * CAST( + - CASE + 9 WHEN - ( + 34 ) + COUNT( * ) - + 22 + - 44 THEN - MAX( ALL - 57 ) + - 90 WHEN + 26 THEN NULL ELSE NULL END AS SIGNED ) * + 28 + + CASE + + MAX( - ( - 7 ) ) WHEN + + 76 THEN - 49 + - + MIN( - 81 ) * + ( + 79 ) ELSE NULL END + 59 * 98 ) ) WHEN + COUNT( * ) * 16 THEN 33 WHEN 24 THEN NULL ELSE + 78 END + + 77 ) * + 29 + COUNT( * ) col2
----
-2348

skipif mysql # not compatible
query I rowsort label-4105
SELECT - NULLIF ( + + 81, - 85 + - CASE ( COALESCE ( 89, - 30 / + 81 * CAST ( + - CASE + 9 WHEN - ( + 34 ) + COUNT ( * ) - + 22 + - 44 THEN - MAX ( ALL - 57 ) + - 90 WHEN + 26 THEN NULL ELSE NULL END AS INTEGER ) * + 28 + + CASE + + MAX ( - ( - 7 ) ) WHEN + + 76 THEN - 49 + - + MIN ( - 81 ) * + ( + 79 ) ELSE NULL END + 59 * 98 ) ) WHEN + COUNT ( * ) * 16 THEN 33 WHEN 24 THEN NULL ELSE + 78 END + + 77 ) * + 29 + COUNT ( * ) col2
----
-2348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT + 47 + + NULLIF ( - - COALESCE ( + + COUNT( * ), - 49 + - 0, + MAX( + 90 ), 75 / 92 + + CAST( NULL AS SIGNED ) * + - 25 / + 13 ), - - COUNT( * ) ) + + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT + 47 + + NULLIF ( - - COALESCE ( + + COUNT ( * ), - 49 + - 0, + MAX ( + 90 ), 75 / 92 + + CAST ( NULL AS INTEGER ) * + - 25 / + 13 ), - - COUNT ( * ) ) + + 7 AS col1
----
NULL

query I rowsort
SELECT + 59 + 6 * + - 42 - + 33 * 27
----
-1084

query II rowsort
SELECT DISTINCT 63 col0, 50 + + 22
----
63
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT DISTINCT + COUNT( * ) + + COUNT( ALL + 19 )
----
2

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT + COUNT ( * ) + + COUNT ( ALL + 19 )
----
2

query II rowsort
SELECT DISTINCT 18 AS col0, 31 + - - 37 AS col0
----
18
68

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

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

query II rowsort
SELECT 68 AS col0, 55
----
68
55

query I rowsort
SELECT ALL COALESCE ( - 82, + 53, + 59 ) + - 46
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT 76 * COUNT( - + 10 )
----
76

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT 76 * COUNT ( - + 10 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4115
SELECT - 99 * - 54 AS col0, - ( + 18 ) DIV - - COUNT( * ) + - COUNT( * )
----
5346
-19

skipif mysql # not compatible
query II rowsort label-4115
SELECT - 99 * - 54 AS col0, - ( + 18 ) / - - COUNT ( * ) + - COUNT ( * )
----
5346
-19

query I rowsort
SELECT + 5 + - 11
----
-6

query II rowsort
SELECT ALL 29 AS col1, 66
----
29
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL COUNT( DISTINCT + 92 ) - - 18 + + SUM( + - ( - - 57 ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL COUNT ( DISTINCT + 92 ) - - 18 + + SUM ( + - ( - - 57 ) ) AS col2
----
-38

query I rowsort
SELECT - 75 * 82
----
-6150

onlyif mysql # DIV for integer division: 
query I rowsort label-4120
SELECT ALL - 94 DIV + 43
----
-2

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL - 94 / + 43
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4121
SELECT ALL + + 22 * + CASE - 21 WHEN + 71 THEN NULL WHEN + + 3 THEN 5 * + 28 * + CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + + 22 * + CASE - 21 WHEN + 71 THEN NULL WHEN + + 3 THEN 5 * + 28 * + CAST ( NULL AS REAL ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + 80 * - 40 + - COUNT( * ) AS col2
----
-3201

skipif mysql # not compatible
query I rowsort label-4122
SELECT + 80 * - 40 + - COUNT ( * ) AS col2
----
-3201

query III rowsort
SELECT ALL + 86 AS col2, - 32 AS col0, 92
----
86
-32
92

query I rowsort
SELECT DISTINCT - 44 * - - 80 AS col1
----
-3520

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

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

query I rowsort
SELECT 75 - 53
----
22

query II rowsort
SELECT ALL - - 77, + 28 AS col0
----
77
28

query I rowsort
SELECT 6 * 86 AS col2
----
516

query I rowsort
SELECT - 51 + + 3 col1
----
-48

query I rowsort
SELECT + 25 * - - 23 + 31 AS col1
----
606

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT ALL + 62 DIV + + 56
----
1

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL + 62 / + + 56
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT + 74 DIV - SUM( - 5 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4132
SELECT + 74 / - SUM ( - 5 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT MAX( - - 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4133
SELECT MAX ( - - 5 ) AS col2
----
5

query II rowsort
SELECT + 75, - 98 * - - 79 AS col1
----
75
-7742

query I rowsort
SELECT DISTINCT 66 + - + 45 - + ( + 27 ) - 18
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT DISTINCT - + 92 + + 9 * + 76 * COUNT( * ) * - 9 col2
----
-6248

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT - + 92 + + 9 * + 76 * COUNT ( * ) * - 9 col2
----
-6248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT ( - 91 ) + 53 + - - 82 + - 30 * + 37 + + CAST( 3 AS SIGNED ) * 82
----
-820

skipif mysql # not compatible
query I rowsort label-4137
SELECT ( - 91 ) + 53 + - - 82 + - 30 * + 37 + + CAST ( 3 AS INTEGER ) * 82
----
-820

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT - MIN( DISTINCT - - 25 ) + - COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4139
SELECT - MIN ( DISTINCT - - 25 ) + - COUNT ( * ) AS col0
----
-26

query I rowsort
SELECT 85 + + 67 AS col0
----
152

query I rowsort
SELECT 11 * 84 AS col0
----
924

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT 17 DIV - ( + 31 ) * + 5 * - 18 - 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4142
SELECT 17 / - ( + 31 ) * + 5 * - 18 - 36 AS col2
----
-36

query I rowsort
SELECT ALL 23 - - 61
----
84

query I rowsort
SELECT 16 + - - 66 AS col1
----
82

query I rowsort
SELECT 26 + + - 19 col1
----
7

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

skipif mysql # not compatible
query I rowsort label-4146
SELECT COUNT ( * ) / - + 43
----
0

query I rowsort
SELECT 42 + + 95 AS col0
----
137

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

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

query II rowsort
SELECT DISTINCT - 65 * + - 78, + 81 col0
----
5070
81

query I rowsort
SELECT 41 * - - 58 * + - 92
----
-218776

query I rowsort
SELECT - 83 + - 85
----
-168

query I rowsort
SELECT 52 * + 23 + - + 87 + + - 33 AS col1
----
1076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4153
SELECT + 11 * + 23 + + MAX( 23 ) + MAX( ALL 13 ) DIV 57 * - - 6 + + 38 AS col1
----
314

skipif mysql # not compatible
query I rowsort label-4153
SELECT + 11 * + 23 + + MAX ( 23 ) + MAX ( ALL 13 ) / 57 * - - 6 + + 38 AS col1
----
314

query II rowsort
SELECT - NULLIF ( 35, 19 * - 97 + - 72 ), 57 AS col0
----
-35
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT + 23 DIV + 6 + - 65 + - 54 DIV + 90 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-4155
SELECT + 23 / + 6 + - 65 + - 54 / + 90 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-4156
SELECT DISTINCT + COUNT( * ) * + 24, NULLIF ( - 20, - 15 ) + - 16 col0
----
24
-36

skipif mysql # not compatible
query II rowsort label-4156
SELECT DISTINCT + COUNT ( * ) * + 24, NULLIF ( - 20, - 15 ) + - 16 col0
----
24
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4157
SELECT ALL + 22 + + + 69 - - - 77 col2, COUNT( - 59 ) + + 84
----
14
85

skipif mysql # not compatible
query II rowsort label-4157
SELECT ALL + 22 + + + 69 - - - 77 col2, COUNT ( - 59 ) + + 84
----
14
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + 41 + - + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + 41 + - + COUNT ( * ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT + COUNT( * ) * + + 19 + + + 62
----
81

skipif mysql # not compatible
query I rowsort label-4159
SELECT + COUNT ( * ) * + + 19 + + + 62
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL + ( COUNT( * ) ) + - 32 + - 88
----
-119

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + ( COUNT ( * ) ) + - 32 + - 88
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT SUM( ALL 26 ) + 1 * 6 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4162
SELECT SUM ( ALL 26 ) + 1 * 6 AS col2
----
32

onlyif mysql # aggregate syntax: 
query III rowsort label-4163
SELECT DISTINCT COUNT( * ) + - - 47 * - + 48, 0 * + 16 col1, 68 AS col0
----
-2255
0
68

skipif mysql # not compatible
query III rowsort label-4163
SELECT DISTINCT COUNT ( * ) + - - 47 * - + 48, 0 * + 16 col1, 68 AS col0
----
-2255
0
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4164
SELECT 77 * - - 55 + - 83, + CAST( NULL AS SIGNED ) AS col2
----
4152
NULL

skipif mysql # not compatible
query II rowsort label-4164
SELECT 77 * - - 55 + - 83, + CAST ( NULL AS INTEGER ) AS col2
----
4152
NULL

query II rowsort
SELECT ALL - 66, COALESCE ( + 22, ( + - 30 ) ) * 89 * - + 76 AS col0
----
-66
-148808

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT 17 + CASE 40 WHEN - + COUNT( * ) THEN - + 51 - + 29 + + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT 17 + CASE 40 WHEN - + COUNT ( * ) THEN - + 51 - + 29 + + 0 END
----
NULL

query II rowsort
SELECT ALL 41 - - 88 * 75 AS col2, + CASE + 46 WHEN - 15 THEN 21 * + 14 ELSE NULL END
----
6641
NULL

query II rowsort
SELECT ALL 56 AS col0, + ( 53 ) + 15
----
56
68

query I rowsort
SELECT 27 + + ( + 39 ) + + 76 AS col1
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-4171
SELECT ALL + 96 - + 46 DIV + - 12 col1
----
99

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL + 96 - + 46 / + - 12 col1
----
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4173
SELECT 46 * - CAST( - COUNT( * ) AS SIGNED ) * + - 37 col0, 71
----
-1702
71

skipif mysql # not compatible
query II rowsort label-4173
SELECT 46 * - CAST ( - COUNT ( * ) AS INTEGER ) * + - 37 col0, 71
----
-1702
71

query II rowsort
SELECT 93 AS col2, + 55 + - - 28 AS col1
----
93
83

query I rowsort
SELECT 52 + - + CASE - 43 WHEN + + 44 + 35 THEN NULL ELSE 44 END AS col0
----
8

query I rowsort
SELECT 61 + + - 77 * + 63
----
-4790

query I rowsort
SELECT 36 * - 95 * - + 73
----
249660

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT CASE - + 48 WHEN + 9 THEN 41 WHEN + 17 + - COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT CASE - + 48 WHEN + 9 THEN 41 WHEN + 17 + - COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - ( + 0 ) col1
----
0

query I rowsort
SELECT + + 0 + - 20 AS col2
----
-20

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4182
SELECT - + 56 DIV + 76 * COALESCE ( + - 47, + COUNT( 97 ), + + 64 DIV - 78 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4182
SELECT - + 56 / + 76 * COALESCE ( + - 47, + COUNT ( 97 ), + + 64 / - 78 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4183
SELECT ALL - NULLIF ( + - COUNT( + + 87 ), + + 94 ) * + 77 DIV + 21 + + 86 col0
----
89

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL - NULLIF ( + - COUNT ( + + 87 ), + + 94 ) * + 77 / + 21 + + 86 col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT 33 * - + ( - - 69 ) + - COALESCE ( - 21, - COUNT( * ), 50 + - 60 + + 91 * + COUNT( * ) ) - - ( 37 ) * - 83 + + - 36 + + + 61 col2
----
-5302

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT 33 * - + ( - - 69 ) + - COALESCE ( - 21, - COUNT ( * ), 50 + - 60 + + 91 * + COUNT ( * ) ) - - ( 37 ) * - 83 + + - 36 + + + 61 col2
----
-5302

query II rowsort
SELECT - 37, 53 - + 77 AS col2
----
-37
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4186
SELECT + - COUNT( ALL + CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4186
SELECT + - COUNT ( ALL + CAST ( NULL AS REAL ) )
----
0

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

query II rowsort
SELECT ALL + 26 * + - 19 + + 31 AS col0, - 28
----
-463
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT - + 4 + + 89 - + - 95 + - 16 DIV 24 + - 10 AS col1
----
170

skipif mysql # not compatible
query I rowsort label-4189
SELECT - + 4 + + 89 - + - 95 + - 16 / 24 + - 10 AS col1
----
170

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4191
SELECT 29 * + 87 + ( 52 ) + + 93 + COALESCE ( + 18, - 34, 68 * - - 5 + - 92 ), SUM( ALL - - NULLIF ( + + 58, + 9 * + + 7 + 67 ) ) - + - 65 + + NULLIF ( - 88, 37 ) AS col2
----
2686
35

skipif mysql # not compatible
query II rowsort label-4191
SELECT 29 * + 87 + ( 52 ) + + 93 + COALESCE ( + 18, - 34, 68 * - - 5 + - 92 ), SUM ( ALL - - NULLIF ( + + 58, + 9 * + + 7 + 67 ) ) - + - 65 + + NULLIF ( - 88, 37 ) AS col2
----
2686
35

query II rowsort
SELECT + 44 AS col2, - 63 AS col1
----
44
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT + + 49 * COUNT( * ) * 28 + - 90
----
1282

skipif mysql # not compatible
query I rowsort label-4193
SELECT + + 49 * COUNT ( * ) * 28 + - 90
----
1282

query I rowsort
SELECT + 42 * - + 24 AS col0
----
-1008

query I rowsort
SELECT ALL ( + 37 ) * - + 2
----
-74

query I rowsort
SELECT + NULLIF ( - - 58, 15 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT + 95 - - + 86 - - + CASE 13 WHEN + COUNT( * ) THEN + ( - + 77 ) WHEN + 83 THEN NULL ELSE NULL END * + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT + 95 - - + 86 - - + CASE 13 WHEN + COUNT ( * ) THEN + ( - + 77 ) WHEN + 83 THEN NULL ELSE NULL END * + 49 AS col2
----
NULL

query I rowsort
SELECT + 59 + - 77 * + 98 * + 38 AS col1
----
-286689

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT + 64 DIV 15 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4199
SELECT + 64 / 15 AS col2
----
4

query I rowsort
SELECT + 76 * 93 AS col0
----
7068

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT + ( + + SUM( DISTINCT - 92 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-4201
SELECT + ( + + SUM ( DISTINCT - 92 ) )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT - COUNT( * ) - - 61 * + 5 col0
----
304

skipif mysql # not compatible
query I rowsort label-4202
SELECT - COUNT ( * ) - - 61 * + 5 col0
----
304

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT + 29 DIV - COALESCE ( + + 5, 46, + 65 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4203
SELECT + 29 / - COALESCE ( + + 5, 46, + 65 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT MAX( ( - 62 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-4204
SELECT MAX ( ( - 62 ) )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4205
SELECT + COUNT( * ) * - COALESCE ( 27, - CAST( NULL AS SIGNED ) DIV - COUNT( * ) + + 58 - 73 + + 84 + 77 + - + COUNT( * ) - - + MIN( DISTINCT - 29 ) * - COUNT( * ) * - COALESCE ( + COUNT( * ), - + 75 - 14, - COUNT( - 36 ) ) + + 91, - 45 * - - 6 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4205
SELECT + COUNT ( * ) * - COALESCE ( 27, - CAST ( NULL AS INTEGER ) / - COUNT ( * ) + + 58 - 73 + + 84 + 77 + - + COUNT ( * ) - - + MIN ( DISTINCT - 29 ) * - COUNT ( * ) * - COALESCE ( + COUNT ( * ), - + 75 - 14, - COUNT ( - 36 ) ) + + 91, - 45 * - - 6 ) AS col1
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4206
SELECT - CASE 99 WHEN - - 57 THEN 57 * - CAST( - + 50 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT - CASE 99 WHEN - - 57 THEN 57 * - CAST ( - + 50 AS REAL ) END
----
NULL

query I rowsort
SELECT - ( - 23 ) * 67 * 40
----
61640

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT ALL 80 + + 47 DIV 62
----
80

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL 80 + + 47 / 62
----
80

query I rowsort
SELECT - 60 - - + 48 AS col2
----
-12

query I rowsort
SELECT + 4 + - 8 col0
----
-4

query I rowsort
SELECT ALL + 66 * + 54 * + 58 + - 43
----
206669

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + COALESCE ( - SUM( + 58 ), - ( + 42 ) * 38 - COUNT( * ) + 78 * - - 25 + - 43 + - 41 * 28 ) + 29 + - - 41 + 30 * + CASE + 0 WHEN - 31 + + 99 THEN - + 15 + 77 + - 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT + COALESCE ( - SUM ( + 58 ), - ( + 42 ) * 38 - COUNT ( * ) + 78 * - - 25 + - 43 + - 41 * 28 ) + 29 + - - 41 + 30 * + CASE + 0 WHEN - 31 + + 99 THEN - + 15 + 77 + - 27 ELSE NULL END
----
NULL

query I rowsort
SELECT - 87 * - 29 AS col2
----
2523

query I rowsort
SELECT DISTINCT - ( 6 ) + + - 44 + + 78 * - 61
----
-4808

query II rowsort
SELECT - - 69 + 29 col1, - NULLIF ( - 29, 57 ) + 19
----
98
48

query I rowsort
SELECT - + CASE - 77 WHEN + 47 / - 79 + 16 THEN NULL WHEN - + 10 THEN 98 END + + - 77 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL 68 / - + 68 * - 23 + + - 95 + - 66 + + 5 - + CASE - 45 WHEN - 52 THEN NULL WHEN + + 14 * + + 96 * 69 + - 52 + + ( - 63 ) * 4 * CASE - - 22 WHEN + COUNT( * ) THEN 76 / CAST( NULL AS SIGNED ) + + CASE - 46 WHEN + 80 THEN NULL ELSE - + MIN( 84 ) END ELSE NULL END THEN - - COUNT( * ) * 98 / + - AVG ( ALL - NULLIF ( - 8, - NULLIF ( + 10, 21 * - 36 ) / 77 + 3 ) ) END * 51 * + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL 68 / - + 68 * - 23 + + - 95 + - 66 + + 5 - + CASE - 45 WHEN - 52 THEN NULL WHEN + + 14 * + + 96 * 69 + - 52 + + ( - 63 ) * 4 * CASE - - 22 WHEN + COUNT ( * ) THEN 76 / CAST ( NULL AS INTEGER ) + + CASE - 46 WHEN + 80 THEN NULL ELSE - + MIN ( 84 ) END ELSE NULL END THEN - - COUNT ( * ) * 98 / + - AVG ( ALL - NULLIF ( - 8, - NULLIF ( + 10, 21 * - 36 ) / 77 + 3 ) ) END * 51 * + 34 AS col1
----
NULL

query I rowsort
SELECT - 20 * + 32
----
-640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4220
SELECT - 90 * MAX( DISTINCT + - 63 ) DIV + + SUM( DISTINCT + 11 ) + - + 7 * + 39 + - COALESCE ( 49, 68 + + 72 * 20 * - 96, + + COUNT( * ) * + 68, + - COUNT( * ) )
----
193

skipif mysql # not compatible
query I rowsort label-4220
SELECT - 90 * MAX ( DISTINCT + - 63 ) / + + SUM ( DISTINCT + 11 ) + - + 7 * + 39 + - COALESCE ( 49, 68 + + 72 * 20 * - 96, + + COUNT ( * ) * + 68, + - COUNT ( * ) )
----
193

query I rowsort
SELECT - 34 * + 14
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT - - COUNT( DISTINCT 67 ) * + 36 + - - ( + NULLIF ( 64, 99 ) ) + + 21 + + 63 AS col2
----
184

skipif mysql # not compatible
query I rowsort label-4222
SELECT - - COUNT ( DISTINCT 67 ) * + 36 + - - ( + NULLIF ( 64, 99 ) ) + + 21 + + 63 AS col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT - 89 * + + 20 * + + COUNT( * ) * + 94 * + - 19 * + + 46
----
146237680

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - 89 * + + 20 * + + COUNT ( * ) * + 94 * + - 19 * + + 46
----
146237680

query I rowsort
SELECT ALL - + NULLIF ( + 75, + - 22 ) * + 68 AS col2
----
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT ALL + - 80 * + COUNT( * ) + - 15
----
-95

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + - 80 * + COUNT ( * ) + - 15
----
-95

query I rowsort
SELECT - ( - 67 ) * - 79 * + ( - 1 ) + 61 AS col0
----
5354

query II rowsort
SELECT 14 * + 85 + - - 2 AS col1, - 78
----
1192
-78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4229
SELECT DISTINCT - CASE - 97 WHEN - 95 THEN - COUNT( * ) END * + 15 / + - 95 - - CAST( + 71 AS SIGNED ) * 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT - CASE - 97 WHEN - 95 THEN - COUNT ( * ) END * + 15 / + - 95 - - CAST ( + 71 AS INTEGER ) * 4 AS col2
----
NULL

query I rowsort
SELECT 15 * - 31 + 12
----
-453

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4231
SELECT - 53 * 91 * 41 col0, - 71 * CASE 63 WHEN - + 58 THEN - - 40 WHEN 32 * - SUM( DISTINCT 29 ) * - COUNT( * ) + - + COUNT( * ) THEN + 49 * - 85 + + - 28 DIV + AVG ( 17 ) DIV + + 41 ELSE - - 43 END * + - 45 - COUNT( DISTINCT + 79 ) + 99
----
-197743
137483

skipif mysql # not compatible
query II rowsort label-4231
SELECT - 53 * 91 * 41 col0, - 71 * CASE 63 WHEN - + 58 THEN - - 40 WHEN 32 * - SUM ( DISTINCT 29 ) * - COUNT ( * ) + - + COUNT ( * ) THEN + 49 * - 85 + + - 28 / + AVG ( 17 ) / + + 41 ELSE - - 43 END * + - 45 - COUNT ( DISTINCT + 79 ) + 99
----
-197743
137483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4232
SELECT + 24 * - 79 + CAST( - 96 AS SIGNED )
----
-1992

skipif mysql # not compatible
query I rowsort label-4232
SELECT + 24 * - 79 + CAST ( - 96 AS INTEGER )
----
-1992

query I rowsort
SELECT DISTINCT + ( + + ( + 94 ) ) col0
----
94

query I rowsort
SELECT DISTINCT 34 * + 21
----
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( ALL + 76 ) + - COUNT( * ) * + + ( CASE 84 WHEN ( + 21 ) + MIN( 89 ) THEN - 16 ELSE - 27 * - - 80 END ) / 66 / 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( ALL + 76 ) + - COUNT ( * ) * + + ( CASE 84 WHEN ( + 21 ) + MIN ( 89 ) THEN - 16 ELSE - 27 * - - 80 END ) / 66 / 56 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT 71 DIV + - 93
----
0

skipif mysql # not compatible
query I rowsort label-4236
SELECT 71 / + - 93
----
0

query II rowsort
SELECT 41 * - + 40 * - 0, 89 AS col1
----
0
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT CAST( - NULLIF ( - AVG ( DISTINCT 13 ), - 97 ) AS SIGNED ) * 92 + - + 46 AS col0
----
1150

skipif mysql # not compatible
query I rowsort label-4238
SELECT CAST ( - NULLIF ( - AVG ( DISTINCT 13 ), - 97 ) AS INTEGER ) * 92 + - + 46 AS col0
----
1150

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT - 88 AS col1, + SUM( - 89 ) AS col1
----
-88
-89

skipif mysql # not compatible
query II rowsort label-4239
SELECT - 88 AS col1, + SUM ( - 89 ) AS col1
----
-88
-89

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4241
SELECT DISTINCT - COALESCE ( - + 7, + SUM( 91 ) DIV + COUNT( * ) ), - MAX( DISTINCT 45 ) col2
----
7
-45

skipif mysql # not compatible
query II rowsort label-4241
SELECT DISTINCT - COALESCE ( - + 7, + SUM ( 91 ) / + COUNT ( * ) ), - MAX ( DISTINCT 45 ) col2
----
7
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL + COUNT( * ) + + NULLIF ( 85, 23 ) - - 87 * 10 AS col2
----
956

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL + COUNT ( * ) + + NULLIF ( 85, 23 ) - - 87 * 10 AS col2
----
956

query I rowsort
SELECT DISTINCT 59 + + 57 + + 60
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT DISTINCT COUNT( * ) + - 36 * - 87 AS col2
----
3133

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT COUNT ( * ) + - 36 * - 87 AS col2
----
3133

query I rowsort
SELECT ALL 21 + - 14 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT 98 - MAX( DISTINCT + 48 ) + + ( - + 59 ) * 11 * 97 col0
----
-62903

skipif mysql # not compatible
query I rowsort label-4246
SELECT 98 - MAX ( DISTINCT + 48 ) + + ( - + 59 ) * 11 * 97 col0
----
-62903

query I rowsort
SELECT DISTINCT + 10 - - 92 * - + ( - 53 ) AS col0
----
4886

query I rowsort
SELECT DISTINCT 6 - - + 3 * - 19 + - 37 AS col1
----
-88

query I rowsort
SELECT ALL ( 91 ) col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT ALL - + MAX( - + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL - + MAX ( - + 58 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4251
SELECT COALESCE ( - - MIN( DISTINCT + 46 ), + 81 * + - 20 + 73 * + + 78 * + - NULLIF ( + COUNT( * ), CASE 19 WHEN + CAST( + 67 AS SIGNED ) THEN + 93 WHEN + - 56 THEN NULL ELSE NULL END ) * + + 37 * 76 + - 81 + + 97 - - - 76 ) DIV + ( - + 30 ) + - - 61 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4251
SELECT COALESCE ( - - MIN ( DISTINCT + 46 ), + 81 * + - 20 + 73 * + + 78 * + - NULLIF ( + COUNT ( * ), CASE 19 WHEN + CAST ( + 67 AS INTEGER ) THEN + 93 WHEN + - 56 THEN NULL ELSE NULL END ) * + + 37 * 76 + - 81 + + 97 - - - 76 ) / + ( - + 30 ) + - - 61 AS col1
----
60

query I rowsort
SELECT ALL + 16 * ( + NULLIF ( + - 44, - - 18 + + 9 + + + 88 * 82 ) ) AS col1
----
-704

query I rowsort
SELECT DISTINCT - + ( - + 42 ) AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4254
SELECT DISTINCT 33 * + 25 + + + NULLIF ( 65, - + AVG ( ALL + + 64 ) + COUNT( * ) ) DIV + 88 * - COUNT( * ) * + COUNT( * )
----
825

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT 33 * + 25 + + + NULLIF ( 65, - + AVG ( ALL + + 64 ) + COUNT ( * ) ) / + 88 * - COUNT ( * ) * + COUNT ( * )
----
825

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT 46 DIV 44 + - + ( - - COALESCE ( - + 17, + 36 ) ) + + + 85 * - 81 * - + 88
----
605898

skipif mysql # not compatible
query I rowsort label-4255
SELECT 46 / 44 + - + ( - - COALESCE ( - + 17, + 36 ) ) + + + 85 * - 81 * - + 88
----
605898

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT COUNT( * ) * - - NULLIF ( - COUNT( * ), 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-4256
SELECT COUNT ( * ) * - - NULLIF ( - COUNT ( * ), 56 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT ALL - ( CASE COUNT( * ) WHEN - CAST( - - 63 AS SIGNED ) THEN + COUNT( * ) * - - ( + 31 ) - 15 ELSE + 87 END )
----
-87

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - ( CASE COUNT ( * ) WHEN - CAST ( - - 63 AS INTEGER ) THEN + COUNT ( * ) * - - ( + 31 ) - 15 ELSE + 87 END )
----
-87

query I rowsort
SELECT - 32 * + + 36 + 96 - - 82 * + 69
----
4602

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT 26 DIV - - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4259
SELECT 26 / - - 54 AS col0
----
0

query II rowsort
SELECT DISTINCT + CASE - - ( 49 ) WHEN + 99 THEN + 5 END / - + 63 * + + 17, - NULLIF ( 28, + + 83 ) * - 6 + - + 61 + - 65 AS col2
----
NULL
42

query I rowsort
SELECT ALL + 20 * - - 21 * 53 AS col1
----
22260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4262
SELECT - 82 DIV 52 + - 71 + 31, 23 * + NULLIF ( + COUNT( * ), - COALESCE ( + ( + - ( ( 14 ) ) ), - 19 - - 25 * + 80 ) ) AS col0
----
-41
23

skipif mysql # not compatible
query II rowsort label-4262
SELECT - 82 / 52 + - 71 + 31, 23 * + NULLIF ( + COUNT ( * ), - COALESCE ( + ( + - ( ( 14 ) ) ), - 19 - - 25 * + 80 ) ) AS col0
----
-41
23

query I rowsort
SELECT ALL + 47 * - - 36
----
1692

query I rowsort
SELECT ALL + 38 + + 12
----
50

query I rowsort
SELECT 61 * - + 68
----
-4148

query I rowsort
SELECT ALL - 75 + + 7 + - - 57 AS col0
----
-11

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

skipif mysql # not compatible
query I rowsort label-4267
SELECT 32 - - CAST ( NULL AS INTEGER ) + + 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4268
SELECT + 74, COUNT( * ) + - 15 AS col1
----
74
-14

skipif mysql # not compatible
query II rowsort label-4268
SELECT + 74, COUNT ( * ) + - 15 AS col1
----
74
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT 52 col1, 26 * CASE - + 70 WHEN + COUNT( * ) - + 33 * 19 * - 82 THEN NULL WHEN + 58 THEN 14 + - 99 ELSE NULL END * + 94 + + - 31 AS col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-4269
SELECT 52 col1, 26 * CASE - + 70 WHEN + COUNT ( * ) - + 33 * 19 * - 82 THEN NULL WHEN + 58 THEN 14 + - 99 ELSE NULL END * + 94 + + - 31 AS col2
----
52
NULL

query I rowsort
SELECT 51 * - 58 * + + ( - 38 ) * + 88
----
9891552

query II rowsort
SELECT 33 AS col1, 71
----
33
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT ALL 51 + 93 DIV - 79
----
50

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL 51 + 93 / - 79
----
50

query I rowsort
SELECT 41 - + 25
----
16

query II rowsort
SELECT DISTINCT - 85 AS col2, 86 AS col0
----
-85
86

query II rowsort
SELECT - - ( - 85 ) AS col2, + 93 AS col1
----
-85
93

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4276
SELECT ALL + CAST( NULL AS DECIMAL ) + - 28 * - CAST( 67 AS SIGNED ) + + 6 * 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL + CAST ( NULL AS REAL ) + - 28 * - CAST ( 67 AS INTEGER ) + + 6 * 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL 66 * + 79 + - COUNT( * ) AS col0
----
5213

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL 66 * + 79 + - COUNT ( * ) AS col0
----
5213

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT NULLIF ( - 60, MAX( DISTINCT + 32 ) + + 76 ) * + 42 AS col1
----
-2520

skipif mysql # not compatible
query I rowsort label-4278
SELECT NULLIF ( - 60, MAX ( DISTINCT + 32 ) + + 76 ) * + 42 AS col1
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT NULLIF ( - - MIN( + + 16 ), + 52 )
----
16

skipif mysql # not compatible
query I rowsort label-4279
SELECT NULLIF ( - - MIN ( + + 16 ), + 52 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT + 58 - 24 + - + 72 * - - COUNT( + + 36 ) * - 46 + COUNT( * ) + 55 + + - 28 + + + 68
----
3442

skipif mysql # not compatible
query I rowsort label-4280
SELECT + 58 - 24 + - + 72 * - - COUNT ( + + 36 ) * - 46 + COUNT ( * ) + 55 + + - 28 + + + 68
----
3442

query I rowsort
SELECT ALL 32 * - 58 AS col2
----
-1856

query I rowsort
SELECT 90 * - 2
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT ALL - + 72 * - - 27 * - + CAST( + - 49 AS SIGNED ) AS col2
----
-95256

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL - + 72 * - - 27 * - + CAST ( + - 49 AS INTEGER ) AS col2
----
-95256

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT 82 + - - COUNT( * ) col1
----
83

skipif mysql # not compatible
query I rowsort label-4284
SELECT 82 + - - COUNT ( * ) col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL 78 / 92 - - COUNT( * ) + COALESCE ( - 60, - 62 + + MIN( + 68 ) * + 79 ) / - + ( CASE + + 65 WHEN - COUNT( * ) THEN 17 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL 78 / 92 - - COUNT ( * ) + COALESCE ( - 60, - 62 + + MIN ( + 68 ) * + 79 ) / - + ( CASE + + 65 WHEN - COUNT ( * ) THEN 17 END )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL SUM( ALL + 20 ) * + - ( + 9 )
----
-180

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL SUM ( ALL + 20 ) * + - ( + 9 )
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT COUNT( * ) * - + 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4288
SELECT COUNT ( * ) * - + 29 AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4289
SELECT CASE 0 WHEN - ( + CASE - COUNT( * ) WHEN - COUNT( * ) / + + ( + - 45 ) + - 76 - + ( + CAST( + 47 AS SIGNED ) ) THEN + + NULLIF ( + 55, 10 * + - 72 + 60 + + 87 * - 17 + + - 1 - + 54 + + - 34 * 76 ) + - 18 END ) THEN + - COUNT( * ) + + ( + 40 ) WHEN 98 * + COUNT( ALL - COALESCE ( - NULLIF ( 57, + 98 ), 83 + + + 39 ) ) THEN NULL WHEN - + 55 * 78 + 53 THEN - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT CASE 0 WHEN - ( + CASE - COUNT ( * ) WHEN - COUNT ( * ) / + + ( + - 45 ) + - 76 - + ( + CAST ( + 47 AS INTEGER ) ) THEN + + NULLIF ( + 55, 10 * + - 72 + 60 + + 87 * - 17 + + - 1 - + 54 + + - 34 * 76 ) + - 18 END ) THEN + - COUNT ( * ) + + ( + 40 ) WHEN 98 * + COUNT ( ALL - COALESCE ( - NULLIF ( 57, + 98 ), 83 + + + 39 ) ) THEN NULL WHEN - + 55 * 78 + 53 THEN - COUNT ( * ) ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT + MAX( DISTINCT ( ( 12 ) ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4291
SELECT + MAX ( DISTINCT ( ( 12 ) ) ) AS col2
----
12

query I rowsort
SELECT DISTINCT + 92 * + 54 * - 21 * + + 45 + - 30 + - + 74 AS col1
----
-4694864

query I rowsort
SELECT ALL + 51 * - COALESCE ( - 50, + 13 * - - 41 )
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL COUNT( * ) * - 4 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL COUNT ( * ) * - 4 AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4295
SELECT DISTINCT + 48 * - 45 DIV COUNT( * ) + 9
----
-2151

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT + 48 * - 45 / COUNT ( * ) + 9
----
-2151

query I rowsort
SELECT + NULLIF ( + 3, + 85 * + ( 57 ) )
----
3

query I rowsort
SELECT DISTINCT - 15 * - 76 + + 72
----
1212

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - SUM( DISTINCT 79 ) / + CASE 92 WHEN 46 THEN - 15 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT - SUM ( DISTINCT 79 ) / + CASE 92 WHEN 46 THEN - 15 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4299
SELECT + 87 + + COUNT( * ) * - 50 DIV 59 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4299
SELECT + 87 + + COUNT ( * ) * - 50 / 59 AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4300
SELECT + COUNT( * ) * + 87 col0, + 47 AS col1
----
87
47

skipif mysql # not compatible
query II rowsort label-4300
SELECT + COUNT ( * ) * + 87 col0, + 47 AS col1
----
87
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT ALL + 16 DIV + 18 col0
----
0

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL + 16 / + 18 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4302
SELECT + CASE - 57 WHEN - NULLIF ( - 87, - - 24 * + 4 ) THEN NULL ELSE 97 DIV 46 - + 62 DIV ( + COUNT( * ) ) - - - ( - 13 ) END * + 87 + - 11 col0, 82 * + COALESCE ( - 54, - - CASE - - 12 WHEN COUNT( * ) THEN + - 36 END )
----
-4100
-4428

skipif mysql # not compatible
query II rowsort label-4302
SELECT + CASE - 57 WHEN - NULLIF ( - 87, - - 24 * + 4 ) THEN NULL ELSE 97 / 46 - + 62 / ( + COUNT ( * ) ) - - - ( - 13 ) END * + 87 + - 11 col0, 82 * + COALESCE ( - 54, - - CASE - - 12 WHEN COUNT ( * ) THEN + - 36 END )
----
-4100
-4428

query I rowsort
SELECT - ( + 29 ) + + - 0 + - + 43
----
-72

query I rowsort
SELECT ALL 21 * + 52 + 66 + - + 5
----
1153

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT - ( + 25 ) * - - MIN( DISTINCT + 68 ) col0
----
-1700

skipif mysql # not compatible
query I rowsort label-4305
SELECT - ( + 25 ) * - - MIN ( DISTINCT + 68 ) col0
----
-1700

onlyif mysql # DIV for integer division: 
query I rowsort label-4306
SELECT ALL 22 DIV 49 * + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL 22 / 49 * + 98 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT DISTINCT 80 + - - 92 + - 8 * CAST( + 76 AS SIGNED ) * + - 22
----
13548

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT 80 + - - 92 + - 8 * CAST ( + 76 AS INTEGER ) * + - 22
----
13548

query I rowsort
SELECT ALL - - ( - 92 ) - + 9
----
-101

query I rowsort
SELECT ALL + + 62 * - + 83
----
-5146

query II rowsort
SELECT - 64 * + 97 * 47 AS col2, ( - 44 ) AS col2
----
-291776
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT SUM( ALL + - 92 ) AS col2, 18 + - 16 + - 10 + 83 * NULLIF ( COUNT( * ), - 46 )
----
-92
75

skipif mysql # not compatible
query II rowsort label-4311
SELECT SUM ( ALL + - 92 ) AS col2, 18 + - 16 + - 10 + 83 * NULLIF ( COUNT ( * ), - 46 )
----
-92
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4312
SELECT DISTINCT COALESCE ( + 74, - 68, + + 2 * - 67 + - 92 + - 34 DIV + 97 * - CASE - 18 WHEN + 30 + - 79 * - 36 + 70 THEN 22 * - + 5 ELSE NULL END, + 20 ) AS col0, CAST( 48 AS SIGNED ) AS col1
----
74
48

skipif mysql # not compatible
query II rowsort label-4312
SELECT DISTINCT COALESCE ( + 74, - 68, + + 2 * - 67 + - 92 + - 34 / + 97 * - CASE - 18 WHEN + 30 + - 79 * - 36 + 70 THEN 22 * - + 5 ELSE NULL END, + 20 ) AS col0, CAST ( 48 AS INTEGER ) AS col1
----
74
48

query I rowsort
SELECT ALL 66 * - ( 35 ) * - 56 col1
----
129360

query I rowsort
SELECT + + 89 * - 92 AS col2
----
-8188

query I rowsort
SELECT - + 19 - 91
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT - + COALESCE ( + 1, - + COUNT( ALL - 38 ) * + 25 + + 76 * - + 98 - 43 * - 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-4316
SELECT - + COALESCE ( + 1, - + COUNT ( ALL - 38 ) * + 25 + + 76 * - + 98 - 43 * - 19 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - 83 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT + 59 * + CAST( NULL AS SIGNED ) / - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT + 59 * + CAST ( NULL AS INTEGER ) / - 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT - MAX( + - 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4319
SELECT - MAX ( + - 73 ) AS col0
----
73

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4321
SELECT DISTINCT + COUNT( * ) DIV - + ( 32 ) + 13 AS col0, COALESCE ( + - COUNT( * ), + + 18 * 99 )
----
13
-1

skipif mysql # not compatible
query II rowsort label-4321
SELECT DISTINCT + COUNT ( * ) / - + ( 32 ) + 13 AS col0, COALESCE ( + - COUNT ( * ), + + 18 * 99 )
----
13
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT + 23 * + 43 * - MIN( - - 88 ) AS col2
----
-87032

skipif mysql # not compatible
query I rowsort label-4322
SELECT + 23 * + 43 * - MIN ( - - 88 ) AS col2
----
-87032

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT + COUNT( ( 62 ) ) * - 36 * + - SUM( + - 95 ) AS col2
----
-3420

skipif mysql # not compatible
query I rowsort label-4324
SELECT + COUNT ( ( 62 ) ) * - 36 * + - SUM ( + - 95 ) AS col2
----
-3420

query I rowsort
SELECT + 87 * 35 AS col1
----
3045

query I rowsort
SELECT DISTINCT 17 * 3 * + 64 col0
----
3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT + 86 * + 52 + - 36 + NULLIF ( + 82, + CAST( NULL AS SIGNED ) + + 31 )
----
4518

skipif mysql # not compatible
query I rowsort label-4327
SELECT + 86 * + 52 + - 36 + NULLIF ( + 82, + CAST ( NULL AS INTEGER ) + + 31 )
----
4518

query I rowsort
SELECT DISTINCT 81 * 61
----
4941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4329
SELECT ALL + CASE + COUNT( * ) WHEN CASE 12 WHEN + 71 + - ( + + 25 ) * - 35 + - NULLIF ( + + 39, - COUNT( CAST( NULL AS SIGNED ) ) ) THEN + + 66 END THEN + 55 + + 42 + + 29 * + 65 WHEN COUNT( * ) THEN NULL WHEN + 84 THEN NULL ELSE ( 92 ) END AS col0, CAST( + - 59 AS SIGNED )
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-4329
SELECT ALL + CASE + COUNT ( * ) WHEN CASE 12 WHEN + 71 + - ( + + 25 ) * - 35 + - NULLIF ( + + 39, - COUNT ( CAST ( NULL AS INTEGER ) ) ) THEN + + 66 END THEN + 55 + + 42 + + 29 * + 65 WHEN COUNT ( * ) THEN NULL WHEN + 84 THEN NULL ELSE ( 92 ) END AS col0, CAST ( + - 59 AS INTEGER )
----
NULL
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT + CAST( + + 16 AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4330
SELECT + CAST ( + + 16 AS INTEGER ) AS col2
----
16

query I rowsort
SELECT + 44 - 7
----
37

query I rowsort
SELECT + - 66 * - 0
----
0

query I rowsort
SELECT - - 61 * 17 * - 87 * + 9 AS col1
----
-811971

query II rowsort
SELECT ALL + + 87 AS col2, + 61
----
87
61

query II rowsort
SELECT 22 AS col1, - 68 AS col2
----
22
-68

query II rowsort
SELECT + 90 col0, + 68 AS col0
----
90
68

query I rowsort
SELECT + 84 * + 20
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL COUNT( DISTINCT - 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL COUNT ( DISTINCT - 28 ) AS col0
----
1

query I rowsort
SELECT - + ( + 7 ) - - - 9
----
-16

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

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

query I rowsort
SELECT DISTINCT + 70 * - 19 AS col0
----
-1330

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4342
SELECT DISTINCT - COUNT( * ) * + 76 * - - CASE - - 36 WHEN 5 THEN NULL WHEN - 55 + - 70 THEN - + 89 END AS col2, 4 + + 2 * 43 DIV + 1
----
NULL
90

skipif mysql # not compatible
query II rowsort label-4342
SELECT DISTINCT - COUNT ( * ) * + 76 * - - CASE - - 36 WHEN 5 THEN NULL WHEN - 55 + - 70 THEN - + 89 END AS col2, 4 + + 2 * 43 / + 1
----
NULL
90

query I rowsort
SELECT ALL - - 42 + 54 + ( - 74 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT - CASE + 17 WHEN - 18 / 25 THEN - 54 WHEN - CAST( - - 3 AS SIGNED ) THEN NULL ELSE NULL END + 30 + - + NULLIF ( + + 74, + - 34 + 76 * - + 74 * - COUNT( * ) * - 86 + 97 * - 79 ) / + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT - CASE + 17 WHEN - 18 / 25 THEN - 54 WHEN - CAST ( - - 3 AS INTEGER ) THEN NULL ELSE NULL END + 30 + - + NULLIF ( + + 74, + - 34 + 76 * - + 74 * - COUNT ( * ) * - 86 + 97 * - 79 ) / + - 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4345
SELECT - 56 - COALESCE ( + CAST( + NULLIF ( + 86, COUNT( * ) ) AS SIGNED ), 71 * COUNT( * ) DIV - 36 * + COUNT( * ) )
----
-142

skipif mysql # not compatible
query I rowsort label-4345
SELECT - 56 - COALESCE ( + CAST ( + NULLIF ( + 86, COUNT ( * ) ) AS INTEGER ), 71 * COUNT ( * ) / - 36 * + COUNT ( * ) )
----
-142

query I rowsort
SELECT - COALESCE ( + 61, + ( ( - 2 ) ) - 45 ) + 65 AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4347
SELECT - 70 - + 73 + - 95 DIV 80 + + 81 + - + COUNT( * ) * + - 70
----
7

skipif mysql # not compatible
query I rowsort label-4347
SELECT - 70 - + 73 + - 95 / 80 + + 81 + - + COUNT ( * ) * + - 70
----
7

query I rowsort
SELECT ALL - 24 + + + ( + 55 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - 30 + - COUNT( DISTINCT - 21 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4349
SELECT - 30 + - COUNT ( DISTINCT - 21 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT DISTINCT - COUNT( * ) + + COALESCE ( 10, + - 68, - 1 * + + 27 + + 15 * + 27 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT - COUNT ( * ) + + COALESCE ( 10, + - 68, - 1 * + + 27 + + 15 * + 27 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ALL 77 + + + COUNT( * ) * - 96 * + COUNT( * ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL 77 + + + COUNT ( * ) * - 96 * + COUNT ( * ) col2
----
-19

query I rowsort
SELECT 55 + - - 96
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT DISTINCT - COALESCE ( - + 64, + AVG ( DISTINCT - 80 ) ) DIV - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT - COALESCE ( - + 64, + AVG ( DISTINCT - 80 ) ) / - COUNT ( * )
----
-64

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

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

query I rowsort
SELECT ALL + 61 + 15 - + - 63 * - + 25 + + 19
----
-1480

query I rowsort
SELECT DISTINCT - 7 + 9 * - 25 AS col1
----
-232

onlyif mysql # DIV for integer division: 
query I rowsort label-4357
SELECT 54 DIV 31 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4357
SELECT 54 / 31 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4358
SELECT ALL - COALESCE ( 41, - COUNT( * ) DIV + 63 - + 7 - + + 8 * + 16 ) * 3 AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL - COALESCE ( 41, - COUNT ( * ) / + 63 - + 7 - + + 8 * + 16 ) * 3 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT MAX( DISTINCT - 5 ) + + - 20
----
-25

skipif mysql # not compatible
query I rowsort label-4359
SELECT MAX ( DISTINCT - 5 ) + + - 20
----
-25

query I rowsort
SELECT DISTINCT + 44 - 11 AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4361
SELECT DISTINCT 33 DIV + COUNT( * ) AS col2, + 67
----
33
67

skipif mysql # not compatible
query II rowsort label-4361
SELECT DISTINCT 33 / + COUNT ( * ) AS col2, + 67
----
33
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT COALESCE ( + 72, + + 13, + 15 - COALESCE ( + 15, - COUNT( * ) ) - + 25 * + COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-4362
SELECT COALESCE ( + 72, + + 13, + 15 - COALESCE ( + 15, - COUNT ( * ) ) - + 25 * + COUNT ( * ) )
----
72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT 74 DIV + 43 - - 16 - - 34
----
51

skipif mysql # not compatible
query I rowsort label-4364
SELECT 74 / + 43 - - 16 - - 34
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4365
SELECT COUNT( * ) + + 88 AS col2, + 30 + COUNT( * ) AS col0
----
89
31

skipif mysql # not compatible
query II rowsort label-4365
SELECT COUNT ( * ) + + 88 AS col2, + 30 + COUNT ( * ) AS col0
----
89
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4366
SELECT ALL + CASE - + COALESCE ( 73, 37 + + 31, - 0 ) WHEN - COUNT( 20 ) THEN CAST( + 80 AS SIGNED ) WHEN - 21 THEN NULL END * + 24 * - + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + CASE - + COALESCE ( 73, 37 + + 31, - 0 ) WHEN - COUNT ( 20 ) THEN CAST ( + 80 AS INTEGER ) WHEN - 21 THEN NULL END * + 24 * - + 17 AS col0
----
NULL

query I rowsort
SELECT 57 * + - 34
----
-1938

query I rowsort
SELECT ALL + 44 * - + 63 + - 64 AS col0
----
-2836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT CAST( - 72 AS SIGNED ) + - 2 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-4369
SELECT CAST ( - 72 AS INTEGER ) + - 2 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL MAX( DISTINCT + 79 ) * - 28
----
-2212

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL MAX ( DISTINCT + 79 ) * - 28
----
-2212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT ALL + CAST( NULL AS SIGNED ) * 29 + + 85 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + CAST ( NULL AS INTEGER ) * 29 + + 85 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4372
SELECT - ( + CAST( NULL AS SIGNED ) ) * - 38 + - 51 AS col1, - 60 + - ( - 64 )
----
NULL
4

skipif mysql # not compatible
query II rowsort label-4372
SELECT - ( + CAST ( NULL AS INTEGER ) ) * - 38 + - 51 AS col1, - 60 + - ( - 64 )
----
NULL
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT ALL 88 + + + 26 DIV 34
----
88

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL 88 + + + 26 / 34
----
88

query I rowsort
SELECT - 27 + 60 * - 44 * - - 64 * + + 41
----
-6927387

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL COUNT( * ) + + + 90 + + 84 + - 17
----
158

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL COUNT ( * ) + + + 90 + + 84 + - 17
----
158

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

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

query I rowsort
SELECT ALL + NULLIF ( - 66, - 47 )
----
-66

query I rowsort
SELECT + 54 + + 11 AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4379
SELECT - + COUNT( + 84 ), - 49 AS col2
----
-1
-49

skipif mysql # not compatible
query II rowsort label-4379
SELECT - + COUNT ( + 84 ), - 49 AS col2
----
-1
-49

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

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL + COUNT ( * ) + - + 16 + + COUNT ( * ) AS col1
----
-14

query I rowsort
SELECT 45 * 21
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ALL COUNT( * ) + - 47 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL COUNT ( * ) + - 47 AS col1
----
-46

query I rowsort
SELECT 55 * + - 80 col1
----
-4400

query I rowsort
SELECT DISTINCT + 47 * + NULLIF ( - 78, - 11 )
----
-3666

query I rowsort
SELECT ALL - 93 + 52
----
-41

query I rowsort
SELECT COALESCE ( COALESCE ( 30, - 86 ), + NULLIF ( + + 87, - 22 ) ) - 17 AS col1
----
13

query I rowsort
SELECT ALL - 29 * 55 AS col2
----
-1595

query I rowsort
SELECT 45 - 5 * - 80 AS col0
----
445

query I rowsort
SELECT ALL + 57 - + 78 * - - 99 * + 65 AS col0
----
-501873

query II rowsort
SELECT - 60 AS col2, 38 AS col0
----
-60
38

query I rowsort
SELECT ALL 5 * 30 * 42
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL MIN( ALL - 35 ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL MIN ( ALL - 35 ) col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4393
SELECT 80 - + + SUM( 77 ) + + COALESCE ( + 84, + 82 ) DIV 39
----
5

skipif mysql # not compatible
query I rowsort label-4393
SELECT 80 - + + SUM ( 77 ) + + COALESCE ( + 84, + 82 ) / 39
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL - COALESCE ( - - ( 60 ), + 95, COUNT( * ) + + 86 )
----
-60

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL - COALESCE ( - - ( 60 ), + 95, COUNT ( * ) + + 86 )
----
-60

query II rowsort
SELECT 96 * - 50 * 29 AS col0, 46 AS col1
----
-139200
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT 70 + - - COUNT( * ) * + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4396
SELECT 70 + - - COUNT ( * ) * + COUNT ( * )
----
71

query I rowsort
SELECT DISTINCT - 67 * - 59 * - - 8 * + 71 AS col0
----
2245304

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL - + 42 * COUNT( * ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - + 42 * COUNT ( * ) col1
----
-42

query I rowsort
SELECT 34 * + 60
----
2040

query I rowsort
SELECT ALL - ( 8 ) col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT - 75 * - - ( + - 27 ) * MAX( ALL + + 72 ) - + - 75 AS col1
----
145875

skipif mysql # not compatible
query I rowsort label-4401
SELECT - 75 * - - ( + - 27 ) * MAX ( ALL + + 72 ) - + - 75 AS col1
----
145875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4402
SELECT ALL + ( - ( + + CAST( - 32 AS SIGNED ) ) ) + + 61 + + ( + 96 ) + - + 82 - - 74 DIV - 67 + + CASE + + 66 WHEN - + COUNT( * ) THEN NULL ELSE 66 END DIV 13 + + COUNT( * )
----
112

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL + ( - ( + + CAST ( - 32 AS INTEGER ) ) ) + + 61 + + ( + 96 ) + - + 82 - - 74 / - 67 + + CASE + + 66 WHEN - + COUNT ( * ) THEN NULL ELSE 66 END / 13 + + COUNT ( * )
----
112

query I rowsort
SELECT - 42 * + 96 - 59 * + 28 * + 29 * + 19 * - - 62 AS col1
----
-56439656

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT + COUNT( + 34 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4404
SELECT + COUNT ( + 34 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4405
SELECT COALESCE ( + - CAST( NULL AS SIGNED ), - - ( + + 99 ) ) * + COUNT( * ) + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4405
SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), - - ( + + 99 ) ) * + COUNT ( * ) + - COUNT ( * )
----
98

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

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

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

query II rowsort
SELECT + 71 AS col1, 70 AS col2
----
71
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4409
SELECT 75, COUNT( * ) + - COUNT( * ) + - 72 + 15 AS col2
----
75
-57

skipif mysql # not compatible
query II rowsort label-4409
SELECT 75, COUNT ( * ) + - COUNT ( * ) + - 72 + 15 AS col2
----
75
-57

query II rowsort
SELECT ALL - 77 + + 37 * + 50, 74 AS col2
----
1773
74

query I rowsort
SELECT DISTINCT + 18 + 57
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4412
SELECT ALL 35 + + + SUM( DISTINCT + 66 ) DIV + + 66
----
36

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL 35 + + + SUM ( DISTINCT + 66 ) / + + 66
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4413
SELECT DISTINCT COUNT( * ) * 9 DIV COALESCE ( + CAST( + - 4 AS SIGNED ), + 91 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT COUNT ( * ) * 9 / COALESCE ( + CAST ( + - 4 AS INTEGER ), + 91 ) AS col0
----
-2

query II rowsort
SELECT ALL 91, - 55 col0
----
91
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT + MAX( ALL 17 ) + - COALESCE ( + CASE 96 WHEN - 38 THEN 95 * - 63 * 5 ELSE NULL END, - 50, - + COUNT( * ) * - - 93 + + 81 ) - + ( 45 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4415
SELECT + MAX ( ALL 17 ) + - COALESCE ( + CASE 96 WHEN - 38 THEN 95 * - 63 * 5 ELSE NULL END, - 50, - + COUNT ( * ) * - - 93 + + 81 ) - + ( 45 ) AS col2
----
22

query I rowsort
SELECT + 47 + + 63 * - + 1 col0
----
-16

query I rowsort
SELECT + 65 * + 10 * 15
----
9750

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT - 29 - + - MAX( - 5 ) + + 33 + - 82 * - 15 * 42 * + 13 AS col0
----
671579

skipif mysql # not compatible
query I rowsort label-4418
SELECT - 29 - + - MAX ( - 5 ) + + 33 + - 82 * - 15 * 42 * + 13 AS col0
----
671579

query II rowsort
SELECT 80, + 95 col0
----
80
95

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

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

query I rowsort
SELECT DISTINCT 64 - - 94 + + 58 + - 80 * - 69
----
5736

onlyif mysql # aggregate syntax: 
query II rowsort label-4422
SELECT ALL COUNT( * ), - 67 col0
----
1
-67

skipif mysql # not compatible
query II rowsort label-4422
SELECT ALL COUNT ( * ), - 67 col0
----
1
-67

query I rowsort
SELECT + 93 + - 67
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT DISTINCT 58 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT 58 / + 83 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4425
SELECT - ( - 49 ) DIV + ( + - 99 ) AS col1, 47 col1
----
0
47

skipif mysql # not compatible
query II rowsort label-4425
SELECT - ( - 49 ) / + ( + - 99 ) AS col1, 47 col1
----
0
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4426
SELECT ALL 93 * + - ( - - ( + - COALESCE ( 18, + COALESCE ( - COUNT( * ), ( COUNT( * ) ), 62 ) DIV - 31 + - MAX( DISTINCT 65 ) * + COUNT( * ) DIV - NULLIF ( - 18, - + COUNT( * ) ) + + + ( - MIN( ALL + 99 ) ) + + NULLIF ( NULLIF ( + + COALESCE ( - - 35, + 10 * - MAX( - 86 ) * + 8 * 27 * - 88 ), + CASE + COUNT( * ) WHEN - 5 + - CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN + + 3 THEN - 29 END + + - 79 + 43 * 11 * + + 29 * + 69 + 5 ), COUNT( DISTINCT + 67 ) ) ) ) )
----
1674

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL 93 * + - ( - - ( + - COALESCE ( 18, + COALESCE ( - COUNT ( * ), ( COUNT ( * ) ), 62 ) / - 31 + - MAX ( DISTINCT 65 ) * + COUNT ( * ) / - NULLIF ( - 18, - + COUNT ( * ) ) + + + ( - MIN ( ALL + 99 ) ) + + NULLIF ( NULLIF ( + + COALESCE ( - - 35, + 10 * - MAX ( - 86 ) * + 8 * 27 * - 88 ), + CASE + COUNT ( * ) WHEN - 5 + - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN + + 3 THEN - 29 END + + - 79 + 43 * 11 * + + 29 * + 69 + 5 ), COUNT ( DISTINCT + 67 ) ) ) ) )
----
1674

query I rowsort
SELECT - 63 * + 74 * - 51
----
237762

query I rowsort
SELECT + 75 + + ( - 1 ) * - 0 * + - 14 col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT + ( CASE - 15 WHEN + + 53 + - 86 THEN + 64 * - 82 WHEN + + COUNT( * ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT + ( CASE - 15 WHEN + + 53 + - 86 THEN + 64 * - 82 WHEN + + COUNT ( * ) THEN NULL END ) AS col1
----
NULL

query I rowsort
SELECT - 73 * 11 + + + 29
----
-774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4431
SELECT ( + + CASE - COALESCE ( + + 5, - 58 / - 59, + - 83 ) WHEN + CAST( ( COUNT( + 14 ) ) AS SIGNED ) THEN + 26 * + ( + - 22 ) + + - 44 - - 94 + + + 55 WHEN 82 + - 2 + - + 58 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT ( + + CASE - COALESCE ( + + 5, - 58 / - 59, + - 83 ) WHEN + CAST ( ( COUNT ( + 14 ) ) AS INTEGER ) THEN + 26 * + ( + - 22 ) + + - 44 - - 94 + + + 55 WHEN 82 + - 2 + - + 58 THEN NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT 99 DIV + 97 + 77 + + 86
----
164

skipif mysql # not compatible
query I rowsort label-4432
SELECT 99 / + 97 + 77 + + 86
----
164

query I rowsort
SELECT - 37 * - - 67 * - 85 AS col2
----
210715

query I rowsort
SELECT ALL - + 36 * + 29 + + 57 - 18
----
-1005

onlyif mysql # DIV for integer division: 
query I rowsort label-4435
SELECT - 60 + - 67 + 25 DIV - - 86 col2
----
-127

skipif mysql # not compatible
query I rowsort label-4435
SELECT - 60 + - 67 + 25 / - - 86 col2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT DISTINCT - COALESCE ( 45, + + COUNT( * ) + 95, + 56 ) * 25 + + - ( + 39 ) AS col1
----
-1164

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT - COALESCE ( 45, + + COUNT ( * ) + 95, + 56 ) * 25 + + - ( + 39 ) AS col1
----
-1164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT + - COALESCE ( + ( - COUNT( ALL + 31 ) ), 32 )
----
1

skipif mysql # not compatible
query I rowsort label-4438
SELECT + - COALESCE ( + ( - COUNT ( ALL + 31 ) ), 32 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4439
SELECT ALL + - 17 * COUNT( * ) + - - COALESCE ( ( - ( 76 ) ), - - 79 DIV + + 88 * + 49 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL + - 17 * COUNT ( * ) + - - COALESCE ( ( - ( 76 ) ), - - 79 / + + 88 * + 49 ) AS col1
----
-93

query I rowsort
SELECT - - 36 + + 72
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT - 39 * - 77 * - 85 / - 8 * - 40 * 76 - + 21 * + + CASE + 36 WHEN CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 45 THEN - 1 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT - 39 * - 77 * - 85 / - 8 * - 40 * 76 - + 21 * + + CASE + 36 WHEN CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 45 THEN - 1 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT - + 61 + COUNT( * ) AS col1, 7 AS col0
----
-60
7

skipif mysql # not compatible
query II rowsort label-4442
SELECT - + 61 + COUNT ( * ) AS col1, 7 AS col0
----
-60
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT ALL 22 * + 92 + + 95 + - 17 + + CASE + 33 WHEN + 66 THEN NULL WHEN 16 + - + AVG ( ALL + 76 ) THEN - 71 END + - + 34 AS col0, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4443
SELECT ALL 22 * + 92 + + 95 + - 17 + + CASE + 33 WHEN + 66 THEN NULL WHEN 16 + - + AVG ( ALL + 76 ) THEN - 71 END + - + 34 AS col0, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT - + 20 * - - 0 + - ( - - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4444
SELECT - + 20 * - - 0 + - ( - - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 89 * + 19 + - 76 AS col1
----
1615

query I rowsort
SELECT ALL - 31 * 47 * + - 34 AS col1
----
49538

query I rowsort
SELECT - 89 + + 17 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4448
SELECT DISTINCT + NULLIF ( + + 94, 31 + + - COUNT( * ) ) AS col0, + 73 AS col1
----
94
73

skipif mysql # not compatible
query II rowsort label-4448
SELECT DISTINCT + NULLIF ( + + 94, 31 + + - COUNT ( * ) ) AS col0, + 73 AS col1
----
94
73

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4451
SELECT DISTINCT + CAST( + NULLIF ( - + 28, 79 + - ( - 41 ) + - - 67 * - 43 * - MIN( + 19 ) ) AS SIGNED ) - - 91
----
63

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT + CAST ( + NULLIF ( - + 28, 79 + - ( - 41 ) + - - 67 * - 43 * - MIN ( + 19 ) ) AS INTEGER ) - - 91
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4452
SELECT DISTINCT CAST( + - ( + 37 ) AS SIGNED ), - COUNT( * ) col2
----
-37
-1

skipif mysql # not compatible
query II rowsort label-4452
SELECT DISTINCT CAST ( + - ( + 37 ) AS INTEGER ), - COUNT ( * ) col2
----
-37
-1

query II rowsort
SELECT ALL + 3 * + ( - 61 ) * + 42 * + + 37 AS col1, - 69 AS col0
----
-284382
-69

onlyif mysql # aggregate syntax: 
query III rowsort label-4454
SELECT ALL MIN( 22 ) AS col0, 32, 18 AS col1
----
22
32
18

skipif mysql # not compatible
query III rowsort label-4454
SELECT ALL MIN ( 22 ) AS col0, 32, 18 AS col1
----
22
32
18

query I rowsort
SELECT + ( 51 ) * + + ( + 5 ) AS col2
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4456
SELECT - CAST( 77 AS SIGNED ), + 29 AS col2
----
-77
29

skipif mysql # not compatible
query II rowsort label-4456
SELECT - CAST ( 77 AS INTEGER ), + 29 AS col2
----
-77
29

query I rowsort
SELECT - 16 * - + 87 col0
----
1392

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

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

query I rowsort
SELECT + 4 - + 36 AS col2
----
-32

query I rowsort
SELECT ALL NULLIF ( 65, + - 65 )
----
65

query I rowsort
SELECT DISTINCT 9 + - 89
----
-80

query I rowsort
SELECT + 48 - - 72 + + 65 * 39 AS col2
----
2655

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL + + CASE + ( - COUNT( * ) ) WHEN - - COUNT( * ) + 97 * - + ( + + 44 ) - - + 89 THEN - + 98 END * + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL + + CASE + ( - COUNT ( * ) ) WHEN - - COUNT ( * ) + 97 * - + ( + + 44 ) - - + 89 THEN - + 98 END * + 15 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT + COALESCE ( - 91, - 1 * + 91 * + + 51 * + 18, COUNT( * ) - 25 ) * + + 63 AS col0
----
-5733

skipif mysql # not compatible
query I rowsort label-4465
SELECT + COALESCE ( - 91, - 1 * + 91 * + + 51 * + 18, COUNT ( * ) - 25 ) * + + 63 AS col0
----
-5733

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT DISTINCT + + SUM( + 99 ), + 40 + - - COALESCE ( - 36, + 82 * - 3 ) AS col1
----
99
4

skipif mysql # not compatible
query II rowsort label-4466
SELECT DISTINCT + + SUM ( + 99 ), + 40 + - - COALESCE ( - 36, + 82 * - 3 ) AS col1
----
99
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT - 93 * - NULLIF ( + - 63, - 91 * - COUNT( * ) * + + 33 ) + + + SUM( ALL - 20 )
----
-5879

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT - 93 * - NULLIF ( + - 63, - 91 * - COUNT ( * ) * + + 33 ) + + + SUM ( ALL - 20 )
----
-5879

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL - + CASE + 0 WHEN - + COUNT( * ) THEN - 95 * 96 + 15 WHEN - 5 * 76 + 41 * - + 48 THEN NULL ELSE + 19 END
----
-19

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - + CASE + 0 WHEN - + COUNT ( * ) THEN - 95 * 96 + 15 WHEN - 5 * 76 + 41 * - + 48 THEN NULL ELSE + 19 END
----
-19

query I rowsort
SELECT ALL + - ( + + 25 ) + 9 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4470
SELECT - SUM( CAST( NULL AS SIGNED ) ) * + 10 + - 82 * - + 82 * 33 * - 69, COUNT( * ) * 98 * - 75 AS col2
----
NULL
-7350

skipif mysql # not compatible
query II rowsort label-4470
SELECT - SUM ( CAST ( NULL AS INTEGER ) ) * + 10 + - 82 * - + 82 * 33 * - 69, COUNT ( * ) * 98 * - 75 AS col2
----
NULL
-7350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4471
SELECT + COALESCE ( - 14, COUNT( * ) * - 91 + + 32 * - 58 DIV + - 83 * + 5 * - COUNT( * ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4471
SELECT + COALESCE ( - 14, COUNT ( * ) * - 91 + + 32 * - 58 / + - 83 * + 5 * - COUNT ( * ) ) AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT + CAST( NULLIF ( - 82, 95 ) AS SIGNED ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4472
SELECT + CAST ( NULLIF ( - 82, 95 ) AS INTEGER ) AS col0
----
-82

query I rowsort
SELECT 22 - - - 17 + 22
----
27

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4474
SELECT - - CAST( NULL AS SIGNED ) * 92 + 64 * CAST( NULL AS DECIMAL ) + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT - - CAST ( NULL AS INTEGER ) * 92 + 64 * CAST ( NULL AS REAL ) + 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT 11 * - SUM( ALL - 2 ) - - 46 * - 58
----
-2646

skipif mysql # not compatible
query I rowsort label-4475
SELECT 11 * - SUM ( ALL - 2 ) - - 46 * - 58
----
-2646

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT + + ( - 17 ) * MIN( 41 )
----
-697

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + + ( - 17 ) * MIN ( 41 )
----
-697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4477
SELECT + 35 AS col0, 38 + - - COUNT( * ) * - CAST( - ( - 20 ) AS SIGNED ), - - 36 AS col1
----
35
18
36

skipif mysql # not compatible
query III rowsort label-4477
SELECT + 35 AS col0, 38 + - - COUNT ( * ) * - CAST ( - ( - 20 ) AS INTEGER ), - - 36 AS col1
----
35
18
36

query I rowsort
SELECT 55 * - 83 col1
----
-4565

query I rowsort
SELECT ALL + 61 * 96
----
5856

query II rowsort
SELECT ALL + 71 * - ( 2 ) * + 3 AS col2, + 28
----
-426
28

query I rowsort
SELECT DISTINCT - 16 * - 81
----
1296

query II rowsort
SELECT ALL 2 AS col2, ( + - 82 ) AS col0
----
2
-82

query I rowsort
SELECT 96 * - - 78
----
7488

onlyif mysql # DIV for integer division: 
query I rowsort label-4484
SELECT 99 DIV 79 * - 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4484
SELECT 99 / 79 * - 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT 70 + + ( + 95 ) * COUNT( - - 49 )
----
165

skipif mysql # not compatible
query I rowsort label-4485
SELECT 70 + + ( + 95 ) * COUNT ( - - 49 )
----
165

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

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL - COUNT ( * ) / 49
----
0

query I rowsort
SELECT ALL + 72 + - - 35
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT NULLIF ( - ( + CASE + 36 WHEN - - 62 * COUNT( * ) + ( COUNT( * ) ) THEN - 58 + - 82 + 90 ELSE NULL END ), - - ( - 57 ) ) - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT NULLIF ( - ( + CASE + 36 WHEN - - 62 * COUNT ( * ) + ( COUNT ( * ) ) THEN - 58 + - 82 + 90 ELSE NULL END ), - - ( - 57 ) ) - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL 22 + - 68 * + - COUNT( * ) + - COALESCE ( 9, - 75 - - 68, + - COUNT( ALL + 38 ) ) * - + 49
----
531

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL 22 + - 68 * + - COUNT ( * ) + - COALESCE ( 9, - 75 - - 68, + - COUNT ( ALL + 38 ) ) * - + 49
----
531

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT DISTINCT + ( - + 1 ) + + 37 + + ( COUNT( ALL - 91 ) ) * - 82 * - 11
----
938

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT + ( - + 1 ) + + 37 + + ( COUNT ( ALL - 91 ) ) * - 82 * - 11
----
938

onlyif mysql # aggregate syntax: 
query II rowsort label-4491
SELECT + 46 + - - MAX( + + 90 ) AS col1, + COUNT( * )
----
136
1

skipif mysql # not compatible
query II rowsort label-4491
SELECT + 46 + - - MAX ( + + 90 ) AS col1, + COUNT ( * )
----
136
1

query I rowsort
SELECT ALL + 16 + - NULLIF ( + - 39, 74 + 31 )
----
55

query I rowsort
SELECT DISTINCT + 33 + - 67 AS col0
----
-34

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

skipif mysql # not compatible
query II rowsort label-4494
SELECT 57 AS col2, - COUNT ( * ) AS col0
----
57
-1

query II rowsort
SELECT ALL - ( + 25 ) - + 16 + - - 8, + NULLIF ( + ( 86 ), - + 36 / + 82 + + 4 * 57 - + - ( 41 ) ) col1
----
-33
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4496
SELECT 26 * 32 DIV - COUNT( * ) - + COUNT( * ) + - 58
----
-891

skipif mysql # not compatible
query I rowsort label-4496
SELECT 26 * 32 / - COUNT ( * ) - + COUNT ( * ) + - 58
----
-891

query I rowsort
SELECT ALL + 84 * + ( + 68 ) AS col0
----
5712

query I rowsort
SELECT DISTINCT 27 - 30 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL + 9 * + - COUNT( CASE + - 13 WHEN + 62 THEN 8 ELSE NULL END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + 9 * + - COUNT ( CASE + - 13 WHEN + 62 THEN 8 ELSE NULL END ) AS col2
----
0

query II rowsort
SELECT + 59 * - 96 * + 93 + + + COALESCE ( - - 26, + + 56, + NULLIF ( 46, + 39 ) ) + + 20 * 78 + + 49 + - 57 col1, 71
----
-525174
71

onlyif mysql # DIV for integer division: 
query II rowsort label-4501
SELECT ALL - 47, 9 DIV + 11 + 41 + 75 AS col0
----
-47
116

skipif mysql # not compatible
query II rowsort label-4501
SELECT ALL - 47, 9 / + 11 + 41 + 75 AS col0
----
-47
116

query I rowsort
SELECT 6 * 66
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT 49 * - 62 + + COUNT( * ) col2
----
-3037

skipif mysql # not compatible
query I rowsort label-4503
SELECT 49 * - 62 + + COUNT ( * ) col2
----
-3037

query I rowsort
SELECT ALL 68 * - 64 AS col0
----
-4352

onlyif mysql # aggregate syntax: 
query II rowsort label-4505
SELECT DISTINCT - 54 AS col2, + MIN( ALL + + 47 ) + 43 AS col1
----
-54
90

skipif mysql # not compatible
query II rowsort label-4505
SELECT DISTINCT - 54 AS col2, + MIN ( ALL + + 47 ) + 43 AS col1
----
-54
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4506
SELECT - 12 DIV + + 23
----
0

skipif mysql # not compatible
query I rowsort label-4506
SELECT - 12 / + + 23
----
0

query I rowsort
SELECT + ( - 13 ) + - CASE - - 79 WHEN + 83 THEN 13 END + 40
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL - COALESCE ( - 29, + COUNT ( * ) )
----
29

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

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

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

query I rowsort
SELECT 80 + + - 89 * - 40 col2
----
3640

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

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

query I rowsort
SELECT ALL - 40 + 93 - 9 AS col2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT 79 * 96 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT 79 * 96 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT 15 + - - NULLIF ( - + 19, + + MAX( ALL + - 0 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-4515
SELECT 15 + - - NULLIF ( - + 19, + + MAX ( ALL + - 0 ) )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4516
SELECT ALL + 68 + + + 67 * - - CASE COALESCE ( - 55, - CAST( NULL AS SIGNED ), - ( - 75 ) ) WHEN 43 * - 86 - - 54 + + 44 THEN NULL WHEN + + 11 THEN + - 44 END + 42 + - 85 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL + 68 + + + 67 * - - CASE COALESCE ( - 55, - CAST ( NULL AS INTEGER ), - ( - 75 ) ) WHEN 43 * - 86 - - 54 + + 44 THEN NULL WHEN + + 11 THEN + - 44 END + 42 + - 85 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT DISTINCT - NULLIF ( + 6, - 34 ) * COUNT( * ) AS col1, - 57
----
-6
-57

skipif mysql # not compatible
query II rowsort label-4517
SELECT DISTINCT - NULLIF ( + 6, - 34 ) * COUNT ( * ) AS col1, - 57
----
-6
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4518
SELECT ALL - COUNT( * ) + COUNT( * ) AS col0, - 54 AS col2
----
0
-54

skipif mysql # not compatible
query II rowsort label-4518
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col0, - 54 AS col2
----
0
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT + MIN( - - NULLIF ( - - 66, + 13 * 86 * - 36 ) ) + - 62 * - - 15
----
-864

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT + MIN ( - - NULLIF ( - - 66, + 13 * 86 * - 36 ) ) + - 62 * - - 15
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL + CASE + 40 WHEN + - 12 THEN - - COUNT( * ) END + - 1 - - - COUNT( 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL + CASE + 40 WHEN + - 12 THEN - - COUNT ( * ) END + - 1 - - - COUNT ( 2 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT ALL 51 DIV + 46 * - COUNT( ALL + 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL 51 / + 46 * - COUNT ( ALL + 52 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT 24 DIV - - 14 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4522
SELECT 24 / - - 14 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4523
SELECT ALL - COUNT( * ) + 47, + 51 AS col0
----
46
51

skipif mysql # not compatible
query II rowsort label-4523
SELECT ALL - COUNT ( * ) + 47, + 51 AS col0
----
46
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4524
SELECT 95 - + 78 * + CASE - 1 WHEN + COUNT( * ) THEN - - 98 WHEN - CAST( - ( + 83 ) AS SIGNED ) THEN NULL END - + COUNT( * ) / - 82 * + 80 + - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT 95 - + 78 * + CASE - 1 WHEN + COUNT ( * ) THEN - - 98 WHEN - CAST ( - ( + 83 ) AS INTEGER ) THEN NULL END - + COUNT ( * ) / - 82 * + 80 + - + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT 26 - CASE - - 75 WHEN + 0 THEN + 68 / - 44 * - 76 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT 26 - CASE - - 75 WHEN + 0 THEN + 68 / - 44 * - 76 END * + COUNT ( * )
----
NULL

query II rowsort
SELECT ( - 64 ), - 21 + 71 AS col1
----
-64
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT 72 + + 16 DIV - ( - 42 )
----
72

skipif mysql # not compatible
query I rowsort label-4527
SELECT 72 + + 16 / - ( - 42 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4528
SELECT COUNT( * ) DIV + COALESCE ( + + 52, + + 23 * - 49 + + 86 DIV - ( CAST( NULL AS SIGNED ) ), - 88, 78 )
----
0

skipif mysql # not compatible
query I rowsort label-4528
SELECT COUNT ( * ) / + COALESCE ( + + 52, + + 23 * - 49 + + 86 / - ( CAST ( NULL AS INTEGER ) ), - 88, 78 )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT + + COUNT( DISTINCT 43 ) + - - 7 + + CAST( + 41 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-4530
SELECT + + COUNT ( DISTINCT 43 ) + - - 7 + + CAST ( + 41 AS INTEGER )
----
49

query I rowsort
SELECT ALL - 4 - + + 47 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT - + COUNT( * ) - + - 88 + CAST( - 37 AS SIGNED ) * - NULLIF ( - COUNT( * ), + - CAST( - 67 AS SIGNED ) * - SUM( - 9 ) * - AVG ( + + 6 ) + 99 ) - - - 46 * + 50 col1
----
-2250

skipif mysql # not compatible
query I rowsort label-4532
SELECT - + COUNT ( * ) - + - 88 + CAST ( - 37 AS INTEGER ) * - NULLIF ( - COUNT ( * ), + - CAST ( - 67 AS INTEGER ) * - SUM ( - 9 ) * - AVG ( + + 6 ) + 99 ) - - - 46 * + 50 col1
----
-2250

query I rowsort
SELECT + - 49 - + + 29
----
-78

query I rowsort
SELECT ALL - 44 * + 63 + + 46
----
-2726

query II rowsort
SELECT DISTINCT + ( - 56 ), 92 col1
----
-56
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT DISTINCT - 11 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT - 11 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4537
SELECT - 13 + - COUNT( * ) * + COUNT( * ) - 88 + 63 + - COALESCE ( - 12, - - CAST( + 96 AS SIGNED ) / - + 82 + 5 ) * - - CAST( NULL AS SIGNED ) / + + ( - ( 60 ) ), CAST( 88 AS SIGNED ) - + 34 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-4537
SELECT - 13 + - COUNT ( * ) * + COUNT ( * ) - 88 + 63 + - COALESCE ( - 12, - - CAST ( + 96 AS INTEGER ) / - + 82 + 5 ) * - - CAST ( NULL AS INTEGER ) / + + ( - ( 60 ) ), CAST ( 88 AS INTEGER ) - + 34 AS col2
----
NULL
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - - 78 * - MAX( - ( + - 36 ) ) * 46 + 31 - - 71 * - 91 + + 85 + - 77 AS col1
----
-135590

skipif mysql # not compatible
query I rowsort label-4539
SELECT - - 78 * - MAX ( - ( + - 36 ) ) * 46 + 31 - - 71 * - 91 + + 85 + - 77 AS col1
----
-135590

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL + - CASE - 78 WHEN + 94 * COUNT( * ) THEN 37 WHEN - 82 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + - CASE - 78 WHEN + 94 * COUNT ( * ) THEN 37 WHEN - 82 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT + + 22 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT + + 22 / + 53
----
0

query I rowsort
SELECT DISTINCT 83 * + - 24 * + + 94 + - ( - 37 ) + + CASE 97 WHEN - - 8 THEN - + 9 * + 69 END / + 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4543
SELECT ALL 59 DIV 52 * + 59
----
59

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL 59 / 52 * + 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT + 82 + + MAX( DISTINCT 91 ) * - 29 * - 2 AS col1
----
5360

skipif mysql # not compatible
query I rowsort label-4544
SELECT + 82 + + MAX ( DISTINCT 91 ) * - 29 * - 2 AS col1
----
5360

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

skipif mysql # not compatible
query I rowsort label-4545
SELECT + SUM ( + + 53 )
----
53

query I rowsort
SELECT + 64 * - + 17 * - 48 + 52 * + 39
----
54252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4547
SELECT COUNT( CAST( NULL AS SIGNED ) ) col0
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4548
SELECT ALL 57 * 13 + + 30 - + + SUM( DISTINCT + 42 ), - 51 AS col0
----
729
-51

skipif mysql # not compatible
query II rowsort label-4548
SELECT ALL 57 * 13 + + 30 - + + SUM ( DISTINCT + 42 ), - 51 AS col0
----
729
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4549
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) + 73 * + 14 * + 97 * 51 + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 73 * + 14 * + 97 * 51 + + 19
----
NULL

query I rowsort
SELECT - 41 * + 42 AS col0
----
-1722

query I rowsort
SELECT + 11 + + + 14
----
25

query II rowsort
SELECT ALL - 21 * - - 59 * + COALESCE ( - + 13, + + 90 - - 34, 98 ) + 15, 54 AS col2
----
16122
54

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

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

query I rowsort
SELECT DISTINCT 34 * - 92 * - 69 * - 99
----
-21367368

query I rowsort
SELECT ALL 94 * + + 49 + 52 AS col2
----
4658

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT SUM( - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT SUM ( - 56 )
----
-56

query II rowsort
SELECT ALL COALESCE ( ( + - 9 ), + 38 * 9 ) AS col2, - 37 AS col0
----
-9
-37

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT + CAST( + - 87 AS SIGNED ) + - 95 * + 81 AS col1
----
-7782

skipif mysql # not compatible
query I rowsort label-4559
SELECT + CAST ( + - 87 AS INTEGER ) + - 95 * + 81 AS col1
----
-7782

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT SUM( DISTINCT + + 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT SUM ( DISTINCT + + 87 ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT - 51 - - 21 + - + CAST( + - 97 AS SIGNED ) col1
----
67

skipif mysql # not compatible
query I rowsort label-4561
SELECT - 51 - - 21 + - + CAST ( + - 97 AS INTEGER ) col1
----
67

query II rowsort
SELECT ALL - + 89 - + - NULLIF ( + 71, + 64 / + 16 ) col2, 39 AS col2
----
-18
39

query I rowsort
SELECT - 4 * 16 + - 33
----
-97

query I rowsort
SELECT ALL 73 * 14
----
1022

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4566
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 68 / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 68 / - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 73 - - 98 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT - 44 + - + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-4568
SELECT - 44 + - + COUNT ( * )
----
-45

query I rowsort
SELECT ALL - ( - 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4570
SELECT - - 12 DIV 5 + + COUNT( * ) + 98 - - 8 * - - 83
----
765

skipif mysql # not compatible
query I rowsort label-4570
SELECT - - 12 / 5 + + COUNT ( * ) + 98 - - 8 * - - 83
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT - COUNT( ALL + 53 ) * - NULLIF ( - 54, - 1 ) * + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4571
SELECT - COUNT ( ALL + 53 ) * - NULLIF ( - 54, - 1 ) * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL + SUM( ALL - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + SUM ( ALL - 95 )
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT - COUNT( * ) + - 96
----
-97

skipif mysql # not compatible
query I rowsort label-4574
SELECT - COUNT ( * ) + - 96
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT + CASE + 69 WHEN + 60 * - 49 * + - 59 * + - 9 THEN - 27 WHEN 48 THEN COUNT( * ) ELSE - 60 END
----
-60

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + CASE + 69 WHEN + 60 * - 49 * + - 59 * + - 9 THEN - 27 WHEN 48 THEN COUNT ( * ) ELSE - 60 END
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL 86 * - - CAST( - - MAX( 39 ) AS SIGNED ) * - COUNT( * )
----
-3354

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL 86 * - - CAST ( - - MAX ( 39 ) AS INTEGER ) * - COUNT ( * )
----
-3354

query I rowsort
SELECT ALL 92 / - CASE - - 15 WHEN 51 / + 90 + 61 THEN + - 26 END * - 58 + 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT DISTINCT - 57 * - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT - 57 * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + COALESCE ( - + 11, 25 ) AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4580
SELECT ALL 79 DIV - 87 + COUNT( * ) + 38 * + + 47 col2
----
1787

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL 79 / - 87 + COUNT ( * ) + 38 * + + 47 col2
----
1787

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

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

query I rowsort
SELECT + 41 + + 41 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL - 26 * + COUNT( * ) + + 82 * + 86 - + ( - 38 )
----
7064

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - 26 * + COUNT ( * ) + + 82 * + 86 - + ( - 38 )
----
7064

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + COUNT( - + 92 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4584
SELECT + COUNT ( - + 92 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL + 27 * - + COUNT( * ) + 91
----
64

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL + 27 * - + COUNT ( * ) + 91
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + 5 + CASE + COUNT( * ) WHEN - 6 - + 32 THEN NULL ELSE + 31 + + COALESCE ( - ( - + 27 ), 52 ) * + - MIN( + 92 ) END
----
-2448

skipif mysql # not compatible
query I rowsort label-4586
SELECT + 5 + CASE + COUNT ( * ) WHEN - 6 - + 32 THEN NULL ELSE + 31 + + COALESCE ( - ( - + 27 ), 52 ) * + - MIN ( + 92 ) END
----
-2448

query I rowsort
SELECT ALL 59 * + 48 + + 54 * + 30
----
4452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4588
SELECT ALL CASE + - 95 WHEN - - 6 + 9 THEN - 81 WHEN 62 THEN CAST( + COALESCE ( + 47, - 76 / 20 / - COALESCE ( CAST( + - COALESCE ( - 14, - - 69 / + + 21 * + 12 + - 79 + 50 * + MIN( + 79 ) * - 33 / + COALESCE ( COUNT( * ), 55 ) - + 51 + - + 59 ) AS SIGNED ), 91 * + ( - 77 ) ), + 96 * + + 84, - COALESCE ( + 67, COUNT( * ) + + 20 - SUM( DISTINCT 23 ) + + COUNT( * ) + + COALESCE ( + 82, + 70 * ( 20 ) * 91 ) * ( 62 ), - COUNT( ALL 11 ) ) * 5 + + CASE + CAST( NULL AS SIGNED ) WHEN - 21 + 93 THEN NULL WHEN - 76 THEN 55 + + 88 WHEN MAX( NULLIF ( CAST( NULL AS SIGNED ), 16 * 63 ) ) THEN ( + COALESCE ( + 31, 20 + 4, 62 + + ( 96 + + 27 ) ) ) * CAST( NULL AS SIGNED ) END ) AS DECIMAL ) ELSE NULL END * + SUM( DISTINCT 0 + + 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL CASE + - 95 WHEN - - 6 + 9 THEN - 81 WHEN 62 THEN CAST ( + COALESCE ( + 47, - 76 / 20 / - COALESCE ( CAST ( + - COALESCE ( - 14, - - 69 / + + 21 * + 12 + - 79 + 50 * + MIN ( + 79 ) * - 33 / + COALESCE ( COUNT ( * ), 55 ) - + 51 + - + 59 ) AS INTEGER ), 91 * + ( - 77 ) ), + 96 * + + 84, - COALESCE ( + 67, COUNT ( * ) + + 20 - SUM ( DISTINCT 23 ) + + COUNT ( * ) + + COALESCE ( + 82, + 70 * ( 20 ) * 91 ) * ( 62 ), - COUNT ( ALL 11 ) ) * 5 + + CASE + CAST ( NULL AS INTEGER ) WHEN - 21 + 93 THEN NULL WHEN - 76 THEN 55 + + 88 WHEN MAX ( NULLIF ( CAST ( NULL AS INTEGER ), 16 * 63 ) ) THEN ( + COALESCE ( + 31, 20 + 4, 62 + + ( 96 + + 27 ) ) ) * CAST ( NULL AS INTEGER ) END ) AS REAL ) ELSE NULL END * + SUM ( DISTINCT 0 + + 71 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL + 0 * - 70 + + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL + 0 * - 70 + + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT NULLIF ( - 23, + 47 - 13 )
----
-23

query I rowsort
SELECT - ( 97 ) * + 23 + + 67 col0
----
-2164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT + CAST( - + 6 AS SIGNED ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-4592
SELECT + CAST ( - + 6 AS INTEGER ) col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT + 45 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-4593
SELECT + 45 / 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT - 2 * - COUNT( * ) + + + 3 col0
----
5

skipif mysql # not compatible
query I rowsort label-4594
SELECT - 2 * - COUNT ( * ) + + + 3 col0
----
5

query I rowsort
SELECT 49 + 59 + 42
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4596
SELECT ALL 33 - + 60 AS col2, + NULLIF ( - CAST( + + 56 AS SIGNED ), + + 12 ) * - 7 * 64
----
-27
25088

skipif mysql # not compatible
query II rowsort label-4596
SELECT ALL 33 - + 60 AS col2, + NULLIF ( - CAST ( + + 56 AS INTEGER ), + + 12 ) * - 7 * 64
----
-27
25088

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT ALL - CASE 56 WHEN + - 5 + + - 67 + 15 / COUNT( * ) THEN 59 * + + 66 / + - 80 WHEN + 78 / 39 * + 67 THEN NULL WHEN COUNT( * ) / 71 THEN 8 END * - 39 + + + 21 - - 1 * 64 col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4598
SELECT ALL - CASE 56 WHEN + - 5 + + - 67 + 15 / COUNT ( * ) THEN 59 * + + 66 / + - 80 WHEN + 78 / 39 * + 67 THEN NULL WHEN COUNT ( * ) / 71 THEN 8 END * - 39 + + + 21 - - 1 * 64 col0, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT CASE 75 WHEN - 53 + - 31 * + + 96 * - 64 * - - 26 + + - 99 + + 17 / 60 / - COUNT( * ) / - - COUNT( * ) THEN NULL ELSE + 39 + + + 40 END
----
79

skipif mysql # not compatible
query I rowsort label-4599
SELECT CASE 75 WHEN - 53 + - 31 * + + 96 * - 64 * - - 26 + + - 99 + + 17 / 60 / - COUNT ( * ) / - - COUNT ( * ) THEN NULL ELSE + 39 + + + 40 END
----
79

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

skipif mysql # not compatible
query I rowsort label-4600
SELECT + ( SUM ( + 80 ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT MAX( - + 75 ) * + COUNT( DISTINCT - 90 ) * - + 68 * + 62 * + 51 + COUNT( * ) + - + 85 col2
----
16126116

skipif mysql # not compatible
query I rowsort label-4601
SELECT MAX ( - + 75 ) * + COUNT ( DISTINCT - 90 ) * - + 68 * + 62 * + 51 + COUNT ( * ) + - + 85 col2
----
16126116

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL + SUM( DISTINCT 64 ) * 57
----
3648

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + SUM ( DISTINCT 64 ) * 57
----
3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4603
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + + - 65 + - 71 * - 11 col1
----
715

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + + - 65 + - 71 * - 11 col1
----
715

query II rowsort
SELECT - 3 AS col2, ( - 4 ) AS col0
----
-3
-4

query I rowsort
SELECT - 31 - + - 92 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4606
SELECT ALL + 0 * - 49 + + CAST( + - COUNT( * ) AS SIGNED ) + + - 91 * - COALESCE ( - + ( COUNT( * ) ), ( NULLIF ( 66, CASE 3 WHEN - CASE + + 30 WHEN 49 THEN + CAST( - 11 AS SIGNED ) / + COUNT( * ) / 55 + 52 END THEN COALESCE ( - 5, COUNT( * ) ) ELSE + 84 END ) ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL + 0 * - 49 + + CAST ( + - COUNT ( * ) AS INTEGER ) + + - 91 * - COALESCE ( - + ( COUNT ( * ) ), ( NULLIF ( 66, CASE 3 WHEN - CASE + + 30 WHEN 49 THEN + CAST ( - 11 AS INTEGER ) / + COUNT ( * ) / 55 + 52 END THEN COALESCE ( - 5, COUNT ( * ) ) ELSE + 84 END ) ) ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT + COALESCE ( - + MAX( ALL - 84 ), + 58 + - 85 ) * - 72 AS col1
----
-6048

skipif mysql # not compatible
query I rowsort label-4607
SELECT + COALESCE ( - + MAX ( ALL - 84 ), + 58 + - 85 ) * - 72 AS col1
----
-6048

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT 73 - + MIN( + 41 ) - 40
----
-8

skipif mysql # not compatible
query I rowsort label-4608
SELECT 73 - + MIN ( + 41 ) - 40
----
-8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT ALL + 8 + - - COUNT( * ) col0, ( - + 0 ) col0
----
9
0

skipif mysql # not compatible
query II rowsort label-4610
SELECT ALL + 8 + - - COUNT ( * ) col0, ( - + 0 ) col0
----
9
0

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

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

query I rowsort
SELECT 15 * - 15 AS col0
----
-225

query I rowsort
SELECT DISTINCT - 35 + - ( - 67 ) + - 89 * + CASE 16 WHEN - 93 - + + 53 THEN 34 * 9 END + 37 + + NULLIF ( - + 40, 5 * 1 + - 38 + + 66 * + - 81 * + 27 / + 18 - 10 + - + 52 + - ( 14 ) )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-4614
SELECT DISTINCT - SUM ( 53 ), 70 AS col2
----
-53
70

query I rowsort
SELECT DISTINCT - 54 + - 94 AS col0
----
-148

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT + 36 + - + 80 + - + 64 + + + ( COUNT( 26 ) )
----
-107

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT + 36 + - + 80 + - + 64 + + + ( COUNT ( 26 ) )
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4618
SELECT DISTINCT COALESCE ( - 96, + - COUNT( * ) ) - + CASE + 26 WHEN 17 THEN - 92 ELSE + + 43 * + COUNT( * ) + + 68 * CAST( NULL AS SIGNED ) + + NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) END + AVG ( DISTINCT + 39 ) + - 89 / COUNT( * ) + + 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT COALESCE ( - 96, + - COUNT ( * ) ) - + CASE + 26 WHEN 17 THEN - 92 ELSE + + 43 * + COUNT ( * ) + + 68 * CAST ( NULL AS INTEGER ) + + NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) END + AVG ( DISTINCT + 39 ) + - 89 / COUNT ( * ) + + 10 col1
----
NULL

query I rowsort
SELECT DISTINCT 93 - - + 95 AS col0
----
188

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

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL + COUNT ( * ) * - 85 AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT ALL ( + 21 ) - + ( - 13 ) DIV 54 * + 73 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL ( + 21 ) - + ( - 13 ) / 54 * + 73 AS col2
----
21

query I rowsort
SELECT 20 * + ( 12 )
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT 24 + + 93 DIV 38 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4623
SELECT 24 + + 93 / 38 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4624
SELECT COUNT( * ) * - CAST( 61 AS SIGNED ) * - 76
----
4636

skipif mysql # not compatible
query I rowsort label-4624
SELECT COUNT ( * ) * - CAST ( 61 AS INTEGER ) * - 76
----
4636

onlyif mysql # DIV for integer division: 
query II rowsort label-4625
SELECT ALL - 17 DIV + 50 AS col2, - 32 col0
----
0
-32

skipif mysql # not compatible
query II rowsort label-4625
SELECT ALL - 17 / + 50 AS col2, - 32 col0
----
0
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT COUNT( * ) + + CASE - 58 WHEN 70 THEN 99 + + - 67 WHEN - + COALESCE ( - 84, + ( - 83 ) ) THEN + COUNT( * ) * - - 46 * + - 11 ELSE - - 69 END
----
70

skipif mysql # not compatible
query I rowsort label-4626
SELECT COUNT ( * ) + + CASE - 58 WHEN 70 THEN 99 + + - 67 WHEN - + COALESCE ( - 84, + ( - 83 ) ) THEN + COUNT ( * ) * - - 46 * + - 11 ELSE - - 69 END
----
70

query I rowsort
SELECT ALL + COALESCE ( + + 58, - + ( 52 ) ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT NULLIF ( 2, - COUNT( * ) ) * 18 + - - 62 + + SUM( + 99 ) + - 64 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-4628
SELECT NULLIF ( 2, - COUNT ( * ) ) * 18 + - - 62 + + SUM ( + 99 ) + - 64 AS col2
----
133

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

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

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

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

query I rowsort
SELECT 80 + - 98
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4632
SELECT 26 + + CAST( NULL AS SIGNED ) * 95 * - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT 26 + + CAST ( NULL AS INTEGER ) * 95 * - + 12
----
NULL

query II rowsort
SELECT 70 - 69, - ( + 86 ) AS col2
----
1
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT SUM( ALL + 9 ) * 49 col0
----
441

skipif mysql # not compatible
query I rowsort label-4634
SELECT SUM ( ALL + 9 ) * 49 col0
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT COUNT( * ) + + COALESCE ( + 18, + + 48 * - 40 ) * + 43 AS col1
----
775

skipif mysql # not compatible
query I rowsort label-4635
SELECT COUNT ( * ) + + COALESCE ( + 18, + + 48 * - 40 ) * + 43 AS col1
----
775

query I rowsort
SELECT - NULLIF ( - 10, - 94 )
----
10

query I rowsort
SELECT 18 * - 13
----
-234

onlyif mysql # aggregate syntax: 
query II rowsort label-4638
SELECT ALL + COUNT( * ) + 41, 55 AS col1
----
42
55

skipif mysql # not compatible
query II rowsort label-4638
SELECT ALL + COUNT ( * ) + 41, 55 AS col1
----
42
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT ALL + 99 + + ( + COUNT( ALL - - 74 ) ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + 99 + + ( + COUNT ( ALL - - 74 ) ) AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL + 40 + + NULLIF ( + + COUNT( * ), - 89 ) * - + MIN( DISTINCT + 26 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL + 40 + + NULLIF ( + + COUNT ( * ), - 89 ) * - + MIN ( DISTINCT + 26 ) AS col2
----
14

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

query II rowsort
SELECT + 29 + + + 66 * + 86 col1, - ( - 2 ) - 88 * + - 56 AS col1
----
5705
4930

query I rowsort
SELECT ALL 8 + + 16 AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL - 80 + - ( + 11 ) * - 65 - - CAST( + 85 AS SIGNED ) AS col0
----
720

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL - 80 + - ( + 11 ) * - 65 - - CAST ( + 85 AS INTEGER ) AS col0
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT COUNT( * ) + - 24 * + 63 * + 63 AS col1
----
-95255

skipif mysql # not compatible
query I rowsort label-4645
SELECT COUNT ( * ) + - 24 * + 63 * + 63 AS col1
----
-95255

query I rowsort
SELECT - 95 * + - 59 - 67 * COALESCE ( + - 8, + 30, + - 16 - 46 ) + - - 26
----
6167

query I rowsort
SELECT 15 * + 37 AS col2
----
555

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT + COUNT( * ) AS col1, + 74 AS col2
----
1
74

skipif mysql # not compatible
query II rowsort label-4648
SELECT + COUNT ( * ) AS col1, + 74 AS col2
----
1
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4649
SELECT ALL - COUNT( DISTINCT COALESCE ( + 70, 87, - - 46 ) ) * - - CAST( - COUNT( DISTINCT + 22 ) AS SIGNED ) + + + 52 + + 67 + 71 * + + 64 AS col1
----
4664

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - COUNT ( DISTINCT COALESCE ( + 70, 87, - - 46 ) ) * - - CAST ( - COUNT ( DISTINCT + 22 ) AS INTEGER ) + + + 52 + + 67 + 71 * + + 64 AS col1
----
4664

query I rowsort
SELECT ALL + 77 * - - 52
----
4004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4651
SELECT DISTINCT COALESCE ( - MAX( 5 ), 78 DIV + 39 * - + COUNT( * ) ) * 69 * + - 91
----
31395

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT COALESCE ( - MAX ( 5 ), 78 / + 39 * - + COUNT ( * ) ) * 69 * + - 91
----
31395

query I rowsort
SELECT DISTINCT + 23 * + 59 - - 97 col0
----
1454

query I rowsort
SELECT 89 * + + 60
----
5340

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4654
SELECT 13 * 58 * NULLIF ( + - 60, + COALESCE ( - + 15, + COALESCE ( - ( COUNT( * ) ), - NULLIF ( + 69, 10 ), + NULLIF ( - MIN( 34 ), - 47 - + + 5 ) + + + COALESCE ( NULLIF ( COALESCE ( CASE - CAST( + 64 AS DECIMAL ) WHEN + 78 * + 65 * 45 THEN + 52 WHEN - 32 THEN NULL WHEN 55 THEN NULL END, + MAX( DISTINCT - 23 ) + - 48, + COUNT( * ) ), + - 28 * + 55 ), + - ( - 80 ) ) ), + 44 ) * 72 ) + + + 46
----
-45194

skipif mysql # not compatible
query I rowsort label-4654
SELECT 13 * 58 * NULLIF ( + - 60, + COALESCE ( - + 15, + COALESCE ( - ( COUNT ( * ) ), - NULLIF ( + 69, 10 ), + NULLIF ( - MIN ( 34 ), - 47 - + + 5 ) + + + COALESCE ( NULLIF ( COALESCE ( CASE - CAST ( + 64 AS REAL ) WHEN + 78 * + 65 * 45 THEN + 52 WHEN - 32 THEN NULL WHEN 55 THEN NULL END, + MAX ( DISTINCT - 23 ) + - 48, + COUNT ( * ) ), + - 28 * + 55 ), + - ( - 80 ) ) ), + 44 ) * 72 ) + + + 46
----
-45194

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT MIN( ALL + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4655
SELECT MIN ( ALL + 41 ) AS col1
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT + MIN( 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT + MIN ( 32 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT ALL - 50 DIV - 46 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - 50 / - 46 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4659
SELECT - 28 + 43 * + 44 / + - COUNT( * ) / + CAST( NULL AS SIGNED ) + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT - 28 + 43 * + 44 / + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) + + 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4660
SELECT COUNT( * ), - COALESCE ( MIN( - 82 ), + 75 * + 89, 32 * + 49 + - 11 * CAST( + 10 AS SIGNED ) * 38 - - - 4 ) col2
----
1
82

skipif mysql # not compatible
query II rowsort label-4660
SELECT COUNT ( * ), - COALESCE ( MIN ( - 82 ), + 75 * + 89, 32 * + 49 + - 11 * CAST ( + 10 AS INTEGER ) * 38 - - - 4 ) col2
----
1
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4661
SELECT 6 AS col1, - 87 DIV COUNT( * ) AS col1
----
6
-87

skipif mysql # not compatible
query II rowsort label-4661
SELECT 6 AS col1, - 87 / COUNT ( * ) AS col1
----
6
-87

query II rowsort
SELECT + - 3, 61 AS col0
----
-3
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4663
SELECT ALL + 5 col1, 90 * + ( - NULLIF ( 93, + + COUNT( * ) * - 37 ) ) AS col2
----
5
-8370

skipif mysql # not compatible
query II rowsort label-4663
SELECT ALL + 5 col1, 90 * + ( - NULLIF ( 93, + + COUNT ( * ) * - 37 ) ) AS col2
----
5
-8370

query II rowsort
SELECT + - 92, 46 - + 22 col0
----
-92
24

query II rowsort
SELECT 43 AS col0, + 25 AS col1
----
43
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT - SUM( ALL - 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4666
SELECT - SUM ( ALL - 20 ) AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT - + ( CAST( - 18 AS SIGNED ) ) * - - 7
----
126

skipif mysql # not compatible
query I rowsort label-4667
SELECT - + ( CAST ( - 18 AS INTEGER ) ) * - - 7
----
126

query I rowsort
SELECT ALL - 44 + + 83 + + 94 * + 12 * + 92 AS col1
----
103815

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4669
SELECT - CAST( NULL AS SIGNED ), 75 * + - 99 AS col0
----
NULL
-7425

skipif mysql # not compatible
query II rowsort label-4669
SELECT - CAST ( NULL AS INTEGER ), 75 * + - 99 AS col0
----
NULL
-7425

query I rowsort
SELECT ALL + 70 + - 47 + + 78 AS col1
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-4671
SELECT ALL - 51, + 23 + - - 36 - + COUNT( * ) * - - 14 AS col1
----
-51
45

skipif mysql # not compatible
query II rowsort label-4671
SELECT ALL - 51, + 23 + - - 36 - + COUNT ( * ) * - - 14 AS col1
----
-51
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4672
SELECT DISTINCT + COUNT( * ) + ( + COUNT( * ) ) * 68 DIV - - 43 + 80 + 90 * - - 25 * + COUNT( * ) + + ( + COUNT( * ) ) AS col1
----
2333

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT + COUNT ( * ) + ( + COUNT ( * ) ) * 68 / - - 43 + 80 + 90 * - - 25 * + COUNT ( * ) + + ( + COUNT ( * ) ) AS col1
----
2333

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4673
SELECT DISTINCT - + ( + 39 ) DIV 21 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT - + ( + 39 ) / 21 + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL + - 23 + - CASE + 98 WHEN + 53 * + + 60 - - 6 * - 60 THEN SUM( - 43 ) ELSE - 67 END - 44 + - 44 + - 92 * + COUNT( * ) * - + 32
----
2900

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL + - 23 + - CASE + 98 WHEN + 53 * + + 60 - - 6 * - 60 THEN SUM ( - 43 ) ELSE - 67 END - 44 + - 44 + - 92 * + COUNT ( * ) * - + 32
----
2900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT + + 23 * 96 * 96 - + MIN( - - 1 )
----
211967

skipif mysql # not compatible
query I rowsort label-4676
SELECT + + 23 * 96 * 96 - + MIN ( - - 1 )
----
211967

query I rowsort
SELECT ALL + 18 * 4 AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 43 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 43 col0
----
NULL

query I rowsort
SELECT + - NULLIF ( + ( - - 0 ), 91 * - 69 ) * + - 25
----
0

query I rowsort
SELECT ALL 82 - 82 * - 66 AS col1
----
5494

query I rowsort
SELECT - NULLIF ( + 99, - - 77 )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4682
SELECT ALL SUM( DISTINCT 7 ) AS col2, 88 AS col1
----
7
88

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL SUM ( DISTINCT 7 ) AS col2, 88 AS col1
----
7
88

query I rowsort
SELECT + 41 + - - 92
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4684
SELECT CAST( - 61 AS SIGNED ), - 44 AS col2
----
-61
-44

skipif mysql # not compatible
query II rowsort label-4684
SELECT CAST ( - 61 AS INTEGER ), - 44 AS col2
----
-61
-44

query II rowsort
SELECT + 29 * - 42 AS col1, - 68 + - + ( 90 )
----
-1218
-158

query I rowsort
SELECT + 34 * - 13 * + 32 * - - 62 * - 17 AS col0
----
14907776

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4687
SELECT + NULLIF ( 71, - 71 * CAST( NULL AS DECIMAL ) * - + COUNT( * ) / - SUM( - - 83 ) * + NULLIF ( + 21, + 85 - - - 54 ) )
----
71

skipif mysql # not compatible
query I rowsort label-4687
SELECT + NULLIF ( 71, - 71 * CAST ( NULL AS REAL ) * - + COUNT ( * ) / - SUM ( - - 83 ) * + NULLIF ( + 21, + 85 - - - 54 ) )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT + CAST( 66 AS SIGNED ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4688
SELECT + CAST ( 66 AS INTEGER ) AS col2
----
66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4690
SELECT + 98 * - 52 AS col1, CAST( NULL AS SIGNED ) + - 70 * - - 68
----
-5096
NULL

skipif mysql # not compatible
query II rowsort label-4690
SELECT + 98 * - 52 AS col1, CAST ( NULL AS INTEGER ) + - 70 * - - 68
----
-5096
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4691
SELECT ALL 10 * 12 * - ( - - 11 ) AS col2, + COUNT( * ) + - 81
----
-1320
-80

skipif mysql # not compatible
query II rowsort label-4691
SELECT ALL 10 * 12 * - ( - - 11 ) AS col2, + COUNT ( * ) + - 81
----
-1320
-80

query I rowsort
SELECT + 16 - - 21 + + - 17 + + 23 * 69 AS col2
----
1607

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT DISTINCT 22 DIV - 22 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT 22 / - 22 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT + CAST( + 78 AS SIGNED ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4694
SELECT + CAST ( + 78 AS INTEGER ) AS col2
----
78

query II rowsort
SELECT ( + 22 ), 34 AS col0
----
22
34

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

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL 74 * - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4698
SELECT - 95 DIV COALESCE ( + + COUNT( * ), + 93 ) DIV + 26 + + COUNT( - 95 ), - 78 AS col2
----
-2
-78

skipif mysql # not compatible
query II rowsort label-4698
SELECT - 95 / COALESCE ( + + COUNT ( * ), + 93 ) / + 26 + + COUNT ( - 95 ), - 78 AS col2
----
-2
-78

query I rowsort
SELECT 34 * - 61 + - 69 AS col2
----
-2143

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

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

query II rowsort
SELECT + + 59 + - - 38 AS col0, - 37 AS col2
----
97
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT - - SUM( 92 ) + + 36
----
128

skipif mysql # not compatible
query I rowsort label-4702
SELECT - - SUM ( 92 ) + + 36
----
128

query I rowsort
SELECT - ( 89 ) + - + ( + - 41 ) AS col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT ALL 40 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL 40 / - 51
----
0

query I rowsort
SELECT - 84 + + 18 - + 45 * + - 14
----
564

query I rowsort
SELECT ALL - 82 * - - 53 * - + 64
----
278144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4707
SELECT DISTINCT COALESCE ( + MAX( - CAST( - + 15 AS SIGNED ) ), 80, 26 - + NULLIF ( ( - COUNT( * ) ), - - 92 ) + - 73 * - COALESCE ( CAST( NULL AS SIGNED ), + 18 ) + + 36 + - - 83 * - + 22, 81 DIV 96 + 59 * 78 * + 61 * - CAST( - 5 AS SIGNED ) + CASE + 32 WHEN + 68 THEN + - 4 + ( 36 ) ELSE + - 17 END * + 22 * + - 32 ) * + CAST( - 81 AS SIGNED ) * + 67 + + + COALESCE ( 89, - + 50 * - - COUNT( * ) * - COUNT( * ) + 20 ) AS col0, 84 col2
----
-81316
84

skipif mysql # not compatible
query II rowsort label-4707
SELECT DISTINCT COALESCE ( + MAX ( - CAST ( - + 15 AS INTEGER ) ), 80, 26 - + NULLIF ( ( - COUNT ( * ) ), - - 92 ) + - 73 * - COALESCE ( CAST ( NULL AS INTEGER ), + 18 ) + + 36 + - - 83 * - + 22, 81 / 96 + 59 * 78 * + 61 * - CAST ( - 5 AS INTEGER ) + CASE + 32 WHEN + 68 THEN + - 4 + ( 36 ) ELSE + - 17 END * + 22 * + - 32 ) * + CAST ( - 81 AS INTEGER ) * + 67 + + + COALESCE ( 89, - + 50 * - - COUNT ( * ) * - COUNT ( * ) + 20 ) AS col0, 84 col2
----
-81316
84

query I rowsort
SELECT ALL 70 * - 32 + 24 - - 93 * + + 10 + - - 65 AS col0
----
-1221

query I rowsort
SELECT - - 33 * + 9 AS col2
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT - MIN( ( + + 23 ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4710
SELECT - MIN ( ( + + 23 ) ) AS col1
----
-23

query I rowsort
SELECT - - 52 + 67 AS col0
----
119

query I rowsort
SELECT + NULLIF ( + + 13, ( - ( + - 13 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4713
SELECT DISTINCT + MIN( - ( + ( - 19 ) ) ), + 94 * + - 53 * - + COUNT( * ) AS col2
----
19
4982

skipif mysql # not compatible
query II rowsort label-4713
SELECT DISTINCT + MIN ( - ( + ( - 19 ) ) ), + 94 * + - 53 * - + COUNT ( * ) AS col2
----
19
4982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4714
SELECT ALL ( MIN( ALL - CAST( - 98 AS SIGNED ) ) )
----
98

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL ( MIN ( ALL - CAST ( - 98 AS INTEGER ) ) )
----
98

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

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

query I rowsort
SELECT - 65 + - + 81
----
-146

query I rowsort
SELECT - NULLIF ( - 17, + - 57 ) AS col2
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL + 22 - + 2 + + COUNT( * ) + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL + 22 - + 2 + + COUNT ( * ) + + COUNT ( * )
----
22

query I rowsort
SELECT - CASE 77 WHEN - 76 THEN + 2 * - 52 WHEN 64 THEN - 94 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT ALL - 59 DIV 53 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL - 59 / 53 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT - NULLIF ( 2, - + COUNT( * ) ) / + MAX( 27 ) * 84 - - CAST( NULL AS SIGNED ) * - 70 / + + 80 * + + SUM( ALL 77 ) + + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT - NULLIF ( 2, - + COUNT ( * ) ) / + MAX ( 27 ) * 84 - - CAST ( NULL AS INTEGER ) * - 70 / + + 80 * + + SUM ( ALL 77 ) + + 95 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4723
SELECT + 35 DIV + - ( - + 12 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4723
SELECT + 35 / + - ( - + 12 ) AS col2
----
2

query I rowsort
SELECT DISTINCT 34 * - + 17 AS col2
----
-578

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

skipif mysql # not compatible
query I rowsort label-4725
SELECT 24 / + - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT + COUNT( * ) + - 11 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT + COUNT ( * ) + - 11 AS col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT 88 DIV - - COUNT( ALL + 11 ) + - + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-4727
SELECT 88 / - - COUNT ( ALL + 11 ) + - + COUNT ( * )
----
87

query II rowsort
SELECT 84 AS col0, 65
----
84
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4729
SELECT ALL 27 + 26 DIV + COUNT( * ) AS col0, - 36 * - 66
----
53
2376

skipif mysql # not compatible
query II rowsort label-4729
SELECT ALL 27 + 26 / + COUNT ( * ) AS col0, - 36 * - 66
----
53
2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4730
SELECT CAST( + 86 AS SIGNED ) + + ( + 40 )
----
126

skipif mysql # not compatible
query I rowsort label-4730
SELECT CAST ( + 86 AS INTEGER ) + + ( + 40 )
----
126

query I rowsort
SELECT 49 * 43 AS col0
----
2107

query I rowsort
SELECT ALL 97 + 3
----
100

query I rowsort
SELECT DISTINCT 55 * - 89
----
-4895

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT DISTINCT - NULLIF ( + 28, + COUNT( * ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT - NULLIF ( + 28, + COUNT ( * ) ) AS col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT DISTINCT 26 + ( + 57 ) DIV - 68 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT 26 + ( + 57 ) / - 68 AS col2
----
26

query I rowsort
SELECT ALL 61 + - 58 * + 4
----
-171

query I rowsort
SELECT DISTINCT 20 * - 56 AS col2
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT MIN( DISTINCT 10 ) - - 56 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4738
SELECT MIN ( DISTINCT 10 ) - - 56 AS col0
----
66

query I rowsort
SELECT 99 * 11
----
1089

query I rowsort
SELECT ALL + 53 - - 9
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT ( ( CAST( - NULLIF ( + 46, - CASE COUNT( DISTINCT + 98 ) WHEN 6 THEN NULL WHEN - COALESCE ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), 70 * - 64 ) * 64 THEN COUNT( * ) END ) AS SIGNED ) ) ) * + 76
----
-3496

skipif mysql # not compatible
query I rowsort label-4741
SELECT ( ( CAST ( - NULLIF ( + 46, - CASE COUNT ( DISTINCT + 98 ) WHEN 6 THEN NULL WHEN - COALESCE ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), 70 * - 64 ) * 64 THEN COUNT ( * ) END ) AS INTEGER ) ) ) * + 76
----
-3496

query I rowsort
SELECT ALL + ( 98 ) * - 50 col2
----
-4900

query I rowsort
SELECT 24 * - 73
----
-1752

query I rowsort
SELECT ALL - 64 * + 16 AS col1
----
-1024

query I rowsort
SELECT 8 + - 10 AS col0
----
-2

query I rowsort
SELECT 43 - 47
----
-4

query I rowsort
SELECT 14 * 41 col1
----
574

query I rowsort
SELECT 50 + CASE - 36 + + 14 * + ( - 16 ) WHEN + 62 THEN - 17 * + 30 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 46 * + 65 AS col0
----
2990

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL + 19 + 49 * ( COUNT( * ) + + 0 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + 19 + 49 * ( COUNT ( * ) + + 0 ) AS col1
----
68

query I rowsort
SELECT 40 * + ( 80 )
----
3200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4752
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + CAST ( NULL AS REAL ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT ALL + COUNT( * ) + + 88 * 67
----
5897

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + COUNT ( * ) + + 88 * 67
----
5897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4754
SELECT - COALESCE ( 86, 62, - 27 ) * - CASE - ( + COALESCE ( ( + ( SUM( ALL ( 39 ) ) ) ), - 66 / 83 + 52, - 42 * - ( + COUNT( * ) ) ) ) + + ( - CAST( NULL AS SIGNED ) + - 74 * - 49 ) * - 37 WHEN + 53 THEN + ( 91 ) WHEN MIN( CAST( + 79 AS SIGNED ) ) / + 88 THEN NULL WHEN - 50 THEN 27 ELSE NULL END - 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT - COALESCE ( 86, 62, - 27 ) * - CASE - ( + COALESCE ( ( + ( SUM ( ALL ( 39 ) ) ) ), - 66 / 83 + 52, - 42 * - ( + COUNT ( * ) ) ) ) + + ( - CAST ( NULL AS INTEGER ) + - 74 * - 49 ) * - 37 WHEN + 53 THEN + ( 91 ) WHEN MIN ( CAST ( + 79 AS INTEGER ) ) / + 88 THEN NULL WHEN - 50 THEN 27 ELSE NULL END - 75 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT DISTINCT + 2 + 64 * + CAST( + 46 AS SIGNED )
----
2946

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT + 2 + 64 * + CAST ( + 46 AS INTEGER )
----
2946

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT CASE 31 WHEN + 31 THEN NULLIF ( CASE COUNT( * ) WHEN + MAX( - 49 ) * - CASE 8 * + 75 + COUNT( * ) WHEN SUM( DISTINCT - 86 ) + - SUM( + 41 ) * - 72 THEN + 57 * + ( 80 ) WHEN - COUNT( * ) THEN NULL WHEN + NULLIF ( + ( - 77 ), + 25 * - 62 ) THEN 42 ELSE NULL END THEN 84 + 88 WHEN CASE 24 WHEN 86 THEN + 69 * + 38 - ( COUNT( * ) + 34 * CASE 43 WHEN 83 * - SUM( 51 / 77 ) THEN COUNT( * ) + 15 END ) WHEN - 13 THEN 96 WHEN + 0 THEN - COUNT( * ) * + 82 END THEN NULL ELSE NULL END, - MAX( 81 ) ) END * - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT CASE 31 WHEN + 31 THEN NULLIF ( CASE COUNT ( * ) WHEN + MAX ( - 49 ) * - CASE 8 * + 75 + COUNT ( * ) WHEN SUM ( DISTINCT - 86 ) + - SUM ( + 41 ) * - 72 THEN + 57 * + ( 80 ) WHEN - COUNT ( * ) THEN NULL WHEN + NULLIF ( + ( - 77 ), + 25 * - 62 ) THEN 42 ELSE NULL END THEN 84 + 88 WHEN CASE 24 WHEN 86 THEN + 69 * + 38 - ( COUNT ( * ) + 34 * CASE 43 WHEN 83 * - SUM ( 51 / 77 ) THEN COUNT ( * ) + 15 END ) WHEN - 13 THEN 96 WHEN + 0 THEN - COUNT ( * ) * + 82 END THEN NULL ELSE NULL END, - MAX ( 81 ) ) END * - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT DISTINCT - 38 + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT - 38 + COUNT ( * )
----
-37

query I rowsort
SELECT ALL - 7 + + 93 * + 28 AS col2
----
2597

query I rowsort
SELECT ALL 60 * 33
----
1980

query I rowsort
SELECT - 75 * ( - 80 * - 12 + - 26 ) - - 12 AS col0
----
-70038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT DISTINCT - 4 + 15 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT - 4 + 15 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 46 + 2 * - 98
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL - + CASE - 32 WHEN + COUNT( * ) THEN CASE + 22 WHEN + 99 THEN NULL ELSE - 92 END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - + CASE - 32 WHEN + COUNT ( * ) THEN CASE + 22 WHEN + 99 THEN NULL ELSE - 92 END ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 5 + 54 * + 84 col1
----
4531

query I rowsort
SELECT - 95 * + 4 + + ( 29 )
----
-351

query I rowsort
SELECT - 99 * COALESCE ( + 78, - ( 48 ) ) - 64
----
-7786

query I rowsort
SELECT - 46 + + 9 AS col1
----
-37

query I rowsort
SELECT ALL + 30 - + 99
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT SUM( - 33 ) * - CASE ( - 58 ) WHEN + 0 THEN NULL WHEN - 96 THEN NULL ELSE + 37 END
----
1221

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT SUM ( - 33 ) * - CASE ( - 58 ) WHEN + 0 THEN NULL WHEN - 96 THEN NULL ELSE + 37 END
----
1221

query I rowsort
SELECT 88 * + 74
----
6512

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4771
SELECT COUNT( * ) + 63 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT COUNT ( * ) + 63 * CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 39 * + 6 AS col0
----
234

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

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

query I rowsort
SELECT 67 * 33 col2
----
2211

query I rowsort
SELECT + 95 + - 68 AS col2
----
27

query I rowsort
SELECT + 6 * - 82
----
-492

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT + 23 DIV + ( 91 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4777
SELECT + 23 / + ( 91 ) AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4779
SELECT DISTINCT + NULLIF ( - + 76, - 18 DIV + CAST( + 71 * 16 AS SIGNED ) - - 21 * - 86 ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT + NULLIF ( - + 76, - 18 / + CAST ( + 71 * 16 AS INTEGER ) - - 21 * - 86 ) / 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL - 87 + - NULLIF ( + 16, + COUNT( * ) + 53 ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL - 87 + - NULLIF ( + 16, + COUNT ( * ) + 53 ) AS col1
----
-103

query I rowsort
SELECT DISTINCT 99 + - 78 - 34 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4782
SELECT ALL - CASE + 44 WHEN COUNT( * ) / + CAST( 95 AS SIGNED ) + + 33 * - CAST( NULL AS SIGNED ) THEN 1 ELSE - 82 END + 83
----
165

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL - CASE + 44 WHEN COUNT ( * ) / + CAST ( 95 AS INTEGER ) + + 33 * - CAST ( NULL AS INTEGER ) THEN 1 ELSE - 82 END + 83
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT + 57 + - COUNT( * ) - - 12
----
68

skipif mysql # not compatible
query I rowsort label-4783
SELECT + 57 + - COUNT ( * ) - - 12
----
68

query I rowsort
SELECT + 16 - - - 32
----
-16

query I rowsort
SELECT + 33 + - 82 * 8
----
-623

query I rowsort
SELECT DISTINCT + 15 + - + 31
----
-16

query I rowsort
SELECT ALL - 52 + + 24 * - 64 AS col2
----
-1588

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - COUNT( * ) + + + 83 * + SUM( 63 )
----
5228

skipif mysql # not compatible
query I rowsort label-4789
SELECT - COUNT ( * ) + + + 83 * + SUM ( 63 )
----
5228

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT NULLIF ( - 94, + 34 ) * NULLIF ( + 11, - COUNT( * ) ) + + 57 * 14 AS col2
----
-236

skipif mysql # not compatible
query I rowsort label-4790
SELECT NULLIF ( - 94, + 34 ) * NULLIF ( + 11, - COUNT ( * ) ) + + 57 * 14 AS col2
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT - MIN( ALL + 67 ) * - MIN( DISTINCT - 7 ) AS col1
----
-469

skipif mysql # not compatible
query I rowsort label-4791
SELECT - MIN ( ALL + 67 ) * - MIN ( DISTINCT - 7 ) AS col1
----
-469

query I rowsort
SELECT + + 40 + + 50 * + 9 AS col2
----
490

query I rowsort
SELECT ALL - + 51 * - 58
----
2958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4794
SELECT DISTINCT - COUNT( * ) DIV + 59 + 9 col1
----
9

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT - COUNT ( * ) / + 59 + 9 col1
----
9

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

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

query I rowsort
SELECT - - 54 * - 31
----
-1674

query I rowsort
SELECT ALL - - 84 * + - 77 + 99 AS col1
----
-6369

query I rowsort
SELECT + + 87 col1
----
87

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

skipif mysql # not compatible
query I rowsort label-4799
SELECT - - 21 * COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL + + SUM( DISTINCT - 25 ) * - ( 93 * + 93 ) AS col2
----
216225

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL + + SUM ( DISTINCT - 25 ) * - ( 93 * + 93 ) AS col2
----
216225

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

skipif mysql # not compatible
query I rowsort label-4801
SELECT - COUNT ( * ) * + 88 * + 56 AS col0
----
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT + CAST( + 88 AS SIGNED ) * 36
----
3168

skipif mysql # not compatible
query I rowsort label-4802
SELECT + CAST ( + 88 AS INTEGER ) * 36
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT 18 * - 42 * + 66 - - 50 * - COUNT( * ) AS col1
----
-49946

skipif mysql # not compatible
query I rowsort label-4803
SELECT 18 * - 42 * + 66 - - 50 * - COUNT ( * ) AS col1
----
-49946

query I rowsort
SELECT + 93 * - 58 AS col1
----
-5394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT ALL - - CASE + COUNT( * ) WHEN 40 THEN - 79 * - 98 + SUM( DISTINCT 98 ) WHEN 29 + 88 THEN + 20 * 56 END * - MAX( + CAST( NULL AS SIGNED ) ) + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL - - CASE + COUNT ( * ) WHEN 40 THEN - 79 * - 98 + SUM ( DISTINCT 98 ) WHEN 29 + 88 THEN + 20 * 56 END * - MAX ( + CAST ( NULL AS INTEGER ) ) + 24 AS col0
----
NULL

query I rowsort
SELECT - 33 - + 69 * 92
----
-6381

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4807
SELECT + CASE - 28 WHEN 72 + ( CAST( NULL AS SIGNED ) ) * 69 THEN NULL ELSE 9 DIV 55 END
----
0

skipif mysql # not compatible
query I rowsort label-4807
SELECT + CASE - 28 WHEN 72 + ( CAST ( NULL AS INTEGER ) ) * 69 THEN NULL ELSE 9 / 55 END
----
0

query I rowsort
SELECT DISTINCT + 25 * + 49 + + 49
----
1274

query I rowsort
SELECT DISTINCT - 64 * + 51 * 86 * + 60 + 22 AS col2
----
-16842218

query I rowsort
SELECT ALL + 92 * + + 54 + + - 31 AS col0
----
4937

query I rowsort
SELECT DISTINCT + 46 + - 19 col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT + SUM( - + 44 ) - - + 95 + + COUNT( * ) col0
----
52

skipif mysql # not compatible
query I rowsort label-4812
SELECT + SUM ( - + 44 ) - - + 95 + + COUNT ( * ) col0
----
52

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

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * - 81
----
-81

query II rowsort
SELECT 76, - ( COALESCE ( ( - 42 ), - 8 * 35 ) ) AS col0
----
76
42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4816
SELECT 84 AS col2, + CAST( NULL AS SIGNED )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-4816
SELECT 84 AS col2, + CAST ( NULL AS INTEGER )
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT ALL 10 + COUNT( * ) + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL 10 + COUNT ( * ) + COUNT ( * )
----
12

query I rowsort
SELECT + 16 + + 42 col1
----
58

query I rowsort
SELECT + 22 * - 84
----
-1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4820
SELECT - NULLIF ( + COUNT( * ), + CAST( - 92 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4820
SELECT - NULLIF ( + COUNT ( * ), + CAST ( - 92 AS INTEGER ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT + 92 + + + 64 - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT + 92 + + + 64 - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - CASE COUNT( * ) WHEN + + COUNT( * ) THEN 43 WHEN COUNT( * ) + 55 / 91 THEN NULL END - 18 * 97
----
-1789

skipif mysql # not compatible
query I rowsort label-4822
SELECT - CASE COUNT ( * ) WHEN + + COUNT ( * ) THEN 43 WHEN COUNT ( * ) + 55 / 91 THEN NULL END - 18 * 97
----
-1789

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL COALESCE ( - 36, COUNT( * ) ) * + 46 col2
----
-1656

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL COALESCE ( - 36, COUNT ( * ) ) * + 46 col2
----
-1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT ALL 80 DIV + MIN( - + 93 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL 80 / + MIN ( - + 93 ) AS col1
----
0

query I rowsort
SELECT + 86 * 67
----
5762

query I rowsort
SELECT DISTINCT 9 - + + 7 + - + CASE 33 WHEN 0 THEN 50 END * 30 * - 75
----
NULL

query I rowsort
SELECT DISTINCT - 39 * + COALESCE ( 82, 33 ) AS col1
----
-3198

query I rowsort
SELECT + 25 + + + 68
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL CASE 92 WHEN + - SUM( DISTINCT 70 ) THEN NULL ELSE 53 END / + CASE 50 - NULLIF ( 23, + 65 ) WHEN - 72 THEN SUM( ALL - COALESCE ( ( 10 ), - 94 ) ) WHEN + 31 THEN NULL WHEN - 4 THEN + 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL CASE 92 WHEN + - SUM ( DISTINCT 70 ) THEN NULL ELSE 53 END / + CASE 50 - NULLIF ( 23, + 65 ) WHEN - 72 THEN SUM ( ALL - COALESCE ( ( 10 ), - 94 ) ) WHEN + 31 THEN NULL WHEN - 4 THEN + 17 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT + 78 * - + CAST( + + 44 AS SIGNED ) * + 48 AS col1
----
-164736

skipif mysql # not compatible
query I rowsort label-4830
SELECT + 78 * - + CAST ( + + 44 AS INTEGER ) * + 48 AS col1
----
-164736

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

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

query I rowsort
SELECT + + 76 * - 31 + - 81 - - 62
----
-2375

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT + MIN( DISTINCT - - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-4833
SELECT + MIN ( DISTINCT - - 10 )
----
10

query I rowsort
SELECT ALL + - 49 * NULLIF ( + + 41, 47 ) AS col1
----
-2009

query I rowsort
SELECT ALL + 94 * 90 * 0 AS col2
----
0

query I rowsort
SELECT DISTINCT - 61 * + 38
----
-2318

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT - + SUM( + 41 ) * 10
----
-410

skipif mysql # not compatible
query I rowsort label-4837
SELECT - + SUM ( + 41 ) * 10
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT 33 * - 56 - + COUNT( * ) - + 52
----
-1901

skipif mysql # not compatible
query I rowsort label-4838
SELECT 33 * - 56 - + COUNT ( * ) - + 52
----
-1901

query II rowsort
SELECT - 42, - 84 * ( 66 ) AS col0
----
-42
-5544

query II rowsort
SELECT 40 AS col1, ( + 70 ) - - 85 * 70 AS col2
----
40
6020

query I rowsort
SELECT + + 47 + - + 44 + - - 45
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL - 78 + + COALESCE ( COUNT( * ), 78 - + ( - 3 ), 64 )
----
-77

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - 78 + + COALESCE ( COUNT ( * ), 78 - + ( - 3 ), 64 )
----
-77

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

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

query I rowsort
SELECT + 87 - + - 39
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT - - CASE - 68 WHEN - - 31 THEN 97 END * ( - 55 ) - ( COUNT( * ) + 11 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT - - CASE - 68 WHEN - - 31 THEN 97 END * ( - 55 ) - ( COUNT ( * ) + 11 ) AS col2
----
NULL

query II rowsort
SELECT ALL - - 70 AS col1, 82
----
70
82

query I rowsort
SELECT ALL - 29 * + 7 * 33 + + NULLIF ( 69, 39 ) AS col0
----
-6630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT ALL - COALESCE ( + - 52, + 90, 72 * - 14 ) + + ( CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - COALESCE ( + - 52, + 90, 72 * - 14 ) + + ( CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT DISTINCT - 87 + - CASE - NULLIF ( 77, 77 ) WHEN 52 THEN - 20 * 72 END * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT - 87 + - CASE - NULLIF ( 77, 77 ) WHEN 52 THEN - 20 * 72 END * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL + ( + COUNT( * ) ) + 83 + 37 * + 60
----
2304

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + ( + COUNT ( * ) ) + 83 + 37 * + 60
----
2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT 33 + + CAST( NULL AS SIGNED ) / - 23 + - ( - 94 ) + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT 33 + + CAST ( NULL AS INTEGER ) / - 23 + - ( - 94 ) + 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL 47 + NULLIF ( - MAX( + 55 ), - 38 )
----
-8

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL 47 + NULLIF ( - MAX ( + 55 ), - 38 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT 33 * COUNT( * ) * + - 90 * - 93 + + 51
----
276261

skipif mysql # not compatible
query I rowsort label-4853
SELECT 33 * COUNT ( * ) * + - 90 * - 93 + + 51
----
276261

query I rowsort
SELECT DISTINCT - ( - 84 ) + ( 48 )
----
132

query I rowsort
SELECT 62 + 44 + + + COALESCE ( - 18, 12 * + 55 + 50 ) AS col0
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT 68 * - 50 * + COUNT( * )
----
-3400

skipif mysql # not compatible
query I rowsort label-4857
SELECT 68 * - 50 * + COUNT ( * )
----
-3400

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT DISTINCT 92 - 70 * - COUNT( * ) AS col0
----
162

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT 92 - 70 * - COUNT ( * ) AS col0
----
162

query I rowsort
SELECT DISTINCT 3 * - 81 AS col1
----
-243

query I rowsort
SELECT COALESCE ( - 91, + 32 - - - 26 - 44, - 34 + 24 ) * 39 AS col0
----
-3549

query I rowsort
SELECT + 32 * + ( + 72 ) col0
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT + MAX( 4 ) - COUNT( DISTINCT - 66 ) + 27 * + 38
----
1029

skipif mysql # not compatible
query I rowsort label-4862
SELECT + MAX ( 4 ) - COUNT ( DISTINCT - 66 ) + 27 * + 38
----
1029

query I rowsort
SELECT - 85 + + 58
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT DISTINCT NULLIF ( - + CAST( - CASE + - COUNT( * ) WHEN + ( - 64 ) / - 17 THEN NULL WHEN CAST( - 2 AS SIGNED ) / + 90 THEN 31 ELSE NULL END AS SIGNED ), COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT NULLIF ( - + CAST ( - CASE + - COUNT ( * ) WHEN + ( - 64 ) / - 17 THEN NULL WHEN CAST ( - 2 AS INTEGER ) / + 90 THEN 31 ELSE NULL END AS INTEGER ), COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + + 29, + 90 ) col1
----
-29

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

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL - - CAST ( + - 79 AS INTEGER )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT + COUNT( * ) + 75 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4867
SELECT + COUNT ( * ) + 75 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4868
SELECT 88 * - 96 * + CASE 82 WHEN + SUM( + CAST( 69 AS SIGNED ) ) * 86 THEN NULL ELSE 49 * - 99 END + - 76
----
40981172

skipif mysql # not compatible
query I rowsort label-4868
SELECT 88 * - 96 * + CASE 82 WHEN + SUM ( + CAST ( 69 AS INTEGER ) ) * 86 THEN NULL ELSE 49 * - 99 END + - 76
----
40981172

query I rowsort
SELECT - NULLIF ( 46, - - 70 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4870
SELECT - ( + CASE + 83 WHEN 45 * ( + COUNT( * ) * + 47 - NULLIF ( - 4, - CAST( + 44 AS DECIMAL ) + - AVG ( + 94 ) ) ) THEN + COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT - ( + CASE + 83 WHEN 45 * ( + COUNT ( * ) * + 47 - NULLIF ( - 4, - CAST ( + 44 AS REAL ) + - AVG ( + 94 ) ) ) THEN + COUNT ( * ) ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4871
SELECT - + 35 DIV + - ( - - 21 ) + 31
----
32

skipif mysql # not compatible
query I rowsort label-4871
SELECT - + 35 / + - ( - - 21 ) + 31
----
32

query I rowsort
SELECT DISTINCT - - 40 col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT - 84 + - COALESCE ( - COUNT( * ), - - 34 DIV 27, COUNT( ALL + 70 ) DIV 3 ) - 98 col0
----
-181

skipif mysql # not compatible
query I rowsort label-4873
SELECT - 84 + - COALESCE ( - COUNT ( * ), - - 34 / 27, COUNT ( ALL + 70 ) / 3 ) - 98 col0
----
-181

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4874
SELECT ALL - + ( + CASE + 85 WHEN + 88 THEN 77 / - ( + 2 ) + + ( 85 ) WHEN 8 THEN - COUNT( 73 ) + + AVG ( CAST( NULL AS DECIMAL ) ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - + ( + CASE + 85 WHEN + 88 THEN 77 / - ( + 2 ) + + ( 85 ) WHEN 8 THEN - COUNT ( 73 ) + + AVG ( CAST ( NULL AS REAL ) ) END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT NULLIF ( - 36, CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * CAST( 89 + 21 AS SIGNED ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4875
SELECT NULLIF ( - 36, CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * CAST ( 89 + 21 AS INTEGER ) ) AS col2
----
-36

query I rowsort
SELECT 33 * + - ( - - 34 )
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL - MIN( ALL 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL - MIN ( ALL 45 )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4878
SELECT DISTINCT - 83 + CAST( 18 AS SIGNED ) + 25 + - - SUM( ALL - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT - 83 + CAST ( 18 AS INTEGER ) + 25 + - - SUM ( ALL - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4879
SELECT 65 * + - 96 - - 32 AS col2, + COUNT( * ) + 59 + 83 DIV + 21 AS col1
----
-6208
63

skipif mysql # not compatible
query II rowsort label-4879
SELECT 65 * + - 96 - - 32 AS col2, + COUNT ( * ) + 59 + 83 / + 21 AS col1
----
-6208
63

query I rowsort
SELECT 59 * + 31
----
1829

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT 78 DIV - NULLIF ( + 28, + 40 ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-4881
SELECT 78 / - NULLIF ( + 28, + 40 ) col0
----
-2

query I rowsort
SELECT 49 * - 12 AS col2
----
-588

query I rowsort
SELECT DISTINCT + 56 * - + 3
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT DISTINCT COALESCE ( + 6, - ( - + 88 ) / + 60 ) / + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT COALESCE ( + 6, - ( - + 88 ) / + 60 ) / + ( - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT ALL + 66 * - + 60 * + COALESCE ( - 28, + 80, - ( + 20 ) )
----
110880

query I rowsort
SELECT 77 - + - 95 + + 18
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL - 93 * + COUNT( * ) * - COUNT( * ) * ( + - 1 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL - 93 * + COUNT ( * ) * - COUNT ( * ) * ( + - 1 ) AS col2
----
-93

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

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL MAX ( 79 )
----
79

query I rowsort
SELECT 64 * - 62
----
-3968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4891
SELECT 67 + + SUM( DISTINCT + - 49 ), 64 + + ( + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) + - AVG ( ALL CAST( NULL AS SIGNED ) + - 66 ) * - 33 / - 28 AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-4891
SELECT 67 + + SUM ( DISTINCT + - 49 ), 64 + + ( + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) + - AVG ( ALL CAST ( NULL AS INTEGER ) + - 66 ) * - 33 / - 28 AS col0
----
18
NULL

query I rowsort
SELECT - 39 + 66 col1
----
27

query I rowsort
SELECT 62 * + 98 + - 83 + + - 7 AS col1
----
5986

query II rowsort
SELECT DISTINCT ( + 87 ) * - 99 AS col0, + 19
----
-8613
19

query I rowsort
SELECT - ( - 61 ) - + ( - - 43 ) + - 21 * 77
----
-1599

query I rowsort
SELECT ALL 29 * + - NULLIF ( 39, - 79 + 71 ) AS col2
----
-1131

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT + 69 * + + COUNT( + 13 ) col0
----
69

skipif mysql # not compatible
query I rowsort label-4897
SELECT + 69 * + + COUNT ( + 13 ) col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT - 45 * - COUNT( - 16 ) + + 73 + 41 AS col1
----
159

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - 45 * - COUNT ( - 16 ) + + 73 + 41 AS col1
----
159

query I rowsort
SELECT ALL + + 94 * - COALESCE ( - 69, + 4 * - + 92, 94 ) + 85 AS col2
----
6571

query I rowsort
SELECT + + 65 - - 57 + 78 * - 69 * ( + 10 ) * 49 col0
----
-2637058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4901
SELECT DISTINCT + + ( - - NULLIF ( + CAST( NULL AS SIGNED ), MIN( 14 ) * COALESCE ( NULLIF ( MAX( 29 ), 10 ), - 65 * - COUNT( * ) + + ( CASE 41 WHEN 13 * 35 THEN 80 * 44 + + 52 ELSE - CAST( NULL AS SIGNED ) + 32 / + 96 END ), - 84, ( - CAST( - COALESCE ( - 24, COALESCE ( 60, 37 + 57 * - ( - 22 ), 96 ) + + CAST( 42 AS SIGNED ) ) AS SIGNED ) ) + CAST( NULL AS SIGNED ) ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT + + ( - - NULLIF ( + CAST ( NULL AS INTEGER ), MIN ( 14 ) * COALESCE ( NULLIF ( MAX ( 29 ), 10 ), - 65 * - COUNT ( * ) + + ( CASE 41 WHEN 13 * 35 THEN 80 * 44 + + 52 ELSE - CAST ( NULL AS INTEGER ) + 32 / + 96 END ), - 84, ( - CAST ( - COALESCE ( - 24, COALESCE ( 60, 37 + 57 * - ( - 22 ), 96 ) + + CAST ( 42 AS INTEGER ) ) AS INTEGER ) ) + CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT + COALESCE ( + - 55, + - 83, + 46, - - 20 * 77 ) * - COUNT( * ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4903
SELECT + COALESCE ( + - 55, + - 83, + 46, - - 20 * 77 ) * - COUNT ( * ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4904
SELECT 69 * 52 + - ( 43 ) + + MIN( ALL - - 2 ) * + AVG ( ALL 35 * CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT 69 * 52 + - ( 43 ) + + MIN ( ALL - - 2 ) * + AVG ( ALL 35 * CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT - 23 - 48 + COUNT( * ) * 40 + - 62 - 74 col1
----
-167

skipif mysql # not compatible
query I rowsort label-4905
SELECT - 23 - 48 + COUNT ( * ) * 40 + - 62 - 74 col1
----
-167

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

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL 29 * - + COUNT ( * ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4907
SELECT + 69 + - + COUNT( * ) AS col0, + 61 + MAX( 20 ) * + 79 AS col2
----
68
1641

skipif mysql # not compatible
query II rowsort label-4907
SELECT + 69 + - + COUNT ( * ) AS col0, + 61 + MAX ( 20 ) * + 79 AS col2
----
68
1641

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL ( + 32 ) * - 51 - - + MIN( ALL + 67 ) + + 6
----
-1559

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL ( + 32 ) * - 51 - - + MIN ( ALL + 67 ) + + 6
----
-1559

query I rowsort
SELECT + 63 + - 93 * - + 4 + - 52 + + 48
----
431

query I rowsort
SELECT DISTINCT 28 * + 34 AS col0
----
952

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4911
SELECT + 86 * 17 + CAST( NULL AS DECIMAL ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT + 86 * 17 + CAST ( NULL AS REAL ) * + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT + MAX( - CAST( NULL AS SIGNED ) ) * + SUM( DISTINCT - - 28 ) * - CASE + + 57 WHEN 77 + 41 * 85 THEN NULL ELSE + 80 / 11 END - + COALESCE ( COALESCE ( 28, + 0 ) + + 83, CASE 74 WHEN - 21 THEN + 75 ELSE NULL END + CAST( + 13 AS SIGNED ), 0 - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT + MAX ( - CAST ( NULL AS INTEGER ) ) * + SUM ( DISTINCT - - 28 ) * - CASE + + 57 WHEN 77 + 41 * 85 THEN NULL ELSE + 80 / 11 END - + COALESCE ( COALESCE ( 28, + 0 ) + + 83, CASE 74 WHEN - 21 THEN + 75 ELSE NULL END + CAST ( + 13 AS INTEGER ), 0 - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - CASE - 93 WHEN + - 90 THEN + - NULLIF ( - 23, - 59 ) * 73 ELSE MAX( 88 ) + + 36 END * COUNT( * )
----
-124

skipif mysql # not compatible
query I rowsort label-4913
SELECT - CASE - 93 WHEN + - 90 THEN + - NULLIF ( - 23, - 59 ) * 73 ELSE MAX ( 88 ) + + 36 END * COUNT ( * )
----
-124

onlyif mysql # DIV for integer division: 
query I rowsort label-4914
SELECT ALL + 35 DIV - 60 * + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL + 35 / - 60 * + 60 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4915
SELECT + COALESCE ( - 29, - 93 * - 79 + 47 - + + ( COUNT( 15 ) ) * COUNT( CAST( NULL AS SIGNED ) + - 91 * + 18 ) * 42, 50 DIV + 40 + + 81 ) + 93 * - 6 AS col2
----
-587

skipif mysql # not compatible
query I rowsort label-4915
SELECT + COALESCE ( - 29, - 93 * - 79 + 47 - + + ( COUNT ( 15 ) ) * COUNT ( CAST ( NULL AS INTEGER ) + - 91 * + 18 ) * 42, 50 / + 40 + + 81 ) + 93 * - 6 AS col2
----
-587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT DISTINCT - + 5 + + 94 * + 94 + + NULLIF ( - 52, 69 - 94 * CAST( NULL AS SIGNED ) )
----
8779

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT - + 5 + + 94 * + 94 + + NULLIF ( - 52, 69 - 94 * CAST ( NULL AS INTEGER ) )
----
8779

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + + 42 * + 65 + CASE - 48 WHEN + 72 * + 9 THEN NULL ELSE MAX( + 7 ) END
----
2737

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + + 42 * + 65 + CASE - 48 WHEN + 72 * + 9 THEN NULL ELSE MAX ( + 7 ) END
----
2737

query I rowsort
SELECT + CASE + ( + 71 ) WHEN - 47 THEN - 82 + + 69 WHEN 34 * 22 THEN - ( 50 ) * 14 ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - + 29 + 77 * 40 AS col0
----
3051

query II rowsort
SELECT - 3 + 57, 55 col1
----
54
55

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

query I rowsort
SELECT - 17 + 38
----
21

query I rowsort
SELECT ALL - 82 + - 57
----
-139

query II rowsort
SELECT 28 AS col2, + COALESCE ( + COALESCE ( + 18, - 98 - - 19 * + 62 ), 21, ( - 14 ) + + 4 ) * + 63
----
28
1134

query I rowsort
SELECT - + ( + ( + - 1 ) ) + - + 27 + + 34 * - - 95
----
3204

query I rowsort
SELECT - 74 - ( - + 33 ) + NULLIF ( - 6, - 85 * + 10 ) + 65 col2
----
18

query I rowsort
SELECT ALL + + 71 + + 46 * 23 AS col2
----
1129

query I rowsort
SELECT ALL + 99 + - 12 col1
----
87

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4931
SELECT - NULLIF ( - + COUNT( * ), 46 / - 46 + - COALESCE ( - 81, + 77 * AVG ( ( 53 ) ) ) ) + + CAST( - 95 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-4931
SELECT - NULLIF ( - + COUNT ( * ), 46 / - 46 + - COALESCE ( - 81, + 77 * AVG ( ( 53 ) ) ) ) + + CAST ( - 95 AS INTEGER )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT - + 61 * + - 84 * 54 + - 93 * CAST( + + 23 AS SIGNED ) + 26
----
274583

skipif mysql # not compatible
query I rowsort label-4932
SELECT - + 61 * + - 84 * 54 + - 93 * CAST ( + + 23 AS INTEGER ) + 26
----
274583

query I rowsort
SELECT ALL 63 * + 85 AS col1
----
5355

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT ALL + 26 DIV + 2 + - + COALESCE ( - COALESCE ( + 96, - 5, 97 * 14 - - 60 DIV ( + 79 + + 12 * + 76 ) ), - 51 ) - - 15 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL + 26 / + 2 + - + COALESCE ( - COALESCE ( + 96, - 5, 97 * 14 - - 60 / ( + 79 + + 12 * + 76 ) ), - 51 ) - - 15 AS col0
----
124

query II rowsort
SELECT + 78, + ( + + 78 ) AS col2
----
78
78

query I rowsort
SELECT - 0 * 86 * + 22 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT DISTINCT + CASE - 7 WHEN + 43 * - + 26 + - MIN( ALL - 87 ) THEN NULL WHEN + COUNT( * ) * + 81 THEN NULL ELSE + 88 END * 40
----
3520

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT + CASE - 7 WHEN + 43 * - + 26 + - MIN ( ALL - 87 ) THEN NULL WHEN + COUNT ( * ) * + 81 THEN NULL ELSE + 88 END * 40
----
3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT + CASE + - 92 WHEN - CAST( NULL AS SIGNED ) THEN + + 85 * + - 45 + - 23 - - + MAX( - 55 ) * COUNT( * ) ELSE NULL END / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT + CASE + - 92 WHEN - CAST ( NULL AS INTEGER ) THEN + + 85 * + - 45 + - 23 - - + MAX ( - 55 ) * COUNT ( * ) ELSE NULL END / 16
----
NULL

query I rowsort
SELECT ALL + CASE + 75 WHEN - + 25 THEN 79 + 31 * + 6 WHEN + - 45 THEN 42 / - 23 WHEN 57 THEN ( 11 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4941
SELECT - 51 DIV + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4941
SELECT - 51 / + 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT + 57 / + CASE + SUM( ALL + 64 ) WHEN + + 19 + + 84 THEN 17 + + 57 WHEN 59 THEN NULL WHEN + 68 * MIN( + 82 ) + - 81 THEN 78 - ( - 70 ) ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT + 57 / + CASE + SUM ( ALL + 64 ) WHEN + + 19 + + 84 THEN 17 + + 57 WHEN 59 THEN NULL WHEN + 68 * MIN ( + 82 ) + - 81 THEN 78 - ( - 70 ) ELSE NULL END * - COUNT ( * )
----
NULL

query I rowsort
SELECT + NULLIF ( + - 11, 48 ) * + 8
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4944
SELECT + 92 DIV SUM( ALL - - 79 ) DIV + 33 + - - 64 + - 4 DIV - 82 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4944
SELECT + 92 / SUM ( ALL - - 79 ) / + 33 + - - 64 + - 4 / - 82 AS col2
----
64

query I rowsort
SELECT + 4 - - 79 * - + 37 AS col2
----
-2919

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4946
SELECT + CASE - 91 WHEN MIN( ALL ( - 90 ) ) THEN NULL WHEN + CASE + 59 WHEN ( 77 ) * 68 + 93 THEN NULL ELSE + 34 END THEN NULL ELSE 63 + + 82 DIV 17 END + + 75
----
142

skipif mysql # not compatible
query I rowsort label-4946
SELECT + CASE - 91 WHEN MIN ( ALL ( - 90 ) ) THEN NULL WHEN + CASE + 59 WHEN ( 77 ) * 68 + 93 THEN NULL ELSE + 34 END THEN NULL ELSE 63 + + 82 / 17 END + + 75
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4947
SELECT ALL - 45 * + 8 + + 75 AS col1, 58 * + + CASE CAST( + - 86 AS SIGNED ) WHEN + 30 + + 92 THEN NULL WHEN ( 25 ) THEN - 65 ELSE NULL END * + 43 + - COUNT( * ) * + 92 col0
----
-285
NULL

skipif mysql # not compatible
query II rowsort label-4947
SELECT ALL - 45 * + 8 + + 75 AS col1, 58 * + + CASE CAST ( + - 86 AS INTEGER ) WHEN + 30 + + 92 THEN NULL WHEN ( 25 ) THEN - 65 ELSE NULL END * + 43 + - COUNT ( * ) * + 92 col0
----
-285
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT + SUM( 68 ) - + 5 - - MAX( 51 ) + 83 + 18
----
215

skipif mysql # not compatible
query I rowsort label-4948
SELECT + SUM ( 68 ) - + 5 - - MAX ( 51 ) + 83 + 18
----
215

query I rowsort
SELECT ALL 62 + - + ( 96 ) - 20
----
-54

query I rowsort
SELECT 38 * 57 AS col2
----
2166

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT MIN( + + 63 ) + + - 0
----
63

skipif mysql # not compatible
query I rowsort label-4951
SELECT MIN ( + + 63 ) + + - 0
----
63

query I rowsort
SELECT - + NULLIF ( - 96, + 59 * ( - + 81 ) ) AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT DISTINCT + 3 + 5 + + + CAST( NULL AS SIGNED ) + + 39 * + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT + 3 + 5 + + + CAST ( NULL AS INTEGER ) + + 39 * + 69 AS col0
----
NULL

query I rowsort
SELECT ALL + + 35 + - + 81 * - 38
----
3113

query I rowsort
SELECT DISTINCT - 12 * - 74 AS col0
----
888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4956
SELECT DISTINCT - COUNT( * ) DIV - 31 * 65
----
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT - COUNT ( * ) / - 31 * 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT 40 * 79 + - 60 + + 88 * 63 + - 20 * + - MIN( ALL + 24 ) * 29
----
22564

skipif mysql # not compatible
query I rowsort label-4957
SELECT 40 * 79 + - 60 + + 88 * 63 + - 20 * + - MIN ( ALL + 24 ) * 29
----
22564

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL - - ( - + 75 ) - - COUNT( DISTINCT - 11 ) - + 34
----
-108

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL - - ( - + 75 ) - - COUNT ( DISTINCT - 11 ) - + 34
----
-108

query I rowsort
SELECT + 70 + NULLIF ( + - NULLIF ( + 81, + AVG ( DISTINCT 56 ) ), - - 54 ) col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4960
SELECT + NULLIF ( + COUNT( * ), COUNT( * ) ) * COUNT( DISTINCT - 49 ) * + 17 + - 5 + CAST( + 27 + 58 * CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT + NULLIF ( + COUNT ( * ), COUNT ( * ) ) * COUNT ( DISTINCT - 49 ) * + 17 + - 5 + CAST ( + 27 + 58 * CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4961
SELECT 6 DIV - 66 + - - 0, COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-4961
SELECT 6 / - 66 + - - 0, COUNT ( * ) AS col1
----
0
1

query I rowsort
SELECT 43 + + 89 * - 17
----
-1470

query I rowsort
SELECT ALL - ( - 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4964
SELECT ALL - 88 AS col0, 73 * + ( - COUNT( * ) )
----
-88
-73

skipif mysql # not compatible
query II rowsort label-4964
SELECT ALL - 88 AS col0, 73 * + ( - COUNT ( * ) )
----
-88
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4965
SELECT 58 - - 46 * + 27 col2, - CAST( NULL AS DECIMAL ) * COUNT( * )
----
1300
NULL

skipif mysql # not compatible
query II rowsort label-4965
SELECT 58 - - 46 * + 27 col2, - CAST ( NULL AS REAL ) * COUNT ( * )
----
1300
NULL

query I rowsort
SELECT + 35 * - - 20 - + 37 AS col2
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT COUNT( * ) / - ( + 65 ) * 38 + + + CASE - + 32 WHEN + 88 + - ( NULLIF ( 20, COUNT( ALL - 29 ) + - 47 * + 8 ) ) THEN NULL WHEN 48 THEN - ( + SUM( DISTINCT ( 13 ) ) ) END + COUNT( * ) + MAX( ALL + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT COUNT ( * ) / - ( + 65 ) * 38 + + + CASE - + 32 WHEN + 88 + - ( NULLIF ( 20, COUNT ( ALL - 29 ) + - 47 * + 8 ) ) THEN NULL WHEN 48 THEN - ( + SUM ( DISTINCT ( 13 ) ) ) END + COUNT ( * ) + MAX ( ALL + 17 )
----
NULL

query I rowsort
SELECT 87 + + 83
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4969
SELECT 7 * - + 22 + + - CAST( - + MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) AS SIGNED ) / MAX( - ( - 17 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT 7 * - + 22 + + - CAST ( - + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) AS INTEGER ) / MAX ( - ( - 17 ) )
----
NULL

query I rowsort
SELECT DISTINCT - 34 * - - 23
----
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL + SUM( ALL NULLIF ( + - 26, - 23 ) ) + + 54
----
28

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL + SUM ( ALL NULLIF ( + - 26, - 23 ) ) + + 54
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4972
SELECT + 78 * - NULLIF ( + NULLIF ( 8, 45 ), - 63 * - CAST( NULL AS SIGNED ) * 19 + + 96 ) * 94 + COUNT( ALL 70 + + 87 ) AS col0
----
-58655

skipif mysql # not compatible
query I rowsort label-4972
SELECT + 78 * - NULLIF ( + NULLIF ( 8, 45 ), - 63 * - CAST ( NULL AS INTEGER ) * 19 + + 96 ) * 94 + COUNT ( ALL 70 + + 87 ) AS col0
----
-58655

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT 77 + - COUNT( * ) + - 58 * ( - 10 ) + - MAX( + - 17 ) col0
----
673

skipif mysql # not compatible
query I rowsort label-4973
SELECT 77 + - COUNT ( * ) + - 58 * ( - 10 ) + - MAX ( + - 17 ) col0
----
673

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

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

query I rowsort
SELECT DISTINCT - 35 + - 84 AS col1
----
-119

query I rowsort
SELECT ALL + 80 + - + 14 + - - 79 * - 32
----
-2462

query II rowsort
SELECT DISTINCT - 61, - 28 AS col0
----
-61
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4978
SELECT DISTINCT + SUM( - 78 ) + CAST( COUNT( * ) AS SIGNED ) + - 80 * + ( 57 ) * - COUNT( * ) + - 25
----
4458

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT + SUM ( - 78 ) + CAST ( COUNT ( * ) AS INTEGER ) + - 80 * + ( 57 ) * - COUNT ( * ) + - 25
----
4458

query I rowsort
SELECT 17 * 86
----
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT - + 69 * 99 + + COUNT( ALL + 83 ) + CASE - 72 WHEN - + 26 + + 58 THEN 17 END + 84 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT - + 69 * 99 + + COUNT ( ALL + 83 ) + CASE - 72 WHEN - + 26 + + 58 THEN 17 END + 84 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4981
SELECT DISTINCT 50 DIV - - COUNT( * ) * - COUNT( * ) + + 12 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT 50 / - - COUNT ( * ) * - COUNT ( * ) + + 12 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4982
SELECT 6 + 86 + - COUNT( * ) + - COUNT( * ) + + CAST( NULL AS SIGNED ) - 93 * - 54 * + 95 * - 79 + CAST( NULL AS SIGNED ) * ( + 82 - 9 ) * - 57 * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT 6 + 86 + - COUNT ( * ) + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) - 93 * - 54 * + 95 * - 79 + CAST ( NULL AS INTEGER ) * ( + 82 - 9 ) * - 57 * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT CASE + 92 WHEN + 32 / MIN( + + 94 ) - + NULLIF ( + 79, 44 ) THEN NULL WHEN + 18 THEN NULL ELSE + COUNT( * ) END * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4983
SELECT CASE + 92 WHEN + 32 / MIN ( + + 94 ) - + NULLIF ( + 79, 44 ) THEN NULL WHEN + 18 THEN NULL ELSE + COUNT ( * ) END * COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4984
SELECT ( - 40 ) * 29 * - NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT ( - 40 ) * 29 * - NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4985
SELECT ALL + COALESCE ( - 45, - CAST( + 84 AS SIGNED ) ) DIV + 95 * + 34 * 89 * + 52 * - 13 + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL + COALESCE ( - 45, - CAST ( + 84 AS INTEGER ) ) / + 95 * + 34 * 89 * + 52 * - 13 + - 22
----
-22

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

query I rowsort
SELECT + 43 * + - 52 col1
----
-2236

query I rowsort
SELECT CASE - - COALESCE ( + 84, 20 ) WHEN - 13 THEN NULL WHEN 99 THEN NULL ELSE + 0 * 0 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - MIN( DISTINCT + 64 ) + + MIN( + 13 ) / - CASE 89 WHEN + 51 THEN + + 62 WHEN COUNT( - 13 ) THEN + COUNT( * ) WHEN 23 THEN - 48 + + 36 * 14 END + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT - MIN ( DISTINCT + 64 ) + + MIN ( + 13 ) / - CASE 89 WHEN + 51 THEN + + 62 WHEN COUNT ( - 13 ) THEN + COUNT ( * ) WHEN 23 THEN - 48 + + 36 * 14 END + 67
----
NULL

query II rowsort
SELECT ALL - 73 col0, 88
----
-73
88

query I rowsort
SELECT ALL 39 - - + 59 AS col2
----
98

query I rowsort
SELECT 63 * + 73 * - 27 + + - 84
----
-124257

onlyif mysql # CAST syntax: aggregate syntax: SI