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: SIGNED type: 
query I rowsort label-4993
SELECT ( - + 13 ) + - MAX( ALL + CAST( NULL AS SIGNED ) ) + + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT ( - + 13 ) + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + + 6 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 72 - 25
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT - 56 AS col0, + CASE 69 WHEN - + 80 THEN NULL WHEN 85 + + + 35 * - 36 * - CASE NULLIF ( COUNT( * ), + COUNT( * ) + - NULLIF ( 10 + + 64, - 13 * + 22 ) * 14 ) WHEN CASE - 11 WHEN - 86 * 97 THEN NULL WHEN + 81 + COUNT( DISTINCT - 53 ) THEN + 11 * 15 ELSE NULL END * - COUNT( * ) THEN ( + COUNT( * ) ) END THEN + 85 END
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-4995
SELECT - 56 AS col0, + CASE 69 WHEN - + 80 THEN NULL WHEN 85 + + + 35 * - 36 * - CASE NULLIF ( COUNT ( * ), + COUNT ( * ) + - NULLIF ( 10 + + 64, - 13 * + 22 ) * 14 ) WHEN CASE - 11 WHEN - 86 * 97 THEN NULL WHEN + 81 + COUNT ( DISTINCT - 53 ) THEN + 11 * 15 ELSE NULL END * - COUNT ( * ) THEN ( + COUNT ( * ) ) END THEN + 85 END
----
-56
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4996
SELECT ALL + CAST( NULL AS SIGNED ) * - MAX( DISTINCT + 76 ) * 80 * - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT + 76 ) * 80 * - 48 AS col2
----
NULL

query I rowsort
SELECT ( - 57 ) + - + 11 * + 75
----
-882

query I rowsort
SELECT 73 + + COALESCE ( - 99, + 59 )
----
-26

query II rowsort
SELECT 69, 3 * - 94 * 22 AS col2
----
69
-6204

query II rowsort
SELECT 6 AS col1, + 33 * 56 + + + 93 + 36 * + 52 * + 53
----
6
101157

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ( + + 53 ) - - 35 + - CASE 13 WHEN - COALESCE ( + ( 4 ), - 0, + 0 ) THEN NULL WHEN 21 + - ( COUNT( * ) ) THEN - 29 * 54 END * - 45 * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT ( + + 53 ) - - 35 + - CASE 13 WHEN - COALESCE ( + ( 4 ), - 0, + 0 ) THEN NULL WHEN 21 + - ( COUNT ( * ) ) THEN - 29 * 54 END * - 45 * 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT + ( + CASE - 40 WHEN - 95 * NULLIF ( - COALESCE ( + + 25, - - 68 ), - 70 * - 28 ) THEN + 38 * + COUNT( * ) WHEN 41 * - COUNT( * ) THEN 80 END ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT + ( + CASE - 40 WHEN - 95 * NULLIF ( - COALESCE ( + + 25, - - 68 ), - 70 * - 28 ) THEN + 38 * + COUNT ( * ) WHEN 41 * - COUNT ( * ) THEN 80 END ) * 74
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT ALL - 38 DIV - 2
----
19

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL - 38 / - 2
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5004
SELECT MIN( ALL 29 ) / + 58 + - + CASE + SUM( DISTINCT + 33 ) WHEN - - CAST( NULL AS DECIMAL ) THEN + 13 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT MIN ( ALL 29 ) / + 58 + - + CASE + SUM ( DISTINCT + 33 ) WHEN - - CAST ( NULL AS REAL ) THEN + 13 END AS col0
----
NULL

query I rowsort
SELECT ALL - 11 * - 72
----
792

query I rowsort
SELECT 68 + - 84 * + + 19 * + 89
----
-141976

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT + MIN( + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5007
SELECT + MIN ( + 33 ) AS col1
----
33

query I rowsort
SELECT + 68 * - 71 + + + 36 AS col1
----
-4792

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT + MIN( ALL - + COALESCE ( - - 32, + - 58 * + - 1 ) ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5009
SELECT + MIN ( ALL - + COALESCE ( - - 32, + - 58 * + - 1 ) ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT MAX( DISTINCT - 96 ) * + + 57 + + 85 + - 36 + - COUNT( * ) AS col2
----
-5424

skipif mysql # not compatible
query I rowsort label-5010
SELECT MAX ( DISTINCT - 96 ) * + + 57 + + 85 + - 36 + - COUNT ( * ) AS col2
----
-5424

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT COUNT( DISTINCT - - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-5011
SELECT COUNT ( DISTINCT - - 28 )
----
1

query I rowsort
SELECT 97 * + - 12 AS col1
----
-1164

query I rowsort
SELECT 87 * + 88 col2
----
7656

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ALL COUNT( * ) * 19 + - 30 * + 11 * + ( + 18 ) * - 14
----
83179

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL COUNT ( * ) * 19 + - 30 * + 11 * + ( + 18 ) * - 14
----
83179

query I rowsort
SELECT DISTINCT 98 * 31 * - 48 + - 28 col1
----
-145852

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL - 93 * + 75 + COUNT( * )
----
-6974

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - 93 * + 75 + COUNT ( * )
----
-6974

query I rowsort
SELECT 85 * - + 89 + - + ( + 32 ) * - 32
----
-6541

query I rowsort
SELECT - 27 * - 65 AS col0
----
1755

query I rowsort
SELECT DISTINCT - - 6 * - 59 * - 95 AS col0
----
33630

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT - - 64 - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-5020
SELECT - - 64 - COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT - 27 - 76 - - 16 * + 67 + 17 * SUM( DISTINCT - - 84 ) AS col1
----
2397

skipif mysql # not compatible
query I rowsort label-5021
SELECT - 27 - 76 - - 16 * + 67 + 17 * SUM ( DISTINCT - - 84 ) AS col1
----
2397

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT DISTINCT - 67 * - 52 + + ( + COUNT( * ) )
----
3485

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT - 67 * - 52 + + ( + COUNT ( * ) )
----
3485

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT - + MIN( ALL 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5023
SELECT - + MIN ( ALL 28 ) AS col2
----
-28

query I rowsort
SELECT ALL - NULLIF ( + 8, 51 ) AS col2
----
-8

query I rowsort
SELECT ALL - - 64 * - 50 col1
----
-3200

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT + + ( - 43 ) - - - MIN( ALL + + ( 38 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-5026
SELECT + + ( - 43 ) - - - MIN ( ALL + + ( 38 ) )
----
-81

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

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

query I rowsort
SELECT + - 73 - + 7 * + + 38
----
-339

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5029
SELECT - - 62 DIV + - 5 + + MAX( + 80 ), 69 col1
----
68
69

skipif mysql # not compatible
query II rowsort label-5029
SELECT - - 62 / + - 5 + + MAX ( + 80 ), 69 col1
----
68
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5030
SELECT + 99 * - MIN( + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT + 99 * - MIN ( + + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5031
SELECT ALL + + COUNT( * ) DIV + + 48, + 45 AS col0
----
0
45

skipif mysql # not compatible
query II rowsort label-5031
SELECT ALL + + COUNT ( * ) / + + 48, + 45 AS col0
----
0
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT - + 88 * + SUM( + + ( 44 ) ) * + 5 + - CASE - 50 WHEN - COUNT( * ) THEN NULL WHEN + ( 61 ) * - 57 THEN + MAX( ALL - 74 ) - + 55 ELSE NULL END - + COUNT( * ) * + CASE - 71 - - ( NULLIF ( - ( NULLIF ( + 99, 47 ) ), - 7 ) + + 45 * ( - 34 + + 61 ) ) WHEN 84 * 97 THEN + COUNT( * ) / 86 + - 44 * + 83 WHEN + COUNT( * ) + MAX( 24 ) * - 74 THEN NULL WHEN - 32 THEN 64 + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT - + 88 * + SUM ( + + ( 44 ) ) * + 5 + - CASE - 50 WHEN - COUNT ( * ) THEN NULL WHEN + ( 61 ) * - 57 THEN + MAX ( ALL - 74 ) - + 55 ELSE NULL END - + COUNT ( * ) * + CASE - 71 - - ( NULLIF ( - ( NULLIF ( + 99, 47 ) ), - 7 ) + + 45 * ( - 34 + + 61 ) ) WHEN 84 * 97 THEN + COUNT ( * ) / 86 + - 44 * + 83 WHEN + COUNT ( * ) + MAX ( 24 ) * - 74 THEN NULL WHEN - 32 THEN 64 + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 13 * + - 21
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5034
SELECT DISTINCT - COALESCE ( - - 88, CAST( 31 AS SIGNED ) * COALESCE ( - 34, 96 ) * - CASE - 19 WHEN COALESCE ( - 35, - 18 * 84 ) THEN ( + COUNT( * ) ) + 14 ELSE NULL END ) DIV - 74
----
1

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT - COALESCE ( - - 88, CAST ( 31 AS INTEGER ) * COALESCE ( - 34, 96 ) * - CASE - 19 WHEN COALESCE ( - 35, - 18 * 84 ) THEN ( + COUNT ( * ) ) + 14 ELSE NULL END ) / - 74
----
1

query I rowsort
SELECT - 57 + + - 47 AS col0
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT + 26 DIV + 5 - - 96
----
101

skipif mysql # not compatible
query I rowsort label-5036
SELECT + 26 / + 5 - - 96
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5037
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col1, 49 + - 81 AS col2
----
1
-32

skipif mysql # not compatible
query II rowsort label-5037
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 49 + - 81 AS col2
----
1
-32

query II rowsort
SELECT ALL 9 * + 44, - 51 * - 39 * 81 AS col0
----
396
161109

query I rowsort
SELECT + 79 * + 58 + - 43 col2
----
4539

query I rowsort
SELECT - CASE - 0 WHEN - 3 THEN NULL ELSE + 0 END AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5041
SELECT ALL 29 * + - 1 * + COALESCE ( - 0, CAST( NULL AS SIGNED ) ), - 74 col1
----
0
-74

skipif mysql # not compatible
query II rowsort label-5041
SELECT ALL 29 * + - 1 * + COALESCE ( - 0, CAST ( NULL AS INTEGER ) ), - 74 col1
----
0
-74

query I rowsort
SELECT - 35 + 48 AS col1
----
13

query I rowsort
SELECT + 41 * + + 78 AS col2
----
3198

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

skipif mysql # not compatible
query I rowsort label-5044
SELECT - MIN ( + 46 )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5045
SELECT ALL 23 + + 68 - - 24 DIV + 84 + - + COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL 23 + + 68 - - 24 / + 84 + - + COUNT ( * ) AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5046
SELECT 80 / 80 / + + 68 + - - 39 + - CASE CASE + + 47 WHEN - - 42 THEN 69 + + 12 ELSE NULL END WHEN - ( CAST( NULL AS SIGNED ) ) * 86 THEN 85 + 16 * - ( NULLIF ( 89, + 92 ) * - 79 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT 80 / 80 / + + 68 + - - 39 + - CASE CASE + + 47 WHEN - - 42 THEN 69 + + 12 ELSE NULL END WHEN - ( CAST ( NULL AS INTEGER ) ) * 86 THEN 85 + 16 * - ( NULLIF ( 89, + 92 ) * - 79 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 10 * + 93
----
-930

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5048
SELECT DISTINCT 82 DIV ( + CAST( - 54 AS SIGNED ) ) + + 65
----
64

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT 82 / ( + CAST ( - 54 AS INTEGER ) ) + + 65
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5049
SELECT ALL ( + COUNT( * ) ) DIV + ( - 66 ) + + 19 + 44 + + 76 * + - 54 * + + 25 + - 9 + + 86 AS col2
----
-102460

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL ( + COUNT ( * ) ) / + ( - 66 ) + + 19 + 44 + + 76 * + - 54 * + + 25 + - 9 + + 86 AS col2
----
-102460

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT + COUNT( * ) * + 85 + 57 + 11
----
153

skipif mysql # not compatible
query I rowsort label-5051
SELECT + COUNT ( * ) * + 85 + 57 + 11
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5052
SELECT DISTINCT 26 * - 37 + - - AVG ( + CAST( NULL AS SIGNED ) ) / - 7 AS col1, 27 * 62 * + 43 + 57 AS col0
----
NULL
72039

skipif mysql # not compatible
query II rowsort label-5052
SELECT DISTINCT 26 * - 37 + - - AVG ( + CAST ( NULL AS INTEGER ) ) / - 7 AS col1, 27 * 62 * + 43 + 57 AS col0
----
NULL
72039

query I rowsort
SELECT ALL - 49 * + 39 + + 42 * 60 * + 29 AS col0
----
71169

query I rowsort
SELECT ALL 15 * + 8 AS col0
----
120

query II rowsort
SELECT ( + ( - 1 ) ) AS col2, + 58 + - 57 col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT - 27 + SUM( ALL 96 ) + - 45 * - 44
----
2049

skipif mysql # not compatible
query I rowsort label-5056
SELECT - 27 + SUM ( ALL 96 ) + - 45 * - 44
----
2049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5057
SELECT + NULLIF ( - - 69, + - COALESCE ( + + 56, 79 * + 6 + + - CAST( + MAX( + 15 ) AS SIGNED ) + - 73 / + 43 * MIN( ALL 81 + + 65 ) ) + 19 * - 56 ) * 28 col2
----
1932

skipif mysql # not compatible
query I rowsort label-5057
SELECT + NULLIF ( - - 69, + - COALESCE ( + + 56, 79 * + 6 + + - CAST ( + MAX ( + 15 ) AS INTEGER ) + - 73 / + 43 * MIN ( ALL 81 + + 65 ) ) + 19 * - 56 ) * 28 col2
----
1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT - 44 * + NULLIF ( - CAST( - - 80 AS SIGNED ), - 90 ) AS col1
----
3520

skipif mysql # not compatible
query I rowsort label-5058
SELECT - 44 * + NULLIF ( - CAST ( - - 80 AS INTEGER ), - 90 ) AS col1
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT - - 32 * + 12 - - - COUNT( * ) + - - 29 + - 2 + + ( - 10 )
----
400

skipif mysql # not compatible
query I rowsort label-5059
SELECT - - 32 * + 12 - - - COUNT ( * ) + - - 29 + - 2 + + ( - 10 )
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT - 99 * + + 15 - + COUNT( * ) AS col1
----
-1486

skipif mysql # not compatible
query I rowsort label-5060
SELECT - 99 * + + 15 - + COUNT ( * ) AS col1
----
-1486

query I rowsort
SELECT + + 2 * + 22 AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT DISTINCT + CASE + CASE 99 WHEN + COALESCE ( COUNT( * ), - + 66 ) + - 66 + + ( + + CAST( - 84 AS SIGNED ) ) - + 4 * - ( COUNT( * ) + + COALESCE ( 86 + 15, + 50 ) ) THEN NULL WHEN ( + 88 ) / + AVG ( DISTINCT - 83 + - 11 ) THEN - 95 + 45 END WHEN COUNT( * ) * - 90 THEN - 43 ELSE NULL END * + ( COALESCE ( 32, - 46 ) + 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + CASE + CASE 99 WHEN + COALESCE ( COUNT ( * ), - + 66 ) + - 66 + + ( + + CAST ( - 84 AS INTEGER ) ) - + 4 * - ( COUNT ( * ) + + COALESCE ( 86 + 15, + 50 ) ) THEN NULL WHEN ( + 88 ) / + AVG ( DISTINCT - 83 + - 11 ) THEN - 95 + 45 END WHEN COUNT ( * ) * - 90 THEN - 43 ELSE NULL END * + ( COALESCE ( 32, - 46 ) + 90 )
----
NULL

query I rowsort
SELECT ALL + ( + 68 ) * + + 50
----
3400

query I rowsort
SELECT + 0 * - + 22
----
0

query I rowsort
SELECT + - 77 col2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5066
SELECT - + ( 15 ) + - CAST( NULL AS SIGNED ) + 98 * - 82, - 31 AS col0
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-5066
SELECT - + ( 15 ) + - CAST ( NULL AS INTEGER ) + 98 * - 82, - 31 AS col0
----
NULL
-31

query II rowsort
SELECT - 2, 31 AS col0
----
-2
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT - - COUNT( * ) + 3 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5068
SELECT - - COUNT ( * ) + 3 AS col1
----
4

query I rowsort
SELECT - + 0 + - 46
----
-46

query I rowsort
SELECT DISTINCT + - ( - + 50 ) * - 75 + 47 AS col2
----
-3703

query II rowsort
SELECT ALL + 59 AS col2, 38
----
59
38

query I rowsort
SELECT - - 25 + - 52
----
-27

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

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

query I rowsort
SELECT ALL + + 44 * + 1 * + 82 AS col1
----
3608

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

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

query I rowsort
SELECT - 86 + 98
----
12

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

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

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

skipif mysql # not compatible
query I rowsort label-5078
SELECT - COUNT ( * ) / - ( + + 85 )
----
0

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

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

query I rowsort
SELECT ALL - 48 + + 22
----
-26

query I rowsort
SELECT DISTINCT + 93 + + ( + 61 )
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT - SUM( DISTINCT + - 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5082
SELECT - SUM ( DISTINCT + - 94 ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT - ( - + 14 ) DIV - - 54
----
0

skipif mysql # not compatible
query I rowsort label-5083
SELECT - ( - + 14 ) / - - 54
----
0

query I rowsort
SELECT + 11 + - 35 + 19 col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT DISTINCT + 3 DIV ( - + 4 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT + 3 / ( - + 4 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 10 * 78
----
780

query II rowsort
SELECT ALL ( 28 ) + ( - 4 ) - - 49 * + 65 AS col1, 97 * 30 * + 29
----
3209
84390

query II rowsort
SELECT ALL - 41, ( + 17 ) AS col0
----
-41
17

query I rowsort
SELECT ALL 33 - - + ( 27 ) col0
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-5090
SELECT + 11 AS col1, 80 DIV - 69 + - 93
----
11
-94

skipif mysql # not compatible
query II rowsort label-5090
SELECT + 11 AS col1, 80 / - 69 + - 93
----
11
-94

query I rowsort
SELECT 37 + + 70 * - 31
----
-2133

query II rowsort
SELECT ALL - + 79 AS col2, + 86 AS col0
----
-79
86

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

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

query II rowsort
SELECT 71 AS col2, + 43 AS col1
----
71
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT COUNT( * ) * + 96 * + + CASE + 31 WHEN + SUM( DISTINCT - + 31 ) + MAX( DISTINCT - 17 ) / - COALESCE ( + 72, 75 / - 49 ) * MAX( ALL 54 * - 49 ) THEN + 4 ELSE - 64 END + + 76
----
-6068

skipif mysql # not compatible
query I rowsort label-5095
SELECT COUNT ( * ) * + 96 * + + CASE + 31 WHEN + SUM ( DISTINCT - + 31 ) + MAX ( DISTINCT - 17 ) / - COALESCE ( + 72, 75 / - 49 ) * MAX ( ALL 54 * - 49 ) THEN + 4 ELSE - 64 END + + 76
----
-6068

query I rowsort
SELECT 37 * 67 + - 21 AS col2
----
2458

query II rowsort
SELECT + 24 AS col2, COALESCE ( 9, - 5, - 31 )
----
24
9

query I rowsort
SELECT - 98 * 94 + + - 53 + + 22
----
-9243

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT - 72 * - COUNT( * ) * 90 + - 84 * 85 AS col2
----
-660

skipif mysql # not compatible
query I rowsort label-5099
SELECT - 72 * - COUNT ( * ) * 90 + - 84 * 85 AS col2
----
-660

onlyif mysql # aggregate syntax: 
query II rowsort label-5100
SELECT + 21 * + COUNT( ALL + 75 ) + + 94 AS col0, 1 * + - 32 * ( + 54 ) AS col1
----
115
-1728

skipif mysql # not compatible
query II rowsort label-5100
SELECT + 21 * + COUNT ( ALL + 75 ) + + 94 AS col0, 1 * + - 32 * ( + 54 ) AS col1
----
115
-1728

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5103
SELECT CAST( 87 AS SIGNED ) * MAX( ALL 88 ) + + 95
----
7751

skipif mysql # not compatible
query I rowsort label-5103
SELECT CAST ( 87 AS INTEGER ) * MAX ( ALL 88 ) + + 95
----
7751

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL 4 + - - MIN( + + 33 ) * + 92 AS col1
----
3040

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL 4 + - - MIN ( + + 33 ) * + 92 AS col1
----
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL - 91 + + 45 + - ( COUNT( ALL - 27 ) ) * - 41 + + ( + + 66 )
----
61

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL - 91 + + 45 + - ( COUNT ( ALL - 27 ) ) * - 41 + + ( + + 66 )
----
61

query I rowsort
SELECT ALL + - 9 + + - 1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT ALL + 7, - MAX( DISTINCT + 66 ) AS col2
----
7
-66

skipif mysql # not compatible
query II rowsort label-5107
SELECT ALL + 7, - MAX ( DISTINCT + 66 ) AS col2
----
7
-66

query I rowsort
SELECT 9 - + 83 AS col1
----
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-5109
SELECT 38 AS col0, - 39 DIV + 45
----
38
0

skipif mysql # not compatible
query II rowsort label-5109
SELECT 38 AS col0, - 39 / + 45
----
38
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ALL - + 79 + 24 - - - COUNT( DISTINCT 47 ) - - 80 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL - + 79 + 24 - - - COUNT ( DISTINCT 47 ) - - 80 AS col1
----
24

query II rowsort
SELECT ALL + 25 + + 2, 42 AS col2
----
27
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT CAST( - 8 AS SIGNED ) * COUNT( * ) + - 55 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-5112
SELECT CAST ( - 8 AS INTEGER ) * COUNT ( * ) + - 55 AS col0
----
-63

query II rowsort
SELECT ALL 87 + - 39 AS col2, 18 AS col0
----
48
18

query I rowsort
SELECT DISTINCT + 7 * - 95
----
-665

query I rowsort
SELECT ALL + 62 - - 83
----
145

query II rowsort
SELECT 96 * - 58 AS col1, - 15 AS col1
----
-5568
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ALL + 90 * SUM( - + 2 ) AS col0
----
-180

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL + 90 * SUM ( - + 2 ) AS col0
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5118
SELECT COUNT( * ) DIV - 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5118
SELECT COUNT ( * ) / - 25 AS col0
----
0

query I rowsort
SELECT 6 + 98
----
104

query I rowsort
SELECT 77 + 33 AS col1
----
110

query I rowsort
SELECT 83 + - 81 AS col2
----
2

query II rowsort
SELECT 86 * - - 36 AS col0, CASE - 35 WHEN - 29 THEN - 46 ELSE NULL END + + + 43 / - + 55
----
3096
NULL

query I rowsort
SELECT 28 - - + 52 AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT DISTINCT - 45 DIV - ( + 96 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT - 45 / - ( + 96 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5125
SELECT ALL 62 * COUNT( * ) AS col2, ( - CAST( + 77 AS SIGNED ) ) + - 63 + + ( + + 62 )
----
62
-78

skipif mysql # not compatible
query II rowsort label-5125
SELECT ALL 62 * COUNT ( * ) AS col2, ( - CAST ( + 77 AS INTEGER ) ) + - 63 + + ( + + 62 )
----
62
-78

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5127
SELECT DISTINCT - NULLIF ( + 28, - - 53 ) DIV - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT - NULLIF ( + 28, - - 53 ) / - COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT - 28 * + 94 + + 95 * + MAX( DISTINCT 37 ) + + + CASE 66 WHEN - - 54 * 3 THEN + 26 WHEN 4 + + - 30 THEN 28 ELSE NULL END + - ( - 37 - 25 ) * + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT - 28 * + 94 + + 95 * + MAX ( DISTINCT 37 ) + + + CASE 66 WHEN - - 54 * 3 THEN + 26 WHEN 4 + + - 30 THEN 28 ELSE NULL END + - ( - 37 - 25 ) * + 68 AS col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT + 88 * - 82 AS col1, 40
----
-7216
40

query I rowsort
SELECT - 43 + 23 + + 22
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL + MIN( - 67 ) * - - 80 AS col2
----
-5360

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + MIN ( - 67 ) * - - 80 AS col2
----
-5360

query I rowsort
SELECT - 18 * - 73
----
1314

query I rowsort
SELECT DISTINCT 58 + 91 AS col2
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT ALL COUNT( * ) + - + 84 col0, - 4 AS col0
----
-83
-4

skipif mysql # not compatible
query II rowsort label-5135
SELECT ALL COUNT ( * ) + - + 84 col0, - 4 AS col0
----
-83
-4

query I rowsort
SELECT ALL 76 + - 61 AS col0
----
15

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

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT ( + 27 ) + COUNT ( * ) AS col1
----
28

query II rowsort
SELECT DISTINCT + 12 + + 62 col0, + 24
----
74
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5139
SELECT + ( CASE - + NULLIF ( + + COUNT( * ), COUNT( * ) / 55 + - + 10 ) WHEN - NULLIF ( - + 38, 43 * + + 82 ) * + - CASE 8 WHEN - 69 THEN 38 WHEN CAST( NULL AS DECIMAL ) THEN 31 / 75 WHEN - 78 THEN NULL END THEN + 22 * + COUNT( - 38 * + 21 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT + ( CASE - + NULLIF ( + + COUNT ( * ), COUNT ( * ) / 55 + - + 10 ) WHEN - NULLIF ( - + 38, 43 * + + 82 ) * + - CASE 8 WHEN - 69 THEN 38 WHEN CAST ( NULL AS REAL ) THEN 31 / 75 WHEN - 78 THEN NULL END THEN + 22 * + COUNT ( - 38 * + 21 ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL - SUM( - 54 ) + - ( - 18 )
----
72

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL - SUM ( - 54 ) + - ( - 18 )
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-5141
SELECT + 12 * + 39, - 15 DIV - - 26 col1
----
468
0

skipif mysql # not compatible
query II rowsort label-5141
SELECT + 12 * + 39, - 15 / - - 26 col1
----
468
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT ALL 0 * + CASE + ( - 77 ) WHEN - 10 THEN - CAST( 66 AS SIGNED ) + + ( + 62 ) WHEN 52 + - 15 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL 0 * + CASE + ( - 77 ) WHEN - 10 THEN - CAST ( 66 AS INTEGER ) + + ( + 62 ) WHEN 52 + - 15 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5144
SELECT CASE + - ( CAST( + 49 AS SIGNED ) ) WHEN + 59 THEN 92 + + 50 + + - COUNT( * ) END + 3 + - 78 + + MAX( ALL - 83 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT CASE + - ( CAST ( + 49 AS INTEGER ) ) WHEN + 59 THEN 92 + + 50 + + - COUNT ( * ) END + 3 + - 78 + + MAX ( ALL - 83 ) col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5145
SELECT 71 / - ( ( + COUNT ( * ) ) ) AS col0
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-5146
SELECT ALL 70 + 37 DIV 46 AS col1, 37 + + 9 + - 30 * - 35
----
70
1096

skipif mysql # not compatible
query II rowsort label-5146
SELECT ALL 70 + 37 / 46 AS col1, 37 + + 9 + - 30 * - 35
----
70
1096

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5147
SELECT DISTINCT - NULLIF ( + 72, + ( + - AVG ( + 52 ) ) * - 28 * 30 ) - - 21, 89 - - 69 + COUNT( * ) + + 25 - + + 52 * 32 DIV 36 * - COUNT( * ) col0
----
-51
230

skipif mysql # not compatible
query II rowsort label-5147
SELECT DISTINCT - NULLIF ( + 72, + ( + - AVG ( + 52 ) ) * - 28 * 30 ) - - 21, 89 - - 69 + COUNT ( * ) + + 25 - + + 52 * 32 / 36 * - COUNT ( * ) col0
----
-51
230

query I rowsort
SELECT ALL 64 * 68
----
4352

query I rowsort
SELECT ALL - 30 - - 47 AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT DISTINCT 57 - - - 97 * + CASE + - 23 WHEN + + CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN 80 / - COUNT( * ) + 21 + + 55 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT 57 - - - 97 * + CASE + - 23 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN 80 / - COUNT ( * ) + 21 + + 55 END AS col0
----
NULL

query I rowsort
SELECT ALL 92 - 18 + + NULLIF ( 92, + + 10 ) AS col2
----
166

query I rowsort
SELECT + 74 * 62
----
4588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5153
SELECT ALL - ( 83 ) * 10 + - - COUNT( * ) + - 39 DIV 13
----
-832

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL - ( 83 ) * 10 + - - COUNT ( * ) + - 39 / 13
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT - 44 * - 12 * - - COALESCE ( - ( + COUNT( * ) ), - 4 + + 83 * - 31 + - + ( - + 81 ), COUNT( ALL + 27 ) + + 2 )
----
-528

skipif mysql # not compatible
query I rowsort label-5154
SELECT - 44 * - 12 * - - COALESCE ( - ( + COUNT ( * ) ), - 4 + + 83 * - 31 + - + ( - + 81 ), COUNT ( ALL + 27 ) + + 2 )
----
-528

query I rowsort
SELECT ALL 50 * - 96
----
-4800

query I rowsort
SELECT DISTINCT COALESCE ( + 49, + + 29, - 12 ) AS col1
----
49

query I rowsort
SELECT DISTINCT - + 55 * + + 73 col1
----
-4015

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

query I rowsort
SELECT - - 90 * 47
----
4230

query II rowsort
SELECT DISTINCT + 72, 66 AS col2
----
72
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5161
SELECT + 20 AS col0, - CAST( NULL AS SIGNED ) * + 13 + 86
----
20
NULL

skipif mysql # not compatible
query II rowsort label-5161
SELECT + 20 AS col0, - CAST ( NULL AS INTEGER ) * + 13 + 86
----
20
NULL

query I rowsort
SELECT ALL 29 * + - 27 + + - 0 + + - 87 + - 53 * 45
----
-3255

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL + - 71 * + 93 + - - 98 * - ( - COUNT( * ) ) + - 45
----
-6550

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL + - 71 * + 93 + - - 98 * - ( - COUNT ( * ) ) + - 45
----
-6550

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

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

query II rowsort
SELECT ALL 17 * + 88 * 39 * 54 + 45 + - 39 AS col1, 25 AS col1
----
3150582
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT DISTINCT - COUNT( * ) * - 17 * + 73 + - 26 * 14 + - 26 * 64 + + 50
----
-737

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT - COUNT ( * ) * - 17 * + 73 + - 26 * 14 + - 26 * 64 + + 50
----
-737

onlyif mysql # aggregate syntax: 
query II rowsort label-5167
SELECT - 54 * + - 24 + - COUNT( * ) AS col0, 18 + NULLIF ( + - 10, - + 96 ) * ( - - 30 )
----
1295
-282

skipif mysql # not compatible
query II rowsort label-5167
SELECT - 54 * + - 24 + - COUNT ( * ) AS col0, 18 + NULLIF ( + - 10, - + 96 ) * ( - - 30 )
----
1295
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL 37 * - - 84 + - - 19 + - 49 + - 71 + - COUNT( * ) col1
----
3006

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL 37 * - - 84 + - - 19 + - 49 + - 71 + - COUNT ( * ) col1
----
3006

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT - 50 * - + COALESCE ( 97, 32, - 74 * + - 11 ) + COUNT( DISTINCT - 3 ) AS col1
----
4851

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT - 50 * - + COALESCE ( 97, 32, - 74 * + - 11 ) + COUNT ( DISTINCT - 3 ) AS col1
----
4851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5170
SELECT ALL + - 35 AS col0, + NULLIF ( 63, - COUNT( * ) + - 59 + + NULLIF ( 10, 94 ) + - 73 / 44 * - 96 + + + CAST( 67 AS SIGNED ) ) * 60 AS col1
----
-35
3780

skipif mysql # not compatible
query II rowsort label-5170
SELECT ALL + - 35 AS col0, + NULLIF ( 63, - COUNT ( * ) + - 59 + + NULLIF ( 10, 94 ) + - 73 / 44 * - 96 + + + CAST ( 67 AS INTEGER ) ) * 60 AS col1
----
-35
3780

query I rowsort
SELECT - 10 + - CASE + 48 WHEN + 50 * + 59 THEN - 11 WHEN ( 58 ) THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 28 AS col2, + 86 * 30 + 89 * - 83 AS col1
----
28
-4807

query I rowsort
SELECT - 23 + 66 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5174
SELECT ALL COALESCE ( + + 40, - 49 * - - CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ), - 18 ) * - 51 - + - 88 - - - ( - 40 ) AS col2
----
-1912

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL COALESCE ( + + 40, - 49 * - - CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ), - 18 ) * - 51 - + - 88 - - - ( - 40 ) AS col2
----
-1912

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT COUNT( * ) * - 51 + 29
----
-22

skipif mysql # not compatible
query I rowsort label-5175
SELECT COUNT ( * ) * - 51 + 29
----
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5176
SELECT ALL + 89 * MIN( + + 60 ) * - CAST( NULL AS DECIMAL ) - - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL + 89 * MIN ( + + 60 ) * - CAST ( NULL AS REAL ) - - - 96
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT + 11 - - 23 * + 26 * 90 - + COUNT( * )
----
53830

skipif mysql # not compatible
query I rowsort label-5178
SELECT + 11 - - 23 * + 26 * 90 - + COUNT ( * )
----
53830

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT ALL 16 DIV + + 41
----
0

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL 16 / + + 41
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT - COUNT( * ) * 83 AS col2, + 20 col1
----
-83
20

skipif mysql # not compatible
query II rowsort label-5180
SELECT - COUNT ( * ) * 83 AS col2, + 20 col1
----
-83
20

query I rowsort
SELECT + CASE + - 24 WHEN - + 36 THEN - 26 ELSE 71 END + 72
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5182
SELECT ALL MAX( + CASE + 32 WHEN - + CAST( NULL AS SIGNED ) - - 65 THEN - 20 + 88 + 53 * - 6 * + - 94 * - - CAST( + 78 AS DECIMAL ) END ) * + 35 * AVG ( 46 ) + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL MAX ( + CASE + 32 WHEN - + CAST ( NULL AS INTEGER ) - - 65 THEN - 20 + 88 + 53 * - 6 * + - 94 * - - CAST ( + 78 AS REAL ) END ) * + 35 * AVG ( 46 ) + 73
----
NULL

query I rowsort
SELECT + 92 * - 0
----
0

query I rowsort
SELECT ALL 98 * + 67 AS col2
----
6566

onlyif mysql # aggregate syntax: 
query II rowsort label-5185
SELECT DISTINCT 15 * 9 AS col1, COUNT( * ) col0
----
135
1

skipif mysql # not compatible
query II rowsort label-5185
SELECT DISTINCT 15 * 9 AS col1, COUNT ( * ) col0
----
135
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5186
SELECT ALL COUNT( + NULLIF ( + + 89, + - 46 ) ) AS col1, + 32 + - COUNT( * ) * + - 27 col1
----
1
59

skipif mysql # not compatible
query II rowsort label-5186
SELECT ALL COUNT ( + NULLIF ( + + 89, + - 46 ) ) AS col1, + 32 + - COUNT ( * ) * + - 27 col1
----
1
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5187
SELECT + 45 DIV + - 49 * + + COUNT( DISTINCT - 65 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5187
SELECT + 45 / + - 49 * + + COUNT ( DISTINCT - 65 ) AS col1
----
0

query I rowsort
SELECT DISTINCT 9 * - 76
----
-684

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5189
SELECT DISTINCT + CAST( 50 AS SIGNED ) DIV + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT + CAST ( 50 AS INTEGER ) / + 71 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL - 27 + - - CAST ( NULL AS INTEGER ) - + + 88
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5191
SELECT ALL SUM( 29 ), 31 * + CASE + 97 WHEN AVG ( DISTINCT + - 30 ) THEN NULL ELSE 32 * - - 8 END col0
----
29
7936

skipif mysql # not compatible
query II rowsort label-5191
SELECT ALL SUM ( 29 ), 31 * + CASE + 97 WHEN AVG ( DISTINCT + - 30 ) THEN NULL ELSE 32 * - - 8 END col0
----
29
7936

query I rowsort
SELECT + 51 + 67
----
118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL MAX( DISTINCT + 67 ) + - 43
----
24

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL MAX ( DISTINCT + 67 ) + - 43
----
24

query I rowsort
SELECT + 64 + - + 12
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT - COUNT( * ) - 77 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5196
SELECT - COUNT ( * ) - 77 AS col0
----
-78

query I rowsort
SELECT + 78 + + 11 * + - 88 AS col2
----
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + ( + 98 ) + COUNT( * ) + - 3 * 34 + - + 16 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5198
SELECT + ( + 98 ) + COUNT ( * ) + - 3 * 34 + - + 16 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT + CASE + 38 WHEN + COALESCE ( - 64, + + 5, COALESCE ( COUNT( * ), - - 74 ) ) THEN NULL WHEN - 43 THEN 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT + CASE + 38 WHEN + COALESCE ( - 64, + + 5, COALESCE ( COUNT ( * ), - - 74 ) ) THEN NULL WHEN - 43 THEN 29 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5200
SELECT ALL - - 96 / CAST( NULL AS SIGNED ) * + 33 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL - - 96 / CAST ( NULL AS INTEGER ) * + 33 + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5201
SELECT + + COUNT( * ) DIV 88 DIV + - NULLIF ( - 24, + 89 * + CASE + 82 WHEN + COALESCE ( + + 95, - + 42 ) * - COALESCE ( - 41, + 50 + 3 ) * COUNT( * ) THEN NULL WHEN 29 DIV + COUNT( * ) + 1 * CAST( + 3 + - 52 AS SIGNED ) THEN + CAST( - 45 AS SIGNED ) * 16 ELSE NULL END + - 52 ) DIV 9 + CAST( - 52 + - COUNT( * ) AS SIGNED ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5201
SELECT + + COUNT ( * ) / 88 / + - NULLIF ( - 24, + 89 * + CASE + 82 WHEN + COALESCE ( + + 95, - + 42 ) * - COALESCE ( - 41, + 50 + 3 ) * COUNT ( * ) THEN NULL WHEN 29 / + COUNT ( * ) + 1 * CAST ( + 3 + - 52 AS INTEGER ) THEN + CAST ( - 45 AS INTEGER ) * 16 ELSE NULL END + - 52 ) / 9 + CAST ( - 52 + - COUNT ( * ) AS INTEGER ) AS col2
----
-53

query I rowsort
SELECT + 67 * - 69 + + 54 AS col0
----
-4569

query I rowsort
SELECT DISTINCT + NULLIF ( - 96, + - 91 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL + + 36 * - + CASE NULLIF ( 15, - 5 * COUNT( * ) * - - 28 * - + 99 + + - AVG ( - - ( 3 ) ) * + + NULLIF ( 79, + - NULLIF ( + 61, + 33 ) ) + 35 ) WHEN + 44 - - 14 * - ( - ( 30 ) ) THEN NULL ELSE - 79 END - MAX( 90 + 21 ) AS col1
----
2733

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL + + 36 * - + CASE NULLIF ( 15, - 5 * COUNT ( * ) * - - 28 * - + 99 + + - AVG ( - - ( 3 ) ) * + + NULLIF ( 79, + - NULLIF ( + 61, + 33 ) ) + 35 ) WHEN + 44 - - 14 * - ( - ( 30 ) ) THEN NULL ELSE - 79 END - MAX ( 90 + 21 ) AS col1
----
2733

query I rowsort
SELECT 87 * + - 26
----
-2262

query I rowsort
SELECT ALL 46 * - + 77 AS col0
----
-3542

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT - 93 * - 5 + + - 19 AS col0, - CASE + - 6 WHEN + - 21 THEN + - COUNT( * ) + + 73 END AS col2
----
446
NULL

skipif mysql # not compatible
query II rowsort label-5207
SELECT - 93 * - 5 + + - 19 AS col0, - CASE + - 6 WHEN + - 21 THEN + - COUNT ( * ) + + 73 END AS col2
----
446
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT DISTINCT - SUM( DISTINCT 24 ) * 76 AS col2
----
-1824

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT - SUM ( DISTINCT 24 ) * 76 AS col2
----
-1824

query I rowsort
SELECT 86 * - - 72
----
6192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5210
SELECT 22 * CAST( NULL AS SIGNED ) * - - AVG ( DISTINCT - - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT 22 * CAST ( NULL AS INTEGER ) * - - AVG ( DISTINCT - - 2 )
----
NULL

query I rowsort
SELECT ALL - 58 * 7
----
-406

query I rowsort
SELECT 93 + + + 60 AS col0
----
153

query II rowsort
SELECT - 91 col0, 49 AS col1
----
-91
49

query I rowsort
SELECT ALL - 68 * ( - - 36 ) AS col0
----
-2448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT 12 * + - AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT 12 * + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT DISTINCT + 41 + - - CASE + COUNT( * ) WHEN - 89 THEN 6 WHEN + 13 * COUNT( * ) THEN - 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT + 41 + - - CASE + COUNT ( * ) WHEN - 89 THEN 6 WHEN + 13 * COUNT ( * ) THEN - 86 END AS col0
----
NULL

query II rowsort
SELECT DISTINCT 7 col0, 40 AS col2
----
7
40

query I rowsort
SELECT ALL 33 + - - 9 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT COUNT( * ) + ( - NULLIF ( - 62, 91 * 42 ) ) - - + ( - 32 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5219
SELECT COUNT ( * ) + ( - NULLIF ( - 62, 91 * 42 ) ) - - + ( - 32 ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5220
SELECT ALL NULLIF ( - 49, 36 + + + 11 - - CAST( COUNT( * ) AS SIGNED ) * + 35 + SUM( + - 99 ) * + 88 ) + 48 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL NULLIF ( - 49, 36 + + + 11 - - CAST ( COUNT ( * ) AS INTEGER ) * + 35 + SUM ( + - 99 ) * + 88 ) + 48 AS col1
----
-1

query I rowsort
SELECT ALL + 77 + - 67 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT ALL + COUNT( * ) * + COALESCE ( - 37, + 16, - + 51 ) col0
----
-37

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL + COUNT ( * ) * + COALESCE ( - 37, + 16, - + 51 ) col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT + COUNT( - 84 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT + COUNT ( - 84 ) + - COUNT ( * )
----
0

query I rowsort
SELECT ALL 81 + + - 0
----
81

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT 40 * + COUNT( * ) + + 5 + 24 * + 41
----
1029

skipif mysql # not compatible
query I rowsort label-5227
SELECT 40 * + COUNT ( * ) + + 5 + 24 * + 41
----
1029

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5229
SELECT ALL - COUNT( + COALESCE ( + 92, 31, - 79 ) ) * 47 AS col2, COALESCE ( - 31, + - COUNT( * ), - MAX( + CAST( NULL AS SIGNED ) ) + - CAST( + - 90 AS SIGNED ) - - ( 41 ) ) + - 37 AS col1
----
-47
-68

skipif mysql # not compatible
query II rowsort label-5229
SELECT ALL - COUNT ( + COALESCE ( + 92, 31, - 79 ) ) * 47 AS col2, COALESCE ( - 31, + - COUNT ( * ), - MAX ( + CAST ( NULL AS INTEGER ) ) + - CAST ( + - 90 AS INTEGER ) - - ( 41 ) ) + - 37 AS col1
----
-47
-68

query I rowsort
SELECT ALL 41 * - 56 * - 21
----
48216

query I rowsort
SELECT 71 * - 13 * + 90 + ( ( + - 54 ) )
----
-83124

query II rowsort
SELECT ALL - 41, 63 * ( + 28 ) AS col2
----
-41
1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5233
SELECT 22 DIV - 67 * - + 21 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5233
SELECT 22 / - 67 * - + 21 * + COUNT ( * )
----
0

query I rowsort
SELECT 96 + - - 14
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT 12 DIV + 99 col0
----
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT 12 / + 99 col0
----
0

query I rowsort
SELECT ALL CASE + NULLIF ( - + AVG ( - + 27 ), + 63 + - 11 * + 43 + - 68 * - + 48 ) WHEN - 49 THEN - 53 END + + + 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL - NULLIF ( + 81, + NULLIF ( + - COUNT( * ), + + 85 / - + SUM( DISTINCT 73 ) ) + 36 + + NULLIF ( - + MIN( ALL + + 69 ), - AVG ( - - 22 ) + 38 / - COALESCE ( MIN( 57 ), - 85 ) * - 97 ) ) + - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL - NULLIF ( + 81, + NULLIF ( + - COUNT ( * ), + + 85 / - + SUM ( DISTINCT 73 ) ) + 36 + + NULLIF ( - + MIN ( ALL + + 69 ), - AVG ( - - 22 ) + 38 / - COALESCE ( MIN ( 57 ), - 85 ) * - 97 ) ) + - COUNT ( * )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5238
SELECT DISTINCT + CASE - + 8 WHEN + 50 - COUNT( * ) + + - CAST( - 35 AS SIGNED ) THEN 13 WHEN - 12 / + - 75 + CASE - COUNT( * ) WHEN - NULLIF ( + - COALESCE ( - ( - + 23 ), - 96 * + 42 ), - COUNT( * ) ) * - 27 THEN ( + 1 ) END + + 96 * + NULLIF ( 22, + NULLIF ( COUNT( 92 ), + 91 ) ) THEN NULL ELSE NULL END + COUNT( * ) * COALESCE ( 54 + + 90, + 93 / + 33 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT + CASE - + 8 WHEN + 50 - COUNT ( * ) + + - CAST ( - 35 AS INTEGER ) THEN 13 WHEN - 12 / + - 75 + CASE - COUNT ( * ) WHEN - NULLIF ( + - COALESCE ( - ( - + 23 ), - 96 * + 42 ), - COUNT ( * ) ) * - 27 THEN ( + 1 ) END + + 96 * + NULLIF ( 22, + NULLIF ( COUNT ( 92 ), + 91 ) ) THEN NULL ELSE NULL END + COUNT ( * ) * COALESCE ( 54 + + 90, + 93 / + 33 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ALL - 0 * - SUM( - + 52 )
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL - 0 * - SUM ( - + 52 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT 2 DIV + ( - 42 )
----
0

skipif mysql # not compatible
query I rowsort label-5240
SELECT 2 / + ( - 42 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT 37 DIV + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5241
SELECT 37 / + 68 AS col1
----
0

query I rowsort
SELECT ALL + 37 * - 87 * + NULLIF ( - - 89, 86 * 4 + 25 ) AS col0
----
-286491

query II rowsort
SELECT - 13 AS col1, + 14 * + - 85
----
-13
-1190

query I rowsort
SELECT 27 - + - 81
----
108

query I rowsort
SELECT 30 + - 97 * + + 77
----
-7439

query I rowsort
SELECT 37 * + + 33 * + 42 * - 30 * + 2 AS col2
----
-3076920

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

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

query II rowsort
SELECT - 27 AS col0, - 98
----
-27
-98

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

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL COUNT ( * ) / - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT 6 - + CASE + 26 WHEN - 80 + + 58 THEN - + 30 * + + 14 / 23 + 10 WHEN - - 75 THEN NULL ELSE NULL END * 49 + + - ( - + 33 ) + + 10 + - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT 6 - + CASE + 26 WHEN - 80 + + 58 THEN - + 30 * + + 14 / 23 + 10 WHEN - - 75 THEN NULL ELSE NULL END * 49 + + - ( - + 33 ) + + 10 + - + COUNT ( * ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT MAX( + - ( 52 ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-5252
SELECT MAX ( + - ( 52 ) ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ( COALESCE ( ( + 43 ), 46 ) ) + - - CASE 2 WHEN COUNT( - 74 ) + - COUNT( 10 ) THEN NULL WHEN - 20 THEN NULL WHEN 20 THEN + + 6 * + COALESCE ( - 39, + 35 ) + - 54 + 23 ELSE NULL END * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT ( COALESCE ( ( + 43 ), 46 ) ) + - - CASE 2 WHEN COUNT ( - 74 ) + - COUNT ( 10 ) THEN NULL WHEN - 20 THEN NULL WHEN 20 THEN + + 6 * + COALESCE ( - 39, + 35 ) + - 54 + 23 ELSE NULL END * - 31
----
NULL

query I rowsort
SELECT + 19 * - 7 * + - 91 * - 62 AS col0
----
-750386

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT CASE - - COUNT( * ) WHEN + 41 THEN + + 98 END - + + 45 / + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT CASE - - COUNT ( * ) WHEN + 41 THEN + + 98 END - + + 45 / + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5256
SELECT ALL + 67 AS col2, + 6 AS col0, - + MAX( ALL 44 ) AS col0
----
67
6
-44

skipif mysql # not compatible
query III rowsort label-5256
SELECT ALL + 67 AS col2, + 6 AS col0, - + MAX ( ALL 44 ) AS col0
----
67
6
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT ALL 42 DIV - - 59
----
0

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL 42 / - - 59
----
0

query II rowsort
SELECT ALL + 44 AS col0, + 0
----
44
0

query I rowsort
SELECT + + 88 * 66
----
5808

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT + 29 * + SUM( - - 92 ) AS col0
----
2668

skipif mysql # not compatible
query I rowsort label-5260
SELECT + 29 * + SUM ( - - 92 ) AS col0
----
2668

query I rowsort
SELECT + 88 + + 56 + - ( ( 49 ) ) + + 28
----
123

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

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

query I rowsort
SELECT + 93 * - 35
----
-3255

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + NULLIF ( ( - 55 ), - 58 * + SUM( ALL 84 ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5264
SELECT + NULLIF ( ( - 55 ), - 58 * + SUM ( ALL 84 ) ) AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT ALL CAST( NULL AS SIGNED ) * - 22 + + 45 / - + 33 * 17 + - CAST( 80 AS SIGNED ) * 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL CAST ( NULL AS INTEGER ) * - 22 + + 45 / - + 33 * 17 + - CAST ( 80 AS INTEGER ) * 34 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5266
SELECT DISTINCT + COUNT( ALL + 1 ) * - 96 + + COUNT( * ) + - 74 AS col0, - COALESCE ( - 32, + ( - + 23 ) ) * - 60 AS col2, - 20
----
-169
-1920
-20

skipif mysql # not compatible
query III rowsort label-5266
SELECT DISTINCT + COUNT ( ALL + 1 ) * - 96 + + COUNT ( * ) + - 74 AS col0, - COALESCE ( - 32, + ( - + 23 ) ) * - 60 AS col2, - 20
----
-169
-1920
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5267
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * + + ( 61 ) / CAST( NULL AS SIGNED ) + + CASE + 27 WHEN + 90 - + 80 - + 24 * - MIN( DISTINCT - - 44 ) THEN COUNT( * ) + + ( + 77 ) - + 37 * + COUNT( * ) END + 39 + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * + + ( 61 ) / CAST ( NULL AS INTEGER ) + + CASE + 27 WHEN + 90 - + 80 - + 24 * - MIN ( DISTINCT - - 44 ) THEN COUNT ( * ) + + ( + 77 ) - + 37 * + COUNT ( * ) END + 39 + 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT + NULLIF ( + SUM( DISTINCT - 28 ), - 31 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5268
SELECT + NULLIF ( + SUM ( DISTINCT - 28 ), - 31 ) AS col2
----
-28

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

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

query I rowsort
SELECT ALL + ( + 16 ) + + + 13 AS col2
----
29

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

query I rowsort
SELECT + 62 * + 93 AS col1
----
5766

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT - 68 * ( + COUNT( * ) ) * - + 36
----
2448

skipif mysql # not compatible
query I rowsort label-5273
SELECT - 68 * ( + COUNT ( * ) ) * - + 36
----
2448

query I rowsort
SELECT + 79 + + + 43
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5275
SELECT ALL CASE + + 54 WHEN ( - AVG ( ALL - + 13 ) ) + 67 - + - MAX( - + 22 ) - CAST( NULL AS SIGNED ) + - COUNT( * ) - 38 THEN NULL ELSE - 39 - - 66 * + - COUNT( - 38 ) * + MIN( - 14 ) - 58 + COUNT( 47 ) END
----
828

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL CASE + + 54 WHEN ( - AVG ( ALL - + 13 ) ) + 67 - + - MAX ( - + 22 ) - CAST ( NULL AS INTEGER ) + - COUNT ( * ) - 38 THEN NULL ELSE - 39 - - 66 * + - COUNT ( - 38 ) * + MIN ( - 14 ) - 58 + COUNT ( 47 ) END
----
828

onlyif mysql # DIV for integer division: 
query I rowsort label-5276
SELECT DISTINCT - 51 DIV - 15
----
3

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT - 51 / - 15
----
3

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

query II rowsort
SELECT DISTINCT - 74 - - ( - - 71 ) * - - 93 * - - 21, 47 - 61 col2
----
138589
-14

query I rowsort
SELECT - + 5 + + 12 AS col0
----
7

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5282
SELECT - + 61 * - CASE - - 52 WHEN 48 * + AVG ( DISTINCT + 12 ) + + + 90 + - + 14 + - 37 * + 88 * - CAST( - 75 AS SIGNED ) * + SUM( DISTINCT + 98 ) - MAX( + - 42 ) * + 44 / 89 THEN COUNT( * ) - + 92 ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT - + 61 * - CASE - - 52 WHEN 48 * + AVG ( DISTINCT + 12 ) + + + 90 + - + 14 + - 37 * + 88 * - CAST ( - 75 AS INTEGER ) * + SUM ( DISTINCT + 98 ) - MAX ( + - 42 ) * + 44 / 89 THEN COUNT ( * ) - + 92 ELSE NULL END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5283
SELECT + 16 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT + 16 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5284
SELECT DISTINCT + 22 * SUM( DISTINCT 71 ) + - 77 DIV + - 50, - ( + 82 ) AS col2
----
1563
-82

skipif mysql # not compatible
query II rowsort label-5284
SELECT DISTINCT + 22 * SUM ( DISTINCT 71 ) + - 77 / + - 50, - ( + 82 ) AS col2
----
1563
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5285
SELECT - CAST( 40 AS SIGNED ) * + COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-5285
SELECT - CAST ( 40 AS INTEGER ) * + COUNT ( * ) AS col1
----
-40

query I rowsort
SELECT - + 23 col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) * - 17 * 7
----
119

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) * - 17 * 7
----
119

query II rowsort
SELECT + - ( + 41 ), - 33 + - 74 + - 66 AS col2
----
-41
-173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT - CASE + 38 WHEN - 28 THEN + CAST( 54 AS SIGNED ) END - 13 + 66 * 48 * + 98 * + ( - 55 ) * 21 + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT - CASE + 38 WHEN - 28 THEN + CAST ( 54 AS INTEGER ) END - 13 + 66 * 48 * + 98 * + ( - 55 ) * 21 + + 49
----
NULL

query I rowsort
SELECT - 76 - 72 - + 29
----
-177

query I rowsort
SELECT ALL 88 * - + 64
----
-5632

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT + 28 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-5292
SELECT + 28 / 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5293
SELECT ALL - SUM( + 37 ) DIV - 91 + - 69 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL - SUM ( + 37 ) / - 91 + - 69 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT 46 * + COUNT( * ) + + 66
----
112

skipif mysql # not compatible
query I rowsort label-5294
SELECT 46 * + COUNT ( * ) + + 66
----
112

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

skipif mysql # not compatible
query I rowsort label-5295
SELECT + 98 / - COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL - 27 * - + COUNT( * ) + + 0 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL - 27 * - + COUNT ( * ) + + 0 AS col0
----
27

query I rowsort
SELECT ALL + 44 * 84 + 48 col0
----
3744

onlyif mysql # aggregate syntax: 
query II rowsort label-5298
SELECT DISTINCT + 89, COUNT( * ) * + + 31 * + 69 AS col0
----
89
2139

skipif mysql # not compatible
query II rowsort label-5298
SELECT DISTINCT + 89, COUNT ( * ) * + + 31 * + 69 AS col0
----
89
2139

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

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

query I rowsort
SELECT + 62 + 65
----
127

query II rowsort
SELECT ALL + 1 AS col0, 85 col0
----
1
85

query II rowsort
SELECT ALL + 72 AS col1, 22 * 37 AS col1
----
72
814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT ALL - 66 * + CAST( - 27 AS SIGNED ) - + + 12 + - - 36 AS col2
----
1806

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL - 66 * + CAST ( - 27 AS INTEGER ) - + + 12 + - - 36 AS col2
----
1806

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5304
SELECT CASE - CAST( NULL AS DECIMAL ) WHEN 32 THEN NULL WHEN - + 97 THEN NULL ELSE + 54 END
----
54

skipif mysql # not compatible
query I rowsort label-5304
SELECT CASE - CAST ( NULL AS REAL ) WHEN 32 THEN NULL WHEN - + 97 THEN NULL ELSE + 54 END
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL 68 * + - 3 * - + NULLIF ( - 29, - COUNT( * ) * - MIN( ALL - 2 ) * 81 + - AVG ( ALL - + 24 ) )
----
-5916

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL 68 * + - 3 * - + NULLIF ( - 29, - COUNT ( * ) * - MIN ( ALL - 2 ) * 81 + - AVG ( ALL - + 24 ) )
----
-5916

query I rowsort
SELECT ALL 48 * 96 - 96 * + 52 AS col0
----
-384

query II rowsort
SELECT 92, + 93 col0
----
92
93

query II rowsort
SELECT - 23 AS col1, 2
----
-23
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5309
SELECT ALL 34 * CAST( - ( + 34 ) AS SIGNED )
----
-1156

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL 34 * CAST ( - ( + 34 ) AS INTEGER )
----
-1156

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

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

query I rowsort
SELECT + 17 - - 93 AS col2
----
110

query I rowsort
SELECT + 22 * + 52 AS col2
----
1144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5313
SELECT - 92 * + + 59 + - CAST( NULL AS DECIMAL ) + 37 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT - 92 * + + 59 + - CAST ( NULL AS REAL ) + 37 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT + COUNT( * ) + + 75 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5314
SELECT + COUNT ( * ) + + 75 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL + SUM( + ( - 74 ) ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL + SUM ( + ( - 74 ) ) AS col1
----
-74

query II rowsort
SELECT + 96, + 58 col0
----
96
58

query II rowsort
SELECT ALL - 59, - 36 AS col2
----
-59
-36

query I rowsort
SELECT ALL - - 51 * + 11 AS col2
----
561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5319
SELECT + CAST( - + 2 AS SIGNED ) - 91, 30 * + + 19 + + 43 col1
----
-93
613

skipif mysql # not compatible
query II rowsort label-5319
SELECT + CAST ( - + 2 AS INTEGER ) - 91, 30 * + + 19 + + 43 col1
----
-93
613

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT COUNT( * ) - + + 78 col1
----
-77

skipif mysql # not compatible
query I rowsort label-5320
SELECT COUNT ( * ) - + + 78 col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5321
SELECT ALL + + SUM( + - 16 ) DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL + + SUM ( + - 16 ) / - 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT + COUNT( * ) + - 57 * - MIN( DISTINCT - 47 ) col2
----
-2678

skipif mysql # not compatible
query I rowsort label-5322
SELECT + COUNT ( * ) + - 57 * - MIN ( DISTINCT - 47 ) col2
----
-2678

query I rowsort
SELECT 87 * + 2 - 47 AS col2
----
127

query I rowsort
SELECT - 8 * + - NULLIF ( + - 54, + - 42 )
----
-432

query I rowsort
SELECT ALL - ( + 6 ) + - + 58 + + 76 + - 37 + - - 33 * 79 AS col2
----
2582

query I rowsort
SELECT 17 + + 90 * + - 28
----
-2503

query II rowsort
SELECT 46 AS col2, 47 AS col0
----
46
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5328
SELECT DISTINCT - - NULLIF ( - - CAST( 88 AS SIGNED ), + 51 ) * + COUNT( ALL - 93 )
----
88

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT - - NULLIF ( - - CAST ( 88 AS INTEGER ), + 51 ) * + COUNT ( ALL - 93 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5329
SELECT ALL - 40 + + CAST( + 91 AS SIGNED ) + - CASE + COALESCE ( - 67, + + 83 * + MAX( DISTINCT - ( - - 43 ) ) / + + 32 + - 59 * - 66 * + 93 + + - MIN( DISTINCT 71 ) + - 23 ) WHEN + - 79 * + CAST( + 39 AS SIGNED ) + COALESCE ( - 26 - ( COUNT( + 43 ) + 10 * - NULLIF ( + COUNT( * ) * - ( 62 ) + + COUNT( * ) * - COUNT( * ), MAX( ALL 72 ) + + 64 ) ), + 87 + 1 * ( - 8 ), 45 + 27 ) / + NULLIF ( 70, - 90 * 96 ) THEN 33 END * SUM( + ( 94 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL - 40 + + CAST ( + 91 AS INTEGER ) + - CASE + COALESCE ( - 67, + + 83 * + MAX ( DISTINCT - ( - - 43 ) ) / + + 32 + - 59 * - 66 * + 93 + + - MIN ( DISTINCT 71 ) + - 23 ) WHEN + - 79 * + CAST ( + 39 AS INTEGER ) + COALESCE ( - 26 - ( COUNT ( + 43 ) + 10 * - NULLIF ( + COUNT ( * ) * - ( 62 ) + + COUNT ( * ) * - COUNT ( * ), MAX ( ALL 72 ) + + 64 ) ), + 87 + 1 * ( - 8 ), 45 + 27 ) / + NULLIF ( 70, - 90 * 96 ) THEN 33 END * SUM ( + ( 94 ) ) AS col2
----
NULL

query I rowsort
SELECT - 52 * 64 + ( - ( - 80 ) )
----
-3248

query I rowsort
SELECT ALL - 13 + - + 72 + + 68 * - 27
----
-1921

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT DISTINCT - MIN( 39 ) + - 4 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT - MIN ( 39 ) + - 4 AS col1
----
-43

query I rowsort
SELECT ALL + 41 + - 96 - - 5
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-5334
SELECT 21 * - + COALESCE ( 11, + 76 * - - 95, 23 DIV - + 90 ), - ( + 36 ) AS col0
----
-231
-36

skipif mysql # not compatible
query II rowsort label-5334
SELECT 21 * - + COALESCE ( 11, + 76 * - - 95, 23 / - + 90 ), - ( + 36 ) AS col0
----
-231
-36

query I rowsort
SELECT DISTINCT 33 * - 86
----
-2838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT DISTINCT 92 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT 92 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 46 * - 19 AS col1
----
-874

query I rowsort
SELECT ALL 27 - + - 80 * + 33
----
2667

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL - COUNT( * ) * 48 * + 63
----
-3024

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - COUNT ( * ) * 48 * + 63
----
-3024

query I rowsort
SELECT 36 * + 99 AS col0
----
3564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5341
SELECT CASE - + 75 WHEN + - 49 * 74 THEN NULL WHEN - - 65 THEN NULL ELSE ( + COUNT( + - 71 ) ) END + - 13 + 64 DIV + 24
----
-10

skipif mysql # not compatible
query I rowsort label-5341
SELECT CASE - + 75 WHEN + - 49 * 74 THEN NULL WHEN - - 65 THEN NULL ELSE ( + COUNT ( + - 71 ) ) END + - 13 + 64 / + 24
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT 61 * + NULLIF ( - 33, + COUNT( * ) )
----
-2013

skipif mysql # not compatible
query I rowsort label-5342
SELECT 61 * + NULLIF ( - 33, + COUNT ( * ) )
----
-2013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5343
SELECT ALL COUNT( * ) DIV 59 AS col2, + 56 + + CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5343
SELECT ALL COUNT ( * ) / 59 AS col2, + 56 + + CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5345
SELECT ALL - CASE 64 WHEN 0 THEN 61 + + + 84 WHEN + + COUNT( * ) * - - 61 + COUNT( * ) THEN NULL WHEN + + CAST( - - NULLIF ( 48, - 68 ) AS SIGNED ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - CASE 64 WHEN 0 THEN 61 + + + 84 WHEN + + COUNT ( * ) * - - 61 + COUNT ( * ) THEN NULL WHEN + + CAST ( - - NULLIF ( 48, - 68 ) AS INTEGER ) THEN NULL END col2
----
NULL

query I rowsort
SELECT + 15 + + - 7
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT 44 * - COUNT( * ) - - 20
----
-24

skipif mysql # not compatible
query I rowsort label-5347
SELECT 44 * - COUNT ( * ) - - 20
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT MAX( - 94 ) * - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-5348
SELECT MAX ( - 94 ) * - COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5349
SELECT ALL - 84 * - 45 col1, + COUNT( * ) col2
----
3780
1

skipif mysql # not compatible
query II rowsort label-5349
SELECT ALL - 84 * - 45 col1, + COUNT ( * ) col2
----
3780
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + SUM( - - 72 ) * + 65
----
4680

skipif mysql # not compatible
query I rowsort label-5350
SELECT + SUM ( - - 72 ) * + 65
----
4680

query I rowsort
SELECT DISTINCT + 14 + + 27 * + 49
----
1337

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT DISTINCT - COUNT( * ) + + - MAX( ALL + 95 ) * 4 AS col2
----
-381

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT - COUNT ( * ) + + - MAX ( ALL + 95 ) * 4 AS col2
----
-381

onlyif mysql # DIV for integer division: 
query I rowsort label-5353
SELECT ALL COALESCE ( + 14, + 44 DIV - + 80 + - + 14 ) + - 88 DIV + 82 + 69
----
82

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL COALESCE ( + 14, + 44 / - + 80 + - + 14 ) + - 88 / + 82 + 69
----
82

query I rowsort
SELECT + 31 * + 41 AS col2
----
1271

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

skipif mysql # not compatible
query I rowsort label-5355
SELECT NULLIF ( + 16, + COUNT ( * ) ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL - ( - NULLIF ( + - 74, - 2 * + 34 + - ( - - 17 ) * - 69 / - ( - CASE COUNT( * ) WHEN - 14 THEN NULL ELSE 76 - COUNT( * ) END ) ) ) + 96
----
22

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL - ( - NULLIF ( + - 74, - 2 * + 34 + - ( - - 17 ) * - 69 / - ( - CASE COUNT ( * ) WHEN - 14 THEN NULL ELSE 76 - COUNT ( * ) END ) ) ) + 96
----
22

query I rowsort
SELECT ALL + 21 + - 87 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT ALL - COUNT( * ) + 32 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL - COUNT ( * ) + 32 AS col2
----
31

query I rowsort
SELECT DISTINCT 70 + 65
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5360
SELECT ( - CAST( NULL AS SIGNED ) ) * CASE + 72 WHEN - CAST( NULL AS SIGNED ) * + + 37 THEN 10 END * + 95 AS col2, 69 * + + 78 AS col0
----
NULL
5382

skipif mysql # not compatible
query II rowsort label-5360
SELECT ( - CAST ( NULL AS INTEGER ) ) * CASE + 72 WHEN - CAST ( NULL AS INTEGER ) * + + 37 THEN 10 END * + 95 AS col2, 69 * + + 78 AS col0
----
NULL
5382

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT 40 * - COUNT( + ( + 73 ) ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-5361
SELECT 40 * - COUNT ( + ( + 73 ) ) AS col1
----
-40

query I rowsort
SELECT ALL - 5 * + - 75 + + 8 + - ( 47 ) - - - 88 + 73
----
321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5363
SELECT DISTINCT + CASE + 19 WHEN - 96 THEN - 74 * + + 62 WHEN 85 THEN NULL WHEN - 94 THEN - 53 ELSE COUNT( * ) END * - - 91 AS col0, + COUNT( * ) * - MAX( ALL + 39 ) * - CAST( NULL AS SIGNED ) + - 82 AS col0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-5363
SELECT DISTINCT + CASE + 19 WHEN - 96 THEN - 74 * + + 62 WHEN 85 THEN NULL WHEN - 94 THEN - 53 ELSE COUNT ( * ) END * - - 91 AS col0, + COUNT ( * ) * - MAX ( ALL + 39 ) * - CAST ( NULL AS INTEGER ) + - 82 AS col0
----
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5364
SELECT CAST( NULL AS SIGNED ) - + NULLIF ( + 87, - ( 60 ) + COUNT( * ) ) * + COUNT( * ) + - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT CAST ( NULL AS INTEGER ) - + NULLIF ( + 87, - ( 60 ) + COUNT ( * ) ) * + COUNT ( * ) + - 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT 56 * + COUNT( DISTINCT - 16 )
----
56

skipif mysql # not compatible
query I rowsort label-5365
SELECT 56 * + COUNT ( DISTINCT - 16 )
----
56

query I rowsort
SELECT 46 * - 52 * 68 - 26 + 93
----
-162589

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL + 28 * - 28 * + 5 - - COUNT( * ) AS col1
----
-3919

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL + 28 * - 28 * + 5 - - COUNT ( * ) AS col1
----
-3919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5368
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 24 * COUNT( * ) DIV - 81 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5368
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 24 * COUNT ( * ) / - 81 AS col0
----
NULL
0

query I rowsort
SELECT ALL - NULLIF ( + 11, + - 29 / - 80 - + 57 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL - NULLIF ( + - MIN( DISTINCT 4 ), + 64 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL - NULLIF ( + - MIN ( DISTINCT 4 ), + 64 ) AS col1
----
4

query I rowsort
SELECT 65 - - 92
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5372
SELECT + CAST( NULL AS SIGNED ) * NULLIF ( - NULLIF ( + + MAX( DISTINCT + - 98 ), + NULLIF ( - 69, ( + 46 ) - - 58 * - 26 ) ), + 19 / - 22 + + 0 ) - - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT + CAST ( NULL AS INTEGER ) * NULLIF ( - NULLIF ( + + MAX ( DISTINCT + - 98 ), + NULLIF ( - 69, ( + 46 ) - - 58 * - 26 ) ), + 19 / - 22 + + 0 ) - - + 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5373
SELECT ALL - COALESCE ( CASE - 61 WHEN - 0 THEN NULL WHEN - 13 THEN + 42 ELSE NULL END, + + ( + COUNT( * ) ) - - + CAST( - 19 AS SIGNED ) * AVG ( + 3 ) + + 8 + - CAST( NULL AS SIGNED ) - + COUNT( DISTINCT + + 28 ) * - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL - COALESCE ( CASE - 61 WHEN - 0 THEN NULL WHEN - 13 THEN + 42 ELSE NULL END, + + ( + COUNT ( * ) ) - - + CAST ( - 19 AS INTEGER ) * AVG ( + 3 ) + + 8 + - CAST ( NULL AS INTEGER ) - + COUNT ( DISTINCT + + 28 ) * - - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 46 * - 23 AS col1
----
-1058

query I rowsort
SELECT DISTINCT + 95 * + 2
----
190

onlyif mysql # aggregate syntax: 
query II rowsort label-5376
SELECT ALL - + COUNT( * ), + 11 * 19 col1
----
-1
209

skipif mysql # not compatible
query II rowsort label-5376
SELECT ALL - + COUNT ( * ), + 11 * 19 col1
----
-1
209

query I rowsort
SELECT + 4 + 18 AS col2
----
22

query I rowsort
SELECT DISTINCT 52 * + 87 col1
----
4524

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5379
SELECT ALL - - CAST( 49 AS SIGNED ) + - 55 AS col1, 61 * 39 / CAST( NULL AS SIGNED ), - 54 + 72 - 52 AS col1
----
-6
NULL
-34

skipif mysql # not compatible
query III rowsort label-5379
SELECT ALL - - CAST ( 49 AS INTEGER ) + - 55 AS col1, 61 * 39 / CAST ( NULL AS INTEGER ), - 54 + 72 - 52 AS col1
----
-6
NULL
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT ALL + 2 * + CAST( NULL AS SIGNED ) + ( - 41 ) - - CAST( 56 AS SIGNED ) + + - 69 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + 2 * + CAST ( NULL AS INTEGER ) + ( - 41 ) - - CAST ( 56 AS INTEGER ) + + - 69 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5381
SELECT ALL 79 + - COALESCE ( - 56, + + 9 * + COUNT( * ) * ( MAX( 31 ) ) + + + 76, - 55 ) DIV - 59 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL 79 + - COALESCE ( - 56, + + 9 * + COUNT ( * ) * ( MAX ( 31 ) ) + + + 76, - 55 ) / - 59 AS col2
----
79

query I rowsort
SELECT DISTINCT + - 67 + + - 48 - - + ( - 70 ) * - 85 * 10 * + - 44 + - ( 62 ) AS col1
----
-2618177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5383
SELECT - - 55 + + 34 + CAST( NULL AS DECIMAL ) + + - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT - - 55 + + 34 + CAST ( NULL AS REAL ) + + - 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL SUM( DISTINCT 30 ) + + 78 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL SUM ( DISTINCT 30 ) + + 78 AS col1
----
108

query I rowsort
SELECT ALL - NULLIF ( + + 54, - 30 ) * + 82 * - 89 AS col2
----
394092

onlyif mysql # DIV for integer division: 
query I rowsort label-5386
SELECT + 65 - - 75 + + - 1 * 82 DIV + 31
----
138

skipif mysql # not compatible
query I rowsort label-5386
SELECT + 65 - - 75 + + - 1 * 82 / + 31
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT DISTINCT + 78 * - MAX( - + 80 ) - + 77 * COUNT( * ) / - COUNT( * ) * + CASE 74 WHEN - CASE 54 WHEN - - 24 * - 20 THEN - 43 * - COUNT( * ) + + 97 - 84 * - 45 ELSE + + 16 END THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT + 78 * - MAX ( - + 80 ) - + 77 * COUNT ( * ) / - COUNT ( * ) * + CASE 74 WHEN - CASE 54 WHEN - - 24 * - 20 THEN - 43 * - COUNT ( * ) + + 97 - 84 * - 45 ELSE + + 16 END THEN COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5388
SELECT ALL ( - 33 ) - + + CAST( NULL AS DECIMAL ) * + CAST( NULL AS DECIMAL ) * + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL ( - 33 ) - + + CAST ( NULL AS REAL ) * + CAST ( NULL AS REAL ) * + 46 AS col2
----
NULL

query I rowsort
SELECT + 11 * 94 AS col2
----
1034

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

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

query II rowsort
SELECT 93, 68 AS col2
----
93
68

query II rowsort
SELECT 98, 70 AS col1
----
98
70

query II rowsort
SELECT ALL 84 AS col2, 53
----
84
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT + 63 + + 77 + + 47 * - 53 * - + 65 DIV - ( - COUNT( * ) ) AS col1
----
162055

skipif mysql # not compatible
query I rowsort label-5394
SELECT + 63 + + 77 + + 47 * - 53 * - + 65 / - ( - COUNT ( * ) ) AS col1
----
162055

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL ( + COUNT( * ) ) - - 23 + + + 54 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL ( + COUNT ( * ) ) - - 23 + + + 54 AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5396
SELECT ALL COUNT( * ) DIV + COUNT( * ) - - 68 col1
----
69

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL COUNT ( * ) / + COUNT ( * ) - - 68 col1
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5398
SELECT + COALESCE ( + + 53, + 31, + - NULLIF ( + - CAST( NULL AS SIGNED ), + - 39 * ( - 53 ) ) ) * + SUM( ALL 7 )
----
371

skipif mysql # not compatible
query I rowsort label-5398
SELECT + COALESCE ( + + 53, + 31, + - NULLIF ( + - CAST ( NULL AS INTEGER ), + - 39 * ( - 53 ) ) ) * + SUM ( ALL 7 )
----
371

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT DISTINCT + 6 * - - SUM( - - 42 )
----
252

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT + 6 * - - SUM ( - - 42 )
----
252

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

skipif mysql # not compatible
query I rowsort label-5400
SELECT ( MIN ( + 63 ) )
----
63

query II rowsort
SELECT ALL + 1, + 83 AS col2
----
1
83

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

query II rowsort
SELECT - 85 + + 58 AS col2, ( 14 ) AS col0
----
-27
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT + 97 DIV + MAX( ALL + 94 )
----
1

skipif mysql # not compatible
query I rowsort label-5404
SELECT + 97 / + MAX ( ALL + 94 )
----
1

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

skipif mysql # not compatible
query I rowsort label-5405
SELECT - 3 / 35
----
0

query II rowsort
SELECT ALL 9 * 24 col1, 5
----
216
5

query I rowsort
SELECT - ( 54 ) * - 87 + - ( + + 78 )
----
4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5408
SELECT ALL + 43 * 98 AS col1, MAX( DISTINCT + 15 ), COUNT( * ) * 84 * 99 + - 15 + - - CAST( NULL AS SIGNED ) col1
----
4214
15
NULL

skipif mysql # not compatible
query III rowsort label-5408
SELECT ALL + 43 * 98 AS col1, MAX ( DISTINCT + 15 ), COUNT ( * ) * 84 * 99 + - 15 + - - CAST ( NULL AS INTEGER ) col1
----
4214
15
NULL

query I rowsort
SELECT + 23 * - 13 + + + ( - 5 ) * 1 AS col1
----
-304

query I rowsort
SELECT DISTINCT + 34 * ( 33 )
----
1122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT DISTINCT 19 * + - CAST( 88 AS SIGNED ) * + MIN( DISTINCT 91 ) + + 57 * + + 29 + - 49 AS col0
----
-150548

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT 19 * + - CAST ( 88 AS INTEGER ) * + MIN ( DISTINCT 91 ) + + 57 * + + 29 + - 49 AS col0
----
-150548

query I rowsort
SELECT DISTINCT + + 46 col1
----
46

query I rowsort
SELECT ALL - - 96 * - 49 + 33 AS col0
----
-4671

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT - + 20 + + + COALESCE ( + 84, - COUNT( * ), 2 + 32 ) + 91 + 40 AS col2
----
195

skipif mysql # not compatible
query I rowsort label-5414
SELECT - + 20 + + + COALESCE ( + 84, - COUNT ( * ), 2 + 32 ) + 91 + 40 AS col2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT DISTINCT - 33 * - - ( + - 71 ) + - 44 + NULLIF ( - - 81, + - COUNT( * ) * - + 45 ) AS col2
----
2380

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT - 33 * - - ( + - 71 ) + - 44 + NULLIF ( - - 81, + - COUNT ( * ) * - + 45 ) AS col2
----
2380

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT - - 83 * + + 72 * + + CAST( 0 AS SIGNED ) + + 70 * + 59 * 4
----
16520

skipif mysql # not compatible
query I rowsort label-5417
SELECT - - 83 * + + 72 * + + CAST ( 0 AS INTEGER ) + + 70 * + 59 * 4
----
16520

query I rowsort
SELECT - 0 + + - 93
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT - COALESCE ( AVG ( DISTINCT - - 70 ), 44 - - 82 ) + - + 83 - 16 * CAST( NULL AS SIGNED ) * + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT - COALESCE ( AVG ( DISTINCT - - 70 ), 44 - - 82 ) + - + 83 - 16 * CAST ( NULL AS INTEGER ) * + + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT + 94 * 34 * + COUNT( * ) - + 25 AS col0
----
3171

skipif mysql # not compatible
query I rowsort label-5420
SELECT + 94 * 34 * + COUNT ( * ) - + 25 AS col0
----
3171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5421
SELECT DISTINCT - MAX( + 83 ) DIV + 53 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT - MAX ( + 83 ) / + 53 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL + + 46 * - + 17 + - + ( + 80 ) + - COALESCE ( - + ( 1 ), 1 + 20 - + 21 * + COUNT( * ), - 71 )
----
-861

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL + + 46 * - + 17 + - + ( + 80 ) + - COALESCE ( - + ( 1 ), 1 + 20 - + 21 * + COUNT ( * ), - 71 )
----
-861

query II rowsort
SELECT 34 AS col1, - 23 * ( - CASE + 17 WHEN - ( 21 ) THEN NULL WHEN + 21 THEN + 99 END ) AS col0
----
34
NULL

query I rowsort
SELECT ALL - - 73 * + + 69
----
5037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT DISTINCT + 46 * - - ( + 53 ) + - - 25 + - 82 * + - 40 * + 50 * - + 6 - 91 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT + 46 * - - ( + 53 ) + - - 25 + - 82 * + - 40 * + 50 * - + 6 - 91 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - COALESCE ( + 12, - COUNT( * ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-5426
SELECT - COALESCE ( + 12, - COUNT ( * ) ) AS col1
----
-12

query I rowsort
SELECT - + 43 + - 37 * + 26 AS col2
----
-1005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5428
SELECT ALL + + 60 - - 30 + - CAST( 96 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + + 60 - - 30 + - CAST ( 96 AS INTEGER ) AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT - 11 DIV + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5429
SELECT - 11 / + 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT + CASE - 25 WHEN + 9 + - 38 THEN NULL ELSE + 22 - - + COUNT( * ) + - 78 END * ( - 1 ) * - 1 + - + 81
----
-136

skipif mysql # not compatible
query I rowsort label-5430
SELECT + CASE - 25 WHEN + 9 + - 38 THEN NULL ELSE + 22 - - + COUNT ( * ) + - 78 END * ( - 1 ) * - 1 + - + 81
----
-136

query I rowsort
SELECT + 52 * + 50 AS col2
----
2600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT ALL 58 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL 58 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5433
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ), 21 + + - 99 / - + CASE - - 63 WHEN - 44 THEN NULL WHEN + + 50 THEN + 91 + + + 61 * 75 + COUNT( * ) END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5433
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ), 21 + + - 99 / - + CASE - - 63 WHEN - 44 THEN NULL WHEN + + 50 THEN + 91 + + + 61 * 75 + COUNT ( * ) END AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - CASE 95 WHEN - - COUNT( * ) * - + SUM( ALL + 35 ) / + 35 + - 31 THEN - 57 WHEN + COALESCE ( - 51, + 93, 27 ) * - - 6 THEN - - 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT - CASE 95 WHEN - - COUNT ( * ) * - + SUM ( ALL + 35 ) / + 35 + - 31 THEN - 57 WHEN + COALESCE ( - 51, + 93, 27 ) * - - 6 THEN - - 38 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 69 * 65
----
4485

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT - ( + + NULLIF ( - COUNT( * ), 61 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5436
SELECT - ( + + NULLIF ( - COUNT ( * ), 61 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5437
SELECT ALL 15 * + 9 * + 12 col2, ( ( MIN( ALL + - 91 ) ) )
----
1620
-91

skipif mysql # not compatible
query II rowsort label-5437
SELECT ALL 15 * + 9 * + 12 col2, ( ( MIN ( ALL + - 91 ) ) )
----
1620
-91

query I rowsort
SELECT + 62 * + 6
----
372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5439
SELECT ALL 1 DIV + COALESCE ( + 39, - - 74 * + MAX( ALL - 99 ) * - 30 + 75, 83 ) + + COUNT( * ) - + + 46 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL 1 / + COALESCE ( + 39, - - 74 * + MAX ( ALL - 99 ) * - 30 + 75, 83 ) + + COUNT ( * ) - + + 46 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-5440
SELECT + 74 - COUNT( * ), 31 * - 85 * + + 39 * - - ( - MIN( DISTINCT 33 ) ) col2
----
73
3391245

skipif mysql # not compatible
query II rowsort label-5440
SELECT + 74 - COUNT ( * ), 31 * - 85 * + + 39 * - - ( - MIN ( DISTINCT 33 ) ) col2
----
73
3391245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5441
SELECT ALL 44 + - + COUNT( - CAST( NULL AS SIGNED ) ) col1
----
44

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

query I rowsort
SELECT DISTINCT 14 * + 14
----
196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5443
SELECT DISTINCT 73 + - - 84 + + + 75 DIV 53 * - 51 * + + COALESCE ( + + ( + COUNT( * ) ), + COUNT( * ), 36 DIV - COUNT( * ) * + - 45 ) + - - 45 + 77 * + ( - 97 ) AS col1
----
-7318

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT 73 + - - 84 + + + 75 / 53 * - 51 * + + COALESCE ( + + ( + COUNT ( * ) ), + COUNT ( * ), 36 / - COUNT ( * ) * + - 45 ) + - - 45 + 77 * + ( - 97 ) AS col1
----
-7318

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5446
SELECT + COALESCE ( 17, 1 + + CASE + 66 WHEN - 6 * - COUNT( * ) + - 17 + - AVG ( 6 ) * 44 - - + ( - - 8 ) THEN - 81 ELSE NULL END ) * - + CASE 93 WHEN + - 71 * - 47 * + 93 THEN COUNT( + 76 ) WHEN + 23 + NULLIF ( - 51, 74 ) THEN - COALESCE ( - 40, - ( - CAST( NULL AS SIGNED ) ) ) ELSE ( - 30 ) END - CAST( NULL AS SIGNED ) * + 94 + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT + COALESCE ( 17, 1 + + CASE + 66 WHEN - 6 * - COUNT ( * ) + - 17 + - AVG ( 6 ) * 44 - - + ( - - 8 ) THEN - 81 ELSE NULL END ) * - + CASE 93 WHEN + - 71 * - 47 * + 93 THEN COUNT ( + 76 ) WHEN + 23 + NULLIF ( - 51, 74 ) THEN - COALESCE ( - 40, - ( - CAST ( NULL AS INTEGER ) ) ) ELSE ( - 30 ) END - CAST ( NULL AS INTEGER ) * + 94 + 26
----
NULL

query I rowsort
SELECT NULLIF ( 46, 6 ) - - + 0 AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5448
SELECT ALL + ( - NULLIF ( + 40, - - COUNT( * ) ) ) DIV + + SUM( - + 74 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL + ( - NULLIF ( + 40, - - COUNT ( * ) ) ) / + + SUM ( - + 74 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT - - 93 * 29 - + - ( + - ( - COUNT( * ) ) ) + + - 18
----
2680

skipif mysql # not compatible
query I rowsort label-5449
SELECT - - 93 * 29 - + - ( + - ( - COUNT ( * ) ) ) + + - 18
----
2680

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

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

query I rowsort
SELECT ALL + 36 + 97
----
133

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

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

query I rowsort
SELECT - 2 + - - 69
----
67

query I rowsort
SELECT ALL + - 37 * - ( - 27 ) AS col0
----
-999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5455
SELECT ALL + 33 * - 97 * + COALESCE ( - - COALESCE ( - 90, ( CASE + 54 WHEN 38 * + 16 THEN NULL WHEN + 9 THEN + CAST( 72 AS SIGNED ) ELSE NULL END ) + 69, + 73 * + - ( - - 29 ) + + COALESCE ( - 93, ( - - 99 ) DIV 57 DIV ( - 86 * - 22 ) ) * CASE - 67 DIV 22 + 73 WHEN 84 THEN 67 * 96 + 27 * - NULLIF ( - 61 * COUNT( * ), 82 + CAST( NULL AS SIGNED ) ) WHEN 18 + + 90 THEN MIN( DISTINCT - 80 ) + 3 ELSE + 19 END ), + 33, - 10 + 16 * - MIN( ALL 88 ) ) * - 51 AS col0
----
-14692590

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL + 33 * - 97 * + COALESCE ( - - COALESCE ( - 90, ( CASE + 54 WHEN 38 * + 16 THEN NULL WHEN + 9 THEN + CAST ( 72 AS INTEGER ) ELSE NULL END ) + 69, + 73 * + - ( - - 29 ) + + COALESCE ( - 93, ( - - 99 ) / 57 / ( - 86 * - 22 ) ) * CASE - 67 / 22 + 73 WHEN 84 THEN 67 * 96 + 27 * - NULLIF ( - 61 * COUNT ( * ), 82 + CAST ( NULL AS INTEGER ) ) WHEN 18 + + 90 THEN MIN ( DISTINCT - 80 ) + 3 ELSE + 19 END ), + 33, - 10 + 16 * - MIN ( ALL 88 ) ) * - 51 AS col0
----
-14692590

query I rowsort
SELECT + NULLIF ( + 35, 15 * 42 + + 6 ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5457
SELECT ALL - COALESCE ( - + 34, - + COALESCE ( COUNT( ALL + 72 ), - + 60, - COALESCE ( + ( - + 46 ), + 73 * + + COUNT( * ), 68 + + 43 * - ( - + 57 ) ) + 92 + + + 53 * - 49 * - COUNT( * ) * + 76 ) DIV + 9 - ( + 61 ) DIV 62 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL - COALESCE ( - + 34, - + COALESCE ( COUNT ( ALL + 72 ), - + 60, - COALESCE ( + ( - + 46 ), + 73 * + + COUNT ( * ), 68 + + 43 * - ( - + 57 ) ) + 92 + + + 53 * - 49 * - COUNT ( * ) * + 76 ) / + 9 - ( + 61 ) / 62 ) AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5458
SELECT + 78 + + COUNT( * ) + 76 DIV 80
----
79

skipif mysql # not compatible
query I rowsort label-5458
SELECT + 78 + + COUNT ( * ) + 76 / 80
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL - MAX( - 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL - MAX ( - 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT - + COALESCE ( - 44, - - NULLIF ( 29, + 95 * + + COUNT( - + 48 ) - + 24 + 95 ), + 74 )
----
44

skipif mysql # not compatible
query I rowsort label-5460
SELECT - + COALESCE ( - 44, - - NULLIF ( 29, + 95 * + + COUNT ( - + 48 ) - + 24 + 95 ), + 74 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT - COUNT( * ) - - - 44 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5461
SELECT - COUNT ( * ) - - - 44 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT 56 * + MAX( ALL - ( - NULLIF ( 70, - - 20 - - + 28 ) ) ) * - 82 * + - COUNT( * ) AS col2
----
321440

skipif mysql # not compatible
query I rowsort label-5462
SELECT 56 * + MAX ( ALL - ( - NULLIF ( 70, - - 20 - - + 28 ) ) ) * - 82 * + - COUNT ( * ) AS col2
----
321440

query I rowsort
SELECT 56 * + 30
----
1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5464
SELECT ALL 74, - CAST( - MIN( + 92 ) AS SIGNED ) col1
----
74
92

skipif mysql # not compatible
query II rowsort label-5464
SELECT ALL 74, - CAST ( - MIN ( + 92 ) AS INTEGER ) col1
----
74
92

query I rowsort
SELECT ALL - 23 * - 56 * 34
----
43792

query I rowsort
SELECT 40 + - 85 + - + 47 * 91 * - - 92 AS col1
----
-393529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5467
SELECT ALL - SUM( - 20 ) DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL - SUM ( - 20 ) / 50
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5468
SELECT 46 DIV + COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5468
SELECT 46 / + COUNT ( * ) AS col0
----
46

query I rowsort
SELECT DISTINCT - 5 * ( + 47 )
----
-235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5470
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 13 * 44 * + - AVG ( - 50 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 13 * 44 * + - AVG ( - 50 ) col0
----
NULL

query I rowsort
SELECT 65 + + 63
----
128

query I rowsort
SELECT DISTINCT - 6 + + 93
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5473
SELECT 49 DIV + + 17
----
2

skipif mysql # not compatible
query I rowsort label-5473
SELECT 49 / + + 17
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL - 88 + COUNT( * ) col2
----
-87

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - 88 + COUNT ( * ) col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5475
SELECT 55 + - 20 * COUNT( * ) DIV + 61 * + - 48
----
55

skipif mysql # not compatible
query I rowsort label-5475
SELECT 55 + - 20 * COUNT ( * ) / + 61 * + - 48
----
55

query II rowsort
SELECT - 7 col2, 51 * - 37 * - - 32 * + 50 + + - 53 AS col1
----
-7
-3019253

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT DISTINCT - 43 + + 62 DIV 7 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT - 43 + + 62 / 7 AS col1
----
-35

query I rowsort
SELECT ALL + 89 + + 30 AS col1
----
119

query I rowsort
SELECT DISTINCT 97 * - 64
----
-6208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5480
SELECT - 65 DIV 98 + + + COUNT( * ) + + 13 * - - 53 - + CASE 24 WHEN - + 53 THEN NULL ELSE 28 END * - + MIN( DISTINCT + 66 )
----
2538

skipif mysql # not compatible
query I rowsort label-5480
SELECT - 65 / 98 + + + COUNT ( * ) + + 13 * - - 53 - + CASE 24 WHEN - + 53 THEN NULL ELSE 28 END * - + MIN ( DISTINCT + 66 )
----
2538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5481
SELECT - - 46 DIV - - ( - 31 ) + MIN( - 40 ) + 92 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5481
SELECT - - 46 / - - ( - 31 ) + MIN ( - 40 ) + 92 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT DISTINCT + CASE 0 WHEN + 95 * + COUNT( * ) THEN + COUNT( 66 ) ELSE NULL END * + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT + CASE 0 WHEN + 95 * + COUNT ( * ) THEN + COUNT ( 66 ) ELSE NULL END * + 21 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT 43 + + ( + COUNT( DISTINCT 11 ) )
----
44

skipif mysql # not compatible
query I rowsort label-5484
SELECT 43 + + ( + COUNT ( DISTINCT 11 ) )
----
44

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

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

query I rowsort
SELECT ALL 3 + + + 40 AS col0
----
43

query II rowsort
SELECT + + 76 AS col0, + 70 - 23
----
76
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT SUM( 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5488
SELECT SUM ( 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT - - NULLIF ( COUNT( * ), 90 ) * - + COUNT( * ) * 32
----
-32

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT - - NULLIF ( COUNT ( * ), 90 ) * - + COUNT ( * ) * 32
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT 22 * + COUNT( * ) * + 70 AS col0, 99 col1
----
1540
99

skipif mysql # not compatible
query II rowsort label-5490
SELECT 22 * + COUNT ( * ) * + 70 AS col0, 99 col1
----
1540
99

query I rowsort
SELECT ALL - ( + 98 ) * - 30 AS col2
----
2940

query I rowsort
SELECT ALL + 4 - 67 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL - 24 - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL - 24 - COUNT ( * )
----
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5494
SELECT + 22 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5494
SELECT + 22 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT - NULLIF ( + + 38, - COUNT( * ) + - 7 ) + + 6
----
-32

skipif mysql # not compatible
query I rowsort label-5495
SELECT - NULLIF ( + + 38, - COUNT ( * ) + - 7 ) + + 6
----
-32

query I rowsort
SELECT 91 * + 9 AS col2
----
819

query I rowsort
SELECT NULLIF ( - 7, + 21 ) AS col0
----
-7

query II rowsort
SELECT ALL - + 15, + 68 col2
----
-15
68

query I rowsort
SELECT + + 38 * - 70 + - 51 + - + 99 - + 94 * + - 36
----
574

onlyif mysql # aggregate syntax: 
query II rowsort label-5500
SELECT - MIN( - 16 ), 18 * + COUNT( * ) * - 21 AS col0
----
16
-378

skipif mysql # not compatible
query II rowsort label-5500
SELECT - MIN ( - 16 ), 18 * + COUNT ( * ) * - 21 AS col0
----
16
-378

query II rowsort
SELECT DISTINCT 5 * + - 18 AS col1, 66
----
-90
66

query I rowsort
SELECT 50 * 50 * + - 96 AS col1
----
-240000

query I rowsort
SELECT 56 + 52 AS col1
----
108

query I rowsort
SELECT DISTINCT 40 * - 20 AS col2
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - MAX( 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-5505
SELECT - MAX ( 79 )
----
-79

query I rowsort
SELECT 66 + 56 AS col0
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5507
SELECT 75 * + - 60, - CAST( 1 AS SIGNED ) + + 2 col2
----
-4500
1

skipif mysql # not compatible
query II rowsort label-5507
SELECT 75 * + - 60, - CAST ( 1 AS INTEGER ) + + 2 col2
----
-4500
1

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

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

query I rowsort
SELECT ALL - 84 * - + 74 AS col1
----
6216

query I rowsort
SELECT DISTINCT COALESCE ( 38, 45 ) AS col0
----
38

query I rowsort
SELECT ALL + 57 + - 29
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - NULLIF ( + 31, - 13 ) * CASE CASE 66 WHEN + 16 THEN NULL WHEN - 59 - - NULLIF ( + + 58, + 49 ) THEN MAX( DISTINCT + 52 ) END WHEN COUNT( * ) THEN + + 36 * - 52 ELSE - 36 END * + - 65 * - COALESCE ( 81, - 86 ) - + COUNT( * ) * + 77 + + - 8 + + 96 AS col2
----
5875751

skipif mysql # not compatible
query I rowsort label-5512
SELECT - NULLIF ( + 31, - 13 ) * CASE CASE 66 WHEN + 16 THEN NULL WHEN - 59 - - NULLIF ( + + 58, + 49 ) THEN MAX ( DISTINCT + 52 ) END WHEN COUNT ( * ) THEN + + 36 * - 52 ELSE - 36 END * + - 65 * - COALESCE ( 81, - 86 ) - + COUNT ( * ) * + 77 + + - 8 + + 96 AS col2
----
5875751

onlyif mysql # DIV for integer division: 
query II rowsort label-5513
SELECT - 4 DIV + + 55 * 68 - - + 7, + COALESCE ( + 44, - + ( - 61 ) + - 50 DIV 63, + 16 ) + - ( 87 ) col0
----
7
-43

skipif mysql # not compatible
query II rowsort label-5513
SELECT - 4 / + + 55 * 68 - - + 7, + COALESCE ( + 44, - + ( - 61 ) + - 50 / 63, + 16 ) + - ( 87 ) col0
----
7
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL + MIN( - 57 ) + + NULLIF ( - - 74, - ( + NULLIF ( + 20, - + ( 25 ) ) ) ) + - MIN( - 54 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL + MIN ( - 57 ) + + NULLIF ( - - 74, - ( + NULLIF ( + 20, - + ( 25 ) ) ) ) + - MIN ( - 54 ) AS col2
----
71

query I rowsort
SELECT - + 58 * - 79 AS col0
----
4582

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL + + 78 * - CASE - 13 WHEN + 25 + + - NULLIF ( 84, + ( 90 ) ) + COUNT( * ) THEN + COUNT( * ) ELSE - + ( - + 98 ) END - + 58 + + 27
----
-7675

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL + + 78 * - CASE - 13 WHEN + 25 + + - NULLIF ( 84, + ( 90 ) ) + COUNT ( * ) THEN + COUNT ( * ) ELSE - + ( - + 98 ) END - + 58 + + 27
----
-7675

query I rowsort
SELECT - - 88 - 89 * + 16 AS col1
----
-1336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5518
SELECT ALL + + 58 DIV 51 + + - 64 * COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + + 58 / 51 + + - 64 * COUNT ( * )
----
-63

query I rowsort
SELECT - 80 * - + CASE - 90 WHEN - - ( - + 66 ) THEN 3 WHEN - + 93 - + 9 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5520
SELECT COUNT( * ) DIV - 30 * 51 + + - 26 * + 86 + 74 AS col0
----
-2162

skipif mysql # not compatible
query I rowsort label-5520
SELECT COUNT ( * ) / - 30 * 51 + + - 26 * + 86 + 74 AS col0
----
-2162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5521
SELECT ALL + - COALESCE ( + + 95, + COALESCE ( + CAST( - 88 AS SIGNED ), - 13 ) * - 91 + - 47 + 30 + + CAST( NULL AS SIGNED ) * - COUNT( * ) DIV + + 47, - 87 DIV ( - - 69 ) * - 92 + 66 + + + 72, + - CAST( NULL AS SIGNED ) ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL + - COALESCE ( + + 95, + COALESCE ( + CAST ( - 88 AS INTEGER ), - 13 ) * - 91 + - 47 + 30 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + + 47, - 87 / ( - - 69 ) * - 92 + 66 + + + 72, + - CAST ( NULL AS INTEGER ) ) AS col1
----
-95

query I rowsort
SELECT 78 * - - 53 + + 48 * + 10 + - 99 * + 43 + 35 col2
----
392

query I rowsort
SELECT - + 62 * - 98
----
6076

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT - + COUNT( * ) + 73 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5525
SELECT - + COUNT ( * ) + 73 AS col0
----
72

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

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

query I rowsort
SELECT ALL + 90 * - + 85 - 76
----
-7726

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

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

query I rowsort
SELECT ALL + 33 * + - 62 col1
----
-2046

query II rowsort
SELECT DISTINCT + 82 AS col2, ( + + 47 ) AS col1
----
82
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5531
SELECT ALL 40 * COALESCE ( + 30, 20 * 54 + + COUNT( * ) + - 7, - MIN( 33 ) * + COUNT( * ) ) + - 26 - - CAST( - AVG ( 81 ) AS SIGNED )
----
1093

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL 40 * COALESCE ( + 30, 20 * 54 + + COUNT ( * ) + - 7, - MIN ( 33 ) * + COUNT ( * ) ) + - 26 - - CAST ( - AVG ( 81 ) AS INTEGER )
----
1093

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT + CASE - ( - 38 ) WHEN - COUNT( * ) THEN NULL ELSE + + 72 END + + - NULLIF ( + + 95, + + 20 / COUNT( * ) + - 62 ) + 62
----
39

skipif mysql # not compatible
query I rowsort label-5533
SELECT + CASE - ( - 38 ) WHEN - COUNT ( * ) THEN NULL ELSE + + 72 END + + - NULLIF ( + + 95, + + 20 / COUNT ( * ) + - 62 ) + 62
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5534
SELECT + SUM( ALL + 65 ) DIV - COUNT( * ) * + - COALESCE ( + COUNT( DISTINCT - 52 ), + - 51 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5534
SELECT + SUM ( ALL + 65 ) / - COUNT ( * ) * + - COALESCE ( + COUNT ( DISTINCT - 52 ), + - 51 ) AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5535
SELECT + ( + COUNT( * ) ) DIV - ( - - 34 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5535
SELECT + ( + COUNT ( * ) ) / - ( - - 34 ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5536
SELECT ALL 92 + - COUNT( DISTINCT 36 ) + - 63 DIV - + 61 * + - 76 DIV - + MAX( + 67 )
----
92

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL 92 + - COUNT ( DISTINCT 36 ) + - 63 / - + 61 * + - 76 / - + MAX ( + 67 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT + MIN( DISTINCT + 36 ) + - - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-5537
SELECT + MIN ( DISTINCT + 36 ) + - - COUNT ( * )
----
37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT + 74 + 68 - - 4 * 97 DIV - + 70 + 96 * 87 + + + 91 AS col0
----
8580

skipif mysql # not compatible
query I rowsort label-5539
SELECT + 74 + 68 - - 4 * 97 / - + 70 + 96 * 87 + + + 91 AS col0
----
8580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5540
SELECT + NULLIF ( - 87, + COUNT( * ) ) * - - 21 + - 18, - ( - 97 ) * - + CAST( NULL AS SIGNED ) AS col2
----
-1845
NULL

skipif mysql # not compatible
query II rowsort label-5540
SELECT + NULLIF ( - 87, + COUNT ( * ) ) * - - 21 + - 18, - ( - 97 ) * - + CAST ( NULL AS INTEGER ) AS col2
----
-1845
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5541
SELECT ALL 21 * + - 36 * CAST( - COUNT( * ) AS SIGNED ) * 89 * - 90 - - 51 + - 47 * 72 AS col1
----
-6058893

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL 21 * + - 36 * CAST ( - COUNT ( * ) AS INTEGER ) * 89 * - 90 - - 51 + - 47 * 72 AS col1
----
-6058893

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT MIN( ALL - 33 ) + 97 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT MIN ( ALL - 33 ) + 97 AS col0
----
64

query I rowsort
SELECT ALL - 89 + + 19 AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5544
SELECT DISTINCT 50 * CAST( + 68 AS SIGNED ) AS col1
----
3400

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT 50 * CAST ( + 68 AS INTEGER ) AS col1
----
3400

query I rowsort
SELECT ALL 85 * - 59
----
-5015

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT 44 + COUNT( * ) col1
----
45

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT 44 + COUNT ( * ) col1
----
45

query I rowsort
SELECT ALL 79 - - 88 AS col0
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5548
SELECT + 85 + COALESCE ( + + COUNT( * ), + CASE SUM( 40 ) WHEN - - 5 - + - 99 THEN NULL ELSE - 89 * + - 66 + + 47 END ) DIV - 44 * + ( 7 ) * - ( + 44 ) * + + 79 * + + 23 * - 31 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5548
SELECT + 85 + COALESCE ( + + COUNT ( * ), + CASE SUM ( 40 ) WHEN - - 5 - + - 99 THEN NULL ELSE - 89 * + - 66 + + 47 END ) / - 44 * + ( 7 ) * - ( + 44 ) * + + 79 * + + 23 * - 31 AS col0
----
85

query I rowsort
SELECT NULLIF ( - + 37, 27 ) AS col0
----
-37

query I rowsort
SELECT - - 29 + - 51 col0
----
-22

query I rowsort
SELECT + + 17 + - - ( + 68 ) AS col1
----
85

query II rowsort
SELECT DISTINCT + 87, 27 AS col1
----
87
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5553
SELECT ALL 25 - COALESCE ( 78, - + 12, - 13, + 66 DIV COALESCE ( + 68, - - COUNT( * ) + - 14 ) ), - COUNT( ALL - 45 ) * + 78 AS col0
----
-53
-78

skipif mysql # not compatible
query II rowsort label-5553
SELECT ALL 25 - COALESCE ( 78, - + 12, - 13, + 66 / COALESCE ( + 68, - - COUNT ( * ) + - 14 ) ), - COUNT ( ALL - 45 ) * + 78 AS col0
----
-53
-78

query I rowsort
SELECT - 68 + + 53 col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL + + 30 - 11 + + + COUNT( * ) * - + 1
----
18

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL + + 30 - 11 + + + COUNT ( * ) * - + 1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT - MIN( 66 ) * + 20 * + 10 * + - 78 * + 70 + + 67
----
72072067

skipif mysql # not compatible
query I rowsort label-5556
SELECT - MIN ( 66 ) * + 20 * + 10 * + - 78 * + 70 + + 67
----
72072067

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

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL - COUNT ( * ) / 92 AS col0
----
0

query I rowsort
SELECT DISTINCT + - 64 * + 3
----
-192

query I rowsort
SELECT - - 85 * + 33 * 2
----
5610

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5562
SELECT ALL - 30 DIV + COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL - 30 / + COUNT ( * ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT - 30 * - COUNT( * ) * + - 90 + + - MAX( + 95 )
----
-2795

skipif mysql # not compatible
query I rowsort label-5563
SELECT - 30 * - COUNT ( * ) * + - 90 + + - MAX ( + 95 )
----
-2795

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

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

query I rowsort
SELECT - 93 * - 78
----
7254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5566
SELECT DISTINCT - 86 DIV - 80 + 58 AS col0, NULLIF ( - + 91, - NULLIF ( + 91, + 49 + - 58 ) DIV + - 55 + + 19 - - CAST( NULL AS SIGNED ) DIV 17 * + 78 * 96 * COUNT( * ) + + 52 + - - ( 48 ) * - 77 ) AS col1
----
59
-91

skipif mysql # not compatible
query II rowsort label-5566
SELECT DISTINCT - 86 / - 80 + 58 AS col0, NULLIF ( - + 91, - NULLIF ( + 91, + 49 + - 58 ) / + - 55 + + 19 - - CAST ( NULL AS INTEGER ) / 17 * + 78 * 96 * COUNT ( * ) + + 52 + - - ( 48 ) * - 77 ) AS col1
----
59
-91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5568
SELECT ( + + CASE - NULLIF ( - - 20, + 71 * + CAST( 3 AS SIGNED ) ) WHEN - 18 THEN + 30 * + 0 WHEN - - 37 THEN + 22 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT ( + + CASE - NULLIF ( - - 20, + 71 * + CAST ( 3 AS INTEGER ) ) WHEN - 18 THEN + 30 * + 0 WHEN - - 37 THEN + 22 ELSE NULL END )
----
NULL

query I rowsort
SELECT ( 79 ) * - 26 * - 37 * - 29 * + ( 60 ) + 50
----
-132236470

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5570
SELECT 63 col0, MAX( - 87 ) DIV 72 * - 4 AS col1
----
63
4

skipif mysql # not compatible
query II rowsort label-5570
SELECT 63 col0, MAX ( - 87 ) / 72 * - 4 AS col1
----
63
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT DISTINCT COUNT( * ) + - 10 * - - 75
----
-749

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT COUNT ( * ) + - 10 * - - 75
----
-749

onlyif mysql # aggregate syntax: 
query II rowsort label-5572
SELECT - 89 AS col1, - COUNT( DISTINCT - 27 ) + - 90
----
-89
-91

skipif mysql # not compatible
query II rowsort label-5572
SELECT - 89 AS col1, - COUNT ( DISTINCT - 27 ) + - 90
----
-89
-91

query I rowsort
SELECT ( + - 27 ) * - 50
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL 3 - 53 * + COUNT( * ) col1
----
-50

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL 3 - 53 * + COUNT ( * ) col1
----
-50

query II rowsort
SELECT 44 col2, - 46 + 94 AS col1
----
44
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5576
SELECT DISTINCT 38 / - NULLIF ( + - CASE WHEN NOT COUNT( * ) = NULL THEN - 70 * + COUNT( DISTINCT - 21 ) + - CAST( - + 57 AS SIGNED ) + + 47 END, MIN( + - 77 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT 38 / - NULLIF ( + - CASE WHEN NOT COUNT ( * ) = NULL THEN - 70 * + COUNT ( DISTINCT - 21 ) + - CAST ( - + 57 AS INTEGER ) + + 47 END, MIN ( + - 77 ) ) col1
----
NULL

query I rowsort
SELECT 84 * 13 * 17 AS col0
----
18564

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL CASE - 76 WHEN - COUNT( * ) THEN NULL WHEN 25 THEN - ( + - 19 ) ELSE NULL END * - 61 + + 5 / + 17 * + NULLIF ( + 13, + - ( - 36 ) / + - 98 * + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL CASE - 76 WHEN - COUNT ( * ) THEN NULL WHEN 25 THEN - ( + - 19 ) ELSE NULL END * - 61 + + 5 / + 17 * + NULLIF ( + 13, + - ( - 36 ) / + - 98 * + 25 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 0 + + + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 0 + + + 32 AS col2
----
NULL

query I rowsort
SELECT - 53 * - 50 AS col0
----
2650

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL + 17 * COUNT( DISTINCT 61 )
----
17

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + 17 * COUNT ( DISTINCT 61 )
----
17

query II rowsort
SELECT 38 * ( 68 ) - - 18 AS col0, 99 - - 89 AS col0
----
2602
188

query I rowsort
SELECT + 19 + + 6 + + + 75
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5584
SELECT ALL + ( - + COALESCE ( + + 36, + CASE + 84 WHEN + 81 + + CAST( NULL AS DECIMAL ) + - COUNT( * ) + + 6 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - 81 + + 44 * + 38 END + 91 * - - 99 + - + 93 - + - 90 ) ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL + ( - + COALESCE ( + + 36, + CASE + 84 WHEN + 81 + + CAST ( NULL AS REAL ) + - COUNT ( * ) + + 6 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - 81 + + 44 * + 38 END + 91 * - - 99 + - + 93 - + - 90 ) ) col1
----
-36

query II rowsort
SELECT 20 AS col0, 67
----
20
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT DISTINCT NULLIF ( - 72, + 71 * + 56 * - - CAST( + 0 AS SIGNED ) / - - 65 )
----
-72

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT NULLIF ( - 72, + 71 * + 56 * - - CAST ( + 0 AS INTEGER ) / - - 65 )
----
-72

query II rowsort
SELECT - 52 AS col0, ( - 55 ) * - 57 + - - 79 * + 28 + - 58
----
-52
5289

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT 76 - + 16 + + MAX( ALL + + 72 ) * - - NULLIF ( - COALESCE ( + - 62, + 58 ), + + COUNT( * ) + + 73 + + COALESCE ( 10, + 83 / - MIN( ALL 19 ) + CASE + - 46 WHEN + 91 THEN 70 * + 74 END + + CASE 59 WHEN - + 45 + - ( COALESCE ( - 53, - 48 * - 72 + 96 ) ) / ( 33 + 66 * - ( 24 * + 34 ) ) THEN + MIN( 79 ) WHEN - 65 + - COUNT( * ) THEN - 22 WHEN 67 + - 36 THEN NULL ELSE COUNT( ALL 64 ) END ) + + 48 * - 6 )
----
4524

skipif mysql # not compatible
query I rowsort label-5588
SELECT 76 - + 16 + + MAX ( ALL + + 72 ) * - - NULLIF ( - COALESCE ( + - 62, + 58 ), + + COUNT ( * ) + + 73 + + COALESCE ( 10, + 83 / - MIN ( ALL 19 ) + CASE + - 46 WHEN + 91 THEN 70 * + 74 END + + CASE 59 WHEN - + 45 + - ( COALESCE ( - 53, - 48 * - 72 + 96 ) ) / ( 33 + 66 * - ( 24 * + 34 ) ) THEN + MIN ( 79 ) WHEN - 65 + - COUNT ( * ) THEN - 22 WHEN 67 + - 36 THEN NULL ELSE COUNT ( ALL 64 ) END ) + + 48 * - 6 )
----
4524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5589
SELECT ALL + CAST( NULL AS SIGNED ) + - ( + CASE + 45 WHEN 54 - - - ( + 50 ) / + 44 * + 79 THEN 70 WHEN + + 15 * 56 THEN - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL + CAST ( NULL AS INTEGER ) + - ( + CASE + 45 WHEN 54 - - - ( + 50 ) / + 44 * + 79 THEN 70 WHEN + + 15 * 56 THEN - COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5590
SELECT - + 10 DIV + COUNT( * ) + + 76 + + 91
----
157

skipif mysql # not compatible
query I rowsort label-5590
SELECT - + 10 / + COUNT ( * ) + + 76 + + 91
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL + + 23 + + + 74 * + - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL + + 23 + + + 74 * + - COUNT ( * )
----
-51

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

skipif mysql # not compatible
query I rowsort label-5592
SELECT + ( SUM ( 47 ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ALL - 99 + COUNT( * ) + + 74
----
-24

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL - 99 + COUNT ( * ) + + 74
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5594
SELECT 35 * + 56 + - COUNT( * ) + 27 DIV 37 + - - 10 * - CAST( + - 93 AS SIGNED )
----
2889

skipif mysql # not compatible
query I rowsort label-5594
SELECT 35 * + 56 + - COUNT ( * ) + 27 / 37 + - - 10 * - CAST ( + - 93 AS INTEGER )
----
2889

onlyif mysql # DIV for integer division: 
query I rowsort label-5595
SELECT 76 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-5595
SELECT 76 / - 77
----
0

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

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT - 7 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT 49 * - - 31 AS col2, COUNT( - 9 ) - - + 3
----
1519
4

skipif mysql # not compatible
query II rowsort label-5597
SELECT 49 * - - 31 AS col2, COUNT ( - 9 ) - - + 3
----
1519
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5598
SELECT 56 DIV - MAX( ALL + - 36 ) * - COUNT( * ) - 54, - COUNT( * ) AS col1
----
-55
-1

skipif mysql # not compatible
query II rowsort label-5598
SELECT 56 / - MAX ( ALL + - 36 ) * - COUNT ( * ) - 54, - COUNT ( * ) AS col1
----
-55
-1

query I rowsort
SELECT DISTINCT 81 + - - 48 * + 17 AS col1
----
897

query I rowsort
SELECT DISTINCT - 43 + - - 67
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5601
SELECT DISTINCT + 88 + - + 15 DIV - 36
----
88

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT + 88 + - + 15 / - 36
----
88

query I rowsort
SELECT DISTINCT - COALESCE ( + + 73, 91, 50 )
----
-73

query I rowsort
SELECT ALL - 25 - - 31 * + + 47 + - + 52
----
1380

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5604
SELECT 65 + + 95 DIV CAST( - + 91 AS SIGNED ) + + 83
----
147

skipif mysql # not compatible
query I rowsort label-5604
SELECT 65 + + 95 / CAST ( - + 91 AS INTEGER ) + + 83
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-5605
SELECT 81 + 90, COUNT( * ) AS col1
----
171
1

skipif mysql # not compatible
query II rowsort label-5605
SELECT 81 + 90, COUNT ( * ) AS col1
----
171
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5606
SELECT + COUNT( * ) * + 47 + ( CAST( + COUNT( * ) AS SIGNED ) )
----
48

skipif mysql # not compatible
query I rowsort label-5606
SELECT + COUNT ( * ) * + 47 + ( CAST ( + COUNT ( * ) AS INTEGER ) )
----
48

query I rowsort
SELECT ALL 49 - 23 + - 27
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5608
SELECT DISTINCT - + 22 * + + 68 AS col2, + 37 - - + MAX( - 83 ) * - 8 * - 13 AS col2
----
-1496
-8595

skipif mysql # not compatible
query II rowsort label-5608
SELECT DISTINCT - + 22 * + + 68 AS col2, + 37 - - + MAX ( - 83 ) * - 8 * - 13 AS col2
----
-1496
-8595

query I rowsort
SELECT + 50 * + 63
----
3150

query II rowsort
SELECT - 59 + 33 AS col2, + 82 + + 15
----
-26
97

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

skipif mysql # not compatible
query I rowsort label-5611
SELECT - COUNT ( * ) * + 65 AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT 12 + CAST( NULL AS SIGNED ) / 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT 12 + CAST ( NULL AS INTEGER ) / 79 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5613
SELECT DISTINCT - CASE + + 53 WHEN - - 26 * - - 41 + - 56 THEN NULL WHEN + - 47 - - ( - - 34 ) * + + COUNT( * ) - 34 + 36 THEN - 19 WHEN - CAST( + COUNT( * ) AS DECIMAL ) * - - COUNT( * ) THEN + + 59 * - 97 - + - 12 + + 88 * + 99 + + 77 + - COUNT( * ) END * + - 59 / + 29 * + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT - CASE + + 53 WHEN - - 26 * - - 41 + - 56 THEN NULL WHEN + - 47 - - ( - - 34 ) * + + COUNT ( * ) - 34 + 36 THEN - 19 WHEN - CAST ( + COUNT ( * ) AS REAL ) * - - COUNT ( * ) THEN + + 59 * - 97 - + - 12 + + 88 * + 99 + + 77 + - COUNT ( * ) END * + - 59 / + 29 * + 21
----
NULL

query I rowsort
SELECT ALL 70 + - 23 - - 29 * + 3 AS col2
----
134

query I rowsort
SELECT 45 + + + 89 + + 56 * 49 AS col2
----
2878

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

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

query I rowsort
SELECT ALL - 70 * + 55 + - - 82 AS col0
----
-3768

query I rowsort
SELECT + 33 * - + ( 4 ) AS col2
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT COALESCE ( - 68, - - 86 * - 95 + + + 19 + + COUNT( * ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5619
SELECT COALESCE ( - 68, - - 86 * - 95 + + + 19 + + COUNT ( * ) ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT + - CASE - 90 WHEN - NULLIF ( + - COUNT( * ), - 59 * - 43 ) * 73 * + ( 57 ) * - 35 * - + 29 * 89 + + 57 + - 20 + - 49 + 23 THEN - + 65 WHEN - - 93 * + + 50 / - + 49 * 76 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT + - CASE - 90 WHEN - NULLIF ( + - COUNT ( * ), - 59 * - 43 ) * 73 * + ( 57 ) * - 35 * - + 29 * 89 + + 57 + - 20 + - 49 + 23 THEN - + 65 WHEN - - 93 * + + 50 / - + 49 * 76 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT + 16 + + MIN( 66 ) - + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-5621
SELECT + 16 + + MIN ( 66 ) - + COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT + MIN( ALL - - 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5622
SELECT + MIN ( ALL - - 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT COALESCE ( ( 54 ), - + 98 + 89 + - + COUNT( NULLIF ( ( NULLIF ( + 93, 6 ) ), + - 56 + 99 + + + 48 + + 71 / + 96 * - 83 ) ) )
----
54

skipif mysql # not compatible
query I rowsort label-5623
SELECT COALESCE ( ( 54 ), - + 98 + 89 + - + COUNT ( NULLIF ( ( NULLIF ( + 93, 6 ) ), + - 56 + 99 + + + 48 + + 71 / + 96 * - 83 ) ) )
----
54

query II rowsort
SELECT ALL + 20 AS col1, ( 14 ) AS col1
----
20
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT SUM( ALL 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5625
SELECT SUM ( ALL 50 ) AS col2
----
50

query I rowsort
SELECT + 4 * - 24
----
-96

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

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

query I rowsort
SELECT DISTINCT 45 * - + 6 - - 24 + + 39 * - 96 * - - 45 - + + 10
----
-168736

onlyif mysql # DIV for integer division: 
query I rowsort label-5629
SELECT - 56 DIV - 31 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5629
SELECT - 56 / - 31 AS col0
----
1

query I rowsort
SELECT ALL 62 * 1 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT MIN( DISTINCT + - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-5631
SELECT MIN ( DISTINCT + - 15 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-5632
SELECT ALL 68 * + 50 * - COUNT( * ), + 31 AS col2
----
-3400
31

skipif mysql # not compatible
query II rowsort label-5632
SELECT ALL 68 * + 50 * - COUNT ( * ), + 31 AS col2
----
-3400
31

query I rowsort
SELECT - 38 * + 76 AS col1
----
-2888

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ALL COALESCE ( + CASE - 92 WHEN - 23 + + + 7 THEN - - ( + - NULLIF ( 82, 52 ) ) + + 9 + + + 0 WHEN 79 * - 95 * - - COUNT( * ) - + 73 THEN NULL ELSE NULL END, + + 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL COALESCE ( + CASE - 92 WHEN - 23 + + + 7 THEN - - ( + - NULLIF ( 82, 52 ) ) + + 9 + + + 0 WHEN 79 * - 95 * - - COUNT ( * ) - + 73 THEN NULL ELSE NULL END, + + 6 ) AS col1
----
6

query I rowsort
SELECT ALL + ( - 76 ) * 23
----
-1748

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT - 90 DIV - 84 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5636
SELECT - 90 / - 84 AS col1
----
1

query I rowsort
SELECT + 74 * - 31 AS col2
----
-2294

onlyif mysql # aggregate syntax: 
query II rowsort label-5638
SELECT 31, 96 * + COUNT( * ) AS col1
----
31
96

skipif mysql # not compatible
query II rowsort label-5638
SELECT 31, 96 * + COUNT ( * ) AS col1
----
31
96

query I rowsort
SELECT + CASE NULLIF ( + 24, + 26 ) WHEN - 62 THEN 56 END * 70 + ( 4 ) + - 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT - + COALESCE ( + ( - + COUNT( * ) ), + + 78 + - 19 )
----
1

skipif mysql # not compatible
query I rowsort label-5640
SELECT - + COALESCE ( + ( - + COUNT ( * ) ), + + 78 + - 19 )
----
1

query I rowsort
SELECT DISTINCT - 67 + + 45 + - + COALESCE ( 75, - + 15 ) * 80
----
-6022

query I rowsort
SELECT - - 3 - 31 AS col0
----
-28

query I rowsort
SELECT + + 40 * - 66
----
-2640

query I rowsort
SELECT - + 28 * - 24
----
672

query I rowsort
SELECT DISTINCT COALESCE ( - 28, - + ( + 92 ), + + 1 ) AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5646
SELECT - + 79 * - + CAST( 82 AS SIGNED ) AS col1, + 71 * 5 + + 77
----
6478
432

skipif mysql # not compatible
query II rowsort label-5646
SELECT - + 79 * - + CAST ( 82 AS INTEGER ) AS col1, + 71 * 5 + + 77
----
6478
432

onlyif mysql # aggregate syntax: 
query II rowsort label-5647
SELECT DISTINCT COUNT( * ), - 73 + - - 48 - - ( + - 62 ) * COUNT( * ) * + - 32 AS col0
----
1
1959

skipif mysql # not compatible
query II rowsort label-5647
SELECT DISTINCT COUNT ( * ), - 73 + - - 48 - - ( + - 62 ) * COUNT ( * ) * + - 32 AS col0
----
1
1959

query II rowsort
SELECT ALL 82, 82
----
82
82

query I rowsort
SELECT - 17 + + 22 + + ( - 54 )
----
-49

query I rowsort
SELECT + 87 * 33 * + 48 * + 96 AS col1
----
13229568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5651
SELECT + CAST( + - COUNT( ALL - 3 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5651
SELECT + CAST ( + - COUNT ( ALL - 3 ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT - + 27 + + 66 * - 62
----
-4119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5653
SELECT + 68 * + - 30 DIV - COALESCE ( + 1, - - COUNT( * ), + - CASE 26 WHEN - + CASE + - 24 WHEN + 74 + + ( CASE - - 1 WHEN ( - + 77 ) * + + 24 THEN NULL ELSE - SUM( + - 75 ) END ) * - 38 + + 73 + + - 70 - + AVG ( - 71 ) * - 63 * - 6 * 5 THEN NULL WHEN - 56 THEN NULL WHEN - + COUNT( * ) - 67 THEN 80 * - 3 ELSE NULL END * NULLIF ( + 87 * 16, + 82 DIV 81 ) + 64 THEN 22 ELSE NULL END ) + - 45 col2
----
1995

skipif mysql # not compatible
query I rowsort label-5653
SELECT + 68 * + - 30 / - COALESCE ( + 1, - - COUNT ( * ), + - CASE 26 WHEN - + CASE + - 24 WHEN + 74 + + ( CASE - - 1 WHEN ( - + 77 ) * + + 24 THEN NULL ELSE - SUM ( + - 75 ) END ) * - 38 + + 73 + + - 70 - + AVG ( - 71 ) * - 63 * - 6 * 5 THEN NULL WHEN - 56 THEN NULL WHEN - + COUNT ( * ) - 67 THEN 80 * - 3 ELSE NULL END * NULLIF ( + 87 * 16, + 82 / 81 ) + 64 THEN 22 ELSE NULL END ) + - 45 col2
----
1995

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5655
SELECT CAST( - 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-5655
SELECT CAST ( - 87 AS INTEGER ) AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5656
SELECT 43 * + - 7 * - CAST( NULL AS SIGNED ) + + - NULLIF ( - MIN( ALL ( + + 89 ) ), + COUNT( * ) / - 20 ) + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT 43 * + - 7 * - CAST ( NULL AS INTEGER ) + + - NULLIF ( - MIN ( ALL ( + + 89 ) ), + COUNT ( * ) / - 20 ) + 79
----
NULL

query I rowsort
SELECT + COALESCE ( + 81, - - 63 * 88 * + + 39, - + ( + 16 ) )
----
81

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

query I rowsort
SELECT ALL 86 * - - 7
----
602

query II rowsort
SELECT ( - 53 ) AS col1, - 7
----
-53
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT + COUNT( * ) * - 51 * + - 33 AS col1
----
1683

skipif mysql # not compatible
query I rowsort label-5661
SELECT + COUNT ( * ) * - 51 * + - 33 AS col1
----
1683

query I rowsort
SELECT + 50 * + - 38 AS col1
----
-1900

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL COUNT( * ) * + MAX( ALL - - 81 ) col2
----
81

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL COUNT ( * ) * + MAX ( ALL - - 81 ) col2
----
81

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

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

query II rowsort
SELECT + 2 + - 71 + + 78 * - 94 col1, + 11 + - 34 AS col0
----
-7401
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT CASE - AVG ( - - 71 ) WHEN + + 48 / - 33 + - 6 * + - 77 * - 22 - - 66 THEN + MIN( ALL - 6 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5666
SELECT CASE - AVG ( - - 71 ) WHEN + + 48 / - 33 + - 6 * + - 77 * - 22 - - 66 THEN + MIN ( ALL - 6 ) END AS col0
----
NULL

query I rowsort
SELECT + - COALESCE ( - - 76, + - 91 ) + - 33
----
-109

query I rowsort
SELECT - - 18 * + + 94 + + 14
----
1706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5669
SELECT DISTINCT - CASE - 77 WHEN + + 17 * + 61 / - CAST( NULL AS SIGNED ) THEN NULL WHEN + + 67 / + NULLIF ( - 66, + 41 ) + + 98 - + NULLIF ( 56, - + 31 / - 35 * - 21 + + 89 - - 86 + - 55 * + 71 ) * COUNT( * ) THEN NULL WHEN + 57 THEN - + 73 + - 0 + - 66 + 12 * 79 * + NULLIF ( + + 55, - 73 * 11 ) ELSE + 74 END * + 28 + - ( - 71 )
----
-2001

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT - CASE - 77 WHEN + + 17 * + 61 / - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 67 / + NULLIF ( - 66, + 41 ) + + 98 - + NULLIF ( 56, - + 31 / - 35 * - 21 + + 89 - - 86 + - 55 * + 71 ) * COUNT ( * ) THEN NULL WHEN + 57 THEN - + 73 + - 0 + - 66 + 12 * 79 * + NULLIF ( + + 55, - 73 * 11 ) ELSE + 74 END * + 28 + - ( - 71 )
----
-2001

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT + + COUNT( * ) + - - ( 20 ) * - 71 * + 3
----
-4259

skipif mysql # not compatible
query I rowsort label-5670
SELECT + + COUNT ( * ) + - - ( 20 ) * - 71 * + 3
----
-4259

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT DISTINCT - SUM( DISTINCT 76 ) + + 86 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT - SUM ( DISTINCT 76 ) + + 86 AS col2
----
10

query I rowsort
SELECT DISTINCT + 44 + + + 29
----
73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5674
SELECT + CAST( + 55 AS SIGNED ) + + 57 * - COUNT( * ) + + 64 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5674
SELECT + CAST ( + 55 AS INTEGER ) + + 57 * - COUNT ( * ) + + 64 AS col1
----
62

query I rowsort
SELECT 44 + - 29 * 87 col2
----
-2479

query I rowsort
SELECT NULLIF ( + 2, - 54 ) * + 5 + + 38 * - 46
----
-1738

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

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

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

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) + + - 1 * 51 AS col0
----
-49

query I rowsort
SELECT DISTINCT + 17 * - 66 AS col1
----
-1122

query I rowsort
SELECT DISTINCT + 57 - 45 AS col0
----
12

query I rowsort
SELECT 66 * + 42 + + 96
----
2868

query I rowsort
SELECT ALL - ( + + 83 ) AS col2
----
-83

query I rowsort
SELECT 65 * - 34
----
-2210

query II rowsort
SELECT 21, 1 + 63 * - 62 AS col1
----
21
-3905

onlyif mysql # aggregate syntax: 
query II rowsort label-5685
SELECT ALL - COUNT( * ) AS col2, 95 * + 83 AS col0
----
-1
7885

skipif mysql # not compatible
query II rowsort label-5685
SELECT ALL - COUNT ( * ) AS col2, 95 * + 83 AS col0
----
-1
7885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5686
SELECT COALESCE ( - + COUNT( * ), ( - CAST( - 7 AS SIGNED ) ) ) DIV + + 92 DIV - - 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5686
SELECT COALESCE ( - + COUNT ( * ), ( - CAST ( - 7 AS INTEGER ) ) ) / + + 92 / - - 13 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT NULLIF ( + 73, + + 90 ) DIV - 21 + 35
----
32

skipif mysql # not compatible
query I rowsort label-5687
SELECT NULLIF ( + 73, + + 90 ) / - 21 + 35
----
32

query I rowsort
SELECT DISTINCT + 95 * + + 63
----
5985

query I rowsort
SELECT 90 * 2 AS col0
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-5690
SELECT ALL - 64 col1, 4 * + 15 + - MAX( - 45 ) + - COUNT( * ) AS col2
----
-64
104

skipif mysql # not compatible
query II rowsort label-5690
SELECT ALL - 64 col1, 4 * + 15 + - MAX ( - 45 ) + - COUNT ( * ) AS col2
----
-64
104

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

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT COUNT ( * ) + - 17 AS col0
----
-16

query I rowsort
SELECT ALL 9 + + 15 * + 2 + + 12 AS col0
----
51

query I rowsort
SELECT NULLIF ( + 54, + 71 * + 98 - 39 ) AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5694
SELECT DISTINCT + + 11 + + SUM( + + 68 ) AS col1, + SUM( ALL - CAST( NULL AS SIGNED ) ) - - - 19 - 22 * - 34 + + - 24
----
79
NULL

skipif mysql # not compatible
query II rowsort label-5694
SELECT DISTINCT + + 11 + + SUM ( + + 68 ) AS col1, + SUM ( ALL - CAST ( NULL AS INTEGER ) ) - - - 19 - 22 * - 34 + + - 24
----
79
NULL

query I rowsort
SELECT 97 * - 41 col2
----
-3977

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT ALL - 26 + + 72 * - COUNT( * ) AS col2, - 50
----
-98
-50

skipif mysql # not compatible
query II rowsort label-5696
SELECT ALL - 26 + + 72 * - COUNT ( * ) AS col2, - 50
----
-98
-50

query I rowsort
SELECT - COALESCE ( - - 63, 39 ) col2
----
-63

query II rowsort
SELECT + 49 AS col2, 71 AS col0
----
49
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5699
SELECT - CAST( + CASE - COUNT( + 78 ) WHEN - 60 THEN + ( 56 ) * - 45 WHEN 1 + 56 * + + 85 THEN 8 END AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT - CAST ( + CASE - COUNT ( + 78 ) WHEN - 60 THEN + ( 56 ) * - 45 WHEN 1 + 56 * + + 85 THEN 8 END AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( 46, - ( 47 ) ) * + 22 AS col2
----
1012

query I rowsort
SELECT 99 - + 54
----
45

query I rowsort
SELECT - 78 * + 17 AS col2
----
-1326

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

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

query I rowsort
SELECT DISTINCT - 88 * + + 45
----
-3960

query I rowsort
SELECT + 44 * + 43 * + + 11 AS col0
----
20812

onlyif mysql # DIV for integer division: 
query I rowsort label-5706
SELECT DISTINCT - - 60 DIV + - 25 + + + 93 + + NULLIF ( - + ( + + 65 ), - 94 ) * - 23 AS col0
----
1586

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT - - 60 / + - 25 + + + 93 + + NULLIF ( - + ( + + 65 ), - 94 ) * - 23 AS col0
----
1586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5707
SELECT ALL - COALESCE ( - 13, + 1 * + - 58 + - ( + + 7 ) + - COUNT( * ) + - 52 * - 80 * + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - 54 + - 29, - + 69 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL - COALESCE ( - 13, + 1 * + - 58 + - ( + + 7 ) + - COUNT ( * ) + - 52 * - 80 * + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - 54 + - 29, - + 69 ) AS col1
----
13

query I rowsort
SELECT ( - 25 ) * 41 * + - 97 col1
----
99425

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

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

query I rowsort
SELECT 0 * + 64 * + 86
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT ALL 76 * - CAST( NULL AS SIGNED ) + - + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL 76 * - CAST ( NULL AS INTEGER ) + - + 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL + NULLIF ( - + 54, + CASE + + ( + 54 ) WHEN - - 16 THEN 80 + - 81 - MIN( DISTINCT 39 ) ELSE NULL END + - + 27 ) * - 91 + 67 * 17 * 74 AS col1
----
89200

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL + NULLIF ( - + 54, + CASE + + ( + 54 ) WHEN - - 16 THEN 80 + - 81 - MIN ( DISTINCT 39 ) ELSE NULL END + - + 27 ) * - 91 + 67 * 17 * 74 AS col1
----
89200

onlyif mysql # aggregate syntax: 
query II rowsort label-5713
SELECT + 94, 5 + + 30 + + ( - COUNT( * ) ) * 54 AS col0
----
94
-19

skipif mysql # not compatible
query II rowsort label-5713
SELECT + 94, 5 + + 30 + + ( - COUNT ( * ) ) * 54 AS col0
----
94
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5714
SELECT ALL + COALESCE ( + 31, - + COUNT( * ) ) * + 4 + ( + 22 ) - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL + COALESCE ( + 31, - + COUNT ( * ) ) * + 4 + ( + 22 ) - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5715
SELECT DISTINCT - ( + 41 ) * + 85 * 88 * - 41 - - MIN( ALL - CAST( NULL AS SIGNED ) ) + - 47 * + - ( + - ( + 50 ) ) * + + 97 + - 64 + + + 28 * COUNT( * ) + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT - ( + 41 ) * + 85 * 88 * - 41 - - MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - 47 * + - ( + - ( + 50 ) ) * + + 97 + - 64 + + + 28 * COUNT ( * ) + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL + 43 * + - 95 + - 30 + - COALESCE ( + COUNT( 6 ), ( 91 ) ) AS col0
----
-4116

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL + 43 * + - 95 + - 30 + - COALESCE ( + COUNT ( 6 ), ( 91 ) ) AS col0
----
-4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5717
SELECT 36 * - + COUNT( * ) - - CAST( NULL AS SIGNED ) + + CASE + COALESCE ( + - COUNT( * ), 13 + - 98 ) WHEN + - 46 THEN + + MIN( + + 40 ) ELSE + - 70 END * 38 + + 34 * MIN( - 34 ) * - - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT 36 * - + COUNT ( * ) - - CAST ( NULL AS INTEGER ) + + CASE + COALESCE ( + - COUNT ( * ), 13 + - 98 ) WHEN + - 46 THEN + + MIN ( + + 40 ) ELSE + - 70 END * 38 + + 34 * MIN ( - 34 ) * - - 64 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5718
SELECT DISTINCT - CAST( - - ( 30 ) AS SIGNED ) DIV - 75 * 6 * + SUM( - 91 ) AS col1, 26 AS col0
----
0
26

skipif mysql # not compatible
query II rowsort label-5718
SELECT DISTINCT - CAST ( - - ( 30 ) AS INTEGER ) / - 75 * 6 * + SUM ( - 91 ) AS col1, 26 AS col0
----
0
26

query I rowsort
SELECT ALL - 36 + - 58
----
-94

query II rowsort
SELECT ALL + 77 + 14 AS col0, 37
----
91
37

query I rowsort
SELECT 42 - 40 + 1 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5722
SELECT 75 * - 85 / COUNT( ALL + 58 ) * + + CAST( NULL AS SIGNED ) - + ( 82 ), 16 AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-5722
SELECT 75 * - 85 / COUNT ( ALL + 58 ) * + + CAST ( NULL AS INTEGER ) - + ( 82 ), 16 AS col1
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ALL 9 - - - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL 9 - - - COUNT ( * )
----
8

query I rowsort
SELECT - 79 * - - 65 AS col0
----
-5135

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

query II rowsort
SELECT DISTINCT - 42 AS col0, - 27
----
-42
-27

query I rowsort
SELECT ALL + NULLIF ( - 66, + 93 ) * 56 * + 3
----
-11088

query I rowsort
SELECT + + 65 + + 24 AS col1
----
89

query I rowsort
SELECT + - 90 + ( - 24 )
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT + 42 + COALESCE ( + + 29, - + 92, - COUNT( * ) * MIN( - + 31 ) - + - 71 * + - COUNT( * ) - - 42 * - 28 + 16 ) * - 90
----
-2568

skipif mysql # not compatible
query I rowsort label-5730
SELECT + 42 + COALESCE ( + + 29, - + 92, - COUNT ( * ) * MIN ( - + 31 ) - + - 71 * + - COUNT ( * ) - - 42 * - 28 + 16 ) * - 90
----
-2568

query II rowsort
SELECT ALL 57 AS col1, 7
----
57
7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5733
SELECT + CAST( - 4 AS SIGNED ) + + 40 + - 79 * + SUM( - - 25 ) * - + NULLIF ( + 12, - 7 ) col2
----
23736

skipif mysql # not compatible
query I rowsort label-5733
SELECT + CAST ( - 4 AS INTEGER ) + + 40 + - 79 * + SUM ( - - 25 ) * - + NULLIF ( + 12, - 7 ) col2
----
23736

query I rowsort
SELECT + 52 * - + 4
----
-208

query I rowsort
SELECT + 58 + 34
----
92

query I rowsort
SELECT + 34 + + 93 + 94 AS col2
----
221

query I rowsort
SELECT DISTINCT 98 * - 10 * - 21 AS col1
----
20580

query I rowsort
SELECT DISTINCT 10 + 4
----
14

query I rowsort
SELECT DISTINCT 69 + + 40 * + 16 AS col0
----
709

query I rowsort
SELECT ALL 28 * + 55 AS col0
----
1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5741
SELECT + 39 DIV 50 AS col0, COUNT( * ) * + 23
----
0
23

skipif mysql # not compatible
query II rowsort label-5741
SELECT + 39 / 50 AS col0, COUNT ( * ) * + 23
----
0
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5742
SELECT ALL - CAST( NULL AS DECIMAL ) + ( + + 31 ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL - CAST ( NULL AS REAL ) + ( + + 31 ) + 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5743
SELECT + COUNT( * ) DIV + COUNT( * ) AS col1, - 51 + - 52 col0
----
1
-103

skipif mysql # not compatible
query II rowsort label-5743
SELECT + COUNT ( * ) / + COUNT ( * ) AS col1, - 51 + - 52 col0
----
1
-103

query II rowsort
SELECT ( - + 71 ) AS col1, + 24 AS col2
----
-71
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT - MIN( 70 ) * - 74 AS col2
----
5180

skipif mysql # not compatible
query I rowsort label-5745
SELECT - MIN ( 70 ) * - 74 AS col2
----
5180

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT DISTINCT + 99 * + - ( - + 99 ) + COUNT( * )
----
9802

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT + 99 * + - ( - + 99 ) + COUNT ( * )
----
9802

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ALL + 15 * + - 39 + + 23 + COUNT( * )
----
-561

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL + 15 * + - 39 + + 23 + COUNT ( * )
----
-561

query I rowsort
SELECT 41 * - 98 * + 34 + + 44 + 72 * 44
----
-133400

query I rowsort
SELECT DISTINCT - 59 * 84 AS col0
----
-4956

query I rowsort
SELECT - 97 + + 62 * + 95 * + + 36 AS col1
----
211943

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT - + ( - 47 ) DIV ( - 67 ) DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-5751
SELECT - + ( - 47 ) / ( - 67 ) / - 83
----
0

query I rowsort
SELECT - 81 * - 2 * + 84 + - 85 / - - 96 + - - 7 + CASE - + 78 WHEN 79 THEN - 95 + - + 72 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 41 * + 37 + + 96 + 30 * - 62 * - NULLIF ( + 11, + 15 * + - 55 ) * + 24 AS col0
----
489619

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT - 31 * COUNT( ALL ( + 22 ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-5754
SELECT - 31 * COUNT ( ALL ( + 22 ) ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT DISTINCT + 80 * + MIN( + 1 ) - - 14 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT + 80 * + MIN ( + 1 ) - - 14 AS col1
----
94

query II rowsort
SELECT + 53 * - 27, ( + + 76 ) AS col2
----
-1431
76

query I rowsort
SELECT + 34 * + 61 * + 3
----
6222

onlyif mysql # aggregate syntax: 
query II rowsort label-5758
SELECT - 46 - + 0 * + ( - + 14 ), COUNT( * ) AS col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-5758
SELECT - 46 - + 0 * + ( - + 14 ), COUNT ( * ) AS col2
----
-46
1

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

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

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

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

query I rowsort
SELECT DISTINCT - 26 * + 80 AS col2
----
-2080

query I rowsort
SELECT + 98 * + - 40 AS col0
----
-3920

query I rowsort
SELECT ALL 10 + - - 97 AS col1
----
107

query I rowsort
SELECT - ( - - 30 ) + 62 col0
----
32

query II rowsort
SELECT 37 AS col0, 55
----
37
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT - MIN( 45 ) + + 8 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5766
SELECT - MIN ( 45 ) + + 8 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5767
SELECT + 68 - ( + CASE 17 WHEN 20 / - 36 THEN - CAST( NULL AS SIGNED ) + COUNT( * ) ELSE + 78 END )
----
-10

skipif mysql # not compatible
query I rowsort label-5767
SELECT + 68 - ( + CASE 17 WHEN 20 / - 36 THEN - CAST ( NULL AS INTEGER ) + COUNT ( * ) ELSE + 78 END )
----
-10

query I rowsort
SELECT - 38 + + 26
----
-12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5770
SELECT - CAST( ( + NULLIF ( - + 59, 37 - - ( CAST( - 45 AS SIGNED ) ) / - + ( + NULLIF ( ( - COUNT( * ) ), - 63 / - 22 + 42 ) ) - 27 ) ) AS SIGNED ), 4 AS col2
----
59
4

skipif mysql # not compatible
query II rowsort label-5770
SELECT - CAST ( ( + NULLIF ( - + 59, 37 - - ( CAST ( - 45 AS INTEGER ) ) / - + ( + NULLIF ( ( - COUNT ( * ) ), - 63 / - 22 + 42 ) ) - 27 ) ) AS INTEGER ), 4 AS col2
----
59
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT DISTINCT + COUNT( * ) + - + 19
----
-18

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT + COUNT ( * ) + - + 19
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5772
SELECT DISTINCT + 77 / CASE - + 25 WHEN COUNT( * ) * - 58 * - + 0 + 26 + SUM( DISTINCT - 67 ) + 6 * - 35 * 79 * + 67 + 72 * - - AVG ( - + 84 ) THEN - + COUNT( * ) WHEN - + 24 THEN NULL END - - 23 + + 86 / + 75 / + CASE + 68 WHEN 99 THEN - 56 WHEN + - COUNT( * ) + 12 + + 54 + CAST( NULL AS SIGNED ) + - - 13 * + 7 * - 26 THEN + + CASE CAST( NULL AS SIGNED ) WHEN 8 - - COUNT( * ) THEN 4 WHEN 64 THEN - 58 + - 30 ELSE + ( + 19 ) / + 62 + - 55 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT + 77 / CASE - + 25 WHEN COUNT ( * ) * - 58 * - + 0 + 26 + SUM ( DISTINCT - 67 ) + 6 * - 35 * 79 * + 67 + 72 * - - AVG ( - + 84 ) THEN - + COUNT ( * ) WHEN - + 24 THEN NULL END - - 23 + + 86 / + 75 / + CASE + 68 WHEN 99 THEN - 56 WHEN + - COUNT ( * ) + 12 + + 54 + CAST ( NULL AS INTEGER ) + - - 13 * + 7 * - 26 THEN + + CASE CAST ( NULL AS INTEGER ) WHEN 8 - - COUNT ( * ) THEN 4 WHEN 64 THEN - 58 + - 30 ELSE + ( + 19 ) / + 62 + - 55 END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5773
SELECT DISTINCT 42 DIV 67 - - COUNT( ALL - 66 )
----
1

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT 42 / 67 - - COUNT ( ALL - 66 )
----
1

query I rowsort
SELECT + 2 * - - 92 AS col1
----
184

query I rowsort
SELECT + 16 * + 16 AS col1
----
256

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

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

query I rowsort
SELECT + 38 * + + 61 AS col0
----
2318

query I rowsort
SELECT 74 * + - 73 - - 36
----
-5366

query I rowsort
SELECT - ( 70 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT - CASE - COUNT( * ) WHEN + + 59 THEN 28 + + 35 ELSE NULL END * + ( COUNT( * ) ) + + 97 - + COUNT( * ) - 9 + - 10 * 99 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT - CASE - COUNT ( * ) WHEN + + 59 THEN 28 + + 35 ELSE NULL END * + ( COUNT ( * ) ) + + 97 - + COUNT ( * ) - 9 + - 10 * 99 col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5781
SELECT - MAX ( ALL - 67 )
----
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT DISTINCT - NULLIF ( COUNT( * ), 16 ) * - + ( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT - NULLIF ( COUNT ( * ), 16 ) * - + ( 51 )
----
51

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

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

query I rowsort
SELECT 57 * - - 38 + - 37 - + - 96 AS col2
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL - ( + - COUNT( * ) ) * 14 + ( 92 ) + + 5 * - - 52 AS col0
----
366

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL - ( + - COUNT ( * ) ) * 14 + ( 92 ) + + 5 * - - 52 AS col0
----
366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT CASE - CAST( NULL AS SIGNED ) WHEN + ( COALESCE ( - 8, - - 44, - 9 ) ) * - - 90 - + 27 THEN 60 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN + ( COALESCE ( - 8, - - 44, - 9 ) ) * - - 90 - + 27 THEN 60 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5788
SELECT DISTINCT - 60 + 58 * ( 25 ) * - 52 - - COUNT( 99 ) + - 27 + - - 88 DIV + 94 + NULLIF ( 91, 87 ) + 37 * + 99 + + 52 + - ( - CAST( + 30 AS SIGNED ) ) + - SUM( ALL - 36 )
----
-71614

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT - 60 + 58 * ( 25 ) * - 52 - - COUNT ( 99 ) + - 27 + - - 88 / + 94 + NULLIF ( 91, 87 ) + 37 * + 99 + + 52 + - ( - CAST ( + 30 AS INTEGER ) ) + - SUM ( ALL - 36 )
----
-71614

query I rowsort
SELECT DISTINCT 56 + + + 25 AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5790
SELECT ALL - 21 + 93 DIV + 2
----
25

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - 21 + 93 / + 2
----
25

query I rowsort
SELECT 94 + 18 + - 57
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5792
SELECT DISTINCT + 76 DIV + + 73 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT + 76 / + + 73 AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT + 67 + - MIN( ALL + - 1 )
----
68

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + 67 + - MIN ( ALL + - 1 )
----
68

query I rowsort
SELECT 38 + - + 30 + + 62 AS col1
----
70

query II rowsort
SELECT NULLIF ( + 27, + 1 * - 69 + 18 * + 64 ) + - 74 AS col0, 57
----
-47
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT DISTINCT - COUNT( * ) - + 54 * 45 col1
----
-2431

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT - COUNT ( * ) - + 54 * 45 col1
----
-2431

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT COUNT( * ) + 85 * - 84
----
-7139

skipif mysql # not compatible
query I rowsort label-5798
SELECT COUNT ( * ) + 85 * - 84
----
-7139

query I rowsort
SELECT 28 * 56 AS col1
----
1568

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5800
SELECT - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) + - ( 29 ) + - + 56, 82 col2
----
NULL
82

skipif mysql # not compatible
query II rowsort label-5800
SELECT - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) + - ( 29 ) + - + 56, 82 col2
----
NULL
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT - MIN( ALL 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-5801
SELECT - MIN ( ALL 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT - 6 * COUNT( DISTINCT - 45 )
----
-6

skipif mysql # not compatible
query I rowsort label-5802
SELECT - 6 * COUNT ( DISTINCT - 45 )
----
-6

query I rowsort
SELECT ALL 76 * + 4 AS col2
----
304

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT - 45 + + 92 + + SUM( ALL + 69 )
----
116

skipif mysql # not compatible
query I rowsort label-5804
SELECT - 45 + + 92 + + SUM ( ALL + 69 )
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-5805
SELECT DISTINCT + 96 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT + 96 / + 49
----
1

query I rowsort
SELECT - 30 * + 79 + 38 + 25 * - - 8 + - 84
----
-2216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5807
SELECT - SUM( ALL - 53 ) - - 86 + - 63 * 77 DIV + 75
----
75

skipif mysql # not compatible
query I rowsort label-5807
SELECT - SUM ( ALL - 53 ) - - 86 + - 63 * 77 / + 75
----
75

query I rowsort
SELECT - 72 * - + 27 * - - 85 AS col1
----
165240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT ALL - 47 + + ( - 95 ) * + CAST( NULL AS SIGNED ) * + 97 * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - 47 + + ( - 95 ) * + CAST ( NULL AS INTEGER ) * + 97 * - 91
----
NULL

query I rowsort
SELECT DISTINCT 60 + - 23
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT + 76 * - 8 + COUNT( * )
----
-607

skipif mysql # not compatible
query I rowsort label-5811
SELECT + 76 * - 8 + COUNT ( * )
----
-607

query I rowsort
SELECT ( + 11 ) + - - 27 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5813
SELECT ALL - ( - + 35 ) AS col1, + 45 * + ( CASE - COUNT( ALL - 50 ) WHEN - + CAST( + - 82 AS SIGNED ) THEN + COALESCE ( 75, + COUNT( * ), 39 ) WHEN - 57 - 52 THEN NULL END )
----
35
NULL

skipif mysql # not compatible
query II rowsort label-5813
SELECT ALL - ( - + 35 ) AS col1, + 45 * + ( CASE - COUNT ( ALL - 50 ) WHEN - + CAST ( + - 82 AS INTEGER ) THEN + COALESCE ( 75, + COUNT ( * ), 39 ) WHEN - 57 - 52 THEN NULL END )
----
35
NULL

query I rowsort
SELECT 11 * + - 52 + + - 31 * 69 * - + 66 + ( + 0 ) col0
----
140602

query I rowsort
SELECT ALL 5 + + + 81
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL 45 + - + ( - MAX( DISTINCT + - 15 ) ) - + - 7 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL 45 + - + ( - MAX ( DISTINCT + - 15 ) ) - + - 7 AS col1
----
37

query I rowsort
SELECT - 88 * + 90
----
-7920

onlyif mysql # aggregate syntax: 
query II rowsort label-5818
SELECT ALL + - 46 * - 37 AS col0, + 98 + - COUNT( * ) - + ( - + 40 ) AS col0
----
1702
137

skipif mysql # not compatible
query II rowsort label-5818
SELECT ALL + - 46 * - 37 AS col0, + 98 + - COUNT ( * ) - + ( - + 40 ) AS col0
----
1702
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL 5 + - + MAX( + + 98 ) + - + NULLIF ( - MIN( DISTINCT 77 ), - COUNT( * ) + + ( + + 77 ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL 5 + - + MAX ( + + 98 ) + - + NULLIF ( - MIN ( DISTINCT 77 ), - COUNT ( * ) + + ( + + 77 ) ) AS col2
----
-16

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

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL COUNT ( ALL 17 ) * - ( - 1 ) AS col0
----
1

query I rowsort
SELECT 19 * - + 33 AS col2
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL COUNT( DISTINCT - 85 ) * - 90 * 35 + 96 AS col0
----
-3054

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL COUNT ( DISTINCT - 85 ) * - 90 * 35 + 96 AS col0
----
-3054

query I rowsort
SELECT ALL 75 + - 80 AS col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT CAST( NULL AS SIGNED ) * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT CAST ( NULL AS INTEGER ) * - 27
----
NULL

query I rowsort
SELECT 28 - - 97
----
125

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5827
SELECT ALL 43 col1, MIN( + ( + + 46 ) ) + 98 AS col2
----
43
144

skipif mysql # not compatible
query II rowsort label-5827
SELECT ALL 43 col1, MIN ( + ( + + 46 ) ) + 98 AS col2
----
43
144

query I rowsort
SELECT DISTINCT + 0 * 23
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5829
SELECT ALL + COALESCE ( - 38, + 69 * 71 DIV - - 0 ) DIV - + ( - + COALESCE ( + - 86, - COUNT( * ) ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL + COALESCE ( - 38, + 69 * 71 / - - 0 ) / - + ( - + COALESCE ( + - 86, - COUNT ( * ) ) ) col2
----
0

query I rowsort
SELECT + 73 + - 25 * + 2 * + 58 AS col2
----
-2827

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT - 79 DIV + - ( 88 )
----
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT - 79 / + - ( 88 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT - 90 * - - 34 / - CASE WHEN NULL IS NULL THEN NULL WHEN NULL NOT IN ( + 49, + COUNT( * ) / - - MIN( 1 ) * 12 * + 66, + 91 / - + 7, 37, - 21 + + 9 ) THEN + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT - 90 * - - 34 / - CASE WHEN NULL IS NULL THEN NULL WHEN NULL NOT IN ( + 49, + COUNT ( * ) / - - MIN ( 1 ) * 12 * + 66, + 91 / - + 7, 37, - 21 + + 9 ) THEN + 36 END
----
NULL

query I rowsort
SELECT - 31 - 28 AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5834
SELECT - 21 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-5834
SELECT - 21 / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL + SUM( - - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL + SUM ( - - 88 ) AS col1
----
88

query I rowsort
SELECT - 34 + + + 84 AS col2
----
50

query I rowsort
SELECT ALL + 67 * 99
----
6633

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT - - COUNT( - + 7 ) * 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5838
SELECT - - COUNT ( - + 7 ) * 90 AS col2
----
90

query I rowsort
SELECT - COALESCE ( + ( - - 93 ), + - 60 * + 4 ) * + COALESCE ( 4, - - 63 ) + - 1
----
-373

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5841
SELECT ALL - CAST( NULL AS SIGNED ) * + 38 + + 35 AS col2, 83
----
NULL
83

skipif mysql # not compatible
query II rowsort label-5841
SELECT ALL - CAST ( NULL AS INTEGER ) * + 38 + + 35 AS col2, 83
----
NULL
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5842
SELECT ALL - 8 * ( + COUNT( * ) ) + CAST( - ( - + ( + + 22 ) ) AS SIGNED ) col1
----
14

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL - 8 * ( + COUNT ( * ) ) + CAST ( - ( - + ( + + 22 ) ) AS INTEGER ) col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5843
SELECT - COUNT( * ) + + 96 DIV - - 49 + - 34 * - 28 AS col1
----
952

skipif mysql # not compatible
query I rowsort label-5843
SELECT - COUNT ( * ) + + 96 / - - 49 + - 34 * - 28 AS col1
----
952

query II rowsort
SELECT DISTINCT + 55, + ( 54 ) AS col2
----
55
54

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5846
SELECT - 23 + - + CAST( - COUNT( 31 ) AS SIGNED ) - + 69 DIV 42 + 59 + + - 18, 72 AS col0
----
18
72

skipif mysql # not compatible
query II rowsort label-5846
SELECT - 23 + - + CAST ( - COUNT ( 31 ) AS INTEGER ) - + 69 / 42 + 59 + + - 18, 72 AS col0
----
18
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5847
SELECT + - CAST( NULLIF ( - - 35, + - 80 * - - COUNT( * ) + + 75 ) AS DECIMAL ) + CAST( NULL AS SIGNED ) * 36 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT + - CAST ( NULLIF ( - - 35, + - 80 * - - COUNT ( * ) + + 75 ) AS REAL ) + CAST ( NULL AS INTEGER ) * 36 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + - SUM( DISTINCT + ( 5 ) ) * - 61 - + 69 + - 27 + 1 AS col1
----
210

skipif mysql # not compatible
query I rowsort label-5848
SELECT + - SUM ( DISTINCT + ( 5 ) ) * - 61 - + 69 + - 27 + 1 AS col1
----
210

onlyif mysql # aggregate syntax: 
query II rowsort label-5849
SELECT 54 * - 72 + 13 * + COUNT( * ) + - 14, 12 AS col1
----
-3889
12

skipif mysql # not compatible
query II rowsort label-5849
SELECT 54 * - 72 + 13 * + COUNT ( * ) + - 14, 12 AS col1
----
-3889
12

query I rowsort
SELECT + + ( 68 ) + 39 AS col1
----
107

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5851
SELECT ALL - 64 * - + ( - 81 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL - 64 * - + ( - 81 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5852
SELECT DISTINCT - COUNT( 53 ) * + + NULLIF ( 21, - 13 ) AS col0, 56 * + + 96
----
-21
5376

skipif mysql # not compatible
query II rowsort label-5852
SELECT DISTINCT - COUNT ( 53 ) * + + NULLIF ( 21, - 13 ) AS col0, 56 * + + 96
----
-21
5376

query I rowsort
SELECT ALL + 14 * + 42 + + 64 * 21 AS col0
----
1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5854
SELECT DISTINCT + 78 * + - CAST( NULL AS SIGNED ) + - - 30 + + - 37 * + - 77 * 26 - 89 * + + 27 + - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT + 78 * + - CAST ( NULL AS INTEGER ) + - - 30 + + - 37 * + - 77 * 26 - 89 * + + 27 + - 28 AS col1
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5858
SELECT ALL + 54 AS col1, CASE - 93 WHEN + ( + 77 ) * + - 77 * COUNT( ALL - 65 ) + + ( + - CAST( NULL AS SIGNED ) ) + + 58 THEN + 13 + - 33 ELSE + 50 + 9 END AS col1
----
54
59

skipif mysql # not compatible
query II rowsort label-5858
SELECT ALL + 54 AS col1, CASE - 93 WHEN + ( + 77 ) * + - 77 * COUNT ( ALL - 65 ) + + ( + - CAST ( NULL AS INTEGER ) ) + + 58 THEN + 13 + - 33 ELSE + 50 + 9 END AS col1
----
54
59

query II rowsort
SELECT ALL + 58 col1, - 6 * - ( - 85 ) + - 21 - - - 2
----
58
-533

query I rowsort
SELECT + 45 + 73 + 95 + + 27 - + 64
----
176

query I rowsort
SELECT + 63 * 13
----
819

query II rowsort
SELECT ALL 76 AS col1, + 7
----
76
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + 9 + + 15 * + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5863
SELECT + 9 + + 15 * + COUNT ( * ) AS col2
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT ALL + 32 * + - MIN( DISTINCT - 89 )
----
2848

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL + 32 * + - MIN ( DISTINCT - 89 )
----
2848

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT + COUNT( ALL + 8 ) + 46 + - 83
----
-36

skipif mysql # not compatible
query I rowsort label-5866
SELECT + COUNT ( ALL + 8 ) + 46 + - 83
----
-36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT - NULLIF ( - 83, - AVG ( DISTINCT + - CAST( - - 58 AS SIGNED ) ) + + 65 * - 55 )
----
83

skipif mysql # not compatible
query I rowsort label-5868
SELECT - NULLIF ( - 83, - AVG ( DISTINCT + - CAST ( - - 58 AS INTEGER ) ) + + 65 * - 55 )
----
83

query I rowsort
SELECT + 79 + - + 76
----
3

query II rowsort
SELECT ALL 44 col0, 25 * - 75 col1
----
44
-1875

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT - NULLIF ( - CASE - - 80 WHEN 94 * + SUM( ALL 30 ) * - 25 * - 31 + - 6 + - 3 THEN - - SUM( DISTINCT - 24 ) END, 43 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT - NULLIF ( - CASE - - 80 WHEN 94 * + SUM ( ALL 30 ) * - 25 * - 31 + - 6 + - 3 THEN - - SUM ( DISTINCT - 24 ) END, 43 ) AS col1
----
NULL

query I rowsort
SELECT - ( + 68 ) + - 37 col0
----
-105

query I rowsort
SELECT + 67 * - - 72 * 36 AS col1
----
173664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5874
SELECT - COUNT( * ) + + 27 + COALESCE ( - 90, - COUNT( * ), CAST( NULL AS SIGNED ), + 47 * - + 72 * + NULLIF ( + - 8, 94 ) * + NULLIF ( - + 98, + - 94 ) ) + SUM( 40 ) + + - 21 + - + COUNT( * ) * 88 DIV - - 88 * COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-5874
SELECT - COUNT ( * ) + + 27 + COALESCE ( - 90, - COUNT ( * ), CAST ( NULL AS INTEGER ), + 47 * - + 72 * + NULLIF ( + - 8, 94 ) * + NULLIF ( - + 98, + - 94 ) ) + SUM ( 40 ) + + - 21 + - + COUNT ( * ) * 88 / - - 88 * COUNT ( * ) AS col2
----
-46

query II rowsort
SELECT ALL - 97 + - - 12 col1, 95 - + - 61
----
-85
156

onlyif mysql # aggregate syntax: 
query II rowsort label-5876
SELECT - MAX( - - 24 ) AS col1, + 22 * - COUNT( * ) + - + 58 + 75 - 51
----
-24
-56

skipif mysql # not compatible
query II rowsort label-5876
SELECT - MAX ( - - 24 ) AS col1, + 22 * - COUNT ( * ) + - + 58 + 75 - 51
----
-24
-56

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

skipif mysql # not compatible
query II rowsort label-5877
SELECT ALL 69 col2, COUNT ( * )
----
69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT + COUNT( + 55 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT + COUNT ( + 55 ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5879
SELECT ALL + 47 + - CAST( 38 AS SIGNED ) * + 2
----
-29

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL + 47 + - CAST ( 38 AS INTEGER ) * + 2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT + 94 DIV - ( - 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5880
SELECT + 94 / - ( - 71 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5881
SELECT + COALESCE ( + 56, - - 65 * CAST( - - 88 AS SIGNED ) * 66 * + + 38 + - ( - 85 ) + + - CASE + - NULLIF ( COUNT( * ), + - 29 * - 65 - 5 + + ( 89 ) + + + 98 ) WHEN - 88 THEN NULL WHEN COALESCE ( - + CAST( - 10 AS SIGNED ), 29, + + 39, + COUNT( - 60 ) ) THEN NULL ELSE CAST( NULL AS SIGNED ) END, 50 * 86 ) * - COALESCE ( 61, - COUNT( * ) + - 13 - COUNT( DISTINCT + 35 ), - - 71, + 32 * ( - MAX( DISTINCT 40 ) ) ) AS col0
----
-3416

skipif mysql # not compatible
query I rowsort label-5881
SELECT + COALESCE ( + 56, - - 65 * CAST ( - - 88 AS INTEGER ) * 66 * + + 38 + - ( - 85 ) + + - CASE + - NULLIF ( COUNT ( * ), + - 29 * - 65 - 5 + + ( 89 ) + + + 98 ) WHEN - 88 THEN NULL WHEN COALESCE ( - + CAST ( - 10 AS INTEGER ), 29, + + 39, + COUNT ( - 60 ) ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END, 50 * 86 ) * - COALESCE ( 61, - COUNT ( * ) + - 13 - COUNT ( DISTINCT + 35 ), - - 71, + 32 * ( - MAX ( DISTINCT 40 ) ) ) AS col0
----
-3416

query I rowsort
SELECT DISTINCT + 22 * + 27 AS col1
----
594

query II rowsort
SELECT ALL + NULLIF ( + + 82, - ( 13 ) ) AS col0, 87 AS col1
----
82
87

query I rowsort
SELECT - + 84 + + - 8 AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT 25 / 97 - + 41 + + 42 + CAST( NULL AS SIGNED ) / - + AVG ( + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT 25 / 97 - + 41 + + 42 + CAST ( NULL AS INTEGER ) / - + AVG ( + 7 )
----
NULL

query I rowsort
SELECT ALL - 20 * 16 col2
----
-320

query I rowsort
SELECT DISTINCT + 62 * - 46 AS col1
----
-2852

query I rowsort
SELECT ALL + + NULLIF ( + + 3, + ( + - NULLIF ( 86, - 80 ) ) + - 74 ) AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5889
SELECT ALL + - 40, ( NULLIF ( - COUNT( * ), + + 3 ) ) DIV + + 66 col1
----
-40
0

skipif mysql # not compatible
query II rowsort label-5889
SELECT ALL + - 40, ( NULLIF ( - COUNT ( * ), + + 3 ) ) / + + 66 col1
----
-40
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT DISTINCT - 24 DIV + 11 - + + 36 + ( - - 12 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT - 24 / + 11 - + + 36 + ( - - 12 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query III rowsort label-5891
SELECT + + 31, + 39 AS col0, + 42 * - COUNT( * ) AS col0
----
31
39
-42

skipif mysql # not compatible
query III rowsort label-5891
SELECT + + 31, + 39 AS col0, + 42 * - COUNT ( * ) AS col0
----
31
39
-42

query I rowsort
SELECT DISTINCT + COALESCE ( - 55, + 50 ) col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ( ( - SUM( ALL - 83 ) ) ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5893
SELECT ( ( - SUM ( ALL - 83 ) ) ) AS col1
----
83

query I rowsort
SELECT - 52 * + + 37 + COALESCE ( + NULLIF ( - 52, - 25 + 76 ), - - ( + 31 ) + + + 27 ) AS col0
----
-1976

onlyif mysql # aggregate syntax: 
query II rowsort label-5895
SELECT ALL + ( + MAX( ALL 18 ) ) AS col0, + 84
----
18
84

skipif mysql # not compatible
query II rowsort label-5895
SELECT ALL + ( + MAX ( ALL 18 ) ) AS col0, + 84
----
18
84

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

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

query II rowsort
SELECT ( + 93 ) AS col1, - 37
----
93
-37

query I rowsort
SELECT DISTINCT 45 * + 71 col1
----
3195

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT - COUNT( * ) * 94 * - 41 AS col1
----
3854

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT - COUNT ( * ) * 94 * - 41 AS col1
----
3854

onlyif mysql # aggregate syntax: 
query II rowsort label-5900
SELECT ALL + ( + 69 ) AS col1, MIN( ALL + 66 ) col2
----
69
66

skipif mysql # not compatible
query II rowsort label-5900
SELECT ALL + ( + 69 ) AS col1, MIN ( ALL + 66 ) col2
----
69
66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT 64 * CAST( NULL AS SIGNED ) * + 94 + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT 64 * CAST ( NULL AS INTEGER ) * + 94 + - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT MIN( 41 ) * + 49 * + ( 43 )
----
86387

skipif mysql # not compatible
query I rowsort label-5903
SELECT MIN ( 41 ) * + 49 * + ( 43 )
----
86387

onlyif mysql # DIV for integer division: 
query I rowsort label-5904
SELECT NULLIF ( + 60, - - 67 ) - + - 78 + - 19 DIV - - 84 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-5904
SELECT NULLIF ( + 60, - - 67 ) - + - 78 + - 19 / - - 84 AS col0
----
138

query I rowsort
SELECT ALL + 1 + - 26 + + 0 * - + 95 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5906
SELECT MAX( CAST( NULL AS DECIMAL ) ) - - - SUM( DISTINCT - + 12 ) + + 14, + 89 AS col1
----
NULL
89

skipif mysql # not compatible
query II rowsort label-5906
SELECT MAX ( CAST ( NULL AS REAL ) ) - - - SUM ( DISTINCT - + 12 ) + + 14, + 89 AS col1
----
NULL
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL 31 * - NULLIF ( + COUNT( * ), - 61 / 79 )
----
-31

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL 31 * - NULLIF ( + COUNT ( * ), - 61 / 79 )
----
-31

query I rowsort
SELECT DISTINCT COALESCE ( 15, + + 66 ) + + 84
----
99

query I rowsort
SELECT ALL 2 + + + 43 + 85 * - + 31 AS col0
----
-2590

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT DISTINCT - COUNT( * ) + 62 + - - 99 AS col1
----
160

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT - COUNT ( * ) + 62 + - - 99 AS col1
----
160

query I rowsort
SELECT 95 * + + 99
----
9405

query I rowsort
SELECT DISTINCT - 68 + 39 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT - + CASE + 98 WHEN - 74 THEN + COUNT( * ) * 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT - + CASE + 98 WHEN - 74 THEN + COUNT ( * ) * 92 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5914
SELECT COUNT( + 31 ) AS col0, - 92 - ( + + 62 ) * 50 * ( - + 85 ) AS col2
----
1
263408

skipif mysql # not compatible
query II rowsort label-5914
SELECT COUNT ( + 31 ) AS col0, - 92 - ( + + 62 ) * 50 * ( - + 85 ) AS col2
----
1
263408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5915
SELECT ALL + MAX( 66 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL + MAX ( 66 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL - 35 + + 13, 5 * - 29 col1
----
-22
-145

query I rowsort
SELECT 44 * - NULLIF ( + + 39, - - 4 )
----
-1716

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

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT + ( - 96 ) + - - 85 col0
----
-11

query I rowsort
SELECT + 8 + - 11 * 62
----
-674

onlyif mysql # DIV for integer division: 
query I rowsort label-5921
SELECT 15 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-5921
SELECT 15 / 82
----
0

query I rowsort
SELECT ALL + - 72 * - - 79 + 32 AS col0
----
-5656

onlyif mysql # aggregate syntax: 
query II rowsort label-5923
SELECT + COUNT( * ) + + 90 col1, + 35
----
91
35

skipif mysql # not compatible
query II rowsort label-5923
SELECT + COUNT ( * ) + + 90 col1, + 35
----
91
35

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

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

query I rowsort
SELECT ALL + 91 * 60 * - 50 col2
----
-273000

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

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT - SUM ( - 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5927
SELECT ALL - 83 AS col2, 66 * + CAST( NULL AS SIGNED ) / - + 57 + - 41 + + - 60
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-5927
SELECT ALL - 83 AS col2, 66 * + CAST ( NULL AS INTEGER ) / - + 57 + - 41 + + - 60
----
-83
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5928
SELECT 18 + - + 99 / + COUNT( * ) * 39 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT 18 + - + 99 / + COUNT ( * ) * 39 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT CASE WHEN NOT - 51 <= NULL THEN NULL ELSE - 61 END * 55 - ( 57 ) + 93
----
-3319

query II rowsort
SELECT 16 AS col0, + 32
----
16
32

query I rowsort
SELECT 73 + + 0 AS col1
----
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5932
SELECT ALL - 96 + - - CASE - 92 WHEN + 89 THEN NULL WHEN + - CAST( - + 95 AS DECIMAL ) THEN - 48 * - ( 28 ) + 45 DIV 57 WHEN + NULLIF ( + 67, - - 54 DIV - + 98 + - 95 ) THEN + 83 WHEN - - COALESCE ( + - 27, + + 52 * + + 87 * + - 32, 92 DIV ( - ( + 61 ) ) * - + ( - - ( - - 57 ) ) ) THEN NULL ELSE + CAST( - 90 AS SIGNED ) * - - 48 END + 26 AS col0
----
-4390

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL - 96 + - - CASE - 92 WHEN + 89 THEN NULL WHEN + - CAST ( - + 95 AS REAL ) THEN - 48 * - ( 28 ) + 45 / 57 WHEN + NULLIF ( + 67, - - 54 / - + 98 + - 95 ) THEN + 83 WHEN - - COALESCE ( + - 27, + + 52 * + + 87 * + - 32, 92 / ( - ( + 61 ) ) * - + ( - - ( - - 57 ) ) ) THEN NULL ELSE + CAST ( - 90 AS INTEGER ) * - - 48 END + 26 AS col0
----
-4390

query I rowsort
SELECT 43 + - 60 col2
----
-17

query I rowsort
SELECT DISTINCT - 87 * - 20 AS col0
----
1740

query I rowsort
SELECT DISTINCT - ( + 64 ) + - NULLIF ( - ( + 65 ), - + 46 + + 82 )
----
1

query I rowsort
SELECT ALL 90 + - 65 AS col0
----
25

query I rowsort
SELECT 63 + 79
----
142

query I rowsort
SELECT 72 + - - 71 * 44 + 39
----
3235

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5940
SELECT 89 * - + CAST( + 86 AS SIGNED )
----
-7654

skipif mysql # not compatible
query I rowsort label-5940
SELECT 89 * - + CAST ( + 86 AS INTEGER )
----
-7654

query I rowsort
SELECT + 36 + - 46 - + 68 + - 11 col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5942
SELECT + MIN( - 40 ) * + 21 * - - 88 + - + CAST( NULL AS SIGNED ) - + 40 + - + AVG ( - CAST( NULL AS DECIMAL ) ) * - 61, ( + 16 ) AS col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-5942
SELECT + MIN ( - 40 ) * + 21 * - - 88 + - + CAST ( NULL AS INTEGER ) - + 40 + - + AVG ( - CAST ( NULL AS REAL ) ) * - 61, ( + 16 ) AS col0
----
NULL
16

query I rowsort
SELECT 79 + 58 AS col0
----
137

query I rowsort
SELECT ALL - 39 + + - 41
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5945
SELECT + ( - CASE + ( + 29 ) WHEN 68 THEN + - CAST( - - 4 AS SIGNED ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5945
SELECT + ( - CASE + ( + 29 ) WHEN 68 THEN + - CAST ( - - 4 AS INTEGER ) END ) AS col1
----
NULL

query II rowsort
SELECT - - 10 AS col1, + 97 col2
----
10
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT + 64 + ( - 17 ) - - 46 + + NULLIF ( 77, 23 / 79 / - COUNT( * ) - + 20 + + 87 ) AS col1
----
170

skipif mysql # not compatible
query I rowsort label-5947
SELECT + 64 + ( - 17 ) - - 46 + + NULLIF ( 77, 23 / 79 / - COUNT ( * ) - + 20 + + 87 ) AS col1
----
170

query I rowsort
SELECT ALL + 64 - + - 28 - 74
----
18

query I rowsort
SELECT - 3 * - + 4 - + - 56 * - 17 AS col2
----
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-5950
SELECT ALL 42 DIV 84 * - 88 * - - 84
----
0

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL 42 / 84 * - 88 * - - 84
----
0

query I rowsort
SELECT 89 + 14 AS col1
----
103

query I rowsort
SELECT ALL + - 33 - - 18
----
-15

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5954
SELECT + CASE - COUNT( * ) WHEN - COUNT( * ) + + CAST( + 9 AS SIGNED ) * - CASE + 25 WHEN - COUNT( ALL - 70 ) + - + COALESCE ( 1, - 5 ) + + - 28 + + CASE - 33 WHEN + 83 * + 61 + - 51 * - 54 THEN + - CAST( - 7 AS DECIMAL ) WHEN - COUNT( * ) * - 8 THEN NULL END / ( + 56 ) THEN NULL WHEN - 99 / COUNT( * ) THEN NULL WHEN - - 41 THEN 54 / + + 68 + + - COALESCE ( ( SUM( DISTINCT 40 ) ), - 62, - ( - 6 ) + - 80 + - 34 * COUNT( * ) ) END * + 64 - - 15 * 50 THEN 63 * - 27 + 88 ELSE 72 * 15 END * + COUNT( * )
----
1080

skipif mysql # not compatible
query I rowsort label-5954
SELECT + CASE - COUNT ( * ) WHEN - COUNT ( * ) + + CAST ( + 9 AS INTEGER ) * - CASE + 25 WHEN - COUNT ( ALL - 70 ) + - + COALESCE ( 1, - 5 ) + + - 28 + + CASE - 33 WHEN + 83 * + 61 + - 51 * - 54 THEN + - CAST ( - 7 AS REAL ) WHEN - COUNT ( * ) * - 8 THEN NULL END / ( + 56 ) THEN NULL WHEN - 99 / COUNT ( * ) THEN NULL WHEN - - 41 THEN 54 / + + 68 + + - COALESCE ( ( SUM ( DISTINCT 40 ) ), - 62, - ( - 6 ) + - 80 + - 34 * COUNT ( * ) ) END * + 64 - - 15 * 50 THEN 63 * - 27 + 88 ELSE 72 * 15 END * + COUNT ( * )
----
1080

query I rowsort
SELECT - - ( - 8 )
----
-8

query I rowsort
SELECT + 96 - + - 43
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT DISTINCT COUNT( * ) * + ( 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT COUNT ( * ) * + ( 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT ALL + 62 * MIN( 2 )
----
124

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL + 62 * MIN ( 2 )
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5959
SELECT - NULLIF ( ( + 34 ), - 88 + - 93 ) DIV + - 53 + - COALESCE ( + - COUNT( * ), - + COUNT( * ) + + ( + 59 ), - + 26 ) + + + 8 * + 64 AS col1
----
513

skipif mysql # not compatible
query I rowsort label-5959
SELECT - NULLIF ( ( + 34 ), - 88 + - 93 ) / + - 53 + - COALESCE ( + - COUNT ( * ), - + COUNT ( * ) + + ( + 59 ), - + 26 ) + + + 8 * + 64 AS col1
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT NULLIF ( + MAX( + 76 ), + + 74 )
----
76

skipif mysql # not compatible
query I rowsort label-5960
SELECT NULLIF ( + MAX ( + 76 ), + + 74 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5961
SELECT ALL - - CASE 67 WHEN - 61 + COUNT( * ) THEN NULL WHEN + 45 THEN NULL ELSE 54 * + COALESCE ( - COALESCE ( 99, + 53 * + 0 ), 82 + - 31 * - 86, + MIN( 52 ) * + + CAST( + + COUNT( * ) AS SIGNED ) * - 38 + - 61 ) END
----
-5346

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL - - CASE 67 WHEN - 61 + COUNT ( * ) THEN NULL WHEN + 45 THEN NULL ELSE 54 * + COALESCE ( - COALESCE ( 99, + 53 * + 0 ), 82 + - 31 * - 86, + MIN ( 52 ) * + + CAST ( + + COUNT ( * ) AS INTEGER ) * - 38 + - 61 ) END
----
-5346

query I rowsort
SELECT NULLIF ( - - 22, + 35 ) * - 99
----
-2178

onlyif mysql # DIV for integer division: 
query I rowsort label-5963
SELECT 91 DIV - 34 + ( + - 89 ) + + 31 + - 84 * 0 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5963
SELECT 91 / - 34 + ( + - 89 ) + + 31 + - 84 * 0 AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT - MAX( ALL - + 84 ) DIV NULLIF ( - COALESCE ( - - 74, - - 76 ), - 3 * + 39 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5964
SELECT - MAX ( ALL - + 84 ) / NULLIF ( - COALESCE ( - - 74, - - 76 ), - 3 * + 39 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT ALL + 30 * + COUNT( * ) + 64 + - - 22 col0, 41
----
116
41

skipif mysql # not compatible
query II rowsort label-5965
SELECT ALL + 30 * + COUNT ( * ) + 64 + - - 22 col0, 41
----
116
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5966
SELECT + 74 * + COALESCE ( - + ( - CAST( - 93 AS SIGNED ) ), - 50 + COUNT( * ) )
----
-6882

skipif mysql # not compatible
query I rowsort label-5966
SELECT + 74 * + COALESCE ( - + ( - CAST ( - 93 AS INTEGER ) ), - 50 + COUNT ( * ) )
----
-6882

query I rowsort
SELECT ALL + 14 * + - 65 + 62
----
-848

query I rowsort
SELECT + NULLIF ( 64, + 42 )
----
64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5970
SELECT - ( NULLIF ( 32, - - 11 DIV 19 * - COALESCE ( 82, + MAX( - 29 ) ) * - ( - - MAX( - 32 ) ) * + 6 * + COUNT( * ) DIV + 26 + + 12 ) ) DIV - 67 * + + 64 DIV + - 51
----
0

skipif mysql # not compatible
query I rowsort label-5970
SELECT - ( NULLIF ( 32, - - 11 / 19 * - COALESCE ( 82, + MAX ( - 29 ) ) * - ( - - MAX ( - 32 ) ) * + 6 * + COUNT ( * ) / + 26 + + 12 ) ) / - 67 * + + 64 / + - 51
----
0

query I rowsort
SELECT + NULLIF ( - 36, - + 1 ) AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT ALL - 37 * - 74 + + 51 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL - 37 * - 74 + + 51 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5973
SELECT ALL + ( + ( + + SUM( DISTINCT + - 33 ) ) ) AS col1, 53 AS col1
----
-33
53

skipif mysql # not compatible
query II rowsort label-5973
SELECT ALL + ( + ( + + SUM ( DISTINCT + - 33 ) ) ) AS col1, 53 AS col1
----
-33
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5974
SELECT - ( - ( - - 86 ) ) DIV - - 38 AS col0, COUNT( * ) * - + 83 col2
----
2
-83

skipif mysql # not compatible
query II rowsort label-5974
SELECT - ( - ( - - 86 ) ) / - - 38 AS col0, COUNT ( * ) * - + 83 col2
----
2
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5975
SELECT DISTINCT 61 * + NULLIF ( - SUM( DISTINCT - ( 42 ) ), - 99 * ( - CASE + 93 WHEN + 83 / 61 THEN + - ( ( - CAST( NULL AS DECIMAL ) ) ) END ) / - 53 ) AS col0
----
2562

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT 61 * + NULLIF ( - SUM ( DISTINCT - ( 42 ) ), - 99 * ( - CASE + 93 WHEN + 83 / 61 THEN + - ( ( - CAST ( NULL AS REAL ) ) ) END ) / - 53 ) AS col0
----
2562

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT ALL + SUM( - 48 ) + 98 + - 88 * 92 AS col1
----
-8046

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL + SUM ( - 48 ) + 98 + - 88 * 92 AS col1
----
-8046

query II rowsort
SELECT + 61 + + 74 AS col2, 4 + + - 19 + 79 + - 92
----
135
-28

query I rowsort
SELECT - + 73 * + - ( 69 )
----
5037

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT - SUM( ALL - + ( + 82 ) ) * COUNT( 2 ) - MAX( DISTINCT - 87 ) AS col1
----
169

skipif mysql # not compatible
query I rowsort label-5979
SELECT - SUM ( ALL - + ( + 82 ) ) * COUNT ( 2 ) - MAX ( DISTINCT - 87 ) AS col1
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5980
SELECT COALESCE ( + 89, 63 DIV 40 * - 5, + + 78 + + 44 - COUNT( * ) * + - SUM( - + 34 ) * - 4 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5980
SELECT COALESCE ( + 89, 63 / 40 * - 5, + + 78 + + 44 - COUNT ( * ) * + - SUM ( - + 34 ) * - 4 ) AS col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5981
SELECT - 87 - 38 DIV - - 31
----
-88

skipif mysql # not compatible
query I rowsort label-5981
SELECT - 87 - 38 / - - 31
----
-88

query I rowsort
SELECT ALL + + 98 * - + 88
----
-8624

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT - 14 + SUM( ALL + 43 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5983
SELECT - 14 + SUM ( ALL + 43 ) AS col2
----
29

query I rowsort
SELECT DISTINCT + - ( - 70 ) * + 24 AS col1
----
1680

query I rowsort
SELECT - - 52 + + - 40
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT ALL + 41 * + ( - 35 ) + - 43 AS col1, MAX( - ( + + 94 ) ) AS col0
----
-1478
-94

skipif mysql # not compatible
query II rowsort label-5986
SELECT ALL + 41 * + ( - 35 ) + - 43 AS col1, MAX ( - ( + + 94 ) ) AS col0
----
-1478
-94

query I rowsort
SELECT - + CASE COALESCE ( + 61, + 37 ) WHEN 24 * - - 60 THEN NULL WHEN - 9 THEN 88 * - 9 ELSE NULL END + NULLIF ( - 8, 29 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5988
SELECT - 3 DIV + - 55 * + 65 * 84 DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-5988
SELECT - 3 / + - 55 * + 65 * 84 / 20
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5990
SELECT DISTINCT COALESCE ( + ( + ( + MAX( ALL - - 71 ) ) ), 67 * CAST( NULL AS SIGNED ) * SUM( ALL 87 ) ), - 72 AS col0
----
71
-72

skipif mysql # not compatible
query II rowsort label-5990
SELECT DISTINCT COALESCE ( + ( + ( + MAX ( ALL - - 71 ) ) ), 67 * CAST ( NULL AS INTEGER ) * SUM ( ALL 87 ) ), - 72 AS col0
----
71
-72

query I rowsort
SELECT + + 20 * - - 63
----
1260

query I rowsort
SELECT DISTINCT 22 * + - 9 AS col2
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5993
SELECT DISTINCT - 86 DIV - MIN( + - 34 )
----
-2

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT - 86 / - MIN ( + - 34 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5994
SELECT ALL + COUNT( * ) DIV COUNT( * ) + + 63
----
64

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL + COUNT ( * ) / COUNT ( * ) + + 63
----
64

query I rowsort
SELECT + NULLIF ( + 65, 0 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5996
SELECT ALL + ( - - 9 ) DIV ( 67 ) DIV - 3 + 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL + ( - - 9 ) / ( 67 ) / - 3 + 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT - 75 + - - CASE + 31 WHEN - ( + 95 ) * - 56 + - + 52 - + - 68 * 60 * 83 + NULLIF ( 84, 44 * - 25 ) THEN - MIN( 68 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT - 75 + - - CASE + 31 WHEN - ( + 95 ) * - 56 + - + 52 - + - 68 * 60 * 83 + NULLIF ( 84, 44 * - 25 ) THEN - MIN ( 68 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT - COUNT( * ) * + 12 + + 99 * + - 67 + - 64 col2
----
-6709

skipif mysql # not compatible
query I rowsort label-5998
SELECT - COUNT ( * ) * + 12 + + 99 * + - 67 + - 64 col2
----
-6709

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT + NULLIF ( COUNT( * ), - - MAX( DISTINCT 44 ) - - 6 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5999
SELECT + NULLIF ( COUNT ( * ), - - MAX ( DISTINCT 44 ) - - 6 ) col2
----
1

query I rowsort
SELECT ( 93 ) col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT 96 * - 41 + COUNT( * ) + 46 * + - 56 * - 95 col0
----
240785

skipif mysql # not compatible
query I rowsort label-6001
SELECT 96 * - 41 + COUNT ( * ) + 46 * + - 56 * - 95 col0
----
240785

query I rowsort
SELECT ALL 51 * + + 15 + + 38
----
803

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT + 64 DIV - - 76 + - + 39
----
-39

skipif mysql # not compatible
query I rowsort label-6003
SELECT + 64 / - - 76 + - + 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT + 97 + - COUNT( * ) * 10 + + 28 + + 23 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-6004
SELECT + 97 + - COUNT ( * ) * 10 + + 28 + + 23 AS col1
----
138

query I rowsort
SELECT + 76 * + - 0 * - 88 + + 16 + - 33 * - 20
----
676

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT - COUNT( * ) * - COUNT( * ) + - ( 74 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-6006
SELECT - COUNT ( * ) * - COUNT ( * ) + - ( 74 ) AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT + CAST( - 54 AS SIGNED ) - - - 61
----
-115

skipif mysql # not compatible
query I rowsort label-6007
SELECT + CAST ( - 54 AS INTEGER ) - - - 61
----
-115

query II rowsort
SELECT ALL + 17 AS col1, + 31
----
17
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT + 61 + - + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6009
SELECT + 61 + - + COUNT ( * ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT + 19 * + COUNT( + 35 ) + - 51 col0
----
-32

skipif mysql # not compatible
query I rowsort label-6010
SELECT + 19 * + COUNT ( + 35 ) + - 51 col0
----
-32

query I rowsort
SELECT - 43 + 57
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL 38 * - 31 - + 13 - + SUM( ALL + 90 )
----
-1281

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL 38 * - 31 - + 13 - + SUM ( ALL + 90 )
----
-1281

onlyif mysql # DIV for integer division: 
query I rowsort label-6013
SELECT DISTINCT - ( - 7 ) * 42 + 38 + + 26 - - 1 DIV + 46
----
358

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT - ( - 7 ) * 42 + 38 + + 26 - - 1 / + 46
----
358

query I rowsort
SELECT ALL + 6 * - 49 * + 61 - + - 92
----
-17842

query I rowsort
SELECT ALL 41 * + 8 - + 33
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT DISTINCT + MIN( DISTINCT + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT + MIN ( DISTINCT + 33 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6017
SELECT ALL 77 * 86 * 87 * + - COUNT( * ) * + 7 * + 89 AS col0, 29 * - 56
----
-358919022
-1624

skipif mysql # not compatible
query II rowsort label-6017
SELECT ALL 77 * 86 * 87 * + - COUNT ( * ) * + 7 * + 89 AS col0, 29 * - 56
----
-358919022
-1624

query I rowsort
SELECT ALL - COALESCE ( - - 94, - + 33 ) AS col2
----
-94

query I rowsort
SELECT + 60 + + + 77 AS col2
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-6020
SELECT - + MIN( ALL ( + 35 ) ) AS col2, 35
----
-35
35

skipif mysql # not compatible
query II rowsort label-6020
SELECT - + MIN ( ALL ( + 35 ) ) AS col2, 35
----
-35
35

query I rowsort
SELECT - 48 + + - 75
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT - 62 + + CAST( NULL AS SIGNED ) * + + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT - 62 + + CAST ( NULL AS INTEGER ) * + + 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT DISTINCT + SUM( ALL - - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT + SUM ( ALL - - 22 )
----
22

query I rowsort
SELECT ALL + - 53 * + 68 + - + 45 - 20 + - 31 * + 97 AS col1
----
-6676

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT - + 24 + - + COUNT( * ) + - 38 * - 93 * + 71 * - - 3
----
752717

skipif mysql # not compatible
query I rowsort label-6025
SELECT - + 24 + - + COUNT ( * ) + - 38 * - 93 * + 71 * - - 3
----
752717

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT + COUNT( * ) * 16 col2
----
16

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT + COUNT ( * ) * 16 col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6027
SELECT 67 DIV 44 + - 61 DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-6027
SELECT 67 / 44 + - 61 / + 49
----
0

query I rowsort
SELECT ALL - - 61 + - 58
----
3

query I rowsort
SELECT 21 - 98 AS col1
----
-77

query I rowsort
SELECT 63 + - + 56 - 10 AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6031
SELECT 26 AS col2, + 85 + 44 + 3 * COUNT( DISTINCT - 54 ) DIV - 76 - 33 + - 72 + + 75 AS col2
----
26
99

skipif mysql # not compatible
query II rowsort label-6031
SELECT 26 AS col2, + 85 + 44 + 3 * COUNT ( DISTINCT - 54 ) / - 76 - 33 + - 72 + + 75 AS col2
----
26
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6032
SELECT 32 AS col1, + CASE + 92 WHEN - COUNT( + + 88 ) * - 18 THEN - - 2 ELSE NULL END * ( 79 ) AS col2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-6032
SELECT 32 AS col1, + CASE + 92 WHEN - COUNT ( + + 88 ) * - 18 THEN - - 2 ELSE NULL END * ( 79 ) AS col2
----
32
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6034
SELECT ALL 15 DIV + 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL 15 / + 43 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6035
SELECT 53 DIV COUNT( - 55 )
----
53

skipif mysql # not compatible
query I rowsort label-6035
SELECT 53 / COUNT ( - 55 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6036
SELECT DISTINCT 33 DIV MAX( DISTINCT 36 ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT 33 / MAX ( DISTINCT 36 ) * COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6037
SELECT DISTINCT - MIN( ALL - + 91 ) DIV CAST( - 44 AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT - MIN ( ALL - + 91 ) / CAST ( - 44 AS INTEGER ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL 9 + SUM( 31 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL 9 + SUM ( 31 ) AS col0
----
40

query I rowsort
SELECT ALL 67 * 4 AS col0
----
268

onlyif mysql # aggregate syntax: 
query II rowsort label-6040
SELECT 56, - 89 * SUM( ALL + - ( - 99 ) ) AS col1
----
56
-8811

skipif mysql # not compatible
query II rowsort label-6040
SELECT 56, - 89 * SUM ( ALL + - ( - 99 ) ) AS col1
----
56
-8811

onlyif mysql # DIV for integer division: 
query II rowsort label-6041
SELECT ALL - 38 DIV + 50 * - ( 83 ), + 94 AS col1
----
0
94

skipif mysql # not compatible
query II rowsort label-6041
SELECT ALL - 38 / + 50 * - ( 83 ), + 94 AS col1
----
0
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6042
SELECT + 39 col1, - 57 + - SUM( + 52 )
----
39
-109

skipif mysql # not compatible
query II rowsort label-6042
SELECT + 39 col1, - 57 + - SUM ( + 52 )
----
39
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6043
SELECT ( - COALESCE ( + 4, - 47, COUNT( * ) + + - 23 DIV - + 54 * - 77 + - 85 + - - ( ( + 20 ) ) DIV - 19, - + ( + + 86 ) ) ) * 76
----
-304

skipif mysql # not compatible
query I rowsort label-6043
SELECT ( - COALESCE ( + 4, - 47, COUNT ( * ) + + - 23 / - + 54 * - 77 + - 85 + - - ( ( + 20 ) ) / - 19, - + ( + + 86 ) ) ) * 76
----
-304

query I rowsort
SELECT ALL 73 - - + 86 * - 66
----
-5603

query II rowsort
SELECT + 48 AS col1, 38 AS col2
----
48
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6046
SELECT + 50 AS col2, CAST( NULL AS SIGNED ) + 17 + 0 * - - CAST( NULL AS SIGNED )
----
50
NULL

skipif mysql # not compatible
query II rowsort label-6046
SELECT + 50 AS col2, CAST ( NULL AS INTEGER ) + 17 + 0 * - - CAST ( NULL AS INTEGER )
----
50
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6047
SELECT DISTINCT - 39 AS col0, 62 DIV 90 col0
----
-39
0

skipif mysql # not compatible
query II rowsort label-6047
SELECT DISTINCT - 39 AS col0, 62 / 90 col0
----
-39
0

query I rowsort
SELECT ALL 25 * + ( + - 10 ) * + 35 + 41 + 76 * - 43 AS col2
----
-11977

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT 78 * - COUNT( * ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-6049
SELECT 78 * - COUNT ( * ) col0
----
-78

query I rowsort
SELECT ALL - 66 * + 78 * + - 52
----
267696

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

skipif mysql # not compatible
query I rowsort label-6051
SELECT - SUM ( DISTINCT - 54 )
----
54

query I rowsort
SELECT ALL + 65 - 43 AS col2
----
22

query I rowsort
SELECT DISTINCT - 7 * - 3 AS col1
----
21

query I rowsort
SELECT ALL ( - 5 ) - + 94 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT - COUNT( ALL 42 ) * 44 * + + 38 AS col2
----
-1672

skipif mysql # not compatible
query I rowsort label-6055
SELECT - COUNT ( ALL 42 ) * 44 * + + 38 AS col2
----
-1672

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

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT - SUM ( DISTINCT 61 )
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6057
SELECT DISTINCT - 69 DIV - + 65
----
1

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT - 69 / - + 65
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT + 58 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6058
SELECT + 58 / - 91 AS col0
----
0

query I rowsort
SELECT DISTINCT 7 * + 82
----
574

query I rowsort
SELECT ALL + 75 * 37 AS col2
----
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT 13 - - - MIN( ALL - 65 ) * + + 74 AS col0
----
4823

skipif mysql # not compatible
query I rowsort label-6061
SELECT 13 - - - MIN ( ALL - 65 ) * + + 74 AS col0
----
4823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6062
SELECT ALL + 0 + - CAST( - 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL + 0 + - CAST ( - 9 AS INTEGER )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT + COUNT( 56 ) + - 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-6063
SELECT + COUNT ( 56 ) + - 36 AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6064
SELECT ALL - 2 AS col1, + CAST( + 92 AS SIGNED )
----
-2
92

skipif mysql # not compatible
query II rowsort label-6064
SELECT ALL - 2 AS col1, + CAST ( + 92 AS INTEGER )
----
-2
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6065
SELECT ALL 75, + 81 + - MIN( DISTINCT - 59 ) DIV + - COUNT( * ) col1
----
75
22

skipif mysql # not compatible
query II rowsort label-6065
SELECT ALL 75, + 81 + - MIN ( DISTINCT - 59 ) / + - COUNT ( * ) col1
----
75
22

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

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

query II rowsort
SELECT ALL - 92 AS col2, + 85 + + 33 * + 29
----
-92
1042

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT - MAX( DISTINCT - 11 ) + - - COUNT( 15 )
----
12

skipif mysql # not compatible
query I rowsort label-6068
SELECT - MAX ( DISTINCT - 11 ) + - - COUNT ( 15 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT - - MAX( + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6069
SELECT - - MAX ( + 6 ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6070
SELECT NULLIF ( + 22, - 2 * + 25 - - CASE - + 79 WHEN 60 + 12 * - - 97 THEN 80 WHEN - 0 DIV + - SUM( DISTINCT 72 ) + - 79 * - + 55 THEN - COALESCE ( + 86, 81 ) * - 33 ELSE + CAST( NULL AS DECIMAL ) END - + 23 + 32 * - 0 * - - 44 DIV 44 ) + - + 39 + + 3 + + 43 DIV 25 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6070
SELECT NULLIF ( + 22, - 2 * + 25 - - CASE - + 79 WHEN 60 + 12 * - - 97 THEN 80 WHEN - 0 / + - SUM ( DISTINCT 72 ) + - 79 * - + 55 THEN - COALESCE ( + 86, 81 ) * - 33 ELSE + CAST ( NULL AS REAL ) END - + 23 + 32 * - 0 * - - 44 / 44 ) + - + 39 + + 3 + + 43 / 25 AS col2
----
-13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT ALL + 14 + + NULLIF ( 51, 33 + 83 + - + 9 ) * + 59 + - + COALESCE ( COUNT( * ), 55 )
----
3022

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL + 14 + + NULLIF ( 51, 33 + 83 + - + 9 ) * + 59 + - + COALESCE ( COUNT ( * ), 55 )
----
3022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6073
SELECT DISTINCT - 51 + + 6 DIV COALESCE ( + 3, + COUNT( * ) + + + COUNT( * ) )
----
-49

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT - 51 + + 6 / COALESCE ( + 3, + COUNT ( * ) + + + COUNT ( * ) )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-6074
SELECT 56 + - - 75 AS col1, COUNT( * ) + + - 53 AS col2
----
131
-52

skipif mysql # not compatible
query II rowsort label-6074
SELECT 56 + - - 75 AS col1, COUNT ( * ) + + - 53 AS col2
----
131
-52

query II rowsort
SELECT ALL - 42 * + 62 AS col1, + 29 AS col2
----
-2604
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6076
SELECT DISTINCT - COALESCE ( - 35, - 59 + + CASE 99 WHEN + 76 - + - COUNT( * ) THEN + 94 END * + CAST( 79 AS SIGNED ), - 62 * + + 43 ) col1, - 18 * - 19
----
35
342

skipif mysql # not compatible
query II rowsort label-6076
SELECT DISTINCT - COALESCE ( - 35, - 59 + + CASE 99 WHEN + 76 - + - COUNT ( * ) THEN + 94 END * + CAST ( 79 AS INTEGER ), - 62 * + + 43 ) col1, - 18 * - 19
----
35
342

query I rowsort
SELECT 53 + + + 83
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6078
SELECT ALL 87 * + + ( + + 93 ) - + + 43 - COUNT( * ) * + 88 * - - 5, ( 42 ) + - 2 DIV 24 AS col0
----
7608
42

skipif mysql # not compatible
query II rowsort label-6078
SELECT ALL 87 * + + ( + + 93 ) - + + 43 - COUNT ( * ) * + 88 * - - 5, ( 42 ) + - 2 / 24 AS col0
----
7608
42

query I rowsort
SELECT + 68 * 24 * + + 90 + + 60
----
146940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6080
SELECT 70 * + COUNT( ALL 52 ) + + - 45 + 89 * + 98 * 57 * - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT 70 * + COUNT ( ALL 52 ) + + - 45 + 89 * + 98 * 57 * - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT 88 + + MIN( DISTINCT 94 ) AS col0
----
182

skipif mysql # not compatible
query I rowsort label-6081
SELECT 88 + + MIN ( DISTINCT 94 ) AS col0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT 79 + + + COUNT( * ) + + + ( + + 90 ) + 25 * + + 54 * - 32 AS col1
----
-43030

skipif mysql # not compatible
query I rowsort label-6082
SELECT 79 + + + COUNT ( * ) + + + ( + + 90 ) + 25 * + + 54 * - 32 AS col1
----
-43030

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT 10 DIV - 25 * + 64 + - 91 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-6083
SELECT 10 / - 25 * + 64 + - 91 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6084
SELECT - MIN( DISTINCT + 69 ) * - 20 + COUNT( * ) + - + COUNT( * ) AS col1, ( - + 72 ) * + - 12 * 38 + + - 2 + - 82 * 56 + + + 81 AS col2
----
1380
28319

skipif mysql # not compatible
query II rowsort label-6084
SELECT - MIN ( DISTINCT + 69 ) * - 20 + COUNT ( * ) + - + COUNT ( * ) AS col1, ( - + 72 ) * + - 12 * 38 + + - 2 + - 82 * 56 + + + 81 AS col2
----
1380
28319

query I rowsort
SELECT - 82 * - 96 + - - 50 AS col1
----
7922

onlyif mysql # aggregate syntax: 
query III rowsort label-6086
SELECT + COUNT( - + 72 ) AS col0, 88 + + - ( 14 ), 14 col0
----
1
74
14

skipif mysql # not compatible
query III rowsort label-6086
SELECT + COUNT ( - + 72 ) AS col0, 88 + + - ( 14 ), 14 col0
----
1
74
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT ( + ( + 2 ) ) + COUNT( * ) * - + 37 + 79 + - 43 col0
----
1

skipif mysql # not compatible
query I rowsort label-6087
SELECT ( + ( + 2 ) ) + COUNT ( * ) * - + 37 + 79 + - 43 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT 79 * - 15 * + COUNT( * ) + + 78 + ( - 96 ) AS col0
----
-1203

skipif mysql # not compatible
query I rowsort label-6088
SELECT 79 * - 15 * + COUNT ( * ) + + 78 + ( - 96 ) AS col0
----
-1203

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT DISTINCT 95 + 72 * + COUNT( * ) + - 93 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT 95 + 72 * + COUNT ( * ) + - 93 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT ALL - 4 + + COUNT( * ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL - 4 + + COUNT ( * ) col0
----
-3

query I rowsort
SELECT ALL - - 39 col0
----
39

query I rowsort
SELECT ALL - - 19 + + + 11 + + 9 + + 99 + + 76
----
214

onlyif mysql # aggregate syntax: 
query II rowsort label-6093
SELECT 27 + - COUNT( * ), 40 + + 62 - - 33 AS col1
----
26
135

skipif mysql # not compatible
query II rowsort label-6093
SELECT 27 + - COUNT ( * ), 40 + + 62 - - 33 AS col1
----
26
135

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT DISTINCT + MIN( ALL + - ( - 92 ) ), 95 col2
----
92
95

skipif mysql # not compatible
query II rowsort label-6094
SELECT DISTINCT + MIN ( ALL + - ( - 92 ) ), 95 col2
----
92
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL 66 + - 87 + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL 66 + - 87 + COUNT ( * )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT + 10 DIV - + 61 col2
----
0

skipif mysql # not compatible
query I rowsort label-6096
SELECT + 10 / - + 61 col2
----
0

query I rowsort
SELECT ALL 80 + - + ( + 3 )
----
77

query I rowsort
SELECT - + 47 + + 48 + - 37 + + ( - 40 ) * + 18
----
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6099
SELECT DISTINCT 11 + + COALESCE ( 9, - ( + CAST( NULL AS SIGNED ) ) ) * + 17 + + - 91 - 8 * 29 * - - 80 + 12 + - COUNT( * )
----
-18476

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT 11 + + COALESCE ( 9, - ( + CAST ( NULL AS INTEGER ) ) ) * + 17 + + - 91 - 8 * 29 * - - 80 + 12 + - COUNT ( * )
----
-18476

query I rowsort
SELECT + 28 * - 61
----
-1708

query I rowsort
SELECT ALL 39 * + 96 AS col1
----
3744

onlyif mysql # DIV for integer division: 
query I rowsort label-6102
SELECT ALL 98 + + 43 DIV - + ( - 25 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL 98 + + 43 / - + ( - 25 ) AS col1
----
99

query I rowsort
SELECT DISTINCT 57 * + 99 AS col0
----
5643

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

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

query I rowsort
SELECT ALL ( - 25 ) * + 60 * - 42 + + COALESCE ( + - 90, - + 38, - 32 - - + 98 ) AS col0
----
62910

query I rowsort
SELECT ALL 62 - 7
----
55

query II rowsort
SELECT 95, NULLIF ( - + 79, + 99 * + + 61 + - 46 ) + 94 + + - 73 AS col1
----
95
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6108
SELECT + COUNT( * ) - + COALESCE ( + 90, + 8 * + 33 * - ( 94 ) + + 30 ) + - 29 * - + 56 * - 81 - 5 + + 3 DIV + 11 AS col0
----
-131638

skipif mysql # not compatible
query I rowsort label-6108
SELECT + COUNT ( * ) - + COALESCE ( + 90, + 8 * + 33 * - ( 94 ) + + 30 ) + - 29 * - + 56 * - 81 - 5 + + 3 / + 11 AS col0
----
-131638

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT - CASE - - 34 WHEN CASE 28 WHEN + + COUNT( * ) THEN NULL WHEN + 29 * - 88 THEN NULL ELSE 95 + - + 70 + + 42 * 39 END THEN - 44 * 94 WHEN - ( + + 66 ) / - 18 - 62 + + 29 - + 41 THEN NULL WHEN + - SUM( ALL + + 76 ) - - 78 + - 23 THEN + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6109
SELECT - CASE - - 34 WHEN CASE 28 WHEN + + COUNT ( * ) THEN NULL WHEN + 29 * - 88 THEN NULL ELSE 95 + - + 70 + + 42 * 39 END THEN - 44 * 94 WHEN - ( + + 66 ) / - 18 - 62 + + 29 - + 41 THEN NULL WHEN + - SUM ( ALL + + 76 ) - - 78 + - 23 THEN + 90 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT - CAST( - + 63 AS SIGNED ) + - ( 51 ) * 21
----
-1008

skipif mysql # not compatible
query I rowsort label-6110
SELECT - CAST ( - + 63 AS INTEGER ) + - ( 51 ) * 21
----
-1008

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT DISTINCT MAX( DISTINCT - 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT MAX ( DISTINCT - 79 ) AS col0
----
-79

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), + CASE + 14 WHEN - + COALESCE ( + 91, - 11 ) THEN - 13 ELSE - - 51 END * - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), + CASE + 14 WHEN - + COALESCE ( + 91, - 11 ) THEN - 13 ELSE - - 51 END * - 86 )
----
NULL

query I rowsort
SELECT ( 24 ) AS col1
----
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6117
SELECT ALL + CAST( + SUM( + 20 ) AS SIGNED ) col2, + 6 col2
----
20
6

skipif mysql # not compatible
query II rowsort label-6117
SELECT ALL + CAST ( + SUM ( + 20 ) AS INTEGER ) col2, + 6 col2
----
20
6

query I rowsort
SELECT DISTINCT + 94 * - 9
----
-846

query I rowsort
SELECT DISTINCT 49 * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT MIN( 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-6120
SELECT MIN ( 66 ) AS col2
----
66

query I rowsort
SELECT DISTINCT + + 22 * - 33
----
-726

query I rowsort
SELECT ALL + 24 * - + 44 AS col1
----
-1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT - - 19 * + - 19 + - 71 * + - NULLIF ( + 66, - 7 * + 12 + - 70 - - - CAST( NULL AS SIGNED ) + 22 * - - 76 / + 89 ) AS col1
----
4325

skipif mysql # not compatible
query I rowsort label-6123
SELECT - - 19 * + - 19 + - 71 * + - NULLIF ( + 66, - 7 * + 12 + - 70 - - - CAST ( NULL AS INTEGER ) + 22 * - - 76 / + 89 ) AS col1
----
4325

query I rowsort
SELECT - 1 * + 98 AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT ALL - - 49 * - 2 * 33 + CAST( 64 AS SIGNED )
----
-3170

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL - - 49 * - 2 * 33 + CAST ( 64 AS INTEGER )
----
-3170

query II rowsort
SELECT 0 AS col1, - 6
----
0
-6

query I rowsort
SELECT DISTINCT + + 84 * 77 + - 50 AS col1
----
6418

query I rowsort
SELECT DISTINCT - 66 * + - 64 + 6 - + 56 + - 44 AS col1
----
4130

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT - 58 * + - MIN( ALL + 36 ) + + - 11
----
2077

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT - 58 * + - MIN ( ALL + 36 ) + + - 11
----
2077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT DISTINCT - 1 * - - CAST( NULL AS SIGNED ) * + 53 + + 7 + + 32 + 95 * + 94 * + 16 * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT - 1 * - - CAST ( NULL AS INTEGER ) * + 53 + + 7 + + 32 + 95 * + 94 * + 16 * 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6131
SELECT DISTINCT + 14 DIV - 21 * - 81 + + ( COUNT( + - ( + 28 ) ) ) - - 67 * 80
----
5361

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT + 14 / - 21 * - 81 + + ( COUNT ( + - ( + 28 ) ) ) - - 67 * 80
----
5361

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6133
SELECT - + 87 * - 89 * - 16 AS col0, COUNT( + + 43 )
----
-123888
1

skipif mysql # not compatible
query II rowsort label-6133
SELECT - + 87 * - 89 * - 16 AS col0, COUNT ( + + 43 )
----
-123888
1

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

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

query I rowsort
SELECT + - 12 * + + 52 AS col1
----
-624

query I rowsort
SELECT ALL - 29 * 98 + 23 - - 27 col0
----
-2792

query II rowsort
SELECT - 22 AS col2, 16 + + 87 AS col2
----
-22
103

query I rowsort
SELECT ALL 14 - + 85 * + + 86
----
-7296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6139
SELECT - 4 + - - 3 + + + 7 + - + COUNT( * ) + + 88 * - 35 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT - 4 + - - 3 + + + 7 + - + COUNT ( * ) + + 88 * - 35 * + CAST ( NULL AS INTEGER ) col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6142
SELECT - COUNT( * ) + - - 70 DIV 62 + - ( - + 49 ) + + 25
----
74

skipif mysql # not compatible
query I rowsort label-6142
SELECT - COUNT ( * ) + - - 70 / 62 + - ( - + 49 ) + + 25
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT + ( - 38 ) + + 89 * - COUNT( * )
----
-127

skipif mysql # not compatible
query I rowsort label-6143
SELECT + ( - 38 ) + + 89 * - COUNT ( * )
----
-127

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT ALL 50 DIV 20
----
2

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL 50 / 20
----
2

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

query I rowsort
SELECT + 32 - - 95
----
127

query I rowsort
SELECT ALL COALESCE ( - 25, 75 - - - 73 ) * 1 + - + 92
----
-117

query I rowsort
SELECT DISTINCT 8 * + 80 AS col1
----
640

query I rowsort
SELECT 7 * - 15 * + + ( - + 41 ) - + 44 AS col1
----
4261

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT + COUNT( * ) + COALESCE ( - 48, - 74 + - + 42 + + COUNT( * ) + 56 ) + + 74 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6151
SELECT + COUNT ( * ) + COALESCE ( - 48, - 74 + - + 42 + + COUNT ( * ) + 56 ) + + 74 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT - 23 * 56 + + - 95 + - + COUNT( * ) + - 25 + + ( 66 ) + - 26 AS col2
----
-1369

skipif mysql # not compatible
query I rowsort label-6152
SELECT - 23 * 56 + + - 95 + - + COUNT ( * ) + - 25 + + ( 66 ) + - 26 AS col2
----
-1369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6153
SELECT ALL - - 72 DIV - - CASE 65 WHEN 12 THEN NULL ELSE - - 30 * + COUNT( * ) + - MAX( ALL - ( - 69 ) ) - + 5 DIV 28 DIV - 64 END + + - 52 - - 23 + 68 DIV - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL - - 72 / - - CASE 65 WHEN 12 THEN NULL ELSE - - 30 * + COUNT ( * ) + - MAX ( ALL - ( - 69 ) ) - + 5 / 28 / - 64 END + + - 52 - - 23 + 68 / - COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-6154
SELECT - 11 * 33 + + - 39 + + COUNT( * ) * + COUNT( * ) AS col0, + 82 AS col0
----
-401
82

skipif mysql # not compatible
query II rowsort label-6154
SELECT - 11 * 33 + + - 39 + + COUNT ( * ) * + COUNT ( * ) AS col0, + 82 AS col0
----
-401
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6155
SELECT ALL - 87 + + + 0 + ( - MAX( DISTINCT - 56 ) ) DIV - 69 - + - COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL - 87 + + + 0 + ( - MAX ( DISTINCT - 56 ) ) / - 69 - + - COUNT ( * ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT + 52 + ( + 38 ) + - NULLIF ( + + 85, ( + 43 ) * + CASE - - 67 WHEN + NULLIF ( - 31, 1 / - AVG ( + 92 ) ) THEN NULL WHEN - + 36 THEN + - 82 ELSE NULL END + - 33 ) + - - MAX( ALL - 64 ) + - 91
----
-150

skipif mysql # not compatible
query I rowsort label-6156
SELECT + 52 + ( + 38 ) + - NULLIF ( + + 85, ( + 43 ) * + CASE - - 67 WHEN + NULLIF ( - 31, 1 / - AVG ( + 92 ) ) THEN NULL WHEN - + 36 THEN + - 82 ELSE NULL END + - 33 ) + - - MAX ( ALL - 64 ) + - 91
----
-150

query I rowsort
SELECT ALL + 2 + - NULLIF ( + 78, + 63 - + 35 )
----
-76

query II rowsort
SELECT ALL + + 19 + - 48 AS col0, 52 AS col1
----
-29
52

query I rowsort
SELECT DISTINCT 44 * - 86 AS col1
----
-3784

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ALL + - MIN( ALL - - 18 ) * + 23 * COUNT( * ) * + 86 * COUNT( * )
----
-35604

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL + - MIN ( ALL - - 18 ) * + 23 * COUNT ( * ) * + 86 * COUNT ( * )
----
-35604

query I rowsort
SELECT DISTINCT - + ( - + 97 ) + - 86 + + 46
----
57

query I rowsort
SELECT 21 * 63 AS col1
----
1323

query I rowsort
SELECT 80 + - 92 AS col1
----
-12

query II rowsort
SELECT ALL - ( NULLIF ( + 38, - 82 ) ) AS col2, + 0
----
-38
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT ALL 28 * + SUM( ALL 96 )
----
2688

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL 28 * + SUM ( ALL 96 )
----
2688

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT + 68 DIV - 34
----
-2

skipif mysql # not compatible
query I rowsort label-6166
SELECT + 68 / - 34
----
-2

query I rowsort
SELECT ALL - NULLIF ( + 76, - 68 )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6168
SELECT ALL + CAST( - 40 AS SIGNED ) - 70 AS col2, + NULLIF ( + + 62, - 23 ) + - ( - 58 ) AS col0
----
-110
120

skipif mysql # not compatible
query II rowsort label-6168
SELECT ALL + CAST ( - 40 AS INTEGER ) - 70 AS col2, + NULLIF ( + + 62, - 23 ) + - ( - 58 ) AS col0
----
-110
120

onlyif mysql # DIV for integer division: 
query I rowsort label-6169
SELECT DISTINCT - 92 DIV - - 36
----
-2

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT - 92 / - - 36
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT ALL - 83 - - - MAX( - 8 )
----
-75

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL - 83 - - - MAX ( - 8 )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6171
SELECT 72 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-6171
SELECT 72 / - 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6172
SELECT ALL - 10 DIV CASE - + 60 WHEN + 36 THEN + 79 * + + 49 + + COUNT( * ) - + - 88 WHEN + 33 DIV + 19 - COUNT( * ) THEN + + 33 - - 17 ELSE + 63 + + + 13 DIV 21 DIV - 47 - + MIN( - - 42 ) + - 60 END
----
0

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - 10 / CASE - + 60 WHEN + 36 THEN + 79 * + + 49 + + COUNT ( * ) - + - 88 WHEN + 33 / + 19 - COUNT ( * ) THEN + + 33 - - 17 ELSE + 63 + + + 13 / 21 / - 47 - + MIN ( - - 42 ) + - 60 END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6173
SELECT DISTINCT - 92 * 42 DIV - - COUNT( * ) AS col1
----
-3864

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT - 92 * 42 / - - COUNT ( * ) AS col1
----
-3864

query I rowsort
SELECT ALL + 20 * - 34 AS col0
----
-680

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

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

query I rowsort
SELECT ALL ( - - 94 ) + + + 74 * + - ( 85 )
----
-6196

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT ALL - COUNT( * ) + - - MIN( + 16 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL - COUNT ( * ) + - - MIN ( + 16 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT MIN( + + 16 ) * + + 99 - + MAX( DISTINCT + - 38 ) AS col2
----
1622

skipif mysql # not compatible
query I rowsort label-6178
SELECT MIN ( + + 16 ) * + + 99 - + MAX ( DISTINCT + - 38 ) AS col2
----
1622

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

skipif mysql # not compatible
query I rowsort label-6179
SELECT ( CAST ( NULL AS INTEGER ) ) + + + ( 0 ) * + 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6180
SELECT 55 AS col0, + 4 * CAST( NULL AS SIGNED ) AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-6180
SELECT 55 AS col0, + 4 * CAST ( NULL AS INTEGER ) AS col0
----
55
NULL

query I rowsort
SELECT DISTINCT + 39 + + 89
----
128

query I rowsort
SELECT ALL - + ( + 62 ) col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT + 58 + COUNT( * ) + + 18 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT + 58 + COUNT ( * ) + + 18 AS col0
----
77

query I rowsort
SELECT ALL - 47 * 7 AS col1
----
-329

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6185
SELECT ALL MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) + - + 13 * - SUM( ALL - 52 ) + - 68 * - COALESCE ( + COUNT( * ), + MAX( 62 ) ), 65 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-6185
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS REAL ) ) + - + 13 * - SUM ( ALL - 52 ) + - 68 * - COALESCE ( + COUNT ( * ), + MAX ( 62 ) ), 65 AS col0
----
NULL
65

query I rowsort
SELECT DISTINCT + 14 * - 70
----
-980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6187
SELECT ALL ( COALESCE ( - - 70, 67 DIV COUNT( * ) - - 64 ) ) * - - 31 AS col0
----
2170

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL ( COALESCE ( - - 70, 67 / COUNT ( * ) - - 64 ) ) * - - 31 AS col0
----
2170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6188
SELECT - 2 * + + 61 * CAST( NULL AS SIGNED ) + + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT - 2 * + + 61 * CAST ( NULL AS INTEGER ) + + 58 AS col2
----
NULL

query I rowsort
SELECT 56 * - - 69 * - - 27 * NULLIF ( - + 77, - + 98 - - 75 ) - - + 69 AS col1
----
-8033187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6190
SELECT - 76 * - - 93 + + + 38 + 2 * + - COUNT( DISTINCT - 72 ) DIV COUNT( * ) + - - 76 AS col0
----
-6956

skipif mysql # not compatible
query I rowsort label-6190
SELECT - 76 * - - 93 + + + 38 + 2 * + - COUNT ( DISTINCT - 72 ) / COUNT ( * ) + - - 76 AS col0
----
-6956

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT + 85 DIV + + 64 + + 93
----
94

skipif mysql # not compatible
query I rowsort label-6192
SELECT + 85 / + + 64 + + 93
----
94

query I rowsort
SELECT ALL + 65 - + 21 AS col0
----
44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT ALL - ( + - COUNT( ALL - 16 ) ) - + 68 + + SUM( DISTINCT - + 31 ) * - - 50 * + 94 * + - 52
----
7576333

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL - ( + - COUNT ( ALL - 16 ) ) - + 68 + + SUM ( DISTINCT - + 31 ) * - - 50 * + 94 * + - 52
----
7576333

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT COUNT( * ) - + - ( + 36 ) + - 31 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6196
SELECT COUNT ( * ) - + - ( + 36 ) + - 31 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6197
SELECT ALL + CAST( NULL AS SIGNED ) * + 0 / - NULLIF ( + - COUNT( * ), + 68 + + + 20 + ( - SUM( ALL - 84 ) ) + CASE - 78 WHEN - 75 THEN - 9 WHEN - ( COUNT( * ) ) THEN NULL END ) * - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL + CAST ( NULL AS INTEGER ) * + 0 / - NULLIF ( + - COUNT ( * ), + 68 + + + 20 + ( - SUM ( ALL - 84 ) ) + CASE - 78 WHEN - 75 THEN - 9 WHEN - ( COUNT ( * ) ) THEN NULL END ) * - 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT DISTINCT - + COALESCE ( + 31, + COUNT( + - 81 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT - + COALESCE ( + 31, + COUNT ( + - 81 ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT DISTINCT - - 74 * + CASE + 45 WHEN + + 56 * - 35 + - ( + + 36 ) * - + MAX( - 82 ) + 82 THEN 75 ELSE + 76 + - 63 + - 38 END * COUNT( * ) AS col1
----
-1850

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT - - 74 * + CASE + 45 WHEN + + 56 * - 35 + - ( + + 36 ) * - + MAX ( - 82 ) + 82 THEN 75 ELSE + 76 + - 63 + - 38 END * COUNT ( * ) AS col1
----
-1850

query I rowsort
SELECT - 18 + 41 AS col1
----
23

query II rowsort
SELECT ALL - 8 AS col0, - ( + 57 ) * - 76 AS col2
----
-8
4332

query I rowsort
SELECT ALL 39 * - CASE 54 WHEN + 95 THEN + ( 27 ) ELSE + - 46 END * - 93 + 52
----
-166790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6203
SELECT 82 - 93 + + + COUNT( * ) DIV + 32 * - - 69 * + 3 * - 22 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6203
SELECT 82 - 93 + + + COUNT ( * ) / + 32 * - - 69 * + 3 * - 22 AS col1
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT - SUM( - 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6205
SELECT - SUM ( - 86 ) AS col1
----
86

query II rowsort
SELECT 24 AS col2, 5 * 72 AS col2
----
24
360

query I rowsort
SELECT 1 * 48
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6208
SELECT - COUNT( * ) AS col2, + CASE + ( 95 ) WHEN - - 64 THEN - 90 WHEN - 89 THEN - 44 ELSE MIN( ALL 70 ) DIV + 5 END * + + 76 - 57 + 25 * + 19 + - + 63 - + - 38 * 42 * + 86 AS col0
----
-1
138675

skipif mysql # not compatible
query II rowsort label-6208
SELECT - COUNT ( * ) AS col2, + CASE + ( 95 ) WHEN - - 64 THEN - 90 WHEN - 89 THEN - 44 ELSE MIN ( ALL 70 ) / + 5 END * + + 76 - 57 + 25 * + 19 + - + 63 - + - 38 * 42 * + 86 AS col0
----
-1
138675

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

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

query I rowsort
SELECT DISTINCT 38 * + 27 AS col1
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL MIN( 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL MIN ( 71 ) AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6212
SELECT 97 DIV - 58 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6212
SELECT 97 / - 58 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-6213
SELECT - 86, COUNT( * ) AS col2, + + COUNT( * ) * - 87 + - CASE 73 WHEN + 33 * 59 + + - 33 + - 53 THEN + 0 / - - 92 + - - COUNT( * ) * 20 END / - 54 - + COALESCE ( + COUNT( * ), + + NULLIF ( 81, + - 44 * 24 ) * - 52 ) AS col1
----
-86
1
NULL

skipif mysql # not compatible
query III rowsort label-6213
SELECT - 86, COUNT ( * ) AS col2, + + COUNT ( * ) * - 87 + - CASE 73 WHEN + 33 * 59 + + - 33 + - 53 THEN + 0 / - - 92 + - - COUNT ( * ) * 20 END / - 54 - + COALESCE ( + COUNT ( * ), + + NULLIF ( 81, + - 44 * 24 ) * - 52 ) AS col1
----
-86
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL + COUNT( * ) + - 84 + - - ( 16 ) * 79 AS col1
----
1181

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + COUNT ( * ) + - 84 + - - ( 16 ) * 79 AS col1
----
1181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6215
SELECT CAST( + + COALESCE ( - NULLIF ( - 60, - - 98 + 10 - COUNT( * ) + - + COUNT( * ) - + + ( + 71 ) * + 14 ), + - 25 * + - 93 + - + AVG ( + - 58 ) + - 22 - - 94 + - - 62 + + 10 * - 38 * + 21 / - - COALESCE ( - 30, + 76, - 55, + 95 * - - 2 + 73 + + + COUNT( - 41 ) - COUNT( * ) ) * 16 + + 15, + - 11 ) AS SIGNED ) + - SUM( - ( - 13 ) ) + + SUM( + ( 53 ) )
----
100

skipif mysql # not compatible
query I rowsort label-6215
SELECT CAST ( + + COALESCE ( - NULLIF ( - 60, - - 98 + 10 - COUNT ( * ) + - + COUNT ( * ) - + + ( + 71 ) * + 14 ), + - 25 * + - 93 + - + AVG ( + - 58 ) + - 22 - - 94 + - - 62 + + 10 * - 38 * + 21 / - - COALESCE ( - 30, + 76, - 55, + 95 * - - 2 + 73 + + + COUNT ( - 41 ) - COUNT ( * ) ) * 16 + + 15, + - 11 ) AS INTEGER ) + - SUM ( - ( - 13 ) ) + + SUM ( + ( 53 ) )
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6216
SELECT MAX( + + 96 ) * + 50 * - 58 + - + CAST( + 63 AS SIGNED ) AS col2
----
-278463

skipif mysql # not compatible
query I rowsort label-6216
SELECT MAX ( + + 96 ) * + 50 * - 58 + - + CAST ( + 63 AS INTEGER ) AS col2
----
-278463

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT 87 DIV + 38
----
2

skipif mysql # not compatible
query I rowsort label-6217
SELECT 87 / + 38
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6218
SELECT 23 DIV + - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6218
SELECT 23 / + - 77 AS col1
----
0

query I rowsort
SELECT NULLIF ( + 91, 48 ) * - 83 AS col0
----
-7553

onlyif mysql # aggregate syntax: 
query II rowsort label-6220
SELECT ALL + ( - 37 ) + + + COUNT( * ) + + 89 AS col2, - 12
----
53
-12

skipif mysql # not compatible
query II rowsort label-6220
SELECT ALL + ( - 37 ) + + + COUNT ( * ) + + 89 AS col2, - 12
----
53
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT DISTINCT - MAX( DISTINCT + + 43 ) * + 94 AS col2
----
-4042

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT - MAX ( DISTINCT + + 43 ) * + 94 AS col2
----
-4042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6222
SELECT DISTINCT - COUNT( + CAST( NULL AS SIGNED ) ) + + 70 col0
----
70

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT - COUNT ( + CAST ( NULL AS INTEGER ) ) + + 70 col0
----
70

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

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

query I rowsort
SELECT ALL - 54 - + 29
----
-83

query I rowsort
SELECT - 78 * + + 97
----
-7566

query II rowsort
SELECT ALL + + 17 AS col0, + 78 col2
----
17
78

query II rowsort
SELECT ALL + 30, 70 AS col0
----
30
70

query I rowsort
SELECT - CASE - 17 WHEN 2 THEN NULL WHEN + 77 / - - 91 * + 11 + + 13 THEN - - 35 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT ALL - 45 * ( - 55 ) + - COUNT( * ) + 96 + + + 46 * - 17 - - + 69 * + 53 + - 10 * + 59
----
4855

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL - 45 * ( - 55 ) + - COUNT ( * ) + 96 + + + 46 * - 17 - - + 69 * + 53 + - 10 * + 59
----
4855

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL SUM( DISTINCT - 75 ) * - 2 + - COUNT( * ) * 68
----
82

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL SUM ( DISTINCT - 75 ) * - 2 + - COUNT ( * ) * 68
----
82

query I rowsort
SELECT ALL 89 * + - 51
----
-4539

onlyif mysql # aggregate syntax: 
query II rowsort label-6232
SELECT + - COUNT( * ), + 52 col1
----
-1
52

skipif mysql # not compatible
query II rowsort label-6232
SELECT + - COUNT ( * ), + 52 col1
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT + + CASE - + 17 WHEN SUM( 13 ) THEN - 97 + - 36 ELSE NULL END * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT + + CASE - + 17 WHEN SUM ( 13 ) THEN - 97 + - 36 ELSE NULL END * 55
----
NULL

query I rowsort
SELECT ALL 46 * + 62 AS col1
----
2852

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6236
SELECT + MIN( ALL 66 ) DIV 37 * 69 * 26 * 42
----
75348

skipif mysql # not compatible
query I rowsort label-6236
SELECT + MIN ( ALL 66 ) / 37 * 69 * 26 * 42
----
75348

query II rowsort
SELECT + 39 * - + 60 AS col0, ( + 18 )
----
-2340
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT + 4 + 95 DIV + - ( - 55 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6238
SELECT + 4 + 95 / + - ( - 55 ) AS col1
----
5

query I rowsort
SELECT + CASE 20 WHEN - 82 THEN - + CASE + 69 WHEN + 4 THEN - + COALESCE ( - + 55, 77 + 14, + - 59 / ( - 65 ) ) END ELSE - 28 * + 54 END
----
-1512

query I rowsort
SELECT ALL 35 * + 68 * 51 * - 0 * - 5 + - + 13 + 66
----
53

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6242
SELECT SUM( DISTINCT - 65 ), - ( 40 ) - + 97 AS col2
----
-65
-137

skipif mysql # not compatible
query II rowsort label-6242
SELECT SUM ( DISTINCT - 65 ), - ( 40 ) - + 97 AS col2
----
-65
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-6243
SELECT ALL SUM( ALL + + 66 ) AS col0, 87
----
66
87

skipif mysql # not compatible
query II rowsort label-6243
SELECT ALL SUM ( ALL + + 66 ) AS col0, 87
----
66
87

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

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

query I rowsort
SELECT ALL 91 + + 37 * 95 * - 48 AS col2
----
-168629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6246
SELECT + 56 - CAST( 82 AS SIGNED ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-6246
SELECT + 56 - CAST ( 82 AS INTEGER ) AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6247
SELECT - CASE 81 WHEN - 1 * COUNT( 17 ) + - SUM( + 23 ) DIV - 81 THEN NULL WHEN + - ( + SUM( ALL + 18 ) ) * + 36 THEN 83 DIV - + 22 * - 43 WHEN - - MAX( - 30 ) + - 72 * - COALESCE ( 2, + 44 ) * 12 THEN NULL ELSE - - CAST( + 74 AS SIGNED ) END AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6247
SELECT - CASE 81 WHEN - 1 * COUNT ( 17 ) + - SUM ( + 23 ) / - 81 THEN NULL WHEN + - ( + SUM ( ALL + 18 ) ) * + 36 THEN 83 / - + 22 * - 43 WHEN - - MAX ( - 30 ) + - 72 * - COALESCE ( 2, + 44 ) * 12 THEN NULL ELSE - - CAST ( + 74 AS INTEGER ) END AS col0
----
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT ALL 20 * + - ( - 1 ) * 65 * - 31 * - 70 - - + 61 + - 50 * + + 86 * + 25 * - - SUM( + 92 )
----
-7068939

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL 20 * + - ( - 1 ) * 65 * - 31 * - 70 - - + 61 + - 50 * + + 86 * + 25 * - - SUM ( + 92 )
----
-7068939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6250
SELECT ALL MAX( DISTINCT + 51 ) + - + 84 DIV - + SUM( DISTINCT - 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL MAX ( DISTINCT + 51 ) + - + 84 / - + SUM ( DISTINCT - 50 ) AS col1
----
50

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

query I rowsort
SELECT - 95 + ( - 47 ) * 32 * + 51 * + 57
----
-4372223

query II rowsort
SELECT + + 84 * 42 AS col0, 3 * + 33 AS col0
----
3528
99

query I rowsort
SELECT + + 25 * - 88 col1
----
-2200

onlyif mysql # DIV for integer division: 
query I rowsort label-6255
SELECT - + 20 * + COALESCE ( 50, - + 68 DIV - ( - 64 ) * - 11 )
----
-1000

skipif mysql # not compatible
query I rowsort label-6255
SELECT - + 20 * + COALESCE ( 50, - + 68 / - ( - 64 ) * - 11 )
----
-1000

query I rowsort
SELECT - 40 + - 10
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6257
SELECT - MAX( 77 ) + + CAST( 43 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-6257
SELECT - MAX ( 77 ) + + CAST ( 43 AS INTEGER )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT - 98 * - COUNT( DISTINCT - - 97 ) * + 55
----
5390

skipif mysql # not compatible
query I rowsort label-6258
SELECT - 98 * - COUNT ( DISTINCT - - 97 ) * + 55
----
5390

query I rowsort
SELECT - COALESCE ( + 77, - 10 ) * - 96
----
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT ALL - + COUNT( * ) * COUNT( * ) - 62 + + 9
----
-54

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL - + COUNT ( * ) * COUNT ( * ) - 62 + + 9
----
-54

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

query II rowsort
SELECT - ( 46 ) AS col2, - 57
----
-46
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT - - 58 * - MAX( DISTINCT 77 )
----
-4466

skipif mysql # not compatible
query I rowsort label-6263
SELECT - - 58 * - MAX ( DISTINCT 77 )
----
-4466

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT ALL + - MIN( 91 ) AS col0, + 48 AS col2
----
-91
48

skipif mysql # not compatible
query II rowsort label-6264
SELECT ALL + - MIN ( 91 ) AS col0, + 48 AS col2
----
-91
48

query II rowsort
SELECT DISTINCT + 30 AS col1, + 48 + - 63 - 77
----
30
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6266
SELECT DISTINCT 63 * 95 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT 63 * 95 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ALL NULLIF ( 64, + 92 ) * - - COUNT( * ) + - 55 + - + 84 * + 24 AS col0
----
-2007

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL NULLIF ( 64, + 92 ) * - - COUNT ( * ) + - 55 + - + 84 * + 24 AS col0
----
-2007

query I rowsort
SELECT ALL + COALESCE ( - - 61, + 63 * + 85 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT + COALESCE ( - 97, - 59 + + + COALESCE ( - 62, + - 51 + 31 * - 98, + + 41 ) * + - 54 + + 55 - + - CAST( 55 AS SIGNED ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-6269
SELECT + COALESCE ( - 97, - 59 + + + COALESCE ( - 62, + - 51 + 31 * - 98, + + 41 ) * + - 54 + + 55 - + - CAST ( 55 AS INTEGER ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6270
SELECT + COALESCE ( - - 50, ( COUNT( ALL 6 ) ) + - - 30 DIV - - MIN( ALL + + 72 ) + + 37 + - + 30 + COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-6270
SELECT + COALESCE ( - - 50, ( COUNT ( ALL 6 ) ) + - - 30 / - - MIN ( ALL + + 72 ) + + 37 + - + 30 + COUNT ( * ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT DISTINCT 0 * - 95 * - + 33 * - ( + + SUM( 68 ) ) + - + COUNT( * ) - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT 0 * - 95 * - + 33 * - ( + + SUM ( 68 ) ) + - + COUNT ( * ) - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6272
SELECT - 32 + 97 + ( CASE + - 83 WHEN - + NULLIF ( COUNT( + - 52 ), + + 18 ) DIV - - 89 THEN 21 * - + CASE + COUNT( * ) WHEN + 99 THEN + 81 * + MIN( ALL - NULLIF ( 92, - 81 * 50 ) ) * - 66 END DIV + ( - + 20 ) ELSE COUNT( * ) END ) * - - CASE + + ( COUNT( * ) ) WHEN + 56 * + 20 THEN NULL WHEN - + 97 + - 86 - + 56 + + - 85 * - 56 * - COUNT( * ) THEN NULL ELSE - 74 END DIV + 58 + 70 - 9 - - 99 AS col2
----
224

skipif mysql # not compatible
query I rowsort label-6272
SELECT - 32 + 97 + ( CASE + - 83 WHEN - + NULLIF ( COUNT ( + - 52 ), + + 18 ) / - - 89 THEN 21 * - + CASE + COUNT ( * ) WHEN + 99 THEN + 81 * + MIN ( ALL - NULLIF ( 92, - 81 * 50 ) ) * - 66 END / + ( - + 20 ) ELSE COUNT ( * ) END ) * - - CASE + + ( COUNT ( * ) ) WHEN + 56 * + 20 THEN NULL WHEN - + 97 + - 86 - + 56 + + - 85 * - 56 * - COUNT ( * ) THEN NULL ELSE - 74 END / + 58 + 70 - 9 - - 99 AS col2
----
224

query I rowsort
SELECT + 38 - 67
----
-29

query I rowsort
SELECT NULLIF ( - - 39, 52 * - 23 * NULLIF ( + 5, + 31 ) )
----
39

query I rowsort
SELECT + 14 - - 69
----
83

query II rowsort
SELECT ALL 83 AS col0, 36 * 89 + - 17 AS col2
----
83
3187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6277
SELECT + CAST( NULL AS SIGNED ) * - MAX( ( - 90 ) ) * - - 96 * - - COUNT( * ) * - 94 / + COUNT( * ) * - COALESCE ( - ( - CAST( + 6 AS DECIMAL ) ), + 39 + 50 ) AS col2, - ( 90 ) * ( + - NULLIF ( 15, 9 ) ) * + - 87 + - 97 AS col2
----
NULL
-117547

skipif mysql # not compatible
query II rowsort label-6277
SELECT + CAST ( NULL AS INTEGER ) * - MAX ( ( - 90 ) ) * - - 96 * - - COUNT ( * ) * - 94 / + COUNT ( * ) * - COALESCE ( - ( - CAST ( + 6 AS REAL ) ), + 39 + 50 ) AS col2, - ( 90 ) * ( + - NULLIF ( 15, 9 ) ) * + - 87 + - 97 AS col2
----
NULL
-117547

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

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

query II rowsort
SELECT ALL 40 AS col1, - 57 + 83 + - 96
----
40
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT COUNT( * ) + + + 79 * - + 75
----
-5924

skipif mysql # not compatible
query I rowsort label-6280
SELECT COUNT ( * ) + + + 79 * - + 75
----
-5924

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT - 55 + - + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6281
SELECT - 55 + - + COUNT ( * )
----
-56

query I rowsort
SELECT - 69 * + 38
----
-2622

query I rowsort
SELECT 24 + + + 98 * + 0 * + + ( + - 48 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT - MIN( DISTINCT + - 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6284
SELECT - MIN ( DISTINCT + - 79 ) AS col1
----
79

query I rowsort
SELECT DISTINCT ( + - 77 ) * 81 * ( 56 ) AS col1
----
-349272

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT DISTINCT ( + MIN( + 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT ( + MIN ( + 99 ) )
----
99

query I rowsort
SELECT ALL NULLIF ( - + 44, + 79 )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6288
SELECT + COALESCE ( + 1, - 62 * - - 17, + SUM( + 58 ) DIV - 0 ) + - - 95 * - NULLIF ( + + 63, 28 ) AS col2, ( - 87 ) AS col2
----
-5984
-87

skipif mysql # not compatible
query II rowsort label-6288
SELECT + COALESCE ( + 1, - 62 * - - 17, + SUM ( + 58 ) / - 0 ) + - - 95 * - NULLIF ( + + 63, 28 ) AS col2, ( - 87 ) AS col2
----
-5984
-87

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

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

query I rowsort
SELECT DISTINCT ( 22 ) * - ( + 81 ) * + 71
----
-126522

query II rowsort
SELECT ALL - 21 AS col2, 84 AS col0
----
-21
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6292
SELECT ALL + 53 DIV 43 DIV - 6 AS col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-6292
SELECT ALL + 53 / 43 / - 6 AS col0, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT 11 - - - ( - 92 ) + - MAX( + + 75 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6293
SELECT 11 - - - ( - 92 ) + - MAX ( + + 75 ) AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6294
SELECT - 85 + + + 11 + - + 34, + CAST( NULL AS SIGNED ) AS col2
----
-108
NULL

skipif mysql # not compatible
query II rowsort label-6294
SELECT - 85 + + + 11 + - + 34, + CAST ( NULL AS INTEGER ) AS col2
----
-108
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6295
SELECT ALL + - 26 DIV 47 col2
----
0

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + - 26 / 47 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT + + 50 * + COALESCE ( 2, - 60 ) + COUNT( 18 ) col0
----
101

skipif mysql # not compatible
query I rowsort label-6296
SELECT + + 50 * + COALESCE ( 2, - 60 ) + COUNT ( 18 ) col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6297
SELECT - 68 + + CASE + ( 92 ) WHEN 62 THEN + 86 WHEN - CAST( NULL AS DECIMAL ) THEN + COUNT( * ) * + CAST( - - 30 AS SIGNED ) END + - - 30 + - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT - 68 + + CASE + ( 92 ) WHEN 62 THEN + 86 WHEN - CAST ( NULL AS REAL ) THEN + COUNT ( * ) * + CAST ( - - 30 AS INTEGER ) END + - - 30 + - 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6298
SELECT - 9 AS col2, 89 + - MIN( + 57 ) col0
----
-9
32

skipif mysql # not compatible
query II rowsort label-6298
SELECT - 9 AS col2, 89 + - MIN ( + 57 ) col0
----
-9
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6299
SELECT ALL - NULLIF ( - - 0, - - COUNT( * ) ) + - SUM( DISTINCT - 21 ) * - 6 AS col0, 78
----
-126
78

skipif mysql # not compatible
query II rowsort label-6299
SELECT ALL - NULLIF ( - - 0, - - COUNT ( * ) ) + - SUM ( DISTINCT - 21 ) * - 6 AS col0, 78
----
-126
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT ALL - COUNT( * ) + + COUNT( * ) * + + 44 + + + 53 + 88 * 19 * 98 * + 5 AS col2
----
819376

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * + + 44 + + + 53 + 88 * 19 * 98 * + 5 AS col2
----
819376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6301
SELECT CAST( - COUNT( * ) AS SIGNED ) DIV + - 94 + - + 22 - - 27 DIV 94
----
-22

skipif mysql # not compatible
query I rowsort label-6301
SELECT CAST ( - COUNT ( * ) AS INTEGER ) / + - 94 + - + 22 - - 27 / 94
----
-22

query I rowsort
SELECT ALL + 2 * - + 12 AS col1
----
-24

query I rowsort
SELECT DISTINCT - 48 + - + 40 - + 24 AS col2
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6304
SELECT 66 * - 81 + - 36 * - + 61, - CAST( NULL AS SIGNED ) col0
----
-3150
NULL

skipif mysql # not compatible
query II rowsort label-6304
SELECT 66 * - 81 + - 36 * - + 61, - CAST ( NULL AS INTEGER ) col0
----
-3150
NULL

query I rowsort
SELECT ALL - 30 + 66
----
36

query I rowsort
SELECT DISTINCT + 75 + + 20
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6307
SELECT - COUNT( * ) * + 20 + - COUNT( * ) + + 72 - - ( - 43 ) * + CAST( NULL AS SIGNED ) * + 94 * 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT - COUNT ( * ) * + 20 + - COUNT ( * ) + + 72 - - ( - 43 ) * + CAST ( NULL AS INTEGER ) * + 94 * 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT 26 + 72 + COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6308
SELECT 26 + 72 + COUNT ( * ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL + ( - COUNT( * ) ) - + - NULLIF ( + - COUNT( * ), + 5 )
----
-2

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL + ( - COUNT ( * ) ) - + - NULLIF ( + - COUNT ( * ), + 5 )
----
-2

query I rowsort
SELECT 6 * - 9 AS col2
----
-54

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

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

query II rowsort
SELECT - 44 - + 23 AS col2, + 33 AS col0
----
-67
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT + 53 * - CAST( - 60 AS SIGNED ) AS col0
----
3180

skipif mysql # not compatible
query I rowsort label-6313
SELECT + 53 * - CAST ( - 60 AS INTEGER ) AS col0
----
3180

onlyif mysql # DIV for integer division: 
query I rowsort label-6314
SELECT ALL + 48 DIV + + 58
----
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL + 48 / + + 58
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6315
SELECT COALESCE ( 27, + 18 / 46 ) / CAST( NULL AS SIGNED ) * + ( + CAST( NULL AS SIGNED ) ) + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT COALESCE ( 27, + 18 / 46 ) / CAST ( NULL AS INTEGER ) * + ( + CAST ( NULL AS INTEGER ) ) + + 50 AS col1
----
NULL

query II rowsort
SELECT ALL + ( + - 36 ) AS col1, 5
----
-36
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6317
SELECT 56 + 89 AS col1, 24 * - + 31 * - COUNT( * ) + - 93 * + 19
----
145
-1023

skipif mysql # not compatible
query II rowsort label-6317
SELECT 56 + 89 AS col1, 24 * - + 31 * - COUNT ( * ) + - 93 * + 19
----
145
-1023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6318
SELECT + 93 - 60 + 92 + + 16 + - NULLIF ( - 43, + 81 * - + 66 + 54 ) + CAST( NULL AS SIGNED ) * - + 51 + + 93 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT + 93 - 60 + 92 + + 16 + - NULLIF ( - 43, + 81 * - + 66 + 54 ) + CAST ( NULL AS INTEGER ) * - + 51 + + 93 col0
----
NULL

query II rowsort
SELECT - 2 * + - 67 AS col1, 84 AS col1
----
134
84

query I rowsort
SELECT DISTINCT - 13 + + + 97 AS col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6321
SELECT - ( + - 47 ) * - + 58 DIV COUNT( * )
----
-2726

skipif mysql # not compatible
query I rowsort label-6321
SELECT - ( + - 47 ) * - + 58 / COUNT ( * )
----
-2726

query I rowsort
SELECT - NULLIF ( - + 11, + - ( 27 ) + - 74 )
----
11

query I rowsort
SELECT ALL - 30 + - + 19 * 19
----
-391

query I rowsort
SELECT 5 * - 93 AS col1
----
-465

query I rowsort
SELECT DISTINCT 75 * - 22 + - 69 + - 50 * 28
----
-3119

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL - SUM( DISTINCT - - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL - SUM ( DISTINCT - - 39 )
----
-39

query II rowsort
SELECT + ( + 19 ) AS col2, - 7
----
19
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6328
SELECT DISTINCT - - MAX( DISTINCT 51 ) AS col0, 11 + - - 92 col2
----
51
103

skipif mysql # not compatible
query II rowsort label-6328
SELECT DISTINCT - - MAX ( DISTINCT 51 ) AS col0, 11 + - - 92 col2
----
51
103

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT 91 DIV + + 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6329
SELECT 91 / + + 78 AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT MIN( ALL + 54 ) - 35
----
19

skipif mysql # not compatible
query I rowsort label-6331
SELECT MIN ( ALL + 54 ) - 35
----
19

query I rowsort
SELECT 98 * + 17 + + + 93
----
1759

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT 17 DIV - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6333
SELECT 17 / - 51 AS col2
----
0

query I rowsort
SELECT 87 * + + 23
----
2001

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

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

query I rowsort
SELECT 26 * - 52 AS col1
----
-1352

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT + 85 * + COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6337
SELECT + 85 * + COUNT ( * ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT + 3 - CASE + 28 WHEN - 49 THEN NULL WHEN + COUNT( * ) THEN + + 53 WHEN - + 6 THEN - - 39 END + + 34 * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT + 3 - CASE + 28 WHEN - 49 THEN NULL WHEN + COUNT ( * ) THEN + + 53 WHEN - + 6 THEN - - 39 END + + 34 * 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6339
SELECT ALL 8 DIV 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL 8 / 20 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6340
SELECT - 79 - NULLIF ( + 44, CAST( - 26 AS SIGNED ) ) DIV COUNT( * ) AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-6340
SELECT - 79 - NULLIF ( + 44, CAST ( - 26 AS INTEGER ) ) / COUNT ( * ) AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT 35 * 34 * + 32 + COUNT( * )
----
38081

skipif mysql # not compatible
query I rowsort label-6341
SELECT 35 * 34 * + 32 + COUNT ( * )
----
38081

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT + 43 + + 3 * + - SUM( 65 ) * + 26 + - - COALESCE ( - COUNT( * ), + 30 - - 28 + 38 * + + COUNT( * ) )
----
-5028

skipif mysql # not compatible
query I rowsort label-6342
SELECT + 43 + + 3 * + - SUM ( 65 ) * + 26 + - - COALESCE ( - COUNT ( * ), + 30 - - 28 + 38 * + + COUNT ( * ) )
----
-5028

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

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL + COUNT ( * ) * + 54 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6344
SELECT COUNT( + CAST( + 54 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6344
SELECT COUNT ( + CAST ( + 54 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT - 25 - - 41
----
16

query I rowsort
SELECT 73 * 84 + - 4 * 2 AS col1
----
6124

query I rowsort
SELECT - 1 - + 34 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6348
SELECT - 13 * + MIN( - CAST( CAST( - 93 AS SIGNED ) AS SIGNED ) * 46 )
----
-55614

skipif mysql # not compatible
query I rowsort label-6348
SELECT - 13 * + MIN ( - CAST ( CAST ( - 93 AS INTEGER ) AS INTEGER ) * 46 )
----
-55614

query I rowsort
SELECT ALL CASE - 23 WHEN 30 * - 44 THEN 5 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6350
SELECT DISTINCT - 82 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT - 82 / 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6351
SELECT DISTINCT - COALESCE ( - SUM( ALL + 89 ), CAST( NULL AS SIGNED ) + + 41, + 47 DIV 84 ) + + 29 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT - COALESCE ( - SUM ( ALL + 89 ), CAST ( NULL AS INTEGER ) + + 41, + 47 / 84 ) + + 29 AS col1
----
118

query I rowsort
SELECT ALL 77 * - 17 AS col1
----
-1309

query I rowsort
SELECT - 83 * 71 AS col2
----
-5893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6354
SELECT ALL - CAST( 64 AS SIGNED ) + 26 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL - CAST ( 64 AS INTEGER ) + 26 AS col1
----
-38

query I rowsort
SELECT - 71 + 57 * 55 AS col2
----
3064

query I rowsort
SELECT DISTINCT CASE + 70 WHEN 35 THEN 82 WHEN + 63 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 65 + 34
----
-31

query I rowsort
SELECT - 47 + 20
----
-27

query I rowsort
SELECT + 53 * + NULLIF ( 22, 66 * 8 )
----
1166

query I rowsort
SELECT - COALESCE ( 43, 23 ) * + 67 AS col2
----
-2881

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

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

query I rowsort
SELECT ALL 35 + 34
----
69

query I rowsort
SELECT - 17 - + COALESCE ( - 79, 41 * 66, + 99 + - 52 ) AS col1
----
62

query I rowsort
SELECT DISTINCT - 47 + 92
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT ( - MIN( 84 ) ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT ( - MIN ( 84 ) ) col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6366
SELECT - NULLIF ( 41, - 77 + - CAST( NULL AS SIGNED ) )
----
-41

skipif mysql # not compatible
query I rowsort label-6366
SELECT - NULLIF ( 41, - 77 + - CAST ( NULL AS INTEGER ) )
----
-41

query I rowsort
SELECT - 57 + ( 79 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6368
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), + 46 ) + + 61 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6368
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), + 46 ) + + 61 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6369
SELECT - 82 DIV COALESCE ( + 57, 99 + ( 52 - + 84 ), 90, + ( CAST( 61 AS SIGNED ) ) DIV 66 + 22 ) - 30 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6369
SELECT - 82 / COALESCE ( + 57, 99 + ( 52 - + 84 ), 90, + ( CAST ( 61 AS INTEGER ) ) / 66 + 22 ) - 30 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT + 15 + + SUM( 80 ) * 3
----
255

skipif mysql # not compatible
query I rowsort label-6370
SELECT + 15 + + SUM ( 80 ) * 3
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6371
SELECT ALL - 67 DIV - SUM( 22 ) - - 50 * + 41 col2
----
2053

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL - 67 / - SUM ( 22 ) - - 50 * + 41 col2
----
2053

query I rowsort
SELECT + 27 * - 5 AS col1
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-6373
SELECT DISTINCT - 58 DIV ( - COALESCE ( 48, - 72 + - 83 * - 46, 3 ) * - 88 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT - 58 / ( - COALESCE ( 48, - 72 + - 83 * - 46, 3 ) * - 88 ) AS col2
----
0

query I rowsort
SELECT - 19 * 77 + - 24
----
-1487

query I rowsort
SELECT ALL 67 * 27 AS col1
----
1809

onlyif mysql # DIV for integer division: 
query I rowsort label-6376
SELECT 67 DIV 32 + 54 col2
----
56

skipif mysql # not compatible
query I rowsort label-6376
SELECT 67 / 32 + 54 col2
----
56

query I rowsort
SELECT + 55 + 28 AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), - 38 + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), - 38 + 78 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT + 49 DIV 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6379
SELECT + 49 / 37 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT CASE ( 34 ) WHEN + ( 45 ) * - COUNT( * ) + 49 THEN 65 + + ( 34 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT CASE ( 34 ) WHEN + ( 45 ) * - COUNT ( * ) + 49 THEN 65 + + ( 34 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 96 * 86
----
8256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT + 78 * NULLIF ( 14, 90 / COALESCE ( - 64, - COUNT( - 58 ) / 28 ) ) + COUNT( * )
----
1093

skipif mysql # not compatible
query I rowsort label-6383
SELECT + 78 * NULLIF ( 14, 90 / COALESCE ( - 64, - COUNT ( - 58 ) / 28 ) ) + COUNT ( * )
----
1093

query I rowsort
SELECT DISTINCT 61 * 66 + + 17
----
4043

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT - - 67 * - 21 - + 38 * COUNT( * ) AS col0
----
-1445

skipif mysql # not compatible
query I rowsort label-6385
SELECT - - 67 * - 21 - + 38 * COUNT ( * ) AS col0
----
-1445

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT DISTINCT + COUNT( * ) * 60 + 8
----
68

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT + COUNT ( * ) * 60 + 8
----
68

query I rowsort
SELECT + - 91 - - 95
----
4

query I rowsort
SELECT ALL - + ( - 8 ) + + 98
----
106

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT - 74 + 36 DIV 7
----
-69

skipif mysql # not compatible
query I rowsort label-6390
SELECT - 74 + 36 / 7
----
-69

query I rowsort
SELECT - 78 * 58
----
-4524

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

skipif mysql # not compatible
query I rowsort label-6392
SELECT - + CAST ( NULL AS INTEGER ) + + 37 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 80 * - COALESCE ( 22, - 21 ) AS col0
----
1760

query I rowsort
SELECT ALL + - 94 - - 77 AS col1
----
-17

query I rowsort
SELECT - + 64 * 71
----
-4544

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT SUM( ALL + COALESCE ( 1, - 24 * - 19, - 33 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6396
SELECT SUM ( ALL + COALESCE ( 1, - 24 * - 19, - 33 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT - 23 + COUNT( * ) * + 4 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-6397
SELECT - 23 + COUNT ( * ) * + 4 AS col2
----
-19

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

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

query I rowsort
SELECT - COALESCE ( - 78, - 77 ) * - 81 col0
----
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT COUNT( * ) + 49
----
50

skipif mysql # not compatible
query I rowsort label-6400
SELECT COUNT ( * ) + 49
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6401
SELECT 97 DIV + 76 col0
----
1

skipif mysql # not compatible
query I rowsort label-6401
SELECT 97 / + 76 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT 10 DIV - 10 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6402
SELECT 10 / - 10 AS col2
----
-1

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

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

query I rowsort
SELECT 72 * - 7 * - 76 + - 6
----
38298

query I rowsort
SELECT 22 * 64
----
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT COUNT( * ) + - 45 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6406
SELECT COUNT ( * ) + - 45 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT DISTINCT COUNT( DISTINCT + + 74 ) * 28
----
28

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT COUNT ( DISTINCT + + 74 ) * 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT ALL - NULLIF ( + 79, + 15 * 46 ) + - 53 * - ( - CASE 94 WHEN - 16 / ( 79 ) THEN - 3 / + 17 WHEN 73 THEN NULL ELSE COUNT( * ) * CASE + 11 WHEN + COUNT( * ) * 15 THEN 75 * - 30 WHEN + 52 THEN NULL ELSE NULL END END / - 83 - + 51 * COALESCE ( 35 + 57 / 85, + COUNT( * ), 97 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL - NULLIF ( + 79, + 15 * 46 ) + - 53 * - ( - CASE 94 WHEN - 16 / ( 79 ) THEN - 3 / + 17 WHEN 73 THEN NULL ELSE COUNT ( * ) * CASE + 11 WHEN + COUNT ( * ) * 15 THEN 75 * - 30 WHEN + 52 THEN NULL ELSE NULL END END / - 83 - + 51 * COALESCE ( 35 + 57 / 85, + COUNT ( * ), 97 ) ) AS col1
----
NULL

query I rowsort
SELECT 41 - 53 * 74
----
-3881

query I rowsort
SELECT ALL 60 + - - 90 + ( 48 ) AS col1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL - 50 + - 60 * + COUNT( * ) col2
----
-110

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - 50 + - 60 * + COUNT ( * ) col2
----
-110

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6413
SELECT + 13 + - + CAST( - 32 AS SIGNED ) DIV + 25 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6413
SELECT + 13 + - + CAST ( - 32 AS INTEGER ) / + 25 AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6414
SELECT DISTINCT + COUNT( * ) + + + 71 + COUNT( * ) * + CASE CAST( 89 AS SIGNED ) - CAST( NULL AS DECIMAL ) WHEN AVG ( + 84 ) * - COUNT( * ) THEN - 72 DIV 99 + COUNT( * ) WHEN + 1 THEN NULL ELSE 51 + + COUNT( * ) * + COUNT( * ) END * MIN( DISTINCT 23 * 93 )
----
111300

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT + COUNT ( * ) + + + 71 + COUNT ( * ) * + CASE CAST ( 89 AS INTEGER ) - CAST ( NULL AS REAL ) WHEN AVG ( + 84 ) * - COUNT ( * ) THEN - 72 / 99 + COUNT ( * ) WHEN + 1 THEN NULL ELSE 51 + + COUNT ( * ) * + COUNT ( * ) END * MIN ( DISTINCT 23 * 93 )
----
111300

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT + 84 * + NULLIF ( 28, + ( + CASE - 89 WHEN SUM( DISTINCT - 46 ) * 62 THEN 54 + 98 * - 23 END ) + 86 ) + 69
----
2421

skipif mysql # not compatible
query I rowsort label-6415
SELECT + 84 * + NULLIF ( 28, + ( + CASE - 89 WHEN SUM ( DISTINCT - 46 ) * 62 THEN 54 + 98 * - 23 END ) + 86 ) + 69
----
2421

query I rowsort
SELECT 93 - - - ( + 19 )
----
74

query I rowsort
SELECT ALL 79 + + - 20 AS col1
----
59

query I rowsort
SELECT - 62 * + + 2 col1
----
-124

query I rowsort
SELECT ALL + 43 * - 60
----
-2580

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

query I rowsort
SELECT DISTINCT - 32 - 2 * 46
----
-124

query I rowsort
SELECT DISTINCT - 51 - 77 col0
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6423
SELECT DISTINCT 64 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT 64 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 38 + - + 76 + 73 * ( 71 )
----
5069

query I rowsort
SELECT ( + - 47 ) * 67
----
-3149

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

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

query I rowsort
SELECT DISTINCT - ( 88 ) - 43 * + 66
----
-2926

query I rowsort
SELECT 28 + - - 25 AS col2
----
53

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

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

query II rowsort
SELECT DISTINCT 6, 84 AS col1
----
6
84

query I rowsort
SELECT 16 + + 34 AS col1
----
50

query I rowsort
SELECT 26 + - 20
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6433
SELECT DISTINCT + CASE - 12 WHEN 63 * - ( CAST( MIN( DISTINCT 45 ) AS DECIMAL ) + + CAST( NULL AS SIGNED ) ) THEN 11 + 93 WHEN + 26 THEN NULL ELSE + 56 + 73 * - 97 END DIV - 93
----
75

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT + CASE - 12 WHEN 63 * - ( CAST ( MIN ( DISTINCT 45 ) AS REAL ) + + CAST ( NULL AS INTEGER ) ) THEN 11 + 93 WHEN + 26 THEN NULL ELSE + 56 + 73 * - 97 END / - 93
----
75

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

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

query I rowsort
SELECT 6 + + 65 col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT COUNT( * ) DIV 81 * - + 16 col1
----
0

skipif mysql # not compatible
query I rowsort label-6436
SELECT COUNT ( * ) / 81 * - + 16 col1
----
0

query I rowsort
SELECT 16 + - 71 + 76
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6438
SELECT + 35 DIV - + COUNT( * ) + - 30 * 68
----
-2075

skipif mysql # not compatible
query I rowsort label-6438
SELECT + 35 / - + COUNT ( * ) + - 30 * 68
----
-2075

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

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

query I rowsort
SELECT 61 + 87 AS col0
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-6441
SELECT 35 DIV - - NULLIF ( + ( NULLIF ( 97, ( + 48 ) ) ), + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-6441
SELECT 35 / - - NULLIF ( + ( NULLIF ( 97, ( + 48 ) ) ), + 40 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6442
SELECT DISTINCT - 23 + COALESCE ( - + 57, 15 DIV + 74 + COUNT( * ), + COUNT( * ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT - 23 + COALESCE ( - + 57, 15 / + 74 + COUNT ( * ), + COUNT ( * ) ) AS col0
----
-80

query I rowsort
SELECT ALL 60 + + - 21 * - 4 + 64
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT 51 + - + COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6444
SELECT 51 + - + COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT CASE + 26 WHEN 83 THEN 43 / - COUNT( * ) WHEN 87 THEN NULL END + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT CASE + 26 WHEN 83 THEN 43 / - COUNT ( * ) WHEN 87 THEN NULL END + 32 AS col0
----
NULL

query I rowsort
SELECT ALL + + 40 + 71
----
111

query I rowsort
SELECT 25 * - 58
----
-1450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6448
SELECT DISTINCT - 96 + - + 54 + - 29 + 22 DIV 69 * - 32 * COUNT( * )
----
-179

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT - 96 + - + 54 + - 29 + 22 / 69 * - 32 * COUNT ( * )
----
-179

query I rowsort
SELECT 48 * + 51 AS col0
----
2448

query I rowsort
SELECT DISTINCT + - 98 - - 42 AS col1
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-6451
SELECT + 60 DIV - 26 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6451
SELECT + 60 / - 26 AS col2
----
-2

query I rowsort
SELECT ALL + 2 * - 81 * - - 27
----
-4374

query II rowsort
SELECT 20 AS col0, - 94 AS col0
----
20
-94

query II rowsort
SELECT ALL + 61 AS col0, CASE + + 62 WHEN 82 THEN - 40 WHEN 55 * 9 THEN NULL END * 95 AS col0
----
61
NULL

query II rowsort
SELECT ALL 17 AS col2, - ( 90 ) AS col1
----
17
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT 64 * - + 8 + COUNT( * ) AS col1
----
-511

skipif mysql # not compatible
query I rowsort label-6456
SELECT 64 * - + 8 + COUNT ( * ) AS col1
----
-511

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT DISTINCT CAST( - 36 AS SIGNED ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT CAST ( - 36 AS INTEGER ) AS col0
----
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT + + 81 DIV - 41
----
-1

skipif mysql # not compatible
query I rowsort label-6460
SELECT + + 81 / - 41
----
-1

query I rowsort
SELECT ALL ( - 81 ) * + 6 * ( 49 ) * - 46
----
1095444

onlyif mysql # DIV for integer division: 
query I rowsort label-6462
SELECT DISTINCT 10 DIV - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT 10 / - 12 AS col0
----
0

query I rowsort
SELECT + 39 - - + 81 AS col0
----
120

query I rowsort
SELECT ALL 45 * + + 50
----
2250

onlyif mysql # aggregate syntax: 
query II rowsort label-6465
SELECT - 32 * COUNT( * ) col1, - 5 AS col2
----
-32
-5

skipif mysql # not compatible
query II rowsort label-6465
SELECT - 32 * COUNT ( * ) col1, - 5 AS col2
----
-32
-5

query I rowsort
SELECT ALL NULLIF ( + 99, + - 65 + - 15 ) + + 42 * + 41
----
1821

query I rowsort
SELECT - NULLIF ( + 94, - + 40 )
----
-94

query I rowsort
SELECT - 26 + + COALESCE ( - 42, 2 + - 72 ) * 20
----
-866

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6469
SELECT ALL 32 + 1 AS col0, - 45 * + AVG ( + CAST( NULL AS SIGNED ) ) * - 95
----
33
NULL

skipif mysql # not compatible
query II rowsort label-6469
SELECT ALL 32 + 1 AS col0, - 45 * + AVG ( + CAST ( NULL AS INTEGER ) ) * - 95
----
33
NULL

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

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL COUNT ( DISTINCT + 60 ) AS col1
----
1

query I rowsort
SELECT - NULLIF ( + + 66, 27 / + + 29 ) * + 35 col2
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT DISTINCT 61 + + SUM( DISTINCT 8 ) col0
----
69

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT 61 + + SUM ( DISTINCT 8 ) col0
----
69

query I rowsort
SELECT ALL - 9 + + + 72 - + + 21 * - 35 + 53 * - 51
----
-1905

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT - CASE COUNT( * ) WHEN - 62 * + - 72 * 18 THEN + NULLIF ( 72, - 25 + 25 ) * - 94 END * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6474
SELECT - CASE COUNT ( * ) WHEN - 62 * + - 72 * 18 THEN + NULLIF ( 72, - 25 + 25 ) * - 94 END * + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT + 54 - - - 38 col1
----
16

query II rowsort
SELECT ( 16 ) AS col2, + 81 AS col2
----
16
81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6478
SELECT - CAST( NULL AS SIGNED ) * 73 * COUNT( ALL - + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6478
SELECT - CAST ( NULL AS INTEGER ) * 73 * COUNT ( ALL - + 91 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6479
SELECT + CAST( NULL AS DECIMAL ) * - - 87 + 98 + - - COUNT( 39 ) * 20 + 79 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT + CAST ( NULL AS REAL ) * - - 87 + 98 + - - COUNT ( 39 ) * 20 + 79 col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT DISTINCT - 9 * 17 * - 86 * + - COUNT( * )
----
-13158

skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT - 9 * 17 * - 86 * + - COUNT ( * )
----
-13158

query I rowsort
SELECT ALL - 98 * 55
----
-5390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6483
SELECT DISTINCT + COUNT( - 29 ) * - - 5 - + CAST( - 64 AS SIGNED ) + ( - 1 + - MIN( DISTINCT 85 ) ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT + COUNT ( - 29 ) * - - 5 - + CAST ( - 64 AS INTEGER ) + ( - 1 + - MIN ( DISTINCT 85 ) ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT - 16 * - COUNT( * ) + - - 27
----
43

skipif mysql # not compatible
query I rowsort label-6484
SELECT - 16 * - COUNT ( * ) + - - 27
----
43

query I rowsort
SELECT - 97 * - + 4 AS col0
----
388

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT - MIN( + 91 ) * + - ( 46 ) * + SUM( DISTINCT 48 * + 26 ) + 67 AS col1
----
5224195

skipif mysql # not compatible
query I rowsort label-6486
SELECT - MIN ( + 91 ) * + - ( 46 ) * + SUM ( DISTINCT 48 * + 26 ) + 67 AS col1
----
5224195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6487
SELECT - CAST( NULL AS SIGNED ) + + COALESCE ( COUNT( * ), - + 54, CASE CASE + 93 WHEN CAST( + COUNT( * ) AS SIGNED ) + ( ( CASE 98 WHEN 99 THEN NULL WHEN - ( 28 ) * COALESCE ( + CAST( NULL AS DECIMAL ), 94, - 33 ) + + NULLIF ( COUNT( * ), 25 - + 28 ) THEN - COUNT( * ) END ) - 44 ) * 40 THEN NULL WHEN COUNT( * ) THEN + 89 END WHEN + 7 THEN NULL ELSE 34 * + 38 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT - CAST ( NULL AS INTEGER ) + + COALESCE ( COUNT ( * ), - + 54, CASE CASE + 93 WHEN CAST ( + COUNT ( * ) AS INTEGER ) + ( ( CASE 98 WHEN 99 THEN NULL WHEN - ( 28 ) * COALESCE ( + CAST ( NULL AS REAL ), 94, - 33 ) + + NULLIF ( COUNT ( * ), 25 - + 28 ) THEN - COUNT ( * ) END ) - 44 ) * 40 THEN NULL WHEN COUNT ( * ) THEN + 89 END WHEN + 7 THEN NULL ELSE 34 * + 38 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT + - CAST( + NULLIF ( + + 66, 24 / - 34 ) AS SIGNED ) - 87
----
-153

skipif mysql # not compatible
query I rowsort label-6488
SELECT + - CAST ( + NULLIF ( + + 66, 24 / - 34 ) AS INTEGER ) - 87
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT - + 85 * CASE 87 WHEN 15 THEN NULL WHEN 51 * COUNT( + 62 * + 19 ) + ( 8 + + 64 ) THEN - 47 + COUNT( * ) * + 91 END - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT - + 85 * CASE 87 WHEN 15 THEN NULL WHEN 51 * COUNT ( + 62 * + 19 ) + ( 8 + + 64 ) THEN - 47 + COUNT ( * ) * + 91 END - 96
----
NULL

query I rowsort
SELECT ALL + ( + 55 ) AS col0
----
55

query I rowsort
SELECT ALL + - 28 * - 93 + + 49 * 62 + 27 AS col2
----
5669

query I rowsort
SELECT + 39 + + 47
----
86

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

query I rowsort
SELECT + 85 + 51 * - 58 * - ( + - 76 )
----
-224723

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT + 97 + - 11 + + - 10 + + - 79 * - ( COUNT( * ) )
----
155

skipif mysql # not compatible
query I rowsort label-6495
SELECT + 97 + - 11 + + - 10 + + - 79 * - ( COUNT ( * ) )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT DISTINCT + COUNT( * ) + 2 + - 36 * + + COUNT( * ) * - - 51 + + COUNT( * )
----
-1832

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT + COUNT ( * ) + 2 + - 36 * + + COUNT ( * ) * - - 51 + + COUNT ( * )
----
-1832

query I rowsort
SELECT ALL 85 + + 61 AS col0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT + MIN( + 54 ) + 91 * 75 + - 0 AS col1
----
6879

skipif mysql # not compatible
query I rowsort label-6498
SELECT + MIN ( + 54 ) + 91 * 75 + - 0 AS col1
----
6879

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL ( - ( - SUM( DISTINCT + 58 ) ) ) + - 26 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL ( - ( - SUM ( DISTINCT + 58 ) ) ) + - 26 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT ALL 55 DIV - + 17
----
-3

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL 55 / - + 17
----
-3

query I rowsort
SELECT ALL 78 * 76
----
5928

query I rowsort
SELECT ALL + 50 * - 32 AS col1
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT + NULLIF ( + + 19, - 34 * - - 91 * - 87 * COUNT( * ) - CASE 92 WHEN - 27 THEN NULL ELSE - 48 END ) + - 29
----
-10

skipif mysql # not compatible
query I rowsort label-6503
SELECT + NULLIF ( + + 19, - 34 * - - 91 * - 87 * COUNT ( * ) - CASE 92 WHEN - 27 THEN NULL ELSE - 48 END ) + - 29
----
-10

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

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

query I rowsort
SELECT + 55 + + 67
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT + 19 + + COALESCE ( - NULLIF ( + - 16, + + CAST( NULL AS SIGNED ) ), 62 * 27, - 53 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6506
SELECT + 19 + + COALESCE ( - NULLIF ( + - 16, + + CAST ( NULL AS INTEGER ) ), 62 * 27, - 53 ) AS col0
----
35

query I rowsort
SELECT + 31 + + 73 * 7 * - 95 + + 43 AS col2
----
-48471

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT + 88 DIV + 73 + 50
----
51

skipif mysql # not compatible
query I rowsort label-6508
SELECT + 88 / + 73 + 50
----
51

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6510
SELECT DISTINCT - + 4 DIV 1 - - MAX( 97 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT - + 4 / 1 - - MAX ( 97 ) AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6511
SELECT + + COUNT( * ), - 79 DIV + 73 AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-6511
SELECT + + COUNT ( * ), - 79 / + 73 AS col2
----
1
-1

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

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

query I rowsort
SELECT - 29 + + NULLIF ( - + 36, 14 / + 44 ) * 30
----
-1109

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL - + ( + 65 ) * + 80 * - - 16 + COUNT( + 90 ) * NULLIF ( - 41 + 53, COUNT( * ) / 70 + 49 ) AS col1
----
-83188

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL - + ( + 65 ) * + 80 * - - 16 + COUNT ( + 90 ) * NULLIF ( - 41 + 53, COUNT ( * ) / 70 + 49 ) AS col1
----
-83188

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT + CASE + 66 WHEN + 16 THEN COALESCE ( 15, 53 * + 80 + - AVG ( 15 ), - 48 ) / 8 WHEN + 30 + NULLIF ( 88 - ( SUM( COALESCE ( - 11, - 34 ) ) ), - ( COUNT( 24 ) ) * 86 ) / - 99 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT + CASE + 66 WHEN + 16 THEN COALESCE ( 15, 53 * + 80 + - AVG ( 15 ), - 48 ) / 8 WHEN + 30 + NULLIF ( 88 - ( SUM ( COALESCE ( - 11, - 34 ) ) ), - ( COUNT ( 24 ) ) * 86 ) / - 99 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - - 75 * + 24 AS col1
----
1800

query I rowsort
SELECT DISTINCT - 53 * + 40
----
-2120

query I rowsort
SELECT + - COALESCE ( 75, - ( - 90 ) + + - 29 + + 58 ) * - 65 + 29 AS col2
----
4904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6519
SELECT COUNT( * ) * + + COALESCE ( - ( - 54 ), - CASE COUNT( * ) WHEN 45 + + 12 THEN NULL ELSE 19 * COUNT( * ) END * 75 ) DIV - 27 + 47 * 37 AS col0
----
1737

skipif mysql # not compatible
query I rowsort label-6519
SELECT COUNT ( * ) * + + COALESCE ( - ( - 54 ), - CASE COUNT ( * ) WHEN 45 + + 12 THEN NULL ELSE 19 * COUNT ( * ) END * 75 ) / - 27 + 47 * 37 AS col0
----
1737

query I rowsort
SELECT DISTINCT - 3 * - 1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6521
SELECT DISTINCT + 92 * - COUNT( * ) * - 98, + NULLIF ( + - CAST( NULL AS SIGNED ), COUNT( * ) + 45 ) AS col2
----
9016
NULL

skipif mysql # not compatible
query II rowsort label-6521
SELECT DISTINCT + 92 * - COUNT ( * ) * - 98, + NULLIF ( + - CAST ( NULL AS INTEGER ), COUNT ( * ) + 45 ) AS col2
----
9016
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT ALL - ( + 4 ) + + + 95 * - COUNT( * ) + + + 9
----
-90

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL - ( + 4 ) + + + 95 * - COUNT ( * ) + + + 9
----
-90

query II rowsort
SELECT ALL - 59 * + 66 + - 75, 68 AS col2
----
-3969
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT DISTINCT + + 26 + - ( + + NULLIF ( - - 47, - + COUNT( * ) * 43 ) ) + MIN( DISTINCT 25 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT + + 26 + - ( + + NULLIF ( - - 47, - + COUNT ( * ) * 43 ) ) + MIN ( DISTINCT 25 ) AS col1
----
4

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6526
SELECT ALL + 68 + 31 DIV - NULLIF ( - + 5, + 24 ) + - 33 * - 99
----
3341

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL + 68 + 31 / - NULLIF ( - + 5, + 24 ) + - 33 * - 99
----
3341

query I rowsort
SELECT ALL - 54 + - - 52 AS col2
----
-2

query II rowsort
SELECT 38 AS col2, 11 - - 51 AS col0
----
38
62

query I rowsort
SELECT 54 * + + 56 - - - 8 AS col2
----
3016

query I rowsort
SELECT 16 * 19 AS col1
----
304

query I rowsort
SELECT 51 + + 51 AS col1
----
102

query II rowsort
SELECT - 60 AS col2, 20 AS col0
----
-60
20

query I rowsort
SELECT ALL + 9 + ( 60 ) col2
----
69

query II rowsort
SELECT 33, + ( NULLIF ( - 57, - - 16 ) ) * - 46 AS col1
----
33
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT 41 * - COUNT( * ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-6535
SELECT 41 * - COUNT ( * ) col2
----
-41

query II rowsort
SELECT ALL 71 AS col1, 13 AS col2
----
71
13

query I rowsort
SELECT DISTINCT - 64 * - 2 AS col0
----
128

query I rowsort
SELECT ALL + ( + 51 ) + - - 12 AS col2
----
63

query II rowsort
SELECT - 28 AS col1, + 15
----
-28
15

query I rowsort
SELECT 31 * - - 4
----
124

query II rowsort
SELECT DISTINCT 86, + 24 col2
----
86
24

query II rowsort
SELECT - 39 AS col0, + 16
----
-39
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT DISTINCT 36 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT 36 / 48
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6544
SELECT CASE 54 WHEN + COUNT( * ) / COUNT( * ) THEN - COALESCE ( - 27, - 93, + 57 + 77, 31 ) END - - CAST( 63 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT CASE 54 WHEN + COUNT ( * ) / COUNT ( * ) THEN - COALESCE ( - 27, - 93, + 57 + 77, 31 ) END - - CAST ( 63 AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 13 AS col0, 7
----
-13
7

query II rowsort
SELECT + 23, 21 * + + 2 AS col1
----
23
42

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

query I rowsort
SELECT + 22 * - 73
----
-1606

query I rowsort
SELECT 93 * + 28 * - - 77
----
200508

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT SUM( - 88 ) + - 22
----
-110

skipif mysql # not compatible
query I rowsort label-6550
SELECT SUM ( - 88 ) + - 22
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-6551
SELECT 23 DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6551
SELECT 23 / 78 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6552
SELECT + COUNT( * ) * + 58 + - + MAX( ALL - 79 ) - + + CAST( - 77 AS SIGNED ) * + 69
----
5450

skipif mysql # not compatible
query I rowsort label-6552
SELECT + COUNT ( * ) * + 58 + - + MAX ( ALL - 79 ) - + + CAST ( - 77 AS INTEGER ) * + 69
----
5450

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT - 45 * + - MIN( ALL + 27 ) + 80 * - 39 + 88 col0
----
-1817

skipif mysql # not compatible
query I rowsort label-6553
SELECT - 45 * + - MIN ( ALL + 27 ) + 80 * - 39 + 88 col0
----
-1817

query II rowsort
SELECT 8, 38 AS col1
----
8
38

query I rowsort
SELECT ALL 19 * 61 AS col2
----
1159

query I rowsort
SELECT - 88 * - ( + 30 )
----
2640

onlyif mysql # DIV for integer division: 
query II rowsort label-6557
SELECT DISTINCT - + 81, ( + 40 ) + + 71 DIV + 42 col0
----
-81
41

skipif mysql # not compatible
query II rowsort label-6557
SELECT DISTINCT - + 81, ( + 40 ) + + 71 / + 42 col0
----
-81
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL 90 + - MAX( - 53 )
----
143

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL 90 + - MAX ( - 53 )
----
143

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6559
SELECT + CAST( NULL AS DECIMAL ) + - - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT + CAST ( NULL AS REAL ) + - - 32 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 3 + - + 36
----
-33

query I rowsort
SELECT ALL - 13 + 99
----
86

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

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

query I rowsort
SELECT ALL + 39 + 81
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-6564
SELECT COUNT( * ) + + 22 AS col0, 6
----
23
6

skipif mysql # not compatible
query II rowsort label-6564
SELECT COUNT ( * ) + + 22 AS col0, 6
----
23
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT DISTINCT - ( + 70 ) + 0 - NULLIF ( - 29, + 54 * - 62 * + COUNT( * ) - ( - 96 ) ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT - ( + 70 ) + 0 - NULLIF ( - 29, + 54 * - 62 * + COUNT ( * ) - ( - 96 ) ) AS col2
----
-41

query I rowsort
SELECT 59 * - 7 + + - 85
----
-498

onlyif mysql # aggregate syntax: 
query II rowsort label-6567
SELECT ALL - 77 + - 80 * + MIN( DISTINCT + + 93 ) + 93, - 41 + COUNT( * ) AS col0
----
-7424
-40

skipif mysql # not compatible
query II rowsort label-6567
SELECT ALL - 77 + - 80 * + MIN ( DISTINCT + + 93 ) + 93, - 41 + COUNT ( * ) AS col0
----
-7424
-40

query I rowsort
SELECT ALL + ( + - 14 ) + 14 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6569
SELECT 41 DIV + - MIN( DISTINCT ( 84 ) ) * 91
----
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT 41 / + - MIN ( DISTINCT ( 84 ) ) * 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6570
SELECT ALL - ( + MIN( DISTINCT - - 88 ) ) - + - 3 + - CAST( - 97 AS SIGNED ) + - - 13 DIV - 89 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL - ( + MIN ( DISTINCT - - 88 ) ) - + - 3 + - CAST ( - 97 AS INTEGER ) + - - 13 / - 89 AS col2
----
12

query I rowsort
SELECT 41 + - 88
----
-47

query I rowsort
SELECT 76 - + 18
----
58

query I rowsort
SELECT 50 + - 74 AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6574
SELECT ALL - COUNT( * ) * - 74 * + + 24, - 99 * + 50 + + 78 DIV COUNT( ( 38 ) ) AS col2
----
1776
-4872

skipif mysql # not compatible
query II rowsort label-6574
SELECT ALL - COUNT ( * ) * - 74 * + + 24, - 99 * + 50 + + 78 / COUNT ( ( 38 ) ) AS col2
----
1776
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT 66 + - + NULLIF ( - 63, 5 * + + 50 + - 20 + + COUNT( * ) ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-6575
SELECT 66 + - + NULLIF ( - 63, 5 * + + 50 + - 20 + + COUNT ( * ) ) AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT SUM( - 58 ) + 95
----
37

skipif mysql # not compatible
query I rowsort label-6576
SELECT SUM ( - 58 ) + 95
----
37

query I rowsort
SELECT ALL - 30 * 31
----
-930

onlyif mysql # aggregate syntax: 
query II rowsort label-6578
SELECT ALL + COUNT( * ) * + + 97 + - 94, ( + COUNT( * ) ) * + - 52 AS col1
----
3
-52

skipif mysql # not compatible
query II rowsort label-6578
SELECT ALL + COUNT ( * ) * + + 97 + - 94, ( + COUNT ( * ) ) * + - 52 AS col1
----
3
-52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6580
SELECT + COALESCE ( + + 14, + 14 + + + 94 + 49 * + - 71 * COALESCE ( COALESCE ( 36, + 17, - 48 ), - CAST( 85 AS SIGNED ) ) ) + CASE 98 WHEN - NULLIF ( - NULLIF ( - 0, - 90 * - 26 - + 48 * + 49 ), 46 + ( + 79 ) ) THEN ( 2 ) / + CAST( NULL AS SIGNED ) + - 74 END * + COUNT( ALL 6 + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT + COALESCE ( + + 14, + 14 + + + 94 + 49 * + - 71 * COALESCE ( COALESCE ( 36, + 17, - 48 ), - CAST ( 85 AS INTEGER ) ) ) + CASE 98 WHEN - NULLIF ( - NULLIF ( - 0, - 90 * - 26 - + 48 * + 49 ), 46 + ( + 79 ) ) THEN ( 2 ) / + CAST ( NULL AS INTEGER ) + - 74 END * + COUNT ( ALL 6 + 5 )
----
NULL

query I rowsort
SELECT DISTINCT + 86 * 78
----
6708

query I rowsort
SELECT DISTINCT - 26 * - 73 + + + 63 AS col0
----
1961

onlyif mysql # aggregate syntax: 
query II rowsort label-6583
SELECT ALL + + ( - 86 ) AS col1, + 59 + - COUNT( * ) + + + 65
----
-86
123

skipif mysql # not compatible
query II rowsort label-6583
SELECT ALL + + ( - 86 ) AS col1, + 59 + - COUNT ( * ) + + + 65
----
-86
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL + 33 * - 64 + + 26 * + COUNT( * ) + - 51
----
-2137

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL + 33 * - 64 + + 26 * + COUNT ( * ) + - 51
----
-2137

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL - + 59 * + 81 + - 57 + - 18 * + 6 * 20 * 31 + - 25 * NULLIF ( - 32, + ( - NULLIF ( COUNT( * ), 88 * 52 ) ) ) AS col1
----
-70996

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL - + 59 * + 81 + - 57 + - 18 * + 6 * 20 * 31 + - 25 * NULLIF ( - 32, + ( - NULLIF ( COUNT ( * ), 88 * 52 ) ) ) AS col1
----
-70996

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT ALL - - 37 * + 60 + + + CASE - SUM( - 63 ) WHEN - - 34 THEN NULL WHEN - 62 THEN - 36 ELSE COUNT( * ) END AS col0
----
2221

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL - - 37 * + 60 + + + CASE - SUM ( - 63 ) WHEN - - 34 THEN NULL WHEN - 62 THEN - 36 ELSE COUNT ( * ) END AS col0
----
2221

query II rowsort
SELECT NULLIF ( + 55, 69 ), 43 AS col2
----
55
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT DISTINCT + 9 * - + COUNT( * ) * + 74 col1
----
-666

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT + 9 * - + COUNT ( * ) * + 74 col1
----
-666

query I rowsort
SELECT + 86 + - 36 * - 1 + + + 78
----
200

query II rowsort
SELECT ALL + 81 * - ( - 8 ), + 98 AS col2
----
648
98

query I rowsort
SELECT ALL + COALESCE ( 38, ( + 57 ) + + 70, + 60 ) * - 14 - + + 37
----
-569

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT DISTINCT + 89 * - + 50 * - 86 - - CASE + COUNT( * ) WHEN - 36 THEN - 25 * - 93 ELSE COUNT( * ) END AS col0
----
382701

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT + 89 * - + 50 * - 86 - - CASE + COUNT ( * ) WHEN - 36 THEN - 25 * - 93 ELSE COUNT ( * ) END AS col0
----
382701

onlyif mysql # aggregate syntax: 
query II rowsort label-6594
SELECT ALL + COUNT( * ) AS col0, + COUNT( * ) + + - ( - + MIN( ALL - - 79 ) ) * 95 + + 84 AS col2
----
1
7590

skipif mysql # not compatible
query II rowsort label-6594
SELECT ALL + COUNT ( * ) AS col0, + COUNT ( * ) + + - ( - + MIN ( ALL - - 79 ) ) * 95 + + 84 AS col2
----
1
7590

query I rowsort
SELECT - COALESCE ( - ( - 32 ), 2 ) * 56
----
-1792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6596
SELECT - COALESCE ( + COUNT( * ), + 69 * ( 18 ) * 52 - - COALESCE ( + 89, 47 DIV 98 + 2 * 37 ), COALESCE ( 72, + 34, COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6596
SELECT - COALESCE ( + COUNT ( * ), + 69 * ( 18 ) * 52 - - COALESCE ( + 89, 47 / 98 + 2 * 37 ), COALESCE ( 72, + 34, COUNT ( * ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6597
SELECT - 14 + - COUNT( * ) + + COUNT( * ) + + 76 DIV + COUNT( * ) + - + 96 + + 92 * + 97 + 8 * 21 col0
----
9058

skipif mysql # not compatible
query I rowsort label-6597
SELECT - 14 + - COUNT ( * ) + + COUNT ( * ) + + 76 / + COUNT ( * ) + - + 96 + + 92 * + 97 + 8 * 21 col0
----
9058

query II rowsort
SELECT DISTINCT 30 AS col0, + 51
----
30
51

query II rowsort
SELECT ALL 39, 55 AS col0
----
39
55

query I rowsort
SELECT ALL 60 * - 50
----
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ALL 19 * + MAX( ALL - - 45 ) AS col2
----
855

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL 19 * + MAX ( ALL - - 45 ) AS col2
----
855

query I rowsort
SELECT DISTINCT - COALESCE ( 35, - 0 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT + - SUM( DISTINCT - 88 ) * COUNT( * ) - + + 79 * 80 * + 31
----
-195832

skipif mysql # not compatible
query I rowsort label-6603
SELECT + - SUM ( DISTINCT - 88 ) * COUNT ( * ) - + + 79 * 80 * + 31
----
-195832

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT - - 87 * - + 29 * - 81 - + 67 * + 50 + 52 + + 99 * + 91 + - COUNT( * )
----
210073

skipif mysql # not compatible
query I rowsort label-6604
SELECT - - 87 * - + 29 * - 81 - + 67 * + 50 + 52 + + 99 * + 91 + - COUNT ( * )
----
210073

query I rowsort
SELECT - + 18 * + + 81
----
-1458

query II rowsort
SELECT - 70 AS col2, + 91 * 6 * + 98 + + ( - COALESCE ( 83, + - 5 ) ) AS col0
----
-70
53425

query I rowsort
SELECT ALL + + 61 + + + 85 col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT ALL - COALESCE ( + 83, - + 44, SUM( - + 94 ) ) + + - 65 AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL - COALESCE ( + 83, - + 44, SUM ( - + 94 ) ) + + - 65 AS col2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT - MAX( DISTINCT 50 ) - - + 17
----
-33

skipif mysql # not compatible
query I rowsort label-6609
SELECT - MAX ( DISTINCT 50 ) - - + 17
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL + - SUM( ALL + 61 ) + - 79 * + 13 AS col0
----
-1088

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL + - SUM ( ALL + 61 ) + - 79 * + 13 AS col0
----
-1088

query I rowsort
SELECT DISTINCT - + 32 + - 37
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6612
SELECT ALL - CAST( NULL AS DECIMAL ) / ( - - 46 ) + 99 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL - CAST ( NULL AS REAL ) / ( - - 46 ) + 99 * + 50
----
NULL

query II rowsort
SELECT + 43 AS col2, + 68 AS col1
----
43
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6614
SELECT ALL - + 60 DIV + CASE + COUNT( * ) WHEN + 28 THEN NULL WHEN - 25 THEN - 87 DIV COUNT( - 88 ) ELSE 23 END * + 1 + - 12 * + 65 AS col1
----
-782

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL - + 60 / + CASE + COUNT ( * ) WHEN + 28 THEN NULL WHEN - 25 THEN - 87 / COUNT ( - 88 ) ELSE 23 END * + 1 + - 12 * + 65 AS col1
----
-782

query II rowsort
SELECT + + 66 AS col1, - COALESCE ( 26, - - 36 * CASE + 97 WHEN - 86 THEN NULL ELSE 78 END + 4 )
----
66
-26

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

skipif mysql # not compatible
query II rowsort label-6616
SELECT + - COUNT ( * ), COUNT ( * ) * 85 col2
----
-1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT + COALESCE ( 96, 67 * + COUNT( * ) * + + 32 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6617
SELECT + COALESCE ( 96, 67 * + COUNT ( * ) * + + 32 ) AS col1
----
96

query I rowsort
SELECT ALL + 80 * - 55
----
-4400

query I rowsort
SELECT + 98 * + 68 + + 35 + 9 AS col0
----
6708

query II rowsort
SELECT + + 11 - 76 * - 19, - 53 AS col0
----
1455
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6621
SELECT - COUNT( * ) DIV + 55 + - - COUNT( * ) + - 13 - - - 62 DIV 77 + + + 11 - - 45 + + 47 * 41
----
1971

skipif mysql # not compatible
query I rowsort label-6621
SELECT - COUNT ( * ) / + 55 + - - COUNT ( * ) + - 13 - - - 62 / 77 + + + 11 - - 45 + + 47 * 41
----
1971

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

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

query I rowsort
SELECT - + 25 * - 45 AS col0
----
1125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT ALL + + CAST( + 98 AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL + + CAST ( + 98 AS INTEGER ) AS col0
----
98

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

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT 27 / - COUNT ( * )
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) - + - CASE + MIN( - 72 ) WHEN - - NULLIF ( + SUM( - - 38 ), - - 11 ) THEN - 78 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) - + - CASE + MIN ( - 72 ) WHEN - - NULLIF ( + SUM ( - - 38 ), - - 11 ) THEN - 78 END col0
----
NULL

query II rowsort
SELECT + 11 * 34 + - + 69 * + 3, 93 col0
----
167
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6629
SELECT DISTINCT - CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT ALL + ( + MAX( + CAST( - 18 AS SIGNED ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + ( + MAX ( + CAST ( - 18 AS INTEGER ) ) )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT - 14 DIV - 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6631
SELECT - 14 / - 41 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6632
SELECT + 20 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-6632
SELECT + 20 / 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6633
SELECT ALL 26 * + CAST( - - 47 AS SIGNED ) AS col0
----
1222

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL 26 * + CAST ( - - 47 AS INTEGER ) AS col0
----
1222

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT CASE WHEN NOT NULL IS NOT NULL THEN COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-6634
SELECT CASE WHEN NOT NULL IS NOT NULL THEN COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT DISTINCT + COUNT( * ) * + 75 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT + COUNT ( * ) * + 75 AS col2
----
75

query I rowsort
SELECT DISTINCT + COALESCE ( 96, + 77, + 81 ) * - + 37
----
-3552

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6638
SELECT DISTINCT 84 * + 24, COALESCE ( - 31, + + COUNT( DISTINCT + 42 ) * - 47 * - - 37 * - - COUNT( * ) * - COALESCE ( COALESCE ( - ( + COUNT( * ) ), + CASE + 45 WHEN COALESCE ( 56, - 68 + 90 * 71, - 81 ) - + 27 THEN 5 + 44 WHEN 88 + 22 * + 26 THEN NULL ELSE NULL END + - 55 DIV 58, + 20 * 2 ), - CAST( - 74 AS SIGNED ) * 4 ) + 86 ) * 7 AS col0
----
2016
-217

skipif mysql # not compatible
query II rowsort label-6638
SELECT DISTINCT 84 * + 24, COALESCE ( - 31, + + COUNT ( DISTINCT + 42 ) * - 47 * - - 37 * - - COUNT ( * ) * - COALESCE ( COALESCE ( - ( + COUNT ( * ) ), + CASE + 45 WHEN COALESCE ( 56, - 68 + 90 * 71, - 81 ) - + 27 THEN 5 + 44 WHEN 88 + 22 * + 26 THEN NULL ELSE NULL END + - 55 / 58, + 20 * 2 ), - CAST ( - 74 AS INTEGER ) * 4 ) + 86 ) * 7 AS col0
----
2016
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT MAX( DISTINCT - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-6639
SELECT MAX ( DISTINCT - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT + ( - 26 ) + + SUM( DISTINCT 19 )
----
-7

skipif mysql # not compatible
query I rowsort label-6640
SELECT + ( - 26 ) + + SUM ( DISTINCT 19 )
----
-7

query I rowsort
SELECT + 32 + + 34 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT + ( + - 66 ) - - COUNT( + 51 )
----
-65

skipif mysql # not compatible
query I rowsort label-6642
SELECT + ( + - 66 ) - - COUNT ( + 51 )
----
-65

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

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

query I rowsort
SELECT 78 + 95
----
173

query I rowsort
SELECT + 15 * 70
----
1050

query I rowsort
SELECT ALL 85 + - - ( 69 ) AS col1
----
154

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT ALL COALESCE ( + 27, - 14, 78 DIV 95 + - + 22 DIV - 16 DIV - ( 68 ) * 85 ) + - 46 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL COALESCE ( + 27, - 14, 78 / 95 + - + 22 / - 16 / - ( 68 ) * 85 ) + - 46 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT CASE + ( SUM( ALL + 84 ) ) WHEN + + 51 + - - 20 + 86 THEN - + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT CASE + ( SUM ( ALL + 84 ) ) WHEN + + 51 + - - 20 + 86 THEN - + 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL - 87 + COUNT( + 45 )
----
-86

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL - 87 + COUNT ( + 45 )
----
-86

query I rowsort
SELECT ALL 51 + + - 4
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT COUNT( * ) + - + COALESCE ( + 14, - MIN( ALL - 53 ) ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6653
SELECT COUNT ( * ) + - + COALESCE ( + 14, - MIN ( ALL - 53 ) ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT ALL + COUNT( * ) + + + 99 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL + COUNT ( * ) + + + 99 AS col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT + ( - + 51 ) DIV 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6655
SELECT + ( - + 51 ) / 55 AS col1
----
0

query I rowsort
SELECT + 18 * 31
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT - + NULLIF ( CASE 21 WHEN + SUM( DISTINCT + 33 ) + + 96 THEN + 10 WHEN 25 + - COUNT( * ) + + 58 THEN NULL ELSE NULL END, 35 * + 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT - + NULLIF ( CASE 21 WHEN + SUM ( DISTINCT + 33 ) + + 96 THEN + 10 WHEN 25 + - COUNT ( * ) + + 58 THEN NULL ELSE NULL END, 35 * + 5 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT 26 * - + CASE + 14 WHEN 14 THEN + COUNT( * ) END * + - NULLIF ( - CASE - 90 WHEN + 7 + 86 * 71 THEN + COUNT( * ) WHEN 87 THEN NULL WHEN - COUNT( * ) * ( + 43 * 21 ) THEN - 83 END, 31 ) + 71 + ( 74 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT 26 * - + CASE + 14 WHEN 14 THEN + COUNT ( * ) END * + - NULLIF ( - CASE - 90 WHEN + 7 + 86 * 71 THEN + COUNT ( * ) WHEN 87 THEN NULL WHEN - COUNT ( * ) * ( + 43 * 21 ) THEN - 83 END, 31 ) + 71 + ( 74 ) AS col2
----
NULL

query I rowsort
SELECT + 31 + + 40
----
71

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

skipif mysql # not compatible
query I rowsort label-6660
SELECT CAST ( NULL AS INTEGER ) + - 43 col2
----
NULL

query I rowsort
SELECT ALL - + 54 - 0 col1
----
-54

query I rowsort
SELECT NULLIF ( 92, - + 60 * 66 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6663
SELECT DISTINCT + NULLIF ( - 71, + + CASE - 21 WHEN + 16 + - 36 THEN - 75 END * - - 43 DIV + - COALESCE ( 51, CAST( + 93 AS DECIMAL ) ) + - ( - CAST( 74 AS SIGNED ) ) * - 88 + 41 * COUNT( 8 ) ) - - COUNT( * ) DIV + 9
----
-71

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT + NULLIF ( - 71, + + CASE - 21 WHEN + 16 + - 36 THEN - 75 END * - - 43 / + - COALESCE ( 51, CAST ( + 93 AS REAL ) ) + - ( - CAST ( 74 AS INTEGER ) ) * - 88 + 41 * COUNT ( 8 ) ) - - COUNT ( * ) / + 9
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6664
SELECT ALL - - NULLIF ( - ( + COUNT( * ) ), - - CAST( + - ( 77 ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL - - NULLIF ( - ( + COUNT ( * ) ), - - CAST ( + - ( 77 ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6665
SELECT DISTINCT - CASE + 20 WHEN - 17 / + COUNT( * ) THEN NULL WHEN 49 THEN + 39 + 44 - 14 END, - 27 * 44 + + 85 AS col1
----
NULL
-1103

skipif mysql # not compatible
query II rowsort label-6665
SELECT DISTINCT - CASE + 20 WHEN - 17 / + COUNT ( * ) THEN NULL WHEN 49 THEN + 39 + 44 - 14 END, - 27 * 44 + + 85 AS col1
----
NULL
-1103

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - 6 * - - ( + SUM( DISTINCT + - 81 ) ) * - ( - 25 ) + 49 + - 80 + + 44 + + MAX( ALL + 5 ) * + 76
----
12543

skipif mysql # not compatible
query I rowsort label-6668
SELECT - 6 * - - ( + SUM ( DISTINCT + - 81 ) ) * - ( - 25 ) + 49 + - 80 + + 44 + + MAX ( ALL + 5 ) * + 76
----
12543

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6669
SELECT DISTINCT - NULLIF ( 11, - COUNT( * ) ) AS col0, 79 * + SUM( DISTINCT 87 ) * - 12 * - CAST( NULL AS DECIMAL ) / + ( - + 29 ) - 84
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-6669
SELECT DISTINCT - NULLIF ( 11, - COUNT ( * ) ) AS col0, 79 * + SUM ( DISTINCT 87 ) * - 12 * - CAST ( NULL AS REAL ) / + ( - + 29 ) - 84
----
-11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT 50 * COUNT( - 17 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6670
SELECT 50 * COUNT ( - 17 ) AS col2
----
50

query I rowsort
SELECT 86 * - 82 col0
----
-7052

query I rowsort
SELECT 76 + - + 93
----
-17

query I rowsort
SELECT DISTINCT - 74 + 96
----
22

query I rowsort
SELECT 88 * + 98
----
8624

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT 95 DIV - ( + 15 )
----
-6

skipif mysql # not compatible
query I rowsort label-6675
SELECT 95 / - ( + 15 )
----
-6

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

skipif mysql # not compatible
query II rowsort label-6676
SELECT 66 * + COUNT ( * ) * + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER )
----
66
NULL

query II rowsort
SELECT 63 AS col0, - 74 * + - 31 * - - 51 AS col2
----
63
116994

query II rowsort
SELECT ( 53 ) + + 56 AS col2, + 10 AS col1
----
109
10

query I rowsort
SELECT ALL 89 * - 18 AS col2
----
-1602

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

skipif mysql # not compatible
query I rowsort label-6680
SELECT - COUNT ( * ) / + 26
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6681
SELECT - CAST( NULL AS DECIMAL ) + - 53 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6681
SELECT - CAST ( NULL AS REAL ) + - 53 col1
----
NULL

query I rowsort
SELECT ALL 74 * + 90 AS col0
----
6660

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6683
SELECT DISTINCT 26 AS col1, + CAST( NULL AS SIGNED ) AS col0
----
26
NULL

skipif mysql # not compatible
query II rowsort label-6683
SELECT DISTINCT 26 AS col1, + CAST ( NULL AS INTEGER ) AS col0
----
26
NULL

query I rowsort
SELECT DISTINCT + 38 + + - NULLIF ( 12, + 14 * - 80 - - 56 ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6685
SELECT DISTINCT - + 77 * COALESCE ( - - COUNT( * ), + 98 + - 31 * + CAST( NULL AS SIGNED ) + + 85 * - 66 DIV + 40 + 93 + AVG ( ALL 34 ) DIV - 72, - 33 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT - + 77 * COALESCE ( - - COUNT ( * ), + 98 + - 31 * + CAST ( NULL AS INTEGER ) + + 85 * - 66 / + 40 + 93 + AVG ( ALL 34 ) / - 72, - 33 ) AS col1
----
-77

query I rowsort
SELECT DISTINCT 1 + + + 60 AS col1
----
61

query I rowsort
SELECT ALL 40 * + 92 col0
----
3680

query II rowsort
SELECT DISTINCT - 44, - 44 + - 79 AS col0
----
-44
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT CAST( NULL AS SIGNED ) - - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT CAST ( NULL AS INTEGER ) - - + 47
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6692
SELECT - - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - ( - 95 ) * - ( 34 ) * - + 75 AS col1
----
242250

onlyif mysql # DIV for integer division: 
query I rowsort label-6694
SELECT ALL 43 DIV + 13 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL 43 / + 13 AS col0
----
3

query I rowsort
SELECT + 82 - 98 + + 88
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6696
SELECT ALL - COUNT( * ) * NULLIF ( - + 59, - + 61 * + CAST( 83 AS SIGNED ) DIV - - 37 * 66 + 12 ) DIV 71 + ( + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL - COUNT ( * ) * NULLIF ( - + 59, - + 61 * + CAST ( 83 AS INTEGER ) / - - 37 * 66 + 12 ) / 71 + ( + 47 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT + MAX( 96 ) - 9 * - 6 + ( - 66 ) col1
----
84

skipif mysql # not compatible
query I rowsort label-6697
SELECT + MAX ( 96 ) - 9 * - 6 + ( - 66 ) col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL + 28 - - - NULLIF ( 46, - COUNT( * ) ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL + 28 - - - NULLIF ( 46, - COUNT ( * ) ) col0
----
-18

query II rowsort
SELECT DISTINCT 70 * + + ( - 8 ) AS col1, - 9 + - ( - 90 )
----
-560
81

query I rowsort
SELECT DISTINCT 74 * 5 - - 62 + 77 AS col2
----
509

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6702
SELECT 60 DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-6702
SELECT 60 / 47
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT 70 * 65 DIV - 21
----
-216

skipif mysql # not compatible
query I rowsort label-6703
SELECT 70 * 65 / - 21
----
-216

onlyif mysql # DIV for integer division: 
query II rowsort label-6704
SELECT ALL + 60 DIV 36, 44 + 34 col1
----
1
78

skipif mysql # not compatible
query II rowsort label-6704
SELECT ALL + 60 / 36, 44 + 34 col1
----
1
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6705
SELECT ALL - 89 AS col2, - CAST( NULL AS SIGNED ) * - - 85 AS col2
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-6705
SELECT ALL - 89 AS col2, - CAST ( NULL AS INTEGER ) * - - 85 AS col2
----
-89
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6706
SELECT + COALESCE ( - 39, NULLIF ( - NULLIF ( - CAST( 30 AS SIGNED ), - - COUNT( * ) / 11 * 45 ), - - 25 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-6706
SELECT + COALESCE ( - 39, NULLIF ( - NULLIF ( - CAST ( 30 AS INTEGER ), - - COUNT ( * ) / 11 * 45 ), - - 25 ) )
----
-39

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

skipif mysql # not compatible
query II rowsort label-6707
SELECT COUNT ( * ) AS col2, 82 AS col0
----
1
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6708
SELECT ALL 46 * MAX( + + 64 ) * - + 90 + 48 - - 75 DIV - 64 + 28 * - - 23 + + - MAX( + + 66 ) col0
----
-264335

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL 46 * MAX ( + + 64 ) * - + 90 + 48 - - 75 / - 64 + 28 * - - 23 + + - MAX ( + + 66 ) col0
----
-264335

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT DISTINCT COALESCE ( + - COUNT( * ), - + 73 ) * + NULLIF ( - - 83, ( COUNT( * ) ) * + 51 ) * 91 + + 15 + - + 61 + 43 * + 73 AS col0
----
-4460

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT COALESCE ( + - COUNT ( * ), - + 73 ) * + NULLIF ( - - 83, ( COUNT ( * ) ) * + 51 ) * 91 + + 15 + - + 61 + 43 * + 73 AS col0
----
-4460

onlyif mysql # aggregate syntax: 
query II rowsort label-6710
SELECT + COUNT( * ) * COUNT( * ) + 60 + + 76 AS col0, - ( + 94 ) + 13 AS col2
----
137
-81

skipif mysql # not compatible
query II rowsort label-6710
SELECT + COUNT ( * ) * COUNT ( * ) + 60 + + 76 AS col0, - ( + 94 ) + 13 AS col2
----
137
-81

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

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

query I rowsort
SELECT - 19 * - ( - - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6713
SELECT - 25 * - - 71 * - COUNT( DISTINCT - - 85 ) DIV + COUNT( * )
----
1775

skipif mysql # not compatible
query I rowsort label-6713
SELECT - 25 * - - 71 * - COUNT ( DISTINCT - - 85 ) / + COUNT ( * )
----
1775

query I rowsort
SELECT DISTINCT - 52 + - - ( - + 66 ) + + 21 + - 57 - - ( - 58 ) + + 30 * + CASE - 52 WHEN - 65 THEN 46 END * - 40 * 32 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT DISTINCT + MIN( - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT + MIN ( - 68 )
----
-68

query I rowsort
SELECT ALL 60 + + 72 + - - 35 + + 99 AS col1
----
266

query I rowsort
SELECT ALL - - 54 + - 75 AS col1
----
-21

query II rowsort
SELECT ALL + 51, - 29 + ( - - 7 ) AS col1
----
51
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT - + COUNT( DISTINCT 40 ) * - 78 + + + COUNT( * ) + + 97
----
176

skipif mysql # not compatible
query I rowsort label-6720
SELECT - + COUNT ( DISTINCT 40 ) * - 78 + + + COUNT ( * ) + + 97
----
176

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6721
SELECT - 3 + - + COALESCE ( + 14, 77 ) AS col1, 25 DIV + + CAST( - 97 AS SIGNED ) AS col0
----
-17
0

skipif mysql # not compatible
query II rowsort label-6721
SELECT - 3 + - + COALESCE ( + 14, 77 ) AS col1, 25 / + + CAST ( - 97 AS INTEGER ) AS col0
----
-17
0

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

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

query I rowsort
SELECT - 67 * - NULLIF ( - 83, - 77 ) + + 13 * + 91 AS col1
----
-4378

query I rowsort
SELECT + ( - 69 ) - + 42
----
-111

query III rowsort
SELECT - 30 + - + 49, - 54 * 0 AS col1, - 28 AS col0
----
-79
0
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT + 0 - - - 79 DIV + - 22 col0
----
3

skipif mysql # not compatible
query I rowsort label-6726
SELECT + 0 - - - 79 / + - 22 col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6727
SELECT ALL + + ( + + 60 ) - + 62 DIV - 86 AS col1, COUNT( + 12 ) AS col2
----
60
1

skipif mysql # not compatible
query II rowsort label-6727
SELECT ALL + + ( + + 60 ) - + 62 / - 86 AS col1, COUNT ( + 12 ) AS col2
----
60
1

query I rowsort
SELECT - 44 + - 8 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-6729
SELECT ALL + CASE - 44 WHEN 82 THEN - + COALESCE ( - 2, - COUNT( * ) ) ELSE 37 END AS col1, + 80 AS col0
----
37
80

skipif mysql # not compatible
query II rowsort label-6729
SELECT ALL + CASE - 44 WHEN 82 THEN - + COALESCE ( - 2, - COUNT ( * ) ) ELSE 37 END AS col1, + 80 AS col0
----
37
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT DISTINCT 92 * 77 + - 48 - + 78 + - 50 * 93 + - COUNT( * )
----
2307

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT 92 * 77 + - 48 - + 78 + - 50 * 93 + - COUNT ( * )
----
2307

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT DISTINCT - - COUNT( * ) * - 92 - + 10 AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT - - COUNT ( * ) * - 92 - + 10 AS col2
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6732
SELECT + - 63 + - 54 * + + 14 * - 70 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT + - 63 + - 54 * + + 14 * - 70 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT + + CAST( - 38 AS SIGNED ) + - 6 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-6733
SELECT + + CAST ( - 38 AS INTEGER ) + - 6 AS col0
----
-44

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

query II rowsort
SELECT - 90 AS col2, - 14 + + 37 + + + 65
----
-90
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT - - COUNT( * ) * 8 * + 9 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6736
SELECT - - COUNT ( * ) * 8 * + 9 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT + - 13 + - + 95 + - + ( COUNT( * ) )
----
-109

skipif mysql # not compatible
query I rowsort label-6737
SELECT + - 13 + - + 95 + - + ( COUNT ( * ) )
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-6738
SELECT DISTINCT - COUNT( ALL + + 14 ), - ( - 63 ) AS col0
----
-1
63

skipif mysql # not compatible
query II rowsort label-6738
SELECT DISTINCT - COUNT ( ALL + + 14 ), - ( - 63 ) AS col0
----
-1
63

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6740
SELECT ( + - 45 ) col1, - 10 + - + COUNT( * ) * 59 AS col2
----
-45
-69

skipif mysql # not compatible
query II rowsort label-6740
SELECT ( + - 45 ) col1, - 10 + - + COUNT ( * ) * 59 AS col2
----
-45
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6741
SELECT + COALESCE ( + + 66, + + NULLIF ( MAX( DISTINCT + 36 ), + CASE - 81 WHEN COALESCE ( + 85, CASE + 35 WHEN 25 + 44 THEN NULL WHEN 21 * 8 THEN SUM( DISTINCT - 96 ) END ) * 99 + - 3 THEN + CAST( NULL AS SIGNED ) ELSE ( - 16 ) END + 46 * + NULLIF ( CASE - 53 WHEN 51 + + COUNT( * ) THEN 67 WHEN - 96 * 20 + 45 THEN NULL ELSE 74 + + AVG ( ALL - 85 ) END, + NULLIF ( 75, + COUNT( * ) + 25 * + 97 ) ) ) )
----
66

skipif mysql # not compatible
query I rowsort label-6741
SELECT + COALESCE ( + + 66, + + NULLIF ( MAX ( DISTINCT + 36 ), + CASE - 81 WHEN COALESCE ( + 85, CASE + 35 WHEN 25 + 44 THEN NULL WHEN 21 * 8 THEN SUM ( DISTINCT - 96 ) END ) * 99 + - 3 THEN + CAST ( NULL AS INTEGER ) ELSE ( - 16 ) END + 46 * + NULLIF ( CASE - 53 WHEN 51 + + COUNT ( * ) THEN 67 WHEN - 96 * 20 + 45 THEN NULL ELSE 74 + + AVG ( ALL - 85 ) END, + NULLIF ( 75, + COUNT ( * ) + 25 * + 97 ) ) ) )
----
66

query I rowsort
SELECT + NULLIF ( - 8, - 13 * - 51 * + ( 16 ) * - 21 / AVG ( + - 79 ) + + 37 + + AVG ( + COALESCE ( + 40, 73 ) ) * - 9 * - 87 ) * 63
----
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-6743
SELECT + ( + 90 ) DIV - ( 5 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-6743
SELECT + ( + 90 ) / - ( 5 ) AS col0
----
-18

query I rowsort
SELECT ALL 4 * - ( 64 ) + 52 * + - 36 + - 61
----
-2189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6745
SELECT ALL COUNT( * ) * + CASE 74 WHEN + + CASE ( + + COALESCE ( 30, 67 - 1 ) ) WHEN + 77 * - + COUNT( * ) + - SUM( - 32 ) * + MAX( DISTINCT NULLIF ( 61, - 53 * + 10 ) * + 45 ) + COUNT( * ) THEN NULL WHEN - 64 THEN NULL ELSE COUNT( * ) END THEN 62 + CAST( 29 AS SIGNED ) WHEN + 77 THEN NULL END + - COALESCE ( - COUNT( - 1 ), 62 + 96 * ( - CAST( NULL AS DECIMAL ) * 79 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL COUNT ( * ) * + CASE 74 WHEN + + CASE ( + + COALESCE ( 30, 67 - 1 ) ) WHEN + 77 * - + COUNT ( * ) + - SUM ( - 32 ) * + MAX ( DISTINCT NULLIF ( 61, - 53 * + 10 ) * + 45 ) + COUNT ( * ) THEN NULL WHEN - 64 THEN NULL ELSE COUNT ( * ) END THEN 62 + CAST ( 29 AS INTEGER ) WHEN + 77 THEN NULL END + - COALESCE ( - COUNT ( - 1 ), 62 + 96 * ( - CAST ( NULL AS REAL ) * 79 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6746
SELECT + 22 DIV - 56 - + - 71 DIV + 5 + + - 33 - 44 + - - 95 * COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6746
SELECT + 22 / - 56 - + - 71 / + 5 + + - 33 - 44 + - - 95 * COUNT ( * ) AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT CASE - - 88 WHEN - 83 + - 82 THEN NULL WHEN - 91 THEN NULL ELSE 24 * + 9 + + COALESCE ( - 59, - 45, + CAST( - - 67 AS SIGNED ) ) * + 36 + + 60 END
----
-1848

skipif mysql # not compatible
query I rowsort label-6747
SELECT CASE - - 88 WHEN - 83 + - 82 THEN NULL WHEN - 91 THEN NULL ELSE 24 * + 9 + + COALESCE ( - 59, - 45, + CAST ( - - 67 AS INTEGER ) ) * + 36 + + 60 END
----
-1848

query I rowsort
SELECT ALL 1 * + ( 32 )
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6749
SELECT DISTINCT - COALESCE ( - + 29, + 30 * - 35 + + 73 + - + 92 * + 19 / + - ( - 43 ), + + 42 + 79, - 57 - 37 * 98 ) * CAST( NULL AS DECIMAL ) + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT - COALESCE ( - + 29, + 30 * - 35 + + 73 + - + 92 * + 19 / + - ( - 43 ), + + 42 + 79, - 57 - 37 * 98 ) * CAST ( NULL AS REAL ) + 55 AS col2
----
NULL

query I rowsort
SELECT ALL - 72 * 14 * - 3 - - 78
----
3102

query I rowsort
SELECT - - 10 - + 85 AS col0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6752
SELECT - - COUNT( * ) * + NULLIF ( COALESCE ( - + 56, - 56, + 25 ), - 7 * - COUNT( * ) ) * + + COUNT( * ) + 77 DIV - NULLIF ( - - 60, + COUNT( * ) - SUM( 24 + + 22 ) * - COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-6752
SELECT - - COUNT ( * ) * + NULLIF ( COALESCE ( - + 56, - 56, + 25 ), - 7 * - COUNT ( * ) ) * + + COUNT ( * ) + 77 / - NULLIF ( - - 60, + COUNT ( * ) - SUM ( 24 + + 22 ) * - COUNT ( * ) )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT ALL - 48 * - 49 - - 57 * COALESCE ( - - ( + CAST( - MAX( + 95 ) AS SIGNED ) ), - 77, - - COUNT( * ) ) * + + 1 * - NULLIF ( - 44, 13 + 87 ) + 85
----
-235823

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL - 48 * - 49 - - 57 * COALESCE ( - - ( + CAST ( - MAX ( + 95 ) AS INTEGER ) ), - 77, - - COUNT ( * ) ) * + + 1 * - NULLIF ( - 44, 13 + 87 ) + 85
----
-235823

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT + 92 * - COUNT( * ) + + 60 + - 80 AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-6754
SELECT + 92 * - COUNT ( * ) + + 60 + - 80 AS col1
----
-112

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT - 89 * + - CASE CAST( NULL AS SIGNED ) WHEN 97 THEN NULL WHEN - + 23 * + 87 * + - 91 THEN + - 21 ELSE 9 END * + - 63 * CAST( - 92 AS SIGNED ) + 38
----
4642634

skipif mysql # not compatible
query I rowsort label-6756
SELECT - 89 * + - CASE CAST ( NULL AS INTEGER ) WHEN 97 THEN NULL WHEN - + 23 * + 87 * + - 91 THEN + - 21 ELSE 9 END * + - 63 * CAST ( - 92 AS INTEGER ) + 38
----
4642634

query I rowsort
SELECT DISTINCT NULLIF ( 45, + - AVG ( + 87 ) )
----
45

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

skipif mysql # not compatible
query I rowsort label-6758
SELECT - - COUNT ( * ) / + 84
----
0

query I rowsort
SELECT - 17 - + 16 AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6760
SELECT - COUNT( * ) DIV COUNT( * ) + SUM( ALL 60 )
----
59

skipif mysql # not compatible
query I rowsort label-6760
SELECT - COUNT ( * ) / COUNT ( * ) + SUM ( ALL 60 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT - ( - 33 ) * 11 DIV - 86
----
-4

skipif mysql # not compatible
query I rowsort label-6761
SELECT - ( - 33 ) * 11 / - 86
----
-4

query I rowsort
SELECT - + 31 - + 1 * - 15 + + + 61 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6763
SELECT ALL + NULLIF ( NULLIF ( + COUNT( * ), + + 69 ), - - 32 * - 21 * 22 * - 34 ) * 29 * - + COUNT( * ) + - - CAST( NULL AS SIGNED ) + + 16 * NULLIF ( + ( 38 ), 77 + 19 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL + NULLIF ( NULLIF ( + COUNT ( * ), + + 69 ), - - 32 * - 21 * 22 * - 34 ) * 29 * - + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + 16 * NULLIF ( + ( 38 ), 77 + 19 ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( + - 50 ) + - - 42
----
92

query II rowsort
SELECT - 44 AS col2, + 36 * + ( 57 ) AS col2
----
-44
2052

query I rowsort
SELECT ALL + ( + 78 ) + - 93 * 75 + + 93 + - 59 * 85
----
-11819

query I rowsort
SELECT ALL + 33 + + 97 + ( - 82 )
----
48

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

skipif mysql # not compatible
query I rowsort label-6768
SELECT - SUM ( DISTINCT - 39 )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6769
SELECT - MAX( + 1 ) - - COUNT( * ), 60 + 25 AS col2
----
0
85

skipif mysql # not compatible
query II rowsort label-6769
SELECT - MAX ( + 1 ) - - COUNT ( * ), 60 + 25 AS col2
----
0
85

query II rowsort
SELECT ALL + 97 * - 71 * 57 * 54 col1, - 47 col2
----
-21198186
-47

query I rowsort
SELECT ALL - 42 + - 62
----
-104

query I rowsort
SELECT DISTINCT + 88 + 12 + - 25
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6773
SELECT ALL 9 AS col1, 58 + - CAST( NULL AS DECIMAL ) AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-6773
SELECT ALL 9 AS col1, 58 + - CAST ( NULL AS REAL ) AS col0
----
9
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT DISTINCT - 24 + + - COUNT( * ) * - ( ( - 87 ) ) AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT - 24 + + - COUNT ( * ) * - ( ( - 87 ) ) AS col0
----
-111

query I rowsort
SELECT ALL + 70 + + 19 AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6777
SELECT 66, CASE - 21 WHEN 77 THEN NULL ELSE COUNT( DISTINCT - 30 ) END AS col1
----
66
1

skipif mysql # not compatible
query II rowsort label-6777
SELECT 66, CASE - 21 WHEN 77 THEN NULL ELSE COUNT ( DISTINCT - 30 ) END AS col1
----
66
1

query I rowsort
SELECT 70 * + 55 * 53 + - - ( 92 ) col0
----
204142

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6779
SELECT ALL - 40, + CAST( NULL AS DECIMAL ) + 81 AS col1
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-6779
SELECT ALL - 40, + CAST ( NULL AS REAL ) + 81 AS col1
----
-40
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6780
SELECT + 56 DIV - 12 + + - 35 AS col1, + 3 + + 28 - - NULLIF ( - CASE + + MIN( - + 35 ) WHEN + 22 THEN + 29 DIV + 68 * + 82 - 38 END, 7 ) * + ( CAST( NULL AS SIGNED ) DIV 74 )
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-6780
SELECT + 56 / - 12 + + - 35 AS col1, + 3 + + 28 - - NULLIF ( - CASE + + MIN ( - + 35 ) WHEN + 22 THEN + 29 / + 68 * + 82 - 38 END, 7 ) * + ( CAST ( NULL AS INTEGER ) / 74 )
----
-39
NULL

query I rowsort
SELECT - ( + - 87 ) * - + 73 - + 91 * + 36 - - - 31 AS col0
----
-9658

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT 88 + + COALESCE ( - 59, + + 39 ) + - 82 * 68 DIV - 14 AS col0
----
427

skipif mysql # not compatible
query I rowsort label-6782
SELECT 88 + + COALESCE ( - 59, + + 39 ) + - 82 * 68 / - 14 AS col0
----
427

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT ALL - 7 - SUM( - + 17 ) * - 16
----
-279

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL - 7 - SUM ( - + 17 ) * - 16
----
-279

onlyif mysql # aggregate syntax: 
query II rowsort label-6784
SELECT + 30 AS col2, 7 * + 41 * - - 96 - - MIN( 86 ) + + - 82
----
30
27556

skipif mysql # not compatible
query II rowsort label-6784
SELECT + 30 AS col2, 7 * + 41 * - - 96 - - MIN ( 86 ) + + - 82
----
30
27556

query I rowsort
SELECT ALL ( - 72 ) - 52 + COALESCE ( 64, + - COALESCE ( - - 65, - - ( - - 85 ), - 87 * + 1 * + 2 + 90 ), - 65 + 8 ) AS col1
----
-60

query I rowsort
SELECT NULLIF ( 96, - ( + 22 ) ) * - NULLIF ( + 46, 14 ) + COALESCE ( - 12, + 53, + 65 ) + + 26
----
-4402

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6787
SELECT ALL MAX( 76 ) DIV 69, 67 DIV - + 65 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-6787
SELECT ALL MAX ( 76 ) / 69, 67 / - + 65 AS col0
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT DISTINCT MAX( DISTINCT + + 31 ) * + + 17 * + + 38 AS col0
----
20026

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT MAX ( DISTINCT + + 31 ) * + + 17 * + + 38 AS col0
----
20026

query I rowsort
SELECT - 29 * - 88 + 67 AS col0
----
2619

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT ALL COUNT( * ) - - 73 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL COUNT ( * ) - - 73 AS col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6791
SELECT ALL 52 DIV + 41 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL 52 / + 41 AS col0
----
1

query II rowsort
SELECT ALL 7 AS col0, 69
----
7
69

query II rowsort
SELECT DISTINCT - 98, + 30 * - 52 AS col2
----
-98
-1560

query I rowsort
SELECT ALL + 41 + 66 col0
----
107

query I rowsort
SELECT + 1 + + 51
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT DISTINCT - COUNT( * ) * - + 5 + + - COUNT( * ) * - 41 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT - COUNT ( * ) * - + 5 + + - COUNT ( * ) * - 41 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT - 20 * - 34 + 34 + + - ( - COUNT( * ) ) + - CASE COALESCE ( COUNT( * ), - COUNT( 38 ) ) WHEN NULLIF ( - 60, - + 93 ) THEN - 67 * COUNT( * ) + 75 WHEN - 71 THEN NULL WHEN - 59 * + COUNT( * ) THEN + 32 + + 53 * - 82 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT - 20 * - 34 + 34 + + - ( - COUNT ( * ) ) + - CASE COALESCE ( COUNT ( * ), - COUNT ( 38 ) ) WHEN NULLIF ( - 60, - + 93 ) THEN - 67 * COUNT ( * ) + 75 WHEN - 71 THEN NULL WHEN - 59 * + COUNT ( * ) THEN + 32 + + 53 * - 82 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6798
SELECT ALL + + COALESCE ( + 80, COUNT( * ) ) + + 11 - - MAX( ALL 54 ) * - ( - 26 ) AS col0, COUNT( * ) * - + COALESCE ( - + NULLIF ( + - 27, - 79 ), CASE + 95 WHEN COUNT( DISTINCT 20 ) * 28 THEN - 25 END * ( 82 ) ) DIV - 4
----
1495
6

skipif mysql # not compatible
query II rowsort label-6798
SELECT ALL + + COALESCE ( + 80, COUNT ( * ) ) + + 11 - - MAX ( ALL 54 ) * - ( - 26 ) AS col0, COUNT ( * ) * - + COALESCE ( - + NULLIF ( + - 27, - 79 ), CASE + 95 WHEN COUNT ( DISTINCT 20 ) * 28 THEN - 25 END * ( 82 ) ) / - 4
----
1495
6

query I rowsort
SELECT 96 + - 62
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT + 42 + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6800
SELECT + 42 + COUNT ( * ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6801
SELECT + 87 AS col0, COUNT( * ) + + + 31 AS col1
----
87
32

skipif mysql # not compatible
query II rowsort label-6801
SELECT + 87 AS col0, COUNT ( * ) + + + 31 AS col1
----
87
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT 70 + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6802
SELECT 70 + COUNT ( * ) AS col2
----
71

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

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

query I rowsort
SELECT 89 + - NULLIF ( - 24, + + 19 ) AS col1
----
113

query I rowsort
SELECT ALL - 38 + + 83
----
45

query I rowsort
SELECT 95 * 55 AS col0
----
5225

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT DISTINCT - 29 DIV + - 11 col2
----
2

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT - 29 / + - 11 col2
----
2

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6809
SELECT 79 / + + CAST( NULL AS DECIMAL ) * + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT 79 / + + CAST ( NULL AS REAL ) * + 10 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 93 * 34
----
-3162

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6811
SELECT ALL + COUNT( * ) - 68 AS col0, - COUNT( * ) * + 10 DIV 40 * + 6
----
-67
0

skipif mysql # not compatible
query II rowsort label-6811
SELECT ALL + COUNT ( * ) - 68 AS col0, - COUNT ( * ) * + 10 / 40 * + 6
----
-67
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL - COALESCE ( + 50, + CASE + 63 WHEN 67 THEN + - COUNT( * ) * - 18 + - ( - 51 ) ELSE NULL END + 52 + + + 53 * - ( 48 ) + + - 0 + + 42 * 13 * - MAX( - 69 + - 99 ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - COALESCE ( + 50, + CASE + 63 WHEN 67 THEN + - COUNT ( * ) * - 18 + - ( - 51 ) ELSE NULL END + 52 + + + 53 * - ( 48 ) + + - 0 + + 42 * 13 * - MAX ( - 69 + - 99 ) ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL - 12 * - CASE - 10 WHEN 1 * + 18 + + 90 + + - ( - + COUNT( * ) ) THEN NULL ELSE + 26 END AS col2
----
312

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL - 12 * - CASE - 10 WHEN 1 * + 18 + + 90 + + - ( - + COUNT ( * ) ) THEN NULL ELSE + 26 END AS col2
----
312

onlyif mysql # aggregate syntax: 
query II rowsort label-6814
SELECT MAX( 74 ) AS col0, 3 + + MIN( + 46 ) + - 89
----
74
-40

skipif mysql # not compatible
query II rowsort label-6814
SELECT MAX ( 74 ) AS col0, 3 + + MIN ( + 46 ) + - 89
----
74
-40

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6817
SELECT ALL 40 * 7 DIV - - NULLIF ( + COUNT( * ), - COALESCE ( + + ( - 28 ), + - 16, 6 ) * - 37 ) + - 41
----
239

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL 40 * 7 / - - NULLIF ( + COUNT ( * ), - COALESCE ( + + ( - 28 ), + - 16, 6 ) * - 37 ) + - 41
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT 62 * - 86 + MIN( + + 94 ) * 28 AS col1
----
-2700

skipif mysql # not compatible
query I rowsort label-6818
SELECT 62 * - 86 + MIN ( + + 94 ) * 28 AS col1
----
-2700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6819
SELECT 92 + - + 25 + - + 61 DIV - COUNT( * ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-6819
SELECT 92 + - + 25 + - + 61 / - COUNT ( * ) AS col0
----
128

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

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

query I rowsort
SELECT - 72 * + 12 + 21 + 39 * + 83 * 33
----
105978

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT 54 - + + SUM( DISTINCT + 79 ) - + + 90 * + ( - ( + 76 ) ) * - 33 AS col2
----
-225745

skipif mysql # not compatible
query I rowsort label-6822
SELECT 54 - + + SUM ( DISTINCT + 79 ) - + + 90 * + ( - ( + 76 ) ) * - 33 AS col2
----
-225745

query I rowsort
SELECT ALL - 87 * - 77
----
6699

query I rowsort
SELECT 85 * - 48 * - + 33 + - 31 * 57 + + 95 AS col2
----
132968

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6825
SELECT + + CASE CAST( 83 AS DECIMAL ) WHEN - 35 + - CAST( NULL AS SIGNED ) THEN NULL WHEN - + CAST( - - 75 AS SIGNED ) THEN + 52 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT + + CASE CAST ( 83 AS REAL ) WHEN - 35 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - + CAST ( - - 75 AS INTEGER ) THEN + 52 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ( + 54 ) * + - 29 + + NULLIF ( - + 84, 70 + 37 * + 60 / + 79 + ( - 72 ) - + COUNT( * ) ) AS col2
----
-1650

skipif mysql # not compatible
query I rowsort label-6826
SELECT ( + 54 ) * + - 29 + + NULLIF ( - + 84, 70 + 37 * + 60 / + 79 + ( - 72 ) - + COUNT ( * ) ) AS col2
----
-1650

onlyif mysql # aggregate syntax: 
query II rowsort label-6827
SELECT - + SUM( + + 72 ) AS col2, - 60
----
-72
-60

skipif mysql # not compatible
query II rowsort label-6827
SELECT - + SUM ( + + 72 ) AS col2, - 60
----
-72
-60

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6829
SELECT 64 DIV 5
----
12

skipif mysql # not compatible
query I rowsort label-6829
SELECT 64 / 5
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL MAX( DISTINCT + 31 ) + - 58 + + 77
----
50

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL MAX ( DISTINCT + 31 ) + - 58 + + 77
----
50

query I rowsort
SELECT DISTINCT + COALESCE ( + 60, - - COALESCE ( + 29, 31 ) - 82 ) AS col0
----
60

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6833
SELECT DISTINCT - CASE + - COUNT( * ) WHEN + - CASE NULLIF ( - CAST( - NULLIF ( + 67, - + ( + + 0 ) ) AS SIGNED ), 61 ) WHEN + + 11 * + - COUNT( * ) THEN - 41 WHEN ( + 63 ) THEN NULL END * + 97 THEN NULL WHEN + 53 THEN NULL WHEN + 18 THEN + ( + 10 ) END + 44 * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT - CASE + - COUNT ( * ) WHEN + - CASE NULLIF ( - CAST ( - NULLIF ( + 67, - + ( + + 0 ) ) AS INTEGER ), 61 ) WHEN + + 11 * + - COUNT ( * ) THEN - 41 WHEN ( + 63 ) THEN NULL END * + 97 THEN NULL WHEN + 53 THEN NULL WHEN + 18 THEN + ( + 10 ) END + 44 * 81
----
NULL

query I rowsort
SELECT ALL 97 * 53 * - 66 AS col0
----
-339306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT - 8 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6835
SELECT - 8 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 78 * 49
----
3822

query I rowsort
SELECT - 49 - + 12 + + 41 + 38 AS col2
----
18

query I rowsort
SELECT - 25 - + 77 AS col0
----
-102

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

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL 31 - - 96 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 37 * + 24 col0
----
888

query I rowsort
SELECT - 42 * - 92
----
3864

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT ALL - ( ( - 43 ) ) DIV - 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL - ( ( - 43 ) ) / - 53 AS col0
----
0

query I rowsort
SELECT 44 * 32 + + 32 * 71
----
3680

query I rowsort
SELECT ( 99 ) col1
----
99

query I rowsort
SELECT - 6 * 10
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6846
SELECT - + COUNT( * ) DIV 93 + 60 col1
----
60

skipif mysql # not compatible
query I rowsort label-6846
SELECT - + COUNT ( * ) / 93 + 60 col1
----
60

query II rowsort
SELECT - - 56 * 78 - 36 AS col2, - 0
----
4332
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6848
SELECT ALL - 76 * + 42 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL - 76 * + 42 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6849
SELECT - - 96 + - 22 + + + 4 + - - 27 DIV COUNT( ALL 32 )
----
105

skipif mysql # not compatible
query I rowsort label-6849
SELECT - - 96 + - 22 + + + 4 + - - 27 / COUNT ( ALL 32 )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT - - 80 * + MAX( ALL - COALESCE ( + 54, - - 76 ) ) + - 57 AS col1
----
-4377

skipif mysql # not compatible
query I rowsort label-6850
SELECT - - 80 * + MAX ( ALL - COALESCE ( + 54, - - 76 ) ) + - 57 AS col1
----
-4377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6851
SELECT DISTINCT - + CASE + + 20 WHEN 79 THEN - 21 WHEN + NULLIF ( + + 80, - 17 + + 77 + + + 34 ) THEN - 91 * - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) END * - ( + ( + 87 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT - + CASE + + 20 WHEN 79 THEN - 21 WHEN + NULLIF ( + + 80, - 17 + + 77 + + + 34 ) THEN - 91 * - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) END * - ( + ( + 87 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT ALL - 84 * - 17 + - + 22 + - 19 * 39 * - + 34 + - ( - 80 ) * + + 71 * ( - MIN( ALL ( + + 52 ) ) )
----
-268760

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL - 84 * - 17 + - + 22 + - 19 * 39 * - + 34 + - ( - 80 ) * + + 71 * ( - MIN ( ALL ( + + 52 ) ) )
----
-268760

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT - CASE - 54 WHEN + 17 THEN COUNT( * ) + 47 ELSE NULL END + + 82 + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT - CASE - 54 WHEN + 17 THEN COUNT ( * ) + 47 ELSE NULL END + + 82 + + 69
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6854
SELECT + + 2 AS col2, COUNT( ALL 33 )
----
2
1

skipif mysql # not compatible
query II rowsort label-6854
SELECT + + 2 AS col2, COUNT ( ALL 33 )
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT DISTINCT 36 * - 57 + - COUNT( 39 ) + 47
----
-2006

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT 36 * - 57 + - COUNT ( 39 ) + 47
----
-2006

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6856
SELECT ALL + - 54, + 20 * - + COUNT( * ) * + CAST( NULL AS DECIMAL ) col1
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-6856
SELECT ALL + - 54, + 20 * - + COUNT ( * ) * + CAST ( NULL AS REAL ) col1
----
-54
NULL

query I rowsort
SELECT DISTINCT 59 * 77
----
4543

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT + + 3 + CASE + 7 WHEN 63 THEN - 78 / + COUNT( * ) * 18 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT + + 3 + CASE + 7 WHEN 63 THEN - 78 / + COUNT ( * ) * 18 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT ALL 56 * - - 91 * - - MIN( DISTINCT - 64 ) + - NULLIF ( 71, + 5 ) * - 74 + + COUNT( * )
----
-320889

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL 56 * - - 91 * - - MIN ( DISTINCT - 64 ) + - NULLIF ( 71, + 5 ) * - 74 + + COUNT ( * )
----
-320889

query I rowsort
SELECT - ( 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-6861
SELECT ALL 97 * COALESCE ( - 28, + 84 ) AS col2, COUNT( * )
----
-2716
1

skipif mysql # not compatible
query II rowsort label-6861
SELECT ALL 97 * COALESCE ( - 28, + 84 ) AS col2, COUNT ( * )
----
-2716
1

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

skipif mysql # not compatible
query I rowsort label-6862
SELECT - COUNT ( * ) + - MIN ( + 31 ) AS col1
----
-32

query I rowsort
SELECT + 9 - 4 AS col2
----
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6865
SELECT + 85 + + - 75 * CAST( + - 85 AS SIGNED ) - - MAX( 65 ) - + 18 + 25
----
6532

skipif mysql # not compatible
query I rowsort label-6865
SELECT + 85 + + - 75 * CAST ( + - 85 AS INTEGER ) - - MAX ( 65 ) - + 18 + 25
----
6532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6866
SELECT ALL 91 - - 25 + - + 78 - CAST( 48 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL 91 - - 25 + - + 78 - CAST ( 48 AS INTEGER )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6867
SELECT 58, - NULLIF ( + CAST( + NULLIF ( CAST( NULL AS SIGNED ), - - CASE - 92 WHEN + - 39 THEN NULL WHEN - + COUNT( - 15 ) THEN + + 17 * + 4 + - - 16 + + + 44 * - 47 * 30 + 11 ELSE + 71 / 48 END ) AS SIGNED ), + 48 ) AS col0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-6867
SELECT 58, - NULLIF ( + CAST ( + NULLIF ( CAST ( NULL AS INTEGER ), - - CASE - 92 WHEN + - 39 THEN NULL WHEN - + COUNT ( - 15 ) THEN + + 17 * + 4 + - - 16 + + + 44 * - 47 * 30 + 11 ELSE + 71 / 48 END ) AS INTEGER ), + 48 ) AS col0
----
58
NULL

query I rowsort
SELECT DISTINCT - 66 * - + 23 AS col2
----
1518

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6869
SELECT ALL CAST( 73 AS SIGNED ) col2, + 20 * 95 * - - 1
----
73
1900

skipif mysql # not compatible
query II rowsort label-6869
SELECT ALL CAST ( 73 AS INTEGER ) col2, + 20 * 95 * - - 1
----
73
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT - COALESCE ( - 96, - + COUNT( * ), + 56 )
----
96

skipif mysql # not compatible
query I rowsort label-6870
SELECT - COALESCE ( - 96, - + COUNT ( * ), + 56 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT ALL SUM( + 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL SUM ( + 40 ) AS col1
----
40

query I rowsort
SELECT + 25 + + + 27
----
52

query II rowsort
SELECT DISTINCT 23 AS col2, 40
----
23
40

query I rowsort
SELECT + 96 * + COALESCE ( - 45, - - 83 * + 31 * - 2 * 4 + - + 21 )
----
-4320

query I rowsort
SELECT + 1 + + - 41 * + + 4 * + 10 AS col2
----
-1639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6876
SELECT ALL 25 * NULLIF ( - + 62, + COALESCE ( - 61, + 27 - ( - 32 ) / + - 4, - NULLIF ( + 51, + - 87 / + - NULLIF ( + - 82, - + 80 ) / + CAST( ( + 33 ) AS SIGNED ) * + ( + COUNT( * ) ) ) / + 34 ) * 26 ) AS col1
----
-1550

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL 25 * NULLIF ( - + 62, + COALESCE ( - 61, + 27 - ( - 32 ) / + - 4, - NULLIF ( + 51, + - 87 / + - NULLIF ( + - 82, - + 80 ) / + CAST ( ( + 33 ) AS INTEGER ) * + ( + COUNT ( * ) ) ) / + 34 ) * 26 ) AS col1
----
-1550

query I rowsort
SELECT DISTINCT 42 * + + 0
----
0

query I rowsort
SELECT + 7 + - 87 AS col0
----
-80

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

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

query I rowsort
SELECT + 83 * - 40 * - - 63 AS col2
----
-209160

query I rowsort
SELECT ALL 89 * 41 * + 73
----
266377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6882
SELECT ALL - 91 DIV + COUNT( * ) + - COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL - 91 / + COUNT ( * ) + - COUNT ( * ) AS col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6883
SELECT ALL 26 DIV 21 + + - CASE - 12 WHEN - 98 THEN NULL ELSE - 35 END - + - 9 * 52
----
504

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL 26 / 21 + + - CASE - 12 WHEN - 98 THEN NULL ELSE - 35 END - + - 9 * 52
----
504

query I rowsort
SELECT ALL + NULLIF ( + CASE - + 97 WHEN + - 81 THEN - 55 WHEN - 55 * + 40 - - 57 * + 9 * 70 - - 96 THEN - 26 + + 26 WHEN - 99 THEN NULL END, - - 84 ) * - - 61
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6885
SELECT - - 2 DIV 65 * - CAST( - - 11 AS SIGNED ) + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-6885
SELECT - - 2 / 65 * - CAST ( - - 11 AS INTEGER ) + - 84
----
-84

query I rowsort
SELECT - 15 + - - 17 col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT ALL + 54 DIV + 27 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL + 54 / + 27 AS col1
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT + 72 - + NULLIF ( - 56, COUNT( ALL + + 52 ) ) * + + CAST( NULL AS SIGNED ) * + 96 * + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT + 72 - + NULLIF ( - 56, COUNT ( ALL + + 52 ) ) * + + CAST ( NULL AS INTEGER ) * + 96 * + + 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6890
SELECT + - COALESCE ( - 9, - + CAST( NULL AS SIGNED ) + + 16 - - 10 * + 49 + + + COUNT( * ) - COALESCE ( - + COUNT( * ), + 78 ) * + CASE + COUNT( * ) WHEN - MIN( DISTINCT 32 ) THEN - ( + CASE + AVG ( + 4 ) WHEN + COALESCE ( - 53, 24 ) * 46 THEN NULL ELSE - 43 DIV - CASE + CAST( + ( - 70 ) AS SIGNED ) WHEN 25 * + 45 THEN NULL WHEN COUNT( + 1 ) THEN + 24 * - 17 + COALESCE ( + 95, - 35 + COUNT( * ) * 12 ) ELSE NULL END END ) END * + COUNT( * ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6890
SELECT + - COALESCE ( - 9, - + CAST ( NULL AS INTEGER ) + + 16 - - 10 * + 49 + + + COUNT ( * ) - COALESCE ( - + COUNT ( * ), + 78 ) * + CASE + COUNT ( * ) WHEN - MIN ( DISTINCT 32 ) THEN - ( + CASE + AVG ( + 4 ) WHEN + COALESCE ( - 53, 24 ) * 46 THEN NULL ELSE - 43 / - CASE + CAST ( + ( - 70 ) AS INTEGER ) WHEN 25 * + 45 THEN NULL WHEN COUNT ( + 1 ) THEN + 24 * - 17 + COALESCE ( + 95, - 35 + COUNT ( * ) * 12 ) ELSE NULL END END ) END * + COUNT ( * ) ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT - COUNT( * ) * + 7 + - 52 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-6891
SELECT - COUNT ( * ) * + 7 + - 52 AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6892
SELECT DISTINCT - ( - + 87 ) DIV + + 27 + + 3
----
6

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT - ( - + 87 ) / + + 27 + + 3
----
6

query I rowsort
SELECT ALL + 4 * - ( + 10 ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6894
SELECT + ( + 4 ) AS col1, ( - COUNT( ALL 16 ) ) * + - CASE + ( ( 39 ) ) WHEN + - CASE - 70 WHEN - + CAST( NULL AS DECIMAL ) + COUNT( * ) + 56 THEN - + 66 + + 83 END THEN 16 ELSE NULL END
----
4
NULL

skipif mysql # not compatible
query II rowsort label-6894
SELECT + ( + 4 ) AS col1, ( - COUNT ( ALL 16 ) ) * + - CASE + ( ( 39 ) ) WHEN + - CASE - 70 WHEN - + CAST ( NULL AS REAL ) + COUNT ( * ) + 56 THEN - + 66 + + 83 END THEN 16 ELSE NULL END
----
4
NULL

query II rowsort
SELECT + 71 AS col1, - 72 * + + 48 AS col2
----
71
-3456

query I rowsort
SELECT ALL - + 21 * 55 AS col0
----
-1155

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT - 17 + + - 12 + - MAX( - 15 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-6897
SELECT - 17 + + - 12 + - MAX ( - 15 ) AS col0
----
-14

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

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

query I rowsort
SELECT ALL - - 54 * + NULLIF ( 72, - - 12 + - - 73 + - 33 * - ( + - 43 ) ) AS col1
----
3888

query I rowsort
SELECT ALL - 52 * ( - 67 )
----
3484

query I rowsort
SELECT 4 * - - 22
----
88

query I rowsort
SELECT + + 19 col0
----
19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6904
SELECT ALL - COALESCE ( 23, - 2 * + 80 - - COALESCE ( 76, 2 ), + 31, - - 55 * 6 ) - - 50 + + 67 + - - 49 * + 81 - + - CAST( NULL AS SIGNED ) * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - COALESCE ( 23, - 2 * + 80 - - COALESCE ( 76, 2 ), + 31, - - 55 * 6 ) - - 50 + + 67 + - - 49 * + 81 - + - CAST ( NULL AS INTEGER ) * + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ALL COUNT( * ) * - - 80
----
80

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL COUNT ( * ) * - - 80
----
80

query I rowsort
SELECT 88 * + + 82 AS col0
----
7216

onlyif mysql # aggregate syntax: 
query II rowsort label-6907
SELECT COUNT( * ) * + 9 AS col1, - 83 + - - 81 AS col0
----
9
-2

skipif mysql # not compatible
query II rowsort label-6907
SELECT COUNT ( * ) * + 9 AS col1, - 83 + - - 81 AS col0
----
9
-2

query I rowsort
SELECT ALL + 80 * - 26 * + + 42
----
-87360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6909
SELECT 94 - + CAST( NULL AS SIGNED ) AS col2, 63
----
NULL
63

skipif mysql # not compatible
query II rowsort label-6909
SELECT 94 - + CAST ( NULL AS INTEGER ) AS col2, 63
----
NULL
63

query I rowsort
SELECT ALL 84 + + 88
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6911
SELECT COUNT( * ) + + - 15 + + + 98 DIV 99 * 34 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-6911
SELECT COUNT ( * ) + + - 15 + + + 98 / 99 * 34 AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6912
SELECT DISTINCT CAST( - 65 AS SIGNED ) + + + 31 + 2 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT CAST ( - 65 AS INTEGER ) + + + 31 + 2 AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6913
SELECT DISTINCT - 57 + - - CASE + 50 WHEN + - CASE + CAST( NULL AS SIGNED ) WHEN 45 THEN NULL WHEN + CASE - + 24 WHEN 28 + - 93 THEN NULL WHEN - + CASE - MAX( DISTINCT + 88 ) WHEN - 37 THEN NULL WHEN - + 87 THEN + 70 END + + 95 * 64 THEN NULL WHEN + NULLIF ( + 64, 60 ) + 58 THEN 86 END THEN ( + 50 ) ELSE NULL END THEN 78 WHEN 12 THEN NULL ELSE 21 END + + ( - 74 ) * 98 * 30
----
-217596

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT - 57 + - - CASE + 50 WHEN + - CASE + CAST ( NULL AS INTEGER ) WHEN 45 THEN NULL WHEN + CASE - + 24 WHEN 28 + - 93 THEN NULL WHEN - + CASE - MAX ( DISTINCT + 88 ) WHEN - 37 THEN NULL WHEN - + 87 THEN + 70 END + + 95 * 64 THEN NULL WHEN + NULLIF ( + 64, 60 ) + 58 THEN 86 END THEN ( + 50 ) ELSE NULL END THEN 78 WHEN 12 THEN NULL ELSE 21 END + + ( - 74 ) * 98 * 30
----
-217596

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT ALL 73 + + 84 + ( + 11 ) DIV + + 71 * - 89 + - 51 DIV - 24
----
159

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL 73 + + 84 + ( + 11 ) / + + 71 * - 89 + - 51 / - 24
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6915
SELECT ALL CAST( - 77 AS SIGNED ) + - 19 AS col0, ( - COUNT( * ) ) AS col0
----
-96
-1

skipif mysql # not compatible
query II rowsort label-6915
SELECT ALL CAST ( - 77 AS INTEGER ) + - 19 AS col0, ( - COUNT ( * ) ) AS col0
----
-96
-1

query I rowsort
SELECT - 98 * - 44 + + 58 * + + 38 + - 45 + + 90 AS col2
----
6561

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

query I rowsort
SELECT ALL - 8 * + 99 AS col1
----
-792

query I rowsort
SELECT DISTINCT + 75 * 24 col0
----
1800

onlyif mysql # aggregate syntax: 
query II rowsort label-6920
SELECT ALL 18 + + COUNT( * ) col2, 57 AS col0
----
19
57

skipif mysql # not compatible
query II rowsort label-6920
SELECT ALL 18 + + COUNT ( * ) col2, 57 AS col0
----
19
57

query I rowsort
SELECT - 92 * + 97 AS col1
----
-8924

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL - + COUNT( * ) - - 48 + - - 92 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL - + COUNT ( * ) - - 48 + - - 92 AS col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6923
SELECT 8 + - CAST( MIN( ALL - 62 ) AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6923
SELECT 8 + - CAST ( MIN ( ALL - 62 ) AS INTEGER ) AS col1
----
70

query I rowsort
SELECT - 59 * - + 17 + + 24 AS col0
----
1027

onlyif mysql # DIV for integer division: 
query II rowsort label-6925
SELECT ALL - COALESCE ( - 67, 76 - 98 DIV 57 ) AS col2, + 41 - + 16
----
67
25

skipif mysql # not compatible
query II rowsort label-6925
SELECT ALL - COALESCE ( - 67, 76 - 98 / 57 ) AS col2, + 41 - + 16
----
67
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT + + ( + + 15 ) * 38 - + + 58 + - + 59 + - COUNT( * )
----
452

skipif mysql # not compatible
query I rowsort label-6926
SELECT + + ( + + 15 ) * 38 - + + 58 + - + 59 + - COUNT ( * )
----
452

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT COUNT( * ) + + - 95 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6927
SELECT COUNT ( * ) + + - 95 AS col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6928
SELECT + 86 DIV 19 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6928
SELECT + 86 / 19 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6929
SELECT MIN( 3 ) DIV - 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6929
SELECT MIN ( 3 ) / - 52 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT ALL + - 14 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL + - 14 / + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT ALL - MIN( + 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL - MIN ( + 7 ) AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6932
SELECT DISTINCT - 30 AS col2, COUNT( * ) * COUNT( * ) DIV - 50
----
-30
0

skipif mysql # not compatible
query II rowsort label-6932
SELECT DISTINCT - 30 AS col2, COUNT ( * ) * COUNT ( * ) / - 50
----
-30
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6933
SELECT DISTINCT - 75 AS col1, CASE + 7 WHEN - 92 * + COUNT( * ) * - 71 + + 1 + - - 62 THEN - 86 WHEN + - ( - 2 ) THEN NULL ELSE NULL END * + + 12 * - 28
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-6933
SELECT DISTINCT - 75 AS col1, CASE + 7 WHEN - 92 * + COUNT ( * ) * - 71 + + 1 + - - 62 THEN - 86 WHEN + - ( - 2 ) THEN NULL ELSE NULL END * + + 12 * - 28
----
-75
NULL

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

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT - COUNT ( DISTINCT - 63 ) * + + 3 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT - COUNT( - + COALESCE ( + 76, + 72 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6935
SELECT - COUNT ( - + COALESCE ( + 76, + 72 ) )
----
-1

query I rowsort
SELECT ALL - 48 + 38 AS col2
----
-10

query I rowsort
SELECT 12 * - - 39 + 10
----
478

query I rowsort
SELECT 4 + 91 * 37 AS col0
----
3371

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT COUNT( * ) - - CASE + 89 WHEN 36 THEN + 12 END + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT COUNT ( * ) - - CASE + 89 WHEN 36 THEN + 12 END + + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL - COUNT( * ) + 98 + + + 8 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL - COUNT ( * ) + 98 + + + 8 AS col2
----
105

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6942
SELECT ALL + NULLIF ( + 51, 33 - + COUNT( * ) ) + + + 81 * - 23, - MAX( 61 ) AS col1
----
-1812
-61

skipif mysql # not compatible
query II rowsort label-6942
SELECT ALL + NULLIF ( + 51, 33 - + COUNT ( * ) ) + + + 81 * - 23, - MAX ( 61 ) AS col1
----
-1812
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL 30 + - COUNT( * ) - 97 + + 87 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL 30 + - COUNT ( * ) - 97 + + 87 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT 39 + + COUNT( * ) + CASE - CASE - 36 WHEN - - 8 + + COUNT( * ) THEN NULL WHEN - + 88 / 58 THEN - 26 WHEN - + 96 THEN - + ( + 71 ) END WHEN - CASE - - 50 WHEN + 11 * 65 * - 44 + ( 36 ) + + 38 THEN NULL ELSE + COUNT( * ) END THEN NULL WHEN 73 THEN 71 + - ( + 74 ) ELSE + 71 END
----
111

skipif mysql # not compatible
query I rowsort label-6945
SELECT 39 + + COUNT ( * ) + CASE - CASE - 36 WHEN - - 8 + + COUNT ( * ) THEN NULL WHEN - + 88 / 58 THEN - 26 WHEN - + 96 THEN - + ( + 71 ) END WHEN - CASE - - 50 WHEN + 11 * 65 * - 44 + ( 36 ) + + 38 THEN NULL ELSE + COUNT ( * ) END THEN NULL WHEN 73 THEN 71 + - ( + 74 ) ELSE + 71 END
----
111

query II rowsort
SELECT ALL 37, + 52 AS col2
----
37
52

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6948
SELECT DISTINCT + - NULLIF ( MAX( - 34 ), - + 29 ) * SUM( + + 18 ) AS col1, 56 AS col2
----
612
56

skipif mysql # not compatible
query II rowsort label-6948
SELECT DISTINCT + - NULLIF ( MAX ( - 34 ), - + 29 ) * SUM ( + + 18 ) AS col1, 56 AS col2
----
612
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6949
SELECT ALL - - 55 + - + SUM( 96 ) DIV + COUNT( * ) + - - COUNT( * ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL - - 55 + - + SUM ( 96 ) / + COUNT ( * ) + - - COUNT ( * ) col2
----
-40

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

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

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

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

query I rowsort
SELECT ALL + 68 - + 61 * 63
----
-3775

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL - ( + 71 ) * 47 - COUNT( * ) * ( + 54 ) / + AVG ( ALL + 94 ) + + - CASE + 22 WHEN CASE - - 1 WHEN + AVG ( ALL NULLIF ( - 16, + + 26 ) ) / 38 + + + 10 THEN 21 WHEN + 30 * 63 THEN NULL ELSE NULL END / 24 THEN NULL WHEN 47 THEN 43 + + 38 / - 59 END + 2 * - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL - ( + 71 ) * 47 - COUNT ( * ) * ( + 54 ) / + AVG ( ALL + 94 ) + + - CASE + 22 WHEN CASE - - 1 WHEN + AVG ( ALL NULLIF ( - 16, + + 26 ) ) / 38 + + + 10 THEN 21 WHEN + 30 * 63 THEN NULL ELSE NULL END / 24 THEN NULL WHEN 47 THEN 43 + + 38 / - 59 END + 2 * - 51 AS col1
----
NULL

query I rowsort
SELECT - 77 * + 28 AS col2
----
-2156

query I rowsort
SELECT ALL - CASE ( - + 47 ) WHEN + + 58 * + 21 THEN NULLIF ( + COALESCE ( + 50, 43 / 29 + - 79 + + 96 * - ( - 1 ) ), 87 ) WHEN + + 63 + + 74 THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT + 90 * ( + + 28 ) AS col1
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6957
SELECT DISTINCT + ( - + CASE - + MIN( 31 ) WHEN + - 59 / + 29 * - 25 + - ( + 66 ) THEN + + CAST( NULL AS SIGNED ) - + - ( - - CAST( - 51 AS SIGNED ) ) + - - 97 * + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) * + 95 + 75 * 40 + + 88 THEN + 34 / - 97 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT + ( - + CASE - + MIN ( 31 ) WHEN + - 59 / + 29 * - 25 + - ( + 66 ) THEN + + CAST ( NULL AS INTEGER ) - + - ( - - CAST ( - 51 AS INTEGER ) ) + - - 97 * + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) * + 95 + 75 * 40 + + 88 THEN + 34 / - 97 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6958
SELECT + - 72 - + 47 DIV 23 * - SUM( + 44 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6958
SELECT + - 72 - + 47 / 23 * - SUM ( + 44 ) AS col1
----
16

query II rowsort
SELECT + + 46, - 39 + - 20 + + CASE 67 WHEN - NULLIF ( - ( 81 ), - 29 ) * + + 84 * + 90 THEN + ( 61 ) ELSE NULL END AS col1
----
46
NULL

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

query II rowsort
SELECT + - 33 AS col0, 23 AS col1
----
-33
23

onlyif mysql # aggregate syntax: 
query II rowsort label-6962
SELECT ALL + - COUNT( * ) AS col2, - ( + + ( - 32 ) ) * + SUM( - 77 ) * - MAX( + 27 ) * - COUNT( * ) + - COUNT( * ) * 15 AS col0
----
-1
-66543

skipif mysql # not compatible
query II rowsort label-6962
SELECT ALL + - COUNT ( * ) AS col2, - ( + + ( - 32 ) ) * + SUM ( - 77 ) * - MAX ( + 27 ) * - COUNT ( * ) + - COUNT ( * ) * 15 AS col0
----
-1
-66543

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT MIN( + 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6963
SELECT MIN ( + 43 ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6964
SELECT DISTINCT 19 * 11 + - 74 + MAX( ALL + + CAST( NULL AS SIGNED ) ) * + + 66 * - 17 * 74 + - + 86 + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT 19 * 11 + - 74 + MAX ( ALL + + CAST ( NULL AS INTEGER ) ) * + + 66 * - 17 * 74 + - + 86 + + 20 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6965
SELECT MIN ( DISTINCT 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT MIN( 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-6966
SELECT MIN ( 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT ALL - 86 * - + 87 + + COALESCE ( + COUNT( * ), - 7 - - 59 ) * + 98 * - 57
----
1896

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL - 86 * - + 87 + + COALESCE ( + COUNT ( * ), - 7 - - 59 ) * + 98 * - 57
----
1896

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT MIN( ALL 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6968
SELECT MIN ( ALL 11 ) AS col1
----
11

query I rowsort
SELECT + COALESCE ( + 98, 95 ) AS col0
----
98

query I rowsort
SELECT - 96 + - 95 col0
----
-191

onlyif mysql # DIV for integer division: 
query I rowsort label-6971
SELECT DISTINCT 2 DIV ( + 32 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT 2 / ( + 32 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT DISTINCT 31 + 16 - + COUNT( * ) * - 3 * 28 AS col1
----
131

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT 31 + 16 - + COUNT ( * ) * - 3 * 28 AS col1
----
131

query I rowsort
SELECT + 60 * + - 67
----
-4020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6974
SELECT ALL 66 DIV + COALESCE ( + CASE + + 58 WHEN + 1 + - + COUNT( DISTINCT - 1 ) THEN NULL ELSE 55 + - 97 * 87 * 86 END, + 2 + - 15 DIV + ( - 62 ) - - 1 * - + 20, + + 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL 66 / + COALESCE ( + CASE + + 58 WHEN + 1 + - + COUNT ( DISTINCT - 1 ) THEN NULL ELSE 55 + - 97 * 87 * 86 END, + 2 + - 15 / + ( - 62 ) - - 1 * - + 20, + + 80 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT DISTINCT - 99 + 86 + + 51 + - 7 * CAST( NULL AS SIGNED ) * 19 * + - 25 * + + 91 + - 42 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT - 99 + 86 + + 51 + - 7 * CAST ( NULL AS INTEGER ) * 19 * + - 25 * + + 91 + - 42 * + 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6976
SELECT ALL CASE 73 WHEN 6 THEN + 80 DIV + + 93 ELSE + + ( - 47 ) + 18 * + - SUM( + 38 ) * - COUNT( * ) + + 71 + + COUNT( * ) * 57 + + 17 DIV - 27 * + + COUNT( * ) - + + 49 + - + 29 END
----
687

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL CASE 73 WHEN 6 THEN + 80 / + + 93 ELSE + + ( - 47 ) + 18 * + - SUM ( + 38 ) * - COUNT ( * ) + + 71 + + COUNT ( * ) * 57 + + 17 / - 27 * + + COUNT ( * ) - + + 49 + - + 29 END
----
687

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT + 7 + - 59 * 25 + - 39 + 90 - - + MIN( DISTINCT + 59 ) * + 64 * 20 AS col0
----
74103

skipif mysql # not compatible
query I rowsort label-6977
SELECT + 7 + - 59 * 25 + - 39 + 90 - - + MIN ( DISTINCT + 59 ) * + 64 * 20 AS col0
----
74103

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT - 13 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-6978
SELECT - 13 / + 63
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6980
SELECT + 24 * + + CAST( - 97 AS SIGNED ) col0
----
-2328

skipif mysql # not compatible
query I rowsort label-6980
SELECT + 24 * + + CAST ( - 97 AS INTEGER ) col0
----
-2328

query II rowsort
SELECT - 30 * 73 AS col1, - 0
----
-2190
0

query I rowsort
SELECT - 25 + + - 75 AS col1
----
-100

query I rowsort
SELECT - 38 + + 55 AS col2
----
17

query I rowsort
SELECT - + 86 * - 81 * 62 + CASE + 85 WHEN + + 64 THEN + 17 ELSE NULL END + + - 56 + 65 * + - 73 * - - 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT - 52 + + - SUM( ALL + 55 ) AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-6985
SELECT - 52 + + - SUM ( ALL + 55 ) AS col1
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL + NULLIF ( CASE - - 47 WHEN - + 56 * + 1 * + 91 THEN + COALESCE ( - + 62, 21, ( - 80 ) ) WHEN - - 60 THEN NULL WHEN + 35 * + - 85 THEN NULL ELSE - 25 + + 31 END, - 81 / + + COUNT( * ) ) - 66 + 90 * + 81 AS col1
----
7230

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL + NULLIF ( CASE - - 47 WHEN - + 56 * + 1 * + 91 THEN + COALESCE ( - + 62, 21, ( - 80 ) ) WHEN - - 60 THEN NULL WHEN + 35 * + - 85 THEN NULL ELSE - 25 + + 31 END, - 81 / + + COUNT ( * ) ) - 66 + 90 * + 81 AS col1
----
7230

query I rowsort
SELECT DISTINCT - ( + 41 ) * + 79 AS col0
----
-3239

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT - + COUNT( * ) - - COUNT( ( - 16 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6988
SELECT - + COUNT ( * ) - - COUNT ( ( - 16 ) ) AS col2
----
0

query I rowsort
SELECT ALL - 25 * + 80 * + 96 * + 31 * - - 47 AS col0
----
-279744000

query I rowsort
SELECT - - 67 + + 15 col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6991
SELECT ALL + - COUNT( * ) - - - 64, - ( + - 35 ) AS col1
----
-65
35

skipif mysql # not compatible
query II rowsort label-6991
SELECT ALL + - COUNT ( * ) - - - 64, - ( + - 35 ) AS col1
----
-65
35

query I rowsort
SELECT + 11 * - + ( - 25 ) AS col0
----
275

query I rowsort
SELECT ALL - 65 * - 29 AS col0
----
1885

onlyif mysql # aggregate syntax: 
query II rowsort label-6994
SELECT + + COALESCE ( MIN( DISTINCT 75 ), - - 74 ) AS col1, COALESCE ( + 60, + 78, + + 52 + 62 ) * - - 43 * 12 * + + 34
----
75
1052640

skipif mysql # not compatible
query II rowsort label-6994
SELECT + + COALESCE ( MIN ( DISTINCT 75 ), - - 74 ) AS col1, COALESCE ( + 60, + 78, + + 52 + 62 ) * - - 43 * 12 * + + 34
----
75
1052640

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL - 20 * + MIN( 58 ) * - 83 col0
----
96280

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL - 20 * + MIN ( 58 ) * - 83 col0
----
96280

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT DISTINCT + MIN( DISTINCT - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT + MIN ( DISTINCT - 0 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT ALL + NULLIF ( + CAST( NULL AS SIGNED ), 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL + NULLIF ( + CAST ( NULL AS INTEGER ), 6 )
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( 94, 90 * - 35 - + 44 * 89 * + - 76 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT DISTINCT ( + - 26 ) DIV - - 99 + + 69 * + 6 AS col2
----
414

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT ( + - 26 ) / - - 99 + + 69 * + 6 AS col2
----
414

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

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL COUNT ( * ) / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT + 3 * + CASE + 57 WHEN + 96 THEN - - COUNT( * ) WHEN - 94 * 29 * - + 8 THEN + 78 + + 80 WHEN + NULLIF ( COUNT( DISTINCT 38 ), - 3 - CASE - + 32 WHEN - 69 * - ( - + 11 ) + 55 + + 82 THEN + 19 + - 10 WHEN 69 * - 30 THEN NULL END + COUNT( * ) / 38 / - 25 ) - MIN( + ( + 62 ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT + 3 * + CASE + 57 WHEN + 96 THEN - - COUNT ( * ) WHEN - 94 * 29 * - + 8 THEN + 78 + + 80 WHEN + NULLIF ( COUNT ( DISTINCT 38 ), - 3 - CASE - + 32 WHEN - 69 * - ( - + 11 ) + 55 + + 82 THEN + 19 + - 10 WHEN 69 * - 30 THEN NULL END + COUNT ( * ) / 38 / - 25 ) - MIN ( + ( + 62 ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7002
SELECT 48 * - 79 * - + 21 * + 28 + - 78 + + CAST( NULL AS SIGNED ) * + + COALESCE ( 9, - 41 * - - 56, - - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7002
SELECT 48 * - 79 * - + 21 * + 28 + - 78 + + CAST ( NULL AS INTEGER ) * + + COALESCE ( 9, - 41 * - - 56, - - 6 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT ALL 61 * - - MIN( DISTINCT 80 ) AS col2
----
4880

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL 61 * - - MIN ( DISTINCT 80 ) AS col2
----
4880

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

skipif mysql # not compatible
query I rowsort label-7005
SELECT + 67 + + - COUNT ( * ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL + COUNT( 64 ) * + - 89 + 42 * 33 + - + 21
----
1276

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL + COUNT ( 64 ) * + - 89 + 42 * 33 + - + 21
----
1276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7007
SELECT ALL + ( CAST( NULL AS SIGNED ) ) * - + 55 + + 12 + - + 65 + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) * - + 55 + + 12 + - + 65 + 42 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7008
SELECT CASE AVG ( + 9 ) WHEN - + CAST( NULL AS SIGNED ) + + 35 THEN + - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT CASE AVG ( + 9 ) WHEN - + CAST ( NULL AS INTEGER ) + + 35 THEN + - 38 END
----
NULL

query I rowsort
SELECT DISTINCT + 82 * - 29 + - 82 - - 54 AS col0
----
-2406

query I rowsort
SELECT - CASE + 50 WHEN + + 18 THEN - 46 WHEN + 21 + 52 * + 19 + + - 78 * - - 78 THEN + + 97 * - 17 END
----
NULL

query I rowsort
SELECT ALL - 49 * - ( + + 83 ) * + + 15 + + 52
----
61057

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT - CASE + COALESCE ( + - ( + + MAX( DISTINCT - NULLIF ( - 36, 65 ) ) ), COUNT( * ) * 83 ) WHEN 52 + - + 14 + + - 77 THEN + - COUNT( * ) + 85 - - - 58 + - 9 * 50 * 80 WHEN - - 31 * - 20 THEN - 81 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT - CASE + COALESCE ( + - ( + + MAX ( DISTINCT - NULLIF ( - 36, 65 ) ) ), COUNT ( * ) * 83 ) WHEN 52 + - + 14 + + - 77 THEN + - COUNT ( * ) + 85 - - - 58 + - 9 * 50 * 80 WHEN - - 31 * - 20 THEN - 81 ELSE NULL END
----
NULL

query I rowsort
SELECT + 89 + - 2 + - 52 * 7 AS col1
----
-277

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT - ( - - 88 ) + - - 14 * - 36 + + + MAX( ALL - 46 ) + + - ( + 33 ) AS col2
----
-671

skipif mysql # not compatible
query I rowsort label-7015
SELECT - ( - - 88 ) + - - 14 * - 36 + + + MAX ( ALL - 46 ) + + - ( + 33 ) AS col2
----
-671

onlyif mysql # DIV for integer division: 
query I rowsort label-7016
SELECT ALL 53 DIV 46
----
1

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL 53 / 46
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT + - 15 * - MAX( - + 56 ) - 2
----
-842

skipif mysql # not compatible
query I rowsort label-7017
SELECT + - 15 * - MAX ( - + 56 ) - 2
----
-842

query I rowsort
SELECT + ( - - 81 ) + - 13
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT COALESCE ( 9, + 59, + - MIN( - 21 ) ) + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-7019
SELECT COALESCE ( 9, + 59, + - MIN ( - 21 ) ) + COUNT ( * )
----
10

query I rowsort
SELECT - ( - 96 ) + + - 3 - + 6
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL 42 * + SUM( + 41 ) + - COUNT( * ) AS col2
----
1721

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL 42 * + SUM ( + 41 ) + - COUNT ( * ) AS col2
----
1721

query I rowsort
SELECT - 12 * + 91 AS col0
----
-1092

query I rowsort
SELECT - 81 * + ( - - 79 ) AS col0
----
-6399

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

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT - + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7025
SELECT ALL + 96 AS col1, - COUNT( * ) * + + 93 DIV - 8 + + 11
----
96
22

skipif mysql # not compatible
query II rowsort label-7025
SELECT ALL + 96 AS col1, - COUNT ( * ) * + + 93 / - 8 + + 11
----
96
22

query I rowsort
SELECT 83 + 74 AS col2
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7027
SELECT DISTINCT 58, 82 + MIN( + 28 ) * + + 29 * - + CAST( - ( 81 ) AS SIGNED ) + + + 62 AS col0
----
58
65916

skipif mysql # not compatible
query II rowsort label-7027
SELECT DISTINCT 58, 82 + MIN ( + 28 ) * + + 29 * - + CAST ( - ( 81 ) AS INTEGER ) + + + 62 AS col0
----
58
65916

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

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

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

query I rowsort
SELECT ALL - + 95 + - 1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7031
SELECT DISTINCT - - 78 + - 13 * + 45 DIV COUNT( * ) + - 64 * - 77 * + 94
----
462725

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT - - 78 + - 13 * + 45 / COUNT ( * ) + - 64 * - 77 * + 94
----
462725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7032
SELECT - ( - + COUNT( * ) ) DIV + + 27 * - COUNT( * ) * - 45 + - 83 + + 70 * + - 10 AS col1
----
-783

skipif mysql # not compatible
query I rowsort label-7032
SELECT - ( - + COUNT ( * ) ) / + + 27 * - COUNT ( * ) * - 45 + - 83 + + 70 * + - 10 AS col1
----
-783

query II rowsort
SELECT + 42 AS col0, 53 AS col1
----
42
53

query I rowsort
SELECT 94 * + 78 AS col1
----
7332

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT + NULLIF ( CASE - - 2 WHEN + NULLIF ( + COUNT( * ), 90 ) * 17 * CASE 74 WHEN + 2 THEN ( - NULLIF ( - - 3, + 11 ) ) / + - 47 END THEN NULL WHEN - COUNT( * ) THEN - ( + - COUNT( * ) ) END, - - 51 ) / MAX( - 47 ) - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7035
SELECT + NULLIF ( CASE - - 2 WHEN + NULLIF ( + COUNT ( * ), 90 ) * 17 * CASE 74 WHEN + 2 THEN ( - NULLIF ( - - 3, + 11 ) ) / + - 47 END THEN NULL WHEN - COUNT ( * ) THEN - ( + - COUNT ( * ) ) END, - - 51 ) / MAX ( - 47 ) - 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT ALL - CAST( - - MIN( 30 ) AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL - CAST ( - - MIN ( 30 ) AS INTEGER ) AS col2
----
-30

query II rowsort
SELECT 42 * + 2 AS col2, - 11
----
84
-11

query I rowsort
SELECT DISTINCT - 71 + 3
----
-68

query I rowsort
SELECT ALL + ( 95 ) + - 25 AS col0
----
70

query II rowsort
SELECT ALL - 87, - 5 AS col0
----
-87
-5

query I rowsort
SELECT ALL ( 79 ) + + - 45
----
34

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

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

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

skipif mysql # not compatible
query I rowsort label-7043
SELECT COUNT ( * ) / 16 * 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT ALL + COUNT( * ) - + NULLIF ( - 60, 6 * + 95 ) + 28 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL + COUNT ( * ) - + NULLIF ( - 60, 6 * + 95 ) + 28 AS col1
----
89

query I rowsort
SELECT 19 - - - NULLIF ( + - 2, 13 )
----
21

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

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

query II rowsort
SELECT 66 AS col0, ( + 7 ) AS col1
----
66
7

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

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

query I rowsort
SELECT 74 * + 79 * 6
----
35076

query II rowsort
SELECT + 83 AS col1, 37 * + 14 + + - 82 + - + 45 col2
----
83
391

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

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

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

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

query I rowsort
SELECT - NULLIF ( - - 41, - ( - 86 ) ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-7054
SELECT DISTINCT + 47 * 94 AS col2, ( + NULLIF ( + 63, - NULLIF ( + 70, + + 53 ) + + 56 * - + 16 + + 79 * + + 68 - + - COUNT( * ) * - MIN( - 65 ) ) ) AS col0
----
4418
63

skipif mysql # not compatible
query II rowsort label-7054
SELECT DISTINCT + 47 * 94 AS col2, ( + NULLIF ( + 63, - NULLIF ( + 70, + + 53 ) + + 56 * - + 16 + + 79 * + + 68 - + - COUNT ( * ) * - MIN ( - 65 ) ) ) AS col0
----
4418
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7055
SELECT - 24 col1, COUNT( * ) - - + COUNT( * ) * - 73 AS col1
----
-24
-72

skipif mysql # not compatible
query II rowsort label-7055
SELECT - 24 col1, COUNT ( * ) - - + COUNT ( * ) * - 73 AS col1
----
-24
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT - MAX( ALL + - 37 ) + - + 61
----
-24

skipif mysql # not compatible
query I rowsort label-7056
SELECT - MAX ( ALL + - 37 ) + - + 61
----
-24

query I rowsort
SELECT + 9 + 53 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT NULLIF ( COALESCE ( + + 78, + COUNT( * ) ), - - 96 * + 19 + - AVG ( ALL + 29 ) ) + + + 58 * - 47
----
-2648

skipif mysql # not compatible
query I rowsort label-7058
SELECT NULLIF ( COALESCE ( + + 78, + COUNT ( * ) ), - - 96 * + 19 + - AVG ( ALL + 29 ) ) + + + 58 * - 47
----
-2648

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT 39 DIV 42 * 63
----
0

skipif mysql # not compatible
query I rowsort label-7059
SELECT 39 / 42 * 63
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7060
SELECT + 36 + CAST( NULL AS SIGNED ) - + + 14 * 53 / 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7060
SELECT + 36 + CAST ( NULL AS INTEGER ) - + + 14 * 53 / 71
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 3, 8, 78 + + 79 - + 12 + + - 14 ) AS col2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7062
SELECT - + 85, 24 DIV + 80 AS col1
----
-85
0

skipif mysql # not compatible
query II rowsort label-7062
SELECT - + 85, 24 / + 80 AS col1
----
-85
0

query II rowsort
SELECT ALL - 29, 32 * - 95 AS col2
----
-29
-3040

query II rowsort
SELECT - 8, - 84 AS col1
----
-8
-84

query I rowsort
SELECT ALL + 82 + - 65
----
17

query I rowsort
SELECT 77 + - 63 col0
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT COALESCE ( - 97, + 52 + - 93 + - 60 * - + 70 ) * - SUM( DISTINCT + 77 ) + 31 AS col1
----
7500

skipif mysql # not compatible
query I rowsort label-7068
SELECT COALESCE ( - 97, + 52 + - 93 + - 60 * - + 70 ) * - SUM ( DISTINCT + 77 ) + 31 AS col1
----
7500

query I rowsort
SELECT + NULLIF ( - 1, + 30 * + 0 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT COUNT( * ) * - 78 * + 80
----
-6240

skipif mysql # not compatible
query I rowsort label-7070
SELECT COUNT ( * ) * - 78 * + 80
----
-6240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7071
SELECT - MAX( + + ( + + 29 ) ) DIV 68 + 13 + - 95 DIV - 43 * - COUNT( * ) + + 47
----
58

skipif mysql # not compatible
query I rowsort label-7071
SELECT - MAX ( + + ( + + 29 ) ) / 68 + 13 + - 95 / - 43 * - COUNT ( * ) + + 47
----
58

query I rowsort
SELECT DISTINCT 14 * - 51 AS col1
----
-714

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

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL - MAX ( 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7074
SELECT DISTINCT - COALESCE ( + COUNT( * ), + CAST( NULL AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 6 * - 12 - + + 5 col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT 32 * + + 19 * COUNT( * ) AS col1
----
608

skipif mysql # not compatible
query I rowsort label-7076
SELECT 32 * + + 19 * COUNT ( * ) AS col1
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT 67 * - 79 * + COUNT( * ) * - 29 AS col2
----
153497

skipif mysql # not compatible
query I rowsort label-7077
SELECT 67 * - 79 * + COUNT ( * ) * - 29 AS col2
----
153497

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT 38 + + 32 * - COUNT( * ) * 47 AS col1
----
-1466

skipif mysql # not compatible
query I rowsort label-7078
SELECT 38 + + 32 * - COUNT ( * ) * 47 AS col1
----
-1466

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT DISTINCT + 86 - - MIN( + 48 ) + + 88 - + - NULLIF ( - 83, - NULLIF ( - 55, + + 87 ) ) col2
----
139

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT + 86 - - MIN ( + 48 ) + + 88 - + - NULLIF ( - 83, - NULLIF ( - 55, + + 87 ) ) col2
----
139

query I rowsort
SELECT DISTINCT ( - - 5 ) * 62
----
310

onlyif mysql # aggregate syntax: 
query II rowsort label-7081
SELECT ALL + COUNT( - 1 ) AS col1, + 14
----
1
14

skipif mysql # not compatible
query II rowsort label-7081
SELECT ALL + COUNT ( - 1 ) AS col1, + 14
----
1
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7082
SELECT - + 13 * - + AVG ( - CAST( NULL AS SIGNED ) ) * - 52 * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT - + 13 * - + AVG ( - CAST ( NULL AS INTEGER ) ) * - 52 * - 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7083
SELECT + - 32 DIV - + 73 + - 10 * + - 97 * - - 43 * - COUNT( + 90 ) AS col2, 97
----
-41710
97

skipif mysql # not compatible
query II rowsort label-7083
SELECT + - 32 / - + 73 + - 10 * + - 97 * - - 43 * - COUNT ( + 90 ) AS col2, 97
----
-41710
97

onlyif mysql # DIV for integer division: 
query II rowsort label-7084
SELECT DISTINCT + + 91 DIV + 3, 17 AS col2
----
30
17

skipif mysql # not compatible
query II rowsort label-7084
SELECT DISTINCT + + 91 / + 3, 17 AS col2
----
30
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT ALL + + 28 + 36 - MIN( 87 )
----
-23

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL + + 28 + 36 - MIN ( 87 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7086
SELECT DISTINCT 42 + 90, + COUNT( DISTINCT - 68 ) AS col2
----
132
1

skipif mysql # not compatible
query II rowsort label-7086
SELECT DISTINCT 42 + 90, + COUNT ( DISTINCT - 68 ) AS col2
----
132
1

query I rowsort
SELECT DISTINCT - + ( 59 ) + 53 AS col0
----
-6

query I rowsort
SELECT ALL 60 + + 51
----
111

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

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT + - 86 + + CAST ( NULL AS INTEGER ) - - 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7090
SELECT ALL ( + 89 ) AS col1, + CAST( NULL AS SIGNED ) / - 29
----
89
NULL

skipif mysql # not compatible
query II rowsort label-7090
SELECT ALL ( + 89 ) AS col1, + CAST ( NULL AS INTEGER ) / - 29
----
89
NULL

query I rowsort
SELECT ALL 87 + 35 + + - 59 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT + 57 * 92 * ( COUNT( * ) ) * + 47 + + 47 AS col0
----
246515

skipif mysql # not compatible
query I rowsort label-7092
SELECT + 57 * 92 * ( COUNT ( * ) ) * + 47 + + 47 AS col0
----
246515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7093
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) ), + MAX( - 28 ) AS col0
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-7093
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ), + MAX ( - 28 ) AS col0
----
NULL
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7094
SELECT ALL - CASE 2 WHEN - NULLIF ( + + 28, + 52 * 65 ) * + - COUNT( * ) + + 97 THEN + 49 WHEN + ( + 53 ) * COUNT( * ) / + + 96 * - 15 * - - 34 * - - 4 + + AVG ( + + 0 ) THEN 49 * 68 * ( CAST( - 3 AS SIGNED ) ) * + CASE - COUNT( * ) WHEN CAST( NULL AS SIGNED ) + - COUNT( * ) THEN - 56 * 70 END + - 93 END + - 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL - CASE 2 WHEN - NULLIF ( + + 28, + 52 * 65 ) * + - COUNT ( * ) + + 97 THEN + 49 WHEN + ( + 53 ) * COUNT ( * ) / + + 96 * - 15 * - - 34 * - - 4 + + AVG ( + + 0 ) THEN 49 * 68 * ( CAST ( - 3 AS INTEGER ) ) * + CASE - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) + - COUNT ( * ) THEN - 56 * 70 END + - 93 END + - 67 col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( + 51 ) + - + 81
----
-30

query I rowsort
SELECT DISTINCT ( + 8 ) AS col2
----
8

query I rowsort
SELECT ALL ( 83 ) col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT ALL CAST( NULL AS SIGNED ) - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL CAST ( NULL AS INTEGER ) - - 97
----
NULL

query I rowsort
SELECT + 44 * - + 39
----
-1716

query I rowsort
SELECT ALL 2 * + 16 * + 22 AS col1
----
704

query I rowsort
SELECT + 8 * + - 69
----
-552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT 27 / - + CAST( NULL AS SIGNED ) + 41 * NULLIF ( - 7, 57 * + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT 27 / - + CAST ( NULL AS INTEGER ) + 41 * NULLIF ( - 7, 57 * + 76 )
----
NULL

query I rowsort
SELECT + CASE + - 21 WHEN - 80 + 14 * - - 47 THEN NULL WHEN 71 + + 12 THEN - + 70 + + 79 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT ALL ( + CASE 99 WHEN 93 THEN + - COUNT( * ) END ) * - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL ( + CASE 99 WHEN 93 THEN + - COUNT ( * ) END ) * - 75 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7106
SELECT 36 DIV + 40 - - 51 col2
----
51

skipif mysql # not compatible
query I rowsort label-7106
SELECT 36 / + 40 - - 51 col2
----
51

query I rowsort
SELECT + NULLIF ( + 84, + - ( + AVG ( 98 ) ) )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7108
SELECT ALL ( - 68 ) * + + 53 + - 35 + - COALESCE ( - + 32, 86 ) + 99 + + ( - COUNT( * ) ) * 18 * + COUNT( * ) * + 17, - 75 + - + ( 4 ) * 73 * - ( + 77 ) AS col1
----
-3814
22409

skipif mysql # not compatible
query II rowsort label-7108
SELECT ALL ( - 68 ) * + + 53 + - 35 + - COALESCE ( - + 32, 86 ) + 99 + + ( - COUNT ( * ) ) * 18 * + COUNT ( * ) * + 17, - 75 + - + ( 4 ) * 73 * - ( + 77 ) AS col1
----
-3814
22409

query I rowsort
SELECT CASE - - 82 WHEN - + 20 THEN NULL ELSE + 74 - - 51 END AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT - NULLIF ( - 30, 52 ) * COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-7110
SELECT - NULLIF ( - 30, 52 ) * COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query III rowsort label-7111
SELECT ALL + 12 AS col1, 28 + + 4 + + 71 * COUNT( * ) * - 21 AS col2, + - 86 AS col2
----
12
-1459
-86

skipif mysql # not compatible
query III rowsort label-7111
SELECT ALL + 12 AS col1, 28 + + 4 + + 71 * COUNT ( * ) * - 21 AS col2, + - 86 AS col2
----
12
-1459
-86

query I rowsort
SELECT DISTINCT + - CASE 25 WHEN - 71 THEN - + 66 ELSE NULL END
----
NULL

query II rowsort
SELECT + - 69 AS col0, + CASE + - 50 WHEN 92 THEN + 69 END
----
-69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT + COUNT( ALL + 4 ) * - + 53
----
-53

skipif mysql # not compatible
query I rowsort label-7114
SELECT + COUNT ( ALL + 4 ) * - + 53
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-7115
SELECT + 47, + MIN( - 85 ) * 96 col2
----
47
-8160

skipif mysql # not compatible
query II rowsort label-7115
SELECT + 47, + MIN ( - 85 ) * 96 col2
----
47
-8160

query I rowsort
SELECT ALL - 48 * + 68
----
-3264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7117
SELECT - COUNT( * ) DIV + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7117
SELECT - COUNT ( * ) / + 31 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7118
SELECT ALL 97 * - 60 DIV - + COUNT( * ) + 58 + - 80 * ( - 19 )
----
7398

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL 97 * - 60 / - + COUNT ( * ) + 58 + - 80 * ( - 19 )
----
7398

query I rowsort
SELECT - + NULLIF ( + - CASE 1 WHEN - 55 - + 25 + - 58 * - 66 THEN NULL WHEN - 16 THEN - 25 END, - 52 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT DISTINCT + - 76 * 27 + - 81 + - 35 + COUNT( * ) + 94 * - - 19
----
-381

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT + - 76 * 27 + - 81 + - 35 + COUNT ( * ) + 94 * - - 19
----
-381

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT - - 51 - - - 65 + + 12 * - MAX( 99 ) AS col0
----
-1202

skipif mysql # not compatible
query I rowsort label-7121
SELECT - - 51 - - - 65 + + 12 * - MAX ( 99 ) AS col0
----
-1202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7122
SELECT ALL CAST( NULL AS SIGNED ), - 93 DIV + 85 + + 19 + + + 85 + - COUNT( * ) AS col2
----
NULL
102

skipif mysql # not compatible
query II rowsort label-7122
SELECT ALL CAST ( NULL AS INTEGER ), - 93 / + 85 + + 19 + + + 85 + - COUNT ( * ) AS col2
----
NULL
102

query I rowsort
SELECT - + 76 * 37 * 67 * + 61
----
-11492644

onlyif mysql # aggregate syntax: 
query II rowsort label-7124
SELECT - - 7 + - MAX( ALL 87 ), COUNT( * ) * + COUNT( * ) AS col0
----
-80
1

skipif mysql # not compatible
query II rowsort label-7124
SELECT - - 7 + - MAX ( ALL 87 ), COUNT ( * ) * + COUNT ( * ) AS col0
----
-80
1

query II rowsort
SELECT - 54 col2, 70 * - 0
----
-54
0

query I rowsort
SELECT + 77 * - 71 AS col1
----
-5467

query I rowsort
SELECT - 21 + + 55 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7128
SELECT ALL - COUNT( * ) AS col2, COUNT( + - CAST( NULL AS SIGNED ) )
----
-1
0

skipif mysql # not compatible
query II rowsort label-7128
SELECT ALL - COUNT ( * ) AS col2, COUNT ( + - CAST ( NULL AS INTEGER ) )
----
-1
0

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

query I rowsort
SELECT ALL - 3 - - 35
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT - COUNT( * ) + + 39 * + COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7131
SELECT - COUNT ( * ) + + 39 * + COUNT ( * ) AS col1
----
38

query I rowsort
SELECT ALL + 31 * + - 67 AS col0
----
-2077

query I rowsort
SELECT + 97 + 0
----
97

query I rowsort
SELECT - 84 * - 92
----
7728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7135
SELECT 41 DIV + COUNT( * ) + + 65 - + 51 * - MAX( + 72 )
----
3778

skipif mysql # not compatible
query I rowsort label-7135
SELECT 41 / + COUNT ( * ) + + 65 - + 51 * - MAX ( + 72 )
----
3778

query I rowsort
SELECT + 54 * - 79 * - 75
----
319950

query I rowsort
SELECT ALL - ( 31 ) AS col2
----
-31

query I rowsort
SELECT DISTINCT 83 * - - 56 AS col2
----
4648

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT ALL 13 DIV + + 44 * - 82 col0
----
0

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL 13 / + + 44 * - 82 col0
----
0

query I rowsort
SELECT 73 * 12 * + - 60 AS col2
----
-52560

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT COUNT( * ) * + + 38 * - 57 * - NULLIF ( - CASE - + 37 WHEN + + NULLIF ( + 28, 17 + - COUNT( * ) * - COUNT( * ) * - 27 ) THEN - AVG ( DISTINCT + - 95 ) + + - 55 ELSE NULL END, - + 77 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7141
SELECT COUNT ( * ) * + + 38 * - 57 * - NULLIF ( - CASE - + 37 WHEN + + NULLIF ( + 28, 17 + - COUNT ( * ) * - COUNT ( * ) * - 27 ) THEN - AVG ( DISTINCT + - 95 ) + + - 55 ELSE NULL END, - + 77 ) AS col2
----
NULL

query I rowsort
SELECT + 34 * + 39 + 19
----
1345

onlyif mysql # DIV for integer division: 
query II rowsort label-7143
SELECT - NULLIF ( - + 28, + - 62 ) DIV 50 AS col2, + ( - 75 ) AS col2
----
0
-75

skipif mysql # not compatible
query II rowsort label-7143
SELECT - NULLIF ( - + 28, + - 62 ) / 50 AS col2, + ( - 75 ) AS col2
----
0
-75

query I rowsort
SELECT - ( + NULLIF ( - 42, - 45 * 12 + + + 27 * - 26 + - 42 ) ) + + + 36 AS col2
----
78

query I rowsort
SELECT 16 * + 56 - 76
----
820

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT 14 + + + ( - + COUNT( * ) ) + - COUNT( * ) * + 41 + - + 13 col2
----
-41

skipif mysql # not compatible
query I rowsort label-7146
SELECT 14 + + + ( - + COUNT ( * ) ) + - COUNT ( * ) * + 41 + - + 13 col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT + ( + + 47 ) * + 27 + 66 - - CASE + - 86 WHEN + 49 + 50 + - 94 THEN NULL WHEN - + NULLIF ( 36, + ( - MIN( 49 ) ) * - ( 89 ) / COUNT( * ) + + MAX( + + 13 ) ) THEN NULL WHEN - COALESCE ( + + 48, 1 ) THEN - + COUNT( * ) + + - 98 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT + ( + + 47 ) * + 27 + 66 - - CASE + - 86 WHEN + 49 + 50 + - 94 THEN NULL WHEN - + NULLIF ( 36, + ( - MIN ( 49 ) ) * - ( 89 ) / COUNT ( * ) + + MAX ( + + 13 ) ) THEN NULL WHEN - COALESCE ( + + 48, 1 ) THEN - + COUNT ( * ) + + - 98 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 66 + 37
----
-29

query I rowsort
SELECT DISTINCT 63 + + - 69
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT ALL - + MIN( - + 55 ) + - 93
----
-38

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL - + MIN ( - + 55 ) + - 93
----
-38

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

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

query I rowsort
SELECT - 39 + - 55 col0
----
-94

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

query I rowsort
SELECT DISTINCT - - 19 - - - 9 * + + 97 + 52 AS col2
----
-802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7156
SELECT ALL + CASE - 25 WHEN + 92 THEN 6 * + 26 END AS col0, + CAST( + 3 AS SIGNED ) * MIN( - 50 ) + 36 AS col0
----
NULL
-114

skipif mysql # not compatible
query II rowsort label-7156
SELECT ALL + CASE - 25 WHEN + 92 THEN 6 * + 26 END AS col0, + CAST ( + 3 AS INTEGER ) * MIN ( - 50 ) + 36 AS col0
----
NULL
-114

query I rowsort
SELECT + 14 * + - 65 + + ( - 77 ) * + 42 AS col0
----
-4144

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT DISTINCT 93 - + COUNT( + 63 )
----
92

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT 93 - + COUNT ( + 63 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7159
SELECT 33 DIV 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7159
SELECT 33 / 58 AS col2
----
0

query I rowsort
SELECT ALL - 99 * - ( 97 ) AS col0
----
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-7161
SELECT 22 DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7161
SELECT 22 / - 54 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT 58 DIV - - 76 * + 47
----
0

skipif mysql # not compatible
query I rowsort label-7162
SELECT 58 / - - 76 * + 47
----
0

query I rowsort
SELECT 32 - - - 26 * + 96
----
-2464

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7165
SELECT - 5, - 99 * - ( - ( - 77 ) ) * - NULLIF ( + COUNT( * ), - 13 + - - 6 * 97 + + NULLIF ( - COALESCE ( + 43, - 83 ), + NULLIF ( - - 50, 76 ) ) / - - 68 ) AS col1
----
-5
-7623

skipif mysql # not compatible
query II rowsort label-7165
SELECT - 5, - 99 * - ( - ( - 77 ) ) * - NULLIF ( + COUNT ( * ), - 13 + - - 6 * 97 + + NULLIF ( - COALESCE ( + 43, - 83 ), + NULLIF ( - - 50, 76 ) ) / - - 68 ) AS col1
----
-5
-7623

query I rowsort
SELECT 42 * 14 AS col2
----
588

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7167
SELECT 24 AS col0, - MIN( - 62 ) DIV 21 DIV + - 24 + 92 DIV - - NULLIF ( - 21, - 35 - 49 ) - 58 col0
----
24
-62

skipif mysql # not compatible
query II rowsort label-7167
SELECT 24 AS col0, - MIN ( - 62 ) / 21 / + - 24 + 92 / - - NULLIF ( - 21, - 35 - 49 ) - 58 col0
----
24
-62

query I rowsort
SELECT DISTINCT 60 * + - 32
----
-1920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT ALL + 10 + + + COALESCE ( + 16, CAST( NULL AS SIGNED ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL + 10 + + + COALESCE ( + 16, CAST ( NULL AS INTEGER ) ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT 66 + COUNT( * ) + - 59
----
8

skipif mysql # not compatible
query I rowsort label-7170
SELECT 66 + COUNT ( * ) + - 59
----
8

query I rowsort
SELECT ALL - COALESCE ( - 8, + + 12 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT CAST( 5 AS SIGNED ) * 94 AS col2
----
470

skipif mysql # not compatible
query I rowsort label-7172
SELECT CAST ( 5 AS INTEGER ) * 94 AS col2
----
470

query I rowsort
SELECT ALL - 70 + - 62
----
-132

query I rowsort
SELECT ALL 13 + + - 25
----
-12

query I rowsort
SELECT DISTINCT - - 52 col0
----
52

query I rowsort
SELECT - 96 * 74
----
-7104

query I rowsort
SELECT + - NULLIF ( 79, + + AVG ( ALL ( - 37 ) ) * - + 74 + - + 4 )
----
-79

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

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

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

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT + ( + - COUNT ( * ) ) / + - 88
----
0

query I rowsort
SELECT ALL 93 - - 75 AS col0
----
168

query I rowsort
SELECT ALL + - NULLIF ( - 34, + 65 * - + ( 78 ) ) * - - 92 col0
----
3128

query I rowsort
SELECT DISTINCT - ( 38 ) - - 48
----
10

query I rowsort
SELECT 0 - + 76
----
-76

query II rowsort
SELECT ALL 12 AS col0, 18 + + 98
----
12
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT 13 * - MIN( - 52 ) AS col2
----
676

skipif mysql # not compatible
query I rowsort label-7185
SELECT 13 * - MIN ( - 52 ) AS col2
----
676

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7186
SELECT - 90 col1, - 53 * - MIN( ALL - 97 ) + 92 - + COUNT( * ) + + 56 DIV 43 + + 20
----
-90
-5029

skipif mysql # not compatible
query II rowsort label-7186
SELECT - 90 col1, - 53 * - MIN ( ALL - 97 ) + 92 - + COUNT ( * ) + + 56 / 43 + + 20
----
-90
-5029

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

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

query I rowsort
SELECT 61 * - ( 64 )
----
-3904

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

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

query II rowsort
SELECT 15, - 65 + - 26 col1
----
15
-91

query I rowsort
SELECT ALL - 68 * + + 32 * - 89 * - + 98 * - + 39
----
740183808

query I rowsort
SELECT ALL + 41 * - NULLIF ( - 64, - - 96 ) AS col2
----
2624

query I rowsort
SELECT - 7 + + 36 + - ( + 11 ) + + 76 AS col1
----
94

query I rowsort
SELECT ALL - 69 + + 33 AS col1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7195
SELECT + 78 * 12 DIV 1 * 72
----
67392

skipif mysql # not compatible
query I rowsort label-7195
SELECT + 78 * 12 / 1 * 72
----
67392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7196
SELECT - ( + MIN( ALL CAST( NULL AS SIGNED ) ) ) / 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT - ( + MIN ( ALL CAST ( NULL AS INTEGER ) ) ) / 29 AS col2
----
NULL

query I rowsort
SELECT - 60 + - ( 38 ) - - 74
----
-24

query II rowsort
SELECT 96, + 4 * 18 + + + ( - 39 ) AS col2
----
96
33

query I rowsort
SELECT - 89 + + 98 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT - COALESCE ( - + 84, - 34 * + SUM( + 49 ) * - 58 + 71, - 7 ) * + ( - 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7200
SELECT - COALESCE ( - + 84, - 34 * + SUM ( + 49 ) * - 58 + 71, - 7 ) * + ( - 0 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7201
SELECT - 53 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT - 53 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT ALL + 6 DIV - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL + 6 / - 33 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT COALESCE ( - COUNT( * ), - COUNT( * ), + 97, - 51 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7203
SELECT COALESCE ( - COUNT ( * ), - COUNT ( * ), + 97, - 51 ) AS col0
----
-1

query I rowsort
SELECT ALL 14 * + + COALESCE ( 27, + 72, + CASE - + 22 WHEN - 91 THEN NULL WHEN 7 * - 50 THEN + + 41 - + 47 WHEN 80 * - 28 + + 62 THEN NULL ELSE - 38 END, - + ( 61 ) ) + + 56 - - + 33 - 10
----
457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7205
SELECT ALL 82 * - CAST( NULL AS SIGNED ) + - SUM( + 72 ) col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7205
SELECT ALL 82 * - CAST ( NULL AS INTEGER ) + - SUM ( + 72 ) col0, + COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT ALL + - MIN( + 71 ) * 46 * - 9 + - 0 + + 2 * + + 20 * - - 69 * + 78 AS col2
----
244674

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + - MIN ( + 71 ) * 46 * - 9 + - 0 + + 2 * + + 20 * - - 69 * + 78 AS col2
----
244674

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT ALL + 87, + 55 + 80 * 65 * + 44 - - 86 + + COUNT( * ) AS col0
----
87
228942

skipif mysql # not compatible
query II rowsort label-7208
SELECT ALL + 87, + 55 + 80 * 65 * + 44 - - 86 + + COUNT ( * ) AS col0
----
87
228942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7209
SELECT + + SUM( + CAST( + 8 AS SIGNED ) ) DIV 18 - + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7209
SELECT + + SUM ( + CAST ( + 8 AS INTEGER ) ) / 18 - + 0 AS col2
----
0

query I rowsort
SELECT - - 64 + 30 * - 61
----
-1766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7211
SELECT + - CASE - 90 WHEN - + 17 * + + 64 + CASE + 1 WHEN - + 45 + + MAX( DISTINCT - - CAST( 39 AS SIGNED ) ) + + 95 + + + 70 * 71 + - + COALESCE ( - - 11, + CASE - 39 WHEN - - 9 THEN NULL ELSE - 94 END ) THEN + + CASE - COUNT( * ) WHEN + 19 THEN NULL WHEN + + 31 THEN NULL WHEN + + 27 THEN - ( - 85 ) ELSE 80 END END THEN - 74 / + 98 + 50 * 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT + - CASE - 90 WHEN - + 17 * + + 64 + CASE + 1 WHEN - + 45 + + MAX ( DISTINCT - - CAST ( 39 AS INTEGER ) ) + + 95 + + + 70 * 71 + - + COALESCE ( - - 11, + CASE - 39 WHEN - - 9 THEN NULL ELSE - 94 END ) THEN + + CASE - COUNT ( * ) WHEN + 19 THEN NULL WHEN + + 31 THEN NULL WHEN + + 27 THEN - ( - 85 ) ELSE 80 END END THEN - 74 / + 98 + 50 * 87 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7212
SELECT 78 * + + COALESCE ( + - 55, + + COUNT( * ), - - 11 ) * 47 * - 71 + 94 + + CAST( NULL AS SIGNED ) * - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT 78 * + + COALESCE ( + - 55, + + COUNT ( * ), - - 11 ) * 47 * - 71 + 94 + + CAST ( NULL AS INTEGER ) * - - 18
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7213
SELECT - - COUNT ( * ) * + 85 * - 12 AS col2
----
-1020

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7214
SELECT COUNT( ALL + - CAST( NULL AS DECIMAL ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7214
SELECT COUNT ( ALL + - CAST ( NULL AS REAL ) ) AS col2
----
0

query I rowsort
SELECT - 74 + 62 + 44 AS col1
----
32

query II rowsort
SELECT ALL + - 44, 69 + - - 82 AS col1
----
-44
151

query I rowsort
SELECT DISTINCT + 65 * 73
----
4745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7218
SELECT ALL + CASE - COUNT( * ) WHEN - 76 * - 95 + + - 6 * CAST( - - CAST( 59 AS SIGNED ) AS SIGNED ) * - 37 * + 99 THEN NULL ELSE - 43 * - 48 - - 53 * - 16 * - 87 END DIV + 81 * + COUNT( * )
----
936

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL + CASE - COUNT ( * ) WHEN - 76 * - 95 + + - 6 * CAST ( - - CAST ( 59 AS INTEGER ) AS INTEGER ) * - 37 * + 99 THEN NULL ELSE - 43 * - 48 - - 53 * - 16 * - 87 END / + 81 * + COUNT ( * )
----
936

onlyif mysql # DIV for integer division: 
query I rowsort label-7219
SELECT - - 76 DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-7219
SELECT - - 76 / 66
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7220
SELECT + COUNT( - 67 ) * - 69 + + + 32 - + 43 + - 93 * CAST( NULL AS DECIMAL ) - + COUNT( * ) - - 62 * 52 * + 69 + + MIN( NULLIF ( 17, + - 53 ) ) + + - 67 + + 40 - + COALESCE ( - 30, + COALESCE ( - 53, + 73, COUNT( * ) ), - 36 / + 52 * + + CASE + 71 WHEN COUNT( * ) THEN NULL WHEN 22 + + 14 * 73 THEN MAX( 25 ) ELSE NULL END + + 79 ) * - 82 * 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7220
SELECT + COUNT ( - 67 ) * - 69 + + + 32 - + 43 + - 93 * CAST ( NULL AS REAL ) - + COUNT ( * ) - - 62 * 52 * + 69 + + MIN ( NULLIF ( 17, + - 53 ) ) + + - 67 + + 40 - + COALESCE ( - 30, + COALESCE ( - 53, + 73, COUNT ( * ) ), - 36 / + 52 * + + CASE + 71 WHEN COUNT ( * ) THEN NULL WHEN 22 + + 14 * 73 THEN MAX ( 25 ) ELSE NULL END + + 79 ) * - 82 * 99 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7222
SELECT ALL 32 + + ( - 37 ) DIV 49 + + + 20 + - COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL 32 + + ( - 37 ) / 49 + + + 20 + - COUNT ( * ) AS col1
----
51

query I rowsort
SELECT ALL 26 + - 10 + 97 AS col2
----
113

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

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL 90 + + - COUNT ( * ) AS col2
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT + CASE COUNT( * ) WHEN - 47 * 11 THEN NULL WHEN + 82 THEN - + 26 END + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7226
SELECT + CASE COUNT ( * ) WHEN - 47 * 11 THEN NULL WHEN + 82 THEN - + 26 END + + 99
----
NULL

query I rowsort
SELECT + 48 - + 23 * + 72 AS col0
----
-1608

query II rowsort
SELECT - ( 53 ) AS col2, - 25 * + 17
----
-53
-425

query I rowsort
SELECT + ( - 83 ) * - 20 AS col1
----
1660

query I rowsort
SELECT ALL 30 + 79
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7231
SELECT ALL - 47 - + + 14 + - COALESCE ( + 0, CAST( + 0 AS SIGNED ) * + 39, + 48 + + CASE 10 WHEN - 94 - - 82 THEN NULL WHEN - - 58 THEN NULL WHEN 46 * + + 48 + + 30 * - 30 * - COUNT( * ) + - CAST( + 3 AS DECIMAL ) * + 77 + - 45 * 65 * - + 4 THEN NULL WHEN - 83 * + - 32 THEN NULL ELSE + 12 * CAST( 52 * 26 AS SIGNED ) + + 7 END ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL - 47 - + + 14 + - COALESCE ( + 0, CAST ( + 0 AS INTEGER ) * + 39, + 48 + + CASE 10 WHEN - 94 - - 82 THEN NULL WHEN - - 58 THEN NULL WHEN 46 * + + 48 + + 30 * - 30 * - COUNT ( * ) + - CAST ( + 3 AS REAL ) * + 77 + - 45 * 65 * - + 4 THEN NULL WHEN - 83 * + - 32 THEN NULL ELSE + 12 * CAST ( 52 * 26 AS INTEGER ) + + 7 END ) AS col2
----
-61

query I rowsort
SELECT DISTINCT 30 * 27 AS col2
----
810

query I rowsort
SELECT - CASE - - 6 WHEN 1 + 80 THEN 88 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7234
SELECT - + COALESCE ( - 47, ( - - 45 ), + - 47 * 58 + + 22 + + COUNT( * ) ) DIV - - 57 + + 91 + + 74 col1
----
165

skipif mysql # not compatible
query I rowsort label-7234
SELECT - + COALESCE ( - 47, ( - - 45 ), + - 47 * 58 + + 22 + + COUNT ( * ) ) / - - 57 + + 91 + + 74 col1
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7235
SELECT - - 35 - + 26 DIV - COUNT( * ) + - CASE + COUNT( * ) WHEN - 78 * - - ( - 81 ) + 36 THEN NULL ELSE - 93 + + 8 + + COALESCE ( + 37, - COUNT( * ), + COUNT( * ) ) * - 98 * - 94 + + 58 END AS col0
----
-340756

skipif mysql # not compatible
query I rowsort label-7235
SELECT - - 35 - + 26 / - COUNT ( * ) + - CASE + COUNT ( * ) WHEN - 78 * - - ( - 81 ) + 36 THEN NULL ELSE - 93 + + 8 + + COALESCE ( + 37, - COUNT ( * ), + COUNT ( * ) ) * - 98 * - 94 + + 58 END AS col0
----
-340756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7236
SELECT ( - - CASE - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) + NULLIF ( + - 16, - - 81 / + 14 ) + + - 32 * - + 71 * - + 44 + + + 15 THEN 60 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7236
SELECT ( - - CASE - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) + NULLIF ( + - 16, - - 81 / + 14 ) + + - 32 * - + 71 * - + 44 + + + 15 THEN 60 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT + + 49 DIV + - 58
----
0

skipif mysql # not compatible
query I rowsort label-7237
SELECT + + 49 / + - 58
----
0

query I rowsort
SELECT - + 43 * - + 43 AS col0
----
1849

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT - 14 + COUNT( 9 )
----
-13

skipif mysql # not compatible
query I rowsort label-7239
SELECT - 14 + COUNT ( 9 )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7240
SELECT DISTINCT - + 12 DIV - COALESCE ( + 44, 15, 65 DIV + - 78 * + - AVG ( + 28 ) + - 17 + MIN( DISTINCT - 43 ) - + + MAX( DISTINCT + - ( - + 12 ) ) * - + COUNT( * ) * 38 )
----
0

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT - + 12 / - COALESCE ( + 44, 15, 65 / + - 78 * + - AVG ( + 28 ) + - 17 + MIN ( DISTINCT - 43 ) - + + MAX ( DISTINCT + - ( - + 12 ) ) * - + COUNT ( * ) * 38 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL + + 99 * COUNT( ( - - 37 ) ) - + + CASE + ( - MIN( 32 ) ) WHEN - - 91 * + + ( + + SUM( ALL 96 ) ) * - - COUNT( * ) THEN + 0 - - 49 * - MIN( DISTINCT 23 ) WHEN 94 * - - 28 * - 60 THEN NULL ELSE NULL END + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL + + 99 * COUNT ( ( - - 37 ) ) - + + CASE + ( - MIN ( 32 ) ) WHEN - - 91 * + + ( + + SUM ( ALL 96 ) ) * - - COUNT ( * ) THEN + 0 - - 49 * - MIN ( DISTINCT 23 ) WHEN 94 * - - 28 * - 60 THEN NULL ELSE NULL END + 72
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT - + COALESCE ( + + NULLIF ( + COUNT( * ), - - 16 - 63 + + 28 + - 90 * 60 ), - + COUNT( * ) ) * - + 74
----
74

skipif mysql # not compatible
query I rowsort label-7243
SELECT - + COALESCE ( + + NULLIF ( + COUNT ( * ), - - 16 - 63 + + 28 + - 90 * 60 ), - + COUNT ( * ) ) * - + 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT - - 42 * + 93 * 28 * + ( MIN( + 81 ) )
----
8858808

skipif mysql # not compatible
query I rowsort label-7244
SELECT - - 42 * + 93 * 28 * + ( MIN ( + 81 ) )
----
8858808

query I rowsort
SELECT - 61 - - ( 81 )
----
20

query I rowsort
SELECT ALL + ( + NULLIF ( - COALESCE ( + + 67, - 4, - - 17 ), - 26 ) ) * 21 + + - 63
----
-1470

query II rowsort
SELECT ALL + 86 * 88 * - + 27 AS col2, 66 AS col1
----
-204336
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7248
SELECT 42 * + NULLIF ( CAST( CASE 82 WHEN + 48 * + 69 THEN - - 76 WHEN + - COALESCE ( 17, ( COUNT( * ) ) ) THEN NULL ELSE NULL END AS SIGNED ), + - COUNT( * ) * - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT 42 * + NULLIF ( CAST ( CASE 82 WHEN + 48 * + 69 THEN - - 76 WHEN + - COALESCE ( 17, ( COUNT ( * ) ) ) THEN NULL ELSE NULL END AS INTEGER ), + - COUNT ( * ) * - 76 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7250
SELECT DISTINCT - CASE + 25 WHEN - CAST( 67 AS SIGNED ) / 52 + - COUNT( * ) * - COUNT( * ) THEN + + COUNT( * ) END + COALESCE ( - CAST( NULL AS SIGNED ), + 34, + + 17 + + 92 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT - CASE + 25 WHEN - CAST ( 67 AS INTEGER ) / 52 + - COUNT ( * ) * - COUNT ( * ) THEN + + COUNT ( * ) END + COALESCE ( - CAST ( NULL AS INTEGER ), + 34, + + 17 + + 92 ) AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT DISTINCT - 23 DIV - - COALESCE ( - - 79, + 16, - ( 83 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7252
SELECT DISTINCT - 23 / - - COALESCE ( - - 79, + 16, - ( 83 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7253
SELECT 86 DIV + - NULLIF ( 45, - - 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-7253
SELECT 86 / + - NULLIF ( 45, - - 64 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7254
SELECT 92 * - + COUNT( * ) * - CASE ( - SUM( DISTINCT 18 ) ) WHEN - COUNT( ALL - 59 ) THEN + 28 / - 7 - - 40 * - - 86 * - 36 ELSE NULL END * - NULLIF ( + 86, - + 34 ) * + 60 + + COUNT( * ) AS col1, - 97 - 19 + - 6 * + + 31 AS col0
----
NULL
-302

skipif mysql # not compatible
query II rowsort label-7254
SELECT 92 * - + COUNT ( * ) * - CASE ( - SUM ( DISTINCT 18 ) ) WHEN - COUNT ( ALL - 59 ) THEN + 28 / - 7 - - 40 * - - 86 * - 36 ELSE NULL END * - NULLIF ( + 86, - + 34 ) * + 60 + + COUNT ( * ) AS col1, - 97 - 19 + - 6 * + + 31 AS col0
----
NULL
-302

query I rowsort
SELECT ALL 84 * 52
----
4368

query I rowsort
SELECT ALL 42 + + 54
----
96

query I rowsort
SELECT 67 + 70 AS col2
----
137

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

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

query I rowsort
SELECT 76 + 73
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL + 52 * COUNT( * ) col0
----
52

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL + 52 * COUNT ( * ) col0
----
52

query II rowsort
SELECT 64 AS col2, - 73 AS col0
----
64
-73

query II rowsort
SELECT ALL 79 AS col2, + 4 AS col2
----
79
4

query I rowsort
SELECT DISTINCT 41 - 34 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7264
SELECT COUNT( * ) + - 25 + - 51 + - 87 + COUNT( * ) * - COUNT( * ) * 13 * + 99 * - 33 AS col1, - 92 * - CAST( NULL AS SIGNED ) / - MIN( 52 ) AS col1
----
42309
NULL

skipif mysql # not compatible
query II rowsort label-7264
SELECT COUNT ( * ) + - 25 + - 51 + - 87 + COUNT ( * ) * - COUNT ( * ) * 13 * + 99 * - 33 AS col1, - 92 * - CAST ( NULL AS INTEGER ) / - MIN ( 52 ) AS col1
----
42309
NULL

query I rowsort
SELECT 83 * 18
----
1494

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7267
SELECT ALL - CASE + + 26 WHEN ( - - 3 ) * + CAST( - 5 AS DECIMAL ) THEN + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - CASE + + 26 WHEN ( - - 3 ) * + CAST ( - 5 AS REAL ) THEN + 96 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT DISTINCT COUNT( * ) * + 27 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT COUNT ( * ) * + 27 AS col2
----
27

query II rowsort
SELECT 52 + - - 46 * - 80, - 27 + + 41 AS col2
----
-3628
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7270
SELECT + 34 DIV ( + 28 ) + + 35 + + ( - - 40 ) + - 68 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7270
SELECT + 34 / ( + 28 ) + + 35 + + ( - - 40 ) + - 68 AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7271
SELECT 45 * 56 + ( + COUNT( DISTINCT 15 ) ) DIV + 63 + + 77 col1
----
2597

skipif mysql # not compatible
query I rowsort label-7271
SELECT 45 * 56 + ( + COUNT ( DISTINCT 15 ) ) / + 63 + + 77 col1
----
2597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT ALL + CAST( + 32 AS SIGNED ) + - 72
----
-40

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL + CAST ( + 32 AS INTEGER ) + - 72
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT 32 + COUNT( * ) - 61 * + 92 + - 15
----
-5594

skipif mysql # not compatible
query I rowsort label-7273
SELECT 32 + COUNT ( * ) - 61 * + 92 + - 15
----
-5594

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

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

query I rowsort
SELECT ALL - - NULLIF ( - 75, 65 + + 46 ) AS col2
----
-75

query I rowsort
SELECT DISTINCT + 63 + + 76 col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT ALL - 99 + - 47 - + CASE WHEN + COUNT( * ) NOT BETWEEN - + MIN( DISTINCT + CASE - 78 WHEN + - 79 + 74 / 70 THEN - 42 / + - 18 + - - 73 ELSE NULL END ) * 10 AND ( COUNT( * ) + + - 30 ) THEN COUNT( * ) ELSE NULL END * + 98 * 13 + - - 35 * ( + - 46 ) AS col0
----
-3030

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - 99 + - 47 - + CASE WHEN + COUNT ( * ) NOT BETWEEN - + MIN ( DISTINCT + CASE - 78 WHEN + - 79 + 74 / 70 THEN - 42 / + - 18 + - - 73 ELSE NULL END ) * 10 AND ( COUNT ( * ) + + - 30 ) THEN COUNT ( * ) ELSE NULL END * + 98 * 13 + - - 35 * ( + - 46 ) AS col0
----
-3030

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7279
SELECT ALL CAST( NULL AS DECIMAL ) + - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL CAST ( NULL AS REAL ) + - - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT DISTINCT MAX( + - 53 ) + + 44 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT MAX ( + - 53 ) + + 44 AS col1
----
-9

query I rowsort
SELECT DISTINCT + 37 * 33
----
1221

query I rowsort
SELECT 46 * - 28 + + 12 - - - ( + - 92 ) + - + 39 AS col1
----
-1223

onlyif mysql # aggregate syntax: 
query II rowsort label-7283
SELECT + MIN( DISTINCT + - 52 ) AS col1, + 70 * + 45
----
-52
3150

skipif mysql # not compatible
query II rowsort label-7283
SELECT + MIN ( DISTINCT + - 52 ) AS col1, + 70 * + 45
----
-52
3150

query I rowsort
SELECT ALL - 19 * - 14 AS col1
----
266

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

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

query I rowsort
SELECT 47 * + 74 + + + 41
----
3519

onlyif mysql # aggregate syntax: 
query II rowsort label-7287
SELECT ALL MIN( - 98 ), SUM( + 66 ) col1
----
-98
66

skipif mysql # not compatible
query II rowsort label-7287
SELECT ALL MIN ( - 98 ), SUM ( + 66 ) col1
----
-98
66

query II rowsort
SELECT DISTINCT + 65 - + 49 col2, - 34 AS col1
----
16
-34

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7290
SELECT 82 * - + COUNT( * ), - 66 DIV - COUNT( * ) col1
----
-82
66

skipif mysql # not compatible
query II rowsort label-7290
SELECT 82 * - + COUNT ( * ), - 66 / - COUNT ( * ) col1
----
-82
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7291
SELECT 17 * - 65 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT 17 * - 65 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7292
SELECT - CAST( NULL AS SIGNED ) - - 75, + MIN( DISTINCT + 83 ) AS col2
----
NULL
83

skipif mysql # not compatible
query II rowsort label-7292
SELECT - CAST ( NULL AS INTEGER ) - - 75, + MIN ( DISTINCT + 83 ) AS col2
----
NULL
83

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

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL 48 * + COUNT ( * ) AS col1
----
48

query I rowsort
SELECT ( - ( - + 30 ) ) * - + 67 AS col2
----
-2010

query II rowsort
SELECT ALL - + 79 * 22 AS col2, + 56
----
-1738
56

query I rowsort
SELECT ALL + 35 * - 2
----
-70

query I rowsort
SELECT ALL + + 28 * - - ( - + 13 ) AS col1
----
-364

query I rowsort
SELECT DISTINCT - + 66 * + 6 + 25
----
-371

query I rowsort
SELECT ALL 93 + - + 17 + 12 + 46 * 29 * - 11 + - - 4 + 56
----
-14526

query I rowsort
SELECT 77 * 4 * + + 97 * 17
----
507892

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7301
SELECT ALL + + 78 * + 67 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL + + 78 * + 67 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ( + + 21 ) col2
----
21

query I rowsort
SELECT + + 14 * 4 + - 73 * - 66 AS col0
----
4874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7304
SELECT + + 9 + + 55 / - CAST( NULL AS SIGNED ) + + 25 + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7304
SELECT + + 9 + + 55 / - CAST ( NULL AS INTEGER ) + + 25 + 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7305
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL + 70 * CASE + 79 WHEN + - 96 THEN NULL WHEN - ( + 59 ) THEN NULL ELSE + + COUNT( * ) * + MAX( ALL 66 ) END - - 39 * + 68 + + - ( + + 41 ) AS col2
----
7231

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL + 70 * CASE + 79 WHEN + - 96 THEN NULL WHEN - ( + 59 ) THEN NULL ELSE + + COUNT ( * ) * + MAX ( ALL 66 ) END - - 39 * + 68 + + - ( + + 41 ) AS col2
----
7231

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT ALL - 79 * - + MAX( - 12 ) + ( + - COALESCE ( + - 18, - - ( - COUNT( 82 ) ) ) ) + - MAX( 35 ) AS col1
----
-965

skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL - 79 * - + MAX ( - 12 ) + ( + - COALESCE ( + - 18, - - ( - COUNT ( 82 ) ) ) ) + - MAX ( 35 ) AS col1
----
-965

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

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

query I rowsort
SELECT ALL 18 * - - 5 + ( + 58 )
----
148

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7311
SELECT ALL 43 * - 2 + - 57 - CAST( NULL AS DECIMAL ) - + + 63 AS col2, + ( 32 ) * - + NULLIF ( + 66, + + 10 ) + - - 68
----
NULL
-2044

skipif mysql # not compatible
query II rowsort label-7311
SELECT ALL 43 * - 2 + - 57 - CAST ( NULL AS REAL ) - + + 63 AS col2, + ( 32 ) * - + NULLIF ( + 66, + + 10 ) + - - 68
----
NULL
-2044

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL 73 * MIN( + 12 ) col0
----
876

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL 73 * MIN ( + 12 ) col0
----
876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7313
SELECT + MIN( - 90 ) DIV - 29 - + 4
----
-1

skipif mysql # not compatible
query I rowsort label-7313
SELECT + MIN ( - 90 ) / - 29 - + 4
----
-1

query I rowsort
SELECT + 96 * + 55 * + 96 * 32 * + NULLIF ( + 99, + + 42 )
----
1605795840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + CASE 88 WHEN - SUM( - - NULLIF ( - + 53, + + 60 * ( ( + 29 ) ) * 52 ) ) THEN - + ( + - ( + 36 ) ) ELSE NULL END - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT + CASE 88 WHEN - SUM ( - - NULLIF ( - + 53, + + 60 * ( ( + 29 ) ) * 52 ) ) THEN - + ( + - ( + 36 ) ) ELSE NULL END - 2 AS col0
----
NULL

query II rowsort
SELECT + 73 * 34 + - 33 AS col0, + ( - 75 ) AS col2
----
2449
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-7318
SELECT ALL + 78 DIV + ( - 45 ) AS col0, 18
----
-1
18

skipif mysql # not compatible
query II rowsort label-7318
SELECT ALL + 78 / + ( - 45 ) AS col0, 18
----
-1
18

onlyif mysql # DIV for integer division: 
query II rowsort label-7319
SELECT + 25 + + 56 DIV - - 33, 26
----
26
26

skipif mysql # not compatible
query II rowsort label-7319
SELECT + 25 + + 56 / - - 33, 26
----
26
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7320
SELECT DISTINCT + CASE + 61 WHEN + - CAST( + 80 AS SIGNED ) THEN - 94 * + - COALESCE ( + COUNT( * ), CAST( NULL AS SIGNED ) * + 43 ) * 84 + + 79 * 96 * MAX( ALL + - ( 84 ) ) WHEN - 84 + + 74 THEN NULL WHEN 33 DIV 50 * - 28 * - 77 + + + 74 DIV + + AVG ( - 26 ) THEN - + 8 * - + COALESCE ( - 74, NULLIF ( + 74, 97 ) DIV + 27 + 83, CASE 85 WHEN 18 * + ( COUNT( ( 36 ) ) * 26 ) THEN - 74 + - 70 DIV COUNT( * ) END + 45 ) * + 28 + + 40 ELSE COUNT( * ) END * + 85
----
85

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT + CASE + 61 WHEN + - CAST ( + 80 AS INTEGER ) THEN - 94 * + - COALESCE ( + COUNT ( * ), CAST ( NULL AS INTEGER ) * + 43 ) * 84 + + 79 * 96 * MAX ( ALL + - ( 84 ) ) WHEN - 84 + + 74 THEN NULL WHEN 33 / 50 * - 28 * - 77 + + + 74 / + + AVG ( - 26 ) THEN - + 8 * - + COALESCE ( - 74, NULLIF ( + 74, 97 ) / + 27 + 83, CASE 85 WHEN 18 * + ( COUNT ( ( 36 ) ) * 26 ) THEN - 74 + - 70 / COUNT ( * ) END + 45 ) * + 28 + + 40 ELSE COUNT ( * ) END * + 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT + NULLIF ( - - 90, + 33 ) * - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-7321
SELECT + NULLIF ( - - 90, + 33 ) * - COUNT ( * )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT ALL 7 DIV + 66 * 13 * 90
----
0

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL 7 / + 66 * 13 * 90
----
0

query I rowsort
SELECT DISTINCT 66 - - 17
----
83

query I rowsort
SELECT + 6 * + + 40 * - + 11 AS col1
----
-2640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT - ( - - CAST( NULL AS SIGNED ) ) * 35 - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7325
SELECT - ( - - CAST ( NULL AS INTEGER ) ) * 35 - 6
----
NULL

query II rowsort
SELECT - 76, 56 col1
----
-76
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT DISTINCT MIN( ALL - 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT MIN ( ALL - 94 ) AS col0
----
-94

query I rowsort
SELECT + 59 + - - 63 + + - 97 * - 92 AS col1
----
9046

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT - 65 * COUNT( * ) * 74 AS col1
----
-4810

skipif mysql # not compatible
query I rowsort label-7329
SELECT - 65 * COUNT ( * ) * 74 AS col1
----
-4810

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT - MIN( + 18 ) * - - 57
----
-1026

skipif mysql # not compatible
query I rowsort label-7330
SELECT - MIN ( + 18 ) * - - 57
----
-1026

onlyif mysql # DIV for integer division: 
query I rowsort label-7331
SELECT - + 87 + - 9 DIV - 22 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-7331
SELECT - + 87 + - 9 / - 22 AS col0
----
-87

query I rowsort
SELECT ALL + ( 83 ) * 25 * + 66
----
136950

query I rowsort
SELECT - ( + + 85 ) * 52 * - 93 AS col1
----
411060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7334
SELECT ALL - MIN( ALL - - CAST( NULL AS SIGNED ) ) + + + NULLIF ( + 64, 21 + - - 29 ) * - NULLIF ( ( - 53 ), + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) + + + NULLIF ( + 64, 21 + - - 29 ) * - NULLIF ( ( - 53 ), + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7335
SELECT ALL 82 + + CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL 82 + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
81

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

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

query II rowsort
SELECT - 65 + - 61 * + 90, + 12 AS col0
----
-5555
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7338
SELECT - - COALESCE ( + CAST( 0 AS SIGNED ), + 17 * + ( - 94 ) + - CASE - 69 WHEN - NULLIF ( - 24, + 46 * + - 93 + - 96 ) THEN ( - CAST( NULL AS SIGNED ) ) * - ( COUNT( * ) ) WHEN + - 58 THEN - + MIN( + - 10 ) END ) AS col1, 47 * 41
----
0
1927

skipif mysql # not compatible
query II rowsort label-7338
SELECT - - COALESCE ( + CAST ( 0 AS INTEGER ), + 17 * + ( - 94 ) + - CASE - 69 WHEN - NULLIF ( - 24, + 46 * + - 93 + - 96 ) THEN ( - CAST ( NULL AS INTEGER ) ) * - ( COUNT ( * ) ) WHEN + - 58 THEN - + MIN ( + - 10 ) END ) AS col1, 47 * 41
----
0
1927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7339
SELECT ALL - + 63 + - + 27 - - 62 + - 32 DIV COUNT( * ) + 89 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL - + 63 + - + 27 - - 62 + - 32 / COUNT ( * ) + 89 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT - + 18 + - - 59 - + SUM( DISTINCT + 12 )
----
29

skipif mysql # not compatible
query I rowsort label-7340
SELECT - + 18 + - - 59 - + SUM ( DISTINCT + 12 )
----
29

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

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

query I rowsort
SELECT DISTINCT + + 51 + 83 * 13
----
1130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7343
SELECT ALL - 96 DIV COUNT( * ) + 20 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL - 96 / COUNT ( * ) + 20 AS col2
----
-76

query II rowsort
SELECT + 43 col2, 28 + 35 + + + 85 AS col1
----
43
148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7345
SELECT ALL CAST( - - 88 AS SIGNED ) DIV - 54 + + 27 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL CAST ( - - 88 AS INTEGER ) / - 54 + + 27 AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7346
SELECT + + COALESCE ( + + 78, + 48 * 42 * - - 41 - 64, - 26 ) DIV - + COUNT( * ) - + + 95 AS col0
----
-173

skipif mysql # not compatible
query I rowsort label-7346
SELECT + + COALESCE ( + + 78, + 48 * 42 * - - 41 - 64, - 26 ) / - + COUNT ( * ) - + + 95 AS col0
----
-173

query I rowsort
SELECT DISTINCT + - 59 * + + 57 col2
----
-3363

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT + - COUNT( * ) + + + 74 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7349
SELECT + - COUNT ( * ) + + + 74 AS col1
----
73

query II rowsort
SELECT + - 54 AS col2, 89 * - - 96 AS col0
----
-54
8544

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7351
SELECT ALL + CAST( NULL AS DECIMAL ), NULLIF ( + - COUNT( * ), NULLIF ( 9, ( + + 46 ) ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7351
SELECT ALL + CAST ( NULL AS REAL ), NULLIF ( + - COUNT ( * ), NULLIF ( 9, ( + + 46 ) ) ) AS col1
----
NULL
-1

query II rowsort
SELECT + 84, + ( - 82 ) AS col1
----
84
-82

query I rowsort
SELECT + ( - + 39 ) + + 93 col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT - CASE + + 13 WHEN CASE 55 WHEN - AVG ( DISTINCT - 87 ) / + CAST( 54 AS SIGNED ) * + + 69 + - + 77 THEN - CAST( NULL AS SIGNED ) ELSE NULL END THEN 14 END * + 11 + 59 + + 68 / + CAST( NULL AS SIGNED ) / + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT - CASE + + 13 WHEN CASE 55 WHEN - AVG ( DISTINCT - 87 ) / + CAST ( 54 AS INTEGER ) * + + 69 + - + 77 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END THEN 14 END * + 11 + 59 + + 68 / + CAST ( NULL AS INTEGER ) / + 26 AS col0
----
NULL

query I rowsort
SELECT + ( + COALESCE ( 78, 95 ) ) AS col0
----
78

query II rowsort
SELECT ALL + 22 AS col1, 40 col1
----
22
40

query II rowsort
SELECT ALL + 38 AS col0, 30 * + 39 col2
----
38
1170

query I rowsort
SELECT ALL 19 * + 41 AS col2
----
779

query I rowsort
SELECT + 7 * - 16 + 0
----
-112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7360
SELECT ALL + NULLIF ( - 41, NULLIF ( 58, + 55 ) * CAST( NULL AS SIGNED ) )
----
-41

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL + NULLIF ( - 41, NULLIF ( 58, + 55 ) * CAST ( NULL AS INTEGER ) )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT DISTINCT + 15 col2, CASE 46 WHEN - 26 THEN 42 + COUNT( * ) * - + 12 ELSE NULL END + 18 + - 95 * + - COUNT( * ) * + ( - 15 ) / + - ( + + 6 )
----
15
NULL

skipif mysql # not compatible
query II rowsort label-7361
SELECT DISTINCT + 15 col2, CASE 46 WHEN - 26 THEN 42 + COUNT ( * ) * - + 12 ELSE NULL END + 18 + - 95 * + - COUNT ( * ) * + ( - 15 ) / + - ( + + 6 )
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT DISTINCT 66 * + MAX( - 18 ) col1
----
-1188

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT 66 * + MAX ( - 18 ) col1
----
-1188

query I rowsort
SELECT + 95 + - 22 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT CASE COUNT( * ) WHEN 24 THEN + 25 - + SUM( + 87 ) ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7364
SELECT CASE COUNT ( * ) WHEN 24 THEN + 25 - + SUM ( + 87 ) ELSE COUNT ( * ) END
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT DISTINCT ( - + 38 ) * + + 26 * - - 89 + + 20 + 25 * + COUNT( * )
----
-87887

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT ( - + 38 ) * + + 26 * - - 89 + + 20 + 25 * + COUNT ( * )
----
-87887

onlyif mysql # aggregate syntax: 
query II rowsort label-7367
SELECT ALL COUNT( * ) AS col0, SUM( - ( + - 27 ) )
----
1
27

skipif mysql # not compatible
query II rowsort label-7367
SELECT ALL COUNT ( * ) AS col0, SUM ( - ( + - 27 ) )
----
1
27

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

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT - SUM ( DISTINCT - - 65 )
----
-65

query I rowsort
SELECT DISTINCT - 44 * 89 + - ( + 77 )
----
-3993

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL + - 76 * 90 + - 80 + + COUNT( * ) + + 90 - + + 16 * - - 22
----
-7181

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL + - 76 * 90 + - 80 + + COUNT ( * ) + + 90 - + + 16 * - - 22
----
-7181

query II rowsort
SELECT - 92 AS col0, 69 + 65 + - 91 * - 59 AS col0
----
-92
5503

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL NULLIF ( + 21, COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL NULLIF ( + 21, COUNT ( * ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT DISTINCT 96 + + 84 * - COUNT( * ) col0
----
12

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT 96 + + 84 * - COUNT ( * ) col0
----
12

query I rowsort
SELECT + 66 + + 99 col0
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7375
SELECT CAST( - CASE - 60 WHEN - + 95 * - ( - NULLIF ( COUNT( * ), + 63 + COUNT( * ) + - ( - 9 ) * - 41 + + - ( 80 ) ) ) + - NULLIF ( ( 51 ), - + COUNT( * ) ) THEN NULL WHEN + + 59 * + - 10 THEN + 40 / 41 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT CAST ( - CASE - 60 WHEN - + 95 * - ( - NULLIF ( COUNT ( * ), + 63 + COUNT ( * ) + - ( - 9 ) * - 41 + + - ( 80 ) ) ) + - NULLIF ( ( 51 ), - + COUNT ( * ) ) THEN NULL WHEN + + 59 * + - 10 THEN + 40 / 41 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT - + 33 + + 24
----
-9

query I rowsort
SELECT DISTINCT 14 + + 24 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL - + SUM( DISTINCT - 81 ) + + - 75
----
6

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL - + SUM ( DISTINCT - 81 ) + + - 75
----
6

query I rowsort
SELECT + 2 - 80 * + + 7
----
-558

query II rowsort
SELECT - - 50 AS col1, + 65 + - + 9 AS col1
----
50
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT DISTINCT 81 + - + 27 - MIN( DISTINCT + 76 ) + SUM( + 44 )
----
22

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT 81 + - + 27 - MIN ( DISTINCT + 76 ) + SUM ( + 44 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL MAX( ALL + NULLIF ( - ( - 9 ), - 2 ) ) + - NULLIF ( + 39, + - COUNT( * ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL MAX ( ALL + NULLIF ( - ( - 9 ), - 2 ) ) + - NULLIF ( + 39, + - COUNT ( * ) ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT DISTINCT + 76 * - 85 * - 88 * + COUNT( * )
----
568480

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT + 76 * - 85 * - 88 * + COUNT ( * )
----
568480

query I rowsort
SELECT ALL + 53 - - - 71 + - 53 * + 66
----
-3516

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT - MIN( ALL - 99 ) * + ( - 22 )
----
-2178

skipif mysql # not compatible
query I rowsort label-7385
SELECT - MIN ( ALL - 99 ) * + ( - 22 )
----
-2178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7386
SELECT DISTINCT + 35, - COUNT( * ) * CAST( + COALESCE ( + + ( 41 ), - 69 ) AS SIGNED ) col2
----
35
-41

skipif mysql # not compatible
query II rowsort label-7386
SELECT DISTINCT + 35, - COUNT ( * ) * CAST ( + COALESCE ( + + ( 41 ), - 69 ) AS INTEGER ) col2
----
35
-41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7388
SELECT ALL - - COALESCE ( - CASE + + 10 WHEN CAST( NULL AS SIGNED ) * 26 * - ( + + 0 ) + + + 33 / + CASE + 83 WHEN + ( + NULLIF ( + 34, + 52 ) ) THEN 62 / - ( + - 70 ) ELSE - + 9 END * + - 69 + 57 THEN - 83 + - 43 * - COALESCE ( 54, + 92 * - - 73 * - - COALESCE ( - 42, - COUNT( * ) + + - CAST( + + CAST( 95 AS SIGNED ) AS SIGNED ) ), 39 ) WHEN - NULLIF ( 26, 87 ) THEN NULL WHEN 88 * - 57 THEN NULL END, - 78 - 37, + COUNT( * ) * 57 + + 64 )
----
-115

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - - COALESCE ( - CASE + + 10 WHEN CAST ( NULL AS INTEGER ) * 26 * - ( + + 0 ) + + + 33 / + CASE + 83 WHEN + ( + NULLIF ( + 34, + 52 ) ) THEN 62 / - ( + - 70 ) ELSE - + 9 END * + - 69 + 57 THEN - 83 + - 43 * - COALESCE ( 54, + 92 * - - 73 * - - COALESCE ( - 42, - COUNT ( * ) + + - CAST ( + + CAST ( 95 AS INTEGER ) AS INTEGER ) ), 39 ) WHEN - NULLIF ( 26, 87 ) THEN NULL WHEN 88 * - 57 THEN NULL END, - 78 - 37, + COUNT ( * ) * 57 + + 64 )
----
-115

query I rowsort
SELECT ALL + 60 * + 70
----
4200

onlyif mysql # aggregate syntax: 
query II rowsort label-7390
SELECT 76 * - 67 AS col0, + COUNT( * ) + - 21 - - + 82 * + 29 AS col0
----
-5092
2358

skipif mysql # not compatible
query II rowsort label-7390
SELECT 76 * - 67 AS col0, + COUNT ( * ) + - 21 - - + 82 * + 29 AS col0
----
-5092
2358

onlyif mysql # aggregate syntax: 
query II rowsort label-7391
SELECT ALL + 88 * - COUNT( * ), - 71 AS col1
----
-88
-71

skipif mysql # not compatible
query II rowsort label-7391
SELECT ALL + 88 * - COUNT ( * ), - 71 AS col1
----
-88
-71

query I rowsort
SELECT DISTINCT + 79 * + - 69 * 53 AS col1
----
-288903

query I rowsort
SELECT ALL + 15 * - - 73
----
1095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7394
SELECT ( + MIN( - 11 ) ) DIV + 80 + 34 * - MAX( - 35 ) + + + 57 + - - 41 - + 70 + - 63 DIV - + 92 * - - SUM( ALL 45 ) * - 94 + + 64 AS col1
----
1282

skipif mysql # not compatible
query I rowsort label-7394
SELECT ( + MIN ( - 11 ) ) / + 80 + 34 * - MAX ( - 35 ) + + + 57 + - - 41 - + 70 + - 63 / - + 92 * - - SUM ( ALL 45 ) * - 94 + + 64 AS col1
----
1282

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

query I rowsort
SELECT 82 - 79 * + ( + 55 ) * + 63 - + 84 col2
----
-273737

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT 92 - + 75 - - + 97 + - + 55 * + ( + MIN( + 25 ) ) * 60 col0
----
-82386

skipif mysql # not compatible
query I rowsort label-7398
SELECT 92 - + 75 - - + 97 + - + 55 * + ( + MIN ( + 25 ) ) * 60 col0
----
-82386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7399
SELECT NULLIF ( ( - CASE WHEN NOT + COUNT( * ) >= - 63 * - COUNT( * ) THEN ( + - 43 ) ELSE NULL END ), 64 * - COUNT( * ) + - 92 ) * 90 + - NULLIF ( + COUNT( * ), 75 ) * - 90 DIV - + 90 AS col0
----
3869

skipif mysql # not compatible
query I rowsort label-7399
SELECT NULLIF ( ( - CASE WHEN NOT + COUNT ( * ) >= - 63 * - COUNT ( * ) THEN ( + - 43 ) ELSE NULL END ), 64 * - COUNT ( * ) + - 92 ) * 90 + - NULLIF ( + COUNT ( * ), 75 ) * - 90 / - + 90 AS col0
----
3869

query I rowsort
SELECT DISTINCT - 43 + - 49 + - 85 AS col2
----
-177

query I rowsort
SELECT ALL 6 + - 36
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT 11 + COUNT( * ) + - 61 * + + COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7402
SELECT 11 + COUNT ( * ) + - 61 * + + COUNT ( * ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-7403
SELECT DISTINCT - ( 88 ), - 61 - COALESCE ( + 31, CASE - 46 WHEN - + 86 THEN 81 ELSE - + COUNT( * ) END, + 8 * + + 36 ) AS col2
----
-88
-92

skipif mysql # not compatible
query II rowsort label-7403
SELECT DISTINCT - ( 88 ), - 61 - COALESCE ( + 31, CASE - 46 WHEN - + 86 THEN 81 ELSE - + COUNT ( * ) END, + 8 * + + 36 ) AS col2
----
-88
-92

query I rowsort
SELECT ALL - 59 + + + 31
----
-28

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7406
SELECT ALL + CAST( NULL AS SIGNED ) * - 7 * + 98 + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL + CAST ( NULL AS INTEGER ) * - 7 * + 98 + 49 AS col2
----
NULL

query I rowsort
SELECT ALL + 90 + - 73
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7408
SELECT ( + COALESCE ( - + 27, - - 82 DIV 12 ) ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7408
SELECT ( + COALESCE ( - + 27, - - 82 / 12 ) ) AS col2
----
-27

query I rowsort
SELECT 76 + 54 + - 76
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT DISTINCT + COUNT( + 90 ) + + - 62
----
-61

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT + COUNT ( + 90 ) + + - 62
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL CASE - 77 WHEN + COUNT( * ) THEN 82 WHEN + 72 / + 43 THEN - 16 END + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL CASE - 77 WHEN + COUNT ( * ) THEN 82 WHEN + 72 / + 43 THEN - 16 END + 79 AS col0
----
NULL

query II rowsort
SELECT 68 + - 88, 50 * 91 AS col2
----
-20
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT ALL 83 - + 99 + + - MIN( DISTINCT - - 93 ) AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL 83 - + 99 + + - MIN ( DISTINCT - - 93 ) AS col0
----
-109

query I rowsort
SELECT - ( - ( 57 ) )
----
57

query I rowsort
SELECT 45 * 74 AS col1
----
3330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7416
SELECT ALL - 72 DIV COUNT( - - 3 )
----
-72

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL - 72 / COUNT ( - - 3 )
----
-72

query I rowsort
SELECT - 75 + - 27
----
-102

query I rowsort
SELECT DISTINCT 15 - - + 30 * - 31 col1
----
-915

query I rowsort
SELECT ALL - 22 - 85 * + - 48 AS col2
----
4058

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT - NULLIF ( - COUNT( ALL + COALESCE ( 39, - NULLIF ( - 51, - ( 3 ) ) * + + 97, + NULLIF ( - - 21, + + 24 + + 77 - - 52 / + 28 ) ) ), 84 ) * - 72 * - 70 * - ( 68 ) AS col2
----
-342720

skipif mysql # not compatible
query I rowsort label-7420
SELECT - NULLIF ( - COUNT ( ALL + COALESCE ( 39, - NULLIF ( - 51, - ( 3 ) ) * + + 97, + NULLIF ( - - 21, + + 24 + + 77 - - 52 / + 28 ) ) ), 84 ) * - 72 * - 70 * - ( 68 ) AS col2
----
-342720

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT 14 * - COALESCE ( + 16, + + 36, NULLIF ( - 36, COUNT( * ) + 39 ) ) col2
----
-224

skipif mysql # not compatible
query I rowsort label-7421
SELECT 14 * - COALESCE ( + 16, + + 36, NULLIF ( - 36, COUNT ( * ) + 39 ) ) col2
----
-224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7422
SELECT CAST( - 69 AS SIGNED ) + 77 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7422
SELECT CAST ( - 69 AS INTEGER ) + 77 AS col0
----
8

query II rowsort
SELECT ALL 55 * 36 * + - 24 AS col1, 26
----
-47520
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT 92 * + + ( CASE + 83 WHEN 58 THEN + + 19 ELSE NULL END ) + + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT 92 * + + ( CASE + 83 WHEN 58 THEN + + 19 ELSE NULL END ) + + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 90 * + 35
----
3150

query I rowsort
SELECT 86 * + 91 col1
----
7826

query II rowsort
SELECT ALL 8 * + ( - 63 ) col1, ( - 70 ) AS col0
----
-504
-70

query I rowsort
SELECT 76 * - 72
----
-5472

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT ( - - 10 ) * - 25 * COUNT( * ) + - 11 - - 99 * + + 62
----
5877

skipif mysql # not compatible
query I rowsort label-7429
SELECT ( - - 10 ) * - 25 * COUNT ( * ) + - 11 - - 99 * + + 62
----
5877

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT DISTINCT - COALESCE ( CASE + + MIN( DISTINCT + 11 ) WHEN + COUNT( * ) * + + 90 + - + COUNT( DISTINCT + 16 ) + + - 92 - + ( - - 97 ) * + - 4 * - - 72 * - 59 / - 95 THEN NULL WHEN - CASE + 54 WHEN - 1 + + 73 THEN - ( + + 10 ) + + 54 * - - MIN( ALL - - 77 ) END THEN + AVG ( - 30 ) END, - - CAST( NULL AS SIGNED ) * + 51 ) / - 63 * + + CAST( NULL AS SIGNED ) / - 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT - COALESCE ( CASE + + MIN ( DISTINCT + 11 ) WHEN + COUNT ( * ) * + + 90 + - + COUNT ( DISTINCT + 16 ) + + - 92 - + ( - - 97 ) * + - 4 * - - 72 * - 59 / - 95 THEN NULL WHEN - CASE + 54 WHEN - 1 + + 73 THEN - ( + + 10 ) + + 54 * - - MIN ( ALL - - 77 ) END THEN + AVG ( - 30 ) END, - - CAST ( NULL AS INTEGER ) * + 51 ) / - 63 * + + CAST ( NULL AS INTEGER ) / - 22 col0
----
NULL

query I rowsort
SELECT ALL - 30 + + + 42 + - - 69 * 12
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL + 57 + - COUNT( * ) * + 26
----
31

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL + 57 + - COUNT ( * ) * + 26
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7433
SELECT 58 * 93 DIV - + 86 + - 36 * + 81
----
-2978

skipif mysql # not compatible
query I rowsort label-7433
SELECT 58 * 93 / - + 86 + - 36 * + 81
----
-2978

query II rowsort
SELECT 1 * - ( + 84 ), 18 col1
----
-84
18

query I rowsort
SELECT ALL + - 57 + 79 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7436
SELECT 11 + - CASE + COUNT( * ) WHEN - CAST( + ( - + ( - 26 ) ) AS SIGNED ) THEN - 0 / - 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT 11 + - CASE + COUNT ( * ) WHEN - CAST ( + ( - + ( - 26 ) ) AS INTEGER ) THEN - 0 / - 85 END
----
NULL

query II rowsort
SELECT + + 98 AS col0, 68 AS col1
----
98
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT - MIN( ALL + 20 ) * - 28 * + 89 AS col1
----
49840

skipif mysql # not compatible
query I rowsort label-7438
SELECT - MIN ( ALL + 20 ) * - 28 * + 89 AS col1
----
49840

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT - + CASE + 48 WHEN - ( - 13 ) THEN NULL ELSE - - 92 + 10 DIV - + 95 END AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-7439
SELECT - + CASE + 48 WHEN - ( - 13 ) THEN NULL ELSE - - 92 + 10 / - + 95 END AS col1
----
-92

query I rowsort
SELECT ALL - 67 - - - 39 AS col2
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7441
SELECT - + COALESCE ( + 59, + 16 * + ( - 94 ) * 97 DIV - - AVG ( + - 80 ) + + COUNT( * ) + + + 18 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-7441
SELECT - + COALESCE ( + 59, + 16 * + ( - 94 ) * 97 / - - AVG ( + - 80 ) + + COUNT ( * ) + + + 18 ) AS col2
----
-59

query I rowsort
SELECT ALL - 87 - + 43 * - 71 AS col1
----
2966

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT + - 81 * - 35 * - 74 + 58 + + + 79 DIV COALESCE ( + 83, - 34 * + - 36 * - + 35, + - 99, + 46 )
----
-209732

skipif mysql # not compatible
query I rowsort label-7443
SELECT + - 81 * - 35 * - 74 + 58 + + + 79 / COALESCE ( + 83, - 34 * + - 36 * - + 35, + - 99, + 46 )
----
-209732

query II rowsort
SELECT ALL 22, 96 AS col0
----
22
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7445
SELECT ALL + COUNT( * ) AS col0, 19 * - 59
----
1
-1121

skipif mysql # not compatible
query II rowsort label-7445
SELECT ALL + COUNT ( * ) AS col0, 19 * - 59
----
1
-1121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7446
SELECT DISTINCT + CASE - - 27 WHEN + 27 / COUNT( * ) * - 1 THEN 43 + - + COUNT( * ) - 66 * 41 WHEN + 71 * + + 14 / - - CAST( NULL AS SIGNED ) * ( - 52 ) * 1 - + 33 * - NULLIF ( CAST( NULL AS SIGNED ), - CASE 0 WHEN - 73 * - 76 - + COUNT( * ) + - MIN( 97 ) + + 43 THEN + 54 END * - 52 * - 79 / 19 ) * ( - 8 ) + + 33 - 97 * - 99 THEN NULL ELSE NULL END * - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT + CASE - - 27 WHEN + 27 / COUNT ( * ) * - 1 THEN 43 + - + COUNT ( * ) - 66 * 41 WHEN + 71 * + + 14 / - - CAST ( NULL AS INTEGER ) * ( - 52 ) * 1 - + 33 * - NULLIF ( CAST ( NULL AS INTEGER ), - CASE 0 WHEN - 73 * - 76 - + COUNT ( * ) + - MIN ( 97 ) + + 43 THEN + 54 END * - 52 * - 79 / 19 ) * ( - 8 ) + + 33 - 97 * - 99 THEN NULL ELSE NULL END * - 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7447
SELECT + 34 DIV ( + ( + MAX( ALL + 40 ) ) ) * ( 21 ) DIV - COUNT( * ), + 28 * 28 AS col0
----
0
784

skipif mysql # not compatible
query II rowsort label-7447
SELECT + 34 / ( + ( + MAX ( ALL + 40 ) ) ) * ( 21 ) / - COUNT ( * ), + 28 * 28 AS col0
----
0
784

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT ALL 4 * - CASE ( + + 13 ) WHEN + + 46 - + 35 * - 71 THEN NULL WHEN 7 THEN - COUNT( * ) END + + - 25 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL 4 * - CASE ( + + 13 ) WHEN + + 46 - + 35 * - 71 THEN NULL WHEN 7 THEN - COUNT ( * ) END + + - 25 - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT - 73 * 86 - - COUNT( * ) AS col1
----
-6277

skipif mysql # not compatible
query I rowsort label-7449
SELECT - 73 * 86 - - COUNT ( * ) AS col1
----
-6277

query I rowsort
SELECT + 0 - - + 72
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT + - ( + 65 ) DIV 41
----
-1

skipif mysql # not compatible
query I rowsort label-7451
SELECT + - ( + 65 ) / 41
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL - - MIN( + - 37 ) * + 43 * COUNT( DISTINCT 21 )
----
-1591

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - - MIN ( + - 37 ) * + 43 * COUNT ( DISTINCT 21 )
----
-1591

onlyif mysql # DIV for integer division: 
query I rowsort label-7454
SELECT ALL 97 DIV 25 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL 97 / 25 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7455
SELECT + COUNT( * ) DIV + 48 AS col1, + 6 DIV + + 33 * + COUNT( * )
----
0
0

skipif mysql # not compatible
query II rowsort label-7455
SELECT + COUNT ( * ) / + 48 AS col1, + 6 / + + 33 * + COUNT ( * )
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7456
SELECT + 55 - + CASE 90 WHEN + 0 THEN + 57 END + + COUNT( * ) * 7 * COALESCE ( COUNT( * ), COUNT( * ), 58 ) * - 91 AS col1, - 22
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-7456
SELECT + 55 - + CASE 90 WHEN + 0 THEN + 57 END + + COUNT ( * ) * 7 * COALESCE ( COUNT ( * ), COUNT ( * ), 58 ) * - 91 AS col1, - 22
----
NULL
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7457
SELECT ALL 61 DIV - 23 AS col2, 0 - 26 * - + COUNT( * ) + - 88 AS col2
----
-2
-62

skipif mysql # not compatible
query II rowsort label-7457
SELECT ALL 61 / - 23 AS col2, 0 - 26 * - + COUNT ( * ) + - 88 AS col2
----
-2
-62

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

skipif mysql # not compatible
query I rowsort label-7458
SELECT + COUNT ( + 66 ) / + COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7459
SELECT + 72 DIV - 58, - CAST( + - COALESCE ( - 34, + - 74, - 22 + + 45 + - 56 * 95 + - 19 ) AS SIGNED ) AS col1
----
-1
-34

skipif mysql # not compatible
query II rowsort label-7459
SELECT + 72 / - 58, - CAST ( + - COALESCE ( - 34, + - 74, - 22 + + 45 + - 56 * 95 + - 19 ) AS INTEGER ) AS col1
----
-1
-34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7461
SELECT + COALESCE ( + 75, - 35 * + - CAST( + COUNT( * ) AS SIGNED ) * 82 + + + 58 - - + 36 - - ( 58 ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7461
SELECT + COALESCE ( + 75, - 35 * + - CAST ( + COUNT ( * ) AS INTEGER ) * 82 + + + 58 - - + 36 - - ( 58 ) ) AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7462
SELECT - 48 * + + 22 * - ( - - COUNT( * ) ), 86 DIV - 52 AS col1
----
1056
-1

skipif mysql # not compatible
query II rowsort label-7462
SELECT - 48 * + + 22 * - ( - - COUNT ( * ) ), 86 / - 52 AS col1
----
1056
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT ALL + SUM( DISTINCT 34 ) * + 64 + - - 11 * - 15 + - ( + + ( + - 89 ) ) + - 31 * + 40 * - 27
----
35580

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL + SUM ( DISTINCT 34 ) * + 64 + - - 11 * - 15 + - ( + + ( + - 89 ) ) + - 31 * + 40 * - 27
----
35580

query I rowsort
SELECT + COALESCE ( + 48, - 96 )
----
48

query I rowsort
SELECT ALL - ( + 1 ) * - 36 - + 62 + 73 * + + 49 col0
----
3551

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT ALL 94 * COUNT( ALL + ( 9 ) ) + - 9 * + 97
----
-779

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL 94 * COUNT ( ALL + ( 9 ) ) + - 9 * + 97
----
-779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT ALL 1 * + CAST( + 67 AS SIGNED ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL 1 * + CAST ( + 67 AS INTEGER ) AS col0
----
67

query I rowsort
SELECT + 13 * + NULLIF ( + 93, - - 85 * - 1 )
----
1209

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

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

query I rowsort
SELECT DISTINCT 36 * - - 63
----
2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7471
SELECT ALL + 37 * + COALESCE ( COUNT( * ), - + CASE CAST( NULL AS SIGNED ) WHEN + 18 THEN 68 * COUNT( * ) * + + 52 * - 75 + + + 53 WHEN COALESCE ( + 6, + 9 ) THEN - - 55 WHEN - AVG ( ALL - ( - - 78 ) ) + 80 + - 92 THEN NULL ELSE + + 33 END, COUNT( * ) + 17 ) + 64 + + 20 + + - 85 * + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + 37 * + COALESCE ( COUNT ( * ), - + CASE CAST ( NULL AS INTEGER ) WHEN + 18 THEN 68 * COUNT ( * ) * + + 52 * - 75 + + + 53 WHEN COALESCE ( + 6, + 9 ) THEN - - 55 WHEN - AVG ( ALL - ( - - 78 ) ) + 80 + - 92 THEN NULL ELSE + + 33 END, COUNT ( * ) + 17 ) + 64 + + 20 + + - 85 * + + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT + 77 + + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7472
SELECT + 77 + + COUNT ( * ) AS col1
----
78

query I rowsort
SELECT - 82 * - 14
----
1148

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL + 21 * + - MIN( + 90 ) + + - 68 * + - ( + - 34 )
----
-4202

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + 21 * + - MIN ( + 90 ) + + - 68 * + - ( + - 34 )
----
-4202

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7476
SELECT + 53 + 59, SUM( ALL - 7 ) AS col2
----
112
-7

skipif mysql # not compatible
query II rowsort label-7476
SELECT + 53 + 59, SUM ( ALL - 7 ) AS col2
----
112
-7

query I rowsort
SELECT + + 51 - - 76 AS col0
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT ALL - ( - 76 ) DIV + 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL - ( - 76 ) / + 55 AS col0
----
1

query I rowsort
SELECT - - 71 * + 39
----
2769

query I rowsort
SELECT ALL + COALESCE ( - 39, - 56 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT - + 45 * - 89 + + 91 + - SUM( DISTINCT - 14 ) AS col2
----
4110

skipif mysql # not compatible
query I rowsort label-7481
SELECT - + 45 * - 89 + + 91 + - SUM ( DISTINCT - 14 ) AS col2
----
4110

onlyif mysql # DIV for integer division: 
query I rowsort label-7482
SELECT DISTINCT - 38 DIV + 13
----
-2

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT - 38 / + 13
----
-2

query I rowsort
SELECT - - 27 + + ( + 48 ) AS col2
----
75

query I rowsort
SELECT - 91 * 58 * + 88 * + - 26
----
12076064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7485
SELECT ALL - + 25 * - NULLIF ( 77, - 34 + - 97 + - + 52 * - 76 * CAST( NULL AS SIGNED ) - + - ( ( + 75 ) ) ) AS col1
----
1925

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL - + 25 * - NULLIF ( 77, - 34 + - 97 + - + 52 * - 76 * CAST ( NULL AS INTEGER ) - + - ( ( + 75 ) ) ) AS col1
----
1925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7486
SELECT DISTINCT - + 41 * ( + 48 ) - - ( + + COALESCE ( + ( 87 ), SUM( 80 ) + + NULLIF ( + + ( + NULLIF ( + 77, - 43 * + CAST( NULL AS SIGNED ) + + 62 + + - COUNT( * ) ) ), + 24 ) ) ) * - 92
----
-9972

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT - + 41 * ( + 48 ) - - ( + + COALESCE ( + ( 87 ), SUM ( 80 ) + + NULLIF ( + + ( + NULLIF ( + 77, - 43 * + CAST ( NULL AS INTEGER ) + + 62 + + - COUNT ( * ) ) ), + 24 ) ) ) * - 92
----
-9972

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT - - 44 * SUM( CASE 40 WHEN COALESCE ( 56, 18 ) + 21 THEN - 4 - - - 88 - - - 4 ELSE NULL END ) * 98 + - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT - - 44 * SUM ( CASE 40 WHEN COALESCE ( 56, 18 ) + 21 THEN - 4 - - - 88 - - - 4 ELSE NULL END ) * 98 + - + 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT 86 * - - CAST( NULL AS SIGNED ) - 91 + - - 63 * - - 30 * 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT 86 * - - CAST ( NULL AS INTEGER ) - 91 + - - 63 * - - 30 * 18 AS col2
----
NULL

query II rowsort
SELECT - - COALESCE ( 79, + ( - - 73 ) * + 27 * + - 73 ) + - 23 AS col0, 29 col0
----
56
29

query I rowsort
SELECT DISTINCT - 81 * - 68 + - 34 AS col2
----
5474

query I rowsort
SELECT DISTINCT - 74 + + 75 - - - COALESCE ( - COALESCE ( 75, + + 39, - + 38 ), 0, + - 95 + 27 + - 11 )
----
76

query I rowsort
SELECT - 91 + + 13 + ( + 4 ) AS col0
----
-74

query I rowsort
SELECT + 96 * + + 32
----
3072

query I rowsort
SELECT DISTINCT - 56 + - 97 col2
----
-153

query I rowsort
SELECT DISTINCT - 47 + - 80
----
-127

query I rowsort
SELECT ALL 55 + + 39
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7497
SELECT - CASE 73 WHEN CAST( NULL AS SIGNED ) THEN - - 35 + + 0 - - 76 * 29 / - 10 * - 93 ELSE - - SUM( - 98 ) * COUNT( * ) / - 52 * - 57 / - 43 + + 72 + MAX( + ( - 49 ) ) + - + 10 * - CASE COUNT( * ) WHEN 69 * 57 * - 98 THEN - 51 + - + 20 * + + 48 - - COUNT( * ) WHEN + COUNT( * ) + + CAST( NULL AS SIGNED ) * + - COUNT( * ) THEN NULL ELSE NULL END * - COUNT( * ) * - + COUNT( * ) END + - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT - CASE 73 WHEN CAST ( NULL AS INTEGER ) THEN - - 35 + + 0 - - 76 * 29 / - 10 * - 93 ELSE - - SUM ( - 98 ) * COUNT ( * ) / - 52 * - 57 / - 43 + + 72 + MAX ( + ( - 49 ) ) + - + 10 * - CASE COUNT ( * ) WHEN 69 * 57 * - 98 THEN - 51 + - + 20 * + + 48 - - COUNT ( * ) WHEN + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) THEN NULL ELSE NULL END * - COUNT ( * ) * - + COUNT ( * ) END + - 11 AS col0
----
NULL

query I rowsort
SELECT + 37 + - + CASE + + 66 WHEN + - 25 + 35 THEN + 26 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 48 + 8 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7500
SELECT - 52 * - + 39 + - - COUNT( * ) + + ( 69 ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT - 52 * - + 39 + - - COUNT ( * ) + + ( 69 ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7501
SELECT DISTINCT COALESCE ( COUNT( * ), + 92 DIV + 58 ) DIV + 99 + - 52
----
-52

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT COALESCE ( COUNT ( * ), + 92 / + 58 ) / + 99 + - 52
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7502
SELECT DISTINCT + 10 DIV - - SUM( + 72 ) + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT + 10 / - - SUM ( + 72 ) + - 19
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT + 65 * + 50 * 11 DIV - 2
----
-17875

skipif mysql # not compatible
query I rowsort label-7503
SELECT + 65 * + 50 * 11 / - 2
----
-17875

query I rowsort
SELECT + 94 * + - 54 AS col2
----
-5076

query I rowsort
SELECT + NULLIF ( 2, + 86 )
----
2

query I rowsort
SELECT 17 * + + 31
----
527

query II rowsort
SELECT ALL - 91, ( + - 59 ) col1
----
-91
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL 92 * + COUNT( * ) - + 31
----
61

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL 92 * + COUNT ( * ) - + 31
----
61

query I rowsort
SELECT DISTINCT + 9 * + - 83 AS col0
----
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT + NULLIF ( - 95, 10 + CASE COUNT( * ) WHEN + ( - 83 ) + COUNT( * ) THEN NULL WHEN - 36 THEN NULL ELSE - + 64 END ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7510
SELECT + NULLIF ( - 95, 10 + CASE COUNT ( * ) WHEN + ( - 83 ) + COUNT ( * ) THEN NULL WHEN - 36 THEN NULL ELSE - + 64 END ) AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7511
SELECT ALL SUM( + CAST( NULL AS SIGNED ) ) * - + 81 * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL SUM ( + CAST ( NULL AS INTEGER ) ) * - + 81 * 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT + COUNT( * ) * + + COUNT( * ) - - ( + COUNT( * ) ) * 73 * COUNT( * ) + 63 col1
----
137

skipif mysql # not compatible
query I rowsort label-7512
SELECT + COUNT ( * ) * + + COUNT ( * ) - - ( + COUNT ( * ) ) * 73 * COUNT ( * ) + 63 col1
----
137

query I rowsort
SELECT + 2 + - 45
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7514
SELECT CAST( + NULLIF ( - MIN( 7 ), - 96 ) AS SIGNED ) AS col2, + 15 * 8 AS col0
----
-7
120

skipif mysql # not compatible
query II rowsort label-7514
SELECT CAST ( + NULLIF ( - MIN ( 7 ), - 96 ) AS INTEGER ) AS col2, + 15 * 8 AS col0
----
-7
120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7515
SELECT NULLIF ( - 98, + + CAST( ( + - COUNT( * ) ) AS DECIMAL ) ) + COUNT( * ) DIV - COUNT( * ) + 95
----
-4

skipif mysql # not compatible
query I rowsort label-7515
SELECT NULLIF ( - 98, + + CAST ( ( + - COUNT ( * ) ) AS REAL ) ) + COUNT ( * ) / - COUNT ( * ) + 95
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7516
SELECT - 46 AS col0, MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-7516
SELECT - 46 AS col0, MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
-46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT DISTINCT + ( + NULLIF ( - - 71, 82 * + 97 + - 72 / - COUNT( 78 ) ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT + ( + NULLIF ( - - 71, 82 * + 97 + - 72 / - COUNT ( 78 ) ) ) AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT 22 * + - 63 DIV 9 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-7518
SELECT 22 * + - 63 / 9 AS col0
----
-154

query I rowsort
SELECT ALL + 43 * 59 AS col1
----
2537

onlyif mysql # DIV for integer division: 
query I rowsort label-7520
SELECT - 91 DIV - 78 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7520
SELECT - 91 / - 78 AS col2
----
1

query II rowsort
SELECT ALL 66 + + 41 + + 9, 88 AS col1
----
116
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT 2 + - 0 * + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7523
SELECT 2 + - 0 * + + COUNT ( * )
----
2

query II rowsort
SELECT 99, 48 AS col0
----
99
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7525
SELECT 11 + ( + - 25 ) + NULLIF ( MIN( DISTINCT + 8 ), - 79 ) DIV 45 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7525
SELECT 11 + ( + - 25 ) + NULLIF ( MIN ( DISTINCT + 8 ), - 79 ) / 45 AS col0
----
-14

query I rowsort
SELECT 85 * - 41 AS col2
----
-3485

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT 95 - - - ( 89 ) - - COUNT( * ) + - 43
----
-36

skipif mysql # not compatible
query I rowsort label-7527
SELECT 95 - - - ( 89 ) - - COUNT ( * ) + - 43
----
-36

query II rowsort
SELECT ALL - 70 * + 78 AS col1, - 94 AS col1
----
-5460
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-7529
SELECT DISTINCT - COUNT( * ) + + NULLIF ( - - ( - - 72 ), + - 54 ) * 2 AS col0, - COUNT( * ) AS col2
----
143
-1

skipif mysql # not compatible
query II rowsort label-7529
SELECT DISTINCT - COUNT ( * ) + + NULLIF ( - - ( - - 72 ), + - 54 ) * 2 AS col0, - COUNT ( * ) AS col2
----
143
-1

query II rowsort
SELECT DISTINCT 50, ( + 22 ) + - - 43 AS col0
----
50
65

query II rowsort
SELECT - 55, - 44 * + 91 AS col0
----
-55
-4004

query I rowsort
SELECT 27 * 80 col0
----
2160

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT DISTINCT + 26 - - 19 DIV 5 + - 8
----
21

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT + 26 - - 19 / 5 + - 8
----
21

query II rowsort
SELECT ALL 10 col2, 15 + + 47 AS col2
----
10
62

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

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

query II rowsort
SELECT 23 AS col2, 65
----
23
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7537
SELECT 59 AS col1, 66 * - COUNT( * )
----
59
-66

skipif mysql # not compatible
query II rowsort label-7537
SELECT 59 AS col1, 66 * - COUNT ( * )
----
59
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT ALL + CASE - + 27 WHEN - 3 THEN + 85 * + 99 - 26 * - COALESCE ( COUNT( * ), + 4 / - - 65 * + - 82 ) + - COUNT( * ) * - + 3 + 54 ELSE NULL END * + 27 / - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL + CASE - + 27 WHEN - 3 THEN + 85 * + 99 - 26 * - COALESCE ( COUNT ( * ), + 4 / - - 65 * + - 82 ) + - COUNT ( * ) * - + 3 + 54 ELSE NULL END * + 27 / - 81 AS col0
----
NULL

query I rowsort
SELECT 17 - - 48 * - - 62
----
2993

query I rowsort
SELECT ALL - ( - 87 ) - + 85 + 47 + 55 AS col1
----
104

query II rowsort
SELECT ALL - 99 col2, - ( + 8 ) AS col0
----
-99
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT - CASE + 43 WHEN 22 * + 57 * ( + 40 ) / + MAX( + 23 ) * - - 29 * + 77 THEN + + 62 * - 96 + 47 + 11 + + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7542
SELECT - CASE + 43 WHEN 22 * + 57 * ( + 40 ) / + MAX ( + 23 ) * - - 29 * + 77 THEN + + 62 * - 96 + 47 + 11 + + 21 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL - 99 / - + ( + COUNT ( * ) )
----
99

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

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

query I rowsort
SELECT + 17 + 73 col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT + - CAST( - SUM( ALL 19 ) AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-7546
SELECT + - CAST ( - SUM ( ALL 19 ) AS INTEGER ) AS col0
----
19

query I rowsort
SELECT - 26 * 7
----
-182

query I rowsort
SELECT + 0 * 18 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL 70 * COUNT( * ) + - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL 70 * COUNT ( * ) + - - COUNT ( * )
----
71

query I rowsort
SELECT 98 + - ( 16 )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7551
SELECT - 9 DIV + 18 + 0
----
0

skipif mysql # not compatible
query I rowsort label-7551
SELECT - 9 / + 18 + 0
----
0

query I rowsort
SELECT 57 * 53 AS col1
----
3021

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT ALL 83 + 89 + - 60 * ( + 20 ) * - - COUNT( * )
----
-1028

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL 83 + 89 + - 60 * ( + 20 ) * - - COUNT ( * )
----
-1028

query II rowsort
SELECT ALL - 88, + 32 AS col1
----
-88
32

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

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - COUNT ( * ) * + + 86 AS col0
----
-86

query I rowsort
SELECT DISTINCT - 56 + - 66
----
-122

query I rowsort
SELECT ALL + + 70 + 68 - 70 AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7558
SELECT ALL - + 7 + 56 DIV - - 97 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL - + 7 + 56 / - - 97 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT CAST( NULL AS SIGNED ) + + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT CAST ( NULL AS INTEGER ) + + - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT DISTINCT - CASE - 68 WHEN + - ( - MAX( ALL + - 25 ) ) THEN - 90 ELSE NULL END + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT - CASE - 68 WHEN + - ( - MAX ( ALL + - 25 ) ) THEN - 90 ELSE NULL END + + 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7561
SELECT 16 * + 1 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7561
SELECT 16 * + 1 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 13 * + - 58 + + 95 col0
----
-659

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7563
SELECT ALL MAX( - 42 ) + 54 DIV + 77 + 41
----
-1

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL MAX ( - 42 ) + 54 / + 77 + 41
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ALL 38 + + COUNT( * ) + - - ( - 11 ) + - ( 12 )
----
16

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL 38 + + COUNT ( * ) + - - ( - 11 ) + - ( 12 )
----
16

query I rowsort
SELECT ALL + 11 + - - ( + 21 ) col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7566
SELECT CAST( + 8 AS SIGNED ) + - + 92 * + + NULLIF ( - + 38, COUNT( * ) ) * + 22 + + 66 * - COUNT( * ) + + 66 AS col1, MAX( ALL - 67 ) - SUM( ALL + 59 ) AS col0
----
76920
-126

skipif mysql # not compatible
query II rowsort label-7566
SELECT CAST ( + 8 AS INTEGER ) + - + 92 * + + NULLIF ( - + 38, COUNT ( * ) ) * + 22 + + 66 * - COUNT ( * ) + + 66 AS col1, MAX ( ALL - 67 ) - SUM ( ALL + 59 ) AS col0
----
76920
-126

query I rowsort
SELECT ALL + 2 * + - ( + 24 )
----
-48

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

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

query I rowsort
SELECT - NULLIF ( 84, + NULLIF ( 57, - + ( + 36 ) ) * + 41 )
----
-84

query I rowsort
SELECT 20 * - 34
----
-680

onlyif mysql # aggregate syntax: 
query II rowsort label-7571
SELECT 27 - - 90, + SUM( ALL + 63 ) AS col1
----
117
63

skipif mysql # not compatible
query II rowsort label-7571
SELECT 27 - - 90, + SUM ( ALL + 63 ) AS col1
----
117
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT 13 - 2 + + 54 - - 15 * SUM( DISTINCT 32 )
----
545

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT 13 - 2 + + 54 - - 15 * SUM ( DISTINCT 32 )
----
545

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT COALESCE ( COUNT( * ), - COUNT( * ) ) + + - 95
----
-94

skipif mysql # not compatible
query I rowsort label-7573
SELECT COALESCE ( COUNT ( * ), - COUNT ( * ) ) + + - 95
----
-94

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

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

query I rowsort
SELECT + 54 * - 9 * 84
----
-40824

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT - 60 * 60 * 30 * COUNT( * ) AS col1
----
-108000

skipif mysql # not compatible
query I rowsort label-7576
SELECT - 60 * 60 * 30 * COUNT ( * ) AS col1
----
-108000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT + 71 + + 43 + - 72 + + CAST( + 56 AS SIGNED ) + + 62 + - 57
----
103

skipif mysql # not compatible
query I rowsort label-7577
SELECT + 71 + + 43 + - 72 + + CAST ( + 56 AS INTEGER ) + + 62 + - 57
----
103

query I rowsort
SELECT - 47 + - NULLIF ( + - 37, - 82 ) * + 50 col2
----
1803

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + 85, + 7 * - CASE NULLIF ( + 95, - 80 / - 60 * 98 ) WHEN - + ( - + 89 ) + - 17 THEN + + 25 / + 14 + 25 + 35 ELSE NULL END )
----
85

query I rowsort
SELECT + 5 * 66 + - - 78
----
408

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7582
SELECT + ( + + 5 ), CAST( - ( - + 31 ) AS SIGNED ) AS col0
----
5
31

skipif mysql # not compatible
query II rowsort label-7582
SELECT + ( + + 5 ), CAST ( - ( - + 31 ) AS INTEGER ) AS col0
----
5
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT + 27 DIV + - 76 + + + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7583
SELECT + 27 / + - 76 + + + 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT - - 64 * + 11 * - COUNT( DISTINCT 5 ) AS col0
----
-704

skipif mysql # not compatible
query I rowsort label-7584
SELECT - - 64 * + 11 * - COUNT ( DISTINCT 5 ) AS col0
----
-704

query I rowsort
SELECT - 71 + + 16 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL COUNT( * ) * 46 + 70 + + 23 + - ( - 71 ) AS col0
----
210

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL COUNT ( * ) * 46 + 70 + + 23 + - ( - 71 ) AS col0
----
210

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7588
SELECT ALL 51 * - - 72 + COUNT( * ) AS col1, - 90 * + 62 * - 75 AS col0
----
3673
418500

skipif mysql # not compatible
query II rowsort label-7588
SELECT ALL 51 * - - 72 + COUNT ( * ) AS col1, - 90 * + 62 * - 75 AS col0
----
3673
418500

query I rowsort
SELECT ALL 63 * - 94 * - 52 + 24 AS col1
----
307968

onlyif mysql # aggregate syntax: 
query II rowsort label-7590
SELECT ALL + 31 * COUNT( * ) - + 44 - - - COUNT( * ) + + 36 * + 53 + - - 52, 66 + 8 + + - NULLIF ( 19, - 82 ) AS col1
----
1946
55

skipif mysql # not compatible
query II rowsort label-7590
SELECT ALL + 31 * COUNT ( * ) - + 44 - - - COUNT ( * ) + + 36 * + 53 + - - 52, 66 + 8 + + - NULLIF ( 19, - 82 ) AS col1
----
1946
55

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

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

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

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

query II rowsort
SELECT ALL 32 AS col2, - 25 AS col2
----
32
-25

query I rowsort
SELECT DISTINCT ( NULLIF ( - 85, - 86 ) ) * 99 AS col2
----
-8415

query I rowsort
SELECT + 96 * + - 14 AS col2
----
-1344

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

skipif mysql # not compatible
query I rowsort label-7596
SELECT COUNT ( - 99 )
----
1

query I rowsort
SELECT ALL 78 - + 30 + + 36 * 51 * + + 87
----
159780

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT ALL MIN( ALL + + 65 ) - 31 + - COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL MIN ( ALL + + 65 ) - 31 + - COUNT ( * ) AS col1
----
33

query I rowsort
SELECT - NULLIF ( 22, + 88 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL ( + COUNT( * ) ) * + 93 + + + 52
----
145

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL ( + COUNT ( * ) ) * + 93 + + + 52
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT + MAX( - - 93 ) + 26 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-7601
SELECT + MAX ( - - 93 ) + 26 AS col1
----
119

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

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

query II rowsort
SELECT ALL 55 AS col1, - 46 col2
----
55
-46

query I rowsort
SELECT + 30 * 6 * + 26
----
4680

query I rowsort
SELECT + 6 - - - 74 * + + 91 AS col2
----
-6728

query I rowsort
SELECT + 0 * 8 AS col2
----
0

query I rowsort
SELECT ALL - 36 * - 27 AS col1
----
972

query I rowsort
SELECT ALL CASE - 76 WHEN - 61 THEN NULL WHEN 9 THEN 14 * - 10 / + 79 + - + 72 * - 10 * - - 96 ELSE + + 87 END
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL COUNT( ALL 12 )
----
1

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL COUNT ( ALL 12 )
----
1

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

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

query II rowsort
SELECT ALL 16 * - 81 + - 76 AS col1, + 33 * - 88 AS col1
----
-1372
-2904

query I rowsort
SELECT - 55 * + - 84 AS col1
----
4620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7613
SELECT ALL - 72 * + COUNT( * ) DIV COUNT( * ) + - 33 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL - 72 * + COUNT ( * ) / COUNT ( * ) + - 33 AS col0
----
-105

query I rowsort
SELECT + 99 * - 96
----
-9504

onlyif mysql # aggregate syntax: 
query II rowsort label-7615
SELECT + - ( COUNT( DISTINCT + - 8 ) ) AS col0, 33 * - 97 AS col2
----
-1
-3201

skipif mysql # not compatible
query II rowsort label-7615
SELECT + - ( COUNT ( DISTINCT + - 8 ) ) AS col0, 33 * - 97 AS col2
----
-1
-3201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7616
SELECT - + CAST( NULL AS SIGNED ) / + 69 * + 62 - + + 1 + + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT - + CAST ( NULL AS INTEGER ) / + 69 * + 62 - + + 1 + + + 48
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7617
SELECT ALL + 55 / + + CAST( NULL AS SIGNED ) + - + 16 AS col2, 4 AS col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-7617
SELECT ALL + 55 / + + CAST ( NULL AS INTEGER ) + - + 16 AS col2, 4 AS col1
----
NULL
4

query II rowsort
SELECT - + 42 * 69 + 66 col1, 21
----
-2832
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7619
SELECT DISTINCT + ( - - COUNT( ALL + + 3 ) ) AS col1, CAST( - COUNT( * ) AS SIGNED ) * - 36 AS col2, 23 - COUNT( * )
----
1
36
22

skipif mysql # not compatible
query III rowsort label-7619
SELECT DISTINCT + ( - - COUNT ( ALL + + 3 ) ) AS col1, CAST ( - COUNT ( * ) AS INTEGER ) * - 36 AS col2, 23 - COUNT ( * )
----
1
36
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7620
SELECT ALL + + 38 DIV + - 55 - COUNT( * ) + + 32 * + 0 + - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL + + 38 / + - 55 - COUNT ( * ) + + 32 * + 0 + - - COUNT ( * )
----
0

query I rowsort
SELECT - 15 + - + 92 + + + 5 col0
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7622
SELECT ALL NULLIF ( - - 99, + CASE 97 WHEN COUNT( * ) THEN - 98 * - 97 * - 24 + + 79 + + + 93 / - COUNT( 46 ) ELSE NULL END ) / 29 + - - 74 + 1 * - - CAST( NULL AS SIGNED ) * - 70 * - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL NULLIF ( - - 99, + CASE 97 WHEN COUNT ( * ) THEN - 98 * - 97 * - 24 + + 79 + + + 93 / - COUNT ( 46 ) ELSE NULL END ) / 29 + - - 74 + 1 * - - CAST ( NULL AS INTEGER ) * - 70 * - 75 AS col1
----
NULL

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

query I rowsort
SELECT ALL - - 20 * 3 + - 44 AS col2
----
16

query I rowsort
SELECT - - 15 + - 60
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7626
SELECT + - 9 * + 17 * - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT + - 9 * + 17 * - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 4 * 95 + 65 AS col1
----
-315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7628
SELECT 48 * - - 84 * - CAST( NULL AS SIGNED ) * + + 9 * + 93 + - - 40 * - MIN( 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT 48 * - - 84 * - CAST ( NULL AS INTEGER ) * + + 9 * + 93 + - - 40 * - MIN ( 28 )
----
NULL

query II rowsort
SELECT DISTINCT + COALESCE ( 95, - 2 + + - 68 ) AS col2, 47 AS col1
----
95
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL + 94 * - 21 * - 48 - 33 * + COUNT( * ) * + 13 + COUNT( * ) * 72
----
94395

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL + 94 * - 21 * - 48 - 33 * + COUNT ( * ) * + 13 + COUNT ( * ) * 72
----
94395

query II rowsort
SELECT COALESCE ( + 86, + 43, + + 91 ) AS col0, 73 AS col2
----
86
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT + 66 + - - SUM( + - 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-7632
SELECT + 66 + - - SUM ( + - 67 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7633
SELECT 1 * - - COUNT( * ), COALESCE ( 14, + - 92 ) AS col2
----
1
14

skipif mysql # not compatible
query II rowsort label-7633
SELECT 1 * - - COUNT ( * ), COALESCE ( 14, + - 92 ) AS col2
----
1
14

query II rowsort
SELECT 36 * - - 7 AS col1, - 22
----
252
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7635
SELECT DISTINCT - ( - - ( - 17 ) ) DIV MAX( DISTINCT 21 )
----
0

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT - ( - - ( - 17 ) ) / MAX ( DISTINCT 21 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT ALL + COUNT( * ) - + 96 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL + COUNT ( * ) - + 96 AS col2
----
-95

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7638
SELECT MAX( DISTINCT + - 40 ) DIV + + 30
----
-1

skipif mysql # not compatible
query I rowsort label-7638
SELECT MAX ( DISTINCT + - 40 ) / + + 30
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL 18 * - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL 18 * - - COUNT ( * )
----
18

query I rowsort
SELECT DISTINCT 36 * - 88
----
-3168

query I rowsort
SELECT 26 + + 62 + + + 50 * 86 + + ( + 67 )
----
4455

query II rowsort
SELECT 61 - + + 29, 42 + 63 AS col2
----
32
105

query I rowsort
SELECT DISTINCT 17 + + 31 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL 76 + - - MIN( ALL + 10 )
----
86

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL 76 + - - MIN ( ALL + 10 )
----
86

query I rowsort
SELECT + 53 * + 69 + + ( - 53 ) * - 36 - 84
----
5481

query I rowsort
SELECT 4 + + - 39 AS col2
----
-35

query I rowsort
SELECT ALL + 51 + - 21 AS col1
----
30

query I rowsort
SELECT 50 + + - ( 36 ) AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL CAST( + 81 AS SIGNED ) + + COUNT( * ) * NULLIF ( + + COUNT( * ), - + COALESCE ( - 58, + 21 + - 93 * + 49 + + COUNT( * ) ) + - 30 - + 16 )
----
82

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL CAST ( + 81 AS INTEGER ) + + COUNT ( * ) * NULLIF ( + + COUNT ( * ), - + COALESCE ( - 58, + 21 + - 93 * + 49 + + COUNT ( * ) ) + - 30 - + 16 )
----
82

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

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL 50 / + COUNT ( * )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7651
SELECT - 19 + 84 * + 99 * - 79, + COALESCE ( + - MAX( DISTINCT - 50 ), MIN( + 77 ) - - 69, + ( + MAX( - - CAST( - 50 AS SIGNED ) ) ), + + 32 ) AS col0
----
-656983
50

skipif mysql # not compatible
query II rowsort label-7651
SELECT - 19 + 84 * + 99 * - 79, + COALESCE ( + - MAX ( DISTINCT - 50 ), MIN ( + 77 ) - - 69, + ( + MAX ( - - CAST ( - 50 AS INTEGER ) ) ), + + 32 ) AS col0
----
-656983
50

query I rowsort
SELECT ALL + - ( - 89 ) + - + 68
----
21

query I rowsort
SELECT ALL 16 * - 54 - - 8
----
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT COUNT( * ) + + + 24 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7654
SELECT COUNT ( * ) + + + 24 AS col1
----
25

query II rowsort
SELECT + 69 + + 7 AS col0, + 30 * + 13 * - 65
----
76
-25350

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7656
SELECT ALL - 24 - COUNT( * ) DIV + COUNT( ALL + - 18 ) AS col1, 9 AS col2
----
-25
9

skipif mysql # not compatible
query II rowsort label-7656
SELECT ALL - 24 - COUNT ( * ) / + COUNT ( ALL + - 18 ) AS col1, 9 AS col2
----
-25
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT DISTINCT - 66 * 8 * - CAST( NULL AS SIGNED ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT - 66 * 8 * - CAST ( NULL AS INTEGER ) + - 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7658
SELECT - NULLIF ( - + MIN( + 72 ), ( - - 73 ) + 38 / - 56 ) * + CAST( - 48 AS SIGNED ) + + 1 * + 43
----
-3413

skipif mysql # not compatible
query I rowsort label-7658
SELECT - NULLIF ( - + MIN ( + 72 ), ( - - 73 ) + 38 / - 56 ) * + CAST ( - 48 AS INTEGER ) + + 1 * + 43
----
-3413

onlyif mysql # DIV for integer division: 
query I rowsort label-7659
SELECT 99 DIV - 42 + - + 81 * + 28 AS col0
----
-2270

skipif mysql # not compatible
query I rowsort label-7659
SELECT 99 / - 42 + - + 81 * + 28 AS col0
----
-2270

query I rowsort
SELECT DISTINCT - 22 * - - 0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7661
SELECT ALL + - 21 DIV - 40 AS col2, - 43
----
0
-43

skipif mysql # not compatible
query II rowsort label-7661
SELECT ALL + - 21 / - 40 AS col2, - 43
----
0
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT DISTINCT - + CASE + 17 WHEN + AVG ( CAST( NULL AS SIGNED ) ) THEN - + 18 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT DISTINCT - + CASE + 17 WHEN + AVG ( CAST ( NULL AS INTEGER ) ) THEN - + 18 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL + ( + - 34 ) - + COUNT( * ) - - ( 60 )
----
25

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + ( + - 34 ) - + COUNT ( * ) - - ( 60 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT 21 * - 71 * 1 * - CASE + 7 WHEN NULLIF ( - 55, 97 ) * + 39 - - 6 THEN NULL WHEN + - MAX( ALL + 14 ) + 41 * - COUNT( * ) * - 16 - - 31 THEN - CASE + - 70 WHEN + 43 + - COUNT( * ) THEN - 51 END * ( + COUNT( * ) ) ELSE + COUNT( * ) END AS col1
----
1491

skipif mysql # not compatible
query I rowsort label-7664
SELECT 21 * - 71 * 1 * - CASE + 7 WHEN NULLIF ( - 55, 97 ) * + 39 - - 6 THEN NULL WHEN + - MAX ( ALL + 14 ) + 41 * - COUNT ( * ) * - 16 - - 31 THEN - CASE + - 70 WHEN + 43 + - COUNT ( * ) THEN - 51 END * ( + COUNT ( * ) ) ELSE + COUNT ( * ) END AS col1
----
1491

query I rowsort
SELECT ALL - CASE - 93 WHEN + 73 THEN + 37 + + 63 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT - CASE + - 85 WHEN 30 THEN CASE + 12 WHEN - - CASE + 92 WHEN 48 THEN + + 75 WHEN - 24 THEN + COUNT( * ) + + 23 + + + 26 * + COUNT( * ) - + 53 * - - 38 - - 67 + - + 5 ELSE - 98 + - 86 * 6 + 70 - + COUNT( * ) / 83 END THEN 35 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT - CASE + - 85 WHEN 30 THEN CASE + 12 WHEN - - CASE + 92 WHEN 48 THEN + + 75 WHEN - 24 THEN + COUNT ( * ) + + 23 + + + 26 * + COUNT ( * ) - + 53 * - - 38 - - 67 + - + 5 ELSE - 98 + - 86 * 6 + 70 - + COUNT ( * ) / 83 END THEN 35 END END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL - COUNT ( ALL + - 53 ) * + 89 AS col2
----
-89

query I rowsort
SELECT - 1 * + 71 - + + 86 AS col2
----
-157

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

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL - CAST ( + 52 AS INTEGER ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT - COUNT( * ) * - - CASE - 63 WHEN 1 + - 35 + 21 * - 58 / + 92 + - 91 THEN + ( 11 ) WHEN + 90 THEN NULL END + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT - COUNT ( * ) * - - CASE - 63 WHEN 1 + - 35 + 21 * - 58 / + 92 + - 91 THEN + ( 11 ) WHEN + 90 THEN NULL END + 40 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - CASE + 87 WHEN 73 * - 5 + + - 75 THEN - - 88 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 81 * 97
----
7857

query I rowsort
SELECT 36 * + 52
----
1872

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

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

query I rowsort
SELECT ALL - 8 + - + 48 * + 11 * + + 22 AS col2
----
-11624

query I rowsort
SELECT 26 * - 33 AS col0
----
-858

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT 61 + - 84 DIV 24 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7677
SELECT 61 + - 84 / 24 AS col2
----
58

query I rowsort
SELECT DISTINCT + 36 + 32
----
68

query I rowsort
SELECT 71 + 45
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL - 73 + + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL - 73 + + COUNT ( * )
----
-72

query I rowsort
SELECT 19 * + 58 AS col0
----
1102

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL - MAX( - 30 ) + - 82
----
-52

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - MAX ( - 30 ) + - 82
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7683
SELECT ALL + + 57 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL + + 57 / + 69
----
0

query I rowsort
SELECT DISTINCT + 47 + + 97
----
144

query I rowsort
SELECT ALL 48 * + 41
----
1968

onlyif mysql # aggregate syntax: 
query II rowsort label-7686
SELECT ALL - 55 AS col0, - MIN( ALL + + 61 ) * - 16
----
-55
976

skipif mysql # not compatible
query II rowsort label-7686
SELECT ALL - 55 AS col0, - MIN ( ALL + + 61 ) * - 16
----
-55
976

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT - - MAX( DISTINCT - - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-7687
SELECT - - MAX ( DISTINCT - - 79 )
----
79

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7689
SELECT - - CAST( NULL AS SIGNED ), 35 * - + 74 * - + NULLIF ( - CAST( NULL AS SIGNED ), - + COUNT( * ) + - + 56 ) + - - 57 * - + SUM( + + 73 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7689
SELECT - - CAST ( NULL AS INTEGER ), 35 * - + 74 * - + NULLIF ( - CAST ( NULL AS INTEGER ), - + COUNT ( * ) + - + 56 ) + - - 57 * - + SUM ( + + 73 )
----
NULL
NULL

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

query I rowsort
SELECT - 93 - + 12
----
-105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL - - CASE - 7 WHEN - COUNT( * ) THEN + 65 + 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL - - CASE - 7 WHEN - COUNT ( * ) THEN + 65 + 24 END
----
NULL

query I rowsort
SELECT + 60 / + 78 - - AVG ( DISTINCT - NULLIF ( CASE + - 40 WHEN - 95 THEN 97 * 60 + 65 ELSE NULL END, COALESCE ( + 46, - + 73 ) ) ) - + + 33 * + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT ALL + NULLIF ( - + 42, + 80 * NULLIF ( + 62, + 14 + - COUNT( DISTINCT - + 11 ) + - 22 * + 46 ) + + + 22 ) * - COUNT( * ) * - + 32 - + 89 + 94
----
-1339

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL + NULLIF ( - + 42, + 80 * NULLIF ( + 62, + 14 + - COUNT ( DISTINCT - + 11 ) + - 22 * + 46 ) + + + 22 ) * - COUNT ( * ) * - + 32 - + 89 + 94
----
-1339

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT COUNT( * ) * - COUNT( * ) * - 97 + 49
----
146

skipif mysql # not compatible
query I rowsort label-7697
SELECT COUNT ( * ) * - COUNT ( * ) * - 97 + 49
----
146

query I rowsort
SELECT ALL - + NULLIF ( 86, 56 ) col0
----
-86

query I rowsort
SELECT 37 - + 62 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT ALL - MAX( DISTINCT - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL - MAX ( DISTINCT - 1 )
----
1

query I rowsort
SELECT ALL ( + - 84 ) * - 36 AS col0
----
3024

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

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT 8 * + COUNT ( * ) AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT ALL - 30 * + 72 + + CAST( NULL AS SIGNED ) * + 67 * + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - 30 * + 72 + + CAST ( NULL AS INTEGER ) * + 67 * + 73 AS col1
----
NULL

query I rowsort
SELECT - 34 * 62 + 63 AS col2
----
-2045

query I rowsort
SELECT ALL ( + 45 ) * + - 80 AS col2
----
-3600

query I rowsort
SELECT + 84 + + 78
----
162

query I rowsort
SELECT ALL 66 + - + 43 AS col1
----
23

query I rowsort
SELECT + 48 * - 54 col1
----
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT - COUNT( ALL - + 2 ) + - 88 * + + 50 + + 90 AS col1
----
-4311

skipif mysql # not compatible
query I rowsort label-7709
SELECT - COUNT ( ALL - + 2 ) + - 88 * + + 50 + + 90 AS col1
----
-4311

query I rowsort
SELECT 23 * + 93 + - 77 AS col0
----
2062

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT ALL - 86 + + - SUM( DISTINCT 16 )
----
-102

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - 86 + + - SUM ( DISTINCT 16 )
----
-102

query II rowsort
SELECT DISTINCT + 32 * - 18 AS col2, 79
----
-576
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT - COALESCE ( - - 92, + CASE - - SUM( - 12 ) WHEN 44 THEN NULL WHEN 68 THEN 51 END, 99 ) + COUNT( * ) * + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-7713
SELECT - COALESCE ( - - 92, + CASE - - SUM ( - 12 ) WHEN 44 THEN NULL WHEN 68 THEN 51 END, 99 ) + COUNT ( * ) * + COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7714
SELECT DISTINCT + 5 + - - COUNT( * ) - 4 - - - 15 * COUNT( 13 ) + - - 12 + + 72 DIV COALESCE ( - + COALESCE ( COUNT( * ), + 85 ), + 57 + + 42, + - 20 )
----
-73

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT + 5 + - - COUNT ( * ) - 4 - - - 15 * COUNT ( 13 ) + - - 12 + + 72 / COALESCE ( - + COALESCE ( COUNT ( * ), + 85 ), + 57 + + 42, + - 20 )
----
-73

query II rowsort
SELECT - 32, + 74 AS col2
----
-32
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT - + ( MIN( DISTINCT + 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-7716
SELECT - + ( MIN ( DISTINCT + 91 ) )
----
-91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT DISTINCT - MIN( + CASE - 27 WHEN 98 THEN + 58 - + 61 + + 84 + 58 - + - 56 + - 33 * + 34 * + 47 DIV - + 53 ELSE - 17 END ) - + + 56 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT - MIN ( + CASE - 27 WHEN 98 THEN + 58 - + 61 + + 84 + 58 - + - 56 + - 33 * + 34 * + 47 / - + 53 ELSE - 17 END ) - + + 56 AS col2
----
-39

query II rowsort
SELECT - 54 + 77, 61 AS col0
----
23
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7720
SELECT - - ( 6 ) + COUNT( * ) + 85 + - COUNT( * ) * - 11 AS col2, 30 AS col0
----
103
30

skipif mysql # not compatible
query II rowsort label-7720
SELECT - - ( 6 ) + COUNT ( * ) + 85 + - COUNT ( * ) * - 11 AS col2, 30 AS col0
----
103
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT DISTINCT + + 79 DIV 2
----
39

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT + + 79 / 2
----
39

onlyif mysql # aggregate syntax: 
query III rowsort label-7722
SELECT ALL 78 AS col0, - 48 AS col2, - SUM( DISTINCT - 21 ) AS col1
----
78
-48
21

skipif mysql # not compatible
query III rowsort label-7722
SELECT ALL 78 AS col0, - 48 AS col2, - SUM ( DISTINCT - 21 ) AS col1
----
78
-48
21

query I rowsort
SELECT ALL - 33 * + 13 + 44 AS col2
----
-385

query I rowsort
SELECT - - 27 + - 70 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT ALL - 42 * 65 + 30 DIV + - 27 AS col1
----
-2731

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL - 42 * 65 + 30 / + - 27 AS col1
----
-2731

query I rowsort
SELECT - 27 * + 49 AS col2
----
-1323

query I rowsort
SELECT ALL + NULLIF ( - - 49, + 74 )
----
49

query I rowsort
SELECT + + 3 * + + 61 AS col2
----
183

query I rowsort
SELECT ALL + 81 * - 63
----
-5103

onlyif mysql # DIV for integer division: 
query II rowsort label-7730
SELECT + 63 AS col1, 75 DIV + 98 AS col2
----
63
0

skipif mysql # not compatible
query II rowsort label-7730
SELECT + 63 AS col1, 75 / + 98 AS col2
----
63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT + 45 * 15 + - ( 55 ) * + MAX( + + 86 ) AS col2
----
-4055

skipif mysql # not compatible
query I rowsort label-7731
SELECT + 45 * 15 + - ( 55 ) * + MAX ( + + 86 ) AS col2
----
-4055

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT - 14 * COUNT( DISTINCT 82 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-7732
SELECT - 14 * COUNT ( DISTINCT 82 ) AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7733
SELECT - 30 * 7 + + COUNT( * ) - + 1 DIV - 64 + + 97
----
-112

skipif mysql # not compatible
query I rowsort label-7733
SELECT - 30 * 7 + + COUNT ( * ) - + 1 / - 64 + + 97
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7734
SELECT ALL - 35 DIV + COUNT( ALL + 14 ) + + 1
----
-34

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL - 35 / + COUNT ( ALL + 14 ) + + 1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7735
SELECT + MAX( + 15 ) AS col1, - CASE 74 WHEN 57 THEN + ( 20 ) WHEN - CAST( CAST( - + 76 AS SIGNED ) AS SIGNED ) / + 23 THEN NULL END * + 92
----
15
NULL

skipif mysql # not compatible
query II rowsort label-7735
SELECT + MAX ( + 15 ) AS col1, - CASE 74 WHEN 57 THEN + ( 20 ) WHEN - CAST ( CAST ( - + 76 AS INTEGER ) AS INTEGER ) / + 23 THEN NULL END * + 92
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT + ( + CASE + + 92 WHEN 2 THEN - 36 * - + COUNT( * ) ELSE + 61 - + 46 * - 67 END )
----
3143

skipif mysql # not compatible
query I rowsort label-7736
SELECT + ( + CASE + + 92 WHEN 2 THEN - 36 * - + COUNT ( * ) ELSE + 61 - + 46 * - 67 END )
----
3143

query I rowsort
SELECT ALL - CASE 35 WHEN - ( + COALESCE ( 12, + - 20 ) ) THEN - - ( - + 54 ) END * - 46 + + 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7738
SELECT DISTINCT + CAST( + MIN( ALL 57 ) AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT + CAST ( + MIN ( ALL 57 ) AS INTEGER )
----
57

query II rowsort
SELECT + ( + 34 ), 61 AS col2
----
34
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7740
SELECT ALL + CAST( NULL AS SIGNED ) * + 81 + - + 83 col0, + COUNT( * ) * 38 AS col1
----
NULL
38

skipif mysql # not compatible
query II rowsort label-7740
SELECT ALL + CAST ( NULL AS INTEGER ) * + 81 + - + 83 col0, + COUNT ( * ) * 38 AS col1
----
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7741
SELECT COALESCE ( - 51, CAST( 0 AS SIGNED ) )
----
-51

skipif mysql # not compatible
query I rowsort label-7741
SELECT COALESCE ( - 51, CAST ( 0 AS INTEGER ) )
----
-51

query I rowsort
SELECT + 48 * - - 68 AS col2
----
3264

query I rowsort
SELECT + 54 * - + 98 AS col0
----
-5292

query I rowsort
SELECT ALL 60 * ( - 18 ) * + 20
----
-21600

query I rowsort
SELECT CASE COALESCE ( + + 55, - 59 ) WHEN - ( - - 59 ) THEN NULL WHEN + 85 / - 24 THEN + + 95 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7746
SELECT COALESCE ( - 92, - + 87 + - 37 + - AVG ( ALL - 53 ) ) * 16 + + 63 + 47 * + + ( 35 ) + + NULLIF ( + 33, - - 48 + 69 * - COUNT( * ) ) * ( - 24 ) / - CAST( NULL AS DECIMAL ) / + CAST( + - 23 AS SIGNED ) + + - 22 * - 15 * + NULLIF ( - - 28, - 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT COALESCE ( - 92, - + 87 + - 37 + - AVG ( ALL - 53 ) ) * 16 + + 63 + 47 * + + ( 35 ) + + NULLIF ( + 33, - - 48 + 69 * - COUNT ( * ) ) * ( - 24 ) / - CAST ( NULL AS REAL ) / + CAST ( + - 23 AS INTEGER ) + + - 22 * - 15 * + NULLIF ( - - 28, - 70 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7747
SELECT CASE - - CAST( - 12 AS SIGNED ) WHEN + 97 * COALESCE ( - 79, + 41 + - 80 - + 21 * - MAX( 93 ), COUNT( * ) * 79 * 14 * + COUNT( * ) - + COUNT( * ) + 78 + - 41 + + COUNT( + + 59 ) + + NULLIF ( + + 70, + - 23 * + 68 + - + COUNT( * ) - + - 81 * - CAST( - 94 AS SIGNED ) ) * + 6 * 60 * + COUNT( * ) * COUNT( * ) * + 95, - 68 + 93 ) THEN COUNT( * ) * 25 WHEN 32 * - + 6 + - + 38 - + COUNT( * ) * - 65 / + COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT CASE - - CAST ( - 12 AS INTEGER ) WHEN + 97 * COALESCE ( - 79, + 41 + - 80 - + 21 * - MAX ( 93 ), COUNT ( * ) * 79 * 14 * + COUNT ( * ) - + COUNT ( * ) + 78 + - 41 + + COUNT ( + + 59 ) + + NULLIF ( + + 70, + - 23 * + 68 + - + COUNT ( * ) - + - 81 * - CAST ( - 94 AS INTEGER ) ) * + 6 * 60 * + COUNT ( * ) * COUNT ( * ) * + 95, - 68 + 93 ) THEN COUNT ( * ) * 25 WHEN 32 * - + 6 + - + 38 - + COUNT ( * ) * - 65 / + COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 53 * + 43 * 30 * 75 AS col2
----
5127750

query I rowsort
SELECT 55 * - 74 * 50 - + 93
----
-203593

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT 46 * - - 96 + 99 + + - MAX( ALL + 75 ) - - 50 + - CASE + 81 WHEN + 29 THEN + 47 END * + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7750
SELECT 46 * - - 96 + 99 + + - MAX ( ALL + 75 ) - - 50 + - CASE + 81 WHEN + 29 THEN + 47 END * + 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7751
SELECT ALL - COUNT( + 36 ) DIV - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL - COUNT ( + 36 ) / - 49 AS col1
----
0

query I rowsort
SELECT + 88 * + NULLIF ( 69, + 5 ) * 1 + 42
----
6114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7753
SELECT DISTINCT - COALESCE ( - CAST( NULL AS SIGNED ), + + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT - COALESCE ( - CAST ( NULL AS INTEGER ), + + 25 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-7754
SELECT DISTINCT MAX( DISTINCT 93 ) AS col0, ( 82 )
----
93
82

skipif mysql # not compatible
query II rowsort label-7754
SELECT DISTINCT MAX ( DISTINCT 93 ) AS col0, ( 82 )
----
93
82

query I rowsort
SELECT - 8 + + - 78 + - - NULLIF ( 96, - + 43 * + 94 ) * + 20 * - 27 + - 2
----
-51928

query II rowsort
SELECT + 66 * - 10 + 2 AS col2, - 43
----
-658
-43

query I rowsort
SELECT ALL + 37 * - ( + 4 ) * 12 AS col0
----
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT - CASE - - CASE + ( - + 69 ) WHEN + NULLIF ( - 32, + ( 5 ) * 92 + - ( - 95 ) * COUNT( * ) ) THEN + + 76 WHEN + - 83 THEN ( - COUNT( * ) ) + + + 9 * MIN( - 30 ) - - 35 END WHEN - 6 THEN NULL WHEN + 10 THEN NULL ELSE + 52 + - 71 END
----
19

skipif mysql # not compatible
query I rowsort label-7758
SELECT - CASE - - CASE + ( - + 69 ) WHEN + NULLIF ( - 32, + ( 5 ) * 92 + - ( - 95 ) * COUNT ( * ) ) THEN + + 76 WHEN + - 83 THEN ( - COUNT ( * ) ) + + + 9 * MIN ( - 30 ) - - 35 END WHEN - 6 THEN NULL WHEN + 10 THEN NULL ELSE + 52 + - 71 END
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7760
SELECT - CAST( - NULLIF ( - 14, + 22 * - CASE + CASE - COUNT( DISTINCT - 12 ) WHEN - 71 THEN NULL WHEN + + MIN( 50 ) THEN + - 64 WHEN ( 86 ) - + - AVG ( ALL + + 7 ) THEN NULL WHEN + 81 THEN NULL ELSE NULL END WHEN + ( 35 ) / - COUNT( * ) + - NULLIF ( - - 94, 53 + - - CAST( - - 72 AS SIGNED ) + - 5 + 11 * - 60 * + - 98 ) THEN ( 86 ) WHEN + NULLIF ( - + ( - 13 ), + NULLIF ( - 29, + 95 ) ) * 68 + + - 47 + 89 + - COUNT( ALL CAST( 95 AS DECIMAL ) ) - - 59 * 31 THEN COALESCE ( 22, + COALESCE ( CAST( NULL AS SIGNED ), 11 + + 51 ) ) * 78 END ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-7760
SELECT - CAST ( - NULLIF ( - 14, + 22 * - CASE + CASE - COUNT ( DISTINCT - 12 ) WHEN - 71 THEN NULL WHEN + + MIN ( 50 ) THEN + - 64 WHEN ( 86 ) - + - AVG ( ALL + + 7 ) THEN NULL WHEN + 81 THEN NULL ELSE NULL END WHEN + ( 35 ) / - COUNT ( * ) + - NULLIF ( - - 94, 53 + - - CAST ( - - 72 AS INTEGER ) + - 5 + 11 * - 60 * + - 98 ) THEN ( 86 ) WHEN + NULLIF ( - + ( - 13 ), + NULLIF ( - 29, + 95 ) ) * 68 + + - 47 + 89 + - COUNT ( ALL CAST ( 95 AS REAL ) ) - - 59 * 31 THEN COALESCE ( 22, + COALESCE ( CAST ( NULL AS INTEGER ), 11 + + 51 ) ) * 78 END ) AS INTEGER )
----
-14

query I rowsort
SELECT DISTINCT + 46 - - + 23
----
69

query I rowsort
SELECT - - 82 * + 10 * - + 46
----
-37720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7763
SELECT ALL 71 * + 16 - + - NULLIF ( - MAX( DISTINCT + + 57 ), - 25 - - - 80 + - CAST( - - 34 AS DECIMAL ) / - 61 )
----
1079

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL 71 * + 16 - + - NULLIF ( - MAX ( DISTINCT + + 57 ), - 25 - - - 80 + - CAST ( - - 34 AS REAL ) / - 61 )
----
1079

onlyif mysql # aggregate syntax: 
query II rowsort label-7764
SELECT DISTINCT - 43 * + 9 * - 45 AS col2, 51 * + - COUNT( * )
----
17415
-51

skipif mysql # not compatible
query II rowsort label-7764
SELECT DISTINCT - 43 * + 9 * - 45 AS col2, 51 * + - COUNT ( * )
----
17415
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7765
SELECT - COUNT( * ) DIV 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7765
SELECT - COUNT ( * ) / 34 AS col0
----
0

query I rowsort
SELECT 76 * - + 66 * 19 AS col2
----
-95304

onlyif mysql # aggregate syntax: 
query II rowsort label-7767
SELECT - CASE + 18 WHEN - + 3 / COUNT( * ) + - 77 + - 37 + - 0 THEN - 22 - - MAX( DISTINCT 10 ) - + 98 END / + + 68 AS col2, 53
----
NULL
53

skipif mysql # not compatible
query II rowsort label-7767
SELECT - CASE + 18 WHEN - + 3 / COUNT ( * ) + - 77 + - 37 + - 0 THEN - 22 - - MAX ( DISTINCT 10 ) - + 98 END / + + 68 AS col2, 53
----
NULL
53

query I rowsort
SELECT ALL - + 10 + - + 85 * + 34 AS col2
----
-2900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7769
SELECT - 89 DIV - + 61 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7769
SELECT - 89 / - + 61 + COUNT ( * )
----
2

query I rowsort
SELECT ALL - 94 * + + 84 col2
----
-7896

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT 39 DIV + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7771
SELECT 39 / + 54 AS col1
----
0

query I rowsort
SELECT ALL - ( + 29 ) + + 14
----
-15

query I rowsort
SELECT DISTINCT 13 + + + 3 * + 80
----
253

query I rowsort
SELECT ALL 72 + - 38
----
34

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

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL + CAST ( NULL AS REAL ) * 39 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 32 * - 14
----
-448

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT 59 DIV + 74 - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7778
SELECT 59 / + 74 - 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-7779
SELECT ALL 12 + + + 14 * 99 AS col0, 81 - - - NULLIF ( 72, + 27 ) - + COUNT( * ) * + 18 * + 32 col1
----
1398
-567

skipif mysql # not compatible
query II rowsort label-7779
SELECT ALL 12 + + + 14 * 99 AS col0, 81 - - - NULLIF ( 72, + 27 ) - + COUNT ( * ) * + 18 * + 32 col1
----
1398
-567

onlyif mysql # aggregate syntax: 
query II rowsort label-7780
SELECT + 81 * + 97 + + 54 AS col2, COUNT( * ) AS col1
----
7911
1

skipif mysql # not compatible
query II rowsort label-7780
SELECT + 81 * + 97 + + 54 AS col2, COUNT ( * ) AS col1
----
7911
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT ALL - CASE + COUNT( * ) WHEN - + COUNT( * ) + - 63 * + - SUM( + ( - - 27 ) ) + + 41 + - 18 + 77 * COUNT( * ) THEN - 32 * 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - CASE + COUNT ( * ) WHEN - + COUNT ( * ) + - 63 * + - SUM ( + ( - - 27 ) ) + + 41 + - 18 + 77 * COUNT ( * ) THEN - 32 * 74 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7782
SELECT DISTINCT - 38 AS col1, + 0 * - CAST( NULL AS SIGNED )
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-7782
SELECT DISTINCT - 38 AS col1, + 0 * - CAST ( NULL AS INTEGER )
----
-38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT SUM( DISTINCT - + 57 ) + + 36 + + COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7783
SELECT SUM ( DISTINCT - + 57 ) + + 36 + + COUNT ( * ) AS col1
----
-20

query I rowsort
SELECT ALL + 60 - + 48
----
12

query I rowsort
SELECT DISTINCT 41 * + - 45 AS col1
----
-1845

query I rowsort
SELECT ALL 58 - + 56 AS col2
----
2

query I rowsort
SELECT 89 * - 65 * - 63
----
364455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7788
SELECT ALL 70 DIV - COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL 70 / - COUNT ( * ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT - SUM( - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-7789
SELECT - SUM ( - 97 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7790
SELECT - 97 + CAST( NULL AS SIGNED ) * 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7790
SELECT - 97 + CAST ( NULL AS INTEGER ) * 87 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 71 * + + NULLIF ( - - 91, + 18 ) AS col2
----
6461

query I rowsort
SELECT + ( + 30 ) * 57 AS col1
----
1710

query I rowsort
SELECT ALL + 66 * - 79
----
-5214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7794
SELECT 73 + 46 - + 40 * + 0 * 6 * MAX( - 55 ) * - - 28 DIV COUNT( * ) + + 63 AS col2
----
182

skipif mysql # not compatible
query I rowsort label-7794
SELECT 73 + 46 - + 40 * + 0 * 6 * MAX ( - 55 ) * - - 28 / COUNT ( * ) + + 63 AS col2
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT DISTINCT - 38 * + - 79 + - 79 DIV - - 62 AS col2
----
3001

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT - 38 * + - 79 + - 79 / - - 62 AS col2
----
3001

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7797
SELECT - 86 * + COUNT( * ) * - CAST( NULL AS SIGNED ) + + 84 AS col0, 71 DIV + 63 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7797
SELECT - 86 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 84 AS col0, 71 / + 63 AS col0
----
NULL
1

query I rowsort
SELECT ALL 60 * - 2 AS col2
----
-120

query I rowsort
SELECT 12 * - 32
----
-384

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

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

query I rowsort
SELECT ( + - 32 ) - - 56 * + - 51
----
-2888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7802
SELECT DISTINCT + CAST( + + MIN( - 11 ) AS SIGNED ) AS col2, + 92 DIV + - 58
----
-11
-1

skipif mysql # not compatible
query II rowsort label-7802
SELECT DISTINCT + CAST ( + + MIN ( - 11 ) AS INTEGER ) AS col2, + 92 / + - 58
----
-11
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT + 52 + - COALESCE ( + 98, + - MIN( ALL - 8 ) * 47 * + 82 * + - 50 )
----
-46

skipif mysql # not compatible
query I rowsort label-7803
SELECT + 52 + - COALESCE ( + 98, + - MIN ( ALL - 8 ) * 47 * + 82 * + - 50 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT + COUNT( * ) + - 19 - + 24 - - 56
----
14

skipif mysql # not compatible
query I rowsort label-7804
SELECT + COUNT ( * ) + - 19 - + 24 - - 56
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT + COUNT( * ) + + 6 * NULLIF ( - 36, ( - + 69 ) )
----
-215

skipif mysql # not compatible
query I rowsort label-7805
SELECT + COUNT ( * ) + + 6 * NULLIF ( - 36, ( - + 69 ) )
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL + 64 + + - COALESCE ( - - NULLIF ( - COUNT( * ), 65 ), + 22 )
----
65

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL + 64 + + - COALESCE ( - - NULLIF ( - COUNT ( * ), 65 ), + 22 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7807
SELECT - 36 AS col2, ( + 65 ) * + 17 + - 42 * - - 68 * 55 * + CAST( NULL AS SIGNED ) / - 47 * - 28 / - 47 AS col0
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-7807
SELECT - 36 AS col2, ( + 65 ) * + 17 + - 42 * - - 68 * 55 * + CAST ( NULL AS INTEGER ) / - 47 * - 28 / - 47 AS col0
----
-36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL + 90 + + - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + 90 + + - COUNT ( * ) AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7809
SELECT - COUNT( DISTINCT 60 ) + - 56 DIV - 64 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7809
SELECT - COUNT ( DISTINCT 60 ) + - 56 / - 64 col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT DISTINCT - MAX( ALL + + 52 ) + 61 * + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT - MAX ( ALL + + 52 ) + 61 * + COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL - 17 * + COUNT( * ) * 56 * - 16 AS col1
----
15232

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL - 17 * + COUNT ( * ) * 56 * - 16 AS col1
----
15232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7813
SELECT 39 + - 99 + + - COALESCE ( + 87, CASE - 52 WHEN + COUNT( * ) THEN 54 - - 94 + - 67 * 64 DIV + AVG ( 60 ) * 19 + + 53 ELSE NULL END ) + 23 * + 2 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-7813
SELECT 39 + - 99 + + - COALESCE ( + 87, CASE - 52 WHEN + COUNT ( * ) THEN 54 - - 94 + - 67 * 64 / + AVG ( 60 ) * 19 + + 53 ELSE NULL END ) + 23 * + 2 AS col0
----
-101

query I rowsort
SELECT DISTINCT 49 + - 65 + + 14
----
-2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7816
SELECT + MAX( + + 16 ), + SUM( - 80 ) col1
----
16
-80

skipif mysql # not compatible
query II rowsort label-7816
SELECT + MAX ( + + 16 ), + SUM ( - 80 ) col1
----
16
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT 65 + + - COUNT( * ) + + + 76 * + + 4 + + 19 AS col0
----
387

skipif mysql # not compatible
query I rowsort label-7817
SELECT 65 + + - COUNT ( * ) + + + 76 * + + 4 + + 19 AS col0
----
387

query I rowsort
SELECT ALL - 91 - + 63 * + - 64
----
3941

query I rowsort
SELECT 45 * ( + 56 ) AS col2
----
2520

query I rowsort
SELECT 81 * - 55 * 23 AS col2
----
-102465

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT DISTINCT + 73 - - COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT + 73 - - COUNT ( * ) AS col2
----
74

query I rowsort
SELECT 70 * 74 AS col1
----
5180

onlyif mysql # aggregate syntax: 
query II rowsort label-7823
SELECT DISTINCT + 46 * - + 55 AS col2, + SUM( 59 ) * + SUM( DISTINCT + 59 ) * + 77 AS col2
----
-2530
268037

skipif mysql # not compatible
query II rowsort label-7823
SELECT DISTINCT + 46 * - + 55 AS col2, + SUM ( 59 ) * + SUM ( DISTINCT + 59 ) * + 77 AS col2
----
-2530
268037

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT DISTINCT + 73 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT + 73 / 75
----
0

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

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

query I rowsort
SELECT 54 - + 47 - + 32
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT 90 DIV + - ( + 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-7827
SELECT 90 / + - ( + 70 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7828
SELECT ALL - COALESCE ( + + CAST( NULL AS SIGNED ), - 73 - 17, - + 90 * + - 39 DIV + - 91 )
----
90

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL - COALESCE ( + + CAST ( NULL AS INTEGER ), - 73 - 17, - + 90 * + - 39 / + - 91 )
----
90

query I rowsort
SELECT DISTINCT - 1 * 82 AS col2
----
-82

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

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

query I rowsort
SELECT 5 + + 31
----
36

query I rowsort
SELECT 57 - COALESCE ( 6, + 51 * + 81 * - - 35 )
----
51

query I rowsort
SELECT 88 * - - 4 AS col1
----
352

query I rowsort
SELECT DISTINCT - 9 * + + 3
----
-27

query II rowsort
SELECT DISTINCT ( 18 ) col1, 97 AS col1
----
18
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7836
SELECT + 84 DIV - CAST( - - 71 AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7836
SELECT + 84 / - CAST ( - - 71 AS INTEGER ) AS col2
----
-1

query II rowsort
SELECT + CASE + 86 WHEN CASE + + 52 WHEN - 94 THEN NULL WHEN - 16 THEN - 31 END * + 29 THEN ( + - 17 ) WHEN AVG ( DISTINCT + - 9 ) * + + 40 * 38 THEN NULL END AS col0, 44 col2
----
NULL
44

query I rowsort
SELECT + - 16 - + 98
----
-114

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

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

query I rowsort
SELECT ALL 90 + - 89
----
1

query I rowsort
SELECT ALL + ( 3 ) + 31
----
34

query I rowsort
SELECT DISTINCT - 60 + + ( - 8 ) * - 83
----
604

query I rowsort
SELECT + 77 * + 36
----
2772

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

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL MAX ( - - 70 )
----
70

query I rowsort
SELECT ALL - 53 + + - 64 + + 25 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT - CASE + 55 WHEN COUNT( * ) - + 36 / - - 34 THEN - + AVG ( + 98 ) + + NULLIF ( + 46, - 99 ) WHEN + + COALESCE ( - 7, - COUNT( * ), COUNT( * ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT - CASE + 55 WHEN COUNT ( * ) - + 36 / - - 34 THEN - + AVG ( + 98 ) + + NULLIF ( + 46, - 99 ) WHEN + + COALESCE ( - 7, - COUNT ( * ), COUNT ( * ) ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT - COALESCE ( CAST( NULL AS SIGNED ), - 18 + COUNT( * ) * - 2 )
----
20

skipif mysql # not compatible
query I rowsort label-7847
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), - 18 + COUNT ( * ) * - 2 )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7848
SELECT + 49 + - ( - - MIN( DISTINCT - 66 ) ) + - 59 DIV + 78 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-7848
SELECT + 49 + - ( - - MIN ( DISTINCT - 66 ) ) + - 59 / + 78 AS col2
----
115

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7850
SELECT 66 AS col0, 57 * - - COUNT( * ) AS col1
----
66
57

skipif mysql # not compatible
query II rowsort label-7850
SELECT 66 AS col0, 57 * - - COUNT ( * ) AS col1
----
66
57

query I rowsort
SELECT ALL 37 - + 50
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7852
SELECT + COUNT( * ) - - NULLIF ( - 70, CAST( NULL AS SIGNED ) ) - + + NULLIF ( 27, 49 - 52 ) + - ( + AVG ( - CAST( - 99 AS SIGNED ) ) ) - - 0 + + - COUNT( * ) + - CASE 98 WHEN - MIN( ALL + + 14 ) * - + CAST( + 17 AS SIGNED ) THEN + 82 * + - 41 * + + 33 * COUNT( DISTINCT + 36 ) + 37 WHEN + 94 THEN + COUNT( * ) * + ( - - COALESCE ( 51, + - 48 ) ) + 44 * - + 44 + 50 END + + - 48 * 77 * - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7852
SELECT + COUNT ( * ) - - NULLIF ( - 70, CAST ( NULL AS INTEGER ) ) - + + NULLIF ( 27, 49 - 52 ) + - ( + AVG ( - CAST ( - 99 AS INTEGER ) ) ) - - 0 + + - COUNT ( * ) + - CASE 98 WHEN - MIN ( ALL + + 14 ) * - + CAST ( + 17 AS INTEGER ) THEN + 82 * + - 41 * + + 33 * COUNT ( DISTINCT + 36 ) + 37 WHEN + 94 THEN + COUNT ( * ) * + ( - - COALESCE ( 51, + - 48 ) ) + 44 * - + 44 + 50 END + + - 48 * 77 * - 42 AS col0
----
NULL

query I rowsort
SELECT + 19 - - + 65 col2
----
84

query I rowsort
SELECT ALL - 87 * + - 4 AS col0
----
348

query I rowsort
SELECT ALL + COALESCE ( + + 7, - - 29 ) col1
----
7

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7857
SELECT ( + CASE + - 45 WHEN - - CAST( NULL AS SIGNED ) THEN + ( AVG ( DISTINCT 74 ) ) ELSE + SUM( ALL - + 82 ) END )
----
-82

skipif mysql # not compatible
query I rowsort label-7857
SELECT ( + CASE + - 45 WHEN - - CAST ( NULL AS INTEGER ) THEN + ( AVG ( DISTINCT 74 ) ) ELSE + SUM ( ALL - + 82 ) END )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT - CASE + 98 WHEN - - 31 THEN - - MAX( DISTINCT - NULLIF ( + 64, - 20 ) ) + - + 36 - - SUM( DISTINCT 47 ) + 3 + ( + 55 ) END * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT - CASE + 98 WHEN - - 31 THEN - - MAX ( DISTINCT - NULLIF ( + 64, - 20 ) ) + - + 36 - - SUM ( DISTINCT 47 ) + 3 + ( + 55 ) END * + 45
----
NULL

query I rowsort
SELECT ALL 94 * + 55 AS col2
----
5170

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ( + + 84 ) * - 30 * + COUNT( * ) - 80 - 84 AS col1
----
-2684

skipif mysql # not compatible
query I rowsort label-7860
SELECT ( + + 84 ) * - 30 * + COUNT ( * ) - 80 - 84 AS col1
----
-2684

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT + COUNT( * ) + - 14 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7861
SELECT + COUNT ( * ) + - 14 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT + CASE - 33 WHEN + COUNT( * ) THEN NULL ELSE - - COUNT( * ) END * - + 23 * + 54 AS col1
----
-1242

skipif mysql # not compatible
query I rowsort label-7862
SELECT + CASE - 33 WHEN + COUNT ( * ) THEN NULL ELSE - - COUNT ( * ) END * - + 23 * + 54 AS col1
----
-1242

query I rowsort
SELECT - 17 + + 46 + - 34 AS col1
----
-5

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

skipif mysql # not compatible
query I rowsort label-7864
SELECT + 87 * - + CAST ( NULL AS INTEGER ) + + 57
----
NULL

query I rowsort
SELECT - + 44 * + 71 AS col1
----
-3124

query I rowsort
SELECT DISTINCT 54 * + 38 + + 17 * - - 20
----
2392

query I rowsort
SELECT - - 69 * + + 36
----
2484

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL + - 95 * - 52 - + COUNT( * ) * - 90 AS col1
----
5030

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL + - 95 * - 52 - + COUNT ( * ) * - 90 AS col1
----
5030

query I rowsort
SELECT CASE 20 WHEN + 27 + 64 THEN 17 END AS col1
----
NULL

query I rowsort
SELECT ALL + ( + ( + - 51 ) ) * + 99 + 69
----
-4980

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

skipif mysql # not compatible
query I rowsort label-7872
SELECT + COUNT ( * ) + + + 59 * + 63 AS col2
----
3718

query I rowsort
SELECT CASE - 47 WHEN 23 THEN - + ( 13 ) + - 7 * - 37 END
----
NULL

query I rowsort
SELECT - 91 * + 37 col2
----
-3367

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7875
SELECT DISTINCT + + COUNT( * ) * - 80 + 29 + - - 56 - - 85 DIV 1 + + - 96 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT + + COUNT ( * ) * - 80 + 29 + - - 56 - - 85 / 1 + + - 96 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL - + 64 * - COALESCE ( COUNT( * ), + 59 ) + + 96 AS col0
----
160

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL - + 64 * - COALESCE ( COUNT ( * ), + 59 ) + + 96 AS col0
----
160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT - - COUNT( ALL + 59 ) + - COUNT( - 36 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7878
SELECT - - COUNT ( ALL + 59 ) + - COUNT ( - 36 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL - COUNT( + 24 ) + - 56 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL - COUNT ( + 24 ) + - 56 AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7880
SELECT ALL CAST( NULL AS DECIMAL ) + 36 + - - AVG ( DISTINCT 86 ) + - - 99 - + COUNT( + 59 ) / + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL CAST ( NULL AS REAL ) + 36 + - - AVG ( DISTINCT 86 ) + - - 99 - + COUNT ( + 59 ) / + 1
----
NULL

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

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

query I rowsort
SELECT - 37 + 18
----
-19

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

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

query I rowsort
SELECT + NULLIF ( + ( 69 ), 58 ) * 78 AS col0
----
5382

query I rowsort
SELECT + CASE + - 20 WHEN - + 67 + + - 25 THEN NULL ELSE 98 END + - 95
----
3

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

query I rowsort
SELECT + 31 + + - 33
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT - COUNT( * ) * 1 * ( - 14 ) * - 93 col2
----
-1302

skipif mysql # not compatible
query I rowsort label-7888
SELECT - COUNT ( * ) * 1 * ( - 14 ) * - 93 col2
----
-1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7889
SELECT + CAST( NULL AS SIGNED ) * + 5, + MIN( - 0 ) DIV + SUM( DISTINCT 38 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7889
SELECT + CAST ( NULL AS INTEGER ) * + 5, + MIN ( - 0 ) / + SUM ( DISTINCT 38 ) AS col2
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7890
SELECT - NULLIF ( 25, + 50 ) + + 66 + + COUNT( * ) + + 75 DIV 57 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7890
SELECT - NULLIF ( 25, + 50 ) + + 66 + + COUNT ( * ) + + 75 / 57 AS col1
----
43

query I rowsort
SELECT + 95 + + 91 * ( + - 88 )
----
-7913

query I rowsort
SELECT DISTINCT + 73 * - 1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7893
SELECT + CAST( - AVG ( DISTINCT - - 5 ) AS SIGNED ) * - 32 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT + CAST ( - AVG ( DISTINCT - - 5 ) AS INTEGER ) * - 32 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT + 89 DIV - 66 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7894
SELECT + 89 / - 66 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7895
SELECT + 19 DIV - 65 + 26 col0
----
26

skipif mysql # not compatible
query I rowsort label-7895
SELECT + 19 / - 65 + 26 col0
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7896
SELECT + 35 * 92 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT + 35 * 92 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 41 + - 18
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7898
SELECT - 31 * - ( + 67 ) * - 56 + - 95 + - 32 DIV - 21
----
-116406

skipif mysql # not compatible
query I rowsort label-7898
SELECT - 31 * - ( + 67 ) * - 56 + - 95 + - 32 / - 21
----
-116406

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7901
SELECT ALL + 60, 61 + - MAX( + ( + 49 ) ) col2
----
60
12

skipif mysql # not compatible
query II rowsort label-7901
SELECT ALL + 60, 61 + - MAX ( + ( + 49 ) ) col2
----
60
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7902
SELECT 56 DIV - 43 + + 77 + + COALESCE ( 72, + COUNT( * ) * 33 * 58 + + NULLIF ( - + ( 73 ), - 27 ) * + + COUNT( * ) ) * ( + 94 ) AS col1
----
6844

skipif mysql # not compatible
query I rowsort label-7902
SELECT 56 / - 43 + + 77 + + COALESCE ( 72, + COUNT ( * ) * 33 * 58 + + NULLIF ( - + ( 73 ), - 27 ) * + + COUNT ( * ) ) * ( + 94 ) AS col1
----
6844

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

query I rowsort
SELECT ALL - ( - + 53 ) + 89
----
142

query II rowsort
SELECT + - 18 AS col0, + 65 col0
----
-18
65

query II rowsort
SELECT ALL - - 22, 11 AS col2
----
22
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT 20 - + 83 + + 47 * - 71 * - CASE 39 WHEN COUNT( * ) THEN - 61 END * - 46 + 86 + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT 20 - + 83 + + 47 * - 71 * - CASE 39 WHEN COUNT ( * ) THEN - 61 END * - 46 + 86 + 0
----
NULL

query II rowsort
SELECT + + 64 AS col0, + 20 + - 58 AS col2
----
64
-38

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

skipif mysql # not compatible
query I rowsort label-7909
SELECT + MIN ( + ( + - 77 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT - + 49 * - + 4 * COUNT( DISTINCT 64 ) - 34 + + 97
----
259

skipif mysql # not compatible
query I rowsort label-7910
SELECT - + 49 * - + 4 * COUNT ( DISTINCT 64 ) - 34 + + 97
----
259

query I rowsort
SELECT DISTINCT - 27 + - - ( + 24 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT + 88 + CASE + 66 WHEN - COUNT( * ) THEN - 96 WHEN - COUNT( * ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT + 88 + CASE + 66 WHEN - COUNT ( * ) THEN - 96 WHEN - COUNT ( * ) THEN NULL END col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7915
SELECT ALL - 11 - + + ( + ( - 95 ) ) * + 28 * + AVG ( - + CAST( NULL AS SIGNED ) ) AS col1, - 24
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-7915
SELECT ALL - 11 - + + ( + ( - 95 ) ) * + 28 * + AVG ( - + CAST ( NULL AS INTEGER ) ) AS col1, - 24
----
NULL
-24

query I rowsort
SELECT ALL + + 88 * + + 20
----
1760

onlyif mysql # aggregate syntax: 
query II rowsort label-7917
SELECT - + 12 AS col2, + CASE - COALESCE ( - 28, - 80 + - + 69, 50 ) WHEN - 51 * - ( - 93 ) + ( + 49 ) - 63 THEN NULL WHEN 50 * + 59 * - 55 / 68 + - 45 THEN + 51 + + - COUNT( * ) - 90 * 94 / - + CASE + + 70 WHEN - 31 THEN + 92 * + 35 WHEN - 4 THEN - COALESCE ( - 74, - 77 * 73 - 16, - 14 * + 33 * + 30 * - ( 72 ) * 33 + - + COUNT( * ) + + - ( - 13 ) ) END END * - 69 + + - 56 + - 35
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-7917
SELECT - + 12 AS col2, + CASE - COALESCE ( - 28, - 80 + - + 69, 50 ) WHEN - 51 * - ( - 93 ) + ( + 49 ) - 63 THEN NULL WHEN 50 * + 59 * - 55 / 68 + - 45 THEN + 51 + + - COUNT ( * ) - 90 * 94 / - + CASE + + 70 WHEN - 31 THEN + 92 * + 35 WHEN - 4 THEN - COALESCE ( - 74, - 77 * 73 - 16, - 14 * + 33 * + 30 * - ( 72 ) * 33 + - + COUNT ( * ) + + - ( - 13 ) ) END END * - 69 + + - 56 + - 35
----
-12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT - + MAX( ( - + 84 ) )
----
84

skipif mysql # not compatible
query I rowsort label-7918
SELECT - + MAX ( ( - + 84 ) )
----
84

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

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

query I rowsort
SELECT 58 * - - 59 * + 31
----
106082

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT MIN( - 80 ) * - - 37
----
-2960

skipif mysql # not compatible
query I rowsort label-7921
SELECT MIN ( - 80 ) * - - 37
----
-2960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7922
SELECT 54 + + ( COUNT( * ) ) + CAST( NULL AS SIGNED ) * - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT 54 + + ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * - - 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7923
SELECT 64 + COUNT( + CAST( 23 AS SIGNED ) )
----
65

skipif mysql # not compatible
query I rowsort label-7923
SELECT 64 + COUNT ( + CAST ( 23 AS INTEGER ) )
----
65

query II rowsort
SELECT 9 * 82 col2, 86
----
738
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7925
SELECT 89 + - - COUNT( * ), - 39 AS col1
----
90
-39

skipif mysql # not compatible
query II rowsort label-7925
SELECT 89 + - - COUNT ( * ), - 39 AS col1
----
90
-39

query I rowsort
SELECT ALL - NULLIF ( - 60, 43 + + 20 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7927
SELECT DISTINCT - ( + + 41 ) AS col0, MIN( DISTINCT 71 ) * - 85
----
-41
-6035

skipif mysql # not compatible
query II rowsort label-7927
SELECT DISTINCT - ( + + 41 ) AS col0, MIN ( DISTINCT 71 ) * - 85
----
-41
-6035

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT DISTINCT - 25 + + - COALESCE ( COUNT( * ), + 42 ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT - 25 + + - COALESCE ( COUNT ( * ), + 42 ) col2
----
-26

query I rowsort
SELECT ALL 67 + 85
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7930
SELECT DISTINCT + COUNT( * ) DIV + + 67 * - 66
----
0

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT + COUNT ( * ) / + + 67 * - 66
----
0

query I rowsort
SELECT ALL 11 + - - 81 AS col2
----
92

query I rowsort
SELECT ALL + 97 + 39 col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT COUNT( ALL 3 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7933
SELECT COUNT ( ALL 3 ) col1
----
1

query I rowsort
SELECT 25 + - 56
----
-31

query II rowsort
SELECT ALL - - ( + + 6 ) AS col2, + 17 AS col0
----
6
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL - MIN( + 2 ) - - 91 col1
----
89

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - MIN ( + 2 ) - - 91 col1
----
89

query I rowsort
SELECT 81 * + 43 * + 82 * + 93
----
26561358

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT + COUNT( * ) + + 80, CASE - CASE - 30 WHEN - 84 + + COUNT( * ) + + COUNT( * ) THEN NULL WHEN 20 * + + 98 + 57 * + + COUNT( * ) THEN 1 * - COUNT( - - 88 ) ELSE NULL END WHEN - 86 THEN + + 22 - - 99 * + 79 ELSE + 25 * - - 57 + + MIN( + 27 ) END - - SUM( ALL NULLIF ( + 31, - 74 ) ) AS col2
----
81
1483

skipif mysql # not compatible
query II rowsort label-7938
SELECT + COUNT ( * ) + + 80, CASE - CASE - 30 WHEN - 84 + + COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN 20 * + + 98 + 57 * + + COUNT ( * ) THEN 1 * - COUNT ( - - 88 ) ELSE NULL END WHEN - 86 THEN + + 22 - - 99 * + 79 ELSE + 25 * - - 57 + + MIN ( + 27 ) END - - SUM ( ALL NULLIF ( + 31, - 74 ) ) AS col2
----
81
1483

query I rowsort
SELECT DISTINCT + 54 - 50
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT - 36 * SUM( 51 ) + 33 col1
----
-1803

skipif mysql # not compatible
query I rowsort label-7940
SELECT - 36 * SUM ( 51 ) + 33 col1
----
-1803

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ( 49 ) * + 73 * + + COUNT( * ) + - 99 AS col0
----
3478

skipif mysql # not compatible
query I rowsort label-7941
SELECT ( 49 ) * + 73 * + + COUNT ( * ) + - 99 AS col0
----
3478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7942
SELECT MAX( + ( 68 ) ) * - 92 * NULLIF ( + CAST( NULLIF ( - + 90, - - 4 ) AS SIGNED ), + 86 ), 56 + + 35 AS col0
----
563040
91

skipif mysql # not compatible
query II rowsort label-7942
SELECT MAX ( + ( 68 ) ) * - 92 * NULLIF ( + CAST ( NULLIF ( - + 90, - - 4 ) AS INTEGER ), + 86 ), 56 + + 35 AS col0
----
563040
91

query I rowsort
SELECT ( ( + + 66 ) ) * 27 col1
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT ( 12 ) + - + COUNT( DISTINCT 96 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7944
SELECT ( 12 ) + - + COUNT ( DISTINCT 96 ) AS col2
----
11

query II rowsort
SELECT DISTINCT 76 AS col0, 71
----
76
71

query II rowsort
SELECT ALL 28 col2, 52 * - 57
----
28
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT COUNT( - 10 ) + - + 35
----
-34

skipif mysql # not compatible
query I rowsort label-7947
SELECT COUNT ( - 10 ) + - + 35
----
-34

query I rowsort
SELECT ALL - 28 * 52
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL MAX( DISTINCT + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL MAX ( DISTINCT + 61 ) AS col2
----
61

query I rowsort
SELECT 74 + - 42
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT SUM( - NULLIF ( - 24, - 13 * - 29 + + NULLIF ( + - 79, 68 + - 15 + + - 79 / - - 95 ) ) ) * COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7951
SELECT SUM ( - NULLIF ( - 24, - 13 * - 29 + + NULLIF ( + - 79, 68 + - 15 + + - 79 / - - 95 ) ) ) * COUNT ( * ) AS col0
----
24

query I rowsort
SELECT ALL - 28 * - + CASE - 30 WHEN + 98 THEN - ( 40 ) END col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT - 56 + 57 - + COUNT( DISTINCT - 89 ) + COUNT( * ) + - 62 * + NULLIF ( + - 37, + 62 - + 28 ) AS col0
----
2295

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT - 56 + 57 - + COUNT ( DISTINCT - 89 ) + COUNT ( * ) + - 62 * + NULLIF ( + - 37, + 62 - + 28 ) AS col0
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT 80 + + COUNT( * ) + 40 * + 56
----
2321

skipif mysql # not compatible
query I rowsort label-7955
SELECT 80 + + COUNT ( * ) + 40 * + 56
----
2321

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT 89 + - NULLIF ( 5, + COUNT( + + 51 ) )
----
84

skipif mysql # not compatible
query I rowsort label-7956
SELECT 89 + - NULLIF ( 5, + COUNT ( + + 51 ) )
----
84

query II rowsort
SELECT 25 AS col0, - CASE + + 96 WHEN - 84 THEN NULL WHEN - + 87 + 36 + - 44 THEN 16 END
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT DISTINCT MIN( - - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT MIN ( - - 54 )
----
54

query II rowsort
SELECT ALL - 38 + + 56 - 39 AS col0, 54
----
-21
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7960
SELECT + NULLIF ( 78, - 10 ) AS col2, + 40 * + COUNT( * ) col2
----
78
40

skipif mysql # not compatible
query II rowsort label-7960
SELECT + NULLIF ( 78, - 10 ) AS col2, + 40 * + COUNT ( * ) col2
----
78
40

query I rowsort
SELECT - - 32 + + 10 + 90 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT - + 98 * COUNT( * ) + + - ( - 87 ) + 85
----
74

skipif mysql # not compatible
query I rowsort label-7962
SELECT - + 98 * COUNT ( * ) + + - ( - 87 ) + 85
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT - 14 DIV - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7963
SELECT - 14 / - 59 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT ALL - + CASE - 69 WHEN + 53 THEN NULL ELSE + 33 END * 71 * - - 66 + + 4 * - 79 + 76 DIV + - 72 AS col0
----
-154955

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL - + CASE - 69 WHEN + 53 THEN NULL ELSE + 33 END * 71 * - - 66 + + 4 * - 79 + 76 / + - 72 AS col0
----
-154955

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT NULLIF ( - 69, + + 16 + COUNT( * ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-7966
SELECT NULLIF ( - 69, + + 16 + COUNT ( * ) ) AS col1
----
-69

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

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

query I rowsort
SELECT ALL + - 79 * + 48 AS col2
----
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL - + 17 * ( 66 ) * + + MIN( DISTINCT 86 ) AS col1
----
-96492

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL - + 17 * ( 66 ) * + + MIN ( DISTINCT 86 ) AS col1
----
-96492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7970
SELECT + + 5 * 2 * COUNT( * ) * CAST( NULL AS SIGNED ) - + COUNT( * ) * + 95 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7970
SELECT + + 5 * 2 * COUNT ( * ) * CAST ( NULL AS INTEGER ) - + COUNT ( * ) * + 95 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT - - COUNT( DISTINCT 27 ) * - MIN( ALL ( - 91 ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7971
SELECT - - COUNT ( DISTINCT 27 ) * - MIN ( ALL ( - 91 ) ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7972
SELECT - - NULLIF ( + CAST( NULL AS SIGNED ), + - 92 ) + COUNT( * ) AS col0, + 56 * 49 DIV - - 64
----
NULL
42

skipif mysql # not compatible
query II rowsort label-7972
SELECT - - NULLIF ( + CAST ( NULL AS INTEGER ), + - 92 ) + COUNT ( * ) AS col0, + 56 * 49 / - - 64
----
NULL
42

query I rowsort
SELECT - 87 * - 83 + - 36 + 4
----
7189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7974
SELECT + 44 - 85 - + COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT + 44 - 85 - + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7975
SELECT SUM( DISTINCT - + 1 ), 13 * - 4 * + 52 AS col0
----
-1
-2704

skipif mysql # not compatible
query II rowsort label-7975
SELECT SUM ( DISTINCT - + 1 ), 13 * - 4 * + 52 AS col0
----
-1
-2704

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT ALL 66 * 2 * - COUNT( * ) * 98 AS col1
----
-12936

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL 66 * 2 * - COUNT ( * ) * 98 AS col1
----
-12936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7977
SELECT - CASE SUM( DISTINCT - ( + + 79 ) ) WHEN 4 + - CAST( - 26 AS SIGNED ) + 25 + + 91 + 12 + + - 51 * - + 83 + + CASE - 67 WHEN MIN( + - 16 ) THEN 99 ELSE NULL END + - 37 THEN NULL WHEN 89 THEN SUM( + - 96 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT - CASE SUM ( DISTINCT - ( + + 79 ) ) WHEN 4 + - CAST ( - 26 AS INTEGER ) + 25 + + 91 + 12 + + - 51 * - + 83 + + CASE - 67 WHEN MIN ( + - 16 ) THEN 99 ELSE NULL END + - 37 THEN NULL WHEN 89 THEN SUM ( + - 96 ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + 36 * 23
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT + COUNT( * ) * - 9 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7980
SELECT + COUNT ( * ) * - 9 AS col0
----
-9

query I rowsort
SELECT - COALESCE ( + 12, 85, + 31 ) AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT DISTINCT + 97 DIV + ( - 47 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT + 97 / + ( - 47 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7983
SELECT DISTINCT 30 + + 35, + MAX( + - 17 ) AS col1
----
65
-17

skipif mysql # not compatible
query II rowsort label-7983
SELECT DISTINCT 30 + + 35, + MAX ( + - 17 ) AS col1
----
65
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ALL + MIN( + 29 ) * - 16 + + 2 AS col2
----
-462

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL + MIN ( + 29 ) * - 16 + + 2 AS col2
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT + ( + SUM( 50 ) ) + + 11 + - ( + 86 )
----
-25

skipif mysql # not compatible
query I rowsort label-7985
SELECT + ( + SUM ( 50 ) ) + + 11 + - ( + 86 )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7986
SELECT - 29 DIV + MIN( - 61 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7986
SELECT - 29 / + MIN ( - 61 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7987
SELECT + 72 * - COUNT( * ), - 16 + + SUM( + - CAST( - - 69 AS SIGNED ) ) AS col0
----
-72
-85

skipif mysql # not compatible
query II rowsort label-7987
SELECT + 72 * - COUNT ( * ), - 16 + + SUM ( + - CAST ( - - 69 AS INTEGER ) ) AS col0
----
-72
-85

query I rowsort
SELECT + - 92 + - - 18
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7989
SELECT ALL - 81 - + 72 - ( 17 ) * - 84 * COUNT( * ) - + - 0 DIV - 1 * 70 + - ( - ( 25 ) ) + + 40 + + + 49
----
1389

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL - 81 - + 72 - ( 17 ) * - 84 * COUNT ( * ) - + - 0 / - 1 * 70 + - ( - ( 25 ) ) + + 40 + + + 49
----
1389

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT + SUM( - 56 ) + + - ( 16 ) * + + 92 col1
----
-1528

skipif mysql # not compatible
query I rowsort label-7990
SELECT + SUM ( - 56 ) + + - ( 16 ) * + + 92 col1
----
-1528

query I rowsort
SELECT DISTINCT 73 * + 73 * - + 19
----
-101251

onlyif mysql # aggregate syntax: 
query II rowsort label-7992
SELECT DISTINCT + + SUM( + - 88 ), + 39 AS col0
----
-88
39

skipif mysql # not compatible
query II rowsort label-7992
SELECT DISTINCT + + SUM ( + - 88 ), + 39 AS col0
----
-88
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7993
SELECT - + 9 * 27, 56 + + 11 + NULLIF ( + COUNT( * ), - 45 ) - + - 14 * - + SUM( DISTINCT + 59 ) * 97 AS col1
----
-243
-80054

skipif mysql # not compatible
query II rowsort label-7993
SELECT - + 9 * 27, 56 + + 11 + NULLIF ( + COUNT ( * ), - 45 ) - + - 14 * - + SUM ( DISTINCT + 59 ) * 97 AS col1
----
-243
-80054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7994
SELECT DISTINCT - 14 DIV + 2 - + + NULLIF ( - + 35, - 23 ) * 5 * SUM( + 6 )
----
1043

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT - 14 / + 2 - + + NULLIF ( - + 35, - 23 ) * 5 * SUM ( + 6 )
----
1043

query I rowsort
SELECT - CASE + - 17 WHEN + - 71 * + - 72 THEN ( + 4 ) END / + 89 * 67 * + + 69 / 20 + - 20 - - 32
----
NULL

query I rowsort
SELECT - 88 * + 33 * - 19
----
55176

query I rowsort
SELECT DISTINCT + - 22 * - - 12 AS col0
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7998
SELECT ALL - 63 * - 67 + - + 92 + + 77 DIV COALESCE ( - 96, - 50 * + CASE + - 53 WHEN - 4 THEN - NULLIF ( 30, 56 ) WHEN + 54 + + + 61 * - + AVG ( DISTINCT - - 26 ) * + 8 THEN 75 END + + 18 * 79 + 60, - CASE 16 WHEN + 53 THEN - COUNT( * ) WHEN - - 18 * 83 + - - COUNT( * ) THEN + COUNT( * ) + + 10 ELSE NULL END - - - 25 DIV - - 87 * 42 + - - 34 ) + 53
----
4182

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL - 63 * - 67 + - + 92 + + 77 / COALESCE ( - 96, - 50 * + CASE + - 53 WHEN - 4 THEN - NULLIF ( 30, 56 ) WHEN + 54 + + + 61 * - + AVG ( DISTINCT - - 26 ) * + 8 THEN 75 END + + 18 * 79 + 60, - CASE 16 WHEN + 53 THEN - COUNT ( * ) WHEN - - 18 * 83 + - - COUNT ( * ) THEN + COUNT ( * ) + + 10 ELSE NULL END - - - 25 / - - 87 * 42 + - - 34 ) + 53
----
4182

onlyif mysql # aggregate syntax: 
query II rowsort label-7999
SELECT ALL 10 * + - 50 * + 85 + - - ( + MAX( DISTINCT - 32 ) ) + - 95 + 27 * + 57 + 1 * - 87, - 50 AS col1
----
-41175
-50

skipif mysql # not compatible
query II rowsort label-7999
SELECT ALL 10 * + - 50 * + 85 + - - ( + MAX ( DISTINCT - 32 ) ) + - 95 + 27 * + 57 + 1 * - 87, - 50 AS col1
----
-41175
-50

query I rowsort
SELECT DISTINCT + 28 * 48
----
1344

query I rowsort
SELECT - 60 + - 76
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT + CAST( NULL AS SIGNED ) + + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT + CAST ( NULL AS INTEGER ) + + - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT 83 * ( - COUNT( * ) ) + + 80
----
-3

skipif mysql # not compatible
query I rowsort label-8003
SELECT 83 * ( - COUNT ( * ) ) + + 80
----
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8005
SELECT ALL 53 * + 59 / + 70 * + 89 * CAST( + + CASE - 42 WHEN - - ( + MIN( + + 44 ) ) THEN NULL WHEN - + ( - COUNT( * ) ) THEN 29 WHEN - 97 * 78 THEN NULL ELSE NULL END AS DECIMAL ) + NULLIF ( + 12, - + 63 / - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL 53 * + 59 / + 70 * + 89 * CAST ( + + CASE - 42 WHEN - - ( + MIN ( + + 44 ) ) THEN NULL WHEN - + ( - COUNT ( * ) ) THEN 29 WHEN - 97 * 78 THEN NULL ELSE NULL END AS REAL ) + NULLIF ( + 12, - + 63 / - 14 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT 1 * + 62 * + - CAST( NULL AS SIGNED ) + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT 1 * + 62 * + - CAST ( NULL AS INTEGER ) + 57
----
NULL

query I rowsort
SELECT - COALESCE ( - 30, + - 59 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8008
SELECT COUNT( DISTINCT - 57 ) + - 54 AS col0, + 63 + - - 42 AS col0
----
-53
105

skipif mysql # not compatible
query II rowsort label-8008
SELECT COUNT ( DISTINCT - 57 ) + - 54 AS col0, + 63 + - - 42 AS col0
----
-53
105

query I rowsort
SELECT DISTINCT 23 + - 92
----
-69

query II rowsort
SELECT 74 AS col1, ( 34 )
----
74
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT COALESCE ( - - SUM( DISTINCT - - 98 ), CASE + 32 WHEN + - 45 THEN - - 60 + - COUNT( DISTINCT - - ( + 8 ) ) + - 44 END ) + + ( + 57 ) AS col0
----
155

skipif mysql # not compatible
query I rowsort label-8011
SELECT COALESCE ( - - SUM ( DISTINCT - - 98 ), CASE + 32 WHEN + - 45 THEN - - 60 + - COUNT ( DISTINCT - - ( + 8 ) ) + - 44 END ) + + ( + 57 ) AS col0
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-8012
SELECT NULLIF ( 67, 24 ) DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8012
SELECT NULLIF ( 67, 24 ) / - 92 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8013
SELECT ALL CAST( - 26 AS SIGNED ) DIV COALESCE ( 7, CAST( NULL AS SIGNED ) )
----
-3

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL CAST ( - 26 AS INTEGER ) / COALESCE ( 7, CAST ( NULL AS INTEGER ) )
----
-3

query I rowsort
SELECT DISTINCT + 31 * 45
----
1395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8015
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 75 col2
----
NULL

query I rowsort
SELECT 59 + 33 AS col1
----
92

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

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT 62 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 74 * 35
----
2590

query I rowsort
SELECT 78 * + 25 AS col1
----
1950

query I rowsort
SELECT DISTINCT 26 + ( - 98 )
----
-72

query I rowsort
SELECT 64 * - 89
----
-5696

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT ALL 61 + - ( ( - MAX( 94 ) ) )
----
155

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL 61 + - ( ( - MAX ( 94 ) ) )
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8023
SELECT DISTINCT - MAX( + 19 ) + 80 DIV + 35
----
-17

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT - MAX ( + 19 ) + 80 / + 35
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT ( CAST( 16 AS SIGNED ) ) - - 99 col1
----
115

skipif mysql # not compatible
query I rowsort label-8024
SELECT ( CAST ( 16 AS INTEGER ) ) - - 99 col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT DISTINCT - 69 + - 34 * COUNT( 51 ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT - 69 + - 34 * COUNT ( 51 ) AS col1
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT + 97 * COUNT( 49 / 33 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT + 97 * COUNT ( 49 / 33 ) AS col1
----
97

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

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT + 24 / COUNT ( * ) AS col2
----
24

query I rowsort
SELECT DISTINCT - 70 + - 87
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL + CASE - NULLIF ( + 63, - 45 ) WHEN + SUM( 38 ) * 11 + + COUNT( * ) THEN NULL ELSE NULLIF ( 31, 75 ) END * - 30
----
-930

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL + CASE - NULLIF ( + 63, - 45 ) WHEN + SUM ( 38 ) * 11 + + COUNT ( * ) THEN NULL ELSE NULLIF ( 31, 75 ) END * - 30
----
-930

query I rowsort
SELECT ALL - 52 + + 81 * 72 AS col1
----
5780

query I rowsort
SELECT 82 + 8
----
90

query I rowsort
SELECT 18 * 16 AS col2
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-8033
SELECT 24 DIV - 7 col1
----
-3

skipif mysql # not compatible
query I rowsort label-8033
SELECT 24 / - 7 col1
----
-3

query I rowsort
SELECT ALL + 7 - + 86 col1
----
-79

query I rowsort
SELECT 5 - - 8 AS col1
----
13

query I rowsort
SELECT 8 * 39 AS col2
----
312

query I rowsort
SELECT 17 * + COALESCE ( + 97, + 88 )
----
1649

query I rowsort
SELECT ALL - NULLIF ( 18, 56 )
----
-18

query I rowsort
SELECT COALESCE ( + 26, + 30 * 37, - 14 )
----
26

query I rowsort
SELECT 25 * - 93 AS col0
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT 12 + - ( + COUNT( * ) ) * - MAX( DISTINCT 20 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8041
SELECT 12 + - ( + COUNT ( * ) ) * - MAX ( DISTINCT 20 ) AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT 55 - - COALESCE ( 94 + + AVG ( CASE - 42 WHEN 89 THEN 3 END + 47 * 43 ) DIV 99, + 95 )
----
150

skipif mysql # not compatible
query I rowsort label-8042
SELECT 55 - - COALESCE ( 94 + + AVG ( CASE - 42 WHEN 89 THEN 3 END + 47 * 43 ) / 99, + 95 )
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT ALL + CAST( - 37 AS SIGNED ) * - 22 AS col2
----
814

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL + CAST ( - 37 AS INTEGER ) * - 22 AS col2
----
814

query I rowsort
SELECT - NULLIF ( 36, + 38 + + 52 * - 96 ) + + 84
----
48

query I rowsort
SELECT 4 + COALESCE ( ( 76 ) + 4, + 96 * 11, 86 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT - CASE + COUNT( * ) WHEN 79 * 64 + + 75 THEN 48 ELSE 60 END
----
-60

skipif mysql # not compatible
query I rowsort label-8046
SELECT - CASE + COUNT ( * ) WHEN 79 * 64 + + 75 THEN 48 ELSE 60 END
----
-60

query I rowsort
SELECT ALL + 38 * + 28 AS col1
----
1064

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

skipif mysql # not compatible
query I rowsort label-8048
SELECT + CAST ( NULL AS INTEGER ) * 88 AS col2
----
NULL

query I rowsort
SELECT 81 + 21 * 7 AS col0
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT ALL + - COALESCE ( 81, 4 DIV - 9, 5 ) * 64 AS col0
----
-5184

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + - COALESCE ( 81, 4 / - 9, 5 ) * 64 AS col0
----
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT DISTINCT MAX( DISTINCT 9 ) + - 69 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT MAX ( DISTINCT 9 ) + - 69 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT - 6 DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-8052
SELECT - 6 / + 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT DISTINCT 72 * + CASE ( 67 ) * + 47 WHEN + 56 * + ( + COALESCE ( - ( 63 ), - COUNT( + 74 ) * - COALESCE ( + COUNT( * ), 7 ) ) ) THEN NULL WHEN COUNT( * ) THEN MAX( ALL 55 ) * 58 + 20 END + 37 / 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT 72 * + CASE ( 67 ) * + 47 WHEN + 56 * + ( + COALESCE ( - ( 63 ), - COUNT ( + 74 ) * - COALESCE ( + COUNT ( * ), 7 ) ) ) THEN NULL WHEN COUNT ( * ) THEN MAX ( ALL 55 ) * 58 + 20 END + 37 / 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT DISTINCT - COALESCE ( 35, - COUNT( * ), 7, 25 * COUNT( * ) + - COUNT( * ) )
----
-35

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT - COALESCE ( 35, - COUNT ( * ), 7, 25 * COUNT ( * ) + - COUNT ( * ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT - 39 * - MIN( ALL - 31 ) + 89 AS col0
----
-1120

skipif mysql # not compatible
query I rowsort label-8055
SELECT - 39 * - MIN ( ALL - 31 ) + 89 AS col0
----
-1120

query I rowsort
SELECT 22 * 71 + 15 * ( + 25 ) AS col0
----
1937

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT ALL - 11 DIV 6
----
-1

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL - 11 / 6
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8058
SELECT + + 47 DIV COUNT( * ) + - 41 * + NULLIF ( - 65, - 28 DIV COUNT( * ) ) AS col2
----
2712

skipif mysql # not compatible
query I rowsort label-8058
SELECT + + 47 / COUNT ( * ) + - 41 * + NULLIF ( - 65, - 28 / COUNT ( * ) ) AS col2
----
2712

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT + - 90 * COUNT( * ) + 78
----
-12

skipif mysql # not compatible
query I rowsort label-8059
SELECT + - 90 * COUNT ( * ) + 78
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8060
SELECT 19 DIV - - 86 + 1 * 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8060
SELECT 19 / - - 86 + 1 * 54 AS col0
----
54

query I rowsort
SELECT ALL 70 * 89 + 26 * - 9 col2
----
5996

query I rowsort
SELECT 73 * + 93 AS col0
----
6789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8063
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * + 37 + 6 * - CASE + 58 + + 23 * AVG ( DISTINCT + 98 * 53 ) WHEN + 91 THEN + COUNT( * ) WHEN 88 / - 70 THEN NULL ELSE 87 END
----
-559

skipif mysql # not compatible
query I rowsort label-8063
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * + 37 + 6 * - CASE + 58 + + 23 * AVG ( DISTINCT + 98 * 53 ) WHEN + 91 THEN + COUNT ( * ) WHEN 88 / - 70 THEN NULL ELSE 87 END
----
-559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT ALL + 10 * - 3 * CAST( - 8 AS SIGNED )
----
240

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL + 10 * - 3 * CAST ( - 8 AS INTEGER )
----
240

query I rowsort
SELECT DISTINCT 38 * 25 + - 33 AS col0
----
917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8066
SELECT + COALESCE ( + COUNT( * ), COUNT( * ) DIV + 37 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8066
SELECT + COALESCE ( + COUNT ( * ), COUNT ( * ) / + 37 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT + 94 * 95 - + COUNT( * ) * + COUNT( * ) AS col0
----
8929

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT + 94 * 95 - + COUNT ( * ) * + COUNT ( * ) AS col0
----
8929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT + CAST( 28 AS SIGNED ) + 51
----
79

skipif mysql # not compatible
query I rowsort label-8068
SELECT + CAST ( 28 AS INTEGER ) + 51
----
79

query I rowsort
SELECT + COALESCE ( CASE - NULLIF ( 50, 24 ) WHEN 65 + 14 * ( - 95 ) THEN - 20 + + 55 END, + ( - 87 ), 30 ) AS col1
----
-87

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

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

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

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

query I rowsort
SELECT - 76 * 46
----
-3496

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

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

query I rowsort
SELECT - 93 + - + 83 + - 40 * + 55
----
-2376

onlyif mysql # DIV for integer division: 
query I rowsort label-8075
SELECT ALL 99 DIV - 15 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL 99 / - 15 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT ALL SUM( ALL + + 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL SUM ( ALL + + 78 ) AS col1
----
78

query I rowsort
SELECT - 70 + - 11 AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT ALL CASE 49 WHEN CAST( NULL AS SIGNED ) THEN 30 * 55 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL CASE 49 WHEN CAST ( NULL AS INTEGER ) THEN 30 * 55 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT - CAST( 83 AS SIGNED ) * + 9
----
-747

skipif mysql # not compatible
query I rowsort label-8079
SELECT - CAST ( 83 AS INTEGER ) * + 9
----
-747

query I rowsort
SELECT ALL COALESCE ( 76, - 39 * + 16 ) AS col2
----
76

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8082
SELECT - - SUM( - ( + 53 ) ) DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-8082
SELECT - - SUM ( - ( + 53 ) ) / 89
----
0

query I rowsort
SELECT - + 3 * - 12
----
36

query I rowsort
SELECT + + 97 + - 60 * - 31
----
1957

query I rowsort
SELECT DISTINCT - + 16 + + 69 + 43
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT ALL 11 + + - COUNT( * ) + - 19
----
-9

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL 11 + + - COUNT ( * ) + - 19
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT - MAX( ALL + + 51 ) * + 53 col0
----
-2703

skipif mysql # not compatible
query I rowsort label-8087
SELECT - MAX ( ALL + + 51 ) * + 53 col0
----
-2703

query I rowsort
SELECT ALL - 26 + 39
----
13

query I rowsort
SELECT - - NULLIF ( + 10, 15 ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8090
SELECT + AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT + AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - - 76 * + 79
----
6004

query I rowsort
SELECT + - 71 * - + 89
----
6319

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT + - CASE + - COUNT( * ) WHEN + ( 32 ) THEN 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT + - CASE + - COUNT ( * ) WHEN + ( 32 ) THEN 15 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT DISTINCT + 32 * 85 DIV 27
----
100

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT + 32 * 85 / 27
----
100

query I rowsort
SELECT ALL - 24 * - 35
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT 66 * - COUNT( * ) * COUNT( * ) * SUM( ALL - 12 ) - 27
----
765

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT 66 * - COUNT ( * ) * COUNT ( * ) * SUM ( ALL - 12 ) - 27
----
765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8097
SELECT ALL COUNT( * ) * 10 - 22 DIV ( COUNT( * ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL COUNT ( * ) * 10 - 22 / ( COUNT ( * ) ) AS col1
----
-12

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8099
SELECT + NULLIF ( + CASE 81 WHEN + COUNT( 76 ) THEN - 94 * 91 ELSE NULL END, - CAST( - COUNT( + 11 ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8099
SELECT + NULLIF ( + CASE 81 WHEN + COUNT ( 76 ) THEN - 94 * 91 ELSE NULL END, - CAST ( - COUNT ( + 11 ) AS INTEGER ) ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL 54 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 60 * 86 AS col2
----
5160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8102
SELECT - CAST( NULL AS DECIMAL ) + + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT - CAST ( NULL AS REAL ) + + 72 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT - 9 * - 70 * 8 + - COUNT( * ) * + 40 AS col0
----
5000

skipif mysql # not compatible
query I rowsort label-8105
SELECT - 9 * - 70 * 8 + - COUNT ( * ) * + 40 AS col0
----
5000

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT + 12 DIV + + 25 * + 49 col1
----
0

skipif mysql # not compatible
query I rowsort label-8106
SELECT + 12 / + + 25 * + 49 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT + NULLIF ( - 94, - 33 * + 97 ) * COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-8107
SELECT + NULLIF ( - 94, - 33 * + 97 ) * COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT CASE - 16 WHEN CASE + 79 WHEN 91 THEN + 59 + - ( - 15 + - 79 * 77 ) * + 89 WHEN 20 * + ( 91 * + 33 ) THEN NULL END / 63 THEN NULL WHEN - COUNT( * ) THEN - 54 ELSE - 64 * + 5 END
----
-320

skipif mysql # not compatible
query I rowsort label-8108
SELECT CASE - 16 WHEN CASE + 79 WHEN 91 THEN + 59 + - ( - 15 + - 79 * 77 ) * + 89 WHEN 20 * + ( 91 * + 33 ) THEN NULL END / 63 THEN NULL WHEN - COUNT ( * ) THEN - 54 ELSE - 64 * + 5 END
----
-320

query I rowsort
SELECT + 0 * - ( + 34 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8110
SELECT DISTINCT 65 DIV + + ( 28 ) * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT 65 / + + ( 28 ) * COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8111
SELECT + 76 DIV - COALESCE ( CASE + 95 WHEN - COUNT( 9 ) THEN 66 END, 52 * + 27 )
----
0

skipif mysql # not compatible
query I rowsort label-8111
SELECT + 76 / - COALESCE ( CASE + 95 WHEN - COUNT ( 9 ) THEN 66 END, 52 * + 27 )
----
0

query I rowsort
SELECT + 94 * + 26
----
2444

query I rowsort
SELECT + 53 + + - 71 AS col0
----
-18

query I rowsort
SELECT ALL 58 * - 94 AS col0
----
-5452

query I rowsort
SELECT + 70 * 37
----
2590

query I rowsort
SELECT - ( - CASE 81 WHEN - 49 THEN NULL WHEN 39 THEN 6 END )
----
NULL

query I rowsort
SELECT + 17 + + + 41 AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8118
SELECT ALL 30 AS col0, CAST( NULL AS SIGNED ) AS col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-8118
SELECT ALL 30 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
30
NULL

query I rowsort
SELECT + ( - 24 ) - + 47
----
-71

query I rowsort
SELECT DISTINCT - 68 + + + CASE COALESCE ( + 89, 71 * - CASE - 75 * + 6 WHEN 69 THEN NULL WHEN 7 THEN NULL ELSE 44 END - 72 ) WHEN - 12 THEN 12 WHEN 19 THEN NULL ELSE + 75 + 34 END * + 79 AS col2
----
8543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8121
SELECT ALL + - NULLIF ( + - 55, + 70 ) + 91 DIV MAX( 60 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL + - NULLIF ( + - 55, + 70 ) + 91 / MAX ( 60 ) AS col2
----
56

query I rowsort
SELECT ALL - 35 + + 14
----
-21

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

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT 39 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL - + 30 + + 99 * COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL - + 30 + + 99 * COUNT ( * )
----
69

query I rowsort
SELECT DISTINCT - + 13 * 67
----
-871

query I rowsort
SELECT ALL + 86 + + + 80 AS col0
----
166

query I rowsort
SELECT + - 80 + - + CASE + 60 WHEN 70 THEN + 33 * 83 END + 27
----
NULL

query I rowsort
SELECT - 1 - + 97 - + - 69 + 93
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8129
SELECT - 15 DIV 99 + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-8129
SELECT - 15 / 99 + - 30
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8130
SELECT ALL + + CAST( NULL AS SIGNED ) + - 24 * - 11 + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + + CAST ( NULL AS INTEGER ) + - 24 * - 11 + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT - 54 * - COALESCE ( + 39, - ( + MIN( DISTINCT - 47 ) ) ) AS col0
----
2106

skipif mysql # not compatible
query I rowsort label-8131
SELECT - 54 * - COALESCE ( + 39, - ( + MIN ( DISTINCT - 47 ) ) ) AS col0
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT - 59 + + COUNT( * ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-8132
SELECT - 59 + + COUNT ( * ) col2
----
-58

query I rowsort
SELECT - 28 * + 71 * + 20 + 94
----
-39666

onlyif mysql # aggregate syntax: 
query II rowsort label-8134
SELECT ALL + 26, + COUNT( * ) * - 67 AS col0
----
26
-67

skipif mysql # not compatible
query II rowsort label-8134
SELECT ALL + 26, + COUNT ( * ) * - 67 AS col0
----
26
-67

query I rowsort
SELECT ALL - 20 - + - 28 * 53 AS col0
----
1464

query I rowsort
SELECT DISTINCT - NULLIF ( - 32, - + 39 + 26 * + 54 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT COUNT( * ) + 50 * - - 35 + - CASE + 45 WHEN 51 THEN NULL ELSE - 48 * - 37 + - COUNT( * ) * COUNT( * ) END
----
-24

skipif mysql # not compatible
query I rowsort label-8137
SELECT COUNT ( * ) + 50 * - - 35 + - CASE + 45 WHEN 51 THEN NULL ELSE - 48 * - 37 + - COUNT ( * ) * COUNT ( * ) END
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8138
SELECT ALL CASE + 95 WHEN NULLIF ( - - CAST( NULL AS DECIMAL ), CASE - 24 WHEN 48 * COUNT( * ) + - 32 THEN NULL WHEN 34 THEN 99 * AVG ( - 0 / 98 ) + + COUNT( * ) ELSE NULL END * 73 ) THEN 20 WHEN - 73 THEN - 44 * ( - 49 ) END - - MIN( 74 - + ( CASE - 89 WHEN - 85 THEN + CAST( NULL AS SIGNED ) - 22 * 16 END ) * - ( - 22 * + 79 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL CASE + 95 WHEN NULLIF ( - - CAST ( NULL AS REAL ), CASE - 24 WHEN 48 * COUNT ( * ) + - 32 THEN NULL WHEN 34 THEN 99 * AVG ( - 0 / 98 ) + + COUNT ( * ) ELSE NULL END * 73 ) THEN 20 WHEN - 73 THEN - 44 * ( - 49 ) END - - MIN ( 74 - + ( CASE - 89 WHEN - 85 THEN + CAST ( NULL AS INTEGER ) - 22 * 16 END ) * - ( - 22 * + 79 ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8139
SELECT 18 * + 31 / + CASE + 37 WHEN 84 / 48 - CAST( NULL AS SIGNED ) THEN 90 * 55 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8139
SELECT 18 * + 31 / + CASE + 37 WHEN 84 / 48 - CAST ( NULL AS INTEGER ) THEN 90 * 55 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT ALL - CAST( 50 AS SIGNED ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL - CAST ( 50 AS INTEGER ) AS col1
----
-50

query I rowsort
SELECT 8 * - 90 AS col2
----
-720

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8143
SELECT ALL + COALESCE ( - 3, - 57 * + 27 * NULLIF ( - 40, + COUNT( * ) * 27 + 25 ) + COALESCE ( - CASE + 95 WHEN COALESCE ( 5, 40, - ( - 88 ) - - 22 ) * 38 THEN + 33 END, - COUNT( * ) ), 46 ) + + 83 DIV + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL + COALESCE ( - 3, - 57 * + 27 * NULLIF ( - 40, + COUNT ( * ) * 27 + 25 ) + COALESCE ( - CASE + 95 WHEN COALESCE ( 5, 40, - ( - 88 ) - - 22 ) * 38 THEN + 33 END, - COUNT ( * ) ), 46 ) + + 83 / + COUNT ( * )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8144
SELECT ALL 52 + + MIN( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL 52 + + MIN ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT 14 + - 68 AS col1, - 60 AS col1
----
-54
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8146
SELECT - COUNT( * ) * + 23 + - 13 DIV 28
----
-23

skipif mysql # not compatible
query I rowsort label-8146
SELECT - COUNT ( * ) * + 23 + - 13 / 28
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT ALL ( - 33 ) + + 54 * COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL ( - 33 ) + + 54 * COUNT ( * ) AS col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8148
SELECT 20 * - 1 + - 37 DIV 92 * SUM( DISTINCT - 35 )
----
-20

skipif mysql # not compatible
query I rowsort label-8148
SELECT 20 * - 1 + - 37 / 92 * SUM ( DISTINCT - 35 )
----
-20

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

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + COUNT ( ALL 22 ) + - 31 AS col2
----
-30

query I rowsort
SELECT ALL - 39 + 46 * - 68 * - + 29 + ( - 16 ) * - COALESCE ( - 47 + + 71, 70 )
----
91057

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8151
SELECT + 50 + + - 59 - + 34 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8151
SELECT + 50 + + - 59 - + 34 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 6 * 76 col2
----
456

query I rowsort
SELECT DISTINCT 28 * 78 + - + 69 + + 60 col0
----
2175

query I rowsort
SELECT ALL - 90 + - 35 * - 28 AS col2
----
890

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - NULLIF ( + 99, - + COUNT( * ) )
----
-99

skipif mysql # not compatible
query I rowsort label-8155
SELECT - NULLIF ( + 99, - + COUNT ( * ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL - MIN( DISTINCT + NULLIF ( + + 89, - 12 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - MIN ( DISTINCT + NULLIF ( + + 89, - 12 ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT - 99 + CASE + 37 WHEN + 1 THEN + 0 ELSE 12 * - NULLIF ( + 72, 96 ) END + COUNT( * )
----
-962

skipif mysql # not compatible
query I rowsort label-8157
SELECT - 99 + CASE + 37 WHEN + 1 THEN + 0 ELSE 12 * - NULLIF ( + 72, 96 ) END + COUNT ( * )
----
-962

query I rowsort
SELECT ALL 69 - + 18 + + 18 + 59 AS col0
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-8159
SELECT COUNT( * ) + + 71, - COALESCE ( CASE 42 WHEN 9 THEN 46 END, 20 * - ( - ( 26 ) ), - 25 * + 8 + - 53 * 6 ) AS col0
----
72
-520

skipif mysql # not compatible
query II rowsort label-8159
SELECT COUNT ( * ) + + 71, - COALESCE ( CASE 42 WHEN 9 THEN 46 END, 20 * - ( - ( 26 ) ), - 25 * + 8 + - 53 * 6 ) AS col0
----
72
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT ALL + NULLIF ( NULLIF ( + - COUNT( * ), COALESCE ( + 10, 49 / + MIN( 1 ) ) ), - 26 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL + NULLIF ( NULLIF ( + - COUNT ( * ), COALESCE ( + 10, 49 / + MIN ( 1 ) ) ), - 26 ) col1
----
-1

query I rowsort
SELECT ALL + 82 * CASE COALESCE ( - + 92, - 18 ) WHEN - NULLIF ( 92, - 20 ) + 90 THEN - 70 + + 49 * + 8 ELSE 72 * ( 0 ) + 73 END AS col0
----
5986

query II rowsort
SELECT 58 * + - 72 AS col0, ( + 31 ) AS col0
----
-4176
31

query I rowsort
SELECT 12 * 77 AS col0
----
924

query I rowsort
SELECT ALL + 61 * 99 AS col1
----
6039

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT 18 DIV 5
----
3

skipif mysql # not compatible
query I rowsort label-8165
SELECT 18 / 5
----
3

query I rowsort
SELECT ALL + 52 * 1 AS col1
----
52

query I rowsort
SELECT ( ( - + 84 ) ) * + + 76
----
-6384

query II rowsort
SELECT + 85, 27 * + ( + 0 ) AS col0
----
85
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL - SUM( DISTINCT - 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - SUM ( DISTINCT - 31 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8170
SELECT 18 - - - 40 - COUNT( * ) AS col0, + COUNT( * ) AS col0
----
-23
1

skipif mysql # not compatible
query II rowsort label-8170
SELECT 18 - - - 40 - COUNT ( * ) AS col0, + COUNT ( * ) AS col0
----
-23
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT - CASE + + COUNT( * ) WHEN 34 THEN 50 * - - 57 + + NULLIF ( COUNT( * ), + 23 * AVG ( 12 / - COALESCE ( 7, 25 * 67 ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT - CASE + + COUNT ( * ) WHEN 34 THEN 50 * - - 57 + + NULLIF ( COUNT ( * ), + 23 * AVG ( 12 / - COALESCE ( 7, 25 * 67 ) ) ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL + ( - 39 ) * + - 70 + - 89
----
2641

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8174
SELECT COUNT( * ) DIV + COUNT( - 43 ) AS col1, + 49 AS col2
----
1
49

skipif mysql # not compatible
query II rowsort label-8174
SELECT COUNT ( * ) / + COUNT ( - 43 ) AS col1, + 49 AS col2
----
1
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8175
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), + - COUNT( * ) ) + + COUNT( * ) / + 95 * + ( - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), + - COUNT ( * ) ) + + COUNT ( * ) / + 95 * + ( - 99 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL + 62 + 85 + - COUNT( * )
----
146

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + 62 + 85 + - COUNT ( * )
----
146

query I rowsort
SELECT 14 * - + 74 * + + 30 AS col0
----
-31080

query I rowsort
SELECT 17 + - 54
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT COUNT( ALL + - 28 ) - 32
----
-31

skipif mysql # not compatible
query I rowsort label-8179
SELECT COUNT ( ALL + - 28 ) - 32
----
-31

query II rowsort
SELECT + - 25, - NULLIF ( 88, - 61 + + - 74 ) AS col1
----
-25
-88

query II rowsort
SELECT ALL - 79 + 56 + + 89, 30 * - 37 col0
----
66
-1110

query I rowsort
SELECT ALL + - 72 * + 22
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT DISTINCT - - MIN( 83 )
----
83

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT - - MIN ( 83 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT DISTINCT 73 + + ( - + 93 ) - - CAST( NULL AS SIGNED ) + + 61 * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT 73 + + ( - + 93 ) - - CAST ( NULL AS INTEGER ) + + 61 * + 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8185
SELECT ALL - COALESCE ( ( 49 ), + 2 - COALESCE ( COUNT( * ), - 16 - CAST( 7 AS SIGNED ) ) * MAX( DISTINCT + ( + 0 ) * 38 ), + 34 * + 23 - + 68 )
----
-49

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL - COALESCE ( ( 49 ), + 2 - COALESCE ( COUNT ( * ), - 16 - CAST ( 7 AS INTEGER ) ) * MAX ( DISTINCT + ( + 0 ) * 38 ), + 34 * + 23 - + 68 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL - + 59 + + COALESCE ( - - 56, - - 49 + - MIN( DISTINCT NULLIF ( - 97, 60 ) ) * + ( 88 ), ( - 59 ) * - ( + 5 ), + 21 - - COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - + 59 + + COALESCE ( - - 56, - - 49 + - MIN ( DISTINCT NULLIF ( - 97, 60 ) ) * + ( 88 ), ( - 59 ) * - ( + 5 ), + 21 - - COUNT ( * ) )
----
-3

query II rowsort
SELECT - - 38 * + 52 + 8, - 15 - - 19 AS col2
----
1984
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT 24 * - - 50 * 14 * + 88 + COUNT( * )
----
1478401

skipif mysql # not compatible
query I rowsort label-8188
SELECT 24 * - - 50 * 14 * + 88 + COUNT ( * )
----
1478401

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8190
SELECT ALL 58 DIV + - 4
----
-14

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL 58 / + - 4
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT DISTINCT + - 54 DIV + - 93
----
0

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT + - 54 / + - 93
----
0

query I rowsort
SELECT + - 97 - + 93 * 79 + - 8 AS col0
----
-7452

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8193
SELECT ALL + 92 - + COUNT( * ) + CAST( NULL AS DECIMAL ) * - MAX( DISTINCT + + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL + 92 - + COUNT ( * ) + CAST ( NULL AS REAL ) * - MAX ( DISTINCT + + 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT - COUNT( * ) * - + 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT - COUNT ( * ) * - + 53 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8195
SELECT ALL 47 * CAST( NULL AS SIGNED ) * + - CASE - 22 WHEN + COUNT( * ) THEN 38 + 22 ELSE - 66 / + 75 END * 42 - + 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL 47 * CAST ( NULL AS INTEGER ) * + - CASE - 22 WHEN + COUNT ( * ) THEN 38 + 22 ELSE - 66 / + 75 END * 42 - + 61 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + 31 + COUNT( * ) + - - 2 * - 17 * - + 14
----
508

skipif mysql # not compatible
query I rowsort label-8196
SELECT + 31 + COUNT ( * ) + - - 2 * - 17 * - + 14
----
508

query I rowsort
SELECT + 37 - - 70 + 40
----
147

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

skipif mysql # not compatible
query I rowsort label-8198
SELECT + 13 - ( + 19 ) * - ( + COUNT ( * ) ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8199
SELECT - 31 * + + 88 AS col0, SUM( - + ( + + 52 ) ) + - - CAST( NULL AS SIGNED ) * - 58 AS col2
----
-2728
NULL

skipif mysql # not compatible
query II rowsort label-8199
SELECT - 31 * + + 88 AS col0, SUM ( - + ( + + 52 ) ) + - - CAST ( NULL AS INTEGER ) * - 58 AS col2
----
-2728
NULL

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

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

query I rowsort
SELECT ALL ( + 74 ) + - - 71 + - 28 col2
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT + 77 + - ( - - 86 ) DIV + - 90 * 74
----
77

skipif mysql # not compatible
query I rowsort label-8202
SELECT + 77 + - ( - - 86 ) / + - 90 * 74
----
77

query I rowsort
SELECT + 95 * - - 18 col0
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT DISTINCT NULLIF ( + 45, + - 80 ) + - 55 * + 68 + ( - COUNT( + 15 ) ) AS col1
----
-3696

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT NULLIF ( + 45, + - 80 ) + - 55 * + 68 + ( - COUNT ( + 15 ) ) AS col1
----
-3696

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ALL - 80 * + 97 + + COUNT( * ) AS col1
----
-7759

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL - 80 * + 97 + + COUNT ( * ) AS col1
----
-7759

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8209
SELECT ( 69 ) AS col2, SUM( ( 57 ) ) + - 19 * CASE - 85 WHEN 52 THEN + ( 12 ) WHEN + 16 THEN + 7 - - 4 END
----
69
NULL

skipif mysql # not compatible
query II rowsort label-8209
SELECT ( 69 ) AS col2, SUM ( ( 57 ) ) + - 19 * CASE - 85 WHEN 52 THEN + ( 12 ) WHEN + 16 THEN + 7 - - 4 END
----
69
NULL

query I rowsort
SELECT + CASE - 35 WHEN ( - 87 ) THEN + 60 END AS col1
----
NULL

query I rowsort
SELECT ( + + COALESCE ( + NULLIF ( + 57, 24 ), 85, + ( 72 ) * + 29 + 86 ) )
----
57

query I rowsort
SELECT + ( 19 ) col2
----
19

query II rowsort
SELECT + 8 AS col2, + 92 * - 81 AS col2
----
8
-7452

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT 34 * + MIN( ALL - 6 ) AS col2
----
-204

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT 34 * + MIN ( ALL - 6 ) AS col2
----
-204

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

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

query II rowsort
SELECT ALL + 87 AS col1, - 86 AS col2
----
87
-86

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

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + - CAST ( - 23 AS INTEGER ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT - ( + 11 ) * 90 * - COUNT( * ) * 65 + + 25 AS col2
----
64375

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT - ( + 11 ) * 90 * - COUNT ( * ) * 65 + + 25 AS col2
----
64375

query I rowsort
SELECT ALL - COALESCE ( + 16, - 81, 9 ) * 73 + + - ( 64 ) - 13
----
-1245

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8220
SELECT DISTINCT + CASE + CAST( + 8 AS DECIMAL ) WHEN - 63 THEN 43 WHEN - SUM( + 69 ) THEN 23 + 62 * - COUNT( * ) WHEN NULLIF ( 81, - 51 / 80 + + MAX( DISTINCT 57 ) ) + + ( 3 ) THEN NULL ELSE 77 + - 46 END
----
31

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT + CASE + CAST ( + 8 AS REAL ) WHEN - 63 THEN 43 WHEN - SUM ( + 69 ) THEN 23 + 62 * - COUNT ( * ) WHEN NULLIF ( 81, - 51 / 80 + + MAX ( DISTINCT 57 ) ) + + ( 3 ) THEN NULL ELSE 77 + - 46 END
----
31

query I rowsort
SELECT DISTINCT 7 * - 84 - 35 - ( + - 42 )
----
-581

query I rowsort
SELECT - - 87 + ( 94 ) AS col1
----
181

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
SELECT - - 43 * + 6 * + 17 * + CAST( NULL AS SIGNED ) * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT - - 43 * + 6 * + 17 * + CAST ( NULL AS INTEGER ) * + 12 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8227
SELECT ALL - 78, - 47 * + COUNT( * ) * + - 27 + - 82 AS col1
----
-78
1187

skipif mysql # not compatible
query II rowsort label-8227
SELECT ALL - 78, - 47 * + COUNT ( * ) * + - 27 + - 82 AS col1
----
-78
1187

onlyif mysql # DIV for integer division: 
query I rowsort label-8228
SELECT DISTINCT - 5 * + 5 + 40 DIV - + 31 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT - 5 * + 5 + 40 / - + 31 AS col0
----
-26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT ALL CAST( + 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL CAST ( + 24 AS INTEGER )
----
24

query I rowsort
SELECT - + 16 * - + 18 * + + 82
----
23616

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT + 90 + + 47 DIV + 50
----
90

skipif mysql # not compatible
query I rowsort label-8232
SELECT + 90 + + 47 / + 50
----
90

query I rowsort
SELECT + 78 * - + 18 AS col2
----
-1404

query I rowsort
SELECT DISTINCT - 16 + ( 91 ) * - 20
----
-1836

query I rowsort
SELECT - 42 - - 40 - 20 + + - 42 * + 48
----
-2038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8236
SELECT - 18 - - SUM( 10 ) DIV + 52 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-8236
SELECT - 18 - - SUM ( 10 ) / + 52 AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8237
SELECT - CAST( - + 9 AS SIGNED ) AS col1, - COUNT( * )
----
9
-1

skipif mysql # not compatible
query II rowsort label-8237
SELECT - CAST ( - + 9 AS INTEGER ) AS col1, - COUNT ( * )
----
9
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT DISTINCT 35 DIV 70 + 86 * + + 43 AS col2
----
3698

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT 35 / 70 + 86 * + + 43 AS col2
----
3698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8239
SELECT ALL CAST( NULL AS SIGNED ) / 67 + + - 47 * 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL CAST ( NULL AS INTEGER ) / 67 + + - 47 * 19 AS col1
----
NULL

query I rowsort
SELECT + 40 * - 1 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT + + 38 + - AVG ( ALL 32 ) + + COUNT( * ) * MIN( + 23 ) * 9 / + ( 16 ) + 96 + + CASE 24 - + 48 WHEN + 47 - 83 THEN - 92 + - 4 * 31 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT + + 38 + - AVG ( ALL 32 ) + + COUNT ( * ) * MIN ( + 23 ) * 9 / + ( 16 ) + 96 + + CASE 24 - + 48 WHEN + 47 - 83 THEN - 92 + - 4 * 31 ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 27 * ( 85 ) * - 45 + 53
----
-103222

onlyif mysql # DIV for integer division: 
query I rowsort label-8244
SELECT 16 * + + 65 + - 62 DIV + 93 col2
----
1040

skipif mysql # not compatible
query I rowsort label-8244
SELECT 16 * + + 65 + - 62 / + 93 col2
----
1040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8245
SELECT ALL 79 * - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL 79 * - - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 3 + 54 AS col1
----
57

query I rowsort
SELECT ALL - - CASE + - 66 WHEN - 25 THEN - 15 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8249
SELECT + 45 * 52 AS col0, + NULLIF ( - ( + COUNT( * ) ), + ( - + 30 ) ) AS col1
----
2340
-1

skipif mysql # not compatible
query II rowsort label-8249
SELECT + 45 * 52 AS col0, + NULLIF ( - ( + COUNT ( * ) ), + ( - + 30 ) ) AS col1
----
2340
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT COALESCE ( 41, - COUNT( * ) + + 20, + - 76 * COUNT( * ) ) * + 65
----
2665

skipif mysql # not compatible
query I rowsort label-8250
SELECT COALESCE ( 41, - COUNT ( * ) + + 20, + - 76 * COUNT ( * ) ) * + 65
----
2665

query I rowsort
SELECT - 16 * 83 + - + NULLIF ( CASE 61 WHEN - + 36 / - 68 THEN 89 END, + 81 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8252
SELECT DISTINCT - - CASE 41 WHEN 0 + 83 - - - CAST( SUM( DISTINCT - 0 ) AS SIGNED ) THEN NULL WHEN + 34 THEN NULL ELSE 4 END + + 36
----
40

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT - - CASE 41 WHEN 0 + 83 - - - CAST ( SUM ( DISTINCT - 0 ) AS INTEGER ) THEN NULL WHEN + 34 THEN NULL ELSE 4 END + + 36
----
40

query I rowsort
SELECT 5 * 57 AS col2
----
285

query I rowsort
SELECT ALL - ( - + 38 ) + + 98
----
136

query I rowsort
SELECT 8 - 12
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT DISTINCT - 48 + + 79 - - + 29 * 58 DIV 4 AS col1
----
451

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT - 48 + + 79 - - + 29 * 58 / 4 AS col1
----
451

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT 27 + - 89 * + + ( COUNT( * ) )
----
-62

skipif mysql # not compatible
query I rowsort label-8257
SELECT 27 + - 89 * + + ( COUNT ( * ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL - COUNT( * ) + - - 98
----
97

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL - COUNT ( * ) + - - 98
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8259
SELECT DISTINCT 79 AS col1, MIN( + 56 ) AS col0
----
79
56

skipif mysql # not compatible
query II rowsort label-8259
SELECT DISTINCT 79 AS col1, MIN ( + 56 ) AS col0
----
79
56

onlyif mysql # DIV for integer division: 
query II rowsort label-8260
SELECT 39 AS col0, + 73 DIV - 97 col1
----
39
0

skipif mysql # not compatible
query II rowsort label-8260
SELECT 39 AS col0, + 73 / - 97 col1
----
39
0

query I rowsort
SELECT 8 + - + 81 AS col0
----
-73

query I rowsort
SELECT 17 + + + 33 AS col0
----
50

query I rowsort
SELECT 53 - - 21 + 24
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL + 31 + + COUNT( * ) + - 55 * - 41 col2
----
2287

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL + 31 + + COUNT ( * ) + - 55 * - 41 col2
----
2287

query I rowsort
SELECT ALL 82 - + - 98 - - 72 + - - 65 AS col0
----
317

query I rowsort
SELECT 43 * - - 72 AS col1
----
3096

query II rowsort
SELECT ALL 50 col1, 60
----
50
60

query I rowsort
SELECT DISTINCT + 86 - - 36
----
122

query I rowsort
SELECT ALL 76 * + 11
----
836

query I rowsort
SELECT ALL 35 * 46
----
1610

onlyif mysql # aggregate syntax: 
query II rowsort label-8271
SELECT MIN( DISTINCT - 80 ) * + 51, - 77 col1
----
-4080
-77

skipif mysql # not compatible
query II rowsort label-8271
SELECT MIN ( DISTINCT - 80 ) * + 51, - 77 col1
----
-4080
-77

query I rowsort
SELECT 42 * - 1 * - - ( + 27 ) * + 81 AS col1
----
-91854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8273
SELECT + 73 * - - NULLIF ( 48, + 10 * - - 81 + 37 ) * 99 + - COUNT( * ) + + CAST( NULL AS SIGNED ) * + NULLIF ( + 27 * CASE 41 WHEN + 85 THEN NULL WHEN - 24 THEN + 47 END, - 59 ) * - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT + 73 * - - NULLIF ( 48, + 10 * - - 81 + 37 ) * 99 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + NULLIF ( + 27 * CASE 41 WHEN + 85 THEN NULL WHEN - 24 THEN + 47 END, - 59 ) * - 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8274
SELECT + SUM( - - 37 ) DIV + ( 26 ) + + 37 * 55
----
2036

skipif mysql # not compatible
query I rowsort label-8274
SELECT + SUM ( - - 37 ) / + ( 26 ) + + 37 * 55
----
2036

query I rowsort
SELECT DISTINCT - + NULLIF ( 22, - + 1 )
----
-22

query I rowsort
SELECT DISTINCT - - ( 67 ) AS col2
----
67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8278
SELECT ALL - 16 * - 95 + 20 + NULLIF ( + COALESCE ( - 10, CAST( NULL AS SIGNED ), 66 * - 24 - 29 ), - ( + 17 ) * 43 ) * + COALESCE ( - MAX( + 81 ) * + 41, 50 ) * 88
----
2924020

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL - 16 * - 95 + 20 + NULLIF ( + COALESCE ( - 10, CAST ( NULL AS INTEGER ), 66 * - 24 - 29 ), - ( + 17 ) * 43 ) * + COALESCE ( - MAX ( + 81 ) * + 41, 50 ) * 88
----
2924020

onlyif mysql # aggregate syntax: 
query II rowsort label-8279
SELECT 10 * + 55 + + - 28 + + 3 * + + COUNT( * ) * 30, - COALESCE ( + 24, 2, - 12, 69 ) AS col2
----
612
-24

skipif mysql # not compatible
query II rowsort label-8279
SELECT 10 * + 55 + + - 28 + + 3 * + + COUNT ( * ) * 30, - COALESCE ( + 24, 2, - 12, 69 ) AS col2
----
612
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT - - ( MAX( 65 ) )
----
65

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT - - ( MAX ( 65 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT - 69 + - + ( - COUNT( * ) ) + + COUNT( * ) * - 31
----
-99

skipif mysql # not compatible
query I rowsort label-8281
SELECT - 69 + - + ( - COUNT ( * ) ) + + COUNT ( * ) * - 31
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8282
SELECT + COUNT( * ) DIV + - 65 + - - 82 * + + SUM( ALL - 60 )
----
-4920

skipif mysql # not compatible
query I rowsort label-8282
SELECT + COUNT ( * ) / + - 65 + - - 82 * + + SUM ( ALL - 60 )
----
-4920

query I rowsort
SELECT ALL 13 * + 23
----
299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8284
SELECT - 66 + + - COUNT( * ) * + 32 DIV - 57
----
-66

skipif mysql # not compatible
query I rowsort label-8284
SELECT - 66 + + - COUNT ( * ) * + 32 / - 57
----
-66

query I rowsort
SELECT ALL - 64 + 6 AS col2
----
-58

query I rowsort
SELECT ALL 40 * - 88
----
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT - 76 * - 74 + + 49 + 22 / 50 * - - 29 * - + CASE - 79 WHEN SUM( DISTINCT - 63 ) THEN + 57 / - 82 WHEN + 32 * 20 THEN - 67 END * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT - 76 * - 74 + + 49 + 22 / 50 * - - 29 * - + CASE - 79 WHEN SUM ( DISTINCT - 63 ) THEN + 57 / - 82 WHEN + 32 * 20 THEN - 67 END * - 29
----
NULL

query I rowsort
SELECT ALL - 14 + 72
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + 32 + - MIN( DISTINCT + 36 ) - - 34 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8289
SELECT + 32 + - MIN ( DISTINCT + 36 ) - - 34 AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8290
SELECT 27 + + + 31 + - CAST( NULL AS SIGNED ) + - - 89 + + COUNT( * ) + + + ( + 61 ) - + COUNT( * ) + + + 80 + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT 27 + + + 31 + - CAST ( NULL AS INTEGER ) + - - 89 + + COUNT ( * ) + + + ( + 61 ) - + COUNT ( * ) + + + 80 + 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8291
SELECT ALL + 71 DIV + SUM( - + 79 ) * - - 56 AS col1, - 74
----
0
-74

skipif mysql # not compatible
query II rowsort label-8291
SELECT ALL + 71 / + SUM ( - + 79 ) * - - 56 AS col1, - 74
----
0
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT 62 + - 59 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT 62 + - 59 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 99 - - 27 + + 24 * + COALESCE ( + 9, + 67 - - - 40 + + 18 )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT - 81 * COUNT( DISTINCT 14 ) * 68 AS col2
----
-5508

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT - 81 * COUNT ( DISTINCT 14 ) * 68 AS col2
----
-5508

query I rowsort
SELECT ALL - 72 * + + 95 AS col0
----
-6840

query I rowsort
SELECT 52 * - 57 col0
----
-2964

query I rowsort
SELECT ALL - ( + ( - 89 ) ) * 77 * - 90 * 82
----
-50575140

query I rowsort
SELECT 58 + + 51 AS col2
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-8299
SELECT DISTINCT MAX( DISTINCT - 76 ), + 56 col2
----
-76
56

skipif mysql # not compatible
query II rowsort label-8299
SELECT DISTINCT MAX ( DISTINCT - 76 ), + 56 col2
----
-76
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8300
SELECT DISTINCT + 82 * + CAST( - 55 AS SIGNED ) * + 40 + - 88 + - 78 DIV + 73 AS col1, + 5 AS col2
----
-180489
5

skipif mysql # not compatible
query II rowsort label-8300
SELECT DISTINCT + 82 * + CAST ( - 55 AS INTEGER ) * + 40 + - 88 + - 78 / + 73 AS col1, + 5 AS col2
----
-180489
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT 42 - COUNT( 78 )
----
41

skipif mysql # not compatible
query I rowsort label-8301
SELECT 42 - COUNT ( 78 )
----
41

query I rowsort
SELECT 78 * + 27 AS col1
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT 52 - 54 + - COUNT( * ) * - - 54 * - - 80 AS col2
----
-4322

skipif mysql # not compatible
query I rowsort label-8303
SELECT 52 - 54 + - COUNT ( * ) * - - 54 * - - 80 AS col2
----
-4322

onlyif mysql # DIV for integer division: 
query I rowsort label-8304
SELECT ALL + 11 DIV ( - 4 )
----
-2

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL + 11 / ( - 4 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8305
SELECT - + COUNT( * ) DIV 51 AS col0, - 6 col1
----
0
-6

skipif mysql # not compatible
query II rowsort label-8305
SELECT - + COUNT ( * ) / 51 AS col0, - 6 col1
----
0
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT + + COUNT( * ) + + - 29 col2
----
-28

skipif mysql # not compatible
query I rowsort label-8306
SELECT + + COUNT ( * ) + + - 29 col2
----
-28

query II rowsort
SELECT DISTINCT 13 * + 43, 51 AS col2
----
559
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8308
SELECT DISTINCT + 67 DIV - + 28
----
-2

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT + 67 / - + 28
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8309
SELECT ALL - 61 * + 31, COUNT( DISTINCT + 23 ) * - 72 + CASE - 37 WHEN + 94 THEN NULL ELSE - 96 END + - MAX( ALL 33 ) * ( - 44 * MIN( 48 DIV 38 ) ) AS col1
----
-1891
1284

skipif mysql # not compatible
query II rowsort label-8309
SELECT ALL - 61 * + 31, COUNT ( DISTINCT + 23 ) * - 72 + CASE - 37 WHEN + 94 THEN NULL ELSE - 96 END + - MAX ( ALL 33 ) * ( - 44 * MIN ( 48 / 38 ) ) AS col1
----
-1891
1284

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

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

query I rowsort
SELECT ALL + 56 * + + 15 + - 17
----
823

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT - 58 + + - COUNT( * ) * - 64 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8312
SELECT - 58 + + - COUNT ( * ) * - 64 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8313
SELECT - - MAX( DISTINCT + - 32 ) DIV + 9 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8313
SELECT - - MAX ( DISTINCT + - 32 ) / + 9 AS col1
----
-3

query I rowsort
SELECT DISTINCT - 78 * 59 + + 95 AS col0
----
-4507

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8316
SELECT DISTINCT CASE WHEN NOT + 10 IS NULL THEN - - 50 DIV 74 + - 9 DIV - 62 * - 74 + - ( + 71 ) END * + COALESCE ( CAST( 48 AS SIGNED ), 28, COALESCE ( COUNT( * ), + 91 + + 7 * 60, 30 ) * - COUNT( * ) ) + + 26 AS col1
----
-3382

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT CASE WHEN NOT + 10 IS NULL THEN - - 50 / 74 + - 9 / - 62 * - 74 + - ( + 71 ) END * + COALESCE ( CAST ( 48 AS INTEGER ), 28, COALESCE ( COUNT ( * ), + 91 + + 7 * 60, 30 ) * - COUNT ( * ) ) + + 26 AS col1
----
-3382

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL + 56 * - SUM( - - 65 ) * CASE 39 WHEN 46 THEN - + 25 ELSE + COUNT( * ) END + 16 col2
----
-3624

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL + 56 * - SUM ( - - 65 ) * CASE 39 WHEN 46 THEN - + 25 ELSE + COUNT ( * ) END + 16 col2
----
-3624

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL + - 17 * - COALESCE ( 58, COUNT( * ), 62 - - 86 ) + COUNT( * ) - + COUNT( * )
----
986

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL + - 17 * - COALESCE ( 58, COUNT ( * ), 62 - - 86 ) + COUNT ( * ) - + COUNT ( * )
----
986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT DISTINCT - - 73 * COUNT( * ) + - CAST( + 0 AS SIGNED ) + 1 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT - - 73 * COUNT ( * ) + - CAST ( + 0 AS INTEGER ) + 1 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT ALL + + COUNT( * ) * - 99 + 37
----
-62

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL + + COUNT ( * ) * - 99 + 37
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8321
SELECT SUM( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT + 95 + - 91 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8325
SELECT ALL CAST( NULL AS DECIMAL ) - + CAST( ( - 54 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL CAST ( NULL AS REAL ) - + CAST ( ( - 54 ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8326
SELECT + 12 * CASE CAST( NULL AS SIGNED ) WHEN + 56 * - + CASE 86 WHEN - - COALESCE ( - - 10, - - 84 + + 98, + 17 * + 87 ) - + 51 THEN + 39 + + 64 WHEN + 53 - - COUNT( * ) * 90 THEN NULL ELSE NULL END THEN 64 WHEN + MIN( + CASE - 34 WHEN + 0 THEN + 71 * + 55 + + 53 * - 92 WHEN 95 THEN - 40 END ) THEN NULL ELSE 89 END
----
1068

skipif mysql # not compatible
query I rowsort label-8326
SELECT + 12 * CASE CAST ( NULL AS INTEGER ) WHEN + 56 * - + CASE 86 WHEN - - COALESCE ( - - 10, - - 84 + + 98, + 17 * + 87 ) - + 51 THEN + 39 + + 64 WHEN + 53 - - COUNT ( * ) * 90 THEN NULL ELSE NULL END THEN 64 WHEN + MIN ( + CASE - 34 WHEN + 0 THEN + 71 * + 55 + + 53 * - 92 WHEN 95 THEN - 40 END ) THEN NULL ELSE 89 END
----
1068

query II rowsort
SELECT DISTINCT 43 AS col2, + 7
----
43
7

query I rowsort
SELECT + 41 + 69 + 39 col1
----
149

query I rowsort
SELECT ALL NULLIF ( + + 80, + 66 * - - 85 ) AS col0
----
80

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

query I rowsort
SELECT + 29 + + + 65 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT + COUNT( * ) + CASE 78 WHEN + SUM( ALL - 45 ) + - 11 THEN - 63 * - + 32 + + - 97 * + 41 ELSE COALESCE ( + 24, + 6 ) * - 46 END
----
-1103

skipif mysql # not compatible
query I rowsort label-8332
SELECT + COUNT ( * ) + CASE 78 WHEN + SUM ( ALL - 45 ) + - 11 THEN - 63 * - + 32 + + - 97 * + 41 ELSE COALESCE ( + 24, + 6 ) * - 46 END
----
-1103

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT + COUNT( * ) * COALESCE ( 10, - 76 )
----
10

skipif mysql # not compatible
query I rowsort label-8333
SELECT + COUNT ( * ) * COALESCE ( 10, - 76 )
----
10

query I rowsort
SELECT + 81 + + 99 * - 93 AS col0
----
-9126

query I rowsort
SELECT - 87 - - + 75
----
-12

query I rowsort
SELECT ALL + - 85 * 57 * + 44
----
-213180

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8339
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) / + - 12 + + AVG ( + 54 ) + + + 74 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) / + - 12 + + AVG ( + 54 ) + + + 74 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8340
SELECT ALL 30 DIV - 84 + - CAST( + COUNT( + 21 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL 30 / - 84 + - CAST ( + COUNT ( + 21 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT - 97 * 57 + COUNT( 60 )
----
-5528

skipif mysql # not compatible
query I rowsort label-8341
SELECT - 97 * 57 + COUNT ( 60 )
----
-5528

query I rowsort
SELECT - 56 * ( - 11 )
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT - - 45 * - 28 * - 47 + 45 * + COUNT( DISTINCT - 14 ) + + + 93 + + - 20 * + 46 * - COUNT( * ) AS col0
----
60278

skipif mysql # not compatible
query I rowsort label-8343
SELECT - - 45 * - 28 * - 47 + 45 * + COUNT ( DISTINCT - 14 ) + + + 93 + + - 20 * + 46 * - COUNT ( * ) AS col0
----
60278

query II rowsort
SELECT ALL + 21 AS col2, 20
----
21
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8345
SELECT - - 27 DIV 92 + 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8345
SELECT - - 27 / 92 + 15 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8346
SELECT 69 / 32 + CAST( NULL AS SIGNED ) - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT 69 / 32 + CAST ( NULL AS INTEGER ) - - 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT DISTINCT + MAX( CAST( NULL AS SIGNED ) ) / - COUNT( * ) + - - 46 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT + MAX ( CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) + - - 46 col1
----
NULL

query I rowsort
SELECT ALL - 72 * + 80 * - 84 * - 21
----
-10160640

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL + + 30 * - COALESCE ( COUNT( * ), COALESCE ( 24, + 14 + 17 ) * 65 - - 36 + + 21 * 41 ) + 91 * + ( 57 ) AS col0
----
5157

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL + + 30 * - COALESCE ( COUNT ( * ), COALESCE ( 24, + 14 + 17 ) * 65 - - 36 + + 21 * 41 ) + 91 * + ( 57 ) AS col0
----
5157

onlyif mysql # aggregate syntax: 
query II rowsort label-8350
SELECT ALL + 36 AS col2, + 9 - - COUNT( * )
----
36
10

skipif mysql # not compatible
query II rowsort label-8350
SELECT ALL + 36 AS col2, + 9 - - COUNT ( * )
----
36
10

query I rowsort
SELECT ALL - - 26 * - ( - 78 )
----
2028

query I rowsort
SELECT - + NULLIF ( + 93, + + 79 ) + + - NULLIF ( + 60, - - 21 ) AS col0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - 9 * - 20 * 62 - + 77 + - - CASE 45 WHEN - + 53 + 0 * 38 - + COUNT( * ) THEN - 83 END * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT - 9 * - 20 * 62 - + 77 + - - CASE 45 WHEN - + 53 + 0 * 38 - + COUNT ( * ) THEN - 83 END * 86
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8355
SELECT ALL - 44 * 43 - CAST( 32 AS SIGNED ) * + 25 AS col1
----
-2692

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL - 44 * 43 - CAST ( 32 AS INTEGER ) * + 25 AS col1
----
-2692

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT - COUNT( * ) * - 49 + - MAX( - 3 )
----
52

skipif mysql # not compatible
query I rowsort label-8356
SELECT - COUNT ( * ) * - 49 + - MAX ( - 3 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8357
SELECT ALL + CAST( 28 AS SIGNED ) * - 6
----
-168

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL + CAST ( 28 AS INTEGER ) * - 6
----
-168

query I rowsort
SELECT + 65 + 42
----
107

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

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

query II rowsort
SELECT ALL 36, 80 + - 98 AS col1
----
36
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8361
SELECT + ( + 1 ) * COUNT( * ) * + + NULLIF ( - - 33, CAST( NULL AS SIGNED ) ) - - 14
----
47

skipif mysql # not compatible
query I rowsort label-8361
SELECT + ( + 1 ) * COUNT ( * ) * + + NULLIF ( - - 33, CAST ( NULL AS INTEGER ) ) - - 14
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8362
SELECT DISTINCT 82 DIV - - 38 col0
----
2

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT 82 / - - 38 col0
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-8363
SELECT DISTINCT 50, - 59 + - 97 DIV - + 22 AS col2
----
50
-55

skipif mysql # not compatible
query II rowsort label-8363
SELECT DISTINCT 50, - 59 + - 97 / - + 22 AS col2
----
50
-55

query I rowsort
SELECT ALL 17 * + 61 * 86
----
89182

query II rowsort
SELECT 58 * 6 AS col1, + 14 AS col1
----
348
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8366
SELECT - 57 AS col0, - 3 + - 6 + - NULLIF ( NULLIF ( + + MIN( ALL - + 98 ), 50 / + 23 * + CAST( NULL AS SIGNED ) * - 27 ), + 76 * ( 81 * SUM( + 11 ) ) ) + 61 * - 59 col0
----
-57
-3510

skipif mysql # not compatible
query II rowsort label-8366
SELECT - 57 AS col0, - 3 + - 6 + - NULLIF ( NULLIF ( + + MIN ( ALL - + 98 ), 50 / + 23 * + CAST ( NULL AS INTEGER ) * - 27 ), + 76 * ( 81 * SUM ( + 11 ) ) ) + 61 * - 59 col0
----
-57
-3510

query I rowsort
SELECT ALL 69 + ( COALESCE ( - 5, + + 66 ) ) - - - 90
----
-26

query III rowsort
SELECT + 63 AS col2, - ( - 13 ) * - 75 AS col0, + 49 AS col2
----
63
-975
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8369
SELECT ALL - 28 DIV + + 51 * 7
----
0

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL - 28 / + + 51 * 7
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8370
SELECT 74, - 61 * - COALESCE ( CAST( - NULLIF ( + 0, + 76 ) AS SIGNED ), - COUNT( * ) DIV - COUNT( * ) - - - 69 * - 69 ) * SUM( ALL - 53 + + 4 ) col2
----
74
0

skipif mysql # not compatible
query II rowsort label-8370
SELECT 74, - 61 * - COALESCE ( CAST ( - NULLIF ( + 0, + 76 ) AS INTEGER ), - COUNT ( * ) / - COUNT ( * ) - - - 69 * - 69 ) * SUM ( ALL - 53 + + 4 ) col2
----
74
0

query I rowsort
SELECT ALL + COALESCE ( 74, - - 71 ) + - 1
----
73

query I rowsort
SELECT ALL + 59 + + 54
----
113

query I rowsort
SELECT 3 - - + 87
----
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL + 76 * + ( - - CASE WHEN NULL BETWEEN - 46 AND 89 THEN 16 ELSE + 58 + + 59 END ) + CASE COUNT( * ) WHEN ( 38 ) * - 63 + 44 * 27 THEN NULL WHEN - 17 THEN + 91 * + 94 - 56 ELSE 85 END AS col2
----
8977

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + 76 * + ( - - CASE WHEN NULL BETWEEN - 46 AND 89 THEN 16 ELSE + 58 + + 59 END ) + CASE COUNT ( * ) WHEN ( 38 ) * - 63 + 44 * 27 THEN NULL WHEN - 17 THEN + 91 * + 94 - 56 ELSE 85 END AS col2
----
8977

query I rowsort
SELECT ALL - + 3 + + - 83
----
-86

query I rowsort
SELECT DISTINCT + 43 + 5 AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8378
SELECT ALL 59 * + NULLIF ( - 57, - 71 ) * 78 * - 47 * - COUNT( * ) + 29 + + - CAST( + 79 AS SIGNED ) - + + 4 AS col1
----
-12328812

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL 59 * + NULLIF ( - 57, - 71 ) * 78 * - 47 * - COUNT ( * ) + 29 + + - CAST ( + 79 AS INTEGER ) - + + 4 AS col1
----
-12328812

query II rowsort
SELECT 67 AS col0, 78
----
67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL + COUNT( * ) * - 35 * 59
----
-2065

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL + COUNT ( * ) * - 35 * 59
----
-2065

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

query I rowsort
SELECT DISTINCT - 82 - - 77 col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT MIN( ALL 7 ) + 86 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8383
SELECT MIN ( ALL 7 ) + 86 AS col1
----
93

query I rowsort
SELECT CASE 42 WHEN + 85 THEN + 62 ELSE NULL END * + + 96 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8385
SELECT 4 col1, - 45 + + CASE - CAST( + - ( + CAST( - + COUNT( * ) AS SIGNED ) ) AS SIGNED ) WHEN 62 THEN - 76 END * 92
----
4
NULL

skipif mysql # not compatible
query II rowsort label-8385
SELECT 4 col1, - 45 + + CASE - CAST ( + - ( + CAST ( - + COUNT ( * ) AS INTEGER ) ) AS INTEGER ) WHEN 62 THEN - 76 END * 92
----
4
NULL

query I rowsort
SELECT DISTINCT - 49 - 50
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8387
SELECT ALL - 40 DIV - 17 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL - 40 / - 17 AS col0
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT ALL - MIN( 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL - MIN ( 86 )
----
-86

query II rowsort
SELECT ALL - 13 * - 87 AS col2, 84 + 89
----
1131
173

query I rowsort
SELECT 62 * 53
----
3286

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT - 96 * - 10 + - 77 DIV + ( - NULLIF ( + + 30, + ( + - AVG ( - - 48 ) ) ) ) col2
----
962

skipif mysql # not compatible
query I rowsort label-8392
SELECT - 96 * - 10 + - 77 / + ( - NULLIF ( + + 30, + ( + - AVG ( - - 48 ) ) ) ) col2
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT DISTINCT + 68 * - NULLIF ( - NULLIF ( - - COUNT( * ), + - ( - 85 ) + + ( + - CASE - ( - - 62 ) WHEN - - COUNT( * ) * 89 + - 64 + + 56 THEN 40 * + 92 WHEN + 40 * 44 + + NULLIF ( 64, + COUNT( * ) * 49 ) THEN NULL END ) * - 76 ), 98 / 53 + 13 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT + 68 * - NULLIF ( - NULLIF ( - - COUNT ( * ), + - ( - 85 ) + + ( + - CASE - ( - - 62 ) WHEN - - COUNT ( * ) * 89 + - 64 + + 56 THEN 40 * + 92 WHEN + 40 * 44 + + NULLIF ( 64, + COUNT ( * ) * 49 ) THEN NULL END ) * - 76 ), 98 / 53 + 13 ) AS col2
----
68

query II rowsort
SELECT 52 + 36, - 58 AS col1
----
88
-58

query II rowsort
SELECT ALL + 50 * + - 15 col1, 4 AS col2
----
-750
4

query I rowsort
SELECT 61 + 40
----
101

query I rowsort
SELECT ALL 70 + + + NULLIF ( + + 20, + - 44 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT 77 - + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8398
SELECT 77 - + COUNT ( * ) AS col0
----
76

query I rowsort
SELECT ALL - 51 + - 51 col1
----
-102

query I rowsort
SELECT ALL + - 39 + - + 69 * + + 60
----
-4179

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL - MIN( DISTINCT - - 17 ) + + 22 * - - 42
----
907

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL - MIN ( DISTINCT - - 17 ) + + 22 * - - 42
----
907

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT + 11 + - - COUNT( * ) * - - 30 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8402
SELECT + 11 + - - COUNT ( * ) * - - 30 AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT ALL 50 DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL 50 / - 47
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT 71 + + - 51 + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8404
SELECT 71 + + - 51 + + COUNT ( * )
----
21

query I rowsort
SELECT - 94 - + 7
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8406
SELECT DISTINCT - COALESCE ( 92, + COUNT( * ), + COUNT( * ) DIV 90 - 65 + - 74 ) * ( + - 49 )
----
4508

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT - COALESCE ( 92, + COUNT ( * ), + COUNT ( * ) / 90 - 65 + - 74 ) * ( + - 49 )
----
4508

query I rowsort
SELECT - 38 + + 38 - + ( + 49 ) + + NULLIF ( - 61, + - 76 * - 91 * - - 66 )
----
-110

query I rowsort
SELECT + 60 + - 42
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8409
SELECT DISTINCT COUNT( * ) * + 55 DIV - 33 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT COUNT ( * ) * + 55 / - 33 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT COALESCE ( - 75, - - 36 * 73 - COALESCE ( + 2, - 4 * + - 66 ) + + MAX( ALL + 5 ) * - + 19 - - + 85 * - COUNT( * ) ) + ( MIN( + 84 ) )
----
9

skipif mysql # not compatible
query I rowsort label-8410
SELECT COALESCE ( - 75, - - 36 * 73 - COALESCE ( + 2, - 4 * + - 66 ) + + MAX ( ALL + 5 ) * - + 19 - - + 85 * - COUNT ( * ) ) + ( MIN ( + 84 ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT NULLIF ( - 16, - COUNT( * ) - - COUNT( * ) / 65 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT NULLIF ( - 16, - COUNT ( * ) - - COUNT ( * ) / 65 ) col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8412
SELECT - 36 + + 65 + + + 89 / CASE + 26 WHEN + MIN( ALL - - 82 ) THEN 53 ELSE NULL END / - + MAX( + + 47 ) AS col1, - 80 col2
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-8412
SELECT - 36 + + 65 + + + 89 / CASE + 26 WHEN + MIN ( ALL - - 82 ) THEN 53 ELSE NULL END / - + MAX ( + + 47 ) AS col1, - 80 col2
----
NULL
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT - 10 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8413
SELECT - 10 / 82
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8414
SELECT ALL 80 DIV + 30 + + 38 * + COUNT( * ) col2
----
40

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL 80 / + 30 + + 38 * + COUNT ( * ) col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT - 79 * MAX( 3 ) + COUNT( 43 ) * + + 74
----
-163

skipif mysql # not compatible
query I rowsort label-8415
SELECT - 79 * MAX ( 3 ) + COUNT ( 43 ) * + + 74
----
-163

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

skipif mysql # not compatible
query I rowsort label-8416
SELECT + - SUM ( - 87 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8417
SELECT + - CASE - CAST( NULL AS SIGNED ) WHEN - 81 + 23 THEN + - 39 * + 17 * ( 28 ) WHEN 67 THEN NULL END / + + 90 * - ( - - COUNT( * ) ) + - 4 * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT + - CASE - CAST ( NULL AS INTEGER ) WHEN - 81 + 23 THEN + - 39 * + 17 * ( 28 ) WHEN 67 THEN NULL END / + + 90 * - ( - - COUNT ( * ) ) + - 4 * 79
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT 46 * + NULLIF ( - ( - 11 ), 77 ) / + + 12 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT 46 * + NULLIF ( - ( - 11 ), 77 ) / + + 12 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8419
SELECT + CASE - + ( + + 78 ) WHEN + 72 THEN - 88 - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT + CASE - + ( + + 78 ) WHEN + 72 THEN - 88 - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + + 48, 72 )
----
-48

query I rowsort
SELECT ALL 6 * + 41
----
246

query I rowsort
SELECT 73 * - 83 + + 98 AS col2
----
-5961

query I rowsort
SELECT DISTINCT - 36 * + 13
----
-468

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

skipif mysql # not compatible
query I rowsort label-8424
SELECT - CAST ( NULL AS INTEGER ) + + ( 60 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT + 82 * - 18 * - ( COUNT( * ) )
----
1476

skipif mysql # not compatible
query I rowsort label-8425
SELECT + 82 * - 18 * - ( COUNT ( * ) )
----
1476

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8426
SELECT - MIN( + 4 ) + - NULLIF ( COUNT( * ), 81 * + COUNT( * ) + 89 / + AVG ( DISTINCT + 51 ) ) + + 3 + - - 66, - CAST( NULL AS DECIMAL ) / - 28 + 70 AS col1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-8426
SELECT - MIN ( + 4 ) + - NULLIF ( COUNT ( * ), 81 * + COUNT ( * ) + 89 / + AVG ( DISTINCT + 51 ) ) + + 3 + - - 66, - CAST ( NULL AS REAL ) / - 28 + 70 AS col1
----
64
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8427
SELECT - CAST( + 57 AS SIGNED ) + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-8427
SELECT - CAST ( + 57 AS INTEGER ) + COUNT ( * )
----
-56

query I rowsort
SELECT DISTINCT - 64 + + 7
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL COALESCE ( - COUNT( * ), + + 73 * 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL COALESCE ( - COUNT ( * ), + + 73 * 46 )
----
-1

query II rowsort
SELECT 34 AS col0, 86 AS col0
----
34
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT - 95 * + + COALESCE ( 5, - 90 * - 4 ) + + + SUM( DISTINCT + 92 )
----
-383

skipif mysql # not compatible
query I rowsort label-8431
SELECT - 95 * + + COALESCE ( 5, - 90 * - 4 ) + + + SUM ( DISTINCT + 92 )
----
-383

query I rowsort
SELECT ALL + 1 * - ( - 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT - - MAX( ALL + - ( - 13 ) ) AS col0, + 19 AS col0
----
13
19

skipif mysql # not compatible
query II rowsort label-8433
SELECT - - MAX ( ALL + - ( - 13 ) ) AS col0, + 19 AS col0
----
13
19

query I rowsort
SELECT + 92 + + - 49 AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT ALL + AVG ( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL + AVG ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8436
SELECT ALL - - ( + AVG ( ALL 28 ) ) - - COUNT( * ) / - - COUNT( DISTINCT - 16 ) + 12 + + + 41 + - - AVG ( - - CAST( NULL AS SIGNED ) ) / + - 91 * - CAST( NULL AS SIGNED ) * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - - ( + AVG ( ALL 28 ) ) - - COUNT ( * ) / - - COUNT ( DISTINCT - 16 ) + 12 + + + 41 + - - AVG ( - - CAST ( NULL AS INTEGER ) ) / + - 91 * - CAST ( NULL AS INTEGER ) * - 88
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8437
SELECT DISTINCT - 37, - 15 + + COUNT( * ) AS col1
----
-37
-14

skipif mysql # not compatible
query II rowsort label-8437
SELECT DISTINCT - 37, - 15 + + COUNT ( * ) AS col1
----
-37
-14

query I rowsort
SELECT - 38 + 53 AS col2
----
15

query II rowsort
SELECT DISTINCT 45, 4 AS col1
----
45
4

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

query I rowsort
SELECT ALL - 0 * + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ( COUNT( ALL - - 37 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8442
SELECT ( COUNT ( ALL - - 37 ) ) AS col1
----
1

query I rowsort
SELECT ALL - 35 * + + 97 * + 42 + + + 72
----
-142518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8444
SELECT + COALESCE ( ( - 54 ), - 24 ) DIV - + NULLIF ( - MIN( DISTINCT + - 57 ), - 58 * - 28 + + + 16 * CAST( COUNT( * ) AS SIGNED ) * + 71 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8444
SELECT + COALESCE ( ( - 54 ), - 24 ) / - + NULLIF ( - MIN ( DISTINCT + - 57 ), - 58 * - 28 + + + 16 * CAST ( COUNT ( * ) AS INTEGER ) * + 71 ) AS col2
----
0

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

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

query I rowsort
SELECT + ( + 35 ) * + 79
----
2765

query II rowsort
SELECT + 6 * 52 AS col2, + 97 + 6 AS col0
----
312
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + ( + MIN( DISTINCT - 26 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-8448
SELECT + ( + MIN ( DISTINCT - 26 ) )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8449
SELECT + CAST( + COUNT( * ) AS SIGNED ) - - ( - + 15 )
----
-14

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8450
SELECT ALL CAST( - + 17 AS SIGNED ) * + + COALESCE ( COALESCE ( 8, + 59 ), 46 + - CAST( - 25 AS SIGNED ), + + 34 * + COUNT( * ) DIV - AVG ( DISTINCT + + 51 ) ) + + 87 + 6 DIV 21
----
-49

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL CAST ( - + 17 AS INTEGER ) * + + COALESCE ( COALESCE ( 8, + 59 ), 46 + - CAST ( - 25 AS INTEGER ), + + 34 * + COUNT ( * ) / - AVG ( DISTINCT + + 51 ) ) + + 87 + 6 / 21
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8451
SELECT + ( + 3 ) - + SUM( DISTINCT + + 22 ) + CASE - 87 WHEN - 15 THEN 19 + 23 * + - 33 * - COUNT( * ) + COUNT( * ) / - 70 + + 61 * 24 END + ( - CAST( - 20 AS SIGNED ) ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8451
SELECT + ( + 3 ) - + SUM ( DISTINCT + + 22 ) + CASE - 87 WHEN - 15 THEN 19 + 23 * + - 33 * - COUNT ( * ) + COUNT ( * ) / - 70 + + 61 * 24 END + ( - CAST ( - 20 AS INTEGER ) ) * 15
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL MIN( DISTINCT - 59 ) * 52 + 29 * - 37 + + 38 AS col0
----
-4103

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL MIN ( DISTINCT - 59 ) * 52 + 29 * - 37 + + 38 AS col0
----
-4103

query I rowsort
SELECT ALL - 20 * 99 * + 26 + - COALESCE ( 56, + - 71 ) + 89 AS col2
----
-51447

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8455
SELECT ALL + 87 * + 30 AS col1, 76 DIV 21 + - + 13 DIV + 13 - - COUNT( * )
----
2610
3

skipif mysql # not compatible
query II rowsort label-8455
SELECT ALL + 87 * + 30 AS col1, 76 / 21 + - + 13 / + 13 - - COUNT ( * )
----
2610
3

query I rowsort
SELECT CASE WHEN NOT NULL NOT BETWEEN ( NULL ) AND NULL THEN + 29 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT COALESCE ( - MIN( + 92 ), + - 70, 76 )
----
-92

skipif mysql # not compatible
query I rowsort label-8458
SELECT COALESCE ( - MIN ( + 92 ), + - 70, 76 )
----
-92

query I rowsort
SELECT 15 * + - 34 + 55 * 49 + + 86
----
2271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8460
SELECT NULLIF ( - 33, + + NULLIF ( + COUNT( * ), + 79 / CAST( + 81 AS SIGNED ) * + + COUNT( * ) ) + - + COUNT( * ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8460
SELECT NULLIF ( - 33, + + NULLIF ( + COUNT ( * ), + 79 / CAST ( + 81 AS INTEGER ) * + + COUNT ( * ) ) + - + COUNT ( * ) ) AS col0
----
-33

query I rowsort
SELECT + - 49 * - 91 + - + 44 AS col2
----
4415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8462
SELECT + + 91 + - - SUM( DISTINCT + + 43 ) DIV 48 * - 85 * + - 56 DIV - 11
----
91

skipif mysql # not compatible
query I rowsort label-8462
SELECT + + 91 + - - SUM ( DISTINCT + + 43 ) / 48 * - 85 * + - 56 / - 11
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8463
SELECT ALL + ( 1 ) * - 6 - + 56 / - - 52 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL + ( 1 ) * - 6 - + 56 / - - 52 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8465
SELECT + - 16 * - COALESCE ( - - 32, CAST( NULL AS SIGNED ) ) * - NULLIF ( - 59, 27 + COUNT( * ) ) AS col0
----
30208

skipif mysql # not compatible
query I rowsort label-8465
SELECT + - 16 * - COALESCE ( - - 32, CAST ( NULL AS INTEGER ) ) * - NULLIF ( - 59, 27 + COUNT ( * ) ) AS col0
----
30208

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT ALL + - ( - 95 ) DIV - + 24
----
-3

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL + - ( - 95 ) / - + 24
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8467
SELECT + 88 * + 95 + COUNT( - 58 ) AS col0, 50
----
8361
50

skipif mysql # not compatible
query II rowsort label-8467
SELECT + 88 * + 95 + COUNT ( - 58 ) AS col0, 50
----
8361
50

query I rowsort
SELECT ALL 12 - 73 col1
----
-61

query II rowsort
SELECT ALL + ( + + 70 ) * + ( + - 60 ), 75 AS col1
----
-4200
75

query I rowsort
SELECT - 56 + + - 17 AS col1
----
-73

query I rowsort
SELECT + 95 + + ( + 1 )
----
96

query I rowsort
SELECT ALL + + 67 * - - 44
----
2948

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT + 9 + SUM( DISTINCT 31 ) + 30 * - 74 AS col1
----
-2180

skipif mysql # not compatible
query I rowsort label-8473
SELECT + 9 + SUM ( DISTINCT 31 ) + 30 * - 74 AS col1
----
-2180

query II rowsort
SELECT ALL ( 21 ), + 10 * - - 62 AS col1
----
21
620

query I rowsort
SELECT ALL + + NULLIF ( - 97, + 39 + + 98 ) * + 38 AS col0
----
-3686

query I rowsort
SELECT - + 90 + - 43 AS col1
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT - + CASE + 53 WHEN - 53 THEN + + 98 * + 24 - + - 95 + - 11 / 50 * + CAST( NULL AS SIGNED ) / 1 WHEN - 89 - - 10 + + - 83 THEN NULL END + ( - 14 ) * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8477
SELECT - + CASE + 53 WHEN - 53 THEN + + 98 * + 24 - + - 95 + - 11 / 50 * + CAST ( NULL AS INTEGER ) / 1 WHEN - 89 - - 10 + + - 83 THEN NULL END + ( - 14 ) * + 71
----
NULL

query I rowsort
SELECT - 1 * + 53 * - 23 * - ( + 35 ) AS col1
----
-42665

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT - 58 + - NULLIF ( - COUNT( * ), - 5 )
----
-57

skipif mysql # not compatible
query I rowsort label-8479
SELECT - 58 + - NULLIF ( - COUNT ( * ), - 5 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT DISTINCT - 54 + 44 + + - 87 + + COUNT( * ) * + 94 * - - COUNT( * ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT - 54 + 44 + + - 87 + + COUNT ( * ) * + 94 * - - COUNT ( * ) col2
----
-3

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

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

query I rowsort
SELECT ALL - 90 + + - 70
----
-160

query I rowsort
SELECT ALL - 81 + + 99 + + - 58
----
-40

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

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

query I rowsort
SELECT + 85 * + 71 + + 78
----
6113

query I rowsort
SELECT DISTINCT + 9 + + + 37 + 1 * 18
----
64

query I rowsort
SELECT ALL 94 + - - 55
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8489
SELECT ALL COUNT( DISTINCT - 87 ) + + CAST( + 28 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL COUNT ( DISTINCT - 87 ) + + CAST ( + 28 AS INTEGER )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8490
SELECT ALL + 19 DIV ( + 29 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL + 19 / ( + 29 ) AS col1
----
0

query I rowsort
SELECT DISTINCT - 64 + 28 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT CASE - 21 WHEN 27 THEN + + NULLIF ( - - 35, + - ( + 21 ) * + + 26 + - 7 + + 62 / + COUNT( * ) + + ( ( + ( - + ( ( - COALESCE ( COALESCE ( COALESCE ( - CASE WHEN 24 IS NULL THEN NULL WHEN NOT COUNT( * ) <> - 73 * + 23 - + 43 * 32 THEN NULL ELSE COUNT( ALL - 64 ) END, + COUNT( * ) + 73 * - 33, + 56, 88 ), 11 ), - 88 ) ) ) ) ) ) * 37 ) * COUNT( * ) END * 76 + + 94 * MAX( - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT CASE - 21 WHEN 27 THEN + + NULLIF ( - - 35, + - ( + 21 ) * + + 26 + - 7 + + 62 / + COUNT ( * ) + + ( ( + ( - + ( ( - COALESCE ( COALESCE ( COALESCE ( - CASE WHEN 24 IS NULL THEN NULL WHEN NOT COUNT ( * ) <> - 73 * + 23 - + 43 * 32 THEN NULL ELSE COUNT ( ALL - 64 ) END, + COUNT ( * ) + 73 * - 33, + 56, 88 ), 11 ), - 88 ) ) ) ) ) ) * 37 ) * COUNT ( * ) END * 76 + + 94 * MAX ( - 12 )
----
NULL

query I rowsort
SELECT ALL - 46 + - 20 * - 48 - - 32
----
946

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8495
SELECT MIN( + 46 ) * - 23 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8495
SELECT MIN ( + 46 ) * - 23 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 77 * + 26
----
2002

query I rowsort
SELECT 15 * + COALESCE ( 42, + + 50 ) * - 31
----
-19530

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT 22 + ( - 83 ) + + + 19 DIV - 52 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8498
SELECT 22 + ( - 83 ) + + + 19 / - 52 AS col2
----
-61

query I rowsort
SELECT ALL 5 - + 90
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT - 2 * - 42 + - 17 * 51 DIV - 22 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-8500
SELECT - 2 * - 42 + - 17 * 51 / - 22 AS col0
----
123

query I rowsort
SELECT 54 * - - 65 * + 65 AS col0
----
228150

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT + NULLIF ( + - 29, - + 74 / + 28 + + ( + - COUNT( * ) ) ) * + 33 AS col0
----
-957

skipif mysql # not compatible
query I rowsort label-8502
SELECT + NULLIF ( + - 29, - + 74 / + 28 + + ( + - COUNT ( * ) ) ) * + 33 AS col0
----
-957

onlyif mysql # DIV for integer division: 
query I rowsort label-8503
SELECT ALL 74 DIV + 69 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL 74 / + 69 AS col0
----
1

query I rowsort
SELECT COALESCE ( - 38, + 95, + 82 ) AS col1
----
-38

query II rowsort
SELECT DISTINCT - 87 AS col0, 4 AS col0
----
-87
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8506
SELECT DISTINCT - COALESCE ( + - COALESCE ( - 82, + - 75 ), + + COUNT( * ) * + + 3 + 17 + + 7, ( 24 ) DIV 71 * - + 5 - + 73 ) AS col0, - 37 * - 11 * 11 + 40
----
-82
4517

skipif mysql # not compatible
query II rowsort label-8506
SELECT DISTINCT - COALESCE ( + - COALESCE ( - 82, + - 75 ), + + COUNT ( * ) * + + 3 + 17 + + 7, ( 24 ) / 71 * - + 5 - + 73 ) AS col0, - 37 * - 11 * 11 + 40
----
-82
4517

query I rowsort
SELECT ALL + 99 * + 26 AS col0
----
2574

query I rowsort
SELECT 15 + - + 2 + 13 + - 1
----
25

query II rowsort
SELECT DISTINCT NULLIF ( 33, - 44 ) AS col1, 18
----
33
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT ALL - COUNT( 45 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL - COUNT ( 45 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8511
SELECT 72 DIV + + 29 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8511
SELECT 72 / + + 29 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT 46 + 72 * 35 DIV + 4 AS col2
----
676

skipif mysql # not compatible
query I rowsort label-8512
SELECT 46 + 72 * 35 / + 4 AS col2
----
676

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ( - - 72 ) + + 69 * - MAX( ALL - 99 ) * + - 80 * + + 36 AS col1
----
-19673208

skipif mysql # not compatible
query I rowsort label-8513
SELECT ( - - 72 ) + + 69 * - MAX ( ALL - 99 ) * + - 80 * + + 36 AS col1
----
-19673208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8514
SELECT 34 col1, CAST( + 16 AS SIGNED ) + + + 1 + - SUM( - 75 ) + - 65 AS col2
----
34
27

skipif mysql # not compatible
query II rowsort label-8514
SELECT 34 col1, CAST ( + 16 AS INTEGER ) + + + 1 + - SUM ( - 75 ) + - 65 AS col2
----
34
27

query I rowsort
SELECT ALL + 23 * + 65
----
1495

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT COUNT( ALL + 9 ) + + + 14 + 17 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8516
SELECT COUNT ( ALL + 9 ) + + + 14 + 17 AS col0
----
32

query I rowsort
SELECT ALL - 59 + + 77 + 35 AS col2
----
53

query I rowsort
SELECT 71 * - + 57 col0
----
-4047

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

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

query I rowsort
SELECT DISTINCT - 78 + - 15
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8521
SELECT ALL - CAST( - 14 AS SIGNED ) col2, MAX( - 63 ) AS col0
----
14
-63

skipif mysql # not compatible
query II rowsort label-8521
SELECT ALL - CAST ( - 14 AS INTEGER ) col2, MAX ( - 63 ) AS col0
----
14
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8522
SELECT 15 * - 25 * - COUNT( * ) DIV - COUNT( * ) - + + 19 AS col2
----
-394

skipif mysql # not compatible
query I rowsort label-8522
SELECT 15 * - 25 * - COUNT ( * ) / - COUNT ( * ) - + + 19 AS col2
----
-394

query I rowsort
SELECT 70 * 56 AS col1
----
3920

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8524
SELECT 80 + - CAST( + 58 AS SIGNED ) DIV - 86 * 2
----
80

skipif mysql # not compatible
query I rowsort label-8524
SELECT 80 + - CAST ( + 58 AS INTEGER ) / - 86 * 2
----
80

query III rowsort
SELECT + 48, + 91 AS col1, - 4 col0
----
48
91
-4

query I rowsort
SELECT DISTINCT - 70 * - + 42
----
2940

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

query I rowsort
SELECT 2 - - - 46
----
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL + - MAX( + + COALESCE ( + + 37, - 96 ) ) - CASE + 92 WHEN + COUNT( * ) - - 25 THEN NULL WHEN + 8 THEN NULL ELSE + 27 * MIN( ALL - 95 ) * 85 - - - ( 75 ) * + - ( 18 ) + + 67 * 85 END col1
----
210943

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL + - MAX ( + + COALESCE ( + + 37, - 96 ) ) - CASE + 92 WHEN + COUNT ( * ) - - 25 THEN NULL WHEN + 8 THEN NULL ELSE + 27 * MIN ( ALL - 95 ) * 85 - - - ( 75 ) * + - ( 18 ) + + 67 * 85 END col1
----
210943

query I rowsort
SELECT ALL - CASE - 85 WHEN 52 THEN - + 71 * + 32 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-8532
SELECT ALL - 2 col2, - 30 * + + 72 * COUNT( * ) AS col2, 74 + 35 AS col2
----
-2
-2160
109

skipif mysql # not compatible
query III rowsort label-8532
SELECT ALL - 2 col2, - 30 * + + 72 * COUNT ( * ) AS col2, 74 + 35 AS col2
----
-2
-2160
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8533
SELECT DISTINCT - CAST( - ( 4 ) AS SIGNED ) * + 52 + - 9 col2
----
199

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT - CAST ( - ( 4 ) AS INTEGER ) * + 52 + - 9 col2
----
199

query I rowsort
SELECT 92 * 56 - + + 17 + - 54 + + + 56 AS col1
----
5137

query I rowsort
SELECT + 38 * + 83 AS col0
----
3154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT CAST( NULL AS SIGNED ) * - 6 + + COALESCE ( + 84, - 57 * - - 72 * 36 - - 6 / 39 ) + + 10 * + + 96 * + 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT CAST ( NULL AS INTEGER ) * - 6 + + COALESCE ( + 84, - 57 * - - 72 * 36 - - 6 / 39 ) + + 10 * + + 96 * + 83 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT - 47 - + SUM( + 6 )
----
-53

skipif mysql # not compatible
query I rowsort label-8537
SELECT - 47 - + SUM ( + 6 )
----
-53

query I rowsort
SELECT 40 + 83 * 17 * 88 * 4
----
496712

onlyif mysql # aggregate syntax: 
query II rowsort label-8539
SELECT + + 84 AS col2, 66 * 85 + COUNT( * ) col0
----
84
5611

skipif mysql # not compatible
query II rowsort label-8539
SELECT + + 84 AS col2, 66 * 85 + COUNT ( * ) col0
----
84
5611

query I rowsort
SELECT - 4 + 7 AS col1
----
3

query I rowsort
SELECT ALL - 67 + - 75
----
-142

query I rowsort
SELECT DISTINCT + 45 + + - 11 * - 12
----
177

query I rowsort
SELECT ALL 57 + - 19
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8544
SELECT + 27 + + - 97 - + COUNT( * ) + - + 76 col0, 40
----
-147
40

skipif mysql # not compatible
query II rowsort label-8544
SELECT + 27 + + - 97 - + COUNT ( * ) + - + 76 col0, 40
----
-147
40

query II rowsort
SELECT ALL + 7 AS col0, + 55
----
7
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL - NULLIF ( + + COUNT( * ), - 29 ) + - 75 * + 11
----
-826

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL - NULLIF ( + + COUNT ( * ), - 29 ) + - 75 * + 11
----
-826

query II rowsort
SELECT DISTINCT 19 + + NULLIF ( - 46, 30 ) col0, 28 * + + 35
----
-27
980

query II rowsort
SELECT - 42 AS col0, 17
----
-42
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT ALL + 52 + + ( + 39 ) * SUM( - 71 )
----
-2717

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL + 52 + + ( + 39 ) * SUM ( - 71 )
----
-2717

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT DISTINCT + 93 + - - COUNT( * ) * + 92 + - + 30 * + - 9 AS col0
----
455

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT + 93 + - - COUNT ( * ) * + 92 + - + 30 * + - 9 AS col0
----
455

query I rowsort
SELECT + 66 * - - 95
----
6270

query I rowsort
SELECT - 72 + - 54 - + 33
----
-159

query I rowsort
SELECT ALL 48 + - 81
----
-33

query I rowsort
SELECT + 36 + + 35
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8555
SELECT - COALESCE ( + SUM( DISTINCT - ( - 57 ) ), - 6 * + 99 + + - 4, + + 93 * - 40 DIV 91 ), - 44 * + NULLIF ( + COUNT( * ), + - 82 ) AS col2
----
-57
-44

skipif mysql # not compatible
query II rowsort label-8555
SELECT - COALESCE ( + SUM ( DISTINCT - ( - 57 ) ), - 6 * + 99 + + - 4, + + 93 * - 40 / 91 ), - 44 * + NULLIF ( + COUNT ( * ), + - 82 ) AS col2
----
-57
-44

query I rowsort
SELECT + 0 * 4 AS col2
----
0

query I rowsort
SELECT - 6 * - + 41 * - 72 AS col2
----
-17712

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT + COUNT( * ) + ( 7 )
----
8

skipif mysql # not compatible
query I rowsort label-8558
SELECT + COUNT ( * ) + ( 7 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT 57 * 37 - + + 23 * + CASE - 71 WHEN - ( + - CASE - COALESCE ( - - SUM( ALL 20 ), CASE - 51 WHEN 64 * - COALESCE ( - - COUNT( ALL - ( 58 ) ), + 2, ( 99 ) ) THEN NULL WHEN - COUNT( * ) THEN NULL WHEN 86 THEN NULL ELSE - COALESCE ( - 44, 57 ) END, ( + 69 ) * + 25 ) WHEN - COUNT( * ) THEN NULL WHEN - 71 * + SUM( DISTINCT 11 * 65 ) - + 98 * 85 THEN 7 + + COUNT( * ) WHEN COUNT( * ) * 37 THEN ( 51 ) / + 42 + + 3 END ) * 35 THEN 78 * 64 WHEN - 91 THEN 97 WHEN 55 * + 85 THEN 90 / 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT 57 * 37 - + + 23 * + CASE - 71 WHEN - ( + - CASE - COALESCE ( - - SUM ( ALL 20 ), CASE - 51 WHEN 64 * - COALESCE ( - - COUNT ( ALL - ( 58 ) ), + 2, ( 99 ) ) THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 86 THEN NULL ELSE - COALESCE ( - 44, 57 ) END, ( + 69 ) * + 25 ) WHEN - COUNT ( * ) THEN NULL WHEN - 71 * + SUM ( DISTINCT 11 * 65 ) - + 98 * 85 THEN 7 + + COUNT ( * ) WHEN COUNT ( * ) * 37 THEN ( 51 ) / + 42 + + 3 END ) * 35 THEN 78 * 64 WHEN - 91 THEN 97 WHEN 55 * + 85 THEN 90 / 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT ( + + CASE + - 70 WHEN - - MIN( ALL 3 ) THEN + 13 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT ( + + CASE + - 70 WHEN - - MIN ( ALL 3 ) THEN + 13 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL 76 * + + MIN( ALL + 22 )
----
1672

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL 76 * + + MIN ( ALL + 22 )
----
1672

query I rowsort
SELECT - 46 * 75 AS col2
----
-3450

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT - 22 DIV + - 18 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8563
SELECT - 22 / + - 18 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT - 93 * + 54 + 14 * - + 90 * - MAX( + 83 ) AS col2
----
99558

skipif mysql # not compatible
query I rowsort label-8564
SELECT - 93 * + 54 + 14 * - + 90 * - MAX ( + 83 ) AS col2
----
99558

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL + - NULLIF ( + COUNT( * ), + - 75 * - 23 * + 54 + - 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL + - NULLIF ( + COUNT ( * ), + - 75 * - 23 * + 54 + - 2 )
----
-1

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

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

query I rowsort
SELECT 38 * - 99 + - + ( + - 30 )
----
-3732

query I rowsort
SELECT + + COALESCE ( + 91, 92 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - 31 + + COALESCE ( + NULLIF ( + 73, 81 ), - COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-8569
SELECT - 31 + + COALESCE ( + NULLIF ( + 73, 81 ), - COUNT ( * ) )
----
42

query I rowsort
SELECT - 75 * + 33
----
-2475

query I rowsort
SELECT - 45 + - 54 * ( - - 15 ) * + 77
----
-62415

query I rowsort
SELECT ALL - + 72 * - + 98 * + 82 * + 63 - 59 AS col0
----
36451237

query I rowsort
SELECT + + COALESCE ( 71, - - ( - 32 ) )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8574
SELECT DISTINCT - 7 * + 31 + + 48 DIV - 99 * + 70 - - - 11
----
-228

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT - 7 * + 31 + + 48 / - 99 * + 70 - - - 11
----
-228

query I rowsort
SELECT - + 11 * - + 45 + + 98 - - 43 * + 75 - + 16 + + ( - - ( - - 83 ) )
----
3885

query I rowsort
SELECT ALL - + 80 * + ( + ( + 98 ) ) AS col0
----
-7840

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

skipif mysql # not compatible
query I rowsort label-8577
SELECT + + 61 / 4 - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT - ( - NULLIF ( + + 8, - - 34 + + - 13 * + - CAST( - - 46 AS SIGNED ) ) ) col0
----
8

skipif mysql # not compatible
query I rowsort label-8578
SELECT - ( - NULLIF ( + + 8, - - 34 + + - 13 * + - CAST ( - - 46 AS INTEGER ) ) ) col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8579
SELECT - 5 DIV - COUNT( * ), 48 * - 76 AS col2
----
5
-3648

skipif mysql # not compatible
query II rowsort label-8579
SELECT - 5 / - COUNT ( * ), 48 * - 76 AS col2
----
5
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT DISTINCT + 77 - - COUNT( * ) + + - 59 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT + 77 - - COUNT ( * ) + + - 59 AS col2
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8582
SELECT + COALESCE ( ( - 31 ), 44 ) DIV CAST( 40 AS SIGNED ), 48 + + - NULLIF ( - 30, - ( + + COUNT( * ) ) ) - - - ( COUNT( * ) ) * + 53 * + 74 + ( + - 28 ) AS col2
----
0
-3872

skipif mysql # not compatible
query II rowsort label-8582
SELECT + COALESCE ( ( - 31 ), 44 ) / CAST ( 40 AS INTEGER ), 48 + + - NULLIF ( - 30, - ( + + COUNT ( * ) ) ) - - - ( COUNT ( * ) ) * + 53 * + 74 + ( + - 28 ) AS col2
----
0
-3872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8583
SELECT + 82 * - SUM( 92 ) / CASE - + CAST( NULL AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) + - - 79 THEN - + COUNT( * ) * 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT + 82 * - SUM ( 92 ) / CASE - + CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) + - - 79 THEN - + COUNT ( * ) * 68 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8584
SELECT ALL 88 * + 97 * 49 AS col0, - 94 * MIN( DISTINCT - 96 ) * + 60 * + CASE + COUNT( * ) WHEN + - 73 THEN + 76 * + 82 + - - COUNT( ALL - - 4 ) END AS col2
----
418264
NULL

skipif mysql # not compatible
query II rowsort label-8584
SELECT ALL 88 * + 97 * 49 AS col0, - 94 * MIN ( DISTINCT - 96 ) * + 60 * + CASE + COUNT ( * ) WHEN + - 73 THEN + 76 * + 82 + - - COUNT ( ALL - - 4 ) END AS col2
----
418264
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8585
SELECT + 0 + + + 96 DIV - 14 AS col2, 77 DIV - 70 + - COALESCE ( - 7, + 31 ) - + 68 + - COALESCE ( - 4, SUM( DISTINCT + 5 ) * + MAX( ALL - 20 ) * CAST( NULL AS SIGNED ) - - - 36 + 60 + 91 DIV ( + 31 + + 17 ) + 84 * 96 + 39, - 44 * - 29 + 80 ) col2
----
-6
-58

skipif mysql # not compatible
query II rowsort label-8585
SELECT + 0 + + + 96 / - 14 AS col2, 77 / - 70 + - COALESCE ( - 7, + 31 ) - + 68 + - COALESCE ( - 4, SUM ( DISTINCT + 5 ) * + MAX ( ALL - 20 ) * CAST ( NULL AS INTEGER ) - - - 36 + 60 + 91 / ( + 31 + + 17 ) + 84 * 96 + 39, - 44 * - 29 + 80 ) col2
----
-6
-58

query II rowsort
SELECT ALL 90 col1, 18
----
90
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8587
SELECT + 46 * + CASE + + COALESCE ( - 21, + 31 + + NULLIF ( + 65, 31 ) ) WHEN + 99 THEN NULL WHEN + CASE 80 WHEN - CAST( + 52 AS SIGNED ) THEN AVG ( + 22 ) ELSE - ( - CAST( + COUNT( * ) AS SIGNED ) ) - MAX( DISTINCT 21 ) END THEN 24 * + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT + 46 * + CASE + + COALESCE ( - 21, + 31 + + NULLIF ( + 65, 31 ) ) WHEN + 99 THEN NULL WHEN + CASE 80 WHEN - CAST ( + 52 AS INTEGER ) THEN AVG ( + 22 ) ELSE - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) - MAX ( DISTINCT 21 ) END THEN 24 * + 8 END
----
NULL

query I rowsort
SELECT + 22 + - 62 + + - 42 AS col2
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8589
SELECT + COALESCE ( - MAX( DISTINCT 94 ), 9 * 28, MAX( + + 22 ) ) DIV - + ( 17 ) col1
----
5

skipif mysql # not compatible
query I rowsort label-8589
SELECT + COALESCE ( - MAX ( DISTINCT 94 ), 9 * 28, MAX ( + + 22 ) ) / - + ( 17 ) col1
----
5

query I rowsort
SELECT + 16 * - + 82 * + 13 * 9 AS col0
----
-153504

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT ALL - 74 DIV + 43 + 73
----
72

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL - 74 / + 43 + 73
----
72

query II rowsort
SELECT + 35, - 71 AS col0
----
35
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8593
SELECT DISTINCT + + 85 AS col0, - 87 * + - CAST( NULL AS SIGNED )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-8593
SELECT DISTINCT + + 85 AS col0, - 87 * + - CAST ( NULL AS INTEGER )
----
85
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8594
SELECT ALL + COUNT( * ) * + - CASE + 98 WHEN + 14 THEN 52 WHEN + 8 THEN NULL END * + CAST( NULL AS DECIMAL ) + - + 80 + + - 33 * + CAST( + 85 AS DECIMAL ) / COUNT( * ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + COUNT ( * ) * + - CASE + 98 WHEN + 14 THEN 52 WHEN + 8 THEN NULL END * + CAST ( NULL AS REAL ) + - + 80 + + - 33 * + CAST ( + 85 AS REAL ) / COUNT ( * ) + 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8595
SELECT - + 1 * + 38 * + + 55 AS col1, COALESCE ( CASE 89 WHEN + + MIN( + - 29 ) THEN 50 WHEN - MIN( + + 48 ) THEN - 45 WHEN + 16 * - MAX( + ( - + 52 ) ) THEN - 9 * - 29 + CAST( NULL AS SIGNED ) END, 16 ) * 61
----
-2090
976

skipif mysql # not compatible
query II rowsort label-8595
SELECT - + 1 * + 38 * + + 55 AS col1, COALESCE ( CASE 89 WHEN + + MIN ( + - 29 ) THEN 50 WHEN - MIN ( + + 48 ) THEN - 45 WHEN + 16 * - MAX ( + ( - + 52 ) ) THEN - 9 * - 29 + CAST ( NULL AS INTEGER ) END, 16 ) * 61
----
-2090
976

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT ALL - 10 / 89 + - 18 + + + CASE + 2 WHEN 92 THEN + - CASE + + 49 WHEN 46 THEN NULL ELSE COUNT( ALL - 41 ) + + 29 END * + 90 END / - - 58 - + COUNT( * ) + 28 - - + 14 * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL - 10 / 89 + - 18 + + + CASE + 2 WHEN 92 THEN + - CASE + + 49 WHEN 46 THEN NULL ELSE COUNT ( ALL - 41 ) + + 29 END * + 90 END / - - 58 - + COUNT ( * ) + 28 - - + 14 * 85
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8597
SELECT DISTINCT + - 74 DIV + 4 + - + 81
----
-99

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT + - 74 / + 4 + - + 81
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8598
SELECT - + COALESCE ( + - COUNT( * ), NULLIF ( - 41, - 45 * + 2 * + + 60 ) + ( - + 68 ) + + AVG ( DISTINCT 90 ) * + - 0 DIV - 47 + + - 27 ) * - COUNT( * ) DIV - 87 * + COUNT( * ) + + - 98 DIV + 24 + + 47 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8598
SELECT - + COALESCE ( + - COUNT ( * ), NULLIF ( - 41, - 45 * + 2 * + + 60 ) + ( - + 68 ) + + AVG ( DISTINCT 90 ) * + - 0 / - 47 + + - 27 ) * - COUNT ( * ) / - 87 * + COUNT ( * ) + + - 98 / + 24 + + 47 AS col0
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT 70 - + + MAX( - 90 ) * + - 33 col0
----
-2900

skipif mysql # not compatible
query I rowsort label-8600
SELECT 70 - + + MAX ( - 90 ) * + - 33 col0
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT + COALESCE ( + MAX( + - 12 ), + - 17 * ( SUM( ALL + - 80 ) ) + + 9 )
----
-12

skipif mysql # not compatible
query I rowsort label-8601
SELECT + COALESCE ( + MAX ( + - 12 ), + - 17 * ( SUM ( ALL + - 80 ) ) + + 9 )
----
-12

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8603
SELECT + + COUNT( * ) AS col1, + 90 * - + ( - 84 ) + - - 63 - + 91
----
1
7532

skipif mysql # not compatible
query II rowsort label-8603
SELECT + + COUNT ( * ) AS col1, + 90 * - + ( - 84 ) + - - 63 - + 91
----
1
7532

query III rowsort
SELECT DISTINCT + + 3 * - - ( + 96 ) AS col0, 17 AS col1, + - 68
----
288
17
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-8605
SELECT ( 57 ) + - COUNT( * ), - ( + 28 ) AS col0
----
56
-28

skipif mysql # not compatible
query II rowsort label-8605
SELECT ( 57 ) + - COUNT ( * ), - ( + 28 ) AS col0
----
56
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8606
SELECT ALL + 44 - - 55 DIV 68
----
44

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL + 44 - - 55 / 68
----
44

query I rowsort
SELECT 49 + - - 47 + ( 57 ) AS col0
----
153

query II rowsort
SELECT ALL + 93 AS col2, - 72
----
93
-72

query I rowsort
SELECT 81 + + 37 - + - 3
----
121

query I rowsort
SELECT DISTINCT + 73 * - ( 86 )
----
-6278

query II rowsort
SELECT 90 + - 22 AS col1, - 62 + + 53 * 47 * - + 15
----
68
-37427

query I rowsort
SELECT 0 + + 86 * - 71
----
-6106

query I rowsort
SELECT 86 * + 18
----
1548

query I rowsort
SELECT NULLIF ( - 27, - + 57 ) * - + 88
----
2376

query II rowsort
SELECT 25 + - 68 AS col1, 22
----
-43
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8616
SELECT ALL ( + - 56 ) DIV 9
----
-6

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL ( + - 56 ) / 9
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8617
SELECT DISTINCT CAST( - 65 AS SIGNED ) * + COALESCE ( + 47, 16 ) AS col1
----
-3055

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT CAST ( - 65 AS INTEGER ) * + COALESCE ( + 47, 16 ) AS col1
----
-3055

query I rowsort
SELECT 21 * + 89 col2
----
1869

query I rowsort
SELECT ALL - 57 + + 56 + - 41 * 15
----
-616

query I rowsort
SELECT 11 + + + 66
----
77

query I rowsort
SELECT NULLIF ( 86, 33 + 77 * + + 57 ) - - 72
----
158

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8622
SELECT 35 DIV 89 + - COALESCE ( + - NULLIF ( 64, NULLIF ( + CAST( NULL AS SIGNED ), - ( - 24 ) + - ( - 59 ) + + 13 * - + 19 ) * - 4 * + ( 55 ) ), 37 + + - 25 + - - 4 * + 80 * - 81, 86 ) + - 96 DIV 88
----
63

skipif mysql # not compatible
query I rowsort label-8622
SELECT 35 / 89 + - COALESCE ( + - NULLIF ( 64, NULLIF ( + CAST ( NULL AS INTEGER ), - ( - 24 ) + - ( - 59 ) + + 13 * - + 19 ) * - 4 * + ( 55 ) ), 37 + + - 25 + - - 4 * + 80 * - 81, 86 ) + - 96 / 88
----
63

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

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

query I rowsort
SELECT ALL 96 + + 42
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL - - COALESCE ( ( MAX( - 55 ) ), MAX( - + 16 ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - - COALESCE ( ( MAX ( - 55 ) ), MAX ( - + 16 ) ) AS col1
----
-55

query I rowsort
SELECT 85 * - + 42
----
-3570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8627
SELECT + 34 DIV - 75 + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8627
SELECT + 34 / - 75 + + COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8628
SELECT DISTINCT 81 + + 44 + - CAST( COUNT( * ) AS SIGNED ) DIV 58 * 57 DIV + 40 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT 81 + + 44 + - CAST ( COUNT ( * ) AS INTEGER ) / 58 * 57 / + 40 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT MIN( DISTINCT + 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8629
SELECT MIN ( DISTINCT + 80 ) AS col1
----
80

query I rowsort
SELECT + 29 + + 12 col0
----
41

query II rowsort
SELECT ALL - ( + 81 ) AS col0, 49 * + 32
----
-81
1568

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

query I rowsort
SELECT DISTINCT - 95 - + 24 * + ( - - 8 ) AS col2
----
-287

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT - 96 DIV - 48 - - 52 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8634
SELECT - 96 / - 48 - - 52 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8635
SELECT DISTINCT - 40 - + - 8 DIV 14 + 37 + - CAST( SUM( DISTINCT - 70 ) AS SIGNED ) * 67 * ( + 86 ) * - 33 + - 71 + + ( - COUNT( * ) )
----
-13310295

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT - 40 - + - 8 / 14 + 37 + - CAST ( SUM ( DISTINCT - 70 ) AS INTEGER ) * 67 * ( + 86 ) * - 33 + - 71 + + ( - COUNT ( * ) )
----
-13310295

query II rowsort
SELECT 92, - 46 * 82 AS col2
----
92
-3772

query I rowsort
SELECT 96 * + + 28
----
2688

query I rowsort
SELECT DISTINCT + 43 + + 30
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT 15 - MIN( DISTINCT - 8 ) + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8639
SELECT 15 - MIN ( DISTINCT - 8 ) + COUNT ( * ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL + SUM( 21 ) * - ( + 2 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL + SUM ( 21 ) * - ( + 2 ) AS col0
----
-42

query I rowsort
SELECT 21 * 67
----
1407

query I rowsort
SELECT DISTINCT + 25 + 63 AS col0
----
88

query II rowsort
SELECT - 44 AS col2, 86
----
-44
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8644
SELECT 5 + 67 * - NULLIF ( - - COUNT( * ), + COUNT( * ) + + CAST( NULL AS SIGNED ) + - + 68 ) + - 10 col2
----
-72

skipif mysql # not compatible
query I rowsort label-8644
SELECT 5 + 67 * - NULLIF ( - - COUNT ( * ), + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - + 68 ) + - 10 col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT 11 DIV 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8645
SELECT 11 / 38 AS col2
----
0

query I rowsort
SELECT 15 + + 5
----
20

query II rowsort
SELECT 51 AS col2, 89 + 82
----
51
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT - SUM( 67 ) + - COALESCE ( + - SUM( - + 75 ), + 72 + + 10 + - - 39 * + - 61 )
----
-142

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT - SUM ( 67 ) + - COALESCE ( + - SUM ( - + 75 ), + 72 + + 10 + - - 39 * + - 61 )
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8649
SELECT DISTINCT - CAST( + COUNT( + + 97 ) AS SIGNED ) / 30 * + SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT - CAST ( + COUNT ( + + 97 ) AS INTEGER ) / 30 * + SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8650
SELECT DISTINCT - 51 + - COUNT( * ) + 15 + - 59 * + COUNT( * ) + + 56 * - + CAST( NULL AS SIGNED ) * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT - 51 + - COUNT ( * ) + 15 + - 59 * + COUNT ( * ) + + 56 * - + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8651
SELECT 53 + - COALESCE ( - COUNT( * ), 71, COUNT( * ) ) AS col1, 35 DIV + - 69 * 34 * 76 AS col2
----
54
0

skipif mysql # not compatible
query II rowsort label-8651
SELECT 53 + - COALESCE ( - COUNT ( * ), 71, COUNT ( * ) ) AS col1, 35 / + - 69 * 34 * 76 AS col2
----
54
0

query I rowsort
SELECT ALL + 29 * + 91
----
2639

query I rowsort
SELECT DISTINCT - 59 * - ( 5 ) + + 64 AS col0
----
359

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

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

query I rowsort
SELECT + - 99 * 76 AS col2
----
-7524

onlyif mysql # aggregate syntax: 
query II rowsort label-8656
SELECT + - 53, 97 * - + COUNT( * ) AS col0
----
-53
-97

skipif mysql # not compatible
query II rowsort label-8656
SELECT + - 53, 97 * - + COUNT ( * ) AS col0
----
-53
-97

query I rowsort
SELECT + + 71 * - 7
----
-497

query I rowsort
SELECT ( + 19 ) * - 72 - - 72
----
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT + 84 * SUM( ALL 34 )
----
2856

skipif mysql # not compatible
query I rowsort label-8659
SELECT + 84 * SUM ( ALL 34 )
----
2856

query I rowsort
SELECT ALL + - 19 * 10 AS col2
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8661
SELECT + 2 * + 65 - - CAST( NULL AS SIGNED ) + + 12 + - 27 * - + 23 * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT + 2 * + 65 - - CAST ( NULL AS INTEGER ) + + 12 + - 27 * - + 23 * 40
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8662
SELECT ALL + + 37 AS col0, - ( COUNT( * ) ) - + 8 + + COUNT( * )
----
37
-8

skipif mysql # not compatible
query II rowsort label-8662
SELECT ALL + + 37 AS col0, - ( COUNT ( * ) ) - + 8 + + COUNT ( * )
----
37
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8663
SELECT - + COUNT( * ) + - - 83 + 17 DIV - 3 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8663
SELECT - + COUNT ( * ) + - - 83 + 17 / - 3 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT - + MAX( ALL - - 37 ) * + 1 + - 88 + - 16
----
-141

skipif mysql # not compatible
query I rowsort label-8664
SELECT - + MAX ( ALL - - 37 ) * + 1 + - 88 + - 16
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT 1 * + 35 * + 9 + - SUM( DISTINCT - 84 ) AS col0
----
399

skipif mysql # not compatible
query I rowsort label-8665
SELECT 1 * + 35 * + 9 + - SUM ( DISTINCT - 84 ) AS col0
----
399

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8666
SELECT ALL 13 DIV + 53 DIV + + COALESCE ( 55, - 58 ) DIV - - COALESCE ( - CAST( ( 28 ) AS SIGNED ), 9 ) + + 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL 13 / + 53 / + + COALESCE ( 55, - 58 ) / - - COALESCE ( - CAST ( ( 28 ) AS INTEGER ), 9 ) + + 15 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8667
SELECT + CASE + - ( - 74 ) WHEN - + CAST( NULL AS DECIMAL ) THEN + + 10 ELSE - + 81 + - 39 * - 66 * - - 67 + + 37 - COUNT( * ) END + 7 AS col2
----
172420

skipif mysql # not compatible
query I rowsort label-8667
SELECT + CASE + - ( - 74 ) WHEN - + CAST ( NULL AS REAL ) THEN + + 10 ELSE - + 81 + - 39 * - 66 * - - 67 + + 37 - COUNT ( * ) END + 7 AS col2
----
172420

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT + 53 + + 57 AS col1, + COUNT( * ) * - 92 * + 34 AS col1
----
110
-3128

skipif mysql # not compatible
query II rowsort label-8668
SELECT + 53 + + 57 AS col1, + COUNT ( * ) * - 92 * + 34 AS col1
----
110
-3128

query I rowsort
SELECT 38 * 71 - + 32 AS col0
----
2666

query I rowsort
SELECT ALL 65 * 76
----
4940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8671
SELECT ALL 77 DIV COUNT( * ) * - CAST( - 36 AS SIGNED )
----
2772

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL 77 / COUNT ( * ) * - CAST ( - 36 AS INTEGER )
----
2772

query I rowsort
SELECT + 47 + + - 42 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT ALL SUM( ALL 72 ) col2
----
72

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL SUM ( ALL 72 ) col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT DISTINCT MIN( - - 1 ) + - + CASE - 49 WHEN + - 54 THEN NULL WHEN + 13 THEN 61 END - 40 * - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT MIN ( - - 1 ) + - + CASE - 49 WHEN + - 54 THEN NULL WHEN + 13 THEN 61 END - 40 * - + 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8675
SELECT + 41 DIV 34
----
1

skipif mysql # not compatible
query I rowsort label-8675
SELECT + 41 / 34
----
1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8678
SELECT + 64 * - - MAX( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT + 64 * - - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT - CASE - - 70 WHEN + 74 THEN + 12 - + - 84 WHEN + - 25 THEN NULL END + + COUNT( * ) * AVG ( 80 ) * - + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8679
SELECT - CASE - - 70 WHEN + 74 THEN + 12 - + - 84 WHEN + - 25 THEN NULL END + + COUNT ( * ) * AVG ( 80 ) * - + 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT - ( + NULLIF ( + COUNT( * ), + MAX( ALL + - 81 ) * + ( + - 45 ) ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8680
SELECT - ( + NULLIF ( + COUNT ( * ), + MAX ( ALL + - 81 ) * + ( + - 45 ) ) ) col1
----
-1

query I rowsort
SELECT - 87 * - 30
----
2610

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

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

query I rowsort
SELECT ALL - + 38 * 2 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT DISTINCT NULLIF ( - COUNT( DISTINCT - 95 ), + + 12 * 61 / - 71 * - 47 * + 42 ) - 37 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT NULLIF ( - COUNT ( DISTINCT - 95 ), + + 12 * 61 / - 71 * - 47 * + 42 ) - 37 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8685
SELECT - 38 AS col1, - 73 + + + CAST( NULL AS SIGNED ) * + AVG ( ALL + NULLIF ( + 47, + 56 * - + 97 - - 68 ) ) * + 63
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-8685
SELECT - 38 AS col1, - 73 + + + CAST ( NULL AS INTEGER ) * + AVG ( ALL + NULLIF ( + 47, + 56 * - + 97 - - 68 ) ) * + 63
----
-38
NULL

query I rowsort
SELECT + + 83 * - - 60
----
4980

query II rowsort
SELECT - 88 col1, - 5 AS col0
----
-88
-5

query I rowsort
SELECT + 15 + + + 94
----
109

query I rowsort
SELECT - 19 - 44
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8690
SELECT ALL - 88 col0, 61 AS col0, + - 83 + + - 64 + + CAST( + MIN( ALL - ( + 42 ) ) AS SIGNED )
----
-88
61
-189

skipif mysql # not compatible
query III rowsort label-8690
SELECT ALL - 88 col0, 61 AS col0, + - 83 + + - 64 + + CAST ( + MIN ( ALL - ( + 42 ) ) AS INTEGER )
----
-88
61
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8691
SELECT - 28 + - 66 + + COUNT( * ) DIV - - 63 * + - 4 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8691
SELECT - 28 + - 66 + + COUNT ( * ) / - - 63 * + - 4 AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT - + CAST( + - AVG ( - 83 ) AS SIGNED ) - - NULLIF ( + ( + 31 ), + - 71 ) * - 63 AS col1
----
-2036

skipif mysql # not compatible
query I rowsort label-8692
SELECT - + CAST ( + - AVG ( - 83 ) AS INTEGER ) - - NULLIF ( + ( + 31 ), + - 71 ) * - 63 AS col1
----
-2036

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT - + COUNT( * ) + - 94 + + 19 * + 50 * + 37
----
35055

skipif mysql # not compatible
query I rowsort label-8694
SELECT - + COUNT ( * ) + - 94 + + 19 * + 50 * + 37
----
35055

query I rowsort
SELECT - - 51 + - 19 * + + 77 AS col0
----
-1412

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

skipif mysql # not compatible
query I rowsort label-8696
SELECT - - 7 / - CAST ( NULL AS INTEGER ) + - 49
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8697
SELECT + NULLIF ( + MAX( DISTINCT - + 23 ), - - 2 * + ( + 53 ) ) DIV 67 col2
----
0

skipif mysql # not compatible
query I rowsort label-8697
SELECT + NULLIF ( + MAX ( DISTINCT - + 23 ), - - 2 * + ( + 53 ) ) / 67 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8698
SELECT - 62 * - 12 * 67 + 27 DIV 83 AS col1
----
49848

skipif mysql # not compatible
query I rowsort label-8698
SELECT - 62 * - 12 * 67 + 27 / 83 AS col1
----
49848

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8699
SELECT ALL - CAST( NULL AS DECIMAL ) * 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL - CAST ( NULL AS REAL ) * 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT DISTINCT + ( + NULLIF ( + + SUM( - + 8 ), - - ( - ( - 80 ) ) / - - ( - + CASE + + COALESCE ( 62, + - COUNT( * ) + - 48 ) WHEN 45 THEN NULLIF ( + 3, - COUNT( * ) * + 2 + - + 0 - - 59 * - 97 ) * COUNT( * ) END ) + - 52 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT + ( + NULLIF ( + + SUM ( - + 8 ), - - ( - ( - 80 ) ) / - - ( - + CASE + + COALESCE ( 62, + - COUNT ( * ) + - 48 ) WHEN 45 THEN NULLIF ( + 3, - COUNT ( * ) * + 2 + - + 0 - - 59 * - 97 ) * COUNT ( * ) END ) + - 52 ) )
----
-8

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL + COALESCE ( ( + SUM( + 1 ) ), + + 17 * + - 51 + + 56 - 48 + + 0 + + 80 * 63 + + + 94 - + 83 * + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + COALESCE ( ( + SUM ( + 1 ) ), + + 17 * + - 51 + + 56 - 48 + + 0 + + 80 * 63 + + + 94 - + 83 * + 25 )
----
1

query I rowsort
SELECT + 41 + + ( + 19 ) AS col1
----
60

query I rowsort
SELECT + 0 * 91 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8706
SELECT + ( + + 37 ), MIN( + 74 ) * - - CAST( - 44 AS SIGNED ) AS col1
----
37
-3256

skipif mysql # not compatible
query II rowsort label-8706
SELECT + ( + + 37 ), MIN ( + 74 ) * - - CAST ( - 44 AS INTEGER ) AS col1
----
37
-3256

query I rowsort
SELECT - 88 - 51 + 38 AS col0
----
-101

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

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

query I rowsort
SELECT + 70 * 16 * 27 AS col1
----
30240

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT MIN( - - 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8710
SELECT MIN ( - - 88 ) AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8711
SELECT + 87 + - - 80 + + - NULLIF ( + CASE + - 20 WHEN - - 33 THEN NULL ELSE 86 + + 79 + - COUNT( * ) * - 65 + + 81 END, 0 ) * + 59 DIV + + COUNT( 74 ) AS col0, + COUNT( * )
----
-18182
1

skipif mysql # not compatible
query II rowsort label-8711
SELECT + 87 + - - 80 + + - NULLIF ( + CASE + - 20 WHEN - - 33 THEN NULL ELSE 86 + + 79 + - COUNT ( * ) * - 65 + + 81 END, 0 ) * + 59 / + + COUNT ( 74 ) AS col0, + COUNT ( * )
----
-18182
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT ALL + 49 * - - 26 * + 58 * + 55 * - COUNT( * ) + + - 76
----
-4064136

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL + 49 * - - 26 * + 58 * + 55 * - COUNT ( * ) + + - 76
----
-4064136

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT DISTINCT COALESCE ( 79, - + COALESCE ( + + NULLIF ( - 51, + 92 * CASE - - NULLIF ( - 71, ( + 99 ) - - COUNT( * ) ) WHEN + 22 THEN + + CASE COUNT( * ) WHEN 1 THEN + 94 WHEN - ( 81 ) / CASE + - 73 WHEN COUNT( * ) THEN - AVG ( DISTINCT 4 ) ELSE NULL END - 45 THEN + 47 END ELSE NULL END * 99 + - ( + 2 + 84 * 42 ) * + 55 ), - 30 ) ) * + 6 AS col0
----
474

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT COALESCE ( 79, - + COALESCE ( + + NULLIF ( - 51, + 92 * CASE - - NULLIF ( - 71, ( + 99 ) - - COUNT ( * ) ) WHEN + 22 THEN + + CASE COUNT ( * ) WHEN 1 THEN + 94 WHEN - ( 81 ) / CASE + - 73 WHEN COUNT ( * ) THEN - AVG ( DISTINCT 4 ) ELSE NULL END - 45 THEN + 47 END ELSE NULL END * 99 + - ( + 2 + 84 * 42 ) * + 55 ), - 30 ) ) * + 6 AS col0
----
474

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

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

query I rowsort
SELECT ALL CASE + CASE + + 95 WHEN - 40 THEN + + 88 - + 69 ELSE NULL END WHEN - 58 THEN 6 + 75 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 16 * - 19 col2
----
-304

onlyif mysql # DIV for integer division: 
query II rowsort label-8717
SELECT 24 DIV - - 54 col1, 38
----
0
38

skipif mysql # not compatible
query II rowsort label-8717
SELECT 24 / - - 54 col1, 38
----
0
38

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

query I rowsort
SELECT 44 + 18 + + + ( + 92 ) * - 41 - 66 col2
----
-3776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8720
SELECT DISTINCT - COALESCE ( CASE + 97 WHEN + + 80 + - COALESCE ( + + CASE - - COALESCE ( 17, - CASE - COUNT( * ) WHEN + 41 * - 26 + - NULLIF ( + - 61, + - 96 + - 90 ) + - - 51 * - - NULLIF ( + - ( - 82 ), + 62 - + ( CAST( - 79 AS SIGNED ) ) - 12 * - 42 * - 76 ) * 97 + 81 THEN + COALESCE ( COALESCE ( - COUNT( * ), 5 + ( - COUNT( * ) + 55 ) ), 61 ) - COALESCE ( + AVG ( - 45 ), + 97 * - 2 ) ELSE NULL END ) WHEN + 78 THEN NULL WHEN 84 THEN NULL ELSE 93 / 88 END, - 0 * - 36 ) THEN NULL WHEN NULLIF ( - CASE ( ( 59 ) ) WHEN 79 THEN ( + 8 ) END, - 86 * 61 ) * - 65 + NULLIF ( - 9, + 97 / - 86 ) THEN + 71 WHEN 57 THEN NULL WHEN 40 - 27 THEN NULL END, + 2 ) - 0
----
-2

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT - COALESCE ( CASE + 97 WHEN + + 80 + - COALESCE ( + + CASE - - COALESCE ( 17, - CASE - COUNT ( * ) WHEN + 41 * - 26 + - NULLIF ( + - 61, + - 96 + - 90 ) + - - 51 * - - NULLIF ( + - ( - 82 ), + 62 - + ( CAST ( - 79 AS INTEGER ) ) - 12 * - 42 * - 76 ) * 97 + 81 THEN + COALESCE ( COALESCE ( - COUNT ( * ), 5 + ( - COUNT ( * ) + 55 ) ), 61 ) - COALESCE ( + AVG ( - 45 ), + 97 * - 2 ) ELSE NULL END ) WHEN + 78 THEN NULL WHEN 84 THEN NULL ELSE 93 / 88 END, - 0 * - 36 ) THEN NULL WHEN NULLIF ( - CASE ( ( 59 ) ) WHEN 79 THEN ( + 8 ) END, - 86 * 61 ) * - 65 + NULLIF ( - 9, + 97 / - 86 ) THEN + 71 WHEN 57 THEN NULL WHEN 40 - 27 THEN NULL END, + 2 ) - 0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8721
SELECT 93 * - 83 DIV - + COALESCE ( + ( COUNT( ALL + 17 ) ), - - MAX( + 58 ), + 71 + + 28 ), COUNT( * ) AS col1
----
7719
1

skipif mysql # not compatible
query II rowsort label-8721
SELECT 93 * - 83 / - + COALESCE ( + ( COUNT ( ALL + 17 ) ), - - MAX ( + 58 ), + 71 + + 28 ), COUNT ( * ) AS col1
----
7719
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT - MAX( DISTINCT - - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-8722
SELECT - MAX ( DISTINCT - - 10 )
----
-10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8724
SELECT ALL 36 * MIN( - 74 ) DIV + 68
----
-39

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL 36 * MIN ( - 74 ) / + 68
----
-39

query I rowsort
SELECT - 76 * - 18 + - CASE - - 23 WHEN 46 THEN - 41 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8726
SELECT + 31 / - + 66 * + + 63 + - + 96 + 40 + - 35 + - CASE 8 WHEN + 85 THEN - 47 + + + 51 - 30 * + + ( + 28 ) WHEN + - 20 * - + CAST( - 51 AS SIGNED ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT + 31 / - + 66 * + + 63 + - + 96 + 40 + - 35 + - CASE 8 WHEN + 85 THEN - 47 + + + 51 - 30 * + + ( + 28 ) WHEN + - 20 * - + CAST ( - 51 AS INTEGER ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8727
SELECT 8 DIV 41 + + 29 DIV - - 14 + - + 20 * + - 49
----
982

skipif mysql # not compatible
query I rowsort label-8727
SELECT 8 / 41 + + 29 / - - 14 + - + 20 * + - 49
----
982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8728
SELECT + CAST( NULL AS SIGNED ) + - + 30 AS col0, COALESCE ( + 65, + 35 + - - 48, 77 DIV - + 15 * 94 ) + 3 + + - 78 - + 8 * - ( + MAX( DISTINCT + 19 ) )
----
NULL
142

skipif mysql # not compatible
query II rowsort label-8728
SELECT + CAST ( NULL AS INTEGER ) + - + 30 AS col0, COALESCE ( + 65, + 35 + - - 48, 77 / - + 15 * 94 ) + 3 + + - 78 - + 8 * - ( + MAX ( DISTINCT + 19 ) )
----
NULL
142

query I rowsort
SELECT ALL - 64 + + 21
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT ALL + 11 + + 61 / + 59 * - + CAST( NULL AS SIGNED ) * - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL + 11 + + 61 / + 59 * - + CAST ( NULL AS INTEGER ) * - 86 AS col2
----
NULL

query I rowsort
SELECT ALL - 11 + 69 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT 75 * + 60 - + SUM( DISTINCT - - 0 ) + - - COUNT( * ) * - 92 + + - ( ( - 71 ) )
----
4479

skipif mysql # not compatible
query I rowsort label-8732
SELECT 75 * + 60 - + SUM ( DISTINCT - - 0 ) + - - COUNT ( * ) * - 92 + + - ( ( - 71 ) )
----
4479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8733
SELECT DISTINCT + CASE - 41 WHEN - 11 * - 69 * + + COALESCE ( + 71, 38 / - CASE - ( COALESCE ( - 26, 33 + - + NULLIF ( 81, + - 84 ) + + 28 + ( + + 92 ) ) ) WHEN - 28 THEN + ( 31 ) + AVG ( + 83 ) END + - 56 * - 26, CAST( - 95 AS SIGNED ) ) THEN NULL WHEN + 34 + - NULLIF ( + SUM( + 60 ) + + 89, - ( - 34 ) ) THEN NULL WHEN - NULLIF ( 95, - 92 * 45 ) THEN 1 + 76 ELSE NULL END / - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT + CASE - 41 WHEN - 11 * - 69 * + + COALESCE ( + 71, 38 / - CASE - ( COALESCE ( - 26, 33 + - + NULLIF ( 81, + - 84 ) + + 28 + ( + + 92 ) ) ) WHEN - 28 THEN + ( 31 ) + AVG ( + 83 ) END + - 56 * - 26, CAST ( - 95 AS INTEGER ) ) THEN NULL WHEN + 34 + - NULLIF ( + SUM ( + 60 ) + + 89, - ( - 34 ) ) THEN NULL WHEN - NULLIF ( 95, - 92 * 45 ) THEN 1 + 76 ELSE NULL END / - 1 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8734
SELECT 25 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-8734
SELECT 25 / 69
----
0

query I rowsort
SELECT 96 + - 40 + - - 59 * + 25
----
1531

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT 75 * + 91 + + COUNT( * ) - + 68 AS col1, - 16 * ( MAX( DISTINCT 62 ) )
----
6758
-992

skipif mysql # not compatible
query II rowsort label-8736
SELECT 75 * + 91 + + COUNT ( * ) - + 68 AS col1, - 16 * ( MAX ( DISTINCT 62 ) )
----
6758
-992

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

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

query I rowsort
SELECT 24 + + 61 AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8739
SELECT ALL - 12 - + + COUNT( * ) + + 25 + 35 DIV - 52 col0
----
12

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL - 12 - + + COUNT ( * ) + + 25 + 35 / - 52 col0
----
12

query I rowsort
SELECT 31 * - + 83 * + 54
----
-138942

query II rowsort
SELECT DISTINCT 43, 11 AS col1
----
43
11

query I rowsort
SELECT DISTINCT - ( - + 62 ) - + - 22 * - - 54 - 85 AS col0
----
1165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8743
SELECT + 19 * 22 + - CAST( 4 AS SIGNED ) + - ( + 14 ) * 56 * - COUNT( * ) + - 20 DIV - 43 col2
----
1198

skipif mysql # not compatible
query I rowsort label-8743
SELECT + 19 * 22 + - CAST ( 4 AS INTEGER ) + - ( + 14 ) * 56 * - COUNT ( * ) + - 20 / - 43 col2
----
1198

query II rowsort
SELECT - 53 AS col1, - 33 + + + 87 + + - 31 + - ( + - 40 ) + - 64 * + 29 AS col2
----
-53
-1793

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT 59 + - 70 * - + COUNT( * ) + - 50
----
79

skipif mysql # not compatible
query I rowsort label-8745
SELECT 59 + - 70 * - + COUNT ( * ) + - 50
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8746
SELECT - - 38 col0, COALESCE ( - MIN( - ( 41 ) ), + 0 DIV - 56 DIV 39 DIV - 23 * + COUNT( * ) ) AS col0
----
38
41

skipif mysql # not compatible
query II rowsort label-8746
SELECT - - 38 col0, COALESCE ( - MIN ( - ( 41 ) ), + 0 / - 56 / 39 / - 23 * + COUNT ( * ) ) AS col0
----
38
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT + SUM( DISTINCT - 8 ) * - - 27 AS col0
----
-216

skipif mysql # not compatible
query I rowsort label-8747
SELECT + SUM ( DISTINCT - 8 ) * - - 27 AS col0
----
-216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8748
SELECT DISTINCT NULLIF ( + + 41, + 37 * 8 DIV 77 ) DIV + COUNT( * ) + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT NULLIF ( + + 41, + 37 * 8 / 77 ) / + COUNT ( * ) + COUNT ( * )
----
42

query II rowsort
SELECT - - 15, 51 col2
----
15
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT - NULLIF ( CASE 29 WHEN - COUNT( * ) / + 7 - - 46 THEN + + CASE + 4 WHEN - 78 THEN 4 END * 0 END, + 35 + 2 ) / + - 78 + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT - NULLIF ( CASE 29 WHEN - COUNT ( * ) / + 7 - - 46 THEN + + CASE + 4 WHEN - 78 THEN 4 END * 0 END, + 35 + 2 ) / + - 78 + 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT - 33 + - + COUNT( * ) * + - 82 * - 2 + - - COUNT( * )
----
-196

skipif mysql # not compatible
query I rowsort label-8752
SELECT - 33 + - + COUNT ( * ) * + - 82 * - 2 + - - COUNT ( * )
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT - ( - - SUM( ALL + + 40 ) ) col0
----
-40

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT - ( - - SUM ( ALL + + 40 ) ) col0
----
-40

query I rowsort
SELECT DISTINCT - 87 * - 58
----
5046

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

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

query II rowsort
SELECT + 46 AS col0, + 27
----
46
27

query I rowsort
SELECT + 73 * - 36 * - + 97 AS col0
----
254916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8758
SELECT ( - 86 ) + + - 53, + 11 * - + CASE + COALESCE ( - SUM( + ( + - 26 ) ), + COUNT( * ) * COUNT( * ) * 82 ) WHEN + - MIN( ( + 88 ) ) * - 61 * + 86 THEN 69 WHEN + 24 THEN 62 ELSE NULL END / + - 8 + - ( + + CASE COUNT( * ) WHEN + MIN( - 24 ) * 47 - + 63 THEN - SUM( + 53 ) END ) * + COALESCE ( - ( + 32 ) * - CASE 94 WHEN 72 THEN ( + ( 21 ) ) * + 34 - - ( 90 ) * CASE 69 WHEN + 20 THEN NULL WHEN - CASE ( - CASE + 0 WHEN 92 * + 62 THEN NULL WHEN + 26 * + 32 + - 61 * 1 THEN - MIN( 26 ) - 58 ELSE NULL END ) WHEN 83 THEN 72 + - 33 END + 77 * + 60 THEN NULL WHEN + 44 * - 52 + 4 * + 5 THEN + 83 + COUNT( * ) END END, CASE 64 WHEN - 5 + - CAST( NULL AS SIGNED ) THEN NULL ELSE + 63 * 86 END, 82 * - 39 ) AS col2
----
-139
NULL

skipif mysql # not compatible
query II rowsort label-8758
SELECT ( - 86 ) + + - 53, + 11 * - + CASE + COALESCE ( - SUM ( + ( + - 26 ) ), + COUNT ( * ) * COUNT ( * ) * 82 ) WHEN + - MIN ( ( + 88 ) ) * - 61 * + 86 THEN 69 WHEN + 24 THEN 62 ELSE NULL END / + - 8 + - ( + + CASE COUNT ( * ) WHEN + MIN ( - 24 ) * 47 - + 63 THEN - SUM ( + 53 ) END ) * + COALESCE ( - ( + 32 ) * - CASE 94 WHEN 72 THEN ( + ( 21 ) ) * + 34 - - ( 90 ) * CASE 69 WHEN + 20 THEN NULL WHEN - CASE ( - CASE + 0 WHEN 92 * + 62 THEN NULL WHEN + 26 * + 32 + - 61 * 1 THEN - MIN ( 26 ) - 58 ELSE NULL END ) WHEN 83 THEN 72 + - 33 END + 77 * + 60 THEN NULL WHEN + 44 * - 52 + 4 * + 5 THEN + 83 + COUNT ( * ) END END, CASE 64 WHEN - 5 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 63 * 86 END, 82 * - 39 ) AS col2
----
-139
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8759
SELECT + CASE - + CASE + - 68 WHEN - - 51 THEN + 13 * - 39 + 33 + - 78 * + 31 END WHEN + 82 - CAST( NULL AS SIGNED ) * 95 THEN + COUNT( * ) * - 31 ELSE NULL END - 76 * + 67 / + 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT + CASE - + CASE + - 68 WHEN - - 51 THEN + 13 * - 39 + 33 + - 78 * + 31 END WHEN + 82 - CAST ( NULL AS INTEGER ) * 95 THEN + COUNT ( * ) * - 31 ELSE NULL END - 76 * + 67 / + 67 col0
----
NULL

query II rowsort
SELECT 67, 72 AS col0
----
67
72

query I rowsort
SELECT 64 + 9
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL 66 + + 60 * + COUNT( DISTINCT + + 68 ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL 66 + + 60 * + COUNT ( DISTINCT + + 68 ) AS col0
----
126

query I rowsort
SELECT + 40 * - 71 * - - 33
----
-93720

onlyif mysql # aggregate syntax: 
query II rowsort label-8764
SELECT ALL - - 45 * - - 77 + 72 + - SUM( - - 93 ) + 73 * - + 75 * + COALESCE ( - + 54, 4 ) * 73 AS col0, + 20 AS col2
----
21585894
20

skipif mysql # not compatible
query II rowsort label-8764
SELECT ALL - - 45 * - - 77 + 72 + - SUM ( - - 93 ) + 73 * - + 75 * + COALESCE ( - + 54, 4 ) * 73 AS col0, + 20 AS col2
----
21585894
20

query I rowsort
SELECT - 47 * 50 + 24
----
-2326

onlyif mysql # aggregate syntax: 
query II rowsort label-8766
SELECT SUM( DISTINCT - + 2 ) AS col2, 85
----
-2
85

skipif mysql # not compatible
query II rowsort label-8766
SELECT SUM ( DISTINCT - + 2 ) AS col2, 85
----
-2
85

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

skipif mysql # not compatible
query I rowsort label-8767
SELECT - 97 / 11 + COUNT ( * ) AS col2
----
-7

query I rowsort
SELECT + NULLIF ( + - 95, 9 ) AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8769
SELECT MAX( + - 50 ) col0, + COALESCE ( 60, 98, - MAX( DISTINCT ( + 56 ) ) * - 89 DIV + 7 ) + - 80
----
-50
-20

skipif mysql # not compatible
query II rowsort label-8769
SELECT MAX ( + - 50 ) col0, + COALESCE ( 60, 98, - MAX ( DISTINCT ( + 56 ) ) * - 89 / + 7 ) + - 80
----
-50
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT DISTINCT ( + + COUNT( * ) ) - + 11 - + 91 * - 35 col2
----
3175

skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT ( + + COUNT ( * ) ) - + 11 - + 91 * - 35 col2
----
3175

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT DISTINCT - 62 - - MIN( - - 10 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT - 62 - - MIN ( - - 10 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL + 8 * + + COUNT( + - 74 )
----
8

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL + 8 * + + COUNT ( + - 74 )
----
8

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

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

query II rowsort
SELECT - 63 * + + 83 AS col1, ( + - 25 )
----
-5229
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT - 80 DIV - 19 col2
----
4

skipif mysql # not compatible
query I rowsort label-8775
SELECT - 80 / - 19 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT - - COALESCE ( COUNT( * ), - - 83 * + 45 + + 21 ) - + + 61 * - - 93 AS col2
----
-5672

skipif mysql # not compatible
query I rowsort label-8776
SELECT - - COALESCE ( COUNT ( * ), - - 83 * + 45 + + 21 ) - + + 61 * - - 93 AS col2
----
-5672

query I rowsort
SELECT ALL + - 52 * 53 + + 68
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT - ( - + 24 ) * - MAX( + COALESCE ( + 31, - 60 ) ) AS col1
----
-744

skipif mysql # not compatible
query I rowsort label-8778
SELECT - ( - + 24 ) * - MAX ( + COALESCE ( + 31, - 60 ) ) AS col1
----
-744

onlyif mysql # aggregate syntax: 
query II rowsort label-8779
SELECT DISTINCT - ( - + 14 ) AS col2, 97 * - + ( COUNT( * ) ) col0
----
14
-97

skipif mysql # not compatible
query II rowsort label-8779
SELECT DISTINCT - ( - + 14 ) AS col2, 97 * - + ( COUNT ( * ) ) col0
----
14
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8780
SELECT - - 38 * + 93 * - + 46 * 50 AS col2, - COUNT( * ) AS col0
----
-8128200
-1

skipif mysql # not compatible
query II rowsort label-8780
SELECT - - 38 * + 93 * - + 46 * 50 AS col2, - COUNT ( * ) AS col0
----
-8128200
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL - + 47 + - COUNT( ALL 74 )
----
-48

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL - + 47 + - COUNT ( ALL 74 )
----
-48

query I rowsort
SELECT - + 56 col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT - + 19 + MIN( + 15 ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-8783
SELECT - + 19 + MIN ( + 15 ) col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8784
SELECT + CAST( - ( - AVG ( DISTINCT - - 72 ) ) AS SIGNED ) + + CAST( + + 67 AS SIGNED )
----
139

skipif mysql # not compatible
query I rowsort label-8784
SELECT + CAST ( - ( - AVG ( DISTINCT - - 72 ) ) AS INTEGER ) + + CAST ( + + 67 AS INTEGER )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT - MAX( ALL + 18 ) + 83 + - 50 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT - MAX ( ALL + 18 ) + 83 + - 50 AS col0
----
15

query I rowsort
SELECT DISTINCT - - ( 45 ) + - 88
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL - 42 + + SUM( 44 )
----
2

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - 42 + + SUM ( 44 )
----
2

query I rowsort
SELECT - COALESCE ( + 68, + + 54 ) AS col2
----
-68

query I rowsort
SELECT DISTINCT 48 * - 98 AS col1
----
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT ALL - 32 * - + 51 + + SUM( - 18 ) AS col0
----
1614

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL - 32 * - + 51 + + SUM ( - 18 ) AS col0
----
1614

query I rowsort
SELECT + 6 * + 75 * - 10 - - 33 * ( - 51 ) * + 49
----
-86967

query I rowsort
SELECT - 71 * 71 col1
----
-5041

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8794
SELECT 11 DIV - 71 + + COUNT( * ) * 72 + 16 * + 28 * - 32
----
-14264

skipif mysql # not compatible
query I rowsort label-8794
SELECT 11 / - 71 + + COUNT ( * ) * 72 + 16 * + 28 * - 32
----
-14264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8795
SELECT + 65 + MAX( 51 ), CAST( NULL AS SIGNED ) AS col0
----
116
NULL

skipif mysql # not compatible
query II rowsort label-8795
SELECT + 65 + MAX ( 51 ), CAST ( NULL AS INTEGER ) AS col0
----
116
NULL

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

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

query I rowsort
SELECT DISTINCT - 22 * - 43 - - 83 - 53 * - 65 AS col0
----
4474

query I rowsort
SELECT - 67 * + 88 * 29 - 94 * - 85 * - 69
----
-722294

onlyif mysql # DIV for integer division: 
query II rowsort label-8799
SELECT ALL + 76, 12 DIV - + 58 col2
----
76
0

skipif mysql # not compatible
query II rowsort label-8799
SELECT ALL + 76, 12 / - + 58 col2
----
76
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8800
SELECT 49 DIV - 3 + 87 AS col0, - 45 + - COUNT( - 66 ) * - 59
----
71
14

skipif mysql # not compatible
query II rowsort label-8800
SELECT 49 / - 3 + 87 AS col0, - 45 + - COUNT ( - 66 ) * - 59
----
71
14

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

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

query II rowsort
SELECT - 4 * 48 + - - 73, 3 col0
----
-119
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT - ( + SUM( DISTINCT - 90 ) ) * COUNT( - 38 )
----
90

skipif mysql # not compatible
query I rowsort label-8803
SELECT - ( + SUM ( DISTINCT - 90 ) ) * COUNT ( - 38 )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8804
SELECT COUNT( * ) * 30 + - 6 AS col1, - 3 - 43 + - + MAX( ALL - 96 ) AS col1
----
24
50

skipif mysql # not compatible
query II rowsort label-8804
SELECT COUNT ( * ) * 30 + - 6 AS col1, - 3 - 43 + - + MAX ( ALL - 96 ) AS col1
----
24
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8805
SELECT ALL + 11 AS col2, + MAX( - 30 ) + + + 64 AS col0
----
11
34

skipif mysql # not compatible
query II rowsort label-8805
SELECT ALL + 11 AS col2, + MAX ( - 30 ) + + + 64 AS col0
----
11
34

query I rowsort
SELECT + ( - - 77 ) col1
----
77

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

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

query I rowsort
SELECT NULLIF ( 19, - ( - 66 ) ) * + 35 - - - ( 76 ) AS col1
----
589

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

skipif mysql # not compatible
query I rowsort label-8809
SELECT + 69 / + 36
----
1

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

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

query I rowsort
SELECT + - 9 * - 63 + + 18 + + 49 + - - 94 * 29
----
3360

query I rowsort
SELECT - 28 * - 69
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL + 80 * COUNT( * ) + 88 - + NULLIF ( + 3, + 43 )
----
165

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL + 80 * COUNT ( * ) + 88 - + NULLIF ( + 3, + 43 )
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL - 44 * - 7 + 16 + COUNT( * ) + + 12 - - 86
----
423

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - 44 * - 7 + 16 + COUNT ( * ) + + 12 - - 86
----
423

query I rowsort
SELECT - 95 + COALESCE ( + 91, - - 16 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT - + COUNT( * ) * + 18 + + 19
----
1

skipif mysql # not compatible
query I rowsort label-8816
SELECT - + COUNT ( * ) * + 18 + + 19
----
1

query I rowsort
SELECT DISTINCT + - 82 * ( - 30 )
----
2460

query I rowsort
SELECT ALL - 46 + - + 0 col0
----
-46

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

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

query I rowsort
SELECT - ( - - 80 ) AS col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8821
SELECT DISTINCT + 44 * + MAX( ALL + 51 ) AS col0, - COALESCE ( - 17, + 53 * + + MIN( 97 ) DIV 3 + + - 77 * + COUNT( * ) + - 92 * 52 ) * - 58 + 76 col1
----
2244
-910

skipif mysql # not compatible
query II rowsort label-8821
SELECT DISTINCT + 44 * + MAX ( ALL + 51 ) AS col0, - COALESCE ( - 17, + 53 * + + MIN ( 97 ) / 3 + + - 77 * + COUNT ( * ) + - 92 * 52 ) * - 58 + 76 col1
----
2244
-910

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

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

query I rowsort
SELECT - 97 + + - ( - 15 ) + - 24
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT + 95 + + - CAST( - - 45 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-8824
SELECT + 95 + + - CAST ( - - 45 AS INTEGER )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8825
SELECT + 71 + + - COUNT( ALL - 53 ) * - 44 AS col1, - CAST( - - 28 AS SIGNED ) AS col1
----
115
-28

skipif mysql # not compatible
query II rowsort label-8825
SELECT + 71 + + - COUNT ( ALL - 53 ) * - 44 AS col1, - CAST ( - - 28 AS INTEGER ) AS col1
----
115
-28

query I rowsort
SELECT DISTINCT + ( 92 ) AS col1
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-8827
SELECT ALL - 53 DIV - 48, ( + 73 ) * 3 AS col2
----
1
219

skipif mysql # not compatible
query II rowsort label-8827
SELECT ALL - 53 / - 48, ( + 73 ) * 3 AS col2
----
1
219

query I rowsort
SELECT DISTINCT 47 * - 97 AS col2
----
-4559

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8832
SELECT + ( + CAST( NULL AS SIGNED ) ) / COUNT( * ) + + 73 * 5 - - 10 + - 20 * + 73 + + COUNT( * ) AS col1, + 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-8832
SELECT + ( + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) + + 73 * 5 - - 10 + - 20 * + 73 + + COUNT ( * ) AS col1, + 5
----
NULL
5

query II rowsort
SELECT ALL - 11 AS col0, ( + 13 ) + - 24 + + - 50 AS col1
----
-11
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8834
SELECT ALL - 14, + 24 - - CAST( NULL AS SIGNED ) AS col1
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-8834
SELECT ALL - 14, + 24 - - CAST ( NULL AS INTEGER ) AS col1
----
-14
NULL

query I rowsort
SELECT 49 * + 9 * - 13 AS col2
----
-5733

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT CASE + + 86 WHEN + - 48 THEN 9 - - 47 * - 86 WHEN + 55 * + - 4 THEN NULL WHEN + COUNT( * ) * - 69 THEN + + ( + - 75 ) ELSE NULL END + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT CASE + + 86 WHEN + - 48 THEN 9 - - 47 * - 86 WHEN + 55 * + - 4 THEN NULL WHEN + COUNT ( * ) * - 69 THEN + + ( + - 75 ) ELSE NULL END + 11 AS col0
----
NULL

query I rowsort
SELECT 59 * - 15
----
-885

query II rowsort
SELECT DISTINCT - 97 AS col1, + 84 AS col1
----
-97
84

query I rowsort
SELECT DISTINCT - NULLIF ( + 83, + 84 ) + 67
----
-16

query II rowsort
SELECT - 75 AS col2, + 63 AS col1
----
-75
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8841
SELECT ALL 87 + + NULLIF ( + COUNT( * ), + - COUNT( * ) * - + 92 ) - - NULLIF ( - - 66, + - CAST( + 1 AS SIGNED ) ), ( + 4 ) + 21 AS col0, + 89 AS col0
----
154
25
89

skipif mysql # not compatible
query III rowsort label-8841
SELECT ALL 87 + + NULLIF ( + COUNT ( * ), + - COUNT ( * ) * - + 92 ) - - NULLIF ( - - 66, + - CAST ( + 1 AS INTEGER ) ), ( + 4 ) + 21 AS col0, + 89 AS col0
----
154
25
89

query I rowsort
SELECT 93 - - - 11 + + + CASE + 35 WHEN 46 THEN NULL WHEN - 55 THEN 0 ELSE NULL END
----
NULL

query II rowsort
SELECT + + 36, - 27 * ( + 39 ) * + 8 AS col1
----
36
-8424

query I rowsort
SELECT ALL + 67 * - 87
----
-5829

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT - 84 + 31 + 30 * - COALESCE ( - COALESCE ( + ( 77 ), - - 99, + - NULLIF ( - 79, COUNT( * ) / 96 / + COUNT( * ) * + + 60 / 56 + 87 + + 10 + - 34 ) + - 34 ), - + COUNT( * ), + + 20 * 23 + - 82 + - 40 - 56 * - 43 )
----
2257

skipif mysql # not compatible
query I rowsort label-8845
SELECT - 84 + 31 + 30 * - COALESCE ( - COALESCE ( + ( 77 ), - - 99, + - NULLIF ( - 79, COUNT ( * ) / 96 / + COUNT ( * ) * + + 60 / 56 + 87 + + 10 + - 34 ) + - 34 ), - + COUNT ( * ), + + 20 * 23 + - 82 + - 40 - 56 * - 43 )
----
2257

query I rowsort
SELECT DISTINCT 58 * 32 * + 50 AS col1
----
92800

query I rowsort
SELECT DISTINCT + - 80 + 16
----
-64

query I rowsort
SELECT ALL - - 18 + + 96 * - - 67 - + 37
----
6413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8849
SELECT ALL - 6 * + 65 * - CAST( 83 AS SIGNED ) * + - 97
----
-3139890

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL - 6 * + 65 * - CAST ( 83 AS INTEGER ) * + - 97
----
-3139890

onlyif mysql # aggregate syntax: 
query II rowsort label-8850
SELECT DISTINCT - 21 AS col1, + COUNT( * ) + - 5 * - 41 AS col2
----
-21
206

skipif mysql # not compatible
query II rowsort label-8850
SELECT DISTINCT - 21 AS col1, + COUNT ( * ) + - 5 * - 41 AS col2
----
-21
206

query I rowsort
SELECT + 20 - 57
----
-37

query I rowsort
SELECT 41 * + - 68 AS col2
----
-2788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8853
SELECT 36, MAX( DISTINCT + CAST( - + 19 AS SIGNED ) ) AS col1
----
36
-19

skipif mysql # not compatible
query II rowsort label-8853
SELECT 36, MAX ( DISTINCT + CAST ( - + 19 AS INTEGER ) ) AS col1
----
36
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8854
SELECT COUNT( - 84 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8854
SELECT COUNT ( - 84 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT DISTINCT + + 76 DIV - 28 + - 50
----
-52

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT + + 76 / - 28 + - 50
----
-52

query III rowsort
SELECT - - 62 col2, 44 col0, + 11 AS col1
----
62
44
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT 44 DIV + 77 * - 20 * - 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8857
SELECT 44 / + 77 * - 20 * - 99 AS col0
----
0

query I rowsort
SELECT 15 * + - 31
----
-465

query I rowsort
SELECT ALL 30 - - + 33 * - 55
----
-1785

query I rowsort
SELECT ALL - NULLIF ( 82, - + ( - NULLIF ( + + 76, + + 52 * + - 70 ) ) + + + 96 ) * 31 * - + 14 col0
----
35588

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8862
SELECT 43 * + + 42 col2, + COUNT( ALL + 29 ) AS col0
----
1806
1

skipif mysql # not compatible
query II rowsort label-8862
SELECT 43 * + + 42 col2, + COUNT ( ALL + 29 ) AS col0
----
1806
1

query I rowsort
SELECT 21 - + 44
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT - CASE - 75 WHEN - - COUNT( * ) THEN NULL WHEN + - 30 THEN 89 ELSE + 13 + COUNT( * ) END * COUNT( * ) + - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-8864
SELECT - CASE - 75 WHEN - - COUNT ( * ) THEN NULL WHEN + - 30 THEN 89 ELSE + 13 + COUNT ( * ) END * COUNT ( * ) + - COUNT ( * )
----
-15

query II rowsort
SELECT DISTINCT - ( + 40 ) AS col2, + 82 - + 39 AS col1
----
-40
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8866
SELECT ALL 40 + + 12 AS col0, - COALESCE ( - - 3, - 29 * + COUNT( * ) - 87 + 79 + - 91, - 87 ) AS col0
----
52
-3

skipif mysql # not compatible
query II rowsort label-8866
SELECT ALL 40 + + 12 AS col0, - COALESCE ( - - 3, - 29 * + COUNT ( * ) - 87 + 79 + - 91, - 87 ) AS col0
----
52
-3

query I rowsort
SELECT ALL - 59 + - - 62 + COALESCE ( + 83, + 70, 63 ) AS col1
----
86

query I rowsort
SELECT DISTINCT + 4 + - 84 + 64 + - - 92
----
76

query I rowsort
SELECT ALL 92 + + 17
----
109

query I rowsort
SELECT 28 + 39 * 56
----
2212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8871
SELECT ALL + MIN( + 59 ) + + + CAST( 29 AS SIGNED ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL + MIN ( + 59 ) + + + CAST ( 29 AS INTEGER ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT + MAX( DISTINCT + - 45 ) + - ( + COUNT( * ) ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-8872
SELECT + MAX ( DISTINCT + - 45 ) + - ( + COUNT ( * ) ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-8873
SELECT ALL - + 74 + 90 - - - 53, COUNT( * ) AS col2
----
-37
1

skipif mysql # not compatible
query II rowsort label-8873
SELECT ALL - + 74 + 90 - - - 53, COUNT ( * ) AS col2
----
-37
1

query II rowsort
SELECT ALL - 10 * + 16 AS col1, 12
----
-160
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL COUNT( * ) - - 15 * - 36 + + ( COUNT( * ) )
----
-538

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL COUNT ( * ) - - 15 * - 36 + + ( COUNT ( * ) )
----
-538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8876
SELECT ALL - - CASE - 46 WHEN - 74 * CAST( NULL AS SIGNED ) + + - ( + 85 ) THEN NULL WHEN - 68 * 91 THEN - 23 * - 7 * - 52 - - - 31 + - - 1 * - MAX( DISTINCT CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL - - CASE - 46 WHEN - 74 * CAST ( NULL AS INTEGER ) + + - ( + 85 ) THEN NULL WHEN - 68 * 91 THEN - 23 * - 7 * - 52 - - - 31 + - - 1 * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT DISTINCT + 19 - ( + - 41 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT - MIN( - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-8878
SELECT - MIN ( - 41 )
----
41

query I rowsort
SELECT 56 * - + 0 * 69 + + 39
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8880
SELECT + 40 * + COUNT( * ) DIV COUNT( * ) - 25
----
15

skipif mysql # not compatible
query I rowsort label-8880
SELECT + 40 * + COUNT ( * ) / COUNT ( * ) - 25
----
15

query I rowsort
SELECT ALL + 94 * - + 83 AS col0
----
-7802

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ( 68 ) + - SUM( DISTINCT + 46 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8882
SELECT ( 68 ) + - SUM ( DISTINCT + 46 ) AS col1
----
22

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8884
SELECT - 93 + - - 53, MAX( DISTINCT + 62 ) AS col0
----
-40
62

skipif mysql # not compatible
query II rowsort label-8884
SELECT - 93 + - - 53, MAX ( DISTINCT + 62 ) AS col0
----
-40
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8885
SELECT NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) + - 15 ) * + 74 * + - 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) + - 15 ) * + 74 * + - 76 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8886
SELECT ALL COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 82 * 90 AS col0
----
7380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8888
SELECT - CASE + 19 WHEN - CAST( NULL AS SIGNED ) THEN - 1 * 67 * + 29 + - ( + ( - CASE + 12 WHEN - + NULLIF ( - - COUNT( * ), + 39 ) THEN + + 33 ELSE NULL END ) ) + CAST( NULL AS SIGNED ) + 66 + + - 39 ELSE + COUNT( * ) * - 58 + - 34 + - 61 * + 57 - + 4 + COUNT( * ) * COUNT( * ) - + 3 END DIV COUNT( * ) * - + COUNT( * ) AS col2
----
-3575

skipif mysql # not compatible
query I rowsort label-8888
SELECT - CASE + 19 WHEN - CAST ( NULL AS INTEGER ) THEN - 1 * 67 * + 29 + - ( + ( - CASE + 12 WHEN - + NULLIF ( - - COUNT ( * ), + 39 ) THEN + + 33 ELSE NULL END ) ) + CAST ( NULL AS INTEGER ) + 66 + + - 39 ELSE + COUNT ( * ) * - 58 + - 34 + - 61 * + 57 - + 4 + COUNT ( * ) * COUNT ( * ) - + 3 END / COUNT ( * ) * - + COUNT ( * ) AS col2
----
-3575

query I rowsort
SELECT ALL + 90 + + 24 AS col0
----
114

query I rowsort
SELECT + 52 * + 69 AS col1
----
3588

query I rowsort
SELECT ALL - 18 + 62 AS col0
----
44

query I rowsort
SELECT ALL - 30 * - 95 + - ( - + 72 )
----
2922

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL 23 * + - ( - COUNT( * ) ) + - 37
----
-14

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL 23 * + - ( - COUNT ( * ) ) + - 37
----
-14

query II rowsort
SELECT + 0 col1, 2
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL 67 * - COUNT( * ) + - 53
----
-120

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL 67 * - COUNT ( * ) + - 53
----
-120

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8897
SELECT NULLIF ( + 49, NULLIF ( COUNT( * ), CAST( NULL AS SIGNED ) ) + 50 + + - 75 * 43 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8897
SELECT NULLIF ( + 49, NULLIF ( COUNT ( * ), CAST ( NULL AS INTEGER ) ) + 50 + + - 75 * 43 ) AS col2
----
49

query I rowsort
SELECT - - 11 * + 31
----
341

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8899
SELECT + - COUNT( - CAST( + 76 AS DECIMAL ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8899
SELECT + - COUNT ( - CAST ( + 76 AS REAL ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT MIN( DISTINCT - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-8900
SELECT MIN ( DISTINCT - 87 )
----
-87

query I rowsort
SELECT - 8 + - CASE - 28 WHEN - 74 * - - 63 THEN + 99 WHEN + 33 THEN NULL ELSE NULL END - + 43 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8902
SELECT DISTINCT + - 56 * - - CAST( NULL AS DECIMAL ) - + 76 AS col2, - 85 + MAX( DISTINCT 66 ) AS col2
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-8902
SELECT DISTINCT + - 56 * - - CAST ( NULL AS REAL ) - + 76 AS col2, - 85 + MAX ( DISTINCT 66 ) AS col2
----
NULL
-19

query I rowsort
SELECT ALL + + 90 * - + 18 - + - 4 AS col0
----
-1616

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT - MIN( - - 89 ) * - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8904
SELECT - MIN ( - - 89 ) * - COUNT ( * )
----
89

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

query II rowsort
SELECT ALL + 12, 60 AS col1
----
12
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8907
SELECT DISTINCT + 17 * + 55 DIV - COUNT( * ) AS col1
----
-935

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT + 17 * + 55 / - COUNT ( * ) AS col1
----
-935

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8909
SELECT DISTINCT + CASE - COUNT( * ) WHEN - + 47 THEN - - NULLIF ( - 95, CAST( + + 35 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT + CASE - COUNT ( * ) WHEN - + 47 THEN - - NULLIF ( - 95, CAST ( + + 35 AS INTEGER ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT ALL + + COALESCE ( 12, + 75 + + 18 - - + 5 ) / - CAST( NULL AS SIGNED ) / - 19 * - + ( + 16 ) * COALESCE ( - CAST( NULL AS SIGNED ), 55 / 76 + - 74 + - ( - + 89 ) * + + 53 ) + + + COUNT( * ) + - 96 + - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + + COALESCE ( 12, + 75 + + 18 - - + 5 ) / - CAST ( NULL AS INTEGER ) / - 19 * - + ( + 16 ) * COALESCE ( - CAST ( NULL AS INTEGER ), 55 / 76 + - 74 + - ( - + 89 ) * + + 53 ) + + + COUNT ( * ) + - 96 + - 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT DISTINCT + COUNT( - - 98 ) * + + 48 * 85 + + ( 80 ) * - 92
----
-3280

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT + COUNT ( - - 98 ) * + + 48 * 85 + + ( 80 ) * - 92
----
-3280

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

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

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

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

query I rowsort
SELECT ALL + 23 * - 17
----
-391

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT - 29 * - + COUNT( * ) + + + ( COALESCE ( + - 47, + - MIN( - 81 ) * - + 13 - + 0 ) ) * - + COALESCE ( - 86, + + 1 ) * - SUM( ALL + + 7 ) - 71 + - MIN( ALL 86 ) * - 80 + - COALESCE ( 82, - 17 ) + + 14 + + - 99 + - SUM( DISTINCT + + ( - 40 ) ) * - - COUNT( * )
----
35005

skipif mysql # not compatible
query I rowsort label-8915
SELECT - 29 * - + COUNT ( * ) + + + ( COALESCE ( + - 47, + - MIN ( - 81 ) * - + 13 - + 0 ) ) * - + COALESCE ( - 86, + + 1 ) * - SUM ( ALL + + 7 ) - 71 + - MIN ( ALL 86 ) * - 80 + - COALESCE ( 82, - 17 ) + + 14 + + - 99 + - SUM ( DISTINCT + + ( - 40 ) ) * - - COUNT ( * )
----
35005

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT - CASE - MIN( + - 90 ) WHEN + ( + 32 ) + - - 99 THEN NULL WHEN - 19 THEN - 2 + - - 16 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT - CASE - MIN ( + - 90 ) WHEN + ( + 32 ) + - - 99 THEN NULL WHEN - 19 THEN - 2 + - - 16 ELSE NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT ALL 21 DIV + + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL 21 / + + 78 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8918
SELECT - 91 DIV + - 7 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8918
SELECT - 91 / + - 7 AS col1
----
13

query I rowsort
SELECT ALL + 4 * - + 81 AS col1
----
-324

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT + MIN( ALL 71 ) * - - 13 AS col0
----
923

skipif mysql # not compatible
query I rowsort label-8923
SELECT + MIN ( ALL 71 ) * - - 13 AS col0
----
923

query I rowsort
SELECT ALL ( + 63 ) + COALESCE ( + 75, + 59 ) * - + 78
----
-5787

query I rowsort
SELECT ALL 70 + - + 88
----
-18

query I rowsort
SELECT - NULLIF ( - - 53, 17 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT + COUNT( * ) + + 68 + + + 90 * - 52 + 23 * 82 AS col2
----
-2725

skipif mysql # not compatible
query I rowsort label-8927
SELECT + COUNT ( * ) + + 68 + + + 90 * - 52 + 23 * 82 AS col2
----
-2725

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT + MIN( + 7 ) * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-8928
SELECT + MIN ( + 7 ) * + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT ALL 64 + - SUM( 56 ) * + 57 - - 59
----
-3069

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL 64 + - SUM ( 56 ) * + 57 - - 59
----
-3069

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL COUNT( * ) + + - COALESCE ( NULLIF ( 90, 54 * - 75 ), - 34 ) - - 40 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL COUNT ( * ) + + - COALESCE ( NULLIF ( 90, 54 * - 75 ), - 34 ) - - 40 AS col2
----
-49

query I rowsort
SELECT ALL + 59 + + - ( - - 0 ) AS col0
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL 28 + - 32 + 54 / - CASE - COUNT( * ) WHEN + 74 THEN 54 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL 28 + - 32 + 54 / - CASE - COUNT ( * ) WHEN + 74 THEN 54 ELSE NULL END AS col0
----
NULL

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

query I rowsort
SELECT - 92 * - - 1 col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8936
SELECT + 90 DIV - 45 + 38 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8936
SELECT + 90 / - 45 + 38 AS col0
----
36

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8938
SELECT DISTINCT - 68 DIV - + MAX( + + 29 ) - - 68 * + 16 * - COUNT( * ) * + + 5 AS col0, + CAST( - 3 AS SIGNED ) AS col0
----
-5438
-3

skipif mysql # not compatible
query II rowsort label-8938
SELECT DISTINCT - 68 / - + MAX ( + + 29 ) - - 68 * + 16 * - COUNT ( * ) * + + 5 AS col0, + CAST ( - 3 AS INTEGER ) AS col0
----
-5438
-3

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

skipif mysql # not compatible
query I rowsort label-8939
SELECT 24 * - COUNT ( * ) + + 92 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT - - 76 * - COUNT( * ) - ( + - 38 ) + + - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-8940
SELECT - - 76 * - COUNT ( * ) - ( + - 38 ) + + - COUNT ( * )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8941
SELECT ALL + - NULLIF ( COUNT( DISTINCT 61 ), - + CASE + 1 WHEN + NULLIF ( - 83, 89 * 14 ) * + 28 - - CAST( NULL AS SIGNED ) THEN ( COUNT( * ) ) + COUNT( * ) ELSE 62 * + CAST( + 42 AS DECIMAL ) END ) AS col2, 31 AS col1
----
-1
31

skipif mysql # not compatible
query II rowsort label-8941
SELECT ALL + - NULLIF ( COUNT ( DISTINCT 61 ), - + CASE + 1 WHEN + NULLIF ( - 83, 89 * 14 ) * + 28 - - CAST ( NULL AS INTEGER ) THEN ( COUNT ( * ) ) + COUNT ( * ) ELSE 62 * + CAST ( + 42 AS REAL ) END ) AS col2, 31 AS col1
----
-1
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT 59 DIV - - 84
----
0

skipif mysql # not compatible
query I rowsort label-8942
SELECT 59 / - - 84
----
0

query I rowsort
SELECT 30 + 61 + - 20 + - - 23 AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8944
SELECT - 63, 30 + - CAST( NULL AS SIGNED ) AS col2
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-8944
SELECT - 63, 30 + - CAST ( NULL AS INTEGER ) AS col2
----
-63
NULL

query I rowsort
SELECT 43 * - 38
----
-1634

query I rowsort
SELECT 79 * 91 * + 81
----
582309

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT 49 + + CASE - - 16 WHEN - - 45 THEN - + 85 + - - 66 ELSE NULL END + 41 + + 46 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT 49 + + CASE - - 16 WHEN - - 45 THEN - + 85 + - - 66 ELSE NULL END + 41 + + 46 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT DISTINCT 82 DIV + 64
----
1

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT 82 / + 64
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT SUM( ALL + 27 ) + - 92 - 33 + + CASE 85 WHEN COUNT( DISTINCT 35 ) THEN 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT SUM ( ALL + 27 ) + - 92 - 33 + + CASE 85 WHEN COUNT ( DISTINCT 35 ) THEN 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT COUNT( * ) + + 6 + + 65 * + 78 * - 66 * 95
----
-31788893

skipif mysql # not compatible
query I rowsort label-8951
SELECT COUNT ( * ) + + 6 + + 65 * + 78 * - 66 * 95
----
-31788893

query III rowsort
SELECT DISTINCT 2, + 84 - + 6 AS col0, 14 AS col1
----
2
78
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8953
SELECT + 43 DIV COUNT( 29 )
----
43

skipif mysql # not compatible
query I rowsort label-8953
SELECT + 43 / COUNT ( 29 )
----
43

query I rowsort
SELECT ALL 13 * 4
----
52

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

query I rowsort
SELECT DISTINCT - CASE 6 WHEN + 43 THEN - + 82 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8957
SELECT - 10 DIV + SUM( - 51 )
----
0

skipif mysql # not compatible
query I rowsort label-8957
SELECT - 10 / + SUM ( - 51 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8958
SELECT - SUM( ALL - 32 ) DIV 8 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8958
SELECT - SUM ( ALL - 32 ) / 8 AS col1
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-8959
SELECT ALL - - 53 AS col0, 2 + + 25 DIV - 63 AS col1
----
53
2

skipif mysql # not compatible
query II rowsort label-8959
SELECT ALL - - 53 AS col0, 2 + + 25 / - 63 AS col1
----
53
2

query I rowsort
SELECT 21 * - NULLIF ( - + 44, + 68 * 16 ) AS col0
----
924

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8962
SELECT ALL + CAST( NULL AS SIGNED ) / + + 12 / + - 7 + + + COUNT( * ) + + - 55 + - COUNT( * ) * + + 88 + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL + CAST ( NULL AS INTEGER ) / + + 12 / + - 7 + + + COUNT ( * ) + + - 55 + - COUNT ( * ) * + + 88 + + 63
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8963
SELECT + COUNT( * ) DIV - 56 * + 78 col1
----
0

skipif mysql # not compatible
query I rowsort label-8963
SELECT + COUNT ( * ) / - 56 * + 78 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8964
SELECT DISTINCT - CASE - 80 WHEN - - 27 + + + COUNT( * ) THEN NULL WHEN - 69 THEN CAST( - COUNT( * ) AS SIGNED ) WHEN NULLIF ( COUNT( * ), - - 84 ) THEN - - CAST( NULL AS SIGNED ) DIV - - COUNT( * ) * + COUNT( * ) * + 69 * 8 * - - ( 35 ) ELSE + 99 * + 76 * + - 26 + + 59 END * 88 AS col2
----
17209720

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT - CASE - 80 WHEN - - 27 + + + COUNT ( * ) THEN NULL WHEN - 69 THEN CAST ( - COUNT ( * ) AS INTEGER ) WHEN NULLIF ( COUNT ( * ), - - 84 ) THEN - - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) * + COUNT ( * ) * + 69 * 8 * - - ( 35 ) ELSE + 99 * + 76 * + - 26 + + 59 END * 88 AS col2
----
17209720

onlyif mysql # DIV for integer division: 
query I rowsort label-8965
SELECT 0 DIV + + ( 32 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8965
SELECT 0 / + + ( 32 ) AS col2
----
0

query I rowsort
SELECT ALL + 63 + 51 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT DISTINCT - MAX( + 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT - MAX ( + 47 ) AS col0
----
-47

query I rowsort
SELECT ALL ( + 73 ) * + 43
----
3139

query I rowsort
SELECT ALL + 82 + + 18
----
100

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

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL 56 * + COUNT ( ALL + ( - 98 ) ) AS col0
----
56

query I rowsort
SELECT - 95 + - 77 * - 90 AS col0
----
6835

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT + SUM( ALL 29 ) + 55
----
84

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT + SUM ( ALL 29 ) + 55
----
84

query I rowsort
SELECT 34 + + + 90 * + 95
----
8584

query I rowsort
SELECT ALL 18 + + + 3
----
21

query II rowsort
SELECT - 19 AS col2, 83 AS col2
----
-19
83

query I rowsort
SELECT ALL - 59 + - 16 + + + 1
----
-74

query I rowsort
SELECT DISTINCT - 86 + + + 80 AS col0
----
-6

query I rowsort
SELECT 78 - + - 27 AS col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8979
SELECT ALL - 68 DIV COUNT( * ) DIV - 39
----
1

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL - 68 / COUNT ( * ) / - 39
----
1

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

skipif mysql # not compatible
query II rowsort label-8980
SELECT 32, CAST ( NULL AS INTEGER ) col1
----
32
NULL

query I rowsort
SELECT ALL - 59 - 0 - - 25
----
-34

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

skipif mysql # not compatible
query II rowsort label-8982
SELECT 40 col0, CAST ( NULL AS INTEGER )
----
40
NULL

query II rowsort
SELECT - 87 col2, 90 * - 50 * 63 + 27
----
-87
-283473

query I rowsort
SELECT 68 * - 12 AS col1
----
-816

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8985
SELECT 3 * + - 34 * - ( - 15 ), + 34 * COUNT( * ) DIV - 24 AS col1
----
-1530
-1

skipif mysql # not compatible
query II rowsort label-8985
SELECT 3 * + - 34 * - ( - 15 ), + 34 * COUNT ( * ) / - 24 AS col1
----
-1530
-1

query II rowsort
SELECT 18, + 28 + - 53 AS col1
----
18
-25

query II rowsort
SELECT - 43, + 35 AS col0
----
-43
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT DISTINCT - COUNT( * ) - + 85 + - 33 + - COUNT( * ) * + 82 AS col1
----
-201

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT - COUNT ( * ) - + 85 + - 33 + - COUNT ( * ) * + 82 AS col1
----
-201

query II rowsort
SELECT 26 AS col0, - 66 * - 24 AS col2
----
26
1584

query I rowsort
SELECT ALL + 96 * - + 88 AS col2
----
-8448

query I rowsort
SELECT DISTINCT - 42 - + 29 + + 36
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8992
SELECT ALL COUNT( * ) DIV - - 99 * 43
----
0

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL COUNT ( * ) / - - 99 * 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT - 27 - - COUNT( * ) - 47
----
-73

skipif mysql # not compatible
query I rowsort label-8993
SELECT - 27 - - COUNT ( * ) - 47
----
-73

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

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

query II rowsort
SELECT - 28 AS col0, 16
----
-28
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8996
SELECT - AVG ( 38 ) + + CAST( NULL AS DECIMAL ) * - 49 * + 38 + - + 76 + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT - AVG ( 38 ) + + CAST ( NULL AS REAL ) * - 49 * + 38 + - + 76 + 94
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - - 63, - 57 )
----
63

query I rowsort
SELECT + 94 + 52 AS col2
----
146

query I rowsort
SELECT 0 * - 93
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9000
SELECT - 31 DIV 33 + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9000
SELECT - 31 / 33 + 24 AS col2
----
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT - COUNT( * ) * - - 76 - - 6 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9002
SELECT - COUNT ( * ) * - - 76 - - 6 AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9003
SELECT ALL - CASE + - CAST( - 1 AS SIGNED ) WHEN 56 THEN + - 44 END * + - CAST( - - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - CASE + - CAST ( - 1 AS INTEGER ) WHEN 56 THEN + - 44 END * + - CAST ( - - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL - MAX( ALL + ( + - 96 ) ) * 90 + 58 + - + 56
----
8642

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL - MAX ( ALL + ( + - 96 ) ) * 90 + 58 + - + 56
----
8642

query I rowsort
SELECT DISTINCT + + ( - 50 ) col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9006
SELECT ALL - + COALESCE ( 93, + 98 DIV + 94 + 79 ) * - 53 + - + 95
----
4834

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL - + COALESCE ( 93, + 98 / + 94 + 79 ) * - 53 + - + 95
----
4834

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9007
SELECT ALL + - 27 AS col2, AVG ( CAST( NULL AS SIGNED ) ) * + ( 47 ) col1
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-9007
SELECT ALL + - 27 AS col2, AVG ( CAST ( NULL AS INTEGER ) ) * + ( 47 ) col1
----
-27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT + MAX( ALL + 84 ) + 24 * - + 64 AS col2
----
-1452

skipif mysql # not compatible
query I rowsort label-9008
SELECT + MAX ( ALL + 84 ) + 24 * - + 64 AS col2
----
-1452

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT - CASE - 92 WHEN 53 THEN - 43 WHEN 27 THEN - 4 END * - COUNT( * ) + - AVG ( DISTINCT - 62 ) - - NULLIF ( - 75, + 7 / - + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT - CASE - 92 WHEN 53 THEN - 43 WHEN 27 THEN - 4 END * - COUNT ( * ) + - AVG ( DISTINCT - 62 ) - - NULLIF ( - 75, + 7 / - + 73 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9010
SELECT + - 45 * - + 69 + - 66 * COUNT( * ) DIV 78
----
3105

skipif mysql # not compatible
query I rowsort label-9010
SELECT + - 45 * - + 69 + - 66 * COUNT ( * ) / 78
----
3105

query I rowsort
SELECT + - 40 * - 90 col2
----
3600

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT DISTINCT 6 * 16 DIV 61 * - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT 6 * 16 / 61 * - 98 AS col2
----
-98

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

skipif mysql # not compatible
query I rowsort label-9014
SELECT + COUNT ( * ) / + CAST ( 98 AS INTEGER )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9016
SELECT + COUNT( * ) * - + 89 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT + COUNT ( * ) * - + 89 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9017
SELECT ALL + 27 * 22 AS col2, + ( 44 ) * + 77 + COUNT( * ) + + 37 + - - ( - - 77 ) * - NULLIF ( + - 64, - - ( - CAST( - 0 AS SIGNED ) ) + + COUNT( * ) ) - + 4
----
594
8350

skipif mysql # not compatible
query II rowsort label-9017
SELECT ALL + 27 * 22 AS col2, + ( 44 ) * + 77 + COUNT ( * ) + + 37 + - - ( - - 77 ) * - NULLIF ( + - 64, - - ( - CAST ( - 0 AS INTEGER ) ) + + COUNT ( * ) ) - + 4
----
594
8350

query I rowsort
SELECT ALL - 72 - - ( - + 94 ) AS col0
----
-166

query I rowsort
SELECT DISTINCT 70 * 76 AS col0
----
5320

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT SUM( 60 )
----
60

skipif mysql # not compatible
query I rowsort label-9020
SELECT SUM ( 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9021
SELECT - 58 + + + CAST( NULL AS SIGNED ) AS col0, - 99 AS col2
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-9021
SELECT - 58 + + + CAST ( NULL AS INTEGER ) AS col0, - 99 AS col2
----
NULL
-99

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

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL 64 - COUNT ( * ) AS col2
----
63

query I rowsort
SELECT + 70 * - 83 * - ( - 59 )
----
-342790

query I rowsort
SELECT + 87 + - 85
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - CASE + 77 WHEN + - 4 THEN NULL ELSE + NULLIF ( + + 53, AVG ( DISTINCT - 8 ) * - 62 * + NULLIF ( + SUM( + NULLIF ( - 12, - 63 ) ), + 18 ) ) * - 42 - + 98 END AS col2
----
2324

skipif mysql # not compatible
query I rowsort label-9025
SELECT - CASE + 77 WHEN + - 4 THEN NULL ELSE + NULLIF ( + + 53, AVG ( DISTINCT - 8 ) * - 62 * + NULLIF ( + SUM ( + NULLIF ( - 12, - 63 ) ), + 18 ) ) * - 42 - + 98 END AS col2
----
2324

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT + ( + COUNT( * ) ) + - 25 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-9026
SELECT + ( + COUNT ( * ) ) + - 25 AS col0
----
-24

query I rowsort
SELECT - 69 - 53 + + ( + 8 )
----
-114

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9029
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), + + 73 * + - 86 - - + 6 + + - 64 ) AS col2
----
-6336

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), + + 73 * + - 86 - - + 6 + + - 64 ) AS col2
----
-6336

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9030
SELECT ALL CASE + COALESCE ( 62, - 80 + CAST( NULL AS DECIMAL ) + - CASE - 0 WHEN - COUNT( * ) THEN + 63 END + 99 * - 20 * 46 / + 24 - + 38 * 78 * - + 41, - 69 * + 27 * + + 35 ) WHEN 6 * - 59 THEN NULL ELSE 73 END col0
----
73

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL CASE + COALESCE ( 62, - 80 + CAST ( NULL AS REAL ) + - CASE - 0 WHEN - COUNT ( * ) THEN + 63 END + 99 * - 20 * 46 / + 24 - + 38 * 78 * - + 41, - 69 * + 27 * + + 35 ) WHEN 6 * - 59 THEN NULL ELSE 73 END col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT - 33 + MIN( - 87 ) AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-9031
SELECT - 33 + MIN ( - 87 ) AS col0
----
-120

query I rowsort
SELECT - 92 * - 51 AS col2
----
4692

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

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

query II rowsort
SELECT DISTINCT + 0 * + + 58 + + 17 + - - 69 + + + 97, + 94 + - 40 + + + 88 AS col0
----
183
142

query I rowsort
SELECT - - CASE + 61 WHEN + - 23 THEN - + 6 + - 32 + 17 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9036
SELECT + + ( 8 ) DIV - 25 + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-9036
SELECT + + ( 8 ) / - 25 + - 11
----
-11

query I rowsort
SELECT - + 62 * + 33 - - - 43
----
-2089

query I rowsort
SELECT DISTINCT + 40 * + + ( + ( - + 66 ) )
----
-2640

query I rowsort
SELECT ALL - 82 + - + 61 + - 94
----
-237

query II rowsort
SELECT - - ( + 54 ), 60 AS col1
----
54
60

query I rowsort
SELECT - ( - 27 ) + 29 * + 13
----
404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9042
SELECT ALL + CASE - 20 WHEN - 10 THEN + 24 END + + - MIN( - + 33 ) + - + COALESCE ( - + 6, - 29 * - COUNT( * ), + - CAST( + + 1 AS SIGNED ) + ( 74 ) ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + CASE - 20 WHEN - 10 THEN + 24 END + + - MIN ( - + 33 ) + - + COALESCE ( - + 6, - 29 * - COUNT ( * ), + - CAST ( + + 1 AS INTEGER ) + ( 74 ) ) * + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9043
SELECT DISTINCT + + CAST( - CAST( + SUM( ALL 28 ) AS SIGNED ) AS SIGNED ) * - 40 * 61
----
68320

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT + + CAST ( - CAST ( + SUM ( ALL 28 ) AS INTEGER ) AS INTEGER ) * - 40 * 61
----
68320

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT ALL - - 34 DIV 80 + - 52 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL - - 34 / 80 + - 52 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT COALESCE ( + ( + + 44 ), - - 38, - + COALESCE ( + ( - 39 ), - 17 * + + 80 * + 68 * COUNT( * ) * NULLIF ( - - 48, + + MIN( + 94 ) ) ) ) col2
----
44

skipif mysql # not compatible
query I rowsort label-9045
SELECT COALESCE ( + ( + + 44 ), - - 38, - + COALESCE ( + ( - 39 ), - 17 * + + 80 * + 68 * COUNT ( * ) * NULLIF ( - - 48, + + MIN ( + 94 ) ) ) ) col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9046
SELECT 49 DIV COUNT( * ) * - + 54 - + + 32 AS col0
----
-2678

skipif mysql # not compatible
query I rowsort label-9046
SELECT 49 / COUNT ( * ) * - + 54 - + + 32 AS col0
----
-2678

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT - NULLIF ( + 79, - COUNT( ALL + COALESCE ( + 34, - + 77 ) ) * + ( 84 ) * - 94 - + 71 - - - COUNT( * ) * 6 * + 88 - - 5 ) col0
----
-79

skipif mysql # not compatible
query I rowsort label-9047
SELECT - NULLIF ( + 79, - COUNT ( ALL + COALESCE ( + 34, - + 77 ) ) * + ( 84 ) * - 94 - + 71 - - - COUNT ( * ) * 6 * + 88 - - 5 ) col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-9048
SELECT ALL - ( 74 ) * + 14 + + COALESCE ( - 77, 32 DIV + + COALESCE ( - 20, - 35 * + 66 ) - - 37 )
----
-1113

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - ( 74 ) * + 14 + + COALESCE ( - 77, 32 / + + COALESCE ( - 20, - 35 * + 66 ) - - 37 )
----
-1113

query II rowsort
SELECT - - 0 * + 33 col2, - 58 col0
----
0
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9050
SELECT + 4 * - + COUNT( - NULLIF ( 91, 13 ) ) * CAST( NULL AS SIGNED ) + + 45 * + + ( + 76 ) - + NULLIF ( - 31, + 21 ) * - 58 + - 67 + 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT + 4 * - + COUNT ( - NULLIF ( 91, 13 ) ) * CAST ( NULL AS INTEGER ) + + 45 * + + ( + 76 ) - + NULLIF ( - 31, + 21 ) * - 58 + - 67 + 38 col2
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 69, 53 )
----
69

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

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

query I rowsort
SELECT ALL - 77 * - 31 - 59
----
2328

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL 29 * + + 92 - - 26 - - + COALESCE ( COUNT( * ), + CASE - 7 WHEN + 17 THEN 10 WHEN 2 THEN + + 4 END * + + 92 * + + 82 ) + NULLIF ( + 46, + ( 87 ) ) + - 13 * - 2 AS col0
----
2767

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL 29 * + + 92 - - 26 - - + COALESCE ( COUNT ( * ), + CASE - 7 WHEN + 17 THEN 10 WHEN 2 THEN + + 4 END * + + 92 * + + 82 ) + NULLIF ( + 46, + ( 87 ) ) + - 13 * - 2 AS col0
----
2767

query I rowsort
SELECT ALL 35 * 82 - - - ( + 80 ) * + - 91
----
10150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9056
SELECT + COUNT( * ) - - 58 + CAST( NULL AS SIGNED ) + + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT + COUNT ( * ) - - 58 + CAST ( NULL AS INTEGER ) + + 70 AS col2
----
NULL

query I rowsort
SELECT ALL + 68 * + + 81 AS col0
----
5508

query I rowsort
SELECT DISTINCT + 59 * + 32 AS col2
----
1888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9059
SELECT CASE - - CAST( + 17 AS SIGNED ) WHEN 63 THEN NULL ELSE COALESCE ( - COUNT( * ), COUNT( * ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9059
SELECT CASE - - CAST ( + 17 AS INTEGER ) WHEN 63 THEN NULL ELSE COALESCE ( - COUNT ( * ), COUNT ( * ) ) END
----
-1

query II rowsort
SELECT ALL + 39 AS col1, 0 * + 61 AS col1
----
39
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT + ( - COUNT( * ) ) * - ( - - 64 ) + + MAX( DISTINCT 31 ) + 64
----
159

skipif mysql # not compatible
query I rowsort label-9061
SELECT + ( - COUNT ( * ) ) * - ( - - 64 ) + + MAX ( DISTINCT 31 ) + 64
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT DISTINCT 63 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT 63 / - 92
----
0

query I rowsort
SELECT ALL ( - 15 ) * + 26
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL AVG ( ALL - 41 ) / - CASE 76 WHEN 6 THEN 25 WHEN + + COUNT( * ) THEN 59 * COUNT( * ) * - + 64 WHEN - - 77 THEN + ( + + 50 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL AVG ( ALL - 41 ) / - CASE 76 WHEN 6 THEN 25 WHEN + + COUNT ( * ) THEN 59 * COUNT ( * ) * - + 64 WHEN - - 77 THEN + ( + + 50 ) END
----
NULL

query I rowsort
SELECT + 10 * 95
----
950

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-9067
SELECT ALL 92 + COUNT( ALL - 70 ) - ( - SUM( + 4 ) ) AS col1, COALESCE ( MAX( DISTINCT + + 68 ), - NULLIF ( - 94, - COUNT( * ) ) * + + COUNT( DISTINCT + 38 ) - + + 84, 45 ) + + 40
----
97
108

skipif mysql # not compatible
query II rowsort label-9067
SELECT ALL 92 + COUNT ( ALL - 70 ) - ( - SUM ( + 4 ) ) AS col1, COALESCE ( MAX ( DISTINCT + + 68 ), - NULLIF ( - 94, - COUNT ( * ) ) * + + COUNT ( DISTINCT + 38 ) - + + 84, 45 ) + + 40
----
97
108

query I rowsort
SELECT ALL 20 + + 21
----
41

query I rowsort
SELECT - 59 * + 91 + + 70
----
-5299

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

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT + - COUNT ( * ) + 73 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL - - 60 + - 41 * 47 + - + COUNT( * ) * + 69 + + MIN( 93 ) col1
----
-1843

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL - - 60 + - 41 * 47 + - + COUNT ( * ) * + 69 + + MIN ( 93 ) col1
----
-1843

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT COUNT( * ) - - - 44 + - + COUNT( * ) + + 80 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9072
SELECT COUNT ( * ) - - - 44 + - + COUNT ( * ) + + 80 AS col2
----
36

query I rowsort
SELECT DISTINCT + - 47 * + 97 AS col1
----
-4559

query I rowsort
SELECT DISTINCT 4 + - 67 AS col1
----
-63

query II rowsort
SELECT 7, 87 col1
----
7
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT - - COUNT( DISTINCT 11 )
----
1

skipif mysql # not compatible
query I rowsort label-9076
SELECT - - COUNT ( DISTINCT 11 )
----
1

query II rowsort
SELECT ALL + + 80 + - 36 + - 21, - 69 AS col0
----
23
-69

query I rowsort
SELECT DISTINCT + - 55 * - - 12 col1
----
-660

onlyif mysql # DIV for integer division: 
query I rowsort label-9079
SELECT 4 DIV + + 45 + - - 48 + - - 8
----
56

skipif mysql # not compatible
query I rowsort label-9079
SELECT 4 / + + 45 + - - 48 + - - 8
----
56

query I rowsort
SELECT ALL + + 5 * + 42 AS col1
----
210

query I rowsort
SELECT 8 + + - 27
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9082
SELECT + + 30 DIV COUNT( * ) - - 50
----
80

skipif mysql # not compatible
query I rowsort label-9082
SELECT + + 30 / COUNT ( * ) - - 50
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT 54 * 17 + CASE - 70 WHEN + 97 * + COUNT( - + 38 ) + + ( + 51 ) THEN NULL WHEN 67 THEN + 15 * + - COUNT( * ) END - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT 54 * 17 + CASE - 70 WHEN + 97 * + COUNT ( - + 38 ) + + ( + 51 ) THEN NULL WHEN 67 THEN + 15 * + - COUNT ( * ) END - - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 76 * + + 45
----
-3420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9085
SELECT ALL - ( NULLIF ( - - CAST( NULL AS SIGNED ), + 75 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL - ( NULLIF ( - - CAST ( NULL AS INTEGER ), + 75 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9086
SELECT + 81 / + + SUM( - 26 ) + + - 52 - + - AVG ( ALL - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT + 81 / + + SUM ( - 26 ) + + - 52 - + - AVG ( ALL - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT 49 * - + ( - + CAST( + - 47 AS SIGNED ) )
----
-2303

skipif mysql # not compatible
query I rowsort label-9087
SELECT 49 * - + ( - + CAST ( + - 47 AS INTEGER ) )
----
-2303

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT 88 + - - MIN( - + 89 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9088
SELECT 88 + - - MIN ( - + 89 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9089
SELECT COUNT( * ) * + 69 AS col2, 30 - - - NULLIF ( - - 83, + + MAX( 23 ) ) AS col0
----
69
-53

skipif mysql # not compatible
query II rowsort label-9089
SELECT COUNT ( * ) * + 69 AS col2, 30 - - - NULLIF ( - - 83, + + MAX ( 23 ) ) AS col0
----
69
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL - ( - COUNT( ALL 63 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL - ( - COUNT ( ALL 63 ) )
----
1

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

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

query II rowsort
SELECT ALL NULLIF ( 40, - 88 ) * + 81, 30 AS col2
----
3240
30

query I rowsort
SELECT ALL + 37 * - 9
----
-333

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT ( 56 ) + + - 25 + - - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT ( 56 ) + + - 25 + - - COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ALL + COUNT( * ) * - MIN( DISTINCT 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL + COUNT ( * ) * - MIN ( DISTINCT 77 )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9096
SELECT 83 DIV + 30
----
2

skipif mysql # not compatible
query I rowsort label-9096
SELECT 83 / + 30
----
2

query I rowsort
SELECT ( 55 ) * + 51
----
2805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT ALL MAX( 78 ) + - - CAST( NULL AS SIGNED ) * 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL MAX ( 78 ) + - - CAST ( NULL AS INTEGER ) * 71 AS col1
----
NULL

query I rowsort
SELECT 3 - 54 col0
----
-51

query I rowsort
SELECT DISTINCT + 23 + + 36 AS col1
----
59

query I rowsort
SELECT - NULLIF ( + - 92, 23 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL - 49 + + - SUM( + + 44 )
----
-93

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL - 49 + + - SUM ( + + 44 )
----
-93

query I rowsort
SELECT ALL + 90 * - + 22 AS col1
----
-1980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9104
SELECT ALL + 79 DIV + COALESCE ( - 97, - 66 ) * + - 88 * MAX( ALL + 48 ) - + COALESCE ( + 99, + 27 )
----
-99

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + 79 / + COALESCE ( - 97, - 66 ) * + - 88 * MAX ( ALL + 48 ) - + COALESCE ( + 99, + 27 )
----
-99

query I rowsort
SELECT DISTINCT 49 * - - 93
----
4557

query I rowsort
SELECT ALL - 99 * 63 AS col1
----
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT 52 + + 12 + - 76 + - + 95 * - - COUNT( * ) AS col0
----
-107

skipif mysql # not compatible
query I rowsort label-9107
SELECT 52 + + 12 + - 76 + - + 95 * - - COUNT ( * ) AS col0
----
-107

query I rowsort
SELECT ALL + 30 * + 5 + + 10 AS col0
----
160

query I rowsort
SELECT - 37 + + ( + 14 ) AS col0
----
-23

query I rowsort
SELECT DISTINCT - 55 + 15 * 50
----
695

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9113
SELECT ALL - 47 - - SUM( + 66 ) + + 85 * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL - 47 - - SUM ( + 66 ) + + 85 * + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9114
SELECT - + NULLIF ( 60, + - CAST( NULL AS SIGNED ) * - 92 - - 76 + + 70 ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-9114
SELECT - + NULLIF ( 60, + - CAST ( NULL AS INTEGER ) * - 92 - - 76 + + 70 ) col1
----
-60

query I rowsort
SELECT ALL + 72 - - 17 + - - 28
----
117

query I rowsort
SELECT 54 * 80
----
4320

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL COUNT( * ) * - 39 - + 81 * 39 col1
----
-3198

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL COUNT ( * ) * - 39 - + 81 * 39 col1
----
-3198

query I rowsort
SELECT 49 * - 0 AS col1
----
0

query I rowsort
SELECT 85 * ( ( - + 29 ) ) * - 16 AS col1
----
39440

query II rowsort
SELECT + 57 AS col0, + 50
----
57
50

query I rowsort
SELECT 97 * + 24
----
2328

query I rowsort
SELECT ALL - 14 * + 79
----
-1106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9125
SELECT 68 - 45 * - COALESCE ( + 69, - MAX( DISTINCT + 68 ) - 14, + + 13 + COUNT( DISTINCT + 40 ) * + CAST( NULL AS SIGNED ) * - CAST( + 3 AS SIGNED ) * CAST( - 83 AS SIGNED ) + - 66 ) AS col1
----
3173

skipif mysql # not compatible
query I rowsort label-9125
SELECT 68 - 45 * - COALESCE ( + 69, - MAX ( DISTINCT + 68 ) - 14, + + 13 + COUNT ( DISTINCT + 40 ) * + CAST ( NULL AS INTEGER ) * - CAST ( + 3 AS INTEGER ) * CAST ( - 83 AS INTEGER ) + - 66 ) AS col1
----
3173

query I rowsort
SELECT 75 * + 70 AS col2
----
5250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9127
SELECT ALL - NULLIF ( + + 2, 52 / + CAST( + - 62 AS SIGNED ) + + CASE - 33 WHEN + + 4 THEN - COUNT( ALL + 20 ) END ) col2, 23 * 28 AS col1
----
-2
644

skipif mysql # not compatible
query II rowsort label-9127
SELECT ALL - NULLIF ( + + 2, 52 / + CAST ( + - 62 AS INTEGER ) + + CASE - 33 WHEN + + 4 THEN - COUNT ( ALL + 20 ) END ) col2, 23 * 28 AS col1
----
-2
644

query I rowsort
SELECT 87 * + 5 AS col1
----
435

query I rowsort
SELECT DISTINCT - ( 2 ) col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9130
SELECT 3 - + + 55 DIV + - MAX( + 47 )
----
4

skipif mysql # not compatible
query I rowsort label-9130
SELECT 3 - + + 55 / + - MAX ( + 47 )
----
4

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

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

query I rowsort
SELECT 13 - 90
----
-77

query I rowsort
SELECT + COALESCE ( 3, 80 * - 67 * + 17 + 0 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9134
SELECT ALL + COALESCE ( - - 93, + - COUNT( * ) ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL + COALESCE ( - - 93, + - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 99 * + 21
----
2079

query I rowsort
SELECT DISTINCT + 88 + + 65
----
153

query I rowsort
SELECT ALL - + 5 * - + 6 AS col1
----
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT ALL - - MIN( 15 ) + + 77 + + MIN( 48 )
----
140

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL - - MIN ( 15 ) + + 77 + + MIN ( 48 )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT - 61 * - - COUNT( * ) + + 93 * + 81 - - 46 + COUNT( * ) col2
----
7519

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT - 61 * - - COUNT ( * ) + + 93 * + 81 - - 46 + COUNT ( * ) col2
----
7519

query I rowsort
SELECT DISTINCT - + 63 * - 20 AS col2
----
1260

query I rowsort
SELECT - ( - 50 ) * - 67 * + - 21
----
70350

query I rowsort
SELECT - - 62 - + 73 AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9144
SELECT + - 56 DIV - 30 + - - 90 + 39 + + COUNT( * ) - - COALESCE ( + 37, 77 ) * + 7 * - ( - ( 11 ) )
----
2980

skipif mysql # not compatible
query I rowsort label-9144
SELECT + - 56 / - 30 + - - 90 + 39 + + COUNT ( * ) - - COALESCE ( + 37, 77 ) * + 7 * - ( - ( 11 ) )
----
2980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9145
SELECT - 61 AS col1, - 66 + + CAST( - + COUNT( * ) AS SIGNED )
----
-61
-67

skipif mysql # not compatible
query II rowsort label-9145
SELECT - 61 AS col1, - 66 + + CAST ( - + COUNT ( * ) AS INTEGER )
----
-61
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9146
SELECT ALL - 18 DIV 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - 18 / 61 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9147
SELECT + - 12 * + ( - - COALESCE ( - ( + 79 ), - COUNT( * ) ) ) + CAST( NULL AS SIGNED ) * + 74 AS col1, - NULLIF ( + 58, 31 ) col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-9147
SELECT + - 12 * + ( - - COALESCE ( - ( + 79 ), - COUNT ( * ) ) ) + CAST ( NULL AS INTEGER ) * + 74 AS col1, - NULLIF ( + 58, 31 ) col2
----
NULL
-58

query I rowsort
SELECT + 10 - 74
----
-64

query I rowsort
SELECT DISTINCT 49 * + 71
----
3479

query I rowsort
SELECT + 37 - - + 70
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-9151
SELECT - + 35 DIV 35 col1
----
-1

skipif mysql # not compatible
query I rowsort label-9151
SELECT - + 35 / 35 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT DISTINCT - 24 * + + MIN( ALL 25 ) * - 30
----
18000

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT - 24 * + + MIN ( ALL 25 ) * - 30
----
18000

query II rowsort
SELECT + 71 + 89 + + 2 + + 95 col0, 76 AS col2
----
257
76

query I rowsort
SELECT + 77 * + 15
----
1155

query I rowsort
SELECT DISTINCT 83 * 2 col0
----
166

query II rowsort
SELECT ALL + 33, ( - - ( + 12 ) ) AS col1
----
33
12

query I rowsort
SELECT - 85 * - 48 - + 47 AS col1
----
4033

query I rowsort
SELECT + 23 + + 20 * - 39 AS col0
----
-757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9159
SELECT + 41 * - CAST( + 38 AS SIGNED )
----
-1558

skipif mysql # not compatible
query I rowsort label-9159
SELECT + 41 * - CAST ( + 38 AS INTEGER )
----
-1558

query I rowsort
SELECT DISTINCT 47 * - 25
----
-1175

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9162
SELECT DISTINCT - 47 * + 18 + - - 28 + 82 + + 83 * - + COALESCE ( + 3, 43 * 11 + + 59, COUNT( * ) + NULLIF ( + - COALESCE ( 45, - 37, + COUNT( * ) DIV - + COUNT( * ) ), - 69 * - 53 * + 94 ) ) AS col0
----
-985

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT - 47 * + 18 + - - 28 + 82 + + 83 * - + COALESCE ( + 3, 43 * 11 + + 59, COUNT ( * ) + NULLIF ( + - COALESCE ( 45, - 37, + COUNT ( * ) / - + COUNT ( * ) ), - 69 * - 53 * + 94 ) ) AS col0
----
-985

query I rowsort
SELECT ALL + 63 * 6 + + - 98 AS col0
----
280

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9165
SELECT - ( + ( + SUM( DISTINCT - 74 ) ) ) DIV + - CAST( 12 AS SIGNED ) + + 60 + + 73 - CAST( + + ( 36 ) AS SIGNED ) + - MIN( DISTINCT + 37 ) * - + 58, - 47 AS col2
----
2237
-47

skipif mysql # not compatible
query II rowsort label-9165
SELECT - ( + ( + SUM ( DISTINCT - 74 ) ) ) / + - CAST ( 12 AS INTEGER ) + + 60 + + 73 - CAST ( + + ( 36 ) AS INTEGER ) + - MIN ( DISTINCT + 37 ) * - + 58, - 47 AS col2
----
2237
-47

query I rowsort
SELECT + COALESCE ( 41, 0 ) AS col2
----
41

query I rowsort
SELECT NULLIF ( + - 6, - 15 )
----
-6

query I rowsort
SELECT ALL 69 * + - 63 * 93
----
-404271

query I rowsort
SELECT DISTINCT + 53 * + 46 + 40 - - 91
----
2569

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

query I rowsort
SELECT + 10 * 78
----
780

query I rowsort
SELECT ALL + 60 * + 70 * - 64 + + ( 75 ) AS col1
----
-268725

query II rowsort
SELECT 21 AS col1, 4 AS col0
----
21
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9174
SELECT DISTINCT 43 * + 90 * + - ( - 97 ) AS col0, 76 * - COUNT( * ) AS col2
----
375390
-76

skipif mysql # not compatible
query II rowsort label-9174
SELECT DISTINCT 43 * + 90 * + - ( - 97 ) AS col0, 76 * - COUNT ( * ) AS col2
----
375390
-76

query I rowsort
SELECT - 83 * + 89
----
-7387

query II rowsort
SELECT ALL + 2 AS col2, ( + 37 ) AS col2
----
2
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT - + CAST( 67 AS SIGNED ) + - 12 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-9177
SELECT - + CAST ( 67 AS INTEGER ) + - 12 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT - 96 * + + MIN( 14 ) AS col2
----
-1344

skipif mysql # not compatible
query I rowsort label-9178
SELECT - 96 * + + MIN ( 14 ) AS col2
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + - 66 + + - 5 + + 10 * COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9179
SELECT + - 66 + + - 5 + + 10 * COUNT ( * )
----
-61

query I rowsort
SELECT - CASE AVG ( - 11 ) WHEN + 40 THEN NULL WHEN + 42 THEN + 25 + 56 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9181
SELECT - COUNT( - + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9181
SELECT - COUNT ( - + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL - ( 65 ) col1
----
-65

query I rowsort
SELECT - ( - 1 ) + 57 * - 47
----
-2678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT - 72 + COUNT( * ) - + CAST( NULL AS SIGNED ) * - 16 / + - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT - 72 + COUNT ( * ) - + CAST ( NULL AS INTEGER ) * - 16 / + - 25 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 36 * 99 * - 34
----
-121176

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9186
SELECT - 99 * - CASE - - CAST( 6 AS DECIMAL ) WHEN + - 99 THEN NULL ELSE 41 END DIV - COUNT( * )
----
-4059

skipif mysql # not compatible
query I rowsort label-9186
SELECT - 99 * - CASE - - CAST ( 6 AS REAL ) WHEN + - 99 THEN NULL ELSE 41 END / - COUNT ( * )
----
-4059

query I rowsort
SELECT ALL - + 86 * + - 41 AS col1
----
3526

onlyif mysql # aggregate syntax: 
query II rowsort label-9188
SELECT ALL + 96 AS col1, - 2 * + + COUNT( * ) AS col1
----
96
-2

skipif mysql # not compatible
query II rowsort label-9188
SELECT ALL + 96 AS col1, - 2 * + + COUNT ( * ) AS col1
----
96
-2

query II rowsort
SELECT - - 75 + + 4 AS col0, + 99 col1
----
79
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9190
SELECT - + NULLIF ( + + ( - 19 ), - - COUNT( * ) ) * - 92 * + - COUNT( * ) AS col0, ( - 72 )
----
1748
-72

skipif mysql # not compatible
query II rowsort label-9190
SELECT - + NULLIF ( + + ( - 19 ), - - COUNT ( * ) ) * - 92 * + - COUNT ( * ) AS col0, ( - 72 )
----
1748
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-9191
SELECT + + 0 + + 72 + 91 + - 74 * - + 26 + + 30 AS col0, + COUNT( * ) * - COUNT( 48 ) * + 36 AS col2
----
2117
-36

skipif mysql # not compatible
query II rowsort label-9191
SELECT + + 0 + + 72 + 91 + - 74 * - + 26 + + 30 AS col0, + COUNT ( * ) * - COUNT ( 48 ) * + 36 AS col2
----
2117
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL - + 94 * + 68 + - - 94 + 45 * - COUNT( * ) AS col0
----
-6343

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL - + 94 * + 68 + - - 94 + 45 * - COUNT ( * ) AS col0
----
-6343

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

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

query II rowsort
SELECT - - 60, + ( - 87 ) AS col2
----
60
-87

query I rowsort
SELECT ALL - 20 + + 74 AS col1
----
54

query II rowsort
SELECT + 53 + - 51 AS col2, - 0 * + 89 AS col2
----
2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT ALL 35 DIV - + 35
----
-1

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL 35 / - + 35
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9198
SELECT ALL + 19 DIV + - 46 + + COUNT( * ) + + - ( + - ( - 35 ) ) + + 79
----
45

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + 19 / + - 46 + + COUNT ( * ) + + - ( + - ( - 35 ) ) + + 79
----
45

query I rowsort
SELECT + 94 * - 43
----
-4042

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9200
SELECT ALL + SUM( + 78 ) DIV + 9 - 42 DIV 39 + 43
----
50

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + SUM ( + 78 ) / + 9 - 42 / 39 + 43
----
50

query II rowsort
SELECT - 64 * - 79 AS col0, 15 AS col2
----
5056
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9202
SELECT DISTINCT COUNT( * ) * - - 46, + 79 AS col0
----
46
79

skipif mysql # not compatible
query II rowsort label-9202
SELECT DISTINCT COUNT ( * ) * - - 46, + 79 AS col0
----
46
79

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

skipif mysql # not compatible
query I rowsort label-9203
SELECT + 46 / + 51
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9204
SELECT ALL + COUNT( * ) DIV - 44 + - 64 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + COUNT ( * ) / - 44 + - 64 AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT - CAST( - 35 AS SIGNED ) - - + 38 col0
----
73

skipif mysql # not compatible
query I rowsort label-9205
SELECT - CAST ( - 35 AS INTEGER ) - - + 38 col0
----
73

query I rowsort
SELECT + 63 * - 53 AS col1
----
-3339

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9207
SELECT ALL - CAST( + 97 AS SIGNED ) DIV - + ( 2 ) + - + 5 * + - NULLIF ( 97, - + 6 * 25 DIV + 27 + 96 ) AS col1
----
533

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL - CAST ( + 97 AS INTEGER ) / - + ( 2 ) + - + 5 * + - NULLIF ( 97, - + 6 * 25 / + 27 + 96 ) AS col1
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT ALL 45 * - NULLIF ( + 62, + COUNT( DISTINCT 54 ) ) col2
----
-2790

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL 45 * - NULLIF ( + 62, + COUNT ( DISTINCT 54 ) ) col2
----
-2790

onlyif mysql # aggregate syntax: 
query II rowsort label-9209
SELECT COUNT( * ) * + 70 AS col0, + 95
----
70
95

skipif mysql # not compatible
query II rowsort label-9209
SELECT COUNT ( * ) * + 70 AS col0, + 95
----
70
95

query I rowsort
SELECT ALL 74 - - - 1 * - + 57 AS col2
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9211
SELECT CAST( NULL AS SIGNED ) - - - 44 + + - CAST( NULL AS SIGNED ) * 28 * - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT CAST ( NULL AS INTEGER ) - - - 44 + + - CAST ( NULL AS INTEGER ) * 28 * - 37 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT CAST( - MIN( ( 31 ) ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-9212
SELECT CAST ( - MIN ( ( 31 ) ) AS INTEGER )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT CASE + 37 WHEN 34 THEN + + 98 * + 74 * - - ( + + 90 ) / + 69 + - 3 WHEN ( COUNT( * ) ) / + 69 THEN NULL ELSE 3 END AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9213
SELECT CASE + 37 WHEN 34 THEN + + 98 * + 74 * - - ( + + 90 ) / + 69 + - 3 WHEN ( COUNT ( * ) ) / + 69 THEN NULL ELSE 3 END AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT + CAST( + 22 AS SIGNED ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9214
SELECT + CAST ( + 22 AS INTEGER ) AS col2
----
22

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

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL - COUNT ( * ) - + COUNT ( * ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) * + - 63 / + 87 * + - 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) * + - 63 / + 87 * + - 64 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9217
SELECT - CAST( + 78 AS SIGNED ) * 81 + - 49 + 45, + 58 col2
----
-6322
58

skipif mysql # not compatible
query II rowsort label-9217
SELECT - CAST ( + 78 AS INTEGER ) * 81 + - 49 + 45, + 58 col2
----
-6322
58

query II rowsort
SELECT DISTINCT + - 96 * + 67 * 14 + 23 + - + 41, - 46 AS col2
----
-90066
-46

query I rowsort
SELECT DISTINCT ( 86 ) AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT + NULLIF ( + 75, + CAST( NULL AS SIGNED ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9220
SELECT + NULLIF ( + 75, + CAST ( NULL AS INTEGER ) ) AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9221
SELECT + CAST( + - 0 AS SIGNED ) col2, COUNT( * ) - + + 83 + - 10 * + 29 * CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9221
SELECT + CAST ( + - 0 AS INTEGER ) col2, COUNT ( * ) - + + 83 + - 10 * + 29 * CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9222
SELECT + 50 DIV COUNT( * ), 12 DIV - CAST( - 38 AS SIGNED ) AS col2
----
50
0

skipif mysql # not compatible
query II rowsort label-9222
SELECT + 50 / COUNT ( * ), 12 / - CAST ( - 38 AS INTEGER ) AS col2
----
50
0

query I rowsort
SELECT - 72 + + 6 col1
----
-66

query I rowsort
SELECT DISTINCT - 22 + - 93
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL 30 + + COUNT( * ) + - + 7 * + + 32
----
-193

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL 30 + + COUNT ( * ) + - + 7 * + + 32
----
-193

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

query I rowsort
SELECT ALL + 82 + + 62
----
144

query I rowsort
SELECT 94 - - - 60
----
34

query II rowsort
SELECT - 8 col1, 55
----
-8
55

query I rowsort
SELECT ALL - ( - 46 ) + + - 0 AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9231
SELECT 3 - 13 DIV - + 36 + + 61
----
64

skipif mysql # not compatible
query I rowsort label-9231
SELECT 3 - 13 / - + 36 + + 61
----
64

query I rowsort
SELECT 13 + - 11 col1
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT 93 + + ( + 38 ) + 59 * + 84 * + 49 * + COUNT( ALL + 23 ) * + COALESCE ( 87, + 79 ) * - - 59
----
1246518383

skipif mysql # not compatible
query I rowsort label-9234
SELECT 93 + + ( + 38 ) + 59 * + 84 * + 49 * + COUNT ( ALL + 23 ) * + COALESCE ( 87, + 79 ) * - - 59
----
1246518383

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9235
SELECT - 26 / - MIN( ALL + + 44 ) + - 73 - + + 46 + + ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT - 26 / - MIN ( ALL + + 44 ) + - 73 - + + 46 + + ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 75 * - + 73 AS col2
----
-5475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9238
SELECT ALL - 20 - - COUNT( * ) - - + ( - 6 ) DIV 70 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL - 20 - - COUNT ( * ) - - + ( - 6 ) / 70 AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9239
SELECT - CAST( NULL AS SIGNED ) * - ( - 37 ) + + 70 * - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT - CAST ( NULL AS INTEGER ) * - ( - 37 ) + + 70 * - 52 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9240
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL ) * + - COUNT( ALL 51 ) * + 26 + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT COUNT ( * ) * - CAST ( NULL AS REAL ) * + - COUNT ( ALL 51 ) * + 26 + + 88
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9244
SELECT ALL 44 * COALESCE ( + 6, 5 + + - 61, - COALESCE ( - + 1, + 78 * - - 4 * - AVG ( NULLIF ( + 78, - - 85 * 17 + - + 64 ) ) - - MIN( + + 36 ) ) ) DIV 68 * 18 - + - 84 * + - 92 * - 41 + - + 0
----
316902

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL 44 * COALESCE ( + 6, 5 + + - 61, - COALESCE ( - + 1, + 78 * - - 4 * - AVG ( NULLIF ( + 78, - - 85 * 17 + - + 64 ) ) - - MIN ( + + 36 ) ) ) / 68 * 18 - + - 84 * + - 92 * - 41 + - + 0
----
316902

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9245
SELECT ALL - - 48 AS col2, + COUNT( * ) DIV 33
----
48
0

skipif mysql # not compatible
query II rowsort label-9245
SELECT ALL - - 48 AS col2, + COUNT ( * ) / 33
----
48
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9246
SELECT 75 * 52 DIV + ( 72 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9246
SELECT 75 * 52 / + ( 72 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - 86 * 0 + + SUM( DISTINCT - + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-9247
SELECT - 86 * 0 + + SUM ( DISTINCT - + 46 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9248
SELECT DISTINCT - ( - + 58 ) * - - CAST( NULL AS SIGNED ) + - ( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT - ( - + 58 ) * - - CAST ( NULL AS INTEGER ) + - ( 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9249
SELECT ALL - + 71 AS col1, 51 + - 19 * COUNT( * ) * + + 51 * + 22 AS col0
----
-71
-21267

skipif mysql # not compatible
query II rowsort label-9249
SELECT ALL - + 71 AS col1, 51 + - 19 * COUNT ( * ) * + + 51 * + 22 AS col0
----
-71
-21267

query I rowsort
SELECT ALL + - 27 * 75 + + 74
----
-1951

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT DISTINCT COUNT( * ) * + ( 58 ) AS col0, - 71
----
58
-71

skipif mysql # not compatible
query II rowsort label-9251
SELECT DISTINCT COUNT ( * ) * + ( 58 ) AS col0, - 71
----
58
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT ALL - + NULLIF ( + - 41, - + CAST( NULL AS SIGNED ) )
----
41

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL - + NULLIF ( + - 41, - + CAST ( NULL AS INTEGER ) )
----
41

query I rowsort
SELECT 75 + - 29
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9254
SELECT DISTINCT - 62, - CAST( - - 12 AS SIGNED ) AS col2
----
-62
-12

skipif mysql # not compatible
query II rowsort label-9254
SELECT DISTINCT - 62, - CAST ( - - 12 AS INTEGER ) AS col2
----
-62
-12

query I rowsort
SELECT - 20 * 40 AS col0
----
-800

query I rowsort
SELECT - 90 + + 6 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ALL MAX( 9 ) + - 78 * + 33
----
-2565

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL MAX ( 9 ) + - 78 * + 33
----
-2565

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9259
SELECT 54 + ( - COUNT( * ) ) AS col0, - 38 + - 97 + + CAST( + 16 AS SIGNED )
----
53
-119

skipif mysql # not compatible
query II rowsort label-9259
SELECT 54 + ( - COUNT ( * ) ) AS col0, - 38 + - 97 + + CAST ( + 16 AS INTEGER )
----
53
-119

query I rowsort
SELECT + 56 + + 16 + - 62 col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9261
SELECT NULLIF ( - 84, + 20 * - - 61 * - 22 + + ( + 17 ) / 31 * - 96 * 30 ) + - + COUNT( * ), 47 AS col1
----
-85
47

skipif mysql # not compatible
query II rowsort label-9261
SELECT NULLIF ( - 84, + 20 * - - 61 * - 22 + + ( + 17 ) / 31 * - 96 * 30 ) + - + COUNT ( * ), 47 AS col1
----
-85
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT DISTINCT + CAST( + 60 AS SIGNED ) * - 91 * - 15
----
81900

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT + CAST ( + 60 AS INTEGER ) * - 91 * - 15
----
81900

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT - NULLIF ( + 3, - ( + + MIN( - 27 ) ) - - + 40 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9263
SELECT - NULLIF ( + 3, - ( + + MIN ( - 27 ) ) - - + 40 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9264
SELECT ALL - MAX( 62 ) + 70, + 62 AS col0
----
8
62

skipif mysql # not compatible
query II rowsort label-9264
SELECT ALL - MAX ( 62 ) + 70, + 62 AS col0
----
8
62

query II rowsort
SELECT - 59 AS col1, - 19
----
-59
-19

query I rowsort
SELECT DISTINCT 24 * - 64 AS col1
----
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT COALESCE ( 86, - - 37, 33 ) + + COUNT( * ) * - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-9267
SELECT COALESCE ( 86, - - 37, 33 ) + + COUNT ( * ) * - COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL 76 + - ( - SUM( - - 56 ) ) + - 40 * - 40 AS col1
----
1732

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL 76 + - ( - SUM ( - - 56 ) ) + - 40 * - 40 AS col1
----
1732

query II rowsort
SELECT 84 * - 43, 23 AS col1
----
-3612
23

query I rowsort
SELECT - 40 + + + 97 * - + 38 * + - 93 * + 77 - + 33
----
26395373

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT ALL SUM( - 43 ), 95 + + SUM( ALL + + ( - 9 ) ) AS col0
----
-43
86

skipif mysql # not compatible
query II rowsort label-9271
SELECT ALL SUM ( - 43 ), 95 + + SUM ( ALL + + ( - 9 ) ) AS col0
----
-43
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT - CASE 74 WHEN 81 / - + COUNT( * ) THEN + - 29 + - - 87 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT - CASE 74 WHEN 81 / - + COUNT ( * ) THEN + - 29 + - - 87 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9273
SELECT ALL COUNT( * ) - - CAST( + 32 AS SIGNED ) + CAST( NULL AS SIGNED ) * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL COUNT ( * ) - - CAST ( + 32 AS INTEGER ) + CAST ( NULL AS INTEGER ) * 96
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT DISTINCT + COUNT( * ) * + 86 * + + 98
----
8428

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT + COUNT ( * ) * + 86 * + + 98
----
8428

query I rowsort
SELECT DISTINCT + COALESCE ( + - 85, + 39 ) * + 34 AS col1
----
-2890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9277
SELECT COALESCE ( - + 67, - - 67, CAST( + - 73 AS SIGNED ) * + CAST( + COUNT( * ) AS SIGNED ) - - - 15 )
----
-67

skipif mysql # not compatible
query I rowsort label-9277
SELECT COALESCE ( - + 67, - - 67, CAST ( + - 73 AS INTEGER ) * + CAST ( + COUNT ( * ) AS INTEGER ) - - - 15 )
----
-67

query I rowsort
SELECT + NULLIF ( + 3, + - 92 ) AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9279
SELECT + NULLIF ( + 76, + CAST( - CASE + 99 WHEN + - 77 THEN + NULLIF ( - 86, - 92 * - + 98 / - 89 ) * + 26 END AS SIGNED ) ) col2
----
76

skipif mysql # not compatible
query I rowsort label-9279
SELECT + NULLIF ( + 76, + CAST ( - CASE + 99 WHEN + - 77 THEN + NULLIF ( - 86, - 92 * - + 98 / - 89 ) * + 26 END AS INTEGER ) ) col2
----
76

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

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

query I rowsort
SELECT - ( + 60 ) * - 33 * + 55 AS col1
----
108900

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - - 34 * - COUNT( * ) * 52 * + - 53 - - + 12 - + 83
----
93633

skipif mysql # not compatible
query I rowsort label-9282
SELECT - - 34 * - COUNT ( * ) * 52 * + - 53 - - + 12 - + 83
----
93633

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

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT - + 54 / COUNT ( * ) AS col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9284
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COALESCE ( + 10, + COUNT( * ) * 29 + + 46 - - 46 * + 97 + + 84 + - 89, - - COUNT( * ) * COUNT( * ) * + + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COALESCE ( + 10, + COUNT ( * ) * 29 + + 46 - - 46 * + 97 + + 84 + - 89, - - COUNT ( * ) * COUNT ( * ) * + + 96 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9285
SELECT DISTINCT - 54 * + 58 + + 82 + 40 DIV - ( + 21 ) AS col0
----
-3051

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT - 54 * + 58 + + 82 + 40 / - ( + 21 ) AS col0
----
-3051

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9286
SELECT - COUNT( * ) DIV + + 72 AS col0, 11 AS col0
----
0
11

skipif mysql # not compatible
query II rowsort label-9286
SELECT - COUNT ( * ) / + + 72 AS col0, 11 AS col0
----
0
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9287
SELECT + CAST( 52 AS SIGNED ) DIV + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9287
SELECT + CAST ( 52 AS INTEGER ) / + 55 AS col0
----
0

query I rowsort
SELECT ALL 62 * 30 + - 34 + 92
----
1918

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT + - COUNT( ALL - 60 ) * + + ( + + 18 ) * + - 98
----
1764

skipif mysql # not compatible
query I rowsort label-9289
SELECT + - COUNT ( ALL - 60 ) * + + ( + + 18 ) * + - 98
----
1764

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9290
SELECT DISTINCT + - NULLIF ( + CAST( NULL AS DECIMAL ), - 49 - + - 27 * - 47 * + 59 ) * - + 63 / 34 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT + - NULLIF ( + CAST ( NULL AS REAL ), - 49 - + - 27 * - 47 * + 59 ) * - + 63 / 34 col1
----
NULL

query I rowsort
SELECT ALL 87 * - + 36 * ( + 43 ) * + 59 + 98 - - 32 AS col0
----
-7945754

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

query I rowsort
SELECT - + 27 * - + 59
----
1593

query I rowsort
SELECT ALL 74 * 58 + - 75 AS col2
----
4217

onlyif mysql # DIV for integer division: 
query I rowsort label-9295
SELECT ALL 7 + 39 + - + 89 * 71 DIV ( + - 38 ) AS col0
----
212

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL 7 + 39 + - + 89 * 71 / ( + - 38 ) AS col0
----
212

query I rowsort
SELECT ALL + 83 + 39 AS col2
----
122

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

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

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

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT - + 45 + COUNT ( * ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT MIN( - 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9299
SELECT MIN ( - 30 ) AS col1
----
-30

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

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

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

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

query I rowsort
SELECT + 58 + 37
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT DISTINCT 70 DIV + 56 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT 70 / + 56 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL 23 - - COALESCE ( 67, + COALESCE ( COUNT( * ), - + 43, + 91 * 85 ) + + + 47 + - ( - 19 ) * - ( + 85 ), + + 75 * - 22 * + 88 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL 23 - - COALESCE ( 67, + COALESCE ( COUNT ( * ), - + 43, + 91 * 85 ) + + + 47 + - ( - 19 ) * - ( + 85 ), + + 75 * - 22 * + 88 ) AS col1
----
90

query I rowsort
SELECT + 28 * - - 98
----
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL COUNT( DISTINCT - 67 )
----
1

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL COUNT ( DISTINCT - 67 )
----
1

query I rowsort
SELECT + 5 - 83 AS col0
----
-78

query II rowsort
SELECT + 63 * + ( + + 33 ), - 71 + + 47 + + 48 AS col1
----
2079
24

query I rowsort
SELECT + 81 - - 36 AS col2
----
117

query I rowsort
SELECT + 69 * - 90 * - 48 * - 67
----
-19971360

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

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

query I rowsort
SELECT - 33 + - 41
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9313
SELECT - 51 DIV 8
----
-6

skipif mysql # not compatible
query I rowsort label-9313
SELECT - 51 / 8
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9314
SELECT ALL COUNT( ALL - + 98 ) DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL COUNT ( ALL - + 98 ) / - 87 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9315
SELECT + COUNT( * ) + + 54 DIV + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9315
SELECT + COUNT ( * ) + + 54 / + COUNT ( * )
----
55

query II rowsort
SELECT ALL + 73, 95 AS col0
----
73
95

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

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

query I rowsort
SELECT ALL - - ( - 62 ) * + + NULLIF ( - 16, - + 20 ) + 17
----
1009

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

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

query I rowsort
SELECT ALL + ( + 11 ) col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9321
SELECT + 39 * - 69 * - 82 + CAST( + 62 AS SIGNED ) * 29
----
222460

skipif mysql # not compatible
query I rowsort label-9321
SELECT + 39 * - 69 * - 82 + CAST ( + 62 AS INTEGER ) * 29
----
222460

query I rowsort
SELECT - + 73 * + - 39
----
2847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9323
SELECT - 65 * 53 + - + 82 * - + CAST( - - CAST( CASE + 67 WHEN 89 * + + 92 * - + 88 THEN - - CAST( + - COUNT( * ) AS SIGNED ) * + - 20 / + + 42 + - 96 - + 63 ELSE NULL END AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT - 65 * 53 + - + 82 * - + CAST ( - - CAST ( CASE + 67 WHEN 89 * + + 92 * - + 88 THEN - - CAST ( + - COUNT ( * ) AS INTEGER ) * + - 20 / + + 42 + - 96 - + 63 ELSE NULL END AS INTEGER ) AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9325
SELECT ALL - 33 DIV - 16 * + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL - 33 / - 16 * + - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT + 47 + + 21 * - 30 AS col2
----
-583

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

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

query I rowsort
SELECT ALL + 33 * + - 31 AS col1
----
-1023

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9329
SELECT DISTINCT 21 AS col2, CAST( + + COUNT( * ) AS SIGNED )
----
21
1

skipif mysql # not compatible
query II rowsort label-9329
SELECT DISTINCT 21 AS col2, CAST ( + + COUNT ( * ) AS INTEGER )
----
21
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT COALESCE ( - COUNT( * ), + + 45, + 23 ) + + 51 + - ( + 52 ) + - NULLIF ( + 41, + ( - COUNT( * ) ) ) + - 96 * + 16 AS col1
----
-1579

skipif mysql # not compatible
query I rowsort label-9330
SELECT COALESCE ( - COUNT ( * ), + + 45, + 23 ) + + 51 + - ( + 52 ) + - NULLIF ( + 41, + ( - COUNT ( * ) ) ) + - 96 * + 16 AS col1
----
-1579

query I rowsort
SELECT 12 * + 74 AS col1
----
888

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

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

query II rowsort
SELECT - 30, 4 AS col1
----
-30
4

query I rowsort
SELECT 54 * + ( 61 ) AS col0
----
3294

query II rowsort
SELECT ALL 86 AS col0, - 81
----
86
-81

query I rowsort
SELECT 37 * + 43 col2
----
1591

query II rowsort
SELECT ALL 39 AS col0, 97 + 56 AS col0
----
39
153

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT 44 DIV + COALESCE ( - - 38, 17, - - 95 )
----
1

skipif mysql # not compatible
query I rowsort label-9338
SELECT 44 / + COALESCE ( - - 38, 17, - - 95 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9339
SELECT ALL - 1 + - + 10, SUM( + - 54 ) - + 57 * - - COUNT( * ) AS col1
----
-11
-111

skipif mysql # not compatible
query II rowsort label-9339
SELECT ALL - 1 + - + 10, SUM ( + - 54 ) - + 57 * - - COUNT ( * ) AS col1
----
-11
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT DISTINCT 99 + 26 * - COUNT( * ) * + 76
----
-1877

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT 99 + 26 * - COUNT ( * ) * + 76
----
-1877

onlyif mysql # aggregate syntax: 
query II rowsort label-9341
SELECT ALL + 32 * + COUNT( * ), SUM( DISTINCT + + 80 ) col1
----
32
80

skipif mysql # not compatible
query II rowsort label-9341
SELECT ALL + 32 * + COUNT ( * ), SUM ( DISTINCT + + 80 ) col1
----
32
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9342
SELECT + + CAST( + 97 AS SIGNED ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9342
SELECT + + CAST ( + 97 AS INTEGER ) AS col2
----
97

query I rowsort
SELECT - 43 + + ( + ( + - 83 ) )
----
-126

query I rowsort
SELECT + ( 32 ) - - ( - - 9 ) + - 89
----
-48

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9346
SELECT + 49 DIV + + NULLIF ( - 53, ( - CAST( NULL AS SIGNED ) ) - - 20 ) + - 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9346
SELECT + 49 / + + NULLIF ( - 53, ( - CAST ( NULL AS INTEGER ) ) - - 20 ) + - 1 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9347
SELECT ALL COUNT( * ) + + 40 - + 1 + - CAST( - CASE 82 WHEN - - CAST( - NULLIF ( + - 33, + + 56 ) AS SIGNED ) THEN 11 WHEN + 42 - + 14 THEN NULL WHEN - - ( - + 98 ) - + 87 * - 61 THEN MAX( DISTINCT - + 9 ) ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL COUNT ( * ) + + 40 - + 1 + - CAST ( - CASE 82 WHEN - - CAST ( - NULLIF ( + - 33, + + 56 ) AS INTEGER ) THEN 11 WHEN + 42 - + 14 THEN NULL WHEN - - ( - + 98 ) - + 87 * - 61 THEN MAX ( DISTINCT - + 9 ) ELSE NULL END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT + MIN( ALL - CASE + 83 WHEN + 50 + + 15 THEN 92 * - 65 + - ( - 12 ) * + 99 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT + MIN ( ALL - CASE + 83 WHEN + 50 + + 15 THEN 92 * - 65 + - ( - 12 ) * + 99 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9349
SELECT 90 - - - 18 + - 45 * + NULLIF ( + + 55, + 16 + + 79 ) * 85 * + NULLIF ( - + 99, + + 27 ) col2, - 8 + + + CASE - 56 WHEN 8 + + 85 THEN 41 + - CASE - + 79 WHEN - 6 THEN ( - - 59 ) WHEN - 12 THEN - 32 ELSE NULL END - - 1 * - - 23 WHEN 65 + + 10 THEN NULL END + - 37 + + - ( - - COUNT( * ) ) + - + 76 + - COUNT( * ) + + - 52
----
20827197
NULL

skipif mysql # not compatible
query II rowsort label-9349
SELECT 90 - - - 18 + - 45 * + NULLIF ( + + 55, + 16 + + 79 ) * 85 * + NULLIF ( - + 99, + + 27 ) col2, - 8 + + + CASE - 56 WHEN 8 + + 85 THEN 41 + - CASE - + 79 WHEN - 6 THEN ( - - 59 ) WHEN - 12 THEN - 32 ELSE NULL END - - 1 * - - 23 WHEN 65 + + 10 THEN NULL END + - 37 + + - ( - - COUNT ( * ) ) + - + 76 + - COUNT ( * ) + + - 52
----
20827197
NULL

query I rowsort
SELECT ALL - 56 * - 53 AS col1
----
2968

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9352
SELECT 6 + CAST( NULL AS DECIMAL ) * - COUNT( * ) + 28 * 82 * - 8 + - + 65 + - 35 + 74 * - 19 * - + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT 6 + CAST ( NULL AS REAL ) * - COUNT ( * ) + 28 * 82 * - 8 + - + 65 + - 35 + 74 * - 19 * - + 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT 59 * + CASE + 95 WHEN 26 + + + ( - - SUM( DISTINCT + + 1 ) ) - 86 / - NULLIF ( 86, COUNT( * ) ) THEN 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT 59 * + CASE + 95 WHEN 26 + + + ( - - SUM ( DISTINCT + + 1 ) ) - 86 / - NULLIF ( 86, COUNT ( * ) ) THEN 27 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9354
SELECT DISTINCT + 84 DIV 27, 57 AS col2
----
3
57

skipif mysql # not compatible
query II rowsort label-9354
SELECT DISTINCT + 84 / 27, 57 AS col2
----
3
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9355
SELECT 12 + - - COUNT( * ) + + COUNT( * ) * + 67 * + 4 AS col1, ( 73 )
----
281
73

skipif mysql # not compatible
query II rowsort label-9355
SELECT 12 + - - COUNT ( * ) + + COUNT ( * ) * + 67 * + 4 AS col1, ( 73 )
----
281
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT 21 * CAST( 94 AS SIGNED )
----
1974

skipif mysql # not compatible
query I rowsort label-9356
SELECT 21 * CAST ( 94 AS INTEGER )
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL - COUNT( * ) + - 57 - - - 83 AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - COUNT ( * ) + - 57 - - - 83 AS col1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT 28 + - 75 + 29 * 38 + + 89 * - - COUNT( * ) + - 18
----
1126

skipif mysql # not compatible
query I rowsort label-9358
SELECT 28 + - 75 + 29 * 38 + + 89 * - - COUNT ( * ) + - 18
----
1126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9359
SELECT 37 + - 50 + + CAST( NULL AS SIGNED ) * + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT 37 + - 50 + + CAST ( NULL AS INTEGER ) * + + 56
----
NULL

query I rowsort
SELECT ALL + 58 * + - 18 * - 68 AS col1
----
70992

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT DISTINCT + COUNT( DISTINCT 77 ) + ( 14 ) + - COALESCE ( + - 89, + 91 * - ( - 21 ), 85 ) col1
----
104

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT + COUNT ( DISTINCT 77 ) + ( 14 ) + - COALESCE ( + - 89, + 91 * - ( - 21 ), 85 ) col1
----
104

query I rowsort
SELECT ALL 10 + - 78 * + + 49 AS col1
----
-3812

query I rowsort
SELECT DISTINCT 27 + - 56
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT DISTINCT - COUNT( * ) + + 68 + + - 61 + - 30
----
-24

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT - COUNT ( * ) + + 68 + + - 61 + - 30
----
-24

query I rowsort
SELECT + 48 + + + COALESCE ( + - 7, - 71 ) + + ( - 97 ) + 12 * - 23
----
-332

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT 64 + + - CASE - - 81 WHEN + CASE + 3 WHEN + 48 THEN - 99 WHEN - COALESCE ( - 4, 74 - - 67, - 67 * ( - COUNT( * ) ) ) + - + SUM( + 93 ) + + NULLIF ( 26, - 45 ) THEN - COUNT( * ) END + 69 THEN - 4 ELSE + 6 * + 16 END
----
-32

skipif mysql # not compatible
query I rowsort label-9366
SELECT 64 + + - CASE - - 81 WHEN + CASE + 3 WHEN + 48 THEN - 99 WHEN - COALESCE ( - 4, 74 - - 67, - 67 * ( - COUNT ( * ) ) ) + - + SUM ( + 93 ) + + NULLIF ( 26, - 45 ) THEN - COUNT ( * ) END + 69 THEN - 4 ELSE + 6 * + 16 END
----
-32

query II rowsort
SELECT ALL - 61 + 77 AS col0, + 53 col2
----
16
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9368
SELECT + 31 + + + COALESCE ( + 47, + 64 DIV - 96 * 99 + - 7 + + + COUNT( * ) - + 92 + + - 97 * + 65 ) DIV + + CAST( 46 AS SIGNED ) + - + ( - 55 )
----
87

skipif mysql # not compatible
query I rowsort label-9368
SELECT + 31 + + + COALESCE ( + 47, + 64 / - 96 * 99 + - 7 + + + COUNT ( * ) - + 92 + + - 97 * + 65 ) / + + CAST ( 46 AS INTEGER ) + - + ( - 55 )
----
87

query I rowsort
SELECT 57 + - 49 AS col2
----
8

query I rowsort
SELECT 44 + - NULLIF ( + 35, + 76 ) AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT + NULLIF ( + + ( - CAST( NULL AS SIGNED ) ), - 5 ) * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT + NULLIF ( + + ( - CAST ( NULL AS INTEGER ) ), - 5 ) * + 26
----
NULL

query I rowsort
SELECT DISTINCT 60 * + 18
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT DISTINCT 51 * + ( + + 35 ) + MIN( 40 ) - + + 11
----
1814

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT 51 * + ( + + 35 ) + MIN ( 40 ) - + + 11
----
1814

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

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

query I rowsort
SELECT + + 88 + 98 * 43 * 78 AS col2
----
328780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9376
SELECT + 14 DIV + 48 * + MAX( DISTINCT + 93 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9376
SELECT + 14 / + 48 * + MAX ( DISTINCT + 93 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9377
SELECT + 84 DIV SUM( ALL + - 60 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9377
SELECT + 84 / SUM ( ALL + - 60 ) AS col0
----
-1

query I rowsort
SELECT - - 47 * 85 + - 11 + + 64 * 58 + - + 84 * - + 95 + - - 2 + 75 AS col0
----
15753

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

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT + COUNT ( * ) / - ( - 51 ) * - 60 col0
----
0

query I rowsort
SELECT 97 * + 79 + - 32
----
7631

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT + 5 + + COUNT( - - NULLIF ( + ( - 95 ), - 81 - + 59 ) )
----
6

skipif mysql # not compatible
query I rowsort label-9381
SELECT + 5 + + COUNT ( - - NULLIF ( + ( - 95 ), - 81 - + 59 ) )
----
6

query I rowsort
SELECT + CASE - 50 WHEN - + 16 THEN NULL WHEN + 73 THEN 3 END col2
----
NULL

query I rowsort
SELECT ALL + 98 * 7
----
686

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9385
SELECT 98 * 97 DIV + 92 + COUNT( * ) * + 57 * - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9385
SELECT 98 * 97 / + 92 + COUNT ( * ) * + 57 * - COUNT ( * ) AS col0
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL ( - COUNT( * ) ) + + 63 * 70 AS col1
----
4409

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL ( - COUNT ( * ) ) + + 63 * 70 AS col1
----
4409

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT - NULLIF ( - - 89, - ( - COUNT( * ) ) )
----
-89

skipif mysql # not compatible
query I rowsort label-9388
SELECT - NULLIF ( - - 89, - ( - COUNT ( * ) ) )
----
-89

query I rowsort
SELECT ALL - 26 + + - 76
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT DISTINCT 45 + - ( - CAST( + - AVG ( DISTINCT + ( - - ( 63 ) ) ) AS SIGNED ) )
----
-18

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT 45 + - ( - CAST ( + - AVG ( DISTINCT + ( - - ( 63 ) ) ) AS INTEGER ) )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9391
SELECT ALL ( + 11 ) + 14 + + 41 * + 1 DIV + ( + 96 ) * - COUNT( * ) + ( - 43 ) DIV 1 + - - 93
----
75

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL ( + 11 ) + 14 + + 41 * + 1 / + ( + 96 ) * - COUNT ( * ) + ( - 43 ) / 1 + - - 93
----
75

query I rowsort
SELECT ALL - 99 + + 85 col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9393
SELECT + MAX( + + 17 ) / - MIN( ALL + - 93 ) - - - 12 * + ( + CAST( NULL AS SIGNED ) ) * + - 60 + + CAST( NULL AS SIGNED ) + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-9393
SELECT + MAX ( + + 17 ) / - MIN ( ALL + - 93 ) - - - 12 * + ( + CAST ( NULL AS INTEGER ) ) * + - 60 + + CAST ( NULL AS INTEGER ) + - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT - ( 20 ) * + + CASE SUM( ALL + - 87 ) WHEN + COUNT( * ) THEN 2 * + 24 ELSE + 31 END
----
-620

skipif mysql # not compatible
query I rowsort label-9394
SELECT - ( 20 ) * + + CASE SUM ( ALL + - 87 ) WHEN + COUNT ( * ) THEN 2 * + 24 ELSE + 31 END
----
-620

onlyif mysql # DIV for integer division: 
query I rowsort label-9395
SELECT DISTINCT + 54 DIV - - 65 col2
----
0

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT + 54 / - - 65 col2
----
0

query II rowsort
SELECT - 71 AS col2, 99
----
-71
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL - + MIN( ALL + 70 ) + - 51
----
-121

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL - + MIN ( ALL + 70 ) + - 51
----
-121

query I rowsort
SELECT - - 30 * + 27
----
810

query I rowsort
SELECT ALL + - 40 * - - 21
----
-840

query II rowsort
SELECT - + 5 col2, - 21 * - + 65 * - 25 AS col1
----
-5
-34125

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL - SUM( + 49 ) * + 82
----
-4018

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL - SUM ( + 49 ) * + 82
----
-4018

query I rowsort
SELECT ALL + 89 * 50 + - + 39 + 8 + - 46 AS col0
----
4373

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT - 62 + - CASE + COUNT( * ) WHEN - - 68 THEN + 17 WHEN + ( ( + 65 ) ) - - + COUNT( * ) THEN 23 - - 55 + + 4 + + - 27 + 38 + - + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT - 62 + - CASE + COUNT ( * ) WHEN - - 68 THEN + 17 WHEN + ( ( + 65 ) ) - - + COUNT ( * ) THEN 23 - - 55 + + 4 + + - 27 + 38 + - + 9 END
----
NULL

query II rowsort
SELECT DISTINCT + + 10 AS col2, 40 AS col1
----
10
40

query I rowsort
SELECT + - 28 * - 75 AS col2
----
2100

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9406
SELECT ALL + - COUNT( * ) AS col0, 36 DIV - 32
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9406
SELECT ALL + - COUNT ( * ) AS col0, 36 / - 32
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT - + 59 - + - COUNT( * ) * + 29 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9407
SELECT - + 59 - + - COUNT ( * ) * + 29 AS col0
----
-30

query I rowsort
SELECT ALL - 73 * - + 90 + + ( + 52 )
----
6622

query I rowsort
SELECT - - 67 * + 94
----
6298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT ALL 59 * + - ( CAST( NULLIF ( COUNT( * ), + - COALESCE ( - 75, 11 ) * + + 27 ) AS SIGNED ) )
----
-59

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL 59 * + - ( CAST ( NULLIF ( COUNT ( * ), + - COALESCE ( - 75, 11 ) * + + 27 ) AS INTEGER ) )
----
-59

query I rowsort
SELECT + 82 * 30 AS col0
----
2460

query I rowsort
SELECT + 41 - - + 24
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT + 34 / - 53 / + - CASE 72 WHEN + 67 THEN MIN( DISTINCT 50 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT + 34 / - 53 / + - CASE 72 WHEN + 67 THEN MIN ( DISTINCT 50 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 46 * COALESCE ( + 48, - 39 )
----
2208

query II rowsort
SELECT + 5 + + 11 * + - 44 * + 38 AS col0, - 93 - + + 43
----
-18387
-136

query I rowsort
SELECT DISTINCT + 47 * - + 22 + - 76 AS col1
----
-1110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9417
SELECT CASE + COUNT( * ) WHEN + NULLIF ( + CAST( - + 17 AS SIGNED ), 77 / + - 26 ) THEN NULL WHEN + + 97 + 37 THEN - 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT CASE + COUNT ( * ) WHEN + NULLIF ( + CAST ( - + 17 AS INTEGER ), 77 / + - 26 ) THEN NULL WHEN + + 97 + 37 THEN - 20 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT + 31 * COUNT( * ) + + COUNT( ALL - 19 )
----
32

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT + 31 * COUNT ( * ) + + COUNT ( ALL - 19 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT MAX( DISTINCT 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9419
SELECT MAX ( DISTINCT 64 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT + 63 + SUM( - 37 )
----
26

skipif mysql # not compatible
query I rowsort label-9420
SELECT + 63 + SUM ( - 37 )
----
26

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

skipif mysql # not compatible
query I rowsort label-9421
SELECT + COUNT ( * ) + - - 97 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT + CASE - 15 WHEN + ( - - SUM( DISTINCT - 52 ) ) THEN NULL WHEN ( 28 ) THEN + + NULLIF ( 48, - 84 ) ELSE NULL END + - 12 * + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9422
SELECT + CASE - 15 WHEN + ( - - SUM ( DISTINCT - 52 ) ) THEN NULL WHEN ( 28 ) THEN + + NULLIF ( 48, - 84 ) ELSE NULL END + - 12 * + 76 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9423
SELECT - + 59 - + + 24 DIV - ( - 82 ) + - 9 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9423
SELECT - + 59 - + + 24 / - ( - 82 ) + - 9 AS col1
----
-68

query I rowsort
SELECT - + NULLIF ( 21, - + 27 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT + - 89 + + NULLIF ( - 87, 48 * 21 - COUNT( * ) - + + 93 - 69 )
----
-176

skipif mysql # not compatible
query I rowsort label-9425
SELECT + - 89 + + NULLIF ( - 87, 48 * 21 - COUNT ( * ) - + + 93 - 69 )
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT + 75 * + COUNT( * ) * COALESCE ( - - COALESCE ( + 71, 34 + 76 ), + NULLIF ( + - 26, - + 60 / 21 + + 50 ) )
----
5325

skipif mysql # not compatible
query I rowsort label-9426
SELECT + 75 * + COUNT ( * ) * COALESCE ( - - COALESCE ( + 71, 34 + 76 ), + NULLIF ( + - 26, - + 60 / 21 + + 50 ) )
----
5325

query I rowsort
SELECT + + ( + - 24 ) + - - NULLIF ( 32, 42 )
----
8

query I rowsort
SELECT - 93 + - 11 + + 88
----
-16

query I rowsort
SELECT - 3 + + 0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT - SUM( DISTINCT + 95 ) * NULLIF ( - 16, + - 54 ) AS col2
----
1520

skipif mysql # not compatible
query I rowsort label-9430
SELECT - SUM ( DISTINCT + 95 ) * NULLIF ( - 16, + - 54 ) AS col2
----
1520

query I rowsort
SELECT 42 + 90 AS col0
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9432
SELECT ALL - + ( + 44 ) DIV MAX( DISTINCT + 25 ) col0, - CASE + 48 WHEN + 45 * - 71 + + + 97 + + ( - 52 ) + + ( - COUNT( * ) ) - CAST( NULL AS SIGNED ) DIV 37 THEN 20 WHEN COUNT( * ) + + - 76 * + 25 THEN - + 33 + COUNT( * ) + 57 * + 65 + 26 END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9432
SELECT ALL - + ( + 44 ) / MAX ( DISTINCT + 25 ) col0, - CASE + 48 WHEN + 45 * - 71 + + + 97 + + ( - 52 ) + + ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) / 37 THEN 20 WHEN COUNT ( * ) + + - 76 * + 25 THEN - + 33 + COUNT ( * ) + 57 * + 65 + 26 END AS col2
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT + 69 DIV - 27
----
-2

skipif mysql # not compatible
query I rowsort label-9433
SELECT + 69 / - 27
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9434
SELECT ( - 8 ) DIV - 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9434
SELECT ( - 8 ) / - 14 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9435
SELECT 76 + - 58 DIV 27 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-9435
SELECT 76 + - 58 / 27 AS col0
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-9436
SELECT DISTINCT - 24 DIV - + 31 AS col1, 27 * - + 94
----
0
-2538

skipif mysql # not compatible
query II rowsort label-9436
SELECT DISTINCT - 24 / - + 31 AS col1, 27 * - + 94
----
0
-2538

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT DISTINCT - 74 * - 63 + 34 + - 2 * + COUNT( * ) AS col2
----
4694

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT - 74 * - 63 + 34 + - 2 * + COUNT ( * ) AS col2
----
4694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9438
SELECT ALL - - SUM( DISTINCT 3 ) + - 5 + - 88 DIV - - COALESCE ( COUNT( * ), + 67, - 71 ) + - + 78 * - - 63 * - 0 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL - - SUM ( DISTINCT 3 ) + - 5 + - 88 / - - COALESCE ( COUNT ( * ), + 67, - 71 ) + - + 78 * - - 63 * - 0 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT 47 * - 46 + - COUNT( * ) AS col0
----
-2163

skipif mysql # not compatible
query I rowsort label-9439
SELECT 47 * - 46 + - COUNT ( * ) AS col0
----
-2163

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT - 42 DIV + - 87 + - 18
----
-18

skipif mysql # not compatible
query I rowsort label-9441
SELECT - 42 / + - 87 + - 18
----
-18

query I rowsort
SELECT 47 * - - 35
----
1645

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL - 98 + - 69 - + - 34 * - - COUNT( * )
----
-133

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL - 98 + - 69 - + - 34 * - - COUNT ( * )
----
-133

query I rowsort
SELECT DISTINCT 52 * + - 46 * - - 53
----
-126776

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9446
SELECT DISTINCT - 54 * ( + 59 ) AS col1, - NULLIF ( + 91, 62 + AVG ( + + CAST( + 78 AS SIGNED ) ) ) col2
----
-3186
-91

skipif mysql # not compatible
query II rowsort label-9446
SELECT DISTINCT - 54 * ( + 59 ) AS col1, - NULLIF ( + 91, 62 + AVG ( + + CAST ( + 78 AS INTEGER ) ) ) col2
----
-3186
-91

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

skipif mysql # not compatible
query I rowsort label-9447
SELECT 53 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9448
SELECT 77 AS col0, + CAST( NULL AS SIGNED ) AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-9448
SELECT 77 AS col0, + CAST ( NULL AS INTEGER ) AS col2
----
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9449
SELECT CAST( COUNT( ALL + ( 62 ) ) AS DECIMAL ) + - - MAX( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT CAST ( COUNT ( ALL + ( 62 ) ) AS REAL ) + - - MAX ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 91 * + - 77 AS col2
----
-7007

query I rowsort
SELECT DISTINCT 38 - - + 74
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT DISTINCT 22 - + CASE 15 WHEN + - 46 THEN - + 12 * - CASE + + 33 WHEN - COUNT( * ) * - - 81 * - 52 THEN - + 36 WHEN 43 / - - COUNT( * ) + 40 THEN NULL ELSE - 24 * COUNT( * ) + + - COUNT( * ) + - - 45 END + - - 49 WHEN + + ( + 31 ) + 96 THEN ( + 87 ) + 25 - - 67 / - 38 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT 22 - + CASE 15 WHEN + - 46 THEN - + 12 * - CASE + + 33 WHEN - COUNT ( * ) * - - 81 * - 52 THEN - + 36 WHEN 43 / - - COUNT ( * ) + 40 THEN NULL ELSE - 24 * COUNT ( * ) + + - COUNT ( * ) + - - 45 END + - - 49 WHEN + + ( + 31 ) + 96 THEN ( + 87 ) + 25 - - 67 / - 38 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - SUM( - 71 )
----
71

skipif mysql # not compatible
query I rowsort label-9453
SELECT - SUM ( - 71 )
----
71

query I rowsort
SELECT ALL ( 99 ) AS col1
----
99

query II rowsort
SELECT 20 AS col0, - 48
----
20
-48

query I rowsort
SELECT 37 * + 65
----
2405

query I rowsort
SELECT ALL + NULLIF ( 30, 91 * - - 15 )
----
30

query I rowsort
SELECT 60 * 51 AS col1
----
3060

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9459
SELECT COUNT( * ), - 80 DIV 78 + + 30 AS col2
----
1
29

skipif mysql # not compatible
query II rowsort label-9459
SELECT COUNT ( * ), - 80 / 78 + + 30 AS col2
----
1
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT ALL + 11 + NULLIF ( - 75, + COUNT( ALL + 74 ) + + + 64 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + 11 + NULLIF ( - 75, + COUNT ( ALL + 74 ) + + + 64 ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 0 AS col0, + 62 col0
----
0
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT - 6 * NULLIF ( 50, - 35 + - + 11 ) + - + COUNT( * ) AS col2
----
-301

skipif mysql # not compatible
query I rowsort label-9462
SELECT - 6 * NULLIF ( 50, - 35 + - + 11 ) + - + COUNT ( * ) AS col2
----
-301

onlyif mysql # aggregate syntax: 
query II rowsort label-9463
SELECT ALL + 39 * 88 AS col2, - MIN( ALL 28 )
----
3432
-28

skipif mysql # not compatible
query II rowsort label-9463
SELECT ALL + 39 * 88 AS col2, - MIN ( ALL 28 )
----
3432
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-9464
SELECT COUNT( * ) AS col0, - 0 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-9464
SELECT COUNT ( * ) AS col0, - 0 AS col2
----
1
0

query I rowsort
SELECT ALL 87 + - + 27 + + 24
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9466
SELECT + 11, COUNT( * ) AS col1
----
11
1

skipif mysql # not compatible
query II rowsort label-9466
SELECT + 11, COUNT ( * ) AS col1
----
11
1

query I rowsort
SELECT ALL - 67 + ( - 32 )
----
-99

query I rowsort
SELECT 57 * + - 63 AS col0
----
-3591

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9469
SELECT ALL + CAST( NULL AS DECIMAL ) * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL + CAST ( NULL AS REAL ) * 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9470
SELECT COUNT( * ), 67 AS col2
----
1
67

skipif mysql # not compatible
query II rowsort label-9470
SELECT COUNT ( * ), 67 AS col2
----
1
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT DISTINCT - NULLIF ( 91, + - COUNT( * ) * - - 77 * - COUNT( * ) * ( + 56 ) - - COUNT( * ) ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT - NULLIF ( 91, + - COUNT ( * ) * - - 77 * - COUNT ( * ) * ( + 56 ) - - COUNT ( * ) ) col1
----
-91

query I rowsort
SELECT ALL - 67 - - 72 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT + COUNT( * ) * 18 - - MAX( 81 ) - 69 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9473
SELECT + COUNT ( * ) * 18 - - MAX ( 81 ) - 69 AS col2
----
30

query I rowsort
SELECT 56 * - 13 * + 45
----
-32760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9475
SELECT 98 * CAST( + 25 AS SIGNED ) * + ( 34 ) + - CASE + COUNT( * ) WHEN NULLIF ( - 40, - 50 ) + ( 19 ) THEN NULL WHEN + 48 THEN NULL ELSE - - 35 END AS col0
----
83265

skipif mysql # not compatible
query I rowsort label-9475
SELECT 98 * CAST ( + 25 AS INTEGER ) * + ( 34 ) + - CASE + COUNT ( * ) WHEN NULLIF ( - 40, - 50 ) + ( 19 ) THEN NULL WHEN + 48 THEN NULL ELSE - - 35 END AS col0
----
83265

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT DISTINCT - COUNT( * ) AS col0, + COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-9476
SELECT DISTINCT - COUNT ( * ) AS col0, + COUNT ( * ) AS col1
----
-1
1

query I rowsort
SELECT 81 * + + 20 AS col1
----
1620

query I rowsort
SELECT + 58 - 20 AS col0
----
38

query I rowsort
SELECT + ( + ( ( - 33 ) ) ) * CASE + 72 WHEN 40 - - + 20 THEN + - 11 - 59 WHEN - 39 THEN NULL ELSE - 52 END + - - 55 - - 78 * + - 37 AS col0
----
-1115

onlyif mysql # DIV for integer division: 
query I rowsort label-9480
SELECT + 76 DIV ( + 74 )
----
1

skipif mysql # not compatible
query I rowsort label-9480
SELECT + 76 / ( + 74 )
----
1

query II rowsort
SELECT 98, + 81 AS col1
----
98
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL + COUNT( * ) * + 57 + - ( NULLIF ( - 87, 83 ) )
----
144

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL + COUNT ( * ) * + 57 + - ( NULLIF ( - 87, 83 ) )
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9483
SELECT - + COUNT( DISTINCT - 97 ) / - + 54 * + - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT - + COUNT ( DISTINCT - 97 ) / - + 54 * + - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 12 * + - 42
----
-504

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9485
SELECT - 51 + - 66 + + + 11 * + 2 AS col0, 50 * ( - CAST( NULL AS SIGNED ) )
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-9485
SELECT - 51 + - 66 + + + 11 * + 2 AS col0, 50 * ( - CAST ( NULL AS INTEGER ) )
----
-95
NULL

query I rowsort
SELECT + 21 - - 74 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT + 78 + - + 74 DIV - - ( - 47 )
----
79

skipif mysql # not compatible
query I rowsort label-9487
SELECT + 78 + - + 74 / - - ( - 47 )
----
79

query II rowsort
SELECT - 80 AS col2, 27
----
-80
27

query I rowsort
SELECT + - 5 + + 17 AS col0
----
12

query II rowsort
SELECT 84 AS col1, + 35 * 21 * + - 23
----
84
-16905

query I rowsort
SELECT + + 30 + 38 - + 20 + - 12 * + - 50
----
648

query II rowsort
SELECT 21 AS col0, + 55 col0
----
21
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT - + MAX( ( 61 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-9493
SELECT - + MAX ( ( 61 ) )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL COUNT( * ) * + + ( - 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL COUNT ( * ) * + + ( - 18 ) AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT - MAX( + CAST( - 58 AS SIGNED ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9495
SELECT - MAX ( + CAST ( - 58 AS INTEGER ) ) AS col0
----
58

query I rowsort
SELECT ALL ( + ( - 20 ) )
----
-20

query I rowsort
SELECT - NULLIF ( + 58, - ( - 30 ) ) col0
----
-58

query I rowsort
SELECT + 82 * - 66 * - 73 * + + 15 AS col0
----
5926140

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL + COUNT( * ) * + COUNT( * ) + 85 * - ( + 26 ) + + 68 + + 2 AS col2
----
-2139

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + 85 * - ( + 26 ) + + 68 + + 2 AS col2
----
-2139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9500
SELECT DISTINCT ( - CASE + COUNT( * ) WHEN - 13 THEN NULL ELSE - 58 + + - 96 - - 26 * + CAST( + - SUM( ALL - 18 ) AS SIGNED ) * 11 END ) * 41 AS col2, 61
----
-204754
61

skipif mysql # not compatible
query II rowsort label-9500
SELECT DISTINCT ( - CASE + COUNT ( * ) WHEN - 13 THEN NULL ELSE - 58 + + - 96 - - 26 * + CAST ( + - SUM ( ALL - 18 ) AS INTEGER ) * 11 END ) * 41 AS col2, 61
----
-204754
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT + COUNT( DISTINCT - + 14 ) * + 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9501
SELECT + COUNT ( DISTINCT - + 14 ) * + 10 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT + CASE 86 WHEN + - 65 THEN NULL WHEN 7 * + 99 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT + CASE 86 WHEN + - 65 THEN NULL WHEN 7 * + 99 THEN COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT + ( 63 ) AS col0, 77 AS col0
----
63
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT ( + NULLIF ( - + COUNT( * ), - + 96 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9504
SELECT ( + NULLIF ( - + COUNT ( * ), - + 96 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9505
SELECT + COUNT( * ) * - + 63 DIV 21 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9505
SELECT + COUNT ( * ) * - + 63 / 21 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9506
SELECT - ( + 31 ) * - 96 AS col1, - COUNT( * )
----
2976
-1

skipif mysql # not compatible
query II rowsort label-9506
SELECT - ( + 31 ) * - 96 AS col1, - COUNT ( * )
----
2976
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9507
SELECT + 92 * - 92 AS col1, 0 / - CAST( NULL AS SIGNED ) AS col2
----
-8464
NULL

skipif mysql # not compatible
query II rowsort label-9507
SELECT + 92 * - 92 AS col1, 0 / - CAST ( NULL AS INTEGER ) AS col2
----
-8464
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9508
SELECT 9 * + + 39 DIV - MAX( + 3 ) + - 91 AS col0, - 16
----
-208
-16

skipif mysql # not compatible
query II rowsort label-9508
SELECT 9 * + + 39 / - MAX ( + 3 ) + - 91 AS col0, - 16
----
-208
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT DISTINCT 26 * + + COUNT( - - 61 )
----
26

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT 26 * + + COUNT ( - - 61 )
----
26

query I rowsort
SELECT - 10 * - - ( - CASE - 1 WHEN + 4 + - 73 THEN NULL ELSE 78 - + - 37 END ) + - 63 AS col0
----
1087

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL + + COUNT( * ) * - - 51 + - 95 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL + + COUNT ( * ) * - - 51 + - 95 AS col1
----
-44

query I rowsort
SELECT + 13 * - 86 * + - 47
----
52546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9513
SELECT - COALESCE ( + 46, - + 41, + 71 ) * 21 * - CAST( + + 24 AS SIGNED ) + - COALESCE ( - CAST( NULL AS SIGNED ), 71 ) * COUNT( * )
----
23113

skipif mysql # not compatible
query I rowsort label-9513
SELECT - COALESCE ( + 46, - + 41, + 71 ) * 21 * - CAST ( + + 24 AS INTEGER ) + - COALESCE ( - CAST ( NULL AS INTEGER ), 71 ) * COUNT ( * )
----
23113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9514
SELECT DISTINCT + COALESCE ( - 3, CAST( - COUNT( * ) AS SIGNED ), 64, + - 33 - + - 7 + + 7 * + 30 * + 98 * - + 75 )
----
-3

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT + COALESCE ( - 3, CAST ( - COUNT ( * ) AS INTEGER ), 64, + - 33 - + - 7 + + 7 * + 30 * + 98 * - + 75 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9515
SELECT ALL - + 62 * - + 86 + - COUNT( * ) + 99 * - 39 AS col2, CASE 34 WHEN - 86 - + - CASE - 6 WHEN + COUNT( * ) THEN NULL WHEN ( - 48 ) - + - 75 * - 99 + - + 88 THEN + CAST( - 82 AS SIGNED ) WHEN - + ( - + 4 ) + - + CASE + - 34 WHEN - MAX( + 65 ) * COUNT( * ) / ( COUNT( - 83 ) ) + SUM( DISTINCT + 72 ) THEN NULL WHEN + + COUNT( ALL - 67 ) THEN 40 END + 22 THEN + 19 ELSE - SUM( ALL + 12 ) * + - 87 END THEN + 46 END + - 32 AS col1
----
1470
NULL

skipif mysql # not compatible
query II rowsort label-9515
SELECT ALL - + 62 * - + 86 + - COUNT ( * ) + 99 * - 39 AS col2, CASE 34 WHEN - 86 - + - CASE - 6 WHEN + COUNT ( * ) THEN NULL WHEN ( - 48 ) - + - 75 * - 99 + - + 88 THEN + CAST ( - 82 AS INTEGER ) WHEN - + ( - + 4 ) + - + CASE + - 34 WHEN - MAX ( + 65 ) * COUNT ( * ) / ( COUNT ( - 83 ) ) + SUM ( DISTINCT + 72 ) THEN NULL WHEN + + COUNT ( ALL - 67 ) THEN 40 END + 22 THEN + 19 ELSE - SUM ( ALL + 12 ) * + - 87 END THEN + 46 END + - 32 AS col1
----
1470
NULL

query I rowsort
SELECT DISTINCT + 56 * + 23 - + 96 * + 76
----
-6008

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL + COUNT( * ) + - + 61 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL + COUNT ( * ) + - + 61 AS col1
----
-60

query II rowsort
SELECT ALL - 54 + - 14 AS col2, - 64
----
-68
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT DISTINCT + SUM( DISTINCT + 64 ) * - 66
----
-4224

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT + SUM ( DISTINCT + 64 ) * - 66
----
-4224

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9520
SELECT - + 74 - - 78 AS col1, + 65 AS col1, COUNT( * ) DIV - MIN( DISTINCT + 81 )
----
4
65
0

skipif mysql # not compatible
query III rowsort label-9520
SELECT - + 74 - - 78 AS col1, + 65 AS col1, COUNT ( * ) / - MIN ( DISTINCT + 81 )
----
4
65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL - COUNT( * ) + - - 59 * MIN( - - 67 ) * - 4 - + 58
----
-15871

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - COUNT ( * ) + - - 59 * MIN ( - - 67 ) * - 4 - + 58
----
-15871

query I rowsort
SELECT DISTINCT + - 80 * 77 + 69
----
-6091

query I rowsort
SELECT DISTINCT 35 - + - 55 col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT DISTINCT ( NULLIF ( - 28, - CAST( NULL AS SIGNED ) - - + 67 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT ( NULLIF ( - 28, - CAST ( NULL AS INTEGER ) - - + 67 ) )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT ALL CAST( + - NULLIF ( - + COUNT( * ), 12 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL CAST ( + - NULLIF ( - + COUNT ( * ), 12 ) AS INTEGER )
----
1

query I rowsort
SELECT - 64 * - 59
----
3776

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT + 70 + + - COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9527
SELECT + 70 + + - COUNT ( * ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9528
SELECT - COUNT( * ) * NULLIF ( - - 95, CAST( NULL AS SIGNED ) ) * + 16 DIV - - COUNT( * ) AS col0
----
-1520

skipif mysql # not compatible
query I rowsort label-9528
SELECT - COUNT ( * ) * NULLIF ( - - 95, CAST ( NULL AS INTEGER ) ) * + 16 / - - COUNT ( * ) AS col0
----
-1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9529
SELECT + CAST( NULL AS SIGNED ), + 96 + 60 * COUNT( * ) * - 76 AS col0
----
NULL
-4464

skipif mysql # not compatible
query II rowsort label-9529
SELECT + CAST ( NULL AS INTEGER ), + 96 + 60 * COUNT ( * ) * - 76 AS col0
----
NULL
-4464

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9530
SELECT ALL + 27, + 29 * COALESCE ( + 44, 31 ) * + + 35 + ( CAST( NULL AS SIGNED ) ) AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-9530
SELECT ALL + 27, + 29 * COALESCE ( + 44, 31 ) * + + 35 + ( CAST ( NULL AS INTEGER ) ) AS col0
----
27
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9531
SELECT + CAST( + AVG ( + 45 ) AS SIGNED ) * 36 + ( + NULLIF ( - 50, 91 + + + 10 ) ) + + 41 + + 22 AS col0
----
1633

skipif mysql # not compatible
query I rowsort label-9531
SELECT + CAST ( + AVG ( + 45 ) AS INTEGER ) * 36 + ( + NULLIF ( - 50, 91 + + + 10 ) ) + + 41 + + 22 AS col0
----
1633

query I rowsort
SELECT + COALESCE ( - + 21, - - 85 ) * + 49
----
-1029

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT COALESCE ( + + 14, + - COUNT( * ) ) * + 35 + - NULLIF ( 38, - 96 + - 82 ) - + 8 + MAX( - + 64 ) + + 36 AS col1
----
416

skipif mysql # not compatible
query I rowsort label-9533
SELECT COALESCE ( + + 14, + - COUNT ( * ) ) * + 35 + - NULLIF ( 38, - 96 + - 82 ) - + 8 + MAX ( - + 64 ) + + 36 AS col1
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT 33 * - COUNT( * ) * 61 AS col0
----
-2013

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT 33 * - COUNT ( * ) * 61 AS col0
----
-2013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9535
SELECT - COUNT( DISTINCT + + 62 ) DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-9535
SELECT - COUNT ( DISTINCT + + 62 ) / 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT + 66 * + 76 - + + COUNT( * ) AS col0
----
5015

skipif mysql # not compatible
query I rowsort label-9536
SELECT + 66 * + 76 - + + COUNT ( * ) AS col0
----
5015

query I rowsort
SELECT ALL - 10 + + 27 * 55
----
1475

query I rowsort
SELECT + 20 - - 59 AS col1
----
79

query I rowsort
SELECT DISTINCT 98 + + + 86 * 49 + - 43 + - 32 col1
----
4237

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT ALL - + SUM( - + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL - + SUM ( - + 93 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9541
SELECT ALL NULLIF ( 38, - 15 * + 43 * - 10 + + + 23 ) + - MAX( - 82 ) AS col0, + 5
----
120
5

skipif mysql # not compatible
query II rowsort label-9541
SELECT ALL NULLIF ( 38, - 15 * + 43 * - 10 + + + 23 ) + - MAX ( - 82 ) AS col0, + 5
----
120
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT DISTINCT - + ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT - + ( + - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9543
SELECT ALL - 58 + 12 * + 90 + - 35 DIV - - 57 * - COUNT( * )
----
1022

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL - 58 + 12 * + 90 + - 35 / - - 57 * - COUNT ( * )
----
1022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9544
SELECT COUNT( ALL + 88 ) * - + 90 DIV + 26
----
-3

skipif mysql # not compatible
query I rowsort label-9544
SELECT COUNT ( ALL + 88 ) * - + 90 / + 26
----
-3

query II rowsort
SELECT 76 AS col2, 33 * 89 * 53
----
76
155661

onlyif mysql # aggregate syntax: 
query II rowsort label-9546
SELECT - COUNT( * ) AS col0, 63 + - ( COUNT( * ) ) + 13 - + 36 + - 11 * + + COUNT( * ) * + 76 * - COUNT( * ) * + + 62 * + NULLIF ( + 57, 6 / 35 )
----
-1
2954463

skipif mysql # not compatible
query II rowsort label-9546
SELECT - COUNT ( * ) AS col0, 63 + - ( COUNT ( * ) ) + 13 - + 36 + - 11 * + + COUNT ( * ) * + 76 * - COUNT ( * ) * + + 62 * + NULLIF ( + 57, 6 / 35 )
----
-1
2954463

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT - MIN( + + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-9547
SELECT - MIN ( + + 14 )
----
-14

query I rowsort
SELECT - + CASE 76 WHEN - + 57 THEN - + ( - - 17 ) WHEN + ( - 11 ) - - 71 THEN + - 24 + - 0 WHEN ( 14 ) THEN NULL END
----
NULL

query I rowsort
SELECT - 11 * + 80 + + + 93
----
-787

query I rowsort
SELECT ALL 19 - - 65 AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9551
SELECT + CASE + - 89 WHEN + 32 + + - 71 THEN NULL ELSE - 94 - 84 + 8 END + + 93 * + 21 + - - CAST( + CASE + 20 WHEN - - COUNT( * ) THEN 35 END AS SIGNED ) + + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9551
SELECT + CASE + - 89 WHEN + 32 + + - 71 THEN NULL ELSE - 94 - 84 + 8 END + + 93 * + 21 + - - CAST ( + CASE + 20 WHEN - - COUNT ( * ) THEN 35 END AS INTEGER ) + + 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL - + 7 - COUNT( * ) + ( + 79 )
----
71

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL - + 7 - COUNT ( * ) + ( + 79 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9553
SELECT 50 + - 84 + COALESCE ( - 50, - - COALESCE ( - 48, - COUNT( * ) - + 0 + - ( - 27 ) ) + 66 DIV 70, + - 33 ) + - COUNT( * ) * + 55 * + 84 AS col0
----
-4704

skipif mysql # not compatible
query I rowsort label-9553
SELECT 50 + - 84 + COALESCE ( - 50, - - COALESCE ( - 48, - COUNT ( * ) - + 0 + - ( - 27 ) ) + 66 / 70, + - 33 ) + - COUNT ( * ) * + 55 * + 84 AS col0
----
-4704

query II rowsort
SELECT DISTINCT - 99 - + - 31, 74 * + + 4 AS col2
----
-68
296

query I rowsort
SELECT DISTINCT + 8 * + 67 * - 55
----
-29480

query I rowsort
SELECT 76 + - - 31 AS col0
----
107

query I rowsort
SELECT 47 * - 8
----
-376

query I rowsort
SELECT DISTINCT - 8 * + ( + 23 )
----
-184

query I rowsort
SELECT ALL - 18 * + + 38
----
-684

onlyif mysql # aggregate syntax: 
query II rowsort label-9560
SELECT ALL - 9 * 19 AS col2, + COUNT( DISTINCT - 87 ) + - - 94 * + CASE COALESCE ( - 88, + 50 / - COUNT( * ), + 15, + - MIN( - 43 ) ) WHEN - + ( + 25 ) * 88 + + 88 THEN - MIN( DISTINCT + ( + 6 ) ) * - - 27 ELSE + 72 + - ( 13 ) + 24 END * + 26 AS col1
----
-171
202853

skipif mysql # not compatible
query II rowsort label-9560
SELECT ALL - 9 * 19 AS col2, + COUNT ( DISTINCT - 87 ) + - - 94 * + CASE COALESCE ( - 88, + 50 / - COUNT ( * ), + 15, + - MIN ( - 43 ) ) WHEN - + ( + 25 ) * 88 + + 88 THEN - MIN ( DISTINCT + ( + 6 ) ) * - - 27 ELSE + 72 + - ( 13 ) + 24 END * + 26 AS col1
----
-171
202853

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT COUNT( ALL + 38 ) * - 31
----
-31

skipif mysql # not compatible
query I rowsort label-9561
SELECT COUNT ( ALL + 38 ) * - 31
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT ALL - COALESCE ( - + 36, - 22 DIV + + COALESCE ( COUNT( 85 ), - COUNT( * ) + + - COUNT( * ) * 5 ), + + ( - COUNT( + - 21 ) ) + + + 20 + - 70 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - COALESCE ( - + 36, - 22 / + + COALESCE ( COUNT ( 85 ), - COUNT ( * ) + + - COUNT ( * ) * 5 ), + + ( - COUNT ( + - 21 ) ) + + + 20 + - 70 ) AS col2
----
36

query I rowsort
SELECT DISTINCT - ( + ( - 7 ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9564
SELECT ALL 74 + CASE + 22 WHEN 76 THEN NULL WHEN + - 51 THEN + MIN( - + CAST( NULL AS SIGNED ) ) WHEN - - MAX( ALL 52 ) THEN + - CAST( + 76 AS DECIMAL ) + - - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL 74 + CASE + 22 WHEN 76 THEN NULL WHEN + - 51 THEN + MIN ( - + CAST ( NULL AS INTEGER ) ) WHEN - - MAX ( ALL 52 ) THEN + - CAST ( + 76 AS REAL ) + - - 50 END
----
NULL

query II rowsort
SELECT 97 + - - 45 AS col2, 98 AS col0
----
142
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9566
SELECT DISTINCT - COUNT( + 53 ) DIV + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT - COUNT ( + 53 ) / + 74 AS col1
----
0

query I rowsort
SELECT 72 * + ( - 93 ) * - 4 + - + 7 AS col0
----
26777

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT COALESCE ( - + 55, + + 50 ) * + COUNT( * ) DIV - COALESCE ( 91, COUNT( * ), 24 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9568
SELECT COALESCE ( - + 55, + + 50 ) * + COUNT ( * ) / - COALESCE ( 91, COUNT ( * ), 24 ) col0
----
0

query I rowsort
SELECT ALL 38 + 90 * + + COALESCE ( - 54, + 2 ) * + + 20 AS col1
----
-97162

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT 87 + 52 + + + MIN( ALL - 56 ), 43 * + 68 AS col2
----
83
2924

skipif mysql # not compatible
query II rowsort label-9570
SELECT 87 + 52 + + + MIN ( ALL - 56 ), 43 * + 68 AS col2
----
83
2924

query I rowsort
SELECT DISTINCT 43 * - 1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT - - COUNT( * ) * 77 + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9572
SELECT - - COUNT ( * ) * 77 + COUNT ( * ) AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9573
SELECT ALL + - COALESCE ( + 64, - 27 + - COUNT( * ) DIV - - 67 ) + + + 34 * - 19
----
-710

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL + - COALESCE ( + 64, - 27 + - COUNT ( * ) / - - 67 ) + + + 34 * - 19
----
-710

query I rowsort
SELECT ALL ( 85 ) * 60 + + 63 AS col1
----
5163

query I rowsort
SELECT ALL 1 + - - 74 * + - 68 * 97 AS col2
----
-488103

query I rowsort
SELECT DISTINCT - 62 * - 70 - - 57 AS col1
----
4397

query I rowsort
SELECT ( - - 31 ) + 31 + + + 44 * + 51 AS col2
----
2306

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL + 87 + - 87 + - COUNT( * ) * + AVG ( ALL - 58 ) * + ( CASE + + CASE + 98 WHEN 84 * + 55 - 58 * 9 THEN NULL WHEN NULLIF ( + + COUNT( * ), ( + 5 ) ) THEN NULL ELSE - 20 END WHEN + + 20 THEN + COUNT( * ) * 27 + 57 END ) / + + 26 + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL + 87 + - 87 + - COUNT ( * ) * + AVG ( ALL - 58 ) * + ( CASE + + CASE + 98 WHEN 84 * + 55 - 58 * 9 THEN NULL WHEN NULLIF ( + + COUNT ( * ), ( + 5 ) ) THEN NULL ELSE - 20 END WHEN + + 20 THEN + COUNT ( * ) * 27 + 57 END ) / + + 26 + - 77 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9579
SELECT 18 * - CASE + MIN( + ( - 50 ) ) WHEN CAST( 82 AS SIGNED ) THEN 69 END + + 24, 75 + - 14 + 66 * 4 DIV 2 * 79 * - 17 * + 80 - + + 11 * - + 66 + + 69 + 58 * + 3 AS col1, - 14 + ( - 51 ) AS col2
----
NULL
-14181050
-65

skipif mysql # not compatible
query III rowsort label-9579
SELECT 18 * - CASE + MIN ( + ( - 50 ) ) WHEN CAST ( 82 AS INTEGER ) THEN 69 END + + 24, 75 + - 14 + 66 * 4 / 2 * 79 * - 17 * + 80 - + + 11 * - + 66 + + 69 + 58 * + 3 AS col1, - 14 + ( - 51 ) AS col2
----
NULL
-14181050
-65

query I rowsort
SELECT 21 * - 38 AS col1
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT + + COUNT( * ) * + 49 * + 42 + ( + 74 )
----
2132

skipif mysql # not compatible
query I rowsort label-9581
SELECT + + COUNT ( * ) * + 49 * + 42 + ( + 74 )
----
2132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT + 24 * + CAST( 75 AS SIGNED )
----
1800

skipif mysql # not compatible
query I rowsort label-9582
SELECT + 24 * + CAST ( 75 AS INTEGER )
----
1800

query I rowsort
SELECT + NULLIF ( 39, - 92 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT + ( + - ( + 82 ) ) - - MAX( ALL - 2 ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT + ( + - ( + 82 ) ) - - MAX ( ALL - 2 ) col2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9585
SELECT ALL COUNT( * ) DIV - MAX( ALL + - 76 ) + + 73
----
73

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL COUNT ( * ) / - MAX ( ALL + - 76 ) + + 73
----
73

query I rowsort
SELECT ALL 59 * NULLIF ( - + 25, + 50 )
----
-1475

query I rowsort
SELECT ( - 6 ) * + + 12 * + 54 * 37 - 45 * - ( - 10 )
----
-144306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9588
SELECT COUNT( * ) * COUNT( * ) DIV - ( + + 15 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9588
SELECT COUNT ( * ) * COUNT ( * ) / - ( + + 15 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9589
SELECT COUNT( * ) DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-9589
SELECT COUNT ( * ) / 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT 92 * COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-9590
SELECT 92 * COUNT ( * )
----
92

query I rowsort
SELECT DISTINCT 16 + 9 + - 61 * + 6 * 82 * 42 + + 13 + + 54 * + 77 AS col0
----
-1256308

onlyif mysql # aggregate syntax: 
query II rowsort label-9592
SELECT 88 AS col0, ( COUNT( * ) ) * NULLIF ( - 56, 95 ) AS col0
----
88
-56

skipif mysql # not compatible
query II rowsort label-9592
SELECT 88 AS col0, ( COUNT ( * ) ) * NULLIF ( - 56, 95 ) AS col0
----
88
-56

query I rowsort
SELECT - 39 - + 99
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-9594
SELECT ALL - 87 DIV - 36
----
2

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL - 87 / - 36
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT - COALESCE ( - - 75, 17 + 5, - - COUNT( * ) + 70, + 55 )
----
-75

skipif mysql # not compatible
query I rowsort label-9595
SELECT - COALESCE ( - - 75, 17 + 5, - - COUNT ( * ) + 70, + 55 )
----
-75

query I rowsort
SELECT - 57 * 71
----
-4047

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL - 92 * - 54 + + 50 * + ( - - COUNT( * ) ) + COUNT( * )
----
5019

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL - 92 * - 54 + + 50 * + ( - - COUNT ( * ) ) + COUNT ( * )
----
5019

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT 88 * - MIN( DISTINCT 51 ) + + 5 * - ( 23 ) AS col0
----
-4603

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT 88 * - MIN ( DISTINCT 51 ) + + 5 * - ( 23 ) AS col0
----
-4603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT ALL + CAST( 36 AS SIGNED ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL + CAST ( 36 AS INTEGER ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT COALESCE ( 12, COUNT( DISTINCT 48 ) * - COUNT( * ), - 11 + + CAST( NULL AS SIGNED ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9600
SELECT COALESCE ( 12, COUNT ( DISTINCT 48 ) * - COUNT ( * ), - 11 + + CAST ( NULL AS INTEGER ) ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ALL COUNT( * ) * ( 68 * 34 ) + 99 AS col1
----
2411

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL COUNT ( * ) * ( 68 * 34 ) + 99 AS col1
----
2411

query I rowsort
SELECT ALL + 76 * + 57 + - 96 col1
----
4236

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT DISTINCT + COUNT( - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT + COUNT ( - 18 )
----
1

query I rowsort
SELECT - 67 * 56
----
-3752

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT ALL + 25 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL + 25 / + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT CASE - 23 WHEN 71 + 50 THEN NULL WHEN COUNT( * ) + 5 THEN 42 + 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT CASE - 23 WHEN 71 + 50 THEN NULL WHEN COUNT ( * ) + 5 THEN 42 + 66 ELSE NULL END
----
NULL

query I rowsort
SELECT 16 * 4 - - 72 col0
----
136

query I rowsort
SELECT - 7 + 86
----
79

query I rowsort
SELECT ALL 77 * 85 AS col0
----
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT + MIN( ALL - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-9610
SELECT + MIN ( ALL - 59 )
----
-59

query I rowsort
SELECT DISTINCT - 35 * 19 AS col0
----
-665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT ALL + CAST( 13 AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + CAST ( 13 AS INTEGER ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL COUNT( * ) * CASE - 64 WHEN - 87 THEN 22 + 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL COUNT ( * ) * CASE - 64 WHEN - 87 THEN 22 + 95 END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9614
SELECT - 47 + + 85 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT - 47 + + 85 / - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 65 * - 7
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT - COUNT( * ) + 76 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9616
SELECT - COUNT ( * ) + 76 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT + COUNT( * ) * 43 col1
----
43

skipif mysql # not compatible
query I rowsort label-9617
SELECT + COUNT ( * ) * 43 col1
----
43

query I rowsort
SELECT + 17 + 85 AS col0
----
102

query I rowsort
SELECT ALL ( 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT DISTINCT + COUNT( * ) + - 72 * + 58 AS col1
----
-4175

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT + COUNT ( * ) + - 72 * + 58 AS col1
----
-4175

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT - COALESCE ( + 23, COUNT( * ) + 45 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9621
SELECT - COALESCE ( + 23, COUNT ( * ) + 45 ) AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT ALL 75 + 61 * CASE 3 / + 84 WHEN - 10 + - 42 THEN - 26 ELSE CAST( 88 AS SIGNED ) * 3 END
----
16179

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL 75 + 61 * CASE 3 / + 84 WHEN - 10 + - 42 THEN - 26 ELSE CAST ( 88 AS INTEGER ) * 3 END
----
16179

query I rowsort
SELECT + 46 + + 57 * 42
----
2440

query I rowsort
SELECT + 75 + 33
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT + 39 + + 26 DIV 99 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9625
SELECT + 39 + + 26 / 99 AS col2
----
39

query I rowsort
SELECT DISTINCT 4 * ( 53 ) AS col2
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT + 10 * + NULLIF ( - COUNT( * ), 29 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9627
SELECT + 10 * + NULLIF ( - COUNT ( * ), 29 ) AS col2
----
-10

query I rowsort
SELECT - 16 + 94 AS col0
----
78

query I rowsort
SELECT - 92 + - 1
----
-93

query I rowsort
SELECT DISTINCT 68 * 84
----
5712

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT 27 + CASE + 19 WHEN + COUNT( * ) + 84 THEN 94 + + 73 WHEN + 9 THEN 31 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT 27 + CASE + 19 WHEN + COUNT ( * ) + 84 THEN 94 + + 73 WHEN + 9 THEN 31 END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9632
SELECT ALL COALESCE ( 82, CAST( 15 AS SIGNED ) + COUNT( * ) DIV AVG ( + 50 DIV 74 ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL COALESCE ( 82, CAST ( 15 AS INTEGER ) + COUNT ( * ) / AVG ( + 50 / 74 ) ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT CASE - 2 WHEN - ( 69 ) THEN NULL WHEN 78 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT CASE - 2 WHEN - ( 69 ) THEN NULL WHEN 78 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL MAX( DISTINCT - 80 ) + + 93 * + 74 col2
----
6802

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL MAX ( DISTINCT - 80 ) + + 93 * + 74 col2
----
6802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9635
SELECT ALL - 67 DIV - COUNT( * ) - - COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL - 67 / - COUNT ( * ) - - COUNT ( * ) AS col2
----
68

query I rowsort
SELECT - + 67 * - ( 82 + 97 ) AS col2
----
11993

query I rowsort
SELECT DISTINCT + ( NULLIF ( 44, 74 - 27 ) ) AS col2
----
44

query I rowsort
SELECT DISTINCT + 29 * 48 AS col1
----
1392

query I rowsort
SELECT + ( 47 ) * 48
----
2256

query I rowsort
SELECT - - 90 + 75
----
165

query I rowsort
SELECT DISTINCT + 79 * + 54 AS col1
----
4266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9642
SELECT ALL + + CAST( 98 AS SIGNED ) col1
----
98

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL + + CAST ( 98 AS INTEGER ) col1
----
98

query I rowsort
SELECT - - 41 * 28 col1
----
1148

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ALL + COUNT( * ) * - 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL + COUNT ( * ) * - 94 AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9645
SELECT DISTINCT + + 71 * + CAST( + 90 AS SIGNED ) AS col0
----
6390

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT + + 71 * + CAST ( + 90 AS INTEGER ) AS col0
----
6390

query I rowsort
SELECT - 38 + 37 * - 5 AS col2
----
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9647
SELECT - - MAX( ALL - 22 ) DIV + 2
----
-11

skipif mysql # not compatible
query I rowsort label-9647
SELECT - - MAX ( ALL - 22 ) / + 2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9648
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) * 20
----
0

skipif mysql # not compatible
query I rowsort label-9648
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) * 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - 52 + COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9649
SELECT - 52 + COUNT ( * ) AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT DISTINCT + + 71 DIV + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT + + 71 / + 89 AS col0
----
0

query I rowsort
SELECT + COALESCE ( + 35, 98 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9652
SELECT - 9 DIV 10 col2
----
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT - 9 / 10 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT + 79 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-9653
SELECT + 79 / 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT + ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT + ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL + COUNT( 61 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL + COUNT ( 61 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 19 * + + 93 + - 67 * + 58 col0
----
-5653

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL MIN( 32 ) + 71 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL MIN ( 32 ) + 71 AS col2
----
103

query I rowsort
SELECT ALL + 86 * 62
----
5332

onlyif mysql # DIV for integer division: 
query I rowsort label-9659
SELECT 75 DIV 28 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9659
SELECT 75 / 28 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL COUNT( * ) + - 58 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL COUNT ( * ) + - 58 AS col1
----
-57

query I rowsort
SELECT 91 - - 34 + - 87 AS col1
----
38

query I rowsort
SELECT DISTINCT - 15 + - 78 col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT ( + 58 ) - 42 * MIN( 76 )
----
-3134

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT ( + 58 ) - 42 * MIN ( 76 )
----
-3134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT ALL CAST( NULL AS SIGNED ) - - COALESCE ( - CAST( NULL AS SIGNED ), 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL CAST ( NULL AS INTEGER ) - - COALESCE ( - CAST ( NULL AS INTEGER ), 16 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9665
SELECT CAST( NULL AS SIGNED ) * MIN( + 46 ) / 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT CAST ( NULL AS INTEGER ) * MIN ( + 46 ) / 38 AS col2
----
NULL

query I rowsort
SELECT ALL 67 * - - 9 - 7 * 64 AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT DISTINCT + MAX( 60 ) - 42 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT + MAX ( 60 ) - 42 AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT ALL - CAST( NULL AS SIGNED ) * - + 75 * 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 75 * 86 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT ALL 94 - + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL 94 - + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9670
SELECT + 64 DIV 9 DIV + NULLIF ( + ( + COUNT( * ) ) * - 74, 78 * 73 - - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-9670
SELECT + 64 / 9 / + NULLIF ( + ( + COUNT ( * ) ) * - 74, 78 * 73 - - 65 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9671
SELECT + CAST( - + 63 AS SIGNED ) + 82 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9671
SELECT + CAST ( - + 63 AS INTEGER ) + 82 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL 56 * COUNT( * ) + + 56
----
112

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL 56 * COUNT ( * ) + + 56
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL - + COUNT( DISTINCT + 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - + COUNT ( DISTINCT + 98 )
----
-1

query I rowsort
SELECT DISTINCT - NULLIF ( 28, 78 + 85 ) col1
----
-28

query I rowsort
SELECT ALL - - COALESCE ( + + NULLIF ( - 38, + ( COALESCE ( - 92, - 31 - 2, + ( + 58 ) ) ) * - 69 ), + 38 - + 59 ) col0
----
-38

query I rowsort
SELECT - 13 * + 8
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT COUNT( * ) + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-9677
SELECT COUNT ( * ) + - 76
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - MAX( ALL - 87 ) * - 63
----
-5481

skipif mysql # not compatible
query I rowsort label-9678
SELECT - MAX ( ALL - 87 ) * - 63
----
-5481

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT COUNT( * ) * 49
----
49

skipif mysql # not compatible
query I rowsort label-9679
SELECT COUNT ( * ) * 49
----
49

query I rowsort
SELECT ALL + + 69 + - 68
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9681
SELECT + CASE + 6 WHEN - 2 * CAST( + 18 AS SIGNED ) THEN NULL ELSE 43 + 54 END AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9681
SELECT + CASE + 6 WHEN - 2 * CAST ( + 18 AS INTEGER ) THEN NULL ELSE 43 + 54 END AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT 43 * - 73 * + COUNT( DISTINCT 40 ) - 91
----
-3230

skipif mysql # not compatible
query I rowsort label-9682
SELECT 43 * - 73 * + COUNT ( DISTINCT 40 ) - 91
----
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL + + SUM( + ( + 30 ) ) + 70
----
100

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL + + SUM ( + ( + 30 ) ) + 70
----
100

query I rowsort
SELECT 66 + + 31
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL 0 + + - COUNT( * ) + + 60 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL 0 + + - COUNT ( * ) + + 60 AS col2
----
59

query II rowsort
SELECT ALL - 4 AS col0, 75
----
-4
75

query I rowsort
SELECT ALL - 63 + - 30 AS col2
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT ( + 49 ) * + COALESCE ( ( 38 ), - 87 ) - + 71 DIV + 46 AS col0
----
1861

skipif mysql # not compatible
query I rowsort label-9688
SELECT ( + 49 ) * + COALESCE ( ( 38 ), - 87 ) - + 71 / + 46 AS col0
----
1861

query I rowsort
SELECT - 52 * + + 27 - 37 AS col0
----
-1441

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL + 91 + + COUNT( * ) + - 21 * + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL + 91 + + COUNT ( * ) + - 21 * + COUNT ( * )
----
71

query II rowsort
SELECT 4 AS col1, 49
----
4
49

query I rowsort
SELECT 10 + - ( + 67 ) AS col0
----
-57

query II rowsort
SELECT DISTINCT 64, 54 + - 55 col0
----
64
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT DISTINCT - 19 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT - 19 / + 83 AS col2
----
0

query I rowsort
SELECT 91 + + + 14 AS col1
----
105

query I rowsort
SELECT 0 + + ( - 88 ) + + 51 * 83 AS col2
----
4145

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL - COUNT( * ) - - - 18
----
-19

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL - COUNT ( * ) - - - 18
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9698
SELECT 10 + - 46 + MAX( - 56 ) * - COALESCE ( - CAST( + 21 AS SIGNED ), ( 18 ) * + 22 + 68, 1 )
----
-1212

skipif mysql # not compatible
query I rowsort label-9698
SELECT 10 + - 46 + MAX ( - 56 ) * - COALESCE ( - CAST ( + 21 AS INTEGER ), ( 18 ) * + 22 + 68, 1 )
----
-1212

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT ALL ( - 3 ) - + COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL ( - 3 ) - + COUNT ( * ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT COUNT( * ) * + 68 * 26 AS col0
----
1768

skipif mysql # not compatible
query I rowsort label-9700
SELECT COUNT ( * ) * + 68 * 26 AS col0
----
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL + MIN( + 37 ) * + 52 AS col2
----
1924

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + MIN ( + 37 ) * + 52 AS col2
----
1924

query I rowsort
SELECT 26 + 33 AS col2
----
59

query I rowsort
SELECT 97 + 74 * 79 AS col1
----
5943

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT NULLIF ( - COUNT( * ), - - 76 + + COUNT( * ) ) + - 69 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9704
SELECT NULLIF ( - COUNT ( * ), - - 76 + + COUNT ( * ) ) + - 69 AS col2
----
-70

query I rowsort
SELECT ALL + 29 * - 69
----
-2001

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT + COUNT( * ) * - 54
----
-54

skipif mysql # not compatible
query I rowsort label-9706
SELECT + COUNT ( * ) * - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT COUNT( * ) + + 42
----
43

skipif mysql # not compatible
query I rowsort label-9707
SELECT COUNT ( * ) + + 42
----
43

query II rowsort
SELECT ALL 17 AS col0, - 69 * - 88 - 75 * + 23
----
17
4347

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - + SUM( ALL ( + + 55 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-9709
SELECT - + SUM ( ALL ( + + 55 ) )
----
-55

query I rowsort
SELECT - ( + + 41 ) + + - 67 * 83
----
-5602

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT - 84 + + COUNT( * ) + 44 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9711
SELECT - 84 + + COUNT ( * ) + 44 AS col1
----
-39

query I rowsort
SELECT ALL 28 * 84
----
2352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9713
SELECT COUNT( 68 ) DIV - - 59
----
0

skipif mysql # not compatible
query I rowsort label-9713
SELECT COUNT ( 68 ) / - - 59
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT ALL 67 DIV 57 * - 16
----
-16

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL 67 / 57 * - 16
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9715
SELECT DISTINCT - 39 AS col2, - 90 * CAST( NULL AS SIGNED ) * CASE + 69 WHEN ( 64 ) THEN NULL WHEN - 59 + 1 THEN 61 - COUNT( * ) * 83 ELSE NULL END AS col1
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-9715
SELECT DISTINCT - 39 AS col2, - 90 * CAST ( NULL AS INTEGER ) * CASE + 69 WHEN ( 64 ) THEN NULL WHEN - 59 + 1 THEN 61 - COUNT ( * ) * 83 ELSE NULL END AS col1
----
-39
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9716
SELECT + ( + MAX( ALL - CAST( - 82 AS SIGNED ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-9716
SELECT + ( + MAX ( ALL - CAST ( - 82 AS INTEGER ) ) )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT + - 0 * + CAST( NULL AS SIGNED ) * + CAST( - 19 AS SIGNED ) + - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT + - 0 * + CAST ( NULL AS INTEGER ) * + CAST ( - 19 AS INTEGER ) + - 34 AS col1
----
NULL

query II rowsort
SELECT + 80 AS col1, + 95
----
80
95

query I rowsort
SELECT ALL + 69 * - + ( 63 ) * 44 + 81 * 21
----
-189567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9720
SELECT 59 DIV + - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-9720
SELECT 59 / + - COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9721
SELECT 58 DIV COALESCE ( COUNT( * ), + MIN( - 41 ) ) + + 92 + 90 AS col1
----
240

skipif mysql # not compatible
query I rowsort label-9721
SELECT 58 / COALESCE ( COUNT ( * ), + MIN ( - 41 ) ) + + 92 + 90 AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL - 94 * - CASE 82 WHEN 85 + - 3 * + 69 THEN + 50 ELSE 96 * + COUNT( 55 * - 48 ) END + 32 AS col0
----
9056

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL - 94 * - CASE 82 WHEN 85 + - 3 * + 69 THEN + 50 ELSE 96 * + COUNT ( 55 * - 48 ) END + 32 AS col0
----
9056

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ( - 93 ) * - 3 * + MIN( ALL + 49 )
----
13671

skipif mysql # not compatible
query I rowsort label-9723
SELECT ( - 93 ) * - 3 * + MIN ( ALL + 49 )
----
13671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT ALL - COUNT( * ) * - COUNT( * ) * 44 + CAST( ( 37 ) AS SIGNED ) col2
----
81

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * 44 + CAST ( ( 37 ) AS INTEGER ) col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT - SUM( 31 ) + - 13
----
-44

skipif mysql # not compatible
query I rowsort label-9725
SELECT - SUM ( 31 ) + - 13
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT DISTINCT - + 12 * - 66 * 71 * - COUNT( * ) - COUNT( * ) + - 6
----
-56239

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT - + 12 * - 66 * 71 * - COUNT ( * ) - COUNT ( * ) + - 6
----
-56239

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL 74 * 18 + + COUNT( * ) AS col0
----
1333

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL 74 * 18 + + COUNT ( * ) AS col0
----
1333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9728
SELECT DISTINCT 17 * - 1 * + CAST( + - 30 AS SIGNED ) + 67 * ( - 98 + 87 )
----
-227

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT 17 * - 1 * + CAST ( + - 30 AS INTEGER ) + 67 * ( - 98 + 87 )
----
-227

query I rowsort
SELECT DISTINCT 23 * 3 + - - 43 * - 8 AS col1
----
-275

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9730
SELECT ALL 91 * 98 + CASE + NULLIF ( - SUM( - 60 ), + 58 ) WHEN 38 THEN NULL WHEN + 93 * - CAST( CAST( NULL AS DECIMAL ) * - 92 AS DECIMAL ) + - 46 THEN NULL WHEN + 53 THEN NULL WHEN + COUNT( * ) + + COUNT( DISTINCT + 58 ) * 99 THEN NULL WHEN + 82 THEN NULL ELSE - 15 * - 0 END + 98
----
9016

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL 91 * 98 + CASE + NULLIF ( - SUM ( - 60 ), + 58 ) WHEN 38 THEN NULL WHEN + 93 * - CAST ( CAST ( NULL AS REAL ) * - 92 AS REAL ) + - 46 THEN NULL WHEN + 53 THEN NULL WHEN + COUNT ( * ) + + COUNT ( DISTINCT + 58 ) * 99 THEN NULL WHEN + 82 THEN NULL ELSE - 15 * - 0 END + 98
----
9016

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT MIN( ALL + - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9731
SELECT MIN ( ALL + - 76 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT - 85 * + + NULLIF ( + COUNT( * ), - 74 * 78 ) * + 92 + 69 * - 61
----
-12029

skipif mysql # not compatible
query I rowsort label-9732
SELECT - 85 * + + NULLIF ( + COUNT ( * ), - 74 * 78 ) * + 92 + 69 * - 61
----
-12029

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT MIN( ALL + + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-9733
SELECT MIN ( ALL + + 63 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT + 4 * - - CAST( 56 AS SIGNED )
----
224

skipif mysql # not compatible
query I rowsort label-9734
SELECT + 4 * - - CAST ( 56 AS INTEGER )
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT ALL + SUM( ALL + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL + SUM ( ALL + 13 ) AS col2
----
13

query II rowsort
SELECT - 74 * + + 59, - 95 AS col0
----
-4366
-95

query I rowsort
SELECT ALL 80 * COALESCE ( - ( - 58 ), 8 * 96 + 31 ) AS col2
----
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL MIN( + - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL MIN ( + - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT + 21 + ( + - 56 ) - + - 54 + 80 * 5 * - NULLIF ( + 53 + - COUNT( * ), + 72 - + 36 ) AS col1
----
-20781

skipif mysql # not compatible
query I rowsort label-9739
SELECT + 21 + ( + - 56 ) - + - 54 + 80 * 5 * - NULLIF ( + 53 + - COUNT ( * ), + 72 - + 36 ) AS col1
----
-20781

onlyif mysql # DIV for integer division: 
query I rowsort label-9740
SELECT ALL - 97 - + 66 DIV + - 5 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL - 97 - + 66 / + - 5 AS col1
----
-84

query I rowsort
SELECT - 44 + 25 - 12 + 66 + - 11
----
24

query II rowsort
SELECT - 14 * - - 75 AS col2, - NULLIF ( + 37, - 8 + 98 )
----
-1050
-37

query I rowsort
SELECT - + 30 * 13
----
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT ALL - + 7 DIV - 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL - + 7 / - 51 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9745
SELECT ALL 15 DIV + 21 + - - NULLIF ( 89, ( + COUNT( ALL 93 ) ) + + CAST( NULL AS SIGNED ) * - 14 ) + + 31
----
120

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL 15 / + 21 + - - NULLIF ( 89, ( + COUNT ( ALL 93 ) ) + + CAST ( NULL AS INTEGER ) * - 14 ) + + 31
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL - ( - MAX( - 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - ( - MAX ( - 4 ) )
----
-4

query I rowsort
SELECT DISTINCT 17 * + 78 AS col2
----
1326

query II rowsort
SELECT - + 84 + 54 col0, - 85 AS col2
----
-30
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT - - COUNT( + + 32 ) * 97 * + 30
----
2910

skipif mysql # not compatible
query I rowsort label-9749
SELECT - - COUNT ( + + 32 ) * 97 * + 30
----
2910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9750
SELECT ALL - 74 DIV - + COUNT( * ) + + 62
----
136

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL - 74 / - + COUNT ( * ) + + 62
----
136

query I rowsort
SELECT - 71 * 68
----
-4828

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9752
SELECT DISTINCT - CAST( - 7 AS SIGNED ) DIV + + 2 + + 90
----
93

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT - CAST ( - 7 AS INTEGER ) / + + 2 + + 90
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT + MIN( ALL - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-9753
SELECT + MIN ( ALL - 73 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9754
SELECT ALL COUNT( * ) * + 98 + + + CAST( NULL AS SIGNED ) + + 30 + - 96 * - 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL COUNT ( * ) * + 98 + + + CAST ( NULL AS INTEGER ) + + 30 + - 96 * - 22 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT DISTINCT 46 * 13 * + MAX( ALL - 53 ) * 19 col2
----
-602186

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT 46 * 13 * + MAX ( ALL - 53 ) * 19 col2
----
-602186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9756
SELECT + COUNT( * ) * + COALESCE ( + + 72, - 56, CAST( - COUNT( * ) AS SIGNED ) )
----
72

skipif mysql # not compatible
query I rowsort label-9756
SELECT + COUNT ( * ) * + COALESCE ( + + 72, - 56, CAST ( - COUNT ( * ) AS INTEGER ) )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT + 41 DIV - 34 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9757
SELECT + 41 / - 34 AS col2
----
-1

query I rowsort
SELECT + 93 * 19
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + 43 * - + 25 + + + COUNT( * ) * - COALESCE ( - - NULLIF ( COUNT( ALL 68 ), + 1 ), 83, - ( 29 ) ) AS col2
----
-1158

skipif mysql # not compatible
query I rowsort label-9759
SELECT + 43 * - + 25 + + + COUNT ( * ) * - COALESCE ( - - NULLIF ( COUNT ( ALL 68 ), + 1 ), 83, - ( 29 ) ) AS col2
----
-1158

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ALL 56 * COUNT( * ) - - - 12 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL 56 * COUNT ( * ) - - - 12 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL - 73 * 71 * + - MIN( ALL COALESCE ( - - ( 64 ), + 36 + 95 ) ) * + 89
----
29522368

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL - 73 * 71 * + - MIN ( ALL COALESCE ( - - ( 64 ), + 36 + 95 ) ) * + 89
----
29522368

query I rowsort
SELECT + 81 + - + CASE + 80 WHEN + 81 THEN - 73 - + 85 WHEN 54 THEN + 15 / - 97 - + 35 END
----
NULL

query I rowsort
SELECT DISTINCT 4 * + 50 AS col0
----
200

query I rowsort
SELECT + 33 * + + 44 AS col1
----
1452

query I rowsort
SELECT + 45 + - CASE 11 WHEN - ( + 93 ) THEN 3 + 66 * - 65 WHEN + 5 THEN 21 ELSE NULL END - AVG ( DISTINCT 36 ) AS col0
----
NULL

query I rowsort
SELECT + 21 + - - 61 * + 77 AS col0
----
4718

query I rowsort
SELECT + 27 + + 31
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT SUM( 28 )
----
28

skipif mysql # not compatible
query I rowsort label-9768
SELECT SUM ( 28 )
----
28

query I rowsort
SELECT + 97 * + - 75 AS col1
----
-7275

query I rowsort
SELECT - 3 + + + 80
----
77

query I rowsort
SELECT + 15 + - 85
----
-70

query I rowsort
SELECT - 42 * + - 80 * + + 5 + - 67
----
16733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9773
SELECT DISTINCT COALESCE ( - - 3, - 95 * - 59 DIV + COUNT( * ) + - 9 * + 13 ) DIV 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT COALESCE ( - - 3, - 95 * - 59 / + COUNT ( * ) + - 9 * + 13 ) / 35 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9774
SELECT + 43 + - NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) ) * + COALESCE ( 4, CAST( - 11 AS SIGNED ) * - 80 ) / 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT + 43 + - NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) * + COALESCE ( 4, CAST ( - 11 AS INTEGER ) * - 80 ) / 55
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9775
SELECT + - MIN( ALL - 33 ) DIV + - 78 * COUNT( * ) * - 78 * - 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9775
SELECT + - MIN ( ALL - 33 ) / + - 78 * COUNT ( * ) * - 78 * - 4 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9776
SELECT DISTINCT + 52 + - COALESCE ( + + COUNT( * ), ( + NULLIF ( ( - 1 ), CAST( NULL AS SIGNED ) * - COUNT( * ) ) ) )
----
51

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT + 52 + - COALESCE ( + + COUNT ( * ), ( + NULLIF ( ( - 1 ), CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) ) )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9777
SELECT DISTINCT 96 AS col0, + 38 + + CAST( - 76 AS SIGNED ) AS col2
----
96
-38

skipif mysql # not compatible
query II rowsort label-9777
SELECT DISTINCT 96 AS col0, + 38 + + CAST ( - 76 AS INTEGER ) AS col2
----
96
-38

query I rowsort
SELECT + - 13 * - + 19 * 31 AS col1
----
7657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9779
SELECT + COUNT( * ) DIV + 44 + 23 + 56 * + - ( 84 ) * 55 AS col0
----
-258697

skipif mysql # not compatible
query I rowsort label-9779
SELECT + COUNT ( * ) / + 44 + 23 + 56 * + - ( 84 ) * 55 AS col0
----
-258697

onlyif mysql # DIV for integer division: 
query I rowsort label-9780
SELECT - ( + - 79 ) DIV - 13 col1
----
-6

skipif mysql # not compatible
query I rowsort label-9780
SELECT - ( + - 79 ) / - 13 col1
----
-6

query I rowsort
SELECT + 46 * 53 AS col0
----
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT - COUNT( - + 77 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9782
SELECT - COUNT ( - + 77 ) col2
----
-1

query I rowsort
SELECT DISTINCT - 25 + + - 51 AS col1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9784
SELECT DISTINCT 34 DIV 24
----
1

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT 34 / 24
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT - 73 DIV - 49 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9785
SELECT - 73 / - 49 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT + ( 88 ) + - 24 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT + ( 88 ) + - 24 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL - 17 + + + COUNT( - 74 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL - 17 + + + COUNT ( - 74 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL - + MAX( + 54 ) * + 5
----
-270

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - + MAX ( + 54 ) * + 5
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - COUNT( * ) + + 10 + + 49 + + + 86 * + - 64
----
-5446

skipif mysql # not compatible
query I rowsort label-9789
SELECT - COUNT ( * ) + + 10 + + 49 + + + 86 * + - 64
----
-5446

query I rowsort
SELECT DISTINCT - + ( - 22 ) - + CASE + 83 WHEN 16 THEN - 65 * 66 END + 39 * 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT - - 62 * 50 + 3 + CASE + - 14 WHEN MIN( ALL + 17 ) THEN - 97 WHEN COUNT( * ) * - CASE 45 WHEN MIN( 30 ) + COALESCE ( 72, COUNT( * ) ) THEN 61 + - 92 ELSE + 84 END THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT - - 62 * 50 + 3 + CASE + - 14 WHEN MIN ( ALL + 17 ) THEN - 97 WHEN COUNT ( * ) * - CASE 45 WHEN MIN ( 30 ) + COALESCE ( 72, COUNT ( * ) ) THEN 61 + - 92 ELSE + 84 END THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 4 * 26 AS col2
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9793
SELECT ALL - 41 * + CASE - + 89 WHEN + 18 THEN - 86 * + - CAST( NULL AS SIGNED ) + - 20 + 50 WHEN - COUNT( * ) * 19 + 87 THEN - 83 + - CASE + 49 WHEN - 22 THEN NULL ELSE 18 END ELSE + SUM( ALL 36 ) * - 93 + 6 END * 36 AS col2
----
4932792

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL - 41 * + CASE - + 89 WHEN + 18 THEN - 86 * + - CAST ( NULL AS INTEGER ) + - 20 + 50 WHEN - COUNT ( * ) * 19 + 87 THEN - 83 + - CASE + 49 WHEN - 22 THEN NULL ELSE 18 END ELSE + SUM ( ALL 36 ) * - 93 + 6 END * 36 AS col2
----
4932792

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9794
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, COUNT( * ) * + 16 + + 46
----
NULL
62

skipif mysql # not compatible
query II rowsort label-9794
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, COUNT ( * ) * + 16 + + 46
----
NULL
62

query I rowsort
SELECT 81 + - 94 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT COALESCE ( - SUM( + 25 ), 56 + + 78 + 94 ) + - COUNT( ( + 84 ) ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-9796
SELECT COALESCE ( - SUM ( + 25 ), 56 + + 78 + 94 ) + - COUNT ( ( + 84 ) ) col2
----
-26

query I rowsort
SELECT + 71 * + COALESCE ( - 1, 31 * + - 65 ) + - 92
----
-163

query II rowsort
SELECT DISTINCT - 62, + 11 col1
----
-62
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT DISTINCT - NULLIF ( + COUNT( * ), - 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT - NULLIF ( + COUNT ( * ), - 17 )
----
-1

query III rowsort
SELECT DISTINCT - 87 AS col0, 82, + - 63 + ( 52 ) AS col1
----
-87
82
-11

query II rowsort
SELECT + 64 AS col0, + 9
----
64
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT COUNT( * ) + - ( + + 70 )
----
-69

skipif mysql # not compatible
query I rowsort label-9802
SELECT COUNT ( * ) + - ( + + 70 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9803
SELECT COUNT( * ) * - - 86 DIV + - 99
----
0

skipif mysql # not compatible
query I rowsort label-9803
SELECT COUNT ( * ) * - - 86 / + - 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT NULLIF ( - - CAST( NULL AS SIGNED ), + + 90 ) * - 3 - - 87 - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT NULLIF ( - - CAST ( NULL AS INTEGER ), + + 90 ) * - 3 - - 87 - 29 AS col2
----
NULL

query I rowsort
SELECT ALL ( 5 ) * - 55
----
-275

onlyif mysql # aggregate syntax: 
query II rowsort label-9806
SELECT 82, + COUNT( * ) - - 48 col0
----
82
49

skipif mysql # not compatible
query II rowsort label-9806
SELECT 82, + COUNT ( * ) - - 48 col0
----
82
49

query I rowsort
SELECT ALL 85 + + 40 col0
----
125

query II rowsort
SELECT - 88, 16 AS col1
----
-88
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9809
SELECT DISTINCT 76 + + - 96 DIV + 12 + + - COUNT( * ) + 14 + COUNT( * ) * 12 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT 76 + + - 96 / + 12 + + - COUNT ( * ) + 14 + COUNT ( * ) * 12 AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9810
SELECT DISTINCT - 64 + 50 + + 89 DIV - + 6
----
-28

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT - 64 + 50 + + 89 / - + 6
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT CASE - 70 WHEN - - 43 * 84 THEN 8 + COUNT( * ) WHEN + 32 * + MIN( DISTINCT - 70 ) THEN 22 WHEN 67 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT CASE - 70 WHEN - - 43 * 84 THEN 8 + COUNT ( * ) WHEN + 32 * + MIN ( DISTINCT - 70 ) THEN 22 WHEN 67 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT - 52 * + + 62 + + SUM( 7 ) col0
----
-3217

skipif mysql # not compatible
query I rowsort label-9812
SELECT - 52 * + + 62 + + SUM ( 7 ) col0
----
-3217

query I rowsort
SELECT 78 * + + 96 AS col1
----
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT - ( MIN( DISTINCT - 92 ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9814
SELECT - ( MIN ( DISTINCT - 92 ) ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT + COUNT( * ) + + 46 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT + COUNT ( * ) + + 46 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT - NULLIF ( - 44, - COUNT( * ) + + 2 + + 52 + + 23 / 75 )
----
44

skipif mysql # not compatible
query I rowsort label-9816
SELECT - NULLIF ( - 44, - COUNT ( * ) + + 2 + + 52 + + 23 / 75 )
----
44

query I rowsort
SELECT ALL + 7 + COALESCE ( 41, - 91 + 3, + ( 12 ) + - 30 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL + MAX( ALL - 0 ) * + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL + MAX ( ALL - 0 ) * + 70 AS col1
----
0

query II rowsort
SELECT - - 34 AS col2, - 1 AS col1
----
34
-1

query I rowsort
SELECT DISTINCT - - 22 - - 68 + - 82 * + 51 AS col2
----
-4092

query I rowsort
SELECT DISTINCT + ( 5 ) AS col1
----
5

query II rowsort
SELECT + 27 AS col1, - 1 AS col1
----
27
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT 83 + - CAST( - 63 AS SIGNED )
----
146

skipif mysql # not compatible
query I rowsort label-9823
SELECT 83 + - CAST ( - 63 AS INTEGER )
----
146

query II rowsort
SELECT - 55, 35 - - 12 AS col2
----
-55
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9825
SELECT 4 * + 79 + COUNT( DISTINCT 85 ) AS col1, - 89 AS col2
----
317
-89

skipif mysql # not compatible
query II rowsort label-9825
SELECT 4 * + 79 + COUNT ( DISTINCT 85 ) AS col1, - 89 AS col2
----
317
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL - COUNT( * ) - + - 67 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL - COUNT ( * ) - + - 67 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL + CASE + 83 WHEN - 82 / + 51 * - COUNT( * ) - - CASE - 94 WHEN 3 THEN 51 * 51 + + 90 ELSE 11 * ( 24 ) END + ( 95 + - 33 ) * - 63 + 89 THEN NULL WHEN + 76 + + COUNT( * ) THEN + COUNT( ALL - 42 ) + + ( 34 ) * - 76 END * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL + CASE + 83 WHEN - 82 / + 51 * - COUNT ( * ) - - CASE - 94 WHEN 3 THEN 51 * 51 + + 90 ELSE 11 * ( 24 ) END + ( 95 + - 33 ) * - 63 + 89 THEN NULL WHEN + 76 + + COUNT ( * ) THEN + COUNT ( ALL - 42 ) + + ( 34 ) * - 76 END * 54
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9828
SELECT 0 * - - 78 DIV 46 AS col2, ( 34 )
----
0
34

skipif mysql # not compatible
query II rowsort label-9828
SELECT 0 * - - 78 / 46 AS col2, ( 34 )
----
0
34

query I rowsort
SELECT ALL + NULLIF ( - 56, + 71 ) * 27
----
-1512

onlyif mysql # DIV for integer division: 
query II rowsort label-9830
SELECT ALL + 11 * 36 DIV 28 AS col0, 41
----
14
41

skipif mysql # not compatible
query II rowsort label-9830
SELECT ALL + 11 * 36 / 28 AS col0, 41
----
14
41

query II rowsort
SELECT ALL - 38 + 90 AS col1, + 95 AS col2
----
52
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT 2 * - - 87 * + 85 + + NULLIF ( + - 88, COALESCE ( - + NULLIF ( + COUNT( 61 ), + 95 ), 96 * - 6 ) ) * - 29
----
17342

skipif mysql # not compatible
query I rowsort label-9832
SELECT 2 * - - 87 * + 85 + + NULLIF ( + - 88, COALESCE ( - + NULLIF ( + COUNT ( 61 ), + 95 ), 96 * - 6 ) ) * - 29
----
17342

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT COUNT( + + 71 ) * - 80 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9833
SELECT COUNT ( + + 71 ) * - 80 AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9834
SELECT - SUM( - 94 ) DIV 43 - - - SUM( + 47 ) - + + CAST( 58 AS SIGNED ) + - 29 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-9834
SELECT - SUM ( - 94 ) / 43 - - - SUM ( + 47 ) - + + CAST ( 58 AS INTEGER ) + - 29 AS col1
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT ALL - ( + 6 ) + - ( + CAST( NULL AS SIGNED ) ) * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL - ( + 6 ) + - ( + CAST ( NULL AS INTEGER ) ) * 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9836
SELECT ALL - NULLIF ( + 9, 57 + 87 * + CAST( NULL AS SIGNED ) * + 71 / - + 66 ) + - 74
----
-83

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL - NULLIF ( + 9, 57 + 87 * + CAST ( NULL AS INTEGER ) * + 71 / - + 66 ) + - 74
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9837
SELECT ALL 38 DIV - 48 * - - SUM( 12 )
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL 38 / - 48 * - - SUM ( 12 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL + MAX( DISTINCT - 77 ) + CASE + ( + - 75 ) WHEN + 92 THEN + 19 ELSE 7 * + COUNT( * ) END
----
-70

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL + MAX ( DISTINCT - 77 ) + CASE + ( + - 75 ) WHEN + 92 THEN + 19 ELSE 7 * + COUNT ( * ) END
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9839
SELECT ALL - ( - - CASE - - COUNT( * ) WHEN - - 18 * CAST( NULL AS SIGNED ) / + 17 * + 77 * 86 + 4 THEN NULL WHEN 20 THEN + 69 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL - ( - - CASE - - COUNT ( * ) WHEN - - 18 * CAST ( NULL AS INTEGER ) / + 17 * + 77 * 86 + 4 THEN NULL WHEN 20 THEN + 69 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT + 62 + + 27 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL + 11 + + ( + + ( - + COUNT( * ) ) )
----
10

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL + 11 + + ( + + ( - + COUNT ( * ) ) )
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9842
SELECT ALL - COUNT( * ) * - CAST( NULL AS DECIMAL ), COUNT( * ) * 3 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9842
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS REAL ), COUNT ( * ) * 3 AS col0
----
NULL
3

query I rowsort
SELECT 30 * 62 * + + 43 + - 15 AS col0
----
79965

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT DISTINCT ( SUM( ALL - 57 ) ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT ( SUM ( ALL - 57 ) ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT + COALESCE ( COUNT( * ), + 55 + + 55, + MIN( - 20 ) ) + + 65 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9845
SELECT + COALESCE ( COUNT ( * ), + 55 + + 55, + MIN ( - 20 ) ) + + 65 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9846
SELECT ALL + - 16 - 43 AS col0, + CAST( NULL AS SIGNED ) * - MIN( DISTINCT - 28 )
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-9846
SELECT ALL + - 16 - 43 AS col0, + CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT - 28 )
----
-59
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9847
SELECT DISTINCT - ( 23 ) DIV + + 56
----
0

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT - ( 23 ) / + + 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT - + 53 + + + MAX( ALL - 82 ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-9848
SELECT - + 53 + + + MAX ( ALL - 82 ) AS col1
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT + - CAST( + 0 AS SIGNED ) + - ( + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-9849
SELECT + - CAST ( + 0 AS INTEGER ) + - ( + 37 )
----
-37

query II rowsort
SELECT - ( + + 41 ) AS col2, 98
----
-41
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT + + COUNT( * ) + 48 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9851
SELECT + + COUNT ( * ) + 48 AS col1
----
49

query I rowsort
SELECT + - 40 + ( + - 60 )
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT + - COUNT( * ) * - 97 - - 61 col0
----
158

skipif mysql # not compatible
query I rowsort label-9853
SELECT + - COUNT ( * ) * - 97 - - 61 col0
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT + 14 * + 86 DIV - + ( - 81 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9854
SELECT + 14 * + 86 / - + ( - 81 ) AS col1
----
14

query I rowsort
SELECT DISTINCT COALESCE ( - 67, - + 89 ) * + + 54
----
-3618

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT + 82 + COUNT( DISTINCT - 1 ) + ( - 57 )
----
26

skipif mysql # not compatible
query I rowsort label-9856
SELECT + 82 + COUNT ( DISTINCT - 1 ) + ( - 57 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9857
SELECT ALL COUNT( DISTINCT CAST( 81 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL COUNT ( DISTINCT CAST ( 81 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT + 52 + 23 * + + MIN( - - 70 )
----
1662

skipif mysql # not compatible
query I rowsort label-9858
SELECT + 52 + 23 * + + MIN ( - - 70 )
----
1662

query I rowsort
SELECT + ( + - 14 ) AS col2
----
-14

query II rowsort
SELECT ALL + 65, + 75 AS col2
----
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT + 22 * - COUNT( * ) * 55 * - ( - COUNT( * ) )
----
-1210

skipif mysql # not compatible
query I rowsort label-9861
SELECT + 22 * - COUNT ( * ) * 55 * - ( - COUNT ( * ) )
----
-1210

query I rowsort
SELECT ALL - ( - + 21 ) * - 31 + + 2
----
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT + 98 * + + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9863
SELECT + 98 * + + COUNT ( * ) AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT - 93 / + 93 + 14 / - 7 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT - 93 / + 93 + 14 / - 7 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 63 * 93 + - 37
----
-5896

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT + NULLIF ( + COUNT( * ), - - MAX( - 74 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9866
SELECT + NULLIF ( + COUNT ( * ), - - MAX ( - 74 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT DISTINCT - 34 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT - 34 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9868
SELECT DISTINCT 33 / - 50 / + + 45 * CASE + 86 WHEN - 61 THEN - NULLIF ( 97, CAST( NULL AS DECIMAL ) - - AVG ( 90 ) ) * COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT 33 / - 50 / + + 45 * CASE + 86 WHEN - 61 THEN - NULLIF ( 97, CAST ( NULL AS REAL ) - - AVG ( 90 ) ) * COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9869
SELECT NULLIF ( - + 24, CASE - 65 WHEN + 51 THEN + 90 WHEN + CAST( NULL AS SIGNED ) - - 95 THEN NULL END * 31 + MAX( 75 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-9869
SELECT NULLIF ( - + 24, CASE - 65 WHEN + 51 THEN + 90 WHEN + CAST ( NULL AS INTEGER ) - - 95 THEN NULL END * 31 + MAX ( 75 ) )
----
-24

query I rowsort
SELECT NULLIF ( + COALESCE ( 2, - 11 ), 35 + + 71 + + 63 )
----
2

query II rowsort
SELECT DISTINCT + 86 AS col2, 82 + 78 AS col0
----
86
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL + MAX( DISTINCT - 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + MAX ( DISTINCT - 9 ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9873
SELECT - NULLIF ( - + CASE - - ( - 88 ) WHEN ( + + ( + - 41 ) ) + - 43 + + 77 * - 40 THEN + 83 * 33 WHEN 71 * - SUM( DISTINCT - 16 ) THEN NULL ELSE NULL END, 68 ) * ( - COUNT( - CAST( 67 AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9873
SELECT - NULLIF ( - + CASE - - ( - 88 ) WHEN ( + + ( + - 41 ) ) + - 43 + + 77 * - 40 THEN + 83 * 33 WHEN 71 * - SUM ( DISTINCT - 16 ) THEN NULL ELSE NULL END, 68 ) * ( - COUNT ( - CAST ( 67 AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT 73, + COUNT( * ) AS col2
----
73
1

skipif mysql # not compatible
query II rowsort label-9874
SELECT 73, + COUNT ( * ) AS col2
----
73
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT + AVG ( + + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT + AVG ( + + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL - 37 * + COUNT( * ) * - 33 + + + 51 * + - CASE 49 WHEN - + ( + 99 ) THEN 18 + + 95 ELSE NULL END + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL - 37 * + COUNT ( * ) * - 33 + + + 51 * + - CASE 49 WHEN - + ( + 99 ) THEN 18 + + 95 ELSE NULL END + - 9
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9877
SELECT + + 62 AS col2, CAST( NULL AS DECIMAL )
----
62
NULL

skipif mysql # not compatible
query II rowsort label-9877
SELECT + + 62 AS col2, CAST ( NULL AS REAL )
----
62
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9878
SELECT ALL 68 * + 89 + - COUNT( - 74 ) + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL 68 * + 89 + - COUNT ( - 74 ) + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 99 * 85 + - 80 col1
----
-8495

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT - MAX( ALL + 87 ) * + 83
----
-7221

skipif mysql # not compatible
query I rowsort label-9880
SELECT - MAX ( ALL + 87 ) * + 83
----
-7221

query I rowsort
SELECT ALL + ( + 0 ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 12 * 50
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - + 68 * + - COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-9883
SELECT - + 68 * + - COUNT ( * ) AS col2
----
68

query II rowsort
SELECT - 83 AS col2, 91 + 70 * - + 77 AS col2
----
-83
-5299

onlyif mysql # aggregate syntax: 
query II rowsort label-9885
SELECT ALL - + SUM( + 48 ) * 65 * - 32 * - 6 - + + 1, - 88 AS col1
----
-599041
-88

skipif mysql # not compatible
query II rowsort label-9885
SELECT ALL - + SUM ( + 48 ) * 65 * - 32 * - 6 - + + 1, - 88 AS col1
----
-599041
-88

query II rowsort
SELECT - 16, + 18 col0
----
-16
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9887
SELECT ALL + 61, COUNT( * ) col1
----
61
1

skipif mysql # not compatible
query II rowsort label-9887
SELECT ALL + 61, COUNT ( * ) col1
----
61
1

query II rowsort
SELECT ALL 44 AS col0, 53 AS col2
----
44
53

query I rowsort
SELECT - + 24 + + 47 AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9890
SELECT - + COUNT( * ) DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-9890
SELECT - + COUNT ( * ) / + 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9891
SELECT + - 21 * + + 29 + - 49 + 33 - + MIN( - ( + 5 ) ) + - 97 DIV - 54 AS col1
----
-619

skipif mysql # not compatible
query I rowsort label-9891
SELECT + - 21 * + + 29 + - 49 + 33 - + MIN ( - ( + 5 ) ) + - 97 / - 54 AS col1
----
-619

query I rowsort
SELECT - ( - - ( + - 75 ) )
----
75

query I rowsort
SELECT ALL + 38 - 68 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9894
SELECT 22 AS col0, ( + + 38 ) * + + COUNT( * ) * 12
----
22
456

skipif mysql # not compatible
query II rowsort label-9894
SELECT 22 AS col0, ( + + 38 ) * + + COUNT ( * ) * 12
----
22
456

query I rowsort
SELECT DISTINCT + - 38 * + + ( - - 58 ) AS col2
----
-2204

query I rowsort
SELECT ALL 68 * 56
----
3808

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT - - 41 * + - COUNT( + 22 ) * - - SUM( - + 74 ) - SUM( + + ( - 8 ) ) + 8 * COUNT( * ) col2
----
3050

skipif mysql # not compatible
query I rowsort label-9897
SELECT - - 41 * + - COUNT ( + 22 ) * - - SUM ( - + 74 ) - SUM ( + + ( - 8 ) ) + 8 * COUNT ( * ) col2
----
3050

query I rowsort
SELECT DISTINCT - 36 * - 59 + + 90
----
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL - COUNT( DISTINCT - - 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL - COUNT ( DISTINCT - - 35 ) AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9900
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0, + 19
----
NULL
19

skipif mysql # not compatible
query II rowsort label-9900
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0, + 19
----
NULL
19

query II rowsort
SELECT DISTINCT + 28 * 64 col1, 85 * + - 30
----
1792
-2550

onlyif mysql # aggregate syntax: 
query II rowsort label-9902
SELECT - ( + 90 ) AS col0, + 56 * SUM( ALL + - 51 ) + 64
----
-90
-2792

skipif mysql # not compatible
query II rowsort label-9902
SELECT - ( + 90 ) AS col0, + 56 * SUM ( ALL + - 51 ) + 64
----
-90
-2792

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL COUNT( * ) + - 44
----
-43

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL COUNT ( * ) + - 44
----
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9904
SELECT ALL CASE + - 97 WHEN - - 8 THEN - CAST( NULL AS DECIMAL ) WHEN + - 50 THEN NULL END + - + 42 + + COUNT( * ) * - 73 * + 0 + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL CASE + - 97 WHEN - - 8 THEN - CAST ( NULL AS REAL ) WHEN + - 50 THEN NULL END + - + 42 + + COUNT ( * ) * - 73 * + 0 + ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT 28 * + - 87 AS col1
----
-2436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9906
SELECT ALL + 92 DIV CASE AVG ( - 25 ) WHEN ( 64 ) THEN + 21 * - + 12 WHEN - - 5 THEN NULL ELSE 51 * 63 END DIV 71 + 48 * + COALESCE ( 37, COUNT( * ) - 99 )
----
1776

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL + 92 / CASE AVG ( - 25 ) WHEN ( 64 ) THEN + 21 * - + 12 WHEN - - 5 THEN NULL ELSE 51 * 63 END / 71 + 48 * + COALESCE ( 37, COUNT ( * ) - 99 )
----
1776

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL 63 * - CASE - 60 WHEN 68 + + + COUNT( * ) - + 58 + - - 42 THEN + - 4 + - - 53 * + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL 63 * - CASE - 60 WHEN 68 + + + COUNT ( * ) - + 58 + - - 42 THEN + - 4 + - - 53 * + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 68 * - 54 AS col0
----
-3672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9909
SELECT ALL + COALESCE ( MIN( + 50 ), 51 DIV - 30, 94 + + + 10 ) DIV + 85 + - MIN( DISTINCT 83 ) + 85 DIV - 54 + + 16 * + 58 AS col2
----
844

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL + COALESCE ( MIN ( + 50 ), 51 / - 30, 94 + + + 10 ) / + 85 + - MIN ( DISTINCT 83 ) + 85 / - 54 + + 16 * + 58 AS col2
----
844

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT 92 * - - 50 * - CASE - ( + 26 ) WHEN COUNT( * ) THEN + 59 * + - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT 92 * - - 50 * - CASE - ( + 26 ) WHEN COUNT ( * ) THEN + 59 * + - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9911
SELECT + 1 * + MAX( ALL - 65 ) / + COUNT( * ) / CAST( NULL AS SIGNED ) + - + 95 - + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT + 1 * + MAX ( ALL - 65 ) / + COUNT ( * ) / CAST ( NULL AS INTEGER ) + - + 95 - + - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT ALL 27 * - COUNT( * ) * - 45 * - 37
----
-44955

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL 27 * - COUNT ( * ) * - 45 * - 37
----
-44955

query I rowsort
SELECT + 32 + + 8 col0
----
40

query I rowsort
SELECT + 38 * - 64 AS col0
----
-2432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT CAST( + MAX( 37 ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-9915
SELECT CAST ( + MAX ( 37 ) AS INTEGER )
----
37

query I rowsort
SELECT - 1 * - 60 + - 48
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9917
SELECT CAST( 43 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9917
SELECT CAST ( 43 AS INTEGER ) AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9918
SELECT ALL 25 DIV - 61 - + NULLIF ( + 37, - - COUNT( * ) ) DIV + + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL 25 / - 61 - + NULLIF ( + 37, - - COUNT ( * ) ) / + + 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - NULLIF ( - - 61, + 75 ) * - + 54 + + - NULLIF ( 88, - + COUNT( * ) * - NULLIF ( - - 31, + COALESCE ( 31, - 55, ( - 1 ) ) + 85 ) ) AS col1
----
3206

skipif mysql # not compatible
query I rowsort label-9919
SELECT - NULLIF ( - - 61, + 75 ) * - + 54 + + - NULLIF ( 88, - + COUNT ( * ) * - NULLIF ( - - 31, + COALESCE ( 31, - 55, ( - 1 ) ) + 85 ) ) AS col1
----
3206

onlyif mysql # DIV for integer division: 
query I rowsort label-9920
SELECT DISTINCT - 52 DIV 44
----
-1

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT - 52 / 44
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT + SUM( + 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + SUM ( + 58 ) AS col1
----
58

query I rowsort
SELECT ALL - 83 - + 5
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT ALL - + 53 DIV - + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL - + 53 / - + 98 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9924
SELECT ALL - NULLIF ( 33, 50 ) DIV - - 50 * - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL - NULLIF ( 33, 50 ) / - - 50 * - 91 AS col2
----
0

query I rowsort
SELECT 40 * 41 AS col2
----
1640

onlyif mysql # DIV for integer division: 
query I rowsort label-9926
SELECT DISTINCT 89 DIV - 55 + + + 42
----
41

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT 89 / - 55 + + + 42
----
41

query I rowsort
SELECT ALL - - 40 * + + 34 * 12 AS col1
----
16320

query I rowsort
SELECT - ( 32 ) * + 13
----
-416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT - COALESCE ( + + CAST( + - COUNT( ALL 55 ) AS SIGNED ), + + ( - 96 ), 28 )
----
1

skipif mysql # not compatible
query I rowsort label-9929
SELECT - COALESCE ( + + CAST ( + - COUNT ( ALL 55 ) AS INTEGER ), + + ( - 96 ), 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT + + ( + - SUM( - - 41 ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9930
SELECT + + ( + - SUM ( - - 41 ) ) AS col1
----
-41

query I rowsort
SELECT - ( + 83 ) + - + 9
----
-92

query I rowsort
SELECT 9 * + + 30 AS col0
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9933
SELECT - 73 + - 70 / - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT - 73 + - 70 / - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 7 * - - 81 * + - 62
----
35154

query I rowsort
SELECT + 40 + - + 78 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT ALL - CASE ( 8 ) WHEN + 50 THEN NULL WHEN - 28 * - - 73 + + AVG ( + - 66 ) THEN + 2 * + COALESCE ( - 46 * 36, - 3 / COUNT( * ), - 9 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL - CASE ( 8 ) WHEN + 50 THEN NULL WHEN - 28 * - - 73 + + AVG ( + - 66 ) THEN + 2 * + COALESCE ( - 46 * 36, - 3 / COUNT ( * ), - 9 ) END AS col2
----
NULL

query I rowsort
SELECT ALL + + 44 + ( - 24 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT 91 + - CASE ( + + 15 ) WHEN + 47 THEN NULL WHEN + 50 / 60 THEN + 20 END + - 95 + - CASE - COALESCE ( 33, + 6 ) WHEN 79 + 45 THEN - 37 WHEN COUNT( * ) THEN - ( MIN( 61 ) ) ELSE 10 * - NULLIF ( + 58, - 1 ) END - COUNT( * ) * - 86 * COALESCE ( 6, 40, 43, - 49 * - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT 91 + - CASE ( + + 15 ) WHEN + 47 THEN NULL WHEN + 50 / 60 THEN + 20 END + - 95 + - CASE - COALESCE ( 33, + 6 ) WHEN 79 + 45 THEN - 37 WHEN COUNT ( * ) THEN - ( MIN ( 61 ) ) ELSE 10 * - NULLIF ( + 58, - 1 ) END - COUNT ( * ) * - 86 * COALESCE ( 6, 40, 43, - 49 * - 7 )
----
NULL

query I rowsort
SELECT DISTINCT + 6 + + 86 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT + 34 * - - NULLIF ( COUNT( * ), + COALESCE ( COALESCE ( - 92, - + 58 / - 85 * 99 + + + COUNT( * ) - 68, MAX( 24 ) * - CASE + 36 WHEN - 70 THEN 29 WHEN COUNT( * ) THEN NULL ELSE NULL END ), - 37 ) )
----
34

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT + 34 * - - NULLIF ( COUNT ( * ), + COALESCE ( COALESCE ( - 92, - + 58 / - 85 * 99 + + + COUNT ( * ) - 68, MAX ( 24 ) * - CASE + 36 WHEN - 70 THEN 29 WHEN COUNT ( * ) THEN NULL ELSE NULL END ), - 37 ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT 25 + NULLIF ( COUNT( * ), + 7 * - 98 - + COALESCE ( 17, - 98, + 59 - - - 57 ) / COUNT( * ) + 85 ) + + ( 75 ) * - 62
----
-4624

skipif mysql # not compatible
query I rowsort label-9941
SELECT 25 + NULLIF ( COUNT ( * ), + 7 * - 98 - + COALESCE ( 17, - 98, + 59 - - - 57 ) / COUNT ( * ) + 85 ) + + ( 75 ) * - 62
----
-4624

query II rowsort
SELECT DISTINCT - ( + + 48 ) + - 25 col1, 83 * - + 78 col1
----
-73
-6474

query I rowsort
SELECT 35 + + 70 * - 1 * - 76
----
5355

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT DISTINCT 80 + - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT 80 + - COUNT ( * ) AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT 19 - + NULLIF ( 29, + + 43 - + + COUNT( * ) + + 69 )
----
-10

skipif mysql # not compatible
query I rowsort label-9946
SELECT 19 - + NULLIF ( 29, + + 43 - + + COUNT ( * ) + + 69 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT MAX( DISTINCT + + ( + + 40 ) ) * 84 AS col1
----
3360

skipif mysql # not compatible
query I rowsort label-9947
SELECT MAX ( DISTINCT + + ( + + 40 ) ) * 84 AS col1
----
3360

query I rowsort
SELECT + 34 * 2 * - + 62 + - 73 AS col2
----
-4289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9949
SELECT DISTINCT + NULLIF ( + NULLIF ( CAST( + COALESCE ( + CAST( NULL AS SIGNED ), + COUNT( - 96 ) ) AS SIGNED ), - 23 ), + ( + ( + 58 ) ) ) - 35 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + NULLIF ( + NULLIF ( CAST ( + COALESCE ( + CAST ( NULL AS INTEGER ), + COUNT ( - 96 ) ) AS INTEGER ), - 23 ), + ( + ( + 58 ) ) ) - 35 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9950
SELECT 80 DIV + 34 + 10 * - CAST( - 56 AS SIGNED ) AS col1
----
562

skipif mysql # not compatible
query I rowsort label-9950
SELECT 80 / + 34 + 10 * - CAST ( - 56 AS INTEGER ) AS col1
----
562

query I rowsort
SELECT 54 * + 48 col1
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL - COUNT( * ) - + - 62 / CASE - AVG ( - - ( 63 ) ) WHEN - 78 + 84 * + 54 THEN NULL WHEN + - 65 * - COALESCE ( COUNT( * ) - COALESCE ( 11, - 40 * 80 ), - 4 * - 10 - - 69 ) THEN NULL WHEN - 77 THEN NULL WHEN 74 THEN + 32 END - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL - COUNT ( * ) - + - 62 / CASE - AVG ( - - ( 63 ) ) WHEN - 78 + 84 * + 54 THEN NULL WHEN + - 65 * - COALESCE ( COUNT ( * ) - COALESCE ( 11, - 40 * 80 ), - 4 * - 10 - - 69 ) THEN NULL WHEN - 77 THEN NULL WHEN 74 THEN + 32 END - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT + - COUNT( + 6 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9953
SELECT + - COUNT ( + 6 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL NULLIF ( 6, + ( + 74 ) ) - CASE - - ( CASE + 19 WHEN + + 30 THEN NULL ELSE COUNT( * ) END ) WHEN - ( + 21 ) THEN MAX( DISTINCT - 57 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL NULLIF ( 6, + ( + 74 ) ) - CASE - - ( CASE + 19 WHEN + + 30 THEN NULL ELSE COUNT ( * ) END ) WHEN - ( + 21 ) THEN MAX ( DISTINCT - 57 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 8 * - 33 * - 58 AS col0
----
15312

query I rowsort
SELECT - 74 * + 68 * 11 AS col1
----
-55352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9957
SELECT CASE - - COUNT( * ) WHEN + ( - 46 ) THEN + - 66 ELSE + 21 DIV 81 END DIV + + 10 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9957
SELECT CASE - - COUNT ( * ) WHEN + ( - 46 ) THEN + - 66 ELSE + 21 / 81 END / + + 10 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9958
SELECT COALESCE ( - - MIN( DISTINCT + 82 ), - COUNT( * ) * - COALESCE ( + - COUNT( * ), ( 73 ) * - 39, - NULLIF ( + 36, 74 ), MAX( - ( CAST( 37 AS SIGNED ) ) ) ) - COUNT( * ) * 58 + 5 )
----
82

skipif mysql # not compatible
query I rowsort label-9958
SELECT COALESCE ( - - MIN ( DISTINCT + 82 ), - COUNT ( * ) * - COALESCE ( + - COUNT ( * ), ( 73 ) * - 39, - NULLIF ( + 36, 74 ), MAX ( - ( CAST ( 37 AS INTEGER ) ) ) ) - COUNT ( * ) * 58 + 5 )
----
82

query I rowsort
SELECT + 97 - 95
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT COUNT( * ) * 99 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9960
SELECT COUNT ( * ) * 99 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9961
SELECT ALL - + CASE - ( - 52 ) WHEN CAST( - 8 AS DECIMAL ) + - NULLIF ( 72, + MAX( 17 ) * - 92 ) + NULLIF ( + CAST( 67 AS DECIMAL ), 40 ) THEN NULL ELSE CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL - + CASE - ( - 52 ) WHEN CAST ( - 8 AS REAL ) + - NULLIF ( 72, + MAX ( 17 ) * - 92 ) + NULLIF ( + CAST ( 67 AS REAL ), 40 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9962
SELECT + 37 DIV + 54 * SUM( ALL + 17 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9962
SELECT + 37 / + 54 * SUM ( ALL + 17 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT - 90 + - - MIN( DISTINCT + + 85 ) + + + 80 * 28 + + COUNT( * ) * + 54
----
2289

skipif mysql # not compatible
query I rowsort label-9963
SELECT - 90 + - - MIN ( DISTINCT + + 85 ) + + + 80 * 28 + + COUNT ( * ) * + 54
----
2289

query II rowsort
SELECT 32, 92 * + - 65 AS col2
----
32
-5980

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT 36 + + - COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9965
SELECT 36 + + - COUNT ( * ) AS col2
----
35

query I rowsort
SELECT ALL + ( - 10 ) + + + 82
----
72

query I rowsort
SELECT ALL + 11 + - 24 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT ALL 48 AS col2, + MAX( DISTINCT 38 ) * + 3
----
48
114

skipif mysql # not compatible
query II rowsort label-9968
SELECT ALL 48 AS col2, + MAX ( DISTINCT 38 ) * + 3
----
48
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT COALESCE ( + CASE 62 WHEN MIN( DISTINCT + + 69 ) / 47 * 58 + + 79 - + 2 + - ( + MIN( ALL 48 ) ) * + 9 THEN 6 WHEN + 66 THEN NULL END, 31 + - ( + 73 ) ) * - 66
----
2772

skipif mysql # not compatible
query I rowsort label-9969
SELECT COALESCE ( + CASE 62 WHEN MIN ( DISTINCT + + 69 ) / 47 * 58 + + 79 - + 2 + - ( + MIN ( ALL 48 ) ) * + 9 THEN 6 WHEN + 66 THEN NULL END, 31 + - ( + 73 ) ) * - 66
----
2772

query I rowsort
SELECT 29 + - - 6 col0
----
35

query I rowsort
SELECT 38 + + NULLIF ( 84, 46 ) + 58
----
180

query I rowsort
SELECT DISTINCT - 93 - - + 8 col2
----
-85

query I rowsort
SELECT 19 + + 18
----
37

query II rowsort
SELECT - 15 AS col1, 30 AS col2
----
-15
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9975
SELECT ALL + 21 DIV - CAST( + 67 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + 21 / - CAST ( + 67 AS INTEGER ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9976
SELECT DISTINCT + 3 * COUNT( ALL - 84 ) DIV + 55 AS col2, CASE + COALESCE ( - + 48, - - 10 ) WHEN + CAST( NULL AS SIGNED ) * + 84 + 37 DIV + 32 THEN NULL WHEN 89 THEN - 75 WHEN - 27 + + 91 THEN NULL END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9976
SELECT DISTINCT + 3 * COUNT ( ALL - 84 ) / + 55 AS col2, CASE + COALESCE ( - + 48, - - 10 ) WHEN + CAST ( NULL AS INTEGER ) * + 84 + 37 / + 32 THEN NULL WHEN 89 THEN - 75 WHEN - 27 + + 91 THEN NULL END
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9977
SELECT ALL COUNT( * ), - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-9977
SELECT ALL COUNT ( * ), - COUNT ( * ) AS col0
----
1
-1

query I rowsort
SELECT 50 - - 69
----
119

query I rowsort
SELECT ALL + 85 * - - 72 AS col0
----
6120

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9980
SELECT DISTINCT + CAST( NULL AS DECIMAL ), 8 col0
----
NULL
8

skipif mysql # not compatible
query II rowsort label-9980
SELECT DISTINCT + CAST ( NULL AS REAL ), 8 col0
----
NULL
8

query I rowsort
SELECT DISTINCT + 4 * + + 75 AS col1
----
300

query II rowsort
SELECT ALL + 34, + COALESCE ( + + 29, - - ( - 93 ) + + + 23 * - 84 ) AS col0
----
34
29

query I rowsort
SELECT ALL + - ( - - 48 ) * + 87 AS col2
----
-4176

query I rowsort
SELECT DISTINCT - + 7 * + + 22
----
-154

query I rowsort
SELECT - 45 + - - 50
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9986
SELECT ALL + COUNT( * ) AS col1, + COUNT( ALL 35 ) DIV - + 50 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-9986
SELECT ALL + COUNT ( * ) AS col1, + COUNT ( ALL 35 ) / - + 50 AS col2
----
1
0

query I rowsort
SELECT - - 62 * + 0 AS col2
----
0

query I rowsort
SELECT + - 56 * + - 71
----
3976

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT ALL 81 * 58 + - 30 + COUNT( * ) * + 18 - - 54 * - - COUNT( * ) AS col2
----
4740

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL 81 * 58 + - 30 + COUNT ( * ) * + 18 - - 54 * - - COUNT ( * ) AS col2
----
4740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9990
SELECT ALL + CAST( NULL AS SIGNED ) * + 44 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL + CAST ( NULL AS INTEGER ) * + 44 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 95 + 40 * - 90 AS col1
----
-3695

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT DISTINCT + 44 * + COUNT( * ) + - 73 + - - 22 + - - 11
----
4

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT + 44 * + COUNT ( * ) + - 73 + - - 22 + - - 11
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9993
SELECT 47 AS col2, - COUNT( * ) + + - ( + - 49 )
----
47
48

skipif mysql # not compatible
query II rowsort label-9993
SELECT 47 AS col2, - COUNT ( * ) + + - ( + - 49 )
----
47
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT 21 * - 53 + - 59 + - 1 + - - COUNT( * ) * + ( + 6 ) + + 15 AS col1
----
-1152

skipif mysql # not compatible
query I rowsort label-9994
SELECT 21 * - 53 + - 59 + - 1 + - - COUNT ( * ) * + ( + 6 ) + + 15 AS col1
----
-1152

query I rowsort
SELECT ALL 2 * + 74 + + + 22 AS col2
----
170

onlyif mysql # aggregate syntax: 
query III rowsort label-9996
SELECT + COUNT( * ) AS col2, 10 * + 25 + - 88 AS col2, + COUNT( * )
----
1
162
1

skipif mysql # not compatible
query III rowsort label-9996
SELECT + COUNT ( * ) AS col2, 10 * + 25 + - 88 AS col2, + COUNT ( * )
----
1
162
1

query I rowsort
SELECT - 75 * 67 * - 20 AS col2
----
100500

query I rowsort
SELECT ALL - 24 * - - 20 * + 78 AS col1
----
-37440

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9999
SELECT + + 67 AS col0, CAST( + + 32 AS SIGNED ) col2
----
67
32

skipif mysql # not compatible
query II rowsort label-9999
SELECT + + 67 AS col0, CAST ( + + 32 AS INTEGER ) col2
----
67
32

